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
Python/Display/display.py
alexanderkrauck/Weatherstation
0
61387
# Display the ip's from all network interfaces on the display import time import Adafruit_Nokia_LCD as LCD import Adafruit_GPIO.SPI as SPI import netifaces from PIL import Image from PIL import ImageDraw from PIL import ImageFont # Raspberry Pi hardware SPI config: DC = 23 RST = 24 SPI_PORT = 0 SPI_DEVICE = 0 # Raspberry Pi software SPI config: # SCLK = 4 # DIN = 17 # DC = 23 # RST = 24 # CS = 8 # Beaglebone Black hardware SPI config: # DC = 'P9_15' # RST = 'P9_12' # SPI_PORT = 1 # SPI_DEVICE = 0 # Beaglebone Black software SPI config: # DC = 'P9_15' # RST = 'P9_12' # SCLK = 'P8_7' # DIN = 'P8_9' # CS = 'P8_11' # Hardware SPI usage: disp = LCD.PCD8544(DC, RST, spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE, max_speed_hz=4000000)) # Software SPI usage (defaults to bit-bang SPI interface): #disp = LCD.PCD8544(DC, RST, SCLK, DIN, CS) # Initialize library. disp.begin(contrast=60) # Clear display. disp.clear() disp.display() # Create blank image for drawing. # Make sure to create image with mode '1' for 1-bit color. image = Image.new('1', (LCD.LCDWIDTH, LCD.LCDHEIGHT)) # Get drawing object to draw on image. draw = ImageDraw.Draw(image) # Draw a white filled box to clear the image. draw.rectangle((0,0,LCD.LCDWIDTH,LCD.LCDHEIGHT), outline=255, fill=255) # Load default font. font = ImageFont.load_default() # Refresh the ip's every second. while True: disp.clear(); # Draw a white filled box to clear the image. draw.rectangle((0,0,LCD.LCDWIDTH,LCD.LCDHEIGHT), outline=255, fill=255) cnt = 0 for i in netifaces.interfaces(): try: ip = str(netifaces.ifaddresses(i)[2][0]['addr']) # only display interfaces which aren't local if ip != "127.0.0.1" : draw.text((1,10 * cnt), i, font=font) draw.text((6,10 * cnt + 10), ip, font=font) cnt += 2 except: continue # Display image. disp.image(image) disp.display() time.sleep(1.0)
[ 1, 396, 17440, 278, 10377, 29915, 29879, 515, 599, 3564, 19510, 373, 278, 2479, 13, 5215, 931, 13, 13, 5215, 23255, 29888, 9216, 29918, 29940, 554, 423, 29918, 29931, 6530, 408, 365, 6530, 13, 5215, 23255, 29888, 9216, 29918, 29954, 2227, 29949, 29889, 29903, 2227, 408, 317, 2227, 13, 5215, 7787, 361, 3302, 13, 13, 3166, 349, 6227, 1053, 7084, 13, 3166, 349, 6227, 1053, 7084, 8537, 13, 3166, 349, 6227, 1053, 7084, 9824, 13, 13, 13, 29937, 390, 4692, 16344, 7362, 12837, 317, 2227, 2295, 29901, 13, 12696, 353, 29871, 29906, 29941, 13, 29934, 1254, 353, 29871, 29906, 29946, 13, 29903, 2227, 29918, 15082, 353, 29871, 29900, 13, 29903, 2227, 29918, 2287, 19059, 353, 29871, 29900, 13, 13, 29937, 390, 4692, 16344, 7362, 7047, 317, 2227, 2295, 29901, 13, 29937, 317, 6154, 29968, 353, 29871, 29946, 13, 29937, 360, 1177, 353, 29871, 29896, 29955, 13, 29937, 13681, 353, 29871, 29906, 29941, 13, 29937, 390, 1254, 353, 29871, 29906, 29946, 13, 29937, 21107, 353, 29871, 29947, 13, 13, 29937, 1522, 20860, 15933, 6054, 12837, 317, 2227, 2295, 29901, 13, 29937, 13681, 353, 525, 29925, 29929, 29918, 29896, 29945, 29915, 13, 29937, 390, 1254, 353, 525, 29925, 29929, 29918, 29896, 29906, 29915, 13, 29937, 317, 2227, 29918, 15082, 353, 29871, 29896, 13, 29937, 317, 2227, 29918, 2287, 19059, 353, 29871, 29900, 13, 13, 29937, 1522, 20860, 15933, 6054, 7047, 317, 2227, 2295, 29901, 13, 29937, 13681, 353, 525, 29925, 29929, 29918, 29896, 29945, 29915, 13, 29937, 390, 1254, 353, 525, 29925, 29929, 29918, 29896, 29906, 29915, 13, 29937, 317, 6154, 29968, 353, 525, 29925, 29947, 29918, 29955, 29915, 13, 29937, 360, 1177, 353, 525, 29925, 29947, 29918, 29929, 29915, 13, 29937, 21107, 353, 525, 29925, 29947, 29918, 29896, 29896, 29915, 13, 13, 13, 29937, 10999, 2519, 317, 2227, 8744, 29901, 13, 2218, 29886, 353, 365, 6530, 29889, 29925, 6530, 29947, 29945, 29946, 29946, 29898, 12696, 29892, 390, 1254, 29892, 805, 29875, 29922, 29903, 2227, 29889, 29903, 1631, 16618, 29898, 29903, 2227, 29918, 15082, 29892, 317, 2227, 29918, 2287, 19059, 29892, 4236, 29918, 19322, 29918, 29882, 29920, 29922, 29946, 29900, 29900, 29900, 29900, 29900, 29900, 876, 13, 13, 29937, 18540, 317, 2227, 8744, 313, 4381, 29879, 304, 2586, 29899, 29890, 574, 317, 2227, 5067, 1125, 13, 29937, 2218, 29886, 353, 365, 6530, 29889, 29925, 6530, 29947, 29945, 29946, 29946, 29898, 12696, 29892, 390, 1254, 29892, 317, 6154, 29968, 29892, 360, 1177, 29892, 21107, 29897, 13, 13, 29937, 25455, 3489, 29889, 13, 2218, 29886, 29889, 463, 29898, 9996, 579, 29922, 29953, 29900, 29897, 13, 13, 29937, 17732, 2479, 29889, 13, 2218, 29886, 29889, 8551, 580, 13, 2218, 29886, 29889, 4990, 580, 13, 13, 29937, 6204, 9654, 1967, 363, 11580, 29889, 13, 29937, 8561, 1854, 304, 1653, 1967, 411, 4464, 525, 29896, 29915, 363, 29871, 29896, 29899, 2966, 2927, 29889, 13, 3027, 353, 7084, 29889, 1482, 877, 29896, 742, 313, 29931, 6530, 29889, 29931, 6530, 22574, 29892, 365, 6530, 29889, 29931, 6530, 9606, 22530, 876, 13, 13, 29937, 3617, 11580, 1203, 304, 4216, 373, 1967, 29889, 13, 4012, 353, 7084, 8537, 29889, 8537, 29898, 3027, 29897, 13, 13, 29937, 18492, 263, 4796, 10423, 3800, 304, 2821, 278, 1967, 29889, 13, 4012, 29889, 1621, 2521, 3552, 29900, 29892, 29900, 29892, 29931, 6530, 29889, 29931, 6530, 22574, 29892, 29931, 6530, 29889, 29931, 6530, 9606, 22530, 511, 27887, 29922, 29906, 29945, 29945, 29892, 5445, 29922, 29906, 29945, 29945, 29897, 13, 13, 29937, 16012, 2322, 4079, 29889, 13, 5657, 353, 7084, 9824, 29889, 1359, 29918, 4381, 580, 13, 13, 29937, 9897, 3781, 278, 10377, 29915, 29879, 1432, 1473, 29889, 13, 8000, 5852, 29901, 13, 12, 2218, 29886, 29889, 8551, 890, 13, 12, 29937, 18492, 263, 4796, 10423, 3800, 304, 2821, 278, 1967, 29889, 13, 12, 4012, 29889, 1621, 2521, 3552, 29900, 29892, 29900, 29892, 29931, 6530, 29889, 29931, 6530, 22574, 29892, 29931, 6530, 29889, 29931, 6530, 9606, 22530, 511, 27887, 29922, 29906, 29945, 29945, 29892, 5445, 29922, 29906, 29945, 29945, 29897, 13, 13, 12, 20047, 353, 29871, 29900, 13, 12, 1454, 474, 297, 7787, 361, 3302, 29889, 1639, 8726, 7295, 13, 12, 12, 2202, 29901, 13, 12, 12, 12, 666, 353, 851, 29898, 1212, 361, 3302, 29889, 361, 7328, 267, 29898, 29875, 9601, 29906, 3816, 29900, 22322, 10030, 11287, 13, 12, 12, 12, 29937, 871, 2479, 19510, 607, 9455, 29915, 29873, 1887, 13, 12, 12, 12, 361, 10377, 2804, 376, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 29908, 584, 13, 12, 12, 12, 12, 4012, 29889, 726, 3552, 29896, 29892, 29896, 29900, 334, 274, 593, 511, 474, 29892, 4079, 29922, 5657, 29897, 13, 12, 12, 12, 12, 4012, 29889, 726, 3552, 29953, 29892, 29896, 29900, 334, 274, 593, 718, 29871, 29896, 29900, 511, 10377, 29892, 4079, 29922, 5657, 29897, 13, 12, 12, 12, 12, 20047, 4619, 29871, 29906, 13, 12, 12, 19499, 29901, 13, 462, 1678, 6773, 13, 12, 29937, 17440, 1967, 29889, 13, 12, 2218, 29886, 29889, 3027, 29898, 3027, 29897, 13, 12, 2218, 29886, 29889, 4990, 580, 13, 12, 2230, 29889, 17059, 29898, 29896, 29889, 29900, 29897, 13, 2 ]
agents/seqseq_agent.py
sidg54/textgeneration
0
103251
r''' ''' # standard library imports from __future__ import absolute_import import math import tqdm import random import shutil from os import getcwd from datetime import datetime # third party imports import numpy as np import torch import torch.nn as nn import torch.optim as optim from torch.backends import cudnn from torch.autograd import Variable from torch.utils.tensorboard import SummaryWriter from termcolor import cprint # internal imports from agents.base_agent import BaseAgent cudnn.benchmark = True class Seq2SeqAgent(BaseAgent): ''' Class that implements BaseAgent to train a sequence to sequence agent. Arguments --------- config : obj Configuration object. ''' def __init__(self, config): ''' Initializes an instance of the Seq2SeqAgent class. ''' super().__init__(config) self.start = datetime.now() self.end = None self.save_filepath = getcwd() + self.config.checkpoint_dir self.cuda_avail = torch.cuda.is_available() if self.cuda_avail and not self.config.cuda: self.logger.info('WARNING :: CUDA is available but is not being used.') self.cuda = self.cuda_avail and self.config.cuda self.manual_seed = self.config.seed if self.manual_seed <= 0: self.manual_seed = random.randint(1, 10000): self.logger.info('INFO :: Random seed used.') self.logger.info('SEED :: ', self.manual_seed) random.seed(self.manual_seed) if self.cuda: self.device = torch.device('cuda') torch.cuda.set_device(self.config.gpu_device) torch.manual_seed(self.manual_seed) self.logger.info('CUDA in use.') show_gpu() else: self.device = torch.device('cpu') torch.manual_seed(self.manual_seed) self.logger.info('CPU in use (not on CUDA)') # data loading # set epoch and batch number tracking self.current_epoch = 0 self.num_epochs = self.config.num_epochs self.current_batch = 0 # define models and optimizers self.enc_class = globals()[self.config.encoder] self.dec_class = globals()[self.config.decoder] self.encoder = self. # loss # send nn's to selected device # load checkpoint if chosen try: self.load_checkpoint(self.config.checkpoint_file) except AttributeError: pass # checkpoint file for saving models self.checkpoint_file = self.config.checkpoint_file self.is_best = False # tensorboard self.writer = SummaryWriter( log_dir=getcwd() + self.config.log_dir, comment='Seq2Seq' ) def load_checkpoint(self, file_name='seq2seq.pth'): ''' Loads the checkpoint from the given file. ''' filepath = self.config.checkpoint_dir + file_name try: self.logger.info(f'Loading checkpoint from {filepath}') checkpoint = torch.load(filepath) self.current_epoch = checkpoint['epoch'] self.current_batch = checkpoint['batch'] self.manual_seed = checkpoint['manual_seed'] self.logger.info(f'Checkpoint loaded from {filepath}\t\t::\t\t\ Currently at batch {self.current_batch} of epoch {self.current_epoch}.') except OSError: self.logger.info(f'No checkpint at specified file path {filepath}.\ Skipping for now.') self.logger.info('Checkpoint load failure most likely because filepath is incorrect \ or this is the first training run.') def save_checkpoint(self, file_name='seq2seq.pth', is_best=False): ''' Saves the model to the given file. Arguments --------- file_name : str (default='seq2seq.pth') Name of the file to save the model to. is_best : bool (default=False) If true, this is the best model to date. ''' state = { 'epoch': self.current_epoch, 'batch': self.current_batch, 'manual_seed': self.manual_seed } self.save_filepath = getcwd() + self.config.checkpoint_dir + file_name while True: try: torch.save(state, self.save_filepath) break except FileNotFoundError: cprint('ERROR :: File not found.', 'red') cprint('INFO :: Creating file and trying to checkpoint again', 'yellow') f = optn(self.save_filepath, 'w+') if is_best: shutil.copyfile(self.save_filepath, self.config.checkpoint_dir + 'best_model.pth') def run(self): ''' Runs the agent. ''' try: losses = self.train() return losses except Exception as e: raise e def train(self): ''' Function to train the model. ''' losses = 0 self.start = datetime.now() for epoch in range(self.current_epoch, self.config.num_epochs): self.current_epoch = epoch self.train_one_epoch() self.save_checkpoint(file_name=self.checkpoint_file, is_best=False) self.end = datetime.now() return losses def train_one_epoch(self): ''' Runs a single training epoch. ''' pass def validate(self): ''' Runs a cycle of validation on the model. ''' pass def finalize(self): ''' Finalizes training. ''' pass
[ 1, 364, 12008, 13, 12008, 13, 29937, 3918, 3489, 24802, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 13, 5215, 5844, 13, 5215, 260, 29939, 18933, 13, 5215, 4036, 13, 5215, 528, 4422, 13, 3166, 2897, 1053, 679, 29883, 9970, 13, 3166, 12865, 1053, 12865, 13, 13, 29937, 4654, 6263, 24802, 13, 5215, 12655, 408, 7442, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 5215, 4842, 305, 29889, 20640, 408, 5994, 13, 3166, 4842, 305, 29889, 1627, 1975, 1053, 274, 566, 15755, 13, 3166, 4842, 305, 29889, 1300, 468, 3665, 1053, 28736, 13, 3166, 4842, 305, 29889, 13239, 29889, 20158, 3377, 1053, 6991, 5219, 10507, 13, 3166, 1840, 2780, 1053, 274, 2158, 13, 13, 29937, 7463, 24802, 13, 3166, 19518, 29889, 3188, 29918, 14748, 1053, 7399, 19661, 13, 13, 13, 29883, 566, 15755, 29889, 1785, 16580, 353, 5852, 13, 13, 13, 1990, 25981, 29906, 23718, 19661, 29898, 5160, 19661, 1125, 13, 1678, 14550, 13, 1678, 4134, 393, 10703, 7399, 19661, 304, 7945, 13, 1678, 263, 5665, 304, 5665, 10823, 29889, 13, 13, 1678, 11842, 9331, 13, 1678, 448, 1378, 13, 4706, 2295, 584, 5446, 13, 9651, 20999, 1203, 29889, 13, 1678, 14550, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 1125, 13, 4706, 14550, 17250, 7093, 385, 2777, 310, 278, 25981, 29906, 23718, 19661, 770, 29889, 14550, 13, 4706, 2428, 2141, 1649, 2344, 12035, 2917, 29897, 13, 13, 4706, 1583, 29889, 2962, 353, 12865, 29889, 3707, 580, 13, 4706, 1583, 29889, 355, 353, 6213, 13, 4706, 1583, 29889, 7620, 29918, 1445, 2084, 353, 679, 29883, 9970, 580, 718, 1583, 29889, 2917, 29889, 3198, 3149, 29918, 3972, 13, 13, 4706, 1583, 29889, 29883, 6191, 29918, 485, 737, 353, 4842, 305, 29889, 29883, 6191, 29889, 275, 29918, 16515, 580, 13, 4706, 565, 1583, 29889, 29883, 6191, 29918, 485, 737, 322, 451, 1583, 29889, 2917, 29889, 29883, 6191, 29901, 13, 9651, 1583, 29889, 21707, 29889, 3888, 877, 29956, 25614, 4761, 315, 29965, 7698, 338, 3625, 541, 338, 451, 1641, 1304, 29889, 1495, 13, 4706, 1583, 29889, 29883, 6191, 353, 1583, 29889, 29883, 6191, 29918, 485, 737, 322, 1583, 29889, 2917, 29889, 29883, 6191, 13, 13, 4706, 1583, 29889, 11288, 29918, 26776, 353, 1583, 29889, 2917, 29889, 26776, 13, 4706, 565, 1583, 29889, 11288, 29918, 26776, 5277, 29871, 29900, 29901, 13, 9651, 1583, 29889, 11288, 29918, 26776, 353, 4036, 29889, 9502, 524, 29898, 29896, 29892, 29871, 29896, 29900, 29900, 29900, 29900, 1125, 13, 9651, 1583, 29889, 21707, 29889, 3888, 877, 11690, 4761, 16968, 16717, 1304, 29889, 1495, 13, 4706, 1583, 29889, 21707, 29889, 3888, 877, 1660, 3352, 4761, 13420, 1583, 29889, 11288, 29918, 26776, 29897, 13, 4706, 4036, 29889, 26776, 29898, 1311, 29889, 11288, 29918, 26776, 29897, 13, 13, 4706, 565, 1583, 29889, 29883, 6191, 29901, 13, 9651, 1583, 29889, 10141, 353, 4842, 305, 29889, 10141, 877, 29883, 6191, 1495, 13, 9651, 4842, 305, 29889, 29883, 6191, 29889, 842, 29918, 10141, 29898, 1311, 29889, 2917, 29889, 29887, 3746, 29918, 10141, 29897, 13, 9651, 4842, 305, 29889, 11288, 29918, 26776, 29898, 1311, 29889, 11288, 29918, 26776, 29897, 13, 9651, 1583, 29889, 21707, 29889, 3888, 877, 29907, 29965, 7698, 297, 671, 29889, 1495, 13, 9651, 1510, 29918, 29887, 3746, 580, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 10141, 353, 4842, 305, 29889, 10141, 877, 21970, 1495, 13, 9651, 4842, 305, 29889, 11288, 29918, 26776, 29898, 1311, 29889, 11288, 29918, 26776, 29897, 13, 9651, 1583, 29889, 21707, 29889, 3888, 877, 6271, 29965, 297, 671, 313, 1333, 373, 315, 29965, 7698, 29897, 1495, 13, 308, 13, 4706, 396, 848, 8363, 13, 13, 4706, 396, 731, 21502, 305, 322, 9853, 1353, 23110, 13, 4706, 1583, 29889, 3784, 29918, 1022, 2878, 353, 29871, 29900, 13, 4706, 1583, 29889, 1949, 29918, 1022, 2878, 29879, 353, 1583, 29889, 2917, 29889, 1949, 29918, 1022, 2878, 29879, 13, 4706, 1583, 29889, 3784, 29918, 16175, 353, 29871, 29900, 13, 13, 4706, 396, 4529, 4733, 322, 5994, 19427, 13, 4706, 1583, 29889, 3977, 29918, 1990, 353, 13149, 1338, 580, 29961, 1311, 29889, 2917, 29889, 3977, 6119, 29962, 13, 4706, 1583, 29889, 7099, 29918, 1990, 353, 13149, 1338, 580, 29961, 1311, 29889, 2917, 29889, 7099, 6119, 29962, 13, 308, 13, 4706, 1583, 29889, 3977, 6119, 353, 1583, 29889, 13, 13, 4706, 396, 6410, 13, 13, 4706, 396, 3638, 302, 29876, 29915, 29879, 304, 4629, 4742, 13, 13, 4706, 396, 2254, 1423, 3149, 565, 10434, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 1359, 29918, 3198, 3149, 29898, 1311, 29889, 2917, 29889, 3198, 3149, 29918, 1445, 29897, 13, 4706, 5174, 23833, 2392, 29901, 13, 9651, 1209, 13, 13, 4706, 396, 1423, 3149, 934, 363, 14238, 4733, 13, 4706, 1583, 29889, 3198, 3149, 29918, 1445, 353, 1583, 29889, 2917, 29889, 3198, 3149, 29918, 1445, 13, 4706, 1583, 29889, 275, 29918, 13318, 353, 7700, 13, 13, 4706, 396, 12489, 3377, 13, 4706, 1583, 29889, 13236, 353, 6991, 5219, 10507, 29898, 13, 9651, 1480, 29918, 3972, 29922, 657, 29883, 9970, 580, 718, 1583, 29889, 2917, 29889, 1188, 29918, 3972, 29892, 13, 9651, 3440, 2433, 23718, 29906, 23718, 29915, 13, 4706, 1723, 13, 13, 1678, 822, 2254, 29918, 3198, 3149, 29898, 1311, 29892, 934, 29918, 978, 2433, 11762, 29906, 11762, 29889, 29886, 386, 29374, 13, 4706, 14550, 4309, 7925, 278, 1423, 3149, 515, 278, 2183, 934, 29889, 14550, 13, 4706, 934, 2084, 353, 1583, 29889, 2917, 29889, 3198, 3149, 29918, 3972, 718, 934, 29918, 978, 13, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 21707, 29889, 3888, 29898, 29888, 29915, 23456, 1423, 3149, 515, 426, 1445, 2084, 29913, 1495, 13, 9651, 1423, 3149, 353, 4842, 305, 29889, 1359, 29898, 1445, 2084, 29897, 13, 13, 9651, 1583, 29889, 3784, 29918, 1022, 2878, 353, 1423, 3149, 1839, 1022, 2878, 2033, 13, 9651, 1583, 29889, 3784, 29918, 16175, 353, 1423, 3149, 1839, 16175, 2033, 13, 9651, 1583, 29889, 11288, 29918, 26776, 353, 1423, 3149, 1839, 11288, 29918, 26776, 2033, 13, 13, 9651, 1583, 29889, 21707, 29889, 3888, 29898, 29888, 29915, 5596, 3149, 7500, 515, 426, 1445, 2084, 1012, 29873, 29905, 29873, 1057, 29905, 29873, 29905, 29873, 29905, 13, 18884, 15447, 472, 9853, 426, 1311, 29889, 3784, 29918, 16175, 29913, 310, 21502, 305, 426, 1311, 29889, 3784, 29918, 1022, 2878, 1836, 1495, 13, 4706, 5174, 438, 29173, 29901, 13, 9651, 1583, 29889, 21707, 29889, 3888, 29898, 29888, 29915, 3782, 1423, 29886, 524, 472, 6790, 934, 2224, 426, 1445, 2084, 1836, 29905, 13, 18884, 28551, 3262, 363, 1286, 29889, 1495, 13, 9651, 1583, 29889, 21707, 29889, 3888, 877, 5596, 3149, 2254, 10672, 1556, 5517, 1363, 934, 2084, 338, 10240, 320, 13, 18884, 470, 445, 338, 278, 937, 6694, 1065, 29889, 1495, 13, 268, 13, 1678, 822, 4078, 29918, 3198, 3149, 29898, 1311, 29892, 934, 29918, 978, 2433, 11762, 29906, 11762, 29889, 29886, 386, 742, 338, 29918, 13318, 29922, 8824, 1125, 13, 4706, 14550, 13, 4706, 317, 5989, 278, 1904, 304, 278, 2183, 934, 29889, 13, 308, 13, 4706, 11842, 9331, 13, 4706, 448, 1378, 13, 9651, 934, 29918, 978, 584, 851, 632, 313, 4381, 2433, 11762, 29906, 11762, 29889, 29886, 386, 1495, 13, 18884, 4408, 310, 278, 934, 304, 4078, 278, 1904, 304, 29889, 13, 9651, 338, 29918, 13318, 584, 6120, 795, 313, 4381, 29922, 8824, 29897, 13, 18884, 960, 1565, 29892, 445, 338, 278, 1900, 1904, 304, 2635, 29889, 13, 4706, 14550, 13, 4706, 2106, 353, 426, 13, 9651, 525, 1022, 2878, 2396, 1583, 29889, 3784, 29918, 1022, 2878, 29892, 13, 9651, 525, 16175, 2396, 1583, 29889, 3784, 29918, 16175, 29892, 13, 9651, 525, 11288, 29918, 26776, 2396, 1583, 29889, 11288, 29918, 26776, 13, 4706, 500, 13, 13, 4706, 1583, 29889, 7620, 29918, 1445, 2084, 353, 679, 29883, 9970, 580, 718, 1583, 29889, 2917, 29889, 3198, 3149, 29918, 3972, 718, 934, 29918, 978, 13, 4706, 1550, 5852, 29901, 13, 9651, 1018, 29901, 13, 18884, 4842, 305, 29889, 7620, 29898, 3859, 29892, 1583, 29889, 7620, 29918, 1445, 2084, 29897, 13, 18884, 2867, 13, 9651, 5174, 3497, 17413, 2392, 29901, 13, 18884, 274, 2158, 877, 11432, 4761, 3497, 451, 1476, 29889, 742, 525, 1127, 1495, 13, 18884, 274, 2158, 877, 11690, 4761, 26221, 934, 322, 1811, 304, 1423, 3149, 1449, 742, 525, 29136, 1495, 13, 18884, 285, 353, 3523, 29876, 29898, 1311, 29889, 7620, 29918, 1445, 2084, 29892, 525, 29893, 29974, 1495, 13, 4706, 565, 338, 29918, 13318, 29901, 13, 9651, 528, 4422, 29889, 8552, 1445, 29898, 1311, 29889, 7620, 29918, 1445, 2084, 29892, 1583, 29889, 2917, 29889, 3198, 3149, 29918, 3972, 718, 525, 13318, 29918, 4299, 29889, 29886, 386, 1495, 13, 268, 13, 1678, 822, 1065, 29898, 1311, 1125, 13, 4706, 14550, 390, 6948, 278, 10823, 29889, 14550, 13, 4706, 1018, 29901, 13, 9651, 28495, 353, 1583, 29889, 14968, 580, 13, 9651, 736, 28495, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 12020, 321, 13, 268, 13, 1678, 822, 7945, 29898, 1311, 1125, 13, 4706, 14550, 6680, 304, 7945, 278, 1904, 29889, 14550, 13, 4706, 28495, 353, 29871, 29900, 13, 4706, 1583, 29889, 2962, 353, 12865, 29889, 3707, 580, 13, 4706, 363, 21502, 305, 297, 3464, 29898, 1311, 29889, 3784, 29918, 1022, 2878, 29892, 1583, 29889, 2917, 29889, 1949, 29918, 1022, 2878, 29879, 1125, 13, 9651, 1583, 29889, 3784, 29918, 1022, 2878, 353, 21502, 305, 13, 9651, 1583, 29889, 14968, 29918, 650, 29918, 1022, 2878, 580, 13, 9651, 1583, 29889, 7620, 29918, 3198, 3149, 29898, 1445, 29918, 978, 29922, 1311, 29889, 3198, 3149, 29918, 1445, 29892, 338, 29918, 13318, 29922, 8824, 29897, 13, 4706, 1583, 29889, 355, 353, 12865, 29889, 3707, 580, 13, 4706, 736, 28495, 13, 268, 13, 1678, 822, 7945, 29918, 650, 29918, 1022, 2878, 29898, 1311, 1125, 13, 4706, 14550, 390, 6948, 263, 2323, 6694, 21502, 305, 29889, 14550, 13, 4706, 1209, 13, 268, 13, 1678, 822, 12725, 29898, 1311, 1125, 13, 4706, 14550, 390, 6948, 263, 11412, 310, 8845, 373, 278, 1904, 29889, 14550, 13, 4706, 1209, 13, 268, 13, 1678, 822, 2186, 675, 29898, 1311, 1125, 13, 4706, 14550, 9550, 7093, 6694, 29889, 14550, 13, 4706, 1209, 2 ]
testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging.py
rdkcmf/rdkb-tools-tdkb
0
37925
<filename>testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging.py ########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2021 RDK Management # # 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. ########################################################################## ''' <?xml version="1.0" encoding="UTF-8"?><xml> <id/> <version>2</version> <name>TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging</name> <primitive_test_id/> <primitive_test_name>WIFIAgent_Get</primitive_test_name> <primitive_test_version>1</primitive_test_version> <status>FREE</status> <synopsis>To check if the channel utilization marker CHUTIL_2 logging is happening according to the log interval set with Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval.</synopsis> <groups_id/> <execution_time>20</execution_time> <long_duration>false</long_duration> <advanced_script>false</advanced_script> <remarks/> <skip>false</skip> <box_types> <box_type>Broadband</box_type> <box_type>RPI</box_type> </box_types> <rdk_versions> <rdk_version>RDKB</rdk_version> </rdk_versions> <test_cases> <test_case_id>TC_WIFIAGENT_148</test_case_id> <test_objective>To check if the channel utilization marker CHUTIL_2 logging is happening according to the log interval set with Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval.</test_objective> <test_type>Positive</test_type> <test_setup>Broadband, RPI</test_setup> <pre_requisite>1.Ccsp Components should be in a running state else invoke cosa_start.sh manually that includes all the ccsp components and TDK Component 2.TDK Agent should be in running state or invoke it through StartTdk.sh script</pre_requisite> <api_or_interface_used>None</api_or_interface_used> <input_parameters>ParamName : Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval ParamValue : 30 or 60 Type : int </input_parameters> <automation_approch>1. Load the modules 2. Get the initial value of Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval. 3. If the initial value is 30, set it to 60 else set the value of Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval to 30. 4. Check if the log file wifihealth.txt is present under /rdklogs/logs. 5. Get the initial count of the telemetry marker CHUTIL_2 and store it. 6. Sleep for a wait time of sum of initial value of Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval and the new value set. 7. After the wait time, check the final count of the telemetry marker CHUTIL_2 and compute the difference with the initial value. 8. The difference should be greater than or equal to 2. 9. Revert Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval to initial value. 10. Unload the modules.</automation_approch> <expected_output>The channel utilization marker CHUTIL_2 logging should happen according to the log interval set with Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval.</expected_output> <priority>High</priority> <test_stub_interface>wifiagent</test_stub_interface> <test_script>TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging</test_script> <skipped>No</skipped> <release_version>M93</release_version> <remarks/> </test_cases> <script_tags/> </xml> ''' def getLogFileTotalLinesCount(tdkTestObj, string, step): cmd = "grep -ire " + "\"" + string + "\" " + "/rdklogs/logs/wifihealth.txt | wc -l"; expectedresult="SUCCESS"; tdkTestObj.addParameter("command",cmd); tdkTestObj.executeTestCase(expectedresult); actualresult = tdkTestObj.getResult(); details = tdkTestObj.getResultDetails(); print "\n*********************************************"; print "TEST STEP %d : Get the number of log lines currently present" %step; print "EXPECTED RESULT %d : Should get the number of log lines currently present" %step; print "Query : %s" %cmd; count = 0; if expectedresult in actualresult: count = int(tdkTestObj.getResultDetails().strip().replace("\\n", "")); tdkTestObj.setResultStatus("SUCCESS"); print "ACTUAL RESULT %d: Successfully captured the number of log lines present : %d" %(step, count); print "[TEST EXECUTION RESULT] : SUCCESS"; else: tdkTestObj.setResultStatus("FAILURE"); print "ACTUAL RESULT %d: Failed to capture the number of log lines present : %s" %(step, details); print "[TEST EXECUTION RESULT] : FAILURE"; print "*********************************************\n"; return count,step; # use tdklib library,which provides a wrapper for tdk testcase script import tdklib; from time import sleep; #Test component to be tested obj = tdklib.TDKScriptingLibrary("pam","RDKB"); sysObj = tdklib.TDKScriptingLibrary("sysutil","RDKB"); #IP and Port of box, No need to change, #This will be replaced with corresponding DUT Ip and port while executing script ip = <ipaddress> port = <port> obj.configureTestCase(ip,port,'TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging'); sysObj.configureTestCase(ip,port,'TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging'); #Get the result of connection with test component and DUT loadmodulestatus=obj.getLoadModuleResult(); sysutilloadmodulestatus=sysObj.getLoadModuleResult(); if "SUCCESS" in loadmodulestatus.upper() and "SUCCESS" in sysutilloadmodulestatus.upper(): #Set the result status of execution obj.setLoadModuleStatus("SUCCESS"); sysObj.setLoadModuleStatus("SUCCESS"); expectedresult="SUCCESS"; step = 1; #Check whether the wifihealth.txt file is present or not tdkTestObj = sysObj.createTestStep('ExecuteCmd'); cmd = "[ -f /rdklogs/logs/wifihealth.txt ] && echo \"File exist\" || echo \"File does not exist\""; tdkTestObj.addParameter("command",cmd); expectedresult="SUCCESS"; tdkTestObj.executeTestCase(expectedresult); actualresult = tdkTestObj.getResult(); details = tdkTestObj.getResultDetails().strip().replace("\\n", ""); print "\nTEST STEP %d: Check for wifihealth log file presence" %step; print "EXPECTED RESULT %d:wifihealth log file should be present" %step; if details == "File exist": tdkTestObj.setResultStatus("SUCCESS"); print "ACTUAL RESULT %d:wifihealth log file is present" %step; #Get the result of execution print "[TEST EXECUTION RESULT] : SUCCESS"; step = step + 1; #Get the value of Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval tdkTestObj = obj.createTestStep('pam_GetParameterValues'); tdkTestObj.addParameter("ParamName","Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval"); #Execute the test case in DUT tdkTestObj.executeTestCase(expectedresult); actualresult = tdkTestObj.getResult(); initial_value = tdkTestObj.getResultDetails(); print "\nTEST STEP %d: Get the TELEMETRY Channel Utility LogInterval from Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval" %step; print "EXPECTED RESULT %d: Should get the TELEMETRY Channel Utility LogInterval from Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval" %step; if expectedresult in actualresult and initial_value != "": DeflogInt = int(initial_value); tdkTestObj.setResultStatus("SUCCESS"); print "ACTUAL RESULT %d: TELEMETRY Channel Utility LogInterval: %d" %(step,DeflogInt); #Get the result of execution print "[TEST EXECUTION RESULT] : SUCCESS"; if DeflogInt == 30: newlogInt = "60"; else: newlogInt = "30"; #Set the LogInterval to newlogInt, the set is cross checked with get step = step + 1; tdkTestObj = obj.createTestStep('pam_SetParameterValues'); tdkTestObj.addParameter("ParamName","Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval"); tdkTestObj.addParameter("ParamValue",newlogInt); tdkTestObj.addParameter("Type","int"); expectedresult="SUCCESS"; tdkTestObj.executeTestCase(expectedresult); actualresult = tdkTestObj.getResult(); details = tdkTestObj.getResultDetails(); print "\nTEST STEP %d: Set the TELEMETRY Channel Utility LogInterval to %ss" %(step, newlogInt); print "EXPECTED RESULT %d: Should set the TELEMETRY Channel Utility LogInterval to %ss" %(step, newlogInt); if expectedresult in actualresult: tdkTestObj.setResultStatus("SUCCESS"); print "ACTUAL RESULT %d: TELEMETRY Channel Utility LogInterval: %s" %(step,details); #Get the result of execution print "[TEST EXECUTION RESULT] : SUCCESS"; print "\nGet the number of log lines \"CHUTIL_2\" in /rdklogs/logs/wifihealth.txt"; step = step + 1; tdkTestObj1 = sysObj.createTestStep('ExecuteCmd'); log = "CHUTIL_2"; no_of_lines_initial,step = getLogFileTotalLinesCount(tdkTestObj1, log, step); print "The initial number of log lines \"CHUTIL_2\" in wifihealth.txt is : %d" %no_of_lines_initial; #Sleeping for initial telemetry interval DeflogInt + newlogInt sleep_time = DeflogInt + int(newlogInt); print "\nSleeping for duration : %d to check if the logging is happening according to the new log interval set" %sleep_time; sleep(sleep_time); print "\nGet the final number of log lines \"CHUTIL_2\" in /rdklogs/logs/wifihealth.txt"; step = step + 1; tdkTestObj1 = sysObj.createTestStep('ExecuteCmd'); log = "CHUTIL_2"; no_of_lines_final,step = getLogFileTotalLinesCount(tdkTestObj1, log, step); print "The initial number of log lines \"CHUTIL_2\" in wifihealth.txt is : %d" %no_of_lines_final; step = step + 1; difference = no_of_lines_final - no_of_lines_initial; print "\nThe CHUTIL_2 log lines can be >= 2, after accounting for the initial log interval and the new log interval set"; print "TEST STEP %d: Should get CHUTIL_2 markers count greater than or equal to 2" %step; print "EXPECTED RESULT %d: The CHUTIL_2 markers count should be greater than or equal to 2" %step; if difference >= 2: tdkTestObj.setResultStatus("SUCCESS"); print "ACTUAL RESULT %d: Number of new CHUTIL_2 markers are : %d" %(step, difference); #Get the result of execution print "[TEST EXECUTION RESULT] : SUCCESS"; else: tdkTestObj.setResultStatus("FAILURE"); print "ACTUAL RESULT %d: Number of new CHUTIL_2 markers are : %d" %(step, difference); #Get the result of execution print "[TEST EXECUTION RESULT] : FAILURE"; else: tdkTestObj.setResultStatus("FAILURE"); print "ACTUAL RESULT %d: Set operation failed" %(step); #Get the result of execution print "[TEST EXECUTION RESULT] :FAILURE"; #Revert the Value step = step + 1; tdkTestObj = obj.createTestStep('pam_SetParameterValues'); tdkTestObj.addParameter("ParamName","Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.ChUtilityLogInterval"); tdkTestObj.addParameter("ParamValue",initial_value); tdkTestObj.addParameter("Type","int"); expectedresult="SUCCESS"; tdkTestObj.executeTestCase(expectedresult); actualresult = tdkTestObj.getResult(); details = tdkTestObj.getResultDetails(); print "\nTEST STEP %d: Revert the TELEMETRY Channel Utility LogInterval to initial value" %step; print "EXPECTED RESULT %d: Should revert the TELEMETRY Channel Utility LogInterval to initial value" %step; if expectedresult in actualresult: tdkTestObj.setResultStatus("SUCCESS"); print "ACTUAL RESULT %d: Revert successful" %step; #Get the result of execution print "[TEST EXECUTION RESULT] : SUCCESS"; else: tdkTestObj.setResultStatus("FAILURE"); print "ACTUAL RESULT %d: Revertion failed" %step; #Get the result of execution print "[TEST EXECUTION RESULT] : FAILURE"; else: tdkTestObj.setResultStatus("FAILURE"); print "ACTUAL RESULT %d: TELEMETRY Channel Utility LogInterval: %s" %(step,details); #Get the result of execution print "[TEST EXECUTION RESULT] : FAILURE"; else: tdkTestObj.setResultStatus("FAILURE"); print "ACTUAL RESULT %d:wifihealth log file is not present" %step; #Get the result of execution print "[TEST EXECUTION RESULT] :FAILURE"; obj.unloadModule("pam") sysObj.unloadModule("sysutil"); else: print "Failed to load module"; obj.setLoadModuleStatus("FAILURE"); sysObj.setLoadModuleStatus("FAILURE"); print "Module loading failed";
[ 1, 529, 9507, 29958, 1688, 16713, 29914, 29934, 17359, 29933, 29914, 9700, 29914, 22119, 3738, 19661, 29914, 9375, 29918, 22119, 3738, 10051, 3919, 29918, 5596, 7141, 2409, 27184, 24619, 3210, 2692, 6227, 29918, 29906, 29918, 3403, 3460, 29889, 2272, 13, 13383, 13383, 13383, 13383, 7346, 2277, 13, 29937, 960, 451, 8703, 6467, 297, 445, 934, 470, 445, 4163, 29915, 29879, 10413, 11259, 29889, 3945, 13, 29937, 934, 278, 1494, 3509, 1266, 322, 7794, 11259, 3394, 29901, 13, 29937, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29896, 390, 17359, 15057, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 13383, 13383, 13383, 13383, 7346, 2277, 13, 12008, 13, 8169, 3134, 1873, 543, 29896, 29889, 29900, 29908, 8025, 543, 10496, 29899, 29947, 8652, 5299, 3134, 29958, 13, 29871, 529, 333, 3779, 13, 29871, 529, 3259, 29958, 29906, 829, 3259, 29958, 13, 29871, 529, 978, 29958, 9375, 29918, 22119, 3738, 10051, 3919, 29918, 5596, 7141, 2409, 27184, 24619, 3210, 2692, 6227, 29918, 29906, 29918, 3403, 3460, 829, 978, 29958, 13, 29871, 529, 9469, 3321, 29918, 1688, 29918, 333, 3779, 13, 29871, 529, 9469, 3321, 29918, 1688, 29918, 978, 29958, 22119, 3738, 19661, 29918, 2577, 829, 9469, 3321, 29918, 1688, 29918, 978, 29958, 13, 29871, 529, 9469, 3321, 29918, 1688, 29918, 3259, 29958, 29896, 829, 9469, 3321, 29918, 1688, 29918, 3259, 29958, 13, 29871, 529, 4882, 29958, 29943, 21661, 829, 4882, 29958, 13, 29871, 529, 19274, 15368, 29958, 1762, 1423, 565, 278, 8242, 3667, 2133, 17456, 5868, 2692, 6227, 29918, 29906, 29871, 12183, 338, 10464, 5034, 304, 278, 1480, 7292, 731, 411, 21830, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 21106, 19274, 15368, 29958, 13, 29871, 529, 13155, 29918, 333, 3779, 13, 29871, 529, 22256, 29918, 2230, 29958, 29906, 29900, 829, 22256, 29918, 2230, 29958, 13, 29871, 529, 5426, 29918, 19708, 29958, 4541, 829, 5426, 29918, 19708, 29958, 13, 29871, 529, 328, 16858, 29918, 2154, 29958, 4541, 829, 328, 16858, 29918, 2154, 29958, 13, 29871, 529, 1745, 17862, 3779, 13, 29871, 529, 11014, 29958, 4541, 829, 11014, 29958, 13, 29871, 529, 1884, 29918, 8768, 29958, 13, 1678, 529, 1884, 29918, 1853, 29958, 29933, 9972, 4980, 829, 1884, 29918, 1853, 29958, 13, 1678, 529, 1884, 29918, 1853, 29958, 29934, 2227, 829, 1884, 29918, 1853, 29958, 13, 29871, 1533, 1884, 29918, 8768, 29958, 13, 29871, 529, 5499, 29895, 29918, 26100, 29958, 13, 1678, 529, 5499, 29895, 29918, 3259, 29958, 29934, 17359, 29933, 829, 5499, 29895, 29918, 3259, 29958, 13, 29871, 1533, 5499, 29895, 29918, 26100, 29958, 13, 29871, 529, 1688, 29918, 11436, 29958, 13, 1678, 529, 1688, 29918, 4878, 29918, 333, 29958, 9472, 29918, 22119, 3738, 10051, 3919, 29918, 29896, 29946, 29947, 829, 1688, 29918, 4878, 29918, 333, 29958, 13, 1678, 529, 1688, 29918, 3318, 573, 29958, 1762, 1423, 565, 278, 8242, 3667, 2133, 17456, 5868, 2692, 6227, 29918, 29906, 29871, 12183, 338, 10464, 5034, 304, 278, 1480, 7292, 731, 411, 21830, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 21106, 1688, 29918, 3318, 573, 29958, 13, 1678, 529, 1688, 29918, 1853, 29958, 9135, 3321, 829, 1688, 29918, 1853, 29958, 13, 1678, 529, 1688, 29918, 14669, 29958, 29933, 9972, 4980, 29892, 390, 2227, 829, 1688, 29918, 14669, 29958, 13, 1678, 529, 1457, 29918, 276, 7680, 568, 29958, 29896, 29889, 29907, 29883, 1028, 422, 9340, 29871, 881, 367, 297, 263, 2734, 2106, 1683, 15928, 22383, 29918, 2962, 29889, 845, 7522, 393, 7805, 599, 278, 21759, 1028, 7117, 322, 323, 17359, 15924, 13, 29906, 29889, 29911, 17359, 28330, 881, 367, 297, 2734, 2106, 470, 15928, 372, 1549, 7370, 29911, 8181, 29889, 845, 2471, 829, 1457, 29918, 276, 7680, 568, 29958, 13, 1678, 529, 2754, 29918, 272, 29918, 13248, 29918, 3880, 29958, 8516, 829, 2754, 29918, 272, 29918, 13248, 29918, 3880, 29958, 13, 1678, 529, 2080, 29918, 16744, 29958, 4736, 1170, 584, 21830, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 13, 4736, 1917, 584, 29871, 29941, 29900, 470, 29871, 29953, 29900, 13, 1542, 584, 938, 13, 829, 2080, 29918, 16744, 29958, 13, 1678, 529, 17405, 362, 29918, 9961, 305, 29958, 29896, 29889, 16012, 278, 10585, 13, 29906, 29889, 3617, 278, 2847, 995, 310, 21830, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 29889, 13, 29941, 29889, 960, 278, 2847, 995, 338, 29871, 29941, 29900, 29892, 731, 372, 304, 29871, 29953, 29900, 1683, 731, 278, 995, 310, 21830, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 304, 29871, 29941, 29900, 29889, 13, 29946, 29889, 5399, 565, 278, 1480, 934, 281, 6832, 354, 4298, 29889, 3945, 338, 2198, 1090, 847, 5499, 29895, 20756, 29914, 20756, 29889, 13, 29945, 29889, 3617, 278, 2847, 2302, 310, 278, 734, 2409, 27184, 17456, 5868, 2692, 6227, 29918, 29906, 322, 3787, 372, 29889, 13, 29953, 29889, 317, 5436, 363, 263, 4480, 931, 310, 2533, 310, 29871, 2847, 995, 310, 21830, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 322, 278, 716, 995, 731, 29889, 13, 29955, 29889, 2860, 278, 4480, 931, 29892, 1423, 278, 2186, 2302, 310, 278, 734, 2409, 27184, 17456, 5868, 2692, 6227, 29918, 29906, 322, 10272, 278, 4328, 411, 278, 2847, 995, 29889, 13, 29947, 29889, 450, 4328, 881, 367, 7621, 1135, 470, 5186, 304, 29871, 29906, 29889, 13, 29929, 29889, 830, 1765, 21830, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 304, 2847, 995, 29889, 13, 29896, 29900, 29889, 853, 1359, 278, 10585, 21106, 17405, 362, 29918, 9961, 305, 29958, 13, 1678, 529, 9684, 29918, 4905, 29958, 1576, 8242, 3667, 2133, 17456, 5868, 2692, 6227, 29918, 29906, 29871, 12183, 881, 3799, 5034, 304, 278, 1480, 7292, 731, 411, 21830, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 21106, 9684, 29918, 4905, 29958, 13, 1678, 529, 29886, 21766, 29958, 16382, 829, 29886, 21766, 29958, 13, 1678, 529, 1688, 29918, 303, 431, 29918, 13248, 29958, 29893, 6832, 14748, 829, 1688, 29918, 303, 431, 29918, 13248, 29958, 13, 1678, 529, 1688, 29918, 2154, 29958, 9375, 29918, 22119, 3738, 10051, 3919, 29918, 5596, 7141, 2409, 27184, 24619, 3210, 2692, 6227, 29918, 29906, 29918, 3403, 3460, 829, 1688, 29918, 2154, 29958, 13, 1678, 529, 2574, 2986, 29958, 3782, 829, 2574, 2986, 29958, 13, 1678, 529, 14096, 29918, 3259, 29958, 29924, 29929, 29941, 829, 14096, 29918, 3259, 29958, 13, 1678, 529, 1745, 17862, 3779, 13, 29871, 1533, 1688, 29918, 11436, 29958, 13, 29871, 529, 2154, 29918, 11338, 3779, 13, 829, 3134, 29958, 13, 13, 12008, 13, 1753, 679, 3403, 2283, 11536, 20261, 3981, 29898, 1594, 29895, 3057, 9930, 29892, 1347, 29892, 4331, 1125, 13, 1678, 9920, 353, 376, 22385, 448, 533, 376, 718, 376, 5931, 29908, 718, 1347, 718, 376, 5931, 29871, 376, 718, 5591, 5499, 29895, 20756, 29914, 20756, 29914, 29893, 6832, 354, 4298, 29889, 3945, 891, 28678, 448, 29880, 1769, 13, 1678, 3806, 2914, 543, 14605, 26925, 1769, 13, 1678, 260, 8181, 3057, 9930, 29889, 1202, 9329, 703, 6519, 613, 9006, 416, 13, 1678, 260, 8181, 3057, 9930, 29889, 7978, 3057, 8259, 29898, 9684, 2914, 416, 13, 1678, 3935, 2914, 353, 260, 8181, 3057, 9930, 29889, 657, 3591, 890, 13, 1678, 4902, 353, 260, 8181, 3057, 9930, 29889, 657, 3591, 10602, 890, 13, 1678, 1596, 6634, 29876, 7775, 7775, 4189, 2328, 29930, 1769, 13, 1678, 1596, 376, 18267, 317, 4330, 29925, 1273, 29881, 584, 3617, 278, 1353, 310, 1480, 3454, 5279, 2198, 29908, 1273, 10568, 29936, 13, 1678, 1596, 376, 5746, 4162, 1783, 3352, 390, 2890, 8647, 1273, 29881, 584, 10575, 679, 278, 1353, 310, 1480, 3454, 5279, 2198, 29908, 1273, 10568, 29936, 13, 1678, 1596, 376, 3010, 584, 1273, 29879, 29908, 1273, 9006, 29936, 13, 1678, 2302, 353, 29871, 29900, 29936, 13, 13, 1678, 565, 3806, 2914, 297, 3935, 2914, 29901, 13, 4706, 2302, 353, 938, 29898, 1594, 29895, 3057, 9930, 29889, 657, 3591, 10602, 2141, 17010, 2141, 6506, 703, 1966, 29876, 613, 376, 8983, 13, 4706, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 14605, 26925, 1496, 13, 4706, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 21397, 3730, 15468, 278, 1353, 310, 1480, 3454, 2198, 584, 1273, 29881, 29908, 1273, 29898, 10568, 29892, 2302, 416, 13, 4706, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 20134, 26925, 1769, 13, 1678, 1683, 29901, 13, 4706, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 4519, 6227, 11499, 1496, 13, 4706, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 18390, 304, 29871, 10446, 278, 1353, 310, 1480, 3454, 2198, 584, 1273, 29879, 29908, 1273, 29898, 10568, 29892, 4902, 416, 13, 4706, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 13515, 6227, 11499, 1769, 13, 1678, 1596, 376, 7775, 7775, 4189, 2328, 17710, 29876, 1769, 13, 1678, 736, 2302, 29892, 10568, 29936, 13, 13, 29937, 671, 260, 8181, 1982, 3489, 29892, 4716, 8128, 263, 14476, 363, 260, 8181, 1243, 4878, 2471, 13, 5215, 260, 8181, 1982, 29936, 13, 3166, 29871, 931, 1053, 8709, 29936, 13, 13, 29937, 3057, 4163, 304, 367, 9528, 13, 5415, 353, 260, 8181, 1982, 29889, 29911, 17359, 4081, 292, 12284, 703, 29886, 314, 3284, 29934, 17359, 29933, 1496, 13, 9675, 9930, 353, 260, 8181, 1982, 29889, 29911, 17359, 4081, 292, 12284, 703, 9675, 4422, 3284, 29934, 17359, 29933, 1496, 13, 13, 29937, 5690, 322, 3371, 310, 3800, 29892, 1939, 817, 304, 1735, 29892, 13, 29937, 4013, 674, 367, 8611, 411, 6590, 360, 2692, 306, 29886, 322, 2011, 1550, 14012, 2471, 13, 666, 353, 529, 666, 7328, 29958, 13, 637, 353, 529, 637, 29958, 13, 5415, 29889, 17591, 3057, 8259, 29898, 666, 29892, 637, 5501, 9375, 29918, 22119, 3738, 10051, 3919, 29918, 5596, 7141, 2409, 27184, 24619, 3210, 2692, 6227, 29918, 29906, 29918, 3403, 3460, 2157, 13, 9675, 9930, 29889, 17591, 3057, 8259, 29898, 666, 29892, 637, 5501, 9375, 29918, 22119, 3738, 10051, 3919, 29918, 5596, 7141, 2409, 27184, 24619, 3210, 2692, 6227, 29918, 29906, 29918, 3403, 3460, 2157, 13, 13, 29937, 2577, 278, 1121, 310, 3957, 411, 1243, 4163, 322, 360, 2692, 13, 1359, 1545, 352, 342, 2389, 29922, 5415, 29889, 657, 5896, 7355, 3591, 890, 13, 9675, 4422, 1359, 1545, 352, 342, 2389, 29922, 9675, 9930, 29889, 657, 5896, 7355, 3591, 890, 13, 13, 361, 376, 14605, 26925, 29908, 297, 2254, 1545, 352, 342, 2389, 29889, 21064, 580, 322, 376, 14605, 26925, 29908, 297, 10876, 4422, 1359, 1545, 352, 342, 2389, 29889, 21064, 7295, 13, 1678, 396, 2697, 278, 1121, 4660, 310, 8225, 13, 1678, 5446, 29889, 842, 5896, 7355, 5709, 703, 14605, 26925, 1496, 13, 1678, 10876, 9930, 29889, 842, 5896, 7355, 5709, 703, 14605, 26925, 1496, 13, 1678, 3806, 2914, 543, 14605, 26925, 1769, 13, 13, 1678, 4331, 353, 29871, 29896, 29936, 13, 1678, 396, 5596, 3692, 278, 281, 6832, 354, 4298, 29889, 3945, 934, 338, 2198, 470, 451, 13, 1678, 260, 8181, 3057, 9930, 353, 10876, 9930, 29889, 3258, 3057, 14448, 877, 12296, 23651, 2157, 13, 1678, 9920, 353, 14704, 448, 29888, 847, 5499, 29895, 20756, 29914, 20756, 29914, 29893, 6832, 354, 4298, 29889, 3945, 4514, 2607, 2916, 13218, 2283, 1863, 5931, 3830, 2916, 13218, 2283, 947, 451, 1863, 5931, 1769, 13, 1678, 260, 8181, 3057, 9930, 29889, 1202, 9329, 703, 6519, 613, 9006, 416, 13, 1678, 3806, 2914, 543, 14605, 26925, 1769, 13, 1678, 260, 8181, 3057, 9930, 29889, 7978, 3057, 8259, 29898, 9684, 2914, 416, 13, 1678, 3935, 2914, 353, 260, 8181, 3057, 9930, 29889, 657, 3591, 890, 13, 1678, 4902, 353, 260, 8181, 3057, 9930, 29889, 657, 3591, 10602, 2141, 17010, 2141, 6506, 703, 1966, 29876, 613, 376, 1496, 13, 13, 1678, 1596, 6634, 29876, 18267, 317, 4330, 29925, 1273, 29881, 29901, 5399, 363, 281, 6832, 354, 4298, 1480, 934, 10122, 29908, 1273, 10568, 29936, 13, 1678, 1596, 376, 5746, 4162, 1783, 3352, 390, 2890, 8647, 1273, 29881, 29901, 29893, 6832, 354, 4298, 1480, 934, 881, 367, 2198, 29908, 1273, 10568, 29936, 13, 13, 1678, 565, 4902, 1275, 376, 2283, 1863, 1115, 13, 4706, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 14605, 26925, 1496, 13, 4706, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 29893, 6832, 354, 4298, 1480, 934, 338, 2198, 29908, 1273, 10568, 29936, 13, 4706, 396, 2577, 278, 1121, 310, 8225, 13, 4706, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 20134, 26925, 1769, 13, 13, 4706, 4331, 353, 4331, 718, 29871, 29896, 29936, 13, 4706, 396, 2577, 278, 995, 310, 21830, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 13, 4706, 260, 8181, 3057, 9930, 353, 5446, 29889, 3258, 3057, 14448, 877, 29886, 314, 29918, 2577, 9329, 9065, 2157, 13, 4706, 260, 8181, 3057, 9930, 29889, 1202, 9329, 703, 4736, 1170, 3284, 11501, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 1496, 13, 4706, 396, 12296, 278, 1243, 1206, 297, 360, 2692, 13, 4706, 260, 8181, 3057, 9930, 29889, 7978, 3057, 8259, 29898, 9684, 2914, 416, 13, 4706, 3935, 2914, 353, 260, 8181, 3057, 9930, 29889, 657, 3591, 890, 13, 4706, 2847, 29918, 1767, 353, 260, 8181, 3057, 9930, 29889, 657, 3591, 10602, 890, 13, 13, 4706, 1596, 6634, 29876, 18267, 317, 4330, 29925, 1273, 29881, 29901, 3617, 278, 17067, 1307, 2303, 5659, 29979, 17368, 22310, 537, 4522, 12506, 515, 21830, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 29908, 1273, 10568, 29936, 13, 4706, 1596, 376, 5746, 4162, 1783, 3352, 390, 2890, 8647, 1273, 29881, 29901, 10575, 679, 278, 17067, 1307, 2303, 5659, 29979, 17368, 22310, 537, 4522, 12506, 515, 21830, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 29908, 1273, 10568, 29936, 13, 13, 4706, 565, 3806, 2914, 297, 3935, 2914, 322, 2847, 29918, 1767, 2804, 376, 1115, 13, 9651, 5282, 1188, 2928, 353, 938, 29898, 11228, 29918, 1767, 416, 13, 9651, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 14605, 26925, 1496, 13, 9651, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 17067, 1307, 2303, 5659, 29979, 17368, 22310, 537, 4522, 12506, 29901, 1273, 29881, 29908, 1273, 29898, 10568, 29892, 3206, 1188, 2928, 416, 13, 9651, 396, 2577, 278, 1121, 310, 8225, 13, 9651, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 20134, 26925, 1769, 13, 13, 9651, 565, 5282, 1188, 2928, 1275, 29871, 29941, 29900, 29901, 13, 18884, 716, 1188, 2928, 353, 376, 29953, 29900, 1769, 13, 9651, 1683, 29901, 13, 18884, 716, 1188, 2928, 353, 376, 29941, 29900, 1769, 13, 13, 9651, 396, 2697, 278, 4522, 12506, 304, 716, 1188, 2928, 29892, 278, 731, 338, 4891, 7120, 411, 679, 13, 9651, 4331, 353, 4331, 718, 29871, 29896, 29936, 13, 9651, 260, 8181, 3057, 9930, 353, 5446, 29889, 3258, 3057, 14448, 877, 29886, 314, 29918, 2697, 9329, 9065, 2157, 13, 9651, 260, 8181, 3057, 9930, 29889, 1202, 9329, 703, 4736, 1170, 3284, 11501, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 1496, 13, 9651, 260, 8181, 3057, 9930, 29889, 1202, 9329, 703, 4736, 1917, 613, 1482, 1188, 2928, 416, 13, 9651, 260, 8181, 3057, 9930, 29889, 1202, 9329, 703, 1542, 3284, 524, 1496, 13, 9651, 3806, 2914, 543, 14605, 26925, 1769, 13, 9651, 260, 8181, 3057, 9930, 29889, 7978, 3057, 8259, 29898, 9684, 2914, 416, 13, 9651, 3935, 2914, 353, 260, 8181, 3057, 9930, 29889, 657, 3591, 890, 13, 9651, 4902, 353, 260, 8181, 3057, 9930, 29889, 657, 3591, 10602, 890, 13, 13, 9651, 1596, 6634, 29876, 18267, 317, 4330, 29925, 1273, 29881, 29901, 3789, 278, 17067, 1307, 2303, 5659, 29979, 17368, 22310, 537, 4522, 12506, 304, 1273, 893, 29908, 1273, 29898, 10568, 29892, 716, 1188, 2928, 416, 13, 9651, 1596, 376, 5746, 4162, 1783, 3352, 390, 2890, 8647, 1273, 29881, 29901, 10575, 731, 278, 17067, 1307, 2303, 5659, 29979, 17368, 22310, 537, 4522, 12506, 304, 1273, 893, 29908, 1273, 29898, 10568, 29892, 716, 1188, 2928, 416, 13, 13, 9651, 565, 3806, 2914, 297, 3935, 2914, 29901, 13, 18884, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 14605, 26925, 1496, 13, 18884, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 17067, 1307, 2303, 5659, 29979, 17368, 22310, 537, 4522, 12506, 29901, 1273, 29879, 29908, 1273, 29898, 10568, 29892, 14144, 416, 13, 18884, 396, 2577, 278, 1121, 310, 8225, 13, 18884, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 20134, 26925, 1769, 13, 13, 18884, 1596, 6634, 29876, 2577, 278, 1353, 310, 1480, 3454, 13218, 3210, 2692, 6227, 29918, 29906, 5931, 297, 847, 5499, 29895, 20756, 29914, 20756, 29914, 29893, 6832, 354, 4298, 29889, 3945, 1769, 13, 18884, 4331, 353, 4331, 718, 29871, 29896, 29936, 13, 18884, 260, 8181, 3057, 9930, 29896, 353, 10876, 9930, 29889, 3258, 3057, 14448, 877, 12296, 23651, 2157, 13, 18884, 1480, 353, 376, 3210, 2692, 6227, 29918, 29906, 1769, 13, 18884, 694, 29918, 974, 29918, 9012, 29918, 11228, 29892, 10568, 353, 679, 3403, 2283, 11536, 20261, 3981, 29898, 1594, 29895, 3057, 9930, 29896, 29892, 1480, 29892, 4331, 416, 13, 18884, 1596, 376, 1576, 2847, 1353, 310, 1480, 3454, 13218, 3210, 2692, 6227, 29918, 29906, 5931, 297, 281, 6832, 354, 4298, 29889, 3945, 338, 584, 1273, 29881, 29908, 1273, 1217, 29918, 974, 29918, 9012, 29918, 11228, 29936, 13, 13, 18884, 396, 29903, 5436, 292, 363, 2847, 734, 2409, 27184, 7292, 5282, 1188, 2928, 718, 716, 1188, 2928, 13, 18884, 8709, 29918, 2230, 353, 5282, 1188, 2928, 718, 938, 29898, 1482, 1188, 2928, 416, 13, 18884, 1596, 6634, 29876, 29903, 5436, 292, 363, 14385, 584, 1273, 29881, 304, 1423, 565, 278, 12183, 338, 10464, 5034, 304, 278, 716, 1480, 7292, 731, 29908, 1273, 17059, 29918, 2230, 29936, 13, 18884, 8709, 29898, 17059, 29918, 2230, 416, 13, 13, 18884, 1596, 6634, 29876, 2577, 278, 2186, 1353, 310, 1480, 3454, 13218, 3210, 2692, 6227, 29918, 29906, 5931, 297, 847, 5499, 29895, 20756, 29914, 20756, 29914, 29893, 6832, 354, 4298, 29889, 3945, 1769, 13, 18884, 4331, 353, 4331, 718, 29871, 29896, 29936, 13, 18884, 260, 8181, 3057, 9930, 29896, 353, 10876, 9930, 29889, 3258, 3057, 14448, 877, 12296, 23651, 2157, 13, 18884, 1480, 353, 376, 3210, 2692, 6227, 29918, 29906, 1769, 13, 18884, 694, 29918, 974, 29918, 9012, 29918, 8394, 29892, 10568, 353, 679, 3403, 2283, 11536, 20261, 3981, 29898, 1594, 29895, 3057, 9930, 29896, 29892, 1480, 29892, 4331, 416, 13, 18884, 1596, 376, 1576, 2847, 1353, 310, 1480, 3454, 13218, 3210, 2692, 6227, 29918, 29906, 5931, 297, 281, 6832, 354, 4298, 29889, 3945, 338, 584, 1273, 29881, 29908, 1273, 1217, 29918, 974, 29918, 9012, 29918, 8394, 29936, 13, 13, 18884, 4331, 353, 4331, 718, 29871, 29896, 29936, 13, 18884, 4328, 353, 694, 29918, 974, 29918, 9012, 29918, 8394, 448, 694, 29918, 974, 29918, 9012, 29918, 11228, 29936, 13, 18884, 1596, 6634, 29876, 1576, 5868, 2692, 6227, 29918, 29906, 1480, 3454, 508, 367, 6736, 29871, 29906, 29892, 1156, 3633, 292, 363, 278, 2847, 1480, 7292, 322, 278, 716, 1480, 7292, 731, 1769, 13, 13, 18884, 1596, 376, 18267, 317, 4330, 29925, 1273, 29881, 29901, 10575, 679, 5868, 2692, 6227, 29918, 29906, 29320, 2302, 7621, 1135, 470, 5186, 304, 29871, 29906, 29908, 1273, 10568, 29936, 13, 18884, 1596, 376, 5746, 4162, 1783, 3352, 390, 2890, 8647, 1273, 29881, 29901, 450, 5868, 2692, 6227, 29918, 29906, 29320, 2302, 881, 367, 7621, 1135, 470, 5186, 304, 29871, 29906, 29908, 1273, 10568, 29936, 13, 13, 18884, 565, 4328, 6736, 29871, 29906, 29901, 13, 462, 1678, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 14605, 26925, 1496, 13, 462, 1678, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 9681, 310, 716, 5868, 2692, 6227, 29918, 29906, 29320, 526, 584, 1273, 29881, 29908, 1273, 29898, 10568, 29892, 4328, 416, 13, 462, 1678, 396, 2577, 278, 1121, 310, 8225, 13, 462, 1678, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 20134, 26925, 1769, 13, 18884, 1683, 29901, 13, 462, 1678, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 4519, 6227, 11499, 1496, 13, 462, 1678, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 9681, 310, 716, 5868, 2692, 6227, 29918, 29906, 29320, 526, 584, 1273, 29881, 29908, 1273, 29898, 10568, 29892, 4328, 416, 13, 462, 1678, 396, 2577, 278, 1121, 310, 8225, 13, 462, 1678, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 13515, 6227, 11499, 1769, 13, 9651, 1683, 29901, 13, 18884, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 4519, 6227, 11499, 1496, 13, 18884, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 3789, 5858, 5229, 29908, 1273, 29898, 10568, 416, 13, 18884, 396, 2577, 278, 1121, 310, 8225, 13, 18884, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 4519, 6227, 11499, 1769, 13, 13, 9651, 396, 1123, 1765, 278, 7865, 13, 9651, 4331, 353, 4331, 718, 29871, 29896, 29936, 13, 9651, 260, 8181, 3057, 9930, 353, 5446, 29889, 3258, 3057, 14448, 877, 29886, 314, 29918, 2697, 9329, 9065, 2157, 13, 9651, 260, 8181, 3057, 9930, 29889, 1202, 9329, 703, 4736, 1170, 3284, 11501, 29889, 11501, 3401, 29889, 29990, 29918, 29934, 17359, 29907, 3919, 29934, 1964, 29899, 19795, 29918, 22119, 3738, 29918, 4330, 1307, 2303, 5659, 29979, 29889, 1451, 7270, 537, 3403, 12506, 1496, 13, 9651, 260, 8181, 3057, 9930, 29889, 1202, 9329, 703, 4736, 1917, 613, 11228, 29918, 1767, 416, 13, 9651, 260, 8181, 3057, 9930, 29889, 1202, 9329, 703, 1542, 3284, 524, 1496, 13, 9651, 3806, 2914, 543, 14605, 26925, 1769, 13, 9651, 260, 8181, 3057, 9930, 29889, 7978, 3057, 8259, 29898, 9684, 2914, 416, 13, 9651, 3935, 2914, 353, 260, 8181, 3057, 9930, 29889, 657, 3591, 890, 13, 9651, 4902, 353, 260, 8181, 3057, 9930, 29889, 657, 3591, 10602, 890, 13, 13, 9651, 1596, 6634, 29876, 18267, 317, 4330, 29925, 1273, 29881, 29901, 830, 1765, 278, 17067, 1307, 2303, 5659, 29979, 17368, 22310, 537, 4522, 12506, 304, 2847, 995, 29908, 1273, 10568, 29936, 13, 9651, 1596, 376, 5746, 4162, 1783, 3352, 390, 2890, 8647, 1273, 29881, 29901, 10575, 29538, 278, 17067, 1307, 2303, 5659, 29979, 17368, 22310, 537, 4522, 12506, 304, 2847, 995, 29908, 1273, 10568, 29936, 13, 13, 9651, 565, 3806, 2914, 297, 3935, 2914, 29901, 13, 18884, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 14605, 26925, 1496, 13, 18884, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 830, 1765, 9150, 29908, 1273, 10568, 29936, 13, 18884, 396, 2577, 278, 1121, 310, 8225, 13, 18884, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 20134, 26925, 1769, 13, 9651, 1683, 29901, 13, 18884, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 4519, 6227, 11499, 1496, 13, 18884, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 830, 1765, 291, 5229, 29908, 1273, 10568, 29936, 13, 18884, 396, 2577, 278, 1121, 310, 8225, 13, 18884, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 13515, 6227, 11499, 1769, 13, 4706, 1683, 29901, 13, 9651, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 4519, 6227, 11499, 1496, 13, 9651, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 17067, 1307, 2303, 5659, 29979, 17368, 22310, 537, 4522, 12506, 29901, 1273, 29879, 29908, 1273, 29898, 10568, 29892, 14144, 416, 13, 9651, 396, 2577, 278, 1121, 310, 8225, 13, 9651, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 13515, 6227, 11499, 1769, 13, 1678, 1683, 29901, 13, 4706, 260, 8181, 3057, 9930, 29889, 842, 3591, 5709, 703, 4519, 6227, 11499, 1496, 13, 4706, 1596, 376, 17923, 29965, 1964, 390, 2890, 8647, 1273, 29881, 29901, 29893, 6832, 354, 4298, 1480, 934, 338, 451, 2198, 29908, 1273, 10568, 29936, 13, 4706, 396, 2577, 278, 1121, 310, 8225, 13, 4706, 1596, 14704, 18267, 8528, 11206, 2692, 2725, 390, 2890, 8647, 29962, 584, 4519, 6227, 11499, 1769, 13, 13, 1678, 5446, 29889, 348, 1359, 7355, 703, 29886, 314, 1159, 13, 1678, 10876, 9930, 29889, 348, 1359, 7355, 703, 9675, 4422, 1496, 13, 2870, 29901, 13, 1678, 1596, 376, 17776, 304, 2254, 3883, 1769, 13, 1678, 5446, 29889, 842, 5896, 7355, 5709, 703, 4519, 6227, 11499, 1496, 13, 1678, 10876, 9930, 29889, 842, 5896, 7355, 5709, 703, 4519, 6227, 11499, 1496, 13, 1678, 1596, 376, 7355, 8363, 5229, 1769, 13, 13, 2 ]
sectiondoc/sections/item_list.py
itziakos/sectiondoc
0
124876
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # License: LICENSE.TXT # Author: <NAME> # # Copyright (c) 2011-14, Enthought, Inc. # All rights reserved. # ----------------------------------------------------------------------------- from sectiondoc.util import add_indent from sectiondoc.items import OrDefinitionItem from sectiondoc.renderers import ListItem def item_list(doc, header, renderer=ListItem, item_class=OrDefinitionItem): """ Render the section to sphinx friendly item list. Arguments --------- doc : DocRender The docstring container. header : str The header name that is used for the fields (i.e. ``:<header>:``). renderer : Renderer A renderer instance to render the items. item_class : type The item parser class to use. Default is :class:`~.OrDefinitionItem`. """ items = doc.extract_items(item_class) lines = [':{0}:'.format(header.lower())] prefix = None if len(items) == 1 else '-' renderer = renderer() for item in items: renderer.item = item lines += add_indent(renderer.to_rst(prefix)) lines.append('') return lines
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 448, 2683, 2683, 2683, 2683, 9072, 13, 29937, 29871, 19245, 29901, 365, 2965, 1430, 1660, 29889, 29911, 12188, 13, 29937, 29871, 13361, 29901, 529, 5813, 29958, 13, 29937, 13, 29937, 29871, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29896, 29899, 29896, 29946, 29892, 1174, 386, 1774, 29892, 9266, 29889, 13, 29937, 29871, 2178, 10462, 21676, 29889, 13, 29937, 448, 2683, 2683, 2683, 2683, 9072, 13, 3166, 4004, 1514, 29889, 4422, 1053, 788, 29918, 12860, 13, 3166, 4004, 1514, 29889, 7076, 1053, 1394, 14683, 2001, 13, 3166, 4004, 1514, 29889, 9482, 414, 1053, 2391, 2001, 13, 13, 13, 1753, 2944, 29918, 1761, 29898, 1514, 29892, 4839, 29892, 4050, 261, 29922, 27490, 29892, 2944, 29918, 1990, 29922, 2816, 14683, 2001, 1125, 13, 1678, 9995, 26000, 278, 4004, 304, 269, 561, 14668, 19780, 2944, 1051, 29889, 13, 13, 1678, 11842, 9331, 13, 1678, 448, 1378, 13, 1678, 1574, 584, 28197, 10716, 13, 4706, 450, 1574, 1807, 5639, 29889, 13, 13, 1678, 4839, 584, 851, 13, 4706, 450, 4839, 1024, 393, 338, 1304, 363, 278, 4235, 313, 29875, 29889, 29872, 29889, 4954, 29901, 29966, 6672, 29958, 18078, 12913, 13, 13, 1678, 4050, 261, 584, 26000, 261, 13, 4706, 319, 4050, 261, 2777, 304, 4050, 278, 4452, 29889, 13, 13, 1678, 2944, 29918, 1990, 584, 1134, 13, 4706, 450, 2944, 13812, 770, 304, 671, 29889, 13109, 338, 584, 1990, 18078, 30022, 29889, 2816, 14683, 2001, 1412, 13, 13, 1678, 9995, 13, 1678, 4452, 353, 1574, 29889, 21111, 29918, 7076, 29898, 667, 29918, 1990, 29897, 13, 1678, 3454, 353, 518, 2396, 29912, 29900, 6177, 4286, 4830, 29898, 6672, 29889, 13609, 3101, 29962, 13, 1678, 10944, 353, 6213, 565, 7431, 29898, 7076, 29897, 1275, 29871, 29896, 1683, 17411, 29915, 13, 1678, 4050, 261, 353, 4050, 261, 580, 13, 1678, 363, 2944, 297, 4452, 29901, 13, 4706, 4050, 261, 29889, 667, 353, 2944, 13, 4706, 3454, 4619, 788, 29918, 12860, 29898, 9482, 261, 29889, 517, 29918, 29878, 303, 29898, 13506, 876, 13, 1678, 3454, 29889, 4397, 877, 1495, 13, 1678, 736, 3454, 13, 2 ]
src/pysolo/c_wrapper/function_alias.py
NCAR/lrose-solo-python
0
1600957
# this module handles mapping of C-function names # also handles which library to import based on platform import platform from pathlib import Path import ctypes aliases = {} # list of functions PySolo uses functions = [ "assert_bad_flags", "assign_value", "bad_flags_logic", "BB_unfold_first_good_gate", "BB_unfold_local_wind", "clear_bad_flags", "copy_bad_flags", "do_clear_bad_flags_array", "despeckle", "flagged_add", "flag_freckles", "flag_glitches", "funfold", "merge_fields", "radial_shear", "rain_rate", "ring_zap", "set_bad_flags", "threshold_field", "remove_ac_motion", "remove_storm_motion", ] # from this script file, go up two directories (pysolo) then into libs/libSolo... pysolo_dir = Path(__file__).parents[1].absolute() # get appropriate library depending on platform # the DLL from Windows has "extern C" so no name mangling occurs. if (platform.system() == "Windows"): path_to_file = pysolo_dir / Path('libs/solo.dll') c_lib = ctypes.CDLL(str(path_to_file)) for function in functions: aliases[function] = c_lib["se_" + function] # Linux, on the other hand, has name manging. # Algorithm was required to retrieve the functions from the mangled names. else: import os import re temp_dir = pysolo_dir / Path("temp") shared_lib_path = Path(__file__).parents[1].absolute() / Path('libs/libSolo_18.04.so') # run readelf to get a list of C-functions with their mangled names, save results to file os.system("mkdir %s" % temp_dir) os.system("readelf -Ws %s > %s" % (shared_lib_path, temp_dir / Path("readelf.txt"))) # read all content from the command content = open(temp_dir / Path("readelf.txt")).read() # use regex pattern to discover all mangled functions, retrieve the unmangled name from group matches = re.findall(r'(_Z\w+se_\w+)', content, re.M) # initialize c_types object for shared library c_lib = ctypes.CDLL(str(shared_lib_path)) # iterate through matches, check if PySolo uses that function. If so, save to map. for match in matches: for func in functions: if func in match: aliases[func] = c_lib[match] # remove command output. os.system("rm -r %s" % temp_dir) # make sure all the needed functions are mapped for func in functions: assert func in aliases, func
[ 1, 396, 445, 3883, 17766, 10417, 310, 315, 29899, 2220, 2983, 13, 29937, 884, 17766, 607, 3489, 304, 1053, 2729, 373, 7481, 13, 13, 5215, 7481, 13, 3166, 2224, 1982, 1053, 10802, 13, 5215, 274, 8768, 13, 13, 2606, 2129, 353, 6571, 13, 13, 29937, 1051, 310, 3168, 10772, 29903, 3543, 3913, 13, 12171, 353, 518, 13, 1678, 376, 9294, 29918, 12313, 29918, 15764, 613, 13, 1678, 376, 16645, 29918, 1767, 613, 13, 1678, 376, 12313, 29918, 15764, 29918, 19227, 613, 29871, 13, 1678, 376, 14388, 29918, 348, 8771, 29918, 4102, 29918, 16773, 29918, 17062, 613, 13, 1678, 376, 14388, 29918, 348, 8771, 29918, 2997, 29918, 14800, 613, 13, 1678, 376, 8551, 29918, 12313, 29918, 15764, 613, 13, 1678, 376, 8552, 29918, 12313, 29918, 15764, 613, 29871, 13, 1678, 376, 1867, 29918, 8551, 29918, 12313, 29918, 15764, 29918, 2378, 613, 13, 1678, 376, 2783, 412, 384, 280, 613, 13, 1678, 376, 15581, 3192, 29918, 1202, 613, 29871, 13, 1678, 376, 15581, 29918, 10745, 384, 793, 613, 13, 1678, 376, 15581, 29918, 3820, 2335, 267, 613, 13, 1678, 376, 7692, 8771, 613, 13, 1678, 376, 14634, 29918, 9621, 613, 13, 1678, 376, 3665, 616, 29918, 11360, 279, 613, 13, 1678, 376, 6038, 29918, 10492, 613, 13, 1678, 376, 5393, 29918, 29920, 481, 613, 13, 1678, 376, 842, 29918, 12313, 29918, 15764, 613, 13, 1678, 376, 386, 12268, 29918, 2671, 613, 13, 1678, 376, 5992, 29918, 562, 29918, 29885, 8194, 613, 13, 1678, 376, 5992, 29918, 303, 555, 29918, 29885, 8194, 613, 13, 29962, 13, 13, 29937, 515, 445, 2471, 934, 29892, 748, 701, 1023, 17525, 313, 29886, 952, 3543, 29897, 769, 964, 4303, 29879, 29914, 1982, 29903, 3543, 856, 13, 29886, 952, 3543, 29918, 3972, 353, 10802, 22168, 1445, 1649, 467, 862, 1237, 29961, 29896, 1822, 23552, 580, 13, 13, 29937, 679, 8210, 3489, 8679, 373, 7481, 13, 29937, 278, 22474, 515, 3852, 756, 376, 735, 725, 315, 29908, 577, 694, 1024, 25016, 1847, 10008, 29889, 13, 361, 313, 12120, 29889, 5205, 580, 1275, 376, 7685, 29908, 1125, 13, 1678, 2224, 29918, 517, 29918, 1445, 353, 282, 952, 3543, 29918, 3972, 847, 10802, 877, 10254, 29914, 2929, 29877, 29889, 12396, 1495, 13, 1678, 274, 29918, 1982, 353, 274, 8768, 29889, 6530, 2208, 29898, 710, 29898, 2084, 29918, 517, 29918, 1445, 876, 13, 1678, 363, 740, 297, 3168, 29901, 13, 4706, 14430, 2129, 29961, 2220, 29962, 353, 274, 29918, 1982, 3366, 344, 27508, 718, 740, 29962, 13, 13, 29937, 8074, 29892, 373, 278, 916, 1361, 29892, 756, 1024, 286, 9776, 29889, 13, 29937, 29068, 471, 3734, 304, 10563, 278, 3168, 515, 278, 25016, 839, 2983, 29889, 13, 2870, 29901, 13, 1678, 1053, 2897, 13, 1678, 1053, 337, 13, 13, 1678, 5694, 29918, 3972, 353, 282, 952, 3543, 29918, 3972, 847, 10802, 703, 7382, 1159, 13, 1678, 7258, 29918, 1982, 29918, 2084, 353, 10802, 22168, 1445, 1649, 467, 862, 1237, 29961, 29896, 1822, 23552, 580, 847, 10802, 877, 10254, 29914, 1982, 29903, 3543, 29918, 29896, 29947, 29889, 29900, 29946, 29889, 578, 1495, 13, 13, 1678, 396, 1065, 1303, 761, 304, 679, 263, 1051, 310, 315, 29899, 12171, 411, 1009, 25016, 839, 2983, 29892, 4078, 2582, 304, 934, 13, 1678, 2897, 29889, 5205, 703, 11256, 3972, 1273, 29879, 29908, 1273, 5694, 29918, 3972, 29897, 13, 1678, 2897, 29889, 5205, 703, 949, 761, 448, 29956, 29879, 1273, 29879, 1405, 1273, 29879, 29908, 1273, 313, 12366, 29918, 1982, 29918, 2084, 29892, 5694, 29918, 3972, 847, 10802, 703, 949, 761, 29889, 3945, 29908, 4961, 13, 13, 1678, 396, 1303, 599, 2793, 515, 278, 1899, 13, 1678, 2793, 353, 1722, 29898, 7382, 29918, 3972, 847, 10802, 703, 949, 761, 29889, 3945, 1159, 467, 949, 580, 13, 13, 1678, 396, 671, 6528, 4766, 304, 6523, 599, 25016, 839, 3168, 29892, 10563, 278, 443, 29885, 574, 839, 1024, 515, 2318, 13, 1678, 7087, 353, 337, 29889, 2886, 497, 29898, 29878, 29915, 7373, 29999, 29905, 29893, 29974, 344, 3187, 29893, 28135, 742, 2793, 29892, 337, 29889, 29924, 29897, 13, 13, 1678, 396, 11905, 274, 29918, 8768, 1203, 363, 7258, 3489, 13, 1678, 274, 29918, 1982, 353, 274, 8768, 29889, 6530, 2208, 29898, 710, 29898, 12366, 29918, 1982, 29918, 2084, 876, 13, 1678, 396, 13649, 1549, 7087, 29892, 1423, 565, 10772, 29903, 3543, 3913, 393, 740, 29889, 960, 577, 29892, 4078, 304, 2910, 29889, 13, 1678, 363, 1993, 297, 7087, 29901, 13, 4706, 363, 3653, 297, 3168, 29901, 13, 9651, 565, 3653, 297, 1993, 29901, 13, 18884, 14430, 2129, 29961, 9891, 29962, 353, 274, 29918, 1982, 29961, 4352, 29962, 13, 13, 1678, 396, 3349, 1899, 1962, 29889, 13, 1678, 2897, 29889, 5205, 703, 1758, 448, 29878, 1273, 29879, 29908, 1273, 5694, 29918, 3972, 29897, 13, 13, 29937, 1207, 1854, 599, 278, 4312, 3168, 526, 20545, 13, 1454, 3653, 297, 3168, 29901, 13, 1678, 4974, 3653, 297, 14430, 2129, 29892, 3653, 13, 2 ]
pytorch_fm/torchfm/dataset/avazu.py
qianrenjian/hy_learn
0
1613084
import shutil import struct from collections import defaultdict from pathlib import Path import lmdb import numpy as np import torch.utils.data from tqdm import tqdm class AvazuDataset(torch.utils.data.Dataset): """ Avazu Click-Through Rate Prediction Dataset Dataset preparation Remove the infrequent features (appearing in less than threshold instances) and treat them as a single feature :param dataset_path: avazu train path :param cache_path: lmdb cache path :param rebuild_cache: If True, lmdb cache is refreshed :param min_threshold: infrequent feature threshold Reference https://www.kaggle.com/c/avazu-ctr-prediction """ def __init__(self, dataset_path=None, cache_path='.avazu', rebuild_cache=False, min_threshold=4): self.NUM_FEATS = 22 self.min_threshold = min_threshold if rebuild_cache or not Path(cache_path).exists(): shutil.rmtree(cache_path, ignore_errors=True) if dataset_path is None: raise ValueError('create cache: failed: dataset_path is None') self.__build_cache(dataset_path, cache_path) self.env = lmdb.open(cache_path, create=False, lock=False, readonly=True) with self.env.begin(write=False) as txn: self.length = txn.stat()['entries'] - 1 self.field_dims = np.frombuffer(txn.get(b'field_dims'), dtype=np.uint32) def __getitem__(self, index): with self.env.begin(write=False) as txn: np_array = np.frombuffer( txn.get(struct.pack('>I', index)), dtype=np.uint32).astype(dtype=np.long) return np_array[1:], np_array[0] def __len__(self): return self.length def __build_cache(self, path, cache_path): feat_mapper, defaults = self.__get_feat_mapper(path) with lmdb.open(cache_path, map_size=int(1e11)) as env: field_dims = np.zeros(self.NUM_FEATS, dtype=np.uint32) for i, fm in feat_mapper.items(): field_dims[i - 1] = len(fm) + 1 with env.begin(write=True) as txn: txn.put(b'field_dims', field_dims.tobytes()) for buffer in self.__yield_buffer(path, feat_mapper, defaults): with env.begin(write=True) as txn: for key, value in buffer: txn.put(key, value) def __get_feat_mapper(self, path): feat_cnts = defaultdict(lambda: defaultdict(int)) with open(path) as f: f.readline() pbar = tqdm(f, mininterval=1, smoothing=0.1) pbar.set_description('Create avazu dataset cache: counting features') for line in pbar: values = line.rstrip('\n').split(',') if len(values) != self.NUM_FEATS + 2: continue for i in range(1, self.NUM_FEATS + 1): feat_cnts[i][values[i + 1]] += 1 feat_mapper = {i: {feat for feat, c in cnt.items() if c >= self.min_threshold} for i, cnt in feat_cnts.items()} feat_mapper = {i: {feat: idx for idx, feat in enumerate(cnt)} for i, cnt in feat_mapper.items()} defaults = {i: len(cnt) for i, cnt in feat_mapper.items()} return feat_mapper, defaults def __yield_buffer(self, path, feat_mapper, defaults, buffer_size=int(1e5)): item_idx = 0 buffer = list() with open(path) as f: f.readline() pbar = tqdm(f, mininterval=1, smoothing=0.1) pbar.set_description('Create avazu dataset cache: setup lmdb') for line in pbar: values = line.rstrip('\n').split(',') if len(values) != self.NUM_FEATS + 2: continue np_array = np.zeros(self.NUM_FEATS + 1, dtype=np.uint32) np_array[0] = int(values[1]) for i in range(1, self.NUM_FEATS + 1): np_array[i] = feat_mapper[i].get(values[i+1], defaults[i]) buffer.append((struct.pack('>I', item_idx), np_array.tobytes())) item_idx += 1 if item_idx % buffer_size == 0: yield buffer buffer.clear() yield buffer
[ 1, 1053, 528, 4422, 30004, 13, 5215, 2281, 30004, 13, 3166, 16250, 1053, 2322, 8977, 30004, 13, 3166, 2224, 1982, 1053, 10802, 30004, 13, 30004, 13, 5215, 301, 29885, 2585, 30004, 13, 5215, 12655, 408, 7442, 30004, 13, 5215, 4842, 305, 29889, 13239, 29889, 1272, 30004, 13, 3166, 260, 29939, 18933, 1053, 260, 29939, 18933, 30004, 13, 30004, 13, 30004, 13, 1990, 7740, 13581, 16390, 24541, 29898, 7345, 305, 29889, 13239, 29889, 1272, 29889, 16390, 24541, 1125, 30004, 13, 1678, 9995, 30004, 13, 1678, 7740, 13581, 16297, 29899, 29911, 1092, 820, 390, 403, 21099, 2463, 13373, 24541, 30004, 13, 30004, 13, 1678, 13373, 24541, 10223, 362, 30004, 13, 4706, 15154, 278, 3041, 276, 16011, 5680, 313, 932, 799, 292, 297, 3109, 1135, 16897, 8871, 29897, 322, 7539, 963, 408, 263, 2323, 4682, 30004, 13, 30004, 13, 1678, 584, 3207, 8783, 29918, 2084, 29901, 1029, 13581, 7945, 2224, 30004, 13, 1678, 584, 3207, 7090, 29918, 2084, 29901, 301, 29885, 2585, 7090, 2224, 30004, 13, 1678, 584, 3207, 337, 4282, 29918, 8173, 29901, 960, 5852, 29892, 301, 29885, 2585, 7090, 338, 11086, 287, 30004, 13, 1678, 584, 3207, 1375, 29918, 386, 12268, 29901, 3041, 276, 16011, 4682, 16897, 30004, 13, 30004, 13, 1678, 12105, 30004, 13, 4706, 2045, 597, 1636, 29889, 29895, 351, 6234, 29889, 510, 29914, 29883, 29914, 485, 13581, 29899, 9988, 29899, 11965, 2463, 30004, 13, 1678, 9995, 30004, 13, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 8783, 29918, 2084, 29922, 8516, 29892, 7090, 29918, 2084, 2433, 29889, 485, 13581, 742, 337, 4282, 29918, 8173, 29922, 8824, 29892, 1375, 29918, 386, 12268, 29922, 29946, 1125, 30004, 13, 4706, 1583, 29889, 13967, 29918, 16359, 1299, 29903, 353, 29871, 29906, 29906, 30004, 13, 4706, 1583, 29889, 1195, 29918, 386, 12268, 353, 1375, 29918, 386, 12268, 30004, 13, 4706, 565, 337, 4282, 29918, 8173, 470, 451, 10802, 29898, 8173, 29918, 2084, 467, 9933, 7295, 30004, 13, 9651, 528, 4422, 29889, 1758, 8336, 29898, 8173, 29918, 2084, 29892, 11455, 29918, 12523, 29922, 5574, 8443, 13, 9651, 565, 8783, 29918, 2084, 338, 6213, 29901, 30004, 13, 18884, 12020, 7865, 2392, 877, 3258, 7090, 29901, 5229, 29901, 8783, 29918, 2084, 338, 6213, 1495, 30004, 13, 9651, 1583, 17255, 4282, 29918, 8173, 29898, 24713, 29918, 2084, 29892, 7090, 29918, 2084, 8443, 13, 4706, 1583, 29889, 6272, 353, 301, 29885, 2585, 29889, 3150, 29898, 8173, 29918, 2084, 29892, 1653, 29922, 8824, 29892, 7714, 29922, 8824, 29892, 20623, 29922, 5574, 8443, 13, 4706, 411, 1583, 29889, 6272, 29889, 463, 29898, 3539, 29922, 8824, 29897, 408, 25568, 29876, 29901, 30004, 13, 9651, 1583, 29889, 2848, 353, 25568, 29876, 29889, 6112, 580, 1839, 26586, 2033, 448, 29871, 29896, 30004, 13, 9651, 1583, 29889, 2671, 29918, 6229, 29879, 353, 7442, 29889, 3166, 9040, 29898, 7508, 29876, 29889, 657, 29898, 29890, 29915, 2671, 29918, 6229, 29879, 5477, 26688, 29922, 9302, 29889, 13470, 29941, 29906, 8443, 13, 30004, 13, 1678, 822, 4770, 657, 667, 12035, 1311, 29892, 2380, 1125, 30004, 13, 4706, 411, 1583, 29889, 6272, 29889, 463, 29898, 3539, 29922, 8824, 29897, 408, 25568, 29876, 29901, 30004, 13, 9651, 7442, 29918, 2378, 353, 7442, 29889, 3166, 9040, 29898, 30004, 13, 18884, 25568, 29876, 29889, 657, 29898, 4984, 29889, 4058, 877, 29958, 29902, 742, 2380, 8243, 26688, 29922, 9302, 29889, 13470, 29941, 29906, 467, 579, 668, 29898, 29881, 1853, 29922, 9302, 29889, 5426, 8443, 13, 4706, 736, 7442, 29918, 2378, 29961, 29896, 29901, 1402, 7442, 29918, 2378, 29961, 29900, 29962, 30004, 13, 30004, 13, 1678, 822, 4770, 2435, 12035, 1311, 1125, 30004, 13, 4706, 736, 1583, 29889, 2848, 30004, 13, 30004, 13, 1678, 822, 4770, 4282, 29918, 8173, 29898, 1311, 29892, 2224, 29892, 7090, 29918, 2084, 1125, 30004, 13, 4706, 1238, 271, 29918, 655, 2496, 29892, 21274, 353, 1583, 17255, 657, 29918, 1725, 271, 29918, 655, 2496, 29898, 2084, 8443, 13, 4706, 411, 301, 29885, 2585, 29889, 3150, 29898, 8173, 29918, 2084, 29892, 2910, 29918, 2311, 29922, 524, 29898, 29896, 29872, 29896, 29896, 876, 408, 8829, 29901, 30004, 13, 9651, 1746, 29918, 6229, 29879, 353, 7442, 29889, 3298, 359, 29898, 1311, 29889, 13967, 29918, 16359, 1299, 29903, 29892, 26688, 29922, 9302, 29889, 13470, 29941, 29906, 8443, 13, 9651, 363, 474, 29892, 285, 29885, 297, 1238, 271, 29918, 655, 2496, 29889, 7076, 7295, 30004, 13, 18884, 1746, 29918, 6229, 29879, 29961, 29875, 448, 29871, 29896, 29962, 353, 7431, 29898, 24826, 29897, 718, 29871, 29896, 30004, 13, 9651, 411, 8829, 29889, 463, 29898, 3539, 29922, 5574, 29897, 408, 25568, 29876, 29901, 30004, 13, 18884, 25568, 29876, 29889, 649, 29898, 29890, 29915, 2671, 29918, 6229, 29879, 742, 1746, 29918, 6229, 29879, 29889, 517, 13193, 3101, 30004, 13, 9651, 363, 6835, 297, 1583, 17255, 29891, 969, 29918, 9040, 29898, 2084, 29892, 1238, 271, 29918, 655, 2496, 29892, 21274, 1125, 30004, 13, 18884, 411, 8829, 29889, 463, 29898, 3539, 29922, 5574, 29897, 408, 25568, 29876, 29901, 30004, 13, 462, 1678, 363, 1820, 29892, 995, 297, 6835, 29901, 30004, 13, 462, 4706, 25568, 29876, 29889, 649, 29898, 1989, 29892, 995, 8443, 13, 30004, 13, 1678, 822, 4770, 657, 29918, 1725, 271, 29918, 655, 2496, 29898, 1311, 29892, 2224, 1125, 30004, 13, 4706, 1238, 271, 29918, 20047, 29879, 353, 2322, 8977, 29898, 2892, 29901, 2322, 8977, 29898, 524, 876, 30004, 13, 4706, 411, 1722, 29898, 2084, 29897, 408, 285, 29901, 30004, 13, 9651, 285, 29889, 949, 1220, 26471, 13, 9651, 282, 1646, 353, 260, 29939, 18933, 29898, 29888, 29892, 1375, 19207, 29922, 29896, 29892, 1560, 29877, 6046, 29922, 29900, 29889, 29896, 8443, 13, 9651, 282, 1646, 29889, 842, 29918, 8216, 877, 4391, 1029, 13581, 8783, 7090, 29901, 21248, 5680, 1495, 30004, 13, 9651, 363, 1196, 297, 282, 1646, 29901, 30004, 13, 18884, 1819, 353, 1196, 29889, 29878, 17010, 28909, 29876, 2824, 5451, 29317, 1495, 30004, 13, 18884, 565, 7431, 29898, 5975, 29897, 2804, 1583, 29889, 13967, 29918, 16359, 1299, 29903, 718, 29871, 29906, 29901, 30004, 13, 462, 1678, 6773, 30004, 13, 18884, 363, 474, 297, 3464, 29898, 29896, 29892, 1583, 29889, 13967, 29918, 16359, 1299, 29903, 718, 29871, 29896, 1125, 30004, 13, 462, 1678, 1238, 271, 29918, 20047, 29879, 29961, 29875, 3816, 5975, 29961, 29875, 718, 29871, 29896, 5262, 4619, 29871, 29896, 30004, 13, 4706, 1238, 271, 29918, 655, 2496, 353, 426, 29875, 29901, 426, 1725, 271, 363, 1238, 271, 29892, 274, 297, 274, 593, 29889, 7076, 580, 565, 274, 6736, 1583, 29889, 1195, 29918, 386, 12268, 29913, 363, 474, 29892, 274, 593, 297, 1238, 271, 29918, 20047, 29879, 29889, 7076, 580, 8117, 13, 4706, 1238, 271, 29918, 655, 2496, 353, 426, 29875, 29901, 426, 1725, 271, 29901, 22645, 363, 22645, 29892, 1238, 271, 297, 26985, 29898, 20047, 2915, 363, 474, 29892, 274, 593, 297, 1238, 271, 29918, 655, 2496, 29889, 7076, 580, 8117, 13, 4706, 21274, 353, 426, 29875, 29901, 7431, 29898, 20047, 29897, 363, 474, 29892, 274, 593, 297, 1238, 271, 29918, 655, 2496, 29889, 7076, 580, 8117, 13, 4706, 736, 1238, 271, 29918, 655, 2496, 29892, 21274, 30004, 13, 30004, 13, 1678, 822, 4770, 29891, 969, 29918, 9040, 29898, 1311, 29892, 2224, 29892, 1238, 271, 29918, 655, 2496, 29892, 21274, 29892, 6835, 29918, 2311, 29922, 524, 29898, 29896, 29872, 29945, 22164, 30004, 13, 4706, 2944, 29918, 13140, 353, 29871, 29900, 30004, 13, 4706, 6835, 353, 1051, 26471, 13, 4706, 411, 1722, 29898, 2084, 29897, 408, 285, 29901, 30004, 13, 9651, 285, 29889, 949, 1220, 26471, 13, 9651, 282, 1646, 353, 260, 29939, 18933, 29898, 29888, 29892, 1375, 19207, 29922, 29896, 29892, 1560, 29877, 6046, 29922, 29900, 29889, 29896, 8443, 13, 9651, 282, 1646, 29889, 842, 29918, 8216, 877, 4391, 1029, 13581, 8783, 7090, 29901, 6230, 301, 29885, 2585, 1495, 30004, 13, 9651, 363, 1196, 297, 282, 1646, 29901, 30004, 13, 18884, 1819, 353, 1196, 29889, 29878, 17010, 28909, 29876, 2824, 5451, 29317, 1495, 30004, 13, 18884, 565, 7431, 29898, 5975, 29897, 2804, 1583, 29889, 13967, 29918, 16359, 1299, 29903, 718, 29871, 29906, 29901, 30004, 13, 462, 1678, 6773, 30004, 13, 18884, 7442, 29918, 2378, 353, 7442, 29889, 3298, 359, 29898, 1311, 29889, 13967, 29918, 16359, 1299, 29903, 718, 29871, 29896, 29892, 26688, 29922, 9302, 29889, 13470, 29941, 29906, 8443, 13, 18884, 7442, 29918, 2378, 29961, 29900, 29962, 353, 938, 29898, 5975, 29961, 29896, 2314, 30004, 13, 18884, 363, 474, 297, 3464, 29898, 29896, 29892, 1583, 29889, 13967, 29918, 16359, 1299, 29903, 718, 29871, 29896, 1125, 30004, 13, 462, 1678, 7442, 29918, 2378, 29961, 29875, 29962, 353, 1238, 271, 29918, 655, 2496, 29961, 29875, 1822, 657, 29898, 5975, 29961, 29875, 29974, 29896, 1402, 21274, 29961, 29875, 2314, 30004, 13, 18884, 6835, 29889, 4397, 3552, 4984, 29889, 4058, 877, 29958, 29902, 742, 2944, 29918, 13140, 511, 7442, 29918, 2378, 29889, 517, 13193, 22130, 30004, 13, 18884, 2944, 29918, 13140, 4619, 29871, 29896, 30004, 13, 18884, 565, 2944, 29918, 13140, 1273, 6835, 29918, 2311, 1275, 29871, 29900, 29901, 30004, 13, 462, 1678, 7709, 6835, 30004, 13, 462, 1678, 6835, 29889, 8551, 26471, 13, 9651, 7709, 6835, 30004, 13, 2 ]
Movement/2DIK.py
IanSMoyes/SpiderPi
7
197956
#!/usr/bin/python3 # -*- coding: UTF-8 -*- # Copyright <EMAIL> # Programme to calculate inverse kinematics import math def switch_sides(coords): ''' Take account of servo positions switching polarity on the other side of the hexapod param: coords: Tuple containing shoulder, knee & ankle servo positions return: Tuple containing shoulder, knee & ankle servo positions ''' return (1000-coords[0], 1000-coords[1], 1000-coords[2]) def remap(angle): ''' Function takes an angle and returns a servo position param: angle: is the joint angle in radians return: servo position 0-1000 ''' return int(((math.degrees(angle)/120)*500)+500) def inverse_kin(leg, coords): ''' Converts a XYZ coordinate into a set of servo positions using inverse kinematics param:leg: 0~5 param: Coords:Tuple to store the coordinates of the foot (X, Y, Z) ''' # Lengths of the 3 leg elements # The thigh length is important because the mat assumes the shoulder joint is 1, 3D joint thigh = 44.60 # This is the distance across the shoulder joint bracket calf = 75.00 # This is the length of the upper leg member foot = 126.50 # This is the length of the lower leg member x = float(coords[0]) # distance forward the new toe position is y = float(coords[1]) # distance out (from the shoulder joint) the new toe position is if y == 0: y = 1 # Avoids division by 0 z = float(coords[2]) # distance down the new toe position is if z == 0: z = 1 # Avoids division by 0 # The WZ axis is the verticle plane through the shoulder joint, toe position and knee joint # w = the distance along the W axis the new toe position is w = math.sqrt(x**2 + y**2) if w > thigh + calf + foot: return "Position too far" # Goal exceeds reach # The inverse kinematics needs to be calculated on the distance from the knee # joint to the toe position. So the length of the shoulder joint needs to be deducted w -= thigh if w == 0: w = 1 # Avoids division by 0 servo_positions = (remap(math.atan(x/y)),) # shoulderjoint position in the XY plane # toedist = hypoteneus of the triangle made by w, x & the knee joint. # The distance between the nee toe position & the knee joint toedist = math.sqrt(w**2 + z**2) # kneeang = internal angle the knee joint makes between the thigh bone & the toe position kneeang = math.acos((toedist**2 + calf**2 - foot**2)/(2*toedist*calf)) # kneeflex = angle between the W axis & direction to the ankle joint kneeflex = kneeang - math.atan(w/z) # kneepos = servo position to achieve kneeflex servo_positions += (remap(kneeflex),) # ankleang = internal angle between the shin bone and the thigh bone ankleang = math.acos((foot**2+calf**2-toedist**2)/(2*foot*calf)) # ankleflex = external angle between straight and ankleang ankleflex = math.pi - ankleang # anklepos = servo position to achieve ankleflex servo_positions += (remap(ankleflex),) if leg > 2: return switch_sides(servo_positions) return servo_positions if __name__ == '__main__': while True: leg = int(input("Which leg are we working on? ")) x = float(input("Input x cordinate? ")) y = float(input("Input y cordinate? ")) z = float(input("Input z cordinate? ")) print(inverse_kin(leg, (x,y,z)))
[ 1, 18787, 4855, 29914, 2109, 29914, 4691, 29941, 13, 29937, 448, 29930, 29899, 14137, 29901, 18351, 29899, 29947, 448, 29930, 29899, 13, 29937, 14187, 1266, 529, 26862, 6227, 29958, 13, 13, 29937, 7835, 1004, 304, 8147, 16402, 19015, 4579, 1199, 13, 5215, 5844, 13, 13, 1753, 4607, 29918, 29879, 2247, 29898, 1111, 4339, 1125, 13, 1678, 14550, 13, 1678, 11190, 3633, 310, 724, 1365, 11909, 21293, 16755, 537, 373, 278, 916, 2625, 310, 278, 15090, 481, 397, 13, 1678, 1828, 29901, 1302, 4339, 29901, 12603, 552, 6943, 23468, 29892, 17905, 29872, 669, 385, 29895, 280, 724, 1365, 11909, 13, 1678, 736, 29901, 12603, 552, 6943, 23468, 29892, 17905, 29872, 669, 385, 29895, 280, 724, 1365, 11909, 13, 1678, 14550, 13, 1678, 736, 313, 29896, 29900, 29900, 29900, 29899, 1111, 4339, 29961, 29900, 1402, 29871, 29896, 29900, 29900, 29900, 29899, 1111, 4339, 29961, 29896, 1402, 29871, 29896, 29900, 29900, 29900, 29899, 1111, 4339, 29961, 29906, 2314, 13, 13, 1753, 1083, 481, 29898, 2521, 1125, 13, 1678, 14550, 13, 1678, 6680, 4893, 385, 10696, 322, 3639, 263, 724, 1365, 2602, 13, 1678, 1828, 29901, 10696, 29901, 338, 278, 14002, 10696, 297, 2971, 5834, 13, 1678, 736, 29901, 724, 1365, 2602, 29871, 29900, 29899, 29896, 29900, 29900, 29900, 13, 1678, 14550, 13, 1678, 736, 938, 3552, 29898, 755, 29889, 311, 7979, 267, 29898, 2521, 6802, 29896, 29906, 29900, 11877, 29945, 29900, 29900, 7240, 29945, 29900, 29900, 29897, 13, 13, 1753, 16402, 29918, 9089, 29898, 1397, 29892, 1302, 4339, 1125, 13, 1678, 14550, 13, 1678, 1281, 369, 1372, 263, 1060, 29979, 29999, 14821, 964, 263, 731, 310, 724, 1365, 11909, 773, 16402, 19015, 4579, 1199, 13, 1678, 1828, 29901, 1397, 29901, 29871, 29900, 30022, 29945, 13, 1678, 1828, 29901, 3189, 4339, 29901, 23215, 552, 304, 3787, 278, 10350, 310, 278, 3661, 313, 29990, 29892, 612, 29892, 796, 29897, 13, 1678, 14550, 13, 268, 13, 1678, 396, 365, 1477, 29879, 310, 278, 29871, 29941, 2814, 3161, 13, 1678, 396, 450, 266, 1141, 3309, 338, 4100, 1363, 278, 1775, 15894, 278, 23468, 14002, 338, 29871, 29896, 29892, 29871, 29941, 29928, 14002, 13, 1678, 266, 1141, 353, 29871, 29946, 29946, 29889, 29953, 29900, 396, 910, 338, 278, 5418, 4822, 278, 23468, 14002, 4105, 3522, 13, 1678, 1208, 29888, 353, 29871, 29955, 29945, 29889, 29900, 29900, 396, 910, 338, 278, 3309, 310, 278, 7568, 2814, 4509, 13, 1678, 3661, 353, 29871, 29896, 29906, 29953, 29889, 29945, 29900, 396, 910, 338, 278, 3309, 310, 278, 5224, 2814, 4509, 13, 13, 1678, 921, 353, 5785, 29898, 1111, 4339, 29961, 29900, 2314, 396, 5418, 6375, 278, 716, 29363, 2602, 338, 13, 1678, 343, 353, 5785, 29898, 1111, 4339, 29961, 29896, 2314, 396, 5418, 714, 313, 3166, 278, 23468, 14002, 29897, 278, 716, 29363, 2602, 338, 13, 1678, 565, 343, 1275, 29871, 29900, 29901, 343, 353, 29871, 29896, 396, 319, 1365, 4841, 8542, 491, 29871, 29900, 13, 1678, 503, 353, 5785, 29898, 1111, 4339, 29961, 29906, 2314, 396, 5418, 1623, 278, 716, 29363, 2602, 338, 13, 1678, 565, 503, 1275, 29871, 29900, 29901, 503, 353, 29871, 29896, 396, 319, 1365, 4841, 8542, 491, 29871, 29900, 13, 13, 1678, 396, 450, 399, 29999, 9685, 338, 278, 4837, 2512, 10694, 1549, 278, 23468, 14002, 29892, 29363, 2602, 322, 17905, 29872, 14002, 13, 1678, 396, 281, 353, 278, 5418, 3412, 278, 399, 9685, 278, 716, 29363, 2602, 338, 13, 1678, 281, 353, 5844, 29889, 3676, 29898, 29916, 1068, 29906, 718, 343, 1068, 29906, 29897, 13, 1678, 565, 281, 1405, 266, 1141, 718, 1208, 29888, 718, 3661, 29901, 736, 376, 8003, 2086, 2215, 29908, 396, 2921, 284, 13461, 29879, 6159, 13, 1678, 396, 450, 16402, 19015, 4579, 1199, 4225, 304, 367, 12833, 373, 278, 5418, 515, 278, 17905, 29872, 13, 1678, 396, 14002, 304, 278, 29363, 2602, 29889, 1105, 278, 3309, 310, 278, 23468, 14002, 4225, 304, 367, 21049, 2954, 13, 1678, 281, 22361, 266, 1141, 13, 1678, 565, 281, 1275, 29871, 29900, 29901, 281, 353, 29871, 29896, 396, 319, 1365, 4841, 8542, 491, 29871, 29900, 13, 13, 1678, 724, 1365, 29918, 1066, 2187, 353, 313, 1745, 481, 29898, 755, 29889, 23402, 29898, 29916, 29914, 29891, 8243, 29897, 396, 23468, 12090, 2602, 297, 278, 1060, 29979, 10694, 13, 13, 1678, 396, 304, 287, 391, 353, 10163, 327, 1600, 375, 310, 278, 17205, 1754, 491, 281, 29892, 921, 669, 278, 17905, 29872, 14002, 29889, 13, 1678, 396, 450, 5418, 1546, 278, 452, 29872, 29363, 2602, 669, 278, 17905, 29872, 14002, 13, 1678, 304, 287, 391, 353, 5844, 29889, 3676, 29898, 29893, 1068, 29906, 718, 503, 1068, 29906, 29897, 13, 13, 1678, 396, 17905, 29872, 574, 353, 7463, 10696, 278, 17905, 29872, 14002, 3732, 1546, 278, 266, 1141, 289, 650, 669, 278, 29363, 2602, 13, 1678, 17905, 29872, 574, 353, 5844, 29889, 562, 359, 3552, 517, 287, 391, 1068, 29906, 718, 1208, 29888, 1068, 29906, 448, 3661, 1068, 29906, 6802, 29898, 29906, 29930, 517, 287, 391, 29930, 1052, 29888, 876, 13, 1678, 396, 17905, 1389, 2506, 353, 10696, 1546, 278, 399, 9685, 669, 5305, 304, 278, 385, 29895, 280, 14002, 13, 1678, 17905, 1389, 2506, 353, 17905, 29872, 574, 448, 5844, 29889, 23402, 29898, 29893, 29914, 29920, 29897, 13, 1678, 396, 17905, 1022, 359, 353, 724, 1365, 2602, 304, 6176, 17905, 1389, 2506, 13, 1678, 724, 1365, 29918, 1066, 2187, 4619, 313, 1745, 481, 29898, 29895, 484, 1389, 2506, 511, 29897, 13, 13, 1678, 396, 385, 29895, 280, 574, 353, 7463, 10696, 1546, 278, 528, 262, 289, 650, 322, 278, 266, 1141, 289, 650, 13, 1678, 385, 29895, 280, 574, 353, 5844, 29889, 562, 359, 3552, 6661, 1068, 29906, 29974, 1052, 29888, 1068, 29906, 29899, 517, 287, 391, 1068, 29906, 6802, 29898, 29906, 29930, 6661, 29930, 1052, 29888, 876, 13, 1678, 396, 385, 29895, 280, 16041, 353, 7029, 10696, 1546, 7812, 322, 385, 29895, 280, 574, 13, 1678, 385, 29895, 280, 16041, 353, 5844, 29889, 1631, 448, 385, 29895, 280, 574, 13, 1678, 396, 385, 29895, 280, 1066, 353, 724, 1365, 2602, 304, 6176, 385, 29895, 280, 16041, 13, 1678, 724, 1365, 29918, 1066, 2187, 4619, 313, 1745, 481, 29898, 804, 280, 16041, 511, 29897, 13, 13, 1678, 565, 2814, 1405, 29871, 29906, 29901, 736, 4607, 29918, 29879, 2247, 29898, 643, 1365, 29918, 1066, 2187, 29897, 13, 13, 1678, 736, 724, 1365, 29918, 1066, 2187, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1550, 5852, 29901, 13, 4706, 2814, 353, 938, 29898, 2080, 703, 8809, 436, 2814, 526, 591, 1985, 373, 29973, 376, 876, 13, 4706, 921, 353, 5785, 29898, 2080, 703, 4290, 921, 274, 16065, 29973, 376, 876, 13, 4706, 343, 353, 5785, 29898, 2080, 703, 4290, 343, 274, 16065, 29973, 376, 876, 13, 4706, 503, 353, 5785, 29898, 2080, 703, 4290, 503, 274, 16065, 29973, 376, 876, 13, 13, 4706, 1596, 29898, 262, 3901, 29918, 9089, 29898, 1397, 29892, 313, 29916, 29892, 29891, 29892, 29920, 4961, 13, 2 ]
examples/video.py
monchier/streamlit-1
1
71543
<reponame>monchier/streamlit-1 # -*- coding: utf-8 -*- # Copyright 2018-2020 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import os import streamlit as st # These are the formats supported in Streamlit right now. VIDEO_EXTENSIONS = ["mp4", "ogv", "m4v", "webm"] # For sample video files, try the Internet Archive, or download a few samples here: # http://techslides.com/sample-webm-ogg-and-mp4-video-files-for-html5 st.title("Video Widget Examples") st.header("Local video files") st.write( "You can use st.video to play a locally-stored video by supplying it with a valid filesystem path." ) def get_video_files_in_dir(directory): out = [] for item in os.listdir(directory): try: name, ext = item.split(".") except: continue if name and ext: if ext in VIDEO_EXTENSIONS: out.append(item) return out avdir = os.path.expanduser("~") files = get_video_files_in_dir(avdir) if len(files) == 0: st.write( "Put some video files in your home directory (%s) to activate this player." % avdir ) else: filename = st.selectbox( "Select a video file from your home directory (%s) to play" % avdir, files, 0, ) st.video(os.path.join(avdir, filename)) st.header("Remote video playback") st.write("st.video allows a variety of HTML5 supported video links, including YouTube.") def shorten_vid_option(opt): return opt.split("/")[-1] # A random sampling of videos found around the web. We should replace # these with those sourced from the streamlit community if possible! vidurl = st.selectbox( "Pick a video to play", ( "https://youtu.be/_T8LGqJtuGc", "https://www.youtube.com/watch?v=kmfC-i9WgH0", "https://www.youtube.com/embed/sSn4e1lLVpA", "http://www.rochikahn.com/video/videos/zapatillas.mp4", "http://www.marmosetcare.com/video/in-the-wild/intro.webm", "https://www.orthopedicone.com/u/home-vid-4.mp4", ), 0, shorten_vid_option, ) st.video(vidurl)
[ 1, 529, 276, 1112, 420, 29958, 3712, 305, 631, 29914, 5461, 19411, 29899, 29896, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29947, 29899, 29906, 29900, 29906, 29900, 13763, 19411, 9266, 29889, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 1678, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 13, 5215, 2897, 13, 5215, 4840, 19411, 408, 380, 13, 13, 29937, 4525, 526, 278, 21971, 6969, 297, 13763, 19411, 1492, 1286, 29889, 13, 13044, 29923, 29949, 29918, 12194, 1430, 13381, 29903, 353, 6796, 1526, 29946, 613, 376, 468, 29894, 613, 376, 29885, 29946, 29894, 613, 376, 2676, 29885, 3108, 13, 13, 29937, 1152, 4559, 4863, 2066, 29892, 1018, 278, 4685, 9000, 29892, 470, 5142, 263, 2846, 11916, 1244, 29901, 13, 29937, 1732, 597, 11345, 2536, 2247, 29889, 510, 29914, 11249, 29899, 2676, 29885, 29899, 468, 29887, 29899, 392, 29899, 1526, 29946, 29899, 9641, 29899, 5325, 29899, 1454, 29899, 1420, 29945, 13, 13, 13, 303, 29889, 3257, 703, 15167, 27080, 1222, 9422, 1159, 13, 13, 303, 29889, 6672, 703, 7717, 4863, 2066, 1159, 13, 303, 29889, 3539, 29898, 13, 1678, 376, 3492, 508, 671, 380, 29889, 9641, 304, 1708, 263, 12430, 29899, 303, 4395, 4863, 491, 1462, 5890, 372, 411, 263, 2854, 22101, 2224, 1213, 13, 29897, 13, 13, 13, 1753, 679, 29918, 9641, 29918, 5325, 29918, 262, 29918, 3972, 29898, 12322, 1125, 13, 1678, 714, 353, 5159, 13, 1678, 363, 2944, 297, 2897, 29889, 1761, 3972, 29898, 12322, 1125, 13, 4706, 1018, 29901, 13, 9651, 1024, 29892, 1294, 353, 2944, 29889, 5451, 17350, 1159, 13, 4706, 5174, 29901, 13, 9651, 6773, 13, 4706, 565, 1024, 322, 1294, 29901, 13, 9651, 565, 1294, 297, 478, 22027, 29949, 29918, 12194, 1430, 13381, 29903, 29901, 13, 18884, 714, 29889, 4397, 29898, 667, 29897, 13, 1678, 736, 714, 13, 13, 13, 485, 3972, 353, 2897, 29889, 2084, 29889, 18837, 1792, 703, 30022, 1159, 13, 5325, 353, 679, 29918, 9641, 29918, 5325, 29918, 262, 29918, 3972, 29898, 485, 3972, 29897, 13, 13, 361, 7431, 29898, 5325, 29897, 1275, 29871, 29900, 29901, 13, 1678, 380, 29889, 3539, 29898, 13, 4706, 376, 22908, 777, 4863, 2066, 297, 596, 3271, 3884, 313, 29995, 29879, 29897, 304, 5039, 403, 445, 4847, 1213, 13, 4706, 1273, 1029, 3972, 13, 1678, 1723, 13, 13, 2870, 29901, 13, 1678, 10422, 353, 380, 29889, 2622, 1884, 29898, 13, 4706, 376, 3549, 263, 4863, 934, 515, 596, 3271, 3884, 313, 29995, 29879, 29897, 304, 1708, 29908, 1273, 1029, 3972, 29892, 2066, 29892, 29871, 29900, 29892, 13, 1678, 1723, 13, 13, 1678, 380, 29889, 9641, 29898, 359, 29889, 2084, 29889, 7122, 29898, 485, 3972, 29892, 10422, 876, 13, 303, 29889, 6672, 703, 20224, 4863, 1708, 1627, 1159, 13, 303, 29889, 3539, 703, 303, 29889, 9641, 6511, 263, 12875, 310, 4544, 29945, 6969, 4863, 2988, 29892, 3704, 14711, 23157, 13, 13, 13, 1753, 3273, 264, 29918, 8590, 29918, 3385, 29898, 3670, 1125, 13, 1678, 736, 3523, 29889, 5451, 11974, 1159, 14352, 29896, 29962, 13, 13, 13, 29937, 319, 4036, 23460, 310, 19707, 1476, 2820, 278, 1856, 29889, 29871, 1334, 881, 5191, 13, 29937, 1438, 411, 1906, 269, 473, 1133, 515, 278, 4840, 19411, 7881, 565, 1950, 29991, 13, 8590, 2271, 353, 380, 29889, 2622, 1884, 29898, 13, 1678, 376, 29925, 860, 263, 4863, 304, 1708, 613, 13, 1678, 313, 13, 4706, 376, 991, 597, 29891, 449, 29884, 29889, 915, 19891, 29911, 29947, 29931, 29954, 29939, 29967, 9161, 29954, 29883, 613, 13, 4706, 376, 991, 597, 1636, 29889, 19567, 29889, 510, 29914, 12344, 29973, 29894, 29922, 8848, 29888, 29907, 29899, 29875, 29929, 29956, 29887, 29950, 29900, 613, 13, 4706, 376, 991, 597, 1636, 29889, 19567, 29889, 510, 29914, 17987, 29914, 29879, 29903, 29876, 29946, 29872, 29896, 29880, 29931, 29963, 29886, 29909, 613, 13, 4706, 376, 1124, 597, 1636, 29889, 307, 305, 638, 5422, 29889, 510, 29914, 9641, 29914, 29894, 7958, 29914, 29920, 26347, 21338, 29889, 1526, 29946, 613, 13, 4706, 376, 1124, 597, 1636, 29889, 29885, 2817, 359, 7070, 598, 29889, 510, 29914, 9641, 29914, 262, 29899, 1552, 29899, 29893, 789, 29914, 23333, 29889, 2676, 29885, 613, 13, 4706, 376, 991, 597, 1636, 29889, 2072, 459, 7486, 650, 29889, 510, 29914, 29884, 29914, 5184, 29899, 8590, 29899, 29946, 29889, 1526, 29946, 613, 13, 1678, 10353, 13, 268, 29900, 29892, 13, 1678, 3273, 264, 29918, 8590, 29918, 3385, 29892, 13, 29897, 13, 13, 303, 29889, 9641, 29898, 8590, 2271, 29897, 13, 2 ]
manga_py/base_classes/callbacks.py
paulolimac/manga-py
1
163171
from typing import Callable class Callbacks: def _call_files_progress_callback(self): if callable(self.progress): _max, _current = len(self._storage['files']), self._storage['current_file'] self.progress(_max, _current, _current < 1) def set_quest_callback(self, callback: Callable): # Required call from initiator (CLI, GUI) setattr(self, 'quest', callback) def set_progress_callback(self, callback: Callable): # Required call from initiator (CLI, GUI) setattr(self, 'progress', callback) def set_log_callback(self, callback: Callable): # Required call from initiator (CLI, GUI) setattr(self, 'log', callback) def set_quest_password_callback(self, callback: Callable): # Required call from iterator (CLI, GUI) setattr(self, 'quest_password', callback) def quest(self, *args, **kwargs): pass def quest_password(self, *args, **kwargs): pass def progress(self, *args, **kwargs): pass def log(self, *args, **kwargs): pass def book_meta(self) -> dict: return {}
[ 1, 515, 19229, 1053, 8251, 519, 13, 13, 13, 1990, 8251, 1627, 29879, 29901, 13, 1678, 822, 903, 4804, 29918, 5325, 29918, 18035, 29918, 14035, 29898, 1311, 1125, 13, 4706, 565, 1246, 519, 29898, 1311, 29889, 18035, 1125, 13, 9651, 903, 3317, 29892, 903, 3784, 353, 7431, 29898, 1311, 3032, 12925, 1839, 5325, 2033, 511, 1583, 3032, 12925, 1839, 3784, 29918, 1445, 2033, 13, 9651, 1583, 29889, 18035, 7373, 3317, 29892, 903, 3784, 29892, 903, 3784, 529, 29871, 29896, 29897, 13, 13, 1678, 822, 731, 29918, 1119, 29918, 14035, 29898, 1311, 29892, 6939, 29901, 8251, 519, 1125, 29871, 396, 830, 5958, 1246, 515, 14511, 1061, 313, 27205, 29892, 14839, 29897, 13, 4706, 731, 5552, 29898, 1311, 29892, 525, 1119, 742, 6939, 29897, 13, 13, 1678, 822, 731, 29918, 18035, 29918, 14035, 29898, 1311, 29892, 6939, 29901, 8251, 519, 1125, 29871, 396, 830, 5958, 1246, 515, 14511, 1061, 313, 27205, 29892, 14839, 29897, 13, 4706, 731, 5552, 29898, 1311, 29892, 525, 18035, 742, 6939, 29897, 13, 13, 1678, 822, 731, 29918, 1188, 29918, 14035, 29898, 1311, 29892, 6939, 29901, 8251, 519, 1125, 29871, 396, 830, 5958, 1246, 515, 14511, 1061, 313, 27205, 29892, 14839, 29897, 13, 4706, 731, 5552, 29898, 1311, 29892, 525, 1188, 742, 6939, 29897, 13, 13, 1678, 822, 731, 29918, 1119, 29918, 5630, 29918, 14035, 29898, 1311, 29892, 6939, 29901, 8251, 519, 1125, 29871, 396, 830, 5958, 1246, 515, 20380, 313, 27205, 29892, 14839, 29897, 13, 4706, 731, 5552, 29898, 1311, 29892, 525, 1119, 29918, 5630, 742, 6939, 29897, 13, 13, 1678, 822, 21126, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 21126, 29918, 5630, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 6728, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 1480, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 3143, 29918, 7299, 29898, 1311, 29897, 1599, 9657, 29901, 13, 4706, 736, 6571, 13, 2 ]
tests/test_fluids_ecl.py
trhallam/digirock
0
37370
"""Test functions for pem.fluid.ecl module """ import pytest from pytest import approx import numpy as np import digirock.fluids.ecl as fluid_ecl from inspect import getmembers, isfunction @pytest.fixture def tol(): return { "rel": 0.05, # relative testing tolerance in percent "abs": 0.00001, # absolute testing tolerance } @pytest.mark.parametrize( "pres, extrap, ans", [ (325, "const", 1.4615), (325, "pchip", 1.4615), (np.r_[325, 375], "const", np.r_[1.4615, 1.4505]), (np.r_[325, 375], "pchip", np.r_[1.4615, 1.4505]), ], ) def test_oil_fvf_table(test_data, pres, ans, extrap, tol): tab = np.loadtxt(test_data / "PVT_BO.inc") assert np.allclose( fluid_ecl.oil_fvf_table(tab[:, 0], tab[:, 1], pres, extrap=extrap), ans, rtol=tol["rel"], ) def test_oil_fvf_table_bad_pchi(test_data): tab = np.loadtxt(test_data / "PVT_BO.inc") # test bad extrap with pytest.raises(ValueError): assert fluid_ecl.oil_fvf_table( tab[:, 0], tab[:, 1], 235, extrap="Unknown Extrap" ) @pytest.mark.parametrize( "pres, extrap, ans", [ (325, "const", 1.4615), (325, "pchip", 1.4615), (np.r_[325, 375], "const", np.r_[1.4615, 1.4505]), (np.r_[325, 375], "pchip", np.r_[1.4615, 1.4505]), ], ) def test_oil_fvf_table(test_data, pres, ans, extrap, tol): tab = np.loadtxt(test_data / "PVT_BO.inc") assert np.allclose( fluid_ecl.oil_fvf_table(tab[:, 0], tab[:, 1], pres, extrap=extrap), ans, rtol=tol["rel"], ) @pytest.mark.parametrize("api,ans", ((20, 0.933993399339934), (45, 0.8016997167138812))) def test_e100_oil_density(api, ans, tol): assert fluid_ecl.e100_oil_density(api) == approx(ans) assert np.allclose( fluid_ecl.e100_oil_density(np.r_[api, api]), np.r_[ans, ans], atol=tol["abs"] )
[ 1, 9995, 3057, 3168, 363, 282, 331, 29889, 1579, 5416, 29889, 687, 29880, 3883, 30004, 13, 15945, 19451, 13, 30004, 13, 5215, 11451, 1688, 30004, 13, 3166, 11451, 1688, 1053, 2134, 29916, 30004, 13, 5215, 12655, 408, 7442, 30004, 13, 5215, 4697, 3350, 384, 29889, 25044, 4841, 29889, 687, 29880, 408, 22576, 29918, 687, 29880, 30004, 13, 3166, 16096, 1053, 679, 28109, 29892, 338, 2220, 30004, 13, 30004, 13, 30004, 13, 29992, 2272, 1688, 29889, 7241, 15546, 30004, 13, 1753, 304, 29880, 7295, 30004, 13, 1678, 736, 3336, 13, 4706, 376, 2674, 1115, 29871, 29900, 29889, 29900, 29945, 29892, 29871, 396, 6198, 6724, 20341, 749, 297, 10151, 30004, 13, 4706, 376, 6897, 1115, 29871, 29900, 29889, 29900, 29900, 29900, 29900, 29896, 29892, 29871, 396, 8380, 6724, 20341, 749, 30004, 13, 1678, 4970, 13, 30004, 13, 30004, 13, 29992, 2272, 1688, 29889, 3502, 29889, 3207, 300, 374, 911, 29898, 30004, 13, 1678, 376, 4569, 29892, 1294, 2390, 29892, 6063, 15231, 13, 1678, 518, 30004, 13, 4706, 313, 29941, 29906, 29945, 29892, 376, 3075, 613, 29871, 29896, 29889, 29946, 29953, 29896, 29945, 511, 30004, 13, 4706, 313, 29941, 29906, 29945, 29892, 376, 29886, 305, 666, 613, 29871, 29896, 29889, 29946, 29953, 29896, 29945, 511, 30004, 13, 4706, 313, 9302, 29889, 29878, 29918, 29961, 29941, 29906, 29945, 29892, 29871, 29941, 29955, 29945, 1402, 376, 3075, 613, 7442, 29889, 29878, 29918, 29961, 29896, 29889, 29946, 29953, 29896, 29945, 29892, 29871, 29896, 29889, 29946, 29945, 29900, 29945, 11724, 30004, 13, 4706, 313, 9302, 29889, 29878, 29918, 29961, 29941, 29906, 29945, 29892, 29871, 29941, 29955, 29945, 1402, 376, 29886, 305, 666, 613, 7442, 29889, 29878, 29918, 29961, 29896, 29889, 29946, 29953, 29896, 29945, 29892, 29871, 29896, 29889, 29946, 29945, 29900, 29945, 11724, 30004, 13, 1678, 21251, 30004, 13, 8443, 13, 1753, 1243, 29918, 29877, 309, 29918, 29888, 29894, 29888, 29918, 2371, 29898, 1688, 29918, 1272, 29892, 2225, 29892, 6063, 29892, 1294, 2390, 29892, 304, 29880, 1125, 30004, 13, 1678, 4434, 353, 7442, 29889, 1359, 3945, 29898, 1688, 29918, 1272, 847, 376, 29925, 29963, 29911, 29918, 8456, 29889, 3742, 1159, 30004, 13, 1678, 4974, 7442, 29889, 497, 5358, 29898, 30004, 13, 4706, 22576, 29918, 687, 29880, 29889, 29877, 309, 29918, 29888, 29894, 29888, 29918, 2371, 29898, 3891, 7503, 29892, 29871, 29900, 1402, 4434, 7503, 29892, 29871, 29896, 1402, 2225, 29892, 1294, 2390, 29922, 1062, 2390, 511, 30004, 13, 4706, 6063, 11167, 13, 4706, 364, 25027, 29922, 25027, 3366, 2674, 12436, 30004, 13, 1678, 1723, 30004, 13, 30004, 13, 30004, 13, 1753, 1243, 29918, 29877, 309, 29918, 29888, 29894, 29888, 29918, 2371, 29918, 12313, 29918, 29886, 4161, 29898, 1688, 29918, 1272, 1125, 30004, 13, 1678, 4434, 353, 7442, 29889, 1359, 3945, 29898, 1688, 29918, 1272, 847, 376, 29925, 29963, 29911, 29918, 8456, 29889, 3742, 1159, 30004, 13, 1678, 396, 1243, 4319, 1294, 2390, 30004, 13, 1678, 411, 11451, 1688, 29889, 336, 4637, 29898, 1917, 2392, 1125, 30004, 13, 4706, 4974, 22576, 29918, 687, 29880, 29889, 29877, 309, 29918, 29888, 29894, 29888, 29918, 2371, 29898, 30004, 13, 9651, 4434, 7503, 29892, 29871, 29900, 1402, 4434, 7503, 29892, 29871, 29896, 1402, 29871, 29906, 29941, 29945, 29892, 1294, 2390, 543, 14148, 7338, 2390, 19451, 13, 4706, 1723, 30004, 13, 30004, 13, 30004, 13, 29992, 2272, 1688, 29889, 3502, 29889, 3207, 300, 374, 911, 29898, 30004, 13, 1678, 376, 4569, 29892, 1294, 2390, 29892, 6063, 15231, 13, 1678, 518, 30004, 13, 4706, 313, 29941, 29906, 29945, 29892, 376, 3075, 613, 29871, 29896, 29889, 29946, 29953, 29896, 29945, 511, 30004, 13, 4706, 313, 29941, 29906, 29945, 29892, 376, 29886, 305, 666, 613, 29871, 29896, 29889, 29946, 29953, 29896, 29945, 511, 30004, 13, 4706, 313, 9302, 29889, 29878, 29918, 29961, 29941, 29906, 29945, 29892, 29871, 29941, 29955, 29945, 1402, 376, 3075, 613, 7442, 29889, 29878, 29918, 29961, 29896, 29889, 29946, 29953, 29896, 29945, 29892, 29871, 29896, 29889, 29946, 29945, 29900, 29945, 11724, 30004, 13, 4706, 313, 9302, 29889, 29878, 29918, 29961, 29941, 29906, 29945, 29892, 29871, 29941, 29955, 29945, 1402, 376, 29886, 305, 666, 613, 7442, 29889, 29878, 29918, 29961, 29896, 29889, 29946, 29953, 29896, 29945, 29892, 29871, 29896, 29889, 29946, 29945, 29900, 29945, 11724, 30004, 13, 1678, 21251, 30004, 13, 8443, 13, 1753, 1243, 29918, 29877, 309, 29918, 29888, 29894, 29888, 29918, 2371, 29898, 1688, 29918, 1272, 29892, 2225, 29892, 6063, 29892, 1294, 2390, 29892, 304, 29880, 1125, 30004, 13, 1678, 4434, 353, 7442, 29889, 1359, 3945, 29898, 1688, 29918, 1272, 847, 376, 29925, 29963, 29911, 29918, 8456, 29889, 3742, 1159, 30004, 13, 1678, 4974, 7442, 29889, 497, 5358, 29898, 30004, 13, 4706, 22576, 29918, 687, 29880, 29889, 29877, 309, 29918, 29888, 29894, 29888, 29918, 2371, 29898, 3891, 7503, 29892, 29871, 29900, 1402, 4434, 7503, 29892, 29871, 29896, 1402, 2225, 29892, 1294, 2390, 29922, 1062, 2390, 511, 30004, 13, 4706, 6063, 11167, 13, 4706, 364, 25027, 29922, 25027, 3366, 2674, 12436, 30004, 13, 1678, 1723, 30004, 13, 30004, 13, 30004, 13, 29992, 2272, 1688, 29889, 3502, 29889, 3207, 300, 374, 911, 703, 2754, 29892, 550, 613, 5135, 29906, 29900, 29892, 29871, 29900, 29889, 29929, 29941, 29941, 29929, 29929, 29941, 29941, 29929, 29929, 29941, 29941, 29929, 29929, 29941, 29946, 511, 313, 29946, 29945, 29892, 29871, 29900, 29889, 29947, 29900, 29896, 29953, 29929, 29929, 29955, 29896, 29953, 29955, 29896, 29941, 29947, 29947, 29896, 29906, 4961, 30004, 13, 1753, 1243, 29918, 29872, 29896, 29900, 29900, 29918, 29877, 309, 29918, 21518, 537, 29898, 2754, 29892, 6063, 29892, 304, 29880, 1125, 30004, 13, 1678, 4974, 22576, 29918, 687, 29880, 29889, 29872, 29896, 29900, 29900, 29918, 29877, 309, 29918, 21518, 537, 29898, 2754, 29897, 1275, 2134, 29916, 29898, 550, 8443, 13, 1678, 4974, 7442, 29889, 497, 5358, 29898, 30004, 13, 4706, 22576, 29918, 687, 29880, 29889, 29872, 29896, 29900, 29900, 29918, 29877, 309, 29918, 21518, 537, 29898, 9302, 29889, 29878, 29918, 29961, 2754, 29892, 7882, 11724, 7442, 29889, 29878, 29918, 29961, 550, 29892, 6063, 1402, 472, 324, 29922, 25027, 3366, 6897, 3108, 30004, 13, 1678, 1723, 30004, 13, 2 ]
lang/python/try-doctest.py
hmisty/coding
3
92794
#!/usr/bin/env python #coding:utf-8 """ doctest demonstration. how to run: $ python -m doctest -v try-doctest.py """ def multiply(a, b): """ Multiply a with b. >>> multiply(1, 2) 2 >>> multiply('a', 3) 'aaa' """ return a * b """ main """ if __name__ == '__main__': import doctest doctest.testmod(verbose=True)
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 29883, 3689, 29901, 9420, 29899, 29947, 13, 13, 15945, 29908, 13, 1867, 312, 342, 9004, 362, 29889, 13, 3525, 304, 1065, 29901, 13, 1678, 395, 3017, 448, 29885, 437, 312, 342, 448, 29894, 1018, 29899, 1867, 312, 342, 29889, 2272, 13, 15945, 29908, 13, 1753, 22932, 29898, 29874, 29892, 289, 1125, 13, 1678, 9995, 13, 1678, 9683, 666, 368, 263, 411, 289, 29889, 13, 13, 1678, 8653, 22932, 29898, 29896, 29892, 29871, 29906, 29897, 13, 268, 29906, 13, 1678, 8653, 22932, 877, 29874, 742, 29871, 29941, 29897, 13, 1678, 525, 7340, 29874, 29915, 13, 1678, 9995, 13, 1678, 736, 263, 334, 289, 13, 13, 15945, 29908, 13, 3396, 13, 15945, 29908, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1053, 437, 312, 342, 13, 1678, 437, 312, 342, 29889, 1688, 1545, 29898, 369, 15828, 29922, 5574, 29897, 13, 13, 2 ]
HW8.py
shng5175/Random-Python-Stuff
0
115088
<filename>HW8.py import sys import math x = int(sys.argv[1]) #takes in the number as an arguement y = math.sqrt(x) #gets the square root of x y = math.ceil(y) #rounds up y y = int(y) #did this because the for loop didn't want to take in a float as part of the range i = 2 for i in range(i, y): #this whole section here finds prime numbers from 2 to the square root of x j = 2 while (j <= (i/j)): if (i%j == 0): break #sends to end of for loop where we increment i j = j + 1 #increments j and sends back top of loop to test i again if (j > i/j): #only ever gets to this line if i is indeed prime because there were no js that evenly goes into it if(x%i==0): #checks if the prime number we just found is a factor of the original number p = i #sets the number to p if the if statement above is true i = (y + 1) #since we've found p, sets i to y+1 to exit the loop i = i + 1 q=x/p #since we've found p, we can calculate the value of q print "p = ",p , "q = ",q #prints out the values of p and q
[ 1, 529, 9507, 29958, 29950, 29956, 29947, 29889, 2272, 13, 5215, 10876, 13, 5215, 5844, 13, 13, 29916, 353, 938, 29898, 9675, 29889, 19218, 29961, 29896, 2314, 396, 29873, 6926, 297, 278, 1353, 408, 385, 1852, 29884, 882, 13, 29891, 353, 5844, 29889, 3676, 29898, 29916, 29897, 396, 20078, 278, 6862, 3876, 310, 921, 13, 29891, 353, 5844, 29889, 27696, 29898, 29891, 29897, 396, 29878, 3885, 701, 343, 13, 29891, 353, 938, 29898, 29891, 29897, 396, 18361, 445, 1363, 278, 363, 2425, 3282, 29915, 29873, 864, 304, 2125, 297, 263, 5785, 408, 760, 310, 278, 3464, 13, 13, 29875, 353, 29871, 29906, 13, 1454, 474, 297, 3464, 29898, 29875, 29892, 343, 1125, 396, 1366, 3353, 4004, 1244, 14061, 6019, 3694, 515, 29871, 29906, 304, 278, 6862, 3876, 310, 921, 13, 259, 432, 353, 29871, 29906, 29871, 13, 259, 1550, 313, 29926, 5277, 313, 29875, 29914, 29926, 22164, 29871, 13, 418, 565, 313, 29875, 29995, 29926, 1275, 29871, 29900, 1125, 29871, 13, 308, 2867, 396, 29879, 1975, 304, 1095, 310, 363, 2425, 988, 591, 11924, 474, 13, 418, 432, 353, 432, 718, 29871, 29896, 396, 262, 1037, 1860, 432, 322, 16003, 1250, 2246, 310, 2425, 304, 1243, 474, 1449, 13, 418, 565, 313, 29926, 1405, 474, 29914, 29926, 1125, 396, 6194, 3926, 4947, 304, 445, 1196, 565, 474, 338, 6200, 6019, 1363, 727, 892, 694, 6965, 393, 1584, 368, 5771, 964, 372, 13, 308, 565, 29898, 29916, 29995, 29875, 1360, 29900, 1125, 396, 3198, 29879, 565, 278, 6019, 1353, 591, 925, 1476, 338, 263, 7329, 310, 278, 2441, 1353, 13, 9651, 282, 353, 474, 396, 7224, 278, 1353, 304, 282, 565, 278, 565, 3229, 2038, 338, 1565, 13, 9651, 474, 353, 313, 29891, 718, 29871, 29896, 29897, 396, 16076, 591, 29915, 345, 1476, 282, 29892, 6166, 474, 304, 343, 29974, 29896, 304, 6876, 278, 2425, 13, 259, 474, 353, 474, 718, 29871, 29896, 13, 29939, 29922, 29916, 29914, 29886, 396, 16076, 591, 29915, 345, 1476, 282, 29892, 591, 508, 8147, 278, 995, 310, 3855, 13, 2158, 376, 29886, 353, 9162, 29886, 1919, 376, 29939, 353, 9162, 29939, 396, 2158, 29879, 714, 278, 1819, 310, 282, 322, 3855, 2 ]
tests/test_tbears_db.py
Transcranial-Solutions/t-bears
35
9318
# -*- coding: utf-8 -*- # Copyright 2017-2018 ICON Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import os import shutil import unittest from tbears.block_manager.tbears_db import TbearsDB DIRECTORY_PATH = os.path.abspath((os.path.dirname(__file__))) DB_PATH = os.path.join(DIRECTORY_PATH, './.tbears_db') class TestTBearsDB(unittest.TestCase): def setUp(self): self.TBEARS_DB = TbearsDB(TbearsDB.make_db(DB_PATH)) self.test_key = b'test_key' self.test_value = b'test_value' def tearDown(self): self.TBEARS_DB.close() shutil.rmtree(DB_PATH) def test_put_and_get(self): # Put and get self.TBEARS_DB.put(self.test_key, self.test_value) ret = self.TBEARS_DB.get(self.test_key) self.assertEqual(ret, self.test_value) # overwrite overwrite_value = b'test_value_overwrite' self.TBEARS_DB.put(self.test_key, overwrite_value) ret = self.TBEARS_DB.get(self.test_key) self.assertEqual(ret, overwrite_value) # get invalid key ret = self.TBEARS_DB.get(b'invalid_key') self.assertIsNone(ret) # put invalid type self.assertRaises(TypeError, self.TBEARS_DB.put, 'test_key', self.test_value) self.assertRaises(TypeError, self.TBEARS_DB.put, self.test_key, 123) def test_delete(self): self.TBEARS_DB.put(self.test_key, self.test_value) ret = self.TBEARS_DB.get(self.test_key) self.assertEqual(ret, self.test_value) self.TBEARS_DB.delete(self.test_key) ret = self.TBEARS_DB.get(self.test_key) self.assertIsNone(ret) def test_iterator(self): self.TBEARS_DB.put(b'key1', b'value1') self.TBEARS_DB.put(b'key2', b'value2') self.TBEARS_DB.put(b'key3', b'value3') self.TBEARS_DB.put(b'key4', b'value4') i = 1 for _, actual_value in self.TBEARS_DB.iterator(): expected_value = ('value' + str(i)).encode() self.assertEqual(expected_value, actual_value) i += 1
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29955, 29899, 29906, 29900, 29896, 29947, 306, 6007, 10606, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 13, 5215, 2897, 13, 5215, 528, 4422, 13, 5215, 443, 27958, 13, 13, 3166, 260, 29890, 15451, 29889, 1271, 29918, 12847, 29889, 22625, 15451, 29918, 2585, 1053, 323, 29890, 15451, 4051, 13, 13, 4571, 26282, 18929, 29918, 10145, 353, 2897, 29889, 2084, 29889, 370, 1028, 493, 3552, 359, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 4961, 13, 4051, 29918, 10145, 353, 2897, 29889, 2084, 29889, 7122, 29898, 4571, 26282, 18929, 29918, 10145, 29892, 15300, 6294, 22625, 15451, 29918, 2585, 1495, 13, 13, 13, 1990, 4321, 24895, 15451, 4051, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 353, 323, 29890, 15451, 4051, 29898, 29911, 29890, 15451, 4051, 29889, 5675, 29918, 2585, 29898, 4051, 29918, 10145, 876, 13, 4706, 1583, 29889, 1688, 29918, 1989, 353, 289, 29915, 1688, 29918, 1989, 29915, 13, 4706, 1583, 29889, 1688, 29918, 1767, 353, 289, 29915, 1688, 29918, 1767, 29915, 13, 13, 1678, 822, 734, 279, 6767, 29898, 1311, 1125, 13, 4706, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 5358, 580, 13, 4706, 528, 4422, 29889, 1758, 8336, 29898, 4051, 29918, 10145, 29897, 13, 13, 1678, 822, 1243, 29918, 649, 29918, 392, 29918, 657, 29898, 1311, 1125, 13, 4706, 396, 12065, 322, 679, 13, 4706, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 649, 29898, 1311, 29889, 1688, 29918, 1989, 29892, 1583, 29889, 1688, 29918, 1767, 29897, 13, 4706, 3240, 353, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 657, 29898, 1311, 29889, 1688, 29918, 1989, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2267, 29892, 1583, 29889, 1688, 29918, 1767, 29897, 13, 13, 4706, 396, 26556, 13, 4706, 26556, 29918, 1767, 353, 289, 29915, 1688, 29918, 1767, 29918, 957, 3539, 29915, 13, 4706, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 649, 29898, 1311, 29889, 1688, 29918, 1989, 29892, 26556, 29918, 1767, 29897, 13, 4706, 3240, 353, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 657, 29898, 1311, 29889, 1688, 29918, 1989, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2267, 29892, 26556, 29918, 1767, 29897, 13, 13, 4706, 396, 679, 8340, 1820, 13, 4706, 3240, 353, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 657, 29898, 29890, 29915, 20965, 29918, 1989, 1495, 13, 4706, 1583, 29889, 9294, 3624, 8516, 29898, 2267, 29897, 13, 13, 4706, 396, 1925, 8340, 1134, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 29892, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 649, 29892, 525, 1688, 29918, 1989, 742, 1583, 29889, 1688, 29918, 1767, 29897, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 29892, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 649, 29892, 1583, 29889, 1688, 29918, 1989, 29892, 29871, 29896, 29906, 29941, 29897, 13, 13, 1678, 822, 1243, 29918, 8143, 29898, 1311, 1125, 13, 4706, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 649, 29898, 1311, 29889, 1688, 29918, 1989, 29892, 1583, 29889, 1688, 29918, 1767, 29897, 13, 4706, 3240, 353, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 657, 29898, 1311, 29889, 1688, 29918, 1989, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2267, 29892, 1583, 29889, 1688, 29918, 1767, 29897, 13, 4706, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 8143, 29898, 1311, 29889, 1688, 29918, 1989, 29897, 13, 4706, 3240, 353, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 657, 29898, 1311, 29889, 1688, 29918, 1989, 29897, 13, 4706, 1583, 29889, 9294, 3624, 8516, 29898, 2267, 29897, 13, 13, 1678, 822, 1243, 29918, 17609, 29898, 1311, 1125, 13, 4706, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 649, 29898, 29890, 29915, 1989, 29896, 742, 289, 29915, 1767, 29896, 1495, 13, 4706, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 649, 29898, 29890, 29915, 1989, 29906, 742, 289, 29915, 1767, 29906, 1495, 13, 4706, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 649, 29898, 29890, 29915, 1989, 29941, 742, 289, 29915, 1767, 29941, 1495, 13, 4706, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 649, 29898, 29890, 29915, 1989, 29946, 742, 289, 29915, 1767, 29946, 1495, 13, 4706, 474, 353, 29871, 29896, 13, 13, 4706, 363, 17117, 3935, 29918, 1767, 297, 1583, 29889, 29911, 15349, 1718, 29903, 29918, 4051, 29889, 17609, 7295, 13, 9651, 3806, 29918, 1767, 353, 6702, 1767, 29915, 718, 851, 29898, 29875, 8106, 12508, 580, 13, 9651, 1583, 29889, 9294, 9843, 29898, 9684, 29918, 1767, 29892, 3935, 29918, 1767, 29897, 13, 9651, 474, 4619, 29871, 29896, 13, 2 ]
flowx/poisson/_poisson.py
akashdhruv/flowX
0
64714
<filename>flowx/poisson/_poisson.py """Interface for Poisson solver module""" from . import _interface class Poisson(object): def __init__(self, grid=None, poisson_vars=[None]*2, poisson_info=None): """ Constructor for the Poisson unit Arguments --------- grid : object Grid object where the poisson equation needs to be solved poisson_vars : list List of string for field variables required by poisson unit poisson_vars[0] --> Phi (numerical solution) poisson_vars[1] --> RHS poisson_info : Dictionary of keyword arguments 'poisson_solver' keyword refers to the type of solver to be used poisson_info['poisson_solver'] = 'serial_cg' --> default = 'serial_jacobi' poisson_info['maxiter'] = maximum number of iterations --> default 2000 poisson_info['tol'] = minimum tolerance of the residuals --> default 1e-9 poisson_info['verbose'] = bool to displacy poisson stats or not --> default False """ #---------------------Create images of other units and objects---------------- self._grid = grid self._ivar, self._rvar = poisson_vars #--------------------Set default parameters--------------------------------- self._options = {'poisson_solver' : 'superlu', \ 'maxiter': 2000, \ 'tol' : 1e-9, \ 'verbose' : False} self._serial_iterative_solvers = {'cg' : _interface.solve_cg, \ 'jacobi': _interface.solve_jacobi} self._serial_direct_solvers = {'direct' : _interface.solve_direct, \ 'superlu' : _interface.solve_superlu} #----------------------Read user parameters------------------------------------ if poisson_info: for key in poisson_info: self._options[key] = poisson_info[key] #----------------------Setup current unit with default/user parameters----------- if not grid or None in poisson_vars: self._solve = _interface.solve_stub print('Warning: Poisson unit is a stub') else: self._solve = {**self._serial_iterative_solvers, **self._serial_direct_solvers}[self._options['poisson_solver']] self._options['lu'], self._options['matrix'] = _interface.build_sparse_matrix(self._grid, self._ivar) return def solve(self): """ Subroutine to solve poisson equation """ ites, residual = self._solve(self._grid, self._ivar, self._rvar, self._options) return ites, residual
[ 1, 529, 9507, 29958, 1731, 29916, 29914, 1129, 17387, 19891, 1129, 17387, 29889, 2272, 13, 15945, 29908, 10448, 363, 3929, 17387, 899, 369, 3883, 15945, 29908, 13, 13, 3166, 869, 1053, 903, 13248, 13, 13, 1990, 3929, 17387, 29898, 3318, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 6856, 29922, 8516, 29892, 772, 17387, 29918, 16908, 11759, 8516, 14178, 29906, 29892, 772, 17387, 29918, 3888, 29922, 8516, 1125, 13, 4706, 9995, 13, 4706, 1281, 18769, 363, 278, 3929, 17387, 5190, 13, 13, 4706, 11842, 9331, 13, 4706, 448, 1378, 13, 4706, 6856, 308, 584, 1203, 13, 462, 539, 11657, 1203, 988, 278, 772, 17387, 6306, 4225, 304, 367, 7484, 13, 13, 4706, 772, 17387, 29918, 16908, 584, 1051, 13, 462, 539, 2391, 310, 1347, 363, 1746, 3651, 3734, 491, 772, 17387, 5190, 18884, 13, 462, 539, 772, 17387, 29918, 16908, 29961, 29900, 29962, 6660, 1963, 29875, 313, 8058, 936, 1650, 29897, 13, 462, 539, 772, 17387, 29918, 16908, 29961, 29896, 29962, 6660, 390, 14851, 13, 13, 4706, 772, 17387, 29918, 3888, 584, 13343, 310, 13553, 6273, 13, 13, 4706, 525, 1129, 17387, 29918, 2929, 369, 29915, 13553, 14637, 304, 278, 1134, 310, 899, 369, 304, 367, 1304, 13, 4706, 772, 17387, 29918, 3888, 1839, 1129, 17387, 29918, 2929, 369, 2033, 353, 525, 15550, 29918, 29883, 29887, 29915, 6660, 2322, 13, 462, 462, 539, 353, 525, 15550, 29918, 29926, 562, 15647, 29915, 13, 13, 4706, 772, 17387, 29918, 3888, 1839, 3317, 1524, 2033, 353, 7472, 1353, 310, 24372, 6660, 2322, 29871, 29906, 29900, 29900, 29900, 13, 4706, 772, 17387, 29918, 3888, 1839, 25027, 2033, 268, 353, 9212, 20341, 749, 310, 278, 10995, 27101, 6660, 2322, 29871, 29896, 29872, 29899, 29929, 13, 4706, 772, 17387, 29918, 3888, 1839, 369, 15828, 2033, 353, 6120, 304, 12272, 433, 1270, 772, 17387, 22663, 470, 451, 6660, 2322, 7700, 13, 13, 4706, 9995, 13, 4706, 396, 2683, 23648, 4391, 4558, 310, 916, 10340, 322, 3618, 2683, 13, 4706, 1583, 3032, 7720, 353, 6856, 13, 4706, 1583, 3032, 440, 279, 29892, 1583, 3032, 29878, 1707, 353, 772, 17387, 29918, 16908, 13, 13, 4706, 396, 2683, 807, 2697, 2322, 4128, 2683, 2683, 29899, 13, 4706, 1583, 3032, 6768, 353, 11117, 1129, 17387, 29918, 2929, 369, 29915, 584, 525, 9136, 6092, 742, 320, 13, 462, 308, 525, 3317, 1524, 2396, 29871, 29906, 29900, 29900, 29900, 29892, 320, 13, 462, 308, 525, 25027, 29915, 584, 29871, 29896, 29872, 29899, 29929, 29892, 320, 13, 462, 308, 525, 369, 15828, 29915, 584, 7700, 29913, 13, 13, 4706, 1583, 3032, 15550, 29918, 1524, 1230, 29918, 2929, 874, 353, 11117, 29883, 29887, 29915, 584, 903, 13248, 29889, 2929, 345, 29918, 29883, 29887, 29892, 320, 13, 462, 462, 3986, 525, 29926, 562, 15647, 2396, 903, 13248, 29889, 2929, 345, 29918, 29926, 562, 15647, 29913, 13, 13, 4706, 1583, 3032, 15550, 29918, 11851, 29918, 2929, 874, 353, 11117, 11851, 29915, 584, 903, 13248, 29889, 2929, 345, 29918, 11851, 29892, 320, 13, 462, 462, 539, 525, 9136, 6092, 29915, 584, 903, 13248, 29889, 2929, 345, 29918, 9136, 6092, 29913, 13, 13, 4706, 396, 2683, 22158, 6359, 1404, 4128, 2683, 2683, 807, 13, 4706, 565, 772, 17387, 29918, 3888, 29901, 29871, 13, 9651, 363, 1820, 297, 772, 17387, 29918, 3888, 29901, 1583, 3032, 6768, 29961, 1989, 29962, 353, 772, 17387, 29918, 3888, 29961, 1989, 29962, 13, 13, 4706, 396, 2683, 22158, 26947, 1857, 5190, 411, 2322, 29914, 1792, 4128, 1378, 5634, 13, 13, 4706, 565, 451, 6856, 470, 6213, 297, 772, 17387, 29918, 16908, 29901, 13, 9651, 1583, 3032, 2929, 345, 353, 903, 13248, 29889, 2929, 345, 29918, 303, 431, 13, 9651, 1596, 877, 22709, 29901, 3929, 17387, 5190, 338, 263, 19281, 1495, 29871, 13, 13, 4706, 1683, 29901, 13, 9651, 1583, 3032, 2929, 345, 353, 426, 1068, 1311, 3032, 15550, 29918, 1524, 1230, 29918, 2929, 874, 29892, 29871, 13, 462, 965, 3579, 1311, 3032, 15550, 29918, 11851, 29918, 2929, 874, 4400, 1311, 3032, 6768, 1839, 1129, 17387, 29918, 2929, 369, 2033, 29962, 13, 13, 9651, 1583, 3032, 6768, 1839, 6092, 7464, 1583, 3032, 6768, 1839, 5344, 2033, 353, 903, 13248, 29889, 4282, 29918, 29879, 5510, 29918, 5344, 29898, 1311, 3032, 7720, 29892, 1583, 3032, 440, 279, 29897, 13, 13, 4706, 736, 13, 13, 1678, 822, 4505, 29898, 1311, 1125, 13, 4706, 9995, 3323, 14608, 457, 304, 4505, 772, 17387, 6306, 13, 13, 4706, 9995, 13, 13, 4706, 372, 267, 29892, 10995, 950, 353, 1583, 3032, 2929, 345, 29898, 1311, 3032, 7720, 29892, 1583, 3032, 440, 279, 29892, 1583, 3032, 29878, 1707, 29892, 1583, 3032, 6768, 29897, 13, 13, 4706, 736, 372, 267, 29892, 10995, 950, 13, 2 ]
hydras/utils.py
Gilnaa/Hydra
5
149266
""" Contains various utility methods. :file: utils.py :date: 27/08/2015 :authors: - <NAME> <<EMAIL>> """ from typing import Any, Type, Union import inspect import enum import sys class Endianness(enum.Enum): BIG = '>' LITTLE = '<' HOST = '=' TARGET = None def is_equivalent_to_little_endian(self): return self == Endianness.LITTLE or (self == Endianness.HOST and sys.byteorder == 'little') def is_equivalent_to_big_endian(self): return self == Endianness.LITTLE or (self == Endianness.HOST and sys.byteorder == 'little') def create_array(size: Union[int, slice], underlying_type): # Importing locally in order to avoid weird import-cycle issues from .array import Array return Array[size, underlying_type] def fit_bytes_to_size(byte_string, length): """ Ensure the given byte_string is in the correct length A long byte_string will be truncated, while a short one will be padded. :param byte_string: The string to fit. :param length: The required string size. """ if length is None: return byte_string if len(byte_string) < length: return padto(byte_string, length) return byte_string[:length] def get_as_type(t): return t if inspect.isclass(t) else type(t) def get_as_value(v): return v() if inspect.isclass(v) else v def mask(length, offset=0): """ Generate a bitmask with the given parameter. :param length: The bit length of the mask. :param offset: The offset of the mask from the LSB bit. [default: 0] :return: An integer representing the bit mask. """ return ((1 << length) - 1) << offset def get_type_name(t: Union[Type, Any]) -> str: return get_as_type(t).__name__ def padto(data, size, pad_val=b'\x00', leftpad=False): assert type(pad_val) == bytes and len(pad_val) == 1, 'Padding value must be 1 byte' if len(data) < size: padding = pad_val * (size - len(data)) if not leftpad: data += padding else: data = padding + data return data
[ 1, 9995, 13, 21409, 5164, 19725, 3519, 29889, 13, 13, 29901, 1445, 29901, 3667, 29879, 29889, 2272, 13, 29901, 1256, 29901, 29871, 29906, 29955, 29914, 29900, 29947, 29914, 29906, 29900, 29896, 29945, 13, 29901, 5150, 943, 29901, 13, 1678, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 13, 15945, 29908, 13, 13, 3166, 19229, 1053, 3139, 29892, 5167, 29892, 7761, 13, 5215, 16096, 13, 5215, 14115, 13, 5215, 10876, 13, 13, 13, 1990, 2796, 713, 2264, 29898, 18605, 29889, 16854, 1125, 13, 1678, 350, 6259, 353, 525, 16299, 13, 1678, 365, 1806, 29911, 1307, 353, 12801, 29915, 13, 1678, 379, 3718, 353, 525, 2433, 13, 1678, 323, 1718, 7194, 353, 6213, 13, 13, 1678, 822, 338, 29918, 1686, 27445, 29918, 517, 29918, 29880, 1992, 29918, 355, 713, 29898, 1311, 1125, 13, 4706, 736, 1583, 1275, 2796, 713, 2264, 29889, 29931, 1806, 29911, 1307, 470, 313, 1311, 1275, 2796, 713, 2264, 29889, 20832, 322, 10876, 29889, 10389, 2098, 1275, 525, 29880, 1992, 1495, 13, 13, 1678, 822, 338, 29918, 1686, 27445, 29918, 517, 29918, 3752, 29918, 355, 713, 29898, 1311, 1125, 13, 4706, 736, 1583, 1275, 2796, 713, 2264, 29889, 29931, 1806, 29911, 1307, 470, 313, 1311, 1275, 2796, 713, 2264, 29889, 20832, 322, 10876, 29889, 10389, 2098, 1275, 525, 29880, 1992, 1495, 13, 13, 13, 1753, 1653, 29918, 2378, 29898, 2311, 29901, 7761, 29961, 524, 29892, 22780, 1402, 14407, 29918, 1853, 1125, 13, 1678, 396, 16032, 292, 12430, 297, 1797, 304, 4772, 13543, 1053, 29899, 23090, 5626, 13, 1678, 515, 869, 2378, 1053, 4398, 13, 1678, 736, 4398, 29961, 2311, 29892, 14407, 29918, 1853, 29962, 13, 13, 13, 1753, 6216, 29918, 13193, 29918, 517, 29918, 2311, 29898, 10389, 29918, 1807, 29892, 3309, 1125, 13, 1678, 9995, 13, 1678, 22521, 545, 278, 2183, 7023, 29918, 1807, 338, 297, 278, 1959, 3309, 13, 13, 1678, 319, 1472, 7023, 29918, 1807, 674, 367, 21022, 630, 29892, 1550, 263, 3273, 697, 674, 367, 282, 23959, 29889, 13, 13, 1678, 584, 3207, 7023, 29918, 1807, 29901, 450, 1347, 304, 6216, 29889, 13, 1678, 584, 3207, 3309, 29901, 418, 450, 3734, 1347, 2159, 29889, 13, 1678, 9995, 13, 1678, 565, 3309, 338, 6213, 29901, 13, 4706, 736, 7023, 29918, 1807, 13, 13, 1678, 565, 7431, 29898, 10389, 29918, 1807, 29897, 529, 3309, 29901, 13, 4706, 736, 17132, 517, 29898, 10389, 29918, 1807, 29892, 3309, 29897, 13, 13, 1678, 736, 7023, 29918, 1807, 7503, 2848, 29962, 13, 13, 13, 1753, 679, 29918, 294, 29918, 1853, 29898, 29873, 1125, 13, 1678, 736, 260, 565, 16096, 29889, 275, 1990, 29898, 29873, 29897, 1683, 1134, 29898, 29873, 29897, 13, 13, 13, 1753, 679, 29918, 294, 29918, 1767, 29898, 29894, 1125, 13, 1678, 736, 325, 580, 565, 16096, 29889, 275, 1990, 29898, 29894, 29897, 1683, 325, 13, 13, 13, 1753, 11105, 29898, 2848, 29892, 9210, 29922, 29900, 1125, 13, 1678, 9995, 13, 1678, 3251, 403, 263, 2586, 13168, 411, 278, 2183, 3443, 29889, 13, 13, 1678, 584, 3207, 3309, 29901, 29871, 450, 2586, 3309, 310, 278, 11105, 29889, 13, 1678, 584, 3207, 9210, 29901, 29871, 450, 9210, 310, 278, 11105, 515, 278, 365, 1744, 2586, 29889, 518, 4381, 29901, 29871, 29900, 29962, 13, 1678, 584, 2457, 29901, 4706, 530, 6043, 15783, 278, 2586, 11105, 29889, 13, 1678, 9995, 13, 1678, 736, 5135, 29896, 3532, 3309, 29897, 448, 29871, 29896, 29897, 3532, 9210, 13, 13, 13, 1753, 679, 29918, 1853, 29918, 978, 29898, 29873, 29901, 7761, 29961, 1542, 29892, 3139, 2314, 1599, 851, 29901, 13, 1678, 736, 679, 29918, 294, 29918, 1853, 29898, 29873, 467, 1649, 978, 1649, 13, 13, 13, 1753, 17132, 517, 29898, 1272, 29892, 2159, 29892, 17132, 29918, 791, 29922, 29890, 12764, 29916, 29900, 29900, 742, 2175, 8305, 29922, 8824, 1125, 13, 1678, 4974, 1134, 29898, 8305, 29918, 791, 29897, 1275, 6262, 322, 7431, 29898, 8305, 29918, 791, 29897, 1275, 29871, 29896, 29892, 525, 29925, 4676, 995, 1818, 367, 29871, 29896, 7023, 29915, 13, 1678, 565, 7431, 29898, 1272, 29897, 529, 2159, 29901, 13, 4706, 7164, 353, 17132, 29918, 791, 334, 313, 2311, 448, 7431, 29898, 1272, 876, 13, 13, 4706, 565, 451, 2175, 8305, 29901, 13, 9651, 848, 4619, 7164, 13, 4706, 1683, 29901, 13, 9651, 848, 353, 7164, 718, 848, 13, 1678, 736, 848, 13, 2 ]
number_punch/number_punch.py
abcdHero/battlegame
1
53295
import sys import random import pygame # Define Window Size SCREEN_WIDTH, SCREEN_HEIGHT = 800, 600 # Define Frames Per Second FRAMES_PER_SEC = 25 # Function: Draw a text to the screen def blit_text(screen_object, font, msg_text, color_tuple, center_tuple, antialiased=True): # Define a message in Main Menu with Color Tuple in RGB msg_font = font.render(msg_text, antialiased, color_tuple) # Find position of the message font_pos = msg_font.get_rect(center=center_tuple) # Draw (blit) the message at the calculated position screen_object.blit(msg_font , font_pos) # Function: Check which is winner def check_winner(player1_value, player2_value, screen_object, font_object, clock): frame_count = 0 while True: for event in pygame.event.get(): # If Quit Signal is received, quit the game if event.type == pygame.QUIT: pygame.quit() sys.exit() screen_object.fill((0,0,0)) if frame_count < 100: player1_message = 'Player 1: ' + str(random.randrange(1, 5+1)) blit_text(screen_object, font_object, player1_message, (255, 0, 0), (SCREEN_WIDTH//2, SCREEN_HEIGHT//2 + 40)) player2_message = 'Player 2: ' + str(random.randrange(1, 5+1)) blit_text(screen_object, font_object, player2_message, (0, 0, 255), (SCREEN_WIDTH//2, SCREEN_HEIGHT//2 + 80)) elif frame_count < 200: player1_message = 'Player 1: ' + str(player1_value + 1) blit_text(screen_object, font_object, player1_message, (255, 0, 0), (SCREEN_WIDTH//2, SCREEN_HEIGHT//2 + 40)) player2_message = 'Player 2: ' + str(player2_value + 1) blit_text(screen_object, font_object, player2_message, (0, 0, 255), (SCREEN_WIDTH//2, SCREEN_HEIGHT//2 + 80)) elif frame_count < 300: winner_message = 'Player 2 wins!' if player1_value == player2_value: winner_message = 'Draw Game!' elif player1_value > player2_value or (player1_value == 0 and player2_value == 5): winner_message = 'Player 1 wins!' blit_text(screen_object, font_object, winner_message, (255, 255, 255), (SCREEN_WIDTH//2, SCREEN_HEIGHT//2)) else: break # leave this while-loop and this function frame_count += 1 pygame.display.update() clock.tick(FRAMES_PER_SEC) # Function: Start the game def start_game(): # Initialize pygame library pygame.init() # Set default Font: comic sans font_object=pygame.font.SysFont('comicsans',40) # Define Window Screen Display object screen_object = pygame.display.set_mode((SCREEN_WIDTH,SCREEN_HEIGHT)) # Initial a CLOCK object to tick time CLOCK = pygame.time.Clock() # initial values is_reset = True # Game's main entry print('DEBUG: about to enter the game') while True: if is_reset: # value range: 0 - 4 player1_value = 0 player1_pressed_count = 0 player2_value = 0 player2_pressed_count = 0 is_reset = False for event in pygame.event.get(): # If Quit Signal is received, quit the game if event.type == pygame.QUIT: pygame.quit() sys.exit() # If any key is pressed, go here keys_pressed = pygame.key.get_pressed() if keys_pressed[pygame.K_w]: player1_value = (player1_value + 1) % 5 player1_pressed_count += 1 if keys_pressed[pygame.K_s]: player1_value = (player1_value - 1 + 5) % 5 player1_pressed_count += 1 if keys_pressed[pygame.K_UP]: player2_value = (player2_value + 1) % 5 player2_pressed_count += 1 if keys_pressed[pygame.K_DOWN]: player2_value = (player2_value - 1 + 5) % 5 player2_pressed_count += 1 if keys_pressed[pygame.K_RETURN] and player1_pressed_count > 0 and player2_pressed_count > 0: check_winner(player1_value, player2_value, screen_object, font_object, CLOCK) is_reset = True screen_object.fill((0,0,0)) blit_text(screen_object, font_object, 'Welcome to Number Punch!', (255, 255, 255), (SCREEN_WIDTH//2, SCREEN_HEIGHT//2)) player1_message = 'Player 1, Press W to increase, S to decrease' if player1_pressed_count > 0: if player1_value % 2 == 0: player1_message = 'Player 1: @@' else: player1_message = 'Player 1: ##' blit_text(screen_object, font_object, player1_message, (255, 0, 0), (SCREEN_WIDTH//2, SCREEN_HEIGHT//2 + 40)) player2_message = 'Player 2, Press UP to increase, DOWN to decrease' if player2_pressed_count > 0: if player2_value % 2 == 0: player2_message = 'Player 2: @@' else: player2_message = 'Player 2: ##' blit_text(screen_object, font_object, player2_message, (0, 0, 255), (SCREEN_WIDTH//2, SCREEN_HEIGHT//2 + 80)) blit_text(screen_object, font_object, 'Press ENTER to confirm both', (255, 255, 255), (SCREEN_WIDTH//2, SCREEN_HEIGHT//2 + 120)) pygame.display.update() CLOCK.tick(FRAMES_PER_SEC) if __name__ == '__main__': # Executed when invoked directly start_game()
[ 1, 1053, 10876, 13, 5215, 4036, 13, 5215, 22028, 13, 13, 29937, 22402, 18379, 21179, 13, 7187, 1525, 1430, 29918, 22574, 29892, 12314, 1525, 1430, 29918, 9606, 22530, 353, 29871, 29947, 29900, 29900, 29892, 29871, 29953, 29900, 29900, 13, 29937, 22402, 4693, 1280, 2431, 6440, 13, 29943, 4717, 2303, 29903, 29918, 13171, 29918, 1660, 29907, 353, 29871, 29906, 29945, 13, 13, 29937, 6680, 29901, 18492, 263, 1426, 304, 278, 4315, 13, 1753, 1999, 277, 29918, 726, 29898, 10525, 29918, 3318, 29892, 4079, 29892, 10191, 29918, 726, 29892, 2927, 29918, 23583, 29892, 4818, 29918, 23583, 29892, 3677, 24341, 1463, 29922, 5574, 1125, 13, 1678, 396, 22402, 263, 2643, 297, 4241, 20019, 411, 9159, 12603, 552, 297, 390, 7210, 13, 1678, 10191, 29918, 5657, 353, 4079, 29889, 9482, 29898, 7645, 29918, 726, 29892, 3677, 24341, 1463, 29892, 2927, 29918, 23583, 29897, 13, 1678, 396, 10987, 2602, 310, 278, 2643, 29871, 13, 1678, 4079, 29918, 1066, 353, 10191, 29918, 5657, 29889, 657, 29918, 1621, 29898, 5064, 29922, 5064, 29918, 23583, 29897, 13, 1678, 396, 18492, 313, 2204, 277, 29897, 278, 2643, 472, 278, 12833, 2602, 13, 1678, 4315, 29918, 3318, 29889, 2204, 277, 29898, 7645, 29918, 5657, 1919, 4079, 29918, 1066, 29897, 13, 13, 29937, 6680, 29901, 5399, 607, 338, 19576, 13, 1753, 1423, 29918, 29893, 3993, 29898, 9106, 29896, 29918, 1767, 29892, 4847, 29906, 29918, 1767, 29892, 4315, 29918, 3318, 29892, 4079, 29918, 3318, 29892, 12006, 1125, 13, 1678, 3515, 29918, 2798, 353, 29871, 29900, 13, 1678, 1550, 5852, 29901, 13, 4706, 363, 1741, 297, 22028, 29889, 3696, 29889, 657, 7295, 308, 13, 9651, 396, 960, 751, 277, 9954, 284, 338, 4520, 29892, 23283, 278, 3748, 13, 9651, 565, 1741, 29889, 1853, 1275, 22028, 29889, 13356, 1806, 29901, 13, 18884, 22028, 29889, 28358, 580, 13, 18884, 10876, 29889, 13322, 580, 13, 308, 13, 4706, 4315, 29918, 3318, 29889, 5589, 3552, 29900, 29892, 29900, 29892, 29900, 876, 13, 4706, 565, 3515, 29918, 2798, 529, 29871, 29896, 29900, 29900, 29901, 13, 9651, 4847, 29896, 29918, 4906, 353, 525, 9075, 29871, 29896, 29901, 525, 718, 851, 29898, 8172, 29889, 9502, 3881, 29898, 29896, 29892, 29871, 29945, 29974, 29896, 876, 13, 9651, 1999, 277, 29918, 726, 29898, 10525, 29918, 3318, 29892, 4079, 29918, 3318, 29892, 4847, 29896, 29918, 4906, 29892, 313, 29906, 29945, 29945, 29892, 29871, 29900, 29892, 29871, 29900, 511, 313, 7187, 1525, 1430, 29918, 22574, 458, 29906, 29892, 12314, 1525, 1430, 29918, 9606, 22530, 458, 29906, 718, 29871, 29946, 29900, 876, 13, 9651, 4847, 29906, 29918, 4906, 353, 525, 9075, 29871, 29906, 29901, 525, 718, 851, 29898, 8172, 29889, 9502, 3881, 29898, 29896, 29892, 29871, 29945, 29974, 29896, 876, 13, 9651, 1999, 277, 29918, 726, 29898, 10525, 29918, 3318, 29892, 4079, 29918, 3318, 29892, 4847, 29906, 29918, 4906, 29892, 313, 29900, 29892, 29871, 29900, 29892, 29871, 29906, 29945, 29945, 511, 313, 7187, 1525, 1430, 29918, 22574, 458, 29906, 29892, 12314, 1525, 1430, 29918, 9606, 22530, 458, 29906, 718, 29871, 29947, 29900, 876, 13, 4706, 25342, 3515, 29918, 2798, 529, 29871, 29906, 29900, 29900, 29901, 13, 9651, 4847, 29896, 29918, 4906, 353, 525, 9075, 29871, 29896, 29901, 525, 718, 851, 29898, 9106, 29896, 29918, 1767, 718, 29871, 29896, 29897, 13, 9651, 1999, 277, 29918, 726, 29898, 10525, 29918, 3318, 29892, 4079, 29918, 3318, 29892, 4847, 29896, 29918, 4906, 29892, 313, 29906, 29945, 29945, 29892, 29871, 29900, 29892, 29871, 29900, 511, 313, 7187, 1525, 1430, 29918, 22574, 458, 29906, 29892, 12314, 1525, 1430, 29918, 9606, 22530, 458, 29906, 718, 29871, 29946, 29900, 876, 13, 9651, 4847, 29906, 29918, 4906, 353, 525, 9075, 29871, 29906, 29901, 525, 718, 851, 29898, 9106, 29906, 29918, 1767, 718, 29871, 29896, 29897, 13, 9651, 1999, 277, 29918, 726, 29898, 10525, 29918, 3318, 29892, 4079, 29918, 3318, 29892, 4847, 29906, 29918, 4906, 29892, 313, 29900, 29892, 29871, 29900, 29892, 29871, 29906, 29945, 29945, 511, 313, 7187, 1525, 1430, 29918, 22574, 458, 29906, 29892, 12314, 1525, 1430, 29918, 9606, 22530, 458, 29906, 718, 29871, 29947, 29900, 876, 13, 4706, 25342, 3515, 29918, 2798, 529, 29871, 29941, 29900, 29900, 29901, 13, 9651, 19576, 29918, 4906, 353, 525, 9075, 29871, 29906, 21614, 20714, 13, 9651, 565, 4847, 29896, 29918, 1767, 1275, 4847, 29906, 29918, 1767, 29901, 13, 18884, 19576, 29918, 4906, 353, 525, 8537, 8448, 20714, 13, 9651, 25342, 4847, 29896, 29918, 1767, 1405, 4847, 29906, 29918, 1767, 470, 313, 9106, 29896, 29918, 1767, 1275, 29871, 29900, 322, 4847, 29906, 29918, 1767, 1275, 29871, 29945, 1125, 13, 18884, 19576, 29918, 4906, 353, 525, 9075, 29871, 29896, 21614, 20714, 13, 9651, 1999, 277, 29918, 726, 29898, 10525, 29918, 3318, 29892, 4079, 29918, 3318, 29892, 19576, 29918, 4906, 29892, 313, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 511, 313, 7187, 1525, 1430, 29918, 22574, 458, 29906, 29892, 12314, 1525, 1430, 29918, 9606, 22530, 458, 29906, 876, 13, 4706, 1683, 29901, 13, 9651, 2867, 259, 396, 5967, 445, 1550, 29899, 7888, 322, 445, 740, 13, 13, 4706, 3515, 29918, 2798, 4619, 29871, 29896, 13, 4706, 22028, 29889, 4990, 29889, 5504, 580, 13, 4706, 12006, 29889, 24667, 29898, 29943, 4717, 2303, 29903, 29918, 13171, 29918, 1660, 29907, 29897, 13, 13, 29937, 6680, 29901, 7370, 278, 3748, 13, 1753, 1369, 29918, 11802, 7295, 13, 1678, 396, 25455, 22028, 3489, 13, 1678, 22028, 29889, 2344, 580, 13, 13, 1678, 396, 3789, 2322, 10928, 29901, 419, 293, 7209, 13, 1678, 4079, 29918, 3318, 29922, 2272, 11802, 29889, 5657, 29889, 29903, 952, 9824, 877, 510, 1199, 550, 742, 29946, 29900, 29897, 268, 13, 13, 1678, 396, 22402, 18379, 22666, 17440, 1203, 13, 1678, 4315, 29918, 3318, 353, 22028, 29889, 4990, 29889, 842, 29918, 8513, 3552, 7187, 1525, 1430, 29918, 22574, 29892, 7187, 1525, 1430, 29918, 9606, 22530, 876, 13, 13, 1678, 396, 17250, 263, 315, 21339, 1203, 304, 16892, 931, 13, 1678, 315, 21339, 353, 22028, 29889, 2230, 29889, 29907, 908, 580, 13, 13, 1678, 396, 2847, 1819, 13, 1678, 338, 29918, 12071, 353, 5852, 13, 13, 1678, 396, 8448, 29915, 29879, 1667, 6251, 13, 1678, 1596, 877, 18525, 29901, 1048, 304, 3896, 278, 3748, 1495, 13, 1678, 1550, 5852, 29901, 13, 4706, 565, 338, 29918, 12071, 29901, 13, 9651, 396, 995, 3464, 29901, 29871, 29900, 448, 29871, 29946, 13, 9651, 4847, 29896, 29918, 1767, 353, 29871, 29900, 13, 9651, 4847, 29896, 29918, 13120, 29918, 2798, 353, 29871, 29900, 13, 9651, 4847, 29906, 29918, 1767, 353, 29871, 29900, 13, 9651, 4847, 29906, 29918, 13120, 29918, 2798, 353, 29871, 29900, 13, 9651, 338, 29918, 12071, 353, 7700, 13, 13, 4706, 363, 1741, 297, 22028, 29889, 3696, 29889, 657, 7295, 13, 9651, 396, 960, 751, 277, 9954, 284, 338, 4520, 29892, 23283, 278, 3748, 13, 9651, 565, 1741, 29889, 1853, 1275, 22028, 29889, 13356, 1806, 29901, 13, 18884, 22028, 29889, 28358, 580, 13, 18884, 10876, 29889, 13322, 580, 13, 9651, 396, 960, 738, 1820, 338, 15385, 29892, 748, 1244, 13, 9651, 6611, 29918, 13120, 353, 22028, 29889, 1989, 29889, 657, 29918, 13120, 580, 13, 13, 9651, 565, 6611, 29918, 13120, 29961, 2272, 11802, 29889, 29968, 29918, 29893, 5387, 13, 18884, 4847, 29896, 29918, 1767, 353, 313, 9106, 29896, 29918, 1767, 718, 29871, 29896, 29897, 1273, 29871, 29945, 13, 18884, 4847, 29896, 29918, 13120, 29918, 2798, 4619, 29871, 29896, 13, 9651, 565, 6611, 29918, 13120, 29961, 2272, 11802, 29889, 29968, 29918, 29879, 5387, 13, 18884, 4847, 29896, 29918, 1767, 353, 313, 9106, 29896, 29918, 1767, 448, 29871, 29896, 718, 29871, 29945, 29897, 1273, 29871, 29945, 13, 18884, 4847, 29896, 29918, 13120, 29918, 2798, 4619, 29871, 29896, 13, 9651, 565, 6611, 29918, 13120, 29961, 2272, 11802, 29889, 29968, 29918, 4897, 5387, 13, 18884, 4847, 29906, 29918, 1767, 353, 313, 9106, 29906, 29918, 1767, 718, 29871, 29896, 29897, 1273, 29871, 29945, 13, 18884, 4847, 29906, 29918, 13120, 29918, 2798, 4619, 29871, 29896, 13, 9651, 565, 6611, 29918, 13120, 29961, 2272, 11802, 29889, 29968, 29918, 3970, 16048, 5387, 13, 18884, 4847, 29906, 29918, 1767, 353, 313, 9106, 29906, 29918, 1767, 448, 29871, 29896, 718, 29871, 29945, 29897, 1273, 29871, 29945, 13, 18884, 4847, 29906, 29918, 13120, 29918, 2798, 4619, 29871, 29896, 13, 9651, 565, 6611, 29918, 13120, 29961, 2272, 11802, 29889, 29968, 29918, 1525, 29911, 24015, 29962, 322, 4847, 29896, 29918, 13120, 29918, 2798, 1405, 29871, 29900, 322, 4847, 29906, 29918, 13120, 29918, 2798, 1405, 29871, 29900, 29901, 13, 18884, 1423, 29918, 29893, 3993, 29898, 9106, 29896, 29918, 1767, 29892, 4847, 29906, 29918, 1767, 29892, 4315, 29918, 3318, 29892, 4079, 29918, 3318, 29892, 315, 21339, 29897, 13, 18884, 338, 29918, 12071, 353, 5852, 13, 462, 13, 4706, 4315, 29918, 3318, 29889, 5589, 3552, 29900, 29892, 29900, 29892, 29900, 876, 13, 13, 4706, 1999, 277, 29918, 726, 29898, 10525, 29918, 3318, 29892, 4079, 29918, 3318, 29892, 525, 28862, 2763, 304, 9681, 349, 3322, 29991, 742, 313, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 511, 313, 7187, 1525, 1430, 29918, 22574, 458, 29906, 29892, 12314, 1525, 1430, 29918, 9606, 22530, 458, 29906, 876, 13, 13, 4706, 4847, 29896, 29918, 4906, 353, 525, 9075, 29871, 29896, 29892, 5254, 399, 304, 7910, 29892, 317, 304, 23806, 29915, 13, 4706, 565, 4847, 29896, 29918, 13120, 29918, 2798, 1405, 29871, 29900, 29901, 13, 9651, 565, 4847, 29896, 29918, 1767, 1273, 29871, 29906, 1275, 29871, 29900, 29901, 13, 18884, 4847, 29896, 29918, 4906, 353, 525, 9075, 29871, 29896, 29901, 732, 29992, 29915, 13, 9651, 1683, 29901, 13, 18884, 4847, 29896, 29918, 4906, 353, 525, 9075, 29871, 29896, 29901, 444, 29915, 13, 4706, 1999, 277, 29918, 726, 29898, 10525, 29918, 3318, 29892, 4079, 29918, 3318, 29892, 4847, 29896, 29918, 4906, 29892, 313, 29906, 29945, 29945, 29892, 29871, 29900, 29892, 29871, 29900, 511, 313, 7187, 1525, 1430, 29918, 22574, 458, 29906, 29892, 12314, 1525, 1430, 29918, 9606, 22530, 458, 29906, 718, 29871, 29946, 29900, 876, 13, 13, 4706, 4847, 29906, 29918, 4906, 353, 525, 9075, 29871, 29906, 29892, 5254, 11901, 304, 7910, 29892, 360, 9806, 29940, 304, 23806, 29915, 13, 4706, 565, 4847, 29906, 29918, 13120, 29918, 2798, 1405, 29871, 29900, 29901, 13, 9651, 565, 4847, 29906, 29918, 1767, 1273, 29871, 29906, 1275, 29871, 29900, 29901, 13, 18884, 4847, 29906, 29918, 4906, 353, 525, 9075, 29871, 29906, 29901, 732, 29992, 29915, 13, 9651, 1683, 29901, 13, 18884, 4847, 29906, 29918, 4906, 353, 525, 9075, 29871, 29906, 29901, 444, 29915, 13, 4706, 1999, 277, 29918, 726, 29898, 10525, 29918, 3318, 29892, 4079, 29918, 3318, 29892, 4847, 29906, 29918, 4906, 29892, 313, 29900, 29892, 29871, 29900, 29892, 29871, 29906, 29945, 29945, 511, 313, 7187, 1525, 1430, 29918, 22574, 458, 29906, 29892, 12314, 1525, 1430, 29918, 9606, 22530, 458, 29906, 718, 29871, 29947, 29900, 876, 13, 13, 4706, 1999, 277, 29918, 726, 29898, 10525, 29918, 3318, 29892, 4079, 29918, 3318, 29892, 525, 10923, 12524, 4945, 304, 9659, 1716, 742, 313, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 511, 313, 7187, 1525, 1430, 29918, 22574, 458, 29906, 29892, 12314, 1525, 1430, 29918, 9606, 22530, 458, 29906, 718, 29871, 29896, 29906, 29900, 876, 13, 13, 4706, 22028, 29889, 4990, 29889, 5504, 580, 13, 4706, 315, 21339, 29889, 24667, 29898, 29943, 4717, 2303, 29903, 29918, 13171, 29918, 1660, 29907, 29897, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 396, 11080, 3860, 746, 22336, 4153, 13, 1678, 1369, 29918, 11802, 580, 13, 13, 268, 2 ]
rollservice/tests/test_dice_seq.py
stallmanifold/pnpdr
0
38668
from django.contrib.auth.models import User from rollservice.models import DiceSequence import rest_framework.test as rf_test import rest_framework.status as status import rest_framework.reverse as reverse import hypothesis.extra.django import hypothesis.strategies as strategies import unittest class DiceSeqStrategies: dice_rolls = strategies.lists( elements=strategies.sampled_from([4, 6, 8, 10, 12, 20, 100]), min_size=1 ) user = strategies.just(dict( username='dungeon_master', email='<EMAIL>', password='<PASSWORD>' )) @strategies.composite def seq_name(draw): seq_number = draw(strategies.integers(min_value=1)) return f'Roll {seq_number}' @strategies.composite def dice_sequence(draw, seq_name=seq_name(), dice_rolls=dice_rolls): seq_name = draw(seq_name) dice_sequence = draw(dice_rolls) return dict( seq_name=seq_name, dice_sequence=dice_sequence ) dice_sequence_list = strategies.lists(elements=dice_sequence(), min_size=1) @strategies.composite def existing_uuid(draw, queryset): max_value = len(queryset) - 1 index = draw(strategies.integers(min_value=0, max_value=max_value)) return queryset[index].uuid non_existing_uuid = strategies.uuids() invalid_uuid = strategies.text(max_size=100) @strategies.composite def existing_uuid_url(draw, queryset): max_value = len(queryset) - 1 index = draw(strategies.integers(min_value=0, max_value=max_value)) uuid = queryset[index].uuid url = reverse.reverse('dice-seq-by-uuid', args=[uuid]) return url @strategies.composite def non_existing_uuid_url(draw, queryset, non_existing_uuid=non_existing_uuid): uuid = draw(non_existing_uuid) url = reverse.reverse('dice-seq-by-uuid', args=[uuid]) return url @strategies.composite def invalid_uuid_url(draw, invalid_uuid=invalid_uuid): uuid = draw(invalid_uuid) url_root = reverse.reverse('dice-seq') url = url_root + '/by_uuid/' + uuid + '/' return url class DiceSequenceByUUIDTests(hypothesis.extra.django.TestCase): @classmethod def setUpTestData(cls): sequences = DiceSeqStrategies.dice_sequence_list.example() new_user = DiceSeqStrategies.user.example() owner = User.objects.create(**new_user) for sequence in sequences: dice_sequence = DiceSequence.objects.create(seq_name=sequence['seq_name'], owner=owner) dice_sequence.sequence.set(sequence['dice_sequence']) queryset = DiceSequence.objects.all() client_class = rf_test.APIClient @hypothesis.given(DiceSeqStrategies.existing_uuid_url(queryset=queryset)) def test_dice_seq_by_uuid_GET_with_existing_uuid_should_return_OK(self, url): response = self.client.get(url) self.assertEqual(response.status_code, status.HTTP_200_OK) @hypothesis.given(DiceSeqStrategies.non_existing_uuid_url(queryset=queryset)) def test_dice_seq_by_uuid_GET_with_non_existing_uuid_should_return_NOT_FOUND(self, url): response = self.client.get(url) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) @hypothesis.given(DiceSeqStrategies.invalid_uuid_url()) def test_dice_seq_by_uuid_GET_with_invalid_uuid_should_return_BAD_REQUEST(self, url): response = self.client.get(url) self.assertIn(response.status_code, [status.HTTP_404_NOT_FOUND, status.HTTP_400_BAD_REQUEST]) @hypothesis.given(strategies.one_of([ DiceSeqStrategies.existing_uuid_url(queryset=queryset), DiceSeqStrategies.non_existing_uuid_url(queryset=queryset), DiceSeqStrategies.invalid_uuid_url(), ])) def test_dice_seq_by_uuid_GET_idempotent(self, url): response1 = self.client.get(url) response2 = self.client.get(url) self.assertEqual(response1.status_code, response2.status_code)
[ 1, 515, 9557, 29889, 21570, 29889, 5150, 29889, 9794, 1053, 4911, 13, 13, 3166, 9679, 5509, 29889, 9794, 1053, 360, 625, 20529, 13, 13, 5215, 1791, 29918, 4468, 29889, 1688, 1678, 408, 364, 29888, 29918, 1688, 13, 5215, 1791, 29918, 4468, 29889, 4882, 29871, 408, 4660, 13, 5215, 1791, 29918, 4468, 29889, 24244, 408, 11837, 13, 13, 5215, 20051, 29889, 17833, 29889, 14095, 13, 5215, 20051, 29889, 710, 1845, 583, 29871, 408, 16650, 583, 13, 13, 5215, 443, 27958, 13, 13, 13, 1990, 360, 625, 23718, 5015, 1845, 583, 29901, 13, 1678, 17629, 29918, 1245, 29879, 353, 16650, 583, 29889, 21513, 29898, 13, 4706, 3161, 29922, 710, 1845, 583, 29889, 11249, 29881, 29918, 3166, 4197, 29946, 29892, 29871, 29953, 29892, 29871, 29947, 29892, 29871, 29896, 29900, 29892, 29871, 29896, 29906, 29892, 29871, 29906, 29900, 29892, 29871, 29896, 29900, 29900, 11724, 29871, 13, 4706, 1375, 29918, 2311, 29922, 29896, 13, 1678, 1723, 13, 13, 1678, 1404, 353, 16650, 583, 29889, 5143, 29898, 8977, 29898, 13, 4706, 8952, 2433, 29881, 19440, 265, 29918, 6207, 742, 13, 4706, 4876, 2433, 29966, 26862, 6227, 29958, 742, 13, 4706, 4800, 2433, 29966, 25711, 17013, 16299, 13, 268, 876, 13, 13, 1678, 732, 710, 1845, 583, 29889, 22410, 568, 13, 1678, 822, 19359, 29918, 978, 29898, 4012, 1125, 13, 4706, 19359, 29918, 4537, 353, 4216, 29898, 710, 1845, 583, 29889, 6693, 5743, 29898, 1195, 29918, 1767, 29922, 29896, 876, 13, 4706, 736, 285, 29915, 29934, 3028, 426, 11762, 29918, 4537, 10162, 13, 13, 1678, 732, 710, 1845, 583, 29889, 22410, 568, 13, 1678, 822, 17629, 29918, 16506, 29898, 4012, 29892, 19359, 29918, 978, 29922, 11762, 29918, 978, 3285, 17629, 29918, 1245, 29879, 29922, 29881, 625, 29918, 1245, 29879, 1125, 13, 4706, 19359, 29918, 978, 353, 4216, 29898, 11762, 29918, 978, 29897, 13, 4706, 17629, 29918, 16506, 353, 4216, 29898, 29881, 625, 29918, 1245, 29879, 29897, 13, 13, 4706, 736, 9657, 29898, 13, 9651, 19359, 29918, 978, 29922, 11762, 29918, 978, 29892, 13, 9651, 17629, 29918, 16506, 29922, 29881, 625, 29918, 16506, 13, 4706, 1723, 13, 13, 1678, 17629, 29918, 16506, 29918, 1761, 353, 16650, 583, 29889, 21513, 29898, 17664, 29922, 29881, 625, 29918, 16506, 3285, 1375, 29918, 2311, 29922, 29896, 29897, 13, 13, 1678, 732, 710, 1845, 583, 29889, 22410, 568, 13, 1678, 822, 5923, 29918, 25118, 29898, 4012, 29892, 2346, 842, 1125, 13, 4706, 4236, 29918, 1767, 353, 7431, 29898, 1972, 842, 29897, 448, 29871, 29896, 13, 4706, 2380, 353, 4216, 29898, 710, 1845, 583, 29889, 6693, 5743, 29898, 1195, 29918, 1767, 29922, 29900, 29892, 4236, 29918, 1767, 29922, 3317, 29918, 1767, 876, 13, 308, 13, 4706, 736, 2346, 842, 29961, 2248, 1822, 25118, 13, 308, 13, 1678, 1661, 29918, 735, 15423, 29918, 25118, 353, 16650, 583, 29889, 29884, 29884, 4841, 580, 13, 1678, 8340, 29918, 25118, 353, 16650, 583, 29889, 726, 29898, 3317, 29918, 2311, 29922, 29896, 29900, 29900, 29897, 13, 13, 1678, 732, 710, 1845, 583, 29889, 22410, 568, 13, 1678, 822, 5923, 29918, 25118, 29918, 2271, 29898, 4012, 29892, 2346, 842, 1125, 13, 4706, 4236, 29918, 1767, 353, 7431, 29898, 1972, 842, 29897, 448, 29871, 29896, 13, 4706, 2380, 353, 4216, 29898, 710, 1845, 583, 29889, 6693, 5743, 29898, 1195, 29918, 1767, 29922, 29900, 29892, 4236, 29918, 1767, 29922, 3317, 29918, 1767, 876, 13, 4706, 318, 5416, 353, 2346, 842, 29961, 2248, 1822, 25118, 13, 4706, 3142, 353, 11837, 29889, 24244, 877, 29881, 625, 29899, 11762, 29899, 1609, 29899, 25118, 742, 6389, 11759, 25118, 2314, 13, 308, 13, 4706, 736, 3142, 13, 13, 1678, 732, 710, 1845, 583, 29889, 22410, 568, 13, 1678, 822, 1661, 29918, 735, 15423, 29918, 25118, 29918, 2271, 29898, 4012, 29892, 2346, 842, 29892, 1661, 29918, 735, 15423, 29918, 25118, 29922, 5464, 29918, 735, 15423, 29918, 25118, 1125, 13, 4706, 318, 5416, 353, 4216, 29898, 5464, 29918, 735, 15423, 29918, 25118, 29897, 13, 4706, 3142, 353, 11837, 29889, 24244, 877, 29881, 625, 29899, 11762, 29899, 1609, 29899, 25118, 742, 6389, 11759, 25118, 2314, 13, 308, 13, 4706, 736, 3142, 13, 13, 1678, 732, 710, 1845, 583, 29889, 22410, 568, 13, 1678, 822, 8340, 29918, 25118, 29918, 2271, 29898, 4012, 29892, 8340, 29918, 25118, 29922, 20965, 29918, 25118, 1125, 13, 4706, 318, 5416, 353, 4216, 29898, 20965, 29918, 25118, 29897, 13, 4706, 3142, 29918, 4632, 353, 11837, 29889, 24244, 877, 29881, 625, 29899, 11762, 1495, 13, 4706, 3142, 353, 3142, 29918, 4632, 718, 8207, 1609, 29918, 25118, 22208, 718, 318, 5416, 718, 8207, 29915, 13, 13, 4706, 736, 3142, 13, 13, 13, 1990, 360, 625, 20529, 2059, 29965, 11150, 24376, 29898, 29882, 1478, 720, 6656, 29889, 17833, 29889, 14095, 29889, 3057, 8259, 1125, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 731, 3373, 3057, 1469, 29898, 25932, 1125, 13, 4706, 15602, 353, 360, 625, 23718, 5015, 1845, 583, 29889, 29881, 625, 29918, 16506, 29918, 1761, 29889, 4773, 580, 13, 4706, 716, 29918, 1792, 353, 360, 625, 23718, 5015, 1845, 583, 29889, 1792, 29889, 4773, 580, 13, 4706, 12271, 353, 4911, 29889, 12650, 29889, 3258, 29898, 1068, 1482, 29918, 1792, 29897, 13, 4706, 363, 5665, 297, 15602, 29901, 13, 9651, 17629, 29918, 16506, 353, 360, 625, 20529, 29889, 12650, 29889, 3258, 29898, 11762, 29918, 978, 29922, 16506, 1839, 11762, 29918, 978, 7464, 12271, 29922, 20348, 29897, 13, 9651, 17629, 29918, 16506, 29889, 16506, 29889, 842, 29898, 16506, 1839, 29881, 625, 29918, 16506, 11287, 13, 308, 13, 268, 13, 1678, 2346, 842, 353, 360, 625, 20529, 29889, 12650, 29889, 497, 580, 13, 1678, 3132, 29918, 1990, 353, 364, 29888, 29918, 1688, 29889, 8787, 4032, 13, 13, 13, 1678, 732, 29882, 1478, 720, 6656, 29889, 29887, 5428, 29898, 29928, 625, 23718, 5015, 1845, 583, 29889, 735, 15423, 29918, 25118, 29918, 2271, 29898, 1972, 842, 29922, 1972, 842, 876, 13, 1678, 822, 1243, 29918, 29881, 625, 29918, 11762, 29918, 1609, 29918, 25118, 29918, 7194, 29918, 2541, 29918, 735, 15423, 29918, 25118, 29918, 9344, 29918, 2457, 29918, 8949, 29898, 1311, 29892, 3142, 1125, 13, 4706, 2933, 353, 1583, 29889, 4645, 29889, 657, 29898, 2271, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 5327, 29889, 4882, 29918, 401, 29892, 4660, 29889, 10493, 29918, 29906, 29900, 29900, 29918, 8949, 29897, 13, 13, 268, 13, 1678, 732, 29882, 1478, 720, 6656, 29889, 29887, 5428, 29898, 29928, 625, 23718, 5015, 1845, 583, 29889, 5464, 29918, 735, 15423, 29918, 25118, 29918, 2271, 29898, 1972, 842, 29922, 1972, 842, 876, 13, 1678, 822, 1243, 29918, 29881, 625, 29918, 11762, 29918, 1609, 29918, 25118, 29918, 7194, 29918, 2541, 29918, 5464, 29918, 735, 15423, 29918, 25118, 29918, 9344, 29918, 2457, 29918, 12256, 29918, 5800, 18783, 29898, 1311, 29892, 3142, 1125, 13, 4706, 2933, 353, 1583, 29889, 4645, 29889, 657, 29898, 2271, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 5327, 29889, 4882, 29918, 401, 29892, 4660, 29889, 10493, 29918, 29946, 29900, 29946, 29918, 12256, 29918, 5800, 18783, 29897, 13, 13, 13, 1678, 732, 29882, 1478, 720, 6656, 29889, 29887, 5428, 29898, 29928, 625, 23718, 5015, 1845, 583, 29889, 20965, 29918, 25118, 29918, 2271, 3101, 13, 1678, 822, 1243, 29918, 29881, 625, 29918, 11762, 29918, 1609, 29918, 25118, 29918, 7194, 29918, 2541, 29918, 20965, 29918, 25118, 29918, 9344, 29918, 2457, 29918, 29933, 3035, 29918, 16244, 29898, 1311, 29892, 3142, 1125, 13, 4706, 2933, 353, 1583, 29889, 4645, 29889, 657, 29898, 2271, 29897, 13, 13, 4706, 1583, 29889, 9294, 797, 29898, 5327, 29889, 4882, 29918, 401, 29892, 518, 4882, 29889, 10493, 29918, 29946, 29900, 29946, 29918, 12256, 29918, 5800, 18783, 29892, 4660, 29889, 10493, 29918, 29946, 29900, 29900, 29918, 29933, 3035, 29918, 16244, 2314, 13, 13, 13, 1678, 732, 29882, 1478, 720, 6656, 29889, 29887, 5428, 29898, 710, 1845, 583, 29889, 650, 29918, 974, 4197, 13, 4706, 360, 625, 23718, 5015, 1845, 583, 29889, 735, 15423, 29918, 25118, 29918, 2271, 29898, 1972, 842, 29922, 1972, 842, 511, 29871, 13, 4706, 360, 625, 23718, 5015, 1845, 583, 29889, 5464, 29918, 735, 15423, 29918, 25118, 29918, 2271, 29898, 1972, 842, 29922, 1972, 842, 511, 13, 4706, 360, 625, 23718, 5015, 1845, 583, 29889, 20965, 29918, 25118, 29918, 2271, 3285, 13, 1678, 4514, 876, 13, 1678, 822, 1243, 29918, 29881, 625, 29918, 11762, 29918, 1609, 29918, 25118, 29918, 7194, 29918, 680, 1526, 327, 296, 29898, 1311, 29892, 3142, 1125, 13, 4706, 2933, 29896, 353, 1583, 29889, 4645, 29889, 657, 29898, 2271, 29897, 13, 4706, 2933, 29906, 353, 1583, 29889, 4645, 29889, 657, 29898, 2271, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 5327, 29896, 29889, 4882, 29918, 401, 29892, 2933, 29906, 29889, 4882, 29918, 401, 29897, 13, 13, 2 ]
reporter/uhl_reports/civicrm/practice_duplicate_name.py
LCBRU/reporter
0
122348
<filename>reporter/uhl_reports/civicrm/practice_duplicate_name.py<gh_stars>0 #!/usr/bin/env python3 from reporter.core import SqlReport, Schedule from reporter.uhl_reports.civicrm import get_contact_link from reporter.emailing import RECIPIENT_IT_DQ class CivicrmPracticeDuplicateName(SqlReport): def __init__(self): super().__init__( introduction=("The following GP Practices have " "a duplicate name in CiviCRM"), recipients=[RECIPIENT_IT_DQ], sql=''' SELECT con.id, con.organization_name FROM ( SELECT organization_name FROM STG_CiviCRM.dbo.civicrm_contact con WHERE con.contact_type = 'Organization' AND con.contact_sub_type LIKE '%GP_Surgery%' AND con.is_deleted = 0 GROUP BY con.organization_name HAVING COUNT(*) > 1 ) x JOIN STG_CiviCRM.dbo.civicrm_contact con ON con.organization_name = x.organization_name AND con.contact_sub_type LIKE '%GP_Surgery%' AND con.is_deleted = 0 ; ''', schedule=Schedule.daily ) def get_report_line(self, row): return '- {}\r\n'.format( get_contact_link( row['organization_name'], row['id']))
[ 1, 529, 9507, 29958, 276, 18505, 29914, 29884, 4415, 29918, 276, 4011, 29914, 29883, 440, 293, 1758, 29914, 29886, 1461, 625, 29918, 20908, 5926, 29918, 978, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 30004, 13, 30004, 13, 3166, 1634, 9555, 29889, 3221, 1053, 13093, 13020, 29892, 1102, 11272, 30004, 13, 3166, 1634, 9555, 29889, 29884, 4415, 29918, 276, 4011, 29889, 29883, 440, 293, 1758, 1053, 679, 29918, 12346, 29918, 2324, 30004, 13, 3166, 1634, 9555, 29889, 5269, 292, 1053, 5195, 8426, 2227, 3919, 29918, 1806, 29918, 29928, 29984, 30004, 13, 30004, 13, 30004, 13, 1990, 315, 440, 293, 1758, 29925, 1461, 625, 29928, 786, 5926, 1170, 29898, 10520, 13020, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 2428, 2141, 1649, 2344, 12035, 30004, 13, 9651, 18707, 29922, 703, 1576, 1494, 28258, 29124, 1575, 505, 376, 30004, 13, 462, 3986, 376, 29874, 7929, 1024, 297, 315, 8107, 11341, 29924, 4968, 30004, 13, 9651, 23957, 10070, 11759, 1525, 8426, 2227, 3919, 29918, 1806, 29918, 29928, 29984, 1402, 30004, 13, 9651, 4576, 2433, 4907, 30004, 13, 18884, 5097, 30004, 13, 462, 1678, 378, 29889, 333, 11167, 13, 462, 1678, 378, 29889, 6388, 2133, 29918, 978, 30004, 13, 18884, 3895, 313, 30004, 13, 462, 1678, 5097, 30004, 13, 462, 4706, 13013, 29918, 978, 30004, 13, 462, 1678, 3895, 6850, 29954, 29918, 29907, 8107, 11341, 29924, 29889, 21627, 29889, 29883, 440, 293, 1758, 29918, 12346, 378, 30004, 13, 462, 1678, 5754, 378, 29889, 12346, 29918, 1853, 353, 525, 27356, 2133, 29915, 30004, 13, 462, 4706, 5300, 378, 29889, 12346, 29918, 1491, 29918, 1853, 22962, 14210, 19903, 29918, 29903, 2007, 708, 29001, 30004, 13, 462, 4706, 5300, 378, 29889, 275, 29918, 311, 22742, 353, 29871, 29900, 30004, 13, 462, 1678, 15345, 6770, 378, 29889, 6388, 2133, 29918, 978, 30004, 13, 462, 1678, 379, 7520, 4214, 21122, 22798, 1405, 29871, 29896, 30004, 13, 18884, 1723, 921, 30004, 13, 18884, 8780, 6850, 29954, 29918, 29907, 8107, 11341, 29924, 29889, 21627, 29889, 29883, 440, 293, 1758, 29918, 12346, 378, 30004, 13, 462, 1678, 6732, 378, 29889, 6388, 2133, 29918, 978, 353, 921, 29889, 6388, 2133, 29918, 978, 30004, 13, 462, 1678, 5300, 378, 29889, 12346, 29918, 1491, 29918, 1853, 22962, 14210, 19903, 29918, 29903, 2007, 708, 29001, 30004, 13, 462, 1678, 5300, 378, 29889, 275, 29918, 311, 22742, 353, 29871, 29900, 30004, 13, 18884, 2056, 30004, 13, 18884, 6629, 23592, 13, 18884, 20410, 29922, 4504, 11272, 29889, 29881, 8683, 30004, 13, 4706, 1723, 30004, 13, 30004, 13, 1678, 822, 679, 29918, 12276, 29918, 1220, 29898, 1311, 29892, 1948, 1125, 30004, 13, 4706, 736, 17411, 426, 1012, 29878, 29905, 29876, 4286, 4830, 29898, 30004, 13, 9651, 679, 29918, 12346, 29918, 2324, 29898, 30004, 13, 18884, 1948, 1839, 6388, 2133, 29918, 978, 7464, 1948, 1839, 333, 25901, 30004, 13, 2 ]
Strings/count/Solution.py
Voley/AlgorithmicProblemsV2
0
135240
# Problem code def countAndSay(n): if n == 1: return "1" current = "1" for i in range(2, n + 1): current = helper(current) return current def helper(current): group_count = 1 group_member = current[0] result = "" for i in range(1, len(current)): if current[i] == group_member: group_count += 1 continue else: result += str(group_count) result += str(group_member) group_count = 1 group_member = current[i] result += str(group_count) result += str(group_member) return result # Setup print(countAndSay(4))
[ 1, 29871, 13, 29937, 11583, 775, 13, 1753, 2302, 2855, 29903, 388, 29898, 29876, 1125, 13, 1678, 565, 302, 1275, 29871, 29896, 29901, 13, 4706, 736, 376, 29896, 29908, 13, 13, 1678, 1857, 353, 376, 29896, 29908, 13, 1678, 363, 474, 297, 3464, 29898, 29906, 29892, 302, 718, 29871, 29896, 1125, 13, 4706, 1857, 353, 16876, 29898, 3784, 29897, 13, 1678, 736, 1857, 13, 13, 1753, 16876, 29898, 3784, 1125, 13, 1678, 2318, 29918, 2798, 353, 29871, 29896, 13, 1678, 2318, 29918, 14242, 353, 1857, 29961, 29900, 29962, 13, 1678, 1121, 353, 5124, 13, 1678, 363, 474, 297, 3464, 29898, 29896, 29892, 7431, 29898, 3784, 22164, 13, 4706, 565, 1857, 29961, 29875, 29962, 1275, 2318, 29918, 14242, 29901, 13, 9651, 2318, 29918, 2798, 4619, 29871, 29896, 13, 9651, 6773, 13, 4706, 1683, 29901, 13, 9651, 1121, 4619, 851, 29898, 2972, 29918, 2798, 29897, 13, 9651, 1121, 4619, 851, 29898, 2972, 29918, 14242, 29897, 13, 9651, 2318, 29918, 2798, 353, 29871, 29896, 13, 9651, 2318, 29918, 14242, 353, 1857, 29961, 29875, 29962, 13, 1678, 1121, 4619, 851, 29898, 2972, 29918, 2798, 29897, 13, 1678, 1121, 4619, 851, 29898, 2972, 29918, 14242, 29897, 13, 1678, 736, 1121, 13, 13, 29937, 3789, 786, 13, 2158, 29898, 2798, 2855, 29903, 388, 29898, 29946, 876, 13, 2 ]
official/mnist/mnist.py
TuKJet/models
3,326
16319
<filename>official/mnist/mnist.py<gh_stars>1000+ # Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Convolutional Neural Network Estimator for MNIST, built with tf.layers.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os import sys import tensorflow as tf import dataset class Model(object): """Class that defines a graph to recognize digits in the MNIST dataset.""" def __init__(self, data_format): """Creates a model for classifying a hand-written digit. Args: data_format: Either 'channels_first' or 'channels_last'. 'channels_first' is typically faster on GPUs while 'channels_last' is typically faster on CPUs. See https://www.tensorflow.org/performance/performance_guide#data_formats """ if data_format == 'channels_first': self._input_shape = [-1, 1, 28, 28] else: assert data_format == 'channels_last' self._input_shape = [-1, 28, 28, 1] self.conv1 = tf.layers.Conv2D( 32, 5, padding='same', data_format=data_format, activation=tf.nn.relu) self.conv2 = tf.layers.Conv2D( 64, 5, padding='same', data_format=data_format, activation=tf.nn.relu) self.fc1 = tf.layers.Dense(1024, activation=tf.nn.relu) self.fc2 = tf.layers.Dense(10) self.dropout = tf.layers.Dropout(0.4) self.max_pool2d = tf.layers.MaxPooling2D( (2, 2), (2, 2), padding='same', data_format=data_format) def __call__(self, inputs, training): """Add operations to classify a batch of input images. Args: inputs: A Tensor representing a batch of input images. training: A boolean. Set to True to add operations required only when training the classifier. Returns: A logits Tensor with shape [<batch_size>, 10]. """ y = tf.reshape(inputs, self._input_shape) y = self.conv1(y) y = self.max_pool2d(y) y = self.conv2(y) y = self.max_pool2d(y) y = tf.layers.flatten(y) y = self.fc1(y) y = self.dropout(y, training=training) return self.fc2(y) def model_fn(features, labels, mode, params): """The model_fn argument for creating an Estimator.""" model = Model(params['data_format']) image = features if isinstance(image, dict): image = features['image'] if mode == tf.estimator.ModeKeys.PREDICT: logits = model(image, training=False) predictions = { 'classes': tf.argmax(logits, axis=1), 'probabilities': tf.nn.softmax(logits), } return tf.estimator.EstimatorSpec( mode=tf.estimator.ModeKeys.PREDICT, predictions=predictions, export_outputs={ 'classify': tf.estimator.export.PredictOutput(predictions) }) if mode == tf.estimator.ModeKeys.TRAIN: optimizer = tf.train.AdamOptimizer(learning_rate=1e-4) logits = model(image, training=True) loss = tf.losses.softmax_cross_entropy(onehot_labels=labels, logits=logits) accuracy = tf.metrics.accuracy( labels=tf.argmax(labels, axis=1), predictions=tf.argmax(logits, axis=1)) # Name the accuracy tensor 'train_accuracy' to demonstrate the # LoggingTensorHook. tf.identity(accuracy[1], name='train_accuracy') tf.summary.scalar('train_accuracy', accuracy[1]) return tf.estimator.EstimatorSpec( mode=tf.estimator.ModeKeys.TRAIN, loss=loss, train_op=optimizer.minimize(loss, tf.train.get_or_create_global_step())) if mode == tf.estimator.ModeKeys.EVAL: logits = model(image, training=False) loss = tf.losses.softmax_cross_entropy(onehot_labels=labels, logits=logits) return tf.estimator.EstimatorSpec( mode=tf.estimator.ModeKeys.EVAL, loss=loss, eval_metric_ops={ 'accuracy': tf.metrics.accuracy( labels=tf.argmax(labels, axis=1), predictions=tf.argmax(logits, axis=1)), }) def main(unused_argv): data_format = FLAGS.data_format if data_format is None: data_format = ('channels_first' if tf.test.is_built_with_cuda() else 'channels_last') mnist_classifier = tf.estimator.Estimator( model_fn=model_fn, model_dir=FLAGS.model_dir, params={ 'data_format': data_format }) # Train the model def train_input_fn(): # When choosing shuffle buffer sizes, larger sizes result in better # randomness, while smaller sizes use less memory. MNIST is a small # enough dataset that we can easily shuffle the full epoch. ds = dataset.train(FLAGS.data_dir) ds = ds.cache().shuffle(buffer_size=50000).batch(FLAGS.batch_size).repeat( FLAGS.train_epochs) (images, labels) = ds.make_one_shot_iterator().get_next() return (images, labels) # Set up training hook that logs the training accuracy every 100 steps. tensors_to_log = {'train_accuracy': 'train_accuracy'} logging_hook = tf.train.LoggingTensorHook( tensors=tensors_to_log, every_n_iter=100) mnist_classifier.train(input_fn=train_input_fn, hooks=[logging_hook]) # Evaluate the model and print results def eval_input_fn(): return dataset.test(FLAGS.data_dir).batch( FLAGS.batch_size).make_one_shot_iterator().get_next() eval_results = mnist_classifier.evaluate(input_fn=eval_input_fn) print() print('Evaluation results:\n\t%s' % eval_results) # Export the model if FLAGS.export_dir is not None: image = tf.placeholder(tf.float32, [None, 28, 28]) input_fn = tf.estimator.export.build_raw_serving_input_receiver_fn({ 'image': image, }) mnist_classifier.export_savedmodel(FLAGS.export_dir, input_fn) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument( '--batch_size', type=int, default=100, help='Number of images to process in a batch') parser.add_argument( '--data_dir', type=str, default='/tmp/mnist_data', help='Path to directory containing the MNIST dataset') parser.add_argument( '--model_dir', type=str, default='/tmp/mnist_model', help='The directory where the model will be stored.') parser.add_argument( '--train_epochs', type=int, default=40, help='Number of epochs to train.') parser.add_argument( '--data_format', type=str, default=None, choices=['channels_first', 'channels_last'], help='A flag to override the data format used in the model. channels_first ' 'provides a performance boost on GPU but is not always compatible ' 'with CPU. If left unspecified, the data format will be chosen ' 'automatically based on whether TensorFlow was built for CPU or GPU.') parser.add_argument( '--export_dir', type=str, help='The directory where the exported SavedModel will be stored.') tf.logging.set_verbosity(tf.logging.INFO) FLAGS, unparsed = parser.parse_known_args() tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
[ 1, 529, 9507, 29958, 29877, 7880, 29914, 23521, 391, 29914, 23521, 391, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29900, 29974, 13, 29937, 29871, 14187, 1266, 29871, 29906, 29900, 29896, 29955, 450, 323, 6073, 17907, 13189, 943, 29889, 2178, 26863, 2538, 9841, 29889, 13, 29937, 13, 29937, 29871, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 29871, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 29871, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 259, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 29871, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 29871, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 29871, 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, 29871, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 29871, 27028, 1090, 278, 19245, 29889, 13, 15945, 29908, 1168, 4068, 284, 2448, 3631, 8527, 2661, 326, 1061, 363, 341, 29940, 9047, 29892, 4240, 411, 15886, 29889, 29277, 1213, 15945, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 13, 13, 5215, 1852, 5510, 13, 5215, 2897, 13, 5215, 10876, 13, 13, 5215, 26110, 408, 15886, 13, 5215, 8783, 13, 13, 13, 1990, 8125, 29898, 3318, 1125, 13, 29871, 9995, 2385, 393, 17645, 263, 3983, 304, 18720, 13340, 297, 278, 341, 29940, 9047, 8783, 1213, 15945, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 848, 29918, 4830, 1125, 13, 1678, 9995, 9832, 1078, 263, 1904, 363, 770, 9215, 263, 1361, 29899, 17625, 13615, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 848, 29918, 4830, 29901, 20370, 525, 305, 12629, 29918, 4102, 29915, 470, 525, 305, 12629, 29918, 4230, 4286, 13, 4706, 525, 305, 12629, 29918, 4102, 29915, 338, 12234, 8473, 373, 22796, 29879, 1550, 525, 305, 12629, 29918, 4230, 29915, 338, 13, 4706, 12234, 8473, 373, 10808, 29879, 29889, 2823, 13, 4706, 2045, 597, 1636, 29889, 29056, 29889, 990, 29914, 546, 13390, 29914, 546, 13390, 29918, 13075, 29937, 1272, 29918, 689, 1446, 13, 1678, 9995, 13, 1678, 565, 848, 29918, 4830, 1275, 525, 305, 12629, 29918, 4102, 2396, 13, 418, 1583, 3032, 2080, 29918, 12181, 353, 21069, 29896, 29892, 29871, 29896, 29892, 29871, 29906, 29947, 29892, 29871, 29906, 29947, 29962, 13, 1678, 1683, 29901, 13, 418, 4974, 848, 29918, 4830, 1275, 525, 305, 12629, 29918, 4230, 29915, 13, 418, 1583, 3032, 2080, 29918, 12181, 353, 21069, 29896, 29892, 29871, 29906, 29947, 29892, 29871, 29906, 29947, 29892, 29871, 29896, 29962, 13, 13, 1678, 1583, 29889, 20580, 29896, 353, 15886, 29889, 29277, 29889, 1168, 29894, 29906, 29928, 29898, 13, 308, 29941, 29906, 29892, 29871, 29945, 29892, 7164, 2433, 17642, 742, 848, 29918, 4830, 29922, 1272, 29918, 4830, 29892, 26229, 29922, 13264, 29889, 15755, 29889, 2674, 29884, 29897, 13, 1678, 1583, 29889, 20580, 29906, 353, 15886, 29889, 29277, 29889, 1168, 29894, 29906, 29928, 29898, 13, 308, 29953, 29946, 29892, 29871, 29945, 29892, 7164, 2433, 17642, 742, 848, 29918, 4830, 29922, 1272, 29918, 4830, 29892, 26229, 29922, 13264, 29889, 15755, 29889, 2674, 29884, 29897, 13, 1678, 1583, 29889, 13801, 29896, 353, 15886, 29889, 29277, 29889, 29928, 1947, 29898, 29896, 29900, 29906, 29946, 29892, 26229, 29922, 13264, 29889, 15755, 29889, 2674, 29884, 29897, 13, 1678, 1583, 29889, 13801, 29906, 353, 15886, 29889, 29277, 29889, 29928, 1947, 29898, 29896, 29900, 29897, 13, 1678, 1583, 29889, 8865, 449, 353, 15886, 29889, 29277, 29889, 15063, 449, 29898, 29900, 29889, 29946, 29897, 13, 1678, 1583, 29889, 3317, 29918, 10109, 29906, 29881, 353, 15886, 29889, 29277, 29889, 7976, 11426, 292, 29906, 29928, 29898, 13, 4706, 313, 29906, 29892, 29871, 29906, 511, 313, 29906, 29892, 29871, 29906, 511, 7164, 2433, 17642, 742, 848, 29918, 4830, 29922, 1272, 29918, 4830, 29897, 13, 13, 29871, 822, 4770, 4804, 12035, 1311, 29892, 10970, 29892, 6694, 1125, 13, 1678, 9995, 2528, 6931, 304, 770, 1598, 263, 9853, 310, 1881, 4558, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 10970, 29901, 319, 323, 6073, 15783, 263, 9853, 310, 1881, 4558, 29889, 13, 418, 6694, 29901, 319, 7223, 29889, 3789, 304, 5852, 304, 788, 6931, 3734, 871, 746, 13, 4706, 6694, 278, 770, 3709, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 1480, 1169, 323, 6073, 411, 8267, 518, 29966, 16175, 29918, 2311, 10202, 29871, 29896, 29900, 1822, 13, 1678, 9995, 13, 1678, 343, 353, 15886, 29889, 690, 14443, 29898, 2080, 29879, 29892, 1583, 3032, 2080, 29918, 12181, 29897, 13, 1678, 343, 353, 1583, 29889, 20580, 29896, 29898, 29891, 29897, 13, 1678, 343, 353, 1583, 29889, 3317, 29918, 10109, 29906, 29881, 29898, 29891, 29897, 13, 1678, 343, 353, 1583, 29889, 20580, 29906, 29898, 29891, 29897, 13, 1678, 343, 353, 1583, 29889, 3317, 29918, 10109, 29906, 29881, 29898, 29891, 29897, 13, 1678, 343, 353, 15886, 29889, 29277, 29889, 1579, 8606, 29898, 29891, 29897, 13, 1678, 343, 353, 1583, 29889, 13801, 29896, 29898, 29891, 29897, 13, 1678, 343, 353, 1583, 29889, 8865, 449, 29898, 29891, 29892, 6694, 29922, 26495, 29897, 13, 1678, 736, 1583, 29889, 13801, 29906, 29898, 29891, 29897, 13, 13, 13, 1753, 1904, 29918, 9144, 29898, 22100, 29892, 11073, 29892, 4464, 29892, 8636, 1125, 13, 29871, 9995, 1576, 1904, 29918, 9144, 2980, 363, 4969, 385, 2661, 326, 1061, 1213, 15945, 13, 29871, 1904, 353, 8125, 29898, 7529, 1839, 1272, 29918, 4830, 11287, 13, 29871, 1967, 353, 5680, 13, 29871, 565, 338, 8758, 29898, 3027, 29892, 9657, 1125, 13, 1678, 1967, 353, 5680, 1839, 3027, 2033, 13, 13, 29871, 565, 4464, 1275, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 15094, 4571, 1783, 29901, 13, 1678, 1480, 1169, 353, 1904, 29898, 3027, 29892, 6694, 29922, 8824, 29897, 13, 1678, 27303, 353, 426, 13, 4706, 525, 13203, 2396, 15886, 29889, 1191, 3317, 29898, 1188, 1169, 29892, 9685, 29922, 29896, 511, 13, 4706, 525, 22795, 11614, 2396, 15886, 29889, 15755, 29889, 2695, 3317, 29898, 1188, 1169, 511, 13, 1678, 500, 13, 1678, 736, 15886, 29889, 342, 326, 1061, 29889, 12787, 326, 1061, 10299, 29898, 13, 4706, 4464, 29922, 13264, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 15094, 4571, 1783, 29892, 13, 4706, 27303, 29922, 27711, 1080, 29892, 13, 4706, 5609, 29918, 4905, 29879, 3790, 13, 9651, 525, 1990, 1598, 2396, 15886, 29889, 342, 326, 1061, 29889, 15843, 29889, 23084, 919, 6466, 29898, 27711, 1080, 29897, 13, 4706, 5615, 13, 29871, 565, 4464, 1275, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29911, 4717, 1177, 29901, 13, 1678, 5994, 3950, 353, 15886, 29889, 14968, 29889, 3253, 314, 20624, 326, 3950, 29898, 21891, 29918, 10492, 29922, 29896, 29872, 29899, 29946, 29897, 13, 1678, 1480, 1169, 353, 1904, 29898, 3027, 29892, 6694, 29922, 5574, 29897, 13, 1678, 6410, 353, 15886, 29889, 6758, 267, 29889, 2695, 3317, 29918, 19128, 29918, 296, 14441, 29898, 650, 8711, 29918, 21134, 29922, 21134, 29892, 1480, 1169, 29922, 1188, 1169, 29897, 13, 1678, 13600, 353, 15886, 29889, 2527, 10817, 29889, 562, 2764, 4135, 29898, 13, 4706, 11073, 29922, 13264, 29889, 1191, 3317, 29898, 21134, 29892, 9685, 29922, 29896, 511, 27303, 29922, 13264, 29889, 1191, 3317, 29898, 1188, 1169, 29892, 9685, 29922, 29896, 876, 13, 1678, 396, 4408, 278, 13600, 12489, 525, 14968, 29918, 562, 2764, 4135, 29915, 304, 22222, 278, 13, 1678, 396, 4522, 3460, 29911, 6073, 29950, 2550, 29889, 13, 1678, 15886, 29889, 22350, 29898, 562, 2764, 4135, 29961, 29896, 1402, 1024, 2433, 14968, 29918, 562, 2764, 4135, 1495, 13, 1678, 15886, 29889, 7727, 29889, 19529, 279, 877, 14968, 29918, 562, 2764, 4135, 742, 13600, 29961, 29896, 2314, 13, 1678, 736, 15886, 29889, 342, 326, 1061, 29889, 12787, 326, 1061, 10299, 29898, 13, 4706, 4464, 29922, 13264, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29911, 4717, 1177, 29892, 13, 4706, 6410, 29922, 6758, 29892, 13, 4706, 7945, 29918, 459, 29922, 20640, 3950, 29889, 1195, 326, 675, 29898, 6758, 29892, 15886, 29889, 14968, 29889, 657, 29918, 272, 29918, 3258, 29918, 10945, 29918, 10568, 22130, 13, 29871, 565, 4464, 1275, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29923, 8932, 29901, 13, 1678, 1480, 1169, 353, 1904, 29898, 3027, 29892, 6694, 29922, 8824, 29897, 13, 1678, 6410, 353, 15886, 29889, 6758, 267, 29889, 2695, 3317, 29918, 19128, 29918, 296, 14441, 29898, 650, 8711, 29918, 21134, 29922, 21134, 29892, 1480, 1169, 29922, 1188, 1169, 29897, 13, 1678, 736, 15886, 29889, 342, 326, 1061, 29889, 12787, 326, 1061, 10299, 29898, 13, 4706, 4464, 29922, 13264, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29923, 8932, 29892, 13, 4706, 6410, 29922, 6758, 29892, 13, 4706, 19745, 29918, 16414, 29918, 3554, 3790, 13, 9651, 525, 562, 2764, 4135, 2396, 13, 18884, 15886, 29889, 2527, 10817, 29889, 562, 2764, 4135, 29898, 13, 462, 1678, 11073, 29922, 13264, 29889, 1191, 3317, 29898, 21134, 29892, 9685, 29922, 29896, 511, 13, 462, 1678, 27303, 29922, 13264, 29889, 1191, 3317, 29898, 1188, 1169, 29892, 9685, 29922, 29896, 8243, 13, 4706, 5615, 13, 13, 13, 1753, 1667, 29898, 348, 3880, 29918, 19218, 1125, 13, 29871, 848, 29918, 4830, 353, 383, 4375, 10749, 29889, 1272, 29918, 4830, 13, 29871, 565, 848, 29918, 4830, 338, 6213, 29901, 13, 1678, 848, 29918, 4830, 353, 6702, 305, 12629, 29918, 4102, 29915, 13, 462, 259, 565, 15886, 29889, 1688, 29889, 275, 29918, 16145, 29918, 2541, 29918, 29883, 6191, 580, 1683, 525, 305, 12629, 29918, 4230, 1495, 13, 29871, 28597, 391, 29918, 1990, 3709, 353, 15886, 29889, 342, 326, 1061, 29889, 12787, 326, 1061, 29898, 13, 418, 1904, 29918, 9144, 29922, 4299, 29918, 9144, 29892, 13, 418, 1904, 29918, 3972, 29922, 18823, 10749, 29889, 4299, 29918, 3972, 29892, 13, 418, 8636, 3790, 13, 3986, 525, 1272, 29918, 4830, 2396, 848, 29918, 4830, 13, 418, 5615, 13, 13, 29871, 396, 28186, 278, 1904, 13, 29871, 822, 7945, 29918, 2080, 29918, 9144, 7295, 13, 1678, 396, 1932, 23906, 528, 21897, 6835, 15786, 29892, 7200, 15786, 1121, 297, 2253, 13, 1678, 396, 4036, 2264, 29892, 1550, 7968, 15786, 671, 3109, 3370, 29889, 341, 29940, 9047, 338, 263, 2319, 13, 1678, 396, 3307, 8783, 393, 591, 508, 5948, 528, 21897, 278, 2989, 21502, 305, 29889, 13, 1678, 18031, 353, 8783, 29889, 14968, 29898, 18823, 10749, 29889, 1272, 29918, 3972, 29897, 13, 1678, 18031, 353, 18031, 29889, 8173, 2141, 845, 21897, 29898, 9040, 29918, 2311, 29922, 29945, 29900, 29900, 29900, 29900, 467, 16175, 29898, 18823, 10749, 29889, 16175, 29918, 2311, 467, 14358, 29898, 13, 4706, 383, 4375, 10749, 29889, 14968, 29918, 1022, 2878, 29879, 29897, 13, 1678, 313, 8346, 29892, 11073, 29897, 353, 18031, 29889, 5675, 29918, 650, 29918, 8962, 29918, 17609, 2141, 657, 29918, 4622, 580, 13, 1678, 736, 313, 8346, 29892, 11073, 29897, 13, 13, 29871, 396, 3789, 701, 6694, 12422, 393, 10748, 278, 6694, 13600, 1432, 29871, 29896, 29900, 29900, 6576, 29889, 13, 29871, 25187, 943, 29918, 517, 29918, 1188, 353, 11117, 14968, 29918, 562, 2764, 4135, 2396, 525, 14968, 29918, 562, 2764, 4135, 10827, 13, 29871, 12183, 29918, 20849, 353, 15886, 29889, 14968, 29889, 3403, 3460, 29911, 6073, 29950, 2550, 29898, 13, 418, 25187, 943, 29922, 29873, 575, 943, 29918, 517, 29918, 1188, 29892, 1432, 29918, 29876, 29918, 1524, 29922, 29896, 29900, 29900, 29897, 13, 29871, 28597, 391, 29918, 1990, 3709, 29889, 14968, 29898, 2080, 29918, 9144, 29922, 14968, 29918, 2080, 29918, 9144, 29892, 12422, 29879, 11759, 21027, 29918, 20849, 2314, 13, 13, 29871, 396, 382, 4387, 403, 278, 1904, 322, 1596, 2582, 13, 29871, 822, 19745, 29918, 2080, 29918, 9144, 7295, 13, 1678, 736, 8783, 29889, 1688, 29898, 18823, 10749, 29889, 1272, 29918, 3972, 467, 16175, 29898, 13, 4706, 383, 4375, 10749, 29889, 16175, 29918, 2311, 467, 5675, 29918, 650, 29918, 8962, 29918, 17609, 2141, 657, 29918, 4622, 580, 13, 13, 29871, 19745, 29918, 9902, 353, 28597, 391, 29918, 1990, 3709, 29889, 24219, 403, 29898, 2080, 29918, 9144, 29922, 14513, 29918, 2080, 29918, 9144, 29897, 13, 29871, 1596, 580, 13, 29871, 1596, 877, 29923, 4387, 362, 2582, 3583, 29876, 29905, 29873, 29995, 29879, 29915, 1273, 19745, 29918, 9902, 29897, 13, 13, 29871, 396, 1222, 637, 278, 1904, 13, 29871, 565, 383, 4375, 10749, 29889, 15843, 29918, 3972, 338, 451, 6213, 29901, 13, 1678, 1967, 353, 15886, 29889, 27074, 29898, 13264, 29889, 7411, 29941, 29906, 29892, 518, 8516, 29892, 29871, 29906, 29947, 29892, 29871, 29906, 29947, 2314, 13, 1678, 1881, 29918, 9144, 353, 15886, 29889, 342, 326, 1061, 29889, 15843, 29889, 4282, 29918, 1610, 29918, 643, 1747, 29918, 2080, 29918, 13556, 2147, 29918, 9144, 3319, 13, 4706, 525, 3027, 2396, 1967, 29892, 13, 1678, 5615, 13, 1678, 28597, 391, 29918, 1990, 3709, 29889, 15843, 29918, 17314, 4299, 29898, 18823, 10749, 29889, 15843, 29918, 3972, 29892, 1881, 29918, 9144, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 29871, 13812, 353, 1852, 5510, 29889, 15730, 11726, 580, 13, 29871, 13812, 29889, 1202, 29918, 23516, 29898, 13, 418, 525, 489, 16175, 29918, 2311, 742, 13, 418, 1134, 29922, 524, 29892, 13, 418, 2322, 29922, 29896, 29900, 29900, 29892, 13, 418, 1371, 2433, 4557, 310, 4558, 304, 1889, 297, 263, 9853, 1495, 13, 29871, 13812, 29889, 1202, 29918, 23516, 29898, 13, 418, 525, 489, 1272, 29918, 3972, 742, 13, 418, 1134, 29922, 710, 29892, 13, 418, 2322, 2433, 29914, 7050, 29914, 23521, 391, 29918, 1272, 742, 13, 418, 1371, 2433, 2605, 304, 3884, 6943, 278, 341, 29940, 9047, 8783, 1495, 13, 29871, 13812, 29889, 1202, 29918, 23516, 29898, 13, 418, 525, 489, 4299, 29918, 3972, 742, 13, 418, 1134, 29922, 710, 29892, 13, 418, 2322, 2433, 29914, 7050, 29914, 23521, 391, 29918, 4299, 742, 13, 418, 1371, 2433, 1576, 3884, 988, 278, 1904, 674, 367, 6087, 29889, 1495, 13, 29871, 13812, 29889, 1202, 29918, 23516, 29898, 13, 418, 525, 489, 14968, 29918, 1022, 2878, 29879, 742, 1134, 29922, 524, 29892, 2322, 29922, 29946, 29900, 29892, 1371, 2433, 4557, 310, 21502, 12168, 304, 7945, 29889, 1495, 13, 29871, 13812, 29889, 1202, 29918, 23516, 29898, 13, 418, 525, 489, 1272, 29918, 4830, 742, 13, 418, 1134, 29922, 710, 29892, 13, 418, 2322, 29922, 8516, 29892, 13, 418, 19995, 29922, 1839, 305, 12629, 29918, 4102, 742, 525, 305, 12629, 29918, 4230, 7464, 13, 418, 1371, 2433, 29909, 7353, 304, 5712, 278, 848, 3402, 1304, 297, 278, 1904, 29889, 18196, 29918, 4102, 525, 13, 418, 525, 16123, 2247, 263, 4180, 14505, 373, 22796, 541, 338, 451, 2337, 15878, 525, 13, 418, 525, 2541, 10808, 29889, 960, 2175, 443, 6550, 2164, 29892, 278, 848, 3402, 674, 367, 10434, 525, 13, 418, 525, 17405, 19574, 2729, 373, 3692, 323, 6073, 17907, 471, 4240, 363, 10808, 470, 22796, 29889, 1495, 13, 29871, 13812, 29889, 1202, 29918, 23516, 29898, 13, 418, 525, 489, 15843, 29918, 3972, 742, 13, 418, 1134, 29922, 710, 29892, 13, 418, 1371, 2433, 1576, 3884, 988, 278, 5609, 287, 9583, 287, 3195, 674, 367, 6087, 29889, 1495, 13, 13, 29871, 15886, 29889, 21027, 29889, 842, 29918, 18248, 359, 537, 29898, 13264, 29889, 21027, 29889, 11690, 29897, 13, 29871, 383, 4375, 10749, 29892, 443, 862, 8485, 353, 13812, 29889, 5510, 29918, 5203, 29918, 5085, 580, 13, 29871, 15886, 29889, 932, 29889, 3389, 29898, 3396, 29922, 3396, 29892, 1852, 29894, 11759, 9675, 29889, 19218, 29961, 29900, 5262, 718, 443, 862, 8485, 29897, 13, 2 ]
doc/paper/results/time-big-fft.py
wangxuesong29/bit-reversal-methods
0
57576
import numpy as np from time import time # Use the largest number of bits here: b = 28 N = 2**b x = np.array([ 2*i + (2*i+1)*1j for i in xrange(N)]) print 'Timing b =', b t1=time() y = np.fft.fft(x) t2=time() print t2-t1, (t2 - t2) / float(N)
[ 1, 1053, 12655, 408, 7442, 13, 3166, 931, 1053, 931, 13, 13, 29937, 4803, 278, 10150, 1353, 310, 9978, 1244, 29901, 13, 29890, 353, 29871, 29906, 29947, 13, 29940, 353, 29871, 29906, 1068, 29890, 13, 29916, 353, 7442, 29889, 2378, 4197, 29871, 29906, 29930, 29875, 718, 313, 29906, 29930, 29875, 29974, 29896, 11877, 29896, 29926, 363, 474, 297, 921, 3881, 29898, 29940, 29897, 2314, 13, 2158, 525, 13711, 292, 289, 353, 742, 289, 13, 13, 29873, 29896, 29922, 2230, 580, 13, 29891, 353, 7442, 29889, 600, 29873, 29889, 600, 29873, 29898, 29916, 29897, 13, 29873, 29906, 29922, 2230, 580, 13, 13, 2158, 260, 29906, 29899, 29873, 29896, 29892, 313, 29873, 29906, 448, 260, 29906, 29897, 847, 5785, 29898, 29940, 29897, 13, 2 ]
omw/blueprints/ili/__init__.py
tnaskret/OMW
0
159530
<filename>omw/blueprints/ili/__init__.py from omw.blueprints.ili.views import ili
[ 1, 529, 9507, 29958, 290, 29893, 29914, 9539, 2158, 29879, 29914, 2638, 29914, 1649, 2344, 26914, 2272, 13, 3166, 2703, 29893, 29889, 9539, 2158, 29879, 29889, 2638, 29889, 7406, 1053, 29040, 13, 2 ]
ca-hostpathogen.py
RachidStat/PyCX
176
69972
<reponame>RachidStat/PyCX import pycxsimulator from pylab import * width = 50 height = 50 initProb = 0.01 infectionRate = 0.85 regrowthRate = 0.15 def initialize(): global time, config, nextConfig time = 0 config = zeros([height, width]) for x in range(width): for y in range(height): if random() < initProb: state = 2 else: state = 1 config[y, x] = state nextConfig = zeros([height, width]) def observe(): cla() imshow(config, vmin = 0, vmax = 2, cmap = cm.jet) axis('image') title('t = ' + str(time)) def update(): global time, config, nextConfig time += 1 for x in range(width): for y in range(height): state = config[y, x] if state == 0: for dx in range(-1, 2): for dy in range(-1, 2): if config[(y+dy)%height, (x+dx)%width] == 1: if random() < regrowthRate: state = 1 elif state == 1: for dx in range(-1, 2): for dy in range(-1, 2): if config[(y+dy)%height, (x+dx)%width] == 2: if random() < infectionRate: state = 2 else: state = 0 nextConfig[y, x] = state config, nextConfig = nextConfig, config pycxsimulator.GUI().start(func=[initialize, observe, update])
[ 1, 529, 276, 1112, 420, 29958, 29934, 496, 333, 9513, 29914, 19737, 29907, 29990, 13, 5215, 282, 11078, 29916, 3601, 9183, 30004, 13, 3166, 282, 2904, 370, 1053, 334, 30004, 13, 30004, 13, 2103, 353, 29871, 29945, 29900, 30004, 13, 3545, 353, 29871, 29945, 29900, 30004, 13, 2344, 1184, 29890, 353, 29871, 29900, 29889, 29900, 29896, 30004, 13, 262, 20309, 19907, 353, 29871, 29900, 29889, 29947, 29945, 30004, 13, 1727, 798, 386, 19907, 353, 29871, 29900, 29889, 29896, 29945, 30004, 13, 30004, 13, 1753, 11905, 7295, 30004, 13, 1678, 5534, 931, 29892, 2295, 29892, 2446, 3991, 30004, 13, 30004, 13, 1678, 931, 353, 29871, 29900, 30004, 13, 1678, 6756, 13, 1678, 2295, 353, 24786, 4197, 3545, 29892, 2920, 2314, 30004, 13, 1678, 363, 921, 297, 3464, 29898, 2103, 1125, 30004, 13, 4706, 363, 343, 297, 3464, 29898, 3545, 1125, 30004, 13, 9651, 565, 4036, 580, 529, 2069, 1184, 29890, 29901, 30004, 13, 18884, 2106, 353, 29871, 29906, 30004, 13, 9651, 1683, 29901, 30004, 13, 18884, 2106, 353, 29871, 29896, 30004, 13, 9651, 2295, 29961, 29891, 29892, 921, 29962, 353, 2106, 30004, 13, 30004, 13, 1678, 2446, 3991, 353, 24786, 4197, 3545, 29892, 2920, 2314, 30004, 13, 30004, 13, 1753, 14111, 7295, 30004, 13, 1678, 3711, 26471, 13, 1678, 527, 4294, 29898, 2917, 29892, 325, 1195, 353, 29871, 29900, 29892, 325, 3317, 353, 29871, 29906, 29892, 274, 1958, 353, 7477, 29889, 4026, 8443, 13, 1678, 9685, 877, 3027, 1495, 30004, 13, 1678, 3611, 877, 29873, 353, 525, 718, 851, 29898, 2230, 876, 30004, 13, 30004, 13, 1753, 2767, 7295, 30004, 13, 1678, 5534, 931, 29892, 2295, 29892, 2446, 3991, 30004, 13, 30004, 13, 1678, 931, 4619, 29871, 29896, 30004, 13, 30004, 13, 1678, 363, 921, 297, 3464, 29898, 2103, 1125, 30004, 13, 4706, 363, 343, 297, 3464, 29898, 3545, 1125, 30004, 13, 9651, 2106, 353, 2295, 29961, 29891, 29892, 921, 29962, 30004, 13, 9651, 565, 2106, 1275, 29871, 29900, 29901, 30004, 13, 18884, 363, 15414, 297, 3464, 6278, 29896, 29892, 29871, 29906, 1125, 30004, 13, 462, 1678, 363, 13475, 297, 3464, 6278, 29896, 29892, 29871, 29906, 1125, 30004, 13, 462, 4706, 565, 2295, 15625, 29891, 29974, 4518, 29897, 29995, 3545, 29892, 313, 29916, 29974, 8235, 29897, 29995, 2103, 29962, 1275, 29871, 29896, 29901, 30004, 13, 462, 9651, 565, 4036, 580, 529, 1072, 798, 386, 19907, 29901, 30004, 13, 462, 18884, 2106, 353, 29871, 29896, 30004, 13, 9651, 25342, 2106, 1275, 29871, 29896, 29901, 30004, 13, 18884, 363, 15414, 297, 3464, 6278, 29896, 29892, 29871, 29906, 1125, 30004, 13, 462, 1678, 363, 13475, 297, 3464, 6278, 29896, 29892, 29871, 29906, 1125, 30004, 13, 462, 4706, 565, 2295, 15625, 29891, 29974, 4518, 29897, 29995, 3545, 29892, 313, 29916, 29974, 8235, 29897, 29995, 2103, 29962, 1275, 29871, 29906, 29901, 30004, 13, 462, 9651, 565, 4036, 580, 529, 297, 20309, 19907, 29901, 30004, 13, 462, 18884, 2106, 353, 29871, 29906, 30004, 13, 9651, 1683, 29901, 30004, 13, 18884, 2106, 353, 29871, 29900, 30004, 13, 30004, 13, 9651, 2446, 3991, 29961, 29891, 29892, 921, 29962, 353, 2106, 30004, 13, 30004, 13, 1678, 2295, 29892, 2446, 3991, 353, 2446, 3991, 29892, 2295, 30004, 13, 30004, 13, 2272, 18904, 3601, 9183, 29889, 29954, 3120, 2141, 2962, 29898, 9891, 11759, 24926, 29892, 14111, 29892, 2767, 2314, 30004, 13, 2 ]
Codeforces/CF1433C.py
qinyihao/Luogu_Problem_Solver
0
104801
<reponame>qinyihao/Luogu_Problem_Solver<gh_stars>0 for _ in range(int(input())): n = int(input()) r = [int(i) for i in input().split()] o = max(r) if r.count(o)==len(r): print(-1) continue kq = -1 for i in range(1,len(r)): if r[i]==o and (r[i]>r[i-1]): kq = i+1 for i in range(len(r)-1): if r[i]==o and(r[i]>r[i+1]): kq = i+1 print(kq)
[ 1, 529, 276, 1112, 420, 29958, 29939, 4901, 29875, 2350, 29877, 29914, 24126, 468, 29884, 29918, 26604, 29918, 13296, 369, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 1454, 903, 297, 3464, 29898, 524, 29898, 2080, 22130, 29901, 13, 12, 29876, 353, 938, 29898, 2080, 3101, 13, 12, 29878, 353, 518, 524, 29898, 29875, 29897, 363, 474, 297, 1881, 2141, 5451, 580, 29962, 13, 12, 29877, 353, 4236, 29898, 29878, 29897, 13, 12, 361, 364, 29889, 2798, 29898, 29877, 29897, 1360, 2435, 29898, 29878, 1125, 13, 12, 12, 2158, 6278, 29896, 29897, 13, 12, 12, 19878, 13, 12, 29895, 29939, 353, 448, 29896, 13, 12, 1454, 474, 297, 3464, 29898, 29896, 29892, 2435, 29898, 29878, 22164, 13, 12, 12, 361, 364, 29961, 29875, 29962, 1360, 29877, 322, 313, 29878, 29961, 29875, 29962, 29958, 29878, 29961, 29875, 29899, 29896, 29962, 1125, 13, 12, 12, 12, 29895, 29939, 353, 474, 29974, 29896, 13, 12, 1454, 474, 297, 3464, 29898, 2435, 29898, 29878, 6817, 29896, 1125, 13, 12, 12, 361, 364, 29961, 29875, 29962, 1360, 29877, 322, 29898, 29878, 29961, 29875, 29962, 29958, 29878, 29961, 29875, 29974, 29896, 29962, 1125, 13, 12, 12, 12, 29895, 29939, 353, 474, 29974, 29896, 13, 12, 2158, 29898, 29895, 29939, 29897, 13, 2 ]
Cyber_Tyan.py
RuCybernetic/CyberTyanBot
1
167386
<gh_stars>1-10 import os import discord from discord.ext import commands TOKEN = os.environ.get('BOT_TOKEN') prefix = '!' bot = commands.Bot(command_prefix=prefix) bot.load_extension("jishaku") bot.remove_command('help') @bot.command() async def ping(ctx): latency = bot.latency await ctx.send(latency) @bot.command() async def load(ctx, extensions): bot.load_extension(f'cogs.{extensions}') await ctx.send("loaded") @bot.command() async def unload(ctx, extensions): bot.unload_extension(f'cogs.{extensions}') await ctx.send("unloaded") @bot.command() async def reload(ctx, extensions): bot.unload_extension(f'cogs.{extensions}') bot.load_extension(f'cogs.{extensions}') await ctx.send("reloaded") for filename in os.listdir('./cogs'): if filename.endswith('.py'): bot.load_extension(f'cogs.{filename[:-3]}') for filename in os.listdir('./cogs/commands'): if filename.endswith('.py'): bot.load_extension(f'cogs.commands.{filename[:-3]}') for filename in os.listdir('./cogs/events'): if filename.endswith('.py'): bot.load_extension(f'cogs.events.{filename[:-3]}') bot.run(TOKEN)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 2897, 13, 5215, 2313, 536, 13, 3166, 2313, 536, 29889, 1062, 1053, 8260, 13, 13, 13, 4986, 29968, 1430, 353, 2897, 29889, 21813, 29889, 657, 877, 29933, 2891, 29918, 4986, 29968, 1430, 1495, 13, 13506, 353, 525, 20714, 13, 7451, 353, 8260, 29889, 29933, 327, 29898, 6519, 29918, 13506, 29922, 13506, 29897, 13, 13, 7451, 29889, 1359, 29918, 17588, 703, 29926, 728, 16774, 1159, 13, 13, 7451, 29889, 5992, 29918, 6519, 877, 8477, 1495, 13, 13, 29992, 7451, 29889, 6519, 580, 13, 12674, 822, 24543, 29898, 13073, 1125, 13, 1678, 23316, 1270, 353, 9225, 29889, 29880, 2579, 1270, 13, 1678, 7272, 12893, 29889, 6717, 29898, 29880, 2579, 1270, 29897, 13, 13, 29992, 7451, 29889, 6519, 580, 13, 12674, 822, 2254, 29898, 13073, 29892, 17752, 1125, 13, 1678, 9225, 29889, 1359, 29918, 17588, 29898, 29888, 29915, 29883, 12099, 29889, 29912, 24299, 29913, 1495, 13, 1678, 7272, 12893, 29889, 6717, 703, 15638, 1159, 13, 13, 29992, 7451, 29889, 6519, 580, 13, 12674, 822, 443, 1359, 29898, 13073, 29892, 17752, 1125, 13, 1678, 9225, 29889, 348, 1359, 29918, 17588, 29898, 29888, 29915, 29883, 12099, 29889, 29912, 24299, 29913, 1495, 13, 1678, 7272, 12893, 29889, 6717, 703, 348, 15638, 1159, 13, 13, 29992, 7451, 29889, 6519, 580, 13, 12674, 822, 19763, 29898, 13073, 29892, 17752, 1125, 13, 1678, 9225, 29889, 348, 1359, 29918, 17588, 29898, 29888, 29915, 29883, 12099, 29889, 29912, 24299, 29913, 1495, 13, 1678, 9225, 29889, 1359, 29918, 17588, 29898, 29888, 29915, 29883, 12099, 29889, 29912, 24299, 29913, 1495, 13, 1678, 7272, 12893, 29889, 6717, 703, 276, 15638, 1159, 13, 13, 1454, 10422, 297, 2897, 29889, 1761, 3972, 877, 6904, 29883, 12099, 29374, 13, 1678, 565, 10422, 29889, 1975, 2541, 12839, 2272, 29374, 13, 4706, 9225, 29889, 1359, 29918, 17588, 29898, 29888, 29915, 29883, 12099, 29889, 29912, 9507, 7503, 29899, 29941, 12258, 1495, 13, 13, 1454, 10422, 297, 2897, 29889, 1761, 3972, 877, 6904, 29883, 12099, 29914, 26381, 29374, 13, 1678, 565, 10422, 29889, 1975, 2541, 12839, 2272, 29374, 13, 4706, 9225, 29889, 1359, 29918, 17588, 29898, 29888, 29915, 29883, 12099, 29889, 26381, 29889, 29912, 9507, 7503, 29899, 29941, 12258, 1495, 13, 13, 1454, 10422, 297, 2897, 29889, 1761, 3972, 877, 6904, 29883, 12099, 29914, 13604, 29374, 13, 1678, 565, 10422, 29889, 1975, 2541, 12839, 2272, 29374, 13, 4706, 9225, 29889, 1359, 29918, 17588, 29898, 29888, 29915, 29883, 12099, 29889, 13604, 29889, 29912, 9507, 7503, 29899, 29941, 12258, 1495, 13, 13, 7451, 29889, 3389, 29898, 4986, 29968, 1430, 29897, 2 ]
pyNastran/gui/gui_objects/alt_geometry_storage.py
luzpaz/pyNastran
293
104616
<gh_stars>100-1000 from copy import deepcopy class AltGeometry: representations = ['main', 'toggle', 'wire', 'point', 'surface', 'bar', 'wire+point', 'wire+surf'] displays = ['Wireframe', 'Surface', 'point', None] def __repr__(self): msg = ('AltGeometry(%r, color=%s, line_width=%s, opacity=%s,\n' ' point_size=%s, bar_scale=%s, representation=%r, display=%r, is_visible=%s,\n' 'is_pickable=%s, label_actors=%s)' % ( self.name, str(self.color), self.line_width, self.opacity, self.point_size, self.bar_scale, self.representation, self.display, self.is_visible, self.is_pickable, self.label_actors)) return msg def __init__(self, parent, name, color=None, line_width=1, opacity=0.0, point_size=1, bar_scale=1.0, representation='main', display=None, is_visible=True, is_pickable=False, label_actors=None): """ Creates an AltGeometry object Parameters ---------- line_width : int the width of the line for 'surface' and 'main' color : [int, int, int] the RGB colors (0-255) opacity : float 0.0 -> solid 1.0 -> transparent point_size : int the point size for 'point' bar_scale : float the scale for the CBAR / CBEAM elements representation : str main - change with main mesh wire - always wireframe point - always points surface - always surface bar - can use bar scale toggle - follow the main mesh wire+point - is this used??? wire+surf - two options display : str only relevant to wire+surf the active state of the mesh is_visible : bool; default=True is this actor currently visible is_pickable : bool; default=False can you pick a node/cell on this actor label_actors : List[annotation]; None -> [] stores annotations (e.g., for a control surface) """ representation_map = { 'main' : None, 'wire' : 'Wireframe', 'point' : 'point', 'surface' : 'Surface', 'wire+surf' : 'Surface', 'wire+point' : 'Wireframe', 'bar' : None, 'toggle' : None, } if display is None: try: display = representation_map[representation] except KeyError: valid_keys = list(representation_map.keys()) valid_keys.sort() raise RuntimeError('%r is not a valid representation\nvalid=[%s]' % ( representation, ', '.join(valid_keys))) if line_width is None: line_width = 1 if opacity is None: opacity = 1.0 if label_actors is None: label_actors = [] self.parent = parent self.name = name self.display = display assert display in self.displays, 'dislay=%r displays=%s' % (display, self.displays) assert isinstance(name, str), 'name=%r' % name assert isinstance(label_actors, list), 'name=%r label_actors=%s' % (name, str(label_actors)) self._color = None if color is not None: assert color is not None, color self.color = color self.line_width = line_width self.point_size = point_size self._opacity = opacity self.bar_scale = bar_scale self.label_actors = [] assert isinstance(is_visible, bool), is_visible self.is_visible = is_visible self.is_pickable = is_pickable if representation not in self.representations: msg = 'representation=%r is invalid\nrepresentations=%r' % ( representation, self.representations) raise RuntimeError(msg) self.representation = representation def __deepcopy__(self, memo): """doesn't copy the label_actors to speed things up?""" keys = ['name', '_color', 'display', 'line_width', 'point_size', '_opacity', '_representation', 'is_visible', 'bar_scale', 'is_pickable'] cls = self.__class__ result = cls.__new__(cls) idi = id(self) memo[idi] = result for key in keys: value = self.__dict__[key] setattr(result, key, deepcopy(value, memo)) #result.label_actors = [] #= memo['label_actors'] return result @property def opacity(self): """ 0 -> transparent 1 -> solid """ assert 0.0 <= self._opacity <= 1.0, self._opacity return self._opacity @opacity.setter def opacity(self, opacity): assert 0.0 <= opacity <= 1.0, opacity self._opacity = opacity @property def transparency(self): """ 0 -> solid 1 -> transparent """ assert 0.0 <= self._opacity <= 1.0, self._opacity return 1.0 - self._opacity @transparency.setter def transparency(self, transparency): assert 0.0 <= transparency <= 1.0, transparency self._opacity = 1.0 - transparency @property def color(self): if self._color is None: return (255, 0, 0) # the default color; red return self._color @color.setter def color(self, color): assert len(color) == 3, color if isinstance(color[0], int): assert isinstance(color[0], int), color[0] assert isinstance(color[1], int), color[1] assert isinstance(color[2], int), color[2] self._color = tuple(color) else: assert isinstance(color[0], float), color[0] assert isinstance(color[1], float), color[1] assert isinstance(color[2], float), color[2] self._color = (int(color[0] * 255), int(color[1] * 255), int(color[2] * 255)) @property def color_float(self): return tuple([i/255. for i in self._color]) def set_color(self, color, mode='rgb'): assert mode == 'rgb', 'mode=%r' % mode self.color = color assert len(color) == 3, color #self.mode = 'rgb' @property def representation(self): """ Gets the representation * main - main mesh * toggle - change with main mesh * wire - always wireframe * point - always points * surface - always surface * bar - this can use bar scale * wire+point - point (vertex) and wireframe allowed * wire+surf - the user can switch between surface and wireframe as a selection """ return self._representation @representation.setter def representation(self, representation): """Sets the representation""" if representation not in self.representations: msg = 'representation=%r is invalid\nrepresentations=%r' % ( representation, self.representations) raise RuntimeError(msg) self._representation = representation
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 3166, 3509, 1053, 6483, 8552, 13, 13, 1990, 10790, 7999, 7843, 29901, 13, 1678, 22540, 353, 6024, 3396, 742, 525, 13270, 742, 525, 22376, 742, 525, 3149, 742, 525, 7610, 2161, 742, 13, 462, 539, 525, 1646, 742, 525, 22376, 29974, 3149, 742, 525, 22376, 29974, 7610, 29888, 2033, 13, 1678, 14423, 353, 6024, 29956, 533, 2557, 742, 525, 18498, 2161, 742, 525, 3149, 742, 6213, 29962, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 4706, 10191, 353, 6702, 24528, 7999, 7843, 29414, 29878, 29892, 2927, 16328, 29879, 29892, 1196, 29918, 2103, 16328, 29879, 29892, 17012, 16328, 29879, 2053, 29876, 29915, 13, 795, 525, 1298, 29918, 2311, 16328, 29879, 29892, 2594, 29918, 7052, 16328, 29879, 29892, 8954, 16328, 29878, 29892, 2479, 16328, 29878, 29892, 338, 29918, 12872, 16328, 29879, 2053, 29876, 29915, 13, 795, 525, 275, 29918, 23945, 519, 16328, 29879, 29892, 3858, 29918, 627, 943, 16328, 29879, 16029, 1273, 313, 13, 462, 29871, 1583, 29889, 978, 29892, 851, 29898, 1311, 29889, 2780, 511, 1583, 29889, 1220, 29918, 2103, 29892, 1583, 29889, 28193, 29892, 1583, 29889, 3149, 29918, 2311, 29892, 13, 462, 29871, 1583, 29889, 1646, 29918, 7052, 29892, 1583, 29889, 276, 26081, 29892, 1583, 29889, 4990, 29892, 1583, 29889, 275, 29918, 12872, 29892, 13, 462, 29871, 1583, 29889, 275, 29918, 23945, 519, 29892, 1583, 29889, 1643, 29918, 627, 943, 876, 13, 4706, 736, 10191, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3847, 29892, 1024, 29892, 2927, 29922, 8516, 29892, 1196, 29918, 2103, 29922, 29896, 29892, 17012, 29922, 29900, 29889, 29900, 29892, 13, 462, 1298, 29918, 2311, 29922, 29896, 29892, 2594, 29918, 7052, 29922, 29896, 29889, 29900, 29892, 8954, 2433, 3396, 742, 2479, 29922, 8516, 29892, 338, 29918, 12872, 29922, 5574, 29892, 13, 462, 338, 29918, 23945, 519, 29922, 8824, 29892, 3858, 29918, 627, 943, 29922, 8516, 1125, 13, 4706, 9995, 13, 4706, 6760, 1078, 385, 10790, 7999, 7843, 1203, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 1196, 29918, 2103, 584, 938, 13, 9651, 278, 2920, 310, 278, 1196, 363, 525, 7610, 2161, 29915, 322, 525, 3396, 29915, 13, 4706, 2927, 584, 518, 524, 29892, 938, 29892, 938, 29962, 13, 9651, 278, 390, 7210, 11955, 313, 29900, 29899, 29906, 29945, 29945, 29897, 13, 4706, 17012, 584, 5785, 13, 632, 29900, 29889, 29900, 1599, 7773, 13, 632, 29896, 29889, 29900, 1599, 17772, 13, 4706, 1298, 29918, 2311, 584, 938, 13, 9651, 278, 1298, 2159, 363, 525, 3149, 29915, 13, 4706, 2594, 29918, 7052, 584, 5785, 13, 9651, 278, 6287, 363, 278, 315, 29933, 1718, 847, 315, 15349, 5194, 3161, 13, 4706, 8954, 584, 851, 13, 9651, 1667, 448, 1735, 411, 1667, 27716, 13, 9651, 8014, 448, 2337, 8014, 2557, 13, 9651, 1298, 448, 2337, 3291, 13, 9651, 7101, 448, 2337, 7101, 13, 9651, 2594, 448, 508, 671, 2594, 6287, 13, 9651, 20429, 448, 1101, 278, 1667, 27716, 13, 9651, 8014, 29974, 3149, 448, 338, 445, 1304, 28772, 13, 9651, 8014, 29974, 7610, 29888, 448, 1023, 3987, 13, 4706, 2479, 584, 851, 13, 9651, 871, 8018, 304, 8014, 29974, 7610, 29888, 13, 9651, 278, 6136, 2106, 310, 278, 27716, 13, 4706, 338, 29918, 12872, 584, 6120, 29936, 2322, 29922, 5574, 13, 9651, 338, 445, 11339, 5279, 7962, 13, 4706, 338, 29918, 23945, 519, 584, 6120, 29936, 2322, 29922, 8824, 13, 9651, 508, 366, 5839, 263, 2943, 29914, 3729, 373, 445, 11339, 13, 4706, 3858, 29918, 627, 943, 584, 2391, 29961, 18317, 1385, 6213, 1599, 5159, 13, 9651, 14422, 25495, 313, 29872, 29889, 29887, 1696, 363, 263, 2761, 7101, 29897, 13, 13, 4706, 9995, 13, 4706, 8954, 29918, 1958, 353, 426, 13, 9651, 525, 3396, 29915, 584, 6213, 29892, 13, 9651, 525, 22376, 29915, 584, 525, 29956, 533, 2557, 742, 13, 9651, 525, 3149, 29915, 584, 525, 3149, 742, 13, 9651, 525, 7610, 2161, 29915, 584, 525, 18498, 2161, 742, 13, 9651, 525, 22376, 29974, 7610, 29888, 29915, 584, 525, 18498, 2161, 742, 13, 9651, 525, 22376, 29974, 3149, 29915, 584, 525, 29956, 533, 2557, 742, 13, 9651, 525, 1646, 29915, 584, 6213, 29892, 13, 9651, 525, 13270, 29915, 584, 6213, 29892, 13, 4706, 500, 13, 4706, 565, 2479, 338, 6213, 29901, 13, 9651, 1018, 29901, 13, 18884, 2479, 353, 8954, 29918, 1958, 29961, 276, 26081, 29962, 13, 9651, 5174, 7670, 2392, 29901, 13, 18884, 2854, 29918, 8149, 353, 1051, 29898, 276, 26081, 29918, 1958, 29889, 8149, 3101, 13, 18884, 2854, 29918, 8149, 29889, 6605, 580, 13, 18884, 12020, 24875, 2392, 877, 29995, 29878, 338, 451, 263, 2854, 8954, 29905, 29876, 3084, 11759, 29995, 29879, 29962, 29915, 1273, 313, 13, 462, 1678, 8954, 29892, 13420, 15300, 7122, 29898, 3084, 29918, 8149, 4961, 13, 13, 4706, 565, 1196, 29918, 2103, 338, 6213, 29901, 13, 9651, 1196, 29918, 2103, 353, 29871, 29896, 13, 4706, 565, 17012, 338, 6213, 29901, 13, 9651, 17012, 353, 29871, 29896, 29889, 29900, 13, 4706, 565, 3858, 29918, 627, 943, 338, 6213, 29901, 13, 9651, 3858, 29918, 627, 943, 353, 5159, 13, 13, 4706, 1583, 29889, 3560, 353, 3847, 13, 4706, 1583, 29889, 978, 353, 1024, 13, 4706, 1583, 29889, 4990, 353, 2479, 13, 4706, 4974, 2479, 297, 1583, 29889, 2218, 12922, 29892, 525, 2218, 8387, 16328, 29878, 14423, 16328, 29879, 29915, 1273, 313, 4990, 29892, 1583, 29889, 2218, 12922, 29897, 13, 13, 4706, 4974, 338, 8758, 29898, 978, 29892, 851, 511, 525, 978, 16328, 29878, 29915, 1273, 1024, 13, 4706, 4974, 338, 8758, 29898, 1643, 29918, 627, 943, 29892, 1051, 511, 525, 978, 16328, 29878, 3858, 29918, 627, 943, 16328, 29879, 29915, 1273, 313, 978, 29892, 851, 29898, 1643, 29918, 627, 943, 876, 13, 4706, 1583, 3032, 2780, 353, 6213, 13, 4706, 565, 2927, 338, 451, 6213, 29901, 13, 9651, 4974, 2927, 338, 451, 6213, 29892, 2927, 13, 9651, 1583, 29889, 2780, 353, 2927, 13, 4706, 1583, 29889, 1220, 29918, 2103, 353, 1196, 29918, 2103, 13, 4706, 1583, 29889, 3149, 29918, 2311, 353, 1298, 29918, 2311, 13, 4706, 1583, 3032, 28193, 353, 17012, 13, 4706, 1583, 29889, 1646, 29918, 7052, 353, 2594, 29918, 7052, 13, 4706, 1583, 29889, 1643, 29918, 627, 943, 353, 5159, 13, 13, 4706, 4974, 338, 8758, 29898, 275, 29918, 12872, 29892, 6120, 511, 338, 29918, 12872, 13, 4706, 1583, 29889, 275, 29918, 12872, 353, 338, 29918, 12872, 13, 4706, 1583, 29889, 275, 29918, 23945, 519, 353, 338, 29918, 23945, 519, 13, 13, 4706, 565, 8954, 451, 297, 1583, 29889, 276, 6338, 800, 29901, 13, 9651, 10191, 353, 525, 276, 26081, 16328, 29878, 338, 8340, 29905, 29876, 276, 6338, 800, 16328, 29878, 29915, 1273, 313, 13, 18884, 8954, 29892, 1583, 29889, 276, 6338, 800, 29897, 13, 9651, 12020, 24875, 2392, 29898, 7645, 29897, 13, 4706, 1583, 29889, 276, 26081, 353, 8954, 13, 13, 1678, 822, 4770, 24535, 8552, 12035, 1311, 29892, 2626, 29877, 1125, 13, 4706, 9995, 13221, 29876, 29915, 29873, 3509, 278, 3858, 29918, 627, 943, 304, 6210, 2712, 701, 3026, 15945, 13, 4706, 6611, 353, 6024, 978, 742, 22868, 2780, 742, 525, 4990, 742, 525, 1220, 29918, 2103, 742, 525, 3149, 29918, 2311, 742, 22868, 28193, 742, 13, 18884, 22868, 276, 26081, 742, 525, 275, 29918, 12872, 742, 525, 1646, 29918, 7052, 742, 525, 275, 29918, 23945, 519, 2033, 13, 4706, 1067, 29879, 353, 1583, 17255, 1990, 1649, 13, 4706, 1121, 353, 1067, 29879, 17255, 1482, 12035, 25932, 29897, 13, 4706, 1178, 29875, 353, 1178, 29898, 1311, 29897, 13, 4706, 2626, 29877, 29961, 8819, 29962, 353, 1121, 13, 4706, 363, 1820, 297, 6611, 29901, 13, 9651, 995, 353, 1583, 17255, 8977, 1649, 29961, 1989, 29962, 13, 9651, 731, 5552, 29898, 2914, 29892, 1820, 29892, 6483, 8552, 29898, 1767, 29892, 2626, 29877, 876, 13, 4706, 396, 2914, 29889, 1643, 29918, 627, 943, 353, 5159, 396, 29922, 2626, 29877, 1839, 1643, 29918, 627, 943, 2033, 13, 4706, 736, 1121, 13, 13, 1678, 732, 6799, 13, 1678, 822, 17012, 29898, 1311, 1125, 13, 4706, 9995, 13, 308, 29900, 1599, 17772, 13, 308, 29896, 1599, 7773, 13, 13, 4706, 9995, 13, 4706, 4974, 29871, 29900, 29889, 29900, 5277, 1583, 3032, 28193, 5277, 29871, 29896, 29889, 29900, 29892, 1583, 3032, 28193, 13, 4706, 736, 1583, 3032, 28193, 13, 13, 1678, 732, 28193, 29889, 842, 357, 13, 1678, 822, 17012, 29898, 1311, 29892, 17012, 1125, 13, 4706, 4974, 29871, 29900, 29889, 29900, 5277, 17012, 5277, 29871, 29896, 29889, 29900, 29892, 17012, 13, 4706, 1583, 3032, 28193, 353, 17012, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1301, 862, 3819, 29898, 1311, 1125, 13, 4706, 9995, 13, 308, 29900, 1599, 7773, 13, 308, 29896, 1599, 17772, 13, 13, 4706, 9995, 13, 4706, 4974, 29871, 29900, 29889, 29900, 5277, 1583, 3032, 28193, 5277, 29871, 29896, 29889, 29900, 29892, 1583, 3032, 28193, 13, 4706, 736, 29871, 29896, 29889, 29900, 448, 1583, 3032, 28193, 13, 13, 1678, 732, 3286, 862, 3819, 29889, 842, 357, 13, 1678, 822, 1301, 862, 3819, 29898, 1311, 29892, 1301, 862, 3819, 1125, 13, 4706, 4974, 29871, 29900, 29889, 29900, 5277, 1301, 862, 3819, 5277, 29871, 29896, 29889, 29900, 29892, 1301, 862, 3819, 13, 4706, 1583, 3032, 28193, 353, 29871, 29896, 29889, 29900, 448, 1301, 862, 3819, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2927, 29898, 1311, 1125, 13, 4706, 565, 1583, 3032, 2780, 338, 6213, 29901, 13, 9651, 736, 313, 29906, 29945, 29945, 29892, 29871, 29900, 29892, 29871, 29900, 29897, 29871, 396, 278, 2322, 2927, 29936, 2654, 13, 4706, 736, 1583, 3032, 2780, 13, 13, 1678, 732, 2780, 29889, 842, 357, 13, 1678, 822, 2927, 29898, 1311, 29892, 2927, 1125, 13, 4706, 4974, 7431, 29898, 2780, 29897, 1275, 29871, 29941, 29892, 2927, 13, 4706, 565, 338, 8758, 29898, 2780, 29961, 29900, 1402, 938, 1125, 13, 9651, 4974, 338, 8758, 29898, 2780, 29961, 29900, 1402, 938, 511, 2927, 29961, 29900, 29962, 13, 9651, 4974, 338, 8758, 29898, 2780, 29961, 29896, 1402, 938, 511, 2927, 29961, 29896, 29962, 13, 9651, 4974, 338, 8758, 29898, 2780, 29961, 29906, 1402, 938, 511, 2927, 29961, 29906, 29962, 13, 9651, 1583, 3032, 2780, 353, 18761, 29898, 2780, 29897, 13, 4706, 1683, 29901, 13, 9651, 4974, 338, 8758, 29898, 2780, 29961, 29900, 1402, 5785, 511, 2927, 29961, 29900, 29962, 13, 9651, 4974, 338, 8758, 29898, 2780, 29961, 29896, 1402, 5785, 511, 2927, 29961, 29896, 29962, 13, 9651, 4974, 338, 8758, 29898, 2780, 29961, 29906, 1402, 5785, 511, 2927, 29961, 29906, 29962, 13, 9651, 1583, 3032, 2780, 353, 313, 524, 29898, 2780, 29961, 29900, 29962, 334, 29871, 29906, 29945, 29945, 511, 938, 29898, 2780, 29961, 29896, 29962, 334, 29871, 29906, 29945, 29945, 511, 938, 29898, 2780, 29961, 29906, 29962, 334, 29871, 29906, 29945, 29945, 876, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2927, 29918, 7411, 29898, 1311, 1125, 13, 4706, 736, 18761, 4197, 29875, 29914, 29906, 29945, 29945, 29889, 363, 474, 297, 1583, 3032, 2780, 2314, 13, 13, 1678, 822, 731, 29918, 2780, 29898, 1311, 29892, 2927, 29892, 4464, 2433, 23973, 29374, 13, 4706, 4974, 4464, 1275, 525, 23973, 742, 525, 8513, 16328, 29878, 29915, 1273, 4464, 13, 4706, 1583, 29889, 2780, 353, 2927, 13, 4706, 4974, 7431, 29898, 2780, 29897, 1275, 29871, 29941, 29892, 2927, 13, 4706, 396, 1311, 29889, 8513, 353, 525, 23973, 29915, 13, 13, 1678, 732, 6799, 13, 1678, 822, 8954, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 402, 1691, 278, 8954, 13, 13, 4706, 334, 1667, 448, 1667, 27716, 13, 4706, 334, 20429, 448, 1735, 411, 1667, 27716, 13, 4706, 334, 8014, 448, 2337, 8014, 2557, 13, 4706, 334, 1298, 448, 2337, 3291, 13, 4706, 334, 7101, 448, 2337, 7101, 13, 4706, 334, 2594, 448, 445, 508, 671, 2594, 6287, 13, 4706, 334, 8014, 29974, 3149, 448, 1298, 313, 369, 4776, 29897, 322, 8014, 2557, 6068, 13, 4706, 334, 8014, 29974, 7610, 29888, 448, 278, 1404, 508, 4607, 1546, 7101, 322, 8014, 2557, 408, 263, 9262, 13, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 276, 26081, 13, 13, 1678, 732, 276, 26081, 29889, 842, 357, 13, 1678, 822, 8954, 29898, 1311, 29892, 8954, 1125, 13, 4706, 9995, 29903, 1691, 278, 8954, 15945, 29908, 13, 4706, 565, 8954, 451, 297, 1583, 29889, 276, 6338, 800, 29901, 13, 9651, 10191, 353, 525, 276, 26081, 16328, 29878, 338, 8340, 29905, 29876, 276, 6338, 800, 16328, 29878, 29915, 1273, 313, 13, 18884, 8954, 29892, 1583, 29889, 276, 6338, 800, 29897, 13, 9651, 12020, 24875, 2392, 29898, 7645, 29897, 13, 4706, 1583, 3032, 276, 26081, 353, 8954, 13, 2 ]
tests/adv/test_pop_sfrd.py
jlashner/ares
10
3442
""" test_pop_models.py Author: <NAME> Affiliation: UCLA Created on: Fri Jul 15 15:23:11 PDT 2016 Description: """ import ares import matplotlib.pyplot as pl PB = ares.util.ParameterBundle def test(): # Create a simple population pars_1 = PB('pop:fcoll') + PB('sed:bpass') pop_fcoll = ares.populations.GalaxyPopulation(**pars_1) #pop_fcoll_XR = ares.populations.GalaxyPopulation(**pars_1) # Mimic the above population to check our different SFRD/SED techniques sfrd_pars = {'pop_sfr_model': 'sfrd-func'} sfrd_pars['pop_sfrd'] = pop_fcoll.SFRD sfrd_pars['pop_sfrd_units'] = 'internal' sed = PB('sed:toy') sed['pop_Nion'] = pop_fcoll.src.Nion sed['pop_Nlw'] = pop_fcoll.src.Nlw # pop_Ex? sed['pop_ion_src_igm'] = False sed['pop_heat_src_igm'] = False pars_2 = sed + sfrd_pars pop_sfrd = ares.populations.GalaxyPopulation(**pars_2) assert pop_fcoll.SFRD(20.) == pop_sfrd.SFRD(20.), "Error in SFRD." # Check the emissivities too #print(pop_fcoll.PhotonLuminosityDensity(20., Emin=10.2, Emax=13.6)) #print(pop_sfrd.PhotonLuminosityDensity(20., Emin=10.2, Emax=13.6)) #assert pop_fcoll.PhotonLuminosityDensity(20., Emin=10.2, Emax=13.6) \ # == pop_sfrd.PhotonLuminosityDensity(20., Emin=10.2, Emax=13.6), \ # "Error in photon luminosity density." if __name__ == '__main__': test()
[ 1, 9995, 13, 13, 1688, 29918, 7323, 29918, 9794, 29889, 2272, 13, 13, 13720, 29901, 529, 5813, 29958, 13, 27867, 2638, 362, 29901, 501, 13875, 13, 20399, 373, 29901, 11169, 2739, 29871, 29896, 29945, 29871, 29896, 29945, 29901, 29906, 29941, 29901, 29896, 29896, 349, 12972, 29871, 29906, 29900, 29896, 29953, 13, 13, 9868, 29901, 29871, 13, 13, 15945, 29908, 13, 13, 5215, 564, 267, 13, 5215, 22889, 29889, 2272, 5317, 408, 715, 13, 13, 29925, 29933, 353, 564, 267, 29889, 4422, 29889, 9329, 9534, 13, 13, 1753, 1243, 7295, 13, 13, 1678, 396, 6204, 263, 2560, 4665, 13, 1678, 610, 29879, 29918, 29896, 353, 349, 29933, 877, 7323, 29901, 29888, 22017, 1495, 718, 349, 29933, 877, 8485, 29901, 29890, 3364, 1495, 13, 1678, 1835, 29918, 29888, 22017, 353, 564, 267, 29889, 7323, 8250, 29889, 29954, 284, 26825, 12310, 2785, 29898, 1068, 862, 29879, 29918, 29896, 29897, 13, 1678, 396, 7323, 29918, 29888, 22017, 29918, 29990, 29934, 353, 564, 267, 29889, 7323, 8250, 29889, 29954, 284, 26825, 12310, 2785, 29898, 1068, 862, 29879, 29918, 29896, 29897, 13, 268, 13, 1678, 396, 341, 326, 293, 278, 2038, 4665, 304, 1423, 1749, 1422, 317, 15860, 29928, 29914, 1660, 29928, 13698, 13, 1678, 269, 1341, 29881, 29918, 862, 29879, 353, 11117, 7323, 29918, 29879, 1341, 29918, 4299, 2396, 525, 29879, 1341, 29881, 29899, 9891, 10827, 13, 1678, 269, 1341, 29881, 29918, 862, 29879, 1839, 7323, 29918, 29879, 1341, 29881, 2033, 353, 1835, 29918, 29888, 22017, 29889, 29903, 15860, 29928, 13, 1678, 269, 1341, 29881, 29918, 862, 29879, 1839, 7323, 29918, 29879, 1341, 29881, 29918, 348, 1169, 2033, 353, 525, 7564, 29915, 13, 268, 13, 1678, 7048, 353, 349, 29933, 877, 8485, 29901, 517, 29891, 1495, 13, 1678, 7048, 1839, 7323, 29918, 29940, 291, 2033, 353, 1835, 29918, 29888, 22017, 29889, 4351, 29889, 29940, 291, 13, 1678, 7048, 1839, 7323, 29918, 29940, 29880, 29893, 2033, 353, 1835, 29918, 29888, 22017, 29889, 4351, 29889, 29940, 29880, 29893, 13, 1678, 396, 1835, 29918, 1252, 29973, 13, 1678, 7048, 1839, 7323, 29918, 291, 29918, 4351, 29918, 335, 29885, 2033, 353, 7700, 13, 1678, 7048, 1839, 7323, 29918, 354, 271, 29918, 4351, 29918, 335, 29885, 2033, 353, 7700, 13, 268, 13, 1678, 610, 29879, 29918, 29906, 353, 7048, 718, 269, 1341, 29881, 29918, 862, 29879, 13, 268, 13, 1678, 1835, 29918, 29879, 1341, 29881, 353, 564, 267, 29889, 7323, 8250, 29889, 29954, 284, 26825, 12310, 2785, 29898, 1068, 862, 29879, 29918, 29906, 29897, 13, 268, 13, 1678, 4974, 1835, 29918, 29888, 22017, 29889, 29903, 15860, 29928, 29898, 29906, 29900, 1846, 1275, 1835, 29918, 29879, 1341, 29881, 29889, 29903, 15860, 29928, 29898, 29906, 29900, 9774, 376, 2392, 297, 317, 15860, 29928, 1213, 13, 13, 1678, 396, 5399, 278, 953, 790, 440, 1907, 2086, 29871, 13, 268, 13, 1678, 396, 2158, 29898, 7323, 29918, 29888, 22017, 29889, 4819, 327, 265, 29931, 398, 8226, 537, 29928, 575, 537, 29898, 29906, 29900, 1696, 382, 1195, 29922, 29896, 29900, 29889, 29906, 29892, 382, 3317, 29922, 29896, 29941, 29889, 29953, 876, 13, 1678, 396, 2158, 29898, 7323, 29918, 29879, 1341, 29881, 29889, 4819, 327, 265, 29931, 398, 8226, 537, 29928, 575, 537, 29898, 29906, 29900, 1696, 382, 1195, 29922, 29896, 29900, 29889, 29906, 29892, 382, 3317, 29922, 29896, 29941, 29889, 29953, 876, 13, 268, 13, 1678, 396, 9294, 1835, 29918, 29888, 22017, 29889, 4819, 327, 265, 29931, 398, 8226, 537, 29928, 575, 537, 29898, 29906, 29900, 1696, 382, 1195, 29922, 29896, 29900, 29889, 29906, 29892, 382, 3317, 29922, 29896, 29941, 29889, 29953, 29897, 320, 13, 1678, 396, 1678, 1275, 1835, 29918, 29879, 1341, 29881, 29889, 4819, 327, 265, 29931, 398, 8226, 537, 29928, 575, 537, 29898, 29906, 29900, 1696, 382, 1195, 29922, 29896, 29900, 29889, 29906, 29892, 382, 3317, 29922, 29896, 29941, 29889, 29953, 511, 320, 13, 1678, 396, 1678, 376, 2392, 297, 6731, 265, 19703, 8226, 537, 9027, 1213, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1243, 580, 13, 13, 13, 2 ]
mlab_tools/camera.py
lukius/mlab-tools
0
177224
<reponame>lukius/mlab-tools<filename>mlab_tools/camera.py from mayavi import mlab class Camera(object): """Class that wraps some of the mlab functions that manipulate the camera. A camera instance is automatically created by the animation. """ def __init__(self, focalpoint=None, distance=None, azimuth=None, elevation=None, roll=None): self.focalpoint = focalpoint or 'auto' self.distance = distance or 'auto' self.azimuth = azimuth or 0 self.elevation = elevation or 0 self.roll = roll or 0 self._set_view() if self.distance == 'auto': _, _, self.distance, self.focalpoint = mlab.view() def _set_view(self): # Sets current camera state into the animation. mlab.view(azimuth=self.azimuth, elevation=self.elevation, distance=self.distance, focalpoint=self.focalpoint, roll=self.roll) def parameters(self): """Get current camera parameters. Returns a dictionary associating each parameter name (i.e., `azimuth`, `focalpoint`, `distance`, `elevation` and `roll`) to its current value. """ self.azimuth, self.elevation, self.distance, self.focalpoint = mlab.view() self.roll = mlab.roll() return {'focalpoint' : self.focalpoint, 'distance' : self.distance, 'azimuth' : self.azimuth, 'elevation' : self.elevation, 'roll' : self.roll} def update(self, focalpoint=None, distance=None, azimuth=None, elevation=None, roll=None): """Updates the camera. Parameters are additive (e.g., if distance=d is supplied, the camera will have an increase of d in its distance after this call). Keyword arguments: :azimuth: the azimuthal angle (in degrees, 0-360), i.e. the angle subtended by the position vector on a sphere projected on to the x-y plane with the x-axis. :distance: a positive floating point number representing the distance from the focal point to place the camera. :elevation: the zenith angle (in degrees, 0-180), i.e. the angle subtended by the position vector and the z-axis. :focalpoint: an array of 3 floating point numbers representing the focal point of the camera. :roll: the rotation of the camera around its axis. See mlab documentation for further details. """ self.focalpoint = focalpoint or self.focalpoint self.distance = self.distance + (distance or 0) self.azimuth = self.azimuth + (azimuth or 0) self.elevation = self.elevation + (elevation or 0) self.roll = self.roll + (roll or 0) self._set_view()
[ 1, 529, 276, 1112, 420, 29958, 6092, 1984, 375, 29914, 828, 370, 29899, 8504, 29966, 9507, 29958, 828, 370, 29918, 8504, 29914, 26065, 29889, 2272, 13, 3166, 1122, 17345, 1053, 286, 8205, 13, 13, 13, 1990, 24321, 29898, 3318, 1125, 13, 268, 13, 1678, 9995, 2385, 393, 11463, 567, 777, 310, 278, 286, 8205, 3168, 393, 26749, 278, 10656, 29889, 13, 1678, 319, 10656, 2777, 338, 6336, 2825, 491, 278, 9612, 29889, 13, 1678, 9995, 13, 268, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 12789, 284, 3149, 29922, 8516, 29892, 5418, 29922, 8516, 29892, 13, 462, 2698, 326, 2806, 29922, 8516, 29892, 11858, 362, 29922, 8516, 29892, 9679, 29922, 8516, 1125, 13, 4706, 1583, 29889, 29888, 18642, 3149, 353, 12789, 284, 3149, 470, 525, 6921, 29915, 13, 4706, 1583, 29889, 19244, 353, 5418, 470, 525, 6921, 29915, 13, 4706, 1583, 29889, 834, 326, 2806, 353, 2698, 326, 2806, 470, 29871, 29900, 13, 4706, 1583, 29889, 29872, 2608, 362, 353, 11858, 362, 470, 29871, 29900, 13, 4706, 1583, 29889, 1245, 353, 9679, 470, 29871, 29900, 13, 4706, 1583, 3032, 842, 29918, 1493, 580, 13, 4706, 565, 1583, 29889, 19244, 1275, 525, 6921, 2396, 13, 9651, 17117, 17117, 1583, 29889, 19244, 29892, 1583, 29889, 29888, 18642, 3149, 353, 286, 8205, 29889, 1493, 580, 13, 308, 13, 1678, 822, 903, 842, 29918, 1493, 29898, 1311, 1125, 13, 4706, 396, 317, 1691, 1857, 10656, 2106, 964, 278, 9612, 29889, 13, 4706, 286, 8205, 29889, 1493, 29898, 834, 326, 2806, 29922, 1311, 29889, 834, 326, 2806, 29892, 13, 462, 29871, 11858, 362, 29922, 1311, 29889, 29872, 2608, 362, 29892, 13, 462, 29871, 5418, 29922, 1311, 29889, 19244, 29892, 13, 462, 29871, 12789, 284, 3149, 29922, 1311, 29889, 29888, 18642, 3149, 29892, 13, 462, 29871, 9679, 29922, 1311, 29889, 1245, 29897, 13, 308, 13, 1678, 822, 4128, 29898, 1311, 1125, 13, 4706, 9995, 2577, 1857, 10656, 4128, 29889, 13, 4706, 16969, 263, 8600, 4067, 1218, 1269, 3443, 1024, 313, 29875, 29889, 29872, 1696, 421, 834, 326, 2806, 1673, 13, 4706, 421, 29888, 18642, 3149, 1673, 421, 19244, 1673, 421, 29872, 2608, 362, 29952, 322, 421, 1245, 6348, 304, 967, 1857, 995, 29889, 13, 4706, 9995, 13, 4706, 1583, 29889, 834, 326, 2806, 29892, 1583, 29889, 29872, 2608, 362, 29892, 1583, 29889, 19244, 29892, 1583, 29889, 29888, 18642, 3149, 353, 286, 8205, 29889, 1493, 580, 13, 4706, 1583, 29889, 1245, 353, 286, 8205, 29889, 1245, 580, 13, 13, 4706, 736, 11117, 29888, 18642, 3149, 29915, 584, 1583, 29889, 29888, 18642, 3149, 29892, 13, 18884, 525, 19244, 29915, 584, 1583, 29889, 19244, 29892, 13, 18884, 525, 834, 326, 2806, 29915, 584, 1583, 29889, 834, 326, 2806, 29892, 13, 18884, 525, 29872, 2608, 362, 29915, 584, 1583, 29889, 29872, 2608, 362, 29892, 13, 18884, 525, 1245, 29915, 584, 1583, 29889, 1245, 29913, 13, 308, 13, 1678, 822, 2767, 29898, 1311, 29892, 12789, 284, 3149, 29922, 8516, 29892, 5418, 29922, 8516, 29892, 13, 1669, 2698, 326, 2806, 29922, 8516, 29892, 11858, 362, 29922, 8516, 29892, 9679, 29922, 8516, 1125, 13, 4706, 9995, 3373, 15190, 278, 10656, 29889, 13, 4706, 12662, 2699, 526, 788, 3321, 313, 29872, 29889, 29887, 1696, 565, 5418, 29922, 29881, 338, 19056, 29892, 278, 10656, 13, 4706, 674, 505, 385, 7910, 310, 270, 297, 967, 5418, 1156, 445, 1246, 467, 13, 308, 13, 4706, 7670, 1742, 6273, 29901, 13, 308, 13, 4706, 584, 834, 326, 2806, 29901, 278, 2698, 326, 2806, 284, 10696, 313, 262, 14496, 29892, 29871, 29900, 29899, 29941, 29953, 29900, 511, 474, 29889, 29872, 29889, 278, 10696, 13, 4706, 12059, 2760, 491, 278, 2602, 4608, 373, 263, 20745, 2060, 287, 373, 304, 278, 921, 29899, 29891, 13, 4706, 10694, 411, 278, 921, 29899, 8990, 29889, 13, 308, 13, 4706, 584, 19244, 29901, 263, 6374, 16526, 1298, 1353, 15783, 278, 5418, 13, 4706, 515, 278, 12789, 284, 1298, 304, 2058, 278, 10656, 29889, 13, 308, 13, 4706, 584, 29872, 2608, 362, 29901, 278, 503, 264, 389, 10696, 313, 262, 14496, 29892, 29871, 29900, 29899, 29896, 29947, 29900, 511, 474, 29889, 29872, 29889, 278, 10696, 13, 4706, 12059, 2760, 491, 278, 2602, 4608, 322, 278, 503, 29899, 8990, 29889, 13, 308, 13, 4706, 584, 29888, 18642, 3149, 29901, 385, 1409, 310, 29871, 29941, 16526, 1298, 3694, 15783, 278, 13, 4706, 12789, 284, 1298, 310, 278, 10656, 29889, 29871, 13, 308, 13, 4706, 584, 1245, 29901, 278, 13733, 310, 278, 10656, 2820, 967, 9685, 29889, 13, 308, 13, 4706, 2823, 286, 8205, 5106, 363, 4340, 4902, 29889, 13, 4706, 9995, 308, 13, 4706, 1583, 29889, 29888, 18642, 3149, 353, 12789, 284, 3149, 470, 1583, 29889, 29888, 18642, 3149, 13, 4706, 1583, 29889, 19244, 353, 1583, 29889, 19244, 718, 313, 19244, 470, 29871, 29900, 29897, 13, 4706, 1583, 29889, 834, 326, 2806, 353, 1583, 29889, 834, 326, 2806, 718, 313, 834, 326, 2806, 470, 29871, 29900, 29897, 13, 4706, 1583, 29889, 29872, 2608, 362, 353, 1583, 29889, 29872, 2608, 362, 718, 313, 29872, 2608, 362, 470, 29871, 29900, 29897, 13, 4706, 1583, 29889, 1245, 353, 1583, 29889, 1245, 718, 313, 1245, 470, 29871, 29900, 29897, 13, 4706, 1583, 3032, 842, 29918, 1493, 580, 2 ]
src/MLP/utils.py
rudyn2/wine_market_temporal_prediction
0
115918
import pandas as pd import torch import torch.nn as nn from src.MLP.mlp_models import WineDataset def model_eval(trained_model: nn.Module, dataset: WineDataset): """ Takes a WineDataset and returns a pandas series (using datetime indexing) with the predictions. """ trained_model.eval() y_pred = [] with torch.no_grad(): for index in range(len(dataset)): temp_seq, true_pred, temp_seq_index, true_pred_index = dataset.get_with_index(index) outputs = trained_model(temp_seq) y_pred.append(pd.Series(outputs.numpy(), index=true_pred_index)) return pd.concat(y_pred)
[ 1, 1053, 11701, 408, 10518, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 13, 3166, 4765, 29889, 1988, 29925, 29889, 828, 29886, 29918, 9794, 1053, 399, 457, 16390, 24541, 13, 13, 13, 1753, 1904, 29918, 14513, 29898, 3018, 1312, 29918, 4299, 29901, 302, 29876, 29889, 7355, 29892, 8783, 29901, 399, 457, 16390, 24541, 1125, 13, 1678, 9995, 13, 1678, 323, 6926, 263, 399, 457, 16390, 24541, 322, 3639, 263, 11701, 3652, 313, 4746, 12865, 26190, 29897, 411, 278, 27303, 29889, 13, 1678, 9995, 13, 1678, 16370, 29918, 4299, 29889, 14513, 580, 13, 1678, 343, 29918, 11965, 353, 5159, 13, 1678, 411, 4842, 305, 29889, 1217, 29918, 5105, 7295, 13, 4706, 363, 2380, 297, 3464, 29898, 2435, 29898, 24713, 22164, 13, 9651, 5694, 29918, 11762, 29892, 1565, 29918, 11965, 29892, 5694, 29918, 11762, 29918, 2248, 29892, 1565, 29918, 11965, 29918, 2248, 353, 8783, 29889, 657, 29918, 2541, 29918, 2248, 29898, 2248, 29897, 13, 9651, 14391, 353, 16370, 29918, 4299, 29898, 7382, 29918, 11762, 29897, 13, 9651, 343, 29918, 11965, 29889, 4397, 29898, 15926, 29889, 19204, 29898, 4905, 29879, 29889, 23749, 3285, 2380, 29922, 3009, 29918, 11965, 29918, 2248, 876, 13, 1678, 736, 10518, 29889, 17685, 29898, 29891, 29918, 11965, 29897, 13, 2 ]
src/backend/backend/users/migrations/0010_update_uuid_field.py
tejpratap545/E-Commerce-Application
0
49803
<reponame>tejpratap545/E-Commerce-Application # Generated by Django 3.1.2 on 2020-10-21 15:40 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('users', '0009_auto_20201021_2108'), ] operations = [ migrations.AlterField( model_name='emailconfirmation', name='token', field=models.CharField(default='<KEY>', max_length=250), ), migrations.AlterField( model_name='emailconfirmation', name='uuid', field=models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False), ), migrations.AlterField( model_name='passwordreset', name='url_token', field=models.CharField(default='<KEY>', max_length=250), ), migrations.AlterField( model_name='passwordreset', name='uuid', field=models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False), ), ]
[ 1, 529, 276, 1112, 420, 29958, 371, 29926, 558, 271, 481, 29945, 29946, 29945, 29914, 29923, 29899, 1523, 15667, 29899, 4873, 13, 29937, 3251, 630, 491, 15337, 29871, 29941, 29889, 29896, 29889, 29906, 373, 29871, 29906, 29900, 29906, 29900, 29899, 29896, 29900, 29899, 29906, 29896, 29871, 29896, 29945, 29901, 29946, 29900, 13, 13, 3166, 9557, 29889, 2585, 1053, 9725, 800, 29892, 4733, 13, 5215, 318, 5416, 13, 13, 13, 1990, 341, 16783, 29898, 26983, 800, 29889, 29924, 16783, 1125, 13, 13, 1678, 9962, 353, 518, 13, 4706, 6702, 7193, 742, 525, 29900, 29900, 29900, 29929, 29918, 6921, 29918, 29906, 29900, 29906, 29900, 29896, 29900, 29906, 29896, 29918, 29906, 29896, 29900, 29947, 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, 5269, 26897, 362, 742, 13, 9651, 1024, 2433, 6979, 742, 13, 9651, 1746, 29922, 9794, 29889, 27890, 29898, 4381, 2433, 29966, 10818, 29958, 742, 4236, 29918, 2848, 29922, 29906, 29945, 29900, 511, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 2499, 357, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 5269, 26897, 362, 742, 13, 9651, 1024, 2433, 25118, 742, 13, 9651, 1746, 29922, 9794, 29889, 29965, 11150, 3073, 29898, 4381, 29922, 25118, 29889, 25118, 29946, 29892, 3863, 519, 29922, 8824, 29892, 7601, 29918, 1989, 29922, 5574, 29892, 28755, 29922, 8824, 511, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 2499, 357, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 5630, 12071, 742, 13, 9651, 1024, 2433, 2271, 29918, 6979, 742, 13, 9651, 1746, 29922, 9794, 29889, 27890, 29898, 4381, 2433, 29966, 10818, 29958, 742, 4236, 29918, 2848, 29922, 29906, 29945, 29900, 511, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 2499, 357, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 5630, 12071, 742, 13, 9651, 1024, 2433, 25118, 742, 13, 9651, 1746, 29922, 9794, 29889, 29965, 11150, 3073, 29898, 4381, 29922, 25118, 29889, 25118, 29946, 29892, 3863, 519, 29922, 8824, 29892, 7601, 29918, 1989, 29922, 5574, 29892, 28755, 29922, 8824, 511, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
OSeMOSYS_PuLP.py
OSeMOSYS/OSeMOSYS-PuLP
4
53604
<filename>OSeMOSYS_PuLP.py # !/usr/bin/env python3 # -*- coding: utf-8 -*- # Author: <NAME>, Copyright 2019 # OSeMOSYS version: OSeMOSYS_2017_11_08 __doc__ = """ ======================================================================================================================== OSeMOSYS-PuLP: A Stochastic Modeling Framework for Long-Term Energy Systems Modeling ======================================================================================================================== OSeMOSYS-PuLP This is the educational version of OSeMOSYS-PuLP ======================================================================================================================== OSeMOSYS-PuLP: A Stochastic Modeling Framework for Long-Term Energy Systems Modeling Please cite this software by using the following reference of the original scientific article: <NAME>, <NAME>, OSeMOSYS-PuLP: A Stochastic Modeling Framework for Long-Term Energy Systems Modeling. Energies 2019, 12, 1382, https://doi.org/10.3390/en12071382 Additional references to be cited for the OSeMOSYS modelling framework (see DOI links for complete references): Howells et al. (2011), https://doi.org/10.1016/j.enpol.2011.06.033 Gardumi et al. (2018), https://doi.org/10.1016/j.esr.2018.03.005 Other sources: OSeMOSYS GitHub: https://github.com/OSeMOSYS/ OSeMOSYS website: http://www.osemosys.org/ OpTIMUS community: http://www.optimus.community/ ======================================================================================================================== """ import os import datetime as dt import logging import numpy as np import pandas as pd import pulp logging.basicConfig(level=logging.DEBUG) logging.info("{}\tScript started.".format(dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) # ---------------------------------------------------------------------------------------------------------------------- # SETUP - DATA SOURCES and MONTE CARLO SIMULATION # ---------------------------------------------------------------------------------------------------------------------- # Input data inputFile = "UTOPIA_BASE.xlsx" # Update with actual filename # Settings inputDir = ".\Input_Data\\" modelName = inputFile.split('.')[0] sheetSets = "SETS" sheetParams = "PARAMETERS" sheetParamsDefault = "PARAMETERS_DEFAULT" sheetMcs = "MCS" sheetMcsNum = "MCS_num" outputDir = ".\Output_Data\\" outputFile = f"{modelName}_result.xlsx" # ---------------------------------------------------------------------------------------------------------------------- # FUNCTIONS # ---------------------------------------------------------------------------------------------------------------------- def newVar(name, lb, ub, cat, *indices): """ This function create a new variable having a lower bound (lb), upper bound (ub), category (cat), using indices from SETS """ _name = name for index in indices: _name = "{}_{}".format(_name, index) return pulp.LpVariable(_name, lowBound=lb, upBound=ub, cat=cat) def loadData(filePath, sheetSets, sheetParams, sheetParamsDefault, sheetMcs, sheetMcsNum): """ This function loads all data from the input data set to dataframes. """ # Data: SETS sets_df = pd.read_excel(io=filePath, sheet_name=sheetSets) sets_df['REGION'] = sets_df['REGION'].astype(str) sets_df['REGION2'] = sets_df['REGION2'].astype(str) sets_df['DAYTYPE'] = sets_df['DAYTYPE'].astype(str) sets_df['EMISSION'] = sets_df['EMISSION'].astype(str) sets_df['FUEL'] = sets_df['FUEL'].astype(str) sets_df['DAILYTIMEBRACKET'] = sets_df['DAILYTIMEBRACKET'].astype(str) sets_df['SEASON'] = sets_df['SEASON'].astype(str) sets_df['TIMESLICE'] = sets_df['TIMESLICE'].astype(str) sets_df['MODE_OF_OPERATION'] = sets_df['MODE_OF_OPERATION'].astype(str) sets_df['STORAGE'] = sets_df['STORAGE'].astype(str) sets_df['TECHNOLOGY'] = sets_df['TECHNOLOGY'].astype(str) sets_df['YEAR'] = sets_df['YEAR'].astype(str) sets_df['FLEXIBLEDEMANDTYPE'] = sets_df['FLEXIBLEDEMANDTYPE'].astype(str) # Data: PARAMETERS p_df = pd.read_excel(io=filePath, sheet_name=sheetParams) p_df = p_df.fillna(0) p_df['PARAM'] = p_df['PARAM'].astype(str) p_df['VALUE'] = p_df['VALUE'].apply(pd.to_numeric, downcast='signed') p_df['REGION'] = p_df['REGION'].astype(str) p_df['REGION2'] = p_df['REGION2'].astype(str) p_df['DAYTYPE'] = p_df['DAYTYPE'].astype(int) p_df['DAYTYPE'] = p_df['DAYTYPE'].astype(str) p_df['EMISSION'] = p_df['EMISSION'].astype(str) p_df['FUEL'] = p_df['FUEL'].astype(str) p_df['DAILYTIMEBRACKET'] = p_df['DAILYTIMEBRACKET'].astype(int) p_df['DAILYTIMEBRACKET'] = p_df['DAILYTIMEBRACKET'].astype(str) p_df['SEASON'] = p_df['SEASON'].astype(int) p_df['SEASON'] = p_df['SEASON'].astype(str) p_df['TIMESLICE'] = p_df['TIMESLICE'].astype(str) p_df['MODE_OF_OPERATION'] = p_df['MODE_OF_OPERATION'].astype(int) p_df['MODE_OF_OPERATION'] = p_df['MODE_OF_OPERATION'].astype(str) p_df['STORAGE'] = p_df['STORAGE'].astype(str) p_df['TECHNOLOGY'] = p_df['TECHNOLOGY'].astype(str) p_df['YEAR'] = p_df['YEAR'].astype(int) p_df['YEAR'] = p_df['YEAR'].astype(str) # Data: Parameters default values p_default_df = pd.read_excel(io=filePath, sheet_name=sheetParamsDefault) p_default_df = p_default_df.fillna(0) p_default_df['PARAM'] = p_default_df['PARAM'].astype(str) p_default_df['VALUE'] = p_default_df['VALUE'].apply(pd.to_numeric, downcast='signed') # Data: Monte Carlo Simulation (MCS) mcs_df = pd.read_excel(io=filePath, sheet_name=sheetMcs) mcs_df = mcs_df.fillna(0) mcs_df['DEFAULT_SETTING'] = mcs_df['DEFAULT_SETTING'].apply(pd.to_numeric, downcast='signed') mcs_df['DEFAULT_SETTING'] = mcs_df['DEFAULT_SETTING'].astype(int) mcs_df['REL_SD'] = mcs_df['REL_SD'].apply(pd.to_numeric, downcast='signed') mcs_df['REL_MIN'] = mcs_df['REL_MIN'].apply(pd.to_numeric, downcast='signed') mcs_df['REL_MAX'] = mcs_df['REL_MAX'].apply(pd.to_numeric, downcast='signed') mcs_df['DISTRIBUTION'] = mcs_df['DISTRIBUTION'].astype(str) mcs_df['ARRAY'] = [[float(i) for i in str(x).split(",")] for x in mcs_df['ARRAY']] mcs_df['PARAM'] = mcs_df['PARAM'].astype(str) mcs_df['REGION'] = mcs_df['REGION'].astype(str) mcs_df['DAYTYPE'] = mcs_df['DAYTYPE'].astype(int) mcs_df['DAYTYPE'] = mcs_df['DAYTYPE'].astype(str) mcs_df['EMISSION'] = mcs_df['EMISSION'].astype(str) mcs_df['FUEL'] = mcs_df['FUEL'].astype(str) mcs_df['DAILYTIMEBRACKET'] = mcs_df['DAILYTIMEBRACKET'].astype(int) mcs_df['DAILYTIMEBRACKET'] = mcs_df['DAILYTIMEBRACKET'].astype(str) mcs_df['SEASON'] = mcs_df['SEASON'].astype(int) mcs_df['SEASON'] = mcs_df['SEASON'].astype(str) mcs_df['TIMESLICE'] = mcs_df['TIMESLICE'].astype(str) mcs_df['MODE_OF_OPERATION'] = mcs_df['MODE_OF_OPERATION'].astype(int) mcs_df['MODE_OF_OPERATION'] = mcs_df['MODE_OF_OPERATION'].astype(str) mcs_df['STORAGE'] = mcs_df['STORAGE'].astype(str) mcs_df['TECHNOLOGY'] = mcs_df['TECHNOLOGY'].astype(str) mcs_df['YEAR'] = mcs_df['YEAR'].astype(int) mcs_df['YEAR'] = mcs_df['YEAR'].astype(str) # Number of MCS simulations mcs_num_df = pd.read_excel(io=filePath, sheet_name=sheetMcsNum) mcs_num = mcs_num_df.at[0, 'MCS_num'] return sets_df, p_df, p_default_df, mcs_df, mcs_num def generateRandomData(reference, list): """ This function generates random data for the parameters included in the Monte Carlo Simulations. reference (format: float): mean for normal distribution, mode for both triangular and uniform distributions dist: type of distribution. Choose from: "normal", "triangular", "uniform" (format: string) rel_sd: relative standard deviation from mean or mode. Unit: percent as decimals (format: float) rel_min: relative minimum deviation from mean or mode. Unit: percent as decimals (format: float), must be a negative value rel_max: relative maximum deviation from mean or mode. Unit: percent as decimals (format: float), must be a positive value array: array with potential values. One value out of the array will be randomly chosen. ================================================================================================================== Note: To use the reference value without any distribution, then write as input in the excel file in the tab "MCS": Columns: PARAM: "parameter name", DEFAULT_SETTING: "1", DIST: "normal", REL_SD: "0". This will make the code to choose the reference value as defined for the model without MCS. """ dist, rel_sd, rel_min, rel_max, array = list[0], list[1], list[2], list[3], list[4] if dist == "normal": value = np.random.normal(reference, rel_sd * reference, 1)[ 0] # mean, standard deviation, generate 1 value at the time elif dist == "triangular": value = np.random.triangular((1 + rel_min) * reference, reference, (1 + rel_max) * reference, 1)[ 0] # minimum value, mode, maximum value, generate 1 value at the time elif dist == "uniform": value = np.random.uniform((1 + rel_min) * reference, (1 + rel_max) * reference, 1)[ 0] # minimum value, maximum value, generate 1 value at the time elif dist == "choice": if len(array) > 1: value = np.random.choice(array) else: logging.error("ERROR: Review MCS_df array column. Expected length of array: larger than 1, but is: 0 or 1") else: logging.error("ERROR: Select an available distribution, review input data and/or add default input data for this parameter.") return # This if condition prevents input errors caused by negative values for the parameters if value >= 0: return value else: return 0 def saveResultsTemporary(dataframe, model_name, scenario): # Activate variable names in "var_dict" to be included in the results, # or comment out all redundant variables. df = dataframe var_dict = { ######## Demands ############# #"RateOfDemand": ["r", "l", "f", "y"], "Demand": ["r", "l", "f", "y"], ######## Storage ############# #"RateOfStorageCharge": ["r", "s", "ls", "ld", "lh", "y"], #"RateOfStorageDischarge": ["r", "s", "ls", "ld", "lh", "y"], #"NetChargeWithinYear": ["r", "s", "ls", "ld", "lh", "y"], #"NetChargeWithinDay": ["r", "s", "ls", "ld", "lh", "y"], #"StorageLevelYearStart": ["r", "s", "y"], #"StorageLevelYearFinish": ["r", "s", "y"], #"StorageLevelSeasonStart": ["r", "s", "ls", "y"], #"StorageLevelDayTypeStart": ["r", "s", "ls", "ld", "y"], #"StorageLevelDayTypeFinish": ["r", "s", "ls", "ld", "y"], #"StorageLowerLimit": ["r", "s", "y"], #"StorageUpperLimit": ["r", "s", "y"], #"AccumulatedNewStorageCapacity": ["r", "s", "y"], #"NewStorageCapacity": ["r", "s", "y"], #"CapitalInvestmentStorage": ["r", "s", "y"], #"DiscountedCapitalInvestmentStorage": ["r", "s", "y"], #"SalvageValueStorage": ["r", "s", "y"], #"DiscountedSalvageValueStorage": ["r", "s", "y"], #"TotalDiscountedStorageCost": ["r", "s", "y"], ######### Capacity Variables ############# #"NumberOfNewTechnologyUnits": ["r", "t", "y"], "NewCapacity": ["r", "t", "y"], #"AccumulatedNewCapacity": ["r", "t", "y"], "TotalCapacityAnnual": ["r", "t", "y"], ######### Activity Variables ############# #"RateOfActivity": ["r", "l", "t", "m", "y"], #"RateOfTotalActivity": ["r", "t", "l", "y"], #"TotalTechnologyAnnualActivity": ["r", "t", "y"], #"TotalAnnualTechnologyActivityByMode": ["r", "t", "m", "y"], #"TotalTechnologyModelPeriodActivity": ["r", "t"], #"RateOfProductionByTechnologyByMode": ["r", "l", "t", "m", "f", "y"], #"RateOfProductionByTechnology": ["r", "l", "t", "f", "y"], #"ProductionByTechnology": ["r", "l", "t", "f", "y"], #"ProductionByTechnologyAnnual": ["r", "t", "f", "y"], #"RateOfProduction": ["r", "l", "f", "y"], #"Production": ["r", "l", "f", "y"], #"RateOfUseByTechnologyByMode": ["r", "l", "t", "m", "f", "y"], #"RateOfUseByTechnology": ["r", "l", "t", "f", "y"], #"UseByTechnologyAnnual": ["r", "t", "f", "y"], #"RateOfUse": ["r", "l", "f", "y"], #"UseByTechnology": ["r", "l", "t", "f", "y"], #"Use": ["r", "l", "f", "y"], #"Trade": ["r", "rr", "l", "f", "y"], #"TradeAnnual": ["r", "rr", "f", "y"], #"ProductionAnnual": ["r", "f", "y"], "UseAnnual": ["r", "f", "y"], ######### Costing Variables ############# "CapitalInvestment": ["r", "t", "y"], #"DiscountedCapitalInvestment": ["r", "t", "y"], #"SalvageValue": ["r", "t", "y"], #"DiscountedSalvageValue": ["r", "t", "y"], #"OperatingCost": ["r", "t", "y"], #"DiscountedOperatingCost": ["r", "t", "y"], #"AnnualVariableOperatingCost": ["r", "t", "y"], #"AnnualFixedOperatingCost": ["r", "t", "y"], #"TotalDiscountedCostByTechnology": ["r", "t", "y"], #"TotalDiscountedCost": ["r", "y"], #"ModelPeriodCostByRegion": ["r"], ######### Reserve Margin ############# #"TotalCapacityInReserveMargin": ["r", "y"], #"DemandNeedingReserveMargin": ["r", "l", "y"], ######### RE Gen Target ############# #"TotalREProductionAnnual": ["r", "y"], #"RETotalProductionOfTargetFuelAnnual": ["r", "y"], ######### Emissions ############# #"AnnualTechnologyEmissionByMode": ["r", "t", "e", "m", "y"], #"AnnualTechnologyEmission": ["r", "t", "e", "y"], #"AnnualTechnologyEmissionPenaltyByEmission": ["r", "t", "e", "y"], #"AnnualTechnologyEmissionsPenalty": ["r", "t", "y"], #"DiscountedTechnologyEmissionsPenalty": ["r", "t", "y"], "AnnualEmissions": ["r", "e", "y"], "ModelPeriodEmissions": ["r", "e"] } # Objective value ("cost") temp_df = pd.DataFrame(columns=[ 'SCENARIO', 'VAR_NAME', 'VAR_VALUE', 'REGION', 'REGION2', 'DAYTYPE', 'EMISSION', 'FUEL', 'DAILYTIMEBRACKET', 'SEASON', 'TIMESLICE', 'MODE_OF_OPERATION', 'STORAGE', 'TECHNOLOGY', 'YEAR', 'FLEXIBLEDEMANDTYPE']) temp_df.at[0, 'SCENARIO'] = scenario temp_df.at[0, 'VAR_NAME'] = "cost" temp_df.at[0, 'VAR_VALUE'] = model_name.objective.value() temp_df.at[0, 'REGION'] = " " temp_df.at[0, 'REGION2'] = " " temp_df.at[0, 'DAYTYPE'] = " " temp_df.at[0, 'EMISSION'] = " " temp_df.at[0, 'FUEL'] = " " temp_df.at[0, 'DAILYTIMEBRACKET'] = " " temp_df.at[0, 'SEASON'] = " " temp_df.at[0, 'TIMESLICE'] = " " temp_df.at[0, 'MODE_OF_OPERATION'] = " " temp_df.at[0, 'STORAGE'] = " " temp_df.at[0, 'TECHNOLOGY'] = " " temp_df.at[0, 'YEAR'] = " " temp_df.at[0, 'FLEXIBLEDEMANDTYPE'] = " " df = pd.concat([df, temp_df]) # Variables values (only variables that are included in var_dict) selected_variables = [variable for key in var_dict.keys() for variable in model_name.variables() if key == variable.name.split("_")[0]] for var in selected_variables: # Temporal dataframe in loop temp_df = pd.DataFrame(columns=[ 'SCENARIO', 'VAR_NAME', 'VAR_VALUE', 'REGION', 'REGION2', 'DAYTYPE', 'EMISSION', 'FUEL', 'DAILYTIMEBRACKET', 'SEASON', 'TIMESLICE', 'MODE_OF_OPERATION', 'STORAGE', 'TECHNOLOGY', 'YEAR', 'FLEXIBLEDEMANDTYPE']) # Variable name var_name = var.name.split("_")[0] # Variable indices var_concrete_indices_list = var.name.split("_")[1:] # Variable abstract indices var_abstract_indices_list = var_dict[var_name] # Dictionary abstract_dict = {key: "" for key in ["r", "rr", "ld", "e", "f", "lh", "ls", "l", "m", "s", "t", "y", "fdt"]} # default value: " " concrete_dict = {key: value for key, value in zip(var_abstract_indices_list, var_concrete_indices_list)} data_dict = {**abstract_dict, **concrete_dict} # Merge dictionaries # Write data to temporary dataframe temp_df.at[0, 'SCENARIO'] = scenario temp_df.at[0, 'VAR_NAME'] = var.name.split("_")[0] temp_df.at[0, 'VAR_VALUE'] = var.varValue temp_df.at[0, 'REGION'] = data_dict["r"] temp_df.at[0, 'REGION2'] = data_dict["rr"] temp_df.at[0, 'DAYTYPE'] = data_dict["ld"] temp_df.at[0, 'EMISSION'] = data_dict["e"] temp_df.at[0, 'FUEL'] = data_dict["f"] temp_df.at[0, 'DAILYTIMEBRACKET'] = data_dict["lh"] temp_df.at[0, 'SEASON'] = data_dict["ls"] temp_df.at[0, 'TIMESLICE'] = data_dict["l"] temp_df.at[0, 'MODE_OF_OPERATION'] = data_dict["m"] temp_df.at[0, 'STORAGE'] = data_dict["s"] temp_df.at[0, 'TECHNOLOGY'] = data_dict["t"] temp_df.at[0, 'YEAR'] = data_dict["y"] temp_df.at[0, 'FLEXIBLEDEMANDTYPE'] = data_dict["fdt"] df = pd.concat([df, temp_df]) return df def saveResults(dataframe, fileDir, fileName): """ This function saves all results to an Excel file. """ _df = dataframe # Shorten abstract variable names to keep Excel worksheet name limit of 31 characters _df['VAR_NAME'].replace( regex={'Total': 'Tot', 'Annual': 'Ann', 'Technology': 'Tech', 'Discounted': 'Disc', 'Production': 'Prod'}, inplace=True) name_list = _df['VAR_NAME'].unique() dataframe_list = [_df[_df['VAR_NAME'] == str(name)] for name in name_list] if not os.path.exists(fileDir): os.makedirs(fileDir) writer = pd.ExcelWriter(os.path.join(fileDir, fileName)) for d, name in zip(dataframe_list, name_list): d.to_excel(writer, sheet_name=name, index=False) writer.save() return # ---------------------------------------------------------------------------------------------------------------------- # LOAD DATA # ---------------------------------------------------------------------------------------------------------------------- inputPath = os.path.join(inputDir, inputFile) sets_df, p_df, p_default_df, mcs_df, mcs_num = loadData(inputPath, sheetSets, sheetParams, sheetParamsDefault, sheetMcs, sheetMcsNum) mcs_parameters = mcs_df['PARAM'].unique() # list of parameters to be included in monte carlo simulation logging.info("{}\tData is loaded.".format(dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) # ---------------------------------------------------------------------------------------------------------------------- # SETS # ---------------------------------------------------------------------------------------------------------------------- REGION = [r for r in sets_df['REGION'] if r != 'nan'] REGION2 = [rr for rr in sets_df['REGION2'] if rr != 'nan'] DAYTYPE = [str(int(float(ld))) for ld in sets_df['DAYTYPE'] if ld != 'nan'] EMISSION = [e for e in sets_df['EMISSION'] if e != 'nan'] FUEL = [f for f in sets_df['FUEL'] if f != 'nan'] DAILYTIMEBRACKET = [str(int(float(lh))) for lh in sets_df['DAILYTIMEBRACKET'] if lh != 'nan'] SEASON = [str(int(float(ls))) for ls in sets_df['SEASON'] if ls != 'nan'] TIMESLICE = [l for l in sets_df['TIMESLICE'] if l != 'nan'] MODE_OF_OPERATION = [str(int(float(m))) for m in sets_df['MODE_OF_OPERATION'] if m != 'nan'] STORAGE = [s for s in sets_df['STORAGE'] if s != 'nan'] TECHNOLOGY = [t for t in sets_df['TECHNOLOGY'] if t != 'nan'] YEAR = [str(int(float(y))) for y in sets_df['YEAR'] if y != 'nan'] FLEXIBLEDEMANDTYPE = [fdt for fdt in sets_df['FLEXIBLEDEMANDTYPE'] if fdt != 'nan'] logging.info("{}\tSets are created.".format(dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) # ---------------------------------------------------------------------------------------------------------------------- # PARAMETERS AND DATA # ---------------------------------------------------------------------------------------------------------------------- ######## Global ######### # YearSplit YearSplit = p_df[p_df['PARAM'] == "YearSplit"][['TIMESLICE', 'YEAR', 'VALUE']].groupby('TIMESLICE')\ .apply(lambda df: df.set_index('YEAR')['VALUE'].to_dict()).to_dict() # DiscountRate DiscountRate_default_value = p_default_df[p_default_df['PARAM'] == "DiscountRate"].VALUE.iat[0] DiscountRate_specified = tuple([(str(r)) for r in p_df[p_df['PARAM'] == "DiscountRate"].REGION]) DiscountRate = {str(r): p_df[(p_df['PARAM'] == "DiscountRate") & (p_df['REGION'] == r)].VALUE.iat[0]\ if (str(r)) in DiscountRate_specified else DiscountRate_default_value for r in REGION} # DaySplit DaySplit_default_value = p_default_df[p_default_df['PARAM'] == "DaySplit"].VALUE.iat[0] DaySplit_specified = tuple([(str(lh), str(y)) for lh, y in zip( p_df[p_df['PARAM'] == "DaySplit"].DAILYTIMEBRACKET, p_df[p_df['PARAM'] == "DaySplit"].YEAR)]) DaySplit = {str(lh): {str(y): p_df[(p_df['PARAM'] == "DaySplit") & (p_df['DAILYTIMEBRACKET'] == lh) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(lh), str(y)) in DaySplit_specified else DaySplit_default_value for y in YEAR} for lh in DAILYTIMEBRACKET} # Conversionls Conversionls_default_value = p_default_df[p_default_df['PARAM'] == "Conversionls"].VALUE.iat[0] Conversionls_specified = tuple([(str(l), str(ls)) for l, ls in zip(p_df[p_df['PARAM'] == "Conversionls"].TIMESLICE, p_df[p_df['PARAM'] == "Conversionls"].SEASON)]) Conversionls = {str(l): {str(ls): p_df[(p_df['PARAM'] == "Conversionls") & (p_df['TIMESLICE'] == l) & (p_df['SEASON'] == ls)].VALUE.iat[0] if (str(l), str(ls)) in Conversionls_specified else Conversionls_default_value for ls in SEASON} for l in TIMESLICE} # Conversionld Conversionld_default_value = p_default_df[p_default_df['PARAM'] == "Conversionld"].VALUE.iat[0] Conversionld_specified = tuple([(str(l), str(ld)) for l, ld in zip(p_df[p_df['PARAM'] == "Conversionld"].TIMESLICE, p_df[p_df['PARAM'] == "Conversionld"].DAYTYPE)]) Conversionld = {str(l): {str(ld): p_df[(p_df['PARAM'] == "Conversionld") & (p_df['TIMESLICE'] == l) & (p_df['DAYTYPE'] == ld)].VALUE.iat[0] if (str(l), str(ld)) in Conversionld_specified else Conversionld_default_value for ld in DAYTYPE} for l in TIMESLICE} # Conversionlh Conversionlh_default_value = p_default_df[p_default_df['PARAM'] == "Conversionlh"].VALUE.iat[0] Conversionlh_specified = tuple([(str(l), str(lh)) for l, lh in zip(p_df[p_df['PARAM'] == "Conversionlh"].TIMESLICE, p_df[p_df['PARAM'] == "Conversionlh"].DAILYTIMEBRACKET)]) Conversionlh = {str(l): {str(lh): p_df[(p_df['PARAM'] == "Conversionlh") & (p_df['TIMESLICE'] == l) & (p_df['DAILYTIMEBRACKET'] == lh)].VALUE.iat[0] if (str(l), str(lh)) in Conversionlh_specified else Conversionlh_default_value for lh in DAILYTIMEBRACKET} for l in TIMESLICE} # DaysInDayType DaysInDayType_default_value = p_default_df[p_default_df['PARAM'] == "DaysInDayType"].VALUE.iat[0] DaysInDayType_specified = tuple([(str(r),str(f),str(y)) for r, f, y in zip(p_df[p_df['PARAM'] == "DaysInDayType"].SEASON, p_df[p_df['PARAM'] == "DaysInDayType"].DAYTYPE, p_df[p_df['PARAM'] == "DaysInDayType"].YEAR)]) DaysInDayType = {str(ls): {str(ld): {str(y): p_df[(p_df['PARAM'] == "DaysInDayType") & (p_df['SEASON'] == ls) & (p_df['DAYTYPE'] == ld) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(ls),str(ld),str(y)) in DaysInDayType_specified else DaysInDayType_default_value for y in YEAR} for ld in DAYTYPE} for ls in SEASON} # TradeRoute TradeRoute_default_value = p_default_df[p_default_df['PARAM'] == "TradeRoute"].VALUE.iat[0] TradeRoute_specified = tuple([(str(r),str(rr),str(f),str(y)) for r, rr, f, y in zip(p_df[p_df['PARAM'] == "TradeRoute"].REGION, p_df[p_df['PARAM'] == "TradeRoute"].REGION2, p_df[p_df['PARAM'] == "TradeRoute"].FUEL, p_df[p_df['PARAM'] == "TradeRoute"].YEAR)]) TradeRoute = {str(r): {str(rr): {str(f): {str(y): p_df[(p_df['PARAM'] == "TradeRoute") & (p_df['REGION'] == r) & (p_df['REGION2'] == rr) & (p_df['FUEL'] == f) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(rr),str(f),str(y)) in TradeRoute_specified else TradeRoute_default_value for y in YEAR} for f in FUEL} for rr in REGION2} for r in REGION} # DepreciationMethod DepreciationMethod_default_value = p_default_df[p_default_df['PARAM'] == "DepreciationMethod"].VALUE.iat[0] DepreciationMethod_specified = tuple([(str(r)) for r in p_df[p_df['PARAM'] == "DepreciationMethod"].REGION]) DepreciationMethod = {str(r): p_df[(p_df['PARAM'] == "DepreciationMethod") & (p_df['REGION'] == r)].VALUE.iat[0] if (str(r)) in DepreciationMethod_specified else DepreciationMethod_default_value for r in REGION} ######## Demands ######### # SpecifiedAnnualDemand SpecifiedAnnualDemand_default_value = p_default_df[p_default_df['PARAM'] == "SpecifiedAnnualDemand"].VALUE.iat[0] SpecifiedAnnualDemand_specified = tuple([(str(r),str(f),str(y)) for r, f, y in zip(p_df[p_df['PARAM'] == "SpecifiedAnnualDemand"].REGION, p_df[p_df['PARAM'] == "SpecifiedAnnualDemand"].FUEL, p_df[p_df['PARAM'] == "SpecifiedAnnualDemand"].YEAR)]) SpecifiedAnnualDemand = {str(r): {str(f): {str(y): p_df[(p_df['PARAM'] == "SpecifiedAnnualDemand") & (p_df['REGION'] == r) & (p_df['FUEL'] == f) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(f),str(y)) in SpecifiedAnnualDemand_specified else SpecifiedAnnualDemand_default_value for y in YEAR} for f in FUEL} for r in REGION} # SpecifiedDemandProfile SpecifiedDemandProfile_default_value = p_default_df[p_default_df['PARAM'] == "SpecifiedDemandProfile"].VALUE.iat[0] SpecifiedDemandProfile_specified = tuple([(str(r),str(f),str(l),str(y)) for r, f, l, y in zip(p_df[p_df['PARAM'] == "SpecifiedDemandProfile"].REGION, p_df[p_df['PARAM'] == "SpecifiedDemandProfile"].FUEL, p_df[p_df['PARAM'] == "SpecifiedDemandProfile"].TIMESLICE, p_df[p_df['PARAM'] == "SpecifiedDemandProfile"].YEAR)]) SpecifiedDemandProfile = {str(r): {str(f): {str(l): {str(y): p_df[(p_df['PARAM'] == "SpecifiedDemandProfile") & (p_df['REGION'] == r) & (p_df['FUEL'] == f) & (p_df['TIMESLICE'] == l) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(f),str(l),str(y)) in SpecifiedDemandProfile_specified else SpecifiedDemandProfile_default_value for y in YEAR} for l in TIMESLICE} for f in FUEL} for r in REGION} # AccumulatedAnnualDemand AccumulatedAnnualDemand_default_value = p_default_df[p_default_df['PARAM'] == "AccumulatedAnnualDemand"].VALUE.iat[0] AccumulatedAnnualDemand_specified = tuple([(str(r),str(f),str(y)) for r, f, y in zip(p_df[p_df['PARAM'] == "AccumulatedAnnualDemand"].REGION, p_df[p_df['PARAM'] == "AccumulatedAnnualDemand"].FUEL, p_df[p_df['PARAM'] == "AccumulatedAnnualDemand"].YEAR)]) AccumulatedAnnualDemand = {str(r): {str(f): {str(y): p_df[(p_df['PARAM'] == "AccumulatedAnnualDemand") & (p_df['REGION'] == r) & (p_df['FUEL'] == f) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(f),str(y)) in AccumulatedAnnualDemand_specified else AccumulatedAnnualDemand_default_value for y in YEAR} for f in FUEL} for r in REGION} ######### Performance ######### # CapacityToActivityUnit CapacityToActivityUnit_default_value = p_default_df[p_default_df['PARAM'] == "CapacityToActivityUnit"].VALUE.iat[0] CapacityToActivityUnit_specified = tuple([(str(r), str(t)) for r, t in zip(p_df[p_df['PARAM'] == "CapacityToActivityUnit"].REGION, p_df[p_df['PARAM'] == "CapacityToActivityUnit"].TECHNOLOGY)]) CapacityToActivityUnit = {str(r): {str(t): p_df[(p_df['PARAM'] == "CapacityToActivityUnit") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t)].VALUE.iat[0] if (str(r), str(t)) in CapacityToActivityUnit_specified else CapacityToActivityUnit_default_value for t in TECHNOLOGY} for r in REGION} # TechWithCapacityNeededToMeetPeakTS TechWithCapacityNeededToMeetPeakTS_default_value = p_default_df[p_default_df['PARAM'] == "TechWithCapacityNeededToMeetPeakTS"].VALUE.iat[0] TechWithCapacityNeededToMeetPeakTS_specified = tuple([(str(r), str(t)) for r, t in zip(p_df[p_df['PARAM'] == "TechWithCapacityNeededToMeetPeakTS"].REGION, p_df[p_df['PARAM'] == "TechWithCapacityNeededToMeetPeakTS"].TECHNOLOGY)]) TechWithCapacityNeededToMeetPeakTS = {str(r): {str(t): p_df[(p_df['PARAM'] == "TechWithCapacityNeededToMeetPeakTS") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t)].VALUE.iat[0] if (str(r), str(t)) in TechWithCapacityNeededToMeetPeakTS_specified else TechWithCapacityNeededToMeetPeakTS_default_value for t in TECHNOLOGY} for r in REGION} # CapacityFactor CapacityFactor_default_value = p_default_df[p_default_df['PARAM'] == "CapacityFactor"].VALUE.iat[0] CapacityFactor_specified = tuple([(str(r),str(t),str(l),str(y)) for r, t, l, y in zip(p_df[p_df['PARAM'] == "CapacityFactor"].REGION, p_df[p_df['PARAM'] == "CapacityFactor"].TECHNOLOGY, p_df[p_df['PARAM'] == "CapacityFactor"].TIMESLICE, p_df[p_df['PARAM'] == "CapacityFactor"].YEAR)]) CapacityFactor = {str(r): {str(t): {str(l): {str(y): p_df[(p_df['PARAM'] == "CapacityFactor") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y) & (p_df['TIMESLICE'] == l)].VALUE.iat[0] if (str(r),str(t),str(l),str(y)) in CapacityFactor_specified else CapacityFactor_default_value for y in YEAR} for l in TIMESLICE} for t in TECHNOLOGY} for r in REGION} # AvailabilityFactor AvailabilityFactor_default_value = p_default_df[p_default_df['PARAM'] == "AvailabilityFactor"].VALUE.iat[0] AvailabilityFactor_specified = tuple([(str(r),str(t),str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "AvailabilityFactor"].REGION, p_df[p_df['PARAM'] == "AvailabilityFactor"].TECHNOLOGY, p_df[p_df['PARAM'] == "AvailabilityFactor"].YEAR)]) AvailabilityFactor = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "AvailabilityFactor") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(t),str(y)) in AvailabilityFactor_specified else AvailabilityFactor_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} # OperationalLife OperationalLife_default_value = p_default_df[p_default_df['PARAM'] == "OperationalLife"].VALUE.iat[0] OperationalLife_specified = tuple([(str(r), str(t)) for r, t in zip(p_df[p_df['PARAM'] == "OperationalLife"].REGION, p_df[p_df['PARAM'] == "OperationalLife"].TECHNOLOGY)]) OperationalLife = {str(r): {str(t): p_df[(p_df['PARAM'] == "OperationalLife") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t)].VALUE.iat[0] if (str(r), str(t)) in OperationalLife_specified else OperationalLife_default_value for t in TECHNOLOGY} for r in REGION} # ResidualCapacity ResidualCapacity_default_value = p_default_df[p_default_df['PARAM'] == "ResidualCapacity"].VALUE.iat[0] ResidualCapacity_specified = tuple([(str(r),str(t),str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "ResidualCapacity"].REGION, p_df[p_df['PARAM'] == "ResidualCapacity"].TECHNOLOGY, p_df[p_df['PARAM'] == "ResidualCapacity"].YEAR)]) ResidualCapacity = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "ResidualCapacity") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(t),str(y)) in ResidualCapacity_specified else ResidualCapacity_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} # InputActivityRatio InputActivityRatio_default_value = p_default_df[p_default_df['PARAM'] == "InputActivityRatio"].VALUE.iat[0] InputActivityRatio_specified = tuple([(str(r),str(t),str(f),str(m),str(y)) for r, t, f, m, y in zip(p_df[p_df['PARAM'] == "InputActivityRatio"].REGION, p_df[p_df['PARAM'] == "InputActivityRatio"].TECHNOLOGY, p_df[p_df['PARAM'] == "InputActivityRatio"].FUEL, p_df[p_df['PARAM'] == "InputActivityRatio"].MODE_OF_OPERATION, p_df[p_df['PARAM'] == "InputActivityRatio"].YEAR)]) InputActivityRatio = {str(r): {str(t): {str(f): {str(m): {str(y): p_df[(p_df['PARAM'] == "InputActivityRatio") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['FUEL'] == f) & (p_df['MODE_OF_OPERATION'] == m) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(t),str(f),str(m),str(y)) in InputActivityRatio_specified else InputActivityRatio_default_value for y in YEAR} for m in MODE_OF_OPERATION} for f in FUEL} for t in TECHNOLOGY} for r in REGION} # OutputActivityRatio OutputActivityRatio_default_value = p_default_df[p_default_df['PARAM'] == "OutputActivityRatio"].VALUE.iat[0] OutputActivityRatio_specified = tuple([(str(r),str(t),str(f),str(m),str(y)) for r, t, f, m, y in zip(p_df[p_df['PARAM'] == "OutputActivityRatio"].REGION, p_df[p_df['PARAM'] == "OutputActivityRatio"].TECHNOLOGY, p_df[p_df['PARAM'] == "OutputActivityRatio"].FUEL, p_df[p_df['PARAM'] == "OutputActivityRatio"].MODE_OF_OPERATION, p_df[p_df['PARAM'] == "OutputActivityRatio"].YEAR)]) OutputActivityRatio = {str(r): {str(t): {str(f): {str(m): {str(y): p_df[(p_df['PARAM'] == "OutputActivityRatio") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['FUEL'] == f) & (p_df['MODE_OF_OPERATION'] == m) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(t),str(f),str(m),str(y)) in OutputActivityRatio_specified else OutputActivityRatio_default_value for y in YEAR} for m in MODE_OF_OPERATION} for f in FUEL} for t in TECHNOLOGY} for r in REGION} ######### Technology Costs ######### # CapitalCost CapitalCost_default_value = p_default_df[p_default_df['PARAM'] == "CapitalCost"].VALUE.iat[0] CapitalCost_specified = tuple([(str(r),str(t),str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "CapitalCost"].REGION, p_df[p_df['PARAM'] == "CapitalCost"].TECHNOLOGY, p_df[p_df['PARAM'] == "CapitalCost"].YEAR)]) CapitalCost = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "CapitalCost") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(t),str(y)) in CapitalCost_specified else CapitalCost_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} # VariableCost VariableCost_default_value = p_default_df[p_default_df['PARAM'] == "VariableCost"].VALUE.iat[0] VariableCost_specified = tuple([(str(r),str(t),str(m),str(y)) for r, t, m, y in zip(p_df[p_df['PARAM'] == "VariableCost"].REGION, p_df[p_df['PARAM'] == "VariableCost"].TECHNOLOGY, p_df[p_df['PARAM'] == "VariableCost"].MODE_OF_OPERATION, p_df[p_df['PARAM'] == "VariableCost"].YEAR)]) VariableCost = {str(r): {str(t): {str(m): {str(y): p_df[(p_df['PARAM'] == "VariableCost") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['MODE_OF_OPERATION'] == m) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(t),str(m),str(y)) in VariableCost_specified else VariableCost_default_value for y in YEAR} for m in MODE_OF_OPERATION} for t in TECHNOLOGY} for r in REGION} # FixedCost FixedCost_default_value = p_default_df[p_default_df['PARAM'] == "FixedCost"].VALUE.iat[0] FixedCost_specified = tuple([(str(r),str(t),str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "FixedCost"].REGION, p_df[p_df['PARAM'] == "FixedCost"].TECHNOLOGY, p_df[p_df['PARAM'] == "FixedCost"].YEAR)]) FixedCost = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "FixedCost") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(t),str(y)) in FixedCost_specified else FixedCost_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} ######### Storage ######### # TechnologyToStorage TechnologyToStorage_default_value = p_default_df[p_default_df['PARAM'] == "TechnologyToStorage"].VALUE.iat[0] TechnologyToStorage_specified = tuple([(str(r),str(t),str(s),str(m)) for r, t, s, m in zip(p_df[p_df['PARAM'] == "TechnologyToStorage"].REGION, p_df[p_df['PARAM'] == "TechnologyToStorage"].TECHNOLOGY, p_df[p_df['PARAM'] == "TechnologyToStorage"].STORAGE, p_df[p_df['PARAM'] == "TechnologyToStorage"].MODE_OF_OPERATION)]) TechnologyToStorage = {str(r): {str(t): {str(s): {str(m): p_df[(p_df['PARAM'] == "TechnologyToStorage") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['STORAGE'] == s) & (p_df['MODE_OF_OPERATION'] == m)].VALUE.iat[0] if (str(r),str(t),str(s),str(m)) in TechnologyToStorage_specified else TechnologyToStorage_default_value for m in MODE_OF_OPERATION} for s in STORAGE} for t in TECHNOLOGY} for r in REGION} # TechnologyFromStorage TechnologyFromStorage_default_value = p_default_df[p_default_df['PARAM'] == "TechnologyFromStorage"].VALUE.iat[0] TechnologyFromStorage_specified = tuple([(str(r),str(t),str(s),str(m)) for r, t, s, m in zip(p_df[p_df['PARAM'] == "TechnologyFromStorage"].REGION, p_df[p_df['PARAM'] == "TechnologyFromStorage"].TECHNOLOGY, p_df[p_df['PARAM'] == "TechnologyFromStorage"].STORAGE, p_df[p_df['PARAM'] == "TechnologyFromStorage"].MODE_OF_OPERATION)]) TechnologyFromStorage = {str(r): {str(t): {str(s): {str(m): p_df[(p_df['PARAM'] == "TechnologyFromStorage") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['STORAGE'] == s) & (p_df['MODE_OF_OPERATION'] == m)].VALUE.iat[0] if (str(r),str(t),str(s),str(m)) in TechnologyFromStorage_specified else TechnologyFromStorage_default_value for m in MODE_OF_OPERATION} for s in STORAGE} for t in TECHNOLOGY} for r in REGION} # StorageLevelStart StorageLevelStart_default_value = p_default_df[p_default_df['PARAM'] == "StorageLevelStart"].VALUE.iat[0] StorageLevelStart_specified = tuple([(str(r), str(s)) for r, s in zip(p_df[p_df['PARAM'] == "StorageLevelStart"].REGION, p_df[p_df['PARAM'] == "StorageLevelStart"].STORAGE)]) StorageLevelStart = {str(r): {str(s): p_df[(p_df['PARAM'] == "StorageLevelStart") & (p_df['REGION'] == r) & (p_df['STORAGE'] == s)].VALUE.iat[0] if (str(r), str(s)) in StorageLevelStart_specified else StorageLevelStart_default_value for s in STORAGE} for r in REGION} # StorageMaxChargeRate StorageMaxChargeRate_default_value = p_default_df[p_default_df['PARAM'] == "StorageMaxChargeRate"].VALUE.iat[0] StorageMaxChargeRate_specified = tuple([(str(r), str(s)) for r, s in zip(p_df[p_df['PARAM'] == "StorageMaxChargeRate"].REGION, p_df[p_df['PARAM'] == "StorageMaxChargeRate"].STORAGE)]) StorageMaxChargeRate = {str(r): {str(s): p_df[(p_df['PARAM'] == "StorageMaxChargeRate") & (p_df['REGION'] == r) & (p_df['STORAGE'] == s)].VALUE.iat[0] if (str(r), str(s)) in StorageMaxChargeRate_specified else StorageMaxChargeRate_default_value for s in STORAGE} for r in REGION} # StorageMaxDischargeRate StorageMaxDischargeRate_default_value = p_default_df[p_default_df['PARAM'] == "StorageMaxDischargeRate"].VALUE.iat[0] StorageMaxDischargeRate_specified = tuple([(str(r), str(s)) for r, s in zip(p_df[p_df['PARAM'] == "StorageMaxDischargeRate"].REGION, p_df[p_df['PARAM'] == "StorageMaxDischargeRate"].STORAGE)]) StorageMaxDischargeRate = {str(r): {str(s): p_df[(p_df['PARAM'] == "StorageMaxDischargeRate") & (p_df['REGION'] == r) & (p_df['STORAGE'] == s)].VALUE.iat[0] if (str(r), str(s)) in StorageMaxDischargeRate_specified else StorageMaxDischargeRate_default_value for s in STORAGE} for r in REGION} # MinStorageCharge MinStorageCharge_default_value = p_default_df[p_default_df['PARAM'] == "MinStorageCharge"].VALUE.iat[0] MinStorageCharge_specified = tuple([(str(r), str(s), str(y)) for r, s, y in zip(p_df[p_df['PARAM'] == "MinStorageCharge"].REGION, p_df[p_df['PARAM'] == "MinStorageCharge"].STORAGE, p_df[p_df['PARAM'] == "MinStorageCharge"].YEAR)]) MinStorageCharge = {str(r): {str(s): {str(y): p_df[(p_df['PARAM'] == "MinStorageCharge") & (p_df['REGION'] == r) & (p_df['STORAGE'] == s) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(s), str(y)) in MinStorageCharge_specified else MinStorageCharge_default_value for y in YEAR} for s in STORAGE} for r in REGION} # OperationalLifeStorage OperationalLifeStorage_default_value = p_default_df[p_default_df['PARAM'] == "OperationalLifeStorage"].VALUE.iat[0] OperationalLifeStorage_specified = tuple([(str(r), str(s)) for r, s in zip(p_df[p_df['PARAM'] == "OperationalLifeStorage"].REGION, p_df[p_df['PARAM'] == "OperationalLifeStorage"].STORAGE)]) OperationalLifeStorage = {str(r): {str(s): p_df[(p_df['PARAM'] == "OperationalLifeStorage") & (p_df['REGION'] == r) & (p_df['STORAGE'] == s)].VALUE.iat[0] if (str(r), str(s)) in OperationalLifeStorage_specified else OperationalLifeStorage_default_value for s in STORAGE} for r in REGION} # CapitalCostStorage CapitalCostStorage_default_value = p_default_df[p_default_df['PARAM'] == "CapitalCostStorage"].VALUE.iat[0] CapitalCostStorage_specified = tuple([(str(r), str(s), str(y)) for r, s, y in zip(p_df[p_df['PARAM'] == "CapitalCostStorage"].REGION, p_df[p_df['PARAM'] == "CapitalCostStorage"].STORAGE, p_df[p_df['PARAM'] == "CapitalCostStorage"].YEAR)]) CapitalCostStorage = {str(r): {str(s): {str(y): p_df[(p_df['PARAM'] == "CapitalCostStorage") & (p_df['REGION'] == r) & (p_df['STORAGE'] == s) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(s), str(y)) in CapitalCostStorage_specified else CapitalCostStorage_default_value for y in YEAR} for s in STORAGE} for r in REGION} # ResidualStorageCapacity ResidualStorageCapacity_default_value = p_default_df[p_default_df['PARAM'] == "ResidualStorageCapacity"].VALUE.iat[0] ResidualStorageCapacity_specified = tuple([(str(r), str(s), str(y)) for r, s, y in zip(p_df[p_df['PARAM'] == "ResidualStorageCapacity"].REGION, p_df[p_df['PARAM'] == "ResidualStorageCapacity"].STORAGE, p_df[p_df['PARAM'] == "ResidualStorageCapacity"].YEAR)]) ResidualStorageCapacity = {str(r): {str(s): {str(y): p_df[(p_df['PARAM'] == "ResidualStorageCapacity") & (p_df['REGION'] == r) & (p_df['STORAGE'] == s) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(s), str(y)) in ResidualStorageCapacity_specified else ResidualStorageCapacity_default_value for y in YEAR} for s in STORAGE} for r in REGION} ######### Capacity Constraints ######### # CapacityOfOneTechnologyUnit CapacityOfOneTechnologyUnit_default_value = p_default_df[p_default_df['PARAM'] == "CapacityOfOneTechnologyUnit"].VALUE.iat[0] CapacityOfOneTechnologyUnit_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "CapacityOfOneTechnologyUnit"].REGION, p_df[p_df['PARAM'] == "CapacityOfOneTechnologyUnit"].TECHNOLOGY, p_df[p_df['PARAM'] == "CapacityOfOneTechnologyUnit"].YEAR)]) CapacityOfOneTechnologyUnit = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "CapacityOfOneTechnologyUnit") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(t), str(y)) in CapacityOfOneTechnologyUnit_specified else CapacityOfOneTechnologyUnit_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} # TotalAnnualMaxCapacity TotalAnnualMaxCapacity_default_value = p_default_df[p_default_df['PARAM'] == "TotalAnnualMaxCapacity"].VALUE.iat[0] TotalAnnualMaxCapacity_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "TotalAnnualMaxCapacity"].REGION, p_df[p_df['PARAM'] == "TotalAnnualMaxCapacity"].TECHNOLOGY, p_df[p_df['PARAM'] == "TotalAnnualMaxCapacity"].YEAR)]) TotalAnnualMaxCapacity = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "TotalAnnualMaxCapacity") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(t), str(y)) in TotalAnnualMaxCapacity_specified else TotalAnnualMaxCapacity_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} # TotalAnnualMinCapacity TotalAnnualMinCapacity_default_value = p_default_df[p_default_df['PARAM'] == "TotalAnnualMinCapacity"].VALUE.iat[0] TotalAnnualMinCapacity_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "TotalAnnualMinCapacity"].REGION, p_df[p_df['PARAM'] == "TotalAnnualMinCapacity"].TECHNOLOGY, p_df[p_df['PARAM'] == "TotalAnnualMinCapacity"].YEAR)]) TotalAnnualMinCapacity = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "TotalAnnualMinCapacity") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(t), str(y)) in TotalAnnualMinCapacity_specified else TotalAnnualMinCapacity_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} ######### Investment Constraints ######### # TotalAnnualMaxCapacityInvestment TotalAnnualMaxCapacityInvestment_default_value = p_default_df[p_default_df['PARAM'] == "TotalAnnualMaxCapacityInvestment"].VALUE.iat[0] TotalAnnualMaxCapacityInvestment_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "TotalAnnualMaxCapacityInvestment"].REGION, p_df[p_df['PARAM'] == "TotalAnnualMaxCapacityInvestment"].TECHNOLOGY, p_df[p_df['PARAM'] == "TotalAnnualMaxCapacityInvestment"].YEAR)]) TotalAnnualMaxCapacityInvestment = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "TotalAnnualMaxCapacityInvestment") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(t), str(y)) in TotalAnnualMaxCapacityInvestment_specified else TotalAnnualMaxCapacityInvestment_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} # TotalAnnualMinCapacityInvestment TotalAnnualMinCapacityInvestment_default_value = p_default_df[p_default_df['PARAM'] == "TotalAnnualMinCapacityInvestment"].VALUE.iat[0] TotalAnnualMinCapacityInvestment_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "TotalAnnualMinCapacityInvestment"].REGION, p_df[p_df['PARAM'] == "TotalAnnualMinCapacityInvestment"].TECHNOLOGY, p_df[p_df['PARAM'] == "TotalAnnualMinCapacityInvestment"].YEAR)]) TotalAnnualMinCapacityInvestment = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "TotalAnnualMinCapacityInvestment") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(t), str(y)) in TotalAnnualMinCapacityInvestment_specified else TotalAnnualMinCapacityInvestment_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} ######### Activity Constraints ######### # TotalTechnologyAnnualActivityUpperLimit TotalTechnologyAnnualActivityUpperLimit_default_value = p_default_df[p_default_df['PARAM'] == "TotalTechnologyAnnualActivityUpperLimit"].VALUE.iat[0] TotalTechnologyAnnualActivityUpperLimit_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "TotalTechnologyAnnualActivityUpperLimit"].REGION, p_df[p_df['PARAM'] == "TotalTechnologyAnnualActivityUpperLimit"].TECHNOLOGY, p_df[p_df['PARAM'] == "TotalTechnologyAnnualActivityUpperLimit"].YEAR)]) TotalTechnologyAnnualActivityUpperLimit = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "TotalTechnologyAnnualActivityUpperLimit") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(t), str(y)) in TotalTechnologyAnnualActivityUpperLimit_specified else TotalTechnologyAnnualActivityUpperLimit_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} # TotalTechnologyAnnualActivityLowerLimit TotalTechnologyAnnualActivityLowerLimit_default_value = p_default_df[p_default_df['PARAM'] == "TotalTechnologyAnnualActivityLowerLimit"].VALUE.iat[0] TotalTechnologyAnnualActivityLowerLimit_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "TotalTechnologyAnnualActivityLowerLimit"].REGION, p_df[p_df['PARAM'] == "TotalTechnologyAnnualActivityLowerLimit"].TECHNOLOGY, p_df[p_df['PARAM'] == "TotalTechnologyAnnualActivityLowerLimit"].YEAR)]) TotalTechnologyAnnualActivityLowerLimit = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "TotalTechnologyAnnualActivityLowerLimit") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(t), str(y)) in TotalTechnologyAnnualActivityLowerLimit_specified else TotalTechnologyAnnualActivityLowerLimit_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} # TotalTechnologyModelPeriodActivityUpperLimit TotalTechnologyModelPeriodActivityUpperLimit_default_value = p_default_df[p_default_df['PARAM'] == "TotalTechnologyModelPeriodActivityUpperLimit"].VALUE.iat[0] TotalTechnologyModelPeriodActivityUpperLimit_specified = tuple([(str(r), str(t)) for r, t in zip(p_df[p_df['PARAM'] == "TotalTechnologyModelPeriodActivityUpperLimit"].REGION, p_df[p_df['PARAM'] == "TotalTechnologyModelPeriodActivityUpperLimit"].TECHNOLOGY)]) TotalTechnologyModelPeriodActivityUpperLimit = {str(r): {str(t): p_df[(p_df['PARAM'] == "TotalTechnologyModelPeriodActivityUpperLimit") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t)].VALUE.iat[0] if (str(r), str(t)) in TotalTechnologyModelPeriodActivityUpperLimit_specified else TotalTechnologyModelPeriodActivityUpperLimit_default_value for t in TECHNOLOGY} for r in REGION} # TotalTechnologyModelPeriodActivityLowerLimit TotalTechnologyModelPeriodActivityLowerLimit_default_value = p_default_df[p_default_df['PARAM'] == "TotalTechnologyModelPeriodActivityLowerLimit"].VALUE.iat[0] TotalTechnologyModelPeriodActivityLowerLimit_specified = tuple([(str(r), str(t)) for r, t in zip(p_df[p_df['PARAM'] == "TotalTechnologyModelPeriodActivityLowerLimit"].REGION, p_df[p_df['PARAM'] == "TotalTechnologyModelPeriodActivityLowerLimit"].TECHNOLOGY)]) TotalTechnologyModelPeriodActivityLowerLimit = {str(r): {str(t): p_df[(p_df['PARAM'] == "TotalTechnologyModelPeriodActivityLowerLimit") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t)].VALUE.iat[0] if (str(r), str(t)) in TotalTechnologyModelPeriodActivityLowerLimit_specified else TotalTechnologyModelPeriodActivityLowerLimit_default_value for t in TECHNOLOGY} for r in REGION} ######### Reserve Margin ######### # ReserveMarginTagTechnology ReserveMarginTagTechnology_default_value = p_default_df[p_default_df['PARAM'] == "ReserveMarginTagTechnology"].VALUE.iat[0] ReserveMarginTagTechnology_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "ReserveMarginTagTechnology"].REGION, p_df[p_df['PARAM'] == "ReserveMarginTagTechnology"].TECHNOLOGY, p_df[p_df['PARAM'] == "ReserveMarginTagTechnology"].YEAR)]) ReserveMarginTagTechnology = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "ReserveMarginTagTechnology") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(t), str(y)) in ReserveMarginTagTechnology_specified else ReserveMarginTagTechnology_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} # ReserveMarginTagFuel ReserveMarginTagFuel_default_value = p_default_df[p_default_df['PARAM'] == "ReserveMarginTagFuel"].VALUE.iat[0] ReserveMarginTagFuel_specified = tuple([(str(r), str(f), str(y)) for r, f, y in zip(p_df[p_df['PARAM'] == "ReserveMarginTagFuel"].REGION, p_df[p_df['PARAM'] == "ReserveMarginTagFuel"].FUEL, p_df[p_df['PARAM'] == "ReserveMarginTagFuel"].YEAR)]) ReserveMarginTagFuel = {str(r): {str(f): {str(y): p_df[(p_df['PARAM'] == "ReserveMarginTagFuel") & (p_df['REGION'] == r) & (p_df['FUEL'] == f) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(f), str(y)) in ReserveMarginTagFuel_specified else ReserveMarginTagFuel_default_value for y in YEAR} for f in FUEL} for r in REGION} # ReserveMargin ReserveMargin_default_value = p_default_df[p_default_df['PARAM'] == "ReserveMargin"].VALUE.iat[0] ReserveMargin_specified = tuple([(str(r), str(y)) for r, y in zip(p_df[p_df['PARAM'] == "ReserveMargin"].REGION, p_df[p_df['PARAM'] == "ReserveMargin"].YEAR)]) ReserveMargin = {str(r): {str(y): p_df[(p_df['PARAM'] == "ReserveMargin") & (p_df['REGION'] == r) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(y)) in ReserveMargin_specified else ReserveMargin_default_value for y in YEAR} for r in REGION} ######### RE Generation Target ######### # RETagTechnology RETagTechnology_default_value = p_default_df[p_default_df['PARAM'] == "RETagTechnology"].VALUE.iat[0] RETagTechnology_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(p_df[p_df['PARAM'] == "RETagTechnology"].REGION, p_df[p_df['PARAM'] == "RETagTechnology"].TECHNOLOGY, p_df[p_df['PARAM'] == "RETagTechnology"].YEAR)]) RETagTechnology = {str(r): {str(t): {str(y): p_df[(p_df['PARAM'] == "RETagTechnology") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(t), str(y)) in RETagTechnology_specified else RETagTechnology_default_value for y in YEAR} for t in TECHNOLOGY} for r in REGION} # RETagFuel RETagFuel_default_value = p_default_df[p_default_df['PARAM'] == "RETagFuel"].VALUE.iat[0] RETagFuel_specified = tuple([(str(r), str(f), str(y)) for r, f, y in zip(p_df[p_df['PARAM'] == "RETagFuel"].REGION, p_df[p_df['PARAM'] == "RETagFuel"].FUEL, p_df[p_df['PARAM'] == "RETagFuel"].YEAR)]) RETagFuel = {str(r): {str(f): {str(y): p_df[(p_df['PARAM'] == "RETagFuel") & (p_df['REGION'] == r) & (p_df['FUEL'] == f) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(f), str(y)) in RETagFuel_specified else RETagFuel_default_value for y in YEAR} for f in FUEL} for r in REGION} # REMinProductionTarget REMinProductionTarget_default_value = p_default_df[p_default_df['PARAM'] == "REMinProductionTarget"].VALUE.iat[0] REMinProductionTarget_specified = tuple([(str(r), str(y)) for r, y in zip(p_df[p_df['PARAM'] == "REMinProductionTarget"].REGION, p_df[p_df['PARAM'] == "REMinProductionTarget"].YEAR)]) REMinProductionTarget = {str(r): {str(y): p_df[(p_df['PARAM'] == "REMinProductionTarget") & (p_df['REGION'] == r) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(y)) in REMinProductionTarget_specified else REMinProductionTarget_default_value for y in YEAR} for r in REGION} ######### Emissions & Penalties ######### # EmissionActivityRatio EmissionActivityRatio_default_value = p_default_df[p_default_df['PARAM'] == "EmissionActivityRatio"].VALUE.iat[0] EmissionActivityRatio_specified = tuple([(str(r),str(t),str(e),str(m),str(y)) for r, t, e, m, y in zip(p_df[p_df['PARAM'] == "EmissionActivityRatio"].REGION, p_df[p_df['PARAM'] == "EmissionActivityRatio"].TECHNOLOGY, p_df[p_df['PARAM'] == "EmissionActivityRatio"].EMISSION, p_df[p_df['PARAM'] == "EmissionActivityRatio"].MODE_OF_OPERATION, p_df[p_df['PARAM'] == "EmissionActivityRatio"].YEAR)]) EmissionActivityRatio = {str(r): {str(t): {str(e): {str(m): {str(y): p_df[(p_df['PARAM'] == "EmissionActivityRatio") & (p_df['REGION'] == r) & (p_df['TECHNOLOGY'] == t) & (p_df['EMISSION'] == e) & (p_df['MODE_OF_OPERATION'] == m) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r),str(t),str(e),str(m),str(y)) in EmissionActivityRatio_specified else EmissionActivityRatio_default_value for y in YEAR} for m in MODE_OF_OPERATION} for e in EMISSION} for t in TECHNOLOGY} for r in REGION} # EmissionsPenalty EmissionsPenalty_default_value = p_default_df[p_default_df['PARAM'] == "EmissionsPenalty"].VALUE.iat[0] EmissionsPenalty_specified = tuple([(str(r), str(e), str(y)) for r, e, y in zip(p_df[p_df['PARAM'] == "EmissionsPenalty"].REGION, p_df[p_df['PARAM'] == "EmissionsPenalty"].EMISSION, p_df[p_df['PARAM'] == "EmissionsPenalty"].YEAR)]) EmissionsPenalty = {str(r): {str(e): {str(y): p_df[(p_df['PARAM'] == "EmissionsPenalty") & (p_df['REGION'] == r) & (p_df['EMISSION'] == e) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(e), str(y)) in EmissionsPenalty_specified else EmissionsPenalty_default_value for y in YEAR} for e in EMISSION} for r in REGION} # AnnualExogenousEmission AnnualExogenousEmission_default_value = p_default_df[p_default_df['PARAM'] == "AnnualExogenousEmission"].VALUE.iat[0] AnnualExogenousEmission_specified = tuple([(str(r), str(e), str(y)) for r, e, y in zip(p_df[p_df['PARAM'] == "AnnualExogenousEmission"].REGION, p_df[p_df['PARAM'] == "AnnualExogenousEmission"].EMISSION, p_df[p_df['PARAM'] == "AnnualExogenousEmission"].YEAR)]) AnnualExogenousEmission = {str(r): {str(e): {str(y): p_df[(p_df['PARAM'] == "AnnualExogenousEmission") & (p_df['REGION'] == r) & (p_df['EMISSION'] == e) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(e), str(y)) in AnnualExogenousEmission_specified else AnnualExogenousEmission_default_value for y in YEAR} for e in EMISSION} for r in REGION} # AnnualEmissionLimit AnnualEmissionLimit_default_value = p_default_df[p_default_df['PARAM'] == "AnnualEmissionLimit"].VALUE.iat[0] AnnualEmissionLimit_specified = tuple([(str(r), str(e), str(y)) for r, e, y in zip(p_df[p_df['PARAM'] == "AnnualEmissionLimit"].REGION, p_df[p_df['PARAM'] == "AnnualEmissionLimit"].EMISSION, p_df[p_df['PARAM'] == "AnnualEmissionLimit"].YEAR)]) AnnualEmissionLimit = {str(r): {str(e): {str(y): p_df[(p_df['PARAM'] == "AnnualEmissionLimit") & (p_df['REGION'] == r) & (p_df['EMISSION'] == e) & (p_df['YEAR'] == y)].VALUE.iat[0] if (str(r), str(e), str(y)) in AnnualEmissionLimit_specified else AnnualEmissionLimit_default_value for y in YEAR} for e in EMISSION} for r in REGION} # ModelPeriodExogenousEmission ModelPeriodExogenousEmission_default_value = p_default_df[p_default_df['PARAM'] == "ModelPeriodExogenousEmission"].VALUE.iat[0] ModelPeriodExogenousEmission_specified = tuple([(str(r), str(e)) for r, e in zip(p_df[p_df['PARAM'] == "ModelPeriodExogenousEmission"].REGION, p_df[p_df['PARAM'] == "ModelPeriodExogenousEmission"].EMISSION)]) ModelPeriodExogenousEmission = {str(r): {str(e): p_df[(p_df['PARAM'] == "ModelPeriodExogenousEmission") & (p_df['REGION'] == r) & (p_df['EMISSION'] == e)].VALUE.iat[0] if (str(r), str(e)) in ModelPeriodExogenousEmission_specified else ModelPeriodExogenousEmission_default_value for e in EMISSION} for r in REGION} # ModelPeriodEmissionLimit ModelPeriodEmissionLimit_default_value = p_default_df[p_default_df['PARAM'] == "ModelPeriodEmissionLimit"].VALUE.iat[0] ModelPeriodEmissionLimit_specified = tuple([(str(r), str(e)) for r, e in zip(p_df[p_df['PARAM'] == "ModelPeriodEmissionLimit"].REGION, p_df[p_df['PARAM'] == "ModelPeriodEmissionLimit"].EMISSION)]) ModelPeriodEmissionLimit = {str(r): {str(e): p_df[(p_df['PARAM'] == "ModelPeriodEmissionLimit") & (p_df['REGION'] == r) & (p_df['EMISSION'] == e)].VALUE.iat[0] if (str(r), str(e)) in ModelPeriodEmissionLimit_specified else ModelPeriodEmissionLimit_default_value for e in EMISSION} for r in REGION} logging.info("{}\tParameters are created.".format(dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) i = 0 while i <= mcs_num: ######### Simulation loops ######### logging.info("{}\tModel run #{}".format(dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), i)) # ------------------------------------------------------------------------------------------------------------------ # MODEL INITIALIZATION # ------------------------------------------------------------------------------------------------------------------ model = pulp.LpProblem(modelName, pulp.LpMinimize) # ------------------------------------------------------------------------------------------------------------------ # MODEL VARIABLES # ------------------------------------------------------------------------------------------------------------------ ######## Demands ######### RateOfDemand = {str(r): {str(l): {str(f): {str(y): newVar("RateOfDemand", 0, None, 'Continuous', r, l, f, y) for y in YEAR} for f in FUEL} for l in TIMESLICE} for r in REGION} Demand = {str(r): {str(l): {str(f): {str(y): newVar("Demand", 0, None, 'Continuous', r, l, f, y) for y in YEAR} for f in FUEL} for l in TIMESLICE} for r in REGION} ######## Storage ######### RateOfStorageCharge = {str(r): {str(s): {str(ls): {str(ld): {str(lh): {str(y): newVar("RateOfStorageCharge", 0, None, 'Continuous', r, s, ls, ld, lh, y) for y in YEAR} for lh in DAILYTIMEBRACKET} for ld in DAYTYPE} for ls in SEASON} for s in STORAGE} for r in REGION} RateOfStorageDischarge = {str(r): {str(s): {str(ls): {str(ld): {str(lh): {str(y): newVar("RateOfStorageDischarge", None, None, 'Continuous', r, s, ls, ld, lh, y) for y in YEAR} for lh in DAILYTIMEBRACKET} for ld in DAYTYPE} for ls in SEASON} for s in STORAGE} for r in REGION} NetChargeWithinYear = {str(r): {str(s): {str(ls): {str(ld): {str(lh): {str(y): newVar("NetChargeWithinYear", None, None, 'Continuous', r, s, ls, ld, lh, y) for y in YEAR} for lh in DAILYTIMEBRACKET} for ld in DAYTYPE} for ls in SEASON} for s in STORAGE} for r in REGION} NetChargeWithinDay = {str(r): {str(s): {str(ls): {str(ld): {str(lh): {str(y): newVar("NetChargeWithinDay", None, None, 'Continuous', r, s, ls, ld, lh, y) for y in YEAR} for lh in DAILYTIMEBRACKET} for ld in DAYTYPE} for ls in SEASON} for s in STORAGE} for r in REGION} StorageLevelYearStart = {str(r): {str(s): {str(y): newVar("StorageLevelYearStart", 0, None, 'Continuous', r, s, y) for y in YEAR} for s in STORAGE} for r in REGION} StorageLevelYearFinish = {str(r): {str(s): {str(y): newVar("StorageLevelYearFinish", 0, None, 'Continuous', r, s, y) for y in YEAR} for s in STORAGE} for r in REGION} StorageLevelSeasonStart = {str(r): {str(s): {str(ls): {str(y): newVar("StorageLevelSeasonStart", 0, None, 'Continuous', r, s, ls, y) for y in YEAR} for ls in SEASON} for s in STORAGE} for r in REGION} StorageLevelDayTypeStart = {str(r): {str(s): {str(ls): {str(ld): {str(y): newVar("StorageLevelDayTypeStart", 0, None, 'Continuous', r, s, ls, ld, y) for y in YEAR} for ld in DAYTYPE} for ls in SEASON} for s in STORAGE} for r in REGION} StorageLevelDayTypeFinish = {str(r): {str(s): {str(ls): {str(ld): {str(y): newVar("StorageLevelDayTypeFinish", 0, None, 'Continuous', r, s, ls, ld, y) for y in YEAR} for ld in DAYTYPE} for ls in SEASON} for s in STORAGE} for r in REGION} StorageLowerLimit = {str(r): {str(s): {str(y): newVar("StorageLowerLimit", 0, None, 'Continuous', r, s, y) for y in YEAR} for s in STORAGE} for r in REGION} StorageUpperLimit = {str(r): {str(s): {str(y): newVar("StorageUpperLimit", 0, None, 'Continuous', r, s, y) for y in YEAR} for s in STORAGE} for r in REGION} AccumulatedNewStorageCapacity = {str(r): {str(s): {str(y): newVar("AccumulatedNewStorageCapacity", 0, None, 'Continuous', r, s, y) for y in YEAR} for s in STORAGE} for r in REGION} NewStorageCapacity = {str(r): {str(s): {str(y): newVar("NewStorageCapacity", 0, None, 'Continuous', r, s, y) for y in YEAR} for s in STORAGE} for r in REGION} CapitalInvestmentStorage = {str(r): {str(s): {str(y): newVar("CapitalInvestmentStorage", 0, None, 'Continuous', r, s, y) for y in YEAR} for s in STORAGE} for r in REGION} DiscountedCapitalInvestmentStorage = {str(r): {str(s): {str(y): newVar("DiscountedCapitalInvestmentStorage", 0, None, 'Continuous', r, s, y) for y in YEAR} for s in STORAGE} for r in REGION} SalvageValueStorage = {str(r): {str(s): {str(y): newVar("SalvageValueStorage", 0, None, 'Continuous', r, s, y) for y in YEAR} for s in STORAGE} for r in REGION} DiscountedSalvageValueStorage = {str(r): {str(s): {str(y): newVar("DiscountedSalvageValueStorage", 0, None, 'Continuous', r, s, y) for y in YEAR} for s in STORAGE} for r in REGION} TotalDiscountedStorageCost = {str(r): {str(s): {str(y): newVar("TotalDiscountedStorageCost", 0, None, 'Continuous', r, s, y) for y in YEAR} for s in STORAGE} for r in REGION} ######### Capacity Variables ######### NumberOfNewTechnologyUnits = {str(r): {str(t): {str(y): newVar("NumberOfNewTechnologyUnits", 0, None, 'Integer', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} NewCapacity = {str(r): {str(t): {str(y): newVar("NewCapacity", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} AccumulatedNewCapacity = {str(r): {str(t): {str(y): newVar("AccumulatedNewCapacity", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} TotalCapacityAnnual = {str(r): {str(t): {str(y): newVar("TotalCapacityAnnual", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} ######### Activity Variables ######### RateOfActivity = {str(r): {str(l): {str(t): {str(m): {str(y): newVar("RateOfActivity", 0, None, 'Continuous', r, l, t, m, y) for y in YEAR} for m in MODE_OF_OPERATION} for t in TECHNOLOGY} for l in TIMESLICE} for r in REGION} RateOfTotalActivity = {str(r): {str(t): {str(l): {str(y): newVar("RateOfTotalActivity", 0, None, 'Continuous', r, t, l, y) for y in YEAR} for l in TIMESLICE} for t in TECHNOLOGY} for r in REGION} TotalTechnologyAnnualActivity = {str(r): {str(t): {str(y): newVar("TotalTechnologyAnnualActivity", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} TotalAnnualTechnologyActivityByMode = {str(r): {str(t): {str(m): {str(y): newVar("TotalAnnualTechnologyActivityByMode", 0, None, 'Continuous', r, t, m, y) for y in YEAR} for m in MODE_OF_OPERATION} for t in TECHNOLOGY} for r in REGION} TotalTechnologyModelPeriodActivity = {str(r): {str(t): newVar("TotalTechnologyModelPeriodActivity", None, None, 'Continuous', r, t) for t in TECHNOLOGY} for r in REGION} RateOfProductionByTechnologyByMode = {str(r): {str(l): {str(t): {str(m): {str(f): {str(y): newVar("RateOfProductionByTechnologyByMode", 0, None, 'Continuous', r, l, t, m, f, y) for y in YEAR} for f in FUEL} for m in MODE_OF_OPERATION} for t in TECHNOLOGY} for l in TIMESLICE} for r in REGION} RateOfProductionByTechnology = {str(r): {str(l): {str(t): {str(f): {str(y): newVar("RateOfProductionByTechnology", 0, None, 'Continuous', r, l, t, f, y) for y in YEAR} for f in FUEL} for t in TECHNOLOGY} for l in TIMESLICE} for r in REGION} ProductionByTechnology = {str(r): {str(l): {str(t): {str(f): {str(y): newVar("ProductionByTechnology", 0, None, 'Continuous', r, l, t, f, y) for y in YEAR} for f in FUEL} for t in TECHNOLOGY} for l in TIMESLICE} for r in REGION} ProductionByTechnologyAnnual = {str(r): {str(t): {str(f): {str(y): newVar("ProductionByTechnologyAnnual", 0, None, 'Continuous', r, t, f, y) for y in YEAR} for f in FUEL} for t in TECHNOLOGY} for r in REGION} RateOfProduction = {str(r): {str(l): {str(f): {str(y): newVar("RateOfProduction", 0, None, 'Continuous', r, l, f, y) for y in YEAR} for f in FUEL} for l in TIMESLICE} for r in REGION} Production = {str(r): {str(l): {str(f): {str(y): newVar("Production", 0, None, 'Continuous', r, l, f, y) for y in YEAR} for f in FUEL} for l in TIMESLICE} for r in REGION} RateOfUseByTechnologyByMode = {str(r): {str(l): {str(t): {str(m): {str(f): {str(y): newVar("RateOfUseByTechnologyByMode", 0, None, 'Continuous', r, l, t, m, f, y) for y in YEAR} for f in FUEL} for m in MODE_OF_OPERATION} for t in TECHNOLOGY} for l in TIMESLICE} for r in REGION} RateOfUseByTechnology = {str(r): {str(l): {str(t): {str(f): {str(y): newVar("RateOfUseByTechnology", 0, None, 'Continuous', r, l, t, f, y) for y in YEAR} for f in FUEL} for t in TECHNOLOGY} for l in TIMESLICE} for r in REGION} UseByTechnologyAnnual = {str(r): {str(t): {str(f): {str(y): newVar("UseByTechnologyAnnual", 0, None, 'Continuous', r, t, f, y) for y in YEAR} for f in FUEL} for t in TECHNOLOGY} for r in REGION} RateOfUse = {str(r): {str(l): {str(f): {str(y): newVar("RateOfUse", 0, None, 'Continuous', r, l, f, y) for y in YEAR} for f in FUEL} for l in TIMESLICE} for r in REGION} UseByTechnology = {str(r): {str(l): {str(t): {str(f): {str(y): newVar("UseByTechnology", 0, None, 'Continuous', r, l, t, f, y) for y in YEAR} for f in FUEL} for t in TECHNOLOGY} for l in TIMESLICE} for r in REGION} Use = {str(r): {str(l): {str(f): {str(y): newVar("Use", 0, None, 'Continuous', r, l, f, y) for y in YEAR} for f in FUEL} for l in TIMESLICE} for r in REGION} Trade = {str(r): {str(rr): {str(l): {str(f): {str(y): newVar("Trade", None, None, 'Continuous', r, rr, l, f, y) for y in YEAR} for f in FUEL} for l in TIMESLICE} for rr in REGION2} for r in REGION} TradeAnnual = {str(r): {str(rr): {str(f): {str(y): newVar("TradeAnnual", None, None, 'Continuous', r, rr, f, y) for y in YEAR} for f in FUEL} for rr in REGION2} for r in REGION} ProductionAnnual = {str(r): {str(f): {str(y): newVar("ProductionAnnual", 0, None, 'Continuous', r, f, y) for y in YEAR} for f in FUEL} for r in REGION} UseAnnual = {str(r): {str(f): {str(y): newVar("UseAnnual", 0, None, 'Continuous', r, f, y) for y in YEAR} for f in FUEL} for r in REGION} ######### Costing Variables ######### CapitalInvestment = {str(r): {str(t): {str(y): newVar("CapitalInvestment", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} DiscountedCapitalInvestment = {str(r): {str(t): {str(y): newVar("DiscountedCapitalInvestment", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} SalvageValue = {str(r): {str(t): {str(y): newVar("SalvageValue", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} DiscountedSalvageValue = {str(r): {str(t): {str(y): newVar("DiscountedSalvageValue", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} OperatingCost = {str(r): {str(t): {str(y): newVar("OperatingCost", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} DiscountedOperatingCost = {str(r): {str(t): {str(y): newVar("DiscountedOperatingCost", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} AnnualVariableOperatingCost = {str(r): {str(t): {str(y): newVar("AnnualVariableOperatingCost", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} AnnualFixedOperatingCost = {str(r): {str(t): {str(y): newVar("AnnualFixedOperatingCost", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} TotalDiscountedCostByTechnology = {str(r): {str(t): {str(y): newVar("TotalDiscountedCostByTechnology", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} TotalDiscountedCost = {str(r): {str(y): newVar("TotalDiscountedCost", 0, None, 'Continuous', r, y) for y in YEAR} for r in REGION} ModelPeriodCostByRegion = {str(r): newVar("ModelPeriodCostByRegion", 0, None, 'Continuous', r) for r in REGION} ######### Reserve Margin ######### TotalCapacityInReserveMargin = {str(r): {str(y): newVar("TotalCapacityInReserveMargin", 0, None, 'Continuous', r, y) for y in YEAR} for r in REGION} DemandNeedingReserveMargin = {str(r): {str(l): {str(y): newVar("DemandNeedingReserveMargin", 0, None, 'Continuous', r, l, y) for y in YEAR} for l in TIMESLICE} for r in REGION} ######### RE Gen Target ######### TotalREProductionAnnual = {str(r): {str(y): newVar("TotalREProductionAnnual", None, None, 'Continuous', r, y) for y in YEAR} for r in REGION} RETotalProductionOfTargetFuelAnnual = {str(r): {str(y): newVar("RETotalProductionOfTargetFuelAnnual", None, None, 'Continuous', r, y) for y in YEAR} for r in REGION} ######### Emissions ######### AnnualTechnologyEmissionByMode = {str(r): {str(t): {str(e): {str(m): {str(y): newVar("AnnualTechnologyEmissionByMode", 0, None, 'Continuous', r, t, e, m, y) for y in YEAR} for m in MODE_OF_OPERATION} for e in EMISSION} for t in TECHNOLOGY} for r in REGION} AnnualTechnologyEmission = {str(r): {str(t): {str(e): {str(y): newVar("AnnualTechnologyEmission", 0, None, 'Continuous', r, t, e, y) for y in YEAR} for e in EMISSION} for t in TECHNOLOGY} for r in REGION} AnnualTechnologyEmissionPenaltyByEmission = {str(r): {str(t): {str(e): {str(y): newVar("AnnualTechnologyEmissionPenaltyByEmission", 0, None, 'Continuous', r, t, e, y) for y in YEAR} for e in EMISSION} for t in TECHNOLOGY} for r in REGION} AnnualTechnologyEmissionsPenalty = {str(r): {str(t): {str(y): newVar("AnnualTechnologyEmissionsPenalty", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} DiscountedTechnologyEmissionsPenalty = {str(r): {str(t): {str(y): newVar("DiscountedTechnologyEmissionsPenalty", 0, None, 'Continuous', r, t, y) for y in YEAR} for t in TECHNOLOGY} for r in REGION} AnnualEmissions = {str(r): {str(e): {str(y): newVar("AnnualEmissions", 0, None, 'Continuous', r, e, y) for y in YEAR} for e in EMISSION} for r in REGION} ModelPeriodEmissions = {str(r): {str(e): newVar("ModelPeriodEmissions", 0, None, 'Continuous', r, e) for e in EMISSION} for r in REGION} logging.info("{}\tVariables are created".format(dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) # ------------------------------------------------------------------------------------------------------------------ # OBJECTIVE FUNCTION # ------------------------------------------------------------------------------------------------------------------ cost = pulp.LpVariable("cost", cat='Continuous') model += cost, "Objective" model += cost == pulp.lpSum([TotalDiscountedCost[r][y] for r in REGION for y in YEAR]), "Cost_function" # ------------------------------------------------------------------------------------------------------------------ # CONSTRAINTS # ------------------------------------------------------------------------------------------------------------------ for r in REGION: for l in TIMESLICE: for f in FUEL: for y in YEAR: # EQ_SpecifiedDemand model += RateOfDemand[r][l][f][y] == SpecifiedAnnualDemand[r][f][y] * SpecifiedDemandProfile[r][f][l][y] / YearSplit[l][y], "" ######### Capacity Adequacy A ######### for r in REGION: for t in TECHNOLOGY: for y in YEAR: # CAa1_TotalNewCapacity model += AccumulatedNewCapacity[r][t][y] == pulp.lpSum([NewCapacity[r][t][yy] for yy in YEAR if (float(int(y) - int(yy)) < OperationalLife[r][t]) and (int(y) - int(yy) >= 0)]), "" # CAa2_TotalAnnualCapacity model += TotalCapacityAnnual[r][t][y] == AccumulatedNewCapacity[r][t][y] + ResidualCapacity[r][t][y], "" for l in TIMESLICE: # CAa3_TotalActivityOfEachTechnology model += RateOfTotalActivity[r][t][l][y] == pulp.lpSum([RateOfActivity[r][l][t][m][y] for m in MODE_OF_OPERATION]), "" # CAa4_Constraint_Capacity model += RateOfTotalActivity[r][t][l][y] <= TotalCapacityAnnual[r][t][y] * CapacityFactor[r][t][l][y] * CapacityToActivityUnit[r][t], "" if CapacityOfOneTechnologyUnit[r][t][y] != 0: # CAa5_TotalNewCapacity model += NewCapacity[r][t][y] == CapacityOfOneTechnologyUnit[r][t][y] * NumberOfNewTechnologyUnits[r][t][y], "" ######### Capacity Adequacy B ######### for r in REGION: for t in TECHNOLOGY: for y in YEAR: # CAb1_PlannedMaintenance model += pulp.lpSum([RateOfTotalActivity[r][t][l][y] * YearSplit[l][y] for l in TIMESLICE]) <= pulp.lpSum([TotalCapacityAnnual[r][t][y] * CapacityFactor[r][t][l][y] * YearSplit[l][y] for l in TIMESLICE]) * AvailabilityFactor[r][t][y] * CapacityToActivityUnit[r][t], "" ######### Energy Balance A ######### for r in REGION: for l in TIMESLICE: for f in FUEL: for y in YEAR: for t in TECHNOLOGY: for m in MODE_OF_OPERATION: # EBa1_RateOfFuelProduction1 if OutputActivityRatio[r][t][f][m][y] != 0: model += RateOfProductionByTechnologyByMode[r][l][t][m][f][y] == RateOfActivity[r][l][t][m][y] * OutputActivityRatio[r][t][f][m][y], "" else: model += RateOfProductionByTechnologyByMode[r][l][t][m][f][y] == 0, "" # EBa2_RateOfFuelProduction2 model += RateOfProductionByTechnology[r][l][t][f][y] == pulp.lpSum([RateOfProductionByTechnologyByMode[r][l][t][m][f][y] for m in MODE_OF_OPERATION if OutputActivityRatio[r][t][f][m][y] != 0]), "" # EBa3_RateOfFuelProduction3 model += RateOfProduction[r][l][f][y] == pulp.lpSum([RateOfProductionByTechnology[r][l][t][f][y] for t in TECHNOLOGY]), "" for t in TECHNOLOGY: for m in MODE_OF_OPERATION: # EBa4_RateOfFuelUse1 if InputActivityRatio[r][t][f][m][y] != 0: model += RateOfUseByTechnologyByMode[r][l][t][m][f][y] == RateOfActivity[r][l][t][m][y] * InputActivityRatio[r][t][f][m][y], "" # EBa5_RateOfFuelUse2 model += RateOfUseByTechnology[r][l][t][f][y] == pulp.lpSum([RateOfUseByTechnologyByMode[r][l][t][m][f][y] for m in MODE_OF_OPERATION if InputActivityRatio[r][t][f][m][y] != 0]), "" # EBa6_RateOfFuelUse3 model += RateOfUse[r][l][f][y] == pulp.lpSum([RateOfUseByTechnology[r][l][t][f][y] for t in TECHNOLOGY]), "" # EBa7_EnergyBalanceEachTS1 model += Production[r][l][f][y] == RateOfProduction[r][l][f][y] * YearSplit[l][y], "" # EBa8_EnergyBalanceEachTS2 model += Use[r][l][f][y] == RateOfUse[r][l][f][y] * YearSplit[l][y], "" # EBa9_EnergyBalanceEachTS3 model += Demand[r][l][f][y] == RateOfDemand[r][l][f][y] * YearSplit[l][y], "" for rr in REGION2: # EBa10_EnergyBalanceEachTS4 model += Trade[r][rr][l][f][y] == -Trade[rr][r][l][f][y], "" # EBa11_EnergyBalanceEachTS5 model += Production[r][l][f][y] >= Demand[r][l][f][y] + Use[r][l][f][y] + pulp.lpSum([Trade[r][rr][l][f][y] * TradeRoute[r][rr][f][y] for rr in REGION2]), "" ######### Energy Balance B ######### for r in REGION: for f in FUEL: for y in YEAR: # EBb1_EnergyBalanceEachYear1 model += ProductionAnnual[r][f][y] == pulp.lpSum([Production[r][l][f][y] for l in TIMESLICE]), "" # EBb2_EnergyBalanceEachYear2 model += UseAnnual[r][f][y] == pulp.lpSum([Use[r][l][f][y] for l in TIMESLICE]), "" for rr in REGION2: # EBb3_EnergyBalanceEachYear3 model += TradeAnnual[r][rr][f][y] == pulp.lpSum([Trade[r][rr][l][f][y] for l in TIMESLICE]), "" # EBb4_EnergyBalanceEachYear4 model += ProductionAnnual[r][f][y] >= UseAnnual[r][f][y] + pulp.lpSum([TradeAnnual[r][rr][f][y] * TradeRoute[r][rr][f][y] for rr in REGION2]) + AccumulatedAnnualDemand[r][f][y], "" ######### Accounting Technology Production/Use ######### for r in REGION: for t in TECHNOLOGY: for y in YEAR: for l in TIMESLICE: for f in FUEL: # Acc1_FuelProductionByTechnology model += ProductionByTechnology[r][l][t][f][y] == RateOfProductionByTechnology[r][l][t][f][y] * YearSplit[l][y], "" # Acc2_FuelUseByTechnology model += UseByTechnology[r][l][t][f][y] == RateOfUseByTechnology[r][l][t][f][y] * YearSplit[l][y], "" for m in MODE_OF_OPERATION: # Acc3_AverageAnnualRateOfActivity model += TotalAnnualTechnologyActivityByMode[r][t][m][y] == pulp.lpSum([RateOfActivity[r][l][t][m][y] * YearSplit[l][y] for l in TIMESLICE]), "" # Acc4_ModelPeriodCostByRegion model += ModelPeriodCostByRegion[r] == pulp.lpSum([TotalDiscountedCost[r][y] for y in YEAR]), "" ######### Storage Equations ######### for r in REGION: for s in STORAGE: for y in YEAR: for ls in SEASON: for ld in DAYTYPE: for lh in DAILYTIMEBRACKET: # S1_RateOfStorageCharge model += RateOfStorageCharge[r][s][ls][ld][lh][y] == pulp.lpSum([RateOfActivity[r][l][t][m][y] * TechnologyToStorage[r][t][s][m] * Conversionls[l][ls] * Conversionld[l][ld] * Conversionlh[l][lh] for t in TECHNOLOGY for m in MODE_OF_OPERATION for l in TIMESLICE if TechnologyToStorage[r][t][s][m] > 0]), "" # S2_RateOfStorageDischarge model += RateOfStorageDischarge[r][s][ls][ld][lh][y] == pulp.lpSum([RateOfActivity[r][l][t][m][y] * TechnologyFromStorage[r][t][s][m] * Conversionls[l][ls] * Conversionld[l][ld] * Conversionlh[l][lh] for t in TECHNOLOGY for m in MODE_OF_OPERATION for l in TIMESLICE if TechnologyFromStorage[r][t][s][m] > 0]), "" # S3_NetChargeWithinYear model += NetChargeWithinYear[r][s][ls][ld][lh][y] == pulp.lpSum([(RateOfStorageCharge[r][s][ls][ld][lh][y] - RateOfStorageDischarge[r][s][ls][ld][lh][y]) * YearSplit[l][y] * Conversionls[l][ls] * Conversionld[l][ld] * Conversionlh[l][lh] for l in TIMESLICE if (Conversionls[l][ls] > 0) and (Conversionld[l][ld] > 0) and (Conversionlh[l][lh] > 0)]), "" # S4_NetChargeWithinDay model += NetChargeWithinDay[r][s][ls][ld][lh][y] == (RateOfStorageCharge[r][s][ls][ld][lh][y] - RateOfStorageDischarge[r][s][ls][ld][lh][y]) * DaySplit[lh][y], "" # S5_and_S6_StorageLevelYearStart if int(y) == int(min(YEAR)): model += StorageLevelYearStart[r][s][y] == StorageLevelStart[r][s], "" else: model += StorageLevelYearStart[r][s][y] == StorageLevelYearStart[r][s][str(int(y)-1)] + pulp.lpSum([NetChargeWithinYear[r][s][ls][ld][lh][str(int(y)-1)] for ls in SEASON for ld in DAYTYPE for lh in DAILYTIMEBRACKET]), "" # S7_and_S8_StorageLevelYearFinish if int(y) < int(max(YEAR)): model += StorageLevelYearFinish[r][s][y] == StorageLevelYearStart[r][s][str(int(y) + 1)], "" else: model += StorageLevelYearFinish[r][s][y] == StorageLevelYearStart[r][s][y] + pulp.lpSum([NetChargeWithinYear[r][s][ls][ld][lh][y] for ls in SEASON for ld in DAYTYPE for lh in DAILYTIMEBRACKET]), "" for ls in SEASON: # S9_and_S10_StorageLevelSeasonStart if int(ls) == int(min(SEASON)): model += StorageLevelSeasonStart[r][s][ls][y] == StorageLevelYearStart[r][s][y], "" else: model += StorageLevelSeasonStart[r][s][ls][y] == StorageLevelSeasonStart[r][s][str(int(ls)-1)][y] + pulp.lpSum([NetChargeWithinYear[r][s][str(int(ls)-1)][ld][lh][y] for ld in DAYTYPE for lh in DAILYTIMEBRACKET]), "" for ld in DAYTYPE: # S11_and_S12_StorageLevelDayTypeStart if int(ld) == int(min(DAYTYPE)): model += StorageLevelDayTypeStart[r][s][ls][ld][y] == StorageLevelSeasonStart[r][s][ls][y], "" else: model += StorageLevelDayTypeStart[r][s][ls][ld][y] == StorageLevelDayTypeStart[r][s][ls][str(int(ld)-1)][y] + pulp.lpSum([NetChargeWithinDay[r][s][ls][str(int(ld)-1)][lh][y] * DaysInDayType[ls][str(int(ld)-1)][y] for lh in DAILYTIMEBRACKET]), "" # S13_and_S14_and_S15_StorageLevelDayTypeFinish if (int(ld) == int(max(DAYTYPE))) and (int(ls) == int(max(SEASON))): model += StorageLevelDayTypeFinish[r][s][ls][ld][y] == StorageLevelYearFinish[r][s][y], "" elif int(ld) == int(max(DAYTYPE)): model += StorageLevelDayTypeFinish[r][s][ls][ld][y] == StorageLevelSeasonStart[r][s][str(int(ls)+1)][y], "" else: model += StorageLevelDayTypeFinish[r][s][ls][ld][y] == StorageLevelDayTypeFinish[r][s][ls][str(int(ld)+1)][y] - pulp.lpSum([NetChargeWithinDay[r][s][ls][str(int(ld)+1)][lh][y] * DaysInDayType[ls][str(int(ld)+1)][y] for lh in DAILYTIMEBRACKET]), "" ########## Storage Constraints ######### for r in REGION: for s in STORAGE: for y in YEAR: for ls in SEASON: for ld in DAYTYPE: for lh in DAILYTIMEBRACKET: # SC1_LowerLimit_BeginningOfDailyTimeBracketOfFirstInstanceOfDayTypeInFirstWeekConstraint model += (StorageLevelDayTypeStart[r][s][ls][ld][y] + pulp.lpSum([NetChargeWithinDay[r][s][ls][ld][lhlh][y] for lhlh in DAILYTIMEBRACKET if int(lh)-int(lhlh) > 0])) - StorageLowerLimit[r][s][y] >= 0, "" # SC1_UpperLimit_BeginningOfDailyTimeBracketOfFirstInstanceOfDayTypeInFirstWeekConstraint model += (StorageLevelDayTypeStart[r][s][ls][ld][y] + pulp.lpSum([NetChargeWithinDay[r][s][ls][ld][lhlh][y] for lhlh in DAILYTIMEBRACKET if int(lh)-int(lhlh) > 0])) - StorageUpperLimit[r][s][y] <= 0, "" # SC2_LowerLimit_EndOfDailyTimeBracketOfLastInstanceOfDayTypeInFirstWeekConstraint if int(ld) > int(min(DAYTYPE)): model += (StorageLevelDayTypeStart[r][s][ls][ld][y] - pulp.lpSum([NetChargeWithinDay[r][s][ls][str(int(ld)-1)][lhlh][y] for lhlh in DAILYTIMEBRACKET if int(lh)-int(lhlh) < 0])) - StorageLowerLimit[r][s][y] >= 0, "" # SC2_LowerLimit_EndOfDailyTimeBracketOfLastInstanceOfDayTypeInFirstWeekConstraint if int(ld) > int(min(DAYTYPE)): model += (StorageLevelDayTypeStart[r][s][ls][ld][y] - pulp.lpSum([NetChargeWithinDay[r][s][ls][str(int(ld)-1)][lhlh][y] for lhlh in DAILYTIMEBRACKET if int(lh) - int(lhlh) < 0])) - StorageUpperLimit[r][s][y] <= 0, "" # SC3_LowerLimit_EndOfDailyTimeBracketOfLastInstanceOfDayTypeInLastWeekConstraint model += (StorageLevelDayTypeFinish[r][s][ls][ld][y] - pulp.lpSum([NetChargeWithinDay[r][s][ls][ld][lhlh][y] for lhlh in DAILYTIMEBRACKET if int(lh) - int(lhlh) < 0])) - StorageLowerLimit[r][s][y] >= 0, "" # SC3_UpperLimit_EndOfDailyTimeBracketOfLastInstanceOfDayTypeInLastWeekConstraint model += (StorageLevelDayTypeFinish[r][s][ls][ld][y] - pulp.lpSum([NetChargeWithinDay[r][s][ls][ld][lhlh][y] for lhlh in DAILYTIMEBRACKET if int(lh) - int(lhlh) < 0])) - StorageUpperLimit[r][s][y] <= 0, "" # SC4_LowerLimit_BeginningOfDailyTimeBracketOfFirstInstanceOfDayTypeInLastWeekConstraint if int(ld) > int(min(DAYTYPE)): model += (StorageLevelDayTypeFinish[r][s][ls][str(int(ld)-1)][y] + pulp.lpSum([NetChargeWithinDay[r][s][ls][ld][lhlh][y] for lhlh in DAILYTIMEBRACKET if int(lh) - int(lhlh) > 0])) - StorageLowerLimit[r][s][y] >= 0, "" # SC4_UpperLimit_BeginningOfDailyTimeBracketOfFirstInstanceOfDayTypeInLastWeekConstraint if int(ld) > int(min(DAYTYPE)): model += (StorageLevelDayTypeFinish[r][s][ls][str(int(ld)-1)][y] + pulp.lpSum([NetChargeWithinDay[r][s][ls][ld][lhlh][y] for lhlh in DAILYTIMEBRACKET if int(lh) - int(lhlh) > 0])) - StorageUpperLimit[r][s][y] <= 0, "" # SC5_MaxChargeConstraint model += RateOfStorageCharge[r][s][ls][ld][lh][y] <= StorageMaxChargeRate[r][s], "" # SC6_MaxDischargeConstraint model += RateOfStorageDischarge[r][s][ls][ld][lh][y] <= StorageMaxDischargeRate[r][s], "" ######### Storage Investments ######### for r in REGION: for s in STORAGE: for y in YEAR: # SI1_StorageUpperLimit model += StorageUpperLimit[r][s][y] == AccumulatedNewStorageCapacity[r][s][y] + ResidualStorageCapacity[r][s][y], "" # SI2_StorageLowerLimit model += StorageLowerLimit[r][s][y] == MinStorageCharge[r][s][y] * StorageUpperLimit[r][s][y], "" # SI3_TotalNewStorage model += AccumulatedNewStorageCapacity[r][s][y] == pulp.lpSum([NewStorageCapacity[r][s][yy] for yy in YEAR if (float(int(y) - int(yy)) < OperationalLifeStorage[r][s]) and (int(y)-int(yy) >= 0)]), "" # SI4_UndiscountedCapitalInvestmentStorage model += CapitalInvestmentStorage[r][s][y] == CapitalCostStorage[r][s][y] * NewStorageCapacity[r][s][y], "" # SI5_DiscountingCapitalInvestmentStorage model += DiscountedCapitalInvestmentStorage[r][s][y] == CapitalInvestmentStorage[r][s][y] * (1/ ((1+DiscountRate[r])**(int(y) - int(min(YEAR))))), "" # SI6_SalvageValueStorageAtEndOfPeriod1 if float(int(y) + OperationalLifeStorage[r][s] - 1) <= float(max(YEAR)): model += SalvageValueStorage[r][s][y] == 0, "" # SI7_SalvageValueStorageAtEndOfPeriod2 if ((DepreciationMethod[r] == 1) and (float(int(y)+OperationalLifeStorage[r][s]-1) > float(max(YEAR))) and (DiscountRate[r] == 0)) or ((DepreciationMethod[r] == 2) and (float(int(y)+OperationalLifeStorage[r][s]-1) > float(max(YEAR)))): model += SalvageValueStorage[r][s][y] == CapitalInvestmentStorage[r][s][y] * (1-(int(max(YEAR))-int(y)+1))/OperationalLifeStorage[r][s], "" # SI8_SalvageValueStorageAtEndOfPeriod3 if (DepreciationMethod[r] == 1) and (float(int(y)+OperationalLifeStorage[r][s]-1) > float(max(YEAR))) and (DiscountRate[r] > 0): model += SalvageValueStorage[r][s][y] == CapitalInvestmentStorage[r][s][y] * (1-(((1+DiscountRate[r])**(int(max(YEAR)) - int(y)+1)-1)/((1+DiscountRate[r])**OperationalLifeStorage[r][s]-1))), "" # SI9_SalvageValueStorageDiscountedToStartYear model += DiscountedSalvageValueStorage[r][s][y] == SalvageValueStorage[r][s][y] * (1 /((1+DiscountRate[r])**(int(max(YEAR))- int(min(YEAR))+1))), "" # SI10_TotalDiscountedCostByStorage model += TotalDiscountedStorageCost[r][s][y] == DiscountedCapitalInvestmentStorage[r][s][y]-DiscountedSalvageValueStorage[r][s][y], "" ######### Capital Costs ######### for r in REGION: for t in TECHNOLOGY: for y in YEAR: # CC1_UndiscountedCapitalInvestment model += CapitalInvestment[r][t][y] == CapitalCost[r][t][y] * NewCapacity[r][t][y], "" # CC2_DiscountingCapitalInvestment model += DiscountedCapitalInvestment[r][t][y] == CapitalInvestment[r][t][y] * (1/((1 + DiscountRate[r]) ** (int(y) - int(min(YEAR))))), "" ######### Salvage Value ######### for r in REGION: for y in YEAR: for t in TECHNOLOGY: # SV1_SalvageValueAtEndOfPeriod1 if (DepreciationMethod[r] == 1) and (float(int(y) + OperationalLife[r][t] - 1) > float(max(YEAR))) and (DiscountRate[r] > 0): model += SalvageValue[r][t][y] == CapitalCost[r][t][y] * NewCapacity[r][t][y] * (1 - (((1 + DiscountRate[r]) ** (int(max(YEAR)) - int(y) + 1) - 1) / ((1 + DiscountRate[r]) ** OperationalLife[r][t] - 1))), "" # SV2_SalvageValueAtEndOfPeriod2 if ((DepreciationMethod[r] == 1) and (float(int(y) + OperationalLife[r][t] - 1) > float(max(YEAR))) and (DiscountRate[r] == 0)) or ((DepreciationMethod[r] == 2) and (float(int(y) + OperationalLife[r][t] - 1) > float(max(YEAR)))): model += SalvageValue[r][t][y] == CapitalCost[r][t][y] * NewCapacity[r][t][y] * (1 - (int(max(YEAR)) - int(y) + 1) / OperationalLife[r][t]), "" # SV3_SalvageValueAtEndOfPeriod3 if float(int(y) + OperationalLife[r][t] - 1) <= float(max(YEAR)): model += SalvageValue[r][t][y] == 0, "" # SV4_SalvageValueDiscountedToStartYear model += DiscountedSalvageValue[r][t][y] == SalvageValue[r][t][y] * (1 / ((1 + DiscountRate[r]) ** (1 + int(max(YEAR)) - int(min(YEAR))))), "" ######### Operating Costs ######### for r in REGION: for t in TECHNOLOGY: for y in YEAR: # OC1_OperatingCostsVariable model += AnnualVariableOperatingCost[r][t][y] == pulp.lpSum([TotalAnnualTechnologyActivityByMode[r][t][m][y] * VariableCost[r][t][m][y] for m in MODE_OF_OPERATION]), "" # OC2_OperatingCostsFixedAnnual model += AnnualFixedOperatingCost[r][t][y] == TotalCapacityAnnual[r][t][y] * FixedCost[r][t][y], "" # OC3_OperatingCostsTotalAnnual model += OperatingCost[r][t][y] == AnnualFixedOperatingCost[r][t][y] + AnnualVariableOperatingCost[r][t][y], "" # OC4_DiscountedOperatingCostsTotalAnnual model += DiscountedOperatingCost[r][t][y] == OperatingCost[r][t][y] * (1 /((1 + DiscountRate[r]) ** (int(y) - int(min(YEAR)) + 0.5))), "" ######### Total Discounted Costs ######### for r in REGION: for y in YEAR: for t in TECHNOLOGY: # TDC1_TotalDiscountedCostByTechnology model += TotalDiscountedCostByTechnology[r][t][y] == DiscountedOperatingCost[r][t][y] + DiscountedCapitalInvestment[r][t][y] + DiscountedTechnologyEmissionsPenalty[r][t][y] - DiscountedSalvageValue[r][t][y], "" # TDC2_TotalDiscountedCost model += TotalDiscountedCost[r][y] == pulp.lpSum([TotalDiscountedCostByTechnology[r][t][y] for t in TECHNOLOGY]) + pulp.lpSum([TotalDiscountedStorageCost[r][s][y] for s in STORAGE]), "" ######### Total Capacity Constraints ######### for r in REGION: for y in YEAR: for t in TECHNOLOGY: # TCC1_TotalAnnualMaxCapacityConstraint model += TotalCapacityAnnual[r][t][y] <= TotalAnnualMaxCapacity[r][t][y], "" # TCC2_TotalAnnualMinCapacityConstraint if TotalAnnualMinCapacity[r][t][y] > 0: model += TotalCapacityAnnual[r][t][y] >= TotalAnnualMinCapacity[r][t][y], "" ######### New Capacity Constraints ######### for r in REGION: for y in YEAR: for t in TECHNOLOGY: # NCC1_TotalAnnualMaxNewCapacityConstraint model += NewCapacity[r][t][y] <= TotalAnnualMaxCapacityInvestment[r][t][y], "" # NCC2_TotalAnnualMinNewCapacityConstraint if TotalAnnualMinCapacityInvestment[r][t][y] > 0: model += NewCapacity[r][t][y] >= TotalAnnualMinCapacityInvestment[r][t][y], "" ######### Annual Activity Constraints ######### for r in REGION: for t in TECHNOLOGY: for y in YEAR: # AAC1_TotalAnnualTechnologyActivity model += TotalTechnologyAnnualActivity[r][t][y] == pulp.lpSum([RateOfTotalActivity[r][t][l][y] * YearSplit[l][y] for l in TIMESLICE]), "" # AAC2_TotalAnnualTechnologyActivityUpperLimit model += TotalTechnologyAnnualActivity[r][t][y] <= TotalTechnologyAnnualActivityUpperLimit[r][t][y], "" # AAC3_TotalAnnualTechnologyActivityLowerLimit if TotalTechnologyAnnualActivityLowerLimit[r][t][y] > 0: model += TotalTechnologyAnnualActivity[r][t][y] >= TotalTechnologyAnnualActivityLowerLimit[r][t][y], "" ######### Total Activity Constraints ######### for r in REGION: for t in TECHNOLOGY: # TAC1_TotalModelHorizonTechnologyActivity model += TotalTechnologyModelPeriodActivity[r][t] == pulp.lpSum([TotalTechnologyAnnualActivity[r][t][y] for y in YEAR]), "" # TAC2_TotalModelHorizonTechnologyActivityUpperLimit if TotalTechnologyModelPeriodActivityUpperLimit[r][t] > 0: model += TotalTechnologyModelPeriodActivity[r][t] <= TotalTechnologyModelPeriodActivityUpperLimit[r][t], "" # TAC3_TotalModelHorizenTechnologyActivityLowerLimit if TotalTechnologyModelPeriodActivityLowerLimit[r][t] > 0: model += TotalTechnologyModelPeriodActivity[r][t] >= TotalTechnologyModelPeriodActivityLowerLimit[r][t], "" ######### Reserve Margin Constraint ######### for r in REGION: for y in YEAR: # RM1_ReserveMargin_TechnologiesIncluded_In_Activity_Units model += TotalCapacityInReserveMargin[r][y] == pulp.lpSum([TotalCapacityAnnual[r][t][y] * ReserveMarginTagTechnology[r][t][y] * CapacityToActivityUnit[r][t] for t in TECHNOLOGY]), "" for l in TIMESLICE: # RM2_ReserveMargin_FuelsIncluded model += DemandNeedingReserveMargin[r][l][y] == pulp.lpSum([RateOfProduction[r][l][f][y] * ReserveMarginTagFuel[r][f][y] for f in FUEL]), "" # RM3_ReserveMargin_Constraint model += DemandNeedingReserveMargin[r][l][y] <= TotalCapacityInReserveMargin[r][y] * (1/ReserveMargin[r][y]), "" ######### RE Production Target ######### for r in REGION: for y in YEAR: for t in TECHNOLOGY: for f in FUEL: # RE1_FuelProductionByTechnologyAnnual model += ProductionByTechnologyAnnual[r][t][f][y] == pulp.lpSum([ProductionByTechnology[r][l][t][f][y] for l in TIMESLICE]), "" # RE2_TechIncluded model += TotalREProductionAnnual[r][y] == pulp.lpSum([ProductionByTechnologyAnnual[r][t][f][y] * RETagTechnology[r][t][y] for t in TECHNOLOGY for f in FUEL]), "" # RE3_FuelIncluded model += RETotalProductionOfTargetFuelAnnual[r][y] == pulp.lpSum([RateOfProduction[r][l][f][y] * YearSplit[l][y] * RETagFuel[r][f][y] for l in TIMESLICE for f in FUEL]), "" # RE4_EnergyConstraint model += TotalREProductionAnnual[r][y] >= REMinProductionTarget[r][y] * RETotalProductionOfTargetFuelAnnual[r][y], "" for t in TECHNOLOGY: for f in FUEL: # RE5_FuelUseByTechnologyAnnual model += UseByTechnologyAnnual[r][t][f][y] == pulp.lpSum([RateOfUseByTechnology[r][l][t][f][y] * YearSplit[l][y] for l in TIMESLICE]), "" ######### Emissions Accounting ######### for r in REGION: for y in YEAR: for t in TECHNOLOGY: for e in EMISSION: for m in MODE_OF_OPERATION: # E1_AnnualEmissionProductionByMode model += AnnualTechnologyEmissionByMode[r][t][e][m][y] == EmissionActivityRatio[r][t][e][m][y] * TotalAnnualTechnologyActivityByMode[r][t][m][y], "" # E2_AnnualEmissionProduction model += AnnualTechnologyEmission[r][t][e][y] == pulp.lpSum([AnnualTechnologyEmissionByMode[r][t][e][m][y] for m in MODE_OF_OPERATION]), "" # E3_EmissionsPenaltyByTechAndEmission model += AnnualTechnologyEmissionPenaltyByEmission[r][t][e][y] == AnnualTechnologyEmission[r][t][e][y] * EmissionsPenalty[r][e][y], "" # E4_EmissionsPenaltyByTechnology model += AnnualTechnologyEmissionsPenalty[r][t][y] == pulp.lpSum([AnnualTechnologyEmissionPenaltyByEmission[r][t][e][y] for e in EMISSION]), "" # E5_DiscountedEmissionsPenaltyByTechnology model += DiscountedTechnologyEmissionsPenalty[r][t][y] == AnnualTechnologyEmissionsPenalty[r][t][y] * (1 / ((1 + DiscountRate[r]) ** (int(y) - int(min(YEAR)) + 0.5))), "" for e in EMISSION: # E6_EmissionsAccounting1 model += AnnualEmissions[r][e][y] == pulp.lpSum([AnnualTechnologyEmission[r][t][e][y] for t in TECHNOLOGY]), "" for e in EMISSION: # E7_EmissionsAccounting2 model += pulp.lpSum([AnnualEmissions[r][e][y] for y in YEAR]) == ModelPeriodEmissions[r][e] - ModelPeriodExogenousEmission[r][e], "" for y in YEAR: # E8_AnnualEmissionsLimit model += AnnualEmissions[r][e][y] <= AnnualEmissionLimit[r][e][y] - AnnualExogenousEmission[r][e][y], "" # E9_ModelPeriodEmissionsLimit model += ModelPeriodEmissions[r][e] <= ModelPeriodEmissionLimit[r][e], "" logging.info("{}\tModel is built.".format(dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) # ------------------------------------------------------------------------------------------------------------------ # SOLVE # ------------------------------------------------------------------------------------------------------------------ model.solve() logging.info("{}\tModel is solved.".format(dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) if str(pulp.LpStatus[model.status]) == "Optimal": logging.info("The optimal solution found a cost value of {}.".format(round(model.objective.value(), 2))) # -------------------------------------------------------------------------------------------------------------- # SAVE RESULTS TO DATAFRAME # -------------------------------------------------------------------------------------------------------------- # Create dataframe to save results after the model was run the first time if i == 0: res_df = pd.DataFrame(columns=[ 'SCENARIO', 'VAR_NAME', 'VAR_VALUE', 'REGION', 'REGION2', 'DAYTYPE', 'EMISSION', 'FUEL', 'DAILYTIMEBRACKET', 'SEASON', 'TIMESLICE', 'MODE_OF_OPERATION', 'STORAGE', 'TECHNOLOGY', 'YEAR', 'FLEXIBLEDEMANDTYPE']) res_df = saveResultsTemporary(res_df, model, "Scenario_" + str(i)) logging.info("{}\tResults are saved".format(dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) else: logging.error("{}\tError: Optimisation status for Scenario_{} is: {}".format( dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), pulp.LpStatus[model.status])) del model # Delete model # ---------------------------------------------------------------------------------------------------------------------- # MONTE CARLO SIMULATION - START # ---------------------------------------------------------------------------------------------------------------------- i += 1 # Note: Monte Carlo Simulation is applied to all selected parameters (mcs_parameters). # For each parameter, the mcs_parameters is only applied to parameter values that are not equal to default values, i.e. values that were explicitly set. ######### Reference parameters and data ######### if (len(mcs_parameters) >= 1) and (mcs_num > 0) and (i == 1): # Copy of previous paramteres. This is used to store already generated parameters with data to enhance the performance in the mcs_parameters loops DiscountRate_ref = DiscountRate DaySplit_ref = DaySplit Conversionls_ref = Conversionls Conversionld_ref = Conversionld Conversionlh_ref = Conversionlh DaysInDayType_ref = DaysInDayType TradeRoute_ref = TradeRoute DepreciationMethod_ref = DepreciationMethod SpecifiedAnnualDemand_ref = SpecifiedAnnualDemand SpecifiedDemandProfile_ref = SpecifiedDemandProfile AccumulatedAnnualDemand_ref = AccumulatedAnnualDemand CapacityToActivityUnit_ref = CapacityToActivityUnit TechWithCapacityNeededToMeetPeakTS_ref = TechWithCapacityNeededToMeetPeakTS CapacityFactor_ref = CapacityFactor AvailabilityFactor_ref = AvailabilityFactor OperationalLife_ref = OperationalLife ResidualCapacity_ref = ResidualCapacity InputActivityRatio_ref = InputActivityRatio OutputActivityRatio_ref = OutputActivityRatio CapitalCost_ref = CapitalCost VariableCost_ref = VariableCost FixedCost_ref = FixedCost TechnologyToStorage_ref = TechnologyToStorage TechnologyFromStorage_ref = TechnologyFromStorage StorageLevelStart_ref = StorageLevelStart StorageMaxChargeRate_ref = StorageMaxChargeRate StorageMaxDischargeRate_ref = StorageMaxDischargeRate MinStorageCharge_ref = MinStorageCharge OperationalLifeStorage_ref = OperationalLifeStorage CapitalCostStorage_ref = CapitalCostStorage ResidualStorageCapacity_ref = ResidualStorageCapacity CapacityOfOneTechnologyUnit_ref = CapacityOfOneTechnologyUnit TotalAnnualMaxCapacity_ref = TotalAnnualMaxCapacity TotalAnnualMinCapacity_ref = TotalAnnualMinCapacity TotalAnnualMaxCapacityInvestment_ref = TotalAnnualMaxCapacityInvestment TotalAnnualMinCapacityInvestment_ref = TotalAnnualMinCapacityInvestment TotalTechnologyAnnualActivityUpperLimit_ref = TotalTechnologyAnnualActivityUpperLimit TotalTechnologyAnnualActivityLowerLimit_ref = TotalTechnologyAnnualActivityLowerLimit TotalTechnologyModelPeriodActivityUpperLimit_ref = TotalTechnologyModelPeriodActivityUpperLimit TotalTechnologyModelPeriodActivityLowerLimit_ref = TotalTechnologyModelPeriodActivityLowerLimit ReserveMarginTagTechnology_ref = ReserveMarginTagTechnology ReserveMarginTagFuel_ref = ReserveMarginTagFuel ReserveMargin_ref = ReserveMargin RETagTechnology_ref = RETagTechnology RETagFuel_ref = RETagFuel REMinProductionTarget_ref = REMinProductionTarget EmissionActivityRatio_ref = EmissionActivityRatio EmissionsPenalty_ref = EmissionsPenalty AnnualExogenousEmission_ref = AnnualExogenousEmission AnnualEmissionLimit_ref = AnnualEmissionLimit ModelPeriodExogenousEmission_ref = ModelPeriodExogenousEmission ModelPeriodEmissionLimit_ref = ModelPeriodEmissionLimit ######### Generate random data and overwrite selected parameters for next MCS run ######### ######## Global ######### if ("DiscountRate" in mcs_parameters) and (mcs_num > 0): if i == 1: DiscountRate_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "DiscountRate") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] DiscountRate_mcs_specified = tuple([(str(r)) for r in mcs_df[mcs_df['PARAM'] == "DiscountRate"].REGION]) DiscountRate = {str(r): generateRandomData(DiscountRate_ref[r], mcs_df[(mcs_df['PARAM'] == "DiscountRate") & (mcs_df['REGION'] == r)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r)) in DiscountRate_mcs_specified else generateRandomData(DiscountRate_ref[r], DiscountRate_mcs_default_list) for r in REGION} ######## Demands ######### if ("SpecifiedAnnualDemand" in mcs_parameters) and (mcs_num > 0): if i == 1: SpecifiedAnnualDemand_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "SpecifiedAnnualDemand") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] SpecifiedAnnualDemand_mcs_specified = tuple([(str(r),str(f),str(y)) for r, f, y in zip(mcs_df[mcs_df['PARAM'] == "SpecifiedAnnualDemand"].REGION, mcs_df[mcs_df['PARAM'] == "SpecifiedAnnualDemand"].FUEL, mcs_df[mcs_df['PARAM'] == "SpecifiedAnnualDemand"].YEAR)]) SpecifiedAnnualDemand = {str(r): {str(f): {str(y): generateRandomData(SpecifiedAnnualDemand_ref[r][f][y], mcs_df[(mcs_df['PARAM'] == "SpecifiedAnnualDemand") & (mcs_df['REGION'] == r) & (mcs_df['FUEL'] == f) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r),str(f),str(y)) in SpecifiedAnnualDemand_mcs_specified else generateRandomData(SpecifiedAnnualDemand_ref[r][f][y], SpecifiedAnnualDemand_mcs_default_list) for y in YEAR} for f in FUEL} for r in REGION} if ("AccumulatedAnnualDemand" in mcs_parameters) and (mcs_num > 0): if i == 1: AccumulatedAnnualDemand_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "AccumulatedAnnualDemand") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] AccumulatedAnnualDemand_mcs_specified = tuple([(str(r),str(f),str(y)) for r, f, y in zip(mcs_df[mcs_df['PARAM'] == "AccumulatedAnnualDemand"].REGION, mcs_df[mcs_df['PARAM'] == "AccumulatedAnnualDemand"].FUEL, mcs_df[mcs_df['PARAM'] == "AccumulatedAnnualDemand"].YEAR)]) AccumulatedAnnualDemand = {str(r): {str(f): {str(y): generateRandomData(AccumulatedAnnualDemand_ref[r][f][y], mcs_df[(mcs_df['PARAM'] == "AccumulatedAnnualDemand") & (mcs_df['REGION'] == r) & (mcs_df['FUEL'] == f) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r),str(f),str(y)) in AccumulatedAnnualDemand_mcs_specified else generateRandomData(AccumulatedAnnualDemand_ref[r][f][y], AccumulatedAnnualDemand_mcs_default_list) for y in YEAR} for f in FUEL} for r in REGION} ######### Performance ######### if ("TechWithCapacityNeededToMeetPeakTS" in mcs_parameters) and (mcs_num > 0): if i == 1: TechWithCapacityNeededToMeetPeakTS_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "TechWithCapacityNeededToMeetPeakTS") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] TechWithCapacityNeededToMeetPeakTS_mcs_specified = tuple([(str(r), str(t)) for r, t in zip(mcs_df[mcs_df['PARAM'] == "TechWithCapacityNeededToMeetPeakTS"].REGION, mcs_df[mcs_df['PARAM'] == "TechWithCapacityNeededToMeetPeakTS"].TECHNOLOGY)]) TechWithCapacityNeededToMeetPeakTS = {str(r): {str(t): generateRandomData(TechWithCapacityNeededToMeetPeakTS_ref[r][t], mcs_df[(mcs_df['PARAM'] == "TechWithCapacityNeededToMeetPeakTS") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(t)) in TechWithCapacityNeededToMeetPeakTS_mcs_specified else generateRandomData(TechWithCapacityNeededToMeetPeakTS_ref[r][t], TechWithCapacityNeededToMeetPeakTS_mcs_default_list) for t in TECHNOLOGY} for r in REGION} if ("CapacityFactor" in mcs_parameters) and (mcs_num > 0): if i == 1: CapacityFactor_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "CapacityFactor") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] CapacityFactor_mcs_specified = tuple([(str(r),str(t),str(l),str(y)) for r, t, l, y in zip(mcs_df[mcs_df['PARAM'] == "CapacityFactor"].REGION, mcs_df[mcs_df['PARAM'] == "CapacityFactor"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "CapacityFactor"].TIMESLICE, mcs_df[mcs_df['PARAM'] == "CapacityFactor"].YEAR)]) CapacityFactor = {str(r): {str(t): {str(l): {str(y): generateRandomData(CapacityFactor_ref[r][t][l][y], mcs_df[(mcs_df['PARAM'] == "CapacityFactor") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r),str(t),str(l),str(y)) in CapacityFactor_mcs_specified else generateRandomData(CapacityFactor_ref[r][t][l][y], CapacityFactor_mcs_default_list) for y in YEAR} for l in TIMESLICE} for t in TECHNOLOGY} for r in REGION} if ("AvailabilityFactor" in mcs_parameters) and (mcs_num > 0): if i == 1: AvailabilityFactor_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "AvailabilityFactor") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] AvailabilityFactor_mcs_specified = tuple([(str(r),str(t),str(y)) for r, t, y in zip(mcs_df[mcs_df['PARAM'] == "AvailabilityFactor"].REGION, mcs_df[mcs_df['PARAM'] == "AvailabilityFactor"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "AvailabilityFactor"].YEAR)]) AvailabilityFactor = {str(r): {str(t): {str(y): generateRandomData(AvailabilityFactor_ref[r][t][y], mcs_df[(mcs_df['PARAM'] == "AvailabilityFactor") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r),str(t),str(y)) in AvailabilityFactor_mcs_specified else generateRandomData(AvailabilityFactor_ref[r][t][y], AvailabilityFactor_mcs_default_list) for y in YEAR} for t in TECHNOLOGY} for r in REGION} if ("OperationalLife" in mcs_parameters) and (mcs_num > 0): if i == 1: OperationalLife_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "OperationalLife") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] OperationalLife_mcs_specified = tuple([(str(r), str(t)) for r, t in zip(mcs_df[mcs_df['PARAM'] == "OperationalLife"].REGION, mcs_df[mcs_df['PARAM'] == "OperationalLife"].TECHNOLOGY)]) OperationalLife = {str(r): {str(t): int(generateRandomData(OperationalLife_ref[r][t], mcs_df[(mcs_df['PARAM'] == "OperationalLife") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0])) if (str(r), str(t)) in OperationalLife_mcs_specified else int(generateRandomData(OperationalLife_ref[r][t], OperationalLife_mcs_default_list)) for t in TECHNOLOGY} for r in REGION} if ("InputActivityRatio" in mcs_parameters) and (mcs_num > 0): if i == 1: InputActivityRatio_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "InputActivityRatio") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] InputActivityRatio_mcs_specified = tuple([(str(r),str(t),str(f),str(m),str(y)) for r, t, f, m, y in zip(mcs_df[mcs_df['PARAM'] == "InputActivityRatio"].REGION, mcs_df[mcs_df['PARAM'] == "InputActivityRatio"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "InputActivityRatio"].FUEL, mcs_df[mcs_df['PARAM'] == "InputActivityRatio"].MODE_OF_OPERATION, mcs_df[mcs_df['PARAM'] == "InputActivityRatio"].YEAR)]) InputActivityRatio = {str(r): {str(t): {str(f): {str(m): {str(y): generateRandomData(InputActivityRatio_ref[r][t][f][m][y], mcs_df[(mcs_df['PARAM'] == "InputActivityRatio") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['FUEL'] == f) & (mcs_df['MODE_OF_OPERATION'] == m) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r),str(t),str(f),str(m),str(y)) in InputActivityRatio_mcs_specified else generateRandomData(InputActivityRatio_ref[r][t][f][m][y], InputActivityRatio_mcs_default_list) for y in YEAR} for m in MODE_OF_OPERATION} for f in FUEL} for t in TECHNOLOGY} for r in REGION} if ("OutputActivityRatio" in mcs_parameters) and (mcs_num > 0): if i == 1: OutputActivityRatio_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "OutputActivityRatio") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] OutputActivityRatio_mcs_specified = tuple([(str(r),str(t),str(f),str(m),str(y)) for r, t, f, m, y in zip(mcs_df[mcs_df['PARAM'] == "OutputActivityRatio"].REGION, mcs_df[mcs_df['PARAM'] == "OutputActivityRatio"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "OutputActivityRatio"].FUEL, mcs_df[mcs_df['PARAM'] == "OutputActivityRatio"].MODE_OF_OPERATION, mcs_df[mcs_df['PARAM'] == "OutputActivityRatio"].YEAR)]) OutputActivityRatio = {str(r): {str(t): {str(f): {str(m): {str(y): generateRandomData(OutputActivityRatio_ref[r][t][f][m][y], mcs_df[(mcs_df['PARAM'] == "OutputActivityRatio") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['FUEL'] == f) & (mcs_df['MODE_OF_OPERATION'] == m) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r),str(t),str(f),str(m),str(y)) in OutputActivityRatio_mcs_specified else generateRandomData(OutputActivityRatio_ref[r][t][f][m][y], OutputActivityRatio_mcs_default_list) for y in YEAR} for m in MODE_OF_OPERATION} for f in FUEL} for t in TECHNOLOGY} for r in REGION} ######### Technology Costs ######### if ("CapitalCost" in mcs_parameters) and (mcs_num > 0): if i == 1: CapitalCost_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "CapitalCost") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] CapitalCost_mcs_specified = tuple([(str(r),str(t),str(y)) for r, t, y in zip(mcs_df[mcs_df['PARAM'] == "CapitalCost"].REGION, mcs_df[mcs_df['PARAM'] == "CapitalCost"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "CapitalCost"].YEAR)]) CapitalCost = {str(r): {str(t): {str(y): generateRandomData(CapitalCost_ref[r][t][y], mcs_df[(mcs_df['PARAM'] == "CapitalCost") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r),str(t),str(y)) in CapitalCost_mcs_specified else generateRandomData(CapitalCost_ref[r][t][y], CapitalCost_mcs_default_list) for y in YEAR} for t in TECHNOLOGY} for r in REGION} if ("VariableCost" in mcs_parameters) and (mcs_num > 0): if i == 1: VariableCost_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "VariableCost") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] VariableCost_mcs_specified = tuple([(str(r),str(t),str(m),str(y)) for r, t, m, y in zip(mcs_df[mcs_df['PARAM'] == "VariableCost"].REGION, mcs_df[mcs_df['PARAM'] == "VariableCost"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "VariableCost"].MODE_OF_OPERATION, mcs_df[mcs_df['PARAM'] == "VariableCost"].YEAR)]) VariableCost = {str(r): {str(t): {str(m): {str(y): generateRandomData(VariableCost_ref[r][t][m][y], mcs_df[(mcs_df['PARAM'] == "VariableCost") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['MODE_OF_OPERATION'] == m) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r),str(t),str(m),str(y)) in VariableCost_mcs_specified else generateRandomData(VariableCost_ref[r][t][m][y], VariableCost_mcs_default_list) for y in YEAR} for m in MODE_OF_OPERATION} for t in TECHNOLOGY} for r in REGION} if ("FixedCost" in mcs_parameters) and (mcs_num > 0): if i == 1: FixedCost_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "FixedCost") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] FixedCost_mcs_specified = tuple([(str(r),str(t),str(y)) for r, t, y in zip(mcs_df[mcs_df['PARAM'] == "FixedCost"].REGION, mcs_df[mcs_df['PARAM'] == "FixedCost"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "FixedCost"].YEAR)]) FixedCost = {str(r): {str(t): {str(y): generateRandomData(FixedCost_ref[r][t][y], mcs_df[(mcs_df['PARAM'] == "FixedCost") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r),str(t),str(y)) in FixedCost_mcs_specified else generateRandomData(FixedCost_ref[r][t][y], FixedCost_mcs_default_list) for y in YEAR} for t in TECHNOLOGY} for r in REGION} ######### Storage ######### if ("StorageLevelStart" in mcs_parameters) and (mcs_num > 0): if i == 1: StorageLevelStart_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "StorageLevelStart") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] StorageLevelStart_mcs_specified = tuple([(str(r), str(s)) for r, s in zip(mcs_df[mcs_df['PARAM'] == "StorageLevelStart"].REGION, mcs_df[mcs_df['PARAM'] == "StorageLevelStart"].STORAGE)]) StorageLevelStart = {str(r): {str(s): generateRandomData(StorageLevelStart_ref[r][s], mcs_df[(mcs_df['PARAM'] == "StorageLevelStart") & (mcs_df['REGION'] == r) & (mcs_df['STORAGE'] == s)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(s)) in StorageLevelStart_mcs_specified else generateRandomData(StorageLevelStart_ref[r][s], StorageLevelStart_mcs_default_list) for s in STORAGE} for r in REGION} if ("StorageMaxChargeRate" in mcs_parameters) and (mcs_num > 0): if i == 1: StorageMaxChargeRate_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "StorageMaxChargeRate") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] StorageMaxChargeRate_mcs_specified = tuple([(str(r), str(s)) for r, s in zip(mcs_df[mcs_df['PARAM'] == "StorageMaxChargeRate"].REGION, mcs_df[mcs_df['PARAM'] == "StorageMaxChargeRate"].STORAGE)]) StorageMaxChargeRate = {str(r): {str(s): generateRandomData(StorageMaxChargeRate_ref[r][s], mcs_df[(mcs_df['PARAM'] == "StorageMaxChargeRate") & (mcs_df['REGION'] == r) & (mcs_df['STORAGE'] == s)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(s)) in StorageMaxChargeRate_mcs_specified else generateRandomData(StorageMaxChargeRate_ref[r][s], StorageMaxChargeRate_mcs_default_list) for s in STORAGE} for r in REGION} if ("StorageMaxDischargeRate" in mcs_parameters) and (mcs_num > 0): if i == 1: StorageMaxDischargeRate_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "StorageMaxDischargeRate") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] StorageMaxDischargeRate_mcs_specified = tuple([(str(r), str(s)) for r, s in zip(mcs_df[mcs_df['PARAM'] == "StorageMaxDischargeRate"].REGION, mcs_df[mcs_df['PARAM'] == "StorageMaxDischargeRate"].STORAGE)]) StorageMaxDischargeRate = {str(r): {str(s): generateRandomData(StorageMaxDischargeRate_ref[r][s], mcs_df[(mcs_df['PARAM'] == "StorageMaxDischargeRate") & (mcs_df['REGION'] == r) & (mcs_df['STORAGE'] == s)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(s)) in StorageMaxDischargeRate_mcs_specified else generateRandomData(StorageMaxDischargeRate_ref[r][s], StorageMaxDischargeRate_mcs_default_list) for s in STORAGE} for r in REGION} if ("OperationalLifeStorage" in mcs_parameters) and (mcs_num > 0): if i == 1: OperationalLifeStorage_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "OperationalLifeStorage") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] OperationalLifeStorage_mcs_specified = tuple([(str(r), str(s)) for r, s in zip(mcs_df[mcs_df['PARAM'] == "OperationalLifeStorage"].REGION, mcs_df[mcs_df['PARAM'] == "OperationalLifeStorage"].STORAGE)]) OperationalLifeStorage = {str(r): {str(s): generateRandomData(OperationalLifeStorage_ref[r][s], mcs_df[(mcs_df['PARAM'] == "OperationalLifeStorage") & (mcs_df['REGION'] == r) & (mcs_df['STORAGE'] == s)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(s)) in OperationalLifeStorage_mcs_specified else generateRandomData(OperationalLifeStorage_ref[r][s], OperationalLifeStorage_mcs_default_list) for s in STORAGE} for r in REGION} if ("CapitalCostStorage" in mcs_parameters) and (mcs_num > 0): if i == 1: CapitalCostStorage_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "CapitalCostStorage") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] CapitalCostStorage_mcs_specified = tuple([(str(r), str(s), str(y)) for r, s, y in zip(mcs_df[mcs_df['PARAM'] == "CapitalCostStorage"].REGION, mcs_df[mcs_df['PARAM'] == "CapitalCostStorage"].STORAGE, mcs_df[mcs_df['PARAM'] == "CapitalCostStorage"].YEAR)]) CapitalCostStorage = {str(r): {str(s): {str(y): generateRandomData(CapitalCostStorage_ref[r][s][y], mcs_df[(mcs_df['PARAM'] == "CapitalCostStorage") & (mcs_df['REGION'] == r) & (mcs_df['STORAGE'] == s) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(s), str(y)) in CapitalCostStorage_mcs_specified else generateRandomData(CapitalCostStorage_ref[r][s][y], CapitalCostStorage_mcs_default_list) for y in YEAR} for s in STORAGE} for r in REGION} if ("ResidualStorageCapacity" in mcs_parameters) and (mcs_num > 0): if i == 1: ResidualStorageCapacity_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "ResidualStorageCapacity") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] ResidualStorageCapacity_mcs_specified = tuple([(str(r), str(s), str(y)) for r, s, y in zip(mcs_df[mcs_df['PARAM'] == "ResidualStorageCapacity"].REGION, mcs_df[mcs_df['PARAM'] == "ResidualStorageCapacity"].STORAGE, mcs_df[mcs_df['PARAM'] == "ResidualStorageCapacity"].YEAR)]) ResidualStorageCapacity = {str(r): {str(s): {str(y): generateRandomData(ResidualStorageCapacity_ref[r][s][y], mcs_df[(mcs_df['PARAM'] == "ResidualStorageCapacity") & (mcs_df['REGION'] == r) & (mcs_df['STORAGE'] == s) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(s), str(y)) in ResidualStorageCapacity_mcs_specified else generateRandomData(ResidualStorageCapacity_ref[r][s][y], ResidualStorageCapacity_mcs_default_list) for y in YEAR} for s in STORAGE} for r in REGION} ######### Capacity Constraints ######### if ("CapacityOfOneTechnologyUnit" in mcs_parameters) and (mcs_num > 0): if i == 1: CapacityOfOneTechnologyUnit_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "CapacityOfOneTechnologyUnit") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] CapacityOfOneTechnologyUnit_mcs_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(mcs_df[mcs_df['PARAM'] == "CapacityOfOneTechnologyUnit"].REGION, mcs_df[mcs_df['PARAM'] == "CapacityOfOneTechnologyUnit"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "CapacityOfOneTechnologyUnit"].YEAR)]) CapacityOfOneTechnologyUnit = {str(r): {str(t): {str(y): generateRandomData(CapacityOfOneTechnologyUnit_ref[r][t][y], mcs_df[(mcs_df['PARAM'] == "CapacityOfOneTechnologyUnit") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(t), str(y)) in CapacityOfOneTechnologyUnit_mcs_specified else generateRandomData(CapacityOfOneTechnologyUnit_ref[r][t][y], CapacityOfOneTechnologyUnit_mcs_default_list) for y in YEAR} for t in TECHNOLOGY} for r in REGION} ######### Investment Constraints ######### if ("TotalAnnualMaxCapacityInvestment" in mcs_parameters) and (mcs_num > 0): if i == 1: TotalAnnualMaxCapacityInvestment_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "TotalAnnualMaxCapacityInvestment") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] TotalAnnualMaxCapacityInvestment_mcs_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(mcs_df[mcs_df['PARAM'] == "TotalAnnualMaxCapacityInvestment"].REGION, mcs_df[mcs_df['PARAM'] == "TotalAnnualMaxCapacityInvestment"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "TotalAnnualMaxCapacityInvestment"].YEAR)]) TotalAnnualMaxCapacityInvestment = {str(r): {str(t): {str(y): generateRandomData(TotalAnnualMaxCapacityInvestment_ref[r][t][y], mcs_df[(mcs_df['PARAM'] == "TotalAnnualMaxCapacityInvestment") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(t), str(y)) in TotalAnnualMaxCapacityInvestment_mcs_specified else generateRandomData(TotalAnnualMaxCapacityInvestment_ref[r][t][y], TotalAnnualMaxCapacityInvestment_mcs_default_list) for y in YEAR} for t in TECHNOLOGY} for r in REGION} if ("TotalAnnualMinCapacityInvestment" in mcs_parameters) and (mcs_num > 0): if i == 1: TotalAnnualMinCapacityInvestment_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "TotalAnnualMinCapacityInvestment") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] TotalAnnualMinCapacityInvestment_mcs_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(mcs_df[mcs_df['PARAM'] == "TotalAnnualMinCapacityInvestment"].REGION, mcs_df[mcs_df['PARAM'] == "TotalAnnualMinCapacityInvestment"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "TotalAnnualMinCapacityInvestment"].YEAR)]) TotalAnnualMinCapacityInvestment = {str(r): {str(t): {str(y): generateRandomData(TotalAnnualMinCapacityInvestment_ref[r][t][y], mcs_df[(mcs_df['PARAM'] == "TotalAnnualMinCapacityInvestment") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(t), str(y)) in TotalAnnualMinCapacityInvestment_mcs_specified else generateRandomData(TotalAnnualMinCapacityInvestment_ref[r][t][y], TotalAnnualMinCapacityInvestment_mcs_default_list) for y in YEAR} for t in TECHNOLOGY} for r in REGION} ######### Activity Constraints ######### if ("TotalTechnologyAnnualActivityUpperLimit" in mcs_parameters) and (mcs_num > 0): if i == 1: TotalTechnologyAnnualActivityUpperLimit_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "TotalTechnologyAnnualActivityUpperLimit") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] TotalTechnologyAnnualActivityUpperLimit_mcs_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(mcs_df[mcs_df['PARAM'] == "TotalTechnologyAnnualActivityUpperLimit"].REGION, mcs_df[mcs_df['PARAM'] == "TotalTechnologyAnnualActivityUpperLimit"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "TotalTechnologyAnnualActivityUpperLimit"].YEAR)]) TotalTechnologyAnnualActivityUpperLimit = {str(r): {str(t): {str(y): generateRandomData(TotalTechnologyAnnualActivityUpperLimit_ref[r][t][y], mcs_df[(mcs_df['PARAM'] == "TotalTechnologyAnnualActivityUpperLimit") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(t), str(y)) in TotalTechnologyAnnualActivityUpperLimit_mcs_specified else generateRandomData(TotalTechnologyAnnualActivityUpperLimit_ref[r][t][y], TotalTechnologyAnnualActivityUpperLimit_mcs_default_list) for y in YEAR} for t in TECHNOLOGY} for r in REGION} if ("TotalTechnologyAnnualActivityLowerLimit" in mcs_parameters) and (mcs_num > 0): if i == 1: TotalTechnologyAnnualActivityLowerLimit_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "TotalTechnologyAnnualActivityLowerLimit") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] TotalTechnologyAnnualActivityLowerLimit_mcs_specified = tuple([(str(r), str(t), str(y)) for r, t, y in zip(mcs_df[mcs_df['PARAM'] == "TotalTechnologyAnnualActivityLowerLimit"].REGION, mcs_df[mcs_df['PARAM'] == "TotalTechnologyAnnualActivityLowerLimit"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "TotalTechnologyAnnualActivityLowerLimit"].YEAR)]) TotalTechnologyAnnualActivityLowerLimit = {str(r): {str(t): {str(y): generateRandomData(TotalTechnologyAnnualActivityLowerLimit_ref[r][t][y], mcs_df[(mcs_df['PARAM'] == "TotalTechnologyAnnualActivityLowerLimit") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(t), str(y)) in TotalTechnologyAnnualActivityLowerLimit_mcs_specified else generateRandomData(TotalTechnologyAnnualActivityLowerLimit_ref[r][t][y], TotalTechnologyAnnualActivityLowerLimit_mcs_default_list) for y in YEAR} for t in TECHNOLOGY} for r in REGION} if ("TotalTechnologyModelPeriodActivityUpperLimit" in mcs_parameters) and (mcs_num > 0): if i == 1: TotalTechnologyModelPeriodActivityUpperLimit_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "TotalTechnologyModelPeriodActivityUpperLimit") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] TotalTechnologyModelPeriodActivityUpperLimit_mcs_specified = tuple([(str(r), str(t)) for r, t in zip(mcs_df[mcs_df['PARAM'] == "TotalTechnologyModelPeriodActivityUpperLimit"].REGION, mcs_df[mcs_df['PARAM'] == "TotalTechnologyModelPeriodActivityUpperLimit"].TECHNOLOGY)]) TotalTechnologyModelPeriodActivityUpperLimit = {str(r): {str(t): generateRandomData(TotalTechnologyModelPeriodActivityUpperLimit_ref[r][t], mcs_df[(mcs_df['PARAM'] == "TotalTechnologyModelPeriodActivityUpperLimit") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(t)) in TotalTechnologyModelPeriodActivityUpperLimit_mcs_specified else generateRandomData(TotalTechnologyModelPeriodActivityUpperLimit_ref[r][t], TotalTechnologyModelPeriodActivityUpperLimit_mcs_default_list) for t in TECHNOLOGY} for r in REGION} if ("TotalTechnologyModelPeriodActivityLowerLimit" in mcs_parameters) and (mcs_num > 0): if i == 1: TotalTechnologyModelPeriodActivityLowerLimit_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "TotalTechnologyModelPeriodActivityLowerLimit") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] TotalTechnologyModelPeriodActivityLowerLimit_mcs_specified = tuple([(str(r), str(t)) for r, t in zip(mcs_df[mcs_df['PARAM'] == "TotalTechnologyModelPeriodActivityLowerLimit"].REGION, mcs_df[mcs_df['PARAM'] == "TotalTechnologyModelPeriodActivityLowerLimit"].TECHNOLOGY)]) TotalTechnologyModelPeriodActivityLowerLimit = {str(r): {str(t): generateRandomData(TotalTechnologyModelPeriodActivityLowerLimit_ref[r][t], mcs_df[(mcs_df['PARAM'] == "TotalTechnologyModelPeriodActivityLowerLimit") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(t)) in TotalTechnologyModelPeriodActivityLowerLimit_mcs_specified else generateRandomData(TotalTechnologyModelPeriodActivityLowerLimit_ref[r][t], TotalTechnologyModelPeriodActivityLowerLimit_mcs_default_list) for t in TECHNOLOGY} for r in REGION} ######### Emissions & Penalties ######### if ("EmissionActivityRatio" in mcs_parameters) and (mcs_num > 0): if i == 1: EmissionActivityRatio_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "EmissionActivityRatio") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] EmissionActivityRatio_mcs_specified = tuple([(str(r),str(t),str(e),str(m),str(y)) for r, t, e, m, y in zip(mcs_df[mcs_df['PARAM'] == "EmissionActivityRatio"].REGION, mcs_df[mcs_df['PARAM'] == "EmissionActivityRatio"].TECHNOLOGY, mcs_df[mcs_df['PARAM'] == "EmissionActivityRatio"].EMISSION, mcs_df[mcs_df['PARAM'] == "EmissionActivityRatio"].MODE_OF_OPERATION, mcs_df[mcs_df['PARAM'] == "EmissionActivityRatio"].YEAR)]) EmissionActivityRatio = {str(r): {str(t): {str(e): {str(m): {str(y): generateRandomData(EmissionActivityRatio_ref[r][t][e][m][y], mcs_df[(mcs_df['PARAM'] == "EmissionActivityRatio") & (mcs_df['REGION'] == r) & (mcs_df['TECHNOLOGY'] == t) & (mcs_df['EMISSION'] == e) & (mcs_df['MODE_OF_OPERATION'] == m) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r),str(t),str(e),str(m),str(y)) in EmissionActivityRatio_mcs_specified else generateRandomData(EmissionActivityRatio_ref[r][t][e][m][y], EmissionActivityRatio_mcs_default_list) for y in YEAR} for m in MODE_OF_OPERATION} for e in EMISSION} for t in TECHNOLOGY} for r in REGION} if ("EmissionsPenalty" in mcs_parameters) and (mcs_num > 0): if i == 1: EmissionsPenalty_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "EmissionsPenalty") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] EmissionsPenalty_mcs_specified = tuple([(str(r), str(e), str(y)) for r, e, y in zip(mcs_df[mcs_df['PARAM'] == "EmissionsPenalty"].REGION, mcs_df[mcs_df['PARAM'] == "EmissionsPenalty"].EMISSION, mcs_df[mcs_df['PARAM'] == "EmissionsPenalty"].YEAR)]) EmissionsPenalty = {str(r): {str(e): {str(y): generateRandomData(EmissionsPenalty_ref[r][e][y], mcs_df[(mcs_df['PARAM'] == "EmissionsPenalty") & (mcs_df['REGION'] == r) & (mcs_df['EMISSION'] == e) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(e), str(y)) in EmissionsPenalty_mcs_specified else generateRandomData(EmissionsPenalty_ref[r][e][y], EmissionsPenalty_mcs_default_list) for y in YEAR} for e in EMISSION} for r in REGION} if ("AnnualExogenousEmission" in mcs_parameters) and (mcs_num > 0): if i == 1: AnnualExogenousEmission_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "AnnualExogenousEmission") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] AnnualExogenousEmission_mcs_specified = tuple([(str(r), str(e), str(y)) for r, e, y in zip(mcs_df[mcs_df['PARAM'] == "AnnualExogenousEmission"].REGION, mcs_df[mcs_df['PARAM'] == "AnnualExogenousEmission"].EMISSION, mcs_df[mcs_df['PARAM'] == "AnnualExogenousEmission"].YEAR)]) AnnualExogenousEmission = {str(r): {str(e): {str(y): generateRandomData(AnnualExogenousEmission_ref[r][e][y], mcs_df[(mcs_df['PARAM'] == "AnnualExogenousEmission") & (mcs_df['REGION'] == r) & (mcs_df['EMISSION'] == e) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(e), str(y)) in AnnualExogenousEmission_mcs_specified else generateRandomData(AnnualExogenousEmission_ref[r][e][y], AnnualExogenousEmission_mcs_default_list) for y in YEAR} for e in EMISSION} for r in REGION} if ("AnnualEmissionLimit" in mcs_parameters) and (mcs_num > 0): if i == 1: AnnualEmissionLimit_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "AnnualEmissionLimit") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] AnnualEmissionLimit_mcs_specified = tuple([(str(r), str(e), str(y)) for r, e, y in zip(mcs_df[mcs_df['PARAM'] == "AnnualEmissionLimit"].REGION, mcs_df[mcs_df['PARAM'] == "AnnualEmissionLimit"].EMISSION, mcs_df[mcs_df['PARAM'] == "AnnualEmissionLimit"].YEAR)]) AnnualEmissionLimit = {str(r): {str(e): {str(y): generateRandomData(AnnualEmissionLimit_ref[r][e][y], mcs_df[(mcs_df['PARAM'] == "AnnualEmissionLimit") & (mcs_df['REGION'] == r) & (mcs_df['EMISSION'] == e) & (mcs_df['YEAR'] == y)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(e), str(y)) in AnnualEmissionLimit_mcs_specified else generateRandomData(AnnualEmissionLimit_ref[r][e][y], AnnualEmissionLimit_mcs_default_list) for y in YEAR} for e in EMISSION} for r in REGION} if ("ModelPeriodExogenousEmission" in mcs_parameters) and (mcs_num > 0): if i == 1: ModelPeriodExogenousEmission_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "ModelPeriodExogenousEmission") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] ModelPeriodExogenousEmission_mcs_specified = tuple([(str(r), str(e)) for r, e in zip(mcs_df[mcs_df['PARAM'] == "ModelPeriodExogenousEmission"].REGION, mcs_df[mcs_df['PARAM'] == "ModelPeriodExogenousEmission"].EMISSION)]) ModelPeriodExogenousEmission = {str(r): {str(e): generateRandomData(ModelPeriodExogenousEmission_ref[r][e], mcs_df[(mcs_df['PARAM'] == "ModelPeriodExogenousEmission") & (mcs_df['REGION'] == r) & (mcs_df['EMISSION'] == e)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(e)) in ModelPeriodExogenousEmission_mcs_specified else generateRandomData(ModelPeriodExogenousEmission_ref[r][e], ModelPeriodExogenousEmission_mcs_default_list) for e in EMISSION} for r in REGION} if ("ModelPeriodEmissionLimit" in mcs_parameters) and (mcs_num > 0): if i == 1: ModelPeriodEmissionLimit_mcs_default_list = mcs_df[(mcs_df['PARAM'] == "ModelPeriodEmissionLimit") & (mcs_df['DEFAULT_SETTING'] == 1)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0] ModelPeriodEmissionLimit_mcs_specified = tuple([(str(r), str(e)) for r, e in zip(mcs_df[mcs_df['PARAM'] == "ModelPeriodEmissionLimit"].REGION, mcs_df[mcs_df['PARAM'] == "ModelPeriodEmissionLimit"].EMISSION)]) ModelPeriodEmissionLimit = {str(r): {str(e): generateRandomData(ModelPeriodEmissionLimit_ref[r][e], mcs_df[(mcs_df['PARAM'] == "ModelPeriodEmissionLimit") & (mcs_df['REGION'] == r) & (mcs_df['EMISSION'] == e)][['DISTRIBUTION', 'REL_SD', 'REL_MIN', 'REL_MAX', 'ARRAY']].values.tolist()[0]) if (str(r), str(e)) in ModelPeriodEmissionLimit_mcs_specified else generateRandomData(ModelPeriodEmissionLimit_ref[r][e], ModelPeriodEmissionLimit_mcs_default_list) for e in EMISSION} for r in REGION} logging.info("{}\tAnalysis is finished. Please wait until the results are saved!".format(dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) # ---------------------------------------------------------------------------------------------------------------------- # SAVE ALL RESULTS # ---------------------------------------------------------------------------------------------------------------------- saveResults(res_df, outputDir, outputFile) logging.info("{}\tAll results are saved".format(dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
[ 1, 529, 9507, 29958, 29949, 2008, 29924, 3267, 21554, 29918, 29925, 29884, 13208, 29889, 2272, 13, 29937, 1738, 29914, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 30004, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 30004, 13, 29937, 13361, 29901, 529, 5813, 10202, 14187, 1266, 29871, 29906, 29900, 29896, 29929, 30004, 13, 29937, 438, 2008, 29924, 3267, 21554, 1873, 29901, 438, 2008, 29924, 3267, 21554, 29918, 29906, 29900, 29896, 29955, 29918, 29896, 29896, 29918, 29900, 29947, 30004, 13, 30004, 13, 1649, 1514, 1649, 353, 9995, 30004, 13, 30004, 13, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 4936, 30004, 13, 30004, 13, 1678, 438, 2008, 29924, 3267, 21554, 29899, 29925, 29884, 13208, 29901, 319, 6639, 305, 6288, 8125, 292, 16657, 363, 6242, 29899, 14343, 24836, 23985, 8125, 292, 30004, 13, 30004, 13, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 4936, 30004, 13, 30004, 13, 1678, 438, 2008, 29924, 3267, 21554, 29899, 29925, 29884, 13208, 30004, 13, 1678, 6756, 13, 1678, 910, 338, 278, 28976, 1873, 310, 438, 2008, 29924, 3267, 21554, 29899, 29925, 29884, 13208, 30004, 13, 30004, 13, 30004, 13, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 4936, 30004, 13, 30004, 13, 1678, 438, 2008, 29924, 3267, 21554, 29899, 29925, 29884, 13208, 29901, 319, 6639, 305, 6288, 8125, 292, 16657, 363, 6242, 29899, 14343, 24836, 23985, 8125, 292, 30004, 13, 30004, 13, 1678, 3529, 274, 568, 445, 7047, 491, 773, 278, 1494, 3407, 310, 278, 2441, 16021, 4274, 29901, 30004, 13, 30004, 13, 1678, 529, 5813, 10202, 529, 5813, 10202, 438, 2008, 29924, 3267, 21554, 29899, 29925, 29884, 13208, 29901, 319, 6639, 305, 6288, 8125, 292, 16657, 363, 6242, 29899, 14343, 24836, 23985, 8125, 292, 29889, 6756, 13, 1678, 15163, 29887, 583, 29871, 29906, 29900, 29896, 29929, 29892, 29871, 29896, 29906, 29892, 29871, 29896, 29941, 29947, 29906, 29892, 2045, 597, 1867, 29875, 29889, 990, 29914, 29896, 29900, 29889, 29941, 29941, 29929, 29900, 29914, 264, 29896, 29906, 29900, 29955, 29896, 29941, 29947, 29906, 30004, 13, 30004, 13, 1678, 3462, 3245, 9282, 304, 367, 274, 1573, 363, 278, 438, 2008, 29924, 3267, 21554, 878, 7807, 6890, 313, 4149, 11662, 29902, 2988, 363, 4866, 9282, 1125, 30004, 13, 1678, 1128, 10071, 634, 394, 29889, 313, 29906, 29900, 29896, 29896, 511, 2045, 597, 1867, 29875, 29889, 990, 29914, 29896, 29900, 29889, 29896, 29900, 29896, 29953, 29914, 29926, 29889, 264, 3733, 29889, 29906, 29900, 29896, 29896, 29889, 29900, 29953, 29889, 29900, 29941, 29941, 30004, 13, 1678, 15971, 15547, 634, 394, 29889, 313, 29906, 29900, 29896, 29947, 511, 2045, 597, 1867, 29875, 29889, 990, 29914, 29896, 29900, 29889, 29896, 29900, 29896, 29953, 29914, 29926, 29889, 267, 29878, 29889, 29906, 29900, 29896, 29947, 29889, 29900, 29941, 29889, 29900, 29900, 29945, 30004, 13, 30004, 13, 1678, 5901, 8974, 29901, 30004, 13, 1678, 438, 2008, 29924, 3267, 21554, 25492, 29901, 2045, 597, 3292, 29889, 510, 29914, 29949, 2008, 29924, 3267, 21554, 29914, 30004, 13, 1678, 438, 2008, 29924, 3267, 21554, 4700, 29901, 1732, 597, 1636, 29889, 359, 29629, 952, 29889, 990, 29914, 30004, 13, 1678, 6461, 29911, 7833, 3308, 7881, 29901, 1732, 597, 1636, 29889, 20640, 375, 29889, 23834, 29914, 30004, 13, 30004, 13, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 4936, 30004, 13, 30004, 13, 15945, 19451, 13, 30004, 13, 5215, 2897, 30004, 13, 5215, 12865, 408, 11636, 30004, 13, 5215, 12183, 30004, 13, 5215, 12655, 408, 7442, 30004, 13, 5215, 11701, 408, 10518, 30004, 13, 5215, 9505, 29886, 30004, 13, 30004, 13, 21027, 29889, 16121, 3991, 29898, 5563, 29922, 21027, 29889, 18525, 8443, 13, 21027, 29889, 3888, 703, 29912, 1012, 29873, 4081, 4687, 1213, 29889, 4830, 29898, 6008, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29908, 4961, 30004, 13, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 29937, 12, 11368, 4897, 448, 360, 8254, 7791, 4574, 27266, 322, 341, 1164, 4330, 315, 1718, 3927, 317, 7833, 13309, 8098, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 30004, 13, 29937, 10567, 848, 30004, 13, 2080, 2283, 353, 376, 2692, 29949, 2227, 29909, 29918, 25416, 29889, 20267, 29916, 29908, 29871, 396, 10318, 411, 3935, 10422, 30004, 13, 30004, 13, 29937, 19215, 30004, 13, 2080, 9170, 353, 376, 7790, 4290, 29918, 1469, 1966, 19451, 13, 4299, 1170, 353, 1881, 2283, 29889, 5451, 12839, 29861, 29900, 29962, 30004, 13, 9855, 29903, 1691, 353, 376, 1660, 9375, 19451, 13, 9855, 9629, 353, 376, 16320, 25797, 4945, 29903, 19451, 13, 9855, 9629, 4592, 353, 376, 16320, 25797, 4945, 29903, 29918, 23397, 19451, 13, 9855, 29924, 2395, 353, 376, 29924, 9295, 19451, 13, 9855, 29924, 2395, 8009, 353, 376, 29924, 9295, 29918, 1949, 19451, 13, 4905, 9170, 353, 376, 7790, 6466, 29918, 1469, 1966, 19451, 13, 4905, 2283, 353, 285, 29908, 29912, 4299, 1170, 2403, 2914, 29889, 20267, 29916, 19451, 13, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 29937, 1678, 383, 28700, 29903, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 30004, 13, 1753, 716, 9037, 29898, 978, 29892, 27981, 29892, 13069, 29892, 6635, 29892, 334, 513, 1575, 1125, 30004, 13, 1678, 9995, 30004, 13, 1678, 910, 740, 1653, 263, 716, 2286, 2534, 263, 5224, 3216, 313, 27728, 511, 30004, 13, 1678, 7568, 3216, 313, 431, 511, 7663, 313, 4117, 511, 773, 16285, 515, 11368, 29903, 30004, 13, 1678, 9995, 30004, 13, 1678, 903, 978, 353, 1024, 30004, 13, 1678, 363, 2380, 297, 16285, 29901, 30004, 13, 4706, 903, 978, 353, 29850, 3227, 29913, 1642, 4830, 7373, 978, 29892, 2380, 8443, 13, 1678, 736, 9505, 29886, 29889, 29931, 29886, 16174, 7373, 978, 29892, 4482, 17109, 29922, 27728, 29892, 701, 17109, 29922, 431, 29892, 6635, 29922, 4117, 8443, 13, 30004, 13, 30004, 13, 1753, 2254, 1469, 29898, 1445, 2605, 29892, 9869, 29903, 1691, 29892, 9869, 9629, 29892, 9869, 9629, 4592, 29892, 9869, 29924, 2395, 29892, 9869, 29924, 2395, 8009, 1125, 30004, 13, 1678, 9995, 30004, 13, 1678, 910, 740, 15376, 599, 848, 515, 278, 1881, 848, 731, 304, 848, 19935, 22993, 13, 1678, 9995, 30004, 13, 1678, 396, 3630, 29901, 11368, 29903, 30004, 13, 1678, 6166, 29918, 2176, 353, 10518, 29889, 949, 29918, 24633, 29898, 601, 29922, 1445, 2605, 29892, 9869, 29918, 978, 29922, 9855, 29903, 1691, 8443, 13, 1678, 6166, 29918, 2176, 1839, 18166, 2725, 2033, 353, 6166, 29918, 2176, 1839, 18166, 2725, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 18166, 2725, 29906, 2033, 353, 6166, 29918, 2176, 1839, 18166, 2725, 29906, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 28658, 11116, 2033, 353, 6166, 29918, 2176, 1839, 28658, 11116, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 353, 6166, 29918, 2176, 1839, 29923, 10403, 13507, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 353, 6166, 29918, 2176, 1839, 29943, 4462, 29931, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 2033, 353, 6166, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 1660, 29909, 3094, 2033, 353, 6166, 29918, 2176, 1839, 1660, 29909, 3094, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 15307, 12750, 12107, 2033, 353, 6166, 29918, 2176, 1839, 15307, 12750, 12107, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 353, 6166, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 353, 6166, 29918, 2176, 1839, 1254, 1955, 10461, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 353, 6166, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 29979, 26441, 2033, 353, 6166, 29918, 2176, 1839, 29979, 26441, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 6166, 29918, 2176, 1839, 29943, 1307, 29990, 8979, 1307, 2287, 1529, 2797, 11116, 2033, 353, 6166, 29918, 2176, 1839, 29943, 1307, 29990, 8979, 1307, 2287, 1529, 2797, 11116, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 396, 3630, 29901, 349, 1718, 25797, 4945, 29903, 30004, 13, 1678, 282, 29918, 2176, 353, 10518, 29889, 949, 29918, 24633, 29898, 601, 29922, 1445, 2605, 29892, 9869, 29918, 978, 29922, 9855, 9629, 8443, 13, 1678, 282, 29918, 2176, 353, 282, 29918, 2176, 29889, 5589, 1056, 29898, 29900, 8443, 13, 1678, 282, 29918, 2176, 1839, 16320, 5194, 2033, 353, 282, 29918, 2176, 1839, 16320, 5194, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 19143, 2033, 353, 282, 29918, 2176, 1839, 19143, 13359, 7302, 29898, 15926, 29889, 517, 29918, 21574, 29892, 1623, 4384, 2433, 7433, 1495, 30004, 13, 1678, 282, 29918, 2176, 1839, 18166, 2725, 2033, 353, 282, 29918, 2176, 1839, 18166, 2725, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 18166, 2725, 29906, 2033, 353, 282, 29918, 2176, 1839, 18166, 2725, 29906, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 28658, 11116, 2033, 353, 282, 29918, 2176, 1839, 28658, 11116, 13359, 579, 668, 29898, 524, 8443, 13, 1678, 282, 29918, 2176, 1839, 28658, 11116, 2033, 353, 282, 29918, 2176, 1839, 28658, 11116, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 353, 282, 29918, 2176, 1839, 29923, 10403, 13507, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 353, 282, 29918, 2176, 1839, 29943, 4462, 29931, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 2033, 353, 282, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 13359, 579, 668, 29898, 524, 8443, 13, 1678, 282, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 2033, 353, 282, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 1660, 29909, 3094, 2033, 353, 282, 29918, 2176, 1839, 1660, 29909, 3094, 13359, 579, 668, 29898, 524, 8443, 13, 1678, 282, 29918, 2176, 1839, 1660, 29909, 3094, 2033, 353, 282, 29918, 2176, 1839, 1660, 29909, 3094, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 15307, 12750, 12107, 2033, 353, 282, 29918, 2176, 1839, 15307, 12750, 12107, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 353, 282, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 13359, 579, 668, 29898, 524, 8443, 13, 1678, 282, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 353, 282, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 353, 282, 29918, 2176, 1839, 1254, 1955, 10461, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 353, 282, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 2176, 1839, 29979, 26441, 2033, 353, 282, 29918, 2176, 1839, 29979, 26441, 13359, 579, 668, 29898, 524, 8443, 13, 1678, 282, 29918, 2176, 1839, 29979, 26441, 2033, 353, 282, 29918, 2176, 1839, 29979, 26441, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 396, 3630, 29901, 12662, 2699, 2322, 1819, 30004, 13, 1678, 282, 29918, 4381, 29918, 2176, 353, 10518, 29889, 949, 29918, 24633, 29898, 601, 29922, 1445, 2605, 29892, 9869, 29918, 978, 29922, 9855, 9629, 4592, 8443, 13, 1678, 282, 29918, 4381, 29918, 2176, 353, 282, 29918, 4381, 29918, 2176, 29889, 5589, 1056, 29898, 29900, 8443, 13, 1678, 282, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 353, 282, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 282, 29918, 4381, 29918, 2176, 1839, 19143, 2033, 353, 282, 29918, 4381, 29918, 2176, 1839, 19143, 13359, 7302, 29898, 15926, 29889, 517, 29918, 21574, 29892, 1623, 4384, 2433, 7433, 1495, 30004, 13, 1678, 396, 3630, 29901, 11240, 15021, 3439, 2785, 313, 29924, 9295, 8443, 13, 1678, 286, 2395, 29918, 2176, 353, 10518, 29889, 949, 29918, 24633, 29898, 601, 29922, 1445, 2605, 29892, 9869, 29918, 978, 29922, 9855, 29924, 2395, 8443, 13, 1678, 286, 2395, 29918, 2176, 353, 286, 2395, 29918, 2176, 29889, 5589, 1056, 29898, 29900, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 353, 286, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 13359, 7302, 29898, 15926, 29889, 517, 29918, 21574, 29892, 1623, 4384, 2433, 7433, 1495, 30004, 13, 1678, 286, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 353, 286, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 13359, 579, 668, 29898, 524, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 1525, 29931, 29918, 7230, 2033, 353, 286, 2395, 29918, 2176, 1839, 1525, 29931, 29918, 7230, 13359, 7302, 29898, 15926, 29889, 517, 29918, 21574, 29892, 1623, 4384, 2433, 7433, 1495, 30004, 13, 1678, 286, 2395, 29918, 2176, 1839, 1525, 29931, 29918, 16173, 2033, 353, 286, 2395, 29918, 2176, 1839, 1525, 29931, 29918, 16173, 13359, 7302, 29898, 15926, 29889, 517, 29918, 21574, 29892, 1623, 4384, 2433, 7433, 1495, 30004, 13, 1678, 286, 2395, 29918, 2176, 1839, 1525, 29931, 29918, 12648, 2033, 353, 286, 2395, 29918, 2176, 1839, 1525, 29931, 29918, 12648, 13359, 7302, 29898, 15926, 29889, 517, 29918, 21574, 29892, 1623, 4384, 2433, 7433, 1495, 30004, 13, 1678, 286, 2395, 29918, 2176, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 2033, 353, 286, 2395, 29918, 2176, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 1718, 22800, 2033, 353, 5519, 7411, 29898, 29875, 29897, 363, 474, 297, 851, 29898, 29916, 467, 5451, 28165, 13531, 363, 921, 297, 286, 2395, 29918, 2176, 1839, 1718, 22800, 2033, 29962, 30004, 13, 1678, 286, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 353, 286, 2395, 29918, 2176, 1839, 16320, 5194, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 353, 286, 2395, 29918, 2176, 1839, 18166, 2725, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 28658, 11116, 2033, 353, 286, 2395, 29918, 2176, 1839, 28658, 11116, 13359, 579, 668, 29898, 524, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 28658, 11116, 2033, 353, 286, 2395, 29918, 2176, 1839, 28658, 11116, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 353, 286, 2395, 29918, 2176, 1839, 29923, 10403, 13507, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 353, 286, 2395, 29918, 2176, 1839, 29943, 4462, 29931, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 2033, 353, 286, 2395, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 13359, 579, 668, 29898, 524, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 2033, 353, 286, 2395, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 1660, 29909, 3094, 2033, 353, 286, 2395, 29918, 2176, 1839, 1660, 29909, 3094, 13359, 579, 668, 29898, 524, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 1660, 29909, 3094, 2033, 353, 286, 2395, 29918, 2176, 1839, 1660, 29909, 3094, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 15307, 12750, 12107, 2033, 353, 286, 2395, 29918, 2176, 1839, 15307, 12750, 12107, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 353, 286, 2395, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 13359, 579, 668, 29898, 524, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 353, 286, 2395, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 353, 286, 2395, 29918, 2176, 1839, 1254, 1955, 10461, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 353, 286, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 353, 286, 2395, 29918, 2176, 1839, 29979, 26441, 13359, 579, 668, 29898, 524, 8443, 13, 1678, 286, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 353, 286, 2395, 29918, 2176, 1839, 29979, 26441, 13359, 579, 668, 29898, 710, 8443, 13, 1678, 396, 9681, 310, 341, 9295, 23876, 30004, 13, 1678, 286, 2395, 29918, 1949, 29918, 2176, 353, 10518, 29889, 949, 29918, 24633, 29898, 601, 29922, 1445, 2605, 29892, 9869, 29918, 978, 29922, 9855, 29924, 2395, 8009, 8443, 13, 1678, 286, 2395, 29918, 1949, 353, 286, 2395, 29918, 1949, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 29924, 9295, 29918, 1949, 2033, 30004, 13, 1678, 736, 6166, 29918, 2176, 29892, 282, 29918, 2176, 29892, 282, 29918, 4381, 29918, 2176, 29892, 286, 2395, 29918, 2176, 29892, 286, 2395, 29918, 1949, 30004, 13, 30004, 13, 30004, 13, 1753, 5706, 17875, 1469, 29898, 5679, 29892, 1051, 1125, 30004, 13, 1678, 9995, 30004, 13, 1678, 910, 740, 16785, 4036, 848, 363, 278, 4128, 5134, 297, 278, 11240, 15021, 3439, 8250, 22993, 13, 30004, 13, 1678, 3407, 313, 4830, 29901, 5785, 1125, 2099, 363, 4226, 4978, 29892, 4464, 363, 1716, 3367, 6825, 322, 9090, 18822, 30004, 13, 1678, 1320, 29901, 1134, 310, 4978, 29889, 14542, 852, 515, 29901, 376, 8945, 613, 376, 3626, 6825, 613, 376, 29590, 29908, 313, 4830, 29901, 1347, 8443, 13, 1678, 1104, 29918, 4928, 29901, 6198, 3918, 29522, 515, 2099, 470, 4464, 29889, 13223, 29901, 10151, 408, 1602, 326, 1338, 313, 4830, 29901, 5785, 8443, 13, 1678, 1104, 29918, 1195, 29901, 6198, 9212, 29522, 515, 2099, 470, 4464, 29889, 13223, 29901, 10151, 408, 1602, 326, 1338, 313, 4830, 29901, 5785, 511, 1818, 367, 263, 8178, 995, 30004, 13, 1678, 1104, 29918, 3317, 29901, 6198, 7472, 29522, 515, 2099, 470, 4464, 29889, 13223, 29901, 10151, 408, 1602, 326, 1338, 313, 4830, 29901, 5785, 511, 1818, 367, 263, 6374, 995, 30004, 13, 1678, 1409, 29901, 1409, 411, 7037, 1819, 29889, 3118, 995, 714, 310, 278, 1409, 674, 367, 20459, 10434, 22993, 13, 1678, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 30004, 13, 1678, 3940, 29901, 1763, 671, 278, 3407, 995, 1728, 738, 4978, 29892, 769, 2436, 408, 1881, 297, 278, 10616, 934, 297, 278, 4434, 376, 29924, 9295, 1115, 30004, 13, 1678, 12481, 29879, 29901, 349, 1718, 5194, 29901, 376, 15501, 1024, 613, 22236, 29918, 10490, 29911, 4214, 29901, 12, 29908, 29896, 613, 360, 9047, 29901, 376, 8945, 613, 5195, 29931, 29918, 7230, 29901, 376, 29900, 1642, 30004, 13, 1678, 910, 674, 1207, 278, 775, 304, 6755, 278, 3407, 995, 408, 3342, 363, 278, 1904, 1728, 341, 9295, 22993, 13, 1678, 9995, 30004, 13, 1678, 1320, 29892, 1104, 29918, 4928, 29892, 1104, 29918, 1195, 29892, 1104, 29918, 3317, 29892, 1409, 353, 1051, 29961, 29900, 1402, 1051, 29961, 29896, 1402, 1051, 29961, 29906, 1402, 1051, 29961, 29941, 1402, 1051, 29961, 29946, 29962, 30004, 13, 30004, 13, 1678, 565, 1320, 1275, 376, 8945, 1115, 30004, 13, 4706, 995, 353, 7442, 29889, 8172, 29889, 8945, 29898, 5679, 29892, 1104, 29918, 4928, 334, 3407, 29892, 29871, 29896, 9601, 30004, 13, 632, 29900, 29962, 29871, 396, 2099, 29892, 3918, 29522, 29892, 5706, 29871, 29896, 995, 472, 278, 931, 30004, 13, 1678, 25342, 1320, 1275, 376, 3626, 6825, 1115, 30004, 13, 4706, 995, 353, 7442, 29889, 8172, 29889, 3626, 6825, 3552, 29896, 718, 1104, 29918, 1195, 29897, 334, 3407, 29892, 3407, 29892, 313, 29896, 718, 1104, 29918, 3317, 29897, 334, 3407, 29892, 29871, 29896, 9601, 30004, 13, 632, 29900, 29962, 29871, 396, 9212, 995, 29892, 4464, 29892, 7472, 995, 29892, 5706, 29871, 29896, 995, 472, 278, 931, 30004, 13, 1678, 25342, 1320, 1275, 376, 29590, 1115, 30004, 13, 4706, 995, 353, 7442, 29889, 8172, 29889, 29590, 3552, 29896, 718, 1104, 29918, 1195, 29897, 334, 3407, 29892, 313, 29896, 718, 1104, 29918, 3317, 29897, 334, 3407, 29892, 29871, 29896, 9601, 30004, 13, 632, 29900, 29962, 29871, 396, 9212, 995, 29892, 7472, 995, 29892, 5706, 29871, 29896, 995, 472, 278, 931, 30004, 13, 1678, 25342, 1320, 1275, 376, 16957, 1115, 30004, 13, 4706, 565, 7431, 29898, 2378, 29897, 1405, 29871, 29896, 29901, 30004, 13, 9651, 995, 353, 7442, 29889, 8172, 29889, 16957, 29898, 2378, 8443, 13, 4706, 1683, 29901, 30004, 13, 9651, 12183, 29889, 2704, 703, 11432, 29901, 13957, 341, 9295, 29918, 2176, 1409, 1897, 29889, 1222, 6021, 3309, 310, 1409, 29901, 7200, 1135, 29871, 29896, 29892, 541, 338, 29901, 29871, 29900, 470, 29871, 29896, 1159, 30004, 13, 1678, 1683, 29901, 30004, 13, 4706, 12183, 29889, 2704, 703, 11432, 29901, 7605, 385, 3625, 4978, 29892, 9076, 1881, 848, 322, 29914, 272, 788, 2322, 1881, 848, 363, 445, 3443, 23157, 30004, 13, 4706, 736, 30004, 13, 30004, 13, 1678, 396, 910, 565, 4195, 28057, 1881, 4436, 8581, 491, 8178, 1819, 363, 278, 4128, 30004, 13, 1678, 565, 995, 6736, 29871, 29900, 29901, 30004, 13, 4706, 736, 995, 30004, 13, 1678, 1683, 29901, 30004, 13, 4706, 736, 29871, 29900, 30004, 13, 30004, 13, 30004, 13, 1753, 4078, 12191, 5776, 1971, 653, 29898, 1272, 2557, 29892, 1904, 29918, 978, 29892, 10483, 1125, 30004, 13, 30004, 13, 1678, 396, 21775, 403, 2286, 2983, 297, 376, 1707, 29918, 8977, 29908, 304, 367, 5134, 297, 278, 2582, 11167, 13, 1678, 396, 470, 3440, 714, 599, 28005, 3651, 22993, 13, 30004, 13, 1678, 4489, 353, 12205, 30004, 13, 30004, 13, 1678, 722, 29918, 8977, 353, 3336, 13, 30004, 13, 4706, 835, 4136, 29937, 12, 12, 12, 29928, 331, 4167, 29871, 12, 12, 12, 12, 12, 7346, 4136, 29937, 30004, 13, 4706, 396, 29908, 19907, 2776, 29928, 331, 392, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 376, 29928, 331, 392, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 30004, 13, 4706, 835, 4136, 29937, 418, 12, 12, 10486, 462, 29871, 12, 12, 7346, 4136, 29937, 30004, 13, 4706, 396, 29908, 19907, 2776, 10486, 5914, 479, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 3137, 613, 376, 430, 613, 376, 29880, 29882, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 19907, 2776, 10486, 29928, 783, 279, 479, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 3137, 613, 376, 430, 613, 376, 29880, 29882, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 6779, 5914, 479, 3047, 262, 12883, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 3137, 613, 376, 430, 613, 376, 29880, 29882, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 6779, 5914, 479, 3047, 262, 12742, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 3137, 613, 376, 430, 613, 376, 29880, 29882, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 10486, 10108, 12883, 4763, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 10486, 10108, 12883, 12881, 728, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 10486, 10108, 2008, 1658, 4763, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 3137, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 10486, 10108, 12742, 1542, 4763, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 3137, 613, 376, 430, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 10486, 10108, 12742, 1542, 12881, 728, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 3137, 613, 376, 430, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 10486, 19357, 24445, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 10486, 26214, 24445, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 7504, 398, 7964, 4373, 10486, 12415, 5946, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 4373, 10486, 12415, 5946, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 12415, 2410, 797, 10147, 358, 10486, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 4205, 2798, 287, 12415, 2410, 797, 10147, 358, 10486, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 20392, 29894, 482, 1917, 10486, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 4205, 2798, 287, 20392, 29894, 482, 1917, 10486, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 11536, 4205, 2798, 287, 10486, 25733, 1115, 6796, 29878, 613, 376, 29879, 613, 376, 29891, 12436, 30004, 13, 30004, 13, 4706, 835, 4136, 2277, 12, 12, 1678, 5915, 5946, 9586, 1849, 29871, 12, 12, 12, 7346, 4136, 29937, 30004, 13, 4706, 396, 29908, 4557, 2776, 4373, 7141, 3049, 3002, 2525, 1169, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 376, 4373, 12415, 5946, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 7504, 398, 7964, 4373, 12415, 5946, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 376, 11536, 12415, 5946, 2744, 29876, 950, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 30004, 13, 4706, 835, 4136, 2277, 12, 12, 1678, 13414, 9586, 1849, 29871, 12, 12, 12, 7346, 4136, 29937, 30004, 13, 4706, 396, 29908, 19907, 2776, 3886, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29873, 613, 376, 29885, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 19907, 2776, 11536, 3886, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29880, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 11536, 2744, 29876, 950, 7141, 3049, 3002, 3886, 2059, 6818, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29885, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 1115, 6796, 29878, 613, 376, 29873, 12436, 30004, 13, 4706, 396, 29908, 19907, 2776, 23665, 428, 2059, 7141, 3049, 3002, 2059, 6818, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29873, 613, 376, 29885, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 19907, 2776, 23665, 428, 2059, 7141, 3049, 3002, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29873, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 23665, 428, 2059, 7141, 3049, 3002, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29873, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 23665, 428, 2059, 7141, 3049, 3002, 2744, 29876, 950, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 19907, 2776, 23665, 428, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 23665, 428, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 19907, 2776, 11403, 2059, 7141, 3049, 3002, 2059, 6818, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29873, 613, 376, 29885, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 19907, 2776, 11403, 2059, 7141, 3049, 3002, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29873, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 11403, 2059, 7141, 3049, 3002, 2744, 29876, 950, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 19907, 2776, 11403, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 11403, 2059, 7141, 3049, 3002, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29873, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 11403, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 5323, 311, 1115, 6796, 29878, 613, 376, 21478, 613, 376, 29880, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 5323, 311, 2744, 29876, 950, 1115, 6796, 29878, 613, 376, 21478, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 23665, 428, 2744, 29876, 950, 1115, 6796, 29878, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 4706, 376, 11403, 2744, 29876, 950, 1115, 6796, 29878, 613, 376, 29888, 613, 376, 29891, 12436, 30004, 13, 30004, 13, 4706, 835, 4136, 2277, 12, 12, 1678, 9839, 292, 9586, 1849, 29871, 12, 12, 12, 7346, 4136, 29937, 30004, 13, 4706, 376, 12415, 2410, 797, 10147, 358, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 4205, 2798, 287, 12415, 2410, 797, 10147, 358, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 20392, 29894, 482, 1917, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 4205, 2798, 287, 20392, 29894, 482, 1917, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 7094, 1218, 25733, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 4205, 2798, 287, 7094, 1218, 25733, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 2744, 29876, 950, 16174, 7094, 1218, 25733, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 2744, 29876, 950, 26262, 7094, 1218, 25733, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 11536, 4205, 2798, 287, 25733, 2059, 7141, 3049, 3002, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 11536, 4205, 2798, 287, 25733, 1115, 6796, 29878, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 3195, 29853, 25733, 2059, 18457, 1115, 6796, 29878, 12436, 30004, 13, 30004, 13, 4706, 835, 4136, 2277, 12, 12, 12, 1666, 7143, 1085, 5359, 12, 12, 12, 12, 7346, 4136, 29937, 30004, 13, 4706, 396, 29908, 11536, 12415, 5946, 797, 1666, 7143, 29924, 3930, 1115, 6796, 29878, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 29928, 331, 392, 8139, 21219, 1666, 7143, 29924, 3930, 1115, 6796, 29878, 613, 376, 29880, 613, 376, 29891, 12436, 30004, 13, 30004, 13, 4706, 835, 4136, 2277, 12, 12, 12, 1525, 5739, 17157, 12, 12, 12, 12, 7346, 4136, 29937, 30004, 13, 4706, 396, 29908, 11536, 1525, 23665, 428, 2744, 29876, 950, 1115, 6796, 29878, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 1525, 11536, 23665, 428, 2776, 8667, 29943, 2491, 2744, 29876, 950, 1115, 6796, 29878, 613, 376, 29891, 12436, 30004, 13, 30004, 13, 4706, 835, 4136, 2277, 12, 12, 12, 6026, 6847, 12, 12, 12, 12, 12, 7346, 4136, 29937, 30004, 13, 4706, 396, 29908, 2744, 29876, 950, 7141, 3049, 3002, 6026, 2333, 2059, 6818, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29872, 613, 376, 29885, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 2744, 29876, 950, 7141, 3049, 3002, 6026, 2333, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29872, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 2744, 29876, 950, 7141, 3049, 3002, 6026, 2333, 29925, 264, 18745, 2059, 6026, 2333, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29872, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 2744, 29876, 950, 7141, 3049, 3002, 6026, 6847, 29925, 264, 18745, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 396, 29908, 4205, 2798, 287, 7141, 3049, 3002, 6026, 6847, 29925, 264, 18745, 1115, 6796, 29878, 613, 376, 29873, 613, 376, 29891, 12436, 30004, 13, 4706, 376, 2744, 29876, 950, 6026, 6847, 1115, 6796, 29878, 613, 376, 29872, 613, 376, 29891, 12436, 30004, 13, 4706, 376, 3195, 29853, 6026, 6847, 1115, 6796, 29878, 613, 376, 29872, 3108, 30004, 13, 1678, 4970, 13, 30004, 13, 1678, 396, 4669, 573, 995, 4852, 18253, 1159, 30004, 13, 1678, 5694, 29918, 2176, 353, 10518, 29889, 17271, 29898, 13099, 11759, 30004, 13, 4706, 525, 7187, 1430, 1718, 5971, 23592, 13, 4706, 525, 26865, 29918, 5813, 23592, 13, 4706, 525, 26865, 29918, 19143, 23592, 13, 4706, 525, 18166, 2725, 23592, 13, 4706, 525, 18166, 2725, 29906, 23592, 13, 4706, 525, 28658, 11116, 23592, 13, 4706, 525, 29923, 10403, 13507, 23592, 13, 4706, 525, 29943, 4462, 29931, 23592, 13, 4706, 525, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 23592, 13, 4706, 525, 1660, 29909, 3094, 23592, 13, 4706, 525, 15307, 12750, 12107, 23592, 13, 4706, 525, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 23592, 13, 4706, 525, 1254, 1955, 10461, 23592, 13, 4706, 525, 4330, 3210, 6632, 14480, 29979, 23592, 13, 4706, 525, 29979, 26441, 23592, 13, 4706, 525, 29943, 1307, 29990, 8979, 1307, 2287, 1529, 2797, 11116, 2033, 8443, 13, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 7187, 1430, 1718, 5971, 2033, 353, 10483, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 26865, 29918, 5813, 2033, 353, 376, 18253, 19451, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 26865, 29918, 19143, 2033, 353, 1904, 29918, 978, 29889, 3318, 573, 29889, 1767, 26471, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 18166, 2725, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 18166, 2725, 29906, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 28658, 11116, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 29923, 10403, 13507, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 29943, 4462, 29931, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 1660, 29909, 3094, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 15307, 12750, 12107, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 1254, 1955, 10461, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 4330, 3210, 6632, 14480, 29979, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 29979, 26441, 2033, 353, 376, 376, 30004, 13, 1678, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 29943, 1307, 29990, 8979, 1307, 2287, 1529, 2797, 11116, 2033, 353, 376, 376, 30004, 13, 30004, 13, 1678, 4489, 353, 10518, 29889, 17685, 4197, 2176, 29892, 5694, 29918, 2176, 2314, 30004, 13, 30004, 13, 1678, 396, 9586, 1849, 1819, 313, 6194, 3651, 393, 526, 5134, 297, 722, 29918, 8977, 8443, 13, 1678, 4629, 29918, 20897, 353, 518, 11918, 363, 1820, 297, 722, 29918, 8977, 29889, 8149, 580, 363, 2286, 297, 1904, 29918, 978, 29889, 20897, 580, 565, 1820, 1275, 2286, 29889, 978, 29889, 5451, 703, 29918, 1159, 29961, 29900, 5262, 30004, 13, 30004, 13, 1678, 363, 722, 297, 4629, 29918, 20897, 29901, 30004, 13, 30004, 13, 4706, 396, 6789, 1971, 284, 12205, 297, 2425, 30004, 13, 4706, 5694, 29918, 2176, 353, 10518, 29889, 17271, 29898, 13099, 11759, 30004, 13, 9651, 525, 7187, 1430, 1718, 5971, 23592, 13, 9651, 525, 26865, 29918, 5813, 23592, 13, 9651, 525, 26865, 29918, 19143, 23592, 13, 9651, 525, 18166, 2725, 23592, 13, 9651, 525, 18166, 2725, 29906, 23592, 13, 9651, 525, 28658, 11116, 23592, 13, 9651, 525, 29923, 10403, 13507, 23592, 13, 9651, 525, 29943, 4462, 29931, 23592, 13, 9651, 525, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 23592, 13, 9651, 525, 1660, 29909, 3094, 23592, 13, 9651, 525, 15307, 12750, 12107, 23592, 13, 9651, 525, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 23592, 13, 9651, 525, 1254, 1955, 10461, 23592, 13, 9651, 525, 4330, 3210, 6632, 14480, 29979, 23592, 13, 9651, 525, 29979, 26441, 23592, 13, 9651, 525, 29943, 1307, 29990, 8979, 1307, 2287, 1529, 2797, 11116, 2033, 8443, 13, 30004, 13, 4706, 396, 28736, 1024, 30004, 13, 4706, 722, 29918, 978, 353, 722, 29889, 978, 29889, 5451, 703, 29918, 1159, 29961, 29900, 29962, 30004, 13, 30004, 13, 4706, 396, 28736, 16285, 30004, 13, 4706, 722, 29918, 535, 9084, 29918, 513, 1575, 29918, 1761, 353, 722, 29889, 978, 29889, 5451, 703, 29918, 1159, 29961, 29896, 17531, 30004, 13, 30004, 13, 4706, 396, 28736, 9846, 16285, 30004, 13, 4706, 722, 29918, 16595, 29918, 513, 1575, 29918, 1761, 353, 722, 29918, 8977, 29961, 1707, 29918, 978, 29962, 30004, 13, 30004, 13, 4706, 396, 13343, 30004, 13, 4706, 9846, 29918, 8977, 353, 426, 1989, 29901, 5124, 363, 1820, 297, 6796, 29878, 613, 376, 21478, 613, 376, 430, 613, 376, 29872, 613, 376, 29888, 613, 376, 29880, 29882, 613, 376, 3137, 613, 376, 29880, 613, 376, 29885, 613, 376, 29879, 613, 376, 29873, 613, 376, 29891, 613, 376, 29888, 6008, 3108, 29913, 29871, 396, 2322, 995, 29901, 376, 376, 30004, 13, 4706, 18387, 29918, 8977, 353, 426, 1989, 29901, 995, 363, 1820, 29892, 995, 297, 14319, 29898, 1707, 29918, 16595, 29918, 513, 1575, 29918, 1761, 29892, 722, 29918, 535, 9084, 29918, 513, 1575, 29918, 1761, 2915, 30004, 13, 4706, 848, 29918, 8977, 353, 426, 1068, 16595, 29918, 8977, 29892, 3579, 535, 9084, 29918, 8977, 29913, 29871, 396, 4702, 479, 21503, 4314, 30004, 13, 30004, 13, 4706, 396, 14350, 848, 304, 13201, 12205, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 7187, 1430, 1718, 5971, 2033, 353, 10483, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 26865, 29918, 5813, 2033, 353, 722, 29889, 978, 29889, 5451, 703, 29918, 1159, 29961, 29900, 29962, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 26865, 29918, 19143, 2033, 353, 722, 29889, 1707, 1917, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 18166, 2725, 2033, 353, 848, 29918, 8977, 3366, 29878, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 18166, 2725, 29906, 2033, 353, 848, 29918, 8977, 3366, 21478, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 28658, 11116, 2033, 353, 848, 29918, 8977, 3366, 430, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 29923, 10403, 13507, 2033, 353, 848, 29918, 8977, 3366, 29872, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 29943, 4462, 29931, 2033, 353, 848, 29918, 8977, 3366, 29888, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 2033, 353, 848, 29918, 8977, 3366, 29880, 29882, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 1660, 29909, 3094, 2033, 353, 848, 29918, 8977, 3366, 3137, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 15307, 12750, 12107, 2033, 353, 848, 29918, 8977, 3366, 29880, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 353, 848, 29918, 8977, 3366, 29885, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 1254, 1955, 10461, 2033, 353, 848, 29918, 8977, 3366, 29879, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 4330, 3210, 6632, 14480, 29979, 2033, 353, 848, 29918, 8977, 3366, 29873, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 29979, 26441, 2033, 353, 848, 29918, 8977, 3366, 29891, 3108, 30004, 13, 4706, 5694, 29918, 2176, 29889, 271, 29961, 29900, 29892, 525, 29943, 1307, 29990, 8979, 1307, 2287, 1529, 2797, 11116, 2033, 353, 848, 29918, 8977, 3366, 29888, 6008, 3108, 30004, 13, 30004, 13, 4706, 4489, 353, 10518, 29889, 17685, 4197, 2176, 29892, 5694, 29918, 2176, 2314, 30004, 13, 30004, 13, 1678, 736, 4489, 30004, 13, 30004, 13, 30004, 13, 1753, 4078, 12191, 29898, 1272, 2557, 29892, 934, 9170, 29892, 29729, 1125, 30004, 13, 1678, 9995, 30004, 13, 1678, 910, 740, 27401, 599, 2582, 304, 385, 11388, 934, 22993, 13, 1678, 9995, 30004, 13, 1678, 903, 2176, 353, 12205, 30004, 13, 1678, 396, 13899, 264, 9846, 2286, 2983, 304, 3013, 11388, 1736, 4155, 1024, 4046, 310, 29871, 29941, 29896, 4890, 30004, 13, 1678, 903, 2176, 1839, 26865, 29918, 5813, 13359, 6506, 29898, 30004, 13, 4706, 6528, 3790, 29915, 11536, 2396, 525, 29911, 327, 742, 525, 2744, 29876, 950, 2396, 525, 2744, 29876, 742, 525, 7141, 3049, 3002, 2396, 525, 29911, 5309, 742, 525, 4205, 2798, 287, 2396, 525, 4205, 29883, 742, 525, 23665, 428, 2396, 525, 1184, 29881, 16675, 30004, 13, 4706, 297, 6689, 29922, 5574, 8443, 13, 30004, 13, 1678, 1024, 29918, 1761, 353, 903, 2176, 1839, 26865, 29918, 5813, 13359, 13092, 26471, 13, 1678, 12205, 29918, 1761, 353, 23160, 2176, 28513, 2176, 1839, 26865, 29918, 5813, 2033, 1275, 851, 29898, 978, 4638, 363, 1024, 297, 1024, 29918, 1761, 29962, 30004, 13, 30004, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 1445, 9170, 1125, 30004, 13, 4706, 2897, 29889, 29885, 12535, 12935, 29898, 1445, 9170, 8443, 13, 30004, 13, 1678, 9227, 353, 10518, 29889, 22926, 10507, 29898, 359, 29889, 2084, 29889, 7122, 29898, 1445, 9170, 29892, 29729, 876, 30004, 13, 30004, 13, 1678, 363, 270, 29892, 1024, 297, 14319, 29898, 1272, 2557, 29918, 1761, 29892, 1024, 29918, 1761, 1125, 30004, 13, 4706, 270, 29889, 517, 29918, 24633, 29898, 13236, 29892, 9869, 29918, 978, 29922, 978, 29892, 2380, 29922, 8824, 8443, 13, 30004, 13, 1678, 9227, 29889, 7620, 26471, 13, 1678, 736, 30004, 13, 30004, 13, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 29937, 1678, 11247, 3035, 360, 8254, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 30004, 13, 2080, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 2080, 9170, 29892, 1881, 2283, 8443, 13, 7224, 29918, 2176, 29892, 282, 29918, 2176, 29892, 282, 29918, 4381, 29918, 2176, 29892, 286, 2395, 29918, 2176, 29892, 286, 2395, 29918, 1949, 353, 2254, 1469, 29898, 2080, 2605, 29892, 9869, 29903, 1691, 29892, 9869, 9629, 29892, 9869, 9629, 4592, 29892, 9869, 29924, 2395, 29892, 9869, 29924, 2395, 8009, 8443, 13, 29885, 2395, 29918, 16744, 353, 286, 2395, 29918, 2176, 1839, 16320, 5194, 13359, 13092, 580, 29871, 396, 1051, 310, 4128, 304, 367, 5134, 297, 1601, 371, 1559, 417, 17402, 30004, 13, 30004, 13, 21027, 29889, 3888, 703, 29912, 1012, 29873, 1469, 338, 7500, 1213, 29889, 4830, 29898, 6008, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29908, 4961, 30004, 13, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 29937, 1678, 11368, 29903, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 30004, 13, 18166, 2725, 353, 518, 29878, 363, 364, 297, 6166, 29918, 2176, 1839, 18166, 2725, 2033, 565, 364, 2804, 525, 13707, 2033, 30004, 13, 18166, 2725, 29906, 353, 518, 21478, 363, 364, 29878, 297, 6166, 29918, 2176, 1839, 18166, 2725, 29906, 2033, 565, 364, 29878, 2804, 525, 13707, 2033, 30004, 13, 28658, 11116, 353, 518, 710, 29898, 524, 29898, 7411, 29898, 430, 4961, 363, 301, 29881, 297, 6166, 29918, 2176, 1839, 28658, 11116, 2033, 565, 301, 29881, 2804, 525, 13707, 2033, 30004, 13, 29923, 10403, 13507, 353, 518, 29872, 363, 321, 297, 6166, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 565, 321, 2804, 525, 13707, 2033, 30004, 13, 29943, 4462, 29931, 353, 518, 29888, 363, 285, 297, 6166, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 565, 285, 2804, 525, 13707, 2033, 30004, 13, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 353, 518, 710, 29898, 524, 29898, 7411, 29898, 29880, 29882, 4961, 363, 301, 29882, 297, 6166, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 2033, 565, 301, 29882, 2804, 525, 13707, 2033, 30004, 13, 1660, 29909, 3094, 353, 518, 710, 29898, 524, 29898, 7411, 29898, 3137, 4961, 363, 19375, 297, 6166, 29918, 2176, 1839, 1660, 29909, 3094, 2033, 565, 19375, 2804, 525, 13707, 2033, 30004, 13, 15307, 12750, 12107, 353, 518, 29880, 363, 301, 297, 6166, 29918, 2176, 1839, 15307, 12750, 12107, 2033, 565, 301, 2804, 525, 13707, 2033, 30004, 13, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 353, 518, 710, 29898, 524, 29898, 7411, 29898, 29885, 4961, 363, 286, 297, 6166, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 565, 286, 2804, 525, 13707, 2033, 30004, 13, 1254, 1955, 10461, 353, 518, 29879, 363, 269, 297, 6166, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 565, 269, 2804, 525, 13707, 2033, 30004, 13, 4330, 3210, 6632, 14480, 29979, 353, 518, 29873, 363, 260, 297, 6166, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 565, 260, 2804, 525, 13707, 2033, 30004, 13, 29979, 26441, 353, 518, 710, 29898, 524, 29898, 7411, 29898, 29891, 4961, 363, 343, 297, 6166, 29918, 2176, 1839, 29979, 26441, 2033, 565, 343, 2804, 525, 13707, 2033, 30004, 13, 29943, 1307, 29990, 8979, 1307, 2287, 1529, 2797, 11116, 353, 518, 29888, 6008, 363, 285, 6008, 297, 6166, 29918, 2176, 1839, 29943, 1307, 29990, 8979, 1307, 2287, 1529, 2797, 11116, 2033, 565, 285, 6008, 2804, 525, 13707, 2033, 30004, 13, 30004, 13, 21027, 29889, 3888, 703, 29912, 1012, 29873, 29903, 1691, 526, 2825, 1213, 29889, 4830, 29898, 6008, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29908, 4961, 30004, 13, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 29937, 1678, 349, 1718, 25797, 4945, 29903, 5300, 360, 8254, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 30004, 13, 7346, 12, 12, 12, 12756, 29871, 12, 12, 12, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 29937, 8905, 18772, 30004, 13, 12883, 18772, 353, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12883, 18772, 3108, 29961, 1839, 15307, 12750, 12107, 742, 525, 29979, 26441, 742, 525, 19143, 2033, 1822, 27789, 877, 15307, 12750, 12107, 1495, 29905, 30004, 13, 1678, 869, 7302, 29898, 2892, 4489, 29901, 4489, 29889, 842, 29918, 2248, 877, 29979, 26441, 1495, 1839, 19143, 13359, 517, 29918, 8977, 16655, 517, 29918, 8977, 26471, 13, 30004, 13, 29937, 3295, 2798, 19907, 30004, 13, 4205, 2798, 19907, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4205, 2798, 19907, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 4205, 2798, 19907, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 876, 363, 364, 297, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4205, 2798, 19907, 16862, 18166, 2725, 2314, 30004, 13, 4205, 2798, 19907, 353, 426, 710, 29898, 29878, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4205, 2798, 19907, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 10725, 30004, 13, 1678, 565, 313, 710, 29898, 29878, 876, 297, 3295, 2798, 19907, 29918, 6550, 2164, 1683, 3295, 2798, 19907, 29918, 4381, 29918, 1767, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 8373, 18772, 30004, 13, 12742, 18772, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12742, 18772, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 12742, 18772, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29880, 29882, 511, 851, 29898, 29891, 876, 363, 301, 29882, 29892, 343, 297, 14319, 29898, 30004, 13, 1678, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12742, 18772, 16862, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12742, 18772, 16862, 29979, 26441, 29897, 2314, 30004, 13, 12742, 18772, 353, 426, 710, 29898, 29880, 29882, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12742, 18772, 1159, 669, 313, 29886, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 2033, 1275, 301, 29882, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29880, 29882, 511, 851, 29898, 29891, 876, 297, 8373, 18772, 29918, 6550, 2164, 1683, 8373, 18772, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 8117, 13, 30004, 13, 29937, 1281, 3259, 3137, 30004, 13, 1168, 3259, 3137, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 3137, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 1168, 3259, 3137, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29880, 511, 851, 29898, 3137, 876, 363, 301, 29892, 19375, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 3137, 16862, 15307, 12750, 12107, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 3137, 16862, 1660, 29909, 3094, 29897, 2314, 30004, 13, 1168, 3259, 3137, 353, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 3137, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 3137, 1159, 669, 313, 29886, 29918, 2176, 1839, 15307, 12750, 12107, 2033, 1275, 301, 29897, 669, 313, 29886, 29918, 2176, 1839, 1660, 29909, 3094, 2033, 1275, 19375, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29880, 511, 851, 29898, 3137, 876, 297, 1281, 3259, 3137, 29918, 6550, 2164, 1683, 1281, 3259, 3137, 29918, 4381, 29918, 1767, 363, 19375, 297, 3725, 29909, 3094, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 8117, 13, 30004, 13, 29937, 1281, 3259, 430, 30004, 13, 1168, 3259, 430, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 430, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 1168, 3259, 430, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29880, 511, 851, 29898, 430, 876, 363, 301, 29892, 301, 29881, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 430, 16862, 15307, 12750, 12107, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 430, 16862, 28658, 11116, 29897, 2314, 30004, 13, 1168, 3259, 430, 353, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 430, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 430, 1159, 669, 313, 29886, 29918, 2176, 1839, 15307, 12750, 12107, 2033, 1275, 301, 29897, 669, 313, 29886, 29918, 2176, 1839, 28658, 11116, 2033, 1275, 301, 29881, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29880, 511, 851, 29898, 430, 876, 297, 1281, 3259, 430, 29918, 6550, 2164, 1683, 1281, 3259, 430, 29918, 4381, 29918, 1767, 363, 301, 29881, 297, 21330, 29979, 11116, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 8117, 13, 30004, 13, 29937, 1281, 3259, 29880, 29882, 30004, 13, 1168, 3259, 29880, 29882, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 29880, 29882, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 1168, 3259, 29880, 29882, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29880, 511, 851, 29898, 29880, 29882, 876, 363, 301, 29892, 301, 29882, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 29880, 29882, 16862, 15307, 12750, 12107, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 29880, 29882, 16862, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 29897, 2314, 30004, 13, 1168, 3259, 29880, 29882, 353, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29880, 29882, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1168, 3259, 29880, 29882, 1159, 669, 313, 29886, 29918, 2176, 1839, 15307, 12750, 12107, 2033, 1275, 301, 29897, 669, 313, 29886, 29918, 2176, 1839, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 2033, 1275, 301, 29882, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29880, 511, 851, 29898, 29880, 29882, 876, 297, 1281, 3259, 29880, 29882, 29918, 6550, 2164, 1683, 1281, 3259, 29880, 29882, 29918, 4381, 29918, 1767, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 8117, 13, 30004, 13, 29937, 24728, 797, 12742, 1542, 30004, 13, 25991, 797, 12742, 1542, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 25991, 797, 12742, 1542, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 25991, 797, 12742, 1542, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29888, 511, 710, 29898, 29891, 876, 363, 364, 29892, 285, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 25991, 797, 12742, 1542, 16862, 1660, 29909, 3094, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 25991, 797, 12742, 1542, 16862, 28658, 11116, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 25991, 797, 12742, 1542, 16862, 29979, 26441, 29897, 2314, 30004, 13, 25991, 797, 12742, 1542, 353, 426, 710, 29898, 3137, 1125, 426, 710, 29898, 430, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 25991, 797, 12742, 1542, 1159, 669, 313, 29886, 29918, 2176, 1839, 1660, 29909, 3094, 2033, 1275, 19375, 29897, 669, 313, 29886, 29918, 2176, 1839, 28658, 11116, 2033, 1275, 301, 29881, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 3137, 511, 710, 29898, 430, 511, 710, 29898, 29891, 876, 297, 24728, 797, 12742, 1542, 29918, 6550, 2164, 1683, 24728, 797, 12742, 1542, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 301, 29881, 297, 21330, 29979, 11116, 29913, 363, 19375, 297, 3725, 29909, 3094, 8117, 13, 30004, 13, 29937, 27226, 12085, 30004, 13, 5323, 311, 12085, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 5323, 311, 12085, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 5323, 311, 12085, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 21478, 511, 710, 29898, 29888, 511, 710, 29898, 29891, 876, 363, 364, 29892, 364, 29878, 29892, 285, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 5323, 311, 12085, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 5323, 311, 12085, 16862, 18166, 2725, 29906, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 5323, 311, 12085, 16862, 29943, 4462, 29931, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 5323, 311, 12085, 16862, 29979, 26441, 29897, 2314, 30004, 13, 5323, 311, 12085, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 21478, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 5323, 311, 12085, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 29906, 2033, 1275, 364, 29878, 29897, 669, 313, 29886, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 21478, 511, 710, 29898, 29888, 511, 710, 29898, 29891, 876, 297, 27226, 12085, 29918, 6550, 2164, 1683, 27226, 12085, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 364, 29878, 297, 5195, 29954, 2725, 29906, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 897, 1457, 455, 362, 4062, 30004, 13, 8498, 4361, 362, 4062, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 8498, 4361, 362, 4062, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 8498, 4361, 362, 4062, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 876, 363, 364, 297, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 8498, 4361, 362, 4062, 16862, 18166, 2725, 2314, 30004, 13, 8498, 4361, 362, 4062, 353, 426, 710, 29898, 29878, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 8498, 4361, 362, 4062, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 876, 297, 897, 1457, 455, 362, 4062, 29918, 6550, 2164, 1683, 897, 1457, 455, 362, 4062, 29918, 4381, 29918, 1767, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 7346, 12, 12, 12, 29928, 331, 4167, 29871, 12, 12, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 29937, 12048, 2164, 2744, 29876, 950, 29928, 331, 392, 30004, 13, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29888, 511, 710, 29898, 29891, 876, 363, 364, 29892, 285, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 16862, 29943, 4462, 29931, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 16862, 29979, 26441, 29897, 2314, 30004, 13, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29888, 511, 710, 29898, 29891, 876, 297, 12048, 2164, 2744, 29876, 950, 29928, 331, 392, 29918, 6550, 2164, 1683, 12048, 2164, 2744, 29876, 950, 29928, 331, 392, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 12048, 2164, 29928, 331, 392, 13909, 30004, 13, 10299, 2164, 29928, 331, 392, 13909, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 29928, 331, 392, 13909, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 10299, 2164, 29928, 331, 392, 13909, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29888, 511, 710, 29898, 29880, 511, 710, 29898, 29891, 876, 363, 364, 29892, 285, 29892, 301, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 29928, 331, 392, 13909, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 29928, 331, 392, 13909, 16862, 29943, 4462, 29931, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 29928, 331, 392, 13909, 16862, 15307, 12750, 12107, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 29928, 331, 392, 13909, 16862, 29979, 26441, 29897, 2314, 30004, 13, 10299, 2164, 29928, 331, 392, 13909, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 29928, 331, 392, 13909, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29886, 29918, 2176, 1839, 15307, 12750, 12107, 2033, 1275, 301, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29888, 511, 710, 29898, 29880, 511, 710, 29898, 29891, 876, 297, 12048, 2164, 29928, 331, 392, 13909, 29918, 6550, 2164, 1683, 12048, 2164, 29928, 331, 392, 13909, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 4831, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 30004, 13, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29888, 511, 710, 29898, 29891, 876, 363, 364, 29892, 285, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 16862, 29943, 4462, 29931, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 16862, 29979, 26441, 29897, 2314, 30004, 13, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29888, 511, 710, 29898, 29891, 876, 297, 4831, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29918, 6550, 2164, 1683, 4831, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 7346, 29937, 12, 12, 12, 5894, 13390, 12, 12, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 29937, 5915, 5946, 1762, 3886, 8325, 30004, 13, 12415, 5946, 1762, 3886, 8325, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 1762, 3886, 8325, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 12415, 5946, 1762, 3886, 8325, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 363, 364, 29892, 260, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 1762, 3886, 8325, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 1762, 3886, 8325, 16862, 4330, 3210, 6632, 14480, 29979, 29897, 2314, 30004, 13, 12415, 5946, 1762, 3886, 8325, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 1762, 3886, 8325, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 297, 5915, 5946, 1762, 3886, 8325, 29918, 6550, 2164, 1683, 5915, 5946, 1762, 3886, 8325, 29918, 4381, 29918, 1767, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 1920, 305, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 30004, 13, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 363, 364, 29892, 260, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 16862, 4330, 3210, 6632, 14480, 29979, 29897, 2314, 30004, 13, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 297, 1920, 305, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29918, 6550, 2164, 1683, 1920, 305, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29918, 4381, 29918, 1767, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 5915, 5946, 29943, 7168, 30004, 13, 12415, 5946, 29943, 7168, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 12415, 5946, 29943, 7168, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29880, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 301, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 16862, 15307, 12750, 12107, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 16862, 29979, 26441, 29897, 2314, 30004, 13, 12415, 5946, 29943, 7168, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 669, 313, 29886, 29918, 2176, 1839, 15307, 12750, 12107, 2033, 1275, 301, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29880, 511, 710, 29898, 29891, 876, 297, 5915, 5946, 29943, 7168, 29918, 6550, 2164, 1683, 5915, 5946, 29943, 7168, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 7740, 737, 3097, 29943, 7168, 30004, 13, 12810, 737, 3097, 29943, 7168, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12810, 737, 3097, 29943, 7168, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 12810, 737, 3097, 29943, 7168, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12810, 737, 3097, 29943, 7168, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12810, 737, 3097, 29943, 7168, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12810, 737, 3097, 29943, 7168, 16862, 29979, 26441, 29897, 2314, 30004, 13, 12810, 737, 3097, 29943, 7168, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12810, 737, 3097, 29943, 7168, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 297, 7740, 737, 3097, 29943, 7168, 29918, 6550, 2164, 1683, 7740, 737, 3097, 29943, 7168, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 6607, 1288, 26754, 30004, 13, 7094, 1288, 26754, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 7094, 1288, 26754, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 363, 364, 29892, 260, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 16862, 4330, 3210, 6632, 14480, 29979, 29897, 2314, 30004, 13, 7094, 1288, 26754, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 297, 6607, 1288, 26754, 29918, 6550, 2164, 1683, 6607, 1288, 26754, 29918, 4381, 29918, 1767, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 2538, 333, 950, 12415, 5946, 30004, 13, 1666, 333, 950, 12415, 5946, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 12415, 5946, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 1666, 333, 950, 12415, 5946, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 12415, 5946, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 12415, 5946, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 12415, 5946, 16862, 29979, 26441, 29897, 2314, 30004, 13, 1666, 333, 950, 12415, 5946, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 12415, 5946, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 297, 2538, 333, 950, 12415, 5946, 29918, 6550, 2164, 1683, 2538, 333, 950, 12415, 5946, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 10567, 3886, 29934, 20819, 30004, 13, 4290, 3886, 29934, 20819, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 4290, 3886, 29934, 20819, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29888, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 285, 29892, 286, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 16862, 29943, 4462, 29931, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 16862, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 16862, 29979, 26441, 29897, 2314, 30004, 13, 4290, 3886, 29934, 20819, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29886, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 1275, 286, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29888, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 297, 10567, 3886, 29934, 20819, 29918, 6550, 2164, 1683, 10567, 3886, 29934, 20819, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 10604, 3886, 29934, 20819, 30004, 13, 6466, 3886, 29934, 20819, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 6466, 3886, 29934, 20819, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29888, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 285, 29892, 286, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 16862, 29943, 4462, 29931, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 16862, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 16862, 29979, 26441, 29897, 2314, 30004, 13, 6466, 3886, 29934, 20819, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29886, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 1275, 286, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29888, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 297, 10604, 3886, 29934, 20819, 29918, 6550, 2164, 1683, 10604, 3886, 29934, 20819, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 7346, 29937, 12, 12, 12, 7141, 3049, 3002, 9839, 29879, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 29937, 25343, 25733, 30004, 13, 12415, 2410, 25733, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 12415, 2410, 25733, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 16862, 29979, 26441, 29897, 2314, 30004, 13, 12415, 2410, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 297, 25343, 25733, 29918, 6550, 2164, 1683, 25343, 25733, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 28736, 25733, 30004, 13, 16174, 25733, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 16174, 25733, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 286, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 16862, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 16862, 29979, 26441, 29897, 2314, 30004, 13, 16174, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 1275, 286, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 297, 28736, 25733, 29918, 6550, 2164, 1683, 28736, 25733, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 383, 11925, 25733, 30004, 13, 26262, 25733, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 26262, 25733, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 26262, 25733, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 26262, 25733, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 26262, 25733, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 26262, 25733, 16862, 29979, 26441, 29897, 2314, 30004, 13, 26262, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 26262, 25733, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 297, 383, 11925, 25733, 29918, 6550, 2164, 1683, 383, 11925, 25733, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 7346, 29937, 12, 12, 12, 10486, 462, 29871, 12, 7346, 29937, 30004, 13, 30004, 13, 29937, 17968, 1762, 10486, 30004, 13, 7141, 3049, 3002, 1762, 10486, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 1762, 10486, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 7141, 3049, 3002, 1762, 10486, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29879, 511, 710, 29898, 29885, 876, 363, 364, 29892, 260, 29892, 269, 29892, 286, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 1762, 10486, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 1762, 10486, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 1762, 10486, 16862, 1254, 1955, 10461, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 1762, 10486, 16862, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 29897, 2314, 30004, 13, 7141, 3049, 3002, 1762, 10486, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29885, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 1762, 10486, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 669, 313, 29886, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 1275, 286, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29879, 511, 710, 29898, 29885, 876, 297, 17968, 1762, 10486, 29918, 6550, 2164, 1683, 17968, 1762, 10486, 29918, 4381, 29918, 1767, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 17968, 4591, 10486, 30004, 13, 7141, 3049, 3002, 4591, 10486, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 4591, 10486, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 7141, 3049, 3002, 4591, 10486, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29879, 511, 710, 29898, 29885, 876, 363, 364, 29892, 260, 29892, 269, 29892, 286, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 4591, 10486, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 4591, 10486, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 4591, 10486, 16862, 1254, 1955, 10461, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 4591, 10486, 16862, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 29897, 2314, 30004, 13, 7141, 3049, 3002, 4591, 10486, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29885, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7141, 3049, 3002, 4591, 10486, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 669, 313, 29886, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 1275, 286, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29879, 511, 710, 29898, 29885, 876, 297, 17968, 4591, 10486, 29918, 6550, 2164, 1683, 17968, 4591, 10486, 29918, 4381, 29918, 1767, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 26162, 10108, 4763, 30004, 13, 10486, 10108, 4763, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 10108, 4763, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 10486, 10108, 4763, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 363, 364, 29892, 269, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 10108, 4763, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 10108, 4763, 16862, 1254, 1955, 10461, 29897, 2314, 30004, 13, 10486, 10108, 4763, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 10108, 4763, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 297, 26162, 10108, 4763, 29918, 6550, 2164, 1683, 26162, 10108, 4763, 29918, 4381, 29918, 1767, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 26162, 7976, 5914, 479, 19907, 30004, 13, 10486, 7976, 5914, 479, 19907, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 5914, 479, 19907, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 10486, 7976, 5914, 479, 19907, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 363, 364, 29892, 269, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 5914, 479, 19907, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 5914, 479, 19907, 16862, 1254, 1955, 10461, 29897, 2314, 30004, 13, 10486, 7976, 5914, 479, 19907, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 5914, 479, 19907, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 297, 26162, 7976, 5914, 479, 19907, 29918, 6550, 2164, 1683, 26162, 7976, 5914, 479, 19907, 29918, 4381, 29918, 1767, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 26162, 7976, 29928, 783, 279, 479, 19907, 30004, 13, 10486, 7976, 29928, 783, 279, 479, 19907, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 29928, 783, 279, 479, 19907, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 10486, 7976, 29928, 783, 279, 479, 19907, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 363, 364, 29892, 269, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 29928, 783, 279, 479, 19907, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 29928, 783, 279, 479, 19907, 16862, 1254, 1955, 10461, 29897, 2314, 30004, 13, 10486, 7976, 29928, 783, 279, 479, 19907, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 29928, 783, 279, 479, 19907, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 297, 26162, 7976, 29928, 783, 279, 479, 19907, 29918, 6550, 2164, 1683, 26162, 7976, 29928, 783, 279, 479, 19907, 29918, 4381, 29918, 1767, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 3080, 10486, 5914, 479, 30004, 13, 8140, 10486, 5914, 479, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 8140, 10486, 5914, 479, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 8140, 10486, 5914, 479, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 511, 851, 29898, 29891, 876, 363, 364, 29892, 269, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 8140, 10486, 5914, 479, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 8140, 10486, 5914, 479, 16862, 1254, 1955, 10461, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 8140, 10486, 5914, 479, 16862, 29979, 26441, 29897, 2314, 30004, 13, 8140, 10486, 5914, 479, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 8140, 10486, 5914, 479, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 511, 851, 29898, 29891, 876, 297, 3080, 10486, 5914, 479, 29918, 6550, 2164, 1683, 3080, 10486, 5914, 479, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 6607, 1288, 26754, 10486, 30004, 13, 7094, 1288, 26754, 10486, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 10486, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 7094, 1288, 26754, 10486, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 363, 364, 29892, 269, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 10486, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 10486, 16862, 1254, 1955, 10461, 29897, 2314, 30004, 13, 7094, 1288, 26754, 10486, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 10486, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 297, 6607, 1288, 26754, 10486, 29918, 6550, 2164, 1683, 6607, 1288, 26754, 10486, 29918, 4381, 29918, 1767, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 25343, 25733, 10486, 30004, 13, 12415, 2410, 25733, 10486, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 10486, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 12415, 2410, 25733, 10486, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 511, 851, 29898, 29891, 876, 363, 364, 29892, 269, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 10486, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 10486, 16862, 1254, 1955, 10461, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 10486, 16862, 29979, 26441, 29897, 2314, 30004, 13, 12415, 2410, 25733, 10486, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 10486, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 511, 851, 29898, 29891, 876, 297, 25343, 25733, 10486, 29918, 6550, 2164, 1683, 25343, 25733, 10486, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 2538, 333, 950, 10486, 12415, 5946, 30004, 13, 1666, 333, 950, 10486, 12415, 5946, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 10486, 12415, 5946, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 1666, 333, 950, 10486, 12415, 5946, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 511, 851, 29898, 29891, 876, 363, 364, 29892, 269, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 10486, 12415, 5946, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 10486, 12415, 5946, 16862, 1254, 1955, 10461, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 10486, 12415, 5946, 16862, 29979, 26441, 29897, 2314, 30004, 13, 1666, 333, 950, 10486, 12415, 5946, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 10486, 12415, 5946, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 511, 851, 29898, 29891, 876, 297, 2538, 333, 950, 10486, 12415, 5946, 29918, 6550, 2164, 1683, 2538, 333, 950, 10486, 12415, 5946, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 7346, 29937, 12, 12, 12, 12415, 5946, 1281, 4151, 9466, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 29937, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 30004, 13, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 16862, 29979, 26441, 29897, 2314, 30004, 13, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29918, 6550, 2164, 1683, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 14990, 2744, 29876, 950, 7976, 12415, 5946, 30004, 13, 11536, 2744, 29876, 950, 7976, 12415, 5946, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 11536, 2744, 29876, 950, 7976, 12415, 5946, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 16862, 29979, 26441, 29897, 2314, 30004, 13, 11536, 2744, 29876, 950, 7976, 12415, 5946, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 14990, 2744, 29876, 950, 7976, 12415, 5946, 29918, 6550, 2164, 1683, 14990, 2744, 29876, 950, 7976, 12415, 5946, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 14990, 2744, 29876, 950, 8140, 12415, 5946, 30004, 13, 11536, 2744, 29876, 950, 8140, 12415, 5946, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 11536, 2744, 29876, 950, 8140, 12415, 5946, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 16862, 29979, 26441, 29897, 2314, 30004, 13, 11536, 2744, 29876, 950, 8140, 12415, 5946, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 14990, 2744, 29876, 950, 8140, 12415, 5946, 29918, 6550, 2164, 1683, 14990, 2744, 29876, 950, 8140, 12415, 5946, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 7346, 29937, 12, 12, 12, 797, 10147, 358, 1281, 4151, 9466, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 29937, 14990, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 30004, 13, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 16862, 29979, 26441, 29897, 2314, 30004, 13, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 14990, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29918, 6550, 2164, 1683, 14990, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 30004, 13, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 16862, 29979, 26441, 29897, 2314, 30004, 13, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29918, 6550, 2164, 1683, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 7346, 29937, 12, 12, 12, 3886, 1281, 4151, 9466, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 29937, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 30004, 13, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 16862, 29979, 26441, 29897, 2314, 30004, 13, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29918, 6550, 2164, 1683, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 30004, 13, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 16862, 29979, 26441, 29897, 2314, 30004, 13, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29918, 6550, 2164, 1683, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 30004, 13, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 363, 364, 29892, 260, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 16862, 4330, 3210, 6632, 14480, 29979, 29897, 2314, 30004, 13, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 297, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29918, 6550, 2164, 1683, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29918, 4381, 29918, 1767, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 30004, 13, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 363, 364, 29892, 260, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 16862, 4330, 3210, 6632, 14480, 29979, 29897, 2314, 30004, 13, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 297, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29918, 6550, 2164, 1683, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29918, 4381, 29918, 1767, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 7346, 29937, 12, 12, 12, 1666, 7143, 1085, 5359, 12, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 29937, 27811, 29924, 3930, 8176, 7141, 3049, 3002, 30004, 13, 1666, 7143, 29924, 3930, 8176, 7141, 3049, 3002, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 8176, 7141, 3049, 3002, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 1666, 7143, 29924, 3930, 8176, 7141, 3049, 3002, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 8176, 7141, 3049, 3002, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 8176, 7141, 3049, 3002, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 8176, 7141, 3049, 3002, 16862, 29979, 26441, 29897, 2314, 30004, 13, 1666, 7143, 29924, 3930, 8176, 7141, 3049, 3002, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 8176, 7141, 3049, 3002, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 27811, 29924, 3930, 8176, 7141, 3049, 3002, 29918, 6550, 2164, 1683, 27811, 29924, 3930, 8176, 7141, 3049, 3002, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 27811, 29924, 3930, 8176, 29943, 2491, 30004, 13, 1666, 7143, 29924, 3930, 8176, 29943, 2491, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 8176, 29943, 2491, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 1666, 7143, 29924, 3930, 8176, 29943, 2491, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29888, 511, 851, 29898, 29891, 876, 363, 364, 29892, 285, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 8176, 29943, 2491, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 8176, 29943, 2491, 16862, 29943, 4462, 29931, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 8176, 29943, 2491, 16862, 29979, 26441, 29897, 2314, 30004, 13, 1666, 7143, 29924, 3930, 8176, 29943, 2491, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 8176, 29943, 2491, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29888, 511, 851, 29898, 29891, 876, 297, 27811, 29924, 3930, 8176, 29943, 2491, 29918, 6550, 2164, 1683, 27811, 29924, 3930, 8176, 29943, 2491, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 27811, 29924, 3930, 30004, 13, 1666, 7143, 29924, 3930, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 1666, 7143, 29924, 3930, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29891, 876, 363, 364, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 16862, 29979, 26441, 29897, 2314, 30004, 13, 1666, 7143, 29924, 3930, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 7143, 29924, 3930, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29891, 876, 297, 27811, 29924, 3930, 29918, 6550, 2164, 1683, 27811, 29924, 3930, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 7346, 29937, 12, 12, 12, 1525, 28203, 17157, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 29937, 28081, 351, 7141, 3049, 3002, 30004, 13, 1525, 8176, 7141, 3049, 3002, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8176, 7141, 3049, 3002, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 1525, 8176, 7141, 3049, 3002, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8176, 7141, 3049, 3002, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8176, 7141, 3049, 3002, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8176, 7141, 3049, 3002, 16862, 29979, 26441, 29897, 2314, 30004, 13, 1525, 8176, 7141, 3049, 3002, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8176, 7141, 3049, 3002, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 28081, 351, 7141, 3049, 3002, 29918, 6550, 2164, 1683, 28081, 351, 7141, 3049, 3002, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 28081, 351, 29943, 2491, 30004, 13, 1525, 8176, 29943, 2491, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8176, 29943, 2491, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 1525, 8176, 29943, 2491, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29888, 511, 851, 29898, 29891, 876, 363, 364, 29892, 285, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8176, 29943, 2491, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8176, 29943, 2491, 16862, 29943, 4462, 29931, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8176, 29943, 2491, 16862, 29979, 26441, 29897, 2314, 30004, 13, 1525, 8176, 29943, 2491, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8176, 29943, 2491, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29888, 511, 851, 29898, 29891, 876, 297, 28081, 351, 29943, 2491, 29918, 6550, 2164, 1683, 28081, 351, 29943, 2491, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 5195, 8140, 23665, 428, 8667, 30004, 13, 1525, 8140, 23665, 428, 8667, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8140, 23665, 428, 8667, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 1525, 8140, 23665, 428, 8667, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29891, 876, 363, 364, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8140, 23665, 428, 8667, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8140, 23665, 428, 8667, 16862, 29979, 26441, 29897, 2314, 30004, 13, 1525, 8140, 23665, 428, 8667, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1525, 8140, 23665, 428, 8667, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29891, 876, 297, 5195, 8140, 23665, 428, 8667, 29918, 6550, 2164, 1683, 5195, 8140, 23665, 428, 8667, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 7346, 29937, 12, 12, 12, 6026, 6847, 669, 7363, 1997, 583, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 29937, 2812, 2333, 3886, 29934, 20819, 30004, 13, 6026, 2333, 3886, 29934, 20819, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 6026, 2333, 3886, 29934, 20819, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29872, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 321, 29892, 286, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 16862, 29923, 10403, 13507, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 16862, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 16862, 29979, 26441, 29897, 2314, 30004, 13, 6026, 2333, 3886, 29934, 20819, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29886, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 669, 313, 29886, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 1275, 286, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29872, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 297, 2812, 2333, 3886, 29934, 20819, 29918, 6550, 2164, 1683, 2812, 2333, 3886, 29934, 20819, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 2812, 6847, 29925, 264, 18745, 30004, 13, 6026, 6847, 29925, 264, 18745, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 6847, 29925, 264, 18745, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 6026, 6847, 29925, 264, 18745, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 363, 364, 29892, 321, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 6847, 29925, 264, 18745, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 6847, 29925, 264, 18745, 16862, 29923, 10403, 13507, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 6847, 29925, 264, 18745, 16862, 29979, 26441, 29897, 2314, 30004, 13, 6026, 6847, 29925, 264, 18745, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 6847, 29925, 264, 18745, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 297, 2812, 6847, 29925, 264, 18745, 29918, 6550, 2164, 1683, 2812, 6847, 29925, 264, 18745, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 8081, 950, 1252, 6352, 681, 6026, 2333, 30004, 13, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 363, 364, 29892, 321, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 16862, 29923, 10403, 13507, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 16862, 29979, 26441, 29897, 2314, 30004, 13, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 297, 8081, 950, 1252, 6352, 681, 6026, 2333, 29918, 6550, 2164, 1683, 8081, 950, 1252, 6352, 681, 6026, 2333, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 8081, 950, 6026, 2333, 24445, 30004, 13, 2744, 29876, 950, 6026, 2333, 24445, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 6026, 2333, 24445, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 2744, 29876, 950, 6026, 2333, 24445, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 363, 364, 29892, 321, 29892, 343, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 6026, 2333, 24445, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 6026, 2333, 24445, 16862, 29923, 10403, 13507, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 6026, 2333, 24445, 16862, 29979, 26441, 29897, 2314, 30004, 13, 2744, 29876, 950, 6026, 2333, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29891, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 6026, 2333, 24445, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 669, 313, 29886, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 297, 8081, 950, 6026, 2333, 24445, 29918, 6550, 2164, 1683, 8081, 950, 6026, 2333, 24445, 29918, 4381, 29918, 1767, 363, 343, 297, 612, 26441, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 8125, 29853, 1252, 6352, 681, 6026, 2333, 30004, 13, 3195, 29853, 1252, 6352, 681, 6026, 2333, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 1252, 6352, 681, 6026, 2333, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 3195, 29853, 1252, 6352, 681, 6026, 2333, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29872, 876, 363, 364, 29892, 321, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 1252, 6352, 681, 6026, 2333, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 1252, 6352, 681, 6026, 2333, 16862, 29923, 10403, 13507, 29897, 2314, 30004, 13, 3195, 29853, 1252, 6352, 681, 6026, 2333, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 1252, 6352, 681, 6026, 2333, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29872, 876, 297, 8125, 29853, 1252, 6352, 681, 6026, 2333, 29918, 6550, 2164, 1683, 8125, 29853, 1252, 6352, 681, 6026, 2333, 29918, 4381, 29918, 1767, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 29937, 8125, 29853, 6026, 2333, 24445, 30004, 13, 3195, 29853, 6026, 2333, 24445, 29918, 4381, 29918, 1767, 353, 282, 29918, 4381, 29918, 2176, 29961, 29886, 29918, 4381, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 6026, 2333, 24445, 16862, 19143, 29889, 7163, 29961, 29900, 29962, 30004, 13, 3195, 29853, 6026, 2333, 24445, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29872, 876, 363, 364, 29892, 321, 297, 14319, 29898, 29886, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 6026, 2333, 24445, 16862, 18166, 2725, 29892, 282, 29918, 2176, 29961, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 6026, 2333, 24445, 16862, 29923, 10403, 13507, 29897, 2314, 30004, 13, 3195, 29853, 6026, 2333, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 282, 29918, 2176, 15625, 29886, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 6026, 2333, 24445, 1159, 669, 313, 29886, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29886, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 1822, 19143, 29889, 7163, 29961, 29900, 29962, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29872, 876, 297, 8125, 29853, 6026, 2333, 24445, 29918, 6550, 2164, 1683, 8125, 29853, 6026, 2333, 24445, 29918, 4381, 29918, 1767, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 21027, 29889, 3888, 703, 29912, 1012, 29873, 11507, 526, 2825, 1213, 29889, 4830, 29898, 6008, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29908, 4961, 30004, 13, 30004, 13, 29875, 353, 29871, 29900, 30004, 13, 8000, 474, 5277, 286, 2395, 29918, 1949, 29901, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 8942, 2785, 12104, 268, 835, 4136, 2277, 30004, 13, 30004, 13, 1678, 12183, 29889, 3888, 703, 29912, 1012, 29873, 3195, 1065, 396, 8875, 1642, 4830, 29898, 6008, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 4968, 474, 876, 30004, 13, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 29899, 30004, 13, 1678, 396, 1678, 16999, 2287, 29931, 2672, 1806, 25758, 26664, 8098, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 29899, 30004, 13, 30004, 13, 1678, 1904, 353, 9505, 29886, 29889, 29931, 29886, 26604, 29898, 4299, 1170, 29892, 9505, 29886, 29889, 29931, 29886, 8140, 326, 675, 8443, 13, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 29899, 30004, 13, 1678, 396, 1678, 16999, 2287, 29931, 478, 1718, 29902, 6181, 29903, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 29899, 30004, 13, 30004, 13, 1678, 835, 4136, 29937, 12, 12, 12, 29928, 331, 4167, 29871, 12, 12, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 390, 403, 2776, 29928, 331, 392, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 19907, 2776, 29928, 331, 392, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 4432, 392, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 29928, 331, 392, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 835, 4136, 29937, 12, 12, 12, 10486, 462, 29871, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 390, 403, 2776, 10486, 5914, 479, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 3137, 1125, 426, 710, 29898, 430, 1125, 426, 710, 29898, 29880, 29882, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 19907, 2776, 10486, 5914, 479, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 19375, 29892, 301, 29881, 29892, 301, 29882, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 29913, 363, 301, 29881, 297, 21330, 29979, 11116, 29913, 363, 19375, 297, 3725, 29909, 3094, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 390, 403, 2776, 10486, 29928, 783, 279, 479, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 3137, 1125, 426, 710, 29898, 430, 1125, 426, 710, 29898, 29880, 29882, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 19907, 2776, 10486, 29928, 783, 279, 479, 613, 6213, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 19375, 29892, 301, 29881, 29892, 301, 29882, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 29913, 363, 301, 29881, 297, 21330, 29979, 11116, 29913, 363, 19375, 297, 3725, 29909, 3094, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 12670, 5914, 479, 3047, 262, 12883, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 3137, 1125, 426, 710, 29898, 430, 1125, 426, 710, 29898, 29880, 29882, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 6779, 5914, 479, 3047, 262, 12883, 613, 6213, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 19375, 29892, 301, 29881, 29892, 301, 29882, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 29913, 363, 301, 29881, 297, 21330, 29979, 11116, 29913, 363, 19375, 297, 3725, 29909, 3094, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 12670, 5914, 479, 3047, 262, 12742, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 3137, 1125, 426, 710, 29898, 430, 1125, 426, 710, 29898, 29880, 29882, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 6779, 5914, 479, 3047, 262, 12742, 613, 6213, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 19375, 29892, 301, 29881, 29892, 301, 29882, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 29913, 363, 301, 29881, 297, 21330, 29979, 11116, 29913, 363, 19375, 297, 3725, 29909, 3094, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 26162, 10108, 12883, 4763, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 10486, 10108, 12883, 4763, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 26162, 10108, 12883, 12881, 728, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 10486, 10108, 12883, 12881, 728, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 26162, 10108, 2008, 1658, 4763, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 3137, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 10486, 10108, 2008, 1658, 4763, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 19375, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 19375, 297, 3725, 29909, 3094, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 26162, 10108, 12742, 1542, 4763, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 3137, 1125, 426, 710, 29898, 430, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 10486, 10108, 12742, 1542, 4763, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 19375, 29892, 301, 29881, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 301, 29881, 297, 21330, 29979, 11116, 29913, 363, 19375, 297, 3725, 29909, 3094, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 26162, 10108, 12742, 1542, 12881, 728, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 3137, 1125, 426, 710, 29898, 430, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 10486, 10108, 12742, 1542, 12881, 728, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 19375, 29892, 301, 29881, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 301, 29881, 297, 21330, 29979, 11116, 29913, 363, 19375, 297, 3725, 29909, 3094, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 26162, 19357, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 10486, 19357, 24445, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 26162, 26214, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 10486, 26214, 24445, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 4831, 398, 7964, 4373, 10486, 12415, 5946, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 7504, 398, 7964, 4373, 10486, 12415, 5946, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 1570, 10486, 12415, 5946, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 4373, 10486, 12415, 5946, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 25343, 797, 10147, 358, 10486, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 12415, 2410, 797, 10147, 358, 10486, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 3295, 2798, 287, 12415, 2410, 797, 10147, 358, 10486, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 4205, 2798, 287, 12415, 2410, 797, 10147, 358, 10486, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 14964, 482, 1917, 10486, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 20392, 29894, 482, 1917, 10486, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 3295, 2798, 287, 20392, 29894, 482, 1917, 10486, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 4205, 2798, 287, 20392, 29894, 482, 1917, 10486, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 14990, 4205, 2798, 287, 10486, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11536, 4205, 2798, 287, 10486, 25733, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 269, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 12415, 5946, 9586, 1849, 29871, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 9681, 2776, 4373, 7141, 3049, 3002, 2525, 1169, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 4557, 2776, 4373, 7141, 3049, 3002, 2525, 1169, 613, 29871, 29900, 29892, 6213, 29892, 525, 7798, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 1570, 12415, 5946, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 4373, 12415, 5946, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 4831, 398, 7964, 4373, 12415, 5946, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 7504, 398, 7964, 4373, 12415, 5946, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 14990, 12415, 5946, 2744, 29876, 950, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11536, 12415, 5946, 2744, 29876, 950, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 3886, 9586, 1849, 29871, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 390, 403, 2776, 3886, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 19907, 2776, 3886, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 260, 29892, 286, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 390, 403, 2776, 11536, 3886, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 19907, 2776, 11536, 3886, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 301, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 14990, 2744, 29876, 950, 7141, 3049, 3002, 3886, 2059, 6818, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11536, 2744, 29876, 950, 7141, 3049, 3002, 3886, 2059, 6818, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 286, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 716, 9037, 703, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 613, 6213, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29897, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 390, 403, 2776, 23665, 428, 2059, 7141, 3049, 3002, 2059, 6818, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 19907, 2776, 23665, 428, 2059, 7141, 3049, 3002, 2059, 6818, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 260, 29892, 286, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 390, 403, 2776, 23665, 428, 2059, 7141, 3049, 3002, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 19907, 2776, 23665, 428, 2059, 7141, 3049, 3002, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 260, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 19561, 2059, 7141, 3049, 3002, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 23665, 428, 2059, 7141, 3049, 3002, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 260, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 19561, 2059, 7141, 3049, 3002, 2744, 29876, 950, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 23665, 428, 2059, 7141, 3049, 3002, 2744, 29876, 950, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 390, 403, 2776, 23665, 428, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 19907, 2776, 23665, 428, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 19561, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 23665, 428, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 390, 403, 2776, 11403, 2059, 7141, 3049, 3002, 2059, 6818, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 19907, 2776, 11403, 2059, 7141, 3049, 3002, 2059, 6818, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 260, 29892, 286, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 390, 403, 2776, 11403, 2059, 7141, 3049, 3002, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 19907, 2776, 11403, 2059, 7141, 3049, 3002, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 260, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 4803, 2059, 7141, 3049, 3002, 2744, 29876, 950, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11403, 2059, 7141, 3049, 3002, 2744, 29876, 950, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 390, 403, 2776, 11403, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 19907, 2776, 11403, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 4803, 2059, 7141, 3049, 3002, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11403, 2059, 7141, 3049, 3002, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 260, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 4803, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11403, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 27226, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 21478, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 5323, 311, 613, 6213, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 364, 29878, 29892, 301, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 29878, 297, 5195, 29954, 2725, 29906, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 27226, 2744, 29876, 950, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 21478, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 5323, 311, 2744, 29876, 950, 613, 6213, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 364, 29878, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 364, 29878, 297, 5195, 29954, 2725, 29906, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 19561, 2744, 29876, 950, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 23665, 428, 2744, 29876, 950, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 4803, 2744, 29876, 950, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11403, 2744, 29876, 950, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 285, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 25733, 292, 9586, 1849, 29871, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 25343, 797, 10147, 358, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 12415, 2410, 797, 10147, 358, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 3295, 2798, 287, 12415, 2410, 797, 10147, 358, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 4205, 2798, 287, 12415, 2410, 797, 10147, 358, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 14964, 482, 1917, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 20392, 29894, 482, 1917, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 3295, 2798, 287, 20392, 29894, 482, 1917, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 4205, 2798, 287, 20392, 29894, 482, 1917, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 6607, 1218, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 7094, 1218, 25733, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 3295, 2798, 287, 7094, 1218, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 4205, 2798, 287, 7094, 1218, 25733, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 8081, 950, 16174, 7094, 1218, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 2744, 29876, 950, 16174, 7094, 1218, 25733, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 8081, 950, 26262, 7094, 1218, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 2744, 29876, 950, 26262, 7094, 1218, 25733, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 14990, 4205, 2798, 287, 25733, 2059, 7141, 3049, 3002, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11536, 4205, 2798, 287, 25733, 2059, 7141, 3049, 3002, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 14990, 4205, 2798, 287, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11536, 4205, 2798, 287, 25733, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 8125, 29853, 25733, 2059, 18457, 353, 426, 710, 29898, 29878, 1125, 716, 9037, 703, 3195, 29853, 25733, 2059, 18457, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29897, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 1666, 7143, 1085, 5359, 12, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 14990, 12415, 5946, 797, 1666, 7143, 29924, 3930, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11536, 12415, 5946, 797, 1666, 7143, 29924, 3930, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 4432, 392, 8139, 21219, 1666, 7143, 29924, 3930, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 29928, 331, 392, 8139, 21219, 1666, 7143, 29924, 3930, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 301, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 1525, 5739, 17157, 12, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 14990, 1525, 23665, 428, 2744, 29876, 950, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 11536, 1525, 23665, 428, 2744, 29876, 950, 613, 6213, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 28081, 7288, 23665, 428, 2776, 8667, 29943, 2491, 2744, 29876, 950, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 1525, 11536, 23665, 428, 2776, 8667, 29943, 2491, 2744, 29876, 950, 613, 6213, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 6026, 6847, 12, 12, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 8081, 950, 7141, 3049, 3002, 6026, 2333, 2059, 6818, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 2744, 29876, 950, 7141, 3049, 3002, 6026, 2333, 2059, 6818, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 321, 29892, 286, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 8081, 950, 7141, 3049, 3002, 6026, 2333, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 2744, 29876, 950, 7141, 3049, 3002, 6026, 2333, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 321, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 8081, 950, 7141, 3049, 3002, 6026, 2333, 29925, 264, 18745, 2059, 6026, 2333, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 2744, 29876, 950, 7141, 3049, 3002, 6026, 2333, 29925, 264, 18745, 2059, 6026, 2333, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 321, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 8081, 950, 7141, 3049, 3002, 6026, 6847, 29925, 264, 18745, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 2744, 29876, 950, 7141, 3049, 3002, 6026, 6847, 29925, 264, 18745, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 3295, 2798, 287, 7141, 3049, 3002, 6026, 6847, 29925, 264, 18745, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 4205, 2798, 287, 7141, 3049, 3002, 6026, 6847, 29925, 264, 18745, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 260, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 8081, 950, 6026, 6847, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29891, 1125, 716, 9037, 703, 2744, 29876, 950, 6026, 6847, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 321, 29892, 343, 29897, 363, 343, 297, 612, 26441, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 1678, 8125, 29853, 6026, 6847, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 716, 9037, 703, 3195, 29853, 6026, 6847, 613, 29871, 29900, 29892, 6213, 29892, 525, 1323, 8675, 681, 742, 364, 29892, 321, 29897, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 12183, 29889, 3888, 703, 29912, 1012, 29873, 10444, 1849, 526, 2825, 1642, 4830, 29898, 6008, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29908, 4961, 30004, 13, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 29899, 30004, 13, 1678, 396, 1678, 438, 29933, 17637, 18474, 383, 28700, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 29899, 30004, 13, 30004, 13, 1678, 3438, 353, 9505, 29886, 29889, 29931, 29886, 16174, 703, 18253, 613, 6635, 2433, 1323, 8675, 681, 1495, 30004, 13, 1678, 1904, 4619, 3438, 29892, 376, 2061, 573, 19451, 13, 1678, 1904, 4619, 3438, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 11536, 4205, 2798, 287, 25733, 29961, 29878, 3816, 29891, 29962, 363, 364, 297, 5195, 29954, 2725, 363, 343, 297, 612, 26441, 11724, 376, 25733, 29918, 2220, 19451, 13, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 29899, 30004, 13, 1678, 396, 1678, 8707, 1254, 4717, 1177, 9375, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 29899, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 301, 297, 323, 8890, 12750, 12107, 29901, 30004, 13, 9651, 363, 285, 297, 383, 4462, 29931, 29901, 30004, 13, 18884, 363, 343, 297, 612, 26441, 29901, 30004, 13, 462, 1678, 396, 382, 29984, 29918, 10299, 2164, 29928, 331, 392, 30004, 13, 462, 1678, 1904, 4619, 390, 403, 2776, 29928, 331, 392, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 1275, 12048, 2164, 2744, 29876, 950, 29928, 331, 392, 29961, 29878, 3816, 29888, 3816, 29891, 29962, 334, 12048, 2164, 29928, 331, 392, 13909, 29961, 29878, 3816, 29888, 3816, 29880, 3816, 29891, 29962, 847, 8905, 18772, 29961, 29880, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 12415, 5946, 319, 311, 339, 4135, 319, 12, 418, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 9651, 363, 343, 297, 612, 26441, 29901, 30004, 13, 18884, 396, 12766, 29874, 29896, 29918, 11536, 4373, 12415, 5946, 30004, 13, 18884, 1904, 4619, 4831, 398, 7964, 4373, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 4373, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 8071, 29962, 363, 343, 29891, 297, 612, 26441, 565, 313, 7411, 29898, 524, 29898, 29891, 29897, 448, 938, 29898, 8071, 876, 529, 6607, 1288, 26754, 29961, 29878, 3816, 29873, 2314, 322, 313, 524, 29898, 29891, 29897, 448, 938, 29898, 8071, 29897, 6736, 29871, 29900, 4638, 511, 5124, 30004, 13, 18884, 396, 12766, 29874, 29906, 29918, 11536, 2744, 29876, 950, 12415, 5946, 30004, 13, 18884, 1904, 4619, 14990, 12415, 5946, 2744, 29876, 950, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 4831, 398, 7964, 4373, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 718, 2538, 333, 950, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 18884, 363, 301, 297, 323, 8890, 12750, 12107, 29901, 30004, 13, 462, 1678, 396, 12766, 29874, 29941, 29918, 11536, 3886, 2776, 9760, 7141, 3049, 3002, 30004, 13, 462, 1678, 1904, 4619, 390, 403, 2776, 11536, 3886, 29961, 29878, 3816, 29873, 3816, 29880, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 3886, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29885, 3816, 29891, 29962, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 11724, 5124, 30004, 13, 462, 1678, 396, 12766, 29874, 29946, 29918, 21529, 29918, 12415, 5946, 30004, 13, 462, 1678, 1904, 4619, 390, 403, 2776, 11536, 3886, 29961, 29878, 3816, 29873, 3816, 29880, 3816, 29891, 29962, 5277, 14990, 12415, 5946, 2744, 29876, 950, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 5915, 5946, 29943, 7168, 29961, 29878, 3816, 29873, 3816, 29880, 3816, 29891, 29962, 334, 5915, 5946, 1762, 3886, 8325, 29961, 29878, 3816, 29873, 1402, 5124, 30004, 13, 30004, 13, 18884, 565, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 2804, 29871, 29900, 29901, 30004, 13, 462, 1678, 396, 12766, 29874, 29945, 29918, 11536, 4373, 12415, 5946, 30004, 13, 462, 1678, 1904, 4619, 1570, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 9681, 2776, 4373, 7141, 3049, 3002, 2525, 1169, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 12415, 5946, 319, 311, 339, 4135, 350, 12, 12, 29871, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 9651, 363, 343, 297, 612, 26441, 29901, 30004, 13, 18884, 396, 315, 4920, 29896, 29918, 3247, 11310, 6330, 841, 749, 30004, 13, 18884, 1904, 4619, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 11536, 3886, 29961, 29878, 3816, 29873, 3816, 29880, 3816, 29891, 29962, 334, 8905, 18772, 29961, 29880, 3816, 29891, 29962, 363, 301, 297, 323, 8890, 12750, 12107, 2314, 5277, 9505, 29886, 29889, 22833, 11139, 4197, 11536, 12415, 5946, 2744, 29876, 950, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 5915, 5946, 29943, 7168, 29961, 29878, 3816, 29873, 3816, 29880, 3816, 29891, 29962, 334, 8905, 18772, 29961, 29880, 3816, 29891, 29962, 363, 301, 297, 323, 8890, 12750, 12107, 2314, 334, 7740, 737, 3097, 29943, 7168, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 5915, 5946, 1762, 3886, 8325, 29961, 29878, 3816, 29873, 1402, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 29923, 1089, 1927, 7392, 749, 319, 268, 12, 29871, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 301, 297, 323, 8890, 12750, 12107, 29901, 30004, 13, 9651, 363, 285, 297, 383, 4462, 29931, 29901, 30004, 13, 18884, 363, 343, 297, 612, 26441, 29901, 30004, 13, 462, 1678, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 462, 4706, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29901, 30004, 13, 462, 9651, 396, 382, 29933, 29874, 29896, 29918, 19907, 2776, 29943, 2491, 23665, 428, 29896, 30004, 13, 462, 9651, 565, 10604, 3886, 29934, 20819, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29885, 3816, 29891, 29962, 2804, 29871, 29900, 29901, 30004, 13, 462, 18884, 1904, 4619, 390, 403, 2776, 23665, 428, 2059, 7141, 3049, 3002, 2059, 6818, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29885, 3816, 29888, 3816, 29891, 29962, 1275, 390, 403, 2776, 3886, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29885, 3816, 29891, 29962, 334, 10604, 3886, 29934, 20819, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29885, 3816, 29891, 1402, 5124, 30004, 13, 462, 9651, 1683, 29901, 30004, 13, 462, 18884, 1904, 4619, 390, 403, 2776, 23665, 428, 2059, 7141, 3049, 3002, 2059, 6818, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29885, 3816, 29888, 3816, 29891, 29962, 1275, 29871, 29900, 29892, 5124, 30004, 13, 462, 4706, 396, 382, 29933, 29874, 29906, 29918, 19907, 2776, 29943, 2491, 23665, 428, 29906, 30004, 13, 462, 4706, 1904, 4619, 390, 403, 2776, 23665, 428, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 23665, 428, 2059, 7141, 3049, 3002, 2059, 6818, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29885, 3816, 29888, 3816, 29891, 29962, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 565, 10604, 3886, 29934, 20819, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29885, 3816, 29891, 29962, 2804, 29871, 29900, 11724, 5124, 30004, 13, 462, 1678, 396, 382, 29933, 29874, 29941, 29918, 19907, 2776, 29943, 2491, 23665, 428, 29941, 30004, 13, 462, 1678, 1904, 4619, 390, 403, 2776, 23665, 428, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 23665, 428, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 11724, 5124, 30004, 13, 30004, 13, 462, 1678, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 462, 4706, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29901, 30004, 13, 462, 9651, 396, 382, 29933, 29874, 29946, 29918, 19907, 2776, 29943, 2491, 11403, 29896, 30004, 13, 462, 9651, 565, 10567, 3886, 29934, 20819, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29885, 3816, 29891, 29962, 2804, 29871, 29900, 29901, 30004, 13, 462, 18884, 1904, 4619, 390, 403, 2776, 11403, 2059, 7141, 3049, 3002, 2059, 6818, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29885, 3816, 29888, 3816, 29891, 29962, 1275, 390, 403, 2776, 3886, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29885, 3816, 29891, 29962, 334, 10567, 3886, 29934, 20819, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29885, 3816, 29891, 1402, 5124, 30004, 13, 462, 4706, 396, 382, 29933, 29874, 29945, 29918, 19907, 2776, 29943, 2491, 11403, 29906, 30004, 13, 462, 4706, 1904, 4619, 390, 403, 2776, 11403, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 11403, 2059, 7141, 3049, 3002, 2059, 6818, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29885, 3816, 29888, 3816, 29891, 29962, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 565, 10567, 3886, 29934, 20819, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29885, 3816, 29891, 29962, 2804, 29871, 29900, 11724, 5124, 30004, 13, 462, 1678, 396, 382, 29933, 29874, 29953, 29918, 19907, 2776, 29943, 2491, 11403, 29941, 30004, 13, 462, 1678, 1904, 4619, 390, 403, 2776, 11403, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 11403, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 11724, 5124, 30004, 13, 462, 1678, 396, 382, 29933, 29874, 29955, 29918, 29923, 1089, 1927, 22031, 749, 9760, 9375, 29896, 30004, 13, 462, 1678, 1904, 4619, 19561, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 1275, 390, 403, 2776, 23665, 428, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 334, 8905, 18772, 29961, 29880, 3816, 29891, 1402, 5124, 30004, 13, 462, 1678, 396, 382, 29933, 29874, 29947, 29918, 29923, 1089, 1927, 22031, 749, 9760, 9375, 29906, 30004, 13, 462, 1678, 1904, 4619, 4803, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 1275, 390, 403, 2776, 11403, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 334, 8905, 18772, 29961, 29880, 3816, 29891, 1402, 5124, 30004, 13, 462, 1678, 396, 382, 29933, 29874, 29929, 29918, 29923, 1089, 1927, 22031, 749, 9760, 9375, 29941, 30004, 13, 462, 1678, 1904, 4619, 4432, 392, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 1275, 390, 403, 2776, 29928, 331, 392, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 334, 8905, 18772, 29961, 29880, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 462, 1678, 363, 364, 29878, 297, 5195, 29954, 2725, 29906, 29901, 30004, 13, 462, 4706, 396, 382, 29933, 29874, 29896, 29900, 29918, 29923, 1089, 1927, 22031, 749, 9760, 9375, 29946, 30004, 13, 462, 4706, 1904, 4619, 27226, 29961, 29878, 3816, 21478, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 1275, 448, 5323, 311, 29961, 21478, 3816, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 1402, 5124, 30004, 13, 462, 1678, 396, 382, 29933, 29874, 29896, 29896, 29918, 29923, 1089, 1927, 22031, 749, 9760, 9375, 29945, 30004, 13, 462, 1678, 1904, 4619, 19561, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 6736, 4432, 392, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 718, 4803, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 718, 9505, 29886, 29889, 22833, 11139, 4197, 5323, 311, 29961, 29878, 3816, 21478, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 334, 27226, 12085, 29961, 29878, 3816, 21478, 3816, 29888, 3816, 29891, 29962, 363, 364, 29878, 297, 5195, 29954, 2725, 29906, 11724, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 308, 12, 29923, 1089, 1927, 7392, 749, 350, 12, 12, 29871, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 285, 297, 383, 4462, 29931, 29901, 30004, 13, 9651, 363, 343, 297, 612, 26441, 29901, 30004, 13, 18884, 396, 382, 29933, 29890, 29896, 29918, 29923, 1089, 1927, 22031, 749, 9760, 12883, 29896, 30004, 13, 18884, 1904, 4619, 19561, 2744, 29876, 950, 29961, 29878, 3816, 29888, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 23665, 428, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 363, 301, 297, 323, 8890, 12750, 12107, 11724, 5124, 30004, 13, 18884, 396, 382, 29933, 29890, 29906, 29918, 29923, 1089, 1927, 22031, 749, 9760, 12883, 29906, 30004, 13, 18884, 1904, 4619, 4803, 2744, 29876, 950, 29961, 29878, 3816, 29888, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 11403, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 363, 301, 297, 323, 8890, 12750, 12107, 11724, 5124, 30004, 13, 30004, 13, 18884, 363, 364, 29878, 297, 5195, 29954, 2725, 29906, 29901, 30004, 13, 462, 1678, 396, 382, 29933, 29890, 29941, 29918, 29923, 1089, 1927, 22031, 749, 9760, 12883, 29941, 30004, 13, 462, 1678, 1904, 4619, 27226, 2744, 29876, 950, 29961, 29878, 3816, 21478, 3816, 29888, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 5323, 311, 29961, 29878, 3816, 21478, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 363, 301, 297, 323, 8890, 12750, 12107, 11724, 5124, 30004, 13, 18884, 396, 382, 29933, 29890, 29946, 29918, 29923, 1089, 1927, 22031, 749, 9760, 12883, 29946, 30004, 13, 18884, 1904, 4619, 19561, 2744, 29876, 950, 29961, 29878, 3816, 29888, 3816, 29891, 29962, 6736, 4803, 2744, 29876, 950, 29961, 29878, 3816, 29888, 3816, 29891, 29962, 718, 9505, 29886, 29889, 22833, 11139, 4197, 5323, 311, 2744, 29876, 950, 29961, 29878, 3816, 21478, 3816, 29888, 3816, 29891, 29962, 334, 27226, 12085, 29961, 29878, 3816, 21478, 3816, 29888, 3816, 29891, 29962, 363, 364, 29878, 297, 5195, 29954, 2725, 29906, 2314, 718, 4831, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29961, 29878, 3816, 29888, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 10601, 292, 17968, 19561, 29914, 11403, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 9651, 363, 343, 297, 612, 26441, 29901, 30004, 13, 18884, 363, 301, 297, 323, 8890, 12750, 12107, 29901, 30004, 13, 462, 1678, 363, 285, 297, 383, 4462, 29931, 29901, 30004, 13, 462, 4706, 396, 4831, 29896, 29918, 29943, 2491, 23665, 428, 2059, 7141, 3049, 3002, 30004, 13, 462, 4706, 1904, 4619, 19561, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 1275, 390, 403, 2776, 23665, 428, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 334, 8905, 18772, 29961, 29880, 3816, 29891, 1402, 5124, 30004, 13, 462, 4706, 396, 4831, 29906, 29918, 29943, 2491, 11403, 2059, 7141, 3049, 3002, 30004, 13, 462, 4706, 1904, 4619, 4803, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 1275, 390, 403, 2776, 11403, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 334, 8905, 18772, 29961, 29880, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 18884, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29901, 30004, 13, 462, 1678, 396, 4831, 29941, 29918, 29909, 19698, 2744, 29876, 950, 19907, 2776, 3886, 30004, 13, 462, 1678, 1904, 4619, 14990, 2744, 29876, 950, 7141, 3049, 3002, 3886, 2059, 6818, 29961, 29878, 3816, 29873, 3816, 29885, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 3886, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29885, 3816, 29891, 29962, 334, 8905, 18772, 29961, 29880, 3816, 29891, 29962, 363, 301, 297, 323, 8890, 12750, 12107, 11724, 5124, 30004, 13, 4706, 396, 4831, 29946, 29918, 3195, 29853, 25733, 2059, 18457, 30004, 13, 4706, 1904, 4619, 8125, 29853, 25733, 2059, 18457, 29961, 29878, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 11536, 4205, 2798, 287, 25733, 29961, 29878, 3816, 29891, 29962, 363, 343, 297, 612, 26441, 11724, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 10486, 11243, 800, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 269, 297, 6850, 1955, 10461, 29901, 30004, 13, 9651, 363, 343, 297, 612, 26441, 29901, 30004, 13, 18884, 363, 19375, 297, 3725, 29909, 3094, 29901, 30004, 13, 462, 1678, 363, 301, 29881, 297, 21330, 29979, 11116, 29901, 30004, 13, 462, 4706, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 29901, 30004, 13, 462, 9651, 396, 317, 29896, 29918, 19907, 2776, 10486, 5914, 479, 30004, 13, 462, 9651, 1904, 4619, 390, 403, 2776, 10486, 5914, 479, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 3886, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29885, 3816, 29891, 29962, 334, 17968, 1762, 10486, 29961, 29878, 3816, 29873, 3816, 29879, 3816, 29885, 29962, 334, 1281, 3259, 3137, 29961, 29880, 3816, 3137, 29962, 334, 1281, 3259, 430, 29961, 29880, 3816, 430, 29962, 334, 1281, 3259, 29880, 29882, 29961, 29880, 3816, 29880, 29882, 29962, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 363, 301, 297, 323, 8890, 12750, 12107, 565, 17968, 1762, 10486, 29961, 29878, 3816, 29873, 3816, 29879, 3816, 29885, 29962, 1405, 29871, 29900, 11724, 5124, 30004, 13, 462, 9651, 396, 317, 29906, 29918, 19907, 2776, 10486, 29928, 783, 279, 479, 30004, 13, 462, 9651, 1904, 4619, 390, 403, 2776, 10486, 29928, 783, 279, 479, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 3886, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29885, 3816, 29891, 29962, 334, 17968, 4591, 10486, 29961, 29878, 3816, 29873, 3816, 29879, 3816, 29885, 29962, 334, 1281, 3259, 3137, 29961, 29880, 3816, 3137, 29962, 334, 1281, 3259, 430, 29961, 29880, 3816, 430, 29962, 334, 1281, 3259, 29880, 29882, 29961, 29880, 3816, 29880, 29882, 29962, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 363, 301, 297, 323, 8890, 12750, 12107, 565, 17968, 4591, 10486, 29961, 29878, 3816, 29873, 3816, 29879, 3816, 29885, 29962, 1405, 29871, 29900, 11724, 5124, 30004, 13, 462, 9651, 396, 317, 29941, 29918, 6779, 5914, 479, 3047, 262, 12883, 30004, 13, 462, 9651, 1904, 4619, 12670, 5914, 479, 3047, 262, 12883, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 29898, 19907, 2776, 10486, 5914, 479, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 29891, 29962, 448, 390, 403, 2776, 10486, 29928, 783, 279, 479, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 29891, 2314, 334, 8905, 18772, 29961, 29880, 3816, 29891, 29962, 334, 1281, 3259, 3137, 29961, 29880, 3816, 3137, 29962, 334, 1281, 3259, 430, 29961, 29880, 3816, 430, 29962, 334, 1281, 3259, 29880, 29882, 29961, 29880, 3816, 29880, 29882, 29962, 363, 301, 297, 323, 8890, 12750, 12107, 565, 313, 1168, 3259, 3137, 29961, 29880, 3816, 3137, 29962, 1405, 29871, 29900, 29897, 322, 313, 1168, 3259, 430, 29961, 29880, 3816, 430, 29962, 1405, 29871, 29900, 29897, 322, 313, 1168, 3259, 29880, 29882, 29961, 29880, 3816, 29880, 29882, 29962, 1405, 29871, 29900, 4638, 511, 5124, 30004, 13, 462, 9651, 396, 317, 29946, 29918, 6779, 5914, 479, 3047, 262, 12742, 30004, 13, 462, 9651, 1904, 4619, 12670, 5914, 479, 3047, 262, 12742, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 29891, 29962, 1275, 313, 19907, 2776, 10486, 5914, 479, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 29891, 29962, 448, 390, 403, 2776, 10486, 29928, 783, 279, 479, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 29891, 2314, 334, 8373, 18772, 29961, 29880, 29882, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 18884, 396, 317, 29945, 29918, 392, 29918, 29903, 29953, 29918, 10486, 10108, 12883, 4763, 30004, 13, 18884, 565, 938, 29898, 29891, 29897, 1275, 938, 29898, 1195, 29898, 29979, 26441, 22164, 30004, 13, 462, 1678, 1904, 4619, 26162, 10108, 12883, 4763, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 26162, 10108, 4763, 29961, 29878, 3816, 29879, 1402, 5124, 30004, 13, 18884, 1683, 29901, 30004, 13, 462, 1678, 1904, 4619, 26162, 10108, 12883, 4763, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 26162, 10108, 12883, 4763, 29961, 29878, 3816, 29879, 3816, 710, 29898, 524, 29898, 29891, 6817, 29896, 4638, 718, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12883, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 710, 29898, 524, 29898, 29891, 6817, 29896, 4638, 363, 19375, 297, 3725, 29909, 3094, 363, 301, 29881, 297, 21330, 29979, 11116, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 11724, 5124, 30004, 13, 18884, 396, 317, 29955, 29918, 392, 29918, 29903, 29947, 29918, 10486, 10108, 12883, 12881, 728, 30004, 13, 18884, 565, 938, 29898, 29891, 29897, 529, 938, 29898, 3317, 29898, 29979, 26441, 22164, 30004, 13, 462, 1678, 1904, 4619, 26162, 10108, 12883, 12881, 728, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 26162, 10108, 12883, 4763, 29961, 29878, 3816, 29879, 3816, 710, 29898, 524, 29898, 29891, 29897, 718, 29871, 29896, 29897, 1402, 5124, 30004, 13, 18884, 1683, 29901, 30004, 13, 462, 1678, 1904, 4619, 26162, 10108, 12883, 12881, 728, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 26162, 10108, 12883, 4763, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 718, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12883, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 29891, 29962, 363, 19375, 297, 3725, 29909, 3094, 363, 301, 29881, 297, 21330, 29979, 11116, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 11724, 5124, 30004, 13, 30004, 13, 18884, 363, 19375, 297, 3725, 29909, 3094, 29901, 30004, 13, 462, 1678, 396, 317, 29929, 29918, 392, 29918, 29903, 29896, 29900, 29918, 10486, 10108, 2008, 1658, 4763, 30004, 13, 462, 1678, 565, 938, 29898, 3137, 29897, 1275, 938, 29898, 1195, 29898, 1660, 29909, 3094, 22164, 30004, 13, 462, 4706, 1904, 4619, 26162, 10108, 2008, 1658, 4763, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 29891, 29962, 1275, 26162, 10108, 12883, 4763, 29961, 29878, 3816, 29879, 3816, 29891, 1402, 5124, 30004, 13, 462, 1678, 1683, 29901, 30004, 13, 462, 4706, 1904, 4619, 26162, 10108, 2008, 1658, 4763, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 29891, 29962, 1275, 26162, 10108, 2008, 1658, 4763, 29961, 29878, 3816, 29879, 3816, 710, 29898, 524, 29898, 3137, 6817, 29896, 29897, 3816, 29891, 29962, 718, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12883, 29961, 29878, 3816, 29879, 3816, 710, 29898, 524, 29898, 3137, 6817, 29896, 29897, 3816, 430, 3816, 29880, 29882, 3816, 29891, 29962, 363, 301, 29881, 297, 21330, 29979, 11116, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 11724, 5124, 30004, 13, 30004, 13, 462, 1678, 363, 301, 29881, 297, 21330, 29979, 11116, 29901, 30004, 13, 462, 4706, 396, 317, 29896, 29896, 29918, 392, 29918, 29903, 29896, 29906, 29918, 10486, 10108, 12742, 1542, 4763, 30004, 13, 462, 4706, 565, 938, 29898, 430, 29897, 1275, 938, 29898, 1195, 29898, 28658, 11116, 22164, 30004, 13, 462, 9651, 1904, 4619, 26162, 10108, 12742, 1542, 4763, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29891, 29962, 1275, 26162, 10108, 2008, 1658, 4763, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 29891, 1402, 5124, 30004, 13, 462, 4706, 1683, 29901, 30004, 13, 462, 9651, 1904, 4619, 26162, 10108, 12742, 1542, 4763, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29891, 29962, 1275, 26162, 10108, 12742, 1542, 4763, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 710, 29898, 524, 29898, 430, 6817, 29896, 29897, 3816, 29891, 29962, 718, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12742, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 710, 29898, 524, 29898, 430, 6817, 29896, 29897, 3816, 29880, 29882, 3816, 29891, 29962, 334, 24728, 797, 12742, 1542, 29961, 3137, 3816, 710, 29898, 524, 29898, 430, 6817, 29896, 29897, 3816, 29891, 29962, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 11724, 5124, 30004, 13, 462, 4706, 396, 317, 29896, 29941, 29918, 392, 29918, 29903, 29896, 29946, 29918, 392, 29918, 29903, 29896, 29945, 29918, 10486, 10108, 12742, 1542, 12881, 728, 30004, 13, 462, 4706, 565, 313, 524, 29898, 430, 29897, 1275, 938, 29898, 3317, 29898, 28658, 11116, 4961, 322, 313, 524, 29898, 3137, 29897, 1275, 938, 29898, 3317, 29898, 1660, 29909, 3094, 876, 1125, 30004, 13, 462, 9651, 1904, 4619, 26162, 10108, 12742, 1542, 12881, 728, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29891, 29962, 1275, 26162, 10108, 12883, 12881, 728, 29961, 29878, 3816, 29879, 3816, 29891, 1402, 5124, 30004, 13, 462, 4706, 25342, 938, 29898, 430, 29897, 1275, 938, 29898, 3317, 29898, 28658, 11116, 22164, 30004, 13, 462, 9651, 1904, 4619, 26162, 10108, 12742, 1542, 12881, 728, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29891, 29962, 1275, 26162, 10108, 2008, 1658, 4763, 29961, 29878, 3816, 29879, 3816, 710, 29898, 524, 29898, 3137, 7240, 29896, 29897, 3816, 29891, 1402, 5124, 30004, 13, 462, 4706, 1683, 29901, 30004, 13, 462, 9651, 1904, 4619, 26162, 10108, 12742, 1542, 12881, 728, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29891, 29962, 1275, 26162, 10108, 12742, 1542, 12881, 728, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 710, 29898, 524, 29898, 430, 7240, 29896, 29897, 3816, 29891, 29962, 448, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12742, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 710, 29898, 524, 29898, 430, 7240, 29896, 29897, 3816, 29880, 29882, 3816, 29891, 29962, 334, 24728, 797, 12742, 1542, 29961, 3137, 3816, 710, 29898, 524, 29898, 430, 7240, 29896, 29897, 3816, 29891, 29962, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 11724, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 29937, 12, 12, 12, 10486, 1281, 4151, 9466, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 269, 297, 6850, 1955, 10461, 29901, 30004, 13, 9651, 363, 343, 297, 612, 26441, 29901, 30004, 13, 18884, 363, 19375, 297, 3725, 29909, 3094, 29901, 30004, 13, 462, 1678, 363, 301, 29881, 297, 21330, 29979, 11116, 29901, 30004, 13, 462, 4706, 363, 301, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 29901, 30004, 13, 462, 9651, 396, 12314, 29896, 29918, 19357, 24445, 29918, 17946, 1076, 2776, 29928, 8683, 2481, 28183, 3522, 2776, 6730, 4998, 2776, 12742, 1542, 797, 6730, 22606, 21529, 30004, 13, 462, 9651, 1904, 4619, 313, 10486, 10108, 12742, 1542, 4763, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29891, 29962, 718, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12742, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 4415, 29882, 3816, 29891, 29962, 363, 301, 4415, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 565, 938, 29898, 29880, 29882, 6817, 524, 29898, 29880, 4415, 29882, 29897, 1405, 29871, 29900, 12622, 448, 26162, 19357, 24445, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 6736, 29871, 29900, 29892, 5124, 30004, 13, 462, 9651, 396, 12314, 29896, 29918, 26214, 24445, 29918, 17946, 1076, 2776, 29928, 8683, 2481, 28183, 3522, 2776, 6730, 4998, 2776, 12742, 1542, 797, 6730, 22606, 21529, 30004, 13, 462, 9651, 1904, 4619, 313, 10486, 10108, 12742, 1542, 4763, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29891, 29962, 718, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12742, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 4415, 29882, 3816, 29891, 29962, 363, 301, 4415, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 565, 938, 29898, 29880, 29882, 6817, 524, 29898, 29880, 4415, 29882, 29897, 1405, 29871, 29900, 12622, 448, 26162, 26214, 24445, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 5277, 29871, 29900, 29892, 5124, 30004, 13, 462, 9651, 396, 12314, 29906, 29918, 19357, 24445, 29918, 5044, 2776, 29928, 8683, 2481, 28183, 3522, 2776, 8897, 4998, 2776, 12742, 1542, 797, 6730, 22606, 21529, 30004, 13, 462, 9651, 565, 938, 29898, 430, 29897, 1405, 938, 29898, 1195, 29898, 28658, 11116, 22164, 30004, 13, 462, 18884, 1904, 4619, 313, 10486, 10108, 12742, 1542, 4763, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29891, 29962, 448, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12742, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 710, 29898, 524, 29898, 430, 6817, 29896, 29897, 3816, 29880, 4415, 29882, 3816, 29891, 29962, 363, 301, 4415, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 565, 938, 29898, 29880, 29882, 6817, 524, 29898, 29880, 4415, 29882, 29897, 529, 29871, 29900, 12622, 448, 26162, 19357, 24445, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 6736, 29871, 29900, 29892, 5124, 30004, 13, 462, 9651, 396, 12314, 29906, 29918, 19357, 24445, 29918, 5044, 2776, 29928, 8683, 2481, 28183, 3522, 2776, 8897, 4998, 2776, 12742, 1542, 797, 6730, 22606, 21529, 30004, 13, 462, 9651, 565, 938, 29898, 430, 29897, 1405, 938, 29898, 1195, 29898, 28658, 11116, 22164, 30004, 13, 462, 18884, 1904, 4619, 313, 10486, 10108, 12742, 1542, 4763, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29891, 29962, 448, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12742, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 710, 29898, 524, 29898, 430, 6817, 29896, 29897, 3816, 29880, 4415, 29882, 3816, 29891, 29962, 363, 301, 4415, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 565, 938, 29898, 29880, 29882, 29897, 448, 938, 29898, 29880, 4415, 29882, 29897, 529, 29871, 29900, 12622, 448, 26162, 26214, 24445, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 5277, 29871, 29900, 29892, 5124, 30004, 13, 462, 9651, 396, 12314, 29941, 29918, 19357, 24445, 29918, 5044, 2776, 29928, 8683, 2481, 28183, 3522, 2776, 8897, 4998, 2776, 12742, 1542, 797, 8897, 22606, 21529, 30004, 13, 462, 9651, 1904, 4619, 313, 10486, 10108, 12742, 1542, 12881, 728, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29891, 29962, 448, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12742, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 4415, 29882, 3816, 29891, 29962, 363, 301, 4415, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 565, 938, 29898, 29880, 29882, 29897, 448, 938, 29898, 29880, 4415, 29882, 29897, 529, 29871, 29900, 12622, 448, 26162, 19357, 24445, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 6736, 29871, 29900, 29892, 5124, 30004, 13, 462, 9651, 396, 12314, 29941, 29918, 26214, 24445, 29918, 5044, 2776, 29928, 8683, 2481, 28183, 3522, 2776, 8897, 4998, 2776, 12742, 1542, 797, 8897, 22606, 21529, 30004, 13, 462, 9651, 1904, 4619, 313, 10486, 10108, 12742, 1542, 12881, 728, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29891, 29962, 448, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12742, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 4415, 29882, 3816, 29891, 29962, 363, 301, 4415, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 565, 938, 29898, 29880, 29882, 29897, 448, 938, 29898, 29880, 4415, 29882, 29897, 529, 29871, 29900, 12622, 448, 26162, 26214, 24445, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 5277, 29871, 29900, 29892, 5124, 30004, 13, 462, 9651, 396, 12314, 29946, 29918, 19357, 24445, 29918, 17946, 1076, 2776, 29928, 8683, 2481, 28183, 3522, 2776, 6730, 4998, 2776, 12742, 1542, 797, 8897, 22606, 21529, 30004, 13, 462, 9651, 565, 938, 29898, 430, 29897, 1405, 938, 29898, 1195, 29898, 28658, 11116, 22164, 30004, 13, 462, 18884, 1904, 4619, 313, 10486, 10108, 12742, 1542, 12881, 728, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 710, 29898, 524, 29898, 430, 6817, 29896, 29897, 3816, 29891, 29962, 718, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12742, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 4415, 29882, 3816, 29891, 29962, 363, 301, 4415, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 565, 938, 29898, 29880, 29882, 29897, 448, 938, 29898, 29880, 4415, 29882, 29897, 1405, 29871, 29900, 12622, 448, 26162, 19357, 24445, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 6736, 29871, 29900, 29892, 5124, 30004, 13, 462, 9651, 396, 12314, 29946, 29918, 26214, 24445, 29918, 17946, 1076, 2776, 29928, 8683, 2481, 28183, 3522, 2776, 6730, 4998, 2776, 12742, 1542, 797, 8897, 22606, 21529, 30004, 13, 462, 9651, 565, 938, 29898, 430, 29897, 1405, 938, 29898, 1195, 29898, 28658, 11116, 22164, 30004, 13, 462, 18884, 1904, 4619, 313, 10486, 10108, 12742, 1542, 12881, 728, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 710, 29898, 524, 29898, 430, 6817, 29896, 29897, 3816, 29891, 29962, 718, 9505, 29886, 29889, 22833, 11139, 4197, 6779, 5914, 479, 3047, 262, 12742, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 4415, 29882, 3816, 29891, 29962, 363, 301, 4415, 29882, 297, 21330, 6227, 29979, 15307, 15176, 11375, 2544, 565, 938, 29898, 29880, 29882, 29897, 448, 938, 29898, 29880, 4415, 29882, 29897, 1405, 29871, 29900, 12622, 448, 26162, 26214, 24445, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 5277, 29871, 29900, 29892, 5124, 30004, 13, 462, 9651, 396, 12314, 29945, 29918, 7976, 5914, 479, 21529, 30004, 13, 462, 9651, 1904, 4619, 390, 403, 2776, 10486, 5914, 479, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 29891, 29962, 5277, 26162, 7976, 5914, 479, 19907, 29961, 29878, 3816, 29879, 1402, 5124, 30004, 13, 462, 9651, 396, 12314, 29953, 29918, 7976, 29928, 783, 279, 479, 21529, 30004, 13, 462, 9651, 1904, 4619, 390, 403, 2776, 10486, 29928, 783, 279, 479, 29961, 29878, 3816, 29879, 3816, 3137, 3816, 430, 3816, 29880, 29882, 3816, 29891, 29962, 5277, 26162, 7976, 29928, 783, 279, 479, 19907, 29961, 29878, 3816, 29879, 1402, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 10486, 512, 10147, 1860, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 269, 297, 6850, 1955, 10461, 29901, 30004, 13, 9651, 363, 343, 297, 612, 26441, 29901, 30004, 13, 18884, 396, 22717, 29896, 29918, 10486, 26214, 24445, 30004, 13, 18884, 1904, 4619, 26162, 26214, 24445, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 4831, 398, 7964, 4373, 10486, 12415, 5946, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 718, 2538, 333, 950, 10486, 12415, 5946, 29961, 29878, 3816, 29879, 3816, 29891, 1402, 5124, 30004, 13, 18884, 396, 22717, 29906, 29918, 10486, 19357, 24445, 30004, 13, 18884, 1904, 4619, 26162, 19357, 24445, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 3080, 10486, 5914, 479, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 334, 26162, 26214, 24445, 29961, 29878, 3816, 29879, 3816, 29891, 1402, 5124, 30004, 13, 18884, 396, 22717, 29941, 29918, 11536, 4373, 10486, 30004, 13, 18884, 1904, 4619, 4831, 398, 7964, 4373, 10486, 12415, 5946, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 4373, 10486, 12415, 5946, 29961, 29878, 3816, 29879, 3816, 8071, 29962, 363, 343, 29891, 297, 612, 26441, 565, 313, 7411, 29898, 524, 29898, 29891, 29897, 448, 938, 29898, 8071, 876, 529, 6607, 1288, 26754, 10486, 29961, 29878, 3816, 29879, 2314, 322, 313, 524, 29898, 29891, 6817, 524, 29898, 8071, 29897, 6736, 29871, 29900, 4638, 511, 5124, 30004, 13, 18884, 396, 22717, 29946, 29918, 25263, 275, 2798, 287, 12415, 2410, 797, 10147, 358, 10486, 30004, 13, 18884, 1904, 4619, 25343, 797, 10147, 358, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 25343, 25733, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 334, 1570, 10486, 12415, 5946, 29961, 29878, 3816, 29879, 3816, 29891, 1402, 5124, 30004, 13, 18884, 396, 22717, 29945, 29918, 4205, 2798, 292, 12415, 2410, 797, 10147, 358, 10486, 30004, 13, 18884, 1904, 4619, 3295, 2798, 287, 12415, 2410, 797, 10147, 358, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 25343, 797, 10147, 358, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 334, 313, 29896, 29914, 5135, 29896, 29974, 4205, 2798, 19907, 29961, 29878, 2314, 1068, 29898, 524, 29898, 29891, 29897, 448, 938, 29898, 1195, 29898, 29979, 26441, 13697, 511, 5124, 30004, 13, 18884, 396, 22717, 29953, 29918, 20392, 29894, 482, 1917, 10486, 4178, 5044, 2776, 29853, 29896, 30004, 13, 18884, 565, 5785, 29898, 524, 29898, 29891, 29897, 718, 6607, 1288, 26754, 10486, 29961, 29878, 3816, 29879, 29962, 448, 29871, 29896, 29897, 5277, 5785, 29898, 3317, 29898, 29979, 26441, 22164, 30004, 13, 462, 1678, 1904, 4619, 14964, 482, 1917, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 29871, 29900, 29892, 5124, 30004, 13, 18884, 396, 22717, 29955, 29918, 20392, 29894, 482, 1917, 10486, 4178, 5044, 2776, 29853, 29906, 30004, 13, 18884, 565, 5135, 8498, 4361, 362, 4062, 29961, 29878, 29962, 1275, 29871, 29896, 29897, 322, 313, 7411, 29898, 524, 29898, 29891, 7240, 7094, 1288, 26754, 10486, 29961, 29878, 3816, 29879, 29962, 29899, 29896, 29897, 1405, 5785, 29898, 3317, 29898, 29979, 26441, 4961, 322, 313, 4205, 2798, 19907, 29961, 29878, 29962, 1275, 29871, 29900, 876, 470, 5135, 8498, 4361, 362, 4062, 29961, 29878, 29962, 1275, 29871, 29906, 29897, 322, 313, 7411, 29898, 524, 29898, 29891, 7240, 7094, 1288, 26754, 10486, 29961, 29878, 3816, 29879, 29962, 29899, 29896, 29897, 1405, 5785, 29898, 3317, 29898, 29979, 26441, 13697, 29901, 30004, 13, 462, 1678, 1904, 4619, 14964, 482, 1917, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 25343, 797, 10147, 358, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 334, 313, 29896, 17722, 524, 29898, 3317, 29898, 29979, 26441, 876, 29899, 524, 29898, 29891, 7240, 29896, 876, 29914, 7094, 1288, 26754, 10486, 29961, 29878, 3816, 29879, 1402, 5124, 30004, 13, 18884, 396, 22717, 29947, 29918, 20392, 29894, 482, 1917, 10486, 4178, 5044, 2776, 29853, 29941, 30004, 13, 18884, 565, 313, 8498, 4361, 362, 4062, 29961, 29878, 29962, 1275, 29871, 29896, 29897, 322, 313, 7411, 29898, 524, 29898, 29891, 7240, 7094, 1288, 26754, 10486, 29961, 29878, 3816, 29879, 29962, 29899, 29896, 29897, 1405, 5785, 29898, 3317, 29898, 29979, 26441, 4961, 322, 313, 4205, 2798, 19907, 29961, 29878, 29962, 1405, 29871, 29900, 1125, 30004, 13, 462, 1678, 1904, 4619, 14964, 482, 1917, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 25343, 797, 10147, 358, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 334, 313, 29896, 29899, 3552, 29898, 29896, 29974, 4205, 2798, 19907, 29961, 29878, 2314, 1068, 29898, 524, 29898, 3317, 29898, 29979, 26441, 876, 448, 938, 29898, 29891, 7240, 29896, 6817, 29896, 6802, 3552, 29896, 29974, 4205, 2798, 19907, 29961, 29878, 2314, 1068, 7094, 1288, 26754, 10486, 29961, 29878, 3816, 29879, 29962, 29899, 29896, 876, 511, 5124, 30004, 13, 18884, 396, 22717, 29929, 29918, 20392, 29894, 482, 1917, 10486, 4205, 2798, 287, 1762, 4763, 12883, 30004, 13, 18884, 1904, 4619, 3295, 2798, 287, 20392, 29894, 482, 1917, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 14964, 482, 1917, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 334, 313, 29896, 847, 3552, 29896, 29974, 4205, 2798, 19907, 29961, 29878, 2314, 1068, 29898, 524, 29898, 3317, 29898, 29979, 26441, 876, 29899, 938, 29898, 1195, 29898, 29979, 26441, 876, 29974, 29896, 876, 511, 5124, 30004, 13, 18884, 396, 22717, 29896, 29900, 29918, 11536, 4205, 2798, 287, 25733, 2059, 10486, 30004, 13, 18884, 1904, 4619, 14990, 4205, 2798, 287, 10486, 25733, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 1275, 3295, 2798, 287, 12415, 2410, 797, 10147, 358, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 29899, 4205, 2798, 287, 20392, 29894, 482, 1917, 10486, 29961, 29878, 3816, 29879, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 12415, 2410, 9839, 29879, 29871, 12, 12, 418, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 9651, 363, 343, 297, 612, 26441, 29901, 30004, 13, 18884, 396, 19178, 29896, 29918, 25263, 275, 2798, 287, 12415, 2410, 797, 10147, 358, 30004, 13, 18884, 1904, 4619, 25343, 797, 10147, 358, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 25343, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 1570, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 29871, 5124, 30004, 13, 18884, 396, 19178, 29906, 29918, 4205, 2798, 292, 12415, 2410, 797, 10147, 358, 30004, 13, 18884, 1904, 4619, 3295, 2798, 287, 12415, 2410, 797, 10147, 358, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 25343, 797, 10147, 358, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 313, 29896, 29914, 3552, 29896, 718, 3295, 2798, 19907, 29961, 29878, 2314, 3579, 313, 524, 29898, 29891, 29897, 448, 938, 29898, 1195, 29898, 29979, 26441, 13697, 511, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 965, 14964, 482, 7865, 632, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 343, 297, 612, 26441, 29901, 30004, 13, 9651, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 18884, 396, 13955, 29896, 29918, 20392, 29894, 482, 1917, 4178, 5044, 2776, 29853, 29896, 30004, 13, 18884, 565, 313, 8498, 4361, 362, 4062, 29961, 29878, 29962, 1275, 29871, 29896, 29897, 322, 313, 7411, 29898, 524, 29898, 29891, 29897, 718, 6607, 1288, 26754, 29961, 29878, 3816, 29873, 29962, 448, 29871, 29896, 29897, 1405, 5785, 29898, 3317, 29898, 29979, 26441, 4961, 322, 313, 4205, 2798, 19907, 29961, 29878, 29962, 1405, 29871, 29900, 1125, 30004, 13, 462, 1678, 1904, 4619, 14964, 482, 1917, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 25343, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 1570, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 313, 29896, 448, 313, 3552, 29896, 718, 3295, 2798, 19907, 29961, 29878, 2314, 3579, 313, 524, 29898, 3317, 29898, 29979, 26441, 876, 448, 938, 29898, 29891, 29897, 718, 29871, 29896, 29897, 448, 29871, 29896, 29897, 847, 5135, 29896, 718, 3295, 2798, 19907, 29961, 29878, 2314, 3579, 6607, 1288, 26754, 29961, 29878, 3816, 29873, 29962, 448, 29871, 29896, 876, 511, 5124, 30004, 13, 18884, 396, 13955, 29906, 29918, 20392, 29894, 482, 1917, 4178, 5044, 2776, 29853, 29906, 30004, 13, 18884, 565, 5135, 8498, 4361, 362, 4062, 29961, 29878, 29962, 1275, 29871, 29896, 29897, 322, 313, 7411, 29898, 524, 29898, 29891, 29897, 718, 6607, 1288, 26754, 29961, 29878, 3816, 29873, 29962, 448, 29871, 29896, 29897, 1405, 5785, 29898, 3317, 29898, 29979, 26441, 4961, 322, 313, 4205, 2798, 19907, 29961, 29878, 29962, 1275, 29871, 29900, 876, 470, 5135, 8498, 4361, 362, 4062, 29961, 29878, 29962, 1275, 29871, 29906, 29897, 322, 313, 7411, 29898, 524, 29898, 29891, 29897, 718, 6607, 1288, 26754, 29961, 29878, 3816, 29873, 29962, 448, 29871, 29896, 29897, 1405, 5785, 29898, 3317, 29898, 29979, 26441, 13697, 29901, 30004, 13, 462, 1678, 1904, 4619, 14964, 482, 1917, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 25343, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 1570, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 313, 29896, 448, 313, 524, 29898, 3317, 29898, 29979, 26441, 876, 448, 938, 29898, 29891, 29897, 718, 29871, 29896, 29897, 847, 6607, 1288, 26754, 29961, 29878, 3816, 29873, 11724, 5124, 30004, 13, 18884, 396, 13955, 29941, 29918, 20392, 29894, 482, 1917, 4178, 5044, 2776, 29853, 29941, 30004, 13, 18884, 565, 5785, 29898, 524, 29898, 29891, 29897, 718, 6607, 1288, 26754, 29961, 29878, 3816, 29873, 29962, 448, 29871, 29896, 29897, 5277, 5785, 29898, 3317, 29898, 29979, 26441, 22164, 30004, 13, 462, 1678, 1904, 4619, 14964, 482, 1917, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 29871, 29900, 29892, 5124, 30004, 13, 18884, 396, 13955, 29946, 29918, 20392, 29894, 482, 1917, 4205, 2798, 287, 1762, 4763, 12883, 30004, 13, 18884, 1904, 4619, 3295, 2798, 287, 20392, 29894, 482, 1917, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 14964, 482, 1917, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 313, 29896, 847, 5135, 29896, 718, 3295, 2798, 19907, 29961, 29878, 2314, 3579, 313, 29896, 718, 938, 29898, 3317, 29898, 29979, 26441, 876, 448, 938, 29898, 1195, 29898, 29979, 26441, 13697, 511, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 308, 12, 7094, 1218, 9839, 29879, 29871, 12, 12, 29871, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 9651, 363, 343, 297, 612, 26441, 29901, 30004, 13, 18884, 396, 438, 29907, 29896, 29918, 7094, 1218, 25733, 29879, 16174, 30004, 13, 18884, 1904, 4619, 8081, 950, 16174, 7094, 1218, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 11536, 2744, 29876, 950, 7141, 3049, 3002, 3886, 2059, 6818, 29961, 29878, 3816, 29873, 3816, 29885, 3816, 29891, 29962, 334, 28736, 25733, 29961, 29878, 3816, 29873, 3816, 29885, 3816, 29891, 29962, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 11724, 5124, 30004, 13, 18884, 396, 438, 29907, 29906, 29918, 7094, 1218, 25733, 29879, 26262, 2744, 29876, 950, 30004, 13, 18884, 1904, 4619, 8081, 950, 26262, 7094, 1218, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 14990, 12415, 5946, 2744, 29876, 950, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 383, 11925, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5124, 30004, 13, 18884, 396, 438, 29907, 29941, 29918, 7094, 1218, 25733, 29879, 11536, 2744, 29876, 950, 30004, 13, 18884, 1904, 4619, 6607, 1218, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 8081, 950, 26262, 7094, 1218, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 718, 8081, 950, 16174, 7094, 1218, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5124, 30004, 13, 18884, 396, 438, 29907, 29946, 29918, 4205, 2798, 287, 7094, 1218, 25733, 29879, 11536, 2744, 29876, 950, 30004, 13, 18884, 1904, 4619, 3295, 2798, 287, 7094, 1218, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 6607, 1218, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 313, 29896, 847, 3552, 29896, 718, 3295, 2798, 19907, 29961, 29878, 2314, 3579, 313, 524, 29898, 29891, 29897, 448, 938, 29898, 1195, 29898, 29979, 26441, 876, 718, 29871, 29900, 29889, 29945, 876, 511, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 4706, 12, 11536, 3295, 2798, 287, 9839, 29879, 12, 29871, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 343, 297, 612, 26441, 29901, 30004, 13, 9651, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 18884, 396, 323, 12696, 29896, 29918, 11536, 4205, 2798, 287, 25733, 2059, 7141, 3049, 3002, 30004, 13, 18884, 1904, 4619, 14990, 4205, 2798, 287, 25733, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 3295, 2798, 287, 7094, 1218, 25733, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 718, 3295, 2798, 287, 12415, 2410, 797, 10147, 358, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 718, 3295, 2798, 287, 7141, 3049, 3002, 6026, 6847, 29925, 264, 18745, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 448, 3295, 2798, 287, 20392, 29894, 482, 1917, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 9651, 396, 323, 12696, 29906, 29918, 11536, 4205, 2798, 287, 25733, 30004, 13, 9651, 1904, 4619, 14990, 4205, 2798, 287, 25733, 29961, 29878, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 11536, 4205, 2798, 287, 25733, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 2314, 718, 9505, 29886, 29889, 22833, 11139, 4197, 11536, 4205, 2798, 287, 10486, 25733, 29961, 29878, 3816, 29879, 3816, 29891, 29962, 363, 269, 297, 6850, 1955, 10461, 11724, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 539, 12, 12, 11536, 5915, 5946, 1281, 4151, 9466, 29871, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 343, 297, 612, 26441, 29901, 30004, 13, 9651, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 18884, 396, 323, 4174, 29896, 29918, 11536, 2744, 29876, 950, 7976, 12415, 5946, 21529, 30004, 13, 18884, 1904, 4619, 14990, 12415, 5946, 2744, 29876, 950, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 5277, 14990, 2744, 29876, 950, 7976, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5124, 30004, 13, 18884, 396, 323, 4174, 29906, 29918, 11536, 2744, 29876, 950, 8140, 12415, 5946, 21529, 30004, 13, 18884, 565, 14990, 2744, 29876, 950, 8140, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1405, 29871, 29900, 29901, 30004, 13, 462, 1678, 1904, 4619, 14990, 12415, 5946, 2744, 29876, 950, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 6736, 14990, 2744, 29876, 950, 8140, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 268, 12, 12, 4373, 5915, 5946, 1281, 4151, 9466, 259, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 343, 297, 612, 26441, 29901, 30004, 13, 9651, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 18884, 396, 405, 4174, 29896, 29918, 11536, 2744, 29876, 950, 7976, 4373, 12415, 5946, 21529, 30004, 13, 18884, 1904, 4619, 1570, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 5277, 14990, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5124, 30004, 13, 18884, 396, 405, 4174, 29906, 29918, 11536, 2744, 29876, 950, 8140, 4373, 12415, 5946, 21529, 30004, 13, 18884, 565, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1405, 29871, 29900, 29901, 30004, 13, 462, 1678, 1904, 4619, 1570, 12415, 5946, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 6736, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 1678, 12, 12, 2744, 29876, 950, 13414, 1281, 4151, 9466, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 9651, 363, 343, 297, 612, 26441, 29901, 30004, 13, 18884, 396, 319, 2477, 29896, 29918, 11536, 2744, 29876, 950, 7141, 3049, 3002, 3886, 30004, 13, 18884, 1904, 4619, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 11536, 3886, 29961, 29878, 3816, 29873, 3816, 29880, 3816, 29891, 29962, 334, 8905, 18772, 29961, 29880, 3816, 29891, 29962, 363, 301, 297, 323, 8890, 12750, 12107, 11724, 5124, 30004, 13, 18884, 396, 319, 2477, 29906, 29918, 11536, 2744, 29876, 950, 7141, 3049, 3002, 3886, 26214, 24445, 30004, 13, 18884, 1904, 4619, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 5277, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5124, 30004, 13, 18884, 396, 319, 2477, 29941, 29918, 11536, 2744, 29876, 950, 7141, 3049, 3002, 3886, 19357, 24445, 30004, 13, 18884, 565, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1405, 29871, 29900, 29901, 30004, 13, 462, 1678, 1904, 4619, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 6736, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 268, 12, 12, 11536, 13414, 1281, 4151, 9466, 29871, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 9651, 396, 323, 2477, 29896, 29918, 11536, 3195, 17241, 18162, 7141, 3049, 3002, 3886, 30004, 13, 9651, 1904, 4619, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 29961, 29878, 3816, 29873, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 363, 343, 297, 612, 26441, 11724, 5124, 30004, 13, 9651, 396, 323, 2477, 29906, 29918, 11536, 3195, 17241, 18162, 7141, 3049, 3002, 3886, 26214, 24445, 30004, 13, 9651, 565, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29961, 29878, 3816, 29873, 29962, 1405, 29871, 29900, 29901, 30004, 13, 18884, 1904, 4619, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 29961, 29878, 3816, 29873, 29962, 5277, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29961, 29878, 3816, 29873, 1402, 5124, 30004, 13, 9651, 396, 323, 2477, 29941, 29918, 11536, 3195, 17241, 19642, 7141, 3049, 3002, 3886, 19357, 24445, 30004, 13, 9651, 565, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29961, 29878, 3816, 29873, 29962, 1405, 29871, 29900, 29901, 30004, 13, 18884, 1904, 4619, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 29961, 29878, 3816, 29873, 29962, 6736, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29961, 29878, 3816, 29873, 1402, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 1678, 12, 12, 1666, 7143, 1085, 5359, 1281, 4151, 524, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 343, 297, 612, 26441, 29901, 30004, 13, 9651, 396, 390, 29924, 29896, 29918, 1666, 7143, 29924, 3930, 29918, 7141, 3049, 11763, 797, 13347, 29918, 797, 29918, 3886, 29918, 2525, 1169, 30004, 13, 9651, 1904, 4619, 14990, 12415, 5946, 797, 1666, 7143, 29924, 3930, 29961, 29878, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 11536, 12415, 5946, 2744, 29876, 950, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 27811, 29924, 3930, 8176, 7141, 3049, 3002, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 5915, 5946, 1762, 3886, 8325, 29961, 29878, 3816, 29873, 29962, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 11724, 5124, 30004, 13, 30004, 13, 9651, 363, 301, 297, 323, 8890, 12750, 12107, 29901, 30004, 13, 18884, 396, 390, 29924, 29906, 29918, 1666, 7143, 29924, 3930, 29918, 29943, 29884, 1379, 797, 13347, 30004, 13, 18884, 1904, 4619, 4432, 392, 8139, 21219, 1666, 7143, 29924, 3930, 29961, 29878, 3816, 29880, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 23665, 428, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 334, 27811, 29924, 3930, 8176, 29943, 2491, 29961, 29878, 3816, 29888, 3816, 29891, 29962, 363, 285, 297, 383, 4462, 29931, 11724, 5124, 30004, 13, 18884, 396, 390, 29924, 29941, 29918, 1666, 7143, 29924, 3930, 29918, 21529, 30004, 13, 18884, 1904, 4619, 4432, 392, 8139, 21219, 1666, 7143, 29924, 3930, 29961, 29878, 3816, 29880, 3816, 29891, 29962, 5277, 14990, 12415, 5946, 797, 1666, 7143, 29924, 3930, 29961, 29878, 3816, 29891, 29962, 334, 313, 29896, 29914, 1666, 7143, 29924, 3930, 29961, 29878, 3816, 29891, 11724, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 1678, 12, 12, 1525, 19561, 17157, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 343, 297, 612, 26441, 29901, 30004, 13, 9651, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 18884, 363, 285, 297, 383, 4462, 29931, 29901, 30004, 13, 462, 1678, 396, 5195, 29896, 29918, 29943, 2491, 23665, 428, 2059, 7141, 3049, 3002, 2744, 29876, 950, 30004, 13, 462, 1678, 1904, 4619, 19561, 2059, 7141, 3049, 3002, 2744, 29876, 950, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 23665, 428, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 363, 301, 297, 323, 8890, 12750, 12107, 11724, 5124, 30004, 13, 9651, 396, 5195, 29906, 29918, 29911, 5309, 797, 13347, 30004, 13, 9651, 1904, 4619, 14990, 1525, 23665, 428, 2744, 29876, 950, 29961, 29878, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 23665, 428, 2059, 7141, 3049, 3002, 2744, 29876, 950, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 334, 28081, 351, 7141, 3049, 3002, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 363, 285, 297, 383, 4462, 29931, 11724, 5124, 30004, 13, 9651, 396, 5195, 29941, 29918, 29943, 2491, 797, 13347, 30004, 13, 9651, 1904, 4619, 28081, 7288, 23665, 428, 2776, 8667, 29943, 2491, 2744, 29876, 950, 29961, 29878, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 23665, 428, 29961, 29878, 3816, 29880, 3816, 29888, 3816, 29891, 29962, 334, 8905, 18772, 29961, 29880, 3816, 29891, 29962, 334, 28081, 351, 29943, 2491, 29961, 29878, 3816, 29888, 3816, 29891, 29962, 363, 301, 297, 323, 8890, 12750, 12107, 363, 285, 297, 383, 4462, 29931, 11724, 5124, 30004, 13, 9651, 396, 5195, 29946, 29918, 29923, 1089, 1927, 21529, 30004, 13, 9651, 1904, 4619, 14990, 1525, 23665, 428, 2744, 29876, 950, 29961, 29878, 3816, 29891, 29962, 6736, 5195, 8140, 23665, 428, 8667, 29961, 29878, 3816, 29891, 29962, 334, 28081, 7288, 23665, 428, 2776, 8667, 29943, 2491, 2744, 29876, 950, 29961, 29878, 3816, 29891, 1402, 5124, 30004, 13, 30004, 13, 9651, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 18884, 363, 285, 297, 383, 4462, 29931, 29901, 30004, 13, 462, 1678, 396, 5195, 29945, 29918, 29943, 2491, 11403, 2059, 7141, 3049, 3002, 2744, 29876, 950, 30004, 13, 462, 1678, 1904, 4619, 4803, 2059, 7141, 3049, 3002, 2744, 29876, 950, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 19907, 2776, 11403, 2059, 7141, 3049, 3002, 29961, 29878, 3816, 29880, 3816, 29873, 3816, 29888, 3816, 29891, 29962, 334, 8905, 18772, 29961, 29880, 3816, 29891, 29962, 363, 301, 297, 323, 8890, 12750, 12107, 11724, 5124, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 1678, 12, 12, 6026, 6847, 16535, 292, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 363, 364, 297, 5195, 29954, 2725, 29901, 30004, 13, 4706, 363, 343, 297, 612, 26441, 29901, 30004, 13, 9651, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29901, 30004, 13, 18884, 363, 321, 297, 382, 10403, 13507, 29901, 30004, 13, 462, 1678, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29901, 30004, 13, 462, 4706, 396, 382, 29896, 29918, 2744, 29876, 950, 6026, 2333, 23665, 428, 2059, 6818, 30004, 13, 462, 4706, 1904, 4619, 8081, 950, 7141, 3049, 3002, 6026, 2333, 2059, 6818, 29961, 29878, 3816, 29873, 3816, 29872, 3816, 29885, 3816, 29891, 29962, 1275, 2812, 2333, 3886, 29934, 20819, 29961, 29878, 3816, 29873, 3816, 29872, 3816, 29885, 3816, 29891, 29962, 334, 14990, 2744, 29876, 950, 7141, 3049, 3002, 3886, 2059, 6818, 29961, 29878, 3816, 29873, 3816, 29885, 3816, 29891, 1402, 5124, 30004, 13, 462, 1678, 396, 382, 29906, 29918, 2744, 29876, 950, 6026, 2333, 23665, 428, 30004, 13, 462, 1678, 1904, 4619, 8081, 950, 7141, 3049, 3002, 6026, 2333, 29961, 29878, 3816, 29873, 3816, 29872, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 2744, 29876, 950, 7141, 3049, 3002, 6026, 2333, 2059, 6818, 29961, 29878, 3816, 29873, 3816, 29872, 3816, 29885, 3816, 29891, 29962, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 11724, 5124, 30004, 13, 462, 1678, 396, 382, 29941, 29918, 6026, 6847, 29925, 264, 18745, 2059, 29911, 5309, 2855, 6026, 2333, 30004, 13, 462, 1678, 1904, 4619, 8081, 950, 7141, 3049, 3002, 6026, 2333, 29925, 264, 18745, 2059, 6026, 2333, 29961, 29878, 3816, 29873, 3816, 29872, 3816, 29891, 29962, 1275, 8081, 950, 7141, 3049, 3002, 6026, 2333, 29961, 29878, 3816, 29873, 3816, 29872, 3816, 29891, 29962, 334, 2812, 6847, 29925, 264, 18745, 29961, 29878, 3816, 29872, 3816, 29891, 1402, 5124, 30004, 13, 18884, 396, 382, 29946, 29918, 6026, 6847, 29925, 264, 18745, 2059, 7141, 3049, 3002, 30004, 13, 18884, 1904, 4619, 8081, 950, 7141, 3049, 3002, 6026, 6847, 29925, 264, 18745, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 2744, 29876, 950, 7141, 3049, 3002, 6026, 2333, 29925, 264, 18745, 2059, 6026, 2333, 29961, 29878, 3816, 29873, 3816, 29872, 3816, 29891, 29962, 363, 321, 297, 382, 10403, 13507, 11724, 5124, 30004, 13, 18884, 396, 382, 29945, 29918, 4205, 2798, 287, 6026, 6847, 29925, 264, 18745, 2059, 7141, 3049, 3002, 30004, 13, 18884, 1904, 4619, 3295, 2798, 287, 7141, 3049, 3002, 6026, 6847, 29925, 264, 18745, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 1275, 8081, 950, 7141, 3049, 3002, 6026, 6847, 29925, 264, 18745, 29961, 29878, 3816, 29873, 3816, 29891, 29962, 334, 313, 29896, 847, 5135, 29896, 718, 3295, 2798, 19907, 29961, 29878, 2314, 3579, 313, 524, 29898, 29891, 29897, 448, 938, 29898, 1195, 29898, 29979, 26441, 876, 718, 29871, 29900, 29889, 29945, 876, 511, 5124, 30004, 13, 30004, 13, 9651, 363, 321, 297, 382, 10403, 13507, 29901, 30004, 13, 18884, 396, 382, 29953, 29918, 6026, 6847, 10601, 292, 29896, 30004, 13, 18884, 1904, 4619, 8081, 950, 6026, 6847, 29961, 29878, 3816, 29872, 3816, 29891, 29962, 1275, 9505, 29886, 29889, 22833, 11139, 4197, 2744, 29876, 950, 7141, 3049, 3002, 6026, 2333, 29961, 29878, 3816, 29873, 3816, 29872, 3816, 29891, 29962, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 11724, 5124, 30004, 13, 30004, 13, 4706, 363, 321, 297, 382, 10403, 13507, 29901, 30004, 13, 9651, 396, 382, 29955, 29918, 6026, 6847, 10601, 292, 29906, 30004, 13, 9651, 1904, 4619, 9505, 29886, 29889, 22833, 11139, 4197, 2744, 29876, 950, 6026, 6847, 29961, 29878, 3816, 29872, 3816, 29891, 29962, 363, 343, 297, 612, 26441, 2314, 1275, 8125, 29853, 6026, 6847, 29961, 29878, 3816, 29872, 29962, 448, 8125, 29853, 1252, 6352, 681, 6026, 2333, 29961, 29878, 3816, 29872, 1402, 5124, 30004, 13, 30004, 13, 9651, 363, 343, 297, 612, 26441, 29901, 30004, 13, 18884, 396, 382, 29947, 29918, 2744, 29876, 950, 6026, 6847, 24445, 30004, 13, 18884, 1904, 4619, 8081, 950, 6026, 6847, 29961, 29878, 3816, 29872, 3816, 29891, 29962, 5277, 8081, 950, 6026, 2333, 24445, 29961, 29878, 3816, 29872, 3816, 29891, 29962, 448, 8081, 950, 1252, 6352, 681, 6026, 2333, 29961, 29878, 3816, 29872, 3816, 29891, 1402, 5124, 30004, 13, 9651, 396, 382, 29929, 29918, 3195, 29853, 6026, 6847, 24445, 30004, 13, 9651, 1904, 4619, 8125, 29853, 6026, 6847, 29961, 29878, 3816, 29872, 29962, 5277, 8125, 29853, 6026, 2333, 24445, 29961, 29878, 3816, 29872, 1402, 5124, 30004, 13, 30004, 13, 1678, 12183, 29889, 3888, 703, 29912, 1012, 29873, 3195, 338, 4240, 1213, 29889, 4830, 29898, 6008, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29908, 4961, 30004, 13, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 29899, 30004, 13, 1678, 396, 1678, 317, 5607, 12064, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 29899, 30004, 13, 30004, 13, 1678, 1904, 29889, 2929, 345, 26471, 13, 1678, 12183, 29889, 3888, 703, 29912, 1012, 29873, 3195, 338, 7484, 1213, 29889, 4830, 29898, 6008, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29908, 4961, 30004, 13, 30004, 13, 1678, 565, 851, 29898, 29886, 15323, 29889, 29931, 29886, 5709, 29961, 4299, 29889, 4882, 2314, 1275, 376, 20624, 3039, 1115, 30004, 13, 4706, 12183, 29889, 3888, 703, 1576, 14413, 1650, 1476, 263, 3438, 995, 310, 6571, 1213, 29889, 4830, 29898, 14486, 29898, 4299, 29889, 3318, 573, 29889, 1767, 3285, 29871, 29906, 4961, 30004, 13, 30004, 13, 4706, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 9072, 29899, 30004, 13, 4706, 396, 1678, 317, 7520, 29923, 390, 2890, 8647, 29903, 7495, 27640, 5098, 4717, 2303, 30004, 13, 4706, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 9072, 29899, 30004, 13, 30004, 13, 4706, 396, 6204, 12205, 304, 4078, 2582, 1156, 278, 1904, 471, 1065, 278, 937, 931, 30004, 13, 4706, 565, 474, 1275, 29871, 29900, 29901, 30004, 13, 9651, 620, 29918, 2176, 353, 10518, 29889, 17271, 29898, 13099, 11759, 30004, 13, 9651, 525, 7187, 1430, 1718, 5971, 23592, 13, 9651, 525, 26865, 29918, 5813, 23592, 13, 9651, 525, 26865, 29918, 19143, 23592, 13, 9651, 525, 18166, 2725, 23592, 13, 9651, 525, 18166, 2725, 29906, 23592, 13, 9651, 525, 28658, 11116, 23592, 13, 9651, 525, 29923, 10403, 13507, 23592, 13, 9651, 525, 29943, 4462, 29931, 23592, 13, 9651, 525, 7698, 6227, 29979, 15307, 15176, 11375, 2544, 23592, 13, 9651, 525, 1660, 29909, 3094, 23592, 13, 9651, 525, 15307, 12750, 12107, 23592, 13, 9651, 525, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 23592, 13, 9651, 525, 1254, 1955, 10461, 23592, 13, 9651, 525, 4330, 3210, 6632, 14480, 29979, 23592, 13, 9651, 525, 29979, 26441, 23592, 13, 9651, 525, 29943, 1307, 29990, 8979, 1307, 2287, 1529, 2797, 11116, 2033, 8443, 13, 30004, 13, 4706, 620, 29918, 2176, 353, 4078, 12191, 5776, 1971, 653, 29898, 690, 29918, 2176, 29892, 1904, 29892, 376, 4421, 24893, 27508, 718, 851, 29898, 29875, 876, 30004, 13, 4706, 12183, 29889, 3888, 703, 29912, 1012, 29873, 12191, 526, 7160, 1642, 4830, 29898, 6008, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29908, 4961, 30004, 13, 30004, 13, 1678, 1683, 29901, 30004, 13, 4706, 12183, 29889, 2704, 703, 29912, 1012, 29873, 2392, 29901, 20693, 326, 4371, 4660, 363, 2522, 24893, 648, 29913, 338, 29901, 6571, 1642, 4830, 29898, 30004, 13, 9651, 11636, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 4968, 9505, 29886, 29889, 29931, 29886, 5709, 29961, 4299, 29889, 4882, 12622, 30004, 13, 30004, 13, 1678, 628, 1904, 29871, 396, 21267, 1904, 30004, 13, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 1678, 396, 1678, 341, 1164, 4330, 315, 1718, 3927, 317, 7833, 13309, 8098, 448, 6850, 8322, 30004, 13, 1678, 396, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 30004, 13, 1678, 474, 4619, 29871, 29896, 30004, 13, 30004, 13, 1678, 396, 3940, 29901, 11240, 15021, 3439, 2785, 338, 7436, 304, 599, 4629, 4128, 313, 29885, 2395, 29918, 16744, 467, 30004, 13, 1678, 396, 1152, 1269, 3443, 29892, 278, 286, 2395, 29918, 16744, 338, 871, 7436, 304, 3443, 1819, 393, 526, 451, 5186, 304, 2322, 1819, 29892, 474, 29889, 29872, 29889, 1819, 393, 892, 9479, 731, 22993, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 7422, 4128, 322, 848, 268, 835, 4136, 2277, 30004, 13, 30004, 13, 1678, 565, 313, 2435, 29898, 29885, 2395, 29918, 16744, 29897, 6736, 29871, 29896, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 29897, 322, 313, 29875, 1275, 29871, 29896, 1125, 30004, 13, 30004, 13, 4706, 396, 14187, 310, 3517, 1828, 357, 267, 29889, 910, 338, 1304, 304, 3787, 2307, 5759, 4128, 411, 848, 304, 26371, 749, 278, 4180, 297, 278, 286, 2395, 29918, 16744, 12104, 30004, 13, 4706, 3295, 2798, 19907, 29918, 999, 353, 3295, 2798, 19907, 30004, 13, 4706, 8373, 18772, 29918, 999, 353, 8373, 18772, 30004, 13, 4706, 1281, 3259, 3137, 29918, 999, 353, 1281, 3259, 3137, 30004, 13, 4706, 1281, 3259, 430, 29918, 999, 353, 1281, 3259, 430, 30004, 13, 4706, 1281, 3259, 29880, 29882, 29918, 999, 353, 1281, 3259, 29880, 29882, 30004, 13, 4706, 24728, 797, 12742, 1542, 29918, 999, 353, 24728, 797, 12742, 1542, 30004, 13, 4706, 27226, 12085, 29918, 999, 353, 27226, 12085, 30004, 13, 4706, 897, 1457, 455, 362, 4062, 29918, 999, 353, 897, 1457, 455, 362, 4062, 30004, 13, 4706, 12048, 2164, 2744, 29876, 950, 29928, 331, 392, 29918, 999, 353, 12048, 2164, 2744, 29876, 950, 29928, 331, 392, 30004, 13, 4706, 12048, 2164, 29928, 331, 392, 13909, 29918, 999, 353, 12048, 2164, 29928, 331, 392, 13909, 30004, 13, 4706, 4831, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29918, 999, 353, 4831, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 30004, 13, 4706, 5915, 5946, 1762, 3886, 8325, 29918, 999, 353, 5915, 5946, 1762, 3886, 8325, 30004, 13, 4706, 1920, 305, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29918, 999, 353, 1920, 305, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 30004, 13, 4706, 5915, 5946, 29943, 7168, 29918, 999, 353, 5915, 5946, 29943, 7168, 30004, 13, 4706, 7740, 737, 3097, 29943, 7168, 29918, 999, 353, 7740, 737, 3097, 29943, 7168, 30004, 13, 4706, 6607, 1288, 26754, 29918, 999, 353, 6607, 1288, 26754, 30004, 13, 4706, 2538, 333, 950, 12415, 5946, 29918, 999, 353, 2538, 333, 950, 12415, 5946, 30004, 13, 4706, 10567, 3886, 29934, 20819, 29918, 999, 353, 10567, 3886, 29934, 20819, 30004, 13, 4706, 10604, 3886, 29934, 20819, 29918, 999, 353, 10604, 3886, 29934, 20819, 30004, 13, 4706, 25343, 25733, 29918, 999, 353, 25343, 25733, 30004, 13, 4706, 28736, 25733, 29918, 999, 353, 28736, 25733, 30004, 13, 4706, 383, 11925, 25733, 29918, 999, 353, 383, 11925, 25733, 30004, 13, 4706, 17968, 1762, 10486, 29918, 999, 353, 17968, 1762, 10486, 30004, 13, 4706, 17968, 4591, 10486, 29918, 999, 353, 17968, 4591, 10486, 30004, 13, 4706, 26162, 10108, 4763, 29918, 999, 353, 26162, 10108, 4763, 30004, 13, 4706, 26162, 7976, 5914, 479, 19907, 29918, 999, 353, 26162, 7976, 5914, 479, 19907, 30004, 13, 4706, 26162, 7976, 29928, 783, 279, 479, 19907, 29918, 999, 353, 26162, 7976, 29928, 783, 279, 479, 19907, 30004, 13, 4706, 3080, 10486, 5914, 479, 29918, 999, 353, 3080, 10486, 5914, 479, 30004, 13, 4706, 6607, 1288, 26754, 10486, 29918, 999, 353, 6607, 1288, 26754, 10486, 30004, 13, 4706, 25343, 25733, 10486, 29918, 999, 353, 25343, 25733, 10486, 30004, 13, 4706, 2538, 333, 950, 10486, 12415, 5946, 29918, 999, 353, 2538, 333, 950, 10486, 12415, 5946, 30004, 13, 4706, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29918, 999, 353, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 30004, 13, 4706, 14990, 2744, 29876, 950, 7976, 12415, 5946, 29918, 999, 353, 14990, 2744, 29876, 950, 7976, 12415, 5946, 30004, 13, 4706, 14990, 2744, 29876, 950, 8140, 12415, 5946, 29918, 999, 353, 14990, 2744, 29876, 950, 8140, 12415, 5946, 30004, 13, 4706, 14990, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29918, 999, 353, 14990, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 30004, 13, 4706, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29918, 999, 353, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 30004, 13, 4706, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29918, 999, 353, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 30004, 13, 4706, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29918, 999, 353, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 30004, 13, 4706, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29918, 999, 353, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 30004, 13, 4706, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29918, 999, 353, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 30004, 13, 4706, 27811, 29924, 3930, 8176, 7141, 3049, 3002, 29918, 999, 353, 27811, 29924, 3930, 8176, 7141, 3049, 3002, 30004, 13, 4706, 27811, 29924, 3930, 8176, 29943, 2491, 29918, 999, 353, 27811, 29924, 3930, 8176, 29943, 2491, 30004, 13, 4706, 27811, 29924, 3930, 29918, 999, 353, 27811, 29924, 3930, 30004, 13, 4706, 28081, 351, 7141, 3049, 3002, 29918, 999, 353, 28081, 351, 7141, 3049, 3002, 30004, 13, 4706, 28081, 351, 29943, 2491, 29918, 999, 353, 28081, 351, 29943, 2491, 30004, 13, 4706, 5195, 8140, 23665, 428, 8667, 29918, 999, 353, 5195, 8140, 23665, 428, 8667, 30004, 13, 4706, 2812, 2333, 3886, 29934, 20819, 29918, 999, 353, 2812, 2333, 3886, 29934, 20819, 30004, 13, 4706, 2812, 6847, 29925, 264, 18745, 29918, 999, 353, 2812, 6847, 29925, 264, 18745, 30004, 13, 4706, 8081, 950, 1252, 6352, 681, 6026, 2333, 29918, 999, 353, 8081, 950, 1252, 6352, 681, 6026, 2333, 30004, 13, 4706, 8081, 950, 6026, 2333, 24445, 29918, 999, 353, 8081, 950, 6026, 2333, 24445, 30004, 13, 4706, 8125, 29853, 1252, 6352, 681, 6026, 2333, 29918, 999, 353, 8125, 29853, 1252, 6352, 681, 6026, 2333, 30004, 13, 4706, 8125, 29853, 6026, 2333, 24445, 29918, 999, 353, 8125, 29853, 6026, 2333, 24445, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 5631, 403, 4036, 848, 322, 26556, 4629, 4128, 363, 2446, 341, 9295, 1065, 418, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 835, 4136, 29937, 12, 12, 12, 12756, 29871, 12, 12, 12, 12, 12, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 565, 4852, 4205, 2798, 19907, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 3295, 2798, 19907, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4205, 2798, 19907, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 3295, 2798, 19907, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 876, 363, 364, 297, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4205, 2798, 19907, 16862, 18166, 2725, 2314, 30004, 13, 30004, 13, 4706, 3295, 2798, 19907, 353, 426, 710, 29898, 29878, 1125, 5706, 17875, 1469, 29898, 4205, 2798, 19907, 29918, 999, 29961, 29878, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4205, 2798, 19907, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 876, 297, 3295, 2798, 19907, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 4205, 2798, 19907, 29918, 999, 29961, 29878, 1402, 3295, 2798, 19907, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 1678, 835, 4136, 29937, 12, 12, 12, 29928, 331, 4167, 29871, 12, 12, 12, 12, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 565, 4852, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 12048, 2164, 2744, 29876, 950, 29928, 331, 392, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 12048, 2164, 2744, 29876, 950, 29928, 331, 392, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29888, 511, 710, 29898, 29891, 876, 363, 364, 29892, 285, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 16862, 29943, 4462, 29931, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 12048, 2164, 2744, 29876, 950, 29928, 331, 392, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 29918, 999, 29961, 29878, 3816, 29888, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29888, 511, 710, 29898, 29891, 876, 297, 12048, 2164, 2744, 29876, 950, 29928, 331, 392, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 10299, 2164, 2744, 29876, 950, 29928, 331, 392, 29918, 999, 29961, 29878, 3816, 29888, 3816, 29891, 1402, 12048, 2164, 2744, 29876, 950, 29928, 331, 392, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 4831, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 4831, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29888, 511, 710, 29898, 29891, 876, 363, 364, 29892, 285, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 16862, 29943, 4462, 29931, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 4831, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29918, 999, 29961, 29878, 3816, 29888, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29888, 511, 710, 29898, 29891, 876, 297, 4831, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 7504, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29918, 999, 29961, 29878, 3816, 29888, 3816, 29891, 1402, 4831, 398, 7964, 2744, 29876, 950, 29928, 331, 392, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 5894, 13390, 12, 12, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 565, 4852, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 1920, 305, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 1920, 305, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 363, 364, 29892, 260, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 16862, 4330, 3210, 6632, 14480, 29979, 29897, 2314, 30004, 13, 30004, 13, 4706, 1920, 305, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 5706, 17875, 1469, 29898, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29918, 999, 29961, 29878, 3816, 29873, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 297, 1920, 305, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 29911, 5309, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29918, 999, 29961, 29878, 3816, 29873, 1402, 1920, 305, 3047, 12415, 5946, 8139, 19226, 1762, 6816, 300, 15666, 557, 9375, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 12415, 5946, 29943, 7168, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 5915, 5946, 29943, 7168, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 5915, 5946, 29943, 7168, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29880, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 301, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 16862, 15307, 12750, 12107, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 5915, 5946, 29943, 7168, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29880, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 12415, 5946, 29943, 7168, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29880, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 29943, 7168, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29880, 511, 710, 29898, 29891, 876, 297, 5915, 5946, 29943, 7168, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 12415, 5946, 29943, 7168, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29880, 3816, 29891, 1402, 5915, 5946, 29943, 7168, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 301, 297, 323, 8890, 12750, 12107, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 12810, 737, 3097, 29943, 7168, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 7740, 737, 3097, 29943, 7168, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12810, 737, 3097, 29943, 7168, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 7740, 737, 3097, 29943, 7168, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12810, 737, 3097, 29943, 7168, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12810, 737, 3097, 29943, 7168, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12810, 737, 3097, 29943, 7168, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 7740, 737, 3097, 29943, 7168, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 12810, 737, 3097, 29943, 7168, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12810, 737, 3097, 29943, 7168, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 297, 7740, 737, 3097, 29943, 7168, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 12810, 737, 3097, 29943, 7168, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 7740, 737, 3097, 29943, 7168, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 7094, 1288, 26754, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 6607, 1288, 26754, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 6607, 1288, 26754, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 363, 364, 29892, 260, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 16862, 4330, 3210, 6632, 14480, 29979, 29897, 2314, 30004, 13, 30004, 13, 4706, 6607, 1288, 26754, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 938, 29898, 17158, 17875, 1469, 29898, 7094, 1288, 26754, 29918, 999, 29961, 29878, 3816, 29873, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 12622, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 297, 6607, 1288, 26754, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 938, 29898, 17158, 17875, 1469, 29898, 7094, 1288, 26754, 29918, 999, 29961, 29878, 3816, 29873, 1402, 6607, 1288, 26754, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 876, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 4290, 3886, 29934, 20819, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 10567, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 10567, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29888, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 285, 29892, 286, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 16862, 29943, 4462, 29931, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 16862, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 10567, 3886, 29934, 20819, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 4290, 3886, 29934, 20819, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29885, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 4290, 3886, 29934, 20819, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 1275, 286, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29888, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 297, 10567, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 4290, 3886, 29934, 20819, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29885, 3816, 29891, 1402, 10567, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 6466, 3886, 29934, 20819, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 10604, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 10604, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29888, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 285, 29892, 286, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 16862, 29943, 4462, 29931, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 16862, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 10604, 3886, 29934, 20819, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29888, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 6466, 3886, 29934, 20819, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29885, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6466, 3886, 29934, 20819, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29943, 4462, 29931, 2033, 1275, 285, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 1275, 286, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29888, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 297, 10604, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 6466, 3886, 29934, 20819, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29888, 3816, 29885, 3816, 29891, 1402, 10604, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 285, 297, 383, 4462, 29931, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 7141, 3049, 3002, 9839, 29879, 12, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 565, 4852, 12415, 2410, 25733, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 25343, 25733, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 25343, 25733, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 25343, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 12415, 2410, 25733, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 297, 25343, 25733, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 12415, 2410, 25733, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 25343, 25733, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 16174, 25733, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 28736, 25733, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 28736, 25733, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 286, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 16862, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 28736, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 16174, 25733, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29885, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 16174, 25733, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 1275, 286, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 297, 28736, 25733, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 16174, 25733, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29885, 3816, 29891, 1402, 28736, 25733, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 26262, 25733, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 383, 11925, 25733, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 26262, 25733, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 383, 11925, 25733, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 26262, 25733, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 26262, 25733, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 26262, 25733, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 383, 11925, 25733, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 26262, 25733, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 26262, 25733, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29891, 876, 297, 383, 11925, 25733, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 26262, 25733, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 383, 11925, 25733, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 10486, 462, 29871, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 565, 4852, 10486, 10108, 4763, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 26162, 10108, 4763, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 10108, 4763, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 26162, 10108, 4763, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 363, 364, 29892, 269, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 10108, 4763, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 10108, 4763, 16862, 1254, 1955, 10461, 29897, 2314, 30004, 13, 30004, 13, 4706, 26162, 10108, 4763, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 5706, 17875, 1469, 29898, 10486, 10108, 4763, 29918, 999, 29961, 29878, 3816, 29879, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 10108, 4763, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 297, 26162, 10108, 4763, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 10486, 10108, 4763, 29918, 999, 29961, 29878, 3816, 29879, 1402, 26162, 10108, 4763, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 10486, 7976, 5914, 479, 19907, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 26162, 7976, 5914, 479, 19907, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 5914, 479, 19907, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 26162, 7976, 5914, 479, 19907, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 363, 364, 29892, 269, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 5914, 479, 19907, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 5914, 479, 19907, 16862, 1254, 1955, 10461, 29897, 2314, 30004, 13, 30004, 13, 4706, 26162, 7976, 5914, 479, 19907, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 5706, 17875, 1469, 29898, 10486, 7976, 5914, 479, 19907, 29918, 999, 29961, 29878, 3816, 29879, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 5914, 479, 19907, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 297, 26162, 7976, 5914, 479, 19907, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 10486, 7976, 5914, 479, 19907, 29918, 999, 29961, 29878, 3816, 29879, 1402, 26162, 7976, 5914, 479, 19907, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 10486, 7976, 29928, 783, 279, 479, 19907, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 26162, 7976, 29928, 783, 279, 479, 19907, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 29928, 783, 279, 479, 19907, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 26162, 7976, 29928, 783, 279, 479, 19907, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 363, 364, 29892, 269, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 29928, 783, 279, 479, 19907, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 29928, 783, 279, 479, 19907, 16862, 1254, 1955, 10461, 29897, 2314, 30004, 13, 30004, 13, 4706, 26162, 7976, 29928, 783, 279, 479, 19907, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 5706, 17875, 1469, 29898, 10486, 7976, 29928, 783, 279, 479, 19907, 29918, 999, 29961, 29878, 3816, 29879, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 10486, 7976, 29928, 783, 279, 479, 19907, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 297, 26162, 7976, 29928, 783, 279, 479, 19907, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 10486, 7976, 29928, 783, 279, 479, 19907, 29918, 999, 29961, 29878, 3816, 29879, 1402, 26162, 7976, 29928, 783, 279, 479, 19907, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 7094, 1288, 26754, 10486, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 6607, 1288, 26754, 10486, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 10486, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 6607, 1288, 26754, 10486, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 363, 364, 29892, 269, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 10486, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 10486, 16862, 1254, 1955, 10461, 29897, 2314, 30004, 13, 30004, 13, 4706, 6607, 1288, 26754, 10486, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 5706, 17875, 1469, 29898, 7094, 1288, 26754, 10486, 29918, 999, 29961, 29878, 3816, 29879, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 7094, 1288, 26754, 10486, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 876, 297, 6607, 1288, 26754, 10486, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 7094, 1288, 26754, 10486, 29918, 999, 29961, 29878, 3816, 29879, 1402, 6607, 1288, 26754, 10486, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 12415, 2410, 25733, 10486, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 25343, 25733, 10486, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 10486, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 25343, 25733, 10486, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 511, 851, 29898, 29891, 876, 363, 364, 29892, 269, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 10486, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 10486, 16862, 1254, 1955, 10461, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 10486, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 25343, 25733, 10486, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 12415, 2410, 25733, 10486, 29918, 999, 29961, 29878, 3816, 29879, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 2410, 25733, 10486, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 511, 851, 29898, 29891, 876, 297, 25343, 25733, 10486, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 12415, 2410, 25733, 10486, 29918, 999, 29961, 29878, 3816, 29879, 3816, 29891, 1402, 25343, 25733, 10486, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 1666, 333, 950, 10486, 12415, 5946, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 2538, 333, 950, 10486, 12415, 5946, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 10486, 12415, 5946, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 2538, 333, 950, 10486, 12415, 5946, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29879, 511, 851, 29898, 29891, 876, 363, 364, 29892, 269, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 10486, 12415, 5946, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 10486, 12415, 5946, 16862, 1254, 1955, 10461, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 10486, 12415, 5946, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 2538, 333, 950, 10486, 12415, 5946, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29879, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 1666, 333, 950, 10486, 12415, 5946, 29918, 999, 29961, 29878, 3816, 29879, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 1666, 333, 950, 10486, 12415, 5946, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 1254, 1955, 10461, 2033, 1275, 269, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29879, 511, 851, 29898, 29891, 876, 297, 2538, 333, 950, 10486, 12415, 5946, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 1666, 333, 950, 10486, 12415, 5946, 29918, 999, 29961, 29878, 3816, 29879, 3816, 29891, 1402, 2538, 333, 950, 10486, 12415, 5946, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 269, 297, 6850, 1955, 10461, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 12415, 5946, 1281, 4151, 9466, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 565, 4852, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 12415, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 5915, 5946, 2776, 6716, 7141, 3049, 3002, 8325, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 797, 10147, 358, 1281, 4151, 9466, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 565, 4852, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 14990, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 14990, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 14990, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 14990, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 11536, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 14990, 2744, 29876, 950, 7976, 12415, 5946, 797, 10147, 358, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 11536, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 14990, 2744, 29876, 950, 8140, 12415, 5946, 797, 10147, 358, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 3886, 1281, 4151, 9466, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 565, 4852, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 26214, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 511, 851, 29898, 29891, 876, 297, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 11536, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29891, 1402, 14990, 7141, 3049, 3002, 2744, 29876, 950, 3886, 19357, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 363, 364, 29892, 260, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 16862, 4330, 3210, 6632, 14480, 29979, 29897, 2314, 30004, 13, 30004, 13, 4706, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 5706, 17875, 1469, 29898, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29918, 999, 29961, 29878, 3816, 29873, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 297, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29918, 999, 29961, 29878, 3816, 29873, 1402, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 26214, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 363, 364, 29892, 260, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 16862, 4330, 3210, 6632, 14480, 29979, 29897, 2314, 30004, 13, 30004, 13, 4706, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 5706, 17875, 1469, 29898, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29918, 999, 29961, 29878, 3816, 29873, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29873, 876, 297, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 11536, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29918, 999, 29961, 29878, 3816, 29873, 1402, 14990, 7141, 3049, 3002, 3195, 29853, 3886, 19357, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 1678, 835, 4136, 2277, 12, 12, 12, 6026, 6847, 669, 7363, 1997, 583, 12, 12, 7346, 29937, 30004, 13, 30004, 13, 1678, 565, 4852, 6026, 2333, 3886, 29934, 20819, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 2812, 2333, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 2812, 2333, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29872, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 363, 364, 29892, 260, 29892, 321, 29892, 286, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 16862, 4330, 3210, 6632, 14480, 29979, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 16862, 29923, 10403, 13507, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 16862, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 2812, 2333, 3886, 29934, 20819, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29873, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29885, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 6026, 2333, 3886, 29934, 20819, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29872, 3816, 29885, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 2333, 3886, 29934, 20819, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 4330, 3210, 6632, 14480, 29979, 2033, 1275, 260, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 20387, 29918, 9800, 29918, 4590, 1001, 8098, 2033, 1275, 286, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 710, 29898, 29873, 511, 710, 29898, 29872, 511, 710, 29898, 29885, 511, 710, 29898, 29891, 876, 297, 2812, 2333, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 6026, 2333, 3886, 29934, 20819, 29918, 999, 29961, 29878, 3816, 29873, 3816, 29872, 3816, 29885, 3816, 29891, 1402, 2812, 2333, 3886, 29934, 20819, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 286, 297, 16999, 2287, 29918, 9800, 29918, 4590, 1001, 8098, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 260, 297, 17067, 3210, 6632, 14480, 29979, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 6026, 6847, 29925, 264, 18745, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 2812, 6847, 29925, 264, 18745, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 6847, 29925, 264, 18745, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 2812, 6847, 29925, 264, 18745, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 363, 364, 29892, 321, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 6847, 29925, 264, 18745, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 6847, 29925, 264, 18745, 16862, 29923, 10403, 13507, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 6847, 29925, 264, 18745, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 2812, 6847, 29925, 264, 18745, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 6026, 6847, 29925, 264, 18745, 29918, 999, 29961, 29878, 3816, 29872, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 6026, 6847, 29925, 264, 18745, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 297, 2812, 6847, 29925, 264, 18745, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 6026, 6847, 29925, 264, 18745, 29918, 999, 29961, 29878, 3816, 29872, 3816, 29891, 1402, 2812, 6847, 29925, 264, 18745, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 8081, 950, 1252, 6352, 681, 6026, 2333, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 8081, 950, 1252, 6352, 681, 6026, 2333, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 363, 364, 29892, 321, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 16862, 29923, 10403, 13507, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 8081, 950, 1252, 6352, 681, 6026, 2333, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 29918, 999, 29961, 29878, 3816, 29872, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 297, 8081, 950, 1252, 6352, 681, 6026, 2333, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 2744, 29876, 950, 1252, 6352, 681, 6026, 2333, 29918, 999, 29961, 29878, 3816, 29872, 3816, 29891, 1402, 8081, 950, 1252, 6352, 681, 6026, 2333, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 2744, 29876, 950, 6026, 2333, 24445, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 8081, 950, 6026, 2333, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 6026, 2333, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 8081, 950, 6026, 2333, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 363, 364, 29892, 321, 29892, 343, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 6026, 2333, 24445, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 6026, 2333, 24445, 16862, 29923, 10403, 13507, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 6026, 2333, 24445, 16862, 29979, 26441, 29897, 2314, 30004, 13, 30004, 13, 4706, 8081, 950, 6026, 2333, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 426, 710, 29898, 29891, 1125, 5706, 17875, 1469, 29898, 2744, 29876, 950, 6026, 2333, 24445, 29918, 999, 29961, 29878, 3816, 29872, 3816, 29891, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 2744, 29876, 950, 6026, 2333, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29979, 26441, 2033, 1275, 343, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29872, 511, 851, 29898, 29891, 876, 297, 8081, 950, 6026, 2333, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 2744, 29876, 950, 6026, 2333, 24445, 29918, 999, 29961, 29878, 3816, 29872, 3816, 29891, 1402, 8081, 950, 6026, 2333, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 343, 297, 612, 26441, 29913, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 3195, 29853, 1252, 6352, 681, 6026, 2333, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 8125, 29853, 1252, 6352, 681, 6026, 2333, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 1252, 6352, 681, 6026, 2333, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 8125, 29853, 1252, 6352, 681, 6026, 2333, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29872, 876, 363, 364, 29892, 321, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 1252, 6352, 681, 6026, 2333, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 1252, 6352, 681, 6026, 2333, 16862, 29923, 10403, 13507, 29897, 2314, 30004, 13, 30004, 13, 4706, 8125, 29853, 1252, 6352, 681, 6026, 2333, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 5706, 17875, 1469, 29898, 3195, 29853, 1252, 6352, 681, 6026, 2333, 29918, 999, 29961, 29878, 3816, 29872, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 1252, 6352, 681, 6026, 2333, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29872, 876, 297, 8125, 29853, 1252, 6352, 681, 6026, 2333, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 3195, 29853, 1252, 6352, 681, 6026, 2333, 29918, 999, 29961, 29878, 3816, 29872, 1402, 8125, 29853, 1252, 6352, 681, 6026, 2333, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 1678, 565, 4852, 3195, 29853, 6026, 2333, 24445, 29908, 297, 286, 2395, 29918, 16744, 29897, 322, 313, 29885, 2395, 29918, 1949, 1405, 29871, 29900, 1125, 30004, 13, 4706, 565, 474, 1275, 29871, 29896, 29901, 30004, 13, 9651, 8125, 29853, 6026, 2333, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 353, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 6026, 2333, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 23397, 29918, 10490, 29911, 4214, 2033, 1275, 29871, 29896, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 29962, 30004, 13, 9651, 8125, 29853, 6026, 2333, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 353, 18761, 4197, 29898, 710, 29898, 29878, 511, 851, 29898, 29872, 876, 363, 364, 29892, 321, 297, 14319, 29898, 29885, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 6026, 2333, 24445, 16862, 18166, 2725, 29892, 286, 2395, 29918, 2176, 29961, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 6026, 2333, 24445, 16862, 29923, 10403, 13507, 29897, 2314, 30004, 13, 30004, 13, 4706, 8125, 29853, 6026, 2333, 24445, 353, 426, 710, 29898, 29878, 1125, 426, 710, 29898, 29872, 1125, 5706, 17875, 1469, 29898, 3195, 29853, 6026, 2333, 24445, 29918, 999, 29961, 29878, 3816, 29872, 1402, 286, 2395, 29918, 2176, 15625, 29885, 2395, 29918, 2176, 1839, 16320, 5194, 2033, 1275, 376, 3195, 29853, 6026, 2333, 24445, 1159, 669, 313, 29885, 2395, 29918, 2176, 1839, 18166, 2725, 2033, 1275, 364, 29897, 669, 313, 29885, 2395, 29918, 2176, 1839, 29923, 10403, 13507, 2033, 1275, 321, 29897, 3816, 1839, 4571, 1254, 3960, 29933, 2692, 2725, 742, 525, 1525, 29931, 29918, 7230, 742, 525, 1525, 29931, 29918, 16173, 742, 525, 1525, 29931, 29918, 12648, 742, 525, 1718, 22800, 2033, 1822, 5975, 29889, 25027, 391, 580, 29961, 29900, 2314, 565, 313, 710, 29898, 29878, 511, 851, 29898, 29872, 876, 297, 8125, 29853, 6026, 2333, 24445, 29918, 29885, 2395, 29918, 6550, 2164, 1683, 5706, 17875, 1469, 29898, 3195, 29853, 6026, 2333, 24445, 29918, 999, 29961, 29878, 3816, 29872, 1402, 8125, 29853, 6026, 2333, 24445, 29918, 29885, 2395, 29918, 4381, 29918, 1761, 29897, 363, 321, 297, 382, 10403, 13507, 29913, 363, 364, 297, 5195, 29954, 2725, 8117, 13, 30004, 13, 30004, 13, 21027, 29889, 3888, 703, 29912, 1012, 29873, 21067, 4848, 338, 7743, 29889, 3529, 4480, 2745, 278, 2582, 526, 7160, 29991, 1642, 4830, 29898, 6008, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29908, 4961, 30004, 13, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 29937, 12, 29903, 7520, 29923, 15149, 390, 2890, 8647, 29903, 30004, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 2683, 23648, 30004, 13, 30004, 13, 7620, 12191, 29898, 690, 29918, 2176, 29892, 1962, 9170, 29892, 1962, 2283, 8443, 13, 21027, 29889, 3888, 703, 29912, 1012, 29873, 3596, 2582, 526, 7160, 1642, 4830, 29898, 6008, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29908, 4961, 2 ]
algorithms/dataStructures/graph.py
mohrtw/algorithms
0
173543
from collections import defaultdict class graph(object): def __init__(self, arcList=[]): self.arcs = defaultdict(list) for arc in arcList: self.arcs[arc[0]].append(arc[1]) if not self.check_vertex(arc[1]): self.add_vertex(arc[1]) def check_vertex(self, v): return v in self.arcs def check_arc(self, v, a): return a in self.arcs[v] def add_vertex(self, v): self.arcs[v] = [] def add_arc(self, v, a): self.arcs[v].append(a) def remove_vertex(self, v): self.arcs.pop(v, None) def remove_arc(self, v, a): self.arcs[v].remove(a) def get_arcs(self, v): return self.arcs[v]
[ 1, 515, 16250, 1053, 2322, 8977, 13, 13, 13, 1990, 3983, 29898, 3318, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 15232, 1293, 29922, 2636, 1125, 13, 4706, 1583, 29889, 279, 2395, 353, 2322, 8977, 29898, 1761, 29897, 13, 13, 4706, 363, 15232, 297, 15232, 1293, 29901, 13, 9651, 1583, 29889, 279, 2395, 29961, 5666, 29961, 29900, 29962, 1822, 4397, 29898, 5666, 29961, 29896, 2314, 13, 9651, 565, 451, 1583, 29889, 3198, 29918, 369, 4776, 29898, 5666, 29961, 29896, 29962, 1125, 13, 18884, 1583, 29889, 1202, 29918, 369, 4776, 29898, 5666, 29961, 29896, 2314, 13, 13, 1678, 822, 1423, 29918, 369, 4776, 29898, 1311, 29892, 325, 1125, 13, 4706, 736, 325, 297, 1583, 29889, 279, 2395, 13, 13, 1678, 822, 1423, 29918, 5666, 29898, 1311, 29892, 325, 29892, 263, 1125, 13, 4706, 736, 263, 297, 1583, 29889, 279, 2395, 29961, 29894, 29962, 13, 13, 1678, 822, 788, 29918, 369, 4776, 29898, 1311, 29892, 325, 1125, 13, 4706, 1583, 29889, 279, 2395, 29961, 29894, 29962, 353, 5159, 13, 13, 1678, 822, 788, 29918, 5666, 29898, 1311, 29892, 325, 29892, 263, 1125, 13, 4706, 1583, 29889, 279, 2395, 29961, 29894, 1822, 4397, 29898, 29874, 29897, 13, 13, 1678, 822, 3349, 29918, 369, 4776, 29898, 1311, 29892, 325, 1125, 13, 4706, 1583, 29889, 279, 2395, 29889, 7323, 29898, 29894, 29892, 6213, 29897, 13, 13, 1678, 822, 3349, 29918, 5666, 29898, 1311, 29892, 325, 29892, 263, 1125, 13, 4706, 1583, 29889, 279, 2395, 29961, 29894, 1822, 5992, 29898, 29874, 29897, 13, 13, 1678, 822, 679, 29918, 279, 2395, 29898, 1311, 29892, 325, 1125, 13, 4706, 736, 1583, 29889, 279, 2395, 29961, 29894, 29962, 13, 2 ]
helpers/expr_to_dnf.py
hriener/party-elli
9
128186
<reponame>hriener/party-elli from typing import List from sympy import Symbol, to_dnf, Not, Or, And, simplify_logic from sympy import false as sympy_false from sympy import true as sympy_true from helpers.expr_helper import get_sig_number from helpers.spec_helper import prop from interfaces.expr import Expr, BinOp, Number, Bool, UnaryOp from parsing.visitor import Visitor class SympyConverter(Visitor): def visit_binary_op(self, binary_op:BinOp): assert binary_op.name in '*+=', str(binary_op) if binary_op.name == '=': sig, num = get_sig_number(binary_op) assert num == Number(1), str(num) sympy_prop = Symbol(sig.name) return sympy_prop if binary_op.name == '*': return self.dispatch(binary_op.arg1) & self.dispatch(binary_op.arg2) if binary_op.name == '+': return self.dispatch(binary_op.arg1) | self.dispatch(binary_op.arg2) def visit_bool(self, bool_const:Bool): return (sympy_false, sympy_true)[bool_const==Bool(True)] def visit_unary_op(self, unary_op:UnaryOp): assert unary_op.name == '!', str(unary_op) return ~self.dispatch(unary_op.arg) # end of SympyConverter def to_dnf_set(dst_expr:Expr) -> List[List[Expr]]: sympy_dst_expr = simplify_logic(SympyConverter().dispatch(dst_expr)) # the checks below need this `simplify` if sympy_dst_expr == sympy_true: return [[]] if sympy_dst_expr == sympy_false: return [] dnf_sympy_dst_expr = to_dnf(sympy_dst_expr, simplify=True) cubes = _get_cubes(dnf_sympy_dst_expr) cubes_list = [] for cube in cubes: literals = _get_literals(cube) props_list = [] for l in literals: if isinstance(l, Not): props_list.append(~prop(str(l.args[0]))) # it should print its name.. else: props_list.append(prop(str(l))) # it should print its name.. cubes_list.append(props_list) return cubes_list def _get_cubes(dnf_expr) -> tuple: assert dnf_expr not in (sympy_true, sympy_false) if isinstance(dnf_expr, Or): return dnf_expr.args return dnf_expr, def _get_literals(expr) -> tuple: if isinstance(expr, Or) or isinstance(expr, And): return expr.args assert isinstance(expr, (Not, Symbol)), str(expr.__class__) return expr, # tuple
[ 1, 529, 276, 1112, 420, 29958, 29882, 374, 759, 29914, 22633, 29899, 5481, 13, 3166, 19229, 1053, 2391, 13, 13, 3166, 5016, 2272, 1053, 23858, 29892, 304, 29918, 5200, 29888, 29892, 2216, 29892, 1394, 29892, 1126, 29892, 21092, 29918, 19227, 13, 3166, 5016, 2272, 1053, 2089, 408, 5016, 2272, 29918, 4541, 13, 3166, 5016, 2272, 1053, 1565, 408, 5016, 2272, 29918, 3009, 13, 13, 3166, 1371, 414, 29889, 13338, 29918, 20907, 1053, 679, 29918, 18816, 29918, 4537, 13, 3166, 1371, 414, 29889, 6550, 29918, 20907, 1053, 3107, 13, 3166, 19510, 29889, 13338, 1053, 1222, 558, 29892, 27662, 11746, 29892, 9681, 29892, 18912, 29892, 853, 653, 11746, 13, 3166, 13755, 29889, 1730, 2105, 1053, 5741, 2105, 13, 13, 13, 1990, 10667, 2272, 18545, 29898, 6116, 2105, 1125, 13, 1678, 822, 6493, 29918, 19541, 29918, 459, 29898, 1311, 29892, 7581, 29918, 459, 29901, 29933, 262, 11746, 1125, 13, 4706, 4974, 7581, 29918, 459, 29889, 978, 297, 525, 29930, 23661, 742, 851, 29898, 19541, 29918, 459, 29897, 13, 4706, 565, 7581, 29918, 459, 29889, 978, 1275, 525, 29922, 2396, 13, 9651, 4365, 29892, 954, 353, 679, 29918, 18816, 29918, 4537, 29898, 19541, 29918, 459, 29897, 13, 9651, 4974, 954, 1275, 9681, 29898, 29896, 511, 851, 29898, 1949, 29897, 13, 9651, 5016, 2272, 29918, 7728, 353, 23858, 29898, 18816, 29889, 978, 29897, 13, 9651, 736, 5016, 2272, 29918, 7728, 13, 13, 4706, 565, 7581, 29918, 459, 29889, 978, 1275, 525, 29930, 2396, 13, 9651, 736, 1583, 29889, 13369, 29898, 19541, 29918, 459, 29889, 1191, 29896, 29897, 669, 1583, 29889, 13369, 29898, 19541, 29918, 459, 29889, 1191, 29906, 29897, 13, 13, 4706, 565, 7581, 29918, 459, 29889, 978, 1275, 525, 29974, 2396, 13, 9651, 736, 1583, 29889, 13369, 29898, 19541, 29918, 459, 29889, 1191, 29896, 29897, 891, 1583, 29889, 13369, 29898, 19541, 29918, 459, 29889, 1191, 29906, 29897, 13, 13, 1678, 822, 6493, 29918, 11227, 29898, 1311, 29892, 6120, 29918, 3075, 29901, 24693, 1125, 13, 4706, 736, 313, 11967, 2272, 29918, 4541, 29892, 5016, 2272, 29918, 3009, 9601, 11227, 29918, 3075, 1360, 24693, 29898, 5574, 4638, 13, 13, 1678, 822, 6493, 29918, 348, 653, 29918, 459, 29898, 1311, 29892, 443, 653, 29918, 459, 29901, 2525, 653, 11746, 1125, 13, 4706, 4974, 443, 653, 29918, 459, 29889, 978, 1275, 525, 29991, 742, 851, 29898, 348, 653, 29918, 459, 29897, 13, 4706, 736, 3695, 1311, 29889, 13369, 29898, 348, 653, 29918, 459, 29889, 1191, 29897, 13, 29937, 1095, 310, 10667, 2272, 18545, 13, 13, 13, 1753, 304, 29918, 5200, 29888, 29918, 842, 29898, 22992, 29918, 13338, 29901, 21176, 29897, 1599, 2391, 29961, 1293, 29961, 21176, 5262, 29901, 13, 1678, 5016, 2272, 29918, 22992, 29918, 13338, 353, 21092, 29918, 19227, 29898, 25548, 2272, 18545, 2141, 13369, 29898, 22992, 29918, 13338, 876, 29871, 396, 278, 12747, 2400, 817, 445, 421, 3601, 572, 1598, 29952, 13, 13, 1678, 565, 5016, 2272, 29918, 22992, 29918, 13338, 1275, 5016, 2272, 29918, 3009, 29901, 13, 4706, 736, 518, 2636, 29962, 13, 1678, 565, 5016, 2272, 29918, 22992, 29918, 13338, 1275, 5016, 2272, 29918, 4541, 29901, 13, 4706, 736, 5159, 13, 13, 1678, 270, 29876, 29888, 29918, 11967, 2272, 29918, 22992, 29918, 13338, 353, 304, 29918, 5200, 29888, 29898, 11967, 2272, 29918, 22992, 29918, 13338, 29892, 21092, 29922, 5574, 29897, 13, 1678, 13630, 267, 353, 903, 657, 29918, 29883, 431, 267, 29898, 5200, 29888, 29918, 11967, 2272, 29918, 22992, 29918, 13338, 29897, 13, 1678, 13630, 267, 29918, 1761, 353, 5159, 13, 1678, 363, 28704, 297, 13630, 267, 29901, 13, 4706, 4631, 1338, 353, 903, 657, 29918, 20889, 1338, 29898, 29883, 4003, 29897, 13, 4706, 17761, 29918, 1761, 353, 5159, 13, 4706, 363, 301, 297, 4631, 1338, 29901, 13, 9651, 565, 338, 8758, 29898, 29880, 29892, 2216, 1125, 13, 18884, 17761, 29918, 1761, 29889, 4397, 29898, 30022, 7728, 29898, 710, 29898, 29880, 29889, 5085, 29961, 29900, 29962, 4961, 259, 396, 372, 881, 1596, 967, 1024, 636, 13, 9651, 1683, 29901, 13, 18884, 17761, 29918, 1761, 29889, 4397, 29898, 7728, 29898, 710, 29898, 29880, 4961, 29871, 396, 372, 881, 1596, 967, 1024, 636, 13, 4706, 13630, 267, 29918, 1761, 29889, 4397, 29898, 11030, 29918, 1761, 29897, 13, 1678, 736, 13630, 267, 29918, 1761, 13, 13, 13, 1753, 903, 657, 29918, 29883, 431, 267, 29898, 5200, 29888, 29918, 13338, 29897, 1599, 18761, 29901, 13, 1678, 4974, 270, 29876, 29888, 29918, 13338, 451, 297, 313, 11967, 2272, 29918, 3009, 29892, 5016, 2272, 29918, 4541, 29897, 13, 1678, 565, 338, 8758, 29898, 5200, 29888, 29918, 13338, 29892, 1394, 1125, 13, 4706, 736, 270, 29876, 29888, 29918, 13338, 29889, 5085, 13, 1678, 736, 270, 29876, 29888, 29918, 13338, 29892, 13, 13, 13, 1753, 903, 657, 29918, 20889, 1338, 29898, 13338, 29897, 1599, 18761, 29901, 13, 1678, 565, 338, 8758, 29898, 13338, 29892, 1394, 29897, 470, 338, 8758, 29898, 13338, 29892, 1126, 1125, 13, 4706, 736, 22010, 29889, 5085, 13, 1678, 4974, 338, 8758, 29898, 13338, 29892, 313, 3664, 29892, 23858, 8243, 851, 29898, 13338, 17255, 1990, 1649, 29897, 13, 1678, 736, 22010, 29892, 29871, 396, 18761, 13, 2 ]
src/data/definitions.py
tamarakatic/patient_survival_prediction
0
1610246
<reponame>tamarakatic/patient_survival_prediction import os file_path = os.path.dirname(os.path.abspath(__file__)) ROOT_PATH = os.path.dirname(os.path.dirname(file_path)) TRAIN_RAW = os.path.join(ROOT_PATH, 'data/raw/training_v2.csv') TEST_RAW = os.path.join(ROOT_PATH, 'data/raw/unlabeled.csv') TRAIN_PROCESS = os.path.join(ROOT_PATH, 'data/processed/training_v2.csv') TEST_PROCESS = os.path.join(ROOT_PATH, 'data/processed/unlabeled.csv') SOLUTION_TEMPLATE = os.path.join(ROOT_PATH, 'data/raw/solution_template.csv')
[ 1, 529, 276, 1112, 420, 29958, 29873, 8715, 557, 2454, 29914, 5031, 993, 29918, 7610, 29894, 2561, 29918, 11965, 2463, 13, 5215, 2897, 13, 13, 1445, 29918, 2084, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 370, 1028, 493, 22168, 1445, 1649, 876, 13, 21289, 29918, 10145, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 25721, 29898, 1445, 29918, 2084, 876, 13, 13, 29911, 4717, 1177, 29918, 4717, 29956, 353, 2897, 29889, 2084, 29889, 7122, 29898, 21289, 29918, 10145, 29892, 525, 1272, 29914, 1610, 29914, 26495, 29918, 29894, 29906, 29889, 7638, 1495, 13, 18267, 29918, 4717, 29956, 353, 2897, 29889, 2084, 29889, 7122, 29898, 21289, 29918, 10145, 29892, 525, 1272, 29914, 1610, 29914, 348, 29880, 24025, 29889, 7638, 1495, 13, 13, 13, 29911, 4717, 1177, 29918, 8618, 23524, 353, 2897, 29889, 2084, 29889, 7122, 29898, 21289, 29918, 10145, 29892, 525, 1272, 29914, 5014, 287, 29914, 26495, 29918, 29894, 29906, 29889, 7638, 1495, 13, 18267, 29918, 8618, 23524, 353, 2897, 29889, 2084, 29889, 7122, 29898, 21289, 29918, 10145, 29892, 525, 1272, 29914, 5014, 287, 29914, 348, 29880, 24025, 29889, 7638, 1495, 13, 29903, 5607, 2692, 2725, 29918, 4330, 3580, 29931, 3040, 353, 2897, 29889, 2084, 29889, 7122, 29898, 21289, 29918, 10145, 29892, 525, 1272, 29914, 1610, 29914, 2929, 918, 29918, 6886, 29889, 7638, 1495, 13, 2 ]
tests/unit_tests/test_system_program.py
524119574/solana-py
0
45877
"""Unit tests for solana.system_program.""" import solana.system_program as sp from solana.account import Account def test_transfer(): """Test creating a transaction for transfer.""" params = sp.TransferParams(from_pubkey=Account().public_key(), to_pubkey=Account().public_key(), lamports=123) txn = sp.transfer(params) assert len(txn.instructions) == 1 assert sp.decode_transfer(txn.instructions[0]) == params
[ 1, 9995, 8325, 6987, 363, 899, 1648, 29889, 5205, 29918, 8860, 1213, 15945, 13, 5215, 899, 1648, 29889, 5205, 29918, 8860, 408, 805, 13, 3166, 899, 1648, 29889, 10149, 1053, 16535, 13, 13, 13, 1753, 1243, 29918, 3286, 571, 7295, 13, 1678, 9995, 3057, 4969, 263, 10804, 363, 6782, 1213, 15945, 13, 1678, 8636, 353, 805, 29889, 4300, 571, 9629, 29898, 3166, 29918, 5467, 1989, 29922, 10601, 2141, 3597, 29918, 1989, 3285, 304, 29918, 5467, 1989, 29922, 10601, 2141, 3597, 29918, 1989, 3285, 301, 314, 4011, 29922, 29896, 29906, 29941, 29897, 13, 1678, 25568, 29876, 353, 805, 29889, 3286, 571, 29898, 7529, 29897, 13, 1678, 4974, 7431, 29898, 7508, 29876, 29889, 2611, 582, 1953, 29897, 1275, 29871, 29896, 13, 1678, 4974, 805, 29889, 13808, 29918, 3286, 571, 29898, 7508, 29876, 29889, 2611, 582, 1953, 29961, 29900, 2314, 1275, 8636, 13, 2 ]
src/split_data.py
sunsiche/DSCI522-2020-g22
0
29706
# author: <NAME> # date: 2020-11-25 """ This script Splits the raw cleaned data to train and test splits based on the user input and saves them into two separate csv files Usage: clean_data.py --input_file_path=<input_file_path> --saving_path_train=<saving_path_train> --saving_path_test=<saving_path_test> --test_size=<test_size> Options: --input_file_path=<file_path> Path to the cleaned input data file --saving_path_train=<saving_path_train> Path the training data file must be saved as csv file --saving_path_test=<saving_path_test> Path the testing data file must be saved as csv file --test_size=<saving_path_test> The proportion of test data to all the data. must be between 0 and 1. """ import pandas as pd from docopt import docopt from sklearn.model_selection import train_test_split opt = docopt(__doc__) def main(input_file_path, saving_path_train, saving_path_test, test_size): """ The main function of script which splits the cleaned data to train and test portions for the predictive model Args: input_file_path (string): the file path to cleaned data file saving_path_train (string): the file path the script will save the train data to the csv file. saving_path_test (string): the file path the script will save the test data to the csv file. test_size (float) : the test portion of the data. must be between 0 and 1. Returns: 0 if main was successful -1 if main failed. """ # read in data try: df = pd.read_csv(input_file_path) except Exception as e: print(f"The script failed to open the cleaned data file with the error {e}") return -1 # Check test size is valid try: test_size = float(test_size) if test_size < 0 or test_size > 1: print("The test_size argument must be between 0 and 1") return -1 except: print("The test_size argument must be a numeric number") return -1 # Split dataframe try: train_data, test_data = train_test_split( df, test_size=test_size, random_state=123 ) except Exception as e: print(f"The script failed to split data with error {e}") return -1 # Save data try: # save train portion train_data.to_csv(saving_path_train, index_label=False, index=False) # save test portion test_data.to_csv(saving_path_test, index_label=False, index=False) except Exception as e: print(f"The script failed to save the save train or test with the error {e}") return -1 return 0 if __name__ == "__main__": main( opt["--input_file_path"], opt["--saving_path_train"], opt["--saving_path_test"], opt["--test_size"], )
[ 1, 396, 4148, 29901, 529, 5813, 29958, 13, 29937, 2635, 29901, 29871, 29906, 29900, 29906, 29900, 29899, 29896, 29896, 29899, 29906, 29945, 13, 13, 15945, 29908, 13, 4013, 2471, 317, 572, 1169, 278, 10650, 5941, 287, 848, 304, 7945, 322, 1243, 8536, 1169, 13, 6707, 373, 278, 1404, 1881, 322, 27401, 963, 964, 1023, 5004, 11799, 2066, 13, 13, 27573, 29901, 5941, 29918, 1272, 29889, 2272, 1192, 2080, 29918, 1445, 29918, 2084, 29922, 29966, 2080, 29918, 1445, 29918, 2084, 29958, 29871, 1192, 29879, 5555, 29918, 2084, 29918, 14968, 29922, 29966, 29879, 5555, 29918, 2084, 29918, 14968, 29958, 29871, 1192, 29879, 5555, 29918, 2084, 29918, 1688, 29922, 29966, 29879, 5555, 29918, 2084, 29918, 1688, 29958, 29871, 1192, 1688, 29918, 2311, 29922, 29966, 1688, 29918, 2311, 29958, 13, 13, 5856, 29901, 13, 489, 2080, 29918, 1445, 29918, 2084, 29922, 29966, 1445, 29918, 2084, 29958, 259, 10802, 304, 278, 5941, 287, 1881, 848, 934, 13, 489, 29879, 5555, 29918, 2084, 29918, 14968, 29922, 29966, 29879, 5555, 29918, 2084, 29918, 14968, 29958, 29871, 10802, 278, 6694, 848, 934, 1818, 367, 7160, 408, 11799, 934, 13, 489, 29879, 5555, 29918, 2084, 29918, 1688, 29922, 29966, 29879, 5555, 29918, 2084, 29918, 1688, 29958, 29871, 10802, 278, 6724, 848, 934, 1818, 367, 7160, 408, 11799, 934, 13, 489, 1688, 29918, 2311, 29922, 29966, 29879, 5555, 29918, 2084, 29918, 1688, 29958, 29871, 450, 18618, 310, 1243, 848, 304, 599, 278, 848, 29889, 1818, 367, 1546, 29871, 29900, 322, 29871, 29896, 29889, 13, 15945, 29908, 13, 13, 5215, 11701, 408, 10518, 13, 3166, 437, 1111, 415, 1053, 437, 1111, 415, 13, 3166, 2071, 19668, 29889, 4299, 29918, 21731, 1053, 7945, 29918, 1688, 29918, 5451, 13, 13, 3670, 353, 437, 1111, 415, 22168, 1514, 1649, 29897, 13, 13, 13, 1753, 1667, 29898, 2080, 29918, 1445, 29918, 2084, 29892, 14238, 29918, 2084, 29918, 14968, 29892, 14238, 29918, 2084, 29918, 1688, 29892, 1243, 29918, 2311, 1125, 13, 1678, 9995, 13, 1678, 450, 1667, 740, 310, 2471, 13, 1678, 607, 8536, 1169, 278, 5941, 287, 848, 304, 7945, 322, 1243, 13, 1678, 2011, 1080, 363, 278, 8500, 573, 1904, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 1881, 29918, 1445, 29918, 2084, 313, 1807, 1125, 278, 934, 2224, 304, 5941, 287, 848, 934, 13, 4706, 14238, 29918, 2084, 29918, 14968, 313, 1807, 1125, 278, 934, 2224, 278, 2471, 674, 13, 4706, 4078, 278, 7945, 848, 304, 278, 11799, 934, 29889, 13, 4706, 14238, 29918, 2084, 29918, 1688, 313, 1807, 1125, 278, 934, 2224, 278, 2471, 674, 13, 4706, 4078, 278, 1243, 848, 304, 278, 11799, 934, 29889, 13, 4706, 1243, 29918, 2311, 313, 7411, 29897, 584, 278, 1243, 11910, 310, 278, 848, 29889, 1818, 367, 13, 4706, 1546, 29871, 29900, 322, 29871, 29896, 29889, 13, 13, 1678, 16969, 29901, 13, 268, 29900, 565, 1667, 471, 9150, 13, 1678, 448, 29896, 565, 1667, 5229, 29889, 13, 1678, 9995, 13, 1678, 396, 1303, 297, 848, 13, 1678, 1018, 29901, 13, 4706, 4489, 353, 10518, 29889, 949, 29918, 7638, 29898, 2080, 29918, 1445, 29918, 2084, 29897, 13, 1678, 5174, 8960, 408, 321, 29901, 13, 4706, 1596, 29898, 29888, 29908, 1576, 2471, 5229, 304, 1722, 278, 5941, 287, 848, 934, 411, 278, 1059, 426, 29872, 27195, 13, 4706, 736, 448, 29896, 13, 13, 1678, 396, 5399, 1243, 2159, 338, 2854, 13, 1678, 1018, 29901, 13, 4706, 1243, 29918, 2311, 353, 5785, 29898, 1688, 29918, 2311, 29897, 13, 4706, 565, 1243, 29918, 2311, 529, 29871, 29900, 470, 1243, 29918, 2311, 1405, 29871, 29896, 29901, 13, 9651, 1596, 703, 1576, 1243, 29918, 2311, 2980, 1818, 367, 1546, 29871, 29900, 322, 29871, 29896, 1159, 13, 9651, 736, 448, 29896, 13, 1678, 5174, 29901, 13, 4706, 1596, 703, 1576, 1243, 29918, 2311, 2980, 1818, 367, 263, 16985, 1353, 1159, 13, 4706, 736, 448, 29896, 13, 13, 1678, 396, 26178, 12205, 13, 1678, 1018, 29901, 13, 4706, 7945, 29918, 1272, 29892, 1243, 29918, 1272, 353, 7945, 29918, 1688, 29918, 5451, 29898, 13, 9651, 4489, 29892, 1243, 29918, 2311, 29922, 1688, 29918, 2311, 29892, 4036, 29918, 3859, 29922, 29896, 29906, 29941, 13, 4706, 1723, 13, 1678, 5174, 8960, 408, 321, 29901, 13, 4706, 1596, 29898, 29888, 29908, 1576, 2471, 5229, 304, 6219, 848, 411, 1059, 426, 29872, 27195, 13, 4706, 736, 448, 29896, 13, 13, 1678, 396, 16913, 848, 13, 13, 1678, 1018, 29901, 13, 4706, 396, 4078, 7945, 11910, 13, 4706, 7945, 29918, 1272, 29889, 517, 29918, 7638, 29898, 29879, 5555, 29918, 2084, 29918, 14968, 29892, 2380, 29918, 1643, 29922, 8824, 29892, 2380, 29922, 8824, 29897, 13, 4706, 396, 4078, 1243, 11910, 13, 4706, 1243, 29918, 1272, 29889, 517, 29918, 7638, 29898, 29879, 5555, 29918, 2084, 29918, 1688, 29892, 2380, 29918, 1643, 29922, 8824, 29892, 2380, 29922, 8824, 29897, 13, 1678, 5174, 8960, 408, 321, 29901, 13, 4706, 1596, 29898, 29888, 29908, 1576, 2471, 5229, 304, 4078, 278, 4078, 7945, 470, 1243, 411, 278, 1059, 426, 29872, 27195, 13, 4706, 736, 448, 29896, 13, 1678, 736, 29871, 29900, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 1667, 29898, 13, 4706, 3523, 3366, 489, 2080, 29918, 1445, 29918, 2084, 12436, 13, 4706, 3523, 3366, 489, 29879, 5555, 29918, 2084, 29918, 14968, 12436, 13, 4706, 3523, 3366, 489, 29879, 5555, 29918, 2084, 29918, 1688, 12436, 13, 4706, 3523, 3366, 489, 1688, 29918, 2311, 12436, 13, 1678, 1723, 13, 2 ]
venv/Lib/site-packages/statsmodels/stats/tests/test_statstools.py
EkremBayar/bayar
6,931
129645
<gh_stars>1000+ # TODO: Test robust skewness # TODO: Test robust kurtosis import numpy as np import pandas as pd from numpy.testing import (assert_almost_equal, assert_raises, assert_equal, assert_allclose) from statsmodels.stats._adnorm import normal_ad from statsmodels.stats.stattools import (omni_normtest, jarque_bera, durbin_watson, _medcouple_1d, medcouple, robust_kurtosis, robust_skewness) # a random array, rounded to 4 decimals x = np.array([-0.1184, -1.3403, 0.0063, -0.612, -0.3869, -0.2313, -2.8485, -0.2167, 0.4153, 1.8492, -0.3706, 0.9726, -0.1501, -0.0337, -1.4423, 1.2489, 0.9182, -0.2331, -0.6182, 0.183]) def test_durbin_watson(): #benchmark values from R car::durbinWatsonTest(x) #library("car") #> durbinWatsonTest(x) #[1] 1.95298958377419 #> durbinWatsonTest(x**2) #[1] 1.848802400319998 #> durbinWatsonTest(x[2:20]+0.5*x[1:19]) #[1] 1.09897993228779 #> durbinWatsonTest(x[2:20]+0.8*x[1:19]) #[1] 0.937241876707273 #> durbinWatsonTest(x[2:20]+0.9*x[1:19]) #[1] 0.921488912587806 st_R = 1.95298958377419 assert_almost_equal(durbin_watson(x), st_R, 14) st_R = 1.848802400319998 assert_almost_equal(durbin_watson(x**2), st_R, 14) st_R = 1.09897993228779 assert_almost_equal(durbin_watson(x[1:] + 0.5 * x[:-1]), st_R, 14) st_R = 0.937241876707273 assert_almost_equal(durbin_watson(x[1:] + 0.8 * x[:-1]), st_R, 14) st_R = 0.921488912587806 assert_almost_equal(durbin_watson(x[1:] + 0.9 * x[:-1]), st_R, 14) X = np.array([x, x]) st_R = 1.95298958377419 assert_almost_equal(durbin_watson(X, axis=1), np.array([st_R, st_R]), 14) assert_almost_equal(durbin_watson(X.T, axis=0), np.array([st_R, st_R]), 14) def test_omni_normtest(): #tests against R fBasics from scipy import stats st_pv_R = np.array( [[3.994138321207883, -1.129304302161460, 1.648881473704978], [0.1357325110375005, 0.2587694866795507, 0.0991719192710234]]) nt = omni_normtest(x) assert_almost_equal(nt, st_pv_R[:, 0], 14) st = stats.skewtest(x) assert_almost_equal(st, st_pv_R[:, 1], 14) kt = stats.kurtosistest(x) assert_almost_equal(kt, st_pv_R[:, 2], 11) st_pv_R = np.array( [[34.523210399523926, 4.429509162503833, 3.860396220444025], [3.186985686465249e-08, 9.444780064482572e-06, 1.132033129378485e-04]]) x2 = x**2 #TODO: fix precision in these test with relative tolerance nt = omni_normtest(x2) assert_almost_equal(nt, st_pv_R[:, 0], 12) st = stats.skewtest(x2) assert_almost_equal(st, st_pv_R[:, 1], 12) kt = stats.kurtosistest(x2) assert_almost_equal(kt, st_pv_R[:, 2], 12) def test_omni_normtest_axis(reset_randomstate): #test axis of omni_normtest x = np.random.randn(25, 3) nt1 = omni_normtest(x) nt2 = omni_normtest(x, axis=0) nt3 = omni_normtest(x.T, axis=1) assert_almost_equal(nt2, nt1, decimal=13) assert_almost_equal(nt3, nt1, decimal=13) def test_jarque_bera(): #tests against R fBasics st_pv_R = np.array([1.9662677226861689, 0.3741367669648314]) jb = jarque_bera(x)[:2] assert_almost_equal(jb, st_pv_R, 14) st_pv_R = np.array([78.329987305556, 0.000000000000]) jb = jarque_bera(x**2)[:2] assert_almost_equal(jb, st_pv_R, 13) st_pv_R = np.array([5.7135750796706670, 0.0574530296971343]) jb = jarque_bera(np.log(x**2))[:2] assert_almost_equal(jb, st_pv_R, 14) st_pv_R = np.array([2.6489315748495761, 0.2659449923067881]) jb = jarque_bera(np.exp(-x**2))[:2] assert_almost_equal(jb, st_pv_R, 14) def test_shapiro(): #tests against R fBasics #testing scipy.stats from scipy.stats import shapiro st_pv_R = np.array([0.939984787255526, 0.239621898000460]) sh = shapiro(x) assert_almost_equal(sh, st_pv_R, 4) #st is ok -7.15e-06, pval agrees at -3.05e-10 st_pv_R = np.array([5.799574255943298e-01, 1.838456834681376e-06 * 1e4]) sh = shapiro(x**2) * np.array([1, 1e4]) assert_almost_equal(sh, st_pv_R, 5) st_pv_R = np.array([0.91730442643165588, 0.08793704167882448]) sh = shapiro(np.log(x**2)) assert_almost_equal(sh, st_pv_R, 5) #diff is [ 9.38773155e-07, 5.48221246e-08] st_pv_R = np.array([0.818361863493919373, 0.001644620895206969]) sh = shapiro(np.exp(-x**2)) assert_almost_equal(sh, st_pv_R, 5) def test_adnorm(): #tests against R fBasics st_pv = [] st_pv_R = np.array([0.5867235358882148, 0.1115380760041617]) ad = normal_ad(x) assert_almost_equal(ad, st_pv_R, 12) st_pv.append(st_pv_R) st_pv_R = np.array([2.976266267594575e+00, 8.753003709960645e-08]) ad = normal_ad(x**2) assert_almost_equal(ad, st_pv_R, 11) st_pv.append(st_pv_R) st_pv_R = np.array([0.4892557856308528, 0.1968040759316307]) ad = normal_ad(np.log(x**2)) assert_almost_equal(ad, st_pv_R, 12) st_pv.append(st_pv_R) st_pv_R = np.array([1.4599014654282669312, 0.0006380009232897535]) ad = normal_ad(np.exp(-x**2)) assert_almost_equal(ad, st_pv_R, 12) st_pv.append(st_pv_R) ad = normal_ad(np.column_stack((x, x**2, np.log(x**2), np.exp(-x**2))).T, axis=1) assert_almost_equal(ad, np.column_stack(st_pv), 11) def test_durbin_watson_pandas(reset_randomstate): x = np.random.randn(50) x_series = pd.Series(x) assert_almost_equal(durbin_watson(x), durbin_watson(x_series), decimal=13) class TestStattools(object): @classmethod def setup_class(cls): x = np.random.standard_normal(1000) e1, e2, e3, e4, e5, e6, e7 = np.percentile(x, (12.5, 25.0, 37.5, 50.0, 62.5, 75.0, 87.5)) c05, c50, c95 = np.percentile(x, (5.0, 50.0, 95.0)) f025, f25, f75, f975 = np.percentile(x, (2.5, 25.0, 75.0, 97.5)) mean = np.mean kr1 = mean(((x - mean(x)) / np.std(x))**4.0) - 3.0 kr2 = ((e7 - e5) + (e3 - e1)) / (e6 - e2) - 1.2330951154852172 kr3 = (mean(x[x > c95]) - mean(x[x < c05])) / (mean(x[x > c50]) - mean(x[x < c50])) - 2.5852271228708048 kr4 = (f975 - f025) / (f75 - f25) - 2.9058469516701639 cls.kurtosis_x = x cls.expected_kurtosis = np.array([kr1, kr2, kr3, kr4]) cls.kurtosis_constants = np.array([3.0,1.2330951154852172,2.5852271228708048,2.9058469516701639]) def test_medcouple_no_axis(self): x = np.reshape(np.arange(100.0), (50, 2)) mc = medcouple(x, axis=None) assert_almost_equal(mc, medcouple(x.ravel())) def test_medcouple_1d(self): x = np.reshape(np.arange(100.0),(50,2)) assert_raises(ValueError, _medcouple_1d, x) def test_medcouple_symmetric(self): mc = medcouple(np.arange(5.0)) assert_almost_equal(mc, 0) def test_medcouple_nonzero(self): mc = medcouple(np.array([1, 2, 7, 9, 10.0])) assert_almost_equal(mc, -0.3333333) def test_medcouple_int(self): # GH 4243 mc1 = medcouple(np.array([1, 2, 7, 9, 10])) mc2 = medcouple(np.array([1, 2, 7, 9, 10.0])) assert_equal(mc1, mc2) def test_medcouple_symmetry(self, reset_randomstate): x = np.random.standard_normal(100) mcp = medcouple(x) mcn = medcouple(-x) assert_almost_equal(mcp + mcn, 0) def test_medcouple_ties(self, reset_randomstate): x = np.array([1, 2, 2, 3, 4]) mc = medcouple(x) assert_almost_equal(mc, 1.0 / 6.0) def test_durbin_watson(self, reset_randomstate): x = np.random.standard_normal(100) dw = sum(np.diff(x)**2.0) / np.dot(x, x) assert_almost_equal(dw, durbin_watson(x)) def test_durbin_watson_2d(self, reset_randomstate): shape = (1, 10) x = np.random.standard_normal(100) dw = sum(np.diff(x)**2.0) / np.dot(x, x) x = np.tile(x[:, None], shape) assert_almost_equal(np.squeeze(dw * np.ones(shape)), durbin_watson(x)) def test_durbin_watson_3d(self, reset_randomstate): shape = (10, 1, 10) x = np.random.standard_normal(100) dw = sum(np.diff(x)**2.0) / np.dot(x, x) x = np.tile(x[None, :, None], shape) assert_almost_equal(np.squeeze(dw * np.ones(shape)), durbin_watson(x, axis=1)) def test_robust_skewness_1d(self): x = np.arange(21.0) sk = robust_skewness(x) assert_almost_equal(np.array(sk), np.zeros(4)) def test_robust_skewness_1d_2d(self, reset_randomstate): x = np.random.randn(21) y = x[:, None] sk_x = robust_skewness(x) sk_y = robust_skewness(y, axis=None) assert_almost_equal(np.array(sk_x), np.array(sk_y)) def test_robust_skewness_symmetric(self, reset_randomstate): x = np.random.standard_normal(100) x = np.hstack([x, np.zeros(1), -x]) sk = robust_skewness(x) assert_almost_equal(np.array(sk), np.zeros(4)) def test_robust_skewness_3d(self, reset_randomstate): x = np.random.standard_normal(100) x = np.hstack([x, np.zeros(1), -x]) x = np.tile(x, (10, 10, 1)) sk_3d = robust_skewness(x, axis=2) result = np.zeros((10, 10)) for sk in sk_3d: assert_almost_equal(sk, result) def test_robust_skewness_4(self, reset_randomstate): x = np.random.standard_normal(1000) x[x > 0] *= 3 m = np.median(x) s = x.std(ddof=0) expected = (x.mean() - m) / s _, _, _, sk4 = robust_skewness(x) assert_allclose(expected, sk4) def test_robust_kurtosis_1d_2d(self, reset_randomstate): x = np.random.randn(100) y = x[:, None] kr_x = np.array(robust_kurtosis(x)) kr_y = np.array(robust_kurtosis(y, axis=None)) assert_almost_equal(kr_x, kr_y) def test_robust_kurtosis(self): x = self.kurtosis_x assert_almost_equal(np.array(robust_kurtosis(x)), self.expected_kurtosis) def test_robust_kurtosis_3d(self): x = np.tile(self.kurtosis_x, (10, 10, 1)) kurtosis = np.array(robust_kurtosis(x, axis=2)) for i, r in enumerate(self.expected_kurtosis): assert_almost_equal(r * np.ones((10, 10)), kurtosis[i]) def test_robust_kurtosis_excess_false(self): x = self.kurtosis_x expected = self.expected_kurtosis + self.kurtosis_constants kurtosis = np.array(robust_kurtosis(x, excess=False)) assert_almost_equal(expected, kurtosis) def test_robust_kurtosis_ab(self): # Test custom alpha, beta in kr3 x = self.kurtosis_x alpha, beta = (10.0, 45.0) kurtosis = robust_kurtosis(self.kurtosis_x, ab=(alpha,beta), excess=False) num = np.mean(x[x>np.percentile(x,100.0 - alpha)]) - np.mean(x[x<np.percentile(x,alpha)]) denom = np.mean(x[x>np.percentile(x,100.0 - beta)]) - np.mean(x[x<np.percentile(x,beta)]) assert_almost_equal(kurtosis[2], num/denom) def test_robust_kurtosis_dg(self): # Test custom delta, gamma in kr4 x = self.kurtosis_x delta, gamma = (10.0, 45.0) kurtosis = robust_kurtosis(self.kurtosis_x, dg=(delta,gamma), excess=False) q = np.percentile(x,[delta, 100.0-delta, gamma, 100.0-gamma]) assert_almost_equal(kurtosis[3], (q[1] - q[0]) / (q[3] - q[2]))
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29900, 29974, 13, 29937, 14402, 29901, 4321, 16424, 18109, 1233, 404, 13, 29937, 14402, 29901, 4321, 16424, 413, 4227, 19263, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 3166, 12655, 29889, 13424, 1053, 313, 9294, 29918, 284, 3242, 29918, 11745, 29892, 4974, 29918, 336, 4637, 29892, 4974, 29918, 11745, 29892, 13, 462, 965, 4974, 29918, 497, 5358, 29897, 13, 13, 3166, 22663, 9794, 29889, 16202, 3032, 328, 12324, 1053, 4226, 29918, 328, 13, 3166, 22663, 9794, 29889, 16202, 29889, 6112, 8504, 1053, 313, 290, 1240, 29918, 12324, 1688, 29892, 14631, 802, 29918, 495, 29874, 29892, 13, 462, 462, 308, 1411, 2109, 29918, 29893, 271, 1100, 29892, 903, 2168, 16589, 552, 29918, 29896, 29881, 29892, 1612, 16589, 552, 29892, 13, 462, 462, 308, 16424, 29918, 29895, 4227, 19263, 29892, 16424, 29918, 26050, 1233, 404, 29897, 13, 13, 29937, 263, 4036, 1409, 29892, 28240, 304, 29871, 29946, 1602, 326, 1338, 13, 29916, 353, 7442, 29889, 2378, 4197, 29899, 29900, 29889, 29896, 29896, 29947, 29946, 29892, 448, 29896, 29889, 29941, 29946, 29900, 29941, 29892, 29871, 29900, 29889, 29900, 29900, 29953, 29941, 29892, 448, 29900, 29889, 29953, 29896, 29906, 29892, 448, 29900, 29889, 29941, 29947, 29953, 29929, 29892, 448, 29900, 29889, 29906, 29941, 29896, 29941, 29892, 448, 29906, 29889, 29947, 29946, 29947, 29945, 29892, 13, 795, 448, 29900, 29889, 29906, 29896, 29953, 29955, 29892, 29871, 29900, 29889, 29946, 29896, 29945, 29941, 29892, 29871, 29896, 29889, 29947, 29946, 29929, 29906, 29892, 448, 29900, 29889, 29941, 29955, 29900, 29953, 29892, 29871, 29900, 29889, 29929, 29955, 29906, 29953, 29892, 448, 29900, 29889, 29896, 29945, 29900, 29896, 29892, 448, 29900, 29889, 29900, 29941, 29941, 29955, 29892, 13, 795, 448, 29896, 29889, 29946, 29946, 29906, 29941, 29892, 29871, 29896, 29889, 29906, 29946, 29947, 29929, 29892, 29871, 29900, 29889, 29929, 29896, 29947, 29906, 29892, 448, 29900, 29889, 29906, 29941, 29941, 29896, 29892, 448, 29900, 29889, 29953, 29896, 29947, 29906, 29892, 29871, 29900, 29889, 29896, 29947, 29941, 2314, 13, 13, 13, 1753, 1243, 29918, 29881, 332, 2109, 29918, 29893, 271, 1100, 7295, 13, 1678, 396, 1785, 16580, 1819, 515, 390, 1559, 1057, 29881, 332, 2109, 29956, 271, 1100, 3057, 29898, 29916, 29897, 13, 1678, 396, 5258, 703, 4287, 1159, 13, 1678, 20454, 1411, 2109, 29956, 271, 1100, 3057, 29898, 29916, 29897, 13, 1678, 14330, 29896, 29962, 29871, 29896, 29889, 29929, 29945, 29906, 29929, 29947, 29929, 29945, 29947, 29941, 29955, 29955, 29946, 29896, 29929, 13, 1678, 20454, 1411, 2109, 29956, 271, 1100, 3057, 29898, 29916, 1068, 29906, 29897, 13, 1678, 14330, 29896, 29962, 29871, 29896, 29889, 29947, 29946, 29947, 29947, 29900, 29906, 29946, 29900, 29900, 29941, 29896, 29929, 29929, 29929, 29947, 13, 1678, 20454, 1411, 2109, 29956, 271, 1100, 3057, 29898, 29916, 29961, 29906, 29901, 29906, 29900, 10062, 29900, 29889, 29945, 29930, 29916, 29961, 29896, 29901, 29896, 29929, 2314, 13, 1678, 14330, 29896, 29962, 29871, 29896, 29889, 29900, 29929, 29947, 29929, 29955, 29929, 29929, 29941, 29906, 29906, 29947, 29955, 29955, 29929, 13, 1678, 20454, 1411, 2109, 29956, 271, 1100, 3057, 29898, 29916, 29961, 29906, 29901, 29906, 29900, 10062, 29900, 29889, 29947, 29930, 29916, 29961, 29896, 29901, 29896, 29929, 2314, 13, 1678, 14330, 29896, 29962, 29871, 29900, 29889, 29929, 29941, 29955, 29906, 29946, 29896, 29947, 29955, 29953, 29955, 29900, 29955, 29906, 29955, 29941, 13, 1678, 20454, 1411, 2109, 29956, 271, 1100, 3057, 29898, 29916, 29961, 29906, 29901, 29906, 29900, 10062, 29900, 29889, 29929, 29930, 29916, 29961, 29896, 29901, 29896, 29929, 2314, 13, 1678, 14330, 29896, 29962, 29871, 29900, 29889, 29929, 29906, 29896, 29946, 29947, 29947, 29929, 29896, 29906, 29945, 29947, 29955, 29947, 29900, 29953, 13, 1678, 380, 29918, 29934, 353, 29871, 29896, 29889, 29929, 29945, 29906, 29929, 29947, 29929, 29945, 29947, 29941, 29955, 29955, 29946, 29896, 29929, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29881, 332, 2109, 29918, 29893, 271, 1100, 29898, 29916, 511, 380, 29918, 29934, 29892, 29871, 29896, 29946, 29897, 13, 13, 1678, 380, 29918, 29934, 353, 29871, 29896, 29889, 29947, 29946, 29947, 29947, 29900, 29906, 29946, 29900, 29900, 29941, 29896, 29929, 29929, 29929, 29947, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29881, 332, 2109, 29918, 29893, 271, 1100, 29898, 29916, 1068, 29906, 511, 380, 29918, 29934, 29892, 29871, 29896, 29946, 29897, 13, 13, 1678, 380, 29918, 29934, 353, 29871, 29896, 29889, 29900, 29929, 29947, 29929, 29955, 29929, 29929, 29941, 29906, 29906, 29947, 29955, 29955, 29929, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29881, 332, 2109, 29918, 29893, 271, 1100, 29898, 29916, 29961, 29896, 17531, 718, 29871, 29900, 29889, 29945, 334, 921, 7503, 29899, 29896, 11724, 380, 29918, 29934, 29892, 29871, 29896, 29946, 29897, 13, 13, 1678, 380, 29918, 29934, 353, 29871, 29900, 29889, 29929, 29941, 29955, 29906, 29946, 29896, 29947, 29955, 29953, 29955, 29900, 29955, 29906, 29955, 29941, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29881, 332, 2109, 29918, 29893, 271, 1100, 29898, 29916, 29961, 29896, 17531, 718, 29871, 29900, 29889, 29947, 334, 921, 7503, 29899, 29896, 11724, 380, 29918, 29934, 29892, 29871, 29896, 29946, 29897, 13, 13, 1678, 380, 29918, 29934, 353, 29871, 29900, 29889, 29929, 29906, 29896, 29946, 29947, 29947, 29929, 29896, 29906, 29945, 29947, 29955, 29947, 29900, 29953, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29881, 332, 2109, 29918, 29893, 271, 1100, 29898, 29916, 29961, 29896, 17531, 718, 29871, 29900, 29889, 29929, 334, 921, 7503, 29899, 29896, 11724, 380, 29918, 29934, 29892, 29871, 29896, 29946, 29897, 13, 13, 1678, 1060, 353, 7442, 29889, 2378, 4197, 29916, 29892, 921, 2314, 13, 1678, 380, 29918, 29934, 353, 29871, 29896, 29889, 29929, 29945, 29906, 29929, 29947, 29929, 29945, 29947, 29941, 29955, 29955, 29946, 29896, 29929, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29881, 332, 2109, 29918, 29893, 271, 1100, 29898, 29990, 29892, 9685, 29922, 29896, 511, 7442, 29889, 2378, 4197, 303, 29918, 29934, 29892, 380, 29918, 29934, 11724, 29871, 29896, 29946, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29881, 332, 2109, 29918, 29893, 271, 1100, 29898, 29990, 29889, 29911, 29892, 9685, 29922, 29900, 511, 7442, 29889, 2378, 4197, 303, 29918, 29934, 29892, 380, 29918, 29934, 11724, 29871, 29896, 29946, 29897, 13, 13, 13, 1753, 1243, 29918, 290, 1240, 29918, 12324, 1688, 7295, 13, 1678, 396, 21150, 2750, 390, 285, 9496, 1199, 13, 1678, 515, 4560, 2272, 1053, 22663, 13, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 29898, 13, 795, 5519, 29941, 29889, 29929, 29929, 29946, 29896, 29941, 29947, 29941, 29906, 29896, 29906, 29900, 29955, 29947, 29947, 29941, 29892, 448, 29896, 29889, 29896, 29906, 29929, 29941, 29900, 29946, 29941, 29900, 29906, 29896, 29953, 29896, 29946, 29953, 29900, 29892, 259, 29896, 29889, 29953, 29946, 29947, 29947, 29947, 29896, 29946, 29955, 29941, 29955, 29900, 29946, 29929, 29955, 29947, 1402, 13, 1669, 518, 29900, 29889, 29896, 29941, 29945, 29955, 29941, 29906, 29945, 29896, 29896, 29900, 29941, 29955, 29945, 29900, 29900, 29945, 29892, 29871, 29900, 29889, 29906, 29945, 29947, 29955, 29953, 29929, 29946, 29947, 29953, 29953, 29955, 29929, 29945, 29945, 29900, 29955, 29892, 29871, 29900, 29889, 29900, 29929, 29929, 29896, 29955, 29896, 29929, 29896, 29929, 29906, 29955, 29896, 29900, 29906, 29941, 29946, 24960, 13, 13, 1678, 302, 29873, 353, 2703, 1240, 29918, 12324, 1688, 29898, 29916, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 593, 29892, 380, 29918, 29886, 29894, 29918, 29934, 7503, 29892, 29871, 29900, 1402, 29871, 29896, 29946, 29897, 13, 13, 1678, 380, 353, 22663, 29889, 26050, 29893, 1688, 29898, 29916, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 303, 29892, 380, 29918, 29886, 29894, 29918, 29934, 7503, 29892, 29871, 29896, 1402, 29871, 29896, 29946, 29897, 13, 13, 1678, 413, 29873, 353, 22663, 29889, 29895, 4227, 359, 391, 342, 29898, 29916, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 1193, 29892, 380, 29918, 29886, 29894, 29918, 29934, 7503, 29892, 29871, 29906, 1402, 29871, 29896, 29896, 29897, 13, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 29898, 13, 795, 5519, 29941, 29946, 29889, 29945, 29906, 29941, 29906, 29896, 29900, 29941, 29929, 29929, 29945, 29906, 29941, 29929, 29906, 29953, 29892, 259, 29946, 29889, 29946, 29906, 29929, 29945, 29900, 29929, 29896, 29953, 29906, 29945, 29900, 29941, 29947, 29941, 29941, 29892, 259, 29941, 29889, 29947, 29953, 29900, 29941, 29929, 29953, 29906, 29906, 29900, 29946, 29946, 29946, 29900, 29906, 29945, 1402, 13, 1669, 518, 29941, 29889, 29896, 29947, 29953, 29929, 29947, 29945, 29953, 29947, 29953, 29946, 29953, 29945, 29906, 29946, 29929, 29872, 29899, 29900, 29947, 29892, 29871, 29929, 29889, 29946, 29946, 29946, 29955, 29947, 29900, 29900, 29953, 29946, 29946, 29947, 29906, 29945, 29955, 29906, 29872, 29899, 29900, 29953, 29892, 29871, 29896, 29889, 29896, 29941, 29906, 29900, 29941, 29941, 29896, 29906, 29929, 29941, 29955, 29947, 29946, 29947, 29945, 29872, 29899, 29900, 29946, 24960, 13, 13, 1678, 921, 29906, 353, 921, 1068, 29906, 13, 1678, 396, 4986, 3970, 29901, 2329, 16716, 297, 1438, 1243, 411, 6198, 20341, 749, 13, 1678, 302, 29873, 353, 2703, 1240, 29918, 12324, 1688, 29898, 29916, 29906, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 593, 29892, 380, 29918, 29886, 29894, 29918, 29934, 7503, 29892, 29871, 29900, 1402, 29871, 29896, 29906, 29897, 13, 13, 1678, 380, 353, 22663, 29889, 26050, 29893, 1688, 29898, 29916, 29906, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 303, 29892, 380, 29918, 29886, 29894, 29918, 29934, 7503, 29892, 29871, 29896, 1402, 29871, 29896, 29906, 29897, 13, 13, 1678, 413, 29873, 353, 22663, 29889, 29895, 4227, 359, 391, 342, 29898, 29916, 29906, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 1193, 29892, 380, 29918, 29886, 29894, 29918, 29934, 7503, 29892, 29871, 29906, 1402, 29871, 29896, 29906, 29897, 13, 13, 13, 1753, 1243, 29918, 290, 1240, 29918, 12324, 1688, 29918, 8990, 29898, 12071, 29918, 8172, 3859, 1125, 13, 1678, 396, 1688, 9685, 310, 2703, 1240, 29918, 12324, 1688, 13, 1678, 921, 353, 7442, 29889, 8172, 29889, 9502, 29876, 29898, 29906, 29945, 29892, 29871, 29941, 29897, 13, 1678, 302, 29873, 29896, 353, 2703, 1240, 29918, 12324, 1688, 29898, 29916, 29897, 13, 1678, 302, 29873, 29906, 353, 2703, 1240, 29918, 12324, 1688, 29898, 29916, 29892, 9685, 29922, 29900, 29897, 13, 1678, 302, 29873, 29941, 353, 2703, 1240, 29918, 12324, 1688, 29898, 29916, 29889, 29911, 29892, 9685, 29922, 29896, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 593, 29906, 29892, 302, 29873, 29896, 29892, 13677, 29922, 29896, 29941, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 593, 29941, 29892, 302, 29873, 29896, 29892, 13677, 29922, 29896, 29941, 29897, 13, 13, 13, 1753, 1243, 29918, 4758, 802, 29918, 495, 29874, 7295, 13, 1678, 396, 21150, 2750, 390, 285, 9496, 1199, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29896, 29889, 29929, 29953, 29953, 29906, 29953, 29955, 29955, 29906, 29906, 29953, 29947, 29953, 29896, 29953, 29947, 29929, 29892, 29871, 29900, 29889, 29941, 29955, 29946, 29896, 29941, 29953, 29955, 29953, 29953, 29929, 29953, 29946, 29947, 29941, 29896, 29946, 2314, 13, 1678, 432, 29890, 353, 14631, 802, 29918, 495, 29874, 29898, 29916, 29897, 7503, 29906, 29962, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 16761, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29896, 29946, 29897, 13, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29955, 29947, 29889, 29941, 29906, 29929, 29929, 29947, 29955, 29941, 29900, 29945, 29945, 29945, 29953, 29892, 29871, 29900, 29889, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 2314, 13, 1678, 432, 29890, 353, 14631, 802, 29918, 495, 29874, 29898, 29916, 1068, 29906, 29897, 7503, 29906, 29962, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 16761, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29896, 29941, 29897, 13, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29945, 29889, 29955, 29896, 29941, 29945, 29955, 29945, 29900, 29955, 29929, 29953, 29955, 29900, 29953, 29953, 29955, 29900, 29892, 29871, 29900, 29889, 29900, 29945, 29955, 29946, 29945, 29941, 29900, 29906, 29929, 29953, 29929, 29955, 29896, 29941, 29946, 29941, 2314, 13, 1678, 432, 29890, 353, 14631, 802, 29918, 495, 29874, 29898, 9302, 29889, 1188, 29898, 29916, 1068, 29906, 876, 7503, 29906, 29962, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 16761, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29896, 29946, 29897, 13, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29906, 29889, 29953, 29946, 29947, 29929, 29941, 29896, 29945, 29955, 29946, 29947, 29946, 29929, 29945, 29955, 29953, 29896, 29892, 29871, 29900, 29889, 29906, 29953, 29945, 29929, 29946, 29946, 29929, 29929, 29906, 29941, 29900, 29953, 29955, 29947, 29947, 29896, 2314, 13, 1678, 432, 29890, 353, 14631, 802, 29918, 495, 29874, 29898, 9302, 29889, 4548, 6278, 29916, 1068, 29906, 876, 7503, 29906, 29962, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 16761, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29896, 29946, 29897, 13, 13, 13, 1753, 1243, 29918, 845, 2754, 307, 7295, 13, 1678, 396, 21150, 2750, 390, 285, 9496, 1199, 13, 1678, 396, 13424, 4560, 2272, 29889, 16202, 13, 1678, 515, 4560, 2272, 29889, 16202, 1053, 528, 2754, 307, 13, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29929, 29941, 29929, 29929, 29947, 29946, 29955, 29947, 29955, 29906, 29945, 29945, 29945, 29906, 29953, 29892, 29871, 29900, 29889, 29906, 29941, 29929, 29953, 29906, 29896, 29947, 29929, 29947, 29900, 29900, 29900, 29946, 29953, 29900, 2314, 13, 1678, 528, 353, 528, 2754, 307, 29898, 29916, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 845, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29946, 29897, 13, 13, 1678, 396, 303, 338, 3431, 448, 29955, 29889, 29896, 29945, 29872, 29899, 29900, 29953, 29892, 282, 791, 8571, 267, 472, 448, 29941, 29889, 29900, 29945, 29872, 29899, 29896, 29900, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29945, 29889, 29955, 29929, 29929, 29945, 29955, 29946, 29906, 29945, 29945, 29929, 29946, 29941, 29906, 29929, 29947, 29872, 29899, 29900, 29896, 29892, 29871, 29896, 29889, 29947, 29941, 29947, 29946, 29945, 29953, 29947, 29941, 29946, 29953, 29947, 29896, 29941, 29955, 29953, 29872, 29899, 29900, 29953, 334, 29871, 29896, 29872, 29946, 2314, 13, 1678, 528, 353, 528, 2754, 307, 29898, 29916, 1068, 29906, 29897, 334, 7442, 29889, 2378, 4197, 29896, 29892, 29871, 29896, 29872, 29946, 2314, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 845, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29945, 29897, 13, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29929, 29896, 29955, 29941, 29900, 29946, 29946, 29906, 29953, 29946, 29941, 29896, 29953, 29945, 29945, 29947, 29947, 29892, 29871, 29900, 29889, 29900, 29947, 29955, 29929, 29941, 29955, 29900, 29946, 29896, 29953, 29955, 29947, 29947, 29906, 29946, 29946, 29947, 2314, 13, 1678, 528, 353, 528, 2754, 307, 29898, 9302, 29889, 1188, 29898, 29916, 1068, 29906, 876, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 845, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29945, 29897, 13, 13, 1678, 396, 12765, 338, 518, 259, 29929, 29889, 29941, 29947, 29955, 29955, 29941, 29896, 29945, 29945, 29872, 29899, 29900, 29955, 29892, 1678, 29945, 29889, 29946, 29947, 29906, 29906, 29896, 29906, 29946, 29953, 29872, 29899, 29900, 29947, 29962, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29947, 29896, 29947, 29941, 29953, 29896, 29947, 29953, 29941, 29946, 29929, 29941, 29929, 29896, 29929, 29941, 29955, 29941, 29892, 29871, 29900, 29889, 29900, 29900, 29896, 29953, 29946, 29946, 29953, 29906, 29900, 29947, 29929, 29945, 29906, 29900, 29953, 29929, 29953, 29929, 2314, 13, 1678, 528, 353, 528, 2754, 307, 29898, 9302, 29889, 4548, 6278, 29916, 1068, 29906, 876, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 845, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29945, 29897, 13, 13, 13, 1753, 1243, 29918, 328, 12324, 7295, 13, 1678, 396, 21150, 2750, 390, 285, 9496, 1199, 13, 1678, 380, 29918, 29886, 29894, 353, 5159, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29945, 29947, 29953, 29955, 29906, 29941, 29945, 29941, 29945, 29947, 29947, 29947, 29906, 29896, 29946, 29947, 29892, 29871, 29900, 29889, 29896, 29896, 29896, 29945, 29941, 29947, 29900, 29955, 29953, 29900, 29900, 29946, 29896, 29953, 29896, 29955, 2314, 13, 1678, 594, 353, 4226, 29918, 328, 29898, 29916, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 328, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29896, 29906, 29897, 13, 1678, 380, 29918, 29886, 29894, 29889, 4397, 29898, 303, 29918, 29886, 29894, 29918, 29934, 29897, 13, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29906, 29889, 29929, 29955, 29953, 29906, 29953, 29953, 29906, 29953, 29955, 29945, 29929, 29946, 29945, 29955, 29945, 29872, 29974, 29900, 29900, 29892, 29871, 29947, 29889, 29955, 29945, 29941, 29900, 29900, 29941, 29955, 29900, 29929, 29929, 29953, 29900, 29953, 29946, 29945, 29872, 29899, 29900, 29947, 2314, 13, 1678, 594, 353, 4226, 29918, 328, 29898, 29916, 1068, 29906, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 328, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29896, 29896, 29897, 13, 1678, 380, 29918, 29886, 29894, 29889, 4397, 29898, 303, 29918, 29886, 29894, 29918, 29934, 29897, 13, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29946, 29947, 29929, 29906, 29945, 29945, 29955, 29947, 29945, 29953, 29941, 29900, 29947, 29945, 29906, 29947, 29892, 29871, 29900, 29889, 29896, 29929, 29953, 29947, 29900, 29946, 29900, 29955, 29945, 29929, 29941, 29896, 29953, 29941, 29900, 29955, 2314, 13, 1678, 594, 353, 4226, 29918, 328, 29898, 9302, 29889, 1188, 29898, 29916, 1068, 29906, 876, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 328, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29896, 29906, 29897, 13, 1678, 380, 29918, 29886, 29894, 29889, 4397, 29898, 303, 29918, 29886, 29894, 29918, 29934, 29897, 13, 13, 1678, 380, 29918, 29886, 29894, 29918, 29934, 353, 7442, 29889, 2378, 4197, 29896, 29889, 29946, 29945, 29929, 29929, 29900, 29896, 29946, 29953, 29945, 29946, 29906, 29947, 29906, 29953, 29953, 29929, 29941, 29896, 29906, 29892, 29871, 29900, 29889, 29900, 29900, 29900, 29953, 29941, 29947, 29900, 29900, 29900, 29929, 29906, 29941, 29906, 29947, 29929, 29955, 29945, 29941, 29945, 2314, 13, 1678, 594, 353, 4226, 29918, 328, 29898, 9302, 29889, 4548, 6278, 29916, 1068, 29906, 876, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 328, 29892, 380, 29918, 29886, 29894, 29918, 29934, 29892, 29871, 29896, 29906, 29897, 13, 1678, 380, 29918, 29886, 29894, 29889, 4397, 29898, 303, 29918, 29886, 29894, 29918, 29934, 29897, 13, 13, 1678, 594, 353, 4226, 29918, 328, 29898, 9302, 29889, 4914, 29918, 1429, 3552, 29916, 29892, 921, 1068, 29906, 29892, 7442, 29889, 1188, 29898, 29916, 1068, 29906, 511, 7442, 29889, 4548, 6278, 29916, 1068, 29906, 876, 467, 29911, 29892, 13, 462, 259, 9685, 29922, 29896, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 328, 29892, 7442, 29889, 4914, 29918, 1429, 29898, 303, 29918, 29886, 29894, 511, 29871, 29896, 29896, 29897, 13, 13, 13, 1753, 1243, 29918, 29881, 332, 2109, 29918, 29893, 271, 1100, 29918, 15112, 29898, 12071, 29918, 8172, 3859, 1125, 13, 1678, 921, 353, 7442, 29889, 8172, 29889, 9502, 29876, 29898, 29945, 29900, 29897, 13, 1678, 921, 29918, 13757, 353, 10518, 29889, 19204, 29898, 29916, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29881, 332, 2109, 29918, 29893, 271, 1100, 29898, 29916, 511, 1411, 2109, 29918, 29893, 271, 1100, 29898, 29916, 29918, 13757, 511, 13677, 29922, 29896, 29941, 29897, 13, 13, 13, 1990, 4321, 9513, 8504, 29898, 3318, 1125, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 6230, 29918, 1990, 29898, 25932, 1125, 13, 4706, 921, 353, 7442, 29889, 8172, 29889, 15770, 29918, 8945, 29898, 29896, 29900, 29900, 29900, 29897, 13, 4706, 321, 29896, 29892, 321, 29906, 29892, 321, 29941, 29892, 321, 29946, 29892, 321, 29945, 29892, 321, 29953, 29892, 321, 29955, 353, 7442, 29889, 25376, 488, 29898, 29916, 29892, 313, 29896, 29906, 29889, 29945, 29892, 29871, 29906, 29945, 29889, 29900, 29892, 29871, 29941, 29955, 29889, 29945, 29892, 29871, 29945, 29900, 29889, 29900, 29892, 29871, 29953, 29906, 29889, 29945, 29892, 29871, 29955, 29945, 29889, 29900, 29892, 29871, 29947, 29955, 29889, 29945, 876, 13, 4706, 274, 29900, 29945, 29892, 274, 29945, 29900, 29892, 274, 29929, 29945, 353, 7442, 29889, 25376, 488, 29898, 29916, 29892, 313, 29945, 29889, 29900, 29892, 29871, 29945, 29900, 29889, 29900, 29892, 29871, 29929, 29945, 29889, 29900, 876, 13, 4706, 285, 29900, 29906, 29945, 29892, 285, 29906, 29945, 29892, 285, 29955, 29945, 29892, 285, 29929, 29955, 29945, 353, 7442, 29889, 25376, 488, 29898, 29916, 29892, 313, 29906, 29889, 29945, 29892, 29871, 29906, 29945, 29889, 29900, 29892, 29871, 29955, 29945, 29889, 29900, 29892, 29871, 29929, 29955, 29889, 29945, 876, 13, 4706, 2099, 353, 7442, 29889, 12676, 13, 4706, 12920, 29896, 353, 2099, 3552, 29898, 29916, 448, 2099, 29898, 29916, 876, 847, 7442, 29889, 4172, 29898, 29916, 876, 1068, 29946, 29889, 29900, 29897, 448, 29871, 29941, 29889, 29900, 13, 4706, 12920, 29906, 353, 5135, 29872, 29955, 448, 321, 29945, 29897, 718, 313, 29872, 29941, 448, 321, 29896, 876, 847, 313, 29872, 29953, 448, 321, 29906, 29897, 448, 29871, 29896, 29889, 29906, 29941, 29941, 29900, 29929, 29945, 29896, 29896, 29945, 29946, 29947, 29945, 29906, 29896, 29955, 29906, 13, 4706, 12920, 29941, 353, 313, 12676, 29898, 29916, 29961, 29916, 1405, 274, 29929, 29945, 2314, 448, 2099, 29898, 29916, 29961, 29916, 529, 274, 29900, 29945, 12622, 847, 313, 12676, 29898, 29916, 29961, 29916, 1405, 274, 29945, 29900, 2314, 448, 2099, 29898, 29916, 29961, 29916, 529, 274, 29945, 29900, 12622, 448, 29871, 29906, 29889, 29945, 29947, 29945, 29906, 29906, 29955, 29896, 29906, 29906, 29947, 29955, 29900, 29947, 29900, 29946, 29947, 13, 4706, 12920, 29946, 353, 313, 29888, 29929, 29955, 29945, 448, 285, 29900, 29906, 29945, 29897, 847, 313, 29888, 29955, 29945, 448, 285, 29906, 29945, 29897, 448, 29871, 29906, 29889, 29929, 29900, 29945, 29947, 29946, 29953, 29929, 29945, 29896, 29953, 29955, 29900, 29896, 29953, 29941, 29929, 13, 4706, 1067, 29879, 29889, 29895, 4227, 19263, 29918, 29916, 353, 921, 13, 4706, 1067, 29879, 29889, 9684, 29918, 29895, 4227, 19263, 353, 7442, 29889, 2378, 4197, 12748, 29896, 29892, 12920, 29906, 29892, 12920, 29941, 29892, 12920, 29946, 2314, 13, 4706, 1067, 29879, 29889, 29895, 4227, 19263, 29918, 3075, 1934, 353, 7442, 29889, 2378, 4197, 29941, 29889, 29900, 29892, 29896, 29889, 29906, 29941, 29941, 29900, 29929, 29945, 29896, 29896, 29945, 29946, 29947, 29945, 29906, 29896, 29955, 29906, 29892, 29906, 29889, 29945, 29947, 29945, 29906, 29906, 29955, 29896, 29906, 29906, 29947, 29955, 29900, 29947, 29900, 29946, 29947, 29892, 29906, 29889, 29929, 29900, 29945, 29947, 29946, 29953, 29929, 29945, 29896, 29953, 29955, 29900, 29896, 29953, 29941, 29929, 2314, 13, 13, 1678, 822, 1243, 29918, 2168, 16589, 552, 29918, 1217, 29918, 8990, 29898, 1311, 1125, 13, 4706, 921, 353, 7442, 29889, 690, 14443, 29898, 9302, 29889, 279, 927, 29898, 29896, 29900, 29900, 29889, 29900, 511, 313, 29945, 29900, 29892, 29871, 29906, 876, 13, 4706, 286, 29883, 353, 1612, 16589, 552, 29898, 29916, 29892, 9685, 29922, 8516, 29897, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 14047, 29892, 1612, 16589, 552, 29898, 29916, 29889, 336, 955, 22130, 13, 13, 1678, 822, 1243, 29918, 2168, 16589, 552, 29918, 29896, 29881, 29898, 1311, 1125, 13, 4706, 921, 353, 7442, 29889, 690, 14443, 29898, 9302, 29889, 279, 927, 29898, 29896, 29900, 29900, 29889, 29900, 21336, 29945, 29900, 29892, 29906, 876, 13, 4706, 4974, 29918, 336, 4637, 29898, 1917, 2392, 29892, 903, 2168, 16589, 552, 29918, 29896, 29881, 29892, 921, 29897, 13, 13, 1678, 822, 1243, 29918, 2168, 16589, 552, 29918, 11967, 16414, 29898, 1311, 1125, 13, 4706, 286, 29883, 353, 1612, 16589, 552, 29898, 9302, 29889, 279, 927, 29898, 29945, 29889, 29900, 876, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 14047, 29892, 29871, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 2168, 16589, 552, 29918, 5464, 9171, 29898, 1311, 1125, 13, 4706, 286, 29883, 353, 1612, 16589, 552, 29898, 9302, 29889, 2378, 4197, 29896, 29892, 29871, 29906, 29892, 29871, 29955, 29892, 29871, 29929, 29892, 29871, 29896, 29900, 29889, 29900, 12622, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 14047, 29892, 448, 29900, 29889, 29941, 29941, 29941, 29941, 29941, 29941, 29941, 29897, 13, 13, 1678, 822, 1243, 29918, 2168, 16589, 552, 29918, 524, 29898, 1311, 1125, 13, 4706, 396, 402, 29950, 29871, 29946, 29906, 29946, 29941, 13, 4706, 286, 29883, 29896, 353, 1612, 16589, 552, 29898, 9302, 29889, 2378, 4197, 29896, 29892, 29871, 29906, 29892, 29871, 29955, 29892, 29871, 29929, 29892, 29871, 29896, 29900, 12622, 13, 4706, 286, 29883, 29906, 353, 1612, 16589, 552, 29898, 9302, 29889, 2378, 4197, 29896, 29892, 29871, 29906, 29892, 29871, 29955, 29892, 29871, 29929, 29892, 29871, 29896, 29900, 29889, 29900, 12622, 13, 4706, 4974, 29918, 11745, 29898, 14047, 29896, 29892, 286, 29883, 29906, 29897, 13, 13, 1678, 822, 1243, 29918, 2168, 16589, 552, 29918, 11967, 2527, 719, 29898, 1311, 29892, 10092, 29918, 8172, 3859, 1125, 13, 4706, 921, 353, 7442, 29889, 8172, 29889, 15770, 29918, 8945, 29898, 29896, 29900, 29900, 29897, 13, 4706, 286, 6814, 353, 1612, 16589, 552, 29898, 29916, 29897, 13, 4706, 286, 18038, 353, 1612, 16589, 552, 6278, 29916, 29897, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29885, 6814, 718, 286, 18038, 29892, 29871, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 2168, 16589, 552, 29918, 2938, 29898, 1311, 29892, 10092, 29918, 8172, 3859, 1125, 13, 4706, 921, 353, 7442, 29889, 2378, 4197, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 2314, 13, 4706, 286, 29883, 353, 1612, 16589, 552, 29898, 29916, 29897, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 14047, 29892, 29871, 29896, 29889, 29900, 847, 29871, 29953, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 29881, 332, 2109, 29918, 29893, 271, 1100, 29898, 1311, 29892, 10092, 29918, 8172, 3859, 1125, 13, 4706, 921, 353, 7442, 29889, 8172, 29889, 15770, 29918, 8945, 29898, 29896, 29900, 29900, 29897, 13, 4706, 11988, 353, 2533, 29898, 9302, 29889, 12765, 29898, 29916, 29897, 1068, 29906, 29889, 29900, 29897, 847, 7442, 29889, 6333, 29898, 29916, 29892, 921, 29897, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 28012, 29892, 1411, 2109, 29918, 29893, 271, 1100, 29898, 29916, 876, 13, 13, 1678, 822, 1243, 29918, 29881, 332, 2109, 29918, 29893, 271, 1100, 29918, 29906, 29881, 29898, 1311, 29892, 10092, 29918, 8172, 3859, 1125, 13, 4706, 8267, 353, 313, 29896, 29892, 29871, 29896, 29900, 29897, 13, 4706, 921, 353, 7442, 29889, 8172, 29889, 15770, 29918, 8945, 29898, 29896, 29900, 29900, 29897, 13, 4706, 11988, 353, 2533, 29898, 9302, 29889, 12765, 29898, 29916, 29897, 1068, 29906, 29889, 29900, 29897, 847, 7442, 29889, 6333, 29898, 29916, 29892, 921, 29897, 13, 4706, 921, 353, 7442, 29889, 29873, 488, 29898, 29916, 7503, 29892, 6213, 1402, 8267, 29897, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 9302, 29889, 29879, 802, 29872, 911, 29898, 28012, 334, 7442, 29889, 2873, 29898, 12181, 8243, 1411, 2109, 29918, 29893, 271, 1100, 29898, 29916, 876, 13, 13, 1678, 822, 1243, 29918, 29881, 332, 2109, 29918, 29893, 271, 1100, 29918, 29941, 29881, 29898, 1311, 29892, 10092, 29918, 8172, 3859, 1125, 13, 4706, 8267, 353, 313, 29896, 29900, 29892, 29871, 29896, 29892, 29871, 29896, 29900, 29897, 13, 4706, 921, 353, 7442, 29889, 8172, 29889, 15770, 29918, 8945, 29898, 29896, 29900, 29900, 29897, 13, 4706, 11988, 353, 2533, 29898, 9302, 29889, 12765, 29898, 29916, 29897, 1068, 29906, 29889, 29900, 29897, 847, 7442, 29889, 6333, 29898, 29916, 29892, 921, 29897, 13, 4706, 921, 353, 7442, 29889, 29873, 488, 29898, 29916, 29961, 8516, 29892, 584, 29892, 6213, 1402, 8267, 29897, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 9302, 29889, 29879, 802, 29872, 911, 29898, 28012, 334, 7442, 29889, 2873, 29898, 12181, 8243, 1411, 2109, 29918, 29893, 271, 1100, 29898, 29916, 29892, 9685, 29922, 29896, 876, 13, 13, 1678, 822, 1243, 29918, 13716, 504, 29918, 26050, 1233, 404, 29918, 29896, 29881, 29898, 1311, 1125, 13, 4706, 921, 353, 7442, 29889, 279, 927, 29898, 29906, 29896, 29889, 29900, 29897, 13, 4706, 2071, 353, 16424, 29918, 26050, 1233, 404, 29898, 29916, 29897, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 9302, 29889, 2378, 29898, 808, 511, 7442, 29889, 3298, 359, 29898, 29946, 876, 13, 13, 1678, 822, 1243, 29918, 13716, 504, 29918, 26050, 1233, 404, 29918, 29896, 29881, 29918, 29906, 29881, 29898, 1311, 29892, 10092, 29918, 8172, 3859, 1125, 13, 4706, 921, 353, 7442, 29889, 8172, 29889, 9502, 29876, 29898, 29906, 29896, 29897, 13, 4706, 343, 353, 921, 7503, 29892, 6213, 29962, 13, 4706, 2071, 29918, 29916, 353, 16424, 29918, 26050, 1233, 404, 29898, 29916, 29897, 13, 4706, 2071, 29918, 29891, 353, 16424, 29918, 26050, 1233, 404, 29898, 29891, 29892, 9685, 29922, 8516, 29897, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 9302, 29889, 2378, 29898, 808, 29918, 29916, 511, 7442, 29889, 2378, 29898, 808, 29918, 29891, 876, 13, 13, 1678, 822, 1243, 29918, 13716, 504, 29918, 26050, 1233, 404, 29918, 11967, 16414, 29898, 1311, 29892, 10092, 29918, 8172, 3859, 1125, 13, 4706, 921, 353, 7442, 29889, 8172, 29889, 15770, 29918, 8945, 29898, 29896, 29900, 29900, 29897, 13, 4706, 921, 353, 7442, 29889, 29882, 1429, 4197, 29916, 29892, 7442, 29889, 3298, 359, 29898, 29896, 511, 448, 29916, 2314, 13, 4706, 2071, 353, 16424, 29918, 26050, 1233, 404, 29898, 29916, 29897, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 9302, 29889, 2378, 29898, 808, 511, 7442, 29889, 3298, 359, 29898, 29946, 876, 13, 13, 1678, 822, 1243, 29918, 13716, 504, 29918, 26050, 1233, 404, 29918, 29941, 29881, 29898, 1311, 29892, 10092, 29918, 8172, 3859, 1125, 13, 4706, 921, 353, 7442, 29889, 8172, 29889, 15770, 29918, 8945, 29898, 29896, 29900, 29900, 29897, 13, 4706, 921, 353, 7442, 29889, 29882, 1429, 4197, 29916, 29892, 7442, 29889, 3298, 359, 29898, 29896, 511, 448, 29916, 2314, 13, 4706, 921, 353, 7442, 29889, 29873, 488, 29898, 29916, 29892, 313, 29896, 29900, 29892, 29871, 29896, 29900, 29892, 29871, 29896, 876, 13, 4706, 2071, 29918, 29941, 29881, 353, 16424, 29918, 26050, 1233, 404, 29898, 29916, 29892, 9685, 29922, 29906, 29897, 13, 4706, 1121, 353, 7442, 29889, 3298, 359, 3552, 29896, 29900, 29892, 29871, 29896, 29900, 876, 13, 4706, 363, 2071, 297, 2071, 29918, 29941, 29881, 29901, 13, 9651, 4974, 29918, 284, 3242, 29918, 11745, 29898, 808, 29892, 1121, 29897, 13, 13, 1678, 822, 1243, 29918, 13716, 504, 29918, 26050, 1233, 404, 29918, 29946, 29898, 1311, 29892, 10092, 29918, 8172, 3859, 1125, 13, 4706, 921, 353, 7442, 29889, 8172, 29889, 15770, 29918, 8945, 29898, 29896, 29900, 29900, 29900, 29897, 13, 4706, 921, 29961, 29916, 1405, 29871, 29900, 29962, 334, 29922, 29871, 29941, 13, 4706, 286, 353, 7442, 29889, 2168, 713, 29898, 29916, 29897, 13, 4706, 269, 353, 921, 29889, 4172, 29898, 1289, 974, 29922, 29900, 29897, 13, 4706, 3806, 353, 313, 29916, 29889, 12676, 580, 448, 286, 29897, 847, 269, 13, 4706, 17117, 17117, 17117, 2071, 29946, 353, 16424, 29918, 26050, 1233, 404, 29898, 29916, 29897, 13, 4706, 4974, 29918, 497, 5358, 29898, 9684, 29892, 2071, 29946, 29897, 13, 13, 1678, 822, 1243, 29918, 13716, 504, 29918, 29895, 4227, 19263, 29918, 29896, 29881, 29918, 29906, 29881, 29898, 1311, 29892, 10092, 29918, 8172, 3859, 1125, 13, 4706, 921, 353, 7442, 29889, 8172, 29889, 9502, 29876, 29898, 29896, 29900, 29900, 29897, 13, 4706, 343, 353, 921, 7503, 29892, 6213, 29962, 13, 4706, 12920, 29918, 29916, 353, 7442, 29889, 2378, 29898, 13716, 504, 29918, 29895, 4227, 19263, 29898, 29916, 876, 13, 4706, 12920, 29918, 29891, 353, 7442, 29889, 2378, 29898, 13716, 504, 29918, 29895, 4227, 19263, 29898, 29891, 29892, 9685, 29922, 8516, 876, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 12748, 29918, 29916, 29892, 12920, 29918, 29891, 29897, 13, 13, 1678, 822, 1243, 29918, 13716, 504, 29918, 29895, 4227, 19263, 29898, 1311, 1125, 13, 4706, 921, 353, 1583, 29889, 29895, 4227, 19263, 29918, 29916, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 9302, 29889, 2378, 29898, 13716, 504, 29918, 29895, 4227, 19263, 29898, 29916, 8243, 1583, 29889, 9684, 29918, 29895, 4227, 19263, 29897, 13, 13, 1678, 822, 1243, 29918, 13716, 504, 29918, 29895, 4227, 19263, 29918, 29941, 29881, 29898, 1311, 1125, 13, 4706, 921, 353, 7442, 29889, 29873, 488, 29898, 1311, 29889, 29895, 4227, 19263, 29918, 29916, 29892, 313, 29896, 29900, 29892, 29871, 29896, 29900, 29892, 29871, 29896, 876, 13, 4706, 413, 4227, 19263, 353, 7442, 29889, 2378, 29898, 13716, 504, 29918, 29895, 4227, 19263, 29898, 29916, 29892, 9685, 29922, 29906, 876, 13, 4706, 363, 474, 29892, 364, 297, 26985, 29898, 1311, 29889, 9684, 29918, 29895, 4227, 19263, 1125, 13, 9651, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29878, 334, 7442, 29889, 2873, 3552, 29896, 29900, 29892, 29871, 29896, 29900, 8243, 413, 4227, 19263, 29961, 29875, 2314, 13, 13, 1678, 822, 1243, 29918, 13716, 504, 29918, 29895, 4227, 19263, 29918, 735, 985, 29918, 4541, 29898, 1311, 1125, 13, 4706, 921, 353, 1583, 29889, 29895, 4227, 19263, 29918, 29916, 13, 4706, 3806, 353, 1583, 29889, 9684, 29918, 29895, 4227, 19263, 718, 1583, 29889, 29895, 4227, 19263, 29918, 3075, 1934, 13, 4706, 413, 4227, 19263, 353, 7442, 29889, 2378, 29898, 13716, 504, 29918, 29895, 4227, 19263, 29898, 29916, 29892, 19163, 29922, 8824, 876, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 9684, 29892, 413, 4227, 19263, 29897, 13, 13, 1678, 822, 1243, 29918, 13716, 504, 29918, 29895, 4227, 19263, 29918, 370, 29898, 1311, 1125, 13, 4706, 396, 4321, 2888, 15595, 29892, 21762, 297, 12920, 29941, 13, 4706, 921, 353, 1583, 29889, 29895, 4227, 19263, 29918, 29916, 13, 4706, 15595, 29892, 21762, 353, 313, 29896, 29900, 29889, 29900, 29892, 29871, 29946, 29945, 29889, 29900, 29897, 13, 4706, 413, 4227, 19263, 353, 16424, 29918, 29895, 4227, 19263, 29898, 1311, 29889, 29895, 4227, 19263, 29918, 29916, 29892, 633, 7607, 2312, 29892, 3571, 511, 19163, 29922, 8824, 29897, 13, 4706, 954, 353, 7442, 29889, 12676, 29898, 29916, 29961, 29916, 29958, 9302, 29889, 25376, 488, 29898, 29916, 29892, 29896, 29900, 29900, 29889, 29900, 448, 15595, 29897, 2314, 448, 7442, 29889, 12676, 29898, 29916, 29961, 29916, 29966, 9302, 29889, 25376, 488, 29898, 29916, 29892, 2312, 29897, 2314, 13, 4706, 972, 290, 353, 7442, 29889, 12676, 29898, 29916, 29961, 29916, 29958, 9302, 29889, 25376, 488, 29898, 29916, 29892, 29896, 29900, 29900, 29889, 29900, 448, 21762, 29897, 2314, 448, 7442, 29889, 12676, 29898, 29916, 29961, 29916, 29966, 9302, 29889, 25376, 488, 29898, 29916, 29892, 3571, 29897, 2314, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29895, 4227, 19263, 29961, 29906, 1402, 954, 29914, 1145, 290, 29897, 13, 13, 1678, 822, 1243, 29918, 13716, 504, 29918, 29895, 4227, 19263, 29918, 20726, 29898, 1311, 1125, 13, 4706, 396, 4321, 2888, 19471, 29892, 330, 2735, 297, 12920, 29946, 13, 4706, 921, 353, 1583, 29889, 29895, 4227, 19263, 29918, 29916, 13, 4706, 19471, 29892, 330, 2735, 353, 313, 29896, 29900, 29889, 29900, 29892, 29871, 29946, 29945, 29889, 29900, 29897, 13, 4706, 413, 4227, 19263, 353, 16424, 29918, 29895, 4227, 19263, 29898, 1311, 29889, 29895, 4227, 19263, 29918, 29916, 29892, 270, 29887, 7607, 4181, 29892, 4283, 511, 19163, 29922, 8824, 29897, 13, 4706, 3855, 353, 7442, 29889, 25376, 488, 29898, 29916, 17094, 4181, 29892, 29871, 29896, 29900, 29900, 29889, 29900, 29899, 4181, 29892, 330, 2735, 29892, 29871, 29896, 29900, 29900, 29889, 29900, 29899, 4283, 2314, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 29895, 4227, 19263, 29961, 29941, 1402, 313, 29939, 29961, 29896, 29962, 448, 3855, 29961, 29900, 2314, 847, 313, 29939, 29961, 29941, 29962, 448, 3855, 29961, 29906, 12622, 13, 2 ]
facexlib/headpose/hopenet_arch.py
spy14414/facexlib
164
101521
import torch import torch.nn as nn import torchvision class HopeNet(nn.Module): # Hopenet with 3 output layers for yaw, pitch and roll # Predicts Euler angles by binning and regression with the expected value def __init__(self, block, layers, num_bins): super(HopeNet, self).__init__() if block == 'resnet': block = torchvision.models.resnet.Bottleneck self.inplanes = 64 self.conv1 = nn.Conv2d(3, 64, kernel_size=7, stride=2, padding=3, bias=False) self.bn1 = nn.BatchNorm2d(64) self.relu = nn.ReLU(inplace=True) self.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, padding=1) self.layer1 = self._make_layer(block, 64, layers[0]) self.layer2 = self._make_layer(block, 128, layers[1], stride=2) self.layer3 = self._make_layer(block, 256, layers[2], stride=2) self.layer4 = self._make_layer(block, 512, layers[3], stride=2) self.avgpool = nn.AvgPool2d(7) self.fc_yaw = nn.Linear(512 * block.expansion, num_bins) self.fc_pitch = nn.Linear(512 * block.expansion, num_bins) self.fc_roll = nn.Linear(512 * block.expansion, num_bins) self.idx_tensor = torch.arange(66).float() def _make_layer(self, block, planes, blocks, stride=1): downsample = None if stride != 1 or self.inplanes != planes * block.expansion: downsample = nn.Sequential( nn.Conv2d(self.inplanes, planes * block.expansion, kernel_size=1, stride=stride, bias=False), nn.BatchNorm2d(planes * block.expansion), ) layers = [] layers.append(block(self.inplanes, planes, stride, downsample)) self.inplanes = planes * block.expansion for i in range(1, blocks): layers.append(block(self.inplanes, planes)) return nn.Sequential(*layers) @staticmethod def softmax_temperature(tensor, temperature): result = torch.exp(tensor / temperature) result = torch.div(result, torch.sum(result, 1).unsqueeze(1).expand_as(result)) return result def bin2degree(self, predict): predict = self.softmax_temperature(predict, 1) return torch.sum(predict * self.idx_tensor.type_as(predict), 1) * 3 - 99 def forward(self, x): x = self.relu(self.bn1(self.conv1(x))) x = self.maxpool(x) x = self.layer1(x) x = self.layer2(x) x = self.layer3(x) x = self.layer4(x) x = self.avgpool(x) x = x.view(x.size(0), -1) pre_yaw = self.fc_yaw(x) pre_pitch = self.fc_pitch(x) pre_roll = self.fc_roll(x) yaw = self.bin2degree(pre_yaw) pitch = self.bin2degree(pre_pitch) roll = self.bin2degree(pre_roll) return yaw, pitch, roll
[ 1, 1053, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 5215, 4842, 305, 4924, 13, 13, 13, 1990, 7963, 6779, 29898, 15755, 29889, 7355, 1125, 13, 1678, 396, 379, 3150, 300, 411, 29871, 29941, 1962, 15359, 363, 343, 1450, 29892, 15905, 322, 9679, 13, 1678, 396, 21099, 919, 29879, 382, 8584, 23619, 491, 9016, 1076, 322, 17855, 411, 278, 3806, 995, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2908, 29892, 15359, 29892, 954, 29918, 29890, 1144, 1125, 13, 4706, 2428, 29898, 29950, 2300, 6779, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 565, 2908, 1275, 525, 690, 1212, 2396, 13, 9651, 2908, 353, 4842, 305, 4924, 29889, 9794, 29889, 690, 1212, 29889, 29933, 1501, 29880, 1600, 384, 13, 4706, 1583, 29889, 262, 9018, 267, 353, 29871, 29953, 29946, 13, 4706, 1583, 29889, 20580, 29896, 353, 302, 29876, 29889, 1168, 29894, 29906, 29881, 29898, 29941, 29892, 29871, 29953, 29946, 29892, 8466, 29918, 2311, 29922, 29955, 29892, 380, 2426, 29922, 29906, 29892, 7164, 29922, 29941, 29892, 24003, 29922, 8824, 29897, 13, 4706, 1583, 29889, 11197, 29896, 353, 302, 29876, 29889, 23145, 29940, 555, 29906, 29881, 29898, 29953, 29946, 29897, 13, 4706, 1583, 29889, 2674, 29884, 353, 302, 29876, 29889, 1123, 29931, 29965, 29898, 262, 6689, 29922, 5574, 29897, 13, 4706, 1583, 29889, 3317, 10109, 353, 302, 29876, 29889, 7976, 11426, 29906, 29881, 29898, 17460, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29906, 29892, 7164, 29922, 29896, 29897, 13, 4706, 1583, 29889, 13148, 29896, 353, 1583, 3032, 5675, 29918, 13148, 29898, 1271, 29892, 29871, 29953, 29946, 29892, 15359, 29961, 29900, 2314, 13, 4706, 1583, 29889, 13148, 29906, 353, 1583, 3032, 5675, 29918, 13148, 29898, 1271, 29892, 29871, 29896, 29906, 29947, 29892, 15359, 29961, 29896, 1402, 380, 2426, 29922, 29906, 29897, 13, 4706, 1583, 29889, 13148, 29941, 353, 1583, 3032, 5675, 29918, 13148, 29898, 1271, 29892, 29871, 29906, 29945, 29953, 29892, 15359, 29961, 29906, 1402, 380, 2426, 29922, 29906, 29897, 13, 4706, 1583, 29889, 13148, 29946, 353, 1583, 3032, 5675, 29918, 13148, 29898, 1271, 29892, 29871, 29945, 29896, 29906, 29892, 15359, 29961, 29941, 1402, 380, 2426, 29922, 29906, 29897, 13, 4706, 1583, 29889, 485, 29887, 10109, 353, 302, 29876, 29889, 12810, 29887, 11426, 29906, 29881, 29898, 29955, 29897, 13, 4706, 1583, 29889, 13801, 29918, 29891, 1450, 353, 302, 29876, 29889, 12697, 29898, 29945, 29896, 29906, 334, 2908, 29889, 4548, 9454, 29892, 954, 29918, 29890, 1144, 29897, 13, 4706, 1583, 29889, 13801, 29918, 29886, 2335, 353, 302, 29876, 29889, 12697, 29898, 29945, 29896, 29906, 334, 2908, 29889, 4548, 9454, 29892, 954, 29918, 29890, 1144, 29897, 13, 4706, 1583, 29889, 13801, 29918, 1245, 353, 302, 29876, 29889, 12697, 29898, 29945, 29896, 29906, 334, 2908, 29889, 4548, 9454, 29892, 954, 29918, 29890, 1144, 29897, 13, 13, 4706, 1583, 29889, 13140, 29918, 20158, 353, 4842, 305, 29889, 279, 927, 29898, 29953, 29953, 467, 7411, 580, 13, 13, 1678, 822, 903, 5675, 29918, 13148, 29898, 1311, 29892, 2908, 29892, 3814, 267, 29892, 10930, 29892, 380, 2426, 29922, 29896, 1125, 13, 4706, 1623, 11249, 353, 6213, 13, 4706, 565, 380, 2426, 2804, 29871, 29896, 470, 1583, 29889, 262, 9018, 267, 2804, 3814, 267, 334, 2908, 29889, 4548, 9454, 29901, 13, 9651, 1623, 11249, 353, 302, 29876, 29889, 16941, 2556, 29898, 13, 18884, 302, 29876, 29889, 1168, 29894, 29906, 29881, 29898, 1311, 29889, 262, 9018, 267, 29892, 3814, 267, 334, 2908, 29889, 4548, 9454, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 303, 2426, 29892, 24003, 29922, 8824, 511, 13, 18884, 302, 29876, 29889, 23145, 29940, 555, 29906, 29881, 29898, 9018, 267, 334, 2908, 29889, 4548, 9454, 511, 13, 9651, 1723, 13, 13, 4706, 15359, 353, 5159, 13, 4706, 15359, 29889, 4397, 29898, 1271, 29898, 1311, 29889, 262, 9018, 267, 29892, 3814, 267, 29892, 380, 2426, 29892, 1623, 11249, 876, 13, 4706, 1583, 29889, 262, 9018, 267, 353, 3814, 267, 334, 2908, 29889, 4548, 9454, 13, 4706, 363, 474, 297, 3464, 29898, 29896, 29892, 10930, 1125, 13, 9651, 15359, 29889, 4397, 29898, 1271, 29898, 1311, 29889, 262, 9018, 267, 29892, 3814, 267, 876, 13, 4706, 736, 302, 29876, 29889, 16941, 2556, 10456, 29277, 29897, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 4964, 3317, 29918, 12863, 1535, 29898, 20158, 29892, 10430, 1125, 13, 4706, 1121, 353, 4842, 305, 29889, 4548, 29898, 20158, 847, 10430, 29897, 13, 4706, 1121, 353, 4842, 305, 29889, 4563, 29898, 2914, 29892, 4842, 305, 29889, 2083, 29898, 2914, 29892, 29871, 29896, 467, 6948, 802, 29872, 911, 29898, 29896, 467, 18837, 29918, 294, 29898, 2914, 876, 13, 4706, 736, 1121, 13, 13, 1678, 822, 9016, 29906, 12163, 929, 29898, 1311, 29892, 8500, 1125, 13, 4706, 8500, 353, 1583, 29889, 2695, 3317, 29918, 12863, 1535, 29898, 27711, 29892, 29871, 29896, 29897, 13, 4706, 736, 4842, 305, 29889, 2083, 29898, 27711, 334, 1583, 29889, 13140, 29918, 20158, 29889, 1853, 29918, 294, 29898, 27711, 511, 29871, 29896, 29897, 334, 29871, 29941, 448, 29871, 29929, 29929, 13, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 13, 4706, 921, 353, 1583, 29889, 2674, 29884, 29898, 1311, 29889, 11197, 29896, 29898, 1311, 29889, 20580, 29896, 29898, 29916, 4961, 13, 4706, 921, 353, 1583, 29889, 3317, 10109, 29898, 29916, 29897, 13, 13, 4706, 921, 353, 1583, 29889, 13148, 29896, 29898, 29916, 29897, 13, 4706, 921, 353, 1583, 29889, 13148, 29906, 29898, 29916, 29897, 13, 4706, 921, 353, 1583, 29889, 13148, 29941, 29898, 29916, 29897, 13, 4706, 921, 353, 1583, 29889, 13148, 29946, 29898, 29916, 29897, 13, 13, 4706, 921, 353, 1583, 29889, 485, 29887, 10109, 29898, 29916, 29897, 13, 4706, 921, 353, 921, 29889, 1493, 29898, 29916, 29889, 2311, 29898, 29900, 511, 448, 29896, 29897, 13, 4706, 758, 29918, 29891, 1450, 353, 1583, 29889, 13801, 29918, 29891, 1450, 29898, 29916, 29897, 13, 4706, 758, 29918, 29886, 2335, 353, 1583, 29889, 13801, 29918, 29886, 2335, 29898, 29916, 29897, 13, 4706, 758, 29918, 1245, 353, 1583, 29889, 13801, 29918, 1245, 29898, 29916, 29897, 13, 13, 4706, 343, 1450, 353, 1583, 29889, 2109, 29906, 12163, 929, 29898, 1457, 29918, 29891, 1450, 29897, 13, 4706, 15905, 353, 1583, 29889, 2109, 29906, 12163, 929, 29898, 1457, 29918, 29886, 2335, 29897, 13, 4706, 9679, 353, 1583, 29889, 2109, 29906, 12163, 929, 29898, 1457, 29918, 1245, 29897, 13, 4706, 736, 343, 1450, 29892, 15905, 29892, 9679, 13, 2 ]
chroma-agent/chroma_agent/action_plugins/manage_fail_node.py
GarimaVishvakarma/intel-chroma
0
147626
# Copyright (c) 2017 Intel Corporation. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. from chroma_agent.lib.shell import AgentShell def fail_node(args): # force a manual failover by failing a node AgentShell.try_run(["sync"]) AgentShell.try_run(["sync"]) AgentShell.try_run(["init", "0"]) ACTIONS = [fail_node] CAPABILITIES = []
[ 1, 396, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29955, 18555, 15025, 29889, 2178, 10462, 21676, 29889, 13, 29937, 4803, 310, 445, 2752, 775, 338, 4095, 287, 491, 263, 341, 1806, 29899, 3293, 13, 29937, 19405, 393, 508, 367, 1476, 297, 278, 365, 2965, 1430, 1660, 934, 29889, 13, 13, 13, 3166, 25173, 29874, 29918, 14748, 29889, 1982, 29889, 15903, 1053, 28330, 16037, 13, 13, 13, 1753, 4418, 29918, 3177, 29898, 5085, 1125, 13, 1678, 396, 4889, 263, 12219, 4418, 957, 491, 17581, 263, 2943, 13, 1678, 28330, 16037, 29889, 2202, 29918, 3389, 29898, 3366, 16593, 20068, 13, 1678, 28330, 16037, 29889, 2202, 29918, 3389, 29898, 3366, 16593, 20068, 13, 1678, 28330, 16037, 29889, 2202, 29918, 3389, 29898, 3366, 2344, 613, 376, 29900, 20068, 13, 13, 24705, 29903, 353, 518, 14057, 29918, 3177, 29962, 13, 29907, 3301, 2882, 6227, 1806, 29059, 353, 5159, 13, 2 ]
opencoverage/api/upload.py
kotlas92/opencoverage
0
196679
import logging import os import zlib from typing import Optional from urllib.parse import parse_qs from starlette.requests import Request from starlette.responses import PlainTextResponse from opencoverage import tasks from opencoverage.clients.scm import get_client from .app import router logger = logging.getLogger(__name__) @router.post("/api/upload/v4") async def upload_coverage_v4(request: Request): settings = request.app.settings path = os.path.join("/api", "upload-report") if path[0] != "/": path = "/" + path logger.info(request) upload_url = str(request.url.replace(path=path)) scheme = request.headers.get( "x-scheme", request.headers.get("x-forwarded-proto", "http") ) if not upload_url.startswith(f"{scheme}://"): _, _, url_part = upload_url.partition("://") upload_url = f"{scheme}://{url_part}" logger.info(f"Redirecting to {upload_url}") return PlainTextResponse(f"success\n{upload_url}") @router.put("/api/upload-report") async def upload_report( request: Request, branch: str, commit: str, slug: str, token: Optional[str] = None, ): data = await request.body() logger.info(f"Upload body {len(data)}: {request.headers}") if request.headers.get("content-type") == "application/x-gzip": gzip_worker = zlib.decompressobj(zlib.MAX_WBITS | 16) data = gzip_worker.decompress(data) + gzip_worker.flush() logger.info(f"decompressed gzip data {len(data)}") organization, _, repo = slug.partition("/") if token in ("dummy", "-", ".", "y", None): installation_id = None else: installation_id = token project = None query = parse_qs(request.url.query) if query.get("flags"): for flag in query["flags"]: name, _, value = flag.partition(":") if name == "project": project = value async with get_client(request.app.settings, installation_id) as scm: await request.app.db.update_organization(organization, scm.installation_id) await request.app.taskrunner.add( name="coveragereport", config=tasks.CoverageTaskConfig( organization=organization, repo=repo, branch=branch, commit=commit, project=project, installation_id=installation_id, data=data, ), ) logger.info("Task scheduled")
[ 1, 1053, 12183, 13, 5215, 2897, 13, 5215, 503, 1982, 13, 3166, 19229, 1053, 28379, 13, 3166, 3142, 1982, 29889, 5510, 1053, 6088, 29918, 29939, 29879, 13, 13, 3166, 5810, 20200, 29889, 24830, 1053, 10729, 13, 3166, 5810, 20200, 29889, 26679, 267, 1053, 349, 7420, 1626, 5103, 13, 13, 3166, 1722, 11911, 482, 1053, 9595, 13, 3166, 1722, 11911, 482, 29889, 11303, 1237, 29889, 1557, 29885, 1053, 679, 29918, 4645, 13, 13, 3166, 869, 932, 1053, 12876, 13, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 13, 13, 29992, 15140, 29889, 2490, 11974, 2754, 29914, 9009, 29914, 29894, 29946, 1159, 13, 12674, 822, 6441, 29918, 11911, 482, 29918, 29894, 29946, 29898, 3827, 29901, 10729, 1125, 13, 1678, 6055, 353, 2009, 29889, 932, 29889, 11027, 13, 1678, 2224, 353, 2897, 29889, 2084, 29889, 7122, 11974, 2754, 613, 376, 9009, 29899, 12276, 1159, 13, 1678, 565, 2224, 29961, 29900, 29962, 2804, 5591, 1115, 13, 4706, 2224, 353, 5591, 29908, 718, 2224, 13, 1678, 17927, 29889, 3888, 29898, 3827, 29897, 13, 1678, 6441, 29918, 2271, 353, 851, 29898, 3827, 29889, 2271, 29889, 6506, 29898, 2084, 29922, 2084, 876, 13, 1678, 11380, 353, 2009, 29889, 13662, 29889, 657, 29898, 13, 4706, 376, 29916, 29899, 816, 2004, 613, 2009, 29889, 13662, 29889, 657, 703, 29916, 29899, 11333, 287, 29899, 17529, 613, 376, 1124, 1159, 13, 1678, 1723, 13, 1678, 565, 451, 6441, 29918, 2271, 29889, 27382, 2541, 29898, 29888, 29908, 29912, 816, 2004, 29913, 597, 29908, 1125, 13, 4706, 17117, 17117, 3142, 29918, 1595, 353, 6441, 29918, 2271, 29889, 16707, 703, 597, 1159, 13, 4706, 6441, 29918, 2271, 353, 285, 29908, 29912, 816, 2004, 29913, 597, 29912, 2271, 29918, 1595, 5038, 13, 1678, 17927, 29889, 3888, 29898, 29888, 29908, 24735, 292, 304, 426, 9009, 29918, 2271, 27195, 13, 1678, 736, 349, 7420, 1626, 5103, 29898, 29888, 29908, 8698, 29905, 29876, 29912, 9009, 29918, 2271, 27195, 13, 13, 13, 29992, 15140, 29889, 649, 11974, 2754, 29914, 9009, 29899, 12276, 1159, 13, 12674, 822, 6441, 29918, 12276, 29898, 13, 1678, 2009, 29901, 10729, 29892, 13, 1678, 5443, 29901, 851, 29892, 13, 1678, 9063, 29901, 851, 29892, 13, 1678, 2243, 688, 29901, 851, 29892, 13, 1678, 5993, 29901, 28379, 29961, 710, 29962, 353, 6213, 29892, 13, 1125, 13, 1678, 848, 353, 7272, 2009, 29889, 2587, 580, 13, 1678, 17927, 29889, 3888, 29898, 29888, 29908, 17553, 3573, 426, 2435, 29898, 1272, 2915, 29901, 426, 3827, 29889, 13662, 27195, 13, 13, 1678, 565, 2009, 29889, 13662, 29889, 657, 703, 3051, 29899, 1853, 1159, 1275, 376, 6214, 29914, 29916, 29899, 29887, 7554, 1115, 13, 4706, 330, 7554, 29918, 24602, 353, 503, 1982, 29889, 311, 510, 2139, 5415, 29898, 29920, 1982, 29889, 12648, 29918, 29956, 22698, 29903, 891, 29871, 29896, 29953, 29897, 13, 4706, 848, 353, 330, 7554, 29918, 24602, 29889, 311, 510, 2139, 29898, 1272, 29897, 718, 330, 7554, 29918, 24602, 29889, 23126, 580, 13, 4706, 17927, 29889, 3888, 29898, 29888, 29908, 311, 510, 13120, 330, 7554, 848, 426, 2435, 29898, 1272, 2915, 1159, 13, 13, 1678, 13013, 29892, 17117, 13761, 353, 2243, 688, 29889, 16707, 11974, 1159, 13, 13, 1678, 565, 5993, 297, 4852, 29881, 11770, 613, 11663, 613, 11393, 613, 376, 29891, 613, 6213, 1125, 13, 4706, 11161, 29918, 333, 353, 6213, 13, 1678, 1683, 29901, 13, 4706, 11161, 29918, 333, 353, 5993, 13, 13, 1678, 2060, 353, 6213, 13, 1678, 2346, 353, 6088, 29918, 29939, 29879, 29898, 3827, 29889, 2271, 29889, 1972, 29897, 13, 1678, 565, 2346, 29889, 657, 703, 15764, 29908, 1125, 13, 4706, 363, 7353, 297, 2346, 3366, 15764, 3108, 29901, 13, 9651, 1024, 29892, 17117, 995, 353, 7353, 29889, 16707, 703, 29901, 1159, 13, 9651, 565, 1024, 1275, 376, 4836, 1115, 13, 18884, 2060, 353, 995, 13, 13, 1678, 7465, 411, 679, 29918, 4645, 29898, 3827, 29889, 932, 29889, 11027, 29892, 11161, 29918, 333, 29897, 408, 885, 29885, 29901, 13, 4706, 7272, 2009, 29889, 932, 29889, 2585, 29889, 5504, 29918, 6388, 2133, 29898, 6388, 2133, 29892, 885, 29885, 29889, 6252, 362, 29918, 333, 29897, 13, 13, 1678, 7272, 2009, 29889, 932, 29889, 7662, 27492, 29889, 1202, 29898, 13, 4706, 1024, 543, 11911, 351, 406, 637, 613, 13, 4706, 2295, 29922, 20673, 29889, 29907, 957, 482, 5398, 3991, 29898, 13, 9651, 13013, 29922, 6388, 2133, 29892, 13, 9651, 13761, 29922, 20095, 29892, 13, 9651, 5443, 29922, 17519, 29892, 13, 9651, 9063, 29922, 15060, 29892, 13, 9651, 2060, 29922, 4836, 29892, 13, 9651, 11161, 29918, 333, 29922, 6252, 362, 29918, 333, 29892, 13, 9651, 848, 29922, 1272, 29892, 13, 4706, 10353, 13, 1678, 1723, 13, 1678, 17927, 29889, 3888, 703, 5398, 21467, 1159, 13, 2 ]
ProcessImagePipeline.py
SamaraLove/Project-1-Lane-Following
0
83594
# -*- coding: utf-8 -*- """ Created on Fri Dec 6 13:45:30 2019 @author: LOVESA """ #importing relevant packages import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np import os import cv2 import math from os.path import isfile, join import Helper as Functions #Parameters definition low_threshold = 50 high_threshold = 150 kernel_size = 7 # Define the Hough transform parameters # Make a blank the same size as our image to draw on rho = 2 # distance resolution in pixels of the Hough grid theta = np.pi/180 # angular resolution in radians of the Hough grid threshold = 160 # minimum number of votes (intersections in Hough grid cell) min_line_len = 10 #minimum number of pixels making up a line max_line_gap = 20 # maximum gap in pixels between connectable line segments # image processing pipeline function def pipeline(image): plt.imshow(image) #plot original image initial_img = np.copy(image)*0 # creating a blank to draw lines on #from PipelineFunctions import grayscale, gaussian blur and canny functions on the whole image gray = Functions.grayscale(image) plt.imshow(gray, cmap='gray') #grayscale image gaussian_blur = Functions.gaussian_blur(gray, kernel_size) plt.imshow(gaussian_blur) edges = Functions.canny(gaussian_blur, low_threshold, high_threshold) plt.imshow(edges) #plots binary image # dilate()ing edge image. #This will make the lines thicker which will help fit the Hough lines better dilated = cv2.dilate(edges, np.ones((3,3), dtype=np.uint8)) plt.imshow(dilated) #Cropping the image to within the region of interest #imshape = image.shape #vertices = np.array([[(140,imshape[0]),(440, 325), (520, 325), (960,imshape[0])]], dtype=np.int32) vertices = np.array([[(140,550),(440, 325), (550, 325), (920,550)]], dtype=np.int32) #the co-ordinate origin in the image is top-left corner of image # create a masked edges image masked_image = Functions.region_of_interest(dilated, vertices) plt.imshow(masked_image) #plots binary image with lines within boundary #Shows the region #x, y = vertices.T #plt.plot(x, y, 'b--', lw=4) #Detecting shape edges in the remaining (cropped) image data #Applying the hough transform hough_img = Functions.hough_lines(masked_image, rho, theta, threshold, min_line_len, max_line_gap) #Testing output of hough_img #print(hough_img.shape) #print(hough_img) #for i in range(hough_img.shape[0]): # for j in range(hough_img.shape[1]): # for k in range(3): # if hough_img[i,j,k] > 1e-4: # print(i,j,k,hough_img[i,j,k]) plt.imshow(hough_img) #Prints full binary image with red lines only weighted_img = Functions.weighted_img(hough_img,image, α=0.8, β=1.,γ=0.) plt.imshow(weighted_img) #Prints original image with lines highlighted red return weighted_img
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 30004, 13, 15945, 19451, 13, 20399, 373, 11169, 3826, 259, 29953, 29871, 29896, 29941, 29901, 29946, 29945, 29901, 29941, 29900, 29871, 29906, 29900, 29896, 29929, 30004, 13, 30004, 13, 29992, 8921, 29901, 11247, 29963, 2890, 29909, 30004, 13, 15945, 19451, 13, 30004, 13, 29937, 5215, 292, 8018, 9741, 30004, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 30004, 13, 5215, 22889, 29889, 3027, 408, 22326, 2492, 30004, 13, 5215, 12655, 408, 7442, 30004, 13, 5215, 2897, 30004, 13, 5215, 13850, 29906, 30004, 13, 5215, 5844, 30004, 13, 3166, 2897, 29889, 2084, 1053, 338, 1445, 29892, 5988, 30004, 13, 30004, 13, 5215, 6162, 546, 408, 6680, 29879, 30004, 13, 30004, 13, 29937, 11507, 5023, 30004, 13, 677, 29918, 386, 12268, 353, 29871, 29945, 29900, 30004, 13, 9812, 29918, 386, 12268, 353, 29871, 29896, 29945, 29900, 30004, 13, 17460, 29918, 2311, 353, 29871, 29955, 30004, 13, 29937, 22402, 278, 379, 820, 4327, 4128, 30004, 13, 29937, 8561, 263, 9654, 278, 1021, 2159, 408, 1749, 1967, 304, 4216, 373, 30004, 13, 4650, 353, 29871, 29906, 396, 5418, 10104, 297, 17036, 310, 278, 379, 820, 6856, 30004, 13, 3416, 353, 7442, 29889, 1631, 29914, 29896, 29947, 29900, 396, 6401, 10104, 297, 2971, 5834, 310, 278, 379, 820, 6856, 30004, 13, 386, 12268, 353, 29871, 29896, 29953, 29900, 268, 396, 9212, 1353, 310, 18952, 313, 1639, 27117, 297, 379, 820, 6856, 3038, 8443, 13, 1195, 29918, 1220, 29918, 2435, 353, 29871, 29896, 29900, 396, 1195, 12539, 1353, 310, 17036, 3907, 701, 263, 1196, 30004, 13, 3317, 29918, 1220, 29918, 29887, 481, 353, 29871, 29906, 29900, 1678, 396, 7472, 17261, 297, 17036, 1546, 4511, 519, 1196, 24611, 30004, 13, 30004, 13, 30004, 13, 29937, 1967, 9068, 16439, 740, 30004, 13, 1753, 16439, 29898, 3027, 1125, 30004, 13, 1678, 14770, 29889, 326, 4294, 29898, 3027, 29897, 29871, 396, 5317, 2441, 1967, 30004, 13, 1678, 2847, 29918, 2492, 353, 7442, 29889, 8552, 29898, 3027, 11877, 29900, 396, 4969, 263, 9654, 304, 4216, 3454, 373, 30004, 13, 30004, 13, 1678, 396, 3166, 349, 23828, 6678, 29879, 1053, 16749, 7052, 29892, 330, 17019, 1999, 332, 322, 508, 1460, 3168, 373, 278, 3353, 1967, 30004, 13, 1678, 16749, 353, 6680, 29879, 29889, 21012, 7052, 29898, 3027, 8443, 13, 1678, 14770, 29889, 326, 4294, 29898, 21012, 29892, 274, 1958, 2433, 21012, 1495, 29871, 396, 21012, 7052, 1967, 30004, 13, 1678, 330, 17019, 29918, 2204, 332, 353, 6680, 29879, 29889, 29887, 17019, 29918, 2204, 332, 29898, 21012, 29892, 8466, 29918, 2311, 8443, 13, 1678, 14770, 29889, 326, 4294, 29898, 29887, 17019, 29918, 2204, 332, 8443, 13, 1678, 12770, 353, 6680, 29879, 29889, 29883, 14763, 29898, 29887, 17019, 29918, 2204, 332, 29892, 4482, 29918, 386, 12268, 29892, 1880, 29918, 386, 12268, 8443, 13, 1678, 14770, 29889, 326, 4294, 29898, 287, 2710, 29897, 259, 396, 26762, 7581, 1967, 6756, 13, 30004, 13, 1678, 396, 21749, 403, 580, 292, 7636, 1967, 29889, 6756, 13, 1678, 396, 4013, 674, 1207, 278, 3454, 266, 6541, 607, 674, 1371, 6216, 278, 379, 820, 3454, 2253, 30004, 13, 1678, 21749, 630, 353, 13850, 29906, 29889, 29881, 309, 403, 29898, 287, 2710, 29892, 7442, 29889, 2873, 3552, 29941, 29892, 29941, 511, 26688, 29922, 9302, 29889, 13470, 29947, 876, 30004, 13, 1678, 14770, 29889, 326, 4294, 29898, 29881, 309, 630, 8443, 13, 30004, 13, 1678, 396, 29907, 307, 3262, 278, 1967, 304, 2629, 278, 5120, 310, 4066, 30004, 13, 1678, 396, 326, 12181, 353, 1967, 29889, 12181, 30004, 13, 1678, 396, 1765, 1575, 353, 7442, 29889, 2378, 4197, 15625, 29896, 29946, 29900, 29892, 326, 12181, 29961, 29900, 11724, 29898, 29946, 29946, 29900, 29892, 29871, 29941, 29906, 29945, 511, 313, 29945, 29906, 29900, 29892, 29871, 29941, 29906, 29945, 511, 313, 29929, 29953, 29900, 29892, 326, 12181, 29961, 29900, 2314, 20526, 26688, 29922, 9302, 29889, 524, 29941, 29906, 8443, 13, 1678, 13791, 353, 7442, 29889, 2378, 4197, 15625, 29896, 29946, 29900, 29892, 29945, 29945, 29900, 21336, 29946, 29946, 29900, 29892, 29871, 29941, 29906, 29945, 511, 313, 29945, 29945, 29900, 29892, 29871, 29941, 29906, 29945, 511, 313, 29929, 29906, 29900, 29892, 29945, 29945, 29900, 4638, 1402, 26688, 29922, 9302, 29889, 524, 29941, 29906, 8443, 13, 1678, 396, 1552, 1302, 29899, 16065, 3978, 297, 278, 1967, 338, 2246, 29899, 1563, 11155, 310, 1967, 30004, 13, 1678, 6756, 13, 1678, 396, 1653, 263, 11105, 287, 12770, 1967, 30004, 13, 1678, 11105, 287, 29918, 3027, 353, 6680, 29879, 29889, 12803, 29918, 974, 29918, 1639, 342, 29898, 29881, 309, 630, 29892, 13791, 8443, 13, 1678, 14770, 29889, 326, 4294, 29898, 13168, 287, 29918, 3027, 29897, 1678, 396, 26762, 7581, 1967, 411, 3454, 2629, 10452, 1678, 6756, 13, 1678, 396, 2713, 1242, 278, 5120, 30004, 13, 1678, 396, 29916, 29892, 343, 353, 13791, 29889, 29911, 30004, 13, 1678, 396, 572, 29873, 29889, 5317, 29898, 29916, 29892, 343, 29892, 525, 29890, 489, 742, 301, 29893, 29922, 29946, 8443, 13, 1678, 6756, 13, 1678, 396, 6362, 522, 292, 8267, 12770, 297, 278, 9886, 313, 24077, 2986, 29897, 1967, 848, 30004, 13, 1678, 396, 2052, 5890, 278, 298, 820, 4327, 30004, 13, 1678, 298, 820, 29918, 2492, 353, 6680, 29879, 29889, 29882, 820, 29918, 9012, 29898, 13168, 287, 29918, 3027, 29892, 364, 1251, 29892, 278, 941, 29892, 16897, 29892, 1375, 29918, 1220, 29918, 2435, 29892, 4236, 29918, 1220, 29918, 29887, 481, 8443, 13, 30004, 13, 1678, 396, 3057, 292, 1962, 310, 298, 820, 29918, 2492, 30004, 13, 1678, 396, 2158, 29898, 29882, 820, 29918, 2492, 29889, 12181, 8443, 13, 1678, 396, 2158, 29898, 29882, 820, 29918, 2492, 8443, 13, 1678, 396, 1454, 474, 297, 3464, 29898, 29882, 820, 29918, 2492, 29889, 12181, 29961, 29900, 29962, 1125, 30004, 13, 1678, 396, 1678, 363, 432, 297, 3464, 29898, 29882, 820, 29918, 2492, 29889, 12181, 29961, 29896, 29962, 1125, 30004, 13, 1678, 396, 4706, 363, 413, 297, 3464, 29898, 29941, 1125, 30004, 13, 1678, 396, 9651, 565, 298, 820, 29918, 2492, 29961, 29875, 29892, 29926, 29892, 29895, 29962, 1405, 29871, 29896, 29872, 29899, 29946, 29901, 30004, 13, 1678, 396, 18884, 1596, 29898, 29875, 29892, 29926, 29892, 29895, 29892, 29882, 820, 29918, 2492, 29961, 29875, 29892, 29926, 29892, 29895, 2314, 30004, 13, 1678, 6756, 13, 1678, 14770, 29889, 326, 4294, 29898, 29882, 820, 29918, 2492, 29897, 539, 396, 4040, 9466, 2989, 7581, 1967, 411, 2654, 3454, 871, 30004, 13, 1678, 7688, 287, 29918, 2492, 353, 6680, 29879, 29889, 7915, 287, 29918, 2492, 29898, 29882, 820, 29918, 2492, 29892, 3027, 29892, 19883, 29922, 29900, 29889, 29947, 29892, 29871, 30187, 29922, 29896, 1696, 30197, 29922, 29900, 1846, 30004, 13, 1678, 14770, 29889, 326, 4294, 29898, 7915, 287, 29918, 2492, 29897, 1678, 396, 4040, 9466, 2441, 1967, 411, 3454, 12141, 287, 2654, 6756, 13, 1678, 6756, 13, 1678, 736, 7688, 287, 29918, 2492, 2 ]
tests/timers/PeriodicTimer.py
SLAcM/SLAcM
1
72700
<filename>tests/timers/PeriodicTimer.py<gh_stars>1-10 ''' Created on Sep 19, 2020 @author: esdev ''' from slacm.component import Component class PeriodicTimer(Component): def __init__(self): super(PeriodicTimer, self).__init__() def on_periodic(self): now = self.periodic.recv_pyobj() # Receive time (as float) self.logger.info('on_periodic():%s' % str(now)) period = self.periodic.getPeriod() # Query the period if period > 1.0: period = period - 1.0 else: period = 5.0 self.periodic.setPeriod(period) # Set the period self.logger.info('on_periodic(): setting period to %f' % period) msg = ('periodic',now) self.ticker.send_pyobj(msg)
[ 1, 529, 9507, 29958, 21150, 29914, 9346, 414, 29914, 29853, 293, 14745, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 12008, 13, 20399, 373, 29639, 29871, 29896, 29929, 29892, 29871, 29906, 29900, 29906, 29900, 13, 13, 29992, 8921, 29901, 831, 3359, 13, 12008, 13, 13, 3166, 269, 4620, 29885, 29889, 9700, 1053, 15924, 13, 13, 1990, 29498, 293, 14745, 29898, 5308, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 2428, 29898, 29853, 293, 14745, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 308, 13, 1678, 822, 373, 29918, 19145, 293, 29898, 1311, 1125, 13, 4706, 1286, 353, 1583, 29889, 19145, 293, 29889, 3757, 29894, 29918, 2272, 5415, 580, 18884, 396, 24328, 573, 931, 313, 294, 5785, 29897, 13, 4706, 1583, 29889, 21707, 29889, 3888, 877, 265, 29918, 19145, 293, 7295, 29995, 29879, 29915, 1273, 851, 29898, 3707, 876, 13, 4706, 3785, 353, 1583, 29889, 19145, 293, 29889, 657, 29853, 580, 795, 396, 13641, 278, 3785, 13, 4706, 565, 3785, 1405, 29871, 29896, 29889, 29900, 29901, 13, 9651, 3785, 353, 3785, 448, 29871, 29896, 29889, 29900, 13, 4706, 1683, 29901, 29871, 13, 9651, 3785, 353, 29871, 29945, 29889, 29900, 13, 4706, 1583, 29889, 19145, 293, 29889, 842, 29853, 29898, 19145, 29897, 632, 396, 3789, 278, 3785, 13, 4706, 1583, 29889, 21707, 29889, 3888, 877, 265, 29918, 19145, 293, 7295, 4444, 3785, 304, 1273, 29888, 29915, 1273, 3785, 29897, 13, 4706, 10191, 353, 6702, 19145, 293, 742, 3707, 29897, 13, 4706, 1583, 29889, 29873, 6541, 29889, 6717, 29918, 2272, 5415, 29898, 7645, 29897, 13, 308, 13, 308, 2 ]
src/genomehubs/lib/parse.py
genomehubs/genomehubs
7
139746
<filename>src/genomehubs/lib/parse.py #!/usr/bin/env python3 """ Parse a local or remote data source. Usage: genomehubs parse [--btk] [--btk-root STRING...] [--wikidata PATH] [--wikidata-root STRING...] [--wikidata-xref STRING...] [--gbif] [--gbif-root STRING...] [--gbif-xref STRING...] [--ncbi-datasets-genome PATH] [--outfile PATH] [--refseq-mitochondria] [--refseq-organelles] [--refseq-plastids] [--refseq-root NAME] [-h|--help] [-v|--version] Options: --btk Parse assemblies in BlobToolKit --btk-root STRING Scientific name of root taxon --gbif Parse taxa in GBIF --gbif-root STRING GBIF taxon ID of root taxon --gbif-xref STRING Include link to external reference from GBIF (e.g. NBN, BOLD) --wikidata PATH Parse taxa in WikiData dump --wikidata-root STRING WikiData taxon ID of root taxon --wikidata-xref STRING Include link to external reference from WikiData (e.g. NBN, BOLD) --ncbi-datasets-genome PATH Parse NCBI Datasets genome directory --outfile PATH Save parsed output to file --refseq-mitochondria Parse mitochondrial genomes from the NCBI RefSeq organelle collection --refseq-organelles Parse all genomes from the NCBI RefSeq organelle collection --refseq-plastids Parse plastid genomes from the NCBI RefSeq organelle collection --refseq-root NAME Name (not taxId) of root taxon -h, --help Show this -v, --version Show version number """ import re import sys from pathlib import Path from docopt import docopt from tolkein import tofile from tolkein import tolog from .btk import btk_parser from .config import config from .hub import load_types from .hub import order_parsed_fields # from .ncbi import ncbi_datasets_summary_parser from .ncbi import ncbi_genome_parser from .ncbi import refseq_organelle_parser from .version import __version__ from .wikidata import wikidata_parser LOGGER = tolog.logger(__name__) PARSERS = { "btk": {"func": btk_parser, "params": None, "types": "btk"}, "ncbi-datasets-genome": { "func": ncbi_genome_parser, "params": None, "types": "assembly", }, # "ncbi-datasets-summary": { # "func": ncbi_datasets_summary_parser, # "params": None, # "types": "assembly", # }, "refseq-mitochondria": { "func": refseq_organelle_parser, "params": ("mitochondrion"), "types": "organelle", }, "refseq-organelles": { "func": refseq_organelle_parser, "params": ("mitochondrion", "plastid"), "types": "organelle", }, "refseq-plastids": { "func": refseq_organelle_parser, "params": ("plastid"), "types": "organelle", }, "wikidata": {"func": wikidata_parser, "params": None, "types": "wikidata"}, } def main(args): """Parse data sources.""" options = config("parse", **args) for option in options["parse"]: if option in PARSERS: params = PARSERS[option]["params"] if params is None: params = options["parse"][option] LOGGER.info("Parsing %s" % option) types = load_types(PARSERS[option]["types"]) names = load_types(PARSERS[option]["types"], part="names") parsed = PARSERS[option]["func"]( params, options["parse"], types=types, names=names ) files = [] if isinstance(parsed, tuple): parsed, files = parsed data = order_parsed_fields(parsed, types, names) tofile.write_file(options["parse"]["outfile"], data) filepath = Path(options["parse"]["outfile"]) outdir = filepath.parent suff = re.compile(r"\.[^\.]+$") if filepath.name.endswith(".gz"): stem = re.sub(suff, "", filepath.stem) else: stem = filepath.stem if types: types["file"]["name"] = filepath.name tofile.write_file("%s/%s.types.yaml" % (outdir, stem), types) if names: names["file"]["name"] = filepath.name tofile.write_file("%s/%s.names.yaml" % (outdir, stem), names) if files: tofile.write_file("%s/%s.files.yaml" % (outdir, stem), files) def cli(): """Entry point.""" if len(sys.argv) == sys.argv.index("parse") + 1: args = docopt(__doc__, argv=[]) else: args = docopt(__doc__, version=__version__) main(args) if __name__ == "__main__": cli()
[ 1, 529, 9507, 29958, 4351, 29914, 1885, 608, 29882, 23954, 29914, 1982, 29914, 5510, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 13, 15945, 29908, 13, 12914, 263, 1887, 470, 7592, 848, 2752, 29889, 13, 13, 27573, 29901, 13, 1678, 2531, 608, 29882, 23954, 6088, 518, 489, 3116, 29895, 29962, 518, 489, 3116, 29895, 29899, 4632, 29486, 4214, 17361, 13, 462, 268, 518, 489, 2851, 333, 532, 23611, 29962, 518, 489, 2851, 333, 532, 29899, 4632, 29486, 4214, 17361, 518, 489, 2851, 333, 532, 29899, 29916, 999, 29486, 4214, 17361, 13, 462, 268, 518, 489, 26300, 361, 29962, 518, 489, 26300, 361, 29899, 4632, 29486, 4214, 17361, 518, 489, 26300, 361, 29899, 29916, 999, 29486, 4214, 17361, 13, 462, 268, 518, 489, 17608, 5365, 29899, 14538, 1691, 29899, 1885, 608, 23611, 29962, 518, 489, 449, 1445, 23611, 29962, 13, 462, 268, 518, 489, 999, 11762, 29899, 29885, 2049, 305, 898, 2849, 29962, 518, 489, 999, 11762, 29899, 6388, 4999, 29962, 13, 462, 268, 518, 489, 999, 11762, 29899, 572, 579, 4841, 29962, 518, 489, 999, 11762, 29899, 4632, 27085, 29962, 13, 462, 268, 21069, 29882, 29989, 489, 8477, 29962, 21069, 29894, 29989, 489, 3259, 29962, 13, 13, 5856, 29901, 13, 1678, 1192, 3116, 29895, 462, 4706, 20969, 24367, 3687, 297, 350, 2127, 12229, 13117, 13, 1678, 1192, 3116, 29895, 29899, 4632, 29486, 4214, 9651, 23753, 928, 1024, 310, 3876, 8818, 265, 13, 1678, 1192, 26300, 361, 462, 539, 20969, 8818, 29874, 297, 19289, 6545, 13, 1678, 1192, 26300, 361, 29899, 4632, 29486, 4214, 965, 19289, 6545, 8818, 265, 3553, 310, 3876, 8818, 265, 13, 1678, 1192, 26300, 361, 29899, 29916, 999, 29486, 4214, 965, 512, 2325, 1544, 304, 7029, 3407, 515, 19289, 6545, 313, 29872, 29889, 29887, 29889, 405, 29933, 29940, 29892, 350, 5607, 29928, 29897, 13, 1678, 1192, 2851, 333, 532, 23611, 795, 20969, 8818, 29874, 297, 3772, 29875, 1469, 16766, 13, 1678, 1192, 2851, 333, 532, 29899, 4632, 29486, 4214, 539, 3772, 29875, 1469, 8818, 265, 3553, 310, 3876, 8818, 265, 13, 1678, 1192, 2851, 333, 532, 29899, 29916, 999, 29486, 4214, 539, 512, 2325, 1544, 304, 7029, 3407, 515, 3772, 29875, 1469, 313, 29872, 29889, 29887, 29889, 405, 29933, 29940, 29892, 350, 5607, 29928, 29897, 13, 1678, 1192, 17608, 5365, 29899, 14538, 1691, 29899, 1885, 608, 23611, 29871, 20969, 25166, 12809, 13373, 294, 1691, 2531, 608, 3884, 13, 1678, 1192, 449, 1445, 23611, 1669, 16913, 21213, 1962, 304, 934, 13, 1678, 1192, 999, 11762, 29899, 29885, 2049, 305, 898, 2849, 4706, 20969, 1380, 2878, 898, 9315, 20853, 267, 515, 278, 25166, 12809, 9897, 23718, 13, 462, 462, 2894, 1808, 4333, 13, 1678, 1192, 999, 11762, 29899, 6388, 4999, 3986, 20969, 599, 20853, 267, 515, 278, 25166, 12809, 9897, 23718, 2894, 1808, 13, 462, 462, 4333, 13, 1678, 1192, 999, 11762, 29899, 572, 579, 4841, 9651, 20969, 715, 579, 333, 20853, 267, 515, 278, 25166, 12809, 9897, 23718, 2894, 1808, 13, 462, 462, 4333, 13, 1678, 1192, 999, 11762, 29899, 4632, 27085, 965, 4408, 313, 1333, 8818, 1204, 29897, 310, 3876, 8818, 265, 13, 1678, 448, 29882, 29892, 1192, 8477, 462, 259, 7704, 445, 13, 1678, 448, 29894, 29892, 1192, 3259, 18884, 7704, 1873, 1353, 13, 15945, 29908, 13, 13, 5215, 337, 13, 5215, 10876, 13, 3166, 2224, 1982, 1053, 10802, 13, 13, 3166, 437, 1111, 415, 1053, 437, 1111, 415, 13, 3166, 304, 29880, 446, 262, 1053, 304, 1445, 13, 3166, 304, 29880, 446, 262, 1053, 304, 1188, 13, 13, 3166, 869, 3116, 29895, 1053, 289, 11178, 29918, 16680, 13, 3166, 869, 2917, 1053, 2295, 13, 3166, 869, 29882, 431, 1053, 2254, 29918, 8768, 13, 3166, 869, 29882, 431, 1053, 1797, 29918, 862, 8485, 29918, 9621, 13, 13, 29937, 515, 869, 17608, 5365, 1053, 302, 29883, 5365, 29918, 14538, 1691, 29918, 7727, 29918, 16680, 13, 3166, 869, 17608, 5365, 1053, 302, 29883, 5365, 29918, 1885, 608, 29918, 16680, 13, 3166, 869, 17608, 5365, 1053, 2143, 11762, 29918, 6388, 1808, 29918, 16680, 13, 3166, 869, 3259, 1053, 4770, 3259, 1649, 13, 3166, 869, 2851, 333, 532, 1053, 281, 638, 333, 532, 29918, 16680, 13, 13, 14480, 17070, 353, 304, 1188, 29889, 21707, 22168, 978, 1649, 29897, 13, 13, 16320, 6304, 29903, 353, 426, 13, 1678, 376, 3116, 29895, 1115, 8853, 9891, 1115, 289, 11178, 29918, 16680, 29892, 376, 7529, 1115, 6213, 29892, 376, 8768, 1115, 376, 3116, 29895, 10758, 13, 1678, 376, 17608, 5365, 29899, 14538, 1691, 29899, 1885, 608, 1115, 426, 13, 4706, 376, 9891, 1115, 302, 29883, 5365, 29918, 1885, 608, 29918, 16680, 29892, 13, 4706, 376, 7529, 1115, 6213, 29892, 13, 4706, 376, 8768, 1115, 376, 26936, 613, 13, 1678, 2981, 13, 1678, 396, 376, 17608, 5365, 29899, 14538, 1691, 29899, 7727, 1115, 426, 13, 1678, 396, 268, 376, 9891, 1115, 302, 29883, 5365, 29918, 14538, 1691, 29918, 7727, 29918, 16680, 29892, 13, 1678, 396, 268, 376, 7529, 1115, 6213, 29892, 13, 1678, 396, 268, 376, 8768, 1115, 376, 26936, 613, 13, 1678, 396, 2981, 13, 1678, 376, 999, 11762, 29899, 29885, 2049, 305, 898, 2849, 1115, 426, 13, 4706, 376, 9891, 1115, 2143, 11762, 29918, 6388, 1808, 29918, 16680, 29892, 13, 4706, 376, 7529, 1115, 4852, 29885, 2049, 305, 898, 29878, 291, 4968, 13, 4706, 376, 8768, 1115, 376, 6388, 1808, 613, 13, 1678, 2981, 13, 1678, 376, 999, 11762, 29899, 6388, 4999, 1115, 426, 13, 4706, 376, 9891, 1115, 2143, 11762, 29918, 6388, 1808, 29918, 16680, 29892, 13, 4706, 376, 7529, 1115, 4852, 29885, 2049, 305, 898, 29878, 291, 613, 376, 572, 579, 333, 4968, 13, 4706, 376, 8768, 1115, 376, 6388, 1808, 613, 13, 1678, 2981, 13, 1678, 376, 999, 11762, 29899, 572, 579, 4841, 1115, 426, 13, 4706, 376, 9891, 1115, 2143, 11762, 29918, 6388, 1808, 29918, 16680, 29892, 13, 4706, 376, 7529, 1115, 4852, 572, 579, 333, 4968, 13, 4706, 376, 8768, 1115, 376, 6388, 1808, 613, 13, 1678, 2981, 13, 1678, 376, 2851, 333, 532, 1115, 8853, 9891, 1115, 281, 638, 333, 532, 29918, 16680, 29892, 376, 7529, 1115, 6213, 29892, 376, 8768, 1115, 376, 2851, 333, 532, 10758, 13, 29913, 13, 13, 13, 1753, 1667, 29898, 5085, 1125, 13, 1678, 9995, 12914, 848, 8974, 1213, 15945, 13, 1678, 3987, 353, 2295, 703, 5510, 613, 3579, 5085, 29897, 13, 13, 1678, 363, 2984, 297, 3987, 3366, 5510, 3108, 29901, 13, 4706, 565, 2984, 297, 349, 1718, 6304, 29903, 29901, 13, 9651, 8636, 353, 349, 1718, 6304, 29903, 29961, 3385, 29962, 3366, 7529, 3108, 13, 9651, 565, 8636, 338, 6213, 29901, 13, 18884, 8636, 353, 3987, 3366, 5510, 3108, 29961, 3385, 29962, 13, 9651, 25401, 17070, 29889, 3888, 703, 29925, 1503, 292, 1273, 29879, 29908, 1273, 2984, 29897, 13, 9651, 4072, 353, 2254, 29918, 8768, 29898, 16320, 6304, 29903, 29961, 3385, 29962, 3366, 8768, 20068, 13, 9651, 2983, 353, 2254, 29918, 8768, 29898, 16320, 6304, 29903, 29961, 3385, 29962, 3366, 8768, 12436, 760, 543, 7039, 1159, 13, 9651, 21213, 353, 349, 1718, 6304, 29903, 29961, 3385, 29962, 3366, 9891, 29908, 850, 13, 18884, 8636, 29892, 3987, 3366, 5510, 12436, 4072, 29922, 8768, 29892, 2983, 29922, 7039, 13, 9651, 1723, 13, 9651, 2066, 353, 5159, 13, 9651, 565, 338, 8758, 29898, 862, 8485, 29892, 18761, 1125, 13, 18884, 21213, 29892, 2066, 353, 21213, 13, 9651, 848, 353, 1797, 29918, 862, 8485, 29918, 9621, 29898, 862, 8485, 29892, 4072, 29892, 2983, 29897, 13, 9651, 304, 1445, 29889, 3539, 29918, 1445, 29898, 6768, 3366, 5510, 3108, 3366, 449, 1445, 12436, 848, 29897, 13, 9651, 934, 2084, 353, 10802, 29898, 6768, 3366, 5510, 3108, 3366, 449, 1445, 20068, 13, 9651, 714, 3972, 353, 934, 2084, 29889, 3560, 13, 9651, 9378, 353, 337, 29889, 12198, 29898, 29878, 26732, 7226, 3823, 5586, 24035, 1159, 13, 9651, 565, 934, 2084, 29889, 978, 29889, 1975, 2541, 17350, 18828, 29908, 1125, 13, 18884, 20805, 353, 337, 29889, 1491, 29898, 2146, 600, 29892, 12633, 934, 2084, 29889, 303, 331, 29897, 13, 9651, 1683, 29901, 13, 18884, 20805, 353, 934, 2084, 29889, 303, 331, 13, 9651, 565, 4072, 29901, 13, 18884, 4072, 3366, 1445, 3108, 3366, 978, 3108, 353, 934, 2084, 29889, 978, 13, 18884, 304, 1445, 29889, 3539, 29918, 1445, 11702, 29879, 22584, 29879, 29889, 8768, 29889, 25162, 29908, 1273, 313, 449, 3972, 29892, 20805, 511, 4072, 29897, 13, 9651, 565, 2983, 29901, 13, 18884, 2983, 3366, 1445, 3108, 3366, 978, 3108, 353, 934, 2084, 29889, 978, 13, 18884, 304, 1445, 29889, 3539, 29918, 1445, 11702, 29879, 22584, 29879, 29889, 7039, 29889, 25162, 29908, 1273, 313, 449, 3972, 29892, 20805, 511, 2983, 29897, 13, 9651, 565, 2066, 29901, 13, 18884, 304, 1445, 29889, 3539, 29918, 1445, 11702, 29879, 22584, 29879, 29889, 5325, 29889, 25162, 29908, 1273, 313, 449, 3972, 29892, 20805, 511, 2066, 29897, 13, 13, 13, 1753, 9335, 7295, 13, 1678, 9995, 9634, 1298, 1213, 15945, 13, 1678, 565, 7431, 29898, 9675, 29889, 19218, 29897, 1275, 10876, 29889, 19218, 29889, 2248, 703, 5510, 1159, 718, 29871, 29896, 29901, 13, 4706, 6389, 353, 437, 1111, 415, 22168, 1514, 1649, 29892, 1852, 29894, 11759, 2314, 13, 1678, 1683, 29901, 13, 4706, 6389, 353, 437, 1111, 415, 22168, 1514, 1649, 29892, 1873, 29922, 1649, 3259, 1649, 29897, 13, 1678, 1667, 29898, 5085, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 9335, 580, 13, 2 ]
piptools/repositories/local.py
simon-graham/pip-tools
0
195491
<reponame>simon-graham/pip-tools # coding: utf-8 from __future__ import absolute_import, division, print_function, unicode_literals from contextlib import contextmanager from pip._internal.utils.hashes import FAVORITE_HASH from .._compat import PIP_VERSION from .base import BaseRepository from piptools.utils import as_tuple, key_from_ireq, make_install_requirement def ireq_satisfied_by_existing_pin(ireq, existing_pin): """ Return True if the given InstallationRequirement is satisfied by the previously encountered version pin. """ version = next(iter(existing_pin.req.specifier)).version return ireq.req.specifier.contains( version, prereleases=existing_pin.req.specifier.prereleases ) class LocalRequirementsRepository(BaseRepository): """ The LocalRequirementsRepository proxied the _real_ repository by first checking if a requirement can be satisfied by existing pins (i.e. the result of a previous compile step). In effect, if a requirement can be satisfied with a version pinned in the requirements file, we prefer that version over the best match found in PyPI. This keeps updates to the requirements.txt down to a minimum. """ def __init__(self, existing_pins, proxied_repository, reuse_hashes=True): self._reuse_hashes = reuse_hashes self.repository = proxied_repository self.existing_pins = existing_pins @property def options(self): return self.repository.options @property def finder(self): return self.repository.finder @property def session(self): return self.repository.session @property def DEFAULT_INDEX_URL(self): return self.repository.DEFAULT_INDEX_URL def clear_caches(self): self.repository.clear_caches() def freshen_build_caches(self): self.repository.freshen_build_caches() def find_best_match(self, ireq, prereleases=None, prefer_local=""): key = key_from_ireq(ireq) existing_pin = self.existing_pins.get(key) if existing_pin and ireq_satisfied_by_existing_pin(ireq, existing_pin): project, version, _ = as_tuple(existing_pin) return make_install_requirement( project, version, ireq.extras, constraint=ireq.constraint ) else: return self.repository.find_best_match(ireq, prereleases, prefer_local) def get_dependencies(self, ireq): return self.repository.get_dependencies(ireq) def get_hashes(self, ireq): existing_pin = self._reuse_hashes and self.existing_pins.get( key_from_ireq(ireq) ) if existing_pin and ireq_satisfied_by_existing_pin(ireq, existing_pin): if PIP_VERSION[:2] <= (20, 0): hashes = existing_pin.options.get("hashes", {}) else: hashes = existing_pin.hash_options hexdigests = hashes.get(FAVORITE_HASH) if hexdigests: return { ":".join([FAVORITE_HASH, hexdigest]) for hexdigest in hexdigests } return self.repository.get_hashes(ireq) @contextmanager def allow_all_wheels(self): with self.repository.allow_all_wheels(): yield def copy_ireq_dependencies(self, source, dest): self.repository.copy_ireq_dependencies(source, dest)
[ 1, 529, 276, 1112, 420, 29958, 3601, 265, 29899, 3874, 3391, 29914, 13096, 29899, 8504, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 29892, 8542, 29892, 1596, 29918, 2220, 29892, 29104, 29918, 20889, 1338, 13, 13, 3166, 3030, 1982, 1053, 3030, 12847, 13, 13, 3166, 8450, 3032, 7564, 29889, 13239, 29889, 8568, 267, 1053, 383, 7520, 1955, 9094, 29918, 29950, 24943, 13, 13, 3166, 6317, 29918, 12667, 1053, 349, 5690, 29918, 16358, 13, 3166, 869, 3188, 1053, 7399, 11481, 13, 13, 3166, 2930, 415, 8789, 29889, 13239, 1053, 408, 29918, 23583, 29892, 1820, 29918, 3166, 29918, 533, 29939, 29892, 1207, 29918, 6252, 29918, 12277, 358, 13, 13, 13, 1753, 474, 7971, 29918, 29879, 27685, 1000, 29918, 1609, 29918, 735, 15423, 29918, 12687, 29898, 533, 29939, 29892, 5923, 29918, 12687, 1125, 13, 1678, 9995, 13, 1678, 7106, 5852, 565, 278, 2183, 16052, 362, 1123, 1548, 358, 338, 15787, 491, 278, 13, 1678, 9251, 18169, 1873, 12534, 29889, 13, 1678, 9995, 13, 1678, 1873, 353, 2446, 29898, 1524, 29898, 735, 15423, 29918, 12687, 29889, 7971, 29889, 6550, 3709, 8106, 3259, 13, 1678, 736, 474, 7971, 29889, 7971, 29889, 6550, 3709, 29889, 11516, 29898, 13, 4706, 1873, 29892, 544, 406, 17836, 29922, 735, 15423, 29918, 12687, 29889, 7971, 29889, 6550, 3709, 29889, 558, 406, 17836, 13, 1678, 1723, 13, 13, 13, 1990, 9959, 1123, 1548, 1860, 11481, 29898, 5160, 11481, 1125, 13, 1678, 9995, 13, 1678, 450, 9959, 1123, 1548, 1860, 11481, 410, 29916, 1000, 278, 903, 6370, 29918, 9810, 491, 937, 13, 1678, 8454, 565, 263, 11809, 508, 367, 15787, 491, 5923, 282, 1144, 313, 29875, 29889, 29872, 29889, 278, 13, 1678, 1121, 310, 263, 3517, 6633, 4331, 467, 13, 13, 1678, 512, 2779, 29892, 565, 263, 11809, 508, 367, 15787, 411, 263, 1873, 282, 27464, 297, 278, 13, 1678, 11780, 934, 29892, 591, 5821, 393, 1873, 975, 278, 1900, 1993, 1476, 297, 13, 1678, 10772, 2227, 29889, 29871, 910, 14874, 11217, 304, 278, 11780, 29889, 3945, 1623, 304, 263, 9212, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 5923, 29918, 29886, 1144, 29892, 410, 29916, 1000, 29918, 19033, 29892, 24270, 29918, 8568, 267, 29922, 5574, 1125, 13, 4706, 1583, 3032, 276, 1509, 29918, 8568, 267, 353, 24270, 29918, 8568, 267, 13, 4706, 1583, 29889, 19033, 353, 410, 29916, 1000, 29918, 19033, 13, 4706, 1583, 29889, 735, 15423, 29918, 29886, 1144, 353, 5923, 29918, 29886, 1144, 13, 13, 1678, 732, 6799, 13, 1678, 822, 3987, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 19033, 29889, 6768, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1284, 261, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 19033, 29889, 2886, 261, 13, 13, 1678, 732, 6799, 13, 1678, 822, 4867, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 19033, 29889, 7924, 13, 13, 1678, 732, 6799, 13, 1678, 822, 22236, 29918, 27992, 29918, 4219, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 19033, 29889, 23397, 29918, 27992, 29918, 4219, 13, 13, 1678, 822, 2821, 29918, 29883, 14520, 29898, 1311, 1125, 13, 4706, 1583, 29889, 19033, 29889, 8551, 29918, 29883, 14520, 580, 13, 13, 1678, 822, 29595, 3169, 29918, 4282, 29918, 29883, 14520, 29898, 1311, 1125, 13, 4706, 1583, 29889, 19033, 29889, 29888, 690, 3169, 29918, 4282, 29918, 29883, 14520, 580, 13, 13, 1678, 822, 1284, 29918, 13318, 29918, 4352, 29898, 1311, 29892, 474, 7971, 29892, 544, 406, 17836, 29922, 8516, 29892, 5821, 29918, 2997, 13776, 1125, 13, 4706, 1820, 353, 1820, 29918, 3166, 29918, 533, 29939, 29898, 533, 29939, 29897, 13, 4706, 5923, 29918, 12687, 353, 1583, 29889, 735, 15423, 29918, 29886, 1144, 29889, 657, 29898, 1989, 29897, 13, 4706, 565, 5923, 29918, 12687, 322, 474, 7971, 29918, 29879, 27685, 1000, 29918, 1609, 29918, 735, 15423, 29918, 12687, 29898, 533, 29939, 29892, 5923, 29918, 12687, 1125, 13, 9651, 2060, 29892, 1873, 29892, 903, 353, 408, 29918, 23583, 29898, 735, 15423, 29918, 12687, 29897, 13, 9651, 736, 1207, 29918, 6252, 29918, 12277, 358, 29898, 13, 18884, 2060, 29892, 1873, 29892, 474, 7971, 29889, 1062, 3417, 29892, 7276, 29922, 533, 29939, 29889, 13646, 13, 9651, 1723, 13, 4706, 1683, 29901, 13, 9651, 736, 1583, 29889, 19033, 29889, 2886, 29918, 13318, 29918, 4352, 29898, 533, 29939, 29892, 544, 406, 17836, 29892, 5821, 29918, 2997, 29897, 13, 13, 1678, 822, 679, 29918, 22594, 29898, 1311, 29892, 474, 7971, 1125, 13, 4706, 736, 1583, 29889, 19033, 29889, 657, 29918, 22594, 29898, 533, 29939, 29897, 13, 13, 1678, 822, 679, 29918, 8568, 267, 29898, 1311, 29892, 474, 7971, 1125, 13, 4706, 5923, 29918, 12687, 353, 1583, 3032, 276, 1509, 29918, 8568, 267, 322, 1583, 29889, 735, 15423, 29918, 29886, 1144, 29889, 657, 29898, 13, 9651, 1820, 29918, 3166, 29918, 533, 29939, 29898, 533, 29939, 29897, 13, 4706, 1723, 13, 4706, 565, 5923, 29918, 12687, 322, 474, 7971, 29918, 29879, 27685, 1000, 29918, 1609, 29918, 735, 15423, 29918, 12687, 29898, 533, 29939, 29892, 5923, 29918, 12687, 1125, 13, 9651, 565, 349, 5690, 29918, 16358, 7503, 29906, 29962, 5277, 313, 29906, 29900, 29892, 29871, 29900, 1125, 13, 18884, 6608, 267, 353, 5923, 29918, 12687, 29889, 6768, 29889, 657, 703, 8568, 267, 613, 426, 1800, 13, 9651, 1683, 29901, 13, 18884, 6608, 267, 353, 5923, 29918, 12687, 29889, 8568, 29918, 6768, 13, 9651, 15090, 7501, 9197, 353, 6608, 267, 29889, 657, 29898, 4519, 29963, 1955, 9094, 29918, 29950, 24943, 29897, 13, 9651, 565, 15090, 7501, 9197, 29901, 13, 18884, 736, 426, 13, 462, 1678, 29242, 1642, 7122, 4197, 4519, 29963, 1955, 9094, 29918, 29950, 24943, 29892, 15090, 7501, 342, 2314, 363, 15090, 7501, 342, 297, 15090, 7501, 9197, 13, 18884, 500, 13, 4706, 736, 1583, 29889, 19033, 29889, 657, 29918, 8568, 267, 29898, 533, 29939, 29897, 13, 13, 1678, 732, 4703, 12847, 13, 1678, 822, 2758, 29918, 497, 29918, 29893, 354, 1379, 29898, 1311, 1125, 13, 4706, 411, 1583, 29889, 19033, 29889, 9536, 29918, 497, 29918, 29893, 354, 1379, 7295, 13, 9651, 7709, 13, 13, 1678, 822, 3509, 29918, 533, 29939, 29918, 22594, 29898, 1311, 29892, 2752, 29892, 2731, 1125, 13, 4706, 1583, 29889, 19033, 29889, 8552, 29918, 533, 29939, 29918, 22594, 29898, 4993, 29892, 2731, 29897, 13, 2 ]
carrito_app/baseclasses/compras.py
fortegaseguel/Mi-Carrito
0
1613756
<gh_stars>0 from kivy.uix.boxlayout import BoxLayout from kivy.uix.tabbedpanel import TabbedPanel from kivy.uix.popup import Popup import sqlite3 def connect_to_database(path): try: con = sqlite3.connect(path) cursor = con.cursor() create_table_insumos(cursor) con.commit() con.close() except Exception as e: print(e) def create_table_insumos(cursor): cursor.execute( ''' CREATE TABLE if not exists insumos( id INTEGER, producto VARCHAR(100), cantidad INTEGER, unidad VARCHAR(5), categoria VARCHAR(100), costo INTEGER, fecha DATE DEFAULT(DATE('now', 'localtime')), PRIMARY KEY(id AUTOINCREMENT) )''' ) class MessagePopup(Popup): pass class DataBaseWidCompras(BoxLayout): def __init__(self, mainwid, **kwargs): super(DataBaseWidCompras, self).__init__() self.mainwid = mainwid def check_memory_insumos(self): self.ids.container.clear_widgets() con = sqlite3.connect(self.mainwid.DB_PATH) cursor = con.cursor() cursor.execute( 'select ID, producto, cantidad, unidad, categoria, costo, fecha from insumos') lista = cursor.fetchall() lista.reverse() for i in lista: wid = DataWidCompras(self.mainwid) r0 = '\n' r1 = f'id: {i[0]}\n' r2 = f'Producto: {i[1]}\n' r3 = f'En almacen: {i[2]} {i[3]}\n' r4 = f'Categoria: {i[4]}\n' r5 = f'Costo por unidad: ${i[5]}\n' r6 = f'Fecha de Ingreso: {i[6]}\n' wid.data_id = str(i[0]) wid.data = r0+r1+r2+r3+r4+r5+r6 self.ids.container.add_widget(wid) con.close() def create_new_product(self): self.mainwid.goto_insertdata_compras() class UpdateDataWidCompras(BoxLayout): def __init__(self, mainwid, data_id, **kwargs): super(UpdateDataWidCompras, self).__init__() self.mainwid = mainwid self.data_id = data_id self.check_memory_insumos() def check_memory_insumos(self): con = sqlite3.connect(self.mainwid.DB_PATH) cursor = con.cursor() s = 'select ID, producto, cantidad, unidad, categoria, costo from insumos where ID=' cursor.execute(s+self.data_id) for i in cursor: self.ids.ti_producto.text = i[1] self.ids.ti_cantidad.text = str(i[2]) self.ids.ti_unidad.text = i[3] self.ids.ti_categoria.text = i[4] self.ids.ti_costo.text = str(i[5]) con.close() def select_unidad(self, value): self.ids.ti_unidad.text = f'{value}' def select_categoria(self, value): self.ids.ti_categoria.text = f'{value}' def update_data_compras(self): con = sqlite3.connect(self.mainwid.DB_PATH) cursor = con.cursor() d1 = str(self.ids.ti_producto.text) d2 = str(self.ids.ti_cantidad.text) d3 = str(self.ids.ti_unidad.text) d4 = str(self.ids.ti_categoria.text) d5 = str(self.ids.ti_costo.text) a1 = (d1, d2, d3, d4, d5) s1 = 'UPDATE insumos SET' s2 = 'producto= "%s",cantidad= "%s", unidad= "%s", categoria= "%s", costo= "%s"' % a1 s3 = 'WHERE ID= %s' % self.data_id try: cursor.execute(s1+' '+s2+' '+s3) con.commit() con.close() self.mainwid.goto_database_compras() except Exception as e: message = self.mainwid.Popup.ids.message self.mainwid.Popup.open() self.mainwid.Popup.title = "Data base error" if '' in a1: message.text = 'Uno o más campos están vacíos' else: message.text = str(e) con.close() def delete_data(self): con = sqlite3.connect(self.mainwid.DB_PATH) cursor = con.cursor() s = 'delete from insumos where ID='+self.data_id cursor.execute(s) con.commit() con.close() self.mainwid.goto_database_compras() def back_to_dbw(self): self.mainwid.goto_database_compras() class InsertDataWidCompras(TabbedPanel): def __init__(self, mainwid, **kwargs): super(InsertDataWidCompras, self).__init__() self.mainwid = mainwid def ingreso_rapido(self, value): self.ids.ti_categoria.text = f'{value}' def insert_datafast(self): if self.ids.ti_categoria.text == 'Pack Bebidas': d1 = self.ids.ti_producto_rapido.text d2 = self.ids.ti_cantidadd.text d3 = 'Un' d4 = 'Bebidas' d5 = self.ids.ti_costoo.text a1 = (d1,d2,d3,d4,d5) print(a1) elif self.ids.ti_categoria.text == 'Papas Fritas': d1 = self.ids.ti_producto_rapido.text d2 = self.ids.ti_cantidadd.text d3 = 'Kg' d4 = 'Congelados' d5 = self.ids.ti_costoo.text a1 = (d1,d2,d3,d4,d5) print(a1) elif self.ids.ti_categoria.text == 'Proteina Congelada': d1 = self.ids.ti_producto_rapido.text d2 = self.ids.ti_cantidadd.text d3 = 'Kg' d4 = 'Congelados' d5 = self.ids.ti_costoo.text a1 = (d1,d2,d3,d4,d5) print(a1) elif self.ids.ti_categoria.text == 'Pan': d1 = self.ids.ti_producto_rapido.text d2 = self.ids.ti_cantidadd.text d3 = 'Un' d4 = 'Pan' d5 = self.ids.ti_costoo.text a1 = (d1,d2,d3,d4,d5) print(a1) elif self.ids.ti_categoria.text == 'Fajitas': d1 = self.ids.ti_producto_rapido.text d2 = self.ids.ti_cantidadd.text d3 = 'Un' d4 = 'Pan' d5 = self.ids.ti_costoo.text a1 = (d1,d2,d3,d4,d5) print(a1) elif self.ids.ti_categoria.text == 'Verduras': d1 = self.ids.ti_producto_rapido.text d2 = self.ids.ti_cantidadd.text d3 = 'Kg' d4 = 'No Congelados' d5 = self.ids.ti_costoo.text a1 = (d1,d2,d3,d4,d5) print(a1) elif self.ids.ti_categoria.text == 'Bencina': d1 = self.ids.ti_producto_rapido.text d2 = self.ids.ti_cantidadd.text d3 = 'Lts' d4 = 'Combustible' d5 = self.ids.ti_costoo.text a1 = (d1,d2,d3,d4,d5) print(a1) elif self.ids.ti_categoria.text == 'Pago Jornada': d1 = self.ids.ti_producto_rapido.text d2 = self.ids.ti_cantidadd.text d3 = 'Un' d4 = 'Personal' d5 = self.ids.ti_costoo.text a1 = (d1,d2,d3,d4,d5) print(a1) con = sqlite3.connect(self.mainwid.DB_PATH) cursor = con.cursor() s1 = 'INSERT INTO insumos(producto, cantidad, unidad, categoria, costo)' s2 = 'VALUES("%s", "%s", "%s", "%s", "%s")' % a1 try: cursor.execute(s1+' '+s2) con.commit() con.close() self.mainwid.goto_insertdata_compras() except Exception as e: message = self.mainwid.Popup.ids.message self.mainwid.Popup.open() self.mainwid.Popup.title = "Data base error" if '' in a1: message.text = 'Uno o más campos están vacíos' else: message.text = str(e) con.close() def select_unidad(self, value): self.ids.ti_unidad.text = f'{value}' def select_categoria(self, value): self.ids.ti_categoria.text = f'{value}' def insert_data(self): con = sqlite3.connect(self.mainwid.DB_PATH) cursor = con.cursor() d1 = self.ids.ti_producto.text d2 = self.ids.ti_cantidad.text d3 = self.ids.ti_unidad.text d4 = self.ids.ti_categoria.text d5 = self.ids.ti_costo.text a1 = (d1, d2, d3, d4, d5) s1 = 'INSERT INTO insumos(producto, cantidad, unidad, categoria, costo)' s2 = 'VALUES("%s", "%s", "%s", "%s", "%s")' % a1 try: cursor.execute(s1+' '+s2) con.commit() con.close() self.mainwid.goto_insertdata_compras() except Exception as e: message = self.mainwid.Popup.ids.message self.mainwid.Popup.open() self.mainwid.Popup.title = "Data base error" if '' in a1: message.text = 'Uno o más campos están vacíos' else: message.text = str(e) con.close() def back_to_dbw(self): self.mainwid.goto_database_compras() class DataWidCompras(BoxLayout): def __init__(self, mainwid, **kwargs): super(DataWidCompras, self).__init__() self.mainwid = mainwid def update_data_compras(self, data_id): self.mainwid.goto_updatedata_compras(data_id)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 413, 440, 29891, 29889, 29884, 861, 29889, 1884, 2680, 1053, 11773, 3453, 13, 3166, 413, 440, 29891, 29889, 29884, 861, 29889, 3891, 2580, 15119, 1053, 11090, 2580, 7490, 13, 3166, 413, 440, 29891, 29889, 29884, 861, 29889, 7323, 786, 1053, 6977, 786, 13, 5215, 21120, 29941, 13, 13, 1753, 4511, 29918, 517, 29918, 9803, 29898, 2084, 1125, 13, 1678, 1018, 29901, 13, 4706, 378, 353, 21120, 29941, 29889, 6915, 29898, 2084, 29897, 13, 4706, 10677, 353, 378, 29889, 18127, 580, 13, 4706, 1653, 29918, 2371, 29918, 1144, 398, 359, 29898, 18127, 29897, 13, 4706, 378, 29889, 15060, 580, 13, 4706, 378, 29889, 5358, 580, 13, 1678, 5174, 8960, 408, 321, 29901, 13, 4706, 1596, 29898, 29872, 29897, 13, 13, 13, 1753, 1653, 29918, 2371, 29918, 1144, 398, 359, 29898, 18127, 1125, 13, 1678, 10677, 29889, 7978, 29898, 13, 4706, 14550, 13, 4706, 14602, 10911, 565, 451, 4864, 1663, 398, 359, 29898, 13, 4706, 1178, 2672, 4330, 17070, 29892, 29871, 13, 4706, 3234, 29877, 21748, 29898, 29896, 29900, 29900, 511, 13, 4706, 5107, 2368, 2672, 4330, 17070, 29892, 13, 4706, 443, 2368, 21748, 29898, 29945, 511, 13, 4706, 6107, 4108, 21748, 29898, 29896, 29900, 29900, 511, 13, 4706, 3438, 29877, 2672, 4330, 17070, 29892, 13, 4706, 29100, 20231, 22236, 29898, 6248, 877, 3707, 742, 525, 2997, 2230, 1495, 511, 13, 4706, 29778, 14636, 29898, 333, 26524, 6992, 22245, 13780, 29897, 13, 4706, 1723, 12008, 13, 1678, 1723, 13, 13, 13, 1990, 7777, 12310, 786, 29898, 12310, 786, 1125, 13, 1678, 1209, 13, 13, 13, 13, 13, 1990, 3630, 5160, 29956, 333, 1523, 558, 294, 29898, 3313, 3453, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1667, 9163, 29892, 3579, 19290, 1125, 13, 4706, 2428, 29898, 1469, 5160, 29956, 333, 1523, 558, 294, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 3396, 9163, 353, 1667, 9163, 13, 13, 1678, 822, 1423, 29918, 14834, 29918, 1144, 398, 359, 29898, 1311, 1125, 13, 4706, 1583, 29889, 4841, 29889, 7611, 29889, 8551, 29918, 8030, 29879, 580, 13, 4706, 378, 353, 21120, 29941, 29889, 6915, 29898, 1311, 29889, 3396, 9163, 29889, 4051, 29918, 10145, 29897, 13, 4706, 10677, 353, 378, 29889, 18127, 580, 13, 4706, 10677, 29889, 7978, 29898, 13, 9651, 525, 2622, 3553, 29892, 3234, 29877, 29892, 5107, 2368, 29892, 443, 2368, 29892, 6107, 4108, 29892, 3438, 29877, 29892, 29100, 515, 1663, 398, 359, 1495, 13, 13, 4706, 15023, 353, 10677, 29889, 9155, 497, 580, 13, 4706, 15023, 29889, 24244, 580, 13, 13, 4706, 363, 474, 297, 15023, 29901, 13, 9651, 9449, 353, 3630, 29956, 333, 1523, 558, 294, 29898, 1311, 29889, 3396, 9163, 29897, 13, 9651, 364, 29900, 353, 11297, 29876, 29915, 13, 9651, 364, 29896, 353, 285, 29915, 333, 29901, 426, 29875, 29961, 29900, 29962, 1012, 29876, 29915, 13, 9651, 364, 29906, 353, 285, 29915, 7566, 29877, 29901, 426, 29875, 29961, 29896, 29962, 1012, 29876, 29915, 13, 9651, 364, 29941, 353, 285, 29915, 2369, 394, 8628, 264, 29901, 426, 29875, 29961, 29906, 12258, 426, 29875, 29961, 29941, 29962, 1012, 29876, 29915, 13, 9651, 364, 29946, 353, 285, 29915, 29907, 1845, 4108, 29901, 426, 29875, 29961, 29946, 29962, 1012, 29876, 29915, 13, 9651, 364, 29945, 353, 285, 29915, 29907, 5548, 1277, 443, 2368, 29901, 6435, 29875, 29961, 29945, 29962, 1012, 29876, 29915, 13, 9651, 364, 29953, 353, 285, 29915, 29943, 5309, 29874, 316, 512, 7201, 29877, 29901, 426, 29875, 29961, 29953, 29962, 1012, 29876, 29915, 13, 9651, 9449, 29889, 1272, 29918, 333, 353, 851, 29898, 29875, 29961, 29900, 2314, 13, 9651, 9449, 29889, 1272, 353, 364, 29900, 29974, 29878, 29896, 29974, 29878, 29906, 29974, 29878, 29941, 29974, 29878, 29946, 29974, 29878, 29945, 29974, 29878, 29953, 13, 9651, 1583, 29889, 4841, 29889, 7611, 29889, 1202, 29918, 8030, 29898, 9163, 29897, 13, 13, 4706, 378, 29889, 5358, 580, 13, 13, 1678, 822, 1653, 29918, 1482, 29918, 4704, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3396, 9163, 29889, 27102, 29918, 7851, 1272, 29918, 510, 558, 294, 580, 13, 13, 1990, 10318, 1469, 29956, 333, 1523, 558, 294, 29898, 3313, 3453, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1667, 9163, 29892, 848, 29918, 333, 29892, 3579, 19290, 1125, 13, 4706, 2428, 29898, 6422, 1469, 29956, 333, 1523, 558, 294, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 3396, 9163, 353, 1667, 9163, 13, 4706, 1583, 29889, 1272, 29918, 333, 353, 848, 29918, 333, 13, 4706, 1583, 29889, 3198, 29918, 14834, 29918, 1144, 398, 359, 580, 13, 13, 1678, 822, 1423, 29918, 14834, 29918, 1144, 398, 359, 29898, 1311, 1125, 13, 4706, 378, 353, 21120, 29941, 29889, 6915, 29898, 1311, 29889, 3396, 9163, 29889, 4051, 29918, 10145, 29897, 13, 4706, 10677, 353, 378, 29889, 18127, 580, 13, 4706, 269, 353, 525, 2622, 3553, 29892, 3234, 29877, 29892, 5107, 2368, 29892, 443, 2368, 29892, 6107, 4108, 29892, 3438, 29877, 515, 1663, 398, 359, 988, 3553, 2433, 13, 4706, 10677, 29889, 7978, 29898, 29879, 29974, 1311, 29889, 1272, 29918, 333, 29897, 13, 13, 4706, 363, 474, 297, 10677, 29901, 13, 9651, 1583, 29889, 4841, 29889, 2034, 29918, 4704, 29877, 29889, 726, 353, 474, 29961, 29896, 29962, 13, 9651, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 424, 2368, 29889, 726, 353, 851, 29898, 29875, 29961, 29906, 2314, 13, 9651, 1583, 29889, 4841, 29889, 2034, 29918, 348, 2368, 29889, 726, 353, 474, 29961, 29941, 29962, 13, 9651, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 353, 474, 29961, 29946, 29962, 13, 9651, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 5548, 29889, 726, 353, 851, 29898, 29875, 29961, 29945, 2314, 13, 4706, 378, 29889, 5358, 580, 13, 13, 13, 1678, 822, 1831, 29918, 348, 2368, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 29889, 4841, 29889, 2034, 29918, 348, 2368, 29889, 726, 353, 285, 29915, 29912, 1767, 10162, 13, 13, 1678, 822, 1831, 29918, 29883, 1845, 4108, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 353, 285, 29915, 29912, 1767, 10162, 13, 13, 13, 1678, 822, 2767, 29918, 1272, 29918, 510, 558, 294, 29898, 1311, 1125, 13, 4706, 378, 353, 21120, 29941, 29889, 6915, 29898, 1311, 29889, 3396, 9163, 29889, 4051, 29918, 10145, 29897, 13, 4706, 10677, 353, 378, 29889, 18127, 580, 13, 13, 4706, 270, 29896, 353, 851, 29898, 1311, 29889, 4841, 29889, 2034, 29918, 4704, 29877, 29889, 726, 29897, 13, 4706, 270, 29906, 353, 851, 29898, 1311, 29889, 4841, 29889, 2034, 29918, 29883, 424, 2368, 29889, 726, 29897, 13, 4706, 270, 29941, 353, 851, 29898, 1311, 29889, 4841, 29889, 2034, 29918, 348, 2368, 29889, 726, 29897, 13, 4706, 270, 29946, 353, 851, 29898, 1311, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 29897, 13, 4706, 270, 29945, 353, 851, 29898, 1311, 29889, 4841, 29889, 2034, 29918, 29883, 5548, 29889, 726, 29897, 13, 13, 4706, 263, 29896, 353, 313, 29881, 29896, 29892, 270, 29906, 29892, 270, 29941, 29892, 270, 29946, 29892, 270, 29945, 29897, 13, 4706, 269, 29896, 353, 525, 14474, 1663, 398, 359, 11368, 29915, 13, 4706, 269, 29906, 353, 525, 4704, 29877, 29922, 11860, 29879, 613, 29883, 424, 2368, 29922, 11860, 29879, 613, 443, 2368, 29922, 11860, 29879, 613, 6107, 4108, 29922, 11860, 29879, 613, 3438, 29877, 29922, 11860, 29879, 29908, 29915, 1273, 263, 29896, 13, 4706, 269, 29941, 353, 525, 22043, 3553, 29922, 1273, 29879, 29915, 1273, 1583, 29889, 1272, 29918, 333, 13, 13, 4706, 1018, 29901, 13, 9651, 10677, 29889, 7978, 29898, 29879, 29896, 23097, 525, 29974, 29879, 29906, 23097, 525, 29974, 29879, 29941, 29897, 13, 9651, 378, 29889, 15060, 580, 13, 9651, 378, 29889, 5358, 580, 13, 9651, 1583, 29889, 3396, 9163, 29889, 27102, 29918, 9803, 29918, 510, 558, 294, 580, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 2643, 353, 1583, 29889, 3396, 9163, 29889, 12310, 786, 29889, 4841, 29889, 4906, 13, 9651, 1583, 29889, 3396, 9163, 29889, 12310, 786, 29889, 3150, 580, 13, 9651, 1583, 29889, 3396, 9163, 29889, 12310, 786, 29889, 3257, 353, 376, 1469, 2967, 1059, 29908, 13, 13, 9651, 565, 6629, 297, 263, 29896, 29901, 13, 18884, 2643, 29889, 726, 353, 525, 29965, 1217, 288, 3627, 3949, 1066, 21654, 11757, 27251, 29915, 13, 9651, 1683, 29901, 13, 18884, 2643, 29889, 726, 353, 851, 29898, 29872, 29897, 13, 9651, 378, 29889, 5358, 580, 13, 13, 1678, 822, 5217, 29918, 1272, 29898, 1311, 1125, 13, 4706, 378, 353, 21120, 29941, 29889, 6915, 29898, 1311, 29889, 3396, 9163, 29889, 4051, 29918, 10145, 29897, 13, 4706, 10677, 353, 378, 29889, 18127, 580, 13, 4706, 269, 353, 525, 8143, 515, 1663, 398, 359, 988, 3553, 2433, 29974, 1311, 29889, 1272, 29918, 333, 13, 4706, 10677, 29889, 7978, 29898, 29879, 29897, 13, 4706, 378, 29889, 15060, 580, 13, 4706, 378, 29889, 5358, 580, 13, 4706, 1583, 29889, 3396, 9163, 29889, 27102, 29918, 9803, 29918, 510, 558, 294, 580, 13, 13, 1678, 822, 1250, 29918, 517, 29918, 2585, 29893, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3396, 9163, 29889, 27102, 29918, 9803, 29918, 510, 558, 294, 580, 13, 13, 13, 1990, 24505, 1469, 29956, 333, 1523, 558, 294, 29898, 8863, 2580, 7490, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1667, 9163, 29892, 3579, 19290, 1125, 13, 4706, 2428, 29898, 17491, 1469, 29956, 333, 1523, 558, 294, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 3396, 9163, 353, 1667, 9163, 13, 13, 1678, 822, 2348, 28857, 29918, 2390, 1941, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 353, 285, 29915, 29912, 1767, 10162, 13, 13, 13, 1678, 822, 4635, 29918, 1272, 11255, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 1275, 525, 16638, 350, 774, 8817, 2396, 13, 9651, 270, 29896, 353, 1583, 29889, 4841, 29889, 2034, 29918, 4704, 29877, 29918, 2390, 1941, 29889, 726, 13, 9651, 270, 29906, 353, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 424, 333, 1202, 29889, 726, 13, 9651, 270, 29941, 353, 525, 2525, 29915, 13, 9651, 270, 29946, 353, 525, 29933, 774, 8817, 29915, 13, 9651, 270, 29945, 353, 1583, 29889, 4841, 29889, 2034, 29918, 18253, 3634, 29889, 726, 13, 13, 9651, 263, 29896, 353, 313, 29881, 29896, 29892, 29881, 29906, 29892, 29881, 29941, 29892, 29881, 29946, 29892, 29881, 29945, 29897, 13, 9651, 1596, 29898, 29874, 29896, 29897, 13, 13, 4706, 25342, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 1275, 525, 29925, 481, 294, 383, 768, 294, 2396, 13, 9651, 270, 29896, 353, 1583, 29889, 4841, 29889, 2034, 29918, 4704, 29877, 29918, 2390, 1941, 29889, 726, 13, 9651, 270, 29906, 353, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 424, 333, 1202, 29889, 726, 13, 9651, 270, 29941, 353, 525, 29968, 29887, 29915, 13, 9651, 270, 29946, 353, 525, 29907, 549, 295, 2255, 29915, 13, 9651, 270, 29945, 353, 1583, 29889, 4841, 29889, 2034, 29918, 18253, 3634, 29889, 726, 13, 13, 9651, 263, 29896, 353, 313, 29881, 29896, 29892, 29881, 29906, 29892, 29881, 29941, 29892, 29881, 29946, 29892, 29881, 29945, 29897, 13, 9651, 1596, 29898, 29874, 29896, 29897, 13, 13, 4706, 25342, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 1275, 525, 1184, 371, 1099, 6005, 295, 1114, 2396, 13, 9651, 270, 29896, 353, 1583, 29889, 4841, 29889, 2034, 29918, 4704, 29877, 29918, 2390, 1941, 29889, 726, 13, 9651, 270, 29906, 353, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 424, 333, 1202, 29889, 726, 13, 9651, 270, 29941, 353, 525, 29968, 29887, 29915, 13, 9651, 270, 29946, 353, 525, 29907, 549, 295, 2255, 29915, 13, 9651, 270, 29945, 353, 1583, 29889, 4841, 29889, 2034, 29918, 18253, 3634, 29889, 726, 13, 13, 9651, 263, 29896, 353, 313, 29881, 29896, 29892, 29881, 29906, 29892, 29881, 29941, 29892, 29881, 29946, 29892, 29881, 29945, 29897, 13, 9651, 1596, 29898, 29874, 29896, 29897, 13, 13, 4706, 25342, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 1275, 525, 23684, 2396, 13, 9651, 270, 29896, 353, 1583, 29889, 4841, 29889, 2034, 29918, 4704, 29877, 29918, 2390, 1941, 29889, 726, 13, 9651, 270, 29906, 353, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 424, 333, 1202, 29889, 726, 13, 9651, 270, 29941, 353, 525, 2525, 29915, 13, 9651, 270, 29946, 353, 525, 23684, 29915, 13, 9651, 270, 29945, 353, 1583, 29889, 4841, 29889, 2034, 29918, 18253, 3634, 29889, 726, 13, 13, 9651, 263, 29896, 353, 313, 29881, 29896, 29892, 29881, 29906, 29892, 29881, 29941, 29892, 29881, 29946, 29892, 29881, 29945, 29897, 13, 9651, 1596, 29898, 29874, 29896, 29897, 13, 13, 4706, 25342, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 1275, 525, 29943, 1175, 16628, 2396, 13, 9651, 270, 29896, 353, 1583, 29889, 4841, 29889, 2034, 29918, 4704, 29877, 29918, 2390, 1941, 29889, 726, 13, 9651, 270, 29906, 353, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 424, 333, 1202, 29889, 726, 13, 9651, 270, 29941, 353, 525, 2525, 29915, 13, 9651, 270, 29946, 353, 525, 23684, 29915, 13, 9651, 270, 29945, 353, 1583, 29889, 4841, 29889, 2034, 29918, 18253, 3634, 29889, 726, 13, 13, 9651, 263, 29896, 353, 313, 29881, 29896, 29892, 29881, 29906, 29892, 29881, 29941, 29892, 29881, 29946, 29892, 29881, 29945, 29897, 13, 9651, 1596, 29898, 29874, 29896, 29897, 13, 13, 4706, 25342, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 1275, 525, 29963, 2018, 10939, 2396, 13, 9651, 270, 29896, 353, 1583, 29889, 4841, 29889, 2034, 29918, 4704, 29877, 29918, 2390, 1941, 29889, 726, 13, 9651, 270, 29906, 353, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 424, 333, 1202, 29889, 726, 13, 9651, 270, 29941, 353, 525, 29968, 29887, 29915, 13, 9651, 270, 29946, 353, 525, 3782, 6005, 295, 2255, 29915, 13, 9651, 270, 29945, 353, 1583, 29889, 4841, 29889, 2034, 29918, 18253, 3634, 29889, 726, 13, 13, 9651, 263, 29896, 353, 313, 29881, 29896, 29892, 29881, 29906, 29892, 29881, 29941, 29892, 29881, 29946, 29892, 29881, 29945, 29897, 13, 9651, 1596, 29898, 29874, 29896, 29897, 13, 13, 4706, 25342, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 1275, 525, 29933, 3977, 1099, 2396, 13, 9651, 270, 29896, 353, 1583, 29889, 4841, 29889, 2034, 29918, 4704, 29877, 29918, 2390, 1941, 29889, 726, 13, 9651, 270, 29906, 353, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 424, 333, 1202, 29889, 726, 13, 9651, 270, 29941, 353, 525, 29931, 1372, 29915, 13, 9651, 270, 29946, 353, 525, 1523, 29890, 504, 1821, 29915, 13, 9651, 270, 29945, 353, 1583, 29889, 4841, 29889, 2034, 29918, 18253, 3634, 29889, 726, 13, 13, 9651, 263, 29896, 353, 313, 29881, 29896, 29892, 29881, 29906, 29892, 29881, 29941, 29892, 29881, 29946, 29892, 29881, 29945, 29897, 13, 9651, 1596, 29898, 29874, 29896, 29897, 13, 13, 4706, 25342, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 1275, 525, 29925, 4425, 435, 1398, 1114, 2396, 13, 9651, 270, 29896, 353, 1583, 29889, 4841, 29889, 2034, 29918, 4704, 29877, 29918, 2390, 1941, 29889, 726, 13, 9651, 270, 29906, 353, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 424, 333, 1202, 29889, 726, 13, 9651, 270, 29941, 353, 525, 2525, 29915, 13, 9651, 270, 29946, 353, 525, 7435, 284, 29915, 13, 9651, 270, 29945, 353, 1583, 29889, 4841, 29889, 2034, 29918, 18253, 3634, 29889, 726, 13, 13, 9651, 263, 29896, 353, 313, 29881, 29896, 29892, 29881, 29906, 29892, 29881, 29941, 29892, 29881, 29946, 29892, 29881, 29945, 29897, 13, 9651, 1596, 29898, 29874, 29896, 29897, 13, 13, 13, 4706, 378, 353, 21120, 29941, 29889, 6915, 29898, 1311, 29889, 3396, 9163, 29889, 4051, 29918, 10145, 29897, 13, 4706, 10677, 353, 378, 29889, 18127, 580, 13, 13, 4706, 269, 29896, 353, 525, 19460, 11646, 1663, 398, 359, 29898, 4704, 29877, 29892, 5107, 2368, 29892, 443, 2368, 29892, 6107, 4108, 29892, 3438, 29877, 16029, 13, 4706, 269, 29906, 353, 525, 8932, 12996, 11702, 29879, 613, 11860, 29879, 613, 11860, 29879, 613, 11860, 29879, 613, 11860, 29879, 1159, 29915, 1273, 263, 29896, 13, 13, 4706, 1018, 29901, 13, 9651, 10677, 29889, 7978, 29898, 29879, 29896, 23097, 525, 29974, 29879, 29906, 29897, 13, 9651, 378, 29889, 15060, 580, 13, 9651, 378, 29889, 5358, 580, 13, 9651, 1583, 29889, 3396, 9163, 29889, 27102, 29918, 7851, 1272, 29918, 510, 558, 294, 580, 13, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 2643, 353, 1583, 29889, 3396, 9163, 29889, 12310, 786, 29889, 4841, 29889, 4906, 13, 9651, 1583, 29889, 3396, 9163, 29889, 12310, 786, 29889, 3150, 580, 13, 9651, 1583, 29889, 3396, 9163, 29889, 12310, 786, 29889, 3257, 353, 376, 1469, 2967, 1059, 29908, 13, 13, 9651, 565, 6629, 297, 263, 29896, 29901, 13, 18884, 2643, 29889, 726, 353, 525, 29965, 1217, 288, 3627, 3949, 1066, 21654, 11757, 27251, 29915, 13, 9651, 1683, 29901, 13, 18884, 2643, 29889, 726, 353, 851, 29898, 29872, 29897, 13, 9651, 378, 29889, 5358, 580, 13, 13, 13, 13, 1678, 822, 1831, 29918, 348, 2368, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 29889, 4841, 29889, 2034, 29918, 348, 2368, 29889, 726, 353, 285, 29915, 29912, 1767, 10162, 13, 268, 13, 1678, 822, 1831, 29918, 29883, 1845, 4108, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 353, 285, 29915, 29912, 1767, 10162, 13, 13, 1678, 822, 4635, 29918, 1272, 29898, 1311, 1125, 13, 4706, 378, 353, 21120, 29941, 29889, 6915, 29898, 1311, 29889, 3396, 9163, 29889, 4051, 29918, 10145, 29897, 13, 4706, 10677, 353, 378, 29889, 18127, 580, 13, 13, 4706, 270, 29896, 353, 1583, 29889, 4841, 29889, 2034, 29918, 4704, 29877, 29889, 726, 13, 4706, 270, 29906, 353, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 424, 2368, 29889, 726, 13, 4706, 270, 29941, 353, 1583, 29889, 4841, 29889, 2034, 29918, 348, 2368, 29889, 726, 13, 4706, 270, 29946, 353, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 1845, 4108, 29889, 726, 13, 4706, 270, 29945, 353, 1583, 29889, 4841, 29889, 2034, 29918, 29883, 5548, 29889, 726, 13, 13, 4706, 263, 29896, 353, 313, 29881, 29896, 29892, 270, 29906, 29892, 270, 29941, 29892, 270, 29946, 29892, 270, 29945, 29897, 13, 4706, 269, 29896, 353, 525, 19460, 11646, 1663, 398, 359, 29898, 4704, 29877, 29892, 5107, 2368, 29892, 443, 2368, 29892, 6107, 4108, 29892, 3438, 29877, 16029, 13, 4706, 269, 29906, 353, 525, 8932, 12996, 11702, 29879, 613, 11860, 29879, 613, 11860, 29879, 613, 11860, 29879, 613, 11860, 29879, 1159, 29915, 1273, 263, 29896, 13, 13, 4706, 1018, 29901, 13, 9651, 10677, 29889, 7978, 29898, 29879, 29896, 23097, 525, 29974, 29879, 29906, 29897, 13, 9651, 378, 29889, 15060, 580, 13, 9651, 378, 29889, 5358, 580, 13, 9651, 1583, 29889, 3396, 9163, 29889, 27102, 29918, 7851, 1272, 29918, 510, 558, 294, 580, 13, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 2643, 353, 1583, 29889, 3396, 9163, 29889, 12310, 786, 29889, 4841, 29889, 4906, 13, 9651, 1583, 29889, 3396, 9163, 29889, 12310, 786, 29889, 3150, 580, 13, 9651, 1583, 29889, 3396, 9163, 29889, 12310, 786, 29889, 3257, 353, 376, 1469, 2967, 1059, 29908, 13, 13, 9651, 565, 6629, 297, 263, 29896, 29901, 13, 18884, 2643, 29889, 726, 353, 525, 29965, 1217, 288, 3627, 3949, 1066, 21654, 11757, 27251, 29915, 13, 9651, 1683, 29901, 13, 18884, 2643, 29889, 726, 353, 851, 29898, 29872, 29897, 13, 9651, 378, 29889, 5358, 580, 13, 13, 1678, 822, 1250, 29918, 517, 29918, 2585, 29893, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3396, 9163, 29889, 27102, 29918, 9803, 29918, 510, 558, 294, 580, 13, 13, 13, 1990, 3630, 29956, 333, 1523, 558, 294, 29898, 3313, 3453, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1667, 9163, 29892, 3579, 19290, 1125, 13, 4706, 2428, 29898, 1469, 29956, 333, 1523, 558, 294, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 3396, 9163, 353, 1667, 9163, 13, 13, 1678, 822, 2767, 29918, 1272, 29918, 510, 558, 294, 29898, 1311, 29892, 848, 29918, 333, 1125, 13, 4706, 1583, 29889, 3396, 9163, 29889, 27102, 29918, 21402, 532, 29918, 510, 558, 294, 29898, 1272, 29918, 333, 29897, 13, 13, 2 ]
pcc/ast/ast.py
jiamo/pcc
4
1603178
<filename>pcc/ast/ast.py # AST hierarchy class ASTNode(object): def dump(self, indent=0): raise NotImplementedError class ExprAST(ASTNode): pass class NumberExprAST(ExprAST): def __init__(self, val): self.val = val def dump(self, indent=0): return '{0}{1}[{2}]'.format( ' ' * indent, self.__class__.__name__, self.val) class VariableExprAST(ExprAST): def __init__(self, name): self.name = name def dump(self, indent=0): return '{0}{1}[{2}]'.format( ' ' * indent, self.__class__.__name__, self.name) class VarExprAST(ExprAST): def __init__(self, vars, body): # vars is a sequence of (name, init) pairs self.vars = vars self.body = body def dump(self, indent=0): prefix = ' ' * indent s = '{0}{1}\n'.format(prefix, self.__class__.__name__) for name, init in self.vars: s += '{0} {1}'.format(prefix, name) if init is None: s += '\n' else: s += '=\n' + init.dump(indent+2) + '\n' s += '{0} Body:\n'.format(prefix) s += self.body.dump(indent + 2) return s class UnaryExprAST(ExprAST): def __init__(self, op, operand): self.op = op self.operand = operand def dump(self, indent=0): s = '{0}{1}[{2}]\n'.format( ' ' * indent, self.__class__.__name__, self.op) s += self.operand.dump(indent + 2) return s class BinaryExprAST(ExprAST): def __init__(self, op, lhs, rhs): self.op = op self.lhs = lhs self.rhs = rhs def dump(self, indent=0): s = '{0}{1}[{2}]\n'.format( ' ' * indent, self.__class__.__name__, self.op) s += self.lhs.dump(indent + 2) + '\n' s += self.rhs.dump(indent + 2) return s class IfExprAST(ExprAST): def __init__(self, cond_expr, then_expr, else_expr): self.cond_expr = cond_expr self.then_expr = then_expr self.else_expr = else_expr def dump(self, indent=0): prefix = ' ' * indent s = '{0}{1}\n'.format(prefix, self.__class__.__name__) s += '{0} Condition:\n{1}\n'.format( prefix, self.cond_expr.dump(indent + 2)) s += '{0} Then:\n{1}\n'.format( prefix, self.then_expr.dump(indent + 2)) s += '{0} Else:\n{1}'.format( prefix, self.else_expr.dump(indent + 2)) return s class ForExprAST(ExprAST): def __init__(self, id_name, start_expr, end_expr, step_expr, body): self.id_name = id_name self.start_expr = start_expr self.end_expr = end_expr self.step_expr = step_expr self.body = body def dump(self, indent=0): prefix = ' ' * indent s = '{0}{1}\n'.format(prefix, self.__class__.__name__) s += '{0} Start [{1}]:\n{2}\n'.format( prefix, self.id_name, self.start_expr.dump(indent + 2)) s += '{0} End:\n{1}\n'.format( prefix, self.end_expr.dump(indent + 2)) s += '{0} Step:\n{1}\n'.format( prefix, self.step_expr.dump(indent + 2)) s += '{0} Body:\n{1}\n'.format( prefix, self.body.dump(indent + 2)) return s class CallExprAST(ExprAST): def __init__(self, callee, args): self.callee = callee self.args = args def dump(self, indent=0): s = '{0}{1}[{2}]\n'.format( ' ' * indent, self.__class__.__name__, self.callee) for arg in self.args: s += arg.dump(indent + 2) + '\n' return s[:-1] # snip out trailing '\n' class PrototypeAST(ASTNode): def __init__(self, name, argnames, isoperator=False, prec=0): self.name = name self.argnames = argnames self.isoperator = isoperator self.prec = prec def is_unary_op(self): return self.isoperator and len(self.argnames) == 1 def is_binary_op(self): return self.isoperator and len(self.argnames) == 2 def get_op_name(self): assert self.isoperator return self.name[-1] def dump(self, indent=0): s = '{0}{1} {2}({3})'.format( ' ' * indent, self.__class__.__name__, self.name, ', '.join(self.argnames)) if self.isoperator: s += '[operator with prec={0}]'.format(self.prec) return s class FunctionAST(ASTNode): def __init__(self, proto, body): self.proto = proto self.body = body _anonymous_function_counter = 0 @classmethod def create_anonymous(klass, expr): """Create an anonymous function to hold an expression.""" klass._anonymous_function_counter += 1 return klass( PrototypeAST('_anon{0}'.format(klass._anonymous_function_counter), []), expr) def is_anonymous(self): return self.proto.name.startswith('_anon') def dump(self, indent=0): s = '{0}{1}[{2}]\n'.format( ' ' * indent, self.__class__.__name__, self.proto.dump()) s += self.body.dump(indent + 2) + '\n' return s
[ 1, 529, 9507, 29958, 29886, 617, 29914, 579, 29914, 579, 29889, 2272, 13, 13, 29937, 319, 1254, 21277, 13, 1990, 319, 1254, 4247, 29898, 3318, 1125, 13, 1678, 822, 16766, 29898, 1311, 29892, 29536, 29922, 29900, 1125, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 13, 1990, 1222, 558, 28938, 29898, 28938, 4247, 1125, 13, 1678, 1209, 13, 13, 13, 1990, 9681, 21176, 28938, 29898, 21176, 28938, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 659, 1125, 13, 4706, 1583, 29889, 791, 353, 659, 13, 13, 1678, 822, 16766, 29898, 1311, 29892, 29536, 29922, 29900, 1125, 13, 4706, 736, 22372, 29900, 1157, 29896, 4400, 29912, 29906, 6525, 4286, 4830, 29898, 13, 9651, 525, 525, 334, 29536, 29892, 1583, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1583, 29889, 791, 29897, 13, 13, 13, 1990, 28736, 21176, 28938, 29898, 21176, 28938, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1024, 1125, 13, 4706, 1583, 29889, 978, 353, 1024, 13, 13, 1678, 822, 16766, 29898, 1311, 29892, 29536, 29922, 29900, 1125, 13, 4706, 736, 22372, 29900, 1157, 29896, 4400, 29912, 29906, 6525, 4286, 4830, 29898, 13, 9651, 525, 525, 334, 29536, 29892, 1583, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1583, 29889, 978, 29897, 13, 13, 13, 1990, 11681, 21176, 28938, 29898, 21176, 28938, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 24987, 29892, 3573, 1125, 13, 4706, 396, 24987, 338, 263, 5665, 310, 313, 978, 29892, 2069, 29897, 11000, 13, 4706, 1583, 29889, 16908, 353, 24987, 13, 4706, 1583, 29889, 2587, 353, 3573, 13, 13, 1678, 822, 16766, 29898, 1311, 29892, 29536, 29922, 29900, 1125, 13, 4706, 10944, 353, 525, 525, 334, 29536, 13, 4706, 269, 353, 22372, 29900, 1157, 29896, 1012, 29876, 4286, 4830, 29898, 13506, 29892, 1583, 17255, 1990, 1649, 17255, 978, 1649, 29897, 13, 4706, 363, 1024, 29892, 2069, 297, 1583, 29889, 16908, 29901, 13, 9651, 269, 4619, 22372, 29900, 29913, 426, 29896, 29913, 4286, 4830, 29898, 13506, 29892, 1024, 29897, 13, 9651, 565, 2069, 338, 6213, 29901, 13, 18884, 269, 4619, 11297, 29876, 29915, 13, 9651, 1683, 29901, 13, 18884, 269, 4619, 525, 2013, 29876, 29915, 718, 2069, 29889, 15070, 29898, 12860, 29974, 29906, 29897, 718, 11297, 29876, 29915, 13, 4706, 269, 4619, 22372, 29900, 29913, 24928, 3583, 29876, 4286, 4830, 29898, 13506, 29897, 13, 4706, 269, 4619, 1583, 29889, 2587, 29889, 15070, 29898, 12860, 718, 29871, 29906, 29897, 13, 4706, 736, 269, 13, 13, 13, 1990, 853, 653, 21176, 28938, 29898, 21176, 28938, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1015, 29892, 1751, 392, 1125, 13, 4706, 1583, 29889, 459, 353, 1015, 13, 4706, 1583, 29889, 3372, 392, 353, 1751, 392, 13, 13, 1678, 822, 16766, 29898, 1311, 29892, 29536, 29922, 29900, 1125, 13, 4706, 269, 353, 22372, 29900, 1157, 29896, 4400, 29912, 29906, 6525, 29905, 29876, 4286, 4830, 29898, 13, 9651, 525, 525, 334, 29536, 29892, 1583, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1583, 29889, 459, 29897, 13, 4706, 269, 4619, 1583, 29889, 3372, 392, 29889, 15070, 29898, 12860, 718, 29871, 29906, 29897, 13, 4706, 736, 269, 13, 13, 13, 1990, 29479, 21176, 28938, 29898, 21176, 28938, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1015, 29892, 301, 9499, 29892, 29365, 1125, 13, 4706, 1583, 29889, 459, 353, 1015, 13, 4706, 1583, 29889, 29880, 9499, 353, 301, 9499, 13, 4706, 1583, 29889, 29878, 9499, 353, 29365, 13, 13, 1678, 822, 16766, 29898, 1311, 29892, 29536, 29922, 29900, 1125, 13, 4706, 269, 353, 22372, 29900, 1157, 29896, 4400, 29912, 29906, 6525, 29905, 29876, 4286, 4830, 29898, 13, 9651, 525, 525, 334, 29536, 29892, 1583, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1583, 29889, 459, 29897, 13, 4706, 269, 4619, 1583, 29889, 29880, 9499, 29889, 15070, 29898, 12860, 718, 29871, 29906, 29897, 718, 11297, 29876, 29915, 13, 4706, 269, 4619, 1583, 29889, 29878, 9499, 29889, 15070, 29898, 12860, 718, 29871, 29906, 29897, 13, 4706, 736, 269, 13, 13, 13, 1990, 960, 21176, 28938, 29898, 21176, 28938, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2148, 29918, 13338, 29892, 769, 29918, 13338, 29892, 1683, 29918, 13338, 1125, 13, 4706, 1583, 29889, 1116, 29918, 13338, 353, 2148, 29918, 13338, 13, 4706, 1583, 29889, 6098, 29918, 13338, 353, 769, 29918, 13338, 13, 4706, 1583, 29889, 2870, 29918, 13338, 353, 1683, 29918, 13338, 13, 13, 1678, 822, 16766, 29898, 1311, 29892, 29536, 29922, 29900, 1125, 13, 4706, 10944, 353, 525, 525, 334, 29536, 13, 4706, 269, 353, 22372, 29900, 1157, 29896, 1012, 29876, 4286, 4830, 29898, 13506, 29892, 1583, 17255, 1990, 1649, 17255, 978, 1649, 29897, 13, 4706, 269, 4619, 22372, 29900, 29913, 11790, 654, 3583, 29876, 29912, 29896, 1012, 29876, 4286, 4830, 29898, 13, 9651, 10944, 29892, 1583, 29889, 1116, 29918, 13338, 29889, 15070, 29898, 12860, 718, 29871, 29906, 876, 13, 4706, 269, 4619, 22372, 29900, 29913, 1987, 3583, 29876, 29912, 29896, 1012, 29876, 4286, 4830, 29898, 13, 9651, 10944, 29892, 1583, 29889, 6098, 29918, 13338, 29889, 15070, 29898, 12860, 718, 29871, 29906, 876, 13, 4706, 269, 4619, 22372, 29900, 29913, 15785, 3583, 29876, 29912, 29896, 29913, 4286, 4830, 29898, 13, 9651, 10944, 29892, 1583, 29889, 2870, 29918, 13338, 29889, 15070, 29898, 12860, 718, 29871, 29906, 876, 13, 4706, 736, 269, 13, 13, 13, 1990, 1152, 21176, 28938, 29898, 21176, 28938, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1178, 29918, 978, 29892, 1369, 29918, 13338, 29892, 1095, 29918, 13338, 29892, 4331, 29918, 13338, 29892, 3573, 1125, 13, 4706, 1583, 29889, 333, 29918, 978, 353, 1178, 29918, 978, 13, 4706, 1583, 29889, 2962, 29918, 13338, 353, 1369, 29918, 13338, 13, 4706, 1583, 29889, 355, 29918, 13338, 353, 1095, 29918, 13338, 13, 4706, 1583, 29889, 10568, 29918, 13338, 353, 4331, 29918, 13338, 13, 4706, 1583, 29889, 2587, 353, 3573, 13, 13, 1678, 822, 16766, 29898, 1311, 29892, 29536, 29922, 29900, 1125, 13, 4706, 10944, 353, 525, 525, 334, 29536, 13, 4706, 269, 353, 22372, 29900, 1157, 29896, 1012, 29876, 4286, 4830, 29898, 13506, 29892, 1583, 17255, 1990, 1649, 17255, 978, 1649, 29897, 13, 4706, 269, 4619, 22372, 29900, 29913, 7370, 15974, 29896, 6525, 3583, 29876, 29912, 29906, 1012, 29876, 4286, 4830, 29898, 13, 9651, 10944, 29892, 1583, 29889, 333, 29918, 978, 29892, 1583, 29889, 2962, 29918, 13338, 29889, 15070, 29898, 12860, 718, 29871, 29906, 876, 13, 4706, 269, 4619, 22372, 29900, 29913, 2796, 3583, 29876, 29912, 29896, 1012, 29876, 4286, 4830, 29898, 13, 9651, 10944, 29892, 1583, 29889, 355, 29918, 13338, 29889, 15070, 29898, 12860, 718, 29871, 29906, 876, 13, 4706, 269, 4619, 22372, 29900, 29913, 16696, 3583, 29876, 29912, 29896, 1012, 29876, 4286, 4830, 29898, 13, 9651, 10944, 29892, 1583, 29889, 10568, 29918, 13338, 29889, 15070, 29898, 12860, 718, 29871, 29906, 876, 13, 4706, 269, 4619, 22372, 29900, 29913, 24928, 3583, 29876, 29912, 29896, 1012, 29876, 4286, 4830, 29898, 13, 9651, 10944, 29892, 1583, 29889, 2587, 29889, 15070, 29898, 12860, 718, 29871, 29906, 876, 13, 4706, 736, 269, 13, 13, 13, 1990, 8251, 21176, 28938, 29898, 21176, 28938, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1208, 17179, 29892, 6389, 1125, 13, 4706, 1583, 29889, 1052, 17179, 353, 1208, 17179, 13, 4706, 1583, 29889, 5085, 353, 6389, 13, 13, 1678, 822, 16766, 29898, 1311, 29892, 29536, 29922, 29900, 1125, 13, 4706, 269, 353, 22372, 29900, 1157, 29896, 4400, 29912, 29906, 6525, 29905, 29876, 4286, 4830, 29898, 13, 9651, 525, 525, 334, 29536, 29892, 1583, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1583, 29889, 1052, 17179, 29897, 13, 4706, 363, 1852, 297, 1583, 29889, 5085, 29901, 13, 9651, 269, 4619, 1852, 29889, 15070, 29898, 12860, 718, 29871, 29906, 29897, 718, 11297, 29876, 29915, 13, 4706, 736, 269, 7503, 29899, 29896, 29962, 29871, 396, 5807, 666, 714, 25053, 11297, 29876, 29915, 13, 13, 13, 1990, 1019, 10414, 28938, 29898, 28938, 4247, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1024, 29892, 1852, 7039, 29892, 338, 6891, 29922, 8824, 29892, 8303, 29922, 29900, 1125, 13, 4706, 1583, 29889, 978, 353, 1024, 13, 4706, 1583, 29889, 1191, 7039, 353, 1852, 7039, 13, 4706, 1583, 29889, 275, 6891, 353, 338, 6891, 13, 4706, 1583, 29889, 17990, 353, 8303, 13, 13, 1678, 822, 338, 29918, 348, 653, 29918, 459, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 275, 6891, 322, 7431, 29898, 1311, 29889, 1191, 7039, 29897, 1275, 29871, 29896, 13, 13, 1678, 822, 338, 29918, 19541, 29918, 459, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 275, 6891, 322, 7431, 29898, 1311, 29889, 1191, 7039, 29897, 1275, 29871, 29906, 13, 13, 1678, 822, 679, 29918, 459, 29918, 978, 29898, 1311, 1125, 13, 4706, 4974, 1583, 29889, 275, 6891, 13, 4706, 736, 1583, 29889, 978, 14352, 29896, 29962, 13, 13, 1678, 822, 16766, 29898, 1311, 29892, 29536, 29922, 29900, 1125, 13, 4706, 269, 353, 22372, 29900, 1157, 29896, 29913, 426, 29906, 2119, 29912, 29941, 1800, 4286, 4830, 29898, 13, 9651, 525, 525, 334, 29536, 29892, 1583, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1583, 29889, 978, 29892, 13, 9651, 13420, 15300, 7122, 29898, 1311, 29889, 1191, 7039, 876, 13, 4706, 565, 1583, 29889, 275, 6891, 29901, 13, 9651, 269, 4619, 525, 29961, 6891, 411, 8303, 3790, 29900, 6525, 4286, 4830, 29898, 1311, 29889, 17990, 29897, 13, 4706, 736, 269, 13, 13, 13, 1990, 6680, 28938, 29898, 28938, 4247, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 17814, 29892, 3573, 1125, 13, 4706, 1583, 29889, 17529, 353, 17814, 13, 4706, 1583, 29889, 2587, 353, 3573, 13, 13, 1678, 903, 25772, 29918, 2220, 29918, 11808, 353, 29871, 29900, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 1653, 29918, 25772, 29898, 29895, 605, 29892, 22010, 1125, 13, 4706, 9995, 4391, 385, 21560, 740, 304, 4808, 385, 4603, 1213, 15945, 13, 4706, 22902, 3032, 25772, 29918, 2220, 29918, 11808, 4619, 29871, 29896, 13, 4706, 736, 22902, 29898, 13, 9651, 1019, 10414, 28938, 877, 29918, 19930, 29912, 29900, 29913, 4286, 4830, 29898, 29895, 605, 3032, 25772, 29918, 2220, 29918, 11808, 511, 13, 462, 308, 5159, 511, 13, 9651, 22010, 29897, 13, 13, 1678, 822, 338, 29918, 25772, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 17529, 29889, 978, 29889, 27382, 2541, 877, 29918, 19930, 1495, 13, 13, 1678, 822, 16766, 29898, 1311, 29892, 29536, 29922, 29900, 1125, 13, 4706, 269, 353, 22372, 29900, 1157, 29896, 4400, 29912, 29906, 6525, 29905, 29876, 4286, 4830, 29898, 13, 9651, 525, 525, 334, 29536, 29892, 1583, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1583, 29889, 17529, 29889, 15070, 3101, 13, 4706, 269, 4619, 1583, 29889, 2587, 29889, 15070, 29898, 12860, 718, 29871, 29906, 29897, 718, 11297, 29876, 29915, 13, 4706, 736, 269, 13, 13, 2 ]
scripts/window_stats.py
aakashsur/docker-hirise
0
110471
<gh_stars>0 #!/usr/bin/env python3 # # Copyright 2015 Dovetail Genomics LLC # # from __future__ import division from __future__ import print_function from builtins import range from past.utils import old_div from hirise_assembly import HiriseAssembly import random import re if __name__=="__main__": import sys import argparse parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('-d','--debug',default=False ,action="store_true",help="Turn on debugging ouput") # parser.add_argument('-L','--layout',default=False ,help="A file containing a layout of contigs.") parser.add_argument('-T','--test', default=False ,help="Compute stats for an explicitly specified region.") parser.add_argument('-B','--bin', default=False ,action="store_true",help="Bin reference sequences.") parser.add_argument('-N','--nsamples',default=10000,type=int ,help="Number of winows to sample.") parser.add_argument('-w','--window',default=1000, type=int ,help="Size of windows to examine.") parser.add_argument('-W','--binwindow',default=100000, type=int ,help="Size of windows to break reference contigs into.") parser.add_argument('-i','--infile',default=False ,help="Filename for serialised assembly input file.") # parser.add_argument('-o','--outfile',default=False,help="Filename for writing a list of segments on the raw contigs to mask for being promiscuous in linking.") args = parser.parse_args() if args.infile: asf = HiriseAssembly() asf.load_assembly(args.infile) n=0 asf.binsize = args.binwindow while n<args.nsamples: try: c,a,b=asf.random_window(wlen=args.window) if args.test: m=re.match("^(.*):(\d+)-(\d+)$",args.test) c=m.group(1) a=int(m.group(2)) b=int(m.group(3)) asf.window_stats(c,a,b,debug=args.debug,bins=args.bin) n+=1 except Exception as e: print("#",e,c,a,b) raise e if args.test: break
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 13, 29937, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29945, 360, 586, 300, 737, 5739, 290, 1199, 365, 12182, 13, 29937, 13, 29937, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 13, 3166, 4240, 1144, 1053, 3464, 13, 3166, 4940, 29889, 13239, 1053, 2030, 29918, 4563, 13, 3166, 298, 381, 895, 29918, 26936, 1053, 20417, 895, 22400, 13, 5215, 4036, 13, 5215, 337, 13, 361, 4770, 978, 1649, 26359, 1649, 3396, 1649, 1115, 13, 268, 1053, 10876, 13, 268, 1053, 1852, 5510, 13, 13, 268, 13812, 353, 1852, 5510, 29889, 15730, 11726, 29898, 689, 2620, 29918, 1990, 29922, 1191, 5510, 29889, 15730, 24863, 29648, 18522, 29897, 13, 268, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29881, 3788, 489, 8382, 742, 4381, 29922, 8824, 29871, 1919, 2467, 543, 8899, 29918, 3009, 613, 8477, 543, 27407, 373, 13490, 2123, 649, 1159, 13, 29937, 268, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29931, 3788, 489, 2680, 742, 4381, 29922, 8824, 1919, 8477, 543, 29909, 934, 6943, 263, 5912, 310, 640, 23379, 23157, 13, 268, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29911, 3788, 489, 1688, 742, 29871, 2322, 29922, 8824, 1919, 8477, 543, 20606, 29872, 22663, 363, 385, 9479, 6790, 5120, 23157, 13, 268, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29933, 3788, 489, 2109, 742, 29871, 2322, 29922, 8824, 1919, 2467, 543, 8899, 29918, 3009, 613, 8477, 543, 29933, 262, 3407, 15602, 23157, 13, 268, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29940, 3788, 489, 1983, 9422, 742, 4381, 29922, 29896, 29900, 29900, 29900, 29900, 29892, 1853, 29922, 524, 1919, 8477, 543, 4557, 310, 5401, 1242, 304, 4559, 23157, 13, 268, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29893, 3788, 489, 7165, 742, 4381, 29922, 29896, 29900, 29900, 29900, 29892, 1134, 29922, 524, 1919, 8477, 543, 3505, 310, 5417, 304, 25917, 23157, 13, 268, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29956, 3788, 489, 2109, 7165, 742, 4381, 29922, 29896, 29900, 29900, 29900, 29900, 29900, 29892, 1134, 29922, 524, 1919, 8477, 543, 3505, 310, 5417, 304, 2867, 3407, 640, 23379, 964, 23157, 13, 268, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29875, 3788, 489, 262, 1445, 742, 4381, 29922, 8824, 1919, 8477, 543, 3434, 3871, 363, 7797, 3368, 11470, 1881, 934, 23157, 13, 29937, 268, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29877, 3788, 489, 449, 1445, 742, 4381, 29922, 8824, 29892, 8477, 543, 3434, 3871, 363, 5007, 263, 1051, 310, 24611, 373, 278, 10650, 640, 23379, 304, 11105, 363, 1641, 2504, 275, 4979, 681, 297, 25236, 23157, 13, 13, 268, 6389, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 13, 268, 565, 6389, 29889, 262, 1445, 29901, 13, 3986, 408, 29888, 353, 20417, 895, 22400, 580, 13, 3986, 408, 29888, 29889, 1359, 29918, 26936, 29898, 5085, 29889, 262, 1445, 29897, 13, 268, 302, 29922, 29900, 13, 13, 268, 408, 29888, 29889, 29890, 1144, 675, 353, 6389, 29889, 2109, 7165, 13, 13, 268, 1550, 302, 29966, 5085, 29889, 1983, 9422, 29901, 13, 3986, 1018, 29901, 13, 1669, 274, 29892, 29874, 29892, 29890, 29922, 294, 29888, 29889, 8172, 29918, 7165, 29898, 29893, 2435, 29922, 5085, 29889, 7165, 29897, 13, 1669, 565, 6389, 29889, 1688, 29901, 13, 462, 1678, 286, 29922, 276, 29889, 4352, 703, 23733, 5575, 1125, 1194, 29881, 29974, 6817, 1194, 29881, 29974, 1262, 613, 5085, 29889, 1688, 29897, 13, 462, 1678, 274, 29922, 29885, 29889, 2972, 29898, 29896, 29897, 13, 462, 1678, 263, 29922, 524, 29898, 29885, 29889, 2972, 29898, 29906, 876, 13, 462, 1678, 289, 29922, 524, 29898, 29885, 29889, 2972, 29898, 29941, 876, 13, 1669, 408, 29888, 29889, 7165, 29918, 16202, 29898, 29883, 29892, 29874, 29892, 29890, 29892, 8382, 29922, 5085, 29889, 8382, 29892, 29890, 1144, 29922, 5085, 29889, 2109, 29897, 13, 1669, 302, 23661, 29896, 13, 3986, 5174, 8960, 408, 321, 29901, 13, 1669, 1596, 14822, 613, 29872, 29892, 29883, 29892, 29874, 29892, 29890, 29897, 13, 1669, 12020, 321, 13, 3986, 565, 6389, 29889, 1688, 29901, 2867, 13, 13, 2 ]
qcmetadataprinter/struct.py
x2dev/device_leeco_x2
0
1820
<reponame>x2dev/device_leeco_x2 #!/bin/python3 with open('../camera/QCamera2/stack/common/cam_intf.h', 'r') as f: data = f.read() f.closed start = data.find(' INCLUDE(CAM_INTF_META_HISTOGRAM') end = data.find('} metadata_data_t;') data = data[start:end] metadata = data.split("\n") metalist = list() for line in metadata: if (line.startswith(' INCLUDE')): foo = line.split(',') foo[0] = foo[0].replace('INCLUDE', 'PRINT') metalist.append(foo[0] + ", pMetadata);") with open('list.txt', 'w') as f: for item in metalist: f.write("%s\n" % item) f.closed
[ 1, 529, 276, 1112, 420, 29958, 29916, 29906, 3359, 29914, 10141, 29918, 280, 687, 29877, 29918, 29916, 29906, 13, 29937, 14708, 2109, 29914, 4691, 29941, 13, 13, 2541, 1722, 877, 6995, 26065, 29914, 29984, 20717, 29906, 29914, 1429, 29914, 9435, 29914, 11108, 29918, 524, 29888, 29889, 29882, 742, 525, 29878, 1495, 408, 285, 29901, 13, 1678, 848, 353, 285, 29889, 949, 580, 13, 29888, 29889, 15603, 13, 13, 2962, 353, 848, 29889, 2886, 877, 1678, 2672, 6154, 29965, 2287, 29898, 29907, 5194, 29918, 1177, 8969, 29918, 2303, 6040, 29918, 29950, 9047, 29949, 29954, 25058, 1495, 13, 355, 353, 848, 29889, 2886, 877, 29913, 15562, 29918, 1272, 29918, 29873, 29936, 1495, 13, 1272, 353, 848, 29961, 2962, 29901, 355, 29962, 13, 19635, 353, 848, 29889, 5451, 14182, 29876, 1159, 13, 13, 2527, 284, 391, 353, 1051, 580, 13, 13, 1454, 1196, 297, 15562, 29901, 13, 1678, 565, 313, 1220, 29889, 27382, 2541, 877, 1678, 2672, 6154, 29965, 2287, 8785, 29901, 13, 4706, 7953, 353, 1196, 29889, 5451, 29317, 1495, 13, 4706, 7953, 29961, 29900, 29962, 353, 7953, 29961, 29900, 1822, 6506, 877, 1177, 6154, 29965, 2287, 742, 525, 10593, 10192, 1495, 13, 308, 13, 4706, 11915, 391, 29889, 4397, 29898, 5431, 29961, 29900, 29962, 718, 9162, 1678, 282, 18417, 416, 1159, 13, 13, 2541, 1722, 877, 1761, 29889, 3945, 742, 525, 29893, 1495, 408, 285, 29901, 13, 1678, 363, 2944, 297, 11915, 391, 29901, 13, 4706, 285, 29889, 3539, 11702, 29879, 29905, 29876, 29908, 1273, 2944, 29897, 13, 29888, 29889, 15603, 13, 2 ]
pixette/application.py
EXLER/pixette
0
25582
<reponame>EXLER/pixette import logging import os import pygame from pixette.scenes.admin import AdminScene from pixette.scenes.clock import ClockScene from pixette.scenes.currencies import CurrenciesScene from pixette.scenes.weather import WeatherScene class Application: def __init__(self, device, title, resolution, update_rate, debug=False): self.device = device if not debug: os.environ["SDL_FBDEV"] = "/dev/fb1" os.environ["SDL_VIDEODRIVER"] = "fbcon" os.environ["SDL_VIDEO_CENTERED"] = "1" pygame.init() pygame.mouse.set_visible(False) self._scene = None self._screen = None self.title = title self.resolution = resolution self.update_rate = update_rate logging.info("Display initialized") self.scenes = [ClockScene(), CurrenciesScene(), WeatherScene(lat=51.11, lon=17.04), AdminScene()] logging.info("Scenes loaded") self.device.left_btn.when_pressed = self.previous_scene self.device.right_btn.when_pressed = self.next_scene @property def title(self): return pygame.display.get_caption() @title.setter def title(self, value): pygame.display.set_caption(value) @property def resolution(self): return self._screen.get_size() @resolution.setter def resolution(self, value): self._screen = pygame.display.set_mode(value) @property def width(self): return self.resolution[0] @property def height(self): return self.resolution[1] @property def active_scene(self): return self._scene def next_scene(self): index = self.scenes.index(self.active_scene) if index == len(self.scenes) - 1: self.change_scene(self.scenes[0]) else: self.change_scene(self.scenes[index + 1]) def previous_scene(self): index = self.scenes.index(self.active_scene) if index == 0: self.change_scene(self.scenes[-1]) else: self.change_scene(self.scenes[index - 1]) def change_scene(self, scene): """ Change the currently active scene. This will invoke `scene.on_exit` and `scene.on_enter` methods on the switching scenes. If `None` is provided, the application's execution will end. """ if self.active_scene is not None: self.active_scene.on_exit(next_scene=scene) self.active_scene._application = None self._scene, old_scene = scene, self.active_scene if self.active_scene is not None: self.active_scene._application = self self.active_scene.on_enter(previous_scene=old_scene) def run(self, scene=None): """ Start the application at given scene. """ if scene is not None: for s in self.scenes: if type(s) == scene: self.change_scene(s) break elif self.active_scene is not None: self.change_scene(scene) else: raise ValueError("No scene provided") clock = pygame.time.Clock() while self.active_scene is not None: try: for event in pygame.event.get(): self.active_scene.handle_event(event) if event.type == pygame.QUIT: self.change_scene(None) # Trigger scene.on_exit() return self.device.keys(event) dt = clock.tick(self.update_rate) self.active_scene.update(dt) self.active_scene.draw(self._screen) pygame.display.update() except KeyboardInterrupt: logging.info("Shutting down") break except Exception as e: logging.exception("Caught exception: %s" % e, exc_info=True) break
[ 1, 529, 276, 1112, 420, 29958, 5746, 29931, 1001, 29914, 29886, 861, 2353, 13, 5215, 12183, 13, 5215, 2897, 13, 13, 5215, 22028, 13, 13, 3166, 9277, 2353, 29889, 1557, 25487, 29889, 6406, 1053, 10229, 23472, 13, 3166, 9277, 2353, 29889, 1557, 25487, 29889, 13058, 1053, 315, 908, 23472, 13, 3166, 9277, 2353, 29889, 1557, 25487, 29889, 21962, 15942, 1053, 315, 1038, 15942, 23472, 13, 3166, 9277, 2353, 29889, 1557, 25487, 29889, 705, 1624, 1053, 1334, 1624, 23472, 13, 13, 13, 1990, 8427, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 4742, 29892, 3611, 29892, 10104, 29892, 2767, 29918, 10492, 29892, 4744, 29922, 8824, 1125, 13, 4706, 1583, 29889, 10141, 353, 4742, 13, 4706, 565, 451, 4744, 29901, 13, 9651, 2897, 29889, 21813, 3366, 7230, 29931, 29918, 18426, 2287, 29963, 3108, 353, 5591, 3359, 29914, 14943, 29896, 29908, 13, 9651, 2897, 29889, 21813, 3366, 7230, 29931, 29918, 13044, 29923, 13668, 3960, 5348, 3108, 353, 376, 14943, 535, 29908, 13, 9651, 2897, 29889, 21813, 3366, 7230, 29931, 29918, 13044, 29923, 29949, 29918, 29907, 3919, 1001, 3352, 3108, 353, 376, 29896, 29908, 13, 13, 4706, 22028, 29889, 2344, 580, 13, 4706, 22028, 29889, 15769, 29889, 842, 29918, 12872, 29898, 8824, 29897, 13, 13, 4706, 1583, 3032, 24645, 353, 6213, 13, 4706, 1583, 3032, 10525, 353, 6213, 13, 13, 4706, 1583, 29889, 3257, 353, 3611, 13, 4706, 1583, 29889, 9778, 918, 353, 10104, 13, 4706, 1583, 29889, 5504, 29918, 10492, 353, 2767, 29918, 10492, 13, 13, 4706, 12183, 29889, 3888, 703, 9323, 16601, 1159, 13, 13, 4706, 1583, 29889, 1557, 25487, 353, 518, 29907, 908, 23472, 3285, 315, 1038, 15942, 23472, 3285, 1334, 1624, 23472, 29898, 5066, 29922, 29945, 29896, 29889, 29896, 29896, 29892, 23123, 29922, 29896, 29955, 29889, 29900, 29946, 511, 10229, 23472, 580, 29962, 13, 4706, 12183, 29889, 3888, 703, 4421, 25487, 7500, 1159, 13, 13, 4706, 1583, 29889, 10141, 29889, 1563, 29918, 7290, 29889, 8256, 29918, 13120, 353, 1583, 29889, 24957, 29918, 24645, 13, 4706, 1583, 29889, 10141, 29889, 1266, 29918, 7290, 29889, 8256, 29918, 13120, 353, 1583, 29889, 4622, 29918, 24645, 13, 13, 1678, 732, 6799, 13, 1678, 822, 3611, 29898, 1311, 1125, 13, 4706, 736, 22028, 29889, 4990, 29889, 657, 29918, 6671, 580, 13, 13, 1678, 732, 3257, 29889, 842, 357, 13, 1678, 822, 3611, 29898, 1311, 29892, 995, 1125, 13, 4706, 22028, 29889, 4990, 29889, 842, 29918, 6671, 29898, 1767, 29897, 13, 13, 1678, 732, 6799, 13, 1678, 822, 10104, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 10525, 29889, 657, 29918, 2311, 580, 13, 13, 1678, 732, 9778, 918, 29889, 842, 357, 13, 1678, 822, 10104, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 3032, 10525, 353, 22028, 29889, 4990, 29889, 842, 29918, 8513, 29898, 1767, 29897, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2920, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 9778, 918, 29961, 29900, 29962, 13, 13, 1678, 732, 6799, 13, 1678, 822, 3171, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 9778, 918, 29961, 29896, 29962, 13, 13, 1678, 732, 6799, 13, 1678, 822, 6136, 29918, 24645, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 24645, 13, 13, 1678, 822, 2446, 29918, 24645, 29898, 1311, 1125, 13, 4706, 2380, 353, 1583, 29889, 1557, 25487, 29889, 2248, 29898, 1311, 29889, 4925, 29918, 24645, 29897, 13, 4706, 565, 2380, 1275, 7431, 29898, 1311, 29889, 1557, 25487, 29897, 448, 29871, 29896, 29901, 13, 9651, 1583, 29889, 3167, 29918, 24645, 29898, 1311, 29889, 1557, 25487, 29961, 29900, 2314, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 3167, 29918, 24645, 29898, 1311, 29889, 1557, 25487, 29961, 2248, 718, 29871, 29896, 2314, 13, 13, 1678, 822, 3517, 29918, 24645, 29898, 1311, 1125, 13, 4706, 2380, 353, 1583, 29889, 1557, 25487, 29889, 2248, 29898, 1311, 29889, 4925, 29918, 24645, 29897, 13, 4706, 565, 2380, 1275, 29871, 29900, 29901, 13, 9651, 1583, 29889, 3167, 29918, 24645, 29898, 1311, 29889, 1557, 25487, 14352, 29896, 2314, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 3167, 29918, 24645, 29898, 1311, 29889, 1557, 25487, 29961, 2248, 448, 29871, 29896, 2314, 13, 13, 1678, 822, 1735, 29918, 24645, 29898, 1311, 29892, 9088, 1125, 13, 4706, 9995, 13, 4706, 10726, 278, 5279, 6136, 9088, 29889, 13, 4706, 910, 674, 15928, 421, 24645, 29889, 265, 29918, 13322, 29952, 322, 421, 24645, 29889, 265, 29918, 5893, 29952, 3519, 373, 278, 21293, 20407, 29889, 13, 13, 4706, 960, 421, 8516, 29952, 338, 4944, 29892, 278, 2280, 29915, 29879, 8225, 674, 1095, 29889, 13, 4706, 9995, 13, 4706, 565, 1583, 29889, 4925, 29918, 24645, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 4925, 29918, 24645, 29889, 265, 29918, 13322, 29898, 4622, 29918, 24645, 29922, 24645, 29897, 13, 9651, 1583, 29889, 4925, 29918, 24645, 3032, 6214, 353, 6213, 13, 4706, 1583, 3032, 24645, 29892, 2030, 29918, 24645, 353, 9088, 29892, 1583, 29889, 4925, 29918, 24645, 13, 4706, 565, 1583, 29889, 4925, 29918, 24645, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 4925, 29918, 24645, 3032, 6214, 353, 1583, 13, 9651, 1583, 29889, 4925, 29918, 24645, 29889, 265, 29918, 5893, 29898, 24957, 29918, 24645, 29922, 1025, 29918, 24645, 29897, 13, 13, 1678, 822, 1065, 29898, 1311, 29892, 9088, 29922, 8516, 1125, 13, 4706, 9995, 13, 4706, 7370, 278, 2280, 472, 2183, 9088, 29889, 13, 4706, 9995, 13, 4706, 565, 9088, 338, 451, 6213, 29901, 13, 9651, 363, 269, 297, 1583, 29889, 1557, 25487, 29901, 13, 18884, 565, 1134, 29898, 29879, 29897, 1275, 9088, 29901, 13, 462, 1678, 1583, 29889, 3167, 29918, 24645, 29898, 29879, 29897, 13, 462, 1678, 2867, 13, 4706, 25342, 1583, 29889, 4925, 29918, 24645, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 3167, 29918, 24645, 29898, 24645, 29897, 13, 4706, 1683, 29901, 13, 9651, 12020, 7865, 2392, 703, 3782, 9088, 4944, 1159, 13, 13, 4706, 12006, 353, 22028, 29889, 2230, 29889, 29907, 908, 580, 13, 4706, 1550, 1583, 29889, 4925, 29918, 24645, 338, 451, 6213, 29901, 13, 9651, 1018, 29901, 13, 18884, 363, 1741, 297, 22028, 29889, 3696, 29889, 657, 7295, 13, 462, 1678, 1583, 29889, 4925, 29918, 24645, 29889, 8411, 29918, 3696, 29898, 3696, 29897, 13, 462, 1678, 565, 1741, 29889, 1853, 1275, 22028, 29889, 13356, 1806, 29901, 13, 462, 4706, 1583, 29889, 3167, 29918, 24645, 29898, 8516, 29897, 29871, 396, 1605, 3567, 9088, 29889, 265, 29918, 13322, 580, 13, 462, 4706, 736, 13, 462, 1678, 1583, 29889, 10141, 29889, 8149, 29898, 3696, 29897, 13, 13, 18884, 11636, 353, 12006, 29889, 24667, 29898, 1311, 29889, 5504, 29918, 10492, 29897, 13, 18884, 1583, 29889, 4925, 29918, 24645, 29889, 5504, 29898, 6008, 29897, 13, 18884, 1583, 29889, 4925, 29918, 24645, 29889, 4012, 29898, 1311, 3032, 10525, 29897, 13, 18884, 22028, 29889, 4990, 29889, 5504, 580, 13, 9651, 5174, 7670, 3377, 4074, 6685, 29901, 13, 18884, 12183, 29889, 3888, 703, 2713, 329, 1259, 1623, 1159, 13, 18884, 2867, 13, 9651, 5174, 8960, 408, 321, 29901, 13, 18884, 12183, 29889, 11739, 703, 29907, 6482, 3682, 29901, 1273, 29879, 29908, 1273, 321, 29892, 5566, 29918, 3888, 29922, 5574, 29897, 13, 18884, 2867, 13, 2 ]
tests/verbs/test_drop_verb.py
RathmoreChaos/intficpy
25
35124
from ..helpers import IFPTestCase from intficpy.things import Thing, Container, Liquid class TestDropVerb(IFPTestCase): def test_verb_func_drops_item(self): item = Thing(self.game, self._get_unique_noun()) item.invItem = True self.me.addThing(item) self.assertIn(item.ix, self.me.contains) self.assertEqual(len(self.me.contains[item.ix]), 1) self.assertIn(item, self.me.contains[item.ix]) self.game.turnMain(f"drop {item.verbose_name}") self.assertItemNotIn( item, self.me.contains, "Dropped item, but item still in inventory" ) def test_drop_item_not_in_inv(self): item = Thing(self.game, "shoe") item.invItem = True self.start_room.addThing(item) self.assertFalse(self.me.containsItem(item)) self.game.turnMain(f"drop {item.verbose_name}") self.assertIn("You are not holding", self.app.print_stack.pop()) def test_drop_liquid_in_container(self): cup = Container(self.game, "cup") water = Liquid(self.game, "water", "water") water.moveTo(cup) cup.moveTo(self.me) self.game.turnMain("drop water") self.assertIn("You drop the cup", self.app.print_stack.pop()) self.assertFalse(self.game.me.containsItem(cup)) self.assertTrue(cup.containsItem(water)) def test_drop_composite_child(self): machine = Thing(self.game, "machine") wheel = Thing(self.game, "wheel") machine.addComposite(wheel) machine.moveTo(self.me) self.game.turnMain("drop wheel") self.assertIn("wheel is attached to the machine", self.app.print_stack.pop()) self.assertTrue(self.me.containsItem(wheel))
[ 1, 515, 6317, 3952, 6774, 1053, 10762, 29925, 3057, 8259, 13, 13, 3166, 938, 9639, 2272, 29889, 386, 886, 1053, 498, 292, 29892, 21679, 29892, 2718, 339, 333, 13, 13, 13, 1990, 4321, 15063, 6565, 29890, 29898, 6545, 29925, 3057, 8259, 1125, 13, 1678, 822, 1243, 29918, 18248, 29918, 9891, 29918, 26419, 567, 29918, 667, 29898, 1311, 1125, 13, 4706, 2944, 353, 498, 292, 29898, 1311, 29889, 11802, 29892, 1583, 3032, 657, 29918, 13092, 29918, 29876, 1309, 3101, 13, 4706, 2944, 29889, 11569, 2001, 353, 5852, 13, 4706, 1583, 29889, 1004, 29889, 1202, 1349, 292, 29898, 667, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 667, 29889, 861, 29892, 1583, 29889, 1004, 29889, 11516, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 1311, 29889, 1004, 29889, 11516, 29961, 667, 29889, 861, 11724, 29871, 29896, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 667, 29892, 1583, 29889, 1004, 29889, 11516, 29961, 667, 29889, 861, 2314, 13, 13, 4706, 1583, 29889, 11802, 29889, 685, 6330, 29898, 29888, 29908, 8865, 426, 667, 29889, 369, 15828, 29918, 978, 27195, 13, 13, 4706, 1583, 29889, 9294, 2001, 3664, 797, 29898, 13, 9651, 2944, 29892, 1583, 29889, 1004, 29889, 11516, 29892, 376, 29928, 307, 2986, 2944, 29892, 541, 2944, 1603, 297, 11817, 706, 29908, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 8865, 29918, 667, 29918, 1333, 29918, 262, 29918, 11569, 29898, 1311, 1125, 13, 4706, 2944, 353, 498, 292, 29898, 1311, 29889, 11802, 29892, 376, 845, 7297, 1159, 13, 4706, 2944, 29889, 11569, 2001, 353, 5852, 13, 4706, 1583, 29889, 2962, 29918, 8345, 29889, 1202, 1349, 292, 29898, 667, 29897, 13, 4706, 1583, 29889, 9294, 8824, 29898, 1311, 29889, 1004, 29889, 11516, 2001, 29898, 667, 876, 13, 13, 4706, 1583, 29889, 11802, 29889, 685, 6330, 29898, 29888, 29908, 8865, 426, 667, 29889, 369, 15828, 29918, 978, 27195, 13, 4706, 1583, 29889, 9294, 797, 703, 3492, 526, 451, 13587, 613, 1583, 29889, 932, 29889, 2158, 29918, 1429, 29889, 7323, 3101, 13, 13, 1678, 822, 1243, 29918, 8865, 29918, 28378, 333, 29918, 262, 29918, 7611, 29898, 1311, 1125, 13, 4706, 18002, 353, 21679, 29898, 1311, 29889, 11802, 29892, 376, 5231, 1159, 13, 4706, 4094, 353, 2718, 339, 333, 29898, 1311, 29889, 11802, 29892, 376, 13405, 613, 376, 13405, 1159, 13, 4706, 4094, 29889, 11631, 1762, 29898, 5231, 29897, 13, 4706, 18002, 29889, 11631, 1762, 29898, 1311, 29889, 1004, 29897, 13, 4706, 1583, 29889, 11802, 29889, 685, 6330, 703, 8865, 4094, 1159, 13, 4706, 1583, 29889, 9294, 797, 703, 3492, 5768, 278, 18002, 613, 1583, 29889, 932, 29889, 2158, 29918, 1429, 29889, 7323, 3101, 13, 4706, 1583, 29889, 9294, 8824, 29898, 1311, 29889, 11802, 29889, 1004, 29889, 11516, 2001, 29898, 5231, 876, 13, 4706, 1583, 29889, 9294, 5574, 29898, 5231, 29889, 11516, 2001, 29898, 13405, 876, 13, 13, 1678, 822, 1243, 29918, 8865, 29918, 22410, 568, 29918, 5145, 29898, 1311, 1125, 13, 4706, 4933, 353, 498, 292, 29898, 1311, 29889, 11802, 29892, 376, 23523, 1159, 13, 4706, 18875, 353, 498, 292, 29898, 1311, 29889, 11802, 29892, 376, 29893, 10552, 1159, 13, 4706, 4933, 29889, 1202, 1523, 1066, 568, 29898, 29893, 10552, 29897, 13, 4706, 4933, 29889, 11631, 1762, 29898, 1311, 29889, 1004, 29897, 13, 4706, 1583, 29889, 11802, 29889, 685, 6330, 703, 8865, 18875, 1159, 13, 4706, 1583, 29889, 9294, 797, 703, 29893, 10552, 338, 10959, 304, 278, 4933, 613, 1583, 29889, 932, 29889, 2158, 29918, 1429, 29889, 7323, 3101, 13, 4706, 1583, 29889, 9294, 5574, 29898, 1311, 29889, 1004, 29889, 11516, 2001, 29898, 29893, 10552, 876, 13, 2 ]
bot.py
finneh4249/PTBot
0
69680
import discord import asyncio import re import os import datetime # import git import sys import json import dbl import psycopg2 import logging import pytz from discord.ext import commands from classes.PTVFormatter import PTVFormatter import sys, traceback debug_mode = False logging.basicConfig(level=int(os.environ['LOGGING_LEVEL'])) if debug_mode: TOKEN = os.environ['VPTBOT_DEVELOPMENT'] # logging.basicConfig(level=logging.DEBUG) else: TOKEN = os.environ['VPTBOT'] initial_extensions = ['cogs.error_handler', 'cogs.train_commands', 'cogs.config_commands', 'cogs.help_command'] def get_prefix(bot, message): try: DATABASE_URL = os.environ['DATABASE_URL'] except KeyError: return commands.when_mentioned_or('pt!', 'Pt!', 'pT!', 'PT!')(bot, message) conn = psycopg2.connect(DATABASE_URL, sslmode='require') cur = conn.cursor() prefix = None if message.guild: cur.execute(f"SELECT * FROM prefixes WHERE guild_id = {message.guild.id}") prefix = cur.fetchone() if prefix == None: return commands.when_mentioned_or('pt!', 'Pt!', 'pT!', 'PT!')(bot, message) else: return commands.when_mentioned_or(prefix[1])(bot, message) bot = commands.Bot(command_prefix=get_prefix, description='Shows Victorian Train Information', case_insensitive=True) PTV = PTVFormatter(os.environ['PTV_DEV_ID'],os.environ['PTV_DEV_KEY']) dblpy = dbl.DBLClient(bot, os.environ['DBL_TOKEN']) try: with open ("./InfoFiles/disruptions.json", 'r') as f: disruptions = json.load(f) except FileNotFoundError: with open ("./InfoFiles/disruptions.json", 'w+') as f: f.write('{"1":["l"], "2":["l"],"3":["l"],"4":["l"],"5":["l"],"6":["l"],"7":["l"],"8":["l"],"9":["l"],"10":[],"11":["l"],"12":["l"],"13":["l"],"14":["l"],"15":["l"],"16":["l"],"17":["l"]}') with open ("./InfoFiles/routes.json", 'r') as f: bot.routes = json.load(f) bot.remove_command('help') if __name__ == '__main__': for extension in initial_extensions: try: bot.load_extension(extension) except Exception as e: print(f'Failed to load extension {extension}.', file=sys.stderr) traceback.print_exc() def _splicegen(maxchars, stringlist): """ Return a list of slices to print based on maxchars string-length boundary. """ runningcount = 0 # start at 0 tmpslice = [] # tmp list where we append slice numbers. for item in stringlist: runningcount += len(item) if runningcount <= int(maxchars): tmpslice.append(item) else: yield tmpslice tmpslice = [item] runningcount = len(item) yield(tmpslice) async def my_background_task(): await bot.wait_until_ready() # disruptionschannel = bot.get_channel(545113422283669514) while not bot.is_closed(): await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=f'Trains with {len(bot.guilds)} servers! || pt!help')) try: await dblpy.post_guild_count() except: print('An error has occured posting server count') await asyncio.sleep(60) async def disruptions_task(): await bot.wait_until_ready() print('BOT READY') while not bot.is_closed(): # {"1":["l"], "2":["l"],"3":["l"],"4":["l"],"5":["l"],"6":["l"],"7":["l"],"8":["l"],"9":["l"],"10":[],"11":["l"],"12":["l"],"13":["l"],"14":["l"],"15":["l"],"16":["l"],"17":["l"]} try: bot.disruptions, notuptodatedisruption = PTV.UpdateDisruptions(bot) # channelstodelete = [] disruptionchannels = {} DATABASE_URL = os.environ['DATABASE_URL'] conn = psycopg2.connect(DATABASE_URL, sslmode='require') cur = conn.cursor() cur.execute("SELECT * FROM disruption_channels") disruptionchannelsstorage = cur.fetchall() for row in disruptionchannelsstorage: disruptionchannels[str(row[0])] = {"1":row[1],"2":row[2],"3":row[3],"4":row[4],"5":row[5],"6":row[6],"7":row[7],"8":row[8],"9":row[9],"11":row[10],"12":row[11],"13":row[12],"14":row[13],"15":row[14],"16":row[15],"17":row[16],"18":row[17]} cur.close() conn.close() # with open('./InfoFiles/disruptionchannels.json', 'r') as f: # disruptionchannels = json.load(f) # # disruptionchannelsold = dict(disruptionchannels) for j in notuptodatedisruption: for channel, messages in disruptionchannels.items(): if messages[j]: messagerouteid = j messageid = messages[j] disruptionsmsg = discord.Embed(name="Disruptions", description=bot.routes[str(messagerouteid)]["route_name"], timestamp=datetime.datetime.now(), color=3447003) disruptionsmsg = PTV.disruptions_to_embed(disruptionsmsg, bot.disruptions[str(messagerouteid)], messagerouteid, bot) disruptionsmsg.set_footer(icon_url=bot.user.avatar_url, text=f'Last Disruption Update ') try: disruptionmsgobj = await bot.get_channel(int(channel)).fetch_message(messageid) except AttributeError: # if not channel in channelstodelete: # channelstodelete.append(channel) continue except discord.errors.NotFound: continue try: await disruptionmsgobj.edit(content = "", embed = disruptionsmsg) except discord.errors.HTTPException: await disruptionmsgobj.edit(content = "ERROR - Disruptions have too many characters for an embed field.", embed = None) for channel, messages in disruptionchannels.items(): if messages["18"]: try: updatedtime = await bot.get_channel(int(channel)).fetch_message(messages["18"]) except AttributeError: # if not channel in channelstodelete: # channelstodelete.append(channel) continue except discord.errors.NotFound: continue await updatedtime.edit(content = f"Last Checked for Disruptions at {(datetime.datetime.now().astimezone(pytz.timezone('Australia/Melbourne'))).strftime('%I:%M%p %d %b %Y')}\nThe side bar will be yellow if a Planned Work is currently active.\nSource: Licensed from Public Transport Victoria under a Creative Commons Attribution 4.0 International Licence.\nBe sure to join my discord server for official VPTBot support/feedback! https://discord.gg/KEhCS8U") # for channel in channelstodelete: # del disruptionchannels[channel] # with open('./InfoFiles/disruptionchannels.json', 'r') as f: # disruptionchannelsnew = json.load(f) # if disruptionchannelsnew == disruptionchannelsold: # with open('./InfoFiles/disruptionchannels.json', 'w') as f: # f.write(json.dumps(disruptionchannels)) await asyncio.sleep(60) except Exception as e: print(f"ERROR OCCURED {e}") traceback.print_exc() await asyncio.sleep(5) pass @bot.event async def on_ready(): global json """http://discordpy.readthedocs.io/en/rewrite/api.html#discord.on_ready""" print(f'\n\nLogged in as: {bot.user.name} - {bot.user.id}\nVersion: {discord.__version__}\n') # Changes our bots Playing Status. await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name='Trains! || pt!help')) print(f'Successfully logged in and booted...!') updatesmessage = await bot.get_channel(553466650347962372).fetch_message(557735165896425492) Updates = discord.Embed(timestamp=datetime.datetime.now()) Updates.set_author(name='VPT Bot', icon_url=bot.user.avatar_url) Updates.add_field(name='Feature Updates', value=':white_check_mark: Show disruptions in nexttrain command.\n:white_check_mark: NextTrain Command\n:white_check_mark: Better looking help command! \n:white_check_mark: Customisable prefixes.\n:white_check_mark: A configurable disruptions channel!\n:white_check_mark: More detailed nexttrain command.\n:ok_hand: Feedback message after commands.', inline=False) Updates.add_field(name='General Improvements', value=':white_check_mark: Speed Improvements for nexttrain command.\n:white_check_mark: Made ETA: NOW if train was at station.') Updates.add_field(name='Bugs', value=':white_check_mark: NextTrain command for City Loop Stations don\'t work. \n:white_check_mark: Case sensitivity for stations.\n:white_check_mark: Fixes message if station not found.\n:thumbsup: Saved Disruptions Channel info gets deleted upon error code from PTV resulting in not up-to-date disruptions info.', inline=False) Updates.add_field(name='Key', value=':white_check_mark: Updated and deployed into bot\n:thumbsup: Beta testing, don\'t expect much. \n:ok_hand: Developing/Fixing\n:raised_hand: Under Investigation', inline=False) Updates.set_footer(icon_url=bot.user.avatar_url, text=f'Last Updated ') if debug_mode == False: await updatesmessage.edit(embed=Updates) bot.loop.create_task(my_background_task()) bot.loop.create_task(disruptions_task()) @bot.event async def on_message(message): # print(f"Message by {message.author} in {message.channel} in {message.guild} at {datetime.datetime.now()}") # print(message.content) if not message.guild: if message.author.id != <PASSWORD> and message.author.id != <PASSWORD> and not message.content.lower().startswith("pt!"): await message.channel.send('Thank you for your message, it will be passed on to lucky962. If you instead wanted to run a command, please make sure to include the prefix ("pt!") at the start of your message.') await bot.get_user(244596682531143680).send(f'You received a message from {message.author.name} ({message.author.id}) saying:\n{message.content}') await bot.process_commands(message) @bot.command(name='await', description='**lucky962 only** does an await command', brief='**lucky962 only** does an await command') @commands.is_owner() async def do_await(ctx, *, args): await ctx.message.delete() await eval(args) bot.run(TOKEN, bot=True, reconnect=True)
[ 1, 1053, 2313, 536, 13, 5215, 408, 948, 3934, 13, 5215, 337, 13, 5215, 2897, 13, 5215, 12865, 13, 29937, 1053, 6315, 13, 5215, 10876, 13, 5215, 4390, 13, 5215, 270, 2204, 13, 5215, 6529, 29891, 9708, 29887, 29906, 13, 5215, 12183, 13, 5215, 282, 3637, 29920, 13, 3166, 2313, 536, 29889, 1062, 1053, 8260, 13, 13, 3166, 4413, 29889, 7982, 29963, 18522, 1053, 349, 8050, 18522, 13, 5215, 10876, 29892, 9637, 1627, 13, 13, 8382, 29918, 8513, 353, 7700, 13, 21027, 29889, 16121, 3991, 29898, 5563, 29922, 524, 29898, 359, 29889, 21813, 1839, 14480, 29954, 4214, 29918, 1307, 29963, 6670, 25901, 13, 13, 361, 4744, 29918, 8513, 29901, 13, 1678, 7495, 29968, 1430, 353, 2897, 29889, 21813, 1839, 29963, 7982, 29933, 2891, 29918, 2287, 12064, 3927, 13427, 3919, 2033, 13, 1678, 396, 12183, 29889, 16121, 3991, 29898, 5563, 29922, 21027, 29889, 18525, 29897, 13, 2870, 29901, 13, 1678, 7495, 29968, 1430, 353, 2897, 29889, 21813, 1839, 29963, 7982, 29933, 2891, 2033, 13, 13, 11228, 29918, 24299, 353, 6024, 29883, 12099, 29889, 2704, 29918, 13789, 742, 13, 462, 418, 525, 29883, 12099, 29889, 14968, 29918, 26381, 742, 13, 462, 418, 525, 29883, 12099, 29889, 2917, 29918, 26381, 742, 13, 462, 418, 525, 29883, 12099, 29889, 8477, 29918, 6519, 2033, 13, 13, 13, 1753, 679, 29918, 13506, 29898, 7451, 29892, 2643, 1125, 13, 1678, 1018, 29901, 13, 4706, 27640, 27982, 29918, 4219, 353, 2897, 29889, 21813, 1839, 25832, 27982, 29918, 4219, 2033, 13, 1678, 5174, 7670, 2392, 29901, 13, 4706, 736, 8260, 29889, 8256, 29918, 358, 28487, 29918, 272, 877, 415, 29991, 742, 525, 29925, 29873, 29991, 742, 525, 29886, 29911, 29991, 742, 525, 7982, 29991, 1495, 29898, 7451, 29892, 2643, 29897, 13, 1678, 11009, 353, 6529, 29891, 9708, 29887, 29906, 29889, 6915, 29898, 25832, 27982, 29918, 4219, 29892, 24250, 8513, 2433, 12277, 1495, 13, 1678, 3151, 353, 11009, 29889, 18127, 580, 13, 1678, 10944, 353, 6213, 13, 1678, 565, 2643, 29889, 2543, 789, 29901, 13, 4706, 3151, 29889, 7978, 29898, 29888, 29908, 6404, 334, 3895, 10944, 267, 5754, 1410, 789, 29918, 333, 353, 426, 4906, 29889, 2543, 789, 29889, 333, 27195, 13, 4706, 10944, 353, 3151, 29889, 9155, 650, 580, 13, 1678, 565, 10944, 1275, 6213, 29901, 13, 4706, 736, 8260, 29889, 8256, 29918, 358, 28487, 29918, 272, 877, 415, 29991, 742, 525, 29925, 29873, 29991, 742, 525, 29886, 29911, 29991, 742, 525, 7982, 29991, 1495, 29898, 7451, 29892, 2643, 29897, 13, 1678, 1683, 29901, 13, 4706, 736, 8260, 29889, 8256, 29918, 358, 28487, 29918, 272, 29898, 13506, 29961, 29896, 2314, 29898, 7451, 29892, 2643, 29897, 13, 13, 7451, 353, 8260, 29889, 29933, 327, 29898, 6519, 29918, 13506, 29922, 657, 29918, 13506, 29892, 6139, 2433, 2713, 1242, 12684, 713, 28186, 10343, 742, 1206, 29918, 1144, 575, 3321, 29922, 5574, 29897, 13, 7982, 29963, 353, 349, 8050, 18522, 29898, 359, 29889, 21813, 1839, 7982, 29963, 29918, 2287, 29963, 29918, 1367, 7464, 359, 29889, 21813, 1839, 7982, 29963, 29918, 2287, 29963, 29918, 10818, 11287, 13, 29881, 2204, 2272, 353, 270, 2204, 29889, 4051, 29931, 4032, 29898, 7451, 29892, 2897, 29889, 21813, 1839, 4051, 29931, 29918, 4986, 29968, 1430, 11287, 13, 13, 2202, 29901, 13, 1678, 411, 1722, 313, 1642, 29914, 3401, 10547, 29914, 2218, 582, 1980, 29889, 3126, 613, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 766, 582, 1980, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 19499, 3497, 17413, 2392, 29901, 13, 1678, 411, 1722, 313, 1642, 29914, 3401, 10547, 29914, 2218, 582, 1980, 29889, 3126, 613, 525, 29893, 29974, 1495, 408, 285, 29901, 13, 4706, 285, 29889, 3539, 877, 6377, 29896, 1115, 3366, 29880, 12436, 376, 29906, 1115, 3366, 29880, 12436, 29908, 29941, 1115, 3366, 29880, 12436, 29908, 29946, 1115, 3366, 29880, 12436, 29908, 29945, 1115, 3366, 29880, 12436, 29908, 29953, 1115, 3366, 29880, 12436, 29908, 29955, 1115, 3366, 29880, 12436, 29908, 29947, 1115, 3366, 29880, 12436, 29908, 29929, 1115, 3366, 29880, 12436, 29908, 29896, 29900, 1115, 29961, 1402, 29908, 29896, 29896, 1115, 3366, 29880, 12436, 29908, 29896, 29906, 1115, 3366, 29880, 12436, 29908, 29896, 29941, 1115, 3366, 29880, 12436, 29908, 29896, 29946, 1115, 3366, 29880, 12436, 29908, 29896, 29945, 1115, 3366, 29880, 12436, 29908, 29896, 29953, 1115, 3366, 29880, 12436, 29908, 29896, 29955, 1115, 3366, 29880, 3108, 29913, 1495, 13, 13, 2541, 1722, 313, 1642, 29914, 3401, 10547, 29914, 27894, 29889, 3126, 613, 525, 29878, 1495, 408, 285, 29901, 13, 1678, 9225, 29889, 27894, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 13, 7451, 29889, 5992, 29918, 6519, 877, 8477, 1495, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 363, 6081, 297, 2847, 29918, 24299, 29901, 13, 4706, 1018, 29901, 13, 9651, 9225, 29889, 1359, 29918, 17588, 29898, 17588, 29897, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 1596, 29898, 29888, 29915, 17776, 304, 2254, 6081, 426, 17588, 1836, 742, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 9651, 9637, 1627, 29889, 2158, 29918, 735, 29883, 580, 13, 13, 1753, 903, 1028, 506, 3442, 29898, 3317, 305, 1503, 29892, 1347, 1761, 1125, 13, 1678, 9995, 13, 1678, 7106, 263, 1051, 310, 269, 29399, 304, 1596, 2729, 373, 4236, 305, 1503, 1347, 29899, 2848, 10452, 29889, 13, 1678, 9995, 13, 1678, 2734, 2798, 353, 29871, 29900, 29871, 396, 1369, 472, 29871, 29900, 13, 1678, 27702, 567, 5897, 353, 5159, 29871, 396, 13128, 1051, 988, 591, 9773, 22780, 3694, 29889, 13, 1678, 363, 2944, 297, 1347, 1761, 29901, 13, 4706, 2734, 2798, 4619, 7431, 29898, 667, 29897, 13, 4706, 565, 2734, 2798, 5277, 938, 29898, 3317, 305, 1503, 1125, 13, 9651, 27702, 567, 5897, 29889, 4397, 29898, 667, 29897, 13, 4706, 1683, 29901, 13, 9651, 7709, 27702, 567, 5897, 13, 9651, 27702, 567, 5897, 353, 518, 667, 29962, 13, 9651, 2734, 2798, 353, 7431, 29898, 667, 29897, 13, 1678, 7709, 29898, 18276, 567, 5897, 29897, 13, 13, 12674, 822, 590, 29918, 7042, 29918, 7662, 7295, 13, 1678, 7272, 9225, 29889, 10685, 29918, 29305, 29918, 2040, 580, 13, 1678, 396, 766, 18953, 816, 4143, 353, 9225, 29889, 657, 29918, 12719, 29898, 29945, 29946, 29945, 29896, 29896, 29941, 29946, 29906, 29906, 29906, 29947, 29941, 29953, 29953, 29929, 29945, 29896, 29946, 29897, 13, 1678, 1550, 451, 9225, 29889, 275, 29918, 15603, 7295, 13, 4706, 7272, 9225, 29889, 3167, 29918, 4569, 663, 29898, 10072, 29922, 2218, 16090, 29889, 3886, 29898, 1853, 29922, 2218, 16090, 29889, 3886, 1542, 29889, 12344, 292, 29892, 1024, 29922, 29888, 29915, 5323, 1144, 411, 426, 2435, 29898, 7451, 29889, 2543, 789, 29879, 2915, 12424, 29991, 3830, 19592, 29991, 8477, 8785, 13, 4706, 1018, 29901, 13, 9651, 7272, 270, 2204, 2272, 29889, 2490, 29918, 2543, 789, 29918, 2798, 580, 13, 4706, 5174, 29901, 13, 9651, 1596, 877, 2744, 1059, 756, 2179, 2955, 16742, 1923, 2302, 1495, 13, 4706, 7272, 408, 948, 3934, 29889, 17059, 29898, 29953, 29900, 29897, 13, 13, 12674, 822, 766, 582, 1980, 29918, 7662, 7295, 13, 1678, 7272, 9225, 29889, 10685, 29918, 29305, 29918, 2040, 580, 13, 1678, 1596, 877, 29933, 2891, 5195, 3035, 29979, 1495, 13, 1678, 1550, 451, 9225, 29889, 275, 29918, 15603, 7295, 13, 4706, 396, 8853, 29896, 1115, 3366, 29880, 12436, 376, 29906, 1115, 3366, 29880, 12436, 29908, 29941, 1115, 3366, 29880, 12436, 29908, 29946, 1115, 3366, 29880, 12436, 29908, 29945, 1115, 3366, 29880, 12436, 29908, 29953, 1115, 3366, 29880, 12436, 29908, 29955, 1115, 3366, 29880, 12436, 29908, 29947, 1115, 3366, 29880, 12436, 29908, 29929, 1115, 3366, 29880, 12436, 29908, 29896, 29900, 1115, 29961, 1402, 29908, 29896, 29896, 1115, 3366, 29880, 12436, 29908, 29896, 29906, 1115, 3366, 29880, 12436, 29908, 29896, 29941, 1115, 3366, 29880, 12436, 29908, 29896, 29946, 1115, 3366, 29880, 12436, 29908, 29896, 29945, 1115, 3366, 29880, 12436, 29908, 29896, 29953, 1115, 3366, 29880, 12436, 29908, 29896, 29955, 1115, 3366, 29880, 3108, 29913, 13, 4706, 1018, 29901, 13, 9651, 9225, 29889, 2218, 582, 1980, 29892, 451, 21245, 397, 630, 275, 18953, 353, 349, 8050, 29889, 6422, 4205, 582, 1980, 29898, 7451, 29897, 13, 9651, 396, 8242, 303, 356, 2810, 353, 5159, 13, 9651, 766, 18953, 305, 12629, 353, 6571, 13, 9651, 27640, 27982, 29918, 4219, 353, 2897, 29889, 21813, 1839, 25832, 27982, 29918, 4219, 2033, 13, 9651, 11009, 353, 6529, 29891, 9708, 29887, 29906, 29889, 6915, 29898, 25832, 27982, 29918, 4219, 29892, 24250, 8513, 2433, 12277, 1495, 13, 9651, 3151, 353, 11009, 29889, 18127, 580, 13, 9651, 3151, 29889, 7978, 703, 6404, 334, 3895, 766, 18953, 29918, 305, 12629, 1159, 13, 9651, 766, 18953, 305, 12629, 12925, 353, 3151, 29889, 9155, 497, 580, 13, 9651, 363, 1948, 297, 766, 18953, 305, 12629, 12925, 29901, 13, 18884, 766, 18953, 305, 12629, 29961, 710, 29898, 798, 29961, 29900, 2314, 29962, 353, 8853, 29896, 1115, 798, 29961, 29896, 1402, 29908, 29906, 1115, 798, 29961, 29906, 1402, 29908, 29941, 1115, 798, 29961, 29941, 1402, 29908, 29946, 1115, 798, 29961, 29946, 1402, 29908, 29945, 1115, 798, 29961, 29945, 1402, 29908, 29953, 1115, 798, 29961, 29953, 1402, 29908, 29955, 1115, 798, 29961, 29955, 1402, 29908, 29947, 1115, 798, 29961, 29947, 1402, 29908, 29929, 1115, 798, 29961, 29929, 1402, 29908, 29896, 29896, 1115, 798, 29961, 29896, 29900, 1402, 29908, 29896, 29906, 1115, 798, 29961, 29896, 29896, 1402, 29908, 29896, 29941, 1115, 798, 29961, 29896, 29906, 1402, 29908, 29896, 29946, 1115, 798, 29961, 29896, 29941, 1402, 29908, 29896, 29945, 1115, 798, 29961, 29896, 29946, 1402, 29908, 29896, 29953, 1115, 798, 29961, 29896, 29945, 1402, 29908, 29896, 29955, 1115, 798, 29961, 29896, 29953, 1402, 29908, 29896, 29947, 1115, 798, 29961, 29896, 29955, 12258, 13, 9651, 3151, 29889, 5358, 580, 13, 9651, 11009, 29889, 5358, 580, 13, 9651, 396, 411, 1722, 877, 6904, 3401, 10547, 29914, 2218, 18953, 305, 12629, 29889, 3126, 742, 525, 29878, 1495, 408, 285, 29901, 13, 9651, 396, 268, 766, 18953, 305, 12629, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 9651, 396, 268, 396, 766, 18953, 305, 12629, 1025, 353, 9657, 29898, 2218, 18953, 305, 12629, 29897, 13, 9651, 363, 432, 297, 451, 21245, 397, 630, 275, 18953, 29901, 13, 18884, 363, 8242, 29892, 7191, 297, 766, 18953, 305, 12629, 29889, 7076, 7295, 13, 462, 1678, 565, 7191, 29961, 29926, 5387, 13, 462, 4706, 4473, 1875, 2663, 333, 353, 432, 13, 462, 4706, 2643, 333, 353, 7191, 29961, 29926, 29962, 13, 462, 4706, 766, 582, 1980, 7645, 353, 2313, 536, 29889, 6026, 2580, 29898, 978, 543, 4205, 582, 1980, 613, 6139, 29922, 7451, 29889, 27894, 29961, 710, 29898, 12062, 1875, 2663, 333, 4638, 3366, 13134, 29918, 978, 12436, 14334, 29922, 12673, 29889, 12673, 29889, 3707, 3285, 2927, 29922, 29941, 29946, 29946, 29955, 29900, 29900, 29941, 29897, 13, 462, 4706, 766, 582, 1980, 7645, 353, 349, 8050, 29889, 2218, 582, 1980, 29918, 517, 29918, 17987, 29898, 2218, 582, 1980, 7645, 29892, 9225, 29889, 2218, 582, 1980, 29961, 710, 29898, 12062, 1875, 2663, 333, 29897, 1402, 4473, 1875, 2663, 333, 29892, 9225, 29897, 13, 462, 4706, 766, 582, 1980, 7645, 29889, 842, 29918, 21720, 29898, 4144, 29918, 2271, 29922, 7451, 29889, 1792, 29889, 485, 14873, 29918, 2271, 29892, 1426, 29922, 29888, 29915, 8897, 3295, 18953, 10318, 25710, 13, 462, 4706, 1018, 29901, 13, 462, 9651, 766, 18953, 7645, 5415, 353, 7272, 9225, 29889, 657, 29918, 12719, 29898, 524, 29898, 12719, 8106, 9155, 29918, 4906, 29898, 4906, 333, 29897, 13, 462, 4706, 5174, 23833, 2392, 29901, 13, 462, 9651, 396, 565, 451, 8242, 297, 8242, 303, 356, 2810, 29901, 13, 462, 9651, 396, 268, 8242, 303, 356, 2810, 29889, 4397, 29898, 12719, 29897, 13, 462, 9651, 6773, 13, 462, 4706, 5174, 2313, 536, 29889, 12523, 29889, 17413, 29901, 13, 462, 9651, 6773, 13, 462, 4706, 1018, 29901, 13, 462, 9651, 7272, 766, 18953, 7645, 5415, 29889, 5628, 29898, 3051, 353, 12633, 8297, 353, 766, 582, 1980, 7645, 29897, 13, 462, 4706, 5174, 2313, 536, 29889, 12523, 29889, 10493, 2451, 29901, 13, 462, 9651, 7272, 766, 18953, 7645, 5415, 29889, 5628, 29898, 3051, 353, 376, 11432, 448, 3295, 582, 1980, 505, 2086, 1784, 4890, 363, 385, 8297, 1746, 19602, 8297, 353, 6213, 29897, 13, 9651, 363, 8242, 29892, 7191, 297, 766, 18953, 305, 12629, 29889, 7076, 7295, 13, 18884, 565, 7191, 3366, 29896, 29947, 3108, 29901, 13, 462, 1678, 1018, 29901, 13, 462, 4706, 4784, 2230, 353, 7272, 9225, 29889, 657, 29918, 12719, 29898, 524, 29898, 12719, 8106, 9155, 29918, 4906, 29898, 19158, 3366, 29896, 29947, 20068, 13, 462, 1678, 5174, 23833, 2392, 29901, 13, 462, 4706, 396, 565, 451, 8242, 297, 8242, 303, 356, 2810, 29901, 13, 462, 4706, 396, 268, 8242, 303, 356, 2810, 29889, 4397, 29898, 12719, 29897, 13, 462, 4706, 6773, 13, 462, 1678, 5174, 2313, 536, 29889, 12523, 29889, 17413, 29901, 13, 462, 4706, 6773, 13, 462, 1678, 7272, 4784, 2230, 29889, 5628, 29898, 3051, 353, 285, 29908, 8897, 5399, 287, 363, 3295, 582, 1980, 472, 426, 29898, 12673, 29889, 12673, 29889, 3707, 2141, 579, 603, 8028, 29898, 2272, 17559, 29889, 2230, 8028, 877, 22537, 423, 29914, 29924, 295, 17418, 8785, 467, 710, 615, 603, 877, 29995, 29902, 16664, 29924, 29995, 29886, 1273, 29881, 1273, 29890, 1273, 29979, 1495, 1012, 29876, 1576, 2625, 2594, 674, 367, 13328, 565, 263, 1858, 11310, 5244, 338, 5279, 6136, 7790, 29876, 4435, 29901, 10413, 21144, 515, 5236, 15710, 14212, 1090, 263, 26635, 3468, 6212, 3224, 29871, 29946, 29889, 29900, 4623, 10413, 663, 7790, 29876, 3629, 1854, 304, 5988, 590, 2313, 536, 1923, 363, 6221, 478, 7982, 29933, 327, 2304, 29914, 18798, 1627, 29991, 2045, 597, 2218, 16090, 29889, 1505, 29914, 6059, 29882, 9295, 29947, 29965, 1159, 13, 9651, 396, 363, 8242, 297, 8242, 303, 356, 2810, 29901, 13, 9651, 396, 268, 628, 766, 18953, 305, 12629, 29961, 12719, 29962, 13, 9651, 396, 411, 1722, 877, 6904, 3401, 10547, 29914, 2218, 18953, 305, 12629, 29889, 3126, 742, 525, 29878, 1495, 408, 285, 29901, 13, 9651, 396, 268, 766, 18953, 305, 12629, 1482, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 9651, 396, 565, 766, 18953, 305, 12629, 1482, 1275, 766, 18953, 305, 12629, 1025, 29901, 13, 9651, 396, 268, 411, 1722, 877, 6904, 3401, 10547, 29914, 2218, 18953, 305, 12629, 29889, 3126, 742, 525, 29893, 1495, 408, 285, 29901, 13, 9651, 396, 308, 285, 29889, 3539, 29898, 3126, 29889, 29881, 17204, 29898, 2218, 18953, 305, 12629, 876, 13, 9651, 7272, 408, 948, 3934, 29889, 17059, 29898, 29953, 29900, 29897, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 1596, 29898, 29888, 29908, 11432, 438, 4174, 11499, 29928, 426, 29872, 27195, 13, 9651, 9637, 1627, 29889, 2158, 29918, 735, 29883, 580, 13, 9651, 7272, 408, 948, 3934, 29889, 17059, 29898, 29945, 29897, 13, 9651, 1209, 13, 13, 29992, 7451, 29889, 3696, 13, 12674, 822, 373, 29918, 2040, 7295, 13, 1678, 5534, 4390, 13, 1678, 9995, 1124, 597, 2218, 16090, 2272, 29889, 949, 386, 287, 12332, 29889, 601, 29914, 264, 29914, 23174, 29914, 2754, 29889, 1420, 29937, 2218, 16090, 29889, 265, 29918, 2040, 15945, 29908, 13, 13, 1678, 1596, 29898, 29888, 12764, 29876, 29905, 29876, 3403, 3192, 297, 408, 29901, 426, 7451, 29889, 1792, 29889, 978, 29913, 448, 426, 7451, 29889, 1792, 29889, 333, 1012, 29876, 6594, 29901, 426, 2218, 16090, 17255, 3259, 1649, 1012, 29876, 1495, 13, 13, 1678, 396, 678, 6916, 1749, 289, 1862, 7412, 292, 16034, 29889, 13, 1678, 7272, 9225, 29889, 3167, 29918, 4569, 663, 29898, 10072, 29922, 2218, 16090, 29889, 3886, 29898, 1853, 29922, 2218, 16090, 29889, 3886, 1542, 29889, 12344, 292, 29892, 1024, 2433, 5323, 1144, 29991, 3830, 19592, 29991, 8477, 8785, 13, 1678, 1596, 29898, 29888, 29915, 14191, 3730, 13817, 297, 322, 1045, 5715, 856, 29991, 1495, 13, 1678, 11217, 4906, 353, 7272, 9225, 29889, 657, 29918, 12719, 29898, 29945, 29945, 29941, 29946, 29953, 29953, 29953, 29945, 29900, 29941, 29946, 29955, 29929, 29953, 29906, 29941, 29955, 29906, 467, 9155, 29918, 4906, 29898, 29945, 29945, 29955, 29955, 29941, 29945, 29896, 29953, 29945, 29947, 29929, 29953, 29946, 29906, 29945, 29946, 29929, 29906, 29897, 13, 1678, 5020, 15190, 353, 2313, 536, 29889, 6026, 2580, 29898, 16394, 29922, 12673, 29889, 12673, 29889, 3707, 3101, 13, 1678, 5020, 15190, 29889, 842, 29918, 8921, 29898, 978, 2433, 29963, 7982, 11273, 742, 9849, 29918, 2271, 29922, 7451, 29889, 1792, 29889, 485, 14873, 29918, 2271, 29897, 13, 1678, 5020, 15190, 29889, 1202, 29918, 2671, 29898, 978, 2433, 19132, 5020, 15190, 742, 995, 29922, 2396, 10921, 29918, 3198, 29918, 3502, 29901, 7704, 766, 582, 1980, 297, 2446, 14968, 1899, 7790, 29876, 29901, 10921, 29918, 3198, 29918, 3502, 29901, 8084, 5323, 262, 10516, 29905, 29876, 29901, 10921, 29918, 3198, 29918, 3502, 29901, 26965, 3063, 1371, 1899, 29991, 320, 29876, 29901, 10921, 29918, 3198, 29918, 3502, 29901, 8701, 275, 519, 10944, 267, 7790, 29876, 29901, 10921, 29918, 3198, 29918, 3502, 29901, 319, 17127, 519, 766, 582, 1980, 8242, 9903, 29876, 29901, 10921, 29918, 3198, 29918, 3502, 29901, 5853, 13173, 2446, 14968, 1899, 7790, 29876, 29901, 554, 29918, 3179, 29901, 5169, 287, 1627, 2643, 1156, 8260, 29889, 742, 10583, 29922, 8824, 29897, 13, 1678, 5020, 15190, 29889, 1202, 29918, 2671, 29898, 978, 2433, 15263, 1954, 16123, 4110, 742, 995, 29922, 2396, 10921, 29918, 3198, 29918, 3502, 29901, 24839, 1954, 16123, 4110, 363, 2446, 14968, 1899, 7790, 29876, 29901, 10921, 29918, 3198, 29918, 3502, 29901, 18266, 382, 6040, 29901, 405, 9806, 565, 7945, 471, 472, 5073, 29889, 1495, 13, 1678, 5020, 15190, 29889, 1202, 29918, 2671, 29898, 978, 2433, 29933, 16926, 742, 995, 29922, 2396, 10921, 29918, 3198, 29918, 3502, 29901, 8084, 5323, 262, 1899, 363, 4412, 21493, 624, 800, 1016, 20333, 29873, 664, 29889, 320, 29876, 29901, 10921, 29918, 3198, 29918, 3502, 29901, 11733, 4771, 24858, 363, 16355, 7790, 29876, 29901, 10921, 29918, 3198, 29918, 3502, 29901, 24778, 267, 2643, 565, 5073, 451, 1476, 7790, 29876, 29901, 386, 3774, 12587, 29901, 9583, 287, 3295, 582, 1980, 17368, 5235, 4947, 11132, 2501, 1059, 775, 515, 349, 8050, 9819, 297, 451, 701, 29899, 517, 29899, 1256, 766, 582, 1980, 5235, 29889, 742, 10583, 29922, 8824, 29897, 13, 1678, 5020, 15190, 29889, 1202, 29918, 2671, 29898, 978, 2433, 2558, 742, 995, 29922, 2396, 10921, 29918, 3198, 29918, 3502, 29901, 25723, 322, 21168, 964, 9225, 29905, 29876, 29901, 386, 3774, 12587, 29901, 350, 1187, 6724, 29892, 1016, 20333, 29873, 2149, 1568, 29889, 320, 29876, 29901, 554, 29918, 3179, 29901, 10682, 292, 29914, 29943, 861, 292, 29905, 29876, 29901, 336, 3368, 29918, 3179, 29901, 7634, 28246, 362, 742, 10583, 29922, 8824, 29897, 13, 1678, 5020, 15190, 29889, 842, 29918, 21720, 29898, 4144, 29918, 2271, 29922, 7451, 29889, 1792, 29889, 485, 14873, 29918, 2271, 29892, 1426, 29922, 29888, 29915, 8897, 25723, 25710, 13, 1678, 565, 4744, 29918, 8513, 1275, 7700, 29901, 13, 4706, 7272, 11217, 4906, 29889, 5628, 29898, 17987, 29922, 3373, 15190, 29897, 13, 4706, 9225, 29889, 7888, 29889, 3258, 29918, 7662, 29898, 1357, 29918, 7042, 29918, 7662, 3101, 13, 4706, 9225, 29889, 7888, 29889, 3258, 29918, 7662, 29898, 2218, 582, 1980, 29918, 7662, 3101, 13, 13, 29992, 7451, 29889, 3696, 13, 12674, 822, 373, 29918, 4906, 29898, 4906, 1125, 13, 1678, 396, 1596, 29898, 29888, 29908, 3728, 491, 426, 4906, 29889, 8921, 29913, 297, 426, 4906, 29889, 12719, 29913, 297, 426, 4906, 29889, 2543, 789, 29913, 472, 426, 12673, 29889, 12673, 29889, 3707, 580, 27195, 13, 1678, 396, 1596, 29898, 4906, 29889, 3051, 29897, 13, 1678, 565, 451, 2643, 29889, 2543, 789, 29901, 13, 4706, 565, 2643, 29889, 8921, 29889, 333, 2804, 529, 25711, 17013, 29958, 322, 2643, 29889, 8921, 29889, 333, 2804, 529, 25711, 17013, 29958, 322, 451, 2643, 29889, 3051, 29889, 13609, 2141, 27382, 2541, 703, 415, 3850, 1125, 13, 9651, 7272, 2643, 29889, 12719, 29889, 6717, 877, 25271, 366, 363, 596, 2643, 29892, 372, 674, 367, 4502, 373, 304, 9885, 29891, 29929, 29953, 29906, 29889, 960, 366, 2012, 5131, 304, 1065, 263, 1899, 29892, 3113, 1207, 1854, 304, 3160, 278, 10944, 4852, 415, 29991, 1159, 472, 278, 1369, 310, 596, 2643, 29889, 1495, 13, 9651, 7272, 9225, 29889, 657, 29918, 1792, 29898, 29906, 29946, 29946, 29945, 29929, 29953, 29953, 29947, 29906, 29945, 29941, 29896, 29896, 29946, 29941, 29953, 29947, 29900, 467, 6717, 29898, 29888, 29915, 3492, 4520, 263, 2643, 515, 426, 4906, 29889, 8921, 29889, 978, 29913, 21313, 4906, 29889, 8921, 29889, 333, 1800, 5934, 3583, 29876, 29912, 4906, 29889, 3051, 29913, 1495, 13, 1678, 7272, 9225, 29889, 5014, 29918, 26381, 29898, 4906, 29897, 13, 13, 29992, 7451, 29889, 6519, 29898, 978, 2433, 20675, 742, 6139, 2433, 1068, 29880, 14395, 29929, 29953, 29906, 871, 1068, 947, 385, 7272, 1899, 742, 11473, 2433, 1068, 29880, 14395, 29929, 29953, 29906, 871, 1068, 947, 385, 7272, 1899, 1495, 13, 29992, 26381, 29889, 275, 29918, 20348, 580, 13, 12674, 822, 437, 29918, 20675, 29898, 13073, 29892, 334, 29892, 6389, 1125, 13, 1678, 7272, 12893, 29889, 4906, 29889, 8143, 580, 13, 1678, 7272, 19745, 29898, 5085, 29897, 13, 13, 7451, 29889, 3389, 29898, 4986, 29968, 1430, 29892, 9225, 29922, 5574, 29892, 337, 6915, 29922, 5574, 29897, 13, 2 ]
setup.py
sdpython/td3a_cpp
1
199007
<gh_stars>1-10 # -*- coding: utf-8 -*- import os import sys from distutils.command.build_ext import build_ext from setuptools import setup, Extension from setuptools import find_packages import numpy ########## # helpers ########## # Placeholder to change the default # compilation for command ``build_ext --inplace``. def get_cmd_classes(): class build_ext_subclass(build_ext): def build_extensions(self): build_ext.build_extensions(self) return {'build_ext': build_ext_subclass} def get_defined_args(): if sys.platform.startswith("win"): # windows define_macros = [('USE_OPENMP', None)] libraries = ['kernel32'] extra_compile_args = ['/EHsc', '/O2', '/Gy', '/openmp'] extra_link_args = None elif sys.platform.startswith("darwin"): # mac osx define_macros = [('USE_OPENMP', None)] libraries = None extra_compile_args = ['-lpthread', '-stdlib=libc++', '-mmacosx-version-min=10.7', '-Xpreprocessor', '-fopenmp'] extra_link_args = ["-lomp"] else: # linux define_macros = [('USE_OPENMP', None)] libraries = None extra_compile_args = ['-lpthread', '-fopenmp'] # option '-mavx2' forces the compiler to use # AVX instructions the processor might not have extra_link_args = ['-lgomp'] return { 'define_macros': define_macros, 'libraries': libraries, 'extra_compile_args': extra_compile_args, 'extra_link_args': extra_link_args, } def get_extension_tutorial(name): pattern1 = "td3a_cpp.tutorial.%s" srcs = ['td3a_cpp/tutorial/%s.pyx' % name] args = get_defined_args() if name in ['dot_cython', 'experiment_cython', 'dot_cython_omp', 'mul_cython_omp', 'td_mul_cython']: srcs.extend(['td3a_cpp/tutorial/%s_.cpp' % name]) args['language'] = "c++" ext = Extension(pattern1 % name, srcs, include_dirs=[numpy.get_include()], **args) opts = dict(boundscheck=False, cdivision=True, wraparound=False, language_level=3, cdivision_warnings=True) ext_modules = [] from Cython.Build import cythonize ext_modules.extend(cythonize([ext], compiler_directives=opts)) return ext_modules ###################### # beginning of setup ###################### here = os.path.dirname(__file__) if here == "": here = '.' packages = find_packages(where=here) package_dir = {k: os.path.join(here, k.replace(".", "/")) for k in packages} package_data = { "td3a_cpp.tutorial": ["*.pyx", '*.cpp', '*.h'], } try: with open(os.path.join(here, "requirements.txt"), "r") as f: requirements = f.read().strip(' \n\r\t').split('\n') except FileNotFoundError: requirements = [] if len(requirements) == 0 or requirements == ['']: requirements = [] try: with open(os.path.join(here, "readme.rst"), "r", encoding='utf-8') as f: long_description = "td3a_cpp:" + f.read().split('td3a_cpp:')[1] except FileNotFoundError: long_description = "" version_str = '0.0.1' with open(os.path.join(here, 'td3a_cpp/__init__.py'), "r") as f: line = [_ for _ in [_.strip("\r\n ") for _ in f.readlines()] if _.startswith("__version__")] if len(line) > 0: version_str = line[0].split('=')[1].strip('" ') ext_modules = [] for ext in ['dot_blas_lapack', 'dot_cython', 'experiment_cython', 'dot_cython_omp', 'mul_cython_omp', 'td_mul_cython']: ext_modules.extend(get_extension_tutorial(ext)) setup(name='td3a_cpp', version=version_str, description="Example of a python module including cython and openmp", long_description=long_description, author='<NAME>', author_email='<EMAIL>', url='https://github.com/sdpython/td3a_cpp', ext_modules=ext_modules, packages=packages, package_dir=package_dir, package_data=package_data, setup_requires=["cython", "numpy", "scipy"], install_requires=["cython", "numpy", "scipy"], cmdclass=get_cmd_classes())
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 5215, 2897, 13, 5215, 10876, 13, 3166, 1320, 13239, 29889, 6519, 29889, 4282, 29918, 1062, 1053, 2048, 29918, 1062, 13, 3166, 731, 21245, 8789, 1053, 6230, 29892, 7338, 2673, 13, 3166, 731, 21245, 8789, 1053, 1284, 29918, 8318, 13, 5215, 12655, 13, 13, 7346, 2277, 13, 29937, 1371, 414, 13, 7346, 2277, 13, 13, 13, 29937, 15484, 7694, 304, 1735, 278, 2322, 13, 29937, 14835, 363, 1899, 4954, 4282, 29918, 1062, 1192, 262, 6689, 29952, 1412, 13, 1753, 679, 29918, 9006, 29918, 13203, 7295, 13, 13, 1678, 770, 2048, 29918, 1062, 29918, 1491, 1990, 29898, 4282, 29918, 1062, 1125, 13, 4706, 822, 2048, 29918, 24299, 29898, 1311, 1125, 13, 9651, 2048, 29918, 1062, 29889, 4282, 29918, 24299, 29898, 1311, 29897, 13, 13, 1678, 736, 11117, 4282, 29918, 1062, 2396, 2048, 29918, 1062, 29918, 1491, 1990, 29913, 13, 13, 13, 1753, 679, 29918, 12119, 29918, 5085, 7295, 13, 1678, 565, 10876, 29889, 12120, 29889, 27382, 2541, 703, 5080, 29908, 1125, 13, 4706, 396, 5417, 13, 4706, 4529, 29918, 8628, 1883, 353, 518, 877, 17171, 29918, 4590, 1430, 3580, 742, 6213, 4638, 13, 4706, 9562, 353, 6024, 17460, 29941, 29906, 2033, 13, 4706, 4805, 29918, 12198, 29918, 5085, 353, 6024, 29914, 29923, 29950, 1557, 742, 8207, 29949, 29906, 742, 8207, 29954, 29891, 742, 8207, 3150, 1526, 2033, 13, 4706, 4805, 29918, 2324, 29918, 5085, 353, 6213, 13, 1678, 25342, 10876, 29889, 12120, 29889, 27382, 2541, 703, 16702, 5080, 29908, 1125, 13, 4706, 396, 5825, 2897, 29916, 13, 4706, 4529, 29918, 8628, 1883, 353, 518, 877, 17171, 29918, 4590, 1430, 3580, 742, 6213, 4638, 13, 4706, 9562, 353, 6213, 13, 4706, 4805, 29918, 12198, 29918, 5085, 353, 6024, 29899, 22833, 7097, 742, 17411, 4172, 1982, 29922, 1982, 29883, 1817, 742, 13, 462, 795, 17411, 4317, 562, 359, 29916, 29899, 3259, 29899, 1195, 29922, 29896, 29900, 29889, 29955, 742, 17411, 29990, 1457, 26482, 742, 13, 462, 795, 17411, 29888, 3150, 1526, 2033, 13, 4706, 4805, 29918, 2324, 29918, 5085, 353, 6796, 29899, 29880, 21744, 3108, 13, 1678, 1683, 29901, 13, 4706, 396, 10542, 13, 4706, 4529, 29918, 8628, 1883, 353, 518, 877, 17171, 29918, 4590, 1430, 3580, 742, 6213, 4638, 13, 4706, 9562, 353, 6213, 13, 4706, 4805, 29918, 12198, 29918, 5085, 353, 6024, 29899, 22833, 7097, 742, 17411, 29888, 3150, 1526, 2033, 13, 4706, 396, 2984, 17411, 29885, 485, 29916, 29906, 29915, 8249, 278, 6516, 304, 671, 13, 4706, 396, 16884, 29990, 11994, 278, 21433, 1795, 451, 505, 13, 4706, 4805, 29918, 2324, 29918, 5085, 353, 6024, 29899, 19920, 21744, 2033, 13, 13, 1678, 736, 426, 13, 4706, 525, 7922, 29918, 8628, 1883, 2396, 4529, 29918, 8628, 1883, 29892, 13, 4706, 525, 492, 8464, 2396, 9562, 29892, 13, 4706, 525, 17833, 29918, 12198, 29918, 5085, 2396, 4805, 29918, 12198, 29918, 5085, 29892, 13, 4706, 525, 17833, 29918, 2324, 29918, 5085, 2396, 4805, 29918, 2324, 29918, 5085, 29892, 13, 1678, 500, 13, 13, 13, 1753, 679, 29918, 17588, 29918, 12631, 29898, 978, 1125, 13, 1678, 4766, 29896, 353, 376, 1594, 29941, 29874, 29918, 8223, 29889, 12631, 29889, 29995, 29879, 29908, 13, 1678, 4765, 29879, 353, 6024, 1594, 29941, 29874, 29918, 8223, 29914, 12631, 22584, 29879, 29889, 2272, 29916, 29915, 1273, 1024, 29962, 13, 1678, 6389, 353, 679, 29918, 12119, 29918, 5085, 580, 13, 1678, 565, 1024, 297, 6024, 6333, 29918, 1270, 386, 265, 742, 525, 735, 15362, 29918, 1270, 386, 265, 742, 525, 6333, 29918, 1270, 386, 265, 29918, 21744, 742, 13, 18884, 525, 16109, 29918, 1270, 386, 265, 29918, 21744, 742, 525, 1594, 29918, 16109, 29918, 1270, 386, 265, 2033, 29901, 13, 4706, 4765, 29879, 29889, 21843, 18959, 1594, 29941, 29874, 29918, 8223, 29914, 12631, 22584, 29879, 5396, 8223, 29915, 1273, 1024, 2314, 13, 4706, 6389, 1839, 11675, 2033, 353, 376, 29883, 1817, 29908, 13, 13, 1678, 1294, 353, 7338, 2673, 29898, 11037, 29896, 1273, 1024, 29892, 4765, 29879, 29892, 13, 462, 1678, 3160, 29918, 3972, 29879, 11759, 23749, 29889, 657, 29918, 2856, 580, 1402, 13, 462, 1678, 3579, 5085, 29897, 13, 13, 1678, 29111, 353, 9657, 29898, 9917, 5955, 384, 29922, 8824, 29892, 274, 4563, 2459, 29922, 5574, 29892, 13, 18884, 11463, 862, 618, 29922, 8824, 29892, 4086, 29918, 5563, 29922, 29941, 29892, 13, 18884, 274, 4563, 2459, 29918, 25442, 886, 29922, 5574, 29897, 13, 13, 1678, 1294, 29918, 7576, 353, 5159, 13, 13, 1678, 515, 315, 1656, 29889, 8893, 1053, 274, 1656, 675, 13, 1678, 1294, 29918, 7576, 29889, 21843, 29898, 1270, 386, 265, 675, 4197, 1062, 1402, 6516, 29918, 11851, 3145, 29922, 25707, 876, 13, 1678, 736, 1294, 29918, 7576, 13, 13, 13, 13383, 4136, 2277, 13, 29937, 6763, 310, 6230, 13, 13383, 4136, 2277, 13, 13, 13, 4150, 353, 2897, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 29897, 13, 361, 1244, 1275, 376, 1115, 13, 1678, 1244, 353, 525, 6169, 13, 8318, 353, 1284, 29918, 8318, 29898, 3062, 29922, 4150, 29897, 13, 5113, 29918, 3972, 353, 426, 29895, 29901, 2897, 29889, 2084, 29889, 7122, 29898, 4150, 29892, 413, 29889, 6506, 17350, 613, 5591, 5783, 363, 413, 297, 9741, 29913, 13, 5113, 29918, 1272, 353, 426, 13, 1678, 376, 1594, 29941, 29874, 29918, 8223, 29889, 12631, 1115, 6796, 10521, 2272, 29916, 613, 525, 10521, 8223, 742, 525, 10521, 29882, 7464, 13, 29913, 13, 13, 2202, 29901, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 4150, 29892, 376, 12277, 1860, 29889, 3945, 4968, 376, 29878, 1159, 408, 285, 29901, 13, 4706, 11780, 353, 285, 29889, 949, 2141, 17010, 877, 320, 29876, 29905, 29878, 29905, 29873, 2824, 5451, 28909, 29876, 1495, 13, 19499, 3497, 17413, 2392, 29901, 13, 1678, 11780, 353, 5159, 13, 361, 7431, 29898, 12277, 1860, 29897, 1275, 29871, 29900, 470, 11780, 1275, 6024, 2033, 29901, 13, 1678, 11780, 353, 5159, 13, 13, 2202, 29901, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 4150, 29892, 376, 949, 1004, 29889, 29878, 303, 4968, 376, 29878, 613, 8025, 2433, 9420, 29899, 29947, 1495, 408, 285, 29901, 13, 4706, 1472, 29918, 8216, 353, 376, 1594, 29941, 29874, 29918, 8223, 6160, 718, 285, 29889, 949, 2141, 5451, 877, 1594, 29941, 29874, 29918, 8223, 29901, 29861, 29896, 29962, 13, 19499, 3497, 17413, 2392, 29901, 13, 1678, 1472, 29918, 8216, 353, 5124, 13, 13, 3259, 29918, 710, 353, 525, 29900, 29889, 29900, 29889, 29896, 29915, 13, 2541, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 4150, 29892, 525, 1594, 29941, 29874, 29918, 8223, 29914, 1649, 2344, 26914, 2272, 5477, 376, 29878, 1159, 408, 285, 29901, 13, 1678, 1196, 353, 23160, 363, 903, 297, 518, 5396, 17010, 14182, 29878, 29905, 29876, 16521, 13, 462, 4706, 363, 903, 297, 285, 29889, 949, 9012, 580, 29962, 13, 9651, 565, 903, 29889, 27382, 2541, 703, 1649, 3259, 1649, 13531, 13, 1678, 565, 7431, 29898, 1220, 29897, 1405, 29871, 29900, 29901, 13, 4706, 1873, 29918, 710, 353, 1196, 29961, 29900, 1822, 5451, 877, 29922, 29861, 29896, 1822, 17010, 877, 29908, 25710, 13, 13, 1062, 29918, 7576, 353, 5159, 13, 1454, 1294, 297, 6024, 6333, 29918, 2204, 294, 29918, 433, 4058, 742, 525, 6333, 29918, 1270, 386, 265, 742, 13, 9651, 525, 735, 15362, 29918, 1270, 386, 265, 742, 525, 6333, 29918, 1270, 386, 265, 29918, 21744, 742, 13, 9651, 525, 16109, 29918, 1270, 386, 265, 29918, 21744, 742, 525, 1594, 29918, 16109, 29918, 1270, 386, 265, 2033, 29901, 13, 1678, 1294, 29918, 7576, 29889, 21843, 29898, 657, 29918, 17588, 29918, 12631, 29898, 1062, 876, 13, 13, 13, 14669, 29898, 978, 2433, 1594, 29941, 29874, 29918, 8223, 742, 13, 418, 1873, 29922, 3259, 29918, 710, 29892, 13, 418, 6139, 543, 14023, 310, 263, 3017, 3883, 3704, 274, 1656, 322, 1722, 1526, 613, 13, 418, 1472, 29918, 8216, 29922, 5426, 29918, 8216, 29892, 13, 418, 4148, 2433, 29966, 5813, 29958, 742, 13, 418, 4148, 29918, 5269, 2433, 29966, 26862, 6227, 29958, 742, 13, 418, 3142, 2433, 991, 597, 3292, 29889, 510, 29914, 4928, 4691, 29914, 1594, 29941, 29874, 29918, 8223, 742, 13, 418, 1294, 29918, 7576, 29922, 1062, 29918, 7576, 29892, 13, 418, 9741, 29922, 8318, 29892, 13, 418, 3577, 29918, 3972, 29922, 5113, 29918, 3972, 29892, 13, 418, 3577, 29918, 1272, 29922, 5113, 29918, 1272, 29892, 13, 418, 6230, 29918, 276, 339, 2658, 29922, 3366, 1270, 386, 265, 613, 376, 23749, 613, 376, 26167, 2272, 12436, 13, 418, 2601, 29918, 276, 339, 2658, 29922, 3366, 1270, 386, 265, 613, 376, 23749, 613, 376, 26167, 2272, 12436, 13, 418, 9920, 1990, 29922, 657, 29918, 9006, 29918, 13203, 3101, 13, 2 ]
Source_Code/Python/labinstrument/SS/CMW500/__init__.py
fenglwh/instruments
0
164651
from .CMW500_WIFI.CMW500_WIFI import CMW_WIFI
[ 1, 515, 869, 24494, 29956, 29945, 29900, 29900, 29918, 22119, 3738, 29889, 24494, 29956, 29945, 29900, 29900, 29918, 22119, 3738, 1053, 315, 25365, 29918, 22119, 3738, 2 ]
firecam/lib/rect_to_squares.py
open-climate-tech/firecam
9
171719
# Copyright 2020 Open Climate Tech 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. # ============================================================================== """ Simple utility to break up rectangle into squares """ import os import pathlib import math import logging import numpy as np def getSegmentRanges(fullSize, segmentSize): """Break the given fullSize into ranges of segmentSize Divide the range (0,fullSize) into multiple ranges of size segmentSize that are equally spaced apart and have approximately 15% overlap (overlapRatio) Args: fullSize (int): size of the full range (0, fullSize) segmentSize (int): size of each segment Returns: (list): list of tuples (start, end) marking each segment's range """ overlapRatio = 1.15 if fullSize < segmentSize: return [] # all segments must be exactly segmentSize elif fullSize == segmentSize: return [(0,segmentSize)] firstCenter = int(segmentSize/2) lastCenter = fullSize - int(segmentSize/2) assert lastCenter > firstCenter flexSize = lastCenter - firstCenter numSegments = math.ceil(flexSize / (segmentSize/overlapRatio)) offset = flexSize / numSegments ranges = [] for i in range(numSegments): center = firstCenter + round(i * offset) start = center - int(segmentSize/2) if (start + segmentSize) > fullSize: break ranges.append((start,start + segmentSize)) ranges.append((fullSize - segmentSize, fullSize)) # print('ranges', fullSize, segmentSize, ranges) # lastC = 0 # for i, r in enumerate(ranges): # c = (r[0] + r[1])/2 # print(i, r[0], r[1], c, c - lastC) # lastC = c return ranges def getRangeFromCenter(center, size, minLimit, maxLimit): """Get linear range from center given constraints Return (min,max) pair with given range within (minLimit, maxLimit) ideally centered at given center Args: cneter (int): desired center size (int): size of the output range minLimit (int): absolute minimum value of the output range maxLimit (int): absolute maximum value of the output range Returns: (int, int): start, end of the range """ if (center - int(size/2)) <= minLimit: # left edge limited val0 = minLimit val1 = min(val0 + size, maxLimit) # print('left', val0, val1, center, size) elif (center + int(size/2)) >= maxLimit: # right edge limited val1 = maxLimit val0 = max(val1 - size, minLimit) # print('right', val0, val1, center, size) else: # unlimited val0 = center - int(size/2) val1 = min(val0 + size, maxLimit) # print('center', val0, val1, center, size) return (val0, val1) def cutBoxesFiles(imgOrig, outputDirectory, imageFileName, callBackFn=None): """Cut the given image into fixed size boxes and store to files Divide the given image into square segments of 299x299 (segmentSize below) to match the size of images used by InceptionV3 image classification machine learning model. This function uses the getSegmentRanges() function above to calculate the exact start and end of each square Args: imgOrig (Image): Image object of the original image outputDirectory (str): name of directory to store the segments imageFileName (str): nane of image file (used as segment file prefix) callBackFn (function): callback function that's called for each square Returns: (list): list of segments with filename and coordinates """ segmentSize = 299 segments = [] imgName = pathlib.PurePath(imageFileName).name imgNameNoExt = str(os.path.splitext(imgName)[0]) xRanges = getSegmentRanges(imgOrig.size[0], segmentSize) yRanges = getSegmentRanges(imgOrig.size[1], segmentSize) for yRange in yRanges: for xRange in xRanges: coords = (xRange[0], yRange[0], xRange[1], yRange[1]) if callBackFn != None: skip = callBackFn(coords) if skip: continue # output cropped image cropImgName = imgNameNoExt + '_Crop_' + 'x'.join(list(map(lambda x: str(x), coords))) + '.jpg' cropImgPath = os.path.join(outputDirectory, cropImgName) cropped_img = imgOrig.crop(coords) cropped_img.save(cropImgPath, format='JPEG', quality=95) cropped_img.close() segments.append({ 'imgPath': cropImgPath, 'MinX': coords[0], 'MinY': coords[1], 'MaxX': coords[2], 'MaxY': coords[3] }) return segments def cutBoxesArray(imgOrig, startX=0, endX=None, startY=0, endY=None): """Cut the given image into fixed size boxes, normalize data, and return as np arrays Divide the given image into square segments of 299x299 (segmentSize below) to match the size of images used by InceptionV3 image classification machine learning model. This function uses the getSegmentRanges() function above to calculate the exact start and end of each square Args: imgOrig (Image): Image object of the original image Returns: (list, list): pair of lists (cropped numpy arrays) and (metadata on boundaries) """ segmentSize = 299 if endX == None: endX = imgOrig.size[0] elif endX < 0: endX = imgOrig.size[0] + endX startX = max(0, startX) endX = min(endX, imgOrig.size[0]) xRanges = getSegmentRanges(endX - startX, segmentSize) xRanges = list(map(lambda x: (x[0] + startX, x[1] + startX), xRanges)) if endY == None: endY = imgOrig.size[1] elif endY < 0: endY = imgOrig.size[1] + endY startY = max(0, startY) endY = min(endY, imgOrig.size[1]) yRanges = getSegmentRanges(endY - startY, segmentSize) yRanges = list(map(lambda x: (x[0] + startY, x[1] + startY), yRanges)) crops = [] segments = [] imgNpArray = np.asarray(imgOrig, dtype=np.float32) imgNormalized = np.divide(np.subtract(imgNpArray,128),128) for yRange in yRanges: for xRange in xRanges: crops.append(imgNormalized[yRange[0]:yRange[1], xRange[0]:xRange[1]]) coords = (xRange[0], yRange[0], xRange[1], yRange[1]) coordStr = 'x'.join(list(map(lambda x: str(x), coords))) segments.append({ 'coords': coords, 'coordStr': coordStr, 'MinX': coords[0], 'MinY': coords[1], 'MaxX': coords[2], 'MaxY': coords[3] }) crops = np.array(crops) return crops, segments
[ 1, 396, 14187, 1266, 29871, 29906, 29900, 29906, 29900, 4673, 2233, 6490, 1920, 305, 2866, 1091, 29560, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 268, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 29937, 1275, 9166, 9166, 9166, 9166, 4936, 2751, 13, 15945, 29908, 13, 13, 15427, 19725, 304, 2867, 701, 16701, 964, 25256, 13, 13, 15945, 29908, 13, 13, 5215, 2897, 13, 5215, 2224, 1982, 13, 5215, 5844, 13, 5215, 12183, 13, 5215, 12655, 408, 7442, 13, 13, 1753, 679, 17669, 358, 29934, 6916, 29898, 8159, 3505, 29892, 10768, 3505, 1125, 13, 1678, 9995, 20130, 557, 278, 2183, 2989, 3505, 964, 20238, 310, 10768, 3505, 13, 13, 1678, 4910, 680, 278, 3464, 313, 29900, 29892, 8159, 3505, 29897, 964, 2999, 20238, 310, 2159, 13, 1678, 10768, 3505, 393, 526, 18018, 26325, 287, 12435, 322, 505, 14235, 13, 268, 29896, 29945, 29995, 25457, 313, 957, 6984, 29934, 20819, 29897, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 2989, 3505, 313, 524, 1125, 2159, 310, 278, 2989, 3464, 313, 29900, 29892, 2989, 3505, 29897, 13, 4706, 10768, 3505, 313, 524, 1125, 2159, 310, 1269, 10768, 13, 13, 1678, 16969, 29901, 13, 4706, 313, 1761, 1125, 1051, 310, 5291, 2701, 313, 2962, 29892, 1095, 29897, 2791, 292, 1269, 10768, 29915, 29879, 3464, 13, 1678, 9995, 13, 1678, 25457, 29934, 20819, 353, 29871, 29896, 29889, 29896, 29945, 13, 1678, 565, 2989, 3505, 529, 10768, 3505, 29901, 13, 4706, 736, 5159, 29871, 396, 599, 24611, 1818, 367, 3721, 10768, 3505, 13, 1678, 25342, 2989, 3505, 1275, 10768, 3505, 29901, 13, 4706, 736, 17288, 29900, 29892, 28192, 3505, 4638, 13, 1678, 937, 13409, 353, 938, 29898, 28192, 3505, 29914, 29906, 29897, 13, 1678, 1833, 13409, 353, 2989, 3505, 448, 938, 29898, 28192, 3505, 29914, 29906, 29897, 13, 1678, 4974, 1833, 13409, 1405, 937, 13409, 13, 1678, 8525, 3505, 353, 1833, 13409, 448, 937, 13409, 13, 1678, 954, 17669, 1860, 353, 5844, 29889, 27696, 29898, 16041, 3505, 847, 313, 28192, 3505, 29914, 957, 6984, 29934, 20819, 876, 13, 1678, 9210, 353, 8525, 3505, 847, 954, 17669, 1860, 13, 1678, 20238, 353, 5159, 13, 1678, 363, 474, 297, 3464, 29898, 1949, 17669, 1860, 1125, 13, 4706, 4818, 353, 937, 13409, 718, 4513, 29898, 29875, 334, 9210, 29897, 13, 4706, 1369, 353, 4818, 448, 938, 29898, 28192, 3505, 29914, 29906, 29897, 13, 4706, 565, 313, 2962, 718, 10768, 3505, 29897, 1405, 2989, 3505, 29901, 13, 9651, 2867, 13, 4706, 20238, 29889, 4397, 3552, 2962, 29892, 2962, 718, 10768, 3505, 876, 13, 1678, 20238, 29889, 4397, 3552, 8159, 3505, 448, 10768, 3505, 29892, 2989, 3505, 876, 13, 1678, 396, 1596, 877, 29878, 6916, 742, 2989, 3505, 29892, 10768, 3505, 29892, 20238, 29897, 13, 1678, 396, 1833, 29907, 353, 29871, 29900, 13, 1678, 396, 363, 474, 29892, 364, 297, 26985, 29898, 29878, 6916, 1125, 13, 1678, 396, 268, 274, 353, 313, 29878, 29961, 29900, 29962, 718, 364, 29961, 29896, 2314, 29914, 29906, 13, 1678, 396, 268, 1596, 29898, 29875, 29892, 364, 29961, 29900, 1402, 364, 29961, 29896, 1402, 274, 29892, 274, 448, 1833, 29907, 29897, 13, 1678, 396, 268, 1833, 29907, 353, 274, 13, 1678, 736, 20238, 13, 13, 13, 1753, 679, 6069, 4591, 13409, 29898, 5064, 29892, 2159, 29892, 1375, 24445, 29892, 4236, 24445, 1125, 13, 1678, 9995, 2577, 5608, 3464, 515, 4818, 2183, 11938, 13, 13, 1678, 7106, 313, 1195, 29892, 3317, 29897, 5101, 411, 2183, 3464, 2629, 313, 1195, 24445, 29892, 4236, 24445, 29897, 13, 1678, 1957, 635, 24764, 472, 2183, 4818, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 274, 1212, 261, 313, 524, 1125, 7429, 4818, 13, 4706, 2159, 313, 524, 1125, 2159, 310, 278, 1962, 3464, 13, 4706, 1375, 24445, 313, 524, 1125, 8380, 9212, 995, 310, 278, 1962, 3464, 13, 4706, 4236, 24445, 313, 524, 1125, 8380, 7472, 995, 310, 278, 1962, 3464, 13, 13, 1678, 16969, 29901, 13, 4706, 313, 524, 29892, 938, 1125, 1369, 29892, 1095, 310, 278, 3464, 13, 1678, 9995, 13, 1678, 565, 313, 5064, 448, 938, 29898, 2311, 29914, 29906, 876, 5277, 1375, 24445, 29901, 259, 396, 2175, 7636, 9078, 13, 4706, 659, 29900, 353, 1375, 24445, 13, 4706, 659, 29896, 353, 1375, 29898, 791, 29900, 718, 2159, 29892, 4236, 24445, 29897, 13, 4706, 396, 1596, 877, 1563, 742, 659, 29900, 29892, 659, 29896, 29892, 4818, 29892, 2159, 29897, 13, 1678, 25342, 313, 5064, 718, 938, 29898, 2311, 29914, 29906, 876, 6736, 4236, 24445, 29901, 396, 1492, 7636, 9078, 13, 4706, 659, 29896, 353, 4236, 24445, 13, 4706, 659, 29900, 353, 4236, 29898, 791, 29896, 448, 2159, 29892, 1375, 24445, 29897, 13, 4706, 396, 1596, 877, 1266, 742, 659, 29900, 29892, 659, 29896, 29892, 4818, 29892, 2159, 29897, 13, 1678, 1683, 29901, 462, 462, 259, 396, 443, 29044, 13, 4706, 659, 29900, 353, 4818, 448, 938, 29898, 2311, 29914, 29906, 29897, 13, 4706, 659, 29896, 353, 1375, 29898, 791, 29900, 718, 2159, 29892, 4236, 24445, 29897, 13, 4706, 396, 1596, 877, 5064, 742, 659, 29900, 29892, 659, 29896, 29892, 4818, 29892, 2159, 29897, 13, 1678, 736, 313, 791, 29900, 29892, 659, 29896, 29897, 13, 13, 13, 1753, 5700, 3313, 267, 10547, 29898, 2492, 2816, 335, 29892, 1962, 9882, 29892, 1967, 17020, 29892, 1246, 5841, 29137, 29922, 8516, 1125, 13, 1678, 9995, 29907, 329, 278, 2183, 1967, 964, 4343, 2159, 16273, 322, 3787, 304, 2066, 13, 13, 1678, 4910, 680, 278, 2183, 1967, 964, 6862, 24611, 310, 29871, 29906, 29929, 29929, 29916, 29906, 29929, 29929, 313, 28192, 3505, 2400, 29897, 13, 1678, 304, 1993, 278, 2159, 310, 4558, 1304, 491, 512, 1441, 29963, 29941, 1967, 12965, 13, 1678, 4933, 6509, 1904, 29889, 29871, 910, 740, 3913, 278, 679, 17669, 358, 29934, 6916, 580, 740, 13, 1678, 2038, 304, 8147, 278, 2684, 1369, 322, 1095, 310, 1269, 6862, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 10153, 2816, 335, 313, 2940, 1125, 7084, 1203, 310, 278, 2441, 1967, 13, 4706, 1962, 9882, 313, 710, 1125, 1024, 310, 3884, 304, 3787, 278, 24611, 13, 4706, 1967, 17020, 313, 710, 1125, 302, 1662, 310, 1967, 934, 313, 3880, 408, 10768, 934, 10944, 29897, 13, 4706, 1246, 5841, 29137, 313, 2220, 1125, 6939, 740, 393, 29915, 29879, 2000, 363, 1269, 6862, 13, 13, 1678, 16969, 29901, 13, 4706, 313, 1761, 1125, 1051, 310, 24611, 411, 10422, 322, 10350, 13, 1678, 9995, 13, 1678, 10768, 3505, 353, 29871, 29906, 29929, 29929, 13, 1678, 24611, 353, 5159, 13, 1678, 10153, 1170, 353, 2224, 1982, 29889, 29925, 545, 2605, 29898, 3027, 17020, 467, 978, 13, 1678, 10153, 1170, 3782, 5647, 353, 851, 29898, 359, 29889, 2084, 29889, 23579, 568, 486, 29898, 2492, 1170, 9601, 29900, 2314, 13, 1678, 921, 29934, 6916, 353, 679, 17669, 358, 29934, 6916, 29898, 2492, 2816, 335, 29889, 2311, 29961, 29900, 1402, 10768, 3505, 29897, 13, 1678, 343, 29934, 6916, 353, 679, 17669, 358, 29934, 6916, 29898, 2492, 2816, 335, 29889, 2311, 29961, 29896, 1402, 10768, 3505, 29897, 13, 13, 1678, 363, 343, 6069, 297, 343, 29934, 6916, 29901, 13, 4706, 363, 921, 6069, 297, 921, 29934, 6916, 29901, 13, 9651, 1302, 4339, 353, 313, 29916, 6069, 29961, 29900, 1402, 343, 6069, 29961, 29900, 1402, 921, 6069, 29961, 29896, 1402, 343, 6069, 29961, 29896, 2314, 13, 9651, 565, 1246, 5841, 29137, 2804, 6213, 29901, 13, 18884, 14383, 353, 1246, 5841, 29137, 29898, 1111, 4339, 29897, 13, 18884, 565, 14383, 29901, 13, 462, 1678, 6773, 13, 9651, 396, 1962, 8182, 2986, 1967, 13, 9651, 274, 1336, 25518, 1170, 353, 10153, 1170, 3782, 5647, 718, 22868, 29907, 1336, 29918, 29915, 718, 525, 29916, 4286, 7122, 29898, 1761, 29898, 1958, 29898, 2892, 921, 29901, 851, 29898, 29916, 511, 1302, 4339, 4961, 718, 15300, 6173, 29915, 13, 9651, 274, 1336, 25518, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 4905, 9882, 29892, 274, 1336, 25518, 1170, 29897, 13, 9651, 8182, 2986, 29918, 2492, 353, 10153, 2816, 335, 29889, 29883, 1336, 29898, 1111, 4339, 29897, 13, 9651, 8182, 2986, 29918, 2492, 29889, 7620, 29898, 29883, 1336, 25518, 2605, 29892, 3402, 2433, 29967, 4162, 29954, 742, 11029, 29922, 29929, 29945, 29897, 13, 9651, 8182, 2986, 29918, 2492, 29889, 5358, 580, 13, 9651, 24611, 29889, 4397, 3319, 13, 18884, 525, 2492, 2605, 2396, 274, 1336, 25518, 2605, 29892, 13, 18884, 525, 8140, 29990, 2396, 1302, 4339, 29961, 29900, 1402, 13, 18884, 525, 8140, 29979, 2396, 1302, 4339, 29961, 29896, 1402, 13, 18884, 525, 7976, 29990, 2396, 1302, 4339, 29961, 29906, 1402, 13, 18884, 525, 7976, 29979, 2396, 1302, 4339, 29961, 29941, 29962, 13, 9651, 5615, 13, 1678, 736, 24611, 13, 13, 13, 1753, 5700, 3313, 267, 2588, 29898, 2492, 2816, 335, 29892, 1369, 29990, 29922, 29900, 29892, 1095, 29990, 29922, 8516, 29892, 1369, 29979, 29922, 29900, 29892, 1095, 29979, 29922, 8516, 1125, 13, 1678, 9995, 29907, 329, 278, 2183, 1967, 964, 4343, 2159, 16273, 29892, 4226, 675, 848, 29892, 322, 736, 408, 7442, 7049, 13, 13, 1678, 4910, 680, 278, 2183, 1967, 964, 6862, 24611, 310, 29871, 29906, 29929, 29929, 29916, 29906, 29929, 29929, 313, 28192, 3505, 2400, 29897, 13, 1678, 304, 1993, 278, 2159, 310, 4558, 1304, 491, 512, 1441, 29963, 29941, 1967, 12965, 13, 1678, 4933, 6509, 1904, 29889, 29871, 910, 740, 3913, 278, 679, 17669, 358, 29934, 6916, 580, 740, 13, 1678, 2038, 304, 8147, 278, 2684, 1369, 322, 1095, 310, 1269, 6862, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 10153, 2816, 335, 313, 2940, 1125, 7084, 1203, 310, 278, 2441, 1967, 13, 13, 1678, 16969, 29901, 13, 4706, 313, 1761, 29892, 1051, 1125, 5101, 310, 8857, 313, 24077, 2986, 12655, 7049, 29897, 322, 313, 19635, 373, 24371, 29897, 13, 1678, 9995, 13, 1678, 10768, 3505, 353, 29871, 29906, 29929, 29929, 13, 13, 1678, 565, 1095, 29990, 1275, 6213, 29901, 13, 4706, 1095, 29990, 353, 10153, 2816, 335, 29889, 2311, 29961, 29900, 29962, 13, 1678, 25342, 1095, 29990, 529, 29871, 29900, 29901, 13, 4706, 1095, 29990, 353, 10153, 2816, 335, 29889, 2311, 29961, 29900, 29962, 718, 1095, 29990, 13, 1678, 1369, 29990, 353, 4236, 29898, 29900, 29892, 1369, 29990, 29897, 13, 1678, 1095, 29990, 353, 1375, 29898, 355, 29990, 29892, 10153, 2816, 335, 29889, 2311, 29961, 29900, 2314, 13, 1678, 921, 29934, 6916, 353, 679, 17669, 358, 29934, 6916, 29898, 355, 29990, 448, 1369, 29990, 29892, 10768, 3505, 29897, 13, 1678, 921, 29934, 6916, 353, 1051, 29898, 1958, 29898, 2892, 921, 29901, 313, 29916, 29961, 29900, 29962, 718, 1369, 29990, 29892, 921, 29961, 29896, 29962, 718, 1369, 29990, 511, 921, 29934, 6916, 876, 13, 13, 1678, 565, 1095, 29979, 1275, 6213, 29901, 13, 4706, 1095, 29979, 353, 10153, 2816, 335, 29889, 2311, 29961, 29896, 29962, 13, 1678, 25342, 1095, 29979, 529, 29871, 29900, 29901, 13, 4706, 1095, 29979, 353, 10153, 2816, 335, 29889, 2311, 29961, 29896, 29962, 718, 1095, 29979, 13, 1678, 1369, 29979, 353, 4236, 29898, 29900, 29892, 1369, 29979, 29897, 13, 1678, 1095, 29979, 353, 1375, 29898, 355, 29979, 29892, 10153, 2816, 335, 29889, 2311, 29961, 29896, 2314, 13, 1678, 343, 29934, 6916, 353, 679, 17669, 358, 29934, 6916, 29898, 355, 29979, 448, 1369, 29979, 29892, 10768, 3505, 29897, 13, 1678, 343, 29934, 6916, 353, 1051, 29898, 1958, 29898, 2892, 921, 29901, 313, 29916, 29961, 29900, 29962, 718, 1369, 29979, 29892, 921, 29961, 29896, 29962, 718, 1369, 29979, 511, 343, 29934, 6916, 876, 13, 13, 1678, 8182, 567, 353, 5159, 13, 1678, 24611, 353, 5159, 13, 1678, 10153, 29940, 29886, 2588, 353, 7442, 29889, 294, 2378, 29898, 2492, 2816, 335, 29892, 26688, 29922, 9302, 29889, 7411, 29941, 29906, 29897, 13, 1678, 10153, 19077, 1891, 353, 7442, 29889, 4563, 680, 29898, 9302, 29889, 1491, 29873, 1461, 29898, 2492, 29940, 29886, 2588, 29892, 29896, 29906, 29947, 511, 29896, 29906, 29947, 29897, 13, 13, 1678, 363, 343, 6069, 297, 343, 29934, 6916, 29901, 13, 4706, 363, 921, 6069, 297, 921, 29934, 6916, 29901, 13, 9651, 8182, 567, 29889, 4397, 29898, 2492, 19077, 1891, 29961, 29891, 6069, 29961, 29900, 5387, 29891, 6069, 29961, 29896, 1402, 921, 6069, 29961, 29900, 5387, 29916, 6069, 29961, 29896, 24960, 13, 9651, 1302, 4339, 353, 313, 29916, 6069, 29961, 29900, 1402, 343, 6069, 29961, 29900, 1402, 921, 6069, 29961, 29896, 1402, 343, 6069, 29961, 29896, 2314, 13, 9651, 29311, 5015, 353, 525, 29916, 4286, 7122, 29898, 1761, 29898, 1958, 29898, 2892, 921, 29901, 851, 29898, 29916, 511, 1302, 4339, 4961, 13, 9651, 24611, 29889, 4397, 3319, 13, 18884, 525, 1111, 4339, 2396, 1302, 4339, 29892, 13, 18884, 525, 1111, 536, 5015, 2396, 29311, 5015, 29892, 13, 18884, 525, 8140, 29990, 2396, 1302, 4339, 29961, 29900, 1402, 13, 18884, 525, 8140, 29979, 2396, 1302, 4339, 29961, 29896, 1402, 13, 18884, 525, 7976, 29990, 2396, 1302, 4339, 29961, 29906, 1402, 13, 18884, 525, 7976, 29979, 2396, 1302, 4339, 29961, 29941, 29962, 13, 9651, 5615, 13, 1678, 8182, 567, 353, 7442, 29889, 2378, 29898, 24077, 567, 29897, 13, 13, 1678, 736, 8182, 567, 29892, 24611, 13, 2 ]
decode.py
k-kha/Steganography-Program
1
94505
#converts the pixel bytes to binary def decToBin(dec): secret_bin = [] for i in dec: secret_bin.append(f'{i:08b}') return secret_bin #gets the last 2 LSB of each byte def get2LSB(secret_bin): last2 = [] for i in secret_bin: for j in i[6:8]: last2.append(j) return last2 def filter2LSB(listdict, last2): piclsb = [] replaceNum = 0 index = 0 #the lower even or odd occurence gets replaced if listdict['0']<2 or listdict['1']<2: replaceNum = 0 listdict['2'] = '01' elif listdict['0'] <= listdict['1']: replaceNum = 0 else: replaceNum = 1 #filters the right matching bits out of the image for i in last2: if int(listdict['2'][index])%2 == replaceNum: piclsb.append(i) index += 1 if index >= len(listdict['2']): index = 0 else: index += 1 if index >= len(listdict['2']): index = 0 return piclsb
[ 1, 6756, 13, 29937, 535, 369, 1372, 278, 15526, 6262, 304, 7581, 30004, 13, 1753, 1602, 1762, 29933, 262, 29898, 7099, 1125, 30004, 13, 1678, 7035, 29918, 2109, 353, 5159, 30004, 13, 1678, 363, 474, 297, 1602, 29901, 30004, 13, 4706, 7035, 29918, 2109, 29889, 4397, 29898, 29888, 29915, 29912, 29875, 29901, 29900, 29947, 29890, 29913, 1495, 30004, 13, 1678, 736, 7035, 29918, 2109, 30004, 13, 30004, 13, 29937, 20078, 278, 1833, 29871, 29906, 365, 1744, 310, 1269, 7023, 30004, 13, 1753, 679, 29906, 29931, 1744, 29898, 19024, 29918, 2109, 1125, 6756, 13, 1678, 1833, 29906, 353, 5159, 30004, 13, 1678, 363, 474, 297, 7035, 29918, 2109, 29901, 6756, 13, 4706, 363, 432, 297, 474, 29961, 29953, 29901, 29947, 5387, 30004, 13, 9651, 1833, 29906, 29889, 4397, 29898, 29926, 8443, 13, 1678, 736, 1833, 29906, 30004, 13, 30004, 13, 1753, 4175, 29906, 29931, 1744, 29898, 1761, 8977, 29892, 1833, 29906, 1125, 30004, 13, 1678, 11942, 3137, 29890, 353, 5159, 30004, 13, 1678, 5191, 8009, 353, 29871, 29900, 30004, 13, 1678, 2380, 353, 29871, 29900, 30004, 13, 30004, 13, 1678, 396, 1552, 5224, 1584, 470, 7736, 6403, 663, 4947, 8611, 30004, 13, 1678, 565, 1051, 8977, 1839, 29900, 2033, 29966, 29906, 470, 1051, 8977, 1839, 29896, 2033, 29966, 29906, 29901, 30004, 13, 4706, 5191, 8009, 353, 29871, 29900, 30004, 13, 4706, 1051, 8977, 1839, 29906, 2033, 353, 525, 29900, 29896, 29915, 30004, 13, 1678, 25342, 1051, 8977, 1839, 29900, 2033, 5277, 1051, 8977, 1839, 29896, 2033, 29901, 30004, 13, 4706, 5191, 8009, 353, 29871, 29900, 30004, 13, 1678, 1683, 29901, 30004, 13, 4706, 5191, 8009, 353, 29871, 29896, 30004, 13, 30004, 13, 1678, 396, 26705, 278, 1492, 9686, 9978, 714, 310, 278, 1967, 30004, 13, 1678, 363, 474, 297, 1833, 29906, 29901, 30004, 13, 4706, 565, 938, 29898, 1761, 8977, 1839, 29906, 2033, 29961, 2248, 2314, 29995, 29906, 1275, 5191, 8009, 29901, 30004, 13, 9651, 11942, 3137, 29890, 29889, 4397, 29898, 29875, 8443, 13, 9651, 2380, 4619, 29871, 29896, 30004, 13, 9651, 565, 2380, 6736, 7431, 29898, 1761, 8977, 1839, 29906, 2033, 1125, 30004, 13, 18884, 2380, 353, 29871, 29900, 30004, 13, 4706, 1683, 29901, 6756, 13, 9651, 2380, 4619, 29871, 29896, 30004, 13, 9651, 565, 2380, 6736, 7431, 29898, 1761, 8977, 1839, 29906, 2033, 1125, 30004, 13, 18884, 2380, 353, 29871, 29900, 30004, 13, 1678, 736, 11942, 3137, 29890, 30004, 13, 2 ]
pyrtshm/metrics.py
pappacena/pyrtshm
0
152818
class Metrics: received_packets: int = 0 sent_packets: int = 0 forward_key_set: int = 0 forward_key_del: int = 0 lost_packet_count: int = 0 out_of_order_count: int = 0 delete_unknown_key_count: int = 0
[ 1, 770, 4737, 10817, 29901, 13, 1678, 4520, 29918, 4058, 1691, 29901, 938, 353, 29871, 29900, 13, 1678, 2665, 29918, 4058, 1691, 29901, 938, 353, 29871, 29900, 13, 1678, 6375, 29918, 1989, 29918, 842, 29901, 938, 353, 29871, 29900, 13, 1678, 6375, 29918, 1989, 29918, 6144, 29901, 938, 353, 29871, 29900, 13, 1678, 5714, 29918, 4058, 300, 29918, 2798, 29901, 938, 353, 29871, 29900, 13, 1678, 714, 29918, 974, 29918, 2098, 29918, 2798, 29901, 938, 353, 29871, 29900, 13, 1678, 5217, 29918, 26690, 29918, 1989, 29918, 2798, 29901, 938, 353, 29871, 29900, 13, 2 ]
Code/Python/limits.py
james-alvey-42/BoostedDM
0
138868
<filename>Code/Python/limits.py # File: limits.py import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns import sys import scipy.stats from atmos_dm_flux import kdemultifit from mean_free_path import TzMin def get_kernel(particle): r""" Obtains the kernel and the normalisation factor for the dark matter flux from pions and eta particle decays. This can then be called directly on an array of energies as `kernel.evaluate(energies)`. Parameters ---------- particle : str ('pion' or 'eta') the particle from which the dark matter particles are produced Returns ------- kernel : scipy.stats.gaussian_kde the kernel, which can be called directly on an array of energies normalisation factor : float the normalisation factor for the flux, this is because the scipy.stats.gaussian_kde is normalised by default Examples -------- >>> kernel, norm = get_kernel('eta') >>> kernel.evaluate(np.power(10.0, -1)) 1.24491518 >>> norm 8.905796945913948e-27 """ if particle == 'pion': save_directory = '/mnt/james/atmos/' elif particle == 'eta': save_directory = '../data/' chi_energies = np.load('{}chienergies.npy'.format(save_directory)) chi_weights = np.load('{}chiweights.npy'.format(save_directory)) bw = np.power(10.0, -1.5) kernel = scipy.stats.gaussian_kde(dataset=chi_energies, weights=chi_weights, bw_method=bw) counts, _ = np.histogram(chi_energies, bins=1, weights=chi_weights) norm = counts[0] return kernel, norm def get_Gdet_fit(): r""" Returns the 1d interpolation for the :py:func:`Gdet` function, trained on 100 cross sections between :math:`10^{-34}` and :math:`10^{-28}\,\textrm{cm}^2`. Returns ------- GdetFit : scipy.interpolate.interp1d Gdet interpolation [:math:`\textrm{cm}^{-2}`] Examples -------- >>> GdetFit = get_Gdet_fit() >>> GdetFit(np.power(10.0, -34)) array(2.52933574e+25) """ GdetFit = np.load('GdetFit.npy')[0] return GdetFit def limit_prefactor(mchi=0.001): r""" Returns the prefactor for the limit plot. Parameters ---------- mchi : float mass of the dark matter particle [:math:`\textrm{GeV}`] Returns ------- prefactor : float the prefactor [:math:`\textrm{s}^{-1}`] Notes ----- We are implementing the following definition for the prefactor, .. math:: \kappa (\bar{v} \rho_{\textrm{DM}})^{\textrm{ local}}\left(\frac{m_\chi + m_N}{m_\chi + m_p}\right)^2\left(\frac{\sigma^{\textrm{ SI, lim}}_{\textrm{ DM}}}{m_{\textrm{ DM}}}\right)_{m_{\textrm{DM}}\rightarrow \infty} In terms of parameter values we are taking :math:`\kappa = 0.23`, :math:`\bar{v} = 250\,\textrm{km}\,\textrm{s}^{-1}`, :math:`\rho_{\textrm{ DM}} = 0.3\,\textrm{GeV}\,\textrm{cm}^{-3}`, :math:`m_N = m_{\textrm{Xe}} = 115.3909 \,\textrm{GeV}`, :math:`\left(\frac{\sigma^{\textrm{ SI, lim}}_{\textrm{ DM}}}{m_{\textrm{ DM}}}\right)_{m_{\textrm{DM}}\rightarrow \infty} = 8.3 \times 10^{-49}\,\textrm{cm}^2 \,\textrm{GeV}^{-1}`, :math:`m_p = 0.938272\,\textrm{GeV}`. Examples -------- >>> limit_prefactor(mchi=0.001) 2.1609020839512918e-32 """ k = 0.23 vbar = 250*np.power(10.0, 5) # cm s^-1 rhodm = 0.3 # GeV cm^-3 mXe = 115.3909 # GeV mp = 0.938272 # GeV sigmamchi = 8.3*np.power(10.0, -49) # cm^2 GeV^-1 return k*vbar*rhodm*np.power(mchi + mXe, 2.0)*np.power(mchi + mp, -2.0)*sigmamchi def get_integral(particle, mchi=0.001, dTN=np.power(10.0, -7), dTchi=np.power(10.0, -3)): r""" Computes the integral in the denominator of equation (16) in `1810.10543 <https://arxiv.org/pdf/1810.10543.pdf>`_. Computes it in the case of both the pions and the eta fluxes. Parameters ---------- particle : str ('pion' or 'dm') the dm flux being considered mchi : float mass of the dark matter particle [:math:`\textrm{GeV}`] dTN : float nuclear recoil interval [:math:`\textrm{GeV}`] dTchi : float dark matter energy interval [:math:`\textrm{GeV}`] Returns ------- integral : float the result of the double integral [:math:`\textrm{s}^{-1}`] Notes ----- We are computing, .. math:: \int_{T_1}^{T_2}{\textrm{d}T_N\,\int^{\infty}_{T_\chi(T_\chi^{z, \textrm{min}})}{\textrm{d}T_\chi}\,\frac{1}{T^{\textrm{max}}_{r, N}}\frac{\textrm{d}\phi_\chi}{\textrm{d}T_\chi} } Here :math:`T_1 = 4.9 \,\textrm{keV}` and :math:`40.9\,\textrm{keV}` are the recoil energy bounds in the Xenon 1T detector. """ #TzMin(mchi=mchi, TN=TN) TchiMax = np.power(10.0, 1) T1 = 4.9*np.power(10.0, -6) # GeV T2 = 40.9*np.power(10.0, -6) # GeV kernel, norm = get_kernel(particle) TNarr = np.arange(T1, T2, dTN) integral = 0.0 count = 1 print('Starting Integration') for TN in TNarr: TchiMin = TzMin(mchi=mchi, TN=TN) Tchiarr = np.arange(TchiMin, TchiMax, dTchi) TrNarr = TrNMax(Tchiarr, mchi) fluxarr = norm*kernel.evaluate(Tchiarr) farr = fluxarr*np.power(TrNarr, -1.0) integral += farr.sum()*dTN*dTchi print('Completed {} out of {} recoil energies'.format(count, len(TNarr)), end='\r') count += 1 print('\n--------\nResults:\n--------\n\nIntegral: {}, particle = {}\n'.format(integral, particle)) return integral def get_integral_v2(particle, mchi=0.001, dTchi=np.power(10.0, -3.0), TchiMax=np.power(10.0, 1.0)): r""" Computes the integral in the denominator of equation (16) in `1810.10543 <https://arxiv.org/pdf/1810.10543.pdf>`_. Computes it in the case of both the pions and the eta fluxes. [version 2] Parameters ---------- particle : str ('pion' or 'dm') the dm flux being considered mchi : float mass of the dark matter particle [:math:`\textrm{GeV}`] dTN : float nuclear recoil Returns ------- integral : float the result of the double integral Notes ----- We are computing, .. math:: \int_{T_1}^{T_2}{\textrm{d}T_N\,\int^{\infty}_{T_\chi(T_\chi^{z, \textrm{min}})}{\textrm{d}T_\chi}\,\frac{1}{T^{\textrm{max}}_{r, N}}\frac{\textrm{d}\phi_\chi}{\textrm{d}T_\chi} } Here :math:`T_1 = 4.9 \,\textrm{keV}` and :math:`40.9\,\textrm{keV}` are the recoil energy bounds in the Xenon 1T detector. """ TchiMin = TzMin(mchi=mchi) TchiArr = np.arange(TchiMin, TchiMax, dTchi) TNBoundArr = TNBound(TchiArr, mchi=mchi) dTNArr = TNBoundArr - 4.9*np.power(10.0, -6.0) kernel, norm = get_kernel(particle) fluxArr = norm*kernel.evaluate(TchiArr) TrNArr = TrNMax(TchiArr, mchi) integrands = fluxArr*np.power(TrNArr, -1.0)*dTNArr*dTchi integral = integrands.sum() print('\n--------\nResults:\n--------\n\nIntegral: {}, particle = {}\n'.format(integral, particle)) return integral def TrNMax(Tchi, mchi=0.001): r""" Returns the maximum recoil energy using equation (1) in `1810.10543 <https://arxiv.org/pdf/1810.10543.pdf>`_. Parameters ---------- Tchi : float kinetic energy of the dark matter particle [:math:`\textrm{GeV}`] mchi : float mass of the dark matter particle [:math:`\textrm{GeV}`] Returns ------- TrNMax : float or np.array maximum recoil energy [:math:`\textrm{GeV}`] Notes ----- We are implementing the expression, .. math:: \frac{T_\chi^2 + 2m_\chi T_\chi}{T_\chi + \frac{(m_\chi + m_{\textrm{Xe}})^2}{2m_\textrm{Xe}}} Examples -------- >>> TrNMax(Tchi=np.power(10.0, -2), mchi=0.001) 2.0794902474678193e-06 >>> TrNMax(Tchi=np.array([np.power(10.0, -2.0), np.power(10.0, -1.0)]), mchi=0.001) array([2.07949025e-06, 1.76481427e-04]) """ mXe = 115.3909 # GeV num = np.power(Tchi, 2.0) + 2*mchi*Tchi denom = Tchi + np.power(mchi + mXe, 2.0)*np.power(2*mXe, -1.0) return num*np.power(denom, -1.0) def get_xenon_rate(gu=5.0*np.power(10.0, -5.0), ms=0.001, dTN=np.power(10.0, -8.0), dTchi=np.power(10.0, -3.0), TchiMax=np.power(10.0, 0)): r""" Computes the rate for the specific hadrophilic model given in `Batell et al. <http://inspirehep.net/record/1708854>`_ in the Xenon 1T detector. Given an exposure time (278.8 days), the number of expected events can be calculated as :math:`\Gamma_N T_{\textrm{exp}}`. The 90% confidence level is then found by comparing this event number to 3.56 events, from Table I in the most recent `Xenon 1T paper <https://arxiv.org/pdf/1805.12562.pdf>`_. Parameters ---------- gu : float coupling to up-quark ms : float mass of the scalar mediator [:math:`\textrm{GeV}`] dTN : float recoil energy integration resolution [:math:`\textrm{GeV}`] dTchi : float dark matter energy resolution [:math:`\textrm{GeV}`] TchiMax : float maximum dark matter energy [:math:`\textrm{GeV}`] Returns ------- gN : float rate [:math:`\textrm{s}^{-1}`] Notes ----- We are implementing the following definition, .. math:: \Gamma_N = N_T \int_{T_1}^{T_2}{\textrm{d}T_N \, \int_{T_\chi^{\textrm{min}}(T_N)}^{\infty}{\textrm{d}T_\chi \, \epsilon(T_N)\frac{\textrm{d}\phi_\chi}{\textrm{d}T_\chi}\frac{\textrm{d}\sigma_{\chi N}}{\textrm{d}T_N} } } Examples -------- >>> get_xenon_rate(gu=5.0*np.power(10.0, -5.0), ms=0.001) """ print('-----------------------------------------------------\nXenon 1T Rate Calculator\n-----------------------------------------------------\nComputing rate for gu = {}, ms = {} GeV'.format(gu, ms)) print('dTchi = {}, dTN = {}'.format(dTchi, dTN)) Gdet = 2.529335739713634*np.power(10.0, 25.0) # Assuming Earth is transparent on the lower boundary mchi = ms/3 gchi = 1.0 A = 131.293 Z = 54.0 NT = 1300/(A*1.66054*np.power(10.0, -27)) epsilon = 0.89 mN = 0.9314941*A mp = 0.938272 # GeV mn = 0.939565 # GeV mu = 0.0022 # GeV yspp = 0.014*gu*mp/mu ysnn = 0.012*gu*mn/mu br = get_branching_ratio(gu=gu, ms=ms) print('\nBranching Ratio = {}'.format(br)) TchiArr = np.arange(0.015, TchiMax, dTchi) TNArr = np.arange(4.9*np.power(10.0, -6.0), 40.9*np.power(10.0, -6.0), dTN) TN, TCHI = np.meshgrid(TNArr, TchiArr) kernel, norm = get_kernel('eta') FluxArr = norm*Gdet*br*kernel.evaluate(TchiArr) _, FLUX = np.meshgrid(TNArr, FluxArr) prefactor = (np.power(Z*yspp + (A - Z)*ysnn, 2.0)*np.power(gchi, 2.0)/(8*np.pi)) DSIGMATN = prefactor*(2*mN + TN)*(2*np.power(mchi, 2.0) + mN*TN)*np.power(2*mN*TN + np.power(ms, 2.0), -2.0)*form_factor(TN) DSIGMATCHI = np.power(np.power(TCHI, 2.0) + 2*mchi*TCHI, -1.0) DSIGMA = DSIGMATN*DSIGMATCHI*np.power(1/(5.06*np.power(10.0, 13)), 2.0) INTEGRAND = NT*epsilon*DSIGMA*FLUX*np.heaviside(TNBound(TCHI) - TN, 1.0) gN = INTEGRAND.sum()*dTchi*dTN events = gN*278.8*86400 print('\n--------\nResults:\n--------\n\nRate: {} per second, Events = {}\n'.format(gN, events)) return gN, events def form_factor(TN): r""" Returns the Helm Form Factor from `0608.035 <https://arxiv.org/pdf/hep-ph/0608035.pdf>`_. Parameters ---------- TN : np.array nuclear recoil energy [:math:`\textrm{GeV}`] Returns ------- FHsq : np.array square of the Helm Form Factor Examples -------- >>> form_factor(TN=5.0*np.power(10.0, -6.0)) 0.7854737713313549 """ A = 131.293 mN = 0.9314941*A q = np.sqrt(2*mN*TN) fmGeV = 1/(1.98*np.power(10.0, -1.0)) s = 0.9*fmGeV a = 0.52*fmGeV c = (1.23*np.power(A, 1/3) - 0.60)*fmGeV R1 = np.sqrt(np.power(c, 2.0) + (7/3)*np.power(np.pi, 2.0)*np.power(a, 2.0) - 5*np.power(s, 2.0)) FHsq = 9*np.exp(-np.power(q*s, 2.0))*np.power(q*R1, -2.0)*np.power(np.sin(q*R1)*np.power(q*R1, -2.0) - np.cos(q*R1)*np.power(q*R1, -1.0), 2.0) return FHsq def get_branching_ratio(gu, ms): r""" Returns the branching ratio for the process :math:`\eta \rightarrow \pi^0 \chi\chi` from the model in `Batell et al. <https://arxiv.org/pdf/1812.05103.pdf>`_. Parameters ---------- gu : float coupling to up-quark ms : float scalar mediator mass [:math:`\textrm{GeV}`] Returns ------- br : float branching ratio :math:`\textrm{BR}(\eta \rightarrow \pi^0 \chi\chi)` Notes ----- We are implementing the following expression, .. math:: \textrm(\eta \rightarrow \pi^0 S) = \frac{C^2 g_u^2 B^2}{16\pi m_\eta \Gamma_\eta}\lambda^{1/2}\left(1, \frac{m_S^2}{m_\eta^2}, \frac{m_\pi^2}{m_\eta^2}\right) where we are assuming a branching ratio :math:`\textrm{BR}(S \rightarrow \chi\chi) = 1`, and :math:`\lambda(a, b, c) = a^2 + b^2 + c^2 - 2(ab + bc + ac)`. Examples -------- >>> get_branching_ratio(gu=7*np.power(10.0, -4.0), ms=0.1) 0.05765234404584737 """ thetapr = -np.pi/9 mpi = 0.1349770 # GeV meta = 0.547862 # GeV mu = 0.0022 # GeV md = 0.0047 # GeV geta = 1.31*np.power(10.0, -6.0) # GeV C = np.sqrt(1/3)*np.cos(thetapr) - np.sqrt(2/3)*np.sin(thetapr) B = np.power(mpi, 2.0)*np.power(mu + md, -1.0) a = 1.0 b = np.power(ms/meta, 2.0) c = np.power(mpi/meta, 2.0) br = np.power(C*gu*B, 2.0)*np.power(16*np.pi*meta*geta, -1.0)*np.sqrt(np.power(a, 2) + np.power(b, 2) + np.power(c, 2) - 2*a*b - 2*b*c - 2*a*c) return br def TNBound(Tchi, mchi=0.001, mN=115.3909, Trecoil_max=40.9*np.power(10.0, -6.0)): r""" Inverts the relation for the expression in :py:func:`TzMin` to find the maximum recoil energy that can be generated from a dark matter kinetic energy :math:`T_\chi`. Parameters ---------- Tchi : float kinetic energies of dark matter particle [:math:`\textrm{GeV}`] mchi : float mass of the dark matter particle [:math:`\textrm{GeV}`] mN : float mass of the recoil nucleus [:math:`\textrm{GeV}`] Trecoil_max : float maximum detector sensitivity for recoil energies [:math:`\textrm{GeV}`] Returns ------- TNBound : np.array maximum recoil energy, either kinematically or by detector sensitivity Notes ----- We are implementing the following, .. math:: T_N^{\textrm{bound}} = \textrm{min}\left[\frac{2(2 m_\chi + T_\chi)m_N T_\chi}{m_\chi^2 + 2m_\chi m_N + m_N^2 + 2m_N T_\chi}, T_N^{\textrm{recoil}}\right] For Xenon 1T, :math:`T_N^{\textrm{recoil}} = 40.9\,\textrm{keV}` and :math:`m_N = 115.3909\,\textrm{GeV}`. Examples -------- >>> TNBound(np.array([0.015, 0.020]), mchi=0.001, mN=115.3909, Trecoil_max=40.9*np.power(10.0, -6.0)) array([4.41853393e-06, 7.62347650e-06]) >>> TNBound(np.array([0.040, 0.050, 0.055]), mchi=0.001, mN=115.3909, Trecoil_max=40.9*np.power(10.0, -6.0)) array([2.90977363e-05, 4.09000000e-05, 4.09000000e-05]) """ TNBound = 2*mN*Tchi*(2*mchi + Tchi)*np.power(np.power(mchi, 2.0) + 2*mchi*mN + np.power(mN, 2.0) + 2*mN*Tchi, -1.0) mask = (TNBound > Trecoil_max) TNBound[mask] = Trecoil_max return TNBound def get_miniboone_data(): r""" Loads miniboone data from miniboone.csv. Data taken from `Batell et al. <http://inspirehep.net/record/1708854>`_. Returns ------- mini_df : pd.DataFrame miniboone dataframe with columns [:math:`m_S` (in GeV), :math:`g_u`] """ mini_df = pd.read_csv('miniboone.csv', header=None) mini_df.columns = ['ms [GeV]', 'gu'] return mini_df if __name__ == '__main__': # dTchiArr = np.logspace(-3.0, -2.0) # eventsarr = np.empty(len(dTchiArr)) # idx = 0 # for dTchi in dTchiArr: # rate, events = get_xenon_rate(dTchi=dTchi) # eventsarr[idx] = events # idx += 1 # plt.figure() # plt.semilogx(dTchiArr, eventsarr) # plt.title(r'Rate Integral Convergence') # plt.xlabel(r'$\Delta T_\chi\,\textrm{[GeV]}$') # plt.ylabel(r'Events') # plt.savefig('plots/events.pdf') # HADROPHILIC PLOT import matplotlib plt.rcParams['axes.linewidth'] = 1.75 plt.rcParams['xtick.minor.size'] = 5 plt.rcParams['xtick.major.size'] = 7 plt.rcParams['ytick.minor.size'] = 5 plt.rcParams['ytick.major.size'] = 7 plt.rcParams['xtick.major.width'] = 1.0 plt.rcParams['ytick.major.width'] = 1.0 plt.rcParams['xtick.minor.visible'] = True plt.rcParams['ytick.minor.visible'] = True matplotlib.rcParams['text.latex.preamble'] = [r"\usepackage{amsmath}"] guArr = np.logspace(-5.0, -3.0, 25) msArr = np.logspace(-3.0, np.log10(0.5), 25) MS, GU = np.meshgrid(msArr, guArr) # EVENTS = np.empty([len(guArr), len(msArr)]) # idx = 1 # for i in range(0, len(guArr)): # for j in range(0, len(msArr)): # print('Completed {} out of {}'.format(idx, len(msArr)*len(guArr))) # rate, events = get_xenon_rate(ms=msArr[j], gu=guArr[i]) # EVENTS[i][j] = events # idx += 1 # np.save('events.npy', EVENTS) EVENTS = np.load('events.npy') LZ_EVENTS = (1.0/0.89)*((5.6*1000)/(1.3*278.8))*EVENTS #print(EVENTS.shape) event_lim = 3.56 cmap = 'Greens' from matplotlib import ticker miniboone_df = get_miniboone_data() plt.figure() plt.plot(miniboone_df['ms [GeV]'], miniboone_df['gu'], color='#62656E', lw=1.0) #plt.contourf(MS, GU, EVENTS, locator=ticker.LogLocator(), cmap=cmap, alpha=1.0) #plt.colorbar(label='Event Count') CS = plt.contour(MS, GU, EVENTS, levels=[event_lim], colors=['#D81159'], linewidths=1.0, alpha=1.0, linestyles='-') plt.contour(MS, GU, LZ_EVENTS, levels=[event_lim], colors=['#D81159'], linewidths=1.0, alpha=1.0, linestyles='--') mss, guu = CS.allsegs[0][0].T plt.fill(np.append(miniboone_df['ms [GeV]'], mss[::-1]), np.append(miniboone_df['gu'], guu[::-1]), edgecolor='k', facecolor='#62656E', alpha=0.3, linewidth=0.0) mss = np.append(mss, np.array([mss[-1], mss[0]])) guu = np.append(guu, np.array([np.power(10.0, -3), np.power(10.0, -3)])) plt.fill(mss, guu, edgecolor='k', facecolor='#D81159', alpha=0.3, linewidth=0.0) plt.xlabel(r'$m_S\,\mathrm{[GeV]}$') plt.ylabel(r'$g_u$') #plt.title('Hadrophilic Exclusion Limits') plt.gca().set_xscale('log') plt.gca().set_yscale('log') axes = plt.axis() plt.axis([np.power(10.0, -3.0), mss.max(), 5*np.power(10.0, -6.0), np.power(10.0, -3.0)]) #plt.scatter(MS, GU, c='k', marker='x', s=4.0) axes = plt.axis() plt.text(2*np.power(10.0, -2.0), 1.05*miniboone_df['gu'][0], 'MINIBOONE', fontsize=12, color='#62656E') plt.text(1.1*axes[0], 5.5*np.power(10.0, -5.0), r'ICRDM ($\eta$) (XENON1T)', fontsize=12, color='#D81159') plt.text(1.1*axes[0], 2.55*np.power(10.0, -5.0), r'ICRDM ($\eta$) (LZ)', fontsize=12, color='#D81159') plt.text(np.power(10.0, -2.9), np.power(10.0, -5.1), r'$g_\chi = 1$') plt.text(np.power(10.0, -2.9), np.power(10.0, -5.25), r'$m_\chi = m_S/3$') xmin, xmax = axes[0], axes[1] ymin, ymax = axes[2], axes[3] xy = (xmin, ymin) width = xmax - xmin height = ymax - ymin import matplotlib.patches as patches # create the patch and place it in the back of countourf (zorder!) p = patches.Rectangle(xy, width, height, hatch=4*'/', fill=None, alpha=0.2, zorder=-10) ax = plt.gca() ax.tick_params(which='minor', length=4) #ax.add_patch(p) plt.savefig('plots/hadrophilic.pdf') # dTchi = np.power(10.0, -4) # dtc = 'minus4' # TchiMaxArr = np.logspace(-1.0, 0.0, 25) # integrals = np.empty(len(TchiMaxArr)) # idx = 0 # for TchiMax in TchiMaxArr: # integrals[idx] = get_integral_v2('eta', mchi=0.001, TchiMax=TchiMax, dTchi=dTchi) # idx += 1 # np.save('TchiMax{}.npy'.format(dtc), TchiMaxArr) # np.save('integrals{}.npy'.format(dtc), integrals) # print(integrals) # plt.semilogx(TchiMaxArr, integrals) # plt.show() # plt.figure() # # dtc = 'minus1' # # integrals = np.load('integrals{}.npy'.format(dtc)) # # TchiMaxArr = np.load('TchiMax{}.npy'.format(dtc)) # # plt.semilogx(TchiMaxArr, integrals/np.power(10.0, -28.0), label = r'$10^{-1}$') # dtc = 'minus2' # integrals = np.load('integrals{}.npy'.format(dtc)) # TchiMaxArr = np.load('TchiMax{}.npy'.format(dtc)) # plt.semilogx(TchiMaxArr, integrals/np.power(10.0, -28.0), label = r'$10^{-2}$') # dtc = 'minus3' # integrals = np.load('integrals{}.npy'.format(dtc)) # TchiMaxArr = np.load('TchiMax{}.npy'.format(dtc)) # plt.semilogx(TchiMaxArr, integrals/np.power(10.0, -28.0), label = r'$10^{-3}$') # dtc = 'minus4' # integrals = np.load('integrals{}.npy'.format(dtc)) # TchiMaxArr = np.load('TchiMax{}.npy'.format(dtc)) # plt.semilogx(TchiMaxArr, integrals/np.power(10.0, -28.0), label = r'$10^{-4}$') # plt.title('Flux Integral Convergence') # plt.xlabel(r'$T_\chi^{\textrm{\small max}}\,\textrm{[GeV]}$') # plt.ylabel(r'Integral $\textrm{[}10^{-28}\,s^{-1}\textrm{]}$') # plt.legend(loc='lower right', fontsize=10, title=r'$\Delta T_\chi$', title_fontsize=10) # plt.savefig('plots/int_convergence.pdf') from matplotlib import ticker from scipy.interpolate import interp1d prefactor = limit_prefactor() integral = 1.871660096591386*np.power(10.0, -26) integral = 2.061418762860559*np.power(10.0, -27) integral = 5.863077015127929*np.power(10.0, -28) eta_integral = 5.863064797490202*np.power(10.0, -28.0) # get_integral_v2('eta') pion_integral = 7.190987691388251*np.power(10.0, -27.0) # get_integral_v2('pion') eta_level = prefactor*np.power(eta_integral, -1.0) pion_level = prefactor*np.power(pion_integral, -1.0) LZ_FACTOR = (3.3217544185377643e-47/1757.9236139586912)/(8.3*np.power(10.0, -49)) pion_color = '#01295F' pion_color = '#29AB87' eta_color = '#D81159' pospelov_color = '#FF8514' # size = 100 # sigmaarray = np.logspace(-34.0, -28.0, size) # Gdetarr = np.load('Gdetarr.npy') # sigmaarray = np.append(np.logspace(-40.0, -34.0, size)[:-1], sigmaarray) # Gdetarr = np.append(np.full(size - 1, Gdetarr[0]), Gdetarr) # # GdetFun = interp1d(sigmaarray, Gdetarr, kind='slinear') # GdetFun = get_Gdet_fit() # B = np.array([np.power(10.0, -2.0), np.power(10.0, -4.0), np.power(10.0, -6.0), np.power(10.0, -7.0), np.power(10.0, -8.0)]) # labels = np.array([r'$10^{-2}$', r'$10^{-4}$', r'$10^{-6}$', r'$10^{-7}$', r'$10^{-8}$']) # S = np.logspace(-35.0, -28.0) # idx = 0 # for br in B: # plt.loglog(S, S*GdetFun(S)*br, label=labels[idx]) # idx += 1 # plt.plot([S[0], S[-1]], [eta_level, eta_level], 'k--') # plt.plot([S[0], S[-1]], [pion_level, pion_level], 'k--') # plt.text(np.power(10.0, -34.8), np.power(10.0, -10.3), 'Eta Flux', fontsize=8) # plt.text(np.power(10.0, -34.2), np.power(10.0, -11.4), 'Pion Flux', fontsize=8) # plt.title('Limits for different branching ratios') # plt.legend(fontsize=9, title=r'$\textrm{BR}(\eta \rightarrow \chi\chi)$', title_fontsize=9, frameon=True, fancybox=True) # plt.xlabel(r'$\sigma_\chi^{\textrm{\tiny SI}}\,\textrm{[cm}^2\textrm{]}$') # plt.ylabel(r'$\sigma_\chi^{\textrm{\tiny SI}} G(\sigma_\chi^{\textrm{\tiny SI}})\textrm{BR}(\eta \rightarrow \chi\chi)$') # plt.savefig('plots/gdetbrs.pdf') GdetFun = get_Gdet_fit() lw = 1.0 alpha = 0.3 pospelov_top = 2.411345e-28 pospelov_low = 1.543418e-31 plt.figure() plt.plot([np.power(10.0, -10.0), np.power(10.0, -1.0)], [pospelov_top, pospelov_top], c=pospelov_color, label=r'Elastic CRDM', lw=lw) plt.plot([np.power(10.0, -10.0), np.power(10.0, -1.0)], [pospelov_low, pospelov_low], c=pospelov_color, lw=lw) plt.fill([np.power(10.0, -10.0), np.power(10.0, -1.0), np.power(10.0, -1.0), np.power(10.0, -10.0)], [pospelov_low, pospelov_low, pospelov_top, pospelov_top], edgecolor=pospelov_color, facecolor=pospelov_color, alpha=alpha, linewidth=0.0), #fill=False, hatch=2*'//') B, S = np.meshgrid(np.logspace(-9.0, np.log10(5*10**(-2)), 10000), np.logspace(-38.0, -28.0, 10000)) C = S*GdetFun(S)*B CS = plt.contour(B, S, C, levels=[eta_level], colors=[eta_color], linewidths=0.0) plt.contour(B, S, C, levels=[eta_level*LZ_FACTOR], colors=[eta_color], linewidths=1.0, linestyles='--') br, sig = CS.allsegs[0][0].T plt.fill(br, sig, edgecolor='k', facecolor=eta_color, alpha=alpha, linewidth=0.0) plt.plot(br, sig, c=eta_color, lw=lw, label=r'Inelastic CRDM ($\eta$)') #plt.plot([br[1], br[-1]], [sig[1], sig[-1]], c=eta_color, lw=1.0) B, S = np.meshgrid(np.logspace(-10.0, np.log10(6*10**(-4)), 10000), np.logspace(-38.0, -28.0, 10000)) C = S*GdetFun(S)*B CS = plt.contour(B, S, C, levels=[pion_level], colors=[pion_color], linewidths=0.0) br, sig = CS.allsegs[0][0].T plt.fill(br, sig, edgecolor='k', facecolor=pion_color, alpha=alpha, linewidth=0.0) plt.plot(br, sig, c=pion_color, lw=lw, label=r'Inelastic CRDM ($\pi$)') plt.plot([br[1], br[-1]], [sig[1], sig[-1]], c=pion_color, lw=lw) CS = plt.contour(B, S, C, levels=[pion_level*LZ_FACTOR], colors=[pion_color], linewidths=0.0) br, sig = CS.allsegs[0][0].T #plt.fill(br, sig, edgecolor='k', facecolor=pion_color, alpha=alpha, linewidth=0.0) plt.plot(br, sig, c=pion_color, lw=lw, ls='--') plt.plot([br[1], br[-1]], [sig[1], sig[-1]], c=pion_color, lw=lw, ls='--') plt.xlabel(r'$\mathrm{BR}(M \rightarrow X\chi\chi)$') plt.ylabel(r'$\sigma_\chi^{\mathrm{\tiny SI}}\,\mathrm{[cm}^2\mathrm{]}$') #plt.title(r'Exclusion Limits') plt.gca().set_xscale('log') plt.gca().set_yscale('log') ax = plt.gca() ax.xaxis.set_major_locator(ticker.LogLocator(numticks=6)) ax.tick_params(which='minor', length=4) plt.legend(fontsize=14, loc='lower left') axes = plt.axis() plt.axis([np.power(10.0, -10.0), 5*np.power(10.0, -3.0), np.power(10.0, -37), np.power(10.0, -27)]) fontsize = 12 plt.text(np.power(10.0, -6.35), np.power(10.0, -28.85), 'XENON1T', color=eta_color, fontsize=fontsize, rotation=-43.0) plt.text(np.power(10.0, -3.1), np.power(10.0, -34.2), 'LZ', color=eta_color, fontsize=fontsize, rotation=-41.0) plt.text(np.power(10.0, -7.45), np.power(10.0, -28.85), 'XENON1T', color=pion_color, fontsize=fontsize, rotation=-43.0) plt.text(np.power(10.0, -8.0), np.power(10.0, -30.15), 'LZ', color=pion_color, fontsize=fontsize, rotation=-47.0) plt.text(1.1*np.power(10.0, -9.85), np.power(10.0, -30.73), 'XENON1T', color=pospelov_color, fontsize=fontsize, rotation=0.0) plt.text(np.power(10.0, -9.5), np.power(10.0, -33.9), r'$m_\chi = 1\,\mathrm{MeV}$') plt.text(np.power(10.0, -9.5), np.power(10.0, -34.4), r'$m_{\mathrm{med}} = 10\,\mathrm{MeV}$') plt.savefig('plots/limit_no_title.pdf')
[ 1, 529, 9507, 29958, 3399, 29914, 11980, 29914, 12514, 29889, 2272, 13, 29937, 3497, 29901, 13071, 29889, 2272, 13, 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, 10876, 13, 5215, 4560, 2272, 29889, 16202, 13, 13, 3166, 15489, 29918, 18933, 29918, 1579, 1314, 1053, 413, 2310, 499, 361, 277, 13, 3166, 2099, 29918, 9021, 29918, 2084, 1053, 323, 29920, 8140, 13, 13, 1753, 679, 29918, 17460, 29898, 1595, 2512, 1125, 13, 1678, 364, 15945, 29908, 13, 1678, 4250, 2408, 29879, 278, 8466, 322, 278, 4226, 4371, 7329, 363, 278, 6501, 4383, 19389, 515, 282, 1080, 322, 634, 29874, 16445, 1602, 1036, 29889, 910, 508, 769, 367, 2000, 4153, 373, 385, 1409, 310, 18190, 583, 408, 421, 17460, 29889, 24219, 403, 29898, 759, 29887, 583, 14466, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 16445, 584, 851, 6702, 29886, 291, 29915, 470, 525, 1187, 1495, 13, 4706, 278, 16445, 515, 607, 278, 6501, 4383, 17105, 526, 7371, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 8466, 584, 4560, 2272, 29889, 16202, 29889, 29887, 17019, 29918, 29895, 311, 13, 4706, 278, 8466, 29892, 607, 508, 367, 2000, 4153, 373, 385, 1409, 310, 18190, 583, 13, 1678, 4226, 4371, 7329, 584, 5785, 13, 4706, 278, 4226, 4371, 7329, 363, 278, 19389, 29892, 445, 338, 1363, 278, 4560, 2272, 29889, 16202, 29889, 29887, 17019, 29918, 29895, 311, 338, 4226, 3368, 491, 2322, 13, 13, 1678, 1222, 9422, 13, 1678, 448, 26589, 13, 1678, 8653, 8466, 29892, 6056, 353, 679, 29918, 17460, 877, 1187, 1495, 13, 1678, 8653, 8466, 29889, 24219, 403, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 876, 13, 268, 29896, 29889, 29906, 29946, 29946, 29929, 29896, 29945, 29896, 29947, 13, 1678, 8653, 6056, 13, 268, 29947, 29889, 29929, 29900, 29945, 29955, 29929, 29953, 29929, 29946, 29945, 29929, 29896, 29941, 29929, 29946, 29947, 29872, 29899, 29906, 29955, 13, 1678, 9995, 13, 1678, 565, 16445, 1275, 525, 29886, 291, 2396, 13, 4706, 4078, 29918, 12322, 353, 8207, 29885, 593, 29914, 29926, 1280, 29914, 271, 7681, 22208, 13, 1678, 25342, 16445, 1275, 525, 1187, 2396, 13, 4706, 4078, 29918, 12322, 353, 525, 6995, 1272, 22208, 13, 1678, 18558, 29918, 759, 29887, 583, 353, 7442, 29889, 1359, 877, 8875, 4161, 759, 29887, 583, 29889, 29876, 2272, 4286, 4830, 29898, 7620, 29918, 12322, 876, 13, 1678, 18558, 29918, 705, 5861, 353, 7442, 29889, 1359, 877, 8875, 4161, 705, 5861, 29889, 29876, 2272, 4286, 4830, 29898, 7620, 29918, 12322, 876, 13, 1678, 289, 29893, 353, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29889, 29945, 29897, 13, 1678, 8466, 353, 4560, 2272, 29889, 16202, 29889, 29887, 17019, 29918, 29895, 311, 29898, 24713, 29922, 4161, 29918, 759, 29887, 583, 29892, 18177, 29922, 4161, 29918, 705, 5861, 29892, 289, 29893, 29918, 5696, 29922, 29890, 29893, 29897, 13, 1678, 18139, 29892, 903, 353, 7442, 29889, 29882, 391, 13342, 29898, 4161, 29918, 759, 29887, 583, 29892, 289, 1144, 29922, 29896, 29892, 18177, 29922, 4161, 29918, 705, 5861, 29897, 13, 1678, 6056, 353, 18139, 29961, 29900, 29962, 13, 1678, 736, 8466, 29892, 6056, 13, 13, 1753, 679, 29918, 29954, 4801, 29918, 9202, 7295, 13, 1678, 364, 15945, 29908, 13, 1678, 16969, 278, 29871, 29896, 29881, 29694, 363, 278, 584, 2272, 29901, 9891, 18078, 29954, 4801, 29952, 740, 29892, 16370, 373, 29871, 29896, 29900, 29900, 4891, 13926, 1546, 584, 755, 18078, 29896, 29900, 3426, 29941, 29946, 10114, 322, 584, 755, 18078, 29896, 29900, 3426, 29906, 29947, 27559, 13605, 29912, 4912, 2137, 29906, 1412, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 402, 4801, 29943, 277, 584, 4560, 2272, 29889, 1639, 3733, 403, 29889, 1639, 29886, 29896, 29881, 13, 4706, 402, 4801, 29694, 20840, 755, 18078, 29905, 13605, 29912, 4912, 19579, 29906, 10114, 29962, 13, 13, 1678, 1222, 9422, 13, 1678, 448, 26589, 13, 1678, 8653, 402, 4801, 29943, 277, 353, 679, 29918, 29954, 4801, 29918, 9202, 580, 13, 1678, 8653, 402, 4801, 29943, 277, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29946, 876, 13, 1678, 1409, 29898, 29906, 29889, 29945, 29906, 29929, 29941, 29941, 29945, 29955, 29946, 29872, 29974, 29906, 29945, 29897, 13, 1678, 9995, 13, 1678, 402, 4801, 29943, 277, 353, 7442, 29889, 1359, 877, 29954, 4801, 29943, 277, 29889, 29876, 2272, 29861, 29900, 29962, 13, 1678, 736, 402, 4801, 29943, 277, 13, 13, 1753, 4046, 29918, 29886, 999, 7168, 29898, 29885, 4161, 29922, 29900, 29889, 29900, 29900, 29896, 1125, 13, 1678, 364, 15945, 29908, 13, 1678, 16969, 278, 758, 19790, 363, 278, 4046, 6492, 29889, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 286, 4161, 584, 5785, 13, 4706, 4158, 310, 278, 6501, 4383, 16445, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 758, 19790, 584, 5785, 13, 4706, 278, 758, 19790, 20840, 755, 18078, 29905, 13605, 29912, 29879, 19579, 29896, 10114, 29962, 13, 13, 1678, 8695, 13, 1678, 448, 807, 13, 1678, 1334, 526, 16049, 278, 1494, 5023, 363, 278, 758, 19790, 29892, 13, 13, 1678, 6317, 5844, 1057, 320, 9876, 3441, 1646, 29912, 29894, 29913, 320, 4650, 1665, 13605, 29912, 23560, 930, 21422, 13605, 29912, 1887, 4229, 1563, 1194, 1154, 29912, 29885, 3187, 4161, 718, 286, 29918, 29940, 1157, 29885, 3187, 4161, 718, 286, 29918, 29886, 1012, 1266, 4887, 29906, 29905, 1563, 1194, 1154, 741, 3754, 3311, 13605, 29912, 22717, 29892, 2485, 29261, 13605, 29912, 27692, 930, 1157, 29885, 1665, 13605, 29912, 27692, 20388, 1266, 20439, 29885, 1665, 13605, 29912, 23560, 4229, 5211, 320, 3411, 29913, 13, 13, 1678, 512, 4958, 310, 3443, 1819, 591, 526, 5622, 584, 755, 18078, 29905, 9876, 353, 29871, 29900, 29889, 29906, 29941, 1673, 584, 755, 18078, 29905, 1646, 29912, 29894, 29913, 353, 29871, 29906, 29945, 29900, 15013, 13605, 29912, 8848, 27559, 13605, 29912, 29879, 19579, 29896, 29913, 1673, 584, 755, 18078, 29905, 4650, 1665, 13605, 29912, 27692, 930, 353, 29871, 29900, 29889, 29941, 15013, 13605, 29912, 7999, 29963, 27559, 13605, 29912, 4912, 19579, 29941, 29913, 1673, 584, 755, 18078, 29885, 29918, 29940, 353, 286, 1665, 13605, 29912, 29990, 29872, 930, 353, 29871, 29896, 29896, 29945, 29889, 29941, 29929, 29900, 29929, 320, 2053, 13605, 29912, 7999, 29963, 29913, 1673, 584, 755, 18078, 29905, 1563, 1194, 1154, 741, 3754, 3311, 13605, 29912, 22717, 29892, 2485, 29261, 13605, 29912, 27692, 930, 1157, 29885, 1665, 13605, 29912, 27692, 20388, 1266, 20439, 29885, 1665, 13605, 29912, 23560, 4229, 5211, 320, 3411, 29913, 353, 29871, 29947, 29889, 29941, 320, 3706, 29871, 29896, 29900, 3426, 29946, 29929, 27559, 13605, 29912, 4912, 2137, 29906, 320, 2053, 13605, 29912, 7999, 29963, 19579, 29896, 29913, 1673, 584, 755, 18078, 29885, 29918, 29886, 353, 29871, 29900, 29889, 29929, 29941, 29947, 29906, 29955, 29906, 15013, 13605, 29912, 7999, 29963, 29913, 1412, 13, 13, 1678, 1222, 9422, 13, 1678, 448, 26589, 13, 1678, 8653, 4046, 29918, 29886, 999, 7168, 29898, 29885, 4161, 29922, 29900, 29889, 29900, 29900, 29896, 29897, 13, 268, 29906, 29889, 29896, 29953, 29900, 29929, 29900, 29906, 29900, 29947, 29941, 29929, 29945, 29896, 29906, 29929, 29896, 29947, 29872, 29899, 29941, 29906, 13, 1678, 9995, 13, 1678, 413, 353, 29871, 29900, 29889, 29906, 29941, 13, 1678, 325, 1646, 353, 29871, 29906, 29945, 29900, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 29871, 29945, 29897, 396, 7477, 269, 21583, 29896, 13, 1678, 18178, 397, 29885, 353, 29871, 29900, 29889, 29941, 396, 1879, 29963, 7477, 21583, 29941, 13, 1678, 286, 29990, 29872, 353, 29871, 29896, 29896, 29945, 29889, 29941, 29929, 29900, 29929, 396, 1879, 29963, 13, 1678, 22326, 353, 29871, 29900, 29889, 29929, 29941, 29947, 29906, 29955, 29906, 396, 1879, 29963, 13, 1678, 4365, 29885, 314, 4161, 353, 29871, 29947, 29889, 29941, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29946, 29929, 29897, 396, 7477, 29985, 29906, 1879, 29963, 21583, 29896, 13, 1678, 736, 413, 29930, 29894, 1646, 29930, 19046, 397, 29885, 29930, 9302, 29889, 13519, 29898, 29885, 4161, 718, 286, 29990, 29872, 29892, 29871, 29906, 29889, 29900, 11877, 9302, 29889, 13519, 29898, 29885, 4161, 718, 22326, 29892, 448, 29906, 29889, 29900, 11877, 18816, 29885, 314, 4161, 13, 13, 1753, 679, 29918, 14146, 284, 29898, 1595, 2512, 29892, 286, 4161, 29922, 29900, 29889, 29900, 29900, 29896, 29892, 270, 29911, 29940, 29922, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29955, 511, 270, 29911, 4161, 29922, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 22164, 13, 1678, 364, 15945, 29908, 13, 1678, 11796, 267, 278, 10160, 297, 278, 14267, 1061, 310, 6306, 313, 29896, 29953, 29897, 297, 421, 29896, 29947, 29896, 29900, 29889, 29896, 29900, 29945, 29946, 29941, 529, 991, 597, 279, 26560, 29889, 990, 29914, 5140, 29914, 29896, 29947, 29896, 29900, 29889, 29896, 29900, 29945, 29946, 29941, 29889, 5140, 13885, 5396, 11796, 267, 372, 297, 278, 1206, 310, 1716, 278, 282, 1080, 322, 278, 634, 29874, 19389, 267, 29889, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 16445, 584, 851, 6702, 29886, 291, 29915, 470, 525, 18933, 1495, 13, 4706, 278, 270, 29885, 19389, 1641, 5545, 13, 1678, 286, 4161, 584, 5785, 13, 4706, 4158, 310, 278, 6501, 4383, 16445, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 1678, 270, 29911, 29940, 584, 5785, 13, 4706, 20346, 337, 1111, 309, 7292, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 1678, 270, 29911, 4161, 584, 5785, 13, 4706, 6501, 4383, 5864, 7292, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 10160, 584, 5785, 13, 4706, 278, 1121, 310, 278, 3765, 10160, 20840, 755, 18078, 29905, 13605, 29912, 29879, 19579, 29896, 10114, 29962, 13, 13, 1678, 8695, 13, 1678, 448, 807, 13, 1678, 1334, 526, 20602, 29892, 13, 13, 1678, 6317, 5844, 1057, 320, 524, 648, 29911, 29918, 29896, 2844, 29911, 29918, 29906, 3331, 13605, 29912, 29881, 29913, 29911, 29918, 29940, 15013, 524, 3311, 3411, 3227, 29911, 3187, 4161, 29898, 29911, 3187, 4161, 998, 29920, 29892, 320, 13605, 29912, 1195, 930, 19978, 13605, 29912, 29881, 29913, 29911, 3187, 4161, 27559, 1154, 29912, 29896, 1157, 29911, 3311, 13605, 29912, 3317, 14838, 29878, 29892, 405, 4229, 1154, 741, 13605, 29912, 29881, 1012, 2876, 3187, 4161, 3331, 13605, 29912, 29881, 29913, 29911, 3187, 4161, 29913, 29871, 500, 13, 13, 1678, 2266, 584, 755, 18078, 29911, 29918, 29896, 353, 29871, 29946, 29889, 29929, 320, 2053, 13605, 29912, 446, 29963, 10114, 322, 584, 755, 18078, 29946, 29900, 29889, 29929, 15013, 13605, 29912, 446, 29963, 10114, 526, 278, 337, 1111, 309, 5864, 13451, 297, 278, 1060, 264, 265, 29871, 29896, 29911, 1439, 3019, 29889, 13, 1678, 9995, 13, 1678, 396, 29911, 29920, 8140, 29898, 29885, 4161, 29922, 29885, 4161, 29892, 323, 29940, 29922, 29911, 29940, 29897, 13, 1678, 323, 4161, 7976, 353, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 29871, 29896, 29897, 13, 1678, 323, 29896, 353, 29871, 29946, 29889, 29929, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29897, 396, 1879, 29963, 13, 1678, 323, 29906, 353, 29871, 29946, 29900, 29889, 29929, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29897, 396, 1879, 29963, 13, 1678, 8466, 29892, 6056, 353, 679, 29918, 17460, 29898, 1595, 2512, 29897, 13, 1678, 323, 29940, 2749, 353, 7442, 29889, 279, 927, 29898, 29911, 29896, 29892, 323, 29906, 29892, 270, 29911, 29940, 29897, 13, 13, 1678, 10160, 353, 29871, 29900, 29889, 29900, 13, 1678, 2302, 353, 29871, 29896, 13, 1678, 1596, 877, 4763, 292, 17100, 362, 1495, 13, 1678, 363, 323, 29940, 297, 323, 29940, 2749, 29901, 13, 4706, 323, 4161, 8140, 353, 323, 29920, 8140, 29898, 29885, 4161, 29922, 29885, 4161, 29892, 323, 29940, 29922, 29911, 29940, 29897, 13, 4706, 323, 4161, 2749, 353, 7442, 29889, 279, 927, 29898, 29911, 4161, 8140, 29892, 323, 4161, 7976, 29892, 270, 29911, 4161, 29897, 13, 4706, 1605, 29940, 2749, 353, 1605, 29940, 7976, 29898, 29911, 4161, 2749, 29892, 286, 4161, 29897, 13, 4706, 19389, 2749, 353, 6056, 29930, 17460, 29889, 24219, 403, 29898, 29911, 4161, 2749, 29897, 13, 4706, 2215, 29878, 353, 19389, 2749, 29930, 9302, 29889, 13519, 29898, 2308, 29940, 2749, 29892, 448, 29896, 29889, 29900, 29897, 13, 4706, 10160, 4619, 2215, 29878, 29889, 2083, 580, 29930, 29881, 29911, 29940, 29930, 29881, 29911, 4161, 13, 4706, 1596, 877, 26010, 6571, 714, 310, 6571, 337, 1111, 309, 18190, 583, 4286, 4830, 29898, 2798, 29892, 7431, 29898, 29911, 29940, 2749, 8243, 1095, 2433, 29905, 29878, 1495, 13, 4706, 2302, 4619, 29871, 29896, 13, 1678, 1596, 28909, 29876, 1378, 29905, 29876, 12191, 3583, 29876, 1378, 29905, 29876, 29905, 29876, 23573, 284, 29901, 24335, 16445, 353, 426, 1012, 29876, 4286, 4830, 29898, 14146, 284, 29892, 16445, 876, 13, 1678, 736, 10160, 13, 13, 1753, 679, 29918, 14146, 284, 29918, 29894, 29906, 29898, 1595, 2512, 29892, 286, 4161, 29922, 29900, 29889, 29900, 29900, 29896, 29892, 270, 29911, 4161, 29922, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29889, 29900, 511, 323, 4161, 7976, 29922, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 29871, 29896, 29889, 29900, 22164, 13, 1678, 364, 15945, 29908, 13, 1678, 11796, 267, 278, 10160, 297, 278, 14267, 1061, 310, 6306, 313, 29896, 29953, 29897, 297, 421, 29896, 29947, 29896, 29900, 29889, 29896, 29900, 29945, 29946, 29941, 529, 991, 597, 279, 26560, 29889, 990, 29914, 5140, 29914, 29896, 29947, 29896, 29900, 29889, 29896, 29900, 29945, 29946, 29941, 29889, 5140, 13885, 5396, 11796, 267, 372, 297, 278, 1206, 310, 1716, 278, 282, 1080, 322, 278, 634, 29874, 19389, 267, 29889, 518, 3259, 29871, 29906, 29962, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 16445, 584, 851, 6702, 29886, 291, 29915, 470, 525, 18933, 1495, 13, 4706, 278, 270, 29885, 19389, 1641, 5545, 13, 1678, 286, 4161, 584, 5785, 13, 4706, 4158, 310, 278, 6501, 4383, 16445, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 1678, 270, 29911, 29940, 584, 5785, 13, 4706, 20346, 337, 1111, 309, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 10160, 584, 5785, 13, 4706, 278, 1121, 310, 278, 3765, 10160, 13, 13, 1678, 8695, 13, 1678, 448, 807, 13, 1678, 1334, 526, 20602, 29892, 13, 13, 1678, 6317, 5844, 1057, 320, 524, 648, 29911, 29918, 29896, 2844, 29911, 29918, 29906, 3331, 13605, 29912, 29881, 29913, 29911, 29918, 29940, 15013, 524, 3311, 3411, 3227, 29911, 3187, 4161, 29898, 29911, 3187, 4161, 998, 29920, 29892, 320, 13605, 29912, 1195, 930, 19978, 13605, 29912, 29881, 29913, 29911, 3187, 4161, 27559, 1154, 29912, 29896, 1157, 29911, 3311, 13605, 29912, 3317, 14838, 29878, 29892, 405, 4229, 1154, 741, 13605, 29912, 29881, 1012, 2876, 3187, 4161, 3331, 13605, 29912, 29881, 29913, 29911, 3187, 4161, 29913, 29871, 500, 13, 13, 1678, 2266, 584, 755, 18078, 29911, 29918, 29896, 353, 29871, 29946, 29889, 29929, 320, 2053, 13605, 29912, 446, 29963, 10114, 322, 584, 755, 18078, 29946, 29900, 29889, 29929, 15013, 13605, 29912, 446, 29963, 10114, 526, 278, 337, 1111, 309, 5864, 13451, 297, 278, 1060, 264, 265, 29871, 29896, 29911, 1439, 3019, 29889, 13, 1678, 9995, 13, 1678, 323, 4161, 8140, 353, 323, 29920, 8140, 29898, 29885, 4161, 29922, 29885, 4161, 29897, 13, 1678, 323, 4161, 16401, 353, 7442, 29889, 279, 927, 29898, 29911, 4161, 8140, 29892, 323, 4161, 7976, 29892, 270, 29911, 4161, 29897, 13, 1678, 323, 29940, 17109, 16401, 353, 323, 29940, 17109, 29898, 29911, 4161, 16401, 29892, 286, 4161, 29922, 29885, 4161, 29897, 13, 1678, 270, 29911, 29940, 16401, 353, 323, 29940, 17109, 16401, 448, 29871, 29946, 29889, 29929, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29889, 29900, 29897, 13, 1678, 8466, 29892, 6056, 353, 679, 29918, 17460, 29898, 1595, 2512, 29897, 13, 1678, 19389, 16401, 353, 6056, 29930, 17460, 29889, 24219, 403, 29898, 29911, 4161, 16401, 29897, 13, 1678, 1605, 29940, 16401, 353, 1605, 29940, 7976, 29898, 29911, 4161, 16401, 29892, 286, 4161, 29897, 13, 1678, 3990, 4167, 353, 19389, 16401, 29930, 9302, 29889, 13519, 29898, 2308, 29940, 16401, 29892, 448, 29896, 29889, 29900, 11877, 29881, 29911, 29940, 16401, 29930, 29881, 29911, 4161, 13, 1678, 10160, 353, 3990, 4167, 29889, 2083, 580, 13, 1678, 1596, 28909, 29876, 1378, 29905, 29876, 12191, 3583, 29876, 1378, 29905, 29876, 29905, 29876, 23573, 284, 29901, 24335, 16445, 353, 426, 1012, 29876, 4286, 4830, 29898, 14146, 284, 29892, 16445, 876, 13, 1678, 736, 10160, 13, 13, 1753, 1605, 29940, 7976, 29898, 29911, 4161, 29892, 286, 4161, 29922, 29900, 29889, 29900, 29900, 29896, 1125, 13, 1678, 364, 15945, 29908, 13, 1678, 16969, 278, 7472, 337, 1111, 309, 5864, 773, 6306, 313, 29896, 29897, 297, 421, 29896, 29947, 29896, 29900, 29889, 29896, 29900, 29945, 29946, 29941, 529, 991, 597, 279, 26560, 29889, 990, 29914, 5140, 29914, 29896, 29947, 29896, 29900, 29889, 29896, 29900, 29945, 29946, 29941, 29889, 5140, 13885, 5396, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 323, 4161, 584, 5785, 13, 4706, 19015, 7492, 5864, 310, 278, 6501, 4383, 16445, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 1678, 286, 4161, 584, 5785, 13, 4706, 4158, 310, 278, 6501, 4383, 16445, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 1605, 29940, 7976, 584, 5785, 470, 7442, 29889, 2378, 13, 4706, 7472, 337, 1111, 309, 5864, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 13, 1678, 8695, 13, 1678, 448, 807, 13, 1678, 1334, 526, 16049, 278, 4603, 29892, 13, 13, 1678, 6317, 5844, 1057, 320, 1154, 29912, 29911, 3187, 4161, 29985, 29906, 718, 29871, 29906, 29885, 3187, 4161, 323, 3187, 4161, 1157, 29911, 3187, 4161, 718, 320, 1154, 8001, 29885, 3187, 4161, 718, 286, 1665, 13605, 29912, 29990, 29872, 930, 4887, 29906, 1157, 29906, 29885, 3187, 13605, 29912, 29990, 29872, 12499, 13, 13, 1678, 1222, 9422, 13, 1678, 448, 26589, 13, 1678, 8653, 1605, 29940, 7976, 29898, 29911, 4161, 29922, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 511, 286, 4161, 29922, 29900, 29889, 29900, 29900, 29896, 29897, 13, 268, 29906, 29889, 29900, 29955, 29929, 29946, 29929, 29900, 29906, 29946, 29955, 29946, 29953, 29955, 29947, 29896, 29929, 29941, 29872, 29899, 29900, 29953, 13, 1678, 8653, 1605, 29940, 7976, 29898, 29911, 4161, 29922, 9302, 29889, 2378, 4197, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29889, 29900, 4638, 511, 286, 4161, 29922, 29900, 29889, 29900, 29900, 29896, 29897, 13, 1678, 1409, 4197, 29906, 29889, 29900, 29955, 29929, 29946, 29929, 29900, 29906, 29945, 29872, 29899, 29900, 29953, 29892, 29871, 29896, 29889, 29955, 29953, 29946, 29947, 29896, 29946, 29906, 29955, 29872, 29899, 29900, 29946, 2314, 13, 1678, 9995, 13, 1678, 286, 29990, 29872, 353, 29871, 29896, 29896, 29945, 29889, 29941, 29929, 29900, 29929, 396, 1879, 29963, 13, 1678, 954, 353, 7442, 29889, 13519, 29898, 29911, 4161, 29892, 29871, 29906, 29889, 29900, 29897, 718, 29871, 29906, 29930, 29885, 4161, 29930, 29911, 4161, 13, 1678, 972, 290, 353, 323, 4161, 718, 7442, 29889, 13519, 29898, 29885, 4161, 718, 286, 29990, 29872, 29892, 29871, 29906, 29889, 29900, 11877, 9302, 29889, 13519, 29898, 29906, 29930, 29885, 29990, 29872, 29892, 448, 29896, 29889, 29900, 29897, 13, 1678, 736, 954, 29930, 9302, 29889, 13519, 29898, 1145, 290, 29892, 448, 29896, 29889, 29900, 29897, 13, 13, 1753, 679, 29918, 29916, 264, 265, 29918, 10492, 29898, 2543, 29922, 29945, 29889, 29900, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29945, 29889, 29900, 511, 10887, 29922, 29900, 29889, 29900, 29900, 29896, 29892, 270, 29911, 29940, 29922, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29947, 29889, 29900, 511, 270, 29911, 4161, 29922, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29889, 29900, 511, 323, 4161, 7976, 29922, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 29871, 29900, 22164, 13, 1678, 364, 15945, 29908, 13, 1678, 11796, 267, 278, 6554, 363, 278, 2702, 750, 19783, 309, 293, 1904, 2183, 297, 421, 29933, 271, 514, 634, 394, 29889, 529, 1124, 597, 262, 1028, 533, 354, 29886, 29889, 1212, 29914, 11651, 29914, 29896, 29955, 29900, 29947, 29947, 29945, 29946, 13885, 29918, 297, 278, 1060, 264, 265, 29871, 29896, 29911, 1439, 3019, 29889, 11221, 385, 14060, 545, 931, 313, 29906, 29955, 29947, 29889, 29947, 3841, 511, 278, 1353, 310, 3806, 4959, 508, 367, 12833, 408, 584, 755, 18078, 29905, 6642, 29918, 29940, 323, 1665, 13605, 29912, 4548, 930, 1412, 450, 29871, 29929, 29900, 29995, 16420, 3233, 338, 769, 1476, 491, 17420, 445, 1741, 1353, 304, 29871, 29941, 29889, 29945, 29953, 4959, 29892, 515, 6137, 306, 297, 278, 1556, 7786, 421, 29990, 264, 265, 29871, 29896, 29911, 5650, 529, 991, 597, 279, 26560, 29889, 990, 29914, 5140, 29914, 29896, 29947, 29900, 29945, 29889, 29896, 29906, 29945, 29953, 29906, 29889, 5140, 13885, 5396, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 1410, 584, 5785, 13, 4706, 23638, 304, 701, 29899, 339, 935, 13, 1678, 10887, 584, 5785, 13, 4706, 4158, 310, 278, 17336, 14457, 1061, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 1678, 270, 29911, 29940, 584, 5785, 13, 4706, 337, 1111, 309, 5864, 13465, 10104, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 1678, 270, 29911, 4161, 584, 5785, 13, 4706, 6501, 4383, 5864, 10104, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 1678, 323, 4161, 7976, 584, 5785, 13, 4706, 7472, 6501, 4383, 5864, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 330, 29940, 584, 5785, 13, 4706, 6554, 20840, 755, 18078, 29905, 13605, 29912, 29879, 19579, 29896, 10114, 29962, 13, 13, 1678, 8695, 13, 1678, 448, 807, 13, 1678, 1334, 526, 16049, 278, 1494, 5023, 29892, 13, 13, 1678, 6317, 5844, 1057, 320, 6642, 29918, 29940, 353, 405, 29918, 29911, 320, 524, 648, 29911, 29918, 29896, 2844, 29911, 29918, 29906, 3331, 13605, 29912, 29881, 29913, 29911, 29918, 29940, 7179, 320, 524, 648, 29911, 3187, 4161, 3311, 13605, 29912, 1195, 12156, 29911, 29918, 29940, 29897, 6292, 3411, 3331, 13605, 29912, 29881, 29913, 29911, 3187, 4161, 7179, 320, 5463, 29898, 29911, 29918, 29940, 2144, 1154, 741, 13605, 29912, 29881, 1012, 2876, 3187, 4161, 3331, 13605, 29912, 29881, 29913, 29911, 3187, 4161, 1012, 1154, 741, 13605, 29912, 29881, 1012, 3754, 1665, 4161, 405, 12431, 13605, 29912, 29881, 29913, 29911, 29918, 29940, 29913, 29871, 500, 259, 500, 13, 13, 1678, 1222, 9422, 13, 1678, 448, 26589, 13, 1678, 8653, 679, 29918, 29916, 264, 265, 29918, 10492, 29898, 2543, 29922, 29945, 29889, 29900, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29945, 29889, 29900, 511, 10887, 29922, 29900, 29889, 29900, 29900, 29896, 29897, 13, 1678, 9995, 13, 1678, 1596, 877, 2683, 2683, 2683, 807, 2612, 29876, 29990, 264, 265, 29871, 29896, 29911, 390, 403, 20535, 1061, 29905, 29876, 2683, 2683, 2683, 807, 2612, 29876, 20606, 292, 6554, 363, 1410, 353, 24335, 10887, 353, 6571, 1879, 29963, 4286, 4830, 29898, 2543, 29892, 10887, 876, 13, 1678, 1596, 877, 29881, 29911, 4161, 353, 24335, 270, 29911, 29940, 353, 6571, 4286, 4830, 29898, 29881, 29911, 4161, 29892, 270, 29911, 29940, 876, 13, 1678, 402, 4801, 353, 29871, 29906, 29889, 29945, 29906, 29929, 29941, 29941, 29945, 29955, 29941, 29929, 29955, 29896, 29941, 29953, 29941, 29946, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 29871, 29906, 29945, 29889, 29900, 29897, 396, 17090, 11563, 338, 17772, 373, 278, 5224, 10452, 13, 1678, 286, 4161, 353, 10887, 29914, 29941, 13, 1678, 330, 4161, 353, 29871, 29896, 29889, 29900, 13, 1678, 319, 353, 29871, 29896, 29941, 29896, 29889, 29906, 29929, 29941, 13, 1678, 796, 353, 29871, 29945, 29946, 29889, 29900, 13, 1678, 405, 29911, 353, 29871, 29896, 29941, 29900, 29900, 14571, 29909, 29930, 29896, 29889, 29953, 29953, 29900, 29945, 29946, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29955, 876, 13, 1678, 321, 3232, 353, 29871, 29900, 29889, 29947, 29929, 13, 1678, 286, 29940, 353, 29871, 29900, 29889, 29929, 29941, 29896, 29946, 29929, 29946, 29896, 29930, 29909, 13, 1678, 22326, 353, 29871, 29900, 29889, 29929, 29941, 29947, 29906, 29955, 29906, 29871, 396, 1879, 29963, 13, 1678, 28597, 353, 29871, 29900, 29889, 29929, 29941, 29929, 29945, 29953, 29945, 29871, 396, 1879, 29963, 13, 1678, 3887, 353, 29871, 29900, 29889, 29900, 29900, 29906, 29906, 29871, 396, 1879, 29963, 13, 1678, 343, 29879, 407, 353, 29871, 29900, 29889, 29900, 29896, 29946, 29930, 2543, 29930, 1526, 29914, 2589, 13, 1678, 343, 29879, 15755, 353, 29871, 29900, 29889, 29900, 29896, 29906, 29930, 2543, 29930, 23521, 29914, 2589, 13, 1678, 1506, 353, 679, 29918, 17519, 292, 29918, 3605, 601, 29898, 2543, 29922, 2543, 29892, 10887, 29922, 1516, 29897, 13, 1678, 1596, 28909, 29876, 29933, 4014, 292, 17450, 601, 353, 6571, 4286, 4830, 29898, 1182, 876, 13, 1678, 323, 4161, 16401, 353, 7442, 29889, 279, 927, 29898, 29900, 29889, 29900, 29896, 29945, 29892, 323, 4161, 7976, 29892, 270, 29911, 4161, 29897, 13, 1678, 323, 29940, 16401, 353, 7442, 29889, 279, 927, 29898, 29946, 29889, 29929, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29889, 29900, 511, 29871, 29946, 29900, 29889, 29929, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29889, 29900, 511, 270, 29911, 29940, 29897, 13, 1678, 323, 29940, 29892, 323, 3210, 29902, 353, 7442, 29889, 4467, 29882, 7720, 29898, 29911, 29940, 16401, 29892, 323, 4161, 16401, 29897, 13, 1678, 8466, 29892, 6056, 353, 679, 29918, 17460, 877, 1187, 1495, 13, 1678, 2379, 1314, 16401, 353, 6056, 29930, 29954, 4801, 29930, 1182, 29930, 17460, 29889, 24219, 403, 29898, 29911, 4161, 16401, 29897, 13, 1678, 17117, 383, 29931, 29965, 29990, 353, 7442, 29889, 4467, 29882, 7720, 29898, 29911, 29940, 16401, 29892, 2379, 1314, 16401, 29897, 13, 1678, 758, 19790, 353, 313, 9302, 29889, 13519, 29898, 29999, 29930, 952, 407, 718, 313, 29909, 448, 796, 11877, 952, 15755, 29892, 29871, 29906, 29889, 29900, 11877, 9302, 29889, 13519, 29898, 29887, 4161, 29892, 29871, 29906, 29889, 29900, 6802, 29898, 29947, 29930, 9302, 29889, 1631, 876, 13, 1678, 360, 5425, 21576, 1299, 29940, 353, 758, 19790, 16395, 29906, 29930, 29885, 29940, 718, 323, 29940, 11877, 29898, 29906, 29930, 9302, 29889, 13519, 29898, 29885, 4161, 29892, 29871, 29906, 29889, 29900, 29897, 718, 286, 29940, 29930, 29911, 29940, 11877, 9302, 29889, 13519, 29898, 29906, 29930, 29885, 29940, 29930, 29911, 29940, 718, 7442, 29889, 13519, 29898, 1516, 29892, 29871, 29906, 29889, 29900, 511, 448, 29906, 29889, 29900, 11877, 689, 29918, 19790, 29898, 29911, 29940, 29897, 13, 1678, 360, 5425, 21576, 14789, 29902, 353, 7442, 29889, 13519, 29898, 9302, 29889, 13519, 29898, 29911, 3210, 29902, 29892, 29871, 29906, 29889, 29900, 29897, 718, 29871, 29906, 29930, 29885, 4161, 29930, 29911, 3210, 29902, 29892, 448, 29896, 29889, 29900, 29897, 13, 1678, 360, 5425, 29954, 1529, 353, 360, 5425, 21576, 1299, 29940, 29930, 29928, 5425, 21576, 14789, 29902, 29930, 9302, 29889, 13519, 29898, 29896, 14571, 29945, 29889, 29900, 29953, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 29871, 29896, 29941, 8243, 29871, 29906, 29889, 29900, 29897, 13, 1678, 2672, 4330, 14345, 9468, 353, 405, 29911, 29930, 5463, 29930, 29928, 5425, 29954, 1529, 29930, 10536, 29965, 29990, 29930, 9302, 29889, 354, 485, 275, 680, 29898, 29911, 29940, 17109, 29898, 29911, 3210, 29902, 29897, 448, 323, 29940, 29892, 29871, 29896, 29889, 29900, 29897, 13, 1678, 330, 29940, 353, 2672, 4330, 14345, 9468, 29889, 2083, 580, 29930, 29881, 29911, 4161, 29930, 29881, 29911, 29940, 13, 1678, 4959, 353, 330, 29940, 29930, 29906, 29955, 29947, 29889, 29947, 29930, 29947, 29953, 29946, 29900, 29900, 13, 1678, 1596, 28909, 29876, 1378, 29905, 29876, 12191, 3583, 29876, 1378, 29905, 29876, 29905, 29876, 19907, 29901, 6571, 639, 1473, 29892, 28488, 353, 426, 1012, 29876, 4286, 4830, 29898, 29887, 29940, 29892, 4959, 876, 13, 1678, 736, 330, 29940, 29892, 4959, 13, 13, 13, 1753, 883, 29918, 19790, 29898, 29911, 29940, 1125, 13, 1678, 364, 15945, 29908, 13, 1678, 16969, 278, 6162, 29885, 3812, 383, 7168, 515, 421, 29900, 29953, 29900, 29947, 29889, 29900, 29941, 29945, 529, 991, 597, 279, 26560, 29889, 990, 29914, 5140, 29914, 354, 29886, 29899, 561, 29914, 29900, 29953, 29900, 29947, 29900, 29941, 29945, 29889, 5140, 13885, 5396, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 323, 29940, 584, 7442, 29889, 2378, 13, 4706, 20346, 337, 1111, 309, 5864, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 383, 29950, 3044, 584, 7442, 29889, 2378, 13, 4706, 6862, 310, 278, 6162, 29885, 3812, 383, 7168, 13, 13, 1678, 1222, 9422, 13, 1678, 448, 26589, 13, 1678, 8653, 883, 29918, 19790, 29898, 29911, 29940, 29922, 29945, 29889, 29900, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29889, 29900, 876, 13, 268, 29900, 29889, 29955, 29947, 29945, 29946, 29955, 29941, 29955, 29955, 29896, 29941, 29941, 29896, 29941, 29945, 29946, 29929, 13, 1678, 9995, 13, 1678, 319, 353, 29871, 29896, 29941, 29896, 29889, 29906, 29929, 29941, 13, 1678, 286, 29940, 353, 29871, 29900, 29889, 29929, 29941, 29896, 29946, 29929, 29946, 29896, 29930, 29909, 13, 1678, 3855, 353, 7442, 29889, 3676, 29898, 29906, 29930, 29885, 29940, 29930, 29911, 29940, 29897, 13, 1678, 285, 29885, 7999, 29963, 353, 29871, 29896, 14571, 29896, 29889, 29929, 29947, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29889, 29900, 876, 13, 1678, 269, 353, 29871, 29900, 29889, 29929, 29930, 24826, 7999, 29963, 13, 1678, 263, 353, 29871, 29900, 29889, 29945, 29906, 29930, 24826, 7999, 29963, 13, 1678, 274, 353, 313, 29896, 29889, 29906, 29941, 29930, 9302, 29889, 13519, 29898, 29909, 29892, 29871, 29896, 29914, 29941, 29897, 448, 29871, 29900, 29889, 29953, 29900, 11877, 24826, 7999, 29963, 13, 1678, 390, 29896, 353, 7442, 29889, 3676, 29898, 9302, 29889, 13519, 29898, 29883, 29892, 29871, 29906, 29889, 29900, 29897, 718, 313, 29955, 29914, 29941, 11877, 9302, 29889, 13519, 29898, 9302, 29889, 1631, 29892, 29871, 29906, 29889, 29900, 11877, 9302, 29889, 13519, 29898, 29874, 29892, 29871, 29906, 29889, 29900, 29897, 448, 29871, 29945, 29930, 9302, 29889, 13519, 29898, 29879, 29892, 29871, 29906, 29889, 29900, 876, 13, 1678, 383, 29950, 3044, 353, 29871, 29929, 29930, 9302, 29889, 4548, 6278, 9302, 29889, 13519, 29898, 29939, 29930, 29879, 29892, 29871, 29906, 29889, 29900, 876, 29930, 9302, 29889, 13519, 29898, 29939, 29930, 29934, 29896, 29892, 448, 29906, 29889, 29900, 11877, 9302, 29889, 13519, 29898, 9302, 29889, 5223, 29898, 29939, 29930, 29934, 29896, 11877, 9302, 29889, 13519, 29898, 29939, 29930, 29934, 29896, 29892, 448, 29906, 29889, 29900, 29897, 448, 7442, 29889, 3944, 29898, 29939, 29930, 29934, 29896, 11877, 9302, 29889, 13519, 29898, 29939, 29930, 29934, 29896, 29892, 448, 29896, 29889, 29900, 511, 29871, 29906, 29889, 29900, 29897, 13, 1678, 736, 383, 29950, 3044, 13, 13, 1753, 679, 29918, 17519, 292, 29918, 3605, 601, 29898, 2543, 29892, 10887, 1125, 13, 1678, 364, 15945, 29908, 13, 1678, 16969, 278, 5443, 292, 11959, 363, 278, 1889, 584, 755, 18078, 29905, 1187, 320, 5211, 320, 1631, 29985, 29900, 320, 4161, 29905, 4161, 29952, 515, 278, 1904, 297, 421, 29933, 271, 514, 634, 394, 29889, 529, 991, 597, 279, 26560, 29889, 990, 29914, 5140, 29914, 29896, 29947, 29896, 29906, 29889, 29900, 29945, 29896, 29900, 29941, 29889, 5140, 13885, 5396, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 1410, 584, 5785, 13, 4706, 23638, 304, 701, 29899, 339, 935, 13, 1678, 10887, 584, 5785, 13, 4706, 17336, 14457, 1061, 4158, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 1506, 584, 5785, 13, 4706, 5443, 292, 11959, 584, 755, 18078, 29905, 13605, 29912, 15176, 4678, 1187, 320, 5211, 320, 1631, 29985, 29900, 320, 4161, 29905, 4161, 3569, 13, 13, 1678, 8695, 13, 1678, 448, 807, 13, 1678, 1334, 526, 16049, 278, 1494, 4603, 29892, 13, 13, 1678, 6317, 5844, 1057, 320, 13605, 1194, 1187, 320, 5211, 320, 1631, 29985, 29900, 317, 29897, 353, 320, 1154, 29912, 29907, 29985, 29906, 330, 29918, 29884, 29985, 29906, 350, 29985, 29906, 1157, 29896, 29953, 29905, 1631, 286, 3187, 1187, 320, 6642, 3187, 1187, 1012, 2892, 998, 29896, 29914, 29906, 1012, 1563, 29898, 29896, 29892, 320, 1154, 29912, 29885, 29918, 29903, 29985, 29906, 1157, 29885, 3187, 1187, 29985, 29906, 1118, 320, 1154, 29912, 29885, 3187, 1631, 29985, 29906, 1157, 29885, 3187, 1187, 29985, 29906, 1012, 1266, 29897, 13, 13, 1678, 988, 591, 526, 10241, 263, 5443, 292, 11959, 584, 755, 18078, 29905, 13605, 29912, 15176, 2119, 29903, 320, 5211, 320, 4161, 29905, 4161, 29897, 353, 29871, 29896, 1673, 322, 584, 755, 18078, 29905, 2892, 29898, 29874, 29892, 289, 29892, 274, 29897, 353, 263, 29985, 29906, 718, 289, 29985, 29906, 718, 274, 29985, 29906, 448, 29871, 29906, 29898, 370, 718, 289, 29883, 718, 1274, 14466, 13, 13, 1678, 1222, 9422, 13, 1678, 448, 26589, 13, 1678, 8653, 679, 29918, 17519, 292, 29918, 3605, 601, 29898, 2543, 29922, 29955, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29946, 29889, 29900, 511, 10887, 29922, 29900, 29889, 29896, 29897, 13, 268, 29900, 29889, 29900, 29945, 29955, 29953, 29945, 29906, 29941, 29946, 29946, 29900, 29946, 29945, 29947, 29946, 29955, 29941, 29955, 13, 1678, 9995, 13, 1678, 278, 29873, 481, 29878, 353, 448, 9302, 29889, 1631, 29914, 29929, 13, 1678, 286, 1631, 353, 29871, 29900, 29889, 29896, 29941, 29946, 29929, 29955, 29955, 29900, 396, 1879, 29963, 13, 1678, 12700, 353, 29871, 29900, 29889, 29945, 29946, 29955, 29947, 29953, 29906, 396, 1879, 29963, 13, 1678, 3887, 353, 29871, 29900, 29889, 29900, 29900, 29906, 29906, 396, 1879, 29963, 13, 1678, 22821, 353, 29871, 29900, 29889, 29900, 29900, 29946, 29955, 396, 1879, 29963, 13, 1678, 679, 29874, 353, 29871, 29896, 29889, 29941, 29896, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29889, 29900, 29897, 396, 1879, 29963, 13, 1678, 315, 353, 7442, 29889, 3676, 29898, 29896, 29914, 29941, 11877, 9302, 29889, 3944, 29898, 386, 300, 481, 29878, 29897, 448, 7442, 29889, 3676, 29898, 29906, 29914, 29941, 11877, 9302, 29889, 5223, 29898, 386, 300, 481, 29878, 29897, 13, 1678, 350, 353, 7442, 29889, 13519, 29898, 1526, 29875, 29892, 29871, 29906, 29889, 29900, 11877, 9302, 29889, 13519, 29898, 2589, 718, 22821, 29892, 448, 29896, 29889, 29900, 29897, 13, 1678, 263, 353, 29871, 29896, 29889, 29900, 13, 1678, 289, 353, 7442, 29889, 13519, 29898, 1516, 29914, 7299, 29892, 29871, 29906, 29889, 29900, 29897, 13, 1678, 274, 353, 7442, 29889, 13519, 29898, 1526, 29875, 29914, 7299, 29892, 29871, 29906, 29889, 29900, 29897, 13, 1678, 1506, 353, 7442, 29889, 13519, 29898, 29907, 29930, 2543, 29930, 29933, 29892, 29871, 29906, 29889, 29900, 11877, 9302, 29889, 13519, 29898, 29896, 29953, 29930, 9302, 29889, 1631, 29930, 7299, 29930, 657, 29874, 29892, 448, 29896, 29889, 29900, 11877, 9302, 29889, 3676, 29898, 9302, 29889, 13519, 29898, 29874, 29892, 29871, 29906, 29897, 718, 7442, 29889, 13519, 29898, 29890, 29892, 29871, 29906, 29897, 718, 7442, 29889, 13519, 29898, 29883, 29892, 29871, 29906, 29897, 448, 29871, 29906, 29930, 29874, 29930, 29890, 448, 29871, 29906, 29930, 29890, 29930, 29883, 448, 29871, 29906, 29930, 29874, 29930, 29883, 29897, 13, 1678, 736, 1506, 13, 13, 13, 1753, 323, 29940, 17109, 29898, 29911, 4161, 29892, 286, 4161, 29922, 29900, 29889, 29900, 29900, 29896, 29892, 286, 29940, 29922, 29896, 29896, 29945, 29889, 29941, 29929, 29900, 29929, 29892, 6479, 1111, 309, 29918, 3317, 29922, 29946, 29900, 29889, 29929, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29889, 29900, 22164, 13, 1678, 364, 15945, 29908, 13, 1678, 512, 369, 1372, 278, 8220, 363, 278, 4603, 297, 584, 2272, 29901, 9891, 18078, 29911, 29920, 8140, 29952, 304, 1284, 278, 7472, 337, 1111, 309, 5864, 393, 508, 367, 5759, 515, 263, 6501, 4383, 19015, 7492, 5864, 584, 755, 18078, 29911, 3187, 4161, 1412, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 323, 4161, 584, 5785, 13, 4706, 19015, 7492, 18190, 583, 310, 6501, 4383, 16445, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 1678, 286, 4161, 584, 5785, 13, 4706, 4158, 310, 278, 6501, 4383, 16445, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 1678, 286, 29940, 584, 5785, 13, 4706, 4158, 310, 278, 337, 1111, 309, 22699, 375, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 1678, 6479, 1111, 309, 29918, 3317, 584, 5785, 13, 4706, 7472, 1439, 3019, 4771, 24858, 363, 337, 1111, 309, 18190, 583, 20840, 755, 18078, 29905, 13605, 29912, 7999, 29963, 10114, 29962, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 323, 29940, 17109, 584, 7442, 29889, 2378, 13, 4706, 7472, 337, 1111, 309, 5864, 29892, 2845, 19015, 4579, 1711, 470, 491, 1439, 3019, 4771, 24858, 13, 13, 1678, 8695, 13, 1678, 448, 807, 13, 1678, 1334, 526, 16049, 278, 1494, 29892, 13, 13, 1678, 6317, 5844, 1057, 323, 29918, 29940, 3311, 13605, 29912, 9917, 930, 353, 320, 13605, 29912, 1195, 1012, 1563, 7110, 1154, 29912, 29906, 29898, 29906, 286, 3187, 4161, 718, 323, 3187, 4161, 29897, 29885, 29918, 29940, 323, 3187, 4161, 1157, 29885, 3187, 4161, 29985, 29906, 718, 29871, 29906, 29885, 3187, 4161, 286, 29918, 29940, 718, 286, 29918, 29940, 29985, 29906, 718, 29871, 29906, 29885, 29918, 29940, 323, 3187, 4161, 1118, 323, 29918, 29940, 3311, 13605, 29912, 276, 1111, 309, 4229, 1266, 29962, 13, 13, 1678, 1152, 1060, 264, 265, 29871, 29896, 29911, 29892, 584, 755, 18078, 29911, 29918, 29940, 3311, 13605, 29912, 276, 1111, 309, 930, 353, 29871, 29946, 29900, 29889, 29929, 15013, 13605, 29912, 446, 29963, 10114, 322, 584, 755, 18078, 29885, 29918, 29940, 353, 29871, 29896, 29896, 29945, 29889, 29941, 29929, 29900, 29929, 15013, 13605, 29912, 7999, 29963, 29913, 1412, 13, 13, 1678, 1222, 9422, 13, 1678, 448, 26589, 13, 1678, 8653, 323, 29940, 17109, 29898, 9302, 29889, 2378, 4197, 29900, 29889, 29900, 29896, 29945, 29892, 29871, 29900, 29889, 29900, 29906, 29900, 11724, 286, 4161, 29922, 29900, 29889, 29900, 29900, 29896, 29892, 286, 29940, 29922, 29896, 29896, 29945, 29889, 29941, 29929, 29900, 29929, 29892, 6479, 1111, 309, 29918, 3317, 29922, 29946, 29900, 29889, 29929, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29889, 29900, 876, 13, 1678, 1409, 4197, 29946, 29889, 29946, 29896, 29947, 29945, 29941, 29941, 29929, 29941, 29872, 29899, 29900, 29953, 29892, 29871, 29955, 29889, 29953, 29906, 29941, 29946, 29955, 29953, 29945, 29900, 29872, 29899, 29900, 29953, 2314, 13, 1678, 8653, 323, 29940, 17109, 29898, 9302, 29889, 2378, 4197, 29900, 29889, 29900, 29946, 29900, 29892, 29871, 29900, 29889, 29900, 29945, 29900, 29892, 29871, 29900, 29889, 29900, 29945, 29945, 11724, 286, 4161, 29922, 29900, 29889, 29900, 29900, 29896, 29892, 286, 29940, 29922, 29896, 29896, 29945, 29889, 29941, 29929, 29900, 29929, 29892, 6479, 1111, 309, 29918, 3317, 29922, 29946, 29900, 29889, 29929, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29889, 29900, 876, 13, 1678, 1409, 4197, 29906, 29889, 29929, 29900, 29929, 29955, 29955, 29941, 29953, 29941, 29872, 29899, 29900, 29945, 29892, 29871, 29946, 29889, 29900, 29929, 29900, 29900, 29900, 29900, 29900, 29900, 29872, 29899, 29900, 29945, 29892, 29871, 29946, 29889, 29900, 29929, 29900, 29900, 29900, 29900, 29900, 29900, 29872, 29899, 29900, 29945, 2314, 13, 1678, 9995, 13, 1678, 323, 29940, 17109, 353, 29871, 29906, 29930, 29885, 29940, 29930, 29911, 4161, 16395, 29906, 29930, 29885, 4161, 718, 323, 4161, 11877, 9302, 29889, 13519, 29898, 9302, 29889, 13519, 29898, 29885, 4161, 29892, 29871, 29906, 29889, 29900, 29897, 718, 29871, 29906, 29930, 29885, 4161, 29930, 29885, 29940, 718, 7442, 29889, 13519, 29898, 29885, 29940, 29892, 29871, 29906, 29889, 29900, 29897, 718, 29871, 29906, 29930, 29885, 29940, 29930, 29911, 4161, 29892, 448, 29896, 29889, 29900, 29897, 13, 1678, 11105, 353, 313, 29911, 29940, 17109, 1405, 6479, 1111, 309, 29918, 3317, 29897, 13, 1678, 323, 29940, 17109, 29961, 13168, 29962, 353, 6479, 1111, 309, 29918, 3317, 13, 1678, 736, 323, 29940, 17109, 13, 13, 1753, 679, 29918, 1195, 747, 29877, 650, 29918, 1272, 7295, 13, 1678, 364, 15945, 29908, 13, 1678, 4309, 7925, 1375, 747, 29877, 650, 848, 515, 1375, 747, 29877, 650, 29889, 7638, 29889, 3630, 4586, 515, 421, 29933, 271, 514, 634, 394, 29889, 529, 1124, 597, 262, 1028, 533, 354, 29886, 29889, 1212, 29914, 11651, 29914, 29896, 29955, 29900, 29947, 29947, 29945, 29946, 13885, 5396, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 20629, 29918, 2176, 584, 10518, 29889, 17271, 13, 4706, 1375, 747, 29877, 650, 12205, 411, 4341, 20840, 755, 18078, 29885, 29918, 29903, 29952, 313, 262, 1879, 29963, 511, 584, 755, 18078, 29887, 29918, 29884, 29952, 29962, 13, 1678, 9995, 13, 1678, 20629, 29918, 2176, 353, 10518, 29889, 949, 29918, 7638, 877, 1195, 747, 29877, 650, 29889, 7638, 742, 4839, 29922, 8516, 29897, 13, 1678, 20629, 29918, 2176, 29889, 13099, 353, 6024, 1516, 518, 7999, 29963, 29962, 742, 525, 2543, 2033, 13, 1678, 736, 20629, 29918, 2176, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 396, 270, 29911, 4161, 16401, 353, 7442, 29889, 1188, 3493, 6278, 29941, 29889, 29900, 29892, 448, 29906, 29889, 29900, 29897, 13, 1678, 396, 4959, 2749, 353, 7442, 29889, 6310, 29898, 2435, 29898, 29881, 29911, 4161, 16401, 876, 13, 1678, 396, 22645, 353, 29871, 29900, 13, 1678, 396, 363, 270, 29911, 4161, 297, 270, 29911, 4161, 16401, 29901, 13, 1678, 396, 268, 6554, 29892, 4959, 353, 679, 29918, 29916, 264, 265, 29918, 10492, 29898, 29881, 29911, 4161, 29922, 29881, 29911, 4161, 29897, 13, 1678, 396, 268, 4959, 2749, 29961, 13140, 29962, 353, 4959, 13, 1678, 396, 268, 22645, 4619, 29871, 29896, 13, 1678, 396, 14770, 29889, 4532, 580, 13, 1678, 396, 14770, 29889, 12846, 26140, 29916, 29898, 29881, 29911, 4161, 16401, 29892, 4959, 2749, 29897, 13, 1678, 396, 14770, 29889, 3257, 29898, 29878, 29915, 19907, 17100, 284, 1281, 369, 10238, 1495, 13, 1678, 396, 14770, 29889, 29916, 1643, 29898, 29878, 29915, 4535, 5268, 323, 3187, 4161, 15013, 13605, 13970, 7999, 29963, 29962, 1042, 1495, 13, 1678, 396, 14770, 29889, 29891, 1643, 29898, 29878, 29915, 13634, 1495, 13, 1678, 396, 14770, 29889, 7620, 1003, 877, 26762, 29914, 13604, 29889, 5140, 1495, 13, 13, 1678, 396, 379, 3035, 1672, 19689, 6227, 2965, 16507, 2891, 13, 1678, 1053, 22889, 13, 1678, 14770, 29889, 2214, 9629, 1839, 1165, 267, 29889, 16292, 2033, 353, 29871, 29896, 29889, 29955, 29945, 13, 1678, 14770, 29889, 2214, 9629, 1839, 486, 860, 29889, 1195, 272, 29889, 2311, 2033, 353, 29871, 29945, 13, 1678, 14770, 29889, 2214, 9629, 1839, 486, 860, 29889, 21355, 29889, 2311, 2033, 353, 29871, 29955, 13, 1678, 14770, 29889, 2214, 9629, 1839, 3637, 860, 29889, 1195, 272, 29889, 2311, 2033, 353, 29871, 29945, 13, 1678, 14770, 29889, 2214, 9629, 1839, 3637, 860, 29889, 21355, 29889, 2311, 2033, 353, 29871, 29955, 13, 1678, 14770, 29889, 2214, 9629, 1839, 486, 860, 29889, 21355, 29889, 2103, 2033, 353, 29871, 29896, 29889, 29900, 13, 1678, 14770, 29889, 2214, 9629, 1839, 3637, 860, 29889, 21355, 29889, 2103, 2033, 353, 29871, 29896, 29889, 29900, 13, 1678, 14770, 29889, 2214, 9629, 1839, 486, 860, 29889, 1195, 272, 29889, 12872, 2033, 353, 5852, 13, 1678, 14770, 29889, 2214, 9629, 1839, 3637, 860, 29889, 1195, 272, 29889, 12872, 2033, 353, 5852, 13, 1678, 22889, 29889, 2214, 9629, 1839, 726, 29889, 25694, 29889, 1457, 314, 569, 2033, 353, 518, 29878, 26732, 9096, 29912, 2232, 755, 29913, 3108, 13, 13, 1678, 1410, 16401, 353, 7442, 29889, 1188, 3493, 6278, 29945, 29889, 29900, 29892, 448, 29941, 29889, 29900, 29892, 29871, 29906, 29945, 29897, 13, 1678, 10887, 16401, 353, 7442, 29889, 1188, 3493, 6278, 29941, 29889, 29900, 29892, 7442, 29889, 1188, 29896, 29900, 29898, 29900, 29889, 29945, 511, 29871, 29906, 29945, 29897, 13, 1678, 10888, 29892, 402, 29965, 353, 7442, 29889, 4467, 29882, 7720, 29898, 1516, 16401, 29892, 1410, 16401, 29897, 13, 1678, 396, 382, 29963, 3919, 29903, 353, 7442, 29889, 6310, 4197, 2435, 29898, 2543, 16401, 511, 7431, 29898, 1516, 16401, 29897, 2314, 13, 1678, 396, 22645, 353, 29871, 29896, 13, 1678, 396, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 2543, 16401, 22164, 13, 1678, 396, 268, 363, 432, 297, 3464, 29898, 29900, 29892, 7431, 29898, 1516, 16401, 22164, 13, 1678, 396, 308, 1596, 877, 26010, 6571, 714, 310, 6571, 4286, 4830, 29898, 13140, 29892, 7431, 29898, 1516, 16401, 11877, 2435, 29898, 2543, 16401, 4961, 13, 1678, 396, 308, 6554, 29892, 4959, 353, 679, 29918, 29916, 264, 265, 29918, 10492, 29898, 1516, 29922, 1516, 16401, 29961, 29926, 1402, 1410, 29922, 2543, 16401, 29961, 29875, 2314, 13, 1678, 396, 308, 382, 29963, 3919, 29903, 29961, 29875, 3816, 29926, 29962, 353, 4959, 13, 1678, 396, 308, 22645, 4619, 29871, 29896, 13, 1678, 396, 7442, 29889, 7620, 877, 13604, 29889, 29876, 2272, 742, 382, 29963, 3919, 29903, 29897, 13, 1678, 382, 29963, 3919, 29903, 353, 7442, 29889, 1359, 877, 13604, 29889, 29876, 2272, 1495, 13, 1678, 365, 29999, 29918, 22240, 3919, 29903, 353, 313, 29896, 29889, 29900, 29914, 29900, 29889, 29947, 29929, 11877, 3552, 29945, 29889, 29953, 29930, 29896, 29900, 29900, 29900, 6802, 29898, 29896, 29889, 29941, 29930, 29906, 29955, 29947, 29889, 29947, 876, 29930, 22240, 3919, 29903, 13, 1678, 396, 2158, 29898, 22240, 3919, 29903, 29889, 12181, 29897, 13, 1678, 1741, 29918, 2576, 353, 29871, 29941, 29889, 29945, 29953, 13, 1678, 274, 1958, 353, 525, 29954, 11642, 29915, 13, 1678, 515, 22889, 1053, 260, 6541, 13, 1678, 1375, 747, 29877, 650, 29918, 2176, 353, 679, 29918, 1195, 747, 29877, 650, 29918, 1272, 580, 13, 1678, 14770, 29889, 4532, 580, 13, 1678, 14770, 29889, 5317, 29898, 1195, 747, 29877, 650, 29918, 2176, 1839, 1516, 518, 7999, 29963, 29962, 7464, 1375, 747, 29877, 650, 29918, 2176, 1839, 2543, 7464, 2927, 2433, 29937, 29953, 29906, 29953, 29945, 29953, 29923, 742, 301, 29893, 29922, 29896, 29889, 29900, 29897, 13, 1678, 396, 572, 29873, 29889, 1285, 473, 29888, 29898, 4345, 29892, 402, 29965, 29892, 382, 29963, 3919, 29903, 29892, 1180, 1061, 29922, 29873, 6541, 29889, 3403, 3524, 1061, 3285, 274, 1958, 29922, 29883, 1958, 29892, 15595, 29922, 29896, 29889, 29900, 29897, 13, 1678, 396, 572, 29873, 29889, 2780, 1646, 29898, 1643, 2433, 2624, 3917, 1495, 13, 1678, 21107, 353, 14770, 29889, 1285, 473, 29898, 4345, 29892, 402, 29965, 29892, 382, 29963, 3919, 29903, 29892, 11174, 11759, 3696, 29918, 2576, 1402, 11955, 29922, 1839, 29937, 29928, 29947, 29896, 29896, 29945, 29929, 7464, 1196, 2103, 29879, 29922, 29896, 29889, 29900, 29892, 15595, 29922, 29896, 29889, 29900, 29892, 6276, 342, 5577, 2433, 29899, 1495, 13, 1678, 14770, 29889, 1285, 473, 29898, 4345, 29892, 402, 29965, 29892, 365, 29999, 29918, 22240, 3919, 29903, 29892, 11174, 11759, 3696, 29918, 2576, 1402, 11955, 29922, 1839, 29937, 29928, 29947, 29896, 29896, 29945, 29929, 7464, 1196, 2103, 29879, 29922, 29896, 29889, 29900, 29892, 15595, 29922, 29896, 29889, 29900, 29892, 6276, 342, 5577, 2433, 489, 1495, 13, 1678, 286, 893, 29892, 1410, 29884, 353, 21107, 29889, 497, 344, 3174, 29961, 29900, 3816, 29900, 1822, 29911, 13, 1678, 14770, 29889, 5589, 29898, 9302, 29889, 4397, 29898, 1195, 747, 29877, 650, 29918, 2176, 1839, 1516, 518, 7999, 29963, 29962, 7464, 286, 893, 29961, 1057, 29899, 29896, 11724, 7442, 29889, 4397, 29898, 1195, 747, 29877, 650, 29918, 2176, 1839, 2543, 7464, 1410, 29884, 29961, 1057, 29899, 29896, 11724, 7636, 2780, 2433, 29895, 742, 3700, 2780, 2433, 29937, 29953, 29906, 29953, 29945, 29953, 29923, 742, 15595, 29922, 29900, 29889, 29941, 29892, 1196, 2103, 29922, 29900, 29889, 29900, 29897, 13, 1678, 286, 893, 353, 7442, 29889, 4397, 29898, 29885, 893, 29892, 7442, 29889, 2378, 4197, 29885, 893, 14352, 29896, 1402, 286, 893, 29961, 29900, 5262, 876, 13, 1678, 1410, 29884, 353, 7442, 29889, 4397, 29898, 2543, 29884, 29892, 7442, 29889, 2378, 4197, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 4638, 876, 13, 1678, 14770, 29889, 5589, 29898, 29885, 893, 29892, 1410, 29884, 29892, 7636, 2780, 2433, 29895, 742, 3700, 2780, 2433, 29937, 29928, 29947, 29896, 29896, 29945, 29929, 742, 15595, 29922, 29900, 29889, 29941, 29892, 1196, 2103, 29922, 29900, 29889, 29900, 29897, 13, 1678, 14770, 29889, 29916, 1643, 29898, 29878, 13090, 29885, 29918, 29903, 15013, 3141, 13970, 7999, 29963, 29962, 1042, 1495, 13, 1678, 14770, 29889, 29891, 1643, 29898, 29878, 13090, 29887, 29918, 29884, 29938, 1495, 13, 1678, 396, 572, 29873, 29889, 3257, 877, 29950, 328, 19783, 309, 293, 1222, 10085, 9628, 1169, 1495, 13, 1678, 14770, 29889, 29887, 1113, 2141, 842, 29918, 29916, 7052, 877, 1188, 1495, 13, 1678, 14770, 29889, 29887, 1113, 2141, 842, 29918, 952, 29883, 744, 877, 1188, 1495, 13, 1678, 27815, 353, 14770, 29889, 8990, 580, 13, 1678, 14770, 29889, 8990, 4197, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29889, 29900, 511, 286, 893, 29889, 3317, 3285, 29871, 29945, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29889, 29900, 29897, 2314, 13, 1678, 396, 572, 29873, 29889, 1557, 2620, 29898, 4345, 29892, 402, 29965, 29892, 274, 2433, 29895, 742, 17456, 2433, 29916, 742, 269, 29922, 29946, 29889, 29900, 29897, 13, 1678, 27815, 353, 14770, 29889, 8990, 580, 13, 1678, 14770, 29889, 726, 29898, 29906, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29889, 29900, 511, 29871, 29896, 29889, 29900, 29945, 29930, 1195, 747, 29877, 650, 29918, 2176, 1839, 2543, 2033, 29961, 29900, 1402, 525, 16173, 29902, 8456, 12413, 742, 4079, 2311, 29922, 29896, 29906, 29892, 2927, 2433, 29937, 29953, 29906, 29953, 29945, 29953, 29923, 1495, 13, 1678, 14770, 29889, 726, 29898, 29896, 29889, 29896, 29930, 1165, 267, 29961, 29900, 1402, 29871, 29945, 29889, 29945, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29945, 29889, 29900, 511, 364, 29915, 2965, 29934, 23560, 20430, 1187, 10931, 313, 29990, 1430, 1164, 29896, 29911, 29897, 742, 4079, 2311, 29922, 29896, 29906, 29892, 2927, 2433, 29937, 29928, 29947, 29896, 29896, 29945, 29929, 1495, 13, 1678, 14770, 29889, 726, 29898, 29896, 29889, 29896, 29930, 1165, 267, 29961, 29900, 1402, 29871, 29906, 29889, 29945, 29945, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29945, 29889, 29900, 511, 364, 29915, 2965, 29934, 23560, 20430, 1187, 10931, 313, 29931, 29999, 29897, 742, 4079, 2311, 29922, 29896, 29906, 29892, 2927, 2433, 29937, 29928, 29947, 29896, 29896, 29945, 29929, 1495, 13, 13, 1678, 14770, 29889, 726, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29889, 29929, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29945, 29889, 29896, 511, 364, 13090, 29887, 3187, 4161, 353, 29871, 29896, 29938, 1495, 13, 1678, 14770, 29889, 726, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29889, 29929, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29945, 29889, 29906, 29945, 511, 364, 13090, 29885, 3187, 4161, 353, 286, 29918, 29903, 29914, 29941, 29938, 1495, 13, 1678, 921, 1195, 29892, 921, 3317, 353, 27815, 29961, 29900, 1402, 27815, 29961, 29896, 29962, 13, 1678, 343, 1195, 29892, 343, 3317, 353, 27815, 29961, 29906, 1402, 27815, 29961, 29941, 29962, 13, 1678, 921, 29891, 353, 313, 29916, 1195, 29892, 343, 1195, 29897, 13, 1678, 2920, 353, 921, 3317, 448, 921, 1195, 13, 1678, 3171, 353, 343, 3317, 448, 343, 1195, 13, 1678, 1053, 22889, 29889, 5041, 267, 408, 13261, 267, 13, 1678, 396, 1653, 278, 13261, 322, 2058, 372, 297, 278, 1250, 310, 2302, 473, 29888, 313, 29920, 2098, 14366, 13, 1678, 282, 353, 13261, 267, 29889, 7364, 2521, 29898, 3594, 29892, 2920, 29892, 3171, 29892, 298, 905, 29922, 29946, 29930, 29915, 29914, 742, 5445, 29922, 8516, 29892, 15595, 29922, 29900, 29889, 29906, 29892, 503, 2098, 10457, 29896, 29900, 29897, 13, 1678, 4853, 353, 14770, 29889, 29887, 1113, 580, 13, 1678, 4853, 29889, 24667, 29918, 7529, 29898, 4716, 2433, 1195, 272, 742, 3309, 29922, 29946, 29897, 13, 1678, 396, 1165, 29889, 1202, 29918, 5041, 29898, 29886, 29897, 13, 1678, 14770, 29889, 7620, 1003, 877, 26762, 29914, 21312, 19783, 309, 293, 29889, 5140, 1495, 13, 13, 13, 1678, 396, 270, 29911, 4161, 353, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29946, 29897, 13, 1678, 396, 11636, 29883, 353, 525, 12254, 29946, 29915, 13, 1678, 396, 323, 4161, 7976, 16401, 353, 7442, 29889, 1188, 3493, 6278, 29896, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29892, 29871, 29906, 29945, 29897, 13, 1678, 396, 3990, 1338, 353, 7442, 29889, 6310, 29898, 2435, 29898, 29911, 4161, 7976, 16401, 876, 13, 1678, 396, 22645, 353, 29871, 29900, 13, 1678, 396, 363, 323, 4161, 7976, 297, 323, 4161, 7976, 16401, 29901, 13, 1678, 396, 268, 3990, 1338, 29961, 13140, 29962, 353, 679, 29918, 14146, 284, 29918, 29894, 29906, 877, 1187, 742, 286, 4161, 29922, 29900, 29889, 29900, 29900, 29896, 29892, 323, 4161, 7976, 29922, 29911, 4161, 7976, 29892, 270, 29911, 4161, 29922, 29881, 29911, 4161, 29897, 13, 1678, 396, 268, 22645, 4619, 29871, 29896, 13, 1678, 396, 7442, 29889, 7620, 877, 29911, 4161, 7976, 29912, 1836, 29876, 2272, 4286, 4830, 29898, 6008, 29883, 511, 323, 4161, 7976, 16401, 29897, 13, 1678, 396, 7442, 29889, 7620, 877, 14146, 1338, 29912, 1836, 29876, 2272, 4286, 4830, 29898, 6008, 29883, 511, 3990, 1338, 29897, 13, 13, 1678, 396, 1596, 29898, 14146, 1338, 29897, 13, 1678, 396, 14770, 29889, 12846, 26140, 29916, 29898, 29911, 4161, 7976, 16401, 29892, 3990, 1338, 29897, 13, 1678, 396, 14770, 29889, 4294, 580, 13, 1678, 396, 14770, 29889, 4532, 580, 13, 1678, 396, 396, 11636, 29883, 353, 525, 12254, 29896, 29915, 13, 1678, 396, 396, 3990, 1338, 353, 7442, 29889, 1359, 877, 14146, 1338, 29912, 1836, 29876, 2272, 4286, 4830, 29898, 6008, 29883, 876, 13, 1678, 396, 396, 323, 4161, 7976, 16401, 353, 7442, 29889, 1359, 877, 29911, 4161, 7976, 29912, 1836, 29876, 2272, 4286, 4830, 29898, 6008, 29883, 876, 13, 1678, 396, 396, 14770, 29889, 12846, 26140, 29916, 29898, 29911, 4161, 7976, 16401, 29892, 3990, 1338, 29914, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29947, 29889, 29900, 511, 3858, 353, 364, 13090, 29896, 29900, 3426, 29896, 1042, 1495, 13, 1678, 396, 11636, 29883, 353, 525, 12254, 29906, 29915, 13, 1678, 396, 3990, 1338, 353, 7442, 29889, 1359, 877, 14146, 1338, 29912, 1836, 29876, 2272, 4286, 4830, 29898, 6008, 29883, 876, 13, 1678, 396, 323, 4161, 7976, 16401, 353, 7442, 29889, 1359, 877, 29911, 4161, 7976, 29912, 1836, 29876, 2272, 4286, 4830, 29898, 6008, 29883, 876, 13, 1678, 396, 14770, 29889, 12846, 26140, 29916, 29898, 29911, 4161, 7976, 16401, 29892, 3990, 1338, 29914, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29947, 29889, 29900, 511, 3858, 353, 364, 13090, 29896, 29900, 3426, 29906, 1042, 1495, 13, 1678, 396, 11636, 29883, 353, 525, 12254, 29941, 29915, 13, 1678, 396, 3990, 1338, 353, 7442, 29889, 1359, 877, 14146, 1338, 29912, 1836, 29876, 2272, 4286, 4830, 29898, 6008, 29883, 876, 13, 1678, 396, 323, 4161, 7976, 16401, 353, 7442, 29889, 1359, 877, 29911, 4161, 7976, 29912, 1836, 29876, 2272, 4286, 4830, 29898, 6008, 29883, 876, 13, 1678, 396, 14770, 29889, 12846, 26140, 29916, 29898, 29911, 4161, 7976, 16401, 29892, 3990, 1338, 29914, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29947, 29889, 29900, 511, 3858, 353, 364, 13090, 29896, 29900, 3426, 29941, 1042, 1495, 13, 1678, 396, 11636, 29883, 353, 525, 12254, 29946, 29915, 13, 1678, 396, 3990, 1338, 353, 7442, 29889, 1359, 877, 14146, 1338, 29912, 1836, 29876, 2272, 4286, 4830, 29898, 6008, 29883, 876, 13, 1678, 396, 323, 4161, 7976, 16401, 353, 7442, 29889, 1359, 877, 29911, 4161, 7976, 29912, 1836, 29876, 2272, 4286, 4830, 29898, 6008, 29883, 876, 13, 1678, 396, 14770, 29889, 12846, 26140, 29916, 29898, 29911, 4161, 7976, 16401, 29892, 3990, 1338, 29914, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29947, 29889, 29900, 511, 3858, 353, 364, 13090, 29896, 29900, 3426, 29946, 1042, 1495, 13, 1678, 396, 14770, 29889, 3257, 877, 8754, 1314, 17100, 284, 1281, 369, 10238, 1495, 13, 1678, 396, 14770, 29889, 29916, 1643, 29898, 29878, 13090, 29911, 3187, 4161, 3311, 13605, 741, 9278, 4236, 4229, 2053, 13605, 13970, 7999, 29963, 29962, 1042, 1495, 13, 1678, 396, 14770, 29889, 29891, 1643, 29898, 29878, 29915, 23573, 284, 779, 13605, 13970, 29913, 29896, 29900, 3426, 29906, 29947, 15379, 29879, 3426, 29896, 1012, 13605, 29912, 29962, 1042, 1495, 13, 1678, 396, 14770, 29889, 26172, 29898, 2029, 2433, 13609, 1492, 742, 4079, 2311, 29922, 29896, 29900, 29892, 3611, 29922, 29878, 29915, 4535, 5268, 323, 3187, 4161, 29938, 742, 3611, 29918, 5657, 2311, 29922, 29896, 29900, 29897, 13, 1678, 396, 14770, 29889, 7620, 1003, 877, 26762, 29914, 524, 29918, 535, 369, 10238, 29889, 5140, 1495, 13, 13, 13, 1678, 515, 22889, 1053, 260, 6541, 13, 1678, 515, 4560, 2272, 29889, 1639, 3733, 403, 1053, 1006, 29886, 29896, 29881, 13, 1678, 758, 19790, 353, 4046, 29918, 29886, 999, 7168, 580, 13, 1678, 10160, 353, 29871, 29896, 29889, 29947, 29955, 29896, 29953, 29953, 29900, 29900, 29929, 29953, 29945, 29929, 29896, 29941, 29947, 29953, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29953, 29897, 13, 1678, 10160, 353, 29871, 29906, 29889, 29900, 29953, 29896, 29946, 29896, 29947, 29955, 29953, 29906, 29947, 29953, 29900, 29945, 29945, 29929, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29955, 29897, 13, 1678, 10160, 353, 29871, 29945, 29889, 29947, 29953, 29941, 29900, 29955, 29955, 29900, 29896, 29945, 29896, 29906, 29955, 29929, 29906, 29929, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29947, 29897, 13, 1678, 634, 29874, 29918, 14146, 284, 353, 29871, 29945, 29889, 29947, 29953, 29941, 29900, 29953, 29946, 29955, 29929, 29955, 29946, 29929, 29900, 29906, 29900, 29906, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29947, 29889, 29900, 29897, 396, 679, 29918, 14146, 284, 29918, 29894, 29906, 877, 1187, 1495, 13, 1678, 282, 291, 29918, 14146, 284, 353, 29871, 29955, 29889, 29896, 29929, 29900, 29929, 29947, 29955, 29953, 29929, 29896, 29941, 29947, 29947, 29906, 29945, 29896, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29955, 29889, 29900, 29897, 396, 679, 29918, 14146, 284, 29918, 29894, 29906, 877, 29886, 291, 1495, 13, 1678, 634, 29874, 29918, 5563, 353, 758, 19790, 29930, 9302, 29889, 13519, 29898, 1187, 29918, 14146, 284, 29892, 448, 29896, 29889, 29900, 29897, 13, 1678, 282, 291, 29918, 5563, 353, 758, 19790, 29930, 9302, 29889, 13519, 29898, 29886, 291, 29918, 14146, 284, 29892, 448, 29896, 29889, 29900, 29897, 13, 1678, 365, 29999, 29918, 4519, 1783, 1955, 353, 313, 29941, 29889, 29941, 29906, 29896, 29955, 29945, 29946, 29946, 29896, 29947, 29945, 29941, 29955, 29955, 29953, 29946, 29941, 29872, 29899, 29946, 29955, 29914, 29896, 29955, 29945, 29955, 29889, 29929, 29906, 29941, 29953, 29896, 29941, 29929, 29945, 29947, 29953, 29929, 29896, 29906, 6802, 29898, 29947, 29889, 29941, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29946, 29929, 876, 13, 13, 1678, 282, 291, 29918, 2780, 353, 16321, 29900, 29896, 29906, 29929, 29945, 29943, 29915, 13, 1678, 282, 291, 29918, 2780, 353, 16321, 29906, 29929, 2882, 29947, 29955, 29915, 13, 1678, 634, 29874, 29918, 2780, 353, 16321, 29928, 29947, 29896, 29896, 29945, 29929, 29915, 13, 1678, 926, 13111, 586, 29918, 2780, 353, 16321, 4198, 29947, 29945, 29896, 29946, 29915, 13, 13, 13, 1678, 396, 2159, 353, 29871, 29896, 29900, 29900, 13, 1678, 396, 269, 2934, 2378, 353, 7442, 29889, 1188, 3493, 6278, 29941, 29946, 29889, 29900, 29892, 448, 29906, 29947, 29889, 29900, 29892, 2159, 29897, 13, 1678, 396, 402, 4801, 2749, 353, 7442, 29889, 1359, 877, 29954, 4801, 2749, 29889, 29876, 2272, 1495, 13, 1678, 396, 269, 2934, 2378, 353, 7442, 29889, 4397, 29898, 9302, 29889, 1188, 3493, 6278, 29946, 29900, 29889, 29900, 29892, 448, 29941, 29946, 29889, 29900, 29892, 2159, 29897, 7503, 29899, 29896, 1402, 269, 2934, 2378, 29897, 13, 1678, 396, 402, 4801, 2749, 353, 7442, 29889, 4397, 29898, 9302, 29889, 8159, 29898, 2311, 448, 29871, 29896, 29892, 402, 4801, 2749, 29961, 29900, 11724, 402, 4801, 2749, 29897, 13, 1678, 396, 13, 1678, 396, 402, 4801, 25394, 353, 1006, 29886, 29896, 29881, 29898, 3754, 2378, 29892, 402, 4801, 2749, 29892, 2924, 2433, 29879, 10660, 1495, 13, 13, 13, 1678, 396, 402, 4801, 25394, 353, 679, 29918, 29954, 4801, 29918, 9202, 580, 13, 1678, 396, 350, 353, 7442, 29889, 2378, 4197, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29946, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29955, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29947, 29889, 29900, 29897, 2314, 13, 1678, 396, 11073, 353, 7442, 29889, 2378, 4197, 29878, 13090, 29896, 29900, 3426, 29906, 1042, 742, 364, 13090, 29896, 29900, 3426, 29946, 1042, 742, 364, 13090, 29896, 29900, 3426, 29953, 1042, 742, 364, 13090, 29896, 29900, 3426, 29955, 1042, 742, 364, 13090, 29896, 29900, 3426, 29947, 1042, 11287, 13, 1678, 396, 317, 353, 7442, 29889, 1188, 3493, 6278, 29941, 29945, 29889, 29900, 29892, 448, 29906, 29947, 29889, 29900, 29897, 13, 1678, 396, 22645, 353, 29871, 29900, 13, 1678, 396, 363, 1506, 297, 350, 29901, 13, 1678, 396, 268, 14770, 29889, 1188, 1188, 29898, 29903, 29892, 317, 29930, 29954, 4801, 25394, 29898, 29903, 11877, 1182, 29892, 3858, 29922, 21134, 29961, 13140, 2314, 13, 1678, 396, 268, 22645, 4619, 29871, 29896, 13, 1678, 396, 14770, 29889, 5317, 4197, 29903, 29961, 29900, 1402, 317, 14352, 29896, 20526, 518, 1187, 29918, 5563, 29892, 634, 29874, 29918, 5563, 1402, 525, 29895, 489, 1495, 13, 1678, 396, 14770, 29889, 5317, 4197, 29903, 29961, 29900, 1402, 317, 14352, 29896, 20526, 518, 29886, 291, 29918, 5563, 29892, 282, 291, 29918, 5563, 1402, 525, 29895, 489, 1495, 13, 1678, 396, 14770, 29889, 726, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29946, 29889, 29947, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29900, 29889, 29941, 511, 525, 29923, 941, 2379, 1314, 742, 4079, 2311, 29922, 29947, 29897, 13, 1678, 396, 14770, 29889, 726, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29946, 29889, 29906, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29896, 29889, 29946, 511, 525, 29925, 291, 2379, 1314, 742, 4079, 2311, 29922, 29947, 29897, 13, 1678, 396, 14770, 29889, 3257, 877, 29931, 326, 1169, 363, 1422, 5443, 292, 364, 2219, 359, 1495, 13, 1678, 396, 14770, 29889, 26172, 29898, 5657, 2311, 29922, 29929, 29892, 3611, 29922, 29878, 29915, 4535, 13605, 29912, 15176, 4678, 1187, 320, 5211, 320, 4161, 29905, 4161, 1262, 742, 3611, 29918, 5657, 2311, 29922, 29929, 29892, 3515, 265, 29922, 5574, 29892, 19231, 1884, 29922, 5574, 29897, 13, 1678, 396, 14770, 29889, 29916, 1643, 29898, 29878, 29915, 4535, 3754, 3187, 4161, 3311, 13605, 741, 25649, 22717, 4229, 2053, 13605, 13970, 4912, 2137, 29906, 29905, 13605, 29912, 29962, 1042, 1495, 13, 1678, 396, 14770, 29889, 29891, 1643, 29898, 29878, 29915, 4535, 3754, 3187, 4161, 3311, 13605, 741, 25649, 22717, 930, 402, 1194, 3754, 3187, 4161, 3311, 13605, 741, 25649, 22717, 930, 2144, 13605, 29912, 15176, 4678, 1187, 320, 5211, 320, 4161, 29905, 4161, 1262, 1495, 13, 1678, 396, 14770, 29889, 7620, 1003, 877, 26762, 29914, 29887, 4801, 1182, 29879, 29889, 5140, 1495, 13, 13, 13, 1678, 402, 4801, 25394, 353, 679, 29918, 29954, 4801, 29918, 9202, 580, 13, 1678, 301, 29893, 353, 29871, 29896, 29889, 29900, 13, 1678, 15595, 353, 29871, 29900, 29889, 29941, 13, 1678, 926, 13111, 586, 29918, 3332, 353, 29871, 29906, 29889, 29946, 29896, 29896, 29941, 29946, 29945, 29872, 29899, 29906, 29947, 13, 1678, 926, 13111, 586, 29918, 677, 353, 29871, 29896, 29889, 29945, 29946, 29941, 29946, 29896, 29947, 29872, 29899, 29941, 29896, 13, 13, 1678, 14770, 29889, 4532, 580, 13, 1678, 14770, 29889, 5317, 4197, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29900, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29889, 29900, 29897, 1402, 518, 1066, 13111, 586, 29918, 3332, 29892, 926, 13111, 586, 29918, 3332, 1402, 274, 29922, 1066, 13111, 586, 29918, 2780, 29892, 3858, 29922, 29878, 29915, 29923, 4230, 293, 15600, 23560, 742, 301, 29893, 29922, 29880, 29893, 29897, 13, 1678, 14770, 29889, 5317, 4197, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29900, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29889, 29900, 29897, 1402, 518, 1066, 13111, 586, 29918, 677, 29892, 926, 13111, 586, 29918, 677, 1402, 274, 29922, 1066, 13111, 586, 29918, 2780, 29892, 301, 29893, 29922, 29880, 29893, 29897, 13, 1678, 14770, 29889, 5589, 4197, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29900, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29900, 29889, 29900, 29897, 1402, 518, 1066, 13111, 586, 29918, 677, 29892, 926, 13111, 586, 29918, 677, 29892, 926, 13111, 586, 29918, 3332, 29892, 926, 13111, 586, 29918, 3332, 1402, 7636, 2780, 29922, 1066, 13111, 586, 29918, 2780, 29892, 3700, 2780, 29922, 1066, 13111, 586, 29918, 2780, 29892, 15595, 29922, 2312, 29892, 1196, 2103, 29922, 29900, 29889, 29900, 511, 396, 5589, 29922, 8824, 29892, 298, 905, 29922, 29906, 29930, 29915, 458, 1495, 13, 1678, 350, 29892, 317, 353, 7442, 29889, 4467, 29882, 7720, 29898, 9302, 29889, 1188, 3493, 6278, 29929, 29889, 29900, 29892, 7442, 29889, 1188, 29896, 29900, 29898, 29945, 29930, 29896, 29900, 1068, 6278, 29906, 8243, 29871, 29896, 29900, 29900, 29900, 29900, 511, 7442, 29889, 1188, 3493, 6278, 29941, 29947, 29889, 29900, 29892, 448, 29906, 29947, 29889, 29900, 29892, 29871, 29896, 29900, 29900, 29900, 29900, 876, 13, 1678, 315, 353, 317, 29930, 29954, 4801, 25394, 29898, 29903, 11877, 29933, 13, 1678, 21107, 353, 14770, 29889, 1285, 473, 29898, 29933, 29892, 317, 29892, 315, 29892, 11174, 11759, 1187, 29918, 5563, 1402, 11955, 11759, 1187, 29918, 2780, 1402, 1196, 2103, 29879, 29922, 29900, 29889, 29900, 29897, 13, 1678, 14770, 29889, 1285, 473, 29898, 29933, 29892, 317, 29892, 315, 29892, 11174, 11759, 1187, 29918, 5563, 29930, 29931, 29999, 29918, 4519, 1783, 1955, 1402, 11955, 11759, 1187, 29918, 2780, 1402, 1196, 2103, 29879, 29922, 29896, 29889, 29900, 29892, 6276, 342, 5577, 2433, 489, 1495, 13, 1678, 1506, 29892, 4365, 353, 21107, 29889, 497, 344, 3174, 29961, 29900, 3816, 29900, 1822, 29911, 13, 1678, 14770, 29889, 5589, 29898, 1182, 29892, 4365, 29892, 7636, 2780, 2433, 29895, 742, 3700, 2780, 29922, 1187, 29918, 2780, 29892, 15595, 29922, 2312, 29892, 1196, 2103, 29922, 29900, 29889, 29900, 29897, 13, 13, 1678, 14770, 29889, 5317, 29898, 1182, 29892, 4365, 29892, 274, 29922, 1187, 29918, 2780, 29892, 301, 29893, 29922, 29880, 29893, 29892, 3858, 29922, 29878, 29915, 797, 295, 6288, 15600, 23560, 20430, 1187, 10931, 1495, 13, 1678, 396, 572, 29873, 29889, 5317, 4197, 1182, 29961, 29896, 1402, 1506, 14352, 29896, 20526, 518, 18816, 29961, 29896, 1402, 4365, 14352, 29896, 20526, 274, 29922, 1187, 29918, 2780, 29892, 301, 29893, 29922, 29896, 29889, 29900, 29897, 13, 13, 1678, 350, 29892, 317, 353, 7442, 29889, 4467, 29882, 7720, 29898, 9302, 29889, 1188, 3493, 6278, 29896, 29900, 29889, 29900, 29892, 7442, 29889, 1188, 29896, 29900, 29898, 29953, 29930, 29896, 29900, 1068, 6278, 29946, 8243, 29871, 29896, 29900, 29900, 29900, 29900, 511, 7442, 29889, 1188, 3493, 6278, 29941, 29947, 29889, 29900, 29892, 448, 29906, 29947, 29889, 29900, 29892, 29871, 29896, 29900, 29900, 29900, 29900, 876, 13, 1678, 315, 353, 317, 29930, 29954, 4801, 25394, 29898, 29903, 11877, 29933, 13, 1678, 21107, 353, 14770, 29889, 1285, 473, 29898, 29933, 29892, 317, 29892, 315, 29892, 11174, 11759, 29886, 291, 29918, 5563, 1402, 11955, 11759, 29886, 291, 29918, 2780, 1402, 1196, 2103, 29879, 29922, 29900, 29889, 29900, 29897, 13, 1678, 1506, 29892, 4365, 353, 21107, 29889, 497, 344, 3174, 29961, 29900, 3816, 29900, 1822, 29911, 13, 1678, 14770, 29889, 5589, 29898, 1182, 29892, 4365, 29892, 7636, 2780, 2433, 29895, 742, 3700, 2780, 29922, 29886, 291, 29918, 2780, 29892, 15595, 29922, 2312, 29892, 1196, 2103, 29922, 29900, 29889, 29900, 29897, 13, 13, 1678, 14770, 29889, 5317, 29898, 1182, 29892, 4365, 29892, 274, 29922, 29886, 291, 29918, 2780, 29892, 301, 29893, 29922, 29880, 29893, 29892, 3858, 29922, 29878, 29915, 797, 295, 6288, 15600, 23560, 20430, 1631, 10931, 1495, 13, 1678, 14770, 29889, 5317, 4197, 1182, 29961, 29896, 1402, 1506, 14352, 29896, 20526, 518, 18816, 29961, 29896, 1402, 4365, 14352, 29896, 20526, 274, 29922, 29886, 291, 29918, 2780, 29892, 301, 29893, 29922, 29880, 29893, 29897, 13, 13, 1678, 21107, 353, 14770, 29889, 1285, 473, 29898, 29933, 29892, 317, 29892, 315, 29892, 11174, 11759, 29886, 291, 29918, 5563, 29930, 29931, 29999, 29918, 4519, 1783, 1955, 1402, 11955, 11759, 29886, 291, 29918, 2780, 1402, 1196, 2103, 29879, 29922, 29900, 29889, 29900, 29897, 13, 1678, 1506, 29892, 4365, 353, 21107, 29889, 497, 344, 3174, 29961, 29900, 3816, 29900, 1822, 29911, 13, 1678, 396, 572, 29873, 29889, 5589, 29898, 1182, 29892, 4365, 29892, 7636, 2780, 2433, 29895, 742, 3700, 2780, 29922, 29886, 291, 29918, 2780, 29892, 15595, 29922, 2312, 29892, 1196, 2103, 29922, 29900, 29889, 29900, 29897, 13, 13, 1678, 14770, 29889, 5317, 29898, 1182, 29892, 4365, 29892, 274, 29922, 29886, 291, 29918, 2780, 29892, 301, 29893, 29922, 29880, 29893, 29892, 19375, 2433, 489, 1495, 13, 1678, 14770, 29889, 5317, 4197, 1182, 29961, 29896, 1402, 1506, 14352, 29896, 20526, 518, 18816, 29961, 29896, 1402, 4365, 14352, 29896, 20526, 274, 29922, 29886, 291, 29918, 2780, 29892, 301, 29893, 29922, 29880, 29893, 29892, 19375, 2433, 489, 1495, 13, 13, 1678, 14770, 29889, 29916, 1643, 29898, 29878, 29915, 4535, 3141, 29912, 15176, 2119, 29924, 320, 5211, 1060, 29905, 4161, 29905, 4161, 1262, 1495, 13, 1678, 14770, 29889, 29891, 1643, 29898, 29878, 29915, 4535, 3754, 3187, 4161, 3311, 3141, 741, 25649, 22717, 4229, 2053, 3141, 13970, 4912, 2137, 29906, 29905, 3141, 29912, 29962, 1042, 1495, 13, 1678, 396, 572, 29873, 29889, 3257, 29898, 29878, 29915, 1252, 10085, 9628, 1169, 1495, 13, 1678, 14770, 29889, 29887, 1113, 2141, 842, 29918, 29916, 7052, 877, 1188, 1495, 13, 1678, 14770, 29889, 29887, 1113, 2141, 842, 29918, 952, 29883, 744, 877, 1188, 1495, 13, 1678, 4853, 353, 14770, 29889, 29887, 1113, 580, 13, 1678, 4853, 29889, 29916, 8990, 29889, 842, 29918, 21355, 29918, 2029, 1061, 29898, 29873, 6541, 29889, 3403, 3524, 1061, 29898, 1949, 29873, 7358, 29922, 29953, 876, 13, 1678, 4853, 29889, 24667, 29918, 7529, 29898, 4716, 2433, 1195, 272, 742, 3309, 29922, 29946, 29897, 13, 1678, 14770, 29889, 26172, 29898, 5657, 2311, 29922, 29896, 29946, 29892, 1180, 2433, 13609, 2175, 1495, 13, 1678, 27815, 353, 14770, 29889, 8990, 580, 13, 1678, 14770, 29889, 8990, 4197, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29896, 29900, 29889, 29900, 511, 29871, 29945, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29955, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29955, 29897, 2314, 13, 1678, 4079, 2311, 353, 29871, 29896, 29906, 13, 1678, 14770, 29889, 726, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29953, 29889, 29941, 29945, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29947, 29889, 29947, 29945, 511, 525, 29990, 1430, 1164, 29896, 29911, 742, 2927, 29922, 1187, 29918, 2780, 29892, 4079, 2311, 29922, 5657, 2311, 29892, 13733, 10457, 29946, 29941, 29889, 29900, 29897, 13, 1678, 14770, 29889, 726, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29889, 29896, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29946, 29889, 29906, 511, 525, 29931, 29999, 742, 2927, 29922, 1187, 29918, 2780, 29892, 4079, 2311, 29922, 5657, 2311, 29892, 13733, 10457, 29946, 29896, 29889, 29900, 29897, 13, 1678, 14770, 29889, 726, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29955, 29889, 29946, 29945, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29906, 29947, 29889, 29947, 29945, 511, 525, 29990, 1430, 1164, 29896, 29911, 742, 2927, 29922, 29886, 291, 29918, 2780, 29892, 4079, 2311, 29922, 5657, 2311, 29892, 13733, 10457, 29946, 29941, 29889, 29900, 29897, 13, 1678, 14770, 29889, 726, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29947, 29889, 29900, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29900, 29889, 29896, 29945, 511, 525, 29931, 29999, 742, 2927, 29922, 29886, 291, 29918, 2780, 29892, 4079, 2311, 29922, 5657, 2311, 29892, 13733, 10457, 29946, 29955, 29889, 29900, 29897, 13, 1678, 14770, 29889, 726, 29898, 29896, 29889, 29896, 29930, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29929, 29889, 29947, 29945, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29900, 29889, 29955, 29941, 511, 525, 29990, 1430, 1164, 29896, 29911, 742, 2927, 29922, 1066, 13111, 586, 29918, 2780, 29892, 4079, 2311, 29922, 5657, 2311, 29892, 13733, 29922, 29900, 29889, 29900, 29897, 13, 1678, 14770, 29889, 726, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29929, 29889, 29945, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29941, 29889, 29929, 511, 364, 13090, 29885, 3187, 4161, 353, 29871, 29896, 15013, 3141, 29912, 6816, 29963, 1042, 1495, 13, 1678, 14770, 29889, 726, 29898, 9302, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29929, 29889, 29945, 511, 7442, 29889, 13519, 29898, 29896, 29900, 29889, 29900, 29892, 448, 29941, 29946, 29889, 29946, 511, 364, 13090, 29885, 1665, 3141, 29912, 2168, 930, 353, 29871, 29896, 29900, 15013, 3141, 29912, 6816, 29963, 1042, 1495, 13, 1678, 14770, 29889, 7620, 1003, 877, 26762, 29914, 13400, 29918, 1217, 29918, 3257, 29889, 5140, 1495, 13, 2 ]
Firmware/Py Scripts/smartmeshsdk-master/libs/SmartMeshSDK/protocols/xivelyConnector/xivelyConnector.py
ECE-412-Capstone-Sensor-Suite/Team-20-Sensor-Suite
2
135401
#!/usr/bin/python import logging class NullHandler(logging.Handler): def emit(self, record): pass log = logging.getLogger('xivelyConnector') log.setLevel(logging.ERROR) log.addHandler(NullHandler()) import json import threading import socket import traceback import re import time import copy import httplib from SmartMeshSDK.utils import FormatUtils #============================ exceptions ====================================== class xivelyError(Exception): pass class xivelyRateError(xivelyError): pass class xivelyTimeoutError(xivelyError): pass #============================ helpers ========================================= class xivelyStats(object): RATE_WINDOW_MIN = 3 SOCKET_TX = 'SOCKET_TX' SOCKET_TX_OK = 'SOCKET_TX_OK' SOCKET_TX_TIMEOUT = 'SOCKET_TX_TIMEOUT' SOCKET_RX = 'SOCKET_RX' HTTP_TX = 'HTTP_TX' HTTP_TX_OK = 'HTTP_TX_OK' HTTP_TX_RATELIMIT = 'HTTP_TX_RATELIMIT' HTTP_TX_ERROR = 'HTTP_TX_ERROR' #======================== singleton pattern =============================== _instance = None _init = False def __new__(cls, *args, **kwargs): if not cls._instance: log.info("Creating xivelyStats instance") cls._instance = super(xivelyStats, cls).__new__(cls, *args, **kwargs) return cls._instance #======================== init ============================================ def __init__(self): # don't re-initialize an instance (needed because singleton) if self._init: return self._init = True # store params # local variables self.dataLock = threading.RLock() self.reset() #======================== public ========================================== def increment(self,statName): with self.dataLock: if statName not in self.stats: self.stats[statName] = 0 self.stats[statName] += 1 if statName in [self.SOCKET_TX,self.SOCKET_RX,self.HTTP_TX]: self.numTransactions += 1 self.rateBuf += [time.time()] self._cleanupRateBuf() if statName in [self.HTTP_TX_RATELIMIT]: try: self.rateBuf.pop() except IndexError: pass def getNumTransactions(self): with self.dataLock: return self.numTransactions def getRate(self): with self.dataLock: self._cleanupRateBuf() return len(self.rateBuf)/float(self.RATE_WINDOW_MIN) def getStats(self): with self.dataLock: return copy.deepcopy(self.stats) def reset(self): with self.dataLock: self.numTransactions = 0 self.rateBuf = [] self.stats = {} #======================== private ========================================= def _cleanupRateBuf(self): now = time.time() with self.dataLock: while self.rateBuf and (self.rateBuf[0]<(now-self.RATE_WINDOW_MIN*60)): self.rateBuf.pop(0) class xivelySubscriber(threading.Thread): XIVELY_SOCKETSERVER_HOST = 'api.xively.com' XIVELY_SOCKETSERVER_PORT = 8081 XIVELY_SUBSCRIPTION_TIMEOUT = 10 XIVELY_KEEPALIVE_TIMEOUT = (30*60) # in s #======================== thread ========================================== def __init__(self): # store params # local variables self.dataLock = threading.Lock() self.stats = xivelyStats() self.keepaliveTimer = None self.subscriptions = {} self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) self.socket.connect( ( self.XIVELY_SOCKETSERVER_HOST, self.XIVELY_SOCKETSERVER_PORT, ) ) # reset keepalive timer self._resetKeepaliveTimer() # initialize parent threading.Thread.__init__(self) self.name = 'xivelySubscriber' # log log.info("creating {0} instance".format(self.name)) # start myself self.start() def run(self): # log log.info("{0} thread starts".format(self.name)) try: while True: # read from socket try: dataRaw = self.socket.recv(1024) except socket.error: # log log.info('Stopping thread {0}, error when reading socket'.format(self.name)) # stop thread return if not dataRaw: # log log.info('Stopping thread {0}, error no data received'.format(self.name)) # stop thread return # update stats self.stats.increment(xivelyStats.SOCKET_RX) # reset keepalive timer self._resetKeepaliveTimer() # convert to JSON data = json.loads(dataRaw) # log if log.isEnabledFor(logging.DEBUG): output = [] output += ['xivelySubscriber received data: {0}'.format(data)] output = '\n'.join(output) log.debug(output) # no 'resource' field in data when sending keepalive if not 'resource' in data: continue # retrieve feedId and datastream m = re.search('/feeds/(\S+)/datastreams/(\S+)', data['resource']) feedId = int(m.group(1)) datastream = str(m.group(2)) if sorted(data.keys())==sorted(['status','resource']): # this is a reply to a subscribe/unsubscribe command # release subscriptionEvent if data['status']==200: with self.dataLock: self.subscriptions[(feedId,datastream)]['subscriptionEvent'].set() else: log.warning("received response code {0} for subscription/unsubscription".format( data['status'] ) ) elif sorted(data.keys())==sorted(['body','resource']): # this is a new data notification # get the mac and callback with self.dataLock: mac = self.subscriptions[(feedId,datastream)]['mac'] callback = self.subscriptions[(feedId,datastream)]['callback'] # retrieve value if 'current_value' in data['body']: value = str(data['body']['current_value']) try: value = int(value) except Exception as err: try: value = float(value) except Exception: pass # call the callback try: callback( mac = mac, datastream = datastream, value = value, ) except: output = [] output += ['exception when calling callback for mac={0} datastream={1}'.format(mac,datastream)] output += ['\nerror:\n'] output += [type(err)] output += [str(err)] output += ['\ncall stack:\n'] output += [traceback.format_exc()] output = '\n'.join(output) log.error(output) except Exception as err: output = [] output += ['===== crash in thread {0} ====='.format(self.name)] output += ['\nerror:\n'] output += [str(type(err))] output += [str(err)] output += ['\ncall stack:\n'] output += [traceback.format_exc()] output = '\n'.join(output) print output # critical error log.critical(output) raise #======================== public ========================================== def subscribe(self,apiKey,mac,feedId,datastream,callback): # log log.info( " subscribing to {0}/{1}".format( FormatUtils.formatMacString(mac), datastream, ) ) # validate params with self.dataLock: if (feedId,datastream) in self.subscriptions: raise ValueError("Subscription to {0}:{1} already exists".format(feedId,datastream)) # add to subscriptions event = threading.Event() with self.dataLock: self.subscriptions[(feedId,datastream)] = { 'mac': mac, 'subscriptionEvent': threading.Event(), 'callback': callback, } # prepare method = 'subscribe' resource = '/feeds/{0}/datastreams/{1}'.format(feedId,datastream) headers = { 'X-ApiKey' : apiKey, } # log if log.isEnabledFor(logging.DEBUG): output = [] output += ['{0} send:'.format(self.name)] output += ['- method : {0}'.format(method)] output += ['- resource : {0}'.format(resource)] output += ['- headers : {0}'.format(headers)] output = '\n'.join(output) log.debug(output) # send self.socket.send( json.dumps( { 'method' : method, 'resource' : resource, 'headers' : headers, } ) ) # update stats self.stats.increment(xivelyStats.SOCKET_TX) # reset keepalive timer self._resetKeepaliveTimer() # wait for reply if not self.subscriptions[(feedId,datastream)]['subscriptionEvent'].wait( self.XIVELY_SUBSCRIPTION_TIMEOUT ): # timeout # update stats self.stats.increment(xivelyStats.SOCKET_TX_TIMEOUT) # subscription failed, delete from subscriptions del self.subscriptions[(feedId,datastream)] # raise error raise xivelyTimeoutError("timeout to subscribe to {0}:{1}".format(feedId,datastream)) else: # update stats self.stats.increment(xivelyStats.SOCKET_TX_OK) # log log.info( "successfully subscribed to {0}/{1}".format( FormatUtils.formatMacString(mac), datastream, ) ) # remove subscriptionEvent with self.dataLock: self.subscriptions[(feedId,datastream)]['subscriptionEvent'] = None def unsubscribe(self,apiKey,mac,feedId,datastream): # log log.info("unsubscribing from {0}/{1}".format( FormatUtils.formatMacString(mac), datastream, ) ) # validate params with self.dataLock: if (feedId,datastream) not in self.subscriptions: raise ValueError("No active subscription to {0}:{1}".format(feedId,datastream)) if self.subscriptions[(feedId,datastream)]['subscriptionEvent']: raise SystemError("Ongoing subscription/unsubscription process to {0}:{1}".format(feedId,datastream)) # add to event subscriptions with self.dataLock: self.subscriptions[(feedId,datastream)]['subscriptionEvent'] = threading.Event() # send self.socket.send( json.dumps( { 'method' : 'unsubscribe', 'resource' : '/feeds/{0}/datastreams/{1}'.format(feedId,datastream), 'headers' : { 'X-ApiKey' : apiKey, }, } ) ) # update stats self.stats.increment(xivelyStats.SOCKET_TX) # reset keepalive timer self._resetKeepaliveTimer() # wait for reply if not self.subscriptions[(feedId,datastream)]['subscriptionEvent'].wait( self.XIVELY_SUBSCRIPTION_TIMEOUT ): # timeout # remove subscriptionEvent with self.dataLock: self.subscriptions[(feedId,datastream)]['subscriptionEvent'] = None # update stats self.stats.increment(xivelyStats.SOCKET_TX_TIMEOUT) # raise error raise xivelyTimeoutError("timeout to unsubscribe from {0}:{1}".format(feedId,datastream)) else: # successful reply received # update stats self.stats.increment(xivelyStats.SOCKET_TX_OK) # unsubscription succeeded, delele from subscriptions del self.subscriptions[(feedId,datastream)] def close(self): # log log.info("closing {0}".format(self.name)) # cancel the keepalive timer if self.keepaliveTimer: self.keepaliveTimer.cancel() # shut down the socket. Will cause self.socket.recv() to return ''. self.socket.shutdown(socket.SHUT_RDWR) #======================== private ========================================= def _resetKeepaliveTimer(self): if self.keepaliveTimer: self.keepaliveTimer.cancel() self.keepaliveTimer = threading.Timer(self.XIVELY_KEEPALIVE_TIMEOUT, self._keepalive) self.keepaliveTimer.start() def _keepalive(self): # log if log.isEnabledFor(logging.DEBUG): log.debug("sending TCP keepalive to Xively") # send dummy data over TCP socket to force TCP to stay open try: self.socket.send('keepalive') except Exception as err: # log log.error( "Error while sending keepalive to Xively: [{0}] {1}".format( type(err), err, ) ) # close self.close() else: # reset keepalive timer self._resetKeepaliveTimer() class xivelyClient(object): XIVELY_HOST = 'api.xively.com' XIVELY_BASE_URL = '/v2/' XIVELY_HTTP_TIMEOUT_S = 10.0 def __init__(self,apiKey): # store params self.apiKey = apiKey self.stats = xivelyStats() #======================== public ========================================== def get(self,url,body=''): return self._request( method = 'GET', url = url, body = body, ) def post(self,url,body=''): return self._request( method = 'POST', url = url, body = body, ) def put(self,url,body=''): return self._request( method = 'PUT', url = url, body = body, ) def delete(self,url,body=''): return self._request( method = 'DELETE', url = url, body = body, ) #======================== private ========================================= def _request(self,method,url,body): # create connection to Xively server connection = httplib.HTTPSConnection( host = self.XIVELY_HOST, timeout = self.XIVELY_HTTP_TIMEOUT_S, ) # send the request try: args = { 'method': method, 'url': self.XIVELY_BASE_URL+url, 'headers': { 'X-ApiKey': self.apiKey, 'Content-Type': 'application/json', }, } if body: args['body'] = json.dumps(body) # log if log.isEnabledFor(logging.DEBUG): output = [] output += ['_request() called with:'] for (k,v) in args.items(): output += ['- {0:<20}: {1}'.format(k,v)] output = '\n'.join(output) log.debug(output) # send the request connection.request(**args) # update stats self.stats.increment(xivelyStats.HTTP_TX) # parse response response = connection.getresponse() responseBody = response.readUI().strip() if responseBody: responseBody = json.loads(responseBody) else: responseBody = None # log if log.isEnabledFor(logging.DEBUG): output = [] output += ['response:'] output += ['- status : {0}'.format(response.status)] output += ['- reason : {0}'.format(response.reason)] output += ['- body : {0}'.format(responseBody)] output = '\n'.join(output) log.debug(output) # raise returned error code if response.status not in [httplib.OK,httplib.CREATED]: output = '{0} {1} response.status={2}'.format( method, url, response.status, ) log.error(output) if response.status ==httplib.FORBIDDEN and responseBody['title']=='Rate too fast': # update stats self.stats.increment(xivelyStats.HTTP_TX_RATELIMIT) # raise raise xivelyRateError(output) else: # update stats self.stats.increment(xivelyStats.HTTP_TX_ERROR) # raise raise SystemError(output) # update stats self.stats.increment(xivelyStats.HTTP_TX_OK) return responseBody finally: # close the connection connection.close() class xivelyConnector(object): def __init__(self,apiKey,productName,productDesc): assert type(apiKey)==str assert type(productName)==str assert type(productDesc)==str # log log.info("Creating xivelyConnector instance") # store params self.apiKey = apiKey self.productName = productName self.productDesc = productDesc self.datastreams = {} # a cache on the datastreams currently on each device self.dataLock = threading.RLock() self.subscriber = None # local variables self.client = None self.product_id = None self.stats = xivelyStats() self.xivelyDevices = [] # connect self._connect() self.product_id = self.getProductId() self._retrieveXivelyDevices() #======================== public ========================================== def createDatastream(self,mac,datastream): ''' \brief Create a particular datastream on a device, or the one that already exists on Xively. \return The feed_id. ''' # log if log.isEnabledFor(logging.DEBUG): output = [] output += ['createDatastream() called with:'] output += ['- mac {0}'.format(mac)] output += ['- datastream {0}'.format(datastream)] output = '\n'.join(output) log.debug(output) if type(mac) in [tuple,list]: mac = FormatUtils.formatMacString(mac) assert self.product_id # retrieve device's information (create if needed) dev = None while dev is None: # get device, if exists with self.dataLock: for d in self.xivelyDevices: if d['serial']==mac: dev = d break # create mote if dev is None: # log log.info("Creating mote {0}".format(mac)) # create response = self.client.post( url = 'products/{0}/devices'.format( self.product_id, ), body = { 'devices': [ {"serial": mac} ] }, ) # update list of devices self._retrieveXivelyDevices() isActive = (dev['activated_at'] is not None) activation_code = dev['activation_code'] # activate mote if needed if not isActive: # log log.info("Activating mote {0}".format(mac)) # activate self.client.get( url = 'devices/{0}/activate'.format( activation_code, ), ) # update list of devices self._retrieveXivelyDevices() # get datastreams if mac not in self.datastreams: # log log.info(" retrieving datastreams of {0}".format(mac)) # retrieve response = self.client.get( url = 'feeds/{0}.json'.format( dev['feed_id'], ), ) if 'datastreams' in response: self.datastreams[mac] = [ds['id'] for ds in response['datastreams']] else: self.datastreams[mac] = [] # create datastream if datastream not in self.datastreams[mac]: # log log.info("Create datastream {0} on mote {1}".format( datastream, mac, ) ) # create self.client.put( url = 'feeds/{0}.json'.format( dev['feed_id'], ), body = { 'version': '1.0.0', 'datastreams': [ { 'id' : datastream, }, ] }, ) # cache self.datastreams[mac] += [datastream] return dev['feed_id'] def publish(self,mac,datastream,value): # log if log.isEnabledFor(logging.DEBUG): output = [] output += ['publish() called with:'] output += ['- mac {0}'.format(FormatUtils.formatMacString(mac))] output += ['- datastream {0}'.format(datastream)] output += ['- value {0}'.format(value)] output = '\n'.join(output) log.debug(output) # verify subscriber alive, if exists if self.subscriber: if not self.subscriber.isAlive(): self.subscriber = None raise SystemError("subscriber is not alive during publish()") # create the datastream (or retrieve feed_id if exists) feed_id = self.createDatastream(mac,datastream) # publish to datastream self.client.put( url = 'feeds/{0}.json'.format( feed_id, ), body = { 'version': '1.0.0', 'datastreams': [ { 'id' : datastream, 'current_value': value, }, ] }, ) # log if log.isEnabledFor(logging.DEBUG): output = [] output += ['published to Xively:'] output += ['- mac {0}'.format(FormatUtils.formatMacString(mac))] output += ['- datastream {0}'.format(datastream)] output += ['- value {0}'.format(value)] output = '\n'.join(output) log.debug(output) def subscribe(self,mac,datastream,callback): feedId = self.mac2feedId(mac) if not feedId: raise ValueError("unknown MAC {0}".format(mac)) # create subscriber if needed if not self.subscriber: self.subscriber = xivelySubscriber() # verify subscriber alive if not self.subscriber.isAlive(): self.subscriber = None raise SystemError("subscriber is not alive during subscribe()") # subscribe self.subscriber.subscribe(self.apiKey,mac,feedId,datastream,callback) def unsubscribe(self,mac,datastream): feedId = self.mac2feedId(mac) if not feedId: raise ValueError("unknown MAC {0}".format(mac)) if not self.subscriber: raise SystemError("no subscriber") # verify subscriber alive if not self.subscriber.isAlive(): self.subscriber = None raise SystemError("subscriber is not alive during subscribe()") # unsubscribe self.subscriber.unsubscribe(self.apiKey,mac,feedId,datastream) def mac2feedId(self,mac): if type(mac) in [tuple,list]: mac = FormatUtils.formatMacString(mac) returnVal = None with self.dataLock: for d in self.xivelyDevices: if d['serial']==mac: returnVal = d['feed_id'] break return returnVal def feedId2mac(self,feedId): returnVal = None with self.dataLock: for d in self.xivelyDevices: if d['feed_id']==feedId: returnVal = d['serial'] break return returnVal def getProductId(self): ''' \brief Retrieve the product ID. Creates product if necessary. ''' with self.dataLock: if self.product_id: return self.product_id # log if log.isEnabledFor(logging.DEBUG): output = [] output += ['Get productID for:'] output += ['- name: \"{0}\"'.format(self.productName)] output += ['- description: \"{0}\"'.format(self.productDesc)] output = '\n'.join(output) log.debug(output) product_id = None while product_id is None: # retrieve list of current products response = self.client.get( url = 'products.json', ) # retrieve product ID if exists for product in response['products']: if (product['name']==self.productName and product['description']==self.productDesc): if product_id: raise SystemError( "More than one product with name \"{0}\" and description \"{1}\"".format( self.productName, self.productDesc, ) ) product_id = product['product_id'] # create product if needed if product_id is None: # log log.info("Creating product") # create self.client.post( url = 'products', body = { 'product': { 'name': self.productName, 'description': self.productDesc, } } ) # log if log.isEnabledFor(logging.DEBUG): log.debug("product_id: \"{0}\"".format(product_id)) return product_id def deleteProduct(self): ''' \brief Deletes the product from Xively. \warning Calling this function will delete all the devices and associated data. ''' assert self.product_id # log log.info("Deleting product \"{0}\"".format(self.product_id)) # delete self.client.delete( url = 'products/{0}'.format( self.product_id, ), ) # record with self.dataLock: self.product_id = None self.xivelyDevices = [] def close(self): try: self.subscriber.close() except AttributeError: pass # happens when no subscriber self.subscriber = None #======================== private ========================================= def _connect(self): ''' \brief Connect to Xively. ''' # log log.info("Connecting to Xively service") # record with self.dataLock: self.client = xivelyClient(self.apiKey) def _retrieveXivelyDevices(self): ''' \brief Retrieve the list of devices currently on Xively. ''' assert self.product_id PER_PAGE = 10 # log if log.isEnabledFor(logging.DEBUG): log.debug("Retrieving devices") duplicates = True while duplicates: # gather all devices xivelyDevices = [] doneListing = False page = 1 while not doneListing: # get next devices response = self.client.get( url = 'products/{0}/devices?per_page={1}&page={2}'.format( self.product_id, PER_PAGE, page, ) ) # add to local devices xivelyDevices += response['devices'] # decide whether next if len(response['devices'])<PER_PAGE: doneListing=True else: page += 1 # make sure no duplicates serials = [d['serial'] for d in xivelyDevices] duplicateSerials = [s for s in serials if serials.count(s)>1] if duplicateSerials: duplicates = True else: duplicates = False # log if log.isEnabledFor(logging.DEBUG): output = [] output += ['Found {0} devices:'.format(len(xivelyDevices))] for d in xivelyDevices: output += ['- {0}'.format(d['serial'])] output = '\n'.join(output) log.debug(output) # record with self.dataLock: self.xivelyDevices = xivelyDevices
[ 1, 18787, 4855, 29914, 2109, 29914, 4691, 13, 13, 5215, 12183, 13, 1990, 19014, 4598, 29898, 21027, 29889, 4598, 1125, 13, 1678, 822, 20076, 29898, 1311, 29892, 2407, 1125, 13, 4706, 1209, 13, 1188, 353, 12183, 29889, 657, 16363, 877, 29916, 3598, 20971, 2801, 1495, 13, 1188, 29889, 842, 10108, 29898, 21027, 29889, 11432, 29897, 13, 1188, 29889, 1202, 4598, 29898, 7327, 4598, 3101, 13, 13, 5215, 4390, 13, 5215, 3244, 292, 13, 5215, 9909, 13, 5215, 9637, 1627, 13, 5215, 337, 13, 5215, 931, 13, 5215, 3509, 13, 13, 5215, 1732, 1982, 13, 13, 3166, 259, 4116, 442, 29924, 12094, 26912, 29889, 13239, 1678, 1053, 19191, 12177, 13, 13, 29937, 9166, 4936, 2751, 15283, 1275, 9166, 9166, 2751, 13, 13, 1990, 921, 3598, 2392, 29898, 2451, 1125, 13, 1678, 1209, 13, 1990, 921, 3598, 19907, 2392, 29898, 29916, 3598, 2392, 1125, 13, 1678, 1209, 13, 1990, 921, 3598, 10851, 2392, 29898, 29916, 3598, 2392, 1125, 13, 1678, 1209, 13, 13, 29937, 9166, 4936, 2751, 1371, 414, 1275, 9166, 9166, 2751, 25512, 13, 13, 1990, 921, 3598, 25060, 29898, 3318, 1125, 13, 268, 13, 1678, 390, 3040, 29918, 25152, 3970, 29956, 29918, 16173, 268, 353, 29871, 29941, 13, 268, 13, 1678, 7791, 7077, 2544, 29918, 28627, 965, 353, 525, 6156, 7077, 2544, 29918, 28627, 29915, 13, 1678, 7791, 7077, 2544, 29918, 28627, 29918, 8949, 4706, 353, 525, 6156, 7077, 2544, 29918, 28627, 29918, 8949, 29915, 13, 1678, 7791, 7077, 2544, 29918, 28627, 29918, 15307, 12015, 259, 353, 525, 6156, 7077, 2544, 29918, 28627, 29918, 15307, 12015, 29915, 13, 268, 13, 1678, 7791, 7077, 2544, 29918, 29934, 29990, 965, 353, 525, 6156, 7077, 2544, 29918, 29934, 29990, 29915, 13, 268, 13, 1678, 7331, 29918, 28627, 632, 353, 525, 10493, 29918, 28627, 29915, 13, 1678, 7331, 29918, 28627, 29918, 8949, 3986, 353, 525, 10493, 29918, 28627, 29918, 8949, 29915, 13, 1678, 7331, 29918, 28627, 29918, 29934, 3040, 5265, 26349, 259, 353, 525, 10493, 29918, 28627, 29918, 29934, 3040, 5265, 26349, 29915, 13, 1678, 7331, 29918, 28627, 29918, 11432, 539, 353, 525, 10493, 29918, 28627, 29918, 11432, 29915, 13, 268, 13, 1678, 396, 9166, 4936, 27130, 4766, 1275, 9166, 4936, 2751, 29922, 13, 268, 13, 1678, 903, 8758, 353, 6213, 13, 1678, 903, 2344, 268, 353, 7700, 13, 268, 13, 1678, 822, 4770, 1482, 12035, 25932, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 565, 451, 1067, 29879, 3032, 8758, 29901, 13, 9651, 1480, 29889, 3888, 703, 9832, 1218, 921, 3598, 25060, 2777, 1159, 13, 9651, 1067, 29879, 3032, 8758, 353, 2428, 29898, 29916, 3598, 25060, 29892, 1067, 29879, 467, 1649, 1482, 12035, 25932, 29892, 334, 5085, 29892, 3579, 19290, 29897, 13, 4706, 736, 1067, 29879, 3032, 8758, 13, 268, 13, 1678, 396, 9166, 4936, 2069, 1275, 9166, 9166, 4936, 1360, 13, 268, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 308, 13, 4706, 396, 1016, 29915, 29873, 337, 29899, 24926, 385, 2777, 313, 484, 19226, 1363, 27130, 29897, 13, 4706, 565, 1583, 3032, 2344, 29901, 13, 9651, 736, 13, 4706, 1583, 3032, 2344, 353, 5852, 13, 308, 13, 4706, 396, 3787, 8636, 13, 308, 13, 4706, 396, 1887, 3651, 13, 4706, 1583, 29889, 1272, 16542, 4706, 353, 3244, 292, 29889, 2241, 1698, 580, 13, 4706, 1583, 29889, 12071, 580, 13, 268, 13, 1678, 396, 9166, 4936, 970, 1275, 9166, 9166, 4936, 13, 268, 13, 1678, 822, 11924, 29898, 1311, 29892, 6112, 1170, 1125, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 632, 13, 9651, 565, 1002, 1170, 451, 297, 1583, 29889, 16202, 29901, 13, 18884, 1583, 29889, 16202, 29961, 6112, 1170, 29962, 259, 353, 29871, 29900, 13, 9651, 1583, 29889, 16202, 29961, 6112, 1170, 29962, 418, 4619, 29871, 29896, 13, 632, 13, 9651, 565, 1002, 1170, 297, 518, 1311, 29889, 6156, 7077, 2544, 29918, 28627, 29892, 1311, 29889, 6156, 7077, 2544, 29918, 29934, 29990, 29892, 1311, 29889, 10493, 29918, 28627, 5387, 13, 18884, 1583, 29889, 1949, 4300, 7387, 29871, 4619, 29871, 29896, 13, 18884, 1583, 29889, 10492, 29933, 1137, 3986, 4619, 518, 2230, 29889, 2230, 580, 29962, 13, 18884, 1583, 3032, 14941, 786, 19907, 29933, 1137, 580, 13, 632, 13, 9651, 565, 1002, 1170, 297, 518, 1311, 29889, 10493, 29918, 28627, 29918, 29934, 3040, 5265, 26349, 5387, 13, 18884, 1018, 29901, 13, 462, 1678, 1583, 29889, 10492, 29933, 1137, 29889, 7323, 580, 13, 18884, 5174, 11374, 2392, 29901, 13, 462, 1678, 1209, 13, 268, 13, 1678, 822, 679, 8009, 4300, 7387, 29898, 1311, 1125, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 736, 1583, 29889, 1949, 4300, 7387, 13, 268, 13, 1678, 822, 679, 19907, 29898, 1311, 1125, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 1583, 3032, 14941, 786, 19907, 29933, 1137, 580, 13, 9651, 736, 7431, 29898, 1311, 29889, 10492, 29933, 1137, 6802, 7411, 29898, 1311, 29889, 29934, 3040, 29918, 25152, 3970, 29956, 29918, 16173, 29897, 13, 268, 13, 1678, 822, 679, 25060, 29898, 1311, 1125, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 736, 3509, 29889, 24535, 8552, 29898, 1311, 29889, 16202, 29897, 13, 268, 13, 1678, 822, 10092, 29898, 1311, 1125, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 1583, 29889, 1949, 4300, 7387, 539, 353, 29871, 29900, 13, 9651, 1583, 29889, 10492, 29933, 1137, 1669, 353, 5159, 13, 9651, 1583, 29889, 16202, 462, 353, 6571, 13, 268, 13, 1678, 396, 9166, 4936, 2024, 1275, 9166, 9166, 2751, 25512, 13, 268, 13, 1678, 822, 903, 14941, 786, 19907, 29933, 1137, 29898, 1311, 1125, 13, 4706, 1286, 353, 931, 29889, 2230, 580, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 1550, 1583, 29889, 10492, 29933, 1137, 322, 313, 1311, 29889, 10492, 29933, 1137, 29961, 29900, 29962, 29966, 29898, 3707, 29899, 1311, 29889, 29934, 3040, 29918, 25152, 3970, 29956, 29918, 16173, 29930, 29953, 29900, 22164, 13, 18884, 1583, 29889, 10492, 29933, 1137, 29889, 7323, 29898, 29900, 29897, 13, 13, 1990, 921, 3598, 4035, 7588, 495, 29898, 7097, 292, 29889, 4899, 1125, 13, 268, 13, 1678, 17071, 6670, 29979, 29918, 6156, 7077, 2544, 18603, 29918, 20832, 418, 353, 525, 2754, 29889, 29916, 3598, 29889, 510, 29915, 13, 1678, 17071, 6670, 29979, 29918, 6156, 7077, 2544, 18603, 29918, 15082, 418, 353, 29871, 29947, 29900, 29947, 29896, 13, 1678, 17071, 6670, 29979, 29918, 20633, 7187, 24290, 2725, 29918, 15307, 12015, 259, 353, 29871, 29896, 29900, 13, 1678, 17071, 6670, 29979, 29918, 6059, 15488, 1964, 18474, 29918, 15307, 12015, 418, 353, 313, 29941, 29900, 29930, 29953, 29900, 29897, 396, 297, 269, 13, 268, 13, 1678, 396, 9166, 4936, 3244, 1275, 9166, 9166, 4936, 13, 268, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 308, 13, 4706, 396, 3787, 8636, 13, 308, 13, 4706, 396, 1887, 3651, 13, 4706, 1583, 29889, 1272, 16542, 632, 353, 3244, 292, 29889, 16542, 580, 13, 4706, 1583, 29889, 16202, 18884, 353, 921, 3598, 25060, 580, 13, 4706, 1583, 29889, 17462, 284, 573, 14745, 539, 353, 6213, 13, 4706, 1583, 29889, 1491, 7588, 1980, 4706, 353, 6571, 13, 4706, 1583, 29889, 11514, 1669, 353, 9909, 29889, 11514, 29898, 11514, 29889, 5098, 29918, 1177, 2544, 29892, 9909, 29889, 6156, 7077, 29918, 1254, 1525, 5194, 29897, 13, 4706, 1583, 29889, 11514, 29889, 842, 21852, 3670, 29898, 11514, 29889, 29903, 5607, 29918, 6156, 7077, 2544, 29892, 9909, 29889, 6156, 29918, 6059, 15488, 1964, 18474, 29892, 29871, 29896, 29897, 13, 4706, 1583, 29889, 11514, 29889, 6915, 29898, 13, 9651, 313, 13, 18884, 1583, 29889, 29990, 5667, 6670, 29979, 29918, 6156, 7077, 2544, 18603, 29918, 20832, 29892, 13, 18884, 1583, 29889, 29990, 5667, 6670, 29979, 29918, 6156, 7077, 2544, 18603, 29918, 15082, 29892, 13, 9651, 1723, 13, 4706, 1723, 13, 308, 13, 4706, 396, 10092, 3013, 284, 573, 12237, 13, 4706, 1583, 3032, 12071, 9598, 1022, 284, 573, 14745, 580, 13, 308, 13, 4706, 396, 11905, 3847, 13, 4706, 3244, 292, 29889, 4899, 17255, 2344, 12035, 1311, 29897, 13, 4706, 1583, 29889, 978, 462, 353, 525, 29916, 3598, 4035, 7588, 495, 29915, 13, 308, 13, 4706, 396, 1480, 13, 4706, 1480, 29889, 3888, 703, 1037, 1218, 426, 29900, 29913, 2777, 1642, 4830, 29898, 1311, 29889, 978, 876, 13, 308, 13, 4706, 396, 1369, 6142, 13, 4706, 1583, 29889, 2962, 580, 13, 268, 13, 1678, 822, 1065, 29898, 1311, 1125, 13, 308, 13, 4706, 396, 1480, 13, 4706, 1480, 29889, 3888, 703, 29912, 29900, 29913, 3244, 8665, 1642, 4830, 29898, 1311, 29889, 978, 876, 13, 308, 13, 4706, 1018, 29901, 13, 9651, 1550, 5852, 29901, 13, 632, 13, 18884, 396, 1303, 515, 9909, 13, 18884, 1018, 29901, 13, 462, 1678, 848, 22131, 353, 1583, 29889, 11514, 29889, 3757, 29894, 29898, 29896, 29900, 29906, 29946, 29897, 13, 18884, 5174, 9909, 29889, 2704, 29901, 13, 462, 13, 462, 1678, 396, 1480, 13, 462, 1678, 1480, 29889, 3888, 877, 20754, 3262, 3244, 426, 29900, 1118, 1059, 746, 5183, 9909, 4286, 4830, 29898, 1311, 29889, 978, 876, 13, 462, 268, 13, 462, 1678, 396, 5040, 3244, 13, 462, 1678, 736, 13, 462, 268, 13, 18884, 565, 451, 848, 22131, 29901, 13, 462, 268, 13, 462, 1678, 396, 1480, 13, 462, 1678, 1480, 29889, 3888, 877, 20754, 3262, 3244, 426, 29900, 1118, 1059, 694, 848, 4520, 4286, 4830, 29898, 1311, 29889, 978, 876, 13, 462, 268, 13, 462, 1678, 396, 5040, 3244, 13, 462, 1678, 736, 13, 462, 13, 18884, 396, 2767, 22663, 13, 18884, 1583, 29889, 16202, 29889, 25629, 29898, 29916, 3598, 25060, 29889, 6156, 7077, 2544, 29918, 29934, 29990, 29897, 13, 462, 13, 18884, 396, 10092, 3013, 284, 573, 12237, 13, 18884, 1583, 3032, 12071, 9598, 1022, 284, 573, 14745, 580, 13, 462, 13, 18884, 396, 3588, 304, 4663, 13, 18884, 848, 308, 353, 4390, 29889, 18132, 29898, 1272, 22131, 29897, 13, 462, 13, 18884, 396, 1480, 13, 18884, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 462, 1678, 1962, 259, 353, 5159, 13, 462, 1678, 1962, 29871, 4619, 6024, 29916, 3598, 4035, 7588, 495, 4520, 848, 29901, 426, 29900, 29913, 4286, 4830, 29898, 1272, 4638, 13, 462, 1678, 1962, 259, 353, 11297, 29876, 4286, 7122, 29898, 4905, 29897, 13, 462, 1678, 1480, 29889, 8382, 29898, 4905, 29897, 13, 462, 13, 18884, 396, 694, 525, 10314, 29915, 1746, 297, 848, 746, 9348, 3013, 284, 573, 13, 18884, 565, 451, 525, 10314, 29915, 297, 848, 29901, 13, 462, 1678, 6773, 13, 462, 13, 18884, 396, 10563, 8343, 1204, 322, 1418, 579, 1633, 13, 18884, 286, 353, 337, 29889, 4478, 11219, 1725, 5779, 29914, 1194, 29903, 29974, 6802, 4130, 579, 1633, 29879, 29914, 1194, 29903, 28135, 742, 848, 1839, 10314, 11287, 13, 18884, 8343, 1204, 539, 353, 938, 29898, 29885, 29889, 2972, 29898, 29896, 876, 13, 18884, 1418, 579, 1633, 259, 353, 851, 29898, 29885, 29889, 2972, 29898, 29906, 876, 13, 462, 13, 18884, 565, 12705, 29898, 1272, 29889, 8149, 3101, 1360, 24582, 18959, 4882, 3788, 10314, 2033, 1125, 13, 462, 1678, 396, 445, 338, 263, 8908, 304, 263, 1014, 13086, 29914, 348, 19496, 1899, 13, 462, 268, 13, 462, 1678, 396, 6507, 25691, 2624, 13, 462, 1678, 565, 848, 1839, 4882, 2033, 1360, 29906, 29900, 29900, 29901, 13, 462, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 462, 9651, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 1839, 1491, 22371, 2624, 13359, 842, 580, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 1480, 29889, 27392, 703, 13556, 2347, 2933, 775, 426, 29900, 29913, 363, 25691, 29914, 348, 1491, 22371, 1642, 4830, 29898, 13, 462, 18884, 848, 1839, 4882, 2033, 13, 462, 9651, 1723, 13, 462, 4706, 1723, 13, 462, 13, 18884, 25342, 12705, 29898, 1272, 29889, 8149, 3101, 1360, 24582, 18959, 2587, 3788, 10314, 2033, 1125, 13, 462, 1678, 396, 445, 338, 263, 716, 848, 12519, 13, 462, 268, 13, 462, 1678, 396, 679, 278, 5825, 322, 6939, 13, 462, 1678, 411, 1583, 29889, 1272, 16542, 29901, 13, 462, 4706, 5825, 9651, 353, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 1839, 8628, 2033, 13, 462, 4706, 6939, 539, 353, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 1839, 14035, 2033, 13, 462, 268, 13, 462, 1678, 396, 10563, 995, 13, 462, 1678, 565, 525, 3784, 29918, 1767, 29915, 297, 848, 1839, 2587, 2033, 29901, 13, 462, 268, 13, 462, 4706, 995, 353, 851, 29898, 1272, 1839, 2587, 16215, 3784, 29918, 1767, 11287, 13, 462, 4706, 1018, 29901, 13, 462, 9651, 995, 353, 938, 29898, 1767, 29897, 13, 462, 4706, 5174, 8960, 408, 4589, 29901, 13, 462, 9651, 1018, 29901, 13, 462, 18884, 995, 353, 5785, 29898, 1767, 29897, 13, 462, 9651, 5174, 8960, 29901, 13, 462, 18884, 1209, 13, 462, 308, 13, 462, 4706, 396, 1246, 278, 6939, 13, 462, 4706, 1018, 29901, 13, 462, 9651, 6939, 29898, 13, 462, 18884, 5825, 9651, 353, 5825, 29892, 13, 462, 18884, 1418, 579, 1633, 268, 353, 1418, 579, 1633, 29892, 13, 462, 18884, 995, 3986, 353, 995, 29892, 13, 462, 9651, 1723, 13, 462, 4706, 5174, 29901, 13, 462, 9651, 1962, 29871, 353, 5159, 13, 462, 9651, 1962, 4619, 6024, 11739, 746, 5432, 6939, 363, 5825, 3790, 29900, 29913, 1418, 579, 1633, 3790, 29896, 29913, 4286, 4830, 29898, 8628, 29892, 4130, 579, 1633, 4638, 13, 462, 9651, 1962, 4619, 6024, 29905, 1089, 729, 3583, 29876, 2033, 13, 462, 9651, 1962, 4619, 518, 1853, 29898, 3127, 4638, 13, 462, 9651, 1962, 4619, 518, 710, 29898, 3127, 4638, 13, 462, 9651, 1962, 4619, 6024, 29905, 29876, 4804, 5096, 3583, 29876, 2033, 13, 462, 9651, 1962, 4619, 518, 15003, 1627, 29889, 4830, 29918, 735, 29883, 580, 29962, 13, 462, 9651, 1962, 29871, 353, 11297, 29876, 4286, 7122, 29898, 4905, 29897, 13, 462, 9651, 1480, 29889, 2704, 29898, 4905, 29897, 13, 308, 13, 4706, 5174, 8960, 408, 4589, 29901, 13, 9651, 1962, 29871, 353, 5159, 13, 9651, 1962, 4619, 6024, 2751, 29922, 8095, 297, 3244, 426, 29900, 29913, 1275, 1360, 2433, 29889, 4830, 29898, 1311, 29889, 978, 4638, 13, 9651, 1962, 4619, 6024, 29905, 1089, 729, 3583, 29876, 2033, 13, 9651, 1962, 4619, 518, 710, 29898, 1853, 29898, 3127, 28166, 13, 9651, 1962, 4619, 518, 710, 29898, 3127, 4638, 13, 9651, 1962, 4619, 6024, 29905, 29876, 4804, 5096, 3583, 29876, 2033, 13, 9651, 1962, 4619, 518, 15003, 1627, 29889, 4830, 29918, 735, 29883, 580, 29962, 13, 9651, 1962, 29871, 353, 11297, 29876, 4286, 7122, 29898, 4905, 29897, 13, 9651, 1596, 1962, 396, 12187, 1059, 13, 9651, 1480, 29889, 9695, 936, 29898, 4905, 29897, 13, 9651, 12020, 13, 268, 13, 1678, 396, 9166, 4936, 970, 1275, 9166, 9166, 4936, 13, 268, 13, 1678, 822, 1014, 13086, 29898, 1311, 29892, 2754, 2558, 29892, 8628, 29892, 18798, 1204, 29892, 4130, 579, 1633, 29892, 14035, 1125, 13, 308, 13, 4706, 396, 1480, 13, 4706, 1480, 29889, 3888, 29898, 13, 9651, 376, 9651, 21696, 10549, 304, 426, 29900, 6822, 29912, 29896, 29913, 1642, 4830, 29898, 13, 18884, 19191, 12177, 29889, 4830, 15735, 1231, 29898, 8628, 511, 13, 18884, 1418, 579, 1633, 29892, 13, 9651, 1723, 13, 4706, 1723, 13, 308, 13, 4706, 396, 12725, 8636, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 565, 313, 18798, 1204, 29892, 4130, 579, 1633, 29897, 297, 1583, 29889, 1491, 7588, 1980, 29901, 13, 18884, 12020, 7865, 2392, 703, 4035, 22371, 304, 426, 29900, 6177, 29912, 29896, 29913, 2307, 4864, 1642, 4830, 29898, 18798, 1204, 29892, 4130, 579, 1633, 876, 13, 308, 13, 4706, 396, 788, 304, 21696, 1980, 13, 4706, 1741, 353, 3244, 292, 29889, 2624, 580, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 353, 426, 13, 18884, 525, 8628, 2396, 462, 5825, 29892, 13, 18884, 525, 1491, 22371, 2624, 2396, 259, 3244, 292, 29889, 2624, 3285, 13, 18884, 525, 14035, 2396, 9651, 6939, 29892, 13, 9651, 500, 13, 308, 13, 4706, 396, 19012, 13, 4706, 1158, 268, 353, 525, 19496, 29915, 13, 4706, 6503, 259, 353, 8207, 1725, 5779, 19248, 29900, 6822, 4130, 579, 1633, 29879, 19248, 29896, 29913, 4286, 4830, 29898, 18798, 1204, 29892, 4130, 579, 1633, 29897, 13, 4706, 9066, 1678, 353, 426, 259, 13, 9651, 525, 29990, 29899, 11713, 2558, 29915, 584, 7882, 2558, 29892, 13, 4706, 500, 13, 308, 13, 4706, 396, 1480, 13, 4706, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 9651, 1962, 418, 353, 5159, 13, 9651, 1962, 268, 4619, 6024, 29912, 29900, 29913, 3638, 29901, 4286, 4830, 29898, 1311, 29889, 978, 4638, 13, 9651, 1962, 268, 4619, 6024, 29899, 1158, 795, 584, 426, 29900, 29913, 4286, 4830, 29898, 5696, 4638, 13, 9651, 1962, 268, 4619, 6024, 29899, 6503, 9651, 584, 426, 29900, 29913, 4286, 4830, 29898, 10314, 4638, 13, 9651, 1962, 268, 4619, 6024, 29899, 9066, 632, 584, 426, 29900, 29913, 4286, 4830, 29898, 13662, 4638, 13, 9651, 1962, 418, 353, 11297, 29876, 4286, 7122, 29898, 4905, 29897, 13, 9651, 1480, 29889, 8382, 29898, 4905, 29897, 13, 308, 13, 4706, 396, 3638, 29871, 13, 4706, 1583, 29889, 11514, 29889, 6717, 29898, 13, 9651, 4390, 29889, 29881, 17204, 29898, 13, 18884, 426, 13, 462, 1678, 525, 5696, 29915, 584, 268, 1158, 29892, 13, 462, 1678, 525, 10314, 29915, 584, 259, 6503, 29892, 13, 462, 1678, 525, 13662, 29915, 584, 1678, 9066, 29892, 13, 18884, 500, 13, 9651, 1723, 13, 4706, 1723, 13, 308, 13, 4706, 396, 2767, 22663, 13, 4706, 1583, 29889, 16202, 29889, 25629, 29898, 29916, 3598, 25060, 29889, 6156, 7077, 2544, 29918, 28627, 29897, 13, 308, 13, 4706, 396, 10092, 3013, 284, 573, 12237, 13, 4706, 1583, 3032, 12071, 9598, 1022, 284, 573, 14745, 580, 13, 308, 13, 4706, 396, 4480, 363, 8908, 13, 4706, 565, 451, 29871, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 1839, 1491, 22371, 2624, 13359, 10685, 29898, 13, 462, 1678, 1583, 29889, 29990, 5667, 6670, 29979, 29918, 20633, 7187, 24290, 2725, 29918, 15307, 12015, 13, 462, 1125, 13, 9651, 396, 11815, 13, 632, 13, 9651, 396, 2767, 22663, 13, 9651, 1583, 29889, 16202, 29889, 25629, 29898, 29916, 3598, 25060, 29889, 6156, 7077, 2544, 29918, 28627, 29918, 15307, 12015, 29897, 13, 632, 13, 9651, 396, 25691, 5229, 29892, 5217, 515, 21696, 1980, 13, 9651, 628, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 13, 632, 13, 9651, 396, 12020, 1059, 13, 9651, 12020, 921, 3598, 10851, 2392, 703, 15619, 304, 1014, 13086, 304, 426, 29900, 6177, 29912, 29896, 29913, 1642, 4830, 29898, 18798, 1204, 29892, 4130, 579, 1633, 876, 13, 4706, 1683, 29901, 13, 632, 13, 9651, 396, 2767, 22663, 13, 9651, 1583, 29889, 16202, 29889, 25629, 29898, 29916, 3598, 25060, 29889, 6156, 7077, 2544, 29918, 28627, 29918, 8949, 29897, 13, 632, 13, 9651, 396, 1480, 13, 9651, 1480, 29889, 3888, 29898, 13, 18884, 376, 8698, 3730, 21696, 2580, 304, 426, 29900, 6822, 29912, 29896, 29913, 1642, 4830, 29898, 13, 462, 1678, 19191, 12177, 29889, 4830, 15735, 1231, 29898, 8628, 511, 13, 462, 1678, 1418, 579, 1633, 29892, 13, 18884, 1723, 13, 9651, 1723, 13, 632, 13, 9651, 396, 3349, 25691, 2624, 13, 9651, 411, 1583, 29889, 1272, 16542, 29901, 13, 18884, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 1839, 1491, 22371, 2624, 2033, 353, 6213, 13, 268, 13, 1678, 822, 443, 19496, 29898, 1311, 29892, 2754, 2558, 29892, 8628, 29892, 18798, 1204, 29892, 4130, 579, 1633, 1125, 13, 308, 13, 4706, 396, 1480, 13, 4706, 1480, 29889, 3888, 703, 348, 1491, 7588, 10549, 515, 426, 29900, 6822, 29912, 29896, 29913, 1642, 4830, 29898, 13, 18884, 19191, 12177, 29889, 4830, 15735, 1231, 29898, 8628, 511, 13, 18884, 1418, 579, 1633, 29892, 13, 9651, 1723, 13, 4706, 1723, 13, 308, 13, 4706, 396, 12725, 8636, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 565, 313, 18798, 1204, 29892, 4130, 579, 1633, 29897, 451, 297, 1583, 29889, 1491, 7588, 1980, 29901, 13, 18884, 12020, 7865, 2392, 703, 3782, 6136, 25691, 304, 426, 29900, 6177, 29912, 29896, 29913, 1642, 4830, 29898, 18798, 1204, 29892, 4130, 579, 1633, 876, 13, 9651, 565, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 1839, 1491, 22371, 2624, 2033, 29901, 13, 18884, 12020, 2184, 2392, 703, 29949, 865, 29877, 292, 25691, 29914, 348, 1491, 22371, 1889, 304, 426, 29900, 6177, 29912, 29896, 29913, 1642, 4830, 29898, 18798, 1204, 29892, 4130, 579, 1633, 876, 13, 308, 13, 4706, 396, 788, 304, 1741, 21696, 1980, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 1839, 1491, 22371, 2624, 2033, 353, 3244, 292, 29889, 2624, 580, 13, 308, 13, 4706, 396, 3638, 29871, 13, 4706, 1583, 29889, 11514, 29889, 6717, 29898, 13, 9651, 4390, 29889, 29881, 17204, 29898, 13, 18884, 426, 13, 462, 1678, 525, 5696, 29915, 584, 268, 525, 348, 19496, 742, 13, 462, 1678, 525, 10314, 29915, 584, 259, 8207, 1725, 5779, 19248, 29900, 6822, 4130, 579, 1633, 29879, 19248, 29896, 29913, 4286, 4830, 29898, 18798, 1204, 29892, 4130, 579, 1633, 511, 13, 462, 1678, 525, 13662, 29915, 584, 13, 462, 1678, 426, 259, 13, 462, 4706, 525, 29990, 29899, 11713, 2558, 29915, 584, 7882, 2558, 29892, 13, 462, 1678, 2981, 13, 18884, 500, 13, 9651, 1723, 13, 4706, 1723, 13, 308, 13, 4706, 396, 2767, 22663, 13, 4706, 1583, 29889, 16202, 29889, 25629, 29898, 29916, 3598, 25060, 29889, 6156, 7077, 2544, 29918, 28627, 29897, 13, 308, 13, 4706, 396, 10092, 3013, 284, 573, 12237, 13, 4706, 1583, 3032, 12071, 9598, 1022, 284, 573, 14745, 580, 13, 308, 13, 4706, 396, 4480, 363, 8908, 13, 4706, 565, 451, 29871, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 1839, 1491, 22371, 2624, 13359, 10685, 29898, 13, 462, 1678, 1583, 29889, 29990, 5667, 6670, 29979, 29918, 20633, 7187, 24290, 2725, 29918, 15307, 12015, 13, 462, 1125, 13, 9651, 396, 11815, 13, 632, 13, 9651, 396, 3349, 25691, 2624, 13, 9651, 411, 1583, 29889, 1272, 16542, 29901, 13, 18884, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 1839, 1491, 22371, 2624, 2033, 353, 6213, 13, 632, 13, 9651, 396, 2767, 22663, 13, 9651, 1583, 29889, 16202, 29889, 25629, 29898, 29916, 3598, 25060, 29889, 6156, 7077, 2544, 29918, 28627, 29918, 15307, 12015, 29897, 13, 632, 13, 9651, 396, 12020, 1059, 13, 9651, 12020, 921, 3598, 10851, 2392, 703, 15619, 304, 443, 19496, 515, 426, 29900, 6177, 29912, 29896, 29913, 1642, 4830, 29898, 18798, 1204, 29892, 4130, 579, 1633, 876, 13, 4706, 1683, 29901, 13, 9651, 396, 9150, 8908, 4520, 13, 632, 13, 9651, 396, 2767, 22663, 13, 9651, 1583, 29889, 16202, 29889, 25629, 29898, 29916, 3598, 25060, 29889, 6156, 7077, 2544, 29918, 28627, 29918, 8949, 29897, 13, 632, 13, 9651, 396, 443, 1491, 22371, 14792, 29892, 316, 280, 280, 515, 21696, 1980, 13, 9651, 628, 1583, 29889, 1491, 7588, 1980, 15625, 18798, 1204, 29892, 4130, 579, 1633, 4638, 13, 268, 13, 1678, 822, 3802, 29898, 1311, 1125, 13, 308, 13, 4706, 396, 1480, 13, 4706, 1480, 29889, 3888, 703, 11291, 292, 426, 29900, 29913, 1642, 4830, 29898, 1311, 29889, 978, 876, 13, 308, 13, 4706, 396, 12611, 278, 3013, 284, 573, 12237, 13, 4706, 565, 1583, 29889, 17462, 284, 573, 14745, 29901, 13, 9651, 1583, 29889, 17462, 284, 573, 14745, 29889, 20713, 580, 13, 308, 13, 4706, 396, 12522, 1623, 278, 9909, 29889, 2811, 4556, 1583, 29889, 11514, 29889, 3757, 29894, 580, 304, 736, 525, 4286, 13, 4706, 1583, 29889, 11514, 29889, 845, 329, 3204, 29898, 11514, 29889, 7068, 2692, 29918, 29934, 29928, 9980, 29897, 13, 268, 13, 1678, 396, 9166, 4936, 2024, 1275, 9166, 9166, 2751, 25512, 13, 268, 13, 1678, 822, 903, 12071, 9598, 1022, 284, 573, 14745, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 17462, 284, 573, 14745, 29901, 13, 9651, 1583, 29889, 17462, 284, 573, 14745, 29889, 20713, 580, 13, 4706, 1583, 29889, 17462, 284, 573, 14745, 29871, 353, 3244, 292, 29889, 14745, 29898, 1311, 29889, 29990, 5667, 6670, 29979, 29918, 6059, 15488, 1964, 18474, 29918, 15307, 12015, 29892, 1583, 3032, 17462, 284, 573, 29897, 13, 4706, 1583, 29889, 17462, 284, 573, 14745, 29889, 2962, 580, 13, 268, 13, 1678, 822, 903, 17462, 284, 573, 29898, 1311, 1125, 13, 308, 13, 4706, 396, 1480, 13, 4706, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 9651, 1480, 29889, 8382, 703, 29879, 2548, 19374, 3013, 284, 573, 304, 1060, 3598, 1159, 13, 308, 13, 4706, 396, 3638, 20254, 848, 975, 19374, 9909, 304, 4889, 19374, 304, 7952, 1722, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 11514, 29889, 6717, 877, 17462, 284, 573, 1495, 13, 4706, 5174, 8960, 408, 4589, 29901, 13, 632, 13, 9651, 396, 1480, 13, 9651, 1480, 29889, 2704, 29898, 13, 18884, 376, 2392, 1550, 9348, 3013, 284, 573, 304, 1060, 3598, 29901, 15974, 29900, 6525, 426, 29896, 29913, 1642, 4830, 29898, 13, 462, 1678, 1134, 29898, 3127, 511, 13, 462, 1678, 4589, 29892, 13, 18884, 1723, 13, 9651, 1723, 13, 632, 13, 9651, 396, 3802, 13, 9651, 1583, 29889, 5358, 580, 13, 632, 13, 4706, 1683, 29901, 13, 632, 13, 9651, 396, 10092, 3013, 284, 573, 12237, 13, 9651, 1583, 3032, 12071, 9598, 1022, 284, 573, 14745, 580, 13, 268, 13, 1990, 921, 3598, 4032, 29898, 3318, 1125, 13, 268, 13, 1678, 17071, 6670, 29979, 29918, 20832, 795, 353, 525, 2754, 29889, 29916, 3598, 29889, 510, 29915, 13, 1678, 17071, 6670, 29979, 29918, 25416, 29918, 4219, 3986, 353, 8207, 29894, 29906, 22208, 13, 1678, 17071, 6670, 29979, 29918, 10493, 29918, 15307, 12015, 29918, 29903, 1678, 353, 29871, 29896, 29900, 29889, 29900, 13, 268, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2754, 2558, 1125, 13, 308, 13, 4706, 396, 3787, 8636, 13, 4706, 1583, 29889, 2754, 2558, 3986, 353, 7882, 2558, 13, 4706, 1583, 29889, 16202, 965, 353, 921, 3598, 25060, 580, 13, 308, 13, 1678, 396, 9166, 4936, 970, 1275, 9166, 9166, 4936, 13, 418, 13, 1678, 822, 679, 29898, 1311, 29892, 2271, 29892, 2587, 2433, 29374, 13, 308, 13, 4706, 736, 1583, 3032, 3827, 29898, 13, 9651, 1158, 965, 353, 525, 7194, 742, 13, 9651, 3142, 795, 353, 3142, 29892, 13, 9651, 3573, 632, 353, 3573, 29892, 13, 4706, 1723, 13, 268, 13, 1678, 822, 1400, 29898, 1311, 29892, 2271, 29892, 2587, 2433, 29374, 13, 308, 13, 4706, 736, 1583, 3032, 3827, 29898, 13, 9651, 1158, 965, 353, 525, 5438, 742, 13, 9651, 3142, 795, 353, 3142, 29892, 13, 9651, 3573, 632, 353, 3573, 29892, 13, 4706, 1723, 13, 268, 13, 1678, 822, 1925, 29898, 1311, 29892, 2271, 29892, 2587, 2433, 29374, 13, 308, 13, 4706, 736, 1583, 3032, 3827, 29898, 13, 9651, 1158, 965, 353, 525, 12336, 742, 13, 9651, 3142, 795, 353, 3142, 29892, 13, 9651, 3573, 632, 353, 3573, 29892, 13, 4706, 1723, 13, 268, 13, 1678, 822, 5217, 29898, 1311, 29892, 2271, 29892, 2587, 2433, 29374, 13, 308, 13, 4706, 736, 1583, 3032, 3827, 29898, 13, 9651, 1158, 965, 353, 525, 2287, 18476, 742, 13, 9651, 3142, 795, 353, 3142, 29892, 13, 9651, 3573, 632, 353, 3573, 29892, 13, 4706, 1723, 13, 268, 13, 1678, 396, 9166, 4936, 2024, 1275, 9166, 9166, 2751, 25512, 13, 268, 13, 1678, 822, 903, 3827, 29898, 1311, 29892, 5696, 29892, 2271, 29892, 2587, 1125, 13, 308, 13, 4706, 396, 1653, 3957, 304, 1060, 3598, 1923, 13, 4706, 3957, 353, 1732, 1982, 29889, 10493, 29903, 5350, 29898, 13, 9651, 3495, 632, 353, 1583, 29889, 29990, 5667, 6670, 29979, 29918, 20832, 29892, 13, 9651, 11815, 3986, 353, 1583, 29889, 29990, 5667, 6670, 29979, 29918, 10493, 29918, 15307, 12015, 29918, 29903, 29892, 13, 4706, 1723, 13, 308, 13, 4706, 396, 3638, 278, 2009, 13, 4706, 1018, 29901, 13, 9651, 6389, 353, 426, 13, 18884, 525, 5696, 2396, 4706, 1158, 29892, 13, 18884, 525, 2271, 2396, 965, 1583, 29889, 29990, 5667, 6670, 29979, 29918, 25416, 29918, 4219, 29974, 2271, 29892, 13, 18884, 525, 13662, 2396, 426, 13, 462, 1678, 525, 29990, 29899, 11713, 2558, 2396, 539, 1583, 29889, 2754, 2558, 29892, 13, 462, 1678, 525, 3916, 29899, 1542, 2396, 259, 525, 6214, 29914, 3126, 742, 13, 18884, 2981, 13, 9651, 500, 13, 9651, 565, 3573, 29901, 13, 18884, 6389, 1839, 2587, 2033, 418, 353, 4390, 29889, 29881, 17204, 29898, 2587, 29897, 13, 632, 13, 9651, 396, 1480, 13, 9651, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 18884, 1962, 9651, 353, 5159, 13, 18884, 1962, 965, 4619, 6024, 29918, 3827, 580, 2000, 411, 29901, 2033, 13, 18884, 363, 313, 29895, 29892, 29894, 29897, 297, 6389, 29889, 7076, 7295, 13, 462, 1678, 1962, 539, 4619, 6024, 29899, 426, 29900, 29901, 29966, 29906, 29900, 6177, 426, 29896, 29913, 4286, 4830, 29898, 29895, 29892, 29894, 4638, 13, 18884, 1962, 9651, 353, 11297, 29876, 4286, 7122, 29898, 4905, 29897, 13, 18884, 1480, 29889, 8382, 29898, 4905, 29897, 13, 632, 13, 9651, 396, 3638, 278, 2009, 13, 9651, 3957, 29889, 3827, 29898, 1068, 5085, 29897, 13, 632, 13, 9651, 396, 2767, 22663, 13, 9651, 1583, 29889, 16202, 29889, 25629, 29898, 29916, 3598, 25060, 29889, 10493, 29918, 28627, 29897, 13, 632, 13, 9651, 396, 6088, 2933, 13, 9651, 2933, 795, 353, 3957, 29889, 657, 5327, 580, 13, 9651, 2933, 8434, 3986, 353, 2933, 29889, 949, 3120, 2141, 17010, 580, 13, 9651, 565, 2933, 8434, 29901, 13, 18884, 2933, 8434, 418, 353, 4390, 29889, 18132, 29898, 5327, 8434, 29897, 13, 9651, 1683, 29901, 13, 18884, 2933, 8434, 418, 353, 6213, 13, 632, 13, 9651, 396, 1480, 13, 9651, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 18884, 1962, 9651, 353, 5159, 13, 18884, 1962, 418, 4619, 6024, 5327, 29901, 2033, 13, 18884, 1962, 418, 4619, 6024, 29899, 4660, 795, 584, 426, 29900, 29913, 4286, 4830, 29898, 5327, 29889, 4882, 4638, 13, 18884, 1962, 418, 4619, 6024, 29899, 2769, 795, 584, 426, 29900, 29913, 4286, 4830, 29898, 5327, 29889, 23147, 4638, 13, 18884, 1962, 418, 4619, 6024, 29899, 3573, 18884, 584, 426, 29900, 29913, 4286, 4830, 29898, 5327, 8434, 4638, 13, 18884, 1962, 539, 353, 11297, 29876, 4286, 7122, 29898, 4905, 29897, 13, 18884, 1480, 29889, 8382, 29898, 4905, 29897, 13, 632, 13, 9651, 396, 12020, 4133, 1059, 775, 13, 9651, 565, 2933, 29889, 4882, 451, 297, 518, 1124, 1982, 29889, 8949, 29892, 1124, 1982, 29889, 27045, 29928, 5387, 13, 18884, 1962, 353, 22372, 29900, 29913, 426, 29896, 29913, 2933, 29889, 4882, 3790, 29906, 29913, 4286, 4830, 29898, 13, 462, 1678, 1158, 29892, 13, 462, 1678, 3142, 29892, 13, 462, 1678, 2933, 29889, 4882, 29892, 13, 18884, 1723, 13, 18884, 1480, 29889, 2704, 29898, 4905, 29897, 13, 18884, 565, 2933, 29889, 4882, 1275, 1124, 1982, 29889, 22051, 29933, 1367, 29928, 1430, 322, 2933, 8434, 1839, 3257, 2033, 1360, 29915, 19907, 2086, 5172, 2396, 13, 462, 268, 13, 462, 1678, 396, 2767, 22663, 13, 462, 1678, 1583, 29889, 16202, 29889, 25629, 29898, 29916, 3598, 25060, 29889, 10493, 29918, 28627, 29918, 29934, 3040, 5265, 26349, 29897, 13, 462, 268, 13, 462, 1678, 396, 12020, 13, 462, 1678, 12020, 921, 3598, 19907, 2392, 29898, 4905, 29897, 13, 18884, 1683, 29901, 13, 462, 268, 13, 462, 1678, 396, 2767, 22663, 13, 462, 1678, 1583, 29889, 16202, 29889, 25629, 29898, 29916, 3598, 25060, 29889, 10493, 29918, 28627, 29918, 11432, 29897, 13, 462, 268, 13, 462, 1678, 396, 12020, 13, 462, 1678, 12020, 2184, 2392, 29898, 4905, 29897, 13, 632, 13, 9651, 396, 2767, 22663, 13, 9651, 1583, 29889, 16202, 29889, 25629, 29898, 29916, 3598, 25060, 29889, 10493, 29918, 28627, 29918, 8949, 29897, 13, 632, 13, 9651, 736, 2933, 8434, 13, 308, 13, 4706, 7146, 29901, 13, 9651, 396, 3802, 278, 3957, 13, 9651, 3957, 29889, 5358, 580, 13, 13, 1990, 921, 3598, 20971, 2801, 29898, 3318, 1125, 13, 268, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2754, 2558, 29892, 4704, 1170, 29892, 4704, 19617, 1125, 13, 308, 13, 4706, 4974, 1134, 29898, 2754, 2558, 29897, 1360, 710, 13, 4706, 4974, 1134, 29898, 4704, 1170, 29897, 1360, 710, 13, 4706, 4974, 1134, 29898, 4704, 19617, 29897, 1360, 710, 13, 308, 13, 4706, 396, 1480, 13, 4706, 1480, 29889, 3888, 703, 9832, 1218, 921, 3598, 20971, 2801, 2777, 1159, 13, 308, 13, 4706, 396, 3787, 8636, 13, 4706, 1583, 29889, 2754, 2558, 3986, 353, 7882, 2558, 13, 4706, 1583, 29889, 4704, 1170, 268, 353, 3234, 1170, 13, 4706, 1583, 29889, 4704, 19617, 268, 353, 3234, 19617, 13, 4706, 1583, 29889, 4130, 579, 1633, 29879, 268, 353, 6571, 396, 263, 7090, 373, 278, 1418, 579, 1633, 29879, 5279, 373, 1269, 4742, 13, 4706, 1583, 29889, 1272, 16542, 4706, 353, 3244, 292, 29889, 2241, 1698, 580, 13, 4706, 1583, 29889, 1491, 7588, 495, 418, 353, 6213, 13, 308, 13, 4706, 396, 1887, 3651, 13, 4706, 1583, 29889, 4645, 3986, 353, 6213, 13, 4706, 1583, 29889, 4704, 29918, 333, 418, 353, 6213, 13, 4706, 1583, 29889, 16202, 965, 353, 921, 3598, 25060, 580, 13, 4706, 1583, 29889, 29916, 3598, 16618, 1575, 259, 353, 5159, 13, 308, 13, 4706, 396, 4511, 13, 4706, 1583, 3032, 6915, 580, 13, 4706, 1583, 29889, 4704, 29918, 333, 418, 353, 1583, 29889, 657, 7566, 1204, 580, 13, 4706, 1583, 3032, 276, 509, 2418, 29990, 3598, 16618, 1575, 580, 13, 268, 13, 1678, 396, 9166, 4936, 970, 1275, 9166, 9166, 4936, 13, 268, 13, 1678, 822, 1653, 16390, 579, 1633, 29898, 1311, 29892, 8628, 29892, 4130, 579, 1633, 1125, 13, 4706, 14550, 13, 4706, 320, 1182, 2575, 6204, 263, 3153, 1418, 579, 1633, 373, 263, 4742, 29892, 470, 278, 697, 393, 13, 9651, 2307, 4864, 373, 1060, 3598, 29889, 13, 308, 13, 4706, 320, 2457, 450, 8343, 29918, 333, 29889, 13, 4706, 14550, 13, 308, 13, 4706, 396, 1480, 13, 4706, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 9651, 1962, 418, 353, 5159, 13, 9651, 1962, 268, 4619, 6024, 3258, 16390, 579, 1633, 580, 2000, 411, 29901, 2033, 13, 9651, 1962, 268, 4619, 6024, 29899, 5825, 3986, 426, 29900, 29913, 4286, 4830, 29898, 8628, 4638, 13, 9651, 1962, 268, 4619, 6024, 29899, 1418, 579, 1633, 259, 426, 29900, 29913, 4286, 4830, 29898, 4130, 579, 1633, 4638, 13, 9651, 1962, 418, 353, 11297, 29876, 4286, 7122, 29898, 4905, 29897, 13, 9651, 1480, 29889, 8382, 29898, 4905, 29897, 13, 308, 13, 4706, 565, 1134, 29898, 8628, 29897, 297, 518, 23583, 29892, 1761, 5387, 13, 9651, 5825, 353, 19191, 12177, 29889, 4830, 15735, 1231, 29898, 8628, 29897, 13, 308, 13, 4706, 4974, 1583, 29889, 4704, 29918, 333, 13, 308, 13, 4706, 396, 10563, 4742, 29915, 29879, 2472, 313, 3258, 565, 4312, 29897, 13, 4706, 2906, 353, 6213, 13, 4706, 1550, 2906, 338, 6213, 29901, 13, 632, 13, 9651, 396, 679, 4742, 29892, 565, 4864, 13, 9651, 411, 1583, 29889, 1272, 16542, 29901, 13, 18884, 363, 270, 297, 1583, 29889, 29916, 3598, 16618, 1575, 29901, 13, 462, 1678, 565, 270, 1839, 15550, 2033, 1360, 8628, 29901, 13, 462, 4706, 2906, 353, 270, 13, 462, 4706, 2867, 13, 632, 13, 9651, 396, 1653, 286, 866, 13, 9651, 565, 2906, 338, 6213, 29901, 13, 462, 13, 18884, 396, 1480, 13, 18884, 1480, 29889, 3888, 703, 9832, 1218, 286, 866, 426, 29900, 29913, 1642, 4830, 29898, 8628, 876, 13, 462, 13, 18884, 396, 1653, 13, 18884, 2933, 353, 1583, 29889, 4645, 29889, 2490, 29898, 13, 462, 1678, 3142, 632, 353, 525, 14456, 19248, 29900, 6822, 3359, 1575, 4286, 4830, 29898, 13, 462, 4706, 1583, 29889, 4704, 29918, 333, 29892, 13, 462, 1678, 10353, 13, 462, 1678, 3573, 9651, 353, 426, 13, 462, 4706, 525, 3359, 1575, 2396, 518, 13, 462, 9651, 8853, 15550, 1115, 5825, 29913, 13, 462, 4706, 4514, 13, 462, 1678, 2981, 13, 18884, 1723, 13, 462, 13, 18884, 396, 2767, 1051, 310, 9224, 13, 18884, 1583, 3032, 276, 509, 2418, 29990, 3598, 16618, 1575, 580, 13, 308, 13, 4706, 338, 9966, 462, 29871, 353, 313, 3359, 1839, 11236, 630, 29918, 271, 2033, 338, 451, 6213, 29897, 13, 4706, 26229, 29918, 401, 965, 353, 2906, 1839, 11236, 362, 29918, 401, 2033, 13, 308, 13, 4706, 396, 5039, 403, 286, 866, 565, 4312, 13, 4706, 565, 451, 338, 9966, 29901, 13, 632, 13, 9651, 396, 1480, 13, 9651, 1480, 29889, 3888, 703, 21786, 1218, 286, 866, 426, 29900, 29913, 1642, 4830, 29898, 8628, 876, 13, 632, 13, 9651, 396, 5039, 403, 13, 9651, 1583, 29889, 4645, 29889, 657, 29898, 13, 18884, 3142, 632, 353, 525, 3359, 1575, 19248, 29900, 6822, 11236, 403, 4286, 4830, 29898, 13, 462, 1678, 26229, 29918, 401, 29892, 13, 18884, 10353, 13, 9651, 1723, 13, 632, 13, 9651, 396, 2767, 1051, 310, 9224, 13, 9651, 1583, 3032, 276, 509, 2418, 29990, 3598, 16618, 1575, 580, 13, 308, 13, 4706, 396, 679, 1418, 579, 1633, 29879, 13, 4706, 565, 5825, 451, 297, 1583, 29889, 4130, 579, 1633, 29879, 29901, 13, 632, 13, 9651, 396, 1480, 13, 9651, 1480, 29889, 3888, 703, 5663, 15387, 1418, 579, 1633, 29879, 310, 426, 29900, 29913, 1642, 4830, 29898, 8628, 876, 13, 632, 13, 9651, 396, 10563, 13, 9651, 2933, 353, 1583, 29889, 4645, 29889, 657, 29898, 13, 18884, 3142, 308, 353, 525, 1725, 5779, 19248, 29900, 1836, 3126, 4286, 4830, 29898, 13, 462, 1678, 2906, 1839, 18798, 29918, 333, 7464, 13, 18884, 10353, 13, 9651, 1723, 13, 9651, 565, 525, 4130, 579, 1633, 29879, 29915, 297, 2933, 29901, 13, 18884, 1583, 29889, 4130, 579, 1633, 29879, 29961, 8628, 29962, 353, 518, 6289, 1839, 333, 2033, 363, 18031, 297, 2933, 1839, 4130, 579, 1633, 29879, 2033, 29962, 13, 9651, 1683, 29901, 13, 18884, 1583, 29889, 4130, 579, 1633, 29879, 29961, 8628, 29962, 353, 5159, 13, 308, 13, 4706, 396, 1653, 1418, 579, 1633, 13, 4706, 565, 1418, 579, 1633, 451, 297, 1583, 29889, 4130, 579, 1633, 29879, 29961, 8628, 5387, 13, 632, 13, 9651, 396, 1480, 13, 9651, 1480, 29889, 3888, 703, 4391, 1418, 579, 1633, 426, 29900, 29913, 373, 286, 866, 426, 29896, 29913, 1642, 4830, 29898, 13, 462, 1678, 1418, 579, 1633, 29892, 13, 462, 1678, 5825, 29892, 13, 18884, 1723, 13, 9651, 1723, 13, 632, 13, 9651, 396, 1653, 13, 9651, 1583, 29889, 4645, 29889, 649, 29898, 13, 18884, 3142, 308, 353, 525, 1725, 5779, 19248, 29900, 1836, 3126, 4286, 4830, 29898, 13, 462, 1678, 2906, 1839, 18798, 29918, 333, 7464, 13, 18884, 10353, 13, 18884, 3573, 4706, 353, 426, 13, 462, 1678, 525, 3259, 2396, 308, 525, 29896, 29889, 29900, 29889, 29900, 742, 13, 462, 1678, 525, 4130, 579, 1633, 29879, 2396, 518, 13, 462, 4706, 426, 13, 462, 9651, 525, 333, 29915, 584, 268, 1418, 579, 1633, 29892, 13, 462, 4706, 2981, 13, 462, 1678, 4514, 13, 18884, 2981, 13, 9651, 1723, 13, 632, 13, 9651, 396, 7090, 13, 9651, 1583, 29889, 4130, 579, 1633, 29879, 29961, 8628, 29962, 4619, 259, 518, 4130, 579, 1633, 29962, 13, 308, 13, 4706, 736, 2906, 1839, 18798, 29918, 333, 2033, 13, 268, 13, 1678, 822, 9805, 29898, 1311, 29892, 8628, 29892, 4130, 579, 1633, 29892, 1767, 1125, 13, 308, 13, 4706, 396, 1480, 13, 4706, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 9651, 1962, 418, 353, 5159, 13, 9651, 1962, 268, 4619, 6024, 23679, 580, 2000, 411, 29901, 2033, 13, 9651, 1962, 268, 4619, 6024, 29899, 5825, 3986, 426, 29900, 29913, 4286, 4830, 29898, 5809, 12177, 29889, 4830, 15735, 1231, 29898, 8628, 28166, 13, 9651, 1962, 268, 4619, 6024, 29899, 1418, 579, 1633, 259, 426, 29900, 29913, 4286, 4830, 29898, 4130, 579, 1633, 4638, 13, 9651, 1962, 268, 4619, 6024, 29899, 995, 4706, 426, 29900, 29913, 4286, 4830, 29898, 1767, 4638, 13, 9651, 1962, 418, 353, 11297, 29876, 4286, 7122, 29898, 4905, 29897, 13, 9651, 1480, 29889, 8382, 29898, 4905, 29897, 13, 308, 13, 4706, 396, 11539, 21696, 495, 18758, 29892, 565, 4864, 13, 4706, 565, 1583, 29889, 1491, 7588, 495, 29901, 13, 9651, 565, 451, 1583, 29889, 1491, 7588, 495, 29889, 275, 29909, 9258, 7295, 13, 18884, 1583, 29889, 1491, 7588, 495, 353, 6213, 13, 18884, 12020, 2184, 2392, 703, 1491, 7588, 495, 338, 451, 18758, 2645, 9805, 580, 1159, 13, 308, 13, 4706, 396, 1653, 278, 1418, 579, 1633, 313, 272, 10563, 8343, 29918, 333, 565, 4864, 29897, 13, 4706, 8343, 29918, 333, 353, 1583, 29889, 3258, 16390, 579, 1633, 29898, 8628, 29892, 4130, 579, 1633, 29897, 13, 308, 13, 4706, 396, 9805, 304, 1418, 579, 1633, 13, 4706, 1583, 29889, 4645, 29889, 649, 29898, 13, 9651, 3142, 308, 353, 525, 1725, 5779, 19248, 29900, 1836, 3126, 4286, 4830, 29898, 13, 18884, 8343, 29918, 333, 29892, 13, 9651, 10353, 13, 9651, 3573, 4706, 353, 426, 13, 9651, 525, 3259, 2396, 308, 525, 29896, 29889, 29900, 29889, 29900, 742, 13, 18884, 525, 4130, 579, 1633, 29879, 2396, 518, 13, 462, 1678, 426, 13, 462, 4706, 525, 333, 29915, 584, 795, 1418, 579, 1633, 29892, 13, 462, 4706, 525, 3784, 29918, 1767, 2396, 1678, 995, 29892, 13, 462, 1678, 2981, 13, 18884, 4514, 13, 9651, 2981, 13, 4706, 1723, 13, 308, 13, 4706, 396, 1480, 13, 4706, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 9651, 1962, 418, 353, 5159, 13, 9651, 1962, 268, 4619, 6024, 5467, 3726, 304, 1060, 3598, 29901, 2033, 13, 9651, 1962, 268, 4619, 6024, 29899, 5825, 3986, 426, 29900, 29913, 4286, 4830, 29898, 5809, 12177, 29889, 4830, 15735, 1231, 29898, 8628, 28166, 13, 9651, 1962, 268, 4619, 6024, 29899, 1418, 579, 1633, 259, 426, 29900, 29913, 4286, 4830, 29898, 4130, 579, 1633, 4638, 13, 9651, 1962, 268, 4619, 6024, 29899, 995, 4706, 426, 29900, 29913, 4286, 4830, 29898, 1767, 4638, 13, 9651, 1962, 418, 353, 11297, 29876, 4286, 7122, 29898, 4905, 29897, 13, 9651, 1480, 29889, 8382, 29898, 4905, 29897, 13, 268, 13, 1678, 822, 1014, 13086, 29898, 1311, 29892, 8628, 29892, 4130, 579, 1633, 29892, 14035, 1125, 13, 308, 13, 4706, 8343, 1204, 353, 1583, 29889, 8628, 29906, 18798, 1204, 29898, 8628, 29897, 13, 308, 13, 4706, 565, 451, 8343, 1204, 29901, 13, 9651, 12020, 7865, 2392, 703, 26690, 26750, 426, 29900, 29913, 1642, 4830, 29898, 8628, 876, 13, 308, 13, 4706, 396, 1653, 21696, 495, 565, 4312, 13, 4706, 565, 451, 1583, 29889, 1491, 7588, 495, 29901, 13, 9651, 1583, 29889, 1491, 7588, 495, 353, 921, 3598, 4035, 7588, 495, 580, 13, 308, 13, 4706, 396, 11539, 21696, 495, 18758, 13, 4706, 565, 451, 1583, 29889, 1491, 7588, 495, 29889, 275, 29909, 9258, 7295, 13, 9651, 1583, 29889, 1491, 7588, 495, 353, 6213, 13, 9651, 12020, 2184, 2392, 703, 1491, 7588, 495, 338, 451, 18758, 2645, 1014, 13086, 580, 1159, 13, 308, 13, 4706, 396, 1014, 13086, 13, 4706, 1583, 29889, 1491, 7588, 495, 29889, 19496, 29898, 1311, 29889, 2754, 2558, 29892, 8628, 29892, 18798, 1204, 29892, 4130, 579, 1633, 29892, 14035, 29897, 13, 268, 13, 1678, 822, 443, 19496, 29898, 1311, 29892, 8628, 29892, 4130, 579, 1633, 1125, 13, 308, 13, 4706, 8343, 1204, 353, 1583, 29889, 8628, 29906, 18798, 1204, 29898, 8628, 29897, 13, 308, 13, 4706, 565, 451, 8343, 1204, 29901, 13, 9651, 12020, 7865, 2392, 703, 26690, 26750, 426, 29900, 29913, 1642, 4830, 29898, 8628, 876, 13, 4706, 565, 451, 1583, 29889, 1491, 7588, 495, 29901, 13, 9651, 12020, 2184, 2392, 703, 1217, 21696, 495, 1159, 13, 308, 13, 4706, 396, 11539, 21696, 495, 18758, 13, 4706, 565, 451, 1583, 29889, 1491, 7588, 495, 29889, 275, 29909, 9258, 7295, 13, 9651, 1583, 29889, 1491, 7588, 495, 353, 6213, 13, 9651, 12020, 2184, 2392, 703, 1491, 7588, 495, 338, 451, 18758, 2645, 1014, 13086, 580, 1159, 13, 308, 13, 4706, 396, 443, 19496, 13, 4706, 1583, 29889, 1491, 7588, 495, 29889, 348, 19496, 29898, 1311, 29889, 2754, 2558, 29892, 8628, 29892, 18798, 1204, 29892, 4130, 579, 1633, 29897, 13, 268, 13, 1678, 822, 5825, 29906, 18798, 1204, 29898, 1311, 29892, 8628, 1125, 13, 4706, 565, 1134, 29898, 8628, 29897, 297, 518, 23583, 29892, 1761, 5387, 13, 9651, 5825, 353, 19191, 12177, 29889, 4830, 15735, 1231, 29898, 8628, 29897, 13, 308, 13, 4706, 736, 1440, 353, 6213, 13, 308, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 363, 270, 297, 1583, 29889, 29916, 3598, 16618, 1575, 29901, 13, 18884, 565, 270, 1839, 15550, 2033, 1360, 8628, 29901, 13, 462, 1678, 736, 1440, 353, 270, 1839, 18798, 29918, 333, 2033, 13, 462, 1678, 2867, 13, 308, 13, 4706, 736, 736, 1440, 13, 268, 13, 1678, 822, 8343, 1204, 29906, 8628, 29898, 1311, 29892, 18798, 1204, 1125, 13, 308, 13, 4706, 736, 1440, 353, 6213, 13, 308, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 363, 270, 297, 1583, 29889, 29916, 3598, 16618, 1575, 29901, 13, 18884, 565, 270, 1839, 18798, 29918, 333, 2033, 1360, 18798, 1204, 29901, 13, 462, 1678, 736, 1440, 353, 270, 1839, 15550, 2033, 13, 462, 1678, 2867, 13, 308, 13, 4706, 736, 736, 1440, 13, 268, 13, 1678, 822, 679, 7566, 1204, 29898, 1311, 1125, 13, 4706, 14550, 13, 4706, 320, 1182, 2575, 4649, 29878, 2418, 278, 3234, 3553, 29889, 6760, 1078, 3234, 565, 5181, 29889, 13, 4706, 14550, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 565, 1583, 29889, 4704, 29918, 333, 29901, 13, 18884, 736, 1583, 29889, 4704, 29918, 333, 13, 308, 13, 4706, 396, 1480, 13, 4706, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 9651, 1962, 418, 353, 5159, 13, 9651, 1962, 268, 4619, 6024, 2577, 3234, 1367, 363, 29901, 2033, 13, 9651, 1962, 268, 4619, 6024, 29899, 1024, 29901, 4706, 13218, 29912, 29900, 1012, 29908, 4286, 4830, 29898, 1311, 29889, 4704, 1170, 4638, 13, 9651, 1962, 268, 4619, 6024, 29899, 6139, 29901, 13218, 29912, 29900, 1012, 29908, 4286, 4830, 29898, 1311, 29889, 4704, 19617, 4638, 13, 9651, 1962, 418, 353, 11297, 29876, 4286, 7122, 29898, 4905, 29897, 13, 9651, 1480, 29889, 8382, 29898, 4905, 29897, 13, 308, 13, 4706, 3234, 29918, 333, 353, 6213, 13, 4706, 1550, 3234, 29918, 333, 338, 6213, 29901, 13, 632, 13, 9651, 396, 10563, 1051, 310, 1857, 9316, 13, 9651, 2933, 1678, 353, 1583, 29889, 4645, 29889, 657, 29898, 13, 18884, 3142, 632, 353, 525, 14456, 29889, 3126, 742, 13, 9651, 1723, 13, 632, 13, 9651, 396, 10563, 3234, 3553, 565, 4864, 13, 9651, 363, 3234, 297, 2933, 1839, 14456, 2033, 29901, 13, 18884, 565, 313, 4704, 1839, 978, 2033, 1360, 1311, 29889, 4704, 1170, 322, 3234, 1839, 8216, 2033, 1360, 1311, 29889, 4704, 19617, 1125, 13, 462, 1678, 565, 3234, 29918, 333, 29901, 13, 462, 4706, 12020, 2184, 2392, 29898, 13, 462, 9651, 376, 20761, 1135, 697, 3234, 411, 1024, 13218, 29912, 29900, 1012, 29908, 322, 6139, 13218, 29912, 29896, 1012, 29908, 1642, 4830, 29898, 13, 462, 18884, 1583, 29889, 4704, 1170, 29892, 13, 462, 18884, 1583, 29889, 4704, 19617, 29892, 13, 462, 9651, 1723, 13, 462, 4706, 1723, 13, 462, 1678, 3234, 29918, 333, 353, 3234, 1839, 4704, 29918, 333, 2033, 13, 632, 13, 9651, 396, 1653, 3234, 565, 4312, 13, 9651, 565, 3234, 29918, 333, 338, 6213, 29901, 13, 462, 13, 18884, 396, 1480, 13, 18884, 1480, 29889, 3888, 703, 9832, 1218, 3234, 1159, 13, 462, 13, 18884, 396, 1653, 13, 18884, 1583, 29889, 4645, 29889, 2490, 29898, 13, 462, 1678, 3142, 632, 353, 525, 14456, 742, 13, 462, 1678, 3573, 9651, 353, 426, 13, 462, 4706, 525, 4704, 2396, 426, 13, 462, 9651, 525, 978, 2396, 965, 1583, 29889, 4704, 1170, 29892, 13, 462, 9651, 525, 8216, 2396, 1678, 1583, 29889, 4704, 19617, 29892, 13, 462, 4706, 500, 13, 462, 1678, 500, 13, 18884, 1723, 13, 308, 13, 4706, 396, 1480, 13, 4706, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 9651, 1480, 29889, 8382, 703, 4704, 29918, 333, 29901, 13218, 29912, 29900, 1012, 29908, 1642, 4830, 29898, 4704, 29918, 333, 876, 13, 308, 13, 4706, 736, 3234, 29918, 333, 13, 268, 13, 1678, 822, 5217, 7566, 29898, 1311, 1125, 13, 4706, 14550, 13, 4706, 320, 1182, 2575, 897, 1026, 267, 278, 3234, 515, 1060, 3598, 29889, 13, 308, 13, 4706, 320, 27392, 8251, 292, 445, 740, 674, 5217, 599, 278, 9224, 322, 13, 9651, 6942, 848, 29889, 13, 4706, 14550, 13, 4706, 4974, 1583, 29889, 4704, 29918, 333, 13, 308, 13, 4706, 396, 1480, 13, 4706, 1480, 29889, 3888, 703, 2772, 1026, 292, 3234, 13218, 29912, 29900, 1012, 29908, 1642, 4830, 29898, 1311, 29889, 4704, 29918, 333, 876, 13, 308, 13, 4706, 396, 5217, 13, 4706, 1583, 29889, 4645, 29889, 8143, 29898, 13, 9651, 3142, 632, 353, 525, 14456, 19248, 29900, 29913, 4286, 4830, 29898, 13, 18884, 1583, 29889, 4704, 29918, 333, 29892, 13, 9651, 10353, 13, 4706, 1723, 13, 308, 13, 4706, 396, 2407, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 1583, 29889, 4704, 29918, 333, 539, 353, 6213, 13, 9651, 1583, 29889, 29916, 3598, 16618, 1575, 1678, 353, 5159, 13, 268, 13, 1678, 822, 3802, 29898, 1311, 1125, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 1491, 7588, 495, 29889, 5358, 580, 13, 4706, 5174, 23833, 2392, 29901, 13, 9651, 1209, 396, 5930, 746, 694, 21696, 495, 13, 308, 13, 4706, 1583, 29889, 1491, 7588, 495, 353, 6213, 13, 268, 13, 1678, 396, 9166, 4936, 2024, 1275, 9166, 9166, 2751, 25512, 13, 268, 13, 1678, 822, 903, 6915, 29898, 1311, 1125, 13, 4706, 14550, 13, 4706, 320, 1182, 2575, 14971, 304, 1060, 3598, 29889, 13, 4706, 14550, 13, 308, 13, 4706, 396, 1480, 13, 4706, 1480, 29889, 3888, 703, 17918, 292, 304, 1060, 3598, 2669, 1159, 13, 308, 13, 4706, 396, 2407, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 1583, 29889, 4645, 353, 921, 3598, 4032, 29898, 1311, 29889, 2754, 2558, 29897, 13, 268, 13, 1678, 822, 903, 276, 509, 2418, 29990, 3598, 16618, 1575, 29898, 1311, 1125, 13, 4706, 14550, 13, 4706, 320, 1182, 2575, 4649, 29878, 2418, 278, 1051, 310, 9224, 5279, 373, 1060, 3598, 29889, 13, 4706, 14550, 13, 308, 13, 4706, 4974, 1583, 29889, 4704, 29918, 333, 13, 308, 13, 4706, 349, 1001, 29918, 7228, 1692, 632, 353, 29871, 29896, 29900, 13, 308, 13, 4706, 396, 1480, 13, 4706, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 9651, 1480, 29889, 8382, 703, 8015, 2546, 1747, 9224, 1159, 13, 308, 13, 4706, 20955, 353, 5852, 13, 4706, 1550, 20955, 29901, 13, 632, 13, 9651, 396, 11705, 599, 9224, 13, 9651, 921, 3598, 16618, 1575, 1678, 353, 5159, 13, 9651, 2309, 1293, 292, 418, 353, 7700, 13, 9651, 1813, 632, 353, 29871, 29896, 13, 9651, 1550, 451, 2309, 1293, 292, 29901, 13, 462, 13, 18884, 396, 679, 2446, 9224, 13, 18884, 2933, 353, 1583, 29889, 4645, 29889, 657, 29898, 13, 462, 1678, 3142, 632, 353, 525, 14456, 19248, 29900, 6822, 3359, 1575, 29973, 546, 29918, 3488, 3790, 29896, 15704, 3488, 3790, 29906, 29913, 4286, 4830, 29898, 13, 462, 4706, 1583, 29889, 4704, 29918, 333, 29892, 13, 462, 4706, 349, 1001, 29918, 7228, 1692, 29892, 13, 462, 4706, 1813, 29892, 13, 462, 1678, 1723, 13, 18884, 1723, 13, 462, 13, 18884, 396, 788, 304, 1887, 9224, 13, 18884, 921, 3598, 16618, 1575, 4619, 2933, 1839, 3359, 1575, 2033, 13, 462, 13, 18884, 396, 11097, 3692, 2446, 13, 18884, 565, 7431, 29898, 5327, 1839, 3359, 1575, 11287, 29966, 13171, 29918, 7228, 1692, 29901, 13, 462, 1678, 2309, 1293, 292, 29922, 5574, 13, 18884, 1683, 29901, 13, 462, 1678, 1813, 4619, 29871, 29896, 13, 462, 13, 9651, 396, 1207, 1854, 694, 20955, 13, 9651, 7797, 29879, 795, 353, 518, 29881, 1839, 15550, 2033, 363, 270, 297, 921, 3598, 16618, 1575, 29962, 13, 9651, 7929, 9125, 29879, 268, 353, 518, 29879, 363, 269, 297, 7797, 29879, 565, 7797, 29879, 29889, 2798, 29898, 29879, 15410, 29896, 29962, 13, 9651, 565, 7929, 9125, 29879, 29901, 13, 18884, 20955, 539, 353, 5852, 13, 9651, 1683, 29901, 13, 18884, 20955, 539, 353, 7700, 13, 308, 13, 4706, 396, 1480, 13, 4706, 565, 1480, 29889, 275, 10861, 2831, 29898, 21027, 29889, 18525, 1125, 13, 9651, 1962, 418, 353, 5159, 13, 9651, 1962, 268, 4619, 6024, 9692, 426, 29900, 29913, 9224, 29901, 4286, 4830, 29898, 2435, 29898, 29916, 3598, 16618, 1575, 28166, 13, 9651, 363, 270, 297, 921, 3598, 16618, 1575, 29901, 13, 18884, 1962, 4619, 6024, 29899, 426, 29900, 29913, 4286, 4830, 29898, 29881, 1839, 15550, 2033, 4638, 13, 9651, 1962, 418, 353, 11297, 29876, 4286, 7122, 29898, 4905, 29897, 13, 9651, 1480, 29889, 8382, 29898, 4905, 29897, 13, 308, 13, 4706, 396, 2407, 13, 4706, 411, 1583, 29889, 1272, 16542, 29901, 13, 9651, 1583, 29889, 29916, 3598, 16618, 1575, 353, 921, 3598, 16618, 1575, 13, 2 ]
aiolifx/products.py
bdraco/aiolifx
0
128378
product_map = { 1: 'Original 1000', 3: 'Color 650', 10: 'White 800 (Low Voltage)', 11: 'White 800 (High Voltage)', 18: 'White 900 BR30 (Low Voltage)', 20: 'Color 1000 BR30', 22: 'Color 1000', 27: 'LIFX A19', 28: 'LIFX BR30', 29: 'LIFX+ A19', 30: 'LIFX+ BR30', 31: 'LIFX Z', 32: 'LIFX Z 2', 36: 'LIFX Downlight', 37: 'LIFX Downlight', 38: 'LIFX Beam', 43: 'LIFX A19', 44: 'LIFX BR30', 45: 'LIFX+ A19', 46: 'LIFX+ BR30', 49: 'LIFX Mini', 50: 'LIFX Mini Day and Dusk', 51: 'LIFX Mini White', 52: 'LIFX GU10', 55: 'LIFX Tile', 59: 'LIFX Mini Color', 60: 'LIFX Mini Day and Dusk', 61: 'LIFX Mini White'} features_map = { 1: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 3: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 10: { 'chain': False, 'color': False, 'infrared': False, 'max_kelvin': 6500, 'min_kelvin': 2700, 'multizone': False}, 11: { 'chain': False, 'color': False, 'infrared': False, 'max_kelvin': 6500, 'min_kelvin': 2700, 'multizone': False}, 18: { 'chain': False, 'color': False, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 20: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 22: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 27: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 28: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 29: { 'chain': False, 'color': True, 'infrared': True, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 30: { 'chain': False, 'color': True, 'infrared': True, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 31: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': True}, 32: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': True}, 36: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 37: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 38: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': True}, 43: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 44: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 45: { 'chain': False, 'color': True, 'infrared': True, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 46: { 'chain': False, 'color': True, 'infrared': True, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 49: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 50: { 'chain': False, 'color': False, 'infrared': False, 'max_kelvin': 4000, 'min_kelvin': 1500, 'multizone': False}, 51: { 'chain': False, 'color': False, 'infrared': False, 'max_kelvin': 2700, 'min_kelvin': 2700, 'multizone': False}, 52: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 55: { 'chain': True, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 59: { 'chain': False, 'color': True, 'infrared': False, 'max_kelvin': 9000, 'min_kelvin': 2500, 'multizone': False}, 60: { 'chain': False, 'color': False, 'infrared': False, 'max_kelvin': 4000, 'min_kelvin': 1500, 'multizone': False}, 61: { 'chain': False, 'color': False, 'infrared': False, 'max_kelvin': 2700, 'min_kelvin': 2700, 'multizone': False}}
[ 1, 3234, 29918, 1958, 353, 426, 1678, 29896, 29901, 525, 26036, 29871, 29896, 29900, 29900, 29900, 742, 13, 268, 29941, 29901, 525, 3306, 29871, 29953, 29945, 29900, 742, 13, 268, 29896, 29900, 29901, 525, 21823, 29871, 29947, 29900, 29900, 313, 29931, 340, 3684, 29873, 482, 29897, 742, 13, 268, 29896, 29896, 29901, 525, 21823, 29871, 29947, 29900, 29900, 313, 16382, 3684, 29873, 482, 29897, 742, 13, 268, 29896, 29947, 29901, 525, 21823, 29871, 29929, 29900, 29900, 25185, 29941, 29900, 313, 29931, 340, 3684, 29873, 482, 29897, 742, 13, 268, 29906, 29900, 29901, 525, 3306, 29871, 29896, 29900, 29900, 29900, 25185, 29941, 29900, 742, 13, 268, 29906, 29906, 29901, 525, 3306, 29871, 29896, 29900, 29900, 29900, 742, 13, 268, 29906, 29955, 29901, 525, 5265, 26753, 319, 29896, 29929, 742, 13, 268, 29906, 29947, 29901, 525, 5265, 26753, 25185, 29941, 29900, 742, 13, 268, 29906, 29929, 29901, 525, 5265, 26753, 29974, 319, 29896, 29929, 742, 13, 268, 29941, 29900, 29901, 525, 5265, 26753, 29974, 25185, 29941, 29900, 742, 13, 268, 29941, 29896, 29901, 525, 5265, 26753, 796, 742, 13, 268, 29941, 29906, 29901, 525, 5265, 26753, 796, 29871, 29906, 742, 13, 268, 29941, 29953, 29901, 525, 5265, 26753, 9943, 4366, 742, 13, 268, 29941, 29955, 29901, 525, 5265, 26753, 9943, 4366, 742, 13, 268, 29941, 29947, 29901, 525, 5265, 26753, 1522, 314, 742, 13, 268, 29946, 29941, 29901, 525, 5265, 26753, 319, 29896, 29929, 742, 13, 268, 29946, 29946, 29901, 525, 5265, 26753, 25185, 29941, 29900, 742, 13, 268, 29946, 29945, 29901, 525, 5265, 26753, 29974, 319, 29896, 29929, 742, 13, 268, 29946, 29953, 29901, 525, 5265, 26753, 29974, 25185, 29941, 29900, 742, 13, 268, 29946, 29929, 29901, 525, 5265, 26753, 341, 2172, 742, 13, 268, 29945, 29900, 29901, 525, 5265, 26753, 341, 2172, 8373, 322, 360, 17400, 742, 13, 268, 29945, 29896, 29901, 525, 5265, 26753, 341, 2172, 8037, 742, 13, 268, 29945, 29906, 29901, 525, 5265, 26753, 402, 29965, 29896, 29900, 742, 13, 268, 29945, 29945, 29901, 525, 5265, 26753, 323, 488, 742, 13, 268, 29945, 29929, 29901, 525, 5265, 26753, 341, 2172, 9159, 742, 13, 268, 29953, 29900, 29901, 525, 5265, 26753, 341, 2172, 8373, 322, 360, 17400, 742, 13, 268, 29953, 29896, 29901, 525, 5265, 26753, 341, 2172, 8037, 10827, 13, 13, 22100, 29918, 1958, 353, 426, 1678, 29896, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 965, 525, 2780, 2396, 5852, 29892, 13, 965, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 965, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 965, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 965, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29941, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 965, 525, 2780, 2396, 5852, 29892, 13, 965, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 965, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 965, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 965, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29896, 29900, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 7700, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29953, 29945, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29955, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29896, 29896, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 7700, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29953, 29945, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29955, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29896, 29947, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 7700, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29906, 29900, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29906, 29906, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29906, 29955, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29906, 29947, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29906, 29929, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 5852, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29941, 29900, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 5852, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29941, 29896, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 5852, 1118, 13, 268, 29941, 29906, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 5852, 1118, 13, 268, 29941, 29953, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29941, 29955, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29941, 29947, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 5852, 1118, 13, 268, 29946, 29941, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29946, 29946, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29946, 29945, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 5852, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29946, 29953, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 5852, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29946, 29929, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29945, 29900, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 7700, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29946, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29896, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29945, 29896, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 7700, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29906, 29955, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29955, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29945, 29906, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29945, 29945, 29901, 426, 259, 525, 14153, 2396, 5852, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29945, 29929, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 5852, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29929, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29953, 29900, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 7700, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29946, 29900, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29896, 29945, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 1118, 13, 268, 29953, 29896, 29901, 426, 259, 525, 14153, 2396, 7700, 29892, 13, 9651, 525, 2780, 2396, 7700, 29892, 13, 9651, 525, 7192, 336, 1127, 2396, 7700, 29892, 13, 9651, 525, 3317, 29918, 10265, 3845, 2396, 29871, 29906, 29955, 29900, 29900, 29892, 13, 9651, 525, 1195, 29918, 10265, 3845, 2396, 29871, 29906, 29955, 29900, 29900, 29892, 13, 9651, 525, 4713, 466, 650, 2396, 7700, 930, 13, 13, 2 ]
src/GaussianDistributionGenerator.py
jachallbound/kmeans_python
0
129917
<reponame>jachallbound/kmeans_python<filename>src/GaussianDistributionGenerator.py import numpy as np import numpy.random as npr def generate_gaussian_data(D, ndim, samples, priors = None, means = None, covs = None ): """Generate D N-dimension Gaussian Distributions of size samples. Parameters: --- D: *int* Amount of IID Gaussian clusters to create. When used in K-Means, should probably be equal to K. ndim: *int* Dimensionality of data. Returned data with be ndim arrays of sample data (in a matrix) samples: *int* Amount of data samples per Gaussian cluster. priors: *array_like* D element array of priors of corresponding Gaussian distributions. Default: random values from a Dirichlet distribution. means: *array_like* D by ndim matrix of means. Default: rand(ndim) values times randint(1,high=10) (D times) covs = *array_like* D by ndim by ndim matrix of covariances. Default: rand(ndim,ndim) values times randint(1,high=3) (D times) This can lead to 'not positive-semidefinite' covs for high ndim. Returns: --- gaussian_dict: *dict* Dictionary of data, labels, and Gaussian distribution parameters. """ "Generate distribution parameters if they weren't passed" if priors == None: priors = npr.dirichlet(np.ones(D), size=1) if means == None: means = np.array([npr.rand(ndim)*npr.randint(10,high=200) for i in range(D)]) if covs == None: covs = np.array([npr.rand(ndim,ndim)*npr.randint(10, high=30) for i in range(D)]) "Fix not positive-semidefinite covariance matrices" "https://stackoverflow.com/questions/41515522/numpy-positive-semi-definite-warning" for d in range(D): min_eigen_value = np.min(np.real(np.linalg.eigvals(covs[d, ]))) if min_eigen_value < 0: covs[d, ] -= 10*min_eigen_value * np.eye(*covs[d, ].shape) "Distribution Parameters" # Number of means to search for, also number of distributions to create priors_csum = np.r_[0, np.cumsum(priors)] pd = npr.rand(samples) # Decision vector for choosing observed data based on priors "Data matrix" data_D = np.zeros((D,ndim,samples)) # All distribution data data = np.zeros((ndim,samples)) # Observation data labels = np.zeros((samples), dtype=int) "Generate K Gaussian Distributions" for d in range(D): data_D[d, ] = npr.multivariate_normal(means[d, ], covs[d, ], size=samples).T observation = np.logical_and(pd>priors_csum[d], pd<=priors_csum[d+1]) data = np.where(observation, data_D[d, ], data) labels = np.where(observation, d, labels) gaussian_dict = {'data': data, 'labels': labels, 'data_D': data_D, 'priors': priors, 'means': means, 'covs': covs} return gaussian_dict
[ 1, 529, 276, 1112, 420, 29958, 29926, 496, 497, 9917, 29914, 29895, 1004, 550, 29918, 4691, 29966, 9507, 29958, 4351, 29914, 29954, 17019, 13398, 3224, 21575, 29889, 2272, 13, 5215, 12655, 408, 7442, 13, 5215, 12655, 29889, 8172, 408, 302, 558, 13, 13, 1753, 5706, 29918, 29887, 17019, 29918, 1272, 29898, 29928, 29892, 13, 462, 9651, 299, 326, 29892, 13, 462, 965, 11916, 29892, 13, 462, 965, 3691, 943, 353, 6213, 29892, 13, 462, 965, 2794, 353, 6213, 29892, 13, 462, 965, 18838, 29879, 353, 6213, 13, 462, 9651, 1125, 13, 1678, 9995, 5631, 403, 360, 405, 29899, 6229, 2673, 22477, 17740, 29879, 310, 2159, 11916, 29889, 13, 13, 1678, 12662, 2699, 29901, 13, 1678, 11474, 13, 1678, 360, 29901, 334, 524, 29930, 13, 4706, 1913, 792, 310, 306, 1367, 22477, 24554, 304, 1653, 29889, 13, 4706, 1932, 1304, 297, 476, 29899, 6816, 550, 29892, 881, 3117, 367, 5186, 304, 476, 29889, 13, 268, 299, 326, 29901, 334, 524, 29930, 13, 4706, 4792, 8180, 537, 310, 848, 29889, 13, 4706, 7106, 287, 848, 411, 367, 29871, 299, 326, 7049, 310, 4559, 848, 313, 262, 263, 4636, 29897, 13, 1678, 11916, 29901, 334, 524, 29930, 13, 4706, 1913, 792, 310, 848, 11916, 639, 22477, 9867, 29889, 13, 1678, 3691, 943, 29901, 334, 2378, 29918, 4561, 29930, 13, 4706, 360, 1543, 1409, 310, 3691, 943, 310, 6590, 22477, 18822, 29889, 13, 4706, 13109, 29901, 4036, 1819, 515, 263, 19378, 436, 1026, 4978, 29889, 13, 1678, 2794, 29901, 334, 2378, 29918, 4561, 29930, 13, 4706, 360, 491, 29871, 299, 326, 4636, 310, 2794, 29889, 13, 4706, 13109, 29901, 20088, 29898, 299, 326, 29897, 1819, 3064, 20088, 524, 29898, 29896, 29892, 9812, 29922, 29896, 29900, 29897, 313, 29928, 3064, 29897, 13, 1678, 18838, 29879, 353, 334, 2378, 29918, 4561, 29930, 13, 4706, 360, 491, 29871, 299, 326, 491, 29871, 299, 326, 4636, 310, 18838, 13956, 778, 29889, 13, 4706, 13109, 29901, 20088, 29898, 299, 326, 29892, 299, 326, 29897, 1819, 3064, 20088, 524, 29898, 29896, 29892, 9812, 29922, 29941, 29897, 313, 29928, 3064, 29897, 13, 18884, 910, 508, 3275, 304, 525, 1333, 6374, 29899, 12846, 680, 18925, 29915, 18838, 29879, 363, 1880, 29871, 299, 326, 29889, 13, 13, 1678, 16969, 29901, 13, 1678, 11474, 13, 1678, 330, 17019, 29918, 8977, 29901, 334, 8977, 29930, 13, 4706, 13343, 310, 848, 29892, 11073, 29892, 322, 22477, 4978, 4128, 29889, 13, 1678, 9995, 13, 13, 1678, 376, 5631, 403, 4978, 4128, 565, 896, 2949, 264, 29915, 29873, 4502, 29908, 13, 1678, 565, 3691, 943, 1275, 6213, 29901, 13, 4706, 3691, 943, 353, 302, 558, 29889, 3972, 436, 1026, 29898, 9302, 29889, 2873, 29898, 29928, 511, 2159, 29922, 29896, 29897, 13, 1678, 565, 2794, 1275, 6213, 29901, 13, 4706, 2794, 353, 7442, 29889, 2378, 4197, 29876, 558, 29889, 9502, 29898, 299, 326, 11877, 29876, 558, 29889, 9502, 524, 29898, 29896, 29900, 29892, 9812, 29922, 29906, 29900, 29900, 29897, 363, 474, 297, 3464, 29898, 29928, 29897, 2314, 13, 1678, 565, 18838, 29879, 1275, 6213, 29901, 13, 4706, 18838, 29879, 353, 7442, 29889, 2378, 4197, 29876, 558, 29889, 9502, 29898, 299, 326, 29892, 299, 326, 11877, 29876, 558, 29889, 9502, 524, 29898, 29896, 29900, 29892, 1880, 29922, 29941, 29900, 29897, 363, 474, 297, 3464, 29898, 29928, 29897, 2314, 13, 4706, 376, 29943, 861, 451, 6374, 29899, 12846, 680, 18925, 18838, 279, 8837, 13516, 29908, 13, 4706, 376, 991, 597, 2417, 29889, 510, 29914, 2619, 29914, 29946, 29896, 29945, 29896, 29945, 29945, 29906, 29906, 29914, 23749, 29899, 1066, 3321, 29899, 12846, 29875, 29899, 25476, 568, 29899, 27392, 29908, 13, 4706, 363, 270, 297, 3464, 29898, 29928, 1125, 13, 9651, 1375, 29918, 29872, 2101, 29918, 1767, 353, 7442, 29889, 1195, 29898, 9302, 29889, 6370, 29898, 9302, 29889, 29880, 979, 29887, 29889, 29872, 335, 791, 29879, 29898, 24542, 29879, 29961, 29881, 29892, 4514, 4961, 13, 9651, 565, 1375, 29918, 29872, 2101, 29918, 1767, 529, 29871, 29900, 29901, 13, 18884, 18838, 29879, 29961, 29881, 29892, 4514, 22361, 29871, 29896, 29900, 29930, 1195, 29918, 29872, 2101, 29918, 1767, 334, 7442, 29889, 1032, 29872, 10456, 24542, 29879, 29961, 29881, 29892, 29871, 1822, 12181, 29897, 13, 13, 1678, 376, 13398, 3224, 12662, 2699, 29908, 13, 1678, 396, 9681, 310, 2794, 304, 2740, 363, 29892, 884, 1353, 310, 18822, 304, 1653, 13, 1678, 3691, 943, 29918, 29883, 2083, 353, 7442, 29889, 29878, 29918, 29961, 29900, 29892, 7442, 29889, 29883, 398, 2083, 29898, 29886, 28739, 4638, 13, 1678, 10518, 353, 302, 558, 29889, 9502, 29898, 27736, 29897, 396, 3826, 2459, 4608, 363, 23906, 8900, 848, 2729, 373, 3691, 943, 13, 13, 1678, 376, 1469, 4636, 29908, 13, 1678, 848, 29918, 29928, 353, 7442, 29889, 3298, 359, 3552, 29928, 29892, 299, 326, 29892, 27736, 876, 396, 2178, 4978, 848, 13, 1678, 848, 353, 7442, 29889, 3298, 359, 3552, 299, 326, 29892, 27736, 876, 396, 21651, 362, 848, 13, 1678, 11073, 353, 7442, 29889, 3298, 359, 3552, 27736, 511, 26688, 29922, 524, 29897, 13, 13, 1678, 376, 5631, 403, 476, 22477, 17740, 29879, 29908, 13, 1678, 363, 270, 297, 3464, 29898, 29928, 1125, 13, 4706, 848, 29918, 29928, 29961, 29881, 29892, 4514, 353, 302, 558, 29889, 4713, 27432, 403, 29918, 8945, 29898, 1004, 550, 29961, 29881, 29892, 21251, 18838, 29879, 29961, 29881, 29892, 21251, 2159, 29922, 27736, 467, 29911, 13, 13, 4706, 15500, 353, 7442, 29889, 1188, 936, 29918, 392, 29898, 15926, 29958, 29886, 28739, 29918, 29883, 2083, 29961, 29881, 1402, 10518, 14065, 29886, 28739, 29918, 29883, 2083, 29961, 29881, 29974, 29896, 2314, 13, 4706, 848, 353, 7442, 29889, 3062, 29898, 26739, 362, 29892, 848, 29918, 29928, 29961, 29881, 29892, 21251, 848, 29897, 13, 4706, 11073, 353, 7442, 29889, 3062, 29898, 26739, 362, 29892, 270, 29892, 11073, 29897, 13, 13, 1678, 330, 17019, 29918, 8977, 353, 11117, 1272, 2396, 848, 29892, 13, 462, 4706, 525, 21134, 2396, 11073, 29892, 13, 462, 4706, 525, 1272, 29918, 29928, 2396, 848, 29918, 29928, 29892, 13, 462, 4706, 525, 29886, 28739, 2396, 3691, 943, 29892, 13, 462, 4706, 525, 1004, 550, 2396, 2794, 29892, 13, 462, 4706, 525, 24542, 29879, 2396, 18838, 29879, 29913, 13, 1678, 736, 330, 17019, 29918, 8977, 13, 2 ]
research/active_learning/_selection_methods.py
joaopfonseca/research
1
110558
<gh_stars>1-10 """ Uncertainty estimators to be used along with the ALWrapper object. All functions must be set up so that a higher value means higher uncertainty (higher likelihood of selection) and vice-versa. """ import numpy as np def breaking_ties(probabilities): """Breaking Ties uncertainty measurement. The output is scaled and reversed.""" probs_sorted = np.sort(probabilities, axis=1)[:, ::-1] # The extra minus is redundant but I kept as a highlight of the change in the # original formula. bt = -(probs_sorted[:, 0] - probs_sorted[:, 1]) return bt UNCERTAINTY_FUNCTIONS = { "entropy": ( lambda probabilities: (-probabilities * np.log2(probabilities)).sum(axis=1) ), "breaking_ties": breaking_ties, "random": ( lambda probabilities: np.ones(probabilities.shape[0]) / probabilities.shape[0] ), }
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 13, 2525, 14082, 1017, 4844, 4097, 304, 367, 1304, 3412, 411, 278, 14445, 15646, 1203, 29889, 2178, 3168, 1818, 367, 13, 842, 701, 577, 393, 263, 6133, 995, 2794, 6133, 25812, 313, 9812, 261, 4188, 22342, 310, 9262, 29897, 13, 392, 11289, 29899, 874, 29874, 29889, 13, 15945, 29908, 13, 5215, 12655, 408, 7442, 13, 13, 13, 1753, 16679, 29918, 2938, 29898, 22795, 11614, 1125, 13, 1678, 9995, 20130, 5086, 323, 583, 25812, 20039, 29889, 450, 1962, 338, 6287, 29881, 322, 18764, 287, 1213, 15945, 13, 1678, 2070, 29879, 29918, 24582, 353, 7442, 29889, 6605, 29898, 22795, 11614, 29892, 9685, 29922, 29896, 29897, 7503, 29892, 4761, 29899, 29896, 29962, 13, 1678, 396, 450, 4805, 26134, 338, 28005, 541, 306, 8126, 408, 263, 12141, 310, 278, 1735, 297, 278, 13, 1678, 396, 2441, 7063, 29889, 13, 1678, 289, 29873, 353, 19691, 771, 5824, 29918, 24582, 7503, 29892, 29871, 29900, 29962, 448, 2070, 29879, 29918, 24582, 7503, 29892, 29871, 29896, 2314, 13, 1678, 736, 289, 29873, 13, 13, 13, 3904, 29907, 1001, 6040, 10192, 29979, 29918, 29943, 28700, 29903, 353, 426, 13, 1678, 376, 296, 14441, 1115, 313, 13, 4706, 14013, 2070, 11614, 29901, 8521, 22795, 11614, 334, 7442, 29889, 1188, 29906, 29898, 22795, 11614, 8106, 2083, 29898, 8990, 29922, 29896, 29897, 13, 1678, 10353, 13, 1678, 376, 1030, 5086, 29918, 2938, 1115, 16679, 29918, 2938, 29892, 13, 1678, 376, 8172, 1115, 313, 13, 4706, 14013, 2070, 11614, 29901, 7442, 29889, 2873, 29898, 22795, 11614, 29889, 12181, 29961, 29900, 2314, 847, 2070, 11614, 29889, 12181, 29961, 29900, 29962, 13, 1678, 10353, 13, 29913, 13, 2 ]
modules/client/gui/optsmenu.py
bullseyestudio/guns-game
0
66909
<gh_stars>0 from modules.client.gui import common from modules.pgu import gui as pgui from modules.client import config hgt = common.screen.get_height() t = pgui.Table(width=common.screen.get_width(), height=hgt) t.tr() t.td(pgui.Spacer(width=150, height=80), colspan=2) t.tr() t.td(pgui.Label('Guns-game.com username', height=30)) input_user = pgui.Input(value=config.cp.get('auth', 'canonical_name')) t.td(input_user) t.tr() t.td(pgui.Label('More options later...', height=30), colspan=2) t.tr() t.td(pgui.Spacer(width=150, height=hgt - (2 * 80) - (3 * 40)), colspan=2) t.tr() backbtn = pgui.Button('Back to Main Menu', width=150, height=30) t.td(backbtn) savebtn = pgui.Button('Save Settings', width=150, height=30) t.td(savebtn) t.tr() t.td(pgui.Label('(without saving)')) t.td(pgui.Label('(and back to main menu)')) t.tr() t.td(pgui.Spacer(width=150, height=40), colspan=2) initialized = False def init(): global initialized if initialized: return global backbtn, savebtn backbtn.connect(pgui.CLICK, hide) savebtn.connect(pgui.CLICK, save_and_hide) initialized = True def show(): init() global input_user input_user = pgui.Input(value=config.cp.get('auth', 'canonical_name')) common.draw_background() common.pguapp.init(t, common.screen) def hide(): import mainmenu mainmenu.show() def save_and_hide(): config.cp.set('auth', 'canonical_name', input_user.value) # TODO: Save the rest of the config settings hide()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 10585, 29889, 4645, 29889, 23569, 1053, 3619, 13, 3166, 10585, 29889, 29886, 2543, 1053, 1410, 29875, 408, 282, 23569, 13, 3166, 10585, 29889, 4645, 1053, 2295, 13, 13, 29882, 4141, 353, 3619, 29889, 10525, 29889, 657, 29918, 3545, 580, 13, 29873, 353, 282, 23569, 29889, 3562, 29898, 2103, 29922, 9435, 29889, 10525, 29889, 657, 29918, 2103, 3285, 3171, 29922, 29882, 4141, 29897, 13, 13, 29873, 29889, 509, 580, 13, 29873, 29889, 1594, 29898, 4061, 1481, 29889, 5592, 562, 261, 29898, 2103, 29922, 29896, 29945, 29900, 29892, 3171, 29922, 29947, 29900, 511, 784, 9653, 29922, 29906, 29897, 13, 13, 29873, 29889, 509, 580, 13, 29873, 29889, 1594, 29898, 4061, 1481, 29889, 4775, 877, 29954, 6948, 29899, 11802, 29889, 510, 8952, 742, 3171, 29922, 29941, 29900, 876, 13, 2080, 29918, 1792, 353, 282, 23569, 29889, 4290, 29898, 1767, 29922, 2917, 29889, 6814, 29889, 657, 877, 5150, 742, 525, 3068, 265, 936, 29918, 978, 8785, 13, 29873, 29889, 1594, 29898, 2080, 29918, 1792, 29897, 13, 13, 29873, 29889, 509, 580, 13, 29873, 29889, 1594, 29898, 4061, 1481, 29889, 4775, 877, 20761, 3987, 2678, 856, 742, 3171, 29922, 29941, 29900, 511, 784, 9653, 29922, 29906, 29897, 13, 13, 29873, 29889, 509, 580, 13, 29873, 29889, 1594, 29898, 4061, 1481, 29889, 5592, 562, 261, 29898, 2103, 29922, 29896, 29945, 29900, 29892, 3171, 29922, 29882, 4141, 448, 313, 29906, 334, 29871, 29947, 29900, 29897, 448, 313, 29941, 334, 29871, 29946, 29900, 8243, 784, 9653, 29922, 29906, 29897, 13, 13, 29873, 29889, 509, 580, 13, 1627, 7290, 353, 282, 23569, 29889, 3125, 877, 5841, 304, 4241, 20019, 742, 2920, 29922, 29896, 29945, 29900, 29892, 3171, 29922, 29941, 29900, 29897, 13, 29873, 29889, 1594, 29898, 1627, 7290, 29897, 13, 7620, 7290, 353, 282, 23569, 29889, 3125, 877, 11371, 19215, 742, 2920, 29922, 29896, 29945, 29900, 29892, 3171, 29922, 29941, 29900, 29897, 13, 29873, 29889, 1594, 29898, 7620, 7290, 29897, 13, 13, 29873, 29889, 509, 580, 13, 29873, 29889, 1594, 29898, 4061, 1481, 29889, 4775, 877, 29898, 14037, 14238, 29897, 8785, 13, 29873, 29889, 1594, 29898, 4061, 1481, 29889, 4775, 877, 29898, 392, 1250, 304, 1667, 6143, 29897, 8785, 13, 13, 29873, 29889, 509, 580, 13, 29873, 29889, 1594, 29898, 4061, 1481, 29889, 5592, 562, 261, 29898, 2103, 29922, 29896, 29945, 29900, 29892, 3171, 29922, 29946, 29900, 511, 784, 9653, 29922, 29906, 29897, 13, 13, 11228, 1891, 353, 7700, 13, 1753, 2069, 7295, 13, 12, 10945, 16601, 13, 12, 361, 16601, 29901, 13, 12, 12, 2457, 13, 13, 12, 10945, 1250, 7290, 29892, 4078, 7290, 13, 13, 12, 1627, 7290, 29889, 6915, 29898, 4061, 1481, 29889, 6154, 2965, 29968, 29892, 9563, 29897, 13, 12, 7620, 7290, 29889, 6915, 29898, 4061, 1481, 29889, 6154, 2965, 29968, 29892, 4078, 29918, 392, 29918, 11458, 29897, 13, 13, 12, 11228, 1891, 353, 5852, 13, 13, 1753, 1510, 7295, 13, 12, 2344, 580, 13, 13, 12, 10945, 1881, 29918, 1792, 13, 12, 2080, 29918, 1792, 353, 282, 23569, 29889, 4290, 29898, 1767, 29922, 2917, 29889, 6814, 29889, 657, 877, 5150, 742, 525, 3068, 265, 936, 29918, 978, 8785, 13, 13, 12, 9435, 29889, 4012, 29918, 7042, 580, 13, 12, 9435, 29889, 29886, 2543, 932, 29889, 2344, 29898, 29873, 29892, 3619, 29889, 10525, 29897, 13, 13, 1753, 9563, 7295, 13, 12, 5215, 1667, 6510, 13, 12, 3396, 6510, 29889, 4294, 580, 13, 13, 1753, 4078, 29918, 392, 29918, 11458, 7295, 13, 12, 2917, 29889, 6814, 29889, 842, 877, 5150, 742, 525, 3068, 265, 936, 29918, 978, 742, 1881, 29918, 1792, 29889, 1767, 29897, 13, 12, 29937, 14402, 29901, 16913, 278, 1791, 310, 278, 2295, 6055, 13, 13, 12, 11458, 580, 13, 2 ]
app.py
AmirValeev/auto-ml-classifier
0
2022
<reponame>AmirValeev/auto-ml-classifier<gh_stars>0 import os, ast import pandas as pd from sklearn.svm import SVC from sklearn.model_selection import train_test_split from sklearn.preprocessing import OneHotEncoder from sklearn.compose import make_column_transformer from sklearn.pipeline import make_pipeline import pickle def main(): # Get the dataset from the users GitHub repository dataset_path = "https://raw.githubusercontent.com/" + os.environ["GITHUB_REPOSITORY"] + "/master/dataset.csv" data = pd.read_csv(dataset_path) print() print(data.describe()) x=data.iloc[:,:-1] y=data.iloc[:,-1] column_trans = make_column_transformer((OneHotEncoder(),[-1]),remainder='passthrough') # apply encoding on output variable x_train, x_test, y_train, y_test = train_test_split(x, y, test_size = 0.2, random_state=0) #define a pipeline pipe = make_pipeline(column_trans,SVC()) pipe.fit(x_train,y_train) #training the model print("\nModel Training Finished") accuracy = pipe.score(x_test,y_test) print("\nAccuracy of the Model: "+str(accuracy*100)) if pipe: pickle.dump(pipe,open('model.pkl','wb')) # store the artifact in docker container if not os.environ["INPUT_MYINPUT"] == 'zeroinputs': inputs = ast.literal_eval(os.environ["INPUT_MYINPUT"]) print("\nThe Predicted Ouput is :") output = pipe.predict([inputs]) print(output) else: output = ["None"] print("\nUser didn't provided inputs to predict") print("\n=======================Action Completed========================") print(f"::set-output name=myOutput::{output[0]}") if __name__ == "__main__": main()
[ 1, 529, 276, 1112, 420, 29958, 6833, 381, 29963, 744, 5750, 29914, 6921, 29899, 828, 29899, 1990, 3709, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 2897, 29892, 8717, 13, 5215, 11701, 408, 10518, 13, 3166, 2071, 19668, 29889, 4501, 29885, 1053, 317, 8257, 13, 3166, 2071, 19668, 29889, 4299, 29918, 21731, 1053, 7945, 29918, 1688, 29918, 5451, 13, 3166, 2071, 19668, 29889, 1457, 19170, 1053, 3118, 28917, 8566, 6119, 13, 3166, 2071, 19668, 29889, 19438, 1053, 1207, 29918, 4914, 29918, 9067, 261, 13, 3166, 2071, 19668, 29889, 13096, 5570, 1053, 1207, 29918, 13096, 5570, 13, 5215, 5839, 280, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 396, 3617, 278, 8783, 515, 278, 4160, 25492, 9810, 13, 1678, 8783, 29918, 2084, 353, 376, 991, 597, 1610, 29889, 3292, 1792, 3051, 29889, 510, 12975, 718, 2897, 29889, 21813, 3366, 29954, 13054, 7466, 29918, 1525, 24815, 1806, 18929, 3108, 718, 5591, 6207, 29914, 24713, 29889, 7638, 29908, 13, 1678, 848, 353, 10518, 29889, 949, 29918, 7638, 29898, 24713, 29918, 2084, 29897, 13, 1678, 1596, 580, 13, 1678, 1596, 29898, 1272, 29889, 2783, 29581, 3101, 13, 13, 1678, 921, 29922, 1272, 29889, 309, 542, 7503, 29892, 13018, 29896, 29962, 13, 1678, 343, 29922, 1272, 29889, 309, 542, 7503, 6653, 29896, 29962, 13, 1678, 1897, 29918, 3286, 353, 1207, 29918, 4914, 29918, 9067, 261, 3552, 6716, 28917, 8566, 6119, 3285, 14352, 29896, 11724, 1745, 475, 672, 2433, 18182, 303, 1092, 820, 1495, 396, 3394, 8025, 373, 1962, 2286, 13, 1678, 921, 29918, 14968, 29892, 921, 29918, 1688, 29892, 343, 29918, 14968, 29892, 343, 29918, 1688, 353, 7945, 29918, 1688, 29918, 5451, 29898, 29916, 29892, 343, 29892, 1243, 29918, 2311, 353, 29871, 29900, 29889, 29906, 29892, 4036, 29918, 3859, 29922, 29900, 29897, 13, 268, 13, 1678, 396, 7922, 263, 16439, 13, 1678, 14282, 353, 1207, 29918, 13096, 5570, 29898, 4914, 29918, 3286, 29892, 7597, 29907, 3101, 13, 1678, 14282, 29889, 9202, 29898, 29916, 29918, 14968, 29892, 29891, 29918, 14968, 29897, 396, 26495, 278, 1904, 13, 1678, 1596, 14182, 29876, 3195, 26101, 4231, 3276, 1159, 13, 1678, 13600, 353, 14282, 29889, 13628, 29898, 29916, 29918, 1688, 29892, 29891, 29918, 1688, 29897, 13, 1678, 1596, 14182, 29876, 7504, 332, 4135, 310, 278, 8125, 29901, 15691, 710, 29898, 562, 2764, 4135, 29930, 29896, 29900, 29900, 876, 13, 13, 1678, 565, 14282, 29901, 13, 4706, 5839, 280, 29889, 15070, 29898, 17760, 29892, 3150, 877, 4299, 29889, 29886, 6321, 3788, 29893, 29890, 8785, 396, 3787, 278, 24238, 297, 10346, 5639, 13, 13, 1678, 565, 451, 2897, 29889, 21813, 3366, 1177, 12336, 29918, 17870, 1177, 12336, 3108, 1275, 525, 9171, 2080, 29879, 2396, 13, 4706, 10970, 353, 8717, 29889, 20889, 284, 29918, 14513, 29898, 359, 29889, 21813, 3366, 1177, 12336, 29918, 17870, 1177, 12336, 20068, 13, 4706, 1596, 14182, 29876, 1576, 21099, 18186, 438, 29884, 649, 338, 584, 1159, 13, 4706, 1962, 353, 14282, 29889, 27711, 4197, 2080, 29879, 2314, 13, 4706, 1596, 29898, 4905, 29897, 13, 1678, 1683, 29901, 13, 4706, 1962, 353, 6796, 8516, 3108, 13, 4706, 1596, 14182, 29876, 2659, 3282, 29915, 29873, 4944, 10970, 304, 8500, 1159, 13, 268, 13, 1678, 1596, 14182, 29876, 9166, 2751, 25512, 4276, 15642, 9446, 9166, 2751, 25512, 543, 29897, 13, 1678, 1596, 29898, 29888, 29908, 1057, 842, 29899, 4905, 1024, 29922, 1357, 6466, 1057, 29912, 4905, 29961, 29900, 12258, 1159, 13, 13, 268, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 1667, 580, 13, 2 ]
formfactory/templatetags/formfactory_tags.py
AltusBarry/django-formfactory
0
102455
from django import template from django.db.models import Model from django.http import Http404 from django.urls import reverse, resolve from formfactory import models register = template.Library() @register.tag() def render_form(parser, token): """{% render_form <form_slug> %}""" tokens = token.split_contents() if len(tokens) != 2: raise template.TemplateSyntaxError( "{% render_form <form_slug>/<object> %}" ) return RenderFormNode(variable=tokens[1]) class RenderFormNode(template.Node): def __init__(self, variable): self.variable = template.Variable(variable) def render(self, context): try: variable = self.variable.resolve(context) except template.VariableDoesNotExist: variable = self.variable.var default_msg = "No FormFactory Form matches the given query. %s" % self.variable # If the variable is a string type, attempt to find object based on # slug field, otherwise pass the object along directly. if not isinstance(variable, Model): try: form = models.Form.objects.get(slug=variable) except models.Form.DoesNotExist: raise Http404(default_msg) elif isinstance(variable, models.Form): form = variable else: raise Http404(default_msg) url = form.absolute_url view, args, kwargs = resolve(url) request = context["request"] # Store original request values. original_method = request.method original_path = request.path original_info = request.path_info # Assign new request values. request.method = "GET" request.path = url request.path_info = url # Call view to get result. kwargs["inclusion_tag"] = True result = view(request, *args, **kwargs) # Replace request values with originals. request.method = original_method request.path = original_path request.path_info = original_path # This does not expect anything other than a TemplateResponse here. result.render() html = result.rendered_content return html
[ 1, 515, 9557, 1053, 4472, 13, 3166, 9557, 29889, 2585, 29889, 9794, 1053, 8125, 13, 3166, 9557, 29889, 1124, 1053, 9056, 29946, 29900, 29946, 13, 3166, 9557, 29889, 26045, 1053, 11837, 29892, 8814, 13, 13, 3166, 883, 14399, 1053, 4733, 13, 13, 9573, 353, 4472, 29889, 12284, 580, 13, 13, 13, 29992, 9573, 29889, 4039, 580, 13, 1753, 4050, 29918, 689, 29898, 16680, 29892, 5993, 1125, 13, 1678, 9995, 18255, 4050, 29918, 689, 529, 689, 29918, 29517, 29958, 1273, 5038, 15945, 13, 1678, 18897, 353, 5993, 29889, 5451, 29918, 10853, 580, 13, 1678, 565, 7431, 29898, 517, 12360, 29897, 2804, 29871, 29906, 29901, 13, 4706, 12020, 4472, 29889, 6733, 16676, 2392, 29898, 13, 9651, 376, 18255, 4050, 29918, 689, 529, 689, 29918, 29517, 20690, 29966, 3318, 29958, 1273, 5038, 13, 4706, 1723, 13, 13, 1678, 736, 26000, 2500, 4247, 29898, 11918, 29922, 517, 12360, 29961, 29896, 2314, 13, 13, 13, 1990, 26000, 2500, 4247, 29898, 6886, 29889, 4247, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2286, 1125, 13, 4706, 1583, 29889, 11918, 353, 4472, 29889, 16174, 29898, 11918, 29897, 13, 13, 1678, 822, 4050, 29898, 1311, 29892, 3030, 1125, 13, 4706, 1018, 29901, 13, 9651, 2286, 353, 1583, 29889, 11918, 29889, 17863, 29898, 4703, 29897, 13, 4706, 5174, 4472, 29889, 16174, 25125, 3664, 1252, 391, 29901, 13, 9651, 2286, 353, 1583, 29889, 11918, 29889, 1707, 13, 4706, 2322, 29918, 7645, 353, 376, 3782, 3812, 5126, 3812, 7087, 278, 2183, 2346, 29889, 1273, 29879, 29908, 1273, 1583, 29889, 11918, 13, 13, 4706, 396, 960, 278, 2286, 338, 263, 1347, 1134, 29892, 4218, 304, 1284, 1203, 2729, 373, 13, 4706, 396, 2243, 688, 1746, 29892, 6467, 1209, 278, 1203, 3412, 4153, 29889, 13, 4706, 565, 451, 338, 8758, 29898, 11918, 29892, 8125, 1125, 13, 9651, 1018, 29901, 13, 18884, 883, 353, 4733, 29889, 2500, 29889, 12650, 29889, 657, 29898, 29517, 29922, 11918, 29897, 13, 9651, 5174, 4733, 29889, 2500, 29889, 25125, 3664, 1252, 391, 29901, 13, 18884, 12020, 9056, 29946, 29900, 29946, 29898, 4381, 29918, 7645, 29897, 13, 4706, 25342, 338, 8758, 29898, 11918, 29892, 4733, 29889, 2500, 1125, 13, 9651, 883, 353, 2286, 13, 4706, 1683, 29901, 13, 9651, 12020, 9056, 29946, 29900, 29946, 29898, 4381, 29918, 7645, 29897, 13, 13, 4706, 3142, 353, 883, 29889, 23552, 29918, 2271, 13, 4706, 1776, 29892, 6389, 29892, 9049, 5085, 353, 8814, 29898, 2271, 29897, 13, 4706, 2009, 353, 3030, 3366, 3827, 3108, 13, 13, 4706, 396, 14491, 2441, 2009, 1819, 29889, 13, 4706, 2441, 29918, 5696, 353, 2009, 29889, 5696, 13, 4706, 2441, 29918, 2084, 353, 2009, 29889, 2084, 13, 4706, 2441, 29918, 3888, 353, 2009, 29889, 2084, 29918, 3888, 13, 13, 4706, 396, 4007, 647, 716, 2009, 1819, 29889, 13, 4706, 2009, 29889, 5696, 353, 376, 7194, 29908, 13, 4706, 2009, 29889, 2084, 353, 3142, 13, 4706, 2009, 29889, 2084, 29918, 3888, 353, 3142, 13, 13, 4706, 396, 8251, 1776, 304, 679, 1121, 29889, 13, 4706, 9049, 5085, 3366, 262, 10085, 29918, 4039, 3108, 353, 5852, 13, 4706, 1121, 353, 1776, 29898, 3827, 29892, 334, 5085, 29892, 3579, 19290, 29897, 13, 13, 4706, 396, 22108, 2009, 1819, 411, 2441, 29879, 29889, 13, 4706, 2009, 29889, 5696, 353, 2441, 29918, 5696, 13, 4706, 2009, 29889, 2084, 353, 2441, 29918, 2084, 13, 4706, 2009, 29889, 2084, 29918, 3888, 353, 2441, 29918, 2084, 13, 13, 4706, 396, 910, 947, 451, 2149, 3099, 916, 1135, 263, 25663, 5103, 1244, 29889, 13, 4706, 1121, 29889, 9482, 580, 13, 4706, 3472, 353, 1121, 29889, 9482, 287, 29918, 3051, 13, 4706, 736, 3472, 13, 2 ]
Python_MD_toHTML/Marked.py
StevenDias33/Marked
1
50649
import markdown2 import re import os from os.path import splitext link_patterns = [(re.compile( r'((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+(:[0-9]+)?|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)'), r'\1')] head = "<!DOCTYPE html>\n<html>\n<head>\n\t<meta charset='utf-8'/>\n\t<title>" + "Marked" + \ "</title>\n\t\n</head>\n<body>\n" finHead = "</body>\n</html>" def convert(md_input, html_output): malist = os.listdir(f'./'+md_input) for i in malist: f = open(f'./{md_input}/{i}', "r") html = markdown2.markdown( f.read(), extras=["link-patterns"], link_patterns=link_patterns) nomFichier = os.path.splitext(i)[0] print(f'Le fichier "{nomFichier}" est convertie !') html_file = open(f'./{html_output}/{nomFichier}.html', 'w') html_file.write(head) html_file.write(html) html_file.write(finHead) """ <?php $command = escapeshellcmd('/usr/custom/test.py'); $output = shell_exec($command); echo $output; ?> """
[ 1, 1053, 2791, 3204, 29906, 13, 5215, 337, 13, 5215, 2897, 13, 3166, 2897, 29889, 2084, 1053, 8536, 568, 486, 13, 13, 13, 2324, 29918, 11037, 29879, 353, 17288, 276, 29889, 12198, 29898, 13, 1678, 364, 29915, 3552, 4197, 29909, 29899, 29999, 29874, 29899, 29920, 3199, 29941, 29892, 29929, 29913, 5919, 29973, 3583, 7998, 4551, 29973, 5033, 25825, 7110, 29899, 29936, 29901, 29987, 2013, 3124, 1628, 29905, 29893, 10062, 29992, 6877, 29961, 29909, 29899, 29999, 29874, 29899, 29920, 29900, 29899, 29929, 29905, 7790, 29899, 10062, 8137, 29961, 29900, 29899, 29929, 10062, 6877, 29989, 10780, 29901, 1636, 23301, 29989, 7110, 29899, 29936, 29901, 29987, 2013, 3124, 1628, 29905, 29893, 10062, 29992, 9601, 29909, 29899, 29999, 29874, 29899, 29920, 29900, 29899, 29929, 29905, 7790, 29899, 10062, 29897, 3552, 29973, 3583, 29914, 7110, 29974, 30022, 29995, 29905, 7998, 7790, 29893, 29905, 29899, 29918, 14178, 6877, 29905, 8773, 10780, 29901, 7110, 2612, 23661, 29987, 29936, 29995, 29992, 29905, 7790, 29893, 29918, 29962, 7528, 29937, 29973, 10780, 29901, 7110, 7790, 9903, 29914, 1966, 29905, 29893, 14178, 876, 7897, 5477, 364, 12764, 29896, 1495, 29962, 13, 13, 2813, 353, 9872, 29991, 21300, 3472, 14247, 29876, 29966, 1420, 14247, 29876, 29966, 2813, 14247, 29876, 29905, 29873, 29966, 7299, 17425, 2433, 9420, 29899, 29947, 29915, 3779, 29905, 29876, 29905, 29873, 29966, 3257, 11903, 718, 376, 9802, 287, 29908, 718, 320, 13, 1678, 25225, 3257, 14247, 29876, 29905, 29873, 29905, 29876, 829, 2813, 14247, 29876, 29966, 2587, 14247, 29876, 29908, 13, 4951, 5494, 353, 25225, 2587, 14247, 29876, 829, 1420, 11903, 13, 13, 1753, 3588, 29898, 3487, 29918, 2080, 29892, 3472, 29918, 4905, 1125, 13, 1678, 4439, 391, 353, 2897, 29889, 1761, 3972, 29898, 29888, 4286, 29914, 18717, 3487, 29918, 2080, 29897, 13, 1678, 363, 474, 297, 4439, 391, 29901, 13, 4706, 285, 353, 1722, 29898, 29888, 4286, 19248, 3487, 29918, 2080, 6822, 29912, 29875, 29913, 742, 376, 29878, 1159, 13, 4706, 3472, 353, 2791, 3204, 29906, 29889, 3502, 3204, 29898, 13, 9651, 285, 29889, 949, 3285, 429, 10678, 29922, 3366, 2324, 29899, 11037, 29879, 12436, 1544, 29918, 11037, 29879, 29922, 2324, 29918, 11037, 29879, 29897, 13, 4706, 2245, 29943, 436, 631, 353, 2897, 29889, 2084, 29889, 23579, 568, 486, 29898, 29875, 9601, 29900, 29962, 13, 4706, 1596, 29898, 29888, 29915, 3226, 285, 436, 631, 29850, 11522, 29943, 436, 631, 5038, 707, 3588, 347, 1738, 1495, 13, 4706, 3472, 29918, 1445, 353, 1722, 29898, 29888, 4286, 19248, 1420, 29918, 4905, 6822, 29912, 11522, 29943, 436, 631, 1836, 1420, 742, 525, 29893, 1495, 13, 4706, 3472, 29918, 1445, 29889, 3539, 29898, 2813, 29897, 13, 4706, 3472, 29918, 1445, 29889, 3539, 29898, 1420, 29897, 13, 4706, 3472, 29918, 1445, 29889, 3539, 29898, 4951, 5494, 29897, 13, 13, 13, 15945, 29908, 13, 8169, 1961, 29871, 13, 13, 29938, 6519, 353, 3966, 11603, 14181, 9006, 11219, 4855, 29914, 6341, 29914, 1688, 29889, 2272, 2157, 13, 29938, 4905, 353, 6473, 29918, 4258, 1566, 6519, 416, 13, 8057, 395, 4905, 29936, 13, 13, 17382, 13, 15945, 29908, 2 ]
3D_CNNs/S3DG_small.py
Seunghoon-Yi/Paper_review-PyTorch
2
40090
import torch.nn as nn import torch import os class BasicConv3d(nn.Module): def __init__(self, in_planes, out_planes, kernel_size, stride, padding=0): super(BasicConv3d, self).__init__() self.conv = nn.Conv3d(in_planes, out_planes, kernel_size=kernel_size, stride=stride, padding=padding, bias=False) # verify bias false # verify defalt value in sonnet #self.bn = nn.BatchNorm3d(out_planes, eps=1.e-5, momentum=0.1, affine=True) self.relu = nn.LeakyReLU(negative_slope=0.01, inplace=True) def forward(self, x): x = self.conv(x) #x = self.bn(x) x = self.relu(x) return x class STConv3d(nn.Module): def __init__(self, in_planes, out_planes, kernel_size, stride, padding=0): super(STConv3d, self).__init__() self.conv = nn.Conv3d(in_planes, out_planes, kernel_size=(1, kernel_size, kernel_size), stride=(1, stride, stride), padding=(0, padding, padding)) self.conv2 = nn.Conv3d(out_planes, out_planes, kernel_size=(kernel_size, 1, 1), stride=(stride, 1, 1), padding=(padding, 0, 0)) #self.bn = nn.BatchNorm3d(out_planes, eps=1.e-5, momentum=0.1, affine=True) self.relu = nn.LeakyReLU(negative_slope=0.01, inplace=True) #self.bn2 = nn.BatchNorm3d(out_planes, eps=1.e-5, momentum=0.1, affine=True) self.relu2 = nn.LeakyReLU(negative_slope=0.01, inplace=True) nn.init.normal_(self.conv2.weight, mean=0, std=0.01) nn.init.constant_(self.conv2.bias, 0) def forward(self, x): x=self.conv(x) #x=self.bn(x) x=self.relu(x) x=self.conv2(x) #x=self.bn2(x) x=self.relu2(x) return x # Note the operations here for S3D-G: # If we set two convs: 1xkxk + kx1x1, it's as follows: (p=(k-1)/2) # BasicConv3d(input,output,kernel_size=(1,k,k),stride=1,padding=(0,p,p)) # Then BasicConv3d(output,output,kernel_size=(k,1,1),stride=1,padding=(p,0,0)) class Mixed_3b(nn.Module): def __init__(self): super(Mixed_3b, self).__init__() self.branch0 = nn.Sequential( BasicConv3d(64, 16, kernel_size=1, stride=1), ) self.branch1 = nn.Sequential( BasicConv3d(64, 32, kernel_size=1, stride=1), STConv3d(32, 24, kernel_size=3, stride=1, padding=1), ) self.branch2 = nn.Sequential( BasicConv3d(64, 16, kernel_size=1, stride=1), STConv3d(16, 12, kernel_size=3, stride=1, padding=1), ) self.branch3 = nn.Sequential( nn.MaxPool3d(kernel_size=(3, 3, 3), stride=1, padding=1), BasicConv3d(64, 12, kernel_size=1, stride=1), ) def forward(self, x): x0 = self.branch0(x) x1 = self.branch1(x) x2 = self.branch2(x) x3 = self.branch3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class Mixed_3c(nn.Module): def __init__(self): super(Mixed_3c, self).__init__() self.branch0 = nn.Sequential( BasicConv3d(64, 24, kernel_size=1, stride=1), ) self.branch1 = nn.Sequential( BasicConv3d(64, 24, kernel_size=1, stride=1), STConv3d(24, 40, kernel_size=3, stride=1, padding=1), ) self.branch2 = nn.Sequential( BasicConv3d(64, 12, kernel_size=1, stride=1), STConv3d(12, 16, kernel_size=3, stride=1, padding=1), ) self.branch3 = nn.Sequential( nn.MaxPool3d(kernel_size=(3, 3, 3), stride=1, padding=1), BasicConv3d(64, 16, kernel_size=1, stride=1), ) def forward(self, x): x0 = self.branch0(x) x1 = self.branch1(x) x2 = self.branch2(x) x3 = self.branch3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class Mixed_4b(nn.Module): def __init__(self): super(Mixed_4b, self).__init__() self.branch0 = nn.Sequential( BasicConv3d(96, 32, kernel_size=1, stride=1), ) self.branch1 = nn.Sequential( BasicConv3d(96, 32, kernel_size=1, stride=1), STConv3d(32, 64, kernel_size=3, stride=1, padding=1), ) self.branch2 = nn.Sequential( BasicConv3d(96, 32, kernel_size=1, stride=1), STConv3d(32, 16, kernel_size=3, stride=1, padding=1), ) self.branch3 = nn.Sequential( nn.MaxPool3d(kernel_size=(3, 3, 3), stride=1, padding=1), BasicConv3d(96, 16, kernel_size=1, stride=1), ) def forward(self, x): x0 = self.branch0(x) x1 = self.branch1(x) x2 = self.branch2(x) x3 = self.branch3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class Mixed_4c(nn.Module): def __init__(self): super(Mixed_4c, self).__init__() self.branch0 = nn.Sequential( BasicConv3d(128, 60, kernel_size=1, stride=1), ) self.branch1 = nn.Sequential( BasicConv3d(128, 64, kernel_size=1, stride=1), STConv3d(64, 84, kernel_size=3, stride=1, padding=1), ) self.branch2 = nn.Sequential( BasicConv3d(128, 16, kernel_size=1, stride=1), STConv3d(16, 24, kernel_size=3, stride=1, padding=1), ) self.branch3 = nn.Sequential( nn.MaxPool3d(kernel_size=(3, 3, 3), stride=1, padding=1), BasicConv3d(128, 24, kernel_size=1, stride=1), ) def forward(self, x): x0 = self.branch0(x) x1 = self.branch1(x) x2 = self.branch2(x) x3 = self.branch3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class Mixed_4d(nn.Module): def __init__(self): super(Mixed_4d, self).__init__() self.branch0 = nn.Sequential( BasicConv3d(512, 128, kernel_size=1, stride=1), ) self.branch1 = nn.Sequential( BasicConv3d(512, 128, kernel_size=1, stride=1), STConv3d(128, 256, kernel_size=3, stride=1, padding=1), ) self.branch2 = nn.Sequential( BasicConv3d(512, 24, kernel_size=1, stride=1), STConv3d(24, 64, kernel_size=3, stride=1, padding=1), ) self.branch3 = nn.Sequential( nn.MaxPool3d(kernel_size=(3, 3, 3), stride=1, padding=1), BasicConv3d(512, 64, kernel_size=1, stride=1), ) def forward(self, x): x0 = self.branch0(x) x1 = self.branch1(x) x2 = self.branch2(x) x3 = self.branch3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class Mixed_4e(nn.Module): def __init__(self): super(Mixed_4e, self).__init__() self.branch0 = nn.Sequential( BasicConv3d(512, 112, kernel_size=1, stride=1), ) self.branch1 = nn.Sequential( BasicConv3d(512, 144, kernel_size=1, stride=1), STConv3d(144, 288, kernel_size=3, stride=1, padding=1), ) self.branch2 = nn.Sequential( BasicConv3d(512, 32, kernel_size=1, stride=1), STConv3d(32, 64, kernel_size=3, stride=1, padding=1), ) self.branch3 = nn.Sequential( nn.MaxPool3d(kernel_size=(3, 3, 3), stride=1, padding=1), BasicConv3d(512, 64, kernel_size=1, stride=1), ) def forward(self, x): x0 = self.branch0(x) x1 = self.branch1(x) x2 = self.branch2(x) x3 = self.branch3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class Mixed_4f(nn.Module): def __init__(self): super(Mixed_4f, self).__init__() self.branch0 = nn.Sequential( BasicConv3d(128, 32, kernel_size=1, stride=1), # 4 ) self.branch1 = nn.Sequential( BasicConv3d(128, 36, kernel_size=1, stride=1), STConv3d(36, 64, kernel_size=3, stride=1, padding=1), # 6 ) self.branch2 = nn.Sequential( BasicConv3d(128, 12, kernel_size=1, stride=1), STConv3d(12, 16, kernel_size=3, stride=1, padding=1), # 3 ) self.branch3 = nn.Sequential( nn.MaxPool3d(kernel_size=(3, 3, 3), stride=1, padding=1), BasicConv3d(128, 16, kernel_size=1, stride=1), # 3 ) def forward(self, x): x0 = self.branch0(x) x1 = self.branch1(x) x2 = self.branch2(x) x3 = self.branch3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class Mixed_5b(nn.Module): def __init__(self): super(Mixed_5b, self).__init__() self.branch0 = nn.Sequential( BasicConv3d(96, 32, kernel_size=1, stride=1), # 4 ) self.branch1 = nn.Sequential( BasicConv3d(96, 24, kernel_size=1, stride=1), STConv3d(24, 48, kernel_size=3, stride=1, padding=1), # 6 ) self.branch2 = nn.Sequential( BasicConv3d(96, 12, kernel_size=1, stride=1), STConv3d(12, 24, kernel_size=3, stride=1, padding=1), # 3 ) self.branch3 = nn.Sequential( nn.MaxPool3d(kernel_size=(3, 3, 3), stride=1, padding=1), BasicConv3d(96, 24, kernel_size=1, stride=1), # 3 ) def forward(self, x): x0 = self.branch0(x) x1 = self.branch1(x) x2 = self.branch2(x) x3 = self.branch3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class Mixed_5c(nn.Module): def __init__(self): super(Mixed_5c, self).__init__() self.branch0 = nn.Sequential( BasicConv3d(192, 96, kernel_size=1, stride=1), # 3 ) self.branch1 = nn.Sequential( BasicConv3d(192, 64, kernel_size=1, stride=1), STConv3d(64, 96, kernel_size=3, stride=1, padding=1), # 3 ) self.branch2 = nn.Sequential( BasicConv3d(192, 16, kernel_size=1, stride=1), STConv3d(16, 32, kernel_size=3, stride=1, padding=1), # 1 ) self.branch3 = nn.Sequential( nn.MaxPool3d(kernel_size=(3, 3, 3), stride=1, padding=1), BasicConv3d(192, 32, kernel_size=1, stride=1), # 1 ) def forward(self, x): x0 = self.branch0(x) x1 = self.branch1(x) x2 = self.branch2(x) x3 = self.branch3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class Permute(nn.Module): def __init__(self): super(Permute, self).__init__() def forward(self, x): return x.permute(0,2,1,3,4) class S3DG(nn.Module): def __init__(self, embed_size = 512, device = None, dropout = 0.5, input_channel=3, spatial_squeeze=True): super(S3DG, self).__init__() self.features = nn.Sequential( ############################ The Stem Network ############################ BasicConv3d(input_channel, 16, kernel_size=6, stride=2, padding=2), # (16, 112, 114, 98) BasicConv3d(16, 32, kernel_size=3, stride=1, padding=1), # (32, 112, 114, 98) nn.MaxPool3d(kernel_size=(2, 2, 2), stride=(2, 2, 2), padding=(0, 0, 0)), # (32, 112, 57, 49) STConv3d(32, 64, kernel_size=3, stride=1, padding=1), # (64, 112, 57, 49) nn.MaxPool3d(kernel_size=(1, 3, 3), stride=(1, 2, 2), padding=(0, 0, 0)), # (64, 112, 28, 24) ######################## Incption + Residual conv3d ######################## Mixed_3c(), # (96, 112, 28, 24) nn.MaxPool3d(kernel_size=(1, 2, 2), stride=(1, 2, 2), padding=(0, 0, 0)), # (96, 112, 14, 12) Mixed_4b(), # (128, 112, 14, 12) Mixed_4c(), # (192, 112, 14, 12) nn.MaxPool3d(kernel_size=(2, 2, 2), stride=(2, 2, 2), padding=(0, 0, 0)), # (192, 56, 7, 6) Mixed_5c(), # (256, 56, 7, 6) nn.AdaptiveAvgPool3d(output_size=(56, 2, 2)), ) self.fc_out_1 = nn.Linear(1024, embed_size) #self.fc_out_2 = nn.Linear(1660, 64*4*2) self.dropout = nn.Dropout(p=0.5) self.spatial_squeeze = spatial_squeeze self.softmax = nn.Softmax() self.device = device self.relu = nn.LeakyReLU(negative_slope=0.01, inplace=True) def forward(self, x): #print("initial shape : ", x.shape) x = x.permute(0,2,1,3,4).to(self.device) logits = self.features(x) if self.spatial_squeeze: logits = logits.squeeze(3) logits = logits.squeeze(3) BS = logits.shape[0] print("feature shape : ", logits.shape) out = self.relu(self.fc_out_1(self.dropout(logits.permute(0,2,1,3,4).reshape(BS, 56, -1)))) return out def load_state_dict(self, path): target_weights = torch.load(path) own_state = self.state_dict() for name, param in target_weights.items(): if name in own_state: if isinstance(param, nn.Parameter): param = param.data try: if len(param.size()) == 5 and param.size()[3] in [3, 7]: own_state[name][:, :, 0, :, :] = torch.mean(param, 2) else: own_state[name].copy_(param) except Exception: raise RuntimeError('While copying the parameter named {}.\ whose dimensions in the model are {} and \ whose dimensions in the checkpoint are {}.\ '.format(name, own_state[name].size(), param.size())) else: print('{} meets error in locating parameters'.format(name)) missing = set(own_state.keys()) - set(target_weights.keys()) print('{} keys are not holded in target checkpoints'.format(len(missing))) if __name__ == '__main__': model = S3DG(embed_size=512) # Initialize the weights with pretrained I3D net. In detail, # please refer to specific reproduced load_state_dict() function #if not os.path.exists('modelweights/RGB_imagenet.pkl'): #print 'No weights Found! please download first, or comment 382~384th line' #model.load_state_dict('modelweights/RGB_imagenet.pkl') model = model.cuda() data = torch.autograd.Variable(torch.rand(3, 224, 3, 228, 196)).cuda() # [BS, C, T, H, W] print(model) out = model(data) print(out.shape)
[ 1, 1053, 4842, 305, 29889, 15755, 408, 302, 29876, 30004, 13, 5215, 4842, 305, 30004, 13, 5215, 2897, 30004, 13, 30004, 13, 30004, 13, 1990, 19219, 1168, 29894, 29941, 29881, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 297, 29918, 9018, 267, 29892, 714, 29918, 9018, 267, 29892, 8466, 29918, 2311, 29892, 380, 2426, 29892, 7164, 29922, 29900, 1125, 30004, 13, 4706, 2428, 29898, 16616, 1168, 29894, 29941, 29881, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 4706, 1583, 29889, 20580, 353, 302, 29876, 29889, 1168, 29894, 29941, 29881, 29898, 262, 29918, 9018, 267, 29892, 714, 29918, 9018, 267, 29892, 8466, 29918, 2311, 29922, 17460, 29918, 2311, 29892, 380, 2426, 29922, 303, 2426, 29892, 7164, 29922, 12791, 29892, 24003, 29922, 8824, 29897, 29871, 396, 11539, 24003, 2089, 30004, 13, 30004, 13, 4706, 396, 11539, 822, 1997, 995, 297, 1487, 1212, 30004, 13, 4706, 396, 1311, 29889, 11197, 353, 302, 29876, 29889, 23145, 29940, 555, 29941, 29881, 29898, 449, 29918, 9018, 267, 29892, 321, 567, 29922, 29896, 29889, 29872, 29899, 29945, 29892, 19399, 29922, 29900, 29889, 29896, 29892, 2756, 457, 29922, 5574, 8443, 13, 4706, 1583, 29889, 2674, 29884, 353, 302, 29876, 29889, 3226, 557, 29891, 1123, 29931, 29965, 29898, 22198, 29918, 29879, 417, 412, 29922, 29900, 29889, 29900, 29896, 29892, 297, 6689, 29922, 5574, 8443, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 921, 353, 1583, 29889, 20580, 29898, 29916, 8443, 13, 4706, 396, 29916, 353, 1583, 29889, 11197, 29898, 29916, 8443, 13, 4706, 921, 353, 1583, 29889, 2674, 29884, 29898, 29916, 8443, 13, 4706, 736, 921, 30004, 13, 30004, 13, 30004, 13, 1990, 6850, 1168, 29894, 29941, 29881, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 297, 29918, 9018, 267, 29892, 714, 29918, 9018, 267, 29892, 8466, 29918, 2311, 29892, 380, 2426, 29892, 7164, 29922, 29900, 1125, 30004, 13, 4706, 2428, 29898, 1254, 1168, 29894, 29941, 29881, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 4706, 1583, 29889, 20580, 353, 302, 29876, 29889, 1168, 29894, 29941, 29881, 29898, 262, 29918, 9018, 267, 29892, 714, 29918, 9018, 267, 29892, 8466, 29918, 2311, 7607, 29896, 29892, 8466, 29918, 2311, 29892, 8466, 29918, 2311, 511, 30004, 13, 462, 795, 380, 2426, 7607, 29896, 29892, 380, 2426, 29892, 380, 2426, 511, 7164, 7607, 29900, 29892, 7164, 29892, 7164, 876, 30004, 13, 4706, 1583, 29889, 20580, 29906, 353, 302, 29876, 29889, 1168, 29894, 29941, 29881, 29898, 449, 29918, 9018, 267, 29892, 714, 29918, 9018, 267, 29892, 8466, 29918, 2311, 7607, 17460, 29918, 2311, 29892, 29871, 29896, 29892, 29871, 29896, 511, 380, 2426, 7607, 303, 2426, 29892, 29871, 29896, 29892, 29871, 29896, 511, 30004, 13, 462, 1669, 7164, 7607, 12791, 29892, 29871, 29900, 29892, 29871, 29900, 876, 30004, 13, 30004, 13, 4706, 396, 1311, 29889, 11197, 353, 302, 29876, 29889, 23145, 29940, 555, 29941, 29881, 29898, 449, 29918, 9018, 267, 29892, 321, 567, 29922, 29896, 29889, 29872, 29899, 29945, 29892, 19399, 29922, 29900, 29889, 29896, 29892, 2756, 457, 29922, 5574, 8443, 13, 4706, 1583, 29889, 2674, 29884, 353, 302, 29876, 29889, 3226, 557, 29891, 1123, 29931, 29965, 29898, 22198, 29918, 29879, 417, 412, 29922, 29900, 29889, 29900, 29896, 29892, 297, 6689, 29922, 5574, 8443, 13, 30004, 13, 4706, 396, 1311, 29889, 11197, 29906, 353, 302, 29876, 29889, 23145, 29940, 555, 29941, 29881, 29898, 449, 29918, 9018, 267, 29892, 321, 567, 29922, 29896, 29889, 29872, 29899, 29945, 29892, 19399, 29922, 29900, 29889, 29896, 29892, 2756, 457, 29922, 5574, 8443, 13, 4706, 1583, 29889, 2674, 29884, 29906, 353, 302, 29876, 29889, 3226, 557, 29891, 1123, 29931, 29965, 29898, 22198, 29918, 29879, 417, 412, 29922, 29900, 29889, 29900, 29896, 29892, 297, 6689, 29922, 5574, 8443, 13, 30004, 13, 4706, 302, 29876, 29889, 2344, 29889, 8945, 23538, 1311, 29889, 20580, 29906, 29889, 7915, 29892, 2099, 29922, 29900, 29892, 3659, 29922, 29900, 29889, 29900, 29896, 8443, 13, 4706, 302, 29876, 29889, 2344, 29889, 23362, 23538, 1311, 29889, 20580, 29906, 29889, 29890, 3173, 29892, 29871, 29900, 8443, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 921, 29922, 1311, 29889, 20580, 29898, 29916, 8443, 13, 4706, 396, 29916, 29922, 1311, 29889, 11197, 29898, 29916, 8443, 13, 4706, 921, 29922, 1311, 29889, 2674, 29884, 29898, 29916, 8443, 13, 4706, 921, 29922, 1311, 29889, 20580, 29906, 29898, 29916, 8443, 13, 4706, 396, 29916, 29922, 1311, 29889, 11197, 29906, 29898, 29916, 8443, 13, 4706, 921, 29922, 1311, 29889, 2674, 29884, 29906, 29898, 29916, 8443, 13, 4706, 736, 921, 30004, 13, 30004, 13, 30004, 13, 29937, 3940, 278, 6931, 1244, 363, 317, 29941, 29928, 29899, 29954, 29901, 30004, 13, 29937, 960, 591, 731, 1023, 378, 4270, 29901, 29871, 29896, 29916, 29895, 29916, 29895, 718, 413, 29916, 29896, 29916, 29896, 29892, 372, 29915, 29879, 408, 4477, 29901, 313, 29886, 7607, 29895, 29899, 29896, 6802, 29906, 8443, 13, 29937, 19219, 1168, 29894, 29941, 29881, 29898, 2080, 29892, 4905, 29892, 17460, 29918, 2311, 7607, 29896, 29892, 29895, 29892, 29895, 511, 303, 2426, 29922, 29896, 29892, 12791, 7607, 29900, 29892, 29886, 29892, 29886, 876, 30004, 13, 29937, 1987, 19219, 1168, 29894, 29941, 29881, 29898, 4905, 29892, 4905, 29892, 17460, 29918, 2311, 7607, 29895, 29892, 29896, 29892, 29896, 511, 303, 2426, 29922, 29896, 29892, 12791, 7607, 29886, 29892, 29900, 29892, 29900, 876, 30004, 13, 30004, 13, 1990, 341, 11925, 29918, 29941, 29890, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 2428, 29898, 29924, 11925, 29918, 29941, 29890, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 30004, 13, 4706, 1583, 29889, 17519, 29900, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29953, 29946, 29892, 29871, 29896, 29953, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29896, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29953, 29946, 29892, 29871, 29941, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29941, 29906, 29892, 29871, 29906, 29946, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29906, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29953, 29946, 29892, 29871, 29896, 29953, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29896, 29953, 29892, 29871, 29896, 29906, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29941, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29941, 29892, 29871, 29941, 29892, 29871, 29941, 511, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29953, 29946, 29892, 29871, 29896, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 921, 29900, 353, 1583, 29889, 17519, 29900, 29898, 29916, 8443, 13, 4706, 921, 29896, 353, 1583, 29889, 17519, 29896, 29898, 29916, 8443, 13, 4706, 921, 29906, 353, 1583, 29889, 17519, 29906, 29898, 29916, 8443, 13, 4706, 921, 29941, 353, 1583, 29889, 17519, 29941, 29898, 29916, 8443, 13, 4706, 714, 353, 4842, 305, 29889, 4117, 3552, 29916, 29900, 29892, 921, 29896, 29892, 921, 29906, 29892, 921, 29941, 511, 29871, 29896, 8443, 13, 30004, 13, 4706, 736, 714, 30004, 13, 30004, 13, 30004, 13, 1990, 341, 11925, 29918, 29941, 29883, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 2428, 29898, 29924, 11925, 29918, 29941, 29883, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 4706, 1583, 29889, 17519, 29900, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29953, 29946, 29892, 29871, 29906, 29946, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29896, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29953, 29946, 29892, 29871, 29906, 29946, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29906, 29946, 29892, 29871, 29946, 29900, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29906, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29953, 29946, 29892, 29871, 29896, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29892, 29871, 29896, 29953, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29941, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29941, 29892, 29871, 29941, 29892, 29871, 29941, 511, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29953, 29946, 29892, 29871, 29896, 29953, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 921, 29900, 353, 1583, 29889, 17519, 29900, 29898, 29916, 8443, 13, 4706, 921, 29896, 353, 1583, 29889, 17519, 29896, 29898, 29916, 8443, 13, 4706, 921, 29906, 353, 1583, 29889, 17519, 29906, 29898, 29916, 8443, 13, 4706, 921, 29941, 353, 1583, 29889, 17519, 29941, 29898, 29916, 8443, 13, 4706, 714, 353, 4842, 305, 29889, 4117, 3552, 29916, 29900, 29892, 921, 29896, 29892, 921, 29906, 29892, 921, 29941, 511, 29871, 29896, 8443, 13, 4706, 736, 714, 30004, 13, 30004, 13, 30004, 13, 1990, 341, 11925, 29918, 29946, 29890, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 2428, 29898, 29924, 11925, 29918, 29946, 29890, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 30004, 13, 4706, 1583, 29889, 17519, 29900, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29929, 29953, 29892, 29871, 29941, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29896, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29929, 29953, 29892, 29871, 29941, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29941, 29906, 29892, 29871, 29953, 29946, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29906, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29929, 29953, 29892, 29871, 29941, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29941, 29906, 29892, 29871, 29896, 29953, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29941, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29941, 29892, 29871, 29941, 29892, 29871, 29941, 511, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29929, 29953, 29892, 29871, 29896, 29953, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 921, 29900, 353, 1583, 29889, 17519, 29900, 29898, 29916, 8443, 13, 4706, 921, 29896, 353, 1583, 29889, 17519, 29896, 29898, 29916, 8443, 13, 4706, 921, 29906, 353, 1583, 29889, 17519, 29906, 29898, 29916, 8443, 13, 4706, 921, 29941, 353, 1583, 29889, 17519, 29941, 29898, 29916, 8443, 13, 4706, 714, 353, 4842, 305, 29889, 4117, 3552, 29916, 29900, 29892, 921, 29896, 29892, 921, 29906, 29892, 921, 29941, 511, 29871, 29896, 8443, 13, 4706, 736, 714, 30004, 13, 30004, 13, 30004, 13, 1990, 341, 11925, 29918, 29946, 29883, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 2428, 29898, 29924, 11925, 29918, 29946, 29883, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 30004, 13, 4706, 1583, 29889, 17519, 29900, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29947, 29892, 29871, 29953, 29900, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29896, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29947, 29892, 29871, 29953, 29946, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29953, 29946, 29892, 29871, 29947, 29946, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29906, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29947, 29892, 29871, 29896, 29953, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29896, 29953, 29892, 29871, 29906, 29946, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29941, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29941, 29892, 29871, 29941, 29892, 29871, 29941, 511, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29947, 29892, 29871, 29906, 29946, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 921, 29900, 353, 1583, 29889, 17519, 29900, 29898, 29916, 8443, 13, 4706, 921, 29896, 353, 1583, 29889, 17519, 29896, 29898, 29916, 8443, 13, 4706, 921, 29906, 353, 1583, 29889, 17519, 29906, 29898, 29916, 8443, 13, 4706, 921, 29941, 353, 1583, 29889, 17519, 29941, 29898, 29916, 8443, 13, 4706, 714, 353, 4842, 305, 29889, 4117, 3552, 29916, 29900, 29892, 921, 29896, 29892, 921, 29906, 29892, 921, 29941, 511, 29871, 29896, 8443, 13, 4706, 736, 714, 30004, 13, 30004, 13, 30004, 13, 1990, 341, 11925, 29918, 29946, 29881, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 2428, 29898, 29924, 11925, 29918, 29946, 29881, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 30004, 13, 4706, 1583, 29889, 17519, 29900, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29945, 29896, 29906, 29892, 29871, 29896, 29906, 29947, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29896, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29945, 29896, 29906, 29892, 29871, 29896, 29906, 29947, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29947, 29892, 29871, 29906, 29945, 29953, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29906, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29945, 29896, 29906, 29892, 29871, 29906, 29946, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29906, 29946, 29892, 29871, 29953, 29946, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29941, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29941, 29892, 29871, 29941, 29892, 29871, 29941, 511, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29945, 29896, 29906, 29892, 29871, 29953, 29946, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 921, 29900, 353, 1583, 29889, 17519, 29900, 29898, 29916, 8443, 13, 4706, 921, 29896, 353, 1583, 29889, 17519, 29896, 29898, 29916, 8443, 13, 4706, 921, 29906, 353, 1583, 29889, 17519, 29906, 29898, 29916, 8443, 13, 4706, 921, 29941, 353, 1583, 29889, 17519, 29941, 29898, 29916, 8443, 13, 4706, 714, 353, 4842, 305, 29889, 4117, 3552, 29916, 29900, 29892, 921, 29896, 29892, 921, 29906, 29892, 921, 29941, 511, 29871, 29896, 8443, 13, 4706, 736, 714, 30004, 13, 30004, 13, 30004, 13, 1990, 341, 11925, 29918, 29946, 29872, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 2428, 29898, 29924, 11925, 29918, 29946, 29872, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 30004, 13, 4706, 1583, 29889, 17519, 29900, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29945, 29896, 29906, 29892, 29871, 29896, 29896, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29896, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29945, 29896, 29906, 29892, 29871, 29896, 29946, 29946, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29896, 29946, 29946, 29892, 29871, 29906, 29947, 29947, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29906, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29945, 29896, 29906, 29892, 29871, 29941, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29941, 29906, 29892, 29871, 29953, 29946, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29941, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29941, 29892, 29871, 29941, 29892, 29871, 29941, 511, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29945, 29896, 29906, 29892, 29871, 29953, 29946, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 4706, 1723, 30004, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 921, 29900, 353, 1583, 29889, 17519, 29900, 29898, 29916, 8443, 13, 4706, 921, 29896, 353, 1583, 29889, 17519, 29896, 29898, 29916, 8443, 13, 4706, 921, 29906, 353, 1583, 29889, 17519, 29906, 29898, 29916, 8443, 13, 4706, 921, 29941, 353, 1583, 29889, 17519, 29941, 29898, 29916, 8443, 13, 4706, 714, 353, 4842, 305, 29889, 4117, 3552, 29916, 29900, 29892, 921, 29896, 29892, 921, 29906, 29892, 921, 29941, 511, 29871, 29896, 8443, 13, 4706, 736, 714, 30004, 13, 30004, 13, 30004, 13, 1990, 341, 11925, 29918, 29946, 29888, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 2428, 29898, 29924, 11925, 29918, 29946, 29888, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 30004, 13, 4706, 1583, 29889, 17519, 29900, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29947, 29892, 29871, 29941, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 3986, 396, 29871, 29946, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29896, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29947, 29892, 29871, 29941, 29953, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29941, 29953, 29892, 29871, 29953, 29946, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 29871, 396, 29871, 29953, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29906, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29947, 29892, 29871, 29896, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29892, 29871, 29896, 29953, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 259, 396, 29871, 29941, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29941, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29941, 29892, 29871, 29941, 29892, 29871, 29941, 511, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29947, 29892, 29871, 29896, 29953, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 3986, 396, 29871, 29941, 30004, 13, 4706, 1723, 30004, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 921, 29900, 353, 1583, 29889, 17519, 29900, 29898, 29916, 8443, 13, 4706, 921, 29896, 353, 1583, 29889, 17519, 29896, 29898, 29916, 8443, 13, 4706, 921, 29906, 353, 1583, 29889, 17519, 29906, 29898, 29916, 8443, 13, 4706, 921, 29941, 353, 1583, 29889, 17519, 29941, 29898, 29916, 8443, 13, 4706, 714, 353, 4842, 305, 29889, 4117, 3552, 29916, 29900, 29892, 921, 29896, 29892, 921, 29906, 29892, 921, 29941, 511, 29871, 29896, 8443, 13, 4706, 736, 714, 30004, 13, 30004, 13, 30004, 13, 1990, 341, 11925, 29918, 29945, 29890, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 2428, 29898, 29924, 11925, 29918, 29945, 29890, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 30004, 13, 4706, 1583, 29889, 17519, 29900, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29929, 29953, 29892, 29871, 29941, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 965, 396, 29871, 29946, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29896, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29929, 29953, 29892, 29871, 29906, 29946, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29906, 29946, 29892, 29871, 29946, 29947, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 1678, 396, 29871, 29953, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29906, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29929, 29953, 29892, 29871, 29896, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29896, 29906, 29892, 29871, 29906, 29946, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 268, 396, 29871, 29941, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29941, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29941, 29892, 29871, 29941, 29892, 29871, 29941, 511, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29929, 29953, 29892, 29871, 29906, 29946, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 965, 396, 29871, 29941, 30004, 13, 4706, 1723, 30004, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 921, 29900, 353, 1583, 29889, 17519, 29900, 29898, 29916, 8443, 13, 4706, 921, 29896, 353, 1583, 29889, 17519, 29896, 29898, 29916, 8443, 13, 4706, 921, 29906, 353, 1583, 29889, 17519, 29906, 29898, 29916, 8443, 13, 4706, 921, 29941, 353, 1583, 29889, 17519, 29941, 29898, 29916, 8443, 13, 4706, 714, 353, 4842, 305, 29889, 4117, 3552, 29916, 29900, 29892, 921, 29896, 29892, 921, 29906, 29892, 921, 29941, 511, 29871, 29896, 8443, 13, 4706, 736, 714, 30004, 13, 30004, 13, 30004, 13, 1990, 341, 11925, 29918, 29945, 29883, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 2428, 29898, 29924, 11925, 29918, 29945, 29883, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 30004, 13, 4706, 1583, 29889, 17519, 29900, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29929, 29906, 29892, 29871, 29929, 29953, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 3986, 396, 29871, 29941, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29896, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29929, 29906, 29892, 29871, 29953, 29946, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29953, 29946, 29892, 29871, 29929, 29953, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 29871, 396, 29871, 29941, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29906, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29929, 29906, 29892, 29871, 29896, 29953, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 30004, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29896, 29953, 29892, 29871, 29941, 29906, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 1678, 396, 29871, 29896, 30004, 13, 4706, 1723, 30004, 13, 4706, 1583, 29889, 17519, 29941, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29941, 29892, 29871, 29941, 29892, 29871, 29941, 511, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29929, 29906, 29892, 29871, 29941, 29906, 29892, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 511, 965, 396, 29871, 29896, 30004, 13, 4706, 1723, 30004, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 921, 29900, 353, 1583, 29889, 17519, 29900, 29898, 29916, 8443, 13, 4706, 921, 29896, 353, 1583, 29889, 17519, 29896, 29898, 29916, 8443, 13, 4706, 921, 29906, 353, 1583, 29889, 17519, 29906, 29898, 29916, 8443, 13, 4706, 921, 29941, 353, 1583, 29889, 17519, 29941, 29898, 29916, 8443, 13, 4706, 714, 353, 4842, 305, 29889, 4117, 3552, 29916, 29900, 29892, 921, 29896, 29892, 921, 29906, 29892, 921, 29941, 511, 29871, 29896, 8443, 13, 4706, 736, 714, 30004, 13, 30004, 13, 30004, 13, 1990, 20894, 1082, 29898, 15755, 29889, 7355, 1125, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 2428, 29898, 15737, 1082, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 736, 921, 29889, 17858, 1082, 29898, 29900, 29892, 29906, 29892, 29896, 29892, 29941, 29892, 29946, 8443, 13, 30004, 13, 30004, 13, 1990, 317, 29941, 29928, 29954, 29898, 15755, 29889, 7355, 1125, 30004, 13, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 8297, 29918, 2311, 353, 29871, 29945, 29896, 29906, 29892, 4742, 353, 6213, 29892, 5768, 449, 353, 29871, 29900, 29889, 29945, 29892, 1881, 29918, 12719, 29922, 29941, 29892, 18652, 29918, 29879, 802, 29872, 911, 29922, 5574, 1125, 30004, 13, 4706, 2428, 29898, 29903, 29941, 29928, 29954, 29892, 1583, 467, 1649, 2344, 1649, 26471, 13, 4706, 1583, 29889, 22100, 353, 302, 29876, 29889, 16941, 2556, 29898, 30004, 13, 9651, 835, 13383, 7346, 29937, 450, 624, 331, 8527, 835, 13383, 7346, 29937, 30004, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 2080, 29918, 12719, 29892, 29871, 29896, 29953, 29892, 8466, 29918, 2311, 29922, 29953, 29892, 380, 2426, 29922, 29906, 29892, 7164, 29922, 29906, 511, 4706, 396, 313, 29896, 29953, 29892, 29871, 29896, 29896, 29906, 29892, 29871, 29896, 29896, 29946, 29892, 29871, 29929, 29947, 8443, 13, 9651, 19219, 1168, 29894, 29941, 29881, 29898, 29896, 29953, 29892, 29871, 29941, 29906, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 462, 259, 396, 313, 29941, 29906, 29892, 29871, 29896, 29896, 29906, 29892, 29871, 29896, 29896, 29946, 29892, 29871, 29929, 29947, 8443, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29906, 29892, 29871, 29906, 29892, 29871, 29906, 511, 380, 2426, 7607, 29906, 29892, 29871, 29906, 29892, 29871, 29906, 511, 7164, 7607, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 8243, 29871, 396, 313, 29941, 29906, 29892, 29871, 29896, 29896, 29906, 29892, 29871, 29945, 29955, 29892, 29871, 29946, 29929, 8443, 13, 9651, 6850, 1168, 29894, 29941, 29881, 29898, 29941, 29906, 29892, 29871, 29953, 29946, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 511, 462, 418, 396, 313, 29953, 29946, 29892, 29871, 29896, 29896, 29906, 29892, 29871, 29945, 29955, 29892, 29871, 29946, 29929, 8443, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29896, 29892, 29871, 29941, 29892, 29871, 29941, 511, 380, 2426, 7607, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 511, 7164, 7607, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 8243, 29871, 396, 313, 29953, 29946, 29892, 29871, 29896, 29896, 29906, 29892, 29871, 29906, 29947, 29892, 29871, 29906, 29946, 8443, 13, 30004, 13, 9651, 835, 13383, 4136, 29937, 9266, 683, 718, 2538, 333, 950, 7602, 29941, 29881, 835, 13383, 4136, 29937, 30004, 13, 9651, 341, 11925, 29918, 29941, 29883, 3285, 462, 462, 462, 18884, 396, 313, 29929, 29953, 29892, 29871, 29896, 29896, 29906, 29892, 29871, 29906, 29947, 29892, 29871, 29906, 29946, 8443, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 511, 380, 2426, 7607, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 511, 7164, 7607, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 8243, 29871, 396, 313, 29929, 29953, 29892, 29871, 29896, 29896, 29906, 29892, 29871, 29896, 29946, 29892, 29871, 29896, 29906, 8443, 13, 9651, 341, 11925, 29918, 29946, 29890, 3285, 462, 462, 462, 18884, 396, 313, 29896, 29906, 29947, 29892, 29871, 29896, 29896, 29906, 29892, 29871, 29896, 29946, 29892, 29871, 29896, 29906, 8443, 13, 9651, 341, 11925, 29918, 29946, 29883, 3285, 462, 462, 462, 18884, 396, 313, 29896, 29929, 29906, 29892, 29871, 29896, 29896, 29906, 29892, 29871, 29896, 29946, 29892, 29871, 29896, 29906, 8443, 13, 9651, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 7607, 29906, 29892, 29871, 29906, 29892, 29871, 29906, 511, 380, 2426, 7607, 29906, 29892, 29871, 29906, 29892, 29871, 29906, 511, 7164, 7607, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 8243, 29871, 396, 313, 29896, 29929, 29906, 29892, 29871, 29945, 29953, 29892, 29871, 29955, 29892, 29871, 29953, 8443, 13, 9651, 341, 11925, 29918, 29945, 29883, 3285, 462, 462, 462, 18884, 396, 313, 29906, 29945, 29953, 29892, 29871, 29945, 29953, 29892, 29871, 29955, 29892, 29871, 29953, 8443, 13, 9651, 302, 29876, 29889, 29909, 1388, 415, 573, 12810, 29887, 11426, 29941, 29881, 29898, 4905, 29918, 2311, 7607, 29945, 29953, 29892, 29871, 29906, 29892, 29871, 29906, 8243, 30004, 13, 4706, 1723, 30004, 13, 30004, 13, 4706, 1583, 29889, 13801, 29918, 449, 29918, 29896, 353, 302, 29876, 29889, 12697, 29898, 29896, 29900, 29906, 29946, 29892, 8297, 29918, 2311, 8443, 13, 4706, 396, 1311, 29889, 13801, 29918, 449, 29918, 29906, 353, 302, 29876, 29889, 12697, 29898, 29896, 29953, 29953, 29900, 29892, 29871, 29953, 29946, 29930, 29946, 29930, 29906, 8443, 13, 4706, 1583, 29889, 8865, 449, 353, 302, 29876, 29889, 15063, 449, 29898, 29886, 29922, 29900, 29889, 29945, 8443, 13, 4706, 1583, 29889, 1028, 15238, 29918, 29879, 802, 29872, 911, 353, 18652, 29918, 29879, 802, 29872, 911, 30004, 13, 4706, 1583, 29889, 2695, 3317, 353, 302, 29876, 29889, 6295, 615, 3317, 26471, 13, 4706, 1583, 29889, 10141, 353, 4742, 30004, 13, 4706, 1583, 29889, 2674, 29884, 353, 302, 29876, 29889, 3226, 557, 29891, 1123, 29931, 29965, 29898, 22198, 29918, 29879, 417, 412, 29922, 29900, 29889, 29900, 29896, 29892, 297, 6689, 29922, 5574, 8443, 13, 30004, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 30004, 13, 4706, 396, 2158, 703, 11228, 8267, 584, 9162, 921, 29889, 12181, 8443, 13, 4706, 921, 353, 921, 29889, 17858, 1082, 29898, 29900, 29892, 29906, 29892, 29896, 29892, 29941, 29892, 29946, 467, 517, 29898, 1311, 29889, 10141, 8443, 13, 4706, 1480, 1169, 353, 1583, 29889, 22100, 29898, 29916, 8443, 13, 30004, 13, 4706, 565, 1583, 29889, 1028, 15238, 29918, 29879, 802, 29872, 911, 29901, 30004, 13, 9651, 1480, 1169, 353, 1480, 1169, 29889, 29879, 802, 29872, 911, 29898, 29941, 8443, 13, 9651, 1480, 1169, 353, 1480, 1169, 29889, 29879, 802, 29872, 911, 29898, 29941, 8443, 13, 30004, 13, 4706, 350, 29903, 353, 1480, 1169, 29889, 12181, 29961, 29900, 29962, 30004, 13, 30004, 13, 4706, 1596, 703, 14394, 8267, 584, 9162, 1480, 1169, 29889, 12181, 8443, 13, 4706, 714, 353, 1583, 29889, 2674, 29884, 29898, 1311, 29889, 13801, 29918, 449, 29918, 29896, 29898, 1311, 29889, 8865, 449, 29898, 1188, 1169, 29889, 17858, 1082, 29898, 29900, 29892, 29906, 29892, 29896, 29892, 29941, 29892, 29946, 467, 690, 14443, 29898, 9851, 29892, 29871, 29945, 29953, 29892, 448, 29896, 13697, 30004, 13, 30004, 13, 4706, 736, 714, 30004, 13, 30004, 13, 1678, 822, 2254, 29918, 3859, 29918, 8977, 29898, 1311, 29892, 2224, 1125, 30004, 13, 4706, 3646, 29918, 705, 5861, 353, 4842, 305, 29889, 1359, 29898, 2084, 8443, 13, 4706, 1914, 29918, 3859, 353, 1583, 29889, 3859, 29918, 8977, 26471, 13, 30004, 13, 4706, 363, 1024, 29892, 1828, 297, 3646, 29918, 705, 5861, 29889, 7076, 7295, 30004, 13, 30004, 13, 9651, 565, 1024, 297, 1914, 29918, 3859, 29901, 30004, 13, 18884, 565, 338, 8758, 29898, 3207, 29892, 302, 29876, 29889, 9329, 1125, 30004, 13, 462, 1678, 1828, 353, 1828, 29889, 1272, 30004, 13, 18884, 1018, 29901, 30004, 13, 462, 1678, 565, 7431, 29898, 3207, 29889, 2311, 3101, 1275, 29871, 29945, 322, 1828, 29889, 2311, 580, 29961, 29941, 29962, 297, 518, 29941, 29892, 29871, 29955, 5387, 30004, 13, 462, 4706, 1914, 29918, 3859, 29961, 978, 3816, 29901, 29892, 584, 29892, 29871, 29900, 29892, 584, 29892, 584, 29962, 353, 4842, 305, 29889, 12676, 29898, 3207, 29892, 29871, 29906, 8443, 13, 462, 1678, 1683, 29901, 30004, 13, 462, 4706, 1914, 29918, 3859, 29961, 978, 1822, 8552, 23538, 3207, 8443, 13, 18884, 5174, 8960, 29901, 30004, 13, 462, 1678, 12020, 24875, 2392, 877, 8809, 488, 17596, 278, 3443, 4257, 426, 1836, 29905, 30004, 13, 462, 462, 539, 5069, 13391, 297, 278, 1904, 526, 6571, 322, 320, 30004, 13, 462, 462, 539, 5069, 13391, 297, 278, 1423, 3149, 526, 426, 1836, 29905, 30004, 13, 462, 462, 539, 15300, 4830, 29898, 978, 29892, 1914, 29918, 3859, 29961, 978, 1822, 2311, 3285, 1828, 29889, 2311, 22130, 30004, 13, 9651, 1683, 29901, 30004, 13, 18884, 1596, 877, 8875, 28103, 1059, 297, 1180, 1218, 4128, 4286, 4830, 29898, 978, 876, 30004, 13, 4706, 4567, 353, 731, 29898, 776, 29918, 3859, 29889, 8149, 3101, 448, 731, 29898, 5182, 29918, 705, 5861, 29889, 8149, 3101, 30004, 13, 30004, 13, 4706, 1596, 877, 8875, 6611, 526, 451, 4808, 287, 297, 3646, 1423, 9748, 4286, 4830, 29898, 2435, 29898, 27259, 4961, 30004, 13, 30004, 13, 30004, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 30004, 13, 30004, 13, 1678, 1904, 353, 317, 29941, 29928, 29954, 29898, 17987, 29918, 2311, 29922, 29945, 29896, 29906, 8443, 13, 30004, 13, 1678, 396, 25455, 278, 18177, 411, 758, 3018, 1312, 306, 29941, 29928, 7787, 29889, 512, 9493, 11167, 13, 1678, 396, 3113, 2737, 304, 2702, 9483, 1133, 2254, 29918, 3859, 29918, 8977, 580, 740, 30004, 13, 1678, 396, 361, 451, 2897, 29889, 2084, 29889, 9933, 877, 4299, 705, 5861, 29914, 28212, 29918, 326, 5370, 300, 29889, 29886, 6321, 29374, 30004, 13, 4706, 396, 2158, 525, 3782, 18177, 7460, 29991, 3113, 5142, 937, 29892, 470, 3440, 29871, 29941, 29947, 29906, 30022, 29941, 29947, 29946, 386, 1196, 29915, 30004, 13, 1678, 396, 4299, 29889, 1359, 29918, 3859, 29918, 8977, 877, 4299, 705, 5861, 29914, 28212, 29918, 326, 5370, 300, 29889, 29886, 6321, 1495, 30004, 13, 1678, 1904, 353, 1904, 29889, 29883, 6191, 26471, 13, 1678, 848, 353, 4842, 305, 29889, 1300, 468, 3665, 29889, 16174, 29898, 7345, 305, 29889, 9502, 29898, 29941, 29892, 29871, 29906, 29906, 29946, 29892, 29871, 29941, 29892, 29871, 29906, 29906, 29947, 29892, 29871, 29896, 29929, 29953, 8106, 29883, 6191, 580, 29871, 396, 518, 9851, 29892, 315, 29892, 323, 29892, 379, 29892, 399, 29962, 30004, 13, 1678, 1596, 29898, 4299, 8443, 13, 1678, 714, 353, 1904, 29898, 1272, 8443, 13, 1678, 1596, 29898, 449, 29889, 12181, 29897, 2 ]
certbot/certbot/plugins/dns_test_common_lexicon.py
vivithemage/certbot
3
77534
<gh_stars>1-10 """Base test class for DNS authenticators built on Lexicon.""" from typing import Any from typing import TYPE_CHECKING from unittest.mock import MagicMock import josepy as jose from requests.exceptions import HTTPError from requests.exceptions import RequestException from certbot import errors from certbot.achallenges import AnnotatedChallenge from certbot.plugins import dns_test_common from certbot.plugins.dns_common_lexicon import LexiconClient from certbot.plugins.dns_test_common import _AuthenticatorCallableTestCase from certbot.tests import util as test_util try: import mock except ImportError: # pragma: no cover from unittest import mock # type: ignore if TYPE_CHECKING: from typing_extensions import Protocol else: Protocol = object DOMAIN = 'example.com' KEY = jose.JWKRSA.load(test_util.load_vector("rsa512_key.pem")) class _AuthenticatorCallableLexiconTestCase(_AuthenticatorCallableTestCase, Protocol): """ Protocol describing a TestCase suitable to test challenges against a mocked LexiconClient instance. """ mock_client: MagicMock achall: AnnotatedChallenge class _LexiconAwareTestCase(Protocol): """ Protocol describing a TestCase suitable to test a real LexiconClient instance. """ client: LexiconClient provider_mock: MagicMock record_prefix: str record_name: str record_content: str DOMAIN_NOT_FOUND: Exception GENERIC_ERROR: Exception LOGIN_ERROR: Exception UNKNOWN_LOGIN_ERROR: Exception def assertRaises(self, *unused_args: Any) -> None: """ See https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertRaises """ ... # These classes are intended to be subclassed/mixed in, so not all members are defined. # pylint: disable=no-member class BaseLexiconAuthenticatorTest(dns_test_common.BaseAuthenticatorTest): @test_util.patch_display_util() def test_perform(self: _AuthenticatorCallableLexiconTestCase, unused_mock_get_utility: Any) -> None: self.auth.perform([self.achall]) expected = [mock.call.add_txt_record(DOMAIN, '_acme-challenge.'+DOMAIN, mock.ANY)] self.assertEqual(expected, self.mock_client.mock_calls) def test_cleanup(self: _AuthenticatorCallableLexiconTestCase) -> None: self.auth._attempt_cleanup = True # _attempt_cleanup | pylint: disable=protected-access self.auth.cleanup([self.achall]) expected = [mock.call.del_txt_record(DOMAIN, '_acme-challenge.'+DOMAIN, mock.ANY)] self.assertEqual(expected, self.mock_client.mock_calls) class BaseLexiconClientTest: DOMAIN_NOT_FOUND = Exception('No domain found') GENERIC_ERROR = RequestException LOGIN_ERROR = HTTPError('400 Client Error: ...') UNKNOWN_LOGIN_ERROR = HTTPError('500 Surprise! Error: ...') record_prefix = "_acme-challenge" record_name = record_prefix + "." + DOMAIN record_content = "bar" def test_add_txt_record(self: _LexiconAwareTestCase) -> None: self.client.add_txt_record(DOMAIN, self.record_name, self.record_content) self.provider_mock.create_record.assert_called_with(rtype='TXT', name=self.record_name, content=self.record_content) def test_add_txt_record_try_twice_to_find_domain(self: _LexiconAwareTestCase) -> None: self.provider_mock.authenticate.side_effect = [self.DOMAIN_NOT_FOUND, ''] self.client.add_txt_record(DOMAIN, self.record_name, self.record_content) self.provider_mock.create_record.assert_called_with(rtype='TXT', name=self.record_name, content=self.record_content) def test_add_txt_record_fail_to_find_domain(self: _LexiconAwareTestCase) -> None: self.provider_mock.authenticate.side_effect = [self.DOMAIN_NOT_FOUND, self.DOMAIN_NOT_FOUND, self.DOMAIN_NOT_FOUND,] self.assertRaises(errors.PluginError, self.client.add_txt_record, DOMAIN, self.record_name, self.record_content) def test_add_txt_record_fail_to_authenticate(self: _LexiconAwareTestCase) -> None: self.provider_mock.authenticate.side_effect = self.LOGIN_ERROR self.assertRaises(errors.PluginError, self.client.add_txt_record, DOMAIN, self.record_name, self.record_content) def test_add_txt_record_fail_to_authenticate_with_unknown_error( self: _LexiconAwareTestCase) -> None: self.provider_mock.authenticate.side_effect = self.UNKNOWN_LOGIN_ERROR self.assertRaises(errors.PluginError, self.client.add_txt_record, DOMAIN, self.record_name, self.record_content) def test_add_txt_record_error_finding_domain(self: _LexiconAwareTestCase) -> None: self.provider_mock.authenticate.side_effect = self.GENERIC_ERROR self.assertRaises(errors.PluginError, self.client.add_txt_record, DOMAIN, self.record_name, self.record_content) def test_add_txt_record_error_adding_record(self: _LexiconAwareTestCase) -> None: self.provider_mock.create_record.side_effect = self.GENERIC_ERROR self.assertRaises(errors.PluginError, self.client.add_txt_record, DOMAIN, self.record_name, self.record_content) def test_del_txt_record(self: _LexiconAwareTestCase) -> None: self.client.del_txt_record(DOMAIN, self.record_name, self.record_content) self.provider_mock.delete_record.assert_called_with(rtype='TXT', name=self.record_name, content=self.record_content) def test_del_txt_record_fail_to_find_domain(self: _LexiconAwareTestCase) -> None: self.provider_mock.authenticate.side_effect = [self.DOMAIN_NOT_FOUND, self.DOMAIN_NOT_FOUND, self.DOMAIN_NOT_FOUND, ] self.client.del_txt_record(DOMAIN, self.record_name, self.record_content) def test_del_txt_record_fail_to_authenticate(self: _LexiconAwareTestCase) -> None: self.provider_mock.authenticate.side_effect = self.LOGIN_ERROR self.client.del_txt_record(DOMAIN, self.record_name, self.record_content) def test_del_txt_record_fail_to_authenticate_with_unknown_error( self: _LexiconAwareTestCase) -> None: self.provider_mock.authenticate.side_effect = self.UNKNOWN_LOGIN_ERROR self.client.del_txt_record(DOMAIN, self.record_name, self.record_content) def test_del_txt_record_error_finding_domain(self: _LexiconAwareTestCase) -> None: self.provider_mock.authenticate.side_effect = self.GENERIC_ERROR self.client.del_txt_record(DOMAIN, self.record_name, self.record_content) def test_del_txt_record_error_deleting_record(self: _LexiconAwareTestCase) -> None: self.provider_mock.delete_record.side_effect = self.GENERIC_ERROR self.client.del_txt_record(DOMAIN, self.record_name, self.record_content)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 5160, 1243, 770, 363, 16332, 15585, 4097, 4240, 373, 15045, 4144, 1213, 15945, 13, 3166, 19229, 1053, 3139, 13, 3166, 19229, 1053, 323, 6959, 29918, 3210, 16658, 4214, 13, 3166, 443, 27958, 29889, 17640, 1053, 26494, 18680, 13, 13, 5215, 432, 852, 2272, 408, 432, 852, 13, 3166, 7274, 29889, 11739, 29879, 1053, 7331, 2392, 13, 3166, 7274, 29889, 11739, 29879, 1053, 10729, 2451, 13, 13, 3166, 2284, 7451, 1053, 4436, 13, 3166, 2284, 7451, 29889, 496, 16047, 267, 1053, 530, 1333, 630, 1451, 11768, 13, 3166, 2284, 7451, 29889, 12800, 1053, 270, 1983, 29918, 1688, 29918, 9435, 13, 3166, 2284, 7451, 29889, 12800, 29889, 29881, 1983, 29918, 9435, 29918, 2506, 4144, 1053, 15045, 4144, 4032, 13, 3166, 2284, 7451, 29889, 12800, 29889, 29881, 1983, 29918, 1688, 29918, 9435, 1053, 903, 6444, 4173, 1061, 5594, 519, 3057, 8259, 13, 3166, 2284, 7451, 29889, 21150, 1053, 3667, 408, 1243, 29918, 4422, 13, 13, 2202, 29901, 13, 1678, 1053, 11187, 13, 19499, 16032, 2392, 29901, 29871, 396, 282, 23929, 29901, 694, 4612, 13, 1678, 515, 443, 27958, 1053, 11187, 29871, 396, 1134, 29901, 11455, 13, 361, 323, 6959, 29918, 3210, 16658, 4214, 29901, 13, 1678, 515, 19229, 29918, 24299, 1053, 1019, 5770, 13, 2870, 29901, 13, 1678, 1019, 5770, 353, 1203, 13, 13, 3970, 29032, 353, 525, 4773, 29889, 510, 29915, 13, 10818, 353, 432, 852, 29889, 29967, 29956, 29968, 29934, 8132, 29889, 1359, 29898, 1688, 29918, 4422, 29889, 1359, 29918, 8111, 703, 2288, 29874, 29945, 29896, 29906, 29918, 1989, 29889, 29886, 331, 5783, 13, 13, 13, 1990, 903, 6444, 4173, 1061, 5594, 519, 29931, 735, 4144, 3057, 8259, 7373, 6444, 4173, 1061, 5594, 519, 3057, 8259, 29892, 1019, 5770, 1125, 13, 1678, 9995, 13, 1678, 1019, 5770, 20766, 263, 4321, 8259, 13907, 304, 1243, 18066, 267, 2750, 13, 1678, 263, 11187, 287, 15045, 4144, 4032, 2777, 29889, 13, 1678, 9995, 13, 1678, 11187, 29918, 4645, 29901, 26494, 18680, 13, 1678, 3657, 497, 29901, 530, 1333, 630, 1451, 11768, 13, 13, 13, 1990, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29898, 17830, 1125, 13, 1678, 9995, 13, 1678, 1019, 5770, 20766, 263, 4321, 8259, 13907, 304, 1243, 263, 1855, 15045, 4144, 4032, 2777, 29889, 13, 1678, 9995, 13, 1678, 3132, 29901, 15045, 4144, 4032, 13, 1678, 13113, 29918, 17640, 29901, 26494, 18680, 13, 13, 1678, 2407, 29918, 13506, 29901, 851, 13, 1678, 2407, 29918, 978, 29901, 851, 13, 1678, 2407, 29918, 3051, 29901, 851, 13, 13, 1678, 11662, 29032, 29918, 12256, 29918, 5800, 18783, 29901, 8960, 13, 1678, 402, 1430, 1001, 2965, 29918, 11432, 29901, 8960, 13, 1678, 25401, 1177, 29918, 11432, 29901, 8960, 13, 1678, 8291, 29968, 6632, 16048, 29918, 14480, 1177, 29918, 11432, 29901, 8960, 13, 13, 1678, 822, 4974, 29934, 1759, 267, 29898, 1311, 29892, 334, 348, 3880, 29918, 5085, 29901, 3139, 29897, 1599, 6213, 29901, 13, 4706, 9995, 13, 4706, 2823, 13, 4706, 2045, 597, 2640, 29889, 4691, 29889, 990, 29914, 29941, 29914, 5258, 29914, 348, 27958, 29889, 1420, 29937, 348, 27958, 29889, 3057, 8259, 29889, 9294, 29934, 1759, 267, 13, 4706, 9995, 13, 4706, 2023, 13, 13, 13, 29937, 4525, 4413, 526, 9146, 304, 367, 19481, 287, 29914, 29885, 11925, 297, 29892, 577, 451, 599, 5144, 526, 3342, 29889, 13, 29937, 282, 2904, 524, 29901, 11262, 29922, 1217, 29899, 14242, 13, 13, 1990, 7399, 29931, 735, 4144, 6444, 4173, 1061, 3057, 29898, 29881, 1983, 29918, 1688, 29918, 9435, 29889, 5160, 6444, 4173, 1061, 3057, 1125, 13, 13, 1678, 732, 1688, 29918, 4422, 29889, 5041, 29918, 4990, 29918, 4422, 580, 13, 1678, 822, 1243, 29918, 19826, 29898, 1311, 29901, 903, 6444, 4173, 1061, 5594, 519, 29931, 735, 4144, 3057, 8259, 29892, 13, 462, 268, 443, 3880, 29918, 17640, 29918, 657, 29918, 329, 1793, 29901, 3139, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 5150, 29889, 19826, 4197, 1311, 29889, 496, 497, 2314, 13, 13, 4706, 3806, 353, 518, 17640, 29889, 4804, 29889, 1202, 29918, 3945, 29918, 11651, 29898, 3970, 29032, 29892, 22868, 562, 1004, 29899, 305, 11768, 6169, 29974, 3970, 29032, 29892, 11187, 29889, 2190, 29979, 4638, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9684, 29892, 1583, 29889, 17640, 29918, 4645, 29889, 17640, 29918, 29883, 4293, 29897, 13, 13, 1678, 822, 1243, 29918, 14941, 786, 29898, 1311, 29901, 903, 6444, 4173, 1061, 5594, 519, 29931, 735, 4144, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 5150, 3032, 1131, 3456, 29918, 14941, 786, 353, 5852, 29871, 396, 903, 1131, 3456, 29918, 14941, 786, 891, 282, 2904, 524, 29901, 11262, 29922, 24681, 29899, 5943, 13, 4706, 1583, 29889, 5150, 29889, 14941, 786, 4197, 1311, 29889, 496, 497, 2314, 13, 13, 4706, 3806, 353, 518, 17640, 29889, 4804, 29889, 6144, 29918, 3945, 29918, 11651, 29898, 3970, 29032, 29892, 22868, 562, 1004, 29899, 305, 11768, 6169, 29974, 3970, 29032, 29892, 11187, 29889, 2190, 29979, 4638, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9684, 29892, 1583, 29889, 17640, 29918, 4645, 29889, 17640, 29918, 29883, 4293, 29897, 13, 13, 13, 1990, 7399, 29931, 735, 4144, 4032, 3057, 29901, 13, 1678, 11662, 29032, 29918, 12256, 29918, 5800, 18783, 353, 8960, 877, 3782, 5354, 1476, 1495, 13, 1678, 402, 1430, 1001, 2965, 29918, 11432, 353, 10729, 2451, 13, 1678, 25401, 1177, 29918, 11432, 353, 7331, 2392, 877, 29946, 29900, 29900, 12477, 4829, 29901, 2023, 1495, 13, 1678, 8291, 29968, 6632, 16048, 29918, 14480, 1177, 29918, 11432, 353, 7331, 2392, 877, 29945, 29900, 29900, 6298, 7734, 29991, 4829, 29901, 2023, 1495, 13, 13, 1678, 2407, 29918, 13506, 353, 11119, 562, 1004, 29899, 305, 11768, 29908, 13, 1678, 2407, 29918, 978, 353, 2407, 29918, 13506, 718, 376, 1213, 718, 11662, 29032, 13, 1678, 2407, 29918, 3051, 353, 376, 1646, 29908, 13, 13, 1678, 822, 1243, 29918, 1202, 29918, 3945, 29918, 11651, 29898, 1311, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 4645, 29889, 1202, 29918, 3945, 29918, 11651, 29898, 3970, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 3258, 29918, 11651, 29889, 9294, 29918, 13998, 29918, 2541, 29898, 29878, 1853, 2433, 29911, 12188, 742, 13, 462, 462, 462, 9651, 1024, 29922, 1311, 29889, 11651, 29918, 978, 29892, 13, 462, 462, 462, 9651, 2793, 29922, 1311, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 1202, 29918, 3945, 29918, 11651, 29918, 2202, 29918, 7516, 625, 29918, 517, 29918, 2886, 29918, 7247, 29898, 1311, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 27218, 403, 29889, 2975, 29918, 15987, 353, 518, 1311, 29889, 3970, 29032, 29918, 12256, 29918, 5800, 18783, 29892, 525, 2033, 13, 13, 4706, 1583, 29889, 4645, 29889, 1202, 29918, 3945, 29918, 11651, 29898, 3970, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 3258, 29918, 11651, 29889, 9294, 29918, 13998, 29918, 2541, 29898, 29878, 1853, 2433, 29911, 12188, 742, 13, 462, 462, 462, 9651, 1024, 29922, 1311, 29889, 11651, 29918, 978, 29892, 13, 462, 462, 462, 9651, 2793, 29922, 1311, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 1202, 29918, 3945, 29918, 11651, 29918, 14057, 29918, 517, 29918, 2886, 29918, 7247, 29898, 1311, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 27218, 403, 29889, 2975, 29918, 15987, 353, 518, 1311, 29889, 3970, 29032, 29918, 12256, 29918, 5800, 18783, 29892, 13, 462, 462, 462, 539, 1583, 29889, 3970, 29032, 29918, 12256, 29918, 5800, 18783, 29892, 13, 462, 462, 462, 539, 1583, 29889, 3970, 29032, 29918, 12256, 29918, 5800, 18783, 26073, 13, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 12523, 29889, 16288, 2392, 29892, 13, 462, 3986, 1583, 29889, 4645, 29889, 1202, 29918, 3945, 29918, 11651, 29892, 13, 462, 3986, 11662, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 1202, 29918, 3945, 29918, 11651, 29918, 14057, 29918, 517, 29918, 27218, 403, 29898, 1311, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 27218, 403, 29889, 2975, 29918, 15987, 353, 1583, 29889, 14480, 1177, 29918, 11432, 13, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 12523, 29889, 16288, 2392, 29892, 13, 462, 3986, 1583, 29889, 4645, 29889, 1202, 29918, 3945, 29918, 11651, 29892, 13, 462, 3986, 11662, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 1202, 29918, 3945, 29918, 11651, 29918, 14057, 29918, 517, 29918, 27218, 403, 29918, 2541, 29918, 26690, 29918, 2704, 29898, 13, 9651, 1583, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 27218, 403, 29889, 2975, 29918, 15987, 353, 1583, 29889, 3904, 29968, 6632, 16048, 29918, 14480, 1177, 29918, 11432, 13, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 12523, 29889, 16288, 2392, 29892, 13, 462, 3986, 1583, 29889, 4645, 29889, 1202, 29918, 3945, 29918, 11651, 29892, 13, 462, 3986, 11662, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 1202, 29918, 3945, 29918, 11651, 29918, 2704, 29918, 2886, 292, 29918, 7247, 29898, 1311, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 27218, 403, 29889, 2975, 29918, 15987, 353, 1583, 29889, 24647, 1001, 2965, 29918, 11432, 13, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 12523, 29889, 16288, 2392, 29892, 13, 462, 3986, 1583, 29889, 4645, 29889, 1202, 29918, 3945, 29918, 11651, 29892, 13, 462, 3986, 11662, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 1202, 29918, 3945, 29918, 11651, 29918, 2704, 29918, 4676, 29918, 11651, 29898, 1311, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 3258, 29918, 11651, 29889, 2975, 29918, 15987, 353, 1583, 29889, 24647, 1001, 2965, 29918, 11432, 13, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 12523, 29889, 16288, 2392, 29892, 13, 462, 3986, 1583, 29889, 4645, 29889, 1202, 29918, 3945, 29918, 11651, 29892, 13, 462, 3986, 11662, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 6144, 29918, 3945, 29918, 11651, 29898, 1311, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 4645, 29889, 6144, 29918, 3945, 29918, 11651, 29898, 3970, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 8143, 29918, 11651, 29889, 9294, 29918, 13998, 29918, 2541, 29898, 29878, 1853, 2433, 29911, 12188, 742, 13, 462, 462, 462, 9651, 1024, 29922, 1311, 29889, 11651, 29918, 978, 29892, 13, 462, 462, 462, 9651, 2793, 29922, 1311, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 6144, 29918, 3945, 29918, 11651, 29918, 14057, 29918, 517, 29918, 2886, 29918, 7247, 29898, 1311, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 27218, 403, 29889, 2975, 29918, 15987, 353, 518, 1311, 29889, 3970, 29032, 29918, 12256, 29918, 5800, 18783, 29892, 13, 462, 462, 462, 539, 1583, 29889, 3970, 29032, 29918, 12256, 29918, 5800, 18783, 29892, 13, 462, 462, 462, 539, 1583, 29889, 3970, 29032, 29918, 12256, 29918, 5800, 18783, 29892, 4514, 13, 13, 4706, 1583, 29889, 4645, 29889, 6144, 29918, 3945, 29918, 11651, 29898, 3970, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 6144, 29918, 3945, 29918, 11651, 29918, 14057, 29918, 517, 29918, 27218, 403, 29898, 1311, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 27218, 403, 29889, 2975, 29918, 15987, 353, 1583, 29889, 14480, 1177, 29918, 11432, 13, 13, 4706, 1583, 29889, 4645, 29889, 6144, 29918, 3945, 29918, 11651, 29898, 3970, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 6144, 29918, 3945, 29918, 11651, 29918, 14057, 29918, 517, 29918, 27218, 403, 29918, 2541, 29918, 26690, 29918, 2704, 29898, 13, 9651, 1583, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 27218, 403, 29889, 2975, 29918, 15987, 353, 1583, 29889, 3904, 29968, 6632, 16048, 29918, 14480, 1177, 29918, 11432, 13, 13, 4706, 1583, 29889, 4645, 29889, 6144, 29918, 3945, 29918, 11651, 29898, 3970, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 6144, 29918, 3945, 29918, 11651, 29918, 2704, 29918, 2886, 292, 29918, 7247, 29898, 1311, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 27218, 403, 29889, 2975, 29918, 15987, 353, 1583, 29889, 24647, 1001, 2965, 29918, 11432, 13, 13, 4706, 1583, 29889, 4645, 29889, 6144, 29918, 3945, 29918, 11651, 29898, 3970, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 13, 1678, 822, 1243, 29918, 6144, 29918, 3945, 29918, 11651, 29918, 2704, 29918, 311, 1026, 292, 29918, 11651, 29898, 1311, 29901, 903, 29931, 735, 4144, 29909, 2519, 3057, 8259, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 18121, 29918, 17640, 29889, 8143, 29918, 11651, 29889, 2975, 29918, 15987, 353, 1583, 29889, 24647, 1001, 2965, 29918, 11432, 13, 13, 4706, 1583, 29889, 4645, 29889, 6144, 29918, 3945, 29918, 11651, 29898, 3970, 29032, 29892, 1583, 29889, 11651, 29918, 978, 29892, 1583, 29889, 11651, 29918, 3051, 29897, 13, 2 ]
bert_multitask_learning/model_fn.py
akashnd/bert-multitask-learning
0
5330
# AUTOGENERATED! DO NOT EDIT! File to edit: source_nbs/13_model_fn.ipynb (unless otherwise specified). __all__ = ['variable_summaries', 'filter_loss', 'BertMultiTaskBody', 'BertMultiTaskTop', 'BertMultiTask'] # Cell from typing import Dict, Tuple from inspect import signature import tensorflow as tf import transformers from .modeling import MultiModalBertModel from .params import BaseParams from .top import (Classification, MultiLabelClassification, PreTrain, Seq2Seq, SequenceLabel, MaskLM) from .utils import get_embedding_table_from_model, get_transformer_main_model def variable_summaries(var, name): """Attach a lot of summaries to a Tensor (for TensorBoard visualization).""" with tf.compat.v1.name_scope(name): mean = tf.reduce_mean(input_tensor=var) tf.compat.v1.summary.scalar('mean', mean) with tf.compat.v1.name_scope('stddev'): stddev = tf.sqrt(tf.reduce_mean( input_tensor=tf.square(var - mean))) tf.compat.v1.summary.scalar('stddev', stddev) tf.compat.v1.summary.scalar('max', tf.reduce_max(input_tensor=var)) tf.compat.v1.summary.scalar('min', tf.reduce_min(input_tensor=var)) tf.compat.v1.summary.histogram('histogram', var) @tf.function def filter_loss(loss, features, problem): if tf.reduce_mean(input_tensor=features['%s_loss_multiplier' % problem]) == 0: return_loss = 0.0 else: return_loss = loss return return_loss class BertMultiTaskBody(tf.keras.Model): """Model to extract bert features and dispatch corresponding rows to each problem_chunk. for each problem chunk, we extract corresponding features and hidden features for that problem. The reason behind this is to save computation for downstream processing. For example, we have a batch of two instances and they're from problem a and b respectively: Input: [{'input_ids': [1,2,3], 'a_loss_multiplier': 1, 'b_loss_multiplier': 0}, {'input_ids': [4,5,6], 'a_loss_multiplier': 0, 'b_loss_multiplier': 1}] Output: { 'a': {'input_ids': [1,2,3], 'a_loss_multiplier': 1, 'b_loss_multiplier': 0} 'b': {'input_ids': [4,5,6], 'a_loss_multiplier': 0, 'b_loss_multiplier': 1} } """ def __init__(self, params: BaseParams, name='BertMultiTaskBody'): super(BertMultiTaskBody, self).__init__(name=name) self.params = params self.bert = MultiModalBertModel(params=self.params) if self.params.custom_pooled_hidden_size: self.custom_pooled_layer = tf.keras.layers.Dense( self.params.custom_pooled_hidden_size, activation=tf.keras.activations.selu) else: self.custom_pooled_layer = None @tf.function def get_features_for_problem(self, features, hidden_feature, problem, mode): # get features with ind == 1 if mode == tf.estimator.ModeKeys.PREDICT: feature_this_round = features hidden_feature_this_round = hidden_feature else: multiplier_name = '%s_loss_multiplier' % problem record_ind = tf.where(tf.cast( tf.squeeze(features[multiplier_name]), tf.bool)) hidden_feature_this_round = {} for hidden_feature_name in hidden_feature: if hidden_feature_name != 'embed_table': hidden_feature_this_round[hidden_feature_name] = tf.squeeze(tf.gather( hidden_feature[hidden_feature_name], record_ind, axis=0 ), axis=1) hidden_feature_this_round[hidden_feature_name].set_shape( hidden_feature[hidden_feature_name].shape.as_list()) else: hidden_feature_this_round[hidden_feature_name] = hidden_feature[hidden_feature_name] feature_this_round = {} for features_name in features: feature_this_round[features_name] = tf.gather_nd( features[features_name], record_ind) return feature_this_round, hidden_feature_this_round def call(self, inputs: Dict[str, tf.Tensor], mode: str) -> Tuple[Dict[str, Dict[str, tf.Tensor]], Dict[str, Dict[str, tf.Tensor]]]: _ = self.bert(inputs, mode == tf.estimator.ModeKeys.TRAIN) # extract bert hidden features inputs['model_input_mask'] = self.bert.get_input_mask() inputs['model_token_type_ids'] = self.bert.get_token_type_ids() hidden_feature = {} for logit_type in ['seq', 'pooled', 'all', 'embed', 'embed_table']: if logit_type == 'seq': # tensor, [batch_size, seq_length, hidden_size] hidden_feature[logit_type] = self.bert.get_sequence_output() elif logit_type == 'pooled': # tensor, [batch_size, hidden_size] hidden_feature[logit_type] = self.bert.get_pooled_output() if self.custom_pooled_layer: hidden_feature[logit_type] = self.custom_pooled_layer( hidden_feature[logit_type]) elif logit_type == 'all': # list, num_hidden_layers * [batch_size, seq_length, hidden_size] hidden_feature[logit_type] = self.bert.get_all_encoder_layers() elif logit_type == 'embed': # for res connection hidden_feature[logit_type] = self.bert.get_embedding_output() elif logit_type == 'embed_table': hidden_feature[logit_type] = self.bert.get_embedding_table() # for each problem chunk, we extract corresponding features # and hidden features for that problem. The reason behind this # is to save computation for downstream processing. # For example, we have a batch of two instances and they're from # problem a and b respectively: # Input: # [{'input_ids': [1,2,3], 'a_loss_multiplier': 1, 'b_loss_multiplier': 0}, # {'input_ids': [4,5,6], 'a_loss_multiplier': 0, 'b_loss_multiplier': 1}] # Output: # { # 'a': {'input_ids': [1,2,3], 'a_loss_multiplier': 1, 'b_loss_multiplier': 0} # 'b': {'input_ids': [4,5,6], 'a_loss_multiplier': 0, 'b_loss_multiplier': 1} # } features = inputs return_feature = {} return_hidden_feature = {} for problem_dict in self.params.run_problem_list: for problem in problem_dict: if self.params.task_transformer: # hidden_feature = task_tranformer_hidden_feature[problem] raise NotImplementedError if len(self.params.run_problem_list) > 1: feature_this_round, hidden_feature_this_round = self.get_features_for_problem( features, hidden_feature, problem, mode) else: feature_this_round, hidden_feature_this_round = features, hidden_feature if self.params.label_transfer and self.params.grid_transformer: raise ValueError( 'Label Transfer and grid transformer cannot be enabled in the same time.' ) if self.params.grid_transformer: raise NotImplementedError return_hidden_feature[problem] = hidden_feature_this_round return_feature[problem] = feature_this_round return return_feature, return_hidden_feature # Cell class BertMultiTaskTop(tf.keras.Model): """Model to create top layer, aka classification layer, for each problem. """ def __init__(self, params: BaseParams, name='BertMultiTaskTop', input_embeddings: tf.Tensor = None): super(BertMultiTaskTop, self).__init__(name=name) self.params = params problem_type_layer = { 'seq_tag': SequenceLabel, 'cls': Classification, 'seq2seq_tag': Seq2Seq, 'seq2seq_text': Seq2Seq, 'multi_cls': MultiLabelClassification, 'pretrain': PreTrain, 'masklm': MaskLM } problem_type_layer.update(self.params.top_layer) self.top_layer_dict = {} for problem_dict in self.params.run_problem_list: for problem in problem_dict: problem_type = self.params.problem_type[problem] # some layers has different signatures, assign inputs accordingly layer_signature_name = signature( problem_type_layer[problem_type].__init__).parameters.keys() inputs_kwargs = { 'params': self.params, 'problem_name': problem } for signature_name in layer_signature_name: if signature_name == 'input_embeddings': inputs_kwargs.update( {signature_name: input_embeddings}) self.top_layer_dict[problem] = problem_type_layer[problem_type]( **inputs_kwargs) def call(self, inputs: Tuple[Dict[str, Dict[str, tf.Tensor]], Dict[str, Dict[str, tf.Tensor]]], mode: str) -> Dict[str, tf.Tensor]: features, hidden_feature = inputs return_dict = {} for problem_dict in self.params.run_problem_list: for problem in problem_dict: feature_this_round = features[problem] hidden_feature_this_round = hidden_feature[problem] problem_type = self.params.problem_type[problem] # if pretrain, return pretrain logit if problem_type == 'pretrain': pretrain = self.top_layer_dict[problem] return_dict[problem] = pretrain( (feature_this_round, hidden_feature_this_round), mode) return return_dict if self.params.label_transfer and self.params.grid_transformer: raise ValueError( 'Label Transfer and grid transformer cannot be enabled in the same time.' ) with tf.name_scope(problem): layer = self.top_layer_dict[problem] return_dict[problem] = layer( (feature_this_round, hidden_feature_this_round), mode) if self.params.augument_mask_lm and mode == tf.estimator.ModeKeys.TRAIN: raise NotImplementedError # try: # mask_lm_top = MaskLM(self.params) # return_dict['augument_mask_lm'] = \ # mask_lm_top(features, # hidden_feature, mode, 'dummy') # except ValueError: # pass return return_dict # Cell class BertMultiTask(tf.keras.Model): def __init__(self, params: BaseParams, name='BertMultiTask') -> None: super(BertMultiTask, self).__init__(name=name) self.params = params # initialize body model, aka transformers self.body = BertMultiTaskBody(params=self.params) # mlm might need word embedding from bert # build sub-model _ = get_embedding_table_from_model(self.body.bert.bert_model) main_model = get_transformer_main_model(self.body.bert.bert_model) # input_embeddings = self.body.bert.bert_model.bert.embeddings input_embeddings = main_model.embeddings self.top = BertMultiTaskTop( params=self.params, input_embeddings=input_embeddings) def call(self, inputs, mode=tf.estimator.ModeKeys.TRAIN): feature_per_problem, hidden_feature_per_problem = self.body( inputs, mode) pred_per_problem = self.top( (feature_per_problem, hidden_feature_per_problem), mode) return pred_per_problem def compile(self): super(BertMultiTask, self).compile() logger = tf.get_logger() logger.info('Initial lr: {}'.format(self.params.lr)) logger.info('Train steps: {}'.format(self.params.train_steps)) logger.info('Warmup steps: {}'.format(self.params.num_warmup_steps)) self.optimizer, self.lr_scheduler = transformers.optimization_tf.create_optimizer( init_lr=self.params.lr, num_train_steps=self.params.train_steps, num_warmup_steps=self.params.num_warmup_steps, weight_decay_rate=0.01 ) self.mean_acc = tf.keras.metrics.Mean(name='mean_acc') def train_step(self, data): with tf.GradientTape() as tape: # Forward pass _ = self(data, mode=tf.estimator.ModeKeys.TRAIN) # gather losses from all problems loss_dict = {'{}_loss'.format(problem_name): tf.reduce_sum(top_layer.losses) for problem_name, top_layer in self.top.top_layer_dict.items()} # metric_dict = {'{}_metric'.format(problem_name): tf.reduce_mean(top_layer.metrics) for problem_name, # top_layer in self.top.top_layer_dict.items()} metric_dict = {m.name: m.result() for m in self.metrics} # Compute gradients trainable_vars = self.trainable_variables gradients = tape.gradient(self.losses, trainable_vars) # Update weights self.optimizer.apply_gradients(zip(gradients, trainable_vars)) self.mean_acc.update_state( [v for n, v in metric_dict.items() if n != 'mean_acc']) return_dict = metric_dict return_dict.update(loss_dict) return_dict[self.mean_acc.name] = self.mean_acc.result() # Return a dict mapping metric names to current value. # Note that it will include the loss (tracked in self.metrics). return return_dict def test_step(self, data): """The logic for one evaluation step. This method can be overridden to support custom evaluation logic. This method is called by `Model.make_test_function`. This function should contain the mathemetical logic for one step of evaluation. This typically includes the forward pass, loss calculation, and metrics updates. Configuration details for *how* this logic is run (e.g. `tf.function` and `tf.distribute.Strategy` settings), should be left to `Model.make_test_function`, which can also be overridden. Arguments: data: A nested structure of `Tensor`s. Returns: A `dict` containing values that will be passed to `tf.keras.callbacks.CallbackList.on_train_batch_end`. Typically, the values of the `Model`'s metrics are returned. """ y_pred = self(data, mode=tf.estimator.ModeKeys.EVAL) # Updates stateful loss metrics. self.compiled_loss( None, y_pred, None, regularization_losses=self.losses) self.compiled_metrics.update_state(None, y_pred, None) # get metrics to calculate mean m_list = [] for metric in self.metrics: if 'mean_acc' in metric.name: continue if 'acc' in metric.name: m_list.append(metric.result()) if 'f1' in metric.name: m_list.append(metric.result()) self.mean_acc.update_state( m_list) return {m.name: m.result() for m in self.metrics} def predict_step(self, data): return self(data, mode=tf.estimator.ModeKeys.PREDICT)
[ 1, 396, 26524, 29949, 24647, 1001, 3040, 29928, 29991, 11662, 6058, 11488, 29991, 3497, 304, 3863, 29901, 2752, 29918, 29876, 5824, 29914, 29896, 29941, 29918, 4299, 29918, 9144, 29889, 666, 948, 29890, 313, 28952, 6467, 6790, 467, 13, 13, 1649, 497, 1649, 353, 6024, 11918, 29918, 2083, 3034, 583, 742, 525, 4572, 29918, 6758, 742, 525, 29933, 814, 15329, 5398, 8434, 742, 525, 29933, 814, 15329, 5398, 7031, 742, 525, 29933, 814, 15329, 5398, 2033, 13, 13, 29937, 19413, 13, 3166, 19229, 1053, 360, 919, 29892, 12603, 552, 13, 3166, 16096, 1053, 12608, 13, 13, 5215, 26110, 408, 15886, 13, 5215, 4327, 414, 13, 13, 3166, 869, 4299, 292, 1053, 14974, 19751, 29933, 814, 3195, 13, 3166, 869, 7529, 1053, 7399, 9629, 13, 3166, 869, 3332, 1053, 313, 2385, 2450, 29892, 14974, 4775, 2385, 2450, 29892, 4721, 5323, 262, 29892, 13, 462, 29871, 25981, 29906, 23718, 29892, 922, 3910, 4775, 29892, 341, 1278, 26369, 29897, 13, 3166, 869, 13239, 1053, 679, 29918, 17987, 8497, 29918, 2371, 29918, 3166, 29918, 4299, 29892, 679, 29918, 9067, 261, 29918, 3396, 29918, 4299, 13, 13, 1753, 2286, 29918, 2083, 3034, 583, 29898, 1707, 29892, 1024, 1125, 13, 1678, 9995, 4165, 496, 263, 3287, 310, 19138, 583, 304, 263, 323, 6073, 313, 1454, 323, 6073, 28397, 7604, 2133, 467, 15945, 29908, 13, 1678, 411, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 978, 29918, 6078, 29898, 978, 1125, 13, 4706, 2099, 353, 15886, 29889, 17469, 29918, 12676, 29898, 2080, 29918, 20158, 29922, 1707, 29897, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 7727, 29889, 19529, 279, 877, 12676, 742, 2099, 29897, 13, 4706, 411, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 978, 29918, 6078, 877, 4172, 3359, 29374, 13, 9651, 3659, 3359, 353, 15886, 29889, 3676, 29898, 13264, 29889, 17469, 29918, 12676, 29898, 13, 18884, 1881, 29918, 20158, 29922, 13264, 29889, 17619, 29898, 1707, 448, 2099, 4961, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 7727, 29889, 19529, 279, 877, 4172, 3359, 742, 3659, 3359, 29897, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 7727, 29889, 19529, 279, 877, 3317, 742, 15886, 29889, 17469, 29918, 3317, 29898, 2080, 29918, 20158, 29922, 1707, 876, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 7727, 29889, 19529, 279, 877, 1195, 742, 15886, 29889, 17469, 29918, 1195, 29898, 2080, 29918, 20158, 29922, 1707, 876, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 7727, 29889, 29882, 391, 13342, 877, 29882, 391, 13342, 742, 722, 29897, 13, 13, 13, 29992, 13264, 29889, 2220, 13, 1753, 4175, 29918, 6758, 29898, 6758, 29892, 5680, 29892, 1108, 1125, 13, 13, 1678, 565, 15886, 29889, 17469, 29918, 12676, 29898, 2080, 29918, 20158, 29922, 22100, 1839, 29995, 29879, 29918, 6758, 29918, 18056, 4926, 29915, 1273, 1108, 2314, 1275, 29871, 29900, 29901, 13, 4706, 736, 29918, 6758, 353, 29871, 29900, 29889, 29900, 13, 1678, 1683, 29901, 13, 4706, 736, 29918, 6758, 353, 6410, 13, 13, 1678, 736, 736, 29918, 6758, 13, 13, 13, 1990, 16662, 15329, 5398, 8434, 29898, 13264, 29889, 3946, 294, 29889, 3195, 1125, 13, 1678, 9995, 3195, 304, 6597, 289, 814, 5680, 322, 13916, 6590, 4206, 304, 1269, 1108, 29918, 29812, 29889, 13, 13, 1678, 363, 1269, 1108, 19875, 29892, 591, 6597, 6590, 5680, 13, 1678, 322, 7934, 5680, 363, 393, 1108, 29889, 450, 2769, 5742, 445, 13, 1678, 338, 304, 4078, 16287, 363, 1623, 5461, 9068, 29889, 13, 1678, 1152, 1342, 29892, 591, 505, 263, 9853, 310, 1023, 8871, 322, 896, 29915, 276, 515, 13, 1678, 1108, 263, 322, 289, 8307, 29901, 13, 1678, 10567, 29901, 13, 1678, 518, 10998, 2080, 29918, 4841, 2396, 518, 29896, 29892, 29906, 29892, 29941, 1402, 525, 29874, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29896, 29892, 525, 29890, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29900, 1118, 13, 268, 11117, 2080, 29918, 4841, 2396, 518, 29946, 29892, 29945, 29892, 29953, 1402, 525, 29874, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29900, 29892, 525, 29890, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29896, 6525, 13, 1678, 10604, 29901, 13, 1678, 426, 13, 418, 525, 29874, 2396, 11117, 2080, 29918, 4841, 2396, 518, 29896, 29892, 29906, 29892, 29941, 1402, 525, 29874, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29896, 29892, 525, 29890, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29900, 29913, 13, 418, 525, 29890, 2396, 11117, 2080, 29918, 4841, 2396, 518, 29946, 29892, 29945, 29892, 29953, 1402, 525, 29874, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29900, 29892, 525, 29890, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29896, 29913, 13, 1678, 500, 13, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 8636, 29901, 7399, 9629, 29892, 1024, 2433, 29933, 814, 15329, 5398, 8434, 29374, 13, 4706, 2428, 29898, 29933, 814, 15329, 5398, 8434, 29892, 1583, 467, 1649, 2344, 12035, 978, 29922, 978, 29897, 13, 4706, 1583, 29889, 7529, 353, 8636, 13, 4706, 1583, 29889, 2151, 353, 14974, 19751, 29933, 814, 3195, 29898, 7529, 29922, 1311, 29889, 7529, 29897, 13, 4706, 565, 1583, 29889, 7529, 29889, 6341, 29918, 1129, 29877, 839, 29918, 10892, 29918, 2311, 29901, 13, 9651, 1583, 29889, 6341, 29918, 1129, 29877, 839, 29918, 13148, 353, 15886, 29889, 3946, 294, 29889, 29277, 29889, 29928, 1947, 29898, 13, 18884, 1583, 29889, 7529, 29889, 6341, 29918, 1129, 29877, 839, 29918, 10892, 29918, 2311, 29892, 26229, 29922, 13264, 29889, 3946, 294, 29889, 11236, 800, 29889, 2838, 29884, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 6341, 29918, 1129, 29877, 839, 29918, 13148, 353, 6213, 13, 13, 1678, 732, 13264, 29889, 2220, 13, 1678, 822, 679, 29918, 22100, 29918, 1454, 29918, 17199, 29898, 1311, 29892, 5680, 29892, 7934, 29918, 14394, 29892, 1108, 29892, 4464, 1125, 13, 4706, 396, 679, 5680, 411, 1399, 1275, 29871, 29896, 13, 4706, 565, 4464, 1275, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 15094, 4571, 1783, 29901, 13, 9651, 4682, 29918, 1366, 29918, 14486, 353, 5680, 13, 9651, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 353, 7934, 29918, 14394, 13, 4706, 1683, 29901, 13, 9651, 6674, 4926, 29918, 978, 353, 14210, 29879, 29918, 6758, 29918, 18056, 4926, 29915, 1273, 1108, 13, 13, 9651, 2407, 29918, 513, 353, 15886, 29889, 3062, 29898, 13264, 29889, 4384, 29898, 13, 18884, 15886, 29889, 29879, 802, 29872, 911, 29898, 22100, 29961, 18056, 4926, 29918, 978, 11724, 15886, 29889, 11227, 876, 13, 13, 9651, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 353, 6571, 13, 9651, 363, 7934, 29918, 14394, 29918, 978, 297, 7934, 29918, 14394, 29901, 13, 18884, 565, 7934, 29918, 14394, 29918, 978, 2804, 525, 17987, 29918, 2371, 2396, 13, 462, 1678, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 29961, 10892, 29918, 14394, 29918, 978, 29962, 353, 15886, 29889, 29879, 802, 29872, 911, 29898, 13264, 29889, 29887, 1624, 29898, 13, 462, 4706, 7934, 29918, 14394, 29961, 10892, 29918, 14394, 29918, 978, 1402, 2407, 29918, 513, 29892, 9685, 29922, 29900, 13, 462, 1678, 10353, 9685, 29922, 29896, 29897, 13, 462, 1678, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 29961, 10892, 29918, 14394, 29918, 978, 1822, 842, 29918, 12181, 29898, 13, 462, 4706, 7934, 29918, 14394, 29961, 10892, 29918, 14394, 29918, 978, 1822, 12181, 29889, 294, 29918, 1761, 3101, 13, 18884, 1683, 29901, 13, 462, 1678, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 29961, 10892, 29918, 14394, 29918, 978, 29962, 353, 7934, 29918, 14394, 29961, 10892, 29918, 14394, 29918, 978, 29962, 13, 13, 9651, 4682, 29918, 1366, 29918, 14486, 353, 6571, 13, 9651, 363, 5680, 29918, 978, 297, 5680, 29901, 13, 18884, 4682, 29918, 1366, 29918, 14486, 29961, 22100, 29918, 978, 29962, 353, 15886, 29889, 29887, 1624, 29918, 299, 29898, 13, 462, 1678, 5680, 29961, 22100, 29918, 978, 1402, 13, 462, 1678, 2407, 29918, 513, 29897, 13, 13, 4706, 736, 4682, 29918, 1366, 29918, 14486, 29892, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 13, 13, 1678, 822, 1246, 29898, 1311, 29892, 10970, 29901, 360, 919, 29961, 710, 29892, 15886, 29889, 29911, 6073, 1402, 13, 632, 4464, 29901, 851, 29897, 1599, 12603, 552, 29961, 21533, 29961, 710, 29892, 360, 919, 29961, 710, 29892, 15886, 29889, 29911, 6073, 20526, 360, 919, 29961, 710, 29892, 360, 919, 29961, 710, 29892, 15886, 29889, 29911, 6073, 5262, 5387, 13, 4706, 903, 353, 1583, 29889, 2151, 29898, 2080, 29879, 29892, 4464, 1275, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29911, 4717, 1177, 29897, 13, 13, 4706, 396, 6597, 289, 814, 7934, 5680, 13, 4706, 10970, 1839, 4299, 29918, 2080, 29918, 13168, 2033, 353, 1583, 29889, 2151, 29889, 657, 29918, 2080, 29918, 13168, 580, 13, 4706, 10970, 1839, 4299, 29918, 6979, 29918, 1853, 29918, 4841, 2033, 353, 1583, 29889, 2151, 29889, 657, 29918, 6979, 29918, 1853, 29918, 4841, 580, 13, 13, 4706, 7934, 29918, 14394, 353, 6571, 13, 4706, 363, 1480, 277, 29918, 1853, 297, 6024, 11762, 742, 525, 1129, 29877, 839, 742, 525, 497, 742, 525, 17987, 742, 525, 17987, 29918, 2371, 2033, 29901, 13, 9651, 565, 1480, 277, 29918, 1853, 1275, 525, 11762, 2396, 13, 18884, 396, 12489, 29892, 518, 16175, 29918, 2311, 29892, 19359, 29918, 2848, 29892, 7934, 29918, 2311, 29962, 13, 18884, 7934, 29918, 14394, 29961, 1188, 277, 29918, 1853, 29962, 353, 1583, 29889, 2151, 29889, 657, 29918, 16506, 29918, 4905, 580, 13, 9651, 25342, 1480, 277, 29918, 1853, 1275, 525, 1129, 29877, 839, 2396, 13, 18884, 396, 12489, 29892, 518, 16175, 29918, 2311, 29892, 7934, 29918, 2311, 29962, 13, 18884, 7934, 29918, 14394, 29961, 1188, 277, 29918, 1853, 29962, 353, 1583, 29889, 2151, 29889, 657, 29918, 1129, 29877, 839, 29918, 4905, 580, 13, 18884, 565, 1583, 29889, 6341, 29918, 1129, 29877, 839, 29918, 13148, 29901, 13, 462, 1678, 7934, 29918, 14394, 29961, 1188, 277, 29918, 1853, 29962, 353, 1583, 29889, 6341, 29918, 1129, 29877, 839, 29918, 13148, 29898, 13, 462, 4706, 7934, 29918, 14394, 29961, 1188, 277, 29918, 1853, 2314, 13, 9651, 25342, 1480, 277, 29918, 1853, 1275, 525, 497, 2396, 13, 18884, 396, 1051, 29892, 954, 29918, 10892, 29918, 29277, 334, 518, 16175, 29918, 2311, 29892, 19359, 29918, 2848, 29892, 7934, 29918, 2311, 29962, 13, 18884, 7934, 29918, 14394, 29961, 1188, 277, 29918, 1853, 29962, 353, 1583, 29889, 2151, 29889, 657, 29918, 497, 29918, 3977, 6119, 29918, 29277, 580, 13, 9651, 25342, 1480, 277, 29918, 1853, 1275, 525, 17987, 2396, 13, 18884, 396, 363, 620, 3957, 13, 18884, 7934, 29918, 14394, 29961, 1188, 277, 29918, 1853, 29962, 353, 1583, 29889, 2151, 29889, 657, 29918, 17987, 8497, 29918, 4905, 580, 13, 9651, 25342, 1480, 277, 29918, 1853, 1275, 525, 17987, 29918, 2371, 2396, 13, 18884, 7934, 29918, 14394, 29961, 1188, 277, 29918, 1853, 29962, 353, 1583, 29889, 2151, 29889, 657, 29918, 17987, 8497, 29918, 2371, 580, 13, 13, 4706, 396, 363, 1269, 1108, 19875, 29892, 591, 6597, 6590, 5680, 13, 4706, 396, 322, 7934, 5680, 363, 393, 1108, 29889, 450, 2769, 5742, 445, 13, 4706, 396, 338, 304, 4078, 16287, 363, 1623, 5461, 9068, 29889, 13, 4706, 396, 1152, 1342, 29892, 591, 505, 263, 9853, 310, 1023, 8871, 322, 896, 29915, 276, 515, 13, 4706, 396, 1108, 263, 322, 289, 8307, 29901, 13, 4706, 396, 10567, 29901, 13, 4706, 396, 518, 10998, 2080, 29918, 4841, 2396, 518, 29896, 29892, 29906, 29892, 29941, 1402, 525, 29874, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29896, 29892, 525, 29890, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29900, 1118, 13, 4706, 396, 29871, 11117, 2080, 29918, 4841, 2396, 518, 29946, 29892, 29945, 29892, 29953, 1402, 525, 29874, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29900, 29892, 525, 29890, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29896, 6525, 13, 4706, 396, 10604, 29901, 13, 4706, 396, 426, 13, 4706, 396, 259, 525, 29874, 2396, 11117, 2080, 29918, 4841, 2396, 518, 29896, 29892, 29906, 29892, 29941, 1402, 525, 29874, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29896, 29892, 525, 29890, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29900, 29913, 13, 4706, 396, 259, 525, 29890, 2396, 11117, 2080, 29918, 4841, 2396, 518, 29946, 29892, 29945, 29892, 29953, 1402, 525, 29874, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29900, 29892, 525, 29890, 29918, 6758, 29918, 18056, 4926, 2396, 29871, 29896, 29913, 13, 4706, 396, 500, 13, 4706, 5680, 353, 10970, 13, 4706, 736, 29918, 14394, 353, 6571, 13, 4706, 736, 29918, 10892, 29918, 14394, 353, 6571, 13, 13, 4706, 363, 1108, 29918, 8977, 297, 1583, 29889, 7529, 29889, 3389, 29918, 17199, 29918, 1761, 29901, 13, 9651, 363, 1108, 297, 1108, 29918, 8977, 29901, 13, 18884, 565, 1583, 29889, 7529, 29889, 7662, 29918, 9067, 261, 29901, 13, 462, 1678, 396, 7934, 29918, 14394, 353, 3414, 29918, 509, 273, 24784, 29918, 10892, 29918, 14394, 29961, 17199, 29962, 13, 462, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 18884, 565, 7431, 29898, 1311, 29889, 7529, 29889, 3389, 29918, 17199, 29918, 1761, 29897, 1405, 29871, 29896, 29901, 13, 462, 1678, 4682, 29918, 1366, 29918, 14486, 29892, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 353, 1583, 29889, 657, 29918, 22100, 29918, 1454, 29918, 17199, 29898, 13, 462, 4706, 5680, 29892, 7934, 29918, 14394, 29892, 1108, 29892, 4464, 29897, 13, 18884, 1683, 29901, 13, 462, 1678, 4682, 29918, 1366, 29918, 14486, 29892, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 353, 5680, 29892, 7934, 29918, 14394, 13, 13, 18884, 565, 1583, 29889, 7529, 29889, 1643, 29918, 3286, 571, 322, 1583, 29889, 7529, 29889, 7720, 29918, 9067, 261, 29901, 13, 462, 1678, 12020, 7865, 2392, 29898, 13, 462, 4706, 525, 4775, 17934, 322, 6856, 4327, 261, 2609, 367, 9615, 297, 278, 1021, 931, 6169, 13, 462, 1678, 1723, 13, 13, 18884, 565, 1583, 29889, 7529, 29889, 7720, 29918, 9067, 261, 29901, 13, 462, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 18884, 736, 29918, 10892, 29918, 14394, 29961, 17199, 29962, 353, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 13, 18884, 736, 29918, 14394, 29961, 17199, 29962, 353, 4682, 29918, 1366, 29918, 14486, 13, 4706, 736, 736, 29918, 14394, 29892, 736, 29918, 10892, 29918, 14394, 13, 13, 13, 13, 29937, 19413, 13, 1990, 16662, 15329, 5398, 7031, 29898, 13264, 29889, 3946, 294, 29889, 3195, 1125, 13, 1678, 9995, 3195, 304, 1653, 2246, 7546, 29892, 263, 1335, 12965, 7546, 29892, 363, 1269, 1108, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 8636, 29901, 7399, 9629, 29892, 1024, 2433, 29933, 814, 15329, 5398, 7031, 742, 1881, 29918, 17987, 29881, 886, 29901, 15886, 29889, 29911, 6073, 353, 6213, 1125, 13, 4706, 2428, 29898, 29933, 814, 15329, 5398, 7031, 29892, 1583, 467, 1649, 2344, 12035, 978, 29922, 978, 29897, 13, 4706, 1583, 29889, 7529, 353, 8636, 13, 13, 4706, 1108, 29918, 1853, 29918, 13148, 353, 426, 13, 9651, 525, 11762, 29918, 4039, 2396, 922, 3910, 4775, 29892, 13, 9651, 525, 25932, 2396, 23236, 29892, 13, 9651, 525, 11762, 29906, 11762, 29918, 4039, 2396, 25981, 29906, 23718, 29892, 13, 9651, 525, 11762, 29906, 11762, 29918, 726, 2396, 25981, 29906, 23718, 29892, 13, 9651, 525, 9910, 29918, 25932, 2396, 14974, 4775, 2385, 2450, 29892, 13, 9651, 525, 1457, 14968, 2396, 4721, 5323, 262, 29892, 13, 9651, 525, 13168, 21457, 2396, 341, 1278, 26369, 13, 4706, 500, 13, 4706, 1108, 29918, 1853, 29918, 13148, 29889, 5504, 29898, 1311, 29889, 7529, 29889, 3332, 29918, 13148, 29897, 13, 4706, 1583, 29889, 3332, 29918, 13148, 29918, 8977, 353, 6571, 13, 4706, 363, 1108, 29918, 8977, 297, 1583, 29889, 7529, 29889, 3389, 29918, 17199, 29918, 1761, 29901, 13, 9651, 363, 1108, 297, 1108, 29918, 8977, 29901, 13, 18884, 1108, 29918, 1853, 353, 1583, 29889, 7529, 29889, 17199, 29918, 1853, 29961, 17199, 29962, 13, 18884, 396, 777, 15359, 756, 1422, 1804, 3698, 29892, 3566, 10970, 16205, 13, 18884, 7546, 29918, 4530, 1535, 29918, 978, 353, 12608, 29898, 13, 462, 1678, 1108, 29918, 1853, 29918, 13148, 29961, 17199, 29918, 1853, 1822, 1649, 2344, 1649, 467, 16744, 29889, 8149, 580, 13, 18884, 10970, 29918, 19290, 353, 426, 13, 462, 1678, 525, 7529, 2396, 1583, 29889, 7529, 29892, 13, 462, 1678, 525, 17199, 29918, 978, 2396, 1108, 13, 18884, 500, 13, 18884, 363, 12608, 29918, 978, 297, 7546, 29918, 4530, 1535, 29918, 978, 29901, 13, 462, 1678, 565, 12608, 29918, 978, 1275, 525, 2080, 29918, 17987, 29881, 886, 2396, 13, 462, 4706, 10970, 29918, 19290, 29889, 5504, 29898, 13, 462, 9651, 426, 4530, 1535, 29918, 978, 29901, 1881, 29918, 17987, 29881, 886, 1800, 13, 13, 18884, 1583, 29889, 3332, 29918, 13148, 29918, 8977, 29961, 17199, 29962, 353, 1108, 29918, 1853, 29918, 13148, 29961, 17199, 29918, 1853, 850, 13, 462, 1678, 3579, 2080, 29879, 29918, 19290, 29897, 13, 13, 1678, 822, 1246, 29898, 1311, 29892, 13, 632, 10970, 29901, 12603, 552, 29961, 21533, 29961, 710, 29892, 360, 919, 29961, 710, 29892, 15886, 29889, 29911, 6073, 20526, 360, 919, 29961, 710, 29892, 360, 919, 29961, 710, 29892, 15886, 29889, 29911, 6073, 5262, 1402, 13, 632, 4464, 29901, 851, 29897, 1599, 360, 919, 29961, 710, 29892, 15886, 29889, 29911, 6073, 5387, 13, 4706, 5680, 29892, 7934, 29918, 14394, 353, 10970, 13, 4706, 736, 29918, 8977, 353, 6571, 13, 13, 4706, 363, 1108, 29918, 8977, 297, 1583, 29889, 7529, 29889, 3389, 29918, 17199, 29918, 1761, 29901, 13, 9651, 363, 1108, 297, 1108, 29918, 8977, 29901, 13, 18884, 4682, 29918, 1366, 29918, 14486, 353, 5680, 29961, 17199, 29962, 13, 18884, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 353, 7934, 29918, 14394, 29961, 17199, 29962, 13, 18884, 1108, 29918, 1853, 353, 1583, 29889, 7529, 29889, 17199, 29918, 1853, 29961, 17199, 29962, 13, 13, 18884, 396, 565, 758, 14968, 29892, 736, 758, 14968, 1480, 277, 13, 18884, 565, 1108, 29918, 1853, 1275, 525, 1457, 14968, 2396, 13, 462, 1678, 758, 14968, 353, 1583, 29889, 3332, 29918, 13148, 29918, 8977, 29961, 17199, 29962, 13, 462, 1678, 736, 29918, 8977, 29961, 17199, 29962, 353, 758, 14968, 29898, 13, 462, 4706, 313, 14394, 29918, 1366, 29918, 14486, 29892, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 511, 4464, 29897, 13, 462, 1678, 736, 736, 29918, 8977, 13, 13, 18884, 565, 1583, 29889, 7529, 29889, 1643, 29918, 3286, 571, 322, 1583, 29889, 7529, 29889, 7720, 29918, 9067, 261, 29901, 13, 462, 1678, 12020, 7865, 2392, 29898, 13, 462, 4706, 525, 4775, 17934, 322, 6856, 4327, 261, 2609, 367, 9615, 297, 278, 1021, 931, 6169, 13, 462, 1678, 1723, 13, 13, 18884, 411, 15886, 29889, 978, 29918, 6078, 29898, 17199, 1125, 13, 462, 1678, 7546, 353, 1583, 29889, 3332, 29918, 13148, 29918, 8977, 29961, 17199, 29962, 13, 13, 462, 1678, 736, 29918, 8977, 29961, 17199, 29962, 353, 7546, 29898, 13, 462, 4706, 313, 14394, 29918, 1366, 29918, 14486, 29892, 7934, 29918, 14394, 29918, 1366, 29918, 14486, 511, 4464, 29897, 13, 13, 4706, 565, 1583, 29889, 7529, 29889, 2987, 942, 29918, 13168, 29918, 21457, 322, 4464, 1275, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29911, 4717, 1177, 29901, 13, 9651, 12020, 2216, 1888, 2037, 287, 2392, 13, 9651, 396, 1018, 29901, 13, 9651, 396, 268, 11105, 29918, 21457, 29918, 3332, 353, 341, 1278, 26369, 29898, 1311, 29889, 7529, 29897, 13, 9651, 396, 268, 736, 29918, 8977, 1839, 2987, 942, 29918, 13168, 29918, 21457, 2033, 353, 320, 13, 9651, 396, 308, 11105, 29918, 21457, 29918, 3332, 29898, 22100, 29892, 13, 9651, 396, 462, 268, 7934, 29918, 14394, 29892, 4464, 29892, 525, 29881, 11770, 1495, 13, 9651, 396, 5174, 7865, 2392, 29901, 13, 9651, 396, 268, 1209, 13, 4706, 736, 736, 29918, 8977, 13, 13, 13, 13, 29937, 19413, 13, 13, 1990, 16662, 15329, 5398, 29898, 13264, 29889, 3946, 294, 29889, 3195, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 8636, 29901, 7399, 9629, 29892, 1024, 2433, 29933, 814, 15329, 5398, 1495, 1599, 6213, 29901, 13, 4706, 2428, 29898, 29933, 814, 15329, 5398, 29892, 1583, 467, 1649, 2344, 12035, 978, 29922, 978, 29897, 13, 4706, 1583, 29889, 7529, 353, 8636, 13, 4706, 396, 11905, 3573, 1904, 29892, 263, 1335, 4327, 414, 13, 4706, 1583, 29889, 2587, 353, 16662, 15329, 5398, 8434, 29898, 7529, 29922, 1311, 29889, 7529, 29897, 13, 4706, 396, 286, 21457, 1795, 817, 1734, 23655, 515, 289, 814, 13, 4706, 396, 2048, 1014, 29899, 4299, 13, 4706, 903, 353, 679, 29918, 17987, 8497, 29918, 2371, 29918, 3166, 29918, 4299, 29898, 1311, 29889, 2587, 29889, 2151, 29889, 2151, 29918, 4299, 29897, 13, 4706, 1667, 29918, 4299, 353, 679, 29918, 9067, 261, 29918, 3396, 29918, 4299, 29898, 1311, 29889, 2587, 29889, 2151, 29889, 2151, 29918, 4299, 29897, 13, 4706, 396, 1881, 29918, 17987, 29881, 886, 353, 1583, 29889, 2587, 29889, 2151, 29889, 2151, 29918, 4299, 29889, 2151, 29889, 17987, 29881, 886, 13, 4706, 1881, 29918, 17987, 29881, 886, 353, 1667, 29918, 4299, 29889, 17987, 29881, 886, 13, 4706, 1583, 29889, 3332, 353, 16662, 15329, 5398, 7031, 29898, 13, 9651, 8636, 29922, 1311, 29889, 7529, 29892, 1881, 29918, 17987, 29881, 886, 29922, 2080, 29918, 17987, 29881, 886, 29897, 13, 13, 1678, 822, 1246, 29898, 1311, 29892, 10970, 29892, 4464, 29922, 13264, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29911, 4717, 1177, 1125, 13, 4706, 4682, 29918, 546, 29918, 17199, 29892, 7934, 29918, 14394, 29918, 546, 29918, 17199, 353, 1583, 29889, 2587, 29898, 13, 9651, 10970, 29892, 4464, 29897, 13, 4706, 4450, 29918, 546, 29918, 17199, 353, 1583, 29889, 3332, 29898, 13, 9651, 313, 14394, 29918, 546, 29918, 17199, 29892, 7934, 29918, 14394, 29918, 546, 29918, 17199, 511, 4464, 29897, 13, 4706, 736, 4450, 29918, 546, 29918, 17199, 13, 13, 1678, 822, 6633, 29898, 1311, 1125, 13, 4706, 2428, 29898, 29933, 814, 15329, 5398, 29892, 1583, 467, 12198, 580, 13, 4706, 17927, 353, 15886, 29889, 657, 29918, 21707, 580, 13, 4706, 17927, 29889, 3888, 877, 15514, 301, 29878, 29901, 6571, 4286, 4830, 29898, 1311, 29889, 7529, 29889, 29212, 876, 13, 4706, 17927, 29889, 3888, 877, 5323, 262, 6576, 29901, 6571, 4286, 4830, 29898, 1311, 29889, 7529, 29889, 14968, 29918, 24530, 876, 13, 4706, 17927, 29889, 3888, 877, 29956, 2817, 786, 6576, 29901, 6571, 4286, 4830, 29898, 1311, 29889, 7529, 29889, 1949, 29918, 29893, 2817, 786, 29918, 24530, 876, 13, 4706, 1583, 29889, 20640, 3950, 29892, 1583, 29889, 29212, 29918, 816, 14952, 353, 4327, 414, 29889, 20640, 2133, 29918, 13264, 29889, 3258, 29918, 20640, 3950, 29898, 13, 9651, 2069, 29918, 29212, 29922, 1311, 29889, 7529, 29889, 29212, 29892, 13, 9651, 954, 29918, 14968, 29918, 24530, 29922, 1311, 29889, 7529, 29889, 14968, 29918, 24530, 29892, 13, 9651, 954, 29918, 29893, 2817, 786, 29918, 24530, 29922, 1311, 29889, 7529, 29889, 1949, 29918, 29893, 2817, 786, 29918, 24530, 29892, 13, 9651, 7688, 29918, 7099, 388, 29918, 10492, 29922, 29900, 29889, 29900, 29896, 13, 4706, 1723, 13, 4706, 1583, 29889, 12676, 29918, 5753, 353, 15886, 29889, 3946, 294, 29889, 2527, 10817, 29889, 6816, 273, 29898, 978, 2433, 12676, 29918, 5753, 1495, 13, 13, 1678, 822, 7945, 29918, 10568, 29898, 1311, 29892, 848, 1125, 13, 13, 4706, 411, 15886, 29889, 25584, 993, 29911, 4085, 580, 408, 260, 4085, 29901, 13, 9651, 396, 1152, 1328, 1209, 13, 9651, 903, 353, 1583, 29898, 1272, 29892, 4464, 29922, 13264, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29911, 4717, 1177, 29897, 13, 9651, 396, 11705, 28495, 515, 599, 4828, 13, 9651, 6410, 29918, 8977, 353, 11117, 29912, 2403, 6758, 4286, 4830, 29898, 17199, 29918, 978, 1125, 15886, 29889, 17469, 29918, 2083, 29898, 3332, 29918, 13148, 29889, 6758, 267, 29897, 363, 1108, 29918, 978, 29892, 13, 462, 308, 2246, 29918, 13148, 297, 1583, 29889, 3332, 29889, 3332, 29918, 13148, 29918, 8977, 29889, 7076, 28296, 13, 9651, 396, 12714, 29918, 8977, 353, 11117, 29912, 2403, 16414, 4286, 4830, 29898, 17199, 29918, 978, 1125, 15886, 29889, 17469, 29918, 12676, 29898, 3332, 29918, 13148, 29889, 2527, 10817, 29897, 363, 1108, 29918, 978, 29892, 13, 9651, 396, 18884, 2246, 29918, 13148, 297, 1583, 29889, 3332, 29889, 3332, 29918, 13148, 29918, 8977, 29889, 7076, 28296, 13, 9651, 12714, 29918, 8977, 353, 426, 29885, 29889, 978, 29901, 286, 29889, 2914, 580, 363, 286, 297, 1583, 29889, 2527, 10817, 29913, 13, 4706, 396, 11796, 29872, 4656, 10070, 13, 4706, 7945, 519, 29918, 16908, 353, 1583, 29889, 14968, 519, 29918, 20897, 13, 4706, 4656, 10070, 353, 260, 4085, 29889, 24970, 29898, 1311, 29889, 6758, 267, 29892, 7945, 519, 29918, 16908, 29897, 13, 13, 4706, 396, 10318, 18177, 13, 4706, 1583, 29889, 20640, 3950, 29889, 7302, 29918, 5105, 10070, 29898, 7554, 29898, 5105, 10070, 29892, 7945, 519, 29918, 16908, 876, 13, 13, 4706, 1583, 29889, 12676, 29918, 5753, 29889, 5504, 29918, 3859, 29898, 13, 9651, 518, 29894, 363, 302, 29892, 325, 297, 12714, 29918, 8977, 29889, 7076, 580, 565, 302, 2804, 525, 12676, 29918, 5753, 11287, 13, 13, 4706, 736, 29918, 8977, 353, 12714, 29918, 8977, 13, 4706, 736, 29918, 8977, 29889, 5504, 29898, 6758, 29918, 8977, 29897, 13, 4706, 736, 29918, 8977, 29961, 1311, 29889, 12676, 29918, 5753, 29889, 978, 29962, 353, 1583, 29889, 12676, 29918, 5753, 29889, 2914, 580, 13, 13, 4706, 396, 7106, 263, 9657, 10417, 12714, 2983, 304, 1857, 995, 29889, 13, 4706, 396, 3940, 393, 372, 674, 3160, 278, 6410, 313, 11294, 287, 297, 1583, 29889, 2527, 10817, 467, 13, 4706, 736, 736, 29918, 8977, 13, 13, 1678, 822, 1243, 29918, 10568, 29898, 1311, 29892, 848, 1125, 13, 4706, 9995, 1576, 5900, 363, 697, 17983, 4331, 29889, 13, 13, 4706, 910, 1158, 508, 367, 20831, 1145, 304, 2304, 2888, 17983, 5900, 29889, 13, 4706, 910, 1158, 338, 2000, 491, 421, 3195, 29889, 5675, 29918, 1688, 29918, 2220, 1412, 13, 13, 4706, 910, 740, 881, 1712, 278, 5844, 21056, 936, 5900, 363, 697, 4331, 310, 13, 4706, 17983, 29889, 13, 4706, 910, 12234, 7805, 278, 6375, 1209, 29892, 6410, 13944, 29892, 322, 21556, 13, 4706, 11217, 29889, 13, 13, 4706, 20999, 4902, 363, 334, 3525, 29930, 445, 5900, 338, 1065, 313, 29872, 29889, 29887, 29889, 421, 13264, 29889, 2220, 29952, 322, 13, 4706, 421, 13264, 29889, 5721, 2666, 29889, 26910, 29952, 6055, 511, 881, 367, 2175, 304, 13, 4706, 421, 3195, 29889, 5675, 29918, 1688, 29918, 2220, 1673, 607, 508, 884, 367, 20831, 1145, 29889, 13, 13, 4706, 11842, 9331, 29901, 13, 4706, 848, 29901, 319, 9322, 3829, 310, 421, 29911, 6073, 29952, 29879, 29889, 13, 13, 4706, 16969, 29901, 13, 4706, 319, 421, 8977, 29952, 6943, 1819, 393, 674, 367, 4502, 304, 13, 4706, 421, 13264, 29889, 3946, 294, 29889, 14035, 29879, 29889, 10717, 1293, 29889, 265, 29918, 14968, 29918, 16175, 29918, 355, 1412, 14213, 1711, 29892, 278, 13, 4706, 1819, 310, 278, 421, 3195, 20497, 29879, 21556, 526, 4133, 29889, 13, 4706, 9995, 13, 13, 4706, 343, 29918, 11965, 353, 1583, 29898, 1272, 29892, 4464, 29922, 13264, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29923, 8932, 29897, 13, 4706, 396, 5020, 15190, 2106, 1319, 6410, 21556, 29889, 13, 4706, 1583, 29889, 2388, 2356, 29918, 6758, 29898, 13, 9651, 6213, 29892, 343, 29918, 11965, 29892, 6213, 29892, 4943, 2133, 29918, 6758, 267, 29922, 1311, 29889, 6758, 267, 29897, 13, 13, 4706, 1583, 29889, 2388, 2356, 29918, 2527, 10817, 29889, 5504, 29918, 3859, 29898, 8516, 29892, 343, 29918, 11965, 29892, 6213, 29897, 13, 13, 4706, 396, 679, 21556, 304, 8147, 2099, 13, 4706, 286, 29918, 1761, 353, 5159, 13, 4706, 363, 12714, 297, 1583, 29889, 2527, 10817, 29901, 13, 9651, 565, 525, 12676, 29918, 5753, 29915, 297, 12714, 29889, 978, 29901, 13, 18884, 6773, 13, 9651, 565, 525, 5753, 29915, 297, 12714, 29889, 978, 29901, 13, 18884, 286, 29918, 1761, 29889, 4397, 29898, 16414, 29889, 2914, 3101, 13, 13, 9651, 565, 525, 29888, 29896, 29915, 297, 12714, 29889, 978, 29901, 13, 18884, 286, 29918, 1761, 29889, 4397, 29898, 16414, 29889, 2914, 3101, 13, 13, 4706, 1583, 29889, 12676, 29918, 5753, 29889, 5504, 29918, 3859, 29898, 13, 9651, 286, 29918, 1761, 29897, 13, 4706, 736, 426, 29885, 29889, 978, 29901, 286, 29889, 2914, 580, 363, 286, 297, 1583, 29889, 2527, 10817, 29913, 13, 13, 1678, 822, 8500, 29918, 10568, 29898, 1311, 29892, 848, 1125, 13, 4706, 736, 1583, 29898, 1272, 29892, 4464, 29922, 13264, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 15094, 4571, 1783, 29897, 13, 2 ]
bmt/util.py
patrickkwang/bmt-lite
0
7722
"""Utilities.""" from functools import wraps import re from typing import Callable, List, Optional, TypeVar, Union from .data import ( all_classes, all_slots, ) def pascal_to_snake(s: str, sep: str = "_") -> str: """Convert Pascal case to snake case. Assumes that a) all words are either all-lowercase or all-uppercase b) all 1-letter words are lowercase c) there are no adjacent 1-letter words d) there are no adjacent uppercase words Examples: PhenotypicFeature -> phenotypic_feature RNAProduct -> RNA_product FeedACamel -> feed_a_camel Optionally specify `sep` (default "_"). """ # add an underscore before each capital letter underscored = re.sub( r"(?<!^)(?=[A-Z])", sep, s, ) # collapse any adjacent one-letter words collapsed = re.sub( r"(?<![a-zA-Z])[A-Z](?:_[A-Z](?=$|_))+", lambda match: match.group(0).replace("_", ""), underscored, ) # lower-case any words containing only one uppercase letter lowercased = re.sub( r"(?<![A-Z])[A-Z](?![A-Z])", lambda match: match.group(0).lower(), collapsed, ) return lowercased def snake_to_pascal(s: str, sep: str = "_") -> str: """Convert snake case to Pascal case. This is the inverse of pascal_to_snake() when its assumptions are true. Optionally specify `sep` (default "_"). """ return re.sub( fr"(?:^|{sep})([a-zA-Z])", lambda match: match.group(1).upper(), s ) def guess_casing(s: str) -> str: """Guess snake case or Pascal case.""" if "_" in s: return "snake" if any(c.isupper() for c in s): return "pascal" return "snake" def normalize(s: str) -> str: """Normalize string input.""" if s.startswith("biolink:"): s = s[8:] if "_" in s: # it's snake case return s.replace("_", " ") if " " in s: return s return pascal_to_snake(s, " ") T = TypeVar("T") def listify(func: Callable) -> Callable: """Expand function to take list of arguments.""" @wraps(func) def wrapper(arg: Union[T, List[T]], **kwargs) -> Union[T, List[T]]: """Apply function to each element in list.""" if isinstance(arg, list): return [ func(el, **kwargs) for el in arg ] else: return func(arg, **kwargs) return wrapper @listify def format(s: str, case: Optional[str] = None, **kwargs) -> str: """Format space-case string as biolink CURIE.""" if isinstance(case, str) and case.lower() == "pascal": return "biolink:" + snake_to_pascal(s, " ") elif isinstance(case, str) and case.lower() == "snake": return "biolink:" + s.replace(" ", "_") else: return "biolink:" + s def with_formatting(): """Add format conversions to method.""" def decorator(func: Callable) -> Callable: """Generate decorator.""" @wraps(func) def wrapper(self, s: str, *args, formatted=False, **kwargs): """Wrap in format conversions.""" case = guess_casing(s) normalized = normalize(s) output: Union[str, List[str]] = func(self, normalized, *args, **kwargs) if formatted: if normalized in all_classes: output = format(output, case="pascal") elif normalized in all_slots: output = format(output, case="snake") else: output = format(output, case=case) return output return wrapper return decorator
[ 1, 9995, 7270, 1907, 1213, 15945, 13, 3166, 2090, 312, 8789, 1053, 11463, 567, 13, 5215, 337, 13, 3166, 19229, 1053, 8251, 519, 29892, 2391, 29892, 28379, 29892, 5167, 9037, 29892, 7761, 13, 13, 3166, 869, 1272, 1053, 313, 13, 1678, 599, 29918, 13203, 29892, 599, 29918, 2536, 1862, 29892, 13, 29897, 13, 13, 13, 1753, 2331, 1052, 29918, 517, 29918, 29879, 21040, 29898, 29879, 29901, 851, 29892, 16345, 29901, 851, 353, 11119, 1159, 1599, 851, 29901, 13, 1678, 9995, 18455, 29671, 1206, 304, 269, 21040, 1206, 29889, 13, 13, 1678, 4007, 9351, 393, 13, 1678, 263, 29897, 599, 3838, 526, 2845, 599, 29899, 13609, 4878, 470, 599, 29899, 21064, 4878, 13, 1678, 289, 29897, 599, 29871, 29896, 29899, 15670, 3838, 526, 5224, 4878, 13, 1678, 274, 29897, 727, 526, 694, 20114, 29871, 29896, 29899, 15670, 3838, 13, 1678, 270, 29897, 727, 526, 694, 20114, 7568, 4878, 3838, 13, 13, 1678, 1222, 9422, 29901, 13, 1678, 1963, 264, 327, 1478, 293, 19132, 1599, 17292, 327, 1478, 293, 29918, 14394, 13, 1678, 390, 3521, 7566, 1599, 390, 3521, 29918, 4704, 13, 1678, 5169, 287, 2477, 314, 295, 1599, 8343, 29918, 29874, 29918, 11108, 295, 13, 268, 13, 1678, 10831, 635, 6084, 421, 19570, 29952, 313, 4381, 11119, 2564, 13, 1678, 9995, 13, 1678, 396, 788, 385, 23400, 3221, 1434, 1269, 7483, 5497, 13, 1678, 23400, 2616, 287, 353, 337, 29889, 1491, 29898, 13, 4706, 364, 29908, 10780, 29966, 29991, 29985, 5033, 29973, 11759, 29909, 29899, 29999, 2314, 613, 13, 4706, 16345, 29892, 13, 4706, 269, 29892, 13, 1678, 1723, 13, 1678, 396, 24382, 738, 20114, 697, 29899, 15670, 3838, 13, 1678, 784, 23384, 353, 337, 29889, 1491, 29898, 13, 4706, 364, 29908, 10780, 29966, 21298, 29874, 29899, 25265, 29899, 29999, 2314, 29961, 29909, 29899, 29999, 850, 25825, 29918, 29961, 29909, 29899, 29999, 850, 29973, 6080, 29989, 29918, 876, 29974, 613, 13, 4706, 14013, 1993, 29901, 1993, 29889, 2972, 29898, 29900, 467, 6506, 703, 29918, 613, 376, 4968, 13, 4706, 23400, 2616, 287, 29892, 13, 1678, 1723, 13, 1678, 396, 5224, 29899, 4878, 738, 3838, 6943, 871, 697, 7568, 4878, 5497, 13, 1678, 5224, 29883, 1463, 353, 337, 29889, 1491, 29898, 13, 4706, 364, 29908, 10780, 29966, 21298, 29909, 29899, 29999, 2314, 29961, 29909, 29899, 29999, 850, 29973, 21298, 29909, 29899, 29999, 2314, 613, 13, 4706, 14013, 1993, 29901, 1993, 29889, 2972, 29898, 29900, 467, 13609, 3285, 13, 4706, 784, 23384, 29892, 13, 1678, 1723, 13, 1678, 736, 5224, 29883, 1463, 13, 13, 13, 1753, 269, 21040, 29918, 517, 29918, 18182, 1052, 29898, 29879, 29901, 851, 29892, 16345, 29901, 851, 353, 11119, 1159, 1599, 851, 29901, 13, 1678, 9995, 18455, 269, 21040, 1206, 304, 29671, 1206, 29889, 13, 13, 1678, 910, 338, 278, 16402, 310, 2331, 1052, 29918, 517, 29918, 29879, 21040, 580, 746, 967, 20813, 13, 1678, 526, 1565, 29889, 13, 268, 13, 1678, 10831, 635, 6084, 421, 19570, 29952, 313, 4381, 11119, 2564, 13, 1678, 9995, 13, 1678, 736, 337, 29889, 1491, 29898, 13, 4706, 1424, 29908, 10780, 29901, 29985, 29989, 29912, 19570, 1800, 4197, 29874, 29899, 25265, 29899, 29999, 2314, 613, 13, 4706, 14013, 1993, 29901, 1993, 29889, 2972, 29898, 29896, 467, 21064, 3285, 13, 4706, 269, 13, 1678, 1723, 13, 13, 13, 1753, 4140, 29918, 29883, 5832, 29898, 29879, 29901, 851, 29897, 1599, 851, 29901, 13, 1678, 9995, 9485, 404, 269, 21040, 1206, 470, 29671, 1206, 1213, 15945, 13, 1678, 565, 11119, 29908, 297, 269, 29901, 13, 4706, 736, 376, 29879, 21040, 29908, 13, 1678, 565, 738, 29898, 29883, 29889, 275, 21064, 580, 363, 274, 297, 269, 1125, 13, 4706, 736, 376, 18182, 1052, 29908, 13, 1678, 736, 376, 29879, 21040, 29908, 13, 13, 13, 1753, 4226, 675, 29898, 29879, 29901, 851, 29897, 1599, 851, 29901, 13, 1678, 9995, 19077, 675, 1347, 1881, 1213, 15945, 13, 1678, 565, 269, 29889, 27382, 2541, 703, 5365, 324, 682, 6160, 1125, 13, 4706, 269, 353, 269, 29961, 29947, 17531, 13, 1678, 565, 11119, 29908, 297, 269, 29901, 13, 4706, 396, 372, 29915, 29879, 269, 21040, 1206, 13, 4706, 736, 269, 29889, 6506, 703, 29918, 613, 376, 16521, 13, 1678, 565, 376, 376, 297, 269, 29901, 13, 4706, 736, 269, 13, 1678, 736, 2331, 1052, 29918, 517, 29918, 29879, 21040, 29898, 29879, 29892, 376, 16521, 13, 13, 13, 29911, 353, 5167, 9037, 703, 29911, 1159, 13, 13, 13, 1753, 1051, 1598, 29898, 9891, 29901, 8251, 519, 29897, 1599, 8251, 519, 29901, 13, 1678, 9995, 29777, 740, 304, 2125, 1051, 310, 6273, 1213, 15945, 13, 1678, 732, 29893, 336, 567, 29898, 9891, 29897, 13, 1678, 822, 14476, 29898, 1191, 29901, 7761, 29961, 29911, 29892, 2391, 29961, 29911, 20526, 3579, 19290, 29897, 1599, 7761, 29961, 29911, 29892, 2391, 29961, 29911, 5262, 29901, 13, 4706, 9995, 2052, 368, 740, 304, 1269, 1543, 297, 1051, 1213, 15945, 13, 4706, 565, 338, 8758, 29898, 1191, 29892, 1051, 1125, 13, 9651, 736, 518, 13, 18884, 3653, 29898, 295, 29892, 3579, 19290, 29897, 13, 18884, 363, 560, 297, 1852, 13, 9651, 4514, 13, 4706, 1683, 29901, 13, 9651, 736, 3653, 29898, 1191, 29892, 3579, 19290, 29897, 13, 1678, 736, 14476, 13, 13, 13, 29992, 1761, 1598, 13, 1753, 3402, 29898, 29879, 29901, 851, 29892, 1206, 29901, 28379, 29961, 710, 29962, 353, 6213, 29892, 3579, 19290, 29897, 1599, 851, 29901, 13, 1678, 9995, 5809, 2913, 29899, 4878, 1347, 408, 4768, 324, 682, 315, 15551, 29923, 1213, 15945, 13, 1678, 565, 338, 8758, 29898, 4878, 29892, 851, 29897, 322, 1206, 29889, 13609, 580, 1275, 376, 18182, 1052, 1115, 13, 9651, 736, 376, 5365, 324, 682, 6160, 718, 269, 21040, 29918, 517, 29918, 18182, 1052, 29898, 29879, 29892, 376, 16521, 13, 1678, 25342, 338, 8758, 29898, 4878, 29892, 851, 29897, 322, 1206, 29889, 13609, 580, 1275, 376, 29879, 21040, 1115, 13, 9651, 736, 376, 5365, 324, 682, 6160, 718, 269, 29889, 6506, 703, 9162, 11119, 1159, 13, 1678, 1683, 29901, 13, 4706, 736, 376, 5365, 324, 682, 6160, 718, 269, 13, 13, 13, 1753, 411, 29918, 689, 23980, 7295, 13, 1678, 9995, 2528, 3402, 9678, 1080, 304, 1158, 1213, 15945, 13, 1678, 822, 10200, 1061, 29898, 9891, 29901, 8251, 519, 29897, 1599, 8251, 519, 29901, 13, 4706, 9995, 5631, 403, 10200, 1061, 1213, 15945, 13, 4706, 732, 29893, 336, 567, 29898, 9891, 29897, 13, 4706, 822, 14476, 29898, 1311, 29892, 269, 29901, 851, 29892, 334, 5085, 29892, 20917, 29922, 8824, 29892, 3579, 19290, 1125, 13, 9651, 9995, 29956, 2390, 297, 3402, 9678, 1080, 1213, 15945, 13, 9651, 1206, 353, 4140, 29918, 29883, 5832, 29898, 29879, 29897, 13, 9651, 4226, 1891, 353, 4226, 675, 29898, 29879, 29897, 13, 9651, 1962, 29901, 7761, 29961, 710, 29892, 2391, 29961, 710, 5262, 353, 3653, 29898, 1311, 29892, 4226, 1891, 29892, 334, 5085, 29892, 3579, 19290, 29897, 13, 9651, 565, 20917, 29901, 13, 18884, 565, 4226, 1891, 297, 599, 29918, 13203, 29901, 13, 462, 1678, 1962, 353, 3402, 29898, 4905, 29892, 1206, 543, 18182, 1052, 1159, 13, 18884, 25342, 4226, 1891, 297, 599, 29918, 2536, 1862, 29901, 13, 462, 1678, 1962, 353, 3402, 29898, 4905, 29892, 1206, 543, 29879, 21040, 1159, 13, 18884, 1683, 29901, 13, 462, 1678, 1962, 353, 3402, 29898, 4905, 29892, 1206, 29922, 4878, 29897, 13, 9651, 736, 1962, 13, 4706, 736, 14476, 13, 1678, 736, 10200, 1061, 13, 2 ]
notebook/book/python/head-first-python/Chapter-6/kelly.py
JMwill/note
0
182772
def sanitize(time_string): if '-' in time_string: spliter = '-' elif ':' in time_string: spliter = ':' else: return time_string (mins, secs) = time_string.split(spliter) return mins + '.' + secs def get_coach_data(filepath): try: with open(filepath) as f: data = f.readline() data = data.strip().split(',') return { 'name': data.pop(0), 'dob': data.pop(0), 'times': sorted(set([sanitize(time) for time in data]))[:3] } except IOError as err: print('File error: ' + str(err)) return None sarah = get_coach_data('hfpy_ch6_data/sarah2.txt') james = get_coach_data('hfpy_ch6_data/james2.txt') julie = get_coach_data('hfpy_ch6_data/julie2.txt') mikey = get_coach_data('hfpy_ch6_data/mikey2.txt') print(sarah['name'] + "'s fastest times are: " + str(sarah['times'])) print(james['name'] + "'s fastest times are: " + str(james['times'])) print(julie['name'] + "'s fastest times are: " + str(julie['times'])) print(mikey['name'] + "'s fastest times are: " + str(mikey['times'])) print('\n==========================> line break <============================\n') # 改进2 class Athlete(): def __init__(self, name, dob=None, times=[]): self.name = name self.dob = dob self.times = times def top3(self): return sorted(set([sanitize(time) for time in self.times]))[:3] def add_time(self, data): self.times.append(data) def add_times(self, data_arr=[]): self.times.extend(data_arr) def get_coach_data(filepath): try: with open(filepath) as f: data = f.readline().strip().split(',') return Athlete(data.pop(0), data.pop(0), data) except IOError as err: print('File error: ' + str(err)) return None james = get_coach_data('hfpy_ch6_data/james2.txt') julie = get_coach_data('hfpy_ch6_data/julie2.txt') mikey = get_coach_data('hfpy_ch6_data/mikey2.txt') sarah = get_coach_data('hfpy_ch6_data/sarah2.txt') print(james.name + "'s fastest times are: " + str(james.top3())) print(julie.name + "'s fastest times are: " + str(julie.top3())) print(mikey.name + "'s fastest times are: " + str(mikey.top3())) print(sarah.name + "'s fastest times are: " + str(sarah.top3())) # 改进3 print('\n==========================> line break <============================\n') class Athlete(list): def __init__(self, name, dob=None, times=[]): list.__init__([]) self.name = name self.dob = dob self.extend(times) def top3(self): return sorted(set([sanitize(time) for time in self]))[:3] james = get_coach_data('hfpy_ch6_data/james2.txt') julie = get_coach_data('hfpy_ch6_data/julie2.txt') mikey = get_coach_data('hfpy_ch6_data/mikey2.txt') sarah = get_coach_data('hfpy_ch6_data/sarah2.txt') print(james.name + "'s fastest times are: " + str(james.top3())) print(julie.name + "'s fastest times are: " + str(julie.top3())) print(mikey.name + "'s fastest times are: " + str(mikey.top3())) print(sarah.name + "'s fastest times are: " + str(sarah.top3()))
[ 1, 822, 9753, 277, 675, 29898, 2230, 29918, 1807, 1125, 13, 1678, 565, 17411, 29915, 297, 931, 29918, 1807, 29901, 13, 4706, 8536, 1524, 353, 17411, 29915, 13, 1678, 25342, 525, 11283, 297, 931, 29918, 1807, 29901, 13, 4706, 8536, 1524, 353, 525, 11283, 13, 1678, 1683, 29901, 13, 4706, 736, 931, 29918, 1807, 13, 1678, 313, 29885, 1144, 29892, 409, 2395, 29897, 353, 931, 29918, 1807, 29889, 5451, 29898, 23579, 1524, 29897, 13, 1678, 736, 286, 1144, 718, 525, 6169, 718, 409, 2395, 13, 13, 1753, 679, 29918, 1111, 496, 29918, 1272, 29898, 1445, 2084, 1125, 13, 1678, 1018, 29901, 13, 4706, 411, 1722, 29898, 1445, 2084, 29897, 408, 285, 29901, 13, 9651, 848, 353, 285, 29889, 949, 1220, 580, 13, 9651, 848, 353, 848, 29889, 17010, 2141, 5451, 29317, 1495, 13, 4706, 736, 426, 13, 9651, 525, 978, 2396, 848, 29889, 7323, 29898, 29900, 511, 13, 9651, 525, 11152, 2396, 848, 29889, 7323, 29898, 29900, 511, 13, 9651, 525, 3706, 2396, 12705, 29898, 842, 4197, 28455, 277, 675, 29898, 2230, 29897, 363, 931, 297, 848, 12622, 7503, 29941, 29962, 13, 4706, 500, 13, 1678, 5174, 10663, 2392, 408, 4589, 29901, 13, 4706, 1596, 877, 2283, 1059, 29901, 525, 718, 851, 29898, 3127, 876, 13, 4706, 736, 6213, 13, 13, 29879, 279, 801, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 29879, 279, 801, 29906, 29889, 3945, 1495, 13, 29926, 1280, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 29926, 1280, 29906, 29889, 3945, 1495, 13, 29926, 352, 347, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 29926, 352, 347, 29906, 29889, 3945, 1495, 13, 2460, 1989, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 2460, 1989, 29906, 29889, 3945, 1495, 13, 13, 2158, 29898, 29879, 279, 801, 1839, 978, 2033, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 29879, 279, 801, 1839, 3706, 25901, 13, 2158, 29898, 29926, 1280, 1839, 978, 2033, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 29926, 1280, 1839, 3706, 25901, 13, 2158, 29898, 29926, 352, 347, 1839, 978, 2033, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 29926, 352, 347, 1839, 3706, 25901, 13, 2158, 29898, 2460, 1989, 1839, 978, 2033, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 2460, 1989, 1839, 3706, 25901, 13, 13, 2158, 28909, 29876, 9166, 4936, 1360, 29958, 1196, 2867, 529, 9166, 4936, 2751, 29905, 29876, 1495, 13, 13, 29937, 29871, 31264, 31174, 29906, 13, 13, 1990, 9193, 2810, 7295, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1024, 29892, 20129, 29922, 8516, 29892, 3064, 29922, 2636, 1125, 13, 4706, 1583, 29889, 978, 353, 1024, 13, 4706, 1583, 29889, 11152, 353, 20129, 13, 4706, 1583, 29889, 3706, 353, 3064, 13, 268, 13, 1678, 822, 2246, 29941, 29898, 1311, 1125, 13, 4706, 736, 12705, 29898, 842, 4197, 28455, 277, 675, 29898, 2230, 29897, 363, 931, 297, 1583, 29889, 3706, 12622, 7503, 29941, 29962, 13, 268, 13, 1678, 822, 788, 29918, 2230, 29898, 1311, 29892, 848, 1125, 13, 4706, 1583, 29889, 3706, 29889, 4397, 29898, 1272, 29897, 13, 13, 1678, 822, 788, 29918, 3706, 29898, 1311, 29892, 848, 29918, 2749, 29922, 2636, 1125, 13, 4706, 1583, 29889, 3706, 29889, 21843, 29898, 1272, 29918, 2749, 29897, 13, 13, 1753, 679, 29918, 1111, 496, 29918, 1272, 29898, 1445, 2084, 1125, 13, 1678, 1018, 29901, 13, 4706, 411, 1722, 29898, 1445, 2084, 29897, 408, 285, 29901, 13, 9651, 848, 353, 285, 29889, 949, 1220, 2141, 17010, 2141, 5451, 29317, 1495, 13, 9651, 736, 9193, 2810, 29898, 1272, 29889, 7323, 29898, 29900, 511, 848, 29889, 7323, 29898, 29900, 511, 848, 29897, 13, 1678, 5174, 10663, 2392, 408, 4589, 29901, 13, 4706, 1596, 877, 2283, 1059, 29901, 525, 718, 851, 29898, 3127, 876, 13, 4706, 736, 6213, 13, 13, 29926, 1280, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 29926, 1280, 29906, 29889, 3945, 1495, 13, 29926, 352, 347, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 29926, 352, 347, 29906, 29889, 3945, 1495, 13, 2460, 1989, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 2460, 1989, 29906, 29889, 3945, 1495, 13, 29879, 279, 801, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 29879, 279, 801, 29906, 29889, 3945, 1495, 13, 2158, 29898, 29926, 1280, 29889, 978, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 29926, 1280, 29889, 3332, 29941, 22130, 13, 2158, 29898, 29926, 352, 347, 29889, 978, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 29926, 352, 347, 29889, 3332, 29941, 22130, 13, 2158, 29898, 2460, 1989, 29889, 978, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 2460, 1989, 29889, 3332, 29941, 22130, 13, 2158, 29898, 29879, 279, 801, 29889, 978, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 29879, 279, 801, 29889, 3332, 29941, 22130, 13, 13, 13, 29937, 29871, 31264, 31174, 29941, 13, 13, 2158, 28909, 29876, 9166, 4936, 1360, 29958, 1196, 2867, 529, 9166, 4936, 2751, 29905, 29876, 1495, 13, 13, 1990, 9193, 2810, 29898, 1761, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1024, 29892, 20129, 29922, 8516, 29892, 3064, 29922, 2636, 1125, 13, 4706, 1051, 17255, 2344, 1649, 4197, 2314, 13, 4706, 1583, 29889, 978, 353, 1024, 13, 4706, 1583, 29889, 11152, 353, 20129, 13, 4706, 1583, 29889, 21843, 29898, 3706, 29897, 13, 268, 13, 1678, 822, 2246, 29941, 29898, 1311, 1125, 13, 4706, 736, 12705, 29898, 842, 4197, 28455, 277, 675, 29898, 2230, 29897, 363, 931, 297, 1583, 12622, 7503, 29941, 29962, 13, 13, 29926, 1280, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 29926, 1280, 29906, 29889, 3945, 1495, 13, 29926, 352, 347, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 29926, 352, 347, 29906, 29889, 3945, 1495, 13, 2460, 1989, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 2460, 1989, 29906, 29889, 3945, 1495, 13, 29879, 279, 801, 353, 679, 29918, 1111, 496, 29918, 1272, 877, 29882, 29888, 2272, 29918, 305, 29953, 29918, 1272, 29914, 29879, 279, 801, 29906, 29889, 3945, 1495, 13, 2158, 29898, 29926, 1280, 29889, 978, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 29926, 1280, 29889, 3332, 29941, 22130, 13, 2158, 29898, 29926, 352, 347, 29889, 978, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 29926, 352, 347, 29889, 3332, 29941, 22130, 13, 2158, 29898, 2460, 1989, 29889, 978, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 2460, 1989, 29889, 3332, 29941, 22130, 13, 2158, 29898, 29879, 279, 801, 29889, 978, 718, 13577, 29879, 5172, 342, 3064, 526, 29901, 376, 718, 851, 29898, 29879, 279, 801, 29889, 3332, 29941, 22130, 13, 2 ]
tests/integration/test_logs.py
matthall88/localstack
1
131710
# -*- coding: utf-8 -*- import unittest from localstack.constants import APPLICATION_AMZ_JSON_1_1 from localstack.utils.aws import aws_stack from localstack.utils import testutil from localstack.utils.common import short_uid, retry from localstack.services.awslambda.lambda_api import LAMBDA_RUNTIME_PYTHON36, func_arn from tests.integration.test_lambda import TEST_LAMBDA_PYTHON3, TEST_LAMBDA_NAME_PY3, TEST_LAMBDA_LIBS class CloudWatchLogsTest(unittest.TestCase): def setUp(self): self.logs_client = aws_stack.connect_to_service('logs') def test_put_events_multi_bytes_msg(self): group = 'g-%s' % short_uid() stream = 's-%s' % short_uid() response = self.logs_client.create_log_group(logGroupName=group) self.assertEqual(response['ResponseMetadata']['HTTPStatusCode'], 200) response = self.logs_client.create_log_stream(logGroupName=group, logStreamName=stream) self.assertEqual(response['ResponseMetadata']['HTTPStatusCode'], 200) # send message with non-ASCII (multi-byte) chars body_msg = '🙀 - 参よ - 日本語' events = [{ 'timestamp': 1546300800, 'message': body_msg }] response = self.logs_client.put_log_events(logGroupName=group, logStreamName=stream, logEvents=events) self.assertEqual(response['ResponseMetadata']['HTTPStatusCode'], 200) events = self.logs_client.get_log_events(logGroupName=group, logStreamName=stream)['events'] self.assertEqual(events[0]['message'], body_msg) # clean up self.logs_client.delete_log_group( logGroupName=group ) def test_filter_log_events_response_header(self): group = 'lg-%s' % short_uid() stream = 'ls-%s' % short_uid() self.logs_client.create_log_group(logGroupName=group) self.logs_client.create_log_stream(logGroupName=group, logStreamName=stream) events = [ {'timestamp': 1585902800, 'message': 'log message 1'}, {'timestamp': 1585902961, 'message': 'log message 2'} ] self.logs_client.put_log_events(logGroupName=group, logStreamName=stream, logEvents=events) rs = self.logs_client.filter_log_events( logGroupName=group ) self.assertEqual(rs['ResponseMetadata']['HTTPStatusCode'], 200) self.assertEqual(rs['ResponseMetadata']['HTTPHeaders']['content-type'], APPLICATION_AMZ_JSON_1_1) # clean up self.logs_client.delete_log_group( logGroupName=group ) def test_list_tags_log_group(self): group = 'lg-%s' % short_uid() self.logs_client.create_log_group( logGroupName=group, tags={ 'env': 'testing1' } ) rs = self.logs_client.list_tags_log_group( logGroupName=group ) self.assertEqual(rs['ResponseMetadata']['HTTPStatusCode'], 200) self.assertIn('tags', rs) self.assertEqual(rs['tags']['env'], 'testing1') # clean up self.logs_client.delete_log_group( logGroupName=group ) def test_put_subscribe_policy(self): lambda_client = aws_stack.connect_to_service('lambda') log_client = aws_stack.connect_to_service('logs') testutil.create_lambda_function( handler_file=TEST_LAMBDA_PYTHON3, libs=TEST_LAMBDA_LIBS, func_name=TEST_LAMBDA_NAME_PY3, runtime=LAMBDA_RUNTIME_PYTHON36) lambda_client.invoke( FunctionName=TEST_LAMBDA_NAME_PY3, Payload=b'{}') log_group_name = '/aws/lambda/{}'.format(TEST_LAMBDA_NAME_PY3) log_client.put_subscription_filter( logGroupName=log_group_name, filterName='test', filterPattern='', destinationArn=func_arn(TEST_LAMBDA_NAME_PY3), ) stream = 'ls-%s' % short_uid() log_client.create_log_stream(logGroupName=log_group_name, logStreamName=stream) log_client.put_log_events( logGroupName=log_group_name, logStreamName=stream, logEvents=[ {'timestamp': 0, 'message': 'test'}, {'timestamp': 0, 'message': 'test 2'}, ], ) resp2 = log_client.describe_subscription_filters(logGroupName=log_group_name) self.assertEqual(len(resp2['subscriptionFilters']), 1) def check_invocation(): events = testutil.get_lambda_log_events(TEST_LAMBDA_NAME_PY3) self.assertEqual(len(events), 2) retry(check_invocation, retries=6, sleep=3.0)
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 5215, 443, 27958, 13, 3166, 1887, 1429, 29889, 3075, 1934, 1053, 12279, 7390, 28541, 29918, 5194, 29999, 29918, 7249, 29918, 29896, 29918, 29896, 13, 3166, 1887, 1429, 29889, 13239, 29889, 10467, 1053, 25879, 29918, 1429, 13, 3166, 1887, 1429, 29889, 13239, 1053, 1243, 4422, 13, 3166, 1887, 1429, 29889, 13239, 29889, 9435, 1053, 3273, 29918, 5416, 29892, 337, 2202, 13, 3166, 1887, 1429, 29889, 9916, 29889, 1450, 2536, 2269, 29889, 2892, 29918, 2754, 1053, 365, 5194, 29933, 7698, 29918, 29934, 10356, 8890, 29918, 20055, 4690, 1164, 29941, 29953, 29892, 3653, 29918, 2753, 13, 3166, 6987, 29889, 27925, 29889, 1688, 29918, 2892, 1053, 17067, 1254, 29918, 4375, 9486, 7698, 29918, 20055, 4690, 1164, 29941, 29892, 17067, 1254, 29918, 4375, 9486, 7698, 29918, 5813, 29918, 20055, 29941, 29892, 17067, 1254, 29918, 4375, 9486, 7698, 29918, 5265, 9851, 13, 13, 13, 1990, 14293, 24709, 3403, 29879, 3057, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 20756, 29918, 4645, 353, 25879, 29918, 1429, 29889, 6915, 29918, 517, 29918, 5509, 877, 20756, 1495, 13, 13, 1678, 822, 1243, 29918, 649, 29918, 13604, 29918, 9910, 29918, 13193, 29918, 7645, 29898, 1311, 1125, 13, 4706, 2318, 353, 525, 29887, 19222, 29879, 29915, 1273, 3273, 29918, 5416, 580, 13, 4706, 4840, 353, 525, 29879, 19222, 29879, 29915, 1273, 3273, 29918, 5416, 580, 13, 13, 4706, 2933, 353, 1583, 29889, 20756, 29918, 4645, 29889, 3258, 29918, 1188, 29918, 2972, 29898, 1188, 4782, 1170, 29922, 2972, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 5327, 1839, 5103, 18417, 16215, 10493, 5709, 3399, 7464, 29871, 29906, 29900, 29900, 29897, 13, 13, 4706, 2933, 353, 1583, 29889, 20756, 29918, 4645, 29889, 3258, 29918, 1188, 29918, 5461, 29898, 1188, 4782, 1170, 29922, 2972, 29892, 1480, 3835, 1170, 29922, 5461, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 5327, 1839, 5103, 18417, 16215, 10493, 5709, 3399, 7464, 29871, 29906, 29900, 29900, 29897, 13, 13, 4706, 396, 3638, 2643, 411, 1661, 29899, 28599, 2687, 313, 9910, 29899, 10389, 29897, 22524, 13, 4706, 3573, 29918, 7645, 353, 525, 243, 162, 156, 131, 448, 29871, 31125, 30787, 448, 29871, 30325, 30346, 30968, 29915, 13, 4706, 4959, 353, 15974, 13, 9651, 525, 16394, 2396, 29871, 29896, 29945, 29946, 29953, 29941, 29900, 29900, 29947, 29900, 29900, 29892, 13, 9651, 525, 4906, 2396, 3573, 29918, 7645, 13, 4706, 500, 29962, 13, 4706, 2933, 353, 1583, 29889, 20756, 29918, 4645, 29889, 649, 29918, 1188, 29918, 13604, 29898, 1188, 4782, 1170, 29922, 2972, 29892, 1480, 3835, 1170, 29922, 5461, 29892, 1480, 13634, 29922, 13604, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 5327, 1839, 5103, 18417, 16215, 10493, 5709, 3399, 7464, 29871, 29906, 29900, 29900, 29897, 13, 13, 4706, 4959, 353, 1583, 29889, 20756, 29918, 4645, 29889, 657, 29918, 1188, 29918, 13604, 29898, 1188, 4782, 1170, 29922, 2972, 29892, 1480, 3835, 1170, 29922, 5461, 29897, 1839, 13604, 2033, 13, 4706, 1583, 29889, 9294, 9843, 29898, 13604, 29961, 29900, 22322, 4906, 7464, 3573, 29918, 7645, 29897, 13, 13, 4706, 396, 5941, 701, 13, 4706, 1583, 29889, 20756, 29918, 4645, 29889, 8143, 29918, 1188, 29918, 2972, 29898, 13, 9651, 1480, 4782, 1170, 29922, 2972, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 4572, 29918, 1188, 29918, 13604, 29918, 5327, 29918, 6672, 29898, 1311, 1125, 13, 4706, 2318, 353, 525, 19920, 19222, 29879, 29915, 1273, 3273, 29918, 5416, 580, 13, 4706, 4840, 353, 525, 3137, 19222, 29879, 29915, 1273, 3273, 29918, 5416, 580, 13, 13, 4706, 1583, 29889, 20756, 29918, 4645, 29889, 3258, 29918, 1188, 29918, 2972, 29898, 1188, 4782, 1170, 29922, 2972, 29897, 13, 4706, 1583, 29889, 20756, 29918, 4645, 29889, 3258, 29918, 1188, 29918, 5461, 29898, 1188, 4782, 1170, 29922, 2972, 29892, 1480, 3835, 1170, 29922, 5461, 29897, 13, 13, 4706, 4959, 353, 518, 13, 9651, 11117, 16394, 2396, 29871, 29896, 29945, 29947, 29945, 29929, 29900, 29906, 29947, 29900, 29900, 29892, 525, 4906, 2396, 525, 1188, 2643, 29871, 29896, 16675, 13, 9651, 11117, 16394, 2396, 29871, 29896, 29945, 29947, 29945, 29929, 29900, 29906, 29929, 29953, 29896, 29892, 525, 4906, 2396, 525, 1188, 2643, 29871, 29906, 10827, 13, 4706, 4514, 13, 4706, 1583, 29889, 20756, 29918, 4645, 29889, 649, 29918, 1188, 29918, 13604, 29898, 1188, 4782, 1170, 29922, 2972, 29892, 1480, 3835, 1170, 29922, 5461, 29892, 1480, 13634, 29922, 13604, 29897, 13, 13, 4706, 20371, 353, 1583, 29889, 20756, 29918, 4645, 29889, 4572, 29918, 1188, 29918, 13604, 29898, 13, 9651, 1480, 4782, 1170, 29922, 2972, 13, 4706, 1723, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2288, 1839, 5103, 18417, 16215, 10493, 5709, 3399, 7464, 29871, 29906, 29900, 29900, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2288, 1839, 5103, 18417, 16215, 10493, 18163, 16215, 3051, 29899, 1853, 7464, 12279, 7390, 28541, 29918, 5194, 29999, 29918, 7249, 29918, 29896, 29918, 29896, 29897, 13, 13, 4706, 396, 5941, 701, 13, 4706, 1583, 29889, 20756, 29918, 4645, 29889, 8143, 29918, 1188, 29918, 2972, 29898, 13, 9651, 1480, 4782, 1170, 29922, 2972, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 1761, 29918, 11338, 29918, 1188, 29918, 2972, 29898, 1311, 1125, 13, 4706, 2318, 353, 525, 19920, 19222, 29879, 29915, 1273, 3273, 29918, 5416, 580, 13, 4706, 1583, 29889, 20756, 29918, 4645, 29889, 3258, 29918, 1188, 29918, 2972, 29898, 13, 9651, 1480, 4782, 1170, 29922, 2972, 29892, 13, 9651, 8282, 3790, 13, 18884, 525, 6272, 2396, 525, 13424, 29896, 29915, 13, 9651, 500, 13, 4706, 1723, 13, 13, 4706, 20371, 353, 1583, 29889, 20756, 29918, 4645, 29889, 1761, 29918, 11338, 29918, 1188, 29918, 2972, 29898, 13, 9651, 1480, 4782, 1170, 29922, 2972, 13, 4706, 1723, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2288, 1839, 5103, 18417, 16215, 10493, 5709, 3399, 7464, 29871, 29906, 29900, 29900, 29897, 13, 4706, 1583, 29889, 9294, 797, 877, 11338, 742, 20371, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2288, 1839, 11338, 16215, 6272, 7464, 525, 13424, 29896, 1495, 13, 13, 4706, 396, 5941, 701, 13, 4706, 1583, 29889, 20756, 29918, 4645, 29889, 8143, 29918, 1188, 29918, 2972, 29898, 13, 9651, 1480, 4782, 1170, 29922, 2972, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 649, 29918, 19496, 29918, 22197, 29898, 1311, 1125, 13, 4706, 14013, 29918, 4645, 353, 25879, 29918, 1429, 29889, 6915, 29918, 517, 29918, 5509, 877, 2892, 1495, 13, 4706, 1480, 29918, 4645, 353, 25879, 29918, 1429, 29889, 6915, 29918, 517, 29918, 5509, 877, 20756, 1495, 13, 13, 4706, 1243, 4422, 29889, 3258, 29918, 2892, 29918, 2220, 29898, 13, 9651, 7834, 29918, 1445, 29922, 18267, 29918, 4375, 9486, 7698, 29918, 20055, 4690, 1164, 29941, 29892, 4303, 29879, 29922, 18267, 29918, 4375, 9486, 7698, 29918, 5265, 9851, 29892, 13, 9651, 3653, 29918, 978, 29922, 18267, 29918, 4375, 9486, 7698, 29918, 5813, 29918, 20055, 29941, 29892, 10073, 29922, 4375, 9486, 7698, 29918, 29934, 10356, 8890, 29918, 20055, 4690, 1164, 29941, 29953, 29897, 13, 13, 4706, 14013, 29918, 4645, 29889, 9772, 29898, 13, 9651, 6680, 1170, 29922, 18267, 29918, 4375, 9486, 7698, 29918, 5813, 29918, 20055, 29941, 29892, 14617, 1359, 29922, 29890, 29915, 8875, 1495, 13, 13, 4706, 1480, 29918, 2972, 29918, 978, 353, 8207, 10467, 29914, 2892, 29914, 8875, 4286, 4830, 29898, 18267, 29918, 4375, 9486, 7698, 29918, 5813, 29918, 20055, 29941, 29897, 13, 13, 4706, 1480, 29918, 4645, 29889, 649, 29918, 1491, 22371, 29918, 4572, 29898, 13, 9651, 1480, 4782, 1170, 29922, 1188, 29918, 2972, 29918, 978, 29892, 13, 9651, 4175, 1170, 2433, 1688, 742, 13, 9651, 4175, 17144, 2433, 742, 13, 9651, 12551, 1433, 29876, 29922, 9891, 29918, 2753, 29898, 18267, 29918, 4375, 9486, 7698, 29918, 5813, 29918, 20055, 29941, 511, 13, 4706, 1723, 13, 4706, 4840, 353, 525, 3137, 19222, 29879, 29915, 1273, 3273, 29918, 5416, 580, 13, 4706, 1480, 29918, 4645, 29889, 3258, 29918, 1188, 29918, 5461, 29898, 1188, 4782, 1170, 29922, 1188, 29918, 2972, 29918, 978, 29892, 1480, 3835, 1170, 29922, 5461, 29897, 13, 13, 4706, 1480, 29918, 4645, 29889, 649, 29918, 1188, 29918, 13604, 29898, 13, 9651, 1480, 4782, 1170, 29922, 1188, 29918, 2972, 29918, 978, 29892, 13, 9651, 1480, 3835, 1170, 29922, 5461, 29892, 13, 9651, 1480, 13634, 11759, 13, 18884, 11117, 16394, 2396, 29871, 29900, 29892, 525, 4906, 2396, 525, 1688, 16675, 13, 18884, 11117, 16394, 2396, 29871, 29900, 29892, 525, 4906, 2396, 525, 1688, 29871, 29906, 16675, 13, 9651, 21251, 13, 4706, 1723, 13, 13, 4706, 4613, 29906, 353, 1480, 29918, 4645, 29889, 2783, 29581, 29918, 1491, 22371, 29918, 26705, 29898, 1188, 4782, 1170, 29922, 1188, 29918, 2972, 29918, 978, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 13713, 29906, 1839, 1491, 22371, 3434, 2153, 2033, 511, 29871, 29896, 29897, 13, 13, 4706, 822, 1423, 29918, 11569, 10610, 7295, 13, 9651, 4959, 353, 1243, 4422, 29889, 657, 29918, 2892, 29918, 1188, 29918, 13604, 29898, 18267, 29918, 4375, 9486, 7698, 29918, 5813, 29918, 20055, 29941, 29897, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 13604, 511, 29871, 29906, 29897, 13, 13, 4706, 337, 2202, 29898, 3198, 29918, 11569, 10610, 29892, 3240, 2722, 29922, 29953, 29892, 8709, 29922, 29941, 29889, 29900, 29897, 13, 2 ]
example.py
mpainenz/tnas-client
0
126639
from connection import api_client username = 'something' password = '<PASSWORD>' carrier_id = '12356' tnas_connection = api_client.TNASConnection(api_client.TNAS_TEST) tnas_connection.login(username=username, password=password, carrier_id=carrier_id)
[ 1, 515, 3957, 1053, 7882, 29918, 4645, 13, 13, 6786, 353, 525, 14481, 29915, 13, 5630, 353, 12801, 25711, 17013, 16299, 13, 4287, 4336, 29918, 333, 353, 525, 29896, 29906, 29941, 29945, 29953, 29915, 13, 13, 6277, 294, 29918, 9965, 353, 7882, 29918, 4645, 29889, 29911, 29940, 3289, 5350, 29898, 2754, 29918, 4645, 29889, 29911, 29940, 3289, 29918, 18267, 29897, 13, 6277, 294, 29918, 9965, 29889, 7507, 29898, 6786, 29922, 6786, 29892, 4800, 29922, 5630, 29892, 1559, 4336, 29918, 333, 29922, 4287, 4336, 29918, 333, 29897, 13, 2 ]
keystone/common/policies/policy.py
rajivmucheli/keystone
0
144676
# 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 oslo_policy import policy from keystone.common.policies import base policy_policies = [ policy.DocumentedRuleDefault( name=base.IDENTITY % 'get_policy', check_str=base.RULE_ADMIN_REQUIRED, # This API isn't really exposed to usable, it's actually deprecated. # More-or-less adding scope_types to be consistent with other policies. scope_types=['system'], description='Show policy details.', operations=[{'path': '/v3/policy/{policy_id}', 'method': 'GET'}]), policy.DocumentedRuleDefault( name=base.IDENTITY % 'list_policies', check_str=base.RULE_ADMIN_REQUIRED, scope_types=['system'], description='List policies.', operations=[{'path': '/v3/policies', 'method': 'GET'}]), policy.DocumentedRuleDefault( name=base.IDENTITY % 'create_policy', check_str=base.RULE_ADMIN_REQUIRED, scope_types=['system'], description='Create policy.', operations=[{'path': '/v3/policies', 'method': 'POST'}]), policy.DocumentedRuleDefault( name=base.IDENTITY % 'update_policy', check_str=base.RULE_ADMIN_REQUIRED, scope_types=['system'], description='Update policy.', operations=[{'path': '/v3/policies/{policy_id}', 'method': 'PATCH'}]), policy.DocumentedRuleDefault( name=base.IDENTITY % 'delete_policy', check_str=base.RULE_ADMIN_REQUIRED, scope_types=['system'], description='Delete policy.', operations=[{'path': '/v3/policies/{policy_id}', 'method': 'DELETE'}]) ] def list_rules(): return policy_policies
[ 1, 396, 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, 887, 1122, 4017, 13, 29937, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 418, 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, 2823, 278, 13, 29937, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 27028, 13, 29937, 1090, 278, 19245, 29889, 13, 13, 3166, 2897, 417, 29918, 22197, 1053, 8898, 13, 13, 3166, 1589, 858, 650, 29889, 9435, 29889, 3733, 293, 583, 1053, 2967, 13, 13, 22197, 29918, 3733, 293, 583, 353, 518, 13, 1678, 8898, 29889, 6268, 287, 10740, 4592, 29898, 13, 4706, 1024, 29922, 3188, 29889, 1367, 3919, 11937, 1273, 525, 657, 29918, 22197, 742, 13, 4706, 1423, 29918, 710, 29922, 3188, 29889, 28283, 1307, 29918, 3035, 16173, 29918, 1525, 29984, 3120, 19386, 29892, 13, 4706, 396, 910, 3450, 3508, 29915, 29873, 2289, 19884, 304, 502, 519, 29892, 372, 29915, 29879, 2869, 18164, 29889, 13, 4706, 396, 5853, 29899, 272, 29899, 2222, 4417, 6874, 29918, 8768, 304, 367, 13747, 411, 916, 24833, 29889, 13, 4706, 6874, 29918, 8768, 29922, 1839, 5205, 7464, 13, 4706, 6139, 2433, 8964, 8898, 4902, 29889, 742, 13, 4706, 6931, 11759, 10998, 2084, 2396, 8207, 29894, 29941, 29914, 22197, 19248, 22197, 29918, 333, 29913, 742, 13, 462, 268, 525, 5696, 2396, 525, 7194, 29915, 6525, 511, 13, 1678, 8898, 29889, 6268, 287, 10740, 4592, 29898, 13, 4706, 1024, 29922, 3188, 29889, 1367, 3919, 11937, 1273, 525, 1761, 29918, 3733, 293, 583, 742, 13, 4706, 1423, 29918, 710, 29922, 3188, 29889, 28283, 1307, 29918, 3035, 16173, 29918, 1525, 29984, 3120, 19386, 29892, 13, 4706, 6874, 29918, 8768, 29922, 1839, 5205, 7464, 13, 4706, 6139, 2433, 1293, 24833, 29889, 742, 13, 4706, 6931, 11759, 10998, 2084, 2396, 8207, 29894, 29941, 29914, 3733, 293, 583, 742, 13, 462, 268, 525, 5696, 2396, 525, 7194, 29915, 6525, 511, 13, 1678, 8898, 29889, 6268, 287, 10740, 4592, 29898, 13, 4706, 1024, 29922, 3188, 29889, 1367, 3919, 11937, 1273, 525, 3258, 29918, 22197, 742, 13, 4706, 1423, 29918, 710, 29922, 3188, 29889, 28283, 1307, 29918, 3035, 16173, 29918, 1525, 29984, 3120, 19386, 29892, 13, 4706, 6874, 29918, 8768, 29922, 1839, 5205, 7464, 13, 4706, 6139, 2433, 4391, 8898, 29889, 742, 13, 4706, 6931, 11759, 10998, 2084, 2396, 8207, 29894, 29941, 29914, 3733, 293, 583, 742, 13, 462, 268, 525, 5696, 2396, 525, 5438, 29915, 6525, 511, 13, 1678, 8898, 29889, 6268, 287, 10740, 4592, 29898, 13, 4706, 1024, 29922, 3188, 29889, 1367, 3919, 11937, 1273, 525, 5504, 29918, 22197, 742, 13, 4706, 1423, 29918, 710, 29922, 3188, 29889, 28283, 1307, 29918, 3035, 16173, 29918, 1525, 29984, 3120, 19386, 29892, 13, 4706, 6874, 29918, 8768, 29922, 1839, 5205, 7464, 13, 4706, 6139, 2433, 6422, 8898, 29889, 742, 13, 4706, 6931, 11759, 10998, 2084, 2396, 8207, 29894, 29941, 29914, 3733, 293, 583, 19248, 22197, 29918, 333, 29913, 742, 13, 462, 268, 525, 5696, 2396, 525, 29925, 14789, 29915, 6525, 511, 13, 1678, 8898, 29889, 6268, 287, 10740, 4592, 29898, 13, 4706, 1024, 29922, 3188, 29889, 1367, 3919, 11937, 1273, 525, 8143, 29918, 22197, 742, 13, 4706, 1423, 29918, 710, 29922, 3188, 29889, 28283, 1307, 29918, 3035, 16173, 29918, 1525, 29984, 3120, 19386, 29892, 13, 4706, 6874, 29918, 8768, 29922, 1839, 5205, 7464, 13, 4706, 6139, 2433, 12498, 8898, 29889, 742, 13, 4706, 6931, 11759, 10998, 2084, 2396, 8207, 29894, 29941, 29914, 3733, 293, 583, 19248, 22197, 29918, 333, 29913, 742, 13, 462, 268, 525, 5696, 2396, 525, 2287, 18476, 10827, 2314, 13, 29962, 13, 13, 13, 1753, 1051, 29918, 19238, 7295, 13, 1678, 736, 8898, 29918, 3733, 293, 583, 13, 2 ]
virt/ansible-latest/lib/python2.7/site-packages/ansible/modules/cloud/ovirt/ovirt_api_facts.py
lakhlaifi/RedHat-Ansible
1
49697
<gh_stars>1-10 #!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: ovirt_api_facts short_description: Retrieve facts about the oVirt/RHV API author: "<NAME> (@machacekondra)" version_added: "2.5" description: - "Retrieve facts about the oVirt/RHV API." notes: - "This module creates a new top-level C(ovirt_api) fact, which contains a information about oVirt/RHV API." extends_documentation_fragment: ovirt_facts ''' EXAMPLES = ''' # Examples don't contain auth parameter for simplicity, # look at ovirt_auth module to see how to reuse authentication: # Gather facts oVirt API: - ovirt_api_facts: - debug: var: ovirt_api ''' RETURN = ''' ovirt_api: description: "Dictionary describing the oVirt API information. Api attributes are mapped to dictionary keys, all API attributes can be found at following url: https://ovirt.example.com/ovirt-engine/api/model#types/api." returned: On success. type: dict ''' import traceback from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.ovirt import ( check_sdk, create_connection, get_dict_of_struct, ovirt_facts_full_argument_spec, ) def main(): argument_spec = ovirt_facts_full_argument_spec() module = AnsibleModule(argument_spec) check_sdk(module) try: auth = module.params.pop('auth') connection = create_connection(auth) api = connection.system_service().get() module.exit_json( changed=False, ansible_facts=dict( ovirt_api=get_dict_of_struct( struct=api, connection=connection, fetch_nested=module.params.get('fetch_nested'), attributes=module.params.get('nested_attributes'), ) ), ) except Exception as e: module.fail_json(msg=str(e), exception=traceback.format_exc()) finally: connection.close(logout=auth.get('token') is None) if __name__ == '__main__': main()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29955, 530, 1687, 8010, 13, 29937, 15143, 4593, 5236, 19245, 325, 29941, 29889, 29900, 29974, 313, 4149, 315, 4590, 29979, 4214, 470, 2045, 597, 1636, 29889, 18713, 29889, 990, 29914, 506, 11259, 29914, 29887, 572, 29899, 29941, 29889, 29900, 29889, 3945, 29897, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 29892, 8542, 29892, 1596, 29918, 2220, 13, 1649, 2527, 562, 605, 1649, 353, 1134, 13, 13, 13, 2190, 5425, 29933, 1307, 29918, 2303, 29911, 3035, 8254, 353, 426, 13, 1678, 525, 19635, 29918, 3259, 2396, 525, 29896, 29889, 29896, 742, 13, 1678, 525, 4882, 2396, 6024, 25347, 7464, 13, 1678, 525, 23765, 29918, 1609, 2396, 525, 23834, 29915, 13, 29913, 13, 13, 13, 28665, 5005, 3919, 8098, 353, 14550, 13, 5634, 13, 5453, 29901, 288, 15389, 29918, 2754, 29918, 17028, 29879, 13, 12759, 29918, 8216, 29901, 4649, 29878, 2418, 17099, 1048, 278, 288, 29963, 2728, 29914, 29934, 29950, 29963, 3450, 13, 8921, 29901, 9872, 5813, 29958, 20164, 29885, 496, 815, 29895, 898, 336, 5513, 13, 3259, 29918, 23959, 29901, 376, 29906, 29889, 29945, 29908, 13, 8216, 29901, 13, 1678, 448, 376, 8015, 29878, 2418, 17099, 1048, 278, 288, 29963, 2728, 29914, 29934, 29950, 29963, 3450, 1213, 13, 16953, 29901, 13, 1678, 448, 376, 4013, 3883, 10017, 263, 716, 2246, 29899, 5563, 315, 29898, 586, 2728, 29918, 2754, 29897, 2114, 29892, 13, 539, 607, 3743, 263, 2472, 1048, 288, 29963, 2728, 29914, 29934, 29950, 29963, 3450, 1213, 13, 1062, 1975, 29918, 12663, 29918, 20777, 29901, 288, 15389, 29918, 17028, 29879, 13, 12008, 13, 13, 5746, 19297, 17101, 353, 14550, 13, 29937, 1222, 9422, 1016, 29915, 29873, 1712, 4817, 3443, 363, 23205, 29892, 13, 29937, 1106, 472, 288, 15389, 29918, 5150, 3883, 304, 1074, 920, 304, 24270, 10760, 29901, 13, 13, 29937, 402, 1624, 17099, 288, 29963, 2728, 3450, 29901, 13, 29899, 288, 15389, 29918, 2754, 29918, 17028, 29879, 29901, 13, 29899, 4744, 29901, 13, 1678, 722, 29901, 288, 15389, 29918, 2754, 13, 12008, 13, 13, 1525, 29911, 24015, 353, 14550, 13, 586, 2728, 29918, 2754, 29901, 13, 1678, 6139, 29901, 376, 11513, 20766, 278, 288, 29963, 2728, 3450, 2472, 29889, 13, 462, 29871, 29749, 8393, 526, 20545, 304, 8600, 6611, 29892, 13, 462, 29871, 599, 3450, 8393, 508, 367, 1476, 472, 1494, 13, 462, 29871, 3142, 29901, 2045, 597, 586, 2728, 29889, 4773, 29889, 510, 29914, 586, 2728, 29899, 10599, 29914, 2754, 29914, 4299, 29937, 8768, 29914, 2754, 1213, 13, 1678, 4133, 29901, 1551, 2551, 29889, 13, 1678, 1134, 29901, 9657, 13, 12008, 13, 13, 5215, 9637, 1627, 13, 13, 3166, 385, 1687, 29889, 5453, 29918, 13239, 29889, 16121, 1053, 530, 1687, 7355, 13, 3166, 385, 1687, 29889, 5453, 29918, 13239, 29889, 586, 2728, 1053, 313, 13, 1678, 1423, 29918, 15348, 29892, 13, 1678, 1653, 29918, 9965, 29892, 13, 1678, 679, 29918, 8977, 29918, 974, 29918, 4984, 29892, 13, 1678, 288, 15389, 29918, 17028, 29879, 29918, 8159, 29918, 23516, 29918, 6550, 29892, 13, 29897, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 2980, 29918, 6550, 353, 288, 15389, 29918, 17028, 29879, 29918, 8159, 29918, 23516, 29918, 6550, 580, 13, 1678, 3883, 353, 530, 1687, 7355, 29898, 23516, 29918, 6550, 29897, 13, 1678, 1423, 29918, 15348, 29898, 5453, 29897, 13, 13, 1678, 1018, 29901, 13, 4706, 4817, 353, 3883, 29889, 7529, 29889, 7323, 877, 5150, 1495, 13, 4706, 3957, 353, 1653, 29918, 9965, 29898, 5150, 29897, 13, 4706, 7882, 353, 3957, 29889, 5205, 29918, 5509, 2141, 657, 580, 13, 4706, 3883, 29889, 13322, 29918, 3126, 29898, 13, 9651, 3939, 29922, 8824, 29892, 13, 9651, 385, 1687, 29918, 17028, 29879, 29922, 8977, 29898, 13, 18884, 288, 15389, 29918, 2754, 29922, 657, 29918, 8977, 29918, 974, 29918, 4984, 29898, 13, 462, 1678, 2281, 29922, 2754, 29892, 13, 462, 1678, 3957, 29922, 9965, 29892, 13, 462, 1678, 6699, 29918, 27420, 29922, 5453, 29889, 7529, 29889, 657, 877, 9155, 29918, 27420, 5477, 13, 462, 1678, 8393, 29922, 5453, 29889, 7529, 29889, 657, 877, 27420, 29918, 15697, 5477, 13, 18884, 1723, 13, 9651, 10353, 13, 4706, 1723, 13, 1678, 5174, 8960, 408, 321, 29901, 13, 4706, 3883, 29889, 14057, 29918, 3126, 29898, 7645, 29922, 710, 29898, 29872, 511, 3682, 29922, 15003, 1627, 29889, 4830, 29918, 735, 29883, 3101, 13, 1678, 7146, 29901, 13, 4706, 3957, 29889, 5358, 29898, 1188, 449, 29922, 5150, 29889, 657, 877, 6979, 1495, 338, 6213, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 13, 2 ]
stamper/migrations/0004_auto_20161208_1658.py
uploadcare/stump
0
19254
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-12-08 16:58 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('stamper', '0003_auto_20161122_1253'), ] operations = [ migrations.AddField( model_name='fileuploadmessage', name='original_file_url', field=models.CharField(default=datetime.datetime(2016, 12, 8, 16, 57, 50, 623808, tzinfo=utc), max_length=255), preserve_default=False, ), migrations.AddField( model_name='imageuploadmessage', name='original_file_url', field=models.CharField(default=datetime.datetime(2016, 12, 8, 16, 58, 2, 437475, tzinfo=utc), max_length=255), preserve_default=False, ), ]
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 3251, 630, 491, 15337, 29871, 29896, 29889, 29929, 29889, 29929, 373, 29871, 29906, 29900, 29896, 29953, 29899, 29896, 29906, 29899, 29900, 29947, 29871, 29896, 29953, 29901, 29945, 29947, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 13, 5215, 12865, 13, 3166, 9557, 29889, 2585, 1053, 9725, 800, 29892, 4733, 13, 3166, 9557, 29889, 13239, 29889, 2230, 8028, 1053, 3477, 29883, 13, 13, 13, 1990, 341, 16783, 29898, 26983, 800, 29889, 29924, 16783, 1125, 13, 13, 1678, 9962, 353, 518, 13, 4706, 6702, 303, 314, 546, 742, 525, 29900, 29900, 29900, 29941, 29918, 6921, 29918, 29906, 29900, 29896, 29953, 29896, 29896, 29906, 29906, 29918, 29896, 29906, 29945, 29941, 5477, 13, 1678, 4514, 13, 13, 1678, 6931, 353, 518, 13, 4706, 9725, 800, 29889, 2528, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 1445, 9009, 4906, 742, 13, 9651, 1024, 2433, 13492, 29918, 1445, 29918, 2271, 742, 13, 9651, 1746, 29922, 9794, 29889, 27890, 29898, 4381, 29922, 12673, 29889, 12673, 29898, 29906, 29900, 29896, 29953, 29892, 29871, 29896, 29906, 29892, 29871, 29947, 29892, 29871, 29896, 29953, 29892, 29871, 29945, 29955, 29892, 29871, 29945, 29900, 29892, 29871, 29953, 29906, 29941, 29947, 29900, 29947, 29892, 260, 29920, 3888, 29922, 329, 29883, 511, 4236, 29918, 2848, 29922, 29906, 29945, 29945, 511, 13, 9651, 19905, 29918, 4381, 29922, 8824, 29892, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 2528, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 3027, 9009, 4906, 742, 13, 9651, 1024, 2433, 13492, 29918, 1445, 29918, 2271, 742, 13, 9651, 1746, 29922, 9794, 29889, 27890, 29898, 4381, 29922, 12673, 29889, 12673, 29898, 29906, 29900, 29896, 29953, 29892, 29871, 29896, 29906, 29892, 29871, 29947, 29892, 29871, 29896, 29953, 29892, 29871, 29945, 29947, 29892, 29871, 29906, 29892, 29871, 29946, 29941, 29955, 29946, 29955, 29945, 29892, 260, 29920, 3888, 29922, 329, 29883, 511, 4236, 29918, 2848, 29922, 29906, 29945, 29945, 511, 13, 9651, 19905, 29918, 4381, 29922, 8824, 29892, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
trimmed_match/design/tests/geo_assignment_test.py
Praneethp09/Geo_Test
31
111224
<reponame>Praneethp09/Geo_Test # Copyright 2020 Google LLC. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ """Tests for trimmed_match.design.tests.util.""" from absl.testing import absltest from absl.testing import parameterized import numpy as np import pandas as pd from trimmed_match.design import geo_assignment sign_test = geo_assignment.binomial_sign_test iroas_test = geo_assignment.trimmed_match_aa_test generate_assignment = geo_assignment.generate_balanced_random_assignment generate_paired_assignment = geo_assignment._generate_random_paired_assignment calculate_paired_difference = geo_assignment.calculate_paired_difference class TestSupportingFunctions(parameterized.TestCase): def testBinomialSignAaTest(self): self.assertTrue(sign_test([-1, -1, 1], 0.6)) self.assertFalse(sign_test([-1, -1, -1], 0.6)) self.assertTrue(sign_test([0, 0, 0], 0.6)) def testTrimmedMatchAaTest(self): self.assertFalse(iroas_test([1, 2, 3], [1, 2, 3], 0.8)) self.assertTrue(iroas_test([0, -1, 1], [1, 2, 3], 0.8)) def testGenerateRandomPairedAssignment(self): with self.assertRaises(ValueError): _ = generate_paired_assignment(-1) assignment = generate_paired_assignment(10) for i in range(10): self.assertEqual(assignment[2 * i] + assignment[2 * i + 1], 1) @parameterized.parameters( (np.array([1, 2]), np.array([True, True])), (np.array([1, 2]), np.array([1.0, 0.0])), (np.array([1, 2]), np.array([[True], [False]])), (np.array([1, 2]), np.array([True, True, False])), (np.array([1, 2, 3]), np.array([0, 1], dtype=bool))) def testCalculatePairedDifferenceValueError(self, geo_values, assignment): with self.assertRaises(ValueError): calculate_paired_difference(geo_values, assignment) def testCalculatePairedDifferenceSuccess(self): geo_values = np.array([1, 2, 3, 4]) assignment = np.array([True, False, True, False]) result = calculate_paired_difference(geo_values, assignment) np.testing.assert_array_equal(result, np.array([-1, -1])) class GeoAssignmentTest(absltest.TestCase): def setUp(self): super().setUp() self._sign_test_data = pd.DataFrame({ 'geo': [1, 2, 3, 4, 5, 6], 'pair': [1, 1, 2, 2, 3, 3], 'response': [1, 2, 3, 4, 5, 6], 'spend': [1, 2, 3, 4, 5, 6] }) self._aa_test_data = pd.DataFrame({ 'geo': [1, 2, 3, 4, 5, 6], 'pair': [1, 1, 2, 2, 3, 3], 'response': [1, 2, 3, 4, 5, 6], 'spend': [1, 1, 2, 4, 5, 6] }) def testGenerateBalancedRandomAssignmentValueError(self): # Incorrect columns in aa_test_data with self.assertRaises(ValueError): _ = generate_assignment( self._sign_test_data, self._aa_test_data.drop(columns=['spend'], axis=1)) # Incorrect columns in sign_test_data with self.assertRaises(ValueError): _ = generate_assignment( self._sign_test_data.drop(columns=['spend'], axis=1), self._aa_test_data) # Mismatch on the number of geos with self.assertRaises(ValueError): _ = generate_assignment( self._sign_test_data, self._aa_test_data.append( pd.DataFrame({ 'geo': [10], 'pair': [10], 'response': [10], 'spend': 10 }))) # Two test data differ on (geo, pair) with self.assertRaises(ValueError): aa_test_data = self._aa_test_data.copy() aa_test_data['geo'] = [3, 1, 2, 4, 5, 6] _ = generate_assignment(self._sign_test_data, aa_test_data) def testGenerateBalancedRandomAssignmentSuccess(self): balanced_assignment = generate_assignment(self._sign_test_data, self._aa_test_data) assignment = np.array(balanced_assignment['assignment']) # passes binomial sign test self.assertTrue( sign_test( calculate_paired_difference( np.array(self._sign_test_data['response']), assignment), 0.2)) # passes trimmed match aa test delta_responses = calculate_paired_difference( np.array(self._aa_test_data['response']), assignment) delta_spends = calculate_paired_difference( np.array(self._aa_test_data['spend']), assignment) self.assertTrue(iroas_test(delta_responses, delta_spends, 0.8)) def testGenerateBalancedRandomAssignmentWithTies(self): aa_data = pd.DataFrame({ 'geo': [1, 2, 3, 4, 5, 6], 'pair': [1, 1, 2, 2, 3, 3], 'response': [1, 1, 1, 1, 1, 1], 'spend': [1, 1, 1, 1, 1, 1] }) assignment = generate_assignment(aa_data, aa_data)['assignment'] delta_responses = calculate_paired_difference( np.array(aa_data['response']), assignment) delta_spends = ( calculate_paired_difference(np.array(aa_data['spend']), assignment) + geo_assignment._INCREMENTAL_SPEND_RATIO_FOR_AA_TEST) self.assertTrue(iroas_test(delta_responses, delta_spends, 0.8)) if __name__ == '__main__': absltest.main()
[ 1, 529, 276, 1112, 420, 29958, 29925, 10800, 621, 29886, 29900, 29929, 29914, 7999, 29877, 29918, 3057, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29900, 5087, 365, 12182, 29889, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 268, 2045, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 29937, 1275, 9166, 9166, 9166, 9166, 4936, 1360, 13, 13, 15945, 29908, 24376, 363, 17151, 2168, 29918, 4352, 29889, 13892, 29889, 21150, 29889, 4422, 1213, 15945, 13, 3166, 633, 2536, 29889, 13424, 1053, 633, 2536, 1688, 13, 3166, 633, 2536, 29889, 13424, 1053, 3443, 1891, 13, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 13, 3166, 17151, 2168, 29918, 4352, 29889, 13892, 1053, 1737, 29877, 29918, 465, 10194, 13, 13, 4530, 29918, 1688, 353, 1737, 29877, 29918, 465, 10194, 29889, 2109, 7615, 29918, 4530, 29918, 1688, 13, 3350, 294, 29918, 1688, 353, 1737, 29877, 29918, 465, 10194, 29889, 15450, 2168, 29918, 4352, 29918, 7340, 29918, 1688, 13, 17158, 29918, 465, 10194, 353, 1737, 29877, 29918, 465, 10194, 29889, 17158, 29918, 5521, 8362, 29918, 8172, 29918, 465, 10194, 13, 17158, 29918, 3274, 2859, 29918, 465, 10194, 353, 1737, 29877, 29918, 465, 10194, 3032, 17158, 29918, 8172, 29918, 3274, 2859, 29918, 465, 10194, 13, 15807, 403, 29918, 3274, 2859, 29918, 29881, 17678, 353, 1737, 29877, 29918, 465, 10194, 29889, 15807, 403, 29918, 3274, 2859, 29918, 29881, 17678, 13, 13, 13, 1990, 4321, 14039, 292, 6678, 29879, 29898, 15501, 1891, 29889, 3057, 8259, 1125, 13, 13, 29871, 822, 1243, 29933, 262, 7615, 10140, 29909, 29874, 3057, 29898, 1311, 1125, 13, 1678, 1583, 29889, 9294, 5574, 29898, 4530, 29918, 1688, 4197, 29899, 29896, 29892, 448, 29896, 29892, 29871, 29896, 1402, 29871, 29900, 29889, 29953, 876, 13, 1678, 1583, 29889, 9294, 8824, 29898, 4530, 29918, 1688, 4197, 29899, 29896, 29892, 448, 29896, 29892, 448, 29896, 1402, 29871, 29900, 29889, 29953, 876, 13, 1678, 1583, 29889, 9294, 5574, 29898, 4530, 29918, 1688, 4197, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 1402, 29871, 29900, 29889, 29953, 876, 13, 13, 29871, 822, 1243, 2308, 326, 2168, 9652, 29909, 29874, 3057, 29898, 1311, 1125, 13, 1678, 1583, 29889, 9294, 8824, 29898, 3350, 294, 29918, 1688, 4197, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 1402, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 1402, 29871, 29900, 29889, 29947, 876, 13, 1678, 1583, 29889, 9294, 5574, 29898, 3350, 294, 29918, 1688, 4197, 29900, 29892, 448, 29896, 29892, 29871, 29896, 1402, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 1402, 29871, 29900, 29889, 29947, 876, 13, 13, 29871, 822, 1243, 5631, 403, 17875, 11868, 2859, 7900, 10194, 29898, 1311, 1125, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1917, 2392, 1125, 13, 418, 903, 353, 5706, 29918, 3274, 2859, 29918, 465, 10194, 6278, 29896, 29897, 13, 13, 1678, 12827, 353, 5706, 29918, 3274, 2859, 29918, 465, 10194, 29898, 29896, 29900, 29897, 13, 1678, 363, 474, 297, 3464, 29898, 29896, 29900, 1125, 13, 418, 1583, 29889, 9294, 9843, 29898, 465, 10194, 29961, 29906, 334, 474, 29962, 718, 12827, 29961, 29906, 334, 474, 718, 29871, 29896, 1402, 29871, 29896, 29897, 13, 13, 29871, 732, 15501, 1891, 29889, 16744, 29898, 13, 418, 313, 9302, 29889, 2378, 4197, 29896, 29892, 29871, 29906, 11724, 7442, 29889, 2378, 4197, 5574, 29892, 5852, 2314, 511, 13, 418, 313, 9302, 29889, 2378, 4197, 29896, 29892, 29871, 29906, 11724, 7442, 29889, 2378, 4197, 29896, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 2314, 511, 13, 418, 313, 9302, 29889, 2378, 4197, 29896, 29892, 29871, 29906, 11724, 7442, 29889, 2378, 4197, 29961, 5574, 1402, 518, 8824, 24960, 511, 13, 418, 313, 9302, 29889, 2378, 4197, 29896, 29892, 29871, 29906, 11724, 7442, 29889, 2378, 4197, 5574, 29892, 5852, 29892, 7700, 2314, 511, 13, 418, 313, 9302, 29889, 2378, 4197, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 11724, 7442, 29889, 2378, 4197, 29900, 29892, 29871, 29896, 1402, 26688, 29922, 11227, 4961, 13, 29871, 822, 1243, 27065, 403, 11868, 2859, 29928, 17678, 1917, 2392, 29898, 1311, 29892, 1737, 29877, 29918, 5975, 29892, 12827, 1125, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1917, 2392, 1125, 13, 418, 8147, 29918, 3274, 2859, 29918, 29881, 17678, 29898, 24756, 29918, 5975, 29892, 12827, 29897, 13, 13, 29871, 822, 1243, 27065, 403, 11868, 2859, 29928, 17678, 14191, 29898, 1311, 1125, 13, 1678, 1737, 29877, 29918, 5975, 353, 7442, 29889, 2378, 4197, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 2314, 13, 1678, 12827, 353, 7442, 29889, 2378, 4197, 5574, 29892, 7700, 29892, 5852, 29892, 7700, 2314, 13, 1678, 1121, 353, 8147, 29918, 3274, 2859, 29918, 29881, 17678, 29898, 24756, 29918, 5975, 29892, 12827, 29897, 13, 1678, 7442, 29889, 13424, 29889, 9294, 29918, 2378, 29918, 11745, 29898, 2914, 29892, 7442, 29889, 2378, 4197, 29899, 29896, 29892, 448, 29896, 12622, 13, 13, 13, 1990, 1879, 29877, 7900, 10194, 3057, 29898, 370, 2536, 1688, 29889, 3057, 8259, 1125, 13, 13, 29871, 822, 731, 3373, 29898, 1311, 1125, 13, 1678, 2428, 2141, 842, 3373, 580, 13, 1678, 1583, 3032, 4530, 29918, 1688, 29918, 1272, 353, 10518, 29889, 17271, 3319, 13, 4706, 525, 24756, 2396, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 1402, 13, 4706, 525, 18784, 2396, 518, 29896, 29892, 29871, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29941, 1402, 13, 4706, 525, 5327, 2396, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 1402, 13, 4706, 525, 1028, 355, 2396, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 29962, 13, 1678, 5615, 13, 1678, 1583, 3032, 7340, 29918, 1688, 29918, 1272, 353, 10518, 29889, 17271, 3319, 13, 4706, 525, 24756, 2396, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 1402, 13, 4706, 525, 18784, 2396, 518, 29896, 29892, 29871, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29941, 1402, 13, 4706, 525, 5327, 2396, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 1402, 13, 4706, 525, 1028, 355, 2396, 518, 29896, 29892, 29871, 29896, 29892, 29871, 29906, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 29962, 13, 1678, 5615, 13, 13, 29871, 822, 1243, 5631, 403, 22031, 8362, 17875, 7900, 10194, 1917, 2392, 29898, 1311, 1125, 13, 13, 1678, 396, 512, 15728, 4341, 297, 29099, 29918, 1688, 29918, 1272, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1917, 2392, 1125, 13, 418, 903, 353, 5706, 29918, 465, 10194, 29898, 13, 3986, 1583, 3032, 4530, 29918, 1688, 29918, 1272, 29892, 13, 3986, 1583, 3032, 7340, 29918, 1688, 29918, 1272, 29889, 8865, 29898, 13099, 29922, 1839, 1028, 355, 7464, 9685, 29922, 29896, 876, 13, 13, 1678, 396, 512, 15728, 4341, 297, 1804, 29918, 1688, 29918, 1272, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1917, 2392, 1125, 13, 418, 903, 353, 5706, 29918, 465, 10194, 29898, 13, 3986, 1583, 3032, 4530, 29918, 1688, 29918, 1272, 29889, 8865, 29898, 13099, 29922, 1839, 1028, 355, 7464, 9685, 29922, 29896, 511, 13, 3986, 1583, 3032, 7340, 29918, 1688, 29918, 1272, 29897, 13, 13, 1678, 396, 341, 1608, 905, 373, 278, 1353, 310, 1737, 359, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1917, 2392, 1125, 13, 418, 903, 353, 5706, 29918, 465, 10194, 29898, 13, 3986, 1583, 3032, 4530, 29918, 1688, 29918, 1272, 29892, 13, 3986, 1583, 3032, 7340, 29918, 1688, 29918, 1272, 29889, 4397, 29898, 13, 795, 10518, 29889, 17271, 3319, 13, 462, 29871, 525, 24756, 2396, 518, 29896, 29900, 1402, 13, 462, 29871, 525, 18784, 2396, 518, 29896, 29900, 1402, 13, 462, 29871, 525, 5327, 2396, 518, 29896, 29900, 1402, 13, 462, 29871, 525, 1028, 355, 2396, 29871, 29896, 29900, 13, 795, 500, 4961, 13, 13, 1678, 396, 7803, 1243, 848, 1163, 373, 313, 24756, 29892, 5101, 29897, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1917, 2392, 1125, 13, 418, 29099, 29918, 1688, 29918, 1272, 353, 1583, 3032, 7340, 29918, 1688, 29918, 1272, 29889, 8552, 580, 13, 418, 29099, 29918, 1688, 29918, 1272, 1839, 24756, 2033, 353, 518, 29941, 29892, 29871, 29896, 29892, 29871, 29906, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 29962, 13, 418, 903, 353, 5706, 29918, 465, 10194, 29898, 1311, 3032, 4530, 29918, 1688, 29918, 1272, 29892, 29099, 29918, 1688, 29918, 1272, 29897, 13, 13, 29871, 822, 1243, 5631, 403, 22031, 8362, 17875, 7900, 10194, 14191, 29898, 1311, 1125, 13, 1678, 6411, 8362, 29918, 465, 10194, 353, 5706, 29918, 465, 10194, 29898, 1311, 3032, 4530, 29918, 1688, 29918, 1272, 29892, 13, 462, 462, 795, 1583, 3032, 7340, 29918, 1688, 29918, 1272, 29897, 13, 1678, 12827, 353, 7442, 29889, 2378, 29898, 5521, 8362, 29918, 465, 10194, 1839, 465, 10194, 11287, 13, 13, 1678, 396, 14517, 9016, 7615, 1804, 1243, 13, 1678, 1583, 29889, 9294, 5574, 29898, 13, 4706, 1804, 29918, 1688, 29898, 13, 9651, 8147, 29918, 3274, 2859, 29918, 29881, 17678, 29898, 13, 18884, 7442, 29889, 2378, 29898, 1311, 3032, 4530, 29918, 1688, 29918, 1272, 1839, 5327, 2033, 511, 12827, 511, 29871, 29900, 29889, 29906, 876, 13, 13, 1678, 396, 14517, 17151, 2168, 1993, 29099, 1243, 13, 1678, 19471, 29918, 26679, 267, 353, 8147, 29918, 3274, 2859, 29918, 29881, 17678, 29898, 13, 4706, 7442, 29889, 2378, 29898, 1311, 3032, 7340, 29918, 1688, 29918, 1272, 1839, 5327, 2033, 511, 12827, 29897, 13, 1678, 19471, 29918, 1028, 1975, 353, 8147, 29918, 3274, 2859, 29918, 29881, 17678, 29898, 13, 4706, 7442, 29889, 2378, 29898, 1311, 3032, 7340, 29918, 1688, 29918, 1272, 1839, 1028, 355, 2033, 511, 12827, 29897, 13, 1678, 1583, 29889, 9294, 5574, 29898, 3350, 294, 29918, 1688, 29898, 4181, 29918, 26679, 267, 29892, 19471, 29918, 1028, 1975, 29892, 29871, 29900, 29889, 29947, 876, 13, 13, 29871, 822, 1243, 5631, 403, 22031, 8362, 17875, 7900, 10194, 3047, 29911, 583, 29898, 1311, 1125, 13, 1678, 29099, 29918, 1272, 353, 10518, 29889, 17271, 3319, 13, 4706, 525, 24756, 2396, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 1402, 13, 4706, 525, 18784, 2396, 518, 29896, 29892, 29871, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29941, 1402, 13, 4706, 525, 5327, 2396, 518, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 1402, 13, 4706, 525, 1028, 355, 2396, 518, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 29962, 13, 1678, 5615, 13, 1678, 12827, 353, 5706, 29918, 465, 10194, 29898, 7340, 29918, 1272, 29892, 29099, 29918, 1272, 29897, 1839, 465, 10194, 2033, 13, 1678, 19471, 29918, 26679, 267, 353, 8147, 29918, 3274, 2859, 29918, 29881, 17678, 29898, 13, 4706, 7442, 29889, 2378, 29898, 7340, 29918, 1272, 1839, 5327, 2033, 511, 12827, 29897, 13, 1678, 19471, 29918, 1028, 1975, 353, 313, 13, 4706, 8147, 29918, 3274, 2859, 29918, 29881, 17678, 29898, 9302, 29889, 2378, 29898, 7340, 29918, 1272, 1839, 1028, 355, 2033, 511, 12827, 29897, 718, 13, 4706, 1737, 29877, 29918, 465, 10194, 3032, 1177, 22245, 13780, 1964, 29918, 5550, 11794, 29918, 29934, 1299, 5971, 29918, 22051, 29918, 6344, 29918, 18267, 29897, 13, 1678, 1583, 29889, 9294, 5574, 29898, 3350, 294, 29918, 1688, 29898, 4181, 29918, 26679, 267, 29892, 19471, 29918, 1028, 1975, 29892, 29871, 29900, 29889, 29947, 876, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 29871, 633, 2536, 1688, 29889, 3396, 580, 13, 2 ]
code.py
aashray18521/parallelModifiedGrepPython
0
20068
import multiprocessing import os import time rootdir = input() keyword = input() batch_size = 1 def try_multiple_operations(file_path): try: with open(file_path, "rb") as f: # open the file for reading for line in f: # use: for i, line in enumerate(f) if you need line numbers try: line = line.decode("utf-8") # try to decode the contents to utf-8 except ValueError: # decoding failed, skip the line continue if keyword in line: # if the keyword exists on the current line... print(file_path) # print the file path except (IOError, OSError): # ignore read and permission errors pass def walk_dirs(directory, batch_size): walk_dirs_generator = os.walk(directory) for dirname, subdirectories, filenames in walk_dirs_generator: for i in range(0, len(filenames), batch_size): the_queue.put(os.path.join(dirname, filenames[i])) the_queue = multiprocessing.Queue() walk_dirs(rootdir, batch_size) def worker_main(queue): while True: item = queue.get(True) try_multiple_operations(item) the_pool = multiprocessing.Pool(3, worker_main,(the_queue,))
[ 1, 1053, 6674, 307, 985, 292, 13, 5215, 2897, 13, 5215, 931, 13, 13, 4632, 3972, 353, 1881, 580, 13, 26766, 353, 1881, 580, 13, 13, 16175, 29918, 2311, 353, 29871, 29896, 13, 13, 1753, 1018, 29918, 20787, 29918, 3372, 800, 29898, 1445, 29918, 2084, 1125, 13, 1678, 1018, 29901, 13, 4706, 411, 1722, 29898, 1445, 29918, 2084, 29892, 376, 6050, 1159, 408, 285, 29901, 29871, 396, 1722, 278, 934, 363, 5183, 13, 9651, 363, 1196, 297, 285, 29901, 29871, 396, 671, 29901, 363, 474, 29892, 1196, 297, 26985, 29898, 29888, 29897, 565, 366, 817, 1196, 3694, 13, 18884, 1018, 29901, 13, 462, 1678, 1196, 353, 1196, 29889, 13808, 703, 9420, 29899, 29947, 1159, 29871, 396, 1018, 304, 21822, 278, 8118, 304, 23616, 29899, 29947, 13, 18884, 5174, 7865, 2392, 29901, 29871, 396, 1602, 3689, 5229, 29892, 14383, 278, 1196, 13, 462, 1678, 6773, 13, 18884, 565, 13553, 297, 1196, 29901, 29871, 396, 565, 278, 13553, 4864, 373, 278, 1857, 1196, 856, 13, 462, 1678, 1596, 29898, 1445, 29918, 2084, 29897, 29871, 396, 1596, 278, 934, 2224, 13, 1678, 5174, 313, 5971, 2392, 29892, 438, 29173, 1125, 29871, 396, 11455, 1303, 322, 10751, 4436, 13, 4706, 1209, 13, 13, 1753, 6686, 29918, 3972, 29879, 29898, 12322, 29892, 9853, 29918, 2311, 1125, 13, 1678, 6686, 29918, 3972, 29879, 29918, 27959, 353, 2897, 29889, 20919, 29898, 12322, 29897, 13, 1678, 363, 4516, 978, 29892, 1014, 11851, 3842, 29892, 977, 264, 1280, 297, 6686, 29918, 3972, 29879, 29918, 27959, 29901, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 1777, 264, 1280, 511, 9853, 29918, 2311, 1125, 13, 9651, 278, 29918, 9990, 29889, 649, 29898, 359, 29889, 2084, 29889, 7122, 29898, 25721, 29892, 977, 264, 1280, 29961, 29875, 12622, 13, 13, 1552, 29918, 9990, 353, 6674, 307, 985, 292, 29889, 10620, 580, 13, 13, 20919, 29918, 3972, 29879, 29898, 4632, 3972, 29892, 9853, 29918, 2311, 29897, 13, 13, 1753, 15645, 29918, 3396, 29898, 9990, 1125, 13, 1678, 1550, 5852, 29901, 13, 4706, 2944, 353, 9521, 29889, 657, 29898, 5574, 29897, 13, 4706, 1018, 29918, 20787, 29918, 3372, 800, 29898, 667, 29897, 13, 13, 1552, 29918, 10109, 353, 6674, 307, 985, 292, 29889, 11426, 29898, 29941, 29892, 15645, 29918, 3396, 22657, 1552, 29918, 9990, 29892, 876, 13, 2 ]
demo/infer_demo.py
mrlooi/maskrcnn-benchmark
344
168231
<filename>demo/infer_demo.py from maskrcnn_benchmark.config import cfg from predictor import COCODemo, LOVDemo import numpy as np import torch import torch.nn.functional as F import glob import cv2 def expand_boxes(boxes, scale): w_half = (boxes[:, 2] - boxes[:, 0]) * .5 h_half = (boxes[:, 3] - boxes[:, 1]) * .5 x_c = (boxes[:, 2] + boxes[:, 0]) * .5 y_c = (boxes[:, 3] + boxes[:, 1]) * .5 w_half *= scale h_half *= scale boxes_exp = torch.zeros_like(boxes) boxes_exp[:, 0] = x_c - w_half boxes_exp[:, 2] = x_c + w_half boxes_exp[:, 1] = y_c - h_half boxes_exp[:, 3] = y_c + h_half return boxes_exp def expand_masks(mask, padding): N = mask.shape[0] M = mask.shape[-1] pad2 = 2 * padding scale = float(M + pad2) / M padded_mask = mask.new_zeros((N, 1, M + pad2, M + pad2)) padded_mask[:, :, padding:-padding, padding:-padding] = mask return padded_mask, scale def paste_mask_in_image(mask, box, im_h, im_w, padding=1): padded_mask, scale = expand_masks(mask[None], padding=padding) mask = padded_mask[0, 0] box = expand_boxes(box[None], scale)[0] box = box.to(dtype=torch.int32) TO_REMOVE = 1 w = box[2] - box[0] + TO_REMOVE h = box[3] - box[1] + TO_REMOVE w = max(w, 1) h = max(h, 1) # Set shape to [batchxCxHxW] mask = mask.expand((1, 1, -1, -1)) # Resize mask mask = mask.to(torch.float32) mask = F.interpolate(mask, size=(h, w), mode='bilinear', align_corners=False) mask = mask[0][0] # if thresh >= 0: # mask = mask > thresh # else: # # for visualization and debugging, we also # # allow it to return an unmodified mask # mask = (mask * 255).to(torch.uint8) im_mask = torch.zeros((im_h, im_w), dtype=torch.float32) x_0 = max(box[0], 0) x_1 = min(box[2] + 1, im_w) y_0 = max(box[1], 0) y_1 = min(box[3] + 1, im_h) im_mask[y_0:y_1, x_0:x_1] = mask[ (y_0 - box[1]) : (y_1 - box[1]), (x_0 - box[0]) : (x_1 - box[0]) ] return im_mask def normalize(x, xmin=None, xmax=None): xmin = np.min(x) if xmin is None else xmin xmax = np.max(x) if xmax is None else xmax nx = x - xmin nx /= (xmax - xmin) return nx def visualize_vertmap(vertmap,bbox,h,w): cx = normalize(paste_mask_in_image(vertmap[0, :, :],bbox,h,w).numpy(), -1, 1) cy = normalize(paste_mask_in_image(vertmap[1, :, :],bbox,h,w).numpy(), -1, 1) cz = normalize(paste_mask_in_image(vertmap[2, :, :],bbox,h,w).numpy(), -1, 1) cv2.imshow("vertmap x", cx) cv2.imshow("vertmap y", cy) cv2.imshow("vertmap z", cz) return np.stack((cx,cy,cz), axis=0) if __name__ == '__main__': # config_file = "./configs/mrcnn.yaml" config_file = "./configs/lov_debug.yaml" # update the config options with the config file cfg.merge_from_file(config_file) # manual override some options # cfg.merge_from_list(["MODEL.DEVICE", "cpu"]) # coco_demo = COCODemo( # cfg, # min_image_size=480, # confidence_threshold=0.95, # ) lov_demo = LOVDemo( cfg, min_image_size=480, confidence_threshold=0.95, ) # image_dir = "/home/vincent/Documents/py/ml/Detectron.pytorch/demo/coco_debug_images" # image_ext = "jpg" image_dir = "./datasets/LOV/data/0001" image_ext = "1-color.png" for image_file in glob.glob("%s/*%s"%(image_dir, image_ext)): # load image and then run prediction # image_file = "/COCO_val2014_000000010012.jpg" img = cv2.imread(image_file) if img is None: print("Could not find %s"%(image_file)) continue # img = np.expand_dims(img,0) res, predictions = lov_demo.run_on_opencv_image(img) print("Showing pred results for %s"%(image_file)) h,w,_ = img.shape cv2.imshow("pred", res) cv2.waitKey(0) verts = predictions.get_field("vertex")#.numpy() bboxes = predictions.bbox for v, bbox in zip(verts, bboxes): vm = visualize_vertmap(v,bbox,h,w) # vm = paste_mask_in_image(v[0],bbox,h,w) # visualize_vertmap(vm) # cv2.imshow("cx", normalize(vm.numpy(), -1, 1)) cv2.waitKey(0)
[ 1, 529, 9507, 29958, 17482, 29914, 262, 571, 29918, 17482, 29889, 2272, 13, 3166, 11105, 2214, 15755, 29918, 1785, 16580, 29889, 2917, 1053, 274, 16434, 13, 3166, 8500, 272, 1053, 4810, 3217, 23444, 29892, 11247, 10699, 15810, 13, 5215, 12655, 408, 7442, 13, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 29889, 2220, 284, 408, 383, 13, 13, 5215, 13149, 13, 5215, 13850, 29906, 13, 13, 13, 1753, 7985, 29918, 1884, 267, 29898, 1884, 267, 29892, 6287, 1125, 13, 1678, 281, 29918, 24498, 353, 313, 1884, 267, 7503, 29892, 29871, 29906, 29962, 448, 16273, 7503, 29892, 29871, 29900, 2314, 334, 869, 29945, 13, 1678, 298, 29918, 24498, 353, 313, 1884, 267, 7503, 29892, 29871, 29941, 29962, 448, 16273, 7503, 29892, 29871, 29896, 2314, 334, 869, 29945, 13, 1678, 921, 29918, 29883, 353, 313, 1884, 267, 7503, 29892, 29871, 29906, 29962, 718, 16273, 7503, 29892, 29871, 29900, 2314, 334, 869, 29945, 13, 1678, 343, 29918, 29883, 353, 313, 1884, 267, 7503, 29892, 29871, 29941, 29962, 718, 16273, 7503, 29892, 29871, 29896, 2314, 334, 869, 29945, 13, 13, 1678, 281, 29918, 24498, 334, 29922, 6287, 13, 1678, 298, 29918, 24498, 334, 29922, 6287, 13, 13, 1678, 16273, 29918, 4548, 353, 4842, 305, 29889, 3298, 359, 29918, 4561, 29898, 1884, 267, 29897, 13, 1678, 16273, 29918, 4548, 7503, 29892, 29871, 29900, 29962, 353, 921, 29918, 29883, 448, 281, 29918, 24498, 13, 1678, 16273, 29918, 4548, 7503, 29892, 29871, 29906, 29962, 353, 921, 29918, 29883, 718, 281, 29918, 24498, 13, 1678, 16273, 29918, 4548, 7503, 29892, 29871, 29896, 29962, 353, 343, 29918, 29883, 448, 298, 29918, 24498, 13, 1678, 16273, 29918, 4548, 7503, 29892, 29871, 29941, 29962, 353, 343, 29918, 29883, 718, 298, 29918, 24498, 13, 1678, 736, 16273, 29918, 4548, 13, 13, 13, 1753, 7985, 29918, 13168, 29879, 29898, 13168, 29892, 7164, 1125, 13, 1678, 405, 353, 11105, 29889, 12181, 29961, 29900, 29962, 13, 1678, 341, 353, 11105, 29889, 12181, 14352, 29896, 29962, 13, 1678, 17132, 29906, 353, 29871, 29906, 334, 7164, 13, 1678, 6287, 353, 5785, 29898, 29924, 718, 17132, 29906, 29897, 847, 341, 13, 1678, 282, 23959, 29918, 13168, 353, 11105, 29889, 1482, 29918, 3298, 359, 3552, 29940, 29892, 29871, 29896, 29892, 341, 718, 17132, 29906, 29892, 341, 718, 17132, 29906, 876, 13, 1678, 282, 23959, 29918, 13168, 7503, 29892, 584, 29892, 7164, 13018, 12791, 29892, 7164, 13018, 12791, 29962, 353, 11105, 13, 1678, 736, 282, 23959, 29918, 13168, 29892, 6287, 13, 13, 13, 1753, 11417, 29918, 13168, 29918, 262, 29918, 3027, 29898, 13168, 29892, 3800, 29892, 527, 29918, 29882, 29892, 527, 29918, 29893, 29892, 7164, 29922, 29896, 1125, 13, 1678, 282, 23959, 29918, 13168, 29892, 6287, 353, 7985, 29918, 13168, 29879, 29898, 13168, 29961, 8516, 1402, 7164, 29922, 12791, 29897, 13, 1678, 11105, 353, 282, 23959, 29918, 13168, 29961, 29900, 29892, 29871, 29900, 29962, 13, 1678, 3800, 353, 7985, 29918, 1884, 267, 29898, 1884, 29961, 8516, 1402, 6287, 9601, 29900, 29962, 13, 1678, 3800, 353, 3800, 29889, 517, 29898, 29881, 1853, 29922, 7345, 305, 29889, 524, 29941, 29906, 29897, 13, 13, 1678, 7495, 29918, 1525, 6720, 12064, 353, 29871, 29896, 13, 1678, 281, 353, 3800, 29961, 29906, 29962, 448, 3800, 29961, 29900, 29962, 718, 7495, 29918, 1525, 6720, 12064, 13, 1678, 298, 353, 3800, 29961, 29941, 29962, 448, 3800, 29961, 29896, 29962, 718, 7495, 29918, 1525, 6720, 12064, 13, 1678, 281, 353, 4236, 29898, 29893, 29892, 29871, 29896, 29897, 13, 1678, 298, 353, 4236, 29898, 29882, 29892, 29871, 29896, 29897, 13, 13, 1678, 396, 3789, 8267, 304, 518, 16175, 29916, 29907, 29916, 29950, 29916, 29956, 29962, 13, 1678, 11105, 353, 11105, 29889, 18837, 3552, 29896, 29892, 29871, 29896, 29892, 448, 29896, 29892, 448, 29896, 876, 13, 13, 1678, 396, 2538, 675, 11105, 13, 1678, 11105, 353, 11105, 29889, 517, 29898, 7345, 305, 29889, 7411, 29941, 29906, 29897, 13, 1678, 11105, 353, 383, 29889, 1639, 3733, 403, 29898, 13168, 29892, 2159, 7607, 29882, 29892, 281, 511, 4464, 2433, 18152, 457, 279, 742, 7595, 29918, 29883, 1398, 414, 29922, 8824, 29897, 13, 1678, 11105, 353, 11105, 29961, 29900, 3816, 29900, 29962, 13, 13, 1678, 396, 565, 266, 3781, 6736, 29871, 29900, 29901, 13, 1678, 396, 268, 11105, 353, 11105, 1405, 266, 3781, 13, 1678, 396, 1683, 29901, 13, 1678, 396, 268, 396, 363, 7604, 2133, 322, 13490, 29892, 591, 884, 13, 1678, 396, 268, 396, 2758, 372, 304, 736, 385, 443, 1545, 2164, 11105, 13, 1678, 396, 268, 11105, 353, 313, 13168, 334, 29871, 29906, 29945, 29945, 467, 517, 29898, 7345, 305, 29889, 13470, 29947, 29897, 13, 13, 1678, 527, 29918, 13168, 353, 4842, 305, 29889, 3298, 359, 3552, 326, 29918, 29882, 29892, 527, 29918, 29893, 511, 26688, 29922, 7345, 305, 29889, 7411, 29941, 29906, 29897, 13, 1678, 921, 29918, 29900, 353, 4236, 29898, 1884, 29961, 29900, 1402, 29871, 29900, 29897, 13, 1678, 921, 29918, 29896, 353, 1375, 29898, 1884, 29961, 29906, 29962, 718, 29871, 29896, 29892, 527, 29918, 29893, 29897, 13, 1678, 343, 29918, 29900, 353, 4236, 29898, 1884, 29961, 29896, 1402, 29871, 29900, 29897, 13, 1678, 343, 29918, 29896, 353, 1375, 29898, 1884, 29961, 29941, 29962, 718, 29871, 29896, 29892, 527, 29918, 29882, 29897, 13, 13, 1678, 527, 29918, 13168, 29961, 29891, 29918, 29900, 29901, 29891, 29918, 29896, 29892, 921, 29918, 29900, 29901, 29916, 29918, 29896, 29962, 353, 11105, 29961, 13, 4706, 313, 29891, 29918, 29900, 448, 3800, 29961, 29896, 2314, 584, 313, 29891, 29918, 29896, 448, 3800, 29961, 29896, 11724, 313, 29916, 29918, 29900, 448, 3800, 29961, 29900, 2314, 584, 313, 29916, 29918, 29896, 448, 3800, 29961, 29900, 2314, 13, 1678, 4514, 13, 1678, 736, 527, 29918, 13168, 13, 13, 1753, 4226, 675, 29898, 29916, 29892, 921, 1195, 29922, 8516, 29892, 921, 3317, 29922, 8516, 1125, 13, 1678, 921, 1195, 353, 7442, 29889, 1195, 29898, 29916, 29897, 565, 921, 1195, 338, 6213, 1683, 921, 1195, 13, 1678, 921, 3317, 353, 7442, 29889, 3317, 29898, 29916, 29897, 565, 921, 3317, 338, 6213, 1683, 921, 3317, 13, 1678, 302, 29916, 353, 921, 448, 921, 1195, 13, 1678, 302, 29916, 847, 29922, 313, 29916, 3317, 448, 921, 1195, 29897, 13, 1678, 736, 302, 29916, 13, 13, 1753, 7604, 675, 29918, 1765, 1958, 29898, 1765, 1958, 29892, 29890, 1884, 29892, 29882, 29892, 29893, 1125, 13, 1678, 28232, 353, 4226, 675, 29898, 16179, 29918, 13168, 29918, 262, 29918, 3027, 29898, 1765, 1958, 29961, 29900, 29892, 584, 29892, 584, 1402, 29890, 1884, 29892, 29882, 29892, 29893, 467, 23749, 3285, 448, 29896, 29892, 29871, 29896, 29897, 13, 1678, 5094, 353, 4226, 675, 29898, 16179, 29918, 13168, 29918, 262, 29918, 3027, 29898, 1765, 1958, 29961, 29896, 29892, 584, 29892, 584, 1402, 29890, 1884, 29892, 29882, 29892, 29893, 467, 23749, 3285, 448, 29896, 29892, 29871, 29896, 29897, 13, 1678, 5316, 353, 4226, 675, 29898, 16179, 29918, 13168, 29918, 262, 29918, 3027, 29898, 1765, 1958, 29961, 29906, 29892, 584, 29892, 584, 1402, 29890, 1884, 29892, 29882, 29892, 29893, 467, 23749, 3285, 448, 29896, 29892, 29871, 29896, 29897, 13, 1678, 13850, 29906, 29889, 326, 4294, 703, 1765, 1958, 921, 613, 28232, 29897, 13, 1678, 13850, 29906, 29889, 326, 4294, 703, 1765, 1958, 343, 613, 5094, 29897, 13, 1678, 13850, 29906, 29889, 326, 4294, 703, 1765, 1958, 503, 613, 5316, 29897, 13, 1678, 736, 7442, 29889, 1429, 3552, 18904, 29892, 1270, 29892, 2067, 511, 9685, 29922, 29900, 29897, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 13, 1678, 396, 2295, 29918, 1445, 353, 376, 6904, 2917, 29879, 29914, 29885, 2214, 15755, 29889, 25162, 29908, 13, 1678, 2295, 29918, 1445, 353, 376, 6904, 2917, 29879, 29914, 5590, 29918, 8382, 29889, 25162, 29908, 13, 13, 1678, 396, 2767, 278, 2295, 3987, 411, 278, 2295, 934, 13, 1678, 274, 16434, 29889, 14634, 29918, 3166, 29918, 1445, 29898, 2917, 29918, 1445, 29897, 13, 1678, 396, 12219, 5712, 777, 3987, 13, 1678, 396, 274, 16434, 29889, 14634, 29918, 3166, 29918, 1761, 29898, 3366, 20387, 29931, 29889, 2287, 19059, 613, 376, 21970, 20068, 13, 13, 1678, 396, 274, 6235, 29918, 17482, 353, 4810, 3217, 23444, 29898, 13, 1678, 396, 268, 274, 16434, 29892, 13, 1678, 396, 268, 1375, 29918, 3027, 29918, 2311, 29922, 29946, 29947, 29900, 29892, 13, 1678, 396, 268, 16420, 29918, 386, 12268, 29922, 29900, 29889, 29929, 29945, 29892, 13, 1678, 396, 1723, 13, 1678, 12355, 29918, 17482, 353, 11247, 10699, 15810, 29898, 13, 4706, 274, 16434, 29892, 13, 4706, 1375, 29918, 3027, 29918, 2311, 29922, 29946, 29947, 29900, 29892, 13, 4706, 16420, 29918, 386, 12268, 29922, 29900, 29889, 29929, 29945, 29892, 13, 1678, 1723, 13, 13, 1678, 396, 1967, 29918, 3972, 353, 5591, 5184, 29914, 3845, 1760, 29914, 20128, 29914, 2272, 29914, 828, 29914, 6362, 522, 1617, 29889, 2272, 7345, 305, 29914, 17482, 29914, 29883, 6235, 29918, 8382, 29918, 8346, 29908, 13, 1678, 396, 1967, 29918, 1062, 353, 376, 6173, 29908, 13, 1678, 1967, 29918, 3972, 353, 376, 6904, 14538, 1691, 29914, 3927, 29963, 29914, 1272, 29914, 29900, 29900, 29900, 29896, 29908, 13, 1678, 1967, 29918, 1062, 353, 376, 29896, 29899, 2780, 29889, 2732, 29908, 13, 1678, 363, 1967, 29918, 1445, 297, 13149, 29889, 23705, 11702, 29879, 5515, 29995, 29879, 29908, 29995, 29898, 3027, 29918, 3972, 29892, 1967, 29918, 1062, 22164, 13, 4706, 396, 2254, 1967, 322, 769, 1065, 18988, 13, 4706, 396, 1967, 29918, 1445, 353, 5591, 3217, 3217, 29918, 791, 29906, 29900, 29896, 29946, 29918, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 29900, 29900, 29896, 29906, 29889, 6173, 29908, 13, 13, 4706, 10153, 353, 13850, 29906, 29889, 326, 949, 29898, 3027, 29918, 1445, 29897, 13, 4706, 565, 10153, 338, 6213, 29901, 13, 9651, 1596, 703, 23323, 451, 1284, 1273, 29879, 29908, 29995, 29898, 3027, 29918, 1445, 876, 13, 9651, 6773, 13, 4706, 396, 10153, 353, 7442, 29889, 18837, 29918, 6229, 29879, 29898, 2492, 29892, 29900, 29897, 13, 4706, 620, 29892, 27303, 353, 12355, 29918, 17482, 29889, 3389, 29918, 265, 29918, 3150, 11023, 29918, 3027, 29898, 2492, 29897, 13, 4706, 1596, 703, 8964, 292, 4450, 2582, 363, 1273, 29879, 29908, 29995, 29898, 3027, 29918, 1445, 876, 13, 13, 4706, 298, 29892, 29893, 29892, 29918, 353, 10153, 29889, 12181, 13, 13, 4706, 13850, 29906, 29889, 326, 4294, 703, 11965, 613, 620, 29897, 13, 4706, 13850, 29906, 29889, 10685, 2558, 29898, 29900, 29897, 13, 13, 4706, 4837, 29879, 353, 27303, 29889, 657, 29918, 2671, 703, 369, 4776, 1159, 29937, 29889, 23749, 580, 13, 4706, 289, 1884, 267, 353, 27303, 29889, 29890, 1884, 13, 4706, 363, 325, 29892, 289, 1884, 297, 14319, 29898, 369, 1372, 29892, 289, 1884, 267, 1125, 13, 9651, 22419, 353, 7604, 675, 29918, 1765, 1958, 29898, 29894, 29892, 29890, 1884, 29892, 29882, 29892, 29893, 29897, 13, 9651, 396, 22419, 353, 11417, 29918, 13168, 29918, 262, 29918, 3027, 29898, 29894, 29961, 29900, 1402, 29890, 1884, 29892, 29882, 29892, 29893, 29897, 13, 9651, 396, 7604, 675, 29918, 1765, 1958, 29898, 6925, 29897, 13, 9651, 396, 13850, 29906, 29889, 326, 4294, 703, 18904, 613, 4226, 675, 29898, 6925, 29889, 23749, 3285, 448, 29896, 29892, 29871, 29896, 876, 13, 9651, 13850, 29906, 29889, 10685, 2558, 29898, 29900, 29897, 13, 2 ]
colosseumrl/envs/poker/__init__.py
carletonz/colosseumrl
8
186657
<filename>colosseumrl/envs/poker/__init__.py from .KuhnPokerEnvironment import KuhnPokerEnvironment
[ 1, 529, 9507, 29958, 1054, 359, 344, 398, 2096, 29914, 264, 4270, 29914, 29886, 17933, 29914, 1649, 2344, 26914, 2272, 13, 3166, 869, 29968, 29884, 3123, 29925, 17933, 18649, 1053, 18185, 3123, 29925, 17933, 18649, 2 ]
scripts/crTestCaseGen.py
VRFamilyMan/CRTest
0
101780
<filename>scripts/crTestCaseGen.py #!/usr/bin/env python import re import math import crTemplate def csvBooleanExpand(csvLineData): """Each line which contains 'X' is duplicated and the X replace with 0,1. Only one expansion per line is processed""" ExpandOccurred = 0 newCsvLineData = [] for line in csvLineData: #print(line) newCsvLine = [] booleanExpand = 0 csvLine = line.split(',') tempLine = '' for variable in csvLine: #search for an x,X included in alphanumeric string before it, if true don't expand if re.search('[\s]*[a-zA-Z0-9]+x[\s]*', variable) or re.search('[\s]*[a-zA-Z0-9]+X[\s]*', variable): tempLine = tempLine + variable + ',' #search for an x,X included in alphanumeric string after it, if true don't expand elif re.search('[\s]*x[a-zA-Z0-9]+[\s]*', variable) or re.search('[\s]*X[a-zA-Z0-9]+[\s]*', variable): tempLine = tempLine + variable + ',' #search for an x,X with only spaces before or after, if true EXPAND, #replace x,X with special string to be used later. #This is done to ensure other x,X in the line remain untouched elif booleanExpand is 0 and (re.search('[\s]*x[\s]*', variable) or re.search('[\s]*X[\s]*', variable)): booleanExpand = 1 tempLine = tempLine + "abcdefghijklmnopqrstuvwxyz" + ',' #anything else also don't expand else: tempLine = tempLine + variable + ',' #print(tempLine) if booleanExpand is 0: newCsvLineData.append(line) else: #remove extra end ',' tempLine = tempLine[0:-1] #put back the original line and create the extra one newCsvLine.append(tempLine) newCsvLine.append(tempLine) #remove the special string with 0 and 1 newCsvLine[0] = newCsvLine[0].replace('abcdefghijklmnopqrstuvwxyz','0',1) newCsvLine[1] = newCsvLine[1].replace('abcdefghijklmnopqrstuvwxyz','1',1) #add the new line to the final processed csv data newCsvLineData.append(newCsvLine[0]) newCsvLineData.append(newCsvLine[1]) ExpandOccurred = 1 return ExpandOccurred, newCsvLineData def csvRangeExpand(csvLineData): """Each line which contains 'MIN..STEP..MAX' is duplicated with the (MAX-MIN)/STEP replacements. Only one expansion per line is processed""" ExpandOccurred = 0 newCsvLineData = [] minRange = 0 stepSize = 0 maxRange = 0 direction = 'UP' newRangeValue = 0 requiredExpandLine = 0 tempString = '' for line in csvLineData: #print(line) newCsvLine = [] booleanExpand = 0 csvLine = line.split(',') tempLine = '' for variable in csvLine: #search for an x,X with only spaces before or after, if true EXPAND, #replace x,X with special string to be used later. #This is done to ensure other x,X in the line remain untouched if booleanExpand is 0 and re.search('[\s]*[0-9][0-9]*[\s]*\.\.[\s]*[0-9][0-9]*[\s]*\.\.[\s]*[0-9][0-9]*[\s]*', variable): booleanExpand = 1 tempString = variable.split('..') minRange = int(tempString[0]) stepSize = int(tempString[1]) maxRange = int(tempString[2]) if minRange < maxRange: direction = 'UP' else: direction = 'DOWN' minRange = int(tempString[2]) maxRange = int(tempString[0]) tempLine = tempLine + "abcdefghijklmnopqrstuvwxyz" + ',' #anything else also don't expand else: tempLine = tempLine + variable + ',' #print(tempLine) if booleanExpand is 0: newCsvLineData.append(line) else: #remove extra end ',' tempLine = tempLine[0:-1] #pull back to orignial line newCsvLine.append(tempLine) if direction is 'UP': newCsvLine[0] = newCsvLine[0].replace('abcdefghijklmnopqrstuvwxyz',str(minRange),1) newRangeValue = minRange else: newCsvLine[0] = newCsvLine[0].replace('abcdefghijklmnopqrstuvwxyz',str(maxRange),1) newRangeValue = maxRange #add the new line to the final processed csv data newCsvLineData.append(newCsvLine[0]) #add a new line for each value in the range (MAX-MIN)/STEP #print(minRange) #print(stepSize) #print(maxRange) requiredExpandLine = int(math.ceil((maxRange - minRange)/stepSize)) #print(requiredExpandLine) #remove the special string and replace with ranges values (minRange + stepSize + stepSize + stepSize + stepSize + MaxRange) for i in range(0,requiredExpandLine,1): newCsvLine.append(tempLine) if direction is 'UP': newRangeValue = newRangeValue + stepSize if newRangeValue <= maxRange: newCsvLine[i+1] = newCsvLine[i+1].replace('abcdefghijklmnopqrstuvwxyz',str(newRangeValue),1) #add the new line to the final processed csv data newCsvLineData.append(newCsvLine[i+1]) else: newCsvLine[i+1] = newCsvLine[i+1].replace('abcdefghijklmnopqrstuvwxyz',str(maxRange),1) #add the new line to the final processed csv data newCsvLineData.append(newCsvLine[i+1]) else: newRangeValue = newRangeValue - stepSize if newRangeValue >= minRange: newCsvLine[i+1] = newCsvLine[i+1].replace('abcdefghijklmnopqrstuvwxyz',str(newRangeValue),1) #add the new line to the final processed csv data newCsvLineData.append(newCsvLine[i+1]) else: newCsvLine[i+1] = newCsvLine[i+1].replace('abcdefghijklmnopqrstuvwxyz',str(minRange),1) #add the new line to the final processed csv data newCsvLineData.append(newCsvLine[i+1]) ExpandOccurred = 1 return ExpandOccurred, newCsvLineData def testCaseCodeGen(sourceTemplate, headerTemplate, testCaseDirAndFile, testCaseFileOnlyNoExt): """Takes the Test Case Data and generates C code to run with the Module under test""" #file handling fh = open(testCaseDirAndFile, 'r') raw_testCase_data = fh.read() fh.close() testCaseLineData = raw_testCase_data.split('\n') #open the c file template fh = open(sourceTemplate, 'r') raw_sourceFile = fh.read() fh.close() fh = open(headerTemplate, 'r') raw_headerFile = fh.read() fh.close() #Required sections variableTypes = [] variableNames = [] actualTestData = [] csvLine = [] rawRowStringArray = [] rawRowString = '' valueArray = [] controlArray = [] valueMaxArray = [] accummulatedTime = 0 numberTestCases = 0 numberVariables = 0 numberRangeRows = 0 finalVarStructType = '' finalCtrlStructType = '' finalValueArray = '' finalControlArray = '' finalValueMaxArray = '' reqRefString = '' commentString = '' tempNumberVariables = 0 #************* TEST CASE ******************* #***************************** Variable Types and Names ****************************** #search for the line with the variable types sectionfound = 0 for line in testCaseLineData: #print(line) if re.search('CR_Test,Types', line): sectionfound = 1 line = line.replace('CR_Test,','',1) #only replace the first as the string "Types" may occur else where in row line = line.replace('Types,','',1) #only replace the first as the string "Types" may occur else where in row variableTypes = line.split(',') break if sectionfound is 0: print("Warning: No Variable Types found. \n") #search for the Variable names sectionfound = 0 for line in testCaseLineData: #print(line) if re.search('Update_time,Check_time', line): sectionfound = 1 line = line.replace('Update_time,','',1) #only replace the first as the string "Types" may occur else where in row line = line.replace('Check_time,','',1) #only replace the first as the string "Types" may occur else where in row variableNames = line.split(',') #print(variableNames) count = 0 #determine the number of variable for string in variableNames: if re.search('Req_Ref', string): numberVariables = count count = count + 1 break if sectionfound is 0: print("Warning: No Variable Types found. \n") #remove the Reg_Ref and Comments from variable name list variableNames = variableNames[0:-2] #check variable types list it could have extra cell on the end #print(variableTypes) if len(variableTypes) > numberVariables: extraCells = len(variableTypes) - numberVariables for x in range(0,extraCells,1): variableTypes = variableTypes[0:-1] #print(variableTypes) #print(numberVariables) #combine the variable type and names with standard C code formatting count = 0 for count in range(0,numberVariables,1): finalVarStructType = finalVarStructType + ' ' + variableTypes[count] + ' ' + variableNames[count] + ';\n' #print(finalVarStructType) #***************************** Actual Test Data ****************************** #search for the line with the actual test data #remove the variable type and names row to leave the actual test case sectionfound = 0 #Also create a raw row string of the test case #add c code array sytax rawRowString = "\n{ \n" for line in testCaseLineData: #print(line) if re.search('CR_Test,Types', line): pass elif re.search('Update_time,Check_time', line): pass else: sectionfound = 1 #Check if the row has any text if re.search('[a-zA-Z0-9][a-zA-Z0-9_,]*', line): actualTestData.append(line) #Add the row to the raw row string with c code sytax, after removing the Reg_Ref rawRowString = rawRowString + " \"" + line + "\",\n" else: break if sectionfound is 0: print("Warning: No Test Data found. \n") #print(*actualTestData) #remove extra end ',' and return rawRowString = rawRowString[0:-2] rawRowString = rawRowString + line + '\n}' #print(rawRowString) #************************************************************************** #TestData = ['10, 20,FxED, X,x,56 =,34<','40,50,BXB,70, x,78=,12>','40,50..1..60,BXB,70, x,78=,12>'] #print(*TestData) #for string in TestData: #print(string) #print('\n') #finished, newTestData = csvBooleanExpand(TestData) #for string in newTestData: #print(string) #print('\n') #finished, newTestData = csvBooleanExpand(newTestData) #finished, newTestData = csvRangeExpand(newTestData) #for string in newTestData: # print(string) #print('\n') #***************************************************************************** #find for boolean expansion (Xx means don't care and with be replaced with 0,1) temp = actualTestData[0].split(',') count = 0 for variable in temp: count = count + 1 #print(count) for i in range(0,count,1): itRan, actualTestData = csvBooleanExpand(actualTestData) #print(*actualTestData) if itRan is 0: break for i in range(0,count,1): itRan, actualTestData = csvRangeExpand(actualTestData) #print(*actualTestData) if itRan is 0: break #print(*actualTestData) #generate the control and Value arrays lineCount = 0 sectionfound = 0 tempArray = [] for line in actualTestData: csvLine = line.split(',') #check for the end of the test case if csvLine[0] is '': break #added formatting for the c structure valueArray.append(" ") controlArray.append(" ") valueMaxString = '' numberTestCases = numberTestCases + 1 count = 0 rangeFound = 0 for value in csvLine: if (( numberVariables + 2 ) > count ): #first value in the row is the updateTime #(time between the end of the previous row and the stimulus of this one) if count == 0: accummulatedTime = accummulatedTime + int(value) controlArray[lineCount] = controlArray[lineCount] + "{ " + str(accummulatedTime) + ", " count = 1 #second value in the row is the checkTime - NOT IMPLIMENTED #(time between the stimulus and the expected of this one) elif count == 1: controlArray[lineCount] = controlArray[lineCount] + value valueArray[lineCount] = valueArray[lineCount] + "{ " count = 2 else: #replace the evaluation symbols with the control enumerations #must be in this order if re.search('[\s]*[0-9][0-9]*[\s]*\.\.[\s]*[0-9][0-9]*[\s]*!=', value): controlArray[lineCount] = controlArray[lineCount] + ", TC_RANGE_NOT_EQU" tempValue = value.replace('!=','') tempArray = tempValue.split('..') value = tempArray[0] valueMax = tempArray[1] rangeFound = 1 elif re.search('[\s]*[0-9][0-9]*[\s]*\.\.[\s]*[0-9][0-9]*[\s]*=', value): controlArray[lineCount] = controlArray[lineCount] + ", TC_RANGE_EQUAL" tempValue = value.replace('=','') tempArray = tempValue.split('..') #check which way the range goes. if int(tempArray[0]) < int(tempArray[1]): value = tempArray[0] valueMax = tempArray[1] else: valueMax = tempArray[0] value = tempArray[1] rangeFound = 1 elif re.search('[\s]*[a-zA-Z0-9][a-zA-Z0-9_]*[\s]*\<=', value): controlArray[lineCount] = controlArray[lineCount] + ", TC_GREATER_EQU" value = value.replace('<=','') valueMax = '0' elif re.search('[\s]*[a-zA-Z0-9][a-zA-Z0-9_]*[\s]*\>=', value): controlArray[lineCount] = controlArray[lineCount] + ", TC_LESS_EQU" value = value.replace('>=','') valueMax = '0' elif re.search('[\s]*[a-zA-Z0-9][a-zA-Z0-9_]*[\s]*!=', value): controlArray[lineCount] = controlArray[lineCount] + ", TC_NOT_EQU" value = value.replace('!=','') valueMax = '0' elif re.search('[\s]*[a-zA-Z0-9][a-zA-Z0-9_]*[\s]*\>', value): controlArray[lineCount] = controlArray[lineCount] + ", TC_LESS" value = value.replace('>','') valueMax = '0' elif re.search('[\s]*[a-zA-Z0-9][a-zA-Z0-9_]*[\s]*\<', value): controlArray[lineCount] = controlArray[lineCount] + ", TC_GREATER" value = value.replace('<','') valueMax = '0' elif re.search('[\s]*[a-zA-Z0-9][a-zA-Z0-9_]*[\s]*=', value): controlArray[lineCount] = controlArray[lineCount] + ", TC_EQUAL" value = value.replace('=','') valueMax = '0' #check if value only and if yes it is stimulus only elif re.search('[\s]*[a-zA-Z0-9][a-zA-Z0-9_]*[\s]*',value): controlArray[lineCount] = controlArray[lineCount] + ", TC_STIMULUS" valueMax = '0' #check for a blank field, if blank make value zero and mark control to do nothing elif re.search('',value) or re.search('[\s]*',value): controlArray[lineCount] = controlArray[lineCount] + ", TC_NOTHING" value = '0' valueMax = '0' else: pass #remove the evaluation sybols from value array #must be in this order valueArray[lineCount] = valueArray[lineCount] + value + " ," #build up the max values row string even if it is not required valueMaxString = valueMaxString + valueMax + " ," count = count + 1 elif (( numberVariables + 2 ) == count ): if value is not '': reqRefString = reqRefString + value + ',' count = count + 1 elif (( numberVariables + 3 ) == count ): if value is not '': commentString = commentString + value + ',' count = count + 1 else: pass #remove extra end ',' valueArray[lineCount] = valueArray[lineCount][0:-1] #check if max value row string actually contained a range if rangeFound: #add row to Max array and remove extra end ',' valueMaxArray.append(" { " + valueMaxString[0:-1] + " },") numberRangeRows = numberRangeRows + 1 #first time through record the number of variables (not counting the 2 time columns) if sectionfound == 0: #numberVariables = count - 2 sectionfound = 1 #finish formatting the line controlArray[lineCount] = controlArray[lineCount] + " }," valueArray[lineCount] = valueArray[lineCount] + " }," lineCount = lineCount + 1 #Remove the extra ',' on the last row of the c array controlArray[lineCount-1] = controlArray[lineCount-1][0:-1] valueArray[lineCount-1] = valueArray[lineCount-1][0:-1] #check if there were any range evaluation found if numberRangeRows is not 0: #remove extra end ',' valueMaxArray[numberRangeRows-1] = valueMaxArray[numberRangeRows-1][0:-1] #combine the right number of Control type and names with standard C code formatting count = 0 for count in range(0,numberVariables,1): finalCtrlStructType = finalCtrlStructType + ' TestCase_Control_en ' + variableNames[count] + '_Control;\n' #print(finalCtrlStructType) #combine the lines of the actual test data into one long string count = 0 for string in valueArray: finalValueArray = finalValueArray + string + '\n' count = count + 1 #print(finalValueArray) #combine the lines of the control data into one long string count = 0 for string in controlArray: finalControlArray = finalControlArray + string + '\n' count = count + 1 #print(finalControlArray) #combine the lines of the actual test data into one long string count = 0 for string in valueMaxArray: finalValueMaxArray = finalValueMaxArray + string + '\n' count = count + 1 #print(finalValueMaxArray) reqRefString = reqRefString[0:-1] commentString = commentString[0:-1] #print(reqRefString) #print(commentString) #***************************** Write Test C file ******************* # SOURCE FILE GENERATOR #search for the key words to replace with c code raw_sourceFile = raw_sourceFile.replace('##TestCase_HeaderFile##', testCaseFileOnlyNoExt + "_testcase.h") raw_sourceFile = raw_sourceFile.replace('##TestCase_NoTests##', str(numberTestCases)) raw_sourceFile = raw_sourceFile.replace('##TestCase_NoVariables##', str(numberVariables)) raw_sourceFile = raw_sourceFile.replace('##TestCase_NoRangeRows##', str(numberRangeRows)) raw_sourceFile = raw_sourceFile.replace('##TestCase_Name##', testCaseFileOnlyNoExt) raw_sourceFile = raw_sourceFile.replace('##TestCase_RawRowString##', rawRowString) raw_sourceFile = raw_sourceFile.replace('##TestCase_ReqString##', reqRefString) raw_sourceFile = raw_sourceFile.replace('##TestCase_ValueType##', finalVarStructType) raw_sourceFile = raw_sourceFile.replace('##TestCase_ControlType##', finalCtrlStructType) raw_sourceFile = raw_sourceFile.replace('##TestCase_Values##', finalValueArray) raw_sourceFile = raw_sourceFile.replace('##TestCase_Control##', finalControlArray) raw_sourceFile = raw_sourceFile.replace('##TestCase_ValuesMax##', finalValueMaxArray) #Generating test functions which contain the actual test variables # Stimulate function raw_sourceFile = crTemplate.varMLTemplateGen(raw_sourceFile, '##TestCase_StimulateFn##', '##VarName##', '##NL##', variableNames) # Expected function raw_sourceFile = crTemplate.varMLTemplateGen(raw_sourceFile, '##TestCase_ExpectedFn##', '##VarName##', '##NL##', variableNames) raw_sourceFile = crTemplate.varMLTemplateGen(raw_sourceFile, '##TestCase_ExpectedV1##', '##VarName##', '##NL##', variableNames) raw_sourceFile = crTemplate.varMLTemplateGen(raw_sourceFile, '##TestCase_ExpectedV2##', '##VarName##', '##NL##', variableNames) raw_sourceFile = crTemplate.varMLTemplateGen(raw_sourceFile, '##TestCase_ExpectedV3##', '##VarName##', '##NL##', variableNames) raw_sourceFile = crTemplate.varMLTemplateGen(raw_sourceFile, '##TestCase_ExpectedV4##', '##VarName##', '##NL##', variableNames) raw_sourceFile = crTemplate.varMLTemplateGen(raw_sourceFile, '##TestCase_ExpectedV5##', '##VarName##', '##NL##', variableNames) # Variable Check function raw_sourceFile = crTemplate.varAndTypeMLTemplateGen(raw_sourceFile, '##TestCase_VarCheckFn1##', '##VarName##', '##VarType##', '##NL##', variableNames, variableTypes) raw_sourceFile = crTemplate.varAndTypeMLTemplateGen(raw_sourceFile, '##TestCase_VarCheckFn2##', '##VarName##', '##VarType##', '##NL##', variableNames, variableTypes) # HEADER FILE GENERATOR #search for the key words to replace with c code raw_headerFile = raw_headerFile.replace('##TestCase_Name##', str.upper(testCaseFileOnlyNoExt)) return raw_sourceFile, raw_headerFile, reqRefString
[ 1, 529, 9507, 29958, 16713, 29914, 7283, 3057, 8259, 15462, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 5215, 337, 13, 5215, 5844, 13, 5215, 2181, 6733, 13, 13, 1753, 11799, 18146, 29777, 29898, 7638, 3542, 1469, 1125, 13, 1678, 9995, 9760, 1196, 607, 3743, 525, 29990, 29915, 338, 5141, 9169, 322, 278, 1060, 5191, 411, 29871, 29900, 29892, 29896, 29889, 9333, 697, 13184, 639, 1196, 338, 19356, 15945, 29908, 13, 1678, 12027, 392, 22034, 332, 1127, 353, 29871, 29900, 13, 1678, 716, 29907, 4501, 3542, 1469, 353, 5159, 13, 1678, 363, 1196, 297, 11799, 3542, 1469, 29901, 13, 4706, 396, 2158, 29898, 1220, 29897, 13, 4706, 716, 29907, 4501, 3542, 353, 5159, 13, 4706, 7223, 29777, 353, 29871, 29900, 13, 4706, 11799, 3542, 353, 1196, 29889, 5451, 29317, 1495, 13, 4706, 5694, 3542, 353, 6629, 13, 4706, 363, 2286, 297, 11799, 3542, 29901, 13, 9651, 396, 4478, 363, 385, 921, 29892, 29990, 5134, 297, 394, 16711, 25099, 1347, 1434, 372, 29892, 565, 1565, 1016, 29915, 29873, 7985, 13, 9651, 565, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 10062, 29916, 7110, 29879, 14178, 742, 2286, 29897, 470, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 10062, 29990, 7110, 29879, 14178, 742, 2286, 1125, 13, 18884, 5694, 3542, 353, 5694, 3542, 718, 2286, 718, 525, 5501, 13, 9651, 396, 4478, 363, 385, 921, 29892, 29990, 5134, 297, 394, 16711, 25099, 1347, 1156, 372, 29892, 565, 1565, 1016, 29915, 29873, 7985, 13, 9651, 25342, 337, 29889, 4478, 877, 7110, 29879, 14178, 29916, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 10062, 7110, 29879, 14178, 742, 2286, 29897, 470, 337, 29889, 4478, 877, 7110, 29879, 14178, 29990, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 10062, 7110, 29879, 14178, 742, 2286, 1125, 13, 18884, 5694, 3542, 353, 5694, 3542, 718, 2286, 718, 525, 5501, 13, 9651, 396, 4478, 363, 385, 921, 29892, 29990, 411, 871, 8162, 1434, 470, 1156, 29892, 565, 1565, 8528, 29925, 9468, 29892, 29871, 13, 9651, 396, 6506, 921, 29892, 29990, 411, 4266, 1347, 304, 367, 1304, 2678, 29889, 29871, 13, 9651, 396, 4013, 338, 2309, 304, 9801, 916, 921, 29892, 29990, 297, 278, 1196, 3933, 443, 16747, 287, 13, 9651, 25342, 7223, 29777, 338, 29871, 29900, 322, 313, 276, 29889, 4478, 877, 7110, 29879, 14178, 29916, 7110, 29879, 14178, 742, 2286, 29897, 470, 337, 29889, 4478, 877, 7110, 29879, 14178, 29990, 7110, 29879, 14178, 742, 2286, 22164, 13, 18884, 7223, 29777, 353, 29871, 29896, 13, 18884, 5694, 3542, 353, 5694, 3542, 718, 376, 10736, 1753, 12443, 823, 6321, 23521, 459, 29939, 29878, 303, 4090, 29893, 20230, 29908, 718, 525, 5501, 13, 9651, 396, 1384, 1918, 1683, 884, 1016, 29915, 29873, 7985, 13, 9651, 1683, 29901, 13, 18884, 5694, 3542, 353, 5694, 3542, 718, 2286, 718, 525, 5501, 13, 4706, 396, 2158, 29898, 7382, 3542, 29897, 13, 4706, 565, 7223, 29777, 338, 29871, 29900, 29901, 13, 9651, 716, 29907, 4501, 3542, 1469, 29889, 4397, 29898, 1220, 29897, 13, 4706, 1683, 29901, 13, 9651, 396, 5992, 4805, 1095, 525, 5501, 13, 9651, 5694, 3542, 353, 5694, 3542, 29961, 29900, 13018, 29896, 29962, 13, 9651, 396, 649, 1250, 278, 2441, 1196, 322, 1653, 278, 4805, 697, 13, 9651, 716, 29907, 4501, 3542, 29889, 4397, 29898, 7382, 3542, 29897, 13, 9651, 716, 29907, 4501, 3542, 29889, 4397, 29898, 7382, 3542, 29897, 13, 9651, 396, 5992, 278, 4266, 1347, 411, 29871, 29900, 322, 29871, 29896, 13, 9651, 716, 29907, 4501, 3542, 29961, 29900, 29962, 353, 716, 29907, 4501, 3542, 29961, 29900, 1822, 6506, 877, 10736, 1753, 12443, 823, 6321, 23521, 459, 29939, 29878, 303, 4090, 29893, 20230, 3788, 29900, 742, 29896, 29897, 13, 9651, 716, 29907, 4501, 3542, 29961, 29896, 29962, 353, 716, 29907, 4501, 3542, 29961, 29896, 1822, 6506, 877, 10736, 1753, 12443, 823, 6321, 23521, 459, 29939, 29878, 303, 4090, 29893, 20230, 3788, 29896, 742, 29896, 29897, 13, 9651, 396, 1202, 278, 716, 1196, 304, 278, 2186, 19356, 11799, 848, 13, 9651, 716, 29907, 4501, 3542, 1469, 29889, 4397, 29898, 1482, 29907, 4501, 3542, 29961, 29900, 2314, 13, 9651, 716, 29907, 4501, 3542, 1469, 29889, 4397, 29898, 1482, 29907, 4501, 3542, 29961, 29896, 2314, 13, 9651, 12027, 392, 22034, 332, 1127, 353, 29871, 29896, 13, 13, 1678, 736, 12027, 392, 22034, 332, 1127, 29892, 716, 29907, 4501, 3542, 1469, 13, 13, 1753, 11799, 6069, 29777, 29898, 7638, 3542, 1469, 1125, 13, 1678, 9995, 9760, 1196, 607, 3743, 525, 16173, 636, 1254, 15488, 636, 12648, 29915, 338, 5141, 9169, 411, 278, 313, 12648, 29899, 16173, 6802, 1254, 15488, 1634, 4620, 4110, 29889, 9333, 697, 13184, 639, 1196, 338, 19356, 15945, 29908, 13, 1678, 12027, 392, 22034, 332, 1127, 353, 29871, 29900, 13, 1678, 716, 29907, 4501, 3542, 1469, 353, 5159, 13, 1678, 1375, 6069, 353, 29871, 29900, 13, 1678, 4331, 3505, 353, 29871, 29900, 13, 1678, 4236, 6069, 353, 29871, 29900, 13, 1678, 5305, 353, 525, 4897, 29915, 13, 1678, 716, 6069, 1917, 353, 29871, 29900, 13, 1678, 3734, 29777, 3542, 353, 29871, 29900, 13, 1678, 5694, 1231, 353, 6629, 13, 1678, 363, 1196, 297, 11799, 3542, 1469, 29901, 13, 4706, 396, 2158, 29898, 1220, 29897, 13, 4706, 716, 29907, 4501, 3542, 353, 5159, 13, 4706, 7223, 29777, 353, 29871, 29900, 13, 4706, 11799, 3542, 353, 1196, 29889, 5451, 29317, 1495, 13, 4706, 5694, 3542, 353, 6629, 13, 4706, 363, 2286, 297, 11799, 3542, 29901, 13, 9651, 396, 4478, 363, 385, 921, 29892, 29990, 411, 871, 8162, 1434, 470, 1156, 29892, 565, 1565, 8528, 29925, 9468, 29892, 29871, 13, 9651, 396, 6506, 921, 29892, 29990, 411, 4266, 1347, 304, 367, 1304, 2678, 29889, 29871, 13, 9651, 396, 4013, 338, 2309, 304, 9801, 916, 921, 29892, 29990, 297, 278, 1196, 3933, 443, 16747, 287, 13, 9651, 565, 7223, 29777, 338, 29871, 29900, 322, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29900, 29899, 29929, 3816, 29900, 29899, 29929, 14178, 7110, 29879, 14178, 29905, 7790, 29889, 7110, 29879, 14178, 29961, 29900, 29899, 29929, 3816, 29900, 29899, 29929, 14178, 7110, 29879, 14178, 29905, 7790, 29889, 7110, 29879, 14178, 29961, 29900, 29899, 29929, 3816, 29900, 29899, 29929, 14178, 7110, 29879, 14178, 742, 2286, 1125, 13, 18884, 7223, 29777, 353, 29871, 29896, 13, 18884, 5694, 1231, 353, 2286, 29889, 5451, 877, 636, 1495, 13, 18884, 1375, 6069, 353, 938, 29898, 7382, 1231, 29961, 29900, 2314, 13, 18884, 4331, 3505, 353, 938, 29898, 7382, 1231, 29961, 29896, 2314, 13, 18884, 4236, 6069, 353, 938, 29898, 7382, 1231, 29961, 29906, 2314, 13, 18884, 565, 1375, 6069, 529, 4236, 6069, 29901, 13, 462, 1678, 5305, 353, 525, 4897, 29915, 13, 18884, 1683, 29901, 13, 462, 1678, 5305, 353, 525, 3970, 16048, 29915, 13, 462, 1678, 1375, 6069, 353, 938, 29898, 7382, 1231, 29961, 29906, 2314, 13, 462, 1678, 4236, 6069, 353, 938, 29898, 7382, 1231, 29961, 29900, 2314, 13, 18884, 5694, 3542, 353, 5694, 3542, 718, 376, 10736, 1753, 12443, 823, 6321, 23521, 459, 29939, 29878, 303, 4090, 29893, 20230, 29908, 718, 525, 5501, 13, 9651, 396, 1384, 1918, 1683, 884, 1016, 29915, 29873, 7985, 13, 9651, 1683, 29901, 13, 18884, 5694, 3542, 353, 5694, 3542, 718, 2286, 718, 525, 5501, 13, 4706, 396, 2158, 29898, 7382, 3542, 29897, 13, 4706, 565, 7223, 29777, 338, 29871, 29900, 29901, 13, 9651, 716, 29907, 4501, 3542, 1469, 29889, 4397, 29898, 1220, 29897, 13, 4706, 1683, 29901, 13, 9651, 396, 5992, 4805, 1095, 525, 5501, 13, 9651, 5694, 3542, 353, 5694, 3542, 29961, 29900, 13018, 29896, 29962, 13, 9651, 396, 26746, 1250, 304, 470, 647, 616, 1196, 13, 9651, 716, 29907, 4501, 3542, 29889, 4397, 29898, 7382, 3542, 29897, 13, 9651, 565, 5305, 338, 525, 4897, 2396, 13, 18884, 716, 29907, 4501, 3542, 29961, 29900, 29962, 353, 716, 29907, 4501, 3542, 29961, 29900, 1822, 6506, 877, 10736, 1753, 12443, 823, 6321, 23521, 459, 29939, 29878, 303, 4090, 29893, 20230, 742, 710, 29898, 1195, 6069, 511, 29896, 29897, 13, 18884, 716, 6069, 1917, 353, 1375, 6069, 13, 9651, 1683, 29901, 13, 18884, 716, 29907, 4501, 3542, 29961, 29900, 29962, 353, 716, 29907, 4501, 3542, 29961, 29900, 1822, 6506, 877, 10736, 1753, 12443, 823, 6321, 23521, 459, 29939, 29878, 303, 4090, 29893, 20230, 742, 710, 29898, 3317, 6069, 511, 29896, 29897, 13, 18884, 716, 6069, 1917, 353, 4236, 6069, 13, 9651, 396, 1202, 278, 716, 1196, 304, 278, 2186, 19356, 11799, 848, 13, 9651, 716, 29907, 4501, 3542, 1469, 29889, 4397, 29898, 1482, 29907, 4501, 3542, 29961, 29900, 2314, 13, 9651, 396, 1202, 263, 716, 1196, 363, 1269, 995, 297, 278, 3464, 313, 12648, 29899, 16173, 6802, 1254, 15488, 13, 9651, 396, 2158, 29898, 1195, 6069, 29897, 13, 9651, 396, 2158, 29898, 10568, 3505, 29897, 13, 9651, 396, 2158, 29898, 3317, 6069, 29897, 13, 9651, 3734, 29777, 3542, 353, 938, 29898, 755, 29889, 27696, 3552, 3317, 6069, 448, 1375, 6069, 6802, 10568, 3505, 876, 13, 9651, 396, 2158, 29898, 12403, 29777, 3542, 29897, 13, 9651, 396, 5992, 278, 4266, 1347, 322, 5191, 411, 20238, 1819, 313, 1195, 6069, 718, 4331, 3505, 718, 4331, 3505, 718, 4331, 3505, 718, 4331, 3505, 718, 5918, 6069, 29897, 13, 9651, 363, 474, 297, 3464, 29898, 29900, 29892, 12403, 29777, 3542, 29892, 29896, 1125, 13, 18884, 716, 29907, 4501, 3542, 29889, 4397, 29898, 7382, 3542, 29897, 13, 18884, 565, 5305, 338, 525, 4897, 2396, 13, 462, 1678, 716, 6069, 1917, 353, 716, 6069, 1917, 718, 4331, 3505, 13, 462, 1678, 565, 716, 6069, 1917, 5277, 4236, 6069, 29901, 13, 462, 4706, 716, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 29962, 353, 716, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 1822, 6506, 877, 10736, 1753, 12443, 823, 6321, 23521, 459, 29939, 29878, 303, 4090, 29893, 20230, 742, 710, 29898, 1482, 6069, 1917, 511, 29896, 29897, 13, 462, 4706, 396, 1202, 278, 716, 1196, 304, 278, 2186, 19356, 11799, 848, 13, 462, 4706, 716, 29907, 4501, 3542, 1469, 29889, 4397, 29898, 1482, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 2314, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 716, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 29962, 353, 716, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 1822, 6506, 877, 10736, 1753, 12443, 823, 6321, 23521, 459, 29939, 29878, 303, 4090, 29893, 20230, 742, 710, 29898, 3317, 6069, 511, 29896, 29897, 13, 462, 4706, 396, 1202, 278, 716, 1196, 304, 278, 2186, 19356, 11799, 848, 13, 462, 4706, 716, 29907, 4501, 3542, 1469, 29889, 4397, 29898, 1482, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 2314, 13, 18884, 1683, 29901, 13, 462, 1678, 716, 6069, 1917, 353, 716, 6069, 1917, 448, 4331, 3505, 13, 462, 1678, 565, 716, 6069, 1917, 6736, 1375, 6069, 29901, 13, 462, 4706, 716, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 29962, 353, 716, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 1822, 6506, 877, 10736, 1753, 12443, 823, 6321, 23521, 459, 29939, 29878, 303, 4090, 29893, 20230, 742, 710, 29898, 1482, 6069, 1917, 511, 29896, 29897, 13, 462, 4706, 396, 1202, 278, 716, 1196, 304, 278, 2186, 19356, 11799, 848, 13, 462, 4706, 716, 29907, 4501, 3542, 1469, 29889, 4397, 29898, 1482, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 2314, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 716, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 29962, 353, 716, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 1822, 6506, 877, 10736, 1753, 12443, 823, 6321, 23521, 459, 29939, 29878, 303, 4090, 29893, 20230, 742, 710, 29898, 1195, 6069, 511, 29896, 29897, 13, 462, 4706, 396, 1202, 278, 716, 1196, 304, 278, 2186, 19356, 11799, 848, 13, 462, 4706, 716, 29907, 4501, 3542, 1469, 29889, 4397, 29898, 1482, 29907, 4501, 3542, 29961, 29875, 29974, 29896, 2314, 13, 9651, 12027, 392, 22034, 332, 1127, 353, 29871, 29896, 13, 13, 1678, 736, 12027, 392, 22034, 332, 1127, 29892, 716, 29907, 4501, 3542, 1469, 13, 13, 13, 1753, 1243, 8259, 3399, 15462, 29898, 4993, 6733, 29892, 4839, 6733, 29892, 1243, 8259, 9170, 2855, 2283, 29892, 1243, 8259, 2283, 11730, 3782, 5647, 1125, 1678, 13, 1678, 9995, 29911, 6926, 278, 4321, 11733, 3630, 322, 16785, 315, 775, 304, 1065, 411, 278, 15591, 1090, 1243, 15945, 29908, 13, 13, 1678, 396, 1445, 11415, 13, 1678, 285, 29882, 353, 1722, 29898, 1688, 8259, 9170, 2855, 2283, 29892, 525, 29878, 1495, 13, 1678, 10650, 29918, 1688, 8259, 29918, 1272, 353, 285, 29882, 29889, 949, 580, 13, 1678, 285, 29882, 29889, 5358, 580, 13, 1678, 1243, 8259, 3542, 1469, 353, 10650, 29918, 1688, 8259, 29918, 1272, 29889, 5451, 28909, 29876, 1495, 13, 13, 1678, 396, 3150, 278, 274, 934, 4472, 13, 1678, 285, 29882, 353, 1722, 29898, 4993, 6733, 29892, 525, 29878, 1495, 13, 1678, 10650, 29918, 4993, 2283, 353, 285, 29882, 29889, 949, 580, 13, 1678, 285, 29882, 29889, 5358, 580, 13, 268, 13, 1678, 285, 29882, 353, 1722, 29898, 6672, 6733, 29892, 525, 29878, 1495, 13, 1678, 10650, 29918, 6672, 2283, 353, 285, 29882, 29889, 949, 580, 13, 1678, 285, 29882, 29889, 5358, 580, 13, 13, 1678, 396, 19347, 13926, 13, 1678, 2286, 10562, 353, 5159, 13, 1678, 2286, 8659, 353, 5159, 13, 1678, 3935, 3057, 1469, 353, 5159, 13, 1678, 11799, 3542, 353, 5159, 13, 1678, 10650, 4301, 1231, 2588, 353, 5159, 13, 1678, 10650, 4301, 1231, 353, 6629, 13, 1678, 995, 2588, 353, 5159, 13, 1678, 2761, 2588, 353, 5159, 13, 1678, 995, 7976, 2588, 353, 5159, 13, 1678, 18414, 29885, 7964, 2481, 353, 29871, 29900, 13, 1678, 1353, 3057, 29907, 2129, 353, 29871, 29900, 13, 1678, 1353, 10444, 1849, 353, 29871, 29900, 13, 1678, 1353, 6069, 10661, 353, 29871, 29900, 13, 1678, 2186, 9037, 19560, 1542, 353, 6629, 13, 1678, 2186, 18069, 19560, 1542, 353, 6629, 13, 1678, 2186, 1917, 2588, 353, 6629, 13, 1678, 2186, 4809, 2588, 353, 6629, 13, 1678, 2186, 1917, 7976, 2588, 353, 6629, 13, 1678, 12428, 5620, 1231, 353, 6629, 13, 1678, 3440, 1231, 353, 6629, 13, 1678, 5694, 4557, 10444, 1849, 353, 29871, 29900, 13, 268, 13, 1678, 396, 4189, 2328, 29930, 17067, 1254, 29134, 334, 7775, 1068, 13, 1678, 396, 7775, 4189, 2328, 29930, 28736, 28025, 322, 14706, 334, 7775, 4189, 2328, 29930, 13, 1678, 396, 4478, 363, 278, 1196, 411, 278, 2286, 4072, 29871, 13, 1678, 4004, 11940, 353, 29871, 29900, 13, 1678, 363, 1196, 297, 1243, 8259, 3542, 1469, 29901, 13, 4706, 396, 2158, 29898, 1220, 29897, 13, 4706, 565, 337, 29889, 4478, 877, 11341, 29918, 3057, 29892, 10562, 742, 1196, 1125, 13, 9651, 4004, 11940, 353, 29871, 29896, 13, 9651, 1196, 353, 1196, 29889, 6506, 877, 11341, 29918, 3057, 29892, 3788, 742, 29896, 29897, 396, 6194, 5191, 278, 937, 408, 278, 1347, 376, 10562, 29908, 1122, 6403, 1683, 988, 297, 1948, 29871, 13, 9651, 1196, 353, 1196, 29889, 6506, 877, 10562, 29892, 3788, 742, 29896, 29897, 396, 6194, 5191, 278, 937, 408, 278, 1347, 376, 10562, 29908, 1122, 6403, 1683, 988, 297, 1948, 29871, 13, 9651, 2286, 10562, 353, 1196, 29889, 5451, 29317, 1495, 13, 9651, 2867, 13, 1678, 565, 4004, 11940, 338, 29871, 29900, 29901, 13, 4706, 1596, 703, 22709, 29901, 1939, 28736, 28025, 1476, 29889, 320, 29876, 1159, 13, 268, 13, 1678, 396, 4478, 363, 278, 28736, 2983, 29871, 13, 1678, 4004, 11940, 353, 29871, 29900, 13, 1678, 363, 1196, 297, 1243, 8259, 3542, 1469, 29901, 13, 4706, 396, 2158, 29898, 1220, 29897, 13, 4706, 565, 337, 29889, 4478, 877, 6422, 29918, 2230, 29892, 5596, 29918, 2230, 742, 1196, 1125, 13, 9651, 4004, 11940, 353, 29871, 29896, 13, 9651, 1196, 353, 1196, 29889, 6506, 877, 6422, 29918, 2230, 29892, 3788, 742, 29896, 29897, 396, 6194, 5191, 278, 937, 408, 278, 1347, 376, 10562, 29908, 1122, 6403, 1683, 988, 297, 1948, 29871, 13, 9651, 1196, 353, 1196, 29889, 6506, 877, 5596, 29918, 2230, 29892, 3788, 742, 29896, 29897, 396, 6194, 5191, 278, 937, 408, 278, 1347, 376, 10562, 29908, 1122, 6403, 1683, 988, 297, 1948, 29871, 13, 9651, 2286, 8659, 353, 1196, 29889, 5451, 29317, 1495, 13, 9651, 396, 2158, 29898, 11918, 8659, 29897, 13, 9651, 2302, 353, 29871, 29900, 13, 9651, 396, 4801, 837, 457, 278, 1353, 310, 2286, 29871, 13, 9651, 363, 1347, 297, 2286, 8659, 29901, 13, 18884, 565, 337, 29889, 4478, 877, 1123, 29939, 29918, 5620, 742, 1347, 1125, 13, 462, 1678, 1353, 10444, 1849, 353, 2302, 13, 18884, 2302, 353, 2302, 718, 29871, 29896, 13, 9651, 2867, 13, 1678, 565, 4004, 11940, 338, 29871, 29900, 29901, 13, 4706, 1596, 703, 22709, 29901, 1939, 28736, 28025, 1476, 29889, 320, 29876, 1159, 13, 308, 13, 1678, 396, 5992, 278, 2169, 29918, 5620, 322, 461, 29879, 515, 2286, 1024, 1051, 13, 1678, 2286, 8659, 353, 2286, 8659, 29961, 29900, 13018, 29906, 29962, 13, 268, 13, 1678, 396, 3198, 2286, 4072, 1051, 372, 1033, 505, 4805, 3038, 373, 278, 1095, 13, 1678, 396, 2158, 29898, 11918, 10562, 29897, 13, 1678, 565, 7431, 29898, 11918, 10562, 29897, 1405, 1353, 10444, 1849, 29901, 13, 4706, 4805, 13418, 353, 7431, 29898, 11918, 10562, 29897, 448, 1353, 10444, 1849, 13, 4706, 363, 921, 297, 3464, 29898, 29900, 29892, 17833, 13418, 29892, 29896, 1125, 13, 9651, 2286, 10562, 353, 2286, 10562, 29961, 29900, 13018, 29896, 29962, 13, 1678, 396, 2158, 29898, 11918, 10562, 29897, 13, 268, 13, 1678, 396, 2158, 29898, 4537, 10444, 1849, 29897, 13, 1678, 396, 17743, 457, 278, 2286, 1134, 322, 2983, 411, 3918, 315, 775, 15998, 29871, 13, 1678, 2302, 353, 29871, 29900, 13, 1678, 363, 2302, 297, 3464, 29898, 29900, 29892, 4537, 10444, 1849, 29892, 29896, 1125, 13, 4706, 2186, 9037, 19560, 1542, 353, 2186, 9037, 19560, 1542, 718, 525, 1678, 525, 718, 2286, 10562, 29961, 2798, 29962, 718, 525, 525, 718, 2286, 8659, 29961, 2798, 29962, 718, 525, 10436, 29876, 29915, 13, 308, 13, 1678, 396, 2158, 29898, 8394, 9037, 19560, 1542, 29897, 13, 13, 1678, 396, 7775, 4189, 2328, 29930, 3185, 950, 4321, 3630, 334, 7775, 4189, 2328, 29930, 13, 1678, 396, 4478, 363, 278, 1196, 411, 278, 3935, 1243, 848, 29871, 13, 1678, 396, 5992, 278, 2286, 1134, 322, 2983, 1948, 304, 5967, 278, 3935, 1243, 1206, 13, 13, 1678, 4004, 11940, 353, 29871, 29900, 13, 268, 13, 1678, 396, 17351, 1653, 263, 10650, 1948, 1347, 310, 278, 1243, 1206, 13, 1678, 396, 1202, 274, 775, 1409, 9878, 20725, 13, 1678, 10650, 4301, 1231, 353, 6634, 29876, 29912, 320, 29876, 29908, 13, 268, 13, 1678, 363, 1196, 297, 1243, 8259, 3542, 1469, 29901, 13, 4706, 396, 2158, 29898, 1220, 29897, 13, 4706, 565, 337, 29889, 4478, 877, 11341, 29918, 3057, 29892, 10562, 742, 1196, 1125, 13, 9651, 1209, 13, 4706, 25342, 337, 29889, 4478, 877, 6422, 29918, 2230, 29892, 5596, 29918, 2230, 742, 1196, 1125, 13, 9651, 1209, 13, 4706, 1683, 29901, 13, 9651, 4004, 11940, 353, 29871, 29896, 13, 9651, 396, 5596, 565, 278, 1948, 756, 738, 1426, 13, 9651, 565, 337, 29889, 4478, 877, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 3816, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 3383, 14178, 742, 1196, 1125, 13, 18884, 3935, 3057, 1469, 29889, 4397, 29898, 1220, 29897, 13, 18884, 396, 2528, 278, 1948, 304, 278, 10650, 1948, 1347, 411, 274, 775, 9878, 20725, 29892, 1156, 11077, 278, 2169, 29918, 5620, 13, 18884, 10650, 4301, 1231, 353, 10650, 4301, 1231, 718, 376, 1678, 13218, 29908, 718, 1196, 718, 6634, 613, 29905, 29876, 29908, 13, 9651, 1683, 29901, 462, 13, 18884, 2867, 13, 1678, 565, 4004, 11940, 338, 29871, 29900, 29901, 13, 4706, 1596, 703, 22709, 29901, 1939, 4321, 3630, 1476, 29889, 320, 29876, 1159, 13, 268, 13, 1678, 396, 2158, 10456, 19304, 3057, 1469, 29897, 13, 268, 13, 1678, 396, 5992, 4805, 1095, 525, 5501, 322, 736, 13, 1678, 10650, 4301, 1231, 353, 10650, 4301, 1231, 29961, 29900, 13018, 29906, 29962, 13, 1678, 10650, 4301, 1231, 353, 10650, 4301, 1231, 718, 1196, 718, 11297, 29876, 10162, 13, 1678, 396, 2158, 29898, 1610, 4301, 1231, 29897, 13, 268, 13, 29937, 7775, 7775, 7775, 7775, 4189, 1068, 13, 1678, 396, 3057, 1469, 353, 6024, 29896, 29900, 29892, 29871, 29906, 29900, 29892, 29943, 29916, 3352, 29892, 1060, 29892, 29916, 29892, 29945, 29953, 29871, 353, 29892, 29941, 29946, 29966, 3788, 29946, 29900, 29892, 29945, 29900, 29892, 29933, 29990, 29933, 29892, 29955, 29900, 29892, 921, 29892, 29955, 29947, 29922, 29892, 29896, 29906, 29958, 3788, 29946, 29900, 29892, 29945, 29900, 636, 29896, 636, 29953, 29900, 29892, 29933, 29990, 29933, 29892, 29955, 29900, 29892, 921, 29892, 29955, 29947, 29922, 29892, 29896, 29906, 29958, 2033, 13, 1678, 396, 2158, 10456, 3057, 1469, 29897, 13, 1678, 396, 1454, 1347, 297, 4321, 1469, 29901, 13, 4706, 396, 2158, 29898, 1807, 29897, 13, 1678, 396, 2158, 28909, 29876, 1495, 13, 1678, 396, 4951, 3276, 29892, 716, 3057, 1469, 353, 11799, 18146, 29777, 29898, 3057, 1469, 29897, 13, 1678, 396, 1454, 1347, 297, 716, 3057, 1469, 29901, 13, 4706, 396, 2158, 29898, 1807, 29897, 13, 1678, 396, 2158, 28909, 29876, 1495, 13, 1678, 396, 4951, 3276, 29892, 716, 3057, 1469, 353, 11799, 18146, 29777, 29898, 1482, 3057, 1469, 29897, 13, 1678, 396, 4951, 3276, 29892, 716, 3057, 1469, 353, 11799, 6069, 29777, 29898, 1482, 3057, 1469, 29897, 13, 1678, 396, 1454, 1347, 297, 716, 3057, 1469, 29901, 13, 1678, 396, 1678, 1596, 29898, 1807, 29897, 13, 1678, 396, 2158, 28909, 29876, 1495, 13, 29937, 7775, 7775, 7775, 7775, 4189, 2328, 29930, 13, 268, 13, 1678, 396, 2886, 363, 7223, 13184, 313, 29990, 29916, 2794, 1016, 29915, 29873, 2562, 322, 411, 367, 8611, 411, 29871, 29900, 29892, 29896, 29897, 13, 1678, 5694, 353, 3935, 3057, 1469, 29961, 29900, 1822, 5451, 29317, 1495, 13, 1678, 2302, 353, 29871, 29900, 13, 1678, 363, 2286, 297, 5694, 29901, 13, 4706, 2302, 353, 2302, 718, 29871, 29896, 13, 1678, 396, 2158, 29898, 2798, 29897, 13, 1678, 363, 474, 297, 3464, 29898, 29900, 29892, 2798, 29892, 29896, 1125, 13, 4706, 372, 29934, 273, 29892, 3935, 3057, 1469, 353, 11799, 18146, 29777, 29898, 19304, 3057, 1469, 29897, 13, 4706, 396, 2158, 10456, 19304, 3057, 1469, 29897, 13, 4706, 565, 372, 29934, 273, 338, 29871, 29900, 29901, 13, 9651, 2867, 13, 1678, 363, 474, 297, 3464, 29898, 29900, 29892, 2798, 29892, 29896, 1125, 13, 4706, 372, 29934, 273, 29892, 3935, 3057, 1469, 353, 11799, 6069, 29777, 29898, 19304, 3057, 1469, 29897, 13, 4706, 396, 2158, 10456, 19304, 3057, 1469, 29897, 13, 4706, 565, 372, 29934, 273, 338, 29871, 29900, 29901, 13, 9651, 2867, 13, 1678, 396, 2158, 10456, 19304, 3057, 1469, 29897, 13, 268, 13, 1678, 396, 17158, 278, 2761, 322, 7865, 7049, 13, 1678, 1196, 3981, 353, 29871, 29900, 13, 1678, 4004, 11940, 353, 29871, 29900, 13, 1678, 5694, 2588, 353, 5159, 13, 1678, 363, 1196, 297, 3935, 3057, 1469, 29901, 13, 4706, 11799, 3542, 353, 1196, 29889, 5451, 29317, 1495, 13, 4706, 396, 3198, 363, 278, 1095, 310, 278, 1243, 1206, 13, 4706, 565, 11799, 3542, 29961, 29900, 29962, 338, 525, 2396, 13, 9651, 2867, 13, 4706, 396, 23959, 15998, 363, 278, 274, 3829, 13, 4706, 995, 2588, 29889, 4397, 703, 1678, 16521, 13, 4706, 2761, 2588, 29889, 4397, 703, 1678, 16521, 13, 4706, 995, 7976, 1231, 353, 6629, 13, 4706, 1353, 3057, 29907, 2129, 353, 1353, 3057, 29907, 2129, 718, 29871, 29896, 13, 4706, 2302, 353, 29871, 29900, 13, 4706, 3464, 9692, 353, 29871, 29900, 13, 4706, 363, 995, 297, 11799, 3542, 29901, 13, 9651, 565, 5135, 1353, 10444, 1849, 718, 29871, 29906, 1723, 1405, 2302, 29871, 1125, 13, 18884, 396, 4102, 995, 297, 278, 1948, 338, 278, 2767, 2481, 29871, 13, 18884, 27355, 2230, 1546, 278, 1095, 310, 278, 3517, 1948, 322, 278, 20436, 14999, 310, 445, 697, 29897, 13, 18884, 565, 2302, 1275, 29871, 29900, 29901, 13, 462, 1678, 18414, 29885, 7964, 2481, 353, 18414, 29885, 7964, 2481, 718, 938, 29898, 1767, 29897, 13, 462, 1678, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 29850, 376, 718, 851, 29898, 5753, 23824, 7964, 2481, 29897, 718, 9162, 376, 13, 462, 1678, 2302, 353, 29871, 29896, 13, 18884, 396, 7496, 995, 297, 278, 1948, 338, 278, 1423, 2481, 448, 6058, 306, 3580, 5265, 13780, 3352, 13, 18884, 27355, 2230, 1546, 278, 20436, 14999, 322, 278, 3806, 310, 445, 697, 29897, 13, 18884, 25342, 2302, 1275, 29871, 29896, 29901, 13, 462, 1678, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 995, 13, 462, 1678, 995, 2588, 29961, 1220, 3981, 29962, 353, 995, 2588, 29961, 1220, 3981, 29962, 718, 29850, 376, 13, 462, 1678, 2302, 353, 29871, 29906, 13, 18884, 1683, 29901, 13, 462, 1678, 396, 6506, 278, 17983, 15072, 411, 278, 2761, 22447, 800, 13, 462, 1678, 396, 21969, 367, 297, 445, 1797, 13, 462, 1678, 565, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29900, 29899, 29929, 3816, 29900, 29899, 29929, 14178, 7110, 29879, 14178, 29905, 7790, 29889, 7110, 29879, 14178, 29961, 29900, 29899, 29929, 3816, 29900, 29899, 29929, 14178, 7110, 29879, 14178, 19216, 742, 995, 1125, 13, 462, 4706, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 9162, 323, 29907, 29918, 29934, 24336, 29918, 12256, 29918, 29923, 13356, 29908, 13, 462, 4706, 5694, 1917, 353, 995, 29889, 6506, 877, 19216, 3788, 1495, 13, 462, 4706, 5694, 2588, 353, 5694, 1917, 29889, 5451, 877, 636, 1495, 13, 462, 4706, 995, 353, 5694, 2588, 29961, 29900, 29962, 13, 462, 4706, 995, 7976, 353, 5694, 2588, 29961, 29896, 29962, 13, 462, 4706, 3464, 9692, 353, 29871, 29896, 13, 462, 1678, 25342, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29900, 29899, 29929, 3816, 29900, 29899, 29929, 14178, 7110, 29879, 14178, 29905, 7790, 29889, 7110, 29879, 14178, 29961, 29900, 29899, 29929, 3816, 29900, 29899, 29929, 14178, 7110, 29879, 14178, 29922, 742, 995, 1125, 13, 462, 4706, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 9162, 323, 29907, 29918, 29934, 24336, 29918, 29923, 13356, 1964, 29908, 13, 462, 4706, 5694, 1917, 353, 995, 29889, 6506, 877, 29922, 3788, 1495, 13, 462, 4706, 5694, 2588, 353, 5694, 1917, 29889, 5451, 877, 636, 1495, 13, 462, 4706, 396, 3198, 607, 982, 278, 3464, 5771, 29889, 13, 462, 4706, 565, 938, 29898, 7382, 2588, 29961, 29900, 2314, 529, 938, 29898, 7382, 2588, 29961, 29896, 29962, 1125, 13, 462, 9651, 995, 1678, 353, 5694, 2588, 29961, 29900, 29962, 13, 462, 9651, 995, 7976, 353, 5694, 2588, 29961, 29896, 29962, 13, 462, 4706, 1683, 29901, 13, 462, 9651, 995, 7976, 353, 5694, 2588, 29961, 29900, 29962, 13, 462, 9651, 995, 1678, 353, 5694, 2588, 29961, 29896, 29962, 13, 462, 4706, 3464, 9692, 353, 29871, 29896, 13, 462, 1678, 25342, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 3816, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 29918, 14178, 7110, 29879, 14178, 4488, 29922, 742, 995, 1125, 13, 462, 4706, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 9162, 323, 29907, 29918, 29954, 1525, 1299, 1001, 29918, 29923, 13356, 29908, 13, 462, 4706, 995, 353, 995, 29889, 6506, 877, 14065, 3788, 1495, 13, 462, 4706, 995, 7976, 353, 525, 29900, 29915, 13, 462, 1678, 25342, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 3816, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 29918, 14178, 7110, 29879, 14178, 29905, 18572, 742, 995, 1125, 13, 462, 4706, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 9162, 323, 29907, 29918, 1307, 1799, 29918, 29923, 13356, 29908, 13, 462, 4706, 995, 353, 995, 29889, 6506, 877, 18572, 3788, 1495, 13, 462, 4706, 995, 7976, 353, 525, 29900, 29915, 13, 462, 1678, 25342, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 3816, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 29918, 14178, 7110, 29879, 14178, 19216, 742, 995, 1125, 13, 462, 4706, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 9162, 323, 29907, 29918, 12256, 29918, 29923, 13356, 29908, 13, 462, 4706, 995, 353, 995, 29889, 6506, 877, 19216, 3788, 1495, 13, 462, 4706, 995, 7976, 353, 525, 29900, 29915, 13, 462, 1678, 25342, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 3816, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 29918, 14178, 7110, 29879, 14178, 29905, 29958, 742, 995, 1125, 13, 462, 4706, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 9162, 323, 29907, 29918, 1307, 1799, 29908, 13, 462, 4706, 995, 353, 995, 29889, 6506, 877, 29958, 3788, 1495, 13, 462, 4706, 995, 7976, 353, 525, 29900, 29915, 13, 462, 1678, 25342, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 3816, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 29918, 14178, 7110, 29879, 14178, 4488, 742, 995, 1125, 13, 462, 4706, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 9162, 323, 29907, 29918, 29954, 1525, 1299, 1001, 29908, 13, 462, 4706, 995, 353, 995, 29889, 6506, 877, 29966, 3788, 1495, 13, 462, 4706, 995, 7976, 353, 525, 29900, 29915, 13, 462, 1678, 25342, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 3816, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 29918, 14178, 7110, 29879, 14178, 29922, 742, 995, 1125, 13, 462, 4706, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 9162, 323, 29907, 29918, 29923, 13356, 1964, 29908, 13, 462, 4706, 995, 353, 995, 29889, 6506, 877, 29922, 3788, 1495, 13, 462, 4706, 995, 7976, 353, 525, 29900, 29915, 13, 462, 1678, 396, 3198, 565, 995, 871, 322, 565, 4874, 372, 338, 20436, 14999, 871, 13, 462, 1678, 25342, 337, 29889, 4478, 877, 7110, 29879, 14178, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 3816, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 29918, 14178, 7110, 29879, 14178, 742, 1767, 1125, 13, 462, 4706, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 9162, 323, 29907, 29918, 1254, 7833, 13309, 3308, 29908, 13, 462, 4706, 995, 7976, 353, 525, 29900, 29915, 13, 462, 1678, 396, 3198, 363, 263, 9654, 1746, 29892, 565, 9654, 1207, 995, 5225, 322, 2791, 2761, 304, 437, 3078, 13, 462, 1678, 25342, 337, 29889, 4478, 877, 742, 1767, 29897, 470, 337, 29889, 4478, 877, 7110, 29879, 14178, 742, 1767, 1125, 13, 462, 4706, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 9162, 323, 29907, 29918, 12256, 29950, 4214, 29908, 13, 462, 4706, 995, 353, 525, 29900, 29915, 13, 462, 4706, 995, 7976, 353, 525, 29900, 29915, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 1209, 13, 462, 1678, 396, 5992, 278, 17983, 9878, 2095, 29879, 515, 995, 1409, 13, 462, 1678, 396, 21969, 367, 297, 445, 1797, 13, 462, 1678, 995, 2588, 29961, 1220, 3981, 29962, 353, 995, 2588, 29961, 1220, 3981, 29962, 718, 995, 29871, 718, 376, 29871, 1699, 13, 462, 1678, 396, 4282, 701, 278, 4236, 1819, 1948, 1347, 1584, 565, 372, 338, 451, 3734, 13, 462, 1678, 995, 7976, 1231, 353, 995, 7976, 1231, 718, 995, 7976, 29871, 718, 376, 29871, 1699, 13, 462, 1678, 2302, 353, 2302, 718, 29871, 29896, 13, 9651, 25342, 5135, 1353, 10444, 1849, 718, 29871, 29906, 1723, 1275, 2302, 29871, 1125, 13, 18884, 565, 995, 338, 451, 525, 2396, 13, 462, 1678, 12428, 5620, 1231, 353, 12428, 5620, 1231, 718, 995, 718, 525, 5501, 13, 18884, 2302, 353, 2302, 718, 29871, 29896, 13, 9651, 25342, 5135, 1353, 10444, 1849, 718, 29871, 29941, 1723, 1275, 2302, 29871, 1125, 13, 18884, 565, 995, 338, 451, 525, 2396, 13, 462, 1678, 3440, 1231, 353, 3440, 1231, 718, 995, 718, 525, 5501, 13, 18884, 2302, 353, 2302, 718, 29871, 29896, 13, 9651, 1683, 29901, 13, 18884, 1209, 13, 308, 13, 4706, 396, 5992, 4805, 1095, 525, 5501, 13, 4706, 995, 2588, 29961, 1220, 3981, 29962, 353, 995, 2588, 29961, 1220, 3981, 3816, 29900, 13018, 29896, 29962, 13, 13, 4706, 396, 3198, 565, 4236, 995, 1948, 1347, 2869, 11122, 263, 3464, 13, 4706, 565, 3464, 9692, 29901, 13, 9651, 396, 1202, 1948, 304, 5918, 1409, 322, 3349, 4805, 1095, 525, 5501, 13, 9651, 995, 7976, 2588, 29889, 4397, 703, 1678, 426, 376, 718, 995, 7976, 1231, 29961, 29900, 13018, 29896, 29962, 718, 376, 2981, 1159, 13, 9651, 1353, 6069, 10661, 353, 1353, 6069, 10661, 718, 29871, 29896, 13, 308, 13, 4706, 396, 4102, 931, 1549, 2407, 278, 1353, 310, 3651, 313, 1333, 21248, 278, 29871, 29906, 931, 4341, 29897, 13, 4706, 565, 4004, 11940, 1275, 29871, 29900, 29901, 13, 9651, 396, 4537, 10444, 1849, 353, 2302, 448, 29871, 29906, 13, 9651, 4004, 11940, 353, 29871, 29896, 13, 4706, 396, 4951, 728, 15998, 278, 1196, 13, 4706, 2761, 2588, 29961, 1220, 3981, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29962, 718, 376, 500, 1699, 13, 4706, 995, 2588, 29961, 1220, 3981, 29962, 353, 995, 2588, 29961, 1220, 3981, 29962, 718, 376, 500, 1699, 13, 4706, 1196, 3981, 353, 1196, 3981, 718, 29871, 29896, 13, 13, 1678, 396, 15941, 278, 4805, 525, 5501, 373, 278, 1833, 1948, 310, 278, 274, 1409, 13, 1678, 2761, 2588, 29961, 1220, 3981, 29899, 29896, 29962, 353, 2761, 2588, 29961, 1220, 3981, 29899, 29896, 3816, 29900, 13018, 29896, 29962, 13, 1678, 995, 2588, 29961, 1220, 3981, 29899, 29896, 29962, 259, 353, 995, 2588, 29961, 1220, 3981, 29899, 29896, 3816, 29900, 13018, 29896, 29962, 13, 1678, 396, 3198, 565, 727, 892, 738, 3464, 17983, 1476, 13, 1678, 565, 1353, 6069, 10661, 338, 451, 29871, 29900, 29901, 13, 4706, 396, 5992, 4805, 1095, 525, 5501, 13, 4706, 995, 7976, 2588, 29961, 4537, 6069, 10661, 29899, 29896, 29962, 353, 995, 7976, 2588, 29961, 4537, 6069, 10661, 29899, 29896, 3816, 29900, 13018, 29896, 29962, 13, 308, 13, 1678, 396, 17743, 457, 278, 1492, 1353, 310, 11264, 1134, 322, 2983, 411, 3918, 315, 775, 15998, 29871, 13, 1678, 2302, 353, 29871, 29900, 13, 1678, 363, 2302, 297, 3464, 29898, 29900, 29892, 4537, 10444, 1849, 29892, 29896, 1125, 13, 4706, 2186, 18069, 19560, 1542, 353, 2186, 18069, 19560, 1542, 718, 525, 1678, 4321, 8259, 29918, 4809, 29918, 264, 525, 718, 2286, 8659, 29961, 2798, 29962, 718, 22868, 4809, 10436, 29876, 29915, 13, 1678, 396, 2158, 29898, 8394, 18069, 19560, 1542, 29897, 13, 13, 1678, 396, 17743, 457, 278, 3454, 310, 278, 3935, 1243, 848, 964, 697, 1472, 1347, 29871, 13, 1678, 2302, 353, 29871, 29900, 13, 1678, 363, 1347, 297, 995, 2588, 29901, 13, 4706, 2186, 1917, 2588, 353, 2186, 1917, 2588, 718, 1347, 718, 11297, 29876, 29915, 13, 4706, 2302, 353, 2302, 718, 29871, 29896, 13, 1678, 396, 2158, 29898, 8394, 1917, 2588, 29897, 13, 13, 1678, 396, 17743, 457, 278, 3454, 310, 278, 2761, 848, 964, 697, 1472, 1347, 29871, 13, 1678, 2302, 353, 29871, 29900, 13, 1678, 363, 1347, 297, 2761, 2588, 29901, 13, 4706, 2186, 4809, 2588, 353, 2186, 4809, 2588, 718, 1347, 718, 11297, 29876, 29915, 13, 4706, 2302, 353, 2302, 718, 29871, 29896, 13, 1678, 396, 2158, 29898, 8394, 4809, 2588, 29897, 13, 13, 1678, 396, 17743, 457, 278, 3454, 310, 278, 3935, 1243, 848, 964, 697, 1472, 1347, 29871, 13, 1678, 2302, 353, 29871, 29900, 13, 1678, 363, 1347, 297, 995, 7976, 2588, 29901, 13, 4706, 2186, 1917, 7976, 2588, 353, 2186, 1917, 7976, 2588, 718, 1347, 718, 11297, 29876, 29915, 13, 4706, 2302, 353, 2302, 718, 29871, 29896, 13, 1678, 396, 2158, 29898, 8394, 1917, 7976, 2588, 29897, 13, 13, 1678, 12428, 5620, 1231, 353, 12428, 5620, 1231, 29961, 29900, 13018, 29896, 29962, 13, 1678, 3440, 1231, 353, 3440, 1231, 29961, 29900, 13018, 29896, 29962, 13, 1678, 396, 2158, 29898, 7971, 5620, 1231, 29897, 13, 1678, 396, 2158, 29898, 9342, 1231, 29897, 13, 268, 13, 1678, 396, 7775, 4189, 2328, 29930, 14350, 4321, 315, 934, 334, 7775, 1068, 13, 13, 1678, 396, 7791, 4574, 4741, 24080, 402, 1430, 1001, 1299, 1955, 13, 1678, 396, 4478, 363, 278, 1820, 3838, 304, 5191, 411, 274, 775, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 7850, 2283, 2277, 742, 1243, 8259, 2283, 11730, 3782, 5647, 718, 11119, 1688, 4878, 29889, 29882, 1159, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 3782, 24376, 2277, 742, 851, 29898, 4537, 3057, 29907, 2129, 876, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 3782, 10444, 1849, 2277, 742, 851, 29898, 4537, 10444, 1849, 876, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 3782, 6069, 10661, 2277, 742, 851, 29898, 4537, 6069, 10661, 876, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 1170, 2277, 742, 1243, 8259, 2283, 11730, 3782, 5647, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 22131, 4301, 1231, 2277, 742, 10650, 4301, 1231, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 1123, 29939, 1231, 2277, 742, 12428, 5620, 1231, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 1917, 1542, 2277, 742, 2186, 9037, 19560, 1542, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 4809, 1542, 2277, 742, 2186, 18069, 19560, 1542, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 9065, 2277, 742, 2186, 1917, 2588, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 4809, 2277, 742, 2186, 4809, 2588, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 10650, 29918, 4993, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 9065, 7976, 2277, 742, 2186, 1917, 7976, 2588, 29897, 13, 13, 1678, 396, 5631, 1218, 1243, 3168, 607, 1712, 278, 3935, 1243, 3651, 29871, 13, 1678, 396, 26256, 5987, 740, 13, 1678, 10650, 29918, 4993, 2283, 353, 2181, 6733, 29889, 1707, 1988, 6733, 15462, 29898, 1610, 29918, 4993, 2283, 29892, 525, 2277, 3057, 8259, 29918, 855, 326, 5987, 29137, 2277, 742, 525, 2277, 9037, 1170, 2277, 742, 525, 2277, 25103, 2277, 742, 2286, 8659, 29897, 13, 1678, 396, 1222, 6021, 740, 13, 1678, 10650, 29918, 4993, 2283, 353, 2181, 6733, 29889, 1707, 1988, 6733, 15462, 29898, 1610, 29918, 4993, 2283, 29892, 525, 2277, 3057, 8259, 29918, 1252, 6021, 29137, 2277, 742, 525, 2277, 9037, 1170, 2277, 742, 525, 2277, 25103, 2277, 742, 2286, 8659, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 2181, 6733, 29889, 1707, 1988, 6733, 15462, 29898, 1610, 29918, 4993, 2283, 29892, 525, 2277, 3057, 8259, 29918, 1252, 6021, 29963, 29896, 2277, 742, 525, 2277, 9037, 1170, 2277, 742, 525, 2277, 25103, 2277, 742, 2286, 8659, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 2181, 6733, 29889, 1707, 1988, 6733, 15462, 29898, 1610, 29918, 4993, 2283, 29892, 525, 2277, 3057, 8259, 29918, 1252, 6021, 29963, 29906, 2277, 742, 525, 2277, 9037, 1170, 2277, 742, 525, 2277, 25103, 2277, 742, 2286, 8659, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 2181, 6733, 29889, 1707, 1988, 6733, 15462, 29898, 1610, 29918, 4993, 2283, 29892, 525, 2277, 3057, 8259, 29918, 1252, 6021, 29963, 29941, 2277, 742, 525, 2277, 9037, 1170, 2277, 742, 525, 2277, 25103, 2277, 742, 2286, 8659, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 2181, 6733, 29889, 1707, 1988, 6733, 15462, 29898, 1610, 29918, 4993, 2283, 29892, 525, 2277, 3057, 8259, 29918, 1252, 6021, 29963, 29946, 2277, 742, 525, 2277, 9037, 1170, 2277, 742, 525, 2277, 25103, 2277, 742, 2286, 8659, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 2181, 6733, 29889, 1707, 1988, 6733, 15462, 29898, 1610, 29918, 4993, 2283, 29892, 525, 2277, 3057, 8259, 29918, 1252, 6021, 29963, 29945, 2277, 742, 525, 2277, 9037, 1170, 2277, 742, 525, 2277, 25103, 2277, 742, 2286, 8659, 29897, 13, 1678, 396, 28736, 5399, 740, 13, 1678, 10650, 29918, 4993, 2283, 353, 2181, 6733, 29889, 1707, 2855, 1542, 1988, 6733, 15462, 29898, 1610, 29918, 4993, 2283, 29892, 525, 2277, 3057, 8259, 29918, 9037, 5596, 29137, 29896, 2277, 742, 525, 2277, 9037, 1170, 2277, 742, 525, 2277, 9037, 1542, 2277, 742, 525, 2277, 25103, 2277, 742, 2286, 8659, 29892, 2286, 10562, 29897, 13, 1678, 10650, 29918, 4993, 2283, 353, 2181, 6733, 29889, 1707, 2855, 1542, 1988, 6733, 15462, 29898, 1610, 29918, 4993, 2283, 29892, 525, 2277, 3057, 8259, 29918, 9037, 5596, 29137, 29906, 2277, 742, 525, 2277, 9037, 1170, 2277, 742, 525, 2277, 9037, 1542, 2277, 742, 525, 2277, 25103, 2277, 742, 2286, 8659, 29892, 2286, 10562, 29897, 13, 13, 1678, 396, 17714, 3035, 1001, 24080, 402, 1430, 1001, 1299, 1955, 13, 1678, 396, 4478, 363, 278, 1820, 3838, 304, 5191, 411, 274, 775, 13, 1678, 10650, 29918, 6672, 2283, 353, 10650, 29918, 6672, 2283, 29889, 6506, 877, 2277, 3057, 8259, 29918, 1170, 2277, 742, 851, 29889, 21064, 29898, 1688, 8259, 2283, 11730, 3782, 5647, 876, 13, 13, 1678, 736, 10650, 29918, 4993, 2283, 29892, 10650, 29918, 6672, 2283, 29892, 12428, 5620, 1231, 13, 13, 2 ]
mctl/favicons.py
jgeboski/mctl
4
152808
<filename>mctl/favicons.py # Copyright 2012-2020 <NAME> <<EMAIL>> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # Image origin: http://en.wikipedia.org/wiki/File:DIN_4844-2_Warnung_vor_einer_Gefahrenstelle_D-W000.svg CAUTION_BASE64 = ( "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAABhWlDQ1BJQ0MgcHJvZmlsZQAA" "<KEY>" "zro6uAqC4A+Ik6OToouUeF9SaBHjhcf7OO+ew3v3AUKzylQzMAGommWkE3Exl18Vg68IQIAP" "g4hIzNSTmcUsPOvrnjqp7mI8y7vvz+pXCiYDfCLxHNMNi3iDeGbT0jnvE4dZWVKIz4nHDbog" "8SPXZZffOJccFnhm2Mim54nDxGKpi+UuZmVDJZ4mjiqqRvlCzmWF8xZntVpn7XvyF4YK2kqG" "67QiSGAJSaQgQkYdFVRhIUa7RoqJNJ3HPfwjjj9FLplcFTByLKAGFZLjB/+D37M1i1OTblIo" "DvS82PbHKBDcBVoN2/4+tu3WCeB/Bq60jr/WBGY/SW90tOgRMLANXFx3NHkPuNwBhp90yZAc" "yU9LKBaB9zP6pjwwdAv0rblza5/j9AHI0qyWb4CDQ2CsRNnrHu/u7Z7bvz3t+f0ADmVyf6Xa" "xBUAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAADdcAAA3XAUIom3gAAAkhSURBVHja7Zp7" "<KEY>" "<KEY>" "<KEY>" "<KEY>" "<KEY>fHygL5ge6ecKhQzSLMGHQEdDUxDeJiSpQs1mRX8+Hy28XwmWY" "RXHp4+OR69c5NNis/9S777qv+Q05FqlzWKXOYZXXN1jc2t55BxEhdbCAD6iq4reICBXg6NFa" "sVVFuAiotkXImDE6V3twMFJeTokIhsFAwOr0dHfr79oV5ALfVj7/PNitz5IliAgrb3bwI86c" "waHXq8BmztR7gG8rf3pY7+qn0yGFhdS<KEY>lBTcQB07FtopAT+eCBU/P7V/cjIiwt9v" "VvBJBw7Q0t6tFy0ydgq+rSxebHRbCl9+SYsIM2428JqGBo6OHasCCQrSyH/LwrsloPz3CAkP" "<KEY>" "<KEY>" "<KEY>" "<KEY>" "<KEY>" "oIHX1dRQNHKkOtHISK1UXInwADR5sl+nBEye7OfRv/JqhNxxh9bVZ8QIxG6nWAT9QNoEX8rP" "J76kRFXkrD<KEY>dNc06b5d7ip" "1TmsMmVK5x6QmOjX4TOOWqvcd5+/q19AAHL+PDUiWAeCB6x79VWCamvVIyz/DfUI+3/p6jLU" "WZuiOI9FTWtzXR1kZGAE1v2hBIgQV1DAizt3qrp58wJJTPTr9JmQLgjoqu3uu/145plAV/3T" "T+Gbb1ggwtQ/jIDmZrYsWYJWWpeu2aywZrW5y2eCQzRetQGsW2tmmEV1rSVL0DQ18ZaI9zda" "TR+sn/bhh8w6elTVvbrCRERE10MGe+kBAKGhGlasUAn+8Uf44APuBZ66oQSI4F9dzRvZ2apu" "<KEY>" "<KEY>" "Uu9BW7bA6dMsF2HkjfCA3PR0TA0NzopO54z2eiohXhyDHUlengW/1sOmsRGWLsUA5PUrASIk" "HDzIs3v2qLoXnjcyPr7nsa7Vqu30jhAe3vPpxMbqeOF5ddl/9RXs28fc3n5mV3oBXmls5N8J" "CUwvKnLqgoI0FP0c2ivLiUCEtRy7vcU9E2RWuHQpwnXZ6YnYbC2Mn3CFq1edY8XEQFERhXo9" "CYpCs6894Olt21TwAKtWmXsFvu1W19FaDw7R9go8wPDhGl57Td0Qz52D7duZCPzFpx4gQkBF" "BWdiYxlx9ap3aa72Mn1GBT/80OimS0jw4z+<KEY>WFPze25hTh1ClskZFEKwqVvvKA" "jOxsFbw3aa72EhXl+SNIZKR3P4dotfDmm2rsYbfD2rUM72n6TNMD699eVMSy999XdampBmbN" "<KEY>4WJ3X4yUl+ZOaqh7D770Hx47xsgjxvvCA/PR0DE1Nzoper7B+nblPEdi99/p3" "<KEY>" "<KEY>" "<KEY>" "<KEY>" "<KEY>" "<KEY>" "<KEY>" "YnOngdL54jCfvOfy5RYmTrxMtd25yUyaBEePUqDVMr31Vz1PDxAh+eOPVfAAK5abfAbemdDw" "rq23EhamYdkyk6t+4gR89BFJwNwOl4AIOpuNtzMz1cZRo7QsWmTElzJ7tsGrNm9k8WKjW/os" "IwOqqtjcPn3W3gMW5eYS55bmyrVgMPj2zM/KNBM3zvPaGzdOR3aW2afv8vdXyMlxT5/l5hIJ" "<KEY> "<KEY>" "<KEY>" "lPJy6sPDffOt/WaTS5eoRYS9aWm3ngekpiIifKaIEAr89eJFZjsc1N0Klg8IgKgojgDPMiRD" "MiS3tPwPyDEn525xOZcAAAAASUVORK5CYII=" )
[ 1, 529, 9507, 29958, 29885, 16948, 29914, 29888, 485, 27078, 29889, 2272, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29906, 29899, 29906, 29900, 29906, 29900, 529, 5813, 29958, 3532, 26862, 6227, 6778, 13, 29937, 13, 29937, 20894, 2333, 338, 1244, 1609, 16896, 29892, 3889, 310, 8323, 29892, 304, 738, 2022, 4017, 292, 263, 3509, 13, 29937, 310, 445, 7047, 322, 6942, 5106, 2066, 313, 1552, 376, 6295, 14093, 4968, 304, 5376, 13, 29937, 297, 278, 18540, 1728, 24345, 29892, 3704, 1728, 29485, 278, 10462, 13, 29937, 304, 671, 29892, 3509, 29892, 6623, 29892, 10366, 29892, 9805, 29892, 1320, 2666, 29892, 269, 803, 1947, 29892, 322, 29914, 272, 19417, 13, 29937, 14591, 310, 278, 18540, 29892, 322, 304, 14257, 12407, 304, 6029, 278, 18540, 338, 13, 29937, 15252, 3276, 304, 437, 577, 29892, 4967, 304, 278, 1494, 5855, 29901, 13, 29937, 13, 29937, 450, 2038, 3509, 1266, 8369, 322, 445, 10751, 8369, 4091, 367, 5134, 297, 13, 29937, 599, 14591, 470, 23228, 2011, 1080, 310, 278, 18540, 29889, 13, 13, 29937, 7084, 3978, 29901, 1732, 597, 264, 29889, 6011, 29889, 990, 29914, 4594, 29914, 2283, 29901, 29928, 1177, 29918, 29946, 29947, 29946, 29946, 29899, 29906, 29918, 29956, 2753, 686, 29918, 5267, 29918, 29872, 4983, 29918, 29954, 1389, 21446, 28446, 29918, 29928, 29899, 29956, 29900, 29900, 29900, 29889, 15120, 13, 13, 5454, 2692, 2725, 29918, 25416, 29953, 29946, 353, 313, 13, 1678, 376, 29875, 24281, 1955, 29893, 29900, 29968, 29954, 1484, 6344, 29909, 2190, 14605, 29882, 29923, 29965, 29887, 6344, 16036, 6344, 29909, 2882, 2477, 29909, 29979, 6344, 2477, 25621, 29990, 3868, 6344, 2882, 29882, 29956, 29880, 29928, 29984, 29896, 29933, 29967, 29984, 29900, 29924, 27354, 29950, 29967, 29894, 29999, 828, 29879, 29999, 29984, 6344, 29908, 13, 1678, 9872, 10818, 11903, 13, 1678, 376, 29920, 307, 29953, 29884, 29909, 29939, 29907, 29946, 29909, 29974, 29902, 29895, 29953, 29949, 1762, 283, 29965, 29872, 29943, 29929, 17618, 29933, 29950, 29926, 29882, 6854, 29955, 29949, 29949, 29974, 809, 29941, 29894, 29941, 29909, 19960, 1537, 29880, 29984, 29920, 1529, 29954, 3011, 29956, 29895, 29923, 29941, 1252, 29880, 29896, 29947, 29963, 29887, 29953, 29947, 29902, 29984, 29902, 3301, 29908, 13, 1678, 376, 29887, 29946, 29882, 29902, 29920, 29940, 1254, 14047, 15922, 13152, 13416, 29876, 28695, 29886, 29955, 29885, 29902, 29947, 29891, 29955, 29894, 29894, 29920, 29974, 29886, 29990, 29907, 29875, 29979, 29928, 29888, 6154, 29916, 29950, 29940, 29924, 29940, 29875, 29941, 29875, 2772, 29954, 29890, 29911, 29900, 29926, 29876, 29894, 29923, 29946, 29881, 29999, 29956, 29963, 29968, 29902, 29920, 29946, 29876, 29950, 10234, 468, 29908, 13, 1678, 376, 29947, 5550, 29990, 29999, 29999, 600, 29949, 29967, 617, 29137, 7184, 29906, 29924, 326, 29945, 29946, 29876, 29928, 29916, 29954, 29968, 1631, 29974, 29965, 29884, 29999, 29885, 10699, 29967, 29999, 29946, 29885, 2397, 24349, 29934, 20901, 29907, 14018, 29686, 29947, 29916, 29999, 593, 29963, 21257, 29955, 29990, 13308, 29943, 29946, 29979, 29968, 29906, 29895, 29939, 29954, 29908, 13, 1678, 376, 29953, 29955, 29984, 29875, 29903, 12739, 8700, 29874, 29984, 29887, 29984, 29895, 29979, 29881, 29943, 29963, 29934, 29882, 29902, 29965, 29874, 29955, 9588, 29939, 29967, 29940, 29967, 29941, 3954, 25051, 29926, 29926, 29926, 29929, 10536, 572, 29883, 7818, 2059, 29931, 29968, 10051, 29943, 29999, 29931, 29926, 29933, 29914, 29974, 29928, 29941, 29955, 29924, 29896, 29875, 29896, 2891, 2204, 29902, 29877, 29908, 13, 1678, 376, 29928, 29894, 29903, 29947, 29906, 29925, 29890, 29950, 26067, 29928, 29883, 29933, 29963, 29877, 29940, 29906, 29914, 29946, 29974, 9161, 29941, 29956, 29907, 29872, 29933, 29914, 29933, 29939, 29953, 29900, 29926, 29878, 29914, 29956, 29933, 29954, 29979, 29914, 23066, 29929, 29900, 29873, 29949, 29887, 29934, 1988, 2190, 29990, 29943, 29916, 29941, 29940, 29950, 29895, 29925, 29884, 29940, 29893, 29933, 28887, 29929, 29900, 29891, 29999, 10644, 29908, 13, 1678, 376, 29891, 29965, 29929, 29931, 26067, 29874, 29933, 29929, 29920, 29925, 29953, 29886, 29926, 1615, 29881, 12810, 29900, 29878, 2204, 1362, 29945, 29914, 29926, 29929, 29909, 17628, 29900, 29939, 29891, 29956, 29890, 29946, 6530, 29984, 29906, 29907, 29879, 29934, 29940, 22230, 29950, 29884, 29914, 29884, 29955, 29999, 29955, 29890, 29894, 29920, 29941, 29873, 29974, 29888, 29900, 3035, 29885, 29963, 29891, 29888, 29953, 29990, 29874, 29908, 13, 1678, 376, 29916, 7838, 23184, 29954, 29979, 1193, 20938, 3035, 29914, 3301, 29947, 29909, 29914, 29953, 29907, 29929, 29886, 29945, 1529, 6344, 29909, 29967, 29883, 29923, 29882, 29999, 29883, 29893, 29909, 3035, 13891, 6344, 29909, 29941, 29990, 29909, 3120, 290, 29941, 29887, 6344, 29909, 15339, 29903, 4574, 29933, 29963, 29950, 1764, 29955, 29999, 29886, 29955, 29908, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 29958, 29888, 29950, 4790, 29931, 29945, 479, 29953, 687, 29968, 29882, 29984, 29920, 12750, 29924, 29954, 29950, 29984, 3853, 14849, 29916, 2772, 29967, 29875, 5592, 29984, 29879, 29896, 29885, 29934, 29990, 29947, 29974, 26322, 29906, 29947, 29990, 29893, 29885, 29956, 29979, 29908, 13, 1678, 376, 29934, 29990, 29950, 29886, 29946, 29974, 1955, 29953, 29929, 29883, 29945, 10262, 275, 29914, 29929, 29903, 29955, 29955, 29955, 29939, 29894, 29974, 29984, 29900, 29945, 29943, 1519, 29920, 29956, 29968, 29990, 29949, 29979, 29999, 6247, 29940, 29896, 29926, 29883, 29906, 29873, 29945, 29945, 29933, 29916, 29923, 29882, 2585, 29907, 3035, 29953, 29875, 29939, 29946, 276, 2965, 29933, 29990, 29887, 29953, 29940, 14206, 29908, 13, 1678, 376, 29879, 29963, 24460, 29884, 29909, 24414, 29895, 29990, 1888, 2287, 29953, 29963, 29941, 7516, 29924, 29943, 13836, 29911, 554, 29902, 9499, 4519, 29893, 2816, 29900, 29881, 29950, 1341, 29955, 29929, 29877, 29963, 29945, 1964, 29888, 29963, 29926, 29955, 29914, 15695, 2784, 29945, 29902, 492, 29909, 629, 29890, 29941, 29890, 29893, 29902, 29947, 29953, 29883, 29908, 13, 1678, 376, 2766, 29950, 29990, 29939, 29947, 29933, 29885, 2065, 29934, 29955, 29887, 29954, 29947, 9600, 29941, 29886, 29979, 29955, 29974, 29939, 29876, 29900, 29891, 29954, 29943, 16440, 29903, 29966, 10818, 29958, 29880, 29933, 29911, 29883, 29984, 29933, 29900, 29955, 29943, 3332, 1299, 29974, 29872, 29907, 7838, 29914, 29925, 29955, 29963, 29914, 29883, 29926, 29902, 9429, 29873, 29929, 29894, 29908, 13, 1678, 376, 29963, 29894, 29933, 29674, 29893, 29955, 29984, 29900, 29873, 29953, 29873, 29943, 29891, 29900, 2941, 29887, 29939, 29974, 29878, 29903, 29916, 774, 20938, 29890, 6821, 29929, 29974, 14816, 29879, 7833, 29906, 29946, 29906, 29947, 29967, 29939, 7210, 29877, 29953, 29949, 14510, 4174, 29984, 29878, 29903, 29891, 29950, 29914, 29931, 29893, 2288, 417, 29925, 29920, 29941, 5454, 29895, 29925, 29908, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 376, 29877, 29902, 29950, 29990, 29896, 29881, 29934, 29984, 29940, 29950, 29968, 29895, 29949, 29873, 29950, 3235, 29968, 29896, 29965, 29990, 797, 29893, 3035, 29934, 29945, 2536, 29974, 29876, 15349, 4099, 29955, 2776, 29934, 29894, 29914, 29967, 29939, 29882, 29940, 4419, 29882, 29929, 29890, 29963, 29999, 29947, 29984, 29902, 29916, 29954, 29953, 29876, 29956, 1299, 29929, 29984, 3782, 5746, 29947, 29878, 29925, 29908, 13, 1678, 376, 29967, 29955, 29953, 29895, 29934, 26753, 12748, 29928, 29966, 10818, 29958, 29881, 29940, 29883, 29900, 29953, 29890, 29945, 29881, 29955, 666, 29908, 13, 1678, 376, 29896, 29911, 1516, 29924, 29885, 29963, 29968, 29945, 29916, 29953, 29984, 29885, 29949, 29926, 29990, 29946, 4986, 9806, 29939, 29894, 2252, 29945, 29974, 29914, 29939, 29896, 29929, 6344, 15444, 29974, 29925, 14849, 29875, 12982, 29872, 21685, 29953, 29916, 29955, 29929, 29963, 29956, 14353, 29894, 18118, 12339, 29914, 29928, 29888, 3120, 29974, 29941, 29914, 29886, 29953, 29926, 29931, 29965, 29908, 13, 1678, 376, 29956, 29999, 1481, 29949, 29902, 29929, 7818, 29956, 17559, 29990, 29934, 29896, 29895, 29999, 12739, 29923, 29896, 29894, 29906, 29882, 12809, 29887, 29984, 29963, 29896, 7698, 466, 29873, 29941, 29939, 19080, 29945, 29947, 29893, 29967, 29967, 3557, 2308, 29929, 29967, 29885, 2239, 29887, 2212, 339, 29941, 29884, 29884, 29914, 29896, 29946, 29945, 572, 7520, 29914, 29941, 29911, 29908, 13, 1678, 376, 29911, 29974, 29954, 1327, 29896, 1505, 14554, 29984, 29914, 29926, 1367, 29885, 29999, 29878, 29979, 29879, 29956, 29979, 29967, 29956, 29956, 412, 29884, 29906, 388, 29893, 29999, 29878, 29956, 29945, 29891, 29906, 29872, 29907, 29984, 29920, 8015, 29984, 29954, 29879, 29956, 29906, 29873, 4317, 22240, 29896, 29878, 7597, 29931, 29900, 29928, 29984, 29896, 29947, 29999, 29874, 29902, 29929, 29920, 1388, 29908, 13, 1678, 376, 5659, 29974, 16586, 29914, 29890, 25446, 29947, 29893, 29953, 295, 8050, 29894, 1182, 11341, 27267, 29896, 29900, 29924, 7999, 29974, 29895, 5688, 29968, 29954, 29882, 29954, 3333, 29965, 2744, 29974, 29947, 29965, 29888, 29946, 29946, 3301, 29884, 29933, 29999, 29953, 29953, 29877, 29984, 5425, 29946, 29943, 29929, 5601, 29934, 29894, 29999, 29906, 481, 29884, 29908, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 376, 29965, 29884, 29929, 29933, 29956, 29955, 29890, 29909, 29953, 29881, 29924, 29879, 29943, 29906, 29950, 29895, 29926, 29888, 5454, 29941, 10593, 29900, 6040, 29900, 29940, 29920, 459, 29949, 29945, 29946, 29920, 29906, 29872, 601, 29882, 29990, 5819, 29928, 29950, 29965, 29880, 996, 29956, 29914, 29896, 29879, 29949, 1516, 29934, 29954, 29956, 29931, 29879, 29965, 29909, 29945, 7056, 29878, 3289, 29902, 29895, 29908, 13, 1678, 376, 26124, 29920, 3624, 29941, 29894, 29906, 29939, 3410, 29990, 29876, 29926, 1270, 4040, 29955, 1983, 29874, 29955, 29963, 339, 29941, 29900, 29926, 29882, 29909, 29872, 29941, 29894, 29925, 1756, 29924, 29890, 29939, 29872, 9800, 29945, 1289, 29880, 29914, 29929, 29934, 29990, 29879, 29906, 29947, 13801, 29941, 29876, 29945, 29885, 29963, 29941, 29877, 29933, 11089, 29879, 29945, 29940, 29947, 29967, 29908, 13, 1678, 376, 29907, 29965, 29893, 29894, 29968, 29876, 29931, 29939, 1484, 29902, 29900, 26353, 29900, 29883, 29906, 440, 23410, 29965, 4741, 29873, 29934, 29891, 29955, 7071, 29965, 29929, 29923, 29906, 29934, 29956, 29884, 29950, 29984, 29886, 1233, 29990, 29999, 29953, 29979, 29876, 29979, 29890, 29907, 29906, 29924, 29876, 29941, 9207, 29939, 29896, 287, 29979, 29947, 29990, 28879, 29943, 1001, 29882, 29990, 29877, 29929, 29908, 13, 1678, 376, 29907, 29979, 29886, 29907, 29879, 29953, 29947, 29929, 29946, 29949, 1896, 29906, 29896, 27418, 22311, 29873, 29956, 29885, 29990, 29879, 29943, 24845, 29896, 29956, 29896, 29929, 14206, 29928, 29893, 29955, 29934, 29929, 1484, 29947, 29893, 25014, 29882, 29954, 29880, 29945, 29955, 29911, 29881, 29900, 29984, 29920, 29945, 29906, 29928, 29955, 700, 29999, 6271, 29920, 29943, 1756, 29946, 29887, 29984, 29895, 28062, 29908, 13, 1678, 376, 29933, 29956, 6051, 29979, 15524, 29916, 29929, 481, 29941, 7340, 29955, 29906, 29924, 29876, 29896, 7210, 29911, 29914, 29947, 29900, 29949, 326, 29903, 29900, 29926, 29893, 29946, 29920, 29974, 29966, 10818, 29958, 29956, 26353, 911, 29906, 29945, 29882, 1349, 29896, 6821, 808, 29999, 16359, 29968, 29893, 29939, 29963, 29894, 29894, 29968, 29909, 29908, 13, 1678, 376, 29926, 29949, 10351, 29943, 29890, 29893, 29941, 7340, 29955, 29906, 29923, 29882, 29990, 29880, 29974, 29903, 12916, 29999, 29968, 29934, 29941, 29925, 29946, 6333, 29888, 29928, 4317, 29906, 2288, 29979, 1635, 29928, 29906, 29878, 5005, 29955, 29906, 29876, 29953, 29911, 29940, 5773, 29953, 29929, 29929, 29872, 29963, 4345, 29891, 29929, 29929, 29929, 29990, 29881, 1160, 29933, 8337, 29940, 29908, 13, 1678, 9872, 10818, 29958, 29946, 29956, 29967, 29941, 29990, 29946, 29891, 29965, 29880, 29974, 29999, 29949, 29874, 29939, 29882, 29955, 29928, 29955, 29955, 29900, 29950, 29916, 29946, 29955, 29916, 5311, 29926, 29916, 29894, 29894, 5454, 29914, 10593, 29900, 2287, 29896, 29940, 29920, 3372, 29955, 29933, 29974, 29876, 2204, 29925, 3853, 29875, 29929, 29929, 29914, 29886, 29941, 29908, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 376, 29979, 29876, 29949, 865, 29881, 29931, 29945, 29946, 29926, 29907, 29888, 29894, 2776, 29891, 29945, 13207, 29885, 2308, 29916, 29924, 1594, 29906, 29945, 29891, 29965, 3761, 15349, 29872, 7056, 29939, 29928, 9219, 29878, 29941, 29896, 29963, 29920, 29896, 25014, 29916, 17565, 29974, 29872, 4590, 29963, 29888, 6344, 29968, 29945, 370, 29888, 4920, 331, 29881, 29928, 29893, 29908, 13, 1678, 376, 29878, 29939, 29906, 29941, 29923, 3391, 29979, 29881, 3459, 29895, 29953, 29873, 29974, 29946, 29887, 29934, 29947, 29929, 28062, 29967, 29893, 29940, 29893, 29949, 29880, 29946, 29909, 5971, 3746, 29940, 17559, 29924, 29920, 29896, 29883, 29999, 9588, 29955, 29984, 29879, 29956, 29885, 4330, 29880, 29920, 29967, 29955, 1372, 3338, 29940, 29885, 29929, 29895, 29947, 29956, 29968, 29926, 29956, 29914, 359, 29908, 13, 1678, 376, 29902, 29893, 29949, 29939, 17915, 29926, 29883, 29925, 29876, 29941, 29956, 29941, 29887, 25365, 29945, 29872, 21554, 29945, 29945, 29890, 1357, 29878, 29963, 29887, 3580, 29926, 29906, 29920, 29924, 29914, 29968, 23189, 29924, 29941, 29920, 29894, 11868, 29954, 8849, 1955, 29941, 29874, 29956, 29906, 2142, 29894, 29947, 27491, 29990, 29891, 29924, 29880, 29916, 29911, 29945, 29914, 29880, 29945, 29882, 29902, 29967, 29908, 13, 1678, 9872, 10818, 29958, 13, 1678, 9872, 10818, 11903, 13, 1678, 9872, 10818, 11903, 13, 1678, 376, 29880, 29925, 29967, 29891, 29953, 29879, 25014, 600, 29949, 29873, 29914, 29956, 29874, 9375, 29945, 29872, 29877, 13207, 29903, 29929, 29874, 29956, 29885, 29941, 29876, 479, 29895, 1631, 29902, 361, 29968, 29874, 8673, 1433, 29947, 29929, 29872, 29967, 29943, 29999, 1315, 29883, 29896, 29940, 29900, 29968, 19920, 29947, 28600, 29968, 1484, 29926, 29887, 11191, 29924, 29875, 29934, 29928, 29908, 13, 1678, 376, 29924, 29875, 29903, 29941, 29873, 29925, 29893, 19737, 2287, 29876, 29945, 29906, 29945, 29916, 29949, 29999, 29883, 23184, 3289, 29965, 29963, 1955, 29968, 29945, 29907, 29979, 2687, 543, 13, 29897, 13, 2 ]
coder_directory_api/auth/__init__.py
seekheart/coder_directory_api
3
101423
<reponame>seekheart/coder_directory_api<filename>coder_directory_api/auth/__init__.py<gh_stars>1-10 """ Authorization Package Copyright (c) 2017 by <NAME>. MIT License, see LICENSE for details """ __all__ = ['check_token', 'token_required', 'make_token', 'refresh_token'] from .jwt_authorization import *
[ 1, 529, 276, 1112, 420, 29958, 344, 1416, 23057, 29914, 29883, 6119, 29918, 12322, 29918, 2754, 29966, 9507, 29958, 29883, 6119, 29918, 12322, 29918, 2754, 29914, 5150, 29914, 1649, 2344, 26914, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 13, 25471, 22029, 13, 13, 11882, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29955, 491, 529, 5813, 15513, 13, 26349, 19245, 29892, 1074, 365, 2965, 1430, 1660, 363, 4902, 13, 15945, 29908, 13, 13, 1649, 497, 1649, 353, 6024, 3198, 29918, 6979, 742, 525, 6979, 29918, 12403, 742, 525, 5675, 29918, 6979, 742, 525, 22379, 29918, 6979, 2033, 13, 3166, 869, 29926, 14554, 29918, 8921, 2133, 1053, 334, 13, 2 ]
gpdist/tanh_saturate.py
saalfeldlab/gunpowder-distances
0
29932
import logging import numpy as np from gunpowder.nodes.batch_filter import BatchFilter logger = logging.getLogger(__name__) class TanhSaturate(BatchFilter): '''Saturate the values of an array to be floats between -1 and 1 by applying the tanh function. Args: array (:class:`ArrayKey`): The key of the array to modify. factor (scalar, optional): The factor to divide by before applying the tanh, controls how quickly the values saturate to -1, 1. ''' def __init__(self, array, scale=None): self.array = array if scale is not None: self.scale = scale else: self.scale = 1. def process(self, batch, request): if self.array not in batch.arrays: return array = batch.arrays[self.array] array.data = np.tanh(array.data/self.scale)
[ 1, 1053, 12183, 13, 5215, 12655, 408, 7442, 13, 13, 3166, 13736, 12248, 672, 29889, 18010, 29889, 16175, 29918, 4572, 1053, 350, 905, 5072, 13, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 13, 1990, 15066, 29882, 29903, 1337, 403, 29898, 23145, 5072, 1125, 13, 1678, 14550, 29903, 1337, 403, 278, 1819, 310, 385, 1409, 304, 367, 5685, 1446, 1546, 448, 29896, 322, 29871, 29896, 491, 15399, 278, 10345, 29882, 740, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 13, 4706, 1409, 13940, 1990, 18078, 2588, 2558, 29952, 1125, 13, 13, 9651, 450, 1820, 310, 278, 1409, 304, 6623, 29889, 13, 13, 4706, 7329, 313, 19529, 279, 29892, 13136, 1125, 13, 13, 9651, 450, 7329, 304, 16429, 491, 1434, 15399, 278, 10345, 29882, 29892, 11761, 920, 9098, 278, 1819, 269, 1337, 403, 304, 448, 29896, 29892, 29871, 29896, 29889, 13, 1678, 14550, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1409, 29892, 6287, 29922, 8516, 1125, 13, 13, 4706, 1583, 29889, 2378, 353, 1409, 13, 4706, 565, 6287, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 7052, 353, 6287, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 7052, 353, 29871, 29896, 29889, 13, 13, 1678, 822, 1889, 29898, 1311, 29892, 9853, 29892, 2009, 1125, 13, 13, 4706, 565, 1583, 29889, 2378, 451, 297, 9853, 29889, 2378, 29879, 29901, 13, 9651, 736, 13, 13, 4706, 1409, 353, 9853, 29889, 2378, 29879, 29961, 1311, 29889, 2378, 29962, 13, 13, 4706, 1409, 29889, 1272, 353, 7442, 29889, 13161, 29882, 29898, 2378, 29889, 1272, 29914, 1311, 29889, 7052, 29897, 13, 2 ]
create_alert.py
miwiwa/sample-miwalker-no-git-issues
0
126771
<gh_stars>0 #!/usr/bin/env python # Program submits PagerDuty incidents or Git issues upon request import pip package = 'requests' pip.main(['install', package]) import requests import json import argparse from os import environ import subprocess import re import collections import sys # Read in argument(s) description = 'Specify creation of incident/issue in Pagerduty and Git Issues' parser = argparse.ArgumentParser( description=__doc__) parser.add_argument('-a','--ALERTS', nargs='+', type=str.lower, dest='ALERTS', help="Enter 'PagerDuty' and/or 'Git' to open incident/issue", required=True) args = parser.parse_args() alerts = args.ALERTS # Import Pipeline environment variables print(str(environ.get('IDS_JOB_NAME'))) ids_job_name = environ.get('IDS_JOB_NAME') ids_job_id = environ.get('IDS_JOB_ID') ids_stage_name = str(environ.get('IDS_STAGE_NAME')) print("ids_stage_name:", ids_stage_name) ids_project_name = environ.get('IDS_PROJECT_NAME') ids_url = environ.get('IDS_URL') git_url = environ.get('GIT_URL') task_id = environ.get('TASK_ID') archive_dir = environ.get('ARCHIVE_DIR') pipeline_id = environ.get('PIPELINE_ID') pipeline_stage_id = environ.get('PIPELINE_STAGE_ID') pipeline_stage_name = environ.get('PIPELINE_STAGE_NAME') pipeline_stage_input_job_id = environ.get('PIPELINE_STAGE_INPUT_JOB_ID') pipeline_initial_stage_execution_id = environ.get('PIPELINE_INITIAL_STAGE_EXECUTION_ID') workspace = environ.get('WORKSPACE') github_token = environ.get('github_accessToken') # Load toolchain json to dict for parsing toolchain_json = "%s/_toolchain.json" % workspace with open(toolchain_json) as f: data = json.load(f) ids_region_id = data['region_id'] instance_id = [i['instance_id'] for i in data["services"] if 'pipeline' in i['broker_id']] ids_instance_id = instance_id[0] pipeline_base_url = "https://console.bluemix.net/devops/pipelines/" pipeline_full_url = pipeline_base_url + pipeline_id + "/" + pipeline_stage_id + "/" + ids_job_id + "?env_id=" + ids_region_id print("pipeline_full_url:", pipeline_full_url) def trigger_incident(): # Function creates request to create new PagerDuty incident and submits # Parse dict for PagerDuty parameters try: pd_service_id = [i['parameters']['service_id'] for i in data["services"] if 'pagerduty' in i['broker_id']] pd_api_key = [i['parameters']['api_key'] for i in data["services"] if 'pagerduty' in i['broker_id']] pd_user_email = [i['parameters']['user_email'] for i in data["services"] if 'pagerduty' in i['broker_id']] api_key = pd_api_key[0] service_id = pd_service_id[0] user_email = pd_user_email[0] except (KeyError, IndexError): print("ERROR: Pager Duty is not configured correctly with the toolchain") return 1 # Develop request to create incident through API url = 'https://api.pagerduty.com/incidents' headers = { 'Content-Type': 'application/json', 'Accept': 'application/vnd.pagerduty+json;version=2', 'Authorization': 'Token token={token}'.format(token=api_key), 'From': user_email } payload = { "incident": { "type": "incident", "title": "Job: " + ids_job_name + " in Stage: " + ids_stage_name + " and Project: " + ids_project_name + " failed" , "service": { "id": service_id, "type": "service_reference" }, "body": { "type": "incident_body", "details": pipeline_full_url } } } # Send request to PagerDuty r = requests.post(url, headers=headers, data=json.dumps(payload)) code=r.status_code # Check if request was successful. If not successful then fail the job if code != 201: print("ERROR: PagerDuty incident request did not complete successfully") exit() else: print("PagerDuty incident request created successfully") def trigger_issue(title, body=None): # Function creates request to create Git Issue and submits git_repo_owner = environ.get('GIT_REPO_OWNER') git_repo_name = environ.get('GIT_REPO_NAME') git_issue_label = environ.get('GIT_ISSUE_LABEL') print("git_repo_owner:", git_repo_owner) print("git_repo_name:", git_repo_name) #api_base_url = "https://api.github.ibm.com/" api_base_url = "https://api.github.com/" if git_repo_owner is not None and git_repo_name is not None: print("Values already given") print("git_repo_owner:", git_repo_owner) print("git_repo_name:", git_repo_name) elif git_url is not None: print("Parsing git_url") git_repo_name = re.search(r'(.*)/(.*)', git_url).group(2).split('.')[0] git_repo_owner = re.search(r'(.*)/(.*)', git_url).group(1).split('/')[3] print("git_repo_owner:", git_repo_owner) print("git_repo_name:", git_repo_name) else: try: repo_owner = [i['parameters']['owner_id'] for i in data["services"] if 'git' in i['broker_id']] repo_name = [i['parameters']['repo_name'] for i in data["services"] if 'git' in i['broker_id']] except (KeyError, IndexError): print("ERROR: Git Issues is not configured correctly with the toolchain") return 1 if git_issue_label is None: git_issue_label = 'feature' headers = { "Content-Type": "application/json", "Authorization": "token " + github_token } issue = {'title': title, 'body': body, 'labels': git_issue_label} # Specifies URL for github api print("Specifying URL for base call") url = api_base_url + "repos/" + git_repo_owner + "/" + git_repo_name + "/issues" print("url", url) r = requests.post(url, headers=headers, data=json.dumps(issue)) if r.status_code != 201: print("status code:",r.status_code) print("status text:",r.text) print("status_content:",r.content) print ('ERROR: Could not create Git Issue {0:s}'.format(title)) exit() else: print ('Successfully created Git Issue {0:s}'.format(title)) if __name__ == '__main__': print("=============================") print("Creating alerts") if all(alert_type in alerts for alert_type in ('incident', 'issue')): trigger_incident() trigger_issue("Job: " + ids_job_name + " in Stage: " + ids_stage_name + " and Project: " + ids_project_name + " failed", pipeline_full_url) elif 'incident' in alerts: trigger_incident() elif 'issue' in alerts: trigger_issue("Job: " + ids_job_name + " in Stage: " + ids_stage_name + " failed", pipeline_full_url) else: print("Alert type was not specified in call")
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 7835, 11834, 1169, 349, 1875, 29928, 329, 29891, 5528, 16719, 470, 11786, 5626, 2501, 2009, 13, 13, 5215, 8450, 13, 5113, 353, 525, 24830, 29915, 13, 13096, 29889, 3396, 18959, 6252, 742, 3577, 2314, 13, 13, 5215, 7274, 13, 5215, 4390, 13, 5215, 1852, 5510, 13, 3166, 2897, 1053, 12471, 13, 5215, 1014, 5014, 13, 5215, 337, 13, 5215, 16250, 13, 5215, 10876, 13, 13, 29937, 7523, 297, 2980, 29898, 29879, 29897, 13, 8216, 353, 525, 10299, 1598, 11265, 310, 15134, 29914, 15118, 297, 349, 1875, 29881, 329, 29891, 322, 11786, 16982, 1041, 29915, 13, 1678, 13, 16680, 353, 1852, 5510, 29889, 15730, 11726, 29898, 268, 6139, 29922, 1649, 1514, 1649, 29897, 13, 16680, 29889, 1202, 29918, 23516, 877, 29899, 29874, 3788, 489, 1964, 1001, 9375, 742, 302, 5085, 2433, 29974, 742, 1134, 29922, 710, 29889, 13609, 29892, 2731, 2433, 1964, 1001, 9375, 742, 1371, 543, 10399, 525, 22166, 29928, 329, 29891, 29915, 322, 29914, 272, 525, 28712, 29915, 304, 1722, 15134, 29914, 15118, 613, 3734, 29922, 5574, 29897, 13, 13, 5085, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 12888, 29879, 353, 6389, 29889, 1964, 1001, 9375, 13, 13, 29937, 16032, 349, 23828, 5177, 3651, 29871, 13, 2158, 29898, 710, 29898, 21813, 29889, 657, 877, 1367, 29903, 29918, 29967, 14824, 29918, 5813, 29915, 4961, 13, 4841, 29918, 9057, 29918, 978, 353, 12471, 29889, 657, 877, 1367, 29903, 29918, 29967, 14824, 29918, 5813, 1495, 13, 4841, 29918, 9057, 29918, 333, 353, 12471, 29889, 657, 877, 1367, 29903, 29918, 29967, 14824, 29918, 1367, 1495, 13, 4841, 29918, 19190, 29918, 978, 353, 851, 29898, 21813, 29889, 657, 877, 1367, 29903, 29918, 1254, 10461, 29918, 5813, 8785, 13, 2158, 703, 4841, 29918, 19190, 29918, 978, 29901, 613, 18999, 29918, 19190, 29918, 978, 29897, 13, 4841, 29918, 4836, 29918, 978, 353, 12471, 29889, 657, 877, 1367, 29903, 29918, 8618, 17637, 29918, 5813, 1495, 13, 4841, 29918, 2271, 353, 12471, 29889, 657, 877, 1367, 29903, 29918, 4219, 1495, 13, 5559, 29918, 2271, 353, 12471, 29889, 657, 877, 29954, 1806, 29918, 4219, 1495, 13, 7662, 29918, 333, 353, 12471, 29889, 657, 877, 29911, 3289, 29968, 29918, 1367, 1495, 13, 10867, 29918, 3972, 353, 12471, 29889, 657, 877, 1718, 3210, 18474, 29918, 9464, 1495, 13, 13096, 5570, 29918, 333, 353, 12471, 29889, 657, 877, 2227, 4162, 18521, 29918, 1367, 1495, 13, 13096, 5570, 29918, 19190, 29918, 333, 353, 12471, 29889, 657, 877, 2227, 4162, 18521, 29918, 1254, 10461, 29918, 1367, 1495, 13, 13096, 5570, 29918, 19190, 29918, 978, 353, 12471, 29889, 657, 877, 2227, 4162, 18521, 29918, 1254, 10461, 29918, 5813, 1495, 13, 13096, 5570, 29918, 19190, 29918, 2080, 29918, 9057, 29918, 333, 353, 12471, 29889, 657, 877, 2227, 4162, 18521, 29918, 1254, 10461, 29918, 1177, 12336, 29918, 29967, 14824, 29918, 1367, 1495, 13, 13096, 5570, 29918, 11228, 29918, 19190, 29918, 22256, 29918, 333, 353, 12471, 29889, 657, 877, 2227, 4162, 18521, 29918, 26019, 25758, 29918, 1254, 10461, 29918, 5746, 11206, 2692, 2725, 29918, 1367, 1495, 13, 1287, 3493, 353, 12471, 29889, 657, 877, 11686, 29968, 5550, 11538, 1495, 13, 3292, 29918, 6979, 353, 12471, 29889, 657, 877, 3292, 29918, 5943, 6066, 1495, 13, 13, 13, 13, 29937, 16012, 5780, 14153, 4390, 304, 9657, 363, 13755, 13, 10154, 14153, 29918, 3126, 353, 11860, 29879, 19891, 10154, 14153, 29889, 3126, 29908, 1273, 664, 3493, 13, 13, 2541, 1722, 29898, 10154, 14153, 29918, 3126, 29897, 408, 285, 29901, 13, 1678, 848, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 13, 4841, 29918, 12803, 29918, 333, 353, 848, 1839, 12803, 29918, 333, 2033, 13, 13, 8758, 29918, 333, 353, 518, 29875, 1839, 8758, 29918, 333, 2033, 363, 474, 297, 848, 3366, 9916, 3108, 565, 525, 13096, 5570, 29915, 297, 474, 1839, 6729, 3946, 29918, 333, 2033, 29962, 13, 4841, 29918, 8758, 29918, 333, 353, 2777, 29918, 333, 29961, 29900, 29962, 13, 13, 13096, 5570, 29918, 3188, 29918, 2271, 353, 376, 991, 597, 11058, 29889, 2204, 29884, 331, 861, 29889, 1212, 29914, 3359, 3554, 29914, 13096, 24210, 12975, 29871, 13, 13096, 5570, 29918, 8159, 29918, 2271, 353, 16439, 29918, 3188, 29918, 2271, 718, 16439, 29918, 333, 718, 5591, 29908, 718, 16439, 29918, 19190, 29918, 333, 718, 29871, 5591, 29908, 718, 18999, 29918, 9057, 29918, 333, 718, 376, 29973, 6272, 29918, 333, 543, 718, 18999, 29918, 12803, 29918, 333, 13, 2158, 703, 13096, 5570, 29918, 8159, 29918, 2271, 29901, 613, 16439, 29918, 8159, 29918, 2271, 29897, 13, 13, 1753, 7135, 29918, 3742, 1693, 7295, 13, 12, 29937, 6680, 10017, 2009, 304, 1653, 716, 349, 1875, 29928, 329, 29891, 15134, 322, 11834, 1169, 13, 268, 13, 1678, 396, 20969, 9657, 363, 349, 1875, 29928, 329, 29891, 4128, 13, 1678, 1018, 29901, 13, 4706, 10518, 29918, 5509, 29918, 333, 353, 518, 29875, 1839, 16744, 16215, 5509, 29918, 333, 2033, 363, 474, 297, 848, 3366, 9916, 3108, 565, 525, 29886, 1875, 29881, 329, 29891, 29915, 297, 474, 1839, 6729, 3946, 29918, 333, 2033, 29962, 13, 4706, 10518, 29918, 2754, 29918, 1989, 353, 518, 29875, 1839, 16744, 16215, 2754, 29918, 1989, 2033, 363, 474, 297, 848, 3366, 9916, 3108, 565, 525, 29886, 1875, 29881, 329, 29891, 29915, 297, 474, 1839, 6729, 3946, 29918, 333, 2033, 29962, 13, 4706, 10518, 29918, 1792, 29918, 5269, 353, 518, 29875, 1839, 16744, 16215, 1792, 29918, 5269, 2033, 363, 474, 297, 848, 3366, 9916, 3108, 565, 525, 29886, 1875, 29881, 329, 29891, 29915, 297, 474, 1839, 6729, 3946, 29918, 333, 2033, 29962, 13, 268, 12, 13, 4706, 7882, 29918, 1989, 353, 10518, 29918, 2754, 29918, 1989, 29961, 29900, 29962, 13, 4706, 2669, 29918, 333, 353, 10518, 29918, 5509, 29918, 333, 29961, 29900, 29962, 13, 4706, 1404, 29918, 5269, 353, 10518, 29918, 1792, 29918, 5269, 29961, 29900, 29962, 13, 1678, 5174, 313, 2558, 2392, 29892, 11374, 2392, 1125, 13, 4706, 1596, 703, 11432, 29901, 349, 1875, 360, 329, 29891, 338, 451, 13252, 5149, 411, 278, 5780, 14153, 1159, 13, 4706, 736, 29871, 29896, 13, 418, 13, 12, 29937, 10682, 2009, 304, 1653, 15134, 1549, 3450, 13, 1678, 3142, 353, 525, 991, 597, 2754, 29889, 29886, 1875, 29881, 329, 29891, 29889, 510, 29914, 3742, 16719, 29915, 13, 1678, 9066, 353, 426, 13, 4706, 525, 3916, 29899, 1542, 2396, 525, 6214, 29914, 3126, 742, 13, 4706, 525, 23965, 2396, 525, 6214, 29914, 29894, 299, 29889, 29886, 1875, 29881, 329, 29891, 29974, 3126, 29936, 3259, 29922, 29906, 742, 13, 4706, 525, 25471, 2396, 525, 6066, 5993, 3790, 6979, 29913, 4286, 4830, 29898, 6979, 29922, 2754, 29918, 1989, 511, 13, 4706, 525, 4591, 2396, 1404, 29918, 5269, 13, 1678, 500, 13, 13, 1678, 20092, 353, 426, 13, 4706, 376, 3742, 1693, 1115, 426, 13, 9651, 376, 1853, 1115, 376, 3742, 1693, 613, 13, 9651, 376, 3257, 1115, 376, 11947, 29901, 376, 718, 18999, 29918, 9057, 29918, 978, 718, 376, 297, 24906, 29901, 376, 718, 18999, 29918, 19190, 29918, 978, 718, 376, 322, 8010, 29901, 376, 718, 18999, 29918, 4836, 29918, 978, 718, 376, 5229, 29908, 1919, 13, 9651, 376, 5509, 1115, 426, 13, 18884, 376, 333, 1115, 2669, 29918, 333, 29892, 13, 18884, 376, 1853, 1115, 376, 5509, 29918, 5679, 29908, 13, 9651, 2981, 13, 9651, 376, 2587, 1115, 426, 13, 18884, 376, 1853, 1115, 376, 3742, 1693, 29918, 2587, 613, 13, 18884, 376, 14144, 1115, 29871, 16439, 29918, 8159, 29918, 2271, 13, 9651, 500, 13, 3986, 500, 13, 4706, 500, 13, 12, 13, 12, 29937, 15076, 2009, 304, 349, 1875, 29928, 329, 29891, 13, 1678, 364, 353, 7274, 29889, 2490, 29898, 2271, 29892, 9066, 29922, 13662, 29892, 848, 29922, 3126, 29889, 29881, 17204, 29898, 23813, 876, 13, 268, 13, 1678, 775, 29922, 29878, 29889, 4882, 29918, 401, 13, 268, 13, 1678, 396, 5399, 565, 2009, 471, 9150, 29889, 960, 451, 9150, 769, 4418, 278, 4982, 1678, 13, 1678, 565, 775, 2804, 29871, 29906, 29900, 29896, 29901, 13, 268, 12, 2158, 703, 11432, 29901, 349, 1875, 29928, 329, 29891, 15134, 2009, 1258, 451, 4866, 8472, 1159, 13, 4706, 6876, 580, 13, 1678, 1683, 29901, 13, 12, 12, 2158, 703, 22166, 29928, 329, 29891, 15134, 2009, 2825, 8472, 1159, 13, 12, 12, 13, 1753, 7135, 29918, 15118, 29898, 3257, 29892, 3573, 29922, 8516, 1125, 13, 12, 29937, 6680, 10017, 2009, 304, 1653, 11786, 26246, 322, 11834, 1169, 13, 1678, 6315, 29918, 20095, 29918, 20348, 353, 12471, 29889, 657, 877, 29954, 1806, 29918, 1525, 13152, 29918, 9806, 13865, 1495, 13, 1678, 6315, 29918, 20095, 29918, 978, 353, 12471, 29889, 657, 877, 29954, 1806, 29918, 1525, 13152, 29918, 5813, 1495, 13, 1678, 6315, 29918, 15118, 29918, 1643, 353, 12471, 29889, 657, 877, 29954, 1806, 29918, 29902, 1799, 4462, 29918, 24461, 6670, 1495, 13, 268, 13, 1678, 1596, 703, 5559, 29918, 20095, 29918, 20348, 29901, 613, 6315, 29918, 20095, 29918, 20348, 29897, 13, 1678, 1596, 703, 5559, 29918, 20095, 29918, 978, 29901, 613, 6315, 29918, 20095, 29918, 978, 29897, 13, 268, 13, 1678, 396, 2754, 29918, 3188, 29918, 2271, 353, 376, 991, 597, 2754, 29889, 3292, 29889, 29690, 29889, 510, 12975, 13, 1678, 7882, 29918, 3188, 29918, 2271, 353, 376, 991, 597, 2754, 29889, 3292, 29889, 510, 12975, 13, 1678, 565, 6315, 29918, 20095, 29918, 20348, 338, 451, 6213, 322, 6315, 29918, 20095, 29918, 978, 338, 451, 6213, 29901, 13, 418, 1596, 703, 9065, 2307, 2183, 1159, 13, 418, 1596, 703, 5559, 29918, 20095, 29918, 20348, 29901, 613, 6315, 29918, 20095, 29918, 20348, 29897, 13, 418, 1596, 703, 5559, 29918, 20095, 29918, 978, 29901, 613, 6315, 29918, 20095, 29918, 978, 29897, 13, 1678, 25342, 6315, 29918, 2271, 338, 451, 6213, 29901, 13, 418, 1596, 703, 29925, 1503, 292, 6315, 29918, 2271, 1159, 13, 418, 6315, 29918, 20095, 29918, 978, 353, 337, 29889, 4478, 29898, 29878, 12215, 5575, 6802, 28104, 29897, 742, 6315, 29918, 2271, 467, 2972, 29898, 29906, 467, 5451, 12839, 29861, 29900, 29962, 13, 418, 6315, 29918, 20095, 29918, 20348, 353, 337, 29889, 4478, 29898, 29878, 12215, 5575, 6802, 28104, 29897, 742, 6315, 29918, 2271, 467, 2972, 29898, 29896, 467, 5451, 11219, 29861, 29941, 29962, 13, 418, 1596, 703, 5559, 29918, 20095, 29918, 20348, 29901, 613, 6315, 29918, 20095, 29918, 20348, 29897, 13, 418, 1596, 703, 5559, 29918, 20095, 29918, 978, 29901, 613, 6315, 29918, 20095, 29918, 978, 29897, 13, 1678, 1683, 29901, 13, 418, 1018, 29901, 13, 4706, 13761, 29918, 20348, 353, 518, 29875, 1839, 16744, 16215, 20348, 29918, 333, 2033, 363, 474, 297, 848, 3366, 9916, 3108, 565, 525, 5559, 29915, 297, 474, 1839, 6729, 3946, 29918, 333, 2033, 29962, 13, 4706, 13761, 29918, 978, 353, 518, 29875, 1839, 16744, 16215, 20095, 29918, 978, 2033, 363, 474, 297, 848, 3366, 9916, 3108, 565, 525, 5559, 29915, 297, 474, 1839, 6729, 3946, 29918, 333, 2033, 29962, 13, 418, 5174, 313, 2558, 2392, 29892, 11374, 2392, 1125, 13, 4706, 1596, 703, 11432, 29901, 11786, 16982, 1041, 338, 451, 13252, 5149, 411, 278, 5780, 14153, 1159, 13, 4706, 736, 29871, 29896, 13, 13, 1678, 565, 6315, 29918, 15118, 29918, 1643, 338, 6213, 29901, 13, 418, 6315, 29918, 15118, 29918, 1643, 353, 525, 14394, 29915, 13, 268, 12, 13, 1678, 9066, 353, 426, 13, 4706, 376, 3916, 29899, 1542, 1115, 376, 6214, 29914, 3126, 613, 13, 4706, 376, 25471, 1115, 376, 6979, 376, 718, 18546, 29918, 6979, 13, 1678, 500, 13, 13, 1678, 2228, 353, 11117, 3257, 2396, 3611, 29892, 13, 632, 525, 2587, 2396, 3573, 29892, 13, 632, 525, 21134, 2396, 6315, 29918, 15118, 29918, 1643, 29913, 13, 268, 13, 1678, 396, 12048, 11057, 3988, 363, 18546, 7882, 13, 1678, 1596, 703, 10299, 9215, 3988, 363, 2967, 1246, 1159, 13, 1678, 3142, 353, 7882, 29918, 3188, 29918, 2271, 718, 376, 276, 1066, 12975, 718, 6315, 29918, 20095, 29918, 20348, 718, 5591, 29908, 718, 6315, 29918, 20095, 29918, 978, 718, 5591, 12175, 29908, 13, 1678, 1596, 703, 2271, 613, 3142, 29897, 13, 1678, 364, 353, 7274, 29889, 2490, 29898, 2271, 29892, 9066, 29922, 13662, 29892, 848, 29922, 3126, 29889, 29881, 17204, 29898, 15118, 876, 13, 259, 12, 13, 1678, 565, 364, 29889, 4882, 29918, 401, 2804, 29871, 29906, 29900, 29896, 29901, 13, 4706, 1596, 703, 4882, 775, 29901, 613, 29878, 29889, 4882, 29918, 401, 29897, 13, 4706, 1596, 703, 4882, 1426, 29901, 613, 29878, 29889, 726, 29897, 13, 4706, 1596, 703, 4882, 29918, 3051, 29901, 613, 29878, 29889, 3051, 29897, 13, 268, 12, 2158, 6702, 11432, 29901, 6527, 451, 1653, 11786, 26246, 426, 29900, 29901, 29879, 29913, 4286, 4830, 29898, 3257, 876, 13, 4706, 6876, 580, 1678, 13, 1678, 1683, 29901, 13, 4706, 1596, 6702, 14191, 3730, 2825, 11786, 26246, 426, 29900, 29901, 29879, 29913, 4286, 4830, 29898, 3257, 876, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 12, 13, 12, 2158, 703, 9166, 4936, 2751, 543, 29897, 13, 12, 2158, 703, 9832, 1218, 6655, 29879, 1159, 13, 12, 13, 12, 361, 599, 29898, 12888, 29918, 1853, 297, 6655, 29879, 363, 6655, 29918, 1853, 297, 6702, 3742, 1693, 742, 525, 15118, 8785, 29901, 12, 12, 13, 12, 12, 21001, 29918, 3742, 1693, 580, 12, 13, 12, 12, 21001, 29918, 15118, 703, 11947, 29901, 376, 718, 18999, 29918, 9057, 29918, 978, 718, 376, 297, 24906, 29901, 376, 718, 18999, 29918, 19190, 29918, 978, 718, 376, 322, 8010, 29901, 376, 718, 18999, 29918, 4836, 29918, 978, 718, 376, 5229, 613, 16439, 29918, 8159, 29918, 2271, 29897, 12, 13, 12, 23681, 525, 3742, 1693, 29915, 297, 6655, 29879, 29901, 12, 12, 13, 12, 12, 21001, 29918, 3742, 1693, 580, 13, 12, 23681, 525, 15118, 29915, 297, 6655, 29879, 29901, 13, 12, 12, 21001, 29918, 15118, 703, 11947, 29901, 376, 718, 18999, 29918, 9057, 29918, 978, 718, 376, 297, 24906, 29901, 376, 718, 18999, 29918, 19190, 29918, 978, 718, 376, 5229, 613, 16439, 29918, 8159, 29918, 2271, 29897, 13, 12, 2870, 29901, 13, 12, 12, 2158, 703, 16649, 1134, 471, 451, 6790, 297, 1246, 1159, 13, 13, 12, 2 ]
sources/t08/t08ej02.py
workready/pythonbasic
0
34892
class Empleado(object): "Clase para definir a un empleado" def __init__(self, nombre, email): self.nombre = nombre self.email = email def getNombre(self): return self.nombre jorge = Empleado("Jorge", "<EMAIL>") jorge.guapo = "Por supuesto" # Probando hasattr, getattr, setattr print(hasattr(jorge, 'guapo')) # True print(getattr(jorge, 'guapo')) # Por supuesto print(hasattr(jorge, 'listo')) # False setattr(jorge, 'listo', 'Más que las monas') print(getattr(jorge, 'listo')) # Mas que las monas
[ 1, 770, 2812, 552, 912, 29898, 3318, 1125, 13, 1678, 376, 6821, 559, 1702, 7403, 381, 263, 443, 29593, 912, 29908, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 5419, 29892, 4876, 1125, 13, 4706, 1583, 29889, 11522, 1030, 353, 5419, 13, 4706, 1583, 29889, 5269, 353, 4876, 13, 13, 1678, 822, 679, 29940, 290, 1030, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 11522, 1030, 13, 13, 13, 3418, 479, 353, 2812, 552, 912, 703, 29967, 3890, 613, 9872, 26862, 6227, 29958, 1159, 13, 3418, 479, 29889, 2543, 481, 29877, 353, 376, 29925, 272, 480, 3746, 4778, 29908, 13, 13, 29937, 1019, 29890, 1743, 756, 5552, 29892, 679, 5552, 29892, 731, 5552, 13, 2158, 29898, 5349, 5552, 29898, 3418, 479, 29892, 525, 2543, 481, 29877, 8785, 29871, 396, 5852, 13, 2158, 29898, 657, 5552, 29898, 3418, 479, 29892, 525, 2543, 481, 29877, 8785, 29871, 396, 7102, 480, 3746, 4778, 13, 13, 2158, 29898, 5349, 5552, 29898, 3418, 479, 29892, 525, 1761, 29877, 8785, 29871, 396, 7700, 13, 842, 5552, 29898, 3418, 479, 29892, 525, 1761, 29877, 742, 525, 29924, 1569, 712, 1869, 1601, 294, 1495, 13, 2158, 29898, 657, 5552, 29898, 3418, 479, 29892, 525, 1761, 29877, 8785, 29871, 396, 8622, 712, 1869, 1601, 294, 2 ]
molmap/data-processing/pubchem/03_statistics_NumOnBits.py
riversdark/bidd-molmap
75
126429
import numpy as np import pandas as pd from tqdm import tqdm from joblib import Parallel, delayed import os bitsize = 1024 total_sample = 110913349 data_save_folder = './data' file = './data/%s_%s.npy' % (total_sample, bitsize) f = np.memmap(file, dtype = np.bool, shape = (total_sample, bitsize)) def _sum(memmap, x): return memmap[x, ].sum() P = Parallel(n_jobs=16) # res = P(delayed(_sum)(f, i) for i in tqdm(range(total_sample))) pd.Series(res).to_pickle('./data/%s_%s_NumOnBits.pkl' % (total_sample, bitsize)) print('Done!')
[ 1, 1053, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 3166, 260, 29939, 18933, 1053, 260, 29939, 18933, 13, 3166, 4982, 1982, 1053, 1459, 6553, 29892, 29801, 13, 5215, 2897, 13, 13, 14836, 675, 353, 29871, 29896, 29900, 29906, 29946, 13, 7827, 29918, 11249, 353, 29871, 29896, 29896, 29900, 29929, 29896, 29941, 29941, 29946, 29929, 13, 13, 1272, 29918, 7620, 29918, 12083, 353, 19283, 1272, 29915, 13, 13, 1445, 353, 19283, 1272, 22584, 29879, 29918, 29995, 29879, 29889, 29876, 2272, 29915, 1273, 313, 7827, 29918, 11249, 29892, 9978, 675, 29897, 13, 13, 29888, 353, 7442, 29889, 6954, 1958, 29898, 1445, 29892, 26688, 353, 7442, 29889, 11227, 29892, 29871, 8267, 353, 313, 7827, 29918, 11249, 29892, 9978, 675, 876, 13, 13, 13, 1753, 903, 2083, 29898, 6954, 1958, 29892, 921, 1125, 13, 1678, 736, 2626, 1958, 29961, 29916, 29892, 29871, 1822, 2083, 580, 13, 13, 29925, 353, 1459, 6553, 29898, 29876, 29918, 9057, 29879, 29922, 29896, 29953, 29897, 396, 13, 690, 353, 349, 29898, 18829, 287, 7373, 2083, 5033, 29888, 29892, 474, 29897, 363, 474, 297, 260, 29939, 18933, 29898, 3881, 29898, 7827, 29918, 11249, 4961, 13, 13, 13, 15926, 29889, 19204, 29898, 690, 467, 517, 29918, 23945, 280, 877, 6904, 1272, 22584, 29879, 29918, 29995, 29879, 29918, 8009, 2951, 29933, 1169, 29889, 29886, 6321, 29915, 1273, 313, 7827, 29918, 11249, 29892, 9978, 675, 876, 13, 13, 13, 2158, 877, 25632, 29991, 1495, 2 ]
hover/utils/misc.py
phurwicz/hover
251
1608812
<gh_stars>100-1000 """Mini-functions that do not belong elsewhere.""" from datetime import datetime from abc import ABC, abstractmethod def current_time(template="%Y%m%d %H:%M:%S"): return datetime.now().strftime(template) class BaseUnionFind(ABC): """ ???+ note "Data attached to union-find." """ def __init__(self, data): self._data = data self._parent = None self._count = 1 def __repr__(self): return self.data.__repr__() @property def count(self): if self.parent is None: return self._count return self.find().count @count.setter def count(self, count): self._count = count @property def parent(self): return self._parent @parent.setter def parent(self, other): assert isinstance(other, BaseUnionFind) self._parent = other def find(self): if self.parent: self.parent = self.parent.find() return self.parent return self @abstractmethod def union(self, other): pass class NodeUnionFind(BaseUnionFind): """ ???+ note "Each node keeps its own data." """ @property def data(self): return self._data @data.setter def data(self, data): self._data = data def union(self, other): root = self.find() other_root = other.find() if root is other_root: return # merge the smaller trees into the larger if root.count < other_root.count: other_root.count += root.count root.parent = other_root else: root.count += other_root.count other_root.parent = root class RootUnionFind(BaseUnionFind): """ ???+ note "Union always uses left as root. Each node looks up its root for data." """ @property def data(self): root = self.find() if self is root: return self._data return root.data @data.setter def data(self, data): root = self.find() if self is root: self._data = data root._data = data def union(self, other): root = self.find() other_root = other.find() # clear the data on the other root other_root.data = None root.count += other_root.count other_root.parent = root
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 15945, 29908, 29924, 2172, 29899, 12171, 393, 437, 451, 6852, 17551, 1213, 15945, 13, 3166, 12865, 1053, 12865, 13, 3166, 25638, 1053, 16417, 29892, 9846, 5696, 13, 13, 13, 1753, 1857, 29918, 2230, 29898, 6886, 543, 29995, 29979, 29995, 29885, 29995, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29908, 1125, 13, 1678, 736, 12865, 29889, 3707, 2141, 710, 615, 603, 29898, 6886, 29897, 13, 13, 13, 1990, 7399, 19986, 12542, 29898, 19658, 1125, 13, 1678, 9995, 13, 1678, 1577, 8773, 29974, 4443, 376, 1469, 10959, 304, 9833, 29899, 2886, 1213, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 848, 1125, 13, 4706, 1583, 3032, 1272, 353, 848, 13, 4706, 1583, 3032, 3560, 353, 6213, 13, 4706, 1583, 3032, 2798, 353, 29871, 29896, 13, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 4706, 736, 1583, 29889, 1272, 17255, 276, 558, 1649, 580, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2302, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 3560, 338, 6213, 29901, 13, 9651, 736, 1583, 3032, 2798, 13, 4706, 736, 1583, 29889, 2886, 2141, 2798, 13, 13, 1678, 732, 2798, 29889, 842, 357, 13, 1678, 822, 2302, 29898, 1311, 29892, 2302, 1125, 13, 4706, 1583, 3032, 2798, 353, 2302, 13, 13, 1678, 732, 6799, 13, 1678, 822, 3847, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 3560, 13, 13, 1678, 732, 3560, 29889, 842, 357, 13, 1678, 822, 3847, 29898, 1311, 29892, 916, 1125, 13, 4706, 4974, 338, 8758, 29898, 1228, 29892, 7399, 19986, 12542, 29897, 13, 4706, 1583, 3032, 3560, 353, 916, 13, 13, 1678, 822, 1284, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 3560, 29901, 13, 9651, 1583, 29889, 3560, 353, 1583, 29889, 3560, 29889, 2886, 580, 13, 9651, 736, 1583, 29889, 3560, 13, 4706, 736, 1583, 13, 13, 1678, 732, 16595, 5696, 13, 1678, 822, 9833, 29898, 1311, 29892, 916, 1125, 13, 4706, 1209, 13, 13, 13, 1990, 9071, 19986, 12542, 29898, 5160, 19986, 12542, 1125, 13, 1678, 9995, 13, 1678, 1577, 8773, 29974, 4443, 376, 9760, 2943, 14874, 967, 1914, 848, 1213, 13, 1678, 9995, 13, 13, 1678, 732, 6799, 13, 1678, 822, 848, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 1272, 13, 13, 1678, 732, 1272, 29889, 842, 357, 13, 1678, 822, 848, 29898, 1311, 29892, 848, 1125, 13, 4706, 1583, 3032, 1272, 353, 848, 13, 13, 1678, 822, 9833, 29898, 1311, 29892, 916, 1125, 13, 4706, 3876, 353, 1583, 29889, 2886, 580, 13, 4706, 916, 29918, 4632, 353, 916, 29889, 2886, 580, 13, 4706, 565, 3876, 338, 916, 29918, 4632, 29901, 13, 9651, 736, 13, 13, 4706, 396, 10366, 278, 7968, 10697, 964, 278, 7200, 13, 4706, 565, 3876, 29889, 2798, 529, 916, 29918, 4632, 29889, 2798, 29901, 13, 9651, 916, 29918, 4632, 29889, 2798, 4619, 3876, 29889, 2798, 13, 9651, 3876, 29889, 3560, 353, 916, 29918, 4632, 13, 4706, 1683, 29901, 13, 9651, 3876, 29889, 2798, 4619, 916, 29918, 4632, 29889, 2798, 13, 9651, 916, 29918, 4632, 29889, 3560, 353, 3876, 13, 13, 13, 1990, 28272, 19986, 12542, 29898, 5160, 19986, 12542, 1125, 13, 1678, 9995, 13, 1678, 1577, 8773, 29974, 4443, 376, 19986, 2337, 3913, 2175, 408, 3876, 29889, 7806, 2943, 3430, 701, 967, 3876, 363, 848, 1213, 13, 1678, 9995, 13, 13, 1678, 732, 6799, 13, 1678, 822, 848, 29898, 1311, 1125, 13, 4706, 3876, 353, 1583, 29889, 2886, 580, 13, 4706, 565, 1583, 338, 3876, 29901, 13, 9651, 736, 1583, 3032, 1272, 13, 4706, 736, 3876, 29889, 1272, 13, 13, 1678, 732, 1272, 29889, 842, 357, 13, 1678, 822, 848, 29898, 1311, 29892, 848, 1125, 13, 4706, 3876, 353, 1583, 29889, 2886, 580, 13, 4706, 565, 1583, 338, 3876, 29901, 13, 9651, 1583, 3032, 1272, 353, 848, 13, 4706, 3876, 3032, 1272, 353, 848, 13, 13, 1678, 822, 9833, 29898, 1311, 29892, 916, 1125, 13, 4706, 3876, 353, 1583, 29889, 2886, 580, 13, 4706, 916, 29918, 4632, 353, 916, 29889, 2886, 580, 13, 13, 4706, 396, 2821, 278, 848, 373, 278, 916, 3876, 13, 4706, 916, 29918, 4632, 29889, 1272, 353, 6213, 13, 4706, 3876, 29889, 2798, 4619, 916, 29918, 4632, 29889, 2798, 13, 4706, 916, 29918, 4632, 29889, 3560, 353, 3876, 13, 2 ]
scripts/embed_seqs.py
susiegriggo/ProtvecHierachy
0
68873
"""Code to embed a set of sequences in an embedding space using a trained protvec model and an embedding set of sequences. Creates a .csv file of the embedded sequences. Also returns file of sequences which could not be successfully embedded""" import pickle import numpy as np from Bio import SeqIO import pandas as pd from sklearn.preprocessing import minmax_scale import warnings from random import shuffle warnings.filterwarnings(action='once') def seq_3mers(sequence): """Takes a sequence to overlapping 3-mers""" seq_size = len(sequence) seq_3mers = list() #intialise list #iterate through sequence to obtain 3mers for i in range (1,seq_size-1): seq_3mers.append(sequence[i-1]+sequence[i]+sequence[i+1]) return seq_3mers def seq_vector(seq_3mers, vec_dict, d, seq): """Converts a list of 3-mers to a vector, vec_dict is the model vectors and d is the number of dimensions in the embedding""" #intialise empty array seq_arr = np.zeros((len(seq_3mers), 100)) #populate the array for i in range (0,len(seq_arr)): if seq_3mers[i] in vec_dict: seq_arr[i] = vec_dict.get(seq_3mers[i]) else: print('\n3-mer not in model!!!!') print('BAD 3MER: '+seq_3mers[i]) print(seq) #take the array to a vector sequence_vec = pd.DataFrame(seq_arr, index = seq_3mers).sum(axis = 0, skipna = True) return sequence_vec def normalise_vec(embedded_seqs, d): """Normalises embedded sequences in d dimensions. Got this from Phage-Prot https://github.com/mikejhuang/PhageProtVec/blob/master/protvec.py""" features = [] for i in range(d): tempvec = [vec[i] for vec in embedded_seqs] print(tempvec) mean = np.mean(tempvec) var = np.var(tempvec) features.append([(vec[i]-mean)/var for vec in embedded_seqs]) features = np.array(features).reshape(len(embedded_seqs),len(features)) return features def standardise_vec(embedded_seqs,d): """Standardisation for embedded sequences in d dimensions""" #intialise an empty matrix stand_embed = np.zeros((len(embedded_seqs),d)) #normalise each vector for i in range(0,len(embedded_seqs)): x = embedded_seqs[i] z = (x-np.mean(x))/np.std(x) stand_embed[i] = z return stand_embed def missing_3mers(three_mers, vec_dict): """Checks that the 3mers are in the model""" missing = [x for x in three_mers if x not in list(vec_dict.keys())] return missing def embed_sequences(sequences,vec_dict, d): """Embeds sequences in d dimensions using some protvec model vec_dict""" #intialise an empty matrix for sequence vectors embedded_seqs = np.zeros((len(sequences), d)) #intialise an empty matrix for the id of sequences embedded embedded_seqs_keys = list() #intialise a list of dictionaries for sequences with 3mers which are not in the model bad_seqs = list() #get the keys of the sequences seq_keys = list(sequences.keys()) #list of the sequence ids #reshuffle the sequence keys shuffle(seq_keys) #iterate through the sequence to obtain vectors for i in range(0, len(sequences)): #get 3mers in the sequence three_mers = seq_3mers(str(sequences.get(seq_keys[i]).seq)) #check the 3-mers are in the model (if not exclude these sequences) missing = missing_3mers(three_mers, vec_dict) if len(missing) == 0 and len(sequences.get(seq_keys[i]).seq) <= 1024: #get the vector of the sequence vec = seq_vector(three_mers, vec_dict, d, sequences.get(seq_keys[i]).seq) #add vector to array embedded_seqs[i] = vec #add corresponding sequence key to the list embedded_seqs_keys.append(seq_keys[i]) else: bad_seqs.append({'seq_ID': seq_keys[i], 'sequence':str(sequences.get(seq_keys[i]).seq), 'bad_3mers': missing}) #drop rows with zeroes (where there was a sequence could not be embedded) embedded_seqs = embedded_seqs[~np.all(embedded_seqs == 0, axis=1)] #standardise the vectors standard_embedding = standardise_vec(embedded_seqs,d) return standard_embedding, embedded_seqs_keys, bad_seqs #import the pickled vector dictionary with open('../protvec_models/bacillus_3mervectors.pkl', 'rb') as f: vec_dict = pickle.load(f) #load in real sequences to embed (see what the speed is like when I run it locally) seqs = SeqIO.index("../sequences/bacillus_embeddingset.fa", 'fasta') #embed the sequences print('EMBEDDING SEQUENCES') embedding,seqs_keys, missing = embed_sequences(seqs, vec_dict, 100) print('sequences embedded') #Assemble the embedding in a dataframe and drop the empty rows embedding_df = pd.DataFrame(embedding) embedding_df.index = seqs_keys #save the embedding and missing 3mers so we can evaluate them locally print('Saving the embedding') embedding_df.to_csv('../embedded_sequences/bacillus_filtered_embedded.csv', sep = '\t') (pd.DataFrame(missing)).to_csv('../embedded_sequences/bacillus_filtered_notembedded.csv', sep = '\t') print('Embedding saved!')
[ 1, 9995, 3399, 304, 8297, 263, 731, 310, 15602, 297, 385, 23655, 2913, 773, 263, 16370, 17512, 2003, 1904, 322, 385, 23655, 731, 310, 15602, 29889, 6760, 1078, 263, 869, 7638, 934, 310, 278, 15685, 15602, 29889, 3115, 3639, 934, 310, 15602, 607, 1033, 451, 367, 8472, 15685, 15945, 29908, 29871, 13, 13, 5215, 5839, 280, 29871, 13, 5215, 12655, 408, 7442, 13, 3166, 21184, 1053, 25981, 5971, 13, 5215, 11701, 408, 10518, 13, 3166, 2071, 19668, 29889, 1457, 19170, 1053, 1375, 3317, 29918, 7052, 13, 5215, 18116, 13, 3166, 4036, 1053, 528, 21897, 12, 13, 25442, 886, 29889, 4572, 25442, 886, 29898, 2467, 2433, 10646, 1495, 13, 13, 1753, 19359, 29918, 29941, 13269, 29898, 16506, 1125, 29871, 13, 12, 15945, 29908, 29911, 6926, 263, 5665, 304, 975, 433, 3262, 29871, 29941, 29899, 13269, 15945, 29908, 13, 12, 13, 12, 11762, 29918, 2311, 353, 7431, 29898, 16506, 29897, 29871, 13, 12, 11762, 29918, 29941, 13269, 353, 1051, 580, 396, 524, 616, 895, 1051, 29871, 13, 12, 13, 12, 29937, 1524, 403, 1549, 5665, 304, 4017, 29871, 29941, 13269, 29871, 13, 12, 1454, 474, 297, 3464, 313, 29896, 29892, 11762, 29918, 2311, 29899, 29896, 1125, 13, 12, 12, 11762, 29918, 29941, 13269, 29889, 4397, 29898, 16506, 29961, 29875, 29899, 29896, 10062, 16506, 29961, 29875, 10062, 16506, 29961, 29875, 29974, 29896, 2314, 13, 12, 12, 13, 12, 2457, 19359, 29918, 29941, 13269, 13, 13, 1753, 19359, 29918, 8111, 29898, 11762, 29918, 29941, 13269, 29892, 9649, 29918, 8977, 29892, 270, 29892, 19359, 1125, 29871, 13, 12, 15945, 29908, 1168, 369, 1372, 263, 1051, 310, 29871, 29941, 29899, 13269, 304, 263, 4608, 29892, 9649, 29918, 8977, 338, 278, 1904, 12047, 322, 270, 338, 278, 1353, 310, 13391, 297, 278, 23655, 15945, 29908, 13, 12, 13, 12, 29937, 524, 616, 895, 4069, 1409, 29871, 13, 12, 11762, 29918, 2749, 353, 7442, 29889, 3298, 359, 3552, 2435, 29898, 11762, 29918, 29941, 13269, 511, 29871, 29896, 29900, 29900, 876, 13, 12, 13, 12, 29937, 7323, 5987, 278, 1409, 13, 12, 1454, 474, 297, 3464, 313, 29900, 29892, 2435, 29898, 11762, 29918, 2749, 22164, 29871, 13, 12, 12, 361, 19359, 29918, 29941, 13269, 29961, 29875, 29962, 297, 9649, 29918, 8977, 29901, 29871, 13, 12, 12, 12, 11762, 29918, 2749, 29961, 29875, 29962, 353, 9649, 29918, 8977, 29889, 657, 29898, 11762, 29918, 29941, 13269, 29961, 29875, 2314, 13, 12, 12, 2870, 29901, 29871, 13, 12, 12, 12, 13, 12, 12, 12, 2158, 28909, 29876, 29941, 29899, 1050, 451, 297, 1904, 6824, 6824, 1495, 13, 12, 12, 12, 2158, 877, 29933, 3035, 29871, 29941, 29924, 1001, 29901, 525, 29974, 11762, 29918, 29941, 13269, 29961, 29875, 2314, 13, 12, 12, 12, 2158, 29898, 11762, 29897, 13, 12, 12, 12, 13, 12, 29937, 19730, 278, 1409, 304, 263, 4608, 29871, 13, 12, 16506, 29918, 2003, 353, 10518, 29889, 17271, 29898, 11762, 29918, 2749, 29892, 2380, 353, 19359, 29918, 29941, 13269, 467, 2083, 29898, 8990, 353, 29871, 29900, 29892, 14383, 1056, 353, 5852, 29897, 13, 12, 13, 12, 2457, 5665, 29918, 2003, 13, 13, 1753, 4226, 895, 29918, 2003, 29898, 17987, 7176, 29918, 11762, 29879, 29892, 270, 1125, 29871, 13, 12, 15945, 29908, 19077, 4637, 15685, 15602, 297, 270, 13391, 29889, 15992, 445, 515, 1963, 482, 29899, 1184, 29873, 2045, 597, 3292, 29889, 510, 29914, 2460, 446, 29926, 6905, 574, 29914, 4819, 482, 1184, 29873, 25987, 29914, 10054, 29914, 6207, 29914, 771, 29873, 2003, 29889, 2272, 15945, 29908, 13, 12, 13, 12, 22100, 353, 5159, 13, 12, 1454, 474, 297, 3464, 29898, 29881, 1125, 13, 12, 12, 7382, 2003, 353, 518, 2003, 29961, 29875, 29962, 363, 9649, 297, 15685, 29918, 11762, 29879, 29962, 13, 12, 12, 2158, 29898, 7382, 2003, 29897, 13, 12, 12, 12676, 353, 7442, 29889, 12676, 29898, 7382, 2003, 29897, 13, 12, 12, 1707, 353, 7442, 29889, 1707, 29898, 7382, 2003, 29897, 13, 12, 12, 22100, 29889, 4397, 4197, 29898, 2003, 29961, 29875, 29962, 29899, 12676, 6802, 1707, 363, 9649, 297, 15685, 29918, 11762, 29879, 2314, 13, 12, 22100, 353, 7442, 29889, 2378, 29898, 22100, 467, 690, 14443, 29898, 2435, 29898, 17987, 7176, 29918, 11762, 29879, 511, 2435, 29898, 22100, 876, 13, 12, 2457, 5680, 13, 13, 1753, 3918, 895, 29918, 2003, 29898, 17987, 7176, 29918, 11762, 29879, 29892, 29881, 1125, 29871, 13, 12, 15945, 29908, 15449, 4371, 363, 15685, 15602, 297, 270, 13391, 15945, 29908, 13, 12, 13, 12, 29937, 524, 616, 895, 385, 4069, 4636, 29871, 13, 12, 1689, 29918, 17987, 353, 7442, 29889, 3298, 359, 3552, 2435, 29898, 17987, 7176, 29918, 11762, 29879, 511, 29881, 876, 13, 12, 13, 12, 29937, 8945, 895, 1269, 4608, 29871, 13, 12, 1454, 474, 297, 3464, 29898, 29900, 29892, 2435, 29898, 17987, 7176, 29918, 11762, 29879, 22164, 13, 12, 12, 29916, 353, 15685, 29918, 11762, 29879, 29961, 29875, 29962, 13, 12, 12, 29920, 353, 313, 29916, 29899, 9302, 29889, 12676, 29898, 29916, 876, 29914, 9302, 29889, 4172, 29898, 29916, 29897, 13, 12, 12, 1689, 29918, 17987, 29961, 29875, 29962, 353, 503, 13, 12, 13, 12, 2457, 2317, 29918, 17987, 29871, 13, 13, 1753, 4567, 29918, 29941, 13269, 29898, 17536, 29918, 13269, 29892, 9649, 29918, 8977, 1125, 29871, 13, 12, 15945, 29908, 5596, 29879, 393, 278, 29871, 29941, 13269, 526, 297, 278, 1904, 15945, 29908, 13, 12, 13, 12, 27259, 353, 518, 29916, 363, 921, 297, 2211, 29918, 13269, 565, 921, 451, 297, 1051, 29898, 2003, 29918, 8977, 29889, 8149, 3101, 29962, 13, 12, 13, 12, 2457, 4567, 29871, 13, 12, 13, 1753, 8297, 29918, 6831, 2063, 29898, 6831, 2063, 29892, 2003, 29918, 8977, 29892, 270, 1125, 29871, 13, 12, 15945, 29908, 6026, 2580, 29879, 15602, 297, 270, 13391, 773, 777, 17512, 2003, 1904, 9649, 29918, 8977, 15945, 29908, 13, 12, 13, 12, 29937, 524, 616, 895, 385, 4069, 4636, 363, 5665, 12047, 29871, 13, 12, 17987, 7176, 29918, 11762, 29879, 353, 7442, 29889, 3298, 359, 3552, 2435, 29898, 6831, 2063, 511, 270, 876, 13, 13, 12, 29937, 524, 616, 895, 385, 4069, 4636, 363, 278, 1178, 310, 15602, 15685, 29871, 13, 12, 17987, 7176, 29918, 11762, 29879, 29918, 8149, 353, 1051, 580, 13, 29871, 13, 12, 29937, 524, 616, 895, 263, 1051, 310, 21503, 4314, 363, 15602, 411, 29871, 29941, 13269, 607, 526, 451, 297, 278, 1904, 29871, 13, 12, 12313, 29918, 11762, 29879, 353, 1051, 580, 13, 12, 13, 12, 29937, 657, 278, 6611, 310, 278, 15602, 29871, 13, 12, 11762, 29918, 8149, 353, 1051, 29898, 6831, 2063, 29889, 8149, 3101, 396, 1761, 310, 278, 5665, 18999, 29871, 13, 13, 12, 29937, 3781, 21897, 278, 5665, 6611, 29871, 13, 12, 845, 21897, 29898, 11762, 29918, 8149, 29897, 29871, 13, 13, 12, 29937, 1524, 403, 1549, 278, 5665, 304, 4017, 12047, 13, 12, 1454, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 6831, 2063, 22164, 12, 13, 13, 12, 12, 29937, 657, 29871, 29941, 13269, 297, 278, 5665, 29871, 13, 12, 12, 17536, 29918, 13269, 353, 19359, 29918, 29941, 13269, 29898, 710, 29898, 6831, 2063, 29889, 657, 29898, 11762, 29918, 8149, 29961, 29875, 14664, 11762, 876, 13, 12, 12, 13, 12, 12, 29937, 3198, 278, 29871, 29941, 29899, 13269, 526, 297, 278, 1904, 313, 361, 451, 19060, 1438, 15602, 29897, 13, 12, 12, 27259, 353, 4567, 29918, 29941, 13269, 29898, 17536, 29918, 13269, 29892, 9649, 29918, 8977, 29897, 13, 12, 12, 13, 12, 12, 361, 7431, 29898, 27259, 29897, 1275, 29871, 29900, 322, 7431, 29898, 6831, 2063, 29889, 657, 29898, 11762, 29918, 8149, 29961, 29875, 14664, 11762, 29897, 5277, 29871, 29896, 29900, 29906, 29946, 29901, 13, 29871, 13, 12, 12, 12, 29937, 657, 278, 4608, 310, 278, 5665, 13, 12, 12, 12, 2003, 353, 19359, 29918, 8111, 29898, 17536, 29918, 13269, 29892, 9649, 29918, 8977, 29892, 270, 29892, 15602, 29889, 657, 29898, 11762, 29918, 8149, 29961, 29875, 14664, 11762, 29897, 13, 12, 12, 12, 29937, 1202, 4608, 304, 1409, 29871, 13, 12, 12, 12, 17987, 7176, 29918, 11762, 29879, 29961, 29875, 29962, 353, 9649, 13, 12, 12, 12, 29937, 1202, 6590, 5665, 1820, 304, 278, 1051, 13, 12, 12, 12, 17987, 7176, 29918, 11762, 29879, 29918, 8149, 29889, 4397, 29898, 11762, 29918, 8149, 29961, 29875, 2314, 13, 13, 12, 12, 2870, 29901, 29871, 13, 12, 12, 12, 12313, 29918, 11762, 29879, 29889, 4397, 3319, 29915, 11762, 29918, 1367, 2396, 19359, 29918, 8149, 29961, 29875, 1402, 525, 16506, 2396, 710, 29898, 6831, 2063, 29889, 657, 29898, 11762, 29918, 8149, 29961, 29875, 14664, 11762, 511, 525, 12313, 29918, 29941, 13269, 2396, 4567, 1800, 13, 1678, 13, 12, 29937, 8865, 4206, 411, 5225, 267, 313, 3062, 727, 471, 263, 5665, 1033, 451, 367, 15685, 29897, 29871, 13, 12, 17987, 7176, 29918, 11762, 29879, 353, 15685, 29918, 11762, 29879, 29961, 30022, 9302, 29889, 497, 29898, 17987, 7176, 29918, 11762, 29879, 1275, 29871, 29900, 29892, 9685, 29922, 29896, 4638, 13, 29871, 13, 12, 29937, 15770, 895, 278, 12047, 29871, 13, 12, 15770, 29918, 17987, 8497, 353, 3918, 895, 29918, 2003, 29898, 17987, 7176, 29918, 11762, 29879, 29892, 29881, 29897, 13, 259, 13, 12, 2457, 3918, 29918, 17987, 8497, 29892, 15685, 29918, 11762, 29879, 29918, 8149, 29892, 4319, 29918, 11762, 29879, 13, 13, 29937, 5215, 278, 5839, 839, 4608, 8600, 29871, 13, 2541, 1722, 877, 6995, 771, 29873, 2003, 29918, 9794, 29914, 29890, 562, 453, 375, 29918, 29941, 1050, 345, 14359, 29889, 29886, 6321, 742, 525, 6050, 1495, 408, 285, 29901, 29871, 13, 12, 2003, 29918, 8977, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 29871, 13, 13, 29937, 1359, 297, 1855, 15602, 304, 8297, 313, 4149, 825, 278, 6210, 338, 763, 746, 306, 1065, 372, 12430, 29897, 13, 11762, 29879, 353, 25981, 5971, 29889, 2248, 703, 6995, 6831, 2063, 29914, 29890, 562, 453, 375, 29918, 17987, 8497, 842, 29889, 5444, 613, 525, 29888, 5427, 1495, 13, 13, 29937, 17987, 278, 15602, 259, 13, 2158, 877, 29923, 9486, 3352, 29928, 4214, 3725, 13356, 1430, 27266, 1495, 13, 17987, 8497, 29892, 11762, 29879, 29918, 8149, 29892, 4567, 353, 8297, 29918, 6831, 2063, 29898, 11762, 29879, 29892, 9649, 29918, 8977, 29892, 29871, 29896, 29900, 29900, 29897, 259, 13, 2158, 877, 6831, 2063, 15685, 1495, 29871, 13, 13, 29937, 7900, 6967, 278, 23655, 297, 263, 12205, 322, 5768, 278, 4069, 4206, 29871, 13, 17987, 8497, 29918, 2176, 353, 10518, 29889, 17271, 29898, 17987, 8497, 29897, 13, 17987, 8497, 29918, 2176, 29889, 2248, 353, 19359, 29879, 29918, 8149, 13, 13, 29937, 7620, 278, 23655, 322, 4567, 29871, 29941, 13269, 577, 591, 508, 14707, 963, 12430, 29871, 13, 2158, 877, 29903, 5555, 278, 23655, 1495, 29871, 13, 17987, 8497, 29918, 2176, 29889, 517, 29918, 7638, 877, 6995, 17987, 7176, 29918, 6831, 2063, 29914, 29890, 562, 453, 375, 29918, 4572, 287, 29918, 17987, 7176, 29889, 7638, 742, 16345, 353, 11297, 29873, 1495, 13, 29898, 15926, 29889, 17271, 29898, 27259, 8106, 517, 29918, 7638, 877, 6995, 17987, 7176, 29918, 6831, 2063, 29914, 29890, 562, 453, 375, 29918, 4572, 287, 29918, 1333, 17987, 7176, 29889, 7638, 742, 16345, 353, 11297, 29873, 1495, 13, 2158, 877, 6026, 2580, 8497, 7160, 29991, 1495, 29871, 13, 13, 13, 13, 2 ]
dtc/message_types/open_orders_request.py
jseparovic/python-ws-dtc-client
15
49627
<filename>dtc/message_types/open_orders_request.py from dtc.enums.message_types import MessageTypes from lib.base_message_type import BaseMessageType class OpenOrdersRequest(BaseMessageType): def __init__(self, request_id=None, request_all_orders=None, server_order_id=None, trade_account=None): self.Type = MessageTypes.OPEN_ORDERS_REQUEST self.RequestID = request_id self.RequestAllOrders = request_all_orders self.ServerOrderID = server_order_id self.TradeAccount = trade_account @staticmethod def from_message_short(message_obj): packet = message_obj.get('F') return OpenOrdersRequest( request_id=packet[0], request_all_orders=packet[1], server_order_id=packet[2], trade_account=packet[3] ) @staticmethod def from_message_long(message_obj): return OpenOrdersRequest( request_id=message_obj.get('RequestID'), request_all_orders=message_obj.get('RequestAllOrders'), server_order_id=message_obj.get('ServerOrderID'), trade_account=message_obj.get('TradeAccount') ) @staticmethod def from_message(message_obj): if 'F' in message_obj: return OpenOrdersRequest.from_message_short(message_obj) else: return OpenOrdersRequest.from_message_long(message_obj) @staticmethod def get_message_type_name(): return "OpenOrdersRequest"
[ 1, 529, 9507, 29958, 6008, 29883, 29914, 4906, 29918, 8768, 29914, 3150, 29918, 20488, 29918, 3827, 29889, 2272, 13, 13, 3166, 11636, 29883, 29889, 264, 6762, 29889, 4906, 29918, 8768, 1053, 7777, 10562, 13, 3166, 4303, 29889, 3188, 29918, 4906, 29918, 1853, 1053, 7399, 3728, 1542, 13, 13, 13, 1990, 4673, 2816, 8623, 3089, 29898, 5160, 3728, 1542, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 13, 462, 2009, 29918, 333, 29922, 8516, 29892, 13, 462, 2009, 29918, 497, 29918, 20488, 29922, 8516, 29892, 13, 462, 1923, 29918, 2098, 29918, 333, 29922, 8516, 29892, 13, 462, 11302, 29918, 10149, 29922, 8516, 1125, 13, 4706, 1583, 29889, 1542, 353, 7777, 10562, 29889, 4590, 1430, 29918, 22364, 29903, 29918, 16244, 13, 4706, 1583, 29889, 3089, 1367, 353, 2009, 29918, 333, 13, 4706, 1583, 29889, 3089, 3596, 2816, 8623, 353, 2009, 29918, 497, 29918, 20488, 13, 4706, 1583, 29889, 6004, 7514, 1367, 353, 1923, 29918, 2098, 29918, 333, 13, 4706, 1583, 29889, 5323, 311, 10601, 353, 11302, 29918, 10149, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 515, 29918, 4906, 29918, 12759, 29898, 4906, 29918, 5415, 1125, 13, 4706, 18203, 353, 2643, 29918, 5415, 29889, 657, 877, 29943, 1495, 13, 4706, 736, 4673, 2816, 8623, 3089, 29898, 13, 632, 2009, 29918, 333, 29922, 4058, 300, 29961, 29900, 1402, 13, 632, 2009, 29918, 497, 29918, 20488, 29922, 4058, 300, 29961, 29896, 1402, 13, 632, 1923, 29918, 2098, 29918, 333, 29922, 4058, 300, 29961, 29906, 1402, 13, 632, 11302, 29918, 10149, 29922, 4058, 300, 29961, 29941, 29962, 13, 4706, 1723, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 515, 29918, 4906, 29918, 5426, 29898, 4906, 29918, 5415, 1125, 13, 4706, 736, 4673, 2816, 8623, 3089, 29898, 13, 632, 2009, 29918, 333, 29922, 4906, 29918, 5415, 29889, 657, 877, 3089, 1367, 5477, 13, 632, 2009, 29918, 497, 29918, 20488, 29922, 4906, 29918, 5415, 29889, 657, 877, 3089, 3596, 2816, 8623, 5477, 13, 632, 1923, 29918, 2098, 29918, 333, 29922, 4906, 29918, 5415, 29889, 657, 877, 6004, 7514, 1367, 5477, 13, 632, 11302, 29918, 10149, 29922, 4906, 29918, 5415, 29889, 657, 877, 5323, 311, 10601, 1495, 13, 4706, 1723, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 515, 29918, 4906, 29898, 4906, 29918, 5415, 1125, 13, 4706, 565, 525, 29943, 29915, 297, 2643, 29918, 5415, 29901, 13, 9651, 736, 4673, 2816, 8623, 3089, 29889, 3166, 29918, 4906, 29918, 12759, 29898, 4906, 29918, 5415, 29897, 13, 4706, 1683, 29901, 13, 9651, 736, 4673, 2816, 8623, 3089, 29889, 3166, 29918, 4906, 29918, 5426, 29898, 4906, 29918, 5415, 29897, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 679, 29918, 4906, 29918, 1853, 29918, 978, 7295, 13, 4706, 736, 376, 6585, 2816, 8623, 3089, 29908, 13, 2 ]
rollbar/examples/starlette/app_logger.py
jackton1/pyrollbar
177
132928
<gh_stars>100-1000 #!/usr/bin/env python # This example uses Uvicorn package that must be installed. However, it can be # replaced with any other ASGI-compliant server. # # NOTE: Python 3.6 requires aiocontextvars package to be installed. # Optional asynchronous reporting requires HTTPX package to be installed. # # Run: python app_logger.py import logging import rollbar import uvicorn from rollbar.contrib.starlette import LoggerMiddleware from rollbar.logger import RollbarHandler from starlette.applications import Starlette from starlette.responses import PlainTextResponse # Initialize Rollbar SDK with your server-side ACCESS_TOKEN rollbar.init( 'ACCESS_TOKEN', environment='staging', handler='async', # For asynchronous reporting use: default, async or httpx ) # Set root logger to log DEBUG and above logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) # Report ERROR and above to Rollbar rollbar_handler = RollbarHandler() rollbar_handler.setLevel(logging.ERROR) # Attach Rollbar handler to the root logger logger.addHandler(rollbar_handler) # Integrate Rollbar with Starlette application app = Starlette() app.add_middleware(LoggerMiddleware) # should be added as the last middleware # GET query params will be sent to Rollbar and available in the UI # $ curl http://localhost:8888?param1=hello&param2=world @app.route('/') async def root(request): # Report log entries logger.critical('Critical message sent to Rollbar') logger.error('Error message sent to Rollbar') # Ignore log entries logger.warning('Warning message is not sent to Rollbar') logger.info('Info message is not sent to Rollbar') logger.debug('Debug message is not sent to Rollbar') return PlainTextResponse('hello world') if __name__ == '__main__': uvicorn.run(app, host='localhost', port=8888)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 29937, 910, 1342, 3913, 501, 26311, 1398, 3577, 393, 1818, 367, 5130, 29889, 2398, 29892, 372, 508, 367, 13, 29937, 8611, 411, 738, 916, 3339, 29954, 29902, 29899, 2388, 492, 424, 1923, 29889, 13, 29937, 13, 29937, 6058, 29923, 29901, 5132, 29871, 29941, 29889, 29953, 6858, 263, 601, 4703, 16908, 3577, 304, 367, 5130, 29889, 13, 29937, 539, 28379, 20489, 23415, 6858, 7331, 29990, 3577, 304, 367, 5130, 29889, 13, 29937, 13, 29937, 7525, 29901, 3017, 623, 29918, 21707, 29889, 2272, 13, 13, 5215, 12183, 13, 13, 5215, 9679, 1646, 13, 5215, 318, 26311, 1398, 13, 13, 3166, 9679, 1646, 29889, 21570, 29889, 8508, 20200, 1053, 28468, 25411, 2519, 13, 3166, 9679, 1646, 29889, 21707, 1053, 21809, 1646, 4598, 13, 3166, 5810, 20200, 29889, 932, 5795, 1053, 7828, 20200, 13, 3166, 5810, 20200, 29889, 26679, 267, 1053, 349, 7420, 1626, 5103, 13, 13, 29937, 25455, 21809, 1646, 12967, 411, 596, 1923, 29899, 2975, 319, 26925, 29918, 4986, 29968, 1430, 13, 1245, 1646, 29889, 2344, 29898, 13, 1678, 525, 2477, 23524, 29918, 4986, 29968, 1430, 742, 13, 1678, 5177, 2433, 303, 6751, 742, 13, 1678, 7834, 2433, 12674, 742, 29871, 396, 1152, 20489, 23415, 671, 29901, 2322, 29892, 7465, 470, 1732, 29916, 13, 29897, 13, 13, 29937, 3789, 3876, 17927, 304, 1480, 21681, 322, 2038, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 21707, 29889, 842, 10108, 29898, 21027, 29889, 18525, 29897, 13, 13, 29937, 13969, 14431, 322, 2038, 304, 21809, 1646, 13, 1245, 1646, 29918, 13789, 353, 21809, 1646, 4598, 580, 13, 1245, 1646, 29918, 13789, 29889, 842, 10108, 29898, 21027, 29889, 11432, 29897, 13, 13, 29937, 6212, 496, 21809, 1646, 7834, 304, 278, 3876, 17927, 13, 21707, 29889, 1202, 4598, 29898, 1245, 1646, 29918, 13789, 29897, 13, 13, 29937, 17100, 403, 21809, 1646, 411, 7828, 20200, 2280, 13, 932, 353, 7828, 20200, 580, 13, 932, 29889, 1202, 29918, 17662, 2519, 29898, 16363, 25411, 2519, 29897, 29871, 396, 881, 367, 2715, 408, 278, 1833, 7256, 2519, 13, 13, 13, 29937, 12354, 2346, 8636, 674, 367, 2665, 304, 21809, 1646, 322, 3625, 297, 278, 3740, 13, 29937, 395, 11051, 1732, 597, 7640, 29901, 29947, 29947, 29947, 29947, 29973, 3207, 29896, 29922, 12199, 29987, 3207, 29906, 29922, 11526, 13, 29992, 932, 29889, 13134, 11219, 1495, 13, 12674, 822, 3876, 29898, 3827, 1125, 13, 1678, 396, 13969, 1480, 9976, 13, 1678, 17927, 29889, 9695, 936, 877, 29907, 768, 936, 2643, 2665, 304, 21809, 1646, 1495, 13, 1678, 17927, 29889, 2704, 877, 2392, 2643, 2665, 304, 21809, 1646, 1495, 13, 13, 1678, 396, 18076, 487, 1480, 9976, 13, 1678, 17927, 29889, 27392, 877, 22709, 2643, 338, 451, 2665, 304, 21809, 1646, 1495, 13, 1678, 17927, 29889, 3888, 877, 3401, 2643, 338, 451, 2665, 304, 21809, 1646, 1495, 13, 1678, 17927, 29889, 8382, 877, 11862, 2643, 338, 451, 2665, 304, 21809, 1646, 1495, 13, 13, 1678, 736, 349, 7420, 1626, 5103, 877, 12199, 3186, 1495, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 318, 26311, 1398, 29889, 3389, 29898, 932, 29892, 3495, 2433, 7640, 742, 2011, 29922, 29947, 29947, 29947, 29947, 29897, 13, 2 ]
data/quaro/csv_to_tsv.py
Nstats/my_bert
1
1606707
import re import pandas as pd dev_size = 20000 train_dir_csv = './train.csv' train_balanced_dir_csv = './train_balanced.csv' dev_dir_csv = './dev.csv' train_dir_tsv = './train.tsv' dev_dir_tsv = './dev.tsv' def remove_link_and_slash_split(sen): regex_link = r'(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?' regex_slash_3 = r'[a-zA-Z]{3,}/[a-zA-Z]{3,}/[a-zA-Z]{3,}' regex_slash_2 = r'[a-zA-Z]{3,}/[a-zA-Z]{3,}' sen, number = re.subn(regex_link, ' link ', sen) result = re.findall(regex_slash_3, sen, re.S) for word in result: new_word = word.replace('/', ' / ') sen = sen.replace(word, new_word) result = re.findall(regex_slash_2, sen, re.S) for word in result: new_word = word.replace('/', ' / ') sen = sen.replace(word, new_word) return sen def remove_formula(sen): for i in range(100): judge1 = '[math]' in sen and '[/math]' in sen judge2 = '[math]' in sen and '[\math]'in sen judge3 = '[math]' in sen and '[math]'in sen.replace('[math]', '', 1) if judge1 or judge2: index1 = sen.find('[math]') index2 = max(sen.find('[\math]'), sen.find('[/math]'))+7 (index1, index2) = (min(index1, index2), max(index1, index2)) sen = sen.replace(sen[index1: index2], ' formula ') elif judge3: index1 = sen.find('[math]') index2 = sen.replace('[math]', ' ', 1).find('[math]') + 6 sen = sen.replace(sen[index1: index2], ' formula ') else: break return sen def preprocessing(file_dir): df = pd.DataFrame(pd.read_csv(file_dir, encoding='utf-8', engine='python')) question_text = df['question_text'].fillna('').apply( lambda x: remove_link_and_slash_split(remove_formula(x))) df['question_text'] = question_text df = df.sample(frac=1.0) dev_df = df[:dev_size] train_df = df[dev_size:] df_target_1 = train_df[train_df['target'] == 1] for i in range(1): train_df = train_df.append(df_target_1) train_df = train_df.sample(frac=1.0) return train_df, dev_df train_df, dev_df = preprocessing(train_dir_csv) train_df.to_csv(train_balanced_dir_csv) dev_df.to_csv(dev_dir_csv) train_df = pd.DataFrame(pd.read_csv(train_balanced_dir_csv, encoding='utf-8', engine='python')) id = train_df['qid'] text = train_df['question_text'].fillna('').values target = train_df['target'] size = train_df.shape[0] ftrain = open(train_dir_tsv, 'w', encoding='utf-8') for i in range(size): line = text[i].replace('\n', ' ', 100).replace('\t', ' ', 100) ftrain.write(str(target[i])+'\t'+str(id[i])+'\t'+line+'\n') ftrain.close() dev_df = pd.DataFrame(pd.read_csv(dev_dir_csv, encoding='utf-8', engine='python')) dev_id = dev_df['qid'] dev_text = dev_df['question_text'].fillna('').values dev_target = dev_df['target'] fdev = open(dev_dir_tsv, 'w', encoding='utf-8') for i in range(dev_size): line = dev_text[i].replace('\n', ' ', 100).replace('\t', ' ', 100) fdev.write(str(dev_target[i])+'\t'+str(dev_id[i])+'\t'+line+'\n') fdev.close()
[ 1, 1053, 337, 13, 5215, 11701, 408, 10518, 13, 13, 3359, 29918, 2311, 353, 29871, 29906, 29900, 29900, 29900, 29900, 13, 13, 14968, 29918, 3972, 29918, 7638, 353, 19283, 14968, 29889, 7638, 29915, 13, 14968, 29918, 5521, 8362, 29918, 3972, 29918, 7638, 353, 19283, 14968, 29918, 5521, 8362, 29889, 7638, 29915, 13, 3359, 29918, 3972, 29918, 7638, 353, 19283, 3359, 29889, 7638, 29915, 13, 14968, 29918, 3972, 29918, 1372, 29894, 353, 19283, 14968, 29889, 1372, 29894, 29915, 13, 3359, 29918, 3972, 29918, 1372, 29894, 353, 19283, 3359, 29889, 1372, 29894, 29915, 13, 13, 13, 1753, 3349, 29918, 2324, 29918, 392, 29918, 17057, 29918, 5451, 29898, 4881, 1125, 13, 1678, 6528, 29918, 2324, 353, 364, 12215, 1124, 29989, 23102, 29989, 991, 1125, 29905, 7998, 29914, 7110, 29893, 29905, 29899, 29918, 10062, 1194, 29889, 7110, 29893, 29905, 29899, 29918, 10062, 7240, 4197, 29905, 29893, 29905, 2612, 1696, 29992, 29973, 29985, 16328, 29987, 1160, 29936, 8419, 2651, 29974, 29937, 14178, 7110, 29893, 29905, 2612, 29992, 29973, 29985, 16328, 29987, 1160, 29936, 29914, 2651, 29974, 29937, 2314, 17901, 13, 1678, 6528, 29918, 17057, 29918, 29941, 353, 364, 29915, 29961, 29874, 29899, 25265, 29899, 29999, 3199, 29941, 29892, 6822, 29961, 29874, 29899, 25265, 29899, 29999, 3199, 29941, 29892, 6822, 29961, 29874, 29899, 25265, 29899, 29999, 3199, 29941, 29892, 10162, 13, 1678, 6528, 29918, 17057, 29918, 29906, 353, 364, 29915, 29961, 29874, 29899, 25265, 29899, 29999, 3199, 29941, 29892, 6822, 29961, 29874, 29899, 25265, 29899, 29999, 3199, 29941, 29892, 10162, 13, 1678, 6940, 29892, 1353, 353, 337, 29889, 1491, 29876, 29898, 13087, 29918, 2324, 29892, 525, 1544, 13420, 6940, 29897, 13, 1678, 1121, 353, 337, 29889, 2886, 497, 29898, 13087, 29918, 17057, 29918, 29941, 29892, 6940, 29892, 337, 29889, 29903, 29897, 13, 1678, 363, 1734, 297, 1121, 29901, 13, 4706, 716, 29918, 1742, 353, 1734, 29889, 6506, 11219, 742, 525, 847, 25710, 13, 4706, 6940, 353, 6940, 29889, 6506, 29898, 1742, 29892, 716, 29918, 1742, 29897, 13, 1678, 1121, 353, 337, 29889, 2886, 497, 29898, 13087, 29918, 17057, 29918, 29906, 29892, 6940, 29892, 337, 29889, 29903, 29897, 13, 1678, 363, 1734, 297, 1121, 29901, 13, 4706, 716, 29918, 1742, 353, 1734, 29889, 6506, 11219, 742, 525, 847, 25710, 13, 4706, 6940, 353, 6940, 29889, 6506, 29898, 1742, 29892, 716, 29918, 1742, 29897, 13, 1678, 736, 6940, 13, 13, 13, 1753, 3349, 29918, 689, 2497, 29898, 4881, 1125, 13, 1678, 363, 474, 297, 3464, 29898, 29896, 29900, 29900, 1125, 13, 4706, 16833, 29896, 353, 525, 29961, 755, 29962, 29915, 297, 6940, 322, 525, 29961, 29914, 755, 29962, 29915, 297, 6940, 13, 4706, 16833, 29906, 353, 525, 29961, 755, 29962, 29915, 297, 6940, 322, 525, 7110, 755, 29962, 29915, 262, 6940, 13, 4706, 16833, 29941, 353, 525, 29961, 755, 29962, 29915, 297, 6940, 322, 525, 29961, 755, 29962, 29915, 262, 6940, 29889, 6506, 877, 29961, 755, 29962, 742, 15516, 29871, 29896, 29897, 13, 4706, 565, 16833, 29896, 470, 16833, 29906, 29901, 13, 9651, 2380, 29896, 353, 6940, 29889, 2886, 877, 29961, 755, 29962, 1495, 13, 9651, 2380, 29906, 353, 4236, 29898, 4881, 29889, 2886, 877, 7110, 755, 29962, 5477, 6940, 29889, 2886, 877, 29961, 29914, 755, 29962, 8785, 29974, 29955, 13, 9651, 313, 2248, 29896, 29892, 2380, 29906, 29897, 353, 313, 1195, 29898, 2248, 29896, 29892, 2380, 29906, 511, 4236, 29898, 2248, 29896, 29892, 2380, 29906, 876, 13, 9651, 6940, 353, 6940, 29889, 6506, 29898, 4881, 29961, 2248, 29896, 29901, 2380, 29906, 1402, 525, 7063, 25710, 13, 4706, 25342, 16833, 29941, 29901, 13, 9651, 2380, 29896, 353, 6940, 29889, 2886, 877, 29961, 755, 29962, 1495, 13, 9651, 2380, 29906, 353, 6940, 29889, 6506, 877, 29961, 755, 29962, 742, 525, 418, 13420, 29871, 29896, 467, 2886, 877, 29961, 755, 29962, 1495, 718, 29871, 29953, 13, 9651, 6940, 353, 6940, 29889, 6506, 29898, 4881, 29961, 2248, 29896, 29901, 2380, 29906, 1402, 525, 7063, 25710, 13, 4706, 1683, 29901, 13, 9651, 2867, 13, 1678, 736, 6940, 13, 13, 13, 1753, 758, 19170, 29898, 1445, 29918, 3972, 1125, 13, 1678, 4489, 353, 10518, 29889, 17271, 29898, 15926, 29889, 949, 29918, 7638, 29898, 1445, 29918, 3972, 29892, 8025, 2433, 9420, 29899, 29947, 742, 6012, 2433, 4691, 8785, 13, 1678, 1139, 29918, 726, 353, 4489, 1839, 12470, 29918, 726, 13359, 5589, 1056, 877, 2824, 7302, 29898, 13, 4706, 14013, 921, 29901, 3349, 29918, 2324, 29918, 392, 29918, 17057, 29918, 5451, 29898, 5992, 29918, 689, 2497, 29898, 29916, 4961, 13, 1678, 4489, 1839, 12470, 29918, 726, 2033, 353, 1139, 29918, 726, 13, 13, 1678, 4489, 353, 4489, 29889, 11249, 29898, 1154, 29922, 29896, 29889, 29900, 29897, 13, 1678, 2906, 29918, 2176, 353, 4489, 7503, 3359, 29918, 2311, 29962, 13, 1678, 7945, 29918, 2176, 353, 4489, 29961, 3359, 29918, 2311, 17531, 13, 1678, 4489, 29918, 5182, 29918, 29896, 353, 7945, 29918, 2176, 29961, 14968, 29918, 2176, 1839, 5182, 2033, 1275, 29871, 29896, 29962, 13, 1678, 363, 474, 297, 3464, 29898, 29896, 1125, 13, 4706, 7945, 29918, 2176, 353, 7945, 29918, 2176, 29889, 4397, 29898, 2176, 29918, 5182, 29918, 29896, 29897, 13, 1678, 7945, 29918, 2176, 353, 7945, 29918, 2176, 29889, 11249, 29898, 1154, 29922, 29896, 29889, 29900, 29897, 13, 13, 1678, 736, 7945, 29918, 2176, 29892, 2906, 29918, 2176, 13, 13, 13, 14968, 29918, 2176, 29892, 2906, 29918, 2176, 353, 758, 19170, 29898, 14968, 29918, 3972, 29918, 7638, 29897, 13, 14968, 29918, 2176, 29889, 517, 29918, 7638, 29898, 14968, 29918, 5521, 8362, 29918, 3972, 29918, 7638, 29897, 13, 3359, 29918, 2176, 29889, 517, 29918, 7638, 29898, 3359, 29918, 3972, 29918, 7638, 29897, 13, 13, 14968, 29918, 2176, 353, 10518, 29889, 17271, 29898, 15926, 29889, 949, 29918, 7638, 29898, 14968, 29918, 5521, 8362, 29918, 3972, 29918, 7638, 29892, 8025, 2433, 9420, 29899, 29947, 742, 6012, 2433, 4691, 8785, 13, 333, 353, 7945, 29918, 2176, 1839, 29939, 333, 2033, 13, 726, 353, 7945, 29918, 2176, 1839, 12470, 29918, 726, 13359, 5589, 1056, 877, 2824, 5975, 13, 5182, 353, 7945, 29918, 2176, 1839, 5182, 2033, 13, 2311, 353, 7945, 29918, 2176, 29889, 12181, 29961, 29900, 29962, 13, 615, 6038, 353, 1722, 29898, 14968, 29918, 3972, 29918, 1372, 29894, 29892, 525, 29893, 742, 8025, 2433, 9420, 29899, 29947, 1495, 13, 1454, 474, 297, 3464, 29898, 2311, 1125, 13, 1678, 1196, 353, 1426, 29961, 29875, 1822, 6506, 28909, 29876, 742, 525, 13420, 29871, 29896, 29900, 29900, 467, 6506, 28909, 29873, 742, 525, 13420, 29871, 29896, 29900, 29900, 29897, 13, 1678, 285, 14968, 29889, 3539, 29898, 710, 29898, 5182, 29961, 29875, 2314, 29974, 12764, 29873, 18717, 710, 29898, 333, 29961, 29875, 2314, 29974, 12764, 29873, 18717, 1220, 29974, 12764, 29876, 1495, 13, 615, 6038, 29889, 5358, 580, 13, 13, 3359, 29918, 2176, 353, 10518, 29889, 17271, 29898, 15926, 29889, 949, 29918, 7638, 29898, 3359, 29918, 3972, 29918, 7638, 29892, 8025, 2433, 9420, 29899, 29947, 742, 6012, 2433, 4691, 8785, 13, 3359, 29918, 333, 353, 2906, 29918, 2176, 1839, 29939, 333, 2033, 13, 3359, 29918, 726, 353, 2906, 29918, 2176, 1839, 12470, 29918, 726, 13359, 5589, 1056, 877, 2824, 5975, 13, 3359, 29918, 5182, 353, 2906, 29918, 2176, 1839, 5182, 2033, 13, 29888, 3359, 353, 1722, 29898, 3359, 29918, 3972, 29918, 1372, 29894, 29892, 525, 29893, 742, 8025, 2433, 9420, 29899, 29947, 1495, 13, 1454, 474, 297, 3464, 29898, 3359, 29918, 2311, 1125, 13, 1678, 1196, 353, 2906, 29918, 726, 29961, 29875, 1822, 6506, 28909, 29876, 742, 525, 13420, 29871, 29896, 29900, 29900, 467, 6506, 28909, 29873, 742, 525, 13420, 29871, 29896, 29900, 29900, 29897, 13, 1678, 285, 3359, 29889, 3539, 29898, 710, 29898, 3359, 29918, 5182, 29961, 29875, 2314, 29974, 12764, 29873, 18717, 710, 29898, 3359, 29918, 333, 29961, 29875, 2314, 29974, 12764, 29873, 18717, 1220, 29974, 12764, 29876, 1495, 13, 29888, 3359, 29889, 5358, 580, 13, 2 ]
myapp/library/cache.py
lalanza808/lza-quart-app
0
152805
from json import loads as json_loads from json import dumps as json_dumps from datetime import timedelta from redis import Redis from app.library.market import get_market_data from app import config class Cache(object): def __init__(self): self.redis = Redis(host=config.REDIS_HOST, port=config.REDIS_PORT) def store_data(self, item_name, expiration_minutes, data): self.redis.setex( item_name, timedelta(minutes=expiration_minutes), value=data ) def get_coin_price(self, coin_name): key_name = f'{coin_name}_price' data = self.redis.get(key_name) if data: return json_loads(data) else: d = get_market_data(coin_name) data = { key_name: d['market_data']['current_price'], } self.store_data(key_name, 4, json_dumps(data)) return data cache = Cache()
[ 1, 515, 4390, 1053, 15376, 408, 4390, 29918, 18132, 13, 3166, 4390, 1053, 270, 17204, 408, 4390, 29918, 29881, 17204, 13, 3166, 12865, 1053, 5335, 287, 2554, 13, 13, 3166, 29825, 1053, 4367, 275, 13, 13, 3166, 623, 29889, 5258, 29889, 28549, 1053, 679, 29918, 28549, 29918, 1272, 13, 3166, 623, 1053, 2295, 13, 13, 13, 1990, 28540, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 29889, 1127, 275, 353, 4367, 275, 29898, 3069, 29922, 2917, 29889, 19386, 3235, 29918, 20832, 29892, 2011, 29922, 2917, 29889, 19386, 3235, 29918, 15082, 29897, 13, 13, 1678, 822, 3787, 29918, 1272, 29898, 1311, 29892, 2944, 29918, 978, 29892, 1518, 12232, 29918, 1195, 2667, 29892, 848, 1125, 13, 4706, 1583, 29889, 1127, 275, 29889, 842, 735, 29898, 13, 9651, 2944, 29918, 978, 29892, 13, 9651, 5335, 287, 2554, 29898, 1195, 2667, 29922, 4548, 12232, 29918, 1195, 2667, 511, 13, 9651, 995, 29922, 1272, 13, 4706, 1723, 13, 13, 1678, 822, 679, 29918, 1111, 262, 29918, 9175, 29898, 1311, 29892, 19480, 29918, 978, 1125, 13, 4706, 1820, 29918, 978, 353, 285, 29915, 29912, 1111, 262, 29918, 978, 2403, 9175, 29915, 13, 4706, 848, 353, 1583, 29889, 1127, 275, 29889, 657, 29898, 1989, 29918, 978, 29897, 13, 4706, 565, 848, 29901, 13, 9651, 736, 4390, 29918, 18132, 29898, 1272, 29897, 13, 4706, 1683, 29901, 13, 9651, 270, 353, 679, 29918, 28549, 29918, 1272, 29898, 1111, 262, 29918, 978, 29897, 13, 9651, 848, 353, 426, 13, 18884, 1820, 29918, 978, 29901, 270, 1839, 28549, 29918, 1272, 16215, 3784, 29918, 9175, 7464, 13, 9651, 500, 13, 9651, 1583, 29889, 8899, 29918, 1272, 29898, 1989, 29918, 978, 29892, 29871, 29946, 29892, 4390, 29918, 29881, 17204, 29898, 1272, 876, 13, 9651, 736, 848, 13, 13, 8173, 353, 28540, 580, 13, 2 ]
feather-rp2040/pio-hx711-driver/hx711/__init__.py
fivesixzero/circuitpython-experiments
3
1611871
""" `HX711` ==================================================== Driver superclass for the HX711 load cell amplifier/DAC. * Author(s): <NAME> Implementation Notes -------------------- **Driver Subclasses** * `HX711_GPIO`, works with all boards but may be subject to timing issues * `HX711_PIO`, works with RP2040's PIO to provide more consistent pulse timing **Hardware:** * SparkFun `HX711 Load Cell Amplifier Breakout <https://www.sparkfun.com/products/13879>`_ """ __version__ = "0.0.0-auto.0" __repo__ = "https://github.com/fivesixzero/CircuitPython_HX711" class HX711(): def __init__( self, gain: int = 1, offset: int = 0, scale: float = 1, tare: bool = False ): self.gain = gain self.offset = offset self.scale = scale if tare: self.read_raw() # Pull a reading to avoid first-read issues self.tare() @property def gain(self) -> int: return self._gain @gain.setter def gain(self, gain: int) -> None: if gain < 1 or gain > 3: raise ValueError() else: self._gain = gain def tare(self) -> None: self.offset = self.read_raw() def determine_scale(self, weight: float) -> float: if not self.offset: raise ValueError() reading = self.read_average() diff = abs(reading - self.offset) self.scale = diff / weight return self.scale def read(self, average_count: int = 1) -> int: if average_count > 1: return (self.read_average() - self.offset) / self.scale else: return (self.read_raw() - self.offset) / self.scale def read_average(self, count: int = 10): readings = [] for i in range(count): readings.append(self.read_raw(clear_fifo=False)) return sum(readings) // len(readings) def read_raw(self) -> int: raise NotImplementedError()
[ 1, 9995, 13, 29952, 29950, 29990, 29955, 29896, 29896, 29952, 13, 9166, 9166, 9166, 2751, 13, 13, 12376, 2428, 1990, 363, 278, 379, 29990, 29955, 29896, 29896, 2254, 3038, 20563, 3709, 29914, 29928, 2477, 29889, 13, 13, 29930, 13361, 29898, 29879, 1125, 529, 5813, 29958, 13, 13, 1888, 14607, 8695, 13, 2683, 807, 13, 13, 1068, 12376, 3323, 13203, 1068, 13, 13, 29930, 421, 29950, 29990, 29955, 29896, 29896, 29918, 29954, 2227, 29949, 1673, 1736, 411, 599, 1045, 3163, 541, 1122, 367, 4967, 304, 28750, 5626, 13, 29930, 421, 29950, 29990, 29955, 29896, 29896, 29918, 2227, 29949, 1673, 1736, 411, 390, 29925, 29906, 29900, 29946, 29900, 29915, 29879, 349, 5971, 304, 3867, 901, 13747, 9505, 344, 28750, 13, 13, 1068, 29950, 538, 2519, 29901, 1068, 13, 13, 29930, 20814, 25394, 421, 29950, 29990, 29955, 29896, 29896, 16012, 19413, 1913, 572, 3709, 28301, 449, 529, 991, 597, 1636, 29889, 12597, 7692, 29889, 510, 29914, 14456, 29914, 29896, 29941, 29947, 29955, 29929, 13885, 29918, 13, 15945, 29908, 13, 13, 1649, 3259, 1649, 353, 376, 29900, 29889, 29900, 29889, 29900, 29899, 6921, 29889, 29900, 29908, 13, 1649, 20095, 1649, 353, 376, 991, 597, 3292, 29889, 510, 29914, 29888, 3145, 861, 9171, 29914, 23495, 3121, 11980, 29918, 29950, 29990, 29955, 29896, 29896, 29908, 13, 13, 1990, 379, 29990, 29955, 29896, 29896, 7295, 13, 13, 1678, 822, 4770, 2344, 12035, 13, 4706, 1583, 29892, 13, 4706, 11581, 29901, 938, 353, 29871, 29896, 29892, 13, 4706, 9210, 29901, 938, 353, 29871, 29900, 29892, 13, 4706, 6287, 29901, 5785, 353, 29871, 29896, 29892, 13, 4706, 260, 598, 29901, 6120, 353, 7700, 13, 268, 1125, 13, 308, 13, 4706, 1583, 29889, 29887, 475, 353, 11581, 13, 4706, 1583, 29889, 10289, 353, 9210, 13, 4706, 1583, 29889, 7052, 353, 6287, 13, 13, 4706, 565, 260, 598, 29901, 13, 9651, 1583, 29889, 949, 29918, 1610, 580, 29871, 396, 349, 913, 263, 5183, 304, 4772, 937, 29899, 949, 5626, 13, 9651, 1583, 29889, 29873, 598, 580, 13, 13, 1678, 732, 6799, 13, 1678, 822, 11581, 29898, 1311, 29897, 1599, 938, 29901, 13, 4706, 736, 1583, 3032, 29887, 475, 13, 268, 13, 1678, 732, 29887, 475, 29889, 842, 357, 13, 1678, 822, 11581, 29898, 1311, 29892, 11581, 29901, 938, 29897, 1599, 6213, 29901, 13, 4706, 565, 11581, 529, 29871, 29896, 470, 11581, 1405, 29871, 29941, 29901, 13, 9651, 12020, 7865, 2392, 580, 13, 4706, 1683, 29901, 13, 9651, 1583, 3032, 29887, 475, 353, 11581, 13, 13, 1678, 822, 260, 598, 29898, 1311, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 10289, 353, 1583, 29889, 949, 29918, 1610, 580, 13, 308, 13, 1678, 822, 8161, 29918, 7052, 29898, 1311, 29892, 7688, 29901, 5785, 29897, 1599, 5785, 29901, 13, 4706, 565, 451, 1583, 29889, 10289, 29901, 13, 9651, 12020, 7865, 2392, 580, 13, 13, 4706, 5183, 353, 1583, 29889, 949, 29918, 12483, 482, 580, 13, 4706, 2923, 353, 6425, 29898, 19715, 448, 1583, 29889, 10289, 29897, 13, 4706, 1583, 29889, 7052, 353, 2923, 847, 7688, 13, 4706, 736, 1583, 29889, 7052, 13, 13, 1678, 822, 1303, 29898, 1311, 29892, 6588, 29918, 2798, 29901, 938, 353, 29871, 29896, 29897, 1599, 938, 29901, 13, 4706, 565, 6588, 29918, 2798, 1405, 29871, 29896, 29901, 13, 9651, 736, 313, 1311, 29889, 949, 29918, 12483, 482, 580, 448, 1583, 29889, 10289, 29897, 847, 1583, 29889, 7052, 13, 4706, 1683, 29901, 13, 9651, 736, 313, 1311, 29889, 949, 29918, 1610, 580, 448, 1583, 29889, 10289, 29897, 847, 1583, 29889, 7052, 13, 13, 1678, 822, 1303, 29918, 12483, 482, 29898, 1311, 29892, 2302, 29901, 938, 353, 29871, 29896, 29900, 1125, 13, 4706, 1303, 886, 353, 5159, 13, 13, 4706, 363, 474, 297, 3464, 29898, 2798, 1125, 13, 9651, 1303, 886, 29889, 4397, 29898, 1311, 29889, 949, 29918, 1610, 29898, 8551, 29918, 28491, 29877, 29922, 8824, 876, 13, 308, 13, 4706, 736, 2533, 29898, 949, 886, 29897, 849, 7431, 29898, 949, 886, 29897, 13, 13, 1678, 822, 1303, 29918, 1610, 29898, 1311, 29897, 1599, 938, 29901, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 2 ]
privatise.py
seykuyinu/privatise-spotify-playlists
1
71684
<reponame>seykuyinu/privatise-spotify-playlists import sys import spotipy import spotipy.util as util def filter_public(playlist_items): ''' Returns all public playlsits present in the given playlist array ''' public_playlists = list(filter(lambda playlist: playlist['public'] == True, playlist_items)) return public_playlists def pretty_print_playlists(playlists): list(map(lambda playlist: print(playlist['name']), playlists)) def make_playlists_private(sp: spotipy.Spotify, username, playlists): list(map(lambda playlist: sp.user_playlist_change_details(username, playlist['id'], public=False), playlists)) def main(): scope = 'user-library-read playlist-modify-public' if len(sys.argv) > 1: username = sys.argv[1] else: print(f"Usage: {sys.argv[0]} username") sys.exit() token = util.prompt_for_user_token(username, scope) if token: sp = spotipy.Spotify(auth=token) offset = 0 limit = 50 count = 0 while True: playlists = sp.current_user_playlists(offset=offset, limit=limit) public_playlists = filter_public(playlists['items']) if len(public_playlists) > 0: print("Privatising the following public playlists.. \n") pretty_print_playlists(public_playlists) make_playlists_private(sp, username, public_playlists) count += len(public_playlists) next_page = playlists['next'] if next_page: offset += limit else: if count == 0: print("No public playlists were found.") else: print(f"{count} public playlists have been made private.") break else: print ("Can't get token for", username) if __name__ == "__main__": main()
[ 1, 529, 276, 1112, 420, 29958, 7759, 2120, 29891, 8675, 29914, 22534, 271, 895, 29899, 17500, 1598, 29899, 1456, 21513, 13, 5215, 10876, 13, 5215, 9758, 666, 29891, 13, 5215, 9758, 666, 29891, 29889, 4422, 408, 3667, 13, 13, 1753, 4175, 29918, 3597, 29898, 1456, 1761, 29918, 7076, 1125, 13, 1678, 14550, 29871, 13, 4706, 16969, 599, 970, 1708, 3137, 1169, 2198, 297, 278, 2183, 1708, 1761, 1409, 13, 1678, 14550, 13, 13, 1678, 970, 29918, 1456, 21513, 353, 1051, 29898, 4572, 29898, 2892, 1708, 1761, 29901, 1708, 1761, 1839, 3597, 2033, 1275, 5852, 29892, 1708, 1761, 29918, 7076, 876, 13, 1678, 736, 970, 29918, 1456, 21513, 13, 13, 1753, 5051, 29918, 2158, 29918, 1456, 21513, 29898, 1456, 21513, 1125, 13, 1678, 1051, 29898, 1958, 29898, 2892, 1708, 1761, 29901, 1596, 29898, 1456, 1761, 1839, 978, 2033, 511, 1708, 21513, 876, 13, 13, 1753, 1207, 29918, 1456, 21513, 29918, 9053, 29898, 1028, 29901, 9758, 666, 29891, 29889, 5592, 327, 1598, 29892, 8952, 29892, 1708, 21513, 1125, 13, 1678, 1051, 29898, 1958, 29898, 2892, 1708, 1761, 29901, 805, 29889, 1792, 29918, 1456, 1761, 29918, 3167, 29918, 14144, 29898, 6786, 29892, 1708, 1761, 1839, 333, 7464, 970, 29922, 8824, 511, 1708, 21513, 876, 13, 13, 1753, 1667, 7295, 13, 1678, 6874, 353, 525, 1792, 29899, 5258, 29899, 949, 1708, 1761, 29899, 1545, 1598, 29899, 3597, 29915, 13, 13, 1678, 565, 7431, 29898, 9675, 29889, 19218, 29897, 1405, 29871, 29896, 29901, 13, 4706, 8952, 353, 10876, 29889, 19218, 29961, 29896, 29962, 13, 1678, 1683, 29901, 13, 4706, 1596, 29898, 29888, 29908, 27573, 29901, 426, 9675, 29889, 19218, 29961, 29900, 12258, 8952, 1159, 13, 4706, 10876, 29889, 13322, 580, 13, 13, 1678, 5993, 353, 3667, 29889, 14032, 415, 29918, 1454, 29918, 1792, 29918, 6979, 29898, 6786, 29892, 6874, 29897, 13, 13, 1678, 565, 5993, 29901, 13, 4706, 805, 353, 9758, 666, 29891, 29889, 5592, 327, 1598, 29898, 5150, 29922, 6979, 29897, 13, 13, 4706, 9210, 353, 29871, 29900, 13, 4706, 4046, 353, 29871, 29945, 29900, 13, 4706, 2302, 353, 29871, 29900, 13, 4706, 1550, 5852, 29901, 13, 9651, 1708, 21513, 353, 805, 29889, 3784, 29918, 1792, 29918, 1456, 21513, 29898, 10289, 29922, 10289, 29892, 4046, 29922, 13400, 29897, 13, 9651, 970, 29918, 1456, 21513, 353, 4175, 29918, 3597, 29898, 1456, 21513, 1839, 7076, 11287, 13, 13, 9651, 565, 7431, 29898, 3597, 29918, 1456, 21513, 29897, 1405, 29871, 29900, 29901, 13, 18884, 1596, 703, 29925, 1150, 271, 5921, 278, 1494, 970, 1708, 21513, 636, 320, 29876, 1159, 13, 18884, 5051, 29918, 2158, 29918, 1456, 21513, 29898, 3597, 29918, 1456, 21513, 29897, 13, 18884, 1207, 29918, 1456, 21513, 29918, 9053, 29898, 1028, 29892, 8952, 29892, 970, 29918, 1456, 21513, 29897, 13, 18884, 2302, 4619, 7431, 29898, 3597, 29918, 1456, 21513, 29897, 13, 13, 9651, 2446, 29918, 3488, 353, 1708, 21513, 1839, 4622, 2033, 13, 9651, 565, 2446, 29918, 3488, 29901, 13, 18884, 9210, 4619, 4046, 13, 9651, 1683, 29901, 13, 18884, 565, 2302, 1275, 29871, 29900, 29901, 29871, 13, 462, 1678, 1596, 703, 3782, 970, 1708, 21513, 892, 1476, 23157, 13, 18884, 1683, 29901, 13, 462, 1678, 1596, 29898, 29888, 29908, 29912, 2798, 29913, 970, 1708, 21513, 505, 1063, 1754, 2024, 23157, 13, 18884, 2867, 13, 1678, 1683, 29901, 13, 4706, 1596, 4852, 6028, 29915, 29873, 679, 5993, 363, 613, 8952, 29897, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 1667, 580, 13, 2 ]
simpleredial/model/LatentInteractionModels/dual_bert_compare.bak2.py
gmftbyGMFTBY/SimpleReDial-v1
36
114139
<reponame>gmftbyGMFTBY/SimpleReDial-v1 from model.utils import * class BERTDualCompEncoder(nn.Module): '''This model needs the gray(hard negative) samples, which cannot be used for recall''' def __init__(self, **args): super(BERTDualCompEncoder, self).__init__() model = args['pretrained_model'] s = args['smoothing'] self.gray_num = args['gray_cand_num'] nhead = args['nhead'] dim_feedforward = args['dim_feedforward'] dropout = args['dropout'] num_encoder_layers = args['num_encoder_layers'] self.bce_loss_scale = args['bce_loss_scale'] # ====== Model ====== # self.ctx_encoder = BertEmbedding(model=model) self.can_encoder = BertEmbedding(model=model) hidden_size = self.ctx_encoder.model.config.hidden_size encoder_layer = nn.TransformerEncoderLayer( hidden_size*2, nhead=nhead, dim_feedforward=dim_feedforward, dropout=dropout, ) encoder_norm = nn.LayerNorm(2*hidden_size) self.trs_encoder = nn.TransformerEncoder( encoder_layer, num_encoder_layers, encoder_norm, ) self.trs_head = nn.Sequential( self.trs_encoder, nn.Tanh(), nn.Dropout(p=dropout), nn.Linear(hidden_size*2, hidden_size) ) self.gate = nn.Sequential( nn.Linear(hidden_size*3, hidden_size*2), nn.Tanh(), nn.Dropout(p=dropout), nn.Linear(hidden_size*2, hidden_size), nn.Sigmoid() ) self.cls_head = nn.Sequential( nn.Linear(hidden_size, hidden_size), nn.ReLU(), nn.Dropout(p=dropout), nn.Linear(hidden_size, 1) ) self.criterion = nn.BCEWithLogitsLoss() def _encode(self, cid, rid, cid_mask, rid_mask): cid_rep = self.ctx_encoder(cid, cid_mask) rid_rep = self.can_encoder(rid, rid_mask) b_c = len(cid_rep) rid_reps = rid_rep.unsqueeze(0).repeat(b_c, 1, 1) # [B_c, B_r*gray, E] # fuse context into the response cid_reps = cid_rep.unsqueeze(1).repeat(1, len(rid), 1) # [B_c, B_r*gray, E] for_comp = torch.cat([rid_reps, cid_reps], dim=-1) # [B_c, B_r*gray, 2*E] comp_reps = self.trs_head(for_comp.permute(1, 0, 2)).permute(1, 0, 2) # [B_c, B_r*gray, E] for_gate = torch.cat([comp_reps, rid_reps, cid_reps], dim=-1) gate_score = self.gate(for_gate) # [B_c, B_r*gray, E] rid_fusion_reps = gate_score * rid_reps + (1-gate_score) * comp_reps # rid_reps: [B_c, G, E]; cid_rep: [B_c, E] rid_fusion_reps = rid_fusion_reps.permute(1, 0, 2) # [G, B_c, E] # [B_c, E]; [G, B_c, E], [B_c, G, E] return cid_rep, rid_fusion_reps, comp_reps @torch.no_grad() def get_cand(self, ids, attn_mask): rid_rep = self.can_encoder(ids, attn_mask) return rid_rep @torch.no_grad() def get_ctx(self, ids, attn_mask): cid_rep = self.ctx_encoder(ids, attn_mask) return cid_rep @torch.no_grad() def predict(self, batch): cid = batch['ids'] rid = batch['rids'] rid_mask = batch['rids_mask'] cid = cid.unsqueeze(0) cid_mask = torch.ones_like(cid) batch_size = rid.shape[0] cid_rep, rid_rep, _ = self._encode(cid, rid, cid_mask, rid_mask) dot_product = torch.einsum('ijk,jk->ij', rid_rep, cid_rep).t() # [B_c, G] dot_product /= np.sqrt(768) # scale dot product return dot_product.squeeze(0) # [G] = [B_r*gray] def forward(self, batch): cid = batch['ids'] rid = batch['rids'] cid_mask = batch['ids_mask'] rid_mask = batch['rids_mask'] b_c, b_r = len(cid), int(len(rid)//(self.gray_num+1)) assert b_c == b_r # cid_rep: [B, E]; rid_rep: [G, B, E]; [B_c, G, E] cid_rep, rid_fusion_rep, comp_rid_rep = self._encode(cid, rid, cid_mask, rid_mask) # loss1: advantage loss comp_rid_rep = self.cls_head(comp_rid_rep).squeeze(-1) # [B, G] label = torch.zeros_like(comp_rid_rep) label[torch.arange(b_c), torch.arange(0, len(rid), self.gray_num+1)] = 1. loss = self.bce_loss_scale * self.criterion(comp_rid_rep, label) # loss2: constrastive loss dot_product = torch.einsum('ijk,jk->ij', rid_fusion_rep, cid_rep).t() # [B_c, G] dot_product /= np.sqrt(768) # scale dot product mask = torch.zeros_like(dot_product).cuda() mask[torch.arange(b_c), torch.arange(0, len(rid), self.gray_num+1)] = 1. loss_ = F.log_softmax(dot_product, dim=-1) * mask loss += (-loss_.sum(dim=1)).mean() # acc acc_num = (F.softmax(dot_product, dim=-1).max(dim=-1)[1] == torch.LongTensor(torch.arange(0, len(rid), self.gray_num+1)).cuda()).sum().item() acc = acc_num / b_c return loss, acc
[ 1, 529, 276, 1112, 420, 29958, 29887, 29885, 615, 1609, 21576, 7818, 22716, 29914, 15427, 1123, 29928, 616, 29899, 29894, 29896, 13, 3166, 1904, 29889, 13239, 1053, 334, 13, 13, 1990, 350, 20161, 29928, 950, 6843, 8566, 6119, 29898, 15755, 29889, 7355, 1125, 13, 13, 1678, 14550, 4013, 1904, 4225, 278, 16749, 29898, 6800, 8178, 29897, 11916, 29892, 607, 2609, 367, 1304, 363, 17386, 12008, 13, 268, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3579, 5085, 1125, 13, 4706, 2428, 29898, 13635, 24495, 950, 6843, 8566, 6119, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1904, 353, 6389, 1839, 1457, 3018, 1312, 29918, 4299, 2033, 13, 4706, 269, 353, 6389, 1839, 3844, 29877, 6046, 2033, 13, 4706, 1583, 29889, 21012, 29918, 1949, 353, 6389, 1839, 21012, 29918, 29883, 392, 29918, 1949, 2033, 13, 4706, 302, 2813, 353, 6389, 1839, 29876, 2813, 2033, 13, 4706, 3964, 29918, 18798, 11333, 353, 6389, 1839, 6229, 29918, 18798, 11333, 2033, 13, 4706, 5768, 449, 353, 6389, 1839, 8865, 449, 2033, 13, 4706, 954, 29918, 3977, 6119, 29918, 29277, 353, 6389, 1839, 1949, 29918, 3977, 6119, 29918, 29277, 2033, 13, 4706, 1583, 29889, 29890, 346, 29918, 6758, 29918, 7052, 353, 6389, 1839, 29890, 346, 29918, 6758, 29918, 7052, 2033, 13, 13, 4706, 396, 1275, 2751, 8125, 1275, 2751, 396, 13, 4706, 1583, 29889, 13073, 29918, 3977, 6119, 353, 16662, 6026, 2580, 8497, 29898, 4299, 29922, 4299, 29897, 13, 4706, 1583, 29889, 3068, 29918, 3977, 6119, 353, 16662, 6026, 2580, 8497, 29898, 4299, 29922, 4299, 29897, 13, 13, 4706, 7934, 29918, 2311, 353, 1583, 29889, 13073, 29918, 3977, 6119, 29889, 4299, 29889, 2917, 29889, 10892, 29918, 2311, 13, 4706, 2094, 6119, 29918, 13148, 353, 302, 29876, 29889, 13372, 261, 8566, 6119, 14420, 29898, 13, 9651, 7934, 29918, 2311, 29930, 29906, 29892, 29871, 13, 9651, 302, 2813, 29922, 29876, 2813, 29892, 29871, 13, 9651, 3964, 29918, 18798, 11333, 29922, 6229, 29918, 18798, 11333, 29892, 29871, 13, 9651, 5768, 449, 29922, 8865, 449, 29892, 13, 4706, 1723, 13, 4706, 2094, 6119, 29918, 12324, 353, 302, 29876, 29889, 14420, 29940, 555, 29898, 29906, 29930, 10892, 29918, 2311, 29897, 13, 4706, 1583, 29889, 509, 29879, 29918, 3977, 6119, 353, 302, 29876, 29889, 13372, 261, 8566, 6119, 29898, 13, 9651, 2094, 6119, 29918, 13148, 29892, 13, 9651, 954, 29918, 3977, 6119, 29918, 29277, 29892, 29871, 13, 9651, 2094, 6119, 29918, 12324, 29892, 13, 4706, 1723, 13, 4706, 1583, 29889, 509, 29879, 29918, 2813, 353, 302, 29876, 29889, 16941, 2556, 29898, 13, 9651, 1583, 29889, 509, 29879, 29918, 3977, 6119, 29892, 13, 9651, 302, 29876, 29889, 29911, 27731, 3285, 13, 9651, 302, 29876, 29889, 15063, 449, 29898, 29886, 29922, 8865, 449, 511, 13, 9651, 302, 29876, 29889, 12697, 29898, 10892, 29918, 2311, 29930, 29906, 29892, 7934, 29918, 2311, 29897, 13, 4706, 1723, 13, 4706, 1583, 29889, 17062, 353, 302, 29876, 29889, 16941, 2556, 29898, 13, 9651, 302, 29876, 29889, 12697, 29898, 10892, 29918, 2311, 29930, 29941, 29892, 7934, 29918, 2311, 29930, 29906, 511, 13, 9651, 302, 29876, 29889, 29911, 27731, 3285, 13, 9651, 302, 29876, 29889, 15063, 449, 29898, 29886, 29922, 8865, 449, 511, 13, 9651, 302, 29876, 29889, 12697, 29898, 10892, 29918, 2311, 29930, 29906, 29892, 7934, 29918, 2311, 511, 13, 9651, 302, 29876, 29889, 29903, 335, 29885, 3398, 580, 13, 4706, 1723, 13, 13, 4706, 1583, 29889, 25932, 29918, 2813, 353, 302, 29876, 29889, 16941, 2556, 29898, 13, 9651, 302, 29876, 29889, 12697, 29898, 10892, 29918, 2311, 29892, 7934, 29918, 2311, 511, 13, 9651, 302, 29876, 29889, 1123, 29931, 29965, 3285, 13, 9651, 302, 29876, 29889, 15063, 449, 29898, 29886, 29922, 8865, 449, 511, 13, 9651, 302, 29876, 29889, 12697, 29898, 10892, 29918, 2311, 29892, 29871, 29896, 29897, 13, 4706, 1723, 13, 4706, 1583, 29889, 29883, 5385, 291, 353, 302, 29876, 29889, 29933, 4741, 3047, 3403, 1169, 29931, 2209, 580, 13, 13, 1678, 822, 903, 12508, 29898, 1311, 29892, 274, 333, 29892, 8177, 29892, 274, 333, 29918, 13168, 29892, 8177, 29918, 13168, 1125, 13, 4706, 274, 333, 29918, 3445, 353, 1583, 29889, 13073, 29918, 3977, 6119, 29898, 25232, 29892, 274, 333, 29918, 13168, 29897, 13, 4706, 8177, 29918, 3445, 353, 1583, 29889, 3068, 29918, 3977, 6119, 29898, 2429, 29892, 8177, 29918, 13168, 29897, 13, 4706, 289, 29918, 29883, 353, 7431, 29898, 25232, 29918, 3445, 29897, 13, 4706, 8177, 29918, 276, 567, 353, 8177, 29918, 3445, 29889, 6948, 802, 29872, 911, 29898, 29900, 467, 14358, 29898, 29890, 29918, 29883, 29892, 29871, 29896, 29892, 29871, 29896, 29897, 259, 396, 518, 29933, 29918, 29883, 29892, 350, 29918, 29878, 29930, 21012, 29892, 382, 29962, 13, 4706, 396, 285, 1509, 3030, 964, 278, 2933, 13, 4706, 274, 333, 29918, 276, 567, 353, 274, 333, 29918, 3445, 29889, 6948, 802, 29872, 911, 29898, 29896, 467, 14358, 29898, 29896, 29892, 7431, 29898, 2429, 511, 29871, 29896, 29897, 1678, 396, 518, 29933, 29918, 29883, 29892, 350, 29918, 29878, 29930, 21012, 29892, 382, 29962, 13, 4706, 363, 29918, 2388, 353, 4842, 305, 29889, 4117, 4197, 2429, 29918, 276, 567, 29892, 274, 333, 29918, 276, 567, 1402, 3964, 10457, 29896, 29897, 259, 396, 518, 29933, 29918, 29883, 29892, 350, 29918, 29878, 29930, 21012, 29892, 29871, 29906, 29930, 29923, 29962, 13, 4706, 752, 29918, 276, 567, 353, 1583, 29889, 509, 29879, 29918, 2813, 29898, 1454, 29918, 2388, 29889, 17858, 1082, 29898, 29896, 29892, 29871, 29900, 29892, 29871, 29906, 8106, 17858, 1082, 29898, 29896, 29892, 29871, 29900, 29892, 29871, 29906, 29897, 1678, 396, 518, 29933, 29918, 29883, 29892, 350, 29918, 29878, 29930, 21012, 29892, 382, 29962, 13, 4706, 363, 29918, 17062, 353, 4842, 305, 29889, 4117, 4197, 2388, 29918, 276, 567, 29892, 8177, 29918, 276, 567, 29892, 274, 333, 29918, 276, 567, 1402, 3964, 10457, 29896, 29897, 13, 4706, 12417, 29918, 13628, 353, 1583, 29889, 17062, 29898, 1454, 29918, 17062, 29897, 268, 396, 518, 29933, 29918, 29883, 29892, 350, 29918, 29878, 29930, 21012, 29892, 382, 29962, 13, 4706, 8177, 29918, 29888, 3958, 29918, 276, 567, 353, 12417, 29918, 13628, 334, 8177, 29918, 276, 567, 718, 313, 29896, 29899, 17062, 29918, 13628, 29897, 334, 752, 29918, 276, 567, 13, 4706, 396, 8177, 29918, 276, 567, 29901, 518, 29933, 29918, 29883, 29892, 402, 29892, 382, 1385, 274, 333, 29918, 3445, 29901, 518, 29933, 29918, 29883, 29892, 382, 29962, 13, 4706, 8177, 29918, 29888, 3958, 29918, 276, 567, 353, 8177, 29918, 29888, 3958, 29918, 276, 567, 29889, 17858, 1082, 29898, 29896, 29892, 29871, 29900, 29892, 29871, 29906, 29897, 1678, 396, 518, 29954, 29892, 350, 29918, 29883, 29892, 382, 29962, 13, 13, 4706, 396, 518, 29933, 29918, 29883, 29892, 382, 1385, 518, 29954, 29892, 350, 29918, 29883, 29892, 382, 1402, 518, 29933, 29918, 29883, 29892, 402, 29892, 382, 29962, 13, 4706, 736, 274, 333, 29918, 3445, 29892, 8177, 29918, 29888, 3958, 29918, 276, 567, 29892, 752, 29918, 276, 567, 13, 13, 1678, 732, 7345, 305, 29889, 1217, 29918, 5105, 580, 13, 1678, 822, 679, 29918, 29883, 392, 29898, 1311, 29892, 18999, 29892, 1098, 29876, 29918, 13168, 1125, 13, 4706, 8177, 29918, 3445, 353, 1583, 29889, 3068, 29918, 3977, 6119, 29898, 4841, 29892, 1098, 29876, 29918, 13168, 29897, 13, 4706, 736, 8177, 29918, 3445, 13, 13, 1678, 732, 7345, 305, 29889, 1217, 29918, 5105, 580, 13, 1678, 822, 679, 29918, 13073, 29898, 1311, 29892, 18999, 29892, 1098, 29876, 29918, 13168, 1125, 13, 4706, 274, 333, 29918, 3445, 353, 1583, 29889, 13073, 29918, 3977, 6119, 29898, 4841, 29892, 1098, 29876, 29918, 13168, 29897, 13, 4706, 736, 274, 333, 29918, 3445, 13, 13, 1678, 732, 7345, 305, 29889, 1217, 29918, 5105, 580, 13, 1678, 822, 8500, 29898, 1311, 29892, 9853, 1125, 13, 4706, 274, 333, 353, 9853, 1839, 4841, 2033, 13, 4706, 8177, 353, 9853, 1839, 2429, 29879, 2033, 13, 4706, 8177, 29918, 13168, 353, 9853, 1839, 2429, 29879, 29918, 13168, 2033, 13, 4706, 274, 333, 353, 274, 333, 29889, 6948, 802, 29872, 911, 29898, 29900, 29897, 13, 4706, 274, 333, 29918, 13168, 353, 4842, 305, 29889, 2873, 29918, 4561, 29898, 25232, 29897, 13, 13, 4706, 9853, 29918, 2311, 353, 8177, 29889, 12181, 29961, 29900, 29962, 13, 4706, 274, 333, 29918, 3445, 29892, 8177, 29918, 3445, 29892, 903, 353, 1583, 3032, 12508, 29898, 25232, 29892, 8177, 29892, 274, 333, 29918, 13168, 29892, 8177, 29918, 13168, 29897, 13, 4706, 8329, 29918, 4704, 353, 4842, 305, 29889, 29872, 1144, 398, 877, 13535, 29892, 25467, 976, 823, 742, 8177, 29918, 3445, 29892, 274, 333, 29918, 3445, 467, 29873, 580, 1678, 396, 518, 29933, 29918, 29883, 29892, 402, 29962, 13, 4706, 8329, 29918, 4704, 847, 29922, 7442, 29889, 3676, 29898, 29955, 29953, 29947, 29897, 268, 396, 6287, 8329, 3234, 13, 4706, 736, 8329, 29918, 4704, 29889, 29879, 802, 29872, 911, 29898, 29900, 29897, 1678, 396, 518, 29954, 29962, 353, 518, 29933, 29918, 29878, 29930, 21012, 29962, 13, 268, 13, 1678, 822, 6375, 29898, 1311, 29892, 9853, 1125, 13, 4706, 274, 333, 353, 9853, 1839, 4841, 2033, 13, 4706, 8177, 353, 9853, 1839, 2429, 29879, 2033, 13, 4706, 274, 333, 29918, 13168, 353, 9853, 1839, 4841, 29918, 13168, 2033, 13, 4706, 8177, 29918, 13168, 353, 9853, 1839, 2429, 29879, 29918, 13168, 2033, 13, 13, 4706, 289, 29918, 29883, 29892, 289, 29918, 29878, 353, 7431, 29898, 25232, 511, 938, 29898, 2435, 29898, 2429, 29897, 458, 29898, 1311, 29889, 21012, 29918, 1949, 29974, 29896, 876, 13, 4706, 4974, 289, 29918, 29883, 1275, 289, 29918, 29878, 13, 4706, 396, 274, 333, 29918, 3445, 29901, 518, 29933, 29892, 382, 1385, 8177, 29918, 3445, 29901, 518, 29954, 29892, 350, 29892, 382, 1385, 518, 29933, 29918, 29883, 29892, 402, 29892, 382, 29962, 13, 4706, 274, 333, 29918, 3445, 29892, 8177, 29918, 29888, 3958, 29918, 3445, 29892, 752, 29918, 2429, 29918, 3445, 353, 1583, 3032, 12508, 29898, 25232, 29892, 8177, 29892, 274, 333, 29918, 13168, 29892, 8177, 29918, 13168, 29897, 13, 13, 4706, 396, 6410, 29896, 29901, 10631, 6410, 13, 4706, 752, 29918, 2429, 29918, 3445, 353, 1583, 29889, 25932, 29918, 2813, 29898, 2388, 29918, 2429, 29918, 3445, 467, 29879, 802, 29872, 911, 6278, 29896, 29897, 1678, 396, 518, 29933, 29892, 402, 29962, 13, 4706, 3858, 353, 4842, 305, 29889, 3298, 359, 29918, 4561, 29898, 2388, 29918, 2429, 29918, 3445, 29897, 13, 4706, 3858, 29961, 7345, 305, 29889, 279, 927, 29898, 29890, 29918, 29883, 511, 4842, 305, 29889, 279, 927, 29898, 29900, 29892, 7431, 29898, 2429, 511, 1583, 29889, 21012, 29918, 1949, 29974, 29896, 4638, 353, 29871, 29896, 29889, 13, 4706, 6410, 353, 1583, 29889, 29890, 346, 29918, 6758, 29918, 7052, 334, 1583, 29889, 29883, 5385, 291, 29898, 2388, 29918, 2429, 29918, 3445, 29892, 3858, 29897, 13, 13, 4706, 396, 6410, 29906, 29901, 378, 710, 579, 573, 6410, 13, 4706, 8329, 29918, 4704, 353, 4842, 305, 29889, 29872, 1144, 398, 877, 13535, 29892, 25467, 976, 823, 742, 8177, 29918, 29888, 3958, 29918, 3445, 29892, 274, 333, 29918, 3445, 467, 29873, 580, 1678, 396, 518, 29933, 29918, 29883, 29892, 402, 29962, 13, 4706, 8329, 29918, 4704, 847, 29922, 7442, 29889, 3676, 29898, 29955, 29953, 29947, 29897, 268, 396, 6287, 8329, 3234, 13, 13, 4706, 11105, 353, 4842, 305, 29889, 3298, 359, 29918, 4561, 29898, 6333, 29918, 4704, 467, 29883, 6191, 580, 13, 4706, 11105, 29961, 7345, 305, 29889, 279, 927, 29898, 29890, 29918, 29883, 511, 4842, 305, 29889, 279, 927, 29898, 29900, 29892, 7431, 29898, 2429, 511, 1583, 29889, 21012, 29918, 1949, 29974, 29896, 4638, 353, 29871, 29896, 29889, 13, 4706, 6410, 29918, 353, 383, 29889, 1188, 29918, 2695, 3317, 29898, 6333, 29918, 4704, 29892, 3964, 10457, 29896, 29897, 334, 11105, 13, 4706, 6410, 4619, 8521, 6758, 5396, 2083, 29898, 6229, 29922, 29896, 8106, 12676, 580, 13, 13, 4706, 396, 1035, 13, 4706, 1035, 29918, 1949, 353, 313, 29943, 29889, 2695, 3317, 29898, 6333, 29918, 4704, 29892, 3964, 10457, 29896, 467, 3317, 29898, 6229, 10457, 29896, 9601, 29896, 29962, 1275, 4842, 305, 29889, 8208, 29911, 6073, 29898, 7345, 305, 29889, 279, 927, 29898, 29900, 29892, 7431, 29898, 2429, 511, 1583, 29889, 21012, 29918, 1949, 29974, 29896, 8106, 29883, 6191, 16655, 2083, 2141, 667, 580, 13, 4706, 1035, 353, 1035, 29918, 1949, 847, 289, 29918, 29883, 13, 13, 4706, 736, 6410, 29892, 1035, 13, 2 ]
SHM prototype/arima/ma.py
acharaakshit/Structural-Health-Monitoring
1
1617946
<gh_stars>1-10 import matplotlib.pyplot as plt from pandas import read_csv import pandas as pd import numpy as np def main(): series = read_csv('/home/akshit/Documents/Downloads/2.csv', header=0, index_col=0, squeeze=True) series.columns = ['a', 'b', 'c', 'd'] series['e'] = pow((series['a']*series['a'] + series['b']*series['b'] + series['c']*series['c']), 0.5) df = pd.DataFrame({'$a': series['e']}) fd = np.array(df) #mn_for_trailing_fd_for_centered mn = fd #original_plot plt.plot(fd) #Centered_Averaging for x in range(0, len(fd)-1): if(x>=2 and x<=137990): fd[x]=(fd[x-2]+fd[x-1]+fd[x]+fd[x+1]+fd[x+2])/5 #after_centered print("asdasd") plt.plot(fd) plt.show() #Trailing_Moving_Average for x in range(0, len(fd)-1): if(x>=2 and x<=137995): mn[x] = (mn[x-4] + mn[x-3] + mn[x-2] + mn[x-1] + mn[x])/5 #after_trailing print("Asdqwwe") plt.plot(mn) plt.show() if __name__ == '__main__': main()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 3166, 11701, 1053, 1303, 29918, 7638, 13, 5215, 11701, 408, 10518, 13, 5215, 12655, 408, 7442, 13, 13, 13, 1753, 1667, 7295, 13, 12, 13757, 353, 1303, 29918, 7638, 11219, 5184, 29914, 557, 845, 277, 29914, 20128, 29914, 6767, 18132, 29914, 29906, 29889, 7638, 742, 4839, 29922, 29900, 29892, 2380, 29918, 1054, 29922, 29900, 29892, 269, 802, 29872, 911, 29922, 5574, 29897, 13, 12, 13757, 29889, 13099, 353, 6024, 29874, 742, 525, 29890, 742, 525, 29883, 742, 525, 29881, 2033, 13, 12, 13757, 1839, 29872, 2033, 353, 4764, 3552, 13757, 1839, 29874, 2033, 29930, 13757, 1839, 29874, 2033, 718, 3652, 1839, 29890, 2033, 29930, 13757, 1839, 29890, 2033, 718, 3652, 1839, 29883, 2033, 29930, 13757, 1839, 29883, 2033, 511, 29871, 29900, 29889, 29945, 29897, 13, 13, 12, 2176, 353, 10518, 29889, 17271, 3319, 13090, 29874, 2396, 3652, 1839, 29872, 2033, 1800, 13, 13, 13, 12, 11512, 353, 7442, 29889, 2378, 29898, 2176, 29897, 13, 12, 29937, 23521, 29918, 1454, 29918, 3018, 6504, 29918, 11512, 29918, 1454, 29918, 5064, 287, 13, 12, 23521, 353, 285, 29881, 13, 12, 29937, 13492, 29918, 5317, 13, 12, 572, 29873, 29889, 5317, 29898, 11512, 29897, 13, 13, 13, 12, 29937, 13409, 287, 29918, 29909, 369, 6751, 13, 13, 12, 1454, 921, 297, 3464, 29898, 29900, 29892, 7431, 29898, 11512, 6817, 29896, 1125, 13, 12, 12, 361, 29898, 29916, 18572, 29906, 322, 921, 14065, 29896, 29941, 29955, 29929, 29929, 29900, 1125, 29871, 13, 12, 12, 12, 11512, 29961, 29916, 29962, 7607, 11512, 29961, 29916, 29899, 29906, 10062, 11512, 29961, 29916, 29899, 29896, 10062, 11512, 29961, 29916, 10062, 11512, 29961, 29916, 29974, 29896, 10062, 11512, 29961, 29916, 29974, 29906, 2314, 29914, 29945, 13, 12, 29937, 7045, 29918, 5064, 287, 13, 12, 2158, 703, 294, 17370, 29881, 1159, 13, 12, 572, 29873, 29889, 5317, 29898, 11512, 29897, 13, 12, 572, 29873, 29889, 4294, 580, 13, 12, 29937, 5323, 6504, 29918, 29924, 21081, 29918, 29909, 19698, 13, 12, 1454, 921, 297, 3464, 29898, 29900, 29892, 7431, 29898, 11512, 6817, 29896, 1125, 13, 12, 12, 361, 29898, 29916, 18572, 29906, 322, 921, 14065, 29896, 29941, 29955, 29929, 29929, 29945, 1125, 13, 12, 12, 12, 23521, 29961, 29916, 29962, 353, 313, 23521, 29961, 29916, 29899, 29946, 29962, 718, 28597, 29961, 29916, 29899, 29941, 29962, 718, 28597, 29961, 29916, 29899, 29906, 29962, 718, 28597, 29961, 29916, 29899, 29896, 29962, 718, 28597, 29961, 29916, 2314, 29914, 29945, 13, 13, 12, 29937, 7045, 29918, 3018, 6504, 13, 12, 2158, 703, 2887, 29881, 29939, 29893, 705, 1159, 13, 12, 572, 29873, 29889, 5317, 29898, 23521, 29897, 13, 12, 572, 29873, 29889, 4294, 580, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 12, 3396, 580, 2 ]
sahara/service/edp/oozie/engine.py
ksshanam/sahara
161
33497
<gh_stars>100-1000 # Copyright (c) 2014 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. import abc import os import xml.dom.minidom as xml from oslo_config import cfg from oslo_utils import uuidutils import six from sahara import conductor as c from sahara import context from sahara.service.edp import base_engine from sahara.service.edp import hdfs_helper as h from sahara.service.edp.job_binaries import manager as jb_manager from sahara.service.edp import job_utils from sahara.service.edp.oozie import oozie as o from sahara.service.edp.oozie.workflow_creator import workflow_factory from sahara.service.validations.edp import job_execution as j from sahara.utils import edp from sahara.utils import remote from sahara.utils import xmlutils as x CONF = cfg.CONF conductor = c.API @six.add_metaclass(abc.ABCMeta) class OozieJobEngine(base_engine.JobEngine): def __init__(self, cluster): self.cluster = cluster self.plugin = job_utils.get_plugin(self.cluster) def get_remote_client(self): return o.RemoteOozieClient(self.get_oozie_server_uri(self.cluster), self.get_oozie_server(self.cluster), self.get_hdfs_user()) def get_client(self): # by default engine will return standard oozie client implementation return o.OozieClient(self.get_oozie_server_uri(self.cluster), self.get_oozie_server(self.cluster)) def _get_oozie_job_params(self, hdfs_user, path_to_workflow, oozie_params, use_hbase_lib, scheduled_params=None, job_dir=None, job_execution_type=None): oozie_libpath_key = "oozie.libpath" oozie_libpath = "" rm_path = self.get_resource_manager_uri(self.cluster) nn_path = self.get_name_node_uri(self.cluster) hbase_common_lib_path = "%s%s" % (nn_path, h.HBASE_COMMON_LIB_PATH) if use_hbase_lib: if oozie_libpath_key in oozie_params: oozie_libpath = "%s,%s" % (oozie_params.get(oozie_libpath_key, ""), hbase_common_lib_path) else: oozie_libpath = hbase_common_lib_path if job_execution_type == "scheduled": app_path = "oozie.coord.application.path" job_parameters = { "start": scheduled_params.get('start'), "end": scheduled_params.get('end'), "frequency": scheduled_params.get('frequency'), "workflowAppUri": "%s%s" % (nn_path, job_dir), app_path: "%s%s" % (nn_path, job_dir)} else: app_path = "oozie.wf.application.path" job_parameters = { app_path: "%s%s" % (nn_path, path_to_workflow)} job_parameters["nameNode"] = nn_path job_parameters["user.name"] = hdfs_user job_parameters["jobTracker"] = rm_path job_parameters[oozie_libpath_key] = oozie_libpath job_parameters["oozie.use.system.libpath"] = "true" # Don't let the application path be overwritten, that can't # possibly make any sense if app_path in oozie_params: del oozie_params[app_path] if oozie_libpath_key in oozie_params: del oozie_params[oozie_libpath_key] job_parameters.update(oozie_params) return job_parameters def _upload_workflow_file(self, where, job_dir, wf_xml, hdfs_user): with remote.get_remote(where) as r: h.put_file_to_hdfs(r, wf_xml, "workflow.xml", job_dir, hdfs_user) return "%s/workflow.xml" % job_dir def _upload_coordinator_file(self, where, job_dir, wf_xml, hdfs_user): with remote.get_remote(where) as r: h.put_file_to_hdfs(r, wf_xml, "coordinator.xml", job_dir, hdfs_user) return "%s/coordinator.xml" % job_dir def cancel_job(self, job_execution): if job_execution.engine_job_id is not None: client = self.get_client() client.kill_job(job_execution) return client.get_job_info(job_execution) def get_job_status(self, job_execution): if job_execution.engine_job_id is not None: return self.get_client().get_job_info(job_execution) def _prepare_run_job(self, job_execution): ctx = context.ctx() # This will be a dictionary of tuples, (native_url, runtime_url) # keyed by data_source id data_source_urls = {} prepared_job_params = {} job = conductor.job_get(ctx, job_execution.job_id) input_source, output_source = job_utils.get_input_output_data_sources( job_execution, job, data_source_urls, self.cluster) # Updated_job_configs will be a copy of job_execution.job_configs with # any name or uuid references to data_sources resolved to paths # assuming substitution is enabled. # If substitution is not enabled then updated_job_configs will # just be a reference to job_execution.job_configs to avoid a copy. # Additional_sources will be a list of any data_sources found. additional_sources, updated_job_configs = ( job_utils.resolve_data_source_references(job_execution.job_configs, job_execution.id, data_source_urls, self.cluster) ) job_execution = conductor.job_execution_update( ctx, job_execution, {"data_source_urls": job_utils.to_url_dict(data_source_urls)}) # Now that we've recorded the native urls, we can switch to the # runtime urls data_source_urls = job_utils.to_url_dict(data_source_urls, runtime=True) data_sources = additional_sources + [input_source, output_source] job_utils.prepare_cluster_for_ds(data_sources, self.cluster, updated_job_configs, data_source_urls) proxy_configs = updated_job_configs.get('proxy_configs') configs = updated_job_configs.get('configs', {}) use_hbase_lib = configs.get('edp.hbase_common_lib', {}) # Extract all the 'oozie.' configs so that they can be set in the # job properties file. These are config values for Oozie itself, # not the job code oozie_params = {} for k in list(configs): if k.startswith('oozie.'): oozie_params[k] = configs[k] external_hdfs_urls = self._resolve_external_hdfs_urls( job_execution.job_configs) for url in external_hdfs_urls: h.configure_cluster_for_hdfs(self.cluster, url) hdfs_user = self.get_hdfs_user() # TODO(tmckay): this should probably be "get_namenode" # but that call does not exist in the oozie engine api now. oozie_server = self.get_oozie_server(self.cluster) wf_dir = self._create_hdfs_workflow_dir(oozie_server, job) self._upload_job_files_to_hdfs(oozie_server, wf_dir, job, configs, proxy_configs) wf_xml = workflow_factory.get_workflow_xml( job, self.cluster, updated_job_configs, input_source, output_source, hdfs_user, data_source_urls) path_to_workflow = self._upload_workflow_file(oozie_server, wf_dir, wf_xml, hdfs_user) prepared_job_params['context'] = ctx prepared_job_params['hdfs_user'] = hdfs_user prepared_job_params['path_to_workflow'] = path_to_workflow prepared_job_params['use_hbase_lib'] = use_hbase_lib prepared_job_params['job_execution'] = job_execution prepared_job_params['oozie_params'] = oozie_params prepared_job_params['wf_dir'] = wf_dir prepared_job_params['oozie_server'] = oozie_server return prepared_job_params def run_job(self, job_execution): prepared_job_params = self._prepare_run_job(job_execution) path_to_workflow = prepared_job_params['path_to_workflow'] hdfs_user = prepared_job_params['hdfs_user'] oozie_params = prepared_job_params['oozie_params'] use_hbase_lib = prepared_job_params['use_hbase_lib'] ctx = prepared_job_params['context'] job_execution = prepared_job_params['job_execution'] job_params = self._get_oozie_job_params(hdfs_user, path_to_workflow, oozie_params, use_hbase_lib) client = self.get_client() oozie_job_id = client.add_job(x.create_hadoop_xml(job_params), job_execution) job_execution = conductor.job_execution_get(ctx, job_execution.id) if job_execution.info['status'] == edp.JOB_STATUS_TOBEKILLED: return (None, edp.JOB_STATUS_KILLED, None) conductor.job_execution_update( context.ctx(), job_execution.id, {'info': {'status': edp.JOB_STATUS_READYTORUN}, 'engine_job_id': oozie_job_id}) client.run_job(job_execution, oozie_job_id) try: status = client.get_job_info(job_execution, oozie_job_id)['status'] except Exception: status = None return (oozie_job_id, status, None) def run_scheduled_job(self, job_execution): prepared_job_params = self._prepare_run_job(job_execution) oozie_server = prepared_job_params['oozie_server'] wf_dir = prepared_job_params['wf_dir'] hdfs_user = prepared_job_params['hdfs_user'] oozie_params = prepared_job_params['oozie_params'] use_hbase_lib = prepared_job_params['use_hbase_lib'] ctx = prepared_job_params['context'] job_execution = prepared_job_params['job_execution'] coord_configs = {"jobTracker": "${jobTracker}", "nameNode": "${nameNode}"} coord_xml = self._create_coordinator_xml(coord_configs) self._upload_coordinator_file(oozie_server, wf_dir, coord_xml, hdfs_user) job_params = self._get_oozie_job_params( hdfs_user, None, oozie_params, use_hbase_lib, job_execution.job_configs.job_execution_info, wf_dir, "scheduled") client = self.get_client() oozie_job_id = client.add_job(x.create_hadoop_xml(job_params), job_execution) job_execution = conductor.job_execution_get(ctx, job_execution.id) if job_execution.info['status'] == edp.JOB_STATUS_TOBEKILLED: return (None, edp.JOB_STATUS_KILLED, None) try: status = client.get_job_status(job_execution, oozie_job_id)['status'] except Exception: status = None return (oozie_job_id, status, None) @abc.abstractmethod def get_hdfs_user(self): pass @abc.abstractmethod def create_hdfs_dir(self, remote, dir_name): pass @abc.abstractmethod def get_oozie_server_uri(self, cluster): pass @abc.abstractmethod def get_oozie_server(self, cluster): pass @abc.abstractmethod def get_name_node_uri(self, cluster): pass @abc.abstractmethod def get_resource_manager_uri(self, cluster): pass def validate_job_execution(self, cluster, job, data): # Shell job type requires no specific fields if job.type == edp.JOB_TYPE_SHELL: return # All other types except Java require input and output # objects and Java require main class if job.type == edp.JOB_TYPE_JAVA: j.check_main_class_present(data, job) else: j.check_data_sources(data, job) job_type, subtype = edp.split_job_type(job.type) if job_type == edp.JOB_TYPE_MAPREDUCE and ( subtype == edp.JOB_SUBTYPE_STREAMING): j.check_streaming_present(data, job) @staticmethod def get_possible_job_config(job_type): return workflow_factory.get_possible_job_config(job_type) @staticmethod def get_supported_job_types(): return [edp.JOB_TYPE_HIVE, edp.JOB_TYPE_JAVA, edp.JOB_TYPE_MAPREDUCE, edp.JOB_TYPE_MAPREDUCE_STREAMING, edp.JOB_TYPE_PIG, edp.JOB_TYPE_SHELL] def _prepare_job_binaries(self, job_binaries, r): for jb in job_binaries: jb_manager.JOB_BINARIES.get_job_binary_by_url(jb.url). \ prepare_cluster(jb, remote=r) def _upload_job_files_to_hdfs(self, where, job_dir, job, configs, proxy_configs=None): mains = list(job.mains) if job.mains else [] libs = list(job.libs) if job.libs else [] builtin_libs = edp.get_builtin_binaries(job, configs) uploaded_paths = [] hdfs_user = self.get_hdfs_user() job_dir_suffix = 'lib' if job.type != edp.JOB_TYPE_SHELL else '' lib_dir = os.path.join(job_dir, job_dir_suffix) with remote.get_remote(where) as r: job_binaries = mains + libs self._prepare_job_binaries(job_binaries, r) # upload mains uploaded_paths.extend(self._upload_job_binaries(r, mains, proxy_configs, hdfs_user, job_dir)) # upload libs if len(libs) and job_dir_suffix: # HDFS 2.2.0 fails to put file if the lib dir does not exist self.create_hdfs_dir(r, lib_dir) uploaded_paths.extend(self._upload_job_binaries(r, libs, proxy_configs, hdfs_user, lib_dir)) # upload buitin_libs for lib in builtin_libs: h.put_file_to_hdfs(r, lib['raw'], lib['name'], lib_dir, hdfs_user) uploaded_paths.append(lib_dir + lib['name']) return uploaded_paths def _upload_job_binaries(self, r, job_binaries, proxy_configs, hdfs_user, job_dir): uploaded_paths = [] for jb in job_binaries: path = jb_manager.JOB_BINARIES. \ get_job_binary_by_url(jb.url). \ copy_binary_to_cluster(jb, proxy_configs=proxy_configs, remote=r, context=context.ctx()) h.copy_from_local(r, path, job_dir, hdfs_user) uploaded_paths.append(path) return uploaded_paths def _create_hdfs_workflow_dir(self, where, job): constructed_dir = '/user/%s/' % self.get_hdfs_user() constructed_dir = self._add_postfix(constructed_dir) constructed_dir += '%s/%s' % (job.name, uuidutils.generate_uuid()) with remote.get_remote(where) as r: self.create_hdfs_dir(r, constructed_dir) return constructed_dir def _create_coordinator_xml(self, coord_configs, config_filter=None, appname='coord'): doc = xml.Document() # Create the <coordinator-app> base element coord = doc.createElement('coordinator-app') coord.attributes['name'] = appname coord.attributes['start'] = "${start}" coord.attributes['end'] = "${end}" coord.attributes['frequency'] = "${frequency}" coord.attributes['timezone'] = 'UTC' coord.attributes['xmlns'] = 'uri:oozie:coordinator:0.2' doc.appendChild(coord) action = doc.createElement('action') workflow = doc.createElement('workflow') coord.appendChild(action) action.appendChild(workflow) x.add_text_element_to_tag(doc, "workflow", 'app-path', "${workflowAppUri}") configuration = doc.createElement('configuration') workflow.appendChild(configuration) default_configs = [] if config_filter is not None: default_configs = [cfg['name'] for cfg in config_filter] for name in sorted(coord_configs): if name in default_configs or config_filter is None: x.add_property_to_configuration(doc, name, coord_configs[name]) # Return newly created XML return doc.toprettyxml(indent=" ") def _add_postfix(self, constructed_dir): def _append_slash_if_needed(path): if path[-1] != '/': path += '/' return path constructed_dir = _append_slash_if_needed(constructed_dir) if CONF.job_workflow_postfix: constructed_dir = ''.join([str(constructed_dir), str(CONF.job_workflow_postfix)]) return _append_slash_if_needed(constructed_dir) def _resolve_external_hdfs_urls(self, job_configs): external_hdfs_urls = [] for k, v in six.iteritems(job_configs.get('configs', {})): if isinstance(v, six.string_types) and v.startswith("hdfs://"): external_hdfs_urls.append(v) for k, v in six.iteritems(job_configs.get('params', {})): if isinstance(v, six.string_types) and v.startswith("hdfs://"): external_hdfs_urls.append(v) for v in job_configs.get('args', []): if isinstance(v, six.string_types) and v.startswith("hdfs://"): external_hdfs_urls.append(v) return external_hdfs_urls def suspend_job(self, job_execution): return self._manage_job(job_execution, edp.JOB_ACTION_SUSPEND) def _manage_job(self, job_execution, action): if job_execution.oozie_job_id is not None: client = self.get_client() if action == edp.JOB_ACTION_SUSPEND: client.suspend_job(job_execution) return client.get_job_status(job_execution)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29946, 4673, 7264, 10606, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 1678, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 13, 29937, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 13, 5215, 25638, 13, 5215, 2897, 13, 5215, 4903, 29889, 3129, 29889, 1195, 333, 290, 408, 4903, 13, 13, 3166, 2897, 417, 29918, 2917, 1053, 274, 16434, 13, 3166, 2897, 417, 29918, 13239, 1053, 318, 5416, 13239, 13, 5215, 4832, 13, 13, 3166, 26024, 2518, 1053, 7512, 272, 408, 274, 13, 3166, 26024, 2518, 1053, 3030, 13, 3166, 26024, 2518, 29889, 5509, 29889, 287, 29886, 1053, 2967, 29918, 10599, 13, 3166, 26024, 2518, 29889, 5509, 29889, 287, 29886, 1053, 298, 29069, 29918, 20907, 408, 298, 13, 3166, 26024, 2518, 29889, 5509, 29889, 287, 29886, 29889, 9057, 29918, 2109, 4314, 1053, 8455, 408, 432, 29890, 29918, 12847, 13, 3166, 26024, 2518, 29889, 5509, 29889, 287, 29886, 1053, 4982, 29918, 13239, 13, 3166, 26024, 2518, 29889, 5509, 29889, 287, 29886, 29889, 29877, 2112, 347, 1053, 288, 2112, 347, 408, 288, 13, 3166, 26024, 2518, 29889, 5509, 29889, 287, 29886, 29889, 29877, 2112, 347, 29889, 1287, 1731, 29918, 1037, 1061, 1053, 27321, 29918, 14399, 13, 3166, 26024, 2518, 29889, 5509, 29889, 3084, 800, 29889, 287, 29886, 1053, 4982, 29918, 22256, 408, 432, 13, 3166, 26024, 2518, 29889, 13239, 1053, 1226, 29886, 13, 3166, 26024, 2518, 29889, 13239, 1053, 7592, 13, 3166, 26024, 2518, 29889, 13239, 1053, 4903, 13239, 408, 921, 13, 13, 13, 6007, 29943, 353, 274, 16434, 29889, 6007, 29943, 13, 13, 535, 2199, 272, 353, 274, 29889, 8787, 13, 13, 13, 29992, 28319, 29889, 1202, 29918, 2527, 562, 605, 29898, 10736, 29889, 19658, 19346, 29897, 13, 1990, 438, 2112, 347, 11947, 12412, 29898, 3188, 29918, 10599, 29889, 11947, 12412, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 9867, 1125, 13, 4706, 1583, 29889, 19594, 353, 9867, 13, 4706, 1583, 29889, 8582, 353, 4982, 29918, 13239, 29889, 657, 29918, 8582, 29898, 1311, 29889, 19594, 29897, 13, 13, 1678, 822, 679, 29918, 16674, 29918, 4645, 29898, 1311, 1125, 13, 4706, 736, 288, 29889, 20224, 29949, 2112, 347, 4032, 29898, 1311, 29889, 657, 29918, 29877, 2112, 347, 29918, 2974, 29918, 5338, 29898, 1311, 29889, 19594, 511, 13, 462, 462, 259, 1583, 29889, 657, 29918, 29877, 2112, 347, 29918, 2974, 29898, 1311, 29889, 19594, 511, 13, 462, 462, 259, 1583, 29889, 657, 29918, 29882, 29069, 29918, 1792, 3101, 13, 13, 1678, 822, 679, 29918, 4645, 29898, 1311, 1125, 13, 4706, 396, 491, 2322, 6012, 674, 736, 3918, 288, 2112, 347, 3132, 5314, 13, 4706, 736, 288, 29889, 29949, 2112, 347, 4032, 29898, 1311, 29889, 657, 29918, 29877, 2112, 347, 29918, 2974, 29918, 5338, 29898, 1311, 29889, 19594, 511, 13, 462, 632, 1583, 29889, 657, 29918, 29877, 2112, 347, 29918, 2974, 29898, 1311, 29889, 19594, 876, 13, 13, 1678, 822, 903, 657, 29918, 29877, 2112, 347, 29918, 9057, 29918, 7529, 29898, 1311, 29892, 298, 29069, 29918, 1792, 29892, 2224, 29918, 517, 29918, 1287, 1731, 29892, 13, 462, 795, 288, 2112, 347, 29918, 7529, 29892, 671, 29918, 29882, 3188, 29918, 1982, 29892, 13, 462, 795, 21467, 29918, 7529, 29922, 8516, 29892, 4982, 29918, 3972, 29922, 8516, 29892, 13, 462, 795, 4982, 29918, 22256, 29918, 1853, 29922, 8516, 1125, 13, 4706, 288, 2112, 347, 29918, 1982, 2084, 29918, 1989, 353, 376, 29877, 2112, 347, 29889, 1982, 2084, 29908, 13, 4706, 288, 2112, 347, 29918, 1982, 2084, 353, 5124, 13, 4706, 20241, 29918, 2084, 353, 1583, 29889, 657, 29918, 10314, 29918, 12847, 29918, 5338, 29898, 1311, 29889, 19594, 29897, 13, 4706, 302, 29876, 29918, 2084, 353, 1583, 29889, 657, 29918, 978, 29918, 3177, 29918, 5338, 29898, 1311, 29889, 19594, 29897, 13, 4706, 298, 3188, 29918, 9435, 29918, 1982, 29918, 2084, 353, 11860, 29879, 29995, 29879, 29908, 1273, 313, 15755, 29918, 2084, 29892, 298, 29889, 29950, 25416, 29918, 3217, 7428, 1164, 29918, 5265, 29933, 29918, 10145, 29897, 13, 13, 4706, 565, 671, 29918, 29882, 3188, 29918, 1982, 29901, 13, 9651, 565, 288, 2112, 347, 29918, 1982, 2084, 29918, 1989, 297, 288, 2112, 347, 29918, 7529, 29901, 13, 18884, 288, 2112, 347, 29918, 1982, 2084, 353, 11860, 29879, 24163, 29879, 29908, 1273, 313, 29877, 2112, 347, 29918, 7529, 29889, 657, 29898, 29877, 2112, 347, 29918, 1982, 2084, 29918, 1989, 29892, 13, 462, 462, 965, 376, 4968, 298, 3188, 29918, 9435, 29918, 1982, 29918, 2084, 29897, 13, 9651, 1683, 29901, 13, 18884, 288, 2112, 347, 29918, 1982, 2084, 353, 298, 3188, 29918, 9435, 29918, 1982, 29918, 2084, 13, 13, 4706, 565, 4982, 29918, 22256, 29918, 1853, 1275, 376, 816, 14989, 1115, 13, 9651, 623, 29918, 2084, 353, 376, 29877, 2112, 347, 29889, 1111, 536, 29889, 6214, 29889, 2084, 29908, 13, 9651, 4982, 29918, 16744, 353, 426, 13, 18884, 376, 2962, 1115, 21467, 29918, 7529, 29889, 657, 877, 2962, 5477, 13, 18884, 376, 355, 1115, 21467, 29918, 7529, 29889, 657, 877, 355, 5477, 13, 18884, 376, 10745, 23860, 1115, 21467, 29918, 7529, 29889, 657, 877, 10745, 23860, 5477, 13, 18884, 376, 1287, 1731, 2052, 14702, 1115, 11860, 29879, 29995, 29879, 29908, 1273, 313, 15755, 29918, 2084, 29892, 4982, 29918, 3972, 511, 13, 18884, 623, 29918, 2084, 29901, 11860, 29879, 29995, 29879, 29908, 1273, 313, 15755, 29918, 2084, 29892, 4982, 29918, 3972, 2915, 13, 4706, 1683, 29901, 13, 9651, 623, 29918, 2084, 353, 376, 29877, 2112, 347, 29889, 29893, 29888, 29889, 6214, 29889, 2084, 29908, 13, 9651, 4982, 29918, 16744, 353, 426, 13, 18884, 623, 29918, 2084, 29901, 11860, 29879, 29995, 29879, 29908, 1273, 313, 15755, 29918, 2084, 29892, 2224, 29918, 517, 29918, 1287, 1731, 2915, 13, 13, 4706, 4982, 29918, 16744, 3366, 978, 4247, 3108, 353, 302, 29876, 29918, 2084, 13, 4706, 4982, 29918, 16744, 3366, 1792, 29889, 978, 3108, 353, 298, 29069, 29918, 1792, 13, 4706, 4982, 29918, 16744, 3366, 9057, 5323, 4937, 3108, 353, 20241, 29918, 2084, 13, 4706, 4982, 29918, 16744, 29961, 29877, 2112, 347, 29918, 1982, 2084, 29918, 1989, 29962, 353, 288, 2112, 347, 29918, 1982, 2084, 13, 4706, 4982, 29918, 16744, 3366, 29877, 2112, 347, 29889, 1509, 29889, 5205, 29889, 1982, 2084, 3108, 353, 376, 3009, 29908, 13, 13, 4706, 396, 3872, 29915, 29873, 1235, 278, 2280, 2224, 367, 975, 17625, 29892, 393, 508, 29915, 29873, 13, 4706, 396, 10075, 1207, 738, 4060, 13, 4706, 565, 623, 29918, 2084, 297, 288, 2112, 347, 29918, 7529, 29901, 13, 9651, 628, 288, 2112, 347, 29918, 7529, 29961, 932, 29918, 2084, 29962, 13, 4706, 565, 288, 2112, 347, 29918, 1982, 2084, 29918, 1989, 297, 288, 2112, 347, 29918, 7529, 29901, 13, 9651, 628, 288, 2112, 347, 29918, 7529, 29961, 29877, 2112, 347, 29918, 1982, 2084, 29918, 1989, 29962, 13, 13, 4706, 4982, 29918, 16744, 29889, 5504, 29898, 29877, 2112, 347, 29918, 7529, 29897, 13, 4706, 736, 4982, 29918, 16744, 13, 13, 1678, 822, 903, 9009, 29918, 1287, 1731, 29918, 1445, 29898, 1311, 29892, 988, 29892, 4982, 29918, 3972, 29892, 281, 29888, 29918, 3134, 29892, 298, 29069, 29918, 1792, 1125, 13, 4706, 411, 7592, 29889, 657, 29918, 16674, 29898, 3062, 29897, 408, 364, 29901, 13, 9651, 298, 29889, 649, 29918, 1445, 29918, 517, 29918, 29882, 29069, 29898, 29878, 29892, 281, 29888, 29918, 3134, 29892, 376, 1287, 1731, 29889, 3134, 613, 4982, 29918, 3972, 29892, 298, 29069, 29918, 1792, 29897, 13, 4706, 736, 11860, 29879, 29914, 1287, 1731, 29889, 3134, 29908, 1273, 4982, 29918, 3972, 13, 13, 1678, 822, 903, 9009, 29918, 1111, 4194, 1061, 29918, 1445, 29898, 1311, 29892, 988, 29892, 4982, 29918, 3972, 29892, 281, 29888, 29918, 3134, 29892, 298, 29069, 29918, 1792, 1125, 13, 4706, 411, 7592, 29889, 657, 29918, 16674, 29898, 3062, 29897, 408, 364, 29901, 13, 9651, 298, 29889, 649, 29918, 1445, 29918, 517, 29918, 29882, 29069, 29898, 29878, 29892, 281, 29888, 29918, 3134, 29892, 376, 1111, 4194, 1061, 29889, 3134, 613, 4982, 29918, 3972, 29892, 13, 462, 1669, 298, 29069, 29918, 1792, 29897, 13, 4706, 736, 11860, 29879, 29914, 1111, 4194, 1061, 29889, 3134, 29908, 1273, 4982, 29918, 3972, 13, 13, 1678, 822, 12611, 29918, 9057, 29898, 1311, 29892, 4982, 29918, 22256, 1125, 13, 4706, 565, 4982, 29918, 22256, 29889, 10599, 29918, 9057, 29918, 333, 338, 451, 6213, 29901, 13, 9651, 3132, 353, 1583, 29889, 657, 29918, 4645, 580, 13, 9651, 3132, 29889, 21174, 29918, 9057, 29898, 9057, 29918, 22256, 29897, 13, 9651, 736, 3132, 29889, 657, 29918, 9057, 29918, 3888, 29898, 9057, 29918, 22256, 29897, 13, 13, 1678, 822, 679, 29918, 9057, 29918, 4882, 29898, 1311, 29892, 4982, 29918, 22256, 1125, 13, 4706, 565, 4982, 29918, 22256, 29889, 10599, 29918, 9057, 29918, 333, 338, 451, 6213, 29901, 13, 9651, 736, 1583, 29889, 657, 29918, 4645, 2141, 657, 29918, 9057, 29918, 3888, 29898, 9057, 29918, 22256, 29897, 13, 13, 1678, 822, 903, 19125, 29918, 3389, 29918, 9057, 29898, 1311, 29892, 4982, 29918, 22256, 1125, 13, 4706, 12893, 353, 3030, 29889, 13073, 580, 13, 13, 4706, 396, 910, 674, 367, 263, 8600, 310, 5291, 2701, 29892, 313, 11487, 29918, 2271, 29892, 10073, 29918, 2271, 29897, 13, 4706, 396, 1820, 287, 491, 848, 29918, 4993, 1178, 13, 4706, 848, 29918, 4993, 29918, 26045, 353, 6571, 13, 13, 4706, 13240, 29918, 9057, 29918, 7529, 353, 6571, 13, 13, 4706, 4982, 353, 7512, 272, 29889, 9057, 29918, 657, 29898, 13073, 29892, 4982, 29918, 22256, 29889, 9057, 29918, 333, 29897, 13, 13, 4706, 1881, 29918, 4993, 29892, 1962, 29918, 4993, 353, 4982, 29918, 13239, 29889, 657, 29918, 2080, 29918, 4905, 29918, 1272, 29918, 29879, 2863, 29898, 13, 9651, 4982, 29918, 22256, 29892, 4982, 29892, 848, 29918, 4993, 29918, 26045, 29892, 1583, 29889, 19594, 29897, 13, 13, 4706, 396, 25723, 29918, 9057, 29918, 2917, 29879, 674, 367, 263, 3509, 310, 4982, 29918, 22256, 29889, 9057, 29918, 2917, 29879, 411, 13, 4706, 396, 738, 1024, 470, 318, 5416, 9282, 304, 848, 29918, 29879, 2863, 11527, 304, 10898, 13, 4706, 396, 10241, 23697, 338, 9615, 29889, 13, 4706, 396, 960, 23697, 338, 451, 9615, 769, 4784, 29918, 9057, 29918, 2917, 29879, 674, 13, 4706, 396, 925, 367, 263, 3407, 304, 4982, 29918, 22256, 29889, 9057, 29918, 2917, 29879, 304, 4772, 263, 3509, 29889, 13, 4706, 396, 3462, 3245, 29918, 29879, 2863, 674, 367, 263, 1051, 310, 738, 848, 29918, 29879, 2863, 1476, 29889, 13, 4706, 5684, 29918, 29879, 2863, 29892, 4784, 29918, 9057, 29918, 2917, 29879, 353, 313, 13, 9651, 4982, 29918, 13239, 29889, 17863, 29918, 1272, 29918, 4993, 29918, 276, 10662, 29898, 9057, 29918, 22256, 29889, 9057, 29918, 2917, 29879, 29892, 13, 462, 462, 462, 268, 4982, 29918, 22256, 29889, 333, 29892, 13, 462, 462, 462, 268, 848, 29918, 4993, 29918, 26045, 29892, 13, 462, 462, 462, 268, 1583, 29889, 19594, 29897, 13, 4706, 1723, 13, 13, 4706, 4982, 29918, 22256, 353, 7512, 272, 29889, 9057, 29918, 22256, 29918, 5504, 29898, 13, 9651, 12893, 29892, 4982, 29918, 22256, 29892, 13, 9651, 8853, 1272, 29918, 4993, 29918, 26045, 1115, 4982, 29918, 13239, 29889, 517, 29918, 2271, 29918, 8977, 29898, 1272, 29918, 4993, 29918, 26045, 26972, 13, 13, 4706, 396, 2567, 393, 591, 29915, 345, 10478, 278, 7531, 23942, 29892, 591, 508, 4607, 304, 278, 13, 4706, 396, 10073, 23942, 13, 4706, 848, 29918, 4993, 29918, 26045, 353, 4982, 29918, 13239, 29889, 517, 29918, 2271, 29918, 8977, 29898, 1272, 29918, 4993, 29918, 26045, 29892, 13, 462, 462, 462, 10073, 29922, 5574, 29897, 13, 13, 4706, 848, 29918, 29879, 2863, 353, 5684, 29918, 29879, 2863, 718, 518, 2080, 29918, 4993, 29892, 1962, 29918, 4993, 29962, 13, 4706, 4982, 29918, 13239, 29889, 19125, 29918, 19594, 29918, 1454, 29918, 6289, 29898, 1272, 29918, 29879, 2863, 29892, 13, 462, 462, 308, 1583, 29889, 19594, 29892, 4784, 29918, 9057, 29918, 2917, 29879, 29892, 13, 462, 462, 308, 848, 29918, 4993, 29918, 26045, 29897, 13, 13, 4706, 10166, 29918, 2917, 29879, 353, 4784, 29918, 9057, 29918, 2917, 29879, 29889, 657, 877, 14701, 29918, 2917, 29879, 1495, 13, 4706, 2295, 29879, 353, 4784, 29918, 9057, 29918, 2917, 29879, 29889, 657, 877, 2917, 29879, 742, 426, 1800, 13, 4706, 671, 29918, 29882, 3188, 29918, 1982, 353, 2295, 29879, 29889, 657, 877, 287, 29886, 29889, 29882, 3188, 29918, 9435, 29918, 1982, 742, 426, 1800, 13, 13, 4706, 396, 7338, 1461, 599, 278, 525, 29877, 2112, 347, 6169, 2295, 29879, 577, 393, 896, 508, 367, 731, 297, 278, 13, 4706, 396, 4982, 4426, 934, 29889, 4525, 526, 2295, 1819, 363, 438, 2112, 347, 3528, 29892, 13, 4706, 396, 451, 278, 4982, 775, 13, 4706, 288, 2112, 347, 29918, 7529, 353, 6571, 13, 4706, 363, 413, 297, 1051, 29898, 2917, 29879, 1125, 13, 9651, 565, 413, 29889, 27382, 2541, 877, 29877, 2112, 347, 6169, 1125, 13, 18884, 288, 2112, 347, 29918, 7529, 29961, 29895, 29962, 353, 2295, 29879, 29961, 29895, 29962, 13, 13, 4706, 7029, 29918, 29882, 29069, 29918, 26045, 353, 1583, 3032, 17863, 29918, 23176, 29918, 29882, 29069, 29918, 26045, 29898, 13, 9651, 4982, 29918, 22256, 29889, 9057, 29918, 2917, 29879, 29897, 13, 4706, 363, 3142, 297, 7029, 29918, 29882, 29069, 29918, 26045, 29901, 13, 9651, 298, 29889, 17591, 29918, 19594, 29918, 1454, 29918, 29882, 29069, 29898, 1311, 29889, 19594, 29892, 3142, 29897, 13, 13, 4706, 298, 29069, 29918, 1792, 353, 1583, 29889, 657, 29918, 29882, 29069, 29918, 1792, 580, 13, 13, 4706, 396, 14402, 29898, 18276, 384, 388, 1125, 445, 881, 3117, 367, 376, 657, 29918, 29876, 5071, 356, 29908, 13, 4706, 396, 541, 393, 1246, 947, 451, 1863, 297, 278, 288, 2112, 347, 6012, 7882, 1286, 29889, 13, 4706, 288, 2112, 347, 29918, 2974, 353, 1583, 29889, 657, 29918, 29877, 2112, 347, 29918, 2974, 29898, 1311, 29889, 19594, 29897, 13, 13, 4706, 281, 29888, 29918, 3972, 353, 1583, 3032, 3258, 29918, 29882, 29069, 29918, 1287, 1731, 29918, 3972, 29898, 29877, 2112, 347, 29918, 2974, 29892, 4982, 29897, 13, 4706, 1583, 3032, 9009, 29918, 9057, 29918, 5325, 29918, 517, 29918, 29882, 29069, 29898, 29877, 2112, 347, 29918, 2974, 29892, 281, 29888, 29918, 3972, 29892, 4982, 29892, 2295, 29879, 29892, 13, 462, 462, 539, 10166, 29918, 2917, 29879, 29897, 13, 13, 4706, 281, 29888, 29918, 3134, 353, 27321, 29918, 14399, 29889, 657, 29918, 1287, 1731, 29918, 3134, 29898, 13, 9651, 4982, 29892, 1583, 29889, 19594, 29892, 4784, 29918, 9057, 29918, 2917, 29879, 29892, 13, 9651, 1881, 29918, 4993, 29892, 1962, 29918, 4993, 29892, 13, 9651, 298, 29069, 29918, 1792, 29892, 848, 29918, 4993, 29918, 26045, 29897, 13, 13, 4706, 2224, 29918, 517, 29918, 1287, 1731, 353, 1583, 3032, 9009, 29918, 1287, 1731, 29918, 1445, 29898, 29877, 2112, 347, 29918, 2974, 29892, 281, 29888, 29918, 3972, 29892, 13, 462, 462, 462, 418, 281, 29888, 29918, 3134, 29892, 298, 29069, 29918, 1792, 29897, 13, 13, 4706, 13240, 29918, 9057, 29918, 7529, 1839, 4703, 2033, 353, 12893, 13, 4706, 13240, 29918, 9057, 29918, 7529, 1839, 29882, 29069, 29918, 1792, 2033, 353, 298, 29069, 29918, 1792, 13, 4706, 13240, 29918, 9057, 29918, 7529, 1839, 2084, 29918, 517, 29918, 1287, 1731, 2033, 353, 2224, 29918, 517, 29918, 1287, 1731, 13, 4706, 13240, 29918, 9057, 29918, 7529, 1839, 1509, 29918, 29882, 3188, 29918, 1982, 2033, 353, 671, 29918, 29882, 3188, 29918, 1982, 13, 4706, 13240, 29918, 9057, 29918, 7529, 1839, 9057, 29918, 22256, 2033, 353, 4982, 29918, 22256, 13, 4706, 13240, 29918, 9057, 29918, 7529, 1839, 29877, 2112, 347, 29918, 7529, 2033, 353, 288, 2112, 347, 29918, 7529, 13, 4706, 13240, 29918, 9057, 29918, 7529, 1839, 29893, 29888, 29918, 3972, 2033, 353, 281, 29888, 29918, 3972, 13, 4706, 13240, 29918, 9057, 29918, 7529, 1839, 29877, 2112, 347, 29918, 2974, 2033, 353, 288, 2112, 347, 29918, 2974, 13, 13, 4706, 736, 13240, 29918, 9057, 29918, 7529, 13, 13, 1678, 822, 1065, 29918, 9057, 29898, 1311, 29892, 4982, 29918, 22256, 1125, 13, 4706, 13240, 29918, 9057, 29918, 7529, 353, 1583, 3032, 19125, 29918, 3389, 29918, 9057, 29898, 9057, 29918, 22256, 29897, 13, 4706, 2224, 29918, 517, 29918, 1287, 1731, 353, 13240, 29918, 9057, 29918, 7529, 1839, 2084, 29918, 517, 29918, 1287, 1731, 2033, 13, 4706, 298, 29069, 29918, 1792, 353, 13240, 29918, 9057, 29918, 7529, 1839, 29882, 29069, 29918, 1792, 2033, 13, 4706, 288, 2112, 347, 29918, 7529, 353, 13240, 29918, 9057, 29918, 7529, 1839, 29877, 2112, 347, 29918, 7529, 2033, 13, 4706, 671, 29918, 29882, 3188, 29918, 1982, 353, 13240, 29918, 9057, 29918, 7529, 1839, 1509, 29918, 29882, 3188, 29918, 1982, 2033, 13, 4706, 12893, 353, 13240, 29918, 9057, 29918, 7529, 1839, 4703, 2033, 13, 4706, 4982, 29918, 22256, 353, 13240, 29918, 9057, 29918, 7529, 1839, 9057, 29918, 22256, 2033, 13, 13, 4706, 4982, 29918, 7529, 353, 1583, 3032, 657, 29918, 29877, 2112, 347, 29918, 9057, 29918, 7529, 29898, 29882, 29069, 29918, 1792, 29892, 13, 462, 462, 18884, 2224, 29918, 517, 29918, 1287, 1731, 29892, 13, 462, 462, 18884, 288, 2112, 347, 29918, 7529, 29892, 13, 462, 462, 18884, 671, 29918, 29882, 3188, 29918, 1982, 29897, 13, 13, 4706, 3132, 353, 1583, 29889, 657, 29918, 4645, 580, 13, 4706, 288, 2112, 347, 29918, 9057, 29918, 333, 353, 3132, 29889, 1202, 29918, 9057, 29898, 29916, 29889, 3258, 29918, 22075, 29918, 3134, 29898, 9057, 29918, 7529, 511, 13, 462, 462, 418, 4982, 29918, 22256, 29897, 13, 4706, 4982, 29918, 22256, 353, 7512, 272, 29889, 9057, 29918, 22256, 29918, 657, 29898, 13073, 29892, 4982, 29918, 22256, 29889, 333, 29897, 13, 4706, 565, 4982, 29918, 22256, 29889, 3888, 1839, 4882, 2033, 1275, 1226, 29886, 29889, 29967, 14824, 29918, 27047, 29918, 4986, 15349, 29968, 6227, 20566, 29901, 13, 9651, 736, 313, 8516, 29892, 1226, 29886, 29889, 29967, 14824, 29918, 27047, 29918, 29968, 6227, 20566, 29892, 6213, 29897, 13, 13, 4706, 7512, 272, 29889, 9057, 29918, 22256, 29918, 5504, 29898, 13, 9651, 3030, 29889, 13073, 3285, 4982, 29918, 22256, 29889, 333, 29892, 13, 9651, 11117, 3888, 2396, 11117, 4882, 2396, 1226, 29886, 29889, 29967, 14824, 29918, 27047, 29918, 16310, 29979, 29911, 1955, 3904, 1118, 13, 632, 525, 10599, 29918, 9057, 29918, 333, 2396, 288, 2112, 347, 29918, 9057, 29918, 333, 1800, 13, 13, 4706, 3132, 29889, 3389, 29918, 9057, 29898, 9057, 29918, 22256, 29892, 288, 2112, 347, 29918, 9057, 29918, 333, 29897, 13, 4706, 1018, 29901, 13, 9651, 4660, 353, 3132, 29889, 657, 29918, 9057, 29918, 3888, 29898, 9057, 29918, 22256, 29892, 288, 2112, 347, 29918, 9057, 29918, 333, 29897, 1839, 4882, 2033, 13, 4706, 5174, 8960, 29901, 13, 9651, 4660, 353, 6213, 13, 4706, 736, 313, 29877, 2112, 347, 29918, 9057, 29918, 333, 29892, 4660, 29892, 6213, 29897, 13, 13, 1678, 822, 1065, 29918, 816, 14989, 29918, 9057, 29898, 1311, 29892, 4982, 29918, 22256, 1125, 13, 4706, 13240, 29918, 9057, 29918, 7529, 353, 1583, 3032, 19125, 29918, 3389, 29918, 9057, 29898, 9057, 29918, 22256, 29897, 13, 4706, 288, 2112, 347, 29918, 2974, 353, 13240, 29918, 9057, 29918, 7529, 1839, 29877, 2112, 347, 29918, 2974, 2033, 13, 4706, 281, 29888, 29918, 3972, 353, 13240, 29918, 9057, 29918, 7529, 1839, 29893, 29888, 29918, 3972, 2033, 13, 4706, 298, 29069, 29918, 1792, 353, 13240, 29918, 9057, 29918, 7529, 1839, 29882, 29069, 29918, 1792, 2033, 13, 4706, 288, 2112, 347, 29918, 7529, 353, 13240, 29918, 9057, 29918, 7529, 1839, 29877, 2112, 347, 29918, 7529, 2033, 13, 4706, 671, 29918, 29882, 3188, 29918, 1982, 353, 13240, 29918, 9057, 29918, 7529, 1839, 1509, 29918, 29882, 3188, 29918, 1982, 2033, 13, 4706, 12893, 353, 13240, 29918, 9057, 29918, 7529, 1839, 4703, 2033, 13, 4706, 4982, 29918, 22256, 353, 13240, 29918, 9057, 29918, 7529, 1839, 9057, 29918, 22256, 2033, 13, 13, 4706, 29311, 29918, 2917, 29879, 353, 8853, 9057, 5323, 4937, 1115, 11568, 9057, 5323, 4937, 17671, 13, 462, 308, 376, 978, 4247, 1115, 11568, 978, 4247, 5038, 29913, 13, 13, 4706, 29311, 29918, 3134, 353, 1583, 3032, 3258, 29918, 1111, 4194, 1061, 29918, 3134, 29898, 1111, 536, 29918, 2917, 29879, 29897, 13, 13, 4706, 1583, 3032, 9009, 29918, 1111, 4194, 1061, 29918, 1445, 29898, 29877, 2112, 347, 29918, 2974, 29892, 281, 29888, 29918, 3972, 29892, 29311, 29918, 3134, 29892, 13, 462, 462, 418, 298, 29069, 29918, 1792, 29897, 13, 4706, 4982, 29918, 7529, 353, 1583, 3032, 657, 29918, 29877, 2112, 347, 29918, 9057, 29918, 7529, 29898, 13, 9651, 298, 29069, 29918, 1792, 29892, 6213, 29892, 288, 2112, 347, 29918, 7529, 29892, 671, 29918, 29882, 3188, 29918, 1982, 29892, 13, 9651, 4982, 29918, 22256, 29889, 9057, 29918, 2917, 29879, 29889, 9057, 29918, 22256, 29918, 3888, 29892, 281, 29888, 29918, 3972, 29892, 13, 9651, 376, 816, 14989, 1159, 13, 13, 4706, 3132, 353, 1583, 29889, 657, 29918, 4645, 580, 13, 4706, 288, 2112, 347, 29918, 9057, 29918, 333, 353, 3132, 29889, 1202, 29918, 9057, 29898, 29916, 29889, 3258, 29918, 22075, 29918, 3134, 29898, 9057, 29918, 7529, 511, 13, 462, 462, 418, 4982, 29918, 22256, 29897, 13, 13, 4706, 4982, 29918, 22256, 353, 7512, 272, 29889, 9057, 29918, 22256, 29918, 657, 29898, 13073, 29892, 4982, 29918, 22256, 29889, 333, 29897, 13, 13, 4706, 565, 4982, 29918, 22256, 29889, 3888, 1839, 4882, 2033, 1275, 1226, 29886, 29889, 29967, 14824, 29918, 27047, 29918, 4986, 15349, 29968, 6227, 20566, 29901, 13, 9651, 736, 313, 8516, 29892, 1226, 29886, 29889, 29967, 14824, 29918, 27047, 29918, 29968, 6227, 20566, 29892, 6213, 29897, 13, 4706, 1018, 29901, 13, 9651, 4660, 353, 3132, 29889, 657, 29918, 9057, 29918, 4882, 29898, 9057, 29918, 22256, 29892, 13, 462, 462, 965, 288, 2112, 347, 29918, 9057, 29918, 333, 29897, 1839, 4882, 2033, 13, 4706, 5174, 8960, 29901, 13, 9651, 4660, 353, 6213, 13, 4706, 736, 313, 29877, 2112, 347, 29918, 9057, 29918, 333, 29892, 4660, 29892, 6213, 29897, 13, 13, 1678, 732, 10736, 29889, 16595, 5696, 13, 1678, 822, 679, 29918, 29882, 29069, 29918, 1792, 29898, 1311, 1125, 13, 4706, 1209, 13, 13, 1678, 732, 10736, 29889, 16595, 5696, 13, 1678, 822, 1653, 29918, 29882, 29069, 29918, 3972, 29898, 1311, 29892, 7592, 29892, 4516, 29918, 978, 1125, 13, 4706, 1209, 13, 13, 1678, 732, 10736, 29889, 16595, 5696, 13, 1678, 822, 679, 29918, 29877, 2112, 347, 29918, 2974, 29918, 5338, 29898, 1311, 29892, 9867, 1125, 13, 4706, 1209, 13, 13, 1678, 732, 10736, 29889, 16595, 5696, 13, 1678, 822, 679, 29918, 29877, 2112, 347, 29918, 2974, 29898, 1311, 29892, 9867, 1125, 13, 4706, 1209, 13, 13, 1678, 732, 10736, 29889, 16595, 5696, 13, 1678, 822, 679, 29918, 978, 29918, 3177, 29918, 5338, 29898, 1311, 29892, 9867, 1125, 13, 4706, 1209, 13, 13, 1678, 732, 10736, 29889, 16595, 5696, 13, 1678, 822, 679, 29918, 10314, 29918, 12847, 29918, 5338, 29898, 1311, 29892, 9867, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 12725, 29918, 9057, 29918, 22256, 29898, 1311, 29892, 9867, 29892, 4982, 29892, 848, 1125, 13, 4706, 396, 1383, 514, 4982, 1134, 6858, 694, 2702, 4235, 13, 4706, 565, 4982, 29889, 1853, 1275, 1226, 29886, 29889, 29967, 14824, 29918, 11116, 29918, 7068, 29923, 2208, 29901, 13, 9651, 736, 13, 4706, 396, 2178, 916, 4072, 5174, 3355, 1996, 1881, 322, 1962, 13, 4706, 396, 3618, 322, 3355, 1996, 1667, 770, 13, 4706, 565, 4982, 29889, 1853, 1275, 1226, 29886, 29889, 29967, 14824, 29918, 11116, 29918, 29967, 26612, 29901, 13, 9651, 432, 29889, 3198, 29918, 3396, 29918, 1990, 29918, 6338, 29898, 1272, 29892, 4982, 29897, 13, 4706, 1683, 29901, 13, 9651, 432, 29889, 3198, 29918, 1272, 29918, 29879, 2863, 29898, 1272, 29892, 4982, 29897, 13, 13, 9651, 4982, 29918, 1853, 29892, 1014, 1853, 353, 1226, 29886, 29889, 5451, 29918, 9057, 29918, 1853, 29898, 9057, 29889, 1853, 29897, 13, 9651, 565, 4982, 29918, 1853, 1275, 1226, 29886, 29889, 29967, 14824, 29918, 11116, 29918, 1529, 15094, 14849, 4741, 322, 313, 13, 462, 1678, 1014, 1853, 1275, 1226, 29886, 29889, 29967, 14824, 29918, 20633, 11116, 29918, 1254, 1525, 5194, 4214, 1125, 13, 18884, 432, 29889, 3198, 29918, 5461, 292, 29918, 6338, 29898, 1272, 29892, 4982, 29897, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 679, 29918, 27338, 29918, 9057, 29918, 2917, 29898, 9057, 29918, 1853, 1125, 13, 4706, 736, 27321, 29918, 14399, 29889, 657, 29918, 27338, 29918, 9057, 29918, 2917, 29898, 9057, 29918, 1853, 29897, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 679, 29918, 23765, 29918, 9057, 29918, 8768, 7295, 13, 4706, 736, 518, 287, 29886, 29889, 29967, 14824, 29918, 11116, 29918, 29950, 18474, 29892, 13, 18884, 1226, 29886, 29889, 29967, 14824, 29918, 11116, 29918, 29967, 26612, 29892, 13, 18884, 1226, 29886, 29889, 29967, 14824, 29918, 11116, 29918, 1529, 15094, 14849, 4741, 29892, 13, 18884, 1226, 29886, 29889, 29967, 14824, 29918, 11116, 29918, 1529, 15094, 14849, 4741, 29918, 1254, 1525, 5194, 4214, 29892, 13, 18884, 1226, 29886, 29889, 29967, 14824, 29918, 11116, 29918, 2227, 29954, 29892, 13, 18884, 1226, 29886, 29889, 29967, 14824, 29918, 11116, 29918, 7068, 29923, 2208, 29962, 13, 13, 1678, 822, 903, 19125, 29918, 9057, 29918, 2109, 4314, 29898, 1311, 29892, 4982, 29918, 2109, 4314, 29892, 364, 1125, 13, 4706, 363, 432, 29890, 297, 4982, 29918, 2109, 4314, 29901, 13, 9651, 432, 29890, 29918, 12847, 29889, 29967, 14824, 29918, 29933, 1177, 1718, 29059, 29889, 657, 29918, 9057, 29918, 19541, 29918, 1609, 29918, 2271, 29898, 16761, 29889, 2271, 467, 320, 13, 18884, 19012, 29918, 19594, 29898, 16761, 29892, 7592, 29922, 29878, 29897, 13, 13, 1678, 822, 903, 9009, 29918, 9057, 29918, 5325, 29918, 517, 29918, 29882, 29069, 29898, 1311, 29892, 988, 29892, 4982, 29918, 3972, 29892, 4982, 29892, 2295, 29879, 29892, 13, 462, 462, 29871, 10166, 29918, 2917, 29879, 29922, 8516, 1125, 13, 13, 4706, 1667, 29879, 353, 1051, 29898, 9057, 29889, 29885, 2708, 29897, 565, 4982, 29889, 29885, 2708, 1683, 5159, 13, 4706, 4303, 29879, 353, 1051, 29898, 9057, 29889, 10254, 29897, 565, 4982, 29889, 10254, 1683, 5159, 13, 4706, 4240, 262, 29918, 10254, 353, 1226, 29886, 29889, 657, 29918, 16145, 262, 29918, 2109, 4314, 29898, 9057, 29892, 2295, 29879, 29897, 13, 4706, 20373, 29918, 24772, 353, 5159, 13, 4706, 298, 29069, 29918, 1792, 353, 1583, 29889, 657, 29918, 29882, 29069, 29918, 1792, 580, 13, 4706, 4982, 29918, 3972, 29918, 2146, 600, 861, 353, 525, 1982, 29915, 565, 4982, 29889, 1853, 2804, 1226, 29886, 29889, 29967, 14824, 29918, 11116, 29918, 7068, 29923, 2208, 1683, 6629, 13, 4706, 4303, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 9057, 29918, 3972, 29892, 4982, 29918, 3972, 29918, 2146, 600, 861, 29897, 13, 13, 4706, 411, 7592, 29889, 657, 29918, 16674, 29898, 3062, 29897, 408, 364, 29901, 13, 9651, 4982, 29918, 2109, 4314, 353, 1667, 29879, 718, 4303, 29879, 13, 9651, 1583, 3032, 19125, 29918, 9057, 29918, 2109, 4314, 29898, 9057, 29918, 2109, 4314, 29892, 364, 29897, 13, 13, 9651, 396, 6441, 1667, 29879, 13, 9651, 20373, 29918, 24772, 29889, 21843, 29898, 1311, 3032, 9009, 29918, 9057, 29918, 2109, 4314, 29898, 29878, 29892, 1667, 29879, 29892, 13, 462, 462, 462, 9651, 10166, 29918, 2917, 29879, 29892, 13, 462, 462, 462, 9651, 298, 29069, 29918, 1792, 29892, 13, 462, 462, 462, 9651, 4982, 29918, 3972, 876, 13, 9651, 396, 6441, 4303, 29879, 13, 9651, 565, 7431, 29898, 10254, 29897, 322, 4982, 29918, 3972, 29918, 2146, 600, 861, 29901, 13, 18884, 396, 379, 4037, 29903, 29871, 29906, 29889, 29906, 29889, 29900, 8465, 304, 1925, 934, 565, 278, 4303, 4516, 947, 451, 1863, 13, 18884, 1583, 29889, 3258, 29918, 29882, 29069, 29918, 3972, 29898, 29878, 29892, 4303, 29918, 3972, 29897, 13, 9651, 20373, 29918, 24772, 29889, 21843, 29898, 1311, 3032, 9009, 29918, 9057, 29918, 2109, 4314, 29898, 29878, 29892, 4303, 29879, 29892, 13, 462, 462, 462, 9651, 10166, 29918, 2917, 29879, 29892, 13, 462, 462, 462, 9651, 298, 29069, 29918, 1792, 29892, 13, 462, 462, 462, 9651, 4303, 29918, 3972, 876, 13, 9651, 396, 6441, 1321, 277, 262, 29918, 10254, 13, 9651, 363, 4303, 297, 4240, 262, 29918, 10254, 29901, 13, 18884, 298, 29889, 649, 29918, 1445, 29918, 517, 29918, 29882, 29069, 29898, 29878, 29892, 4303, 1839, 1610, 7464, 4303, 1839, 978, 7464, 4303, 29918, 3972, 29892, 13, 462, 462, 259, 298, 29069, 29918, 1792, 29897, 13, 18884, 20373, 29918, 24772, 29889, 4397, 29898, 1982, 29918, 3972, 718, 4303, 1839, 978, 11287, 13, 4706, 736, 20373, 29918, 24772, 13, 13, 1678, 822, 903, 9009, 29918, 9057, 29918, 2109, 4314, 29898, 1311, 29892, 364, 29892, 4982, 29918, 2109, 4314, 29892, 10166, 29918, 2917, 29879, 29892, 13, 462, 632, 298, 29069, 29918, 1792, 29892, 4982, 29918, 3972, 1125, 13, 4706, 20373, 29918, 24772, 353, 5159, 13, 4706, 363, 432, 29890, 297, 4982, 29918, 2109, 4314, 29901, 13, 9651, 2224, 353, 432, 29890, 29918, 12847, 29889, 29967, 14824, 29918, 29933, 1177, 1718, 29059, 29889, 320, 13, 18884, 679, 29918, 9057, 29918, 19541, 29918, 1609, 29918, 2271, 29898, 16761, 29889, 2271, 467, 320, 13, 18884, 3509, 29918, 19541, 29918, 517, 29918, 19594, 29898, 16761, 29892, 10166, 29918, 2917, 29879, 29922, 14701, 29918, 2917, 29879, 29892, 13, 462, 462, 539, 7592, 29922, 29878, 29892, 3030, 29922, 4703, 29889, 13073, 3101, 13, 13, 9651, 298, 29889, 8552, 29918, 3166, 29918, 2997, 29898, 29878, 29892, 2224, 29892, 4982, 29918, 3972, 29892, 298, 29069, 29918, 1792, 29897, 13, 9651, 20373, 29918, 24772, 29889, 4397, 29898, 2084, 29897, 13, 4706, 736, 20373, 29918, 24772, 13, 13, 1678, 822, 903, 3258, 29918, 29882, 29069, 29918, 1287, 1731, 29918, 3972, 29898, 1311, 29892, 988, 29892, 4982, 1125, 13, 4706, 13319, 29918, 3972, 353, 8207, 1792, 22584, 29879, 22208, 1273, 1583, 29889, 657, 29918, 29882, 29069, 29918, 1792, 580, 13, 4706, 13319, 29918, 3972, 353, 1583, 3032, 1202, 29918, 2490, 5878, 29898, 11433, 287, 29918, 3972, 29897, 13, 4706, 13319, 29918, 3972, 4619, 14210, 29879, 22584, 29879, 29915, 1273, 313, 9057, 29889, 978, 29892, 318, 5416, 13239, 29889, 17158, 29918, 25118, 3101, 13, 4706, 411, 7592, 29889, 657, 29918, 16674, 29898, 3062, 29897, 408, 364, 29901, 13, 9651, 1583, 29889, 3258, 29918, 29882, 29069, 29918, 3972, 29898, 29878, 29892, 13319, 29918, 3972, 29897, 13, 13, 4706, 736, 13319, 29918, 3972, 13, 13, 1678, 822, 903, 3258, 29918, 1111, 4194, 1061, 29918, 3134, 29898, 1311, 29892, 29311, 29918, 2917, 29879, 29892, 2295, 29918, 4572, 29922, 8516, 29892, 13, 462, 18884, 623, 978, 2433, 1111, 536, 29374, 13, 4706, 1574, 353, 4903, 29889, 6268, 580, 13, 13, 4706, 396, 6204, 278, 529, 1111, 4194, 1061, 29899, 932, 29958, 2967, 1543, 13, 4706, 29311, 353, 1574, 29889, 22662, 877, 1111, 4194, 1061, 29899, 932, 1495, 13, 4706, 29311, 29889, 15697, 1839, 978, 2033, 353, 623, 978, 13, 4706, 29311, 29889, 15697, 1839, 2962, 2033, 353, 11568, 2962, 5038, 13, 4706, 29311, 29889, 15697, 1839, 355, 2033, 353, 11568, 355, 5038, 13, 4706, 29311, 29889, 15697, 1839, 10745, 23860, 2033, 353, 11568, 10745, 23860, 5038, 13, 4706, 29311, 29889, 15697, 1839, 2230, 8028, 2033, 353, 525, 26913, 29915, 13, 4706, 29311, 29889, 15697, 1839, 18295, 2033, 353, 525, 5338, 29901, 29877, 2112, 347, 29901, 1111, 4194, 1061, 29901, 29900, 29889, 29906, 29915, 13, 13, 4706, 1574, 29889, 23850, 29898, 1111, 536, 29897, 13, 13, 4706, 3158, 353, 1574, 29889, 22662, 877, 2467, 1495, 13, 4706, 27321, 353, 1574, 29889, 22662, 877, 1287, 1731, 1495, 13, 4706, 29311, 29889, 23850, 29898, 2467, 29897, 13, 4706, 3158, 29889, 23850, 29898, 1287, 1731, 29897, 13, 4706, 921, 29889, 1202, 29918, 726, 29918, 5029, 29918, 517, 29918, 4039, 29898, 1514, 29892, 376, 1287, 1731, 613, 525, 932, 29899, 2084, 742, 13, 462, 462, 29871, 11568, 1287, 1731, 2052, 14702, 27195, 13, 4706, 5285, 353, 1574, 29889, 22662, 877, 13305, 1495, 13, 4706, 27321, 29889, 23850, 29898, 13305, 29897, 13, 13, 4706, 2322, 29918, 2917, 29879, 353, 5159, 13, 4706, 565, 2295, 29918, 4572, 338, 451, 6213, 29901, 13, 9651, 2322, 29918, 2917, 29879, 353, 518, 16859, 1839, 978, 2033, 363, 274, 16434, 297, 2295, 29918, 4572, 29962, 13, 13, 4706, 363, 1024, 297, 12705, 29898, 1111, 536, 29918, 2917, 29879, 1125, 13, 9651, 565, 1024, 297, 2322, 29918, 2917, 29879, 470, 2295, 29918, 4572, 338, 6213, 29901, 13, 18884, 921, 29889, 1202, 29918, 6799, 29918, 517, 29918, 13305, 29898, 1514, 29892, 1024, 29892, 29311, 29918, 2917, 29879, 29961, 978, 2314, 13, 13, 4706, 396, 7106, 15141, 2825, 6560, 13, 4706, 736, 1574, 29889, 3332, 276, 4349, 3134, 29898, 12860, 543, 29871, 16521, 13, 13, 1678, 822, 903, 1202, 29918, 2490, 5878, 29898, 1311, 29892, 13319, 29918, 3972, 1125, 13, 4706, 822, 903, 4397, 29918, 17057, 29918, 361, 29918, 484, 19226, 29898, 2084, 1125, 13, 9651, 565, 2224, 14352, 29896, 29962, 2804, 8207, 2396, 13, 18884, 2224, 4619, 8207, 29915, 13, 9651, 736, 2224, 13, 13, 4706, 13319, 29918, 3972, 353, 903, 4397, 29918, 17057, 29918, 361, 29918, 484, 19226, 29898, 11433, 287, 29918, 3972, 29897, 13, 4706, 565, 8707, 29943, 29889, 9057, 29918, 1287, 1731, 29918, 2490, 5878, 29901, 13, 9651, 13319, 29918, 3972, 353, 525, 4286, 7122, 4197, 710, 29898, 11433, 287, 29918, 3972, 511, 13, 462, 462, 539, 851, 29898, 6007, 29943, 29889, 9057, 29918, 1287, 1731, 29918, 2490, 5878, 29897, 2314, 13, 4706, 736, 903, 4397, 29918, 17057, 29918, 361, 29918, 484, 19226, 29898, 11433, 287, 29918, 3972, 29897, 13, 13, 1678, 822, 903, 17863, 29918, 23176, 29918, 29882, 29069, 29918, 26045, 29898, 1311, 29892, 4982, 29918, 2917, 29879, 1125, 13, 4706, 7029, 29918, 29882, 29069, 29918, 26045, 353, 5159, 13, 4706, 363, 413, 29892, 325, 297, 4832, 29889, 1524, 7076, 29898, 9057, 29918, 2917, 29879, 29889, 657, 877, 2917, 29879, 742, 6571, 22164, 13, 9651, 565, 338, 8758, 29898, 29894, 29892, 4832, 29889, 1807, 29918, 8768, 29897, 322, 325, 29889, 27382, 2541, 703, 29882, 29069, 597, 29908, 1125, 13, 18884, 7029, 29918, 29882, 29069, 29918, 26045, 29889, 4397, 29898, 29894, 29897, 13, 4706, 363, 413, 29892, 325, 297, 4832, 29889, 1524, 7076, 29898, 9057, 29918, 2917, 29879, 29889, 657, 877, 7529, 742, 6571, 22164, 13, 9651, 565, 338, 8758, 29898, 29894, 29892, 4832, 29889, 1807, 29918, 8768, 29897, 322, 325, 29889, 27382, 2541, 703, 29882, 29069, 597, 29908, 1125, 13, 18884, 7029, 29918, 29882, 29069, 29918, 26045, 29889, 4397, 29898, 29894, 29897, 13, 4706, 363, 325, 297, 4982, 29918, 2917, 29879, 29889, 657, 877, 5085, 742, 5159, 1125, 13, 9651, 565, 338, 8758, 29898, 29894, 29892, 4832, 29889, 1807, 29918, 8768, 29897, 322, 325, 29889, 27382, 2541, 703, 29882, 29069, 597, 29908, 1125, 13, 18884, 7029, 29918, 29882, 29069, 29918, 26045, 29889, 4397, 29898, 29894, 29897, 13, 4706, 736, 7029, 29918, 29882, 29069, 29918, 26045, 13, 13, 1678, 822, 8872, 355, 29918, 9057, 29898, 1311, 29892, 4982, 29918, 22256, 1125, 13, 4706, 736, 1583, 3032, 1171, 482, 29918, 9057, 29898, 9057, 29918, 22256, 29892, 1226, 29886, 29889, 29967, 14824, 29918, 24705, 29918, 29903, 3308, 29925, 11794, 29897, 13, 13, 1678, 822, 903, 1171, 482, 29918, 9057, 29898, 1311, 29892, 4982, 29918, 22256, 29892, 3158, 1125, 13, 4706, 565, 4982, 29918, 22256, 29889, 29877, 2112, 347, 29918, 9057, 29918, 333, 338, 451, 6213, 29901, 13, 9651, 3132, 353, 1583, 29889, 657, 29918, 4645, 580, 13, 9651, 565, 3158, 1275, 1226, 29886, 29889, 29967, 14824, 29918, 24705, 29918, 29903, 3308, 29925, 11794, 29901, 13, 18884, 3132, 29889, 29879, 375, 14081, 29918, 9057, 29898, 9057, 29918, 22256, 29897, 13, 9651, 736, 3132, 29889, 657, 29918, 9057, 29918, 4882, 29898, 9057, 29918, 22256, 29897, 13, 2 ]
www/tests/test_browser_html.py
ranjian0/brython
5,926
1617850
<filename>www/tests/test_browser_html.py import browser.html as html assert html.H2 is html.tags['H2'] class MyH1: pass html.tags['H1'] = MyH1 assert html.tags['H1'] == html.H1 assert html.tags == html.tags nb = len(html.tags) html.tags['GGHHJJ'] = 77 assert len(html.tags) == nb + 1 assert(len(html.tags.items())) == nb + 1 assert(len(html.tags.keys())) == nb + 1 assert(len(html.tags.values())) == nb + 1 assert 'GGHHJJ' in html.tags del html.tags['GGHHJJ'] assert len(html.tags) == nb assert(len(html.tags.items())) == nb assert(len(html.tags.keys())) == nb assert(len(html.tags.values())) == nb assert 'GGHHJJ' not in html.tags del html.tags['H6'] assert len(html.tags) == nb - 1 assert(len(html.tags.items())) == nb - 1 assert(len(html.tags.keys())) == nb - 1 assert(len(html.tags.values())) == nb - 1 assert 'H6' not in html.tags print('all tests passed...')
[ 1, 529, 9507, 29958, 1636, 29914, 21150, 29914, 1688, 29918, 15965, 29918, 1420, 29889, 2272, 13, 5215, 4714, 29889, 1420, 408, 3472, 13, 13, 9294, 3472, 29889, 29950, 29906, 338, 3472, 29889, 11338, 1839, 29950, 29906, 2033, 13, 13, 1990, 1619, 29950, 29896, 29901, 13, 1678, 1209, 13, 13, 1420, 29889, 11338, 1839, 29950, 29896, 2033, 353, 1619, 29950, 29896, 13, 13, 9294, 3472, 29889, 11338, 1839, 29950, 29896, 2033, 1275, 3472, 29889, 29950, 29896, 13, 13, 9294, 3472, 29889, 11338, 1275, 3472, 29889, 11338, 13, 9877, 353, 7431, 29898, 1420, 29889, 11338, 29897, 13, 13, 1420, 29889, 11338, 1839, 26788, 27590, 29967, 29967, 2033, 353, 29871, 29955, 29955, 13, 9294, 7431, 29898, 1420, 29889, 11338, 29897, 1275, 302, 29890, 718, 29871, 29896, 13, 9294, 29898, 2435, 29898, 1420, 29889, 11338, 29889, 7076, 22130, 1275, 302, 29890, 718, 29871, 29896, 13, 9294, 29898, 2435, 29898, 1420, 29889, 11338, 29889, 8149, 22130, 1275, 302, 29890, 718, 29871, 29896, 13, 9294, 29898, 2435, 29898, 1420, 29889, 11338, 29889, 5975, 22130, 1275, 302, 29890, 718, 29871, 29896, 13, 9294, 525, 26788, 27590, 29967, 29967, 29915, 297, 3472, 29889, 11338, 13, 13, 6144, 3472, 29889, 11338, 1839, 26788, 27590, 29967, 29967, 2033, 13, 9294, 7431, 29898, 1420, 29889, 11338, 29897, 1275, 302, 29890, 13, 9294, 29898, 2435, 29898, 1420, 29889, 11338, 29889, 7076, 22130, 1275, 302, 29890, 13, 9294, 29898, 2435, 29898, 1420, 29889, 11338, 29889, 8149, 22130, 1275, 302, 29890, 13, 9294, 29898, 2435, 29898, 1420, 29889, 11338, 29889, 5975, 22130, 1275, 302, 29890, 13, 9294, 525, 26788, 27590, 29967, 29967, 29915, 451, 297, 3472, 29889, 11338, 13, 13, 6144, 3472, 29889, 11338, 1839, 29950, 29953, 2033, 13, 9294, 7431, 29898, 1420, 29889, 11338, 29897, 1275, 302, 29890, 448, 29871, 29896, 13, 9294, 29898, 2435, 29898, 1420, 29889, 11338, 29889, 7076, 22130, 1275, 302, 29890, 448, 29871, 29896, 13, 9294, 29898, 2435, 29898, 1420, 29889, 11338, 29889, 8149, 22130, 1275, 302, 29890, 448, 29871, 29896, 13, 9294, 29898, 2435, 29898, 1420, 29889, 11338, 29889, 5975, 22130, 1275, 302, 29890, 448, 29871, 29896, 13, 9294, 525, 29950, 29953, 29915, 451, 297, 3472, 29889, 11338, 13, 13, 2158, 877, 497, 6987, 4502, 856, 1495, 2 ]
pablo/envs/canvas.py
trstruth/pablo
0
170761
<reponame>trstruth/pablo<filename>pablo/envs/canvas.py # coding: utf-8 """A module for the Canvas where the image will be created analogous to the environment in a reinforcement learning problem - accepts actions, performs transformations to the images stored as members, thus updating the environment and returning a reward scalar """ import numpy as np import os import gym from PIL import Image from gym import spaces, logger from numpy import linalg as LA from scipy.spatial import KDTree from skimage.measure import compare_ssim class Canvas(gym.Env): metadata = { 'render.modes': ['human'], 'video.frames_per_second' : 50 } def __init__(self, target_image_filename, images_directory=os.path.abspath(os.path.join(__file__,'../../../','images/'))): self.target_image_filename = target_image_filename self.generated_image = None self.images_directory = images_directory self.emoji_directory = os.path.join(self.images_directory, 'emojis') self.num_available_emojis = len(os.listdir(self.emoji_directory)) - 1 self.emoji_count = 0 self.max_emojis = 300 self.similarity = None self.similarity_threshold = 0.1 # These values control the quality of the output image self.min_dim = 4000 self.image_res_ratio = 1 self.emoji_KDT = self._construct_emoji_KDTree() self.emoji_cache = self._construct_emoji_cache() self.viewer = None self._load_target_image_from_file(self.target_image_filename) self.reset() self.target_image_w, self.target_image_h = self.target_image.size self.action_space = spaces.Dict({ 'y': spaces.Discrete(self.target_image_h), 'x': spaces.Discrete(self.target_image_w), 'r': spaces.Discrete(256), 'g': spaces.Discrete(256), 'b': spaces.Discrete(256), 'scale': spaces.Discrete(1000), 'rotation': spaces.Discrete(360) }) self.observation_space = spaces.Dict({ 'target': spaces.Box(0, 255, shape=(self.target_image_h, self.target_image_w, 3), dtype=np.uint8), 'generated': spaces.Box(0, 255, shape=(self.target_image_h, self.target_image_w, 3), dtype=np.uint8) }) self.action_space.n = len(self.action_space.spaces.items()) def reset(self): """Resets the state of the canvas by: - reinitializing the generated image - returning the inital observation Returns: observation (object): The observation object that is described by self.observation_space """ assert self.target_image is not None self.emoji_count = 0 self._init_generated_image() self.similarity = 0 return { 'target': self.target_image, 'generated': self.generated_image } def step(self, action): """ step returns four values. These are: * observation (object): an environment-specific object representing your observation of the environment. For example, pixel data from a camera, joint angles and joint velocities of a robot, or the board state in a board game. * reward (float): amount of reward achieved by the previous action. The scale varies between environments, but the goal is always to increase your total reward. * done (boolean): whether it’s time to reset the environment again. Most (but not all) tasks are divided up into well-defined episodes, and done being True indicates the episode has terminated. (For example, perhaps the pole tipped too far, or you lost your last life.) * info (dict): diagnostic information useful for debugging. It can sometimes be useful for learning (for example, it might contain the raw probabilities behind the environment’s last state change). However, official evaluations of your agent are not allowed to use this for learning. """ assert self.action_space.contains(action), "%r (%s) invalid"%(action, type(action)) index = self._find_nearest_emoji_index(action['r'], action['g'], action['b']) selected_emoji = self._get_emoji(index) # Place emoji as described by the action coordinate = ( int(action['x']*self.image_res_ratio), int(action['y']*self.image_res_ratio) ) scale = action['scale'] cur_size = selected_emoji.size scaled_size = (int(cur_size[0] / scale), int(cur_size[1] / scale)) selected_emoji = selected_emoji.resize(scaled_size, Image.ANTIALIAS) selected_emoji = selected_emoji.rotate(action['rotation'], expand=1) self.generated_image.paste(selected_emoji, coordinate, selected_emoji) # construct the observation object observation = { 'target': self.target_image, 'generated': self.generated_image } # TODO: calculate reward # new_similarity = self._calculate_mssim() new_similarity = 0 reward = new_similarity - self.similarity self.similarity = new_similarity # increment emoji count and set done flag self.emoji_count += 1 done = (self.emoji_count >= self.max_emojis) # or (self.similarity < self.similarity_threshold) # construct diagnositic info dict info = { 'position': (action['x'], action['y']), 'emoji_count': self.emoji_count, 'mssim': self.similarity, } return observation, reward, done, info def render(self, mode='human', close=False): if close: if self.viewer is not None: self.viewer.close() self.viewer = None return if self.viewer is None: from gym.envs.classic_control import rendering self.viewer = rendering.SimpleImageViewer() self.viewer.imshow(np.array(self.generated_image.convert('RGB'))) return self.viewer.isopen def _load_target_image_from_file(self, filename): """Load the image file stored at <filename> filename will be appended to self.images_directory to create the path where the image is stored Args: filename (str): The name of the file Returns: None """ target_image_filepath = os.path.join(self.images_directory, filename) try: self.target_image = Image.open(target_image_filepath).convert('RGB') except IOError: print('There was an error opening the file {}'.format(target_image_filepath)) self.target_image = None def _init_generated_image(self): """Initialize the generated image in order to avoid unnecessary downsampling of the emojis, we create a high resolution canvas to paste them on. The aspect ratio of of the generated image should be the same as that of the target image. For the generated image, the min(width, height) should equal some parameter set for the canvas. Returns: None """ assert self.target_image is not None # divide 5000 by each dim, store ratios in scale_ratios scale_ratios = [self.min_dim/dim for dim in self.target_image.size] # the min(width, height) will create the larger res ratio self.image_res_ratio = max(scale_ratios) scaled_size = tuple([int(self.image_res_ratio*dim) for dim in self.target_image.size]) self.generated_image = Image.new('RGBA', scaled_size, (255, 255, 255)) def _write_generated_image_to_file(self, filename): """Write self.generated_image to <filename> Args: filename (str): The name of the file Returns: None """ generated_image_filepath = os.path.join(self.images_directory, filename) self.generated_image.save(generated_image_filepath, quality=95) def _calculate_error(self): """ Calculate the error between self.target_image and self.generated_image Returns: Int: the error scalar """ assert self.target_image.size == self.generated_image.size return LA.norm(self.target_image - self.generated_image) def _calculate_mssim(self): """ Calculate the mean structural similarity between self.target_image and self.generated_image Returns: Float: The mean structural similarity over the image """ assert self.target_image.size == self.generated_image.size thumb_size = (128, 128) target_thumb = self.target_image.copy().convert('RGB') generated_thumb = self.generated_image.copy().convert('RGB') target_thumb.thumbnail(thumb_size, resample=Image.ANTIALIAS) generated_thumb.thumbnail(thumb_size, resample=Image.ANTIALIAS) return compare_ssim(np.array(target_thumb), np.array(generated_thumb), multichannel=True) def _construct_emoji_KDTree(self): """ The rgb color space can be visualized in 3 dimensions, with the intensity of each color along each dim. We can achieve logarithmic lookup performance by indexing each emoji in a KDTree. This method constructs such a tree. We iterate through each of the emojis, construct a list of those values, then use them to construct a KDTree. Returns: KDTree: The KDTree indexing each of the emojis """ avg_rgb_list = np.zeros((self.num_available_emojis, 3)) for i in range(self.num_available_emojis): emoji = Image.open('{}/{}.png'.format(self.emoji_directory, i)) average_rgb = self._get_average_rgb(emoji) avg_rgb_list[i, :] = average_rgb return KDTree(avg_rgb_list) def _construct_emoji_cache(self): """ Instead of loading each emoji from disk each time, on first load we cache the emoji in a dictionary. On each lookup, we first check to see if the emoji is loaded in the cache, and if so we can retrieve it from memory as opposed to disk """ return {i: None for i in range(self.num_available_emojis)} def _get_average_rgb(self, image): """ Calculate the average rgb values given an image. Ignore pixels that have a 0 alpha value Args: image (Image): the input image Returns: np.array: Array with [r, g, b] values """ im = np.array(image) h, w, d = im.shape im_vector = im.reshape((h*w, d)) im_mask = im_vector[:,3] != 0 average_rgb = np.average(im_vector, axis=0, weights=im_mask)[:3] return average_rgb def _find_nearest_emoji_index(self, r, g, b): """Find and return the emoji with average rgb values closest to supplied rgb Args: r (int): The red component g (int): The green component b (int): The blue component Returns: int: the index of the nearest emoji """ dist, emoji_index = self.emoji_KDT.query([r, g, b]) return emoji_index def _get_emoji(self, index): """ Return the emoji that corresponds with the given index. Check cache for the emoji first. If it doesnt exist, make a record of it otherwise, return the emoji in the cache. Args: index (int): The index of the desired emoji Returns: Image: the Image object that represents the emoji """ if self.emoji_cache[index] is None: image = Image.open('{}/{}.png'.format(self.emoji_directory, index)) self.emoji_cache[index] = image return image else: return self.emoji_cache[index]
[ 1, 529, 276, 1112, 420, 29958, 509, 710, 2806, 29914, 29886, 17877, 29966, 9507, 29958, 29886, 17877, 29914, 264, 4270, 29914, 15257, 29889, 2272, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 13, 15945, 29908, 29909, 3883, 363, 278, 1815, 4428, 988, 278, 1967, 674, 367, 2825, 13, 13, 7054, 468, 681, 304, 278, 5177, 297, 263, 15561, 1454, 13561, 6509, 1108, 448, 21486, 8820, 29892, 13, 546, 9514, 29304, 304, 278, 4558, 6087, 408, 5144, 29892, 4550, 13271, 278, 5177, 13, 392, 7863, 263, 20751, 17336, 13, 15945, 29908, 13, 13, 5215, 12655, 408, 7442, 13, 13, 5215, 2897, 13, 5215, 330, 962, 13, 13, 3166, 349, 6227, 1053, 7084, 13, 3166, 330, 962, 1053, 8162, 29892, 17927, 13, 3166, 12655, 1053, 301, 979, 29887, 408, 17900, 13, 3166, 4560, 2272, 29889, 1028, 15238, 1053, 476, 29928, 9643, 13, 3166, 2071, 3027, 29889, 26658, 1053, 7252, 29918, 893, 326, 13, 13, 1990, 1815, 4428, 29898, 29887, 962, 29889, 21745, 1125, 13, 308, 13, 1678, 15562, 353, 426, 13, 4706, 525, 9482, 29889, 1545, 267, 2396, 6024, 26029, 7464, 13, 4706, 525, 9641, 29889, 19935, 29918, 546, 29918, 7496, 29915, 584, 29871, 29945, 29900, 13, 1678, 500, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 13, 462, 3646, 29918, 3027, 29918, 9507, 29892, 13, 462, 4558, 29918, 12322, 29922, 359, 29889, 2084, 29889, 370, 1028, 493, 29898, 359, 29889, 2084, 29889, 7122, 22168, 1445, 1649, 5501, 21546, 6995, 3788, 8346, 29914, 8785, 1125, 13, 13, 4706, 1583, 29889, 5182, 29918, 3027, 29918, 9507, 353, 3646, 29918, 3027, 29918, 9507, 13, 4706, 1583, 29889, 13525, 29918, 3027, 353, 6213, 13, 4706, 1583, 29889, 8346, 29918, 12322, 353, 4558, 29918, 12322, 13, 4706, 1583, 29889, 15810, 2397, 29918, 12322, 353, 2897, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 8346, 29918, 12322, 29892, 525, 331, 3848, 275, 1495, 13, 4706, 1583, 29889, 1949, 29918, 16515, 29918, 331, 3848, 275, 353, 7431, 29898, 359, 29889, 1761, 3972, 29898, 1311, 29889, 15810, 2397, 29918, 12322, 876, 448, 29871, 29896, 13, 4706, 1583, 29889, 15810, 2397, 29918, 2798, 353, 29871, 29900, 13, 4706, 1583, 29889, 3317, 29918, 331, 3848, 275, 353, 29871, 29941, 29900, 29900, 13, 4706, 1583, 29889, 29764, 537, 353, 6213, 13, 4706, 1583, 29889, 29764, 537, 29918, 386, 12268, 353, 29871, 29900, 29889, 29896, 13, 13, 4706, 396, 4525, 1819, 2761, 278, 11029, 310, 278, 1962, 1967, 13, 4706, 1583, 29889, 1195, 29918, 6229, 353, 29871, 29946, 29900, 29900, 29900, 13, 4706, 1583, 29889, 3027, 29918, 690, 29918, 3605, 601, 353, 29871, 29896, 13, 13, 4706, 1583, 29889, 15810, 2397, 29918, 29968, 12972, 353, 1583, 3032, 11433, 29918, 15810, 2397, 29918, 29968, 29928, 9643, 580, 13, 4706, 1583, 29889, 15810, 2397, 29918, 8173, 353, 1583, 3032, 11433, 29918, 15810, 2397, 29918, 8173, 580, 13, 13, 4706, 1583, 29889, 29894, 15580, 353, 6213, 13, 4706, 1583, 3032, 1359, 29918, 5182, 29918, 3027, 29918, 3166, 29918, 1445, 29898, 1311, 29889, 5182, 29918, 3027, 29918, 9507, 29897, 13, 4706, 1583, 29889, 12071, 580, 13, 4706, 1583, 29889, 5182, 29918, 3027, 29918, 29893, 29892, 1583, 29889, 5182, 29918, 3027, 29918, 29882, 353, 1583, 29889, 5182, 29918, 3027, 29889, 2311, 13, 13, 4706, 1583, 29889, 2467, 29918, 3493, 353, 8162, 29889, 21533, 3319, 13, 9651, 525, 29891, 2396, 8162, 29889, 4205, 9084, 29898, 1311, 29889, 5182, 29918, 3027, 29918, 29882, 511, 13, 9651, 525, 29916, 2396, 8162, 29889, 4205, 9084, 29898, 1311, 29889, 5182, 29918, 3027, 29918, 29893, 511, 13, 9651, 525, 29878, 2396, 8162, 29889, 4205, 9084, 29898, 29906, 29945, 29953, 511, 13, 9651, 525, 29887, 2396, 8162, 29889, 4205, 9084, 29898, 29906, 29945, 29953, 511, 13, 9651, 525, 29890, 2396, 8162, 29889, 4205, 9084, 29898, 29906, 29945, 29953, 511, 13, 9651, 525, 7052, 2396, 8162, 29889, 4205, 9084, 29898, 29896, 29900, 29900, 29900, 511, 13, 9651, 525, 5450, 362, 2396, 8162, 29889, 4205, 9084, 29898, 29941, 29953, 29900, 29897, 13, 4706, 5615, 13, 13, 4706, 1583, 29889, 26739, 362, 29918, 3493, 353, 8162, 29889, 21533, 3319, 13, 9651, 525, 5182, 2396, 8162, 29889, 3313, 29898, 29900, 29892, 29871, 29906, 29945, 29945, 29892, 8267, 7607, 1311, 29889, 5182, 29918, 3027, 29918, 29882, 29892, 1583, 29889, 5182, 29918, 3027, 29918, 29893, 29892, 29871, 29941, 511, 26688, 29922, 9302, 29889, 13470, 29947, 511, 13, 9651, 525, 13525, 2396, 8162, 29889, 3313, 29898, 29900, 29892, 29871, 29906, 29945, 29945, 29892, 8267, 7607, 1311, 29889, 5182, 29918, 3027, 29918, 29882, 29892, 1583, 29889, 5182, 29918, 3027, 29918, 29893, 29892, 29871, 29941, 511, 26688, 29922, 9302, 29889, 13470, 29947, 29897, 13, 4706, 5615, 13, 13, 4706, 1583, 29889, 2467, 29918, 3493, 29889, 29876, 353, 7431, 29898, 1311, 29889, 2467, 29918, 3493, 29889, 22854, 29889, 7076, 3101, 13, 13, 13, 1678, 822, 10092, 29898, 1311, 1125, 13, 4706, 9995, 1666, 1691, 278, 2106, 310, 278, 10508, 491, 29901, 13, 3986, 448, 337, 11228, 5281, 278, 5759, 1967, 13, 3986, 448, 7863, 278, 2069, 284, 15500, 13, 13, 4706, 16969, 29901, 15500, 313, 3318, 1125, 450, 15500, 1203, 393, 338, 5439, 491, 13, 4706, 1583, 29889, 26739, 362, 29918, 3493, 13, 4706, 9995, 13, 4706, 4974, 1583, 29889, 5182, 29918, 3027, 338, 451, 6213, 13, 13, 4706, 1583, 29889, 15810, 2397, 29918, 2798, 353, 29871, 29900, 13, 4706, 1583, 3032, 2344, 29918, 13525, 29918, 3027, 580, 13, 4706, 1583, 29889, 29764, 537, 353, 29871, 29900, 13, 4706, 736, 426, 13, 9651, 525, 5182, 2396, 1583, 29889, 5182, 29918, 3027, 29892, 13, 9651, 525, 13525, 2396, 1583, 29889, 13525, 29918, 3027, 13, 4706, 500, 13, 13, 13, 1678, 822, 4331, 29898, 1311, 29892, 3158, 1125, 13, 4706, 9995, 13, 4706, 4331, 3639, 3023, 1819, 29889, 4525, 526, 29901, 13, 13, 9651, 334, 15500, 313, 3318, 1125, 385, 5177, 29899, 14940, 1203, 15783, 596, 15500, 310, 278, 5177, 29889, 1152, 29871, 13, 795, 1342, 29892, 15526, 848, 515, 263, 10656, 29892, 14002, 23619, 322, 14002, 9110, 1907, 310, 263, 19964, 29892, 470, 278, 7613, 2106, 297, 263, 7613, 13, 795, 3748, 29889, 13, 9651, 334, 20751, 313, 7411, 1125, 5253, 310, 20751, 14363, 491, 278, 3517, 3158, 29889, 450, 6287, 722, 583, 1546, 23136, 29892, 541, 13, 795, 278, 7306, 338, 2337, 304, 7910, 596, 3001, 20751, 29889, 13, 9651, 334, 2309, 313, 20054, 1125, 3692, 372, 30010, 29879, 931, 304, 10092, 278, 5177, 1449, 29889, 7849, 313, 4187, 451, 599, 29897, 9595, 526, 13931, 701, 964, 29871, 13, 795, 1532, 29899, 12119, 23238, 29892, 322, 2309, 1641, 5852, 14088, 278, 12720, 756, 29185, 29889, 313, 2831, 1342, 29892, 6060, 278, 22775, 13, 795, 260, 16242, 2086, 2215, 29892, 470, 366, 5714, 596, 1833, 2834, 1846, 13, 9651, 334, 5235, 313, 8977, 1125, 652, 21780, 2472, 5407, 363, 13490, 29889, 739, 508, 6041, 367, 5407, 363, 6509, 313, 1454, 1342, 29892, 13, 795, 372, 1795, 1712, 278, 10650, 2070, 11614, 5742, 278, 5177, 30010, 29879, 1833, 2106, 1735, 467, 2398, 29892, 6221, 6161, 800, 13, 795, 310, 596, 10823, 526, 451, 6068, 304, 671, 445, 363, 6509, 29889, 13, 4706, 9995, 13, 4706, 4974, 1583, 29889, 2467, 29918, 3493, 29889, 11516, 29898, 2467, 511, 11860, 29878, 313, 29995, 29879, 29897, 8340, 29908, 29995, 29898, 2467, 29892, 1134, 29898, 2467, 876, 13, 13, 4706, 2380, 353, 1583, 3032, 2886, 29918, 28502, 342, 29918, 15810, 2397, 29918, 2248, 29898, 2467, 1839, 29878, 7464, 3158, 1839, 29887, 7464, 3158, 1839, 29890, 11287, 13, 4706, 4629, 29918, 15810, 2397, 353, 1583, 3032, 657, 29918, 15810, 2397, 29898, 2248, 29897, 13, 13, 4706, 396, 15484, 953, 29877, 2397, 408, 5439, 491, 278, 3158, 13, 4706, 14821, 353, 313, 13, 9651, 938, 29898, 2467, 1839, 29916, 2033, 29930, 1311, 29889, 3027, 29918, 690, 29918, 3605, 601, 511, 13, 9651, 938, 29898, 2467, 1839, 29891, 2033, 29930, 1311, 29889, 3027, 29918, 690, 29918, 3605, 601, 29897, 13, 4706, 1723, 13, 4706, 6287, 353, 3158, 1839, 7052, 2033, 13, 4706, 3151, 29918, 2311, 353, 4629, 29918, 15810, 2397, 29889, 2311, 13, 4706, 6287, 29881, 29918, 2311, 353, 313, 524, 29898, 2764, 29918, 2311, 29961, 29900, 29962, 847, 6287, 511, 938, 29898, 2764, 29918, 2311, 29961, 29896, 29962, 847, 6287, 876, 13, 4706, 4629, 29918, 15810, 2397, 353, 4629, 29918, 15810, 2397, 29889, 21476, 29898, 7052, 29881, 29918, 2311, 29892, 7084, 29889, 13566, 25758, 29902, 3289, 29897, 13, 4706, 4629, 29918, 15810, 2397, 353, 4629, 29918, 15810, 2397, 29889, 23361, 29898, 2467, 1839, 5450, 362, 7464, 7985, 29922, 29896, 29897, 13, 13, 4706, 1583, 29889, 13525, 29918, 3027, 29889, 16179, 29898, 8391, 29918, 15810, 2397, 29892, 14821, 29892, 4629, 29918, 15810, 2397, 29897, 13, 13, 4706, 396, 3386, 278, 15500, 1203, 13, 4706, 15500, 353, 426, 13, 9651, 525, 5182, 2396, 1583, 29889, 5182, 29918, 3027, 29892, 13, 9651, 525, 13525, 2396, 1583, 29889, 13525, 29918, 3027, 13, 4706, 500, 13, 13, 4706, 396, 14402, 29901, 8147, 20751, 13, 4706, 396, 716, 29918, 29764, 537, 353, 1583, 3032, 15807, 403, 29918, 29885, 893, 326, 580, 13, 4706, 716, 29918, 29764, 537, 353, 29871, 29900, 13, 4706, 20751, 353, 716, 29918, 29764, 537, 448, 1583, 29889, 29764, 537, 13, 4706, 1583, 29889, 29764, 537, 353, 716, 29918, 29764, 537, 13, 13, 4706, 396, 11924, 953, 29877, 2397, 2302, 322, 731, 2309, 7353, 13, 4706, 1583, 29889, 15810, 2397, 29918, 2798, 4619, 29871, 29896, 13, 4706, 2309, 353, 313, 1311, 29889, 15810, 2397, 29918, 2798, 6736, 1583, 29889, 3317, 29918, 331, 3848, 275, 29897, 396, 470, 313, 1311, 29889, 29764, 537, 529, 1583, 29889, 29764, 537, 29918, 386, 12268, 29897, 13, 13, 4706, 396, 3386, 24876, 359, 277, 293, 5235, 9657, 13, 4706, 5235, 353, 426, 13, 9651, 525, 3283, 2396, 313, 2467, 1839, 29916, 7464, 3158, 1839, 29891, 2033, 511, 13, 9651, 525, 15810, 2397, 29918, 2798, 2396, 1583, 29889, 15810, 2397, 29918, 2798, 29892, 13, 9651, 525, 29885, 893, 326, 2396, 1583, 29889, 29764, 537, 29892, 13, 4706, 500, 13, 308, 13, 4706, 736, 15500, 29892, 20751, 29892, 2309, 29892, 5235, 13, 268, 13, 13, 1678, 822, 4050, 29898, 1311, 29892, 4464, 2433, 26029, 742, 3802, 29922, 8824, 1125, 13, 4706, 565, 3802, 29901, 13, 9651, 565, 1583, 29889, 29894, 15580, 338, 451, 6213, 29901, 13, 18884, 1583, 29889, 29894, 15580, 29889, 5358, 580, 13, 18884, 1583, 29889, 29894, 15580, 353, 6213, 13, 9651, 736, 13, 13, 4706, 565, 1583, 29889, 29894, 15580, 338, 6213, 29901, 13, 9651, 515, 330, 962, 29889, 264, 4270, 29889, 1990, 293, 29918, 6451, 1053, 15061, 13, 9651, 1583, 29889, 29894, 15580, 353, 15061, 29889, 15427, 2940, 29963, 15580, 580, 13, 4706, 1583, 29889, 29894, 15580, 29889, 326, 4294, 29898, 9302, 29889, 2378, 29898, 1311, 29889, 13525, 29918, 3027, 29889, 13441, 877, 28212, 29915, 4961, 13, 4706, 736, 1583, 29889, 29894, 15580, 29889, 275, 3150, 13, 13, 13, 1678, 822, 903, 1359, 29918, 5182, 29918, 3027, 29918, 3166, 29918, 1445, 29898, 1311, 29892, 10422, 1125, 13, 4706, 9995, 5896, 278, 1967, 934, 6087, 472, 529, 9507, 29958, 13, 4706, 10422, 674, 367, 623, 2760, 304, 1583, 29889, 8346, 29918, 12322, 304, 1653, 278, 2224, 988, 278, 1967, 338, 6087, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 10422, 313, 710, 1125, 450, 1024, 310, 278, 934, 29871, 13, 13, 4706, 16969, 29901, 13, 9651, 6213, 13, 4706, 9995, 13, 4706, 3646, 29918, 3027, 29918, 1445, 2084, 353, 2897, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 8346, 29918, 12322, 29892, 10422, 29897, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 5182, 29918, 3027, 353, 7084, 29889, 3150, 29898, 5182, 29918, 3027, 29918, 1445, 2084, 467, 13441, 877, 28212, 1495, 13, 4706, 5174, 10663, 2392, 29901, 13, 9651, 1596, 877, 8439, 471, 385, 1059, 8718, 278, 934, 6571, 4286, 4830, 29898, 5182, 29918, 3027, 29918, 1445, 2084, 876, 13, 9651, 1583, 29889, 5182, 29918, 3027, 353, 6213, 13, 13, 13, 1678, 822, 903, 2344, 29918, 13525, 29918, 3027, 29898, 1311, 1125, 13, 4706, 9995, 6644, 6646, 278, 5759, 1967, 13, 4706, 297, 1797, 304, 4772, 19039, 1623, 13445, 10335, 310, 278, 953, 3848, 275, 29892, 591, 1653, 263, 1880, 10104, 10508, 13, 4706, 304, 11417, 963, 373, 29889, 29871, 450, 9565, 11959, 310, 310, 278, 5759, 1967, 881, 367, 278, 1021, 408, 393, 310, 13, 4706, 278, 3646, 1967, 29889, 1152, 278, 5759, 1967, 29892, 278, 1375, 29898, 2103, 29892, 3171, 29897, 881, 5186, 777, 3443, 13, 4706, 731, 363, 278, 10508, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 6213, 13, 4706, 9995, 13, 4706, 4974, 1583, 29889, 5182, 29918, 3027, 338, 451, 6213, 13, 13, 4706, 396, 16429, 29871, 29945, 29900, 29900, 29900, 491, 1269, 3964, 29892, 3787, 364, 2219, 359, 297, 6287, 29918, 29878, 2219, 359, 13, 4706, 6287, 29918, 29878, 2219, 359, 353, 518, 1311, 29889, 1195, 29918, 6229, 29914, 6229, 363, 3964, 297, 1583, 29889, 5182, 29918, 3027, 29889, 2311, 29962, 13, 4706, 396, 278, 1375, 29898, 2103, 29892, 3171, 29897, 674, 1653, 278, 7200, 620, 11959, 13, 4706, 1583, 29889, 3027, 29918, 690, 29918, 3605, 601, 353, 4236, 29898, 7052, 29918, 29878, 2219, 359, 29897, 13, 13, 4706, 6287, 29881, 29918, 2311, 353, 18761, 4197, 524, 29898, 1311, 29889, 3027, 29918, 690, 29918, 3605, 601, 29930, 6229, 29897, 363, 3964, 297, 1583, 29889, 5182, 29918, 3027, 29889, 2311, 2314, 13, 4706, 1583, 29889, 13525, 29918, 3027, 353, 7084, 29889, 1482, 877, 29934, 29954, 5688, 742, 6287, 29881, 29918, 2311, 29892, 313, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 876, 13, 13, 13, 1678, 822, 903, 3539, 29918, 13525, 29918, 3027, 29918, 517, 29918, 1445, 29898, 1311, 29892, 10422, 1125, 13, 4706, 9995, 6113, 1583, 29889, 13525, 29918, 3027, 304, 529, 9507, 29958, 13, 308, 13, 4706, 826, 3174, 29901, 13, 9651, 10422, 313, 710, 1125, 450, 1024, 310, 278, 934, 29871, 13, 13, 4706, 16969, 29901, 13, 9651, 6213, 13, 4706, 9995, 13, 4706, 5759, 29918, 3027, 29918, 1445, 2084, 353, 2897, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 8346, 29918, 12322, 29892, 10422, 29897, 13, 4706, 1583, 29889, 13525, 29918, 3027, 29889, 7620, 29898, 13525, 29918, 3027, 29918, 1445, 2084, 29892, 11029, 29922, 29929, 29945, 29897, 13, 13, 13, 1678, 822, 903, 15807, 403, 29918, 2704, 29898, 1311, 1125, 13, 4706, 9995, 20535, 403, 278, 1059, 1546, 1583, 29889, 5182, 29918, 3027, 322, 1583, 29889, 13525, 29918, 3027, 13, 13, 4706, 16969, 29901, 13, 9651, 3159, 29901, 278, 1059, 17336, 13, 4706, 9995, 13, 4706, 4974, 1583, 29889, 5182, 29918, 3027, 29889, 2311, 1275, 1583, 29889, 13525, 29918, 3027, 29889, 2311, 13, 4706, 736, 17900, 29889, 12324, 29898, 1311, 29889, 5182, 29918, 3027, 448, 1583, 29889, 13525, 29918, 3027, 29897, 13, 13, 1678, 822, 903, 15807, 403, 29918, 29885, 893, 326, 29898, 1311, 1125, 13, 4706, 9995, 20535, 403, 278, 2099, 2281, 3631, 29501, 1546, 1583, 29889, 5182, 29918, 3027, 322, 1583, 29889, 13525, 29918, 3027, 13, 13, 4706, 16969, 29901, 13, 9651, 27842, 29901, 450, 2099, 2281, 3631, 29501, 975, 278, 1967, 13, 4706, 9995, 13, 4706, 4974, 1583, 29889, 5182, 29918, 3027, 29889, 2311, 1275, 1583, 29889, 13525, 29918, 3027, 29889, 2311, 13, 4706, 28968, 29918, 2311, 353, 313, 29896, 29906, 29947, 29892, 29871, 29896, 29906, 29947, 29897, 13, 4706, 3646, 29918, 386, 3774, 353, 1583, 29889, 5182, 29918, 3027, 29889, 8552, 2141, 13441, 877, 28212, 1495, 29871, 13, 4706, 5759, 29918, 386, 3774, 353, 1583, 29889, 13525, 29918, 3027, 29889, 8552, 2141, 13441, 877, 28212, 1495, 29871, 13, 4706, 3646, 29918, 386, 3774, 29889, 386, 21145, 29898, 386, 3774, 29918, 2311, 29892, 620, 981, 29922, 2940, 29889, 13566, 25758, 29902, 3289, 29897, 13, 4706, 5759, 29918, 386, 3774, 29889, 386, 21145, 29898, 386, 3774, 29918, 2311, 29892, 620, 981, 29922, 2940, 29889, 13566, 25758, 29902, 3289, 29897, 13, 13, 4706, 736, 7252, 29918, 893, 326, 29898, 9302, 29889, 2378, 29898, 5182, 29918, 386, 3774, 511, 7442, 29889, 2378, 29898, 13525, 29918, 386, 3774, 511, 1773, 436, 4143, 29922, 5574, 29897, 13, 308, 13, 13, 1678, 822, 903, 11433, 29918, 15810, 2397, 29918, 29968, 29928, 9643, 29898, 1311, 1125, 13, 4706, 9995, 450, 15552, 29890, 2927, 2913, 508, 367, 7604, 1891, 297, 29871, 29941, 13391, 29892, 411, 13, 4706, 278, 26171, 310, 1269, 2927, 3412, 1269, 3964, 29889, 29871, 1334, 508, 6176, 13, 4706, 1480, 23830, 13076, 16280, 4180, 491, 26190, 1269, 953, 29877, 2397, 297, 263, 476, 29928, 9643, 29889, 13, 4706, 910, 1158, 3386, 29879, 1316, 263, 5447, 29889, 29871, 1334, 13649, 1549, 1269, 310, 13, 4706, 278, 953, 3848, 275, 29892, 3386, 263, 1051, 310, 1906, 1819, 29892, 769, 671, 963, 304, 29871, 13, 4706, 3386, 263, 476, 29928, 9643, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 476, 29928, 9643, 29901, 450, 476, 29928, 9643, 26190, 1269, 310, 278, 953, 3848, 275, 13, 4706, 9995, 13, 4706, 1029, 29887, 29918, 23973, 29918, 1761, 353, 7442, 29889, 3298, 359, 3552, 1311, 29889, 1949, 29918, 16515, 29918, 331, 3848, 275, 29892, 29871, 29941, 876, 13, 13, 4706, 363, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 16515, 29918, 331, 3848, 275, 1125, 13, 9651, 953, 29877, 2397, 353, 7084, 29889, 3150, 877, 29912, 6822, 29912, 1836, 2732, 4286, 4830, 29898, 1311, 29889, 15810, 2397, 29918, 12322, 29892, 474, 876, 13, 9651, 6588, 29918, 23973, 353, 1583, 3032, 657, 29918, 12483, 482, 29918, 23973, 29898, 15810, 2397, 29897, 13, 9651, 1029, 29887, 29918, 23973, 29918, 1761, 29961, 29875, 29892, 584, 29962, 353, 6588, 29918, 23973, 1678, 13, 13, 4706, 736, 476, 29928, 9643, 29898, 485, 29887, 29918, 23973, 29918, 1761, 29897, 13, 268, 13, 13, 1678, 822, 903, 11433, 29918, 15810, 2397, 29918, 8173, 29898, 1311, 1125, 13, 4706, 9995, 8669, 310, 8363, 1269, 953, 29877, 2397, 515, 8086, 1269, 931, 29892, 373, 937, 2254, 13, 4706, 591, 7090, 278, 953, 29877, 2397, 297, 263, 8600, 29889, 29871, 1551, 1269, 16280, 29892, 591, 937, 1423, 13, 4706, 304, 1074, 565, 278, 953, 29877, 2397, 338, 7500, 297, 278, 7090, 29892, 322, 565, 577, 591, 508, 10563, 13, 4706, 372, 515, 3370, 408, 15869, 304, 8086, 13, 4706, 9995, 13, 4706, 736, 426, 29875, 29901, 6213, 363, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 16515, 29918, 331, 3848, 275, 2915, 13, 13, 13, 1678, 822, 903, 657, 29918, 12483, 482, 29918, 23973, 29898, 1311, 29892, 1967, 1125, 13, 4706, 9995, 20535, 403, 278, 6588, 15552, 29890, 1819, 2183, 385, 1967, 29889, 29871, 18076, 487, 17036, 13, 4706, 393, 505, 263, 29871, 29900, 15595, 995, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 1967, 313, 2940, 1125, 278, 1881, 1967, 13, 13, 4706, 16969, 29901, 13, 9651, 7442, 29889, 2378, 29901, 4398, 411, 518, 29878, 29892, 330, 29892, 289, 29962, 1819, 13, 4706, 9995, 13, 4706, 527, 353, 7442, 29889, 2378, 29898, 3027, 29897, 13, 4706, 298, 29892, 281, 29892, 270, 353, 527, 29889, 12181, 13, 4706, 527, 29918, 8111, 353, 527, 29889, 690, 14443, 3552, 29882, 29930, 29893, 29892, 270, 876, 13, 13, 4706, 527, 29918, 13168, 353, 527, 29918, 8111, 7503, 29892, 29941, 29962, 2804, 29871, 29900, 13, 4706, 6588, 29918, 23973, 353, 7442, 29889, 12483, 482, 29898, 326, 29918, 8111, 29892, 9685, 29922, 29900, 29892, 18177, 29922, 326, 29918, 13168, 29897, 7503, 29941, 29962, 13, 13, 4706, 736, 6588, 29918, 23973, 13, 13, 13, 1678, 822, 903, 2886, 29918, 28502, 342, 29918, 15810, 2397, 29918, 2248, 29898, 1311, 29892, 364, 29892, 330, 29892, 289, 1125, 13, 4706, 9995, 12542, 322, 736, 278, 953, 29877, 2397, 411, 6588, 15552, 29890, 1819, 21438, 304, 19056, 15552, 29890, 13, 308, 13, 4706, 826, 3174, 29901, 13, 9651, 364, 313, 524, 1125, 450, 2654, 4163, 13, 9651, 330, 313, 524, 1125, 450, 7933, 4163, 13, 9651, 289, 313, 524, 1125, 450, 7254, 4163, 13, 13, 4706, 16969, 29901, 13, 9651, 938, 29901, 278, 2380, 310, 278, 20471, 953, 29877, 2397, 13, 4706, 9995, 13, 4706, 1320, 29892, 953, 29877, 2397, 29918, 2248, 353, 1583, 29889, 15810, 2397, 29918, 29968, 12972, 29889, 1972, 4197, 29878, 29892, 330, 29892, 289, 2314, 13, 4706, 736, 953, 29877, 2397, 29918, 2248, 13, 13, 1678, 822, 903, 657, 29918, 15810, 2397, 29898, 1311, 29892, 2380, 1125, 13, 4706, 9995, 7106, 278, 953, 29877, 2397, 393, 16161, 411, 278, 2183, 2380, 29889, 13, 4706, 5399, 7090, 363, 278, 953, 29877, 2397, 937, 29889, 29871, 960, 372, 19403, 1863, 29892, 1207, 263, 2407, 310, 372, 13, 4706, 6467, 29892, 736, 278, 953, 29877, 2397, 297, 278, 7090, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 2380, 313, 524, 1125, 450, 2380, 310, 278, 7429, 953, 29877, 2397, 13, 13, 4706, 16969, 29901, 13, 9651, 7084, 29901, 278, 7084, 1203, 393, 11524, 278, 953, 29877, 2397, 13, 4706, 9995, 13, 4706, 565, 1583, 29889, 15810, 2397, 29918, 8173, 29961, 2248, 29962, 338, 6213, 29901, 13, 9651, 1967, 353, 7084, 29889, 3150, 877, 29912, 6822, 29912, 1836, 2732, 4286, 4830, 29898, 1311, 29889, 15810, 2397, 29918, 12322, 29892, 2380, 876, 29871, 13, 9651, 1583, 29889, 15810, 2397, 29918, 8173, 29961, 2248, 29962, 353, 1967, 13, 9651, 736, 1967, 13, 4706, 1683, 29901, 13, 9651, 736, 1583, 29889, 15810, 2397, 29918, 8173, 29961, 2248, 29962, 13, 13, 2 ]
mattspy/stats/__init__.py
beckermr/mattspy
0
134829
<reponame>beckermr/mattspy from mad import mad
[ 1, 529, 276, 1112, 420, 29958, 19645, 837, 29878, 29914, 29885, 1131, 1028, 29891, 13, 3166, 10395, 1053, 10395, 13, 2 ]