content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import os,sys from caffe.proto import caffe_pb2 import google.protobuf.text_format as txtf prototxt_file=sys.argv[1] to_prototxt_file=sys.argv[2] hold_layers=sys.argv[3].split(',') model=caffe_pb2.NetParameter() with open(prototxt_file,'r') as f: txtf.Merge(f.read(),model) f.close() active_layers={} i=0 for layer in model.layer: if len(layer.param)>0: isActive=False for param in layer.param: isActive=param.lr_mult>0 or param.decay_mult>0 if isActive: break active_layers[layer.name]=i i+=1 print active_layers print model.layer[active_layers['cls']] for lname in active_layers.keys(): if lname in hold_layers: continue nParam=len(model.layer[active_layers[lname]].param) for n in range(nParam): model.layer[active_layers[lname]].param[n].lr_mult=0 model.layer[active_layers[lname]].param[n].decay_mult=0 with open(to_prototxt_file,'w') as f: f.write(str(model)) f.close() print 'finished'
[ 11748, 28686, 11, 17597, 198, 6738, 21121, 13, 1676, 1462, 1330, 21121, 62, 40842, 17, 198, 11748, 23645, 13, 11235, 672, 3046, 13, 5239, 62, 18982, 355, 256, 742, 69, 198, 198, 11235, 313, 742, 62, 7753, 28, 17597, 13, 853, 85, 58, 16, 60, 198, 1462, 62, 11235, 313, 742, 62, 7753, 28, 17597, 13, 853, 85, 58, 17, 60, 198, 2946, 62, 75, 6962, 28, 17597, 13, 853, 85, 58, 18, 4083, 35312, 7, 3256, 11537, 198, 198, 19849, 28, 66, 21223, 62, 40842, 17, 13, 7934, 36301, 3419, 198, 198, 4480, 1280, 7, 11235, 313, 742, 62, 7753, 4032, 81, 11537, 355, 277, 25, 198, 220, 220, 220, 256, 742, 69, 13, 13102, 469, 7, 69, 13, 961, 22784, 19849, 8, 198, 220, 220, 220, 277, 13, 19836, 3419, 198, 198, 5275, 62, 75, 6962, 34758, 92, 198, 72, 28, 15, 198, 1640, 7679, 287, 2746, 13, 29289, 25, 198, 220, 220, 220, 611, 18896, 7, 29289, 13, 17143, 8, 29, 15, 25, 198, 220, 220, 220, 220, 220, 220, 220, 318, 13739, 28, 25101, 198, 220, 220, 220, 220, 220, 220, 220, 329, 5772, 287, 7679, 13, 17143, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 13739, 28, 17143, 13, 14050, 62, 16680, 29, 15, 393, 5772, 13, 12501, 323, 62, 16680, 29, 15, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 13739, 25, 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, 4075, 62, 75, 6962, 58, 29289, 13, 3672, 22241, 72, 198, 220, 220, 220, 1312, 47932, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 4798, 4075, 62, 75, 6962, 198, 4798, 2746, 13, 29289, 58, 5275, 62, 75, 6962, 17816, 565, 82, 6, 11907, 198, 1640, 300, 3672, 287, 4075, 62, 75, 6962, 13, 13083, 33529, 198, 220, 220, 220, 611, 300, 3672, 287, 1745, 62, 75, 6962, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 299, 22973, 28, 11925, 7, 19849, 13, 29289, 58, 5275, 62, 75, 6962, 58, 75, 3672, 60, 4083, 17143, 8, 198, 220, 220, 220, 329, 299, 287, 2837, 7, 77, 22973, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 13, 29289, 58, 5275, 62, 75, 6962, 58, 75, 3672, 60, 4083, 17143, 58, 77, 4083, 14050, 62, 16680, 28, 15, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 13, 29289, 58, 5275, 62, 75, 6962, 58, 75, 3672, 60, 4083, 17143, 58, 77, 4083, 12501, 323, 62, 16680, 28, 15, 198, 198, 4480, 1280, 7, 1462, 62, 11235, 313, 742, 62, 7753, 4032, 86, 11537, 355, 277, 25, 198, 220, 220, 220, 277, 13, 13564, 7, 2536, 7, 19849, 4008, 198, 220, 220, 220, 277, 13, 19836, 3419, 198, 198, 4798, 705, 43952, 6 ]
2.117043
487
import base64 import json import pickle from typing import Optional, TYPE_CHECKING, Type, Dict, Any, Union from ...helper import compress_bytes, decompress_bytes if TYPE_CHECKING: from ...typing import T
[ 11748, 2779, 2414, 198, 11748, 33918, 198, 11748, 2298, 293, 198, 6738, 19720, 1330, 32233, 11, 41876, 62, 50084, 2751, 11, 5994, 11, 360, 713, 11, 4377, 11, 4479, 198, 198, 6738, 2644, 2978, 525, 1330, 27413, 62, 33661, 11, 38237, 601, 62, 33661, 198, 198, 361, 41876, 62, 50084, 2751, 25, 198, 220, 220, 220, 422, 2644, 774, 13886, 1330, 309, 628 ]
3.349206
63
from .rest_api_base import * # First Metrics Methods appear in API 3.9
[ 6738, 764, 2118, 62, 15042, 62, 8692, 1330, 1635, 198, 198, 2, 3274, 3395, 10466, 25458, 1656, 287, 7824, 513, 13, 24, 628, 198 ]
3.083333
24
from factory import Faker from factory.django import DjangoModelFactory
[ 6738, 8860, 1330, 376, 3110, 198, 6738, 8860, 13, 28241, 14208, 1330, 37770, 17633, 22810, 628 ]
4.5625
16
"""2021 - Day 16 Part 2: Packet Decoder.""" from src.year2021.day16a import BITS
[ 37811, 1238, 2481, 532, 3596, 1467, 2142, 362, 25, 6400, 316, 34580, 526, 15931, 198, 6738, 12351, 13, 1941, 1238, 2481, 13, 820, 1433, 64, 1330, 347, 29722, 628 ]
2.827586
29
banyakPerulangan = 10 i = 0 while (i < banyakPerulangan): print('Hello World') i += 1
[ 65, 1092, 461, 5990, 377, 37089, 796, 838, 198, 72, 796, 657, 198, 4514, 357, 72, 1279, 275, 1092, 461, 5990, 377, 37089, 2599, 198, 220, 220, 220, 3601, 10786, 15496, 2159, 11537, 198, 220, 220, 220, 1312, 15853, 352 ]
2.325
40
from .base import DependencyBase, dataclass @dataclass class Tag(DependencyBase): """ Dependency on an arbitrary tag Usage: use this tag as a named signal to invalidate records Example: update_dashboard_for_admins = Tag('update-dashboard-for-admins') cache.put( 'articles-list', [...], dependencies=[ update_dashboard_for_admins, ... ] ) cache.invalidate(update_dashboard_for_admins) """ name: str __slots__ = 'name', PREFIX = 'tag'
[ 6738, 764, 8692, 1330, 37947, 1387, 14881, 11, 4818, 330, 31172, 628, 198, 31, 19608, 330, 31172, 198, 4871, 17467, 7, 35, 2690, 1387, 14881, 2599, 198, 220, 220, 220, 37227, 37947, 1387, 319, 281, 14977, 7621, 628, 220, 220, 220, 29566, 25, 198, 220, 220, 220, 220, 220, 220, 220, 779, 428, 7621, 355, 257, 3706, 6737, 284, 12515, 378, 4406, 628, 220, 220, 220, 17934, 25, 198, 220, 220, 220, 220, 220, 220, 220, 4296, 62, 42460, 3526, 62, 1640, 62, 324, 42951, 796, 17467, 10786, 19119, 12, 42460, 3526, 12, 1640, 12, 324, 42951, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 12940, 13, 1996, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 26845, 12, 4868, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 986, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20086, 41888, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4296, 62, 42460, 3526, 62, 1640, 62, 324, 42951, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2644, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 12940, 13, 259, 12102, 378, 7, 19119, 62, 42460, 3526, 62, 1640, 62, 324, 42951, 8, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1438, 25, 965, 198, 220, 220, 220, 11593, 6649, 1747, 834, 796, 705, 3672, 3256, 628, 220, 220, 220, 22814, 47084, 796, 705, 12985, 6, 628 ]
2.103571
280
import os from django.db import models from django.contrib.auth.models import User from django.urls import reverse from django.dispatch import receiver from django.db.models.signals import post_delete, post_save from django.conf import settings from django.core.validators import int_list_validator from taggit.managers import TaggableManager # Create your models here. @receiver(post_save, sender=Task) @receiver(post_delete, sender=Task)
[ 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 6381, 17147, 1330, 9733, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 12683, 874, 1330, 1281, 62, 33678, 11, 1281, 62, 21928, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 12102, 2024, 1330, 493, 62, 4868, 62, 12102, 1352, 198, 198, 6738, 7621, 18300, 13, 805, 10321, 1330, 309, 9460, 540, 13511, 198, 2, 13610, 534, 4981, 994, 13, 628, 628, 628, 198, 31, 260, 39729, 7, 7353, 62, 21928, 11, 29788, 28, 25714, 8, 628, 198, 31, 260, 39729, 7, 7353, 62, 33678, 11, 29788, 28, 25714, 8, 198 ]
3.308824
136
from fitrate.utils import gcd, nthrt, prod
[ 6738, 4197, 4873, 13, 26791, 1330, 308, 10210, 11, 299, 400, 17034, 11, 40426, 628, 628 ]
2.875
16
# Generated by Django 3.0.8 on 2020-10-22 04:45 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 23, 319, 12131, 12, 940, 12, 1828, 8702, 25, 2231, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import machine import time
[ 11748, 4572, 198, 11748, 640, 198 ]
4.5
6
import torch import torch.nn as nn from utils.miscellaneous import progress_bar
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 3384, 4487, 13, 25413, 25673, 1330, 4371, 62, 5657 ]
3.636364
22
import os import cv2 import numpy as np from matplotlib import pyplot as plt from matplotlib.patches import Polygon from .dataset_localization import DatasetLocalization from odin.utils import Iterator from .visulizer_interface import VisualizerInterface from odin.classes import strings as labels_str
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 8071, 2052, 1330, 12280, 14520, 198, 6738, 764, 19608, 292, 316, 62, 12001, 1634, 1330, 16092, 292, 316, 14565, 1634, 198, 6738, 16298, 259, 13, 26791, 1330, 40806, 1352, 198, 6738, 764, 4703, 377, 7509, 62, 39994, 1330, 15612, 7509, 39317, 198, 6738, 16298, 259, 13, 37724, 1330, 13042, 355, 14722, 62, 2536, 628 ]
3.607143
84
''' Es un méotod de compresión muy sencillo. Bonzip ''' import bz2 #Cadena binaria cadena = b'Este es eun ejemplo del formato de compresion Bonzip, sirve para comprimir TODO.' cadena_comprimida = bz2.compress(cadena) print(cadena_comprimida)#b"BZh91AY&SY\xbf\xb8:\xfa\x00\x00\x06\x15\x80@\x04\x08\x00.\xa3\xde@ \x00Hj\x9f\xaayL\xd3'\xa8 \xd4\xd3\xd2i\xa0hb)\xd3Aw\x8d2\x12\x8c\xf8\xc6\xa2q\xc2\x15\xf8-\x1a\xad\x85B\xc6`+\xe1\xfdr>\t\x12.\xe4\x8ap\xa1!\x7fpu\xf4" #para descromprimir print(bz2.decompress(cadena_comprimida))
[ 7061, 6, 198, 198, 23041, 555, 285, 2634, 313, 375, 390, 552, 411, 72, 18840, 285, 4669, 3308, 66, 16111, 13, 198, 198, 20682, 13344, 198, 198, 7061, 6, 198, 11748, 275, 89, 17, 628, 198, 2, 34, 38047, 9874, 10312, 198, 66, 38047, 796, 275, 6, 36, 4169, 1658, 304, 403, 304, 73, 18856, 78, 1619, 1296, 5549, 390, 552, 411, 295, 7979, 13344, 11, 15967, 303, 31215, 552, 3036, 343, 16926, 46, 2637, 198, 66, 38047, 62, 785, 19795, 3755, 796, 275, 89, 17, 13, 5589, 601, 7, 66, 38047, 8, 198, 198, 4798, 7, 66, 38047, 62, 785, 19795, 3755, 8, 2, 65, 1, 33, 57, 71, 6420, 4792, 5, 23060, 59, 87, 19881, 59, 30894, 23, 7479, 87, 13331, 59, 87, 405, 59, 87, 405, 59, 87, 3312, 59, 87, 1314, 59, 87, 1795, 31, 59, 87, 3023, 59, 87, 2919, 59, 87, 405, 13, 59, 27865, 18, 59, 87, 2934, 31, 3467, 87, 405, 39, 73, 59, 87, 24, 69, 59, 27865, 323, 43, 59, 24954, 18, 6, 59, 27865, 23, 3467, 24954, 19, 59, 24954, 18, 59, 24954, 17, 72, 59, 27865, 15, 71, 65, 19415, 24954, 18, 23155, 59, 87, 23, 67, 17, 59, 87, 1065, 59, 87, 23, 66, 59, 26152, 23, 59, 25306, 21, 59, 27865, 17, 80, 59, 25306, 17, 59, 87, 1314, 59, 26152, 23, 12, 59, 87, 16, 64, 59, 87, 324, 59, 87, 5332, 33, 59, 25306, 21, 63, 10, 59, 27705, 16, 59, 26152, 7109, 29, 59, 83, 59, 87, 1065, 13, 59, 27705, 19, 59, 87, 23, 499, 59, 27865, 16, 0, 59, 87, 22, 69, 19944, 59, 26152, 19, 1, 628, 198, 2, 1845, 64, 1715, 398, 1050, 13057, 198, 198, 4798, 7, 65, 89, 17, 13, 12501, 3361, 601, 7, 66, 38047, 62, 785, 19795, 3755, 4008 ]
1.753289
304
import re import random
[ 11748, 302, 198, 11748, 4738, 628, 198 ]
3.714286
7
# test_spiderfootplugin.py import pytest import unittest from sflib import SpiderFoot from spiderfoot import SpiderFootDb, SpiderFootEvent, SpiderFootPlugin, SpiderFootTarget @pytest.mark.usefixtures class TestSpiderFootPlugin(unittest.TestCase): """ Test SpiderFoot """ def test_init(self): """ Test __init__(self) """ sfp = SpiderFootPlugin() self.assertIsInstance(sfp, SpiderFootPlugin) def test_updateSocket(self): """ Test _updateSocket(self, sock) """ sfp = SpiderFootPlugin() sfp._updateSocket(None) self.assertEqual('TBD', 'TBD') def test_clearListeners(self): """ Test clearListeners(self) """ sfp = SpiderFootPlugin() sfp.clearListeners() self.assertEqual('TBD', 'TBD') def test_setup(self): """ Test setup(self, sf, userOpts=dict()) """ sfp = SpiderFootPlugin() sfp.setup(None) sfp.setup(None, None) self.assertEqual('TBD', 'TBD') def test_enrichTargetargument_target_should_enrih_target(self): """ Test enrichTarget(self, target) """ sfp = SpiderFootPlugin() sfp.enrichTarget(None) self.assertEqual('TBD', 'TBD') def test_setTarget_should_set_a_target(self): """ Test setTarget(self, target) """ sfp = SpiderFootPlugin() target = SpiderFootTarget("spiderfoot.net", "INTERNET_NAME") sfp.setTarget(target) get_target = sfp.getTarget().targetValue self.assertIsInstance(get_target, str) self.assertEqual("spiderfoot.net", get_target) def test_setTarget_argument_target_invalid_type_should_raise_TypeError(self): """ Test setTarget(self, target) """ sfp = SpiderFootPlugin() invalid_types = [None, "", list(), dict(), int()] for invalid_type in invalid_types: with self.subTest(invalid_type=invalid_type): with self.assertRaises(TypeError): sfp.setTarget(invalid_type) def test_set_dbhargument_dbh_should_set_database_handle(self): """ Test setDbh(self, dbh) """ sfdb = SpiderFootDb(self.default_options, False) sfp = SpiderFootPlugin() sfp.setDbh(sfdb) self.assertIsInstance(sfp.__sfdb__, SpiderFootDb) def test_setScanId_argument_id_should_set_a_scan_id(self): """ Test setScanId(self, id) """ sfp = SpiderFootPlugin() scan_id = '1234' sfp.setScanId(scan_id) get_scan_id = sfp.getScanId() self.assertIsInstance(get_scan_id, str) self.assertEqual(scan_id, get_scan_id) def test_setScanId_argument_id_invalid_type_should_raise_TypeError(self): """ Test setScanId(self, id) """ sfp = SpiderFootPlugin() invalid_types = [None, list(), dict(), int()] for invalid_type in invalid_types: with self.subTest(invalid_type=invalid_type): with self.assertRaises(TypeError): sfp.setScanId(invalid_type) def test_getScanId_should_return_a_string(self): """ Test getScanId(self) """ sfp = SpiderFootPlugin() scan_id = 'example scan id' sfp.setScanId(scan_id) get_scan_id = sfp.getScanId() self.assertIsInstance(get_scan_id, str) self.assertEqual(scan_id, get_scan_id) def test_getScanId_unitialised_scanid_should_raise_TypeError(self): """ Test getScanId(self) """ sfp = SpiderFootPlugin() with self.assertRaises(TypeError): sfp.getScanId() def test_getTarget_should_return_a_string(self): """ Test getTarget(self) """ sfp = SpiderFootPlugin() target = SpiderFootTarget("spiderfoot.net", "INTERNET_NAME") sfp.setTarget(target) get_target = sfp.getTarget().targetValue self.assertIsInstance(get_target, str) self.assertEqual("spiderfoot.net", get_target) def test_getTarget_unitialised_target_should_raise(self): """ Test getTarget(self) """ sfp = SpiderFootPlugin() with self.assertRaises(TypeError): sfp.getTarget() def test_register_listener(self): """ Test registerListener(self, listener) """ sfp = SpiderFootPlugin() sfp.registerListener(None) self.assertEqual('TBD', 'TBD') def test_setOutputFilter_should_set_output_filter(self): """ Test setOutputFilter(self, types) """ sfp = SpiderFootPlugin() output_filter = "test filter" sfp.setOutputFilter("test filter") self.assertEqual(output_filter, sfp.__outputFilter__) def test_tempStorage_should_return_a_dict(self): """ Test tempStorage(self) """ sfp = SpiderFootPlugin() temp_storage = sfp.tempStorage() self.assertIsInstance(temp_storage, dict) def test_notifyListeners_should_notify_listener_modules(self): """ Test notifyListeners(self, sfEvent) """ sfp = SpiderFootPlugin() sfdb = SpiderFootDb(self.default_options, False) sfp.setDbh(sfdb) event_type = 'ROOT' event_data = 'test data' module = 'test module' source_event = None evt = SpiderFootEvent(event_type, event_data, module, source_event) sfp.notifyListeners(evt) self.assertEqual('TBD', 'TBD') def test_notifyListeners_output_filter_matched_should_notify_listener_modules(self): """ Test notifyListeners(self, sfEvent) """ sfp = SpiderFootPlugin() sfdb = SpiderFootDb(self.default_options, False) sfp.setDbh(sfdb) target = SpiderFootTarget("spiderfoot.net", "INTERNET_NAME") sfp.setTarget(target) event_type = 'ROOT' event_data = 'test data' module = 'test module' source_event = None evt = SpiderFootEvent(event_type, event_data, module, source_event) event_type = 'test event type' event_data = 'test data' module = 'test module' source_event = evt evt = SpiderFootEvent(event_type, event_data, module, source_event) sfp.__outputFilter__ = event_type sfp.notifyListeners(evt) self.assertEqual('TBD', 'TBD') def test_notifyListeners_output_filter_unmatched_should_not_notify_listener_modules(self): """ Test notifyListeners(self, sfEvent) """ sfp = SpiderFootPlugin() sfdb = SpiderFootDb(self.default_options, False) sfp.setDbh(sfdb) target = SpiderFootTarget("spiderfoot.net", "INTERNET_NAME") sfp.setTarget(target) event_type = 'ROOT' event_data = 'test data' module = 'test module' source_event = None evt = SpiderFootEvent(event_type, event_data, module, source_event) event_type = 'test event type' event_data = 'test data' module = 'test module' source_event = evt evt = SpiderFootEvent(event_type, event_data, module, source_event) sfp.__outputFilter__ = "example unmatched event type" sfp.notifyListeners(evt) self.assertEqual('TBD', 'TBD') def test_notifyListeners_event_type_and_data_same_as_source_event_source_event_should_story_only(self): """ Test notifyListeners(self, sfEvent) """ sfp = SpiderFootPlugin() sfdb = SpiderFootDb(self.default_options, False) sfp.setDbh(sfdb) event_type = 'ROOT' event_data = 'test data' module = 'test module' source_event = None evt = SpiderFootEvent(event_type, event_data, module, source_event) event_type = 'test event type' event_data = 'test data' module = 'test module' source_event = evt evt = SpiderFootEvent(event_type, event_data, module, source_event) source_event = evt evt = SpiderFootEvent(event_type, event_data, module, source_event) source_event = evt evt = SpiderFootEvent(event_type, event_data, module, source_event) sfp.notifyListeners(evt) self.assertEqual('TBD', 'TBD') def test_notifyListeners_argument_sfEvent_invalid_event_should_raise_TypeError(self): """ Test notifyListeners(self, sfEvent) """ sfp = SpiderFootPlugin() invalid_types = [None, "", list(), dict(), int()] for invalid_type in invalid_types: with self.subTest(invalid_type=invalid_type): with self.assertRaises(TypeError): sfp.notifyListeners(invalid_type) def test_checkForStop(self): """ Test checkForStop(self) """ sfp = SpiderFootPlugin() sfp.__sfdb__ = DatabaseStub() sfp.__scanId__ = 'example scan id' # pseudo-parameterized test scan_statuses = [ (None, False), ("anything", False), ("RUNNING", False), ("ABORT-REQUESTED", True) ] for status, expectedReturnValue in scan_statuses: returnValue = sfp.checkForStop() self.assertEqual(returnValue, expectedReturnValue, status) def test_watchedEvents_should_return_a_list(self): """ Test watchedEvents(self) """ sfp = SpiderFootPlugin() watched_events = sfp.watchedEvents() self.assertIsInstance(watched_events, list) def test_producedEvents_should_return_a_list(self): """ Test producedEvents(self) """ sfp = SpiderFootPlugin() produced_events = sfp.producedEvents() self.assertIsInstance(produced_events, list) def test_handleEvent(self): """ Test handleEvent(self, sfEvent) """ event_type = 'ROOT' event_data = 'example event data' module = '' source_event = '' evt = SpiderFootEvent(event_type, event_data, module, source_event) sfp = SpiderFootPlugin() sfp.handleEvent(evt) def test_start(self): """ Test start(self) """ sf = SpiderFoot(self.default_options) sfp = SpiderFootPlugin() sfp.sf = sf sfp.start()
[ 2, 1332, 62, 2777, 1304, 5898, 33803, 13, 9078, 198, 11748, 12972, 9288, 198, 11748, 555, 715, 395, 198, 198, 6738, 264, 2704, 571, 1330, 12648, 17574, 198, 6738, 19230, 5898, 1330, 12648, 17574, 43832, 11, 12648, 17574, 9237, 11, 12648, 17574, 37233, 11, 12648, 17574, 21745, 628, 198, 31, 9078, 9288, 13, 4102, 13, 1904, 69, 25506, 198, 4871, 6208, 41294, 17574, 37233, 7, 403, 715, 395, 13, 14402, 20448, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 6208, 12648, 17574, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 1332, 62, 15003, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 11593, 15003, 834, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 28202, 79, 11, 12648, 17574, 37233, 8, 628, 220, 220, 220, 825, 1332, 62, 19119, 39105, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 4808, 19119, 39105, 7, 944, 11, 32263, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13557, 19119, 39105, 7, 14202, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 10786, 51, 14529, 3256, 705, 51, 14529, 11537, 628, 220, 220, 220, 825, 1332, 62, 20063, 23061, 364, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 1598, 23061, 364, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 20063, 23061, 364, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 10786, 51, 14529, 3256, 705, 51, 14529, 11537, 628, 220, 220, 220, 825, 1332, 62, 40406, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 9058, 7, 944, 11, 264, 69, 11, 2836, 27871, 82, 28, 11600, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 40406, 7, 14202, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 40406, 7, 14202, 11, 6045, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 10786, 51, 14529, 3256, 705, 51, 14529, 11537, 628, 220, 220, 220, 825, 1332, 62, 268, 7527, 21745, 49140, 62, 16793, 62, 21754, 62, 268, 380, 71, 62, 16793, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 22465, 21745, 7, 944, 11, 2496, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 268, 7527, 21745, 7, 14202, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 10786, 51, 14529, 3256, 705, 51, 14529, 11537, 628, 220, 220, 220, 825, 1332, 62, 2617, 21745, 62, 21754, 62, 2617, 62, 64, 62, 16793, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 900, 21745, 7, 944, 11, 2496, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 2496, 796, 12648, 17574, 21745, 7203, 2777, 1304, 5898, 13, 3262, 1600, 366, 41358, 12884, 62, 20608, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 21745, 7, 16793, 8, 628, 220, 220, 220, 220, 220, 220, 220, 651, 62, 16793, 796, 264, 46428, 13, 1136, 21745, 22446, 16793, 11395, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 1136, 62, 16793, 11, 965, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7203, 2777, 1304, 5898, 13, 3262, 1600, 651, 62, 16793, 8, 628, 220, 220, 220, 825, 1332, 62, 2617, 21745, 62, 49140, 62, 16793, 62, 259, 12102, 62, 4906, 62, 21754, 62, 40225, 62, 6030, 12331, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 900, 21745, 7, 944, 11, 2496, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 12515, 62, 19199, 796, 685, 14202, 11, 366, 1600, 1351, 22784, 8633, 22784, 493, 3419, 60, 198, 220, 220, 220, 220, 220, 220, 220, 329, 12515, 62, 4906, 287, 12515, 62, 19199, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 7266, 14402, 7, 259, 12102, 62, 4906, 28, 259, 12102, 62, 4906, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 6030, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 21745, 7, 259, 12102, 62, 4906, 8, 628, 220, 220, 220, 825, 1332, 62, 2617, 62, 9945, 71, 49140, 62, 9945, 71, 62, 21754, 62, 2617, 62, 48806, 62, 28144, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 900, 35, 34369, 7, 944, 11, 20613, 71, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 69, 9945, 796, 12648, 17574, 43832, 7, 944, 13, 12286, 62, 25811, 11, 10352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 35, 34369, 7, 28202, 9945, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 28202, 79, 13, 834, 28202, 9945, 834, 11, 12648, 17574, 43832, 8, 628, 220, 220, 220, 825, 1332, 62, 2617, 33351, 7390, 62, 49140, 62, 312, 62, 21754, 62, 2617, 62, 64, 62, 35836, 62, 312, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 900, 33351, 7390, 7, 944, 11, 4686, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 9367, 62, 312, 796, 705, 1065, 2682, 6, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 33351, 7390, 7, 35836, 62, 312, 8, 628, 220, 220, 220, 220, 220, 220, 220, 651, 62, 35836, 62, 312, 796, 264, 46428, 13, 1136, 33351, 7390, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 1136, 62, 35836, 62, 312, 11, 965, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 35836, 62, 312, 11, 651, 62, 35836, 62, 312, 8, 628, 220, 220, 220, 825, 1332, 62, 2617, 33351, 7390, 62, 49140, 62, 312, 62, 259, 12102, 62, 4906, 62, 21754, 62, 40225, 62, 6030, 12331, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 900, 33351, 7390, 7, 944, 11, 4686, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 12515, 62, 19199, 796, 685, 14202, 11, 1351, 22784, 8633, 22784, 493, 3419, 60, 198, 220, 220, 220, 220, 220, 220, 220, 329, 12515, 62, 4906, 287, 12515, 62, 19199, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 7266, 14402, 7, 259, 12102, 62, 4906, 28, 259, 12102, 62, 4906, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 6030, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 33351, 7390, 7, 259, 12102, 62, 4906, 8, 628, 220, 220, 220, 825, 1332, 62, 1136, 33351, 7390, 62, 21754, 62, 7783, 62, 64, 62, 8841, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 651, 33351, 7390, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 9367, 62, 312, 796, 705, 20688, 9367, 4686, 6, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 33351, 7390, 7, 35836, 62, 312, 8, 628, 220, 220, 220, 220, 220, 220, 220, 651, 62, 35836, 62, 312, 796, 264, 46428, 13, 1136, 33351, 7390, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 1136, 62, 35836, 62, 312, 11, 965, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 35836, 62, 312, 11, 651, 62, 35836, 62, 312, 8, 628, 220, 220, 220, 825, 1332, 62, 1136, 33351, 7390, 62, 403, 6847, 1417, 62, 35836, 312, 62, 21754, 62, 40225, 62, 6030, 12331, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 651, 33351, 7390, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 6030, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 1136, 33351, 7390, 3419, 628, 220, 220, 220, 825, 1332, 62, 1136, 21745, 62, 21754, 62, 7783, 62, 64, 62, 8841, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 651, 21745, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 2496, 796, 12648, 17574, 21745, 7203, 2777, 1304, 5898, 13, 3262, 1600, 366, 41358, 12884, 62, 20608, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 21745, 7, 16793, 8, 628, 220, 220, 220, 220, 220, 220, 220, 651, 62, 16793, 796, 264, 46428, 13, 1136, 21745, 22446, 16793, 11395, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 1136, 62, 16793, 11, 965, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7203, 2777, 1304, 5898, 13, 3262, 1600, 651, 62, 16793, 8, 628, 220, 220, 220, 825, 1332, 62, 1136, 21745, 62, 403, 6847, 1417, 62, 16793, 62, 21754, 62, 40225, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 651, 21745, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 6030, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 1136, 21745, 3419, 628, 220, 220, 220, 825, 1332, 62, 30238, 62, 4868, 877, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 7881, 33252, 7, 944, 11, 24783, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 30238, 33252, 7, 14202, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 10786, 51, 14529, 3256, 705, 51, 14529, 11537, 628, 220, 220, 220, 825, 1332, 62, 2617, 26410, 22417, 62, 21754, 62, 2617, 62, 22915, 62, 24455, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 900, 26410, 22417, 7, 944, 11, 3858, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 5072, 62, 24455, 796, 366, 9288, 8106, 1, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 26410, 22417, 7203, 9288, 8106, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 22915, 62, 24455, 11, 264, 46428, 13, 834, 22915, 22417, 834, 8, 628, 220, 220, 220, 825, 1332, 62, 29510, 31425, 62, 21754, 62, 7783, 62, 64, 62, 11600, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 20218, 31425, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 20218, 62, 35350, 796, 264, 46428, 13, 29510, 31425, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 29510, 62, 35350, 11, 8633, 8, 628, 220, 220, 220, 825, 1332, 62, 1662, 1958, 23061, 364, 62, 21754, 62, 1662, 1958, 62, 4868, 877, 62, 18170, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 19361, 23061, 364, 7, 944, 11, 264, 69, 9237, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 264, 69, 9945, 796, 12648, 17574, 43832, 7, 944, 13, 12286, 62, 25811, 11, 10352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 35, 34369, 7, 28202, 9945, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 4906, 796, 705, 13252, 2394, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 7890, 796, 705, 9288, 1366, 6, 198, 220, 220, 220, 220, 220, 220, 220, 8265, 796, 705, 9288, 8265, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 15596, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 12648, 17574, 9237, 7, 15596, 62, 4906, 11, 1785, 62, 7890, 11, 8265, 11, 2723, 62, 15596, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 1662, 1958, 23061, 364, 7, 1990, 83, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 10786, 51, 14529, 3256, 705, 51, 14529, 11537, 628, 220, 220, 220, 825, 1332, 62, 1662, 1958, 23061, 364, 62, 22915, 62, 24455, 62, 31409, 62, 21754, 62, 1662, 1958, 62, 4868, 877, 62, 18170, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 19361, 23061, 364, 7, 944, 11, 264, 69, 9237, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 264, 69, 9945, 796, 12648, 17574, 43832, 7, 944, 13, 12286, 62, 25811, 11, 10352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 35, 34369, 7, 28202, 9945, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2496, 796, 12648, 17574, 21745, 7203, 2777, 1304, 5898, 13, 3262, 1600, 366, 41358, 12884, 62, 20608, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 21745, 7, 16793, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 4906, 796, 705, 13252, 2394, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 7890, 796, 705, 9288, 1366, 6, 198, 220, 220, 220, 220, 220, 220, 220, 8265, 796, 705, 9288, 8265, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 15596, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 12648, 17574, 9237, 7, 15596, 62, 4906, 11, 1785, 62, 7890, 11, 8265, 11, 2723, 62, 15596, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 4906, 796, 705, 9288, 1785, 2099, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 7890, 796, 705, 9288, 1366, 6, 198, 220, 220, 220, 220, 220, 220, 220, 8265, 796, 705, 9288, 8265, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 15596, 796, 819, 83, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 12648, 17574, 9237, 7, 15596, 62, 4906, 11, 1785, 62, 7890, 11, 8265, 11, 2723, 62, 15596, 8, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 834, 22915, 22417, 834, 796, 1785, 62, 4906, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 1662, 1958, 23061, 364, 7, 1990, 83, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 10786, 51, 14529, 3256, 705, 51, 14529, 11537, 628, 220, 220, 220, 825, 1332, 62, 1662, 1958, 23061, 364, 62, 22915, 62, 24455, 62, 403, 31409, 62, 21754, 62, 1662, 62, 1662, 1958, 62, 4868, 877, 62, 18170, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 19361, 23061, 364, 7, 944, 11, 264, 69, 9237, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 264, 69, 9945, 796, 12648, 17574, 43832, 7, 944, 13, 12286, 62, 25811, 11, 10352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 35, 34369, 7, 28202, 9945, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2496, 796, 12648, 17574, 21745, 7203, 2777, 1304, 5898, 13, 3262, 1600, 366, 41358, 12884, 62, 20608, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 21745, 7, 16793, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 4906, 796, 705, 13252, 2394, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 7890, 796, 705, 9288, 1366, 6, 198, 220, 220, 220, 220, 220, 220, 220, 8265, 796, 705, 9288, 8265, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 15596, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 12648, 17574, 9237, 7, 15596, 62, 4906, 11, 1785, 62, 7890, 11, 8265, 11, 2723, 62, 15596, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 4906, 796, 705, 9288, 1785, 2099, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 7890, 796, 705, 9288, 1366, 6, 198, 220, 220, 220, 220, 220, 220, 220, 8265, 796, 705, 9288, 8265, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 15596, 796, 819, 83, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 12648, 17574, 9237, 7, 15596, 62, 4906, 11, 1785, 62, 7890, 11, 8265, 11, 2723, 62, 15596, 8, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 834, 22915, 22417, 834, 796, 366, 20688, 48621, 1785, 2099, 1, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 1662, 1958, 23061, 364, 7, 1990, 83, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 10786, 51, 14529, 3256, 705, 51, 14529, 11537, 628, 220, 220, 220, 825, 1332, 62, 1662, 1958, 23061, 364, 62, 15596, 62, 4906, 62, 392, 62, 7890, 62, 31642, 62, 292, 62, 10459, 62, 15596, 62, 10459, 62, 15596, 62, 21754, 62, 13571, 62, 8807, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 19361, 23061, 364, 7, 944, 11, 264, 69, 9237, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 264, 69, 9945, 796, 12648, 17574, 43832, 7, 944, 13, 12286, 62, 25811, 11, 10352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 2617, 35, 34369, 7, 28202, 9945, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 4906, 796, 705, 13252, 2394, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 7890, 796, 705, 9288, 1366, 6, 198, 220, 220, 220, 220, 220, 220, 220, 8265, 796, 705, 9288, 8265, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 15596, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 12648, 17574, 9237, 7, 15596, 62, 4906, 11, 1785, 62, 7890, 11, 8265, 11, 2723, 62, 15596, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 4906, 796, 705, 9288, 1785, 2099, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 7890, 796, 705, 9288, 1366, 6, 198, 220, 220, 220, 220, 220, 220, 220, 8265, 796, 705, 9288, 8265, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 15596, 796, 819, 83, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 12648, 17574, 9237, 7, 15596, 62, 4906, 11, 1785, 62, 7890, 11, 8265, 11, 2723, 62, 15596, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 15596, 796, 819, 83, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 12648, 17574, 9237, 7, 15596, 62, 4906, 11, 1785, 62, 7890, 11, 8265, 11, 2723, 62, 15596, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 15596, 796, 819, 83, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 12648, 17574, 9237, 7, 15596, 62, 4906, 11, 1785, 62, 7890, 11, 8265, 11, 2723, 62, 15596, 8, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 1662, 1958, 23061, 364, 7, 1990, 83, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 10786, 51, 14529, 3256, 705, 51, 14529, 11537, 628, 220, 220, 220, 825, 1332, 62, 1662, 1958, 23061, 364, 62, 49140, 62, 28202, 9237, 62, 259, 12102, 62, 15596, 62, 21754, 62, 40225, 62, 6030, 12331, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 19361, 23061, 364, 7, 944, 11, 264, 69, 9237, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 12515, 62, 19199, 796, 685, 14202, 11, 366, 1600, 1351, 22784, 8633, 22784, 493, 3419, 60, 198, 220, 220, 220, 220, 220, 220, 220, 329, 12515, 62, 4906, 287, 12515, 62, 19199, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 7266, 14402, 7, 259, 12102, 62, 4906, 28, 259, 12102, 62, 4906, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 6030, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 1662, 1958, 23061, 364, 7, 259, 12102, 62, 4906, 8, 628, 220, 220, 220, 825, 1332, 62, 9122, 1890, 19485, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 2198, 1890, 19485, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 834, 28202, 9945, 834, 796, 24047, 1273, 549, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 834, 35836, 7390, 834, 796, 705, 20688, 9367, 4686, 6, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 24543, 12, 17143, 2357, 1143, 1332, 198, 220, 220, 220, 220, 220, 220, 220, 9367, 62, 14269, 2664, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 14202, 11, 10352, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 49459, 1600, 10352, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 49, 4944, 15871, 1600, 10352, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 6242, 9863, 12, 2200, 35780, 1961, 1600, 6407, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 329, 3722, 11, 2938, 13615, 11395, 287, 9367, 62, 14269, 2664, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 11395, 796, 264, 46428, 13, 9122, 1890, 19485, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 7783, 11395, 11, 2938, 13615, 11395, 11, 3722, 8, 628, 220, 220, 220, 825, 1332, 62, 86, 14265, 37103, 62, 21754, 62, 7783, 62, 64, 62, 4868, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 7342, 37103, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 7342, 62, 31534, 796, 264, 46428, 13, 86, 14265, 37103, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 86, 14265, 62, 31534, 11, 1351, 8, 628, 220, 220, 220, 825, 1332, 62, 32783, 37103, 62, 21754, 62, 7783, 62, 64, 62, 4868, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 4635, 37103, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 4635, 62, 31534, 796, 264, 46428, 13, 32783, 37103, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 32783, 62, 31534, 11, 1351, 8, 628, 220, 220, 220, 825, 1332, 62, 28144, 9237, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 5412, 9237, 7, 944, 11, 264, 69, 9237, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 4906, 796, 705, 13252, 2394, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 7890, 796, 705, 20688, 1785, 1366, 6, 198, 220, 220, 220, 220, 220, 220, 220, 8265, 796, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 15596, 796, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 12648, 17574, 9237, 7, 15596, 62, 4906, 11, 1785, 62, 7890, 11, 8265, 11, 2723, 62, 15596, 8, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 28144, 9237, 7, 1990, 83, 8, 628, 220, 220, 220, 825, 1332, 62, 9688, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6208, 923, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 264, 69, 796, 12648, 17574, 7, 944, 13, 12286, 62, 25811, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 796, 12648, 17574, 37233, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 28202, 796, 264, 69, 628, 220, 220, 220, 220, 220, 220, 220, 264, 46428, 13, 9688, 3419, 198 ]
2.162667
4,875
# Copyright The PyTorch Lightning team. # # 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. """Helper functions to help with reproducibility of models. """ import logging import os import random from typing import Optional import numpy as np import torch from pytorch_lightning.utilities import _TORCH_GREATER_EQUAL_1_7, rank_zero_warn from pytorch_lightning.utilities.distributed import rank_zero_only log = logging.getLogger(__name__) def seed_everything(seed: Optional[int] = None, workers: bool = False) -> int: """ Function that sets seed for pseudo-random number generators in: pytorch, numpy, python.random In addition, sets the following environment variables: - `PL_GLOBAL_SEED`: will be passed to spawned subprocesses (e.g. ddp_spawn backend). - `PL_SEED_WORKERS`: (optional) is set to 1 if ```workers=True``. Args: seed: the integer value seed for global random state in Lightning. If `None`, will read seed from `PL_GLOBAL_SEED` env variable or select it randomly. workers: if set to ``True``, will properly configure all dataloaders passed to the Trainer with a ``worker_init_fn``. If the user already provides such a function for their dataloaders, setting this argument will have no influence. See also: :func:`~pytorch_lightning.utilities.seed.pl_worker_init_function`. """ max_seed_value = np.iinfo(np.uint32).max min_seed_value = np.iinfo(np.uint32).min try: if seed is None: seed = os.environ.get("PL_GLOBAL_SEED") seed = int(seed) except (TypeError, ValueError): seed = _select_seed_randomly(min_seed_value, max_seed_value) rank_zero_warn(f"No correct seed found, seed set to {seed}") if not (min_seed_value <= seed <= max_seed_value): rank_zero_warn(f"{seed} is not in bounds, numpy accepts from {min_seed_value} to {max_seed_value}") seed = _select_seed_randomly(min_seed_value, max_seed_value) # using `log.info` instead of `rank_zero_info`, # so users can verify the seed is properly set in distributed training. log.info(f"Global seed set to {seed}") os.environ["PL_GLOBAL_SEED"] = str(seed) random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed_all(seed) os.environ["PL_SEED_WORKERS"] = f"{int(workers)}" return seed def reset_seed() -> None: """ Reset the seed to the value that :func:`pytorch_lightning.utilities.seed.seed_everything` previously set. If :func:`pytorch_lightning.utilities.seed.seed_everything` is unused, this function will do nothing. """ seed = os.environ.get("PL_GLOBAL_SEED", None) workers = os.environ.get("PL_SEED_WORKERS", False) if seed is not None: seed_everything(int(seed), workers=bool(workers)) def pl_worker_init_function(worker_id: int, rank: Optional = None) -> None: # pragma: no cover """ The worker_init_fn that Lightning automatically adds to your dataloader if you previously set set the seed with ``seed_everything(seed, workers=True)``. See also the PyTorch documentation on `randomness in DataLoaders <https://pytorch.org/docs/stable/notes/randomness.html#dataloader>`_. """ # implementation notes: https://github.com/pytorch/pytorch/issues/5059#issuecomment-817392562 global_rank = rank if rank is not None else rank_zero_only.rank process_seed = torch.initial_seed() # back out the base seed so we can use all the bits base_seed = process_seed - worker_id log.debug( f'Initializing random number generators of process {global_rank} worker {worker_id} with base seed {base_seed}' ) ss = np.random.SeedSequence([base_seed, worker_id, global_rank]) # use 128 bits (4 x 32-bit words) np.random.seed(ss.generate_state(4)) # Spawn distinct SeedSequences for the PyTorch PRNG and the stdlib random module torch_ss, stdlib_ss = ss.spawn(2) # PyTorch 1.7 and above takes a 64-bit seed dtype = np.uint64 if _TORCH_GREATER_EQUAL_1_7 else np.uint32 torch.manual_seed(torch_ss.generate_state(1, dtype=dtype)[0]) # use 128 bits expressed as an integer stdlib_seed = (stdlib_ss.generate_state(2, dtype=np.uint64).astype(object) * [1 << 64, 1]).sum() random.seed(stdlib_seed)
[ 2, 15069, 383, 9485, 15884, 354, 12469, 1074, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2, 198, 2, 220, 220, 220, 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, 37811, 47429, 5499, 284, 1037, 351, 8186, 66, 2247, 286, 4981, 13, 37227, 198, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 4738, 198, 6738, 19720, 1330, 32233, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 198, 6738, 12972, 13165, 354, 62, 2971, 768, 13, 315, 2410, 1330, 4808, 32961, 3398, 62, 28934, 23261, 62, 36, 10917, 1847, 62, 16, 62, 22, 11, 4279, 62, 22570, 62, 40539, 198, 6738, 12972, 13165, 354, 62, 2971, 768, 13, 315, 2410, 13, 17080, 6169, 1330, 4279, 62, 22570, 62, 8807, 198, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 4299, 9403, 62, 37814, 7, 28826, 25, 32233, 58, 600, 60, 796, 6045, 11, 3259, 25, 20512, 796, 10352, 8, 4613, 493, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 15553, 326, 5621, 9403, 329, 24543, 12, 25120, 1271, 27298, 287, 25, 198, 220, 220, 220, 12972, 13165, 354, 11, 299, 32152, 11, 21015, 13, 25120, 198, 220, 220, 220, 554, 3090, 11, 5621, 262, 1708, 2858, 9633, 25, 628, 220, 220, 220, 532, 4600, 6489, 62, 8763, 9864, 1847, 62, 5188, 1961, 63, 25, 481, 307, 3804, 284, 29013, 850, 14681, 274, 357, 68, 13, 70, 13, 288, 26059, 62, 48183, 30203, 737, 198, 220, 220, 220, 532, 4600, 6489, 62, 5188, 1961, 62, 33249, 4877, 63, 25, 357, 25968, 8, 318, 900, 284, 352, 611, 7559, 63, 22896, 28, 17821, 15506, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 9403, 25, 262, 18253, 1988, 9403, 329, 3298, 4738, 1181, 287, 12469, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1002, 4600, 14202, 47671, 481, 1100, 9403, 422, 4600, 6489, 62, 8763, 9864, 1847, 62, 5188, 1961, 63, 17365, 7885, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 393, 2922, 340, 15456, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3259, 25, 611, 900, 284, 7559, 17821, 15506, 11, 481, 6105, 17425, 477, 4818, 282, 1170, 364, 3804, 284, 262, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31924, 351, 257, 7559, 28816, 62, 15003, 62, 22184, 15506, 13, 1002, 262, 2836, 1541, 3769, 884, 257, 2163, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 511, 4818, 282, 1170, 364, 11, 4634, 428, 4578, 481, 423, 645, 4588, 13, 4091, 635, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 20786, 25, 63, 93, 9078, 13165, 354, 62, 2971, 768, 13, 315, 2410, 13, 28826, 13, 489, 62, 28816, 62, 15003, 62, 8818, 44646, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3509, 62, 28826, 62, 8367, 796, 45941, 13, 72, 10951, 7, 37659, 13, 28611, 2624, 737, 9806, 198, 220, 220, 220, 949, 62, 28826, 62, 8367, 796, 45941, 13, 72, 10951, 7, 37659, 13, 28611, 2624, 737, 1084, 628, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 611, 9403, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9403, 796, 28686, 13, 268, 2268, 13, 1136, 7203, 6489, 62, 8763, 9864, 1847, 62, 5188, 1961, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 9403, 796, 493, 7, 28826, 8, 198, 220, 220, 220, 2845, 357, 6030, 12331, 11, 11052, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 9403, 796, 4808, 19738, 62, 28826, 62, 25120, 306, 7, 1084, 62, 28826, 62, 8367, 11, 3509, 62, 28826, 62, 8367, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4279, 62, 22570, 62, 40539, 7, 69, 1, 2949, 3376, 9403, 1043, 11, 9403, 900, 284, 1391, 28826, 92, 4943, 628, 220, 220, 220, 611, 407, 357, 1084, 62, 28826, 62, 8367, 19841, 9403, 19841, 3509, 62, 28826, 62, 8367, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 4279, 62, 22570, 62, 40539, 7, 69, 1, 90, 28826, 92, 318, 407, 287, 22303, 11, 299, 32152, 18178, 422, 1391, 1084, 62, 28826, 62, 8367, 92, 284, 1391, 9806, 62, 28826, 62, 8367, 92, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 9403, 796, 4808, 19738, 62, 28826, 62, 25120, 306, 7, 1084, 62, 28826, 62, 8367, 11, 3509, 62, 28826, 62, 8367, 8, 628, 220, 220, 220, 1303, 1262, 4600, 6404, 13, 10951, 63, 2427, 286, 4600, 43027, 62, 22570, 62, 10951, 47671, 198, 220, 220, 220, 1303, 523, 2985, 460, 11767, 262, 9403, 318, 6105, 900, 287, 9387, 3047, 13, 198, 220, 220, 220, 2604, 13, 10951, 7, 69, 1, 22289, 9403, 900, 284, 1391, 28826, 92, 4943, 198, 220, 220, 220, 28686, 13, 268, 2268, 14692, 6489, 62, 8763, 9864, 1847, 62, 5188, 1961, 8973, 796, 965, 7, 28826, 8, 198, 220, 220, 220, 4738, 13, 28826, 7, 28826, 8, 198, 220, 220, 220, 45941, 13, 25120, 13, 28826, 7, 28826, 8, 198, 220, 220, 220, 28034, 13, 805, 723, 62, 28826, 7, 28826, 8, 198, 220, 220, 220, 28034, 13, 66, 15339, 13, 805, 723, 62, 28826, 62, 439, 7, 28826, 8, 628, 220, 220, 220, 28686, 13, 268, 2268, 14692, 6489, 62, 5188, 1961, 62, 33249, 4877, 8973, 796, 277, 1, 90, 600, 7, 22896, 8, 36786, 628, 220, 220, 220, 1441, 9403, 628, 198, 198, 4299, 13259, 62, 28826, 3419, 4613, 6045, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 30027, 262, 9403, 284, 262, 1988, 326, 1058, 20786, 25, 63, 9078, 13165, 354, 62, 2971, 768, 13, 315, 2410, 13, 28826, 13, 28826, 62, 37814, 63, 4271, 900, 13, 198, 220, 220, 220, 1002, 1058, 20786, 25, 63, 9078, 13165, 354, 62, 2971, 768, 13, 315, 2410, 13, 28826, 13, 28826, 62, 37814, 63, 318, 21958, 11, 428, 2163, 481, 466, 2147, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 9403, 796, 28686, 13, 268, 2268, 13, 1136, 7203, 6489, 62, 8763, 9864, 1847, 62, 5188, 1961, 1600, 6045, 8, 198, 220, 220, 220, 3259, 796, 28686, 13, 268, 2268, 13, 1136, 7203, 6489, 62, 5188, 1961, 62, 33249, 4877, 1600, 10352, 8, 198, 220, 220, 220, 611, 9403, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 9403, 62, 37814, 7, 600, 7, 28826, 828, 3259, 28, 30388, 7, 22896, 4008, 628, 198, 4299, 458, 62, 28816, 62, 15003, 62, 8818, 7, 28816, 62, 312, 25, 493, 11, 4279, 25, 32233, 796, 6045, 8, 4613, 6045, 25, 220, 1303, 23864, 2611, 25, 645, 3002, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 383, 8383, 62, 15003, 62, 22184, 326, 12469, 6338, 6673, 284, 534, 4818, 282, 1170, 263, 611, 345, 4271, 900, 198, 220, 220, 220, 900, 262, 9403, 351, 7559, 28826, 62, 37814, 7, 28826, 11, 3259, 28, 17821, 8, 15506, 13, 198, 220, 220, 220, 4091, 635, 262, 9485, 15884, 354, 10314, 319, 198, 220, 220, 220, 4600, 25120, 1108, 287, 6060, 8912, 364, 1279, 5450, 1378, 9078, 13165, 354, 13, 2398, 14, 31628, 14, 31284, 14, 17815, 14, 25120, 1108, 13, 6494, 2, 67, 10254, 1170, 263, 29, 63, 44807, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 7822, 4710, 25, 3740, 1378, 12567, 13, 785, 14, 9078, 13165, 354, 14, 9078, 13165, 354, 14, 37165, 14, 1120, 3270, 2, 21949, 23893, 12, 23, 1558, 2670, 1495, 5237, 198, 220, 220, 220, 3298, 62, 43027, 796, 4279, 611, 4279, 318, 407, 6045, 2073, 4279, 62, 22570, 62, 8807, 13, 43027, 198, 220, 220, 220, 1429, 62, 28826, 796, 28034, 13, 36733, 62, 28826, 3419, 198, 220, 220, 220, 1303, 736, 503, 262, 2779, 9403, 523, 356, 460, 779, 477, 262, 10340, 198, 220, 220, 220, 2779, 62, 28826, 796, 1429, 62, 28826, 532, 8383, 62, 312, 198, 220, 220, 220, 2604, 13, 24442, 7, 198, 220, 220, 220, 220, 220, 220, 220, 277, 6, 24243, 2890, 4738, 1271, 27298, 286, 1429, 1391, 20541, 62, 43027, 92, 8383, 1391, 28816, 62, 312, 92, 351, 2779, 9403, 1391, 8692, 62, 28826, 92, 6, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 37786, 796, 45941, 13, 25120, 13, 50, 2308, 44015, 594, 26933, 8692, 62, 28826, 11, 8383, 62, 312, 11, 3298, 62, 43027, 12962, 198, 220, 220, 220, 1303, 779, 13108, 10340, 357, 19, 2124, 3933, 12, 2545, 2456, 8, 198, 220, 220, 220, 45941, 13, 25120, 13, 28826, 7, 824, 13, 8612, 378, 62, 5219, 7, 19, 4008, 198, 220, 220, 220, 1303, 36356, 7310, 23262, 44015, 3007, 329, 262, 9485, 15884, 354, 4810, 10503, 290, 262, 14367, 8019, 4738, 8265, 198, 220, 220, 220, 28034, 62, 824, 11, 14367, 8019, 62, 824, 796, 37786, 13, 48183, 7, 17, 8, 198, 220, 220, 220, 1303, 9485, 15884, 354, 352, 13, 22, 290, 2029, 2753, 257, 5598, 12, 2545, 9403, 198, 220, 220, 220, 288, 4906, 796, 45941, 13, 28611, 2414, 611, 4808, 32961, 3398, 62, 28934, 23261, 62, 36, 10917, 1847, 62, 16, 62, 22, 2073, 45941, 13, 28611, 2624, 198, 220, 220, 220, 28034, 13, 805, 723, 62, 28826, 7, 13165, 354, 62, 824, 13, 8612, 378, 62, 5219, 7, 16, 11, 288, 4906, 28, 67, 4906, 38381, 15, 12962, 198, 220, 220, 220, 1303, 779, 13108, 10340, 6241, 355, 281, 18253, 198, 220, 220, 220, 14367, 8019, 62, 28826, 796, 357, 19282, 8019, 62, 824, 13, 8612, 378, 62, 5219, 7, 17, 11, 288, 4906, 28, 37659, 13, 28611, 2414, 737, 459, 2981, 7, 15252, 8, 1635, 685, 16, 9959, 5598, 11, 352, 35944, 16345, 3419, 198, 220, 220, 220, 4738, 13, 28826, 7, 19282, 8019, 62, 28826, 8, 198 ]
2.76484
1,752
from distutils.log import error import errno import numpy as np import json import argparse import time from tqdm import tqdm import cv2 import logging import sys, os import torch import torchvision import torch.nn as nn from torch import optim from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter from torchvision.transforms import transforms from sklearn.metrics import f1_score from sampler import BalancedBatchSampler from models import Resnext_Model, Densenet_Model from dataloader import MBV_Dataset sys.path.append(os.path.dirname(__file__)) from train_util import Train_Util sys.path.append(os.path.dirname(__file__)) from utils import * from mbv_config import MBV_Config import mbv_config import argparse if __name__ == "__main__": train()
[ 6738, 1233, 26791, 13, 6404, 1330, 4049, 198, 11748, 11454, 3919, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33918, 198, 11748, 1822, 29572, 198, 11748, 640, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 269, 85, 17, 198, 11748, 18931, 198, 11748, 25064, 11, 28686, 198, 198, 11748, 28034, 198, 11748, 28034, 10178, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 28034, 1330, 6436, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 198, 6738, 28034, 13, 26791, 13, 83, 22854, 3526, 1330, 21293, 34379, 198, 6738, 28034, 10178, 13, 7645, 23914, 1330, 31408, 198, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 277, 16, 62, 26675, 198, 198, 6738, 6072, 20053, 1330, 38984, 33, 963, 16305, 20053, 198, 6738, 4981, 1330, 1874, 19545, 62, 17633, 11, 360, 18756, 316, 62, 17633, 198, 6738, 4818, 282, 1170, 263, 1330, 10771, 53, 62, 27354, 292, 316, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 6738, 4512, 62, 22602, 1330, 16835, 62, 18274, 346, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 6738, 3384, 4487, 1330, 1635, 198, 6738, 285, 65, 85, 62, 11250, 1330, 10771, 53, 62, 16934, 198, 11748, 285, 65, 85, 62, 11250, 198, 11748, 1822, 29572, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 4512, 3419, 198 ]
3.226721
247
import json import click from tabulate import tabulate from spplib.cli import util @click.group() @util.pass_context def cli(ctx, **kwargs): """VM resource. """ pass @cli.command() @util.pass_context @click.argument('pattern')
[ 198, 11748, 33918, 198, 198, 11748, 3904, 198, 6738, 7400, 5039, 1330, 7400, 5039, 198, 198, 6738, 264, 381, 8019, 13, 44506, 1330, 7736, 198, 198, 31, 12976, 13, 8094, 3419, 198, 31, 22602, 13, 6603, 62, 22866, 198, 4299, 537, 72, 7, 49464, 11, 12429, 46265, 22046, 2599, 198, 220, 220, 220, 37227, 15996, 8271, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 198, 198, 31, 44506, 13, 21812, 3419, 198, 31, 22602, 13, 6603, 62, 22866, 198, 31, 12976, 13, 49140, 10786, 33279, 11537, 628, 198 ]
2.714286
91
from django.contrib import admin from .models import immobilien admin.site.register(immobilien, immobilienAdmin) # Register your models here.
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 47800, 2013, 628, 198, 198, 28482, 13, 15654, 13, 30238, 7, 8608, 25898, 2013, 11, 47800, 2013, 46787, 8, 198, 198, 2, 17296, 534, 4981, 994, 13, 198 ]
3.560976
41
class Alarma(): """clase del objeto alarma"""
[ 4871, 978, 10961, 33529, 198, 197, 37811, 565, 589, 1619, 26181, 27206, 10436, 64, 37811, 198, 197, 197 ]
2.722222
18
begin_unit comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may not' nl|'\n' comment|'# use this file except in compliance with the License. You may obtain a copy' nl|'\n' comment|'# of the License at' nl|'\n' comment|'#' nl|'\n' comment|'# http://www.apache.org/licenses/LICENSE-2.0' nl|'\n' comment|'#' nl|'\n' comment|'# Unless required by applicable law or agreed to in writing, software' nl|'\n' comment|'# distributed under the License is distributed on an "AS IS" BASIS,' nl|'\n' comment|'# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.' nl|'\n' comment|'# See the License for the specific language governing permissions and' nl|'\n' comment|'# limitations under the License.' nl|'\n' nl|'\n' name|'import' name|'nova' op|'.' name|'compute' op|'.' name|'flavors' newline|'\n' name|'import' name|'nova' op|'.' name|'compute' op|'.' name|'monitors' newline|'\n' name|'import' name|'nova' op|'.' name|'conf' newline|'\n' nl|'\n' nl|'\n' DECL|function|list_opts name|'def' name|'list_opts' op|'(' op|')' op|':' newline|'\n' indent|' ' name|'return' op|'[' nl|'\n' op|'(' string|"'DEFAULT'" op|',' nl|'\n' name|'nova' op|'.' name|'compute' op|'.' name|'flavors' op|'.' name|'flavor_opts' op|',' nl|'\n' op|')' op|',' nl|'\n' op|']' newline|'\n' dedent|'' endmarker|'' end_unit
[ 27471, 62, 20850, 198, 23893, 91, 6, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 257, 4866, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 286, 262, 13789, 379, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 4032, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 2637, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 11247, 739, 262, 13789, 2637, 198, 21283, 91, 6, 59, 77, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 3672, 91, 6, 11748, 6, 198, 3672, 91, 6, 38438, 6, 198, 404, 91, 6, 2637, 198, 3672, 91, 6, 5589, 1133, 6, 198, 404, 91, 6, 2637, 198, 3672, 91, 6, 2704, 615, 669, 6, 198, 3605, 1370, 91, 6, 59, 77, 6, 198, 3672, 91, 6, 11748, 6, 198, 3672, 91, 6, 38438, 6, 198, 404, 91, 6, 2637, 198, 3672, 91, 6, 5589, 1133, 6, 198, 404, 91, 6, 2637, 198, 3672, 91, 6, 2144, 6742, 6, 198, 3605, 1370, 91, 6, 59, 77, 6, 198, 3672, 91, 6, 11748, 6, 198, 3672, 91, 6, 38438, 6, 198, 404, 91, 6, 2637, 198, 3672, 91, 6, 10414, 6, 198, 3605, 1370, 91, 6, 59, 77, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 41374, 43, 91, 8818, 91, 4868, 62, 404, 912, 198, 3672, 91, 6, 4299, 6, 198, 3672, 91, 6, 4868, 62, 404, 912, 6, 198, 404, 91, 6, 10786, 198, 404, 91, 11537, 6, 198, 404, 91, 10354, 6, 198, 3605, 1370, 91, 6, 59, 77, 6, 198, 521, 298, 91, 6, 220, 220, 220, 705, 198, 3672, 91, 6, 7783, 6, 198, 404, 91, 6, 17816, 198, 21283, 91, 6, 59, 77, 6, 198, 404, 91, 6, 10786, 198, 8841, 91, 30543, 7206, 38865, 29653, 198, 404, 91, 41707, 198, 21283, 91, 6, 59, 77, 6, 198, 3672, 91, 6, 38438, 6, 198, 404, 91, 6, 2637, 198, 3672, 91, 6, 5589, 1133, 6, 198, 404, 91, 6, 2637, 198, 3672, 91, 6, 2704, 615, 669, 6, 198, 404, 91, 6, 2637, 198, 3672, 91, 6, 2704, 5570, 62, 404, 912, 6, 198, 404, 91, 41707, 198, 21283, 91, 6, 59, 77, 6, 198, 404, 91, 11537, 6, 198, 404, 91, 41707, 198, 21283, 91, 6, 59, 77, 6, 198, 404, 91, 20520, 6, 198, 3605, 1370, 91, 6, 59, 77, 6, 198, 9395, 298, 91, 7061, 198, 437, 4102, 263, 91, 7061, 198, 437, 62, 20850, 198 ]
2.23913
598
from matplotlib import pyplot as plt import numpy as np import pandas as pd from numpy import pi,abs,exp,log,log10 from scipy import optimize class RoweOptimization(): ''' Optimizing the Rowe Model onto a training set. The key parameters to adjust are as follows: - G_ee - G_ei - G_ese - G_esre - G_srs - alpha - beta - t0 - A_EMG - f_EMG ''' def optimize(self, param_list, tol=None): ''' Fits the model using the listed parameters. ''' # Define the function w.r.t. the parameters. The vector P has the same # length as params, with 1-1 coordinate correspondance. EEG_fun = lambda P: self.mod.update_and_compute_P(P, param_list, self.freqs) chi_fun = lambda P: sum(((EEG_fun(P) - self.output) / self.output)**2) # Get initial parameter values P0 = [] for j in range(len(param_list)): P0.append(getattr(self.mod, param_list[j])) P0 = np.array(P0) # Obtain the bounds for the optimization procedure w.r.t. the selected # parameters. bounds_list = [] for k in range(len(param_list)): bound_attr_str = 'bound_' + param_list[k] # Check if model has the bound attribute. if not hasattr(self.mod, bound_attr_str): bounds_list.append((None,None)) else: bounds_list.append(tuple(getattr(self.mod, bound_attr_str))) bounds_tuple = tuple(bounds_list) # Initiate the optimization result = optimize.minimize(chi_fun, P0, bounds=bounds_list, tol=tol) return result if __name__ == '__main__': task = 'optimize' if task == 'optimize': # Get training data text_file = np.loadtxt('EEG_data.csv', skiprows=1, delimiter=',') freqs = text_file[1:,0] powers = text_file[1:,1]*10**24 N = min(len(freqs), len(powers)) train_data = [(freqs[k], powers[k]) for k in range(N)] rowe_opt = RoweOptimization(train=train_data) param_list = ['G_ee', 'G_ei', 'G_ese', 'G_esre', 'G_srs', 'alpha', 'beta', 't0', 'A_EMG' ] result = rowe_opt.optimize(param_list, tol=5) model_powers = rowe_opt.mod.compute_P(freqs) plt.plot(freqs, powers, 'r--', freqs, model_powers) plt.show() elif task == 'graph': freqs = np.linspace(0.2,100, num=50) mod = Rowe2015Model() EEG = mod.compute_P(freqs) - mod.compute_P_EEG(freqs) df_EEG = pd.DataFrame(np.squeeze(EEG)) df_EEG.abs().plot(logx=True,logy=True)
[ 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 201, 198, 6738, 299, 32152, 1330, 31028, 11, 8937, 11, 11201, 11, 6404, 11, 6404, 940, 201, 198, 6738, 629, 541, 88, 1330, 27183, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 4871, 44842, 27871, 320, 1634, 33529, 201, 198, 220, 220, 220, 705, 7061, 201, 198, 220, 220, 220, 30011, 2890, 262, 44842, 9104, 4291, 257, 3047, 900, 13, 383, 1994, 10007, 284, 4532, 201, 198, 220, 220, 220, 389, 355, 5679, 25, 201, 198, 220, 220, 220, 532, 402, 62, 1453, 201, 198, 220, 220, 220, 532, 402, 62, 20295, 201, 198, 220, 220, 220, 532, 402, 62, 2771, 201, 198, 220, 220, 220, 532, 402, 62, 274, 260, 201, 198, 220, 220, 220, 532, 402, 62, 82, 3808, 201, 198, 220, 220, 220, 532, 17130, 201, 198, 220, 220, 220, 532, 12159, 201, 198, 220, 220, 220, 532, 256, 15, 201, 198, 220, 220, 220, 532, 317, 62, 3620, 38, 201, 198, 220, 220, 220, 532, 277, 62, 3620, 38, 201, 198, 220, 220, 220, 705, 7061, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 825, 27183, 7, 944, 11, 5772, 62, 4868, 11, 284, 75, 28, 14202, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 201, 198, 220, 220, 220, 220, 220, 220, 220, 376, 896, 262, 2746, 1262, 262, 5610, 10007, 13, 201, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2896, 500, 262, 2163, 266, 13, 81, 13, 83, 13, 262, 10007, 13, 383, 15879, 350, 468, 262, 976, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4129, 355, 42287, 11, 351, 352, 12, 16, 20435, 6053, 590, 13, 201, 198, 220, 220, 220, 220, 220, 220, 220, 48749, 62, 12543, 796, 37456, 350, 25, 2116, 13, 4666, 13, 19119, 62, 392, 62, 5589, 1133, 62, 47, 7, 47, 11, 5772, 62, 4868, 11, 2116, 13, 19503, 48382, 8, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 33166, 62, 12543, 796, 37456, 350, 25, 2160, 19510, 7, 6500, 38, 62, 12543, 7, 47, 8, 532, 2116, 13, 22915, 8, 1220, 2116, 13, 22915, 8, 1174, 17, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3497, 4238, 11507, 3815, 201, 198, 220, 220, 220, 220, 220, 220, 220, 350, 15, 796, 17635, 201, 198, 220, 220, 220, 220, 220, 220, 220, 329, 474, 287, 2837, 7, 11925, 7, 17143, 62, 4868, 8, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 350, 15, 13, 33295, 7, 1136, 35226, 7, 944, 13, 4666, 11, 5772, 62, 4868, 58, 73, 60, 4008, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 350, 15, 796, 45941, 13, 18747, 7, 47, 15, 8, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1835, 3153, 262, 22303, 329, 262, 23989, 8771, 266, 13, 81, 13, 83, 13, 262, 6163, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 10007, 13, 201, 198, 220, 220, 220, 220, 220, 220, 220, 22303, 62, 4868, 796, 17635, 201, 198, 220, 220, 220, 220, 220, 220, 220, 329, 479, 287, 2837, 7, 11925, 7, 17143, 62, 4868, 8, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5421, 62, 35226, 62, 2536, 796, 705, 7784, 62, 6, 1343, 5772, 62, 4868, 58, 74, 60, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 6822, 611, 2746, 468, 262, 5421, 11688, 13, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 468, 35226, 7, 944, 13, 4666, 11, 5421, 62, 35226, 62, 2536, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22303, 62, 4868, 13, 33295, 19510, 14202, 11, 14202, 4008, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22303, 62, 4868, 13, 33295, 7, 83, 29291, 7, 1136, 35226, 7, 944, 13, 4666, 11, 5421, 62, 35226, 62, 2536, 22305, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 22303, 62, 83, 29291, 796, 46545, 7, 65, 3733, 62, 4868, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 16204, 378, 262, 23989, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 27183, 13, 1084, 48439, 7, 11072, 62, 12543, 11, 350, 15, 11, 22303, 28, 65, 3733, 62, 4868, 11, 284, 75, 28, 83, 349, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1255, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 4876, 796, 705, 40085, 1096, 6, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 611, 4876, 6624, 705, 40085, 1096, 10354, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3497, 3047, 1366, 201, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 62, 7753, 796, 45941, 13, 2220, 14116, 10786, 6500, 38, 62, 7890, 13, 40664, 3256, 14267, 8516, 28, 16, 11, 46728, 2676, 28, 3256, 11537, 201, 198, 220, 220, 220, 220, 220, 220, 220, 2030, 48382, 796, 2420, 62, 7753, 58, 16, 45299, 15, 60, 201, 198, 220, 220, 220, 220, 220, 220, 220, 5635, 796, 2420, 62, 7753, 58, 16, 45299, 16, 60, 9, 940, 1174, 1731, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 399, 796, 949, 7, 11925, 7, 19503, 48382, 828, 18896, 7, 30132, 4008, 201, 198, 220, 220, 220, 220, 220, 220, 220, 4512, 62, 7890, 796, 47527, 19503, 48382, 58, 74, 4357, 5635, 58, 74, 12962, 329, 479, 287, 2837, 7, 45, 15437, 201, 198, 220, 220, 220, 220, 220, 220, 220, 686, 732, 62, 8738, 796, 44842, 27871, 320, 1634, 7, 27432, 28, 27432, 62, 7890, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 5772, 62, 4868, 796, 37250, 38, 62, 1453, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 38, 62, 20295, 3256, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 38, 62, 2771, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 38, 62, 274, 260, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 38, 62, 82, 3808, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 26591, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 31361, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 83, 15, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 32, 62, 3620, 38, 6, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 686, 732, 62, 8738, 13, 40085, 1096, 7, 17143, 62, 4868, 11, 284, 75, 28, 20, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 62, 30132, 796, 686, 732, 62, 8738, 13, 4666, 13, 5589, 1133, 62, 47, 7, 19503, 48382, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 458, 83, 13, 29487, 7, 19503, 48382, 11, 5635, 11, 705, 81, 438, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2030, 48382, 11, 2746, 62, 30132, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 458, 83, 13, 12860, 3419, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 1288, 361, 4876, 6624, 705, 34960, 10354, 201, 198, 220, 220, 220, 220, 220, 220, 220, 2030, 48382, 796, 45941, 13, 21602, 10223, 7, 15, 13, 17, 11, 3064, 11, 997, 28, 1120, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 953, 796, 44842, 4626, 17633, 3419, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 48749, 796, 953, 13, 5589, 1133, 62, 47, 7, 19503, 48382, 8, 532, 953, 13, 5589, 1133, 62, 47, 62, 6500, 38, 7, 19503, 48382, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 47764, 62, 6500, 38, 796, 279, 67, 13, 6601, 19778, 7, 37659, 13, 16485, 1453, 2736, 7, 6500, 38, 4008, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 47764, 62, 6500, 38, 13, 8937, 22446, 29487, 7, 6404, 87, 28, 17821, 11, 6404, 88, 28, 17821, 8, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
1.754261
1,819
#graph_visualize.py from graphviz import Digraph import pairwise # Given a vector of the form generated in pairwise.py for # easy reading into NNs, produce a diagram of the represented graph
[ 2, 34960, 62, 41464, 1096, 13, 9078, 198, 198, 6738, 4823, 85, 528, 1330, 7367, 1470, 198, 11748, 5166, 3083, 198, 198, 2, 11259, 257, 15879, 286, 262, 1296, 7560, 287, 5166, 3083, 13, 9078, 329, 220, 198, 2, 2562, 3555, 656, 399, 47503, 11, 4439, 257, 16362, 286, 262, 7997, 4823, 198 ]
3.660377
53
from machine.corpora import ( DictionaryTextAlignmentCorpus, DictionaryTextCorpus, MemoryText, MemoryTextAlignmentCollection, ParallelTextCorpus, )
[ 6738, 4572, 13, 10215, 38851, 1330, 357, 198, 220, 220, 220, 28261, 8206, 2348, 16747, 45680, 385, 11, 198, 220, 220, 220, 28261, 8206, 45680, 385, 11, 198, 220, 220, 220, 14059, 8206, 11, 198, 220, 220, 220, 14059, 8206, 2348, 16747, 36307, 11, 198, 220, 220, 220, 42945, 8206, 45680, 385, 11, 198, 8, 628, 628, 628, 198 ]
2.949153
59
from unicodedata import name import unittest from app.models import Vote, User
[ 6738, 28000, 9043, 1045, 1330, 1438, 198, 11748, 555, 715, 395, 198, 6738, 598, 13, 27530, 1330, 19175, 11, 11787, 198 ]
3.761905
21
import sys # recursive search through bag dictionary: # given a bag string, return only the name of the bag: # ex: 1 light blue returns light blue # given a bag string, return the quantity: # ex: 1 light blue returns 1 f = open(sys.argv[1],"r") L = [] for item in f: L.append(item.strip()) # dictionary where key is bag and values are which bags can be stored: bag_contains = dict() for rule in L: rule_list = rule.split(" ") # this bag is always going to be the first 2 words: this_bag = rule_list[0] + " " + rule_list[1] # insert into dictionary: if this_bag not in bag_contains: bag_contains[this_bag] = [] i = 3 # loop through rest of list: while i < len(rule_list): word = rule_list[i].strip(",").strip(".") # if we find a bag, grab the last 2 words (these will be the color) if (word == "bag" or word == "bags"): current_bag = rule_list[i-3] + " " + rule_list[i-2] + " " + rule_list[i-1] # this means no bags if get_bag(current_bag) != "no other": bag_contains[this_bag].append(current_bag) i += 1 print(search(bag_contains,"2 dark green")) print(search(bag_contains,"1 shiny gold"))
[ 11748, 25064, 198, 198, 2, 45115, 2989, 832, 6131, 22155, 25, 198, 198, 2, 1813, 257, 6131, 4731, 11, 1441, 691, 262, 1438, 286, 262, 6131, 25, 198, 2, 409, 25, 352, 1657, 4171, 5860, 1657, 4171, 198, 198, 2, 1813, 257, 6131, 4731, 11, 1441, 262, 12040, 25, 198, 2, 409, 25, 352, 1657, 4171, 5860, 352, 198, 198, 69, 796, 1280, 7, 17597, 13, 853, 85, 58, 16, 17241, 81, 4943, 198, 43, 796, 17635, 198, 1640, 2378, 287, 277, 25, 198, 197, 43, 13, 33295, 7, 9186, 13, 36311, 28955, 198, 198, 2, 22155, 810, 1994, 318, 6131, 290, 3815, 389, 543, 11668, 460, 307, 8574, 25, 198, 21454, 62, 3642, 1299, 796, 8633, 3419, 198, 198, 1640, 3896, 287, 406, 25, 198, 197, 25135, 62, 4868, 796, 3896, 13, 35312, 7203, 366, 8, 198, 197, 2, 428, 6131, 318, 1464, 1016, 284, 307, 262, 717, 362, 2456, 25, 198, 197, 5661, 62, 21454, 796, 3896, 62, 4868, 58, 15, 60, 1343, 366, 366, 1343, 3896, 62, 4868, 58, 16, 60, 198, 197, 2, 7550, 656, 22155, 25, 198, 197, 361, 428, 62, 21454, 407, 287, 6131, 62, 3642, 1299, 25, 198, 197, 197, 21454, 62, 3642, 1299, 58, 5661, 62, 21454, 60, 796, 17635, 198, 197, 72, 796, 513, 198, 197, 2, 9052, 832, 1334, 286, 1351, 25, 198, 197, 4514, 1312, 1279, 18896, 7, 25135, 62, 4868, 2599, 198, 197, 197, 4775, 796, 3896, 62, 4868, 58, 72, 4083, 36311, 7, 2430, 737, 36311, 7203, 19570, 198, 197, 197, 2, 611, 356, 1064, 257, 6131, 11, 5552, 262, 938, 362, 2456, 357, 27218, 481, 307, 262, 3124, 8, 198, 197, 197, 361, 357, 4775, 6624, 366, 21454, 1, 393, 1573, 6624, 366, 34005, 1, 2599, 198, 197, 197, 197, 14421, 62, 21454, 796, 3896, 62, 4868, 58, 72, 12, 18, 60, 1343, 366, 366, 1343, 3896, 62, 4868, 58, 72, 12, 17, 60, 1343, 366, 366, 1343, 3896, 62, 4868, 58, 72, 12, 16, 60, 198, 197, 197, 197, 2, 428, 1724, 645, 11668, 198, 197, 197, 197, 361, 651, 62, 21454, 7, 14421, 62, 21454, 8, 14512, 366, 3919, 584, 1298, 198, 197, 197, 197, 197, 21454, 62, 3642, 1299, 58, 5661, 62, 21454, 4083, 33295, 7, 14421, 62, 21454, 8, 198, 197, 197, 72, 15853, 352, 198, 198, 4798, 7, 12947, 7, 21454, 62, 3642, 1299, 553, 17, 3223, 4077, 48774, 198, 4798, 7, 12947, 7, 21454, 62, 3642, 1299, 553, 16, 22441, 3869, 48774, 628, 197, 628 ]
2.73012
415
"One user repeatedly logs in, logs out. Allow interleaving with other actions" from WebModel import Login, Logout actions = (Login, Logout) # just these to allow interleaving initial = 0 accepting = (0,) graph = ((0, (Login, ( 'VinniPuhh', 'Correct' ), 'Success'), 1), (1, (Logout, ( 'VinniPuhh', ), None), 0))
[ 1, 3198, 2836, 7830, 17259, 287, 11, 17259, 503, 13, 220, 22507, 987, 293, 2703, 351, 584, 4028, 1, 198, 198, 6738, 5313, 17633, 1330, 23093, 11, 5972, 448, 198, 198, 4658, 796, 357, 47790, 11, 5972, 448, 8, 1303, 655, 777, 284, 1249, 987, 293, 2703, 198, 198, 36733, 796, 657, 198, 13635, 278, 796, 357, 15, 35751, 198, 198, 34960, 796, 14808, 15, 11, 357, 47790, 11, 357, 705, 53, 3732, 72, 47, 7456, 71, 3256, 705, 42779, 6, 10612, 705, 33244, 33809, 352, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 357, 16, 11, 357, 11187, 448, 11, 357, 705, 53, 3732, 72, 47, 7456, 71, 3256, 10612, 6045, 828, 657, 4008, 628 ]
2.762712
118
import os from django.test import TestCase from django.contrib.staticfiles import finders
[ 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 12708, 16624, 1330, 1064, 364, 628 ]
3.444444
27
import dlib import cv2 import numpy as np import sys import models import NonLinearLeastSquares import ImageProcessing from drawing import * import FaceRendering import utils import os import subprocess print "Press T to draw the keypoints and the 3D model" print "Press R to start recording to a video file" #you need to download shape_predictor_68_face_landmarks.dat from the link below and unpack it where the solution file is #http://sourceforge.net/projects/dclib/files/dlib/v18.10/shape_predictor_68_face_landmarks.dat.bz2 #loading the keypoint detection model, the image and the 3D model predictor_path = "../shape_predictor_68_face_landmarks.dat" face_cvv_detector_path ="../mmod_human_face_detector.dat" image_name = "../bnl/images/"+sys.argv[1] #the smaller this value gets the faster the detection will work #if it is too small, the user's face might not be detected maxImageSizeForDetection = 960 #detector = dlib.cnn_face_detection_model_v1(face_cvv_detector_path) detector = dlib.get_frontal_face_detector() predictor = dlib.shape_predictor(predictor_path) mean3DShape, blendshapes, mesh, idxs3D, idxs2D = utils.load3DFaceModel("../candide.npz") projectionModel = models.OrthographicProjectionBlendshapes(blendshapes.shape[0]) modelParams = None lockedTranslation = False drawOverlay = False cap = cv2.VideoCapture("../data/"+sys.argv[2]+".mp4") fourcc = cv2.VideoWriter_fourcc(*'XVID') # Check if camera opened successfully if (cap.isOpened()== False): print("Error opening video stream or file") cameraImg = cap.read()[1] writer = None if writer is None: print "Starting video writer" writer = cv2.VideoWriter("../bnl/videos/"+sys.argv[1]+"-out.avi", fourcc, 25,(cameraImg.shape[1], cameraImg.shape[0])) if writer.isOpened(): print "Writer succesfully opened" else: writer = None print "Writer opening failed" textureImg = cv2.imread(image_name) textureCoords = utils.getFaceTextureCoords(textureImg, mean3DShape, blendshapes, idxs2D, idxs3D, detector, predictor) renderer = FaceRendering.FaceRenderer(cameraImg, textureImg, textureCoords, mesh) while True: cameraImg = cap.read()[1] try: shapes2D = utils.getFaceKeypoints(cameraImg, detector, predictor, maxImageSizeForDetection) if shapes2D is not None: for shape2D in shapes2D: #3D model parameter initialization modelParams = projectionModel.getInitialParameters(mean3DShape[:, idxs3D], shape2D[:, idxs2D]) #3D model parameter optimization modelParams = NonLinearLeastSquares.GaussNewton(modelParams, projectionModel.residual, projectionModel.jacobian, ([mean3DShape[:, idxs3D], blendshapes[:, :, idxs3D]], shape2D[:, idxs2D]), verbose=0) #rendering the model to an image shape3D = utils.getShape3D(mean3DShape, blendshapes, modelParams) renderedImg = renderer.render(shape3D) #blending of the rendered face with the image mask = np.copy(renderedImg[:, :, 0]) renderedImg = ImageProcessing.colorTransfer(cameraImg, renderedImg, mask) cameraImg = ImageProcessing.blendImages(renderedImg, cameraImg, mask,0.1) #drawing of the mesh and keypoints if drawOverlay: drawPoints(cameraImg, shape2D.T) drawProjectedShape(cameraImg, [mean3DShape, blendshapes], projectionModel, mesh, modelParams, lockedTranslation) if writer is not None: writer.write(cameraImg) cv2.imshow('image', cameraImg) key = cv2.waitKey(1) if key == 27: break if key == ord('t'): drawOverlay = not drawOverlay except: print("An exception occurred") break print "Stopping video writer" writer.release() writer = None os.chdir('C://Users/Asus/') # ffmpeg -i 1569831566308.jpeg-out.avi -i ../../data/superVideo2.mp4 -map 0:0 -map 1:1 -shortest 1569831566308.jpeg-out.mp4 subprocess.call(["ffmpeg", "-i", "../bnl/videos/"+sys.argv[1]+"-out.avi", "-i ", "../data/"+sys.argv[2]+".mp4", "-map ", "0:0", "-map ", "1:1", "-shortest", "../bnl/videos/"+sys.argv[1]+"-out.mp4" ])
[ 11748, 288, 8019, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 198, 11748, 4981, 198, 11748, 8504, 14993, 451, 3123, 459, 22266, 3565, 198, 11748, 7412, 18709, 278, 198, 198, 6738, 8263, 1330, 1635, 198, 198, 11748, 15399, 49, 437, 1586, 198, 11748, 3384, 4487, 198, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 198, 4798, 366, 13800, 309, 284, 3197, 262, 1994, 13033, 290, 262, 513, 35, 2746, 1, 198, 4798, 366, 13800, 371, 284, 923, 8296, 284, 257, 2008, 2393, 1, 198, 198, 2, 5832, 761, 284, 4321, 5485, 62, 79, 17407, 273, 62, 3104, 62, 2550, 62, 1044, 14306, 13, 19608, 422, 262, 2792, 2174, 290, 555, 8002, 340, 810, 262, 4610, 2393, 318, 198, 2, 4023, 1378, 10459, 30293, 13, 3262, 14, 42068, 14, 67, 565, 571, 14, 16624, 14, 67, 8019, 14, 85, 1507, 13, 940, 14, 43358, 62, 79, 17407, 273, 62, 3104, 62, 2550, 62, 1044, 14306, 13, 19608, 13, 65, 89, 17, 198, 198, 2, 25138, 262, 1994, 4122, 13326, 2746, 11, 262, 2939, 290, 262, 513, 35, 2746, 198, 79, 17407, 273, 62, 6978, 796, 366, 40720, 43358, 62, 79, 17407, 273, 62, 3104, 62, 2550, 62, 1044, 14306, 13, 19608, 1, 198, 2550, 62, 66, 25093, 62, 15255, 9250, 62, 6978, 796, 1, 40720, 3020, 375, 62, 10734, 62, 2550, 62, 15255, 9250, 13, 19608, 1, 198, 9060, 62, 3672, 796, 366, 40720, 9374, 75, 14, 17566, 30487, 10, 17597, 13, 853, 85, 58, 16, 60, 198, 2, 1169, 4833, 428, 1988, 3011, 262, 5443, 262, 13326, 481, 670, 198, 2, 361, 340, 318, 1165, 1402, 11, 262, 2836, 338, 1986, 1244, 407, 307, 12326, 198, 9806, 5159, 10699, 1890, 11242, 3213, 796, 41263, 198, 198, 2, 15255, 9250, 796, 288, 8019, 13, 66, 20471, 62, 2550, 62, 15255, 3213, 62, 19849, 62, 85, 16, 7, 2550, 62, 66, 25093, 62, 15255, 9250, 62, 6978, 8, 220, 198, 15255, 9250, 796, 288, 8019, 13, 1136, 62, 8534, 282, 62, 2550, 62, 15255, 9250, 3419, 198, 79, 17407, 273, 796, 288, 8019, 13, 43358, 62, 79, 17407, 273, 7, 79, 17407, 273, 62, 6978, 8, 198, 32604, 18, 35, 33383, 11, 13516, 1477, 7916, 11, 19609, 11, 4686, 34223, 18, 35, 11, 4686, 34223, 17, 35, 796, 3384, 4487, 13, 2220, 18, 8068, 558, 17633, 7203, 40720, 46188, 485, 13, 37659, 89, 4943, 198, 198, 16302, 295, 17633, 796, 4981, 13, 5574, 400, 6826, 16775, 295, 3629, 437, 1477, 7916, 7, 2436, 437, 1477, 7916, 13, 43358, 58, 15, 12962, 198, 198, 19849, 10044, 4105, 796, 6045, 198, 24162, 48313, 796, 10352, 198, 19334, 5886, 10724, 796, 10352, 198, 11128, 796, 269, 85, 17, 13, 10798, 49630, 7203, 40720, 7890, 30487, 10, 17597, 13, 853, 85, 58, 17, 48688, 1911, 3149, 19, 4943, 198, 198, 14337, 535, 796, 269, 85, 17, 13, 10798, 34379, 62, 14337, 535, 46491, 6, 55, 11008, 11537, 198, 198, 2, 6822, 611, 4676, 4721, 7675, 198, 361, 357, 11128, 13, 271, 18257, 2945, 3419, 855, 10352, 2599, 220, 198, 220, 3601, 7203, 12331, 4756, 2008, 4269, 393, 2393, 4943, 198, 198, 25695, 3546, 70, 796, 1451, 13, 961, 3419, 58, 16, 60, 198, 198, 16002, 796, 6045, 198, 361, 6260, 318, 6045, 25, 198, 197, 4798, 366, 22851, 2008, 6260, 1, 198, 197, 16002, 796, 269, 85, 17, 13, 10798, 34379, 7203, 40720, 9374, 75, 14, 32861, 30487, 10, 17597, 13, 853, 85, 58, 16, 48688, 26793, 448, 13, 15820, 1600, 1440, 535, 11, 1679, 11, 7, 25695, 3546, 70, 13, 43358, 58, 16, 4357, 4676, 3546, 70, 13, 43358, 58, 15, 60, 4008, 198, 197, 361, 6260, 13, 271, 18257, 2945, 33529, 198, 197, 197, 4798, 366, 34379, 17458, 274, 2759, 4721, 1, 198, 197, 17772, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6260, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 34379, 4756, 4054, 1, 628, 198, 198, 41293, 3546, 70, 796, 269, 85, 17, 13, 320, 961, 7, 9060, 62, 3672, 8, 198, 41293, 7222, 3669, 796, 3384, 4487, 13, 1136, 32388, 32742, 7222, 3669, 7, 41293, 3546, 70, 11, 1612, 18, 35, 33383, 11, 13516, 1477, 7916, 11, 4686, 34223, 17, 35, 11, 4686, 34223, 18, 35, 11, 31029, 11, 41568, 8, 198, 10920, 11882, 796, 15399, 49, 437, 1586, 13, 32388, 49, 437, 11882, 7, 25695, 3546, 70, 11, 11743, 3546, 70, 11, 11743, 7222, 3669, 11, 19609, 8, 198, 198, 4514, 6407, 25, 198, 220, 220, 220, 4676, 3546, 70, 796, 1451, 13, 961, 3419, 58, 16, 60, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 15268, 17, 35, 796, 3384, 4487, 13, 1136, 32388, 9218, 13033, 7, 25695, 3546, 70, 11, 31029, 11, 41568, 11, 3509, 5159, 10699, 1890, 11242, 3213, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 15268, 17, 35, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 5485, 17, 35, 287, 15268, 17, 35, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 18, 35, 2746, 11507, 37588, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2746, 10044, 4105, 796, 20128, 17633, 13, 1136, 24243, 48944, 7, 32604, 18, 35, 33383, 58, 45299, 4686, 34223, 18, 35, 4357, 5485, 17, 35, 58, 45299, 4686, 34223, 17, 35, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 18, 35, 2746, 11507, 23989, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2746, 10044, 4105, 796, 8504, 14993, 451, 3123, 459, 22266, 3565, 13, 35389, 1046, 3791, 1122, 7, 19849, 10044, 4105, 11, 20128, 17633, 13, 411, 312, 723, 11, 20128, 17633, 13, 30482, 672, 666, 11, 29565, 32604, 18, 35, 33383, 58, 45299, 4686, 34223, 18, 35, 4357, 13516, 1477, 7916, 58, 45299, 1058, 11, 4686, 34223, 18, 35, 60, 4357, 5485, 17, 35, 58, 45299, 4686, 34223, 17, 35, 46570, 15942, 577, 28, 15, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 13287, 278, 262, 2746, 284, 281, 2939, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5485, 18, 35, 796, 3384, 4487, 13, 1136, 33383, 18, 35, 7, 32604, 18, 35, 33383, 11, 13516, 1477, 7916, 11, 2746, 10044, 4105, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15111, 3546, 70, 796, 9851, 11882, 13, 13287, 7, 43358, 18, 35, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2436, 1571, 286, 262, 15111, 1986, 351, 262, 2939, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9335, 796, 45941, 13, 30073, 7, 26238, 3546, 70, 58, 45299, 1058, 11, 657, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15111, 3546, 70, 796, 7412, 18709, 278, 13, 8043, 43260, 7, 25695, 3546, 70, 11, 15111, 3546, 70, 11, 9335, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4676, 3546, 70, 796, 7412, 18709, 278, 13, 2436, 437, 29398, 7, 26238, 3546, 70, 11, 4676, 3546, 70, 11, 9335, 11, 15, 13, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 19334, 278, 286, 262, 19609, 290, 1994, 13033, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 3197, 5886, 10724, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3197, 40710, 7, 25695, 3546, 70, 11, 5485, 17, 35, 13, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3197, 16775, 276, 33383, 7, 25695, 3546, 70, 11, 685, 32604, 18, 35, 33383, 11, 13516, 1477, 7916, 4357, 20128, 17633, 11, 19609, 11, 2746, 10044, 4105, 11, 8970, 48313, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 6260, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6260, 13, 13564, 7, 25695, 3546, 70, 8, 628, 220, 220, 220, 220, 220, 220, 220, 269, 85, 17, 13, 320, 12860, 10786, 9060, 3256, 4676, 3546, 70, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1994, 796, 269, 85, 17, 13, 17077, 9218, 7, 16, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1994, 6624, 2681, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1994, 6624, 2760, 10786, 83, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3197, 5886, 10724, 796, 407, 3197, 5886, 10724, 198, 220, 220, 220, 2845, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 2025, 6631, 5091, 4943, 220, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 198, 4798, 366, 1273, 33307, 2008, 6260, 1, 198, 16002, 13, 20979, 3419, 198, 16002, 796, 6045, 198, 198, 418, 13, 354, 15908, 10786, 34, 1378, 14490, 14, 1722, 385, 14, 11537, 198, 2, 31246, 43913, 532, 72, 1315, 3388, 5999, 1314, 2791, 21495, 13, 73, 22071, 12, 448, 13, 15820, 532, 72, 11485, 14, 40720, 7890, 14, 16668, 10798, 17, 13, 3149, 19, 220, 532, 8899, 657, 25, 15, 532, 8899, 352, 25, 16, 532, 19509, 395, 1315, 3388, 5999, 1314, 2791, 21495, 13, 73, 22071, 12, 448, 13, 3149, 19, 198, 198, 7266, 14681, 13, 13345, 7, 14692, 487, 43913, 1600, 27444, 72, 1600, 366, 40720, 9374, 75, 14, 32861, 30487, 10, 17597, 13, 853, 85, 58, 16, 48688, 26793, 448, 13, 15820, 1600, 27444, 72, 33172, 366, 40720, 7890, 30487, 10, 17597, 13, 853, 85, 58, 17, 48688, 1911, 3149, 19, 1600, 27444, 8899, 33172, 366, 15, 25, 15, 1600, 27444, 8899, 33172, 366, 16, 25, 16, 1600, 27444, 19509, 395, 1600, 366, 40720, 9374, 75, 14, 32861, 30487, 10, 17597, 13, 853, 85, 58, 16, 48688, 26793, 448, 13, 3149, 19, 1, 33761, 198 ]
2.419977
1,762
from auxiliar import receberInt from time import sleep # main contador(1, 10, 1) contador(10, 0, 2) contador(receberInt('Digite o inicio: '), receberInt('Digite o fim: '), receberInt('Digite o passo: ')) input('\n\nPressione <enter> para continuar')
[ 6738, 27506, 4797, 1330, 1407, 527, 5317, 198, 6738, 640, 1330, 3993, 628, 198, 2, 1388, 198, 3642, 7079, 7, 16, 11, 838, 11, 352, 8, 198, 3642, 7079, 7, 940, 11, 657, 11, 362, 8, 198, 3642, 7079, 7, 260, 344, 527, 5317, 10786, 19511, 578, 267, 287, 46441, 25, 705, 828, 1407, 527, 5317, 10786, 19511, 578, 267, 277, 320, 25, 705, 828, 1407, 527, 5317, 10786, 19511, 578, 267, 1208, 78, 25, 705, 4008, 198, 198, 15414, 10786, 59, 77, 59, 77, 47, 2234, 68, 1279, 9255, 29, 31215, 11143, 283, 11537, 198 ]
2.635417
96
# Generated by Django 2.2.2 on 2019-07-05 12:44 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 17, 319, 13130, 12, 2998, 12, 2713, 1105, 25, 2598, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import pickle import numpy as np import gurobipy as gp from gurobipy import GRB from tqdm.notebook import trange, tqdm
[ 11748, 2298, 293, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 915, 22609, 541, 88, 355, 27809, 198, 6738, 915, 22609, 541, 88, 1330, 10863, 33, 198, 6738, 256, 80, 36020, 13, 11295, 2070, 1330, 491, 858, 11, 256, 80, 36020, 628, 628, 628 ]
2.818182
44
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/09_matching.ipynb (unless otherwise specified). __all__ = ['calculate_distance', 'calib_table', 'align', 'calculate_deltas', 'align_files', 'align_datasets', 'get_probability', 'match_datasets'] # Cell import pandas as pd import numpy as np def calculate_distance(table_1: pd.DataFrame, table_2: pd.DataFrame, offset_dict: dict, calib: bool = False) -> (list, int): """Calculate the distance between two precursors for different columns Distance can either be relative or absolute. An example for a minimal offset_dict is: offset_dict = {'mass':'absolute'} Args: table_1 (pd.DataFrame): Dataframe with precusor data. table_2 (pd.DataFrame): Dataframe with precusor data. offset_dict (dict): Dictionary with column names and how the distance should be calculated. calib (bool): Flag to indicate that distances should be calculated on calibrated columns. Defaults to False. Raises: KeyError: If either table_1 or table_2 is not indexed by precursor """ if table_1.index.name != 'precursor': raise KeyError('table_1 is not indexed by precursor') if table_2.index.name != 'precursor': raise KeyError('table_2 is not indexed by precursor') shared_precursors = list(set(table_1.index).intersection(set(table_2.index))) table_1_ = table_1.loc[shared_precursors] table_2_ = table_2.loc[shared_precursors] table_1_ = table_1_.groupby('precursor').mean() table_2_ = table_2_.groupby('precursor').mean() deltas = [] for col in offset_dict: if calib: col_ = col+'_calib' else: col_ = col if offset_dict[col] == 'absolute': deltas.append(np.nanmedian(table_1_[col_] - table_2_[col_])) elif offset_dict[col] == 'relative': deltas.append(np.nanmedian((table_1_[col_] - table_2_[col_]) / (table_1_[col_] + table_2_[col_]) * 2)) else: raise NotImplementedError(f"Calculating delta for {offset_dict[col_]} not implemented.") return deltas, len(shared_precursors) # Cell def calib_table(table: pd.DataFrame, delta: pd.Series, offset_dict: dict): """ Apply offset to a table. Different operations for offsets exist. Offsets will be saved with a '_calib'-suffix. If this does not already exist, it will be created. Args: table_1 (pd.DataFrame): Dataframe with data. delta (pd.Series): Series cotaining the offset. offset_dict (dict): Dictionary with column names and how the distance should be calculated. Raises: NotImplementedError: If the type of vonversion is not implemented. """ for col in offset_dict: if (col not in table.columns) and (col+'_apex' in table.columns): col_ = col+'_apex' else: col_ = col if offset_dict[col] == 'absolute': table[col+'_calib'] = table[col_]-delta[col] elif offset_dict[col] == 'relative': table[col+'_calib'] = (1-delta[col_])*table[col] else: raise NotImplementedError(offset_dict[col]) # Cell import logging from sklearn.linear_model import LinearRegression def align(deltas: pd.DataFrame, filenames: list, weights:np.ndarray=None) -> np.ndarray: """Align multiple datasets. This function creates a matrix to represent the shifts from each dataset to another. This effectively is an overdetermined equation system and is solved with a linear regression. Args: deltas (pd.DataFrame): Distances from each dataset to another. filenames (list): The filenames of the datasts that were compared. weights (np.ndarray, optional): Distances can be weighted by their number of shared elements. Defaults to None. Returns: np.ndarray: alignment values. """ matrix = [] for i in range(len(deltas)): start, end = deltas.index[i] start_idx = filenames.index(start) end_idx = filenames.index(end) lines = np.zeros(len(filenames)-1) lines[start_idx:end_idx] = 1 matrix.append(lines) # Remove nan values not_nan = ~deltas.isnull().any(axis=1) matrix = np.array(matrix) matrix = matrix[not_nan] deltas_ = deltas[not_nan] if len(deltas) < matrix.shape[1]: logging.info('Low overlap between datasets detected. Alignment may fail.') if weights is not None: reg = LinearRegression(fit_intercept=False).fit(matrix, deltas_.values, sample_weight = weights[not_nan]) score= reg.score(matrix, deltas_.values) else: reg = LinearRegression(fit_intercept=False).fit(matrix, deltas_.values) score= reg.score(matrix, deltas_.values) logging.info(f"Regression score is {score}") x = reg.predict(np.eye(len(filenames)-1)) return x # Cell import alphapept.io import os from typing import Callable def calculate_deltas(combos: list, calib:bool = False, callback:Callable=None) -> (pd.DataFrame, np.ndarray, dict): """Wrapper function to calculate the distances of multiple files. In here, we define the offset_dict to make a relative comparison for mz and mobility and absolute for rt. TODO: This function could be speed-up by parallelization Args: combos (list): A list containing tuples of filenames that should be compared. calib (bool): Boolean flag to indicate distance should be calculated on calibrated data. callback (Callable): A callback function to track progress. Returns: pd.DataFrame: Dataframe containing the deltas of the files np.ndarray: Numpy array containing the weights of each comparison (i.e. number of shared elements) dict: Offset dictionary whicch was used for comparing. """ offset_dict = {} deltas = pd.DataFrame() weights = [] for i, combo in enumerate(combos): file1 = os.path.splitext(combo[0])[0] + '.ms_data.hdf' file2 = os.path.splitext(combo[1])[0] + '.ms_data.hdf' df_1 = alphapept.io.MS_Data_File(file1).read(dataset_name="peptide_fdr").set_index('precursor') df_2 = alphapept.io.MS_Data_File(file2).read(dataset_name="peptide_fdr").set_index('precursor') if not offset_dict: offset_dict = {'mz':'relative', 'rt':'absolute'} if 'mobility' in df_1.columns: logging.info("Also using mobility for calibration.") offset_dict['mobility'] = 'relative' cols = list(offset_dict.keys()) if len(deltas) == 0: deltas = pd.DataFrame(columns = cols) dists, weight = calculate_distance(df_1, df_2, offset_dict, calib = calib) deltas = deltas.append(pd.DataFrame([dists], columns = cols, index=[combo])) weights.append(weight) if callback: callback((i+1)/len(combos)) return deltas, np.array(weights), offset_dict # Cell import pandas as pd from itertools import combinations import numpy as np import os import functools #There is no unit test for align_files and align_datasets as they are wrappers and should be covered by the quick_test def align_files(filenames: list, alignment: pd.DataFrame, offset_dict: dict): """ Wrapper function that aligns a list of files. Args: filenames (list): A list with raw file names. alignment (pd.DataFrame): A pandas dataframe containing the alignment information. offset_dict (dict): Dictionary with column names and how the distance should be calculated. """ for idx, filename in enumerate(filenames): file = os.path.splitext(filename)[0] + '.ms_data.hdf' for column in ['peptide_fdr', 'feature_table']: df = alphapept.io.MS_Data_File(file).read(dataset_name=column) calib_table(df, alignment.iloc[idx], offset_dict) logging.info(f"Saving {file} - {column}.") ms_file = alphapept.io.MS_Data_File(file, is_overwritable=True) ms_file.write(df, dataset_name=column) def align_datasets(settings:dict, callback:callable=None): """ Wrapper function that aligns all experimental files specified a settings file. Args: settings (dict): A list with raw file names. callback (Callable): Callback function to indicate progress. """ filenames = settings['experiment']['file_paths'] if callback: cb = functools.partial(progress_wrapper, 0, 2) else: cb = None if len(filenames) > 1: combos = list(combinations(filenames, 2)) deltas, weights, offset_dict = calculate_deltas(combos, callback=cb) cols = list(offset_dict.keys()) before_sum = deltas.abs().sum().to_dict() before_mean = deltas.abs().mean().to_dict() logging.info(f'Total deviation before calibration {before_sum}') logging.info(f'Mean deviation before calibration {before_mean}') logging.info(f'Solving equation system') alignment = pd.DataFrame(align(deltas, filenames, weights), columns = cols) alignment = pd.concat([pd.DataFrame(np.zeros((1, alignment.shape[1])), columns= cols), alignment]) alignment -= alignment.mean() logging.info(f'Solving equation system complete.') logging.info(f'Applying offset') align_files(filenames, -alignment, offset_dict) if cb: cb = functools.partial(progress_wrapper, 1, 2) deltas, weights, offset_dict = calculate_deltas(combos, calib=True, callback=cb) after_sum = deltas.abs().sum().to_dict() after_mean = deltas.abs().mean().to_dict() logging.info(f'Total deviation after calibration {after_sum}') logging.info(f'Mean deviation after calibration {after_mean}') change_sum = {k:v/before_sum[k] for k,v in after_sum.items()} change_mean = {k:v/before_mean[k] for k,v in after_mean.items()} logging.info(f'Change (after/before) total deviation {change_sum}') logging.info(f'Change (after/before) mean deviation {change_mean}') else: logging.info('Only 1 dataset present. Skipping alignment.') # Cell from scipy import stats def get_probability(df: pd.DataFrame, ref: pd.DataFrame, sigma:pd.DataFrame, index:int)-> float: """Probablity estimate of a transfered identification using the Mahalanobis distance. The function calculates the probability that a feature is a reference feature. The reference features containing std deviations so that a probability can be estimated. It is required that the data frames are matched, meaning that the first entry in df matches to the first entry in ref. Args: df (pd.DataFrame): Dataset containing transferered features ref (pd.DataFrame): Dataset containing reference features sigma (pd.DataFrame): Dataset containing the standard deviations of the reference features index (int): Index to the datframes that should be compared Returns: float: Mahalanobis distance """ sigma = sigma.iloc[index].values sigma = sigma*np.eye(len(sigma)) mu = ref.iloc[index].values x = df.iloc[index].values try: m_dist_x = np.dot((x-mu).transpose(), np.linalg.inv(sigma)) m_dist_x = np.dot(m_dist_x, (x-mu)) _ = stats.chi2.cdf(m_dist_x, len(mu)) except Exception as e: _ = np.nan return _ # Cell from sklearn.neighbors import KDTree from .utils import assemble_df # This function is a wrapper function and has currently has no unit test # The function will be revised when implementing issue #255: https://github.com/MannLabs/alphapept/issues/255 def match_datasets(settings:dict, callback:Callable = None): """Match datasets: Wrapper function to match datasets based on a settings file. Args: settings (dict): Dictionary containg specifications of the run callback (Callable): Callback function to indicate progress. """ if len(settings['experiment']['file_paths']) > 2: xx = alphapept.utils.assemble_df(settings, field='peptide_fdr') base_col = ['precursor'] alignment_cols = ['mz_calib','rt_calib'] extra_cols = ['score','decoy','target'] if 'mobility' in xx.columns: alignment_cols += ['mobility_calib'] use_mobility = True else: use_mobility = False grouped = xx[base_col + alignment_cols + extra_cols].groupby('precursor').mean() std_ = xx[base_col + alignment_cols].groupby('precursor').std() grouped[[_+'_std' for _ in alignment_cols]] = std_ std_range = np.nanmedian(std_.values, axis=0) match_p_min = settings['matching']['match_p_min'] match_d_min = settings['matching']['match_d_min'] filenames = settings['experiment']['file_paths'] lookup_dict = xx.set_index('precursor')[['sequence']].to_dict() for idx, filename in enumerate(filenames): file = os.path.splitext(filename)[0] + '.ms_data.hdf' df = alphapept.io.MS_Data_File(file).read(dataset_name='peptide_fdr') features = alphapept.io.MS_Data_File(file).read(dataset_name='feature_table') features['feature_idx'] = features.index matching_set = set(grouped.index) - set(df['precursor']) logging.info(f'Trying to match file {file} with database of {len(matching_set):,} unidentified candidates') mz_range = std_range[0] rt_range = std_range[1] tree_points = features[alignment_cols].values tree_points[:,0] = tree_points[:,0]/mz_range tree_points[:,1] = tree_points[:,1]/rt_range query_points = grouped.loc[matching_set][alignment_cols].values query_points[:,0] = query_points[:,0]/mz_range query_points[:,1] = query_points[:,1]/rt_range if use_mobility: logging.info("Using mobility") i_range = std_range[2] tree_points[:,2] = tree_points[:,2]/i_range query_points[:,2] = query_points[:,2]/i_range matching_tree = KDTree(tree_points, metric="minkowski") dist, idx = matching_tree.query(query_points, k=1) matched = features.iloc[idx[:,0]] for _ in extra_cols: matched[_] = grouped.loc[matching_set, _].values to_keep = dist < match_d_min matched = matched[to_keep] ref = grouped.loc[matching_set][alignment_cols][to_keep] sigma = std_.loc[matching_set][to_keep] logging.info(f'{len(matched):,} possible features for matching based on distance of {match_d_min}') matched['matching_p'] = [get_probability(matched[alignment_cols], ref, sigma, i) for i in range(len(matched))] matched['precursor'] = grouped.loc[matching_set][to_keep].index.values matched = matched[matched['matching_p']< match_p_min] logging.info(f'{len(matched):,} possible features for matching based on probability of {match_p_min}') matched['type'] = 'matched' for _ in lookup_dict.keys(): matched[_] = [lookup_dict[_][x] for x in matched['precursor']] df['type'] = 'msms' df['matching_p'] = np.nan shared_columns = set(matched.columns).intersection(set(df.columns)) df_ = pd.concat([df, matched[shared_columns]], ignore_index=True) logging.info(f"Saving {file} - peptide_fdr.") ms_file = alphapept.io.MS_Data_File(file, is_overwritable=True) ms_file.write(df_, dataset_name='peptide_fdr') else: logging.info('Less than 3 datasets present. Skipping matching.')
[ 2, 47044, 7730, 1677, 1137, 11617, 0, 8410, 5626, 48483, 0, 9220, 284, 4370, 25, 299, 1443, 14, 2931, 62, 15699, 278, 13, 541, 2047, 65, 357, 25252, 4306, 7368, 737, 198, 198, 834, 439, 834, 796, 37250, 9948, 3129, 378, 62, 30246, 3256, 705, 9948, 571, 62, 11487, 3256, 705, 31494, 3256, 705, 9948, 3129, 378, 62, 67, 2120, 292, 3256, 705, 31494, 62, 16624, 3256, 705, 31494, 62, 19608, 292, 1039, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1136, 62, 1676, 65, 1799, 3256, 705, 15699, 62, 19608, 292, 1039, 20520, 198, 198, 2, 12440, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 4299, 15284, 62, 30246, 7, 11487, 62, 16, 25, 279, 67, 13, 6601, 19778, 11, 3084, 62, 17, 25, 279, 67, 13, 6601, 19778, 11, 11677, 62, 11600, 25, 8633, 11, 27417, 25, 20512, 796, 10352, 8, 4613, 357, 4868, 11, 493, 2599, 198, 220, 220, 220, 37227, 9771, 3129, 378, 262, 5253, 1022, 734, 3718, 1834, 669, 329, 1180, 15180, 198, 220, 220, 220, 34600, 460, 2035, 307, 3585, 393, 4112, 13, 628, 220, 220, 220, 1052, 1672, 329, 257, 10926, 11677, 62, 11600, 318, 25, 11677, 62, 11600, 796, 1391, 6, 22208, 10354, 6, 48546, 6, 92, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3084, 62, 16, 357, 30094, 13, 6601, 19778, 2599, 6060, 14535, 351, 3718, 385, 273, 1366, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3084, 62, 17, 357, 30094, 13, 6601, 19778, 2599, 6060, 14535, 351, 3718, 385, 273, 1366, 13, 198, 220, 220, 220, 220, 220, 220, 220, 11677, 62, 11600, 357, 11600, 2599, 28261, 351, 5721, 3891, 290, 703, 262, 5253, 815, 307, 10488, 13, 198, 220, 220, 220, 220, 220, 220, 220, 27417, 357, 30388, 2599, 19762, 284, 7603, 326, 18868, 815, 307, 10488, 319, 48050, 15180, 13, 2896, 13185, 284, 10352, 13, 628, 220, 220, 220, 7567, 2696, 25, 198, 220, 220, 220, 220, 220, 220, 220, 7383, 12331, 25, 1002, 2035, 3084, 62, 16, 393, 3084, 62, 17, 318, 407, 41497, 416, 34826, 628, 220, 220, 220, 37227, 628, 220, 220, 220, 611, 3084, 62, 16, 13, 9630, 13, 3672, 14512, 705, 3866, 66, 21471, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 7383, 12331, 10786, 11487, 62, 16, 318, 407, 41497, 416, 34826, 11537, 628, 220, 220, 220, 611, 3084, 62, 17, 13, 9630, 13, 3672, 14512, 705, 3866, 66, 21471, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 7383, 12331, 10786, 11487, 62, 17, 318, 407, 41497, 416, 34826, 11537, 628, 220, 220, 220, 4888, 62, 3866, 66, 1834, 669, 796, 1351, 7, 2617, 7, 11487, 62, 16, 13, 9630, 737, 3849, 5458, 7, 2617, 7, 11487, 62, 17, 13, 9630, 22305, 628, 220, 220, 220, 3084, 62, 16, 62, 796, 3084, 62, 16, 13, 17946, 58, 28710, 62, 3866, 66, 1834, 669, 60, 198, 220, 220, 220, 3084, 62, 17, 62, 796, 3084, 62, 17, 13, 17946, 58, 28710, 62, 3866, 66, 1834, 669, 60, 628, 220, 220, 220, 3084, 62, 16, 62, 796, 3084, 62, 16, 44807, 8094, 1525, 10786, 3866, 66, 21471, 27691, 32604, 3419, 198, 220, 220, 220, 3084, 62, 17, 62, 796, 3084, 62, 17, 44807, 8094, 1525, 10786, 3866, 66, 21471, 27691, 32604, 3419, 628, 220, 220, 220, 1619, 83, 292, 796, 17635, 628, 220, 220, 220, 329, 951, 287, 11677, 62, 11600, 25, 198, 220, 220, 220, 220, 220, 220, 220, 611, 27417, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 62, 796, 951, 10, 6, 62, 9948, 571, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 62, 796, 951, 628, 220, 220, 220, 220, 220, 220, 220, 611, 11677, 62, 11600, 58, 4033, 60, 6624, 705, 48546, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1619, 83, 292, 13, 33295, 7, 37659, 13, 12647, 1150, 666, 7, 11487, 62, 16, 62, 58, 4033, 62, 60, 532, 3084, 62, 17, 62, 58, 4033, 62, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 11677, 62, 11600, 58, 4033, 60, 6624, 705, 43762, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1619, 83, 292, 13, 33295, 7, 37659, 13, 12647, 1150, 666, 19510, 11487, 62, 16, 62, 58, 4033, 62, 60, 532, 3084, 62, 17, 62, 58, 4033, 62, 12962, 1220, 357, 11487, 62, 16, 62, 58, 4033, 62, 60, 1343, 3084, 62, 17, 62, 58, 4033, 62, 12962, 1635, 362, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 1892, 3546, 1154, 12061, 12331, 7, 69, 1, 9771, 3129, 803, 25979, 329, 1391, 28968, 62, 11600, 58, 4033, 62, 48999, 407, 9177, 19570, 628, 220, 220, 220, 1441, 1619, 83, 292, 11, 18896, 7, 28710, 62, 3866, 66, 1834, 669, 8, 198, 198, 2, 12440, 198, 198, 4299, 27417, 62, 11487, 7, 11487, 25, 279, 67, 13, 6601, 19778, 11, 25979, 25, 279, 67, 13, 27996, 11, 11677, 62, 11600, 25, 8633, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 27967, 11677, 284, 257, 3084, 13, 20615, 4560, 329, 49005, 2152, 13, 198, 220, 220, 220, 3242, 28709, 481, 307, 7448, 351, 257, 705, 62, 9948, 571, 29001, 37333, 844, 13, 1002, 428, 857, 407, 1541, 2152, 11, 198, 220, 220, 220, 340, 481, 307, 2727, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3084, 62, 16, 357, 30094, 13, 6601, 19778, 2599, 6060, 14535, 351, 1366, 13, 198, 220, 220, 220, 220, 220, 220, 220, 25979, 357, 30094, 13, 27996, 2599, 7171, 269, 313, 1397, 262, 11677, 13, 198, 220, 220, 220, 220, 220, 220, 220, 11677, 62, 11600, 357, 11600, 2599, 28261, 351, 5721, 3891, 290, 703, 262, 5253, 815, 307, 10488, 13, 628, 220, 220, 220, 7567, 2696, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1892, 3546, 1154, 12061, 12331, 25, 1002, 262, 2099, 286, 18042, 9641, 318, 407, 9177, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 329, 951, 287, 11677, 62, 11600, 25, 628, 220, 220, 220, 220, 220, 220, 220, 611, 357, 4033, 407, 287, 3084, 13, 28665, 82, 8, 290, 357, 4033, 10, 6, 62, 1758, 87, 6, 287, 3084, 13, 28665, 82, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 62, 796, 951, 10, 6, 62, 1758, 87, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 62, 796, 951, 628, 220, 220, 220, 220, 220, 220, 220, 611, 11677, 62, 11600, 58, 4033, 60, 6624, 705, 48546, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3084, 58, 4033, 10, 6, 62, 9948, 571, 20520, 796, 220, 3084, 58, 4033, 62, 45297, 67, 12514, 58, 4033, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 11677, 62, 11600, 58, 4033, 60, 6624, 705, 43762, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3084, 58, 4033, 10, 6, 62, 9948, 571, 20520, 796, 357, 16, 12, 67, 12514, 58, 4033, 62, 12962, 9, 11487, 58, 4033, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 1892, 3546, 1154, 12061, 12331, 7, 28968, 62, 11600, 58, 4033, 12962, 198, 198, 2, 12440, 198, 11748, 18931, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 44800, 8081, 2234, 198, 198, 4299, 10548, 7, 67, 2120, 292, 25, 279, 67, 13, 6601, 19778, 11, 1226, 268, 1047, 25, 1351, 11, 19590, 25, 37659, 13, 358, 18747, 28, 14202, 8, 4613, 45941, 13, 358, 18747, 25, 198, 220, 220, 220, 37227, 2348, 570, 3294, 40522, 13, 198, 220, 220, 220, 770, 2163, 8075, 257, 17593, 284, 2380, 262, 15381, 422, 1123, 27039, 284, 1194, 13, 198, 220, 220, 220, 770, 6840, 318, 281, 14904, 23444, 16022, 1080, 290, 318, 16019, 351, 257, 14174, 20683, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1619, 83, 292, 357, 30094, 13, 6601, 19778, 2599, 4307, 1817, 422, 1123, 27039, 284, 1194, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1226, 268, 1047, 357, 4868, 2599, 383, 1226, 268, 1047, 286, 262, 4818, 5773, 326, 547, 3688, 13, 198, 220, 220, 220, 220, 220, 220, 220, 19590, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 4307, 1817, 460, 307, 26356, 416, 511, 1271, 286, 4888, 4847, 13, 2896, 13185, 284, 6045, 13, 628, 220, 220, 220, 16409, 25, 198, 220, 220, 220, 220, 220, 220, 220, 45941, 13, 358, 18747, 25, 19114, 3815, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 17593, 796, 17635, 628, 220, 220, 220, 329, 1312, 287, 2837, 7, 11925, 7, 67, 2120, 292, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 923, 11, 886, 796, 1619, 83, 292, 13, 9630, 58, 72, 60, 628, 220, 220, 220, 220, 220, 220, 220, 923, 62, 312, 87, 796, 1226, 268, 1047, 13, 9630, 7, 9688, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 62, 312, 87, 796, 1226, 268, 1047, 13, 9630, 7, 437, 8, 628, 220, 220, 220, 220, 220, 220, 220, 3951, 796, 45941, 13, 9107, 418, 7, 11925, 7, 10379, 268, 1047, 13219, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3951, 58, 9688, 62, 312, 87, 25, 437, 62, 312, 87, 60, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 17593, 13, 33295, 7, 6615, 8, 628, 220, 220, 220, 1303, 17220, 15709, 3815, 198, 220, 220, 220, 407, 62, 12647, 796, 5299, 67, 2120, 292, 13, 271, 8423, 22446, 1092, 7, 22704, 28, 16, 8, 198, 220, 220, 220, 17593, 796, 45941, 13, 18747, 7, 6759, 8609, 8, 198, 220, 220, 220, 17593, 796, 17593, 58, 1662, 62, 12647, 60, 198, 220, 220, 220, 1619, 83, 292, 62, 796, 1619, 83, 292, 58, 1662, 62, 12647, 60, 628, 220, 220, 220, 611, 18896, 7, 67, 2120, 292, 8, 1279, 17593, 13, 43358, 58, 16, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 10786, 20535, 21721, 1022, 40522, 12326, 13, 978, 16747, 743, 2038, 2637, 8, 628, 220, 220, 220, 611, 19590, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 842, 796, 44800, 8081, 2234, 7, 11147, 62, 3849, 984, 28, 25101, 737, 11147, 7, 6759, 8609, 11, 1619, 83, 292, 44807, 27160, 11, 6291, 62, 6551, 796, 19590, 58, 1662, 62, 12647, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 4776, 28, 842, 13, 26675, 7, 6759, 8609, 11, 1619, 83, 292, 44807, 27160, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 842, 796, 44800, 8081, 2234, 7, 11147, 62, 3849, 984, 28, 25101, 737, 11147, 7, 6759, 8609, 11, 1619, 83, 292, 44807, 27160, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4776, 28, 842, 13, 26675, 7, 6759, 8609, 11, 1619, 83, 292, 44807, 27160, 8, 628, 220, 220, 220, 18931, 13, 10951, 7, 69, 1, 8081, 2234, 4776, 318, 1391, 26675, 92, 4943, 628, 220, 220, 220, 2124, 796, 842, 13, 79, 17407, 7, 37659, 13, 25379, 7, 11925, 7, 10379, 268, 1047, 13219, 16, 4008, 628, 220, 220, 220, 1441, 2124, 198, 198, 2, 12440, 198, 11748, 435, 746, 1758, 457, 13, 952, 198, 11748, 28686, 198, 6738, 19720, 1330, 4889, 540, 198, 198, 4299, 15284, 62, 67, 2120, 292, 7, 24011, 418, 25, 1351, 11, 27417, 25, 30388, 796, 10352, 11, 23838, 25, 14134, 540, 28, 14202, 8, 4613, 357, 30094, 13, 6601, 19778, 11, 45941, 13, 358, 18747, 11, 8633, 2599, 628, 220, 220, 220, 37227, 36918, 2848, 2163, 284, 15284, 262, 18868, 286, 3294, 3696, 13, 628, 220, 220, 220, 554, 994, 11, 356, 8160, 262, 11677, 62, 11600, 284, 787, 257, 3585, 7208, 329, 285, 89, 290, 15873, 290, 4112, 329, 374, 83, 13, 628, 220, 220, 220, 16926, 46, 25, 770, 2163, 714, 307, 2866, 12, 929, 416, 10730, 1634, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 33510, 357, 4868, 2599, 317, 1351, 7268, 12777, 2374, 286, 1226, 268, 1047, 326, 815, 307, 3688, 13, 198, 220, 220, 220, 220, 220, 220, 220, 27417, 357, 30388, 2599, 41146, 6056, 284, 7603, 5253, 815, 307, 10488, 319, 48050, 1366, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23838, 357, 14134, 540, 2599, 317, 23838, 2163, 284, 2610, 4371, 13, 628, 220, 220, 220, 16409, 25, 198, 220, 220, 220, 220, 220, 220, 220, 279, 67, 13, 6601, 19778, 25, 6060, 14535, 7268, 262, 1619, 83, 292, 286, 262, 3696, 198, 220, 220, 220, 220, 220, 220, 220, 45941, 13, 358, 18747, 25, 399, 32152, 7177, 7268, 262, 19590, 286, 1123, 7208, 357, 72, 13, 68, 13, 1271, 286, 4888, 4847, 8, 198, 220, 220, 220, 220, 220, 220, 220, 8633, 25, 3242, 2617, 22155, 348, 291, 354, 373, 973, 329, 14176, 13, 628, 220, 220, 220, 37227, 628, 220, 220, 220, 11677, 62, 11600, 796, 23884, 198, 220, 220, 220, 1619, 83, 292, 796, 279, 67, 13, 6601, 19778, 3419, 198, 220, 220, 220, 19590, 796, 17635, 628, 220, 220, 220, 329, 1312, 11, 14831, 287, 27056, 378, 7, 24011, 418, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2393, 16, 796, 28686, 13, 6978, 13, 22018, 578, 742, 7, 785, 2127, 58, 15, 12962, 58, 15, 60, 1343, 45302, 907, 62, 7890, 13, 71, 7568, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2393, 17, 796, 28686, 13, 6978, 13, 22018, 578, 742, 7, 785, 2127, 58, 16, 12962, 58, 15, 60, 1343, 45302, 907, 62, 7890, 13, 71, 7568, 6, 198, 220, 220, 220, 220, 220, 220, 220, 47764, 62, 16, 796, 435, 746, 1758, 457, 13, 952, 13, 5653, 62, 6601, 62, 8979, 7, 7753, 16, 737, 961, 7, 19608, 292, 316, 62, 3672, 2625, 431, 457, 485, 62, 69, 7109, 11074, 2617, 62, 9630, 10786, 3866, 66, 21471, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 47764, 62, 17, 796, 435, 746, 1758, 457, 13, 952, 13, 5653, 62, 6601, 62, 8979, 7, 7753, 17, 737, 961, 7, 19608, 292, 316, 62, 3672, 2625, 431, 457, 485, 62, 69, 7109, 11074, 2617, 62, 9630, 10786, 3866, 66, 21471, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 611, 407, 11677, 62, 11600, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11677, 62, 11600, 796, 1391, 6, 76, 89, 10354, 6, 43762, 3256, 705, 17034, 10354, 6, 48546, 6, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 705, 39949, 879, 6, 287, 47764, 62, 16, 13, 28665, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7203, 7583, 1262, 15873, 329, 36537, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11677, 62, 11600, 17816, 39949, 879, 20520, 796, 705, 43762, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 82, 796, 1351, 7, 28968, 62, 11600, 13, 13083, 28955, 628, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 67, 2120, 292, 8, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1619, 83, 292, 796, 279, 67, 13, 6601, 19778, 7, 28665, 82, 796, 951, 82, 8, 628, 220, 220, 220, 220, 220, 220, 220, 288, 1023, 11, 3463, 796, 15284, 62, 30246, 7, 7568, 62, 16, 11, 47764, 62, 17, 11, 11677, 62, 11600, 11, 27417, 796, 27417, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1619, 83, 292, 796, 1619, 83, 292, 13, 33295, 7, 30094, 13, 6601, 19778, 26933, 67, 1023, 4357, 15180, 796, 951, 82, 11, 6376, 41888, 785, 2127, 60, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 19590, 13, 33295, 7, 6551, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 23838, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23838, 19510, 72, 10, 16, 20679, 11925, 7, 24011, 418, 4008, 628, 220, 220, 220, 1441, 1619, 83, 292, 11, 45941, 13, 18747, 7, 43775, 828, 11677, 62, 11600, 198, 198, 2, 12440, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 340, 861, 10141, 1330, 17790, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 1257, 310, 10141, 198, 198, 2, 1858, 318, 645, 4326, 1332, 329, 10548, 62, 16624, 290, 10548, 62, 19608, 292, 1039, 355, 484, 389, 7917, 11799, 290, 815, 307, 5017, 416, 262, 2068, 62, 9288, 198, 4299, 10548, 62, 16624, 7, 10379, 268, 1047, 25, 1351, 11, 19114, 25, 279, 67, 13, 6601, 19778, 11, 11677, 62, 11600, 25, 8633, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 27323, 2848, 2163, 326, 10548, 82, 257, 1351, 286, 3696, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1226, 268, 1047, 357, 4868, 2599, 317, 1351, 351, 8246, 2393, 3891, 13, 198, 220, 220, 220, 220, 220, 220, 220, 19114, 357, 30094, 13, 6601, 19778, 2599, 317, 19798, 292, 1366, 14535, 7268, 262, 19114, 1321, 13, 198, 220, 220, 220, 220, 220, 220, 220, 11677, 62, 11600, 357, 11600, 2599, 28261, 351, 5721, 3891, 290, 703, 262, 5253, 815, 307, 10488, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 329, 4686, 87, 11, 29472, 287, 27056, 378, 7, 10379, 268, 1047, 2599, 628, 220, 220, 220, 220, 220, 220, 220, 2393, 796, 28686, 13, 6978, 13, 22018, 578, 742, 7, 34345, 38381, 15, 60, 1343, 45302, 907, 62, 7890, 13, 71, 7568, 6, 628, 220, 220, 220, 220, 220, 220, 220, 329, 5721, 287, 37250, 431, 457, 485, 62, 69, 7109, 3256, 705, 30053, 62, 11487, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47764, 796, 435, 746, 1758, 457, 13, 952, 13, 5653, 62, 6601, 62, 8979, 7, 7753, 737, 961, 7, 19608, 292, 316, 62, 3672, 28, 28665, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27417, 62, 11487, 7, 7568, 11, 19114, 13, 346, 420, 58, 312, 87, 4357, 11677, 62, 11600, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 1, 50, 2703, 1391, 7753, 92, 532, 1391, 28665, 92, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13845, 62, 7753, 796, 435, 746, 1758, 457, 13, 952, 13, 5653, 62, 6601, 62, 8979, 7, 7753, 11, 318, 62, 2502, 8933, 540, 28, 17821, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13845, 62, 7753, 13, 13564, 7, 7568, 11, 27039, 62, 3672, 28, 28665, 8, 628, 198, 4299, 10548, 62, 19608, 292, 1039, 7, 33692, 25, 11600, 11, 23838, 25, 13345, 540, 28, 14202, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 27323, 2848, 2163, 326, 10548, 82, 477, 11992, 3696, 7368, 257, 6460, 2393, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6460, 357, 11600, 2599, 317, 1351, 351, 8246, 2393, 3891, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23838, 357, 14134, 540, 2599, 4889, 1891, 2163, 284, 7603, 4371, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1226, 268, 1047, 796, 6460, 17816, 23100, 3681, 6, 7131, 6, 7753, 62, 6978, 82, 20520, 628, 220, 220, 220, 611, 23838, 25, 628, 220, 220, 220, 220, 220, 220, 220, 269, 65, 796, 1257, 310, 10141, 13, 47172, 7, 33723, 62, 48553, 11, 657, 11, 362, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 269, 65, 796, 6045, 628, 220, 220, 220, 611, 18896, 7, 10379, 268, 1047, 8, 1875, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 33510, 796, 1351, 7, 24011, 7352, 7, 10379, 268, 1047, 11, 362, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 1619, 83, 292, 11, 19590, 11, 11677, 62, 11600, 796, 15284, 62, 67, 2120, 292, 7, 24011, 418, 11, 23838, 28, 21101, 8, 628, 220, 220, 220, 220, 220, 220, 220, 951, 82, 796, 1351, 7, 28968, 62, 11600, 13, 13083, 28955, 628, 220, 220, 220, 220, 220, 220, 220, 878, 62, 16345, 796, 1619, 83, 292, 13, 8937, 22446, 16345, 22446, 1462, 62, 11600, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 878, 62, 32604, 796, 1619, 83, 292, 13, 8937, 22446, 32604, 22446, 1462, 62, 11600, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 14957, 28833, 878, 36537, 1391, 19052, 62, 16345, 92, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 5308, 272, 28833, 878, 36537, 1391, 19052, 62, 32604, 92, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 50, 10890, 16022, 1080, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 19114, 796, 279, 67, 13, 6601, 19778, 7, 31494, 7, 67, 2120, 292, 11, 1226, 268, 1047, 11, 19590, 828, 15180, 796, 951, 82, 8, 198, 220, 220, 220, 220, 220, 220, 220, 19114, 796, 279, 67, 13, 1102, 9246, 26933, 30094, 13, 6601, 19778, 7, 37659, 13, 9107, 418, 19510, 16, 11, 19114, 13, 43358, 58, 16, 12962, 828, 15180, 28, 951, 82, 828, 19114, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 19114, 48185, 19114, 13, 32604, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 50, 10890, 16022, 1080, 1844, 2637, 8, 628, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 4677, 3157, 11677, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 10548, 62, 16624, 7, 10379, 268, 1047, 11, 532, 282, 16747, 11, 11677, 62, 11600, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 269, 65, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 65, 796, 1257, 310, 10141, 13, 47172, 7, 33723, 62, 48553, 11, 352, 11, 362, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1619, 83, 292, 11, 19590, 11, 11677, 62, 11600, 796, 15284, 62, 67, 2120, 292, 7, 24011, 418, 11, 27417, 28, 17821, 11, 23838, 28, 21101, 8, 628, 220, 220, 220, 220, 220, 220, 220, 706, 62, 16345, 796, 1619, 83, 292, 13, 8937, 22446, 16345, 22446, 1462, 62, 11600, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 706, 62, 32604, 796, 1619, 83, 292, 13, 8937, 22446, 32604, 22446, 1462, 62, 11600, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 14957, 28833, 706, 36537, 1391, 8499, 62, 16345, 92, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 5308, 272, 28833, 706, 36537, 1391, 8499, 62, 32604, 92, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 1487, 62, 16345, 796, 1391, 74, 25, 85, 14, 19052, 62, 16345, 58, 74, 60, 329, 479, 11, 85, 287, 706, 62, 16345, 13, 23814, 3419, 92, 198, 220, 220, 220, 220, 220, 220, 220, 1487, 62, 32604, 796, 1391, 74, 25, 85, 14, 19052, 62, 32604, 58, 74, 60, 329, 479, 11, 85, 287, 706, 62, 32604, 13, 23814, 3419, 92, 628, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 19400, 357, 8499, 14, 19052, 8, 2472, 28833, 1391, 3803, 62, 16345, 92, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 19400, 357, 8499, 14, 19052, 8, 1612, 28833, 1391, 3803, 62, 32604, 92, 11537, 628, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 10786, 10049, 352, 27039, 1944, 13, 3661, 4501, 19114, 2637, 8, 198, 198, 2, 12440, 198, 6738, 629, 541, 88, 1330, 9756, 198, 4299, 651, 62, 1676, 65, 1799, 7, 7568, 25, 279, 67, 13, 6601, 19778, 11, 1006, 25, 279, 67, 13, 6601, 19778, 11, 264, 13495, 25, 30094, 13, 6601, 19778, 11, 6376, 25, 600, 8, 3784, 12178, 25, 198, 220, 220, 220, 37227, 2964, 65, 23117, 414, 8636, 286, 257, 13501, 1068, 11795, 1262, 262, 8882, 25786, 672, 271, 5253, 13, 628, 220, 220, 220, 383, 2163, 43707, 262, 12867, 326, 257, 3895, 318, 257, 4941, 3895, 13, 198, 220, 220, 220, 383, 4941, 3033, 7268, 14367, 47060, 523, 326, 257, 12867, 460, 307, 6108, 13, 628, 220, 220, 220, 632, 318, 2672, 326, 262, 1366, 13431, 389, 14451, 11, 3616, 326, 262, 717, 5726, 287, 47764, 7466, 284, 262, 717, 5726, 287, 1006, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 47764, 357, 30094, 13, 6601, 19778, 2599, 16092, 292, 316, 7268, 13501, 567, 445, 3033, 198, 220, 220, 220, 220, 220, 220, 220, 1006, 357, 30094, 13, 6601, 19778, 2599, 16092, 292, 316, 7268, 4941, 3033, 198, 220, 220, 220, 220, 220, 220, 220, 264, 13495, 357, 30094, 13, 6601, 19778, 2599, 16092, 292, 316, 7268, 262, 3210, 47060, 286, 262, 4941, 3033, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 357, 600, 2599, 12901, 284, 262, 4818, 37805, 326, 815, 307, 3688, 628, 220, 220, 220, 16409, 25, 198, 220, 220, 220, 220, 220, 220, 220, 12178, 25, 8882, 25786, 672, 271, 5253, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 264, 13495, 796, 264, 13495, 13, 346, 420, 58, 9630, 4083, 27160, 198, 220, 220, 220, 264, 13495, 796, 264, 13495, 9, 37659, 13, 25379, 7, 11925, 7, 82, 13495, 4008, 628, 220, 220, 220, 38779, 796, 1006, 13, 346, 420, 58, 9630, 4083, 27160, 198, 220, 220, 220, 2124, 796, 47764, 13, 346, 420, 58, 9630, 4083, 27160, 628, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 285, 62, 17080, 62, 87, 796, 45941, 13, 26518, 19510, 87, 12, 30300, 737, 7645, 3455, 22784, 45941, 13, 75, 1292, 70, 13, 16340, 7, 82, 13495, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 285, 62, 17080, 62, 87, 796, 45941, 13, 26518, 7, 76, 62, 17080, 62, 87, 11, 357, 87, 12, 30300, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 796, 9756, 13, 11072, 17, 13, 66, 7568, 7, 76, 62, 17080, 62, 87, 11, 18896, 7, 30300, 4008, 198, 220, 220, 220, 2845, 35528, 355, 304, 25, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 796, 45941, 13, 12647, 628, 220, 220, 220, 1441, 4808, 198, 198, 2, 12440, 198, 6738, 1341, 35720, 13, 710, 394, 32289, 1330, 509, 24544, 631, 198, 6738, 764, 26791, 1330, 25432, 62, 7568, 198, 198, 2, 770, 2163, 318, 257, 29908, 2163, 290, 468, 3058, 468, 645, 4326, 1332, 198, 2, 383, 2163, 481, 307, 15556, 618, 15427, 2071, 1303, 13381, 25, 3740, 1378, 12567, 13, 785, 14, 44, 1236, 43, 8937, 14, 17307, 1758, 457, 14, 37165, 14, 13381, 198, 4299, 2872, 62, 19608, 292, 1039, 7, 33692, 25, 11600, 11, 23838, 25, 14134, 540, 796, 6045, 2599, 198, 220, 220, 220, 37227, 23850, 40522, 25, 27323, 2848, 2163, 284, 2872, 40522, 1912, 319, 257, 6460, 2393, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6460, 357, 11600, 2599, 28261, 542, 64, 278, 20640, 286, 262, 1057, 198, 220, 220, 220, 220, 220, 220, 220, 23838, 357, 14134, 540, 2599, 4889, 1891, 2163, 284, 7603, 4371, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 611, 18896, 7, 33692, 17816, 23100, 3681, 6, 7131, 6, 7753, 62, 6978, 82, 6, 12962, 1875, 362, 25, 198, 220, 220, 220, 220, 220, 220, 220, 31383, 796, 435, 746, 1758, 457, 13, 26791, 13, 292, 15140, 62, 7568, 7, 33692, 11, 2214, 11639, 431, 457, 485, 62, 69, 7109, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 2779, 62, 4033, 796, 37250, 3866, 66, 21471, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 19114, 62, 4033, 82, 796, 37250, 76, 89, 62, 9948, 571, 41707, 17034, 62, 9948, 571, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 3131, 62, 4033, 82, 796, 37250, 26675, 41707, 12501, 726, 41707, 16793, 20520, 628, 220, 220, 220, 220, 220, 220, 220, 611, 705, 39949, 879, 6, 287, 31383, 13, 28665, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19114, 62, 4033, 82, 15853, 37250, 39949, 879, 62, 9948, 571, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 779, 62, 39949, 879, 796, 6407, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 779, 62, 39949, 879, 796, 10352, 628, 220, 220, 220, 220, 220, 220, 220, 32824, 796, 31383, 58, 8692, 62, 4033, 1343, 19114, 62, 4033, 82, 1343, 3131, 62, 4033, 82, 4083, 8094, 1525, 10786, 3866, 66, 21471, 27691, 32604, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 14367, 62, 796, 31383, 58, 8692, 62, 4033, 1343, 19114, 62, 4033, 82, 4083, 8094, 1525, 10786, 3866, 66, 21471, 27691, 19282, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 32824, 58, 29795, 10, 6, 62, 19282, 6, 329, 4808, 287, 19114, 62, 4033, 82, 11907, 796, 14367, 62, 628, 220, 220, 220, 220, 220, 220, 220, 14367, 62, 9521, 796, 45941, 13, 12647, 1150, 666, 7, 19282, 44807, 27160, 11, 16488, 28, 15, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2872, 62, 79, 62, 1084, 796, 6460, 17816, 15699, 278, 6, 7131, 6, 15699, 62, 79, 62, 1084, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 2872, 62, 67, 62, 1084, 796, 6460, 17816, 15699, 278, 6, 7131, 6, 15699, 62, 67, 62, 1084, 20520, 628, 220, 220, 220, 220, 220, 220, 220, 1226, 268, 1047, 796, 6460, 17816, 23100, 3681, 6, 7131, 6, 7753, 62, 6978, 82, 20520, 628, 220, 220, 220, 220, 220, 220, 220, 35847, 62, 11600, 796, 31383, 13, 2617, 62, 9630, 10786, 3866, 66, 21471, 11537, 58, 17816, 43167, 20520, 4083, 1462, 62, 11600, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 329, 4686, 87, 11, 29472, 287, 27056, 378, 7, 10379, 268, 1047, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 796, 28686, 13, 6978, 13, 22018, 578, 742, 7, 34345, 38381, 15, 60, 1343, 45302, 907, 62, 7890, 13, 71, 7568, 6, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47764, 796, 435, 746, 1758, 457, 13, 952, 13, 5653, 62, 6601, 62, 8979, 7, 7753, 737, 961, 7, 19608, 292, 316, 62, 3672, 11639, 431, 457, 485, 62, 69, 7109, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3033, 796, 435, 746, 1758, 457, 13, 952, 13, 5653, 62, 6601, 62, 8979, 7, 7753, 737, 961, 7, 19608, 292, 316, 62, 3672, 11639, 30053, 62, 11487, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3033, 17816, 30053, 62, 312, 87, 20520, 796, 3033, 13, 9630, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12336, 62, 2617, 796, 900, 7, 8094, 276, 13, 9630, 8, 532, 900, 7, 7568, 17816, 3866, 66, 21471, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 51, 14992, 284, 2872, 2393, 1391, 7753, 92, 351, 6831, 286, 1391, 11925, 7, 15699, 278, 62, 2617, 2599, 11, 92, 27022, 5871, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 89, 62, 9521, 796, 14367, 62, 9521, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 9521, 796, 14367, 62, 9521, 58, 16, 60, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5509, 62, 13033, 796, 3033, 58, 282, 16747, 62, 4033, 82, 4083, 27160, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5509, 62, 13033, 58, 45299, 15, 60, 796, 5509, 62, 13033, 58, 45299, 15, 60, 14, 76, 89, 62, 9521, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5509, 62, 13033, 58, 45299, 16, 60, 796, 5509, 62, 13033, 58, 45299, 16, 60, 14, 17034, 62, 9521, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12405, 62, 13033, 796, 32824, 13, 17946, 58, 15699, 278, 62, 2617, 7131, 282, 16747, 62, 4033, 82, 4083, 27160, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12405, 62, 13033, 58, 45299, 15, 60, 796, 12405, 62, 13033, 58, 45299, 15, 60, 14, 76, 89, 62, 9521, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12405, 62, 13033, 58, 45299, 16, 60, 796, 12405, 62, 13033, 58, 45299, 16, 60, 14, 17034, 62, 9521, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 779, 62, 39949, 879, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7203, 12814, 15873, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 9521, 796, 14367, 62, 9521, 58, 17, 60, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5509, 62, 13033, 58, 45299, 17, 60, 796, 5509, 62, 13033, 58, 45299, 17, 60, 14, 72, 62, 9521, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12405, 62, 13033, 58, 45299, 17, 60, 796, 12405, 62, 13033, 58, 45299, 17, 60, 14, 72, 62, 9521, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12336, 62, 21048, 796, 509, 24544, 631, 7, 21048, 62, 13033, 11, 18663, 2625, 76, 676, 12079, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1233, 11, 4686, 87, 796, 12336, 62, 21048, 13, 22766, 7, 22766, 62, 13033, 11, 479, 28, 16, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14451, 796, 3033, 13, 346, 420, 58, 312, 87, 58, 45299, 15, 11907, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 287, 3131, 62, 4033, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14451, 29795, 60, 796, 32824, 13, 17946, 58, 15699, 278, 62, 2617, 11, 4808, 4083, 27160, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 284, 62, 14894, 796, 1233, 1279, 2872, 62, 67, 62, 1084, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14451, 796, 14451, 58, 1462, 62, 14894, 60, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1006, 796, 32824, 13, 17946, 58, 15699, 278, 62, 2617, 7131, 282, 16747, 62, 4033, 82, 7131, 1462, 62, 14894, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 13495, 796, 14367, 44807, 17946, 58, 15699, 278, 62, 2617, 7131, 1462, 62, 14894, 60, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 90, 11925, 7, 31409, 2599, 11, 92, 1744, 3033, 329, 12336, 1912, 319, 5253, 286, 1391, 15699, 62, 67, 62, 1084, 92, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14451, 17816, 15699, 278, 62, 79, 20520, 796, 685, 1136, 62, 1676, 65, 1799, 7, 31409, 58, 282, 16747, 62, 4033, 82, 4357, 1006, 11, 264, 13495, 11, 1312, 8, 329, 1312, 287, 2837, 7, 11925, 7, 31409, 4008, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14451, 17816, 3866, 66, 21471, 20520, 796, 32824, 13, 17946, 58, 15699, 278, 62, 2617, 7131, 1462, 62, 14894, 4083, 9630, 13, 27160, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14451, 796, 14451, 58, 31409, 17816, 15699, 278, 62, 79, 20520, 27, 2872, 62, 79, 62, 1084, 60, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 6, 90, 11925, 7, 31409, 2599, 11, 92, 1744, 3033, 329, 12336, 1912, 319, 12867, 286, 1391, 15699, 62, 79, 62, 1084, 92, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14451, 17816, 4906, 20520, 796, 705, 31409, 6, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 287, 35847, 62, 11600, 13, 13083, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14451, 29795, 60, 796, 685, 5460, 929, 62, 11600, 29795, 7131, 87, 60, 329, 2124, 287, 14451, 17816, 3866, 66, 21471, 6, 11907, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47764, 17816, 4906, 20520, 796, 705, 907, 907, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47764, 17816, 15699, 278, 62, 79, 20520, 796, 45941, 13, 12647, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4888, 62, 28665, 82, 796, 900, 7, 31409, 13, 28665, 82, 737, 3849, 5458, 7, 2617, 7, 7568, 13, 28665, 82, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47764, 62, 796, 279, 67, 13, 1102, 9246, 26933, 7568, 11, 14451, 58, 28710, 62, 28665, 82, 60, 4357, 8856, 62, 9630, 28, 17821, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 7, 69, 1, 50, 2703, 1391, 7753, 92, 532, 34337, 485, 62, 69, 7109, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13845, 62, 7753, 796, 435, 746, 1758, 457, 13, 952, 13, 5653, 62, 6601, 62, 8979, 7, 7753, 11, 318, 62, 2502, 8933, 540, 28, 17821, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13845, 62, 7753, 13, 13564, 7, 7568, 62, 11, 27039, 62, 3672, 11639, 431, 457, 485, 62, 69, 7109, 11537, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 10951, 10786, 22058, 621, 513, 40522, 1944, 13, 3661, 4501, 12336, 2637, 8 ]
2.44501
6,483
# AUTOGENERATED! DO NOT EDIT! File to edit: 40b_service_filesystem.ipynb (unless otherwise specified). __all__ = ['sort_posts', 'posts_list_to_dict', 'migrate', 'ServiceFilesystem', 'before_request', 'after_request', 'init_service'] # Cell import json,uuid,datetime,re from pathlib import Path from operator import attrgetter # Cell # Cell def posts_list_to_dict(posts,key='id'): "Convert a list of dictionaries to a dictionary of dictionaries" return {post[key]:post for post in posts} # Cell # Cell # TODO: DRY # Cell # Cell # Cell
[ 2, 47044, 7730, 1677, 1137, 11617, 0, 8410, 5626, 48483, 0, 9220, 284, 4370, 25, 2319, 65, 62, 15271, 62, 16624, 6781, 13, 541, 2047, 65, 357, 25252, 4306, 7368, 737, 198, 198, 834, 439, 834, 796, 37250, 30619, 62, 24875, 3256, 705, 24875, 62, 4868, 62, 1462, 62, 11600, 3256, 705, 76, 42175, 3256, 705, 16177, 25876, 6781, 3256, 705, 19052, 62, 25927, 3256, 705, 8499, 62, 25927, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 15003, 62, 15271, 20520, 198, 198, 2, 12440, 198, 11748, 33918, 11, 12303, 312, 11, 19608, 8079, 11, 260, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 10088, 1330, 708, 81, 1136, 353, 198, 198, 2, 12440, 198, 198, 2, 12440, 198, 4299, 6851, 62, 4868, 62, 1462, 62, 11600, 7, 24875, 11, 2539, 11639, 312, 6, 2599, 198, 220, 220, 220, 366, 3103, 1851, 257, 1351, 286, 48589, 3166, 284, 257, 22155, 286, 48589, 3166, 1, 198, 220, 220, 220, 1441, 1391, 7353, 58, 2539, 5974, 7353, 329, 1281, 287, 6851, 92, 198, 198, 2, 12440, 198, 198, 2, 12440, 198, 220, 220, 220, 1303, 16926, 46, 25, 10560, 56, 198, 198, 2, 12440, 198, 198, 2, 12440, 198, 198, 2, 12440 ]
2.756098
205
""" graph.py useful graph collection author: @alexzander """ # python import os # core package from core.system import * from core.json__ import * from exceptions import * from core.path__ import * # from exceptions import * (same thing, it works)
[ 201, 198, 37811, 201, 198, 220, 220, 220, 4823, 13, 9078, 201, 198, 201, 198, 220, 220, 220, 4465, 4823, 4947, 201, 198, 201, 198, 220, 220, 220, 1772, 25, 2488, 1000, 87, 89, 4066, 201, 198, 37811, 201, 198, 201, 198, 201, 198, 2, 21015, 201, 198, 11748, 28686, 201, 198, 201, 198, 2, 4755, 5301, 201, 198, 6738, 4755, 13, 10057, 1330, 1635, 201, 198, 6738, 4755, 13, 17752, 834, 1330, 1635, 201, 198, 6738, 13269, 1330, 1635, 201, 198, 6738, 4755, 13, 6978, 834, 1330, 1635, 201, 198, 2, 422, 13269, 1330, 1635, 357, 31642, 1517, 11, 340, 2499, 8, 201, 198, 201, 198, 201, 198, 201, 198, 201 ]
2.607143
112
from ..formatHandlerBase import formatHandlerBase from ..formatName import formatName from ...data import dataFileBase,DataType,method,excitationValue,datafileSelector from ...utils import getValFromCell import numpy as np @formatName("line")
[ 6738, 11485, 18982, 25060, 14881, 1330, 5794, 25060, 14881, 198, 6738, 11485, 18982, 5376, 1330, 5794, 5376, 198, 6738, 2644, 7890, 1330, 1366, 8979, 14881, 11, 6601, 6030, 11, 24396, 11, 41194, 3780, 11395, 11, 7890, 7753, 17563, 273, 198, 6738, 2644, 26791, 1330, 651, 7762, 4863, 28780, 198, 11748, 299, 32152, 355, 45941, 198, 31, 18982, 5376, 7203, 1370, 4943 ]
3.967213
61
""" Script for building FMPasteBox Usage: python setup.py py2app """ from distutils.core import setup from setuptools.extension import Extension import py2app import FMPasteBoxVersion setup( name = FMPasteBoxVersion.appname, version = FMPasteBoxVersion.version, description = FMPasteBoxVersion.description, long_description = FMPasteBoxVersion.longdescription, author = FMPasteBoxVersion.author, app=[{ 'script': "FMPasteBox.py", "plist": { "NSPrincipalClass": 'NSApplication', "CFBundleIdentifier": FMPasteBoxVersion.bundleID, "CFBundleName": FMPasteBoxVersion.appnameshort, "CFBundleSignature": FMPasteBoxVersion.creator, "CFBundleShortVersionString": FMPasteBoxVersion.version, "CFBundleGetInfoString": FMPasteBoxVersion.description, "NSHumanReadableCopyright": FMPasteBoxVersion.copyright, } }], data_files=[ "English.lproj/MainMenu.nib", "English.lproj/Preferences.nib", #"English.lproj/FMPasteBoxDocument.nib", "+icon/FMPasteBox.icns", #"+icon/FMPasteBoxFile.icns", ], options={ "py2app": { "iconfile": "+icon/FMPasteBox.icns", # "packages": [], "excludes": ["TkInter", 'Tcl', 'Tk'], } } )
[ 37811, 198, 7391, 329, 2615, 376, 7378, 4594, 14253, 198, 198, 28350, 25, 198, 220, 220, 220, 21015, 9058, 13, 9078, 12972, 17, 1324, 198, 37811, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 6738, 900, 37623, 10141, 13, 2302, 3004, 1330, 27995, 198, 198, 11748, 12972, 17, 1324, 198, 198, 11748, 376, 7378, 4594, 14253, 14815, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 796, 376, 7378, 4594, 14253, 14815, 13, 1324, 3672, 11, 198, 220, 220, 220, 2196, 796, 376, 7378, 4594, 14253, 14815, 13, 9641, 11, 198, 220, 220, 220, 6764, 796, 376, 7378, 4594, 14253, 14815, 13, 11213, 11, 198, 220, 220, 220, 890, 62, 11213, 796, 376, 7378, 4594, 14253, 14815, 13, 6511, 11213, 11, 198, 220, 220, 220, 1772, 796, 376, 7378, 4594, 14253, 14815, 13, 9800, 11, 198, 220, 220, 220, 598, 41888, 90, 198, 220, 220, 220, 220, 220, 220, 220, 705, 12048, 10354, 366, 37, 7378, 4594, 14253, 13, 9078, 1600, 628, 220, 220, 220, 220, 220, 220, 220, 366, 489, 396, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 45, 4303, 81, 1939, 8521, 9487, 1298, 705, 47549, 381, 10142, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 22495, 33, 31249, 33234, 7483, 1298, 376, 7378, 4594, 14253, 14815, 13, 65, 31249, 2389, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 22495, 33, 31249, 5376, 1298, 376, 7378, 4594, 14253, 14815, 13, 1324, 14933, 71, 419, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 22495, 33, 31249, 11712, 1300, 1298, 376, 7378, 4594, 14253, 14815, 13, 45382, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 22495, 33, 31249, 16438, 14815, 10100, 1298, 376, 7378, 4594, 14253, 14815, 13, 9641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 22495, 33, 31249, 3855, 12360, 10100, 1298, 376, 7378, 4594, 14253, 14815, 13, 11213, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8035, 20490, 5569, 540, 15269, 1298, 376, 7378, 4594, 14253, 14815, 13, 22163, 4766, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 1782, 4357, 628, 220, 220, 220, 1366, 62, 16624, 41888, 198, 220, 220, 220, 220, 220, 220, 220, 366, 15823, 13, 75, 1676, 73, 14, 13383, 23381, 13, 77, 571, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 15823, 13, 75, 1676, 73, 14, 36698, 4972, 13, 77, 571, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1, 15823, 13, 75, 1676, 73, 14, 37, 7378, 4594, 14253, 24941, 13, 77, 571, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 43825, 4749, 14, 37, 7378, 4594, 14253, 13, 291, 5907, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1, 10, 4749, 14, 37, 7378, 4594, 14253, 8979, 13, 291, 5907, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 16589, 628, 220, 220, 220, 3689, 34758, 198, 220, 220, 220, 220, 220, 220, 220, 366, 9078, 17, 1324, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 4749, 7753, 1298, 43825, 4749, 14, 37, 7378, 4594, 14253, 13, 291, 5907, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 366, 43789, 1298, 685, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 1069, 13955, 1298, 14631, 51, 74, 9492, 1600, 705, 51, 565, 3256, 705, 51, 74, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 1782, 1267, 628 ]
2.187097
620
from __future__ import print_function import argparse import os import sys, glob, itertools, math from typing import List, Dict from PIL import Image, ImageFont, ImageDraw import torch from ..srcnn.srcnn_run import SRCNNPreProcessor, SRCNNPreProcessorGen from src.srgan.srgan_module import Generator as SRGANGenerator from ..srcnn.srcnn_module import * supportedModels = { "srcnn": SRCNN, "srcnn-bnorm": SRCNNBatchNorm, "srcnn-residual": SRCNNR, "srgan": lambda: SRGANGenerator(scale_factor=2), } class PytorchSRVisulizator: """ Visualizes pytorch nn.models: * model files should contain only the state dict, because the Model classes can't be pickled at runtime. * model dir must follow this hierarch: modeldir | model.pth #final model file | checkpoints | model_epoch_{}.pth # '{}' is replaced with epoch number """ @staticmethod if __name__ == "__main__": parser = argparse.ArgumentParser("SRCNN visualizer") PytorchSRVisulizator.add_arguments_to(parser) config = parser.parse_args() print(config) visualizer = PytorchSRVisulizator(config) visualizer.visualize()
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 25064, 11, 15095, 11, 340, 861, 10141, 11, 10688, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 23252, 11, 7412, 25302, 198, 11748, 28034, 198, 198, 6738, 11485, 10677, 20471, 13, 10677, 20471, 62, 5143, 1330, 311, 7397, 6144, 6719, 18709, 273, 11, 311, 7397, 6144, 6719, 18709, 273, 13746, 198, 6738, 12351, 13, 27891, 1030, 13, 27891, 1030, 62, 21412, 1330, 35986, 355, 16808, 45028, 8645, 1352, 198, 6738, 11485, 10677, 20471, 13, 10677, 20471, 62, 21412, 1330, 1635, 628, 198, 15999, 5841, 1424, 796, 1391, 198, 220, 220, 220, 366, 10677, 20471, 1298, 311, 7397, 6144, 11, 198, 220, 220, 220, 366, 10677, 20471, 12, 9374, 579, 1298, 311, 7397, 6144, 33, 963, 35393, 11, 198, 220, 220, 220, 366, 10677, 20471, 12, 411, 312, 723, 1298, 311, 7397, 6144, 49, 11, 198, 220, 220, 220, 366, 27891, 1030, 1298, 37456, 25, 16808, 45028, 8645, 1352, 7, 9888, 62, 31412, 28, 17, 828, 198, 92, 628, 198, 4871, 9485, 13165, 354, 12562, 15854, 377, 528, 1352, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 15612, 4340, 12972, 13165, 354, 299, 77, 13, 27530, 25, 628, 220, 220, 220, 1635, 2746, 3696, 815, 3994, 691, 262, 1181, 8633, 11, 780, 262, 9104, 6097, 460, 470, 307, 2298, 992, 379, 19124, 13, 198, 220, 220, 220, 1635, 2746, 26672, 1276, 1061, 428, 28398, 25, 198, 220, 220, 220, 4235, 335, 343, 198, 220, 220, 220, 220, 220, 930, 2746, 13, 79, 400, 1303, 20311, 2746, 2393, 198, 220, 220, 220, 220, 220, 930, 36628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 2746, 62, 538, 5374, 23330, 27422, 79, 400, 1303, 705, 90, 92, 6, 318, 6928, 351, 36835, 1271, 628, 220, 220, 220, 37227, 628, 220, 220, 220, 2488, 12708, 24396, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 7203, 50, 7397, 6144, 5874, 7509, 4943, 628, 220, 220, 220, 9485, 13165, 354, 12562, 15854, 377, 528, 1352, 13, 2860, 62, 853, 2886, 62, 1462, 7, 48610, 8, 198, 220, 220, 220, 4566, 796, 30751, 13, 29572, 62, 22046, 3419, 198, 220, 220, 220, 3601, 7, 11250, 8, 628, 220, 220, 220, 5874, 7509, 796, 9485, 13165, 354, 12562, 15854, 377, 528, 1352, 7, 11250, 8, 198, 220, 220, 220, 5874, 7509, 13, 41464, 1096, 3419, 198 ]
2.754717
424
import h5py import numpy as np from .. import Transition from ..callbacks import StoreStates2Hdf5 HDF5_PATH = "/tmp/test_humblerl_callback.hdf5" class TestStoreTransitions2Hdf5(object): """Test callback on 3D (e.g. images) and continuous states."""
[ 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 11485, 1330, 40658, 198, 6738, 11485, 13345, 10146, 1330, 9363, 42237, 17, 39, 7568, 20, 198, 198, 39, 8068, 20, 62, 34219, 796, 12813, 22065, 14, 9288, 62, 71, 2178, 1754, 75, 62, 47423, 13, 71, 7568, 20, 1, 628, 198, 4871, 6208, 22658, 8291, 1756, 17, 39, 7568, 20, 7, 15252, 2599, 198, 220, 220, 220, 37227, 14402, 23838, 319, 513, 35, 357, 68, 13, 70, 13, 4263, 8, 290, 12948, 2585, 526, 15931, 198 ]
2.88764
89
''' File: test_accounts.py Author: Zachary King Defines unit tests for accounts.py. Tests all account features. ''' from __future__ import print_function import unittest import os from oink import accounts, db class TestAccounts(unittest.TestCase): '''Defines unit tests for adding and removing accounts.''' def setUp(self): '''Setup testing databse.''' # Creates the testing database os.mkdir('testdb') with open(r'testdb\oink.db', 'w') as fout: pass db.connect('testdb') accounts.setup() def tearDown(self): '''Destroys the testing database.''' db.disconnect() os.remove(r'testdb\oink.db') os.rmdir('testdb') def test_add_new_account(self): '''Test for adding a new account.''' cur = db.cursor() # Add a new account accounts.add_account(12345, 'TestAddAccount', 100.00, '2017-1-1') self.assertEqual(cur.execute('SELECT COUNT(*) FROM accounts').fetchone()[0], 1) accounts.add_account(54321, 'TestAddAccount2', 0.01, '2017-1-1') self.assertEqual(cur.execute('SELECT COUNT(*) FROM accounts').fetchone()[0], 2) def test_remove_account(self): '''Test to remove an existing account.''' cur = db.cursor() # Insert a new account cur.execute('INSERT INTO accounts VALUES (024, "TestRemoveAccount", 0.00, "2017-1-1")') self.assertEqual(cur.rowcount, 1) # Remove the accont accounts.delete('TestRemoveAccount') cur.execute('SELECT COUNT(*) FROM accounts') self.assertEqual(cur.fetchone()[0], 0) def test_add_null_account_number(self): '''Tests NOT NULL constraint of database for account number''' # Try to insert NULL as account number with self.assertRaises(ValueError): accounts.add_account(None, 'TestNullNumAccount', 0.0, '2017-1-1') with self.assertRaises(ValueError): accounts.add_account('', 'TestNullNumAccount', 0.0, '2017-1-1') def test_add_null_account_name(self): '''Tests NOT NULL constraint of database for account name''' # Try to insert NULL as account name with self.assertRaises(ValueError): accounts.add_account(987, None, 0.0, '2017-1-1') with self.assertRaises(ValueError): accounts.add_account(789, '', 0.0, '2017-1-1') def test_add_null_start_balance(self): '''Tests NOT NULL constraint of databse for account starting balance''' # Try to insert NULL as account starting balance with self.assertRaises(ValueError): accounts.add_account(111, 'TestNullStartBalanceAccount', None, '2017-1-1') def test_add_negative_start_balance(self): '''Tests inserting a negative starting balace for a new account''' with self.assertRaises(ValueError): accounts.add_account(222, 'TestNegativeStartingBalance', -100.0, '2017-1-1') def test_add_null_created_date(self): '''Tests NOT NULL constraint for account created_on''' with self.assertRaises(ValueError): accounts.add_account(333, 'TestNullCreatedOn', 0.0, '') with self.assertRaises(ValueError): accounts.add_account(333, 'TestNullCreatedOn', 0.0, None) if __name__ == '__main__': unittest.main()
[ 7061, 6, 198, 8979, 25, 1332, 62, 23317, 82, 13, 9078, 198, 13838, 25, 18825, 560, 2677, 198, 198, 7469, 1127, 4326, 5254, 329, 5504, 13, 9078, 13, 198, 51, 3558, 477, 1848, 3033, 13, 198, 7061, 6, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 555, 715, 395, 198, 11748, 28686, 198, 198, 6738, 267, 676, 1330, 5504, 11, 20613, 628, 198, 4871, 6208, 30116, 82, 7, 403, 715, 395, 13, 14402, 20448, 2599, 198, 220, 220, 220, 705, 7061, 7469, 1127, 4326, 5254, 329, 4375, 290, 10829, 5504, 2637, 7061, 628, 220, 220, 220, 825, 900, 4933, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 40786, 4856, 4818, 397, 325, 2637, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 7921, 274, 262, 4856, 6831, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 28015, 15908, 10786, 9288, 9945, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 351, 1280, 7, 81, 470, 395, 9945, 59, 78, 676, 13, 9945, 3256, 705, 86, 11537, 355, 277, 448, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1208, 198, 220, 220, 220, 220, 220, 220, 220, 20613, 13, 8443, 10786, 9288, 9945, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 40406, 3419, 628, 220, 220, 220, 825, 11626, 8048, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 24159, 305, 893, 262, 4856, 6831, 2637, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 20613, 13, 6381, 8443, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 28956, 7, 81, 470, 395, 9945, 59, 78, 676, 13, 9945, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 81, 9132, 343, 10786, 9288, 9945, 11537, 628, 220, 220, 220, 825, 1332, 62, 2860, 62, 3605, 62, 23317, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 14402, 329, 4375, 257, 649, 1848, 2637, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 1090, 796, 20613, 13, 66, 21471, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 3060, 257, 649, 1848, 198, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 2860, 62, 23317, 7, 10163, 2231, 11, 705, 14402, 4550, 30116, 3256, 1802, 13, 405, 11, 705, 5539, 12, 16, 12, 16, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 22019, 13, 41049, 10786, 46506, 327, 28270, 7, 28104, 16034, 5504, 27691, 69, 7569, 505, 3419, 58, 15, 4357, 352, 8, 628, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 2860, 62, 23317, 7, 20, 3559, 2481, 11, 705, 14402, 4550, 30116, 17, 3256, 657, 13, 486, 11, 705, 5539, 12, 16, 12, 16, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 22019, 13, 41049, 10786, 46506, 327, 28270, 7, 28104, 16034, 5504, 27691, 69, 7569, 505, 3419, 58, 15, 4357, 362, 8, 628, 220, 220, 220, 825, 1332, 62, 28956, 62, 23317, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 14402, 284, 4781, 281, 4683, 1848, 2637, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 1090, 796, 20613, 13, 66, 21471, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 35835, 257, 649, 1848, 198, 220, 220, 220, 220, 220, 220, 220, 1090, 13, 41049, 10786, 20913, 17395, 39319, 5504, 26173, 35409, 357, 40839, 11, 366, 14402, 27914, 30116, 1600, 657, 13, 405, 11, 366, 5539, 12, 16, 12, 16, 4943, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 22019, 13, 808, 9127, 11, 352, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 17220, 262, 697, 756, 198, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 33678, 10786, 14402, 27914, 30116, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1090, 13, 41049, 10786, 46506, 327, 28270, 7, 28104, 16034, 5504, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 22019, 13, 69, 7569, 505, 3419, 58, 15, 4357, 657, 8, 628, 220, 220, 220, 825, 1332, 62, 2860, 62, 8423, 62, 23317, 62, 17618, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 51, 3558, 5626, 15697, 32315, 286, 6831, 329, 1848, 1271, 7061, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 9993, 284, 7550, 15697, 355, 1848, 1271, 198, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 11395, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 2860, 62, 23317, 7, 14202, 11, 705, 14402, 35067, 33111, 30116, 3256, 657, 13, 15, 11, 705, 5539, 12, 16, 12, 16, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 11395, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 2860, 62, 23317, 10786, 3256, 705, 14402, 35067, 33111, 30116, 3256, 657, 13, 15, 11, 705, 5539, 12, 16, 12, 16, 11537, 628, 220, 220, 220, 825, 1332, 62, 2860, 62, 8423, 62, 23317, 62, 3672, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 51, 3558, 5626, 15697, 32315, 286, 6831, 329, 1848, 1438, 7061, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 9993, 284, 7550, 15697, 355, 1848, 1438, 198, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 11395, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 2860, 62, 23317, 7, 44183, 11, 6045, 11, 657, 13, 15, 11, 705, 5539, 12, 16, 12, 16, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 11395, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 2860, 62, 23317, 7, 40401, 11, 705, 3256, 657, 13, 15, 11, 705, 5539, 12, 16, 12, 16, 11537, 628, 220, 220, 220, 825, 1332, 62, 2860, 62, 8423, 62, 9688, 62, 20427, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 51, 3558, 5626, 15697, 32315, 286, 4818, 397, 325, 329, 1848, 3599, 5236, 7061, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 9993, 284, 7550, 15697, 355, 1848, 3599, 5236, 198, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 11395, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 2860, 62, 23317, 7, 16243, 11, 705, 14402, 35067, 10434, 45866, 30116, 3256, 6045, 11, 705, 5539, 12, 16, 12, 16, 11537, 628, 220, 220, 220, 825, 1332, 62, 2860, 62, 31591, 62, 9688, 62, 20427, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 51, 3558, 19319, 257, 4633, 3599, 3652, 558, 329, 257, 649, 1848, 7061, 6, 198, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 11395, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 2860, 62, 23317, 7, 23148, 11, 705, 14402, 32863, 876, 22851, 45866, 3256, 532, 3064, 13, 15, 11, 705, 5539, 12, 16, 12, 16, 11537, 628, 220, 220, 220, 825, 1332, 62, 2860, 62, 8423, 62, 25598, 62, 4475, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 51, 3558, 5626, 15697, 32315, 329, 1848, 2727, 62, 261, 7061, 6, 198, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 11395, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 2860, 62, 23317, 7, 20370, 11, 705, 14402, 35067, 41972, 2202, 3256, 657, 13, 15, 11, 10148, 8, 628, 220, 220, 220, 220, 220, 220, 220, 351, 2116, 13, 30493, 21762, 2696, 7, 11395, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5504, 13, 2860, 62, 23317, 7, 20370, 11, 705, 14402, 35067, 41972, 2202, 3256, 657, 13, 15, 11, 6045, 8, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.423937
1,387
# Generated by Django 3.2.9 on 2021-11-07 02:05 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 24, 319, 33448, 12, 1157, 12, 2998, 7816, 25, 2713, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from siptrackweb.views import helpers
[ 6738, 264, 10257, 39638, 12384, 13, 33571, 1330, 49385, 198 ]
3.8
10
import re from setuptools import setup version = "" with open("w2n/__init__.py") as f: search = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE) if search is not None: version = search.group(1) else: raise RuntimeError("Could not grab version string") if not version: raise RuntimeError("version is not set") with open("README.rst") as f: readme = f.read() setup( name='longsphinx-word2number', packages=['w2n'], version=version, license='MIT', description='Convert number words eg. three hundred and forty two to numbers (342). ' 'Forked for https://github.com/WaltWh/LongSphinx, not intended for public use.', author='Akshay Nagpal & Walt Whiteside', author_email='[email protected]', url='https://github.com/WaltWh/w2n', # use the URL to the GitHub repo download_url='https://github.com/WaltWh/w2n/tarball/1.2', keywords=['numbers', 'convert', 'words'], # arbitrary keywords classifiers=[ 'Intended Audience :: Developers', 'Programming Language :: Python :: 3.10' ], long_description=readme, long_description_content_type="text/x-rst", python_requires=">=3.10.0", # Probably not, but I haven't tested anything else test_suite="unit_testing" )
[ 11748, 302, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 9641, 796, 13538, 198, 4480, 1280, 7203, 86, 17, 77, 14, 834, 15003, 834, 13, 9078, 4943, 355, 277, 25, 198, 220, 220, 220, 2989, 796, 302, 13, 12947, 7, 81, 6, 61, 834, 9641, 834, 59, 82, 9, 28, 59, 82, 9, 58, 43054, 8973, 26933, 61, 43054, 8973, 28104, 58, 43054, 8973, 3256, 277, 13, 961, 22784, 302, 13, 44, 16724, 4146, 8881, 8, 628, 220, 220, 220, 611, 2989, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2196, 796, 2989, 13, 8094, 7, 16, 8, 628, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 43160, 12331, 7203, 23722, 407, 5552, 2196, 4731, 4943, 198, 198, 361, 407, 2196, 25, 198, 220, 220, 220, 5298, 43160, 12331, 7203, 9641, 318, 407, 900, 4943, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 81, 301, 4943, 355, 277, 25, 198, 220, 220, 220, 1100, 1326, 796, 277, 13, 961, 3419, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 6511, 82, 746, 28413, 12, 4775, 17, 17618, 3256, 198, 220, 220, 220, 10392, 28, 17816, 86, 17, 77, 6, 4357, 198, 220, 220, 220, 2196, 28, 9641, 11, 198, 220, 220, 220, 5964, 11639, 36393, 3256, 198, 220, 220, 220, 6764, 11639, 3103, 1851, 1271, 2456, 29206, 13, 1115, 3470, 290, 16571, 734, 284, 3146, 357, 31575, 737, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 37, 967, 276, 329, 3740, 1378, 12567, 13, 785, 14, 54, 2501, 1199, 14, 14617, 50, 746, 28413, 11, 407, 5292, 329, 1171, 779, 2637, 11, 198, 220, 220, 220, 1772, 11639, 32, 50133, 323, 15196, 18596, 1222, 18935, 29290, 485, 3256, 198, 220, 220, 220, 1772, 62, 12888, 11639, 43701, 805, 31, 25561, 13, 19205, 3256, 198, 220, 220, 220, 19016, 11639, 5450, 1378, 12567, 13, 785, 14, 54, 2501, 1199, 14, 86, 17, 77, 3256, 220, 1303, 779, 262, 10289, 284, 262, 21722, 29924, 198, 220, 220, 220, 4321, 62, 6371, 11639, 5450, 1378, 12567, 13, 785, 14, 54, 2501, 1199, 14, 86, 17, 77, 14, 18870, 1894, 14, 16, 13, 17, 3256, 198, 220, 220, 220, 26286, 28, 17816, 77, 17024, 3256, 705, 1102, 1851, 3256, 705, 10879, 6, 4357, 220, 1303, 14977, 26286, 198, 220, 220, 220, 1398, 13350, 41888, 198, 220, 220, 220, 220, 220, 220, 220, 705, 5317, 1631, 7591, 1240, 7904, 34152, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 15167, 2229, 15417, 7904, 11361, 7904, 513, 13, 940, 6, 198, 220, 220, 220, 16589, 198, 220, 220, 220, 890, 62, 11213, 28, 961, 1326, 11, 198, 220, 220, 220, 890, 62, 11213, 62, 11299, 62, 4906, 2625, 5239, 14, 87, 12, 81, 301, 1600, 198, 220, 220, 220, 21015, 62, 47911, 2625, 29, 28, 18, 13, 940, 13, 15, 1600, 220, 1303, 18578, 407, 11, 475, 314, 4398, 470, 6789, 1997, 2073, 198, 220, 220, 220, 1332, 62, 2385, 578, 2625, 20850, 62, 33407, 1, 198, 8, 198 ]
2.545455
517
import joblib import logging from typing import Tuple from catboost import CatBoostRegressor from environs import Env import numpy as np import pandas as pd from sklearn import metrics from bedrock_client.bedrock.analyzer import ModelTask, ModelTypes from bedrock_client.bedrock.analyzer.model_analyzer import ModelAnalyzer from bedrock_client.bedrock.api import BedrockApi from bedrock_client.bedrock.metrics.collector import ( BaselineMetricCollector, FeatureHistogramCollector, InferenceHistogramCollector ) from bedrock_client.bedrock.metrics.encoder import MetricEncoder env = Env() OUTPUT_MODEL_PATH = env("OUTPUT_MODEL_PATH") TRAIN_DATA_PATH = env("TRAIN_DATA_PATH") TEST_DATA_PATH = env("TEST_DATA_PATH") CONFIG_FAI = { "large_rings": { "group_a": [1], "group_a_name": "Large", "group_b": [0], "group_b_name": "Small" } } def load_dataset(filepath: str, target: str) -> Tuple[pd.core.frame.DataFrame, np.ndarray]: """ Loads the dataset and returns the features as a pandas dataframe and the target variable as a numpy array. :param filepath: Path to load the data :type filepath: str :param target: Target variable :type target: str :return: The features pandas dataframe and the target numpy array :rtype: tuple[pandas.core.frame.DataFrame, numpy.ndarray] """ df = pd.read_csv(filepath).drop('Type', axis=1) # Removes 'Type' column df['large_rings'] = (df['Rings'] > 10).astype(int) # Ensure nothing missing original_len = len(df) df.dropna(how="any", axis=0, inplace=True) num_rows_dropped = original_len - len(df) if num_rows_dropped > 0: print(f"Warning - dropped {num_rows_dropped} rows with NA data.") y = df[target].values df.drop(target, axis=1, inplace=True) return df, y def train_catboost_model(X: pd.core.frame.DataFrame, y: np.ndarray, verbose: bool = False) -> CatBoostRegressor: """ Scales the features and trains a logistic regression model. :param X: Features for training :type X: pandas.core.frame.DataFrame :param y: Target variable :type y: numpy.ndarray :param verbose: Whether to print additional info :type verbose: bool :return: Trained CatBoostRegressor model :rtype: catboost.CatBoostRegressor """ verbose and print('\nTRAIN\nScaling...') model = CatBoostRegressor(iterations=100, learning_rate=0.1, depth=5) verbose and print('Fitting...') model.fit(X, y) verbose and print('Done training.') return model def compute_log_metrics(model: CatBoostRegressor, x_test: pd.core.frame.DataFrame, y_test: np.ndarray): """ Computes, prints and log metrics. :param model: Trained CatBoostRegressor model :type model: catboost.CatBoostRegressor :param x_test: Features for testing :type x_test: pandas.core.frame.DataFrame :param y_test: Target variable data for testing :type y_test: numpy.ndarray :return: Test predicted probability and predictions :rtype: tuple[numpy.ndarray, numpy.ndarray] """ y_pred = model.predict(x_test) mae = metrics.mean_absolute_error(y_test, y_pred) mse = metrics.mean_squared_error(y_test, y_pred) r2_score = metrics.r2_score(y_test, y_pred) print("\nEVALUATION\n" f"\tMean absolute error = {mae:.4f}\n" f"\tMean squared error = {mse:.4f}\n" f"\tR2 regression score function = {r2_score:.4f}\n") # Bedrock Logger: captures model metrics bedrock = BedrockApi(logging.getLogger(__name__)) bedrock.log_metric("MAE", mae) bedrock.log_metric("MSE", mse) bedrock.log_metric("R2", r2_score) return y_pred if __name__ == '__main__': main()
[ 11748, 1693, 8019, 198, 11748, 18931, 198, 6738, 19720, 1330, 309, 29291, 198, 198, 6738, 3797, 39521, 1330, 5181, 45686, 8081, 44292, 198, 6738, 17365, 343, 684, 1330, 2039, 85, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 1330, 20731, 198, 198, 6738, 47856, 62, 16366, 13, 3077, 10823, 13, 38200, 9107, 1330, 9104, 25714, 11, 9104, 31431, 198, 6738, 47856, 62, 16366, 13, 3077, 10823, 13, 38200, 9107, 13, 19849, 62, 38200, 9107, 1330, 9104, 37702, 9107, 198, 6738, 47856, 62, 16366, 13, 3077, 10823, 13, 15042, 1330, 15585, 10823, 32, 14415, 198, 6738, 47856, 62, 16366, 13, 3077, 10823, 13, 4164, 10466, 13, 33327, 273, 1330, 357, 198, 220, 220, 220, 6455, 4470, 9171, 1173, 31337, 273, 11, 198, 220, 220, 220, 27018, 13749, 21857, 31337, 273, 11, 198, 220, 220, 220, 554, 4288, 13749, 21857, 31337, 273, 198, 8, 198, 6738, 47856, 62, 16366, 13, 3077, 10823, 13, 4164, 10466, 13, 12685, 12342, 1330, 3395, 1173, 27195, 12342, 198, 198, 24330, 796, 2039, 85, 3419, 198, 2606, 7250, 3843, 62, 33365, 3698, 62, 34219, 796, 17365, 7203, 2606, 7250, 3843, 62, 33365, 3698, 62, 34219, 4943, 198, 51, 3861, 1268, 62, 26947, 62, 34219, 796, 17365, 7203, 51, 3861, 1268, 62, 26947, 62, 34219, 4943, 198, 51, 6465, 62, 26947, 62, 34219, 796, 17365, 7203, 51, 6465, 62, 26947, 62, 34219, 4943, 198, 198, 10943, 16254, 62, 7708, 40, 796, 1391, 198, 220, 220, 220, 366, 11664, 62, 33173, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 8094, 62, 64, 1298, 685, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 366, 8094, 62, 64, 62, 3672, 1298, 366, 21968, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 8094, 62, 65, 1298, 685, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 366, 8094, 62, 65, 62, 3672, 1298, 366, 18712, 1, 198, 220, 220, 220, 1782, 198, 92, 628, 198, 4299, 3440, 62, 19608, 292, 316, 7, 7753, 6978, 25, 965, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2496, 25, 965, 8, 4613, 309, 29291, 58, 30094, 13, 7295, 13, 14535, 13, 6601, 19778, 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, 45941, 13, 358, 18747, 5974, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 8778, 82, 262, 27039, 290, 5860, 262, 3033, 355, 257, 19798, 292, 1366, 14535, 290, 198, 220, 220, 220, 262, 2496, 7885, 355, 257, 299, 32152, 7177, 13, 628, 220, 220, 220, 1058, 17143, 2393, 6978, 25, 10644, 284, 3440, 262, 1366, 198, 220, 220, 220, 1058, 4906, 2393, 6978, 25, 965, 198, 220, 220, 220, 1058, 17143, 2496, 25, 12744, 7885, 198, 220, 220, 220, 1058, 4906, 2496, 25, 965, 198, 220, 220, 220, 1058, 7783, 25, 383, 3033, 19798, 292, 1366, 14535, 290, 262, 2496, 299, 32152, 7177, 198, 220, 220, 220, 1058, 81, 4906, 25, 46545, 58, 79, 392, 292, 13, 7295, 13, 14535, 13, 6601, 19778, 11, 299, 32152, 13, 358, 18747, 60, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 47764, 796, 279, 67, 13, 961, 62, 40664, 7, 7753, 6978, 737, 14781, 10786, 6030, 3256, 16488, 28, 16, 8, 220, 1303, 3982, 5241, 705, 6030, 6, 5721, 198, 220, 220, 220, 47764, 17816, 11664, 62, 33173, 20520, 796, 357, 7568, 17816, 49, 654, 20520, 1875, 838, 737, 459, 2981, 7, 600, 8, 628, 220, 220, 220, 1303, 48987, 2147, 4814, 198, 220, 220, 220, 2656, 62, 11925, 796, 18896, 7, 7568, 8, 198, 220, 220, 220, 47764, 13, 14781, 2616, 7, 4919, 2625, 1092, 1600, 16488, 28, 15, 11, 287, 5372, 28, 17821, 8, 198, 220, 220, 220, 997, 62, 8516, 62, 22285, 1496, 796, 2656, 62, 11925, 532, 18896, 7, 7568, 8, 198, 220, 220, 220, 611, 997, 62, 8516, 62, 22285, 1496, 1875, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 69, 1, 20361, 532, 5710, 1391, 22510, 62, 8516, 62, 22285, 1496, 92, 15274, 351, 11746, 1366, 19570, 628, 220, 220, 220, 331, 796, 47764, 58, 16793, 4083, 27160, 198, 220, 220, 220, 47764, 13, 14781, 7, 16793, 11, 16488, 28, 16, 11, 287, 5372, 28, 17821, 8, 628, 220, 220, 220, 1441, 47764, 11, 331, 628, 198, 4299, 4512, 62, 9246, 39521, 62, 19849, 7, 55, 25, 279, 67, 13, 7295, 13, 14535, 13, 6601, 19778, 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, 331, 25, 45941, 13, 358, 18747, 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, 15942, 577, 25, 20512, 796, 10352, 8, 4613, 5181, 45686, 8081, 44292, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1446, 2040, 262, 3033, 290, 13404, 257, 2604, 2569, 20683, 2746, 13, 628, 220, 220, 220, 1058, 17143, 1395, 25, 17571, 329, 3047, 198, 220, 220, 220, 1058, 4906, 1395, 25, 19798, 292, 13, 7295, 13, 14535, 13, 6601, 19778, 198, 220, 220, 220, 1058, 17143, 331, 25, 12744, 7885, 198, 220, 220, 220, 1058, 4906, 331, 25, 299, 32152, 13, 358, 18747, 198, 220, 220, 220, 1058, 17143, 15942, 577, 25, 10127, 284, 3601, 3224, 7508, 198, 220, 220, 220, 1058, 4906, 15942, 577, 25, 20512, 198, 220, 220, 220, 1058, 7783, 25, 833, 1328, 5181, 45686, 8081, 44292, 2746, 198, 220, 220, 220, 1058, 81, 4906, 25, 3797, 39521, 13, 21979, 45686, 8081, 44292, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 15942, 577, 290, 3601, 10786, 59, 77, 51, 3861, 1268, 59, 77, 3351, 4272, 986, 11537, 198, 220, 220, 220, 2746, 796, 5181, 45686, 8081, 44292, 7, 2676, 602, 28, 3064, 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, 4673, 62, 4873, 28, 15, 13, 16, 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, 6795, 28, 20, 8, 628, 220, 220, 220, 15942, 577, 290, 3601, 10786, 37, 2535, 986, 11537, 198, 220, 220, 220, 2746, 13, 11147, 7, 55, 11, 331, 8, 628, 220, 220, 220, 15942, 577, 290, 3601, 10786, 45677, 3047, 2637, 8, 628, 220, 220, 220, 1441, 2746, 628, 198, 4299, 24061, 62, 6404, 62, 4164, 10466, 7, 19849, 25, 5181, 45686, 8081, 44292, 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, 2124, 62, 9288, 25, 279, 67, 13, 7295, 13, 14535, 13, 6601, 19778, 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, 331, 62, 9288, 25, 45941, 13, 358, 18747, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3082, 1769, 11, 20842, 290, 2604, 20731, 13, 628, 220, 220, 220, 1058, 17143, 2746, 25, 833, 1328, 5181, 45686, 8081, 44292, 2746, 198, 220, 220, 220, 1058, 4906, 2746, 25, 3797, 39521, 13, 21979, 45686, 8081, 44292, 198, 220, 220, 220, 1058, 17143, 2124, 62, 9288, 25, 17571, 329, 4856, 198, 220, 220, 220, 1058, 4906, 2124, 62, 9288, 25, 19798, 292, 13, 7295, 13, 14535, 13, 6601, 19778, 198, 220, 220, 220, 1058, 17143, 331, 62, 9288, 25, 12744, 7885, 1366, 329, 4856, 198, 220, 220, 220, 1058, 4906, 331, 62, 9288, 25, 299, 32152, 13, 358, 18747, 198, 220, 220, 220, 1058, 7783, 25, 6208, 11001, 12867, 290, 16277, 198, 220, 220, 220, 1058, 81, 4906, 25, 46545, 58, 77, 32152, 13, 358, 18747, 11, 299, 32152, 13, 358, 18747, 60, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 331, 62, 28764, 796, 2746, 13, 79, 17407, 7, 87, 62, 9288, 8, 628, 220, 220, 220, 285, 3609, 796, 20731, 13, 32604, 62, 48546, 62, 18224, 7, 88, 62, 9288, 11, 331, 62, 28764, 8, 198, 220, 220, 220, 285, 325, 796, 20731, 13, 32604, 62, 16485, 1144, 62, 18224, 7, 88, 62, 9288, 11, 331, 62, 28764, 8, 198, 220, 220, 220, 374, 17, 62, 26675, 796, 20731, 13, 81, 17, 62, 26675, 7, 88, 62, 9288, 11, 331, 62, 28764, 8, 628, 220, 220, 220, 3601, 7203, 59, 77, 20114, 1847, 52, 6234, 59, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 1, 59, 83, 5308, 272, 4112, 4049, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1391, 2611, 68, 25, 13, 19, 69, 32239, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 1, 59, 83, 5308, 272, 44345, 4049, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1391, 76, 325, 25, 13, 19, 69, 32239, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 1, 59, 83, 49, 17, 20683, 4776, 2163, 796, 1391, 81, 17, 62, 26675, 25, 13, 19, 69, 32239, 77, 4943, 628, 220, 220, 220, 1303, 15585, 10823, 5972, 1362, 25, 23007, 2746, 20731, 198, 220, 220, 220, 47856, 796, 15585, 10823, 32, 14415, 7, 6404, 2667, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 4008, 628, 220, 220, 220, 47856, 13, 6404, 62, 4164, 1173, 7203, 5673, 36, 1600, 285, 3609, 8, 198, 220, 220, 220, 47856, 13, 6404, 62, 4164, 1173, 7203, 44, 5188, 1600, 285, 325, 8, 198, 220, 220, 220, 47856, 13, 6404, 62, 4164, 1173, 7203, 49, 17, 1600, 374, 17, 62, 26675, 8, 628, 220, 220, 220, 1441, 331, 62, 28764, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.358032
1,687
#!/usr/bin/env python # coding: utf-8 # # PC/NC classification by CNN # # The convolutional neural network (CNN) was invented for image processing. # We can use Conv1D layers for processing string sequences. # How well does CNN work on human RNA as a binary classifier of protein-coding/non-coding? # # Assume user downloaded files from GenCode 38 [FTP](http://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/release_38/) # to a subdirectory called data. # # The learning curve is strange: up then down. I suspect the CNN is learning the fact that we padded sequences with T to make them uniform length. # In[1]: import time show_time() # In[2]: PC_FILENAME='gencode.v38.pc_transcripts.fa.gz' NC_FILENAME='gencode.v38.lncRNA_transcripts.fa.gz' # In[3]: PC_SEQUENCES=20000 # how many protein-coding sequences NC_SEQUENCES=20000 # how many non-coding sequences PC_TESTS=1000 NC_TESTS=1000 BASES=1000 # how long is each sequence ALPHABET=4 # how many different letters are possible INPUT_SHAPE_2D = (BASES,ALPHABET,1) # Conv2D needs 3D inputs INPUT_SHAPE = (BASES,ALPHABET) # Conv1D needs 2D inputs FILTERS = 32 # how many different patterns the model looks for NEURONS = 32 DROP_RATE = 0.2 WIDTH = 3 # how wide each pattern is, in bases STRIDE_2D = (1,1) # For Conv2D how far in each direction STRIDE = 1 # For Conv1D, how far between pattern matches, in bases EPOCHS=50 # how many times to train on all the data SPLITS=5 # SPLITS=3 means train on 2/3 and validate on 1/3 FOLDS=3 # train the model this many times (range 1 to SPLITS) # In[4]: import sys import csv try: from google.colab import drive IN_COLAB = True print("On Google CoLab, mount cloud-local file, get our code from GitHub.") PATH='/content/drive/' #drive.mount(PATH,force_remount=True) # hardly ever need this drive.mount(PATH) # Google will require login credentials DATAPATH=PATH+'My Drive/data/' # must end in "/" import requests r = requests.get('https://raw.githubusercontent.com/ShepherdCode/Soars2021/master/SimTools/RNA_gen.py') with open('RNA_gen.py', 'w') as f: f.write(r.text) from RNA_gen import * r = requests.get('https://raw.githubusercontent.com/ShepherdCode/Soars2021/master/SimTools/RNA_describe.py') with open('RNA_describe.py', 'w') as f: f.write(r.text) from RNA_describe import * r = requests.get('https://raw.githubusercontent.com/ShepherdCode/Soars2021/master/SimTools/RNA_prep.py') with open('RNA_prep.py', 'w') as f: f.write(r.text) from RNA_prep import * except: print("CoLab not working. On my PC, use relative paths.") IN_COLAB = False DATAPATH='../data/' # must end in "/" sys.path.append("..") # append parent dir in order to use sibling dirs from SimTools.RNA_gen import * from SimTools.RNA_describe import * from SimTools.RNA_prep import * MODELPATH="BestModel" # saved on cloud instance and lost after logout #MODELPATH=DATAPATH+MODELPATH # saved on Google Drive but requires login if not assert_imported_RNA_gen(): print("ERROR: Cannot use RNA_gen.") if not assert_imported_RNA_prep(): print("ERROR: Cannot use RNA_prep.") # In[5]: from os import listdir #from zipfile import ZipFile import gzip import numpy as np import pandas as pd from scipy import stats # mode from sklearn.preprocessing import StandardScaler from sklearn.model_selection import KFold from sklearn.model_selection import cross_val_score from keras.models import Sequential from keras.layers import Dense,Embedding,Dropout from keras.layers import Conv1D,Conv2D from keras.layers import Flatten,MaxPooling1D,MaxPooling2D from keras.losses import BinaryCrossentropy # tf.keras.losses.BinaryCrossentropy import matplotlib.pyplot as plt from matplotlib import colors mycmap = colors.ListedColormap(['red','blue']) # list color for label 0 then 1 np.set_printoptions(precision=2) # In[6]: # In[7]: PC_FULLPATH=DATAPATH+PC_FILENAME NC_FULLPATH=DATAPATH+NC_FILENAME pcdf=load_gencode(PC_FULLPATH,1) print("PC seqs loaded:",len(pcdf)) ncdf=load_gencode(NC_FULLPATH,0) print("NC seqs loaded:",len(ncdf)) # In[8]: # In[9]: from sklearn.model_selection import train_test_split pc_all = pcdf['sequence'] nc_all = ncdf['sequence'] # The split function also shuffles pc_train,pc_test=train_test_split(pc_all,test_size=0.10,random_state=1234) nc_train,nc_test=train_test_split(nc_all,test_size=0.10,random_state=1234) # In[10]: # Use code from our SimTools library. UNIFORM_LENGTH=1000 MAXIMUM_LENGTH=2000 pc_seqs=uniform_length(pc_train,UNIFORM_LENGTH,MAXIMUM_LENGTH-500) print("PC seqs ready:",len(pc_seqs)) nc_seqs=uniform_length(nc_train,UNIFORM_LENGTH,MAXIMUM_LENGTH+2000) print("NC seqs ready:",len(nc_seqs)) X,y = prepare_inputs_len_x_alphabet(pc_seqs,nc_seqs,ALPHABET) # shuffles print("Data ready") # In[11]: model = make_DNN() print(model.summary()) # In[12]: from keras.callbacks import ModelCheckpoint # In[13]: show_time() do_cross_validation(X,y) show_time() # In[13]:
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 1303, 4217, 14, 7792, 17923, 416, 8100, 198, 2, 220, 198, 2, 383, 3063, 2122, 282, 17019, 3127, 357, 18474, 8, 373, 15646, 329, 2939, 7587, 13, 198, 2, 775, 460, 779, 34872, 16, 35, 11685, 329, 7587, 4731, 16311, 13, 220, 198, 2, 1374, 880, 857, 8100, 670, 319, 1692, 25897, 355, 257, 13934, 1398, 7483, 286, 7532, 12, 66, 7656, 14, 13159, 12, 66, 7656, 30, 220, 220, 198, 2, 220, 198, 2, 2195, 2454, 2836, 15680, 3696, 422, 5215, 10669, 4353, 685, 37, 7250, 16151, 4023, 1378, 701, 79, 13, 1765, 72, 13, 330, 13, 2724, 14, 12984, 14, 19608, 18826, 14, 5235, 8189, 14, 13746, 8189, 62, 10734, 14, 20979, 62, 2548, 34729, 198, 2, 284, 257, 850, 34945, 1444, 1366, 13, 198, 2, 220, 198, 2, 383, 4673, 12133, 318, 6283, 25, 510, 788, 866, 13, 314, 4099, 262, 8100, 318, 4673, 262, 1109, 326, 356, 44582, 16311, 351, 309, 284, 787, 606, 8187, 4129, 13, 198, 198, 2, 554, 58, 16, 5974, 628, 198, 11748, 640, 220, 198, 12860, 62, 2435, 3419, 628, 198, 2, 554, 58, 17, 5974, 628, 198, 5662, 62, 46700, 1677, 10067, 11639, 5235, 8189, 13, 85, 2548, 13, 14751, 62, 7645, 6519, 82, 13, 13331, 13, 34586, 6, 198, 7792, 62, 46700, 1677, 10067, 11639, 5235, 8189, 13, 85, 2548, 13, 75, 10782, 27204, 62, 7645, 6519, 82, 13, 13331, 13, 34586, 6, 628, 198, 2, 554, 58, 18, 5974, 628, 198, 5662, 62, 5188, 10917, 24181, 1546, 28, 2167, 405, 220, 220, 1303, 703, 867, 7532, 12, 66, 7656, 16311, 198, 7792, 62, 5188, 10917, 24181, 1546, 28, 2167, 405, 220, 220, 1303, 703, 867, 1729, 12, 66, 7656, 16311, 198, 5662, 62, 51, 1546, 4694, 28, 12825, 198, 7792, 62, 51, 1546, 4694, 28, 12825, 198, 33, 1921, 1546, 28, 12825, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 703, 890, 318, 1123, 8379, 198, 1847, 11909, 6242, 2767, 28, 19, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 703, 867, 1180, 7475, 389, 1744, 198, 1268, 30076, 62, 9693, 45721, 62, 17, 35, 796, 357, 33, 1921, 1546, 11, 1847, 11909, 6242, 2767, 11, 16, 8, 1303, 34872, 17, 35, 2476, 513, 35, 17311, 198, 1268, 30076, 62, 9693, 45721, 796, 357, 33, 1921, 1546, 11, 1847, 11909, 6242, 2767, 8, 1303, 34872, 16, 35, 2476, 362, 35, 17311, 198, 46700, 51, 4877, 796, 3933, 220, 220, 1303, 703, 867, 1180, 7572, 262, 2746, 3073, 329, 198, 12161, 4261, 19213, 796, 3933, 198, 7707, 3185, 62, 49, 6158, 796, 657, 13, 17, 198, 54, 2389, 4221, 796, 513, 220, 220, 1303, 703, 3094, 1123, 3912, 318, 11, 287, 12536, 198, 18601, 14114, 62, 17, 35, 796, 357, 16, 11, 16, 8, 220, 1303, 1114, 34872, 17, 35, 703, 1290, 287, 1123, 4571, 198, 18601, 14114, 796, 352, 1303, 1114, 34872, 16, 35, 11, 703, 1290, 1022, 3912, 7466, 11, 287, 12536, 198, 8905, 46, 3398, 50, 28, 1120, 220, 1303, 703, 867, 1661, 284, 4512, 319, 477, 262, 1366, 198, 4303, 43, 29722, 28, 20, 220, 1303, 46341, 29722, 28, 18, 1724, 4512, 319, 362, 14, 18, 290, 26571, 319, 352, 14, 18, 220, 198, 37, 3535, 5258, 28, 18, 220, 1303, 4512, 262, 2746, 428, 867, 1661, 357, 9521, 352, 284, 46341, 29722, 8, 628, 198, 2, 554, 58, 19, 5974, 628, 198, 11748, 25064, 198, 11748, 269, 21370, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 23645, 13, 4033, 397, 1330, 3708, 198, 220, 220, 220, 3268, 62, 25154, 6242, 796, 6407, 198, 220, 220, 220, 3601, 7203, 2202, 3012, 1766, 17822, 11, 3817, 6279, 12, 12001, 2393, 11, 651, 674, 2438, 422, 21722, 19570, 198, 220, 220, 220, 46490, 11639, 14, 11299, 14, 19472, 14, 6, 198, 220, 220, 220, 1303, 19472, 13, 14948, 7, 34219, 11, 3174, 62, 2787, 608, 28, 17821, 8, 220, 1303, 8941, 1683, 761, 428, 198, 220, 220, 220, 3708, 13, 14948, 7, 34219, 8, 220, 220, 220, 1303, 3012, 481, 2421, 17594, 18031, 198, 220, 220, 220, 360, 1404, 2969, 12599, 28, 34219, 10, 6, 3666, 9974, 14, 7890, 14, 6, 220, 1303, 1276, 886, 287, 12813, 1, 198, 220, 220, 220, 1330, 7007, 198, 220, 220, 220, 374, 796, 7007, 13, 1136, 10786, 5450, 1378, 1831, 13, 12567, 43667, 13, 785, 14, 3347, 23111, 10669, 14, 2396, 945, 1238, 2481, 14, 9866, 14, 8890, 33637, 14, 27204, 62, 5235, 13, 9078, 11537, 198, 220, 220, 220, 351, 1280, 10786, 27204, 62, 5235, 13, 9078, 3256, 705, 86, 11537, 355, 277, 25, 198, 220, 220, 220, 220, 220, 220, 220, 277, 13, 13564, 7, 81, 13, 5239, 8, 220, 220, 198, 220, 220, 220, 422, 25897, 62, 5235, 1330, 1635, 198, 220, 220, 220, 374, 796, 7007, 13, 1136, 10786, 5450, 1378, 1831, 13, 12567, 43667, 13, 785, 14, 3347, 23111, 10669, 14, 2396, 945, 1238, 2481, 14, 9866, 14, 8890, 33637, 14, 27204, 62, 20147, 4892, 13, 9078, 11537, 198, 220, 220, 220, 351, 1280, 10786, 27204, 62, 20147, 4892, 13, 9078, 3256, 705, 86, 11537, 355, 277, 25, 198, 220, 220, 220, 220, 220, 220, 220, 277, 13, 13564, 7, 81, 13, 5239, 8, 220, 220, 198, 220, 220, 220, 422, 25897, 62, 20147, 4892, 1330, 1635, 198, 220, 220, 220, 374, 796, 7007, 13, 1136, 10786, 5450, 1378, 1831, 13, 12567, 43667, 13, 785, 14, 3347, 23111, 10669, 14, 2396, 945, 1238, 2481, 14, 9866, 14, 8890, 33637, 14, 27204, 62, 46012, 13, 9078, 11537, 198, 220, 220, 220, 351, 1280, 10786, 27204, 62, 46012, 13, 9078, 3256, 705, 86, 11537, 355, 277, 25, 198, 220, 220, 220, 220, 220, 220, 220, 277, 13, 13564, 7, 81, 13, 5239, 8, 220, 220, 198, 220, 220, 220, 422, 25897, 62, 46012, 1330, 1635, 198, 16341, 25, 198, 220, 220, 220, 3601, 7203, 7222, 17822, 407, 1762, 13, 1550, 616, 4217, 11, 779, 3585, 13532, 19570, 198, 220, 220, 220, 3268, 62, 25154, 6242, 796, 10352, 198, 220, 220, 220, 360, 1404, 2969, 12599, 11639, 40720, 7890, 14, 6, 220, 1303, 1276, 886, 287, 12813, 1, 198, 220, 220, 220, 25064, 13, 6978, 13, 33295, 7203, 492, 4943, 1303, 24443, 2560, 26672, 287, 1502, 284, 779, 33423, 288, 17062, 198, 220, 220, 220, 422, 3184, 33637, 13, 27204, 62, 5235, 1330, 1635, 198, 220, 220, 220, 422, 3184, 33637, 13, 27204, 62, 20147, 4892, 1330, 1635, 198, 220, 220, 220, 422, 3184, 33637, 13, 27204, 62, 46012, 1330, 1635, 198, 198, 33365, 3698, 34219, 2625, 13014, 17633, 1, 220, 1303, 7448, 319, 6279, 4554, 290, 2626, 706, 2604, 448, 198, 2, 33365, 3698, 34219, 28, 35, 1404, 2969, 12599, 10, 33365, 3698, 34219, 220, 1303, 7448, 319, 3012, 9974, 475, 4433, 17594, 198, 198, 361, 407, 6818, 62, 320, 9213, 62, 27204, 62, 5235, 33529, 198, 220, 220, 220, 3601, 7203, 24908, 25, 26003, 779, 25897, 62, 5235, 19570, 198, 361, 407, 6818, 62, 320, 9213, 62, 27204, 62, 46012, 33529, 198, 220, 220, 220, 3601, 7203, 24908, 25, 26003, 779, 25897, 62, 46012, 19570, 628, 198, 2, 554, 58, 20, 5974, 628, 198, 6738, 28686, 1330, 1351, 15908, 198, 2, 6738, 19974, 7753, 1330, 38636, 8979, 198, 11748, 308, 13344, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 629, 541, 88, 1330, 9756, 220, 1303, 4235, 198, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 8997, 3351, 36213, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 509, 37, 727, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 3272, 62, 2100, 62, 26675, 198, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 360, 1072, 11, 31567, 6048, 278, 11, 26932, 448, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 34872, 16, 35, 11, 3103, 85, 17, 35, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 1610, 41769, 11, 11518, 27201, 278, 16, 35, 11, 11518, 27201, 278, 17, 35, 198, 6738, 41927, 292, 13, 22462, 274, 1330, 45755, 21544, 298, 28338, 198, 2, 48700, 13, 6122, 292, 13, 22462, 274, 13, 33, 3219, 21544, 298, 28338, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 1330, 7577, 198, 1820, 66, 8899, 796, 7577, 13, 43, 6347, 5216, 579, 499, 7, 17816, 445, 41707, 17585, 6, 12962, 220, 1303, 1351, 3124, 329, 6167, 657, 788, 352, 198, 37659, 13, 2617, 62, 4798, 25811, 7, 3866, 16005, 28, 17, 8, 628, 198, 2, 554, 58, 21, 5974, 628, 198, 198, 2, 554, 58, 22, 5974, 628, 198, 5662, 62, 37, 9994, 34219, 28, 35, 1404, 2969, 12599, 10, 5662, 62, 46700, 1677, 10067, 198, 7792, 62, 37, 9994, 34219, 28, 35, 1404, 2969, 12599, 10, 7792, 62, 46700, 1677, 10067, 198, 14751, 7568, 28, 2220, 62, 5235, 8189, 7, 5662, 62, 37, 9994, 34219, 11, 16, 8, 198, 4798, 7203, 5662, 33756, 82, 9639, 25, 1600, 11925, 7, 14751, 7568, 4008, 198, 10782, 7568, 28, 2220, 62, 5235, 8189, 7, 7792, 62, 37, 9994, 34219, 11, 15, 8, 198, 4798, 7203, 7792, 33756, 82, 9639, 25, 1600, 11925, 7, 10782, 7568, 4008, 628, 198, 2, 554, 58, 23, 5974, 628, 198, 198, 2, 554, 58, 24, 5974, 628, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 198, 14751, 62, 439, 796, 40653, 7568, 17816, 43167, 20520, 198, 10782, 62, 439, 796, 299, 66, 7568, 17816, 43167, 20520, 198, 2, 383, 6626, 2163, 635, 32299, 829, 198, 14751, 62, 27432, 11, 14751, 62, 9288, 28, 27432, 62, 9288, 62, 35312, 7, 14751, 62, 439, 11, 9288, 62, 7857, 28, 15, 13, 940, 11, 25120, 62, 5219, 28, 1065, 2682, 8, 198, 10782, 62, 27432, 11, 10782, 62, 9288, 28, 27432, 62, 9288, 62, 35312, 7, 10782, 62, 439, 11, 9288, 62, 7857, 28, 15, 13, 940, 11, 25120, 62, 5219, 28, 1065, 2682, 8, 628, 198, 2, 554, 58, 940, 5974, 628, 198, 2, 5765, 2438, 422, 674, 3184, 33637, 5888, 13, 198, 4944, 5064, 1581, 44, 62, 43, 49494, 28, 12825, 198, 22921, 3955, 5883, 62, 43, 49494, 28, 11024, 198, 14751, 62, 41068, 82, 28, 403, 6933, 62, 13664, 7, 14751, 62, 27432, 11, 4944, 5064, 1581, 44, 62, 43, 49494, 11, 22921, 3955, 5883, 62, 43, 49494, 12, 4059, 8, 198, 4798, 7203, 5662, 33756, 82, 3492, 25, 1600, 11925, 7, 14751, 62, 41068, 82, 4008, 198, 10782, 62, 41068, 82, 28, 403, 6933, 62, 13664, 7, 10782, 62, 27432, 11, 4944, 5064, 1581, 44, 62, 43, 49494, 11, 22921, 3955, 5883, 62, 43, 49494, 10, 11024, 8, 198, 4798, 7203, 7792, 33756, 82, 3492, 25, 1600, 11925, 7, 10782, 62, 41068, 82, 4008, 198, 55, 11, 88, 796, 8335, 62, 15414, 82, 62, 11925, 62, 87, 62, 17307, 8380, 7, 14751, 62, 41068, 82, 11, 10782, 62, 41068, 82, 11, 1847, 11909, 6242, 2767, 8, 1303, 32299, 829, 198, 4798, 7203, 6601, 3492, 4943, 628, 198, 2, 554, 58, 1157, 5974, 198, 198, 19849, 796, 787, 62, 35, 6144, 3419, 198, 4798, 7, 19849, 13, 49736, 28955, 628, 198, 2, 554, 58, 1065, 5974, 628, 198, 6738, 41927, 292, 13, 13345, 10146, 1330, 9104, 9787, 4122, 628, 198, 2, 554, 58, 1485, 5974, 628, 198, 12860, 62, 2435, 3419, 198, 4598, 62, 19692, 62, 12102, 341, 7, 55, 11, 88, 8, 198, 12860, 62, 2435, 3419, 628, 198, 2, 554, 58, 1485, 5974, 628, 628, 198 ]
2.636788
1,930
from distutils.core import setup import py2exe setup(console=['client.py']) setup(console=['server.py']) setup(console=['stun.py'])
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 201, 198, 11748, 12972, 17, 13499, 201, 198, 201, 198, 40406, 7, 41947, 28, 17816, 16366, 13, 9078, 6, 12962, 201, 198, 40406, 7, 41947, 28, 17816, 15388, 13, 9078, 6, 12962, 201, 198, 40406, 7, 41947, 28, 17816, 301, 403, 13, 9078, 6, 12962 ]
2.634615
52
#!/usr/bin/env python import os import sys from pyramid.config import Configurator from sqlalchemy import engine_from_config from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import scoped_session from chatter3.models import Base from pyramid.paster import ( get_appsettings, setup_logging, ) DBSession = scoped_session(sessionmaker()) here = os.path.dirname(__file__) if __name__ == "__main__": # pragma: no cover main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 27944, 13, 11250, 1330, 17056, 333, 1352, 198, 198, 6738, 44161, 282, 26599, 1330, 3113, 62, 6738, 62, 11250, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 6246, 10297, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 629, 19458, 62, 29891, 198, 198, 6738, 37303, 18, 13, 27530, 1330, 7308, 198, 198, 6738, 27944, 13, 79, 1603, 1330, 357, 198, 220, 220, 220, 651, 62, 1324, 33692, 11, 198, 220, 220, 220, 9058, 62, 6404, 2667, 11, 198, 8, 198, 198, 35, 4462, 2521, 796, 629, 19458, 62, 29891, 7, 29891, 10297, 28955, 198, 198, 1456, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 8, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 220, 1303, 23864, 2611, 25, 645, 3002, 198, 220, 220, 220, 1388, 3419, 198 ]
3
151
import numpy as np import tensorflow as tf
[ 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 628, 198 ]
3.214286
14
# -*- coding: utf-8 -*- # Copyright (C) 2011-2019 Mag. Christian Tanzer All rights reserved # Glasauergasse 32, A--1130 Wien, Austria. [email protected] # **************************************************************************** # This module is part of the package JNJ. # # This module is licensed under the terms of the BSD 3-Clause License # <http://www.c-tanzer.at/license/bsd_3c.html>. # **************************************************************************** # #++ # Name # JNJ.Media_Defaults # # Purpose # Provide defaults for media fragments in html/*.media # # Revision Dates # 1-Jan-2011 (CT) Creation # 2-Jan-2011 (CT) Creation continued # 4-Jan-2011 (CT) Creation continued.. # 14-Jan-2011 (CT) Use `GTW.Parameters.Definition` to allow lazy # references with `P` and `P_dict` # 22-Mar-2011 (CT) `afs` # 22-Mar-2011 (CT) `afs` continued # 29-Mar-2011 (CT) `afs` continued.. # 30-Mar-2011 (CT) `afs` continued... # 19-May-2011 (CT) `afs` continued.... # 16-Oct-2011 (MG) `Debugger` added # 24-Oct-2011 (CT) `color_spec_heading_rev` added # 24-Oct-2011 (CT) `tablesorter` added # 24-Nov-2011 (CT) Add `color_spec_selected_rev` # 23-Feb-2012 (CT) Add `color_status_{bad,good,missing}`, `afs.status_size` # 23-Feb-2012 (CT) Add `color_bg_bad` and `color_bg_missing` # 1-Mar-2012 (CT) Change `pg_main_max_width` from `Em (50)` to `Em (45)` # 8-Mar-2012 (CT) Add `color_bg_menu` # 10-Aug-2012 (CT) Add `color_spec_sub_heading`, `color_spec_term` # 7-Mar-2013 (CT) Add `border_added` and `border_deleted` # 3-Apr-2013 (CT) Add `Rule`, `Rule.clearfix` # 8-Apr-2013 (CT) Add lots of rules to `Rule`, e.g., `disabled`, `focus`... # 7-Jan-2014 (CT) Add some more muted colors # 21-Jan-2014 (CT) Add `breakpoint` # 20-Feb-2014 (CT) Add `Rule.pg_nav_show`, `.pg_nav_show_a` # 20-Feb-2014 (CT) Add `breakpoint.broad` and `.very_narrow` # 8-Apr-2014 (CT) Improve `clearfix` # 12-Apr-2014 (CT) Use `Border.P`, not `P_Border` # 15-May-2014 (CT) Add `color_lightest_grey` # 15-May-2014 (CT) Add `breakpoint.quite_narrow` # 9-Jul-2014 (CT) Add `Rule.rotate_45_left` # 26-Aug-2014 (CT) Add `pure` parameters # 3-Sep-2014 (CT) Add `Rule.hidden` # 3-Dec-2014 (CT) Add `color.alphabet_max_contrast_colors` and # `color.kellys_max_contrast_colors` # 16-Jan-2015 (CT) Change `nav_col.width` and `col_padding` to unit `Rem` # 23-Jan-2015 (CT) Add `color_jnd_grey`, reduce contrast of `color_spec_row1` # 23-Jan-2015 (CT) Factor `line_height*` parameters # 15-Feb-2015 (CT) Add `menu_icon` # 24-Mar-2015 (CT) Add `Rule.input_focus` # 8-Apr-2015 (CT) Change `font_family_print` to "serif" to void font # substitution by the printer # 2-Dec-2015 (CT) Fix `Rule.visited` # 2-Dec-2015 (CT) Change `nav_col.color_spec_link_current.background_color` # 31-Dec-2015 (CT) Change `pg_nav_show` to allow embedded rel-nav buttons # 11-Oct-2016 (CT) Import from `CHJ`, not `GTW` # 27-Dec-2016 (CT) Add `breakpoint.really_narrow` # 12-Jan-2017 (CT) Add `breakpoint.supports_two_column` # 13-Jan-2017 (CT) Add `body_margin`, `hidden_collapse`, `target_visible`, # `visible` # 16-Jan-2017 (CT) Add `border_double`, `border_simple_light` # 16-Jan-2017 (CT) Change `nav_col` to `nav.main`; modernize nav styling # 16-Jan-2017 (CT) Add `nav.header`, `nav.rel` # 19-Jan-2017 (CT) Add `Rule.main_nav_off`, `.main_nav_on` # 10-May-2017 (CT) Add system-specific fonts to `font_family_normal` # 28-May-2017 (CT) Add missing `"` in `font_family_normal` # 29-Mar-2018 (CT) Add `system-ui` to `font_family_normal` # 15-Apr-2019 (CT) Add `nord colors` # ««revision-date»»··· #-- from _CHJ._CSS.import_CSS import * from _CHJ.Parameters import \ ( Definition, P, P_dict, Rule_Definition , Rule, Rule_Attr, Rule_Child, Rule_Class, Rule_Pseudo, Rule_Sibling ) Color.formatter = RGB_X class Media_Defaults (Definition) : """Provide defaults for CSS fragments in html/*.css""" # end class color color_bg_bad = RGB_X ("#FFEEEE") color_bg_menu = RGB_X ("#DDEEFF") color_bg_missing = RGB_X ("#FFFFBB") color_desc = RGB_X ("#666666") color_focus = SVG_Color ("yellow") color_heading = RGB_X ("#34444D") color_heading_closed = RGB_X ("#56666E") color_heading_sub = RGB_X ("#78888F") color_jnd_grey = RGB_X ("#F8F8F8") color_lightest_grey = RGB_X ("#F6F6F6") color_lighter_grey = RGB_X ("#EDEDED") color_light_grey = RGB_X ("#DEDEDE") color_border_grey = RGB_X ("#CCCCCC") color_medium_grey = RGB_X ("#BEBEBE") color_half_grey = RGB_X ("#888888") color_dark_grey = RGB_X ("#444444") color_darker_grey = RGB_X ("#222222") color_selected = RGB_X ("#FF6633") color_status_bad = RGB_X ("#FF6666") color_status_good = RGB_X ("#AAEEAA") color_status_missing = RGB_X ("#FFDD00") color_target = RGB_X ("#FF6633") css_arrow_color = SVG_Color ("red") css_arrow_width = Em (1./2) block_margin_bottom = Em (1./2) body_margin = TRBL (Em (0.2), Em (0.5)) border_added = "1px solid " + P.color.m_red border_button = "2px outset " + P.color_medium_grey border_deleted = "1px solid " + P.color.m_blue border_double = "2px solid " + P.color_medium_grey border_double_light = "2px solid " + P.color_light_grey border_selected = "2px solid " + P.color_selected border_simple = "1px solid " + P.color_medium_grey border_simple_light = "1px solid " + P.color_light_grey button_spec = P_dict \ ( border = P.border_button , cursor = "pointer" , margin = TRBL0 (t = Em (1./4), b = Em (3./4)) , padding = TRBL (Em (0.5), Em (1.5)) , ** Border (radius = Px (10)) ) col_padding = Rem (0.3125) ### Px (5) background_color = P.color.p_white link_color = RGB_X ("#0000EE") no_link_color = RGB_X ("#333333") text_color = RGB_X ("#000033") visited_color = RGB_X ("#551A8B") # end class afs class breakpoint (Definition) : """Breakpoints for responsive rules""" really_narrow = P_dict \ ( max_width = Px (360) ) very_narrow = P_dict \ ( max_width = Px (420) ) quite_narrow = P_dict \ ( max_width = Px (480) ) narrow = P_dict \ ( max_width = Px (680) ) small_device = P_dict \ ( max_device_width = Px (767) ) supports_two_column = P_dict \ ( min_width = Px (768) ) broad = P_dict \ ( min_width = Px (1280) ) wide = P_dict \ ( min_width = Px (1600) ) # end class breakpoint # end class cal # end class menu_icon # end class nav class pure (Definition) : """Parameters of `pure` css as of version v0.4.2.""" input_focus_border_color = RGB_X ("#129FEA") label_width = Em (10.0) label_margin_right = Em (1.0) aside_indent = label_width + label_margin_right # end class pure # end class tablesorter # end class Rule color_spec_error = P_dict \ ( background_color = P.background_color , color = P.color_status_bad ) color_spec_gallery_heading = P_dict \ ( background_color = RGB_P (50, 75, 100) , color = P.nav.main.background_color ) color_spec_heading = P_dict \ ( background_color = P.background_color , color = P.color_selected ) color_spec_normal = P_dict \ ( background_color = P.background_color , color = P.text_color ) color_spec_pg_head = P_dict \ ( background_color = P.background_color , color = RGB_X ("#0200DE") ) color_spec_row1 = color_spec_meta = P_dict \ ( background_color = "transparent" , color = P.text_color ) color_spec_row2 = color_spec_message = P_dict \ ( background_color = P.color_lightest_grey , color = P.text_color ) color_spec_selected = P_dict \ ( background_color = SVG_Color ("yellow") , color = SVG_Color ("red") ) color_spec_selected_rev= P_dict \ ( background_color = SVG_Color ("red") , color = SVG_Color ("yellow") ) color_spec_strong = P_dict \ ( background_color = P.background_color , color = SVG_Color ("blue") ) color_spec_sub_heading = P_dict \ ( background_color = P.background_color , color = P.color_half_grey ) color_spec_term = P_dict \ ( background_color = RGB_X ("#E6E6E6") , color = P.color_dark_grey ) del_spec = P_dict \ ( text_decoration = "line-through" # XXX ??? ) font_family_normal = \ ( """"system-ui","-apple-system", BlinkMacSystemFont, """ """"Segoe UI", Roboto, "Fira Sans", """ """"Lucida Grande", verdana, sans-serif""" ) font_family_pre = \ """"Lucida Sans Typewriter", "Lucida Console", "Courier New", Courier, monospace""" font_family_print = "serif" ### Don't use specific fonts for `print` because font substitution done ### by a printer can look terribly ugly font_spec_normal = P_dict \ ( font_family = P.font_family_normal , font_style = "normal" , font_weight = "normal" , line_height = P.line_height_normal ) font_spec_print = P_dict \ ( font_spec_normal , font_family = P.font_family_print ) font_spec_em = P_dict \ ( font_spec_normal , font_weight = "bold" ) font_spec_pre = P_dict \ ( font_spec_normal , font_family = P.font_family_pre ) grid_table_border = "3px ridge gray" h1_font_size = Percent (125) h1_font_weight = "bold" hbox_spec = P_dict \ ( display = "block" , overflow = "hidden" ) hr_spec = P_dict \ ( border = 0 , border_top = "1px solid #CCC" , display = "block" , height = Px (1) , margin = TRBL (Em (1), 0) , padding = 0 ) input_margin = TRBL (Em (0.1), 0) input_padding = Em (0.2) ins_spec = P_dict \ ( text_decoration = "none" # XXX ??? ) line_height_heading = 2.00 line_height_larger = 1.875 line_height_normal = 1.44 line_height_input = 1.143 outline_focus = "2px solid " + P.color_focus outline_target = "2px dotted " + P.color_target pg_body_margin_lr = Em (3.6) pg_head_height = "auto" pg_header_nav_height = Rem (3.5) pg_main_max_width = Em (45) pg_main_min_width = Em (15) pg_short_nav_font_size = Rem (1.20) pg_short_nav_top = Em (3) thumbnail_size = Px (155) thumbnail_selected_color = P.color_selected # end class Debugger # end class Media_Defaults ### __END__ JNJ.Media_Defaults
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 34, 8, 2813, 12, 23344, 2944, 13, 4302, 11818, 9107, 1439, 2489, 10395, 198, 2, 21931, 559, 6422, 21612, 3933, 11, 317, 438, 1157, 1270, 370, 2013, 11, 17322, 13, 25706, 9107, 31, 46737, 13, 1073, 13, 265, 198, 2, 41906, 17174, 46068, 198, 2, 770, 8265, 318, 636, 286, 262, 5301, 449, 41074, 13, 198, 2, 198, 2, 770, 8265, 318, 11971, 739, 262, 2846, 286, 262, 347, 10305, 513, 12, 2601, 682, 13789, 198, 2, 1279, 4023, 1378, 2503, 13, 66, 12, 38006, 9107, 13, 265, 14, 43085, 14, 1443, 67, 62, 18, 66, 13, 6494, 28401, 198, 2, 41906, 17174, 46068, 198, 2, 198, 2, 4880, 198, 2, 6530, 198, 2, 220, 220, 220, 449, 41074, 13, 13152, 62, 7469, 13185, 198, 2, 198, 2, 32039, 198, 2, 220, 220, 220, 44290, 26235, 329, 2056, 21441, 287, 27711, 15211, 13, 11431, 198, 2, 198, 2, 46604, 44712, 198, 2, 220, 220, 220, 220, 352, 12, 12128, 12, 9804, 357, 4177, 8, 21582, 198, 2, 220, 220, 220, 220, 362, 12, 12128, 12, 9804, 357, 4177, 8, 21582, 3767, 198, 2, 220, 220, 220, 220, 604, 12, 12128, 12, 9804, 357, 4177, 8, 21582, 3767, 492, 198, 2, 220, 220, 220, 1478, 12, 12128, 12, 9804, 357, 4177, 8, 5765, 4600, 19555, 54, 13, 48944, 13, 36621, 63, 284, 1249, 16931, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10288, 351, 4600, 47, 63, 290, 4600, 47, 62, 11600, 63, 198, 2, 220, 220, 220, 2534, 12, 7676, 12, 9804, 357, 4177, 8, 4600, 1878, 82, 63, 198, 2, 220, 220, 220, 2534, 12, 7676, 12, 9804, 357, 4177, 8, 4600, 1878, 82, 63, 3767, 198, 2, 220, 220, 220, 2808, 12, 7676, 12, 9804, 357, 4177, 8, 4600, 1878, 82, 63, 3767, 492, 198, 2, 220, 220, 220, 1542, 12, 7676, 12, 9804, 357, 4177, 8, 4600, 1878, 82, 63, 3767, 986, 198, 2, 220, 220, 220, 678, 12, 6747, 12, 9804, 357, 4177, 8, 4600, 1878, 82, 63, 3767, 1106, 198, 2, 220, 220, 220, 1467, 12, 12349, 12, 9804, 357, 20474, 8, 4600, 27509, 1362, 63, 2087, 198, 2, 220, 220, 220, 1987, 12, 12349, 12, 9804, 357, 4177, 8, 4600, 8043, 62, 16684, 62, 33878, 62, 18218, 63, 2087, 198, 2, 220, 220, 220, 1987, 12, 12349, 12, 9804, 357, 4177, 8, 4600, 83, 2977, 4337, 63, 2087, 198, 2, 220, 220, 220, 1987, 12, 20795, 12, 9804, 357, 4177, 8, 3060, 4600, 8043, 62, 16684, 62, 34213, 62, 18218, 63, 198, 2, 220, 220, 220, 2242, 12, 15146, 12, 6999, 357, 4177, 8, 3060, 4600, 8043, 62, 13376, 23330, 14774, 11, 11274, 11, 45688, 92, 47671, 4600, 1878, 82, 13, 13376, 62, 7857, 63, 198, 2, 220, 220, 220, 2242, 12, 15146, 12, 6999, 357, 4177, 8, 3060, 4600, 8043, 62, 35904, 62, 14774, 63, 290, 4600, 8043, 62, 35904, 62, 45688, 63, 198, 2, 220, 220, 220, 220, 352, 12, 7676, 12, 6999, 357, 4177, 8, 9794, 4600, 6024, 62, 12417, 62, 9806, 62, 10394, 63, 422, 4600, 10161, 357, 1120, 8, 63, 284, 4600, 10161, 357, 2231, 8, 63, 198, 2, 220, 220, 220, 220, 807, 12, 7676, 12, 6999, 357, 4177, 8, 3060, 4600, 8043, 62, 35904, 62, 26272, 63, 198, 2, 220, 220, 220, 838, 12, 12512, 12, 6999, 357, 4177, 8, 3060, 4600, 8043, 62, 16684, 62, 7266, 62, 33878, 47671, 4600, 8043, 62, 16684, 62, 4354, 63, 198, 2, 220, 220, 220, 220, 767, 12, 7676, 12, 6390, 357, 4177, 8, 3060, 4600, 20192, 62, 29373, 63, 290, 4600, 20192, 62, 2934, 33342, 63, 198, 2, 220, 220, 220, 220, 513, 12, 13680, 12, 6390, 357, 4177, 8, 3060, 4600, 31929, 47671, 4600, 31929, 13, 20063, 13049, 63, 198, 2, 220, 220, 220, 220, 807, 12, 13680, 12, 6390, 357, 4177, 8, 3060, 6041, 286, 3173, 284, 4600, 31929, 47671, 304, 13, 70, 1539, 4600, 47730, 47671, 4600, 37635, 63, 986, 198, 2, 220, 220, 220, 220, 767, 12, 12128, 12, 4967, 357, 4177, 8, 3060, 617, 517, 38952, 7577, 198, 2, 220, 220, 220, 2310, 12, 12128, 12, 4967, 357, 4177, 8, 3060, 4600, 9032, 4122, 63, 198, 2, 220, 220, 220, 1160, 12, 15146, 12, 4967, 357, 4177, 8, 3060, 4600, 31929, 13, 6024, 62, 28341, 62, 12860, 47671, 4600, 13, 6024, 62, 28341, 62, 12860, 62, 64, 63, 198, 2, 220, 220, 220, 1160, 12, 15146, 12, 4967, 357, 4177, 8, 3060, 4600, 9032, 4122, 13, 36654, 63, 290, 4600, 13, 548, 62, 77, 6018, 63, 198, 2, 220, 220, 220, 220, 807, 12, 13680, 12, 4967, 357, 4177, 8, 20580, 4600, 20063, 13049, 63, 198, 2, 220, 220, 220, 1105, 12, 13680, 12, 4967, 357, 4177, 8, 5765, 4600, 34189, 13, 47, 47671, 407, 4600, 47, 62, 34189, 63, 198, 2, 220, 220, 220, 1315, 12, 6747, 12, 4967, 357, 4177, 8, 3060, 4600, 8043, 62, 2971, 395, 62, 49502, 63, 198, 2, 220, 220, 220, 1315, 12, 6747, 12, 4967, 357, 4177, 8, 3060, 4600, 9032, 4122, 13, 37121, 62, 77, 6018, 63, 198, 2, 220, 220, 220, 220, 860, 12, 16980, 12, 4967, 357, 4177, 8, 3060, 4600, 31929, 13, 10599, 378, 62, 2231, 62, 9464, 63, 198, 2, 220, 220, 220, 2608, 12, 12512, 12, 4967, 357, 4177, 8, 3060, 4600, 37424, 63, 10007, 198, 2, 220, 220, 220, 220, 513, 12, 19117, 12, 4967, 357, 4177, 8, 3060, 4600, 31929, 13, 30342, 63, 198, 2, 220, 220, 220, 220, 513, 12, 10707, 12, 4967, 357, 4177, 8, 3060, 4600, 8043, 13, 17307, 8380, 62, 9806, 62, 3642, 5685, 62, 4033, 669, 63, 290, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4600, 8043, 13, 17164, 893, 62, 9806, 62, 3642, 5685, 62, 4033, 669, 63, 198, 2, 220, 220, 220, 1467, 12, 12128, 12, 4626, 357, 4177, 8, 9794, 4600, 28341, 62, 4033, 13, 10394, 63, 290, 4600, 4033, 62, 39231, 63, 284, 4326, 4600, 8413, 63, 198, 2, 220, 220, 220, 2242, 12, 12128, 12, 4626, 357, 4177, 8, 3060, 4600, 8043, 62, 73, 358, 62, 49502, 47671, 4646, 6273, 286, 4600, 8043, 62, 16684, 62, 808, 16, 63, 198, 2, 220, 220, 220, 2242, 12, 12128, 12, 4626, 357, 4177, 8, 27929, 4600, 1370, 62, 17015, 9, 63, 10007, 198, 2, 220, 220, 220, 1315, 12, 15146, 12, 4626, 357, 4177, 8, 3060, 4600, 26272, 62, 4749, 63, 198, 2, 220, 220, 220, 1987, 12, 7676, 12, 4626, 357, 4177, 8, 3060, 4600, 31929, 13, 15414, 62, 37635, 63, 198, 2, 220, 220, 220, 220, 807, 12, 13680, 12, 4626, 357, 4177, 8, 9794, 4600, 10331, 62, 17989, 62, 4798, 63, 284, 366, 2655, 361, 1, 284, 7951, 10369, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32097, 416, 262, 20632, 198, 2, 220, 220, 220, 220, 362, 12, 10707, 12, 4626, 357, 4177, 8, 13268, 4600, 31929, 13, 4703, 863, 63, 198, 2, 220, 220, 220, 220, 362, 12, 10707, 12, 4626, 357, 4177, 8, 9794, 4600, 28341, 62, 4033, 13, 8043, 62, 16684, 62, 8726, 62, 14421, 13, 25249, 62, 8043, 63, 198, 2, 220, 220, 220, 3261, 12, 10707, 12, 4626, 357, 4177, 8, 9794, 4600, 6024, 62, 28341, 62, 12860, 63, 284, 1249, 14553, 823, 12, 28341, 12163, 198, 2, 220, 220, 220, 1367, 12, 12349, 12, 5304, 357, 4177, 8, 17267, 422, 4600, 3398, 41, 47671, 407, 4600, 19555, 54, 63, 198, 2, 220, 220, 220, 2681, 12, 10707, 12, 5304, 357, 4177, 8, 3060, 4600, 9032, 4122, 13, 27485, 62, 77, 6018, 63, 198, 2, 220, 220, 220, 1105, 12, 12128, 12, 5539, 357, 4177, 8, 3060, 4600, 9032, 4122, 13, 18608, 2096, 62, 11545, 62, 28665, 63, 198, 2, 220, 220, 220, 1511, 12, 12128, 12, 5539, 357, 4177, 8, 3060, 4600, 2618, 62, 36153, 47671, 4600, 30342, 62, 26000, 7512, 47671, 4600, 16793, 62, 23504, 47671, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4600, 23504, 63, 198, 2, 220, 220, 220, 1467, 12, 12128, 12, 5539, 357, 4177, 8, 3060, 4600, 20192, 62, 23352, 47671, 4600, 20192, 62, 36439, 62, 2971, 63, 198, 2, 220, 220, 220, 1467, 12, 12128, 12, 5539, 357, 4177, 8, 9794, 4600, 28341, 62, 4033, 63, 284, 4600, 28341, 13, 12417, 63, 26, 3660, 1096, 6812, 35517, 198, 2, 220, 220, 220, 1467, 12, 12128, 12, 5539, 357, 4177, 8, 3060, 4600, 28341, 13, 25677, 47671, 4600, 28341, 13, 2411, 63, 198, 2, 220, 220, 220, 678, 12, 12128, 12, 5539, 357, 4177, 8, 3060, 4600, 31929, 13, 12417, 62, 28341, 62, 2364, 47671, 4600, 13, 12417, 62, 28341, 62, 261, 63, 198, 2, 220, 220, 220, 838, 12, 6747, 12, 5539, 357, 4177, 8, 3060, 1080, 12, 11423, 26806, 284, 4600, 10331, 62, 17989, 62, 11265, 63, 198, 2, 220, 220, 220, 2579, 12, 6747, 12, 5539, 357, 4177, 8, 3060, 4814, 4600, 1, 63, 287, 4600, 10331, 62, 17989, 62, 11265, 63, 198, 2, 220, 220, 220, 2808, 12, 7676, 12, 7908, 357, 4177, 8, 3060, 4600, 10057, 12, 9019, 63, 284, 4600, 10331, 62, 17989, 62, 11265, 63, 198, 2, 220, 220, 220, 1315, 12, 13680, 12, 23344, 357, 4177, 8, 3060, 4600, 77, 585, 7577, 63, 198, 2, 220, 220, 220, 21110, 24328, 260, 10178, 12, 4475, 17730, 17730, 35147, 9129, 198, 2, 438, 198, 198, 6738, 4808, 3398, 41, 13557, 49155, 13, 11748, 62, 49155, 1330, 1635, 198, 6738, 4808, 3398, 41, 13, 48944, 220, 220, 220, 220, 220, 1330, 3467, 198, 220, 220, 220, 357, 30396, 11, 350, 11, 350, 62, 11600, 11, 14330, 62, 36621, 198, 220, 220, 220, 837, 14330, 11, 14330, 62, 8086, 81, 11, 14330, 62, 16424, 11, 14330, 62, 9487, 11, 14330, 62, 47, 325, 12003, 11, 14330, 62, 50, 27448, 198, 220, 220, 220, 1267, 198, 198, 10258, 13, 687, 1436, 796, 25228, 62, 55, 198, 198, 4871, 6343, 62, 7469, 13185, 357, 36621, 8, 1058, 198, 220, 220, 220, 37227, 15946, 485, 26235, 329, 17391, 21441, 287, 27711, 15211, 13, 25471, 37811, 628, 220, 220, 220, 1303, 886, 1398, 3124, 628, 220, 220, 220, 3124, 62, 35904, 62, 14774, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 5777, 35039, 4943, 198, 220, 220, 220, 3124, 62, 35904, 62, 26272, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 16458, 6500, 5777, 4943, 198, 220, 220, 220, 3124, 62, 35904, 62, 45688, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 29312, 15199, 4943, 198, 220, 220, 220, 3124, 62, 20147, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 19060, 2791, 4943, 198, 220, 220, 220, 3124, 62, 37635, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 45809, 62, 10258, 5855, 36022, 4943, 198, 220, 220, 220, 3124, 62, 33878, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 33535, 2598, 35, 4943, 198, 220, 220, 220, 3124, 62, 33878, 62, 20225, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 20, 19060, 36, 4943, 198, 220, 220, 220, 3124, 62, 33878, 62, 7266, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 22, 3459, 3459, 37, 4943, 198, 220, 220, 220, 3124, 62, 73, 358, 62, 49502, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 37, 23, 37, 23, 37, 23, 4943, 198, 220, 220, 220, 3124, 62, 2971, 395, 62, 49502, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 37, 21, 37, 21, 37, 21, 4943, 198, 220, 220, 220, 3124, 62, 75, 4799, 62, 49502, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 1961, 1961, 1961, 4943, 198, 220, 220, 220, 3124, 62, 2971, 62, 49502, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 35, 1961, 1961, 36, 4943, 198, 220, 220, 220, 3124, 62, 20192, 62, 49502, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 4093, 4093, 4093, 4943, 198, 220, 220, 220, 3124, 62, 24132, 62, 49502, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 12473, 12473, 12473, 4943, 198, 220, 220, 220, 3124, 62, 13959, 62, 49502, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 3459, 3459, 3459, 4943, 198, 220, 220, 220, 3124, 62, 21953, 62, 49502, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 2598, 2598, 2598, 4943, 198, 220, 220, 220, 3124, 62, 21953, 263, 62, 49502, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 1828, 1828, 1828, 4943, 198, 220, 220, 220, 3124, 62, 34213, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 5777, 2791, 2091, 4943, 198, 220, 220, 220, 3124, 62, 13376, 62, 14774, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 5777, 19060, 4943, 198, 220, 220, 220, 3124, 62, 13376, 62, 11274, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 3838, 6500, 3838, 4943, 198, 220, 220, 220, 3124, 62, 13376, 62, 45688, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 5777, 16458, 405, 4943, 198, 220, 220, 220, 3124, 62, 16793, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 5777, 2791, 2091, 4943, 628, 220, 220, 220, 269, 824, 62, 6018, 62, 8043, 220, 220, 220, 220, 220, 220, 220, 796, 45809, 62, 10258, 5855, 445, 4943, 198, 220, 220, 220, 269, 824, 62, 6018, 62, 10394, 220, 220, 220, 220, 220, 220, 220, 796, 2295, 357, 16, 19571, 17, 8, 628, 220, 220, 220, 2512, 62, 36153, 62, 22487, 220, 220, 220, 796, 2295, 357, 16, 19571, 17, 8, 628, 220, 220, 220, 1767, 62, 36153, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7579, 9148, 357, 10161, 357, 15, 13, 17, 828, 2295, 357, 15, 13, 20, 4008, 628, 220, 220, 220, 4865, 62, 29373, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 16, 8416, 4735, 366, 220, 1343, 350, 13, 8043, 13, 76, 62, 445, 198, 220, 220, 220, 4865, 62, 16539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 17, 8416, 30761, 366, 1343, 350, 13, 8043, 62, 24132, 62, 49502, 198, 220, 220, 220, 4865, 62, 2934, 33342, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 16, 8416, 4735, 366, 220, 1343, 350, 13, 8043, 13, 76, 62, 17585, 198, 220, 220, 220, 4865, 62, 23352, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 17, 8416, 4735, 366, 220, 1343, 350, 13, 8043, 62, 24132, 62, 49502, 198, 220, 220, 220, 4865, 62, 23352, 62, 2971, 220, 220, 220, 796, 366, 17, 8416, 4735, 366, 220, 1343, 350, 13, 8043, 62, 2971, 62, 49502, 198, 220, 220, 220, 4865, 62, 34213, 220, 220, 220, 220, 220, 220, 220, 796, 366, 17, 8416, 4735, 366, 220, 1343, 350, 13, 8043, 62, 34213, 198, 220, 220, 220, 4865, 62, 36439, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 16, 8416, 4735, 366, 220, 1343, 350, 13, 8043, 62, 24132, 62, 49502, 198, 220, 220, 220, 4865, 62, 36439, 62, 2971, 220, 220, 220, 796, 366, 16, 8416, 4735, 366, 220, 1343, 350, 13, 8043, 62, 2971, 62, 49502, 628, 220, 220, 220, 4936, 62, 16684, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4865, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 13, 20192, 62, 16539, 198, 220, 220, 220, 220, 220, 220, 220, 837, 23493, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 29536, 1, 198, 220, 220, 220, 220, 220, 220, 220, 837, 10330, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7579, 9148, 15, 357, 83, 796, 2295, 357, 16, 19571, 19, 828, 275, 796, 2295, 357, 18, 19571, 19, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 837, 24511, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7579, 9148, 220, 357, 10161, 357, 15, 13, 20, 828, 2295, 357, 16, 13, 20, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 837, 12429, 15443, 357, 42172, 796, 350, 87, 357, 940, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 951, 62, 39231, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 3982, 357, 15, 13, 18, 11623, 8, 44386, 350, 87, 357, 20, 8, 628, 220, 220, 220, 4469, 62, 8043, 220, 220, 220, 220, 220, 220, 796, 350, 13, 8043, 13, 79, 62, 11186, 198, 220, 220, 220, 2792, 62, 8043, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 2388, 6500, 4943, 198, 220, 220, 220, 645, 62, 8726, 62, 8043, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 24840, 2091, 4943, 198, 220, 220, 220, 2420, 62, 8043, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 2388, 2091, 4943, 198, 220, 220, 220, 8672, 62, 8043, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 43697, 32, 23, 33, 4943, 628, 220, 220, 220, 1303, 886, 1398, 6580, 82, 628, 220, 220, 220, 1398, 2270, 4122, 357, 36621, 8, 1058, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 31737, 13033, 329, 21802, 3173, 37811, 628, 220, 220, 220, 220, 220, 220, 220, 1107, 62, 77, 6018, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 3509, 62, 10394, 220, 220, 220, 220, 220, 220, 220, 796, 350, 87, 357, 15277, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 845, 62, 77, 6018, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 3509, 62, 10394, 220, 220, 220, 220, 220, 220, 220, 796, 350, 87, 357, 27211, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 2407, 62, 77, 6018, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 3509, 62, 10394, 220, 220, 220, 220, 220, 220, 220, 796, 350, 87, 357, 22148, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 7135, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 3509, 62, 10394, 220, 220, 220, 220, 220, 220, 220, 796, 350, 87, 357, 37397, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 1402, 62, 25202, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 3509, 62, 25202, 62, 10394, 796, 350, 87, 357, 32059, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 6971, 62, 11545, 62, 28665, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 949, 62, 10394, 220, 220, 220, 220, 220, 220, 220, 796, 350, 87, 357, 30610, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 3154, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 949, 62, 10394, 220, 220, 220, 220, 220, 220, 220, 796, 350, 87, 357, 1065, 1795, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 3094, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 949, 62, 10394, 220, 220, 220, 220, 220, 220, 220, 796, 350, 87, 357, 36150, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 1303, 886, 1398, 2270, 4122, 628, 220, 220, 220, 1303, 886, 1398, 2386, 628, 220, 220, 220, 1303, 886, 1398, 6859, 62, 4749, 628, 220, 220, 220, 1303, 886, 1398, 6812, 628, 220, 220, 220, 1398, 5899, 357, 36621, 8, 1058, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 48944, 286, 4600, 37424, 63, 269, 824, 355, 286, 2196, 410, 15, 13, 19, 13, 17, 526, 15931, 628, 220, 220, 220, 220, 220, 220, 220, 5128, 62, 37635, 62, 20192, 62, 8043, 796, 25228, 62, 55, 5855, 2, 18741, 15112, 32, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 6167, 62, 10394, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2295, 357, 940, 13, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6167, 62, 36153, 62, 3506, 220, 220, 220, 220, 220, 220, 796, 2295, 357, 16, 13, 15, 8, 628, 220, 220, 220, 220, 220, 220, 220, 7263, 62, 521, 298, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 6167, 62, 10394, 1343, 6167, 62, 36153, 62, 3506, 628, 220, 220, 220, 1303, 886, 1398, 5899, 628, 220, 220, 220, 1303, 886, 1398, 8893, 4337, 628, 220, 220, 220, 1303, 886, 1398, 14330, 628, 220, 220, 220, 3124, 62, 16684, 62, 18224, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 350, 13, 25249, 62, 8043, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 13, 8043, 62, 13376, 62, 14774, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3124, 62, 16684, 62, 24460, 62, 33878, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 25228, 62, 47, 220, 220, 220, 220, 357, 1120, 11, 5441, 11, 1802, 8, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 13, 28341, 13, 12417, 13, 25249, 62, 8043, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3124, 62, 16684, 62, 33878, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 350, 13, 25249, 62, 8043, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 13, 8043, 62, 34213, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3124, 62, 16684, 62, 11265, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 350, 13, 25249, 62, 8043, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 13, 5239, 62, 8043, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3124, 62, 16684, 62, 6024, 62, 2256, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 350, 13, 25249, 62, 8043, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 25228, 62, 55, 220, 220, 220, 220, 5855, 2, 44613, 7206, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3124, 62, 16684, 62, 808, 16, 220, 220, 220, 220, 220, 220, 220, 796, 3124, 62, 16684, 62, 28961, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 366, 7645, 8000, 1, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 13, 5239, 62, 8043, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3124, 62, 16684, 62, 808, 17, 220, 220, 220, 220, 220, 220, 220, 796, 3124, 62, 16684, 62, 20500, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 350, 13, 8043, 62, 2971, 395, 62, 49502, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 13, 5239, 62, 8043, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3124, 62, 16684, 62, 34213, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 45809, 62, 10258, 5855, 36022, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 45809, 62, 10258, 5855, 445, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3124, 62, 16684, 62, 34213, 62, 18218, 28, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 45809, 62, 10258, 5855, 445, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 45809, 62, 10258, 5855, 36022, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3124, 62, 16684, 62, 11576, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 350, 13, 25249, 62, 8043, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 45809, 62, 10258, 5855, 17585, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3124, 62, 16684, 62, 7266, 62, 33878, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 350, 13, 25249, 62, 8043, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 13, 8043, 62, 13959, 62, 49502, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3124, 62, 16684, 62, 4354, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4469, 62, 8043, 796, 25228, 62, 55, 5855, 2, 36, 21, 36, 21, 36, 21, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3124, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 13, 8043, 62, 21953, 62, 49502, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 1619, 62, 16684, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 2420, 62, 12501, 6944, 220, 796, 366, 1370, 12, 9579, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 27713, 34913, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 10369, 62, 17989, 62, 11265, 220, 220, 220, 220, 796, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 13538, 15931, 10057, 12, 9019, 2430, 12, 18040, 12, 10057, 1600, 41732, 14155, 11964, 23252, 11, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13538, 15931, 41030, 2577, 12454, 1600, 3851, 2069, 11, 366, 37, 8704, 20845, 1600, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13538, 15931, 22946, 3755, 29073, 1600, 3326, 67, 2271, 11, 38078, 12, 2655, 361, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 10369, 62, 17989, 62, 3866, 220, 220, 220, 220, 220, 220, 220, 796, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 13538, 15931, 22946, 3755, 20845, 17134, 413, 43407, 1600, 366, 22946, 3755, 24371, 1600, 366, 34, 280, 5277, 968, 1600, 34268, 11, 937, 24912, 37811, 198, 220, 220, 220, 10369, 62, 17989, 62, 4798, 220, 220, 220, 220, 220, 796, 366, 2655, 361, 1, 198, 220, 220, 220, 220, 220, 220, 220, 44386, 2094, 470, 779, 2176, 26806, 329, 4600, 4798, 63, 780, 10369, 32097, 1760, 198, 220, 220, 220, 220, 220, 220, 220, 44386, 416, 257, 20632, 460, 804, 22121, 13400, 198, 220, 220, 220, 10369, 62, 16684, 62, 11265, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 10369, 62, 17989, 220, 220, 220, 220, 220, 796, 350, 13, 10331, 62, 17989, 62, 11265, 198, 220, 220, 220, 220, 220, 220, 220, 837, 10369, 62, 7635, 220, 220, 220, 220, 220, 220, 796, 366, 11265, 1, 198, 220, 220, 220, 220, 220, 220, 220, 837, 10369, 62, 6551, 220, 220, 220, 220, 220, 796, 366, 11265, 1, 198, 220, 220, 220, 220, 220, 220, 220, 837, 1627, 62, 17015, 220, 220, 220, 220, 220, 796, 350, 13, 1370, 62, 17015, 62, 11265, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 10369, 62, 16684, 62, 4798, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 10369, 62, 16684, 62, 11265, 198, 220, 220, 220, 220, 220, 220, 220, 837, 10369, 62, 17989, 220, 220, 220, 220, 220, 796, 350, 13, 10331, 62, 17989, 62, 4798, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 10369, 62, 16684, 62, 368, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 10369, 62, 16684, 62, 11265, 198, 220, 220, 220, 220, 220, 220, 220, 837, 10369, 62, 6551, 220, 220, 220, 220, 220, 796, 366, 36575, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 10369, 62, 16684, 62, 3866, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 10369, 62, 16684, 62, 11265, 198, 220, 220, 220, 220, 220, 220, 220, 837, 10369, 62, 17989, 220, 220, 220, 220, 220, 796, 350, 13, 10331, 62, 17989, 62, 3866, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 10706, 62, 11487, 62, 20192, 220, 220, 220, 220, 220, 796, 366, 18, 8416, 32525, 12768, 1, 628, 220, 220, 220, 289, 16, 62, 10331, 62, 7857, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 22512, 357, 11623, 8, 198, 220, 220, 220, 289, 16, 62, 10331, 62, 6551, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 36575, 1, 628, 220, 220, 220, 289, 3524, 62, 16684, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 3359, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 9967, 1, 198, 220, 220, 220, 220, 220, 220, 220, 837, 30343, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 30342, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 39436, 62, 16684, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 4865, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 837, 4865, 62, 4852, 220, 220, 220, 220, 220, 220, 796, 366, 16, 8416, 4735, 1303, 46361, 1, 198, 220, 220, 220, 220, 220, 220, 220, 837, 3359, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 9967, 1, 198, 220, 220, 220, 220, 220, 220, 220, 837, 6001, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 87, 357, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 837, 10330, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7579, 9148, 357, 10161, 357, 16, 828, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 837, 24511, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 5128, 62, 36153, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7579, 9148, 357, 10161, 357, 15, 13, 16, 828, 657, 8, 198, 220, 220, 220, 5128, 62, 39231, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2295, 357, 15, 13, 17, 8, 628, 220, 220, 220, 1035, 62, 16684, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 62, 11600, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 357, 2420, 62, 12501, 6944, 220, 796, 366, 23108, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 27713, 34913, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 1627, 62, 17015, 62, 33878, 220, 220, 220, 796, 362, 13, 405, 198, 220, 220, 220, 1627, 62, 17015, 62, 15521, 263, 220, 220, 220, 220, 796, 352, 13, 31360, 198, 220, 220, 220, 1627, 62, 17015, 62, 11265, 220, 220, 220, 220, 796, 352, 13, 2598, 198, 220, 220, 220, 1627, 62, 17015, 62, 15414, 220, 220, 220, 220, 220, 796, 352, 13, 21139, 628, 220, 220, 220, 19001, 62, 37635, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 17, 8416, 4735, 366, 220, 220, 1343, 350, 13, 8043, 62, 37635, 198, 220, 220, 220, 19001, 62, 16793, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 17, 8416, 38745, 366, 220, 1343, 350, 13, 8043, 62, 16793, 628, 220, 220, 220, 23241, 62, 2618, 62, 36153, 62, 14050, 220, 220, 220, 220, 220, 796, 2295, 357, 18, 13, 21, 8, 198, 220, 220, 220, 23241, 62, 2256, 62, 17015, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 23736, 1, 198, 220, 220, 220, 23241, 62, 25677, 62, 28341, 62, 17015, 220, 220, 796, 3982, 357, 18, 13, 20, 8, 198, 220, 220, 220, 23241, 62, 12417, 62, 9806, 62, 10394, 220, 220, 220, 220, 220, 796, 2295, 357, 2231, 8, 198, 220, 220, 220, 23241, 62, 12417, 62, 1084, 62, 10394, 220, 220, 220, 220, 220, 796, 2295, 357, 1314, 8, 198, 220, 220, 220, 23241, 62, 19509, 62, 28341, 62, 10331, 62, 7857, 796, 3982, 357, 16, 13, 1238, 8, 198, 220, 220, 220, 23241, 62, 19509, 62, 28341, 62, 4852, 220, 220, 220, 220, 220, 220, 796, 2295, 357, 18, 8, 628, 220, 220, 220, 40901, 62, 7857, 220, 220, 220, 220, 220, 220, 220, 220, 796, 350, 87, 357, 18742, 8, 198, 220, 220, 220, 40901, 62, 34213, 62, 8043, 796, 350, 13, 8043, 62, 34213, 628, 220, 220, 220, 1303, 886, 1398, 31687, 1362, 198, 198, 2, 886, 1398, 6343, 62, 7469, 13185, 198, 198, 21017, 11593, 10619, 834, 449, 41074, 13, 13152, 62, 7469, 13185, 198 ]
1.984519
6,201
#list comprehension cubes = [cube**3 for cube in range(1,11)] print(cubes)
[ 2, 4868, 35915, 198, 198, 66, 29080, 796, 685, 40296, 1174, 18, 329, 23441, 287, 2837, 7, 16, 11, 1157, 15437, 198, 4798, 7, 66, 29080, 8, 198 ]
2.714286
28
import tkinter as tk from tkinter import messagebox, filedialog, simpledialog, scrolledtext from tkinter import PhotoImage from tkinter import ttk import subprocess from threading import Thread import time import tempfile from os import path import sys try: from . import settings except ImportError: # Running from source import settings # Contains the graphics featured on the buttons graphics_directory = path.join(path.dirname(__file__), "graphics") ''' Hiearchy of Tkinter frames: GuiWindow.master = tk.Tk() GuiWindow(ttk.Frame) BatchingFrame.frame(ttk.Frame) BatchingFrame.vbar(ttk.Scrollbar) BatchingFrame(tk.Canvas) BatchingFrame.canvas_content(tk.Frame) Note: this is an amalgamation of code from different projects. It could probably be simplified dramatically. ''' class GuiWindow(ttk.Frame): ''' Highest level window and frame. Here we set the name and size of the window, and prepare for hosting the actual content of the program. If unittest is set to True, we don't start the mainloop, but wait for a script to trigger events and manually update the GUI. ''' class BatchingFrame(tk.Canvas): ''' This is the place where the widgets corresponding to scripts live. It is also the brain of the program, and controls the state of the different scripts, the launching of scripts, etc... ''' def remove_all(self): ''' Removes all the Scripts, from the last to the first, excluding the topmost InsertWidget ''' for position in range(len(self.scripts) - 1, 0, -1): self.remove(position) def build_output_window(self): ''' Shows the output window which contains the continuously updated output of the currently running script (stdout and stderr). Or, if no script is running, contains the content of the latest run script. ''' if self.output_window_visible: # the output is already visible # in this case bring the window to the top self.output_window.lift() self.output_window.attributes("-topmost", True) self.output_window.attributes("-topmost", False) return # Open up the output window self.output_window = tk.Toplevel(self.master) self.output_window.title("Script queuer | Output") self.output_window.geometry("400x400") # Keep track of the window being visible self.output_window_visible = True # Window size cannot be reduced beyond # a certain size self.output_window.minsize(200, 150) # When closing the window run self.on_closing_output_window self.output_window.protocol("WM_DELETE_WINDOW", self.on_closing_output_window) # Put a scrollable text region in it, and make is stretchable self.output_text_widget = ScrolledLabel(self.output_window) self.output_text_widget.grid(column=0, row=0, sticky='news') self.output_window.rowconfigure(0, weight=1) self.output_window.columnconfigure(0, weight=1) # Add a button to toggle following the output / autoscrolling b = ToggleAutoscrollButton(self.output_window, text='Autoscroll') b.grid(column=0, row=1, sticky='nws') if self.running_script is not None: # Is there is no running script, # show the log of the last run script self.output_text_widget.insert(self.running_script.log) self.scroll_output_window_down() def on_closing_output_window(self): ''' Function called when the output window is closed ''' # Keep track of the window state self.output_window_visible = False # Close the window self.output_window.destroy() def insert(self, position, script_path=None): ''' Will insert a new script after the row indicated by the input integer `position`. Optionally one can specify the script path (for unittesting purposes). ''' if script_path is None: # If no script path was provided # prompt user for file name if self.latest_searched_directory == None: script_path = filedialog.askopenfilename() else: # If a script was already inserted, # open the file prompt at the same directory script_path = filedialog.askopenfilename( initialdir=self.latest_searched_directory) if script_path == "": # User cancelled return # keep track of the directory the user navigated to self.latest_searched_directory = path.dirname(script_path) # Creates a new script widget, by default it will be queued sw = ScriptWidget(self, script_path=script_path, state='queued') # add it to the list of scripts self.scripts.insert(position + 1, sw) # update the scripts states and graphical information self.update_script_widgets() def move(self, position, new_position=None): ''' Move a script from a position (row `position`) to a new position (after row `new_position`). The new position will be chosen in a popup window by the user, or given as a kwarg (for unittesting purposes). ''' if new_position is None: # No postion was given: prompt user # with a popup window # Determine message to be displayed in popup if self.state == 'running': # If running, do not allow script to be placed in first postion # (above the script which is running) message = " 1 = place below row 1\n2 = place below row 2\n etc..." minvalue = 1 else: # If stopped message = " 0 = place first \n 1 = place below row 1\n etc..." minvalue = 0 # Open popup window new_position = tk.simpledialog.askinteger("Move to", message, parent=self.master, minvalue=minvalue, maxvalue=len( self.scripts)) if new_position is None: # User cancelled return # the position the user sees does not # take into account the rows of "done" scripts # position_0 is the position of the first "not done" # script. new_position += self.position_0 # Insert the script at the new position self.scripts.insert(new_position, self.scripts[position]) # Remove the script at the old position if new_position > position: self.scripts.pop(position) else: # If the script is moved up, then # the old position is actually +1 self.scripts.pop(position + 1) # Update script states and graphical information self.update_script_widgets() def remove(self, position): ''' Remove a script from a position. ''' # Destroy the ScriptWidget object self.scripts[position].destroy() # Remove it from the self.scripts list self.scripts.pop(position) # Update script states and graphical information self.update_script_widgets() def run(self, position): ''' Run the script located at row `position` ''' # Useful information about the script to be run self.running_script = self.scripts[position] script_path = self.scripts[position].script_path self.running_script_position = position self.running_script.log = '' # Delete the contents of the output window if self.output_window_visible: self.output_text_widget.clear() # Start the script and # setup the communication # with subprocess self.start_script_process(script_path) # Start the periodic monitoring of the script, # to capture the output, but also detect the end/error self.after(self.t_output_monitoring, self.monitor_script_process) # Update the states of this object and the script self.state = 'running' self.running_script.state = 'running' # Update script states and graphical information self.update_script_widgets() def start_script_process(self, script): ''' Start the script subprocess --- the -u option foces stdout, stderr streams to be unbuffered, which allows us to collect these outputs in real tim, rather than wait to the end of the scripts --- the cwd is chosen to be the folder in which the script is located ''' self.script_process = subprocess.Popen(['python', '-u', script], cwd=path.dirname(script), stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=1) ''' This list will be populated with contents of the subprocess `stdout` by the `reader` function in a seperate thread. It's the bridge between the subprocess and the log file and output window. ''' self.line_buffer = [] # in a seperate thread, collect the output # of the subprocess and load it into # line_buffer list self.buffer_filling_thread = Thread(target=reader, args=(self.script_process.stdout, self.line_buffer)) self.buffer_filling_thread.daemon = True self.buffer_filling_thread.start() def write_to_output(self, to_write): ''' write `to_write` both to the output window and to the log file of the running scripts ''' if self.output_window_visible: self.output_text_widget.insert(to_write) self.running_script.log += to_write def monitor_script_process(self): ''' Whilst the script is running, copy what the `reader` function has put into the `self.line_buffer` and write it to the output and log files. This function will detect when the running script crashed or ended, append the output/log accordingly, and run the next queued script. ''' # write all contents of the `self.line_buffer` list # to the output/log while self.line_buffer: self.write_to_output(self.line_buffer.pop(0).decode("utf-8")) # if autoscroll is activated, scroll the output window # to the latest written if self.output_window.follow: self.scroll_output_window_down() # poll checks on the status of the subprocess poll = self.script_process.poll() if poll is None: # Hasnt crashed or ended # monitor again in a time `self.t_output_monitoring` self.after(self.t_output_monitoring, self.monitor_script_process) else: self.treat_end_of_script(poll) self.treat_next_queued_script(poll) def treat_end_of_script(self, poll): ''' Called whenever a script crashes or ends. Appends the output/log to give maximum information to the user about causes of crashes. ''' if poll != 0: # Something went wrong while True: # Get Error Log and write to output/log line = self.script_process.stderr.readline() if not line: break else: self.write_to_output(line.decode("utf-8")) # Scroll the output window to the bottom self.scroll_output_window_down() # If `self.state` is stopped, then it's the user # who interrupted the script, write this into the output\log if self.state == 'stopped': self.write_to_output(self.interrupted_error_message) # Scroll the output window to the bottom self.scroll_output_window_down() def treat_next_queued_script(self, poll): ''' Called when a script crashes or ends, to carry out the actions which follow: - starting a new queued script if the script ended/crashed on its own - stopping the run if the user forced a stop - notifying the user via email if enabled ''' if poll != 0 and self.state == 'stopped': # User interrupted the script # The script is stopped and made ready to go again self.running_script.state = 'ready' # It is also duplicated and marked above as a # stopped script, so that the user may also inspect the # logging file stopped = self.running_script duplicate = ScriptWidget(self, script_path=stopped.script_path, state='ended') duplicate.success = 'stopped' duplicate.log = stopped.log self.scripts.insert(self.running_script_position, duplicate) # Update script states and graphical information self.update_script_widgets() else: if poll != 0: # Script stopped because of an error self.running_script.state = 'ended' self.running_script.success = 'failed' elif poll == 0: # Script successfully ended self.running_script.state = 'ended' self.running_script.success = 'done' if settings.gmail_notifications['enable']: self.gmail_notify() if self.running_script_position + 1 < len(self.scripts): # more scripts are queued: run the next one self.run(position=self.running_script_position + 1) else: # no more scripts to be run: just update visual information self.state = 'stopped' self.update_script_widgets() def stop(self): ''' Triggered by a user clicking the stop button all one needs to do is set the state to `stopped` and force the script to stop, the automatic monitoring of the running script in `monitor_script_process` will take care of the following actions ''' self.state = 'stopped' # Interrupt process self.script_process.kill() def update_script_widgets(self): ''' Updates the states of the ScriptWidget objects and updates the graphical information displayed. All is determined by the `self.states` list and the `self.state` variable. ''' # The self.scripts list should never be empty # as a failsafe we always populate it in that case # with the insert widget if len(self.scripts) == 0: self.scripts = [InsertWidget(self)] return # The row is a property of the non-done scripts # it is displayed in the GUI starting from 1 row = 1 for i, s in enumerate(self.scripts): # All scripts are given a position, running from 0 upwards # this is not necessarily the same as the row and acts # as a unique identifier of the script s.position = i # Scripts which are done are given no row information s.row = None if s.state in ['running', 'ready', 'queued'] or row > 1: if row == 1: # First script running/to-run # Helps in converting rows given by the user # to the position identifier of a script self.position_0 = i # Since this is the first script which has not already been run # it should be either running or stopped if self.state == 'running': s.state = 'running' self.running_script = s self.running_script_position = i elif self.state == 'stopped': s.state = 'ready' elif row > 1: # this script is lower down the queue: # if they were just moved for example, we should # adjust their state accordingly s.state = 'queued' # These non-done scripts are given a row s.row = row row += 1 for i, s in enumerate(self.scripts): # Place the script in the grid s.grid(row=i, column=0, sticky='news') # Populate it with buttons etc... s.add_widgets() # Adjust the scrollable region of the GUI self.update() self.config(scrollregion=self.bbox("all")) def build_gridframe(self): """ This frame will be divided into a grid hosting the canvas, scrollbars, (and potentially a menubar in the future if needed) """ self.frame = ttk.Frame() # Places the Frame widget self.frame in the parent # in a grid self.frame.grid() # Configure the frames grid self.frame.grid(sticky="nswe") # make frame container sticky self.frame.rowconfigure(0, weight=1) # make canvas expandable in x self.frame.columnconfigure(0, weight=1) # make canvas expandable in y def build_menubar(self): """ Builds the File, Edit, ... menu bar situated at the top of the window. Not used for the moment... """ # initialize the menubar object self.menubar = tk.Menu(self.frame) #################################### # FILE cascade menu build #################################### # add new item to the menubar menu = tk.Menu(self.menubar, tearoff=0) self.menubar.add_cascade(label="File", menu=menu) #################################### # VIEW cascade menu build #################################### # add new item to the menubar menu = tk.Menu(self.menubar, tearoff=0) self.menubar.add_cascade(label="View", menu=menu) # add cascade menu items menu.add_command(label="Output", command=self.build_output_window) # Add the menubar to the application self.master.config(menu=self.menubar) def build_scrollbars(self): """ Builds a vertical scrollbars and places it in the window """ self.vbar = ttk.Scrollbar(self.frame, orient="vertical") self.vbar.grid(row=0, column=1, sticky="ns") def build_canvas(self): """ Initializes the canvas from which this object inherits and places it in the grid of our frame """ tk.Canvas.__init__( self, self.frame, bd=0, highlightthickness=0, yscrollcommand=self.vbar.set, confine=False, bg="white", ) self.grid(row=0, column=0, sticky="nswe") def configure_scrollbars(self): """ Define what functions the scrollbars should call when we interact with them, and make scrolling on the mouse do something similar """ self.vbar.configure(command=self.scroll_y) self.bind("<MouseWheel>", self.scroll_y_wheel) def scroll_y(self, *args, **kwargs): """ Is called when the user interacts with the vertical scroll bar """ # stop from scolling up beyond a certain point if float(args[1]) < 0: args = (args[0], "0") # shift canvas vertically self.yview(*args) time.sleep(0.01) # Update scrollable area self.update() self.config(scrollregion=self.bbox("all")) def scroll_y_wheel(self, event): """ Triggered by the user scrolling (in combination with no particular key presses). """ # Determine which direction the user is scrolling # if using windows, then event.delta has also a different # amplitude depending on how fast the user is scrolling, # but we ignore that if event.num == 5 or event.delta < 0: direction = 1 if event.num == 4 or event.delta > 0: direction = -1 # Move the canvas appropriately, and stop # the user from scrolling to far out if direction == 1: if self.canvasy(self.winfo_height()) < 2 * self.bbox("all")[3]: self.yview_scroll(direction, tk.UNITS) elif direction == -1: if self.canvasy(0) > self.bbox("all")[1]: self.yview_scroll(direction, tk.UNITS) self.update() # if we scroll above the top row, move a little down.. if self.canvasy(0) < self.bbox("all")[1]: self.yview_moveto(0) # Update the scrollable region self.update() self.config(scrollregion=self.bbox("all")) def build_canvas_content(self): ''' Build a window which will contain the widgets ''' self.canvas_content = tk.Frame(self) self.create_window((0, 0), window=self.canvas_content, anchor='nw', width=1000) self.canvas_content.columnconfigure(0, weight=1) class ScriptWidget(tk.Frame): ''' Widget (tkinter frame) in which are stored all the graphical elements and information about a script. ''' def next_script_state(self): ''' Returns the state of the script below the current one. Returns None is this is the last script. ''' try: return self.parent.scripts[self.position + 1].state except IndexError: # This script is last in line return None def add_widgets(self): ''' Builds all graphical elements depending on the state and information about the script. ''' # remove all previously bult graphical elements for w in self.all_widgets: w.destroy() self.all_widgets = [] ################## # INSERT BUTTON ################## if self.next_script_state() in ['ready', 'queued', None]: b = ImageButton( self, image='insert.gif', command=(lambda: self.parent.insert(self.position))) else: b = ImageButton(self, image='half_blank.gif') b.config(state=tk.DISABLED) b.grid(row=0, column=0, sticky='swe', padx=(5, 0)) self.all_widgets.append(b) ################## # ROW LABEL ################## if self.state == 'ended': l = ImageLabel(self, image='blank.gif', compound=tk.CENTER) else: l = ImageLabel(self, image='blank.gif', compound=tk.CENTER, text=self.row) l.grid(row=0, column=1, sticky='new') self.all_widgets.append(l) ################## # STATE LABEL ################## if self.state == 'ended': text = self.success else: text = self.state b = ImageLabel(self, text=text, image='label_' + self.state + self.success + ".gif", compound=tk.CENTER) b.grid(row=0, column=2, sticky='new') self.all_widgets.append(b) ################## # REMOVE BUTTON ################## if self.state == 'running': b = ImageButton(self, image='blank.gif') b.config(state=tk.DISABLED) else: b = ImageButton( self, image='remove.gif', command=(lambda: self.parent.remove(self.position))) b.grid(row=0, column=3, sticky='new', pady=self.pady) self.all_widgets.append(b) ################## # MOVE BUTTON ################## if self.state in ['queued', 'ready']: b = ImageButton(self, image='move.gif', command=(lambda: self.parent.move(self.position))) else: b = ImageButton(self, image='blank.gif') b.config(state=tk.DISABLED) b.grid(row=0, column=4, sticky='new', pady=self.pady) self.all_widgets.append(b) ################## # RUN/STOP BUTTON ################## if self.state == 'running': b = ImageButton(self, image='stop.gif', command=self.parent.stop) elif self.state == 'ready': b = ImageButton(self, image='run.gif', command=(lambda: self.parent.run(self.position))) else: b = ImageButton(self, image='blank.gif') b.config(state=tk.DISABLED) b.grid(row=0, column=5, sticky='new', pady=self.pady) self.all_widgets.append(b) ################## # LOG/OUTPUT BUTTON ################## if self.state == 'ended': b = ImageButton(self, text="view log", command=self.view_log, image='blank.gif', compound=tk.CENTER) elif self.state in ['running', 'ready']: b = ImageButton(self, text="view output", command=self.parent.build_output_window, image='blank.gif', compound=tk.CENTER) else: b = ImageButton(self, text="", command=self.parent.build_output_window, image='blank.gif', compound=tk.CENTER) b.config(state=tk.DISABLED) self.all_widgets.append(b) b.grid(row=0, column=6, sticky='ne', pady=self.pady, padx=(2, 10)) ################## # SCRIPT PATH LABEL ################## b = tk.Label( self, text=self.script_path, anchor=tk.W, ) b.grid(row=0, column=7, columnspan=1, sticky='new', pady=self.pady, padx=(0, 40)) self.columnconfigure(7, weight=1) self.all_widgets.append(b) self.update() # Wrap the path text b.config(wraplength=b.winfo_width() - 50) class InsertWidget(ScriptWidget): '''Like Script Widget, but with just an insert button. ''' def add_widgets(self): ''' Add the graphical elements of the widget ''' if self.next_script_state() in ['ready', 'queued', None]: b = ImageButton( self, image='insert.gif', command=(lambda: self.parent.insert(self.position))) else: b = ImageButton(self, image='half_blank.gif') b.config(state=tk.DISABLED) b.grid(row=0, column=0, sticky='swe', padx=(5, 0)) class ImageButton(ttk.Button): '''Wrapper around the ttk.Button class which automizes the importation of the buttons picture. ''' class ImageLabel(ttk.Label): """docstring for ImageButton""" class ToggleAutoscrollButton(tk.Radiobutton): """Button which turns auto scrolling on and off. """ def click(self): ''' Called upon clicking the button ''' if self.state.get(): # If autoscrolling is on self.config(value=False) self.parent.follow = False else: # If autoscrolling is off self.config(value=True) self.state.set(True) self.parent.follow = True class ScrolledLabel(scrolledtext.ScrolledText): """wrapper around scrolledtext, to make the text read-only """ def reader(f, buffer): '''Utility function runing in a thread which transfers any lines from the pipe `f` into the list `buffer` ''' while True: line = f.readline() if line: buffer.append(line) else: break if __name__ == '__main__': GuiWindow()
[ 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 256, 74, 3849, 1330, 3275, 3524, 11, 5717, 498, 519, 11, 7106, 276, 498, 519, 11, 629, 8375, 5239, 198, 6738, 256, 74, 3849, 1330, 5555, 5159, 198, 6738, 256, 74, 3849, 1330, 256, 30488, 198, 11748, 850, 14681, 198, 6738, 4704, 278, 1330, 14122, 198, 11748, 640, 198, 11748, 20218, 7753, 198, 6738, 28686, 1330, 3108, 198, 11748, 25064, 198, 28311, 25, 198, 220, 220, 220, 422, 764, 1330, 6460, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1303, 18162, 422, 2723, 198, 220, 220, 220, 1330, 6460, 198, 198, 2, 49850, 262, 9382, 8096, 319, 262, 12163, 198, 70, 11549, 62, 34945, 796, 3108, 13, 22179, 7, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 828, 366, 70, 11549, 4943, 198, 7061, 6, 198, 17250, 3679, 88, 286, 309, 74, 3849, 13431, 25, 198, 220, 220, 220, 1962, 72, 27703, 13, 9866, 796, 256, 74, 13, 51, 74, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1962, 72, 27703, 7, 926, 74, 13, 19778, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 19775, 19778, 13, 14535, 7, 926, 74, 13, 19778, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 19775, 19778, 13, 85, 5657, 7, 926, 74, 13, 29261, 5657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 19775, 19778, 7, 30488, 13, 6090, 11017, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 19775, 19778, 13, 5171, 11017, 62, 11299, 7, 30488, 13, 19778, 8, 198, 198, 6425, 25, 428, 318, 281, 45541, 14755, 286, 2438, 422, 1180, 4493, 13, 198, 1026, 714, 2192, 307, 27009, 12034, 13, 198, 7061, 6, 628, 198, 4871, 1962, 72, 27703, 7, 926, 74, 13, 19778, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 41864, 1241, 4324, 290, 5739, 13, 220, 198, 220, 220, 220, 3423, 356, 900, 262, 1438, 290, 2546, 286, 262, 4324, 11, 220, 198, 220, 220, 220, 290, 8335, 329, 13662, 262, 4036, 2695, 286, 262, 1430, 13, 628, 220, 220, 220, 1002, 555, 715, 395, 318, 900, 284, 6407, 11, 356, 836, 470, 923, 262, 220, 198, 220, 220, 220, 1388, 26268, 11, 475, 4043, 329, 257, 4226, 284, 7616, 198, 220, 220, 220, 2995, 290, 14500, 4296, 262, 25757, 13, 198, 220, 220, 220, 705, 7061, 628, 198, 4871, 347, 19775, 19778, 7, 30488, 13, 6090, 11017, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 770, 318, 262, 1295, 810, 262, 40803, 11188, 198, 220, 220, 220, 220, 220, 220, 220, 284, 14750, 2107, 13, 220, 628, 220, 220, 220, 220, 220, 220, 220, 632, 318, 635, 262, 3632, 286, 262, 1430, 11, 290, 6973, 198, 220, 220, 220, 220, 220, 220, 220, 262, 1181, 286, 262, 1180, 14750, 11, 262, 13925, 286, 220, 198, 220, 220, 220, 220, 220, 220, 220, 14750, 11, 3503, 986, 198, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 825, 4781, 62, 439, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 3982, 5241, 477, 262, 12327, 82, 11, 422, 262, 938, 284, 262, 717, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 23494, 262, 1353, 1712, 35835, 38300, 220, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2292, 287, 2837, 7, 11925, 7, 944, 13, 46521, 8, 532, 352, 11, 657, 11, 532, 16, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 28956, 7, 9150, 8, 628, 220, 220, 220, 825, 1382, 62, 22915, 62, 17497, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 25156, 262, 5072, 4324, 543, 4909, 262, 198, 220, 220, 220, 220, 220, 220, 220, 17282, 6153, 5072, 286, 262, 3058, 220, 198, 220, 220, 220, 220, 220, 220, 220, 2491, 4226, 357, 19282, 448, 290, 336, 1082, 81, 737, 198, 220, 220, 220, 220, 220, 220, 220, 1471, 11, 611, 645, 4226, 318, 2491, 11, 4909, 198, 220, 220, 220, 220, 220, 220, 220, 262, 2695, 286, 262, 3452, 1057, 4226, 13, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 22915, 62, 17497, 62, 23504, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 262, 5072, 318, 1541, 7424, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 287, 428, 1339, 2222, 262, 4324, 284, 262, 1353, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 13, 26282, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 13, 1078, 7657, 7203, 12, 4852, 1712, 1600, 6407, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 13, 1078, 7657, 7203, 12, 4852, 1712, 1600, 10352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 4946, 510, 262, 5072, 4324, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 796, 256, 74, 13, 51, 643, 626, 7, 944, 13, 9866, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 13, 7839, 7203, 7391, 8358, 15573, 930, 25235, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 13, 469, 15748, 7203, 7029, 87, 7029, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 9175, 2610, 286, 262, 4324, 852, 7424, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 62, 23504, 796, 6407, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 26580, 2546, 2314, 307, 5322, 3675, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 257, 1728, 2546, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 13, 42951, 1096, 7, 2167, 11, 6640, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 1649, 9605, 262, 4324, 1057, 2116, 13, 261, 62, 565, 2752, 62, 22915, 62, 17497, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 13, 11235, 4668, 7203, 22117, 62, 7206, 2538, 9328, 62, 28929, 3913, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 261, 62, 565, 2752, 62, 22915, 62, 17497, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 5930, 257, 10743, 540, 2420, 3814, 287, 340, 11, 290, 787, 318, 7539, 540, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 5239, 62, 42655, 796, 1446, 8375, 33986, 7, 944, 13, 22915, 62, 17497, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 5239, 62, 42655, 13, 25928, 7, 28665, 28, 15, 11, 5752, 28, 15, 11, 23408, 11639, 10827, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 13, 808, 11250, 495, 7, 15, 11, 3463, 28, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 13, 28665, 11250, 495, 7, 15, 11, 3463, 28, 16, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 3060, 257, 4936, 284, 19846, 1708, 262, 5072, 1220, 1960, 17500, 18886, 198, 220, 220, 220, 220, 220, 220, 220, 275, 796, 34098, 16541, 17500, 2487, 21864, 7, 944, 13, 22915, 62, 17497, 11, 2420, 11639, 16541, 17500, 2487, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 275, 13, 25928, 7, 28665, 28, 15, 11, 5752, 28, 16, 11, 23408, 11639, 77, 18504, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 20270, 62, 12048, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1148, 612, 318, 645, 2491, 4226, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 905, 262, 2604, 286, 262, 938, 1057, 4226, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 5239, 62, 42655, 13, 28463, 7, 944, 13, 20270, 62, 12048, 13, 6404, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 48728, 62, 22915, 62, 17497, 62, 2902, 3419, 628, 220, 220, 220, 825, 319, 62, 565, 2752, 62, 22915, 62, 17497, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 15553, 1444, 618, 262, 5072, 4324, 318, 4838, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 9175, 2610, 286, 262, 4324, 1181, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 62, 23504, 796, 10352, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 13872, 262, 4324, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 17497, 13, 41659, 3419, 628, 220, 220, 220, 825, 7550, 7, 944, 11, 2292, 11, 4226, 62, 6978, 28, 14202, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 2561, 7550, 257, 649, 4226, 706, 262, 5752, 8203, 416, 220, 198, 220, 220, 220, 220, 220, 220, 220, 262, 5128, 18253, 4600, 9150, 44646, 220, 198, 220, 220, 220, 220, 220, 220, 220, 16018, 453, 530, 460, 11986, 262, 4226, 3108, 357, 1640, 220, 198, 220, 220, 220, 220, 220, 220, 220, 555, 715, 37761, 4959, 737, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 220, 220, 220, 220, 611, 4226, 62, 6978, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1002, 645, 4226, 3108, 373, 2810, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 6152, 2836, 329, 2393, 1438, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 42861, 62, 325, 283, 1740, 62, 34945, 6624, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4226, 62, 6978, 796, 5717, 498, 519, 13, 2093, 9654, 34345, 3419, 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, 1002, 257, 4226, 373, 1541, 18846, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1280, 262, 2393, 6152, 379, 262, 976, 8619, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4226, 62, 6978, 796, 5717, 498, 519, 13, 2093, 9654, 34345, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4238, 15908, 28, 944, 13, 42861, 62, 325, 283, 1740, 62, 34945, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4226, 62, 6978, 6624, 366, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 11787, 16769, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1394, 2610, 286, 262, 8619, 262, 2836, 20436, 515, 284, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 42861, 62, 325, 283, 1740, 62, 34945, 796, 3108, 13, 15908, 3672, 7, 12048, 62, 6978, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 7921, 274, 257, 649, 4226, 26295, 11, 416, 4277, 340, 481, 307, 8358, 1739, 198, 220, 220, 220, 220, 220, 220, 220, 1509, 796, 12327, 38300, 7, 944, 11, 4226, 62, 6978, 28, 12048, 62, 6978, 11, 1181, 11639, 4188, 1739, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 751, 340, 284, 262, 1351, 286, 14750, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 46521, 13, 28463, 7, 9150, 1343, 352, 11, 1509, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 4296, 262, 14750, 2585, 290, 27831, 1321, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 62, 12048, 62, 28029, 11407, 3419, 628, 220, 220, 220, 825, 1445, 7, 944, 11, 2292, 11, 649, 62, 9150, 28, 14202, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 10028, 257, 4226, 422, 257, 2292, 357, 808, 4600, 9150, 63, 8, 284, 257, 220, 198, 220, 220, 220, 220, 220, 220, 220, 649, 2292, 357, 8499, 5752, 4600, 3605, 62, 9150, 63, 737, 198, 220, 220, 220, 220, 220, 220, 220, 383, 649, 2292, 481, 307, 7147, 287, 257, 46207, 4324, 198, 220, 220, 220, 220, 220, 220, 220, 416, 262, 2836, 11, 393, 1813, 355, 257, 479, 86, 853, 357, 1640, 555, 715, 37761, 4959, 737, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 220, 220, 220, 220, 611, 649, 62, 9150, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1400, 1281, 295, 373, 1813, 25, 6152, 2836, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 351, 257, 46207, 4324, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 45559, 3810, 3275, 284, 307, 9066, 287, 46207, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5219, 6624, 705, 20270, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1002, 2491, 11, 466, 407, 1249, 4226, 284, 307, 4624, 287, 717, 1281, 295, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 357, 29370, 262, 4226, 543, 318, 2491, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3275, 796, 366, 352, 796, 1295, 2174, 5752, 352, 59, 77, 17, 796, 1295, 2174, 5752, 362, 59, 77, 3503, 9313, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 949, 8367, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1002, 5025, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3275, 796, 366, 657, 796, 1295, 717, 3467, 77, 352, 796, 1295, 2174, 5752, 352, 59, 77, 3503, 9313, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 949, 8367, 796, 657, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4946, 46207, 4324, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 9150, 796, 256, 74, 13, 14323, 10137, 498, 519, 13, 2093, 41433, 7203, 21774, 284, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3275, 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, 2560, 28, 944, 13, 9866, 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, 949, 8367, 28, 1084, 8367, 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, 3509, 8367, 28, 11925, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 46521, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 649, 62, 9150, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 11787, 16769, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 262, 2292, 262, 2836, 7224, 857, 407, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1011, 656, 1848, 262, 15274, 286, 366, 28060, 1, 14750, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2292, 62, 15, 318, 262, 2292, 286, 262, 717, 366, 1662, 1760, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4226, 13, 198, 220, 220, 220, 220, 220, 220, 220, 649, 62, 9150, 15853, 2116, 13, 9150, 62, 15, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 35835, 262, 4226, 379, 262, 649, 2292, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 46521, 13, 28463, 7, 3605, 62, 9150, 11, 2116, 13, 46521, 58, 9150, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 17220, 262, 4226, 379, 262, 1468, 2292, 198, 220, 220, 220, 220, 220, 220, 220, 611, 649, 62, 9150, 1875, 2292, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 46521, 13, 12924, 7, 9150, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1002, 262, 4226, 318, 3888, 510, 11, 788, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 262, 1468, 2292, 318, 1682, 1343, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 46521, 13, 12924, 7, 9150, 1343, 352, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 10133, 4226, 2585, 290, 27831, 1321, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 62, 12048, 62, 28029, 11407, 3419, 628, 220, 220, 220, 825, 4781, 7, 944, 11, 2292, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 17220, 257, 4226, 422, 257, 2292, 13, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 19448, 262, 12327, 38300, 2134, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 46521, 58, 9150, 4083, 41659, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 17220, 340, 422, 262, 2116, 13, 46521, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 46521, 13, 12924, 7, 9150, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 10133, 4226, 2585, 290, 27831, 1321, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 62, 12048, 62, 28029, 11407, 3419, 628, 220, 220, 220, 825, 1057, 7, 944, 11, 2292, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 5660, 262, 4226, 5140, 379, 5752, 4600, 9150, 63, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 49511, 1321, 546, 262, 4226, 284, 307, 1057, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 796, 2116, 13, 46521, 58, 9150, 60, 198, 220, 220, 220, 220, 220, 220, 220, 4226, 62, 6978, 796, 2116, 13, 46521, 58, 9150, 4083, 12048, 62, 6978, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 62, 9150, 796, 2292, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 13, 6404, 796, 10148, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 23520, 262, 10154, 286, 262, 5072, 4324, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 22915, 62, 17497, 62, 23504, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 5239, 62, 42655, 13, 20063, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 7253, 262, 4226, 290, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 9058, 262, 6946, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 351, 850, 14681, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9688, 62, 12048, 62, 14681, 7, 12048, 62, 6978, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 7253, 262, 27458, 9904, 286, 262, 4226, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 284, 8006, 262, 5072, 11, 475, 635, 4886, 262, 886, 14, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 8499, 7, 944, 13, 83, 62, 22915, 62, 41143, 278, 11, 2116, 13, 41143, 62, 12048, 62, 14681, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 10133, 262, 2585, 286, 428, 2134, 290, 262, 4226, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 5219, 796, 705, 20270, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 13, 5219, 796, 705, 20270, 6, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 10133, 4226, 2585, 290, 27831, 1321, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 62, 12048, 62, 28029, 11407, 3419, 628, 220, 220, 220, 825, 923, 62, 12048, 62, 14681, 7, 944, 11, 4226, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 7253, 262, 4226, 850, 14681, 198, 220, 220, 220, 220, 220, 220, 220, 220, 11420, 262, 532, 84, 3038, 2133, 274, 14367, 448, 11, 336, 1082, 81, 15190, 284, 307, 220, 198, 220, 220, 220, 220, 220, 220, 220, 22619, 1648, 1068, 11, 543, 3578, 514, 284, 2824, 777, 23862, 287, 1103, 4628, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 2138, 621, 4043, 284, 262, 886, 286, 262, 14750, 198, 220, 220, 220, 220, 220, 220, 220, 220, 11420, 262, 269, 16993, 318, 7147, 284, 307, 262, 9483, 287, 543, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 262, 4226, 318, 5140, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 12048, 62, 14681, 796, 850, 14681, 13, 47, 9654, 7, 17816, 29412, 3256, 705, 12, 84, 3256, 4226, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 16993, 28, 6978, 13, 15908, 3672, 7, 12048, 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, 14367, 448, 28, 7266, 14681, 13, 47, 4061, 36, 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, 336, 1082, 81, 28, 7266, 14681, 13, 47, 4061, 36, 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, 42684, 7857, 28, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 770, 1351, 481, 307, 22331, 198, 220, 220, 220, 220, 220, 220, 220, 351, 10154, 286, 262, 850, 14681, 198, 220, 220, 220, 220, 220, 220, 220, 4600, 19282, 448, 63, 416, 262, 4600, 46862, 63, 2163, 287, 257, 220, 198, 220, 220, 220, 220, 220, 220, 220, 384, 30052, 4704, 13, 198, 220, 220, 220, 220, 220, 220, 220, 632, 338, 262, 7696, 1022, 262, 850, 14681, 198, 220, 220, 220, 220, 220, 220, 220, 290, 262, 2604, 2393, 290, 5072, 4324, 13, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 1370, 62, 22252, 796, 17635, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 287, 257, 384, 30052, 4704, 11, 2824, 262, 5072, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 286, 262, 850, 14681, 290, 3440, 340, 656, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1627, 62, 22252, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22252, 62, 69, 4509, 62, 16663, 796, 14122, 7, 16793, 28, 46862, 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, 26498, 16193, 944, 13, 12048, 62, 14681, 13, 19282, 448, 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, 2116, 13, 1370, 62, 22252, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22252, 62, 69, 4509, 62, 16663, 13, 6814, 7966, 796, 6407, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22252, 62, 69, 4509, 62, 16663, 13, 9688, 3419, 628, 220, 220, 220, 825, 3551, 62, 1462, 62, 22915, 7, 944, 11, 284, 62, 13564, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 3551, 4600, 1462, 62, 13564, 63, 1111, 284, 262, 5072, 4324, 198, 220, 220, 220, 220, 220, 220, 220, 290, 284, 262, 2604, 2393, 286, 262, 2491, 14750, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 22915, 62, 17497, 62, 23504, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 22915, 62, 5239, 62, 42655, 13, 28463, 7, 1462, 62, 13564, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 13, 6404, 15853, 284, 62, 13564, 628, 220, 220, 220, 825, 5671, 62, 12048, 62, 14681, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 40661, 262, 4226, 318, 2491, 11, 4866, 644, 262, 198, 220, 220, 220, 220, 220, 220, 220, 4600, 46862, 63, 2163, 468, 1234, 656, 262, 4600, 944, 13, 1370, 62, 22252, 63, 198, 220, 220, 220, 220, 220, 220, 220, 290, 3551, 340, 284, 262, 5072, 290, 2604, 3696, 13, 628, 220, 220, 220, 220, 220, 220, 220, 770, 2163, 481, 4886, 618, 262, 2491, 4226, 14997, 198, 220, 220, 220, 220, 220, 220, 220, 393, 4444, 11, 24443, 262, 5072, 14, 6404, 16062, 11, 290, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1057, 262, 1306, 8358, 1739, 4226, 13, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 3551, 477, 10154, 286, 262, 4600, 944, 13, 1370, 62, 22252, 63, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 284, 262, 5072, 14, 6404, 198, 220, 220, 220, 220, 220, 220, 220, 981, 2116, 13, 1370, 62, 22252, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13564, 62, 1462, 62, 22915, 7, 944, 13, 1370, 62, 22252, 13, 12924, 7, 15, 737, 12501, 1098, 7203, 40477, 12, 23, 48774, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 1960, 17500, 2487, 318, 13906, 11, 10743, 262, 5072, 4324, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 284, 262, 3452, 3194, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 22915, 62, 17497, 13, 27780, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 48728, 62, 22915, 62, 17497, 62, 2902, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 3278, 8794, 319, 262, 3722, 286, 262, 850, 14681, 198, 220, 220, 220, 220, 220, 220, 220, 3278, 796, 2116, 13, 12048, 62, 14681, 13, 30393, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 611, 3278, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 7875, 429, 14997, 393, 4444, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 5671, 757, 287, 257, 640, 4600, 944, 13, 83, 62, 22915, 62, 41143, 278, 63, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 8499, 7, 944, 13, 83, 62, 22915, 62, 41143, 278, 11, 2116, 13, 41143, 62, 12048, 62, 14681, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 83, 630, 62, 437, 62, 1659, 62, 12048, 7, 30393, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 83, 630, 62, 19545, 62, 4188, 1739, 62, 12048, 7, 30393, 8, 628, 220, 220, 220, 825, 2190, 62, 437, 62, 1659, 62, 12048, 7, 944, 11, 3278, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 34099, 8797, 257, 4226, 17616, 393, 5645, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2034, 2412, 262, 5072, 14, 6404, 284, 1577, 5415, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1321, 284, 262, 2836, 546, 5640, 286, 17616, 13, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 220, 220, 220, 220, 611, 3278, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 13742, 1816, 2642, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 3497, 13047, 5972, 290, 3551, 284, 5072, 14, 6404, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 2116, 13, 12048, 62, 14681, 13, 301, 1082, 81, 13, 961, 1370, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 1627, 25, 198, 220, 220, 220, 220, 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, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13564, 62, 1462, 62, 22915, 7, 1370, 13, 12501, 1098, 7203, 40477, 12, 23, 48774, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 17428, 262, 5072, 4324, 284, 262, 4220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 48728, 62, 22915, 62, 17497, 62, 2902, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1002, 4600, 944, 13, 5219, 63, 318, 5025, 11, 788, 340, 338, 262, 2836, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 508, 19072, 262, 4226, 11, 3551, 428, 656, 262, 5072, 59, 6404, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5219, 6624, 705, 301, 38333, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13564, 62, 1462, 62, 22915, 7, 944, 13, 46037, 62, 18224, 62, 20500, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 17428, 262, 5072, 4324, 284, 262, 4220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 48728, 62, 22915, 62, 17497, 62, 2902, 3419, 628, 220, 220, 220, 825, 2190, 62, 19545, 62, 4188, 1739, 62, 12048, 7, 944, 11, 3278, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 34099, 618, 257, 4226, 17616, 393, 5645, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 284, 3283, 503, 262, 4028, 543, 1061, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 532, 3599, 257, 649, 8358, 1739, 4226, 611, 262, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4226, 4444, 14, 6098, 5263, 319, 663, 898, 198, 220, 220, 220, 220, 220, 220, 220, 220, 532, 12225, 262, 1057, 611, 262, 2836, 4137, 257, 2245, 198, 220, 220, 220, 220, 220, 220, 220, 220, 532, 407, 4035, 262, 2836, 2884, 3053, 611, 9343, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 220, 220, 220, 220, 611, 3278, 14512, 657, 290, 2116, 13, 5219, 6624, 705, 301, 38333, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 11787, 19072, 262, 4226, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 383, 4226, 318, 5025, 290, 925, 3492, 284, 467, 757, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 13, 5219, 796, 705, 1493, 6, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 632, 318, 635, 14184, 3474, 290, 7498, 2029, 355, 257, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 5025, 4226, 11, 523, 326, 262, 2836, 743, 635, 10104, 262, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 18931, 2393, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5025, 796, 2116, 13, 20270, 62, 12048, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23418, 796, 12327, 38300, 7, 944, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4226, 62, 6978, 28, 301, 38333, 13, 12048, 62, 6978, 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, 1181, 11639, 1631, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23418, 13, 13138, 796, 705, 301, 38333, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23418, 13, 6404, 796, 5025, 13, 6404, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 46521, 13, 28463, 7, 944, 13, 20270, 62, 12048, 62, 9150, 11, 23418, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 10133, 4226, 2585, 290, 27831, 1321, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 62, 12048, 62, 28029, 11407, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 3278, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 12327, 5025, 780, 286, 281, 4049, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 13, 5219, 796, 705, 1631, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 13, 13138, 796, 705, 47904, 6, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 3278, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 12327, 7675, 4444, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 13, 5219, 796, 705, 1631, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 13, 13138, 796, 705, 28060, 6, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 6460, 13, 14816, 62, 1662, 6637, 17816, 21633, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 14816, 62, 1662, 1958, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 20270, 62, 12048, 62, 9150, 1343, 352, 1279, 18896, 7, 944, 13, 46521, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 517, 14750, 389, 8358, 1739, 25, 1057, 262, 1306, 530, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 5143, 7, 9150, 28, 944, 13, 20270, 62, 12048, 62, 9150, 1343, 352, 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, 1303, 645, 517, 14750, 284, 307, 1057, 25, 655, 4296, 5874, 1321, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 5219, 796, 705, 301, 38333, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 62, 12048, 62, 28029, 11407, 3419, 628, 220, 220, 220, 825, 2245, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 833, 328, 10446, 416, 257, 2836, 12264, 262, 2245, 4936, 198, 220, 220, 220, 220, 220, 220, 220, 477, 530, 2476, 284, 466, 318, 900, 262, 1181, 284, 4600, 301, 38333, 63, 198, 220, 220, 220, 220, 220, 220, 220, 290, 2700, 262, 4226, 284, 2245, 11, 262, 11353, 198, 220, 220, 220, 220, 220, 220, 220, 9904, 286, 262, 2491, 4226, 287, 4600, 41143, 62, 12048, 62, 14681, 63, 198, 220, 220, 220, 220, 220, 220, 220, 481, 1011, 1337, 286, 262, 1708, 4028, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 5219, 796, 705, 301, 38333, 6, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 4225, 3622, 1429, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 12048, 62, 14681, 13, 12728, 3419, 628, 220, 220, 220, 825, 4296, 62, 12048, 62, 28029, 11407, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 28090, 262, 2585, 286, 262, 12327, 38300, 5563, 198, 220, 220, 220, 220, 220, 220, 220, 290, 5992, 262, 27831, 1321, 9066, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1439, 318, 5295, 416, 262, 4600, 944, 13, 27219, 63, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 290, 262, 4600, 944, 13, 5219, 63, 7885, 13, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 383, 2116, 13, 46521, 1351, 815, 1239, 307, 6565, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 355, 257, 10143, 8635, 356, 1464, 48040, 340, 287, 326, 1339, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 351, 262, 7550, 26295, 198, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 944, 13, 46521, 8, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 46521, 796, 685, 44402, 38300, 7, 944, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 383, 5752, 318, 257, 3119, 286, 262, 1729, 12, 28060, 14750, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 340, 318, 9066, 287, 262, 25757, 3599, 422, 352, 198, 220, 220, 220, 220, 220, 220, 220, 5752, 796, 352, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 11, 264, 287, 27056, 378, 7, 944, 13, 46521, 2599, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1439, 14750, 389, 1813, 257, 2292, 11, 2491, 422, 657, 21032, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 428, 318, 407, 6646, 262, 976, 355, 262, 5752, 290, 6529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 355, 257, 3748, 27421, 286, 262, 4226, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 13, 9150, 796, 1312, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 12327, 82, 543, 389, 1760, 389, 1813, 645, 5752, 1321, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 13, 808, 796, 6045, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 264, 13, 5219, 287, 37250, 20270, 3256, 705, 1493, 3256, 705, 4188, 1739, 20520, 393, 5752, 1875, 352, 25, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5752, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 3274, 4226, 2491, 14, 1462, 12, 5143, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 5053, 862, 287, 23202, 15274, 1813, 416, 262, 2836, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 284, 262, 2292, 27421, 286, 257, 4226, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9150, 62, 15, 796, 1312, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4619, 428, 318, 262, 717, 4226, 543, 468, 407, 1541, 587, 1057, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 340, 815, 307, 2035, 2491, 393, 5025, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5219, 6624, 705, 20270, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 13, 5219, 796, 705, 20270, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 796, 264, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20270, 62, 12048, 62, 9150, 796, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 5219, 6624, 705, 301, 38333, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 13, 5219, 796, 705, 1493, 6, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 5752, 1875, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 428, 4226, 318, 2793, 866, 262, 16834, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 484, 547, 655, 3888, 329, 1672, 11, 356, 815, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4532, 511, 1181, 16062, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 13, 5219, 796, 705, 4188, 1739, 6, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2312, 1729, 12, 28060, 14750, 389, 1813, 257, 5752, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 13, 808, 796, 5752, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5752, 15853, 352, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 11, 264, 287, 27056, 378, 7, 944, 13, 46521, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 8474, 262, 4226, 287, 262, 10706, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 13, 25928, 7, 808, 28, 72, 11, 5721, 28, 15, 11, 23408, 11639, 10827, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 8099, 5039, 340, 351, 12163, 3503, 986, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 13, 2860, 62, 28029, 11407, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 20292, 262, 10743, 540, 3814, 286, 262, 25757, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 11250, 7, 48728, 36996, 28, 944, 13, 65, 3524, 7203, 439, 48774, 628, 220, 220, 220, 825, 1382, 62, 25928, 14535, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 770, 5739, 481, 307, 9086, 656, 257, 10706, 13662, 262, 198, 220, 220, 220, 220, 220, 220, 220, 21978, 11, 10743, 34046, 11, 357, 392, 6196, 257, 1450, 549, 283, 287, 262, 2003, 611, 2622, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 14535, 796, 256, 30488, 13, 19778, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 37291, 262, 25184, 26295, 2116, 13, 14535, 287, 262, 2560, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 287, 257, 10706, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 14535, 13, 25928, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 17056, 495, 262, 13431, 10706, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 14535, 13, 25928, 7, 13915, 88, 2625, 5907, 732, 4943, 220, 1303, 787, 5739, 9290, 23408, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 14535, 13, 808, 11250, 495, 7, 15, 11, 3463, 28, 16, 8, 220, 1303, 787, 21978, 4292, 540, 287, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 14535, 13, 28665, 11250, 495, 7, 15, 11, 3463, 28, 16, 8, 220, 1303, 787, 21978, 4292, 540, 287, 331, 628, 220, 220, 220, 825, 1382, 62, 3653, 549, 283, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10934, 82, 262, 9220, 11, 5312, 11, 2644, 6859, 2318, 22765, 379, 262, 1353, 286, 198, 220, 220, 220, 220, 220, 220, 220, 262, 4324, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1892, 973, 329, 262, 2589, 986, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 41216, 262, 1450, 549, 283, 2134, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3653, 549, 283, 796, 256, 74, 13, 23381, 7, 944, 13, 14535, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 29113, 21017, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 45811, 44847, 6859, 1382, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 29113, 21017, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 751, 649, 2378, 284, 262, 1450, 549, 283, 198, 220, 220, 220, 220, 220, 220, 220, 6859, 796, 256, 74, 13, 23381, 7, 944, 13, 3653, 549, 283, 11, 11626, 2364, 28, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3653, 549, 283, 13, 2860, 62, 66, 28966, 7, 18242, 2625, 8979, 1600, 6859, 28, 26272, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 29113, 21017, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 49880, 44847, 6859, 1382, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 29113, 21017, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 751, 649, 2378, 284, 262, 1450, 549, 283, 198, 220, 220, 220, 220, 220, 220, 220, 6859, 796, 256, 74, 13, 23381, 7, 944, 13, 3653, 549, 283, 11, 11626, 2364, 28, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3653, 549, 283, 13, 2860, 62, 66, 28966, 7, 18242, 2625, 7680, 1600, 6859, 28, 26272, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 751, 44847, 6859, 3709, 198, 220, 220, 220, 220, 220, 220, 220, 6859, 13, 2860, 62, 21812, 7, 18242, 2625, 26410, 1600, 3141, 28, 944, 13, 11249, 62, 22915, 62, 17497, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 3060, 262, 1450, 549, 283, 284, 262, 3586, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9866, 13, 11250, 7, 26272, 28, 944, 13, 3653, 549, 283, 8, 628, 220, 220, 220, 825, 1382, 62, 48728, 34046, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10934, 82, 257, 11723, 10743, 34046, 290, 4113, 198, 220, 220, 220, 220, 220, 220, 220, 340, 287, 262, 4324, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 85, 5657, 796, 256, 30488, 13, 29261, 5657, 7, 944, 13, 14535, 11, 11367, 2625, 1851, 605, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 85, 5657, 13, 25928, 7, 808, 28, 15, 11, 5721, 28, 16, 11, 23408, 2625, 5907, 4943, 628, 220, 220, 220, 825, 1382, 62, 5171, 11017, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 20768, 4340, 262, 21978, 422, 543, 428, 2134, 10639, 896, 290, 198, 220, 220, 220, 220, 220, 220, 220, 4113, 340, 287, 262, 10706, 286, 674, 5739, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 256, 74, 13, 6090, 11017, 13, 834, 15003, 834, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 14535, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 67, 28, 15, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7238, 400, 624, 1108, 28, 15, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 48728, 21812, 28, 944, 13, 85, 5657, 13, 2617, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1013, 500, 28, 25101, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 70, 2625, 11186, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 25928, 7, 808, 28, 15, 11, 5721, 28, 15, 11, 23408, 2625, 5907, 732, 4943, 628, 220, 220, 220, 825, 17425, 62, 48728, 34046, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2896, 500, 644, 5499, 262, 10743, 34046, 815, 869, 198, 220, 220, 220, 220, 220, 220, 220, 618, 356, 9427, 351, 606, 11, 290, 787, 28659, 198, 220, 220, 220, 220, 220, 220, 220, 319, 262, 10211, 466, 1223, 2092, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 85, 5657, 13, 11250, 495, 7, 21812, 28, 944, 13, 48728, 62, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 21653, 7203, 27, 39643, 45307, 29, 1600, 2116, 13, 48728, 62, 88, 62, 22001, 8, 628, 220, 220, 220, 825, 10743, 62, 88, 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, 1148, 1444, 618, 262, 2836, 44020, 351, 262, 11723, 10743, 2318, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 2245, 422, 629, 692, 278, 510, 3675, 257, 1728, 966, 198, 220, 220, 220, 220, 220, 220, 220, 611, 12178, 7, 22046, 58, 16, 12962, 1279, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26498, 796, 357, 22046, 58, 15, 4357, 366, 15, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 6482, 21978, 31677, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 88, 1177, 46491, 22046, 8, 198, 220, 220, 220, 220, 220, 220, 220, 640, 13, 42832, 7, 15, 13, 486, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 10133, 10743, 540, 1989, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 11250, 7, 48728, 36996, 28, 944, 13, 65, 3524, 7203, 439, 48774, 628, 220, 220, 220, 825, 10743, 62, 88, 62, 22001, 7, 944, 11, 1785, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 833, 328, 10446, 416, 262, 2836, 28659, 357, 259, 6087, 351, 645, 1948, 1994, 31048, 737, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 45559, 3810, 543, 4571, 262, 2836, 318, 28659, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 1262, 9168, 11, 788, 1785, 13, 67, 12514, 468, 635, 257, 1180, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 37188, 6906, 319, 703, 3049, 262, 2836, 318, 28659, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 475, 356, 8856, 326, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1785, 13, 22510, 6624, 642, 393, 1785, 13, 67, 12514, 1279, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4571, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1785, 13, 22510, 6624, 604, 393, 1785, 13, 67, 12514, 1875, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4571, 796, 532, 16, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 10028, 262, 21978, 20431, 11, 290, 2245, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 262, 2836, 422, 28659, 284, 1290, 503, 198, 220, 220, 220, 220, 220, 220, 220, 611, 4571, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5171, 85, 4107, 7, 944, 13, 5404, 6513, 62, 17015, 28955, 1279, 362, 1635, 2116, 13, 65, 3524, 7203, 439, 4943, 58, 18, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 88, 1177, 62, 48728, 7, 37295, 11, 256, 74, 13, 4944, 29722, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 4571, 6624, 532, 16, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5171, 85, 4107, 7, 15, 8, 1875, 2116, 13, 65, 3524, 7203, 439, 4943, 58, 16, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 88, 1177, 62, 48728, 7, 37295, 11, 256, 74, 13, 4944, 29722, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 356, 10743, 2029, 262, 1353, 5752, 11, 1445, 257, 1310, 866, 492, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5171, 85, 4107, 7, 15, 8, 1279, 2116, 13, 65, 3524, 7203, 439, 4943, 58, 16, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 88, 1177, 62, 21084, 1462, 7, 15, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 10133, 262, 10743, 540, 3814, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 11250, 7, 48728, 36996, 28, 944, 13, 65, 3524, 7203, 439, 48774, 628, 220, 220, 220, 825, 1382, 62, 5171, 11017, 62, 11299, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 10934, 257, 4324, 543, 481, 3994, 262, 40803, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 5171, 11017, 62, 11299, 796, 256, 74, 13, 19778, 7, 944, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 17953, 62, 17497, 19510, 15, 11, 657, 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, 4324, 28, 944, 13, 5171, 11017, 62, 11299, 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, 18021, 11639, 47516, 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, 9647, 28, 12825, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 5171, 11017, 62, 11299, 13, 28665, 11250, 495, 7, 15, 11, 3463, 28, 16, 8, 628, 198, 4871, 12327, 38300, 7, 30488, 13, 19778, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 370, 17484, 357, 30488, 3849, 5739, 8, 287, 543, 389, 8574, 477, 262, 27831, 220, 198, 220, 220, 220, 4847, 290, 1321, 546, 257, 4226, 13, 198, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 825, 1306, 62, 12048, 62, 5219, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 262, 1181, 286, 262, 4226, 2174, 262, 1459, 198, 220, 220, 220, 220, 220, 220, 220, 530, 13, 16409, 6045, 318, 428, 318, 262, 938, 4226, 13, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 8000, 13, 46521, 58, 944, 13, 9150, 1343, 352, 4083, 5219, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 12901, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 770, 4226, 318, 938, 287, 1627, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 6045, 628, 220, 220, 220, 825, 751, 62, 28029, 11407, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 10934, 82, 477, 27831, 4847, 198, 220, 220, 220, 220, 220, 220, 220, 6906, 319, 262, 1181, 290, 1321, 198, 220, 220, 220, 220, 220, 220, 220, 546, 262, 4226, 13, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 4781, 477, 4271, 275, 586, 27831, 4847, 198, 220, 220, 220, 220, 220, 220, 220, 329, 266, 287, 2116, 13, 439, 62, 28029, 11407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 13, 41659, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 439, 62, 28029, 11407, 796, 17635, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 29194, 17395, 21728, 11357, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 19545, 62, 12048, 62, 5219, 3419, 287, 37250, 1493, 3256, 705, 4188, 1739, 3256, 6045, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2939, 11639, 28463, 13, 27908, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3141, 16193, 50033, 25, 2116, 13, 8000, 13, 28463, 7, 944, 13, 9150, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 944, 11, 2939, 11639, 13959, 62, 27190, 13, 27908, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 13, 11250, 7, 5219, 28, 30488, 13, 26288, 6242, 30465, 8, 198, 220, 220, 220, 220, 220, 220, 220, 275, 13, 25928, 7, 808, 28, 15, 11, 5721, 28, 15, 11, 23408, 11639, 46280, 3256, 14841, 87, 16193, 20, 11, 657, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 439, 62, 28029, 11407, 13, 33295, 7, 65, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 371, 3913, 406, 6242, 3698, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5219, 6624, 705, 1631, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 796, 7412, 33986, 7, 944, 11, 2939, 11639, 27190, 13, 27908, 3256, 13061, 28, 30488, 13, 43960, 1137, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 796, 7412, 33986, 7, 944, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2939, 11639, 27190, 13, 27908, 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, 13061, 28, 30488, 13, 43960, 1137, 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, 2420, 28, 944, 13, 808, 8, 198, 220, 220, 220, 220, 220, 220, 220, 300, 13, 25928, 7, 808, 28, 15, 11, 5721, 28, 16, 11, 23408, 11639, 3605, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 439, 62, 28029, 11407, 13, 33295, 7, 75, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 35454, 406, 6242, 3698, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5219, 6624, 705, 1631, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 2116, 13, 13138, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 2116, 13, 5219, 198, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 33986, 7, 944, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 28, 5239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2939, 11639, 18242, 62, 6, 1343, 2116, 13, 5219, 1343, 2116, 13, 13138, 1343, 27071, 27908, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13061, 28, 30488, 13, 43960, 1137, 8, 198, 220, 220, 220, 220, 220, 220, 220, 275, 13, 25928, 7, 808, 28, 15, 11, 5721, 28, 17, 11, 23408, 11639, 3605, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 439, 62, 28029, 11407, 13, 33295, 7, 65, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 22657, 46, 6089, 21728, 11357, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5219, 6624, 705, 20270, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 944, 11, 2939, 11639, 27190, 13, 27908, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 13, 11250, 7, 5219, 28, 30488, 13, 26288, 6242, 30465, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2939, 11639, 28956, 13, 27908, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3141, 16193, 50033, 25, 2116, 13, 8000, 13, 28956, 7, 944, 13, 9150, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 275, 13, 25928, 7, 808, 28, 15, 11, 5721, 28, 18, 11, 23408, 11639, 3605, 3256, 279, 4597, 28, 944, 13, 79, 4597, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 439, 62, 28029, 11407, 13, 33295, 7, 65, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 13070, 6089, 21728, 11357, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5219, 287, 37250, 4188, 1739, 3256, 705, 1493, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 944, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2939, 11639, 21084, 13, 27908, 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, 3141, 16193, 50033, 25, 2116, 13, 8000, 13, 21084, 7, 944, 13, 9150, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 944, 11, 2939, 11639, 27190, 13, 27908, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 13, 11250, 7, 5219, 28, 30488, 13, 26288, 6242, 30465, 8, 198, 220, 220, 220, 220, 220, 220, 220, 275, 13, 25928, 7, 808, 28, 15, 11, 5721, 28, 19, 11, 23408, 11639, 3605, 3256, 279, 4597, 28, 944, 13, 79, 4597, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 439, 62, 28029, 11407, 13, 33295, 7, 65, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 32494, 14, 2257, 3185, 21728, 11357, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5219, 6624, 705, 20270, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 944, 11, 2939, 11639, 11338, 13, 27908, 3256, 3141, 28, 944, 13, 8000, 13, 11338, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 5219, 6624, 705, 1493, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 944, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2939, 11639, 5143, 13, 27908, 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, 3141, 16193, 50033, 25, 2116, 13, 8000, 13, 5143, 7, 944, 13, 9150, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 944, 11, 2939, 11639, 27190, 13, 27908, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 13, 11250, 7, 5219, 28, 30488, 13, 26288, 6242, 30465, 8, 198, 220, 220, 220, 220, 220, 220, 220, 275, 13, 25928, 7, 808, 28, 15, 11, 5721, 28, 20, 11, 23408, 11639, 3605, 3256, 279, 4597, 28, 944, 13, 79, 4597, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 439, 62, 28029, 11407, 13, 33295, 7, 65, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 41605, 14, 2606, 7250, 3843, 21728, 11357, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5219, 6624, 705, 1631, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 944, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 2625, 1177, 2604, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3141, 28, 944, 13, 1177, 62, 6404, 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, 2939, 11639, 27190, 13, 27908, 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, 13061, 28, 30488, 13, 43960, 1137, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 5219, 287, 37250, 20270, 3256, 705, 1493, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 944, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 2625, 1177, 5072, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3141, 28, 944, 13, 8000, 13, 11249, 62, 22915, 62, 17497, 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, 2939, 11639, 27190, 13, 27908, 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, 13061, 28, 30488, 13, 43960, 1137, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 944, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 2625, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3141, 28, 944, 13, 8000, 13, 11249, 62, 22915, 62, 17497, 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, 2939, 11639, 27190, 13, 27908, 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, 13061, 28, 30488, 13, 43960, 1137, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 13, 11250, 7, 5219, 28, 30488, 13, 26288, 6242, 30465, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 439, 62, 28029, 11407, 13, 33295, 7, 65, 8, 198, 220, 220, 220, 220, 220, 220, 220, 275, 13, 25928, 7, 808, 28, 15, 11, 5721, 28, 21, 11, 23408, 11639, 710, 3256, 279, 4597, 28, 944, 13, 79, 4597, 11, 14841, 87, 16193, 17, 11, 838, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 6374, 46023, 46490, 406, 6242, 3698, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14468, 2, 198, 220, 220, 220, 220, 220, 220, 220, 275, 796, 256, 74, 13, 33986, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 28, 944, 13, 12048, 62, 6978, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18021, 28, 30488, 13, 54, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 275, 13, 25928, 7, 808, 28, 15, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5721, 28, 22, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5721, 12626, 28, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23408, 11639, 3605, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 4597, 28, 944, 13, 79, 4597, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14841, 87, 16193, 15, 11, 2319, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 28665, 11250, 495, 7, 22, 11, 3463, 28, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 439, 62, 28029, 11407, 13, 33295, 7, 65, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 41028, 262, 3108, 2420, 198, 220, 220, 220, 220, 220, 220, 220, 275, 13, 11250, 7, 29988, 489, 3286, 28, 65, 13, 5404, 6513, 62, 10394, 3419, 532, 2026, 8, 628, 198, 4871, 35835, 38300, 7, 7391, 38300, 2599, 198, 220, 220, 220, 705, 7061, 7594, 12327, 370, 17484, 11, 475, 351, 655, 281, 7550, 4936, 13, 198, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 825, 751, 62, 28029, 11407, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 3060, 262, 27831, 4847, 286, 262, 26295, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 19545, 62, 12048, 62, 5219, 3419, 287, 37250, 1493, 3256, 705, 4188, 1739, 3256, 6045, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2939, 11639, 28463, 13, 27908, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3141, 16193, 50033, 25, 2116, 13, 8000, 13, 28463, 7, 944, 13, 9150, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 7412, 21864, 7, 944, 11, 2939, 11639, 13959, 62, 27190, 13, 27908, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 13, 11250, 7, 5219, 28, 30488, 13, 26288, 6242, 30465, 8, 198, 220, 220, 220, 220, 220, 220, 220, 275, 13, 25928, 7, 808, 28, 15, 11, 5721, 28, 15, 11, 23408, 11639, 46280, 3256, 14841, 87, 16193, 20, 11, 657, 4008, 628, 198, 4871, 7412, 21864, 7, 926, 74, 13, 21864, 2599, 198, 220, 220, 220, 705, 7061, 36918, 2848, 1088, 262, 256, 30488, 13, 21864, 1398, 198, 220, 220, 220, 543, 3557, 4340, 262, 1330, 341, 286, 262, 220, 198, 220, 220, 220, 12163, 4286, 13, 198, 220, 220, 220, 705, 7061, 628, 198, 4871, 7412, 33986, 7, 926, 74, 13, 33986, 2599, 198, 220, 220, 220, 37227, 15390, 8841, 329, 7412, 21864, 37811, 628, 198, 4871, 34098, 16541, 17500, 2487, 21864, 7, 30488, 13, 49, 9189, 672, 21115, 2599, 198, 220, 220, 220, 37227, 21864, 543, 4962, 8295, 28659, 319, 290, 572, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 3904, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 34099, 2402, 12264, 262, 4936, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 5219, 13, 1136, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1002, 1960, 17500, 18886, 318, 319, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 11250, 7, 8367, 28, 25101, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 8000, 13, 27780, 796, 10352, 628, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1002, 1960, 17500, 18886, 318, 572, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 11250, 7, 8367, 28, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 5219, 13, 2617, 7, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 8000, 13, 27780, 796, 6407, 628, 198, 4871, 1446, 8375, 33986, 7, 1416, 8375, 5239, 13, 3351, 8375, 8206, 2599, 198, 220, 220, 220, 37227, 48553, 1088, 629, 8375, 5239, 11, 284, 787, 198, 220, 220, 220, 262, 2420, 1100, 12, 8807, 198, 220, 220, 220, 37227, 628, 198, 4299, 9173, 7, 69, 11, 11876, 2599, 198, 220, 220, 220, 705, 7061, 18274, 879, 2163, 1057, 278, 287, 257, 4704, 198, 220, 220, 220, 543, 16395, 597, 3951, 422, 262, 220, 198, 220, 220, 220, 12656, 4600, 69, 63, 656, 262, 1351, 4600, 22252, 63, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 277, 13, 961, 1370, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1627, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11876, 13, 33295, 7, 1370, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1962, 72, 27703, 3419 ]
2.150588
13,693
import coursera_requests as c import sys try: # c.getCourseraCategories() c.getCourseraCourses() # c.getCourseraInstructors() # c.getCourseraSessions() # c.getCourseraUniversities() except: print ("Unexpected error:", sys.exc_info()[0]) raise
[ 11748, 1093, 2655, 64, 62, 8897, 3558, 355, 269, 198, 11748, 25064, 198, 198, 28311, 25, 198, 2, 220, 197, 66, 13, 1136, 25877, 2655, 64, 34, 26129, 3419, 198, 197, 66, 13, 1136, 25877, 2655, 64, 34, 39975, 3419, 198, 2, 220, 197, 66, 13, 1136, 25877, 2655, 64, 43993, 669, 3419, 198, 2, 220, 197, 66, 13, 1136, 25877, 2655, 64, 50, 6202, 3419, 198, 2, 220, 197, 66, 13, 1136, 25877, 2655, 64, 3118, 1191, 871, 3419, 198, 16341, 25, 198, 197, 4798, 5855, 52, 42072, 4049, 25, 1600, 25064, 13, 41194, 62, 10951, 3419, 58, 15, 12962, 198, 197, 40225 ]
2.403846
104
#!/usr/bin/python # Copyright 2012, Kevin Ko <[email protected]>. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # # Generates an 8-bit log base 2 table. # Print out an inverse 8-bit log table print "-1, 0, 1, 1," # log(i) for i in 0, 1, 2, 3 print "2, 2, 2, 2," # ... 4, 5, 6, 7 print "3, 3, 3, 3, 3, 3, 3, 3," # ... 8-15 lt(4) # 16-31 # 32-63 [lt(5) for i in xrange(2)] # 64-127 [lt(6) for i in xrange(4)] # 128-255 [lt(7) for i in xrange(8)]
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 15069, 2321, 11, 7939, 17634, 1279, 365, 7114, 31, 69, 3080, 316, 13, 785, 28401, 220, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 198, 2, 5964, 326, 460, 307, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 2, 198, 2, 2980, 689, 281, 807, 12, 2545, 2604, 2779, 362, 3084, 13, 198, 198, 2, 12578, 503, 281, 34062, 807, 12, 2545, 2604, 3084, 198, 4798, 27444, 16, 11, 657, 11, 352, 11, 352, 553, 220, 1303, 2604, 7, 72, 8, 329, 1312, 287, 657, 11, 352, 11, 362, 11, 513, 198, 4798, 366, 17, 11, 362, 11, 362, 11, 362, 553, 220, 220, 1303, 2644, 604, 11, 642, 11, 718, 11, 767, 198, 4798, 366, 18, 11, 513, 11, 513, 11, 513, 11, 513, 11, 513, 11, 513, 11, 513, 553, 220, 1303, 2644, 807, 12, 1314, 198, 2528, 7, 19, 8, 220, 1303, 1467, 12, 3132, 198, 198, 2, 3933, 12, 5066, 198, 58, 2528, 7, 20, 8, 329, 1312, 287, 2124, 9521, 7, 17, 15437, 198, 198, 2, 5598, 12, 16799, 198, 58, 2528, 7, 21, 8, 329, 1312, 287, 2124, 9521, 7, 19, 15437, 198, 198, 2, 13108, 12, 13381, 198, 58, 2528, 7, 22, 8, 329, 1312, 287, 2124, 9521, 7, 23, 15437, 198 ]
2.313043
230
from LibSerial4.LibSerial4 import Serial, Uart
[ 6738, 7980, 32634, 19, 13, 25835, 32634, 19, 1330, 23283, 11, 471, 433 ]
3.538462
13
# Generated by Django 2.1.2 on 2018-11-22 17:40 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 17, 319, 2864, 12, 1157, 12, 1828, 1596, 25, 1821, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 628 ]
3.019231
52
if __name__ == "__main__": print(fun(5)) # Always returns 25
[ 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 3601, 7, 12543, 7, 20, 4008, 1303, 16622, 5860, 1679, 198 ]
2.538462
26
import matplotlib.pyplot as plt import sys """ Utility script to plot Execution time Vs Number of vertices based on the log-files obtained by running tests/*.sh """ lines = open(sys.argv[1]).readlines()[1::2] x = map(lambda xx: 5*eval(xx.strip().split('\t')[1].split(' ')[1]), lines[::2]) # x = map(lambda xx: 400*eval(xx.strip().split(' ')[1].split('\t')[0]), lines[::2]) y = map(lambda xx: eval(xx.split(' ')[2]), lines[1::2]) t = {} c = {} for xx in x: c[xx] = 0 t[xx] = 0 for i in range(len(y)): xx = x[i] t[xx] += y[i] c[xx] += 1 y_plot = [] for i in range(len(y)): xx = x[i] y_plot.append(t[xx]*0.0001*25/c[xx]) # y_plot.append(t[xx]*14.711*0.6*0.5*10*16/c[xx]) print x print y_plot # print t[700]*10.0/c[700] # print y_plot plt.xlabel("Edges | Number of vertices = 5000") # plt.xlabel("Vertices") plt.ylabel("Execution time ( s )") plt.plot(x,y_plot,'ro') plt.show()
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 25064, 198, 37811, 198, 18274, 879, 4226, 284, 7110, 37497, 640, 31280, 7913, 286, 9421, 1063, 1912, 319, 262, 2604, 12, 16624, 6492, 416, 2491, 5254, 15211, 13, 1477, 198, 37811, 198, 6615, 796, 1280, 7, 17597, 13, 853, 85, 58, 16, 35944, 961, 6615, 3419, 58, 16, 3712, 17, 60, 198, 87, 796, 3975, 7, 50033, 31383, 25, 642, 9, 18206, 7, 5324, 13, 36311, 22446, 35312, 10786, 59, 83, 11537, 58, 16, 4083, 35312, 10786, 705, 38381, 16, 46570, 3951, 58, 3712, 17, 12962, 198, 2, 2124, 796, 3975, 7, 50033, 31383, 25, 7337, 9, 18206, 7, 5324, 13, 36311, 22446, 35312, 10786, 705, 38381, 16, 4083, 35312, 10786, 59, 83, 11537, 58, 15, 46570, 3951, 58, 3712, 17, 12962, 198, 88, 796, 3975, 7, 50033, 31383, 25, 5418, 7, 5324, 13, 35312, 10786, 705, 38381, 17, 46570, 3951, 58, 16, 3712, 17, 12962, 198, 83, 796, 23884, 198, 66, 796, 23884, 198, 1640, 31383, 287, 2124, 25, 198, 220, 220, 220, 269, 58, 5324, 60, 796, 657, 198, 220, 220, 220, 256, 58, 5324, 60, 796, 657, 198, 1640, 1312, 287, 2837, 7, 11925, 7, 88, 8, 2599, 198, 220, 220, 220, 31383, 796, 2124, 58, 72, 60, 198, 220, 220, 220, 256, 58, 5324, 60, 15853, 331, 58, 72, 60, 198, 220, 220, 220, 269, 58, 5324, 60, 15853, 352, 198, 88, 62, 29487, 796, 17635, 198, 1640, 1312, 287, 2837, 7, 11925, 7, 88, 8, 2599, 198, 220, 220, 220, 31383, 796, 2124, 58, 72, 60, 198, 220, 220, 220, 331, 62, 29487, 13, 33295, 7, 83, 58, 5324, 60, 9, 15, 13, 18005, 9, 1495, 14, 66, 58, 5324, 12962, 198, 220, 220, 220, 1303, 331, 62, 29487, 13, 33295, 7, 83, 58, 5324, 60, 9, 1415, 13, 22, 1157, 9, 15, 13, 21, 9, 15, 13, 20, 9, 940, 9, 1433, 14, 66, 58, 5324, 12962, 198, 4798, 2124, 198, 4798, 331, 62, 29487, 198, 2, 3601, 256, 58, 9879, 60, 9, 940, 13, 15, 14, 66, 58, 9879, 60, 198, 2, 3601, 331, 62, 29487, 198, 198, 489, 83, 13, 87, 18242, 7203, 7407, 3212, 930, 7913, 286, 9421, 1063, 796, 23336, 4943, 198, 2, 458, 83, 13, 87, 18242, 7203, 42369, 1063, 4943, 198, 489, 83, 13, 2645, 9608, 7203, 23002, 1009, 640, 357, 264, 1267, 4943, 198, 198, 489, 83, 13, 29487, 7, 87, 11, 88, 62, 29487, 4032, 305, 11537, 198, 489, 83, 13, 12860, 3419, 198 ]
2.161905
420
""" Test CLI for metric integration. """ from argparse import ArgumentParser from getpass import getuser from time import sleep from microcosm.api import create_object_graph from microcosm.loaders import load_from_dict from microcosm_metrics.naming import name_for def publish(): """ Publish a metric (for testing). """ args = parse_args() statsd = create_statsd_client(args) if args.action == "increment": statsd.increment(name_for(getuser(), args.action)) elif args.action == "histogram": statsd.histogram(name_for(getuser(), args.action), 1.0) try: # wait a little to allow the delivery of the metric before we exit sleep(1.0) except KeyboardInterrupt: pass
[ 37811, 198, 14402, 43749, 329, 18663, 11812, 13, 198, 198, 37811, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 6738, 651, 6603, 1330, 651, 7220, 198, 6738, 640, 1330, 3993, 198, 198, 6738, 4580, 6966, 76, 13, 15042, 1330, 2251, 62, 15252, 62, 34960, 198, 6738, 4580, 6966, 76, 13, 2220, 364, 1330, 3440, 62, 6738, 62, 11600, 198, 198, 6738, 4580, 6966, 76, 62, 4164, 10466, 13, 77, 3723, 1330, 1438, 62, 1640, 628, 628, 198, 4299, 7715, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 8525, 1836, 257, 18663, 357, 1640, 4856, 737, 628, 220, 220, 220, 37227, 198, 220, 220, 220, 26498, 796, 21136, 62, 22046, 3419, 198, 220, 220, 220, 9756, 67, 796, 2251, 62, 34242, 67, 62, 16366, 7, 22046, 8, 628, 220, 220, 220, 611, 26498, 13, 2673, 6624, 366, 24988, 434, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 9756, 67, 13, 24988, 434, 7, 3672, 62, 1640, 7, 1136, 7220, 22784, 26498, 13, 2673, 4008, 198, 220, 220, 220, 1288, 361, 26498, 13, 2673, 6624, 366, 10034, 21857, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 9756, 67, 13, 10034, 21857, 7, 3672, 62, 1640, 7, 1136, 7220, 22784, 26498, 13, 2673, 828, 352, 13, 15, 8, 628, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4043, 257, 1310, 284, 1249, 262, 7585, 286, 262, 18663, 878, 356, 8420, 198, 220, 220, 220, 220, 220, 220, 220, 3993, 7, 16, 13, 15, 8, 198, 220, 220, 220, 2845, 31973, 9492, 3622, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 198 ]
2.766667
270
from metrics import * from itembased_recommender_system import * import shelve import matplotlib.pyplot as plt genData('base','u2.base') genData('test','u2.test') print("data ready") base = transform(shelve.open('base')) test = transform(shelve.open('test')) ##base = {'max':{'odin doma':3,'labirint straha':5,'detektiv':2,'komnata':4}, ## 'dima':{'odin doma':5,'labirint straha':1,'detektiv':5}, ## 'alex':{'odin doma':5,'pila':2,'komnata':3,'grabim bank':3,'labirint straha':1,'detektiv':4,'dom s privideniamy':3}, ## 'den':{'odin doma':2,'grabim bank':3,'labirint straha':5,'dom s privideniamy':5}, ## 'kirill':{'grabim bank':3,'labirint straha':4,'detektiv':1,'dom s privideniamy':5}, ## 'olga':{'odin doma':3,'pila':4,'detektiv':4,'komnata':1,'dom s privideniamy':3}, ## 'lera':{'odin doma':4,'pila':3,'grabim bank':4,'labirint straha':1}, ## 'anna':{'pila':4,'grabim bank':2,'labirint straha':5,'komnata':4,'detektiv':4,'dom s privideniamy':4}} ## ##test = {'max':{'pila':4,'dom s privideniamy':3}, ## 'dima':{'pila':2,'dom s privideniamy':1}, ## 'kirill':{'odin doma':3,'pila':4}, ## 'olga':{'grabim bank':4,'labirint straha':1}} print("opened with size %d"%len(base)) tr = transform(base) print("transformed") ns = [30,100,200,300,500,0] ##ns = [1,2,3,4,5,6] cls = ['b','g','r','c','m','y'] markers = ['.',',','o','v','^','<','>','p','*','+'] cls_n = 0 for n in ns: metrix = [JMSD,PCC,CPCC,SPCC,Jaccard,MSD,COS,ACOS] maes = {} for sim in metrix: if (n != 0): itMtr = itemMatrix(tr,n,sim) else: itMtr = itemMatrix(tr,n,sim,False) orig_recs = {} test_recs = {} for user in test: orig_recs[user] = {} test_recs[user] = {} for item in test[user]: rec = recommendOne(base,tr,itMtr,item,user) if (rec != 200): orig_recs[user][item] = rec test_recs[user][item] = test[user][item] mae = MAE(test_recs,orig_recs) print("Mae for %s is %f"%(sim.__name__,mae)) maes[sim.__name__] = mae print(maes) labels = sorted(maes) x = [0,1,2,3,4,5,6,7] y = [maes[i] for i in labels] plt.plot(x,y,color = cls[cls_n],marker = markers[cls_n],linewidth=1.5,label = 'k = '+str(n)) ## plt.plot(x,y,'ko') cls_n += 1 plt.title('maes, user-based') plt.axis([-1,8,0.7,1.1]) plt.ylabel('MAE') plt.xlabel('metrics') plt.xticks(x,labels,rotation='vertical') plt.subplots_adjust(bottom=0.15) plt.legend() ##for i,j in zip(x,y): ## plt.annotate(str(round(j,4)),xy=(i-0.5,j+0.01)) plt.show() ##plt.savefig('E:/Diploma/results/maes-item-based_n'+str(n)+'.png')
[ 6738, 20731, 1330, 1635, 201, 198, 6738, 2378, 3106, 62, 47335, 2194, 62, 10057, 1330, 1635, 201, 198, 11748, 7497, 303, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 201, 198, 201, 198, 5235, 6601, 10786, 8692, 41707, 84, 17, 13, 8692, 11537, 201, 198, 5235, 6601, 10786, 9288, 41707, 84, 17, 13, 9288, 11537, 201, 198, 4798, 7203, 7890, 3492, 4943, 201, 198, 201, 198, 8692, 796, 6121, 7, 82, 2978, 303, 13, 9654, 10786, 8692, 6, 4008, 201, 198, 9288, 796, 6121, 7, 82, 2978, 303, 13, 9654, 10786, 9288, 6, 4008, 201, 198, 2235, 8692, 796, 1391, 6, 9806, 10354, 90, 6, 375, 259, 2401, 64, 10354, 18, 4032, 23912, 343, 600, 3534, 3099, 10354, 20, 4032, 15255, 988, 83, 452, 10354, 17, 4032, 74, 296, 77, 1045, 10354, 19, 5512, 201, 198, 2235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 67, 8083, 10354, 90, 6, 375, 259, 2401, 64, 10354, 20, 4032, 23912, 343, 600, 3534, 3099, 10354, 16, 4032, 15255, 988, 83, 452, 10354, 20, 5512, 201, 198, 2235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1000, 87, 10354, 90, 6, 375, 259, 2401, 64, 10354, 20, 4032, 79, 10102, 10354, 17, 4032, 74, 296, 77, 1045, 10354, 18, 4032, 32393, 320, 3331, 10354, 18, 4032, 23912, 343, 600, 3534, 3099, 10354, 16, 4032, 15255, 988, 83, 452, 10354, 19, 4032, 3438, 264, 1953, 14029, 1789, 88, 10354, 18, 5512, 201, 198, 2235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 6559, 10354, 90, 6, 375, 259, 2401, 64, 10354, 17, 4032, 32393, 320, 3331, 10354, 18, 4032, 23912, 343, 600, 3534, 3099, 10354, 20, 4032, 3438, 264, 1953, 14029, 1789, 88, 10354, 20, 5512, 201, 198, 2235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 74, 343, 359, 10354, 90, 6, 32393, 320, 3331, 10354, 18, 4032, 23912, 343, 600, 3534, 3099, 10354, 19, 4032, 15255, 988, 83, 452, 10354, 16, 4032, 3438, 264, 1953, 14029, 1789, 88, 10354, 20, 5512, 201, 198, 2235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 349, 4908, 10354, 90, 6, 375, 259, 2401, 64, 10354, 18, 4032, 79, 10102, 10354, 19, 4032, 15255, 988, 83, 452, 10354, 19, 4032, 74, 296, 77, 1045, 10354, 16, 4032, 3438, 264, 1953, 14029, 1789, 88, 10354, 18, 5512, 201, 198, 2235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1754, 64, 10354, 90, 6, 375, 259, 2401, 64, 10354, 19, 4032, 79, 10102, 10354, 18, 4032, 32393, 320, 3331, 10354, 19, 4032, 23912, 343, 600, 3534, 3099, 10354, 16, 5512, 201, 198, 2235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7697, 10354, 90, 6, 79, 10102, 10354, 19, 4032, 32393, 320, 3331, 10354, 17, 4032, 23912, 343, 600, 3534, 3099, 10354, 20, 4032, 74, 296, 77, 1045, 10354, 19, 4032, 15255, 988, 83, 452, 10354, 19, 4032, 3438, 264, 1953, 14029, 1789, 88, 10354, 19, 11709, 201, 198, 2235, 201, 198, 2235, 9288, 796, 1391, 6, 9806, 10354, 90, 6, 79, 10102, 10354, 19, 4032, 3438, 264, 1953, 14029, 1789, 88, 10354, 18, 5512, 201, 198, 2235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 67, 8083, 10354, 90, 6, 79, 10102, 10354, 17, 4032, 3438, 264, 1953, 14029, 1789, 88, 10354, 16, 5512, 201, 198, 2235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 74, 343, 359, 10354, 90, 6, 375, 259, 2401, 64, 10354, 18, 4032, 79, 10102, 10354, 19, 5512, 201, 198, 2235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 349, 4908, 10354, 90, 6, 32393, 320, 3331, 10354, 19, 4032, 23912, 343, 600, 3534, 3099, 10354, 16, 11709, 201, 198, 4798, 7203, 26350, 351, 2546, 4064, 67, 1, 4, 11925, 7, 8692, 4008, 201, 198, 201, 198, 2213, 796, 6121, 7, 8692, 8, 201, 198, 4798, 7203, 7645, 12214, 4943, 201, 198, 5907, 796, 685, 1270, 11, 3064, 11, 2167, 11, 6200, 11, 4059, 11, 15, 60, 201, 198, 2235, 5907, 796, 685, 16, 11, 17, 11, 18, 11, 19, 11, 20, 11, 21, 60, 201, 198, 565, 82, 796, 37250, 65, 41707, 70, 41707, 81, 41707, 66, 41707, 76, 41707, 88, 20520, 201, 198, 4102, 364, 796, 37250, 2637, 11, 3256, 41707, 78, 41707, 85, 41707, 61, 41707, 27, 41707, 29, 41707, 79, 41707, 9, 41707, 10, 20520, 201, 198, 565, 82, 62, 77, 796, 657, 201, 198, 1640, 299, 287, 36545, 25, 201, 198, 220, 220, 220, 1138, 8609, 796, 685, 41, 5653, 35, 11, 47, 4093, 11, 8697, 4093, 11, 4303, 4093, 11, 41, 4134, 446, 11, 5653, 35, 11, 34, 2640, 11, 2246, 2640, 60, 201, 198, 220, 220, 220, 17266, 274, 796, 23884, 201, 198, 220, 220, 220, 329, 985, 287, 1138, 8609, 25, 201, 198, 220, 220, 220, 220, 220, 220, 220, 611, 357, 77, 14512, 657, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 44, 2213, 796, 2378, 46912, 7, 2213, 11, 77, 11, 14323, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 44, 2213, 796, 2378, 46912, 7, 2213, 11, 77, 11, 14323, 11, 25101, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1796, 62, 260, 6359, 796, 23884, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 260, 6359, 796, 23884, 201, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2836, 287, 1332, 25, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1796, 62, 260, 6359, 58, 7220, 60, 796, 23884, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 260, 6359, 58, 7220, 60, 796, 23884, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 2378, 287, 1332, 58, 7220, 5974, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 664, 796, 4313, 3198, 7, 8692, 11, 2213, 11, 270, 44, 2213, 11, 9186, 11, 7220, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 357, 8344, 14512, 939, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1796, 62, 260, 6359, 58, 7220, 7131, 9186, 60, 796, 664, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 260, 6359, 58, 7220, 7131, 9186, 60, 796, 1332, 58, 7220, 7131, 9186, 60, 201, 198, 220, 220, 220, 220, 220, 220, 220, 285, 3609, 796, 8779, 36, 7, 9288, 62, 260, 6359, 11, 11612, 62, 260, 6359, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 44, 3609, 329, 4064, 82, 318, 4064, 69, 1, 4, 7, 14323, 13, 834, 3672, 834, 11, 2611, 68, 4008, 201, 198, 220, 220, 220, 220, 220, 220, 220, 17266, 274, 58, 14323, 13, 834, 3672, 834, 60, 796, 285, 3609, 201, 198, 220, 220, 220, 3601, 7, 2611, 274, 8, 201, 198, 220, 220, 220, 14722, 796, 23243, 7, 2611, 274, 8, 201, 198, 220, 220, 220, 2124, 796, 685, 15, 11, 16, 11, 17, 11, 18, 11, 19, 11, 20, 11, 21, 11, 22, 60, 201, 198, 220, 220, 220, 331, 796, 685, 2611, 274, 58, 72, 60, 329, 1312, 287, 14722, 60, 201, 198, 220, 220, 220, 458, 83, 13, 29487, 7, 87, 11, 88, 11, 8043, 796, 537, 82, 58, 565, 82, 62, 77, 4357, 4102, 263, 796, 19736, 58, 565, 82, 62, 77, 4357, 2815, 413, 5649, 28, 16, 13, 20, 11, 18242, 796, 705, 74, 796, 705, 10, 2536, 7, 77, 4008, 201, 198, 2235, 220, 220, 220, 458, 83, 13, 29487, 7, 87, 11, 88, 4032, 7204, 11537, 201, 198, 220, 220, 220, 537, 82, 62, 77, 15853, 352, 201, 198, 489, 83, 13, 7839, 10786, 2611, 274, 11, 2836, 12, 3106, 11537, 201, 198, 489, 83, 13, 22704, 26933, 12, 16, 11, 23, 11, 15, 13, 22, 11, 16, 13, 16, 12962, 201, 198, 489, 83, 13, 2645, 9608, 10786, 5673, 36, 11537, 201, 198, 489, 83, 13, 87, 18242, 10786, 4164, 10466, 11537, 201, 198, 489, 83, 13, 742, 3378, 7, 87, 11, 23912, 1424, 11, 10599, 341, 11639, 1851, 605, 11537, 201, 198, 489, 83, 13, 7266, 489, 1747, 62, 23032, 7, 22487, 28, 15, 13, 1314, 8, 201, 198, 489, 83, 13, 1455, 437, 3419, 201, 198, 2235, 1640, 1312, 11, 73, 287, 19974, 7, 87, 11, 88, 2599, 201, 198, 2235, 220, 220, 220, 458, 83, 13, 34574, 378, 7, 2536, 7, 744, 7, 73, 11, 19, 36911, 5431, 16193, 72, 12, 15, 13, 20, 11, 73, 10, 15, 13, 486, 4008, 201, 198, 489, 83, 13, 12860, 3419, 201, 198, 2235, 489, 83, 13, 21928, 5647, 10786, 36, 14079, 18683, 35728, 14, 43420, 14, 2611, 274, 12, 9186, 12, 3106, 62, 77, 6, 10, 2536, 7, 77, 47762, 4458, 11134, 11537, 201, 198 ]
1.842479
1,549
from qiskit.circuit.quantumcircuit import QuantumCircuit, QuantumRegister, ClassicalRegister
[ 6738, 10662, 1984, 270, 13, 21170, 5013, 13, 40972, 388, 21170, 5013, 1330, 29082, 31560, 5013, 11, 29082, 38804, 11, 43680, 38804 ]
4.181818
22
import json import logging from urllib.parse import urlencode, parse_qs from urllib.request import urlopen from django.conf import settings from oauth.exceptions import QQAPIException logger = logging.getLogger('django') class OauthQQ(object): """ QQ认证工具类 """ def get_auth_url(self): """ 生成访问qq的拼接路径 :return: """ parameters = { 'response_type': 'code', 'client_id': self.app_id, 'redirect_uri': self.redirect_uri, 'state': self.state, 'scope': 'get_user_info', } return 'https://graph.qq.com/oauth2.0/authorize?' + urlencode(parameters) def get_access_token(self, code): """ 获取QQ的access_token :param code: 重定向域路径中code :return: access_token """ parameters = { 'grant_type': 'authorization_code', 'client_id': self.app_id, 'client_secret': self.app_key, 'code': code, 'redirect_uri': self.redirect_uri } url = 'https://graph.qq.com/oauth2.0/token?' + urlencode(parameters) # access_token=FE04************************CCE2&expires_in=7776000&refresh_token=88E4************************BE14 try: response = urlopen(url).read().decode() response_dict = parse_qs(response) access_token = response_dict.get("access_token")[0] except Exception as e: logger.error(e) raise QQAPIException('获取access_token异常') return access_token def get_openid(self, access_token): """ 获取QQ用户的openid :param access_token: 服务器获取的access_token :return: openid """ url = 'https://graph.qq.com/oauth2.0/me?access_token=' + access_token # callback( {"client_id":"YOUR_APPID","openid":"YOUR_OPENID"} ); try: reponse = urlopen(url).read().decode() # TODO:可以换种方式操作字符串 reponse_dict = json.loads(reponse[10:-4]) except Exception as e: logger.error(e) raise QQAPIException('获取openid异常') return reponse_dict.get('openid')
[ 11748, 33918, 198, 11748, 18931, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 11, 21136, 62, 48382, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 267, 18439, 13, 1069, 11755, 1330, 1195, 48, 17614, 16922, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 10786, 28241, 14208, 11537, 628, 198, 4871, 440, 18439, 48, 48, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1195, 48, 164, 106, 97, 46237, 223, 32432, 98, 17739, 115, 163, 109, 119, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 651, 62, 18439, 62, 6371, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13328, 242, 253, 22755, 238, 164, 106, 123, 29785, 106, 38227, 21410, 162, 233, 120, 162, 236, 98, 164, 115, 107, 36181, 226, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10007, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 26209, 62, 4906, 10354, 705, 8189, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 16366, 62, 312, 10354, 2116, 13, 1324, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 445, 1060, 62, 9900, 10354, 2116, 13, 445, 1060, 62, 9900, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 5219, 10354, 2116, 13, 5219, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 29982, 10354, 705, 1136, 62, 7220, 62, 10951, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 705, 5450, 1378, 34960, 13, 38227, 13, 785, 14, 12162, 1071, 17, 13, 15, 14, 9800, 1096, 8348, 1343, 2956, 11925, 8189, 7, 17143, 7307, 8, 628, 220, 220, 220, 825, 651, 62, 15526, 62, 30001, 7, 944, 11, 2438, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 5525, 236, 115, 20998, 244, 48, 48, 21410, 15526, 62, 30001, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2438, 25, 16268, 229, 235, 22522, 248, 28938, 239, 161, 253, 253, 164, 115, 107, 36181, 226, 40792, 8189, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 1895, 62, 30001, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10007, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 2164, 415, 62, 4906, 10354, 705, 9800, 1634, 62, 8189, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 16366, 62, 312, 10354, 2116, 13, 1324, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 16366, 62, 21078, 10354, 2116, 13, 1324, 62, 2539, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 8189, 10354, 2438, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 445, 1060, 62, 9900, 10354, 2116, 13, 445, 1060, 62, 9900, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 628, 220, 220, 220, 220, 220, 220, 220, 19016, 796, 705, 5450, 1378, 34960, 13, 38227, 13, 785, 14, 12162, 1071, 17, 13, 15, 14, 30001, 8348, 1343, 2956, 11925, 8189, 7, 17143, 7307, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1895, 62, 30001, 28, 15112, 3023, 8412, 4557, 4093, 36, 17, 5, 11201, 2387, 62, 259, 28, 3324, 4304, 830, 5, 5420, 3447, 62, 30001, 28, 3459, 36, 19, 8412, 4557, 12473, 1415, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 19016, 9654, 7, 6371, 737, 961, 22446, 12501, 1098, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 62, 11600, 796, 21136, 62, 48382, 7, 26209, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1895, 62, 30001, 796, 2882, 62, 11600, 13, 1136, 7203, 15526, 62, 30001, 4943, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 35528, 355, 304, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 18224, 7, 68, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 1195, 48, 17614, 16922, 10786, 164, 236, 115, 20998, 244, 15526, 62, 30001, 28156, 224, 30585, 116, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 1895, 62, 30001, 628, 220, 220, 220, 825, 651, 62, 9654, 312, 7, 944, 11, 1895, 62, 30001, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 5525, 236, 115, 20998, 244, 48, 48, 18796, 101, 22755, 115, 21410, 9654, 312, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 1895, 62, 30001, 25, 42164, 235, 27950, 94, 161, 247, 101, 164, 236, 115, 20998, 244, 21410, 15526, 62, 30001, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 1280, 312, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 19016, 796, 705, 5450, 1378, 34960, 13, 38227, 13, 785, 14, 12162, 1071, 17, 13, 15, 14, 1326, 30, 15526, 62, 30001, 11639, 1343, 1895, 62, 30001, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 23838, 7, 19779, 16366, 62, 312, 2404, 56, 11698, 62, 24805, 2389, 2430, 9654, 312, 2404, 56, 11698, 62, 3185, 1677, 2389, 20662, 5619, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1128, 2591, 796, 19016, 9654, 7, 6371, 737, 961, 22446, 12501, 1098, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 16926, 46, 25, 20998, 107, 20015, 98, 162, 235, 95, 163, 100, 235, 43095, 28156, 237, 162, 241, 235, 43291, 27764, 245, 163, 105, 99, 10310, 110, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1128, 2591, 62, 11600, 796, 33918, 13, 46030, 7, 7856, 2591, 58, 940, 21912, 19, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 35528, 355, 304, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 18224, 7, 68, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 1195, 48, 17614, 16922, 10786, 164, 236, 115, 20998, 244, 9654, 312, 28156, 224, 30585, 116, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 1128, 2591, 62, 11600, 13, 1136, 10786, 9654, 312, 11537, 198 ]
1.895147
1,154
# # aac_state_base.py, doom-net # # Created by Andrey Kolishchak on 01/21/17. # import os import datetime import glob from multiprocessing.pool import ThreadPool from threading import Thread import time import h5py import bisect import torch import torch.nn.functional as F import torch.optim as optim from torch.utils.data import Dataset, DataLoader import numpy as np from device import device from model import Model from state_model import StateModel from state_controller import AdvantageActorCriticController import vizdoom
[ 2, 198, 2, 257, 330, 62, 5219, 62, 8692, 13, 9078, 11, 27666, 12, 3262, 198, 2, 198, 2, 15622, 416, 843, 4364, 25910, 680, 354, 461, 319, 5534, 14, 2481, 14, 1558, 13, 198, 2, 198, 11748, 28686, 198, 11748, 4818, 8079, 198, 11748, 15095, 198, 6738, 18540, 305, 919, 278, 13, 7742, 1330, 14122, 27201, 198, 6738, 4704, 278, 1330, 14122, 198, 11748, 640, 198, 11748, 289, 20, 9078, 198, 11748, 47457, 478, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 11, 6060, 17401, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 3335, 1330, 3335, 198, 6738, 2746, 1330, 9104, 198, 6738, 1181, 62, 19849, 1330, 1812, 17633, 198, 6738, 1181, 62, 36500, 1330, 45318, 40277, 18559, 291, 22130, 198, 11748, 48569, 67, 4207, 628 ]
3.563758
149
# Copyright 2021 Huawei Technologies Co., Ltd # # 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. # ============================================================================ """utils""" import sys from pathlib import Path lib_dir = (Path(__file__).parent / '..').resolve() if str(lib_dir) not in sys.path: sys.path.insert(0, str(lib_dir)) ############################ # operations for all tasks # ############################
[ 2, 15069, 33448, 43208, 21852, 1766, 1539, 12052, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2, 198, 2, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 2, 198, 2, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 2, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 2, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 198, 2, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 198, 2, 11247, 739, 262, 13789, 13, 198, 2, 38093, 2559, 18604, 198, 37811, 26791, 37811, 198, 198, 11748, 25064, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 8019, 62, 15908, 796, 357, 15235, 7, 834, 7753, 834, 737, 8000, 1220, 705, 492, 27691, 411, 6442, 3419, 198, 361, 965, 7, 8019, 62, 15908, 8, 407, 287, 25064, 13, 6978, 25, 198, 220, 220, 220, 25064, 13, 6978, 13, 28463, 7, 15, 11, 965, 7, 8019, 62, 15908, 4008, 198, 198, 14468, 7804, 4242, 198, 2, 4560, 329, 477, 8861, 1303, 198, 14468, 7804, 4242, 628 ]
3.944681
235
""" vtelem - Test the channel-group registry's correctness. """ # module under test from vtelem.enums.primitive import Primitive from vtelem.channel.group_registry import ChannelGroupRegistry from vtelem.telemetry.environment import TelemetryEnvironment # internal from . import EnumA def test_group_registry_basic(): """Test simple functionality of a group registry.""" env = TelemetryEnvironment(2 ** 8) assert env.add_from_enum(EnumA) >= 0 reg = ChannelGroupRegistry(env) groups = [ reg.create_group("a"), reg.create_group("b"), reg.create_group("c"), ] # add channels to each group for group in groups: reg.add_channel(group, "a", Primitive.UINT32, 1.0) reg.add_channel(group, "b", Primitive.UINT32, 1.0) reg.add_channel(group, "c", Primitive.UINT32, 1.0) reg.add_enum_channel(group, "test_enum", "enum_a", 1.0) # write channels in each group for group in groups: with reg.group(group) as data: data["a"] = 1 data["b"] = 2 data["c"] = 3 data["test_enum"] = "b" # read channels in each group to make sure correct values were written for group in groups: with reg.group(group) as data: assert data["a"] == 1 assert data["b"] == 2 assert data["c"] == 3 assert data["test_enum"] == "b"
[ 37811, 198, 85, 660, 10671, 532, 6208, 262, 6518, 12, 8094, 20478, 338, 29409, 13, 198, 37811, 198, 198, 2, 8265, 739, 1332, 198, 6738, 410, 660, 10671, 13, 268, 5700, 13, 19795, 1800, 1330, 11460, 1800, 198, 6738, 410, 660, 10671, 13, 17620, 13, 8094, 62, 2301, 4592, 1330, 11102, 13247, 8081, 4592, 198, 6738, 410, 660, 10671, 13, 46813, 41935, 13, 38986, 1330, 14318, 41935, 31441, 198, 198, 2, 5387, 198, 6738, 764, 1330, 2039, 388, 32, 628, 198, 4299, 1332, 62, 8094, 62, 2301, 4592, 62, 35487, 33529, 198, 220, 220, 220, 37227, 14402, 2829, 11244, 286, 257, 1448, 20478, 526, 15931, 628, 220, 220, 220, 17365, 796, 14318, 41935, 31441, 7, 17, 12429, 807, 8, 198, 220, 220, 220, 6818, 17365, 13, 2860, 62, 6738, 62, 44709, 7, 4834, 388, 32, 8, 18189, 657, 198, 220, 220, 220, 842, 796, 11102, 13247, 8081, 4592, 7, 24330, 8, 198, 220, 220, 220, 2628, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 842, 13, 17953, 62, 8094, 7203, 64, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 842, 13, 17953, 62, 8094, 7203, 65, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 842, 13, 17953, 62, 8094, 7203, 66, 12340, 198, 220, 220, 220, 2361, 628, 220, 220, 220, 1303, 751, 9619, 284, 1123, 1448, 198, 220, 220, 220, 329, 1448, 287, 2628, 25, 198, 220, 220, 220, 220, 220, 220, 220, 842, 13, 2860, 62, 17620, 7, 8094, 11, 366, 64, 1600, 11460, 1800, 13, 52, 12394, 2624, 11, 352, 13, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 842, 13, 2860, 62, 17620, 7, 8094, 11, 366, 65, 1600, 11460, 1800, 13, 52, 12394, 2624, 11, 352, 13, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 842, 13, 2860, 62, 17620, 7, 8094, 11, 366, 66, 1600, 11460, 1800, 13, 52, 12394, 2624, 11, 352, 13, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 842, 13, 2860, 62, 44709, 62, 17620, 7, 8094, 11, 366, 9288, 62, 44709, 1600, 366, 44709, 62, 64, 1600, 352, 13, 15, 8, 628, 220, 220, 220, 1303, 3551, 9619, 287, 1123, 1448, 198, 220, 220, 220, 329, 1448, 287, 2628, 25, 198, 220, 220, 220, 220, 220, 220, 220, 351, 842, 13, 8094, 7, 8094, 8, 355, 1366, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 14692, 64, 8973, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 14692, 65, 8973, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 14692, 66, 8973, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 14692, 9288, 62, 44709, 8973, 796, 366, 65, 1, 628, 220, 220, 220, 1303, 1100, 9619, 287, 1123, 1448, 284, 787, 1654, 3376, 3815, 547, 3194, 198, 220, 220, 220, 329, 1448, 287, 2628, 25, 198, 220, 220, 220, 220, 220, 220, 220, 351, 842, 13, 8094, 7, 8094, 8, 355, 1366, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 1366, 14692, 64, 8973, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 1366, 14692, 65, 8973, 6624, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 1366, 14692, 66, 8973, 6624, 513, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 1366, 14692, 9288, 62, 44709, 8973, 6624, 366, 65, 1, 198 ]
2.389831
590
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt res = [line.strip().split('\t') for line in open("sizes.txt").readlines()] a = [] for line in res: sizes = [int(i) for i in line[1].split(',')] strands = [j for j in line[2].split(',')] for si, st in zip(sizes, strands): a.append((line[0], si, st)) df = pd.DataFrame(a, columns=['name', 'length', 'strand1']) df.loc[df.strand1 == "True", 'strand'] = '-' df.loc[df.strand1 == "False", 'strand'] = '+' df.replace(dict(d6843='Patient1', d5945='Patient2'), regex=True, inplace=True ) plt.close("all") sns.swarmplot(x="name", y="length", data=df, hue="strand") plt.legend(loc='upper left', title="strand", frameon=False) plt.show()
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 411, 796, 685, 1370, 13, 36311, 22446, 35312, 10786, 59, 83, 11537, 329, 1627, 287, 1280, 7203, 82, 4340, 13, 14116, 11074, 961, 6615, 3419, 60, 198, 198, 64, 796, 17635, 198, 198, 1640, 1627, 287, 581, 25, 198, 220, 220, 220, 10620, 796, 685, 600, 7, 72, 8, 329, 1312, 287, 1627, 58, 16, 4083, 35312, 7, 3256, 11537, 60, 198, 220, 220, 220, 36593, 796, 685, 73, 329, 474, 287, 1627, 58, 17, 4083, 35312, 7, 3256, 11537, 60, 198, 220, 220, 220, 329, 33721, 11, 336, 287, 19974, 7, 82, 4340, 11, 36593, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 257, 13, 33295, 19510, 1370, 58, 15, 4357, 33721, 11, 336, 4008, 198, 198, 7568, 796, 279, 67, 13, 6601, 19778, 7, 64, 11, 15180, 28, 17816, 3672, 3256, 705, 13664, 3256, 705, 2536, 392, 16, 6, 12962, 198, 7568, 13, 17946, 58, 7568, 13, 2536, 392, 16, 6624, 366, 17821, 1600, 705, 2536, 392, 20520, 796, 705, 19355, 198, 7568, 13, 17946, 58, 7568, 13, 2536, 392, 16, 6624, 366, 25101, 1600, 705, 2536, 392, 20520, 796, 705, 10, 6, 198, 7568, 13, 33491, 7, 11600, 7, 67, 3104, 3559, 11639, 12130, 1153, 16, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 3270, 2231, 11639, 12130, 1153, 17, 33809, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40364, 28, 17821, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 5372, 28, 17821, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 198, 489, 83, 13, 19836, 7203, 439, 4943, 198, 82, 5907, 13, 2032, 1670, 29487, 7, 87, 2625, 3672, 1600, 331, 2625, 13664, 1600, 1366, 28, 7568, 11, 37409, 2625, 2536, 392, 4943, 198, 489, 83, 13, 1455, 437, 7, 17946, 11639, 45828, 1364, 3256, 3670, 2625, 2536, 392, 1600, 5739, 261, 28, 25101, 8, 198, 489, 83, 13, 12860, 3419, 198 ]
2.170868
357
from itertools import starmap, filterfalse, zip_longest from itertools import chain import functools from functools import reduce as reduce_ import operator from collections import namedtuple import toolz from toolz import pipe as pipe_, compose as compose_ from ._iterators import _iterators_controller, _controlled_iterator """ designing a lookup scheme. accepts any Iterable for each item in this iterable - computes a key value from the item data using a provided callable - checks if a provided lookup map contains this key if yes: - outputs this item optionally enriched with the lookup data using another provided callable if no: if rejects are enabled: - outputs this item in a separate iterator """ @stream_converter.dispatch(tuple, tuple) @stream_converter.dispatch(dict, dict) @stream_converter.dispatch(namedtuple, namedtuple) @stream_converter.dispatch(tuple, dict, key_type=str) @stream_converter.dispatch(tuple, dict, key_type=int) @stream_converter.dispatch(tuple, namedtuple) @stream_converter.dispatch(dict, tuple) @stream_converter.dispatch(dict, namedtuple) @stream_converter.dispatch(namedtuple, dict) @stream_converter.dispatch(namedtuple, tuple) def xargs(g, funcs, as_iterable=False): """returns a function that accepts a tuple as an arguments and then maps each element of this tuple to one of the funcs generating another tuple in the process. Finally, the function g is called with the tuple elements as arguments. If the tuple does not contain enough elements to map all the funcs, the last element is repeated to provide an argument to the remaining funcs """ return inner
[ 6738, 340, 861, 10141, 1330, 336, 1670, 499, 11, 8106, 9562, 11, 19974, 62, 6511, 395, 198, 6738, 340, 861, 10141, 1330, 6333, 198, 198, 11748, 1257, 310, 10141, 198, 6738, 1257, 310, 10141, 1330, 4646, 355, 4646, 62, 198, 198, 11748, 10088, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 11748, 2891, 89, 198, 6738, 2891, 89, 1330, 12656, 355, 12656, 62, 11, 36664, 355, 36664, 62, 628, 198, 6738, 47540, 2676, 2024, 1330, 4808, 2676, 2024, 62, 36500, 11, 4808, 14401, 62, 48727, 628, 628, 628, 628, 198, 198, 37811, 198, 18492, 257, 35847, 7791, 13, 198, 18178, 597, 40806, 540, 198, 329, 1123, 2378, 287, 428, 11629, 540, 198, 532, 552, 1769, 257, 1994, 1988, 422, 262, 2378, 1366, 1262, 257, 2810, 869, 540, 198, 532, 8794, 611, 257, 2810, 35847, 3975, 4909, 428, 1994, 198, 611, 3763, 25, 198, 220, 220, 220, 532, 23862, 428, 2378, 42976, 35601, 351, 262, 35847, 1366, 1262, 198, 220, 220, 220, 220, 220, 1194, 2810, 869, 540, 198, 220, 611, 645, 25, 198, 220, 220, 220, 611, 28317, 389, 9343, 25, 198, 220, 220, 220, 220, 220, 532, 23862, 428, 2378, 287, 257, 4553, 41313, 198, 37811, 628, 628, 628, 628, 628, 628, 198, 31, 5532, 62, 1102, 332, 353, 13, 6381, 17147, 7, 83, 29291, 11, 46545, 8, 198, 31, 5532, 62, 1102, 332, 353, 13, 6381, 17147, 7, 11600, 11, 8633, 8, 198, 31, 5532, 62, 1102, 332, 353, 13, 6381, 17147, 7, 13190, 83, 29291, 11, 3706, 83, 29291, 8, 628, 198, 31, 5532, 62, 1102, 332, 353, 13, 6381, 17147, 7, 83, 29291, 11, 8633, 11, 1994, 62, 4906, 28, 2536, 8, 628, 198, 31, 5532, 62, 1102, 332, 353, 13, 6381, 17147, 7, 83, 29291, 11, 8633, 11, 1994, 62, 4906, 28, 600, 8, 628, 198, 31, 5532, 62, 1102, 332, 353, 13, 6381, 17147, 7, 83, 29291, 11, 3706, 83, 29291, 8, 628, 198, 31, 5532, 62, 1102, 332, 353, 13, 6381, 17147, 7, 11600, 11, 46545, 8, 628, 198, 31, 5532, 62, 1102, 332, 353, 13, 6381, 17147, 7, 11600, 11, 3706, 83, 29291, 8, 628, 198, 31, 5532, 62, 1102, 332, 353, 13, 6381, 17147, 7, 13190, 83, 29291, 11, 8633, 8, 628, 198, 31, 5532, 62, 1102, 332, 353, 13, 6381, 17147, 7, 13190, 83, 29291, 11, 46545, 8, 628, 198, 198, 4299, 2124, 22046, 7, 70, 11, 1257, 6359, 11, 355, 62, 2676, 540, 28, 25101, 2599, 198, 220, 220, 220, 37227, 7783, 82, 257, 2163, 326, 18178, 257, 46545, 355, 281, 7159, 290, 788, 198, 220, 220, 220, 8739, 1123, 5002, 286, 428, 46545, 284, 530, 286, 262, 1257, 6359, 15453, 1194, 198, 220, 220, 220, 46545, 287, 262, 1429, 13, 9461, 11, 262, 2163, 308, 318, 1444, 351, 262, 46545, 198, 220, 220, 220, 4847, 355, 7159, 13, 198, 220, 220, 220, 1002, 262, 46545, 857, 407, 3994, 1576, 4847, 284, 3975, 477, 262, 1257, 6359, 11, 198, 220, 220, 220, 262, 938, 5002, 318, 5100, 284, 2148, 281, 4578, 284, 262, 5637, 1257, 6359, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1441, 8434, 198 ]
3.280769
520
# -*- coding: utf-8 -*- """Mocks for tests.""" from typing import Optional, Tuple import torch from torch import nn from pykeen.models import EntityRelationEmbeddingModel, Model from pykeen.nn.emb import EmbeddingSpecification, RepresentationModule from pykeen.triples import TriplesFactory __all__ = [ 'CustomRepresentations', 'MockModel', ] class CustomRepresentations(RepresentationModule): """A custom representation module with minimal implementation.""" class MockModel(EntityRelationEmbeddingModel): """A mock model returning fake scores.""" def _generate_fake_scores(self, batch: torch.LongTensor) -> torch.FloatTensor: """Generate fake scores s[b, i] = i of size (batch_size, num_entities).""" batch_size = batch.shape[0] batch_scores = self.scores.view(1, -1).repeat(batch_size, 1) assert batch_scores.shape == (batch_size, self.num_entities) return batch_scores
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 44, 3320, 329, 5254, 526, 15931, 198, 198, 6738, 19720, 1330, 32233, 11, 309, 29291, 198, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 198, 6738, 12972, 365, 268, 13, 27530, 1330, 20885, 6892, 341, 31567, 6048, 278, 17633, 11, 9104, 198, 6738, 12972, 365, 268, 13, 20471, 13, 24419, 1330, 13302, 6048, 278, 22882, 2649, 11, 10858, 341, 26796, 198, 6738, 12972, 365, 268, 13, 28461, 2374, 1330, 7563, 2374, 22810, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 15022, 40171, 602, 3256, 198, 220, 220, 220, 705, 44, 735, 17633, 3256, 198, 60, 628, 198, 4871, 8562, 40171, 602, 7, 40171, 341, 26796, 2599, 198, 220, 220, 220, 37227, 32, 2183, 10552, 8265, 351, 10926, 7822, 526, 15931, 628, 198, 4871, 44123, 17633, 7, 32398, 6892, 341, 31567, 6048, 278, 17633, 2599, 198, 220, 220, 220, 37227, 32, 15290, 2746, 8024, 8390, 8198, 526, 15931, 628, 220, 220, 220, 825, 4808, 8612, 378, 62, 30706, 62, 1416, 2850, 7, 944, 11, 15458, 25, 28034, 13, 14617, 51, 22854, 8, 4613, 28034, 13, 43879, 51, 22854, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 8645, 378, 8390, 8198, 264, 58, 65, 11, 1312, 60, 796, 1312, 286, 2546, 357, 43501, 62, 7857, 11, 997, 62, 298, 871, 21387, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 15458, 62, 7857, 796, 15458, 13, 43358, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 15458, 62, 1416, 2850, 796, 2116, 13, 1416, 2850, 13, 1177, 7, 16, 11, 532, 16, 737, 44754, 7, 43501, 62, 7857, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 15458, 62, 1416, 2850, 13, 43358, 6624, 357, 43501, 62, 7857, 11, 2116, 13, 22510, 62, 298, 871, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 15458, 62, 1416, 2850, 198 ]
2.883792
327
import re def email(value): """Validate an email address >>> email("[email protected]") True >>> email("barneydino.com") 'An email address must contain a single @' """ usernameRE = re.compile(r"^[^ \t\n\r@<>()]+$", re.I) domainRE = re.compile(r''' ^(?:[a-z0-9][a-z0-9\-]{0,62}\.)+ # (sub)domain - alpha followed by 62max chars (63 total) [a-z]{2,}$ # TLD ''', re.I | re.VERBOSE) messages = dict( empty='Please enter an email address', noAt='An email address must contain a single @', badUsername='The username portion of the email address is invalid' ' (the portion before the @: {username!s}', socketError='An error occured when trying to connect to the server:' ' {error!s}', badDomain='The domain portion of the email address is invalid' ' (the portion after the @: {domain!s}', domainDoesNotExist='The domain of the email address does not exist' ' (the portion after the @: {domain!s}') if not value: return messages['empty'] value = value.strip() splitted = value.split('@', 1) try: username, domain=splitted except ValueError: return messages['noAt'] if not usernameRE.search(username): return messages['badUsername'].format(username=username) if not domainRE.search(domain): return messages['badDomain'].format(domain=domain) return True def url(value): """Validate a URL completely >>> url("ixmat.us") True >>> url("ixmat") 'You must provide a full domain name (like ixmat.com)' """ messages = dict( noScheme='You must start your URL with http://, https://, etc', badURL='That is not a valid URL', httpError='An error occurred when trying to access the URL: {error!s}', socketError='An error occured when trying to connect to the server: {error!s}', notFound='The server responded that the page could not be found', status='The server responded with a bad status code ({status!s})', noTLD='You must provide a full domain name (like {domain!s}.com)') url_re = re.compile(r''' ^(http|https):// (?:[%:\w]*@)? # authenticator (?: # ip or domain (?P<ip>(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))| (?P<domain>[a-z0-9][a-z0-9\-]{,62}\.)* # subdomain (?P<tld>[a-z]{2,63}|xn--[a-z0-9\-]{2,59}) # top level domain ) (?::[0-9]{1,5})? # port # files/delims/etc (?P<path>/[a-z0-9\-\._~:/\?#\[\]@!%\$&\'\(\)\*\+,;=]*)? $ ''', re.I | re.VERBOSE) scheme_re = re.compile(r'^[a-zA-Z]+:') value = value.strip() if not scheme_re.search(value): value = "http://" + value value = encode_idna(value) match = scheme_re.search(value) if not match: return messages['noScheme'] value = match.group(0).lower() + value[len(match.group(0)):] match = url_re.search(value) if not match: return messages['badURL'] if not match.group('domain'): return messages['noTLD'].format(domain=match.group('tld')) return True
[ 11748, 302, 628, 198, 4299, 3053, 7, 8367, 2599, 198, 220, 220, 220, 37227, 7762, 20540, 281, 3053, 2209, 198, 220, 220, 220, 220, 198, 220, 220, 220, 13163, 3053, 7203, 5657, 1681, 31, 14225, 10137, 2879, 13, 785, 4943, 198, 220, 220, 220, 6407, 198, 220, 220, 220, 13163, 3053, 7203, 5657, 1681, 67, 2879, 13, 785, 4943, 198, 220, 220, 220, 705, 2025, 3053, 2209, 1276, 3994, 257, 2060, 2488, 6, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 20579, 2200, 796, 302, 13, 5589, 576, 7, 81, 1, 61, 58, 61, 3467, 83, 59, 77, 59, 81, 31, 27, 29, 3419, 48688, 3, 1600, 302, 13, 40, 8, 198, 220, 220, 220, 7386, 2200, 796, 302, 13, 5589, 576, 7, 81, 7061, 6, 198, 220, 220, 220, 220, 220, 220, 220, 10563, 7, 27514, 58, 64, 12, 89, 15, 12, 24, 7131, 64, 12, 89, 15, 12, 24, 41441, 60, 90, 15, 11, 5237, 32239, 2014, 10, 1303, 357, 7266, 8, 27830, 532, 17130, 3940, 416, 8190, 9806, 34534, 357, 5066, 2472, 8, 198, 220, 220, 220, 220, 220, 220, 220, 685, 64, 12, 89, 60, 90, 17, 11, 92, 3, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 309, 11163, 198, 220, 220, 220, 10148, 3256, 302, 13, 40, 930, 302, 13, 5959, 33, 14058, 8, 628, 220, 220, 220, 6218, 796, 8633, 7, 198, 220, 220, 220, 220, 220, 220, 220, 6565, 11639, 5492, 3802, 281, 3053, 2209, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 645, 2953, 11639, 2025, 3053, 2209, 1276, 3994, 257, 2060, 2488, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 2089, 5842, 13292, 11639, 464, 20579, 6903, 286, 262, 3053, 2209, 318, 12515, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 357, 1169, 6903, 878, 262, 2488, 25, 1391, 29460, 0, 82, 92, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 17802, 12331, 11639, 2025, 4049, 1609, 1522, 618, 2111, 284, 2018, 284, 262, 4382, 32105, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1391, 18224, 0, 82, 92, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 2089, 43961, 11639, 464, 7386, 6903, 286, 262, 3053, 2209, 318, 12515, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 357, 1169, 6903, 706, 262, 2488, 25, 1391, 27830, 0, 82, 92, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 7386, 13921, 3673, 3109, 396, 11639, 464, 7386, 286, 262, 3053, 2209, 857, 407, 2152, 6, 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, 705, 357, 1169, 6903, 706, 262, 2488, 25, 1391, 27830, 0, 82, 92, 11537, 628, 220, 220, 220, 611, 407, 1988, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6218, 17816, 28920, 20520, 628, 220, 220, 220, 1988, 796, 1988, 13, 36311, 3419, 198, 220, 220, 220, 4328, 2175, 796, 1988, 13, 35312, 10786, 31, 3256, 352, 8, 628, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 20579, 11, 7386, 28, 22018, 2175, 198, 220, 220, 220, 2845, 11052, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6218, 17816, 3919, 2953, 20520, 628, 220, 220, 220, 611, 407, 20579, 2200, 13, 12947, 7, 29460, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6218, 17816, 14774, 5842, 13292, 6, 4083, 18982, 7, 29460, 28, 29460, 8, 628, 220, 220, 220, 611, 407, 7386, 2200, 13, 12947, 7, 27830, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6218, 17816, 14774, 43961, 6, 4083, 18982, 7, 27830, 28, 27830, 8, 628, 220, 220, 220, 1441, 6407, 628, 198, 4299, 19016, 7, 8367, 2599, 198, 220, 220, 220, 37227, 7762, 20540, 257, 10289, 3190, 628, 220, 220, 220, 13163, 19016, 7203, 844, 6759, 13, 385, 4943, 198, 220, 220, 220, 6407, 198, 220, 220, 220, 13163, 19016, 7203, 844, 6759, 4943, 198, 220, 220, 220, 705, 1639, 1276, 2148, 257, 1336, 7386, 1438, 357, 2339, 220, 844, 6759, 13, 785, 33047, 628, 220, 220, 220, 37227, 628, 220, 220, 220, 6218, 796, 8633, 7, 198, 220, 220, 220, 220, 220, 220, 220, 645, 27054, 1326, 11639, 1639, 1276, 923, 534, 10289, 351, 2638, 1378, 11, 3740, 1378, 11, 3503, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 2089, 21886, 11639, 2504, 318, 407, 257, 4938, 10289, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 2638, 12331, 11639, 2025, 4049, 5091, 618, 2111, 284, 1895, 262, 10289, 25, 1391, 18224, 0, 82, 92, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 17802, 12331, 11639, 2025, 4049, 1609, 1522, 618, 2111, 284, 2018, 284, 262, 4382, 25, 1391, 18224, 0, 82, 92, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 407, 21077, 11639, 464, 4382, 7082, 326, 262, 2443, 714, 407, 307, 1043, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 3722, 11639, 464, 4382, 7082, 351, 257, 2089, 3722, 2438, 37913, 13376, 0, 82, 30072, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 645, 51, 11163, 11639, 1639, 1276, 2148, 257, 1336, 7386, 1438, 357, 2339, 1391, 27830, 0, 82, 27422, 785, 8, 11537, 628, 220, 220, 220, 19016, 62, 260, 796, 302, 13, 5589, 576, 7, 81, 7061, 6, 198, 220, 220, 220, 220, 220, 220, 220, 10563, 7, 4023, 91, 5450, 8, 1378, 198, 220, 220, 220, 220, 220, 220, 220, 357, 27514, 58, 4, 7479, 86, 60, 9, 31, 19427, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 16425, 1352, 198, 220, 220, 220, 220, 220, 220, 220, 357, 27514, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 20966, 393, 7386, 198, 220, 220, 220, 220, 220, 220, 220, 357, 30, 47, 27, 541, 33994, 27514, 7, 27514, 1495, 58, 15, 12, 20, 60, 91, 17, 58, 15, 12, 19, 7131, 15, 12, 24, 60, 91, 58, 486, 60, 30, 58, 15, 12, 24, 7131, 15, 12, 24, 60, 10091, 59, 2014, 90, 18, 92, 7, 27514, 1495, 58, 15, 12, 20, 60, 91, 17, 58, 15, 12, 19, 7131, 15, 12, 24, 60, 91, 58, 486, 60, 30, 58, 15, 12, 24, 7131, 15, 12, 24, 60, 30, 4008, 91, 198, 220, 220, 220, 220, 220, 220, 220, 357, 30, 47, 27, 27830, 36937, 64, 12, 89, 15, 12, 24, 7131, 64, 12, 89, 15, 12, 24, 41441, 60, 90, 11, 5237, 32239, 2014, 9, 220, 220, 220, 220, 1303, 850, 27830, 198, 220, 220, 220, 220, 220, 220, 220, 357, 30, 47, 27, 83, 335, 36937, 64, 12, 89, 60, 90, 17, 11, 5066, 92, 91, 87, 77, 438, 58, 64, 12, 89, 15, 12, 24, 41441, 60, 90, 17, 11, 3270, 30072, 220, 1303, 1353, 1241, 7386, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 357, 30, 3712, 58, 15, 12, 24, 60, 90, 16, 11, 20, 92, 19427, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2493, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3696, 14, 12381, 12078, 14, 14784, 198, 220, 220, 220, 220, 220, 220, 220, 357, 30, 47, 27, 6978, 29, 14, 58, 64, 12, 89, 15, 12, 24, 41441, 59, 13557, 93, 14079, 59, 30, 2, 59, 58, 59, 60, 31, 0, 4, 59, 3, 5, 43054, 59, 38016, 19415, 9, 59, 28200, 26, 48874, 9, 19427, 198, 220, 220, 220, 220, 220, 220, 220, 720, 198, 220, 220, 220, 10148, 3256, 302, 13, 40, 930, 302, 13, 5959, 33, 14058, 8, 628, 220, 220, 220, 7791, 62, 260, 796, 302, 13, 5589, 576, 7, 81, 6, 61, 58, 64, 12, 89, 32, 12, 57, 48688, 25, 11537, 628, 220, 220, 220, 1988, 796, 1988, 13, 36311, 3419, 628, 220, 220, 220, 611, 407, 7791, 62, 260, 13, 12947, 7, 8367, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 366, 4023, 1378, 1, 1343, 1988, 628, 220, 220, 220, 1988, 796, 37773, 62, 312, 2616, 7, 8367, 8, 198, 220, 220, 220, 2872, 796, 7791, 62, 260, 13, 12947, 7, 8367, 8, 628, 220, 220, 220, 611, 407, 2872, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6218, 17816, 3919, 27054, 1326, 20520, 628, 220, 220, 220, 1988, 796, 2872, 13, 8094, 7, 15, 737, 21037, 3419, 1343, 1988, 58, 11925, 7, 15699, 13, 8094, 7, 15, 8, 2599, 60, 198, 220, 220, 220, 2872, 796, 19016, 62, 260, 13, 12947, 7, 8367, 8, 628, 220, 220, 220, 611, 407, 2872, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6218, 17816, 14774, 21886, 20520, 628, 220, 220, 220, 611, 407, 2872, 13, 8094, 10786, 27830, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6218, 17816, 3919, 51, 11163, 6, 4083, 18982, 7, 27830, 28, 15699, 13, 8094, 10786, 83, 335, 6, 4008, 628, 220, 220, 220, 1441, 6407, 628 ]
2.11995
1,609
import json import urllib import requests import Config import logging logging.basicConfig(level=logging.DEBUG) # Class to access the new Twitch 'HELIX' API # The class receives it's authentication from a dictionary (HEADERS) in the Config.py file. # The "Bearer" token must have the required scopes to perform successful API calls. # Function to make a JSON request to the Twitch API # Get the ID of a given username # Gather all available data for a specified user # Get first 100 moderators of a channel. "Pagination" must be used for more than 100 results. # Request requires a valid Bearer (Helix Oauth) token. # Check if a specified user is a moderator in the channel # Check if a specified user is following the channel # Check if a viewer is subscribed to teh channel # Creates a clip from the live stream. Test when live as # when not live it shows a previously created clip. # Check if a user is banned from the channel # Get followed channel since date # The following functions use the Twitch V5 API and require a separate token (OAuth) # The below will retrieve current "Chatters" in a channel. # THESE ARE NOT A TWITCH API FUNCTIONS - UNDOCUMENTED # This has a delayed refresh time (currently unknown). # Note: Due to some viewers/bots being connected anon to the channel # this will only show chatters and not all viewers.
[ 11748, 33918, 198, 11748, 2956, 297, 571, 198, 11748, 7007, 198, 11748, 17056, 198, 11748, 18931, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 30531, 8, 628, 198, 2, 5016, 284, 1895, 262, 649, 23835, 705, 39, 3698, 10426, 6, 7824, 198, 2, 383, 1398, 11583, 340, 338, 18239, 422, 257, 22155, 357, 37682, 4877, 8, 287, 262, 17056, 13, 9078, 2393, 13, 198, 2, 383, 366, 3856, 11258, 1, 11241, 1276, 423, 262, 2672, 629, 13920, 284, 1620, 4388, 7824, 3848, 13, 628, 220, 220, 220, 1303, 15553, 284, 787, 257, 19449, 2581, 284, 262, 23835, 7824, 628, 220, 220, 220, 1303, 3497, 262, 4522, 286, 257, 1813, 20579, 628, 220, 220, 220, 1303, 402, 1032, 477, 1695, 1366, 329, 257, 7368, 2836, 628, 220, 220, 220, 1303, 3497, 717, 1802, 37265, 286, 257, 6518, 13, 366, 47, 363, 1883, 1, 1276, 307, 973, 329, 517, 621, 1802, 2482, 13, 198, 220, 220, 220, 1303, 19390, 4433, 257, 4938, 1355, 11258, 357, 12621, 844, 440, 18439, 8, 11241, 13, 628, 220, 220, 220, 1303, 6822, 611, 257, 7368, 2836, 318, 257, 31847, 287, 262, 6518, 628, 220, 220, 220, 1303, 6822, 611, 257, 7368, 2836, 318, 1708, 262, 6518, 628, 220, 220, 220, 1303, 6822, 611, 257, 19091, 318, 45794, 284, 573, 71, 6518, 628, 220, 220, 220, 1303, 7921, 274, 257, 10651, 422, 262, 2107, 4269, 13, 6208, 618, 2107, 355, 198, 220, 220, 220, 1303, 618, 407, 2107, 340, 2523, 257, 4271, 2727, 10651, 13, 628, 220, 220, 220, 1303, 6822, 611, 257, 2836, 318, 9301, 422, 262, 6518, 628, 220, 220, 220, 1303, 3497, 3940, 6518, 1201, 3128, 628, 220, 220, 220, 1303, 383, 1708, 5499, 779, 262, 23835, 569, 20, 7824, 290, 2421, 257, 4553, 11241, 357, 23621, 1071, 8, 628, 220, 220, 220, 1303, 383, 2174, 481, 19818, 1459, 366, 30820, 1010, 1, 287, 257, 6518, 13, 198, 220, 220, 220, 1303, 48947, 15986, 5626, 317, 17306, 31949, 7824, 29397, 4177, 11053, 532, 4725, 38715, 5883, 3525, 1961, 198, 220, 220, 220, 1303, 770, 468, 257, 11038, 14976, 640, 357, 41745, 6439, 737, 198, 220, 220, 220, 1303, 5740, 25, 14444, 284, 617, 10209, 14, 42478, 852, 5884, 281, 261, 284, 262, 6518, 198, 220, 220, 220, 1303, 428, 481, 691, 905, 8537, 1010, 290, 407, 477, 10209, 13, 198 ]
3.644501
391
#! /usr/bin/env python # -*- coding: utf-8 -*- import sys import os g_playerDict = {'player1':u"nobody", 'player2':u"nobody", 'player3':u"nobody", 'player4':u"nobody", 'player5':u"nobody", 'player6':u"nobody", 'player7':u"nobody", 'player8':u"nobody", 'player9':u"nobody", 'player10':u"nobody", 'player11':u"nobody", 'player12':u"nobody", 'player13':u"nobody", 'player14':u"nobody", 'player15':u"nobody", 'player16':u"nobody", }
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 70, 62, 7829, 35, 713, 796, 1391, 6, 7829, 16, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 17, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 18, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 19, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 20, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 21, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 22, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 23, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 24, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 940, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 1157, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 1065, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 1485, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 1415, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 1314, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7829, 1433, 10354, 84, 1, 34952, 1118, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 198 ]
1.557823
441
#!E:\py_virtual_env\saas_project\Scripts\python.exe # -*- coding: utf-8 -*- from django import forms from web import models from django.core.validators import RegexValidator,ValidationError from django.core.exceptions import ValidationError from django.conf import settings from django_redis import get_redis_connection from utils import encrypt from utils.tencent.sms import send_sms_single import random
[ 2, 0, 36, 7479, 9078, 62, 32844, 62, 24330, 59, 11400, 292, 62, 16302, 59, 7391, 82, 59, 29412, 13, 13499, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 3992, 1330, 4981, 198, 6738, 42625, 14208, 13, 7295, 13, 12102, 2024, 1330, 797, 25636, 47139, 1352, 11, 7762, 24765, 12331, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 62, 445, 271, 1330, 651, 62, 445, 271, 62, 38659, 198, 6738, 3384, 4487, 1330, 34117, 198, 6738, 3384, 4487, 13, 1452, 1087, 13, 82, 907, 1330, 3758, 62, 82, 907, 62, 29762, 198, 11748, 4738, 198 ]
3.222222
126
''' When squirrels get together for a party, they like to have cigars. A squirrel party is successful when the number of cigars is between 40 and 60, inclusive. Unless it is the weekend, in which case there is no upper bound on the number of cigars. Return True if the party with the given values is successful, or False otherwise. '''
[ 7061, 6, 198, 2215, 33039, 82, 651, 1978, 329, 257, 2151, 11, 484, 588, 284, 423, 33204, 13, 317, 33039, 198, 10608, 318, 4388, 618, 262, 1271, 286, 33204, 318, 1022, 2319, 290, 3126, 11, 198, 259, 5731, 13, 17486, 340, 318, 262, 5041, 11, 287, 543, 1339, 612, 318, 645, 6727, 5421, 319, 198, 1169, 1271, 286, 33204, 13, 8229, 6407, 611, 262, 2151, 351, 262, 1813, 3815, 318, 198, 17212, 11, 393, 10352, 4306, 13, 198, 7061, 6, 198 ]
4.148148
81
class NotifyIcon(Component, IComponent, IDisposable): """ Specifies a component that creates an icon in the notification area. This class cannot be inherited. NotifyIcon() NotifyIcon(container: IContainer) """ def Dispose(self): """ Dispose(self: NotifyIcon,disposing: bool) """ pass def GetService(self, *args): """ GetService(self: Component,service: Type) -> object Returns an object that represents a service provided by the System.ComponentModel.Component or by its System.ComponentModel.Container. service: A service provided by the System.ComponentModel.Component. Returns: An System.Object that represents a service provided by the System.ComponentModel.Component,or null if the System.ComponentModel.Component does not provide the specified service. """ pass def MemberwiseClone(self, *args): """ MemberwiseClone(self: MarshalByRefObject,cloneIdentity: bool) -> MarshalByRefObject Creates a shallow copy of the current System.MarshalByRefObject object. cloneIdentity: false to delete the current System.MarshalByRefObject object's identity,which will cause the object to be assigned a new identity when it is marshaled across a remoting boundary. A value of false is usually appropriate. true to copy the current System.MarshalByRefObject object's identity to its clone,which will cause remoting client calls to be routed to the remote server object. Returns: A shallow copy of the current System.MarshalByRefObject object. MemberwiseClone(self: object) -> object Creates a shallow copy of the current System.Object. Returns: A shallow copy of the current System.Object. """ pass def ShowBalloonTip(self, timeout, tipTitle=None, tipText=None, tipIcon=None): """ ShowBalloonTip(self: NotifyIcon,timeout: int,tipTitle: str,tipText: str,tipIcon: ToolTipIcon) Displays a balloon tip with the specified title,text,and icon in the taskbar for the specified time period. timeout: The time period,in milliseconds,the balloon tip should display. tipTitle: The title to display on the balloon tip. tipText: The text to display on the balloon tip. tipIcon: One of the System.Windows.Forms.ToolTipIcon values. ShowBalloonTip(self: NotifyIcon,timeout: int) Displays a balloon tip in the taskbar for the specified time period. timeout: The time period,in milliseconds,the balloon tip should display. """ pass def __enter__(self, *args): """ __enter__(self: IDisposable) -> object Provides the implementation of __enter__ for objects which implement IDisposable. """ pass def __exit__(self, *args): """ __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) Provides the implementation of __exit__ for objects which implement IDisposable. """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, container=None): """ __new__(cls: type) __new__(cls: type,container: IContainer) """ pass BalloonTipIcon = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the icon to display on the balloon tip associated with the System.Windows.Forms.NotifyIcon. Get: BalloonTipIcon(self: NotifyIcon) -> ToolTipIcon Set: BalloonTipIcon(self: NotifyIcon)=value """ BalloonTipText = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the text to display on the balloon tip associated with the System.Windows.Forms.NotifyIcon. Get: BalloonTipText(self: NotifyIcon) -> str Set: BalloonTipText(self: NotifyIcon)=value """ BalloonTipTitle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the title of the balloon tip displayed on the System.Windows.Forms.NotifyIcon. Get: BalloonTipTitle(self: NotifyIcon) -> str Set: BalloonTipTitle(self: NotifyIcon)=value """ CanRaiseEvents = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets a value indicating whether the component can raise an event. """ ContextMenu = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the shortcut menu for the icon. Get: ContextMenu(self: NotifyIcon) -> ContextMenu Set: ContextMenu(self: NotifyIcon)=value """ ContextMenuStrip = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the shortcut menu associated with the System.Windows.Forms.NotifyIcon. Get: ContextMenuStrip(self: NotifyIcon) -> ContextMenuStrip Set: ContextMenuStrip(self: NotifyIcon)=value """ DesignMode = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets a value that indicates whether the System.ComponentModel.Component is currently in design mode. """ Events = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets the list of event handlers that are attached to this System.ComponentModel.Component. """ Icon = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets the current icon. Get: Icon(self: NotifyIcon) -> Icon Set: Icon(self: NotifyIcon)=value """ Tag = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets an object that contains data about the System.Windows.Forms.NotifyIcon. Get: Tag(self: NotifyIcon) -> object Set: Tag(self: NotifyIcon)=value """ Text = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets the ToolTip text displayed when the mouse pointer rests on a notification area icon. Get: Text(self: NotifyIcon) -> str Set: Text(self: NotifyIcon)=value """ Visible = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets a value indicating whether the icon is visible in the notification area of the taskbar. Get: Visible(self: NotifyIcon) -> bool Set: Visible(self: NotifyIcon)=value """ BalloonTipClicked = None BalloonTipClosed = None BalloonTipShown = None Click = None DoubleClick = None MouseClick = None MouseDoubleClick = None MouseDown = None MouseMove = None MouseUp = None
[ 4871, 1892, 1958, 19578, 7, 21950, 11, 314, 21950, 11, 4522, 271, 1930, 540, 2599, 201, 198, 220, 220, 220, 37227, 201, 198, 18291, 6945, 257, 7515, 326, 8075, 281, 7196, 287, 262, 14483, 1989, 13, 770, 1398, 2314, 307, 19552, 13, 201, 198, 201, 198, 220, 201, 198, 201, 198, 1892, 1958, 19578, 3419, 201, 198, 201, 198, 1892, 1958, 19578, 7, 34924, 25, 314, 29869, 8, 201, 198, 37227, 201, 198, 201, 198, 220, 220, 220, 825, 3167, 3455, 7, 944, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3167, 3455, 7, 944, 25, 1892, 1958, 19578, 11, 6381, 32927, 25, 20512, 8, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 3497, 16177, 7, 944, 11, 1635, 22046, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 3497, 16177, 7, 944, 25, 35100, 11, 15271, 25, 5994, 8, 4613, 2134, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 16409, 281, 2134, 326, 6870, 257, 2139, 2810, 416, 262, 4482, 13, 21950, 17633, 13, 21950, 393, 220, 201, 198, 201, 198, 220, 220, 220, 416, 663, 4482, 13, 21950, 17633, 13, 29869, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 2139, 25, 317, 2139, 2810, 416, 262, 4482, 13, 21950, 17633, 13, 21950, 13, 201, 198, 201, 198, 220, 220, 16409, 25, 1052, 4482, 13, 10267, 326, 6870, 257, 2139, 2810, 416, 262, 4482, 13, 21950, 17633, 13, 21950, 11, 273, 220, 201, 198, 201, 198, 220, 220, 220, 9242, 611, 262, 4482, 13, 21950, 17633, 13, 21950, 857, 407, 2148, 262, 7368, 2139, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 10239, 3083, 2601, 505, 7, 944, 11, 1635, 22046, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 10239, 3083, 2601, 505, 7, 944, 25, 37899, 3886, 8134, 10267, 11, 21018, 7390, 26858, 25, 20512, 8, 4613, 37899, 3886, 8134, 10267, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 7921, 274, 257, 19337, 4866, 286, 262, 1459, 4482, 13, 41984, 282, 3886, 8134, 10267, 2134, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 17271, 7390, 26858, 25, 3991, 284, 12233, 262, 1459, 4482, 13, 41984, 282, 3886, 8134, 10267, 2134, 338, 5369, 11, 4758, 481, 2728, 262, 220, 201, 198, 201, 198, 220, 220, 220, 2134, 284, 307, 8686, 257, 649, 5369, 618, 340, 318, 22397, 3021, 1973, 257, 816, 10720, 18645, 13, 317, 1988, 286, 220, 201, 198, 201, 198, 220, 220, 220, 3991, 318, 3221, 5035, 13, 2081, 284, 4866, 262, 1459, 4482, 13, 41984, 282, 3886, 8134, 10267, 2134, 338, 220, 201, 198, 201, 198, 220, 220, 220, 5369, 284, 663, 17271, 11, 4758, 481, 2728, 816, 10720, 5456, 3848, 284, 307, 42101, 284, 262, 6569, 4382, 220, 201, 198, 201, 198, 220, 220, 220, 2134, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 16409, 25, 317, 19337, 4866, 286, 262, 1459, 4482, 13, 41984, 282, 3886, 8134, 10267, 2134, 13, 201, 198, 201, 198, 220, 10239, 3083, 2601, 505, 7, 944, 25, 2134, 8, 4613, 2134, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 7921, 274, 257, 19337, 4866, 286, 262, 1459, 4482, 13, 10267, 13, 201, 198, 201, 198, 220, 220, 16409, 25, 317, 19337, 4866, 286, 262, 1459, 4482, 13, 10267, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 5438, 23410, 2049, 28434, 7, 944, 11, 26827, 11, 8171, 19160, 28, 14202, 11, 8171, 8206, 28, 14202, 11, 8171, 19578, 28, 14202, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 5438, 23410, 2049, 28434, 7, 944, 25, 1892, 1958, 19578, 11, 48678, 25, 493, 11, 22504, 19160, 25, 965, 11, 22504, 8206, 25, 965, 11, 22504, 19578, 25, 16984, 28434, 19578, 8, 201, 198, 201, 198, 220, 220, 3167, 26024, 257, 21190, 8171, 351, 262, 7368, 3670, 11, 5239, 11, 392, 7196, 287, 262, 4876, 5657, 329, 262, 7368, 220, 201, 198, 201, 198, 220, 220, 220, 640, 2278, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 26827, 25, 383, 640, 2278, 11, 259, 38694, 11, 1169, 21190, 8171, 815, 3359, 13, 201, 198, 201, 198, 220, 220, 8171, 19160, 25, 383, 3670, 284, 3359, 319, 262, 21190, 8171, 13, 201, 198, 201, 198, 220, 220, 8171, 8206, 25, 383, 2420, 284, 3359, 319, 262, 21190, 8171, 13, 201, 198, 201, 198, 220, 220, 8171, 19578, 25, 1881, 286, 262, 4482, 13, 11209, 13, 8479, 82, 13, 25391, 28434, 19578, 3815, 13, 201, 198, 201, 198, 220, 5438, 23410, 2049, 28434, 7, 944, 25, 1892, 1958, 19578, 11, 48678, 25, 493, 8, 201, 198, 201, 198, 220, 220, 3167, 26024, 257, 21190, 8171, 287, 262, 4876, 5657, 329, 262, 7368, 640, 2278, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 26827, 25, 383, 640, 2278, 11, 259, 38694, 11, 1169, 21190, 8171, 815, 3359, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 11593, 9255, 834, 7, 944, 11, 1635, 22046, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 11593, 9255, 834, 7, 944, 25, 4522, 271, 1930, 540, 8, 4613, 2134, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 47081, 262, 7822, 286, 11593, 9255, 834, 329, 5563, 543, 3494, 4522, 271, 1930, 540, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 11593, 37023, 834, 7, 944, 11, 1635, 22046, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 11593, 37023, 834, 7, 944, 25, 4522, 271, 1930, 540, 11, 41194, 62, 4906, 25, 2134, 11, 41194, 62, 8367, 25, 2134, 11, 41194, 62, 1891, 25, 2134, 8, 201, 198, 201, 198, 220, 220, 47081, 262, 7822, 286, 11593, 37023, 834, 329, 5563, 543, 3494, 4522, 271, 1930, 540, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1635, 22046, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2124, 13, 834, 15003, 834, 7, 23029, 4238, 4340, 2124, 26, 766, 2124, 13, 834, 4871, 834, 13, 834, 15390, 834, 329, 9877, 87, 13, 834, 15003, 834, 7, 23029, 4238, 4340, 2124, 26, 766, 2124, 13, 834, 4871, 834, 13, 834, 15390, 834, 329, 9877, 87, 13, 834, 15003, 834, 7, 23029, 4238, 4340, 2124, 26, 766, 2124, 13, 834, 4871, 834, 13, 834, 15390, 834, 329, 9877, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 2488, 12708, 24396, 201, 198, 220, 220, 220, 825, 11593, 3605, 834, 7, 944, 11, 9290, 28, 14202, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 11593, 3605, 834, 7, 565, 82, 25, 2099, 8, 201, 198, 201, 198, 220, 11593, 3605, 834, 7, 565, 82, 25, 2099, 11, 34924, 25, 314, 29869, 8, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 47821, 28434, 19578, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 38, 1039, 393, 5621, 262, 7196, 284, 3359, 319, 262, 21190, 8171, 3917, 351, 262, 4482, 13, 11209, 13, 8479, 82, 13, 3673, 1958, 19578, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 47821, 28434, 19578, 7, 944, 25, 1892, 1958, 19578, 8, 4613, 16984, 28434, 19578, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 47821, 28434, 19578, 7, 944, 25, 1892, 1958, 19578, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 47821, 28434, 8206, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 38, 1039, 393, 5621, 262, 2420, 284, 3359, 319, 262, 21190, 8171, 3917, 351, 262, 4482, 13, 11209, 13, 8479, 82, 13, 3673, 1958, 19578, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 47821, 28434, 8206, 7, 944, 25, 1892, 1958, 19578, 8, 4613, 965, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 47821, 28434, 8206, 7, 944, 25, 1892, 1958, 19578, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 47821, 28434, 19160, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 38, 1039, 393, 5621, 262, 3670, 286, 262, 21190, 8171, 9066, 319, 262, 4482, 13, 11209, 13, 8479, 82, 13, 3673, 1958, 19578, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 47821, 28434, 19160, 7, 944, 25, 1892, 1958, 19578, 8, 4613, 965, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 47821, 28434, 19160, 7, 944, 25, 1892, 1958, 19578, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 1680, 21762, 786, 37103, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 38, 1039, 257, 1988, 12739, 1771, 262, 7515, 460, 5298, 281, 1785, 13, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 30532, 23381, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 38, 1039, 393, 5621, 262, 29401, 6859, 329, 262, 7196, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 30532, 23381, 7, 944, 25, 1892, 1958, 19578, 8, 4613, 30532, 23381, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 30532, 23381, 7, 944, 25, 1892, 1958, 19578, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 30532, 23381, 1273, 5528, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 38, 1039, 393, 5621, 262, 29401, 6859, 3917, 351, 262, 4482, 13, 11209, 13, 8479, 82, 13, 3673, 1958, 19578, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 30532, 23381, 1273, 5528, 7, 944, 25, 1892, 1958, 19578, 8, 4613, 30532, 23381, 1273, 5528, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 30532, 23381, 1273, 5528, 7, 944, 25, 1892, 1958, 19578, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 8495, 19076, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 38, 1039, 257, 1988, 326, 9217, 1771, 262, 4482, 13, 21950, 17633, 13, 21950, 318, 3058, 287, 1486, 4235, 13, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 18715, 796, 3119, 7, 50033, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 8, 201, 198, 220, 220, 220, 37227, 38, 1039, 262, 1351, 286, 1785, 32847, 326, 389, 7223, 284, 428, 4482, 13, 21950, 17633, 13, 21950, 13, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 26544, 796, 3119, 7, 50033, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 8, 201, 198, 220, 220, 220, 37227, 38, 1039, 393, 5621, 262, 1459, 7196, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 26544, 7, 944, 25, 1892, 1958, 19578, 8, 4613, 26544, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 26544, 7, 944, 25, 1892, 1958, 19578, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 17467, 796, 3119, 7, 50033, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 8, 201, 198, 220, 220, 220, 37227, 38, 1039, 393, 5621, 281, 2134, 326, 4909, 1366, 546, 262, 4482, 13, 11209, 13, 8479, 82, 13, 3673, 1958, 19578, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 17467, 7, 944, 25, 1892, 1958, 19578, 8, 4613, 2134, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 17467, 7, 944, 25, 1892, 1958, 19578, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 8255, 796, 3119, 7, 50033, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 8, 201, 198, 220, 220, 220, 37227, 38, 1039, 393, 5621, 262, 16984, 28434, 2420, 9066, 618, 262, 10211, 17562, 24013, 319, 257, 14483, 1989, 7196, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 8255, 7, 944, 25, 1892, 1958, 19578, 8, 4613, 965, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 8255, 7, 944, 25, 1892, 1958, 19578, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 6911, 856, 796, 3119, 7, 50033, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 8, 201, 198, 220, 220, 220, 37227, 38, 1039, 393, 5621, 257, 1988, 12739, 1771, 262, 7196, 318, 7424, 287, 262, 14483, 1989, 286, 262, 4876, 5657, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 6911, 856, 7, 944, 25, 1892, 1958, 19578, 8, 4613, 20512, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 6911, 856, 7, 944, 25, 1892, 1958, 19578, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 47821, 28434, 8164, 276, 796, 6045, 201, 198, 220, 220, 220, 47821, 28434, 2601, 1335, 796, 6045, 201, 198, 220, 220, 220, 47821, 28434, 2484, 593, 796, 6045, 201, 198, 220, 220, 220, 6914, 796, 6045, 201, 198, 220, 220, 220, 11198, 8164, 796, 6045, 201, 198, 220, 220, 220, 21839, 8164, 796, 6045, 201, 198, 220, 220, 220, 21839, 25628, 8164, 796, 6045, 201, 198, 220, 220, 220, 21839, 8048, 796, 6045, 201, 198, 220, 220, 220, 21839, 21774, 796, 6045, 201, 198, 220, 220, 220, 21839, 4933, 796, 6045, 201, 198 ]
2.750582
2,578
import os import pandas as pd import rampwf as rw from sklearn.model_selection import ShuffleSplit import numpy as np problem_title = 'Salary prediction' _target_column_name = 'SalaryUSD' # A value which will be used to create wrapper objects for y_pred Predictions = rw.prediction_types.make_regression() # An object implementing the workflow workflow = rw.workflows.Estimator() score_types = [ rw.score_types.RMSE(name='rmse', precision=3), ] # READ DATA
[ 11748, 28686, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 10454, 86, 69, 355, 374, 86, 201, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 911, 18137, 41205, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 45573, 62, 7839, 796, 705, 19221, 560, 17724, 6, 201, 198, 62, 16793, 62, 28665, 62, 3672, 796, 705, 19221, 560, 29072, 6, 201, 198, 201, 198, 201, 198, 2, 317, 1988, 543, 481, 307, 973, 284, 2251, 29908, 5563, 329, 331, 62, 28764, 201, 198, 39156, 9278, 796, 374, 86, 13, 28764, 2867, 62, 19199, 13, 15883, 62, 2301, 2234, 3419, 201, 198, 201, 198, 201, 198, 2, 1052, 2134, 15427, 262, 30798, 201, 198, 1818, 11125, 796, 374, 86, 13, 1818, 44041, 13, 22362, 320, 1352, 3419, 201, 198, 201, 198, 26675, 62, 19199, 796, 685, 201, 198, 220, 220, 220, 374, 86, 13, 26675, 62, 19199, 13, 29138, 5188, 7, 3672, 11639, 26224, 325, 3256, 15440, 28, 18, 828, 201, 198, 60, 201, 198, 201, 198, 201, 198, 2, 20832, 42865, 201, 198, 201, 198 ]
2.729282
181
""" IRC message logger. Enables logging of messages to flat files. """ import threading from datetime import datetime from kochira import config from kochira.service import Service, Config from pathlib import Path service = Service(__name__, __doc__) @service.config @service.setup @service.shutdown @service.hook("sighup") @service.hook("own_message", priority=10000) @service.hook("own_notice", priority=10000) @service.hook("invite", priority=10000) @service.hook("join", priority=10000) @service.hook("kill", priority=10000) @service.hook("kick", priority=10000) @service.hook("mode_change", priority=10000) @service.hook("channel_message", priority=10000) @service.hook("private_message", priority=10000) @service.hook("nick_change", priority=10000) @service.hook("channel_notice", priority=10000) @service.hook("private_notice", priority=10000) @service.hook("part", priority=10000) @service.hook("topic_change", priority=10000) @service.hook("quit", priority=10000) @service.hook("ctcp_action", priority=10000)
[ 37811, 198, 49060, 3275, 49706, 13, 198, 198, 4834, 2977, 18931, 286, 6218, 284, 6228, 3696, 13, 198, 37811, 198, 198, 11748, 4704, 278, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 479, 5374, 8704, 1330, 4566, 198, 6738, 479, 5374, 8704, 13, 15271, 1330, 4809, 11, 17056, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 15271, 796, 4809, 7, 834, 3672, 834, 11, 11593, 15390, 834, 8, 628, 198, 31, 15271, 13, 11250, 628, 628, 628, 628, 198, 198, 31, 15271, 13, 40406, 628, 198, 31, 15271, 13, 49625, 2902, 628, 198, 31, 15271, 13, 25480, 7203, 82, 394, 929, 4943, 628, 198, 31, 15271, 13, 25480, 7203, 593, 62, 20500, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 593, 62, 42138, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 16340, 578, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 22179, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 12728, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 24585, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 14171, 62, 3803, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 17620, 62, 20500, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 19734, 62, 20500, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 17172, 62, 3803, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 17620, 62, 42138, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 19734, 62, 42138, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 3911, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 26652, 62, 3803, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 47391, 1600, 8475, 28, 49388, 8, 628, 198, 31, 15271, 13, 25480, 7203, 310, 13155, 62, 2673, 1600, 8475, 28, 49388, 8, 198 ]
3.191045
335
import json from unittest import main from unittest.mock import patch from common import ClassifierTestCaseWithMockClassifiers from classifier import __VERSION__ from classifier.ml import Classifier if __name__ == "__main__": main()
[ 11748, 33918, 198, 6738, 555, 715, 395, 1330, 1388, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 2219, 1330, 5016, 7483, 14402, 20448, 3152, 44, 735, 9487, 13350, 198, 6738, 1398, 7483, 1330, 11593, 43717, 834, 198, 6738, 1398, 7483, 13, 4029, 1330, 5016, 7483, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
3.43662
71
# third party import argparse import csv import random import re import subprocess from dataclasses import fields, is_dataclass from functools import reduce from io import StringIO from typing import List, Optional import numpy as np import torch import torch.jit import torch.nn as nn from gym import spaces import gym # Necessary for my KFAC implementation. # https://github.com/openai/baselines/blob/master/baselines/common/tf_util.py#L87 @torch.jit.script RESET = "\033[0m" def hierarchical_parse_args(parser: argparse.ArgumentParser, include_positional=False): """ :return: { group1: {**kwargs} group2: {**kwargs} ... **kwargs } """ args = parser.parse_args() positional = list(get_positionals(parser._action_groups)) nonpositional = dict(get_nonpositionals(parser._action_groups)) optional = nonpositional.pop("optional arguments") nonpositional = {**nonpositional, **optional} if include_positional: return positional, nonpositional return nonpositional
[ 2, 2368, 2151, 198, 11748, 1822, 29572, 198, 11748, 269, 21370, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 850, 14681, 198, 6738, 4818, 330, 28958, 1330, 7032, 11, 318, 62, 19608, 330, 31172, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 6738, 33245, 1330, 10903, 9399, 198, 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 45051, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 11550, 1330, 9029, 198, 11748, 11550, 628, 628, 198, 198, 2, 19652, 408, 560, 329, 616, 509, 37, 2246, 7822, 13, 628, 198, 198, 2, 3740, 1378, 12567, 13, 785, 14, 9654, 1872, 14, 12093, 20655, 14, 2436, 672, 14, 9866, 14, 12093, 20655, 14, 11321, 14, 27110, 62, 22602, 13, 9078, 2, 43, 5774, 628, 628, 628, 628, 628, 198, 31, 13165, 354, 13, 45051, 13, 12048, 628, 198, 198, 19535, 2767, 796, 37082, 44427, 58, 15, 76, 1, 628, 628, 198, 4299, 38958, 62, 29572, 62, 22046, 7, 48610, 25, 1822, 29572, 13, 28100, 1713, 46677, 11, 2291, 62, 1930, 1859, 28, 25101, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 1448, 16, 25, 1391, 1174, 46265, 22046, 92, 198, 220, 220, 220, 220, 220, 220, 220, 1448, 17, 25, 1391, 1174, 46265, 22046, 92, 198, 220, 220, 220, 220, 220, 220, 220, 2644, 198, 220, 220, 220, 220, 220, 220, 220, 12429, 46265, 22046, 198, 220, 220, 220, 1782, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 26498, 796, 30751, 13, 29572, 62, 22046, 3419, 628, 220, 220, 220, 45203, 796, 1351, 7, 1136, 62, 9150, 874, 7, 48610, 13557, 2673, 62, 24432, 4008, 198, 220, 220, 220, 1729, 1930, 1859, 796, 8633, 7, 1136, 62, 13159, 9150, 874, 7, 48610, 13557, 2673, 62, 24432, 4008, 198, 220, 220, 220, 11902, 796, 1729, 1930, 1859, 13, 12924, 7203, 25968, 7159, 4943, 198, 220, 220, 220, 1729, 1930, 1859, 796, 1391, 1174, 13159, 1930, 1859, 11, 12429, 25968, 92, 198, 220, 220, 220, 611, 2291, 62, 1930, 1859, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 45203, 11, 1729, 1930, 1859, 198, 220, 220, 220, 1441, 1729, 1930, 1859, 628, 628, 628, 198 ]
2.81039
385
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # SPDX-License-Identifier: GPL-3.0 # # GNU Radio Python Flow Graph # Title: Flatsat RX Test # Author: dev # GNU Radio version: 3.9.3.0 from distutils.version import StrictVersion if __name__ == '__main__': import ctypes import sys if sys.platform.startswith('linux'): try: x11 = ctypes.cdll.LoadLibrary('libX11.so') x11.XInitThreads() except: print("Warning: failed to XInitThreads()") import os import sys sys.path.append(os.environ.get('GRC_HIER_PATH', os.path.expanduser('~/.grc_gnuradio'))) from PyQt5 import Qt from gnuradio import eng_notation from gnuradio import qtgui from gnuradio.filter import firdes import sip from flatsat_rx import flatsat_rx # grc-generated hier_block from gnuradio import analog from gnuradio import blocks import pmt from gnuradio import digital from gnuradio import filter from gnuradio import gr from gnuradio.fft import window import signal from argparse import ArgumentParser from gnuradio.eng_arg import eng_float, intx from gnuradio import uhd import time from gnuradio.filter import pfb from gnuradio.qtgui import Range, RangeWidget from PyQt5 import QtCore from usersegment_tx import usersegment_tx # grc-generated hier_block import satellites.hier import test_flatsat_rx_epy_block_0_0_0_0_0_0 as epy_block_0_0_0_0_0_0 # embedded python block from gnuradio import qtgui if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 38644, 12, 18, 13, 15, 198, 2, 198, 2, 22961, 8829, 11361, 27782, 29681, 198, 2, 11851, 25, 1610, 1381, 265, 24202, 6208, 198, 2, 6434, 25, 1614, 198, 2, 22961, 8829, 2196, 25, 513, 13, 24, 13, 18, 13, 15, 198, 198, 6738, 1233, 26791, 13, 9641, 1330, 520, 2012, 14815, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1330, 269, 19199, 198, 220, 220, 220, 1330, 25064, 198, 220, 220, 220, 611, 25064, 13, 24254, 13, 9688, 2032, 342, 10786, 23289, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 1157, 796, 269, 19199, 13, 10210, 297, 13, 8912, 23377, 10786, 8019, 55, 1157, 13, 568, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 1157, 13, 55, 31768, 16818, 82, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 20361, 25, 4054, 284, 1395, 31768, 16818, 82, 3419, 4943, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 268, 2268, 13, 1136, 10786, 38, 7397, 62, 25374, 1137, 62, 34219, 3256, 28686, 13, 6978, 13, 11201, 392, 7220, 10786, 93, 11757, 2164, 66, 62, 4593, 333, 324, 952, 6, 22305, 198, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 198, 6738, 19967, 333, 324, 952, 1330, 1786, 62, 38983, 198, 6738, 19967, 333, 324, 952, 1330, 10662, 83, 48317, 198, 6738, 19967, 333, 324, 952, 13, 24455, 1330, 277, 1447, 274, 198, 11748, 31145, 198, 6738, 38157, 265, 62, 40914, 1330, 38157, 265, 62, 40914, 220, 1303, 1036, 66, 12, 27568, 13550, 62, 9967, 198, 6738, 19967, 333, 324, 952, 1330, 15075, 198, 6738, 19967, 333, 324, 952, 1330, 7021, 198, 11748, 9114, 83, 198, 6738, 19967, 333, 324, 952, 1330, 4875, 198, 6738, 19967, 333, 324, 952, 1330, 8106, 198, 6738, 19967, 333, 324, 952, 1330, 1036, 198, 6738, 19967, 333, 324, 952, 13, 487, 83, 1330, 4324, 198, 11748, 6737, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 6738, 19967, 333, 324, 952, 13, 1516, 62, 853, 1330, 1786, 62, 22468, 11, 493, 87, 198, 6738, 19967, 333, 324, 952, 1330, 21480, 67, 198, 11748, 640, 198, 6738, 19967, 333, 324, 952, 13, 24455, 1330, 279, 21855, 198, 6738, 19967, 333, 324, 952, 13, 39568, 48317, 1330, 13667, 11, 13667, 38300, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 198, 6738, 2836, 325, 5154, 62, 17602, 1330, 2836, 325, 5154, 62, 17602, 220, 1303, 1036, 66, 12, 27568, 13550, 62, 9967, 198, 11748, 20372, 13, 71, 959, 198, 11748, 1332, 62, 2704, 1381, 265, 62, 40914, 62, 538, 88, 62, 9967, 62, 15, 62, 15, 62, 15, 62, 15, 62, 15, 62, 15, 355, 2462, 88, 62, 9967, 62, 15, 62, 15, 62, 15, 62, 15, 62, 15, 62, 15, 220, 1303, 14553, 21015, 2512, 628, 198, 198, 6738, 19967, 333, 324, 952, 1330, 10662, 83, 48317, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.585664
572
from random import randint import os from PIL import Image path='final' classnames=os.listdir(path) images=[] f1=open('input_index.txt','w') for temp in classnames: images.append(Image.open('final/'+temp)) f1.write(temp+"\n") f1.close() k=len(images) im2=[] for i in range(k): img=images[i] im2.append(img) h=0 for i in range(k): h=h+40*im2[i].size[1]/im2[i].size[0]+5 result = Image.new('L', (40,h),'white') lp=0 for i in range(k): img=im2[i] img=img.convert('L') print 'before ', print img.size h=40*img.size[1]/img.size[0] if h<1: h=1 img=img.resize((40,h),Image.ANTIALIAS) print 'after ', print img.size result.paste(img, box=(0, lp)) lp=lp+5+img.size[1] result.save('res.png')
[ 6738, 4738, 1330, 43720, 600, 198, 198, 11748, 28686, 198, 6738, 350, 4146, 1330, 7412, 198, 6978, 11639, 20311, 6, 198, 4871, 14933, 28, 418, 13, 4868, 15908, 7, 6978, 8, 198, 17566, 28, 21737, 198, 69, 16, 28, 9654, 10786, 15414, 62, 9630, 13, 14116, 41707, 86, 11537, 198, 1640, 20218, 287, 1398, 14933, 25, 198, 197, 198, 197, 198, 197, 17566, 13, 33295, 7, 5159, 13, 9654, 10786, 20311, 14, 6, 10, 29510, 4008, 198, 197, 69, 16, 13, 13564, 7, 29510, 10, 1, 59, 77, 4943, 198, 198, 69, 16, 13, 19836, 3419, 198, 74, 28, 11925, 7, 17566, 8, 198, 320, 17, 28, 21737, 198, 1640, 1312, 287, 2837, 7, 74, 2599, 197, 198, 197, 9600, 28, 17566, 58, 72, 60, 198, 197, 320, 17, 13, 33295, 7, 9600, 8, 198, 71, 28, 15, 198, 1640, 1312, 287, 2837, 7, 74, 2599, 198, 197, 71, 28, 71, 10, 1821, 9, 320, 17, 58, 72, 4083, 7857, 58, 16, 60, 14, 320, 17, 58, 72, 4083, 7857, 58, 15, 48688, 20, 198, 198, 20274, 796, 7412, 13, 3605, 10786, 43, 3256, 357, 1821, 11, 71, 828, 6, 11186, 11537, 198, 34431, 28, 15, 198, 1640, 1312, 287, 2837, 7, 74, 2599, 197, 198, 197, 9600, 28, 320, 17, 58, 72, 60, 198, 197, 9600, 28, 9600, 13, 1102, 1851, 10786, 43, 11537, 198, 197, 4798, 705, 19052, 46083, 198, 197, 4798, 33705, 13, 7857, 198, 197, 71, 28, 1821, 9, 9600, 13, 7857, 58, 16, 60, 14, 9600, 13, 7857, 58, 15, 60, 198, 197, 361, 289, 27, 16, 25, 198, 197, 197, 71, 28, 16, 198, 197, 9600, 28, 9600, 13, 411, 1096, 19510, 1821, 11, 71, 828, 5159, 13, 8643, 12576, 43429, 8, 198, 197, 4798, 705, 8499, 46083, 198, 197, 4798, 33705, 13, 7857, 198, 197, 20274, 13, 34274, 7, 9600, 11, 3091, 16193, 15, 11, 300, 79, 4008, 198, 197, 34431, 28, 34431, 10, 20, 10, 9600, 13, 7857, 58, 16, 60, 198, 197, 197, 198, 197, 198, 20274, 13, 21928, 10786, 411, 13, 11134, 11537, 197, 198 ]
2.072464
345
#!/usr/bin/python # (c) 2018, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or # https://www.gnu.org/licenses/gpl-3.0.txt) ''' Element Software Node Network Interfaces - Bond 1G and 10G configuration ''' from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'certified'} DOCUMENTATION = ''' module: na_elementsw_network_interfaces short_description: NetApp Element Software Configure Node Network Interfaces extends_documentation_fragment: - netapp.solidfire version_added: '2.7' author: NetApp Ansible Team (@carchi8py) <[email protected]> description: - Configure Element SW Node Network Interfaces for Bond 1G and 10G IP address. options: method: description: - Type of Method used to configure the interface. - method depends on other settings such as the use of a static IP address, which will change the method to static. - loopback - Used to define the IPv4 loopback interface. - manual - Used to define interfaces for which no configuration is done by default. - dhcp - May be used to obtain an IP address via DHCP. - static - Used to define Ethernet interfaces with statically allocated IPv4 addresses. choices: ['loopback', 'manual', 'dhcp', 'static'] required: true ip_address_1g: description: - IP address for the 1G network. required: true ip_address_10g: description: - IP address for the 10G network. required: true subnet_1g: description: - 1GbE Subnet Mask. required: true subnet_10g: description: - 10GbE Subnet Mask. required: true gateway_address_1g: description: - Router network address to send packets out of the local network. required: true gateway_address_10g: description: - Router network address to send packets out of the local network. required: true mtu_1g: description: - Maximum Transmission Unit for 1GbE, Largest packet size that a network protocol can transmit. - Must be greater than or equal to 1500 bytes. default: '1500' mtu_10g: description: - Maximum Transmission Unit for 10GbE, Largest packet size that a network protocol can transmit. - Must be greater than or equal to 1500 bytes. default: '1500' dns_nameservers: description: - List of addresses for domain name servers. dns_search_domains: description: - List of DNS search domains. bond_mode_1g: description: - Bond mode for 1GbE configuration. choices: ['ActivePassive', 'ALB', 'LACP'] default: 'ActivePassive' bond_mode_10g: description: - Bond mode for 10GbE configuration. choices: ['ActivePassive', 'ALB', 'LACP'] default: 'ActivePassive' lacp_1g: description: - Link Aggregation Control Protocol useful only if LACP is selected as the Bond Mode. - Slow - Packets are transmitted at 30 second intervals. - Fast - Packets are transmitted in 1 second intervals. choices: ['Fast', 'Slow'] default: 'Slow' lacp_10g: description: - Link Aggregation Control Protocol useful only if LACP is selected as the Bond Mode. - Slow - Packets are transmitted at 30 second intervals. - Fast - Packets are transmitted in 1 second intervals. choices: ['Fast', 'Slow'] default: 'Slow' virtual_network_tag: description: - This is the primary network tag. All nodes in a cluster have the same VLAN tag. ''' EXAMPLES = """ - name: Set Node network interfaces configuration for Bond 1G and 10G properties tags: - elementsw_network_interfaces na_elementsw_network_interfaces: hostname: "{{ elementsw_hostname }}" username: "{{ elementsw_username }}" password: "{{ elementsw_password }}" method: static ip_address_1g: 10.226.109.68 ip_address_10g: 10.226.201.72 subnet_1g: 255.255.255.0 subnet_10g: 255.255.255.0 gateway_address_1g: 10.193.139.1 gateway_address_10g: 10.193.140.1 mtu_1g: 1500 mtu_10g: 9000 bond_mode_1g: ActivePassive bond_mode_10g: LACP lacp_10g: Fast """ RETURN = """ msg: description: Success message returned: success type: str """ import traceback from ansible.module_utils.basic import AnsibleModule from ansible.module_utils._text import to_native import ansible.module_utils.netapp as netapp_utils HAS_SF_SDK = netapp_utils.has_sf_sdk() try: from solidfire.models import Network, NetworkConfig HAS_SF_SDK = True except Exception: HAS_SF_SDK = False class ElementSWNetworkInterfaces(object): """ Element Software Network Interfaces - Bond 1G and 10G Network configuration """ def set_network_config(self): """ set network configuration """ try: self.sfe.set_network_config(network=self.network_object) except Exception as exception_object: self.module.fail_json(msg='Error network setting for node %s' % (to_native(exception_object)), exception=traceback.format_exc()) def get_network_params_object(self): """ Get Element SW Network object :description: get Network object :return: NetworkConfig object :rtype: object(NetworkConfig object) """ try: bond_1g_network = NetworkConfig(method=self.method, address=self.ip_address_1g, netmask=self.subnet_1g, gateway=self.gateway_address_1g, mtu=self.mtu_1g, dns_nameservers=self.dns_nameservers, dns_search=self.dns_search_domains, bond_mode=self.bond_mode_1g, bond_lacp_rate=self.lacp_1g, virtual_network_tag=self.virtual_network_tag) bond_10g_network = NetworkConfig(method=self.method, address=self.ip_address_10g, netmask=self.subnet_10g, gateway=self.gateway_address_10g, mtu=self.mtu_10g, dns_nameservers=self.dns_nameservers, dns_search=self.dns_search_domains, bond_mode=self.bond_mode_10g, bond_lacp_rate=self.lacp_10g, virtual_network_tag=self.virtual_network_tag) network_object = Network(bond1_g=bond_1g_network, bond10_g=bond_10g_network) return network_object except Exception as e: self.module.fail_json(msg='Error with setting up network object for node 1G and 10G configuration : %s' % to_native(e), exception=to_native(e)) def apply(self): """ Check connection and initialize node with cluster ownership """ changed = False result_message = None self.network_object = self.get_network_params_object() if self.network_object is not None: self.set_network_config() changed = True else: result_message = "Skipping changes, No change requested" self.module.exit_json(changed=changed, msg=result_message) def main(): """ Main function """ elementsw_network_interfaces = ElementSWNetworkInterfaces() elementsw_network_interfaces.apply() if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 357, 66, 8, 2864, 11, 3433, 4677, 11, 3457, 198, 2, 22961, 3611, 5094, 13789, 410, 18, 13, 15, 10, 357, 3826, 27975, 45761, 393, 198, 2, 3740, 1378, 2503, 13, 41791, 13, 2398, 14, 677, 4541, 14, 70, 489, 12, 18, 13, 15, 13, 14116, 8, 198, 198, 7061, 6, 198, 20180, 10442, 19081, 7311, 4225, 32186, 532, 12812, 352, 38, 290, 838, 38, 8398, 198, 7061, 6, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 834, 4164, 330, 31172, 834, 796, 2099, 628, 198, 15037, 34563, 62, 47123, 2885, 13563, 796, 1391, 6, 38993, 62, 9641, 10354, 705, 16, 13, 16, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 13376, 10354, 37250, 3866, 1177, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 15999, 62, 1525, 10354, 705, 22583, 1431, 6, 92, 628, 198, 38715, 5883, 3525, 6234, 796, 705, 7061, 198, 198, 21412, 25, 12385, 62, 68, 3639, 86, 62, 27349, 62, 3849, 32186, 198, 198, 19509, 62, 11213, 25, 3433, 4677, 11703, 10442, 17056, 495, 19081, 7311, 4225, 32186, 198, 2302, 2412, 62, 22897, 341, 62, 8310, 363, 434, 25, 198, 220, 220, 220, 532, 2010, 1324, 13, 39390, 6495, 198, 9641, 62, 29373, 25, 705, 17, 13, 22, 6, 198, 9800, 25, 3433, 4677, 28038, 856, 4816, 4275, 66, 998, 72, 23, 9078, 8, 1279, 782, 12, 504, 856, 15097, 31, 3262, 1324, 13, 785, 29, 198, 11213, 25, 198, 12, 17056, 495, 11703, 12672, 19081, 7311, 4225, 32186, 329, 12812, 352, 38, 290, 838, 38, 6101, 2209, 13, 198, 198, 25811, 25, 198, 220, 220, 220, 2446, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 5994, 286, 11789, 973, 284, 17425, 262, 7071, 13, 198, 220, 220, 220, 220, 220, 220, 220, 532, 2446, 8338, 319, 584, 6460, 884, 355, 262, 779, 286, 257, 9037, 6101, 2209, 11, 543, 481, 1487, 262, 2446, 284, 9037, 13, 198, 220, 220, 220, 220, 220, 220, 220, 532, 9052, 1891, 532, 16718, 284, 8160, 262, 25961, 19, 9052, 1891, 7071, 13, 198, 220, 220, 220, 220, 220, 220, 220, 532, 10107, 532, 16718, 284, 8160, 20314, 329, 543, 645, 8398, 318, 1760, 416, 4277, 13, 198, 220, 220, 220, 220, 220, 220, 220, 532, 34590, 13155, 532, 1737, 307, 973, 284, 7330, 281, 6101, 2209, 2884, 43729, 13, 198, 220, 220, 220, 220, 220, 220, 220, 532, 9037, 532, 16718, 284, 8160, 31903, 20314, 351, 47746, 19171, 25961, 19, 9405, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7747, 25, 37250, 26268, 1891, 3256, 705, 805, 723, 3256, 705, 34985, 13155, 3256, 705, 12708, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 2081, 628, 220, 220, 220, 20966, 62, 21975, 62, 16, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 6101, 2209, 329, 262, 352, 38, 3127, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 2081, 628, 220, 220, 220, 20966, 62, 21975, 62, 940, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 6101, 2209, 329, 262, 838, 38, 3127, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 2081, 628, 220, 220, 220, 850, 3262, 62, 16, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 352, 49017, 36, 3834, 3262, 18007, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 2081, 628, 220, 220, 220, 850, 3262, 62, 940, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 838, 49017, 36, 3834, 3262, 18007, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 2081, 628, 220, 220, 220, 24308, 62, 21975, 62, 16, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 48538, 3127, 2209, 284, 3758, 24624, 503, 286, 262, 1957, 3127, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 2081, 628, 220, 220, 220, 24308, 62, 21975, 62, 940, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 48538, 3127, 2209, 284, 3758, 24624, 503, 286, 262, 1957, 3127, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 2081, 628, 220, 220, 220, 285, 28047, 62, 16, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 22246, 41653, 11801, 329, 352, 49017, 36, 11, 406, 853, 395, 19638, 2546, 326, 257, 3127, 8435, 460, 21937, 13, 198, 220, 220, 220, 220, 220, 220, 220, 532, 12039, 307, 3744, 621, 393, 4961, 284, 20007, 9881, 13, 198, 220, 220, 220, 220, 220, 220, 220, 4277, 25, 705, 33698, 6, 628, 220, 220, 220, 285, 28047, 62, 940, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 22246, 41653, 11801, 329, 838, 49017, 36, 11, 406, 853, 395, 19638, 2546, 326, 257, 3127, 8435, 460, 21937, 13, 198, 220, 220, 220, 220, 220, 220, 220, 532, 12039, 307, 3744, 621, 393, 4961, 284, 20007, 9881, 13, 198, 220, 220, 220, 220, 220, 220, 220, 4277, 25, 705, 33698, 6, 628, 220, 220, 220, 288, 5907, 62, 14933, 263, 690, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 7343, 286, 9405, 329, 7386, 1438, 9597, 13, 628, 220, 220, 220, 288, 5907, 62, 12947, 62, 3438, 1299, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 7343, 286, 18538, 2989, 18209, 13, 628, 220, 220, 220, 6314, 62, 14171, 62, 16, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 12812, 4235, 329, 352, 49017, 36, 8398, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7747, 25, 37250, 13739, 14478, 425, 3256, 705, 1847, 33, 3256, 705, 43, 33056, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 4277, 25, 705, 13739, 14478, 425, 6, 628, 220, 220, 220, 6314, 62, 14171, 62, 940, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 12812, 4235, 329, 838, 49017, 36, 8398, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7747, 25, 37250, 13739, 14478, 425, 3256, 705, 1847, 33, 3256, 705, 43, 33056, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 4277, 25, 705, 13739, 14478, 425, 6, 628, 220, 220, 220, 31123, 79, 62, 16, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 7502, 19015, 43068, 6779, 20497, 4465, 691, 611, 406, 33056, 318, 6163, 355, 262, 12812, 10363, 13, 198, 220, 220, 220, 220, 220, 220, 220, 532, 19054, 532, 6400, 1039, 389, 18307, 379, 1542, 1218, 20016, 13, 198, 220, 220, 220, 220, 220, 220, 220, 532, 12549, 532, 6400, 1039, 389, 18307, 287, 352, 1218, 20016, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7747, 25, 37250, 22968, 3256, 705, 36423, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 4277, 25, 705, 36423, 6, 628, 220, 220, 220, 31123, 79, 62, 940, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 7502, 19015, 43068, 6779, 20497, 4465, 691, 611, 406, 33056, 318, 6163, 355, 262, 12812, 10363, 13, 198, 220, 220, 220, 220, 220, 220, 220, 532, 19054, 532, 6400, 1039, 389, 18307, 379, 1542, 1218, 20016, 13, 198, 220, 220, 220, 220, 220, 220, 220, 532, 12549, 532, 6400, 1039, 389, 18307, 287, 352, 1218, 20016, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7747, 25, 37250, 22968, 3256, 705, 36423, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 4277, 25, 705, 36423, 6, 628, 220, 220, 220, 7166, 62, 27349, 62, 12985, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 770, 318, 262, 4165, 3127, 7621, 13, 1439, 13760, 287, 257, 13946, 423, 262, 976, 569, 25697, 7621, 13, 198, 198, 7061, 6, 198, 198, 6369, 2390, 6489, 1546, 796, 37227, 628, 220, 532, 1438, 25, 5345, 19081, 3127, 20314, 8398, 329, 12812, 352, 38, 290, 838, 38, 6608, 198, 220, 220, 220, 15940, 25, 198, 220, 220, 220, 532, 4847, 86, 62, 27349, 62, 3849, 32186, 198, 220, 220, 220, 12385, 62, 68, 3639, 86, 62, 27349, 62, 3849, 32186, 25, 198, 220, 220, 220, 220, 220, 2583, 3672, 25, 366, 27007, 4847, 86, 62, 4774, 3672, 34949, 1, 198, 220, 220, 220, 220, 220, 20579, 25, 366, 27007, 4847, 86, 62, 29460, 34949, 1, 198, 220, 220, 220, 220, 220, 9206, 25, 366, 27007, 4847, 86, 62, 28712, 34949, 1, 198, 220, 220, 220, 220, 220, 2446, 25, 9037, 198, 220, 220, 220, 220, 220, 20966, 62, 21975, 62, 16, 70, 25, 838, 13, 24909, 13, 14454, 13, 3104, 198, 220, 220, 220, 220, 220, 20966, 62, 21975, 62, 940, 70, 25, 838, 13, 24909, 13, 1264, 13, 4761, 198, 220, 220, 220, 220, 220, 850, 3262, 62, 16, 70, 25, 14280, 13, 13381, 13, 13381, 13, 15, 198, 220, 220, 220, 220, 220, 850, 3262, 62, 940, 70, 25, 14280, 13, 13381, 13, 13381, 13, 15, 198, 220, 220, 220, 220, 220, 24308, 62, 21975, 62, 16, 70, 25, 838, 13, 24943, 13, 20219, 13, 16, 198, 220, 220, 220, 220, 220, 24308, 62, 21975, 62, 940, 70, 25, 838, 13, 24943, 13, 15187, 13, 16, 198, 220, 220, 220, 220, 220, 285, 28047, 62, 16, 70, 25, 20007, 198, 220, 220, 220, 220, 220, 285, 28047, 62, 940, 70, 25, 50138, 198, 220, 220, 220, 220, 220, 6314, 62, 14171, 62, 16, 70, 25, 14199, 14478, 425, 198, 220, 220, 220, 220, 220, 6314, 62, 14171, 62, 940, 70, 25, 406, 33056, 198, 220, 220, 220, 220, 220, 31123, 79, 62, 940, 70, 25, 12549, 198, 37811, 198, 198, 26087, 27064, 796, 37227, 198, 198, 19662, 25, 198, 220, 220, 220, 6764, 25, 16282, 3275, 198, 220, 220, 220, 4504, 25, 1943, 198, 220, 220, 220, 2099, 25, 965, 198, 198, 37811, 198, 11748, 12854, 1891, 198, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13, 35487, 1330, 28038, 856, 26796, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13557, 5239, 1330, 284, 62, 30191, 198, 11748, 9093, 856, 13, 21412, 62, 26791, 13, 3262, 1324, 355, 2010, 1324, 62, 26791, 198, 198, 39, 1921, 62, 20802, 62, 10305, 42, 796, 2010, 1324, 62, 26791, 13, 10134, 62, 28202, 62, 21282, 74, 3419, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 4735, 6495, 13, 27530, 1330, 7311, 11, 7311, 16934, 198, 220, 220, 220, 33930, 62, 20802, 62, 10305, 42, 796, 6407, 198, 16341, 35528, 25, 198, 220, 220, 220, 33930, 62, 20802, 62, 10305, 42, 796, 10352, 628, 198, 4871, 11703, 17887, 26245, 9492, 32186, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11703, 10442, 7311, 4225, 32186, 532, 12812, 352, 38, 290, 838, 38, 7311, 8398, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 900, 62, 27349, 62, 11250, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3127, 8398, 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, 2116, 13, 82, 5036, 13, 2617, 62, 27349, 62, 11250, 7, 27349, 28, 944, 13, 27349, 62, 15252, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 35528, 355, 6631, 62, 15252, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 21412, 13, 32165, 62, 17752, 7, 19662, 11639, 12331, 3127, 4634, 329, 10139, 4064, 82, 6, 4064, 357, 1462, 62, 30191, 7, 1069, 4516, 62, 15252, 36911, 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, 6631, 28, 40546, 1891, 13, 18982, 62, 41194, 28955, 628, 220, 220, 220, 825, 651, 62, 27349, 62, 37266, 62, 15252, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3497, 11703, 12672, 7311, 2134, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 11213, 25, 651, 7311, 2134, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 7311, 16934, 2134, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 2134, 7, 26245, 16934, 2134, 8, 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, 6314, 62, 16, 70, 62, 27349, 796, 7311, 16934, 7, 24396, 28, 944, 13, 24396, 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, 2209, 28, 944, 13, 541, 62, 21975, 62, 16, 70, 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, 2010, 27932, 28, 944, 13, 7266, 3262, 62, 16, 70, 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, 24308, 28, 944, 13, 10494, 1014, 62, 21975, 62, 16, 70, 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, 285, 28047, 28, 944, 13, 16762, 84, 62, 16, 70, 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, 288, 5907, 62, 14933, 263, 690, 28, 944, 13, 67, 5907, 62, 14933, 263, 690, 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, 288, 5907, 62, 12947, 28, 944, 13, 67, 5907, 62, 12947, 62, 3438, 1299, 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, 6314, 62, 14171, 28, 944, 13, 65, 623, 62, 14171, 62, 16, 70, 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, 6314, 62, 75, 330, 79, 62, 4873, 28, 944, 13, 75, 330, 79, 62, 16, 70, 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, 7166, 62, 27349, 62, 12985, 28, 944, 13, 32844, 62, 27349, 62, 12985, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6314, 62, 940, 70, 62, 27349, 796, 7311, 16934, 7, 24396, 28, 944, 13, 24396, 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, 2209, 28, 944, 13, 541, 62, 21975, 62, 940, 70, 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, 2010, 27932, 28, 944, 13, 7266, 3262, 62, 940, 70, 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, 24308, 28, 944, 13, 10494, 1014, 62, 21975, 62, 940, 70, 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, 285, 28047, 28, 944, 13, 16762, 84, 62, 940, 70, 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, 288, 5907, 62, 14933, 263, 690, 28, 944, 13, 67, 5907, 62, 14933, 263, 690, 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, 288, 5907, 62, 12947, 28, 944, 13, 67, 5907, 62, 12947, 62, 3438, 1299, 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, 6314, 62, 14171, 28, 944, 13, 65, 623, 62, 14171, 62, 940, 70, 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, 6314, 62, 75, 330, 79, 62, 4873, 28, 944, 13, 75, 330, 79, 62, 940, 70, 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, 7166, 62, 27349, 62, 12985, 28, 944, 13, 32844, 62, 27349, 62, 12985, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3127, 62, 15252, 796, 7311, 7, 65, 623, 16, 62, 70, 28, 65, 623, 62, 16, 70, 62, 27349, 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, 6314, 940, 62, 70, 28, 65, 623, 62, 940, 70, 62, 27349, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 3127, 62, 15252, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 35528, 355, 304, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 21412, 13, 32165, 62, 17752, 7, 19662, 11639, 12331, 351, 4634, 510, 3127, 2134, 329, 10139, 352, 38, 290, 838, 38, 8398, 1058, 4064, 82, 6, 4064, 284, 62, 30191, 7, 68, 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, 6631, 28, 1462, 62, 30191, 7, 68, 4008, 628, 220, 220, 220, 825, 4174, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6822, 4637, 290, 41216, 10139, 351, 13946, 9238, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3421, 796, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 62, 20500, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 27349, 62, 15252, 796, 2116, 13, 1136, 62, 27349, 62, 37266, 62, 15252, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 27349, 62, 15252, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2617, 62, 27349, 62, 11250, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3421, 796, 6407, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 62, 20500, 796, 366, 50, 4106, 2105, 2458, 11, 1400, 1487, 9167, 1, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 21412, 13, 37023, 62, 17752, 7, 40985, 28, 40985, 11, 31456, 28, 20274, 62, 20500, 8, 628, 198, 4299, 1388, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 8774, 2163, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 4847, 86, 62, 27349, 62, 3849, 32186, 796, 11703, 17887, 26245, 9492, 32186, 3419, 198, 220, 220, 220, 4847, 86, 62, 27349, 62, 3849, 32186, 13, 39014, 3419, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.166231
3,826
# -*- coding: utf-8 -*- """ Created on Tue Jan 28 10:14:42 2020 @author: Thomas """ #!/usr/bin/env python #Lora Base Server #Reads Data from the ESP32 Lora Receiver via serial Port and generates a CSV file for each LoRa sensor client import time import serial import re import datetime import os.path myDataFileName="/home/pi/BienenWaageMessdaten" ser = serial.Serial( port='/dev/ttyUSB0', #port='COM15', baudrate = 115200, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, timeout=1 ) measurements=[] currentSensorData=sensorData(sensorID=[-1]) datasetReady=False while 1: x=ser.readline() #print(x) parsedInput=str(x).split('\\t',) SensorIDVal=parseSerialInput("Sensor ID",parsedInput[0]) if SensorIDVal is not None: currentSensorData=sensorData(sensorID=SensorIDVal) if "Sensor ID" in parsedInput[0]: d = datetime.datetime.now() timeNow=time.mktime(d.timetuple()) #get posix time currentSensorData.receiveTime=convertDateTime(d) currentSensorData.receiveTimePosix=timeNow for paramString in parsedInput: SensorIDVal=parseSerialInput("Sensor ID",paramString) if SensorIDVal is not None: currentSensorData.sensorID=SensorIDVal weightVal=parseSerialInput("Weight",paramString) if weightVal is not None: currentSensorData.weight=weightVal voltageVal=parseSerialInput("Voltage",paramString) if voltageVal is not None: currentSensorData.voltage=voltageVal rssidVal=parseSerialInput("RSSID",paramString) if rssidVal is not None: currentSensorData.RSSID=rssidVal swarmAlarmVal=parseSerialInput("Swarm Alarm",paramString) if swarmAlarmVal is not None: currentSensorData.swarmAlarm=swarmAlarmVal else: continue outputDataLine=getOutputDataLine(currentSensorData) print(outputDataLine) appendLineToFile(myDataFileName+'Sensor'+str(int(currentSensorData.sensorID[0]))+'.txt',outputDataLine) # ============================================================================= # SensorIDVal=parseSerialInput("Sensor ID",str(x)) # # if SensorIDVal is not None: # datasetReady=True # #timeNow=str(datetime.datetime.now()) # # d = datetime.datetime.now() # # timeNow=time.mktime(d.timetuple()) # #timeNow=convertDateTime(datetime.datetime.now()) # print("Create new SensorDataSet with sensorID: ",SensorIDVal) # newSensorData=sensorData(sensorID=SensorIDVal,receiveTime=timeNow) # print("Created new SensorDataSet with sensorID: ",SensorIDVal) # #append currentSensorData after the first Dataset has been read completely # #Thats when SensorIDVal is call for the second time # print ("CurrentSensorData: ",currentSensorData.sensorID) # if currentSensorData.sensorID[0]>-1: # if the currentSensorData is not completely new... # measurements.append(currentSensorData) # outputDataLine=getOutputDataLine(currentSensorData) # csd=currentSensorData.sensorID # print ("Output: ",outputDataLine) # appendLineToFile(myDataFileName+'Sensor'+str(int(SensorIDVal[0]))+'.txt',outputDataLine) # # # # currentSensorData=newSensorData # # if datasetReady: # weightVal=parseSerialInput("Weight",str(x)) # if weightVal is not None: # currentSensorData.weight=weightVal # # voltageVal=parseSerialInput("Voltage",str(x)) # if voltageVal is not None: # currentSensorData.voltage=voltageVal # # rssidVal=parseSerialInput("RSSID",str(x)) # if rssidVal is not None: # currentSensorData.RSSID=rssidVal # # swarmAlarmVal=parseSerialInput("Swarm Alarm",str(x)) # if swarmAlarmVal is not None: # currentSensorData.swarmAlarm=swarmAlarmVal # # =============================================================================
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 2365, 2579, 838, 25, 1415, 25, 3682, 12131, 198, 198, 31, 9800, 25, 5658, 198, 37811, 198, 198, 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 628, 198, 2, 43, 5799, 7308, 9652, 198, 2, 5569, 82, 6060, 422, 262, 9428, 2624, 406, 5799, 39106, 220, 2884, 11389, 4347, 290, 18616, 257, 44189, 2393, 329, 1123, 6706, 21762, 12694, 5456, 628, 198, 11748, 640, 198, 11748, 11389, 198, 11748, 302, 198, 11748, 4818, 8079, 198, 11748, 28686, 13, 6978, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 628, 198, 1820, 6601, 8979, 5376, 35922, 11195, 14, 14415, 14, 33, 2013, 268, 33484, 496, 36479, 19608, 268, 1, 198, 198, 2655, 796, 11389, 13, 32634, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2493, 11639, 14, 7959, 14, 42852, 27155, 15, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 634, 11639, 9858, 1314, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 275, 3885, 4873, 796, 12279, 2167, 11, 198, 220, 220, 220, 220, 220, 220, 220, 34383, 28, 46911, 13, 27082, 9050, 62, 45, 11651, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2245, 9895, 28, 46911, 13, 2257, 3185, 26094, 50, 62, 11651, 11, 198, 220, 220, 220, 220, 220, 220, 220, 9881, 1096, 28, 46911, 13, 36, 9947, 26094, 50, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26827, 28, 16, 198, 8, 198, 198, 1326, 5015, 902, 28, 21737, 198, 14421, 47864, 6601, 28, 82, 22854, 6601, 7, 82, 22854, 2389, 41888, 12, 16, 12962, 198, 19608, 292, 316, 35474, 28, 25101, 198, 4514, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 28, 2655, 13, 961, 1370, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4798, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 44267, 20560, 28, 2536, 7, 87, 737, 35312, 10786, 6852, 83, 3256, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 35367, 2389, 7762, 28, 29572, 32634, 20560, 7203, 47864, 4522, 1600, 79, 945, 276, 20560, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 611, 35367, 2389, 7762, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 28, 82, 22854, 6601, 7, 82, 22854, 2389, 28, 47864, 2389, 7762, 8, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 611, 366, 47864, 4522, 1, 287, 44267, 20560, 58, 15, 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, 288, 796, 4818, 8079, 13, 19608, 8079, 13, 2197, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 640, 3844, 28, 2435, 13, 28015, 2435, 7, 67, 13, 16514, 316, 29291, 28955, 1303, 1136, 1426, 844, 640, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 13, 260, 15164, 7575, 28, 1102, 1851, 10430, 7575, 7, 67, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 13, 260, 15164, 7575, 21604, 844, 28, 2435, 3844, 198, 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, 329, 5772, 10100, 287, 44267, 20560, 25, 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, 35367, 2389, 7762, 28, 29572, 32634, 20560, 7203, 47864, 4522, 1600, 17143, 10100, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 35367, 2389, 7762, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 13, 82, 22854, 2389, 28, 47864, 2389, 7762, 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, 3463, 7762, 28, 29572, 32634, 20560, 7203, 25844, 1600, 17143, 10100, 8, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 3463, 7762, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 13, 6551, 28, 6551, 7762, 198, 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, 15004, 7762, 28, 29572, 32634, 20560, 7203, 53, 5978, 496, 1600, 17143, 10100, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15004, 7762, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 13, 37764, 496, 28, 37764, 496, 7762, 198, 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, 374, 824, 312, 7762, 28, 29572, 32634, 20560, 7203, 49, 5432, 2389, 1600, 17143, 10100, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 374, 824, 312, 7762, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 13, 49, 5432, 2389, 28, 42216, 312, 7762, 198, 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, 30077, 2348, 1670, 7762, 28, 29572, 32634, 20560, 7203, 10462, 1670, 978, 1670, 1600, 17143, 10100, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 30077, 2348, 1670, 7762, 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, 1459, 47864, 6601, 13, 2032, 1670, 2348, 1670, 28, 2032, 1670, 2348, 1670, 7762, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 6601, 13949, 28, 1136, 26410, 6601, 13949, 7, 14421, 47864, 6601, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 22915, 6601, 13949, 8, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 13949, 2514, 8979, 7, 1820, 6601, 8979, 5376, 10, 6, 47864, 6, 10, 2536, 7, 600, 7, 14421, 47864, 6601, 13, 82, 22854, 2389, 58, 15, 60, 4008, 10, 4458, 14116, 3256, 22915, 6601, 13949, 8, 198, 2, 38093, 25609, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 35367, 2389, 7762, 28, 29572, 32634, 20560, 7203, 47864, 4522, 1600, 2536, 7, 87, 4008, 198, 2, 220, 220, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 611, 35367, 2389, 7762, 318, 407, 6045, 25, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27039, 35474, 28, 17821, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2435, 3844, 28, 2536, 7, 19608, 8079, 13, 19608, 8079, 13, 2197, 28955, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 796, 4818, 8079, 13, 19608, 8079, 13, 2197, 3419, 198, 2, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 640, 3844, 28, 2435, 13, 28015, 2435, 7, 67, 13, 16514, 316, 29291, 28955, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2435, 3844, 28, 1102, 1851, 10430, 7575, 7, 19608, 8079, 13, 19608, 8079, 13, 2197, 28955, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 16447, 649, 35367, 6601, 7248, 351, 12694, 2389, 25, 33172, 47864, 2389, 7762, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 47864, 6601, 28, 82, 22854, 6601, 7, 82, 22854, 2389, 28, 47864, 2389, 7762, 11, 260, 15164, 7575, 28, 2435, 3844, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 41972, 649, 35367, 6601, 7248, 351, 12694, 2389, 25, 33172, 47864, 2389, 7762, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 33295, 1459, 47864, 6601, 706, 262, 717, 16092, 292, 316, 468, 587, 1100, 3190, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 817, 1381, 618, 35367, 2389, 7762, 318, 869, 329, 262, 1218, 640, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 5855, 11297, 47864, 6601, 25, 33172, 14421, 47864, 6601, 13, 82, 22854, 2389, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1459, 47864, 6601, 13, 82, 22854, 2389, 58, 15, 60, 29, 12, 16, 25, 1303, 611, 262, 1459, 47864, 6601, 318, 407, 3190, 649, 986, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13871, 13, 33295, 7, 14421, 47864, 6601, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5072, 6601, 13949, 28, 1136, 26410, 6601, 13949, 7, 14421, 47864, 6601, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 21282, 28, 14421, 47864, 6601, 13, 82, 22854, 2389, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 5855, 26410, 25, 33172, 22915, 6601, 13949, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24443, 13949, 2514, 8979, 7, 1820, 6601, 8979, 5376, 10, 6, 47864, 6, 10, 2536, 7, 600, 7, 47864, 2389, 7762, 58, 15, 60, 4008, 10, 4458, 14116, 3256, 22915, 6601, 13949, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 220, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 28, 3605, 47864, 6601, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27039, 35474, 25, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3463, 7762, 28, 29572, 32634, 20560, 7203, 25844, 1600, 2536, 7, 87, 4008, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 3463, 7762, 318, 407, 6045, 25, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 13, 6551, 28, 6551, 7762, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15004, 7762, 28, 29572, 32634, 20560, 7203, 53, 5978, 496, 1600, 2536, 7, 87, 4008, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15004, 7762, 318, 407, 6045, 25, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 13, 37764, 496, 28, 37764, 496, 7762, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 824, 312, 7762, 28, 29572, 32634, 20560, 7203, 49, 5432, 2389, 1600, 2536, 7, 87, 4008, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 374, 824, 312, 7762, 318, 407, 6045, 25, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 13, 49, 5432, 2389, 28, 42216, 312, 7762, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30077, 2348, 1670, 7762, 28, 29572, 32634, 20560, 7203, 10462, 1670, 978, 1670, 1600, 2536, 7, 87, 4008, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 30077, 2348, 1670, 7762, 318, 407, 6045, 25, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 47864, 6601, 13, 2032, 1670, 2348, 1670, 28, 2032, 1670, 2348, 1670, 7762, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 38093, 25609, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198 ]
2.022477
2,358
from copy import copy
[ 6738, 4866, 1330, 4866, 628, 628 ]
4.166667
6
# -*- coding: utf-8 -*- """ Downloader for ogs5. .. currentmodule:: ogs5py.tools.download Downloader ^^^^^^^^^^ A downloading routine to get the OSG5 executable. .. autosummary:: download_ogs add_exe reset_download OGS5PY_CONFIG ---- """ import os import shutil import tarfile import zipfile from urllib.request import urlretrieve, urlopen import tempfile import platform import lxml.html # TemporaryDirectory not avialable in python2 # from: https://gist.github.com/cpelley/10e2eeaf60dacc7956bb TemporaryDirectory = getattr( tempfile, "TemporaryDirectory", _TemporaryDirectory ) # https://stackoverflow.com/a/34615446/6696397 def get_links(url, ext, build=None): """Get links from url ending with ext and containing build.""" sublinks = [] connection = urlopen(url) dom = lxml.html.fromstring(connection.read()) for link in dom.xpath("//a/@href"): if not link or not link.endswith(ext): continue # skip unwanted if build is None or "build_" + build + "/" in link: sublinks.append( url + link if not link.startswith("http") else link ) return sublinks RELEASE = "https://ogsstorage.blob.core.windows.net/binaries/ogs5/" BUILD = "https://jenkins.opengeosys.org/job/ufz/job/ogs5/job/master/" STABLE = BUILD + "lastStableBuild/" SUCCESS = BUILD + "lastSuccessfulBuild/" # https://stackoverflow.com/a/53222876/6696397 OGS5PY_CONFIG = os.path.join( os.environ.get("APPDATA") or os.environ.get("XDG_CONFIG_HOME") or os.path.join(os.environ["HOME"], ".config"), "ogs5py", ) """str: Standard config path for ogs5py.""" URLS = { "5.7": { "Linux": ( RELEASE + "ogs-5.7.0-Linux-2.6.32-573.8.1.el6.x86_64-x64.tar.gz" ), "Windows": RELEASE + "ogs-5.7.0-Windows-6.1.7601-x64.zip", "Darwin": RELEASE + "ogs-5.7.0-Darwin-15.2.0-x64.tar.gz", }, "5.7.1": { "Windows": ( "https://github.com/ufz/ogs5/releases/download/" + "5.7.1/ogs-5.7.1-Windows-x64.zip" ) }, "5.8": { "Linux": ( RELEASE + "ogs-5.8-Linux-2.6.32-754.3.5.el6.x86_64-x64.tar.gz" ), "Windows": RELEASE + "ogs-5.8-Windows-x64.zip", }, } def download_ogs( version="5.7", system=None, path=OGS5PY_CONFIG, name=None, build=None ): """ Download the OGS5 executable. Parameters ---------- version : :class:`str`, optional Version to download ("5.7", "5.8", "latest" or "stable"). Default: "5.7" system : :class:`str`, optional Target system (Linux, Windows, Darwin). Default: platform.system() path : :class:`str`, optional Destination path. Default: :any:`OGS5PY_CONFIG` name : :class:`str`, optional Destination file name. Default "ogs[.exe]" build : :class:`str`, optional If system is "Linux" and version is "latest" or "stable", you can select a certain build from the ogs 5 builds: * "BRNS": Biogeochemical Reaction Network Simulator * "FEM": Finite Element Method * "GEMS": Gibbs Energy Minimization Solver * "IPQC": IPhreeqc * "LIS": Library of Iterative Solvers * "MKL": Intel Math Kernel Library * "MPI": Message Passing Interface * "PETSC": Portable, Extensible Toolkit for Scientific Computation * "PETSC_GEMS": PETSC and GEMS * "PQC": PHREEQC * "SP": Sparse solver Returns ------- dest : :class:`str` If an OGS5 executable was successfully downloaded, the file-path is returned. Notes ----- There is only an executable on "Darwin" for version "5.7". Taken from: * https://www.opengeosys.org/ogs-5/ * https://jenkins.opengeosys.org/job/ufz/job/ogs5/job/master/ """ URLS["latest"] = { "Linux": get_links(SUCCESS, "tar.gz", build="FEM")[0], "Windows": get_links(SUCCESS, "zip", build=None)[0], } URLS["stable"] = { "Linux": get_links(STABLE, "tar.gz", build="FEM")[0], "Windows": get_links(STABLE, "zip", build=None)[0], } system = platform.system() if system is None else system path = os.path.abspath(path) if not os.path.exists(path): os.makedirs(path) if version not in URLS: raise ValueError( "'{}': unknown version. Use: {}".format(version, list(URLS)) ) urls_version = URLS[version] if system not in urls_version: raise ValueError( "'{}': unsupported system for version '{}'. Use: {}".format( system, version, list(urls_version) ) ) if system == "Linux" and build is not None: if version not in ["stable", "latest"]: raise ValueError( "Use version 'stable' or 'latest' for specific build." ) base_url = STABLE if version == "stable" else SUCCESS links = get_links(base_url, ".tar.gz", build) if len(links) != 1: raise ValueError( "Can't find unique version for build '{}'. Found: {}".format( build, links ) ) ogs_url = links[0] elif build is None or build == "FEM": ogs_url = urls_version[system] else: raise ValueError( "system='{}', build='{}': Could not find matching exe.".format( system, build ) ) print("Downloading: ", ogs_url) ext = ".tar.gz" if ogs_url.endswith(".tar.gz") else ".zip" if name is None: name = "ogs.exe" if system == "Windows" else "ogs" dest = os.path.join(path, name) with TemporaryDirectory() as tmpdirname: data_filename = os.path.join(tmpdirname, "data" + ext) urlretrieve(ogs_url, data_filename) # extract the data if ext == ".tar.gz": z_file = tarfile.open(data_filename, "r:gz") names = z_file.getnames() else: z_file = zipfile.ZipFile(data_filename) names = z_file.namelist() found = "" for file in names: if os.path.basename(file).startswith("ogs"): found = file break if found: z_file.extract(member=found, path=tmpdirname) shutil.copy(os.path.join(tmpdirname, found), dest) z_file.close() return dest if found else None def add_exe(ogs_exe, dest_name=None): """ Add an OGS5 exe to :any:`OGS5PY_CONFIG`. Parameters ---------- ogs_exe : :class:`str` Path to the ogs executable to be copied. dest_name : :class:`str`, optional Destination file name. Default: basename of ogs_exe Returns ------- dest : :class:`str` If an OGS5 executable was successfully copied, the file-path is returned. """ if platform.system() == "Windows" and ogs_exe[-4:] == ".lnk": print("Don't use file links under windows...") return None if os.path.islink(ogs_exe): ogs_exe = os.path.realpath(ogs_exe) if os.path.exists(ogs_exe) and os.path.isfile(ogs_exe): dest_name = ( os.path.basename(ogs_exe) if dest_name is None else dest_name ) dest = os.path.join(OGS5PY_CONFIG, dest_name) shutil.copy(ogs_exe, dest) return dest print("The given ogs_exe does not exist...") return None def reset_download(): """Reset all downloads in :any:`OGS5PY_CONFIG`.""" shutil.rmtree(OGS5PY_CONFIG, ignore_errors=True)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 10002, 263, 329, 267, 14542, 20, 13, 198, 198, 492, 1459, 21412, 3712, 267, 14542, 20, 9078, 13, 31391, 13, 15002, 198, 198, 10002, 263, 198, 39397, 39397, 18237, 198, 198, 32, 22023, 8027, 284, 651, 262, 7294, 38, 20, 28883, 13, 198, 198, 492, 44619, 388, 6874, 3712, 198, 220, 220, 4321, 62, 18463, 198, 220, 220, 751, 62, 13499, 198, 220, 220, 13259, 62, 15002, 198, 220, 220, 440, 14313, 20, 47, 56, 62, 10943, 16254, 198, 198, 650, 198, 37811, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 13422, 7753, 198, 11748, 19974, 7753, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 1186, 30227, 11, 19016, 9654, 198, 11748, 20218, 7753, 198, 11748, 3859, 198, 11748, 300, 19875, 13, 6494, 628, 198, 2, 46042, 43055, 407, 1196, 498, 540, 287, 21015, 17, 198, 2, 422, 25, 3740, 1378, 70, 396, 13, 12567, 13, 785, 14, 13155, 417, 1636, 14, 940, 68, 17, 1453, 1878, 1899, 67, 4134, 3720, 3980, 11848, 628, 198, 12966, 5551, 43055, 796, 651, 35226, 7, 198, 220, 220, 220, 20218, 7753, 11, 366, 12966, 5551, 43055, 1600, 4808, 12966, 5551, 43055, 198, 8, 628, 198, 2, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 64, 14, 30557, 1314, 27260, 14, 2791, 4846, 33372, 198, 4299, 651, 62, 28751, 7, 6371, 11, 1070, 11, 1382, 28, 14202, 2599, 198, 220, 220, 220, 37227, 3855, 6117, 422, 19016, 7464, 351, 1070, 290, 7268, 1382, 526, 15931, 198, 220, 220, 220, 850, 28751, 796, 17635, 198, 220, 220, 220, 4637, 796, 19016, 9654, 7, 6371, 8, 198, 220, 220, 220, 2401, 796, 300, 19875, 13, 6494, 13, 6738, 8841, 7, 38659, 13, 961, 28955, 198, 220, 220, 220, 329, 2792, 287, 2401, 13, 87, 6978, 7203, 1003, 64, 14, 31, 33257, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 2792, 393, 407, 2792, 13, 437, 2032, 342, 7, 2302, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 220, 1303, 14267, 19125, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1382, 318, 6045, 393, 366, 11249, 62, 1, 1343, 1382, 1343, 12813, 1, 287, 2792, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 850, 28751, 13, 33295, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19016, 1343, 2792, 611, 407, 2792, 13, 9688, 2032, 342, 7203, 4023, 4943, 2073, 2792, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 1441, 850, 28751, 628, 198, 2200, 22781, 796, 366, 5450, 1378, 18463, 35350, 13, 2436, 672, 13, 7295, 13, 28457, 13, 3262, 14, 8800, 3166, 14, 18463, 20, 30487, 198, 19499, 26761, 796, 366, 5450, 1378, 48796, 5331, 13, 404, 3540, 418, 893, 13, 2398, 14, 21858, 14, 3046, 89, 14, 21858, 14, 18463, 20, 14, 21858, 14, 9866, 30487, 198, 2257, 17534, 796, 20571, 26761, 1343, 366, 12957, 1273, 540, 15580, 30487, 198, 12564, 4093, 7597, 796, 20571, 26761, 1343, 366, 12957, 33244, 913, 15580, 30487, 198, 198, 2, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 64, 14, 4310, 1828, 2078, 4304, 14, 2791, 4846, 33372, 198, 7730, 50, 20, 47, 56, 62, 10943, 16254, 796, 28686, 13, 6978, 13, 22179, 7, 198, 220, 220, 220, 28686, 13, 268, 2268, 13, 1136, 7203, 2969, 5760, 13563, 4943, 198, 220, 220, 220, 393, 28686, 13, 268, 2268, 13, 1136, 7203, 55, 35, 38, 62, 10943, 16254, 62, 39069, 4943, 198, 220, 220, 220, 393, 28686, 13, 6978, 13, 22179, 7, 418, 13, 268, 2268, 14692, 39069, 33116, 27071, 11250, 12340, 198, 220, 220, 220, 366, 18463, 20, 9078, 1600, 198, 8, 198, 37811, 2536, 25, 8997, 4566, 3108, 329, 267, 14542, 20, 9078, 526, 15931, 198, 198, 4261, 6561, 796, 1391, 198, 220, 220, 220, 366, 20, 13, 22, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 19314, 1298, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46492, 1343, 366, 18463, 12, 20, 13, 22, 13, 15, 12, 19314, 12, 17, 13, 21, 13, 2624, 12, 48638, 13, 23, 13, 16, 13, 417, 21, 13, 87, 4521, 62, 2414, 12, 87, 2414, 13, 18870, 13, 34586, 1, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 366, 11209, 1298, 46492, 1343, 366, 18463, 12, 20, 13, 22, 13, 15, 12, 11209, 12, 21, 13, 16, 13, 42752, 12, 87, 2414, 13, 13344, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 32708, 5404, 1298, 46492, 1343, 366, 18463, 12, 20, 13, 22, 13, 15, 12, 32708, 5404, 12, 1314, 13, 17, 13, 15, 12, 87, 2414, 13, 18870, 13, 34586, 1600, 198, 220, 220, 220, 8964, 198, 220, 220, 220, 366, 20, 13, 22, 13, 16, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 11209, 1298, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 5450, 1378, 12567, 13, 785, 14, 3046, 89, 14, 18463, 20, 14, 260, 29329, 14, 15002, 30487, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1343, 366, 20, 13, 22, 13, 16, 14, 18463, 12, 20, 13, 22, 13, 16, 12, 11209, 12, 87, 2414, 13, 13344, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 8964, 198, 220, 220, 220, 366, 20, 13, 23, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 19314, 1298, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46492, 1343, 366, 18463, 12, 20, 13, 23, 12, 19314, 12, 17, 13, 21, 13, 2624, 12, 41874, 13, 18, 13, 20, 13, 417, 21, 13, 87, 4521, 62, 2414, 12, 87, 2414, 13, 18870, 13, 34586, 1, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 366, 11209, 1298, 46492, 1343, 366, 18463, 12, 20, 13, 23, 12, 11209, 12, 87, 2414, 13, 13344, 1600, 198, 220, 220, 220, 8964, 198, 92, 628, 198, 4299, 4321, 62, 18463, 7, 198, 220, 220, 220, 2196, 2625, 20, 13, 22, 1600, 1080, 28, 14202, 11, 3108, 28, 7730, 50, 20, 47, 56, 62, 10943, 16254, 11, 1438, 28, 14202, 11, 1382, 28, 14202, 198, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 10472, 262, 440, 14313, 20, 28883, 13, 628, 220, 220, 220, 40117, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 2196, 1058, 1058, 4871, 25, 63, 2536, 47671, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 10628, 284, 4321, 5855, 20, 13, 22, 1600, 366, 20, 13, 23, 1600, 366, 42861, 1, 393, 366, 31284, 11074, 198, 220, 220, 220, 220, 220, 220, 220, 15161, 25, 366, 20, 13, 22, 1, 198, 220, 220, 220, 1080, 1058, 1058, 4871, 25, 63, 2536, 47671, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 12744, 1080, 357, 19314, 11, 3964, 11, 21450, 737, 15161, 25, 3859, 13, 10057, 3419, 198, 220, 220, 220, 3108, 1058, 1058, 4871, 25, 63, 2536, 47671, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 45657, 3108, 13, 15161, 25, 1058, 1092, 25, 63, 7730, 50, 20, 47, 56, 62, 10943, 16254, 63, 198, 220, 220, 220, 1438, 1058, 1058, 4871, 25, 63, 2536, 47671, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 45657, 2393, 1438, 13, 15161, 366, 18463, 58, 13, 13499, 30866, 198, 220, 220, 220, 1382, 1058, 1058, 4871, 25, 63, 2536, 47671, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 1002, 1080, 318, 366, 19314, 1, 290, 2196, 318, 366, 42861, 1, 393, 366, 31284, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 345, 460, 2922, 257, 1728, 1382, 422, 262, 267, 14542, 642, 12188, 25, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 366, 11473, 8035, 1298, 16024, 469, 32864, 39912, 7311, 13942, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 366, 37, 3620, 1298, 4463, 578, 11703, 11789, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 366, 38, 39201, 1298, 41071, 6682, 1855, 320, 1634, 4294, 332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 366, 4061, 48, 34, 1298, 314, 2725, 631, 80, 66, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 366, 43, 1797, 1298, 10074, 286, 40806, 876, 4294, 690, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 366, 33907, 43, 1298, 8180, 16320, 32169, 10074, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 366, 7378, 40, 1298, 16000, 46389, 26491, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 366, 47731, 6173, 1298, 44685, 11, 5683, 27339, 16984, 15813, 329, 22060, 22476, 341, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 366, 47731, 6173, 62, 38, 39201, 1298, 32043, 6173, 290, 402, 39201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 366, 47, 48, 34, 1298, 9370, 11587, 48, 34, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 366, 4303, 1298, 1338, 17208, 1540, 332, 628, 220, 220, 220, 16409, 198, 220, 220, 220, 35656, 198, 220, 220, 220, 2244, 1058, 1058, 4871, 25, 63, 2536, 63, 198, 220, 220, 220, 220, 220, 220, 220, 1002, 281, 440, 14313, 20, 28883, 373, 7675, 15680, 11, 262, 2393, 12, 6978, 198, 220, 220, 220, 220, 220, 220, 220, 318, 4504, 13, 628, 220, 220, 220, 11822, 198, 220, 220, 220, 37404, 198, 220, 220, 220, 1318, 318, 691, 281, 28883, 319, 366, 32708, 5404, 1, 329, 2196, 366, 20, 13, 22, 1911, 628, 220, 220, 220, 30222, 422, 25, 628, 220, 220, 220, 220, 220, 220, 220, 1635, 3740, 1378, 2503, 13, 404, 3540, 418, 893, 13, 2398, 14, 18463, 12, 20, 14, 198, 220, 220, 220, 220, 220, 220, 220, 1635, 3740, 1378, 48796, 5331, 13, 404, 3540, 418, 893, 13, 2398, 14, 21858, 14, 3046, 89, 14, 21858, 14, 18463, 20, 14, 21858, 14, 9866, 14, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 37902, 6561, 14692, 42861, 8973, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 19314, 1298, 651, 62, 28751, 7, 12564, 4093, 7597, 11, 366, 18870, 13, 34586, 1600, 1382, 2625, 37, 3620, 4943, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 366, 11209, 1298, 651, 62, 28751, 7, 12564, 4093, 7597, 11, 366, 13344, 1600, 1382, 28, 14202, 38381, 15, 4357, 198, 220, 220, 220, 1782, 198, 220, 220, 220, 37902, 6561, 14692, 31284, 8973, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 19314, 1298, 651, 62, 28751, 7, 2257, 17534, 11, 366, 18870, 13, 34586, 1600, 1382, 2625, 37, 3620, 4943, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 366, 11209, 1298, 651, 62, 28751, 7, 2257, 17534, 11, 366, 13344, 1600, 1382, 28, 14202, 38381, 15, 4357, 198, 220, 220, 220, 1782, 198, 220, 220, 220, 1080, 796, 3859, 13, 10057, 3419, 611, 1080, 318, 6045, 2073, 1080, 198, 220, 220, 220, 3108, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 6978, 8, 198, 220, 220, 220, 611, 407, 28686, 13, 6978, 13, 1069, 1023, 7, 6978, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 6978, 8, 198, 220, 220, 220, 611, 2196, 407, 287, 37902, 6561, 25, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 11052, 12331, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24018, 90, 92, 10354, 6439, 2196, 13, 5765, 25, 23884, 1911, 18982, 7, 9641, 11, 1351, 7, 4261, 6561, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 2956, 7278, 62, 9641, 796, 37902, 6561, 58, 9641, 60, 198, 220, 220, 220, 611, 1080, 407, 287, 2956, 7278, 62, 9641, 25, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 11052, 12331, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24018, 90, 92, 10354, 24222, 1080, 329, 2196, 705, 90, 92, 4458, 5765, 25, 23884, 1911, 18982, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1080, 11, 2196, 11, 1351, 7, 6371, 82, 62, 9641, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 611, 1080, 6624, 366, 19314, 1, 290, 1382, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2196, 407, 287, 14631, 31284, 1600, 366, 42861, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 11052, 12331, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 11041, 2196, 705, 31284, 6, 393, 705, 42861, 6, 329, 2176, 1382, 526, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2779, 62, 6371, 796, 3563, 17534, 611, 2196, 6624, 366, 31284, 1, 2073, 13558, 4093, 7597, 198, 220, 220, 220, 220, 220, 220, 220, 6117, 796, 651, 62, 28751, 7, 8692, 62, 6371, 11, 27071, 18870, 13, 34586, 1600, 1382, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 28751, 8, 14512, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 11052, 12331, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 6090, 470, 1064, 3748, 2196, 329, 1382, 705, 90, 92, 4458, 4062, 25, 23884, 1911, 18982, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1382, 11, 6117, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 267, 14542, 62, 6371, 796, 6117, 58, 15, 60, 198, 220, 220, 220, 1288, 361, 1382, 318, 6045, 393, 1382, 6624, 366, 37, 3620, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 267, 14542, 62, 6371, 796, 2956, 7278, 62, 9641, 58, 10057, 60, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 11052, 12331, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 10057, 11639, 90, 92, 3256, 1382, 11639, 90, 92, 10354, 10347, 407, 1064, 12336, 409, 68, 526, 13, 18982, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1080, 11, 1382, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 3601, 7203, 10002, 278, 25, 33172, 267, 14542, 62, 6371, 8, 198, 220, 220, 220, 1070, 796, 27071, 18870, 13, 34586, 1, 611, 267, 14542, 62, 6371, 13, 437, 2032, 342, 7, 1911, 18870, 13, 34586, 4943, 2073, 27071, 13344, 1, 198, 220, 220, 220, 611, 1438, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 796, 366, 18463, 13, 13499, 1, 611, 1080, 6624, 366, 11209, 1, 2073, 366, 18463, 1, 198, 220, 220, 220, 2244, 796, 28686, 13, 6978, 13, 22179, 7, 6978, 11, 1438, 8, 198, 220, 220, 220, 351, 46042, 43055, 3419, 355, 45218, 15908, 3672, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 62, 34345, 796, 28686, 13, 6978, 13, 22179, 7, 22065, 15908, 3672, 11, 366, 7890, 1, 1343, 1070, 8, 198, 220, 220, 220, 220, 220, 220, 220, 19016, 1186, 30227, 7, 18463, 62, 6371, 11, 1366, 62, 34345, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 7925, 262, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1070, 6624, 27071, 18870, 13, 34586, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 62, 7753, 796, 13422, 7753, 13, 9654, 7, 7890, 62, 34345, 11, 366, 81, 25, 34586, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3891, 796, 1976, 62, 7753, 13, 1136, 14933, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 62, 7753, 796, 19974, 7753, 13, 41729, 8979, 7, 7890, 62, 34345, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3891, 796, 1976, 62, 7753, 13, 7402, 46331, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1043, 796, 13538, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2393, 287, 3891, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 28686, 13, 6978, 13, 12093, 12453, 7, 7753, 737, 9688, 2032, 342, 7203, 18463, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1043, 796, 2393, 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, 611, 1043, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 62, 7753, 13, 2302, 974, 7, 19522, 28, 9275, 11, 3108, 28, 22065, 15908, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 418, 13, 6978, 13, 22179, 7, 22065, 15908, 3672, 11, 1043, 828, 2244, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 62, 7753, 13, 19836, 3419, 198, 220, 220, 220, 1441, 2244, 611, 1043, 2073, 6045, 628, 198, 4299, 751, 62, 13499, 7, 18463, 62, 13499, 11, 2244, 62, 3672, 28, 14202, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3060, 281, 440, 14313, 20, 409, 68, 284, 1058, 1092, 25, 63, 7730, 50, 20, 47, 56, 62, 10943, 16254, 44646, 628, 220, 220, 220, 40117, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 267, 14542, 62, 13499, 1058, 1058, 4871, 25, 63, 2536, 63, 198, 220, 220, 220, 220, 220, 220, 220, 10644, 284, 262, 267, 14542, 28883, 284, 307, 18984, 13, 198, 220, 220, 220, 2244, 62, 3672, 1058, 1058, 4871, 25, 63, 2536, 47671, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 45657, 2393, 1438, 13, 15161, 25, 1615, 12453, 286, 267, 14542, 62, 13499, 628, 220, 220, 220, 16409, 198, 220, 220, 220, 35656, 198, 220, 220, 220, 2244, 1058, 1058, 4871, 25, 63, 2536, 63, 198, 220, 220, 220, 220, 220, 220, 220, 1002, 281, 440, 14313, 20, 28883, 373, 7675, 18984, 11, 262, 2393, 12, 6978, 198, 220, 220, 220, 220, 220, 220, 220, 318, 4504, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 3859, 13, 10057, 3419, 6624, 366, 11209, 1, 290, 267, 14542, 62, 13499, 58, 12, 19, 47715, 6624, 27071, 18755, 74, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 3987, 470, 779, 2393, 6117, 739, 9168, 9313, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6045, 198, 220, 220, 220, 611, 28686, 13, 6978, 13, 3044, 676, 7, 18463, 62, 13499, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 267, 14542, 62, 13499, 796, 28686, 13, 6978, 13, 5305, 6978, 7, 18463, 62, 13499, 8, 198, 220, 220, 220, 611, 28686, 13, 6978, 13, 1069, 1023, 7, 18463, 62, 13499, 8, 290, 28686, 13, 6978, 13, 4468, 576, 7, 18463, 62, 13499, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2244, 62, 3672, 796, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 6978, 13, 12093, 12453, 7, 18463, 62, 13499, 8, 611, 2244, 62, 3672, 318, 6045, 2073, 2244, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2244, 796, 28686, 13, 6978, 13, 22179, 7, 7730, 50, 20, 47, 56, 62, 10943, 16254, 11, 2244, 62, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 30073, 7, 18463, 62, 13499, 11, 2244, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2244, 198, 220, 220, 220, 3601, 7203, 464, 1813, 267, 14542, 62, 13499, 857, 407, 2152, 9313, 8, 198, 220, 220, 220, 1441, 6045, 628, 198, 4299, 13259, 62, 15002, 33529, 198, 220, 220, 220, 37227, 4965, 316, 477, 21333, 287, 1058, 1092, 25, 63, 7730, 50, 20, 47, 56, 62, 10943, 16254, 63, 526, 15931, 198, 220, 220, 220, 4423, 346, 13, 81, 16762, 631, 7, 7730, 50, 20, 47, 56, 62, 10943, 16254, 11, 8856, 62, 48277, 28, 17821, 8, 198 ]
2.176153
3,514
class ViewCropRegionShapeManager(object, IDisposable): """ A class that provides access to settings related to the crop assigned to a view or a reference callout. """ def Dispose(self): """ Dispose(self: ViewCropRegionShapeManager) """ pass def GetAnnotationCropShape(self): """ GetAnnotationCropShape(self: ViewCropRegionShapeManager) -> CurveLoop Gets the annotation crop box assigned to the view. Returns: The annotation crop boundary. """ pass def GetCropShape(self): """ GetCropShape(self: ViewCropRegionShapeManager) -> IList[CurveLoop] Gets the crop boundaries that are curently active. Returns: The crop boundaries. """ pass def GetSplitRegionMaximum(self, regionIndex): """ GetSplitRegionMaximum(self: ViewCropRegionShapeManager,regionIndex: int) -> float Returns the proportional location of the maximum boundary of the specified split crop region. regionIndex: Index of region to be split horizontally (numbering starts with 0). Returns: A value from 0 to 1 representing the maximum location for the regions split boundary. This number represents the location as a ratio along the non-split rectangular crop. """ pass def GetSplitRegionMinimum(self, regionIndex): """ GetSplitRegionMinimum(self: ViewCropRegionShapeManager,regionIndex: int) -> float Returns the proportional location of the minimum boundary of the specified split crop region. regionIndex: Index of region to be split horizontally (numbering starts with 0). Returns: A value from 0 to 1 representing the minimum location for the regions split boundary. This number represents the location as a ratio along the non-split rectangular crop. """ pass def IsCropRegionShapeValid(self, boundary): """ IsCropRegionShapeValid(self: ViewCropRegionShapeManager,boundary: CurveLoop) -> bool Verifies that boundary represents one closed curve loop without self-intersections, consisting of non-zero length straight lines in a plane parallel to the view plane. boundary: The crop boundary. Returns: True if the passed crop boundary represents one closed curve loop without self-intersections, consisting of non-zero length straight lines in a plane parallel to the view plane. """ pass def ReleaseUnmanagedResources(self, *args): """ ReleaseUnmanagedResources(self: ViewCropRegionShapeManager,disposing: bool) """ pass def RemoveCropRegionShape(self): """ RemoveCropRegionShape(self: ViewCropRegionShapeManager) Removes any non-rectangular boundary of the view's crop. """ pass def RemoveSplit(self): """ RemoveSplit(self: ViewCropRegionShapeManager) Removes any split applied to the view's crop. """ pass def RemoveSplitRegion(self, regionIndex): """ RemoveSplitRegion(self: ViewCropRegionShapeManager,regionIndex: int) Removes one region in split crop. regionIndex: Index of region to be deleted (numbering starts with 0). """ pass def SetCropShape(self, boundary): """ SetCropShape(self: ViewCropRegionShapeManager,boundary: CurveLoop) Sets the boundary of the view's crop to the specified shape. boundary: The crop boundary. """ pass def SplitRegionHorizontally(self, regionIndex, leftPart, rightPart): """ SplitRegionHorizontally(self: ViewCropRegionShapeManager,regionIndex: int,leftPart: float,rightPart: float) Splits horizontally one region in split crop. regionIndex: Index of region to be split horizontally (numbering starts with 0). leftPart: Relative portion of the original region to become the new left region (0 to 1). rightPart: Relative portion of the original region to become the new right region (0 to 1). """ pass def SplitRegionVertically(self, regionIndex, topPart, bottomPart): """ SplitRegionVertically(self: ViewCropRegionShapeManager,regionIndex: int,topPart: float,bottomPart: float) Splits vertically one region in split crop. regionIndex: Index of region to be split vertically (numbering starts with 0). topPart: Relative portion of the original region to become the new top region (0 to 1). bottomPart: Relative portion of the original region to become the new bottom region (0 to 1). """ pass def __enter__(self, *args): """ __enter__(self: IDisposable) -> object """ pass def __exit__(self, *args): """ __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __repr__(self, *args): """ __repr__(self: object) -> str """ pass BottomAnnotationCropOffset = property( lambda self: object(), lambda self, v: None, lambda self: None ) """The offset from the bottom of the view crop that determines the location of the annotation crop bottom boundary. Get: BottomAnnotationCropOffset(self: ViewCropRegionShapeManager) -> float Set: BottomAnnotationCropOffset(self: ViewCropRegionShapeManager)=value """ CanBeSplit = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Verifies that the crop of the associated view is permitted to have multiple regions. Get: CanBeSplit(self: ViewCropRegionShapeManager) -> bool """ CanHaveAnnotationCrop = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Verifies that the view is allowed to have an annotation crop. Get: CanHaveAnnotationCrop(self: ViewCropRegionShapeManager) -> bool """ CanHaveShape = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Verifies that the crop of the associated view is permitted to have a non-rectangular shape. Get: CanHaveShape(self: ViewCropRegionShapeManager) -> bool """ IsSplitHorizontally = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Whether or not the view's crop is split (and the split is horizontal). Get: IsSplitHorizontally(self: ViewCropRegionShapeManager) -> bool """ IsSplitVertically = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Whether or not the view's crop is split (and the split is vertical). Get: IsSplitVertically(self: ViewCropRegionShapeManager) -> bool """ IsValidObject = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Specifies whether the .NET object represents a valid Revit entity. Get: IsValidObject(self: ViewCropRegionShapeManager) -> bool """ LeftAnnotationCropOffset = property( lambda self: object(), lambda self, v: None, lambda self: None ) """The offset from the left of the view crop that determines the location of the annotation crop left boundary. Get: LeftAnnotationCropOffset(self: ViewCropRegionShapeManager) -> float Set: LeftAnnotationCropOffset(self: ViewCropRegionShapeManager)=value """ NumberOfSplitRegions = property( lambda self: object(), lambda self, v: None, lambda self: None ) """The number of split crop regions (1 if the crop is not currently split). Get: NumberOfSplitRegions(self: ViewCropRegionShapeManager) -> int """ RightAnnotationCropOffset = property( lambda self: object(), lambda self, v: None, lambda self: None ) """The offset from the right of the view crop that determines the location of the annotation crop right boundary. Get: RightAnnotationCropOffset(self: ViewCropRegionShapeManager) -> float Set: RightAnnotationCropOffset(self: ViewCropRegionShapeManager)=value """ ShapeSet = property(lambda self: object(), lambda self, v: None, lambda self: None) """Whether or not the view crop has a non-rectangular shape set. Get: ShapeSet(self: ViewCropRegionShapeManager) -> bool """ Split = property(lambda self: object(), lambda self, v: None, lambda self: None) """Whether or not the view crop is split. Get: Split(self: ViewCropRegionShapeManager) -> bool """ TopAnnotationCropOffset = property( lambda self: object(), lambda self, v: None, lambda self: None ) """The offset from the top of the view crop that determines the location of the annotation crop top boundary. Get: TopAnnotationCropOffset(self: ViewCropRegionShapeManager) -> float Set: TopAnnotationCropOffset(self: ViewCropRegionShapeManager)=value """
[ 4871, 3582, 34, 1773, 47371, 33383, 13511, 7, 15252, 11, 4522, 271, 1930, 540, 2599, 201, 198, 220, 220, 220, 37227, 317, 1398, 326, 3769, 1895, 284, 6460, 3519, 284, 262, 13833, 8686, 284, 257, 1570, 393, 257, 4941, 869, 448, 13, 37227, 201, 198, 201, 198, 220, 220, 220, 825, 3167, 3455, 7, 944, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3167, 3455, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 3497, 2025, 38983, 34, 1773, 33383, 7, 944, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 3497, 2025, 38983, 34, 1773, 33383, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 46300, 39516, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 29620, 262, 23025, 13833, 3091, 8686, 284, 262, 1570, 13, 201, 198, 201, 198, 220, 220, 16409, 25, 383, 23025, 13833, 18645, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 3497, 34, 1773, 33383, 7, 944, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 3497, 34, 1773, 33383, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 314, 8053, 58, 26628, 303, 39516, 60, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 29620, 262, 13833, 13215, 326, 389, 13996, 429, 306, 4075, 13, 201, 198, 201, 198, 220, 220, 16409, 25, 383, 13833, 13215, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 3497, 41205, 47371, 40541, 7, 944, 11, 3814, 15732, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 3497, 41205, 47371, 40541, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 11, 36996, 15732, 25, 493, 8, 4613, 12178, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 16409, 262, 27111, 4067, 286, 262, 5415, 18645, 286, 262, 7368, 220, 201, 198, 201, 198, 220, 220, 220, 6626, 13833, 3814, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 3814, 15732, 25, 12901, 286, 3814, 284, 307, 6626, 36774, 357, 17618, 278, 4940, 351, 657, 737, 201, 198, 201, 198, 220, 220, 16409, 25, 317, 1988, 422, 657, 284, 352, 10200, 262, 5415, 4067, 329, 262, 7652, 6626, 220, 201, 198, 201, 198, 220, 220, 220, 18645, 13, 201, 198, 201, 198, 220, 220, 220, 220, 770, 1271, 6870, 262, 4067, 355, 257, 8064, 1863, 262, 220, 201, 198, 201, 198, 220, 220, 220, 1729, 12, 35312, 36954, 13833, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 3497, 41205, 47371, 44046, 7, 944, 11, 3814, 15732, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 3497, 41205, 47371, 44046, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 11, 36996, 15732, 25, 493, 8, 4613, 12178, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 16409, 262, 27111, 4067, 286, 262, 5288, 18645, 286, 262, 7368, 220, 201, 198, 201, 198, 220, 220, 220, 6626, 13833, 3814, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 3814, 15732, 25, 12901, 286, 3814, 284, 307, 6626, 36774, 357, 17618, 278, 4940, 351, 657, 737, 201, 198, 201, 198, 220, 220, 16409, 25, 317, 1988, 422, 657, 284, 352, 10200, 262, 5288, 4067, 329, 262, 7652, 6626, 220, 201, 198, 201, 198, 220, 220, 220, 18645, 13, 201, 198, 201, 198, 220, 220, 220, 220, 770, 1271, 6870, 262, 4067, 355, 257, 8064, 1863, 262, 220, 201, 198, 201, 198, 220, 220, 220, 1729, 12, 35312, 36954, 13833, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 1148, 34, 1773, 47371, 33383, 47139, 7, 944, 11, 18645, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 1148, 34, 1773, 47371, 33383, 47139, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 11, 7784, 560, 25, 46300, 39516, 8, 4613, 20512, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 4643, 6945, 326, 18645, 6870, 530, 4838, 12133, 9052, 1231, 220, 201, 198, 201, 198, 220, 220, 220, 2116, 12, 3849, 23946, 11, 201, 198, 201, 198, 220, 220, 220, 220, 17747, 286, 1729, 12, 22570, 4129, 3892, 3951, 287, 257, 6614, 220, 201, 198, 201, 198, 220, 220, 220, 10730, 284, 262, 1570, 6614, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 18645, 25, 383, 13833, 18645, 13, 201, 198, 201, 198, 220, 220, 16409, 25, 6407, 611, 262, 3804, 13833, 18645, 6870, 530, 4838, 12133, 9052, 1231, 220, 201, 198, 201, 198, 220, 220, 220, 2116, 12, 3849, 23946, 11, 201, 198, 201, 198, 220, 220, 220, 220, 17747, 286, 1729, 12, 22570, 4129, 3892, 3951, 287, 257, 6614, 220, 201, 198, 201, 198, 220, 220, 220, 10730, 284, 262, 1570, 6614, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 13868, 3118, 39935, 33236, 7, 944, 11, 1635, 22046, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13868, 3118, 39935, 33236, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 11, 6381, 32927, 25, 20512, 8, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 17220, 34, 1773, 47371, 33383, 7, 944, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 17220, 34, 1773, 47371, 33383, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 201, 198, 201, 198, 220, 220, 3982, 5241, 597, 1729, 12, 2554, 21413, 18645, 286, 262, 1570, 338, 13833, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 17220, 41205, 7, 944, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 17220, 41205, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 201, 198, 201, 198, 220, 220, 3982, 5241, 597, 6626, 5625, 284, 262, 1570, 338, 13833, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 17220, 41205, 47371, 7, 944, 11, 3814, 15732, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 17220, 41205, 47371, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 11, 36996, 15732, 25, 493, 8, 201, 198, 201, 198, 220, 220, 3982, 5241, 530, 3814, 287, 6626, 13833, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 3814, 15732, 25, 12901, 286, 3814, 284, 307, 13140, 357, 17618, 278, 4940, 351, 657, 737, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 5345, 34, 1773, 33383, 7, 944, 11, 18645, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 5345, 34, 1773, 33383, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 11, 7784, 560, 25, 46300, 39516, 8, 201, 198, 201, 198, 220, 220, 21394, 262, 18645, 286, 262, 1570, 338, 13833, 284, 262, 7368, 5485, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 18645, 25, 383, 13833, 18645, 13, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 27758, 47371, 27991, 12071, 453, 7, 944, 11, 3814, 15732, 11, 1364, 7841, 11, 826, 7841, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 27758, 47371, 27991, 12071, 453, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 11, 36996, 15732, 25, 493, 11, 9464, 7841, 25, 12178, 11, 3506, 7841, 25, 12178, 8, 201, 198, 201, 198, 220, 220, 13341, 896, 36774, 530, 3814, 287, 6626, 13833, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 3814, 15732, 25, 12901, 286, 3814, 284, 307, 6626, 36774, 357, 17618, 278, 4940, 351, 657, 737, 201, 198, 201, 198, 220, 220, 1364, 7841, 25, 45344, 6903, 286, 262, 2656, 3814, 284, 1716, 262, 649, 1364, 3814, 357, 15, 284, 352, 737, 201, 198, 201, 198, 220, 220, 826, 7841, 25, 45344, 6903, 286, 262, 2656, 3814, 284, 1716, 262, 649, 826, 3814, 357, 15, 284, 352, 737, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 27758, 47371, 42369, 1146, 7, 944, 11, 3814, 15732, 11, 1353, 7841, 11, 4220, 7841, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 201, 198, 220, 27758, 47371, 42369, 1146, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 11, 36996, 15732, 25, 493, 11, 4852, 7841, 25, 12178, 11, 22487, 7841, 25, 12178, 8, 201, 198, 201, 198, 220, 220, 13341, 896, 31677, 530, 3814, 287, 6626, 13833, 13, 201, 198, 201, 198, 220, 220, 201, 198, 201, 198, 220, 220, 3814, 15732, 25, 12901, 286, 3814, 284, 307, 6626, 31677, 357, 17618, 278, 4940, 351, 657, 737, 201, 198, 201, 198, 220, 220, 1353, 7841, 25, 45344, 6903, 286, 262, 2656, 3814, 284, 1716, 262, 649, 1353, 3814, 357, 15, 284, 352, 737, 201, 198, 201, 198, 220, 220, 4220, 7841, 25, 45344, 6903, 286, 262, 2656, 3814, 284, 1716, 262, 649, 4220, 3814, 357, 15, 284, 220, 201, 198, 201, 198, 220, 220, 220, 352, 737, 201, 198, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 11593, 9255, 834, 7, 944, 11, 1635, 22046, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 11593, 9255, 834, 7, 944, 25, 4522, 271, 1930, 540, 8, 4613, 2134, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 11593, 37023, 834, 7, 944, 11, 1635, 22046, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 11593, 37023, 834, 7, 944, 25, 4522, 271, 1930, 540, 11, 41194, 62, 4906, 25, 2134, 11, 41194, 62, 8367, 25, 2134, 11, 41194, 62, 1891, 25, 2134, 8, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1635, 22046, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2124, 13, 834, 15003, 834, 7, 23029, 4238, 4340, 2124, 26, 766, 2124, 13, 834, 4871, 834, 13, 834, 15390, 834, 329, 9877, 87, 13, 834, 15003, 834, 7, 23029, 4238, 4340, 2124, 26, 766, 2124, 13, 834, 4871, 834, 13, 834, 15390, 834, 329, 9877, 87, 13, 834, 15003, 834, 7, 23029, 4238, 4340, 2124, 26, 766, 2124, 13, 834, 4871, 834, 13, 834, 15390, 834, 329, 9877, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 825, 11593, 260, 1050, 834, 7, 944, 11, 1635, 22046, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 11593, 260, 1050, 834, 7, 944, 25, 2134, 8, 4613, 965, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 201, 198, 201, 198, 220, 220, 220, 24530, 2025, 38983, 34, 1773, 34519, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 464, 11677, 422, 262, 4220, 286, 262, 1570, 13833, 326, 15947, 262, 4067, 286, 262, 23025, 13833, 4220, 18645, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 24530, 2025, 38983, 34, 1773, 34519, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 12178, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 24530, 2025, 38983, 34, 1773, 34519, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 1680, 3856, 41205, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 13414, 6945, 326, 262, 13833, 286, 262, 3917, 1570, 318, 10431, 284, 423, 3294, 7652, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 1680, 3856, 41205, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 20512, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 1680, 11980, 2025, 38983, 34, 1773, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 13414, 6945, 326, 262, 1570, 318, 3142, 284, 423, 281, 23025, 13833, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 1680, 11980, 2025, 38983, 34, 1773, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 20512, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 1680, 11980, 33383, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 13414, 6945, 326, 262, 13833, 286, 262, 3917, 1570, 318, 10431, 284, 423, 257, 1729, 12, 2554, 21413, 5485, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 1680, 11980, 33383, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 20512, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 1148, 41205, 27991, 12071, 453, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 15354, 393, 407, 262, 1570, 338, 13833, 318, 6626, 357, 392, 262, 6626, 318, 16021, 737, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 1148, 41205, 27991, 12071, 453, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 20512, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 1148, 41205, 42369, 1146, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 15354, 393, 407, 262, 1570, 338, 13833, 318, 6626, 357, 392, 262, 6626, 318, 11723, 737, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 1148, 41205, 42369, 1146, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 20512, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 1148, 47139, 10267, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 22882, 6945, 1771, 262, 764, 12884, 2134, 6870, 257, 4938, 5416, 270, 9312, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 1148, 47139, 10267, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 20512, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 9578, 2025, 38983, 34, 1773, 34519, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 464, 11677, 422, 262, 1364, 286, 262, 1570, 13833, 326, 15947, 262, 4067, 286, 262, 23025, 13833, 1364, 18645, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 9578, 2025, 38983, 34, 1773, 34519, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 12178, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 9578, 2025, 38983, 34, 1773, 34519, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 7913, 5189, 41205, 8081, 507, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 464, 1271, 286, 6626, 13833, 7652, 357, 16, 611, 262, 13833, 318, 407, 3058, 6626, 737, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 7913, 5189, 41205, 8081, 507, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 493, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 6498, 2025, 38983, 34, 1773, 34519, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 464, 11677, 422, 262, 826, 286, 262, 1570, 13833, 326, 15947, 262, 4067, 286, 262, 23025, 13833, 826, 18645, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 6498, 2025, 38983, 34, 1773, 34519, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 12178, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 6498, 2025, 38983, 34, 1773, 34519, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 25959, 7248, 796, 3119, 7, 50033, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 8, 201, 198, 220, 220, 220, 37227, 15354, 393, 407, 262, 1570, 13833, 468, 257, 1729, 12, 2554, 21413, 5485, 900, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 25959, 7248, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 20512, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 27758, 796, 3119, 7, 50033, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 8, 201, 198, 220, 220, 220, 37227, 15354, 393, 407, 262, 1570, 13833, 318, 6626, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 27758, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 20512, 201, 198, 201, 198, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 220, 220, 220, 5849, 2025, 38983, 34, 1773, 34519, 796, 3119, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2116, 25, 2134, 22784, 37456, 2116, 11, 410, 25, 6045, 11, 37456, 2116, 25, 6045, 201, 198, 220, 220, 220, 1267, 201, 198, 220, 220, 220, 37227, 464, 11677, 422, 262, 1353, 286, 262, 1570, 13833, 326, 15947, 262, 4067, 286, 262, 23025, 13833, 1353, 18645, 13, 201, 198, 201, 198, 201, 198, 201, 198, 3855, 25, 5849, 2025, 38983, 34, 1773, 34519, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 8, 4613, 12178, 201, 198, 201, 198, 201, 198, 201, 198, 7248, 25, 5849, 2025, 38983, 34, 1773, 34519, 7, 944, 25, 3582, 34, 1773, 47371, 33383, 13511, 47505, 8367, 201, 198, 201, 198, 37811, 201, 198 ]
2.790083
3,368
# Databricks notebook source INSTGUYIKQEFVDAVPNQI DFXKJDJFAIGTQDFPNZXIHFBFJBXNSCAQMMDSAPVIFVULKEPYGJRUNILQPXYXVGWBNVBHBWSUEGQTKHMFFROKHGJKPJ OCRRFSYKRPOYFVBAHSCCPHGHUA ORMCLMKXZAKDXRSGAXPHGQDBBOGQKFQYRLQQ AKVWPNWJGXQTKSYPSLNOUXSWVYRQ YVOFGDXZWZHFASZQCMZFKHUUBCFUILVBZPHAAMMPWQPOCWRGVAHLTM NCUOQLVTIVWIMABZGYRFYFLMOIUDXEPZTMNSDTHDYWKAINMG UJKXTIQSHVGBGMWYWHLVZJL RDVCHBNRWRCSEUFZCIRJYEECZIIYXHARBS OASOKPNORKQTXEWQTQCWFBCZJRAFHVHRFKMUSOWSDDJNLP HQACLBDITTEMCSLKEUOLWVAFECHWDEWSMPJJLADNOORIOWFFQBXUHBP KCOEBZYAQCFAFLRNZTJGGNXZLRUGEDYMKBMBAIDKKLFAZUCARVQCPUTQPKMKXWPVTSGRMOLJNYGNMYGTJASOUBCMX YXOVQMGQLPZNAQSKHUIKOJHCGKJKLZJWJZKRNSNGQCRMCHEWNNHMSEWWGJZKHSWTOYXOGXSO JSHVIDOARPSYHMPG VDTAPXXSHWBWLVPOOLFJEQBVZRDYQWSBGPTSLSKPXVTUOZZFXXVIFEWQJJKTYLHCEPPOOEYB YGYUMVULDSZBEWELXBTASPDVYUKZORKFQZMLRQKJCPYRRINVLAUSTTEGGPQJVBAMHAYIHFY RXTBRRWTGLSRQPPYWZFNNXUABDGXDPYGYHEVNPLHWVOADDQJWQEWMONTUADOMV YKOYLHAREBGQERUXDMJBSZHYPIIIRZTVMKXVWDCNOFHIAJZZSRJMMFQHCGCWYJYVBYQDBZLXLKMBOE NDLBRNSZCHXOZCSDTBJEC BURTEUHPAWQUUWDBQQWDIVWHGRBAKKBATTBNDLNRZTIYLCPPIPOMVGLMJVXZCNASMHYPWSHTDDOLOQLBQORYWLYZETQ PUMXIXFBWKXVIFAB FEWWASRUZCEZVRRPNWCJNASCAKNVHDSRAMAQGTGRHSFCJPXZIXDJWBEDXZRRKLUEECYMK RQPBYDZGSMFQZXGVUMXLEZFHJFXAACTOQHIUQQMHLXFTZGBPPEYSAXXGDZIZOQCYBWIQYKEBTHBGMEKNWMGGR RPOTNUMNVYNIM ASFTCBFRGKQXMJXFHMXUHUVBIEEQURNIIPGZQBTZUCMRTF FHFDAFRLXKVNJDUTSJKZODTSXTFENNSBEDLWCUICYSZTMQNQYAOJYRL BRXHCYYPLPYENXXYYBQBSEGAKNAGFMIMHWOATNDTJSUWOFJEJMSBGMNGMKKHQLSJGNGKB ZKUDOFKJSSQTWZXOOLTHLGBWWRTUWVAUZIIEGSHPFDYSORQDIXESGZLL MDREQOCVTVBHHDOBQGIOHPWKTYYXCURTDKWANRYHZTXMWWKUEZXWNQFMXSEWWYGL MWUOYEOJYZUBKZDSMYGCNAVFZVXCDOETRKTSMJDZMNQFQTFJZMUHVQCHDMCRZIFRKVCVC ROQHBIPMNTEBHEBKXSFJEDNLKICRSCPULYUYEJZGDUCLDDFUXWWBAEFROFACUQKRDUJFVHRHVVMNLYVNWXVKI HOYJXDQGQSPNBVISRWIJUZFMUZGLOKFWPZKXGJNYELDOKFXKCNIPKDSJVUFTLSL
[ 2, 16092, 397, 23706, 20922, 2723, 198, 38604, 38022, 56, 18694, 48, 25425, 53, 5631, 33883, 48, 40, 198, 8068, 55, 42, 41, 35028, 7708, 3528, 51, 48, 35, 5837, 37371, 55, 40, 39, 26001, 37, 47858, 55, 45, 6173, 32, 48, 12038, 5258, 2969, 53, 5064, 53, 6239, 7336, 47, 56, 38, 44817, 4944, 4146, 48, 47, 34278, 55, 53, 33191, 15766, 44526, 32886, 54, 12564, 7156, 48, 51, 42, 36905, 5777, 49, 11380, 39, 38, 41, 42, 47, 41, 198, 4503, 21095, 10652, 56, 30758, 16402, 56, 37, 53, 4339, 7998, 4093, 11909, 17511, 34970, 198, 1581, 44, 5097, 33907, 55, 57, 10206, 36227, 6998, 9273, 55, 11909, 38, 48, 11012, 33, 7730, 48, 42, 37, 48, 56, 7836, 48, 48, 198, 10206, 30133, 13137, 54, 41, 38, 55, 48, 51, 42, 23060, 3705, 43, 45, 2606, 55, 17887, 53, 38162, 48, 198, 56, 53, 19238, 38, 36227, 57, 54, 57, 29567, 1921, 57, 48, 24187, 57, 26236, 39, 30100, 2749, 38989, 4146, 44526, 57, 47, 7801, 2390, 7378, 54, 48, 47, 4503, 18564, 38, 11731, 6581, 15972, 198, 7792, 52, 46, 9711, 36392, 3824, 54, 3955, 6242, 57, 31212, 32754, 56, 3697, 11770, 40, 8322, 55, 8905, 57, 15972, 8035, 35, 4221, 35, 56, 54, 25123, 1268, 20474, 198, 198, 52, 41, 42, 25010, 33866, 9693, 53, 4579, 38, 14326, 56, 54, 6581, 53, 57, 41, 43, 198, 35257, 53, 3398, 15766, 46747, 7397, 5188, 36820, 57, 34, 4663, 41, 48743, 2943, 57, 3978, 56, 55, 39, 1503, 4462, 198, 46, 1921, 11380, 13137, 14670, 48, 29551, 6217, 48, 51, 48, 43538, 37, 2749, 57, 41, 3861, 44602, 53, 17184, 26236, 44, 2937, 3913, 10305, 35028, 45, 19930, 198, 41275, 2246, 43, 14529, 22470, 3620, 7902, 43, 7336, 52, 3535, 54, 53, 8579, 25994, 22332, 6217, 50, 7378, 32178, 43, 2885, 15285, 1581, 40, 3913, 5777, 40291, 55, 52, 39, 20866, 198, 42, 8220, 30195, 57, 44947, 48, 34, 7708, 3697, 49, 37371, 51, 41, 11190, 45, 55, 57, 35972, 7340, 1961, 56, 33907, 12261, 4339, 2389, 16601, 43, 7708, 57, 9598, 1503, 53, 48, 8697, 3843, 48, 40492, 33907, 55, 25527, 53, 4694, 10761, 44, 3535, 41, 12805, 16630, 26708, 19555, 41, 1921, 2606, 2749, 43243, 198, 56, 55, 8874, 48, 20474, 9711, 47, 57, 4535, 48, 18831, 39, 10080, 22328, 41, 16045, 38, 42, 41, 42, 43, 57, 41, 54, 41, 57, 30758, 8035, 10503, 48, 9419, 44, 3398, 6217, 6144, 36905, 5188, 17947, 38, 41, 57, 42, 7998, 54, 10468, 56, 55, 7730, 55, 15821, 198, 41, 9693, 11008, 46, 1503, 3705, 56, 36905, 6968, 198, 8898, 51, 2969, 8051, 9693, 45607, 54, 43, 8859, 31559, 37, 41, 36, 40291, 53, 57, 35257, 56, 48, 54, 16811, 16960, 4694, 6561, 42, 47, 55, 36392, 52, 46, 30148, 37, 8051, 53, 5064, 6217, 48, 32178, 42, 9936, 43, 39, 5222, 10246, 6684, 22348, 33, 198, 56, 31212, 5883, 53, 6239, 5258, 57, 33, 6217, 3698, 55, 19313, 1921, 5760, 53, 56, 15039, 57, 14670, 37, 48, 57, 5805, 49, 48, 42, 41, 8697, 56, 21095, 1268, 53, 13534, 7759, 51, 7156, 16960, 48, 41697, 33, 2390, 39, 4792, 40, 29567, 56, 198, 198, 49, 25010, 11473, 46747, 35990, 6561, 49, 48, 10246, 56, 54, 57, 37, 6144, 55, 52, 6242, 35, 38, 55, 6322, 56, 31212, 13909, 53, 45, 6489, 39, 54, 29516, 29266, 48, 41, 54, 48, 6217, 27857, 51, 52, 2885, 2662, 53, 198, 56, 42, 21414, 43, 39, 12203, 40469, 48, 1137, 31235, 23127, 41, 4462, 57, 42598, 47, 3978, 4663, 57, 6849, 33907, 55, 30133, 9697, 15285, 44602, 3539, 41, 30148, 12562, 41, 12038, 37, 48, 16045, 15916, 54, 56, 41, 56, 53, 17513, 48, 11012, 57, 43, 32457, 42, 44, 8202, 36, 198, 198, 8575, 43, 11473, 8035, 57, 3398, 55, 46, 57, 7902, 35, 22737, 41, 2943, 198, 38926, 9328, 52, 39, 4537, 54, 10917, 52, 54, 11012, 48, 48, 22332, 3824, 12418, 10761, 4339, 16601, 33, 17139, 33, 8575, 43, 24723, 57, 25621, 56, 5639, 10246, 4061, 2662, 53, 8763, 44, 41697, 55, 57, 34, 18293, 36208, 48232, 19416, 6535, 16458, 3535, 46, 9711, 33, 48, 15513, 54, 11319, 57, 2767, 48, 198, 5105, 43243, 10426, 26001, 54, 42, 55, 53, 5064, 6242, 198, 37, 6217, 54, 1921, 49, 52, 57, 5222, 57, 13024, 49, 13137, 27353, 41, 18293, 8141, 42, 27159, 39, 5258, 24115, 32, 48, 19555, 10761, 7998, 4851, 12889, 55, 57, 10426, 35028, 45607, 1961, 55, 57, 21095, 42, 43, 8924, 2943, 56, 33907, 198, 49, 48, 47, 17513, 35, 57, 38, 12310, 37, 48, 40692, 37094, 5883, 55, 2538, 57, 44602, 41, 17213, 32, 2246, 10468, 48, 25374, 52, 48, 48, 44, 6581, 55, 9792, 57, 4579, 10246, 22348, 4090, 8051, 45113, 57, 14887, 46, 48, 34, 56, 48802, 33866, 56, 7336, 33, 4221, 40469, 11682, 42, 27605, 20474, 10761, 198, 198, 20031, 2394, 41359, 27159, 40760, 3955, 198, 1921, 37, 4825, 33, 10913, 38, 42, 48, 37643, 41, 55, 37, 36905, 55, 52, 39, 31667, 3483, 6500, 48, 27064, 3978, 6968, 57, 48, 19313, 57, 9598, 13599, 10234, 198, 37, 29567, 5631, 37, 7836, 55, 42, 53, 45, 37882, 3843, 50, 41, 42, 57, 3727, 4694, 55, 10234, 1677, 8035, 33, 1961, 43, 27353, 52, 2149, 16309, 57, 15972, 48, 45, 48, 44947, 46, 41, 56, 7836, 198, 11473, 55, 16045, 26314, 6489, 47, 56, 1677, 8051, 26314, 33, 48, 4462, 7156, 10206, 4535, 21713, 44, 3955, 39, 54, 46, 1404, 8575, 51, 41, 12564, 54, 19238, 41, 36, 41, 5653, 33, 15548, 10503, 44, 16601, 41275, 6561, 41, 38, 10503, 22764, 198, 57, 42, 8322, 19238, 42, 41, 5432, 48, 34551, 40692, 31559, 4221, 43, 4579, 17947, 14181, 52, 54, 11731, 52, 57, 3978, 7156, 9693, 47, 26009, 16309, 1581, 48, 35, 10426, 1546, 38, 57, 3069, 198, 12740, 2200, 48, 4503, 53, 6849, 33, 39, 10227, 9864, 48, 38, 9399, 14082, 54, 42, 9936, 56, 55, 34, 4261, 21016, 42, 54, 1565, 18276, 39, 57, 29551, 14326, 54, 42, 8924, 40692, 29767, 48, 23264, 55, 5188, 17947, 56, 8763, 198, 198, 14326, 52, 21414, 4720, 41, 56, 57, 10526, 42, 57, 5258, 26708, 15916, 4535, 53, 37, 57, 53, 55, 8610, 46, 2767, 49, 42, 4694, 44, 37882, 57, 39764, 48, 37, 48, 10234, 41, 57, 42422, 39, 53, 48, 3398, 23127, 9419, 57, 5064, 49, 42, 15922, 15922, 198, 13252, 48, 39, 3483, 5868, 45, 9328, 33, 13909, 33, 42, 55, 20802, 41, 1961, 32572, 42, 2149, 49, 6173, 5105, 11319, 52, 48743, 41, 57, 45113, 52, 5097, 35, 8068, 31235, 17947, 4339, 36, 10913, 19238, 2246, 52, 48, 30758, 35, 52, 41, 37, 53, 17184, 39, 53, 15996, 45, 11319, 53, 27605, 55, 53, 37845, 198, 198, 39, 21414, 41, 55, 35, 48, 38, 48, 4303, 32819, 29817, 46747, 23852, 52, 57, 23264, 52, 57, 8763, 11380, 24160, 47, 57, 42, 55, 38, 41, 12805, 24639, 11380, 17213, 36222, 45, 4061, 42, 5258, 41697, 52, 9792, 6561, 43 ]
1.542709
1,159
import torch import torch.nn as nn __all__ = [ 'blocks_dict', 'InvertedResidual', 'conv_1x1_bn', 'conv_bn' ] blocks_dict = { 'k3r3':lambda inp, oup, stride : InvertedResidual(inp, oup, 3, 1, stride, 3), 'k3r6':lambda inp, oup, stride : InvertedResidual(inp, oup, 3, 1, stride, 6), 'k5r3':lambda inp, oup, stride : InvertedResidual(inp, oup, 5, 2, stride, 3), 'k5r6':lambda inp, oup, stride : InvertedResidual(inp, oup, 5, 2, stride, 6), 'k7r3':lambda inp, oup, stride : InvertedResidual(inp, oup, 7, 3, stride, 3), 'k7r6':lambda inp, oup, stride : InvertedResidual(inp, oup, 7, 3, stride, 6), }
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 27372, 62, 11600, 3256, 198, 220, 220, 220, 705, 818, 13658, 4965, 312, 723, 3256, 198, 220, 220, 220, 705, 42946, 62, 16, 87, 16, 62, 9374, 3256, 198, 220, 220, 220, 705, 42946, 62, 9374, 6, 198, 60, 628, 198, 27372, 62, 11600, 796, 1391, 198, 220, 220, 220, 705, 74, 18, 81, 18, 10354, 50033, 287, 79, 11, 267, 929, 11, 33769, 1058, 554, 13658, 4965, 312, 723, 7, 259, 79, 11, 267, 929, 11, 513, 11, 352, 11, 33769, 11, 513, 828, 198, 220, 220, 220, 705, 74, 18, 81, 21, 10354, 50033, 287, 79, 11, 267, 929, 11, 33769, 1058, 554, 13658, 4965, 312, 723, 7, 259, 79, 11, 267, 929, 11, 513, 11, 352, 11, 33769, 11, 718, 828, 198, 220, 220, 220, 705, 74, 20, 81, 18, 10354, 50033, 287, 79, 11, 267, 929, 11, 33769, 1058, 554, 13658, 4965, 312, 723, 7, 259, 79, 11, 267, 929, 11, 642, 11, 362, 11, 33769, 11, 513, 828, 198, 220, 220, 220, 705, 74, 20, 81, 21, 10354, 50033, 287, 79, 11, 267, 929, 11, 33769, 1058, 554, 13658, 4965, 312, 723, 7, 259, 79, 11, 267, 929, 11, 642, 11, 362, 11, 33769, 11, 718, 828, 198, 220, 220, 220, 705, 74, 22, 81, 18, 10354, 50033, 287, 79, 11, 267, 929, 11, 33769, 1058, 554, 13658, 4965, 312, 723, 7, 259, 79, 11, 267, 929, 11, 767, 11, 513, 11, 33769, 11, 513, 828, 198, 220, 220, 220, 705, 74, 22, 81, 21, 10354, 50033, 287, 79, 11, 267, 929, 11, 33769, 1058, 554, 13658, 4965, 312, 723, 7, 259, 79, 11, 267, 929, 11, 767, 11, 513, 11, 33769, 11, 718, 828, 198, 92, 628, 628 ]
2.094771
306
import h5py import numpy as np import pandas as pd import os from argparse import ArgumentParser if __name__ == '__main__': parser = ArgumentParser() parser.add_argument('ifile_os') parser.add_argument('ifile_pfs') # parser.add_argument('-e', '--event_col', default='OSEvent') # parser.add_argument('-t', '--time_col', default='TTDy') # parser.add_argument('--txcol', type=str, default='SBRT') # parser.add_argument('--drop', help='drop columns', nargs='+', type=str) # parser.add_argument('--droprows', help='drop rows where [cols] have value --droprowsval', nargs='+', type=str) # parser.add_argument( # '--droprowsval', help='value at which to drop the rows from --droprows, default 1', type=int, default=1) # parser.add_argument('--droprows2', help='drop rows where [cols] have value --droprowsval2', nargs='+', type=str) # parser.add_argument( # '--droprowsval2', help='value at which to drop the rows from --droprows2, default 0', type=int, default=0) args = parser.parse_args() print(args) df = pd.read_csv(args.ifile_os) # print(df) drop_sbrtVS = ['Treatment', 'RFA', 'SBRT_OR_RFA'] drop_rfaVS = ['Treatment', 'SBRT', 'SBRT_OR_RFA'] drop_sbrtORrfa = ['Treatment', 'SBRT', 'RFA'] # # THIS IS FOR OS FIRST frac = 0.5 ds = { 'SBRT_train': df[df.SBRT == 1].sample(frac=frac), 'RFA_train': df[df.RFA == 1].sample(frac=frac), 'NONE_train': df[df.SBRT_OR_RFA == 0].sample(frac=frac) } ds |= { 'SBRT_test': df.loc[df[df.SBRT == 1].index.symmetric_difference(ds['SBRT_train'].index)], 'RFA_test': df.loc[df[df.RFA == 1].index.symmetric_difference(ds['RFA_train'].index)], 'NONE_test': df.loc[df[df.SBRT_OR_RFA == 0].index.symmetric_difference(ds['NONE_train'].index)], } df_sbrtVSnone = { 'train': pd.concat([ds['SBRT_train'], ds['NONE_train']]).drop(columns=drop_sbrtVS), 'test': pd.concat([ds['SBRT_test'], ds['NONE_test']]).drop(columns=drop_sbrtVS) } df_rfaVSnone = { 'train': pd.concat([ds['RFA_train'], ds['NONE_train']]).drop(columns=drop_rfaVS), 'test': pd.concat([ds['RFA_test'], ds['NONE_test']]).drop(columns=drop_rfaVS) } df_sbrtVSrfa = { 'train': pd.concat([ds['SBRT_train'], ds['RFA_train']]).drop(columns=drop_sbrtVS), 'test': pd.concat([ds['SBRT_test'], ds['RFA_test']]).drop(columns=drop_sbrtVS) } df_sbrtORrfa = { 'train': pd.concat([ds['SBRT_train'], ds['RFA_train'], ds['NONE_train']]).drop(columns=drop_sbrtORrfa), 'test': pd.concat([ds['SBRT_test'], ds['RFA_test'], ds['NONE_test']]).drop(columns=drop_sbrtORrfa) } ofile_os = os.path.join(os.path.dirname(args.ifile_os), 'liver_os_sbrtVSnone.hd5') dataframes_to_hd5(df_sbrtVSnone, ofile_os, 'OSEvent', 'TTDy') ofile_os = os.path.join(os.path.dirname(args.ifile_os), 'liver_os_rfaVSnone.hd5') dataframes_to_hd5(df_rfaVSnone, ofile_os, 'OSEvent', 'TTDy') ofile_os = os.path.join(os.path.dirname(args.ifile_os), 'liver_os_sbrtVSrfa.hd5') dataframes_to_hd5(df_sbrtVSrfa, ofile_os, 'OSEvent', 'TTDy') ofile_os = os.path.join(os.path.dirname(args.ifile_os), 'liver_os_sbrtORrfa.hd5') dataframes_to_hd5(df_sbrtORrfa, ofile_os, 'OSEvent', 'TTDy') # # USE INDICES FROM OS FOR PFS df_PFS = pd.read_csv(args.ifile_pfs) df_sbrtVSnone_pfs = { 'train': df_PFS.loc[df_sbrtVSnone['train'].index].drop(columns=drop_sbrtVS), 'test': df_PFS.loc[df_sbrtVSnone['test'].index].drop(columns=drop_sbrtVS) } df_rfaVSnone_pfs = { 'train': df_PFS.loc[df_rfaVSnone['train'].index].drop(columns=drop_rfaVS), 'test': df_PFS.loc[df_rfaVSnone['test'].index].drop(columns=drop_rfaVS) } df_sbrtVSrfa_pfs = { 'train': df_PFS.loc[df_sbrtVSrfa['train'].index].drop(columns=drop_sbrtVS), 'test': df_PFS.loc[df_sbrtVSrfa['test'].index].drop(columns=drop_sbrtVS) } df_sbrtORrfa_pfs = { 'train': df_PFS.loc[df_sbrtORrfa['train'].index].drop(columns=drop_sbrtORrfa), 'test': df_PFS.loc[df_sbrtORrfa['test'].index].drop(columns=drop_sbrtORrfa) } ofile_pfs = os.path.join(os.path.dirname(args.ifile_os), 'liver_pfs_sbrtVSnone.hd5') dataframes_to_hd5(df_sbrtVSnone_pfs, ofile_pfs, 'PFSEvent', 'TTPy') ofile_pfs = os.path.join(os.path.dirname(args.ifile_os), 'liver_pfs_rfaVSnone.hd5') dataframes_to_hd5(df_rfaVSnone_pfs, ofile_pfs, 'PFSEvent', 'TTPy') ofile_pfs = os.path.join(os.path.dirname(args.ifile_os), 'liver_pfs_sbrtVSrfa.hd5') dataframes_to_hd5(df_sbrtVSrfa_pfs, ofile_pfs, 'PFSEvent', 'TTPy') ofile_pfs = os.path.join(os.path.dirname(args.ifile_os), 'liver_pfs_sbrtORrfa.hd5') dataframes_to_hd5(df_sbrtORrfa_pfs, ofile_pfs, 'PFSEvent', 'TTPy')
[ 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 6738, 1822, 29572, 1330, 45751, 46677, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 30751, 796, 45751, 46677, 3419, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 361, 576, 62, 418, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 361, 576, 62, 79, 9501, 11537, 198, 220, 220, 220, 1303, 30751, 13, 2860, 62, 49140, 10786, 12, 68, 3256, 705, 438, 15596, 62, 4033, 3256, 4277, 11639, 2640, 9237, 11537, 198, 220, 220, 220, 1303, 30751, 13, 2860, 62, 49140, 10786, 12, 83, 3256, 705, 438, 2435, 62, 4033, 3256, 4277, 11639, 15751, 35, 88, 11537, 198, 220, 220, 220, 1303, 30751, 13, 2860, 62, 49140, 10786, 438, 17602, 4033, 3256, 2099, 28, 2536, 11, 4277, 11639, 50, 11473, 51, 11537, 198, 220, 220, 220, 1303, 30751, 13, 2860, 62, 49140, 10786, 438, 14781, 3256, 1037, 11639, 14781, 15180, 3256, 299, 22046, 11639, 10, 3256, 2099, 28, 2536, 8, 198, 220, 220, 220, 1303, 30751, 13, 2860, 62, 49140, 10786, 438, 14781, 8516, 3256, 1037, 11639, 14781, 15274, 810, 685, 4033, 82, 60, 423, 1988, 1377, 14781, 8516, 2100, 3256, 299, 22046, 11639, 10, 3256, 2099, 28, 2536, 8, 198, 220, 220, 220, 1303, 30751, 13, 2860, 62, 49140, 7, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 705, 438, 14781, 8516, 2100, 3256, 1037, 11639, 8367, 379, 543, 284, 4268, 262, 15274, 422, 1377, 14781, 8516, 11, 4277, 352, 3256, 2099, 28, 600, 11, 4277, 28, 16, 8, 198, 220, 220, 220, 1303, 30751, 13, 2860, 62, 49140, 10786, 438, 14781, 8516, 17, 3256, 1037, 11639, 14781, 15274, 810, 685, 4033, 82, 60, 423, 1988, 1377, 14781, 8516, 2100, 17, 3256, 299, 22046, 11639, 10, 3256, 2099, 28, 2536, 8, 198, 220, 220, 220, 1303, 30751, 13, 2860, 62, 49140, 7, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 705, 438, 14781, 8516, 2100, 17, 3256, 1037, 11639, 8367, 379, 543, 284, 4268, 262, 15274, 422, 1377, 14781, 8516, 17, 11, 4277, 657, 3256, 2099, 28, 600, 11, 4277, 28, 15, 8, 198, 220, 220, 220, 26498, 796, 30751, 13, 29572, 62, 22046, 3419, 628, 220, 220, 220, 3601, 7, 22046, 8, 628, 220, 220, 220, 47764, 796, 279, 67, 13, 961, 62, 40664, 7, 22046, 13, 361, 576, 62, 418, 8, 628, 220, 220, 220, 1303, 3601, 7, 7568, 8, 628, 220, 220, 220, 4268, 62, 82, 1671, 83, 20304, 796, 37250, 51, 21731, 3256, 705, 49, 7708, 3256, 705, 50, 11473, 51, 62, 1581, 62, 49, 7708, 20520, 198, 220, 220, 220, 4268, 62, 81, 13331, 20304, 796, 37250, 51, 21731, 3256, 705, 50, 11473, 51, 3256, 705, 50, 11473, 51, 62, 1581, 62, 49, 7708, 20520, 198, 220, 220, 220, 4268, 62, 82, 1671, 83, 1581, 81, 13331, 796, 37250, 51, 21731, 3256, 705, 50, 11473, 51, 3256, 705, 49, 7708, 20520, 628, 220, 220, 220, 1303, 198, 220, 220, 220, 1303, 12680, 3180, 7473, 7294, 31328, 628, 220, 220, 220, 1216, 330, 796, 657, 13, 20, 198, 220, 220, 220, 288, 82, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 50, 11473, 51, 62, 27432, 10354, 47764, 58, 7568, 13, 50, 11473, 51, 6624, 352, 4083, 39873, 7, 31944, 28, 31944, 828, 198, 220, 220, 220, 220, 220, 220, 220, 705, 49, 7708, 62, 27432, 10354, 47764, 58, 7568, 13, 49, 7708, 6624, 352, 4083, 39873, 7, 31944, 28, 31944, 828, 198, 220, 220, 220, 220, 220, 220, 220, 705, 45, 11651, 62, 27432, 10354, 47764, 58, 7568, 13, 50, 11473, 51, 62, 1581, 62, 49, 7708, 6624, 657, 4083, 39873, 7, 31944, 28, 31944, 8, 198, 220, 220, 220, 1782, 198, 220, 220, 220, 288, 82, 930, 28, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 50, 11473, 51, 62, 9288, 10354, 47764, 13, 17946, 58, 7568, 58, 7568, 13, 50, 11473, 51, 6624, 352, 4083, 9630, 13, 1837, 3020, 19482, 62, 26069, 1945, 7, 9310, 17816, 50, 11473, 51, 62, 27432, 6, 4083, 9630, 8, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 705, 49, 7708, 62, 9288, 10354, 47764, 13, 17946, 58, 7568, 58, 7568, 13, 49, 7708, 6624, 352, 4083, 9630, 13, 1837, 3020, 19482, 62, 26069, 1945, 7, 9310, 17816, 49, 7708, 62, 27432, 6, 4083, 9630, 8, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 705, 45, 11651, 62, 9288, 10354, 47764, 13, 17946, 58, 7568, 58, 7568, 13, 50, 11473, 51, 62, 1581, 62, 49, 7708, 6624, 657, 4083, 9630, 13, 1837, 3020, 19482, 62, 26069, 1945, 7, 9310, 17816, 45, 11651, 62, 27432, 6, 4083, 9630, 8, 4357, 198, 220, 220, 220, 1782, 628, 220, 220, 220, 47764, 62, 82, 1671, 83, 53, 16501, 505, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 27432, 10354, 279, 67, 13, 1102, 9246, 26933, 9310, 17816, 50, 11473, 51, 62, 27432, 6, 4357, 288, 82, 17816, 45, 11651, 62, 27432, 6, 11907, 737, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 20304, 828, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9288, 10354, 279, 67, 13, 1102, 9246, 26933, 9310, 17816, 50, 11473, 51, 62, 9288, 6, 4357, 288, 82, 17816, 45, 11651, 62, 9288, 6, 11907, 737, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 20304, 8, 198, 220, 220, 220, 1782, 198, 220, 220, 220, 47764, 62, 81, 13331, 53, 16501, 505, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 27432, 10354, 279, 67, 13, 1102, 9246, 26933, 9310, 17816, 49, 7708, 62, 27432, 6, 4357, 288, 82, 17816, 45, 11651, 62, 27432, 6, 11907, 737, 14781, 7, 28665, 82, 28, 14781, 62, 81, 13331, 20304, 828, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9288, 10354, 279, 67, 13, 1102, 9246, 26933, 9310, 17816, 49, 7708, 62, 9288, 6, 4357, 288, 82, 17816, 45, 11651, 62, 9288, 6, 11907, 737, 14781, 7, 28665, 82, 28, 14781, 62, 81, 13331, 20304, 8, 198, 220, 220, 220, 1782, 198, 220, 220, 220, 47764, 62, 82, 1671, 83, 20304, 81, 13331, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 27432, 10354, 279, 67, 13, 1102, 9246, 26933, 9310, 17816, 50, 11473, 51, 62, 27432, 6, 4357, 288, 82, 17816, 49, 7708, 62, 27432, 6, 11907, 737, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 20304, 828, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9288, 10354, 279, 67, 13, 1102, 9246, 26933, 9310, 17816, 50, 11473, 51, 62, 9288, 6, 4357, 288, 82, 17816, 49, 7708, 62, 9288, 6, 11907, 737, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 20304, 8, 198, 220, 220, 220, 1782, 198, 220, 220, 220, 47764, 62, 82, 1671, 83, 1581, 81, 13331, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 27432, 10354, 279, 67, 13, 1102, 9246, 26933, 9310, 17816, 50, 11473, 51, 62, 27432, 6, 4357, 288, 82, 17816, 49, 7708, 62, 27432, 6, 4357, 288, 82, 17816, 45, 11651, 62, 27432, 6, 11907, 737, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 1581, 81, 13331, 828, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9288, 10354, 279, 67, 13, 1102, 9246, 26933, 9310, 17816, 50, 11473, 51, 62, 9288, 6, 4357, 288, 82, 17816, 49, 7708, 62, 9288, 6, 4357, 288, 82, 17816, 45, 11651, 62, 9288, 6, 11907, 737, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 1581, 81, 13331, 8, 198, 220, 220, 220, 1782, 628, 220, 220, 220, 286, 576, 62, 418, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 22046, 13, 361, 576, 62, 418, 828, 705, 75, 1428, 62, 418, 62, 82, 1671, 83, 53, 16501, 505, 13, 31298, 20, 11537, 198, 220, 220, 220, 1366, 37805, 62, 1462, 62, 31298, 20, 7, 7568, 62, 82, 1671, 83, 53, 16501, 505, 11, 286, 576, 62, 418, 11, 705, 2640, 9237, 3256, 705, 15751, 35, 88, 11537, 628, 220, 220, 220, 286, 576, 62, 418, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 22046, 13, 361, 576, 62, 418, 828, 705, 75, 1428, 62, 418, 62, 81, 13331, 53, 16501, 505, 13, 31298, 20, 11537, 198, 220, 220, 220, 1366, 37805, 62, 1462, 62, 31298, 20, 7, 7568, 62, 81, 13331, 53, 16501, 505, 11, 286, 576, 62, 418, 11, 705, 2640, 9237, 3256, 705, 15751, 35, 88, 11537, 628, 220, 220, 220, 286, 576, 62, 418, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 22046, 13, 361, 576, 62, 418, 828, 705, 75, 1428, 62, 418, 62, 82, 1671, 83, 20304, 81, 13331, 13, 31298, 20, 11537, 198, 220, 220, 220, 1366, 37805, 62, 1462, 62, 31298, 20, 7, 7568, 62, 82, 1671, 83, 20304, 81, 13331, 11, 286, 576, 62, 418, 11, 705, 2640, 9237, 3256, 705, 15751, 35, 88, 11537, 628, 220, 220, 220, 286, 576, 62, 418, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 22046, 13, 361, 576, 62, 418, 828, 705, 75, 1428, 62, 418, 62, 82, 1671, 83, 1581, 81, 13331, 13, 31298, 20, 11537, 198, 220, 220, 220, 1366, 37805, 62, 1462, 62, 31298, 20, 7, 7568, 62, 82, 1671, 83, 1581, 81, 13331, 11, 286, 576, 62, 418, 11, 705, 2640, 9237, 3256, 705, 15751, 35, 88, 11537, 628, 220, 220, 220, 1303, 198, 220, 220, 220, 1303, 23210, 24413, 34444, 16034, 7294, 7473, 350, 10652, 628, 220, 220, 220, 47764, 62, 47, 10652, 796, 279, 67, 13, 961, 62, 40664, 7, 22046, 13, 361, 576, 62, 79, 9501, 8, 198, 220, 220, 220, 47764, 62, 82, 1671, 83, 53, 16501, 505, 62, 79, 9501, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 27432, 10354, 47764, 62, 47, 10652, 13, 17946, 58, 7568, 62, 82, 1671, 83, 53, 16501, 505, 17816, 27432, 6, 4083, 9630, 4083, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 20304, 828, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9288, 10354, 47764, 62, 47, 10652, 13, 17946, 58, 7568, 62, 82, 1671, 83, 53, 16501, 505, 17816, 9288, 6, 4083, 9630, 4083, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 20304, 8, 198, 220, 220, 220, 1782, 198, 220, 220, 220, 47764, 62, 81, 13331, 53, 16501, 505, 62, 79, 9501, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 27432, 10354, 47764, 62, 47, 10652, 13, 17946, 58, 7568, 62, 81, 13331, 53, 16501, 505, 17816, 27432, 6, 4083, 9630, 4083, 14781, 7, 28665, 82, 28, 14781, 62, 81, 13331, 20304, 828, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9288, 10354, 47764, 62, 47, 10652, 13, 17946, 58, 7568, 62, 81, 13331, 53, 16501, 505, 17816, 9288, 6, 4083, 9630, 4083, 14781, 7, 28665, 82, 28, 14781, 62, 81, 13331, 20304, 8, 198, 220, 220, 220, 1782, 198, 220, 220, 220, 47764, 62, 82, 1671, 83, 20304, 81, 13331, 62, 79, 9501, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 27432, 10354, 47764, 62, 47, 10652, 13, 17946, 58, 7568, 62, 82, 1671, 83, 20304, 81, 13331, 17816, 27432, 6, 4083, 9630, 4083, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 20304, 828, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9288, 10354, 47764, 62, 47, 10652, 13, 17946, 58, 7568, 62, 82, 1671, 83, 20304, 81, 13331, 17816, 9288, 6, 4083, 9630, 4083, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 20304, 8, 198, 220, 220, 220, 1782, 198, 220, 220, 220, 47764, 62, 82, 1671, 83, 1581, 81, 13331, 62, 79, 9501, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 27432, 10354, 47764, 62, 47, 10652, 13, 17946, 58, 7568, 62, 82, 1671, 83, 1581, 81, 13331, 17816, 27432, 6, 4083, 9630, 4083, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 1581, 81, 13331, 828, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9288, 10354, 47764, 62, 47, 10652, 13, 17946, 58, 7568, 62, 82, 1671, 83, 1581, 81, 13331, 17816, 9288, 6, 4083, 9630, 4083, 14781, 7, 28665, 82, 28, 14781, 62, 82, 1671, 83, 1581, 81, 13331, 8, 198, 220, 220, 220, 1782, 628, 220, 220, 220, 286, 576, 62, 79, 9501, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 22046, 13, 361, 576, 62, 418, 828, 705, 75, 1428, 62, 79, 9501, 62, 82, 1671, 83, 53, 16501, 505, 13, 31298, 20, 11537, 198, 220, 220, 220, 1366, 37805, 62, 1462, 62, 31298, 20, 7, 7568, 62, 82, 1671, 83, 53, 16501, 505, 62, 79, 9501, 11, 286, 576, 62, 79, 9501, 11, 705, 42668, 5188, 1151, 3256, 705, 51, 7250, 88, 11537, 628, 220, 220, 220, 286, 576, 62, 79, 9501, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 22046, 13, 361, 576, 62, 418, 828, 705, 75, 1428, 62, 79, 9501, 62, 81, 13331, 53, 16501, 505, 13, 31298, 20, 11537, 198, 220, 220, 220, 1366, 37805, 62, 1462, 62, 31298, 20, 7, 7568, 62, 81, 13331, 53, 16501, 505, 62, 79, 9501, 11, 286, 576, 62, 79, 9501, 11, 705, 42668, 5188, 1151, 3256, 705, 51, 7250, 88, 11537, 628, 220, 220, 220, 286, 576, 62, 79, 9501, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 22046, 13, 361, 576, 62, 418, 828, 705, 75, 1428, 62, 79, 9501, 62, 82, 1671, 83, 20304, 81, 13331, 13, 31298, 20, 11537, 198, 220, 220, 220, 1366, 37805, 62, 1462, 62, 31298, 20, 7, 7568, 62, 82, 1671, 83, 20304, 81, 13331, 62, 79, 9501, 11, 286, 576, 62, 79, 9501, 11, 705, 42668, 5188, 1151, 3256, 705, 51, 7250, 88, 11537, 628, 220, 220, 220, 286, 576, 62, 79, 9501, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 22046, 13, 361, 576, 62, 418, 828, 705, 75, 1428, 62, 79, 9501, 62, 82, 1671, 83, 1581, 81, 13331, 13, 31298, 20, 11537, 198, 220, 220, 220, 1366, 37805, 62, 1462, 62, 31298, 20, 7, 7568, 62, 82, 1671, 83, 1581, 81, 13331, 62, 79, 9501, 11, 286, 576, 62, 79, 9501, 11, 705, 42668, 5188, 1151, 3256, 705, 51, 7250, 88, 11537, 198 ]
1.994635
2,423
from minicps.devices import PLC from utils import * import random import logging import time import socket import json import select import signal import sys SENSOR_ADDR = IP['lit101'] LIT101 = ('LIT101', 1) LIT102 = ('LIT102', 1) if __name__ == '__main__': lit101 = Lit101(name='lit101',state=STATE,protocol=LIT101_PROTOCOL,memory=GENERIC_DATA,disk=GENERIC_DATA)
[ 6738, 949, 291, 862, 13, 42034, 1330, 350, 5639, 198, 6738, 3384, 4487, 1330, 1635, 198, 11748, 4738, 198, 11748, 18931, 198, 11748, 640, 628, 198, 11748, 17802, 220, 198, 11748, 33918, 220, 198, 11748, 2922, 198, 11748, 6737, 198, 11748, 25064, 198, 198, 50, 16938, 1581, 62, 2885, 7707, 796, 6101, 17816, 18250, 8784, 20520, 198, 43, 2043, 8784, 796, 19203, 43, 2043, 8784, 3256, 352, 8, 198, 43, 2043, 15377, 796, 19203, 43, 2043, 15377, 3256, 352, 8, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 6578, 8784, 796, 25659, 8784, 7, 3672, 11639, 18250, 8784, 3256, 5219, 28, 44724, 11, 11235, 4668, 28, 43, 2043, 8784, 62, 4805, 2394, 4503, 3535, 11, 31673, 28, 35353, 1137, 2149, 62, 26947, 11, 39531, 28, 35353, 1137, 2149, 62, 26947, 8, 628 ]
2.678571
140
# Generated by Django 2.2.5 on 2019-09-15 10:58 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 20, 319, 13130, 12, 2931, 12, 1314, 838, 25, 3365, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
''' End to end testing ''' import shutil import os from ConfigParser import SafeConfigParser import textwrap import hashlib import pexpect import sys import leveldb import backup import tempfile from backup import dump_database from myutils import path_leaf TEST_CONFIG_NAME = "config" TEST_DROPBOX_NAME = "dropbox" TEST_TO_BACKUP_DIR = "to_backup" TEST_DATABASE_DIR = "db" TEST_PATH = os.path.dirname(os.path.abspath(__file__)) + '/test/' #Path wehre db will be recovered DB_RECOVERY_PATH = os.path.dirname(os.path.abspath(__file__)) + '/foo/' PASSWORD = "alamakota" BACKUP_TOOL = "python ./ds.py " def reset_dropbox_dir(config): ''' Remove dropbox dropbox directory ''' dropbox_dir = config.get('DropBox', 'drop_box_dir') shutil.rmtree(dropbox_dir) os.makedirs(dropbox_dir) def reset_db(config): ''' Remove databse ''' db_dir = config.get('DB', 'db_path') shutil.rmtree(db_dir) os.makedirs(db_dir) def reset_to_backup_dir(config): ''' Remove directory to backed up ''' to_backup_dir = config.get('Backup', 'to_backup') shutil.rmtree(to_backup_dir) os.makedirs(to_backup_dir) def create_test_config(): ''' Creates config file for testing purposes ''' aa = """\ [Credentials] password=alamakota [DropBox] drop_box_dir = {drop_box_dir} [DB] #Database MUST not be in backed up folder as it's being changed #during backup process. Program backs up databse itself by #gzipping, encryptying and putting in drobox folder as "dbmapping" db_path = {db_path} [Backup] to_backup = {to_backup} to_exclude = """ context = { "drop_box_dir":TEST_PATH+TEST_DROPBOX_NAME+"/", "db_path":TEST_PATH+TEST_DATABASE_DIR+"/", "to_backup":TEST_PATH+TEST_TO_BACKUP_DIR+"/", "passord":PASSWORD } if not os.path.exists(TEST_PATH): os.makedirs(TEST_PATH) with open(TEST_PATH+'/'+TEST_CONFIG_NAME, 'w') as cfgfile: cfgfile.write(textwrap.dedent(aa.format(**context))) if not os.path.exists(context["drop_box_dir"]): os.makedirs(context["drop_box_dir"]) if not os.path.exists(context["db_path"]): os.makedirs(context["db_path"]) if not os.path.exists(context["to_backup"]): os.makedirs(context["to_backup"]) if not os.path.exists(DB_RECOVERY_PATH): os.makedirs(DB_RECOVERY_PATH) def clear(config): ''' Clears all created files, directories and exits ''' db_dir = config.get('DB', 'db_path') if os.path.exists(db_dir): shutil.rmtree(db_dir) dropbox_dir = config.get('DropBox', 'drop_box_dir') if os.path.exists(dropbox_dir): shutil.rmtree(dropbox_dir) to_backup_dir = config.get('Backup', 'to_backup') if os.path.exists(to_backup_dir): shutil.rmtree(to_backup_dir) os.remove(TEST_PATH+TEST_CONFIG_NAME) def clear_all(): ''' Remove all in one shot ''' if os.path.exists(TEST_PATH): shutil.rmtree(TEST_PATH) if os.path.exists(DB_RECOVERY_PATH): shutil.rmtree(DB_RECOVERY_PATH) def test1(): ''' Initially dropbox folder is empty and databse is empty. Check if file is backed up and restored correctly ''' print '-'*50 print "Test 1" clear_all() create_test_config() config = SafeConfigParser() config.read(TEST_PATH+TEST_CONFIG_NAME) file_to_backup = config.get('Backup', 'to_backup')+'/some_file' with open(file_to_backup, 'w') as some_file: some_file.write('Very first line') checksum_before = hashlib.md5(open(file_to_backup, 'rb').read()).hexdigest() #Backup os.system(BACKUP_TOOL + "backup -c" + TEST_PATH + "/" + TEST_CONFIG_NAME) #Restore os.remove(file_to_backup) child = pexpect.spawn(BACKUP_TOOL + "restore -d" + TEST_PATH+ TEST_DROPBOX_NAME + " -r" + DB_RECOVERY_PATH) child.expect('Password: ') child.sendline(PASSWORD) print child.read() checksum_after = hashlib.md5(open(file_to_backup, 'rb').read()).hexdigest() if checksum_before != checksum_after: print "Test 1 failed!" sys.exit(1) else: print "Test 1 ok" def test2(): ''' Initally dropbox folder is empty and database is empty. Check if modified file is backed up and restored correctly. ''' print '-'*50 print "Test 2" clear_all() create_test_config() config = SafeConfigParser() config.read(TEST_PATH+TEST_CONFIG_NAME) file_to_backup = config.get('Backup', 'to_backup')+'/some_file' with open(file_to_backup, 'w') as some_file: some_file.write('Very first line') #Backup os.system(BACKUP_TOOL + "backup -c" + TEST_PATH + "/" + TEST_CONFIG_NAME) #Modification with open(file_to_backup, 'a') as some_file: some_file.write('The second line') checksum_before = hashlib.md5(open(file_to_backup, 'rb').read()).hexdigest() #Backup os.system(BACKUP_TOOL + "backup -c" + TEST_PATH + "/" + TEST_CONFIG_NAME) #Restore os.remove(file_to_backup) child = pexpect.spawn(BACKUP_TOOL + "restore -d " + TEST_PATH+ TEST_DROPBOX_NAME + " -r " + DB_RECOVERY_PATH) child.expect('Password: ') child.sendline(PASSWORD) print child.read() checksum_after = hashlib.md5(open(file_to_backup, 'rb').read()).hexdigest() if checksum_before != checksum_after: print "Test 2 failed!" sys.exit(1) db = leveldb.LevelDB(config.get('DB', 'db_path')) dump_file = os.path.join(tempfile.gettempdir(), '') + 'foo' entries = dump_database(db, dump_file) if entries != 1: print "Test 2 failed!" sys.exit(1) print "Test 2 ok" def test3(): ''' Initally dropbox folder is empty and database is empty. Check if deleted files in source folder is deleted from dropbox as well ''' print '-'*50 print "Test 3" clear_all() create_test_config() config = SafeConfigParser() config.read(TEST_PATH+TEST_CONFIG_NAME) file_to_backup = config.get('Backup', 'to_backup')+'/some_file' with open(file_to_backup, 'w') as some_file: some_file.write('Very first line') #Backup os.system(BACKUP_TOOL + "backup -c" + TEST_PATH + "/" + TEST_CONFIG_NAME) #Delete os.remove(file_to_backup) #Backup again os.system(BACKUP_TOOL + "backup -c" + TEST_PATH + "/" + TEST_CONFIG_NAME) #Check if file doesn't exist for subdir, dirs, files in os.walk(config.get('DropBox','drop_box_dir')): for f in files: #Meta entry is not in database if path_leaf(f) == backup.META_DB_NAME + ".xyz": continue else: print "Test 3 failed - deleted file exists in dropbox folder" sys.exit(1) #Database shall not contain any entry entries = 0 db = leveldb.LevelDB(config.get('DB', 'db_path')) dump_file = os.path.join(tempfile.gettempdir(), '') + 'foo' entries = dump_database(db, dump_file) if entries != 0: print "Test 3 failed - deleted file has entry in database" sys.exit(1) print "Test 3 ok" def test4(): ''' Initally dropbox folder is empty and database is empty. Check if deleted source folder (which contains files) causes deletion of this files from dropbox folder. ''' print '-'*50 print "Test 4" clear_all() create_test_config() config = SafeConfigParser() config.read(TEST_PATH+TEST_CONFIG_NAME) directory_to_backup = config.get('Backup', 'to_backup')+'/some_dir' os.makedirs(directory_to_backup) file_to_backup = config.get('Backup', 'to_backup')+'/some_dir/some_file1' with open(file_to_backup, 'w') as some_file: some_file.write('Very first line') file_to_backup = config.get('Backup', 'to_backup')+'/some_dir/some_file2' with open(file_to_backup, 'w') as some_file: some_file.write('The other very first line') #Backup os.system(BACKUP_TOOL + "backup -c" + TEST_PATH + "/" + TEST_CONFIG_NAME) #Delete shutil.rmtree(directory_to_backup) #Backup again os.system(BACKUP_TOOL + "backup -c" + TEST_PATH + "/" + TEST_CONFIG_NAME) #Check if file doesn't exist for subdir, dirs, files in os.walk(config.get('DropBox','drop_box_dir')): for f in files: #Meta entry is not in database if path_leaf(f) == backup.META_DB_NAME + ".xyz": continue else: print "Test 4 failed - deleted file exists in dropbox folder" sys.exit(1) #Database shall not contain any entry entries = 0 db = leveldb.LevelDB(config.get('DB', 'db_path')) dump_file = os.path.join(tempfile.gettempdir(), '') + 'foo' entries = dump_database(db, dump_file) if entries != 0: print "Test 4 failed - deleted file has entry in database" sys.exit(1) print "Test 4 ok" def test5(): ''' Initially dropbox folder is empty and databse is empty. Check if file is backed + directory up and restored correctly. It's very much alike test1 but here file is in subdirectory of backed up directory ''' print '-'*50 print "Test 5" clear_all() create_test_config() config = SafeConfigParser() config.read(TEST_PATH+TEST_CONFIG_NAME) subdir = config.get('Backup', 'to_backup')+'/dir/' os.makedirs(subdir) file_to_backup = subdir + 'some_file' with open(file_to_backup, 'w') as some_file: some_file.write('Very first line') checksum_before = hashlib.md5(open(file_to_backup, 'rb').read()).hexdigest() #Backup os.system(BACKUP_TOOL + "backup -c" + TEST_PATH + "/" + TEST_CONFIG_NAME) #Restore os.remove(file_to_backup) child = pexpect.spawn(BACKUP_TOOL + "restore -d" + TEST_PATH+ TEST_DROPBOX_NAME + " -r" + DB_RECOVERY_PATH) child.expect('Password: ') child.sendline(PASSWORD) print child.read() checksum_after = hashlib.md5(open(file_to_backup, 'rb').read()).hexdigest() if checksum_before != checksum_after: print "Test 5 failed!" sys.exit(1) else: print "Test 5 ok" def run_tests(): ''' Run test cases ''' test1() test2() test3() test4() test5() clear_all() if __name__ == "__main__": #TEST_PATH = os.path.dirname(os.path.abspath(__file__)) + '/test/' run_tests()
[ 7061, 6, 198, 12915, 284, 886, 4856, 198, 7061, 6, 198, 11748, 4423, 346, 198, 11748, 28686, 198, 6738, 17056, 46677, 1330, 19978, 16934, 46677, 198, 11748, 2420, 37150, 198, 11748, 12234, 8019, 198, 11748, 613, 87, 806, 198, 11748, 25064, 198, 11748, 34002, 335, 65, 198, 11748, 11559, 198, 11748, 20218, 7753, 198, 6738, 11559, 1330, 10285, 62, 48806, 198, 6738, 616, 26791, 1330, 3108, 62, 33201, 198, 198, 51, 6465, 62, 10943, 16254, 62, 20608, 796, 366, 11250, 1, 198, 51, 6465, 62, 7707, 3185, 39758, 62, 20608, 796, 366, 14781, 3524, 1, 198, 51, 6465, 62, 10468, 62, 31098, 8577, 62, 34720, 796, 366, 1462, 62, 1891, 929, 1, 198, 51, 6465, 62, 35, 1404, 6242, 11159, 62, 34720, 796, 366, 9945, 1, 198, 51, 6465, 62, 34219, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 1343, 31051, 9288, 14, 6, 198, 2, 15235, 356, 71, 260, 20613, 481, 307, 11911, 198, 11012, 62, 2200, 8220, 5959, 56, 62, 34219, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 1343, 31051, 21943, 14, 6, 198, 47924, 54, 12532, 796, 366, 44949, 461, 4265, 1, 198, 198, 31098, 8577, 62, 10468, 3535, 796, 366, 29412, 24457, 9310, 13, 9078, 366, 198, 198, 4299, 13259, 62, 14781, 3524, 62, 15908, 7, 11250, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 17220, 4268, 3524, 4268, 3524, 8619, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 4268, 3524, 62, 15908, 796, 4566, 13, 1136, 10786, 26932, 14253, 3256, 705, 14781, 62, 3524, 62, 15908, 11537, 198, 220, 220, 220, 4423, 346, 13, 81, 16762, 631, 7, 14781, 3524, 62, 15908, 8, 198, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 14781, 3524, 62, 15908, 8, 198, 198, 4299, 13259, 62, 9945, 7, 11250, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 17220, 4818, 397, 325, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 20613, 62, 15908, 796, 4566, 13, 1136, 10786, 11012, 3256, 705, 9945, 62, 6978, 11537, 198, 220, 220, 220, 4423, 346, 13, 81, 16762, 631, 7, 9945, 62, 15908, 8, 198, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 9945, 62, 15908, 8, 198, 198, 4299, 13259, 62, 1462, 62, 1891, 929, 62, 15908, 7, 11250, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 17220, 8619, 284, 9763, 510, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 284, 62, 1891, 929, 62, 15908, 796, 4566, 13, 1136, 10786, 7282, 929, 3256, 705, 1462, 62, 1891, 929, 11537, 198, 220, 220, 220, 4423, 346, 13, 81, 16762, 631, 7, 1462, 62, 1891, 929, 62, 15908, 8, 198, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 1462, 62, 1891, 929, 62, 15908, 8, 198, 198, 4299, 2251, 62, 9288, 62, 11250, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 7921, 274, 4566, 2393, 329, 4856, 4959, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 257, 64, 796, 37227, 59, 198, 220, 220, 220, 685, 34, 445, 14817, 60, 198, 220, 220, 220, 9206, 28, 44949, 461, 4265, 628, 220, 220, 220, 685, 26932, 14253, 60, 198, 220, 220, 220, 4268, 62, 3524, 62, 15908, 796, 1391, 14781, 62, 3524, 62, 15908, 92, 628, 220, 220, 220, 685, 11012, 60, 198, 220, 220, 220, 1303, 38105, 17191, 407, 307, 287, 9763, 510, 9483, 355, 340, 338, 852, 3421, 198, 220, 220, 220, 1303, 42122, 11559, 1429, 13, 6118, 12983, 510, 4818, 397, 325, 2346, 416, 198, 220, 220, 220, 1303, 34586, 4501, 11, 34117, 1112, 290, 5137, 287, 3102, 3524, 9483, 355, 366, 9945, 76, 5912, 1, 198, 220, 220, 220, 20613, 62, 6978, 796, 1391, 9945, 62, 6978, 92, 628, 220, 220, 220, 685, 7282, 929, 60, 198, 220, 220, 220, 284, 62, 1891, 929, 796, 1391, 1462, 62, 1891, 929, 92, 198, 220, 220, 220, 284, 62, 1069, 9152, 796, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 4732, 796, 1391, 198, 220, 220, 220, 220, 220, 366, 14781, 62, 3524, 62, 15908, 1298, 51, 6465, 62, 34219, 10, 51, 6465, 62, 7707, 3185, 39758, 62, 20608, 10, 1, 14, 1600, 198, 220, 220, 220, 220, 220, 366, 9945, 62, 6978, 1298, 51, 6465, 62, 34219, 10, 51, 6465, 62, 35, 1404, 6242, 11159, 62, 34720, 10, 1, 14, 1600, 198, 220, 220, 220, 220, 220, 366, 1462, 62, 1891, 929, 1298, 51, 6465, 62, 34219, 10, 51, 6465, 62, 10468, 62, 31098, 8577, 62, 34720, 10, 1, 14, 1600, 198, 220, 220, 220, 220, 220, 366, 6603, 585, 1298, 47924, 54, 12532, 198, 220, 220, 220, 1782, 628, 220, 220, 220, 611, 407, 28686, 13, 6978, 13, 1069, 1023, 7, 51, 6465, 62, 34219, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 51, 6465, 62, 34219, 8, 628, 220, 220, 220, 351, 1280, 7, 51, 6465, 62, 34219, 10, 26488, 6, 10, 51, 6465, 62, 10943, 16254, 62, 20608, 11, 705, 86, 11537, 355, 30218, 70, 7753, 25, 198, 220, 220, 220, 220, 220, 220, 220, 30218, 70, 7753, 13, 13564, 7, 5239, 37150, 13, 9395, 298, 7, 7252, 13, 18982, 7, 1174, 22866, 22305, 628, 220, 220, 220, 611, 407, 28686, 13, 6978, 13, 1069, 1023, 7, 22866, 14692, 14781, 62, 3524, 62, 15908, 8973, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 22866, 14692, 14781, 62, 3524, 62, 15908, 8973, 8, 198, 220, 220, 220, 611, 407, 28686, 13, 6978, 13, 1069, 1023, 7, 22866, 14692, 9945, 62, 6978, 8973, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 22866, 14692, 9945, 62, 6978, 8973, 8, 198, 220, 220, 220, 611, 407, 28686, 13, 6978, 13, 1069, 1023, 7, 22866, 14692, 1462, 62, 1891, 929, 8973, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 22866, 14692, 1462, 62, 1891, 929, 8973, 8, 628, 220, 220, 220, 611, 407, 28686, 13, 6978, 13, 1069, 1023, 7, 11012, 62, 2200, 8220, 5959, 56, 62, 34219, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 11012, 62, 2200, 8220, 5959, 56, 62, 34219, 8, 628, 198, 4299, 1598, 7, 11250, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 3779, 945, 477, 2727, 3696, 11, 29196, 290, 30151, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 20613, 62, 15908, 796, 4566, 13, 1136, 10786, 11012, 3256, 705, 9945, 62, 6978, 11537, 198, 220, 220, 220, 611, 28686, 13, 6978, 13, 1069, 1023, 7, 9945, 62, 15908, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 81, 16762, 631, 7, 9945, 62, 15908, 8, 198, 220, 220, 220, 4268, 3524, 62, 15908, 796, 4566, 13, 1136, 10786, 26932, 14253, 3256, 705, 14781, 62, 3524, 62, 15908, 11537, 198, 220, 220, 220, 611, 28686, 13, 6978, 13, 1069, 1023, 7, 14781, 3524, 62, 15908, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 81, 16762, 631, 7, 14781, 3524, 62, 15908, 8, 198, 220, 220, 220, 284, 62, 1891, 929, 62, 15908, 796, 4566, 13, 1136, 10786, 7282, 929, 3256, 705, 1462, 62, 1891, 929, 11537, 198, 220, 220, 220, 611, 28686, 13, 6978, 13, 1069, 1023, 7, 1462, 62, 1891, 929, 62, 15908, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 81, 16762, 631, 7, 1462, 62, 1891, 929, 62, 15908, 8, 198, 220, 220, 220, 28686, 13, 28956, 7, 51, 6465, 62, 34219, 10, 51, 6465, 62, 10943, 16254, 62, 20608, 8, 198, 198, 4299, 1598, 62, 439, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 17220, 477, 287, 530, 2823, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 611, 28686, 13, 6978, 13, 1069, 1023, 7, 51, 6465, 62, 34219, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 81, 16762, 631, 7, 51, 6465, 62, 34219, 8, 628, 220, 220, 220, 611, 28686, 13, 6978, 13, 1069, 1023, 7, 11012, 62, 2200, 8220, 5959, 56, 62, 34219, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 4423, 346, 13, 81, 16762, 631, 7, 11012, 62, 2200, 8220, 5959, 56, 62, 34219, 8, 198, 198, 4299, 1332, 16, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 30900, 4268, 3524, 9483, 318, 6565, 290, 4818, 397, 325, 318, 6565, 13, 198, 220, 220, 220, 6822, 611, 2393, 318, 9763, 510, 290, 15032, 9380, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 3601, 705, 19355, 9, 1120, 198, 220, 220, 220, 3601, 366, 14402, 352, 1, 198, 220, 220, 220, 1598, 62, 439, 3419, 198, 220, 220, 220, 2251, 62, 9288, 62, 11250, 3419, 198, 220, 220, 220, 4566, 796, 19978, 16934, 46677, 3419, 198, 220, 220, 220, 4566, 13, 961, 7, 51, 6465, 62, 34219, 10, 51, 6465, 62, 10943, 16254, 62, 20608, 8, 198, 220, 220, 220, 2393, 62, 1462, 62, 1891, 929, 796, 4566, 13, 1136, 10786, 7282, 929, 3256, 705, 1462, 62, 1891, 929, 11537, 10, 26488, 11246, 62, 7753, 6, 198, 220, 220, 220, 351, 1280, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 86, 11537, 355, 617, 62, 7753, 25, 198, 220, 220, 220, 220, 220, 220, 220, 617, 62, 7753, 13, 13564, 10786, 16371, 717, 1627, 11537, 198, 220, 220, 220, 8794, 388, 62, 19052, 796, 12234, 8019, 13, 9132, 20, 7, 9654, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 26145, 27691, 961, 3419, 737, 33095, 12894, 395, 3419, 628, 220, 220, 220, 1303, 7282, 929, 198, 220, 220, 220, 28686, 13, 10057, 7, 31098, 8577, 62, 10468, 3535, 1343, 366, 1891, 929, 532, 66, 1, 1343, 43001, 62, 34219, 1343, 12813, 1, 1343, 43001, 62, 10943, 16254, 62, 20608, 8, 628, 220, 220, 220, 1303, 19452, 382, 198, 220, 220, 220, 28686, 13, 28956, 7, 7753, 62, 1462, 62, 1891, 929, 8, 198, 220, 220, 220, 1200, 796, 613, 87, 806, 13, 48183, 7, 31098, 8577, 62, 10468, 3535, 1343, 366, 2118, 382, 532, 67, 1, 1343, 43001, 62, 34219, 10, 198, 220, 220, 220, 220, 220, 43001, 62, 7707, 3185, 39758, 62, 20608, 1343, 366, 532, 81, 1, 1343, 20137, 62, 2200, 8220, 5959, 56, 62, 34219, 8, 198, 220, 220, 220, 1200, 13, 1069, 806, 10786, 35215, 25, 705, 8, 198, 220, 220, 220, 1200, 13, 21280, 1370, 7, 47924, 54, 12532, 8, 198, 220, 220, 220, 3601, 1200, 13, 961, 3419, 628, 220, 220, 220, 8794, 388, 62, 8499, 796, 12234, 8019, 13, 9132, 20, 7, 9654, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 26145, 27691, 961, 3419, 737, 33095, 12894, 395, 3419, 198, 220, 220, 220, 611, 8794, 388, 62, 19052, 14512, 8794, 388, 62, 8499, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 14402, 352, 4054, 2474, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 37023, 7, 16, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 14402, 352, 12876, 1, 198, 198, 4299, 1332, 17, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 44707, 453, 4268, 3524, 9483, 318, 6565, 290, 6831, 318, 6565, 13, 198, 220, 220, 220, 6822, 611, 9518, 2393, 318, 9763, 510, 290, 15032, 9380, 13, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 3601, 705, 19355, 9, 1120, 198, 220, 220, 220, 3601, 366, 14402, 362, 1, 198, 220, 220, 220, 1598, 62, 439, 3419, 198, 220, 220, 220, 2251, 62, 9288, 62, 11250, 3419, 198, 220, 220, 220, 4566, 796, 19978, 16934, 46677, 3419, 198, 220, 220, 220, 4566, 13, 961, 7, 51, 6465, 62, 34219, 10, 51, 6465, 62, 10943, 16254, 62, 20608, 8, 198, 220, 220, 220, 2393, 62, 1462, 62, 1891, 929, 796, 4566, 13, 1136, 10786, 7282, 929, 3256, 705, 1462, 62, 1891, 929, 11537, 10, 26488, 11246, 62, 7753, 6, 198, 220, 220, 220, 351, 1280, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 86, 11537, 355, 617, 62, 7753, 25, 198, 220, 220, 220, 220, 220, 220, 220, 617, 62, 7753, 13, 13564, 10786, 16371, 717, 1627, 11537, 628, 220, 220, 220, 1303, 7282, 929, 198, 220, 220, 220, 28686, 13, 10057, 7, 31098, 8577, 62, 10468, 3535, 1343, 366, 1891, 929, 532, 66, 1, 1343, 43001, 62, 34219, 1343, 12813, 1, 1343, 43001, 62, 10943, 16254, 62, 20608, 8, 628, 220, 220, 220, 1303, 5841, 2649, 198, 220, 220, 220, 351, 1280, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 64, 11537, 355, 617, 62, 7753, 25, 198, 220, 220, 220, 220, 220, 220, 220, 617, 62, 7753, 13, 13564, 10786, 464, 1218, 1627, 11537, 198, 220, 220, 220, 8794, 388, 62, 19052, 796, 12234, 8019, 13, 9132, 20, 7, 9654, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 26145, 27691, 961, 3419, 737, 33095, 12894, 395, 3419, 628, 220, 220, 220, 1303, 7282, 929, 198, 220, 220, 220, 28686, 13, 10057, 7, 31098, 8577, 62, 10468, 3535, 1343, 366, 1891, 929, 532, 66, 1, 1343, 43001, 62, 34219, 1343, 12813, 1, 1343, 43001, 62, 10943, 16254, 62, 20608, 8, 628, 220, 220, 220, 1303, 19452, 382, 198, 220, 220, 220, 28686, 13, 28956, 7, 7753, 62, 1462, 62, 1891, 929, 8, 198, 220, 220, 220, 1200, 796, 613, 87, 806, 13, 48183, 7, 31098, 8577, 62, 10468, 3535, 1343, 366, 2118, 382, 532, 67, 366, 1343, 43001, 62, 34219, 10, 198, 220, 220, 220, 220, 220, 43001, 62, 7707, 3185, 39758, 62, 20608, 1343, 366, 532, 81, 366, 1343, 20137, 62, 2200, 8220, 5959, 56, 62, 34219, 8, 198, 220, 220, 220, 1200, 13, 1069, 806, 10786, 35215, 25, 705, 8, 198, 220, 220, 220, 1200, 13, 21280, 1370, 7, 47924, 54, 12532, 8, 198, 220, 220, 220, 3601, 1200, 13, 961, 3419, 628, 220, 220, 220, 8794, 388, 62, 8499, 796, 12234, 8019, 13, 9132, 20, 7, 9654, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 26145, 27691, 961, 3419, 737, 33095, 12894, 395, 3419, 198, 220, 220, 220, 611, 8794, 388, 62, 19052, 14512, 8794, 388, 62, 8499, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 14402, 362, 4054, 2474, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 37023, 7, 16, 8, 628, 220, 220, 220, 20613, 796, 34002, 335, 65, 13, 4971, 11012, 7, 11250, 13, 1136, 10786, 11012, 3256, 705, 9945, 62, 6978, 6, 4008, 628, 220, 220, 220, 10285, 62, 7753, 796, 28686, 13, 6978, 13, 22179, 7, 29510, 7753, 13, 1136, 29510, 15908, 22784, 10148, 8, 1343, 705, 21943, 6, 198, 220, 220, 220, 12784, 796, 10285, 62, 48806, 7, 9945, 11, 10285, 62, 7753, 8, 628, 220, 220, 220, 611, 12784, 14512, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 14402, 362, 4054, 2474, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 37023, 7, 16, 8, 628, 220, 220, 220, 3601, 366, 14402, 362, 12876, 1, 198, 198, 4299, 1332, 18, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 44707, 453, 4268, 3524, 9483, 318, 6565, 290, 6831, 318, 6565, 13, 198, 220, 220, 220, 6822, 611, 13140, 3696, 287, 2723, 9483, 318, 13140, 422, 4268, 3524, 355, 880, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 3601, 705, 19355, 9, 1120, 198, 220, 220, 220, 3601, 366, 14402, 513, 1, 198, 220, 220, 220, 1598, 62, 439, 3419, 198, 220, 220, 220, 2251, 62, 9288, 62, 11250, 3419, 198, 220, 220, 220, 4566, 796, 19978, 16934, 46677, 3419, 198, 220, 220, 220, 4566, 13, 961, 7, 51, 6465, 62, 34219, 10, 51, 6465, 62, 10943, 16254, 62, 20608, 8, 198, 220, 220, 220, 2393, 62, 1462, 62, 1891, 929, 796, 4566, 13, 1136, 10786, 7282, 929, 3256, 705, 1462, 62, 1891, 929, 11537, 10, 26488, 11246, 62, 7753, 6, 198, 220, 220, 220, 351, 1280, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 86, 11537, 355, 617, 62, 7753, 25, 198, 220, 220, 220, 220, 220, 220, 220, 617, 62, 7753, 13, 13564, 10786, 16371, 717, 1627, 11537, 628, 220, 220, 220, 1303, 7282, 929, 198, 220, 220, 220, 28686, 13, 10057, 7, 31098, 8577, 62, 10468, 3535, 1343, 366, 1891, 929, 532, 66, 1, 1343, 43001, 62, 34219, 1343, 12813, 1, 1343, 43001, 62, 10943, 16254, 62, 20608, 8, 628, 220, 220, 220, 1303, 38727, 198, 220, 220, 220, 28686, 13, 28956, 7, 7753, 62, 1462, 62, 1891, 929, 8, 628, 220, 220, 220, 1303, 7282, 929, 757, 198, 220, 220, 220, 28686, 13, 10057, 7, 31098, 8577, 62, 10468, 3535, 1343, 366, 1891, 929, 532, 66, 1, 1343, 43001, 62, 34219, 1343, 12813, 1, 1343, 43001, 62, 10943, 16254, 62, 20608, 8, 628, 220, 220, 220, 1303, 9787, 611, 2393, 1595, 470, 2152, 198, 220, 220, 220, 329, 850, 15908, 11, 288, 17062, 11, 3696, 287, 28686, 13, 11152, 7, 11250, 13, 1136, 10786, 26932, 14253, 41707, 14781, 62, 3524, 62, 15908, 11537, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 329, 277, 287, 3696, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 48526, 5726, 318, 407, 287, 6831, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 3108, 62, 33201, 7, 69, 8, 6624, 11559, 13, 44, 20892, 62, 11012, 62, 20608, 1343, 27071, 5431, 89, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 14402, 513, 4054, 532, 13140, 2393, 7160, 287, 4268, 3524, 9483, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 37023, 7, 16, 8, 628, 220, 220, 220, 1303, 38105, 2236, 407, 3994, 597, 5726, 198, 220, 220, 220, 12784, 796, 657, 198, 220, 220, 220, 20613, 796, 34002, 335, 65, 13, 4971, 11012, 7, 11250, 13, 1136, 10786, 11012, 3256, 705, 9945, 62, 6978, 6, 4008, 198, 220, 220, 220, 10285, 62, 7753, 796, 28686, 13, 6978, 13, 22179, 7, 29510, 7753, 13, 1136, 29510, 15908, 22784, 10148, 8, 1343, 705, 21943, 6, 198, 220, 220, 220, 12784, 796, 10285, 62, 48806, 7, 9945, 11, 10285, 62, 7753, 8, 198, 220, 220, 220, 611, 12784, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 14402, 513, 4054, 532, 13140, 2393, 468, 5726, 287, 6831, 1, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 37023, 7, 16, 8, 628, 220, 220, 220, 3601, 366, 14402, 513, 12876, 1, 198, 198, 4299, 1332, 19, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 44707, 453, 4268, 3524, 9483, 318, 6565, 290, 6831, 318, 6565, 13, 198, 220, 220, 220, 6822, 611, 13140, 2723, 9483, 357, 4758, 4909, 3696, 8, 5640, 39948, 198, 220, 220, 220, 286, 428, 3696, 422, 4268, 3524, 9483, 13, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 3601, 705, 19355, 9, 1120, 198, 220, 220, 220, 3601, 366, 14402, 604, 1, 198, 220, 220, 220, 1598, 62, 439, 3419, 198, 220, 220, 220, 2251, 62, 9288, 62, 11250, 3419, 198, 220, 220, 220, 4566, 796, 19978, 16934, 46677, 3419, 198, 220, 220, 220, 4566, 13, 961, 7, 51, 6465, 62, 34219, 10, 51, 6465, 62, 10943, 16254, 62, 20608, 8, 628, 220, 220, 220, 8619, 62, 1462, 62, 1891, 929, 796, 4566, 13, 1136, 10786, 7282, 929, 3256, 705, 1462, 62, 1891, 929, 11537, 10, 26488, 11246, 62, 15908, 6, 198, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 34945, 62, 1462, 62, 1891, 929, 8, 628, 220, 220, 220, 2393, 62, 1462, 62, 1891, 929, 796, 4566, 13, 1136, 10786, 7282, 929, 3256, 705, 1462, 62, 1891, 929, 11537, 10, 26488, 11246, 62, 15908, 14, 11246, 62, 7753, 16, 6, 198, 220, 220, 220, 351, 1280, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 86, 11537, 355, 617, 62, 7753, 25, 198, 220, 220, 220, 220, 220, 220, 220, 617, 62, 7753, 13, 13564, 10786, 16371, 717, 1627, 11537, 628, 220, 220, 220, 2393, 62, 1462, 62, 1891, 929, 796, 4566, 13, 1136, 10786, 7282, 929, 3256, 705, 1462, 62, 1891, 929, 11537, 10, 26488, 11246, 62, 15908, 14, 11246, 62, 7753, 17, 6, 198, 220, 220, 220, 351, 1280, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 86, 11537, 355, 617, 62, 7753, 25, 198, 220, 220, 220, 220, 220, 220, 220, 617, 62, 7753, 13, 13564, 10786, 464, 584, 845, 717, 1627, 11537, 628, 220, 220, 220, 1303, 7282, 929, 198, 220, 220, 220, 28686, 13, 10057, 7, 31098, 8577, 62, 10468, 3535, 1343, 366, 1891, 929, 532, 66, 1, 1343, 43001, 62, 34219, 1343, 12813, 1, 1343, 43001, 62, 10943, 16254, 62, 20608, 8, 628, 220, 220, 220, 1303, 38727, 198, 220, 220, 220, 4423, 346, 13, 81, 16762, 631, 7, 34945, 62, 1462, 62, 1891, 929, 8, 628, 220, 220, 220, 1303, 7282, 929, 757, 198, 220, 220, 220, 28686, 13, 10057, 7, 31098, 8577, 62, 10468, 3535, 1343, 366, 1891, 929, 532, 66, 1, 1343, 43001, 62, 34219, 1343, 12813, 1, 1343, 43001, 62, 10943, 16254, 62, 20608, 8, 628, 220, 220, 220, 1303, 9787, 611, 2393, 1595, 470, 2152, 198, 220, 220, 220, 329, 850, 15908, 11, 288, 17062, 11, 3696, 287, 28686, 13, 11152, 7, 11250, 13, 1136, 10786, 26932, 14253, 41707, 14781, 62, 3524, 62, 15908, 11537, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 329, 277, 287, 3696, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 48526, 5726, 318, 407, 287, 6831, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 3108, 62, 33201, 7, 69, 8, 6624, 11559, 13, 44, 20892, 62, 11012, 62, 20608, 1343, 27071, 5431, 89, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 14402, 604, 4054, 532, 13140, 2393, 7160, 287, 4268, 3524, 9483, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 37023, 7, 16, 8, 628, 220, 220, 220, 1303, 38105, 2236, 407, 3994, 597, 5726, 198, 220, 220, 220, 12784, 796, 657, 198, 220, 220, 220, 20613, 796, 34002, 335, 65, 13, 4971, 11012, 7, 11250, 13, 1136, 10786, 11012, 3256, 705, 9945, 62, 6978, 6, 4008, 198, 220, 220, 220, 10285, 62, 7753, 796, 28686, 13, 6978, 13, 22179, 7, 29510, 7753, 13, 1136, 29510, 15908, 22784, 10148, 8, 1343, 705, 21943, 6, 198, 220, 220, 220, 12784, 796, 10285, 62, 48806, 7, 9945, 11, 10285, 62, 7753, 8, 198, 220, 220, 220, 611, 12784, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 14402, 604, 4054, 532, 13140, 2393, 468, 5726, 287, 6831, 1, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 37023, 7, 16, 8, 628, 220, 220, 220, 3601, 366, 14402, 604, 12876, 1, 198, 198, 4299, 1332, 20, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 30900, 4268, 3524, 9483, 318, 6565, 290, 4818, 397, 325, 318, 6565, 13, 198, 220, 220, 220, 6822, 611, 2393, 318, 9763, 1343, 8619, 510, 290, 15032, 9380, 13, 198, 220, 220, 220, 632, 338, 845, 881, 12936, 1332, 16, 475, 994, 2393, 318, 287, 850, 34945, 286, 198, 220, 220, 220, 9763, 510, 8619, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 3601, 705, 19355, 9, 1120, 198, 220, 220, 220, 3601, 366, 14402, 642, 1, 198, 220, 220, 220, 1598, 62, 439, 3419, 198, 220, 220, 220, 2251, 62, 9288, 62, 11250, 3419, 198, 220, 220, 220, 4566, 796, 19978, 16934, 46677, 3419, 198, 220, 220, 220, 4566, 13, 961, 7, 51, 6465, 62, 34219, 10, 51, 6465, 62, 10943, 16254, 62, 20608, 8, 198, 220, 220, 220, 850, 15908, 796, 4566, 13, 1136, 10786, 7282, 929, 3256, 705, 1462, 62, 1891, 929, 11537, 10, 26488, 15908, 14, 6, 198, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 7266, 15908, 8, 198, 220, 220, 220, 2393, 62, 1462, 62, 1891, 929, 796, 850, 15908, 1343, 705, 11246, 62, 7753, 6, 628, 220, 220, 220, 351, 1280, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 86, 11537, 355, 617, 62, 7753, 25, 198, 220, 220, 220, 220, 220, 220, 220, 617, 62, 7753, 13, 13564, 10786, 16371, 717, 1627, 11537, 198, 220, 220, 220, 8794, 388, 62, 19052, 796, 12234, 8019, 13, 9132, 20, 7, 9654, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 26145, 27691, 961, 3419, 737, 33095, 12894, 395, 3419, 628, 220, 220, 220, 1303, 7282, 929, 198, 220, 220, 220, 28686, 13, 10057, 7, 31098, 8577, 62, 10468, 3535, 1343, 366, 1891, 929, 532, 66, 1, 1343, 43001, 62, 34219, 1343, 12813, 1, 1343, 43001, 62, 10943, 16254, 62, 20608, 8, 628, 220, 220, 220, 1303, 19452, 382, 198, 220, 220, 220, 28686, 13, 28956, 7, 7753, 62, 1462, 62, 1891, 929, 8, 198, 220, 220, 220, 1200, 796, 613, 87, 806, 13, 48183, 7, 31098, 8577, 62, 10468, 3535, 1343, 366, 2118, 382, 532, 67, 1, 1343, 43001, 62, 34219, 10, 198, 220, 220, 220, 220, 220, 43001, 62, 7707, 3185, 39758, 62, 20608, 1343, 366, 532, 81, 1, 1343, 20137, 62, 2200, 8220, 5959, 56, 62, 34219, 8, 198, 220, 220, 220, 1200, 13, 1069, 806, 10786, 35215, 25, 705, 8, 198, 220, 220, 220, 1200, 13, 21280, 1370, 7, 47924, 54, 12532, 8, 198, 220, 220, 220, 3601, 1200, 13, 961, 3419, 628, 220, 220, 220, 8794, 388, 62, 8499, 796, 12234, 8019, 13, 9132, 20, 7, 9654, 7, 7753, 62, 1462, 62, 1891, 929, 11, 705, 26145, 27691, 961, 3419, 737, 33095, 12894, 395, 3419, 198, 220, 220, 220, 611, 8794, 388, 62, 19052, 14512, 8794, 388, 62, 8499, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 14402, 642, 4054, 2474, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 37023, 7, 16, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 366, 14402, 642, 12876, 1, 198, 198, 4299, 1057, 62, 41989, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 5660, 1332, 2663, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 1332, 16, 3419, 198, 220, 220, 220, 1332, 17, 3419, 198, 220, 220, 220, 1332, 18, 3419, 198, 220, 220, 220, 1332, 19, 3419, 198, 220, 220, 220, 1332, 20, 3419, 198, 220, 220, 220, 1598, 62, 439, 3419, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1303, 51, 6465, 62, 34219, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 1343, 31051, 9288, 14, 6, 198, 220, 220, 220, 1057, 62, 41989, 3419, 628 ]
2.280568
4,580
""" This cog deals all the lookup commands """ import asyncio from discord.ext import commands, tasks import discord from lookupAPI import nookipediaAPI, localLookup import os from dotenv import load_dotenv load_dotenv(".env")
[ 37811, 198, 1212, 43072, 7529, 477, 262, 35847, 9729, 198, 37811, 198, 11748, 30351, 952, 198, 6738, 36446, 13, 2302, 1330, 9729, 11, 8861, 198, 11748, 36446, 198, 6738, 35847, 17614, 1330, 299, 566, 11151, 17614, 11, 1957, 8567, 929, 198, 11748, 28686, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 198, 2220, 62, 26518, 24330, 7, 1911, 24330, 4943, 628, 198 ]
3.59375
64
import hashlib import os import pytest from aiohttp import ClientSession from lyricsfinder.extractors.azlyrics import AZLyrics from lyricsfinder.utils import Request
[ 11748, 12234, 8019, 198, 11748, 28686, 198, 198, 11748, 12972, 9288, 198, 6738, 257, 952, 4023, 1330, 20985, 36044, 198, 198, 6738, 15844, 22805, 13, 2302, 974, 669, 13, 1031, 306, 10466, 1330, 26253, 43, 14279, 198, 6738, 15844, 22805, 13, 26791, 1330, 19390, 628 ]
3.755556
45
# settings for councils scraper BOUNDARIES_URL = "https://ons-cache.s3.amazonaws.com/Local_Authority_Districts_April_2019_Boundaries_UK_BFE.geojson" EC_COUNCIL_CONTACT_DETAILS_API_URL = ( "https://electoralcommission.org.uk/api/v1/data/local-authorities.json" ) OLD_TO_NEW_MAP = {} NEW_COUNCILS = [] WELSH_COUNCIL_NAMES = { "AGY": "Cyngor Sir Ynys Môn", # Isle of Anglesey County Council "BGE": "Cyngor Bwrdeistref Sirol Pen-y-bont ar Ogwr", # Bridgend County Borough Council "BGW": "Cyngor Bwrdeistref Sirol Blaenau Gwent", # Blaenau Gwent County Borough Council "CAY": "Cyngor Bwrdeistref Sirol Caerffili", # Caerphilly County Borough Council "CGN": "Cyngor Sir Ceredigion", # Ceredigion County Council "CMN": "Cyngor Sir Gaerfyrddin", # Carmarthenshire County Council "CRF": "Cyngor Caerdydd", # Cardiff Council "CWY": "Cyngor Bwrdeistref Sirol Conwy", # Conwy County Borough Council "DEN": "Cyngor Sir Ddinbych", # Denbighshire County Council "FLN": "Cyngor Sir y Fflint", # Flintshire County Council "GWN": "Cyngor Sir Gwynedd", # Gwynedd Council "MON": "Cyngor Sir Fynwy", # Monmouthshire County Council "MTY": "Cyngor Bwrdeistref Sirol Merthyr Tudful", # Merthyr Tydfil County Borough Council "NTL": "Cyngor Bwrdeistref Sirol Castell-nedd Port Talbot", # Neath Port Talbot County Borough Council "NWP": "Cyngor Dinas Casnewydd", # Newport City Council "PEM": "Cyngor Sir Penfro", # Pembrokeshire County Council "POW": "Cyngor Sir Powys", # Powys County Council "RCT": "Cyngor Bwrdeistref Sirol Rhondda Cynon Taf", # Rhondda Cynon Taf County Borough Council "SWA": "Cyngor Sir a Dinas Abertawe", # City and County of Swansea "TOF": "Cyngor Bwrdeistref Sirol Torfaen", # Torfaen County Borough Council "VGL": "Cyngor Bwrdeistref Sirol Bro Morgannwg", # The Vale of Glamorgan County Borough Council "WRX": "Cyngor Bwrdeistref Sirol Wrecsam", # Wrexham County Borough Council }
[ 2, 6460, 329, 27174, 19320, 525, 198, 198, 33, 15919, 1503, 11015, 62, 21886, 796, 366, 5450, 1378, 684, 12, 23870, 13, 82, 18, 13, 33103, 8356, 13, 785, 14, 14565, 62, 13838, 414, 62, 44857, 82, 62, 16784, 62, 23344, 62, 49646, 3166, 62, 15039, 62, 33, 15112, 13, 469, 13210, 1559, 1, 198, 2943, 62, 34, 2606, 7792, 4146, 62, 37815, 10659, 62, 35, 20892, 45484, 62, 17614, 62, 21886, 796, 357, 198, 220, 220, 220, 366, 5450, 1378, 9509, 6864, 785, 3411, 13, 2398, 13, 2724, 14, 15042, 14, 85, 16, 14, 7890, 14, 12001, 12, 9800, 871, 13, 17752, 1, 198, 8, 628, 198, 15173, 62, 10468, 62, 13965, 62, 33767, 796, 23884, 198, 198, 13965, 62, 34, 2606, 7792, 45484, 796, 17635, 198, 198, 54, 3698, 9693, 62, 34, 2606, 7792, 4146, 62, 45, 29559, 796, 1391, 198, 220, 220, 220, 366, 4760, 56, 1298, 366, 20418, 782, 273, 7361, 575, 77, 893, 337, 27083, 77, 1600, 220, 1303, 26378, 286, 2895, 829, 2959, 3418, 4281, 198, 220, 220, 220, 366, 33, 8264, 1298, 366, 20418, 782, 273, 347, 18351, 2934, 396, 5420, 15638, 3225, 7507, 12, 88, 12, 65, 756, 610, 25686, 18351, 1600, 220, 1303, 28320, 70, 437, 3418, 48114, 4281, 198, 220, 220, 220, 366, 33, 33191, 1298, 366, 20418, 782, 273, 347, 18351, 2934, 396, 5420, 15638, 3225, 1086, 64, 268, 559, 402, 19963, 1600, 220, 1303, 1086, 64, 268, 559, 402, 19963, 3418, 48114, 4281, 198, 220, 220, 220, 366, 34, 4792, 1298, 366, 20418, 782, 273, 347, 18351, 2934, 396, 5420, 15638, 3225, 6488, 263, 487, 2403, 1600, 220, 1303, 6488, 263, 746, 6548, 3418, 48114, 4281, 198, 220, 220, 220, 366, 34, 16630, 1298, 366, 20418, 782, 273, 7361, 327, 1068, 17035, 1600, 220, 1303, 327, 1068, 17035, 3418, 4281, 198, 220, 220, 220, 366, 24187, 45, 1298, 366, 20418, 782, 273, 7361, 12822, 263, 69, 2417, 1860, 259, 1600, 220, 1303, 17998, 433, 831, 10932, 3418, 4281, 198, 220, 220, 220, 366, 9419, 37, 1298, 366, 20418, 782, 273, 6488, 263, 9892, 1860, 1600, 220, 1303, 34910, 4281, 198, 220, 220, 220, 366, 43538, 56, 1298, 366, 20418, 782, 273, 347, 18351, 2934, 396, 5420, 15638, 3225, 1482, 21768, 1600, 220, 1303, 1482, 21768, 3418, 48114, 4281, 198, 220, 220, 220, 366, 41819, 1298, 366, 20418, 782, 273, 7361, 360, 25194, 1525, 354, 1600, 220, 1303, 5601, 65, 394, 10932, 3418, 4281, 198, 220, 220, 220, 366, 3697, 45, 1298, 366, 20418, 782, 273, 7361, 331, 376, 2704, 600, 1600, 220, 1303, 21660, 10932, 3418, 4281, 198, 220, 220, 220, 366, 38, 29767, 1298, 366, 20418, 782, 273, 7361, 402, 27612, 6048, 1600, 220, 1303, 402, 27612, 6048, 4281, 198, 220, 220, 220, 366, 27857, 1298, 366, 20418, 782, 273, 7361, 376, 2047, 21768, 1600, 220, 1303, 2892, 14775, 10932, 3418, 4281, 198, 220, 220, 220, 366, 44, 9936, 1298, 366, 20418, 782, 273, 347, 18351, 2934, 396, 5420, 15638, 3225, 4638, 400, 2417, 48256, 913, 1600, 220, 1303, 4638, 400, 2417, 309, 5173, 10379, 3418, 48114, 4281, 198, 220, 220, 220, 366, 11251, 43, 1298, 366, 20418, 782, 273, 347, 18351, 2934, 396, 5420, 15638, 3225, 5833, 695, 12, 2817, 67, 4347, 7193, 13645, 1600, 220, 1303, 3169, 776, 4347, 7193, 13645, 3418, 48114, 4281, 198, 220, 220, 220, 366, 45, 25527, 1298, 366, 20418, 782, 273, 23448, 292, 11294, 3605, 88, 1860, 1600, 220, 1303, 36538, 2254, 4281, 198, 220, 220, 220, 366, 47, 3620, 1298, 366, 20418, 782, 273, 7361, 7507, 69, 305, 1600, 220, 1303, 350, 368, 7957, 74, 5069, 557, 3418, 4281, 198, 220, 220, 220, 366, 47, 3913, 1298, 366, 20418, 782, 273, 7361, 14120, 893, 1600, 220, 1303, 14120, 893, 3418, 4281, 198, 220, 220, 220, 366, 49, 4177, 1298, 366, 20418, 782, 273, 347, 18351, 2934, 396, 5420, 15638, 3225, 10323, 623, 6814, 31040, 261, 309, 1878, 1600, 220, 1303, 10323, 623, 6814, 31040, 261, 309, 1878, 3418, 48114, 4281, 198, 220, 220, 220, 366, 50, 15543, 1298, 366, 20418, 782, 273, 7361, 257, 23448, 292, 317, 4835, 707, 68, 1600, 220, 1303, 2254, 290, 3418, 286, 36019, 198, 220, 220, 220, 366, 10468, 37, 1298, 366, 20418, 782, 273, 347, 18351, 2934, 396, 5420, 15638, 3225, 4022, 13331, 268, 1600, 220, 1303, 4022, 13331, 268, 3418, 48114, 4281, 198, 220, 220, 220, 366, 53, 8763, 1298, 366, 20418, 782, 273, 347, 18351, 2934, 396, 5420, 15638, 3225, 2806, 10805, 47516, 70, 1600, 220, 1303, 383, 31832, 286, 402, 2543, 9971, 3418, 48114, 4281, 198, 220, 220, 220, 366, 18564, 55, 1298, 366, 20418, 782, 273, 347, 18351, 2934, 396, 5420, 15638, 3225, 370, 260, 6359, 321, 1600, 220, 1303, 370, 21510, 2763, 3418, 48114, 4281, 198, 92, 198 ]
2.531646
790
from enum import Enum from typing import Iterator, List, Optional, Tuple import re _PUNCTUATION = { "(": _Token(_TokenType.LPAREN), ")": _Token(_TokenType.RPAREN), "{": _Token(_TokenType.LBRACE), "}": _Token(_TokenType.RBRACE), "[": _Token(_TokenType.LBRACK), "]": _Token(_TokenType.RBRACK), ",": _Token(_TokenType.COMMA), ":": _Token(_TokenType.COLON), } _KWS = { "in": _Keyword.IN, "out": _Keyword.OUT, "inout": _Keyword.INOUT, } _STARTIDENTCHAR = re.compile(r"[A-Za-z]") _IDENTCHAR = re.compile(r"[A-Za-z0-9\-_<>]") class _peekable(): "Wrap iterator with lookahead to both peek and test exhausted" # Code by Terry Jan Reedy, intentionally submitted to the python-ideas # mailing list for inclusion into itertools. # https://mail.python.org/pipermail//python-ideas/2013-February/019633.html _NONE = object() def _parse_type_sig(lex) -> (InOutness, str, str, Optional[str]): """ "inout bool bShow" -> (InOutness.INOUT, "bool", "bShow", None) "in enum[EInventorySlot] Slot" -> (InOutness.IN, "enum", "Slot", "EInventorySlot") """ param_kind = _kw_to_inout( _expect(lex, _TokenType.KW, "inoutness", "tuple param")) tup_type = _expect(lex, _TokenType.IDENT, "type", "tuple param").ident local_type = None if _try_eat(lex, _TokenType.LBRACK): local_type = _expect(lex, _TokenType.IDENT, "local type", "tuple param").ident _expect(lex, _TokenType.RBRACK, "inoutness", "tuple param") name = _expect(lex, _TokenType.IDENT, "param name", "tuple param") if name.ident.lower() == "self": raise ParseError(f"{name} not a valid local variable name") return param_kind, tup_type, name.ident, local_type
[ 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 40806, 1352, 11, 7343, 11, 32233, 11, 309, 29291, 198, 11748, 302, 628, 628, 628, 628, 198, 198, 62, 47, 4944, 4177, 52, 6234, 796, 1391, 198, 220, 220, 220, 30629, 1298, 4808, 30642, 28264, 30642, 6030, 13, 19930, 1503, 1677, 828, 198, 220, 220, 220, 366, 8, 1298, 4808, 30642, 28264, 30642, 6030, 13, 20031, 1503, 1677, 828, 198, 220, 220, 220, 45144, 1298, 4808, 30642, 28264, 30642, 6030, 13, 43, 11473, 11598, 828, 198, 220, 220, 220, 366, 92, 1298, 4808, 30642, 28264, 30642, 6030, 13, 49, 11473, 11598, 828, 198, 220, 220, 220, 12878, 1298, 4808, 30642, 28264, 30642, 6030, 13, 43, 11473, 8120, 828, 198, 220, 220, 220, 366, 60, 1298, 4808, 30642, 28264, 30642, 6030, 13, 49, 11473, 8120, 828, 198, 220, 220, 220, 366, 553, 25, 4808, 30642, 28264, 30642, 6030, 13, 9858, 5673, 828, 198, 220, 220, 220, 366, 25, 1298, 4808, 30642, 28264, 30642, 6030, 13, 25154, 1340, 828, 198, 92, 198, 198, 62, 42, 19416, 796, 1391, 198, 220, 220, 220, 366, 259, 1298, 4808, 9218, 4775, 13, 1268, 11, 198, 220, 220, 220, 366, 448, 1298, 4808, 9218, 4775, 13, 12425, 11, 198, 220, 220, 220, 366, 259, 448, 1298, 4808, 9218, 4775, 13, 1268, 12425, 11, 198, 92, 198, 198, 62, 2257, 7227, 25256, 38019, 796, 302, 13, 5589, 576, 7, 81, 17912, 32, 12, 57, 64, 12, 89, 60, 4943, 198, 62, 25256, 38019, 796, 302, 13, 5589, 576, 7, 81, 17912, 32, 12, 57, 64, 12, 89, 15, 12, 24, 41441, 62, 27, 37981, 4943, 628, 628, 628, 628, 198, 4871, 4808, 431, 988, 540, 33529, 198, 220, 220, 220, 366, 54, 2416, 41313, 351, 804, 38204, 284, 1111, 27185, 290, 1332, 19064, 1, 198, 220, 220, 220, 1303, 6127, 416, 14286, 2365, 797, 4716, 11, 16464, 8948, 284, 262, 21015, 12, 485, 292, 198, 220, 220, 220, 1303, 21898, 1351, 329, 14900, 656, 340, 861, 10141, 13, 198, 220, 220, 220, 1303, 3740, 1378, 4529, 13, 29412, 13, 2398, 14, 79, 9346, 4529, 1003, 29412, 12, 485, 292, 14, 6390, 12, 21816, 14, 486, 4846, 2091, 13, 6494, 198, 220, 220, 220, 4808, 45, 11651, 796, 2134, 3419, 628, 198, 4299, 4808, 29572, 62, 4906, 62, 82, 328, 7, 2588, 8, 4613, 357, 818, 7975, 1108, 11, 965, 11, 965, 11, 32233, 58, 2536, 60, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 366, 259, 448, 20512, 275, 15307, 1, 4613, 357, 818, 7975, 1108, 13, 1268, 12425, 11, 366, 30388, 1600, 366, 65, 15307, 1600, 6045, 8, 198, 220, 220, 220, 366, 259, 33829, 58, 36, 818, 17158, 38963, 60, 32026, 1, 4613, 357, 818, 7975, 1108, 13, 1268, 11, 366, 44709, 1600, 366, 38963, 1600, 366, 36, 818, 17158, 38963, 4943, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5772, 62, 11031, 796, 4808, 46265, 62, 1462, 62, 259, 448, 7, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 1069, 806, 7, 2588, 11, 4808, 30642, 6030, 13, 42, 54, 11, 366, 259, 448, 1108, 1600, 366, 83, 29291, 5772, 48774, 198, 220, 220, 220, 256, 929, 62, 4906, 796, 4808, 1069, 806, 7, 2588, 11, 4808, 30642, 6030, 13, 25256, 11, 366, 4906, 1600, 366, 83, 29291, 5772, 11074, 738, 198, 220, 220, 220, 1957, 62, 4906, 796, 6045, 198, 220, 220, 220, 611, 4808, 28311, 62, 4098, 7, 2588, 11, 4808, 30642, 6030, 13, 43, 11473, 8120, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1957, 62, 4906, 796, 4808, 1069, 806, 7, 2588, 11, 4808, 30642, 6030, 13, 25256, 11, 366, 12001, 2099, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 83, 29291, 5772, 11074, 738, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 1069, 806, 7, 2588, 11, 4808, 30642, 6030, 13, 49, 11473, 8120, 11, 366, 259, 448, 1108, 1600, 366, 83, 29291, 5772, 4943, 198, 220, 220, 220, 1438, 796, 4808, 1069, 806, 7, 2588, 11, 4808, 30642, 6030, 13, 25256, 11, 366, 17143, 1438, 1600, 366, 83, 29291, 5772, 4943, 198, 220, 220, 220, 611, 1438, 13, 738, 13, 21037, 3419, 6624, 366, 944, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 2547, 325, 12331, 7, 69, 1, 90, 3672, 92, 407, 257, 4938, 1957, 7885, 1438, 4943, 198, 220, 220, 220, 1441, 5772, 62, 11031, 11, 256, 929, 62, 4906, 11, 1438, 13, 738, 11, 1957, 62, 4906, 628, 198 ]
2.33377
764
import sys import numpy as np import math from collections import Counter if __name__ == "__main__": if len(sys.argv) != 6: print("Usage:build_kNN.py <training_data> <test_data> <k_val> <similarity_func> <sys_output>") exit(-1) else: trainingData, features = readData(sys.argv[1]) testData, _ = readData(sys.argv[2]) candidate, truth = knn(trainingData,testData, int(sys.argv[3]), int(sys.argv[4]),sys.argv[5]) writeMatrix(candidate, truth)
[ 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 6738, 17268, 1330, 15034, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 611, 18896, 7, 17597, 13, 853, 85, 8, 14512, 718, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 28350, 25, 11249, 62, 74, 6144, 13, 9078, 1279, 34409, 62, 7890, 29, 1279, 9288, 62, 7890, 29, 1279, 74, 62, 2100, 29, 1279, 38610, 414, 62, 20786, 29, 1279, 17597, 62, 22915, 29, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 8420, 32590, 16, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3047, 6601, 11, 3033, 796, 1100, 6601, 7, 17597, 13, 853, 85, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 6601, 11, 4808, 796, 1100, 6601, 7, 17597, 13, 853, 85, 58, 17, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 4540, 11, 3872, 796, 638, 77, 7, 34409, 6601, 11, 9288, 6601, 11, 493, 7, 17597, 13, 853, 85, 58, 18, 46570, 493, 7, 17597, 13, 853, 85, 58, 19, 46570, 17597, 13, 853, 85, 58, 20, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 3551, 46912, 7, 46188, 20540, 11, 3872, 8 ]
2.328638
213
from django import forms from . import models STATES = [ ('AL', 'AL'), ('AK', 'AK'), ('AZ', 'AZ'), ('AR', 'AR'), ('CA', 'CA'), ('CO', 'CO'), ('CT', 'CT'), ('DC', 'DC'), ('DE', 'DE'), ('FL', 'FL'), ('GA', 'GA'), ('HI', 'HI'), ('ID', 'ID'), ('IL', 'IL'), ('IN', 'IN'), ('IA', 'IA'), ('KS', 'KS'), ('KY', 'KY'), ('LA', 'LA'), ('ME', 'ME'), ('MD', 'MD'), ('MA', 'MA'), ('MI', 'MI'), ('MN', 'MN'), ('MS', 'MS'), ('MO', 'MO'), ('MT', 'MT'), ('NE', 'NE'), ('NV', 'NV'), ('NH', 'NH'), ('NJ', 'NJ'), ('NM', 'NM'), ('NY', 'NY'), ('NC', 'NC'), ('ND', 'ND'), ('OH', 'OH'), ('OK', 'OK'), ('OR', 'OR'), ('PA', 'PA'), ('RI', 'RI'), ('SC', 'SC'), ('SD', 'SD'), ('TN', 'TN'), ('TX', 'TX'), ('UT', 'UT'), ('VT', 'VT'), ('VA', 'VA'), ('WA', 'WA'), ('WV', 'WV'), ('WI', 'WI'), ('WY', 'WY') ] class IngredientForm(forms.ModelForm): """Form allowing a new Ingredient to be created""" class Meta: """Defines the model the form uses and what fields to use""" model = models.Ingredient fields = ['name'] def clean_name(self): """Over-ride the value for name and title case it""" name = self.cleaned_data['name'] return name.title() class PizzaForm(forms.ModelForm): """Form allowing a new Pizza object to be created""" class Meta: """Defines the model the form uses and what fields to use""" model = models.Pizza fields = ['city', 'state', 'crust', 'ingredients', 'name', 'summary'] # Over-ride the State field to be a state selector widgets = {'state': forms.Select(choices=STATES)}
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 1330, 4981, 198, 198, 2257, 29462, 796, 685, 198, 220, 220, 220, 19203, 1847, 3256, 705, 1847, 33809, 19203, 10206, 3256, 705, 10206, 33809, 19203, 22778, 3256, 705, 22778, 33809, 19203, 1503, 3256, 705, 1503, 33809, 19203, 8141, 3256, 705, 8141, 33809, 198, 220, 220, 220, 19203, 8220, 3256, 705, 8220, 33809, 19203, 4177, 3256, 705, 4177, 33809, 19203, 9697, 3256, 705, 9697, 33809, 19203, 7206, 3256, 705, 7206, 33809, 19203, 3697, 3256, 705, 3697, 33809, 198, 220, 220, 220, 19203, 9273, 3256, 705, 9273, 33809, 19203, 25374, 3256, 705, 25374, 33809, 19203, 2389, 3256, 705, 2389, 33809, 19203, 4146, 3256, 705, 4146, 33809, 19203, 1268, 3256, 705, 1268, 33809, 198, 220, 220, 220, 19203, 3539, 3256, 705, 3539, 33809, 19203, 27015, 3256, 705, 27015, 33809, 19203, 31159, 3256, 705, 31159, 33809, 19203, 13534, 3256, 705, 13534, 33809, 19203, 11682, 3256, 705, 11682, 33809, 198, 220, 220, 220, 19203, 12740, 3256, 705, 12740, 33809, 19203, 5673, 3256, 705, 5673, 33809, 19203, 8895, 3256, 705, 8895, 33809, 19203, 39764, 3256, 705, 39764, 33809, 19203, 5653, 3256, 705, 5653, 33809, 198, 220, 220, 220, 19203, 11770, 3256, 705, 11770, 33809, 19203, 13752, 3256, 705, 13752, 33809, 19203, 12161, 3256, 705, 12161, 33809, 19203, 27159, 3256, 705, 27159, 33809, 19203, 33863, 3256, 705, 33863, 33809, 198, 220, 220, 220, 19203, 41074, 3256, 705, 41074, 33809, 19203, 32755, 3256, 705, 32755, 33809, 19203, 12805, 3256, 705, 12805, 33809, 19203, 7792, 3256, 705, 7792, 33809, 19203, 8575, 3256, 705, 8575, 33809, 198, 220, 220, 220, 19203, 12096, 3256, 705, 12096, 33809, 19203, 11380, 3256, 705, 11380, 33809, 19203, 1581, 3256, 705, 1581, 33809, 19203, 4537, 3256, 705, 4537, 33809, 19203, 7112, 3256, 705, 7112, 33809, 198, 220, 220, 220, 19203, 6173, 3256, 705, 6173, 33809, 19203, 10305, 3256, 705, 10305, 33809, 19203, 46559, 3256, 705, 46559, 33809, 19203, 29551, 3256, 705, 29551, 33809, 19203, 3843, 3256, 705, 3843, 33809, 198, 220, 220, 220, 19203, 36392, 3256, 705, 36392, 33809, 19203, 11731, 3256, 705, 11731, 33809, 19203, 15543, 3256, 705, 15543, 33809, 19203, 54, 53, 3256, 705, 54, 53, 33809, 19203, 36326, 3256, 705, 36326, 33809, 198, 220, 220, 220, 19203, 54, 56, 3256, 705, 54, 56, 11537, 198, 60, 628, 198, 4871, 17589, 445, 1153, 8479, 7, 23914, 13, 17633, 8479, 2599, 198, 220, 220, 220, 37227, 8479, 5086, 257, 649, 17589, 445, 1153, 284, 307, 2727, 37811, 628, 220, 220, 220, 1398, 30277, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 7469, 1127, 262, 2746, 262, 1296, 3544, 290, 644, 7032, 284, 779, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 796, 4981, 13, 27682, 445, 1153, 198, 220, 220, 220, 220, 220, 220, 220, 7032, 796, 37250, 3672, 20520, 628, 220, 220, 220, 825, 3424, 62, 3672, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 5886, 12, 13154, 262, 1988, 329, 1438, 290, 3670, 1339, 340, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 796, 2116, 13, 2375, 22739, 62, 7890, 17816, 3672, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1438, 13, 7839, 3419, 628, 198, 4871, 20952, 8479, 7, 23914, 13, 17633, 8479, 2599, 198, 220, 220, 220, 37227, 8479, 5086, 257, 649, 20952, 2134, 284, 307, 2727, 37811, 628, 220, 220, 220, 1398, 30277, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 7469, 1127, 262, 2746, 262, 1296, 3544, 290, 644, 7032, 284, 779, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 796, 4981, 13, 47, 9990, 198, 220, 220, 220, 220, 220, 220, 220, 7032, 796, 37250, 19205, 3256, 705, 5219, 3256, 705, 6098, 436, 3256, 705, 278, 23320, 3256, 705, 3672, 3256, 705, 49736, 20520, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 3827, 12, 13154, 262, 1812, 2214, 284, 307, 257, 1181, 31870, 198, 220, 220, 220, 220, 220, 220, 220, 40803, 796, 1391, 6, 5219, 10354, 5107, 13, 17563, 7, 6679, 1063, 28, 2257, 29462, 38165, 628 ]
2.431784
667
# This sample tests the reportIncompatibleMethodOverride # configuration option. # This should generate an error if reportIncompatibleMethodOverride # is enabled. # This should generate an error if reportIncompatibleMethodOverride # is enabled.
[ 2, 770, 6291, 5254, 262, 989, 818, 38532, 17410, 37961, 198, 2, 8398, 3038, 13, 198, 220, 220, 220, 1303, 770, 815, 7716, 281, 4049, 611, 989, 818, 38532, 17410, 37961, 198, 220, 220, 220, 1303, 318, 9343, 13, 628, 220, 220, 220, 1303, 770, 815, 7716, 281, 4049, 611, 989, 818, 38532, 17410, 37961, 198, 220, 220, 220, 1303, 318, 9343, 13, 628 ]
4.109375
64
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files
[ 6738, 220, 844, 27349, 62, 2118, 9078, 13, 8692, 1330, 7308, 198, 6738, 220, 844, 27349, 62, 2118, 9078, 13, 16624, 1330, 13283, 628 ]
3.375
24
# -*- coding:utf-8 -*- # file: rancher_api # author: Mundy # date: 2017/9/1 0001 """ rancher api调用 """ import json import requests from django.conf import settings # --------requests设置-------- time_out = 8 headers = { 'content-type': 'application/json', 'Accept': 'application/json', } # 调用receiver_hooks api
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 2393, 25, 32205, 372, 62, 15042, 198, 2, 1772, 25, 33324, 88, 198, 2, 3128, 25, 2177, 14, 24, 14, 16, 3571, 486, 198, 37811, 198, 81, 1192, 372, 40391, 164, 108, 225, 18796, 101, 198, 37811, 198, 11748, 33918, 198, 11748, 7007, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 2, 24200, 8897, 3558, 164, 106, 122, 163, 121, 106, 982, 198, 2435, 62, 448, 796, 807, 198, 50145, 796, 1391, 198, 220, 220, 220, 705, 11299, 12, 4906, 10354, 705, 31438, 14, 17752, 3256, 198, 220, 220, 220, 705, 38855, 10354, 705, 31438, 14, 17752, 3256, 198, 92, 628, 198, 198, 2, 5525, 108, 225, 18796, 101, 260, 39729, 62, 25480, 82, 40391, 628 ]
2.439394
132