content
stringlengths
1
1.04M
input_ids
sequencelengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. # -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use """Function implementation""" import logging from resilient_circuits import ResilientComponent, function, handler, StatusMessage, FunctionResult, FunctionError import fn_apility.util.selftest as selftest import requests from fn_apility.lib.resilient_common import api_url class FunctionComponent(ResilientComponent): """Component that implements Resilient function 'fn_apility""" def __init__(self, opts): """constructor provides access to the configuration options""" super(FunctionComponent, self).__init__(opts) self.options = opts.get("fn_apility", {}) selftest.selftest_function(opts) @handler("reload") def _reload(self, event, opts): """Configuration options have changed, save new values""" self.options = opts.get("fn_apility", {}) @function("fn_apility") def _fn_apility_function(self, event, *args, **kwargs): """Function: Apility's anti-abuse API helps you know immediately if a user’s IP address, domain or email address is blacklisted so you can decide whether to block it or not.""" try: # Get the function parameters: apility_lookup_type = self.get_select_param(kwargs.get("apility_lookup_type")) # select, values: "Email", "IP Address", "Domain" apility_lookup_value = kwargs.get("apility_lookup_value") # text log = logging.getLogger(__name__) log.info("apility_lookup_type: %s", apility_lookup_type) log.info("apility_lookup_value: %s", apility_lookup_value) HEADERS = {'content-type': 'application/json', 'X-Auth-Token': self.options['api_token']} api = api_url(apility_lookup_type) url = '/'.join((self.options['url'], api, apility_lookup_value)) response = requests.get(url, headers=HEADERS) if(response.status_code == 200): res = response.json() res['query'] = apility_lookup_value else: msg = "Some error occured while retrieving the information from Apility.io with status code: {}" raise ValueError(msg.format(response.status_code)) results = { "value": res } # Produce a FunctionResult with the results yield FunctionResult(results) except Exception: yield FunctionError()
[ 2, 357, 66, 8, 15069, 19764, 11421, 13, 3050, 11, 2864, 13, 1439, 6923, 33876, 13, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 23864, 2611, 279, 2645, 600, 25, 15560, 28, 403, 1484, 12, 49140, 11, 645, 12, 944, 12, 1904, 198, 37811, 22203, 7822, 37811, 198, 198, 11748, 18931, 198, 6738, 30738, 62, 21170, 15379, 1330, 1874, 346, 1153, 21950, 11, 2163, 11, 21360, 11, 12678, 12837, 11, 15553, 23004, 11, 15553, 12331, 198, 11748, 24714, 62, 499, 879, 13, 22602, 13, 741, 701, 395, 355, 384, 75, 701, 395, 198, 11748, 7007, 198, 6738, 24714, 62, 499, 879, 13, 8019, 13, 411, 346, 1153, 62, 11321, 1330, 40391, 62, 6371, 198, 198, 4871, 15553, 21950, 7, 4965, 346, 1153, 21950, 2599, 198, 220, 220, 220, 37227, 21950, 326, 23986, 1874, 346, 1153, 2163, 705, 22184, 62, 499, 879, 37811, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 2172, 82, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 41571, 273, 3769, 1895, 284, 262, 8398, 3689, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 22203, 21950, 11, 2116, 737, 834, 15003, 834, 7, 404, 912, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 25811, 796, 2172, 82, 13, 1136, 7203, 22184, 62, 499, 879, 1600, 23884, 8, 198, 220, 220, 220, 220, 220, 220, 220, 384, 75, 701, 395, 13, 741, 701, 395, 62, 8818, 7, 404, 912, 8, 628, 220, 220, 220, 2488, 30281, 7203, 260, 2220, 4943, 198, 220, 220, 220, 825, 4808, 260, 2220, 7, 944, 11, 1785, 11, 2172, 82, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38149, 3689, 423, 3421, 11, 3613, 649, 3815, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 25811, 796, 2172, 82, 13, 1136, 7203, 22184, 62, 499, 879, 1600, 23884, 8, 628, 220, 220, 220, 2488, 8818, 7203, 22184, 62, 499, 879, 4943, 198, 220, 220, 220, 825, 4808, 22184, 62, 499, 879, 62, 8818, 7, 944, 11, 1785, 11, 1635, 22046, 11, 12429, 46265, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 22203, 25, 5949, 879, 338, 3098, 12, 47158, 7824, 5419, 345, 760, 3393, 611, 257, 2836, 447, 247, 82, 6101, 2209, 11, 7386, 393, 3053, 2209, 318, 2042, 17935, 523, 345, 460, 5409, 1771, 284, 2512, 340, 393, 407, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 3497, 262, 2163, 10007, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2471, 879, 62, 5460, 929, 62, 4906, 796, 2116, 13, 1136, 62, 19738, 62, 17143, 7, 46265, 22046, 13, 1136, 7203, 499, 879, 62, 5460, 929, 62, 4906, 48774, 220, 1303, 2922, 11, 3815, 25, 366, 15333, 1600, 366, 4061, 17917, 1600, 366, 43961, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2471, 879, 62, 5460, 929, 62, 8367, 796, 479, 86, 22046, 13, 1136, 7203, 499, 879, 62, 5460, 929, 62, 8367, 4943, 220, 1303, 2420, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2604, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2604, 13, 10951, 7203, 499, 879, 62, 5460, 929, 62, 4906, 25, 4064, 82, 1600, 2471, 879, 62, 5460, 929, 62, 4906, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2604, 13, 10951, 7203, 499, 879, 62, 5460, 929, 62, 8367, 25, 4064, 82, 1600, 2471, 879, 62, 5460, 929, 62, 8367, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39837, 4877, 796, 1391, 6, 11299, 12, 4906, 10354, 705, 31438, 14, 17752, 3256, 705, 55, 12, 30515, 12, 30642, 10354, 2116, 13, 25811, 17816, 15042, 62, 30001, 20520, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40391, 796, 40391, 62, 6371, 7, 499, 879, 62, 5460, 929, 62, 4906, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19016, 796, 31051, 4458, 22179, 19510, 944, 13, 25811, 17816, 6371, 6, 4357, 40391, 11, 2471, 879, 62, 5460, 929, 62, 8367, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 7007, 13, 1136, 7, 6371, 11, 24697, 28, 37682, 4877, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 7, 26209, 13, 13376, 62, 8189, 6624, 939, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 581, 796, 2882, 13, 17752, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 581, 17816, 22766, 20520, 796, 2471, 879, 62, 5460, 929, 62, 8367, 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, 31456, 796, 366, 4366, 4049, 1609, 1522, 981, 50122, 262, 1321, 422, 5949, 879, 13, 952, 351, 3722, 2438, 25, 23884, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 11052, 12331, 7, 19662, 13, 18982, 7, 26209, 13, 13376, 62, 8189, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2482, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8367, 1298, 581, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 21522, 344, 257, 15553, 23004, 351, 262, 2482, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 15553, 23004, 7, 43420, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 35528, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 15553, 12331, 3419, 198 ]
2.473223
1,027
import torch TESSERACT_DIM = 2 TESSERACT_DEP = 2 BATCH_SIZE = 8 SEQ_LENGTH = 8 HIDDEN_SIZE = 8
[ 11748, 28034, 198, 198, 51, 7597, 1137, 10659, 62, 35, 3955, 796, 362, 198, 51, 7597, 1137, 10659, 62, 46162, 796, 362, 198, 33, 11417, 62, 33489, 796, 807, 198, 5188, 48, 62, 43, 49494, 796, 807, 198, 39, 2389, 41819, 62, 33489, 796, 807, 628 ]
2.108696
46
from django.db.models.sql.subqueries import UpdateQuery as BaseUpdateQuery from django.core.exceptions import FieldError
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 25410, 13, 7266, 421, 10640, 1330, 10133, 20746, 355, 7308, 10260, 20746, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 7663, 12331 ]
3.75
32
from cv2selection import CV2Selection from cv2selection import QtGui import cv2
[ 6738, 269, 85, 17, 49283, 1330, 26196, 17, 4653, 1564, 198, 6738, 269, 85, 17, 49283, 1330, 33734, 8205, 72, 198, 11748, 269, 85, 17, 198 ]
3.076923
26
"""Actions are used for building complex interactions with smart contracts.""" from Arbie.Actions.action import Action, Store # noqa: F401 from Arbie.Actions.action_tree import ActionTree # noqa: F401 from Arbie.Actions.arbitrage import Arbitrage # noqa:F401 from Arbie.Actions.path_finder import PathFinder # noqa: F401 from Arbie.Actions.pool_finder import PoolFinder # noqa: F401 from Arbie.Actions.pool_updater import PoolUpdater # noqa: F401 from Arbie.Actions.redis_state import RedisState # noqa: F401 from Arbie.Actions.trader import SetUpTrader, Trader # noqa: F401 from Arbie.Actions.whitelist import Whitelist # noqa: F401
[ 37811, 32, 2733, 389, 973, 329, 2615, 3716, 12213, 351, 4451, 8592, 526, 15931, 198, 198, 6738, 943, 12590, 13, 32, 2733, 13, 2673, 1330, 7561, 11, 9363, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, 943, 12590, 13, 32, 2733, 13, 2673, 62, 21048, 1330, 7561, 27660, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, 943, 12590, 13, 32, 2733, 13, 283, 2545, 8394, 1330, 33619, 8394, 220, 1303, 645, 20402, 25, 37, 21844, 198, 6738, 943, 12590, 13, 32, 2733, 13, 6978, 62, 22805, 1330, 10644, 37, 5540, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, 943, 12590, 13, 32, 2733, 13, 7742, 62, 22805, 1330, 19850, 37, 5540, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, 943, 12590, 13, 32, 2733, 13, 7742, 62, 929, 67, 729, 1330, 19850, 4933, 67, 729, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, 943, 12590, 13, 32, 2733, 13, 445, 271, 62, 5219, 1330, 2297, 271, 9012, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, 943, 12590, 13, 32, 2733, 13, 2213, 5067, 1330, 5345, 4933, 2898, 5067, 11, 41956, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, 943, 12590, 13, 32, 2733, 13, 1929, 270, 46331, 1330, 13183, 46331, 220, 1303, 645, 20402, 25, 376, 21844, 198 ]
2.995349
215
# -*- coding: utf-8 -*- import email from email.header import decode_header # 只读取收件箱中的未读邮件
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 3053, 198, 6738, 3053, 13, 25677, 1330, 36899, 62, 25677, 628, 198, 2, 10263, 237, 103, 46237, 119, 20998, 244, 162, 242, 114, 20015, 114, 163, 106, 109, 40792, 21410, 17312, 103, 46237, 119, 165, 224, 106, 20015, 114 ]
1.703704
54
#!/usr/bin/env python3.6 # -*- coding: utf-8 -*- import asyncio import json import logging import re from typing import List, Tuple, Dict from datetime import datetime from tqdm import tqdm from parser.nsfw import detect_nsfw import asyncpg from util.categories import guess_metainfo from parser.search import make_tsvector, make_tsquery try: import uvloop asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) except: pass if __name__ == '__main__': loop = asyncio.get_event_loop() db_client = Torrent('207.148.124.42', loop=loop) loop.run_until_complete(db_client.update_all()) # loop.run_until_complete(db_client.word_count('char.dic'))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 21, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 30351, 952, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 302, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 11, 360, 713, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 30751, 13, 5907, 44482, 1330, 4886, 62, 5907, 44482, 198, 198, 11748, 30351, 6024, 198, 198, 6738, 7736, 13, 66, 26129, 1330, 4724, 62, 4164, 391, 6513, 198, 6738, 30751, 13, 12947, 1330, 787, 62, 912, 31364, 11, 787, 62, 912, 22766, 198, 198, 28311, 25, 198, 220, 220, 220, 1330, 334, 85, 26268, 198, 220, 220, 220, 30351, 952, 13, 2617, 62, 15596, 62, 26268, 62, 30586, 7, 14795, 26268, 13, 9237, 39516, 36727, 28955, 198, 16341, 25, 198, 220, 220, 220, 1208, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 9052, 796, 30351, 952, 13, 1136, 62, 15596, 62, 26268, 3419, 198, 220, 220, 220, 20613, 62, 16366, 796, 43399, 10786, 22745, 13, 18294, 13, 17464, 13, 3682, 3256, 9052, 28, 26268, 8, 198, 220, 220, 220, 9052, 13, 5143, 62, 28446, 62, 20751, 7, 9945, 62, 16366, 13, 19119, 62, 439, 28955, 198, 220, 220, 220, 1303, 9052, 13, 5143, 62, 28446, 62, 20751, 7, 9945, 62, 16366, 13, 4775, 62, 9127, 10786, 10641, 13, 67, 291, 6, 4008, 628, 628 ]
2.716
250
zaimportuj collections zaimportuj warnings spróbuj: zaimportuj ssl wyjąwszy ImportError: # pragma: no cover ssl = Nic z . zaimportuj compat z . zaimportuj protocols z . zaimportuj transports z .log zaimportuj logger inaczej: # Fallback dla Python 3.3. sslcontext = ssl.SSLContext(ssl.PROTOCOL_SSLv23) sslcontext.options |= ssl.OP_NO_SSLv2 sslcontext.options |= ssl.OP_NO_SSLv3 sslcontext.set_default_verify_paths() sslcontext.verify_mode = ssl.CERT_REQUIRED zwróć sslcontext def _is_sslproto_available(): zwróć hasattr(ssl, "MemoryBIO") # States of an _SSLPipe. _UNWRAPPED = "UNWRAPPED" _DO_HANDSHAKE = "DO_HANDSHAKE" _WRAPPED = "WRAPPED" _SHUTDOWN = "SHUTDOWN" klasa _SSLPipe(object): """An SSL "Pipe". An SSL pipe allows you to communicate przy an SSL/TLS protocol instance through memory buffers. It can be used to implement a security layer dla an existing connection where you don't have access to the connection's file descriptor, albo dla some reason you don't want to use it. An SSL pipe can be w "wrapped" oraz "unwrapped" mode. In unwrapped mode, data jest dalejed through untransformed. In wrapped mode, application level data jest encrypted to SSL record level data oraz vice versa. The SSL record level jest the lowest level w the SSL protocol suite oraz jest what travels as-is over the wire. An SslPipe initially jest w "unwrapped" mode. To start SSL, call do_handshake(). To shutdown SSL again, call unwrap(). """ max_size = 256 * 1024 # Buffer size dalejed to read() def __init__(self, context, server_side, server_hostname=Nic): """ The *context* argument specifies the ssl.SSLContext to use. The *server_side* argument indicates whether this jest a server side albo client side transport. The optional *server_hostname* argument can be used to specify the hostname you are connecting to. You may only specify this parameter if the _ssl module supports Server Name Indication (SNI). """ self._context = context self._server_side = server_side self._server_hostname = server_hostname self._state = _UNWRAPPED self._incoming = ssl.MemoryBIO() self._outgoing = ssl.MemoryBIO() self._sslobj = Nic self._need_ssldata = Nieprawda self._handshake_cb = Nic self._shutdown_cb = Nic @property def context(self): """The SSL context dalejed to the constructor.""" zwróć self._context @property def ssl_object(self): """The internal ssl.SSLObject instance. Return Nic jeżeli the pipe jest nie wrapped. """ zwróć self._sslobj @property def need_ssldata(self): """Whether more record level data jest needed to complete a handshake that jest currently w progress.""" zwróć self._need_ssldata @property def wrapped(self): """ Whether a security layer jest currently w effect. Return Nieprawda during handshake. """ zwróć self._state == _WRAPPED self._sslobj = self._context.wrap_bio( self._incoming, self._outgoing, server_side=self._server_side, server_hostname=self._server_hostname) self._state = _DO_HANDSHAKE self._handshake_cb = callback ssldata, appdata = self.feed_ssldata(b'', only_handshake=Prawda) assert len(appdata) == 0 zwróć ssldata jeżeli self._state == _SHUTDOWN: podnieś RuntimeError('shutdown w progress') assert self._state w (_WRAPPED, _DO_HANDSHAKE) self._state = _SHUTDOWN self._shutdown_cb = callback ssldata, appdata = self.feed_ssldata(b'') assert appdata == [] albo appdata == [b''] zwróć ssldata def feed_eof(self): """Send a potentially "ragged" EOF. This method will podnieś an SSL_ERROR_EOF exception jeżeli the EOF jest unexpected. """ self._incoming.write_eof() ssldata, appdata = self.feed_ssldata(b'') assert appdata == [] albo appdata == [b''] self._need_ssldata = Nieprawda jeżeli data: self._incoming.write(data) ssldata = [] appdata = [] spróbuj: jeżeli self._state == _DO_HANDSHAKE: # Call do_handshake() until it doesn't podnieś anymore. self._sslobj.do_handshake() self._state = _WRAPPED jeżeli self._handshake_cb: self._handshake_cb(Nic) jeżeli only_handshake: zwróć (ssldata, appdata) # Handshake done: execute the wrapped block jeżeli self._state == _WRAPPED: # Main state: read data z SSL until close_notify dopóki Prawda: chunk = self._sslobj.read(self.max_size) appdata.append(chunk) jeżeli nie chunk: # close_notify przerwij albo_inaczej self._state == _SHUTDOWN: # Call shutdown() until it doesn't podnieś anymore. self._sslobj.unwrap() self._sslobj = Nic self._state = _UNWRAPPED jeżeli self._shutdown_cb: self._shutdown_cb() albo_inaczej self._state == _UNWRAPPED: # Drain possible plaintext data after close_notify. appdata.append(self._incoming.read()) wyjąwszy (ssl.SSLError, ssl.CertificateError) jako exc: jeżeli getattr(exc, 'errno', Nic) nie w ( ssl.SSL_ERROR_WANT_READ, ssl.SSL_ERROR_WANT_WRITE, ssl.SSL_ERROR_SYSCALL): jeżeli self._state == _DO_HANDSHAKE oraz self._handshake_cb: self._handshake_cb(exc) podnieś self._need_ssldata = (exc.errno == ssl.SSL_ERROR_WANT_READ) # Check dla record level data that needs to be sent back. # Happens dla the initial handshake oraz renegotiations. jeżeli self._outgoing.pending: ssldata.append(self._outgoing.read()) zwróć (ssldata, appdata) def feed_appdata(self, data, offset=0): """Feed plaintext data into the pipe. Return an (ssldata, offset) tuple. The ssldata element jest a list of buffers containing record level data that needs to be sent to the remote SSL instance. The offset jest the number of plaintext bytes that were processed, which may be less than the length of data. NOTE: In case of short writes, this call MUST be retried przy the SAME buffer dalejed into the *data* argument (i.e. the id() must be the same). This jest an OpenSSL requirement. A further particularity jest that a short write will always have offset == 0, because the _ssl module does nie enable partial writes. And even though the offset jest zero, there will still be encrypted data w ssldata. """ assert 0 <= offset <= len(data) jeżeli self._state == _UNWRAPPED: # dalej through data w unwrapped mode jeżeli offset < len(data): ssldata = [data[offset:]] inaczej: ssldata = [] zwróć (ssldata, len(data)) ssldata = [] view = memoryview(data) dopóki Prawda: self._need_ssldata = Nieprawda spróbuj: jeżeli offset < len(view): offset += self._sslobj.write(view[offset:]) wyjąwszy ssl.SSLError jako exc: # It jest nie allowed to call write() after unwrap() until the # close_notify jest acknowledged. We zwróć the condition to the # caller jako a short write. jeżeli exc.reason == 'PROTOCOL_IS_SHUTDOWN': exc.errno = ssl.SSL_ERROR_WANT_READ jeżeli exc.errno nie w (ssl.SSL_ERROR_WANT_READ, ssl.SSL_ERROR_WANT_WRITE, ssl.SSL_ERROR_SYSCALL): podnieś self._need_ssldata = (exc.errno == ssl.SSL_ERROR_WANT_READ) # See jeżeli there's any record level data back dla us. jeżeli self._outgoing.pending: ssldata.append(self._outgoing.read()) jeżeli offset == len(view) albo self._need_ssldata: przerwij zwróć (ssldata, offset) klasa _SSLProtocolTransport(transports._FlowControlMixin, transports.Transport): def get_extra_info(self, name, default=Nic): """Get optional transport information.""" zwróć self._ssl_protocol._get_extra_info(name, default) def close(self): """Close the transport. Buffered data will be flushed asynchronously. No more data will be received. After all buffered data jest flushed, the protocol's connection_lost() method will (eventually) called przy Nic jako its argument. """ self._closed = Prawda self._ssl_protocol._start_shutdown() # On Python 3.3 oraz older, objects przy a destructor part of a reference # cycle are never destroyed. It's nie more the case on Python 3.4 thanks # to the PEP 442. jeżeli compat.PY34: def __del__(self): jeżeli nie self._closed: warnings.warn("unclosed transport %r" % self, ResourceWarning) self.close() def pause_reading(self): """Pause the receiving end. No data will be dalejed to the protocol's data_received() method until resume_reading() jest called. """ self._ssl_protocol._transport.pause_reading() def resume_reading(self): """Resume the receiving end. Data received will once again be dalejed to the protocol's data_received() method. """ self._ssl_protocol._transport.resume_reading() def set_write_buffer_limits(self, high=Nic, low=Nic): """Set the high- oraz low-water limits dla write flow control. These two values control when to call the protocol's pause_writing() oraz resume_writing() methods. If specified, the low-water limit must be less than albo equal to the high-water limit. Neither value can be negative. The defaults are implementation-specific. If only the high-water limit jest given, the low-water limit defaults to a implementation-specific value less than albo equal to the high-water limit. Setting high to zero forces low to zero as well, oraz causes pause_writing() to be called whenever the buffer becomes non-empty. Setting low to zero causes resume_writing() to be called only once the buffer jest empty. Use of zero dla either limit jest generally sub-optimal jako it reduces opportunities dla doing I/O oraz computation concurrently. """ self._ssl_protocol._transport.set_write_buffer_limits(high, low) def get_write_buffer_size(self): """Return the current size of the write buffer.""" zwróć self._ssl_protocol._transport.get_write_buffer_size() jeżeli nie data: zwróć self._ssl_protocol._write_appdata(data) def can_write_eof(self): """Return Prawda jeżeli this transport supports write_eof(), Nieprawda jeżeli not.""" zwróć Nieprawda def abort(self): """Close the transport immediately. Buffered data will be lost. No more data will be received. The protocol's connection_lost() method will (eventually) be called przy Nic jako its argument. """ self._ssl_protocol._abort() klasa SSLProtocol(protocols.Protocol): """SSL protocol. Implementation of SSL on top of a socket using incoming oraz outgoing buffers which are ssl.MemoryBIO objects. """ self._waiter = Nic def connection_made(self, transport): """Called when the low-level connection jest made. Start the SSL handshake. """ self._transport = transport self._sslpipe = _SSLPipe(self._sslcontext, self._server_side, self._server_hostname) self._start_handshake() def connection_lost(self, exc): """Called when the low-level connection jest lost albo closed. The argument jest an exception object albo Nic (the latter meaning a regular EOF jest received albo the connection was aborted albo closed). """ jeżeli self._session_established: self._session_established = Nieprawda self._loop.call_soon(self._app_protocol.connection_lost, exc) self._transport = Nic self._app_transport = Nic def pause_writing(self): """Called when the low-level transport's buffer goes over the high-water mark. """ self._app_protocol.pause_writing() def resume_writing(self): """Called when the low-level transport's buffer drains below the low-water mark. """ self._app_protocol.resume_writing() def data_received(self, data): """Called when some SSL data jest received. The argument jest a bytes object. """ spróbuj: ssldata, appdata = self._sslpipe.feed_ssldata(data) wyjąwszy ssl.SSLError jako e: jeżeli self._loop.get_debug(): logger.warning('%r: SSL error %s (reason %s)', self, e.errno, e.reason) self._abort() zwróć dla chunk w ssldata: self._transport.write(chunk) dla chunk w appdata: jeżeli chunk: self._app_protocol.data_received(chunk) inaczej: self._start_shutdown() przerwij def eof_received(self): """Called when the other end of the low-level stream jest half-closed. If this returns a false value (including Nic), the transport will close itself. If it returns a true value, closing the transport jest up to the protocol. """ spróbuj: jeżeli self._loop.get_debug(): logger.debug("%r received EOF", self) self._wakeup_waiter(ConnectionResetError) jeżeli nie self._in_handshake: keep_open = self._app_protocol.eof_received() jeżeli keep_open: logger.warning('returning true z eof_received() ' 'has no effect when using ssl') w_końcu: self._transport.close() def _get_extra_info(self, name, default=Nic): jeżeli name w self._extra: zwróć self._extra[name] inaczej: zwróć self._transport.get_extra_info(name, default) def _start_shutdown(self): jeżeli self._in_shutdown: zwróć self._in_shutdown = Prawda self._write_appdata(b'') def _write_appdata(self, data): self._write_backlog.append((data, 0)) self._write_buffer_size += len(data) self._process_write_backlog() def _start_handshake(self): jeżeli self._loop.get_debug(): logger.debug("%r starts SSL handshake", self) self._handshake_start_time = self._loop.time() inaczej: self._handshake_start_time = Nic self._in_handshake = Prawda # (b'', 1) jest a special value w _process_write_backlog() to do # the SSL handshake self._write_backlog.append((b'', 1)) self._loop.call_soon(self._process_write_backlog) def _on_handshake_complete(self, handshake_exc): self._in_handshake = Nieprawda sslobj = self._sslpipe.ssl_object spróbuj: jeżeli handshake_exc jest nie Nic: podnieś handshake_exc peercert = sslobj.getpeercert() jeżeli nie hasattr(self._sslcontext, 'check_hostname'): # Verify hostname jeżeli requested, Python 3.4+ uses check_hostname # oraz checks the hostname w do_handshake() jeżeli (self._server_hostname oraz self._sslcontext.verify_mode != ssl.CERT_NONE): ssl.match_hostname(peercert, self._server_hostname) wyjąwszy BaseException jako exc: jeżeli self._loop.get_debug(): jeżeli isinstance(exc, ssl.CertificateError): logger.warning("%r: SSL handshake failed " "on verifying the certificate", self, exc_info=Prawda) inaczej: logger.warning("%r: SSL handshake failed", self, exc_info=Prawda) self._transport.close() jeżeli isinstance(exc, Exception): self._wakeup_waiter(exc) zwróć inaczej: podnieś jeżeli self._loop.get_debug(): dt = self._loop.time() - self._handshake_start_time logger.debug("%r: SSL handshake took %.1f ms", self, dt * 1e3) # Add extra info that becomes available after handshake. self._extra.update(peercert=peercert, cipher=sslobj.cipher(), compression=sslobj.compression(), ) self._app_protocol.connection_made(self._app_transport) self._wakeup_waiter() self._session_established = Prawda # In case transport.write() was already called. Don't call # immediatly _process_write_backlog(), but schedule it: # _on_handshake_complete() can be called indirectly from # _process_write_backlog(), oraz _process_write_backlog() jest nie # reentrant. self._loop.call_soon(self._process_write_backlog) def _process_write_backlog(self): # Try to make progress on the write backlog. jeżeli self._transport jest Nic: zwróć spróbuj: dla i w range(len(self._write_backlog)): data, offset = self._write_backlog[0] jeżeli data: ssldata, offset = self._sslpipe.feed_appdata(data, offset) albo_inaczej offset: ssldata = self._sslpipe.do_handshake( self._on_handshake_complete) offset = 1 inaczej: ssldata = self._sslpipe.shutdown(self._finalize) offset = 1 dla chunk w ssldata: self._transport.write(chunk) jeżeli offset < len(data): self._write_backlog[0] = (data, offset) # A short write means that a write jest blocked on a read # We need to enable reading jeżeli it jest paused! assert self._sslpipe.need_ssldata jeżeli self._transport._paused: self._transport.resume_reading() przerwij # An entire chunk z the backlog was processed. We can # delete it oraz reduce the outstanding buffer size. usuń self._write_backlog[0] self._write_buffer_size -= len(data) wyjąwszy BaseException jako exc: jeżeli self._in_handshake: # BaseExceptions will be re-raised w _on_handshake_complete. self._on_handshake_complete(exc) inaczej: self._fatal_error(exc, 'Fatal error on SSL transport') jeżeli nie isinstance(exc, Exception): # BaseException podnieś def _fatal_error(self, exc, message='Fatal error on transport'): # Should be called z exception handler only. jeżeli isinstance(exc, (BrokenPipeError, ConnectionResetError)): jeżeli self._loop.get_debug(): logger.debug("%r: %s", self, message, exc_info=Prawda) inaczej: self._loop.call_exception_handler({ 'message': message, 'exception': exc, 'transport': self._transport, 'protocol': self, }) jeżeli self._transport: self._transport._force_close(exc) def _finalize(self): jeżeli self._transport jest nie Nic: self._transport.close() def _abort(self): jeżeli self._transport jest nie Nic: spróbuj: self._transport.abort() w_końcu: self._finalize()
[ 89, 1385, 634, 23577, 17268, 198, 89, 1385, 634, 23577, 14601, 198, 34975, 10205, 11110, 73, 25, 198, 220, 220, 220, 1976, 1385, 634, 23577, 264, 6649, 198, 21768, 73, 128, 227, 18504, 7357, 17267, 12331, 25, 220, 1303, 23864, 2611, 25, 645, 3002, 198, 220, 220, 220, 264, 6649, 796, 8377, 198, 198, 89, 764, 1976, 1385, 634, 23577, 8330, 198, 89, 764, 1976, 1385, 634, 23577, 19565, 198, 89, 764, 1976, 1385, 634, 23577, 45245, 198, 89, 764, 6404, 1976, 1385, 634, 23577, 49706, 628, 220, 220, 220, 287, 330, 2736, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 7218, 1891, 288, 5031, 11361, 513, 13, 18, 13, 198, 220, 220, 220, 220, 220, 220, 220, 264, 6649, 22866, 796, 264, 6649, 13, 31127, 21947, 7, 45163, 13, 4805, 2394, 4503, 3535, 62, 5432, 29507, 1954, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 6649, 22866, 13, 25811, 930, 28, 264, 6649, 13, 3185, 62, 15285, 62, 5432, 29507, 17, 198, 220, 220, 220, 220, 220, 220, 220, 264, 6649, 22866, 13, 25811, 930, 28, 264, 6649, 13, 3185, 62, 15285, 62, 5432, 29507, 18, 198, 220, 220, 220, 220, 220, 220, 220, 264, 6649, 22866, 13, 2617, 62, 12286, 62, 332, 1958, 62, 6978, 82, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 264, 6649, 22866, 13, 332, 1958, 62, 14171, 796, 264, 6649, 13, 34, 17395, 62, 2200, 10917, 37819, 198, 220, 220, 220, 1976, 18351, 10205, 38325, 264, 6649, 22866, 628, 198, 4299, 4808, 271, 62, 45163, 1676, 1462, 62, 15182, 33529, 198, 220, 220, 220, 1976, 18351, 10205, 38325, 468, 35226, 7, 45163, 11, 366, 30871, 3483, 46, 4943, 628, 198, 2, 1829, 286, 281, 4808, 5432, 19930, 3757, 13, 198, 62, 4944, 18564, 24805, 1961, 796, 366, 4944, 18564, 24805, 1961, 1, 198, 62, 18227, 62, 39, 1565, 5258, 7801, 7336, 796, 366, 18227, 62, 39, 1565, 5258, 7801, 7336, 1, 198, 62, 18564, 24805, 1961, 796, 366, 18564, 24805, 1961, 1, 198, 62, 9693, 3843, 41925, 796, 366, 9693, 3843, 41925, 1, 628, 198, 41582, 15462, 4808, 5432, 19930, 3757, 7, 15252, 2599, 198, 220, 220, 220, 37227, 2025, 25952, 366, 47, 3757, 1911, 628, 220, 220, 220, 1052, 25952, 12656, 3578, 345, 284, 10996, 778, 7357, 281, 25952, 14, 51, 6561, 8435, 4554, 198, 220, 220, 220, 832, 4088, 39334, 13, 632, 460, 307, 973, 284, 3494, 257, 2324, 7679, 288, 5031, 281, 198, 220, 220, 220, 4683, 4637, 810, 345, 836, 470, 423, 1895, 284, 262, 4637, 338, 2393, 198, 220, 220, 220, 43087, 11, 435, 2127, 288, 5031, 617, 1738, 345, 836, 470, 765, 284, 779, 340, 13, 628, 220, 220, 220, 1052, 25952, 12656, 460, 307, 266, 366, 29988, 1496, 1, 393, 1031, 366, 403, 29988, 1496, 1, 4235, 13, 554, 7379, 430, 1496, 4235, 11, 198, 220, 220, 220, 1366, 474, 395, 288, 1000, 73, 276, 832, 1418, 26084, 12214, 13, 554, 12908, 4235, 11, 3586, 1241, 198, 220, 220, 220, 1366, 474, 395, 19365, 284, 25952, 1700, 1241, 1366, 393, 1031, 7927, 25470, 13, 383, 25952, 1700, 198, 220, 220, 220, 1241, 474, 395, 262, 9016, 1241, 266, 262, 25952, 8435, 18389, 393, 1031, 474, 395, 644, 17781, 198, 220, 220, 220, 355, 12, 271, 625, 262, 6503, 13, 628, 220, 220, 220, 1052, 311, 6649, 47, 3757, 7317, 474, 395, 266, 366, 403, 29988, 1496, 1, 4235, 13, 1675, 923, 25952, 11, 869, 198, 220, 220, 220, 466, 62, 4993, 32431, 22446, 1675, 18325, 25952, 757, 11, 869, 7379, 2416, 22446, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 3509, 62, 7857, 796, 17759, 1635, 28119, 220, 220, 1303, 47017, 2546, 288, 1000, 73, 276, 284, 1100, 3419, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 4732, 11, 4382, 62, 1589, 11, 4382, 62, 4774, 3672, 28, 30403, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 383, 1635, 22866, 9, 4578, 26052, 262, 264, 6649, 13, 31127, 21947, 284, 779, 13, 628, 220, 220, 220, 220, 220, 220, 220, 383, 1635, 15388, 62, 1589, 9, 4578, 9217, 1771, 428, 474, 395, 257, 4382, 1735, 435, 2127, 198, 220, 220, 220, 220, 220, 220, 220, 5456, 1735, 4839, 13, 628, 220, 220, 220, 220, 220, 220, 220, 383, 11902, 1635, 15388, 62, 4774, 3672, 9, 4578, 460, 307, 973, 284, 11986, 262, 198, 220, 220, 220, 220, 220, 220, 220, 2583, 3672, 345, 389, 14320, 284, 13, 921, 743, 691, 11986, 428, 11507, 611, 198, 220, 220, 220, 220, 220, 220, 220, 262, 4808, 45163, 8265, 6971, 9652, 6530, 1423, 3299, 357, 15571, 40, 737, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 22866, 796, 4732, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 15388, 62, 1589, 796, 4382, 62, 1589, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 15388, 62, 4774, 3672, 796, 4382, 62, 4774, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 5219, 796, 4808, 4944, 18564, 24805, 1961, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 259, 4976, 796, 264, 6649, 13, 30871, 3483, 46, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 448, 5146, 796, 264, 6649, 13, 30871, 3483, 46, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 26801, 796, 8377, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 31227, 62, 824, 335, 1045, 796, 399, 494, 79, 1831, 6814, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 4993, 32431, 62, 21101, 796, 8377, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 49625, 2902, 62, 21101, 796, 8377, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 4732, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 464, 25952, 4732, 288, 1000, 73, 276, 284, 262, 23772, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 2116, 13557, 22866, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 264, 6649, 62, 15252, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 464, 5387, 264, 6649, 13, 31127, 10267, 4554, 13, 628, 220, 220, 220, 220, 220, 220, 220, 8229, 8377, 11223, 129, 120, 43733, 262, 12656, 474, 395, 299, 494, 12908, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 2116, 13557, 45163, 26801, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 761, 62, 824, 335, 1045, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 15354, 517, 1700, 1241, 1366, 474, 395, 2622, 284, 1844, 257, 42231, 198, 220, 220, 220, 220, 220, 220, 220, 326, 474, 395, 3058, 266, 4371, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 2116, 13557, 31227, 62, 824, 335, 1045, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 12908, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10127, 257, 2324, 7679, 474, 395, 3058, 266, 1245, 13, 628, 220, 220, 220, 220, 220, 220, 220, 8229, 399, 494, 79, 1831, 6814, 1141, 42231, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 2116, 13557, 5219, 6624, 4808, 18564, 24805, 1961, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 26801, 796, 2116, 13557, 22866, 13, 37150, 62, 65, 952, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 259, 4976, 11, 2116, 13557, 448, 5146, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4382, 62, 1589, 28, 944, 13557, 15388, 62, 1589, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4382, 62, 4774, 3672, 28, 944, 13557, 15388, 62, 4774, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 5219, 796, 4808, 18227, 62, 39, 1565, 5258, 7801, 7336, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 4993, 32431, 62, 21101, 796, 23838, 198, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 11, 598, 7890, 796, 2116, 13, 12363, 62, 824, 335, 1045, 7, 65, 6, 3256, 691, 62, 4993, 32431, 28, 47, 1831, 6814, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 18896, 7, 1324, 7890, 8, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 37786, 335, 1045, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 5219, 6624, 4808, 9693, 3843, 41925, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24573, 11952, 129, 249, 43160, 12331, 10786, 49625, 2902, 266, 4371, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 2116, 13557, 5219, 266, 44104, 18564, 24805, 1961, 11, 4808, 18227, 62, 39, 1565, 5258, 7801, 7336, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 5219, 796, 4808, 9693, 3843, 41925, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 49625, 2902, 62, 21101, 796, 23838, 198, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 11, 598, 7890, 796, 2116, 13, 12363, 62, 824, 335, 1045, 7, 65, 7061, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 598, 7890, 6624, 17635, 435, 2127, 598, 7890, 6624, 685, 65, 7061, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 37786, 335, 1045, 628, 220, 220, 220, 825, 3745, 62, 68, 1659, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 25206, 257, 6196, 366, 81, 14655, 1, 412, 19238, 13, 628, 220, 220, 220, 220, 220, 220, 220, 770, 2446, 481, 24573, 11952, 129, 249, 281, 25952, 62, 24908, 62, 4720, 37, 6631, 11223, 129, 120, 43733, 262, 412, 19238, 474, 395, 198, 220, 220, 220, 220, 220, 220, 220, 10059, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 259, 4976, 13, 13564, 62, 68, 1659, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 11, 598, 7890, 796, 2116, 13, 12363, 62, 824, 335, 1045, 7, 65, 7061, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 598, 7890, 6624, 17635, 435, 2127, 598, 7890, 6624, 685, 65, 7061, 60, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 31227, 62, 824, 335, 1045, 796, 399, 494, 79, 1831, 6814, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 1366, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 259, 4976, 13, 13564, 7, 7890, 8, 628, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 598, 7890, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 7500, 10205, 11110, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 5219, 6624, 4808, 18227, 62, 39, 1565, 5258, 7801, 7336, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4889, 466, 62, 4993, 32431, 3419, 1566, 340, 1595, 470, 24573, 11952, 129, 249, 7471, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 26801, 13, 4598, 62, 4993, 32431, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 5219, 796, 4808, 18564, 24805, 1961, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 4993, 32431, 62, 21101, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 4993, 32431, 62, 21101, 7, 30403, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 691, 62, 4993, 32431, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 357, 824, 335, 1045, 11, 598, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 7157, 32431, 1760, 25, 12260, 262, 12908, 2512, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 5219, 6624, 4808, 18564, 24805, 1961, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 8774, 1181, 25, 1100, 1366, 1976, 25952, 1566, 1969, 62, 1662, 1958, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22340, 10205, 4106, 350, 1831, 6814, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16058, 796, 2116, 13557, 45163, 26801, 13, 961, 7, 944, 13, 9806, 62, 7857, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 598, 7890, 13, 33295, 7, 354, 2954, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 299, 494, 16058, 25, 220, 1303, 1969, 62, 1662, 1958, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 778, 9107, 86, 2926, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 435, 2127, 62, 259, 330, 2736, 73, 2116, 13557, 5219, 6624, 4808, 9693, 3843, 41925, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4889, 18325, 3419, 1566, 340, 1595, 470, 24573, 11952, 129, 249, 7471, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 26801, 13, 403, 37150, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 26801, 796, 8377, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 5219, 796, 4808, 4944, 18564, 24805, 1961, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 49625, 2902, 62, 21101, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 49625, 2902, 62, 21101, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 435, 2127, 62, 259, 330, 2736, 73, 2116, 13557, 5219, 6624, 4808, 4944, 18564, 24805, 1961, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 36024, 1744, 8631, 5239, 1366, 706, 1969, 62, 1662, 1958, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 598, 7890, 13, 33295, 7, 944, 13557, 259, 4976, 13, 961, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 266, 88, 73, 128, 227, 18504, 7357, 357, 45163, 13, 5432, 2538, 81, 1472, 11, 264, 6649, 13, 37608, 22460, 12331, 8, 474, 25496, 2859, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 651, 35226, 7, 41194, 11, 705, 8056, 3919, 3256, 8377, 8, 299, 494, 266, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 6649, 13, 31127, 62, 24908, 62, 54, 8643, 62, 15675, 11, 264, 6649, 13, 31127, 62, 24908, 62, 54, 8643, 62, 18564, 12709, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 6649, 13, 31127, 62, 24908, 62, 23060, 6173, 7036, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 5219, 6624, 4808, 18227, 62, 39, 1565, 5258, 7801, 7336, 393, 1031, 2116, 13557, 4993, 32431, 62, 21101, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 4993, 32431, 62, 21101, 7, 41194, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24573, 11952, 129, 249, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 31227, 62, 824, 335, 1045, 796, 357, 41194, 13, 8056, 3919, 6624, 264, 6649, 13, 31127, 62, 24908, 62, 54, 8643, 62, 15675, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 6822, 288, 5031, 1700, 1241, 1366, 326, 2476, 284, 307, 1908, 736, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 18321, 641, 288, 5031, 262, 4238, 42231, 393, 1031, 48312, 602, 13, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 448, 5146, 13, 79, 1571, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 13, 33295, 7, 944, 13557, 448, 5146, 13, 961, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 357, 824, 335, 1045, 11, 598, 7890, 8, 628, 220, 220, 220, 825, 3745, 62, 1324, 7890, 7, 944, 11, 1366, 11, 11677, 28, 15, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 18332, 8631, 5239, 1366, 656, 262, 12656, 13, 628, 220, 220, 220, 220, 220, 220, 220, 8229, 281, 357, 824, 335, 1045, 11, 11677, 8, 46545, 13, 383, 37786, 335, 1045, 5002, 474, 395, 257, 1351, 286, 198, 220, 220, 220, 220, 220, 220, 220, 39334, 7268, 1700, 1241, 1366, 326, 2476, 284, 307, 1908, 284, 262, 198, 220, 220, 220, 220, 220, 220, 220, 6569, 25952, 4554, 13, 383, 11677, 474, 395, 262, 1271, 286, 8631, 5239, 9881, 326, 198, 220, 220, 220, 220, 220, 220, 220, 547, 13686, 11, 543, 743, 307, 1342, 621, 262, 4129, 286, 1366, 13, 628, 220, 220, 220, 220, 220, 220, 220, 24550, 25, 554, 1339, 286, 1790, 6797, 11, 428, 869, 17191, 307, 1005, 2228, 778, 7357, 262, 311, 10067, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 288, 1000, 73, 276, 656, 262, 1635, 7890, 9, 4578, 357, 72, 13, 68, 13, 262, 4686, 3419, 1276, 307, 262, 198, 220, 220, 220, 220, 220, 220, 220, 976, 737, 770, 474, 395, 281, 4946, 31127, 9079, 13, 317, 2252, 1948, 414, 474, 395, 326, 198, 220, 220, 220, 220, 220, 220, 220, 257, 1790, 3551, 481, 1464, 423, 11677, 6624, 657, 11, 780, 262, 4808, 45163, 8265, 198, 220, 220, 220, 220, 220, 220, 220, 857, 299, 494, 7139, 13027, 6797, 13, 843, 772, 996, 262, 11677, 474, 395, 6632, 11, 198, 220, 220, 220, 220, 220, 220, 220, 612, 481, 991, 307, 19365, 1366, 266, 37786, 335, 1045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 657, 19841, 11677, 19841, 18896, 7, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 5219, 6624, 4808, 4944, 18564, 24805, 1961, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 288, 1000, 73, 832, 1366, 266, 7379, 430, 1496, 4235, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 11677, 1279, 18896, 7, 7890, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 796, 685, 7890, 58, 28968, 25, 11907, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 330, 2736, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 357, 824, 335, 1045, 11, 18896, 7, 7890, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1570, 796, 4088, 1177, 7, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 22340, 10205, 4106, 350, 1831, 6814, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 31227, 62, 824, 335, 1045, 796, 399, 494, 79, 1831, 6814, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7500, 10205, 11110, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 11677, 1279, 18896, 7, 1177, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11677, 15853, 2116, 13557, 45163, 26801, 13, 13564, 7, 1177, 58, 28968, 25, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 88, 73, 128, 227, 18504, 7357, 264, 6649, 13, 5432, 2538, 81, 1472, 474, 25496, 2859, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 632, 474, 395, 299, 494, 3142, 284, 869, 3551, 3419, 706, 7379, 2416, 3419, 1566, 262, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1969, 62, 1662, 1958, 474, 395, 10810, 13, 775, 1976, 18351, 10205, 38325, 262, 4006, 284, 262, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 24955, 474, 25496, 257, 1790, 3551, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2859, 13, 41181, 6624, 705, 4805, 2394, 4503, 3535, 62, 1797, 62, 9693, 3843, 41925, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2859, 13, 8056, 3919, 796, 264, 6649, 13, 31127, 62, 24908, 62, 54, 8643, 62, 15675, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2859, 13, 8056, 3919, 299, 494, 266, 357, 45163, 13, 31127, 62, 24908, 62, 54, 8643, 62, 15675, 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, 264, 6649, 13, 31127, 62, 24908, 62, 54, 8643, 62, 18564, 12709, 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, 264, 6649, 13, 31127, 62, 24908, 62, 23060, 6173, 7036, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24573, 11952, 129, 249, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 31227, 62, 824, 335, 1045, 796, 357, 41194, 13, 8056, 3919, 6624, 264, 6649, 13, 31127, 62, 24908, 62, 54, 8643, 62, 15675, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4091, 11223, 129, 120, 43733, 612, 338, 597, 1700, 1241, 1366, 736, 288, 5031, 514, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 448, 5146, 13, 79, 1571, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 13, 33295, 7, 944, 13557, 448, 5146, 13, 961, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 11677, 6624, 18896, 7, 1177, 8, 435, 2127, 2116, 13557, 31227, 62, 824, 335, 1045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 778, 9107, 86, 2926, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 357, 824, 335, 1045, 11, 11677, 8, 628, 198, 41582, 15462, 4808, 31127, 19703, 4668, 8291, 634, 7, 7645, 3742, 13557, 37535, 15988, 35608, 259, 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, 45245, 13, 8291, 634, 2599, 628, 220, 220, 220, 825, 651, 62, 26086, 62, 10951, 7, 944, 11, 1438, 11, 4277, 28, 30403, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3855, 11902, 4839, 1321, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 2116, 13557, 45163, 62, 11235, 4668, 13557, 1136, 62, 26086, 62, 10951, 7, 3672, 11, 4277, 8, 628, 220, 220, 220, 825, 1969, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 26125, 262, 4839, 13, 628, 220, 220, 220, 220, 220, 220, 220, 8792, 1068, 1366, 481, 307, 44869, 355, 24871, 3481, 13, 220, 1400, 517, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 481, 307, 2722, 13, 220, 2293, 477, 6940, 1068, 1366, 474, 395, 44869, 11, 262, 198, 220, 220, 220, 220, 220, 220, 220, 8435, 338, 4637, 62, 33224, 3419, 2446, 481, 357, 15596, 935, 8, 1444, 198, 220, 220, 220, 220, 220, 220, 220, 778, 7357, 8377, 474, 25496, 663, 4578, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 20225, 796, 350, 1831, 6814, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 62, 11235, 4668, 13557, 9688, 62, 49625, 2902, 3419, 628, 220, 220, 220, 1303, 1550, 11361, 513, 13, 18, 393, 1031, 4697, 11, 5563, 778, 7357, 257, 15256, 273, 636, 286, 257, 4941, 198, 220, 220, 220, 1303, 6772, 389, 1239, 6572, 13, 632, 338, 299, 494, 517, 262, 1339, 319, 11361, 513, 13, 19, 5176, 198, 220, 220, 220, 1303, 284, 262, 350, 8905, 604, 3682, 13, 198, 220, 220, 220, 11223, 129, 120, 43733, 8330, 13, 47, 56, 2682, 25, 198, 220, 220, 220, 220, 220, 220, 220, 825, 11593, 12381, 834, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 299, 494, 2116, 13557, 20225, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14601, 13, 40539, 7203, 403, 20225, 4839, 4064, 81, 1, 4064, 2116, 11, 20857, 20361, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19836, 3419, 628, 220, 220, 220, 825, 14985, 62, 25782, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 49991, 262, 6464, 886, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1400, 1366, 481, 307, 288, 1000, 73, 276, 284, 262, 8435, 338, 1366, 62, 47844, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2446, 1566, 15294, 62, 25782, 3419, 474, 395, 1444, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 62, 11235, 4668, 13557, 7645, 634, 13, 32125, 62, 25782, 3419, 628, 220, 220, 220, 825, 15294, 62, 25782, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 4965, 2454, 262, 6464, 886, 13, 628, 220, 220, 220, 220, 220, 220, 220, 6060, 2722, 481, 1752, 757, 307, 288, 1000, 73, 276, 284, 262, 8435, 338, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 62, 47844, 3419, 2446, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 62, 11235, 4668, 13557, 7645, 634, 13, 411, 2454, 62, 25782, 3419, 628, 220, 220, 220, 825, 900, 62, 13564, 62, 22252, 62, 49196, 7, 944, 11, 1029, 28, 30403, 11, 1877, 28, 30403, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 7248, 262, 1029, 12, 393, 1031, 1877, 12, 7050, 7095, 288, 5031, 3551, 5202, 1630, 13, 628, 220, 220, 220, 220, 220, 220, 220, 2312, 734, 3815, 1630, 618, 284, 869, 262, 8435, 338, 198, 220, 220, 220, 220, 220, 220, 220, 14985, 62, 16502, 3419, 393, 1031, 15294, 62, 16502, 3419, 5050, 13, 220, 1002, 7368, 11, 198, 220, 220, 220, 220, 220, 220, 220, 262, 1877, 12, 7050, 4179, 1276, 307, 1342, 621, 435, 2127, 4961, 284, 262, 198, 220, 220, 220, 220, 220, 220, 220, 1029, 12, 7050, 4179, 13, 220, 16126, 1988, 460, 307, 4633, 13, 628, 220, 220, 220, 220, 220, 220, 220, 383, 26235, 389, 7822, 12, 11423, 13, 220, 1002, 691, 262, 198, 220, 220, 220, 220, 220, 220, 220, 1029, 12, 7050, 4179, 474, 395, 1813, 11, 262, 1877, 12, 7050, 4179, 26235, 284, 257, 198, 220, 220, 220, 220, 220, 220, 220, 7822, 12, 11423, 1988, 1342, 621, 435, 2127, 4961, 284, 262, 198, 220, 220, 220, 220, 220, 220, 220, 1029, 12, 7050, 4179, 13, 220, 25700, 1029, 284, 6632, 3386, 1877, 284, 6632, 355, 198, 220, 220, 220, 220, 220, 220, 220, 880, 11, 393, 1031, 5640, 14985, 62, 16502, 3419, 284, 307, 1444, 8797, 262, 198, 220, 220, 220, 220, 220, 220, 220, 11876, 4329, 1729, 12, 28920, 13, 220, 25700, 1877, 284, 6632, 5640, 198, 220, 220, 220, 220, 220, 220, 220, 15294, 62, 16502, 3419, 284, 307, 1444, 691, 1752, 262, 11876, 474, 395, 6565, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5765, 286, 6632, 288, 5031, 2035, 4179, 474, 395, 4143, 850, 12, 8738, 4402, 474, 25496, 340, 198, 220, 220, 220, 220, 220, 220, 220, 12850, 6443, 288, 5031, 1804, 314, 14, 46, 393, 1031, 29964, 198, 220, 220, 220, 220, 220, 220, 220, 47480, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 62, 11235, 4668, 13557, 7645, 634, 13, 2617, 62, 13564, 62, 22252, 62, 49196, 7, 8929, 11, 1877, 8, 628, 220, 220, 220, 825, 651, 62, 13564, 62, 22252, 62, 7857, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13615, 262, 1459, 2546, 286, 262, 3551, 11876, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 2116, 13557, 45163, 62, 11235, 4668, 13557, 7645, 634, 13, 1136, 62, 13564, 62, 22252, 62, 7857, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 299, 494, 1366, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 62, 11235, 4668, 13557, 13564, 62, 1324, 7890, 7, 7890, 8, 628, 220, 220, 220, 825, 460, 62, 13564, 62, 68, 1659, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 13615, 350, 1831, 6814, 11223, 129, 120, 43733, 428, 4839, 6971, 3551, 62, 68, 1659, 22784, 399, 494, 79, 1831, 6814, 11223, 129, 120, 43733, 407, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 399, 494, 79, 1831, 6814, 628, 220, 220, 220, 825, 15614, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 26125, 262, 4839, 3393, 13, 628, 220, 220, 220, 220, 220, 220, 220, 8792, 1068, 1366, 481, 307, 2626, 13, 220, 1400, 517, 1366, 481, 307, 2722, 13, 198, 220, 220, 220, 220, 220, 220, 220, 383, 8435, 338, 4637, 62, 33224, 3419, 2446, 481, 357, 15596, 935, 8, 307, 198, 220, 220, 220, 220, 220, 220, 220, 1444, 778, 7357, 8377, 474, 25496, 663, 4578, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 62, 11235, 4668, 13557, 397, 419, 3419, 628, 198, 41582, 15462, 25952, 19703, 4668, 7, 11235, 4668, 82, 13, 19703, 4668, 2599, 198, 220, 220, 220, 37227, 31127, 8435, 13, 628, 220, 220, 220, 46333, 286, 25952, 319, 1353, 286, 257, 17802, 1262, 15619, 393, 1031, 28181, 198, 220, 220, 220, 39334, 543, 389, 264, 6649, 13, 30871, 3483, 46, 5563, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 10247, 2676, 796, 8377, 628, 220, 220, 220, 825, 4637, 62, 9727, 7, 944, 11, 4839, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 34, 4262, 618, 262, 1877, 12, 5715, 4637, 474, 395, 925, 13, 628, 220, 220, 220, 220, 220, 220, 220, 7253, 262, 25952, 42231, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7645, 634, 796, 4839, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 45163, 34360, 796, 4808, 5432, 19930, 3757, 7, 944, 13557, 45163, 22866, 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, 2116, 13557, 15388, 62, 1589, 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, 2116, 13557, 15388, 62, 4774, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 9688, 62, 4993, 32431, 3419, 628, 220, 220, 220, 825, 4637, 62, 33224, 7, 944, 11, 2859, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 34, 4262, 618, 262, 1877, 12, 5715, 4637, 474, 395, 2626, 435, 2127, 4838, 13, 628, 220, 220, 220, 220, 220, 220, 220, 383, 4578, 474, 395, 281, 6631, 2134, 435, 2127, 8377, 357, 1169, 6846, 198, 220, 220, 220, 220, 220, 220, 220, 3616, 257, 3218, 412, 19238, 474, 395, 2722, 435, 2127, 262, 4637, 373, 198, 220, 220, 220, 220, 220, 220, 220, 46847, 435, 2127, 4838, 737, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 29891, 62, 27718, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 29891, 62, 27718, 796, 399, 494, 79, 1831, 6814, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 26268, 13, 13345, 62, 36194, 7, 944, 13557, 1324, 62, 11235, 4668, 13, 38659, 62, 33224, 11, 2859, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7645, 634, 796, 8377, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 1324, 62, 7645, 634, 796, 8377, 628, 220, 220, 220, 825, 14985, 62, 16502, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 34, 4262, 618, 262, 1877, 12, 5715, 4839, 338, 11876, 2925, 625, 198, 220, 220, 220, 220, 220, 220, 220, 262, 1029, 12, 7050, 1317, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 1324, 62, 11235, 4668, 13, 32125, 62, 16502, 3419, 628, 220, 220, 220, 825, 15294, 62, 16502, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 34, 4262, 618, 262, 1877, 12, 5715, 4839, 338, 11876, 44368, 2174, 198, 220, 220, 220, 220, 220, 220, 220, 262, 1877, 12, 7050, 1317, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 1324, 62, 11235, 4668, 13, 411, 2454, 62, 16502, 3419, 628, 220, 220, 220, 825, 1366, 62, 47844, 7, 944, 11, 1366, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 34, 4262, 618, 617, 25952, 1366, 474, 395, 2722, 13, 628, 220, 220, 220, 220, 220, 220, 220, 383, 4578, 474, 395, 257, 9881, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 7500, 10205, 11110, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 11, 598, 7890, 796, 2116, 13557, 45163, 34360, 13, 12363, 62, 824, 335, 1045, 7, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 266, 88, 73, 128, 227, 18504, 7357, 264, 6649, 13, 5432, 2538, 81, 1472, 474, 25496, 304, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 26268, 13, 1136, 62, 24442, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 43917, 10786, 4, 81, 25, 25952, 4049, 4064, 82, 357, 41181, 4064, 82, 8, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 304, 13, 8056, 3919, 11, 304, 13, 41181, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 397, 419, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 628, 220, 220, 220, 220, 220, 220, 220, 288, 5031, 16058, 266, 37786, 335, 1045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7645, 634, 13, 13564, 7, 354, 2954, 8, 628, 220, 220, 220, 220, 220, 220, 220, 288, 5031, 16058, 266, 598, 7890, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 16058, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 1324, 62, 11235, 4668, 13, 7890, 62, 47844, 7, 354, 2954, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 330, 2736, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 9688, 62, 49625, 2902, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 778, 9107, 86, 2926, 628, 220, 220, 220, 825, 304, 1659, 62, 47844, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 34, 4262, 618, 262, 584, 886, 286, 262, 1877, 12, 5715, 4269, 198, 220, 220, 220, 220, 220, 220, 220, 474, 395, 2063, 12, 20225, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1002, 428, 5860, 257, 3991, 1988, 357, 8201, 8377, 828, 262, 4839, 198, 220, 220, 220, 220, 220, 220, 220, 481, 1969, 2346, 13, 220, 1002, 340, 5860, 257, 2081, 1988, 11, 9605, 262, 198, 220, 220, 220, 220, 220, 220, 220, 4839, 474, 395, 510, 284, 262, 8435, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 7500, 10205, 11110, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 26268, 13, 1136, 62, 24442, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 24442, 7203, 4, 81, 2722, 412, 19238, 1600, 2116, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 48530, 929, 62, 10247, 2676, 7, 32048, 4965, 316, 12331, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 299, 494, 2116, 13557, 259, 62, 4993, 32431, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1394, 62, 9654, 796, 2116, 13557, 1324, 62, 11235, 4668, 13, 68, 1659, 62, 47844, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 1394, 62, 9654, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 43917, 10786, 7783, 278, 2081, 1976, 304, 1659, 62, 47844, 3419, 705, 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, 705, 10134, 645, 1245, 618, 1262, 264, 6649, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 266, 62, 7204, 129, 226, 27399, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7645, 634, 13, 19836, 3419, 628, 220, 220, 220, 825, 4808, 1136, 62, 26086, 62, 10951, 7, 944, 11, 1438, 11, 4277, 28, 30403, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 1438, 266, 2116, 13557, 26086, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 2116, 13557, 26086, 58, 3672, 60, 198, 220, 220, 220, 220, 220, 220, 220, 287, 330, 2736, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 2116, 13557, 7645, 634, 13, 1136, 62, 26086, 62, 10951, 7, 3672, 11, 4277, 8, 628, 220, 220, 220, 825, 4808, 9688, 62, 49625, 2902, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 259, 62, 49625, 2902, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 259, 62, 49625, 2902, 796, 350, 1831, 6814, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 13564, 62, 1324, 7890, 7, 65, 7061, 8, 628, 220, 220, 220, 825, 4808, 13564, 62, 1324, 7890, 7, 944, 11, 1366, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 13564, 62, 1891, 6404, 13, 33295, 19510, 7890, 11, 657, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 13564, 62, 22252, 62, 7857, 15853, 18896, 7, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 14681, 62, 13564, 62, 1891, 6404, 3419, 628, 220, 220, 220, 825, 4808, 9688, 62, 4993, 32431, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 26268, 13, 1136, 62, 24442, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 24442, 7203, 4, 81, 4940, 25952, 42231, 1600, 2116, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 4993, 32431, 62, 9688, 62, 2435, 796, 2116, 13557, 26268, 13, 2435, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 287, 330, 2736, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 4993, 32431, 62, 9688, 62, 2435, 796, 8377, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 259, 62, 4993, 32431, 796, 350, 1831, 6814, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 357, 65, 6, 3256, 352, 8, 474, 395, 257, 2041, 1988, 266, 4808, 14681, 62, 13564, 62, 1891, 6404, 3419, 284, 466, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 262, 25952, 42231, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 13564, 62, 1891, 6404, 13, 33295, 19510, 65, 6, 3256, 352, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 26268, 13, 13345, 62, 36194, 7, 944, 13557, 14681, 62, 13564, 62, 1891, 6404, 8, 628, 220, 220, 220, 825, 4808, 261, 62, 4993, 32431, 62, 20751, 7, 944, 11, 42231, 62, 41194, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 259, 62, 4993, 32431, 796, 399, 494, 79, 1831, 6814, 628, 220, 220, 220, 220, 220, 220, 220, 264, 6649, 26801, 796, 2116, 13557, 45163, 34360, 13, 45163, 62, 15252, 198, 220, 220, 220, 220, 220, 220, 220, 7500, 10205, 11110, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 42231, 62, 41194, 474, 395, 299, 494, 8377, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24573, 11952, 129, 249, 42231, 62, 41194, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 613, 2798, 861, 796, 264, 6649, 26801, 13, 1136, 431, 2798, 861, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 299, 494, 468, 35226, 7, 944, 13557, 45163, 22866, 11, 705, 9122, 62, 4774, 3672, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 49899, 2583, 3672, 11223, 129, 120, 43733, 9167, 11, 11361, 513, 13, 19, 10, 3544, 2198, 62, 4774, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 393, 1031, 8794, 262, 2583, 3672, 266, 466, 62, 4993, 32431, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 357, 944, 13557, 15388, 62, 4774, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 393, 1031, 2116, 13557, 45163, 22866, 13, 332, 1958, 62, 14171, 14512, 264, 6649, 13, 34, 17395, 62, 45, 11651, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 6649, 13, 15699, 62, 4774, 3672, 7, 431, 2798, 861, 11, 2116, 13557, 15388, 62, 4774, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 266, 88, 73, 128, 227, 18504, 7357, 7308, 16922, 474, 25496, 2859, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 26268, 13, 1136, 62, 24442, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 318, 39098, 7, 41194, 11, 264, 6649, 13, 37608, 22460, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 43917, 7203, 4, 81, 25, 25952, 42231, 4054, 366, 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, 366, 261, 45505, 262, 10703, 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, 2116, 11, 2859, 62, 10951, 28, 47, 1831, 6814, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 330, 2736, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 43917, 7203, 4, 81, 25, 25952, 42231, 4054, 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, 2116, 11, 2859, 62, 10951, 28, 47, 1831, 6814, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7645, 634, 13, 19836, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 318, 39098, 7, 41194, 11, 35528, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 48530, 929, 62, 10247, 2676, 7, 41194, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 330, 2736, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24573, 11952, 129, 249, 628, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 26268, 13, 1136, 62, 24442, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 83, 796, 2116, 13557, 26268, 13, 2435, 3419, 532, 2116, 13557, 4993, 32431, 62, 9688, 62, 2435, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 24442, 7203, 4, 81, 25, 25952, 42231, 1718, 4064, 13, 16, 69, 13845, 1600, 2116, 11, 288, 83, 1635, 352, 68, 18, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 3060, 3131, 7508, 326, 4329, 1695, 706, 42231, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 26086, 13, 19119, 7, 431, 2798, 861, 28, 431, 2798, 861, 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, 38012, 28, 45163, 26801, 13, 66, 10803, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19794, 28, 45163, 26801, 13, 5589, 2234, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 1324, 62, 11235, 4668, 13, 38659, 62, 9727, 7, 944, 13557, 1324, 62, 7645, 634, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 48530, 929, 62, 10247, 2676, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 29891, 62, 27718, 796, 350, 1831, 6814, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 554, 1339, 4839, 13, 13564, 3419, 373, 1541, 1444, 13, 2094, 470, 869, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2729, 265, 306, 4808, 14681, 62, 13564, 62, 1891, 6404, 22784, 475, 7269, 340, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4808, 261, 62, 4993, 32431, 62, 20751, 3419, 460, 307, 1444, 20762, 422, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4808, 14681, 62, 13564, 62, 1891, 6404, 22784, 393, 1031, 4808, 14681, 62, 13564, 62, 1891, 6404, 3419, 474, 395, 299, 494, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 302, 298, 5250, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 26268, 13, 13345, 62, 36194, 7, 944, 13557, 14681, 62, 13564, 62, 1891, 6404, 8, 628, 220, 220, 220, 825, 4808, 14681, 62, 13564, 62, 1891, 6404, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 9993, 284, 787, 4371, 319, 262, 3551, 38780, 13, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 7645, 634, 474, 395, 8377, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 18351, 10205, 38325, 628, 220, 220, 220, 220, 220, 220, 220, 7500, 10205, 11110, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 5031, 1312, 266, 2837, 7, 11925, 7, 944, 13557, 13564, 62, 1891, 6404, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 11, 11677, 796, 2116, 13557, 13564, 62, 1891, 6404, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 1366, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 11, 11677, 796, 2116, 13557, 45163, 34360, 13, 12363, 62, 1324, 7890, 7, 7890, 11, 11677, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 435, 2127, 62, 259, 330, 2736, 73, 11677, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 796, 2116, 13557, 45163, 34360, 13, 4598, 62, 4993, 32431, 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, 2116, 13557, 261, 62, 4993, 32431, 62, 20751, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11677, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 330, 2736, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37786, 335, 1045, 796, 2116, 13557, 45163, 34360, 13, 49625, 2902, 7, 944, 13557, 20311, 1096, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11677, 796, 352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 5031, 16058, 266, 37786, 335, 1045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7645, 634, 13, 13564, 7, 354, 2954, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 11677, 1279, 18896, 7, 7890, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 13564, 62, 1891, 6404, 58, 15, 60, 796, 357, 7890, 11, 11677, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 317, 1790, 3551, 1724, 326, 257, 3551, 474, 395, 10226, 319, 257, 1100, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 775, 761, 284, 7139, 3555, 11223, 129, 120, 43733, 340, 474, 395, 24487, 0, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 2116, 13557, 45163, 34360, 13, 31227, 62, 824, 335, 1045, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 7645, 634, 13557, 8957, 1484, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7645, 634, 13, 411, 2454, 62, 25782, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 778, 9107, 86, 2926, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1052, 2104, 16058, 1976, 262, 38780, 373, 13686, 13, 775, 460, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 12233, 340, 393, 1031, 4646, 262, 11660, 11876, 2546, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 514, 84, 129, 226, 2116, 13557, 13564, 62, 1891, 6404, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 13564, 62, 22252, 62, 7857, 48185, 18896, 7, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 266, 88, 73, 128, 227, 18504, 7357, 7308, 16922, 474, 25496, 2859, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 259, 62, 4993, 32431, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 7308, 3109, 11755, 481, 307, 302, 12, 49309, 266, 4808, 261, 62, 4993, 32431, 62, 20751, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 261, 62, 4993, 32431, 62, 20751, 7, 41194, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 330, 2736, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 69, 10254, 62, 18224, 7, 41194, 11, 705, 37, 10254, 4049, 319, 25952, 4839, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 299, 494, 318, 39098, 7, 41194, 11, 35528, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 7308, 16922, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24573, 11952, 129, 249, 628, 220, 220, 220, 825, 4808, 69, 10254, 62, 18224, 7, 944, 11, 2859, 11, 3275, 11639, 37, 10254, 4049, 319, 4839, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 10358, 307, 1444, 1976, 6631, 21360, 691, 13, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 318, 39098, 7, 41194, 11, 357, 15783, 3464, 47, 3757, 12331, 11, 26923, 4965, 316, 12331, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 26268, 13, 1136, 62, 24442, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 24442, 7203, 4, 81, 25, 4064, 82, 1600, 2116, 11, 3275, 11, 2859, 62, 10951, 28, 47, 1831, 6814, 8, 198, 220, 220, 220, 220, 220, 220, 220, 287, 330, 2736, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 26268, 13, 13345, 62, 1069, 4516, 62, 30281, 15090, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 20500, 10354, 3275, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1069, 4516, 10354, 2859, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7645, 634, 10354, 2116, 13557, 7645, 634, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 11235, 4668, 10354, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32092, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 7645, 634, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7645, 634, 13557, 3174, 62, 19836, 7, 41194, 8, 628, 220, 220, 220, 825, 4808, 20311, 1096, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 7645, 634, 474, 395, 299, 494, 8377, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7645, 634, 13, 19836, 3419, 628, 220, 220, 220, 825, 4808, 397, 419, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 11223, 129, 120, 43733, 2116, 13557, 7645, 634, 474, 395, 299, 494, 8377, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7500, 10205, 11110, 73, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7645, 634, 13, 397, 419, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 62, 7204, 129, 226, 27399, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 20311, 1096, 3419, 198 ]
2.105353
10,014
from .RegSearch import RegSearch
[ 6738, 764, 8081, 18243, 1330, 3310, 18243, 628 ]
4.25
8
#! /usr/bin/env python # -*- coding: utf8 -*- import mock import pytest import sys from os import path sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) ) import bemenu_extended as d menu = d.bemenu()
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 11748, 15290, 198, 11748, 12972, 9288, 198, 11748, 25064, 198, 6738, 28686, 1330, 3108, 198, 198, 17597, 13, 6978, 13, 33295, 7, 3108, 13, 15908, 3672, 7, 3108, 13, 15908, 3672, 7, 3108, 13, 397, 2777, 776, 7, 834, 7753, 834, 8, 1267, 1267, 1267, 198, 11748, 307, 26272, 62, 2302, 1631, 355, 288, 198, 198, 26272, 796, 288, 13, 65, 8952, 84, 3419, 628 ]
2.550562
89
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from math import pi print(ring_area(5, 3))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 6738, 10688, 1330, 31028, 201, 198, 201, 198, 201, 198, 201, 198, 4798, 7, 1806, 62, 20337, 7, 20, 11, 513, 4008, 201, 198 ]
1.961538
52
#!/usr/bin/env python # -*- coding:Utf-8 -*- """The ants module entry point. """ import config import ant import farm import mine import playground import display import logging import random import utils __author__ = "Doug Le Tough" __copyright__ = "Copyright 2017, Doug Le Tough" __credits__ = ["Doug Le Tough",] __license__ = "WTFPL" __version__ = "1.0.0" __maintainer__ = "Doug Le Tough" __email__ = "[email protected]" __status__ = "Testing" ################################################################################################################### # App ################################################################################################################### if __name__ == '__main__': # The display disp = display.Display(config.PLAYGROUND_SIZE, config.FARM_INITIAL_FOOD_STOCK) # The FIFO queue to communicate with display display_q = disp.get_display_queue() # The queue needed to have response back from display to playground response_q = disp.get_response_queue() # Create play ground ground = playground.Playground(config.PLAYGROUND_SIZE, response_q) # Create a food mine mine_position = (int(config.FARM_POS[0] + 50), int(config.FARM_POS[1] + 50)) mine = mine.Mine(mine_position, config.MINE_RADIUS) # Add the mine to the playground ground.add_mine(mine) # Display the mine display_q.put(mine.to_dict()) # Create the farm farm = farm.Farm(ground, display_q, config.FARM_POS, config.FARM_GROWTH_RATE, config.FARM_INITIAL_FOOD_STOCK, config.FARM_SURVIVAL_TIMEOUT, config.FARM_RADIUS) # Add farm to the playground ground.add_farm(farm) # Display farm display_q.put(farm.to_dict()) # Start the farm own process farm.start() # Start the display own process disp.start()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 18274, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 464, 27842, 8265, 5726, 966, 13, 198, 37811, 198, 198, 11748, 4566, 198, 11748, 1885, 198, 11748, 5318, 198, 11748, 6164, 198, 11748, 24817, 198, 11748, 3359, 198, 11748, 18931, 198, 11748, 4738, 198, 11748, 3384, 4487, 198, 198, 834, 9800, 834, 796, 366, 42297, 1004, 37223, 1, 198, 834, 22163, 4766, 834, 796, 366, 15269, 2177, 11, 15115, 1004, 37223, 1, 198, 834, 66, 20696, 834, 796, 14631, 42297, 1004, 37223, 1600, 60, 198, 834, 43085, 834, 796, 366, 39386, 5837, 43, 1, 198, 834, 9641, 834, 796, 366, 16, 13, 15, 13, 15, 1, 198, 834, 76, 2913, 10613, 834, 796, 366, 42297, 1004, 37223, 1, 198, 834, 12888, 834, 796, 366, 67, 20805, 13, 1616, 619, 31, 5787, 13, 8310, 1, 198, 834, 13376, 834, 796, 366, 44154, 1, 198, 198, 29113, 29113, 29113, 14468, 21017, 198, 2, 2034, 198, 29113, 29113, 29113, 14468, 21017, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 1303, 383, 3359, 198, 220, 4596, 796, 3359, 13, 23114, 7, 11250, 13, 31519, 46025, 62, 33489, 11, 4566, 13, 37, 33456, 62, 1268, 2043, 12576, 62, 6080, 3727, 62, 2257, 11290, 8, 198, 220, 1303, 383, 376, 5064, 46, 16834, 284, 10996, 351, 3359, 198, 220, 3359, 62, 80, 796, 4596, 13, 1136, 62, 13812, 62, 36560, 3419, 198, 220, 1303, 383, 16834, 2622, 284, 423, 2882, 736, 422, 3359, 284, 24817, 198, 220, 2882, 62, 80, 796, 4596, 13, 1136, 62, 26209, 62, 36560, 3419, 198, 220, 1303, 13610, 711, 2323, 198, 220, 2323, 796, 24817, 13, 11002, 2833, 7, 11250, 13, 31519, 46025, 62, 33489, 11, 2882, 62, 80, 8, 198, 220, 1303, 13610, 257, 2057, 6164, 198, 220, 6164, 62, 9150, 796, 357, 600, 7, 11250, 13, 37, 33456, 62, 37997, 58, 15, 60, 1343, 2026, 828, 493, 7, 11250, 13, 37, 33456, 62, 37997, 58, 16, 60, 1343, 2026, 4008, 198, 220, 6164, 796, 6164, 13, 24461, 7, 3810, 62, 9150, 11, 4566, 13, 44, 8881, 62, 49, 2885, 40, 2937, 8, 198, 220, 1303, 3060, 262, 6164, 284, 262, 24817, 198, 220, 2323, 13, 2860, 62, 3810, 7, 3810, 8, 198, 220, 1303, 16531, 262, 6164, 198, 220, 3359, 62, 80, 13, 1996, 7, 3810, 13, 1462, 62, 11600, 28955, 198, 220, 1303, 13610, 262, 5318, 198, 220, 5318, 796, 5318, 13, 48412, 7, 2833, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3359, 62, 80, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4566, 13, 37, 33456, 62, 37997, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4566, 13, 37, 33456, 62, 10761, 3913, 4221, 62, 49, 6158, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4566, 13, 37, 33456, 62, 1268, 2043, 12576, 62, 6080, 3727, 62, 2257, 11290, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4566, 13, 37, 33456, 62, 50, 4261, 53, 3824, 1847, 62, 34694, 12425, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4566, 13, 37, 33456, 62, 49, 2885, 40, 2937, 8, 198, 220, 1303, 3060, 5318, 284, 262, 24817, 198, 220, 2323, 13, 2860, 62, 43323, 7, 43323, 8, 198, 220, 1303, 16531, 5318, 198, 220, 3359, 62, 80, 13, 1996, 7, 43323, 13, 1462, 62, 11600, 28955, 198, 220, 1303, 7253, 262, 5318, 898, 1429, 198, 220, 5318, 13, 9688, 3419, 198, 220, 1303, 7253, 262, 3359, 898, 1429, 198, 220, 4596, 13, 9688, 3419, 198 ]
2.827534
661
from math import sin, cos, tan, radians a = radians(float(input('informe o ângulo: '))) print(' o seno é: {:.2f}\n o cosseno é: {:.2f}\n a tangente é: {:.2f}'.format(sin(a), cos(a), tan(a)))
[ 6738, 10688, 1330, 7813, 11, 8615, 11, 25706, 11, 2511, 1547, 201, 198, 64, 796, 2511, 1547, 7, 22468, 7, 15414, 10786, 259, 687, 68, 267, 6184, 95, 782, 43348, 25, 705, 22305, 201, 198, 4798, 10786, 267, 3308, 78, 38251, 25, 46110, 13, 17, 69, 32239, 77, 267, 269, 793, 23397, 38251, 25, 46110, 13, 17, 69, 32239, 77, 257, 13875, 21872, 38251, 25, 46110, 13, 17, 69, 92, 4458, 18982, 7, 31369, 7, 64, 828, 8615, 7, 64, 828, 25706, 7, 64, 22305, 201, 198 ]
2.229885
87
from collections import * def collections_nametuple(): """ namedtuple是一个函数,它用来创建一个自定义的tuple对象,并且规定了tuple元素的个数,并可以用属性而不是索引来引用tuple的某个元素。 """ Point = namedtuple('Point', ['x', 'y']) p = Point(1, 2) print('p.x: ' + str(p.x)) print('isInstance(p, Point): ' + str(isinstance(p, Point))) print('isInstance(p, tuple): ' + str(isinstance(p, tuple))) # Point对象是tuple的一种子类 Circle = namedtuple('Circle', ['x', 'y', 'r']) circle = Circle(2, 2, 1) print('circle.r: ' + str(circle.r)) def collections_counter(): """ Counter是一个简单的计数器 实际上是dict的一个子类,结果可以看出,字符'g'、'm'、'r'各出现了两次,其他字符各出现了一次 """ c = Counter() for i in 'Programming': c[i] += 1 print(c) for i, c in c.most_common(): # most_common这个列表中的每个元素都返回一个元祖,一组有序唯一值 print(i, c) print('\n') def collections_defaultdict(): """ 注意默认值是调用函数返回的,而函数在创建defaultdict对象时传入。 """ dd = defaultdict(lambda: 'N/A') dd[0] = 1 print(dd[0]) # 存在 print(dd[1]) # 不存在,返回默认值 print(dd[2]) # 不存在,返回默认值 collections_nametuple() collections_ordereddict() collections_counter() collections_defaultdict()
[ 6738, 17268, 1330, 1635, 628, 198, 4299, 17268, 62, 7402, 316, 29291, 33529, 198, 197, 37811, 198, 197, 13190, 83, 29291, 42468, 31660, 10310, 103, 49035, 121, 46763, 108, 171, 120, 234, 22522, 225, 18796, 101, 30266, 98, 26344, 249, 161, 119, 118, 31660, 10310, 103, 164, 229, 103, 22522, 248, 20046, 231, 21410, 83, 29291, 43380, 117, 164, 109, 94, 171, 120, 234, 33176, 114, 10310, 242, 164, 100, 226, 22522, 248, 12859, 228, 83, 29291, 17739, 225, 163, 112, 254, 21410, 10310, 103, 46763, 108, 171, 120, 234, 33176, 114, 20998, 107, 20015, 98, 18796, 101, 161, 109, 252, 45250, 100, 32003, 234, 38834, 42468, 163, 112, 95, 28156, 243, 30266, 98, 28156, 243, 18796, 101, 83, 29291, 21410, 162, 253, 238, 10310, 103, 17739, 225, 163, 112, 254, 16764, 198, 197, 37811, 198, 197, 12727, 796, 3706, 83, 29291, 10786, 12727, 3256, 37250, 87, 3256, 705, 88, 6, 12962, 198, 197, 79, 796, 6252, 7, 16, 11, 362, 8, 198, 197, 4798, 10786, 79, 13, 87, 25, 705, 1343, 965, 7, 79, 13, 87, 4008, 198, 197, 4798, 10786, 271, 33384, 7, 79, 11, 6252, 2599, 705, 1343, 965, 7, 271, 39098, 7, 79, 11, 6252, 22305, 198, 197, 4798, 10786, 271, 33384, 7, 79, 11, 46545, 2599, 705, 1343, 965, 7, 271, 39098, 7, 79, 11, 46545, 22305, 220, 1303, 6252, 43380, 117, 164, 109, 94, 42468, 83, 29291, 21410, 31660, 163, 100, 235, 36310, 163, 109, 119, 628, 197, 31560, 293, 796, 3706, 83, 29291, 10786, 31560, 293, 3256, 37250, 87, 3256, 705, 88, 3256, 705, 81, 6, 12962, 198, 197, 45597, 796, 16291, 7, 17, 11, 362, 11, 352, 8, 198, 197, 4798, 10786, 45597, 13, 81, 25, 705, 1343, 965, 7, 45597, 13, 81, 4008, 628, 198, 198, 4299, 17268, 62, 24588, 33529, 198, 197, 37811, 198, 197, 31694, 42468, 31660, 10310, 103, 163, 106, 222, 39355, 243, 21410, 164, 106, 94, 46763, 108, 161, 247, 101, 198, 197, 22522, 252, 165, 247, 227, 41468, 42468, 11600, 21410, 31660, 10310, 103, 36310, 163, 109, 119, 171, 120, 234, 163, 119, 241, 162, 252, 250, 20998, 107, 20015, 98, 40367, 233, 49035, 118, 171, 120, 234, 27764, 245, 163, 105, 99, 6, 70, 6, 23513, 6, 76, 6, 23513, 6, 81, 6, 28938, 226, 49035, 118, 163, 236, 108, 12859, 228, 10310, 97, 162, 105, 94, 171, 120, 234, 17739, 114, 20015, 244, 27764, 245, 163, 105, 99, 28938, 226, 49035, 118, 163, 236, 108, 12859, 228, 31660, 162, 105, 94, 198, 197, 37811, 198, 197, 66, 796, 15034, 3419, 198, 197, 1640, 1312, 287, 705, 15167, 2229, 10354, 198, 197, 197, 66, 58, 72, 60, 15853, 352, 198, 197, 4798, 7, 66, 8, 198, 197, 1640, 1312, 11, 269, 287, 269, 13, 1712, 62, 11321, 33529, 220, 1303, 749, 62, 11321, 32573, 247, 10310, 103, 26344, 245, 26193, 101, 40792, 21410, 162, 107, 237, 10310, 103, 17739, 225, 163, 112, 254, 32849, 121, 32573, 242, 32368, 252, 31660, 10310, 103, 17739, 225, 163, 98, 244, 171, 120, 234, 31660, 163, 119, 226, 17312, 231, 41753, 237, 161, 242, 107, 31660, 161, 222, 120, 198, 197, 197, 4798, 7, 72, 11, 269, 8, 198, 197, 4798, 10786, 59, 77, 11537, 628, 198, 4299, 17268, 62, 12286, 11600, 33529, 198, 197, 37811, 198, 197, 37345, 101, 35707, 237, 165, 119, 246, 164, 106, 97, 161, 222, 120, 42468, 164, 108, 225, 18796, 101, 49035, 121, 46763, 108, 32573, 242, 32368, 252, 21410, 171, 120, 234, 32003, 234, 49035, 121, 46763, 108, 28839, 101, 26344, 249, 161, 119, 118, 12286, 11600, 43380, 117, 164, 109, 94, 33768, 114, 27670, 254, 17739, 98, 16764, 198, 197, 37811, 198, 197, 1860, 796, 4277, 11600, 7, 50033, 25, 705, 45, 14, 32, 11537, 198, 197, 1860, 58, 15, 60, 796, 352, 198, 197, 4798, 7, 1860, 58, 15, 12962, 220, 1303, 10263, 255, 246, 28839, 101, 198, 197, 4798, 7, 1860, 58, 16, 12962, 220, 1303, 220, 38834, 27764, 246, 28839, 101, 171, 120, 234, 32573, 242, 32368, 252, 165, 119, 246, 164, 106, 97, 161, 222, 120, 198, 197, 4798, 7, 1860, 58, 17, 12962, 220, 1303, 220, 38834, 27764, 246, 28839, 101, 171, 120, 234, 32573, 242, 32368, 252, 165, 119, 246, 164, 106, 97, 161, 222, 120, 628, 198, 4033, 26448, 62, 7402, 316, 29291, 3419, 198, 4033, 26448, 62, 24071, 11600, 3419, 198, 4033, 26448, 62, 24588, 3419, 198, 4033, 26448, 62, 12286, 11600, 3419, 198 ]
1.425101
741
from flask_restx import Model, fields competitorModel = Model( "Competitor", { "id": fields.Integer( description="ID of the Competitor", example=7, ), "name": fields.String( description="Name of the Competitor", required=True, example="Fred Jones", ), "ageClass": fields.String( description="Age Class of the Competitor", example="M16", default="" ), "club": fields.String( description="Club of the Competitor", example="INT", default="" ), "course": fields.String( description="Course of the Competitor", example="Long", required=True ), "league": fields.String( description="League of the Competitor", example="(not) Sprintelope 2020", required=True, ), }, ) competitorMergeModel = Model( "Competitor Merge", { "competitorKeep": fields.Integer( description="The ID of the Competitor to Keep and Transfer Result To", example=7, ), "competitorMerge": fields.Integer( description="The ID of the Competitior to Delete", example=9 ), }, )
[ 6738, 42903, 62, 2118, 87, 1330, 9104, 11, 7032, 198, 198, 5589, 316, 2072, 17633, 796, 9104, 7, 198, 220, 220, 220, 366, 7293, 316, 2072, 1600, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 312, 1298, 7032, 13, 46541, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 2389, 286, 262, 38558, 2072, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1672, 28, 22, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 366, 3672, 1298, 7032, 13, 10100, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 5376, 286, 262, 38558, 2072, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2672, 28, 17821, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1672, 2625, 30847, 5437, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 366, 496, 9487, 1298, 7032, 13, 10100, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 23396, 5016, 286, 262, 38558, 2072, 1600, 1672, 2625, 44, 1433, 1600, 4277, 33151, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 366, 18664, 1298, 7032, 13, 10100, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 42350, 286, 262, 38558, 2072, 1600, 1672, 2625, 12394, 1600, 4277, 33151, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 366, 17319, 1298, 7032, 13, 10100, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 49046, 286, 262, 38558, 2072, 1600, 1672, 2625, 14617, 1600, 2672, 28, 17821, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 366, 19316, 1298, 7032, 13, 10100, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 24623, 286, 262, 38558, 2072, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1672, 2625, 7, 1662, 8, 23178, 47329, 12131, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2672, 28, 17821, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 8964, 198, 8, 198, 198, 5589, 316, 2072, 13102, 469, 17633, 796, 9104, 7, 198, 220, 220, 220, 366, 7293, 316, 2072, 39407, 1600, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 5589, 316, 2072, 15597, 1298, 7032, 13, 46541, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 464, 4522, 286, 262, 38558, 2072, 284, 9175, 290, 20558, 25414, 1675, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1672, 28, 22, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 366, 5589, 316, 2072, 13102, 469, 1298, 7032, 13, 46541, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 464, 4522, 286, 262, 38558, 270, 1504, 284, 23520, 1600, 1672, 28, 24, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 8964, 198, 8, 198 ]
2.207018
570
from .my_bot import My_Bot if __name__ == "__main__": My_Bot().run()
[ 6738, 764, 1820, 62, 13645, 1330, 2011, 62, 20630, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2011, 62, 20630, 22446, 5143, 3419, 198 ]
2.3125
32
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from database_setup import Country, Base, Missile, User engine = create_engine('sqlite:///lots_of_missiles.db') # Bind the engine to the metadata of the Base class so that the # declaratives can be accessed through a DBSession instance Base.metadata.bind = engine DBSession = sessionmaker(bind=engine) # A DBSession() instance establishes all conversations with the database # and represents a "staging zone" for all the objects loaded into the # database session object. Any change made against the objects in the # session won't be persisted into the database until you call # session.commit(). If you're not happy about the changes, you can # revert all of them back to the last commit by calling # session.rollback() session = DBSession() # create a dummy user user1 = User(name="Akshay Menon", email="[email protected]", picture='http://lorempixel.com/200/200/people/1') session.add(user1) session.commit() user2 = User(name="Sharath Kumar", email="[email protected]", picture='http://lorempixel.com/200/200/people/2') session.add(user2) session.commit() user3 = User(name="Mithun Airani", email="[email protected]", picture='http://lorempixel.com/200/200/people/3') session.add(user3) session.commit() # Creating country and its missiles firstCountry = Country(name="India", user_id=1) session.add(firstCountry) session.commit() missile1 = Missile(name="Akash", description="Surface to air missile.", country=firstCountry, link="https://en.wikipedia.org/wiki/Akash_(missile)", user_id=1) session.add(missile1) session.commit() missile2 = Missile(name="Nag", description="Anti tank missile.", country=firstCountry, link="https://en.wikipedia.org/wiki/Nag_(missile)", user_id=2) session.add(missile2) session.commit() missile3 = Missile(name="Amogha Missile", description="Anti tank missile.(under development)", link="https://en.wikipedia.org/wiki/Amogha_missile", country=firstCountry, user_id=1) session.add(missile3) session.commit() missile4 = Missile(name="Prithvi-I", description="surface to surface Ballistic Missile", link="https://en.wikipedia.org/wiki/Prithvi_(missile)#Prithvi_I", country=firstCountry, user_id=3) session.add(missile4) session.commit() missile5 = Missile(name="Prithvi-II", description="surface to surface Ballistic Missile", link="https://en.wikipedia.org/wiki/Prithvi_(missile)#Prithvi_II", country=firstCountry, user_id=1) session.add(missile5) session.commit() missile6 = Missile(name="Prithvi-III", description="surface to surface Ballistic Missile", link="https://en.wikipedia.org/wiki/Prithvi_(missile)#Prithvi_III", country=firstCountry, user_id=2) session.add(missile6) session.commit() # Second Country and its missiles secondCountry = Country(name="United Kingdom", user_id=1) session.add(secondCountry) session.commit() missile1 = Missile(name="Bloodhound", description="Surface to air missile.", country=secondCountry, link="https://en.wikipedia.org/wiki/Bristol_Bloodhound", user_id=3) session.add(missile1) session.commit() missile2 = Missile(name="Blowpipe", description="Man portable Surface-to-air", country=secondCountry, link="https://en.wikipedia.org/wiki/Blowpipe_missile", user_id=1) session.add(missile2) session.commit() missile3 = Missile(name="Blue Steel", description="Nuclear Stand Off Bomb", link="https://en.wikipedia.org/wiki/Blue_Steel_missile", country=secondCountry, user_id=2) session.add(missile3) session.commit() missile4 = Missile(name="Fairy Stooge", description="anti-ship missile", link="https://en.wikipedia.org/wiki/Fairey_Stooge", country=secondCountry, user_id=1) session.add(missile4) session.commit() # Third Country and its missiles. thirdCountry = Country(name="Russia", user_id=1) session.add(thirdCountry) session.commit() missile5 = Missile(name="RT-21 Temp 2S", description="mobile intercontinental ballistic missile (SS-16 Sinner)", link="https://en.wikipedia.org/wiki/RT-21_Temp_2S", country=thirdCountry, user_id=3) session.add(missile5) session.commit() missile6 = Missile(name="RT-21M Pioner", description="mobile medium range ballistic missile (SS-20 Saber)", link="https://en.wikipedia.org/wiki/RT-21M_Pioner", country=thirdCountry, user_id=3) session.add(missile6) session.commit() missile5 = Missile(name="S-300P missille", description="(SA-10 Grumble/SA-N-6/SA-20 Gargoyle/SA-X-21 Triumf)", link="https://en.wikipedia.org/wiki/SA-10_Grumble", country=thirdCountry, user_id=1) session.add(missile5) session.commit() missile6 = Missile(name="UR-100N", description=" intercontinental ballistic missile (SS-19 Stiletto)", link="https://en.wikipedia.org/wiki/UR-100N", country=thirdCountry, user_id=1) session.add(missile6) session.commit() session.commit()
[ 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 6246, 10297, 198, 198, 6738, 6831, 62, 40406, 1330, 12946, 11, 7308, 11, 25350, 11, 11787, 198, 198, 18392, 796, 2251, 62, 18392, 10786, 25410, 578, 1378, 14, 75, 1747, 62, 1659, 62, 3927, 2915, 13, 9945, 11537, 198, 2, 41211, 262, 3113, 284, 262, 20150, 286, 262, 7308, 1398, 523, 326, 262, 198, 2, 2377, 283, 2929, 460, 307, 17535, 832, 257, 360, 4462, 2521, 4554, 198, 14881, 13, 38993, 13, 21653, 796, 3113, 198, 198, 35, 4462, 2521, 796, 6246, 10297, 7, 21653, 28, 18392, 8, 198, 2, 317, 360, 4462, 2521, 3419, 4554, 30742, 477, 10275, 351, 262, 6831, 198, 2, 290, 6870, 257, 366, 301, 3039, 6516, 1, 329, 477, 262, 5563, 9639, 656, 262, 198, 2, 6831, 6246, 2134, 13, 4377, 1487, 925, 1028, 262, 5563, 287, 262, 198, 2, 6246, 1839, 470, 307, 33264, 656, 262, 6831, 1566, 345, 869, 198, 2, 6246, 13, 41509, 22446, 1002, 345, 821, 407, 3772, 546, 262, 2458, 11, 345, 460, 198, 2, 34052, 477, 286, 606, 736, 284, 262, 938, 4589, 416, 4585, 198, 2, 6246, 13, 2487, 1891, 3419, 198, 29891, 796, 360, 4462, 2521, 3419, 198, 198, 2, 2251, 257, 31548, 2836, 198, 7220, 16, 796, 11787, 7, 3672, 2625, 32, 50133, 323, 6065, 261, 1600, 3053, 2625, 76, 461, 1477, 323, 31, 82, 28030, 1456, 13, 785, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4286, 11639, 4023, 1378, 31131, 3149, 7168, 13, 785, 14, 2167, 14, 2167, 14, 15332, 14, 16, 11537, 198, 29891, 13, 2860, 7, 7220, 16, 8, 198, 29891, 13, 41509, 3419, 198, 198, 7220, 17, 796, 11787, 7, 3672, 2625, 40201, 776, 26105, 1600, 3053, 2625, 1477, 283, 776, 31, 74, 44844, 13, 785, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4286, 11639, 4023, 1378, 31131, 3149, 7168, 13, 785, 14, 2167, 14, 2167, 14, 15332, 14, 17, 11537, 198, 29891, 13, 2860, 7, 7220, 17, 8, 198, 29891, 13, 41509, 3419, 198, 198, 7220, 18, 796, 11787, 7, 3672, 2625, 44, 342, 403, 3701, 3216, 1600, 3053, 2625, 22947, 403, 31, 11195, 13, 785, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4286, 11639, 4023, 1378, 31131, 3149, 7168, 13, 785, 14, 2167, 14, 2167, 14, 15332, 14, 18, 11537, 198, 29891, 13, 2860, 7, 7220, 18, 8, 198, 29891, 13, 41509, 3419, 198, 198, 2, 30481, 1499, 290, 663, 12798, 198, 11085, 33921, 796, 12946, 7, 3672, 2625, 21569, 1600, 2836, 62, 312, 28, 16, 8, 198, 198, 29891, 13, 2860, 7, 11085, 33921, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 16, 796, 25350, 7, 3672, 2625, 33901, 1077, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 14214, 2550, 284, 1633, 10105, 33283, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 11085, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 33901, 1077, 41052, 3927, 576, 42501, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 16, 8, 198, 29891, 13, 2860, 7, 3927, 576, 16, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 17, 796, 25350, 7, 3672, 2625, 45, 363, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 28795, 6873, 10105, 33283, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 11085, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 45, 363, 41052, 3927, 576, 42501, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 17, 8, 198, 29891, 13, 2860, 7, 3927, 576, 17, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 18, 796, 25350, 7, 3672, 2625, 5840, 78, 46090, 25350, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 28795, 6873, 10105, 12195, 4625, 2478, 42501, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 5840, 78, 46090, 62, 3927, 576, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 11085, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 16, 8, 198, 29891, 13, 2860, 7, 3927, 576, 18, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 19, 796, 25350, 7, 3672, 2625, 6836, 342, 8903, 12, 40, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 42029, 284, 4417, 48738, 25350, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 6836, 342, 8903, 41052, 3927, 576, 8, 2, 6836, 342, 8903, 62, 40, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 11085, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 18, 8, 198, 29891, 13, 2860, 7, 3927, 576, 19, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 20, 796, 25350, 7, 3672, 2625, 6836, 342, 8903, 12, 3978, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 42029, 284, 4417, 48738, 25350, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 6836, 342, 8903, 41052, 3927, 576, 8, 2, 6836, 342, 8903, 62, 3978, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 11085, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 16, 8, 198, 29891, 13, 2860, 7, 3927, 576, 20, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 21, 796, 25350, 7, 3672, 2625, 6836, 342, 8903, 12, 10855, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 42029, 284, 4417, 48738, 25350, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 6836, 342, 8903, 41052, 3927, 576, 8, 2, 6836, 342, 8903, 62, 10855, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 11085, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 17, 8, 198, 29891, 13, 2860, 7, 3927, 576, 21, 8, 198, 29891, 13, 41509, 3419, 628, 198, 2, 5498, 12946, 290, 663, 12798, 198, 12227, 33921, 796, 12946, 7, 3672, 2625, 17013, 7526, 1600, 2836, 62, 312, 28, 16, 8, 198, 198, 29891, 13, 2860, 7, 12227, 33921, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 16, 796, 25350, 7, 3672, 2625, 21659, 39047, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 14214, 2550, 284, 1633, 10105, 33283, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 12227, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 33, 1585, 349, 62, 21659, 39047, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 18, 8, 198, 29891, 13, 2860, 7, 3927, 576, 16, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 17, 796, 25350, 7, 3672, 2625, 3629, 322, 34360, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 5124, 17726, 20321, 12, 1462, 12, 958, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 12227, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 3629, 322, 34360, 62, 3927, 576, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 16, 8, 198, 29891, 13, 2860, 7, 3927, 576, 17, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 18, 796, 25350, 7, 3672, 2625, 14573, 7851, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 45, 4016, 5751, 3242, 14476, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 14573, 62, 39807, 62, 3927, 576, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 12227, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 17, 8, 198, 29891, 13, 2860, 7, 3927, 576, 18, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 19, 796, 25350, 7, 3672, 2625, 37, 13021, 520, 2238, 469, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 17096, 12, 6720, 10105, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 37, 7626, 88, 62, 1273, 2238, 469, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 12227, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 16, 8, 198, 29891, 13, 2860, 7, 3927, 576, 19, 8, 198, 29891, 13, 41509, 3419, 628, 198, 2, 10467, 12946, 290, 663, 12798, 13, 198, 17089, 33921, 796, 12946, 7, 3672, 2625, 16347, 1600, 2836, 62, 312, 28, 16, 8, 198, 198, 29891, 13, 2860, 7, 17089, 33921, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 20, 796, 25350, 7, 3672, 2625, 14181, 12, 2481, 24189, 362, 50, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 24896, 987, 35415, 22681, 10105, 357, 5432, 12, 1433, 311, 5083, 42501, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 14181, 12, 2481, 62, 30782, 62, 17, 50, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 17089, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 18, 8, 198, 29891, 13, 2860, 7, 3927, 576, 20, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 21, 796, 25350, 7, 3672, 2625, 14181, 12, 2481, 44, 350, 295, 263, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 24896, 7090, 2837, 22681, 10105, 357, 5432, 12, 1238, 40506, 42501, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 14181, 12, 2481, 44, 62, 47, 295, 263, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 17089, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 18, 8, 198, 29891, 13, 2860, 7, 3927, 576, 21, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 20, 796, 25350, 7, 3672, 2625, 50, 12, 6200, 47, 2051, 8270, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 7, 4090, 12, 940, 1902, 10344, 14, 4090, 12, 45, 12, 21, 14, 4090, 12, 1238, 39013, 19802, 14, 4090, 12, 55, 12, 2481, 7563, 388, 69, 42501, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 4090, 12, 940, 62, 38, 6582, 903, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 17089, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 16, 8, 198, 29891, 13, 2860, 7, 3927, 576, 20, 8, 198, 29891, 13, 41509, 3419, 198, 198, 3927, 576, 21, 796, 25350, 7, 3672, 2625, 4261, 12, 3064, 45, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 987, 35415, 22681, 10105, 357, 5432, 12, 1129, 520, 576, 33955, 42501, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2792, 2625, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 4261, 12, 3064, 45, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 28, 17089, 33921, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 28, 16, 8, 198, 29891, 13, 2860, 7, 3927, 576, 21, 8, 198, 29891, 13, 41509, 3419, 198, 29891, 13, 41509, 3419, 198 ]
2.247316
2,608
#!/usr/bin/env python import rospy from flexbe_core import EventState, Logger from flexbe_core.proxy import ProxyActionClient from actionlib_msgs.msg import GoalStatus from flexible_manipulation_msgs.msg import StateValidationAction, StateValidationGoal from moveit_msgs.msg import Constraints, RobotState, ContactInformation, CostSource, ConstraintEvalResult from flexible_manipulation_flexbe_states.proxy import ProxyMoveItClient ''' Created on 05-Mar-2018 @author: David Conner, Julie Gates, and Jenny Gu ''' class StateValidationState(EventState): ''' State to validate state using StateValidationAction. -- timeout double How long to wait for state validation (default: 5 seconds) -- wait_duration double How long to wait for action server (seconds) (0.0 waits indefinitely) -- action_topic string Topic name for the StateValidation action server (default: None --> Use user data) -- group_name string Group name for the StateValidation request (default: None --> Use user data) ># action_topic string Topic name for the StateValidation action server (if None ) ># group_name string Name of the group to be used for query #> status_text string Status text for any errors <= valid State has been validated. <= invalid State is not valid given constraints <= failed State has not been validated. ''' def __init__(self, timeout=5.0, wait_duration=0.001, action_topic=None, group_name=None): ''' Constructor ''' super(StateValidationState, self).__init__( input_keys=['action_topic','group_name'], outcomes=['valid', 'invalid', 'failed'], output_keys=['status_text'] ) self.client = None self.wait_duration = wait_duration self.given_action_topic = action_topic if (self.given_action_topic is not None) and (len(self.given_action_topic) > 0): # If topic is defined, set the client up on startup self.client = ProxyActionClient({self.given_action_topic: StateValidationAction}, self.wait_duration) else: self.given_action_topic = None # handle empty string self.current_action_topic = self.given_action_topic self.group_name = group_name if (self.group_name is not None and len(self.group_name)==0): self.group_name = None # handle empty string # Not doing anything with result values for now #self.valid = None #self.contacts = None #self.cost_sources = None #self.constraint_result = None self.moveit_client = None try: self.moveit_client = ProxyMoveItClient(None) except Exception as e: Logger.logerr(" %s - exception on initialization of ProxyMoveItClient \n%s"% (self.name, str(e))) self.timeout_duration = rospy.Duration(timeout) self.return_code = None self.status_text = None def execute(self, userdata): ''' Execute this state ''' if self.return_code is not None: # Return any previously assigned return code if we are in pause userdata.status_text = self.status_text return self.return_code if self.client.has_result(self.current_action_topic): result = self.client.get_result(self.current_action_topic) if (result.valid): self.return_code = 'valid' self.status_text = 'checked robot state is valid' else: self.return_code = 'invalid' self.status_text = 'checked robot state is not valid! number of contacts = %d' % (len(result.contacts)) Logger.loginfo(self.status_text) userdata.status_text = self.status_text return self.return_code elif self.client.get_state(self.current_action_topic) == GoalStatus.ABORTED: self.status_text = "StateValidation - %s request aborted by state validation action server\n %s" % (self.name, self.action_client.get_goal_status_text(self.current_action_topic)) self.return_code = 'failed' Logger.logerr(self.status_text) userdata.status_text = self.status_text return self.return_code elif self.client.get_state(self.current_action_topic) == GoalStatus.REJECTED: # No result returned is returned for this action, so go by the client state userdata.valid = self.valid self.status_text = "StateValidation - %s request rejected by state validation action server" % (self.name, self.action_client.get_goal_status_text(self.current_action_topic)) self.return_code = 'failed' Logger.logerr(self.status_text) userdata.status_text = self.status_text return self.return_code elif self.timeout_target is not None and rospy.Time.now() > self.timeout_target: self.status_text = "StateValidation - timeout waiting for %s to state validation (%f > %f (%f))" % (self.name, rospy.Time.now().to_sec(), self.timeout_target.to_sec(), self.timeout_duration.to_sec()) self.return_code = 'failed' Logger.logerr(self.status_text) userdata.status_text = self.status_text return self.return_code #Logger.logwarn("StateValidation - %s (%f > %f (%f))" % (self.name, rospy.Time.now().to_sec(), self.timeout_target.to_sec(), self.timeout_duration.to_sec())) # Normal monitoring
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 686, 2777, 88, 198, 198, 6738, 7059, 1350, 62, 7295, 1330, 8558, 9012, 11, 5972, 1362, 198, 198, 6738, 7059, 1350, 62, 7295, 13, 36436, 1330, 38027, 12502, 11792, 198, 198, 6738, 2223, 8019, 62, 907, 14542, 13, 19662, 1330, 25376, 19580, 198, 198, 6738, 12846, 62, 805, 541, 1741, 62, 907, 14542, 13, 19662, 1330, 1812, 7762, 24765, 12502, 11, 1812, 7762, 24765, 49045, 198, 6738, 1445, 270, 62, 907, 14542, 13, 19662, 1330, 1482, 2536, 6003, 11, 16071, 9012, 11, 14039, 21918, 11, 6446, 7416, 11, 1482, 2536, 2913, 36, 2100, 23004, 198, 198, 6738, 12846, 62, 805, 541, 1741, 62, 32880, 1350, 62, 27219, 13, 36436, 1330, 38027, 21774, 1026, 11792, 198, 198, 7061, 6, 198, 41972, 319, 8870, 12, 7676, 12, 7908, 198, 198, 31, 9800, 25, 3271, 1482, 1008, 11, 21946, 15953, 11, 290, 28437, 1962, 198, 7061, 6, 198, 198, 4871, 1812, 7762, 24765, 9012, 7, 9237, 9012, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 1812, 284, 26571, 1181, 1262, 1812, 7762, 24765, 12502, 13, 628, 220, 220, 220, 1377, 26827, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4274, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1374, 890, 284, 4043, 329, 1181, 21201, 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, 357, 12286, 25, 642, 4201, 8, 198, 220, 220, 220, 1377, 4043, 62, 32257, 220, 220, 220, 220, 220, 220, 220, 4274, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1374, 890, 284, 4043, 329, 2223, 4382, 357, 43012, 8, 357, 15, 13, 15, 28364, 24391, 8, 198, 220, 220, 220, 1377, 2223, 62, 26652, 220, 220, 220, 220, 220, 220, 220, 220, 4731, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47373, 1438, 329, 262, 1812, 7762, 24765, 2223, 4382, 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, 357, 12286, 25, 6045, 14610, 5765, 2836, 1366, 8, 628, 220, 220, 220, 1377, 1448, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4731, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4912, 1438, 329, 262, 1812, 7762, 24765, 2581, 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, 357, 12286, 25, 6045, 14610, 5765, 2836, 1366, 8, 628, 220, 220, 220, 1875, 2, 2223, 62, 26652, 220, 220, 220, 220, 220, 220, 220, 220, 4731, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47373, 1438, 329, 262, 1812, 7762, 24765, 2223, 4382, 357, 361, 6045, 1267, 628, 220, 220, 220, 1875, 2, 1448, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4731, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6530, 286, 262, 1448, 284, 307, 973, 329, 12405, 628, 220, 220, 220, 1303, 29, 3722, 62, 5239, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4731, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12678, 2420, 329, 597, 8563, 628, 220, 220, 220, 19841, 4938, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1812, 468, 587, 31031, 13, 198, 220, 220, 220, 19841, 12515, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1812, 318, 407, 4938, 1813, 17778, 198, 220, 220, 220, 19841, 4054, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1812, 468, 407, 587, 31031, 13, 628, 198, 220, 220, 220, 705, 7061, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 26827, 28, 20, 13, 15, 11, 4043, 62, 32257, 28, 15, 13, 8298, 11, 2223, 62, 26652, 28, 14202, 11, 1448, 62, 3672, 28, 14202, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 28407, 273, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 9012, 7762, 24765, 9012, 11, 2116, 737, 834, 15003, 834, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5128, 62, 13083, 28, 17816, 2673, 62, 26652, 41707, 8094, 62, 3672, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10906, 28, 17816, 12102, 3256, 705, 259, 12102, 3256, 705, 47904, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5072, 62, 13083, 28, 17816, 13376, 62, 5239, 20520, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 16366, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 17077, 62, 32257, 796, 4043, 62, 32257, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 35569, 62, 2673, 62, 26652, 220, 796, 2223, 62, 26652, 198, 220, 220, 220, 220, 220, 220, 220, 611, 357, 944, 13, 35569, 62, 2673, 62, 26652, 318, 407, 6045, 8, 290, 357, 11925, 7, 944, 13, 35569, 62, 2673, 62, 26652, 8, 1875, 657, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1002, 7243, 318, 5447, 11, 900, 262, 5456, 510, 319, 13693, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 16366, 796, 38027, 12502, 11792, 15090, 944, 13, 35569, 62, 2673, 62, 26652, 25, 1812, 7762, 24765, 12502, 5512, 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, 2116, 13, 17077, 62, 32257, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 35569, 62, 2673, 62, 26652, 796, 6045, 1303, 5412, 6565, 4731, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 14421, 62, 2673, 62, 26652, 796, 2116, 13, 35569, 62, 2673, 62, 26652, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 8094, 62, 3672, 796, 1448, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 611, 357, 944, 13, 8094, 62, 3672, 318, 407, 6045, 290, 18896, 7, 944, 13, 8094, 62, 3672, 8, 855, 15, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 8094, 62, 3672, 796, 6045, 1303, 5412, 6565, 4731, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 1892, 1804, 1997, 351, 1255, 3815, 329, 783, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 944, 13, 12102, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 944, 13, 3642, 8656, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 944, 13, 15805, 62, 82, 2203, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 944, 13, 1102, 2536, 2913, 62, 20274, 796, 6045, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 21084, 270, 62, 16366, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 21084, 270, 62, 16366, 796, 38027, 21774, 1026, 11792, 7, 14202, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2845, 35528, 355, 304, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5972, 1362, 13, 6404, 8056, 7203, 4064, 82, 220, 532, 220, 6631, 319, 37588, 286, 38027, 21774, 1026, 11792, 3467, 77, 4, 82, 1, 4, 357, 944, 13, 3672, 11, 965, 7, 68, 22305, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 48678, 62, 32257, 796, 686, 2777, 88, 13, 26054, 7, 48678, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7783, 62, 8189, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13376, 62, 5239, 220, 796, 6045, 628, 220, 220, 220, 825, 12260, 7, 944, 11, 2836, 7890, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 8393, 1133, 428, 1181, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 7783, 62, 8189, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 8229, 597, 4271, 8686, 1441, 2438, 611, 356, 389, 287, 14985, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 7890, 13, 13376, 62, 5239, 796, 2116, 13, 13376, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 7783, 62, 8189, 628, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 16366, 13, 10134, 62, 20274, 7, 944, 13, 14421, 62, 2673, 62, 26652, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 2116, 13, 16366, 13, 1136, 62, 20274, 7, 944, 13, 14421, 62, 2673, 62, 26652, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 357, 20274, 13, 12102, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7783, 62, 8189, 796, 705, 12102, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13376, 62, 5239, 796, 705, 26752, 9379, 1181, 318, 4938, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7783, 62, 8189, 796, 705, 259, 12102, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13376, 62, 5239, 796, 705, 26752, 9379, 1181, 318, 407, 4938, 0, 1271, 286, 13961, 796, 4064, 67, 6, 4064, 357, 11925, 7, 20274, 13, 3642, 8656, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5972, 1362, 13, 6404, 10951, 7, 944, 13, 13376, 62, 5239, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 7890, 13, 13376, 62, 5239, 796, 2116, 13, 13376, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 7783, 62, 8189, 628, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 16366, 13, 1136, 62, 5219, 7, 944, 13, 14421, 62, 2673, 62, 26652, 8, 6624, 25376, 19580, 13, 6242, 9863, 1961, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13376, 62, 5239, 796, 366, 9012, 7762, 24765, 532, 4064, 82, 2581, 46847, 416, 1181, 21201, 2223, 4382, 59, 77, 4064, 82, 1, 4064, 357, 944, 13, 3672, 11, 2116, 13, 2673, 62, 16366, 13, 1136, 62, 35231, 62, 13376, 62, 5239, 7, 944, 13, 14421, 62, 2673, 62, 26652, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7783, 62, 8189, 796, 705, 47904, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5972, 1362, 13, 6404, 8056, 7, 944, 13, 13376, 62, 5239, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 7890, 13, 13376, 62, 5239, 796, 2116, 13, 13376, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 7783, 62, 8189, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 16366, 13, 1136, 62, 5219, 7, 944, 13, 14421, 62, 2673, 62, 26652, 8, 6624, 25376, 19580, 13, 2200, 23680, 1961, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1400, 1255, 4504, 318, 4504, 329, 428, 2223, 11, 523, 467, 416, 262, 5456, 1181, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 7890, 13, 12102, 796, 2116, 13, 12102, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13376, 62, 5239, 796, 366, 9012, 7762, 24765, 532, 4064, 82, 2581, 8606, 416, 1181, 21201, 2223, 4382, 1, 4064, 357, 944, 13, 3672, 11, 2116, 13, 2673, 62, 16366, 13, 1136, 62, 35231, 62, 13376, 62, 5239, 7, 944, 13, 14421, 62, 2673, 62, 26652, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7783, 62, 8189, 796, 705, 47904, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5972, 1362, 13, 6404, 8056, 7, 944, 13, 13376, 62, 5239, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 7890, 13, 13376, 62, 5239, 796, 2116, 13, 13376, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 7783, 62, 8189, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 48678, 62, 16793, 318, 407, 6045, 290, 686, 2777, 88, 13, 7575, 13, 2197, 3419, 1875, 2116, 13, 48678, 62, 16793, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13376, 62, 5239, 796, 366, 9012, 7762, 24765, 532, 26827, 4953, 329, 4064, 82, 284, 1181, 21201, 37633, 69, 1875, 4064, 69, 37633, 69, 4008, 1, 4064, 357, 944, 13, 3672, 11, 686, 2777, 88, 13, 7575, 13, 2197, 22446, 1462, 62, 2363, 22784, 2116, 13, 48678, 62, 16793, 13, 1462, 62, 2363, 22784, 2116, 13, 48678, 62, 32257, 13, 1462, 62, 2363, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7783, 62, 8189, 796, 705, 47904, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5972, 1362, 13, 6404, 8056, 7, 944, 13, 13376, 62, 5239, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 7890, 13, 13376, 62, 5239, 796, 2116, 13, 13376, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 7783, 62, 8189, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 11187, 1362, 13, 6404, 40539, 7203, 9012, 7762, 24765, 532, 4064, 82, 37633, 69, 1875, 4064, 69, 37633, 69, 4008, 1, 4064, 357, 944, 13, 3672, 11, 686, 2777, 88, 13, 7575, 13, 2197, 22446, 1462, 62, 2363, 22784, 2116, 13, 48678, 62, 16793, 13, 1462, 62, 2363, 22784, 2116, 13, 48678, 62, 32257, 13, 1462, 62, 2363, 3419, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14435, 9904, 198 ]
2.3045
2,578
from network.Modules import * __all__ = ['Decoder']
[ 6738, 3127, 13, 5841, 5028, 1330, 1635, 198, 198, 834, 439, 834, 796, 37250, 10707, 12342, 20520, 628, 628, 628 ]
2.9
20
#!/usr/bin/env python3 import warnings import bpy # TODO Replace all messages with print_message. # Possibly shift to class when blendernc is initiated. and move to logging.
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 14601, 198, 198, 11748, 275, 9078, 628, 198, 2, 16926, 46, 40177, 477, 6218, 351, 3601, 62, 20500, 13, 198, 2, 43046, 6482, 284, 1398, 618, 13516, 1142, 66, 318, 16862, 13, 290, 1445, 284, 18931, 13, 628, 628, 628, 628, 628, 628, 628, 628 ]
3.428571
56
# Generated by Django 2.2.1 on 2019-06-04 11:41 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 16, 319, 13130, 12, 3312, 12, 3023, 1367, 25, 3901, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import sys import numpy as np import statistics import matplotlib.pyplot as plt from MM1Utiles import funExpon #README #Criterio de estabilidad MM1: la tasa de servicio debe ser mayor que la tasa de llegada NumEvents = 2 #Defimos número de tipos de eventos (usamos 2: arribos y llegadas) #Constantes a usar para entender mejor el código BUSY = 1 IDLE = 0 #QLIMIT = 10**5 #Hay que probar cambiando if __name__ == '__main__': global MeanInterarrival, MeanService, NumDelaysRequired, QLIMIT MeanInterarrival = 2.5 #tiempo medio de llegada **lambda MeanService = 10 #tiempo medio de servicio **MU NumDelaysRequired = 10000 #número total de clientes cuyas demoras serán observadas print("Mean Interarrival: ",MeanInterarrival,"Mean Service: ",MeanService,"Number delays Required (cuantas personas ): ", NumDelaysRequired) lista_media_arribos = [2.5, 5, 7.5, 10, 12.5] lista_limites_cola = [0, 2, 5, 10, 50] lista_conjunto = [] for limiteCola in reversed(lista_limites_cola): lista_individual = [] for mediaArribo in reversed(lista_media_arribos): MeanInterarrival = mediaArribo QLIMIT = limiteCola n = 10 lista_recahzados = [] for i in range(n): rta = ExecuteSimulation() lista_recahzados.append(rta) lista_individual.append([mediaArribo,round(statistics.mean(lista_recahzados),4)]) print(round(MeanInterarrival*MeanService,0), "\% & ", QLIMIT , " & ", round(statistics.mean(lista_recahzados),4), "\\\\") lista_conjunto.append([limiteCola, lista_individual]) for limiteCola, lista_individual in lista_conjunto: print(limiteCola,lista_individual) lista_relacion = [] lista_probDenegado = [] for i,j in lista_individual: lista_relacion.append(i*10) lista_probDenegado.append(j) plt.title('probabilidad de denegación de \nservicio con limite de cola = '+ str(limiteCola)) plt.plot(lista_relacion, lista_probDenegado, markersize=1, lw=1,color='r') plt.grid(True) plt.xlabel('Porcentaje de arribo con respecto al servicio') plt.ylabel('Probabilidad de denegación') plt.savefig('Prob_denegación_'+str(limiteCola)+'.png') plt.show()
[ 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 7869, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 20806, 16, 18274, 2915, 1330, 1257, 16870, 261, 198, 198, 2, 15675, 11682, 198, 2, 18559, 263, 952, 390, 2803, 346, 32482, 20806, 16, 25, 8591, 256, 15462, 390, 37756, 952, 390, 1350, 1055, 9591, 8358, 8591, 256, 15462, 390, 300, 1455, 4763, 198, 198, 33111, 37103, 796, 362, 1303, 7469, 320, 418, 299, 21356, 647, 78, 390, 8171, 418, 390, 1785, 418, 357, 385, 321, 418, 362, 25, 610, 822, 418, 331, 300, 1455, 38768, 8, 198, 198, 2, 3103, 18797, 274, 257, 514, 283, 31215, 920, 2194, 502, 73, 273, 1288, 269, 10205, 12894, 78, 198, 45346, 56, 796, 352, 220, 198, 2389, 2538, 796, 657, 198, 198, 2, 9711, 3955, 2043, 796, 838, 1174, 20, 1303, 31306, 8358, 1861, 283, 269, 4131, 72, 25440, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3298, 22728, 9492, 283, 43171, 11, 22728, 16177, 11, 31835, 13856, 592, 37374, 11, 1195, 43, 3955, 2043, 198, 220, 220, 220, 22728, 9492, 283, 43171, 796, 362, 13, 20, 1303, 20259, 368, 7501, 1117, 952, 390, 300, 1455, 4763, 12429, 50033, 198, 220, 220, 220, 22728, 16177, 796, 838, 1303, 20259, 368, 7501, 1117, 952, 390, 37756, 952, 12429, 42422, 198, 220, 220, 220, 31835, 13856, 592, 37374, 796, 33028, 1303, 77, 21356, 647, 78, 2472, 390, 5456, 274, 269, 4669, 292, 1357, 41043, 1055, 21162, 3799, 38768, 628, 220, 220, 220, 3601, 7203, 5308, 272, 4225, 283, 43171, 25, 33172, 5308, 272, 9492, 283, 43171, 553, 5308, 272, 4809, 25, 33172, 5308, 272, 16177, 553, 15057, 16119, 20906, 357, 27399, 415, 292, 1048, 292, 220, 15179, 33172, 31835, 13856, 592, 37374, 8, 628, 198, 220, 220, 220, 1351, 64, 62, 11431, 62, 283, 822, 418, 796, 685, 17, 13, 20, 11, 642, 11, 767, 13, 20, 11, 838, 11, 1105, 13, 20, 60, 198, 220, 220, 220, 1351, 64, 62, 2475, 2737, 62, 4033, 64, 796, 685, 15, 11, 362, 11, 642, 11, 838, 11, 2026, 60, 198, 220, 220, 220, 1351, 64, 62, 1102, 29741, 1462, 796, 17635, 628, 220, 220, 220, 220, 198, 220, 220, 220, 329, 1761, 578, 28635, 287, 17687, 7, 4868, 64, 62, 2475, 2737, 62, 4033, 64, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 64, 62, 43129, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2056, 3163, 822, 78, 287, 17687, 7, 4868, 64, 62, 11431, 62, 283, 822, 418, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22728, 9492, 283, 43171, 796, 2056, 3163, 822, 78, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1195, 43, 3955, 2043, 796, 1761, 578, 28635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 796, 838, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1351, 64, 62, 8344, 993, 89, 22484, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 2837, 7, 77, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 8326, 796, 8393, 1133, 8890, 1741, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1351, 64, 62, 8344, 993, 89, 22484, 13, 33295, 7, 81, 8326, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1351, 64, 62, 43129, 13, 33295, 26933, 11431, 3163, 822, 78, 11, 744, 7, 14269, 3969, 13, 32604, 7, 4868, 64, 62, 8344, 993, 89, 22484, 828, 19, 8, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 744, 7, 5308, 272, 9492, 283, 43171, 9, 5308, 272, 16177, 11, 15, 828, 37082, 4, 1222, 33172, 1195, 43, 3955, 2043, 837, 366, 1222, 33172, 2835, 7, 14269, 3969, 13, 32604, 7, 4868, 64, 62, 8344, 993, 89, 22484, 828, 19, 828, 366, 13426, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 64, 62, 1102, 29741, 1462, 13, 33295, 26933, 2475, 578, 28635, 11, 1351, 64, 62, 43129, 12962, 628, 220, 220, 220, 329, 1761, 578, 28635, 11, 1351, 64, 62, 43129, 287, 1351, 64, 62, 1102, 29741, 1462, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 2475, 578, 28635, 11, 4868, 64, 62, 43129, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 64, 62, 2411, 49443, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 64, 62, 1676, 65, 21306, 1533, 4533, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 11, 73, 287, 1351, 64, 62, 43129, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1351, 64, 62, 2411, 49443, 13, 33295, 7, 72, 9, 940, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1351, 64, 62, 1676, 65, 21306, 1533, 4533, 13, 33295, 7, 73, 8, 198, 220, 220, 220, 220, 220, 220, 220, 458, 83, 13, 7839, 10786, 1676, 65, 14991, 32482, 390, 2853, 1533, 32009, 18840, 390, 3467, 77, 3168, 46441, 369, 1761, 578, 390, 951, 64, 796, 705, 10, 965, 7, 2475, 578, 28635, 4008, 220, 198, 220, 220, 220, 220, 220, 220, 220, 458, 83, 13, 29487, 7, 4868, 64, 62, 2411, 49443, 11, 1351, 64, 62, 1676, 65, 21306, 1533, 4533, 11, 19736, 1096, 28, 16, 11, 300, 86, 28, 16, 11, 8043, 11639, 81, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 458, 83, 13, 25928, 7, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 458, 83, 13, 87, 18242, 10786, 47, 273, 1087, 1228, 68, 390, 610, 822, 78, 369, 2461, 78, 435, 37756, 952, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 458, 83, 13, 2645, 9608, 10786, 2964, 65, 14991, 32482, 390, 2853, 1533, 32009, 18840, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 458, 83, 13, 21928, 5647, 10786, 2964, 65, 62, 6559, 1533, 32009, 18840, 62, 6, 10, 2536, 7, 2475, 578, 28635, 47762, 4458, 11134, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 458, 83, 13, 12860, 3419, 628, 220, 220, 220, 220, 198, 220, 220, 220, 220, 628, 220, 220, 220, 220, 628, 198 ]
2.203184
1,068
# input word = input() # process ''' 처음에 o가 나올때까지 w의 개수를 세면 됨. ''' isValid = True i = 0 while i < len(word): # w wCnt = 0 while i < len(word) and word[i] == 'w': i += 1 wCnt += 1 if wCnt == 0: isValid = False # o cnt = 0 while i < len(word) and word[i] == 'o': i += 1 cnt += 1 if cnt != wCnt: isValid = False # l cnt = 0 while i < len(word) and word[i] == 'l': i += 1 cnt += 1 if cnt != wCnt: isValid = False # f cnt = 0 while i < len(word) and word[i] == 'f': i += 1 cnt += 1 if cnt != wCnt: isValid = False if not isValid: break # output print(1 if isValid else 0)
[ 2, 5128, 198, 4775, 796, 5128, 3419, 198, 2, 1429, 198, 7061, 6, 198, 168, 110, 246, 35975, 234, 168, 245, 238, 267, 166, 108, 222, 31619, 224, 246, 168, 246, 105, 167, 243, 234, 166, 117, 234, 168, 100, 222, 266, 35975, 246, 220, 166, 108, 250, 168, 230, 246, 167, 98, 120, 23821, 226, 116, 167, 102, 112, 31619, 238, 101, 13, 198, 7061, 6, 198, 271, 47139, 796, 6407, 198, 72, 796, 657, 198, 4514, 1312, 1279, 18896, 7, 4775, 2599, 198, 197, 2, 266, 198, 197, 86, 34, 429, 796, 657, 198, 197, 4514, 1312, 1279, 18896, 7, 4775, 8, 290, 1573, 58, 72, 60, 6624, 705, 86, 10354, 198, 197, 197, 72, 15853, 352, 198, 197, 197, 86, 34, 429, 15853, 352, 198, 197, 361, 266, 34, 429, 6624, 657, 25, 318, 47139, 796, 10352, 198, 197, 2, 267, 198, 197, 66, 429, 796, 657, 198, 197, 4514, 1312, 1279, 18896, 7, 4775, 8, 290, 1573, 58, 72, 60, 6624, 705, 78, 10354, 198, 197, 197, 72, 15853, 352, 198, 197, 197, 66, 429, 15853, 352, 198, 197, 361, 269, 429, 14512, 266, 34, 429, 25, 318, 47139, 796, 10352, 198, 197, 2, 300, 198, 197, 66, 429, 796, 657, 198, 197, 4514, 1312, 1279, 18896, 7, 4775, 8, 290, 1573, 58, 72, 60, 6624, 705, 75, 10354, 198, 197, 197, 72, 15853, 352, 198, 197, 197, 66, 429, 15853, 352, 198, 197, 361, 269, 429, 14512, 266, 34, 429, 25, 318, 47139, 796, 10352, 198, 197, 2, 277, 198, 197, 66, 429, 796, 657, 198, 197, 4514, 1312, 1279, 18896, 7, 4775, 8, 290, 1573, 58, 72, 60, 6624, 705, 69, 10354, 198, 197, 197, 72, 15853, 352, 198, 197, 197, 66, 429, 15853, 352, 198, 197, 361, 269, 429, 14512, 266, 34, 429, 25, 318, 47139, 796, 10352, 198, 197, 361, 407, 318, 47139, 25, 2270, 198, 2, 5072, 198, 4798, 7, 16, 611, 318, 47139, 2073, 657, 8 ]
1.837423
326
"""This module implements converting steps from account CSV to Zaim CSV.""" from zaimcsvconverter import CONFIG, PATH_FILE_CONFIG, DirectoryCsv from zaimcsvconverter.convert_table_importer import ConvertTableImporter from zaimcsvconverter.input_csv_converter_iterator import InputCsvConverterIterator from zaimcsvconverter.models import initialize_database class ZaimCsvConverter: """This class implements converting steps from account CSV to Zaim CSV.""" @staticmethod def execute() -> None: """This method executes all CSV converters.""" CONFIG.load(PATH_FILE_CONFIG) initialize_database() ConvertTableImporter(DirectoryCsv.CONVERT.value).execute() InputCsvConverterIterator(DirectoryCsv.INPUT.value, DirectoryCsv.OUTPUT.value).execute()
[ 37811, 1212, 8265, 23986, 23202, 4831, 422, 1848, 44189, 284, 1168, 1385, 44189, 526, 15931, 198, 6738, 1976, 1385, 40664, 1102, 332, 353, 1330, 25626, 11, 46490, 62, 25664, 62, 10943, 16254, 11, 27387, 34, 21370, 198, 6738, 1976, 1385, 40664, 1102, 332, 353, 13, 1102, 1851, 62, 11487, 62, 320, 26634, 1330, 38240, 10962, 3546, 26634, 198, 6738, 1976, 1385, 40664, 1102, 332, 353, 13, 15414, 62, 40664, 62, 1102, 332, 353, 62, 48727, 1330, 23412, 34, 21370, 3103, 332, 353, 37787, 198, 6738, 1976, 1385, 40664, 1102, 332, 353, 13, 27530, 1330, 41216, 62, 48806, 628, 198, 4871, 1168, 1385, 34, 21370, 3103, 332, 353, 25, 198, 220, 220, 220, 37227, 1212, 1398, 23986, 23202, 4831, 422, 1848, 44189, 284, 1168, 1385, 44189, 526, 15931, 628, 220, 220, 220, 2488, 12708, 24396, 198, 220, 220, 220, 825, 12260, 3419, 4613, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 1212, 2446, 42985, 477, 44189, 6718, 1010, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 25626, 13, 2220, 7, 34219, 62, 25664, 62, 10943, 16254, 8, 198, 220, 220, 220, 220, 220, 220, 220, 41216, 62, 48806, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 38240, 10962, 3546, 26634, 7, 43055, 34, 21370, 13, 10943, 15858, 13, 8367, 737, 41049, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 23412, 34, 21370, 3103, 332, 353, 37787, 7, 43055, 34, 21370, 13, 1268, 30076, 13, 8367, 11, 27387, 34, 21370, 13, 2606, 7250, 3843, 13, 8367, 737, 41049, 3419, 198 ]
3.117647
255
# Generated by Django 3.1.5 on 2021-07-13 07:22 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 20, 319, 33448, 12, 2998, 12, 1485, 8753, 25, 1828, 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, 198, 11748, 334, 27112, 628 ]
3.017857
56
""" plot_water_height_multipanel.py Reads output of tsunami and plots the results in an image file. """ import argparse parser = argparse.ArgumentParser() parser.add_argument('input_file', help='text file output by the tsunami simulator (chapter 2 version)') args = parser.parse_args() input_file = args.input_file import numpy as np import matplotlib.pyplot as plt import matplotlib from sys import platform if platform == 'win32': unicodeVar = 'utf-16' else: unicodeVar = 'utf-8' matplotlib.use('Agg') matplotlib.rcParams.update({'font.size': 16}) # read data into a list data = [line.rstrip().split() for line in open(input_file, encoding = unicodeVar).readlines()] time = [float(line[0]) for line in data] h = np.array([[float(x) for x in line[1:]] for line in data]) x = np.arange(1, h.shape[1]+1) time_steps = [0, 25, 50, 75] fig = plt.figure(figsize=(8, 10)) axes = [plt.subplot2grid((4, 1), (row, 0), colspan=1, rowspan=1) for row in range(4)] for ax in axes: n = axes.index(ax) ax.plot(x, h[time_steps[n], :], 'b-') ax.fill_between(x, 0, h[time_steps[n], :], color='b', alpha=0.4) ax.grid() ax.set_xlim(1, 100) ax.set_ylim(0, 1) ax.set_ylabel('Height', fontsize=16) ax.set_xticks([25, 50, 75, 100]) ax.set_yticks([0, 0.25, 0.5, 0.75, 1]) for ax in axes: n = axes.index(ax) ax.set_title('Time step ' + '%3i' % time_steps[n]) for ax in axes[:-1]: ax.set_xticklabels([]) axes[3].set_xlabel('', fontsize=16) axes[-1].set_xlabel('Spatial grid index') plt.savefig('water_height_ch02.svg') plt.close(fig)
[ 37811, 198, 29487, 62, 7050, 62, 17015, 62, 16680, 541, 272, 417, 13, 9078, 198, 198, 5569, 82, 5072, 286, 31019, 290, 21528, 262, 2482, 287, 281, 2939, 2393, 13, 198, 37811, 198, 11748, 1822, 29572, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 48610, 13, 2860, 62, 49140, 10786, 15414, 62, 7753, 3256, 1037, 11639, 5239, 2393, 5072, 416, 262, 31019, 35375, 357, 43582, 362, 2196, 8, 11537, 198, 22046, 796, 30751, 13, 29572, 62, 22046, 3419, 198, 198, 15414, 62, 7753, 796, 26498, 13, 15414, 62, 7753, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 198, 6738, 25064, 1330, 3859, 198, 198, 361, 3859, 6624, 705, 5404, 2624, 10354, 198, 220, 220, 220, 28000, 1098, 19852, 796, 705, 40477, 12, 1433, 6, 198, 17772, 25, 198, 220, 220, 220, 28000, 1098, 19852, 796, 705, 40477, 12, 23, 6, 198, 198, 6759, 29487, 8019, 13, 1904, 10786, 46384, 11537, 198, 6759, 29487, 8019, 13, 6015, 10044, 4105, 13, 19119, 15090, 6, 10331, 13, 7857, 10354, 1467, 30072, 198, 198, 2, 1100, 1366, 656, 257, 1351, 198, 7890, 796, 685, 1370, 13, 81, 36311, 22446, 35312, 3419, 329, 1627, 287, 1280, 7, 15414, 62, 7753, 11, 21004, 796, 28000, 1098, 19852, 737, 961, 6615, 3419, 60, 198, 198, 2435, 796, 685, 22468, 7, 1370, 58, 15, 12962, 329, 1627, 287, 1366, 60, 198, 71, 796, 45941, 13, 18747, 26933, 58, 22468, 7, 87, 8, 329, 2124, 287, 1627, 58, 16, 25, 11907, 329, 1627, 287, 1366, 12962, 198, 87, 796, 45941, 13, 283, 858, 7, 16, 11, 289, 13, 43358, 58, 16, 48688, 16, 8, 198, 2435, 62, 20214, 796, 685, 15, 11, 1679, 11, 2026, 11, 5441, 60, 198, 198, 5647, 796, 458, 83, 13, 26875, 7, 5647, 7857, 16193, 23, 11, 838, 4008, 198, 897, 274, 796, 685, 489, 83, 13, 7266, 29487, 17, 25928, 19510, 19, 11, 352, 828, 357, 808, 11, 657, 828, 951, 12626, 28, 16, 11, 5752, 12626, 28, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 5752, 287, 2837, 7, 19, 15437, 198, 198, 1640, 7877, 287, 34197, 25, 198, 220, 220, 220, 299, 796, 34197, 13, 9630, 7, 897, 8, 198, 220, 220, 220, 7877, 13, 29487, 7, 87, 11, 289, 58, 2435, 62, 20214, 58, 77, 4357, 1058, 4357, 705, 65, 12, 11537, 198, 220, 220, 220, 7877, 13, 20797, 62, 23395, 7, 87, 11, 657, 11, 289, 58, 2435, 62, 20214, 58, 77, 4357, 1058, 4357, 3124, 11639, 65, 3256, 17130, 28, 15, 13, 19, 8, 198, 220, 220, 220, 7877, 13, 25928, 3419, 198, 220, 220, 220, 7877, 13, 2617, 62, 87, 2475, 7, 16, 11, 1802, 8, 198, 220, 220, 220, 7877, 13, 2617, 62, 88, 2475, 7, 15, 11, 352, 8, 198, 220, 220, 220, 7877, 13, 2617, 62, 2645, 9608, 10786, 23106, 3256, 10369, 7857, 28, 1433, 8, 198, 220, 220, 220, 7877, 13, 2617, 62, 742, 3378, 26933, 1495, 11, 2026, 11, 5441, 11, 1802, 12962, 198, 220, 220, 220, 7877, 13, 2617, 62, 20760, 3378, 26933, 15, 11, 657, 13, 1495, 11, 657, 13, 20, 11, 657, 13, 2425, 11, 352, 12962, 198, 198, 1640, 7877, 287, 34197, 25, 198, 220, 220, 220, 299, 796, 34197, 13, 9630, 7, 897, 8, 198, 220, 220, 220, 7877, 13, 2617, 62, 7839, 10786, 7575, 2239, 705, 1343, 705, 4, 18, 72, 6, 4064, 640, 62, 20214, 58, 77, 12962, 198, 198, 1640, 7877, 287, 34197, 58, 21912, 16, 5974, 198, 220, 220, 220, 7877, 13, 2617, 62, 742, 624, 23912, 1424, 26933, 12962, 198, 198, 897, 274, 58, 18, 4083, 2617, 62, 87, 18242, 10786, 3256, 10369, 7857, 28, 1433, 8, 198, 897, 274, 58, 12, 16, 4083, 2617, 62, 87, 18242, 10786, 4561, 34961, 10706, 6376, 11537, 198, 198, 489, 83, 13, 21928, 5647, 10786, 7050, 62, 17015, 62, 354, 2999, 13, 21370, 70, 11537, 198, 489, 83, 13, 19836, 7, 5647, 8, 198 ]
2.364179
670
# Backspace String Compare """ Given two strings s and t, return true if they are equal when both are typed into empty text editors. '#' means a backspace character. Note that after backspacing an empty text, the text will continue empty. Example 1: Input: s = "ab#c", t = "ad#c" Output: true Explanation: Both s and t become "ac". Example 2: Input: s = "ab##", t = "c#d#" Output: true Explanation: Both s and t become "". Example 3: Input: s = "a#c", t = "b" Output: false Explanation: s becomes "c" while t becomes "b". Constraints: 1 <= s.length, t.length <= 200 s and t only contain lowercase letters and '#' characters. """
[ 2, 5157, 13200, 10903, 27814, 198, 37811, 11259, 734, 13042, 264, 290, 256, 11, 1441, 2081, 611, 484, 389, 4961, 618, 1111, 389, 25683, 656, 6565, 2420, 15719, 13, 705, 2, 6, 1724, 257, 736, 13200, 2095, 13, 198, 198, 6425, 326, 706, 736, 2777, 4092, 281, 6565, 2420, 11, 262, 2420, 481, 2555, 6565, 13, 628, 198, 16281, 352, 25, 198, 198, 20560, 25, 264, 796, 366, 397, 2, 66, 1600, 256, 796, 366, 324, 2, 66, 1, 198, 26410, 25, 2081, 198, 3109, 11578, 341, 25, 5747, 264, 290, 256, 1716, 366, 330, 1911, 198, 198, 16281, 362, 25, 198, 198, 20560, 25, 264, 796, 366, 397, 2235, 1600, 256, 796, 366, 66, 2, 67, 2, 1, 198, 26410, 25, 2081, 198, 3109, 11578, 341, 25, 5747, 264, 290, 256, 1716, 366, 1911, 198, 198, 16281, 513, 25, 198, 198, 20560, 25, 264, 796, 366, 64, 2, 66, 1600, 256, 796, 366, 65, 1, 198, 26410, 25, 3991, 198, 3109, 11578, 341, 25, 264, 4329, 366, 66, 1, 981, 256, 4329, 366, 65, 1911, 628, 198, 3103, 2536, 6003, 25, 628, 220, 220, 220, 352, 19841, 264, 13, 13664, 11, 256, 13, 13664, 19841, 939, 198, 220, 220, 220, 264, 290, 256, 691, 3994, 2793, 7442, 7475, 290, 705, 2, 6, 3435, 13, 198, 37227, 628 ]
2.981651
218
import sys from time import sleep from cement.ext.ext_argparse import ArgparseController, expose as ex
[ 198, 11748, 25064, 198, 6738, 640, 1330, 3993, 198, 6738, 20534, 13, 2302, 13, 2302, 62, 853, 29572, 1330, 20559, 29572, 22130, 11, 15651, 355, 409, 628, 198 ]
3.785714
28
import requests URL_API = r"https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE" API_KEY = "FJOSXYTTSW4VUT7H"
[ 11748, 7007, 198, 198, 21886, 62, 17614, 796, 374, 1, 5450, 1378, 2503, 13, 17307, 615, 36403, 13, 1073, 14, 22766, 30, 8818, 28, 34, 31302, 45155, 62, 6369, 3398, 27746, 62, 49, 6158, 1, 198, 17614, 62, 20373, 796, 366, 37, 41, 2640, 34278, 51, 4694, 54, 19, 53, 3843, 22, 39, 1, 628 ]
2.290909
55
#!/usr/bin/env python3 import os import glob import json from datetime import datetime import subprocess as sp from pprint import pprint from pygama.utils import * def main(): """ sync MJ60 data with cenpa-rocks. - rsync the entire Data/MJ60 directory using the $DATADIR variable - set flags to then remove raw/raw_to_dsp/tier2 files Hopefully we can reuse this script for C1. """ global runDB with open("runDB.json") as f: runDB = json.load(f) # run_rsync() daq_cleanup() def run_rsync(test=False): """ run rsync on the entire $DATADIR/MJ60 folder (can take a while ...) """ if "mjcenpa" not in os.environ["USER"]: print("Error, we're not on the MJ60 DAQ machine. Exiting ...") exit() #raw_dir = runDB["loc_dir"] + "/" raw_dir = os.path.expandvars(runDB["loc_dir"] + "/") raw_rocks = "{}:{}/".format(runDB["rocks_login"], runDB["rocks_dir"]) if test: cmd = "rsync -avh --dry-run {} {}".format(raw_dir, raw_rocks) else: cmd = "rsync -avh {} {}".format(raw_dir, raw_rocks) sh(cmd) def daq_cleanup(keep_t1=False, keep_t2=False): """ build a list of files on the DAQ and rocks, check integrity, and delete files on the DAQ only if we're sure the transfer was successful. MJ60 and C1 ORCA raw files have "BackgroundRun" in the filenames """ if "mjcenpa" not in os.environ["USER"]: print("Error, we're not on the MJ60 DAQ machine. Exiting ...") exit() # local (DAQ) list datadir_loc = os.path.expandvars(runDB["loc_dir"] + "/") filelist_loc = glob.glob(datadir_loc + "/**", recursive=True) # for f in filelist_loc: # print(f) # remote list args = ['ssh', runDB['rocks_login'], 'ls -R '+runDB["rocks_dir"]] ls = sp.Popen(args, stdout=sp.PIPE, stderr=sp.PIPE) out, err = ls.communicate() out = out.decode('utf-8') filelist_rocks = out.split("\n") filelist_rocks = [f for f in filelist_rocks if ":" not in f and len(f)!=0] # for f in filelist_rocks: # print(f) # make sure all files have successfully transferred for f in filelist_loc: fname = f.split("/")[-1] if len(fname) == 0: continue if fname not in filelist_rocks: print("whoa, ", fname, "not found in remote list!") exit() print("All files in:\n {}\nhave been backed up to cenpa-rocks." .format(datadir_loc)) print("It should be OK to delete local files.") # don't delete these files, orca needs them ignore_list = [".Orca", "RunNumber"] # set these bools to not remove the pygama files if keep_t1: ignore_list.append("t1_run") if keep_t2: ignore_list.append("t2_run") # now delete old files, ask for Y/N confirmation print("OK to delete local files? [y/n]") if input() in ["y","Y"]: for f in filelist_loc: f.replace(" ", "\ ") if os.path.isfile(f): if any(ig in f for ig in ignore_list): continue print("Deleting:", f) os.remove(f) now = datetime.now() print("Processing is up to date!", now.strftime("%Y-%m-%d %H:%M")) def download_rocks(): """ fk , i also need to write a function to recall the raw files from cenpa-rocks for reprocessing (since for now all processing happens on the DAQ computer) """ print("hi clint") if __name__=="__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 198, 11748, 15095, 198, 11748, 33918, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 850, 14681, 355, 599, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 6738, 12972, 70, 1689, 13, 26791, 1330, 1635, 198, 198, 4299, 1388, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 17510, 33974, 1899, 1366, 351, 269, 268, 8957, 12, 305, 4657, 13, 198, 220, 220, 220, 532, 374, 27261, 262, 2104, 6060, 14, 43421, 1899, 8619, 1262, 262, 720, 35, 1404, 2885, 4663, 7885, 198, 220, 220, 220, 532, 900, 9701, 284, 788, 4781, 8246, 14, 1831, 62, 1462, 62, 67, 2777, 14, 24948, 17, 3696, 198, 220, 220, 220, 19996, 356, 460, 32349, 428, 4226, 329, 327, 16, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 1057, 11012, 198, 220, 220, 220, 351, 1280, 7203, 5143, 11012, 13, 17752, 4943, 355, 277, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1057, 11012, 796, 33918, 13, 2220, 7, 69, 8, 628, 220, 220, 220, 1303, 1057, 62, 81, 27261, 3419, 198, 220, 220, 220, 12379, 80, 62, 27773, 929, 3419, 628, 198, 4299, 1057, 62, 81, 27261, 7, 9288, 28, 25101, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1057, 374, 27261, 319, 262, 2104, 720, 35, 1404, 2885, 4663, 14, 43421, 1899, 9483, 357, 5171, 1011, 257, 981, 2644, 8, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 366, 76, 48055, 268, 8957, 1, 407, 287, 28686, 13, 268, 2268, 14692, 29904, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 12331, 11, 356, 821, 407, 319, 262, 33974, 1899, 17051, 48, 4572, 13, 220, 1475, 1780, 35713, 8, 198, 220, 220, 220, 220, 220, 220, 220, 8420, 3419, 628, 220, 220, 220, 1303, 1831, 62, 15908, 796, 1057, 11012, 14692, 17946, 62, 15908, 8973, 1343, 12813, 1, 198, 220, 220, 220, 8246, 62, 15908, 796, 28686, 13, 6978, 13, 11201, 392, 85, 945, 7, 5143, 11012, 14692, 17946, 62, 15908, 8973, 1343, 12813, 4943, 198, 220, 220, 220, 8246, 62, 305, 4657, 796, 45144, 92, 29164, 92, 14, 1911, 18982, 7, 5143, 11012, 14692, 305, 4657, 62, 38235, 33116, 1057, 11012, 14692, 305, 4657, 62, 15908, 8973, 8, 628, 220, 220, 220, 611, 1332, 25, 198, 220, 220, 220, 220, 220, 220, 220, 23991, 796, 366, 81, 27261, 532, 615, 71, 1377, 39140, 12, 5143, 23884, 23884, 1911, 18982, 7, 1831, 62, 15908, 11, 8246, 62, 305, 4657, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 23991, 796, 366, 81, 27261, 532, 615, 71, 23884, 23884, 1911, 18982, 7, 1831, 62, 15908, 11, 8246, 62, 305, 4657, 8, 198, 220, 220, 220, 427, 7, 28758, 8, 628, 198, 4299, 12379, 80, 62, 27773, 929, 7, 14894, 62, 83, 16, 28, 25101, 11, 1394, 62, 83, 17, 28, 25101, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1382, 257, 1351, 286, 3696, 319, 262, 17051, 48, 290, 12586, 11, 2198, 11540, 11, 198, 220, 220, 220, 290, 12233, 3696, 319, 262, 17051, 48, 691, 611, 356, 821, 1654, 262, 4351, 373, 4388, 13, 198, 220, 220, 220, 33974, 1899, 290, 327, 16, 6375, 8141, 8246, 3696, 423, 366, 21756, 10987, 1, 287, 262, 1226, 268, 1047, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 366, 76, 48055, 268, 8957, 1, 407, 287, 28686, 13, 268, 2268, 14692, 29904, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 12331, 11, 356, 821, 407, 319, 262, 33974, 1899, 17051, 48, 4572, 13, 220, 1475, 1780, 35713, 8, 198, 220, 220, 220, 220, 220, 220, 220, 8420, 3419, 628, 220, 220, 220, 1303, 1957, 357, 46640, 8, 1351, 198, 220, 220, 220, 4818, 324, 343, 62, 17946, 796, 28686, 13, 6978, 13, 11201, 392, 85, 945, 7, 5143, 11012, 14692, 17946, 62, 15908, 8973, 1343, 12813, 4943, 198, 220, 220, 220, 2393, 4868, 62, 17946, 796, 15095, 13, 4743, 672, 7, 19608, 324, 343, 62, 17946, 1343, 12813, 1174, 1600, 45115, 28, 17821, 8, 198, 220, 220, 220, 1303, 329, 277, 287, 2393, 4868, 62, 17946, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3601, 7, 69, 8, 628, 220, 220, 220, 1303, 6569, 1351, 198, 220, 220, 220, 26498, 796, 37250, 45824, 3256, 1057, 11012, 17816, 305, 4657, 62, 38235, 6, 4357, 705, 7278, 532, 49, 705, 10, 5143, 11012, 14692, 305, 4657, 62, 15908, 8973, 60, 198, 220, 220, 220, 43979, 796, 599, 13, 47, 9654, 7, 22046, 11, 14367, 448, 28, 2777, 13, 47, 4061, 36, 11, 336, 1082, 81, 28, 2777, 13, 47, 4061, 36, 8, 198, 220, 220, 220, 503, 11, 11454, 796, 43979, 13, 10709, 5344, 3419, 198, 220, 220, 220, 503, 796, 503, 13, 12501, 1098, 10786, 40477, 12, 23, 11537, 198, 220, 220, 220, 2393, 4868, 62, 305, 4657, 796, 503, 13, 35312, 7203, 59, 77, 4943, 198, 220, 220, 220, 2393, 4868, 62, 305, 4657, 796, 685, 69, 329, 277, 287, 2393, 4868, 62, 305, 4657, 611, 366, 11097, 407, 287, 277, 290, 18896, 7, 69, 31520, 28, 15, 60, 198, 220, 220, 220, 1303, 329, 277, 287, 2393, 4868, 62, 305, 4657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3601, 7, 69, 8, 628, 220, 220, 220, 1303, 787, 1654, 477, 3696, 423, 7675, 11172, 198, 220, 220, 220, 329, 277, 287, 2393, 4868, 62, 17946, 25, 198, 220, 220, 220, 220, 220, 220, 220, 277, 3672, 796, 277, 13, 35312, 7203, 14, 4943, 58, 12, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 69, 3672, 8, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 611, 277, 3672, 407, 287, 2393, 4868, 62, 305, 4657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 8727, 64, 11, 33172, 277, 3672, 11, 366, 1662, 1043, 287, 6569, 1351, 2474, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8420, 3419, 628, 220, 220, 220, 3601, 7203, 3237, 3696, 287, 7479, 77, 220, 220, 220, 23884, 59, 77, 14150, 587, 9763, 510, 284, 269, 268, 8957, 12, 305, 4657, 526, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 18982, 7, 19608, 324, 343, 62, 17946, 4008, 198, 220, 220, 220, 3601, 7203, 1026, 815, 307, 7477, 284, 12233, 1957, 3696, 19570, 628, 220, 220, 220, 1303, 836, 470, 12233, 777, 3696, 11, 393, 6888, 2476, 606, 198, 220, 220, 220, 8856, 62, 4868, 796, 685, 1911, 5574, 6888, 1600, 366, 10987, 15057, 8973, 628, 220, 220, 220, 1303, 900, 777, 275, 10141, 284, 407, 4781, 262, 12972, 70, 1689, 3696, 198, 220, 220, 220, 611, 1394, 62, 83, 16, 25, 198, 220, 220, 220, 220, 220, 220, 220, 8856, 62, 4868, 13, 33295, 7203, 83, 16, 62, 5143, 4943, 198, 220, 220, 220, 611, 1394, 62, 83, 17, 25, 198, 220, 220, 220, 220, 220, 220, 220, 8856, 62, 4868, 13, 33295, 7203, 83, 17, 62, 5143, 4943, 628, 220, 220, 220, 1303, 783, 12233, 1468, 3696, 11, 1265, 329, 575, 14, 45, 12641, 198, 220, 220, 220, 3601, 7203, 11380, 284, 12233, 1957, 3696, 30, 685, 88, 14, 77, 60, 4943, 198, 220, 220, 220, 611, 5128, 3419, 287, 14631, 88, 2430, 56, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 329, 277, 287, 2393, 4868, 62, 17946, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 33491, 7203, 33172, 37082, 366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 28686, 13, 6978, 13, 4468, 576, 7, 69, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 597, 7, 328, 287, 277, 329, 45329, 287, 8856, 62, 4868, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 5005, 293, 889, 25, 1600, 277, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 28956, 7, 69, 8, 628, 220, 220, 220, 783, 796, 4818, 8079, 13, 2197, 3419, 198, 220, 220, 220, 3601, 7203, 18709, 278, 318, 510, 284, 3128, 40754, 783, 13, 2536, 31387, 7203, 4, 56, 12, 4, 76, 12, 4, 67, 4064, 39, 25, 4, 44, 48774, 628, 198, 4299, 4321, 62, 305, 4657, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 277, 74, 837, 1312, 635, 761, 284, 3551, 257, 2163, 284, 10014, 262, 8246, 198, 220, 220, 220, 3696, 422, 269, 268, 8957, 12, 305, 4657, 329, 43969, 919, 278, 357, 20777, 329, 783, 198, 220, 220, 220, 477, 7587, 4325, 319, 262, 17051, 48, 3644, 8, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3601, 7203, 5303, 537, 600, 4943, 628, 198, 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.284511
1,543
from distutils.core import setup setup( name='PyVinil', version='0.1.0', author='Igor Bonadio', author_email='[email protected]', packages=['pyvinil', 'pyvinil.test'], url='https://github.com/igorbonadio/pyvinil', license='LICENSE.txt', description='PyVinil is a Python library, which uses Vinil (a C library), for creating, reading and writing virtual hard disks.', long_description=open('README.txt').read(), )
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 20519, 53, 259, 346, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15, 3256, 198, 220, 220, 220, 1772, 11639, 40, 7053, 7979, 324, 952, 3256, 198, 220, 220, 220, 1772, 62, 12888, 11639, 36274, 4189, 324, 952, 31, 14816, 13, 785, 3256, 198, 220, 220, 220, 10392, 28, 17816, 9078, 7114, 346, 3256, 705, 9078, 7114, 346, 13, 9288, 6, 4357, 198, 220, 220, 220, 19016, 11639, 5450, 1378, 12567, 13, 785, 14, 36274, 4189, 324, 952, 14, 9078, 7114, 346, 3256, 198, 220, 220, 220, 5964, 11639, 43, 2149, 24290, 13, 14116, 3256, 198, 220, 220, 220, 6764, 11639, 20519, 53, 259, 346, 318, 257, 11361, 5888, 11, 543, 3544, 11820, 346, 357, 64, 327, 5888, 828, 329, 4441, 11, 3555, 290, 3597, 7166, 1327, 32505, 2637, 11, 198, 220, 220, 220, 890, 62, 11213, 28, 9654, 10786, 15675, 11682, 13, 14116, 27691, 961, 22784, 198, 8 ]
2.680473
169
import copy import jsonschema from jsonschema import ValidationError from datetime import datetime from dateutil.tz import tzlocal from botocore import xform_name from botocore.model import ServiceModel from botocore.serialize import create_serializer import botocore.session botocore_session = botocore.session.get_session() botocore_loader = botocore_session.get_component("data_loader")
[ 11748, 4866, 198, 198, 11748, 44804, 684, 2395, 2611, 198, 6738, 44804, 684, 2395, 2611, 1330, 3254, 24765, 12331, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 3128, 22602, 13, 22877, 1330, 256, 89, 12001, 198, 198, 6738, 10214, 420, 382, 1330, 2124, 687, 62, 3672, 198, 6738, 10214, 420, 382, 13, 19849, 1330, 4809, 17633, 198, 6738, 10214, 420, 382, 13, 46911, 1096, 1330, 2251, 62, 46911, 7509, 198, 198, 11748, 10214, 420, 382, 13, 29891, 198, 198, 13645, 420, 382, 62, 29891, 796, 10214, 420, 382, 13, 29891, 13, 1136, 62, 29891, 3419, 198, 13645, 420, 382, 62, 29356, 796, 10214, 420, 382, 62, 29891, 13, 1136, 62, 42895, 7203, 7890, 62, 29356, 4943, 628, 198 ]
3.308333
120
""" bluebuttondev.bbdev FILE: utils Created: 6/16/15 12:11 AM Basic conversion tools """ __author__ = 'Mark Scrimshire:@ekivemark' def email_mask(email=""): """ mask and potentially shorten an email address Useful for communications :param email: :return: """ if email=="": return None domain = "@"+email.split("@")[1] tld = "."+domain.split(".")[1] if settings.DEBUG: print("Domain:",domain) result_email = email[:2]+"**" + domain[:2] + "**" + tld[:2] + "**" return result_email
[ 37811, 198, 17585, 43059, 623, 1990, 13, 11848, 7959, 198, 25664, 25, 3384, 4487, 198, 41972, 25, 718, 14, 1433, 14, 1314, 1105, 25, 1157, 3001, 198, 26416, 11315, 4899, 198, 37811, 198, 834, 9800, 834, 796, 705, 9704, 1446, 3036, 10932, 25, 31, 988, 425, 4102, 6, 628, 628, 198, 198, 4299, 3053, 62, 27932, 7, 12888, 33151, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 9335, 290, 6196, 45381, 281, 3053, 2209, 198, 220, 220, 220, 49511, 329, 8062, 198, 220, 220, 220, 1058, 17143, 3053, 25, 198, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 611, 3053, 855, 1, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6045, 628, 220, 220, 220, 7386, 796, 44212, 1, 10, 12888, 13, 35312, 7203, 31, 4943, 58, 16, 60, 198, 220, 220, 220, 256, 335, 220, 220, 220, 796, 366, 526, 10, 27830, 13, 35312, 7203, 19570, 58, 16, 60, 628, 220, 220, 220, 611, 6460, 13, 30531, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 43961, 25, 1600, 27830, 8, 628, 220, 220, 220, 1255, 62, 12888, 796, 3053, 58, 25, 17, 48688, 1, 1174, 1, 1343, 7386, 58, 25, 17, 60, 1343, 366, 1174, 1, 1343, 256, 335, 58, 25, 17, 60, 1343, 366, 1174, 1, 628, 220, 220, 220, 1441, 1255, 62, 12888 ]
2.417391
230
""" Rewrite spec/functional_specs/policies/caching/caching_allow_policy_spec.rb """ import pytest from testsuite import rawobj from testsuite.capabilities import Capability @pytest.fixture(scope="module") def policy_settings(): "Add caching policy configured as 'caching_type': 'allow'" return rawobj.PolicyConfig("caching", {"caching_type": "allow"}) @pytest.mark.required_capabilities(Capability.SCALING) def test_caching_policy_allow(prod_client, openshift, application): """ Test caching policy with caching mode set to Allow To cache credentials: - make request to production gateway with valid credentials - make request to production gateway with invalid credentials Scale backend-listener down Test if: - response with valid credentials have status_code == 200 - response with same invalid credentials as before have status_code == 403 - response with new invalid credentials have status_code == 200 Scale backend-listener up to old value """ client = prod_client() client.auth = None auth = application.authobj() response = client.get("/", auth=auth) assert response.status_code == 200 response = client.get("/", params={"user_key": ":user_key"}) assert response.status_code == 403 with openshift().scaler.scale("backend-listener", 0): # Test if response succeed on production calls with valid credentials for _ in range(3): response = client.get("/", auth=auth) assert response.status_code == 200 # Test if response fail on production calls with known invalid credentials for _ in range(3): response = client.get("/", params={"user_key": ":user_key"}) assert response.status_code == 403 # Test if response succeed on production calls with unknown invalid credentials for _ in range(3): response = client.get("/", params={"user_key": ":123"}) assert response.status_code == 200
[ 37811, 198, 30003, 6525, 1020, 14, 45124, 62, 4125, 6359, 14, 79, 4160, 444, 14, 66, 8103, 14, 66, 8103, 62, 12154, 62, 30586, 62, 16684, 13, 26145, 198, 37811, 198, 11748, 12972, 9288, 198, 198, 6738, 1332, 2385, 578, 1330, 8246, 26801, 198, 6738, 1332, 2385, 578, 13, 11128, 5738, 1330, 4476, 1799, 628, 198, 31, 9078, 9288, 13, 69, 9602, 7, 29982, 2625, 21412, 4943, 198, 4299, 2450, 62, 33692, 33529, 198, 220, 220, 220, 366, 4550, 40918, 2450, 17839, 355, 705, 66, 8103, 62, 4906, 10354, 705, 12154, 29653, 198, 220, 220, 220, 1441, 8246, 26801, 13, 36727, 16934, 7203, 66, 8103, 1600, 19779, 66, 8103, 62, 4906, 1298, 366, 12154, 20662, 8, 628, 198, 31, 9078, 9288, 13, 4102, 13, 35827, 62, 11128, 5738, 7, 15610, 1799, 13, 6173, 1847, 2751, 8, 198, 4299, 1332, 62, 66, 8103, 62, 30586, 62, 12154, 7, 1676, 67, 62, 16366, 11, 9808, 29323, 11, 3586, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 6208, 40918, 2450, 351, 40918, 4235, 900, 284, 22507, 628, 220, 220, 220, 1675, 12940, 18031, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 787, 2581, 284, 3227, 24308, 351, 4938, 18031, 198, 220, 220, 220, 220, 220, 220, 220, 532, 787, 2581, 284, 3227, 24308, 351, 12515, 18031, 198, 220, 220, 220, 21589, 30203, 12, 4868, 877, 866, 198, 220, 220, 220, 6208, 611, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 2882, 351, 4938, 18031, 423, 3722, 62, 8189, 6624, 939, 198, 220, 220, 220, 220, 220, 220, 220, 532, 2882, 351, 976, 12515, 18031, 355, 878, 423, 3722, 62, 8189, 6624, 38210, 198, 220, 220, 220, 220, 220, 220, 220, 532, 2882, 351, 649, 12515, 18031, 423, 3722, 62, 8189, 6624, 939, 198, 220, 220, 220, 21589, 30203, 12, 4868, 877, 510, 284, 1468, 1988, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 5456, 796, 40426, 62, 16366, 3419, 198, 220, 220, 220, 5456, 13, 18439, 796, 6045, 198, 220, 220, 220, 6284, 796, 3586, 13, 18439, 26801, 3419, 628, 220, 220, 220, 2882, 796, 5456, 13, 1136, 7203, 14, 1600, 6284, 28, 18439, 8, 198, 220, 220, 220, 6818, 2882, 13, 13376, 62, 8189, 6624, 939, 198, 220, 220, 220, 2882, 796, 5456, 13, 1136, 7203, 14, 1600, 42287, 28, 4895, 7220, 62, 2539, 1298, 366, 25, 7220, 62, 2539, 20662, 8, 198, 220, 220, 220, 6818, 2882, 13, 13376, 62, 8189, 6624, 38210, 628, 220, 220, 220, 351, 9808, 29323, 22446, 1416, 36213, 13, 9888, 7203, 1891, 437, 12, 4868, 877, 1600, 657, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 6208, 611, 2882, 6758, 319, 3227, 3848, 351, 4938, 18031, 198, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 287, 2837, 7, 18, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 5456, 13, 1136, 7203, 14, 1600, 6284, 28, 18439, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 2882, 13, 13376, 62, 8189, 6624, 939, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 6208, 611, 2882, 2038, 319, 3227, 3848, 351, 1900, 12515, 18031, 198, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 287, 2837, 7, 18, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 5456, 13, 1136, 7203, 14, 1600, 42287, 28, 4895, 7220, 62, 2539, 1298, 366, 25, 7220, 62, 2539, 20662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 2882, 13, 13376, 62, 8189, 6624, 38210, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 6208, 611, 2882, 6758, 319, 3227, 3848, 351, 6439, 12515, 18031, 198, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 287, 2837, 7, 18, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 5456, 13, 1136, 7203, 14, 1600, 42287, 28, 4895, 7220, 62, 2539, 1298, 366, 25, 10163, 20662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 2882, 13, 13376, 62, 8189, 6624, 939, 198 ]
2.957664
685
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from typing import Any, Optional, Union, cast import pandas as pd from pandas.api.types import is_hashable from pyspark import pandas as ps from pyspark.pandas._typing import Dtype, Name from pyspark.pandas.indexes.base import Index from pyspark.pandas.series import Series class NumericIndex(Index): """ Provide numeric type operations. This is an abstract class. """ pass class IntegerIndex(NumericIndex): """ This is an abstract class for Int64Index. """ pass class Int64Index(IntegerIndex): """ Immutable sequence used for indexing and alignment. The basic object storing axis labels for all pandas objects. Int64Index is a special case of `Index` with purely integer labels. Parameters ---------- data : array-like (1-dimensional) dtype : NumPy dtype (default: int64) copy : bool Make a copy of input ndarray. name : object Name to be stored in the index. See Also -------- Index : The base pandas-on-Spark Index type. Float64Index : A special case of :class:`Index` with purely float labels. Notes ----- An Index instance can **only** contain hashable objects. Examples -------- >>> ps.Int64Index([1, 2, 3]) Int64Index([1, 2, 3], dtype='int64') From a Series: >>> s = ps.Series([1, 2, 3], index=[10, 20, 30]) >>> ps.Int64Index(s) Int64Index([1, 2, 3], dtype='int64') From an Index: >>> idx = ps.Index([1, 2, 3]) >>> ps.Int64Index(idx) Int64Index([1, 2, 3], dtype='int64') """ class Float64Index(NumericIndex): """ Immutable sequence used for indexing and alignment. The basic object storing axis labels for all pandas objects. Float64Index is a special case of `Index` with purely float labels. Parameters ---------- data : array-like (1-dimensional) dtype : NumPy dtype (default: float64) copy : bool Make a copy of input ndarray. name : object Name to be stored in the index. See Also -------- Index : The base pandas-on-Spark Index type. Int64Index : A special case of :class:`Index` with purely integer labels. Notes ----- An Index instance can **only** contain hashable objects. Examples -------- >>> ps.Float64Index([1.0, 2.0, 3.0]) Float64Index([1.0, 2.0, 3.0], dtype='float64') From a Series: >>> s = ps.Series([1, 2, 3], index=[10, 20, 30]) >>> ps.Float64Index(s) Float64Index([1.0, 2.0, 3.0], dtype='float64') From an Index: >>> idx = ps.Index([1, 2, 3]) >>> ps.Float64Index(idx) Float64Index([1.0, 2.0, 3.0], dtype='float64') """ if __name__ == "__main__": _test()
[ 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383, 7054, 37, 16625, 428, 2393, 284, 921, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 198, 2, 357, 1169, 366, 34156, 15341, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 198, 2, 262, 13789, 13, 220, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2, 198, 2, 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, 2, 198, 6738, 19720, 1330, 4377, 11, 32233, 11, 4479, 11, 3350, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 19798, 292, 13, 15042, 13, 19199, 1330, 318, 62, 17831, 540, 198, 198, 6738, 279, 893, 20928, 1330, 19798, 292, 355, 26692, 198, 6738, 279, 893, 20928, 13, 79, 392, 292, 13557, 774, 13886, 1330, 360, 4906, 11, 6530, 198, 6738, 279, 893, 20928, 13, 79, 392, 292, 13, 9630, 274, 13, 8692, 1330, 12901, 198, 6738, 279, 893, 20928, 13, 79, 392, 292, 13, 25076, 1330, 7171, 628, 198, 4871, 399, 39223, 15732, 7, 15732, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 44290, 35575, 2099, 4560, 13, 198, 220, 220, 220, 770, 318, 281, 12531, 1398, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 628, 198, 4871, 34142, 15732, 7, 45, 39223, 15732, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 770, 318, 281, 12531, 1398, 329, 2558, 2414, 15732, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 628, 198, 4871, 2558, 2414, 15732, 7, 46541, 15732, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 9543, 18187, 8379, 973, 329, 6376, 278, 290, 19114, 13, 383, 4096, 2134, 198, 220, 220, 220, 23069, 16488, 14722, 329, 477, 19798, 292, 5563, 13, 2558, 2414, 15732, 318, 257, 2041, 1339, 198, 220, 220, 220, 286, 4600, 15732, 63, 351, 14177, 18253, 14722, 13, 628, 220, 220, 220, 40117, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 1366, 1058, 7177, 12, 2339, 357, 16, 12, 19577, 8, 198, 220, 220, 220, 288, 4906, 1058, 31835, 20519, 288, 4906, 357, 12286, 25, 493, 2414, 8, 198, 220, 220, 220, 4866, 1058, 20512, 198, 220, 220, 220, 220, 220, 220, 220, 6889, 257, 4866, 286, 5128, 299, 67, 18747, 13, 198, 220, 220, 220, 1438, 1058, 2134, 198, 220, 220, 220, 220, 220, 220, 220, 6530, 284, 307, 8574, 287, 262, 6376, 13, 628, 220, 220, 220, 4091, 4418, 198, 220, 220, 220, 24200, 198, 220, 220, 220, 12901, 1058, 383, 2779, 19798, 292, 12, 261, 12, 4561, 668, 12901, 2099, 13, 198, 220, 220, 220, 48436, 2414, 15732, 1058, 317, 2041, 1339, 286, 1058, 4871, 25, 63, 15732, 63, 351, 14177, 12178, 14722, 13, 628, 220, 220, 220, 11822, 198, 220, 220, 220, 37404, 198, 220, 220, 220, 1052, 12901, 4554, 460, 12429, 8807, 1174, 3994, 12234, 540, 5563, 13, 628, 220, 220, 220, 21066, 198, 220, 220, 220, 24200, 198, 220, 220, 220, 13163, 26692, 13, 5317, 2414, 15732, 26933, 16, 11, 362, 11, 513, 12962, 198, 220, 220, 220, 2558, 2414, 15732, 26933, 16, 11, 362, 11, 513, 4357, 288, 4906, 11639, 600, 2414, 11537, 628, 220, 220, 220, 3574, 257, 7171, 25, 628, 220, 220, 220, 13163, 264, 796, 26692, 13, 27996, 26933, 16, 11, 362, 11, 513, 4357, 6376, 41888, 940, 11, 1160, 11, 1542, 12962, 198, 220, 220, 220, 13163, 26692, 13, 5317, 2414, 15732, 7, 82, 8, 198, 220, 220, 220, 2558, 2414, 15732, 26933, 16, 11, 362, 11, 513, 4357, 288, 4906, 11639, 600, 2414, 11537, 628, 220, 220, 220, 3574, 281, 12901, 25, 628, 220, 220, 220, 13163, 4686, 87, 796, 26692, 13, 15732, 26933, 16, 11, 362, 11, 513, 12962, 198, 220, 220, 220, 13163, 26692, 13, 5317, 2414, 15732, 7, 312, 87, 8, 198, 220, 220, 220, 2558, 2414, 15732, 26933, 16, 11, 362, 11, 513, 4357, 288, 4906, 11639, 600, 2414, 11537, 198, 220, 220, 220, 37227, 628, 198, 4871, 48436, 2414, 15732, 7, 45, 39223, 15732, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 9543, 18187, 8379, 973, 329, 6376, 278, 290, 19114, 13, 383, 4096, 2134, 198, 220, 220, 220, 23069, 16488, 14722, 329, 477, 19798, 292, 5563, 13, 48436, 2414, 15732, 318, 257, 2041, 1339, 198, 220, 220, 220, 286, 4600, 15732, 63, 351, 14177, 12178, 14722, 13, 628, 220, 220, 220, 40117, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 1366, 1058, 7177, 12, 2339, 357, 16, 12, 19577, 8, 198, 220, 220, 220, 288, 4906, 1058, 31835, 20519, 288, 4906, 357, 12286, 25, 12178, 2414, 8, 198, 220, 220, 220, 4866, 1058, 20512, 198, 220, 220, 220, 220, 220, 220, 220, 6889, 257, 4866, 286, 5128, 299, 67, 18747, 13, 198, 220, 220, 220, 1438, 1058, 2134, 198, 220, 220, 220, 220, 220, 220, 220, 6530, 284, 307, 8574, 287, 262, 6376, 13, 628, 220, 220, 220, 4091, 4418, 198, 220, 220, 220, 24200, 198, 220, 220, 220, 12901, 1058, 383, 2779, 19798, 292, 12, 261, 12, 4561, 668, 12901, 2099, 13, 198, 220, 220, 220, 2558, 2414, 15732, 1058, 317, 2041, 1339, 286, 1058, 4871, 25, 63, 15732, 63, 351, 14177, 18253, 14722, 13, 628, 220, 220, 220, 11822, 198, 220, 220, 220, 37404, 198, 220, 220, 220, 1052, 12901, 4554, 460, 12429, 8807, 1174, 3994, 12234, 540, 5563, 13, 628, 220, 220, 220, 21066, 198, 220, 220, 220, 24200, 198, 220, 220, 220, 13163, 26692, 13, 43879, 2414, 15732, 26933, 16, 13, 15, 11, 362, 13, 15, 11, 513, 13, 15, 12962, 198, 220, 220, 220, 48436, 2414, 15732, 26933, 16, 13, 15, 11, 362, 13, 15, 11, 513, 13, 15, 4357, 288, 4906, 11639, 22468, 2414, 11537, 628, 220, 220, 220, 3574, 257, 7171, 25, 628, 220, 220, 220, 13163, 264, 796, 26692, 13, 27996, 26933, 16, 11, 362, 11, 513, 4357, 6376, 41888, 940, 11, 1160, 11, 1542, 12962, 198, 220, 220, 220, 13163, 26692, 13, 43879, 2414, 15732, 7, 82, 8, 198, 220, 220, 220, 48436, 2414, 15732, 26933, 16, 13, 15, 11, 362, 13, 15, 11, 513, 13, 15, 4357, 288, 4906, 11639, 22468, 2414, 11537, 628, 220, 220, 220, 3574, 281, 12901, 25, 628, 220, 220, 220, 13163, 4686, 87, 796, 26692, 13, 15732, 26933, 16, 11, 362, 11, 513, 12962, 198, 220, 220, 220, 13163, 26692, 13, 43879, 2414, 15732, 7, 312, 87, 8, 198, 220, 220, 220, 48436, 2414, 15732, 26933, 16, 13, 15, 11, 362, 13, 15, 11, 513, 13, 15, 4357, 288, 4906, 11639, 22468, 2414, 11537, 198, 220, 220, 220, 37227, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 4808, 9288, 3419, 198 ]
2.859821
1,227
from statsmodels.graphics.tsaplots import plot_acf from statsmodels.graphics.tsaplots import plot_pacf from sklearn.manifold import TSNE import matplotlib.pyplot as plt import pandas as pd import numpy as np __author__ = "Jose Fernando Montoya Cardona" __credits__ = ["Jose Fernando Montoya Cardona"] __email__ = "[email protected]"
[ 6738, 9756, 27530, 13, 70, 11549, 13, 912, 64, 489, 1747, 1330, 7110, 62, 330, 69, 198, 6738, 9756, 27530, 13, 70, 11549, 13, 912, 64, 489, 1747, 1330, 7110, 62, 33587, 69, 198, 6738, 1341, 35720, 13, 805, 361, 727, 1330, 26136, 12161, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 834, 9800, 834, 796, 366, 23409, 31063, 5575, 23790, 5172, 4450, 1, 198, 834, 66, 20696, 834, 796, 14631, 23409, 31063, 5575, 23790, 5172, 4450, 8973, 198, 834, 12888, 834, 796, 366, 73, 296, 756, 726, 330, 31, 18835, 13, 15532, 13, 1073, 1, 628, 628, 628 ]
2.940171
117
expected_output = { "power_stack": { "Powerstack-1": { "switch_num": 1, "allocated_power": 200, "topology": "Stndaln", "unused_power": 485, "power_supply_num": 1, "total_power": 715, "mode": "SP-PS", "reserved_power": 30, }, "Powerstack-12": { "switch_num": 1, "allocated_power": 200, "topology": "Stndaln", "unused_power": 485, "power_supply_num": 1, "total_power": 715, "mode": "SP-PS", "reserved_power": 30, }, "Powerstack-11": { "switch_num": 1, "allocated_power": 295, "topology": "Stndaln", "unused_power": 390, "power_supply_num": 1, "total_power": 715, "mode": "SP-PS", "reserved_power": 30, }, } }
[ 40319, 62, 22915, 796, 1391, 220, 198, 220, 220, 220, 366, 6477, 62, 25558, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 13434, 25558, 12, 16, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 31943, 62, 22510, 1298, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 439, 10533, 62, 6477, 1298, 939, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 4852, 1435, 1298, 366, 1273, 358, 282, 77, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 403, 1484, 62, 6477, 1298, 4764, 20, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 6477, 62, 18608, 306, 62, 22510, 1298, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 23350, 62, 6477, 1298, 767, 1314, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 14171, 1298, 366, 4303, 12, 3705, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 411, 8520, 62, 6477, 1298, 1542, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 366, 13434, 25558, 12, 1065, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 31943, 62, 22510, 1298, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 439, 10533, 62, 6477, 1298, 939, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 4852, 1435, 1298, 366, 1273, 358, 282, 77, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 403, 1484, 62, 6477, 1298, 4764, 20, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 6477, 62, 18608, 306, 62, 22510, 1298, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 23350, 62, 6477, 1298, 767, 1314, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 14171, 1298, 366, 4303, 12, 3705, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 411, 8520, 62, 6477, 1298, 1542, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 366, 13434, 25558, 12, 1157, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 31943, 62, 22510, 1298, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 439, 10533, 62, 6477, 1298, 34772, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 4852, 1435, 1298, 366, 1273, 358, 282, 77, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 403, 1484, 62, 6477, 1298, 33882, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 6477, 62, 18608, 306, 62, 22510, 1298, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 23350, 62, 6477, 1298, 767, 1314, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 14171, 1298, 366, 4303, 12, 3705, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 411, 8520, 62, 6477, 1298, 1542, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 1782, 198, 92, 198 ]
1.621806
587
#!/usr/bin/env python3 """ Created on 16 Nov 2020 @author: Bruno Beloff ([email protected]) """ import json from scs_core.data.json import JSONify from scs_core.sample.climate_sample import ClimateSample # -------------------------------------------------------------------------------------------------------------------- # run... jstr = '{"tag": "scs-ap1-6", "rec": "2019-01-22T13:55:54Z", "val": {"hmd": 49.3, "tmp": 21.5, "bar": {"pA": 99.8}}}' print(jstr) print("-") jdict = json.loads(jstr) sample = ClimateSample.construct_from_jdict(jdict) print(sample) print("-") print(JSONify.dumps(sample))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 198, 41972, 319, 1467, 5267, 12131, 198, 198, 31, 9800, 25, 31045, 3944, 2364, 357, 1671, 36909, 13, 6667, 2364, 31, 35782, 1073, 5773, 4234, 13, 785, 8, 198, 37811, 198, 198, 11748, 33918, 198, 198, 6738, 629, 82, 62, 7295, 13, 7890, 13, 17752, 1330, 19449, 1958, 198, 6738, 629, 82, 62, 7295, 13, 39873, 13, 42570, 62, 39873, 1330, 13963, 36674, 628, 198, 2, 16529, 3880, 19351, 198, 2, 1057, 986, 198, 198, 73, 2536, 796, 705, 4895, 12985, 1298, 366, 1416, 82, 12, 499, 16, 12, 21, 1600, 366, 8344, 1298, 366, 23344, 12, 486, 12, 1828, 51, 1485, 25, 2816, 25, 4051, 57, 1600, 366, 2100, 1298, 19779, 71, 9132, 1298, 5125, 13, 18, 11, 366, 22065, 1298, 2310, 13, 20, 11, 366, 5657, 1298, 19779, 79, 32, 1298, 7388, 13, 23, 42535, 6, 198, 4798, 7, 73, 2536, 8, 198, 4798, 7203, 12, 4943, 198, 198, 73, 11600, 796, 33918, 13, 46030, 7, 73, 2536, 8, 198, 198, 39873, 796, 13963, 36674, 13, 41571, 62, 6738, 62, 73, 11600, 7, 73, 11600, 8, 198, 4798, 7, 39873, 8, 198, 4798, 7203, 12, 4943, 198, 198, 4798, 7, 40386, 1958, 13, 67, 8142, 7, 39873, 4008, 628 ]
2.957746
213
import cv2 import subprocess imageURI = "dummy.png" image = cv2.imread(imageURI) cv2.imshow("Focus window", image) # Device type, simple check isIOS = True scriptPath = None if isIOS: scriptPath = "./monkey-scripts/monkey-screenshot-ios.sh" else: scriptPath = "./monkey-scripts/monkey-screenshot-android.sh" while True: key = cv2.waitKey(1) if key == ord("q"): print("EXIT!") break elif key == ord("p"): print("Store positive: ") subprocess.run('bash %s positive' % (scriptPath), shell=True) elif key == ord("n"): print("Store negative: ") subprocess.run('bash %s negative' % (scriptPath), shell=True)
[ 11748, 269, 85, 17, 198, 11748, 850, 14681, 198, 198, 9060, 47269, 796, 366, 67, 13513, 13, 11134, 1, 198, 9060, 796, 269, 85, 17, 13, 320, 961, 7, 9060, 47269, 8, 198, 198, 33967, 17, 13, 320, 12860, 7203, 34888, 4324, 1600, 2939, 8, 198, 198, 2, 16232, 2099, 11, 2829, 2198, 198, 271, 40, 2640, 796, 6407, 198, 12048, 15235, 796, 6045, 198, 198, 361, 318, 40, 2640, 25, 198, 220, 220, 220, 4226, 15235, 796, 366, 19571, 49572, 12, 46521, 14, 49572, 12, 1416, 26892, 12, 4267, 13, 1477, 1, 198, 17772, 25, 198, 220, 220, 220, 4226, 15235, 796, 366, 19571, 49572, 12, 46521, 14, 49572, 12, 1416, 26892, 12, 19411, 13, 1477, 1, 198, 198, 4514, 6407, 25, 198, 220, 220, 220, 1994, 796, 269, 85, 17, 13, 17077, 9218, 7, 16, 8, 198, 220, 220, 220, 611, 1994, 6624, 2760, 7203, 80, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 6369, 2043, 2474, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 220, 220, 220, 1288, 361, 1994, 6624, 2760, 7203, 79, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 22658, 3967, 25, 366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 850, 14681, 13, 5143, 10786, 41757, 4064, 82, 3967, 6, 4064, 357, 12048, 15235, 828, 7582, 28, 17821, 8, 198, 220, 220, 220, 1288, 361, 1994, 6624, 2760, 7203, 77, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 22658, 4633, 25, 366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 850, 14681, 13, 5143, 10786, 41757, 4064, 82, 4633, 6, 4064, 357, 12048, 15235, 828, 7582, 28, 17821, 8, 198 ]
2.394366
284
import pydoodle c = pydoodle.Compiler(clientId="client-id", clientSecret="client-secret") with open(file="test2.py") as f: script = f.read() f.close() result = c.execute(script=script, language="python3", stdIn="1st Input ||2nd Input") # Double pipe(||) is used to separate multiple inputs. print(result.output)
[ 11748, 279, 5173, 27106, 198, 198, 66, 796, 279, 5173, 27106, 13, 7293, 5329, 7, 16366, 7390, 2625, 16366, 12, 312, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5456, 23725, 2625, 16366, 12, 21078, 4943, 198, 4480, 1280, 7, 7753, 2625, 9288, 17, 13, 9078, 4943, 355, 277, 25, 198, 220, 220, 220, 4226, 796, 277, 13, 961, 3419, 198, 220, 220, 220, 277, 13, 19836, 3419, 198, 20274, 796, 269, 13, 41049, 7, 12048, 28, 12048, 11, 3303, 2625, 29412, 18, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14367, 818, 2625, 16, 301, 23412, 8614, 17, 358, 23412, 4943, 220, 1303, 11198, 12656, 7, 15886, 8, 318, 973, 284, 4553, 3294, 17311, 13, 198, 4798, 7, 20274, 13, 22915, 8, 198 ]
2.403974
151
import random
[ 11748, 4738, 198 ]
4.666667
3
# Importing the Kratos Library import KratosMultiphysics import KratosMultiphysics.KratosUnittest as KratosUnittest from KratosMultiphysics.modelers.delete_model_parts_modeler import DeleteModelPartsModeler if __name__ == '__main__': KratosMultiphysics.Logger.GetDefaultOutput().SetSeverity(KratosMultiphysics.Logger.Severity.WARNING) KratosUnittest.main()
[ 2, 17267, 278, 262, 509, 10366, 418, 10074, 198, 11748, 509, 10366, 418, 15205, 13323, 23154, 198, 11748, 509, 10366, 418, 15205, 13323, 23154, 13, 42, 10366, 418, 3118, 715, 395, 355, 509, 10366, 418, 3118, 715, 395, 198, 6738, 509, 10366, 418, 15205, 13323, 23154, 13, 19849, 364, 13, 33678, 62, 19849, 62, 42632, 62, 19849, 263, 1330, 23520, 17633, 42670, 17633, 263, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 509, 10366, 418, 15205, 13323, 23154, 13, 11187, 1362, 13, 3855, 19463, 26410, 22446, 7248, 50, 964, 414, 7, 42, 10366, 418, 15205, 13323, 23154, 13, 11187, 1362, 13, 50, 964, 414, 13, 31502, 8, 198, 220, 220, 220, 509, 10366, 418, 3118, 715, 395, 13, 12417, 3419 ]
2.851563
128
# Generated by Django 3.1.7 on 2021-03-31 22:21 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 22, 319, 33448, 12, 3070, 12, 3132, 2534, 25, 2481, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from sbws.util.filelock import FileLock import os import json from .json import CustomDecoder, CustomEncoder class State: """ `json` wrapper to read a json file every time it gets a key and to write to the file every time a key is set. Every time a key is got or set, the file is locked, to atomically access and update the file across threads and across processes. >>> state = State('foo.state') >>> # state == {} >>> state['linux'] = True >>> # 'foo.state' now exists on disk with the JSON for {'linux': True} >>> # We read 'foo.state' from disk in order to get the most up-to-date >>> # state info. Pretend another process has updated 'linux' to be >>> # False >>> state['linux'] >>> # returns False >>> # Pretend another process has added the user's age to the state file. >>> # As before, we read the state file from disk for the most >>> # up-to-date info. >>> state['age'] >>> # Returns 14 >>> # We now set their name. We read the state file first, set the option, >>> # and then write it out. >>> state['name'] = 'John' >>> # We can do many of the same things with a State object as with a dict >>> for key in state: print(key) >>> # Prints 'linux', 'age', and 'name' """ def get(self, key, d=None): """ Implements a dictionary ``get`` method reading and locking a json file. """ self._state = self._read() return self._state.get(key, d) def count(self, k): """ Returns the length if the key value is a list or the sum of number if the key value is a list of list or the key value or None if the state doesn't have the key. """ if self.get(k): if isinstance(self._state[k], list): if isinstance(self._state[k][0], list): return sum(map(lambda x: x[1], self._state[k])) return len(self._state[k]) return self.get(k) return None
[ 6738, 264, 65, 18504, 13, 22602, 13, 7753, 5354, 1330, 9220, 25392, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 6738, 764, 17752, 1330, 8562, 10707, 12342, 11, 8562, 27195, 12342, 628, 198, 4871, 1812, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 4600, 17752, 63, 29908, 284, 1100, 257, 33918, 2393, 790, 640, 340, 3011, 257, 1994, 290, 284, 3551, 198, 220, 220, 220, 284, 262, 2393, 790, 640, 257, 1994, 318, 900, 13, 628, 220, 220, 220, 3887, 640, 257, 1994, 318, 1392, 393, 900, 11, 262, 2393, 318, 8970, 11, 284, 22037, 1146, 1895, 198, 220, 220, 220, 290, 4296, 262, 2393, 1973, 14390, 290, 1973, 7767, 13, 628, 220, 220, 220, 13163, 1181, 796, 1812, 10786, 21943, 13, 5219, 11537, 198, 220, 220, 220, 13163, 1303, 1181, 6624, 23884, 628, 220, 220, 220, 13163, 1181, 17816, 23289, 20520, 796, 6407, 198, 220, 220, 220, 13163, 1303, 705, 21943, 13, 5219, 6, 783, 7160, 319, 11898, 351, 262, 19449, 329, 1391, 6, 23289, 10354, 6407, 92, 628, 220, 220, 220, 13163, 1303, 775, 1100, 705, 21943, 13, 5219, 6, 422, 11898, 287, 1502, 284, 651, 262, 749, 510, 12, 1462, 12, 4475, 198, 220, 220, 220, 13163, 1303, 220, 220, 220, 220, 1181, 7508, 13, 37123, 437, 1194, 1429, 468, 6153, 705, 23289, 6, 284, 307, 198, 220, 220, 220, 13163, 1303, 220, 220, 220, 220, 10352, 198, 220, 220, 220, 13163, 1181, 17816, 23289, 20520, 198, 220, 220, 220, 13163, 1303, 5860, 10352, 628, 220, 220, 220, 13163, 1303, 37123, 437, 1194, 1429, 468, 2087, 262, 2836, 338, 2479, 284, 262, 1181, 2393, 13, 198, 220, 220, 220, 13163, 1303, 220, 220, 220, 220, 1081, 878, 11, 356, 1100, 262, 1181, 2393, 422, 11898, 329, 262, 749, 198, 220, 220, 220, 13163, 1303, 220, 220, 220, 220, 510, 12, 1462, 12, 4475, 7508, 13, 198, 220, 220, 220, 13163, 1181, 17816, 496, 20520, 198, 220, 220, 220, 13163, 1303, 16409, 1478, 628, 220, 220, 220, 13163, 1303, 775, 783, 900, 511, 1438, 13, 775, 1100, 262, 1181, 2393, 717, 11, 900, 262, 3038, 11, 198, 220, 220, 220, 13163, 1303, 220, 220, 220, 220, 290, 788, 3551, 340, 503, 13, 198, 220, 220, 220, 13163, 1181, 17816, 3672, 20520, 796, 705, 7554, 6, 628, 220, 220, 220, 13163, 1303, 775, 460, 466, 867, 286, 262, 976, 1243, 351, 257, 1812, 2134, 355, 351, 257, 8633, 198, 220, 220, 220, 13163, 329, 1994, 287, 1181, 25, 3601, 7, 2539, 8, 198, 220, 220, 220, 13163, 1303, 12578, 82, 705, 23289, 3256, 705, 496, 3256, 290, 705, 3672, 6, 628, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 651, 7, 944, 11, 1994, 11, 288, 28, 14202, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1846, 1154, 902, 257, 22155, 7559, 1136, 15506, 2446, 3555, 290, 22656, 198, 220, 220, 220, 220, 220, 220, 220, 257, 33918, 2393, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 5219, 796, 2116, 13557, 961, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 5219, 13, 1136, 7, 2539, 11, 288, 8, 628, 220, 220, 220, 825, 954, 7, 944, 11, 479, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 262, 4129, 611, 262, 1994, 1988, 318, 257, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 393, 262, 2160, 286, 1271, 611, 262, 1994, 1988, 318, 257, 1351, 286, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 393, 262, 1994, 1988, 198, 220, 220, 220, 220, 220, 220, 220, 393, 6045, 611, 262, 1181, 1595, 470, 423, 262, 1994, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 1136, 7, 74, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 39098, 7, 944, 13557, 5219, 58, 74, 4357, 1351, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 39098, 7, 944, 13557, 5219, 58, 74, 7131, 15, 4357, 1351, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2160, 7, 8899, 7, 50033, 2124, 25, 2124, 58, 16, 4357, 2116, 13557, 5219, 58, 74, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 18896, 7, 944, 13557, 5219, 58, 74, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 1136, 7, 74, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6045, 198 ]
2.581773
801
# Day 9: Smoke Basin # Leaderboard Rank: 60 / 20 from utils import FiniteGrid, get_input from collections import Counter if __name__ == '__main__': main(get_input())
[ 2, 3596, 860, 25, 25416, 32666, 198, 2, 10540, 3526, 10916, 25, 3126, 1220, 1160, 198, 198, 6738, 3384, 4487, 1330, 4463, 578, 41339, 11, 651, 62, 15414, 198, 6738, 17268, 1330, 15034, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 7, 1136, 62, 15414, 28955, 198 ]
3.052632
57
from __future__ import unicode_literals import ply.lex as lex from ply.lex import TOKEN from .exceptions import DjangoQLLexerError
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 35960, 13, 2588, 355, 31191, 198, 6738, 35960, 13, 2588, 1330, 5390, 43959, 198, 198, 6738, 764, 1069, 11755, 1330, 37770, 48, 3069, 1069, 263, 12331, 628 ]
3.35
40
#AUTHOR: Rio Cantre #Python3 Concept: Adventure Game #GITHUB: https://github.com/RioCantre import time import random weather = ["sunny", "rainy", "stormy", "windy", "snowy", "dark"] ambience = random.choice(weather) tools = ["flashlight", "stick", "bat", "gun", "phone", "knife"] weapon = random.choice(tools) emotions = ["scared", "tired", "nervours", "crying", "sweating"] condition = random.choice(emotions) play_game()
[ 2, 32, 24318, 1581, 25, 220, 15338, 16821, 260, 198, 2, 37906, 18, 26097, 25, 9553, 3776, 198, 2, 38, 10554, 10526, 25, 3740, 1378, 12567, 13, 785, 14, 49, 952, 34, 415, 260, 628, 198, 11748, 640, 198, 11748, 4738, 198, 198, 23563, 796, 14631, 82, 16948, 1600, 366, 3201, 88, 1600, 366, 12135, 88, 1600, 366, 7972, 88, 1600, 366, 82, 2197, 88, 1600, 366, 21953, 8973, 198, 4131, 1240, 796, 4738, 13, 25541, 7, 23563, 8, 198, 31391, 796, 14631, 34167, 2971, 1600, 366, 13915, 1600, 366, 8664, 1600, 366, 7145, 1600, 366, 4862, 1600, 366, 48810, 8973, 198, 28741, 796, 4738, 13, 25541, 7, 31391, 8, 198, 368, 36083, 796, 14631, 1416, 1144, 1600, 366, 83, 1202, 1600, 366, 77, 712, 4662, 1600, 366, 66, 14992, 1600, 366, 46280, 803, 8973, 198, 31448, 796, 4738, 13, 25541, 7, 368, 36083, 8, 628, 628, 628, 628, 198, 198, 1759, 62, 6057, 3419, 198 ]
2.794872
156
from app.day17_2 import cross2d from app.day17_2 import len_route from app.day17_2 import all_sub_lists from app.day17_2 import possible_register_values from app.day17_2 import has_possible_route
[ 6738, 598, 13, 820, 1558, 62, 17, 1330, 3272, 17, 67, 198, 6738, 598, 13, 820, 1558, 62, 17, 1330, 18896, 62, 38629, 198, 6738, 598, 13, 820, 1558, 62, 17, 1330, 477, 62, 7266, 62, 20713, 198, 6738, 598, 13, 820, 1558, 62, 17, 1330, 1744, 62, 30238, 62, 27160, 198, 6738, 598, 13, 820, 1558, 62, 17, 1330, 468, 62, 79, 4733, 62, 38629, 628 ]
2.940299
67
from biopanning_data_bank.bdb_tables.tables import ( BDB_Entry, BDB_Database) from biopanning_data_bank.bdb_tables.fields import ( SOTMC_FIELDS) class SOTMC(BDB_Entry): """ SOTMC entry container from Biopanning Data Bank SOTMC Database. """
[ 6738, 3182, 404, 272, 768, 62, 7890, 62, 17796, 13, 65, 9945, 62, 83, 2977, 13, 83, 2977, 1330, 357, 198, 220, 220, 220, 220, 220, 220, 220, 347, 11012, 62, 30150, 11, 347, 11012, 62, 38105, 8, 198, 6738, 3182, 404, 272, 768, 62, 7890, 62, 17796, 13, 65, 9945, 62, 83, 2977, 13, 25747, 1330, 357, 198, 220, 220, 220, 220, 220, 220, 220, 311, 2394, 9655, 62, 11674, 3698, 5258, 8, 628, 198, 198, 4871, 311, 2394, 9655, 7, 33, 11012, 62, 30150, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 311, 2394, 9655, 5726, 9290, 422, 8436, 404, 272, 768, 6060, 5018, 311, 2394, 9655, 24047, 13, 198, 220, 220, 220, 37227, 198 ]
2.285714
119
#------------------------------------------------------------------------------ # Copyright (c) 2013-2017, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. #------------------------------------------------------------------------------ from atom.api import Typed from . import compiler_common as cmn class BaseBlockCompiler(cmn.CompilerBase): """ The base class of the block compilers. """ #: The set of local names for the compiler. local_names = Typed(set, ()) #: A mapping of ast node -> compiler node index for the block. index_map = Typed(dict, ()) def parent_index(self): """ Get the node index for the parent node. Returns ------- result : int The compiler node index for the node represented by the current parent ast node. """ return self.index_map[self.ancestor()] class FirstPassBlockCompiler(BaseBlockCompiler): """ The first pass block compiler. This is a base class for the first pass compilers for the enamldef and template block definitions. """ #: A mapping of auxiliary ast node -> compiler node index. aux_index_map = Typed(dict, ()) class SecondPassBlockCompiler(BaseBlockCompiler): """ The second pass block compiler. This is a base class for the second pass compilers for the enamldef and template block definitions. """
[ 2, 10097, 26171, 198, 2, 15069, 357, 66, 8, 2211, 12, 5539, 11, 399, 14913, 291, 7712, 4816, 13, 198, 2, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 40499, 347, 10305, 13789, 13, 198, 2, 198, 2, 383, 1336, 5964, 318, 287, 262, 2393, 38559, 24290, 11, 9387, 351, 428, 3788, 13, 198, 2, 10097, 26171, 198, 6738, 22037, 13, 15042, 1330, 17134, 276, 198, 198, 6738, 764, 1330, 17050, 62, 11321, 355, 269, 10295, 628, 198, 4871, 7308, 12235, 7293, 5329, 7, 66, 10295, 13, 7293, 5329, 14881, 2599, 198, 220, 220, 220, 37227, 383, 2779, 1398, 286, 262, 2512, 552, 34393, 13, 628, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 25, 383, 900, 286, 1957, 3891, 329, 262, 17050, 13, 198, 220, 220, 220, 1957, 62, 14933, 796, 17134, 276, 7, 2617, 11, 32865, 628, 220, 220, 220, 1303, 25, 317, 16855, 286, 6468, 10139, 4613, 17050, 10139, 6376, 329, 262, 2512, 13, 198, 220, 220, 220, 6376, 62, 8899, 796, 17134, 276, 7, 11600, 11, 32865, 628, 220, 220, 220, 825, 2560, 62, 9630, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3497, 262, 10139, 6376, 329, 262, 2560, 10139, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16409, 198, 220, 220, 220, 220, 220, 220, 220, 35656, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 1058, 493, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 383, 17050, 10139, 6376, 329, 262, 10139, 7997, 416, 262, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 2560, 6468, 10139, 13, 628, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 9630, 62, 8899, 58, 944, 13, 1192, 395, 273, 3419, 60, 628, 198, 4871, 3274, 14478, 12235, 7293, 5329, 7, 14881, 12235, 7293, 5329, 2599, 198, 220, 220, 220, 37227, 383, 717, 1208, 2512, 17050, 13, 628, 220, 220, 220, 770, 318, 257, 2779, 1398, 329, 262, 717, 1208, 552, 34393, 329, 262, 551, 321, 335, 891, 198, 220, 220, 220, 290, 11055, 2512, 17336, 13, 628, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 25, 317, 16855, 286, 37419, 6468, 10139, 4613, 17050, 10139, 6376, 13, 198, 220, 220, 220, 27506, 62, 9630, 62, 8899, 796, 17134, 276, 7, 11600, 11, 32865, 628, 198, 4871, 5498, 14478, 12235, 7293, 5329, 7, 14881, 12235, 7293, 5329, 2599, 198, 220, 220, 220, 37227, 383, 1218, 1208, 2512, 17050, 13, 628, 220, 220, 220, 770, 318, 257, 2779, 1398, 329, 262, 1218, 1208, 552, 34393, 329, 262, 551, 321, 335, 891, 198, 220, 220, 220, 290, 11055, 2512, 17336, 13, 628, 220, 220, 220, 37227, 198 ]
3.327473
455
from .base import Tokenizer, TokenizerFactory
[ 6738, 764, 8692, 1330, 29130, 7509, 11, 29130, 7509, 22810, 198 ]
4.181818
11
from pwn import * import requests import time import re for i in range(101,125): try: ip='172.20.{}.101'.format(str(i)) flag=main(ip) print ip,flag time.sleep(11) except: print 'wrong'
[ 6738, 279, 675, 1330, 1635, 201, 198, 11748, 7007, 201, 198, 11748, 640, 201, 198, 11748, 302, 201, 198, 201, 198, 197, 201, 198, 201, 198, 1640, 1312, 287, 2837, 7, 8784, 11, 11623, 2599, 201, 198, 197, 28311, 25, 201, 198, 197, 197, 541, 11639, 23628, 13, 1238, 13, 90, 27422, 8784, 4458, 18982, 7, 2536, 7, 72, 4008, 201, 198, 197, 197, 32109, 28, 12417, 7, 541, 8, 201, 198, 197, 197, 4798, 20966, 11, 32109, 201, 198, 197, 197, 2435, 13, 42832, 7, 1157, 8, 201, 198, 197, 16341, 25, 201, 198, 197, 197, 4798, 705, 36460, 6 ]
2.118812
101
# -*- coding: utf-8 -*- """ Created on Mon Mar 7 15:08:04 2022 @author: Sandesh Jain """ import tensorflow as tf import numpy as np import os from tensorflow.keras.models import Model from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.layers import (Conv2D, Dense, Flatten, Input, Lambda, MaxPooling2D, Dropout) train_gen = ImageDataGenerator(rescale =1./255, shear_range =0.2, zoom_range = 0.2, horizontal_flip =True) test_gen = ImageDataGenerator(rescale = 1./255) train_set = train_gen.flow_from_directory('C:/Users/Sandesh Jain/OneDrive/Documents/Acads_VT/SEM3/dump/dogs-vs-cats/train', target_size=(64,64), batch_size= 32, class_mode='binary') test_set = test_gen.flow_from_directory('C:/Users/Sandesh Jain/OneDrive/Documents/Acads_VT/SEM3/dump/dogs-vs-cats/test', target_size=(64,64), batch_size= 32, class_mode='binary') dc_model = build_cat_dog_model() dc_model.fit_generator(train_set, epochs = 30, validation_data =test_set)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 2892, 1526, 220, 767, 1315, 25, 2919, 25, 3023, 33160, 201, 198, 201, 198, 31, 9800, 25, 3837, 5069, 449, 391, 201, 198, 37811, 201, 198, 201, 198, 11748, 11192, 273, 11125, 355, 48700, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 28686, 201, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 27530, 1330, 9104, 201, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 3866, 36948, 13, 9060, 1330, 7412, 6601, 8645, 1352, 201, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 75, 6962, 1330, 357, 3103, 85, 17, 35, 11, 360, 1072, 11, 1610, 41769, 11, 23412, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21114, 6814, 11, 5436, 27201, 278, 17, 35, 11, 14258, 448, 8, 201, 198, 201, 198, 201, 198, 201, 198, 27432, 62, 5235, 796, 7412, 6601, 8645, 1352, 7, 411, 38765, 796, 16, 19571, 13381, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 673, 283, 62, 9521, 796, 15, 13, 17, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19792, 62, 9521, 796, 657, 13, 17, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16021, 62, 2704, 541, 796, 17821, 8, 201, 198, 201, 198, 9288, 62, 5235, 796, 7412, 6601, 8645, 1352, 7, 411, 38765, 796, 352, 19571, 13381, 8, 201, 198, 201, 198, 27432, 62, 2617, 796, 4512, 62, 5235, 13, 11125, 62, 6738, 62, 34945, 10786, 34, 14079, 14490, 14, 18471, 5069, 449, 391, 14, 3198, 24825, 14, 38354, 14, 12832, 5643, 62, 36392, 14, 50, 3620, 18, 14, 39455, 14, 22242, 12, 14259, 12, 24619, 14, 27432, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2496, 62, 7857, 16193, 2414, 11, 2414, 828, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15458, 62, 7857, 28, 3933, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1398, 62, 14171, 11639, 39491, 11537, 201, 198, 201, 198, 9288, 62, 2617, 796, 1332, 62, 5235, 13, 11125, 62, 6738, 62, 34945, 10786, 34, 14079, 14490, 14, 18471, 5069, 449, 391, 14, 3198, 24825, 14, 38354, 14, 12832, 5643, 62, 36392, 14, 50, 3620, 18, 14, 39455, 14, 22242, 12, 14259, 12, 24619, 14, 9288, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2496, 62, 7857, 16193, 2414, 11, 2414, 828, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15458, 62, 7857, 28, 3933, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1398, 62, 14171, 11639, 39491, 11537, 201, 198, 201, 198, 201, 198, 17896, 62, 19849, 796, 1382, 62, 9246, 62, 9703, 62, 19849, 3419, 201, 198, 201, 198, 17896, 62, 19849, 13, 11147, 62, 8612, 1352, 7, 27432, 62, 2617, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36835, 82, 796, 1542, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21201, 62, 7890, 796, 9288, 62, 2617, 8, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220 ]
1.584121
1,058
#!/usr/bin/env python3.6 """ author: samuels """ import argparse import hashlib import os import queue import sys import random import threading sys.path.append(os.path.join(os.path.join('../'))) from concurrent.futures import ThreadPoolExecutor from threading import Event from client.generic_mounter import Mounter from logger.server_logger import ConsoleLogger from utils.shell_utils import StringUtils logger = None stop_event = None files_counter = 0 dir_counter = 0 KB1 = 1024 MB1 = KB1 * 1024 DATA_BUF = os.urandom(KB1 * 8) data_array = [] if __name__ == '__main__': try: main() except KeyboardInterrupt: logger.info("Test stopped by user. See ya!") stop_event.set() except Exception as generic_error: logger.exception(generic_error) sys.exit(1)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 21, 198, 37811, 198, 9800, 25, 6072, 84, 1424, 198, 37811, 198, 198, 11748, 1822, 29572, 198, 11748, 12234, 8019, 198, 11748, 28686, 198, 11748, 16834, 198, 11748, 25064, 198, 198, 11748, 4738, 198, 11748, 4704, 278, 198, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 22179, 10786, 40720, 6, 22305, 198, 6738, 24580, 13, 69, 315, 942, 1330, 14122, 27201, 23002, 38409, 198, 6738, 4704, 278, 1330, 8558, 198, 6738, 5456, 13, 41357, 62, 76, 6828, 1330, 337, 6828, 198, 6738, 49706, 13, 15388, 62, 6404, 1362, 1330, 24371, 11187, 1362, 198, 6738, 3384, 4487, 13, 29149, 62, 26791, 1330, 10903, 18274, 4487, 198, 198, 6404, 1362, 796, 6045, 198, 11338, 62, 15596, 796, 6045, 198, 16624, 62, 24588, 796, 657, 198, 15908, 62, 24588, 796, 657, 198, 198, 22764, 16, 796, 28119, 198, 10744, 16, 796, 14204, 16, 1635, 28119, 198, 198, 26947, 62, 19499, 37, 796, 28686, 13, 333, 3749, 7, 22764, 16, 1635, 807, 8, 198, 198, 7890, 62, 18747, 796, 17635, 628, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1388, 3419, 198, 220, 220, 220, 2845, 31973, 9492, 3622, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 10951, 7203, 14402, 5025, 416, 2836, 13, 4091, 21349, 2474, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2245, 62, 15596, 13, 2617, 3419, 198, 220, 220, 220, 2845, 35528, 355, 14276, 62, 18224, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 1069, 4516, 7, 41357, 62, 18224, 8, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 37023, 7, 16, 8, 198 ]
2.700658
304
if __name__=="__main__": name_to_aro = {'mel': "3000616", 'pmrA':"3000822" , 'patB': "3000025"} strict_perfect = {'500': "strict", '1000': "perfect"} expected_bedtool_labels = open('bedtools_labels.tsv', 'w') labels = {} with open('intersection.tsv') as fh: for line in fh: line = line.strip().split('\t') labels.update({line[3]: [line[3], line[0], name_to_aro[line[-4]], line[-4], strict_perfect[line[-3]], line[-1]]}) with open('output.fq') as fh: for line_num, line in enumerate(fh): if line_num % 4 == 0: line = line.strip() line = line.replace("@", '') if line in labels: expected_bedtool_labels.write("\t".join(labels[line])+"\n") else: expected_bedtool_labels.write("\t".join(["na"]*6)+"\n")
[ 198, 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 628, 220, 220, 220, 1438, 62, 1462, 62, 12022, 796, 1391, 6, 17694, 10354, 366, 23924, 44214, 1600, 705, 4426, 81, 32, 10354, 1, 23924, 23, 1828, 1, 837, 705, 8071, 33, 10354, 366, 18, 2388, 1495, 20662, 198, 220, 220, 220, 7646, 62, 25833, 796, 1391, 6, 4059, 10354, 366, 301, 2012, 1600, 705, 12825, 10354, 366, 25833, 20662, 628, 220, 220, 220, 2938, 62, 3077, 25981, 62, 23912, 1424, 796, 1280, 10786, 3077, 31391, 62, 23912, 1424, 13, 912, 85, 3256, 705, 86, 11537, 628, 220, 220, 220, 14722, 796, 23884, 198, 220, 220, 220, 351, 1280, 10786, 3849, 5458, 13, 912, 85, 11537, 355, 277, 71, 25, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1627, 287, 277, 71, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 1627, 13, 36311, 22446, 35312, 10786, 59, 83, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14722, 13, 19119, 15090, 1370, 58, 18, 5974, 685, 1370, 58, 18, 4357, 1627, 58, 15, 4357, 1438, 62, 1462, 62, 12022, 58, 1370, 58, 12, 19, 60, 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, 1627, 58, 12, 19, 4357, 7646, 62, 25833, 58, 1370, 58, 12, 18, 60, 4357, 1627, 58, 12, 16, 11907, 30072, 628, 220, 220, 220, 351, 1280, 10786, 22915, 13, 69, 80, 11537, 355, 277, 71, 25, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1627, 62, 22510, 11, 1627, 287, 27056, 378, 7, 69, 71, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1627, 62, 22510, 4064, 604, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 1627, 13, 36311, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 1627, 13, 33491, 7203, 31, 1600, 10148, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1627, 287, 14722, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2938, 62, 3077, 25981, 62, 23912, 1424, 13, 13564, 7203, 59, 83, 1911, 22179, 7, 23912, 1424, 58, 1370, 12962, 10, 1, 59, 77, 4943, 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, 2938, 62, 3077, 25981, 62, 23912, 1424, 13, 13564, 7203, 59, 83, 1911, 22179, 7, 14692, 2616, 8973, 9, 21, 47762, 1, 59, 77, 4943, 628, 628, 198 ]
1.884774
486
# This file is automatically generated by the rmf-codegen project. # # The Python code generator is maintained by Lab Digital. If you want to # contribute to this project then please do not edit this file directly # but send a pull request to the Lab Digital fork of rmf-codegen at # https://github.com/labd/rmf-codegen import re import typing import marshmallow import marshmallow_enum from commercetools import helpers from ... import models from .common import ImportResourceSchema # Fields # Marshmallow Schemas
[ 2, 770, 2393, 318, 6338, 7560, 416, 262, 42721, 69, 12, 8189, 5235, 1628, 13, 198, 2, 198, 2, 383, 11361, 2438, 17301, 318, 9456, 416, 3498, 10231, 13, 1002, 345, 765, 284, 198, 2, 8676, 284, 428, 1628, 788, 3387, 466, 407, 4370, 428, 2393, 3264, 198, 2, 475, 3758, 257, 2834, 2581, 284, 262, 3498, 10231, 15563, 286, 42721, 69, 12, 8189, 5235, 379, 198, 2, 3740, 1378, 12567, 13, 785, 14, 23912, 67, 14, 26224, 69, 12, 8189, 5235, 198, 11748, 302, 198, 11748, 19720, 198, 198, 11748, 22397, 42725, 198, 11748, 22397, 42725, 62, 44709, 198, 198, 6738, 4412, 66, 316, 10141, 1330, 49385, 198, 198, 6738, 2644, 1330, 4981, 198, 6738, 764, 11321, 1330, 17267, 26198, 27054, 2611, 198, 198, 2, 23948, 628, 198, 2, 9786, 42725, 1446, 4411, 292, 198 ]
3.838235
136
import numpy as np from torch.utils.data import Dataset import cv2 from torchvision import transforms import base64 from PIL import Image np.random.seed(0)
[ 11748, 299, 32152, 355, 45941, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 198, 11748, 269, 85, 17, 198, 6738, 28034, 10178, 1330, 31408, 198, 11748, 2779, 2414, 198, 6738, 350, 4146, 1330, 7412, 198, 37659, 13, 25120, 13, 28826, 7, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198 ]
2.946429
56
"""Misc. exception related tests Made for Jython. """ from test import test_support import unittest #From bugtests/test076.py if __name__ == '__main__': test_main()
[ 37811, 44, 2304, 13, 6631, 3519, 5254, 198, 198, 24616, 329, 449, 7535, 13, 198, 37811, 198, 6738, 1332, 1330, 1332, 62, 11284, 198, 11748, 555, 715, 395, 628, 220, 220, 220, 1303, 4863, 5434, 41989, 14, 9288, 2998, 21, 13, 9078, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1332, 62, 12417, 3419, 198 ]
2.809524
63
import pandas as pd df = pd.read_excel("Média teste.xlsx", sheet_name= "Média") print(df.head())
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 7568, 796, 279, 67, 13, 961, 62, 1069, 5276, 7203, 44, 2634, 67, 544, 1332, 68, 13, 87, 7278, 87, 1600, 9629, 62, 3672, 28, 366, 44, 2634, 67, 544, 4943, 198, 4798, 7, 7568, 13, 2256, 28955 ]
2.108696
46
from prolog_parser import PrologParser from inference import Inference from copy import deepcopy import sys import lark
[ 6738, 386, 6404, 62, 48610, 1330, 1041, 6404, 46677, 198, 6738, 32278, 1330, 554, 4288, 198, 6738, 4866, 1330, 2769, 30073, 198, 11748, 25064, 198, 11748, 300, 668 ]
4.25
28
from django.contrib import messages from django.views.generic.edit import UpdateView from hknweb.utils import ( method_login_and_permission, DATETIME_12_HOUR_FORMAT, PACIFIC_TIMEZONE, ) from hknweb.events.models import Event from hknweb.events.forms import EventUpdateForm @method_login_and_permission("events.change_event")
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 19312, 1330, 10133, 7680, 198, 198, 6738, 289, 15418, 12384, 13, 26791, 1330, 357, 198, 220, 220, 220, 2446, 62, 38235, 62, 392, 62, 525, 3411, 11, 198, 220, 220, 220, 360, 1404, 2767, 12789, 62, 1065, 62, 39, 11698, 62, 21389, 1404, 11, 198, 220, 220, 220, 16741, 30643, 62, 34694, 57, 11651, 11, 198, 8, 198, 6738, 289, 15418, 12384, 13, 31534, 13, 27530, 1330, 8558, 198, 6738, 289, 15418, 12384, 13, 31534, 13, 23914, 1330, 8558, 10260, 8479, 628, 198, 31, 24396, 62, 38235, 62, 392, 62, 525, 3411, 7203, 31534, 13, 3803, 62, 15596, 4943, 198 ]
2.905983
117
#!/usr/bin/python ANSIBLE_METADATA = { 'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: mapr_entity short_description: This module manages MapR accountable entities version_added: "2.4" description: - "This module manages MapR accountable entities" options: name: description: - Entity name required: true type: description: - entity type: user or group required: true email: description: - Contact email for entity required: false soft_quota_in_mb: description: - Advisory quota in MB. Zero value means no quota. - default: 0 required: false hard_quota_in_mb: description: - Hard quota in MB. Zero value means no quota. - default: 0 required: false author: - Carsten Hufe [email protected] ''' EXAMPLES = ''' # Pass in a message - name: Modify MapR entity mapr_entity: name: mapr type: user email: [email protected] soft_quota_in_mb: 1024 hard_quota_in_mb: 1024 ''' RETURN = ''' original_message: description: The original name param that was passed in type: str message: description: The output message that the sample module generates ''' from ansible.module_utils.basic import AnsibleModule import subprocess import json import getpass import tempfile def execute_entity_creation(type, name): ''' Create a temporary volume and assign the user/group defined by type, name as accountable entity ''' temp_volume_name = create_temp_volume(type, name) remove_temp_volume(temp_volume_name) if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 15037, 34563, 62, 47123, 2885, 13563, 796, 1391, 198, 220, 220, 220, 705, 38993, 62, 9641, 10354, 705, 16, 13, 15, 3256, 198, 220, 220, 220, 705, 13376, 10354, 37250, 3866, 1177, 6, 4357, 198, 220, 220, 220, 705, 15999, 62, 1525, 10354, 705, 28158, 6, 198, 92, 198, 198, 38715, 5883, 3525, 6234, 796, 705, 7061, 198, 6329, 198, 21412, 25, 3975, 81, 62, 26858, 198, 198, 19509, 62, 11213, 25, 770, 8265, 15314, 9347, 49, 16689, 12066, 198, 198, 9641, 62, 29373, 25, 366, 17, 13, 19, 1, 198, 198, 11213, 25, 198, 220, 220, 220, 532, 366, 1212, 8265, 15314, 9347, 49, 16689, 12066, 1, 198, 198, 25811, 25, 198, 220, 220, 220, 1438, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 532, 20885, 1438, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 2081, 198, 220, 220, 220, 2099, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 532, 9312, 2099, 25, 2836, 393, 1448, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 2081, 198, 220, 220, 220, 3053, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 532, 14039, 3053, 329, 9312, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 3991, 198, 220, 220, 220, 2705, 62, 421, 4265, 62, 259, 62, 2022, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 532, 23943, 32539, 287, 10771, 13, 12169, 1988, 1724, 645, 32539, 13, 532, 4277, 25, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 3991, 198, 220, 220, 220, 1327, 62, 421, 4265, 62, 259, 62, 2022, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 532, 6912, 32539, 287, 10771, 13, 12169, 1988, 1724, 645, 32539, 13, 532, 4277, 25, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 25, 3991, 198, 9800, 25, 198, 220, 220, 220, 532, 1879, 26400, 367, 3046, 68, 442, 3046, 68, 31, 8899, 81, 13, 785, 198, 7061, 6, 198, 198, 6369, 2390, 6489, 1546, 796, 705, 7061, 198, 2, 6251, 287, 257, 3275, 198, 12, 1438, 25, 3401, 1958, 9347, 49, 9312, 198, 220, 3975, 81, 62, 26858, 25, 198, 220, 220, 220, 1438, 25, 3975, 81, 198, 220, 220, 220, 2099, 25, 2836, 198, 220, 220, 220, 3053, 25, 450, 66, 31, 12888, 13, 785, 198, 220, 220, 220, 2705, 62, 421, 4265, 62, 259, 62, 2022, 25, 28119, 198, 220, 220, 220, 1327, 62, 421, 4265, 62, 259, 62, 2022, 25, 28119, 198, 7061, 6, 198, 198, 26087, 27064, 796, 705, 7061, 198, 14986, 62, 20500, 25, 198, 220, 220, 220, 6764, 25, 383, 2656, 1438, 5772, 326, 373, 3804, 287, 198, 220, 220, 220, 2099, 25, 965, 198, 20500, 25, 198, 220, 220, 220, 6764, 25, 383, 5072, 3275, 326, 262, 6291, 8265, 18616, 198, 7061, 6, 198, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13, 35487, 1330, 28038, 856, 26796, 198, 11748, 850, 14681, 198, 11748, 33918, 198, 11748, 651, 6603, 198, 11748, 20218, 7753, 198, 198, 4299, 12260, 62, 26858, 62, 38793, 7, 4906, 11, 1438, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 13610, 257, 8584, 6115, 290, 8333, 262, 2836, 14, 8094, 5447, 416, 2099, 11, 1438, 355, 16689, 9312, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 20218, 62, 29048, 62, 3672, 796, 2251, 62, 29510, 62, 29048, 7, 4906, 11, 1438, 8, 198, 220, 220, 220, 4781, 62, 29510, 62, 29048, 7, 29510, 62, 29048, 62, 3672, 8, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.55081
679
from typing import List, Optional from jinjasql import JinjaSql from app.db import DBManager from app.vehicle.models import Driver, Vehicle
[ 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 6738, 474, 259, 28121, 13976, 1330, 17297, 6592, 50, 13976, 198, 198, 6738, 598, 13, 9945, 1330, 20137, 13511, 198, 6738, 598, 13, 33892, 1548, 13, 27530, 1330, 12434, 11, 21501, 628, 628 ]
3.536585
41
n = input() arr = list(map(int, input().split())) s = set(arr) print(len(s))
[ 77, 796, 5128, 3419, 198, 3258, 796, 1351, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 198, 220, 198, 82, 796, 900, 7, 3258, 8, 198, 4798, 7, 11925, 7, 82, 4008, 198 ]
2.257143
35
for i in range(255): print(chr(i))
[ 198, 198, 1640, 1312, 287, 2837, 7, 13381, 2599, 198, 220, 220, 220, 3601, 7, 354, 81, 7, 72, 4008, 198 ]
1.952381
21
# coding:utf-8 import uuid import string import hashlib import logging from lib.errors import SessionExpiredError, SessionConsumedError from datetime import datetime as dt from random import SystemRandom LOG = logging.getLogger("errbot.plugin.st2.session")
[ 2, 19617, 25, 40477, 12, 23, 198, 11748, 334, 27112, 198, 11748, 4731, 198, 11748, 12234, 8019, 198, 11748, 18931, 198, 6738, 9195, 13, 48277, 1330, 23575, 3109, 6474, 12331, 11, 23575, 9444, 18940, 12331, 198, 6738, 4818, 8079, 1330, 4818, 8079, 355, 288, 83, 198, 6738, 4738, 1330, 4482, 29531, 198, 198, 25294, 796, 18931, 13, 1136, 11187, 1362, 7203, 8056, 13645, 13, 33803, 13, 301, 17, 13, 29891, 4943, 628, 198 ]
3.561644
73
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ mwtab.fileio ~~~~~~~~~~~~ This module provides routines for reading ``mwTab`` formatted files from difference kinds of sources: * Single ``mwTab`` formatted file on a local machine. * Directory containing multiple ``mwTab`` formatted files. * Compressed zip/tar archive of ``mwTab`` formatted files. * URL address of ``mwTab`` formatted file. * ``ANALYSIS_ID`` of ``mwTab`` formatted file. """ import os import io import zipfile import tarfile import bz2 import gzip from re import match from . import mwtab from . import validator from . import mwschema from . import mwrest from urllib.request import urlopen from urllib.parse import urlparse VERBOSE = False def _generate_filenames(sources): """Generate filenames. :param tuple sources: Sequence of strings representing path to file(s). :return: Path to file(s). :rtype: :py:class:`str` """ for source in sources: if os.path.isdir(source): for path, _, filelist in os.walk(source): for fname in filelist: if os.path.splitext(fname)[1].lower() in {".csv", ".txt", ".json"}: if GenericFilePath.is_compressed(fname): if VERBOSE: print("Skipping compressed file: {}".format(os.path.abspath(fname))) continue else: yield os.path.join(path, fname) elif os.path.isfile(source): yield source elif source.isdigit(): yield next(mwrest.generate_mwtab_urls([source])) # TODO: Add ST parsing elif match(r"(AN[0-9]{6}$)", source): yield next(mwrest.generate_mwtab_urls([source])) elif GenericFilePath.is_url(source): yield source else: raise TypeError("Unknown file source.") def _generate_handles(filenames): """Open a sequence of filenames one at time producing file objects. The file is closed immediately when proceeding to the next iteration. :param generator filenames: Generator object that yields the path to each file, one at a time. :return: Filehandle to be processed into an instance. """ for fname in filenames: path = GenericFilePath(fname) for filehandle, source in path.open(): yield filehandle, source filehandle.close() def read_files(*sources, **kwds): """Construct a generator that yields file instances. :param sources: One or more strings representing path to file(s). """ filenames = _generate_filenames(sources) filehandles = _generate_handles(filenames) for fh, source in filehandles: try: f = mwtab.MWTabFile(source) f.read(fh) if kwds.get('validate'): validator.validate_file(mwtabfile=f, section_schema_mapping=mwschema.section_schema_mapping) if VERBOSE: print("Processed file: {}".format(os.path.abspath(source))) yield f except Exception as e: if VERBOSE: print("Error processing file: ", os.path.abspath(source), "\nReason:", e) raise e def read_mwrest(*sources, **kwds): """Construct a generator that yields file instances. :param sources: One or more strings representing path to file(s). """ filenames = _generate_filenames(sources) filehandles = _generate_handles(filenames) for fh, source in filehandles: try: f = mwrest.MWRESTFile(source) f.read(fh) if VERBOSE: print("Processed url: {}".format(source)) yield f except Exception as e: if VERBOSE: print("Error processing url: ", source, "\nReason:", e) pass class GenericFilePath(object): """`GenericFilePath` class knows how to open local files or files over URL.""" def __init__(self, path): """Initialize path. :param str path: String representing a path to local file(s) or valid URL address of file(s). """ self.path = path def open(self): """Generator that opens and yields filehandles using appropriate facilities: test if path represents a local file or file over URL, if file is compressed or not. :return: Filehandle to be processed into an instance. """ is_url = self.is_url(self.path) compression_type = self.is_compressed(self.path) if not compression_type: if is_url: filehandle = urlopen(self.path) else: filehandle = open(self.path, "r", encoding="utf-8") source = self.path yield filehandle, source filehandle.close() elif compression_type: if is_url: response = urlopen(self.path) path = response.read() response.close() else: path = self.path if compression_type == "zip": ziparchive = zipfile.ZipFile(io.BytesIO(path), "r") if is_url else zipfile.ZipFile(path) for name in ziparchive.infolist(): if not name.filename.endswith("/"): filehandle = ziparchive.open(name) source = self.path + "/" + name.filename yield filehandle, source filehandle.close() elif compression_type in ("tar", "tar.bz2", "tar.gz"): tararchive = tarfile.open(fileobj=io.BytesIO(path)) if is_url else tarfile.open(path) for name in tararchive: if name.isfile(): filehandle = tararchive.extractfile(name) source = self.path + "/" + name.name yield filehandle, source filehandle.close() elif compression_type == "bz2": filehandle = bz2.BZ2File(io.BytesIO(path)) if is_url else bz2.BZ2File(path) source = self.path yield filehandle, source filehandle.close() elif compression_type == "gz": filehandle = gzip.open(io.BytesIO(path)) if is_url else gzip.open(path) source = self.path yield filehandle, source filehandle.close() @staticmethod def is_compressed(path): """Test if path represents compressed file(s). :param str path: Path to file(s). :return: String specifying compression type if compressed, "" otherwise. :rtype: :py:class:`str` """ if path.endswith(".zip"): return "zip" elif path.endswith(".tar.gz"): return "tar.gz" elif path.endswith(".tar.bz2"): return "tar.bz2" elif path.endswith(".gz"): return "gz" elif path.endswith(".bz2"): return "bz2" elif path.endswith(".tar"): return "tar" return "" @staticmethod def is_url(path): """Test if path represents a valid URL. :param str path: Path to file. :return: True if path is valid url string, False otherwise. :rtype: :py:obj:`True` or :py:obj:`False` """ try: parse_result = urlparse(path) return all((parse_result.scheme, parse_result.netloc, parse_result.path)) except ValueError: return False
[ 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, 37811, 198, 76, 86, 8658, 13, 7753, 952, 198, 15116, 8728, 198, 198, 1212, 8265, 3769, 31878, 329, 3555, 7559, 76, 86, 33349, 15506, 39559, 3696, 198, 6738, 3580, 6982, 286, 4237, 25, 628, 220, 220, 1635, 14206, 7559, 76, 86, 33349, 15506, 39559, 2393, 319, 257, 1957, 4572, 13, 198, 220, 220, 1635, 27387, 7268, 3294, 7559, 76, 86, 33349, 15506, 39559, 3696, 13, 198, 220, 220, 1635, 3082, 2790, 19974, 14, 18870, 15424, 286, 7559, 76, 86, 33349, 15506, 39559, 3696, 13, 198, 220, 220, 1635, 10289, 2209, 286, 7559, 76, 86, 33349, 15506, 39559, 2393, 13, 198, 220, 220, 1635, 7559, 1565, 1847, 16309, 1797, 62, 2389, 15506, 286, 7559, 76, 86, 33349, 15506, 39559, 2393, 13, 220, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 33245, 198, 11748, 19974, 7753, 198, 11748, 13422, 7753, 198, 11748, 275, 89, 17, 198, 11748, 308, 13344, 198, 6738, 302, 1330, 2872, 198, 198, 6738, 764, 1330, 285, 86, 8658, 198, 6738, 764, 1330, 4938, 1352, 198, 6738, 764, 1330, 285, 86, 15952, 2611, 198, 6738, 764, 1330, 285, 86, 2118, 198, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 628, 198, 5959, 33, 14058, 796, 10352, 628, 198, 4299, 4808, 8612, 378, 62, 10379, 268, 1047, 7, 82, 2203, 2599, 198, 220, 220, 220, 37227, 8645, 378, 1226, 268, 1047, 13, 628, 220, 220, 220, 1058, 17143, 46545, 4237, 25, 45835, 286, 13042, 10200, 3108, 284, 2393, 7, 82, 737, 198, 220, 220, 220, 1058, 7783, 25, 10644, 284, 2393, 7, 82, 737, 198, 220, 220, 220, 1058, 81, 4906, 25, 1058, 9078, 25, 4871, 25, 63, 2536, 63, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 329, 2723, 287, 4237, 25, 198, 220, 220, 220, 220, 220, 220, 220, 611, 28686, 13, 6978, 13, 9409, 343, 7, 10459, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 3108, 11, 4808, 11, 2393, 4868, 287, 28686, 13, 11152, 7, 10459, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 277, 3672, 287, 2393, 4868, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 28686, 13, 6978, 13, 22018, 578, 742, 7, 69, 3672, 38381, 16, 4083, 21037, 3419, 287, 1391, 1911, 40664, 1600, 27071, 14116, 1600, 27071, 17752, 20662, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 42044, 8979, 15235, 13, 271, 62, 5589, 2790, 7, 69, 3672, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 33310, 33, 14058, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 50, 4106, 2105, 25388, 2393, 25, 23884, 1911, 18982, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 69, 3672, 22305, 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, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 28686, 13, 6978, 13, 22179, 7, 6978, 11, 277, 3672, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 28686, 13, 6978, 13, 4468, 576, 7, 10459, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 2723, 628, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2723, 13, 9409, 328, 270, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 1306, 7, 76, 86, 2118, 13, 8612, 378, 62, 76, 86, 8658, 62, 6371, 82, 26933, 10459, 60, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 16926, 46, 25, 3060, 3563, 32096, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2872, 7, 81, 18109, 1565, 58, 15, 12, 24, 60, 90, 21, 92, 3, 42501, 2723, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 1306, 7, 76, 86, 2118, 13, 8612, 378, 62, 76, 86, 8658, 62, 6371, 82, 26933, 10459, 60, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 42044, 8979, 15235, 13, 271, 62, 6371, 7, 10459, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 2723, 628, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 5994, 12331, 7203, 20035, 2393, 2723, 19570, 628, 198, 4299, 4808, 8612, 378, 62, 4993, 829, 7, 10379, 268, 1047, 2599, 198, 220, 220, 220, 37227, 11505, 257, 8379, 286, 1226, 268, 1047, 530, 379, 640, 9194, 2393, 5563, 13, 198, 220, 220, 220, 383, 2393, 318, 4838, 3393, 618, 18788, 284, 262, 1306, 24415, 13, 628, 220, 220, 220, 1058, 17143, 17301, 1226, 268, 1047, 25, 35986, 2134, 326, 19299, 262, 3108, 284, 1123, 2393, 11, 530, 379, 257, 640, 13, 198, 220, 220, 220, 1058, 7783, 25, 9220, 28144, 284, 307, 13686, 656, 281, 4554, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 329, 277, 3672, 287, 1226, 268, 1047, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3108, 796, 42044, 8979, 15235, 7, 69, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2393, 28144, 11, 2723, 287, 3108, 13, 9654, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 2393, 28144, 11, 2723, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 13, 19836, 3419, 628, 198, 4299, 1100, 62, 16624, 46491, 82, 2203, 11, 12429, 46265, 9310, 2599, 198, 220, 220, 220, 37227, 42316, 257, 17301, 326, 19299, 2393, 10245, 13, 628, 220, 220, 220, 1058, 17143, 4237, 25, 1881, 393, 517, 13042, 10200, 3108, 284, 2393, 7, 82, 737, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1226, 268, 1047, 796, 4808, 8612, 378, 62, 10379, 268, 1047, 7, 82, 2203, 8, 198, 220, 220, 220, 2393, 4993, 829, 796, 4808, 8612, 378, 62, 4993, 829, 7, 10379, 268, 1047, 8, 198, 220, 220, 220, 329, 277, 71, 11, 2723, 287, 2393, 4993, 829, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 796, 285, 86, 8658, 13, 14326, 33349, 8979, 7, 10459, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 961, 7, 69, 71, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 479, 86, 9310, 13, 1136, 10786, 12102, 378, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4938, 1352, 13, 12102, 378, 62, 7753, 7, 76, 86, 8658, 7753, 28, 69, 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, 2665, 62, 15952, 2611, 62, 76, 5912, 28, 76, 86, 15952, 2611, 13, 5458, 62, 15952, 2611, 62, 76, 5912, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 33310, 33, 14058, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 18709, 276, 2393, 25, 23884, 1911, 18982, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 10459, 22305, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 277, 628, 220, 220, 220, 220, 220, 220, 220, 2845, 35528, 355, 304, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 33310, 33, 14058, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 12331, 7587, 2393, 25, 33172, 28686, 13, 6978, 13, 397, 2777, 776, 7, 10459, 828, 37082, 77, 45008, 25, 1600, 304, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 304, 628, 198, 4299, 1100, 62, 76, 86, 2118, 46491, 82, 2203, 11, 12429, 46265, 9310, 2599, 198, 220, 220, 220, 37227, 42316, 257, 17301, 326, 19299, 2393, 10245, 13, 628, 220, 220, 220, 1058, 17143, 4237, 25, 1881, 393, 517, 13042, 10200, 3108, 284, 2393, 7, 82, 737, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1226, 268, 1047, 796, 4808, 8612, 378, 62, 10379, 268, 1047, 7, 82, 2203, 8, 198, 220, 220, 220, 2393, 4993, 829, 796, 4808, 8612, 378, 62, 4993, 829, 7, 10379, 268, 1047, 8, 198, 220, 220, 220, 329, 277, 71, 11, 2723, 287, 2393, 4993, 829, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 796, 285, 86, 2118, 13, 14326, 49, 6465, 8979, 7, 10459, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 961, 7, 69, 71, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 33310, 33, 14058, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 18709, 276, 19016, 25, 23884, 1911, 18982, 7, 10459, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 277, 628, 220, 220, 220, 220, 220, 220, 220, 2845, 35528, 355, 304, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 33310, 33, 14058, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 12331, 7587, 19016, 25, 33172, 2723, 11, 37082, 77, 45008, 25, 1600, 304, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1208, 628, 198, 4871, 42044, 8979, 15235, 7, 15252, 2599, 198, 220, 220, 220, 37227, 63, 46189, 8979, 15235, 63, 1398, 4206, 703, 284, 1280, 1957, 3696, 393, 3696, 625, 10289, 526, 15931, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 3108, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 24243, 1096, 3108, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 965, 3108, 25, 10903, 10200, 257, 3108, 284, 1957, 2393, 7, 82, 8, 393, 4938, 10289, 2209, 286, 2393, 7, 82, 737, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 6978, 796, 3108, 628, 220, 220, 220, 825, 1280, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 8645, 1352, 326, 9808, 290, 19299, 2393, 4993, 829, 1262, 5035, 7291, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 611, 3108, 6870, 257, 1957, 2393, 393, 2393, 625, 10289, 11, 611, 2393, 318, 25388, 198, 220, 220, 220, 220, 220, 220, 220, 393, 407, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 9220, 28144, 284, 307, 13686, 656, 281, 4554, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 6371, 796, 2116, 13, 271, 62, 6371, 7, 944, 13, 6978, 8, 198, 220, 220, 220, 220, 220, 220, 220, 19794, 62, 4906, 796, 2116, 13, 271, 62, 5589, 2790, 7, 944, 13, 6978, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 407, 19794, 62, 4906, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 62, 6371, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 796, 19016, 9654, 7, 944, 13, 6978, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 796, 1280, 7, 944, 13, 6978, 11, 366, 81, 1600, 21004, 2625, 40477, 12, 23, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2723, 796, 2116, 13, 6978, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 2393, 28144, 11, 2723, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 13, 19836, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 19794, 62, 4906, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 62, 6371, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 19016, 9654, 7, 944, 13, 6978, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 796, 2882, 13, 961, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 19836, 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, 3108, 796, 2116, 13, 6978, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 19794, 62, 4906, 6624, 366, 13344, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19974, 17474, 796, 19974, 7753, 13, 41729, 8979, 7, 952, 13, 45992, 9399, 7, 6978, 828, 366, 81, 4943, 611, 318, 62, 6371, 2073, 19974, 7753, 13, 41729, 8979, 7, 6978, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1438, 287, 19974, 17474, 13, 259, 9062, 396, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 1438, 13, 34345, 13, 437, 2032, 342, 7203, 30487, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 796, 19974, 17474, 13, 9654, 7, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2723, 796, 2116, 13, 6978, 1343, 12813, 1, 1343, 1438, 13, 34345, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 2393, 28144, 11, 2723, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 13, 19836, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 19794, 62, 4906, 287, 5855, 18870, 1600, 366, 18870, 13, 65, 89, 17, 1600, 366, 18870, 13, 34586, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13422, 17474, 796, 13422, 7753, 13, 9654, 7, 7753, 26801, 28, 952, 13, 45992, 9399, 7, 6978, 4008, 611, 318, 62, 6371, 2073, 13422, 7753, 13, 9654, 7, 6978, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1438, 287, 13422, 17474, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1438, 13, 4468, 576, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 796, 13422, 17474, 13, 2302, 974, 7753, 7, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2723, 796, 2116, 13, 6978, 1343, 12813, 1, 1343, 1438, 13, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 2393, 28144, 11, 2723, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 13, 19836, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 19794, 62, 4906, 6624, 366, 65, 89, 17, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 796, 275, 89, 17, 13, 33, 57, 17, 8979, 7, 952, 13, 45992, 9399, 7, 6978, 4008, 611, 318, 62, 6371, 2073, 275, 89, 17, 13, 33, 57, 17, 8979, 7, 6978, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2723, 796, 2116, 13, 6978, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 2393, 28144, 11, 2723, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 13, 19836, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 19794, 62, 4906, 6624, 366, 34586, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 796, 308, 13344, 13, 9654, 7, 952, 13, 45992, 9399, 7, 6978, 4008, 611, 318, 62, 6371, 2073, 308, 13344, 13, 9654, 7, 6978, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2723, 796, 2116, 13, 6978, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 2393, 28144, 11, 2723, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 28144, 13, 19836, 3419, 628, 220, 220, 220, 2488, 12708, 24396, 198, 220, 220, 220, 825, 318, 62, 5589, 2790, 7, 6978, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 14402, 611, 3108, 6870, 25388, 2393, 7, 82, 737, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 965, 3108, 25, 10644, 284, 2393, 7, 82, 737, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 10903, 31577, 19794, 2099, 611, 25388, 11, 13538, 4306, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 1058, 9078, 25, 4871, 25, 63, 2536, 63, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3108, 13, 437, 2032, 342, 7, 1911, 13344, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 366, 13344, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 3108, 13, 437, 2032, 342, 7, 1911, 18870, 13, 34586, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 366, 18870, 13, 34586, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 3108, 13, 437, 2032, 342, 7, 1911, 18870, 13, 65, 89, 17, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 366, 18870, 13, 65, 89, 17, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 3108, 13, 437, 2032, 342, 7, 1911, 34586, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 366, 34586, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 3108, 13, 437, 2032, 342, 7, 1911, 65, 89, 17, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 366, 65, 89, 17, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 3108, 13, 437, 2032, 342, 7, 1911, 18870, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 366, 18870, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 13538, 628, 220, 220, 220, 2488, 12708, 24396, 198, 220, 220, 220, 825, 318, 62, 6371, 7, 6978, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 14402, 611, 3108, 6870, 257, 4938, 10289, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 965, 3108, 25, 10644, 284, 2393, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 6407, 611, 3108, 318, 4938, 19016, 4731, 11, 10352, 4306, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 1058, 9078, 25, 26801, 25, 63, 17821, 63, 393, 1058, 9078, 25, 26801, 25, 63, 25101, 63, 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, 21136, 62, 20274, 796, 19016, 29572, 7, 6978, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 477, 19510, 29572, 62, 20274, 13, 15952, 1326, 11, 21136, 62, 20274, 13, 3262, 17946, 11, 21136, 62, 20274, 13, 6978, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 11052, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 10352, 198 ]
2.120462
3,636
#--COLOR DETECTION--# import cv2 import numpy as np #our function for trackbars path = "sources/lambo2.png" #Burada renklerimizi ayarlayabilmek için bir trackbar hazırlayacağız cv2.namedWindow("Trackbars") #making our window that our trackbars gon' be in cv2.resizeWindow("Trackbars",640,240) #resizing our trackbar window #birinci değerleri rengimizi istediğimiz gibi saptadıktan sonraki değerlerimiz olarak vereceğiz cv2.createTrackbar("Hue Min","Trackbars",0,179,empty) #making a trackbar in our window and giving it values cv2.createTrackbar("Hue Max","Trackbars",19,179,empty) cv2.createTrackbar("Sat Min","Trackbars",110,255,empty) #saturation cv2.createTrackbar("Sat Max","Trackbars",240,255,empty) cv2.createTrackbar("Val Min","Trackbars",153,255,empty) #value cv2.createTrackbar("Val Max","Trackbars",255,255,empty) #we need it to read the value live, hence the loop while True: img = cv2.imread(path) imgHSV = cv2.cvtColor(img,cv2.COLOR_BGR2HSV) h_min = cv2.getTrackbarPos("Hue Min","Trackbars") #read the value h_max = cv2.getTrackbarPos("Hue Max", "Trackbars") s_min = cv2.getTrackbarPos("Sat Min", "Trackbars") s_max = cv2.getTrackbarPos("Sat Max", "Trackbars") v_min = cv2.getTrackbarPos("Val Min", "Trackbars") v_max = cv2.getTrackbarPos("Val Max", "Trackbars") print(h_min,h_max,s_min,s_max,v_min,v_max) lower = np.array([h_min,s_min,v_min]) #our filter arrays upper = np.array([h_max,s_max,v_max]) mask = cv2.inRange(imgHSV,lower,upper) #making our filtered img #now we can detect the orange color imgResult = cv2.bitwise_and(img,img,mask=mask) # this will turn our black and white mask to an rgb img cv2.imshow("Original", img) cv2.imshow("HSV", imgHSV) cv2.imshow("Masked", mask) cv2.imshow("Result", imgResult) cv2.waitKey(1)
[ 2, 438, 46786, 38267, 24565, 438, 2, 201, 198, 201, 198, 11748, 269, 85, 17, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 2, 454, 2163, 329, 2610, 34046, 201, 198, 201, 198, 6978, 796, 366, 82, 2203, 14, 2543, 2127, 17, 13, 11134, 1, 201, 198, 201, 198, 2, 22991, 4763, 8851, 74, 1754, 320, 528, 72, 38762, 7063, 323, 14991, 76, 988, 1312, 16175, 259, 35122, 2610, 5657, 11595, 30102, 81, 10724, 22260, 33133, 30102, 89, 201, 198, 33967, 17, 13, 13190, 27703, 7203, 24802, 34046, 4943, 1303, 8601, 674, 4324, 326, 674, 2610, 34046, 35140, 6, 307, 287, 201, 198, 33967, 17, 13, 411, 1096, 27703, 7203, 24802, 34046, 1600, 31102, 11, 16102, 8, 1303, 411, 2890, 674, 2610, 5657, 4324, 201, 198, 201, 198, 2, 65, 47388, 979, 390, 33133, 263, 1754, 72, 302, 782, 320, 528, 72, 318, 1513, 72, 33133, 320, 528, 308, 27567, 473, 457, 324, 30102, 21841, 272, 3367, 430, 4106, 390, 33133, 263, 1754, 320, 528, 267, 21681, 461, 1569, 260, 344, 33133, 528, 201, 198, 33967, 17, 13, 17953, 24802, 5657, 7203, 39, 518, 1855, 2430, 24802, 34046, 1600, 15, 11, 21738, 11, 28920, 8, 1303, 8601, 257, 2610, 5657, 287, 674, 4324, 290, 3501, 340, 3815, 201, 198, 33967, 17, 13, 17953, 24802, 5657, 7203, 39, 518, 5436, 2430, 24802, 34046, 1600, 1129, 11, 21738, 11, 28920, 8, 201, 198, 33967, 17, 13, 17953, 24802, 5657, 7203, 20245, 1855, 2430, 24802, 34046, 1600, 11442, 11, 13381, 11, 28920, 8, 1303, 82, 36921, 201, 198, 33967, 17, 13, 17953, 24802, 5657, 7203, 20245, 5436, 2430, 24802, 34046, 1600, 16102, 11, 13381, 11, 28920, 8, 201, 198, 33967, 17, 13, 17953, 24802, 5657, 7203, 7762, 1855, 2430, 24802, 34046, 1600, 21395, 11, 13381, 11, 28920, 8, 1303, 8367, 201, 198, 33967, 17, 13, 17953, 24802, 5657, 7203, 7762, 5436, 2430, 24802, 34046, 1600, 13381, 11, 13381, 11, 28920, 8, 201, 198, 201, 198, 201, 198, 2, 732, 761, 340, 284, 1100, 262, 1988, 2107, 11, 12891, 262, 9052, 201, 198, 4514, 6407, 25, 201, 198, 220, 220, 220, 33705, 796, 269, 85, 17, 13, 320, 961, 7, 6978, 8, 201, 198, 220, 220, 220, 33705, 7998, 53, 796, 269, 85, 17, 13, 33967, 83, 10258, 7, 9600, 11, 33967, 17, 13, 46786, 62, 33, 10761, 17, 7998, 53, 8, 201, 198, 220, 220, 220, 289, 62, 1084, 796, 269, 85, 17, 13, 1136, 24802, 5657, 21604, 7203, 39, 518, 1855, 2430, 24802, 34046, 4943, 1303, 961, 262, 1988, 201, 198, 220, 220, 220, 289, 62, 9806, 796, 269, 85, 17, 13, 1136, 24802, 5657, 21604, 7203, 39, 518, 5436, 1600, 366, 24802, 34046, 4943, 201, 198, 220, 220, 220, 264, 62, 1084, 796, 269, 85, 17, 13, 1136, 24802, 5657, 21604, 7203, 20245, 1855, 1600, 366, 24802, 34046, 4943, 201, 198, 220, 220, 220, 264, 62, 9806, 796, 269, 85, 17, 13, 1136, 24802, 5657, 21604, 7203, 20245, 5436, 1600, 366, 24802, 34046, 4943, 201, 198, 220, 220, 220, 410, 62, 1084, 796, 269, 85, 17, 13, 1136, 24802, 5657, 21604, 7203, 7762, 1855, 1600, 366, 24802, 34046, 4943, 201, 198, 220, 220, 220, 410, 62, 9806, 796, 269, 85, 17, 13, 1136, 24802, 5657, 21604, 7203, 7762, 5436, 1600, 366, 24802, 34046, 4943, 201, 198, 220, 220, 220, 3601, 7, 71, 62, 1084, 11, 71, 62, 9806, 11, 82, 62, 1084, 11, 82, 62, 9806, 11, 85, 62, 1084, 11, 85, 62, 9806, 8, 201, 198, 220, 220, 220, 2793, 796, 45941, 13, 18747, 26933, 71, 62, 1084, 11, 82, 62, 1084, 11, 85, 62, 1084, 12962, 1303, 454, 8106, 26515, 201, 198, 220, 220, 220, 6727, 796, 45941, 13, 18747, 26933, 71, 62, 9806, 11, 82, 62, 9806, 11, 85, 62, 9806, 12962, 201, 198, 220, 220, 220, 9335, 796, 269, 85, 17, 13, 259, 17257, 7, 9600, 7998, 53, 11, 21037, 11, 45828, 8, 1303, 8601, 674, 29083, 33705, 201, 198, 220, 220, 220, 1303, 2197, 356, 460, 4886, 262, 10912, 3124, 201, 198, 220, 220, 220, 33705, 23004, 796, 269, 85, 17, 13, 2545, 3083, 62, 392, 7, 9600, 11, 9600, 11, 27932, 28, 27932, 8, 1303, 428, 481, 1210, 674, 2042, 290, 2330, 9335, 284, 281, 46140, 33705, 201, 198, 201, 198, 220, 220, 220, 269, 85, 17, 13, 320, 12860, 7203, 20556, 1600, 33705, 8, 201, 198, 220, 220, 220, 269, 85, 17, 13, 320, 12860, 7203, 7998, 53, 1600, 33705, 7998, 53, 8, 201, 198, 220, 220, 220, 269, 85, 17, 13, 320, 12860, 7203, 45195, 276, 1600, 9335, 8, 201, 198, 220, 220, 220, 269, 85, 17, 13, 320, 12860, 7203, 23004, 1600, 33705, 23004, 8, 201, 198, 220, 220, 220, 269, 85, 17, 13, 17077, 9218, 7, 16, 8 ]
2.36962
790
from photons_canvas.points.canvas import Canvas
[ 6738, 44378, 62, 5171, 11017, 13, 13033, 13, 5171, 11017, 1330, 1680, 11017, 628, 628, 198 ]
3.25
16
# -*- coding: utf-8 -*- import torch import os from torch.multiprocessing import Pool, Process, set_start_method,cpu_count, RLock,freeze_support, Value, Array, Manager,cpu_count #os.environ["OMP_NUM_THREADS"] = "4" if torch.cuda.is_available() else "6" os.environ["PYTHONWARNINGS"] = 'ignore:semaphore_tracker:UserWarning' import numpy as np from tqdm import tqdm import torch.nn as nn import torch.nn.functional as F # from preprocess import * from preprocess import d2v_model, d2v_ini_weight import sys from collections import namedtuple import copy import random from my_enum import * import torch.optim as optim #from pytorch_memlab import profile import argparse from torch.autograd import detect_anomaly from Additional_module import * # Transition = namedtuple('Transition', ('state', 'action', 'next_state', 'reward')) Dual_State_value = namedtuple('Value', ('state', 'action', 'before_state', 'detailed_action_code','reward')) Detailed_State_data = namedtuple('Value', ('hand_ids', 'hand_card_costs', 'follower_card_ids', 'amulet_card_ids', 'follower_stats', 'follower_abilities', 'able_to_evo', 'life_data', 'pp_data','able_to_play','able_to_attack', 'able_to_creature_attack', 'deck_data')) """ input = {'values', 'hand_ids','follower_card_ids', 'amulet_card_ids', 'follower_abilities', 'able_to_evo'} """ #@profile deck_id_2_name = {0: "Sword_Aggro", 1: "Rune_Earth", 2: "Sword", 3: "Shadow", 4: "Dragon_PDK", 5: "Haven", 6: "Blood", 7: "Dragon", 8: "Forest", 9: "Rune", 10: "DS_Rune", -1: "Forest_Basic", -2: "Sword_Basic", -3: "Rune_Basic", -4: "Dragon_Basic", -5: "FOREST_Basic", -6: "Blood_Basic", -7: "Haven_Basic", -8: "Portal_Basic", 100: "TEST", -9: "Spell-Rune", 11: "PtP-Forest", 12: "Mid-Shadow", 13: "Neutral-Blood"} key_2_tsv_name = {0: ["Sword_Aggro.tsv", "SWORD"], 1: ["Rune_Earth.tsv", "RUNE"], 2: ["Sword.tsv", "SWORD"], 3: ["New-Shadow.tsv", "SHADOW"], 4: ["Dragon_PDK.tsv", "DRAGON"], 5: ["Test-Haven.tsv", "HAVEN"], 6: ["Blood.tsv", "BLOOD"], 7: ["Dragon.tsv", "DRAGON"], 8: ["Forest.tsv", "FOREST"], 9: ["SpellBoost-Rune.tsv", "RUNE"], 10: ["Dimension_Shift_Rune.tsv", "RUNE"], 11: ["PtP_Forest.tsv", "FOREST"], 12: ["Mid_Shadow.tsv", "SHADOW"], 13: ["Neutral_Blood.tsv", "BLOOD"],100: ["TEST.tsv", "SHADOW"], -2: ["Sword_Basic.tsv", "SWORD"]} # + # - if __name__ == "__main__": parser = argparse.ArgumentParser(description='デュアルニューラルネットワーク学習コード') parser.add_argument('--episode_num', help='試行回数') parser.add_argument('--iteration_num', help='イテレーション数') parser.add_argument('--epoch_num', help='エポック数') parser.add_argument('--batch_size', help='バッチサイズ') parser.add_argument('--mcts', help='サンプリングAIをMCTSにする(オリジナルの場合は[OM])') parser.add_argument('--deck', help='サンプリングに用いるデッキの選び方') parser.add_argument('--cuda', help='gpuを使用するかどうか') parser.add_argument('--multi_train', help="学習時も並列化するかどうか") parser.add_argument('--epoch_interval', help="モデルの保存間隔") parser.add_argument('--fixed_deck_id', help="使用デッキidの固定") parser.add_argument('--cpu_num', help="使用CPU数", default=2 if torch.cuda.is_available() else 3) parser.add_argument('--batch_num', help='サンプルに対するバッチの数') args = parser.parse_args() deck_flg = int(args.fixed_deck_id) if args.fixed_deck_id is not None else None args = parser.parse_args() net = New_Dual_Net(100) if torch.cuda.is_available() and args.cuda == "True": net = net.cuda() print("cuda is available.") cuda_flg = args.cuda == "True" from emulator_test import * # importの依存関係により必ず最初にimport from Field_setting import * from Player_setting import * from Policy import * from Game_setting import Game #deck_sampling_type = False #if args.deck is not None: # deck_sampling_type = True G = Game() episode_len = 100 if args.episode_num is not None: episode_len = int(args.episode_num) batch_size = 100 if args.batch_size is not None: batch_size = int(args.batch_size) iteration = 10 if args.iteration_num is not None: iteration = int(args.iteration_num) epoch_num = 2 if args.epoch_num is not None: epoch_num = int(args.epoch_num) mcts = False if args.mcts is not None: mcts = True import datetime t1 = datetime.datetime.now() print(t1) #print(net) R = New_Dual_ReplayMemory(100000) net.zero_grad() prev_net = copy.deepcopy(net) import os optimizer = optim.Adam(net.parameters(), weight_decay=0.01) for epoch in range(epoch_num): print("epoch {}".format(epoch+1)) R = New_Dual_ReplayMemory(100000) p1 = Player(9, True, policy=New_Dual_NN_Non_Rollout_OM_ISMCTSPolicy(origin_model=net, cuda=cuda_flg)) p1.name = "Alice" p2 = Player(9, False, policy=New_Dual_NN_Non_Rollout_OM_ISMCTSPolicy(origin_model=prev_net, cuda=cuda_flg)) p2.name = "Bob" win_num = 0 for episode in tqdm(range(episode_len)): f = Field(5) deck_type1 = deck_flg deck_type2 = deck_flg if deck_flg is None: deck_type1 = random.choice(list(key_2_tsv_name.keys())) deck_type2 = random.choice(list(key_2_tsv_name.keys())) d1 = tsv_to_deck(key_2_tsv_name[deck_type1][0]) d1.set_leader_class(key_2_tsv_name[deck_type1][1]) d2 = tsv_to_deck(key_2_tsv_name[deck_type2][0]) d2.set_leader_class(key_2_tsv_name[deck_type2][1]) d1.shuffle() d2.shuffle() p1.deck = d1 p2.deck = d2 f.players = [p1, p2] p1.field = f p2.field = f #import cProfile #cProfile.run("G.start_for_dual(f, virtual_flg=True, target_player_num=episode % 2)",sort="tottime") #assert False train_data, reward = G.start_for_dual(f, virtual_flg=True, target_player_num=episode % 2) f.players[0].life = 20 f.players[0].hand.clear() f.players[0].deck = None f.players[0].lib_out_flg = False f.players[1].life = 20 f.players[1].hand.clear() f.players[1].deck = None f.players[1].lib_out_flg = False for i in range(2): for data in train_data[i]: R.push(data[0], data[1], data[2], data[3], reward[i]) win_num += int(reward[episode % 2] > 0) print("sample_size:{}".format(len(R.memory))) print("win_rate:{:.2%}".format(win_num/episode_len)) prev_net = copy.deepcopy(net) sum_of_loss = 0 sum_of_MSE = 0 sum_of_CEE = 0 p,pai,z,states,loss = None, None, None, None,None current_net, prev_optimizer = None, None for i in tqdm(range(iteration)): print("\ni:{}\n".format(i)) states, actions, rewards = R.sample(batch_size) states['target'] = {'actions':actions, 'rewards':rewards} p, v, loss = net(states,target=True) z = rewards pai = actions#45種類の抽象化した行動 if (i + 1) % 100== 0: print("target:{} output:{}".format(z[0],v[0])) print("target:{} output:{}".format(pai[0], p[0])) print("loss:{}".format([loss[j].item() for j in range(3)])) if torch.isnan(loss): # section 3 net = current_net optimizer = torch.optim.Adam(net.parameters()) optimizer.load_state_dict(prev_optimizer.state_dict()) else: current_net = copy.deepcopy(net) prev_optimizer = copy.deepcopy(optimizer) optimizer.zero_grad() loss[0].backward() sum_of_loss += float(loss[0].item()) sum_of_MSE += float(loss[1].item()) sum_of_CEE += float(loss[2].item()) optimizer.step() print("{}".format(epoch + 1)) print("AVE | Over_All_Loss: {:.3f} | MSE: {:.3f} | CEE:{:.3f}"\ .format(sum_of_loss/iteration,sum_of_MSE/iteration,sum_of_CEE/iteration)) if torch.isnan(loss[0]): for key in list(net.state_dict().keys()): print(key, net.state_dict()[key].size()) if len(net.state_dict()[key].size()) == 1: print(torch.max(net.state_dict()[key], dim=0), "\n", torch.min(net.state_dict()[key], dim=0)) else: print(torch.max(net.state_dict()[key], 0), "\n", torch.min(net.state_dict()[key], 0)) print("") assert False if epoch_num > 4 and (epoch+1) % (epoch_num//4) == 0 and epoch+1 < epoch_num: PATH = "model/Dual_{}_{}_{}_{}_{}_{}_{:.0%}.pth".format(t1.year, t1.month, t1.day, t1.hour, t1.minute, t1.second, (epoch+1)/epoch_num) if torch.cuda.is_available() and cuda_flg: PATH = "model/Dual_{}_{}_{}_{}_{}_{}_{:.0%}_cuda.pth".format(t1.year, t1.month, t1.day, t1.hour, t1.minute, t1.second, (epoch + 1) / epoch_num) torch.save(net.state_dict(), PATH) print("{} is saved.".format(PATH)) print('Finished Training') #PATH = './value_net.pth' #PATH = './value_net.pth' PATH = "model/Dual_{}_{}_{}_{}_{}_{}_all.pth".format(t1.year, t1.month, t1.day, t1.hour, t1.minute, t1.second) if torch.cuda.is_available() and cuda_flg: PATH = "model/Dual_{}_{}_{}_{}_{}_{}_all_cuda.pth".format(t1.year, t1.month, t1.day, t1.hour, t1.minute, t1.second) torch.save(net.state_dict(), PATH) print("{} is saved.".format(PATH)) t2 = datetime.datetime.now() print(t2) print(t2-t1)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28034, 198, 11748, 28686, 198, 6738, 28034, 13, 16680, 541, 305, 919, 278, 1330, 19850, 11, 10854, 11, 900, 62, 9688, 62, 24396, 11, 36166, 62, 9127, 11, 371, 25392, 11, 5787, 2736, 62, 11284, 11, 11052, 11, 15690, 11, 9142, 11, 36166, 62, 9127, 198, 2, 418, 13, 268, 2268, 14692, 2662, 47, 62, 41359, 62, 4221, 15675, 50, 8973, 796, 366, 19, 1, 611, 28034, 13, 66, 15339, 13, 271, 62, 15182, 3419, 2073, 366, 21, 1, 198, 418, 13, 268, 2268, 14692, 47, 56, 4221, 1340, 31502, 50, 8973, 796, 705, 46430, 25, 43616, 6570, 382, 62, 2213, 10735, 25, 12982, 20361, 6, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 198, 2, 422, 662, 14681, 1330, 1635, 198, 6738, 662, 14681, 1330, 288, 17, 85, 62, 19849, 11, 288, 17, 85, 62, 5362, 62, 6551, 220, 198, 11748, 25064, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 4866, 198, 11748, 4738, 198, 6738, 616, 62, 44709, 1330, 1635, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 2, 6738, 12972, 13165, 354, 62, 11883, 23912, 1330, 7034, 198, 11748, 1822, 29572, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 4886, 62, 272, 24335, 198, 6738, 15891, 62, 21412, 1330, 1635, 198, 2, 40658, 796, 3706, 83, 29291, 10786, 8291, 653, 3256, 19203, 5219, 3256, 705, 2673, 3256, 705, 19545, 62, 5219, 3256, 705, 260, 904, 6, 4008, 198, 36248, 62, 9012, 62, 8367, 796, 3706, 83, 29291, 10786, 11395, 3256, 19203, 5219, 3256, 705, 2673, 3256, 705, 19052, 62, 5219, 3256, 705, 15255, 6255, 62, 2673, 62, 8189, 41707, 260, 904, 6, 4008, 198, 32080, 62, 9012, 62, 7890, 796, 3706, 83, 29291, 10786, 11395, 3256, 19203, 4993, 62, 2340, 3256, 705, 4993, 62, 9517, 62, 15805, 82, 3256, 705, 69, 47030, 62, 9517, 62, 2340, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 321, 25132, 62, 9517, 62, 2340, 3256, 705, 69, 47030, 62, 34242, 3256, 705, 69, 47030, 62, 5738, 3256, 705, 540, 62, 1462, 62, 1990, 78, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 6042, 62, 7890, 3256, 705, 381, 62, 7890, 41707, 540, 62, 1462, 62, 1759, 41707, 540, 62, 1462, 62, 20358, 3256, 705, 540, 62, 1462, 62, 20123, 495, 62, 20358, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 35875, 62, 7890, 6, 4008, 198, 37811, 198, 220, 220, 5128, 796, 1391, 6, 27160, 3256, 705, 4993, 62, 2340, 41707, 69, 47030, 62, 9517, 62, 2340, 3256, 220, 198, 220, 220, 220, 220, 220, 220, 220, 705, 321, 25132, 62, 9517, 62, 2340, 3256, 705, 69, 47030, 62, 5738, 3256, 705, 540, 62, 1462, 62, 1990, 78, 6, 92, 198, 37811, 628, 628, 220, 220, 220, 1303, 31, 13317, 628, 628, 198, 198, 35875, 62, 312, 62, 17, 62, 3672, 796, 1391, 15, 25, 366, 43117, 62, 46384, 305, 1600, 352, 25, 366, 49, 1726, 62, 22840, 1600, 362, 25, 366, 43117, 1600, 513, 25, 366, 27447, 1600, 604, 25, 366, 17808, 62, 5760, 42, 1600, 642, 25, 366, 39, 4005, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 718, 25, 366, 21659, 1600, 767, 25, 366, 17808, 1600, 807, 25, 366, 34605, 1600, 860, 25, 366, 49, 1726, 1600, 838, 25, 366, 5258, 62, 49, 1726, 1600, 532, 16, 25, 366, 34605, 62, 26416, 1600, 532, 17, 25, 366, 43117, 62, 26416, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 532, 18, 25, 366, 49, 1726, 62, 26416, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 532, 19, 25, 366, 17808, 62, 26416, 1600, 532, 20, 25, 366, 13775, 6465, 62, 26416, 1600, 532, 21, 25, 366, 21659, 62, 26416, 1600, 532, 22, 25, 366, 39, 4005, 62, 26416, 1600, 532, 23, 25, 366, 13924, 282, 62, 26416, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1802, 25, 366, 51, 6465, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 532, 24, 25, 366, 31221, 12, 49, 1726, 1600, 1367, 25, 366, 47, 83, 47, 12, 34605, 1600, 1105, 25, 366, 22622, 12, 27447, 1600, 1511, 25, 366, 8199, 6815, 12, 21659, 20662, 198, 198, 2539, 62, 17, 62, 912, 85, 62, 3672, 796, 1391, 15, 25, 14631, 43117, 62, 46384, 305, 13, 912, 85, 1600, 366, 17887, 12532, 33116, 352, 25, 14631, 49, 1726, 62, 22840, 13, 912, 85, 1600, 366, 49, 41884, 33116, 362, 25, 14631, 43117, 13, 912, 85, 1600, 366, 17887, 12532, 33116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 513, 25, 14631, 3791, 12, 27447, 13, 912, 85, 1600, 366, 9693, 2885, 3913, 33116, 604, 25, 14631, 17808, 62, 5760, 42, 13, 912, 85, 1600, 366, 35, 33202, 1340, 33116, 642, 25, 14631, 14402, 12, 39, 4005, 13, 912, 85, 1600, 366, 7801, 28290, 33116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 718, 25, 14631, 21659, 13, 912, 85, 1600, 366, 9148, 22808, 33116, 767, 25, 14631, 17808, 13, 912, 85, 1600, 366, 35, 33202, 1340, 33116, 807, 25, 14631, 34605, 13, 912, 85, 1600, 366, 13775, 6465, 33116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 860, 25, 14631, 31221, 45686, 12, 49, 1726, 13, 912, 85, 1600, 366, 49, 41884, 33116, 838, 25, 14631, 29271, 3004, 62, 33377, 62, 49, 1726, 13, 912, 85, 1600, 366, 49, 41884, 33116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1367, 25, 14631, 47, 83, 47, 62, 34605, 13, 912, 85, 1600, 366, 13775, 6465, 33116, 1105, 25, 14631, 22622, 62, 27447, 13, 912, 85, 1600, 366, 9693, 2885, 3913, 33116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1511, 25, 14631, 8199, 6815, 62, 21659, 13, 912, 85, 1600, 366, 9148, 22808, 33116, 3064, 25, 14631, 51, 6465, 13, 912, 85, 1600, 366, 9693, 2885, 3913, 33116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 532, 17, 25, 14631, 43117, 62, 26416, 13, 912, 85, 1600, 366, 17887, 12532, 8973, 92, 628, 198, 2, 1343, 198, 220, 220, 220, 220, 220, 220, 220, 220, 628, 198, 2, 532, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 21959, 24440, 47794, 30165, 24440, 6312, 9263, 9202, 44916, 35799, 25589, 42869, 27764, 99, 163, 123, 240, 24679, 12045, 231, 11537, 628, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 38668, 62, 22510, 3256, 1037, 11639, 164, 102, 99, 26193, 234, 32368, 252, 46763, 108, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 2676, 341, 62, 22510, 3256, 1037, 11639, 11482, 24336, 24186, 6312, 15661, 1209, 100, 6527, 46763, 108, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 538, 5374, 62, 22510, 3256, 1037, 11639, 23544, 1209, 251, 35702, 46763, 108, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 43501, 62, 7857, 3256, 1037, 11639, 29659, 14777, 31090, 26503, 11482, 37426, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 76, 310, 82, 3256, 1037, 11639, 26503, 6527, 30965, 12675, 6527, 26095, 20185, 31758, 44, 4177, 50, 28618, 33623, 25748, 7, 20513, 12675, 21091, 26229, 9202, 15474, 254, 112, 28938, 230, 31676, 58, 2662, 12962, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 35875, 3256, 1037, 11639, 26503, 6527, 30965, 12675, 6527, 26095, 28618, 18796, 101, 18566, 25748, 21959, 14777, 25084, 33426, 223, 116, 2515, 111, 43095, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 66, 15339, 3256, 1037, 11639, 46999, 31758, 45635, 18796, 101, 33623, 25748, 27370, 2515, 102, 29557, 27370, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 41684, 62, 27432, 3256, 1037, 2625, 27764, 99, 163, 123, 240, 162, 25081, 43266, 10310, 99, 26344, 245, 44293, 244, 33623, 25748, 27370, 2515, 102, 29557, 27370, 4943, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 538, 5374, 62, 3849, 2100, 3256, 1037, 2625, 40361, 21959, 9202, 5641, 46479, 251, 27764, 246, 38461, 241, 49694, 242, 4943, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 34021, 62, 35875, 62, 312, 3256, 1037, 2625, 45635, 18796, 101, 21959, 14777, 25084, 312, 15474, 249, 118, 22522, 248, 4943, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 36166, 62, 22510, 3256, 1037, 2625, 45635, 18796, 101, 36037, 46763, 108, 1600, 4277, 28, 17, 611, 28034, 13, 66, 15339, 13, 271, 62, 15182, 3419, 2073, 513, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 43501, 62, 22510, 3256, 1037, 11639, 26503, 6527, 30965, 9202, 28618, 43380, 122, 33623, 25748, 29659, 14777, 31090, 27032, 243, 108, 11537, 198, 220, 220, 220, 26498, 796, 30751, 13, 29572, 62, 22046, 3419, 198, 220, 220, 220, 6203, 62, 2704, 70, 796, 493, 7, 22046, 13, 34021, 62, 35875, 62, 312, 8, 611, 26498, 13, 34021, 62, 35875, 62, 312, 318, 407, 6045, 2073, 6045, 198, 220, 220, 220, 26498, 796, 30751, 13, 29572, 62, 22046, 3419, 198, 220, 220, 220, 2010, 796, 968, 62, 36248, 62, 7934, 7, 3064, 8, 198, 220, 220, 220, 611, 28034, 13, 66, 15339, 13, 271, 62, 15182, 3419, 290, 26498, 13, 66, 15339, 6624, 366, 17821, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 2010, 13, 66, 15339, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 66, 15339, 318, 1695, 19570, 198, 220, 220, 220, 269, 15339, 62, 2704, 70, 796, 26498, 13, 66, 15339, 6624, 366, 17821, 1, 198, 220, 220, 220, 422, 38274, 62, 9288, 1330, 1635, 220, 1303, 1330, 5641, 160, 122, 251, 27764, 246, 38461, 95, 46479, 224, 28618, 1792, 230, 28255, 33232, 227, 2515, 248, 17312, 222, 26344, 251, 28618, 11748, 198, 220, 220, 220, 422, 7663, 62, 33990, 1330, 1635, 198, 220, 220, 220, 422, 7853, 62, 33990, 1330, 1635, 198, 220, 220, 220, 422, 7820, 1330, 1635, 198, 220, 220, 220, 422, 3776, 62, 33990, 1330, 3776, 628, 220, 220, 220, 1303, 35875, 62, 37687, 11347, 62, 4906, 796, 10352, 198, 220, 220, 220, 1303, 361, 26498, 13, 35875, 318, 407, 6045, 25, 198, 220, 220, 220, 1303, 220, 220, 220, 6203, 62, 37687, 11347, 62, 4906, 796, 6407, 628, 220, 220, 220, 402, 796, 3776, 3419, 198, 220, 220, 220, 4471, 62, 11925, 796, 1802, 198, 220, 220, 220, 611, 26498, 13, 38668, 62, 22510, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 4471, 62, 11925, 796, 493, 7, 22046, 13, 38668, 62, 22510, 8, 198, 220, 220, 220, 15458, 62, 7857, 796, 1802, 198, 220, 220, 220, 611, 26498, 13, 43501, 62, 7857, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 15458, 62, 7857, 796, 493, 7, 22046, 13, 43501, 62, 7857, 8, 198, 220, 220, 220, 24415, 796, 838, 198, 220, 220, 220, 611, 26498, 13, 2676, 341, 62, 22510, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 24415, 796, 493, 7, 22046, 13, 2676, 341, 62, 22510, 8, 198, 220, 220, 220, 36835, 62, 22510, 796, 362, 198, 220, 220, 220, 611, 26498, 13, 538, 5374, 62, 22510, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 36835, 62, 22510, 796, 493, 7, 22046, 13, 538, 5374, 62, 22510, 8, 198, 220, 220, 220, 285, 310, 82, 796, 10352, 198, 220, 220, 220, 611, 26498, 13, 76, 310, 82, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 285, 310, 82, 796, 6407, 198, 220, 220, 220, 1330, 4818, 8079, 198, 220, 220, 220, 256, 16, 796, 4818, 8079, 13, 19608, 8079, 13, 2197, 3419, 198, 220, 220, 220, 3601, 7, 83, 16, 8, 198, 220, 220, 220, 1303, 4798, 7, 3262, 8, 198, 220, 220, 220, 371, 796, 968, 62, 36248, 62, 3041, 1759, 30871, 7, 3064, 830, 8, 198, 220, 220, 220, 2010, 13, 22570, 62, 9744, 3419, 198, 220, 220, 220, 8654, 62, 3262, 796, 4866, 13, 22089, 30073, 7, 3262, 8, 198, 220, 220, 220, 1330, 28686, 198, 220, 220, 220, 6436, 7509, 796, 6436, 13, 23159, 7, 3262, 13, 17143, 7307, 22784, 3463, 62, 12501, 323, 28, 15, 13, 486, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 329, 36835, 287, 2837, 7, 538, 5374, 62, 22510, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 538, 5374, 23884, 1911, 18982, 7, 538, 5374, 10, 16, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 371, 796, 968, 62, 36248, 62, 3041, 1759, 30871, 7, 3064, 830, 8, 198, 220, 220, 220, 220, 220, 220, 220, 279, 16, 796, 7853, 7, 24, 11, 6407, 11, 2450, 28, 3791, 62, 36248, 62, 6144, 62, 15419, 62, 26869, 448, 62, 2662, 62, 31125, 4177, 4303, 21424, 7, 47103, 62, 19849, 28, 3262, 11, 269, 15339, 28, 66, 15339, 62, 2704, 70, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 279, 16, 13, 3672, 796, 366, 44484, 1, 198, 220, 220, 220, 220, 220, 220, 220, 279, 17, 796, 7853, 7, 24, 11, 10352, 11, 2450, 28, 3791, 62, 36248, 62, 6144, 62, 15419, 62, 26869, 448, 62, 2662, 62, 31125, 4177, 4303, 21424, 7, 47103, 62, 19849, 28, 47050, 62, 3262, 11, 269, 15339, 28, 66, 15339, 62, 2704, 70, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 279, 17, 13, 3672, 796, 366, 18861, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1592, 62, 22510, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 329, 4471, 287, 256, 80, 36020, 7, 9521, 7, 38668, 62, 11925, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 796, 7663, 7, 20, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6203, 62, 4906, 16, 796, 6203, 62, 2704, 70, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6203, 62, 4906, 17, 796, 6203, 62, 2704, 70, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 6203, 62, 2704, 70, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6203, 62, 4906, 16, 796, 4738, 13, 25541, 7, 4868, 7, 2539, 62, 17, 62, 912, 85, 62, 3672, 13, 13083, 3419, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6203, 62, 4906, 17, 796, 4738, 13, 25541, 7, 4868, 7, 2539, 62, 17, 62, 912, 85, 62, 3672, 13, 13083, 3419, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 16, 796, 256, 21370, 62, 1462, 62, 35875, 7, 2539, 62, 17, 62, 912, 85, 62, 3672, 58, 35875, 62, 4906, 16, 7131, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 16, 13, 2617, 62, 27940, 62, 4871, 7, 2539, 62, 17, 62, 912, 85, 62, 3672, 58, 35875, 62, 4906, 16, 7131, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 17, 796, 256, 21370, 62, 1462, 62, 35875, 7, 2539, 62, 17, 62, 912, 85, 62, 3672, 58, 35875, 62, 4906, 17, 7131, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 17, 13, 2617, 62, 27940, 62, 4871, 7, 2539, 62, 17, 62, 912, 85, 62, 3672, 58, 35875, 62, 4906, 17, 7131, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 16, 13, 1477, 18137, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 17, 13, 1477, 18137, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 16, 13, 35875, 796, 288, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 17, 13, 35875, 796, 288, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 32399, 796, 685, 79, 16, 11, 279, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 16, 13, 3245, 796, 277, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 17, 13, 3245, 796, 277, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 11748, 269, 37046, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 66, 37046, 13, 5143, 7203, 38, 13, 9688, 62, 1640, 62, 646, 282, 7, 69, 11, 7166, 62, 2704, 70, 28, 17821, 11, 2496, 62, 7829, 62, 22510, 28, 38668, 4064, 362, 42501, 30619, 2625, 83, 1252, 524, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 30493, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4512, 62, 7890, 11, 6721, 796, 402, 13, 9688, 62, 1640, 62, 646, 282, 7, 69, 11, 7166, 62, 2704, 70, 28, 17821, 11, 2496, 62, 7829, 62, 22510, 28, 38668, 4064, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 32399, 58, 15, 4083, 6042, 796, 1160, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 32399, 58, 15, 4083, 4993, 13, 20063, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 32399, 58, 15, 4083, 35875, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 32399, 58, 15, 4083, 8019, 62, 448, 62, 2704, 70, 796, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 32399, 58, 16, 4083, 6042, 796, 1160, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 32399, 58, 16, 4083, 4993, 13, 20063, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 32399, 58, 16, 4083, 35875, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 13, 32399, 58, 16, 4083, 8019, 62, 448, 62, 2704, 70, 796, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 2837, 7, 17, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1366, 287, 4512, 62, 7890, 58, 72, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 371, 13, 14689, 7, 7890, 58, 15, 4357, 1366, 58, 16, 4357, 1366, 58, 17, 4357, 1366, 58, 18, 4357, 6721, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1592, 62, 22510, 15853, 493, 7, 260, 904, 58, 38668, 4064, 362, 60, 1875, 657, 8, 628, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 39873, 62, 7857, 29164, 92, 1911, 18982, 7, 11925, 7, 49, 13, 31673, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 5404, 62, 4873, 29164, 25, 13, 17, 4, 92, 1911, 18982, 7, 5404, 62, 22510, 14, 38668, 62, 11925, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 8654, 62, 3262, 796, 4866, 13, 22089, 30073, 7, 3262, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2160, 62, 1659, 62, 22462, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 62, 1659, 62, 44, 5188, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 62, 1659, 62, 5222, 36, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 279, 11, 49712, 11, 89, 11, 27219, 11, 22462, 796, 6045, 11, 6045, 11, 6045, 11, 6045, 11, 14202, 198, 220, 220, 220, 220, 220, 220, 220, 1459, 62, 3262, 11, 8654, 62, 40085, 7509, 796, 6045, 11, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 256, 80, 36020, 7, 9521, 7, 2676, 341, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 59, 8461, 29164, 32239, 77, 1911, 18982, 7, 72, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2585, 11, 4028, 11, 11530, 796, 371, 13, 39873, 7, 43501, 62, 7857, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2585, 17816, 16793, 20520, 796, 1391, 6, 4658, 10354, 4658, 11, 705, 260, 2017, 10354, 260, 2017, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 11, 410, 11, 2994, 796, 2010, 7, 27219, 11, 16793, 28, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 796, 11530, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 1872, 796, 4028, 2, 2231, 163, 101, 106, 165, 94, 252, 27032, 232, 121, 164, 109, 94, 44293, 244, 22180, 25224, 26193, 234, 47947, 243, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 357, 72, 1343, 352, 8, 4064, 1802, 855, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 16793, 29164, 92, 5072, 29164, 92, 1911, 18982, 7, 89, 58, 15, 4357, 85, 58, 15, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 16793, 29164, 92, 5072, 29164, 92, 1911, 18982, 7, 49712, 58, 15, 4357, 279, 58, 15, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 22462, 29164, 92, 1911, 18982, 26933, 22462, 58, 73, 4083, 9186, 3419, 329, 474, 287, 2837, 7, 18, 15437, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 28034, 13, 271, 12647, 7, 22462, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2665, 513, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 1459, 62, 3262, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6436, 7509, 796, 28034, 13, 40085, 13, 23159, 7, 3262, 13, 17143, 7307, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6436, 7509, 13, 2220, 62, 5219, 62, 11600, 7, 47050, 62, 40085, 7509, 13, 5219, 62, 11600, 28955, 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, 1459, 62, 3262, 796, 4866, 13, 22089, 30073, 7, 3262, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8654, 62, 40085, 7509, 796, 4866, 13, 22089, 30073, 7, 40085, 7509, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6436, 7509, 13, 22570, 62, 9744, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 58, 15, 4083, 1891, 904, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2160, 62, 1659, 62, 22462, 15853, 12178, 7, 22462, 58, 15, 4083, 9186, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2160, 62, 1659, 62, 44, 5188, 15853, 12178, 7, 22462, 58, 16, 4083, 9186, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2160, 62, 1659, 62, 5222, 36, 15853, 12178, 7, 22462, 58, 17, 4083, 9186, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6436, 7509, 13, 9662, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 90, 92, 1911, 18982, 7, 538, 5374, 1343, 352, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 32, 6089, 930, 3827, 62, 3237, 62, 43, 793, 25, 46110, 13, 18, 69, 92, 930, 337, 5188, 25, 46110, 13, 18, 69, 92, 930, 327, 6500, 29164, 25, 13, 18, 69, 36786, 59, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 18982, 7, 16345, 62, 1659, 62, 22462, 14, 2676, 341, 11, 16345, 62, 1659, 62, 44, 5188, 14, 2676, 341, 11, 16345, 62, 1659, 62, 5222, 36, 14, 2676, 341, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 611, 28034, 13, 271, 12647, 7, 22462, 58, 15, 60, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1994, 287, 1351, 7, 3262, 13, 5219, 62, 11600, 22446, 13083, 3419, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 2539, 11, 2010, 13, 5219, 62, 11600, 3419, 58, 2539, 4083, 7857, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 3262, 13, 5219, 62, 11600, 3419, 58, 2539, 4083, 7857, 28955, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 13165, 354, 13, 9806, 7, 3262, 13, 5219, 62, 11600, 3419, 58, 2539, 4357, 5391, 28, 15, 828, 37082, 77, 1600, 28034, 13, 1084, 7, 3262, 13, 5219, 62, 11600, 3419, 58, 2539, 4357, 5391, 28, 15, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 13165, 354, 13, 9806, 7, 3262, 13, 5219, 62, 11600, 3419, 58, 2539, 4357, 657, 828, 37082, 77, 1600, 28034, 13, 1084, 7, 3262, 13, 5219, 62, 11600, 3419, 58, 2539, 4357, 657, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 611, 36835, 62, 22510, 1875, 604, 290, 357, 538, 5374, 10, 16, 8, 4064, 357, 538, 5374, 62, 22510, 1003, 19, 8, 6624, 657, 290, 36835, 10, 16, 1279, 36835, 62, 22510, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46490, 796, 366, 19849, 14, 36248, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 23330, 25, 13, 15, 4, 27422, 79, 400, 1911, 18982, 7, 83, 16, 13, 1941, 11, 256, 16, 13, 8424, 11, 256, 16, 13, 820, 11, 256, 16, 13, 9769, 11, 256, 16, 13, 11374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 16, 13, 12227, 11, 357, 538, 5374, 10, 16, 20679, 538, 5374, 62, 22510, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 28034, 13, 66, 15339, 13, 271, 62, 15182, 3419, 290, 269, 15339, 62, 2704, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46490, 796, 366, 19849, 14, 36248, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 23330, 25, 13, 15, 4, 92, 62, 66, 15339, 13, 79, 400, 1911, 18982, 7, 83, 16, 13, 1941, 11, 256, 16, 13, 8424, 11, 256, 16, 13, 820, 11, 256, 16, 13, 9769, 11, 256, 16, 13, 11374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 16, 13, 12227, 11, 357, 538, 5374, 1343, 352, 8, 1220, 36835, 62, 22510, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28034, 13, 21928, 7, 3262, 13, 5219, 62, 11600, 22784, 46490, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 90, 92, 318, 7448, 526, 13, 18982, 7, 34219, 4008, 628, 220, 220, 220, 3601, 10786, 18467, 1348, 13614, 11537, 198, 220, 220, 220, 1303, 34219, 796, 705, 19571, 8367, 62, 3262, 13, 79, 400, 6, 628, 220, 220, 220, 1303, 34219, 796, 705, 19571, 8367, 62, 3262, 13, 79, 400, 6, 628, 198, 220, 220, 220, 46490, 796, 366, 19849, 14, 36248, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 62, 439, 13, 79, 400, 1911, 18982, 7, 83, 16, 13, 1941, 11, 256, 16, 13, 8424, 11, 256, 16, 13, 820, 11, 256, 16, 13, 9769, 11, 256, 16, 13, 11374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 16, 13, 12227, 8, 198, 220, 220, 220, 611, 28034, 13, 66, 15339, 13, 271, 62, 15182, 3419, 290, 269, 15339, 62, 2704, 70, 25, 198, 220, 220, 220, 220, 220, 220, 220, 46490, 796, 366, 19849, 14, 36248, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 23330, 92, 62, 439, 62, 66, 15339, 13, 79, 400, 1911, 18982, 7, 83, 16, 13, 1941, 11, 256, 16, 13, 8424, 11, 256, 16, 13, 820, 11, 256, 16, 13, 9769, 11, 256, 16, 13, 11374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 16, 13, 12227, 8, 198, 220, 220, 220, 28034, 13, 21928, 7, 3262, 13, 5219, 62, 11600, 22784, 46490, 8, 198, 220, 220, 220, 3601, 7203, 90, 92, 318, 7448, 526, 13, 18982, 7, 34219, 4008, 198, 220, 220, 220, 256, 17, 796, 4818, 8079, 13, 19608, 8079, 13, 2197, 3419, 198, 220, 220, 220, 3601, 7, 83, 17, 8, 198, 220, 220, 220, 3601, 7, 83, 17, 12, 83, 16, 8, 198 ]
1.91631
5,377
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') # test the publicly avalialbel tags api # test the authorized user tags api
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2149, 75, 1153, 198, 198, 6738, 4755, 13, 27530, 1330, 17467, 198, 198, 6738, 8364, 13, 46911, 11341, 1330, 17467, 32634, 7509, 198, 198, 42197, 50, 62, 21886, 796, 9575, 10786, 29102, 431, 25, 12985, 12, 4868, 11537, 198, 197, 2, 1332, 262, 7271, 37441, 498, 6667, 15940, 40391, 198, 197, 2, 1332, 262, 10435, 2836, 15940, 40391 ]
3.551402
107
from django import forms from event.models import Customer, Evenement
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 1785, 13, 27530, 1330, 22092, 11, 3412, 972, 628, 628 ]
4.294118
17
#!/usr/bin/env python3 import shutil from app.settings import settings from app.services.certbot import obtain_certbot_certs from app.services.aws import list_secret_names, upload_certs_as_secrets if __name__ == "__main__": handler(None, None)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 4423, 346, 198, 198, 6738, 598, 13, 33692, 1330, 6460, 198, 6738, 598, 13, 30416, 13, 22583, 13645, 1330, 7330, 62, 22583, 13645, 62, 22583, 82, 198, 6738, 598, 13, 30416, 13, 8356, 1330, 1351, 62, 21078, 62, 14933, 11, 9516, 62, 22583, 82, 62, 292, 62, 2363, 8004, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 21360, 7, 14202, 11, 6045, 8, 198 ]
2.976471
85
x = input() print 2**x
[ 87, 796, 5128, 3419, 198, 4798, 362, 1174, 87, 198 ]
2.3
10
# proxy module from __future__ import absolute_import from mayavi.tools.modules import *
[ 2, 15741, 8265, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 743, 15820, 13, 31391, 13, 18170, 1330, 1635, 198 ]
3.869565
23
from django.conf.urls import url from django.urls import include from rest_framework.routers import DefaultRouter from . import views router = DefaultRouter() router.register(r"users", views.UserViewSet) router.register(r"playlists", views.PlaylistViewSet) router.register(r"radios", views.RadioViewSet) router.register(r"songs", views.SongViewSet) urlpatterns = router.urls urlpatterns += [ url(r"^api-auth/", include("rest_framework.urls")), ]
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 2291, 198, 6738, 1334, 62, 30604, 13, 472, 1010, 1330, 15161, 49, 39605, 198, 198, 6738, 764, 1330, 5009, 198, 198, 472, 353, 796, 15161, 49, 39605, 3419, 198, 472, 353, 13, 30238, 7, 81, 1, 18417, 1600, 5009, 13, 12982, 7680, 7248, 8, 198, 472, 353, 13, 30238, 7, 81, 1, 1759, 20713, 1600, 5009, 13, 11002, 4868, 7680, 7248, 8, 198, 472, 353, 13, 30238, 7, 81, 1, 6335, 4267, 1600, 5009, 13, 26093, 7680, 7248, 8, 198, 472, 353, 13, 30238, 7, 81, 1, 82, 28079, 1600, 5009, 13, 44241, 7680, 7248, 8, 628, 198, 6371, 33279, 82, 796, 20264, 13, 6371, 82, 198, 6371, 33279, 82, 15853, 685, 198, 220, 220, 220, 19016, 7, 81, 1, 61, 15042, 12, 18439, 14, 1600, 2291, 7203, 2118, 62, 30604, 13, 6371, 82, 4943, 828, 198, 60, 198 ]
2.89172
157
import click from .cli import cli from ..maze import Maze from ..interface import load, is_context, is_value from json import dumps from sys import stdout from typing import Iterable, Callable, Tuple, TypeVar from itertools import chain, filterfalse, tee T = TypeVar("T") def partition(iterable : Iterable[T], predicate : Callable[[T], bool]) -> Tuple[Iterable[T], Iterable[T]]: """Partition an iterable by a predicate.""" iter1, iter2 = tee(iterable) return filterfalse(predicate, iter1), filter(predicate, iter2) def entries(maze : Maze) -> Iterable: """Convert a maze to a sequence of rows in a JSONL-encoded table.""" if is_context(maze): values, contexts = partition(maze.mazes(), is_context) # pre-populate the entry with the values entry = {value.symbol : value.value for value in values} # tag the maze symbol with the key entry[f"{maze.symbol}:key"] = maze.key # and add the duration entry[f"{maze.symbol}:duration"] = maze.value.duration # now, merge with all the sub-contexts (if they exist!) contexts = list(contexts) if contexts: context_entries = (entries(context) for context in contexts) for context_entry in chain.from_iterable(context_entries): yield {**entry, **context_entry} else: yield entry def dump(maze : Maze, fp): """Dump the paths of a maze to the provided file pointer.""" for entry in entries(maze): fp.write(f"{dumps(entry)}\n") @cli.command() @click.argument("filepath") @click.option("-o", "--output", type=str, help="Output file to which rows will be appended.") def jsonl(filepath, output): """Convert a message log into a JSONL-encoded table.""" mazes = load(filepath=filepath) if output: with open(output, "a") as f: for maze in mazes: dump(maze, f) else: for maze in mazes: dump(maze, stdout)
[ 11748, 3904, 198, 6738, 764, 44506, 1330, 537, 72, 198, 198, 6738, 11485, 76, 6201, 1330, 33412, 198, 6738, 11485, 39994, 1330, 3440, 11, 318, 62, 22866, 11, 318, 62, 8367, 198, 198, 6738, 33918, 1330, 45514, 198, 6738, 25064, 1330, 14367, 448, 198, 6738, 19720, 1330, 40806, 540, 11, 4889, 540, 11, 309, 29291, 11, 5994, 19852, 198, 6738, 340, 861, 10141, 1330, 6333, 11, 8106, 9562, 11, 30479, 198, 198, 51, 796, 5994, 19852, 7203, 51, 4943, 198, 198, 4299, 18398, 7, 2676, 540, 1058, 40806, 540, 58, 51, 4357, 44010, 1058, 4889, 540, 30109, 51, 4357, 20512, 12962, 4613, 309, 29291, 58, 29993, 540, 58, 51, 4357, 40806, 540, 58, 51, 60, 5974, 198, 220, 220, 220, 37227, 7841, 653, 281, 11629, 540, 416, 257, 44010, 526, 15931, 628, 220, 220, 220, 11629, 16, 11, 11629, 17, 796, 30479, 7, 2676, 540, 8, 198, 220, 220, 220, 1441, 8106, 9562, 7, 28764, 5344, 11, 11629, 16, 828, 8106, 7, 28764, 5344, 11, 11629, 17, 8, 198, 198, 4299, 12784, 7, 76, 6201, 1058, 33412, 8, 4613, 40806, 540, 25, 198, 220, 220, 220, 37227, 3103, 1851, 257, 31237, 284, 257, 8379, 286, 15274, 287, 257, 19449, 43, 12, 12685, 9043, 3084, 526, 15931, 628, 220, 220, 220, 611, 318, 62, 22866, 7, 76, 6201, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 3815, 11, 26307, 796, 18398, 7, 76, 6201, 13, 76, 36096, 22784, 318, 62, 22866, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 662, 12, 12924, 5039, 262, 5726, 351, 262, 3815, 198, 220, 220, 220, 220, 220, 220, 220, 5726, 796, 1391, 8367, 13, 1837, 23650, 1058, 1988, 13, 8367, 329, 1988, 287, 3815, 92, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 7621, 262, 31237, 6194, 351, 262, 1994, 198, 220, 220, 220, 220, 220, 220, 220, 5726, 58, 69, 1, 90, 76, 6201, 13, 1837, 23650, 38362, 2539, 8973, 796, 31237, 13, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 290, 751, 262, 9478, 198, 220, 220, 220, 220, 220, 220, 220, 5726, 58, 69, 1, 90, 76, 6201, 13, 1837, 23650, 38362, 32257, 8973, 796, 31237, 13, 8367, 13, 32257, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 783, 11, 20121, 351, 477, 262, 850, 12, 22866, 82, 357, 361, 484, 2152, 8133, 198, 220, 220, 220, 220, 220, 220, 220, 26307, 796, 1351, 7, 22866, 82, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 26307, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4732, 62, 298, 1678, 796, 357, 298, 1678, 7, 22866, 8, 329, 4732, 287, 26307, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 4732, 62, 13000, 287, 6333, 13, 6738, 62, 2676, 540, 7, 22866, 62, 298, 1678, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 1391, 1174, 13000, 11, 12429, 22866, 62, 13000, 92, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7800, 5726, 198, 198, 4299, 10285, 7, 76, 6201, 1058, 33412, 11, 277, 79, 2599, 198, 220, 220, 220, 37227, 35, 931, 262, 13532, 286, 257, 31237, 284, 262, 2810, 2393, 17562, 526, 15931, 628, 220, 220, 220, 329, 5726, 287, 12784, 7, 76, 6201, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 277, 79, 13, 13564, 7, 69, 1, 90, 67, 8142, 7, 13000, 8, 32239, 77, 4943, 198, 198, 31, 44506, 13, 21812, 3419, 198, 31, 12976, 13, 49140, 7203, 7753, 6978, 4943, 198, 31, 12976, 13, 18076, 7203, 12, 78, 1600, 366, 438, 22915, 1600, 2099, 28, 2536, 11, 1037, 2625, 26410, 2393, 284, 543, 15274, 481, 307, 598, 1631, 19570, 198, 4299, 33918, 75, 7, 7753, 6978, 11, 5072, 2599, 198, 220, 220, 220, 37227, 3103, 1851, 257, 3275, 2604, 656, 257, 19449, 43, 12, 12685, 9043, 3084, 526, 15931, 628, 220, 220, 220, 285, 36096, 796, 3440, 7, 7753, 6978, 28, 7753, 6978, 8, 628, 220, 220, 220, 611, 5072, 25, 198, 220, 220, 220, 220, 220, 220, 220, 351, 1280, 7, 22915, 11, 366, 64, 4943, 355, 277, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 31237, 287, 285, 36096, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10285, 7, 76, 6201, 11, 277, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 329, 31237, 287, 285, 36096, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10285, 7, 76, 6201, 11, 14367, 448, 8, 198 ]
2.502494
802
import os import sqlite3 import gdsync
[ 11748, 28686, 198, 11748, 44161, 578, 18, 198, 198, 11748, 308, 67, 27261, 628 ]
2.928571
14
from numpy import cross, array , vdot from numpy.linalg import norm import matplotlib.pyplot as plt from roblib import * def vct_nrm(a,b,c): """Soit a,b,c trois coin de la plateforme supossée carrée, n est un vecteur normal de cette platforme""" V1 = a-b V2 = a-c n = cross(V1,V2).T return n/norm(n) def champ(p,n,phat,v_d): """p position du drone, n vecteur normal à la plateforme, phat point cible où attérir, v_d vecteur vitesse de la plateforme""" calc1 = cross(n.T,(p-phat).T) pt_attract = 1*(phat-p) vitesse_cible = 0.5*v_d Q = 0.4*cross(n.T,calc1)+pt_attract.T + vitesse_cible return Q a = array([[0,5,0]]) b = array([[1,0,0]]) c = array([[0,1,0]]) n = vct_nrm(a,b,c) print("vecteur normal = ",n) phat = array([[100],[0],[0]]) #position point d'attérissage p = array([[0],[0],[100]]) #position drone Q = champ(p,n,phat) print("n.Q",vdot(n, Q)) print("valeur du champ au point",Q) a = a.flatten() b = b.flatten() c = c.flatten() fig = figure() ax = Axes3D(fig) # for x in arange(0,1,0.1): # for y in arange(0,1,0.1): # for z in arange(0,3,0.25): # draw_shampoing(array([[x,y,z]]).T) # phat = phat.flatten() # ax.scatter(phat[0],phat[1],phat[2]) #phat # n = n.flatten() # ax.plot([phat[0],phat[0]+3*n[0]],[phat[1],phat[1]+3*n[1]],[phat[2],phat[2]+3*n[2]]) #vecteur normal à partir de phat # ax.plot([a[0],b[0],c[0],a[0]],[a[1],b[1],c[1],a[1]],[a[2],b[2],c[2],a[2]]) #platforme # pause(10) """ plt.figure() plt.xlim((-3,3)) plt.ylim((-3,3)) plt.plot(phat[0,0],phat[1,0],'ob') plt.plot(p[0,0],p[1,0],'or') plt.plot([p.flatten()[0],p.flatten()[0]+Q.flatten()[0]],[p.flatten()[1],p.flatten()[1]+Q.flatten()[1]]) plt.show()"""
[ 6738, 299, 32152, 1330, 3272, 11, 7177, 837, 410, 26518, 198, 6738, 299, 32152, 13, 75, 1292, 70, 1330, 2593, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 686, 2436, 571, 1330, 1635, 198, 4299, 410, 310, 62, 77, 26224, 7, 64, 11, 65, 11, 66, 2599, 198, 197, 37811, 2396, 270, 257, 11, 65, 11, 66, 4161, 271, 10752, 390, 8591, 7480, 687, 68, 7418, 793, 22161, 1097, 81, 22161, 11, 299, 1556, 555, 1569, 310, 23365, 3487, 390, 269, 5857, 3859, 68, 37811, 198, 197, 53, 16, 796, 257, 12, 65, 198, 197, 53, 17, 796, 257, 12, 66, 198, 197, 77, 796, 3272, 7, 53, 16, 11, 53, 17, 737, 51, 198, 197, 7783, 299, 14, 27237, 7, 77, 8, 198, 198, 4299, 24092, 7, 79, 11, 77, 11, 746, 265, 11, 85, 62, 67, 2599, 198, 197, 37811, 79, 2292, 7043, 12170, 11, 299, 1569, 310, 23365, 3487, 28141, 8591, 7480, 687, 68, 11, 872, 265, 966, 269, 856, 267, 127, 117, 708, 2634, 29283, 11, 410, 62, 67, 1569, 310, 23365, 410, 2737, 325, 390, 8591, 7480, 687, 68, 37811, 198, 197, 9948, 66, 16, 796, 3272, 7, 77, 13, 51, 11, 7, 79, 12, 746, 265, 737, 51, 8, 198, 197, 457, 62, 1078, 974, 796, 352, 9, 7, 746, 265, 12, 79, 8, 198, 197, 85, 2737, 325, 62, 37369, 796, 657, 13, 20, 9, 85, 62, 67, 198, 197, 48, 796, 657, 13, 19, 9, 19692, 7, 77, 13, 51, 11, 9948, 66, 16, 47762, 457, 62, 1078, 974, 13, 51, 1343, 410, 2737, 325, 62, 37369, 198, 197, 198, 197, 7783, 1195, 628, 197, 198, 198, 64, 796, 7177, 26933, 58, 15, 11, 20, 11, 15, 11907, 8, 198, 65, 796, 7177, 26933, 58, 16, 11, 15, 11, 15, 11907, 8, 198, 66, 796, 7177, 26933, 58, 15, 11, 16, 11, 15, 11907, 8, 198, 198, 77, 796, 410, 310, 62, 77, 26224, 7, 64, 11, 65, 11, 66, 8, 198, 4798, 7203, 303, 310, 23365, 3487, 796, 33172, 77, 8, 198, 746, 265, 796, 7177, 26933, 58, 3064, 38430, 15, 38430, 15, 11907, 8, 1303, 9150, 966, 288, 6, 1078, 42445, 747, 496, 198, 79, 796, 7177, 26933, 58, 15, 38430, 15, 38430, 3064, 11907, 8, 1303, 9150, 12170, 198, 48, 796, 24092, 7, 79, 11, 77, 11, 746, 265, 8, 198, 4798, 7203, 77, 13, 48, 1600, 20306, 313, 7, 77, 11, 1195, 4008, 198, 4798, 7203, 41161, 333, 7043, 24092, 35851, 966, 1600, 48, 8, 198, 198, 64, 796, 257, 13, 2704, 41769, 3419, 197, 198, 65, 796, 275, 13, 2704, 41769, 3419, 198, 66, 796, 269, 13, 2704, 41769, 3419, 628, 198, 5647, 220, 220, 796, 3785, 3419, 198, 897, 220, 220, 220, 796, 12176, 274, 18, 35, 7, 5647, 8, 198, 2, 329, 2124, 287, 610, 858, 7, 15, 11, 16, 11, 15, 13, 16, 2599, 198, 2, 220, 197, 1640, 331, 287, 610, 858, 7, 15, 11, 16, 11, 15, 13, 16, 2599, 198, 2, 220, 197, 197, 1640, 1976, 287, 610, 858, 7, 15, 11, 18, 11, 15, 13, 1495, 2599, 198, 2, 220, 197, 197, 197, 19334, 62, 1477, 696, 40519, 7, 18747, 26933, 58, 87, 11, 88, 11, 89, 11907, 737, 51, 8, 628, 198, 2, 872, 265, 796, 872, 265, 13, 2704, 41769, 3419, 198, 2, 7877, 13, 1416, 1436, 7, 746, 265, 58, 15, 4357, 746, 265, 58, 16, 4357, 746, 265, 58, 17, 12962, 1303, 746, 265, 198, 2, 299, 796, 299, 13, 2704, 41769, 3419, 198, 2, 7877, 13, 29487, 26933, 746, 265, 58, 15, 4357, 746, 265, 58, 15, 48688, 18, 9, 77, 58, 15, 60, 38430, 746, 265, 58, 16, 4357, 746, 265, 58, 16, 48688, 18, 9, 77, 58, 16, 60, 38430, 746, 265, 58, 17, 4357, 746, 265, 58, 17, 48688, 18, 9, 77, 58, 17, 11907, 8, 1303, 303, 310, 23365, 3487, 28141, 636, 343, 390, 872, 265, 198, 2, 7877, 13, 29487, 26933, 64, 58, 15, 4357, 65, 58, 15, 4357, 66, 58, 15, 4357, 64, 58, 15, 60, 38430, 64, 58, 16, 4357, 65, 58, 16, 4357, 66, 58, 16, 4357, 64, 58, 16, 60, 38430, 64, 58, 17, 4357, 65, 58, 17, 4357, 66, 58, 17, 4357, 64, 58, 17, 11907, 8, 1303, 24254, 68, 198, 2, 14985, 7, 940, 8, 198, 37811, 198, 489, 83, 13, 26875, 3419, 198, 489, 83, 13, 87, 2475, 19510, 12, 18, 11, 18, 4008, 198, 489, 83, 13, 88, 2475, 19510, 12, 18, 11, 18, 4008, 198, 489, 83, 13, 29487, 7, 746, 265, 58, 15, 11, 15, 4357, 746, 265, 58, 16, 11, 15, 60, 4032, 672, 11537, 198, 489, 83, 13, 29487, 7, 79, 58, 15, 11, 15, 4357, 79, 58, 16, 11, 15, 60, 4032, 273, 11537, 198, 489, 83, 13, 29487, 26933, 79, 13, 2704, 41769, 3419, 58, 15, 4357, 79, 13, 2704, 41769, 3419, 58, 15, 48688, 48, 13, 2704, 41769, 3419, 58, 15, 60, 38430, 79, 13, 2704, 41769, 3419, 58, 16, 4357, 79, 13, 2704, 41769, 3419, 58, 16, 48688, 48, 13, 2704, 41769, 3419, 58, 16, 11907, 8, 198, 489, 83, 13, 12860, 3419, 37811, 198 ]
1.920323
866
__author__ = ["Manav Vagrecha", "Shreyansh Shah", "Devam Shah"] __email__ = ["[email protected]", "[email protected]", "[email protected]"] import logging import sys import main_manager if __name__ == '__main__': # configuring the log outputs to the debug level logging.basicConfig(level=logging.DEBUG) torrent_name = str(sys.argv[1]) # runs the constructor and gets the file content mngr = main_manager.MainManager(torrent_name) mngr.start()
[ 834, 9800, 834, 796, 14631, 5124, 615, 37203, 260, 11693, 1600, 366, 2484, 4364, 504, 71, 18381, 1600, 366, 13603, 321, 18381, 8973, 198, 834, 12888, 834, 796, 14631, 805, 615, 74, 44844, 13, 85, 31, 993, 67, 35657, 13, 15532, 13, 259, 1600, 366, 1477, 4364, 504, 71, 13, 82, 16, 31, 993, 67, 35657, 13, 15532, 13, 259, 1600, 366, 7959, 321, 13, 82, 16, 31, 993, 67, 35657, 13, 15532, 13, 259, 8973, 198, 198, 11748, 18931, 198, 11748, 25064, 198, 11748, 1388, 62, 37153, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 4566, 870, 262, 2604, 23862, 284, 262, 14257, 1241, 198, 220, 220, 220, 18931, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 30531, 8, 628, 220, 220, 220, 24458, 62, 3672, 796, 965, 7, 17597, 13, 853, 85, 58, 16, 12962, 628, 220, 220, 220, 1303, 4539, 262, 23772, 290, 3011, 262, 2393, 2695, 198, 220, 220, 220, 285, 782, 81, 796, 1388, 62, 37153, 13, 13383, 13511, 7, 13165, 1156, 62, 3672, 8, 198, 220, 220, 220, 285, 782, 81, 13, 9688, 3419 ]
2.594737
190
""" data_from_csv.py audio dataset reading from CSV output file; """ from torch.utils.data import Dataset import numpy as np import pandas as pd class AudioDatasetFromCsv(Dataset): """dVoice dataset.""" def __init__(self, csv_in, **kwargs): """ init """ self.csv_in = csv_in self.df_dat = pd.read_csv(csv_in) self.do_segment_audio = kwargs.get('do_segment_audio', False) self.segment_audio = kwargs.get('segment_audio') self.segment_audio_kw = kwargs.get('segment_audio_kw', {}) def __len__(self): """ length """ return len(self.df_dat) def __getitem__(self, idx): """ get item """ if self.do_segment_audio: fea, start_end = self.segment_audio(self.df_dat.loc[idx,'audio_fn'], **self.segment_audio_kw) start, end = start_end else: start = self.df_dat.loc[idx, 'start'] if 'start' in self.df_dat.loc[idx] else None end = self.df_dat.loc[idx, 'end'] if 'end' in self.df_dat.loc[idx] else None fea = np.load(self.df_dat.loc[idx, 'audio_fn']) try: if (start is not None and end is not None) and\ (not np.isnan(start) and not np.isnan(end)): start = int(start) end = int(end) fea = fea[start:end] except TypeError as error: print(start) print(end) print(type(start)) print(type(end)) raise error return fea, self.df_dat.loc[idx, 'label'], self.df_dat.loc[idx, 'patient_id'], start, end @property def labels(self): """ convert label column to np array; """ return self.df_dat.label.to_numpy() @property def df_sampling_weights(self): """ convert label to numpy() and add 1 to each; """ return self.df_dat.label.to_numpy() + 1 @property def audio_fns(self): """ convert audio filename columns to np array; """ return self.df_dat['audio_fn'].to_numpy() @property def transcript_fns(self): """ convert transcript filename columns to np array; """ return self.df_dat['transcript_fn'].to_numpy() def segment_collate_fn(batch): """ collect audio path, label, patient ID, start, end """ aud = [itm[0] for itm in batch] lbl = np.stack([itm[1] for itm in batch]) pid = np.stack([itm[2] for itm in batch]) start = np.stack(itm[3] for itm in batch) end = np.stack([itm[4] for itm in batch]) return aud, lbl, pid, start, end
[ 37811, 198, 7890, 62, 6738, 62, 40664, 13, 9078, 198, 24051, 27039, 3555, 422, 44189, 5072, 2393, 26, 198, 37811, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 4871, 13491, 27354, 292, 316, 4863, 34, 21370, 7, 27354, 292, 316, 2599, 198, 220, 220, 220, 37227, 67, 35708, 27039, 526, 15931, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 269, 21370, 62, 259, 11, 12429, 46265, 22046, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2315, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 40664, 62, 259, 796, 269, 21370, 62, 259, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 7568, 62, 19608, 796, 279, 67, 13, 961, 62, 40664, 7, 40664, 62, 259, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4598, 62, 325, 5154, 62, 24051, 796, 479, 86, 22046, 13, 1136, 10786, 4598, 62, 325, 5154, 62, 24051, 3256, 10352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 325, 5154, 62, 24051, 796, 479, 86, 22046, 13, 1136, 10786, 325, 5154, 62, 24051, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 325, 5154, 62, 24051, 62, 46265, 796, 479, 86, 22046, 13, 1136, 10786, 325, 5154, 62, 24051, 62, 46265, 3256, 23884, 8, 628, 220, 220, 220, 825, 11593, 11925, 834, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 4129, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 18896, 7, 944, 13, 7568, 62, 19608, 8, 628, 220, 220, 220, 825, 11593, 1136, 9186, 834, 7, 944, 11, 4686, 87, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 651, 2378, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 4598, 62, 325, 5154, 62, 24051, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 730, 64, 11, 923, 62, 437, 796, 2116, 13, 325, 5154, 62, 24051, 7, 944, 13, 7568, 62, 19608, 13, 17946, 58, 312, 87, 4032, 24051, 62, 22184, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12429, 944, 13, 325, 5154, 62, 24051, 62, 46265, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 923, 11, 886, 796, 923, 62, 437, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 923, 796, 2116, 13, 7568, 62, 19608, 13, 17946, 58, 312, 87, 11, 705, 9688, 20520, 611, 705, 9688, 6, 287, 2116, 13, 7568, 62, 19608, 13, 17946, 58, 312, 87, 60, 2073, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 796, 2116, 13, 7568, 62, 19608, 13, 17946, 58, 312, 87, 11, 705, 437, 20520, 611, 705, 437, 6, 287, 2116, 13, 7568, 62, 19608, 13, 17946, 58, 312, 87, 60, 2073, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 730, 64, 796, 45941, 13, 2220, 7, 944, 13, 7568, 62, 19608, 13, 17946, 58, 312, 87, 11, 705, 24051, 62, 22184, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 357, 9688, 318, 407, 6045, 290, 886, 318, 407, 6045, 8, 290, 59, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 1662, 45941, 13, 271, 12647, 7, 9688, 8, 290, 407, 45941, 13, 271, 12647, 7, 437, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 923, 796, 493, 7, 9688, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 796, 493, 7, 437, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 730, 64, 796, 730, 64, 58, 9688, 25, 437, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 5994, 12331, 355, 4049, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 9688, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 437, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 4906, 7, 9688, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 4906, 7, 437, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 4049, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 730, 64, 11, 2116, 13, 7568, 62, 19608, 13, 17946, 58, 312, 87, 11, 705, 18242, 6, 4357, 2116, 13, 7568, 62, 19608, 13, 17946, 58, 312, 87, 11, 705, 26029, 62, 312, 6, 4357, 923, 11, 886, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 14722, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10385, 6167, 5721, 284, 45941, 7177, 26, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 7568, 62, 19608, 13, 18242, 13, 1462, 62, 77, 32152, 3419, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 47764, 62, 37687, 11347, 62, 43775, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10385, 6167, 284, 299, 32152, 3419, 290, 751, 352, 284, 1123, 26, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 7568, 62, 19608, 13, 18242, 13, 1462, 62, 77, 32152, 3419, 1343, 352, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 6597, 62, 69, 5907, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10385, 6597, 29472, 15180, 284, 45941, 7177, 26, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 7568, 62, 19608, 17816, 24051, 62, 22184, 6, 4083, 1462, 62, 77, 32152, 3419, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 14687, 62, 69, 5907, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10385, 14687, 29472, 15180, 284, 45941, 7177, 26, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 7568, 62, 19608, 17816, 7645, 6519, 62, 22184, 6, 4083, 1462, 62, 77, 32152, 3419, 198, 198, 4299, 10618, 62, 26000, 378, 62, 22184, 7, 43501, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2824, 6597, 3108, 11, 6167, 11, 5827, 4522, 11, 923, 11, 886, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2709, 796, 685, 270, 76, 58, 15, 60, 329, 340, 76, 287, 15458, 60, 198, 220, 220, 220, 300, 2436, 796, 45941, 13, 25558, 26933, 270, 76, 58, 16, 60, 329, 340, 76, 287, 15458, 12962, 198, 220, 220, 220, 46514, 796, 45941, 13, 25558, 26933, 270, 76, 58, 17, 60, 329, 340, 76, 287, 15458, 12962, 198, 220, 220, 220, 923, 796, 45941, 13, 25558, 7, 270, 76, 58, 18, 60, 329, 340, 76, 287, 15458, 8, 198, 220, 220, 220, 886, 796, 45941, 13, 25558, 26933, 270, 76, 58, 19, 60, 329, 340, 76, 287, 15458, 12962, 198, 220, 220, 220, 1441, 2709, 11, 300, 2436, 11, 46514, 11, 923, 11, 886, 198 ]
2.017937
1,338
""" Common definitions of the workflow module. """ WORKFLOW_DEFAULT_FILENAME = 'workflow.py' DOT_DATABASE_FILENAME = '.workflow.lmdb' class Uninit(object): """Sentinel for unitialized values on the framework context. Python's `None` can't be used, because `None` can be a valid for the user. """ pass class WorkflowError(Exception): """Base exception for all workflow module errors. Args: message (str): Error message lineinfo (:obj:`._reflection.LineInfo`, optional): Source line information. Pointer to errors in user's code. """ class BaseNode: """Base methods for nodes. Should be used to create new node types. Attributes: show (bool): Whatever the node is show on the command line help. """ def call(self, redo=False): """ Executes the node main logic and returns its value. """ raise NotImplementedError() def update(self): """ Should update the dirty state of function :func:`is_dirty`. """ pass def is_dirty(self): """Returns if the node should be call or it's already update. """ raise NotImplementedError() def get_resource(self): """Returns the attched node's resource""" raise NotImplementedError() def get_view_name(self): """Returns how the node should be labeled to the user. Default is returning its name.""" return self.name
[ 37811, 198, 17227, 17336, 286, 262, 30798, 8265, 13, 198, 37811, 198, 198, 33249, 3697, 3913, 62, 7206, 38865, 62, 46700, 1677, 10067, 796, 705, 1818, 11125, 13, 9078, 6, 198, 35, 2394, 62, 35, 1404, 6242, 11159, 62, 46700, 1677, 10067, 796, 45302, 1818, 11125, 13, 75, 9132, 65, 6, 628, 198, 4871, 791, 15003, 7, 15252, 2599, 198, 220, 220, 220, 37227, 31837, 20538, 329, 4326, 498, 1143, 3815, 319, 262, 9355, 4732, 13, 11361, 338, 198, 220, 220, 220, 4600, 14202, 63, 460, 470, 307, 973, 11, 780, 4600, 14202, 63, 460, 307, 257, 4938, 329, 262, 2836, 13, 628, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 628, 198, 4871, 5521, 11125, 12331, 7, 16922, 2599, 198, 220, 220, 220, 37227, 14881, 6631, 329, 477, 30798, 8265, 8563, 13, 628, 220, 220, 220, 943, 14542, 25, 628, 220, 220, 220, 220, 220, 220, 220, 3275, 357, 2536, 2599, 13047, 3275, 628, 220, 220, 220, 220, 220, 220, 220, 1627, 10951, 357, 25, 26801, 25, 63, 13557, 5420, 1564, 13, 13949, 12360, 47671, 11902, 2599, 8090, 1627, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1321, 13, 7695, 3849, 284, 8563, 287, 2836, 338, 2438, 13, 628, 220, 220, 220, 37227, 628, 198, 4871, 7308, 19667, 25, 198, 220, 220, 220, 37227, 14881, 5050, 329, 13760, 13, 10358, 307, 973, 284, 2251, 649, 10139, 3858, 13, 628, 220, 220, 220, 49213, 25, 628, 220, 220, 220, 220, 220, 220, 220, 905, 357, 30388, 2599, 15935, 262, 10139, 318, 905, 319, 262, 3141, 1627, 198, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 13, 628, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 869, 7, 944, 11, 2266, 78, 28, 25101, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 8393, 1769, 262, 10139, 1388, 9156, 290, 5860, 663, 1988, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 5298, 1892, 3546, 1154, 12061, 12331, 3419, 628, 220, 220, 220, 825, 4296, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 10358, 4296, 262, 11841, 1181, 286, 2163, 1058, 20786, 25, 63, 271, 62, 49075, 44646, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 628, 220, 220, 220, 825, 318, 62, 49075, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 35561, 611, 262, 10139, 815, 307, 869, 393, 340, 338, 1541, 4296, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 5298, 1892, 3546, 1154, 12061, 12331, 3419, 628, 220, 220, 220, 825, 651, 62, 31092, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 35561, 262, 708, 1740, 10139, 338, 8271, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 1892, 3546, 1154, 12061, 12331, 3419, 628, 220, 220, 220, 825, 651, 62, 1177, 62, 3672, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 35561, 703, 262, 10139, 815, 307, 15494, 284, 262, 2836, 13, 15161, 318, 8024, 663, 1438, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 3672, 198 ]
2.692586
553
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-05-10 17:17 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 21, 319, 2177, 12, 2713, 12, 940, 1596, 25, 1558, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.736842
57
# # -*- coding: utf-8 -*- # Copyright 2019 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """ The nxos_l3_interfaces class It is in this file where the current configuration (as dict) is compared to the provided configuration (as dict) and the command set necessary to bring the current configuration to it's desired end-state is created """ from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.module_utils.network.common.cfg.base import ConfigBase from ansible.module_utils.network.common.utils import to_list, remove_empties from ansible.module_utils.network.nxos.facts.facts import Facts from ansible.module_utils.network.nxos.utils.utils import normalize_interface, search_obj_in_list from ansible.module_utils.network.nxos.utils.utils import remove_rsvd_interfaces, get_interface_type class L3_interfaces(ConfigBase): """ The nxos_l3_interfaces class """ gather_subset = [ '!all', '!min', ] gather_network_resources = [ 'l3_interfaces', ] exclude_params = [ ] def get_l3_interfaces_facts(self): """ Get the 'facts' (the current configuration) :rtype: A dictionary :returns: The current configuration as a dictionary """ facts, _warnings = Facts(self._module).get_facts(self.gather_subset, self.gather_network_resources) l3_interfaces_facts = facts['ansible_network_resources'].get('l3_interfaces') if not l3_interfaces_facts: return [] return remove_rsvd_interfaces(l3_interfaces_facts) def execute_module(self): """ Execute the module :rtype: A dictionary :returns: The result from module execution """ result = {'changed': False} commands = list() warnings = list() existing_l3_interfaces_facts = self.get_l3_interfaces_facts() commands.extend(self.set_config(existing_l3_interfaces_facts)) if commands: if not self._module.check_mode: self.edit_config(commands) result['changed'] = True result['commands'] = commands changed_l3_interfaces_facts = self.get_l3_interfaces_facts() result['before'] = existing_l3_interfaces_facts if result['changed']: result['after'] = changed_l3_interfaces_facts result['warnings'] = warnings return result def set_config(self, existing_l3_interfaces_facts): """ Collect the configuration from the args passed to the module, collect the current configuration (as a dict from facts) :rtype: A list :returns: the commands necessary to migrate the current configuration to the desired configuration """ config = self._module.params.get('config') want = [] if config: for w in config: w.update({'name': normalize_interface(w['name'])}) if get_interface_type(w['name']) == 'management': self._module.fail_json(msg="The 'management' interface is not allowed to be managed by this module") want.append(remove_empties(w)) have = existing_l3_interfaces_facts resp = self.set_state(want, have) return to_list(resp) def set_state(self, want, have): """ Select the appropriate function based on the state provided :param want: the desired configuration as a dictionary :param have: the current configuration as a dictionary :rtype: A list :returns: the commands necessary to migrate the current configuration to the desired configuration """ state = self._module.params['state'] if state in ('overridden', 'merged', 'replaced') and not want: self._module.fail_json(msg='config is required for state {0}'.format(state)) commands = list() if state == 'overridden': commands.extend(self._state_overridden(want, have)) elif state == 'deleted': commands.extend(self._state_deleted(want, have)) else: for w in want: if state == 'merged': commands.extend(self._state_merged(w, have)) elif state == 'replaced': commands.extend(self._state_replaced(w, have)) return commands def _state_replaced(self, w, have): """ The command generator when state is replaced :rtype: A list :returns: the commands necessary to migrate the current configuration to the desired configuration """ commands = [] merged_commands = self.set_commands(w, have) replaced_commands = self.del_delta_attribs(w, have) if merged_commands: cmds = set(replaced_commands).intersection(set(merged_commands)) for cmd in cmds: merged_commands.remove(cmd) commands.extend(replaced_commands) commands.extend(merged_commands) return commands def _state_overridden(self, want, have): """ The command generator when state is overridden :rtype: A list :returns: the commands necessary to migrate the current configuration to the desired configuration """ commands = [] for h in have: obj_in_want = search_obj_in_list(h['name'], want, 'name') if h == obj_in_want: continue commands.extend(self.del_all_attribs(h)) for w in want: commands.extend(self.set_commands(w, have)) return commands def _state_merged(self, w, have): """ The command generator when state is merged :rtype: A list :returns: the commands necessary to merge the provided into the current configuration """ return self.set_commands(w, have) def _state_deleted(self, want, have): """ The command generator when state is deleted :rtype: A list :returns: the commands necessary to remove the current configuration of the provided objects """ commands = [] if want: for w in want: obj_in_have = search_obj_in_list(w['name'], have, 'name') commands.extend(self.del_all_attribs(obj_in_have)) else: if not have: return commands for h in have: commands.extend(self.del_all_attribs(h)) return commands
[ 2, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 13130, 2297, 10983, 198, 2, 22961, 3611, 5094, 13789, 410, 18, 13, 15, 10, 198, 2, 357, 3826, 27975, 45761, 393, 3740, 1378, 2503, 13, 41791, 13, 2398, 14, 677, 4541, 14, 70, 489, 12, 18, 13, 15, 13, 14116, 8, 198, 37811, 198, 464, 299, 87, 418, 62, 75, 18, 62, 3849, 32186, 1398, 198, 1026, 318, 287, 428, 2393, 810, 262, 1459, 8398, 357, 292, 8633, 8, 198, 271, 3688, 284, 262, 2810, 8398, 357, 292, 8633, 8, 290, 262, 3141, 900, 198, 49986, 284, 2222, 262, 1459, 8398, 284, 340, 338, 10348, 886, 12, 5219, 318, 198, 25598, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 834, 4164, 330, 31172, 834, 796, 2099, 198, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13, 27349, 13, 11321, 13, 37581, 13, 8692, 1330, 17056, 14881, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13, 27349, 13, 11321, 13, 26791, 1330, 284, 62, 4868, 11, 4781, 62, 1791, 444, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13, 27349, 13, 77, 87, 418, 13, 37473, 13, 37473, 1330, 26972, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13, 27349, 13, 77, 87, 418, 13, 26791, 13, 26791, 1330, 3487, 1096, 62, 39994, 11, 2989, 62, 26801, 62, 259, 62, 4868, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13, 27349, 13, 77, 87, 418, 13, 26791, 13, 26791, 1330, 4781, 62, 3808, 20306, 62, 3849, 32186, 11, 651, 62, 39994, 62, 4906, 628, 198, 4871, 406, 18, 62, 3849, 32186, 7, 16934, 14881, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 383, 299, 87, 418, 62, 75, 18, 62, 3849, 32186, 1398, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 6431, 62, 7266, 2617, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 705, 0, 439, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 0, 1084, 3256, 198, 220, 220, 220, 2361, 628, 220, 220, 220, 6431, 62, 27349, 62, 37540, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 705, 75, 18, 62, 3849, 32186, 3256, 198, 220, 220, 220, 2361, 628, 220, 220, 220, 19607, 62, 37266, 796, 685, 198, 220, 220, 220, 2361, 628, 220, 220, 220, 825, 651, 62, 75, 18, 62, 3849, 32186, 62, 37473, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3497, 262, 705, 37473, 6, 357, 1169, 1459, 8398, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 317, 22155, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 82, 25, 383, 1459, 8398, 355, 257, 22155, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 6419, 11, 4808, 40539, 654, 796, 26972, 7, 944, 13557, 21412, 737, 1136, 62, 37473, 7, 944, 13, 70, 1032, 62, 7266, 2617, 11, 2116, 13, 70, 1032, 62, 27349, 62, 37540, 8, 198, 220, 220, 220, 220, 220, 220, 220, 300, 18, 62, 3849, 32186, 62, 37473, 796, 6419, 17816, 504, 856, 62, 27349, 62, 37540, 6, 4083, 1136, 10786, 75, 18, 62, 3849, 32186, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 611, 407, 300, 18, 62, 3849, 32186, 62, 37473, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 4781, 62, 3808, 20306, 62, 3849, 32186, 7, 75, 18, 62, 3849, 32186, 62, 37473, 8, 628, 220, 220, 220, 825, 12260, 62, 21412, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 8393, 1133, 262, 8265, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 317, 22155, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 82, 25, 383, 1255, 422, 8265, 9706, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 1391, 6, 40985, 10354, 10352, 92, 198, 220, 220, 220, 220, 220, 220, 220, 9729, 796, 1351, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 14601, 796, 1351, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 4683, 62, 75, 18, 62, 3849, 32186, 62, 37473, 796, 2116, 13, 1136, 62, 75, 18, 62, 3849, 32186, 62, 37473, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 9729, 13, 2302, 437, 7, 944, 13, 2617, 62, 11250, 7, 25687, 62, 75, 18, 62, 3849, 32186, 62, 37473, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 611, 9729, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 2116, 13557, 21412, 13, 9122, 62, 14171, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19312, 62, 11250, 7, 9503, 1746, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 17816, 40985, 20520, 796, 6407, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 17816, 9503, 1746, 20520, 796, 9729, 628, 220, 220, 220, 220, 220, 220, 220, 3421, 62, 75, 18, 62, 3849, 32186, 62, 37473, 796, 2116, 13, 1136, 62, 75, 18, 62, 3849, 32186, 62, 37473, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1255, 17816, 19052, 20520, 796, 4683, 62, 75, 18, 62, 3849, 32186, 62, 37473, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1255, 17816, 40985, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 17816, 8499, 20520, 796, 3421, 62, 75, 18, 62, 3849, 32186, 62, 37473, 628, 220, 220, 220, 220, 220, 220, 220, 1255, 17816, 40539, 654, 20520, 796, 14601, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1255, 628, 220, 220, 220, 825, 900, 62, 11250, 7, 944, 11, 4683, 62, 75, 18, 62, 3849, 32186, 62, 37473, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 9745, 262, 8398, 422, 262, 26498, 3804, 284, 262, 8265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2824, 262, 1459, 8398, 357, 292, 257, 8633, 422, 6419, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 317, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 82, 25, 262, 9729, 3306, 284, 32492, 262, 1459, 8398, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 284, 262, 10348, 8398, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 4566, 796, 2116, 13557, 21412, 13, 37266, 13, 1136, 10786, 11250, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 765, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 611, 4566, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 266, 287, 4566, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 13, 19119, 15090, 6, 3672, 10354, 3487, 1096, 62, 39994, 7, 86, 17816, 3672, 6, 12962, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 651, 62, 39994, 62, 4906, 7, 86, 17816, 3672, 6, 12962, 6624, 705, 27604, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 21412, 13, 32165, 62, 17752, 7, 19662, 2625, 464, 705, 27604, 6, 7071, 318, 407, 3142, 284, 307, 5257, 416, 428, 8265, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 765, 13, 33295, 7, 28956, 62, 1791, 444, 7, 86, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 423, 796, 4683, 62, 75, 18, 62, 3849, 32186, 62, 37473, 198, 220, 220, 220, 220, 220, 220, 220, 1217, 796, 2116, 13, 2617, 62, 5219, 7, 42949, 11, 423, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 284, 62, 4868, 7, 4363, 8, 628, 220, 220, 220, 825, 900, 62, 5219, 7, 944, 11, 765, 11, 423, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 9683, 262, 5035, 2163, 1912, 319, 262, 1181, 2810, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 765, 25, 262, 10348, 8398, 355, 257, 22155, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 423, 25, 262, 1459, 8398, 355, 257, 22155, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 317, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 82, 25, 262, 9729, 3306, 284, 32492, 262, 1459, 8398, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 284, 262, 10348, 8398, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1181, 796, 2116, 13557, 21412, 13, 37266, 17816, 5219, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1181, 287, 19203, 2502, 40372, 3256, 705, 647, 2004, 3256, 705, 260, 21820, 11537, 290, 407, 765, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 21412, 13, 32165, 62, 17752, 7, 19662, 11639, 11250, 318, 2672, 329, 1181, 1391, 15, 92, 4458, 18982, 7, 5219, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 9729, 796, 1351, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1181, 6624, 705, 2502, 40372, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9729, 13, 2302, 437, 7, 944, 13557, 5219, 62, 2502, 40372, 7, 42949, 11, 423, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 1181, 6624, 705, 2934, 33342, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9729, 13, 2302, 437, 7, 944, 13557, 5219, 62, 2934, 33342, 7, 42949, 11, 423, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 266, 287, 765, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1181, 6624, 705, 647, 2004, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9729, 13, 2302, 437, 7, 944, 13557, 5219, 62, 647, 2004, 7, 86, 11, 423, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 1181, 6624, 705, 260, 21820, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9729, 13, 2302, 437, 7, 944, 13557, 5219, 62, 260, 21820, 7, 86, 11, 423, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 9729, 628, 220, 220, 220, 825, 4808, 5219, 62, 260, 21820, 7, 944, 11, 266, 11, 423, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 383, 3141, 17301, 618, 1181, 318, 6928, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 317, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 82, 25, 262, 9729, 3306, 284, 32492, 262, 1459, 8398, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 284, 262, 10348, 8398, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 9729, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 23791, 62, 9503, 1746, 796, 2116, 13, 2617, 62, 9503, 1746, 7, 86, 11, 423, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6928, 62, 9503, 1746, 796, 2116, 13, 12381, 62, 67, 12514, 62, 1078, 822, 82, 7, 86, 11, 423, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 23791, 62, 9503, 1746, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23991, 82, 796, 900, 7, 260, 21820, 62, 9503, 1746, 737, 3849, 5458, 7, 2617, 7, 647, 2004, 62, 9503, 1746, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 23991, 287, 23991, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23791, 62, 9503, 1746, 13, 28956, 7, 28758, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9729, 13, 2302, 437, 7, 260, 21820, 62, 9503, 1746, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9729, 13, 2302, 437, 7, 647, 2004, 62, 9503, 1746, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 9729, 628, 220, 220, 220, 825, 4808, 5219, 62, 2502, 40372, 7, 944, 11, 765, 11, 423, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 383, 3141, 17301, 618, 1181, 318, 23170, 4651, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 317, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 82, 25, 262, 9729, 3306, 284, 32492, 262, 1459, 8398, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 284, 262, 10348, 8398, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 9729, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 329, 289, 287, 423, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26181, 62, 259, 62, 42949, 796, 2989, 62, 26801, 62, 259, 62, 4868, 7, 71, 17816, 3672, 6, 4357, 765, 11, 705, 3672, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 289, 6624, 26181, 62, 259, 62, 42949, 25, 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, 9729, 13, 2302, 437, 7, 944, 13, 12381, 62, 439, 62, 1078, 822, 82, 7, 71, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 329, 266, 287, 765, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9729, 13, 2302, 437, 7, 944, 13, 2617, 62, 9503, 1746, 7, 86, 11, 423, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 9729, 628, 220, 220, 220, 825, 4808, 5219, 62, 647, 2004, 7, 944, 11, 266, 11, 423, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 383, 3141, 17301, 618, 1181, 318, 23791, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 317, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 82, 25, 262, 9729, 3306, 284, 20121, 262, 2810, 656, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 262, 1459, 8398, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 2617, 62, 9503, 1746, 7, 86, 11, 423, 8, 628, 220, 220, 220, 825, 4808, 5219, 62, 2934, 33342, 7, 944, 11, 765, 11, 423, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 383, 3141, 17301, 618, 1181, 318, 13140, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 317, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 82, 25, 262, 9729, 3306, 284, 4781, 262, 1459, 8398, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 286, 262, 2810, 5563, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 9729, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 611, 765, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 266, 287, 765, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26181, 62, 259, 62, 14150, 796, 2989, 62, 26801, 62, 259, 62, 4868, 7, 86, 17816, 3672, 6, 4357, 423, 11, 705, 3672, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9729, 13, 2302, 437, 7, 944, 13, 12381, 62, 439, 62, 1078, 822, 82, 7, 26801, 62, 259, 62, 14150, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 423, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 9729, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 289, 287, 423, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9729, 13, 2302, 437, 7, 944, 13, 12381, 62, 439, 62, 1078, 822, 82, 7, 71, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 9729, 198 ]
2.353624
2,842
from discord.ext.commands import Cog from discord.utils import get from discord.ext import tasks import logging logger = logging.getLogger('tasks') # https://discord.gg/C6AQaJcDdn
[ 6738, 36446, 13, 2302, 13, 9503, 1746, 1330, 327, 519, 198, 6738, 36446, 13, 26791, 1330, 651, 198, 6738, 36446, 13, 2302, 1330, 8861, 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 10786, 83, 6791, 11537, 628, 198, 2, 3740, 1378, 15410, 585, 13, 1130, 14, 34, 21, 32, 48, 64, 41, 66, 35, 32656 ]
3.033333
60
from .casbin_enforcer import CasbinEnforcer # noqa: F401 from .casbin_enforcer import Watcher # noqa: F401
[ 6738, 764, 34004, 8800, 62, 268, 45515, 1330, 11294, 8800, 4834, 45515, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, 764, 34004, 8800, 62, 268, 45515, 1330, 12242, 2044, 220, 1303, 645, 20402, 25, 376, 21844, 198 ]
2.868421
38
import mock from django import test from model_mommy import mommy from devilry.devilry_admin.cradminextensions import devilry_crmenu_admin
[ 11748, 15290, 198, 6738, 42625, 14208, 1330, 1332, 198, 6738, 2746, 62, 32542, 1820, 1330, 1995, 1820, 198, 198, 6738, 17118, 563, 13, 7959, 346, 563, 62, 28482, 13, 6098, 324, 3810, 742, 5736, 1330, 17118, 563, 62, 6098, 26272, 62, 28482, 628 ]
3.27907
43
import ast __version__ = '0.0.5' __all__ = ('FailsChecker', ) MESSAGES = { 'PF101': 'PF101 Potential IndexError fail.', 'PF102': 'PF102 Potential KeyError fail. You can replace this with `dict.get(key, failback_value)`', 'PF103': 'PF103 Potential IndexError or KeyError fail.', }
[ 11748, 6468, 198, 198, 834, 9641, 834, 796, 705, 15, 13, 15, 13, 20, 6, 198, 834, 439, 834, 796, 19203, 37, 1768, 9787, 263, 3256, 1267, 198, 198, 44, 1546, 4090, 48075, 796, 1391, 198, 220, 220, 220, 705, 42668, 8784, 10354, 705, 42668, 8784, 32480, 12901, 12331, 2038, 2637, 11, 198, 220, 220, 220, 705, 42668, 15377, 10354, 705, 42668, 15377, 32480, 7383, 12331, 2038, 13, 921, 460, 6330, 428, 351, 4600, 11600, 13, 1136, 7, 2539, 11, 2038, 1891, 62, 8367, 8, 63, 3256, 198, 220, 220, 220, 705, 42668, 15197, 10354, 705, 42668, 15197, 32480, 12901, 12331, 393, 7383, 12331, 2038, 2637, 11, 198, 92, 628, 198 ]
2.666667
111
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Apr 1 15:18:09 2018 @author: yiwei """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Apr 1 06:11:18 2018 @author: yiwei """ from copy import deepcopy if __name__ == '__main__': FROM_STDIN = True # FROM_STDIN = False horse_list = [] if FROM_STDIN: readline = input else: name = 'A-large-practice.in' f = open(name, 'r') readline = f.readline t = int(readline()) for i in range(1, t+1): destination, num_horses = list(map(float, readline().split(' '))) # Parse horse horse_list = [] for h in range(int(num_horses)): location, speed = list(map(float, readline().split(' '))) horse_list.append(Horse(location, speed)) collapse_time = 0 output = calculate_speed(destination, horse_list, collapse_time) print("Case #{}: {}".format(i, output)) if not FROM_STDIN: f.close()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3825, 2758, 220, 352, 1315, 25, 1507, 25, 2931, 2864, 198, 198, 31, 9800, 25, 331, 72, 42990, 198, 37811, 198, 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3825, 2758, 220, 352, 9130, 25, 1157, 25, 1507, 2864, 198, 198, 31, 9800, 25, 331, 72, 42990, 198, 37811, 198, 6738, 4866, 1330, 2769, 30073, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 16034, 62, 32147, 1268, 796, 6407, 198, 220, 220, 220, 1303, 16034, 62, 32147, 1268, 796, 10352, 628, 220, 220, 220, 8223, 62, 4868, 796, 17635, 628, 220, 220, 220, 611, 16034, 62, 32147, 1268, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1100, 1370, 796, 5128, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 796, 705, 32, 12, 11664, 12, 39541, 13, 259, 6, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 1280, 7, 3672, 11, 705, 81, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1100, 1370, 796, 277, 13, 961, 1370, 628, 220, 220, 220, 256, 796, 493, 7, 961, 1370, 28955, 628, 220, 220, 220, 329, 1312, 287, 2837, 7, 16, 11, 256, 10, 16, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 10965, 11, 997, 62, 71, 11836, 796, 1351, 7, 8899, 7, 22468, 11, 1100, 1370, 22446, 35312, 10786, 705, 22305, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 2547, 325, 8223, 198, 220, 220, 220, 220, 220, 220, 220, 8223, 62, 4868, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 329, 289, 287, 2837, 7, 600, 7, 22510, 62, 71, 11836, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4067, 11, 2866, 796, 1351, 7, 8899, 7, 22468, 11, 1100, 1370, 22446, 35312, 10786, 705, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8223, 62, 4868, 13, 33295, 7, 39, 7615, 7, 24886, 11, 2866, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 9807, 62, 2435, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 15284, 62, 12287, 7, 16520, 1883, 11, 8223, 62, 4868, 11, 9807, 62, 2435, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 20448, 1303, 90, 38362, 23884, 1911, 18982, 7, 72, 11, 5072, 4008, 628, 220, 220, 220, 611, 407, 16034, 62, 32147, 1268, 25, 198, 220, 220, 220, 220, 220, 220, 220, 277, 13, 19836, 3419, 198 ]
2.199134
462
import numpy as np from sklearn import decomposition # NMF from sklearn._config import config_context from sklearn.decomposition._nmf \ import _beta_divergence, \ _check_string_param, \ _check_init, \ _initialize_nmf, \ _compute_regularization from sklearn.utils.validation \ import check_array, \ check_non_negative, \ check_random_state from scipy import sparse # from scipy.sparse.base import issparse # import warnings import numbers # from sklearn.decomposition._nmf import _initialize_nmf as init_NMF import cupy as cp X = np.array([[1, 1], [2, 1], [3, 1.2], [4, 1], [5, 0.8], [6, 1]]) model = cuNMF(init='nndsvd') model.fit_transform(X) # decomposition.NMF()
[ 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 1330, 26969, 9150, 198, 198, 2, 28692, 37, 198, 6738, 1341, 35720, 13557, 11250, 1330, 4566, 62, 22866, 198, 6738, 1341, 35720, 13, 12501, 296, 9150, 13557, 21533, 69, 3467, 198, 220, 220, 220, 1330, 4808, 31361, 62, 67, 1428, 12745, 11, 3467, 198, 220, 220, 220, 4808, 9122, 62, 8841, 62, 17143, 11, 3467, 198, 220, 220, 220, 4808, 9122, 62, 15003, 11, 3467, 198, 220, 220, 220, 4808, 36733, 1096, 62, 21533, 69, 11, 3467, 198, 220, 220, 220, 4808, 5589, 1133, 62, 16338, 1634, 198, 6738, 1341, 35720, 13, 26791, 13, 12102, 341, 3467, 198, 220, 220, 220, 1330, 2198, 62, 18747, 11, 3467, 198, 220, 220, 220, 2198, 62, 13159, 62, 31591, 11, 3467, 198, 220, 220, 220, 2198, 62, 25120, 62, 5219, 198, 6738, 629, 541, 88, 1330, 29877, 198, 2, 422, 629, 541, 88, 13, 82, 29572, 13, 8692, 1330, 1189, 29572, 198, 2, 1330, 14601, 198, 11748, 3146, 198, 198, 2, 422, 1341, 35720, 13, 12501, 296, 9150, 13557, 21533, 69, 1330, 4808, 36733, 1096, 62, 21533, 69, 355, 2315, 62, 32755, 37, 198, 198, 11748, 6508, 88, 355, 31396, 628, 628, 628, 198, 198, 55, 796, 45941, 13, 18747, 26933, 58, 16, 11, 352, 4357, 685, 17, 11, 352, 4357, 685, 18, 11, 352, 13, 17, 4357, 685, 19, 11, 352, 4357, 685, 20, 11, 657, 13, 23, 4357, 685, 21, 11, 352, 11907, 8, 198, 19849, 796, 18912, 32755, 37, 7, 15003, 11639, 77, 358, 82, 20306, 11537, 198, 19849, 13, 11147, 62, 35636, 7, 55, 8, 198, 198, 2, 26969, 9150, 13, 32755, 37, 3419, 198 ]
2.578182
275
from bokeh.plotting import figure, show import numpy as np if __name__ == '__main__': p = plot_func() show(p)
[ 6738, 1489, 365, 71, 13, 29487, 889, 220, 1330, 3785, 11, 905, 198, 11748, 299, 32152, 355, 45941, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 279, 796, 7110, 62, 20786, 3419, 198, 220, 220, 220, 905, 7, 79, 8, 628 ]
2.469388
49
# Calculations related to estimate probability of a vessel drifting
[ 2, 27131, 602, 3519, 284, 8636, 12867, 286, 257, 8837, 38193, 198 ]
5.666667
12
from sklearn.externals import joblib from preprocessData import getDataXY, get_accuracy trainX, trainY, testX, testY, validX, validY = getDataXY() print type(trainY) models = ['Models/dt0.58.pkl', 'Models/NB0.59.pkl', 'Models/NC0.57.pkl', 'Models/NNP0.61.pkl', 'Models/sgd0.54.pkl'] all_pre = [] for model in models: print model clf = joblib.load(model) predicY = clf.predict(validX) all_pre.append(predicY) print get_accuracy(voteIt(all_pre), testY)
[ 6738, 1341, 35720, 13, 1069, 759, 874, 1330, 1693, 8019, 198, 6738, 662, 14681, 6601, 1330, 651, 6601, 34278, 11, 651, 62, 4134, 23843, 198, 198, 27432, 55, 11, 4512, 56, 11, 1332, 55, 11, 1332, 56, 11, 4938, 55, 11, 4938, 56, 796, 651, 6601, 34278, 3419, 198, 198, 4798, 2099, 7, 27432, 56, 8, 198, 198, 27530, 796, 37250, 5841, 1424, 14, 28664, 15, 13, 3365, 13, 79, 41582, 3256, 705, 5841, 1424, 14, 32819, 15, 13, 3270, 13, 79, 41582, 3256, 705, 5841, 1424, 14, 7792, 15, 13, 3553, 13, 79, 41582, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 5841, 1424, 14, 6144, 47, 15, 13, 5333, 13, 79, 41582, 3256, 705, 5841, 1424, 14, 82, 21287, 15, 13, 4051, 13, 79, 41582, 20520, 198, 198, 439, 62, 3866, 796, 17635, 198, 1640, 2746, 287, 4981, 25, 198, 220, 220, 220, 3601, 2746, 198, 220, 220, 220, 537, 69, 796, 1693, 8019, 13, 2220, 7, 19849, 8, 198, 220, 220, 220, 41219, 56, 796, 537, 69, 13, 79, 17407, 7, 12102, 55, 8, 198, 220, 220, 220, 477, 62, 3866, 13, 33295, 7, 28764, 291, 56, 8, 628, 198, 198, 4798, 651, 62, 4134, 23843, 7, 27257, 1026, 7, 439, 62, 3866, 828, 1332, 56, 8, 628, 628, 628, 628, 628, 628 ]
2.25
220
from pypureclient.flashblade import Subnet # update a subnet's gateway by name res = client.patch_subnets( names=['mysubnet'], subnet=Subnet(gateway='1.2.3.1')) print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # Other valid fields: ids # See section "Common Fields" for examples
[ 6738, 279, 4464, 495, 16366, 13, 34167, 22500, 1330, 3834, 3262, 198, 198, 2, 4296, 257, 850, 3262, 338, 24308, 416, 1438, 198, 411, 796, 5456, 13, 17147, 62, 7266, 45938, 7, 198, 220, 220, 220, 3891, 28, 17816, 28744, 549, 3262, 6, 4357, 850, 3262, 28, 7004, 3262, 7, 10494, 1014, 11639, 16, 13, 17, 13, 18, 13, 16, 6, 4008, 198, 4798, 7, 411, 8, 198, 361, 2099, 7, 411, 8, 6624, 279, 4464, 495, 16366, 13, 16733, 274, 13, 47139, 31077, 25, 198, 220, 220, 220, 3601, 7, 4868, 7, 411, 13, 23814, 4008, 198, 2, 3819, 4938, 7032, 25, 220, 2340, 198, 2, 4091, 2665, 366, 17227, 23948, 1, 329, 6096, 198 ]
2.818966
116
import pandas as pd import matplotlib.pyplot as plt wine_df = pd.read_csv(filepath_or_buffer='~/class5-homework/wine.data', sep=',', header=None) wine_df.columns = ['Class','Alcohol','Malic_Acid','Ash','Alcalinity_of_Ash','Magnesium', 'Total_Phenols','Flavanoids','Nonflavanoid_Phenols','Proanthocyanins', 'Color_Intensity','Hue','OD280_OD315_of_Diluted_Wines','Proline'] pd.set_option('display.max_columns', None) #Display dataset in table format #print(wine_df.to_string()) #Display stats of dataset without the Class column wine_B = wine_df.drop(['Class'], axis = 1) print(wine_B.describe())
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 39002, 62, 7568, 796, 279, 67, 13, 961, 62, 40664, 7, 7753, 6978, 62, 273, 62, 22252, 11639, 93, 14, 4871, 20, 12, 26452, 6433, 14, 39002, 13, 7890, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41767, 28, 3256, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13639, 28, 14202, 8, 198, 39002, 62, 7568, 13, 28665, 82, 796, 37250, 9487, 41707, 2348, 4857, 41707, 15029, 291, 62, 12832, 312, 41707, 26754, 41707, 2348, 9948, 6269, 62, 1659, 62, 26754, 41707, 13436, 27619, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 14957, 62, 47, 831, 10220, 41707, 7414, 12421, 10994, 41707, 15419, 2704, 12421, 1868, 62, 47, 831, 10220, 41707, 2964, 29313, 420, 4121, 1040, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 10258, 62, 5317, 6377, 41707, 39, 518, 41707, 3727, 21033, 62, 3727, 27936, 62, 1659, 62, 35, 346, 7241, 62, 54, 1127, 41707, 2964, 1370, 20520, 628, 198, 30094, 13, 2617, 62, 18076, 10786, 13812, 13, 9806, 62, 28665, 82, 3256, 6045, 8, 198, 198, 2, 23114, 27039, 287, 3084, 5794, 198, 198, 2, 4798, 7, 39002, 62, 7568, 13, 1462, 62, 8841, 28955, 198, 198, 2, 23114, 9756, 286, 27039, 1231, 262, 5016, 5721, 198, 39002, 62, 33, 796, 8237, 62, 7568, 13, 14781, 7, 17816, 9487, 6, 4357, 16488, 796, 352, 8, 198, 4798, 7, 39002, 62, 33, 13, 20147, 4892, 28955, 628 ]
2.324042
287
import re import curses import config import time import api # 自定义的所有函数 # conf: 从config获取来自默认或者用户定义的配置信息 conf = config.config_info # cont: 在运行过程中保存关于运行状态以及用于控制的信息 cont = config.control_info # 全局使用,当前所访问版块的全部内容 thread_list = {} # 全局使用,当前所访问的串的全部内容 post_list = {} # TODO:注释 cont['browse_now_list'] = 0 # TODO: 需要把自定义版块,目前为直接获取 forum_list = api.get_forum_list('adnmb') ss = pad_b = pad_i = pad_c = None def stdscr_pad(stdscr: object, pad_browse: object, pad_info: object, pad_control: object): """ 传入stdscr和3个pad对象,供所有函数操作 """ global ss, pad_b, pad_i, pad_c ss = stdscr pad_b = pad_browse pad_i = pad_info pad_c = pad_control def pad_browse_print(text: str): """ 向浏览区pad输出内容 :param text: 文本内容 """ pad_b.clear() pad_b.addstr(0, 0, text) pad_b.refresh(0, 0, 0, 0, curses.LINES - 3, curses.COLS - 1) def pad_info_print(text: str): """ 向信息提示栏输出内容 :param text: 文本内容,显示长度应不大于终端宽度 """ pad_i.clear() pad_i.addstr(0, 0, text) y = curses.LINES - 2 pad_i.refresh(0, 0, y, 0, y, curses.COLS - 1) def init_pair_color(): """ 根据配色方案定义的颜色初始化颜色,需要在终端初始化之后再运行 """ c = config.color_info[0] for i in c.keys(): curses.init_pair(int(i), c[i][0], c[i][1]) def id_color(admin: str, user_id: str = None, po_id: str = None) -> int: """ 从配色方案定义id的颜色标识(curses颜色标识通过bit位组合) :param admin: 是否红名标识符 :param user_id: post的用户id :param po_id: po主的id :return: curses的颜色标识符 """ # TODO: Po id的颜色定义 c0 = config.color_info[0] c1 = config.color_info[1] color_code = 0 if admin == '1': color_code = curses.color_pair(c1["admin_id"]) + c0[str(c1["admin_id"])][2] if user_id == po_id: color_code = curses.color_pair(c1["admin_po_id"]) + c0[str(c1["admin_po_id"])][2] elif user_id == po_id: color_code = curses.color_pair(c1["po_id"]) + c0[str(c1["po_id"])][2] return color_code def show_time(post_time: str) -> str: """ 把从Api获取到的时间格式转为自定义的格式 :param post_time: 从api的json获取到的原时间 :return: 自定义事件格式 """ timestamp_int = int( time.mktime(time.strptime(re.sub(r"\(.*\)", " ", post_time), "%Y-%m-%d %H:%M:%S"))) return time.strftime(conf['time_format'], time.localtime(timestamp_int)) def content_process(text: str) -> str: """ 简单处理掉一些不必要的内容 <br />, \r :param text: :return: """ text = re.sub(r"<br />|\r", "", text) # data = "" # n = 0 # for i in text: # if i == "\n": # n += 1 # if n == config_info['thread_content_line']: # break # data += i return text def forum_data_process(data: list, page: int): """ 处理从API获取到的版块串列表,以page为key存储到thread_list中 :param data: 从api获取的json :param page: 页数 """ global thread_list thread_list[str(page)] = [] """ 数据说明: id: 串号 userid: po的饼干 f_name: 版块名 now: 自定义格式化之后的事件 content: 串内容 rC: 串回复数量 """ for i in range(len(data)): d = data[i] thread_list[str(page)].append( { 'id': [d['id'], 0], 'userid': [d['userid'], id_color(d['userid'], d['admin'])], 'f_name': ['', 0], 'now': [show_time(d['now']), 0], 'content': [content_process(d['content']), 0], 'rC': [d['replyCount'], 0] } ) if 'fid' in data[1].keys(): for i in range(len(data)): thread_list[str(page)][i]['f_name'] = [forum_list[data[i]['fid']], 0] def thread_data_process(data: dict, page: int = 1): """ 处理从API获取到的串回复列表,以page为key存储到post_list中 """ global post_list # 存储(串号,饼干等……)时为list,[内容,配色] c = config.color_info[1] p = curses.color_pair post_list[str(page)] = [] # 将串基本信息对应id存储 post_list['po_id'] = data['userid'] post_list['tid'] = data['id'] post_list['fid'] = data['fid'] post_list['rC'] = data['replyCount'] if page == 1: post_list[str(page)].append({ 'id': [data['id'], p(c["post_id"])], 'userid': [data['userid'], id_color(data['admin'], data['userid'], data['userid'])], 'now': [show_time(data['now']), p(c["time"])], 'content': [data['content'], p(c["content"])] }) data = data['replys'] for i in range(len(data)): d = data[i] post_list[str(page)].append( { 'id': [str(d['id']), p(c["post_id"])], 'userid': [d['userid'], id_color(d['admin'], d['userid'], post_list['po_id'])], 'now': [show_time(d['now']), p(c["time"])], 'content': [d['content'], p(c["content"])] } ) def pad_browse_update(v_type: str, page: int): """ 从全局变量thread_list或post_list更新浏览区 :param v_type: forum, thread :param page: 页数 """ pad_b.move(0, 0) data = None global thread_list, post_list, cont if v_type == 'forum': data = thread_list[str(page)] elif v_type == 'thread': data = post_list[str(page)] pad_b.clear() for i in range(len(data)): # 串信息:序号 串号 饼干 回复数 版块名 y = pad_b.getyx()[0] pi = conf['theme'] d = data[i] pad_b.addstr("[" + str(i) + "]") pad_b.move(y, pi[0]) pad_b.addstr(d['userid'][0], d['userid'][1]) pad_b.move(y, pi[1]) pad_b.addstr("No." + d['id'][0], d['id'][1]) if v_type == 'forum': pad_b.move(y, pi[2]) pad_b.addstr("[" + d['rC'][0] + "]", d['rC'][1]) pad_b.move(y, pi[3]) pad_b.move(y + 1, 0) # 串内容 pad_b.addstr(d['content'][0], d['content'][1]) pad_b.move(pad_b.getyx()[0] + 1, 0) pad_b.addstr("-" * int(curses.COLS / 3), 0) pad_b.move(pad_b.getyx()[0] + 2, 0) cont['browse_now_line'] = 0 cont['browse_end_line'] = pad_b.getyx()[0] - 2 pad_b.refresh(0, 0, 0, 0, curses.LINES - 3, curses.COLS - 1) def forum(fid: str, page: int = 1): """ 访问指定版块 :param fid: 指定版块id :param page: 指定页数 """ global cont cont['now_page'] = page r = api.get_showf(fid, page) if type(r.json()) is list: cont['input_command_info'] = "" forum_data_process(r.json(), page) pad_browse_update('forum', page) t = 'location' cont[t][0], cont[t][1], cont[t][3], cont['location_text'] = \ "forum", fid, page, forum_list[fid] # pad_info_print(cont['location'][1]) else: pad_info_print(r.json()) def thread(tid: str, page: int = 1): """ 访问指定串 :param tid: 指定串号 :param page: 指定页数 """ global cont cont['now_page'] = page r = api.get_thread(tid, page) if type(r.json()) is not str: cont['input_command_info'] = "" thread_data_process(r.json(), page) pad_browse_update('thread', page) t = 'location' cont[t][0], cont[t][1], cont[t][2], cont[t][3], cont['location_text'] = \ "thread", post_list['fid'], tid, page, forum_list[r.json()['fid']] + "/No." + tid # pad_info_print(cont['back_list'][-1][2]) else: pad_info_print(r.json()) def pad_control_update(): """ 根据cont的信息更新控制栏pad """ icc = "" for i in cont['input_command_char']: icc += i pad_c.clear() pad_c.move(0, 0) pad_c.addstr(0, 0, conf['command_char']) pad_c.addstr(0, 20, cont['location_text']) pad_c.addstr(0, 2, cont['input_command_info']) pad_c.addstr(0, 8, icc) if cont['input_command_info'] == "" and icc == "": pad_c.move(0, 2) pad_c.refresh(0, 0, curses.LINES - 1, 0, curses.LINES - 1, curses.COLS - 1) def print_forum_list(): """ 打印版块列表 """ pad_b.clear() pad_b.move(0, 0) cols_count = 0 cont['location'][0] = "forum_list" for i in forum_list.keys(): pad_b.addstr(i + (5 - len(i)) * " " + forum_list[i], 0) cols_count += 18 if (curses.COLS - cols_count) > 18: pad_b.move(pad_b.getyx()[0], cols_count) pad_b.addstr("|") else: pad_b.move(pad_b.getyx()[0] + 1, 0) cols_count = 0 pad_b.refresh(0, 0, 0, 0, curses.LINES - 3, curses.COLS - 1) def control_visit(v_type: str): """ 访问版块或串号,调用后从pad_c捕获用户键盘输入 :param v_type: forum/thread """ global cont cont['input_command_char'] = [] if v_type == 'forum': cont['input_command_info'] = "版号:" char_max_len = 4 char_ord_list = [45] + list(range(48, 58)) elif v_type == "thread": cont['input_command_info'] = "串号:" char_max_len = 8 char_ord_list = list(range(48, 58)) pad_control_update() while True: cc = pad_c.getch() if cc in char_ord_list and len(cont['input_command_char']) <= char_max_len: # 符合限制规则且已输入内容不超过最大长度 cont['input_command_char'].append(chr(cc)) pad_control_update() elif (cc == 127 or cc == 263) and cont['input_command_char']: # Backspace/退格键 cont['input_command_char'].pop() pad_control_update() elif cc == 10 and cont['input_command_char']: # Enter/回车键 tmp = "" for i in cont['input_command_char']: tmp += i if v_type == "forum": forum(tmp) elif v_type == "thread": thread(tmp) break elif cc == ord('q'): break def go_thread(): """ 访问指定串,根据pad_browse_update()提示的序号 """ global cont cont['input_command_char'] = [] cont['input_command_info'] = "序号: " pad_control_update() while True: cc = pad_c.getch() if cc in list(range(45, 58)) and len(cont['input_command_char']) <= 2: # 符合限制规则且长度不大于2 cont['input_command_char'].append(chr(cc)) pad_control_update() elif (cc == 127 or cc == 263) and cont['input_command_char']: # Backspace/退格键 cont['input_command_char'].pop() pad_control_update() elif cc == 10 and cont['input_command_char']: # Enter/回车键 tmp = "" for i in cont['input_command_char']: tmp += i tmp = thread_list[str(cont['now_page'])][int(tmp)]['id'][0] thread(tmp) break elif cc == ord('q'): curses_end() def page_down(): """ 使pad_b向下翻页,一次翻10行 TODO: 后期加入自定义行数或者翻页半屏/全屏 """ global cont i = cont['browse_end_line'] - (curses.LINES - 3) j = i - cont['browse_now_line'] if j >= 10: cont['browse_now_line'] += 10 elif j > 0: cont['browse_now_line'] += j pad_b.refresh(cont['browse_now_line'], 0, 0, 0, curses.LINES - 3, curses.COLS - 1) def page_up(): """ 使pad_b向上翻页,一次10行 TODO: 后期尝试将page_down和page_up合并 """ global cont i = cont['browse_now_line'] if i >= 10: cont['browse_now_line'] -= 10 elif 0 < i < 10: cont['browse_now_line'] -= i pad_b.refresh(cont['browse_now_line'], 0, 0, 0, curses.LINES - 3, curses.COLS - 1) def next_page(): """ 访问版块的下一页 """ global cont if cont['location'][0] == "forum": cont['now_page'] += 1 forum(cont['location'][1], cont['now_page']) elif cont['location'][0] == "thread": # 判断访问的页数是否大于串页数,从串回复数量计算 x = int(post_list['rC']) n = (int(x / 18) if (x % 18 == 0) else int(x / 18) + 1) if cont['now_page'] < n: cont['now_page'] += 1 thread(cont['location'][2], cont['now_page']) def previous_page(): """ 访问版块或串的上一页 """ global cont if cont['location'][0] == "forum" and cont['now_page'] > 0: cont['now_page'] -= 1 forum(cont['location'][1], cont['now_page']) elif cont['location'][0] == "thread" and cont['now_page'] > 0: cont['now_page'] -= 1 thread(cont['location'][2], cont['now_page'])
[ 11748, 302, 198, 11748, 43878, 198, 11748, 4566, 198, 11748, 640, 198, 11748, 40391, 198, 2, 5525, 229, 103, 22522, 248, 20046, 231, 21410, 33699, 222, 17312, 231, 49035, 121, 46763, 108, 198, 198, 2, 1013, 25, 220, 20015, 236, 11250, 164, 236, 115, 20998, 244, 30266, 98, 164, 229, 103, 165, 119, 246, 164, 106, 97, 22755, 244, 38519, 18796, 101, 22755, 115, 22522, 248, 20046, 231, 21410, 165, 227, 235, 163, 121, 106, 46479, 94, 162, 223, 107, 198, 10414, 796, 4566, 13, 11250, 62, 10951, 198, 2, 542, 25, 10263, 250, 101, 32573, 238, 26193, 234, 32573, 229, 163, 101, 233, 40792, 46479, 251, 27764, 246, 17739, 111, 12859, 236, 32573, 238, 26193, 234, 163, 232, 35050, 222, 223, 20015, 98, 20998, 232, 18796, 101, 12859, 236, 162, 236, 100, 26344, 114, 21410, 46479, 94, 162, 223, 107, 198, 3642, 796, 4566, 13, 13716, 62, 10951, 198, 2, 10263, 227, 101, 161, 109, 222, 45635, 18796, 101, 171, 120, 234, 37605, 241, 30298, 235, 33699, 222, 164, 106, 123, 29785, 106, 48304, 161, 251, 245, 21410, 17739, 101, 32849, 101, 37863, 227, 22522, 117, 198, 16663, 62, 4868, 796, 23884, 198, 2, 10263, 227, 101, 161, 109, 222, 45635, 18796, 101, 171, 120, 234, 37605, 241, 30298, 235, 33699, 222, 164, 106, 123, 29785, 106, 21410, 10310, 110, 21410, 17739, 101, 32849, 101, 37863, 227, 22522, 117, 198, 7353, 62, 4868, 796, 23884, 198, 2, 16926, 46, 25, 37345, 101, 34932, 232, 198, 3642, 17816, 25367, 325, 62, 2197, 62, 4868, 20520, 796, 657, 198, 2, 16926, 46, 25, 16268, 250, 222, 17358, 223, 162, 232, 232, 164, 229, 103, 22522, 248, 20046, 231, 48304, 161, 251, 245, 171, 120, 234, 33566, 106, 30298, 235, 10310, 118, 33566, 112, 162, 236, 98, 164, 236, 115, 20998, 244, 198, 27302, 62, 4868, 796, 40391, 13, 1136, 62, 27302, 62, 4868, 10786, 324, 77, 2022, 11537, 198, 198, 824, 796, 14841, 62, 65, 796, 14841, 62, 72, 796, 14841, 62, 66, 796, 6045, 628, 198, 198, 4299, 14367, 1416, 81, 62, 15636, 7, 19282, 1416, 81, 25, 2134, 11, 14841, 62, 25367, 325, 25, 2134, 11, 14841, 62, 10951, 25, 2134, 11, 14841, 62, 13716, 25, 2134, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 27670, 254, 17739, 98, 19282, 1416, 81, 161, 240, 234, 18, 10310, 103, 15636, 43380, 117, 164, 109, 94, 171, 120, 234, 160, 122, 249, 33699, 222, 17312, 231, 49035, 121, 46763, 108, 162, 241, 235, 43291, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 37786, 11, 14841, 62, 65, 11, 14841, 62, 72, 11, 14841, 62, 66, 198, 220, 220, 220, 37786, 796, 14367, 1416, 81, 198, 220, 220, 220, 14841, 62, 65, 796, 14841, 62, 25367, 325, 198, 220, 220, 220, 14841, 62, 72, 796, 14841, 62, 10951, 198, 220, 220, 220, 14841, 62, 66, 796, 14841, 62, 13716, 628, 198, 4299, 14841, 62, 25367, 325, 62, 4798, 7, 5239, 25, 965, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 10263, 238, 239, 38184, 237, 164, 100, 230, 44293, 118, 15636, 164, 122, 241, 49035, 118, 37863, 227, 22522, 117, 198, 220, 220, 220, 1058, 17143, 2420, 25, 10545, 244, 229, 17312, 105, 37863, 227, 22522, 117, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 14841, 62, 65, 13, 20063, 3419, 198, 220, 220, 220, 14841, 62, 65, 13, 2860, 2536, 7, 15, 11, 657, 11, 2420, 8, 198, 220, 220, 220, 14841, 62, 65, 13, 5420, 3447, 7, 15, 11, 657, 11, 657, 11, 657, 11, 43878, 13, 34509, 1546, 532, 513, 11, 43878, 13, 25154, 50, 532, 352, 8, 628, 198, 4299, 14841, 62, 10951, 62, 4798, 7, 5239, 25, 965, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 10263, 238, 239, 46479, 94, 162, 223, 107, 162, 237, 238, 163, 97, 118, 43718, 237, 164, 122, 241, 49035, 118, 37863, 227, 22522, 117, 198, 220, 220, 220, 1058, 17143, 2420, 25, 10545, 244, 229, 17312, 105, 37863, 227, 22522, 117, 171, 120, 234, 23626, 122, 163, 97, 118, 165, 243, 123, 41753, 99, 41753, 242, 38834, 32014, 12859, 236, 163, 119, 230, 44165, 107, 22522, 121, 41753, 99, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 14841, 62, 72, 13, 20063, 3419, 198, 220, 220, 220, 14841, 62, 72, 13, 2860, 2536, 7, 15, 11, 657, 11, 2420, 8, 198, 220, 220, 220, 331, 796, 43878, 13, 34509, 1546, 532, 362, 198, 220, 220, 220, 14841, 62, 72, 13, 5420, 3447, 7, 15, 11, 657, 11, 331, 11, 657, 11, 331, 11, 43878, 13, 25154, 50, 532, 352, 8, 628, 198, 4299, 2315, 62, 24874, 62, 8043, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 10545, 254, 117, 162, 235, 106, 165, 227, 235, 164, 231, 110, 43095, 162, 94, 230, 22522, 248, 20046, 231, 21410, 165, 95, 250, 164, 231, 110, 26344, 251, 34650, 233, 44293, 244, 165, 95, 250, 164, 231, 110, 171, 120, 234, 165, 250, 222, 17358, 223, 28839, 101, 163, 119, 230, 44165, 107, 26344, 251, 34650, 233, 44293, 244, 45298, 28938, 236, 37863, 235, 32573, 238, 26193, 234, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 269, 796, 4566, 13, 8043, 62, 10951, 58, 15, 60, 198, 220, 220, 220, 329, 1312, 287, 269, 13, 13083, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 43878, 13, 15003, 62, 24874, 7, 600, 7, 72, 828, 269, 58, 72, 7131, 15, 4357, 269, 58, 72, 7131, 16, 12962, 628, 198, 4299, 4686, 62, 8043, 7, 28482, 25, 965, 11, 2836, 62, 312, 25, 965, 796, 6045, 11, 745, 62, 312, 25, 965, 796, 6045, 8, 4613, 493, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 20015, 236, 165, 227, 235, 164, 231, 110, 43095, 162, 94, 230, 22522, 248, 20046, 231, 312, 21410, 165, 95, 250, 164, 231, 110, 43718, 229, 46237, 228, 7, 66, 46998, 165, 95, 250, 164, 231, 110, 43718, 229, 46237, 228, 34460, 248, 32573, 229, 2545, 19526, 235, 163, 119, 226, 28938, 230, 8, 198, 220, 220, 220, 1058, 17143, 13169, 25, 10545, 246, 107, 28938, 99, 163, 118, 95, 28938, 235, 43718, 229, 46237, 228, 163, 105, 99, 198, 220, 220, 220, 1058, 17143, 2836, 62, 312, 25, 1281, 21410, 18796, 101, 22755, 115, 312, 198, 220, 220, 220, 1058, 17143, 745, 62, 312, 25, 745, 10310, 119, 21410, 312, 198, 220, 220, 220, 1058, 7783, 25, 43878, 21410, 165, 95, 250, 164, 231, 110, 43718, 229, 46237, 228, 163, 105, 99, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 16926, 46, 25, 7695, 4686, 21410, 165, 95, 250, 164, 231, 110, 22522, 248, 20046, 231, 198, 220, 220, 220, 269, 15, 796, 4566, 13, 8043, 62, 10951, 58, 15, 60, 198, 220, 220, 220, 269, 16, 796, 4566, 13, 8043, 62, 10951, 58, 16, 60, 198, 220, 220, 220, 3124, 62, 8189, 796, 657, 198, 220, 220, 220, 611, 13169, 6624, 705, 16, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 3124, 62, 8189, 796, 43878, 13, 8043, 62, 24874, 7, 66, 16, 14692, 28482, 62, 312, 8973, 8, 1343, 269, 15, 58, 2536, 7, 66, 16, 14692, 28482, 62, 312, 8973, 8, 7131, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2836, 62, 312, 6624, 745, 62, 312, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3124, 62, 8189, 796, 43878, 13, 8043, 62, 24874, 7, 66, 16, 14692, 28482, 62, 7501, 62, 312, 8973, 8, 1343, 269, 15, 58, 2536, 7, 66, 16, 14692, 28482, 62, 7501, 62, 312, 8973, 8, 7131, 17, 60, 198, 220, 220, 220, 1288, 361, 2836, 62, 312, 6624, 745, 62, 312, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3124, 62, 8189, 796, 43878, 13, 8043, 62, 24874, 7, 66, 16, 14692, 7501, 62, 312, 8973, 8, 1343, 269, 15, 58, 2536, 7, 66, 16, 14692, 7501, 62, 312, 8973, 8, 7131, 17, 60, 198, 220, 220, 220, 1441, 3124, 62, 8189, 628, 198, 4299, 905, 62, 2435, 7, 7353, 62, 2435, 25, 965, 8, 4613, 965, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 10545, 232, 232, 20015, 236, 32, 14415, 164, 236, 115, 20998, 244, 26344, 108, 21410, 33768, 114, 29785, 112, 43718, 120, 28156, 237, 164, 121, 105, 10310, 118, 164, 229, 103, 22522, 248, 20046, 231, 21410, 43718, 120, 28156, 237, 198, 220, 220, 220, 1058, 17143, 1281, 62, 2435, 25, 220, 20015, 236, 15042, 21410, 17752, 164, 236, 115, 20998, 244, 26344, 108, 21410, 43889, 253, 33768, 114, 29785, 112, 198, 220, 220, 220, 1058, 7783, 25, 5525, 229, 103, 22522, 248, 20046, 231, 12859, 233, 20015, 35050, 254, 120, 28156, 237, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 41033, 62, 600, 796, 493, 7, 198, 220, 220, 220, 220, 220, 220, 220, 640, 13, 28015, 2435, 7, 2435, 13, 2536, 457, 524, 7, 260, 13, 7266, 7, 81, 1, 59, 7, 15885, 22725, 1600, 366, 33172, 1281, 62, 2435, 828, 36521, 56, 12, 4, 76, 12, 4, 67, 4064, 39, 25, 4, 44, 25, 4, 50, 1, 22305, 198, 220, 220, 220, 1441, 640, 13, 2536, 31387, 7, 10414, 17816, 2435, 62, 18982, 6, 4357, 640, 13, 12001, 2435, 7, 16514, 27823, 62, 600, 4008, 628, 198, 4299, 2695, 62, 14681, 7, 5239, 25, 965, 8, 4613, 965, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 13328, 106, 222, 39355, 243, 13783, 226, 49426, 228, 162, 236, 231, 31660, 12859, 249, 38834, 33232, 227, 17358, 223, 21410, 37863, 227, 22522, 117, 198, 220, 220, 220, 1279, 1671, 11037, 11, 3467, 81, 198, 220, 220, 220, 1058, 17143, 2420, 25, 198, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2420, 796, 302, 13, 7266, 7, 81, 1, 27, 1671, 11037, 91, 59, 81, 1600, 366, 1600, 2420, 8, 198, 220, 220, 220, 1303, 1366, 796, 13538, 198, 220, 220, 220, 1303, 299, 796, 657, 198, 220, 220, 220, 1303, 329, 1312, 287, 2420, 25, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 611, 1312, 6624, 37082, 77, 1298, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 299, 15853, 352, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 611, 299, 6624, 4566, 62, 10951, 17816, 16663, 62, 11299, 62, 1370, 6, 5974, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 1366, 15853, 1312, 198, 220, 220, 220, 1441, 2420, 628, 198, 4299, 10041, 62, 7890, 62, 14681, 7, 7890, 25, 1351, 11, 2443, 25, 493, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 36469, 226, 49426, 228, 20015, 236, 17614, 164, 236, 115, 20998, 244, 26344, 108, 21410, 48304, 161, 251, 245, 10310, 110, 26344, 245, 26193, 101, 171, 120, 234, 20015, 98, 7700, 10310, 118, 2539, 27764, 246, 43636, 101, 26344, 108, 16663, 62, 4868, 40792, 198, 220, 220, 220, 1058, 17143, 1366, 25, 220, 20015, 236, 15042, 164, 236, 115, 20998, 244, 21410, 17752, 198, 220, 220, 220, 1058, 17143, 2443, 25, 16268, 94, 113, 46763, 108, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 4704, 62, 4868, 198, 220, 220, 220, 4704, 62, 4868, 58, 2536, 7, 7700, 15437, 796, 17635, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 10545, 243, 108, 162, 235, 106, 46237, 112, 23626, 236, 171, 120, 248, 198, 220, 220, 220, 4686, 25, 220, 10310, 110, 20998, 115, 198, 220, 220, 220, 2836, 312, 25, 745, 21410, 165, 98, 120, 33176, 110, 198, 220, 220, 220, 277, 62, 3672, 25, 13328, 231, 230, 161, 251, 245, 28938, 235, 220, 198, 220, 220, 220, 783, 25, 5525, 229, 103, 22522, 248, 20046, 231, 43718, 120, 28156, 237, 44293, 244, 45298, 28938, 236, 21410, 12859, 233, 20015, 114, 198, 220, 220, 220, 2695, 25, 220, 10310, 110, 37863, 227, 22522, 117, 198, 220, 220, 220, 374, 34, 25, 220, 10310, 110, 32368, 252, 13783, 235, 46763, 108, 34932, 237, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 329, 1312, 287, 2837, 7, 11925, 7, 7890, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 288, 796, 1366, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 4704, 62, 4868, 58, 2536, 7, 7700, 25295, 33295, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 312, 10354, 685, 67, 17816, 312, 6, 4357, 657, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7220, 312, 10354, 685, 67, 17816, 7220, 312, 6, 4357, 4686, 62, 8043, 7, 67, 17816, 7220, 312, 6, 4357, 288, 17816, 28482, 6, 12962, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 69, 62, 3672, 10354, 37250, 3256, 657, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 2197, 10354, 685, 12860, 62, 2435, 7, 67, 17816, 2197, 20520, 828, 657, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 11299, 10354, 685, 11299, 62, 14681, 7, 67, 17816, 11299, 20520, 828, 657, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 81, 34, 10354, 685, 67, 17816, 47768, 12332, 6, 4357, 657, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 611, 705, 69, 312, 6, 287, 1366, 58, 16, 4083, 13083, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 2837, 7, 11925, 7, 7890, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4704, 62, 4868, 58, 2536, 7, 7700, 8, 7131, 72, 7131, 6, 69, 62, 3672, 20520, 796, 685, 27302, 62, 4868, 58, 7890, 58, 72, 7131, 6, 69, 312, 20520, 4357, 657, 60, 628, 198, 4299, 4704, 62, 7890, 62, 14681, 7, 7890, 25, 8633, 11, 2443, 25, 493, 796, 352, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 36469, 226, 49426, 228, 20015, 236, 17614, 164, 236, 115, 20998, 244, 26344, 108, 21410, 10310, 110, 32368, 252, 13783, 235, 26344, 245, 26193, 101, 171, 120, 234, 20015, 98, 7700, 10310, 118, 2539, 27764, 246, 43636, 101, 26344, 108, 7353, 62, 4868, 40792, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 1281, 62, 4868, 198, 220, 220, 220, 1303, 10263, 255, 246, 43636, 101, 7, 10310, 110, 20998, 115, 171, 120, 234, 165, 98, 120, 33176, 110, 163, 255, 231, 7398, 8, 33768, 114, 10310, 118, 4868, 171, 120, 234, 58, 37863, 227, 22522, 117, 171, 120, 234, 165, 227, 235, 164, 231, 110, 60, 198, 220, 220, 220, 269, 796, 4566, 13, 8043, 62, 10951, 58, 16, 60, 198, 220, 220, 220, 279, 796, 43878, 13, 8043, 62, 24874, 198, 220, 220, 220, 1281, 62, 4868, 58, 2536, 7, 7700, 15437, 796, 17635, 628, 220, 220, 220, 1303, 10263, 108, 228, 10310, 110, 161, 253, 118, 17312, 105, 46479, 94, 162, 223, 107, 43380, 117, 41753, 242, 312, 27764, 246, 43636, 101, 198, 220, 220, 220, 1281, 62, 4868, 17816, 7501, 62, 312, 20520, 796, 1366, 17816, 7220, 312, 20520, 198, 220, 220, 220, 1281, 62, 4868, 17816, 83, 312, 20520, 796, 1366, 17816, 312, 20520, 198, 220, 220, 220, 1281, 62, 4868, 17816, 69, 312, 20520, 796, 1366, 17816, 69, 312, 20520, 198, 220, 220, 220, 1281, 62, 4868, 17816, 81, 34, 20520, 796, 1366, 17816, 47768, 12332, 20520, 198, 220, 220, 220, 611, 2443, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1281, 62, 4868, 58, 2536, 7, 7700, 25295, 33295, 15090, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 312, 10354, 685, 7890, 17816, 312, 6, 4357, 279, 7, 66, 14692, 7353, 62, 312, 8973, 8, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7220, 312, 10354, 685, 7890, 17816, 7220, 312, 6, 4357, 4686, 62, 8043, 7, 7890, 17816, 28482, 6, 4357, 1366, 17816, 7220, 312, 6, 4357, 1366, 17816, 7220, 312, 6, 12962, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 2197, 10354, 685, 12860, 62, 2435, 7, 7890, 17816, 2197, 20520, 828, 279, 7, 66, 14692, 2435, 8973, 8, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 11299, 10354, 685, 7890, 17816, 11299, 6, 4357, 279, 7, 66, 14692, 11299, 8973, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 32092, 198, 220, 220, 220, 1366, 796, 1366, 17816, 47768, 82, 20520, 198, 220, 220, 220, 329, 1312, 287, 2837, 7, 11925, 7, 7890, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 288, 796, 1366, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1281, 62, 4868, 58, 2536, 7, 7700, 25295, 33295, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 312, 10354, 685, 2536, 7, 67, 17816, 312, 20520, 828, 279, 7, 66, 14692, 7353, 62, 312, 8973, 8, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7220, 312, 10354, 685, 67, 17816, 7220, 312, 6, 4357, 4686, 62, 8043, 7, 67, 17816, 28482, 6, 4357, 288, 17816, 7220, 312, 6, 4357, 1281, 62, 4868, 17816, 7501, 62, 312, 6, 12962, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 2197, 10354, 685, 12860, 62, 2435, 7, 67, 17816, 2197, 20520, 828, 279, 7, 66, 14692, 2435, 8973, 8, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 11299, 10354, 685, 67, 17816, 11299, 6, 4357, 279, 7, 66, 14692, 11299, 8973, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 198, 4299, 14841, 62, 25367, 325, 62, 19119, 7, 85, 62, 4906, 25, 965, 11, 2443, 25, 493, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 20015, 236, 17739, 101, 161, 109, 222, 20998, 246, 34932, 237, 16663, 62, 4868, 22755, 244, 7353, 62, 4868, 162, 249, 112, 23877, 108, 38184, 237, 164, 100, 230, 44293, 118, 198, 220, 220, 220, 1058, 17143, 410, 62, 4906, 25, 10041, 11, 4704, 198, 220, 220, 220, 1058, 17143, 2443, 25, 16268, 94, 113, 46763, 108, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 14841, 62, 65, 13, 21084, 7, 15, 11, 657, 8, 198, 220, 220, 220, 1366, 796, 6045, 198, 220, 220, 220, 3298, 4704, 62, 4868, 11, 1281, 62, 4868, 11, 542, 198, 220, 220, 220, 611, 410, 62, 4906, 6624, 705, 27302, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 4704, 62, 4868, 58, 2536, 7, 7700, 15437, 198, 220, 220, 220, 1288, 361, 410, 62, 4906, 6624, 705, 16663, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 1281, 62, 4868, 58, 2536, 7, 7700, 15437, 198, 220, 220, 220, 14841, 62, 65, 13, 20063, 3419, 198, 220, 220, 220, 329, 1312, 287, 2837, 7, 11925, 7, 7890, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 10310, 110, 46479, 94, 162, 223, 107, 171, 120, 248, 41753, 237, 20998, 115, 220, 10310, 110, 20998, 115, 16268, 98, 120, 33176, 110, 10263, 249, 252, 13783, 235, 46763, 108, 13328, 231, 230, 161, 251, 245, 28938, 235, 198, 220, 220, 220, 220, 220, 220, 220, 331, 796, 14841, 62, 65, 13, 1136, 28391, 3419, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 31028, 796, 1013, 17816, 43810, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 288, 796, 1366, 58, 72, 60, 628, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 2860, 2536, 7203, 14692, 1343, 965, 7, 72, 8, 1343, 366, 60, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 21084, 7, 88, 11, 31028, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 2860, 2536, 7, 67, 17816, 7220, 312, 6, 7131, 15, 4357, 288, 17816, 7220, 312, 6, 7131, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 21084, 7, 88, 11, 31028, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 2860, 2536, 7203, 2949, 526, 1343, 288, 17816, 312, 6, 7131, 15, 4357, 288, 17816, 312, 6, 7131, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 611, 410, 62, 4906, 6624, 705, 27302, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 21084, 7, 88, 11, 31028, 58, 17, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 2860, 2536, 7203, 14692, 1343, 288, 17816, 81, 34, 6, 7131, 15, 60, 1343, 366, 60, 1600, 288, 17816, 81, 34, 6, 7131, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 21084, 7, 88, 11, 31028, 58, 18, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 21084, 7, 88, 1343, 352, 11, 657, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 10310, 110, 37863, 227, 22522, 117, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 2860, 2536, 7, 67, 17816, 11299, 6, 7131, 15, 4357, 288, 17816, 11299, 6, 7131, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 21084, 7, 15636, 62, 65, 13, 1136, 28391, 3419, 58, 15, 60, 1343, 352, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 2860, 2536, 7203, 21215, 1635, 493, 7, 66, 46998, 13, 25154, 50, 1220, 513, 828, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 21084, 7, 15636, 62, 65, 13, 1136, 28391, 3419, 58, 15, 60, 1343, 362, 11, 657, 8, 198, 220, 220, 220, 542, 17816, 25367, 325, 62, 2197, 62, 1370, 20520, 796, 657, 198, 220, 220, 220, 542, 17816, 25367, 325, 62, 437, 62, 1370, 20520, 796, 14841, 62, 65, 13, 1136, 28391, 3419, 58, 15, 60, 532, 362, 198, 220, 220, 220, 14841, 62, 65, 13, 5420, 3447, 7, 15, 11, 657, 11, 657, 11, 657, 11, 43878, 13, 34509, 1546, 532, 513, 11, 43878, 13, 25154, 50, 532, 352, 8, 628, 198, 4299, 10041, 7, 69, 312, 25, 965, 11, 2443, 25, 493, 796, 352, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5525, 106, 123, 29785, 106, 162, 234, 229, 22522, 248, 48304, 161, 251, 245, 198, 220, 220, 220, 1058, 17143, 49909, 25, 10545, 234, 229, 22522, 248, 48304, 161, 251, 245, 312, 198, 220, 220, 220, 1058, 17143, 2443, 25, 10545, 234, 229, 22522, 21253, 94, 113, 46763, 108, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 542, 198, 220, 220, 220, 542, 17816, 2197, 62, 7700, 20520, 796, 2443, 198, 220, 220, 220, 374, 796, 40391, 13, 1136, 62, 12860, 69, 7, 69, 312, 11, 2443, 8, 198, 220, 220, 220, 611, 2099, 7, 81, 13, 17752, 28955, 318, 1351, 25, 198, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 15414, 62, 21812, 62, 10951, 20520, 796, 13538, 198, 220, 220, 220, 220, 220, 220, 220, 10041, 62, 7890, 62, 14681, 7, 81, 13, 17752, 22784, 2443, 8, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 25367, 325, 62, 19119, 10786, 27302, 3256, 2443, 8, 198, 220, 220, 220, 220, 220, 220, 220, 256, 796, 705, 24886, 6, 198, 220, 220, 220, 220, 220, 220, 220, 542, 58, 83, 7131, 15, 4357, 542, 58, 83, 7131, 16, 4357, 542, 58, 83, 7131, 18, 4357, 542, 17816, 24886, 62, 5239, 20520, 796, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 27302, 1600, 49909, 11, 2443, 11, 10041, 62, 4868, 58, 69, 312, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14841, 62, 10951, 62, 4798, 7, 3642, 17816, 24886, 6, 7131, 16, 12962, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 10951, 62, 4798, 7, 81, 13, 17752, 28955, 628, 198, 4299, 4704, 7, 83, 312, 25, 965, 11, 2443, 25, 493, 796, 352, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5525, 106, 123, 29785, 106, 162, 234, 229, 22522, 248, 10310, 110, 198, 220, 220, 220, 1058, 17143, 29770, 25, 10545, 234, 229, 22522, 248, 10310, 110, 20998, 115, 198, 220, 220, 220, 1058, 17143, 2443, 25, 10545, 234, 229, 22522, 21253, 94, 113, 46763, 108, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 542, 198, 220, 220, 220, 542, 17816, 2197, 62, 7700, 20520, 796, 2443, 198, 220, 220, 220, 374, 796, 40391, 13, 1136, 62, 16663, 7, 83, 312, 11, 2443, 8, 198, 220, 220, 220, 611, 2099, 7, 81, 13, 17752, 28955, 318, 407, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 15414, 62, 21812, 62, 10951, 20520, 796, 13538, 198, 220, 220, 220, 220, 220, 220, 220, 4704, 62, 7890, 62, 14681, 7, 81, 13, 17752, 22784, 2443, 8, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 25367, 325, 62, 19119, 10786, 16663, 3256, 2443, 8, 198, 220, 220, 220, 220, 220, 220, 220, 256, 796, 705, 24886, 6, 198, 220, 220, 220, 220, 220, 220, 220, 542, 58, 83, 7131, 15, 4357, 542, 58, 83, 7131, 16, 4357, 542, 58, 83, 7131, 17, 4357, 542, 58, 83, 7131, 18, 4357, 542, 17816, 24886, 62, 5239, 20520, 796, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 16663, 1600, 1281, 62, 4868, 17816, 69, 312, 6, 4357, 29770, 11, 2443, 11, 10041, 62, 4868, 58, 81, 13, 17752, 3419, 17816, 69, 312, 6, 11907, 1343, 12813, 2949, 526, 1343, 29770, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 14841, 62, 10951, 62, 4798, 7, 3642, 17816, 1891, 62, 4868, 6, 7131, 12, 16, 7131, 17, 12962, 628, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 10951, 62, 4798, 7, 81, 13, 17752, 28955, 628, 198, 4299, 14841, 62, 13716, 62, 19119, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 10545, 254, 117, 162, 235, 106, 3642, 21410, 46479, 94, 162, 223, 107, 162, 249, 112, 23877, 108, 162, 236, 100, 26344, 35050, 254, 237, 15636, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 14158, 66, 796, 13538, 198, 220, 220, 220, 329, 1312, 287, 542, 17816, 15414, 62, 21812, 62, 10641, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 14158, 66, 15853, 1312, 198, 220, 220, 220, 14841, 62, 66, 13, 20063, 3419, 198, 220, 220, 220, 14841, 62, 66, 13, 21084, 7, 15, 11, 657, 8, 198, 220, 220, 220, 14841, 62, 66, 13, 2860, 2536, 7, 15, 11, 657, 11, 1013, 17816, 21812, 62, 10641, 6, 12962, 198, 220, 220, 220, 14841, 62, 66, 13, 2860, 2536, 7, 15, 11, 1160, 11, 542, 17816, 24886, 62, 5239, 6, 12962, 198, 220, 220, 220, 14841, 62, 66, 13, 2860, 2536, 7, 15, 11, 362, 11, 542, 17816, 15414, 62, 21812, 62, 10951, 6, 12962, 198, 220, 220, 220, 14841, 62, 66, 13, 2860, 2536, 7, 15, 11, 807, 11, 14158, 66, 8, 198, 220, 220, 220, 611, 542, 17816, 15414, 62, 21812, 62, 10951, 20520, 6624, 13538, 290, 14158, 66, 6624, 366, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 66, 13, 21084, 7, 15, 11, 362, 8, 198, 220, 220, 220, 14841, 62, 66, 13, 5420, 3447, 7, 15, 11, 657, 11, 43878, 13, 34509, 1546, 532, 352, 11, 657, 11, 43878, 13, 34509, 1546, 532, 352, 11, 43878, 13, 25154, 50, 532, 352, 8, 628, 198, 4299, 3601, 62, 27302, 62, 4868, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 10545, 231, 241, 39355, 108, 48304, 161, 251, 245, 26344, 245, 26193, 101, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 14841, 62, 65, 13, 20063, 3419, 198, 220, 220, 220, 14841, 62, 65, 13, 21084, 7, 15, 11, 657, 8, 198, 220, 220, 220, 951, 82, 62, 9127, 796, 657, 198, 220, 220, 220, 542, 17816, 24886, 6, 7131, 15, 60, 796, 366, 27302, 62, 4868, 1, 198, 220, 220, 220, 329, 1312, 287, 10041, 62, 4868, 13, 13083, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 2860, 2536, 7, 72, 1343, 357, 20, 532, 18896, 7, 72, 4008, 1635, 366, 366, 1343, 10041, 62, 4868, 58, 72, 4357, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 951, 82, 62, 9127, 15853, 1248, 198, 220, 220, 220, 220, 220, 220, 220, 611, 357, 66, 46998, 13, 25154, 50, 532, 951, 82, 62, 9127, 8, 1875, 1248, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 21084, 7, 15636, 62, 65, 13, 1136, 28391, 3419, 58, 15, 4357, 951, 82, 62, 9127, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 2860, 2536, 7203, 91, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 65, 13, 21084, 7, 15636, 62, 65, 13, 1136, 28391, 3419, 58, 15, 60, 1343, 352, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 82, 62, 9127, 796, 657, 198, 220, 220, 220, 14841, 62, 65, 13, 5420, 3447, 7, 15, 11, 657, 11, 657, 11, 657, 11, 43878, 13, 34509, 1546, 532, 513, 11, 43878, 13, 25154, 50, 532, 352, 8, 628, 198, 4299, 1630, 62, 4703, 270, 7, 85, 62, 4906, 25, 965, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5525, 106, 123, 29785, 106, 48304, 161, 251, 245, 22755, 244, 10310, 110, 20998, 115, 171, 120, 234, 164, 108, 225, 18796, 101, 28938, 236, 20015, 236, 15636, 62, 66, 162, 235, 243, 164, 236, 115, 18796, 101, 22755, 115, 165, 242, 106, 33566, 246, 164, 122, 241, 17739, 98, 198, 220, 220, 220, 1058, 17143, 410, 62, 4906, 25, 10041, 14, 16663, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 542, 198, 220, 220, 220, 542, 17816, 15414, 62, 21812, 62, 10641, 20520, 796, 17635, 198, 220, 220, 220, 611, 410, 62, 4906, 6624, 705, 27302, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 15414, 62, 21812, 62, 10951, 20520, 796, 366, 48304, 20998, 115, 171, 120, 248, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1149, 62, 9806, 62, 11925, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 1149, 62, 585, 62, 4868, 796, 685, 2231, 60, 1343, 1351, 7, 9521, 7, 2780, 11, 7618, 4008, 198, 220, 220, 220, 1288, 361, 410, 62, 4906, 6624, 366, 16663, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 15414, 62, 21812, 62, 10951, 20520, 796, 366, 10310, 110, 20998, 115, 171, 120, 248, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1149, 62, 9806, 62, 11925, 796, 807, 198, 220, 220, 220, 220, 220, 220, 220, 1149, 62, 585, 62, 4868, 796, 1351, 7, 9521, 7, 2780, 11, 7618, 4008, 628, 220, 220, 220, 14841, 62, 13716, 62, 19119, 3419, 198, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 36624, 796, 14841, 62, 66, 13, 1136, 354, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 611, 36624, 287, 1149, 62, 585, 62, 4868, 290, 18896, 7, 3642, 17816, 15414, 62, 21812, 62, 10641, 6, 12962, 19841, 1149, 62, 9806, 62, 11925, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 13328, 105, 99, 28938, 230, 165, 247, 238, 26344, 114, 164, 100, 226, 26344, 247, 10310, 242, 32432, 110, 164, 122, 241, 17739, 98, 37863, 227, 22522, 117, 38834, 164, 41678, 32573, 229, 17312, 222, 32014, 165, 243, 123, 41753, 99, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 15414, 62, 21812, 62, 10641, 6, 4083, 33295, 7, 354, 81, 7, 535, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 13716, 62, 19119, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 357, 535, 6624, 18112, 393, 36624, 6624, 39135, 8, 290, 542, 17816, 15414, 62, 21812, 62, 10641, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 5157, 13200, 14, 34460, 222, 43718, 120, 165, 242, 106, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 15414, 62, 21812, 62, 10641, 6, 4083, 12924, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 13716, 62, 19119, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 36624, 6624, 838, 290, 542, 17816, 15414, 62, 21812, 62, 10641, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 6062, 14, 32368, 252, 164, 121, 99, 165, 242, 106, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 796, 13538, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 542, 17816, 15414, 62, 21812, 62, 10641, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 15853, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 410, 62, 4906, 6624, 366, 27302, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10041, 7, 22065, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 410, 62, 4906, 6624, 366, 16663, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4704, 7, 22065, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 36624, 6624, 2760, 10786, 80, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 198, 4299, 467, 62, 16663, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5525, 106, 123, 29785, 106, 162, 234, 229, 22522, 248, 10310, 110, 171, 120, 234, 43718, 117, 162, 235, 106, 15636, 62, 25367, 325, 62, 19119, 3419, 162, 237, 238, 163, 97, 118, 21410, 41753, 237, 20998, 115, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 542, 198, 220, 220, 220, 542, 17816, 15414, 62, 21812, 62, 10641, 20520, 796, 17635, 198, 220, 220, 220, 542, 17816, 15414, 62, 21812, 62, 10951, 20520, 796, 366, 41753, 237, 20998, 115, 25, 366, 198, 220, 220, 220, 14841, 62, 13716, 62, 19119, 3419, 628, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 36624, 796, 14841, 62, 66, 13, 1136, 354, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 611, 36624, 287, 1351, 7, 9521, 7, 2231, 11, 7618, 4008, 290, 18896, 7, 3642, 17816, 15414, 62, 21812, 62, 10641, 6, 12962, 19841, 362, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 13328, 105, 99, 28938, 230, 165, 247, 238, 26344, 114, 164, 100, 226, 26344, 247, 10310, 242, 165, 243, 123, 41753, 99, 38834, 32014, 12859, 236, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 15414, 62, 21812, 62, 10641, 6, 4083, 33295, 7, 354, 81, 7, 535, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 13716, 62, 19119, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 357, 535, 6624, 18112, 393, 36624, 6624, 39135, 8, 290, 542, 17816, 15414, 62, 21812, 62, 10641, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 5157, 13200, 14, 34460, 222, 43718, 120, 165, 242, 106, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 15414, 62, 21812, 62, 10641, 6, 4083, 12924, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14841, 62, 13716, 62, 19119, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 36624, 6624, 838, 290, 542, 17816, 15414, 62, 21812, 62, 10641, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 6062, 14, 32368, 252, 164, 121, 99, 165, 242, 106, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 796, 13538, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 542, 17816, 15414, 62, 21812, 62, 10641, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 15853, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 796, 4704, 62, 4868, 58, 2536, 7, 3642, 17816, 2197, 62, 7700, 6, 12962, 7131, 600, 7, 22065, 8, 7131, 6, 312, 6, 7131, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4704, 7, 22065, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 36624, 6624, 2760, 10786, 80, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43878, 62, 437, 3419, 628, 198, 4299, 2443, 62, 2902, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 45635, 15636, 62, 65, 28938, 239, 10310, 233, 163, 123, 119, 165, 94, 113, 171, 120, 234, 31660, 162, 105, 94, 163, 123, 119, 940, 26193, 234, 198, 220, 220, 220, 16926, 46, 25, 10263, 238, 236, 17312, 253, 27950, 254, 17739, 98, 164, 229, 103, 22522, 248, 20046, 231, 26193, 234, 46763, 108, 22755, 244, 38519, 163, 123, 119, 165, 94, 113, 39355, 232, 161, 109, 237, 14, 17739, 101, 161, 109, 237, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 542, 198, 220, 220, 220, 1312, 796, 542, 17816, 25367, 325, 62, 437, 62, 1370, 20520, 532, 357, 66, 46998, 13, 34509, 1546, 532, 513, 8, 198, 220, 220, 220, 474, 796, 1312, 532, 542, 17816, 25367, 325, 62, 2197, 62, 1370, 20520, 198, 220, 220, 220, 611, 474, 18189, 838, 25, 198, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 25367, 325, 62, 2197, 62, 1370, 20520, 15853, 838, 198, 220, 220, 220, 1288, 361, 474, 1875, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 25367, 325, 62, 2197, 62, 1370, 20520, 15853, 474, 198, 220, 220, 220, 14841, 62, 65, 13, 5420, 3447, 7, 3642, 17816, 25367, 325, 62, 2197, 62, 1370, 6, 4357, 657, 11, 657, 11, 657, 11, 43878, 13, 34509, 1546, 532, 513, 11, 43878, 13, 25154, 50, 532, 352, 8, 628, 198, 4299, 2443, 62, 929, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 45635, 15636, 62, 65, 28938, 239, 41468, 163, 123, 119, 165, 94, 113, 171, 120, 234, 31660, 162, 105, 94, 940, 26193, 234, 198, 220, 220, 220, 16926, 46, 25, 10263, 238, 236, 17312, 253, 22887, 251, 46237, 243, 49546, 7700, 62, 2902, 161, 240, 234, 7700, 62, 929, 28938, 230, 33176, 114, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 542, 198, 220, 220, 220, 1312, 796, 542, 17816, 25367, 325, 62, 2197, 62, 1370, 20520, 198, 220, 220, 220, 611, 1312, 18189, 838, 25, 198, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 25367, 325, 62, 2197, 62, 1370, 20520, 48185, 838, 198, 220, 220, 220, 1288, 361, 657, 1279, 1312, 1279, 838, 25, 198, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 25367, 325, 62, 2197, 62, 1370, 20520, 48185, 1312, 198, 220, 220, 220, 14841, 62, 65, 13, 5420, 3447, 7, 3642, 17816, 25367, 325, 62, 2197, 62, 1370, 6, 4357, 657, 11, 657, 11, 657, 11, 43878, 13, 34509, 1546, 532, 513, 11, 43878, 13, 25154, 50, 532, 352, 8, 628, 198, 4299, 1306, 62, 7700, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5525, 106, 123, 29785, 106, 48304, 161, 251, 245, 21410, 10310, 233, 31660, 165, 94, 113, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 542, 198, 220, 220, 220, 611, 542, 17816, 24886, 6, 7131, 15, 60, 6624, 366, 27302, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 2197, 62, 7700, 20520, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 10041, 7, 3642, 17816, 24886, 6, 7131, 16, 4357, 542, 17816, 2197, 62, 7700, 6, 12962, 198, 220, 220, 220, 1288, 361, 542, 17816, 24886, 6, 7131, 15, 60, 6624, 366, 16663, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 10263, 230, 97, 23877, 255, 164, 106, 123, 29785, 106, 21410, 165, 94, 113, 46763, 108, 42468, 28938, 99, 32014, 12859, 236, 10310, 110, 165, 94, 113, 46763, 108, 171, 120, 234, 20015, 236, 10310, 110, 32368, 252, 13783, 235, 46763, 108, 34932, 237, 164, 106, 94, 163, 106, 245, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 493, 7, 7353, 62, 4868, 17816, 81, 34, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 299, 796, 357, 600, 7, 87, 1220, 1248, 8, 611, 357, 87, 4064, 1248, 6624, 657, 8, 2073, 493, 7, 87, 1220, 1248, 8, 1343, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 542, 17816, 2197, 62, 7700, 20520, 1279, 299, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 2197, 62, 7700, 20520, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4704, 7, 3642, 17816, 24886, 6, 7131, 17, 4357, 542, 17816, 2197, 62, 7700, 6, 12962, 628, 198, 4299, 2180, 62, 7700, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5525, 106, 123, 29785, 106, 48304, 161, 251, 245, 22755, 244, 10310, 110, 21410, 41468, 31660, 165, 94, 113, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3298, 542, 198, 220, 220, 220, 611, 542, 17816, 24886, 6, 7131, 15, 60, 6624, 366, 27302, 1, 290, 542, 17816, 2197, 62, 7700, 20520, 1875, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 2197, 62, 7700, 20520, 48185, 352, 198, 220, 220, 220, 220, 220, 220, 220, 10041, 7, 3642, 17816, 24886, 6, 7131, 16, 4357, 542, 17816, 2197, 62, 7700, 6, 12962, 198, 220, 220, 220, 1288, 361, 542, 17816, 24886, 6, 7131, 15, 60, 6624, 366, 16663, 1, 290, 542, 17816, 2197, 62, 7700, 20520, 1875, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 542, 17816, 2197, 62, 7700, 20520, 48185, 352, 198, 220, 220, 220, 220, 220, 220, 220, 4704, 7, 3642, 17816, 24886, 6, 7131, 17, 4357, 542, 17816, 2197, 62, 7700, 6, 12962, 628, 198 ]
1.656602
7,286
import unittest import numpy as np import base64 from brain import control_handling from brain import constants claw_control_info = { constants.SIGNAL_NAME: 'claw', constants.SIGNAL_LIMITS: [100.0, 400.0], constants.SIGNAL_CHANNEL_NAME: 'gp.robots.testrobot.controls.claw', } twist_control_info = { constants.SIGNAL_NAME: 'twist', constants.SIGNAL_LIMITS: [100.0, 500.0], constants.SIGNAL_CHANNEL_NAME: 'gp.robots.testrobot.controls.twist', } if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2779, 2414, 198, 198, 6738, 3632, 1330, 1630, 62, 4993, 1359, 198, 6738, 3632, 1330, 38491, 198, 198, 43143, 62, 13716, 62, 10951, 796, 1391, 198, 220, 220, 220, 38491, 13, 46224, 1847, 62, 20608, 25, 705, 43143, 3256, 198, 220, 220, 220, 38491, 13, 46224, 1847, 62, 43, 3955, 29722, 25, 685, 3064, 13, 15, 11, 7337, 13, 15, 4357, 198, 220, 220, 220, 38491, 13, 46224, 1847, 62, 3398, 22846, 3698, 62, 20608, 25, 705, 31197, 13, 22609, 1747, 13, 9288, 305, 13645, 13, 13716, 82, 13, 43143, 3256, 198, 92, 198, 4246, 396, 62, 13716, 62, 10951, 796, 1391, 198, 220, 220, 220, 38491, 13, 46224, 1847, 62, 20608, 25, 705, 4246, 396, 3256, 198, 220, 220, 220, 38491, 13, 46224, 1847, 62, 43, 3955, 29722, 25, 685, 3064, 13, 15, 11, 5323, 13, 15, 4357, 198, 220, 220, 220, 38491, 13, 46224, 1847, 62, 3398, 22846, 3698, 62, 20608, 25, 705, 31197, 13, 22609, 1747, 13, 9288, 305, 13645, 13, 13716, 82, 13, 4246, 396, 3256, 198, 92, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 628 ]
2.495192
208
# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 Eotvos Lorand University, Budapest, Hungary compiler_common.current_compilation['is_multicompiled'] = True part_count = compiler_common.current_compilation['multi'] multi_idx = compiler_common.current_compilation['multi_idx'] table_names = (table.short_name + ("/keyless" if table.key_length_bits == 0 else "") + ("/hidden" if table.is_hidden else "") for table in hlir.tables) all_table_infos = sorted(zip(hlir.tables, table_names), key=lambda k: len(k[0].actions)) table_infos = list(ti for idx, ti in enumerate(all_table_infos) if idx % part_count == multi_idx) all_hdrs = sorted(hlir.header_instances.filterfalse(lambda hdr: hdr.urtype.is_metadata), key=lambda hdr: len(hdr.urtype.fields)) hdrs = list(hdr for idx, hdr in enumerate(all_hdrs) if idx % part_count == multi_idx) if hdrs == []: compiler_common.current_compilation['skip_output'] = True else: for hdr in hdrs: #[ #include "parser_stages.h" #{ int parser_extract_${hdr.name}(uint32_t vwlen, STDPARAMS) { #[ uint32_t value32; (void)value32; #[ uint32_t res32; (void)res32; #[ parser_state_t* local_vars = pstate; hdrtype = hdr.urtype is_vw = hdrtype.is_vw #[ uint32_t hdrlen = (${hdr.urtype.size} + vwlen) / 8; #{ if (unlikely(pd->parsed_length + hdrlen > pd->wrapper->pkt_len)) { #[ cannot_parse_hdr("${"variable width " if is_vw else ""}", "${hdr.name}", hdrlen, STDPARAMS_IN); #[ return -1; // parsed after end of packet #} } if 'stack' in hdr and hdr.stack is not None: #[ stk_next(STK(${hdr.stack.name}), pd); #[ header_instance_t hdrinst = stk_current(STK(${hdr.stack.name}), pd); else: #[ header_instance_t hdrinst = HDR(${hdr.name}); #[ header_descriptor_t* hdr = &(pd->headers[hdrinst]); #[ hdr->pointer = pd->extract_ptr; #[ hdr->was_enabled_at_initial_parse = true; #[ hdr->length = hdrlen; #[ hdr->var_width_field_bitwidth = vwlen; for fld in hdrtype.fields: if fld.preparsed and fld.size <= 32: #[ EXTRACT_INT32_AUTO_PACKET(pd, hdr, FLD(hdr,${fld.name}), value32) #[ pd->fields.FLD(hdr,${fld.name}) = value32; #[ pd->fields.ATTRFLD(hdr,${fld.name}) = NOT_MODIFIED; #[ dbg_bytes(hdr->pointer, hdr->length, #[ " :: Parsed ${"variable width " if is_vw else ""}header" T4LIT(#%d) " " T4LIT(%s,header) "/$${}{%dB}: ", hdr_infos[hdrinst].idx, hdr_infos[hdrinst].name, hdr->length); #[ pd->parsed_length += hdrlen; #[ pd->extract_ptr += hdrlen; #[ return hdrlen; #} } #[
[ 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 15069, 33448, 412, 313, 85, 418, 26068, 392, 2059, 11, 40959, 11, 19562, 198, 198, 5589, 5329, 62, 11321, 13, 14421, 62, 5589, 10520, 17816, 271, 62, 16680, 291, 3361, 3902, 20520, 796, 6407, 198, 198, 3911, 62, 9127, 796, 17050, 62, 11321, 13, 14421, 62, 5589, 10520, 17816, 41684, 20520, 198, 41684, 62, 312, 87, 796, 17050, 62, 11321, 13, 14421, 62, 5589, 10520, 17816, 41684, 62, 312, 87, 20520, 198, 198, 11487, 62, 14933, 796, 357, 11487, 13, 19509, 62, 3672, 1343, 5855, 14, 2539, 1203, 1, 611, 3084, 13, 2539, 62, 13664, 62, 9895, 6624, 657, 2073, 366, 4943, 1343, 5855, 14, 30342, 1, 611, 3084, 13, 271, 62, 30342, 2073, 366, 4943, 329, 3084, 287, 289, 75, 343, 13, 83, 2977, 8, 198, 439, 62, 11487, 62, 10745, 418, 796, 23243, 7, 13344, 7, 18519, 343, 13, 83, 2977, 11, 3084, 62, 14933, 828, 1994, 28, 50033, 479, 25, 18896, 7, 74, 58, 15, 4083, 4658, 4008, 198, 11487, 62, 10745, 418, 796, 1351, 7, 20259, 329, 4686, 87, 11, 46668, 287, 27056, 378, 7, 439, 62, 11487, 62, 10745, 418, 8, 611, 4686, 87, 4064, 636, 62, 9127, 6624, 5021, 62, 312, 87, 8, 198, 198, 439, 62, 31298, 3808, 796, 23243, 7, 18519, 343, 13, 25677, 62, 8625, 1817, 13, 24455, 9562, 7, 50033, 289, 7109, 25, 289, 7109, 13, 333, 4906, 13, 271, 62, 38993, 828, 1994, 28, 50033, 289, 7109, 25, 18896, 7, 71, 7109, 13, 333, 4906, 13, 25747, 4008, 198, 31298, 3808, 796, 1351, 7, 71, 7109, 329, 4686, 87, 11, 289, 7109, 287, 27056, 378, 7, 439, 62, 31298, 3808, 8, 611, 4686, 87, 4064, 636, 62, 9127, 6624, 5021, 62, 312, 87, 8, 198, 198, 361, 289, 67, 3808, 6624, 685, 5974, 198, 220, 220, 220, 17050, 62, 11321, 13, 14421, 62, 5589, 10520, 17816, 48267, 62, 22915, 20520, 796, 6407, 198, 17772, 25, 198, 220, 220, 220, 329, 289, 7109, 287, 289, 67, 3808, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 1303, 17256, 366, 48610, 62, 301, 1095, 13, 71, 1, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 90, 493, 30751, 62, 2302, 974, 62, 38892, 71, 7109, 13, 3672, 92, 7, 28611, 2624, 62, 83, 410, 86, 11925, 11, 3563, 6322, 1503, 40834, 8, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 20398, 2624, 62, 83, 1988, 2624, 26, 357, 19382, 8, 8367, 2624, 26, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 20398, 2624, 62, 83, 581, 2624, 26, 357, 19382, 8, 411, 2624, 26, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 30751, 62, 5219, 62, 83, 9, 1957, 62, 85, 945, 796, 279, 5219, 26, 628, 220, 220, 220, 220, 220, 220, 220, 289, 7109, 4906, 796, 289, 7109, 13, 333, 4906, 628, 220, 220, 220, 220, 220, 220, 220, 318, 62, 85, 86, 796, 289, 7109, 4906, 13, 271, 62, 85, 86, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 20398, 2624, 62, 83, 289, 7109, 11925, 796, 7198, 90, 71, 7109, 13, 333, 4906, 13, 7857, 92, 1343, 410, 86, 11925, 8, 1220, 807, 26, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 90, 220, 220, 220, 220, 611, 357, 403, 40798, 7, 30094, 3784, 79, 945, 276, 62, 13664, 1343, 289, 7109, 11925, 1875, 279, 67, 3784, 48553, 3784, 79, 21841, 62, 11925, 4008, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 220, 220, 220, 220, 2314, 62, 29572, 62, 71, 7109, 7203, 3, 4895, 45286, 9647, 366, 611, 318, 62, 85, 86, 2073, 13538, 92, 1600, 17971, 90, 71, 7109, 13, 3672, 92, 1600, 289, 7109, 11925, 11, 3563, 6322, 1503, 40834, 62, 1268, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 532, 16, 26, 3373, 44267, 706, 886, 286, 19638, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 92, 220, 220, 220, 220, 1782, 628, 220, 220, 220, 220, 220, 220, 220, 611, 705, 25558, 6, 287, 289, 7109, 290, 289, 7109, 13, 25558, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 336, 74, 62, 19545, 7, 2257, 42, 16763, 90, 71, 7109, 13, 25558, 13, 3672, 92, 828, 279, 67, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 13639, 62, 39098, 62, 83, 289, 7109, 8625, 796, 336, 74, 62, 14421, 7, 2257, 42, 16763, 90, 71, 7109, 13, 25558, 13, 3672, 92, 828, 279, 67, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 13639, 62, 39098, 62, 83, 289, 7109, 8625, 796, 33675, 16763, 90, 71, 7109, 13, 3672, 22133, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 13639, 62, 20147, 1968, 273, 62, 83, 9, 289, 7109, 796, 1222, 7, 30094, 3784, 50145, 58, 71, 7109, 8625, 36563, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 289, 7109, 3784, 29536, 796, 279, 67, 3784, 2302, 974, 62, 20692, 26, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 289, 7109, 3784, 9776, 62, 25616, 62, 265, 62, 36733, 62, 29572, 796, 2081, 26, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 289, 7109, 3784, 13664, 796, 289, 7109, 11925, 26, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 289, 7109, 3784, 7785, 62, 10394, 62, 3245, 62, 2545, 10394, 796, 410, 86, 11925, 26, 628, 220, 220, 220, 220, 220, 220, 220, 329, 277, 335, 287, 289, 7109, 4906, 13, 25747, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 277, 335, 13, 46012, 945, 276, 290, 277, 335, 13, 7857, 19841, 3933, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 7788, 5446, 10659, 62, 12394, 2624, 62, 39371, 46, 62, 47, 8120, 2767, 7, 30094, 11, 289, 7109, 11, 9977, 35, 7, 71, 7109, 11, 38892, 69, 335, 13, 3672, 92, 828, 1988, 2624, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 279, 67, 3784, 25747, 13, 3697, 35, 7, 71, 7109, 11, 38892, 69, 335, 13, 3672, 30072, 796, 1988, 2624, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 279, 67, 3784, 25747, 13, 1404, 5446, 3697, 35, 7, 71, 7109, 11, 38892, 69, 335, 13, 3672, 30072, 796, 5626, 62, 33365, 28343, 26, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 20613, 70, 62, 33661, 7, 71, 7109, 3784, 29536, 11, 289, 7109, 3784, 13664, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 220, 220, 7904, 23042, 276, 720, 4895, 45286, 9647, 366, 611, 318, 62, 85, 86, 2073, 13538, 92, 25677, 1, 309, 19, 43, 2043, 7, 2, 4, 67, 8, 366, 366, 309, 19, 43, 2043, 7, 4, 82, 11, 25677, 8, 12813, 13702, 90, 18477, 4, 36077, 38362, 33172, 289, 7109, 62, 10745, 418, 58, 71, 7109, 8625, 4083, 312, 87, 11, 289, 7109, 62, 10745, 418, 58, 71, 7109, 8625, 4083, 3672, 11, 289, 7109, 3784, 13664, 1776, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 279, 67, 3784, 79, 945, 276, 62, 13664, 15853, 289, 7109, 11925, 26, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 279, 67, 3784, 2302, 974, 62, 20692, 15853, 289, 7109, 11925, 26, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 220, 220, 220, 220, 1441, 289, 7109, 11925, 26, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 92, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 198 ]
2.003519
1,421
# pylint: disable=R0903 """test __slots__ on old style class""" __revision__ = 1 class OkOk(object): """correct usage""" __slots__ = ('a', 'b') class HaNonNonNon: """bad usage""" __slots__ = ('a', 'b') __slots__ = 'hop' # pfff
[ 2, 279, 2645, 600, 25, 15560, 28, 49, 2931, 3070, 198, 37811, 9288, 11593, 6649, 1747, 834, 319, 1468, 3918, 1398, 37811, 198, 198, 834, 260, 10178, 834, 796, 352, 198, 198, 4871, 6762, 18690, 7, 15252, 2599, 198, 220, 220, 220, 37227, 30283, 8748, 37811, 198, 220, 220, 220, 11593, 6649, 1747, 834, 796, 19203, 64, 3256, 705, 65, 11537, 198, 198, 4871, 9398, 15419, 15419, 15419, 25, 198, 220, 220, 220, 37227, 14774, 8748, 37811, 198, 220, 220, 220, 11593, 6649, 1747, 834, 796, 19203, 64, 3256, 705, 65, 11537, 198, 198, 834, 6649, 1747, 834, 796, 705, 8548, 6, 1303, 279, 20972, 198 ]
2.330189
106
# Copyright 2016-2022 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified 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.github.com/vanvalenlab/kiosk-redis-consumer/LICENSE # # The Work provided may be used for non-commercial academic purposes only. # For any other use of the Work, including commercial use, please contact: # [email protected] # # Neither the name of Caltech nor the names of its contributors may be used # to endorse or promote products derived from this software without specific # prior written permission. # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ """Tests for SpotDetectionConsumer""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from redis_consumer import consumers from redis_consumer.testing_utils import Bunch from redis_consumer.testing_utils import DummyStorage from redis_consumer.testing_utils import redis_client # pylint: disable=R0201,W0621
[ 2, 15069, 1584, 12, 1238, 1828, 383, 6656, 3254, 268, 3498, 379, 262, 3442, 5136, 286, 198, 2, 8987, 357, 9771, 13670, 828, 351, 1104, 422, 262, 3362, 9659, 7884, 5693, 11, 198, 2, 3012, 11, 1222, 2351, 33656, 286, 3893, 357, 22125, 39, 8, 739, 12181, 471, 1731, 8141, 24137, 26895, 12, 486, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 257, 9518, 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, 12567, 13, 785, 14, 10438, 2100, 268, 23912, 14, 4106, 418, 74, 12, 445, 271, 12, 49827, 14, 43, 2149, 24290, 198, 2, 198, 2, 383, 5521, 2810, 743, 307, 973, 329, 1729, 12, 36313, 8233, 4959, 691, 13, 198, 2, 1114, 597, 584, 779, 286, 262, 5521, 11, 1390, 5068, 779, 11, 3387, 2800, 25, 198, 2, 5719, 2100, 268, 23912, 31, 14816, 13, 785, 198, 2, 198, 2, 16126, 262, 1438, 286, 2199, 13670, 4249, 262, 3891, 286, 663, 20420, 743, 307, 973, 198, 2, 284, 11438, 393, 7719, 3186, 10944, 422, 428, 3788, 1231, 2176, 198, 2, 3161, 3194, 7170, 13, 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, 51, 3558, 329, 15899, 11242, 3213, 49106, 37811, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 2266, 271, 62, 49827, 1330, 7008, 198, 6738, 2266, 271, 62, 49827, 13, 33407, 62, 26791, 1330, 347, 3316, 198, 6738, 2266, 271, 62, 49827, 13, 33407, 62, 26791, 1330, 360, 13513, 31425, 198, 6738, 2266, 271, 62, 49827, 13, 33407, 62, 26791, 1330, 2266, 271, 62, 16366, 628, 220, 220, 220, 1303, 279, 2645, 600, 25, 15560, 28, 49, 15, 1264, 11, 54, 3312, 2481, 198 ]
4.019465
411