content
stringlengths 1
1.04M
| input_ids
sequencelengths 1
774k
| ratio_char_token
float64 0.38
22.9
| token_count
int64 1
774k
|
---|---|---|---|
import requests
import base64
import json
import random
from jose import jwk
from datetime import datetime
from django.conf import settings
from sampleapp.models import Bearer, QuickBooksDiscoveryDocument
# token can either be an accessToken or a refreshToken
# The validation steps can be found at ours docs at developer.intuit.com
# for decoding ID Token
# Returns a securely generated random string. Source from the django.utils.crypto module.
# Create a random secret key. Source from the django.utils.crypto module.
| [
11748,
7007,
198,
11748,
2779,
2414,
198,
11748,
33918,
198,
11748,
4738,
198,
198,
6738,
474,
577,
1330,
474,
43021,
198,
6738,
4818,
8079,
1330,
4818,
8079,
198,
198,
6738,
42625,
14208,
13,
10414,
1330,
6460,
198,
198,
6738,
6291,
1324,
13,
27530,
1330,
1355,
11258,
11,
12029,
30650,
35,
40821,
24941,
628,
198,
198,
2,
11241,
460,
2035,
307,
281,
1895,
30642,
393,
257,
14976,
30642,
628,
628,
628,
198,
2,
383,
21201,
4831,
460,
307,
1043,
379,
16903,
34165,
379,
8517,
13,
600,
5013,
13,
785,
628,
198,
198,
2,
329,
39938,
4522,
29130,
628,
198,
198,
2,
16409,
257,
30835,
7560,
4738,
4731,
13,
8090,
422,
262,
42625,
14208,
13,
26791,
13,
29609,
78,
8265,
13,
628,
198,
2,
13610,
257,
4738,
3200,
1994,
13,
8090,
422,
262,
42625,
14208,
13,
26791,
13,
29609,
78,
8265,
13,
198
] | 3.836879 | 141 |
VVVtop = Lorentz(name = 'VVVtop',
spins = [ 3, 3, 3 ],
structure = 'FTriZTop(2*P(-1,1)*P(-1,2)) * (Epsilon(1,2,-1,-2)*P(-1,1)*P(-2,2)*P(3,3))')
VVVbot = Lorentz(name = 'VVVbot',
spins = [ 3, 3, 3 ],
structure = 'FTriZBot(2*P(-1,1)*P(-1,2)) * (Epsilon(1,2,-1,-2)*P(-1,1)*P(-2,2)*P(3,3))')
| [
198,
198,
53,
53,
53,
4852,
796,
15639,
429,
89,
7,
3672,
796,
705,
53,
53,
53,
4852,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37621,
796,
685,
513,
11,
513,
11,
513,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4645,
796,
705,
9792,
380,
57,
9126,
7,
17,
9,
47,
32590,
16,
11,
16,
27493,
47,
32590,
16,
11,
17,
4008,
1635,
357,
36,
862,
33576,
7,
16,
11,
17,
12095,
16,
12095,
17,
27493,
47,
32590,
16,
11,
16,
27493,
47,
32590,
17,
11,
17,
27493,
47,
7,
18,
11,
18,
4008,
11537,
198,
198,
53,
53,
53,
13645,
796,
15639,
429,
89,
7,
3672,
796,
705,
53,
53,
53,
13645,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37621,
796,
685,
513,
11,
513,
11,
513,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4645,
796,
705,
9792,
380,
57,
20630,
7,
17,
9,
47,
32590,
16,
11,
16,
27493,
47,
32590,
16,
11,
17,
4008,
1635,
357,
36,
862,
33576,
7,
16,
11,
17,
12095,
16,
12095,
17,
27493,
47,
32590,
16,
11,
16,
27493,
47,
32590,
17,
11,
17,
27493,
47,
7,
18,
11,
18,
4008,
11537,
628,
198
] | 1.504032 | 248 |
import os
import unittest
from sportradar import NHL
# Import API keys from environment variables
api_key_name = "SPORTRADAR_API_KEY_NHL"
api_key = os.environ.get(api_key_name, None)
assert api_key is not None, "Must declare environment variable: {key_name}".format(
key_name=api_key_name)
api = NHL.NHL(api_key, format_="json", timeout=5, sleep_time=1.2)
| [
11748,
28686,
198,
11748,
555,
715,
395,
198,
6738,
6332,
6335,
283,
1330,
9481,
198,
198,
2,
17267,
7824,
8251,
422,
2858,
9633,
198,
15042,
62,
2539,
62,
3672,
796,
366,
4303,
1581,
5446,
2885,
1503,
62,
17614,
62,
20373,
62,
45,
6581,
1,
198,
15042,
62,
2539,
796,
28686,
13,
268,
2268,
13,
1136,
7,
15042,
62,
2539,
62,
3672,
11,
6045,
8,
198,
30493,
40391,
62,
2539,
318,
407,
6045,
11,
366,
34320,
13627,
2858,
7885,
25,
1391,
2539,
62,
3672,
92,
1911,
18982,
7,
198,
220,
220,
220,
1994,
62,
3672,
28,
15042,
62,
2539,
62,
3672,
8,
198,
15042,
796,
9481,
13,
45,
6581,
7,
15042,
62,
2539,
11,
5794,
62,
2625,
17752,
1600,
26827,
28,
20,
11,
3993,
62,
2435,
28,
16,
13,
17,
8,
628
] | 2.763359 | 131 |
#!/usr/bin/env python
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Tool to help developers rebase branches across the Blink rename."""
import argparse
import json
import os
import subprocess
import shutil
import sys
import tempfile
def _whereis(name):
"""Find and return the first entry in $PATH containing a file named |name|.
Returns the path if found; otherwise returns nothing.
"""
for path in os.environ['PATH'].split(os.pathsep):
if os.path.exists(os.path.join(path, name)):
return path
def _find_depot_tools():
"""Attempts to configure and return a wrapper for invoking depot tools.
Returns:
A helper object for invoking depot tools.
Raises:
_DepotToolsNotFoundException: An error occurred trying to find depot tools.
"""
# Attempt to find download_from_google_storage.py from depot_tools
path = _whereis('download_from_google_storage.py')
if not path:
raise _DepotToolsNotFoundException(
'download_from_google_storage.py not found. Make sure depot_tools is '
'in $PATH.')
# Make sure gsutil.py is in the same location
path2 = _whereis('download_from_google_storage.py')
if not path2:
raise _DepotToolsNotFoundException(
'gsutil.py not found. Make sure depot_tools is in $PATH.')
if path != path2:
raise _DepotToolsNotFoundException(
'download_from_google_storage.py found in %s but gsutil.py found in %s.'
% (path, path2))
return DepotToolsWrapper(path)
class Bootstrapper(object):
"""Helper class for bootstrapping startup of the rebase helper.
Performs update checks and stages any required binaries."""
def __init__(self, depot_tools, components_manifest_name):
"""Bootstrapper constructor.
Args:
depot_tools: a wrapper for invoking depot_tools.
components_manifest_name: The name of the components manifest.
"""
self.__depot_tools = depot_tools
self.__components_manifest_name = components_manifest_name
self.__tmpdir = None
def update(self):
"""Performs an update check for various components."""
components = self._get_latest_components()
for name, sha1_hash in components.iteritems():
args = [
'--no_auth', '--no_resume', '-b', 'chromium-blink-rename',
'--extract', sha1_hash
]
if '-' in name:
name, platform = name.split('-', 1)
args.append('-p')
args.append(platform)
args.append('-o')
args.append(os.path.join('staging', '%s.tar.gz' % name))
self.__depot_tools.call_download_from_google_storage(*args)
def _get_latest_components(self):
"""Fetches info about the latest components from google storage.
The return value should be a dict of component names to SHA1 hashes."""
components_path = os.path.join(self.__tmpdir, 'COMPONENTS')
self.__depot_tools.call_gsutil(
'cp', 'gs://chromium-blink-rename/%s' % self.__components_manifest_name,
components_path)
with open(components_path) as f:
return json.loads(f.read())
if __name__ == '__main__':
sys.exit(main())
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
15069,
2177,
383,
18255,
1505,
46665,
13,
1439,
2489,
10395,
13,
198,
2,
5765,
286,
428,
2723,
2438,
318,
21825,
416,
257,
347,
10305,
12,
7635,
5964,
326,
460,
307,
198,
2,
1043,
287,
262,
38559,
24290,
2393,
13,
198,
37811,
25391,
284,
1037,
6505,
3405,
589,
13737,
1973,
262,
41732,
36265,
526,
15931,
198,
198,
11748,
1822,
29572,
198,
11748,
33918,
198,
11748,
28686,
198,
11748,
850,
14681,
198,
11748,
4423,
346,
198,
11748,
25064,
198,
11748,
20218,
7753,
628,
198,
198,
4299,
4808,
3003,
271,
7,
3672,
2599,
198,
220,
37227,
16742,
290,
1441,
262,
717,
5726,
287,
720,
34219,
7268,
257,
2393,
3706,
930,
3672,
91,
13,
628,
220,
16409,
262,
3108,
611,
1043,
26,
4306,
5860,
2147,
13,
198,
220,
37227,
198,
220,
329,
3108,
287,
28686,
13,
268,
2268,
17816,
34219,
6,
4083,
35312,
7,
418,
13,
6978,
325,
79,
2599,
198,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
418,
13,
6978,
13,
22179,
7,
6978,
11,
1438,
8,
2599,
198,
220,
220,
220,
220,
220,
1441,
3108,
628,
198,
4299,
4808,
19796,
62,
10378,
313,
62,
31391,
33529,
198,
220,
37227,
48452,
284,
17425,
290,
1441,
257,
29908,
329,
39744,
43369,
4899,
13,
628,
220,
16409,
25,
198,
220,
220,
220,
317,
31904,
2134,
329,
39744,
43369,
4899,
13,
628,
220,
7567,
2696,
25,
198,
220,
220,
220,
4808,
12156,
313,
33637,
3673,
21077,
16922,
25,
1052,
4049,
5091,
2111,
284,
1064,
43369,
4899,
13,
198,
220,
37227,
628,
220,
1303,
25770,
284,
1064,
4321,
62,
6738,
62,
13297,
62,
35350,
13,
9078,
422,
43369,
62,
31391,
198,
220,
3108,
796,
4808,
3003,
271,
10786,
15002,
62,
6738,
62,
13297,
62,
35350,
13,
9078,
11537,
198,
220,
611,
407,
3108,
25,
198,
220,
220,
220,
5298,
4808,
12156,
313,
33637,
3673,
21077,
16922,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
15002,
62,
6738,
62,
13297,
62,
35350,
13,
9078,
407,
1043,
13,
6889,
1654,
43369,
62,
31391,
318,
705,
198,
220,
220,
220,
220,
220,
220,
220,
705,
259,
720,
34219,
2637,
8,
628,
220,
1303,
6889,
1654,
308,
82,
22602,
13,
9078,
318,
287,
262,
976,
4067,
198,
220,
3108,
17,
796,
4808,
3003,
271,
10786,
15002,
62,
6738,
62,
13297,
62,
35350,
13,
9078,
11537,
198,
220,
611,
407,
3108,
17,
25,
198,
220,
220,
220,
5298,
4808,
12156,
313,
33637,
3673,
21077,
16922,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
14542,
22602,
13,
9078,
407,
1043,
13,
6889,
1654,
43369,
62,
31391,
318,
287,
720,
34219,
2637,
8,
628,
220,
611,
3108,
14512,
3108,
17,
25,
198,
220,
220,
220,
5298,
4808,
12156,
313,
33637,
3673,
21077,
16922,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
15002,
62,
6738,
62,
13297,
62,
35350,
13,
9078,
1043,
287,
4064,
82,
475,
308,
82,
22602,
13,
9078,
1043,
287,
4064,
82,
2637,
198,
220,
220,
220,
220,
220,
220,
220,
4064,
357,
6978,
11,
3108,
17,
4008,
628,
220,
1441,
30884,
33637,
36918,
2848,
7,
6978,
8,
628,
198,
4871,
18892,
12044,
2848,
7,
15252,
2599,
198,
220,
37227,
47429,
1398,
329,
6297,
12044,
2105,
13693,
286,
262,
3405,
589,
31904,
13,
628,
220,
2448,
23914,
4296,
8794,
290,
9539,
597,
2672,
38640,
526,
15931,
628,
220,
825,
11593,
15003,
834,
7,
944,
11,
43369,
62,
31391,
11,
6805,
62,
805,
8409,
62,
3672,
2599,
198,
220,
220,
220,
37227,
36476,
12044,
2848,
23772,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
43369,
62,
31391,
25,
257,
29908,
329,
39744,
43369,
62,
31391,
13,
198,
220,
220,
220,
220,
220,
6805,
62,
805,
8409,
62,
3672,
25,
383,
1438,
286,
262,
6805,
10561,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2116,
13,
834,
10378,
313,
62,
31391,
796,
43369,
62,
31391,
198,
220,
220,
220,
2116,
13,
834,
5589,
3906,
62,
805,
8409,
62,
3672,
796,
6805,
62,
805,
8409,
62,
3672,
198,
220,
220,
220,
2116,
13,
834,
22065,
15908,
796,
6045,
628,
220,
825,
4296,
7,
944,
2599,
198,
220,
220,
220,
37227,
5990,
23914,
281,
4296,
2198,
329,
2972,
6805,
526,
15931,
198,
220,
220,
220,
6805,
796,
2116,
13557,
1136,
62,
42861,
62,
5589,
3906,
3419,
198,
220,
220,
220,
329,
1438,
11,
427,
64,
16,
62,
17831,
287,
6805,
13,
2676,
23814,
33529,
198,
220,
220,
220,
220,
220,
26498,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
3919,
62,
18439,
3256,
705,
438,
3919,
62,
411,
2454,
3256,
705,
12,
65,
3256,
705,
28663,
1505,
12,
2436,
676,
12,
918,
480,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
2302,
974,
3256,
427,
64,
16,
62,
17831,
198,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
611,
705,
19355,
287,
1438,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
11,
3859,
796,
1438,
13,
35312,
10786,
12,
3256,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
26498,
13,
33295,
10786,
12,
79,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
26498,
13,
33295,
7,
24254,
8,
198,
220,
220,
220,
220,
220,
26498,
13,
33295,
10786,
12,
78,
11537,
198,
220,
220,
220,
220,
220,
26498,
13,
33295,
7,
418,
13,
6978,
13,
22179,
10786,
301,
3039,
3256,
705,
4,
82,
13,
18870,
13,
34586,
6,
4064,
1438,
4008,
198,
220,
220,
220,
220,
220,
2116,
13,
834,
10378,
313,
62,
31391,
13,
13345,
62,
15002,
62,
6738,
62,
13297,
62,
35350,
46491,
22046,
8,
628,
220,
825,
4808,
1136,
62,
42861,
62,
5589,
3906,
7,
944,
2599,
198,
220,
220,
220,
37227,
37,
316,
2052,
7508,
546,
262,
3452,
6805,
422,
23645,
6143,
13,
628,
220,
220,
220,
383,
1441,
1988,
815,
307,
257,
8633,
286,
7515,
3891,
284,
25630,
16,
46621,
526,
15931,
198,
220,
220,
220,
6805,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
944,
13,
834,
22065,
15908,
11,
705,
9858,
47,
1340,
15365,
11537,
198,
220,
220,
220,
2116,
13,
834,
10378,
313,
62,
31391,
13,
13345,
62,
14542,
22602,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
13155,
3256,
705,
14542,
1378,
28663,
1505,
12,
2436,
676,
12,
918,
480,
14,
4,
82,
6,
4064,
2116,
13,
834,
5589,
3906,
62,
805,
8409,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6805,
62,
6978,
8,
198,
220,
220,
220,
351,
1280,
7,
5589,
3906,
62,
6978,
8,
355,
277,
25,
198,
220,
220,
220,
220,
220,
1441,
33918,
13,
46030,
7,
69,
13,
961,
28955,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
25064,
13,
37023,
7,
12417,
28955,
198
] | 2.82716 | 1,134 |
""" Chicken Poker echo bot. """
import logging
logging.basicConfig(filename='echo_bot.log', level=logging.WARN, filemode='w', format='%(levelname)s %(message)s')
log = logging.getLogger(__name__)
log.info("Starting")
#
# Networking
#
import sys
def deserialize_round(round_string):
""" param: round_string is expected to be list of integers separated by spaces.
The integers are interpreted as pairs (agent_id, bet). """
log.debug("round_string %s", round_string)
last_round = dict()
parts = round_string.strip().split(" ")
if len(parts) > 1: # Before the first round we receive an empty string
for i in range(0, len(parts), 2):
last_round[int(parts[i])] = int(parts[i+1])
return last_round
#
# Bot
#
import random
if __name__ == "__main__":
main()
| [
37811,
16405,
36157,
9809,
10214,
13,
37227,
198,
198,
11748,
18931,
198,
6404,
2667,
13,
35487,
16934,
7,
34345,
11639,
30328,
62,
13645,
13,
6404,
3256,
1241,
28,
6404,
2667,
13,
37771,
11,
2393,
14171,
11639,
86,
3256,
5794,
11639,
4,
7,
5715,
3672,
8,
82,
4064,
7,
20500,
8,
82,
11537,
198,
6404,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
198,
6404,
13,
10951,
7203,
22851,
4943,
628,
198,
2,
220,
220,
198,
2,
7311,
278,
198,
2,
198,
11748,
25064,
198,
198,
4299,
748,
48499,
1096,
62,
744,
7,
744,
62,
8841,
2599,
198,
220,
220,
220,
37227,
5772,
25,
2835,
62,
8841,
318,
2938,
284,
307,
1351,
286,
37014,
11266,
416,
9029,
13,
198,
220,
220,
220,
220,
220,
220,
220,
383,
37014,
389,
16173,
355,
14729,
357,
25781,
62,
312,
11,
731,
737,
37227,
198,
220,
220,
220,
2604,
13,
24442,
7203,
744,
62,
8841,
4064,
82,
1600,
2835,
62,
8841,
8,
198,
220,
220,
220,
938,
62,
744,
796,
8633,
3419,
198,
220,
220,
220,
3354,
796,
2835,
62,
8841,
13,
36311,
22446,
35312,
7203,
366,
8,
198,
220,
220,
220,
611,
18896,
7,
42632,
8,
1875,
352,
25,
220,
1303,
7413,
262,
717,
2835,
356,
3328,
281,
6565,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
15,
11,
18896,
7,
42632,
828,
362,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
938,
62,
744,
58,
600,
7,
42632,
58,
72,
12962,
60,
796,
493,
7,
42632,
58,
72,
10,
16,
12962,
198,
220,
220,
220,
1441,
938,
62,
744,
628,
628,
628,
628,
198,
2,
198,
2,
18579,
198,
2,
198,
11748,
4738,
628,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1388,
3419,
628
] | 2.713816 | 304 |
import flask
from flask_restful import Resource
from utils import decoraters
from logic.test.checkalive_logic import CheckaliveLogic
class CheckaliveApi(Resource):
"""CheckaliveApi
/api/checkalive
"""
@decoraters.response_format
def get(self):
"""
"""
checkalive_logic = CheckaliveLogic()
res, err = checkalive_logic.checkalive()
if err:
return 1, err, self.log_id
return 0, res, self.log_id
| [
11748,
42903,
198,
6738,
42903,
62,
2118,
913,
1330,
20857,
198,
198,
6738,
3384,
4487,
1330,
11705,
8605,
198,
6738,
9156,
13,
9288,
13,
9122,
282,
425,
62,
6404,
291,
1330,
6822,
282,
425,
11187,
291,
198,
198,
4871,
6822,
282,
425,
32,
14415,
7,
26198,
2599,
198,
220,
220,
220,
37227,
9787,
282,
425,
32,
14415,
198,
220,
220,
220,
1220,
15042,
14,
9122,
282,
425,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
12501,
273,
8605,
13,
26209,
62,
18982,
198,
220,
220,
220,
825,
651,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2198,
282,
425,
62,
6404,
291,
796,
6822,
282,
425,
11187,
291,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
581,
11,
11454,
796,
2198,
282,
425,
62,
6404,
291,
13,
9122,
282,
425,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
11454,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
352,
11,
11454,
11,
2116,
13,
6404,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
11,
581,
11,
2116,
13,
6404,
62,
312,
198
] | 2.294686 | 207 |
import random
import math
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import animation
tmax = 875
t = 0
x = [0]
y = [0]
t=0
t_total = 0
dist = 0
#coord = [[x[t],y[t]]]
while t < tmax:
coord = random.randint(0,1)
if coord == 0:
direction = random.randint(0,1)
direction = 2*direction -1
x.append(x[t] + direction)
y.append(y[t])
#print("x , " + str(direction))
else:
direction = random.randint(0,1)
direction = 2*direction -1
y.append(y[t] + direction)
x.append(x[t])
cur_dist = x[t]*x[t]+y[t]*y[t]
if cur_dist > dist:
dist = cur_dist
# print("y , " + str(direction))
# print(str(x[t]) + " , " + str(y[t]))
t=t+1
#coord.append([x[t],y[t]])
print("max distance was " + str(math.sqrt(dist)))
height = 40
width = 40
fig = plt.figure(figsize=(10, 10))
ax = plt.subplot(111)
xdata, ydata = [], []
ln, = plt.plot([], [])
points = np.c_[x, y]
input("waiting for input")
ani = animation.FuncAnimation(fig, update, frames=points,
init_func=init, blit=True, repeat=False, interval=1)
#ani.save('random_walk.mp4')
plt.show()
| [
11748,
4738,
198,
11748,
10688,
628,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
6738,
2603,
29487,
8019,
1330,
11034,
198,
198,
83,
9806,
796,
807,
2425,
198,
83,
796,
657,
198,
198,
87,
796,
685,
15,
60,
198,
88,
796,
685,
15,
60,
628,
198,
83,
28,
15,
198,
83,
62,
23350,
796,
657,
198,
198,
17080,
796,
657,
198,
198,
2,
37652,
796,
16410,
87,
58,
83,
4357,
88,
58,
83,
11907,
60,
198,
198,
4514,
256,
1279,
256,
9806,
25,
198,
220,
220,
220,
6349,
796,
4738,
13,
25192,
600,
7,
15,
11,
16,
8,
628,
220,
220,
220,
611,
6349,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4571,
796,
4738,
13,
25192,
600,
7,
15,
11,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4571,
796,
362,
9,
37295,
532,
16,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
13,
33295,
7,
87,
58,
83,
60,
1343,
4571,
8,
198,
220,
220,
220,
220,
220,
220,
220,
331,
13,
33295,
7,
88,
58,
83,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4798,
7203,
87,
837,
366,
1343,
965,
7,
37295,
4008,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4571,
796,
4738,
13,
25192,
600,
7,
15,
11,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4571,
796,
362,
9,
37295,
532,
16,
198,
220,
220,
220,
220,
220,
220,
220,
331,
13,
33295,
7,
88,
58,
83,
60,
1343,
4571,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
13,
33295,
7,
87,
58,
83,
12962,
198,
220,
220,
220,
1090,
62,
17080,
796,
2124,
58,
83,
60,
9,
87,
58,
83,
48688,
88,
58,
83,
60,
9,
88,
58,
83,
60,
198,
220,
220,
220,
611,
1090,
62,
17080,
1875,
1233,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1233,
796,
1090,
62,
17080,
198,
220,
220,
220,
1303,
220,
220,
220,
3601,
7203,
88,
837,
366,
1343,
965,
7,
37295,
4008,
628,
220,
220,
220,
1303,
220,
220,
220,
3601,
7,
2536,
7,
87,
58,
83,
12962,
1343,
366,
837,
366,
1343,
220,
965,
7,
88,
58,
83,
60,
4008,
198,
220,
220,
220,
256,
28,
83,
10,
16,
198,
220,
220,
220,
1303,
37652,
13,
33295,
26933,
87,
58,
83,
4357,
88,
58,
83,
11907,
8,
628,
198,
198,
4798,
7203,
9806,
5253,
373,
366,
1343,
965,
7,
11018,
13,
31166,
17034,
7,
17080,
22305,
628,
198,
198,
17015,
796,
2319,
198,
10394,
796,
2319,
198,
198,
5647,
796,
458,
83,
13,
26875,
7,
5647,
7857,
16193,
940,
11,
838,
4008,
198,
897,
796,
458,
83,
13,
7266,
29487,
7,
16243,
8,
198,
198,
87,
7890,
11,
331,
7890,
796,
685,
4357,
17635,
198,
18755,
11,
796,
458,
83,
13,
29487,
26933,
4357,
685,
12962,
198,
198,
13033,
796,
45941,
13,
66,
62,
58,
87,
11,
331,
60,
198,
198,
15414,
7203,
10247,
1780,
329,
5128,
4943,
198,
3216,
796,
11034,
13,
37,
19524,
39520,
7,
5647,
11,
4296,
11,
13431,
28,
13033,
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,
2315,
62,
20786,
28,
15003,
11,
698,
270,
28,
17821,
11,
9585,
28,
25101,
11,
16654,
28,
16,
8,
628,
198,
2,
3216,
13,
21928,
10786,
25120,
62,
11152,
13,
3149,
19,
11537,
198,
198,
489,
83,
13,
12860,
3419,
198
] | 2.047297 | 592 |
import http
from flask_jwt_extended import get_jwt_identity, jwt_required
from flask_restful import Resource, reqparse
from core import config
from models import UserRole
from utils.decorators import api_response_wrapper
from utils.rate_limit import rate_limit
parser = reqparse.RequestParser()
parser.add_argument(
"role_id", trim=True, type=str, help="send correct id", required=True
)
# TODO: DELETE IT, not for production
class SetOwnUserRole(Resource):
"""For debug method to get role"""
@rate_limit()
@api_response_wrapper()
@jwt_required()
| [
11748,
2638,
198,
198,
6738,
42903,
62,
73,
46569,
62,
2302,
1631,
1330,
651,
62,
73,
46569,
62,
738,
414,
11,
474,
46569,
62,
35827,
198,
6738,
42903,
62,
2118,
913,
1330,
20857,
11,
43089,
29572,
198,
198,
6738,
4755,
1330,
4566,
198,
6738,
4981,
1330,
11787,
47445,
198,
6738,
3384,
4487,
13,
12501,
273,
2024,
1330,
40391,
62,
26209,
62,
48553,
198,
6738,
3384,
4487,
13,
4873,
62,
32374,
1330,
2494,
62,
32374,
198,
198,
48610,
796,
43089,
29572,
13,
18453,
46677,
3419,
198,
48610,
13,
2860,
62,
49140,
7,
198,
220,
220,
220,
366,
18090,
62,
312,
1600,
15797,
28,
17821,
11,
2099,
28,
2536,
11,
1037,
2625,
21280,
3376,
4686,
1600,
2672,
28,
17821,
198,
8,
628,
198,
2,
16926,
46,
25,
5550,
2538,
9328,
7283,
11,
407,
329,
3227,
198,
4871,
5345,
23858,
12982,
47445,
7,
26198,
2599,
198,
220,
220,
220,
37227,
1890,
14257,
2446,
284,
651,
2597,
37811,
628,
220,
220,
220,
2488,
4873,
62,
32374,
3419,
198,
220,
220,
220,
2488,
15042,
62,
26209,
62,
48553,
3419,
198,
220,
220,
220,
2488,
73,
46569,
62,
35827,
3419,
198
] | 3.097297 | 185 |
import requests
url = 'https://api.github.com/repos/pandas-dev/pandas/issues'
resp = requests.get(url)
data = resp.json()
print(data[0].avatar_url)
| [
198,
11748,
7007,
198,
6371,
796,
705,
5450,
1378,
15042,
13,
12567,
13,
785,
14,
260,
1930,
14,
79,
392,
292,
12,
7959,
14,
79,
392,
292,
14,
37165,
6,
198,
198,
4363,
796,
7007,
13,
1136,
7,
6371,
8,
198,
198,
7890,
796,
1217,
13,
17752,
3419,
198,
198,
4798,
7,
7890,
58,
15,
4083,
615,
9459,
62,
6371,
8,
198
] | 2.451613 | 62 |
from .action import Action
import libtcodpy as libtcod
# def __init__(self, **kwargs):
# pass
| [
6738,
764,
2673,
1330,
7561,
198,
198,
11748,
9195,
83,
19815,
9078,
355,
9195,
83,
19815,
628,
198,
220,
220,
220,
1303,
825,
11593,
15003,
834,
7,
944,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1208,
198
] | 2.477273 | 44 |
import subprocess
from django.shortcuts import render
from cowsay_app.form import AddMessageForm
from cowsay_app.models import Message
# Create your views here.
| [
11748,
850,
14681,
198,
198,
6738,
42625,
14208,
13,
19509,
23779,
1330,
8543,
628,
198,
6738,
22575,
323,
62,
1324,
13,
687,
1330,
3060,
12837,
8479,
198,
6738,
22575,
323,
62,
1324,
13,
27530,
1330,
16000,
198,
198,
2,
13610,
534,
5009,
994,
13,
628,
198
] | 3.630435 | 46 |
import argparse
import os
from deba.commands.decorators import subcommand
from deba.config import Config
@subcommand(exec=exec)
| [
11748,
1822,
29572,
198,
11748,
28686,
198,
198,
6738,
1915,
64,
13,
9503,
1746,
13,
12501,
273,
2024,
1330,
850,
21812,
198,
6738,
1915,
64,
13,
11250,
1330,
17056,
628,
198,
198,
31,
7266,
21812,
7,
18558,
28,
18558,
8,
198
] | 3.219512 | 41 |
from django.contrib import admin
from .models import Translation, Language, Word, Language, Payment
admin.site.register(Translation)
admin.site.register(Language)
admin.site.register(Word)
admin.site.register(Payment) | [
6738,
42625,
14208,
13,
3642,
822,
1330,
13169,
198,
6738,
764,
27530,
1330,
33322,
11,
15417,
11,
9678,
11,
15417,
11,
28784,
198,
198,
28482,
13,
15654,
13,
30238,
7,
48313,
8,
198,
28482,
13,
15654,
13,
30238,
7,
32065,
8,
198,
28482,
13,
15654,
13,
30238,
7,
26449,
8,
198,
28482,
13,
15654,
13,
30238,
7,
19197,
434,
8
] | 3.633333 | 60 |
import os
import glob
import numpy as np
import six
import pickle as cPickle
import tensorflow as tf
from imageio import imread
import scipy.io as sio
| [
11748,
28686,
220,
198,
11748,
15095,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
2237,
198,
11748,
2298,
293,
355,
269,
31686,
293,
198,
11748,
11192,
273,
11125,
355,
48700,
198,
198,
6738,
2939,
952,
1330,
545,
961,
198,
198,
11748,
629,
541,
88,
13,
952,
355,
264,
952,
628,
628,
220,
220,
220,
220,
198
] | 2.892857 | 56 |
message = """\n\nThere are 4 types of numbers in python-2 & 3 types of numbers in python-3
Now we will see python-2 numbers which are of 4 types,
namely: int, long, float & complex.
ints & longs are whole numbers and floats are real numbers.
where complex has combination of real & imaginary numbers.
"""
print message
a = 10
print "\nPrint function comes with built-in '\\n' character"
print a
print "print function does not need parenthesis () in python 2\n\nYou can also use type(var) to know the type of variable"
print type(a)
b = 43.12
print b
print type(b)
print "\nYou can also use sys to know max value of types, But first you need to import sys\n"
import sys
print "int: "
print -sys.maxint - 1
print sys.maxint
print "\nfloat: "
print -sys.float_info.max -1
print sys.float_info.max
print "\nlong type (maxint + 1): \n"
print sys.maxint + 1
print type(sys.maxint + 1)
print "\nYou don't have to worry about upper-lower bounds of a type,\nBecause python will automatically convert it for you"
another_comment = """\nComplex numbers are usually represented as z = 46 + 5i
But python uses letter 'j' instead as z = 46 + 5j
"""
print another_comment
z = 46 + 5j
print z
print type(z)
print "\nprint real part only via z.real"
print z.real
print "\nprint imaginary part only via z.imag"
print z.imag
| [
20500,
796,
37227,
59,
77,
59,
77,
1858,
389,
604,
3858,
286,
3146,
287,
220,
21015,
12,
17,
1222,
513,
3858,
286,
3146,
287,
21015,
12,
18,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2735,
356,
481,
766,
21015,
12,
17,
3146,
543,
389,
286,
604,
3858,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14811,
25,
493,
11,
890,
11,
12178,
1222,
3716,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
493,
82,
1222,
890,
82,
389,
2187,
3146,
290,
36016,
389,
1103,
3146,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
810,
3716,
468,
6087,
286,
1103,
1222,
26726,
3146,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
4798,
3275,
198,
198,
64,
796,
838,
198,
198,
4798,
37082,
77,
18557,
2163,
2058,
351,
3170,
12,
259,
705,
6852,
77,
6,
2095,
1,
198,
198,
4798,
257,
198,
198,
4798,
366,
4798,
2163,
857,
407,
761,
2560,
8497,
7499,
287,
21015,
362,
59,
77,
59,
77,
1639,
460,
635,
779,
2099,
7,
7785,
8,
284,
760,
262,
2099,
286,
7885,
1,
198,
198,
4798,
2099,
7,
64,
8,
198,
198,
65,
796,
5946,
13,
1065,
198,
4798,
275,
198,
4798,
2099,
7,
65,
8,
198,
198,
4798,
37082,
77,
1639,
460,
635,
779,
25064,
284,
760,
3509,
1988,
286,
3858,
11,
887,
717,
345,
761,
284,
1330,
25064,
59,
77,
1,
198,
198,
11748,
25064,
198,
198,
4798,
366,
600,
25,
366,
220,
198,
4798,
532,
17597,
13,
9806,
600,
532,
352,
198,
4798,
25064,
13,
9806,
600,
198,
4798,
37082,
77,
22468,
25,
366,
220,
220,
198,
4798,
532,
17597,
13,
22468,
62,
10951,
13,
9806,
532,
16,
198,
4798,
25064,
13,
22468,
62,
10951,
13,
9806,
198,
4798,
37082,
77,
6511,
2099,
357,
9806,
600,
1343,
352,
2599,
3467,
77,
1,
220,
198,
4798,
25064,
13,
9806,
600,
1343,
352,
220,
198,
4798,
2099,
7,
17597,
13,
9806,
600,
1343,
352,
8,
198,
198,
4798,
37082,
77,
1639,
836,
470,
423,
284,
5490,
546,
6727,
12,
21037,
22303,
286,
257,
2099,
11,
59,
77,
8128,
21015,
481,
6338,
10385,
340,
329,
345,
1,
198,
198,
29214,
62,
23893,
796,
37227,
59,
77,
5377,
11141,
3146,
389,
3221,
7997,
355,
1976,
796,
6337,
1343,
642,
72,
220,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
887,
21015,
3544,
3850,
705,
73,
6,
2427,
355,
1976,
796,
6337,
1343,
642,
73,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
4798,
1194,
62,
23893,
220,
198,
198,
89,
796,
6337,
1343,
642,
73,
198,
4798,
1976,
198,
4798,
2099,
7,
89,
8,
198,
4798,
37082,
77,
4798,
1103,
636,
691,
2884,
1976,
13,
5305,
1,
198,
4798,
1976,
13,
5305,
220,
220,
220,
198,
4798,
37082,
77,
4798,
26726,
636,
691,
2884,
1976,
13,
48466,
1,
198,
4798,
1976,
13,
48466,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198
] | 2.500821 | 609 |
"""An opeScope Fix object"""
import json
from .utilities.converters import fromPointXY, toPointXY
class FixModel:
"""An opeScope Fix object"""
location = None
name = None
@staticmethod
def export(layer):
"""Export the specified QgsMapLayer features to JSON"""
lines = []
# Sort fixes in order of name, but place underscores at the top
for f in sorted(layer.getFeatures(), key=lambda x: x['name'].replace('_', ' ')):
name = f['name']
spaces = ' ' * max(0, 5 - len(name))
lines.append(' %(name)s%(spaces)s: %(coords)s' % {
'name': json.dumps(name),
'spaces': spaces,
'coords': json.dumps(fromPointXY(f.geometry().asPoint()))
})
template = """{
%s
}"""
return template % ',\n'.join(lines)
| [
37811,
2025,
267,
431,
43642,
13268,
2134,
37811,
198,
11748,
33918,
198,
6738,
764,
315,
2410,
13,
1102,
332,
1010,
1330,
422,
12727,
34278,
11,
284,
12727,
34278,
198,
198,
4871,
13268,
17633,
25,
198,
220,
220,
220,
37227,
2025,
267,
431,
43642,
13268,
2134,
37811,
628,
220,
220,
220,
4067,
796,
6045,
628,
220,
220,
220,
1438,
796,
6045,
628,
220,
220,
220,
2488,
12708,
24396,
198,
220,
220,
220,
825,
10784,
7,
29289,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
43834,
262,
7368,
1195,
14542,
13912,
49925,
3033,
284,
19449,
37811,
628,
220,
220,
220,
220,
220,
220,
220,
3951,
796,
17635,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
33947,
13040,
287,
1502,
286,
1438,
11,
475,
1295,
41731,
379,
262,
1353,
198,
220,
220,
220,
220,
220,
220,
220,
329,
277,
287,
23243,
7,
29289,
13,
1136,
23595,
22784,
1994,
28,
50033,
2124,
25,
2124,
17816,
3672,
6,
4083,
33491,
10786,
62,
3256,
705,
705,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
277,
17816,
3672,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9029,
796,
705,
705,
1635,
3509,
7,
15,
11,
642,
532,
18896,
7,
3672,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3951,
13,
33295,
10786,
220,
220,
220,
4064,
7,
3672,
8,
82,
4,
7,
2777,
2114,
8,
82,
25,
4064,
7,
1073,
3669,
8,
82,
6,
4064,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
33918,
13,
67,
8142,
7,
3672,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
2777,
2114,
10354,
9029,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1073,
3669,
10354,
33918,
13,
67,
8142,
7,
6738,
12727,
34278,
7,
69,
13,
469,
15748,
22446,
292,
12727,
3419,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32092,
628,
220,
220,
220,
220,
220,
220,
220,
11055,
796,
37227,
90,
198,
4,
82,
198,
92,
37811,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
11055,
4064,
46083,
59,
77,
4458,
22179,
7,
6615,
8,
198
] | 2.224806 | 387 |
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis <[email protected]>
# (c) 1998-2022 all rights reserved
# custom properties
from .properties import selectors
# export the local wrappers over the flow protocols
from .Producer import Producer as producer
from .Specification import Specification as specification
# datasets and their readers
from .Datatype import Datatype as datatype
from .Dataset import Dataset as dataset
from .Reader import Reader as reader
# visualization workflows
from .Channel import Channel as channel
# and their controllers
from .Controller import Controller as controller
# end of file
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
198,
2,
285,
40302,
257,
13,
70,
13,
257,
26884,
85,
6557,
89,
271,
1279,
76,
40302,
13,
64,
452,
1031,
271,
31,
1845,
64,
12,
14323,
13,
785,
29,
198,
2,
357,
66,
8,
7795,
12,
1238,
1828,
477,
2489,
10395,
628,
198,
2,
2183,
6608,
198,
6738,
764,
48310,
1330,
2922,
669,
628,
198,
2,
10784,
262,
1957,
7917,
11799,
625,
262,
5202,
19565,
198,
6738,
764,
11547,
2189,
1330,
30436,
355,
9920,
198,
6738,
764,
22882,
2649,
1330,
18291,
2649,
355,
20855,
198,
198,
2,
40522,
290,
511,
7183,
198,
6738,
764,
27354,
265,
2981,
1330,
16092,
265,
2981,
355,
4818,
265,
2981,
198,
6738,
764,
27354,
292,
316,
1330,
16092,
292,
316,
355,
27039,
198,
6738,
764,
33634,
1330,
25342,
355,
9173,
198,
198,
2,
32704,
670,
44041,
198,
6738,
764,
29239,
1330,
11102,
355,
6518,
198,
2,
290,
511,
20624,
198,
6738,
764,
22130,
1330,
22741,
355,
10444,
628,
198,
2,
886,
286,
2393,
198
] | 3.617143 | 175 |
import sys
import os
import json
import argparse
import re
from urlparse import urlparse, parse_qs
from datetime import datetime
from elasticsearch import Elasticsearch, ElasticsearchException
from elasticsearch_dsl import Search
from spotify_wrapper import SpotifyWrapper
TRACK_REGEX = 'track.'
SONG_ID_LENGTH = 22
# TODO:The elasticsearch functions here could be abstracted out into a new file
def get_all_elastic_links(index, service_name="Spotify"):
"""
Query Elasticsearch and get a list of all links for a service
"""
# TODO: Create an Elasticsearch wrapper and add this there
client = Elasticsearch(index=index)
search = Search(using=client, index=index)\
.source(include=["attachments.from_url"])\
.query("match", attachments__service_name=service_name)
return search
def __es_has_link(elastic_result):
"""
Check if a result from Elastic search has link attachments
"""
return len(elastic_result.attachments) is not 0
def __is_a_track(link):
"""
Determines if it's a track based on whether it has 'track' in the link
"""
return 'track' in link
def _get_track_id(link):
"""
The common pattern for tracks urls is track(/|:)[base64 hash]
This crudely gets the base64 hash
"""
pattern = re.compile(TRACK_REGEX)
track_id = pattern.split(link)[1]
return track_id[0:SONG_ID_LENGTH]
def create_playlist(username, secrets_file, playlist):
"""
Creates playlist for the specified user
Returns the created playlists URI
"""
spotify = SpotifyWrapper(username, secrets_file)
playlist = spotify.create_playlist(playlist)
return playlist['uri']
def get_track_ids(index):
"""
Queries Elasticsearch to get all links that were from the Spotify service,
then filters out albums/playlists and then returns the unique hash for the
remaining songs.
"""
es_results = filter(__es_has_link, [r for r in get_all_elastic_links(index).scan()])
links = map(lambda x: x.attachments[0].from_url, es_results)
tracks = filter(__is_a_track, links)
return map(_get_track_id, tracks)
def add_tracks_to_playlist(username, secrets_file, track_ids, playlist_uri):
"""
Adds a list of track ids to a spotify playlist
"""
spotify = SpotifyWrapper(username, secrets_file)
spotify.add_songs_to_playlist(track_ids, playlist_uri)
if __name__ == "__main__":
main()
| [
11748,
25064,
198,
11748,
28686,
198,
11748,
33918,
198,
11748,
1822,
29572,
198,
11748,
302,
198,
6738,
19016,
29572,
1330,
19016,
29572,
11,
21136,
62,
48382,
198,
6738,
4818,
8079,
1330,
4818,
8079,
198,
198,
6738,
27468,
12947,
1330,
48567,
12947,
11,
48567,
12947,
16922,
198,
6738,
27468,
12947,
62,
67,
6649,
1330,
11140,
198,
198,
6738,
4136,
1958,
62,
48553,
1330,
26778,
36918,
2848,
198,
198,
5446,
8120,
62,
31553,
6369,
796,
705,
11659,
2637,
198,
11782,
38,
62,
2389,
62,
43,
49494,
796,
2534,
198,
2,
16926,
46,
25,
464,
27468,
12947,
5499,
994,
714,
307,
12531,
276,
503,
656,
257,
649,
2393,
628,
198,
4299,
651,
62,
439,
62,
417,
3477,
62,
28751,
7,
9630,
11,
2139,
62,
3672,
2625,
32565,
1958,
1,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
43301,
48567,
12947,
290,
651,
257,
1351,
286,
477,
6117,
329,
257,
2139,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1303,
16926,
46,
25,
13610,
281,
48567,
12947,
29908,
290,
751,
428,
612,
198,
220,
220,
220,
5456,
796,
48567,
12947,
7,
9630,
28,
9630,
8,
198,
220,
220,
220,
2989,
796,
11140,
7,
3500,
28,
16366,
11,
6376,
28,
9630,
19415,
198,
220,
220,
220,
220,
220,
220,
220,
764,
10459,
7,
17256,
28,
14692,
47348,
902,
13,
6738,
62,
6371,
8973,
19415,
198,
220,
220,
220,
220,
220,
220,
220,
764,
22766,
7203,
15699,
1600,
32161,
834,
15271,
62,
3672,
28,
15271,
62,
3672,
8,
198,
220,
220,
220,
1441,
2989,
628,
198,
4299,
11593,
274,
62,
10134,
62,
8726,
7,
417,
3477,
62,
20274,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
6822,
611,
257,
1255,
422,
48567,
2989,
468,
2792,
32161,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1441,
18896,
7,
417,
3477,
62,
20274,
13,
47348,
902,
8,
318,
407,
657,
628,
198,
4299,
11593,
271,
62,
64,
62,
11659,
7,
8726,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
360,
13221,
274,
611,
340,
338,
257,
2610,
1912,
319,
1771,
340,
468,
705,
11659,
6,
287,
262,
2792,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1441,
705,
11659,
6,
287,
2792,
628,
198,
4299,
4808,
1136,
62,
11659,
62,
312,
7,
8726,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
383,
2219,
3912,
329,
8339,
2956,
7278,
318,
2610,
7,
14,
91,
25,
38381,
8692,
2414,
12234,
60,
198,
220,
220,
220,
770,
14897,
306,
3011,
262,
2779,
2414,
12234,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3912,
796,
302,
13,
5589,
576,
7,
5446,
8120,
62,
31553,
6369,
8,
198,
220,
220,
220,
2610,
62,
312,
796,
3912,
13,
35312,
7,
8726,
38381,
16,
60,
198,
220,
220,
220,
1441,
2610,
62,
312,
58,
15,
25,
11782,
38,
62,
2389,
62,
43,
49494,
60,
628,
198,
4299,
2251,
62,
1759,
4868,
7,
29460,
11,
13141,
62,
7753,
11,
33178,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
7921,
274,
33178,
329,
262,
7368,
2836,
198,
220,
220,
220,
16409,
262,
2727,
711,
20713,
43975,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
4136,
1958,
796,
26778,
36918,
2848,
7,
29460,
11,
13141,
62,
7753,
8,
198,
220,
220,
220,
33178,
796,
4136,
1958,
13,
17953,
62,
1759,
4868,
7,
1759,
4868,
8,
198,
220,
220,
220,
1441,
33178,
17816,
9900,
20520,
628,
198,
4299,
651,
62,
11659,
62,
2340,
7,
9630,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2264,
10640,
48567,
12947,
284,
651,
477,
6117,
326,
547,
422,
262,
26778,
2139,
11,
198,
220,
220,
220,
788,
16628,
503,
16788,
14,
1759,
20713,
290,
788,
5860,
262,
3748,
12234,
329,
262,
198,
220,
220,
220,
5637,
7259,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1658,
62,
43420,
796,
8106,
7,
834,
274,
62,
10134,
62,
8726,
11,
685,
81,
329,
374,
287,
651,
62,
439,
62,
417,
3477,
62,
28751,
7,
9630,
737,
35836,
3419,
12962,
198,
220,
220,
220,
6117,
796,
3975,
7,
50033,
2124,
25,
2124,
13,
47348,
902,
58,
15,
4083,
6738,
62,
6371,
11,
1658,
62,
43420,
8,
198,
220,
220,
220,
8339,
796,
8106,
7,
834,
271,
62,
64,
62,
11659,
11,
6117,
8,
198,
220,
220,
220,
1441,
3975,
28264,
1136,
62,
11659,
62,
312,
11,
8339,
8,
628,
198,
4299,
751,
62,
46074,
62,
1462,
62,
1759,
4868,
7,
29460,
11,
13141,
62,
7753,
11,
2610,
62,
2340,
11,
33178,
62,
9900,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
34333,
257,
1351,
286,
2610,
220,
2340,
284,
257,
4136,
1958,
33178,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
4136,
1958,
796,
26778,
36918,
2848,
7,
29460,
11,
13141,
62,
7753,
8,
198,
220,
220,
220,
4136,
1958,
13,
2860,
62,
82,
28079,
62,
1462,
62,
1759,
4868,
7,
11659,
62,
2340,
11,
33178,
62,
9900,
8,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1388,
3419,
198
] | 2.920863 | 834 |
# python: 3.6
# encoding: utf-8
import torch
import torch.nn as nn
# import torch.nn.functional as F
import fastNLP.modules.encoder as encoder
class CNNText(torch.nn.Module):
"""
Text classification model by character CNN, the implementation of paper
'Yoon Kim. 2014. Convolution Neural Networks for Sentence
Classification.'
"""
def forward(self, word_seq):
"""
:param word_seq: torch.LongTensor, [batch_size, seq_len]
:return output: dict of torch.LongTensor, [batch_size, num_classes]
"""
x = self.embed(word_seq) # [N,L] -> [N,L,C]
x = self.conv_pool(x) # [N,L,C] -> [N,C]
x = self.dropout(x)
x = self.fc(x) # [N,C] -> [N, N_class]
return {'pred': x}
def predict(self, word_seq):
"""
:param word_seq: torch.LongTensor, [batch_size, seq_len]
:return predict: dict of torch.LongTensor, [batch_size, seq_len]
"""
output = self(word_seq)
_, predict = output['pred'].max(dim=1)
return {'pred': predict}
| [
2,
21015,
25,
513,
13,
21,
198,
2,
21004,
25,
3384,
69,
12,
23,
198,
198,
11748,
28034,
198,
11748,
28034,
13,
20471,
355,
299,
77,
198,
198,
2,
1330,
28034,
13,
20471,
13,
45124,
355,
376,
198,
11748,
3049,
45,
19930,
13,
18170,
13,
12685,
12342,
355,
2207,
12342,
628,
198,
4871,
8100,
8206,
7,
13165,
354,
13,
20471,
13,
26796,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
8255,
17923,
2746,
416,
2095,
8100,
11,
262,
7822,
286,
3348,
198,
220,
220,
220,
705,
56,
2049,
6502,
13,
1946,
13,
34872,
2122,
47986,
27862,
329,
11352,
594,
198,
220,
220,
220,
40984,
2637,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
2651,
7,
944,
11,
1573,
62,
41068,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1573,
62,
41068,
25,
28034,
13,
14617,
51,
22854,
11,
685,
43501,
62,
7857,
11,
33756,
62,
11925,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
5072,
25,
8633,
286,
28034,
13,
14617,
51,
22854,
11,
685,
43501,
62,
7857,
11,
997,
62,
37724,
60,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
2116,
13,
20521,
7,
4775,
62,
41068,
8,
220,
1303,
685,
45,
11,
43,
60,
4613,
685,
45,
11,
43,
11,
34,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
2116,
13,
42946,
62,
7742,
7,
87,
8,
220,
1303,
685,
45,
11,
43,
11,
34,
60,
4613,
685,
45,
11,
34,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
2116,
13,
14781,
448,
7,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
2116,
13,
16072,
7,
87,
8,
220,
1303,
685,
45,
11,
34,
60,
4613,
685,
45,
11,
399,
62,
4871,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
6,
28764,
10354,
2124,
92,
628,
220,
220,
220,
825,
4331,
7,
944,
11,
1573,
62,
41068,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1573,
62,
41068,
25,
28034,
13,
14617,
51,
22854,
11,
685,
43501,
62,
7857,
11,
33756,
62,
11925,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
4331,
25,
8633,
286,
28034,
13,
14617,
51,
22854,
11,
685,
43501,
62,
7857,
11,
33756,
62,
11925,
60,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
796,
2116,
7,
4775,
62,
41068,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
11,
4331,
796,
5072,
17816,
28764,
6,
4083,
9806,
7,
27740,
28,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
6,
28764,
10354,
4331,
92,
198
] | 2.255274 | 474 |
from typing import Tuple
class MiscData:
"""
This class should be used to contains miscellaneous data for the drone
"""
| [
6738,
19720,
1330,
309,
29291,
628,
198,
4871,
29882,
6601,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
770,
1398,
815,
307,
973,
284,
4909,
2984,
25673,
1366,
329,
262,
12170,
198,
220,
220,
220,
37227,
198
] | 3.435897 | 39 |
"""
PUORPOSE:
to check that the brute-force machine with all its components is actually
working - i.e. when the algorithms used for padding, key derivation and
encryption are known CORRECTLY
"""
from raw import img
from breaker import breaker, init
import os
import base64
import tempfile
| [
37811,
198,
197,
5105,
1581,
48933,
25,
198,
197,
1462,
2198,
326,
262,
33908,
12,
3174,
4572,
351,
477,
663,
6805,
318,
1682,
198,
197,
16090,
532,
1312,
13,
68,
13,
618,
262,
16113,
973,
329,
24511,
11,
1994,
16124,
341,
290,
198,
197,
12685,
13168,
389,
1900,
23929,
23988,
11319,
198,
37811,
198,
198,
6738,
8246,
1330,
33705,
198,
6738,
46408,
1330,
46408,
11,
2315,
198,
198,
11748,
28686,
198,
11748,
2779,
2414,
198,
11748,
20218,
7753,
198
] | 3.734177 | 79 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Functions to draw various pygimli matrices with matplotlib."""
import numpy as np
import matplotlib.pyplot as plt
import pygimli as pg
def drawSparseMatrix(ax, mat, **kwargs):
"""Draw a view of a matrix into the axes.
Parameters
----------
ax : mpl axis instance, optional
Axis instance where the matrix will be plotted.
mat: pg.matrix.SparseMatrix or pg.matrix.SparseMapMatrix
Returns
-------
mpl.lines.line2d
Examples
--------
>>> import numpy as np
>>> import pygimli as pg
>>> from pygimli.viewer.mpl import drawSparseMatrix
>>> A = pg.randn((10,10), seed=0)
>>> SM = pg.core.SparseMapMatrix()
>>> for i in range(10):
... SM.setVal(i, i, 5.0)
>>> fig, (ax1, ax2) = pg.plt.subplots(1, 2, sharey=True, sharex=True)
>>> _ = drawSparseMatrix(ax1, A, colOffset=5, rowOffset=5, color='blue')
>>> _ = drawSparseMatrix(ax2, SM, color='green')
"""
row = kwargs.pop('rowOffset', 0)
col = kwargs.pop('colOffset', 0)
color = kwargs.pop('color', None)
mat = pg.utils.sparseMatrix2coo(mat)
mat.row += row
mat.col += col
gci = ax.spy(mat, color=color)
ax.autoscale(enable=True, axis='both', tight=True)
return gci
def drawBlockMatrix(ax, mat, **kwargs):
"""Draw a view of a matrix into the axes.
Arguments
---------
ax : mpl axis instance, optional
Axis instance where the matrix will be plotted.
mat: pg.Matrix.BlockMatrix
Keyword Arguments
-----------------
spy: bool [False]
Draw all matrix entries instead of colored blocks
Returns
-------
ax:
Examples
--------
>>> import numpy as np
>>> import pygimli as pg
>>> I = pg.matrix.IdentityMatrix(10)
>>> SM = pg.matrix.SparseMapMatrix()
>>> for i in range(10):
... SM.setVal(i, 10 - i, 5.0)
... SM.setVal(i, i, 5.0)
>>> B = pg.matrix.BlockMatrix()
>>> B.add(I, 0, 0)
0
>>> B.add(SM, 10, 10)
1
>>> print(B)
pg.matrix.BlockMatrix of size 20 x 21 consisting of 2 submatrices.
>>> fig, (ax1, ax2) = pg.plt.subplots(1, 2, sharey=True)
>>> _ = pg.show(B, ax=ax1)
>>> _ = pg.show(B, spy=True, ax=ax2)
"""
if kwargs.pop('spy', False):
gci = []
ids = pg.unique([e.matrixID for e in mat.entries()])
cMap = pg.plt.cm.get_cmap("Set3", len(ids))
for e in mat.entries():
mid = e.matrixID
mati = mat.mat(mid)
if isinstance(mati, pg.core.IdentityMatrix):
mati = np.eye(mati.size())
gci.append(drawSparseMatrix(ax, mati,
rowOffset=e.rowStart,
colOffset=e.colStart,
color=cMap(mid)))
return gci, None
else:
plcs = []
for e in mat.entries():
mid = e.matrixID
widthy = mat.mat(mid).rows() - 0.1 # to make sure non-matrix regions are not connected in the plot
widthx = mat.mat(mid).cols() - 0.1
plc = pg.meshtools.createRectangle([e.colStart, e.rowStart],
[e.colStart + widthx, e.rowStart + widthy],
marker=mid)
plcs.append(plc)
bm = pg.meshtools.mergePLC(plcs)
gci, cBar = pg.viewer.mpl.drawPLC(ax, bm, fitView=False)
ax.invert_yaxis()
ax.xaxis.tick_top()
cBar.set_label("Matrix ID")
if len(mat.entries()) > 10:
gci.set_cmap("viridis")
return gci, cBar
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
24629,
2733,
284,
3197,
2972,
12972,
70,
320,
4528,
2603,
45977,
351,
2603,
29487,
8019,
526,
15931,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
198,
11748,
12972,
70,
320,
4528,
355,
23241,
628,
198,
4299,
3197,
50,
29572,
46912,
7,
897,
11,
2603,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
37227,
25302,
257,
1570,
286,
257,
17593,
656,
262,
34197,
13,
628,
220,
220,
220,
40117,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
7877,
1058,
285,
489,
16488,
4554,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
38349,
4554,
810,
262,
17593,
481,
307,
37515,
13,
628,
220,
220,
220,
2603,
25,
23241,
13,
6759,
8609,
13,
50,
29572,
46912,
393,
23241,
13,
6759,
8609,
13,
50,
29572,
13912,
46912,
628,
220,
220,
220,
16409,
198,
220,
220,
220,
35656,
198,
220,
220,
220,
285,
489,
13,
6615,
13,
1370,
17,
67,
628,
220,
220,
220,
21066,
198,
220,
220,
220,
24200,
198,
220,
220,
220,
13163,
1330,
299,
32152,
355,
45941,
198,
220,
220,
220,
13163,
1330,
12972,
70,
320,
4528,
355,
23241,
198,
220,
220,
220,
13163,
422,
12972,
70,
320,
4528,
13,
1177,
263,
13,
76,
489,
1330,
3197,
50,
29572,
46912,
198,
220,
220,
220,
13163,
317,
796,
23241,
13,
25192,
77,
19510,
940,
11,
940,
828,
9403,
28,
15,
8,
198,
220,
220,
220,
13163,
9447,
796,
23241,
13,
7295,
13,
50,
29572,
13912,
46912,
3419,
198,
220,
220,
220,
13163,
329,
1312,
287,
2837,
7,
940,
2599,
198,
220,
220,
220,
2644,
220,
220,
220,
220,
9447,
13,
2617,
7762,
7,
72,
11,
1312,
11,
642,
13,
15,
8,
198,
220,
220,
220,
13163,
2336,
11,
357,
897,
16,
11,
7877,
17,
8,
796,
23241,
13,
489,
83,
13,
7266,
489,
1747,
7,
16,
11,
362,
11,
2648,
88,
28,
17821,
11,
2648,
87,
28,
17821,
8,
198,
220,
220,
220,
13163,
4808,
796,
3197,
50,
29572,
46912,
7,
897,
16,
11,
317,
11,
951,
34519,
28,
20,
11,
5752,
34519,
28,
20,
11,
3124,
11639,
17585,
11537,
198,
220,
220,
220,
13163,
4808,
796,
3197,
50,
29572,
46912,
7,
897,
17,
11,
9447,
11,
3124,
11639,
14809,
11537,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
5752,
796,
479,
86,
22046,
13,
12924,
10786,
808,
34519,
3256,
657,
8,
198,
220,
220,
220,
951,
796,
479,
86,
22046,
13,
12924,
10786,
4033,
34519,
3256,
657,
8,
198,
220,
220,
220,
3124,
796,
479,
86,
22046,
13,
12924,
10786,
8043,
3256,
6045,
8,
628,
220,
220,
220,
2603,
796,
23241,
13,
26791,
13,
82,
29572,
46912,
17,
1073,
78,
7,
6759,
8,
198,
220,
220,
220,
2603,
13,
808,
15853,
5752,
198,
220,
220,
220,
2603,
13,
4033,
15853,
951,
198,
220,
220,
220,
308,
979,
796,
7877,
13,
2777,
88,
7,
6759,
11,
3124,
28,
8043,
8,
628,
220,
220,
220,
7877,
13,
2306,
17500,
1000,
7,
21633,
28,
17821,
11,
16488,
11639,
16885,
3256,
5381,
28,
17821,
8,
198,
220,
220,
220,
1441,
308,
979,
198,
198,
4299,
3197,
12235,
46912,
7,
897,
11,
2603,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
37227,
25302,
257,
1570,
286,
257,
17593,
656,
262,
34197,
13,
628,
220,
220,
220,
20559,
2886,
198,
220,
220,
220,
45337,
628,
220,
220,
220,
7877,
1058,
285,
489,
16488,
4554,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
38349,
4554,
810,
262,
17593,
481,
307,
37515,
13,
628,
220,
220,
220,
2603,
25,
23241,
13,
46912,
13,
12235,
46912,
628,
220,
220,
220,
7383,
4775,
20559,
2886,
198,
220,
220,
220,
34400,
12,
198,
220,
220,
220,
13997,
25,
20512,
685,
25101,
60,
198,
220,
220,
220,
220,
220,
220,
220,
15315,
477,
17593,
12784,
2427,
286,
16396,
7021,
628,
220,
220,
220,
16409,
198,
220,
220,
220,
35656,
198,
220,
220,
220,
7877,
25,
628,
220,
220,
220,
21066,
198,
220,
220,
220,
24200,
198,
220,
220,
220,
13163,
1330,
299,
32152,
355,
45941,
198,
220,
220,
220,
13163,
1330,
12972,
70,
320,
4528,
355,
23241,
198,
220,
220,
220,
13163,
314,
796,
23241,
13,
6759,
8609,
13,
7390,
26858,
46912,
7,
940,
8,
198,
220,
220,
220,
13163,
9447,
796,
23241,
13,
6759,
8609,
13,
50,
29572,
13912,
46912,
3419,
198,
220,
220,
220,
13163,
329,
1312,
287,
2837,
7,
940,
2599,
198,
220,
220,
220,
2644,
220,
220,
220,
220,
9447,
13,
2617,
7762,
7,
72,
11,
838,
532,
1312,
11,
642,
13,
15,
8,
198,
220,
220,
220,
2644,
220,
220,
220,
220,
9447,
13,
2617,
7762,
7,
72,
11,
220,
1312,
11,
642,
13,
15,
8,
198,
220,
220,
220,
13163,
347,
796,
23241,
13,
6759,
8609,
13,
12235,
46912,
3419,
198,
220,
220,
220,
13163,
347,
13,
2860,
7,
40,
11,
657,
11,
657,
8,
198,
220,
220,
220,
657,
198,
220,
220,
220,
13163,
347,
13,
2860,
7,
12310,
11,
838,
11,
838,
8,
198,
220,
220,
220,
352,
198,
220,
220,
220,
13163,
3601,
7,
33,
8,
198,
220,
220,
220,
23241,
13,
6759,
8609,
13,
12235,
46912,
286,
2546,
1160,
2124,
2310,
17747,
286,
362,
850,
6759,
45977,
13,
198,
220,
220,
220,
13163,
2336,
11,
357,
897,
16,
11,
7877,
17,
8,
796,
23241,
13,
489,
83,
13,
7266,
489,
1747,
7,
16,
11,
362,
11,
2648,
88,
28,
17821,
8,
198,
220,
220,
220,
13163,
4808,
796,
23241,
13,
12860,
7,
33,
11,
7877,
28,
897,
16,
8,
198,
220,
220,
220,
13163,
4808,
796,
23241,
13,
12860,
7,
33,
11,
13997,
28,
17821,
11,
7877,
28,
897,
17,
8,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
479,
86,
22046,
13,
12924,
10786,
2777,
88,
3256,
10352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
308,
979,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2340,
796,
23241,
13,
34642,
26933,
68,
13,
6759,
8609,
2389,
329,
304,
287,
2603,
13,
298,
1678,
3419,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
269,
13912,
796,
23241,
13,
489,
83,
13,
11215,
13,
1136,
62,
66,
8899,
7203,
7248,
18,
1600,
18896,
7,
2340,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
329,
304,
287,
2603,
13,
298,
1678,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3095,
796,
304,
13,
6759,
8609,
2389,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2603,
72,
796,
2603,
13,
6759,
7,
13602,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
6759,
72,
11,
23241,
13,
7295,
13,
7390,
26858,
46912,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2603,
72,
796,
45941,
13,
25379,
7,
6759,
72,
13,
7857,
28955,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
979,
13,
33295,
7,
19334,
50,
29572,
46912,
7,
897,
11,
2603,
72,
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,
5752,
34519,
28,
68,
13,
808,
10434,
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,
951,
34519,
28,
68,
13,
4033,
10434,
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,
3124,
28,
66,
13912,
7,
13602,
22305,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
308,
979,
11,
6045,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
458,
6359,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
304,
287,
2603,
13,
298,
1678,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3095,
796,
304,
13,
6759,
8609,
2389,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9647,
88,
796,
2603,
13,
6759,
7,
13602,
737,
8516,
3419,
532,
657,
13,
16,
1303,
284,
787,
1654,
1729,
12,
6759,
8609,
7652,
389,
407,
5884,
287,
262,
7110,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9647,
87,
796,
2603,
13,
6759,
7,
13602,
737,
4033,
82,
3419,
532,
657,
13,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
458,
66,
796,
23241,
13,
6880,
4352,
10141,
13,
17953,
45474,
9248,
26933,
68,
13,
4033,
10434,
11,
304,
13,
808,
10434,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
68,
13,
4033,
10434,
1343,
9647,
87,
11,
304,
13,
808,
10434,
1343,
9647,
88,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18364,
28,
13602,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
458,
6359,
13,
33295,
7,
489,
66,
8,
628,
220,
220,
220,
220,
220,
220,
220,
275,
76,
796,
23241,
13,
6880,
4352,
10141,
13,
647,
469,
47,
5639,
7,
489,
6359,
8,
198,
220,
220,
220,
220,
220,
220,
220,
308,
979,
11,
269,
10374,
796,
23241,
13,
1177,
263,
13,
76,
489,
13,
19334,
47,
5639,
7,
897,
11,
275,
76,
11,
4197,
7680,
28,
25101,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7877,
13,
259,
1851,
62,
88,
22704,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
7877,
13,
87,
22704,
13,
42298,
62,
4852,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
269,
10374,
13,
2617,
62,
18242,
7203,
46912,
4522,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
6759,
13,
298,
1678,
28955,
1875,
838,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
979,
13,
2617,
62,
66,
8899,
7203,
37040,
29207,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
308,
979,
11,
269,
10374,
198
] | 2.049499 | 1,798 |
from keras import layers, models
from .__inception import inception2D
bn_axis = -1
| [
6738,
41927,
292,
1330,
11685,
11,
4981,
198,
6738,
764,
834,
924,
1159,
1330,
30839,
17,
35,
198,
198,
9374,
62,
22704,
796,
532,
16,
628,
198
] | 3.185185 | 27 |
from .version import __version__
from . import audio
from . import multi_array_alignment
from . import transcription
from . import word_error_rate_analysis | [
6738,
764,
9641,
1330,
11593,
9641,
834,
198,
6738,
764,
1330,
6597,
198,
6738,
764,
1330,
5021,
62,
18747,
62,
282,
16747,
198,
6738,
764,
1330,
26955,
198,
6738,
764,
1330,
1573,
62,
18224,
62,
4873,
62,
20930
] | 4.078947 | 38 |
import subprocess
import time
import os
| [
11748,
850,
14681,
198,
11748,
640,
198,
11748,
28686,
198
] | 4 | 10 |
from random import choice
from shapeworld import util
from shapeworld.captions import Relation
from shapeworld.captioners import WorldCaptioner
# incorrect modes
# 0: correct
# 1: incorrect reference
# 2: incorrect comparison
# 3: incorrect relation
# 4: inverse relation
| [
6738,
4738,
1330,
3572,
198,
6738,
427,
499,
38136,
1330,
7736,
198,
6738,
427,
499,
38136,
13,
27144,
507,
1330,
4718,
341,
198,
6738,
427,
499,
38136,
13,
6888,
1159,
364,
1330,
2159,
24334,
1159,
263,
628,
198,
220,
220,
220,
1303,
11491,
12881,
198,
220,
220,
220,
1303,
657,
25,
3376,
198,
220,
220,
220,
1303,
352,
25,
11491,
4941,
198,
220,
220,
220,
1303,
362,
25,
11491,
7208,
198,
220,
220,
220,
1303,
513,
25,
11491,
8695,
198,
220,
220,
220,
1303,
604,
25,
34062,
8695,
198
] | 3.348315 | 89 |
# -*- coding: utf-8 -*-
from setup_teardown import clear, stop_db
from nose.tools import *
from pykt import KyotoTycoon, KTException, Cursor
import time
d = dict(A="B", C="D", E="F", G="H")
d2 = {
"あいうえお": "ABC",
"かきくけこ": "てすと2",
"さしすせそ": "てすと2",
}
@nottest
@raises(IOError)
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@raises(KTException)
@with_setup(setup = clear, teardown = stop_db)
"""
@nottest
@with_setup(setup = clear, teardown = stop_db)
def test_cursor_jump_back():
db = KyotoTycoon()
db = db.open()
db.set_bulk(d)
c = db.cursor()
ret = c.jump()
k1, v1 = c.get(True)
c.jump_back()
k3, v3 = c.get(True)
ok_(k1 == k3)
ok_(v1 == v3)
"""
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@with_setup(setup = clear, teardown = stop_db)
@raises(KTException)
@with_setup(setup = clear, teardown = stop_db)
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
9058,
62,
660,
446,
593,
1330,
1598,
11,
2245,
62,
9945,
198,
6738,
9686,
13,
31391,
1330,
1635,
198,
6738,
12972,
21841,
1330,
36298,
25492,
20912,
11,
42293,
16922,
11,
327,
21471,
198,
11748,
640,
198,
198,
67,
796,
8633,
7,
32,
2625,
33,
1600,
327,
2625,
35,
1600,
412,
2625,
37,
1600,
402,
2625,
39,
4943,
198,
67,
17,
796,
1391,
198,
220,
220,
220,
366,
40948,
18566,
29557,
2515,
230,
2515,
232,
1298,
366,
24694,
1600,
198,
220,
220,
220,
366,
27370,
33778,
31917,
2515,
239,
46036,
1298,
366,
28134,
33623,
30201,
17,
1600,
198,
220,
220,
220,
366,
43357,
22180,
33623,
2515,
249,
2515,
251,
1298,
366,
28134,
33623,
30201,
17,
1600,
198,
220,
220,
220,
1782,
198,
198,
31,
77,
24879,
198,
31,
430,
2696,
7,
9399,
12331,
8,
628,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
430,
2696,
7,
42176,
16922,
8,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
37811,
198,
31,
77,
24879,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
4299,
1332,
62,
66,
21471,
62,
43327,
62,
1891,
33529,
198,
220,
220,
220,
20613,
796,
36298,
25492,
20912,
3419,
198,
220,
220,
220,
20613,
796,
20613,
13,
9654,
3419,
198,
220,
220,
220,
20613,
13,
2617,
62,
65,
12171,
7,
67,
8,
198,
220,
220,
220,
269,
796,
20613,
13,
66,
21471,
3419,
198,
220,
220,
220,
1005,
796,
269,
13,
43327,
3419,
198,
220,
220,
220,
479,
16,
11,
410,
16,
796,
269,
13,
1136,
7,
17821,
8,
198,
220,
220,
220,
269,
13,
43327,
62,
1891,
3419,
198,
220,
220,
220,
479,
18,
11,
410,
18,
796,
269,
13,
1136,
7,
17821,
8,
198,
220,
220,
220,
12876,
41052,
74,
16,
6624,
479,
18,
8,
198,
220,
220,
220,
12876,
41052,
85,
16,
6624,
410,
18,
8,
198,
37811,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
628,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
198,
198,
31,
430,
2696,
7,
42176,
16922,
8,
198,
31,
4480,
62,
40406,
7,
40406,
796,
1598,
11,
573,
446,
593,
796,
2245,
62,
9945,
8,
628,
198
] | 2.237261 | 628 |
# Lint as: python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from absl import app
import numpy as np
from pyiree.tf.support import tf_test_utils
from pyiree.tf.support import tf_utils
import tensorflow.compat.v2 as tf
# yapf: disable
# yapf: enable
if __name__ == '__main__':
app.run(main)
| [
2,
406,
600,
355,
25,
21015,
18,
198,
2,
15069,
13130,
3012,
11419,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
220,
220,
220,
220,
220,
3740,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
11247,
739,
262,
13789,
13,
198,
198,
6738,
2352,
75,
1330,
598,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
12972,
557,
68,
13,
27110,
13,
11284,
1330,
48700,
62,
9288,
62,
26791,
198,
6738,
12972,
557,
68,
13,
27110,
13,
11284,
1330,
48700,
62,
26791,
198,
11748,
11192,
273,
11125,
13,
5589,
265,
13,
85,
17,
355,
48700,
628,
628,
220,
1303,
331,
499,
69,
25,
15560,
198,
220,
1303,
331,
499,
69,
25,
7139,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
598,
13,
5143,
7,
12417,
8,
198
] | 3.361446 | 249 |
# -*-coding:utf-8 -*-
#__Author__:"JimmyLiang"
#__Date__: 2020/4/7
from twilio.rest import Client
import re | [
2,
532,
9,
12,
66,
7656,
25,
40477,
12,
23,
532,
9,
12,
198,
2,
834,
13838,
834,
11097,
40335,
43,
15483,
1,
198,
2,
834,
10430,
834,
25,
12131,
14,
19,
14,
22,
198,
198,
6738,
665,
346,
952,
13,
2118,
1330,
20985,
198,
11748,
302
] | 2.297872 | 47 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from cpt.packager import ConanMultiPackager
if __name__ == "__main__":
builder = ConanMultiPackager(
username="reo7sp",
login_username="reo7sp",
upload="https://api.bintray.com/conan/reo7sp/tgbot-cpp",
channel="ci",
stable_branch_pattern="release/*",
upload_only_when_stable=True, # Will only upload when the branch matches "release/*"
docker_32_images=True
)
builder.add_common_builds()
builder.run()
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
269,
457,
13,
8002,
3536,
1330,
31634,
29800,
11869,
3536,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
27098,
796,
31634,
29800,
11869,
3536,
7,
198,
220,
220,
220,
220,
220,
220,
220,
20579,
2625,
260,
78,
22,
2777,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
17594,
62,
29460,
2625,
260,
78,
22,
2777,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
9516,
2625,
5450,
1378,
15042,
13,
65,
600,
2433,
13,
785,
14,
1102,
272,
14,
260,
78,
22,
2777,
14,
25297,
13645,
12,
20322,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
6518,
2625,
979,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
8245,
62,
1671,
3702,
62,
33279,
2625,
20979,
15211,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
9516,
62,
8807,
62,
12518,
62,
31284,
28,
17821,
11,
220,
1303,
2561,
691,
9516,
618,
262,
8478,
7466,
366,
20979,
15211,
1,
198,
220,
220,
220,
220,
220,
220,
220,
36253,
62,
2624,
62,
17566,
28,
17821,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
27098,
13,
2860,
62,
11321,
62,
11249,
82,
3419,
198,
220,
220,
220,
27098,
13,
5143,
3419,
198
] | 2.318584 | 226 |
import sys
from decimal import Decimal
from fractions import Fraction
from functools import partial
from typing import (Optional,
SupportsFloat)
from hypothesis import strategies
from martinez.hints import Scalar
from tests.utils import (MAX_VALUE,
MIN_VALUE,
Strategy)
MAX_DIGITS_COUNT = sys.float_info.dig
booleans = strategies.booleans()
scalars_strategies_factories = {Decimal: to_decimals,
float: to_floats,
Fraction: to_fractions,
int: to_integers}
scalars_strategies = strategies.sampled_from(
[factory() for factory in scalars_strategies_factories.values()])
floats = to_floats()
single_precision_floats = to_floats(max_digits_count=MAX_DIGITS_COUNT // 2)
single_precision_scalars_strategies = strategies.sampled_from(
[factory(max_digits_count=MAX_DIGITS_COUNT // 2)
if type_ is float or type_ is Decimal
else factory()
for type_, factory in scalars_strategies_factories.items()])
unsigned_integers = strategies.integers(0, 65535)
unsigned_integers_lists = strategies.lists(unsigned_integers)
non_negative_integers = strategies.integers(0)
non_negative_integers_lists = strategies.lists(non_negative_integers)
| [
11748,
25064,
198,
6738,
32465,
1330,
4280,
4402,
198,
6738,
49876,
1330,
376,
7861,
198,
6738,
1257,
310,
10141,
1330,
13027,
198,
6738,
19720,
1330,
357,
30719,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45267,
43879,
8,
198,
198,
6738,
14078,
1330,
10064,
198,
198,
6738,
11277,
18885,
13,
71,
29503,
1330,
34529,
283,
198,
6738,
5254,
13,
26791,
1330,
357,
22921,
62,
39488,
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,
20625,
62,
39488,
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,
20561,
8,
198,
198,
22921,
62,
35,
3528,
29722,
62,
34,
28270,
796,
25064,
13,
22468,
62,
10951,
13,
12894,
198,
198,
2127,
2305,
504,
796,
10064,
13,
2127,
2305,
504,
3419,
628,
628,
628,
628,
198,
1416,
282,
945,
62,
2536,
2397,
444,
62,
22584,
1749,
796,
1391,
10707,
4402,
25,
284,
62,
12501,
320,
874,
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,
12178,
25,
284,
62,
48679,
1381,
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,
376,
7861,
25,
284,
62,
69,
37810,
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,
493,
25,
284,
62,
18908,
364,
92,
198,
1416,
282,
945,
62,
2536,
2397,
444,
796,
10064,
13,
37687,
10137,
62,
6738,
7,
198,
220,
220,
220,
220,
220,
220,
220,
685,
69,
9548,
3419,
329,
8860,
287,
16578,
945,
62,
2536,
2397,
444,
62,
22584,
1749,
13,
27160,
3419,
12962,
198,
48679,
1381,
796,
284,
62,
48679,
1381,
3419,
198,
29762,
62,
3866,
16005,
62,
48679,
1381,
796,
284,
62,
48679,
1381,
7,
9806,
62,
12894,
896,
62,
9127,
28,
22921,
62,
35,
3528,
29722,
62,
34,
28270,
3373,
362,
8,
198,
29762,
62,
3866,
16005,
62,
1416,
282,
945,
62,
2536,
2397,
444,
796,
10064,
13,
37687,
10137,
62,
6738,
7,
198,
220,
220,
220,
220,
220,
220,
220,
685,
69,
9548,
7,
9806,
62,
12894,
896,
62,
9127,
28,
22921,
62,
35,
3528,
29722,
62,
34,
28270,
3373,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2099,
62,
318,
12178,
393,
2099,
62,
318,
4280,
4402,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
8860,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2099,
62,
11,
8860,
287,
16578,
945,
62,
2536,
2397,
444,
62,
22584,
1749,
13,
23814,
3419,
12962,
198,
43375,
62,
18908,
364,
796,
10064,
13,
18908,
364,
7,
15,
11,
45021,
2327,
8,
198,
43375,
62,
18908,
364,
62,
20713,
796,
10064,
13,
20713,
7,
43375,
62,
18908,
364,
8,
198,
13159,
62,
31591,
62,
18908,
364,
796,
10064,
13,
18908,
364,
7,
15,
8,
198,
13159,
62,
31591,
62,
18908,
364,
62,
20713,
796,
10064,
13,
20713,
7,
13159,
62,
31591,
62,
18908,
364,
8,
198
] | 2.330435 | 575 |
#!/usr/bin/env python
# Author: Alex Tereschenko <[email protected]>
# Copyright (c) 2016 Alex Tereschenko <[email protected]>
#
# SPDX-License-Identifier: MIT
import mraa as m
import unittest as u
MRAA_TEST_PIN = 0
if __name__ == '__main__':
u.main()
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
198,
2,
6434,
25,
4422,
1665,
411,
45059,
1279,
1000,
742,
13,
28015,
3808,
31,
14816,
13,
785,
29,
198,
2,
15069,
357,
66,
8,
1584,
4422,
1665,
411,
45059,
1279,
1000,
742,
13,
28015,
3808,
31,
14816,
13,
785,
29,
198,
2,
198,
2,
30628,
55,
12,
34156,
12,
33234,
7483,
25,
17168,
198,
198,
11748,
285,
430,
64,
355,
285,
198,
11748,
555,
715,
395,
355,
334,
198,
198,
13599,
3838,
62,
51,
6465,
62,
44032,
796,
657,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
334,
13,
12417,
3419,
198
] | 2.444444 | 108 |
import pandas as pd
from tabulate import tabulate
| [
11748,
19798,
292,
355,
279,
67,
198,
6738,
7400,
5039,
1330,
7400,
5039,
628
] | 3.642857 | 14 |
# SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Copyright (c) 2021 ETH Zurich, Nikita Rudin
from time import time
import numpy as np
import os
import math
from isaacgym.torch_utils import *
from isaacgym import gymtorch, gymapi, gymutil
import torch
from typing import Tuple, Dict
from legged_gym.envs import LeggedRobot
from legged_gym import LEGGED_GYM_ROOT_DIR, envs
from legged_gym.envs.pat.pat_utils import *
from legged_gym.utils.pat_terrain import PatTerrain
| [
2,
30628,
55,
12,
8979,
15269,
8206,
25,
15069,
357,
66,
8,
33448,
15127,
23929,
44680,
6234,
1222,
317,
5777,
4146,
40,
29462,
13,
1439,
2489,
10395,
13,
198,
2,
30628,
55,
12,
34156,
12,
33234,
7483,
25,
347,
10305,
12,
18,
12,
2601,
682,
198,
2,
198,
2,
2297,
396,
3890,
290,
779,
287,
2723,
290,
13934,
5107,
11,
351,
393,
1231,
198,
2,
17613,
11,
389,
10431,
2810,
326,
262,
1708,
3403,
389,
1138,
25,
198,
2,
198,
2,
352,
13,
2297,
396,
2455,
507,
286,
2723,
2438,
1276,
12377,
262,
2029,
6634,
4003,
11,
428,
198,
2,
1351,
286,
3403,
290,
262,
1708,
37592,
13,
198,
2,
198,
2,
362,
13,
2297,
396,
2455,
507,
287,
13934,
1296,
1276,
22919,
262,
2029,
6634,
4003,
11,
198,
2,
428,
1351,
286,
3403,
290,
262,
1708,
37592,
287,
262,
10314,
198,
2,
290,
14,
273,
584,
5696,
2810,
351,
262,
6082,
13,
198,
2,
198,
2,
513,
13,
16126,
262,
1438,
286,
262,
6634,
15762,
4249,
262,
3891,
286,
663,
198,
2,
20420,
743,
307,
973,
284,
11438,
393,
7719,
3186,
10944,
422,
198,
2,
428,
3788,
1231,
2176,
3161,
3194,
7170,
13,
198,
2,
198,
2,
12680,
47466,
3180,
36592,
2389,
1961,
11050,
3336,
27975,
38162,
9947,
367,
15173,
4877,
5357,
27342,
9865,
3843,
20673,
366,
1921,
3180,
1,
198,
2,
5357,
15529,
7788,
32761,
6375,
8959,
49094,
34764,
11015,
11,
47783,
2751,
11,
21728,
5626,
40880,
5390,
11,
3336,
198,
2,
8959,
49094,
34764,
11015,
3963,
34482,
3398,
1565,
5603,
25382,
5357,
376,
46144,
7473,
317,
16652,
2149,
37232,
33079,
48933,
15986,
198,
2,
13954,
48778,
1961,
13,
3268,
8005,
49261,
50163,
3336,
27975,
38162,
9947,
49707,
14418,
6375,
27342,
9865,
3843,
20673,
9348,
43031,
19146,
198,
2,
7473,
15529,
42242,
11,
3268,
17931,
23988,
11,
19387,
25256,
1847,
11,
38846,
11,
7788,
3620,
6489,
13153,
11,
6375,
7102,
5188,
10917,
3525,
12576,
198,
2,
29506,
25552,
357,
1268,
39149,
2751,
11,
21728,
5626,
40880,
5390,
11,
41755,
11335,
10979,
3963,
28932,
2257,
2043,
37780,
21090,
50,
6375,
198,
2,
49254,
26,
406,
18420,
3963,
23210,
11,
42865,
11,
6375,
4810,
19238,
29722,
26,
6375,
43949,
44180,
23255,
49,
8577,
24131,
8,
29630,
36,
5959,
198,
2,
7257,
2937,
1961,
5357,
6177,
15529,
3336,
15513,
3963,
43031,
25382,
11,
7655,
2767,
16879,
3268,
27342,
10659,
11,
19269,
18379,
43031,
25382,
11,
198,
2,
6375,
309,
9863,
357,
1268,
39149,
2751,
399,
7156,
43,
3528,
18310,
6375,
25401,
54,
24352,
8,
5923,
1797,
2751,
3268,
15529,
34882,
16289,
3963,
3336,
23210,
198,
2,
3963,
12680,
47466,
11,
45886,
16876,
5984,
29817,
1961,
3963,
3336,
28069,
11584,
25382,
3963,
13558,
3398,
29506,
11879,
13,
198,
2,
198,
2,
15069,
357,
66,
8,
33448,
35920,
43412,
11,
11271,
5350,
17421,
259,
198,
198,
6738,
640,
1330,
640,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
28686,
198,
11748,
10688,
198,
198,
6738,
318,
64,
330,
1360,
76,
13,
13165,
354,
62,
26791,
1330,
1635,
198,
6738,
318,
64,
330,
1360,
76,
1330,
11550,
13165,
354,
11,
11550,
15042,
11,
11550,
22602,
198,
198,
11748,
28034,
198,
6738,
19720,
1330,
309,
29291,
11,
360,
713,
198,
6738,
443,
11178,
62,
1360,
76,
13,
268,
14259,
1330,
1004,
11178,
14350,
313,
198,
6738,
443,
11178,
62,
1360,
76,
1330,
20978,
38,
1961,
62,
31212,
44,
62,
13252,
2394,
62,
34720,
11,
551,
14259,
198,
6738,
443,
11178,
62,
1360,
76,
13,
268,
14259,
13,
8071,
13,
8071,
62,
26791,
1330,
1635,
198,
6738,
443,
11178,
62,
1360,
76,
13,
26791,
13,
8071,
62,
353,
3201,
1330,
3208,
15156,
3201,
198
] | 3.408027 | 598 |
import sys
import time
import random
from faker import Faker
if __name__ == "__main__":
main() | [
11748,
25064,
198,
11748,
640,
198,
11748,
4738,
198,
198,
6738,
277,
3110,
1330,
376,
3110,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1388,
3419
] | 2.970588 | 34 |
from typing import List
if __name__ == "__main__":
s = Solution()
assert s.searchInsert([1, 3, 5, 6], 7) == 4
assert s.searchInsert([1, 3, 5, 6], 5) == 2
assert s.searchInsert([1, 3, 5, 6], 2) == 1
assert s.searchInsert([1, 3, 5, 6], 0) == 0
assert s.searchInsert([1, 2, 6, 8], 4) == 2
assert s.searchInsert2([1, 3, 5, 6], 7) == 4
assert s.searchInsert2([1, 3, 5, 6], 5) == 2
assert s.searchInsert2([1, 3, 5, 6], 2) == 1
assert s.searchInsert2([1, 3, 5, 6], 0) == 0
assert s.searchInsert2([1, 2, 6, 8], 4) == 2
assert s.searchInsert3([1, 3, 5, 6], 7) == 4
assert s.searchInsert3([1, 3, 5, 6], 5) == 2
assert s.searchInsert3([1, 3, 5, 6], 2) == 1
assert s.searchInsert3([1, 3, 5, 6], 0) == 0
assert s.searchInsert3([1, 2, 6, 8], 4) == 2
assert s.searchInsert3([], 1) == 0
| [
6738,
19720,
1330,
7343,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
264,
796,
28186,
3419,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
767,
8,
6624,
604,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
642,
8,
6624,
362,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
362,
8,
6624,
352,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
657,
8,
6624,
657,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
26933,
16,
11,
362,
11,
718,
11,
807,
4357,
604,
8,
6624,
362,
628,
220,
220,
220,
6818,
264,
13,
12947,
44402,
17,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
767,
8,
6624,
604,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
17,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
642,
8,
6624,
362,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
17,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
362,
8,
6624,
352,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
17,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
657,
8,
6624,
657,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
17,
26933,
16,
11,
362,
11,
718,
11,
807,
4357,
604,
8,
6624,
362,
628,
220,
220,
220,
6818,
264,
13,
12947,
44402,
18,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
767,
8,
6624,
604,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
18,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
642,
8,
6624,
362,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
18,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
362,
8,
6624,
352,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
18,
26933,
16,
11,
513,
11,
642,
11,
718,
4357,
657,
8,
6624,
657,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
18,
26933,
16,
11,
362,
11,
718,
11,
807,
4357,
604,
8,
6624,
362,
198,
220,
220,
220,
6818,
264,
13,
12947,
44402,
18,
26933,
4357,
352,
8,
6624,
657,
198
] | 2.209424 | 382 |
# Copyright 2020 The Tilt Brush Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Possible BuildOptions:
# None Perform the specified build without any special settings or extra tasks.
# Development Build a development version of the player.
# AutoRunPlayer Run the built player.
# ShowBuiltPlayer Show the built player.
# BuildAdditionalStreamedScenes Build a compressed asset bundle that contains streamed scenes loadable with the WWW class.
# AcceptExternalModificationsToPlayer Used when building Xcode (iPhone) or Eclipse (Android) projects.
# WebPlayerOfflineDeployment Copy UnityObject.js alongside Web Player so it wouldn't have to be downloaded from internet.
# ConnectWithProfiler Start the player with a connection to the profiler in the editor.
# AllowDebugging Allow script debuggers to attach to the player remotely.
# SymlinkLibraries Symlink runtime libraries when generating iOS Xcode project. (Faster iteration time).
# UncompressedAssetBundle Don't compress the data when creating the asset bundle.
# DeployOnline Generate online version of webplayer.
# EnableHeadlessMode Build headless Linux standalone.
# BuildScriptsOnly Build only the scripts of a project.
# ForceEnableAssertions Include assertions in the build. By default, the assertions are only included in development builds.
# Possible BuildTargets:
# StandaloneOSXUniversal Build a universal OSX standalone.
# StandaloneOSXIntel Build an OS X standalone (Intel only).
# StandaloneWindows Build a Windows standalone.
# WebPlayer Build a web player.
# WebPlayerStreamed Build a streamed web player.
# iOS Build an iOS player.
# Android Build an Android .apk standalone app.
# StandaloneLinux Build a Linux standalone.
# StandaloneWindows64 Build a Windows 64-bit standalone.
# WebGL WebGL.
# StandaloneLinux64 Build a Linux 64-bit standalone.
# StandaloneLinuxUniversal Build a Linux universal standalone.
# StandaloneOSXIntel64 Build an OSX Intel 64-bit standalone.
import argparse
import codecs
import getpass
import glob
import io
import itertools
import json
import os
import re
import subprocess # Currently disabled with an if False below
import sys
import threading
import time
import webbrowser
from platform import node as platform_node # Don't overwrite 'platform' local var!
import unitybuild.utils
import unitybuild.push
from unitybuild.constants import (
Error,
UserError,
BuildFailed,
BadVersionCode,
InternalError,
)
from unitybuild.credentials import get_credential, TB_OCULUS_QUEST_APP_ID
from unitybuild.vcs import create as vcs_create
VENDOR_NAME = "Icosa"
EXE_BASE_NAME = "OpenBrush"
is_linux = sys.platform.startswith("linux")
# ----------------------------------------------------------------------
# Build logic
# ----------------------------------------------------------------------
class LogTailer(threading.Thread):
"""Copy interesting lines from Unity's logfile to stdout.
Necessary because Unity's batchmode is completely silent on Windows.
When used in a "with" block, *logfile* is guaranteed to be closed
after the block exits."""
POLL_TIME = 0.5
def get_unity_exe(version, lenient=True):
"""Returns a Unity executable of the same major version.
version - a (major, minor, point) tuple. Strings.
lenient - if True, allow the micro version to be higher.
"""
exes = sorted(iter_editors_and_versions(), reverse=True)
if len(exes) == 0:
raise BuildFailed("Cannot find any Unity versions (want %s)" % (version,))
for (found_exe, found_version) in exes:
if found_version == version:
return found_exe
if lenient:
# Compatible is defined as same major and minor version
compatible = [(exe, ver) for (exe, ver) in exes if ver[0:2] == version[0:2]]
if len(compatible) > 0:
found_exe, found_version = max(compatible, key=by_int_version)
if int_version(found_version) >= int_version(version):
return found_exe
raise BuildFailed("Cannot find desired Unity version (want %s)" % (version,))
def iter_possible_windows_editor_locations():
"""Yields possible locations for Unity.exe"""
# New-style Unity Hub install locations
for editor_dir in glob.glob(r"c:\Program Files*\Unity*\Hub\Editor\*\Editor"):
yield editor_dir
# Old-school install locations
for editor_dir in glob.glob(r"c:\Program Files*\Unity*\Editor"):
yield editor_dir
# Check to see if UnityHub has a secondary install path defined.
install_config_file_path = os.path.join(
os.getenv("APPDATA"), r"UnityHub\secondaryInstallPath.json"
)
if os.path.exists(install_config_file_path):
with open(install_config_file_path, "r") as install_config_file:
install_dir = json.load(install_config_file)
for editor_dir in glob.glob(install_dir + r"\*\Editor"):
yield editor_dir
def iter_editors_and_versions(): # pylint: disable=too-many-branches
"""Yields (exe_path, (major, minor, micro)) tuples.
All elements are strings."""
hub_exe = None
if sys.platform == "win32":
hub_exe = r"c:\Program Files\Unity Hub\Unity Hub.exe"
elif sys.platform == "darwin":
hub_exe = r"/Applications/Unity Hub.app/Contents/MacOS/Unity Hub"
else:
hub_exe = None
# Headless hub isn't totally headless; it forces the hub to pop up, which is irritating.
# Disabling for now.
if False and hub_exe and os.path.exists(hub_exe):
proc = subprocess.Popen(
[hub_exe, "--", "--headless", "editors", "--installed"],
stdout=subprocess.PIPE,
)
for line in proc.stdout:
m = re.search(r"(\d+)\.(\d+)\.(\d+).* at (.*)", line)
if m:
yield (m.group(4), (m.group(1), m.group(2), m.group(3).strip()))
return
if sys.platform == "win32":
for editor_dir in iter_possible_windows_editor_locations():
editor_data_dir = os.path.join(editor_dir, "Data")
if os.path.exists(editor_data_dir):
try:
exe = os.path.join(editor_dir, "Unity.exe")
if os.path.exists(exe):
yield (exe, get_editor_unity_version(exe, editor_data_dir))
else:
print("WARN: Missing executable %s" % exe)
except LookupError as e:
print(e)
except Exception as e: # pylint: disable=broad-except
print("WARN: Cannot find version of %s: %s" % (editor_dir, e))
elif sys.platform == "darwin":
# Kind of a hacky way of detecting the Daydream build machine
is_build_machine = os.path.exists("/Users/jenkins/JenkinsCommon/Unity")
if is_build_machine:
app_list = glob.glob("/Users/jenkins/JenkinsCommon/Unity/Unity_*/Unity.app")
else:
# TODO: make it work with Unity hub?
app_list = ["/Applications/Unity/Unity.app"]
# Since we don't have Unity hub support (commented out above because headless isn't
# headless), look for where it installs directly
app_list.extend(glob.glob("/Applications/Unity/*/Unity.app"))
app_list.extend(glob.glob("/Applications/Unity/Hub/Editor/*/Unity.app"))
for editor_dir in app_list:
exe = os.path.join(editor_dir, "Contents/MacOS/Unity")
editor_data_dir = os.path.join(editor_dir, "Contents")
if os.path.exists(editor_dir):
yield (exe, get_editor_unity_version(editor_dir, editor_data_dir))
elif sys.platform.startswith("linux"):
app_list = [os.path.expanduser("~/Unity/Hub/Editor/2019.*")]
for editor_dir in app_list:
exe = os.path.join(editor_dir, "Editor/Unity")
editor_data_dir = os.path.join(editor_dir, "Editor")
if os.path.exists(editor_dir):
yield (exe, get_editor_unity_version(editor_dir, editor_data_dir))
def get_editor_unity_version(editor_app, editor_data_dir):
"""Pass the app and its Editor/Data directory.
The app should end with '.app' (OSX) or '.exe' (Windows)
Returns a version 3-tuple like ("5", "6", "1") or ("2017", "1", "1").
Does not return any suffixes like "p4" or "f3".
Raises LookupError on failure."""
# This works for 5.x as well as 2017.x and 2018.x, but not 2019.x
packagemanager_dir = os.path.join(
editor_data_dir, "PackageManager/Unity/PackageManager"
)
if os.path.exists(packagemanager_dir):
# The package manager has names like "5.6.3".
_, dirs, _ = next(os.walk(packagemanager_dir))
if len(dirs) > 0:
return parse_version(dirs[0])
# This works for 5.x releases, but not 2017.x
analytics_version = os.path.join(
editor_data_dir, "UnityExtensions/Unity/UnityAnalytics/version"
)
if os.path.exists(analytics_version):
with open(analytics_version) as inf:
return parse_version(inf.read())
# TODO(pld): For 2019, maybe search the modules.json file for strings
# like "UnitySetup-Android-Support-for-Editor-<version>"? But that
# file doesn't live in the editor data directory and it might not
# exist at all for MacOS.
try:
(major, minor, micro) = unitybuild.utils.get_file_version(editor_app)
except LookupError:
# Keep trying; we have one last fallback
pass
else:
return (str(major), str(minor), str(micro))
# I can't find a way to get the version out of 2019.x.
# This is pretty janky so only use for Jenkins and 2019.
for m in re.finditer(r"Unity/(Unity_)?(2019)\.(\d+)\.(\d+)", editor_data_dir):
_, major, minor, point = m.groups()
ret = (major, minor, point)
print(
"WARNING: %s using fallback to determine Unity version %s"
% (editor_data_dir, ret)
)
return ret
for m in re.finditer(r"Unity/Hub/Editor/(2019)\.(\d+)\.(\d+)", editor_data_dir):
major, minor, point = m.groups()
ret = (major, minor, point)
print(
"WARNING: %s using fallback to determine Unity version %s"
% (editor_data_dir, ret)
)
return ret
raise LookupError("%s: Cannot determine Unity version" % editor_data_dir)
def get_project_unity_version(project_dir):
"""Returns a (major, minor, point) tuple."""
fn = os.path.join(project_dir, "ProjectSettings/ProjectVersion.txt")
with open(fn) as inf:
m = re.search(r"^m_EditorVersion: (.*)", inf.read(), flags=re.M)
return parse_version(m.group(1))
def iter_compiler_output(log):
"""Yields dicts containing the keys:
exitcode, compilationhadfailure, outfile, stdout, stderr"""
# Compile output looks like this:
# -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp-Editor.dll
# Compilation failed: 1 error(s), 0 warnings
# -----CompilerOutput:-stderr----------
# Assets/Editor/BuildTiltBrush.cs(33,7): error CS1519: <etc etc>
# -----EndCompilerOutput---------------
pat = re.compile(
r"""
^-----CompilerOutput:-stdout(?P<metadata>.*?) \n
(?P<body>.*?) \n
-----EndCompilerOutput""",
re.DOTALL | re.MULTILINE | re.VERBOSE,
)
for m in pat.finditer(log):
dct = {}
for chunk in m.group("metadata").split("--"):
if chunk:
key, value = chunk.split(": ", 1)
dct[key] = value
dct["exitcode"] = int(dct["exitcode"])
dct["compilationhadfailure"] = dct["compilationhadfailure"] != "False"
body = m.group("body").strip().split("-----CompilerOutput:-stderr----------\n")
dct["stdout"] = body[0].strip()
dct["stderr"] = body[1].strip() if len(body) > 1 else ""
yield dct
def check_compile_output(log):
"""Raises BuildFailed if compile errors are found.
Spews to stderr if compile warnings are found."""
dcts = list(iter_compiler_output(log))
compiler_output = "\n".join(
stuff.strip() for dct in dcts for stuff in [dct["stderr"], dct["stdout"]]
)
if any(dct["compilationhadfailure"] for dct in dcts):
# Mono puts it in stderr; Roslyn puts it in stdout.
# But! Unity 2018 also gives us a good build report, so we might be able to
# get the compiler failures from the build report instead of this ugly parsing
# through Unity's log file.
raise BuildFailed("Compile\n%s" % indent("| ", compiler_output))
if compiler_output != "":
print("Compile warnings:\n%s" % indent("| ", compiler_output), file=sys.stderr)
def search_backwards(text, start_point, limit, pattern):
"""Search the range [limit, start_point] for instances of |pattern|.
Returns the one closest to |start_point|.
Returns |limit| if none are found."""
assert limit < start_point
matches = list(pattern.finditer(text[limit:start_point]))
if len(matches) == 0:
return limit
return limit + matches[-1].start(0)
def analyze_unity_failure(exitcode, log):
"""Raise BuildFailed with as much information about the failure as possible."""
# Build exceptions look like this:
# BuildFailedException: <<Build sanity checks failed:
# This is a dummy error>>
# at BuildTiltBrush.DoBuild (BuildOptions options, BuildTarget target, System.String location, SdkMode vrSdk, Boolean isExperimental, System.String stamp) [0x0026a] in C:\src\tb\Assets\Editor\BuildTiltBrush.cs:430
# at BuildTiltBrush.CommandLine () [0x001de] in C:\src\tb\Assets\Editor\BuildTiltBrush.cs:259
build_failed_pat = re.compile(
r"""BuildFailedException:\ <<(?P<description>.*?)>>
(?P<traceback> (\n\ \ at\ [^\n]+)* )""",
re.DOTALL | re.MULTILINE | re.VERBOSE,
)
m = build_failed_pat.search(log)
if m is not None:
raise BuildFailed(
"C# raised BuildFailedException\n%s\n| ---\n%s"
% (
indent("| ", m.group("traceback").strip()),
indent("| ", m.group("description").strip()),
)
)
internal_error_pat = re.compile(
r"^executeMethod method (?P<methodname>.*) threw exception\.", re.MULTILINE
)
m = internal_error_pat.search(log)
if m is not None:
exception_pat = re.compile(
r"^[A-Z][A-Za-z0-9]+(Exception|Error):", re.MULTILINE
)
start = search_backwards(log, m.start(0), m.start(0) - 1024, exception_pat)
end = m.end(0)
suspicious_portion = log[start:end]
raise BuildFailed(
"""Build script '%s' had an internal error.
Suspect log portion:
%s"""
% (m.group("methodname"), indent("| ", suspicious_portion))
)
# Check for BuildTiltBrush.Die()
btb_die_pat = re.compile(
r"_btb_ Abort <<(?P<description>.*?)>>", re.DOTALL | re.MULTILINE
)
m = btb_die_pat.search(log)
if m is not None:
raise BuildFailed("C# called Die %s '%s'" % (exitcode, m.group("description")))
if exitcode is None:
raise BuildFailed("Unity build seems to have been terminated prematurely")
raise BuildFailed(
"""Unity build failed with exit code %s but no errors seen
This probably means the project is already open in Unity"""
% exitcode
)
PLATFORM_TO_UNITYTARGET = {
"Windows": "StandaloneWindows64",
"OSX": "StandaloneOSX",
"Linux": "StandaloneLinux64",
"Android": "Android",
"iOS": "iOS",
}
def build(
stamp,
output_dir,
project_dir,
exe_base_name, # pylint: disable=too-many-statements,too-many-branches,too-many-locals,too-many-arguments
experimental,
platform,
il2cpp,
vrsdk,
config,
for_distribution,
is_jenkins,
):
"""Create a build of Tilt Brush.
Pass:
stamp - string describing the version+build; will be embedded into the build somehow.
output_dir - desired output directory name
project_dir - directory name
project_name - name of the executable to create (sans extension)
experimental - boolean
platform - one of (Windows, OSX, Linux, Android, iOS)
il2cpp - boolean
vrsdk - Config.SdkMode; valid values are (Oculus, SteamVR, Monoscopic)
config - one of (Debug, Release)
for_distribution - boolean. Enables android signing, version code bump, removal of pdb files.
is_jenkins - boolean; used to customize stdout logging
Returns:
the actual output directory used
"""
try:
unitybuild.utils.destroy(output_dir)
except Exception as e: # pylint: disable=broad-except
print("WARN: could not use %s: %s" % (output_dir, e))
output_dir = make_unused_directory_name(output_dir)
print("WARN: using %s intead" % output_dir)
unitybuild.utils.destroy(output_dir)
os.makedirs(output_dir)
logfile = os.path.join(output_dir, "build_log.txt")
exe_name = os.path.join(output_dir, get_exe_name(platform, exe_base_name))
cmd_env = os.environ.copy()
cmdline = [
get_unity_exe(
get_project_unity_version(project_dir), lenient=is_jenkins or is_linux
),
"-logFile",
logfile,
"-batchmode",
# '-nographics', Might be needed on OSX if running w/o window server?
"-projectPath",
project_dir,
"-executeMethod",
"BuildTiltBrush.CommandLine",
"-btb-target",
PLATFORM_TO_UNITYTARGET[platform],
"-btb-out",
exe_name,
"-btb-display",
vrsdk,
]
if experimental:
cmdline.append("-btb-experimental")
if il2cpp:
cmdline.append("-btb-il2cpp")
# list of tuples:
# - the name of the credential in the environment (for Jenkins)
# - the name of the credential in the keystore (for interactive use)
required_credentials = []
if for_distribution and platform == "Android":
if vrsdk != "Oculus":
raise BuildFailed("Signing is currently only implemented for Oculus Quest")
keystore = os.path.abspath(
os.path.join(project_dir, "Support/Keystores/TiltBrush.keystore")
)
keystore = keystore.replace("/", "\\")
if not os.path.exists(keystore):
raise BuildFailed("To sign you need %s.\n" % keystore)
cmdline.extend(
[
"-btb-keystore-name",
keystore,
"-btb-keyalias-name",
"oculusquest",
]
)
required_credentials.extend(
[
("BTB_KEYSTORE_PASS", "Tilt Brush keystore password"),
("BTB_KEYALIAS_PASS", "Tilt Brush Oculus Quest signing key password"),
]
)
cmdline.extend(["-btb-stamp", stamp])
if config == "Debug":
cmdline.extend(
[
"-btb-bopt",
"Development",
"-btb-bopt",
"AllowDebugging",
]
)
cmdline.append("-quit")
full_version = "%s-%s" % (get_end_user_version(project_dir), stamp)
# Populate environment with secrets just before calling subprocess
for (env_var, credential_name) in required_credentials:
if env_var not in cmd_env:
if is_jenkins:
# TODO(pld): Look into Jenkins plugins to get at these credentials
raise BuildFailed(
'Credential "%s" is missing from Jenkins build environment'
% env_var
)
cmd_env[env_var] = (
get_credential(credential_name).get_secret().encode("ascii")
)
proc = subprocess.Popen(cmdline, stdout=sys.stdout, stderr=sys.stderr, env=cmd_env)
del cmd_env
with unitybuild.utils.ensure_terminate(proc):
with LogTailer(logfile, disabled=is_jenkins):
with open(os.path.join(output_dir, "build_stamp.txt"), "w") as outf:
outf.write(full_version)
# Use wait() instead of communicate() because Windows can't
# interrupt the thread joins that communicate() uses.
proc.wait()
with open(logfile) as inf:
log = inf.read().replace("\r", "")
check_compile_output(log)
if proc.returncode != 0:
analyze_unity_failure(proc.returncode, log)
# sanity-checking since we've been seeing bad Oculus builds
if platform == "Windows":
required_files = []
for f in required_files:
if not os.path.exists(os.path.join(output_dir, f)):
raise BuildFailed(
"""Build is missing the file '%s'
This is a known Unity bug and the only thing to do is try the build
over and over again until it works"""
% f
)
return output_dir
def finalize_build(src_dir, dst_dir):
"""Attempts to move *src_dir* to *dst_dir*.
Return *dst_dir* on success, or some other directory name if there was some problem.
This should be as close to atomic as possible."""
try:
unitybuild.utils.destroy(dst_dir)
except OSError:
print("WARN: Cannot remove %s; putting output in %s" % (dst_dir, src_dir))
return src_dir
try:
os.makedirs(os.path.dirname(dst_dir))
except OSError:
pass
try:
os.rename(src_dir, dst_dir)
return dst_dir
except OSError:
# TODO(pld): Try to do something better
# On Jon's computer, Android builds always leave behind a Java.exe process that
# holds onto the directory and prevents its rename.
# raise InternalError("Can't rename %s to %s: %s" % (src_dir, dst_dir, e))
print("WARN: Cannot rename %s; leaving it as-is" % (src_dir,))
return src_dir
# ----------------------------------------------------------------------
# Front-end
# ----------------------------------------------------------------------
def iter_builds(args):
"""Yields (platform, vrsdk, config) tuples."""
for platform in args.platforms:
for vrsdk in args.vrsdks:
for config in args.configs:
yield (platform, vrsdk, config)
def get_android_version_code(project_dir):
"""Returns the integer AndroidBundleVersionCode, or raises LookupError."""
filename = os.path.join(project_dir, "ProjectSettings/ProjectSettings.asset")
contents = open(filename, "rb").read()
m = re.search(r"(?<=AndroidBundleVersionCode: )(?P<code>\d+)", contents)
if m is not None:
try:
return int(m.group("code"))
except: # pylint: disable=bare-except
pass
raise LookupError("code")
def set_android_version_code(project_dir, code):
"""If *code* is 'increment', increments the existing code."""
filename = os.path.join(project_dir, "ProjectSettings/ProjectSettings.asset")
contents = open(filename, "rb").read()
new_contents, n = re.subn(
r"(?<=AndroidBundleVersionCode: )(?P<code>\d+)", replacement, contents
)
if n < 1:
print("WARNING: Failed to set AndroidBundleVersionCode")
else:
open(filename, "wb").write(new_contents)
# Tests
# This code seems rather temporary; ignore any and all warnings
# pylint: disable=all
# flake8: noqa
if __name__ == "__main__":
maybe_prompt_and_set_version_code(os.getcwd())
| [
2,
15069,
12131,
383,
309,
2326,
39846,
46665,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
220,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
11247,
739,
262,
13789,
13,
198,
198,
2,
33671,
10934,
29046,
25,
198,
2,
220,
220,
220,
6045,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
35006,
262,
7368,
1382,
1231,
597,
2041,
6460,
393,
3131,
8861,
13,
198,
2,
220,
220,
220,
7712,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
257,
2478,
2196,
286,
262,
2137,
13,
198,
2,
220,
220,
220,
11160,
10987,
14140,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5660,
262,
3170,
2137,
13,
198,
2,
220,
220,
220,
5438,
39582,
14140,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5438,
262,
3170,
2137,
13,
198,
2,
220,
220,
220,
10934,
17699,
12124,
276,
3351,
18719,
10934,
257,
25388,
11171,
18537,
326,
4909,
35377,
8188,
3440,
540,
351,
262,
13505,
54,
1398,
13,
198,
2,
220,
220,
220,
21699,
41506,
5841,
6637,
2514,
14140,
16718,
618,
2615,
1395,
8189,
357,
37032,
8,
393,
30991,
357,
25934,
8,
4493,
13,
198,
2,
220,
220,
220,
5313,
14140,
28657,
49322,
434,
220,
220,
220,
17393,
18714,
10267,
13,
8457,
7848,
5313,
7853,
523,
340,
3636,
470,
423,
284,
307,
15680,
422,
5230,
13,
198,
2,
220,
220,
220,
8113,
3152,
15404,
5329,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7253,
262,
2137,
351,
257,
4637,
284,
262,
1534,
5329,
287,
262,
5464,
13,
198,
2,
220,
220,
220,
22507,
27509,
2667,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22507,
4226,
14257,
5355,
284,
10199,
284,
262,
2137,
19863,
13,
198,
2,
220,
220,
220,
1632,
4029,
676,
43,
11127,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1632,
4029,
676,
19124,
12782,
618,
15453,
8969,
1395,
8189,
1628,
13,
357,
37,
1603,
24415,
640,
737,
198,
2,
220,
220,
220,
791,
5589,
2790,
45869,
33,
31249,
220,
220,
220,
220,
220,
220,
2094,
470,
27413,
262,
1366,
618,
4441,
262,
11171,
18537,
13,
198,
2,
220,
220,
220,
34706,
14439,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2980,
378,
2691,
2196,
286,
3992,
7829,
13,
198,
2,
220,
220,
220,
27882,
13847,
1203,
19076,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
1182,
1203,
7020,
27669,
13,
198,
2,
220,
220,
220,
10934,
7391,
82,
10049,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
691,
262,
14750,
286,
257,
1628,
13,
198,
2,
220,
220,
220,
5221,
36695,
8021,
861,
507,
220,
220,
220,
220,
220,
220,
220,
220,
40348,
29965,
287,
262,
1382,
13,
2750,
4277,
11,
262,
29965,
389,
691,
3017,
287,
2478,
12188,
13,
198,
198,
2,
33671,
10934,
51,
853,
1039,
25,
198,
2,
220,
220,
220,
5751,
17749,
2640,
55,
38747,
220,
220,
220,
220,
220,
220,
220,
10934,
257,
10112,
7294,
55,
27669,
13,
198,
2,
220,
220,
220,
5751,
17749,
2640,
55,
24123,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
281,
7294,
1395,
27669,
357,
24123,
691,
737,
198,
2,
220,
220,
220,
5751,
17749,
11209,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
257,
3964,
27669,
13,
198,
2,
220,
220,
220,
5313,
14140,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
257,
3992,
2137,
13,
198,
2,
220,
220,
220,
5313,
14140,
12124,
276,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
257,
35377,
3992,
2137,
13,
198,
2,
220,
220,
220,
8969,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
281,
8969,
2137,
13,
198,
2,
220,
220,
220,
5565,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
281,
5565,
764,
499,
74,
27669,
598,
13,
198,
2,
220,
220,
220,
5751,
17749,
19314,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
257,
7020,
27669,
13,
198,
2,
220,
220,
220,
5751,
17749,
11209,
2414,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
257,
3964,
5598,
12,
2545,
27669,
13,
198,
2,
220,
220,
220,
5313,
8763,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5313,
8763,
13,
198,
2,
220,
220,
220,
5751,
17749,
19314,
2414,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
257,
7020,
5598,
12,
2545,
27669,
13,
198,
2,
220,
220,
220,
5751,
17749,
19314,
38747,
220,
220,
220,
220,
220,
10934,
257,
7020,
10112,
27669,
13,
198,
2,
220,
220,
220,
5751,
17749,
2640,
55,
24123,
2414,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10934,
281,
7294,
55,
8180,
5598,
12,
2545,
27669,
13,
198,
198,
11748,
1822,
29572,
198,
11748,
40481,
82,
198,
11748,
651,
6603,
198,
11748,
15095,
198,
11748,
33245,
198,
11748,
340,
861,
10141,
198,
11748,
33918,
198,
11748,
28686,
198,
11748,
302,
198,
11748,
850,
14681,
220,
1303,
16888,
10058,
351,
281,
611,
10352,
2174,
198,
11748,
25064,
198,
11748,
4704,
278,
198,
11748,
640,
198,
11748,
3992,
40259,
198,
6738,
3859,
1330,
10139,
355,
3859,
62,
17440,
220,
1303,
2094,
470,
49312,
705,
24254,
6,
1957,
1401,
0,
198,
198,
11748,
14111,
11249,
13,
26791,
198,
11748,
14111,
11249,
13,
14689,
198,
6738,
14111,
11249,
13,
9979,
1187,
1330,
357,
198,
220,
220,
220,
13047,
11,
198,
220,
220,
220,
11787,
12331,
11,
198,
220,
220,
220,
10934,
37,
6255,
11,
198,
220,
220,
220,
7772,
14815,
10669,
11,
198,
220,
220,
220,
18628,
12331,
11,
198,
8,
198,
6738,
14111,
11249,
13,
66,
445,
14817,
1330,
651,
62,
66,
445,
1843,
11,
23799,
62,
4503,
6239,
2937,
62,
35780,
62,
24805,
62,
2389,
198,
6738,
14111,
11249,
13,
85,
6359,
1330,
2251,
355,
410,
6359,
62,
17953,
628,
198,
53,
10619,
1581,
62,
20608,
796,
366,
40,
6966,
64,
1,
198,
6369,
36,
62,
33,
11159,
62,
20608,
796,
366,
11505,
9414,
1530,
1,
198,
271,
62,
23289,
796,
25064,
13,
24254,
13,
9688,
2032,
342,
7203,
23289,
4943,
198,
198,
2,
16529,
23031,
198,
2,
10934,
9156,
198,
2,
16529,
23031,
628,
198,
4871,
5972,
51,
603,
263,
7,
16663,
278,
13,
16818,
2599,
198,
220,
220,
220,
37227,
29881,
3499,
3951,
422,
18714,
338,
2604,
7753,
284,
14367,
448,
13,
198,
220,
220,
220,
19652,
408,
560,
780,
18714,
338,
15458,
14171,
318,
3190,
10574,
319,
3964,
13,
628,
220,
220,
220,
1649,
973,
287,
257,
366,
4480,
1,
2512,
11,
1635,
6404,
7753,
9,
318,
11462,
284,
307,
4838,
198,
220,
220,
220,
706,
262,
2512,
30151,
526,
15931,
628,
220,
220,
220,
19922,
3069,
62,
34694,
796,
657,
13,
20,
628,
198,
4299,
651,
62,
9531,
62,
13499,
7,
9641,
11,
18896,
1153,
28,
17821,
2599,
198,
220,
220,
220,
37227,
35561,
257,
18714,
28883,
286,
262,
976,
1688,
2196,
13,
198,
220,
220,
220,
2196,
532,
257,
357,
22478,
11,
4159,
11,
966,
8,
46545,
13,
4285,
654,
13,
198,
220,
220,
220,
18896,
1153,
532,
611,
6407,
11,
1249,
262,
4580,
2196,
284,
307,
2440,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
409,
274,
796,
23243,
7,
2676,
62,
276,
6742,
62,
392,
62,
47178,
22784,
9575,
28,
17821,
8,
198,
220,
220,
220,
611,
18896,
7,
1069,
274,
8,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
10934,
37,
6255,
7203,
34,
34574,
1064,
597,
18714,
6300,
357,
42949,
4064,
82,
16725,
4064,
357,
9641,
11,
4008,
198,
220,
220,
220,
329,
357,
9275,
62,
13499,
11,
1043,
62,
9641,
8,
287,
409,
274,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1043,
62,
9641,
6624,
2196,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1043,
62,
13499,
628,
220,
220,
220,
611,
18896,
1153,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3082,
16873,
318,
5447,
355,
976,
1688,
290,
4159,
2196,
198,
220,
220,
220,
220,
220,
220,
220,
11670,
796,
47527,
13499,
11,
3326,
8,
329,
357,
13499,
11,
3326,
8,
287,
409,
274,
611,
3326,
58,
15,
25,
17,
60,
6624,
2196,
58,
15,
25,
17,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
38532,
8,
1875,
657,
25,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1043,
62,
13499,
11,
1043,
62,
9641,
796,
3509,
7,
38532,
11,
1994,
28,
1525,
62,
600,
62,
9641,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
493,
62,
9641,
7,
9275,
62,
9641,
8,
18189,
493,
62,
9641,
7,
9641,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1043,
62,
13499,
628,
220,
220,
220,
5298,
10934,
37,
6255,
7203,
34,
34574,
1064,
10348,
18714,
2196,
357,
42949,
4064,
82,
16725,
4064,
357,
9641,
11,
4008,
628,
198,
4299,
11629,
62,
79,
4733,
62,
28457,
62,
35352,
62,
17946,
602,
33529,
198,
220,
220,
220,
37227,
56,
1164,
82,
1744,
7064,
329,
18714,
13,
13499,
37811,
198,
220,
220,
220,
1303,
968,
12,
7635,
18714,
14699,
2721,
7064,
198,
220,
220,
220,
329,
5464,
62,
15908,
287,
15095,
13,
4743,
672,
7,
81,
1,
66,
7479,
15167,
13283,
9,
59,
35955,
9,
59,
16066,
59,
17171,
59,
9,
59,
17171,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
7800,
5464,
62,
15908,
198,
220,
220,
220,
1303,
5706,
12,
14347,
2721,
7064,
198,
220,
220,
220,
329,
5464,
62,
15908,
287,
15095,
13,
4743,
672,
7,
81,
1,
66,
7479,
15167,
13283,
9,
59,
35955,
9,
59,
17171,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
7800,
5464,
62,
15908,
198,
220,
220,
220,
1303,
6822,
284,
766,
611,
18714,
16066,
468,
257,
9233,
2721,
3108,
5447,
13,
198,
220,
220,
220,
2721,
62,
11250,
62,
7753,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
1136,
24330,
7203,
2969,
5760,
13563,
12340,
374,
1,
35955,
16066,
59,
38238,
15798,
15235,
13,
17752,
1,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
17350,
62,
11250,
62,
7753,
62,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
17350,
62,
11250,
62,
7753,
62,
6978,
11,
366,
81,
4943,
355,
2721,
62,
11250,
62,
7753,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2721,
62,
15908,
796,
33918,
13,
2220,
7,
17350,
62,
11250,
62,
7753,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
5464,
62,
15908,
287,
15095,
13,
4743,
672,
7,
17350,
62,
15908,
1343,
374,
1,
59,
9,
59,
17171,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7800,
5464,
62,
15908,
628,
198,
4299,
11629,
62,
276,
6742,
62,
392,
62,
47178,
33529,
220,
1303,
279,
2645,
600,
25,
15560,
28,
18820,
12,
21834,
12,
1671,
12140,
198,
220,
220,
220,
37227,
56,
1164,
82,
357,
13499,
62,
6978,
11,
357,
22478,
11,
4159,
11,
4580,
4008,
12777,
2374,
13,
198,
220,
220,
220,
1439,
4847,
389,
13042,
526,
15931,
198,
220,
220,
220,
12575,
62,
13499,
796,
6045,
198,
220,
220,
220,
611,
25064,
13,
24254,
6624,
366,
5404,
2624,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
12575,
62,
13499,
796,
374,
1,
66,
7479,
15167,
13283,
59,
35955,
14699,
59,
35955,
14699,
13,
13499,
1,
198,
220,
220,
220,
1288,
361,
25064,
13,
24254,
6624,
366,
27455,
5404,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
12575,
62,
13499,
796,
374,
1,
14,
41995,
14,
35955,
14699,
13,
1324,
14,
15842,
14,
14155,
2640,
14,
35955,
14699,
1,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
12575,
62,
13499,
796,
6045,
198,
220,
220,
220,
1303,
7123,
1203,
12575,
2125,
470,
6635,
1182,
1203,
26,
340,
3386,
262,
12575,
284,
1461,
510,
11,
543,
318,
42010,
13,
198,
220,
220,
220,
1303,
3167,
11716,
329,
783,
13,
198,
220,
220,
220,
611,
10352,
290,
12575,
62,
13499,
290,
28686,
13,
6978,
13,
1069,
1023,
7,
40140,
62,
13499,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
13834,
796,
850,
14681,
13,
47,
9654,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
40140,
62,
13499,
11,
366,
438,
1600,
366,
438,
2256,
1203,
1600,
366,
276,
6742,
1600,
366,
438,
37050,
33116,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14367,
448,
28,
7266,
14681,
13,
47,
4061,
36,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1627,
287,
13834,
13,
19282,
448,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
796,
302,
13,
12947,
7,
81,
18109,
59,
67,
10,
19415,
12195,
59,
67,
10,
19415,
12195,
59,
67,
10,
737,
9,
379,
357,
15885,
42501,
1627,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
285,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7800,
357,
76,
13,
8094,
7,
19,
828,
357,
76,
13,
8094,
7,
16,
828,
285,
13,
8094,
7,
17,
828,
285,
13,
8094,
7,
18,
737,
36311,
3419,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
611,
25064,
13,
24254,
6624,
366,
5404,
2624,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5464,
62,
15908,
287,
11629,
62,
79,
4733,
62,
28457,
62,
35352,
62,
17946,
602,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5464,
62,
7890,
62,
15908,
796,
28686,
13,
6978,
13,
22179,
7,
35352,
62,
15908,
11,
366,
6601,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
35352,
62,
7890,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
409,
68,
796,
28686,
13,
6978,
13,
22179,
7,
35352,
62,
15908,
11,
366,
35955,
13,
13499,
4943,
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,
1069,
1023,
7,
13499,
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,
7800,
357,
13499,
11,
651,
62,
35352,
62,
9531,
62,
9641,
7,
13499,
11,
5464,
62,
7890,
62,
15908,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
37771,
25,
25639,
28883,
4064,
82,
1,
4064,
409,
68,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
6803,
929,
12331,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
68,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
355,
304,
25,
220,
1303,
279,
2645,
600,
25,
15560,
28,
36654,
12,
16341,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
37771,
25,
26003,
1064,
2196,
286,
4064,
82,
25,
4064,
82,
1,
4064,
357,
35352,
62,
15908,
11,
304,
4008,
198,
220,
220,
220,
1288,
361,
25064,
13,
24254,
6624,
366,
27455,
5404,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
14927,
286,
257,
8156,
88,
835,
286,
31521,
262,
3596,
25966,
1382,
4572,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
11249,
62,
30243,
796,
28686,
13,
6978,
13,
1069,
1023,
7203,
14,
14490,
14,
48796,
5331,
14,
44875,
5331,
17227,
14,
35955,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
62,
11249,
62,
30243,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
598,
62,
4868,
796,
15095,
13,
4743,
672,
7203,
14,
14490,
14,
48796,
5331,
14,
44875,
5331,
17227,
14,
35955,
14,
35955,
62,
16208,
35955,
13,
1324,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
16926,
46,
25,
787,
340,
670,
351,
18714,
12575,
30,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
598,
62,
4868,
796,
14631,
14,
41995,
14,
35955,
14,
35955,
13,
1324,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4619,
356,
836,
470,
423,
18714,
12575,
1104,
357,
785,
12061,
503,
2029,
780,
1182,
1203,
2125,
470,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1182,
1203,
828,
804,
329,
810,
340,
42027,
3264,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
598,
62,
4868,
13,
2302,
437,
7,
4743,
672,
13,
4743,
672,
7203,
14,
41995,
14,
35955,
15211,
14,
35955,
13,
1324,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
598,
62,
4868,
13,
2302,
437,
7,
4743,
672,
13,
4743,
672,
7203,
14,
41995,
14,
35955,
14,
16066,
14,
17171,
15211,
14,
35955,
13,
1324,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5464,
62,
15908,
287,
598,
62,
4868,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
409,
68,
796,
28686,
13,
6978,
13,
22179,
7,
35352,
62,
15908,
11,
366,
15842,
14,
14155,
2640,
14,
35955,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5464,
62,
7890,
62,
15908,
796,
28686,
13,
6978,
13,
22179,
7,
35352,
62,
15908,
11,
366,
15842,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
35352,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7800,
357,
13499,
11,
651,
62,
35352,
62,
9531,
62,
9641,
7,
35352,
62,
15908,
11,
5464,
62,
7890,
62,
15908,
4008,
198,
220,
220,
220,
1288,
361,
25064,
13,
24254,
13,
9688,
2032,
342,
7203,
23289,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
598,
62,
4868,
796,
685,
418,
13,
6978,
13,
11201,
392,
7220,
7203,
93,
14,
35955,
14,
16066,
14,
17171,
14,
23344,
15885,
4943,
60,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5464,
62,
15908,
287,
598,
62,
4868,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
409,
68,
796,
28686,
13,
6978,
13,
22179,
7,
35352,
62,
15908,
11,
366,
17171,
14,
35955,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5464,
62,
7890,
62,
15908,
796,
28686,
13,
6978,
13,
22179,
7,
35352,
62,
15908,
11,
366,
17171,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
35352,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7800,
357,
13499,
11,
651,
62,
35352,
62,
9531,
62,
9641,
7,
35352,
62,
15908,
11,
5464,
62,
7890,
62,
15908,
4008,
628,
198,
198,
4299,
651,
62,
35352,
62,
9531,
62,
9641,
7,
35352,
62,
1324,
11,
5464,
62,
7890,
62,
15908,
2599,
198,
220,
220,
220,
37227,
14478,
262,
598,
290,
663,
12058,
14,
6601,
8619,
13,
198,
220,
220,
220,
383,
598,
815,
886,
351,
45302,
1324,
6,
357,
2640,
55,
8,
393,
45302,
13499,
6,
357,
11209,
8,
198,
220,
220,
220,
16409,
257,
2196,
513,
12,
83,
29291,
588,
5855,
20,
1600,
366,
21,
1600,
366,
16,
4943,
393,
5855,
5539,
1600,
366,
16,
1600,
366,
16,
11074,
198,
220,
220,
220,
8314,
407,
1441,
597,
35488,
274,
588,
366,
79,
19,
1,
393,
366,
69,
18,
1911,
198,
220,
220,
220,
7567,
2696,
6803,
929,
12331,
319,
5287,
526,
15931,
628,
220,
220,
220,
1303,
770,
2499,
329,
642,
13,
87,
355,
880,
355,
2177,
13,
87,
290,
2864,
13,
87,
11,
475,
407,
13130,
13,
87,
198,
220,
220,
220,
2353,
363,
8463,
3536,
62,
15908,
796,
28686,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
5464,
62,
7890,
62,
15908,
11,
366,
27813,
13511,
14,
35955,
14,
27813,
13511,
1,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
8002,
363,
8463,
3536,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
5301,
4706,
468,
3891,
588,
366,
20,
13,
21,
13,
18,
1911,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
11,
288,
17062,
11,
4808,
796,
1306,
7,
418,
13,
11152,
7,
8002,
363,
8463,
3536,
62,
15908,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
15908,
82,
8,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
21136,
62,
9641,
7,
15908,
82,
58,
15,
12962,
628,
220,
220,
220,
1303,
770,
2499,
329,
642,
13,
87,
10050,
11,
475,
407,
2177,
13,
87,
198,
220,
220,
220,
23696,
62,
9641,
796,
28686,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
5464,
62,
7890,
62,
15908,
11,
366,
35955,
11627,
5736,
14,
35955,
14,
35955,
37702,
14094,
14,
9641,
1,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
38200,
14094,
62,
9641,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
38200,
14094,
62,
9641,
8,
355,
1167,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
21136,
62,
9641,
7,
10745,
13,
961,
28955,
628,
220,
220,
220,
1303,
16926,
46,
7,
79,
335,
2599,
1114,
13130,
11,
3863,
2989,
262,
13103,
13,
17752,
2393,
329,
13042,
198,
220,
220,
220,
1303,
588,
366,
35955,
40786,
12,
25934,
12,
15514,
12,
1640,
12,
17171,
12,
27,
9641,
29,
13984,
887,
326,
198,
220,
220,
220,
1303,
2393,
1595,
470,
2107,
287,
262,
5464,
1366,
8619,
290,
340,
1244,
407,
198,
220,
220,
220,
1303,
2152,
379,
477,
329,
4100,
2640,
13,
628,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
357,
22478,
11,
4159,
11,
4580,
8,
796,
14111,
11249,
13,
26791,
13,
1136,
62,
7753,
62,
9641,
7,
35352,
62,
1324,
8,
198,
220,
220,
220,
2845,
6803,
929,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
9175,
2111,
26,
356,
423,
530,
938,
2121,
1891,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
2536,
7,
22478,
828,
965,
7,
1084,
273,
828,
965,
7,
24055,
4008,
628,
220,
220,
220,
1303,
314,
460,
470,
1064,
257,
835,
284,
651,
262,
2196,
503,
286,
13130,
13,
87,
13,
198,
220,
220,
220,
1303,
770,
318,
2495,
474,
39556,
523,
691,
779,
329,
21835,
290,
13130,
13,
198,
220,
220,
220,
329,
285,
287,
302,
13,
19796,
2676,
7,
81,
1,
35955,
29006,
35955,
62,
19427,
7,
23344,
19415,
12195,
59,
67,
10,
19415,
12195,
59,
67,
28988,
1600,
5464,
62,
7890,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
11,
1688,
11,
4159,
11,
966,
796,
285,
13,
24432,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1005,
796,
357,
22478,
11,
4159,
11,
966,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
31502,
25,
4064,
82,
1262,
2121,
1891,
284,
5004,
18714,
2196,
4064,
82,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4064,
357,
35352,
62,
7890,
62,
15908,
11,
1005,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1005,
198,
220,
220,
220,
329,
285,
287,
302,
13,
19796,
2676,
7,
81,
1,
35955,
14,
16066,
14,
17171,
29006,
23344,
19415,
12195,
59,
67,
10,
19415,
12195,
59,
67,
28988,
1600,
5464,
62,
7890,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1688,
11,
4159,
11,
966,
796,
285,
13,
24432,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1005,
796,
357,
22478,
11,
4159,
11,
966,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
31502,
25,
4064,
82,
1262,
2121,
1891,
284,
5004,
18714,
2196,
4064,
82,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4064,
357,
35352,
62,
7890,
62,
15908,
11,
1005,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1005,
628,
220,
220,
220,
5298,
6803,
929,
12331,
7203,
4,
82,
25,
26003,
5004,
18714,
2196,
1,
4064,
5464,
62,
7890,
62,
15908,
8,
628,
198,
4299,
651,
62,
16302,
62,
9531,
62,
9641,
7,
16302,
62,
15908,
2599,
198,
220,
220,
220,
37227,
35561,
257,
357,
22478,
11,
4159,
11,
966,
8,
46545,
526,
15931,
198,
220,
220,
220,
24714,
796,
28686,
13,
6978,
13,
22179,
7,
16302,
62,
15908,
11,
366,
16775,
26232,
14,
16775,
14815,
13,
14116,
4943,
198,
220,
220,
220,
351,
1280,
7,
22184,
8,
355,
1167,
25,
198,
220,
220,
220,
220,
220,
220,
220,
285,
796,
302,
13,
12947,
7,
81,
1,
61,
76,
62,
17171,
14815,
25,
357,
15885,
42501,
1167,
13,
961,
22784,
9701,
28,
260,
13,
44,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
21136,
62,
9641,
7,
76,
13,
8094,
7,
16,
4008,
628,
198,
198,
4299,
11629,
62,
5589,
5329,
62,
22915,
7,
6404,
2599,
198,
220,
220,
220,
37227,
56,
1164,
82,
8633,
82,
7268,
262,
8251,
25,
198,
220,
220,
220,
8420,
8189,
11,
23340,
18108,
32165,
495,
11,
503,
7753,
11,
14367,
448,
11,
336,
1082,
81,
37811,
198,
220,
220,
220,
1303,
3082,
576,
5072,
3073,
588,
428,
25,
198,
220,
220,
220,
1303,
37404,
7293,
5329,
26410,
21912,
19282,
448,
438,
37023,
8189,
25,
352,
438,
5589,
10520,
18108,
32165,
495,
25,
6407,
438,
448,
7753,
25,
24189,
14,
49670,
12,
34,
44336,
12,
17171,
13,
12736,
198,
220,
220,
220,
1303,
3082,
10520,
4054,
25,
352,
4049,
7,
82,
828,
657,
14601,
198,
220,
220,
220,
1303,
37404,
7293,
5329,
26410,
21912,
301,
1082,
81,
35937,
198,
220,
220,
220,
1303,
41059,
14,
17171,
14,
15580,
51,
2326,
9414,
1530,
13,
6359,
7,
2091,
11,
22,
2599,
4049,
9429,
1314,
1129,
25,
1279,
14784,
3503,
29,
198,
220,
220,
220,
1303,
37404,
12915,
7293,
5329,
26410,
24305,
198,
220,
220,
220,
1458,
796,
302,
13,
5589,
576,
7,
198,
220,
220,
220,
220,
220,
220,
220,
374,
37811,
198,
220,
10563,
30934,
7293,
5329,
26410,
21912,
19282,
448,
7,
30,
47,
27,
38993,
29,
15885,
10091,
3467,
77,
198,
220,
357,
30,
47,
27,
2618,
29,
15885,
10091,
3467,
77,
198,
220,
220,
37404,
12915,
7293,
5329,
26410,
15931,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
302,
13,
35,
2394,
7036,
930,
302,
13,
44,
16724,
4146,
8881,
930,
302,
13,
5959,
33,
14058,
11,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
329,
285,
287,
1458,
13,
19796,
2676,
7,
6404,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
288,
310,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
329,
16058,
287,
285,
13,
8094,
7203,
38993,
11074,
35312,
7203,
438,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
16058,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
11,
1988,
796,
16058,
13,
35312,
7,
1298,
33172,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
310,
58,
2539,
60,
796,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
288,
310,
14692,
37023,
8189,
8973,
796,
493,
7,
67,
310,
14692,
37023,
8189,
8973,
8,
198,
220,
220,
220,
220,
220,
220,
220,
288,
310,
14692,
5589,
10520,
18108,
32165,
495,
8973,
796,
288,
310,
14692,
5589,
10520,
18108,
32165,
495,
8973,
14512,
366,
25101,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1767,
796,
285,
13,
8094,
7203,
2618,
11074,
36311,
22446,
35312,
7203,
30934,
7293,
5329,
26410,
21912,
301,
1082,
81,
35937,
59,
77,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
288,
310,
14692,
19282,
448,
8973,
796,
1767,
58,
15,
4083,
36311,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
288,
310,
14692,
301,
1082,
81,
8973,
796,
1767,
58,
16,
4083,
36311,
3419,
611,
18896,
7,
2618,
8,
1875,
352,
2073,
13538,
198,
220,
220,
220,
220,
220,
220,
220,
7800,
288,
310,
628,
198,
4299,
2198,
62,
5589,
576,
62,
22915,
7,
6404,
2599,
198,
220,
220,
220,
37227,
21762,
2696,
10934,
37,
6255,
611,
17632,
8563,
389,
1043,
13,
198,
220,
220,
220,
1338,
15515,
284,
336,
1082,
81,
611,
17632,
14601,
389,
1043,
526,
15931,
198,
220,
220,
220,
288,
310,
82,
796,
1351,
7,
2676,
62,
5589,
5329,
62,
22915,
7,
6404,
4008,
198,
220,
220,
220,
17050,
62,
22915,
796,
37082,
77,
1911,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3404,
13,
36311,
3419,
329,
288,
310,
287,
288,
310,
82,
329,
3404,
287,
685,
67,
310,
14692,
301,
1082,
81,
33116,
288,
310,
14692,
19282,
448,
8973,
60,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
611,
597,
7,
67,
310,
14692,
5589,
10520,
18108,
32165,
495,
8973,
329,
288,
310,
287,
288,
310,
82,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
34879,
7584,
340,
287,
336,
1082,
81,
26,
10018,
6213,
7584,
340,
287,
14367,
448,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
887,
0,
18714,
2864,
635,
3607,
514,
257,
922,
1382,
989,
11,
523,
356,
1244,
307,
1498,
284,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
651,
262,
17050,
15536,
422,
262,
1382,
989,
2427,
286,
428,
13400,
32096,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
832,
18714,
338,
2604,
2393,
13,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
10934,
37,
6255,
7203,
7293,
576,
59,
77,
4,
82,
1,
4064,
33793,
7203,
91,
33172,
17050,
62,
22915,
4008,
198,
220,
220,
220,
611,
17050,
62,
22915,
14512,
366,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
7293,
576,
14601,
7479,
77,
4,
82,
1,
4064,
33793,
7203,
91,
33172,
17050,
62,
22915,
828,
2393,
28,
17597,
13,
301,
1082,
81,
8,
628,
198,
4299,
2989,
62,
1891,
2017,
7,
5239,
11,
923,
62,
4122,
11,
4179,
11,
3912,
2599,
198,
220,
220,
220,
37227,
18243,
262,
2837,
685,
32374,
11,
923,
62,
4122,
60,
329,
10245,
286,
930,
33279,
91,
13,
198,
220,
220,
220,
16409,
262,
530,
11706,
284,
930,
9688,
62,
4122,
91,
13,
198,
220,
220,
220,
16409,
930,
32374,
91,
611,
4844,
389,
1043,
526,
15931,
198,
220,
220,
220,
6818,
4179,
1279,
923,
62,
4122,
198,
220,
220,
220,
7466,
796,
1351,
7,
33279,
13,
19796,
2676,
7,
5239,
58,
32374,
25,
9688,
62,
4122,
60,
4008,
198,
220,
220,
220,
611,
18896,
7,
6759,
2052,
8,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4179,
198,
220,
220,
220,
1441,
4179,
1343,
7466,
58,
12,
16,
4083,
9688,
7,
15,
8,
628,
198,
4299,
16602,
62,
9531,
62,
32165,
495,
7,
37023,
8189,
11,
2604,
2599,
198,
220,
220,
220,
37227,
21762,
786,
10934,
37,
6255,
351,
355,
881,
1321,
546,
262,
5287,
355,
1744,
526,
15931,
198,
220,
220,
220,
1303,
10934,
13269,
804,
588,
428,
25,
198,
220,
220,
220,
1303,
10934,
37,
6255,
16922,
25,
9959,
15580,
34182,
8794,
4054,
25,
198,
220,
220,
220,
1303,
770,
318,
257,
31548,
4049,
4211,
198,
220,
220,
220,
1303,
220,
220,
379,
10934,
51,
2326,
9414,
1530,
13,
5211,
15580,
357,
15580,
29046,
3689,
11,
10934,
21745,
2496,
11,
4482,
13,
10100,
4067,
11,
311,
34388,
19076,
410,
81,
50,
34388,
11,
41146,
318,
20468,
9134,
11,
4482,
13,
10100,
17977,
8,
685,
15,
87,
405,
2075,
64,
60,
287,
327,
7479,
10677,
59,
83,
65,
59,
8021,
1039,
59,
17171,
59,
15580,
51,
2326,
9414,
1530,
13,
6359,
25,
31794,
198,
220,
220,
220,
1303,
220,
220,
379,
10934,
51,
2326,
9414,
1530,
13,
21575,
13949,
7499,
685,
15,
87,
8298,
2934,
60,
287,
327,
7479,
10677,
59,
83,
65,
59,
8021,
1039,
59,
17171,
59,
15580,
51,
2326,
9414,
1530,
13,
6359,
25,
25191,
628,
220,
220,
220,
1382,
62,
47904,
62,
8071,
796,
302,
13,
5589,
576,
7,
198,
220,
220,
220,
220,
220,
220,
220,
374,
37811,
15580,
37,
6255,
16922,
7479,
9959,
7,
30,
47,
27,
11213,
29,
15885,
10091,
4211,
198,
220,
220,
220,
220,
220,
357,
30,
47,
27,
40546,
1891,
29,
357,
59,
77,
59,
3467,
379,
59,
685,
61,
59,
77,
48688,
27493,
1267,
15931,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
302,
13,
35,
2394,
7036,
930,
302,
13,
44,
16724,
4146,
8881,
930,
302,
13,
5959,
33,
14058,
11,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
285,
796,
1382,
62,
47904,
62,
8071,
13,
12947,
7,
6404,
8,
198,
220,
220,
220,
611,
285,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
10934,
37,
6255,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34,
2,
4376,
10934,
37,
6255,
16922,
59,
77,
4,
82,
59,
77,
91,
11420,
59,
77,
4,
82,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4064,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33793,
7203,
91,
33172,
285,
13,
8094,
7203,
40546,
1891,
11074,
36311,
3419,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33793,
7203,
91,
33172,
285,
13,
8094,
7203,
11213,
11074,
36311,
3419,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
5387,
62,
18224,
62,
8071,
796,
302,
13,
5589,
576,
7,
198,
220,
220,
220,
220,
220,
220,
220,
374,
1,
61,
41049,
17410,
2446,
357,
30,
47,
27,
24396,
3672,
29,
15885,
8,
9617,
6631,
59,
33283,
302,
13,
44,
16724,
4146,
8881,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
285,
796,
5387,
62,
18224,
62,
8071,
13,
12947,
7,
6404,
8,
198,
220,
220,
220,
611,
285,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6631,
62,
8071,
796,
302,
13,
5589,
576,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
1,
61,
58,
32,
12,
57,
7131,
32,
12,
57,
64,
12,
89,
15,
12,
24,
60,
33747,
16922,
91,
12331,
2599,
1600,
302,
13,
44,
16724,
4146,
8881,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
923,
796,
2989,
62,
1891,
2017,
7,
6404,
11,
285,
13,
9688,
7,
15,
828,
285,
13,
9688,
7,
15,
8,
532,
28119,
11,
6631,
62,
8071,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
796,
285,
13,
437,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
13678,
62,
16864,
796,
2604,
58,
9688,
25,
437,
60,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
10934,
37,
6255,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
15580,
4226,
705,
4,
82,
6,
550,
281,
5387,
4049,
13,
198,
30746,
806,
2604,
6903,
25,
198,
4,
82,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4064,
357,
76,
13,
8094,
7203,
24396,
3672,
12340,
33793,
7203,
91,
33172,
13678,
62,
16864,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
1303,
6822,
329,
10934,
51,
2326,
9414,
1530,
13,
32423,
3419,
198,
220,
220,
220,
275,
83,
65,
62,
11979,
62,
8071,
796,
302,
13,
5589,
576,
7,
198,
220,
220,
220,
220,
220,
220,
220,
374,
1,
62,
18347,
65,
62,
2275,
419,
9959,
7,
30,
47,
27,
11213,
29,
15885,
10091,
4211,
1600,
302,
13,
35,
2394,
7036,
930,
302,
13,
44,
16724,
4146,
8881,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
285,
796,
275,
83,
65,
62,
11979,
62,
8071,
13,
12947,
7,
6404,
8,
198,
220,
220,
220,
611,
285,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
10934,
37,
6255,
7203,
34,
2,
1444,
6733,
4064,
82,
705,
4,
82,
29653,
4064,
357,
37023,
8189,
11,
285,
13,
8094,
7203,
11213,
1,
22305,
628,
220,
220,
220,
611,
8420,
8189,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
10934,
37,
6255,
7203,
35955,
1382,
2331,
284,
423,
587,
23083,
41370,
4943,
198,
220,
220,
220,
5298,
10934,
37,
6255,
7,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
35955,
1382,
4054,
351,
8420,
2438,
4064,
82,
475,
645,
8563,
1775,
198,
1212,
2192,
1724,
262,
1628,
318,
1541,
1280,
287,
18714,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
4064,
8420,
8189,
198,
220,
220,
220,
1267,
628,
628,
198,
6489,
1404,
21389,
62,
10468,
62,
4944,
9050,
51,
46095,
796,
1391,
198,
220,
220,
220,
366,
11209,
1298,
366,
1273,
7642,
505,
11209,
2414,
1600,
198,
220,
220,
220,
366,
2640,
55,
1298,
366,
1273,
7642,
505,
2640,
55,
1600,
198,
220,
220,
220,
366,
19314,
1298,
366,
1273,
7642,
505,
19314,
2414,
1600,
198,
220,
220,
220,
366,
25934,
1298,
366,
25934,
1600,
198,
220,
220,
220,
366,
35742,
1298,
366,
35742,
1600,
198,
92,
628,
198,
4299,
1382,
7,
198,
220,
220,
220,
17977,
11,
198,
220,
220,
220,
5072,
62,
15908,
11,
198,
220,
220,
220,
1628,
62,
15908,
11,
198,
220,
220,
220,
409,
68,
62,
8692,
62,
3672,
11,
220,
1303,
279,
2645,
600,
25,
15560,
28,
18820,
12,
21834,
12,
14269,
3196,
11,
18820,
12,
21834,
12,
1671,
12140,
11,
18820,
12,
21834,
12,
17946,
874,
11,
18820,
12,
21834,
12,
853,
2886,
198,
220,
220,
220,
11992,
11,
198,
220,
220,
220,
3859,
11,
198,
220,
220,
220,
4229,
17,
20322,
11,
198,
220,
220,
220,
410,
3808,
34388,
11,
198,
220,
220,
220,
4566,
11,
198,
220,
220,
220,
329,
62,
17080,
3890,
11,
198,
220,
220,
220,
318,
62,
48796,
5331,
11,
198,
2599,
198,
220,
220,
220,
37227,
16447,
257,
1382,
286,
309,
2326,
39846,
13,
198,
220,
220,
220,
6251,
25,
198,
220,
220,
220,
220,
220,
17977,
532,
4731,
12059,
262,
2196,
10,
11249,
26,
481,
307,
14553,
656,
262,
1382,
7599,
13,
198,
220,
220,
220,
220,
220,
5072,
62,
15908,
532,
10348,
5072,
8619,
1438,
198,
220,
220,
220,
220,
220,
1628,
62,
15908,
532,
8619,
1438,
198,
220,
220,
220,
220,
220,
1628,
62,
3672,
532,
1438,
286,
262,
28883,
284,
2251,
357,
82,
504,
7552,
8,
198,
220,
220,
220,
220,
220,
11992,
532,
25131,
198,
220,
220,
220,
220,
220,
3859,
532,
530,
286,
357,
11209,
11,
7294,
55,
11,
7020,
11,
5565,
11,
8969,
8,
198,
220,
220,
220,
220,
220,
4229,
17,
20322,
532,
25131,
198,
220,
220,
220,
220,
220,
410,
3808,
34388,
532,
17056,
13,
50,
34388,
19076,
26,
4938,
3815,
389,
357,
46,
17576,
11,
9094,
13024,
11,
2892,
48228,
8,
198,
220,
220,
220,
220,
220,
4566,
532,
530,
286,
357,
27509,
11,
13868,
8,
198,
220,
220,
220,
220,
220,
329,
62,
17080,
3890,
532,
25131,
13,
2039,
2977,
19286,
8415,
11,
2196,
2438,
13852,
11,
9934,
286,
279,
9945,
3696,
13,
198,
220,
220,
220,
220,
220,
318,
62,
48796,
5331,
532,
25131,
26,
973,
284,
24184,
14367,
448,
18931,
198,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
262,
4036,
5072,
8619,
973,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
14111,
11249,
13,
26791,
13,
41659,
7,
22915,
62,
15908,
8,
198,
220,
220,
220,
2845,
35528,
355,
304,
25,
220,
1303,
279,
2645,
600,
25,
15560,
28,
36654,
12,
16341,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
37771,
25,
714,
407,
779,
4064,
82,
25,
4064,
82,
1,
4064,
357,
22915,
62,
15908,
11,
304,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
15908,
796,
787,
62,
403,
1484,
62,
34945,
62,
3672,
7,
22915,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
37771,
25,
1262,
4064,
82,
493,
1329,
1,
4064,
5072,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
14111,
11249,
13,
26791,
13,
41659,
7,
22915,
62,
15908,
8,
198,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
22915,
62,
15908,
8,
198,
220,
220,
220,
2604,
7753,
796,
28686,
13,
6978,
13,
22179,
7,
22915,
62,
15908,
11,
366,
11249,
62,
6404,
13,
14116,
4943,
628,
220,
220,
220,
409,
68,
62,
3672,
796,
28686,
13,
6978,
13,
22179,
7,
22915,
62,
15908,
11,
651,
62,
13499,
62,
3672,
7,
24254,
11,
409,
68,
62,
8692,
62,
3672,
4008,
198,
220,
220,
220,
23991,
62,
24330,
796,
28686,
13,
268,
2268,
13,
30073,
3419,
198,
220,
220,
220,
23991,
1370,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
651,
62,
9531,
62,
13499,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
651,
62,
16302,
62,
9531,
62,
9641,
7,
16302,
62,
15908,
828,
18896,
1153,
28,
271,
62,
48796,
5331,
393,
318,
62,
23289,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
27444,
6404,
8979,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
7753,
11,
198,
220,
220,
220,
220,
220,
220,
220,
27444,
43501,
14171,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
705,
12,
77,
24188,
3256,
220,
220,
24213,
307,
2622,
319,
7294,
55,
611,
2491,
266,
14,
78,
4324,
4382,
30,
198,
220,
220,
220,
220,
220,
220,
220,
27444,
16302,
15235,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
1628,
62,
15908,
11,
198,
220,
220,
220,
220,
220,
220,
220,
27444,
41049,
17410,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
15580,
51,
2326,
9414,
1530,
13,
21575,
13949,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
27444,
18347,
65,
12,
16793,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
9297,
1404,
21389,
62,
10468,
62,
4944,
9050,
51,
46095,
58,
24254,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
27444,
18347,
65,
12,
448,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
409,
68,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
27444,
18347,
65,
12,
13812,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
410,
3808,
34388,
11,
198,
220,
220,
220,
2361,
198,
220,
220,
220,
611,
11992,
25,
198,
220,
220,
220,
220,
220,
220,
220,
23991,
1370,
13,
33295,
7203,
12,
18347,
65,
12,
23100,
9134,
4943,
628,
220,
220,
220,
611,
4229,
17,
20322,
25,
198,
220,
220,
220,
220,
220,
220,
220,
23991,
1370,
13,
33295,
7203,
12,
18347,
65,
12,
346,
17,
20322,
4943,
628,
220,
220,
220,
1303,
1351,
286,
12777,
2374,
25,
198,
220,
220,
220,
1303,
532,
262,
1438,
286,
262,
49920,
287,
262,
2858,
357,
1640,
21835,
8,
198,
220,
220,
220,
1303,
532,
262,
1438,
286,
262,
49920,
287,
262,
1994,
8095,
357,
1640,
14333,
779,
8,
198,
220,
220,
220,
2672,
62,
66,
445,
14817,
796,
17635,
628,
220,
220,
220,
611,
329,
62,
17080,
3890,
290,
3859,
6624,
366,
25934,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
611,
410,
3808,
34388,
14512,
366,
46,
17576,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
10934,
37,
6255,
7203,
11712,
278,
318,
3058,
691,
9177,
329,
22334,
6785,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
8095,
796,
28686,
13,
6978,
13,
397,
2777,
776,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
6978,
13,
22179,
7,
16302,
62,
15908,
11,
366,
15514,
14,
9218,
43409,
14,
51,
2326,
9414,
1530,
13,
2539,
8095,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
8095,
796,
1994,
8095,
13,
33491,
7203,
14,
1600,
366,
6852,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
2539,
8095,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
10934,
37,
6255,
7203,
2514,
1051,
345,
761,
4064,
82,
13,
59,
77,
1,
4064,
1994,
8095,
8,
628,
220,
220,
220,
220,
220,
220,
220,
23991,
1370,
13,
2302,
437,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27444,
18347,
65,
12,
2539,
8095,
12,
3672,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
8095,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27444,
18347,
65,
12,
2539,
26011,
12,
3672,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
420,
23515,
6138,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
2672,
62,
66,
445,
14817,
13,
2302,
437,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5855,
19313,
33,
62,
20373,
2257,
6965,
62,
47924,
1600,
366,
51,
2326,
39846,
1994,
8095,
9206,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5855,
19313,
33,
62,
20373,
1847,
43429,
62,
47924,
1600,
366,
51,
2326,
39846,
22334,
6785,
8415,
1994,
9206,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
23991,
1370,
13,
2302,
437,
7,
14692,
12,
18347,
65,
12,
301,
696,
1600,
17977,
12962,
628,
220,
220,
220,
611,
4566,
6624,
366,
27509,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
23991,
1370,
13,
2302,
437,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27444,
18347,
65,
12,
65,
8738,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41206,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27444,
18347,
65,
12,
65,
8738,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
35265,
27509,
2667,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
23991,
1370,
13,
33295,
7203,
12,
47391,
4943,
628,
220,
220,
220,
1336,
62,
9641,
796,
36521,
82,
12,
4,
82,
1,
4064,
357,
1136,
62,
437,
62,
7220,
62,
9641,
7,
16302,
62,
15908,
828,
17977,
8,
628,
220,
220,
220,
1303,
8099,
5039,
2858,
351,
13141,
655,
878,
4585,
850,
14681,
198,
220,
220,
220,
329,
357,
24330,
62,
7785,
11,
49920,
62,
3672,
8,
287,
2672,
62,
66,
445,
14817,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
17365,
62,
7785,
407,
287,
23991,
62,
24330,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
62,
48796,
5331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
16926,
46,
7,
79,
335,
2599,
6803,
656,
21835,
20652,
284,
651,
379,
777,
18031,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
10934,
37,
6255,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
34,
445,
1843,
36521,
82,
1,
318,
4814,
422,
21835,
1382,
2858,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4064,
17365,
62,
7785,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
24330,
58,
24330,
62,
7785,
60,
796,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
651,
62,
66,
445,
1843,
7,
66,
445,
1843,
62,
3672,
737,
1136,
62,
21078,
22446,
268,
8189,
7203,
292,
979,
72,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
13834,
796,
850,
14681,
13,
47,
9654,
7,
28758,
1370,
11,
14367,
448,
28,
17597,
13,
19282,
448,
11,
336,
1082,
81,
28,
17597,
13,
301,
1082,
81,
11,
17365,
28,
28758,
62,
24330,
8,
198,
220,
220,
220,
1619,
23991,
62,
24330,
628,
220,
220,
220,
351,
14111,
11249,
13,
26791,
13,
641,
495,
62,
23705,
378,
7,
36942,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
351,
5972,
51,
603,
263,
7,
6404,
7753,
11,
10058,
28,
271,
62,
48796,
5331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
418,
13,
6978,
13,
22179,
7,
22915,
62,
15908,
11,
366,
11249,
62,
301,
696,
13,
14116,
12340,
366,
86,
4943,
355,
503,
69,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
503,
69,
13,
13564,
7,
12853,
62,
9641,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5765,
4043,
3419,
2427,
286,
10996,
3419,
780,
3964,
460,
470,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
11313,
262,
4704,
15449,
326,
10996,
3419,
3544,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13834,
13,
17077,
3419,
628,
220,
220,
220,
351,
1280,
7,
6404,
7753,
8,
355,
1167,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
796,
1167,
13,
961,
22446,
33491,
7203,
59,
81,
1600,
366,
4943,
628,
220,
220,
220,
2198,
62,
5589,
576,
62,
22915,
7,
6404,
8,
628,
220,
220,
220,
611,
13834,
13,
7783,
8189,
14512,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
16602,
62,
9531,
62,
32165,
495,
7,
36942,
13,
7783,
8189,
11,
2604,
8,
628,
220,
220,
220,
1303,
34182,
12,
41004,
1201,
356,
1053,
587,
4379,
2089,
22334,
12188,
198,
220,
220,
220,
611,
3859,
6624,
366,
11209,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
2672,
62,
16624,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
277,
287,
2672,
62,
16624,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
418,
13,
6978,
13,
22179,
7,
22915,
62,
15908,
11,
277,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
10934,
37,
6255,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
15580,
318,
4814,
262,
2393,
705,
4,
82,
6,
198,
1212,
318,
257,
1900,
18714,
5434,
290,
262,
691,
1517,
284,
466,
318,
1949,
262,
1382,
198,
2502,
290,
625,
757,
1566,
340,
2499,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4064,
277,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
1441,
5072,
62,
15908,
628,
198,
4299,
2457,
1096,
62,
11249,
7,
10677,
62,
15908,
11,
29636,
62,
15908,
2599,
198,
220,
220,
220,
37227,
48452,
284,
1445,
1635,
10677,
62,
15908,
9,
284,
1635,
67,
301,
62,
15908,
24620,
198,
220,
220,
220,
8229,
1635,
67,
301,
62,
15908,
9,
319,
1943,
11,
393,
617,
584,
8619,
1438,
611,
612,
373,
617,
1917,
13,
198,
220,
220,
220,
770,
815,
307,
355,
1969,
284,
17226,
355,
1744,
526,
15931,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
14111,
11249,
13,
26791,
13,
41659,
7,
67,
301,
62,
15908,
8,
198,
220,
220,
220,
2845,
440,
5188,
81,
1472,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
37771,
25,
26003,
4781,
4064,
82,
26,
5137,
5072,
287,
4064,
82,
1,
4064,
357,
67,
301,
62,
15908,
11,
12351,
62,
15908,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
12351,
62,
15908,
628,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
418,
13,
6978,
13,
15908,
3672,
7,
67,
301,
62,
15908,
4008,
198,
220,
220,
220,
2845,
440,
5188,
81,
1472,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
918,
480,
7,
10677,
62,
15908,
11,
29636,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
29636,
62,
15908,
198,
220,
220,
220,
2845,
440,
5188,
81,
1472,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
16926,
46,
7,
79,
335,
2599,
9993,
284,
466,
1223,
1365,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1550,
5966,
338,
3644,
11,
5565,
12188,
1464,
2666,
2157,
257,
7349,
13,
13499,
1429,
326,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6622,
4291,
262,
8619,
290,
15174,
663,
36265,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5298,
18628,
12331,
7203,
6090,
470,
36265,
4064,
82,
284,
4064,
82,
25,
4064,
82,
1,
4064,
357,
10677,
62,
15908,
11,
29636,
62,
15908,
11,
304,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
37771,
25,
26003,
36265,
4064,
82,
26,
4305,
340,
355,
12,
271,
1,
4064,
357,
10677,
62,
15908,
11,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
12351,
62,
15908,
628,
198,
198,
2,
16529,
23031,
198,
2,
8880,
12,
437,
198,
2,
16529,
23031,
628,
628,
198,
4299,
11629,
62,
11249,
82,
7,
22046,
2599,
198,
220,
220,
220,
37227,
56,
1164,
82,
357,
24254,
11,
410,
3808,
34388,
11,
4566,
8,
12777,
2374,
526,
15931,
198,
220,
220,
220,
329,
3859,
287,
26498,
13,
24254,
82,
25,
198,
220,
220,
220,
220,
220,
220,
220,
329,
410,
3808,
34388,
287,
26498,
13,
85,
3808,
67,
591,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
4566,
287,
26498,
13,
11250,
82,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7800,
357,
24254,
11,
410,
3808,
34388,
11,
4566,
8,
628,
198,
4299,
651,
62,
19411,
62,
9641,
62,
8189,
7,
16302,
62,
15908,
2599,
198,
220,
220,
220,
37227,
35561,
262,
18253,
5565,
33,
31249,
14815,
10669,
11,
393,
12073,
6803,
929,
12331,
526,
15931,
198,
220,
220,
220,
29472,
796,
28686,
13,
6978,
13,
22179,
7,
16302,
62,
15908,
11,
366,
16775,
26232,
14,
16775,
26232,
13,
562,
316,
4943,
198,
220,
220,
220,
10154,
796,
1280,
7,
34345,
11,
366,
26145,
11074,
961,
3419,
198,
220,
220,
220,
285,
796,
302,
13,
12947,
7,
81,
18109,
30,
27,
28,
25934,
33,
31249,
14815,
10669,
25,
1267,
7,
30,
47,
27,
8189,
29,
59,
67,
28988,
1600,
10154,
8,
198,
220,
220,
220,
611,
285,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
493,
7,
76,
13,
8094,
7203,
8189,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
220,
1303,
279,
2645,
600,
25,
15560,
28,
49382,
12,
16341,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
5298,
6803,
929,
12331,
7203,
8189,
4943,
628,
198,
4299,
900,
62,
19411,
62,
9641,
62,
8189,
7,
16302,
62,
15908,
11,
2438,
2599,
198,
220,
220,
220,
37227,
1532,
1635,
8189,
9,
318,
705,
24988,
434,
3256,
41867,
262,
4683,
2438,
526,
15931,
198,
220,
220,
220,
29472,
796,
28686,
13,
6978,
13,
22179,
7,
16302,
62,
15908,
11,
366,
16775,
26232,
14,
16775,
26232,
13,
562,
316,
4943,
198,
220,
220,
220,
10154,
796,
1280,
7,
34345,
11,
366,
26145,
11074,
961,
3419,
628,
220,
220,
220,
649,
62,
3642,
658,
11,
299,
796,
302,
13,
7266,
77,
7,
198,
220,
220,
220,
220,
220,
220,
220,
374,
18109,
30,
27,
28,
25934,
33,
31249,
14815,
10669,
25,
1267,
7,
30,
47,
27,
8189,
29,
59,
67,
28988,
1600,
9014,
11,
10154,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
611,
299,
1279,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
31502,
25,
22738,
284,
900,
5565,
33,
31249,
14815,
10669,
4943,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1280,
7,
34345,
11,
366,
39346,
11074,
13564,
7,
3605,
62,
3642,
658,
8,
628,
628,
198,
198,
2,
30307,
198,
198,
2,
770,
2438,
2331,
2138,
8584,
26,
8856,
597,
290,
477,
14601,
198,
2,
279,
2645,
600,
25,
15560,
28,
439,
198,
2,
781,
539,
23,
25,
645,
20402,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
3863,
62,
16963,
457,
62,
392,
62,
2617,
62,
9641,
62,
8189,
7,
418,
13,
1136,
66,
16993,
28955,
198
] | 2.41946 | 10,113 |
# Импорты
import pip
try:
__import__('matplotlib')
except ImportError:
pip.main([ 'install', 'matplotlib' ])
try:
__import__('pandas')
except ImportError:
pip.main([ 'install', 'pandas' ])
try:
__import__('numpy')
except ImportError:
pip.main([ 'install', 'numpy' ])
try:
__import__('scipy')
except ImportError:
pip.main([ 'install', 'scipy' ])
try:
__import__('pywt')
except ImportError:
pip.main([ 'install', 'pywt' ])
try:
__import__('pylab')
except ImportError:
pip.main([ 'install', 'pylab' ])
try:
__import__('csv')
except ImportError:
pip.main([ 'install', 'csv' ])
try:
__import__('datetime')
except ImportError:
pip.main([ 'install', 'datetime' ])
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from scipy.fft import fft,fftfreq
import pywt
import pylab
import csv
from datetime import datetime
# Расчет коэффициентов несинусоидальности
# функция для дисперсии
def make_plots(x, y, label, color, linewidth=2): # функция для графика синусоиды или частотного спектра
"""
Отдельная функция для построения графика (с определенным форматом легенды, чтобы можно было помногу раз обращаться в программе)
:params label: str - надпись на графике
:params y: list - список из Y-значений
:params x: list - список из X-значений
:params color: str - цвет линии графика
:params linewidth: int - толщина линии графика
:return spisok: list - список из вложенных списков значений X и Y
"""
plt.plot(x, y, color=color, linewidth=linewidth, label=label)
plt.legend(loc='upper right')
def make_plots_wavelet(x, y, approx, decomp, filename): # функция для графика декомпозиций
"""
Построение апроксимирующей функции для вейвлет-декомпозиций 0 и 4 уровней, а также самих вейвлетов
:params approx: list - список из вложенных списков Y-значений для апроксимаций и вейвлетов
:params decomp: int - уровень декомпозиции
:params x: list - список из X-значений
:params y: list - список из Y-значений
:params filename: str - имя файла
:return spisok: list - список из вложенных списков значений X и Y
"""
l = 'upper right'
fig = plt.figure(figsize=(10, 7))
ax = plt.subplot(111)
box = ax.get_position()
ax.set_position([box.x0, box.y0, box.width * 0.2, box.height])
ax.legend(loc='center left', bbox_to_anchor=(1, 0.5))
plt.subplot(decomp + 4, 1, 1)
make_plots(x, y, label='Входные данные', color='g')
plt.subplot(decomp + 4, 1, 2)
plt.plot(approx[0][0], color='red', linewidth=3, label='Аппроксимирующая функция 0')
plt.subplot(decomp + 4, 1, 3)
plt.plot(approx[4][0], color='red', linewidth=3, label='Аппроксимирующая функция 4')
for i in range(decomp):
plt.subplot(decomp + 4, 1, i + 4)
if (i == decomp):
linewidth, color = 3, 'b'
plt.plot(approx[i + 1][1][10:-10], label='Вейвлет декомпозиция ' + str(i + 1) + ' уровня')
plt.legend(loc=l)
plt.gcf().set_size_inches(18, 11)
def Read_csv_real(filename): # Считывание реальной выборки
"""
Отдельная функция для считывания файла с валютой (потому что там данные записаны
совершенно по-другому нежели чем в файлах с выборкой от преподавателя)
:params filename: str - имя файла
:return spisok: list - список из вложенных списков значений X и Y
"""
with open(filename, encoding='unicode_escape') as csv_file:
file_reader = csv.DictReader(csv_file)
y = []
spisok = []
for col in file_reader:
float_part = (list(col.values())[1])[0].split(';')[0]
l = float((list(col.values())[0]).split(';')[2] + '.' + float_part)
y.append(l)
x = list(np.linspace(start=1, stop=len(y), num=len(y)))
spisok.append(x)
spisok.append(list(reversed(y)))
return spisok
def Frequency_spectrum(x: list, y: list, filename: str):
"""
Рассчет и построение амплитудно-частотной характеристики сигнала (какой сигнал встречается чаще всего)
:params x: list - X-значения
:params y: list - Y-значения
:params filename: str - имя файла
"""
yf = pylab.fft(y) # быстрое преобразование Фурье
period = len(y) * 0.1 # Период
xf = pylab.fftfreq(len(y), 1 / period)
plt.Figure(figsize=(20, 20))
plt.subplot(1, 3, 1)
make_plots(x, y, filename, 'b', 1) # выводим график исходной функции
plt.subplot(1, 3, 2)
plt.bar(xf, np.abs(yf) * 0.0025, align='center', label='Частотный спектр', color='red') # Гистограмма
plt.legend(loc='upper right')
plt.xlim(-20, 20)
plt.subplot(1, 3, 3)
y_i = pylab.ifft(yf) # восстанавливаем исходный сигнал
make_plots(x, y_i, label='Восстановленный сигнал', color='g') # частотный спектр
plt.gcf().set_size_inches(30, 10)
print('Коэффициент несинусоидальности в комплексной форме:', non_sin_coefficient_Furie((yf)), '\n')
print('Коэффициент несинусоидальности с np.abs():', non_sin_coefficient_Furie((np.abs(yf))), '\n')
print('Дисперсия:', dispersion(np.abs(y_i), y)) # вычисляем дисперсию
def Wavelet_function(x: list, y: list, decomp: int, name: str, filename: str):
"""
Функция считает апроксимации и вейвлет-декомпозиции уровней от 1 до 4. Построение вейвлетов - то же самое, что и АХЧ,
но с зависимостью от времени, показывает частоту сигнала в определенный момент времени
:params x: list - X-значения
:params y: list - Y-значения
:params name: str - название вейвлета
:params decomp: int - уровень декомпозиции
:params filename: str - имя файла
"""
approx = [ pywt.wavedec(y, name, level=i) for i in range(decomp + 1) ]
make_plots_wavelet(x, y, approx, decomp, filename)
def Approximation_Comparison(x: list, y: list, decomp: int, filename: str):
"""
Функция считает и выводи апроксимации для функций на основе X,Y значений и декомпозиции
:params x: list - X-значения
:params y: list - Y-значения
:params decomp: int - уровень декомпозиции
:params filename: str - имя файла
"""
plt.figure(figsize=(10, 7))
names = {'sym6': 'Гаусс', 'haar': 'Хаар', 'bior4.4': 'Мексиканская шляпа', 'db2': 'Добеши'}
colors = [ 'r', 'b', 'g', 'k' ]
plt.subplot(5, 1, 1)
make_plots(x, y, label='Входные данные из: ' + filename + '\n' + 'Длина: ' + str(len(y)), color='m')
for i, keys in enumerate(names):
plt.subplot(5, 1, i + 2)
appr_y = pywt.wavedec(y, keys, level=decomp)[ 0 ]
plt.plot(appr_y, color=colors[ i ], linewidth=3)
print(f'Дисперсия: {dispersion(appr_y, y)} | {names[ keys ]}')
plt.gcf().set_size_inches(15, 12)
def continuos_wavelet_three_dimensional(x: list, y: list, level: int, method: str):
"""
Функция считает и выводи апроксимации для функций на основе X,Y значений и декомпозиции
:params x: list - X-значения
:params y: list - Y-значения
:params level: int - уровень растяжения (2**level)
:params method: str - тип вейвлета, который распознается библиотекой pywt
:params filename: str - имя файла
"""
# вейвлет
widths = np.arange(1, 2 ** (level) - 1)
cwtmatr, freqs = pywt.cwt(y, widths, method)
# cwtmattr - аппроксимация
# freqs - декомпозиция
fig, axs = plt.subplots(2) # задание формы для построения двух сабплотов
axs[ 0 ].plot(x, y)
axs[ 0 ].set_title('Данные из CSV-файла')
axs[ 0 ].grid()
# построение вейвлет-графика
axs[ 1 ].imshow(cwtmatr, extent=[ -1, 1, 1, 2 ** (level) - 1 ], cmap='PuRd', aspect='auto',
vmax=abs(cwtmatr).max(), vmin=-abs(cwtmatr).max())
axs[ 1 ].set_title(f'3D CWT с уровнем растяжения 2^{level}')
fig.tight_layout()
fig.show() | [
2,
12466,
246,
43108,
140,
123,
15166,
21169,
20375,
45035,
198,
198,
11748,
7347,
198,
198,
28311,
25,
198,
220,
220,
220,
11593,
11748,
834,
10786,
6759,
29487,
8019,
11537,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
7347,
13,
12417,
26933,
705,
17350,
3256,
705,
6759,
29487,
8019,
6,
33761,
198,
198,
28311,
25,
198,
220,
220,
220,
11593,
11748,
834,
10786,
79,
392,
292,
11537,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
7347,
13,
12417,
26933,
705,
17350,
3256,
705,
79,
392,
292,
6,
33761,
198,
198,
28311,
25,
198,
220,
220,
220,
11593,
11748,
834,
10786,
77,
32152,
11537,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
7347,
13,
12417,
26933,
705,
17350,
3256,
705,
77,
32152,
6,
33761,
198,
198,
28311,
25,
198,
220,
220,
220,
11593,
11748,
834,
10786,
1416,
541,
88,
11537,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
7347,
13,
12417,
26933,
705,
17350,
3256,
705,
1416,
541,
88,
6,
33761,
198,
198,
28311,
25,
198,
220,
220,
220,
11593,
11748,
834,
10786,
9078,
46569,
11537,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
7347,
13,
12417,
26933,
705,
17350,
3256,
705,
9078,
46569,
6,
33761,
198,
198,
28311,
25,
198,
220,
220,
220,
11593,
11748,
834,
10786,
79,
2645,
397,
11537,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
7347,
13,
12417,
26933,
705,
17350,
3256,
705,
79,
2645,
397,
6,
33761,
198,
198,
28311,
25,
198,
220,
220,
220,
11593,
11748,
834,
10786,
40664,
11537,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
7347,
13,
12417,
26933,
705,
17350,
3256,
705,
40664,
6,
33761,
198,
198,
28311,
25,
198,
220,
220,
220,
11593,
11748,
834,
10786,
19608,
8079,
11537,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
7347,
13,
12417,
26933,
705,
17350,
3256,
705,
19608,
8079,
6,
33761,
628,
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,
6738,
629,
541,
88,
13,
487,
83,
1330,
277,
701,
11,
487,
83,
19503,
80,
198,
11748,
12972,
46569,
198,
11748,
279,
2645,
397,
198,
11748,
269,
21370,
198,
6738,
4818,
8079,
1330,
4818,
8079,
628,
198,
198,
2,
12466,
254,
16142,
21727,
141,
229,
16843,
20375,
12466,
118,
15166,
141,
235,
141,
226,
141,
226,
18849,
141,
228,
18849,
16843,
22177,
20375,
25443,
110,
12466,
121,
16843,
21727,
18849,
22177,
35072,
21727,
15166,
18849,
43666,
16142,
30143,
45367,
22177,
15166,
21727,
20375,
18849,
198,
198,
2,
220,
141,
226,
35072,
22177,
31583,
141,
228,
18849,
40623,
12466,
112,
30143,
40623,
12466,
112,
18849,
21727,
140,
123,
16843,
21169,
21727,
18849,
18849,
198,
198,
4299,
787,
62,
489,
1747,
7,
87,
11,
331,
11,
6167,
11,
3124,
11,
9493,
413,
5649,
28,
17,
2599,
220,
1303,
220,
141,
226,
35072,
22177,
31583,
141,
228,
18849,
40623,
12466,
112,
30143,
40623,
12466,
111,
21169,
16142,
141,
226,
18849,
31583,
16142,
220,
21727,
18849,
22177,
35072,
21727,
15166,
18849,
43666,
45035,
12466,
116,
30143,
18849,
220,
141,
229,
16142,
21727,
20375,
15166,
20375,
22177,
25443,
111,
15166,
220,
21727,
140,
123,
16843,
31583,
20375,
21169,
16142,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
12466,
252,
20375,
43666,
16843,
30143,
45367,
22177,
16142,
40623,
220,
141,
226,
35072,
22177,
31583,
141,
228,
18849,
40623,
12466,
112,
30143,
40623,
12466,
123,
15166,
21727,
20375,
21169,
15166,
16843,
22177,
18849,
40623,
12466,
111,
21169,
16142,
141,
226,
18849,
31583,
16142,
357,
21727,
12466,
122,
140,
123,
21169,
16843,
43666,
16843,
30143,
16843,
22177,
22177,
45035,
43108,
220,
141,
226,
15166,
21169,
43108,
16142,
20375,
25443,
120,
12466,
119,
16843,
140,
111,
16843,
22177,
43666,
45035,
11,
220,
141,
229,
20375,
25443,
109,
45035,
12466,
120,
25443,
114,
22177,
15166,
12466,
109,
45035,
30143,
15166,
12466,
123,
25443,
120,
22177,
25443,
111,
35072,
220,
21169,
16142,
140,
115,
12466,
122,
140,
109,
21169,
16142,
141,
231,
16142,
20375,
45367,
21727,
40623,
12466,
110,
12466,
123,
21169,
25443,
111,
21169,
16142,
43108,
43108,
16843,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
6167,
25,
965,
532,
12466,
121,
16142,
43666,
140,
123,
18849,
21727,
45367,
12466,
121,
16142,
12466,
111,
21169,
16142,
141,
226,
18849,
31583,
16843,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
331,
25,
1351,
532,
220,
21727,
140,
123,
18849,
21727,
25443,
118,
12466,
116,
140,
115,
575,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
140,
117,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
2124,
25,
1351,
532,
220,
21727,
140,
123,
18849,
21727,
25443,
118,
12466,
116,
140,
115,
1395,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
140,
117,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
3124,
25,
965,
532,
220,
141,
228,
38857,
16843,
20375,
12466,
119,
18849,
22177,
18849,
18849,
12466,
111,
21169,
16142,
141,
226,
18849,
31583,
16142,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
9493,
413,
5649,
25,
493,
532,
220,
20375,
25443,
119,
141,
231,
18849,
22177,
16142,
12466,
119,
18849,
22177,
18849,
18849,
12466,
111,
21169,
16142,
141,
226,
18849,
31583,
16142,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
599,
271,
482,
25,
1351,
532,
220,
21727,
140,
123,
18849,
21727,
25443,
118,
12466,
116,
140,
115,
12466,
110,
30143,
25443,
114,
16843,
22177,
22177,
45035,
141,
227,
220,
21727,
140,
123,
18849,
21727,
31583,
25443,
110,
12466,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
140,
117,
1395,
12466,
116,
575,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
458,
83,
13,
29487,
7,
87,
11,
331,
11,
3124,
28,
8043,
11,
9493,
413,
5649,
28,
2815,
413,
5649,
11,
6167,
28,
18242,
8,
198,
220,
220,
220,
458,
83,
13,
1455,
437,
7,
17946,
11639,
45828,
826,
11537,
628,
198,
4299,
787,
62,
489,
1747,
62,
19204,
1616,
7,
87,
11,
331,
11,
5561,
11,
38237,
11,
29472,
2599,
220,
1303,
220,
141,
226,
35072,
22177,
31583,
141,
228,
18849,
40623,
12466,
112,
30143,
40623,
12466,
111,
21169,
16142,
141,
226,
18849,
31583,
16142,
12466,
112,
16843,
31583,
25443,
120,
140,
123,
25443,
115,
18849,
141,
228,
18849,
140,
117,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
12466,
253,
15166,
21727,
20375,
21169,
15166,
16843,
22177,
18849,
16843,
12466,
108,
140,
123,
21169,
25443,
118,
21727,
18849,
43108,
18849,
21169,
35072,
141,
236,
141,
231,
16843,
140,
117,
220,
141,
226,
35072,
22177,
31583,
141,
228,
18849,
18849,
12466,
112,
30143,
40623,
12466,
110,
16843,
140,
117,
38857,
30143,
16843,
20375,
12,
43666,
16843,
31583,
25443,
120,
140,
123,
25443,
115,
18849,
141,
228,
18849,
140,
117,
657,
12466,
116,
604,
220,
35072,
21169,
25443,
110,
22177,
16843,
140,
117,
11,
12466,
108,
220,
20375,
16142,
31583,
140,
114,
16843,
220,
21727,
16142,
43108,
18849,
141,
227,
12466,
110,
16843,
140,
117,
38857,
30143,
16843,
20375,
25443,
110,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
5561,
25,
1351,
532,
220,
21727,
140,
123,
18849,
21727,
25443,
118,
12466,
116,
140,
115,
12466,
110,
30143,
25443,
114,
16843,
22177,
22177,
45035,
141,
227,
220,
21727,
140,
123,
18849,
21727,
31583,
25443,
110,
575,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
140,
117,
12466,
112,
30143,
40623,
12466,
108,
140,
123,
21169,
25443,
118,
21727,
18849,
43108,
16142,
141,
228,
18849,
140,
117,
12466,
116,
12466,
110,
16843,
140,
117,
38857,
30143,
16843,
20375,
25443,
110,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
38237,
25,
493,
532,
220,
35072,
21169,
25443,
110,
16843,
22177,
45367,
12466,
112,
16843,
31583,
25443,
120,
140,
123,
25443,
115,
18849,
141,
228,
18849,
18849,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
2124,
25,
1351,
532,
220,
21727,
140,
123,
18849,
21727,
25443,
118,
12466,
116,
140,
115,
1395,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
140,
117,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
331,
25,
1351,
532,
220,
21727,
140,
123,
18849,
21727,
25443,
118,
12466,
116,
140,
115,
575,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
140,
117,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
29472,
25,
965,
532,
12466,
116,
43108,
40623,
220,
141,
226,
16142,
140,
117,
30143,
16142,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
599,
271,
482,
25,
1351,
532,
220,
21727,
140,
123,
18849,
21727,
25443,
118,
12466,
116,
140,
115,
12466,
110,
30143,
25443,
114,
16843,
22177,
22177,
45035,
141,
227,
220,
21727,
140,
123,
18849,
21727,
31583,
25443,
110,
12466,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
140,
117,
1395,
12466,
116,
575,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
300,
796,
705,
45828,
826,
6,
198,
220,
220,
220,
2336,
796,
458,
83,
13,
26875,
7,
5647,
7857,
16193,
940,
11,
767,
4008,
198,
220,
220,
220,
7877,
796,
458,
83,
13,
7266,
29487,
7,
16243,
8,
198,
220,
220,
220,
3091,
796,
7877,
13,
1136,
62,
9150,
3419,
198,
220,
220,
220,
7877,
13,
2617,
62,
9150,
26933,
3524,
13,
87,
15,
11,
3091,
13,
88,
15,
11,
3091,
13,
10394,
1635,
657,
13,
17,
11,
3091,
13,
17015,
12962,
198,
220,
220,
220,
7877,
13,
1455,
437,
7,
17946,
11639,
16159,
1364,
3256,
275,
3524,
62,
1462,
62,
3702,
273,
16193,
16,
11,
657,
13,
20,
4008,
198,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
12501,
3361,
1343,
604,
11,
352,
11,
352,
8,
198,
220,
220,
220,
787,
62,
489,
1747,
7,
87,
11,
331,
11,
6167,
11639,
140,
240,
141,
227,
25443,
112,
22177,
45035,
16843,
12466,
112,
16142,
22177,
22177,
45035,
16843,
3256,
3124,
11639,
70,
11537,
198,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
12501,
3361,
1343,
604,
11,
352,
11,
362,
8,
198,
220,
220,
220,
458,
83,
13,
29487,
7,
1324,
13907,
58,
15,
7131,
15,
4357,
3124,
11639,
445,
3256,
9493,
413,
5649,
28,
18,
11,
6167,
11639,
140,
238,
140,
123,
140,
123,
21169,
25443,
118,
21727,
18849,
43108,
18849,
21169,
35072,
141,
236,
141,
231,
16142,
40623,
220,
141,
226,
35072,
22177,
31583,
141,
228,
18849,
40623,
657,
11537,
198,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
12501,
3361,
1343,
604,
11,
352,
11,
513,
8,
628,
220,
220,
220,
458,
83,
13,
29487,
7,
1324,
13907,
58,
19,
7131,
15,
4357,
3124,
11639,
445,
3256,
9493,
413,
5649,
28,
18,
11,
6167,
11639,
140,
238,
140,
123,
140,
123,
21169,
25443,
118,
21727,
18849,
43108,
18849,
21169,
35072,
141,
236,
141,
231,
16142,
40623,
220,
141,
226,
35072,
22177,
31583,
141,
228,
18849,
40623,
604,
11537,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
12501,
3361,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
12501,
3361,
1343,
604,
11,
352,
11,
1312,
1343,
604,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
357,
72,
6624,
38237,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9493,
413,
5649,
11,
3124,
796,
513,
11,
705,
65,
6,
198,
220,
220,
220,
220,
220,
220,
220,
458,
83,
13,
29487,
7,
1324,
13907,
58,
72,
1343,
352,
7131,
16,
7131,
940,
21912,
940,
4357,
6167,
11639,
140,
240,
16843,
140,
117,
38857,
30143,
16843,
20375,
12466,
112,
16843,
31583,
25443,
120,
140,
123,
25443,
115,
18849,
141,
228,
18849,
40623,
705,
1343,
965,
7,
72,
1343,
352,
8,
1343,
705,
220,
35072,
21169,
25443,
110,
22177,
40623,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
458,
83,
13,
1455,
437,
7,
17946,
28,
75,
8,
628,
220,
220,
220,
458,
83,
13,
70,
12993,
22446,
2617,
62,
7857,
62,
45457,
7,
1507,
11,
1367,
8,
628,
198,
4299,
4149,
62,
40664,
62,
5305,
7,
34345,
2599,
220,
1303,
12466,
94,
141,
229,
18849,
20375,
45035,
38857,
16142,
22177,
18849,
16843,
220,
21169,
16843,
16142,
30143,
45367,
22177,
25443,
117,
12466,
110,
45035,
140,
109,
15166,
21169,
31583,
18849,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
12466,
252,
20375,
43666,
16843,
30143,
45367,
22177,
16142,
40623,
220,
141,
226,
35072,
22177,
31583,
141,
228,
18849,
40623,
12466,
112,
30143,
40623,
220,
21727,
141,
229,
18849,
20375,
45035,
38857,
16142,
22177,
18849,
40623,
220,
141,
226,
16142,
140,
117,
30143,
16142,
220,
21727,
12466,
110,
16142,
30143,
141,
236,
20375,
25443,
117,
357,
140,
123,
15166,
20375,
25443,
120,
35072,
220,
141,
229,
20375,
15166,
220,
20375,
16142,
43108,
12466,
112,
16142,
22177,
22177,
45035,
16843,
12466,
115,
16142,
140,
123,
18849,
21727,
16142,
22177,
45035,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21727,
25443,
110,
16843,
21169,
141,
230,
16843,
22177,
22177,
15166,
12466,
123,
15166,
12,
43666,
21169,
35072,
140,
111,
25443,
120,
35072,
12466,
121,
16843,
140,
114,
16843,
30143,
18849,
220,
141,
229,
16843,
43108,
12466,
110,
220,
141,
226,
16142,
140,
117,
30143,
16142,
141,
227,
220,
21727,
12466,
110,
45035,
140,
109,
15166,
21169,
31583,
25443,
117,
12466,
122,
20375,
12466,
123,
21169,
16843,
140,
123,
25443,
112,
16142,
38857,
16142,
20375,
16843,
30143,
40623,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
29472,
25,
965,
532,
12466,
116,
43108,
40623,
220,
141,
226,
16142,
140,
117,
30143,
16142,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
599,
271,
482,
25,
1351,
532,
220,
21727,
140,
123,
18849,
21727,
25443,
118,
12466,
116,
140,
115,
12466,
110,
30143,
25443,
114,
16843,
22177,
22177,
45035,
141,
227,
220,
21727,
140,
123,
18849,
21727,
31583,
25443,
110,
12466,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
140,
117,
1395,
12466,
116,
575,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
351,
1280,
7,
34345,
11,
21004,
11639,
46903,
1098,
62,
41915,
11537,
355,
269,
21370,
62,
7753,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
62,
46862,
796,
269,
21370,
13,
35,
713,
33634,
7,
40664,
62,
7753,
8,
198,
220,
220,
220,
220,
220,
220,
220,
331,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
599,
271,
482,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
951,
287,
2393,
62,
46862,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12178,
62,
3911,
796,
357,
4868,
7,
4033,
13,
27160,
28955,
58,
16,
12962,
58,
15,
4083,
35312,
10786,
26,
11537,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
796,
12178,
19510,
4868,
7,
4033,
13,
27160,
28955,
58,
15,
35944,
35312,
10786,
26,
11537,
58,
17,
60,
1343,
705,
2637,
1343,
12178,
62,
3911,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
13,
33295,
7,
75,
8,
198,
220,
220,
220,
2124,
796,
1351,
7,
37659,
13,
21602,
10223,
7,
9688,
28,
16,
11,
2245,
28,
11925,
7,
88,
828,
997,
28,
11925,
7,
88,
22305,
198,
220,
220,
220,
599,
271,
482,
13,
33295,
7,
87,
8,
198,
220,
220,
220,
599,
271,
482,
13,
33295,
7,
4868,
7,
260,
690,
276,
7,
88,
22305,
198,
220,
220,
220,
1441,
599,
271,
482,
198,
198,
4299,
31902,
62,
4443,
6582,
7,
87,
25,
1351,
11,
331,
25,
1351,
11,
29472,
25,
965,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
12466,
254,
16142,
21727,
21727,
141,
229,
16843,
20375,
12466,
116,
12466,
123,
15166,
21727,
20375,
21169,
15166,
16843,
22177,
18849,
16843,
12466,
108,
43108,
140,
123,
30143,
18849,
20375,
35072,
43666,
22177,
15166,
12,
141,
229,
16142,
21727,
20375,
15166,
20375,
22177,
25443,
117,
220,
141,
227,
16142,
21169,
16142,
31583,
20375,
16843,
21169,
18849,
21727,
20375,
18849,
31583,
18849,
220,
21727,
18849,
140,
111,
22177,
16142,
30143,
16142,
357,
31583,
16142,
31583,
25443,
117,
220,
21727,
18849,
140,
111,
22177,
16142,
30143,
12466,
110,
21727,
20375,
21169,
16843,
141,
229,
16142,
16843,
20375,
21727,
40623,
220,
141,
229,
16142,
141,
231,
16843,
12466,
110,
21727,
16843,
140,
111,
15166,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
2124,
25,
1351,
532,
1395,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
40623,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
331,
25,
1351,
532,
575,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
40623,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
29472,
25,
965,
532,
12466,
116,
43108,
40623,
220,
141,
226,
16142,
140,
117,
30143,
16142,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
331,
69,
796,
279,
2645,
397,
13,
487,
83,
7,
88,
8,
220,
1303,
12466,
109,
45035,
21727,
20375,
21169,
15166,
16843,
12466,
123,
21169,
16843,
25443,
109,
21169,
16142,
140,
115,
25443,
110,
16142,
22177,
18849,
16843,
12466,
97,
35072,
21169,
45367,
16843,
198,
220,
220,
220,
2278,
796,
18896,
7,
88,
8,
1635,
657,
13,
16,
220,
1303,
12466,
253,
16843,
21169,
18849,
25443,
112,
198,
220,
220,
220,
2124,
69,
796,
279,
2645,
397,
13,
487,
83,
19503,
80,
7,
11925,
7,
88,
828,
352,
1220,
2278,
8,
198,
220,
220,
220,
458,
83,
13,
11337,
7,
5647,
7857,
16193,
1238,
11,
1160,
4008,
198,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
16,
11,
513,
11,
352,
8,
198,
220,
220,
220,
787,
62,
489,
1747,
7,
87,
11,
331,
11,
29472,
11,
705,
65,
3256,
352,
8,
220,
1303,
12466,
110,
45035,
38857,
25443,
112,
18849,
43108,
12466,
111,
21169,
16142,
141,
226,
18849,
31583,
12466,
116,
21727,
141,
227,
25443,
112,
22177,
25443,
117,
220,
141,
226,
35072,
22177,
31583,
141,
228,
18849,
18849,
198,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
16,
11,
513,
11,
362,
8,
198,
220,
220,
220,
458,
83,
13,
5657,
7,
26152,
11,
45941,
13,
8937,
7,
88,
69,
8,
1635,
657,
13,
405,
1495,
11,
10548,
11639,
16159,
3256,
6167,
11639,
140,
100,
16142,
21727,
20375,
15166,
20375,
22177,
45035,
140,
117,
220,
21727,
140,
123,
16843,
31583,
20375,
21169,
3256,
3124,
11639,
445,
11537,
220,
1303,
12466,
241,
18849,
21727,
20375,
25443,
111,
21169,
16142,
43108,
43108,
16142,
198,
220,
220,
220,
458,
83,
13,
1455,
437,
7,
17946,
11639,
45828,
826,
11537,
198,
220,
220,
220,
458,
83,
13,
87,
2475,
32590,
1238,
11,
1160,
8,
198,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
16,
11,
513,
11,
513,
8,
198,
220,
220,
220,
331,
62,
72,
796,
279,
2645,
397,
13,
361,
701,
7,
88,
69,
8,
220,
1303,
12466,
110,
15166,
21727,
21727,
20375,
16142,
22177,
16142,
38857,
30143,
18849,
38857,
16142,
16843,
43108,
12466,
116,
21727,
141,
227,
25443,
112,
22177,
45035,
140,
117,
220,
21727,
18849,
140,
111,
22177,
16142,
30143,
198,
220,
220,
220,
787,
62,
489,
1747,
7,
87,
11,
331,
62,
72,
11,
6167,
11639,
140,
240,
15166,
21727,
21727,
20375,
16142,
22177,
25443,
110,
30143,
16843,
22177,
22177,
45035,
140,
117,
220,
21727,
18849,
140,
111,
22177,
16142,
30143,
3256,
3124,
11639,
70,
11537,
220,
1303,
220,
141,
229,
16142,
21727,
20375,
15166,
20375,
22177,
45035,
140,
117,
220,
21727,
140,
123,
16843,
31583,
20375,
21169,
198,
220,
220,
220,
458,
83,
13,
70,
12993,
22446,
2617,
62,
7857,
62,
45457,
7,
1270,
11,
838,
8,
198,
220,
220,
220,
3601,
10786,
140,
248,
15166,
141,
235,
141,
226,
141,
226,
18849,
141,
228,
18849,
16843,
22177,
20375,
12466,
121,
16843,
21727,
18849,
22177,
35072,
21727,
15166,
18849,
43666,
16142,
30143,
45367,
22177,
15166,
21727,
20375,
18849,
12466,
110,
12466,
118,
25443,
120,
140,
123,
30143,
16843,
31583,
21727,
22177,
25443,
117,
220,
141,
226,
15166,
21169,
43108,
16843,
25,
3256,
1729,
62,
31369,
62,
1073,
16814,
62,
37,
333,
494,
19510,
88,
69,
36911,
705,
59,
77,
11537,
198,
220,
220,
220,
3601,
10786,
140,
248,
15166,
141,
235,
141,
226,
141,
226,
18849,
141,
228,
18849,
16843,
22177,
20375,
12466,
121,
16843,
21727,
18849,
22177,
35072,
21727,
15166,
18849,
43666,
16142,
30143,
45367,
22177,
15166,
21727,
20375,
18849,
220,
21727,
45941,
13,
8937,
33529,
3256,
1729,
62,
31369,
62,
1073,
16814,
62,
37,
333,
494,
19510,
37659,
13,
8937,
7,
88,
69,
4008,
828,
705,
59,
77,
11537,
198,
220,
220,
220,
3601,
10786,
140,
242,
18849,
21727,
140,
123,
16843,
21169,
21727,
18849,
40623,
25,
3256,
4596,
6900,
7,
37659,
13,
8937,
7,
88,
62,
72,
828,
331,
4008,
220,
1303,
12466,
110,
45035,
141,
229,
18849,
21727,
30143,
40623,
16843,
43108,
12466,
112,
18849,
21727,
140,
123,
16843,
21169,
21727,
18849,
141,
236,
628,
198,
4299,
17084,
1616,
62,
8818,
7,
87,
25,
1351,
11,
331,
25,
1351,
11,
38237,
25,
493,
11,
1438,
25,
965,
11,
29472,
25,
965,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
12466,
97,
35072,
22177,
31583,
141,
228,
18849,
40623,
220,
21727,
141,
229,
18849,
20375,
16142,
16843,
20375,
12466,
108,
140,
123,
21169,
25443,
118,
21727,
18849,
43108,
16142,
141,
228,
18849,
18849,
12466,
116,
12466,
110,
16843,
140,
117,
38857,
30143,
16843,
20375,
12,
43666,
16843,
31583,
25443,
120,
140,
123,
25443,
115,
18849,
141,
228,
18849,
18849,
220,
35072,
21169,
25443,
110,
22177,
16843,
140,
117,
12466,
122,
20375,
352,
12466,
112,
15166,
604,
13,
12466,
253,
15166,
21727,
20375,
21169,
15166,
16843,
22177,
18849,
16843,
12466,
110,
16843,
140,
117,
38857,
30143,
16843,
20375,
25443,
110,
532,
220,
20375,
15166,
12466,
114,
16843,
220,
21727,
16142,
43108,
15166,
16843,
11,
220,
141,
229,
20375,
15166,
12466,
116,
12466,
238,
140,
98,
140,
100,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
12466,
121,
15166,
220,
21727,
12466,
115,
16142,
38857,
18849,
21727,
18849,
43108,
15166,
21727,
20375,
45367,
141,
236,
12466,
122,
20375,
12466,
110,
21169,
16843,
43108,
16843,
22177,
18849,
11,
12466,
123,
25443,
118,
16142,
140,
115,
45035,
38857,
16142,
16843,
20375,
220,
141,
229,
16142,
21727,
20375,
15166,
20375,
35072,
220,
21727,
18849,
140,
111,
22177,
16142,
30143,
16142,
12466,
110,
12466,
122,
140,
123,
21169,
16843,
43666,
16843,
30143,
16843,
22177,
22177,
45035,
140,
117,
12466,
120,
25443,
120,
16843,
22177,
20375,
12466,
110,
21169,
16843,
43108,
16843,
22177,
18849,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
2124,
25,
1351,
532,
1395,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
40623,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
331,
25,
1351,
532,
575,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
40623,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
1438,
25,
965,
532,
12466,
121,
16142,
140,
115,
38857,
16142,
22177,
18849,
16843,
12466,
110,
16843,
140,
117,
38857,
30143,
16843,
20375,
16142,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
38237,
25,
493,
532,
220,
35072,
21169,
25443,
110,
16843,
22177,
45367,
12466,
112,
16843,
31583,
25443,
120,
140,
123,
25443,
115,
18849,
141,
228,
18849,
18849,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
29472,
25,
965,
532,
12466,
116,
43108,
40623,
220,
141,
226,
16142,
140,
117,
30143,
16142,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
5561,
796,
685,
12972,
46569,
13,
86,
9586,
721,
7,
88,
11,
1438,
11,
1241,
28,
72,
8,
329,
1312,
287,
2837,
7,
12501,
3361,
1343,
352,
8,
2361,
198,
220,
220,
220,
787,
62,
489,
1747,
62,
19204,
1616,
7,
87,
11,
331,
11,
5561,
11,
38237,
11,
29472,
8,
198,
198,
4299,
2034,
13907,
18991,
62,
50249,
1653,
7,
87,
25,
1351,
11,
331,
25,
1351,
11,
38237,
25,
493,
11,
29472,
25,
965,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
12466,
97,
35072,
22177,
31583,
141,
228,
18849,
40623,
220,
21727,
141,
229,
18849,
20375,
16142,
16843,
20375,
12466,
116,
12466,
110,
45035,
38857,
25443,
112,
18849,
12466,
108,
140,
123,
21169,
25443,
118,
21727,
18849,
43108,
16142,
141,
228,
18849,
18849,
12466,
112,
30143,
40623,
220,
141,
226,
35072,
22177,
31583,
141,
228,
18849,
140,
117,
12466,
121,
16142,
12466,
122,
21727,
22177,
25443,
110,
16843,
1395,
11,
56,
12466,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
140,
117,
12466,
116,
12466,
112,
16843,
31583,
25443,
120,
140,
123,
25443,
115,
18849,
141,
228,
18849,
18849,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
2124,
25,
1351,
532,
1395,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
40623,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
331,
25,
1351,
532,
575,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
40623,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
38237,
25,
493,
532,
220,
35072,
21169,
25443,
110,
16843,
22177,
45367,
12466,
112,
16843,
31583,
25443,
120,
140,
123,
25443,
115,
18849,
141,
228,
18849,
18849,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
29472,
25,
965,
532,
12466,
116,
43108,
40623,
220,
141,
226,
16142,
140,
117,
30143,
16142,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
458,
83,
13,
26875,
7,
5647,
7857,
16193,
940,
11,
767,
4008,
198,
220,
220,
220,
3891,
796,
1391,
6,
37047,
21,
10354,
705,
140,
241,
16142,
35072,
21727,
21727,
3256,
705,
42948,
10354,
705,
140,
98,
16142,
16142,
21169,
3256,
705,
65,
1504,
19,
13,
19,
10354,
705,
140,
250,
16843,
31583,
21727,
18849,
31583,
16142,
22177,
21727,
31583,
16142,
40623,
220,
141,
230,
30143,
40623,
140,
123,
16142,
3256,
705,
9945,
17,
10354,
705,
140,
242,
25443,
109,
16843,
141,
230,
18849,
6,
92,
198,
220,
220,
220,
7577,
796,
685,
705,
81,
3256,
705,
65,
3256,
705,
70,
3256,
705,
74,
6,
2361,
198,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
20,
11,
352,
11,
352,
8,
198,
220,
220,
220,
787,
62,
489,
1747,
7,
87,
11,
331,
11,
6167,
11639,
140,
240,
141,
227,
25443,
112,
22177,
45035,
16843,
12466,
112,
16142,
22177,
22177,
45035,
16843,
12466,
116,
140,
115,
25,
705,
1343,
29472,
1343,
705,
59,
77,
6,
1343,
705,
140,
242,
30143,
18849,
22177,
16142,
25,
705,
1343,
965,
7,
11925,
7,
88,
36911,
3124,
11639,
76,
11537,
198,
220,
220,
220,
329,
1312,
11,
8251,
287,
27056,
378,
7,
14933,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
20,
11,
352,
11,
1312,
1343,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
598,
81,
62,
88,
796,
12972,
46569,
13,
86,
9586,
721,
7,
88,
11,
8251,
11,
1241,
28,
12501,
3361,
38381,
657,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
458,
83,
13,
29487,
7,
1324,
81,
62,
88,
11,
3124,
28,
4033,
669,
58,
1312,
16589,
9493,
413,
5649,
28,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
6,
140,
242,
18849,
21727,
140,
123,
16843,
21169,
21727,
18849,
40623,
25,
1391,
6381,
79,
6900,
7,
1324,
81,
62,
88,
11,
331,
38165,
930,
1391,
14933,
58,
8251,
2361,
92,
11537,
198,
220,
220,
220,
458,
83,
13,
70,
12993,
22446,
2617,
62,
7857,
62,
45457,
7,
1314,
11,
1105,
8,
198,
198,
4299,
11143,
418,
62,
19204,
1616,
62,
15542,
62,
19577,
7,
87,
25,
1351,
11,
331,
25,
1351,
11,
1241,
25,
493,
11,
2446,
25,
965,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
12466,
97,
35072,
22177,
31583,
141,
228,
18849,
40623,
220,
21727,
141,
229,
18849,
20375,
16142,
16843,
20375,
12466,
116,
12466,
110,
45035,
38857,
25443,
112,
18849,
12466,
108,
140,
123,
21169,
25443,
118,
21727,
18849,
43108,
16142,
141,
228,
18849,
18849,
12466,
112,
30143,
40623,
220,
141,
226,
35072,
22177,
31583,
141,
228,
18849,
140,
117,
12466,
121,
16142,
12466,
122,
21727,
22177,
25443,
110,
16843,
1395,
11,
56,
12466,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
140,
117,
12466,
116,
12466,
112,
16843,
31583,
25443,
120,
140,
123,
25443,
115,
18849,
141,
228,
18849,
18849,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
2124,
25,
1351,
532,
1395,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
40623,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
331,
25,
1351,
532,
575,
12,
140,
115,
22177,
16142,
141,
229,
16843,
22177,
18849,
40623,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
1241,
25,
493,
532,
220,
35072,
21169,
25443,
110,
16843,
22177,
45367,
220,
21169,
16142,
21727,
20375,
40623,
140,
114,
16843,
22177,
18849,
40623,
357,
17,
1174,
5715,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
2446,
25,
965,
532,
220,
20375,
18849,
140,
123,
12466,
110,
16843,
140,
117,
38857,
30143,
16843,
20375,
16142,
11,
12466,
118,
15166,
20375,
15166,
21169,
45035,
140,
117,
220,
21169,
16142,
21727,
140,
123,
25443,
115,
22177,
16142,
16843,
20375,
21727,
40623,
12466,
109,
18849,
140,
109,
30143,
18849,
15166,
20375,
16843,
31583,
25443,
117,
12972,
46569,
628,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
37266,
29472,
25,
965,
532,
12466,
116,
43108,
40623,
220,
141,
226,
16142,
140,
117,
30143,
16142,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1303,
12466,
110,
16843,
140,
117,
38857,
30143,
16843,
20375,
198,
220,
220,
220,
9647,
82,
796,
45941,
13,
283,
858,
7,
16,
11,
362,
12429,
357,
5715,
8,
532,
352,
8,
198,
220,
220,
220,
269,
46569,
6759,
81,
11,
2030,
48382,
796,
12972,
46569,
13,
66,
46569,
7,
88,
11,
9647,
82,
11,
2446,
8,
198,
220,
220,
220,
1303,
269,
86,
17209,
35226,
532,
12466,
108,
140,
123,
140,
123,
21169,
25443,
118,
21727,
18849,
43108,
16142,
141,
228,
18849,
40623,
198,
220,
220,
220,
1303,
2030,
48382,
532,
12466,
112,
16843,
31583,
25443,
120,
140,
123,
25443,
115,
18849,
141,
228,
18849,
40623,
628,
220,
220,
220,
2336,
11,
7877,
82,
796,
458,
83,
13,
7266,
489,
1747,
7,
17,
8,
220,
1303,
12466,
115,
16142,
43666,
16142,
22177,
18849,
16843,
220,
141,
226,
15166,
21169,
43108,
45035,
12466,
112,
30143,
40623,
12466,
123,
15166,
21727,
20375,
21169,
15166,
16843,
22177,
18849,
40623,
12466,
112,
38857,
35072,
141,
227,
220,
21727,
16142,
140,
109,
140,
123,
30143,
15166,
20375,
25443,
110,
628,
220,
220,
220,
7877,
82,
58,
657,
20740,
29487,
7,
87,
11,
331,
8,
198,
220,
220,
220,
7877,
82,
58,
657,
20740,
2617,
62,
7839,
10786,
140,
242,
16142,
22177,
22177,
45035,
16843,
12466,
116,
140,
115,
44189,
12,
141,
226,
16142,
140,
117,
30143,
16142,
11537,
198,
220,
220,
220,
7877,
82,
58,
657,
20740,
25928,
3419,
628,
220,
220,
220,
1303,
12466,
123,
15166,
21727,
20375,
21169,
15166,
16843,
22177,
18849,
16843,
12466,
110,
16843,
140,
117,
38857,
30143,
16843,
20375,
12,
140,
111,
21169,
16142,
141,
226,
18849,
31583,
16142,
198,
220,
220,
220,
7877,
82,
58,
352,
20740,
320,
12860,
7,
66,
46569,
6759,
81,
11,
6287,
41888,
532,
16,
11,
352,
11,
352,
11,
362,
12429,
357,
5715,
8,
532,
352,
16589,
269,
8899,
11639,
47,
84,
49,
67,
3256,
4843,
11639,
23736,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
9806,
28,
8937,
7,
66,
46569,
6759,
81,
737,
9806,
22784,
410,
1084,
10779,
8937,
7,
66,
46569,
6759,
81,
737,
9806,
28955,
198,
220,
220,
220,
7877,
82,
58,
352,
20740,
2617,
62,
7839,
7,
69,
6,
18,
35,
24006,
51,
220,
21727,
220,
35072,
21169,
25443,
110,
22177,
16843,
43108,
220,
21169,
16142,
21727,
20375,
40623,
140,
114,
16843,
22177,
18849,
40623,
362,
36796,
5715,
92,
11537,
198,
220,
220,
220,
2336,
13,
33464,
62,
39786,
3419,
198,
220,
220,
220,
2336,
13,
12860,
3419
] | 1.492403 | 5,331 |
from django.conf import settings
from django.contrib.auth import authenticate, login
from django.urls.base import reverse, reverse_lazy
from django.views.generic import FormView
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.views.generic import DetailView
from django.views.generic.edit import UpdateView
from django.contrib.auth.models import User
from django.contrib.messages.views import SuccessMessageMixin
from django.contrib.auth.views import (
PasswordResetView,
PasswordResetDoneView,
PasswordResetConfirmView,
PasswordResetCompleteView,
)
from .forms import LoginForm, SignUpForm, CustomPasswordResetForm, CustomSetPasswordForm, UserEditForm
@method_decorator(login_required, name="dispatch")
@method_decorator(login_required, name="dispatch")
# class AccountPasswordChangeView(PasswordChangeView):
# template_name = "/account/password_reset_confirm.html"
# class AccountPasswordChangeDoneView(PasswordChangeDoneView):
# template_name = "/account/password_reset_confirm.html"
# class VerifyTokenView(TemplateView):
# template_name = "account/token.html"
# class VerificationEmailView(TemplateView):
# template_name = "account/verify_email.html"
| [
6738,
42625,
14208,
13,
10414,
1330,
6460,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
1330,
8323,
5344,
11,
17594,
198,
6738,
42625,
14208,
13,
6371,
82,
13,
8692,
1330,
9575,
11,
9575,
62,
75,
12582,
198,
6738,
42625,
14208,
13,
33571,
13,
41357,
1330,
5178,
7680,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
12501,
273,
2024,
1330,
17594,
62,
35827,
198,
6738,
42625,
14208,
13,
26791,
13,
12501,
273,
2024,
1330,
2446,
62,
12501,
273,
1352,
198,
6738,
42625,
14208,
13,
33571,
13,
41357,
1330,
42585,
7680,
198,
6738,
42625,
14208,
13,
33571,
13,
41357,
13,
19312,
1330,
10133,
7680,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
27530,
1330,
11787,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
37348,
1095,
13,
33571,
1330,
16282,
12837,
35608,
259,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
33571,
1330,
357,
198,
220,
220,
220,
30275,
4965,
316,
7680,
11,
198,
220,
220,
220,
30275,
4965,
316,
45677,
7680,
11,
198,
220,
220,
220,
30275,
4965,
316,
18546,
2533,
7680,
11,
198,
220,
220,
220,
30275,
4965,
316,
20988,
7680,
11,
198,
8,
198,
198,
6738,
764,
23914,
1330,
23093,
8479,
11,
5865,
4933,
8479,
11,
8562,
35215,
4965,
316,
8479,
11,
8562,
7248,
35215,
8479,
11,
11787,
18378,
8479,
628,
628,
198,
31,
24396,
62,
12501,
273,
1352,
7,
38235,
62,
35827,
11,
1438,
2625,
6381,
17147,
4943,
628,
198,
31,
24396,
62,
12501,
273,
1352,
7,
38235,
62,
35827,
11,
1438,
2625,
6381,
17147,
4943,
628,
628,
628,
628,
198,
2,
1398,
10781,
35215,
19400,
7680,
7,
35215,
19400,
7680,
2599,
198,
2,
220,
220,
220,
220,
11055,
62,
3672,
796,
12813,
23317,
14,
28712,
62,
42503,
62,
10414,
2533,
13,
6494,
1,
628,
198,
2,
1398,
10781,
35215,
19400,
45677,
7680,
7,
35215,
19400,
45677,
7680,
2599,
198,
2,
220,
220,
220,
220,
11055,
62,
3672,
796,
12813,
23317,
14,
28712,
62,
42503,
62,
10414,
2533,
13,
6494,
1,
628,
198,
2,
1398,
49899,
30642,
7680,
7,
30800,
7680,
2599,
198,
2,
220,
220,
220,
220,
11055,
62,
3672,
796,
366,
23317,
14,
30001,
13,
6494,
1,
628,
198,
2,
1398,
4643,
2649,
15333,
7680,
7,
30800,
7680,
2599,
198,
2,
220,
220,
220,
220,
11055,
62,
3672,
796,
366,
23317,
14,
332,
1958,
62,
12888,
13,
6494,
1,
198
] | 3.292308 | 390 |
load(
"//rules/common:private/utils.bzl",
_collect = "collect",
_collect_optionally = "collect_optionally",
)
ScalaConfiguration = provider(
doc = "Scala compile-time and runtime configuration",
fields = {
"version": "The Scala full version.",
"compiler_classpath": "The compiler classpath.",
"runtime_classpath": "The runtime classpath.",
"global_plugins": "Globally enabled compiler plugins",
"global_scalacopts": "Globally enabled compiler options",
},
)
declare_scala_configuration = rule(
attrs = {
"version": attr.string(mandatory = True),
"runtime_classpath": attr.label_list(
mandatory = True,
providers = [JavaInfo],
),
"compiler_classpath": attr.label_list(
mandatory = True,
providers = [JavaInfo],
),
"global_plugins": attr.label_list(
doc = "Scalac plugins that will always be enabled.",
providers = [JavaInfo],
),
"global_scalacopts": attr.string_list(
doc = "Scalac options that will always be enabled.",
),
},
doc = "Creates a `ScalaConfiguration`.",
implementation = _declare_scala_configuration_implementation,
)
ScalaInfo = provider(
doc = "Scala library.",
fields = {
"macro": "whether the jar contains macros",
"scala_configuration": "ScalaConfiguration associated with this output",
},
)
ZincConfiguration = provider(
doc = "Zinc configuration.",
fields = {
"compiler_bridge": "compiled Zinc compiler bridge",
"compile_worker": "the worker label for compilation with Zinc",
"log_level": "log level for the Zinc compiler",
},
)
DepsConfiguration = provider(
doc = "Dependency checking configuration.",
fields = {
"direct": "either error or off",
"used": "either error or off",
"worker": "the worker label for checking used/unused deps",
},
)
CodeCoverageConfiguration = provider(
doc = "Code coverage related configuration",
fields = {
"instrumentation_worker": "the worker used for instrumenting jars",
},
)
ScalaRulePhase = provider(
doc = "A Scala compiler plugin",
fields = {
"phases": "the phases to add",
},
)
reconfigure_deps_configuration = rule(
attrs = {
"provider": attr.label(
mandatory = True,
providers = [
[DepsConfiguration],
],
),
"direct": attr.string(default = "inherit"),
"used": attr.string(default = "inherit"),
},
implementation = _reconfigure_deps_configuration_implementation,
)
declare_zinc_configuration = rule(
attrs = {
"compiler_bridge": attr.label(
allow_single_file = True,
mandatory = True,
),
"_compile_worker": attr.label(
default = "@rules_scala_annex//src/main/scala/higherkindness/rules_scala/workers/zinc/compile",
allow_files = True,
executable = True,
cfg = "host",
),
},
doc = "Creates a `ZincConfiguration`.",
implementation = _declare_zinc_configuration_implementation,
)
ZincInfo = provider(
doc = "Zinc-specific outputs.",
fields = {
"apis": "The API file.",
"deps": "The depset of library dependency outputs.",
"deps_files": "The depset of all Zinc files.",
"label": "The label for this output.",
"relations": "The relations file.",
},
)
join_configurations = rule(
attrs = {
"configurations": attr.label_list(
mandatory = True,
providers = [
[ScalaConfiguration],
[ZincConfiguration],
],
),
},
implementation = _join_configurations_implementation,
)
# TODO: move these to another file?
# TODO: implement these with an aspect?
IntellijInfo = provider(
doc = "Provider for IntelliJ.",
fields = {
"outputs": "java_output_jars",
"transitive_exports": "labels of transitive dependencies",
},
)
# TODO: compare to JavaInfo's owner
LabeledJars = provider(
doc = "Exported jars and their labels.",
fields = {
"values": "The preorder depset of label and jars.",
},
)
| [
2220,
7,
198,
220,
220,
220,
366,
1003,
38785,
14,
11321,
25,
19734,
14,
26791,
13,
65,
48274,
1600,
198,
220,
220,
220,
4808,
33327,
796,
366,
33327,
1600,
198,
220,
220,
220,
4808,
33327,
62,
18076,
453,
796,
366,
33327,
62,
18076,
453,
1600,
198,
8,
198,
198,
3351,
6081,
38149,
796,
10131,
7,
198,
220,
220,
220,
2205,
796,
366,
3351,
6081,
17632,
12,
2435,
290,
19124,
8398,
1600,
198,
220,
220,
220,
7032,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
9641,
1298,
366,
464,
38334,
1336,
2196,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
366,
5589,
5329,
62,
4871,
6978,
1298,
366,
464,
17050,
1398,
6978,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
366,
43282,
62,
4871,
6978,
1298,
366,
464,
19124,
1398,
6978,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
366,
20541,
62,
37390,
1298,
366,
9861,
672,
453,
9343,
17050,
20652,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
20541,
62,
1416,
282,
330,
404,
912,
1298,
366,
9861,
672,
453,
9343,
17050,
3689,
1600,
198,
220,
220,
220,
8964,
198,
8,
198,
198,
32446,
533,
62,
1416,
6081,
62,
11250,
3924,
796,
3896,
7,
198,
220,
220,
220,
708,
3808,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
9641,
1298,
708,
81,
13,
8841,
7,
22249,
2870,
796,
6407,
828,
198,
220,
220,
220,
220,
220,
220,
220,
366,
43282,
62,
4871,
6978,
1298,
708,
81,
13,
18242,
62,
4868,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13677,
796,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9549,
796,
685,
29584,
12360,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
366,
5589,
5329,
62,
4871,
6978,
1298,
708,
81,
13,
18242,
62,
4868,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13677,
796,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9549,
796,
685,
29584,
12360,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
366,
20541,
62,
37390,
1298,
708,
81,
13,
18242,
62,
4868,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2205,
796,
366,
3351,
282,
330,
20652,
326,
481,
1464,
307,
9343,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9549,
796,
685,
29584,
12360,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
366,
20541,
62,
1416,
282,
330,
404,
912,
1298,
708,
81,
13,
8841,
62,
4868,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2205,
796,
366,
3351,
282,
330,
3689,
326,
481,
1464,
307,
9343,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
2205,
796,
366,
16719,
274,
257,
4600,
3351,
6081,
38149,
63,
33283,
198,
220,
220,
220,
7822,
796,
4808,
32446,
533,
62,
1416,
6081,
62,
11250,
3924,
62,
320,
32851,
11,
198,
8,
198,
198,
3351,
6081,
12360,
796,
10131,
7,
198,
220,
220,
220,
2205,
796,
366,
3351,
6081,
5888,
33283,
198,
220,
220,
220,
7032,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
20285,
305,
1298,
366,
25356,
262,
17379,
4909,
34749,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
1416,
6081,
62,
11250,
3924,
1298,
366,
3351,
6081,
38149,
3917,
351,
428,
5072,
1600,
198,
220,
220,
220,
8964,
198,
8,
198,
198,
57,
1939,
38149,
796,
10131,
7,
198,
220,
220,
220,
2205,
796,
366,
57,
1939,
8398,
33283,
198,
220,
220,
220,
7032,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
5589,
5329,
62,
9458,
1298,
366,
5589,
3902,
1168,
1939,
17050,
7696,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
5589,
576,
62,
28816,
1298,
366,
1169,
8383,
6167,
329,
23340,
351,
1168,
1939,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
6404,
62,
5715,
1298,
366,
6404,
1241,
329,
262,
1168,
1939,
17050,
1600,
198,
220,
220,
220,
8964,
198,
8,
198,
198,
12156,
82,
38149,
796,
10131,
7,
198,
220,
220,
220,
2205,
796,
366,
35,
2690,
1387,
10627,
8398,
33283,
198,
220,
220,
220,
7032,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
12942,
1298,
366,
31336,
4049,
393,
572,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
1484,
1298,
366,
31336,
4049,
393,
572,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
28816,
1298,
366,
1169,
8383,
6167,
329,
10627,
973,
14,
403,
1484,
390,
862,
1600,
198,
220,
220,
220,
8964,
198,
8,
198,
198,
10669,
7222,
1857,
38149,
796,
10131,
7,
198,
220,
220,
220,
2205,
796,
366,
10669,
5197,
3519,
8398,
1600,
198,
220,
220,
220,
7032,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
259,
43872,
341,
62,
28816,
1298,
366,
1169,
8383,
973,
329,
8875,
278,
33008,
1600,
198,
220,
220,
220,
8964,
198,
8,
198,
198,
3351,
6081,
31929,
35645,
796,
10131,
7,
198,
220,
220,
220,
2205,
796,
366,
32,
38334,
17050,
13877,
1600,
198,
220,
220,
220,
7032,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
746,
1386,
1298,
366,
1169,
21164,
284,
751,
1600,
198,
220,
220,
220,
8964,
198,
8,
198,
198,
260,
11250,
495,
62,
10378,
82,
62,
11250,
3924,
796,
3896,
7,
198,
220,
220,
220,
708,
3808,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
15234,
1304,
1298,
708,
81,
13,
18242,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13677,
796,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9549,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
12156,
82,
38149,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
366,
12942,
1298,
708,
81,
13,
8841,
7,
12286,
796,
366,
259,
372,
270,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
366,
1484,
1298,
708,
81,
13,
8841,
7,
12286,
796,
366,
259,
372,
270,
12340,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
7822,
796,
4808,
260,
11250,
495,
62,
10378,
82,
62,
11250,
3924,
62,
320,
32851,
11,
198,
8,
198,
198,
32446,
533,
62,
89,
1939,
62,
11250,
3924,
796,
3896,
7,
198,
220,
220,
220,
708,
3808,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
5589,
5329,
62,
9458,
1298,
708,
81,
13,
18242,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1249,
62,
29762,
62,
7753,
796,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13677,
796,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
45434,
5589,
576,
62,
28816,
1298,
708,
81,
13,
18242,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
796,
44212,
38785,
62,
1416,
6081,
62,
272,
12413,
1003,
10677,
14,
12417,
14,
1416,
6081,
14,
46503,
11031,
1108,
14,
38785,
62,
1416,
6081,
14,
22896,
14,
89,
1939,
14,
5589,
576,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1249,
62,
16624,
796,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28883,
796,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30218,
70,
796,
366,
4774,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
2205,
796,
366,
16719,
274,
257,
4600,
57,
1939,
38149,
63,
33283,
198,
220,
220,
220,
7822,
796,
4808,
32446,
533,
62,
89,
1939,
62,
11250,
3924,
62,
320,
32851,
11,
198,
8,
198,
198,
57,
1939,
12360,
796,
10131,
7,
198,
220,
220,
220,
2205,
796,
366,
57,
1939,
12,
11423,
23862,
33283,
198,
220,
220,
220,
7032,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
499,
271,
1298,
366,
464,
7824,
2393,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
366,
10378,
82,
1298,
366,
464,
390,
862,
316,
286,
5888,
20203,
23862,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
366,
10378,
82,
62,
16624,
1298,
366,
464,
390,
862,
316,
286,
477,
1168,
1939,
3696,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
366,
18242,
1298,
366,
464,
6167,
329,
428,
5072,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
366,
39468,
1298,
366,
464,
2316,
2393,
33283,
198,
220,
220,
220,
8964,
198,
8,
198,
198,
22179,
62,
11250,
20074,
796,
3896,
7,
198,
220,
220,
220,
708,
3808,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
11250,
20074,
1298,
708,
81,
13,
18242,
62,
4868,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13677,
796,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9549,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
3351,
6081,
38149,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
57,
1939,
38149,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
7822,
796,
4808,
22179,
62,
11250,
20074,
62,
320,
32851,
11,
198,
8,
198,
198,
2,
16926,
46,
25,
1445,
777,
284,
1194,
2393,
30,
198,
2,
16926,
46,
25,
3494,
777,
351,
281,
4843,
30,
198,
198,
5317,
695,
2926,
12360,
796,
10131,
7,
198,
220,
220,
220,
2205,
796,
366,
29495,
329,
2558,
23225,
41,
33283,
198,
220,
220,
220,
7032,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
22915,
82,
1298,
366,
12355,
62,
22915,
62,
73,
945,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
7645,
1800,
62,
1069,
3742,
1298,
366,
23912,
1424,
286,
1007,
1800,
20086,
1600,
198,
220,
220,
220,
8964,
198,
8,
198,
198,
2,
16926,
46,
25,
8996,
284,
7349,
12360,
338,
4870,
198,
33986,
276,
41,
945,
796,
10131,
7,
198,
220,
220,
220,
2205,
796,
366,
3109,
9213,
33008,
290,
511,
14722,
33283,
198,
220,
220,
220,
7032,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
27160,
1298,
366,
464,
662,
2875,
390,
862,
316,
286,
6167,
290,
33008,
33283,
198,
220,
220,
220,
8964,
198,
8,
198
] | 2.386439 | 1,814 |
# 08 Lambda Functions
# List of complex objects, like a list of tuples, example a list of orders with product name and price
# in situations like this we need to define a function to sort the list, the above methos don't work
items = [
("Product1", 15),
("Product2", 50),
("Product3", 5)
]
print(items)
# In this exeample we are going to sort the items base in price
# def sort_items_price(index):
# return index[1]
# if each item in the list is a tuple we are returning the second item in the tuple
# items.sort(key=sort_items_price)
# print(items)
# with a lambda or anonymous functions it's short and cleaner way to define a function that we are going to use only once as an argument of another function.
items.sort(key=lambda index: index[1]) # lambda parameter_list: expression
print(items)
| [
2,
8487,
21114,
6814,
40480,
198,
198,
2,
7343,
286,
3716,
5563,
11,
588,
257,
1351,
286,
12777,
2374,
11,
1672,
257,
1351,
286,
6266,
351,
1720,
1438,
290,
2756,
198,
2,
287,
7445,
588,
428,
356,
761,
284,
8160,
257,
2163,
220,
284,
3297,
262,
1351,
11,
262,
2029,
11248,
418,
836,
470,
670,
198,
23814,
796,
685,
198,
220,
220,
220,
5855,
15667,
16,
1600,
1315,
828,
198,
220,
220,
220,
5855,
15667,
17,
1600,
2026,
828,
198,
220,
220,
220,
5855,
15667,
18,
1600,
642,
8,
198,
60,
198,
4798,
7,
23814,
8,
198,
198,
2,
554,
428,
409,
68,
1403,
356,
389,
1016,
284,
3297,
262,
3709,
2779,
287,
2756,
198,
198,
2,
825,
3297,
62,
23814,
62,
20888,
7,
9630,
2599,
198,
2,
220,
220,
220,
1441,
6376,
58,
16,
60,
198,
2,
611,
1123,
2378,
287,
262,
1351,
318,
257,
46545,
356,
389,
8024,
262,
1218,
2378,
287,
262,
46545,
198,
198,
2,
3709,
13,
30619,
7,
2539,
28,
30619,
62,
23814,
62,
20888,
8,
198,
2,
3601,
7,
23814,
8,
198,
198,
2,
351,
257,
37456,
393,
11614,
5499,
340,
338,
1790,
290,
21723,
835,
284,
8160,
257,
2163,
326,
356,
389,
1016,
284,
779,
691,
1752,
355,
281,
4578,
286,
1194,
2163,
13,
198,
23814,
13,
30619,
7,
2539,
28,
50033,
6376,
25,
6376,
58,
16,
12962,
220,
1303,
37456,
11507,
62,
4868,
25,
5408,
198,
4798,
7,
23814,
8,
198
] | 3.422594 | 239 |
# Reaches around 91.8% Micro-F1 after 5 epochs.
import os.path as osp
import torch
from torch_geometric.datasets import AMiner
from torch_geometric.nn import MetaPath2Vec
path = osp.join(osp.dirname(osp.realpath(__file__)), '..', 'data', 'AMiner')
dataset = AMiner(path)
data = dataset[0]
metapath = [
('author', 'wrote', 'paper'),
('paper', 'published in', 'venue'),
('venue', 'published', 'paper'),
('paper', 'written by', 'author'),
]
device = 'cuda' if torch.cuda.is_available() else 'cpu'
model = MetaPath2Vec(data.edge_index_dict, embedding_dim=128,
metapath=metapath, walk_length=50, context_size=7,
walks_per_node=5, num_negative_samples=5,
sparse=True).to(device)
loader = model.loader(batch_size=128, shuffle=True, num_workers=12)
optimizer = torch.optim.SparseAdam(list(model.parameters()), lr=0.01)
@torch.no_grad()
for epoch in range(1, 6):
train(epoch)
acc = test()
print(f'Epoch: {epoch}, Accuracy: {acc:.4f}')
| [
2,
797,
3694,
1088,
10495,
13,
23,
4,
4527,
12,
37,
16,
706,
642,
36835,
82,
13,
198,
198,
11748,
28686,
13,
6978,
355,
267,
2777,
198,
198,
11748,
28034,
198,
6738,
28034,
62,
469,
16996,
13,
19608,
292,
1039,
1330,
3001,
7274,
198,
6738,
28034,
62,
469,
16996,
13,
20471,
1330,
30277,
15235,
17,
53,
721,
198,
198,
6978,
796,
267,
2777,
13,
22179,
7,
2117,
13,
15908,
3672,
7,
2117,
13,
5305,
6978,
7,
834,
7753,
834,
36911,
705,
492,
3256,
705,
7890,
3256,
705,
2390,
7274,
11537,
198,
19608,
292,
316,
796,
3001,
7274,
7,
6978,
8,
198,
7890,
796,
27039,
58,
15,
60,
198,
198,
4164,
499,
776,
796,
685,
198,
220,
220,
220,
19203,
9800,
3256,
705,
42910,
3256,
705,
20189,
33809,
198,
220,
220,
220,
19203,
20189,
3256,
705,
30271,
287,
3256,
705,
4080,
33809,
198,
220,
220,
220,
19203,
4080,
3256,
705,
30271,
3256,
705,
20189,
33809,
198,
220,
220,
220,
19203,
20189,
3256,
705,
15266,
416,
3256,
705,
9800,
33809,
198,
60,
198,
198,
25202,
796,
705,
66,
15339,
6,
611,
28034,
13,
66,
15339,
13,
271,
62,
15182,
3419,
2073,
705,
36166,
6,
198,
19849,
796,
30277,
15235,
17,
53,
721,
7,
7890,
13,
14907,
62,
9630,
62,
11600,
11,
11525,
12083,
62,
27740,
28,
12762,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1138,
499,
776,
28,
4164,
499,
776,
11,
2513,
62,
13664,
28,
1120,
11,
4732,
62,
7857,
28,
22,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11114,
62,
525,
62,
17440,
28,
20,
11,
997,
62,
31591,
62,
82,
12629,
28,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29877,
28,
17821,
737,
1462,
7,
25202,
8,
198,
198,
29356,
796,
2746,
13,
29356,
7,
43501,
62,
7857,
28,
12762,
11,
36273,
28,
17821,
11,
997,
62,
22896,
28,
1065,
8,
198,
40085,
7509,
796,
28034,
13,
40085,
13,
50,
29572,
23159,
7,
4868,
7,
19849,
13,
17143,
7307,
3419,
828,
300,
81,
28,
15,
13,
486,
8,
628,
198,
198,
31,
13165,
354,
13,
3919,
62,
9744,
3419,
628,
198,
1640,
36835,
287,
2837,
7,
16,
11,
718,
2599,
198,
220,
220,
220,
4512,
7,
538,
5374,
8,
198,
220,
220,
220,
697,
796,
1332,
3419,
198,
220,
220,
220,
3601,
7,
69,
6,
13807,
5374,
25,
1391,
538,
5374,
5512,
33222,
25,
1391,
4134,
25,
13,
19,
69,
92,
11537,
198
] | 2.336364 | 440 |
'''
Created by auto_sdk on 2019.07.04
'''
from top.api.base import RestApi
| [
7061,
6,
198,
41972,
416,
8295,
62,
21282,
74,
319,
13130,
13,
2998,
13,
3023,
198,
7061,
6,
198,
6738,
1353,
13,
15042,
13,
8692,
1330,
8324,
32,
14415,
198
] | 2.5 | 30 |
#! /usr/bin/python
from myhdl import Signal, ConcatSignal, intbv, always, always_seq, always_comb, instances
from fifo.async import AsyncFifo
from fifo.dummy import DummyFifo, DummyReadFifo
from fifo.interleaver import FifoInterleaver
from wb import WbSlave
# This one could actually be split into two parts, one part that does
# the writing and another part that writes the command and address
# whenever the fifo becomes full enough
# For some reason MyHdl won't give some instances unique names so use
# this hack to force unique names
| [
2,
0,
1220,
14629,
14,
8800,
14,
29412,
198,
6738,
616,
71,
25404,
1330,
26484,
11,
1482,
9246,
11712,
282,
11,
493,
65,
85,
11,
1464,
11,
1464,
62,
41068,
11,
1464,
62,
24011,
11,
10245,
198,
198,
6738,
5515,
78,
13,
292,
13361,
1330,
1081,
13361,
44403,
78,
198,
6738,
5515,
78,
13,
67,
13513,
1330,
360,
13513,
44403,
78,
11,
360,
13513,
5569,
44403,
78,
198,
6738,
5515,
78,
13,
3849,
293,
8770,
1330,
12830,
78,
9492,
293,
8770,
198,
198,
6738,
266,
65,
1330,
370,
65,
11122,
1015,
198,
198,
2,
770,
530,
714,
1682,
307,
6626,
656,
734,
3354,
11,
530,
636,
326,
857,
198,
2,
262,
3597,
290,
1194,
636,
326,
6797,
262,
3141,
290,
2209,
198,
2,
8797,
262,
5515,
78,
4329,
1336,
1576,
198,
198,
2,
1114,
617,
1738,
2011,
39,
25404,
1839,
470,
1577,
617,
10245,
3748,
3891,
523,
779,
198,
2,
428,
8156,
284,
2700,
3748,
3891,
198
] | 3.458599 | 157 |
# -*- coding: utf-8 -*-
# !/usr/bin/env python
import matplotlib.pyplot as plt
from algorithms.sorting.merge_sort import merge_sort
from algorithms.sorting.utils import randomize
from algorithms.sorting.bubble_sort import bubble_sort
from algorithms.sorting.selection_sort import selection_sort
from algorithms.sorting.insertion_sort import insertion_sort
N = 100 # Max length of the lists
STEP = 5 # Step between each list length
SAMPLES = 10 # Number of list to sort for a given length
algorithms = {
"bubble_sort": bubble_sort,
"selection_sort": selection_sort,
"insertion_sort": insertion_sort,
"merge_sort": merge_sort
}
assignments = {}
comparisons = {}
operations = {}
for alg in algorithms.keys():
assignments[alg] = []
comparisons[alg] = []
operations[alg] = []
for list_length in range(1, N + 1):
src = [i for i in range(list_length)]
# Sort the lists for each algorithm
for alg in algorithms.keys():
mean_assignments = 0
mean_comparisons = 0
mean_operations = 0
for i in range(SAMPLES):
sample = randomize(src)
_, complexities = algorithms[alg](sample)
mean_assignments += complexities.assignments
mean_comparisons += complexities.comparisons
mean_operations += complexities.operations
assignments[alg].append(mean_assignments / SAMPLES)
comparisons[alg].append(mean_comparisons / SAMPLES)
operations[alg].append(mean_operations / SAMPLES)
plot_assignments(assignments)
plot_comparisons(comparisons)
plot_operations(operations)
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
5145,
14,
14629,
14,
8800,
14,
24330,
21015,
198,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
198,
6738,
16113,
13,
82,
24707,
13,
647,
469,
62,
30619,
1330,
20121,
62,
30619,
198,
6738,
16113,
13,
82,
24707,
13,
26791,
1330,
4738,
1096,
198,
6738,
16113,
13,
82,
24707,
13,
46176,
903,
62,
30619,
1330,
14310,
62,
30619,
198,
6738,
16113,
13,
82,
24707,
13,
49283,
62,
30619,
1330,
6356,
62,
30619,
198,
6738,
16113,
13,
82,
24707,
13,
28463,
295,
62,
30619,
1330,
36075,
62,
30619,
628,
628,
198,
198,
45,
796,
1802,
220,
1303,
5436,
4129,
286,
262,
8341,
198,
42135,
796,
642,
220,
1303,
5012,
1022,
1123,
1351,
4129,
198,
49302,
6489,
1546,
796,
838,
220,
1303,
7913,
286,
1351,
284,
3297,
329,
257,
1813,
4129,
198,
198,
282,
7727,
907,
796,
1391,
198,
220,
220,
220,
366,
46176,
903,
62,
30619,
1298,
14310,
62,
30619,
11,
198,
220,
220,
220,
366,
49283,
62,
30619,
1298,
6356,
62,
30619,
11,
198,
220,
220,
220,
366,
28463,
295,
62,
30619,
1298,
36075,
62,
30619,
11,
198,
220,
220,
220,
366,
647,
469,
62,
30619,
1298,
20121,
62,
30619,
198,
92,
198,
198,
562,
570,
902,
796,
23884,
198,
785,
1845,
9886,
796,
23884,
198,
3575,
602,
796,
23884,
198,
198,
1640,
435,
70,
287,
16113,
13,
13083,
33529,
198,
220,
220,
220,
25815,
58,
14016,
60,
796,
17635,
198,
220,
220,
220,
17909,
58,
14016,
60,
796,
17635,
198,
220,
220,
220,
4560,
58,
14016,
60,
796,
17635,
628,
198,
1640,
1351,
62,
13664,
287,
2837,
7,
16,
11,
399,
1343,
352,
2599,
198,
220,
220,
220,
12351,
796,
685,
72,
329,
1312,
287,
2837,
7,
4868,
62,
13664,
15437,
628,
220,
220,
220,
1303,
33947,
262,
8341,
329,
1123,
11862,
198,
220,
220,
220,
329,
435,
70,
287,
16113,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
1612,
62,
562,
570,
902,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1612,
62,
785,
1845,
9886,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1612,
62,
3575,
602,
796,
657,
628,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
49302,
6489,
1546,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6291,
796,
4738,
1096,
7,
10677,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
11,
42292,
796,
16113,
58,
14016,
16151,
39873,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1612,
62,
562,
570,
902,
15853,
42292,
13,
562,
570,
902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1612,
62,
785,
1845,
9886,
15853,
42292,
13,
785,
1845,
9886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1612,
62,
3575,
602,
15853,
42292,
13,
3575,
602,
628,
220,
220,
220,
220,
220,
220,
220,
25815,
58,
14016,
4083,
33295,
7,
32604,
62,
562,
570,
902,
1220,
28844,
6489,
1546,
8,
198,
220,
220,
220,
220,
220,
220,
220,
17909,
58,
14016,
4083,
33295,
7,
32604,
62,
785,
1845,
9886,
1220,
28844,
6489,
1546,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4560,
58,
14016,
4083,
33295,
7,
32604,
62,
3575,
602,
1220,
28844,
6489,
1546,
8,
628,
198,
29487,
62,
562,
570,
902,
7,
562,
570,
902,
8,
198,
29487,
62,
785,
1845,
9886,
7,
785,
1845,
9886,
8,
198,
29487,
62,
3575,
602,
7,
3575,
602,
8,
198
] | 2.705193 | 597 |
# Copyright 2019 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Unit test for bulkop machine module
"""
#
# IMPORTS
#
from copy import deepcopy
from tessia.server.db import models
from tessia.server.state_machines import base
from tessia.server.state_machines.bulkop import resource_system
from tests.unit.db.models import DbUnit
from unittest import TestCase
from unittest.mock import patch
from unittest.mock import Mock
import json
import os
#
# CONSTANTS AND DEFINITIONS
#
SYS_HEADERS = (
[field.lower() for field in resource_system.FIELDS_CSV
if field.lower() not in ['ip', 'iface', 'layer2', 'portno']])
#
# CODE
#
class TestResourceSystem(TestCase):
"""
Unit test for the resource_system module of the bulkop state machine.
"""
@classmethod
def init_db(cls):
"""
Create a db from scratch
"""
cls.db.create_db()
sample_file = '{}/data.json'.format(
os.path.dirname(os.path.abspath(__file__)))
with open(sample_file, 'r') as sample_fd:
data = sample_fd.read()
cls.db.create_entry(json.loads(data))
# init_db()
@classmethod
def setUpClass(cls):
"""
Called once to create the db content for this test.
"""
cls.db = DbUnit
cls.init_db()
# subnet used for ip testing
cls._subnet_name = 'lab1-1801-cpc3'
# setUpClass()
def _check_add(self, login, ip_dict, entry):
"""
Auxiliar method to check results of add
"""
# check results
sys_obj = models.System.query.filter_by(name=entry['name']).one()
# check system values
for field in SYS_HEADERS:
# ip field: must add subnet name to it
if field == 'ip':
entry_value = '{}/{}'.format(self._subnet_name, entry[field])
else:
entry_value = entry[field]
self.assertEqual(
entry_value, getattr(sys_obj, field),
'Comparison of field "{}" failed for login "{}"'
.format(field, login))
# check system iface values
iface_obj = models.SystemIface.query.filter_by(
system_id=sys_obj.id).one()
iface_entry = {
'name': 'osa-{}'.format(
entry['iface'].strip("'").split(',')[0].lstrip('0.0.')),
'osname': 'enc{}'.format(
entry['iface'].strip("'").split(',')[0].lstrip('0.0.')),
'attributes': {
'ccwgroup': entry['iface'].strip("'"),
'portno': '0',
'layer2': True,
}
}
# add subnet name to ip
iface_entry['ip_address'] = '{}/{}'.format(
self._subnet_name, entry['ip'])
for field in ['ip_address', 'attributes']:
self.assertEqual(
iface_entry[field], getattr(iface_obj, field),
"Field {} did not match".format(field))
# check new ip address assignment
ip_obj = self._get_ip(
address=entry['ip'], subnet=self._subnet_name)
self.db.session.refresh(ip_obj)
self.assertEqual(ip_obj.system, sys_obj.name)
# check rollback to original values
self.db.session.rollback()
self.assertEqual(models.System.query.filter_by(
name=entry['name']).one_or_none(), None)
ip_obj = models.IpAddress.query.filter_by(id=ip_dict['id']).one()
self.assertEqual(ip_obj.system, ip_dict['system'])
# _check_add()
def _check_update(self, login, orig_dict, entry):
"""
Auxiliar method to check results of update
"""
# check results
sys_obj = models.System.query.filter_by(name=entry['name']).one()
# IMPORTANT: refresh allows the relationships which were changed by
# the operation to be loaded with the new values
self.db.session.refresh(sys_obj)
# check that system values were changed
for field in SYS_HEADERS:
# ip field: must add subnet name to it
if field == 'ip':
entry_value = '{}/{}'.format(self._subnet_name, entry[field])
# normalize empty to None
elif field == 'desc' and not entry[field]:
entry_value = None
else:
entry_value = entry[field]
self.assertEqual(
entry_value, getattr(sys_obj, field),
'Comparison of field "{}" failed for login "{}"'
.format(field, login))
# check that system iface values were changed
iface_obj = models.SystemIface.query.filter_by(
id=orig_dict['iface']['id']).one()
self.db.session.refresh(iface_obj)
iface_entry = {
'attributes': {
'ccwgroup': entry['iface'].strip("'"),
'portno': '1',
'layer2': False,
}
}
# add subnet name to ip
iface_entry['ip_address'] = '{}/{}'.format(
self._subnet_name, entry['ip'])
for field in ['ip_address', 'attributes']:
self.assertEqual(
iface_entry[field], getattr(iface_obj, field),
"Field {} did not match".format(field))
# check new ip address assignment
ip_obj = models.IpAddress.query.filter_by(
id=orig_dict['ip']['new']['id']).one()
self.db.session.refresh(ip_obj)
self.assertEqual(ip_obj.system, sys_obj.name)
# check that new ip has no iface associated with a previous system
self.assertIsNone(models.SystemIface.query.filter(
models.SystemIface.ip_address_id == ip_obj.id,
models.SystemIface.system_id != sys_obj.id
).first(), None)
# system switched ips: check that old ip remains assigned to system
if orig_dict['ip'].get('old') and (
orig_dict['ip']['old']['system'] ==
orig_dict['ip']['new']['system']):
old_ip_obj = models.IpAddress.query.filter_by(
id=orig_dict['ip']['old']['id']).one()
self.assertEqual(old_ip_obj.system, sys_obj.name)
# check rollback to original values
self.db.session.rollback()
sys_obj = models.System.query.filter_by(name=entry['name']).one()
for field in SYS_HEADERS:
self.assertEqual(
orig_dict['sys'][field], getattr(sys_obj, field),
'Comparison of field "{}" failed for login "{}"'
.format(field, login))
iface_obj = models.SystemIface.query.filter_by(
id=orig_dict['iface']['id']).one()
for field in ['ip_address', 'attributes']:
self.assertEqual(
orig_dict['iface'][field], getattr(iface_obj, field),
'Field {} did not match'.format(field))
if orig_dict['ip'].get('old'):
ip_obj = models.IpAddress.query.filter_by(
id=orig_dict['ip']['old']['id']).one()
self.assertEqual(ip_obj.system, orig_dict['ip']['old']['system'])
ip_obj = models.IpAddress.query.filter_by(
id=orig_dict['ip']['new']['id']).one()
self.assertEqual(ip_obj.system, orig_dict['ip']['new']['system'])
# _check_update()
@staticmethod
# _get_ip()
def _get_orig_values(self, ref_entry, old_ip):
"""
Given a db object return a dict containing the original values for
later comparison
"""
# fetch system's original values for later comparison
sys_obj = models.System.query.filter_by(name=ref_entry['name']).one()
sys_orig = {field: getattr(sys_obj, field) for field in SYS_HEADERS}
# fetch iface's original values for later comparison
iface_obj = models.SystemIface.query.filter_by(
system_id=sys_obj.id
).filter(
models.SystemIface.attributes['ccwgroup'].astext ==
ref_entry['iface'].strip("'")
).one()
iface_orig = {
'id': iface_obj.id,
'ip_address': iface_obj.ip_address,
'attributes': iface_obj.attributes
}
# fetch ip's original values for later comparison
new_ip_obj = self._get_ip(
address=ref_entry['ip'], subnet=self._subnet_name)
ip_orig = {
'new': {'id': new_ip_obj.id, 'system': new_ip_obj.system},
}
if old_ip:
old_ip_obj = self._get_ip(
address=old_ip['address'], subnet=self._subnet_name)
ip_orig['old'] = {'id': old_ip_obj.id, 'system': old_ip_obj.system}
return {'sys': sys_orig, 'iface': iface_orig, 'ip': ip_orig}
# _get_orig_values()
def setUp(self):
"""
Prepare the necessary mocks at the beginning of each testcase.
"""
# mock config object
patcher = patch.object(base, 'CONF', autospec=True)
self._mock_conf = patcher.start()
self.addCleanup(patcher.stop)
# mock sys object
patcher = patch.object(base, 'sys', autospec=True)
self._mock_sys = patcher.start()
self._mock_sys_tblimit = 10
self._mock_sys.tracebacklimit = self._mock_sys_tblimit
self.addCleanup(patcher.stop)
patcher = patch.object(resource_system, 'logging')
mock_logging = patcher.start()
self.addCleanup(patcher.stop)
mock_logging.getLogger.return_value = Mock(
spec=['warning', 'error', 'debug', 'info'])
self._mock_logger = mock_logging.getLogger.return_value
# setUp()
def tearDown(self):
"""
Try to avoid affecting next testcase by rolling back pending db
transactions
"""
self.db.session.rollback()
# tearDown()
def test_add_many_roles(self):
"""
Test different scenarios of adding system/iface
"""
ip_addr = '192.168.160.10'
# new IP
ip_obj = models.IpAddress(
address=ip_addr,
desc=None,
modifier='admin',
owner='admin',
project='bulkop project',
subnet=self._subnet_name,
)
self.db.session.add(ip_obj)
self.db.session.commit()
def cleanup_helper():
"""Helper to clean up db to original state"""
# remove ip
ifaces = models.SystemIface.query.filter_by(
ip_address_id=ip_obj.id).all()
for iface_obj in ifaces:
iface_obj.ip_address = None
self.db.session.add(iface_obj)
self.db.session.delete(ip_obj)
self.db.session.commit()
self.addCleanup(cleanup_helper)
ref_entry = {
'hypervisor': 'cpc3',
'name': 'cpc3lp60',
'type': 'LPAR',
'hostname': 'cpc3lp60.domain._com',
'ip': ip_addr,
'iface': "0.0.f500,0.0.f501,0.0.f502",
'layer2': '1',
'portno': '0',
'owner': '[email protected]',
'project': 'bulkop project',
'state': 'AVAILABLE',
'desc': 'Some description',
}
def assert_action(login, ip_owner, ip_system=None, error_msg=None):
"""
Helper function to validate action
"""
ip_obj = self._get_ip(address=ip_addr, subnet=self._subnet_name)
ip_orig = {'id': ip_obj.id, 'owner': ip_obj.owner,
'system': ip_obj.system}
ip_obj.owner = ip_owner
# assign ip to a system
if ip_system:
ip_obj.system = ip_system
else:
ip_obj.system = None
self.db.session.add(ip_obj)
# commit all changes
self.db.session.commit()
# perform action
entry = deepcopy(ref_entry)
user_obj = models.User.query.filter_by(login=login).one()
res_obj = resource_system.ResourceHandlerSystem(user_obj)
# error message specified: check that error occurs
if error_msg:
with self.assertRaisesRegex(PermissionError, error_msg):
res_obj.render_item(entry)
self.db.session.rollback()
else:
res_obj.render_item(entry)
# validate
self._check_add(login, ip_orig, entry)
# restore ip values
ip_obj = self._get_ip(address=ip_addr, subnet=self._subnet_name)
ip_obj.owner = ip_orig['owner']
ip_obj.system = ip_orig['system']
self.db.session.add(ip_obj)
self.db.session.commit()
# assert_action()
logins = [
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
]
for login in logins:
# logins with update-ip permission
if login in ('[email protected]', '[email protected]'):
ip_owner = 'admin'
# logins without permission, must be owner of the ip
else:
ip_owner = login
assert_action(login, ip_owner)
# start section: no role scenarios
# logins without update-system and update-ip permission
logins = [
'[email protected]',
]
for login in logins:
# user has permission to ip but not to create system
msg = 'User has no CREATE permission for the specified project'
assert_action(login, login, error_msg=msg)
# user has no permission to create system nor ip
assert_action(login, 'admin', error_msg=msg)
# logins without update-ip permission
logins = [
'[email protected]',
'[email protected]',
'[email protected]',
]
for login in logins:
# user has permission to create system but not to ip
msg = 'User has no UPDATE permission for the specified IP address'
assert_action(login, 'admin', error_msg=msg)
# user has permission to create system but ip is already assigned
# to another system
msg = ("User has no UPDATE permission for the system 'cpc3' "
"currently holding the IP address")
assert_action(login, 'admin', ip_system='cpc3', error_msg=msg)
# logins with all permissions
logins = [
'[email protected]',
]
for login in logins:
# user has permission to create system but ip is already assigned
# to another system
msg = ("User has no UPDATE permission for the system 'cpc3' "
"currently holding the IP address")
assert_action(login, 'admin', ip_system='cpc3', error_msg=msg)
# test_add_many_roles()
def test_update_change_project(self):
"""
Test the case when the system project is changed
"""
ref_entry = {
'hypervisor': 'cpc3',
'name': 'cpc3lp52',
'type': 'LPAR',
'hostname': 'new_cpc3lp52.domain._com',
# use same ip already assigned
'ip': '192.168.161.222',
'iface': "0.0.f500,0.0.f501,0.0.f502",
# switch from true to false
'layer2': '0',
# add portno parameter
'portno': '1',
'owner': '[email protected]',
'project': 'bulkop project 2',
'state': 'LOCKED',
'desc': 'A new description',
}
logins = [
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
]
for login in logins:
user_obj = models.User.query.filter_by(login=login).one()
sys_obj = models.System.query.filter_by(
name=ref_entry['name']).one()
sys_orig_owner = sys_obj.owner
# exercise case where user is system owner
if login == '[email protected]':
sys_obj.owner = login
# exercise case where user has system permission through a role
else:
sys_obj.owner = 'admin'
self.db.session.add(sys_obj)
ip_obj = self._get_ip(
address=ref_entry['ip'], subnet=self._subnet_name)
ip_orig_owner = ip_obj.owner
# exercise case where user is ip owner
if login in ('[email protected]', '[email protected]',
'[email protected]'):
ip_obj.owner = login
# exercise case where user has ip permission through a role
else:
ip_obj.owner = 'admin'
self.db.session.add(ip_obj)
# give user a role to update system on the new project
role_obj = models.UserRole(
project=ref_entry['project'],
user=user_obj.login,
role="USER_PRIVILEGED"
)
self.db.session.add(role_obj)
self.db.session.commit()
role_id = role_obj.id
# perform action
orig_dict = self._get_orig_values(
ref_entry, {'address': ip_obj.address})
res_obj = resource_system.ResourceHandlerSystem(user_obj)
res_obj.render_item(ref_entry)
# check results
self._check_update(login, orig_dict, ref_entry)
# try again without roles
role_obj = models.UserRole.query.filter_by(id=role_id).one()
self.db.session.delete(role_obj)
self.db.session.commit()
# admin can update the project
if login == '[email protected]':
res_obj.render_item(ref_entry)
self._check_update(login, orig_dict, ref_entry)
# other users should fail
else:
with self.assertRaisesRegex(
PermissionError, 'User has no UPDATE permission'):
res_obj.render_item(ref_entry)
self.db.session.rollback()
# restore original owners
sys_obj = models.System.query.filter_by(
name=ref_entry['name']).one()
sys_obj.owner = sys_orig_owner
self.db.session.add(sys_obj)
ip_obj = models.IpAddress.query.filter_by(
id=orig_dict['ip']['new']['id']).one()
ip_obj.owner = ip_orig_owner
self.db.session.add(ip_obj)
self.db.session.commit()
# test_update_change_project()
def test_update_invalid_ip(self):
"""
Exercise invalid IP input
"""
ref_entry = {
'hypervisor': 'cpc3',
'name': 'cpc3lp52',
'type': 'LPAR',
'hostname': 'new_cpc3lp52.domain._com',
'ip': '',
'iface': "0.0.f500,0.0.f501,0.0.f502",
# switch from true to false
'layer2': '0',
# add portno parameter
'portno': '1',
'owner': '[email protected]',
'project': 'bulkop project',
'state': 'LOCKED',
'desc': 'A new description',
}
combos = [
# make sure ip is mandatory
('A system must have an IP address assigned', ''),
# invalid ips
("Invalid IP address 'wrong_ip'", 'wrong_ip'),
("Invalid IP address 'wrong/wrong_ip'", 'wrong/wrong_ip'),
# ip not found
("IP address specified not found", 'subnet/10.100.10.10'),
("IP address specified not found", '10.100.10.10'),
]
user_obj = models.User.query.filter_by(
login='[email protected]').one()
res_obj = resource_system.ResourceHandlerSystem(user_obj)
for msg, value in combos:
ref_entry['ip'] = value
with self.assertRaisesRegex(ValueError, msg):
res_obj.render_item(ref_entry)
self.db.session.rollback()
# test_update_invalid_ip()
def test_update_invalid_values(self):
"""
Test general invalid values
"""
ref_entry = {
'hypervisor': 'cpc3',
'name': 'cpc3lp52',
'type': 'LPAR',
'hostname': 'new_cpc3lp52.domain._com',
'ip': '192.168.161.222',
'iface': "0.0.f500,0.0.f501,0.0.f502",
'layer2': '0',
'portno': '1',
'owner': '[email protected]',
'project': 'bulkop project 2',
'state': 'LOCKED',
'desc': 'A new description',
}
combos = [
('Tried to change hypervisor from cpc3 to cpc3lp53',
{'hypervisor': 'cpc3lp53'}),
('Value for layer2 must be 1 or 0', {'layer2': 'true'}),
('Value for portno must be 1 or 0', {'portno': '2'}),
('Tried to change system type from LPAR to KVM',
{'type': 'KVM'}),
]
user_obj = models.User.query.filter_by(
login='[email protected]').one()
res_obj = resource_system.ResourceHandlerSystem(user_obj)
for msg, values in combos:
entry = deepcopy(ref_entry)
entry.update(values)
with self.assertRaisesRegex(ValueError, msg):
res_obj.render_item(entry)
self.db.session.rollback()
# test_update_invalid_values()
def test_update_many_roles(self):
"""
Test different scenarios of updating system/iface
"""
# new IPs for testing
ip_addr = '192.168.160.10'
ip_addr_2 = '192.168.160.11'
for addr in [ip_addr, ip_addr_2]:
# new IPs for testing
ip_obj = models.IpAddress(
address=addr,
desc=None,
modifier='admin',
owner='admin',
project='bulkop project',
subnet=self._subnet_name,
)
self.db.session.add(ip_obj)
self.db.session.commit()
def cleanup_helper():
"""Helper to clean up db to original state"""
# remove ips
for addr in [ip_addr, ip_addr_2]:
ip_obj = self._get_ip(address=addr, subnet=self._subnet_name)
ifaces = models.SystemIface.query.filter_by(
ip_address_id=ip_obj.id).all()
for iface_obj in ifaces:
iface_obj.ip_address = None
self.db.session.add(iface_obj)
self.db.session.delete(ip_obj)
self.db.session.commit()
self.addCleanup(cleanup_helper)
ref_entry = {
'hypervisor': 'cpc3',
'name': 'cpc3lp52',
'type': 'LPAR',
'hostname': 'new_cpc3lp52.domain._com',
# assign a new ip
'ip': ip_obj.address,
'iface': "0.0.f500,0.0.f501,0.0.f502",
# switch from true to false
'layer2': '0',
# add portno parameter
'portno': '1',
'owner': '[email protected]',
'project': 'bulkop project 2',
'state': 'LOCKED',
'desc': 'A new description',
}
def assert_update(update_user, sys_owner, ip_cur, ip_target,
error_msg=None):
"""
Helper function to validate update action
Args:
update_user (str): login performing the update action
sys_owner (str): set this login as owner of the system
ip_cur (str): name and owner of the current ip address
ip_target (str): name and owner of target ip address
error_msg (str): wait for error when specified
"""
# set system owner
sys_obj = models.System.query.filter_by(
name=ref_entry['name']).one()
orig_sys_owner = sys_obj.owner
sys_obj.owner = sys_owner
self.db.session.add(sys_obj)
# values before changes made by the method
ip_orig_values = {}
if ip_cur:
ip_obj = self._get_ip(
address=ip_cur['address'], subnet=self._subnet_name)
ip_obj.owner = ip_cur['owner']
# assign ip to system
ip_obj.system = ref_entry['name']
self.db.session.add(ip_obj)
ip_orig_values['cur'] = {
'owner': ip_obj.owner, 'system': ip_obj.system,
'iface': 'update_test_iface'}
# target ip
ip_obj = self._get_ip(
address=ip_target['address'], subnet=self._subnet_name)
ip_orig_values['target'] = {
'owner': ip_obj.owner, 'system': ip_obj.system}
ip_obj.owner = ip_target['owner']
# assign ip to system
if ip_target.get('assign'):
ip_obj.system = ip_target['assign']
# make sure at least one iface with the ip assigned exists in
# order to exercise ip removal
iface_obj = models.SystemIface(
name='update_test_iface', attributes={},
system=ip_target['assign'], type='OSA',
ip_address_id=ip_obj.id)
self.db.session.add(iface_obj)
else:
ip_obj.system = None
self.db.session.add(ip_obj)
# commit all changes
self.db.session.commit()
# perform action
entry = deepcopy(ref_entry)
entry['project'] = 'bulkop project'
entry['ip'] = ip_target['address']
orig_dict = self._get_orig_values(entry, ip_cur)
user_obj = models.User.query.filter_by(login=update_user).one()
res_obj = resource_system.ResourceHandlerSystem(user_obj)
# error message specified: check that error occurs
if error_msg:
with self.assertRaisesRegex(PermissionError, error_msg):
res_obj.render_item(entry)
self.db.session.rollback()
else:
res_obj.render_item(entry)
# validate
self._check_update(update_user, orig_dict, entry)
# restore cur ip
if ip_orig_values.get('cur'):
ip_obj = self._get_ip(
address=ip_cur['address'], subnet=self._subnet_name)
ip_obj.owner = ip_orig_values['cur']['owner']
ip_obj.system = ip_orig_values['cur']['system']
self.db.session.add(ip_obj)
# restore target ip
ip_obj = self._get_ip(
address=ip_target['address'], subnet=self._subnet_name)
ip_obj.owner = ip_orig_values['target']['owner']
ip_obj.system = ip_orig_values['target']['system']
self.db.session.add(ip_obj)
# remove temporary iface
if ip_target.get('assign'):
iface_obj = models.SystemIface.query.join(
'system_rel').filter(
models.SystemIface.name == 'update_test_iface',
models.System.name == ip_target['assign']
).one()
self.db.session.delete(iface_obj)
# restore system owner
sys_obj = models.System.query.filter_by(name=entry['name']).one()
sys_obj.owner = orig_sys_owner
self.db.session.add(sys_obj)
self.db.session.commit()
# assert_update()
logins = [
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
]
for login in logins:
# update iface set ip, user has permission to both system and ip
# exercise case where user is owner of system
if login in ('[email protected]', '[email protected]'):
sys_owner = login
# exercise case where user has permission via a role
else:
sys_owner = 'admin'
# exercise case where user is owner of ip
if login not in ('[email protected]',
'[email protected]'):
ip_owner = login
# exercise case where user has permission via a role
else:
ip_owner = 'admin'
# update iface set ip assigned to system, user has permission to
# system but not to ip
assert_update(
login, sys_owner,
None, {'address': ip_addr, 'owner': 'admin',
'assign': ref_entry['name']},
)
# update iface change ip, user has permission to both
# exercise case where user is owner
if login not in ('[email protected]',
'[email protected]'):
ip_owner_2 = login
# exercise case where user has permission via a role
else:
ip_owner_2 = 'admin'
assert_update(
login, sys_owner,
{'address': ip_addr, 'owner': ip_owner},
{'address': ip_addr_2, 'owner': ip_owner_2}
)
# update iface change ip already assigned to system, user has
# permission to system but not to ip
assert_update(
login, sys_owner,
{'address': ip_addr, 'owner': ip_owner},
{'address': ip_addr_2, 'owner': ip_owner_2,
'assign': ref_entry['name']},
)
logins_system = (
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
)
for login in logins_system:
# update iface set ip already assigned to another system, user
# has permission to system and ip
assert_update(
login, 'admin', None,
{'address': ip_addr, 'owner': login, 'assign': 'cpc3lp53'}
)
# start section: no role scenarios
hw_admin = '[email protected]'
# logins with update-system permission but no update-ip
logins_system = (
'[email protected]',
'[email protected]',
)
for login in logins_system:
msg = (
'User has no UPDATE permission for the specified IP address')
# update iface assign ip, user has permission to system but not
# to ip
assert_update(
login, hw_admin,
None, {'address': ip_addr, 'owner': hw_admin}, error_msg=msg)
# update iface change ip, user has permission to system and
# current ip but not to target ip
assert_update(
login, hw_admin,
{'address': ip_addr, 'owner': login},
{'address': ip_addr_2, 'owner': hw_admin}, error_msg=msg)
# logins without update-system permission
logins_no_system = (
'[email protected]',
'[email protected]'
)
for login in logins_no_system:
# update iface assign ip, user has permission to ip but
# not to system
msg = 'User has no UPDATE permission for the specified system'
assert_update(
login, hw_admin,
None, {'address': ip_addr, 'owner': login}, error_msg=msg)
# update iface assign ip, user has permission to system but not
# to ip
msg = 'User has no UPDATE permission for the specified IP address'
assert_update(
login, login,
None, {'address': ip_addr, 'owner': hw_admin}, error_msg=msg)
# update iface assign ip, user has no permission to system nor ip
msg = 'User has no UPDATE permission for the specified system'
assert_update(
login, hw_admin,
None, {'address': ip_addr, 'owner': hw_admin}, error_msg=msg)
# update iface change ip, user has permission to system and
# current ip but not to target ip
msg = 'User has no UPDATE permission for the specified IP address'
assert_update(
login, login,
{'address': ip_addr, 'owner': login},
{'address': ip_addr_2, 'owner': hw_admin}, error_msg=msg)
# test cases where target ip belongs to another system in a project
# without permission
another_system = 'cpc3'
logins = [
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
]
for login in logins:
# update iface assign ip, user has permission to system and
# ip but ip is already assigned to another system
msg = ("User has no UPDATE permission for the system '{}' "
"currently holding the IP address".format(another_system))
assert_update(
login, login, None,
{'address': ip_addr, 'owner': login,
'assign': another_system}, error_msg=msg)
# update iface change ip, user has permission to system and ip but
# ip is already assigned to another system
assert_update(
login, login,
{'address': ip_addr, 'owner': login},
{'address': ip_addr_2, 'owner': login,
'assign': another_system}, error_msg=msg)
# test_update_many_roles()
def test_update_no_change(self):
"""
Test the case when no changes are detected
"""
# values below match data.json file
ref_entry = {
"desc": '',
"hostname": "cpc3lp52.domain._com",
"hypervisor": "cpc3",
# add strange key on purpose to test sanitization by code
"modifier": "admin",
"name": "cpc3lp52",
"owner": "admin",
"project": "bulkop project",
"state": "AVAILABLE",
"type": "LPAR",
"iface": "0.0.f500,0.0.f501,0.0.f502",
"ip": "192.168.161.222",
"layer2": "1",
"portno": "0",
}
login = '[email protected]'
# perform action
user_obj = models.User.query.filter_by(login=login).one()
res_obj = resource_system.ResourceHandlerSystem(user_obj)
res_obj.render_item(ref_entry)
self.db.session.rollback()
self._mock_logger.info.assert_any_call(
'skipping iface %s/%s (no changes)', ref_entry['name'],
"gb-extern")
self._mock_logger.info.assert_any_call(
'skipping system %s (no changes)', ref_entry['name'])
# test_update_no_change()
# TestResourceSystem
| [
2,
15069,
13130,
19764,
11421,
13,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
11247,
739,
262,
13789,
13,
198,
198,
37811,
198,
26453,
1332,
329,
11963,
404,
4572,
8265,
198,
37811,
198,
198,
2,
198,
2,
30023,
33002,
198,
2,
198,
6738,
4866,
1330,
2769,
30073,
198,
6738,
256,
408,
544,
13,
15388,
13,
9945,
1330,
4981,
198,
6738,
256,
408,
544,
13,
15388,
13,
5219,
62,
76,
620,
1127,
1330,
2779,
198,
6738,
256,
408,
544,
13,
15388,
13,
5219,
62,
76,
620,
1127,
13,
65,
12171,
404,
1330,
8271,
62,
10057,
198,
6738,
5254,
13,
20850,
13,
9945,
13,
27530,
1330,
360,
65,
26453,
198,
6738,
555,
715,
395,
1330,
6208,
20448,
198,
6738,
555,
715,
395,
13,
76,
735,
1330,
8529,
198,
6738,
555,
715,
395,
13,
76,
735,
1330,
44123,
198,
198,
11748,
33918,
198,
11748,
28686,
198,
198,
2,
198,
2,
7102,
2257,
1565,
4694,
5357,
5550,
20032,
2043,
11053,
198,
2,
198,
50,
16309,
62,
37682,
4877,
796,
357,
198,
220,
220,
220,
685,
3245,
13,
21037,
3419,
329,
2214,
287,
8271,
62,
10057,
13,
11674,
3698,
5258,
62,
7902,
53,
198,
220,
220,
220,
220,
611,
2214,
13,
21037,
3419,
407,
287,
37250,
541,
3256,
705,
361,
558,
3256,
705,
29289,
17,
3256,
705,
634,
3919,
6,
11907,
8,
198,
198,
2,
198,
2,
42714,
198,
2,
628,
198,
4871,
6208,
26198,
11964,
7,
14402,
20448,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11801,
1332,
329,
262,
8271,
62,
10057,
8265,
286,
262,
11963,
404,
1181,
4572,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
825,
2315,
62,
9945,
7,
565,
82,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
13610,
257,
20613,
422,
12692,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
537,
82,
13,
9945,
13,
17953,
62,
9945,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
6291,
62,
7753,
796,
705,
90,
92,
14,
7890,
13,
17752,
4458,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
6978,
13,
15908,
3672,
7,
418,
13,
6978,
13,
397,
2777,
776,
7,
834,
7753,
834,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
39873,
62,
7753,
11,
705,
81,
11537,
355,
6291,
62,
16344,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
6291,
62,
16344,
13,
961,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
537,
82,
13,
9945,
13,
17953,
62,
13000,
7,
17752,
13,
46030,
7,
7890,
4008,
198,
220,
220,
220,
1303,
2315,
62,
9945,
3419,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
825,
900,
4933,
9487,
7,
565,
82,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
34099,
1752,
284,
2251,
262,
20613,
2695,
329,
428,
1332,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
537,
82,
13,
9945,
796,
360,
65,
26453,
198,
220,
220,
220,
220,
220,
220,
220,
537,
82,
13,
15003,
62,
9945,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
850,
3262,
973,
329,
20966,
4856,
198,
220,
220,
220,
220,
220,
220,
220,
537,
82,
13557,
7266,
3262,
62,
3672,
796,
705,
23912,
16,
12,
1507,
486,
12,
13155,
66,
18,
6,
198,
220,
220,
220,
1303,
900,
4933,
9487,
3419,
628,
220,
220,
220,
825,
4808,
9122,
62,
2860,
7,
944,
11,
17594,
11,
20966,
62,
11600,
11,
5726,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
47105,
4797,
2446,
284,
2198,
2482,
286,
751,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
2482,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
796,
4981,
13,
11964,
13,
22766,
13,
24455,
62,
1525,
7,
3672,
28,
13000,
17816,
3672,
20520,
737,
505,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
1080,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2214,
287,
311,
16309,
62,
37682,
4877,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
20966,
2214,
25,
1276,
751,
850,
3262,
1438,
284,
340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2214,
6624,
705,
541,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
62,
8367,
796,
705,
90,
92,
14,
90,
92,
4458,
18982,
7,
944,
13557,
7266,
3262,
62,
3672,
11,
5726,
58,
3245,
12962,
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,
5726,
62,
8367,
796,
5726,
58,
3245,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
62,
8367,
11,
651,
35226,
7,
17597,
62,
26801,
11,
2214,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
50249,
1653,
286,
2214,
45144,
36786,
4054,
329,
17594,
45144,
92,
30543,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
18982,
7,
3245,
11,
17594,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
1080,
611,
558,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
26801,
796,
4981,
13,
11964,
1532,
558,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1080,
62,
312,
28,
17597,
62,
26801,
13,
312,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
13000,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
705,
8546,
12,
90,
92,
4458,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
17816,
361,
558,
6,
4083,
36311,
7203,
6,
11074,
35312,
7,
3256,
11537,
58,
15,
4083,
75,
36311,
10786,
15,
13,
15,
2637,
36911,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
418,
3672,
10354,
705,
12685,
90,
92,
4458,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
17816,
361,
558,
6,
4083,
36311,
7203,
6,
11074,
35312,
7,
3256,
11537,
58,
15,
4083,
75,
36311,
10786,
15,
13,
15,
2637,
36911,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1078,
7657,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
535,
86,
8094,
10354,
5726,
17816,
361,
558,
6,
4083,
36311,
7203,
6,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
634,
3919,
10354,
705,
15,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
29289,
17,
10354,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
751,
850,
3262,
1438,
284,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
13000,
17816,
541,
62,
21975,
20520,
796,
705,
90,
92,
14,
90,
92,
4458,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
7266,
3262,
62,
3672,
11,
5726,
17816,
541,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2214,
287,
37250,
541,
62,
21975,
3256,
705,
1078,
7657,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
13000,
58,
3245,
4357,
651,
35226,
7,
361,
558,
62,
26801,
11,
2214,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
15878,
23884,
750,
407,
2872,
1911,
18982,
7,
3245,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
649,
20966,
2209,
16237,
198,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
2116,
13557,
1136,
62,
541,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2209,
28,
13000,
17816,
541,
6,
4357,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
5420,
3447,
7,
541,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
541,
62,
26801,
13,
10057,
11,
25064,
62,
26801,
13,
3672,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
4836,
1891,
284,
2656,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2487,
1891,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
27530,
13,
11964,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
28,
13000,
17816,
3672,
20520,
737,
505,
62,
273,
62,
23108,
22784,
6045,
8,
628,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
4981,
13,
40,
79,
20231,
13,
22766,
13,
24455,
62,
1525,
7,
312,
28,
541,
62,
11600,
17816,
312,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
541,
62,
26801,
13,
10057,
11,
20966,
62,
11600,
17816,
10057,
6,
12962,
198,
220,
220,
220,
1303,
4808,
9122,
62,
2860,
3419,
628,
220,
220,
220,
825,
4808,
9122,
62,
19119,
7,
944,
11,
17594,
11,
1796,
62,
11600,
11,
5726,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
47105,
4797,
2446,
284,
2198,
2482,
286,
4296,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
2482,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
796,
4981,
13,
11964,
13,
22766,
13,
24455,
62,
1525,
7,
3672,
28,
13000,
17816,
3672,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
30023,
9863,
8643,
25,
14976,
3578,
262,
6958,
543,
547,
3421,
416,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
262,
4905,
284,
307,
9639,
351,
262,
649,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
5420,
3447,
7,
17597,
62,
26801,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
326,
1080,
3815,
547,
3421,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2214,
287,
311,
16309,
62,
37682,
4877,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
20966,
2214,
25,
1276,
751,
850,
3262,
1438,
284,
340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2214,
6624,
705,
541,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
62,
8367,
796,
705,
90,
92,
14,
90,
92,
4458,
18982,
7,
944,
13557,
7266,
3262,
62,
3672,
11,
5726,
58,
3245,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3487,
1096,
6565,
284,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2214,
6624,
705,
20147,
6,
290,
407,
5726,
58,
3245,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
62,
8367,
796,
6045,
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,
5726,
62,
8367,
796,
5726,
58,
3245,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
62,
8367,
11,
651,
35226,
7,
17597,
62,
26801,
11,
2214,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
50249,
1653,
286,
2214,
45144,
36786,
4054,
329,
17594,
45144,
92,
30543,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
18982,
7,
3245,
11,
17594,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
326,
1080,
611,
558,
3815,
547,
3421,
198,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
26801,
796,
4981,
13,
11964,
1532,
558,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
28,
11612,
62,
11600,
17816,
361,
558,
6,
7131,
6,
312,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
5420,
3447,
7,
361,
558,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
13000,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1078,
7657,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
535,
86,
8094,
10354,
5726,
17816,
361,
558,
6,
4083,
36311,
7203,
6,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
634,
3919,
10354,
705,
16,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
29289,
17,
10354,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
751,
850,
3262,
1438,
284,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
13000,
17816,
541,
62,
21975,
20520,
796,
705,
90,
92,
14,
90,
92,
4458,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
7266,
3262,
62,
3672,
11,
5726,
17816,
541,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2214,
287,
37250,
541,
62,
21975,
3256,
705,
1078,
7657,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
13000,
58,
3245,
4357,
651,
35226,
7,
361,
558,
62,
26801,
11,
2214,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
15878,
23884,
750,
407,
2872,
1911,
18982,
7,
3245,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
649,
20966,
2209,
16237,
198,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
4981,
13,
40,
79,
20231,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
28,
11612,
62,
11600,
17816,
541,
6,
7131,
6,
3605,
6,
7131,
6,
312,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
5420,
3447,
7,
541,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
541,
62,
26801,
13,
10057,
11,
25064,
62,
26801,
13,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
326,
649,
20966,
468,
645,
611,
558,
3917,
351,
257,
2180,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
3792,
14202,
7,
27530,
13,
11964,
1532,
558,
13,
22766,
13,
24455,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4981,
13,
11964,
1532,
558,
13,
541,
62,
21975,
62,
312,
6624,
20966,
62,
26801,
13,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4981,
13,
11964,
1532,
558,
13,
10057,
62,
312,
14512,
25064,
62,
26801,
13,
312,
198,
220,
220,
220,
220,
220,
220,
220,
6739,
11085,
22784,
6045,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1080,
15293,
220,
2419,
25,
2198,
326,
1468,
20966,
3793,
8686,
284,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1796,
62,
11600,
17816,
541,
6,
4083,
1136,
10786,
727,
11537,
290,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1796,
62,
11600,
17816,
541,
6,
7131,
6,
727,
6,
7131,
6,
10057,
20520,
6624,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1796,
62,
11600,
17816,
541,
6,
7131,
6,
3605,
6,
7131,
6,
10057,
20520,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1468,
62,
541,
62,
26801,
796,
4981,
13,
40,
79,
20231,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
28,
11612,
62,
11600,
17816,
541,
6,
7131,
6,
727,
6,
7131,
6,
312,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
727,
62,
541,
62,
26801,
13,
10057,
11,
25064,
62,
26801,
13,
3672,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
4836,
1891,
284,
2656,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2487,
1891,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
796,
4981,
13,
11964,
13,
22766,
13,
24455,
62,
1525,
7,
3672,
28,
13000,
17816,
3672,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2214,
287,
311,
16309,
62,
37682,
4877,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1796,
62,
11600,
17816,
17597,
6,
7131,
3245,
4357,
651,
35226,
7,
17597,
62,
26801,
11,
2214,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
50249,
1653,
286,
2214,
45144,
36786,
4054,
329,
17594,
45144,
92,
30543,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
18982,
7,
3245,
11,
17594,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
26801,
796,
4981,
13,
11964,
1532,
558,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
28,
11612,
62,
11600,
17816,
361,
558,
6,
7131,
6,
312,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2214,
287,
37250,
541,
62,
21975,
3256,
705,
1078,
7657,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1796,
62,
11600,
17816,
361,
558,
6,
7131,
3245,
4357,
651,
35226,
7,
361,
558,
62,
26801,
11,
2214,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
15878,
23884,
750,
407,
2872,
4458,
18982,
7,
3245,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
611,
1796,
62,
11600,
17816,
541,
6,
4083,
1136,
10786,
727,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
4981,
13,
40,
79,
20231,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
28,
11612,
62,
11600,
17816,
541,
6,
7131,
6,
727,
6,
7131,
6,
312,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
541,
62,
26801,
13,
10057,
11,
1796,
62,
11600,
17816,
541,
6,
7131,
6,
727,
6,
7131,
6,
10057,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
4981,
13,
40,
79,
20231,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
28,
11612,
62,
11600,
17816,
541,
6,
7131,
6,
3605,
6,
7131,
6,
312,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
541,
62,
26801,
13,
10057,
11,
1796,
62,
11600,
17816,
541,
6,
7131,
6,
3605,
6,
7131,
6,
10057,
6,
12962,
198,
220,
220,
220,
1303,
4808,
9122,
62,
19119,
3419,
628,
220,
220,
220,
2488,
12708,
24396,
198,
220,
220,
220,
1303,
4808,
1136,
62,
541,
3419,
628,
220,
220,
220,
825,
4808,
1136,
62,
11612,
62,
27160,
7,
944,
11,
1006,
62,
13000,
11,
1468,
62,
541,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
11259,
257,
20613,
2134,
1441,
257,
8633,
7268,
262,
2656,
3815,
329,
198,
220,
220,
220,
220,
220,
220,
220,
1568,
7208,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
21207,
1080,
338,
2656,
3815,
329,
1568,
7208,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
796,
4981,
13,
11964,
13,
22766,
13,
24455,
62,
1525,
7,
3672,
28,
5420,
62,
13000,
17816,
3672,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
11612,
796,
1391,
3245,
25,
651,
35226,
7,
17597,
62,
26801,
11,
2214,
8,
329,
2214,
287,
311,
16309,
62,
37682,
4877,
92,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
21207,
611,
558,
338,
2656,
3815,
329,
1568,
7208,
198,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
26801,
796,
4981,
13,
11964,
1532,
558,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1080,
62,
312,
28,
17597,
62,
26801,
13,
312,
198,
220,
220,
220,
220,
220,
220,
220,
6739,
24455,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4981,
13,
11964,
1532,
558,
13,
1078,
7657,
17816,
535,
86,
8094,
6,
4083,
459,
2302,
6624,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1006,
62,
13000,
17816,
361,
558,
6,
4083,
36311,
7203,
6,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
6739,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
11612,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
312,
10354,
611,
558,
62,
26801,
13,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
541,
62,
21975,
10354,
611,
558,
62,
26801,
13,
541,
62,
21975,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1078,
7657,
10354,
611,
558,
62,
26801,
13,
1078,
7657,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
21207,
20966,
338,
2656,
3815,
329,
1568,
7208,
198,
220,
220,
220,
220,
220,
220,
220,
649,
62,
541,
62,
26801,
796,
2116,
13557,
1136,
62,
541,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2209,
28,
5420,
62,
13000,
17816,
541,
6,
4357,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
11612,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3605,
10354,
1391,
6,
312,
10354,
649,
62,
541,
62,
26801,
13,
312,
11,
705,
10057,
10354,
649,
62,
541,
62,
26801,
13,
10057,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1468,
62,
541,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1468,
62,
541,
62,
26801,
796,
2116,
13557,
1136,
62,
541,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2209,
28,
727,
62,
541,
17816,
21975,
6,
4357,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
11612,
17816,
727,
20520,
796,
1391,
6,
312,
10354,
1468,
62,
541,
62,
26801,
13,
312,
11,
705,
10057,
10354,
1468,
62,
541,
62,
26801,
13,
10057,
92,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
6,
17597,
10354,
25064,
62,
11612,
11,
705,
361,
558,
10354,
611,
558,
62,
11612,
11,
705,
541,
10354,
20966,
62,
11612,
92,
198,
220,
220,
220,
1303,
4808,
1136,
62,
11612,
62,
27160,
3419,
628,
220,
220,
220,
825,
900,
4933,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
43426,
262,
3306,
285,
3320,
379,
262,
3726,
286,
1123,
1332,
7442,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
15290,
4566,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
1458,
2044,
796,
8529,
13,
15252,
7,
8692,
11,
705,
10943,
37,
3256,
44619,
43106,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
735,
62,
10414,
796,
1458,
2044,
13,
9688,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2860,
32657,
929,
7,
8071,
2044,
13,
11338,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
15290,
25064,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
1458,
2044,
796,
8529,
13,
15252,
7,
8692,
11,
705,
17597,
3256,
44619,
43106,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
735,
62,
17597,
796,
1458,
2044,
13,
9688,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
735,
62,
17597,
62,
83,
2436,
320,
270,
796,
838,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
735,
62,
17597,
13,
40546,
1891,
32374,
796,
2116,
13557,
76,
735,
62,
17597,
62,
83,
2436,
320,
270,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2860,
32657,
929,
7,
8071,
2044,
13,
11338,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1458,
2044,
796,
8529,
13,
15252,
7,
31092,
62,
10057,
11,
705,
6404,
2667,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
15290,
62,
6404,
2667,
796,
1458,
2044,
13,
9688,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2860,
32657,
929,
7,
8071,
2044,
13,
11338,
8,
198,
220,
220,
220,
220,
220,
220,
220,
15290,
62,
6404,
2667,
13,
1136,
11187,
1362,
13,
7783,
62,
8367,
796,
44123,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1020,
28,
17816,
43917,
3256,
705,
18224,
3256,
705,
24442,
3256,
705,
10951,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
735,
62,
6404,
1362,
796,
15290,
62,
6404,
2667,
13,
1136,
11187,
1362,
13,
7783,
62,
8367,
198,
220,
220,
220,
1303,
900,
4933,
3419,
628,
220,
220,
220,
825,
11626,
8048,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
9993,
284,
3368,
13891,
1306,
1332,
7442,
416,
10708,
736,
13310,
20613,
198,
220,
220,
220,
220,
220,
220,
220,
8945,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2487,
1891,
3419,
198,
220,
220,
220,
1303,
11626,
8048,
3419,
628,
220,
220,
220,
825,
1332,
62,
2860,
62,
21834,
62,
305,
829,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
6208,
1180,
13858,
286,
4375,
1080,
14,
361,
558,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
29851,
796,
705,
17477,
13,
14656,
13,
14198,
13,
940,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
649,
6101,
198,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
4981,
13,
40,
79,
20231,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2209,
28,
541,
62,
29851,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1715,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23157,
11639,
28482,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4870,
11639,
28482,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1628,
11639,
65,
12171,
404,
1628,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
541,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
41509,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
825,
27425,
62,
2978,
525,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
47429,
284,
3424,
510,
20613,
284,
2656,
1181,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4781,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2114,
796,
4981,
13,
11964,
1532,
558,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
21975,
62,
312,
28,
541,
62,
26801,
13,
312,
737,
439,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
611,
558,
62,
26801,
287,
611,
2114,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
26801,
13,
541,
62,
21975,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
361,
558,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
33678,
7,
541,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
41509,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2860,
32657,
929,
7,
27773,
929,
62,
2978,
525,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1006,
62,
13000,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
49229,
13131,
10354,
705,
13155,
66,
18,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
705,
13155,
66,
18,
34431,
1899,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4906,
10354,
705,
19930,
1503,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4774,
3672,
10354,
705,
13155,
66,
18,
34431,
1899,
13,
27830,
13557,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
541,
10354,
20966,
62,
29851,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
361,
558,
10354,
366,
15,
13,
15,
13,
69,
4059,
11,
15,
13,
15,
13,
69,
33548,
11,
15,
13,
15,
13,
69,
35126,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
29289,
17,
10354,
705,
16,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
634,
3919,
10354,
705,
15,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18403,
10354,
705,
7220,
62,
7220,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
16302,
10354,
705,
65,
12171,
404,
1628,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5219,
10354,
705,
10116,
32,
4146,
17534,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20147,
10354,
705,
4366,
6764,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
220,
220,
825,
6818,
62,
2673,
7,
38235,
11,
20966,
62,
18403,
11,
20966,
62,
10057,
28,
14202,
11,
4049,
62,
19662,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5053,
525,
2163,
284,
26571,
2223,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
2116,
13557,
1136,
62,
541,
7,
21975,
28,
541,
62,
29851,
11,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
11612,
796,
1391,
6,
312,
10354,
20966,
62,
26801,
13,
312,
11,
705,
18403,
10354,
20966,
62,
26801,
13,
18403,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
10057,
10354,
20966,
62,
26801,
13,
10057,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
18403,
796,
20966,
62,
18403,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8333,
20966,
284,
257,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
20966,
62,
10057,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
10057,
796,
20966,
62,
10057,
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,
20966,
62,
26801,
13,
10057,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
541,
62,
26801,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4589,
477,
2458,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
41509,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1620,
2223,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
796,
2769,
30073,
7,
5420,
62,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
26801,
796,
4981,
13,
12982,
13,
22766,
13,
24455,
62,
1525,
7,
38235,
28,
38235,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
796,
8271,
62,
10057,
13,
26198,
25060,
11964,
7,
7220,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4049,
3275,
7368,
25,
2198,
326,
4049,
8833,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4049,
62,
19662,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
2116,
13,
30493,
21762,
2696,
3041,
25636,
7,
5990,
3411,
12331,
11,
4049,
62,
19662,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
13,
13287,
62,
9186,
7,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2487,
1891,
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,
581,
62,
26801,
13,
13287,
62,
9186,
7,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
26571,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
9122,
62,
2860,
7,
38235,
11,
20966,
62,
11612,
11,
5726,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
11169,
20966,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
2116,
13557,
1136,
62,
541,
7,
21975,
28,
541,
62,
29851,
11,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
18403,
796,
20966,
62,
11612,
17816,
18403,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
10057,
796,
20966,
62,
11612,
17816,
10057,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
541,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
41509,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6818,
62,
2673,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
2604,
1040,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
13776,
48446,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
16302,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
329,
17594,
287,
2604,
1040,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2604,
1040,
351,
4296,
12,
541,
7170,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
17594,
287,
19203,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
3256,
705,
7220,
62,
28482,
31,
27830,
13,
785,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
18403,
796,
705,
28482,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2604,
1040,
1231,
7170,
11,
1276,
307,
4870,
286,
262,
20966,
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,
20966,
62,
18403,
796,
17594,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
2673,
7,
38235,
11,
20966,
62,
18403,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
923,
2665,
25,
645,
2597,
13858,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2604,
1040,
1231,
4296,
12,
10057,
290,
4296,
12,
541,
7170,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
1040,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
49343,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
329,
17594,
287,
2604,
1040,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2836,
468,
7170,
284,
20966,
475,
407,
284,
2251,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
705,
12982,
468,
645,
29244,
6158,
7170,
329,
262,
7368,
1628,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
2673,
7,
38235,
11,
17594,
11,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2836,
468,
645,
7170,
284,
2251,
1080,
4249,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
2673,
7,
38235,
11,
705,
28482,
3256,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2604,
1040,
1231,
4296,
12,
541,
7170,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
1040,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
7220,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
13776,
48446,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
16302,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
329,
17594,
287,
2604,
1040,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2836,
468,
7170,
284,
2251,
1080,
475,
407,
284,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
705,
12982,
468,
645,
35717,
7170,
329,
262,
7368,
6101,
2209,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
2673,
7,
38235,
11,
705,
28482,
3256,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2836,
468,
7170,
284,
2251,
1080,
475,
20966,
318,
1541,
8686,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
284,
1194,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
5855,
12982,
468,
645,
35717,
7170,
329,
262,
1080,
705,
13155,
66,
18,
6,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41745,
4769,
262,
6101,
2209,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
2673,
7,
38235,
11,
705,
28482,
3256,
20966,
62,
10057,
11639,
13155,
66,
18,
3256,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2604,
1040,
351,
477,
21627,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
1040,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
329,
17594,
287,
2604,
1040,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2836,
468,
7170,
284,
2251,
1080,
475,
20966,
318,
1541,
8686,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
284,
1194,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
5855,
12982,
468,
645,
35717,
7170,
329,
262,
1080,
705,
13155,
66,
18,
6,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41745,
4769,
262,
6101,
2209,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
2673,
7,
38235,
11,
705,
28482,
3256,
20966,
62,
10057,
11639,
13155,
66,
18,
3256,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
1303,
1332,
62,
2860,
62,
21834,
62,
305,
829,
3419,
628,
220,
220,
220,
825,
1332,
62,
19119,
62,
3803,
62,
16302,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
6208,
262,
1339,
618,
262,
1080,
1628,
318,
3421,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1006,
62,
13000,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
49229,
13131,
10354,
705,
13155,
66,
18,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
705,
13155,
66,
18,
34431,
4309,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4906,
10354,
705,
19930,
1503,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4774,
3672,
10354,
705,
3605,
62,
13155,
66,
18,
34431,
4309,
13,
27830,
13557,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
779,
976,
20966,
1541,
8686,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
541,
10354,
705,
17477,
13,
14656,
13,
25948,
13,
23148,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
361,
558,
10354,
366,
15,
13,
15,
13,
69,
4059,
11,
15,
13,
15,
13,
69,
33548,
11,
15,
13,
15,
13,
69,
35126,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5078,
422,
2081,
284,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
29289,
17,
10354,
705,
15,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
751,
2493,
3919,
11507,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
634,
3919,
10354,
705,
16,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18403,
10354,
705,
7220,
62,
7220,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
16302,
10354,
705,
65,
12171,
404,
1628,
362,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5219,
10354,
705,
36840,
1961,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20147,
10354,
705,
32,
649,
6764,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
220,
220,
2604,
1040,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
7220,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
13776,
48446,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
16302,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
329,
17594,
287,
2604,
1040,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
26801,
796,
4981,
13,
12982,
13,
22766,
13,
24455,
62,
1525,
7,
38235,
28,
38235,
737,
505,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
796,
4981,
13,
11964,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
28,
5420,
62,
13000,
17816,
3672,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
11612,
62,
18403,
796,
25064,
62,
26801,
13,
18403,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5517,
1339,
810,
2836,
318,
1080,
4870,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
17594,
6624,
705,
7220,
62,
7220,
31,
27830,
13,
785,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
13,
18403,
796,
17594,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5517,
1339,
810,
2836,
468,
1080,
7170,
832,
257,
2597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
13,
18403,
796,
705,
28482,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
17597,
62,
26801,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
2116,
13557,
1136,
62,
541,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2209,
28,
5420,
62,
13000,
17816,
541,
6,
4357,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
11612,
62,
18403,
796,
20966,
62,
26801,
13,
18403,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5517,
1339,
810,
2836,
318,
20966,
4870,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
17594,
287,
19203,
7220,
62,
7220,
31,
27830,
13,
785,
3256,
705,
7220,
62,
13776,
48446,
31,
27830,
13,
785,
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,
705,
7220,
62,
16302,
62,
28482,
31,
27830,
13,
785,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
18403,
796,
17594,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5517,
1339,
810,
2836,
468,
20966,
7170,
832,
257,
2597,
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,
20966,
62,
26801,
13,
18403,
796,
705,
28482,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
541,
62,
26801,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1577,
2836,
257,
2597,
284,
4296,
1080,
319,
262,
649,
1628,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2597,
62,
26801,
796,
4981,
13,
12982,
47445,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1628,
28,
5420,
62,
13000,
17816,
16302,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
62,
26801,
13,
38235,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2597,
2625,
29904,
62,
4805,
3824,
41119,
38,
1961,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
18090,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
41509,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2597,
62,
312,
796,
2597,
62,
26801,
13,
312,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1620,
2223,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1796,
62,
11600,
796,
2116,
13557,
1136,
62,
11612,
62,
27160,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1006,
62,
13000,
11,
1391,
6,
21975,
10354,
20966,
62,
26801,
13,
21975,
30072,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
796,
8271,
62,
10057,
13,
26198,
25060,
11964,
7,
7220,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
13,
13287,
62,
9186,
7,
5420,
62,
13000,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
2482,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
9122,
62,
19119,
7,
38235,
11,
1796,
62,
11600,
11,
1006,
62,
13000,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1949,
757,
1231,
9176,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2597,
62,
26801,
796,
4981,
13,
12982,
47445,
13,
22766,
13,
24455,
62,
1525,
7,
312,
28,
18090,
62,
312,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
33678,
7,
18090,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
41509,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
13169,
460,
4296,
262,
1628,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
17594,
6624,
705,
7220,
62,
28482,
31,
27830,
13,
785,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
13,
13287,
62,
9186,
7,
5420,
62,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
9122,
62,
19119,
7,
38235,
11,
1796,
62,
11600,
11,
1006,
62,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
584,
2985,
815,
2038,
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,
351,
2116,
13,
30493,
21762,
2696,
3041,
25636,
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,
2448,
3411,
12331,
11,
705,
12982,
468,
645,
35717,
7170,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
13,
13287,
62,
9186,
7,
5420,
62,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2487,
1891,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
11169,
2656,
4393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
796,
4981,
13,
11964,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
28,
5420,
62,
13000,
17816,
3672,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
13,
18403,
796,
25064,
62,
11612,
62,
18403,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
17597,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
4981,
13,
40,
79,
20231,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
28,
11612,
62,
11600,
17816,
541,
6,
7131,
6,
3605,
6,
7131,
6,
312,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
18403,
796,
20966,
62,
11612,
62,
18403,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
541,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
41509,
3419,
628,
220,
220,
220,
1303,
1332,
62,
19119,
62,
3803,
62,
16302,
3419,
628,
220,
220,
220,
825,
1332,
62,
19119,
62,
259,
12102,
62,
541,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
32900,
12515,
6101,
5128,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1006,
62,
13000,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
49229,
13131,
10354,
705,
13155,
66,
18,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
705,
13155,
66,
18,
34431,
4309,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4906,
10354,
705,
19930,
1503,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4774,
3672,
10354,
705,
3605,
62,
13155,
66,
18,
34431,
4309,
13,
27830,
13557,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
541,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
361,
558,
10354,
366,
15,
13,
15,
13,
69,
4059,
11,
15,
13,
15,
13,
69,
33548,
11,
15,
13,
15,
13,
69,
35126,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5078,
422,
2081,
284,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
29289,
17,
10354,
705,
15,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
751,
2493,
3919,
11507,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
634,
3919,
10354,
705,
16,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18403,
10354,
705,
7220,
62,
7220,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
16302,
10354,
705,
65,
12171,
404,
1628,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5219,
10354,
705,
36840,
1961,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20147,
10354,
705,
32,
649,
6764,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
220,
220,
33510,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
787,
1654,
20966,
318,
13677,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
32,
1080,
1276,
423,
281,
6101,
2209,
8686,
3256,
10148,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
12515,
220,
2419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5855,
44651,
6101,
2209,
705,
36460,
62,
541,
6,
1600,
705,
36460,
62,
541,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5855,
44651,
6101,
2209,
705,
36460,
14,
36460,
62,
541,
6,
1600,
705,
36460,
14,
36460,
62,
541,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
20966,
407,
1043,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5855,
4061,
2209,
7368,
407,
1043,
1600,
705,
7266,
3262,
14,
940,
13,
3064,
13,
940,
13,
940,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5855,
4061,
2209,
7368,
407,
1043,
1600,
705,
940,
13,
3064,
13,
940,
13,
940,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
628,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
26801,
796,
4981,
13,
12982,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11639,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
27691,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
796,
8271,
62,
10057,
13,
26198,
25060,
11964,
7,
7220,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
31456,
11,
1988,
287,
33510,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1006,
62,
13000,
17816,
541,
20520,
796,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
2116,
13,
30493,
21762,
2696,
3041,
25636,
7,
11395,
12331,
11,
31456,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
13,
13287,
62,
9186,
7,
5420,
62,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2487,
1891,
3419,
198,
220,
220,
220,
1303,
1332,
62,
19119,
62,
259,
12102,
62,
541,
3419,
628,
220,
220,
220,
825,
1332,
62,
19119,
62,
259,
12102,
62,
27160,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
6208,
2276,
12515,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1006,
62,
13000,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
49229,
13131,
10354,
705,
13155,
66,
18,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
705,
13155,
66,
18,
34431,
4309,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4906,
10354,
705,
19930,
1503,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4774,
3672,
10354,
705,
3605,
62,
13155,
66,
18,
34431,
4309,
13,
27830,
13557,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
541,
10354,
705,
17477,
13,
14656,
13,
25948,
13,
23148,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
361,
558,
10354,
366,
15,
13,
15,
13,
69,
4059,
11,
15,
13,
15,
13,
69,
33548,
11,
15,
13,
15,
13,
69,
35126,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
29289,
17,
10354,
705,
15,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
634,
3919,
10354,
705,
16,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18403,
10354,
705,
7220,
62,
7220,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
16302,
10354,
705,
65,
12171,
404,
1628,
362,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5219,
10354,
705,
36840,
1961,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20147,
10354,
705,
32,
649,
6764,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
33510,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
51,
2228,
284,
1487,
8718,
13131,
422,
269,
14751,
18,
284,
269,
14751,
18,
34431,
4310,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
49229,
13131,
10354,
705,
13155,
66,
18,
34431,
4310,
6,
92,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
11395,
329,
7679,
17,
1276,
307,
352,
393,
657,
3256,
1391,
6,
29289,
17,
10354,
705,
7942,
6,
92,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
11395,
329,
2493,
3919,
1276,
307,
352,
393,
657,
3256,
1391,
6,
634,
3919,
10354,
705,
17,
6,
92,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
51,
2228,
284,
1487,
1080,
2099,
422,
18470,
1503,
284,
509,
15996,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
4906,
10354,
705,
42,
15996,
6,
92,
828,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
628,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
26801,
796,
4981,
13,
12982,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11639,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
27691,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
796,
8271,
62,
10057,
13,
26198,
25060,
11964,
7,
7220,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
31456,
11,
3815,
287,
33510,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
796,
2769,
30073,
7,
5420,
62,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
13,
19119,
7,
27160,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
2116,
13,
30493,
21762,
2696,
3041,
25636,
7,
11395,
12331,
11,
31456,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
13,
13287,
62,
9186,
7,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2487,
1891,
3419,
198,
220,
220,
220,
1303,
1332,
62,
19119,
62,
259,
12102,
62,
27160,
3419,
628,
220,
220,
220,
825,
1332,
62,
19119,
62,
21834,
62,
305,
829,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
6208,
1180,
13858,
286,
19698,
1080,
14,
361,
558,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
649,
6101,
82,
329,
4856,
198,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
29851,
796,
705,
17477,
13,
14656,
13,
14198,
13,
940,
6,
198,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
29851,
62,
17,
796,
705,
17477,
13,
14656,
13,
14198,
13,
1157,
6,
198,
220,
220,
220,
220,
220,
220,
220,
329,
37817,
287,
685,
541,
62,
29851,
11,
20966,
62,
29851,
62,
17,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
649,
6101,
82,
329,
4856,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
4981,
13,
40,
79,
20231,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2209,
28,
29851,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1715,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23157,
11639,
28482,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4870,
11639,
28482,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1628,
11639,
65,
12171,
404,
1628,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
541,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
41509,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
825,
27425,
62,
2978,
525,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
47429,
284,
3424,
510,
20613,
284,
2656,
1181,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4781,
220,
2419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
37817,
287,
685,
541,
62,
29851,
11,
20966,
62,
29851,
62,
17,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
2116,
13557,
1136,
62,
541,
7,
21975,
28,
29851,
11,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2114,
796,
4981,
13,
11964,
1532,
558,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
21975,
62,
312,
28,
541,
62,
26801,
13,
312,
737,
439,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
611,
558,
62,
26801,
287,
611,
2114,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
26801,
13,
541,
62,
21975,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
361,
558,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
33678,
7,
541,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
41509,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2860,
32657,
929,
7,
27773,
929,
62,
2978,
525,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1006,
62,
13000,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
49229,
13131,
10354,
705,
13155,
66,
18,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
705,
13155,
66,
18,
34431,
4309,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4906,
10354,
705,
19930,
1503,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4774,
3672,
10354,
705,
3605,
62,
13155,
66,
18,
34431,
4309,
13,
27830,
13557,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8333,
257,
649,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
541,
10354,
20966,
62,
26801,
13,
21975,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
361,
558,
10354,
366,
15,
13,
15,
13,
69,
4059,
11,
15,
13,
15,
13,
69,
33548,
11,
15,
13,
15,
13,
69,
35126,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5078,
422,
2081,
284,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
29289,
17,
10354,
705,
15,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
751,
2493,
3919,
11507,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
634,
3919,
10354,
705,
16,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18403,
10354,
705,
7220,
62,
7220,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
16302,
10354,
705,
65,
12171,
404,
1628,
362,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5219,
10354,
705,
36840,
1961,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20147,
10354,
705,
32,
649,
6764,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
220,
220,
825,
6818,
62,
19119,
7,
19119,
62,
7220,
11,
25064,
62,
18403,
11,
20966,
62,
22019,
11,
20966,
62,
16793,
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,
4049,
62,
19662,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5053,
525,
2163,
284,
26571,
4296,
2223,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4296,
62,
7220,
357,
2536,
2599,
17594,
9489,
262,
4296,
2223,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
18403,
357,
2536,
2599,
900,
428,
17594,
355,
4870,
286,
262,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
22019,
357,
2536,
2599,
1438,
290,
4870,
286,
262,
1459,
20966,
2209,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
16793,
357,
2536,
2599,
1438,
290,
4870,
286,
2496,
20966,
2209,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
19662,
357,
2536,
2599,
4043,
329,
4049,
618,
7368,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
900,
1080,
4870,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
796,
4981,
13,
11964,
13,
22766,
13,
24455,
62,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
28,
5420,
62,
13000,
17816,
3672,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1796,
62,
17597,
62,
18403,
796,
25064,
62,
26801,
13,
18403,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
13,
18403,
796,
25064,
62,
18403,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
17597,
62,
26801,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3815,
878,
2458,
925,
416,
262,
2446,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
11612,
62,
27160,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
20966,
62,
22019,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
2116,
13557,
1136,
62,
541,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2209,
28,
541,
62,
22019,
17816,
21975,
6,
4357,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
18403,
796,
20966,
62,
22019,
17816,
18403,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8333,
20966,
284,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
10057,
796,
1006,
62,
13000,
17816,
3672,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
541,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
11612,
62,
27160,
17816,
22019,
20520,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18403,
10354,
20966,
62,
26801,
13,
18403,
11,
705,
10057,
10354,
20966,
62,
26801,
13,
10057,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
361,
558,
10354,
705,
19119,
62,
9288,
62,
361,
558,
6,
92,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2496,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
2116,
13557,
1136,
62,
541,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2209,
28,
541,
62,
16793,
17816,
21975,
6,
4357,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
11612,
62,
27160,
17816,
16793,
20520,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18403,
10354,
20966,
62,
26801,
13,
18403,
11,
705,
10057,
10354,
20966,
62,
26801,
13,
10057,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
18403,
796,
20966,
62,
16793,
17816,
18403,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8333,
20966,
284,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
20966,
62,
16793,
13,
1136,
10786,
562,
570,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
10057,
796,
20966,
62,
16793,
17816,
562,
570,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
787,
1654,
379,
1551,
530,
611,
558,
351,
262,
20966,
8686,
7160,
287,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1502,
284,
5517,
20966,
9934,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
26801,
796,
4981,
13,
11964,
1532,
558,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
11639,
19119,
62,
9288,
62,
361,
558,
3256,
12608,
34758,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1080,
28,
541,
62,
16793,
17816,
562,
570,
6,
4357,
2099,
11639,
2640,
32,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
21975,
62,
312,
28,
541,
62,
26801,
13,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
361,
558,
62,
26801,
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,
20966,
62,
26801,
13,
10057,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
541,
62,
26801,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4589,
477,
2458,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
41509,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1620,
2223,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
796,
2769,
30073,
7,
5420,
62,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
17816,
16302,
20520,
796,
705,
65,
12171,
404,
1628,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
17816,
541,
20520,
796,
20966,
62,
16793,
17816,
21975,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1796,
62,
11600,
796,
2116,
13557,
1136,
62,
11612,
62,
27160,
7,
13000,
11,
20966,
62,
22019,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
26801,
796,
4981,
13,
12982,
13,
22766,
13,
24455,
62,
1525,
7,
38235,
28,
19119,
62,
7220,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
796,
8271,
62,
10057,
13,
26198,
25060,
11964,
7,
7220,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4049,
3275,
7368,
25,
2198,
326,
4049,
8833,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4049,
62,
19662,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
2116,
13,
30493,
21762,
2696,
3041,
25636,
7,
5990,
3411,
12331,
11,
4049,
62,
19662,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
13,
13287,
62,
9186,
7,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2487,
1891,
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,
581,
62,
26801,
13,
13287,
62,
9186,
7,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
26571,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
9122,
62,
19119,
7,
19119,
62,
7220,
11,
1796,
62,
11600,
11,
5726,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
11169,
1090,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
20966,
62,
11612,
62,
27160,
13,
1136,
10786,
22019,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
2116,
13557,
1136,
62,
541,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2209,
28,
541,
62,
22019,
17816,
21975,
6,
4357,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
18403,
796,
20966,
62,
11612,
62,
27160,
17816,
22019,
6,
7131,
6,
18403,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
10057,
796,
20966,
62,
11612,
62,
27160,
17816,
22019,
6,
7131,
6,
10057,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
541,
62,
26801,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
11169,
2496,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
796,
2116,
13557,
1136,
62,
541,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2209,
28,
541,
62,
16793,
17816,
21975,
6,
4357,
850,
3262,
28,
944,
13557,
7266,
3262,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
18403,
796,
20966,
62,
11612,
62,
27160,
17816,
16793,
6,
7131,
6,
18403,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
26801,
13,
10057,
796,
20966,
62,
11612,
62,
27160,
17816,
16793,
6,
7131,
6,
10057,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
541,
62,
26801,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4781,
8584,
611,
558,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
20966,
62,
16793,
13,
1136,
10786,
562,
570,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
558,
62,
26801,
796,
4981,
13,
11964,
1532,
558,
13,
22766,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
10057,
62,
2411,
27691,
24455,
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,
4981,
13,
11964,
1532,
558,
13,
3672,
6624,
705,
19119,
62,
9288,
62,
361,
558,
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,
4981,
13,
11964,
13,
3672,
6624,
20966,
62,
16793,
17816,
562,
570,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6739,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
33678,
7,
361,
558,
62,
26801,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
11169,
1080,
4870,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
796,
4981,
13,
11964,
13,
22766,
13,
24455,
62,
1525,
7,
3672,
28,
13000,
17816,
3672,
20520,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
26801,
13,
18403,
796,
1796,
62,
17597,
62,
18403,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2860,
7,
17597,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
41509,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6818,
62,
19119,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
2604,
1040,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
49343,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
7220,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
13776,
48446,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
16302,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
329,
17594,
287,
2604,
1040,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
900,
20966,
11,
2836,
468,
7170,
284,
1111,
1080,
290,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5517,
1339,
810,
2836,
318,
4870,
286,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
17594,
287,
19203,
7220,
62,
49343,
31,
27830,
13,
785,
3256,
705,
7220,
62,
7220,
31,
27830,
13,
785,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
18403,
796,
17594,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5517,
1339,
810,
2836,
468,
7170,
2884,
257,
2597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
18403,
796,
705,
28482,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5517,
1339,
810,
2836,
318,
4870,
286,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
17594,
407,
287,
19203,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
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,
705,
7220,
62,
28482,
31,
27830,
13,
785,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
18403,
796,
17594,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5517,
1339,
810,
2836,
468,
7170,
2884,
257,
2597,
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,
20966,
62,
18403,
796,
705,
28482,
6,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
900,
20966,
8686,
284,
1080,
11,
2836,
468,
7170,
284,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1080,
475,
407,
284,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
25064,
62,
18403,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6045,
11,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
705,
28482,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
562,
570,
10354,
1006,
62,
13000,
17816,
3672,
20520,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
1487,
20966,
11,
2836,
468,
7170,
284,
1111,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5517,
1339,
810,
2836,
318,
4870,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
17594,
407,
287,
19203,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
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,
705,
7220,
62,
28482,
31,
27830,
13,
785,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20966,
62,
18403,
62,
17,
796,
17594,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5517,
1339,
810,
2836,
468,
7170,
2884,
257,
2597,
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,
20966,
62,
18403,
62,
17,
796,
705,
28482,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
25064,
62,
18403,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
20966,
62,
18403,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
62,
17,
11,
705,
18403,
10354,
20966,
62,
18403,
62,
17,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
1487,
20966,
1541,
8686,
284,
1080,
11,
2836,
468,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
7170,
284,
1080,
475,
407,
284,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
25064,
62,
18403,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
20966,
62,
18403,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
62,
17,
11,
705,
18403,
10354,
20966,
62,
18403,
62,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
562,
570,
10354,
1006,
62,
13000,
17816,
3672,
20520,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
2604,
1040,
62,
10057,
796,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
13776,
48446,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
16302,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
329,
17594,
287,
2604,
1040,
62,
10057,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
900,
20966,
1541,
8686,
284,
1194,
1080,
11,
2836,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
468,
7170,
284,
1080,
290,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
705,
28482,
3256,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
17594,
11,
705,
562,
570,
10354,
705,
13155,
66,
18,
34431,
4310,
6,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
923,
2665,
25,
645,
2597,
13858,
198,
220,
220,
220,
220,
220,
220,
220,
289,
86,
62,
28482,
796,
705,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
6,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2604,
1040,
351,
4296,
12,
10057,
7170,
475,
645,
4296,
12,
541,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
1040,
62,
10057,
796,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
13776,
48446,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
16302,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
329,
17594,
287,
2604,
1040,
62,
10057,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
12982,
468,
645,
35717,
7170,
329,
262,
7368,
6101,
2209,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
8333,
20966,
11,
2836,
468,
7170,
284,
1080,
475,
407,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
284,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
289,
86,
62,
28482,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6045,
11,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
289,
86,
62,
28482,
5512,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
1487,
20966,
11,
2836,
468,
7170,
284,
1080,
290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1459,
20966,
475,
407,
284,
2496,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
289,
86,
62,
28482,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
17594,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
62,
17,
11,
705,
18403,
10354,
289,
86,
62,
28482,
5512,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2604,
1040,
1231,
4296,
12,
10057,
7170,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
1040,
62,
3919,
62,
10057,
796,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
49343,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
7220,
31,
27830,
13,
785,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
329,
17594,
287,
2604,
1040,
62,
3919,
62,
10057,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
8333,
20966,
11,
2836,
468,
7170,
284,
20966,
475,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
407,
284,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
705,
12982,
468,
645,
35717,
7170,
329,
262,
7368,
1080,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
289,
86,
62,
28482,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6045,
11,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
17594,
5512,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
8333,
20966,
11,
2836,
468,
7170,
284,
1080,
475,
407,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
284,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
705,
12982,
468,
645,
35717,
7170,
329,
262,
7368,
6101,
2209,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
17594,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6045,
11,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
289,
86,
62,
28482,
5512,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
8333,
20966,
11,
2836,
468,
645,
7170,
284,
1080,
4249,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
705,
12982,
468,
645,
35717,
7170,
329,
262,
7368,
1080,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
289,
86,
62,
28482,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6045,
11,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
289,
86,
62,
28482,
5512,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
1487,
20966,
11,
2836,
468,
7170,
284,
1080,
290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1459,
20966,
475,
407,
284,
2496,
20966,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
705,
12982,
468,
645,
35717,
7170,
329,
262,
7368,
6101,
2209,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
17594,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
17594,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
62,
17,
11,
705,
18403,
10354,
289,
86,
62,
28482,
5512,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1332,
2663,
810,
2496,
20966,
14448,
284,
1194,
1080,
287,
257,
1628,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1231,
7170,
198,
220,
220,
220,
220,
220,
220,
220,
1194,
62,
10057,
796,
705,
13155,
66,
18,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
1040,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
49343,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
7220,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
13776,
48446,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
16302,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
329,
17594,
287,
2604,
1040,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
8333,
20966,
11,
2836,
468,
7170,
284,
1080,
290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
20966,
475,
20966,
318,
1541,
8686,
284,
1194,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
5855,
12982,
468,
645,
35717,
7170,
329,
262,
1080,
705,
90,
92,
6,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41745,
4769,
262,
6101,
2209,
1911,
18982,
7,
29214,
62,
10057,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
17594,
11,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
17594,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
562,
570,
10354,
1194,
62,
10057,
5512,
4049,
62,
19662,
28,
19662,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
611,
558,
1487,
20966,
11,
2836,
468,
7170,
284,
1080,
290,
20966,
475,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
20966,
318,
1541,
8686,
284,
1194,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
11,
17594,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
11,
705,
18403,
10354,
17594,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
21975,
10354,
20966,
62,
29851,
62,
17,
11,
705,
18403,
10354,
17594,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
562,
570,
10354,
1194,
62,
10057,
5512,
4049,
62,
19662,
28,
19662,
8,
198,
220,
220,
220,
1303,
1332,
62,
19119,
62,
21834,
62,
305,
829,
3419,
628,
220,
220,
220,
825,
1332,
62,
19119,
62,
3919,
62,
3803,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
6208,
262,
1339,
618,
645,
2458,
389,
12326,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3815,
2174,
2872,
1366,
13,
17752,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
1006,
62,
13000,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
20147,
1298,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
4774,
3672,
1298,
366,
13155,
66,
18,
34431,
4309,
13,
27830,
13557,
785,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
49229,
13131,
1298,
366,
13155,
66,
18,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
751,
6283,
1994,
319,
4007,
284,
1332,
5336,
270,
1634,
416,
2438,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
4666,
7483,
1298,
366,
28482,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
3672,
1298,
366,
13155,
66,
18,
34431,
4309,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
18403,
1298,
366,
28482,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
16302,
1298,
366,
65,
12171,
404,
1628,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
5219,
1298,
366,
10116,
32,
4146,
17534,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
4906,
1298,
366,
19930,
1503,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
361,
558,
1298,
366,
15,
13,
15,
13,
69,
4059,
11,
15,
13,
15,
13,
69,
33548,
11,
15,
13,
15,
13,
69,
35126,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
541,
1298,
366,
17477,
13,
14656,
13,
25948,
13,
23148,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29289,
17,
1298,
366,
16,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
634,
3919,
1298,
366,
15,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
220,
220,
17594,
796,
705,
7220,
62,
36599,
62,
28482,
31,
27830,
13,
785,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1620,
2223,
198,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
26801,
796,
4981,
13,
12982,
13,
22766,
13,
24455,
62,
1525,
7,
38235,
28,
38235,
737,
505,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
796,
8271,
62,
10057,
13,
26198,
25060,
11964,
7,
7220,
62,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
581,
62,
26801,
13,
13287,
62,
9186,
7,
5420,
62,
13000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9945,
13,
29891,
13,
2487,
1891,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
735,
62,
6404,
1362,
13,
10951,
13,
30493,
62,
1092,
62,
13345,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20545,
2105,
611,
558,
4064,
82,
14,
4,
82,
357,
3919,
2458,
8,
3256,
1006,
62,
13000,
17816,
3672,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
22296,
12,
1069,
759,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
735,
62,
6404,
1362,
13,
10951,
13,
30493,
62,
1092,
62,
13345,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20545,
2105,
1080,
4064,
82,
357,
3919,
2458,
8,
3256,
1006,
62,
13000,
17816,
3672,
6,
12962,
198,
220,
220,
220,
1303,
1332,
62,
19119,
62,
3919,
62,
3803,
3419,
198,
2,
6208,
26198,
11964,
198
] | 1.987214 | 18,301 |
"""
MIT License
Copyright (c) 2020 Myer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
import imperatoraPY
from .exceptions import NoMinecraftUUID
# wrapper around the imperator api library i'm using
# that also happens to be mine
# basically this includes a bunch of bot specific features and caching
| [
37811,
201,
198,
36393,
13789,
201,
198,
201,
198,
15269,
357,
66,
8,
12131,
2011,
263,
201,
198,
201,
198,
5990,
3411,
318,
29376,
7520,
11,
1479,
286,
3877,
11,
284,
597,
1048,
16727,
257,
4866,
201,
198,
1659,
428,
3788,
290,
3917,
10314,
3696,
357,
1169,
366,
25423,
12340,
284,
1730,
201,
198,
259,
262,
10442,
1231,
17504,
11,
1390,
1231,
17385,
262,
2489,
201,
198,
1462,
779,
11,
4866,
11,
13096,
11,
20121,
11,
7715,
11,
14983,
11,
850,
43085,
11,
290,
14,
273,
3677,
201,
198,
22163,
444,
286,
262,
10442,
11,
290,
284,
8749,
6506,
284,
4150,
262,
10442,
318,
201,
198,
69,
700,
1348,
284,
466,
523,
11,
2426,
284,
262,
1708,
3403,
25,
201,
198,
201,
198,
464,
2029,
6634,
4003,
290,
428,
7170,
4003,
2236,
307,
3017,
287,
477,
201,
198,
22163,
444,
393,
8904,
16690,
286,
262,
10442,
13,
201,
198,
201,
198,
10970,
47466,
3180,
36592,
2389,
1961,
366,
1921,
3180,
1600,
42881,
34764,
56,
3963,
15529,
509,
12115,
11,
7788,
32761,
6375,
201,
198,
3955,
49094,
11,
47783,
2751,
21728,
5626,
40880,
5390,
3336,
34764,
11015,
3963,
34482,
3398,
1565,
5603,
25382,
11,
201,
198,
37,
46144,
7473,
317,
16652,
2149,
37232,
33079,
48933,
5357,
44521,
1268,
10913,
2751,
12529,
13,
3268,
8005,
49261,
50163,
3336,
201,
198,
32,
24318,
20673,
6375,
27975,
38162,
9947,
367,
15173,
4877,
9348,
43031,
19146,
7473,
15529,
47666,
3955,
11,
29506,
25552,
6375,
25401,
201,
198,
43,
3539,
25382,
11,
7655,
2767,
16879,
3268,
3537,
40282,
3963,
27342,
10659,
11,
309,
9863,
6375,
25401,
54,
24352,
11,
5923,
1797,
2751,
16034,
11,
201,
198,
12425,
3963,
6375,
3268,
7102,
45,
24565,
13315,
3336,
47466,
6375,
3336,
23210,
6375,
25401,
5550,
1847,
20754,
3268,
3336,
201,
198,
15821,
37485,
13,
201,
198,
37811,
201,
198,
201,
198,
11748,
11071,
1352,
64,
47,
56,
201,
198,
6738,
764,
1069,
11755,
1330,
1400,
39194,
52,
27586,
201,
198,
201,
198,
201,
198,
220,
220,
220,
1303,
29908,
1088,
262,
11071,
1352,
40391,
5888,
1312,
1101,
1262,
201,
198,
220,
220,
220,
1303,
326,
635,
4325,
284,
307,
6164,
201,
198,
220,
220,
220,
1303,
6209,
428,
3407,
257,
7684,
286,
10214,
2176,
3033,
290,
40918,
201,
198,
201,
198
] | 3.580645 | 372 |
"""Utilities for computing the Average Precision (AP) and mean Average Precision (mAP).
TODO improve naming of functions
TODO finish implementation
TODO document every function
TODO publish in own package
"""
from operator import itemgetter
import numpy as np
from scipy.ndimage import find_objects
# =================================================================================================
# mAP interpolated
# =================================================================================================
def ap_segm_interpolated(preds, labelings, scores=None, iou_thresholds=None, compute_mean=False):
"""Computes the interpolated mean Average Precision for the given predictions.
TODO describe formular
TODO describe args
"""
if iou_thresholds is None:
iou_thresholds = [.50, .55, .60, .65, .70, .75, .80, .85, .90, .95]
pred_matchings, gt_segments = _match_preds_to_labelings(
preds, labelings, scores)
aps = [ap_matched_interpolated(pred_matchings, gt_segments, th)[0] for th in iou_thresholds]
if compute_mean:
return aps + [np.mean(aps)]
return aps
def ap_matched_interpolated(preds, gt_segments, iou_threshold):
"""Computes the Average Precision for the given predictions.
TODO describe interpolated
TODO describe the formular
The preds argument is supposed to be a list of tuples with the following structure:
[
(
0.9, # A score for the prediction
'img01_seg09', # The best matching ground truth segment
0.6 # The IoU with the best matching gt segment
),
[...]
].
The gt_semgents argument is a set of identifier for the ground truth segments.
Arguments:
preds {list of dicts} -- A list of predictions matched with the ground truth segments
(See above)
gt_segments {set} -- A set of identifiers for the ground truth segments
iou_threshold {float} -- The IoU threshold
"""
recall_ths = [.0, .1, .2, .3, .4, .5, .6, .7, .8, .9, 1.]
# Sort the predictions by score
sorted_preds = sorted(preds, key=itemgetter(0), reverse=True)
# Ground truth segments that have been predicted
gt_unmatched = gt_segments.copy()
matchings = []
precision_per_recall = {}
for recall_th in recall_ths:
precision_per_recall[recall_th] = 0.
current_tp = 0
current_fp = 0
for _, gt_id, iou in sorted_preds:
# Check if this is a true positive
if iou >= iou_threshold and gt_id in gt_unmatched:
current_tp += 1
gt_unmatched.remove(gt_id)
else:
current_fp += 1
# Compute current TP, FP, FN, Precision and Recall
true_positive = current_tp
false_positive = current_fp
false_negative = len(gt_unmatched)
precision = true_positive / (true_positive + false_positive)
recall = true_positive / (true_positive + false_negative)
matchings.append(
{
'score': _,
'TP': true_positive,
'FP': false_positive,
'FN': false_negative,
'Precision': precision,
'Recall': recall
}
)
# Update the precision pre recall
smaller_recalls = (r for r in recall_ths if r <= recall)
for recall_th in smaller_recalls:
precision_per_recall[recall_th] = max(
precision_per_recall[recall_th], precision)
average_precision = np.mean(list(precision_per_recall.values()))
return average_precision, matchings
# =================================================================================================
# mAP data science bowl 2018
# =================================================================================================
def ap_dsb2018(preds, labelings, iou_thresholds=None, compute_mean=False):
"""Computes the mean Average Precision as defined in the data science bowl 2018 challenge.
TODO describe the formular
Arguments:
pred {list of labelings} -- A list of predictions
labelings {list of labelings} -- A list of ground truth labelings
iou_thresholds {list of floats} -- A list of intersection over union thresholds. The
Average Precision will be returned for each threshold.
Returns:
{list} -- The Average Precision for each given threshold.
"""
if iou_thresholds is None:
iou_thresholds = [.50, .55, .60, .65, .70, .75, .80, .85, .90, .95]
aps = []
for pred, labeling in zip(preds, labelings):
pred_matchings, gt_segments = _match_preds_to_labelings([pred], [labeling])
aps.append([ap_dsb2018_matched(pred_matchings, gt_segments, th)
for th in iou_thresholds])
ap_means = [np.mean(ap) for ap in zip(*aps)]
if compute_mean:
return ap_means + [np.mean(ap_means)]
return ap_means
def ap_dsb2018_matched(preds, gt_segments, iou_threshold):
"""Computes the Average Precision according to the data science bowl 2018 evaluation metric
for the given predictions.
The preds argument is supposed to be a list of tuples with the following structure:
[
(
0.9, # A score for the prediction
'img01_seg09', # The best matching ground truth segment
0.6 # The IoU with the best matching gt segment
),
[...]
].
The gt_semgents argument is a set of identifier for the ground truth segments.
Arguments:
preds {list of dicts} -- A list of predictions matched with the ground truth segments
(See above)
gt_segments {set} -- A set of identifiers for the ground truth segments
iou_threshold {float} -- The IoU threshold
"""
pred_gt = [(p[1] if p[2] > iou_threshold else None) for p in preds]
true_positives = len({p for p in pred_gt if p in gt_segments}) # TP
false_positives = len(preds) - true_positives # FP
false_negatives = len([0 for gt in gt_segments if gt not in pred_gt]) # FN
return true_positives / (true_positives + false_positives + false_negatives)
def _match_preds_to_labelings(preds, labelings, scores=None):
"""Matches prediction segments to ground truth segments. Returns a tuble with two items:
The first item is a list with each prediction matched to an ground truth segment:
[
(
0.9, # A score for the prediction
'img01_seg09', # The best matching ground truth segment
0.6 # The IoU with the best matching gt segment
)
[...]
].
The second item is a set of identifiers for all ground truth segments.
Arguments:
preds {list of labelings} -- A list of predictions.
gt_segments {list of labelings} -- A list of ground truth labelings
"""
if scores is None:
scores = [None] * len(preds)
pred_matchings = []
gt_segments = set()
for i, (pred, labeling, pred_scores) in enumerate(zip(preds, labelings, scores)):
pred_objects = find_objects(pred)
gt_objects = find_objects(labeling)
# Loop over predicted objects
for pred_label, pred_slice in enumerate(pred_objects, 1):
# If there is no prediction with this id
if pred_slice is None:
continue
if pred_scores is None:
score = 1.
else:
score = pred_scores[pred_label]
best_iou = 0
best_gt = None
# Loop over ground truth objects
for gt_label, gt_slice in enumerate(gt_objects, 1):
# Check if they intersect and get the union if they do
union = _union(pred_slice, gt_slice, pred.shape)
if union is None:
continue
# Compute the IoU and check if it is the best match
iou = _iou(pred[union], labeling[union], pred_label, gt_label)
if iou > best_iou:
best_iou = iou
best_gt = gt_id(i, gt_label)
pred_matchings.append((score, best_gt, best_iou))
# Loop over gt objects
for gt_label, gt_slice in enumerate(gt_objects, 1):
gt_segments.add(gt_id(i, gt_label))
return pred_matchings, gt_segments
def _union_1d(first, second, size):
"""Computes if slice first and second overlap for the size of the dimension"""
first_min, first_max, _ = first.indices(size)
second_min, second_max, _ = second.indices(size)
if first_max >= second_min and second_max >= first_min:
return slice(min(first_min, second_min), max(first_max, second_max))
else:
return None
def _union(firsts, seconds, shape):
"""Computes if slices firsts and seconds all overlap for the given shape"""
union = []
for first, second, size in zip(firsts, seconds, shape):
union_1d = _union_1d(first, second, size)
if union_1d is None:
return None
union.append(union_1d)
return tuple(union)
| [
37811,
18274,
2410,
329,
14492,
262,
13475,
39281,
357,
2969,
8,
290,
1612,
13475,
39281,
357,
76,
2969,
737,
198,
198,
51,
3727,
46,
2987,
19264,
286,
5499,
198,
51,
3727,
46,
5461,
7822,
198,
51,
3727,
46,
3188,
790,
2163,
198,
51,
3727,
46,
7715,
287,
898,
5301,
198,
37811,
198,
6738,
10088,
1330,
2378,
1136,
353,
198,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
629,
541,
88,
13,
358,
9060,
1330,
1064,
62,
48205,
628,
198,
2,
38093,
10052,
198,
2,
220,
220,
220,
220,
220,
285,
2969,
39555,
515,
198,
2,
38093,
10052,
198,
198,
4299,
2471,
62,
325,
39870,
62,
3849,
16104,
515,
7,
28764,
82,
11,
6167,
654,
11,
8198,
28,
14202,
11,
1312,
280,
62,
400,
10126,
82,
28,
14202,
11,
24061,
62,
32604,
28,
25101,
2599,
198,
220,
220,
220,
37227,
7293,
1769,
262,
39555,
515,
1612,
13475,
39281,
329,
262,
1813,
16277,
13,
198,
220,
220,
220,
16926,
46,
6901,
1296,
934,
198,
220,
220,
220,
16926,
46,
6901,
26498,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
1312,
280,
62,
400,
10126,
82,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
280,
62,
400,
10126,
82,
796,
685,
13,
1120,
11,
764,
2816,
11,
764,
1899,
11,
764,
2996,
11,
764,
2154,
11,
764,
2425,
11,
764,
1795,
11,
764,
5332,
11,
764,
3829,
11,
764,
3865,
60,
198,
220,
220,
220,
2747,
62,
15699,
654,
11,
308,
83,
62,
325,
11726,
796,
4808,
15699,
62,
28764,
82,
62,
1462,
62,
18242,
654,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2747,
82,
11,
6167,
654,
11,
8198,
8,
198,
220,
220,
220,
257,
862,
796,
685,
499,
62,
31409,
62,
3849,
16104,
515,
7,
28764,
62,
15699,
654,
11,
308,
83,
62,
325,
11726,
11,
294,
38381,
15,
60,
329,
294,
287,
1312,
280,
62,
400,
10126,
82,
60,
628,
220,
220,
220,
611,
24061,
62,
32604,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
257,
862,
1343,
685,
37659,
13,
32604,
7,
1686,
15437,
198,
220,
220,
220,
1441,
257,
862,
628,
198,
4299,
2471,
62,
31409,
62,
3849,
16104,
515,
7,
28764,
82,
11,
308,
83,
62,
325,
11726,
11,
1312,
280,
62,
400,
10126,
2599,
198,
220,
220,
220,
37227,
7293,
1769,
262,
13475,
39281,
329,
262,
1813,
16277,
13,
198,
220,
220,
220,
16926,
46,
6901,
39555,
515,
198,
220,
220,
220,
16926,
46,
6901,
262,
1296,
934,
628,
220,
220,
220,
383,
2747,
82,
4578,
318,
4385,
284,
307,
257,
1351,
286,
12777,
2374,
351,
262,
1708,
4645,
25,
198,
220,
220,
220,
685,
198,
220,
220,
220,
220,
220,
220,
220,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
24,
11,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
317,
4776,
329,
262,
17724,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
9600,
486,
62,
325,
70,
2931,
3256,
1303,
383,
1266,
12336,
2323,
3872,
10618,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
21,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
27853,
52,
351,
262,
1266,
12336,
308,
83,
10618,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
26894,
198,
220,
220,
220,
20740,
628,
220,
220,
220,
383,
308,
83,
62,
325,
11296,
658,
4578,
318,
257,
900,
286,
27421,
329,
262,
2323,
3872,
17894,
13,
628,
220,
220,
220,
20559,
2886,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2747,
82,
1391,
4868,
286,
8633,
82,
92,
1377,
317,
1351,
286,
16277,
14451,
351,
262,
2323,
3872,
17894,
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,
357,
6214,
2029,
8,
198,
220,
220,
220,
220,
220,
220,
220,
308,
83,
62,
325,
11726,
1391,
2617,
92,
1377,
317,
900,
286,
42814,
329,
262,
2323,
3872,
17894,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
280,
62,
400,
10126,
1391,
22468,
92,
1377,
383,
27853,
52,
11387,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10014,
62,
9998,
796,
685,
13,
15,
11,
764,
16,
11,
764,
17,
11,
764,
18,
11,
764,
19,
11,
764,
20,
11,
764,
21,
11,
764,
22,
11,
764,
23,
11,
764,
24,
11,
352,
8183,
628,
220,
220,
220,
1303,
33947,
262,
16277,
416,
4776,
198,
220,
220,
220,
23243,
62,
28764,
82,
796,
23243,
7,
28764,
82,
11,
1994,
28,
9186,
1136,
353,
7,
15,
828,
9575,
28,
17821,
8,
628,
220,
220,
220,
1303,
13706,
3872,
17894,
326,
423,
587,
11001,
198,
220,
220,
220,
308,
83,
62,
403,
31409,
796,
308,
83,
62,
325,
11726,
13,
30073,
3419,
628,
220,
220,
220,
2872,
654,
796,
17635,
198,
220,
220,
220,
15440,
62,
525,
62,
8344,
439,
796,
23884,
198,
220,
220,
220,
329,
10014,
62,
400,
287,
10014,
62,
9998,
25,
198,
220,
220,
220,
220,
220,
220,
220,
15440,
62,
525,
62,
8344,
439,
58,
8344,
439,
62,
400,
60,
796,
657,
13,
628,
220,
220,
220,
1459,
62,
34788,
796,
657,
198,
220,
220,
220,
1459,
62,
46428,
796,
657,
628,
220,
220,
220,
329,
4808,
11,
308,
83,
62,
312,
11,
1312,
280,
287,
23243,
62,
28764,
82,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6822,
611,
428,
318,
257,
2081,
3967,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1312,
280,
18189,
1312,
280,
62,
400,
10126,
290,
308,
83,
62,
312,
287,
308,
83,
62,
403,
31409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1459,
62,
34788,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
83,
62,
403,
31409,
13,
28956,
7,
13655,
62,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1459,
62,
46428,
15853,
352,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
3082,
1133,
1459,
24525,
11,
31459,
11,
44260,
11,
39281,
290,
44536,
198,
220,
220,
220,
220,
220,
220,
220,
2081,
62,
24561,
796,
1459,
62,
34788,
198,
220,
220,
220,
220,
220,
220,
220,
3991,
62,
24561,
796,
1459,
62,
46428,
198,
220,
220,
220,
220,
220,
220,
220,
3991,
62,
31591,
796,
18896,
7,
13655,
62,
403,
31409,
8,
198,
220,
220,
220,
220,
220,
220,
220,
15440,
796,
2081,
62,
24561,
1220,
357,
7942,
62,
24561,
1343,
3991,
62,
24561,
8,
198,
220,
220,
220,
220,
220,
220,
220,
10014,
796,
2081,
62,
24561,
1220,
357,
7942,
62,
24561,
1343,
3991,
62,
31591,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2872,
654,
13,
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,
26675,
10354,
4808,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7250,
10354,
2081,
62,
24561,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5837,
10354,
3991,
62,
24561,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
43221,
10354,
3991,
62,
31591,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
6719,
16005,
10354,
15440,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
6690,
439,
10354,
10014,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
10133,
262,
15440,
662,
10014,
198,
220,
220,
220,
220,
220,
220,
220,
4833,
62,
8344,
5691,
796,
357,
81,
329,
374,
287,
10014,
62,
9998,
611,
374,
19841,
10014,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
10014,
62,
400,
287,
4833,
62,
8344,
5691,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15440,
62,
525,
62,
8344,
439,
58,
8344,
439,
62,
400,
60,
796,
3509,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15440,
62,
525,
62,
8344,
439,
58,
8344,
439,
62,
400,
4357,
15440,
8,
628,
220,
220,
220,
2811,
62,
3866,
16005,
796,
45941,
13,
32604,
7,
4868,
7,
3866,
16005,
62,
525,
62,
8344,
439,
13,
27160,
3419,
4008,
198,
220,
220,
220,
1441,
2811,
62,
3866,
16005,
11,
2872,
654,
628,
198,
2,
38093,
10052,
198,
2,
220,
220,
220,
220,
220,
285,
2969,
1366,
3783,
9396,
2864,
198,
2,
38093,
10052,
198,
198,
4299,
2471,
62,
9310,
65,
7908,
7,
28764,
82,
11,
6167,
654,
11,
1312,
280,
62,
400,
10126,
82,
28,
14202,
11,
24061,
62,
32604,
28,
25101,
2599,
198,
220,
220,
220,
37227,
7293,
1769,
262,
1612,
13475,
39281,
355,
5447,
287,
262,
1366,
3783,
9396,
2864,
4427,
13,
198,
220,
220,
220,
16926,
46,
6901,
262,
1296,
934,
628,
220,
220,
220,
20559,
2886,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2747,
1391,
4868,
286,
6167,
654,
92,
1377,
317,
1351,
286,
16277,
198,
220,
220,
220,
220,
220,
220,
220,
6167,
654,
1391,
4868,
286,
6167,
654,
92,
1377,
317,
1351,
286,
2323,
3872,
6167,
654,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
280,
62,
400,
10126,
82,
1391,
4868,
286,
36016,
92,
1377,
317,
1351,
286,
16246,
625,
6441,
40885,
13,
383,
198,
220,
220,
220,
220,
220,
220,
220,
13475,
39281,
481,
307,
4504,
329,
1123,
11387,
13,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1391,
4868,
92,
1377,
383,
13475,
39281,
329,
1123,
1813,
11387,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
1312,
280,
62,
400,
10126,
82,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
280,
62,
400,
10126,
82,
796,
685,
13,
1120,
11,
764,
2816,
11,
764,
1899,
11,
764,
2996,
11,
764,
2154,
11,
764,
2425,
11,
764,
1795,
11,
764,
5332,
11,
764,
3829,
11,
764,
3865,
60,
628,
220,
220,
220,
257,
862,
796,
17635,
198,
220,
220,
220,
329,
2747,
11,
27393,
287,
19974,
7,
28764,
82,
11,
6167,
654,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2747,
62,
15699,
654,
11,
308,
83,
62,
325,
11726,
796,
4808,
15699,
62,
28764,
82,
62,
1462,
62,
18242,
654,
26933,
28764,
4357,
685,
18242,
278,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
257,
862,
13,
33295,
26933,
499,
62,
9310,
65,
7908,
62,
31409,
7,
28764,
62,
15699,
654,
11,
308,
83,
62,
325,
11726,
11,
294,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
294,
287,
1312,
280,
62,
400,
10126,
82,
12962,
198,
220,
220,
220,
2471,
62,
1326,
504,
796,
685,
37659,
13,
32604,
7,
499,
8,
329,
2471,
287,
19974,
46491,
1686,
15437,
628,
220,
220,
220,
611,
24061,
62,
32604,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2471,
62,
1326,
504,
1343,
685,
37659,
13,
32604,
7,
499,
62,
1326,
504,
15437,
198,
220,
220,
220,
1441,
2471,
62,
1326,
504,
628,
198,
4299,
2471,
62,
9310,
65,
7908,
62,
31409,
7,
28764,
82,
11,
308,
83,
62,
325,
11726,
11,
1312,
280,
62,
400,
10126,
2599,
198,
220,
220,
220,
37227,
7293,
1769,
262,
13475,
39281,
1864,
284,
262,
1366,
3783,
9396,
2864,
12660,
18663,
198,
220,
220,
220,
329,
262,
1813,
16277,
13,
628,
220,
220,
220,
383,
2747,
82,
4578,
318,
4385,
284,
307,
257,
1351,
286,
12777,
2374,
351,
262,
1708,
4645,
25,
198,
220,
220,
220,
685,
198,
220,
220,
220,
220,
220,
220,
220,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
24,
11,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
317,
4776,
329,
262,
17724,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
9600,
486,
62,
325,
70,
2931,
3256,
1303,
383,
1266,
12336,
2323,
3872,
10618,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
21,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
27853,
52,
351,
262,
1266,
12336,
308,
83,
10618,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
26894,
198,
220,
220,
220,
20740,
628,
220,
220,
220,
383,
308,
83,
62,
325,
11296,
658,
4578,
318,
257,
900,
286,
27421,
329,
262,
2323,
3872,
17894,
13,
628,
220,
220,
220,
20559,
2886,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2747,
82,
1391,
4868,
286,
8633,
82,
92,
1377,
317,
1351,
286,
16277,
14451,
351,
262,
2323,
3872,
17894,
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,
357,
6214,
2029,
8,
198,
220,
220,
220,
220,
220,
220,
220,
308,
83,
62,
325,
11726,
1391,
2617,
92,
1377,
317,
900,
286,
42814,
329,
262,
2323,
3872,
17894,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
280,
62,
400,
10126,
1391,
22468,
92,
1377,
383,
27853,
52,
11387,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2747,
62,
13655,
796,
47527,
79,
58,
16,
60,
611,
279,
58,
17,
60,
1875,
1312,
280,
62,
400,
10126,
2073,
6045,
8,
329,
279,
287,
2747,
82,
60,
198,
220,
220,
220,
2081,
62,
1930,
20288,
796,
18896,
15090,
79,
329,
279,
287,
2747,
62,
13655,
611,
279,
287,
308,
83,
62,
325,
11726,
30072,
220,
1303,
24525,
198,
220,
220,
220,
3991,
62,
1930,
20288,
796,
18896,
7,
28764,
82,
8,
532,
2081,
62,
1930,
20288,
220,
1303,
31459,
198,
220,
220,
220,
3991,
62,
12480,
2929,
796,
18896,
26933,
15,
329,
308,
83,
287,
308,
83,
62,
325,
11726,
611,
308,
83,
407,
287,
2747,
62,
13655,
12962,
220,
1303,
44260,
198,
220,
220,
220,
1441,
2081,
62,
1930,
20288,
1220,
357,
7942,
62,
1930,
20288,
1343,
3991,
62,
1930,
20288,
1343,
3991,
62,
12480,
2929,
8,
628,
198,
4299,
4808,
15699,
62,
28764,
82,
62,
1462,
62,
18242,
654,
7,
28764,
82,
11,
6167,
654,
11,
8198,
28,
14202,
2599,
198,
220,
220,
220,
37227,
19044,
2052,
17724,
17894,
284,
2323,
3872,
17894,
13,
16409,
257,
12202,
293,
351,
734,
3709,
25,
628,
220,
220,
220,
383,
717,
2378,
318,
257,
1351,
351,
1123,
17724,
14451,
284,
281,
2323,
3872,
10618,
25,
198,
220,
220,
220,
685,
198,
220,
220,
220,
220,
220,
220,
220,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
24,
11,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
317,
4776,
329,
262,
17724,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
9600,
486,
62,
325,
70,
2931,
3256,
1303,
383,
1266,
12336,
2323,
3872,
10618,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
21,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
27853,
52,
351,
262,
1266,
12336,
308,
83,
10618,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
26894,
198,
220,
220,
220,
20740,
628,
220,
220,
220,
383,
1218,
2378,
318,
257,
900,
286,
42814,
329,
477,
2323,
3872,
17894,
13,
628,
220,
220,
220,
20559,
2886,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2747,
82,
1391,
4868,
286,
6167,
654,
92,
1377,
317,
1351,
286,
16277,
13,
198,
220,
220,
220,
220,
220,
220,
220,
308,
83,
62,
325,
11726,
1391,
4868,
286,
6167,
654,
92,
1377,
317,
1351,
286,
2323,
3872,
6167,
654,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
8198,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
8198,
796,
685,
14202,
60,
1635,
18896,
7,
28764,
82,
8,
628,
220,
220,
220,
2747,
62,
15699,
654,
796,
17635,
198,
220,
220,
220,
308,
83,
62,
325,
11726,
796,
900,
3419,
628,
220,
220,
220,
329,
1312,
11,
357,
28764,
11,
27393,
11,
2747,
62,
1416,
2850,
8,
287,
27056,
378,
7,
13344,
7,
28764,
82,
11,
6167,
654,
11,
8198,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2747,
62,
48205,
796,
1064,
62,
48205,
7,
28764,
8,
198,
220,
220,
220,
220,
220,
220,
220,
308,
83,
62,
48205,
796,
1064,
62,
48205,
7,
18242,
278,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
26304,
625,
11001,
5563,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2747,
62,
18242,
11,
2747,
62,
48369,
287,
27056,
378,
7,
28764,
62,
48205,
11,
352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
612,
318,
645,
17724,
351,
428,
4686,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2747,
62,
48369,
318,
6045,
25,
198,
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,
611,
2747,
62,
1416,
2850,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4776,
796,
352,
13,
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,
4776,
796,
2747,
62,
1416,
2850,
58,
28764,
62,
18242,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1266,
62,
72,
280,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1266,
62,
13655,
796,
6045,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
26304,
625,
2323,
3872,
5563,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
308,
83,
62,
18242,
11,
308,
83,
62,
48369,
287,
27056,
378,
7,
13655,
62,
48205,
11,
352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6822,
611,
484,
36177,
290,
651,
262,
6441,
611,
484,
466,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6441,
796,
4808,
24592,
7,
28764,
62,
48369,
11,
308,
83,
62,
48369,
11,
2747,
13,
43358,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
6441,
318,
6045,
25,
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,
1303,
3082,
1133,
262,
27853,
52,
290,
2198,
611,
340,
318,
262,
1266,
2872,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
280,
796,
4808,
72,
280,
7,
28764,
58,
24592,
4357,
27393,
58,
24592,
4357,
2747,
62,
18242,
11,
308,
83,
62,
18242,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1312,
280,
1875,
1266,
62,
72,
280,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1266,
62,
72,
280,
796,
1312,
280,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1266,
62,
13655,
796,
308,
83,
62,
312,
7,
72,
11,
308,
83,
62,
18242,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2747,
62,
15699,
654,
13,
33295,
19510,
26675,
11,
1266,
62,
13655,
11,
1266,
62,
72,
280,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
26304,
625,
308,
83,
5563,
198,
220,
220,
220,
220,
220,
220,
220,
329,
308,
83,
62,
18242,
11,
308,
83,
62,
48369,
287,
27056,
378,
7,
13655,
62,
48205,
11,
352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
83,
62,
325,
11726,
13,
2860,
7,
13655,
62,
312,
7,
72,
11,
308,
83,
62,
18242,
4008,
628,
220,
220,
220,
1441,
2747,
62,
15699,
654,
11,
308,
83,
62,
325,
11726,
628,
198,
4299,
4808,
24592,
62,
16,
67,
7,
11085,
11,
1218,
11,
2546,
2599,
198,
220,
220,
220,
37227,
7293,
1769,
611,
16416,
717,
290,
1218,
21721,
329,
262,
2546,
286,
262,
15793,
37811,
198,
220,
220,
220,
717,
62,
1084,
11,
717,
62,
9806,
11,
4808,
796,
717,
13,
521,
1063,
7,
7857,
8,
198,
220,
220,
220,
1218,
62,
1084,
11,
1218,
62,
9806,
11,
4808,
796,
1218,
13,
521,
1063,
7,
7857,
8,
198,
220,
220,
220,
611,
717,
62,
9806,
18189,
1218,
62,
1084,
290,
1218,
62,
9806,
18189,
717,
62,
1084,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
16416,
7,
1084,
7,
11085,
62,
1084,
11,
1218,
62,
1084,
828,
3509,
7,
11085,
62,
9806,
11,
1218,
62,
9806,
4008,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
628,
198,
4299,
4808,
24592,
7,
11085,
82,
11,
4201,
11,
5485,
2599,
198,
220,
220,
220,
37227,
7293,
1769,
611,
24314,
717,
82,
290,
4201,
477,
21721,
329,
262,
1813,
5485,
37811,
198,
220,
220,
220,
6441,
796,
17635,
198,
220,
220,
220,
329,
717,
11,
1218,
11,
2546,
287,
19974,
7,
11085,
82,
11,
4201,
11,
5485,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6441,
62,
16,
67,
796,
4808,
24592,
62,
16,
67,
7,
11085,
11,
1218,
11,
2546,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
6441,
62,
16,
67,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
6441,
13,
33295,
7,
24592,
62,
16,
67,
8,
198,
220,
220,
220,
1441,
46545,
7,
24592,
8,
628,
198
] | 2.45498 | 3,765 |
from polyaxon.config_manager import config
INTEGRATIONS_HIPCHAT_WEBHOOKS = config.get_dict('POLYAXON_INTEGRATIONS_HIPCHAT_WEBHOOKS',
is_list=True,
is_optional=True,
is_local=True)
| [
6738,
7514,
897,
261,
13,
11250,
62,
37153,
1330,
4566,
198,
198,
12394,
7156,
49,
18421,
62,
39,
4061,
31542,
62,
8845,
33,
39,
15308,
50,
796,
4566,
13,
1136,
62,
11600,
10786,
45472,
56,
25922,
1340,
62,
12394,
7156,
49,
18421,
62,
39,
4061,
31542,
62,
8845,
33,
39,
15308,
50,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
4868,
28,
17821,
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,
318,
62,
25968,
28,
17821,
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,
318,
62,
12001,
28,
17821,
8,
198
] | 1.50463 | 216 |
"""/zen:"""
from chatbot import send
| [
37811,
14,
4801,
11097,
15931,
198,
6738,
8537,
13645,
1330,
3758,
198
] | 3.083333 | 12 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-10 02:36
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
2980,
515,
416,
37770,
352,
13,
1157,
13,
1065,
319,
2864,
12,
3023,
12,
940,
7816,
25,
2623,
198,
6738,
11593,
37443,
834,
1330,
28000,
1098,
62,
17201,
874,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
198,
11748,
42625,
14208,
13,
9945,
13,
27530,
13,
2934,
1616,
295,
628
] | 2.753623 | 69 |
#! /usr/bin/env python2.7
import time
import rospy
from math import pi
from std_srvs.srv import Empty
from gazebo_ros_link_attacher.srv import Attach
from gazebo_msgs.srv import SpawnModel, SpawnModelRequest
from gazebo_msgs.msg import ModelStates
from geometry_msgs.msg import Quaternion
from tf.transformations import quaternion_from_euler
def get_model_pose(model_name):
"""
Function to get the pose of the model.
:param model_name: Name of the current model.
:return: Return the model's pose.
"""
poll_rate = rospy.Rate(1)
for i in range(10):
model_states = rospy.wait_for_message('/gazebo/model_states', ModelStates, 1)
if model_name in model_states.name:
model_pose = model_states.pose[model_states.name.index(model_name)]
break
poll_rate.sleep()
else:
raise RuntimeError('Failed to get ' + model_name + ' model state')
return model_pose
def main():
"""
Main function for use when this file is called. Used to spawn the aruco marker on the robot.
"""
rospy.init_node('spawn_marker_on_robot')
time.sleep(10)
while not rospy.is_shutdown() and rospy.Time.now() == rospy.Time(0):
time.sleep(5)
# Initialize service clients
pause_physics_client = rospy.ServiceProxy('/gazebo/pause_physics', Empty)
unpause_physics_client = rospy.ServiceProxy('/gazebo/unpause_physics', Empty)
spawn_sdf_model_client = rospy.ServiceProxy('/gazebo/spawn_sdf_model', SpawnModel)
link_attacher_client = rospy.ServiceProxy('/link_attacher_node/attach', Attach)
link_attacher_client.wait_for_service()
rospy.loginfo("Created ServiceProxy to /link_attacher_node/attach")
# Initialize model names
robot_name = rospy.get_namespace()[1:-1]
# robot_name = 'leader'
# rospy.logwarn(robot_name)
marker_back_name = robot_name + '_marker_back'
marker_front_name = robot_name + '_marker_front'
# Compute marker pose based on current robot pose
marker_back_pose = get_model_pose(robot_name)
marker_back_pose.position.x -= 0.05
marker_back_pose.position.z = 0.3
marker_back_pose.orientation = Quaternion(*quaternion_from_euler(0, 0, pi))
# Compute marker pose based on current robot pose
marker_front_pose = get_model_pose(robot_name)
marker_front_pose.position.x -= 0.04
marker_front_pose.position.z = 0.3
marker_front_pose.orientation = Quaternion(*quaternion_from_euler(0, 0, 0))
# Compute spawn model request
spawn_request_back = SpawnModelRequest()
spawn_request_back.model_name = marker_back_name
spawn_request_back.model_xml = """
<sdf version="1.6">
<world name="default">
<include>
<uri>model://aruco_marker</uri>
</include>
</world>
</sdf>"""
spawn_request_back.robot_namespace = robot_name
spawn_request_back.initial_pose = marker_back_pose
# Compute spawn model request
spawn_request_front = SpawnModelRequest()
spawn_request_front.model_name = marker_front_name
spawn_request_front.model_xml = """
<sdf version="1.6">
<world name="default">
<include>
<uri>model://aruco_marker</uri>
</include>
</world>
</sdf>"""
spawn_request_front.robot_namespace = robot_name
spawn_request_front.initial_pose = marker_front_pose
# Spawn and attach marker to the robot
pause_physics_client()
spawn_sdf_model_client(spawn_request_back)
spawn_sdf_model_client(spawn_request_front)
link_attacher_client(robot_name, 'base_footprint', marker_back_name, 'link')
link_attacher_client(robot_name, 'base_footprint', marker_front_name, 'link')
unpause_physics_client()
if __name__ == '__main__':
main()
| [
2,
0,
1220,
14629,
14,
8800,
14,
24330,
21015,
17,
13,
22,
198,
198,
11748,
640,
198,
11748,
686,
2777,
88,
198,
6738,
10688,
1330,
31028,
198,
6738,
14367,
62,
27891,
14259,
13,
27891,
85,
1330,
33523,
198,
6738,
308,
1031,
1765,
78,
62,
4951,
62,
8726,
62,
1078,
3493,
13,
27891,
85,
1330,
3460,
620,
198,
198,
6738,
308,
1031,
1765,
78,
62,
907,
14542,
13,
27891,
85,
1330,
36356,
17633,
11,
36356,
17633,
18453,
198,
6738,
308,
1031,
1765,
78,
62,
907,
14542,
13,
19662,
1330,
9104,
42237,
198,
6738,
22939,
62,
907,
14542,
13,
19662,
1330,
2264,
9205,
295,
198,
6738,
48700,
13,
35636,
602,
1330,
627,
9205,
295,
62,
6738,
62,
68,
18173,
628,
198,
4299,
651,
62,
19849,
62,
3455,
7,
19849,
62,
3672,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
15553,
284,
651,
262,
12705,
286,
262,
2746,
13,
198,
220,
220,
220,
1058,
17143,
2746,
62,
3672,
25,
6530,
286,
262,
1459,
2746,
13,
198,
220,
220,
220,
1058,
7783,
25,
8229,
262,
2746,
338,
12705,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3278,
62,
4873,
796,
686,
2777,
88,
13,
32184,
7,
16,
8,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
940,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2746,
62,
27219,
796,
686,
2777,
88,
13,
17077,
62,
1640,
62,
20500,
10786,
14,
70,
1031,
1765,
78,
14,
19849,
62,
27219,
3256,
9104,
42237,
11,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2746,
62,
3672,
287,
2746,
62,
27219,
13,
3672,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
62,
3455,
796,
2746,
62,
27219,
13,
3455,
58,
19849,
62,
27219,
13,
3672,
13,
9630,
7,
19849,
62,
3672,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
3278,
62,
4873,
13,
42832,
3419,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
43160,
12331,
10786,
37,
6255,
284,
651,
705,
1343,
2746,
62,
3672,
1343,
705,
2746,
1181,
11537,
198,
220,
220,
220,
1441,
2746,
62,
3455,
628,
198,
4299,
1388,
33529,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
8774,
2163,
329,
779,
618,
428,
2393,
318,
1444,
13,
16718,
284,
10922,
262,
610,
84,
1073,
18364,
319,
262,
9379,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
686,
2777,
88,
13,
15003,
62,
17440,
10786,
48183,
62,
4102,
263,
62,
261,
62,
305,
13645,
11537,
198,
220,
220,
220,
640,
13,
42832,
7,
940,
8,
198,
220,
220,
220,
981,
407,
686,
2777,
88,
13,
271,
62,
49625,
2902,
3419,
290,
686,
2777,
88,
13,
7575,
13,
2197,
3419,
6624,
686,
2777,
88,
13,
7575,
7,
15,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
20,
8,
628,
220,
220,
220,
1303,
20768,
1096,
2139,
7534,
198,
220,
220,
220,
14985,
62,
746,
23154,
62,
16366,
796,
686,
2777,
88,
13,
16177,
44148,
10786,
14,
70,
1031,
1765,
78,
14,
32125,
62,
746,
23154,
3256,
33523,
8,
198,
220,
220,
220,
8593,
682,
62,
746,
23154,
62,
16366,
796,
686,
2777,
88,
13,
16177,
44148,
10786,
14,
70,
1031,
1765,
78,
14,
403,
32125,
62,
746,
23154,
3256,
33523,
8,
198,
220,
220,
220,
10922,
62,
82,
7568,
62,
19849,
62,
16366,
796,
686,
2777,
88,
13,
16177,
44148,
10786,
14,
70,
1031,
1765,
78,
14,
48183,
62,
82,
7568,
62,
19849,
3256,
36356,
17633,
8,
198,
220,
220,
220,
2792,
62,
1078,
3493,
62,
16366,
796,
686,
2777,
88,
13,
16177,
44148,
10786,
14,
8726,
62,
1078,
3493,
62,
17440,
14,
47348,
3256,
3460,
620,
8,
198,
220,
220,
220,
2792,
62,
1078,
3493,
62,
16366,
13,
17077,
62,
1640,
62,
15271,
3419,
198,
220,
220,
220,
686,
2777,
88,
13,
6404,
10951,
7203,
41972,
4809,
44148,
284,
1220,
8726,
62,
1078,
3493,
62,
17440,
14,
47348,
4943,
628,
220,
220,
220,
1303,
20768,
1096,
2746,
3891,
198,
220,
220,
220,
9379,
62,
3672,
796,
686,
2777,
88,
13,
1136,
62,
14933,
10223,
3419,
58,
16,
21912,
16,
60,
198,
220,
220,
220,
1303,
9379,
62,
3672,
796,
705,
27940,
6,
198,
220,
220,
220,
1303,
686,
2777,
88,
13,
6404,
40539,
7,
305,
13645,
62,
3672,
8,
198,
220,
220,
220,
18364,
62,
1891,
62,
3672,
796,
9379,
62,
3672,
1343,
705,
62,
4102,
263,
62,
1891,
6,
198,
220,
220,
220,
18364,
62,
8534,
62,
3672,
796,
9379,
62,
3672,
1343,
705,
62,
4102,
263,
62,
8534,
6,
628,
220,
220,
220,
1303,
3082,
1133,
18364,
12705,
1912,
319,
1459,
9379,
12705,
198,
220,
220,
220,
18364,
62,
1891,
62,
3455,
796,
651,
62,
19849,
62,
3455,
7,
305,
13645,
62,
3672,
8,
198,
220,
220,
220,
18364,
62,
1891,
62,
3455,
13,
9150,
13,
87,
48185,
657,
13,
2713,
198,
220,
220,
220,
18364,
62,
1891,
62,
3455,
13,
9150,
13,
89,
796,
657,
13,
18,
198,
220,
220,
220,
18364,
62,
1891,
62,
3455,
13,
13989,
341,
796,
2264,
9205,
295,
46491,
421,
9205,
295,
62,
6738,
62,
68,
18173,
7,
15,
11,
657,
11,
31028,
4008,
628,
220,
220,
220,
1303,
3082,
1133,
18364,
12705,
1912,
319,
1459,
9379,
12705,
198,
220,
220,
220,
18364,
62,
8534,
62,
3455,
796,
651,
62,
19849,
62,
3455,
7,
305,
13645,
62,
3672,
8,
198,
220,
220,
220,
18364,
62,
8534,
62,
3455,
13,
9150,
13,
87,
48185,
657,
13,
3023,
198,
220,
220,
220,
18364,
62,
8534,
62,
3455,
13,
9150,
13,
89,
796,
657,
13,
18,
198,
220,
220,
220,
18364,
62,
8534,
62,
3455,
13,
13989,
341,
796,
2264,
9205,
295,
46491,
421,
9205,
295,
62,
6738,
62,
68,
18173,
7,
15,
11,
657,
11,
657,
4008,
628,
220,
220,
220,
1303,
3082,
1133,
10922,
2746,
2581,
198,
220,
220,
220,
10922,
62,
25927,
62,
1891,
796,
36356,
17633,
18453,
3419,
198,
220,
220,
220,
10922,
62,
25927,
62,
1891,
13,
19849,
62,
3672,
796,
18364,
62,
1891,
62,
3672,
198,
220,
220,
220,
10922,
62,
25927,
62,
1891,
13,
19849,
62,
19875,
796,
37227,
198,
220,
220,
220,
1279,
82,
7568,
2196,
2625,
16,
13,
21,
5320,
198,
220,
220,
220,
220,
220,
1279,
6894,
1438,
2625,
12286,
5320,
198,
220,
220,
220,
220,
220,
220,
220,
1279,
17256,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
9900,
29,
19849,
1378,
11493,
1073,
62,
4102,
263,
3556,
9900,
29,
198,
220,
220,
220,
220,
220,
220,
220,
7359,
17256,
29,
198,
220,
220,
220,
220,
220,
7359,
6894,
29,
198,
220,
220,
220,
7359,
82,
7568,
29,
37811,
198,
220,
220,
220,
10922,
62,
25927,
62,
1891,
13,
305,
13645,
62,
14933,
10223,
796,
9379,
62,
3672,
198,
220,
220,
220,
10922,
62,
25927,
62,
1891,
13,
36733,
62,
3455,
796,
18364,
62,
1891,
62,
3455,
628,
220,
220,
220,
1303,
3082,
1133,
10922,
2746,
2581,
198,
220,
220,
220,
10922,
62,
25927,
62,
8534,
796,
36356,
17633,
18453,
3419,
198,
220,
220,
220,
10922,
62,
25927,
62,
8534,
13,
19849,
62,
3672,
796,
18364,
62,
8534,
62,
3672,
198,
220,
220,
220,
10922,
62,
25927,
62,
8534,
13,
19849,
62,
19875,
796,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1279,
82,
7568,
2196,
2625,
16,
13,
21,
5320,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
6894,
1438,
2625,
12286,
5320,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
17256,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
9900,
29,
19849,
1378,
11493,
1073,
62,
4102,
263,
3556,
9900,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7359,
17256,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7359,
6894,
29,
198,
220,
220,
220,
220,
220,
220,
220,
7359,
82,
7568,
29,
37811,
198,
220,
220,
220,
10922,
62,
25927,
62,
8534,
13,
305,
13645,
62,
14933,
10223,
796,
9379,
62,
3672,
198,
220,
220,
220,
10922,
62,
25927,
62,
8534,
13,
36733,
62,
3455,
796,
18364,
62,
8534,
62,
3455,
628,
220,
220,
220,
1303,
36356,
290,
10199,
18364,
284,
262,
9379,
198,
220,
220,
220,
14985,
62,
746,
23154,
62,
16366,
3419,
198,
220,
220,
220,
10922,
62,
82,
7568,
62,
19849,
62,
16366,
7,
48183,
62,
25927,
62,
1891,
8,
198,
220,
220,
220,
10922,
62,
82,
7568,
62,
19849,
62,
16366,
7,
48183,
62,
25927,
62,
8534,
8,
198,
220,
220,
220,
2792,
62,
1078,
3493,
62,
16366,
7,
305,
13645,
62,
3672,
11,
705,
8692,
62,
5898,
4798,
3256,
18364,
62,
1891,
62,
3672,
11,
705,
8726,
11537,
198,
220,
220,
220,
2792,
62,
1078,
3493,
62,
16366,
7,
305,
13645,
62,
3672,
11,
705,
8692,
62,
5898,
4798,
3256,
18364,
62,
8534,
62,
3672,
11,
705,
8726,
11537,
198,
220,
220,
220,
8593,
682,
62,
746,
23154,
62,
16366,
3419,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198
] | 2.48883 | 1,522 |
"""Tests for classification."""
from typing import Sequence
from absl.testing import parameterized
import tensorflow as tf
import tensorflow_gnn as tfgnn
from tensorflow_gnn.runner import orchestration
from tensorflow_gnn.runner.tasks import classification
as_tensor = tf.convert_to_tensor
as_ragged = tf.ragged.constant
SCHEMA = """
node_sets {
key: "nodes"
value {
features {
key: "%s"
value {
dtype: DT_FLOAT
shape { dim { size: 4 } }
}
}
}
}
edge_sets {
key: "edges"
value {
source: "nodes"
target: "nodes"
}
}
""" % tfgnn.HIDDEN_STATE
if __name__ == "__main__":
tf.test.main()
| [
37811,
51,
3558,
329,
17923,
526,
15931,
198,
6738,
19720,
1330,
45835,
198,
198,
6738,
2352,
75,
13,
33407,
1330,
11507,
1143,
198,
11748,
11192,
273,
11125,
355,
48700,
198,
11748,
11192,
273,
11125,
62,
4593,
77,
355,
48700,
4593,
77,
198,
198,
6738,
11192,
273,
11125,
62,
4593,
77,
13,
16737,
1330,
17771,
12401,
198,
6738,
11192,
273,
11125,
62,
4593,
77,
13,
16737,
13,
83,
6791,
1330,
17923,
198,
198,
292,
62,
83,
22854,
796,
48700,
13,
1102,
1851,
62,
1462,
62,
83,
22854,
198,
292,
62,
81,
14655,
796,
48700,
13,
81,
14655,
13,
9979,
415,
198,
198,
50,
3398,
27630,
796,
37227,
198,
17440,
62,
28709,
1391,
198,
220,
1994,
25,
366,
77,
4147,
1,
198,
220,
1988,
1391,
198,
220,
220,
220,
3033,
1391,
198,
220,
220,
220,
220,
220,
1994,
25,
36521,
82,
1,
198,
220,
220,
220,
220,
220,
1988,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
288,
4906,
25,
24311,
62,
3697,
46,
1404,
198,
220,
220,
220,
220,
220,
220,
220,
5485,
1391,
5391,
1391,
2546,
25,
604,
1782,
1782,
198,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
1782,
198,
220,
1782,
198,
92,
198,
14907,
62,
28709,
1391,
198,
220,
1994,
25,
366,
276,
3212,
1,
198,
220,
1988,
1391,
198,
220,
220,
220,
2723,
25,
366,
77,
4147,
1,
198,
220,
220,
220,
2496,
25,
366,
77,
4147,
1,
198,
220,
1782,
198,
92,
198,
37811,
4064,
48700,
4593,
77,
13,
39,
2389,
41819,
62,
44724,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
48700,
13,
9288,
13,
12417,
3419,
198
] | 2.383212 | 274 |
# Author: Christian Brodbeck <[email protected]>
from eelbrain import datasets, load
from eelbrain._utils import IS_OSX
from eelbrain.testing import assert_dataobj_equal, file_path
| [
2,
6434,
25,
4302,
2806,
67,
27343,
1279,
43533,
666,
7957,
67,
27343,
31,
3281,
84,
13,
15532,
29,
198,
6738,
304,
417,
27825,
1330,
40522,
11,
3440,
198,
6738,
304,
417,
27825,
13557,
26791,
1330,
3180,
62,
2640,
55,
198,
6738,
304,
417,
27825,
13,
33407,
1330,
6818,
62,
7890,
26801,
62,
40496,
11,
2393,
62,
6978,
628
] | 3.220339 | 59 |
# Generated by Django 3.1.6 on 2021-11-05 05:29
from django.db import migrations, models
| [
2,
2980,
515,
416,
37770,
513,
13,
16,
13,
21,
319,
33448,
12,
1157,
12,
2713,
8870,
25,
1959,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
628
] | 2.84375 | 32 |
import orjson
from typing import Callable, List
from functools import wraps
def memlist(data: List):
"""
Remembers input/output of a function in python list.
Arguments:
data: a list to push received data into
Example
```python
from memo import memlist
data = []
@memlist(data=data)
def simulate(a, b):
return {"result": a + b}
# The `@memlist` decorator will allow the inputs/outputs to
# be saved in the provided `data` list.
for a in range(5):
for b in range(10):
simulate(a=a, b=b)
assert len(data) == 50
# If we keep running more loops the list will grow.
for a in range(6, 10 + 1):
for b in range(11, 20 + 1):
simulate(a=a, b=b)
assert len(data) == 100
```
"""
return decorator
def memfile(filepath: str):
"""
Remembers input/output of a function in a jsonl file on disk.
Arguments:
filepath: path to write data to
```python
from memo import memfile
@memfile(filepath="tmpfile.jsonl")
def simulate(a, b):
return {"result": a + b}
for a in range(5):
for b in range(10):
simulate(a=a, b=b)
```
"""
return decorator
def memfunc(callback: Callable):
"""
Remembers input/output of a function by printing.
Arguments:
callback: callback function that receives a dictionary with logged info
```python
from memo import memfunc, memlist
data = []
@memlist(data=data)
@memfunc(callback=print)
def simulate(a, b):
return {"result": a + b}
for a in range(5):
for b in range(10):
simulate(a=a, b=b)
# You should now see print statements, and this holds:
assert len(data) == 50
```
"""
return decorator
| [
11748,
393,
17752,
198,
6738,
19720,
1330,
4889,
540,
11,
7343,
198,
6738,
1257,
310,
10141,
1330,
27521,
628,
198,
4299,
1066,
4868,
7,
7890,
25,
7343,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
42898,
1213,
5128,
14,
22915,
286,
257,
2163,
287,
21015,
1351,
13,
628,
220,
220,
220,
20559,
2886,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
25,
257,
1351,
284,
4574,
2722,
1366,
656,
628,
220,
220,
220,
17934,
628,
220,
220,
220,
7559,
63,
29412,
198,
220,
220,
220,
422,
16155,
1330,
1066,
4868,
628,
220,
220,
220,
1366,
796,
17635,
628,
220,
220,
220,
2488,
11883,
4868,
7,
7890,
28,
7890,
8,
198,
220,
220,
220,
825,
29308,
7,
64,
11,
275,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
19779,
20274,
1298,
257,
1343,
275,
92,
628,
220,
220,
220,
1303,
383,
4600,
31,
11883,
4868,
63,
11705,
1352,
481,
1249,
262,
17311,
14,
22915,
82,
284,
198,
220,
220,
220,
1303,
307,
7448,
287,
262,
2810,
4600,
7890,
63,
1351,
13,
198,
220,
220,
220,
329,
257,
287,
2837,
7,
20,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
329,
275,
287,
2837,
7,
940,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29308,
7,
64,
28,
64,
11,
275,
28,
65,
8,
628,
220,
220,
220,
6818,
18896,
7,
7890,
8,
6624,
2026,
628,
220,
220,
220,
1303,
1002,
356,
1394,
2491,
517,
23607,
262,
1351,
481,
1663,
13,
198,
220,
220,
220,
329,
257,
287,
2837,
7,
21,
11,
838,
1343,
352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
329,
275,
287,
2837,
7,
1157,
11,
1160,
1343,
352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29308,
7,
64,
28,
64,
11,
275,
28,
65,
8,
628,
220,
220,
220,
6818,
18896,
7,
7890,
8,
6624,
1802,
198,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1441,
11705,
1352,
628,
198,
4299,
1066,
7753,
7,
7753,
6978,
25,
965,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
42898,
1213,
5128,
14,
22915,
286,
257,
2163,
287,
257,
33918,
75,
2393,
319,
11898,
13,
628,
220,
220,
220,
20559,
2886,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
6978,
25,
3108,
284,
3551,
1366,
284,
628,
220,
220,
220,
7559,
63,
29412,
198,
220,
220,
220,
422,
16155,
1330,
1066,
7753,
628,
220,
220,
220,
2488,
11883,
7753,
7,
7753,
6978,
2625,
22065,
7753,
13,
17752,
75,
4943,
198,
220,
220,
220,
825,
29308,
7,
64,
11,
275,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
19779,
20274,
1298,
257,
1343,
275,
92,
628,
220,
220,
220,
329,
257,
287,
2837,
7,
20,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
329,
275,
287,
2837,
7,
940,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29308,
7,
64,
28,
64,
11,
275,
28,
65,
8,
198,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1441,
11705,
1352,
628,
198,
4299,
1066,
20786,
7,
47423,
25,
4889,
540,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
42898,
1213,
5128,
14,
22915,
286,
257,
2163,
416,
13570,
13,
628,
220,
220,
220,
20559,
2886,
25,
198,
220,
220,
220,
220,
220,
220,
220,
23838,
25,
23838,
2163,
326,
11583,
257,
22155,
351,
18832,
7508,
628,
220,
220,
220,
7559,
63,
29412,
198,
220,
220,
220,
422,
16155,
1330,
1066,
20786,
11,
1066,
4868,
628,
220,
220,
220,
1366,
796,
17635,
628,
220,
220,
220,
2488,
11883,
4868,
7,
7890,
28,
7890,
8,
198,
220,
220,
220,
2488,
11883,
20786,
7,
47423,
28,
4798,
8,
198,
220,
220,
220,
825,
29308,
7,
64,
11,
275,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
19779,
20274,
1298,
257,
1343,
275,
92,
628,
220,
220,
220,
329,
257,
287,
2837,
7,
20,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
329,
275,
287,
2837,
7,
940,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29308,
7,
64,
28,
64,
11,
275,
28,
65,
8,
628,
220,
220,
220,
1303,
921,
815,
783,
766,
3601,
6299,
11,
290,
428,
6622,
25,
198,
220,
220,
220,
6818,
18896,
7,
7890,
8,
6624,
2026,
198,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1441,
11705,
1352,
198
] | 2.441923 | 749 |
#!/usr/bin/env python
import rospy
import struct
import sys
#import pdb
from copy import copy
from geometry_msgs.msg import (
PoseStamped,
Pose,
Point,
Quaternion,
)
from std_msgs.msg import Header
from baxter_core_msgs.msg import (
JointCommand
)
import actionlib
from control_msgs.msg import (
FollowJointTrajectoryAction,
FollowJointTrajectoryGoal,
)
from trajectory_msgs.msg import (
JointTrajectoryPoint,
)
import baxter_interface
from baxter_interface import CHECK_VERSION
if __name__ == '__main__':
listener() | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
11748,
686,
2777,
88,
198,
11748,
2878,
198,
11748,
25064,
198,
2,
11748,
279,
9945,
198,
6738,
4866,
1330,
4866,
198,
6738,
22939,
62,
907,
14542,
13,
19662,
1330,
357,
198,
220,
220,
220,
37557,
1273,
13322,
11,
198,
220,
220,
220,
37557,
11,
198,
220,
220,
220,
6252,
11,
198,
220,
220,
220,
2264,
9205,
295,
11,
198,
8,
198,
6738,
14367,
62,
907,
14542,
13,
19662,
1330,
48900,
198,
198,
6738,
275,
40864,
62,
7295,
62,
907,
14542,
13,
19662,
1330,
357,
198,
220,
220,
220,
16798,
21575,
198,
8,
198,
198,
11748,
2223,
8019,
198,
198,
6738,
1630,
62,
907,
14542,
13,
19662,
1330,
357,
198,
220,
220,
220,
7281,
41,
1563,
15721,
752,
652,
12502,
11,
198,
220,
220,
220,
7281,
41,
1563,
15721,
752,
652,
49045,
11,
198,
8,
198,
6738,
22942,
62,
907,
14542,
13,
19662,
1330,
357,
198,
220,
220,
220,
16798,
15721,
752,
652,
12727,
11,
198,
8,
198,
198,
11748,
275,
40864,
62,
39994,
198,
198,
6738,
275,
40864,
62,
39994,
1330,
5870,
25171,
62,
43717,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
24783,
3419
] | 2.767327 | 202 |
# --
# File: cyphort_connector.py
# Copyright (c) 2014-2021 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific language governing permissions
# and limitations under the License.
#
import time
# Phantom imports
import phantom.app as phantom
# Other imports used by this connector
import requests
import simplejson as json
from phantom.app import ActionResult, BaseConnector
from phantom.vault import Vault
from cyphort_consts import *
if __name__ == '__main__':
import sys
# import simplejson as json
import pudb
pudb.set_trace()
with open(sys.argv[1]) as f:
in_json = f.read()
in_json = json.loads(in_json)
print(json.dumps(in_json, indent=' ' * 4))
connector = CyphortConnector()
connector.print_progress_message = True
connector._handle_action(json.dumps(in_json), None)
sys.exit(0)
| [
2,
1377,
198,
2,
9220,
25,
3075,
746,
419,
62,
8443,
273,
13,
9078,
198,
2,
15069,
357,
66,
8,
1946,
12,
1238,
2481,
13341,
2954,
3457,
13,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
9387,
739,
198,
2,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
198,
2,
2035,
4911,
393,
17142,
13,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
198,
2,
290,
11247,
739,
262,
13789,
13,
198,
2,
198,
198,
11748,
640,
198,
198,
2,
14407,
17944,
198,
11748,
36381,
13,
1324,
355,
36381,
198,
2,
3819,
17944,
973,
416,
428,
21716,
198,
11748,
7007,
198,
11748,
2829,
17752,
355,
33918,
198,
6738,
36381,
13,
1324,
1330,
7561,
23004,
11,
7308,
34525,
198,
6738,
36381,
13,
85,
1721,
1330,
23450,
198,
198,
6738,
3075,
746,
419,
62,
1102,
6448,
1330,
1635,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
628,
220,
220,
220,
1330,
25064,
628,
220,
220,
220,
1303,
1330,
2829,
17752,
355,
33918,
198,
220,
220,
220,
1330,
279,
463,
65,
628,
220,
220,
220,
279,
463,
65,
13,
2617,
62,
40546,
3419,
628,
220,
220,
220,
351,
1280,
7,
17597,
13,
853,
85,
58,
16,
12962,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
287,
62,
17752,
796,
277,
13,
961,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
287,
62,
17752,
796,
33918,
13,
46030,
7,
259,
62,
17752,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
17752,
13,
67,
8142,
7,
259,
62,
17752,
11,
33793,
11639,
705,
1635,
604,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
21716,
796,
5934,
746,
419,
34525,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
21716,
13,
4798,
62,
33723,
62,
20500,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
21716,
13557,
28144,
62,
2673,
7,
17752,
13,
67,
8142,
7,
259,
62,
17752,
828,
6045,
8,
628,
220,
220,
220,
25064,
13,
37023,
7,
15,
8,
198
] | 3.053738 | 428 |
import matplotlib.pylab as plt
import numpy as np
import math as mm
llen=1000;
x=np.zeros(llen);
y=np.zeros(llen);
for i in range(0,llen):
t=2*i*(mm.pi)/llen;
x[i]=16*mm.pow(mm.sin(t),3);
y[i]=13*mm.cos(t)-5*(mm.cos(t*2))-2*mm.cos(3*t)-mm.cos(4*t);
plt.figure(1)
#plt.plot(x,y,color='#7570B3',linewidth=4.5)
plt.plot(x,y,color='r',linewidth=4.5)
plt.show()
| [
11748,
2603,
29487,
8019,
13,
79,
2645,
397,
220,
220,
220,
220,
220,
220,
220,
220,
220,
355,
458,
83,
198,
11748,
299,
32152,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
355,
45941,
198,
11748,
10688,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
355,
8085,
198,
198,
297,
268,
28,
12825,
26,
198,
87,
28,
37659,
13,
9107,
418,
7,
297,
268,
1776,
198,
88,
28,
37659,
13,
9107,
418,
7,
297,
268,
1776,
628,
198,
1640,
1312,
287,
2837,
7,
15,
11,
297,
268,
2599,
198,
220,
220,
256,
28,
17,
9,
72,
9,
7,
3020,
13,
14415,
20679,
297,
268,
26,
198,
220,
220,
2124,
58,
72,
22241,
1433,
9,
3020,
13,
79,
322,
7,
3020,
13,
31369,
7,
83,
828,
18,
1776,
198,
220,
220,
331,
58,
72,
22241,
1485,
9,
3020,
13,
6966,
7,
83,
13219,
20,
9,
7,
3020,
13,
6966,
7,
83,
9,
17,
4008,
12,
17,
9,
3020,
13,
6966,
7,
18,
9,
83,
13219,
3020,
13,
6966,
7,
19,
9,
83,
1776,
198,
198,
489,
83,
13,
26875,
7,
16,
8,
198,
2,
489,
83,
13,
29487,
7,
87,
11,
88,
11,
8043,
11639,
2,
2425,
2154,
33,
18,
3256,
2815,
413,
5649,
28,
19,
13,
20,
8,
198,
489,
83,
13,
29487,
7,
87,
11,
88,
11,
8043,
11639,
81,
3256,
2815,
413,
5649,
28,
19,
13,
20,
8,
198,
489,
83,
13,
12860,
3419,
198
] | 1.603053 | 262 |
#
# Copyright (c) 2019-2021 steelpy
#
# Python stdlib imports
#import math
#import datetime
from typing import Union, ClassVar
# package imports
from steelpy.codes.api.wsd_22ed import APIwsd22ed
from steelpy.design.beam.process import BeamDesignParameters, CodeResults
#from steelpy.f2uModel.load.operations.actions import Actions
#from steelpy.f2uModel.sections.process.stress import BeamStress
import steelpy.codes.process.print_report as print_report
#
#
class API_design(BeamDesignParameters):
"""
"""
def __init__(self, cls):
"""
"""
self._cls = cls
BeamDesignParameters.__init__(self)
#self._actions:ClassVar = Actions()
#
# Default output
#self.member_name:Union[str:int] = 'N/A'
#self.file_out = 'APIwsdCodeCheck.out'
#self.member_number:int = 0
#
# Factors
#self.flag_axial = 'COMPRESSION'
self.design_condition:str = 'OPERATING'
self.SFxt:float = 1.67
self.SFb:float = 1.333
self.SFxc:float = 2.00
self.SFh:float = 2.00
#
self.hydro_check:bool = False
#
# internal stress
#self.stress = BeamStress(0, 0, 0, 0, 0, 0)
#
@property
def wave(self):
"""
"""
self.hydro_check = True
return self._wave
@wave.setter
def wave(self, value):
"""
"""
self.hydro_check = True
self._wave = value
#
#
def reduction_factor(self):
"""
6.3.2.5
"""
pass
#
def safety_factors(self, SFxt, SFb, SFxc, SFh):
"""
"""
self.SFxt = SFxt
self.SFb = SFb
self.SFxc = SFxc
self.SFh = SFh
self.design_condition = 'USER'
#
def WSD(self, section, material, stress):
"""
"""
#
APIwsd = APIwsd22ed()
#print ("+++++++++++++++++++++++++++++")
#print (" Calculation: ", self.Header)
#
APIwsd.axial_tension(section, material, stress)
APIwsd.axial_compression(Klr=max(self.Klrz, self.Klry),
section=section,
material=material,
stress=stress)
APIwsd.bending(section, material, stress)
APIwsd.shear(section, material, stress)
APIwsd.torsional_shear(section, material, stress)
#
# Hydro Check
if self.hydro_check :
#print ('Wave Length = {:1.3f} m'.format(self._wave.wave_length.value))
# Calc Hydro Pressure
APIwsd.safety_factors(self.design_condition, material,
self.SFxt, self.SFb, self.SFxc, self.SFh)
APIwsd.hydrostatic_pressure(self.z, self.wave)
APIwsd.hoop_buckling(self.Lr, section, material)
APIwsd.combination_hydro(material)
# Print out Results
#APIwsd.PrintSectionProperties(self)
#APIwsd.PrintShear(self)
#APIwsd.PrintHydroPressureCalc(self)
#APIwsd.PrintAxialBendingAndHP(self)
#
#self.Header += 1
comb = APIwsd._hydro_pressure()
comb += APIwsd._axial_bending_andHP()
else :
APIwsd.combination(self.Klrz, self.Klry,
self.Cm[0], self.Cm[1],
material, stress)
#
##APIwsd22ed.PrintSectionProperties(self)
##APIwsd22ed.PrintShear(self)
comb = APIwsd._axial_bending_noHP(stress)
#
#
##self.Header += 1
#code_detail = ["API RP2A-WSD-Ed22 [Nov 2014]", "Strength Of Tubular Members"]
#output = print_report.print_header(code_detail)
output = APIwsd._header()
output += self._properties()
## Calc Section Properties
output += APIwsd._shear(stress)
#output.extend(comb)
print(output)
#
return CodeResults(axial= APIwsd.axial_results,
shear= APIwsd.shear_results,
bending= APIwsd.bending_results,
combined= APIwsd.combined_results,
report=output)
#
def LRFD(self):
"""
"""
print("to be included")
#
def __call__(self, code="wsd"):
"""" """
# get section properties
prop = self._cls.section.properties
# select code
design = self.WSD
if code != "wsd":
design = self.LRFD
# define beam effective lenght
self.Klrz = self.K[ 1 ] * self._cls.L / prop.rz
self.Klry = self.K[ 0 ] * self._cls.L / prop.ry
#
print("Klry : {:1.3f}".format(self.Klry))
print("Klrz : {:1.3f}".format(self.Klrz))
#
try:
self.Lr
except AttributeError:
self.Lr = max(self.K[0] * self._cls.L, self.K[1] * self._cls.L)
#
res = [ ]
for stress in self._cls._stress:
res.append(design(section=self._cls.section,
material=self._cls.material,
stress=stress))
return res
#
def __str__(self, code="wsd"):
"""" """
print(self._cls.section)
print(self._cls.material)
res = self.__call__(code)
#
#for line in self.results.report:
# print(line.rstrip())
#
#output.extend(self.section.print_properties())
#output.extend(self.material.print_properties())
print('-->')
#
# | [
2,
220,
198,
2,
15069,
357,
66,
8,
13130,
12,
1238,
2481,
7771,
9078,
198,
2,
198,
2,
11361,
14367,
8019,
17944,
198,
2,
11748,
10688,
198,
2,
11748,
4818,
8079,
198,
6738,
19720,
1330,
4479,
11,
5016,
19852,
198,
198,
2,
5301,
17944,
198,
6738,
7771,
9078,
13,
40148,
13,
15042,
13,
18504,
67,
62,
1828,
276,
1330,
7824,
18504,
67,
1828,
276,
198,
6738,
7771,
9078,
13,
26124,
13,
40045,
13,
14681,
1330,
25855,
23067,
48944,
11,
6127,
25468,
198,
2,
6738,
7771,
9078,
13,
69,
17,
84,
17633,
13,
2220,
13,
3575,
602,
13,
4658,
1330,
24439,
198,
2,
6738,
7771,
9078,
13,
69,
17,
84,
17633,
13,
23946,
13,
14681,
13,
41494,
1330,
25855,
1273,
601,
198,
11748,
7771,
9078,
13,
40148,
13,
14681,
13,
4798,
62,
13116,
355,
3601,
62,
13116,
198,
198,
2,
198,
2,
198,
4871,
7824,
62,
26124,
7,
3856,
321,
23067,
48944,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
537,
82,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
565,
82,
796,
537,
82,
198,
220,
220,
220,
220,
220,
220,
220,
25855,
23067,
48944,
13,
834,
15003,
834,
7,
944,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
944,
13557,
4658,
25,
9487,
19852,
796,
24439,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
15161,
5072,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
944,
13,
19522,
62,
3672,
25,
38176,
58,
2536,
25,
600,
60,
796,
705,
45,
14,
32,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
944,
13,
7753,
62,
448,
796,
705,
17614,
18504,
67,
10669,
9787,
13,
448,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
944,
13,
19522,
62,
17618,
25,
600,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
41140,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
944,
13,
32109,
62,
897,
498,
796,
705,
9858,
32761,
2849,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
26124,
62,
31448,
25,
2536,
796,
705,
31054,
33881,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20802,
742,
25,
22468,
796,
220,
352,
13,
3134,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20802,
65,
25,
22468,
796,
352,
13,
20370,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20802,
25306,
25,
22468,
796,
362,
13,
405,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20802,
71,
25,
22468,
796,
362,
13,
405,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15511,
305,
62,
9122,
25,
30388,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5387,
5503,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
944,
13,
41494,
796,
25855,
1273,
601,
7,
15,
11,
657,
11,
657,
11,
657,
11,
657,
11,
657,
8,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
6769,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15511,
305,
62,
9122,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
19204,
198,
220,
220,
220,
220,
198,
220,
220,
220,
2488,
19204,
13,
2617,
353,
198,
220,
220,
220,
825,
6769,
7,
944,
11,
1988,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15511,
305,
62,
9122,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
19204,
796,
1988,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
825,
7741,
62,
31412,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
718,
13,
18,
13,
17,
13,
20,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
825,
3747,
62,
22584,
669,
7,
944,
11,
14362,
742,
11,
14362,
65,
11,
14362,
25306,
11,
14362,
71,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20802,
742,
796,
14362,
742,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20802,
65,
796,
14362,
65,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20802,
25306,
796,
14362,
25306,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20802,
71,
796,
14362,
71,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
26124,
62,
31448,
796,
705,
29904,
6,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
825,
370,
10305,
7,
944,
11,
2665,
11,
2587,
11,
5503,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
7824,
18504,
67,
796,
7824,
18504,
67,
1828,
276,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4798,
5855,
44627,
25128,
14030,
10,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4798,
5855,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2199,
14902,
25,
33172,
2116,
13,
39681,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
7824,
18504,
67,
13,
897,
498,
62,
83,
3004,
7,
5458,
11,
2587,
11,
5503,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7824,
18504,
67,
13,
897,
498,
62,
5589,
2234,
7,
42,
14050,
28,
9806,
7,
944,
13,
42,
14050,
89,
11,
2116,
13,
42,
75,
563,
828,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2665,
28,
5458,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2587,
28,
33665,
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,
5503,
28,
41494,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7824,
18504,
67,
13,
49667,
7,
5458,
11,
2587,
11,
5503,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7824,
18504,
67,
13,
7091,
283,
7,
5458,
11,
2587,
11,
5503,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7824,
18504,
67,
13,
83,
669,
1538,
62,
7091,
283,
7,
5458,
11,
2587,
11,
5503,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
32116,
6822,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
15511,
305,
62,
9122,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4798,
19203,
39709,
22313,
796,
46110,
16,
13,
18,
69,
92,
285,
4458,
18982,
7,
944,
13557,
19204,
13,
19204,
62,
13664,
13,
8367,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2199,
66,
32116,
30980,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7824,
18504,
67,
13,
44708,
62,
22584,
669,
7,
944,
13,
26124,
62,
31448,
11,
2587,
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,
2116,
13,
20802,
742,
11,
2116,
13,
20802,
65,
11,
2116,
13,
20802,
25306,
11,
2116,
13,
20802,
71,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7824,
18504,
67,
13,
15511,
305,
12708,
62,
36151,
7,
944,
13,
89,
11,
2116,
13,
19204,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7824,
18504,
67,
13,
8873,
404,
62,
27041,
1359,
7,
944,
13,
43,
81,
11,
2665,
11,
2587,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7824,
18504,
67,
13,
24011,
1883,
62,
15511,
305,
7,
33665,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
12578,
503,
15691,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
17614,
18504,
67,
13,
18557,
16375,
2964,
18200,
7,
944,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
17614,
18504,
67,
13,
18557,
3347,
283,
7,
944,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
17614,
18504,
67,
13,
18557,
40436,
305,
13800,
495,
9771,
66,
7,
944,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
17614,
18504,
67,
13,
18557,
31554,
498,
33,
1571,
1870,
14082,
7,
944,
8,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
944,
13,
39681,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1974,
796,
7824,
18504,
67,
13557,
15511,
305,
62,
36151,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1974,
15853,
7824,
18504,
67,
13557,
897,
498,
62,
49667,
62,
392,
14082,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7824,
18504,
67,
13,
24011,
1883,
7,
944,
13,
42,
14050,
89,
11,
2116,
13,
42,
75,
563,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
34,
76,
58,
15,
4357,
2116,
13,
34,
76,
58,
16,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2587,
11,
5503,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22492,
17614,
18504,
67,
1828,
276,
13,
18557,
16375,
2964,
18200,
7,
944,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22492,
17614,
18504,
67,
1828,
276,
13,
18557,
3347,
283,
7,
944,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1974,
796,
7824,
18504,
67,
13557,
897,
498,
62,
49667,
62,
3919,
14082,
7,
41494,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
22492,
944,
13,
39681,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
8189,
62,
49170,
796,
14631,
17614,
25812,
17,
32,
12,
54,
10305,
12,
7407,
1828,
685,
20795,
1946,
60,
1600,
366,
45027,
3226,
42850,
934,
12688,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
22915,
796,
3601,
62,
13116,
13,
4798,
62,
25677,
7,
8189,
62,
49170,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
796,
7824,
18504,
67,
13557,
25677,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
15853,
2116,
13557,
48310,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
22492,
2199,
66,
7275,
24946,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
15853,
7824,
18504,
67,
13557,
7091,
283,
7,
41494,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
22915,
13,
2302,
437,
7,
24011,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
22915,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6127,
25468,
7,
897,
498,
28,
7824,
18504,
67,
13,
897,
498,
62,
43420,
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,
673,
283,
28,
7824,
18504,
67,
13,
7091,
283,
62,
43420,
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,
30808,
28,
7824,
18504,
67,
13,
49667,
62,
43420,
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,
5929,
28,
7824,
18504,
67,
13,
24011,
1389,
62,
43420,
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,
989,
28,
22915,
8,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
825,
37491,
26009,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
1462,
307,
3017,
4943,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
825,
11593,
13345,
834,
7,
944,
11,
2438,
2625,
18504,
67,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
15931,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
651,
2665,
6608,
198,
220,
220,
220,
220,
220,
220,
220,
2632,
796,
2116,
13557,
565,
82,
13,
5458,
13,
48310,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2922,
2438,
198,
220,
220,
220,
220,
220,
220,
220,
1486,
796,
2116,
13,
54,
10305,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2438,
14512,
366,
18504,
67,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1486,
796,
2116,
13,
35972,
26009,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
8160,
15584,
4050,
18896,
456,
83,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
42,
14050,
89,
796,
2116,
13,
42,
58,
352,
2361,
1635,
2116,
13557,
565,
82,
13,
43,
1220,
2632,
13,
81,
89,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
42,
75,
563,
796,
2116,
13,
42,
58,
657,
2361,
1635,
2116,
13557,
565,
82,
13,
43,
1220,
2632,
13,
563,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
42,
75,
563,
1058,
46110,
16,
13,
18,
69,
92,
1911,
18982,
7,
944,
13,
42,
75,
563,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
42,
14050,
89,
1058,
46110,
16,
13,
18,
69,
92,
1911,
18982,
7,
944,
13,
42,
14050,
89,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
43,
81,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
3460,
4163,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
43,
81,
796,
3509,
7,
944,
13,
42,
58,
15,
60,
1635,
2116,
13557,
565,
82,
13,
43,
11,
2116,
13,
42,
58,
16,
60,
1635,
2116,
13557,
565,
82,
13,
43,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
685,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5503,
287,
2116,
13557,
565,
82,
13557,
41494,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
13,
33295,
7,
26124,
7,
5458,
28,
944,
13557,
565,
82,
13,
5458,
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,
2587,
28,
944,
13557,
565,
82,
13,
33665,
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,
5503,
28,
41494,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
581,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
825,
11593,
2536,
834,
7,
944,
11,
2438,
2625,
18504,
67,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
15931,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
944,
13557,
565,
82,
13,
5458,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
944,
13557,
565,
82,
13,
33665,
8,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
2116,
13,
834,
13345,
834,
7,
8189,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1640,
1627,
287,
2116,
13,
43420,
13,
13116,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
3601,
7,
1370,
13,
81,
36311,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
22915,
13,
2302,
437,
7,
944,
13,
5458,
13,
4798,
62,
48310,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
22915,
13,
2302,
437,
7,
944,
13,
33665,
13,
4798,
62,
48310,
28955,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
46904,
11537,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
1303
] | 1.866256 | 3,088 |
import os
import sys
# Add the library top directory to first position in $PATH variable
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import splineDIC
import numpy as np
| [
11748,
28686,
198,
11748,
25064,
198,
198,
2,
3060,
262,
5888,
1353,
8619,
284,
717,
2292,
287,
720,
34219,
7885,
198,
17597,
13,
6978,
13,
28463,
7,
15,
11,
28686,
13,
6978,
13,
397,
2777,
776,
7,
418,
13,
6978,
13,
22179,
7,
418,
13,
6978,
13,
15908,
3672,
7,
834,
7753,
834,
828,
705,
492,
6,
22305,
198,
198,
11748,
4328,
500,
35,
2149,
198,
11748,
299,
32152,
355,
45941,
198
] | 2.916667 | 72 |
"""
This script provides a service to test BSDF implementations of different
languages. It is written in Python, since BSDF's reference implementation is.
To use, import this module and use ``main(test_dir, *exe)``. The test_dir
will be the current directory when the command is executed. The exe is the
command to run, which should somewhere have placeholders for ``{fname1}``
and ``{fname2}``. The extension of these file names indicates the format
(currently json or bsdf). The command will usually call into a script
(written in a language of choice), which occurs repeatedly during the
test.
Alternatively, one can do a call in the shell:
``python testservice.py dir exe ...``.
One can also run this script using pytest, in which case the tests are run
in-process to allow establishing the test coverage.
"""
from __future__ import absolute_import, print_function, division
import os
import sys
import math
import time
import json
import random
import tempfile
import threading
import subprocess
from io import open # pypy and py27 compat
import datagen
sys.path.insert(0, os.path.abspath(os.path.join(__file__, '..', '..', 'python')))
import bsdf # the current script is next to this module
## Setup
def setup_module(module):
""" This gets automatically called by pytest. """
global exe, exe_name
exe = []
exe_name = 'pytest'
def main(test_dir_, *exe_, excludes=None):
""" We call this when this is run as as script. """
global test_dir, exe, exe_name, runner
excludes = dict((e, True) for e in (excludes or []))
for e in os.getenv('BSDF_TEST_EXCLUDES', '').split(','):
excludes[e.strip()] = True
# Set exe and test_dir
test_dir = test_dir_
exe = list(exe_)
exe_name = exe[0]
if not os.path.isdir(test_dir):
raise RuntimeError('Not a valid directory: %r' % test_dir)
# Run tests
for name, func in list(globals().items()):
if name.startswith('test_') and callable(func):
print('Running service test %s %s ' % (exe_name, name), end='')
try:
func(**excludes)
except Exception:
print(' Failed')
raise
print(' Passed')
## Helper functions
def invoke_runner(fname1, fname2):
""" Invoke the runner in a new process to convert the data. """
assert os.path.isfile(fname1)
if exe_name == 'pytest':
# Shortcut to test with pytest
data = load(fname1)
save(fname2, data)
else:
# Normal sub-process behavior
exe2 = [e.format(fname1=fname1, fname2=fname2) for e in exe]
p = subprocess.Popen(exe2, cwd=test_dir,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
out = out.decode(errors="replace")
err = '\n'.join([line for line in err.decode(errors="replace").splitlines()
if not ('bsdf warning:' in line.lower() or
'warning: bsdf:' in line.lower())])
if p.returncode != 0 or err:
rename_as_error(fname1, fname2)
raise RuntimeWarning('{} failed:\n{}\n{}'.format(exe_name, out, err))
assert os.path.isfile(fname2)
def compare_data(data1, data2):
""" Compare the data, raise error if it fails. """
# Maybe we can do this fast ...
try:
if data1 == data2:
return
except Exception:
pass
# Otherwise, dive in
deep_compare(data1, data2)
def deep_compare(ob1, ob2, **excludes):
""" Compare two objects deeply to produce more useful assertions. """
np = None
if 'ndarray' not in excludes:
import numpy as np
if isinstance(ob1, float) and math.isnan(ob1):
assert math.isnan(ob2), 'one object is nan, the other is {}'.format(ob2)
elif np and isinstance(ob1, np.ndarray):
if 'strict_singleton_dims' in excludes:
assert (ob1.shape == ob2.shape or
((1, ) + ob1.shape) == ob2.shape or
ob1.shape == (ob2.shape + (1, )))
ob1.shape = ob2.shape # to enable proper value-comparison
else:
assert ob1.shape == ob2.shape, 'arrays shape mismatch: {} vs {}'.format(ob1.shape, ob2.shape)
assert (ob1.size == ob2.size == 0) or np.all(ob1 == ob2), 'arrays unequal'
elif isinstance(ob1, list):
assert type(ob1) is type(ob2), 'type mismatch:\n{}\nvs\n{}'.format(ob1, ob2)
assert len(ob1) == len(ob2), 'list sizes dont match:\n{}\nvs\n{}'.format(ob1, ob2)
for sub1, sub2 in zip(ob1, ob2):
deep_compare(sub1, sub2, **excludes)
elif isinstance(ob1, dict):
if len(ob1) > 0 and len(list(ob1.keys())[0]) > 63:
# Oh silly Matlab, truncate keys, because Matlab does that
for key in list(ob1.keys()):
ob1[key[:63]] = ob1[key]
del ob1[key]
assert type(ob1) is type(ob2), 'type mismatch:\n{}\nvs\n{}'.format(ob1, ob2)
assert len(ob1) == len(ob2), 'dict sizes dont match:\n{}\nvs\n{}'.format(ob1, ob2)
for key1 in ob1:
assert key1 in ob2, 'dict key not present in dict2:\n{}\nvs\n{}'.format(key1, ob2)
for key2 in ob2:
assert key2 in ob1, 'dict key not present in dict1:\n{}\nvs\n{}'.format(key2, ob1)
for key in ob1:
deep_compare(ob1[key], ob2[key], **excludes)
else:
assert ob1 == ob2, 'Values do not match:\n{}\nvs\n{}'.format(ob1, ob2)
def convert_data(fname1, fname2, data1):
""" Convert data, by saving to fname, invoking the runner, and reading back.
If something goes wrong, the files are saved as error.xx, otherwiser the files
are cleaned up.
"""
try:
save(fname1, data1)
invoke_runner(fname1, fname2)
data2 = load(fname2)
return data2
except Exception:
rename_as_error(fname1, fname2)
print(data1)
raise
finally:
remove(fname1, fname2)
def load(fname):
""" Load from json or bsdf, depending on the extension. """
if fname.endswith('.json'):
with open(fname, 'rt', encoding='utf-8') as f:
return json.load(f)
elif fname.endswith('.bsdf'):
return bsdf.load(fname)
else:
assert False
def save(fname, data):
""" Save to json or bsdf, depending on the extension. """
if fname.endswith('.json'):
with open(fname, 'wt', encoding='utf-8') as f:
json.dump(data, f, ensure_ascii=False)
elif fname.endswith('.bsdf'):
bsdf.save(fname, data)
else:
assert False
_tempfilecounter = 0
def get_filenames(ext1, ext2):
""" Get termporary file names. """
global _tempfilecounter
d = os.path.join(tempfile.gettempdir(), 'bsdf_tests')
os.makedirs(d, exist_ok=True)
fname1 = 'service_test_{}_{}_{}'.format(os.getpid(), threading.get_ident(), _tempfilecounter + 1)
fname2 = 'service_test_{}_{}_{}'.format(os.getpid(), threading.get_ident(), _tempfilecounter + 2)
_tempfilecounter += 2
return os.path.join(d, fname1 + ext1), os.path.join(d, fname2 + ext2)
def rename_as_error(*filenames):
""" Rename files to error.xx. """
for fname in filenames:
try:
os.replace(fname, os.path.dirname(fname) + '/error.' + fname.rsplit('.')[-1])
except Exception:
pass
def remove(*filenames):
""" Remove multiple filenames. """
for fname in filenames:
try:
os.remove(fname)
except Exception:
pass
## The tests
longnames = {}
for n in (249, 250, 251, 252, 253, 254, 255, 256, 259):
name = ('x%i_' % n) + 'x' * (n-5)
assert len(name) == n
longnames[n] = name
JSON_ABLE_OBJECTS = [
# Basics
[1,2,3, 4.2, 5.6, 6.001],
dict(foo=7.2, bar=42, a=False),
["hello", 3, None, True, 'there', 'x'],
{'foo bar': 7, '/-€': 8}, # dict keys do not have to be identifiers
# Singletons - note that some (e.g. Matlab's) json implementations have trouble having
# anything else than list/dict as root element, and with empty dicts/structs.
# Some nesting
[3.2, {'foo': 3, 'bar': [1, 2, [3, {'x':'y'}]]}, [1, [2, [[[None], 4.9], {'spam': 'eggs'}]]], False, True],
[[[[[[[[[42]]]]]]]]],
dict(x=dict(x=dict(x=dict(x=dict(x=dict(x=dict(x=dict(x=dict(x=dict(x=dict(x=dict(x=42)))))))))))),
# Unicode
dict(foo='fóó', bar='€50)', more='\'"{}$'),
# Elements with a length near the 250 boundary
[name for name in longnames.values()], # long strings
# [name.encode() for name in longnames.values()], # long bytes (not jsonable)
dict((val, key) for key, val in longnames.items()), # long keys
dict(('L%i' % n, [n] * n) for n in longnames.keys()), # long lists
[dict(('d%i' % i, i) for i in range(n)) for n in longnames.keys()], # long dicts
# Integers - e.g. JS does not have int64
[0, -1, -2, 1, 2, 42, -1337,
-126, -127, -128, -129, -254, -255, -256, -257, # 8 bit
126, 127, 128, 129, 254, 255, 256, 257,
-32766, -32767, -32768, -32769, -65534, -65535, -65536, -65537, # 16 bit
32766, 32767, 32768, 32769, 65534, 65535, 65536, 65537,
-2147483646, -2147483647, -2147483648, -2147483649, -4294967294, -4294967295, -4294967296, -4294967297, # 32 bit
2147483646, 2147483647, 2147483648, 2147483649, 4294967294, 4294967295, 4294967296, 4294967297,
-9007199254740991, 9007199254740991, # JS Number.MAX_SAFE_INTEGER
],
# Floats
[0.0001, 0.1, 1.1, 100.1, 10000.1]
]
## Run the tests
if __name__ == '__main__':
excludes = ()
if False:
excludes = ['uint8_1d', 'strict_singleton_dims']
this_dir = r'c:\dev\pylib\bsdf\matlab'
sys.argv[1:] = [this_dir, 'octave-cli', '-q', '--eval',
'testservice_runner(\'{fname1}\', \'{fname2}\');']
sys.argv[1:] = [this_dir, 'matlab',
'-nodisplay', '-nosplash', '-nodesktop', '-wait', '-r',
'testservice_runner(\'{fname1}\', \'{fname2}\');exit();',]
# Process CLI arguments
if len(sys.argv) == 1:
print(__doc__)
sys.exit(1)
elif len(sys.argv) < 3:
raise RuntimeError('BSDF test service needs at least two arguments (test_dir, exe, ...)')
test_dir = os.path.abspath(sys.argv[1])
# Call main
main(test_dir, *sys.argv[2:], excludes=excludes)
| [
37811,
198,
1212,
4226,
3769,
257,
2139,
284,
1332,
24218,
8068,
25504,
286,
1180,
198,
75,
33213,
13,
632,
318,
3194,
287,
11361,
11,
1201,
24218,
8068,
338,
4941,
7822,
318,
13,
198,
198,
2514,
779,
11,
1330,
428,
8265,
290,
779,
7559,
12417,
7,
9288,
62,
15908,
11,
1635,
13499,
8,
15506,
13,
383,
1332,
62,
15908,
198,
10594,
307,
262,
1459,
8619,
618,
262,
3141,
318,
10945,
13,
383,
409,
68,
318,
262,
198,
21812,
284,
1057,
11,
543,
815,
7382,
423,
1295,
10476,
329,
7559,
90,
69,
3672,
16,
92,
15506,
198,
392,
7559,
90,
69,
3672,
17,
92,
15506,
13,
383,
7552,
286,
777,
2393,
3891,
9217,
262,
5794,
198,
7,
41745,
33918,
393,
275,
82,
7568,
737,
383,
3141,
481,
3221,
869,
656,
257,
4226,
198,
7,
15266,
287,
257,
3303,
286,
3572,
828,
543,
8833,
7830,
1141,
262,
198,
9288,
13,
198,
198,
44163,
11,
530,
460,
466,
257,
869,
287,
262,
7582,
25,
198,
15506,
29412,
1332,
15271,
13,
9078,
26672,
409,
68,
2644,
15506,
13,
198,
3198,
460,
635,
1057,
428,
4226,
1262,
12972,
9288,
11,
287,
543,
1339,
262,
5254,
389,
1057,
198,
259,
12,
14681,
284,
1249,
15010,
262,
1332,
5197,
13,
220,
198,
198,
37811,
198,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
11,
3601,
62,
8818,
11,
7297,
198,
198,
11748,
28686,
198,
11748,
25064,
198,
11748,
10688,
198,
11748,
640,
198,
11748,
33918,
198,
11748,
4738,
198,
11748,
20218,
7753,
198,
11748,
4704,
278,
198,
11748,
850,
14681,
198,
6738,
33245,
1330,
1280,
220,
1303,
279,
4464,
88,
290,
12972,
1983,
8330,
198,
198,
11748,
4818,
11286,
198,
198,
17597,
13,
6978,
13,
28463,
7,
15,
11,
28686,
13,
6978,
13,
397,
2777,
776,
7,
418,
13,
6978,
13,
22179,
7,
834,
7753,
834,
11,
705,
492,
3256,
705,
492,
3256,
705,
29412,
6,
22305,
198,
11748,
275,
82,
7568,
220,
1303,
262,
1459,
4226,
318,
1306,
284,
428,
8265,
628,
198,
2235,
31122,
198,
198,
4299,
9058,
62,
21412,
7,
21412,
2599,
198,
220,
220,
220,
37227,
770,
3011,
6338,
1444,
416,
12972,
9288,
13,
37227,
198,
220,
220,
220,
3298,
409,
68,
11,
409,
68,
62,
3672,
198,
220,
220,
220,
409,
68,
796,
17635,
198,
220,
220,
220,
409,
68,
62,
3672,
796,
705,
9078,
9288,
6,
628,
198,
4299,
1388,
7,
9288,
62,
15908,
62,
11,
1635,
13499,
62,
11,
36833,
28,
14202,
2599,
198,
220,
220,
220,
37227,
775,
869,
428,
618,
428,
318,
1057,
355,
355,
4226,
13,
37227,
198,
220,
220,
220,
3298,
1332,
62,
15908,
11,
409,
68,
11,
409,
68,
62,
3672,
11,
17490,
198,
220,
220,
220,
220,
198,
220,
220,
220,
36833,
796,
8633,
19510,
68,
11,
6407,
8,
329,
304,
287,
357,
1069,
13955,
393,
17635,
4008,
198,
220,
220,
220,
329,
304,
287,
28686,
13,
1136,
24330,
10786,
4462,
8068,
62,
51,
6465,
62,
6369,
39149,
1546,
3256,
10148,
737,
35312,
7,
41707,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
36833,
58,
68,
13,
36311,
3419,
60,
796,
6407,
198,
220,
220,
220,
1303,
5345,
409,
68,
290,
1332,
62,
15908,
198,
220,
220,
220,
1332,
62,
15908,
796,
1332,
62,
15908,
62,
198,
220,
220,
220,
409,
68,
796,
1351,
7,
13499,
62,
8,
198,
220,
220,
220,
409,
68,
62,
3672,
796,
409,
68,
58,
15,
60,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
9409,
343,
7,
9288,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
43160,
12331,
10786,
3673,
257,
4938,
8619,
25,
4064,
81,
6,
4064,
1332,
62,
15908,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
5660,
5254,
198,
220,
220,
220,
329,
1438,
11,
25439,
287,
1351,
7,
4743,
672,
874,
22446,
23814,
3419,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1438,
13,
9688,
2032,
342,
10786,
9288,
62,
11537,
290,
869,
540,
7,
20786,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
28768,
2139,
1332,
4064,
82,
4064,
82,
705,
4064,
357,
13499,
62,
3672,
11,
1438,
828,
886,
28,
7061,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25439,
7,
1174,
1069,
13955,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
220,
22738,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
220,
23228,
11537,
628,
198,
2235,
5053,
525,
5499,
628,
198,
198,
4299,
26342,
62,
16737,
7,
69,
3672,
16,
11,
277,
3672,
17,
2599,
198,
220,
220,
220,
37227,
10001,
2088,
262,
17490,
287,
257,
649,
1429,
284,
10385,
262,
1366,
13,
37227,
198,
220,
220,
220,
220,
198,
220,
220,
220,
6818,
28686,
13,
6978,
13,
4468,
576,
7,
69,
3672,
16,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
409,
68,
62,
3672,
6624,
705,
9078,
9288,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
10073,
8968,
284,
1332,
351,
12972,
9288,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
3440,
7,
69,
3672,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3613,
7,
69,
3672,
17,
11,
1366,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
14435,
850,
12,
14681,
4069,
198,
220,
220,
220,
220,
220,
220,
220,
409,
68,
17,
796,
685,
68,
13,
18982,
7,
69,
3672,
16,
28,
69,
3672,
16,
11,
277,
3672,
17,
28,
69,
3672,
17,
8,
329,
304,
287,
409,
68,
60,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
850,
14681,
13,
47,
9654,
7,
13499,
17,
11,
269,
16993,
28,
9288,
62,
15908,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14367,
448,
28,
7266,
14681,
13,
47,
4061,
36,
11,
336,
1082,
81,
28,
7266,
14681,
13,
47,
4061,
36,
8,
198,
220,
220,
220,
220,
220,
220,
220,
503,
11,
11454,
796,
279,
13,
10709,
5344,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
503,
796,
503,
13,
12501,
1098,
7,
48277,
2625,
33491,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
11454,
796,
705,
59,
77,
4458,
22179,
26933,
1370,
329,
1627,
287,
11454,
13,
12501,
1098,
7,
48277,
2625,
33491,
11074,
35312,
6615,
3419,
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,
611,
407,
19203,
1443,
7568,
6509,
32105,
287,
1627,
13,
21037,
3419,
393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
43917,
25,
275,
82,
7568,
32105,
287,
1627,
13,
21037,
28955,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
611,
279,
13,
7783,
8189,
14512,
657,
393,
11454,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
36265,
62,
292,
62,
18224,
7,
69,
3672,
16,
11,
277,
3672,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
43160,
20361,
10786,
90,
92,
4054,
7479,
77,
90,
32239,
77,
90,
92,
4458,
18982,
7,
13499,
62,
3672,
11,
503,
11,
11454,
4008,
198,
220,
220,
220,
220,
198,
220,
220,
220,
6818,
28686,
13,
6978,
13,
4468,
576,
7,
69,
3672,
17,
8,
628,
198,
4299,
8996,
62,
7890,
7,
7890,
16,
11,
1366,
17,
2599,
198,
220,
220,
220,
37227,
27814,
262,
1366,
11,
5298,
4049,
611,
340,
10143,
13,
37227,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
6674,
356,
460,
466,
428,
3049,
2644,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1366,
16,
6624,
1366,
17,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
198,
220,
220,
220,
2845,
35528,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
15323,
11,
15647,
287,
198,
220,
220,
220,
2769,
62,
5589,
533,
7,
7890,
16,
11,
1366,
17,
8,
628,
198,
4299,
2769,
62,
5589,
533,
7,
672,
16,
11,
909,
17,
11,
12429,
1069,
13955,
2599,
198,
220,
220,
220,
37227,
27814,
734,
5563,
7744,
284,
4439,
517,
4465,
29965,
13,
37227,
198,
220,
220,
220,
220,
198,
220,
220,
220,
45941,
796,
6045,
198,
220,
220,
220,
611,
705,
358,
18747,
6,
407,
287,
36833,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1330,
299,
32152,
355,
45941,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
318,
39098,
7,
672,
16,
11,
12178,
8,
290,
10688,
13,
271,
12647,
7,
672,
16,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
10688,
13,
271,
12647,
7,
672,
17,
828,
705,
505,
2134,
318,
15709,
11,
262,
584,
318,
23884,
4458,
18982,
7,
672,
17,
8,
198,
220,
220,
220,
1288,
361,
45941,
290,
318,
39098,
7,
672,
16,
11,
45941,
13,
358,
18747,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
705,
301,
2012,
62,
12215,
10565,
62,
67,
12078,
6,
287,
36833,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
672,
16,
13,
43358,
6624,
909,
17,
13,
43358,
393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14808,
16,
11,
1267,
1343,
909,
16,
13,
43358,
8,
6624,
909,
17,
13,
43358,
393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
909,
16,
13,
43358,
6624,
357,
672,
17,
13,
43358,
1343,
357,
16,
11,
47282,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
909,
16,
13,
43358,
796,
909,
17,
13,
43358,
220,
1303,
284,
7139,
1774,
1988,
12,
785,
1845,
1653,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
909,
16,
13,
43358,
6624,
909,
17,
13,
43358,
11,
705,
3258,
592,
5485,
46318,
25,
23884,
3691,
23884,
4458,
18982,
7,
672,
16,
13,
43358,
11,
909,
17,
13,
43358,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
672,
16,
13,
7857,
6624,
909,
17,
13,
7857,
6624,
657,
8,
393,
45941,
13,
439,
7,
672,
16,
6624,
909,
17,
828,
705,
3258,
592,
37334,
6,
198,
220,
220,
220,
1288,
361,
318,
39098,
7,
672,
16,
11,
1351,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2099,
7,
672,
16,
8,
318,
2099,
7,
672,
17,
828,
705,
4906,
46318,
7479,
77,
90,
32239,
77,
14259,
59,
77,
90,
92,
4458,
18982,
7,
672,
16,
11,
909,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
18896,
7,
672,
16,
8,
6624,
18896,
7,
672,
17,
828,
705,
4868,
10620,
17666,
2872,
7479,
77,
90,
32239,
77,
14259,
59,
77,
90,
92,
4458,
18982,
7,
672,
16,
11,
909,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
850,
16,
11,
850,
17,
287,
19974,
7,
672,
16,
11,
909,
17,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2769,
62,
5589,
533,
7,
7266,
16,
11,
850,
17,
11,
12429,
1069,
13955,
8,
198,
220,
220,
220,
1288,
361,
318,
39098,
7,
672,
16,
11,
8633,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
672,
16,
8,
1875,
657,
290,
18896,
7,
4868,
7,
672,
16,
13,
13083,
28955,
58,
15,
12962,
1875,
8093,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3966,
14397,
6550,
23912,
11,
40122,
378,
8251,
11,
780,
6550,
23912,
857,
326,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
287,
1351,
7,
672,
16,
13,
13083,
3419,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
909,
16,
58,
2539,
58,
25,
5066,
11907,
796,
909,
16,
58,
2539,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1619,
909,
16,
58,
2539,
60,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2099,
7,
672,
16,
8,
318,
2099,
7,
672,
17,
828,
705,
4906,
46318,
7479,
77,
90,
32239,
77,
14259,
59,
77,
90,
92,
4458,
18982,
7,
672,
16,
11,
909,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
18896,
7,
672,
16,
8,
6624,
18896,
7,
672,
17,
828,
705,
11600,
10620,
17666,
2872,
7479,
77,
90,
32239,
77,
14259,
59,
77,
90,
92,
4458,
18982,
7,
672,
16,
11,
909,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
16,
287,
909,
16,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
1994,
16,
287,
909,
17,
11,
220,
705,
11600,
1994,
407,
1944,
287,
8633,
17,
7479,
77,
90,
32239,
77,
14259,
59,
77,
90,
92,
4458,
18982,
7,
2539,
16,
11,
909,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
17,
287,
909,
17,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
1994,
17,
287,
909,
16,
11,
220,
705,
11600,
1994,
407,
1944,
287,
8633,
16,
7479,
77,
90,
32239,
77,
14259,
59,
77,
90,
92,
4458,
18982,
7,
2539,
17,
11,
909,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
287,
909,
16,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2769,
62,
5589,
533,
7,
672,
16,
58,
2539,
4357,
909,
17,
58,
2539,
4357,
12429,
1069,
13955,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
909,
16,
6624,
909,
17,
11,
705,
40161,
466,
407,
2872,
7479,
77,
90,
32239,
77,
14259,
59,
77,
90,
92,
4458,
18982,
7,
672,
16,
11,
909,
17,
8,
628,
198,
4299,
10385,
62,
7890,
7,
69,
3672,
16,
11,
277,
3672,
17,
11,
1366,
16,
2599,
198,
220,
220,
220,
37227,
38240,
1366,
11,
416,
8914,
284,
277,
3672,
11,
39744,
262,
17490,
11,
290,
3555,
736,
13,
198,
220,
220,
220,
1002,
1223,
2925,
2642,
11,
262,
3696,
389,
7448,
355,
4049,
13,
5324,
11,
584,
86,
5847,
262,
3696,
198,
220,
220,
220,
389,
20750,
510,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3613,
7,
69,
3672,
16,
11,
1366,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
26342,
62,
16737,
7,
69,
3672,
16,
11,
277,
3672,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
17,
796,
3440,
7,
69,
3672,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1366,
17,
198,
220,
220,
220,
2845,
35528,
25,
198,
220,
220,
220,
220,
220,
220,
220,
36265,
62,
292,
62,
18224,
7,
69,
3672,
16,
11,
277,
3672,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
7890,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
198,
220,
220,
220,
3443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4781,
7,
69,
3672,
16,
11,
277,
3672,
17,
8,
198,
198,
4299,
3440,
7,
69,
3672,
2599,
198,
220,
220,
220,
37227,
8778,
422,
33918,
393,
275,
82,
7568,
11,
6906,
319,
262,
7552,
13,
37227,
198,
220,
220,
220,
611,
277,
3672,
13,
437,
2032,
342,
7,
4458,
17752,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
69,
3672,
11,
705,
17034,
3256,
21004,
11639,
40477,
12,
23,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
33918,
13,
2220,
7,
69,
8,
198,
220,
220,
220,
1288,
361,
277,
3672,
13,
437,
2032,
342,
7,
4458,
1443,
7568,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
275,
82,
7568,
13,
2220,
7,
69,
3672,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
10352,
628,
198,
4299,
3613,
7,
69,
3672,
11,
1366,
2599,
198,
220,
220,
220,
37227,
12793,
284,
33918,
393,
275,
82,
7568,
11,
6906,
319,
262,
7552,
13,
37227,
198,
220,
220,
220,
611,
277,
3672,
13,
437,
2032,
342,
7,
4458,
17752,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
69,
3672,
11,
705,
46569,
3256,
21004,
11639,
40477,
12,
23,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33918,
13,
39455,
7,
7890,
11,
277,
11,
4155,
62,
292,
979,
72,
28,
25101,
8,
198,
220,
220,
220,
1288,
361,
277,
3672,
13,
437,
2032,
342,
7,
4458,
1443,
7568,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
275,
82,
7568,
13,
21928,
7,
69,
3672,
11,
1366,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
10352,
198,
198,
62,
29510,
7753,
24588,
796,
657,
198,
198,
4299,
651,
62,
10379,
268,
1047,
7,
2302,
16,
11,
1070,
17,
2599,
198,
220,
220,
220,
37227,
3497,
3381,
5551,
2393,
3891,
13,
37227,
198,
220,
220,
220,
3298,
4808,
29510,
7753,
24588,
198,
220,
220,
220,
288,
796,
28686,
13,
6978,
13,
22179,
7,
29510,
7753,
13,
1136,
29510,
15908,
22784,
705,
1443,
7568,
62,
41989,
11537,
198,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
67,
11,
2152,
62,
482,
28,
17821,
8,
198,
220,
220,
220,
277,
3672,
16,
796,
705,
15271,
62,
9288,
23330,
92,
23330,
92,
23330,
92,
4458,
18982,
7,
418,
13,
1136,
35317,
22784,
4704,
278,
13,
1136,
62,
738,
22784,
4808,
29510,
7753,
24588,
1343,
352,
8,
198,
220,
220,
220,
277,
3672,
17,
796,
705,
15271,
62,
9288,
23330,
92,
23330,
92,
23330,
92,
4458,
18982,
7,
418,
13,
1136,
35317,
22784,
4704,
278,
13,
1136,
62,
738,
22784,
4808,
29510,
7753,
24588,
1343,
362,
8,
198,
220,
220,
220,
4808,
29510,
7753,
24588,
15853,
362,
198,
220,
220,
220,
1441,
28686,
13,
6978,
13,
22179,
7,
67,
11,
277,
3672,
16,
1343,
1070,
16,
828,
28686,
13,
6978,
13,
22179,
7,
67,
11,
277,
3672,
17,
1343,
1070,
17,
8,
628,
198,
4299,
36265,
62,
292,
62,
18224,
46491,
10379,
268,
1047,
2599,
198,
220,
220,
220,
37227,
7152,
480,
3696,
284,
4049,
13,
5324,
13,
37227,
198,
220,
220,
220,
329,
277,
3672,
287,
1226,
268,
1047,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
33491,
7,
69,
3672,
11,
28686,
13,
6978,
13,
15908,
3672,
7,
69,
3672,
8,
1343,
31051,
18224,
2637,
1343,
277,
3672,
13,
3808,
489,
270,
10786,
2637,
38381,
12,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
198,
4299,
4781,
46491,
10379,
268,
1047,
2599,
198,
220,
220,
220,
37227,
17220,
3294,
1226,
268,
1047,
13,
37227,
198,
220,
220,
220,
329,
277,
3672,
287,
1226,
268,
1047,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
28956,
7,
69,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
198,
2235,
383,
5254,
198,
198,
6511,
14933,
796,
23884,
198,
1640,
299,
287,
357,
21626,
11,
8646,
11,
34489,
11,
25264,
11,
32056,
11,
35360,
11,
14280,
11,
17759,
11,
37831,
2599,
198,
220,
220,
220,
1438,
796,
19203,
87,
4,
72,
62,
6,
4064,
299,
8,
1343,
705,
87,
6,
1635,
357,
77,
12,
20,
8,
198,
220,
220,
220,
6818,
18896,
7,
3672,
8,
6624,
299,
198,
220,
220,
220,
890,
14933,
58,
77,
60,
796,
1438,
628,
198,
40386,
62,
17534,
62,
9864,
41,
2943,
4694,
796,
685,
198,
220,
220,
220,
1303,
45884,
198,
220,
220,
220,
685,
16,
11,
17,
11,
18,
11,
604,
13,
17,
11,
642,
13,
21,
11,
718,
13,
8298,
4357,
198,
220,
220,
220,
8633,
7,
21943,
28,
22,
13,
17,
11,
2318,
28,
3682,
11,
257,
28,
25101,
828,
198,
220,
220,
220,
14631,
31373,
1600,
513,
11,
6045,
11,
6407,
11,
705,
8117,
3256,
705,
87,
6,
4357,
198,
220,
220,
220,
1391,
6,
21943,
2318,
10354,
767,
11,
705,
16327,
26391,
10354,
807,
5512,
220,
1303,
8633,
8251,
466,
407,
423,
284,
307,
42814,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
5573,
1616,
684,
532,
3465,
326,
617,
357,
68,
13,
70,
13,
6550,
23912,
338,
8,
33918,
25504,
423,
5876,
1719,
198,
220,
220,
220,
1303,
1997,
2073,
621,
1351,
14,
11600,
355,
6808,
5002,
11,
290,
351,
6565,
8633,
82,
14,
7249,
82,
13,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
2773,
46282,
198,
220,
220,
220,
685,
18,
13,
17,
11,
1391,
6,
21943,
10354,
513,
11,
705,
5657,
10354,
685,
16,
11,
362,
11,
685,
18,
11,
1391,
6,
87,
10354,
6,
88,
6,
92,
11907,
5512,
685,
16,
11,
685,
17,
11,
16410,
58,
14202,
4357,
604,
13,
24,
4357,
1391,
6,
2777,
321,
10354,
705,
33856,
82,
6,
92,
11907,
4357,
10352,
11,
6407,
4357,
198,
220,
220,
220,
16410,
30109,
30109,
30109,
58,
3682,
11907,
11907,
11907,
11907,
4357,
198,
220,
220,
220,
8633,
7,
87,
28,
11600,
7,
87,
28,
11600,
7,
87,
28,
11600,
7,
87,
28,
11600,
7,
87,
28,
11600,
7,
87,
28,
11600,
7,
87,
28,
11600,
7,
87,
28,
11600,
7,
87,
28,
11600,
7,
87,
28,
11600,
7,
87,
28,
11600,
7,
87,
28,
3682,
35514,
35514,
22305,
828,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
34371,
198,
220,
220,
220,
8633,
7,
21943,
11639,
69,
10205,
10205,
3256,
2318,
11639,
26391,
1120,
8,
3256,
517,
11639,
59,
29653,
90,
92,
3,
33809,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
26632,
351,
257,
4129,
1474,
262,
8646,
18645,
198,
220,
220,
220,
685,
3672,
329,
1438,
287,
890,
14933,
13,
27160,
3419,
4357,
220,
1303,
890,
13042,
198,
220,
220,
220,
1303,
685,
3672,
13,
268,
8189,
3419,
329,
1438,
287,
890,
14933,
13,
27160,
3419,
4357,
220,
1303,
890,
9881,
357,
1662,
33918,
540,
8,
198,
220,
220,
220,
8633,
19510,
2100,
11,
1994,
8,
329,
1994,
11,
1188,
287,
890,
14933,
13,
23814,
3419,
828,
220,
1303,
890,
8251,
198,
220,
220,
220,
8633,
7,
10786,
43,
4,
72,
6,
4064,
299,
11,
685,
77,
60,
1635,
299,
8,
329,
299,
287,
890,
14933,
13,
13083,
3419,
828,
220,
1303,
890,
8341,
198,
220,
220,
220,
685,
11600,
7,
10786,
67,
4,
72,
6,
4064,
1312,
11,
1312,
8,
329,
1312,
287,
2837,
7,
77,
4008,
329,
299,
287,
890,
14933,
13,
13083,
3419,
4357,
220,
1303,
890,
8633,
82,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
15995,
364,
532,
304,
13,
70,
13,
26755,
857,
407,
423,
493,
2414,
198,
220,
220,
220,
685,
15,
11,
532,
16,
11,
532,
17,
11,
352,
11,
362,
11,
5433,
11,
532,
1485,
2718,
11,
198,
220,
220,
220,
220,
532,
19420,
11,
532,
16799,
11,
532,
12762,
11,
532,
18741,
11,
532,
24970,
11,
532,
13381,
11,
532,
11645,
11,
532,
28676,
11,
220,
1303,
807,
1643,
198,
220,
220,
220,
220,
220,
19710,
11,
220,
18112,
11,
220,
13108,
11,
220,
20248,
11,
220,
35360,
11,
220,
14280,
11,
220,
17759,
11,
220,
36100,
11,
198,
220,
220,
220,
220,
532,
34159,
2791,
11,
532,
34159,
3134,
11,
532,
34159,
3104,
11,
532,
34159,
3388,
11,
532,
35916,
2682,
11,
532,
35916,
2327,
11,
532,
35916,
2623,
11,
532,
35916,
2718,
11,
220,
1303,
1467,
1643,
198,
220,
220,
220,
220,
220,
36203,
2791,
11,
220,
36203,
3134,
11,
220,
36203,
3104,
11,
220,
36203,
3388,
11,
220,
45021,
2682,
11,
220,
45021,
2327,
11,
220,
45021,
2623,
11,
220,
45021,
2718,
11,
198,
220,
220,
220,
220,
532,
17,
20198,
2780,
26780,
21,
11,
532,
17,
20198,
2780,
26780,
22,
11,
532,
17,
20198,
2780,
26780,
23,
11,
532,
17,
20198,
2780,
26780,
24,
11,
532,
11785,
2920,
3134,
27696,
11,
532,
11785,
2920,
3134,
25710,
11,
532,
11785,
2920,
3134,
27137,
11,
532,
11785,
2920,
3134,
26561,
11,
220,
1303,
3933,
1643,
198,
220,
220,
220,
220,
220,
362,
20198,
2780,
26780,
21,
11,
220,
362,
20198,
2780,
26780,
22,
11,
220,
362,
20198,
2780,
26780,
23,
11,
220,
362,
20198,
2780,
26780,
24,
11,
220,
42313,
2920,
3134,
27696,
11,
220,
42313,
2920,
3134,
25710,
11,
220,
42313,
2920,
3134,
27137,
11,
220,
42313,
2920,
3134,
26561,
11,
198,
220,
220,
220,
220,
532,
12865,
22,
19104,
1495,
2857,
1821,
2079,
16,
11,
15897,
22,
19104,
1495,
2857,
1821,
2079,
16,
11,
220,
1303,
26755,
7913,
13,
22921,
62,
4090,
15112,
62,
12394,
7156,
1137,
198,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
29075,
1381,
198,
220,
220,
220,
685,
15,
13,
18005,
11,
657,
13,
16,
11,
352,
13,
16,
11,
1802,
13,
16,
11,
33028,
13,
16,
60,
198,
60,
628,
628,
628,
198,
198,
2235,
5660,
262,
5254,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
220,
198,
220,
220,
220,
36833,
796,
7499,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
10352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
36833,
796,
37250,
28611,
23,
62,
16,
67,
3256,
705,
301,
2012,
62,
12215,
10565,
62,
67,
12078,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
428,
62,
15908,
796,
374,
6,
66,
7479,
7959,
59,
79,
2645,
571,
59,
1443,
7568,
59,
6759,
23912,
6,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
853,
85,
58,
16,
47715,
796,
685,
5661,
62,
15908,
11,
705,
38441,
1015,
12,
44506,
3256,
705,
12,
80,
3256,
705,
438,
18206,
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,
705,
9288,
15271,
62,
16737,
38016,
6,
90,
69,
3672,
16,
32239,
3256,
34373,
90,
69,
3672,
17,
32239,
24036,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
853,
85,
58,
16,
47715,
796,
685,
5661,
62,
15908,
11,
705,
6759,
23912,
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,
705,
12,
77,
375,
271,
1759,
3256,
705,
12,
39369,
489,
1077,
3256,
705,
12,
77,
4147,
16201,
3256,
705,
12,
17077,
3256,
705,
12,
81,
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,
705,
9288,
15271,
62,
16737,
38016,
6,
90,
69,
3672,
16,
32239,
3256,
34373,
90,
69,
3672,
17,
32239,
24036,
37023,
9783,
3256,
60,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
10854,
43749,
7159,
198,
220,
220,
220,
611,
18896,
7,
17597,
13,
853,
85,
8,
6624,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
834,
15390,
834,
8,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
7,
16,
8,
198,
220,
220,
220,
1288,
361,
18896,
7,
17597,
13,
853,
85,
8,
1279,
513,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
43160,
12331,
10786,
4462,
8068,
1332,
2139,
2476,
379,
1551,
734,
7159,
357,
9288,
62,
15908,
11,
409,
68,
11,
2644,
8,
11537,
198,
220,
220,
220,
1332,
62,
15908,
796,
28686,
13,
6978,
13,
397,
2777,
776,
7,
17597,
13,
853,
85,
58,
16,
12962,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
4889,
1388,
198,
220,
220,
220,
1388,
7,
9288,
62,
15908,
11,
1635,
17597,
13,
853,
85,
58,
17,
25,
4357,
36833,
28,
1069,
13955,
8,
198
] | 2.195304 | 4,813 |
from aws_cdk import (
core,
aws_codebuild as codebuild,
aws_codecommit as codecommit,
aws_codepipeline as codepipeline,
aws_codepipeline_actions as codepipeline_actions,
aws_events as events,
aws_events_targets as targets,
aws_iam as iam,
aws_s3 as s3,
)
class DeployPipelineConstruct(core.Construct):
"""
Deploy pipeline construct
"""
| [
6738,
3253,
82,
62,
10210,
74,
1330,
357,
198,
220,
220,
220,
4755,
11,
198,
220,
220,
220,
3253,
82,
62,
8189,
11249,
355,
2438,
11249,
11,
198,
220,
220,
220,
3253,
82,
62,
19815,
721,
2002,
270,
355,
40481,
2002,
270,
11,
198,
220,
220,
220,
3253,
82,
62,
19815,
538,
541,
4470,
355,
14873,
538,
541,
4470,
11,
198,
220,
220,
220,
3253,
82,
62,
19815,
538,
541,
4470,
62,
4658,
355,
14873,
538,
541,
4470,
62,
4658,
11,
198,
220,
220,
220,
3253,
82,
62,
31534,
355,
2995,
11,
198,
220,
220,
220,
3253,
82,
62,
31534,
62,
83,
853,
1039,
355,
6670,
11,
198,
220,
220,
220,
3253,
82,
62,
1789,
355,
1312,
321,
11,
198,
220,
220,
220,
3253,
82,
62,
82,
18,
355,
264,
18,
11,
198,
8,
628,
198,
4871,
34706,
47,
541,
4470,
42316,
7,
7295,
13,
42316,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
34706,
11523,
5678,
198,
220,
220,
220,
37227,
198
] | 2.339394 | 165 |
__author__ = "Thomas Spycher, Philipp Spinnler"
__copyright__ = "Copyright 2013, Zerodine GmbH (zerodine.com) "
__credits__ = ["Thomas Spycher", "Philipp Spinnler"]
__license__ = "Apache-2.0"
__maintainer__ = "Thomas Spycher"
__email__ = "[email protected]"
__status__ = "Development"
import tornado.template
from basecontroller import BaseController
from krypton.hkpserver.libs.gpgjsonparser import MrParser
# TODO: add X-HKP-Results-Count: 8 header to requests
class LookupController(BaseController):
"""
"""
options = []
machineReadable = False
noModification = False
fingerprint = False
hash = False
exact = False
searchHex = False
searchString = None
@staticmethod
def routes(prefix="", applicationContext=None):
"""
:param prefix:
:param applicationContext:
:return:
"""
return r"%s/lookup(.*)" % prefix, LookupController, dict(applicationContext=applicationContext)
def get(self, *args, **kwargs):
"""
:param args:
:param kwargs:
"""
# Parsing Options
self.options = str(self.get_argument("options", default=None, strip=False)).lower().split(",")
self._parseOptions()
# Parsing Fingerprint and Exact
self._parseOtherOptions(
fingerprint=self.get_argument("fingerprint", default="off", strip=False),
exact=self.get_argument("exact", default="off", strip=False),
hash=self.get_argument("hash", default="off", strip=False))
# Parsing Search
searchData = self._parseSearch(self.get_argument("search", default="", strip=False))
self.searchHex = searchData["searchHex"]
self.searchString = searchData["searchString"]
# Parsing Operation and run it
op = self.get_argument("op", default="index", strip=False)
getattr(self, "op_%s" % str(op).lower())(**kwargs)
# noinspection PyShadowingBuiltins
def _parseOtherOptions(self, fingerprint, exact, hash):
"""
:param fingerprint:
:param exact:
"""
on = "on"
if on in str(fingerprint).lower():
self.fingerprint = True
if on in str(exact).lower():
self.exact = True
if on in str(hash).lower():
self.hash = True
def _parseOptions(self):
"""
Parses given options in &options=x,y...
"""
if "mr" in self.options:
self.machineReadable = True
if "nm" in self.options:
self.noModification = True
def op_index(self, verbose=False):
"""
:param verbose:
:return:
"""
data = self._getData()
if self.machineReadable:
self.set_header("Content-Type", "text/plain")
mr = MrParser(data)
self.write(mr.parse())
return
loader = tornado.template.Loader(self.buildPath("hkpserver/views"))
template = "gpgindex.template.html"
if verbose:
template = "gpgvindex.template.html"
# Get ID's of foreign keys
for dat in data:
if "foreignKeys" in dat:
dat["foreignKeys_names"] = {}
for x in dat["foreignKeys"]:
dat["foreignKeys_names"][x] = self.gpgModel.getKeyPrimaryUid(x)
dat["foreignKeys_names"][dat["key_id"]] = "[selfsig]"
self.finish(loader.load(template).generate(
current="Lookup",
gpgkeys=data,
showFingerprint=self.fingerprint,
showHash=self.hash,
searchString=self.searchString))
def op_vindex(self):
"""
:return:
"""
if self.machineReadable:
self.op_index()
return
self.op_index(verbose=True)
return
def _getData(self):
"""
:return:
"""
self.gpgModel.connect(db=self.config.mongoDatabase)
if self.searchHex:
return self.gpgModel.searchKeyId(keyId=self.searchString, exact=self.exact)
return self.gpgModel.searchKey(searchString=self.searchString, exact=self.exact)
def op_get(self):
"""
:return:
"""
key = None
self.gpgModel.connect(db=self.config.mongoDatabase)
if self.searchHex:
key = self.gpgModel.retrieveKey(keyId=self.searchString)
if self.machineReadable:
self.set_header("Content-Type", "application/pgp-keys")
self.finish(key)
return
loader = tornado.template.Loader(self.buildPath("hkpserver/views"))
self.finish(loader.load("gpgkey.template.html").generate(
current="Get",
fingerprint=self.searchString.upper(),
key=key
))
def op_hget(self):
"""
:return:
"""
self.gpgModel.connect(db=self.config.mongoDatabase)
key = self.gpgModel.retrieveKey(hash=self.searchString)
if self.machineReadable:
self.set_header("Content-Type", "application/pgp-keys")
self.finish(key)
return
loader = tornado.template.Loader(self.buildPath("hkpserver/views"))
self.finish(loader.load("gpgkey.template.html").generate(
current="Get Hash",
fingerprint=self.searchString.upper(),
key=key
)) | [
834,
9800,
834,
796,
366,
22405,
23688,
2044,
11,
9844,
1338,
3732,
1754,
1,
198,
834,
22163,
4766,
834,
796,
366,
15269,
2211,
11,
37028,
375,
500,
402,
2022,
39,
357,
9107,
375,
500,
13,
785,
8,
366,
198,
834,
66,
20696,
834,
796,
14631,
22405,
23688,
2044,
1600,
366,
49680,
1338,
3732,
1754,
8973,
198,
834,
43085,
834,
796,
366,
25189,
4891,
12,
17,
13,
15,
1,
198,
834,
76,
2913,
10613,
834,
796,
366,
22405,
23688,
2044,
1,
198,
834,
12888,
834,
796,
366,
1326,
31,
912,
9078,
2044,
13,
785,
1,
198,
834,
13376,
834,
796,
366,
41206,
1,
198,
198,
11748,
33718,
13,
28243,
198,
198,
6738,
2779,
36500,
1330,
7308,
22130,
198,
6738,
479,
6012,
261,
13,
71,
74,
862,
18497,
13,
8019,
82,
13,
70,
6024,
17752,
48610,
1330,
1770,
46677,
628,
198,
2,
16926,
46,
25,
751,
1395,
12,
38730,
47,
12,
25468,
12,
12332,
25,
807,
13639,
284,
7007,
198,
4871,
6803,
929,
22130,
7,
14881,
22130,
2599,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
37227,
628,
220,
220,
220,
3689,
796,
17635,
198,
220,
220,
220,
4572,
5569,
540,
796,
10352,
198,
220,
220,
220,
645,
5841,
2649,
796,
10352,
198,
220,
220,
220,
25338,
796,
10352,
198,
220,
220,
220,
12234,
796,
10352,
198,
220,
220,
220,
2748,
796,
10352,
628,
220,
220,
220,
2989,
39,
1069,
796,
10352,
198,
220,
220,
220,
2989,
10100,
796,
6045,
628,
220,
220,
220,
2488,
12708,
24396,
198,
220,
220,
220,
825,
11926,
7,
40290,
2625,
1600,
3586,
21947,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
21231,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3586,
21947,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
374,
1,
4,
82,
14,
5460,
929,
7,
15885,
16725,
4064,
21231,
11,
6803,
929,
22130,
11,
8633,
7,
31438,
21947,
28,
31438,
21947,
8,
628,
220,
220,
220,
825,
651,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
26498,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
479,
86,
22046,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
23042,
278,
18634,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
796,
965,
7,
944,
13,
1136,
62,
49140,
7203,
25811,
1600,
4277,
28,
14202,
11,
10283,
28,
25101,
29720,
21037,
22446,
35312,
7,
2430,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
29572,
29046,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
23042,
278,
39454,
4798,
290,
1475,
529,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
29572,
6395,
29046,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25338,
28,
944,
13,
1136,
62,
49140,
7203,
35461,
4798,
1600,
4277,
2625,
2364,
1600,
10283,
28,
25101,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2748,
28,
944,
13,
1136,
62,
49140,
7203,
1069,
529,
1600,
4277,
2625,
2364,
1600,
10283,
28,
25101,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12234,
28,
944,
13,
1136,
62,
49140,
7203,
17831,
1600,
4277,
2625,
2364,
1600,
10283,
28,
25101,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
23042,
278,
11140,
198,
220,
220,
220,
220,
220,
220,
220,
2989,
6601,
796,
2116,
13557,
29572,
18243,
7,
944,
13,
1136,
62,
49140,
7203,
12947,
1600,
4277,
2625,
1600,
10283,
28,
25101,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12947,
39,
1069,
796,
2989,
6601,
14692,
12947,
39,
1069,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12947,
10100,
796,
2989,
6601,
14692,
12947,
10100,
8973,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
23042,
278,
14680,
290,
1057,
340,
198,
220,
220,
220,
220,
220,
220,
220,
1034,
796,
2116,
13,
1136,
62,
49140,
7203,
404,
1600,
4277,
2625,
9630,
1600,
10283,
28,
25101,
8,
198,
220,
220,
220,
220,
220,
220,
220,
651,
35226,
7,
944,
11,
366,
404,
62,
4,
82,
1,
4064,
965,
7,
404,
737,
21037,
3419,
5769,
1174,
46265,
22046,
8,
628,
220,
220,
220,
1303,
645,
1040,
14978,
9485,
27447,
278,
39582,
1040,
198,
220,
220,
220,
825,
4808,
29572,
6395,
29046,
7,
944,
11,
25338,
11,
2748,
11,
12234,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
25338,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2748,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
319,
796,
366,
261,
1,
198,
220,
220,
220,
220,
220,
220,
220,
611,
319,
287,
965,
7,
35461,
4798,
737,
21037,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
35461,
4798,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
611,
319,
287,
965,
7,
1069,
529,
737,
21037,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1069,
529,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
611,
319,
287,
965,
7,
17831,
737,
21037,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
17831,
796,
6407,
628,
220,
220,
220,
825,
4808,
29572,
29046,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
23042,
274,
1813,
3689,
287,
1222,
25811,
28,
87,
11,
88,
986,
628,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
366,
43395,
1,
287,
2116,
13,
25811,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30243,
5569,
540,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
611,
366,
21533,
1,
287,
2116,
13,
25811,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3919,
5841,
2649,
796,
6407,
628,
220,
220,
220,
825,
1034,
62,
9630,
7,
944,
11,
15942,
577,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
15942,
577,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
2116,
13557,
1136,
6601,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
30243,
5569,
540,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
25677,
7203,
19746,
12,
6030,
1600,
366,
5239,
14,
25638,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
81,
796,
1770,
46677,
7,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
13564,
7,
43395,
13,
29572,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
40213,
796,
33718,
13,
28243,
13,
17401,
7,
944,
13,
11249,
15235,
7203,
71,
74,
862,
18497,
14,
33571,
48774,
628,
220,
220,
220,
220,
220,
220,
220,
11055,
796,
366,
70,
6024,
9630,
13,
28243,
13,
6494,
1,
198,
220,
220,
220,
220,
220,
220,
220,
611,
15942,
577,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11055,
796,
366,
70,
6024,
85,
9630,
13,
28243,
13,
6494,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3497,
4522,
338,
286,
3215,
8251,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
4818,
287,
1366,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
366,
38823,
40729,
1,
287,
4818,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4818,
14692,
38823,
40729,
62,
14933,
8973,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2124,
287,
4818,
14692,
38823,
40729,
1,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4818,
14692,
38823,
40729,
62,
14933,
1,
7131,
87,
60,
796,
2116,
13,
70,
6024,
17633,
13,
1136,
9218,
35170,
52,
312,
7,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4818,
14692,
38823,
40729,
62,
14933,
1,
7131,
19608,
14692,
2539,
62,
312,
8973,
60,
796,
12878,
944,
82,
328,
30866,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15643,
680,
7,
29356,
13,
2220,
7,
28243,
737,
8612,
378,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1459,
2625,
8567,
929,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
6024,
13083,
28,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
905,
37,
3889,
4798,
28,
944,
13,
35461,
4798,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
905,
26257,
28,
944,
13,
17831,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2989,
10100,
28,
944,
13,
12947,
10100,
4008,
628,
220,
220,
220,
825,
1034,
62,
85,
9630,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
30243,
5569,
540,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
404,
62,
9630,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
404,
62,
9630,
7,
19011,
577,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
825,
4808,
1136,
6601,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
70,
6024,
17633,
13,
8443,
7,
9945,
28,
944,
13,
11250,
13,
76,
25162,
38105,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
12947,
39,
1069,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
70,
6024,
17633,
13,
12947,
9218,
7390,
7,
2539,
7390,
28,
944,
13,
12947,
10100,
11,
2748,
28,
944,
13,
1069,
529,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
70,
6024,
17633,
13,
12947,
9218,
7,
12947,
10100,
28,
944,
13,
12947,
10100,
11,
2748,
28,
944,
13,
1069,
529,
8,
628,
220,
220,
220,
825,
1034,
62,
1136,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
70,
6024,
17633,
13,
8443,
7,
9945,
28,
944,
13,
11250,
13,
76,
25162,
38105,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
12947,
39,
1069,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
2116,
13,
70,
6024,
17633,
13,
1186,
30227,
9218,
7,
2539,
7390,
28,
944,
13,
12947,
10100,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
30243,
5569,
540,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
25677,
7203,
19746,
12,
6030,
1600,
366,
31438,
14,
6024,
79,
12,
13083,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15643,
680,
7,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
198,
220,
220,
220,
220,
220,
220,
220,
40213,
796,
33718,
13,
28243,
13,
17401,
7,
944,
13,
11249,
15235,
7203,
71,
74,
862,
18497,
14,
33571,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15643,
680,
7,
29356,
13,
2220,
7203,
70,
6024,
2539,
13,
28243,
13,
6494,
11074,
8612,
378,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1459,
2625,
3855,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25338,
28,
944,
13,
12947,
10100,
13,
45828,
22784,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
28,
2539,
198,
220,
220,
220,
220,
220,
220,
220,
15306,
628,
220,
220,
220,
825,
1034,
62,
71,
1136,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
70,
6024,
17633,
13,
8443,
7,
9945,
28,
944,
13,
11250,
13,
76,
25162,
38105,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
2116,
13,
70,
6024,
17633,
13,
1186,
30227,
9218,
7,
17831,
28,
944,
13,
12947,
10100,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
30243,
5569,
540,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
25677,
7203,
19746,
12,
6030,
1600,
366,
31438,
14,
6024,
79,
12,
13083,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15643,
680,
7,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
198,
220,
220,
220,
220,
220,
220,
220,
40213,
796,
33718,
13,
28243,
13,
17401,
7,
944,
13,
11249,
15235,
7203,
71,
74,
862,
18497,
14,
33571,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15643,
680,
7,
29356,
13,
2220,
7203,
70,
6024,
2539,
13,
28243,
13,
6494,
11074,
8612,
378,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1459,
2625,
3855,
21059,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25338,
28,
944,
13,
12947,
10100,
13,
45828,
22784,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
28,
2539,
198,
220,
220,
220,
220,
220,
220,
220,
15306
] | 2.173757 | 2,515 |
### Static Parameters ###
# TemplateSpectrum = 'FLIR-ID-2_TemplateSpectrum_CmdLine.n42'
### End of the Static Parameters ###
import os
import xml.etree.ElementTree as ET
from src.rase_functions import write_results
def retrieve_FLIR_Results(filepath):
"""
:param filepath:
:return:
"""
it = ET.parse(filepath)
root = it.getroot()
resultsArray = []
resultsAll = root.find('.//{http://physics.nist.gov/N42/2011/N42}NuclideAnalysisResults')
if resultsAll:
resultsElements = resultsAll.findall('{http://physics.nist.gov/N42/2011/N42}Nuclide')
for element in resultsElements:
nuclideID = element.find('{http://physics.nist.gov/N42/2011/N42}NuclideName')
confidenceValue = element.find('{http://physics.nist.gov/N42/2011/N42}NuclideIDConfidenceValue')
resultsArray.append((nuclideID.text, confidenceValue.text))
return resultsArray
if __name__ == "__main__":
import sys
if len(sys.argv) < 3:
print("ERROR: Need input and output folder!")
sys.exit(1)
main(sys.argv[1], sys.argv[2])
| [
21017,
36125,
40117,
44386,
198,
2,
37350,
49738,
6582,
796,
705,
3697,
4663,
12,
2389,
12,
17,
62,
30800,
49738,
6582,
62,
40109,
13949,
13,
77,
3682,
6,
198,
21017,
5268,
286,
262,
36125,
40117,
44386,
198,
198,
11748,
28686,
198,
11748,
35555,
13,
316,
631,
13,
20180,
27660,
355,
12152,
198,
198,
6738,
12351,
13,
22789,
62,
12543,
2733,
1330,
3551,
62,
43420,
628,
198,
4299,
19818,
62,
3697,
4663,
62,
25468,
7,
7753,
6978,
2599,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1058,
17143,
2393,
6978,
25,
198,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
340,
796,
12152,
13,
29572,
7,
7753,
6978,
8,
198,
220,
220,
220,
6808,
796,
340,
13,
1136,
15763,
3419,
628,
220,
220,
220,
2482,
19182,
796,
17635,
628,
220,
220,
220,
2482,
3237,
796,
6808,
13,
19796,
7,
4458,
1003,
90,
4023,
1378,
746,
23154,
13,
77,
396,
13,
9567,
14,
45,
3682,
14,
9804,
14,
45,
3682,
92,
45,
36616,
485,
32750,
25468,
11537,
628,
220,
220,
220,
611,
2482,
3237,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2482,
36,
3639,
796,
2482,
3237,
13,
19796,
439,
10786,
90,
4023,
1378,
746,
23154,
13,
77,
396,
13,
9567,
14,
45,
3682,
14,
9804,
14,
45,
3682,
92,
45,
36616,
485,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5002,
287,
2482,
36,
3639,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14364,
565,
485,
2389,
796,
5002,
13,
19796,
10786,
90,
4023,
1378,
746,
23154,
13,
77,
396,
13,
9567,
14,
45,
3682,
14,
9804,
14,
45,
3682,
92,
45,
36616,
485,
5376,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6628,
11395,
796,
5002,
13,
19796,
10786,
90,
4023,
1378,
746,
23154,
13,
77,
396,
13,
9567,
14,
45,
3682,
14,
9804,
14,
45,
3682,
92,
45,
36616,
485,
2389,
18546,
1704,
11395,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2482,
19182,
13,
33295,
19510,
28803,
565,
485,
2389,
13,
5239,
11,
6628,
11395,
13,
5239,
4008,
628,
220,
220,
220,
1441,
2482,
19182,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
628,
220,
220,
220,
1330,
25064,
628,
220,
220,
220,
611,
18896,
7,
17597,
13,
853,
85,
8,
1279,
513,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
24908,
25,
10664,
5128,
290,
5072,
9483,
2474,
8,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
7,
16,
8,
628,
220,
220,
220,
1388,
7,
17597,
13,
853,
85,
58,
16,
4357,
25064,
13,
853,
85,
58,
17,
12962,
198
] | 2.455752 | 452 |
import re
from bs4 import BeautifulSoup
| [
11748,
302,
198,
198,
6738,
275,
82,
19,
1330,
23762,
50,
10486,
628,
628
] | 3.142857 | 14 |
#!/usr/bin/python3
import math
import threading
import numpy as np
import rospy
import tf2_ros
from geometry_msgs.msg import TransformStamped
from tello_formation.msg import GotoCommand
from tello_ros.srv import TelloCommand
class TelloController:
"""
This class is the one that controls the Tello. (It stays between the drone and the supervisor)
"""
def __init__(self, id):
"""
Constructor of the class TelloController
parameter:
- id = unique id of the drone
"""
self.id = id
self.name = f'tello_{id}'
self.pos = None
self._mvt_lock = threading.Lock()
self._buf = None
self.max_localisation_delay = None
self.do = lambda _: None
def _goto_callback(self, msg):
"""
This method sends the commands to the tello so that he goes to the goal
"""
with self._mvt_lock:
rospy.loginfo(f'Received goto {msg.target_frame_id} (t={msg.start}) at {msg.speed} m/s')
try:
tf = self._buf.lookup_transform(self.name, msg.target_frame_id, msg.start, self.max_localisation_delay)
except (tf2_ros.LookupException, tf2_ros.ConnectivityException, tf2_ros.ExtrapolationException) as e:
rospy.loginfo(f'Ignoring goto: lookup failed ({e})')
# Here we could add error checking (check if the transform makes sense)
x, y = tf.transform.translation.x, tf.transform.translation.y
speed = max(10, min(100, int(round(msg.speed * 100))))
distance = max(20, min(500, int(round((x ** 2 + y ** 2) ** .5 * 100))))
angle = int(round(math.degrees(math.atan2(y, x))))
# note: the Tello did not complain for -18.0 cw...
turn = 'ccw' if angle > 0 else 'cw'
angle = abs(angle)
self.do(f'speed {speed}')
rospy.sleep(2)
self.do(f'{turn} {angle}')
rospy.sleep((math.radians(angle)*0.1/speed)+2) #compute the time it takes to rotate
self.do(f'forward {distance}')
rospy.sleep(distance / speed + 2) # +2 to be safe
self.do(f'land')
rospy.loginfo(f'Tello_{id} succeeded to land on the goal')
rospy.shutdwon()
def _search_marker(self):
"""
This method searchs for the Aruco markers to locate himself
"""
rospy.loginfo('Searching for marker (has no effect unless search_marker_enabled parameter is set to True)')
rospy.sleep(self.max_localisation_delay) # give more time for start-up
while not rospy.is_shutdown():
try:
t = self._buf.lookup_transform('world', self.name, rospy.Time(0), self.max_localisation_delay)
rospy.loginfo(f'COORDINATIONS: {t}')
except (tf2_ros.LookupException, tf2_ros.ConnectivityException, tf2_ros.ExtrapolationException):
with self._mvt_lock:
if rospy.get_param('search_marker_enabled'):
self.do('cw 45')
else:
rospy.loginfo('Found marker, localisation OK')
rospy.sleep(5)
def run(self):
"""
This methods creates a node in ROS, sends the command 'command' to the drone and subscribes
"""
rospy.init_node('controller')
rospy.loginfo(f'Starting controller node for {self.name}')
self._buf = tf2_ros.Buffer(rospy.Duration(5))
self.max_localisation_delay = rospy.Duration(5) # wait for this amount of time before deciding we don't see any marker
rospy.wait_for_service('command')
self.do = rospy.ServiceProxy('command', TelloCommand, persistent=True)
tf_listener = tf2_ros.TransformListener(self._buf)
gt_listener = rospy.Subscriber('goto', GotoCommand, self._goto_callback)
threading.Thread(target=self._search_marker).start()
rospy.spin()
# -- the rest of the code will be only runned when executed from the terminal
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--id', type=int, required=True, help='Tello ID (should be equal to or greater than 1)')
args, unknown = parser.parse_known_args()
TelloController(args.id).run()
| [
2,
48443,
14629,
14,
8800,
14,
29412,
18,
628,
198,
11748,
10688,
198,
11748,
4704,
278,
198,
198,
11748,
299,
32152,
355,
45941,
198,
198,
11748,
686,
2777,
88,
198,
11748,
48700,
17,
62,
4951,
198,
198,
6738,
22939,
62,
907,
14542,
13,
19662,
1330,
26981,
1273,
13322,
198,
6738,
1560,
78,
62,
1161,
13,
19662,
1330,
402,
2069,
21575,
198,
6738,
1560,
78,
62,
4951,
13,
27891,
85,
1330,
309,
11109,
21575,
198,
198,
4871,
309,
11109,
22130,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
770,
1398,
318,
262,
530,
326,
6973,
262,
309,
11109,
13,
357,
1026,
14768,
1022,
262,
12170,
290,
262,
21277,
8,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
4686,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28407,
273,
286,
262,
1398,
309,
11109,
22130,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11507,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
4686,
796,
3748,
4686,
286,
262,
12170,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
312,
796,
4686,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3672,
796,
277,
470,
11109,
23330,
312,
92,
6,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1930,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
36540,
62,
5354,
796,
4704,
278,
13,
25392,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
29325,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9806,
62,
12001,
5612,
62,
40850,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4598,
796,
37456,
4808,
25,
6045,
628,
220,
220,
220,
825,
4808,
70,
2069,
62,
47423,
7,
944,
11,
31456,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
770,
2446,
12800,
262,
9729,
284,
262,
1560,
78,
523,
326,
339,
2925,
284,
262,
3061,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
351,
2116,
13557,
76,
36540,
62,
5354,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
6404,
10951,
7,
69,
6,
3041,
6471,
43197,
1391,
19662,
13,
16793,
62,
14535,
62,
312,
92,
357,
83,
34758,
19662,
13,
9688,
30072,
379,
1391,
19662,
13,
12287,
92,
285,
14,
82,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
48700,
796,
2116,
13557,
29325,
13,
5460,
929,
62,
35636,
7,
944,
13,
3672,
11,
31456,
13,
16793,
62,
14535,
62,
312,
11,
31456,
13,
9688,
11,
2116,
13,
9806,
62,
12001,
5612,
62,
40850,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
357,
27110,
17,
62,
4951,
13,
8567,
929,
16922,
11,
48700,
17,
62,
4951,
13,
13313,
3458,
16922,
11,
48700,
17,
62,
4951,
13,
11627,
2416,
21417,
16922,
8,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
6404,
10951,
7,
69,
6,
32916,
3255,
43197,
25,
35847,
4054,
37913,
68,
30072,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3423,
356,
714,
751,
4049,
10627,
357,
9122,
611,
262,
6121,
1838,
2565,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
11,
331,
796,
48700,
13,
35636,
13,
41519,
13,
87,
11,
48700,
13,
35636,
13,
41519,
13,
88,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2866,
796,
3509,
7,
940,
11,
949,
7,
3064,
11,
493,
7,
744,
7,
19662,
13,
12287,
1635,
1802,
35514,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5253,
796,
3509,
7,
1238,
11,
949,
7,
4059,
11,
493,
7,
744,
19510,
87,
12429,
362,
1343,
331,
12429,
362,
8,
12429,
764,
20,
1635,
1802,
35514,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9848,
796,
493,
7,
744,
7,
11018,
13,
13500,
6037,
7,
11018,
13,
39036,
17,
7,
88,
11,
2124,
35514,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3465,
25,
262,
309,
11109,
750,
407,
13121,
329,
532,
1507,
13,
15,
269,
86,
986,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1210,
796,
705,
535,
86,
6,
611,
9848,
1875,
657,
2073,
705,
66,
86,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9848,
796,
2352,
7,
9248,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4598,
7,
69,
338,
39492,
1391,
12287,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
42832,
7,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4598,
7,
69,
6,
90,
15344,
92,
1391,
9248,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
42832,
19510,
11018,
13,
6335,
1547,
7,
9248,
27493,
15,
13,
16,
14,
12287,
47762,
17,
8,
1303,
5589,
1133,
262,
640,
340,
2753,
284,
23064,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4598,
7,
69,
6,
11813,
1391,
30246,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
42832,
7,
30246,
1220,
2866,
1343,
362,
8,
220,
1303,
1343,
17,
284,
307,
3338,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4598,
7,
69,
6,
1044,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
6404,
10951,
7,
69,
6,
51,
11109,
23330,
312,
92,
14131,
284,
1956,
319,
262,
3061,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
49625,
67,
26502,
3419,
628,
220,
220,
220,
825,
4808,
12947,
62,
4102,
263,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
770,
2446,
2989,
82,
329,
262,
317,
622,
1073,
19736,
284,
17276,
2241,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
6404,
10951,
10786,
18243,
278,
329,
18364,
357,
10134,
645,
1245,
4556,
2989,
62,
4102,
263,
62,
25616,
11507,
318,
900,
284,
6407,
8,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
42832,
7,
944,
13,
9806,
62,
12001,
5612,
62,
40850,
8,
220,
1303,
1577,
517,
640,
329,
923,
12,
929,
198,
220,
220,
220,
220,
220,
220,
220,
981,
407,
686,
2777,
88,
13,
271,
62,
49625,
2902,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
796,
2116,
13557,
29325,
13,
5460,
929,
62,
35636,
10786,
6894,
3256,
2116,
13,
3672,
11,
686,
2777,
88,
13,
7575,
7,
15,
828,
2116,
13,
9806,
62,
12001,
5612,
62,
40850,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
6404,
10951,
7,
69,
6,
8220,
12532,
1268,
18421,
25,
1391,
83,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
357,
27110,
17,
62,
4951,
13,
8567,
929,
16922,
11,
48700,
17,
62,
4951,
13,
13313,
3458,
16922,
11,
48700,
17,
62,
4951,
13,
11627,
2416,
21417,
16922,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
2116,
13557,
76,
36540,
62,
5354,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
686,
2777,
88,
13,
1136,
62,
17143,
10786,
12947,
62,
4102,
263,
62,
25616,
6,
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,
2116,
13,
4598,
10786,
66,
86,
4153,
11537,
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,
686,
2777,
88,
13,
6404,
10951,
10786,
21077,
18364,
11,
1957,
5612,
7477,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
42832,
7,
20,
8,
628,
220,
220,
220,
825,
1057,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
770,
5050,
8075,
257,
10139,
287,
48263,
11,
12800,
262,
3141,
705,
21812,
6,
284,
262,
12170,
290,
11452,
274,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
15003,
62,
17440,
10786,
36500,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
6404,
10951,
7,
69,
6,
22851,
10444,
10139,
329,
1391,
944,
13,
3672,
92,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
29325,
796,
48700,
17,
62,
4951,
13,
28632,
7,
305,
2777,
88,
13,
26054,
7,
20,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9806,
62,
12001,
5612,
62,
40850,
796,
686,
2777,
88,
13,
26054,
7,
20,
8,
220,
1303,
4043,
329,
428,
2033,
286,
640,
878,
14615,
356,
836,
470,
766,
597,
18364,
628,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
17077,
62,
1640,
62,
15271,
10786,
21812,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4598,
796,
686,
2777,
88,
13,
16177,
44148,
10786,
21812,
3256,
309,
11109,
21575,
11,
16218,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
48700,
62,
4868,
877,
796,
48700,
17,
62,
4951,
13,
41762,
33252,
7,
944,
13557,
29325,
8,
198,
220,
220,
220,
220,
220,
220,
220,
308,
83,
62,
4868,
877,
796,
686,
2777,
88,
13,
7004,
1416,
24735,
10786,
70,
2069,
3256,
402,
2069,
21575,
11,
2116,
13557,
70,
2069,
62,
47423,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4704,
278,
13,
16818,
7,
16793,
28,
944,
13557,
12947,
62,
4102,
263,
737,
9688,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
686,
2777,
88,
13,
39706,
3419,
198,
198,
2,
1377,
262,
1334,
286,
262,
2438,
481,
307,
691,
1057,
2817,
618,
10945,
422,
262,
12094,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1330,
1822,
29572,
198,
220,
220,
220,
30751,
796,
1822,
29572,
13,
28100,
1713,
46677,
3419,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
312,
3256,
2099,
28,
600,
11,
2672,
28,
17821,
11,
1037,
11639,
51,
11109,
4522,
357,
21754,
307,
4961,
284,
393,
3744,
621,
352,
8,
11537,
198,
220,
220,
220,
26498,
11,
6439,
796,
30751,
13,
29572,
62,
4002,
62,
22046,
3419,
628,
220,
220,
220,
309,
11109,
22130,
7,
22046,
13,
312,
737,
5143,
3419,
628
] | 2.240123 | 1,949 |
# -*- coding: utf-8 -*-
#
# django-codenerix
#
# Codenerix GNU
#
# Project URL : http://www.codenerix.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from django.template import Library
from django.urls import reverse
from django.utils.encoding import smart_str
from django.utils.safestring import mark_safe
from django.core.exceptions import ValidationError
from django.utils import formats
from django.conf import settings
from codenerix.djng.angular_base import TupleErrorList
from codenerix.helpers import model_inspect
register = Library()
@register.filter
@register.filter
@register.filter
@register.filter
@register.filter
@register.filter
@register.filter
@register.filter
@register.filter
@register.filter
@register.filter
@register.filter
def foreignkey(element, exceptions):
'''
function to determine if each select field needs a create button or not
'''
label = element.field.__dict__['label']
try:
label = unicode(label)
except NameError:
pass
if (not label) or (label in exceptions):
return False
else:
return "_queryset" in element.field.__dict__
@register.filter
@register.filter
@register.filter
@register.filter
# DEPRECATED: 2017-02-14
@register.filter
@register.filter
@register.filter
@register.filter
@register.filter
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
198,
2,
42625,
14208,
12,
19815,
877,
844,
198,
2,
198,
2,
18720,
877,
844,
22961,
198,
2,
198,
2,
4935,
10289,
1058,
2638,
1378,
2503,
13,
19815,
877,
844,
13,
785,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
11247,
739,
262,
13789,
13,
198,
198,
6738,
42625,
14208,
13,
28243,
1330,
10074,
198,
6738,
42625,
14208,
13,
6371,
82,
1330,
9575,
198,
6738,
42625,
14208,
13,
26791,
13,
12685,
7656,
1330,
4451,
62,
2536,
198,
6738,
42625,
14208,
13,
26791,
13,
49585,
395,
1806,
1330,
1317,
62,
21230,
198,
6738,
42625,
14208,
13,
7295,
13,
1069,
11755,
1330,
3254,
24765,
12331,
198,
6738,
42625,
14208,
13,
26791,
1330,
17519,
198,
6738,
42625,
14208,
13,
10414,
1330,
6460,
198,
198,
6738,
14873,
877,
844,
13,
28241,
782,
13,
21413,
62,
8692,
1330,
309,
29291,
12331,
8053,
198,
198,
6738,
14873,
877,
844,
13,
16794,
364,
1330,
2746,
62,
1040,
806,
198,
198,
30238,
796,
10074,
3419,
198,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
198,
4299,
3215,
2539,
7,
30854,
11,
13269,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
2163,
284,
5004,
611,
1123,
2922,
2214,
2476,
257,
2251,
4936,
393,
407,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
6167,
796,
5002,
13,
3245,
13,
834,
11600,
834,
17816,
18242,
20520,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6167,
796,
28000,
1098,
7,
18242,
8,
198,
220,
220,
220,
2845,
6530,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
611,
357,
1662,
6167,
8,
393,
357,
18242,
287,
13269,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
45434,
10819,
893,
316,
1,
287,
5002,
13,
3245,
13,
834,
11600,
834,
628,
198,
31,
30238,
13,
24455,
628,
198,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
2,
5550,
47,
38827,
11617,
25,
2177,
12,
2999,
12,
1415,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
628,
198,
31,
30238,
13,
24455,
198
] | 3.175258 | 582 |
from django.db import models
from experiment_session.models import ExperimentSession
from django.core.validators import MinValueValidator
| [
6738,
42625,
14208,
13,
9945,
1330,
4981,
198,
6738,
6306,
62,
29891,
13,
27530,
1330,
29544,
36044,
198,
6738,
42625,
14208,
13,
7295,
13,
12102,
2024,
1330,
1855,
11395,
47139,
1352,
628
] | 4.34375 | 32 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import tempfile
from oslo_utils import uuidutils
from tempest.lib import exceptions
from novaclient.tests.functional import base
from novaclient.tests.functional.v2 import fake_crypto
class TestKeypairsNovaClient(base.ClientTestBase):
"""Keypairs functional tests."""
COMPUTE_API_VERSION = "2.1"
| [
2,
220,
220,
220,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
345,
743,
198,
2,
220,
220,
220,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
921,
743,
7330,
198,
2,
220,
220,
220,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
220,
220,
220,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
220,
220,
220,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
42881,
198,
2,
220,
220,
220,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
4091,
262,
198,
2,
220,
220,
220,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
11247,
198,
2,
220,
220,
220,
739,
262,
13789,
13,
198,
198,
11748,
20218,
7753,
198,
198,
6738,
28686,
5439,
62,
26791,
1330,
334,
27112,
26791,
198,
6738,
20218,
395,
13,
8019,
1330,
13269,
198,
198,
6738,
645,
85,
37779,
1153,
13,
41989,
13,
45124,
1330,
2779,
198,
6738,
645,
85,
37779,
1153,
13,
41989,
13,
45124,
13,
85,
17,
1330,
8390,
62,
29609,
78,
628,
198,
4871,
6208,
9218,
79,
3468,
45,
10071,
11792,
7,
8692,
13,
11792,
14402,
14881,
2599,
198,
220,
220,
220,
37227,
9218,
79,
3468,
10345,
5254,
526,
15931,
628,
220,
220,
220,
24301,
37780,
62,
17614,
62,
43717,
796,
366,
17,
13,
16,
1,
198
] | 3.291045 | 268 |
"""rabbit_force application entrypoint"""
import logging
from enum import IntEnum
from collections import namedtuple
import click
from .config import load_config
from .app import Application
from ._metadata import TITLE, VERSION
class Verbosity(IntEnum):
"""Logging detail level"""
#: Application messages with ``info`` level and above
APP_INFO = 1
#: Application messages with ``debug`` level and above
APP_DEBUG = 2
#: Application and library messages with ``debug`` level and above
APP_AND_LIBRARY_DEBUG = 3
#: Basic logging parameters
LoggingParameters = namedtuple("LoggingParameters",
("level", "name", "format"))
LoggingParameters.level.__doc__ = "The level of the logger and handler"
LoggingParameters.name.__doc__ = "Name of the application's logger"
LoggingParameters.format.__doc__ = "Format definition for the log formatter"
#: Verbosity specific logging parameters
VERBOSITY_LOGGING_PARAMETERS = {
Verbosity.APP_INFO: LoggingParameters(
level=logging.INFO,
name=__package__,
format="%(asctime)s:%(levelname)s: %(message)s"
),
Verbosity.APP_DEBUG: LoggingParameters(
level=logging.DEBUG,
name=__package__,
format="%(asctime)s:%(levelname)s:%(name)s: %(message)s"
),
Verbosity.APP_AND_LIBRARY_DEBUG: LoggingParameters(
level=logging.DEBUG,
name=None,
format="%(asctime)s:%(levelname)s:%(name)s: %(message)s"
)
}
def configure_logger(verbosity):
"""Configure the application's logger
:param Verbosity verbosity: Logging verbosity
:return: Application's root logger
:rtype: logging.Logger
"""
logging_parameters = VERBOSITY_LOGGING_PARAMETERS[verbosity]
# create logger and set level
logger = logging.getLogger(logging_parameters.name)
logger.setLevel(logging_parameters.level)
# create console handler and set level
handler = logging.StreamHandler()
handler.setLevel(logging_parameters.level)
# create formatter
formatter = logging.Formatter(logging_parameters.format)
# add formatter to handler
handler.setFormatter(formatter)
# add handler to logger
logger.addHandler(handler)
# if we're not using the root logger then set a null handler for the
# aioamqp library (because it doesn't has one configured by default)
if logging_parameters.name:
logging.getLogger("aioamqp").addHandler(logging.NullHandler())
return logger
# pylint: disable=too-many-arguments
@click.command()
@click.argument("config_file", type=click.Path(exists=True, dir_okay=False))
@click.option("--ignore-replay-storage-errors", default=False, is_flag=True,
help="Ignore errors that might occur on reading or writing "
"replay marker values.")
@click.option("--ignore-sink-errors", default=False, is_flag=True,
help="Ignore errors that might occur if a message can't be "
"forwarded to a given message sink due to network or "
"configuration errors.")
@click.option("--source-connection-timeout", type=click.IntRange(min=0),
default=10, show_default=True,
help="If the connection to the Streaming API fails due to "
"network errors or service outages, try to reconnect for "
"the given amount of seconds before producing an error. "
"If 0 timeout is specified, then the service will try to "
"re-establish the connection indefinitely.")
@click.option("-v", "--verbosity", type=click.IntRange(min=1, max=3),
default=1, show_default=True, help="Logging detail level (1-3).")
@click.option("-t", "--show-trace", default=False, is_flag=True,
help="Show full backtrace on error.")
@click.version_option(VERSION)
def main(config_file, ignore_replay_storage_errors, ignore_sink_errors,
source_connection_timeout, verbosity, show_trace):
"""rabbit_force is a Salesforce Streaming API to RabbitMQ adapter service.
It listens for event messages from Salesforce's Streaming API and forwards
them to a RabbitMQ broker for you, so you don't have to.
Message sources, sinks and message routing rules should be defined in a
CONFIG_FILE either in JSON (.json) or in YAML (.yaml, .yml) format.
"""
logger = configure_logger(verbosity)
logger.info("Starting up ...")
try:
file_path = config_file
config = load_config(file_path)
logger.info("Configuration loaded from %r", file_path)
logger.debug("Creating application")
app = Application(
config,
ignore_replay_storage_errors=ignore_replay_storage_errors,
ignore_sink_errors=ignore_sink_errors,
source_connection_timeout=source_connection_timeout
)
logger.debug("Starting application")
app.run()
except Exception as error: # pylint: disable=broad-except
logger.error("Unexpected error: \n%r", error, exc_info=show_trace)
exit(1)
# pylint: enable=too-many-arguments
if __name__ == "__main__": # pragma: no cover
# pylint: disable=no-value-for-parameter,unexpected-keyword-arg
main(prog_name=f"python -m {TITLE}")
# pylint: enable=no-value-for-parameter,unexpected-keyword-arg
| [
37811,
81,
14229,
62,
3174,
3586,
5726,
4122,
37811,
198,
11748,
18931,
198,
6738,
33829,
1330,
2558,
4834,
388,
198,
6738,
17268,
1330,
3706,
83,
29291,
198,
198,
11748,
3904,
198,
198,
6738,
764,
11250,
1330,
3440,
62,
11250,
198,
6738,
764,
1324,
1330,
15678,
198,
6738,
47540,
38993,
1330,
37977,
2538,
11,
44156,
2849,
628,
198,
4871,
49973,
16579,
7,
5317,
4834,
388,
2599,
198,
220,
220,
220,
37227,
11187,
2667,
3703,
1241,
37811,
198,
220,
220,
220,
1303,
25,
15678,
6218,
351,
7559,
10951,
15506,
1241,
290,
2029,
198,
220,
220,
220,
43504,
62,
10778,
796,
352,
198,
220,
220,
220,
1303,
25,
15678,
6218,
351,
7559,
24442,
15506,
1241,
290,
2029,
198,
220,
220,
220,
43504,
62,
30531,
796,
362,
198,
220,
220,
220,
1303,
25,
15678,
290,
5888,
6218,
351,
7559,
24442,
15506,
1241,
290,
2029,
198,
220,
220,
220,
43504,
62,
6981,
62,
40347,
49,
13153,
62,
30531,
796,
513,
628,
198,
2,
25,
14392,
18931,
10007,
198,
11187,
2667,
48944,
796,
3706,
83,
29291,
7203,
11187,
2667,
48944,
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,
5855,
5715,
1600,
366,
3672,
1600,
366,
18982,
48774,
198,
11187,
2667,
48944,
13,
5715,
13,
834,
15390,
834,
796,
366,
464,
1241,
286,
262,
49706,
290,
21360,
1,
198,
11187,
2667,
48944,
13,
3672,
13,
834,
15390,
834,
796,
366,
5376,
286,
262,
3586,
338,
49706,
1,
198,
11187,
2667,
48944,
13,
18982,
13,
834,
15390,
834,
796,
366,
26227,
6770,
329,
262,
2604,
1296,
1436,
1,
198,
198,
2,
25,
49973,
16579,
2176,
18931,
10007,
198,
5959,
33,
2640,
9050,
62,
25294,
38,
2751,
62,
27082,
2390,
2767,
4877,
796,
1391,
198,
220,
220,
220,
49973,
16579,
13,
24805,
62,
10778,
25,
5972,
2667,
48944,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1241,
28,
6404,
2667,
13,
10778,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
28,
834,
26495,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5794,
2625,
4,
7,
292,
310,
524,
8,
82,
25,
4,
7,
5715,
3672,
8,
82,
25,
4064,
7,
20500,
8,
82,
1,
198,
220,
220,
220,
10612,
198,
220,
220,
220,
49973,
16579,
13,
24805,
62,
30531,
25,
5972,
2667,
48944,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1241,
28,
6404,
2667,
13,
30531,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
28,
834,
26495,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5794,
2625,
4,
7,
292,
310,
524,
8,
82,
25,
4,
7,
5715,
3672,
8,
82,
25,
4,
7,
3672,
8,
82,
25,
4064,
7,
20500,
8,
82,
1,
198,
220,
220,
220,
10612,
198,
220,
220,
220,
49973,
16579,
13,
24805,
62,
6981,
62,
40347,
49,
13153,
62,
30531,
25,
5972,
2667,
48944,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1241,
28,
6404,
2667,
13,
30531,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5794,
2625,
4,
7,
292,
310,
524,
8,
82,
25,
4,
7,
5715,
3672,
8,
82,
25,
4,
7,
3672,
8,
82,
25,
4064,
7,
20500,
8,
82,
1,
198,
220,
220,
220,
1267,
198,
92,
628,
198,
4299,
17425,
62,
6404,
1362,
7,
19011,
16579,
2599,
198,
220,
220,
220,
37227,
16934,
495,
262,
3586,
338,
49706,
628,
220,
220,
220,
1058,
17143,
49973,
16579,
15942,
16579,
25,
5972,
2667,
15942,
16579,
198,
220,
220,
220,
1058,
7783,
25,
15678,
338,
6808,
49706,
198,
220,
220,
220,
1058,
81,
4906,
25,
18931,
13,
11187,
1362,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
18931,
62,
17143,
7307,
796,
33310,
33,
2640,
9050,
62,
25294,
38,
2751,
62,
27082,
2390,
2767,
4877,
58,
19011,
16579,
60,
628,
220,
220,
220,
1303,
2251,
49706,
290,
900,
1241,
198,
220,
220,
220,
49706,
796,
18931,
13,
1136,
11187,
1362,
7,
6404,
2667,
62,
17143,
7307,
13,
3672,
8,
198,
220,
220,
220,
49706,
13,
2617,
4971,
7,
6404,
2667,
62,
17143,
7307,
13,
5715,
8,
628,
220,
220,
220,
1303,
2251,
8624,
21360,
290,
900,
1241,
198,
220,
220,
220,
21360,
796,
18931,
13,
12124,
25060,
3419,
198,
220,
220,
220,
21360,
13,
2617,
4971,
7,
6404,
2667,
62,
17143,
7307,
13,
5715,
8,
628,
220,
220,
220,
1303,
2251,
1296,
1436,
198,
220,
220,
220,
1296,
1436,
796,
18931,
13,
8479,
1436,
7,
6404,
2667,
62,
17143,
7307,
13,
18982,
8,
628,
220,
220,
220,
1303,
751,
1296,
1436,
284,
21360,
198,
220,
220,
220,
21360,
13,
2617,
8479,
1436,
7,
687,
1436,
8,
628,
220,
220,
220,
1303,
751,
21360,
284,
49706,
198,
220,
220,
220,
49706,
13,
2860,
25060,
7,
30281,
8,
628,
220,
220,
220,
1303,
611,
356,
821,
407,
1262,
262,
6808,
49706,
788,
900,
257,
9242,
21360,
329,
262,
198,
220,
220,
220,
1303,
257,
952,
321,
80,
79,
5888,
357,
13893,
340,
1595,
470,
468,
530,
17839,
416,
4277,
8,
198,
220,
220,
220,
611,
18931,
62,
17143,
7307,
13,
3672,
25,
198,
220,
220,
220,
220,
220,
220,
220,
18931,
13,
1136,
11187,
1362,
7203,
64,
952,
321,
80,
79,
11074,
2860,
25060,
7,
6404,
2667,
13,
35067,
25060,
28955,
628,
220,
220,
220,
1441,
49706,
628,
198,
2,
279,
2645,
600,
25,
15560,
28,
18820,
12,
21834,
12,
853,
2886,
198,
31,
12976,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
7203,
11250,
62,
7753,
1600,
2099,
28,
12976,
13,
15235,
7,
1069,
1023,
28,
17821,
11,
26672,
62,
482,
323,
28,
25101,
4008,
198,
31,
12976,
13,
18076,
7203,
438,
46430,
12,
260,
1759,
12,
35350,
12,
48277,
1600,
4277,
28,
25101,
11,
318,
62,
32109,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
2625,
32916,
382,
8563,
326,
1244,
3051,
319,
3555,
393,
3597,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
260,
1759,
18364,
3815,
19570,
198,
31,
12976,
13,
18076,
7203,
438,
46430,
12,
82,
676,
12,
48277,
1600,
4277,
28,
25101,
11,
318,
62,
32109,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
2625,
32916,
382,
8563,
326,
1244,
3051,
611,
257,
3275,
460,
470,
307,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
11813,
276,
284,
257,
1813,
3275,
14595,
2233,
284,
3127,
393,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
11250,
3924,
8563,
19570,
198,
31,
12976,
13,
18076,
7203,
438,
10459,
12,
38659,
12,
48678,
1600,
2099,
28,
12976,
13,
5317,
17257,
7,
1084,
28,
15,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
940,
11,
905,
62,
12286,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
2625,
1532,
262,
4637,
284,
262,
43124,
7824,
10143,
2233,
284,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
27349,
8563,
393,
2139,
503,
1095,
11,
1949,
284,
37671,
329,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1169,
1813,
2033,
286,
4201,
878,
9194,
281,
4049,
13,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1532,
657,
26827,
318,
7368,
11,
788,
262,
2139,
481,
1949,
284,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
260,
12,
40037,
262,
4637,
24391,
19570,
198,
31,
12976,
13,
18076,
7203,
12,
85,
1600,
366,
438,
19011,
16579,
1600,
2099,
28,
12976,
13,
5317,
17257,
7,
1084,
28,
16,
11,
3509,
28,
18,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
16,
11,
905,
62,
12286,
28,
17821,
11,
1037,
2625,
11187,
2667,
3703,
1241,
357,
16,
12,
18,
8,
19570,
198,
31,
12976,
13,
18076,
7203,
12,
83,
1600,
366,
438,
12860,
12,
40546,
1600,
4277,
28,
25101,
11,
318,
62,
32109,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
2625,
15307,
1336,
736,
40546,
319,
4049,
19570,
198,
31,
12976,
13,
9641,
62,
18076,
7,
43717,
8,
198,
4299,
1388,
7,
11250,
62,
7753,
11,
8856,
62,
260,
1759,
62,
35350,
62,
48277,
11,
8856,
62,
82,
676,
62,
48277,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2723,
62,
38659,
62,
48678,
11,
15942,
16579,
11,
905,
62,
40546,
2599,
198,
220,
220,
220,
37227,
81,
14229,
62,
3174,
318,
257,
17329,
3174,
43124,
7824,
284,
25498,
49215,
21302,
2139,
13,
198,
220,
220,
220,
632,
35019,
329,
1785,
6218,
422,
17329,
3174,
338,
43124,
7824,
290,
22052,
198,
220,
220,
220,
606,
284,
257,
25498,
49215,
20426,
329,
345,
11,
523,
345,
836,
470,
423,
284,
13,
628,
220,
220,
220,
16000,
4237,
11,
38614,
290,
3275,
28166,
3173,
815,
307,
5447,
287,
257,
198,
220,
220,
220,
25626,
62,
25664,
2035,
287,
19449,
20262,
17752,
8,
393,
287,
575,
2390,
43,
20262,
88,
43695,
11,
764,
88,
4029,
8,
5794,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
49706,
796,
17425,
62,
6404,
1362,
7,
19011,
16579,
8,
198,
220,
220,
220,
49706,
13,
10951,
7203,
22851,
510,
35713,
8,
628,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
62,
6978,
796,
4566,
62,
7753,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
796,
3440,
62,
11250,
7,
7753,
62,
6978,
8,
628,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
7203,
38149,
9639,
422,
4064,
81,
1600,
2393,
62,
6978,
8,
628,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
24442,
7203,
32071,
3586,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
598,
796,
15678,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4566,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8856,
62,
260,
1759,
62,
35350,
62,
48277,
28,
46430,
62,
260,
1759,
62,
35350,
62,
48277,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8856,
62,
82,
676,
62,
48277,
28,
46430,
62,
82,
676,
62,
48277,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2723,
62,
38659,
62,
48678,
28,
10459,
62,
38659,
62,
48678,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
24442,
7203,
22851,
3586,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
598,
13,
5143,
3419,
628,
220,
220,
220,
2845,
35528,
355,
4049,
25,
220,
1303,
279,
2645,
600,
25,
15560,
28,
36654,
12,
16341,
198,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
18224,
7203,
52,
42072,
4049,
25,
3467,
77,
4,
81,
1600,
4049,
11,
2859,
62,
10951,
28,
12860,
62,
40546,
8,
198,
220,
220,
220,
220,
220,
220,
220,
8420,
7,
16,
8,
628,
198,
2,
279,
2645,
600,
25,
7139,
28,
18820,
12,
21834,
12,
853,
2886,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
220,
220,
1303,
23864,
2611,
25,
645,
3002,
198,
220,
220,
220,
1303,
279,
2645,
600,
25,
15560,
28,
3919,
12,
8367,
12,
1640,
12,
17143,
2357,
11,
403,
40319,
12,
2539,
4775,
12,
853,
198,
220,
220,
220,
1388,
7,
1676,
70,
62,
3672,
28,
69,
1,
29412,
532,
76,
1391,
49560,
2538,
92,
4943,
198,
220,
220,
220,
1303,
279,
2645,
600,
25,
7139,
28,
3919,
12,
8367,
12,
1640,
12,
17143,
2357,
11,
403,
40319,
12,
2539,
4775,
12,
853,
198
] | 2.659248 | 2,022 |
# -*- coding: utf-8 -*-
"""
Misc. calendar functions.
"""
import datetime
from itertools import islice
def chop(it, n):
"""Chop iterator into `n` size chuchks.
"""
while 1:
s = list(islice(it, n))
if not s:
break
yield s
def isoweek(year, week):
"""Iterate over the days in isoweek `week` of `year`.
"""
# 4th of January is always in week 1
wk1date = datetime.date(year, 1, 4)
# daynumber of the 4th, zero-based
weekday = wk1date.weekday()
# (proleptic Gregorian) ordinal of first day of week 1
day1 = wk1date.toordinal() - weekday
# first day in week
start = day1 + (week - 1) * 7
# one past last day in week
stop = day1 + week * 7
for n in range(start, stop):
yield datetime.date.fromordinal(n)
def rangetuple(x):
"""Return a 2-tuple of datetimes representing a time range.
"""
if hasattr(x, 'rangetuple'):
return x.rangetuple()
if isinstance(x, datetime.date):
return (
datetime.datetime.combine(x, datetime.time()),
datetime.datetime.combine(
datetime.date.fromordinal(1 + x.toordinal()),
datetime.time()
)
)
return x
def rangecmp(interval_a, interval_b):
"""Compare half-open intervals [a, b) and [c, d)
They compare equal if there is overlap.
"""
(a, b) = interval_a
(c, d) = interval_b
if (a, b) == (c, d):
return 0
if (a, b) > (c, d):
return -rangecmp((c, d), (a, b))
if c < b < d:
return 0
if a < c < b:
return 0
if b <= c:
return -1
# the next if can never be reached, but kept for completeness.
if b > c: # pragma: nocover
return 1
raise ValueError(a, b, c, d) # pragma: no cover
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
198,
44,
2304,
13,
11845,
5499,
13,
198,
37811,
198,
11748,
4818,
8079,
198,
6738,
340,
861,
10141,
1330,
318,
75,
501,
628,
198,
4299,
30506,
7,
270,
11,
299,
2599,
198,
220,
220,
220,
37227,
1925,
404,
41313,
656,
4600,
77,
63,
2546,
442,
794,
591,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
981,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
264,
796,
1351,
7,
3044,
501,
7,
270,
11,
299,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
264,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
7800,
264,
628,
198,
4299,
318,
47097,
988,
7,
1941,
11,
1285,
2599,
198,
220,
220,
220,
37227,
29993,
378,
625,
262,
1528,
287,
318,
47097,
988,
4600,
10464,
63,
286,
4600,
1941,
44646,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1303,
604,
400,
286,
3269,
318,
1464,
287,
1285,
352,
198,
220,
220,
220,
266,
74,
16,
4475,
796,
4818,
8079,
13,
4475,
7,
1941,
11,
352,
11,
604,
8,
628,
220,
220,
220,
1303,
1110,
17618,
286,
262,
604,
400,
11,
6632,
12,
3106,
198,
220,
220,
220,
28269,
796,
266,
74,
16,
4475,
13,
10464,
820,
3419,
628,
220,
220,
220,
1303,
357,
1676,
293,
17459,
8547,
22618,
8,
2760,
1292,
286,
717,
1110,
286,
1285,
352,
198,
220,
220,
220,
1110,
16,
796,
266,
74,
16,
4475,
13,
1462,
585,
1292,
3419,
532,
28269,
628,
220,
220,
220,
1303,
717,
1110,
287,
1285,
198,
220,
220,
220,
923,
796,
1110,
16,
1343,
357,
10464,
532,
352,
8,
1635,
767,
198,
220,
220,
220,
1303,
530,
1613,
938,
1110,
287,
1285,
198,
220,
220,
220,
2245,
796,
1110,
16,
1343,
1285,
1635,
767,
628,
220,
220,
220,
329,
299,
287,
2837,
7,
9688,
11,
2245,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
7800,
4818,
8079,
13,
4475,
13,
6738,
585,
1292,
7,
77,
8,
628,
198,
4299,
28077,
316,
29291,
7,
87,
2599,
198,
220,
220,
220,
37227,
13615,
257,
362,
12,
83,
29291,
286,
4818,
46874,
10200,
257,
640,
2837,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
468,
35226,
7,
87,
11,
705,
36985,
316,
29291,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
13,
36985,
316,
29291,
3419,
198,
220,
220,
220,
611,
318,
39098,
7,
87,
11,
4818,
8079,
13,
4475,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4818,
8079,
13,
19608,
8079,
13,
24011,
500,
7,
87,
11,
4818,
8079,
13,
2435,
3419,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4818,
8079,
13,
19608,
8079,
13,
24011,
500,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4818,
8079,
13,
4475,
13,
6738,
585,
1292,
7,
16,
1343,
2124,
13,
1462,
585,
1292,
3419,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4818,
8079,
13,
2435,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
1441,
2124,
628,
198,
4299,
2837,
48991,
7,
3849,
2100,
62,
64,
11,
16654,
62,
65,
2599,
198,
220,
220,
220,
37227,
41488,
2063,
12,
9654,
20016,
685,
64,
11,
275,
8,
290,
685,
66,
11,
288,
8,
198,
220,
220,
220,
220,
220,
220,
1119,
8996,
4961,
611,
612,
318,
21721,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
357,
64,
11,
275,
8,
796,
16654,
62,
64,
198,
220,
220,
220,
357,
66,
11,
288,
8,
796,
16654,
62,
65,
198,
220,
220,
220,
611,
357,
64,
11,
275,
8,
6624,
357,
66,
11,
288,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
198,
220,
220,
220,
611,
357,
64,
11,
275,
8,
1875,
357,
66,
11,
288,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
532,
9521,
48991,
19510,
66,
11,
288,
828,
357,
64,
11,
275,
4008,
628,
220,
220,
220,
611,
269,
1279,
275,
1279,
288,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
198,
220,
220,
220,
611,
257,
1279,
269,
1279,
275,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
198,
220,
220,
220,
611,
275,
19841,
269,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
532,
16,
198,
220,
220,
220,
1303,
262,
1306,
611,
460,
1239,
307,
4251,
11,
475,
4030,
329,
1224,
43205,
13,
198,
220,
220,
220,
611,
275,
1875,
269,
25,
220,
1303,
23864,
2611,
25,
299,
420,
2502,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
352,
198,
220,
220,
220,
5298,
11052,
12331,
7,
64,
11,
275,
11,
269,
11,
288,
8,
220,
1303,
23864,
2611,
25,
645,
3002,
198
] | 2.15684 | 848 |
from building_blocks.admin.utils import render_element, json_field_pp
| [
6738,
2615,
62,
27372,
13,
28482,
13,
26791,
1330,
8543,
62,
30854,
11,
33918,
62,
3245,
62,
381,
628,
628,
198
] | 3.52381 | 21 |
from django.test import TestCase
from graphql.language import ast
from graphql_extensions import types
| [
6738,
42625,
14208,
13,
9288,
1330,
6208,
20448,
198,
198,
6738,
4823,
13976,
13,
16129,
1330,
6468,
198,
198,
6738,
4823,
13976,
62,
2302,
5736,
1330,
3858,
628
] | 3.785714 | 28 |
from formulae.utils import flatten_list
class CallVarsExtractor:
"""Visitor that extracts variable names present in a model formula"""
| [
6738,
1296,
377,
3609,
13,
26791,
1330,
27172,
268,
62,
4868,
628,
198,
4871,
4889,
53,
945,
11627,
40450,
25,
198,
220,
220,
220,
37227,
15854,
2072,
326,
32139,
7885,
3891,
1944,
287,
257,
2746,
10451,
37811,
198
] | 3.710526 | 38 |
# Copyright (c) 2018 NEC, Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_upgradecheck.upgradecheck import Code
from watcher.cmd import status
from watcher import conf
from watcher.tests import base
CONF = conf.CONF
| [
2,
15069,
357,
66,
8,
2864,
41804,
11,
11421,
13,
198,
2,
198,
2,
220,
220,
220,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
345,
743,
198,
2,
220,
220,
220,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
921,
743,
7330,
198,
2,
220,
220,
220,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
220,
220,
220,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
220,
220,
220,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
42881,
198,
2,
220,
220,
220,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
4091,
262,
198,
2,
220,
220,
220,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
11247,
198,
2,
220,
220,
220,
739,
262,
13789,
13,
198,
198,
6738,
28686,
5439,
62,
929,
9526,
9122,
13,
929,
9526,
9122,
1330,
6127,
198,
198,
6738,
4383,
2044,
13,
28758,
1330,
3722,
198,
6738,
4383,
2044,
1330,
1013,
198,
6738,
4383,
2044,
13,
41989,
1330,
2779,
198,
198,
10943,
37,
796,
1013,
13,
10943,
37,
628
] | 3.342105 | 228 |
"""Constants for the Abode Security System component."""
import logging
LOGGER = logging.getLogger(__package__)
DOMAIN = "abode"
ATTRIBUTION = "Data provided by goabode.com"
DEFAULT_CACHEDB = "abodepy_cache.pickle"
CONF_POLLING = "polling"
| [
37811,
34184,
1187,
329,
262,
2275,
1098,
4765,
4482,
7515,
526,
15931,
198,
11748,
18931,
198,
198,
25294,
30373,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
26495,
834,
8,
198,
198,
39170,
29833,
796,
366,
397,
1098,
1,
198,
1404,
5446,
9865,
35354,
796,
366,
6601,
2810,
416,
467,
397,
1098,
13,
785,
1,
198,
198,
7206,
38865,
62,
34,
16219,
1961,
33,
796,
366,
397,
375,
538,
88,
62,
23870,
13,
27729,
293,
1,
198,
10943,
37,
62,
16402,
3069,
2751,
796,
366,
30393,
278,
1,
198
] | 2.730337 | 89 |
from pydantic import BaseSettings
settings = Settings()
| [
6738,
279,
5173,
5109,
1330,
7308,
26232,
628,
198,
198,
33692,
796,
16163,
3419,
198
] | 3.933333 | 15 |
from yacs.yacs_config import CfgNode as CN
import os.path as osp
# https://github.com/rbgirshick/yacs
_C = CN()
_C.DEST_EXT = "png"
_C.SAVE_PATCH = False
_C.SLIDE = CN()
_C.SLIDE.BASE_DIR = ''
_C.SLIDE.SCALE_FACTOR = 32
_C.SLIDE.DEST_DIR = ''
_C.SLIDE.THUMBNAIL_SIZE = 300
_C.SLIDE.THUMBNAIL_EXT = "jpg"
_C.SLIDE.PREFIX = ''
_C.SLIDE.SRC_DIR = ""
_C.SLIDE.SRC_EXT = "SVS"
_C.SLIDE.DEST_SUFFIX = ""
_C.SLIDE.DEST_EXT = 'jpg'
_C.SLIDE.DEST_THUMBNAIL_DIR = osp.join(_C.SLIDE.BASE_DIR, 'thumbnail_' + _C.SLIDE.THUMBNAIL_EXT)
_C.FILTER = CN()
_C.FILTER.SUFFIX = ""
_C.FILTER.RESULT_TEXT = "filtered"
_C.FILTER.DIR = osp.join(_C.SLIDE.BASE_DIR, "filter_thumbnail_" + _C.SLIDE.THUMBNAIL_EXT)
_C.FILTER.PREFIX = ""
_C.FILTER.THUMBNAIL_DIR = ""
_C.TILE.SUMMARY_DIR = osp.join(_C.SLIDE.BASE_DIR, "tile_summary_" + _C.DEST_EXT)
_C.TILE.SUMMARY_ON_ORIGINAL_DIR = osp.join(_C.SLIDE.BASE_DIR, "tile_summary_on_original_" + _C.DEST_EXT)
_C.TILE.SUMMARY_SUFFIX = "tile_summary"
_C.TILE.SUMMARY_THUMBNAIL_DIR = osp.join(_C.SLIDE.BASE_DIR, "tile_summary_thumbnail_" + _C.DEST_EXT)
_C.TILE.SUMMARY_ON_ORIGINAL_THUMBNAIL_DIR = osp.join(_C.SLIDE.BASE_DIR, "tile_summary_on_original_thumbnail_" + _C.SLIDE.THUMBNAIL_EXT)
_C.TILE.SUMMARY_PAGINATION_SIZE = 50
_C.TILE.SUMMARY_PAGINATE = True
_C.TILE.SUMMARY_HTML_DIR = _C.SLIDE.BASE_DIR
_C.TILE.PATCH_IDX = ""
_C.TILE.DATA_DIR = osp.join(_C.SLIDE.BASE_DIR, "tile_data")
_C.TILE.DATA_SUFFIX = "tile_data"
_C.TOP_TILES_SUFFIX = "top_tile_summary"
_C.TOP_TILES_DIR = osp.join(_C.SLIDE.BASE_DIR, _C.TOP_TILES_SUFFIX + "_" + _C.DEST_EXT)
_C.TOP_TILES_THUMBNAIL_DIR = osp.join(_C.SLIDE.BASE_DIR, _C.TOP_TILES_SUFFIX + "_thumbnail_" + _C.DEST_EXT)
_C.TOP_TILES_ON_ORIGINAL_DIR = osp.join(_C.SLIDE.BASE_DIR, _C.TOP_TILES_SUFFIX + "_on_original_" + _C.DEST_EXT)
# _C.TOP_TILES_ON_ORIGINAL_THUMBNAIL_DIR = osp.join(_C.SLIDE.BASE_DIR,
_C.TILE_DIR = osp.join(_C.SLIDE.BASE_DIR, "tiles_" + _C.DEST_EXT)
_C.TILE_SUFFIX = "tile"
STATS_DIR = osp.join(_C.SLIDE.BASE_DIR, "svs_stats")
def get_cfg_defaults():
"""Get a yacs CfgNode object with default values for my_project."""
# Return a clone so that the defaults will not be altered
# This is for the "local variable" use pattern
return _C.clone() | [
6738,
331,
16436,
13,
88,
16436,
62,
11250,
1330,
327,
40616,
19667,
355,
31171,
201,
198,
11748,
28686,
13,
6978,
355,
267,
2777,
201,
198,
2,
3740,
1378,
12567,
13,
785,
14,
26145,
70,
343,
1477,
624,
14,
88,
16436,
201,
198,
201,
198,
62,
34,
796,
31171,
3419,
201,
198,
201,
198,
62,
34,
13,
35,
6465,
62,
13918,
796,
366,
11134,
1,
201,
198,
62,
34,
13,
4090,
6089,
62,
47,
11417,
796,
10352,
201,
198,
201,
198,
201,
198,
62,
34,
13,
8634,
14114,
796,
31171,
3419,
201,
198,
201,
198,
62,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
796,
10148,
201,
198,
62,
34,
13,
8634,
14114,
13,
6173,
21358,
62,
37,
10659,
1581,
796,
3933,
201,
198,
62,
34,
13,
8634,
14114,
13,
35,
6465,
62,
34720,
796,
10148,
201,
198,
62,
34,
13,
8634,
14114,
13,
4221,
5883,
33,
4535,
4146,
62,
33489,
796,
5867,
201,
198,
62,
34,
13,
8634,
14114,
13,
4221,
5883,
33,
4535,
4146,
62,
13918,
796,
366,
9479,
1,
201,
198,
62,
34,
13,
8634,
14114,
13,
47,
31688,
10426,
796,
10148,
201,
198,
62,
34,
13,
8634,
14114,
13,
50,
7397,
62,
34720,
796,
13538,
201,
198,
62,
34,
13,
8634,
14114,
13,
50,
7397,
62,
13918,
796,
366,
50,
20304,
1,
201,
198,
62,
34,
13,
8634,
14114,
13,
35,
6465,
62,
12564,
5777,
10426,
796,
13538,
201,
198,
62,
34,
13,
8634,
14114,
13,
35,
6465,
62,
13918,
796,
705,
9479,
6,
201,
198,
62,
34,
13,
8634,
14114,
13,
35,
6465,
62,
4221,
5883,
33,
4535,
4146,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
705,
400,
20566,
62,
6,
1343,
4808,
34,
13,
8634,
14114,
13,
4221,
5883,
33,
4535,
4146,
62,
13918,
8,
201,
198,
201,
198,
201,
198,
62,
34,
13,
46700,
5781,
796,
31171,
3419,
201,
198,
62,
34,
13,
46700,
5781,
13,
12564,
5777,
10426,
796,
13538,
201,
198,
62,
34,
13,
46700,
5781,
13,
19535,
16724,
62,
32541,
796,
366,
10379,
4400,
1,
201,
198,
62,
34,
13,
46700,
5781,
13,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
366,
24455,
62,
400,
20566,
62,
1,
1343,
4808,
34,
13,
8634,
14114,
13,
4221,
5883,
33,
4535,
4146,
62,
13918,
8,
201,
198,
62,
34,
13,
46700,
5781,
13,
47,
31688,
10426,
796,
13538,
201,
198,
62,
34,
13,
46700,
5781,
13,
4221,
5883,
33,
4535,
4146,
62,
34720,
796,
13538,
201,
198,
201,
198,
201,
198,
62,
34,
13,
25621,
2538,
13,
50,
5883,
44,
13153,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
366,
40927,
62,
49736,
62,
1,
1343,
4808,
34,
13,
35,
6465,
62,
13918,
8,
201,
198,
62,
34,
13,
25621,
2538,
13,
50,
5883,
44,
13153,
62,
1340,
62,
1581,
3528,
17961,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
366,
40927,
62,
49736,
62,
261,
62,
14986,
62,
1,
1343,
4808,
34,
13,
35,
6465,
62,
13918,
8,
201,
198,
62,
34,
13,
25621,
2538,
13,
50,
5883,
44,
13153,
62,
12564,
5777,
10426,
796,
366,
40927,
62,
49736,
1,
201,
198,
62,
34,
13,
25621,
2538,
13,
50,
5883,
44,
13153,
62,
4221,
5883,
33,
4535,
4146,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
366,
40927,
62,
49736,
62,
400,
20566,
62,
1,
1343,
4808,
34,
13,
35,
6465,
62,
13918,
8,
201,
198,
62,
34,
13,
25621,
2538,
13,
50,
5883,
44,
13153,
62,
1340,
62,
1581,
3528,
17961,
62,
4221,
5883,
33,
4535,
4146,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
366,
40927,
62,
49736,
62,
261,
62,
14986,
62,
400,
20566,
62,
1,
1343,
4808,
34,
13,
8634,
14114,
13,
4221,
5883,
33,
4535,
4146,
62,
13918,
8,
201,
198,
62,
34,
13,
25621,
2538,
13,
50,
5883,
44,
13153,
62,
4537,
38,
1268,
6234,
62,
33489,
796,
2026,
201,
198,
62,
34,
13,
25621,
2538,
13,
50,
5883,
44,
13153,
62,
4537,
38,
1268,
6158,
796,
6407,
201,
198,
62,
34,
13,
25621,
2538,
13,
50,
5883,
44,
13153,
62,
28656,
62,
34720,
796,
4808,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
201,
198,
201,
198,
62,
34,
13,
25621,
2538,
13,
47,
11417,
62,
2389,
55,
796,
13538,
201,
198,
201,
198,
62,
34,
13,
25621,
2538,
13,
26947,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
366,
40927,
62,
7890,
4943,
201,
198,
62,
34,
13,
25621,
2538,
13,
26947,
62,
12564,
5777,
10426,
796,
366,
40927,
62,
7890,
1,
201,
198,
62,
34,
13,
35222,
62,
51,
4146,
1546,
62,
12564,
5777,
10426,
796,
366,
4852,
62,
40927,
62,
49736,
1,
201,
198,
62,
34,
13,
35222,
62,
51,
4146,
1546,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
4808,
34,
13,
35222,
62,
51,
4146,
1546,
62,
12564,
5777,
10426,
1343,
45434,
1,
1343,
4808,
34,
13,
35,
6465,
62,
13918,
8,
201,
198,
62,
34,
13,
35222,
62,
51,
4146,
1546,
62,
4221,
5883,
33,
4535,
4146,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
4808,
34,
13,
35222,
62,
51,
4146,
1546,
62,
12564,
5777,
10426,
1343,
45434,
400,
20566,
62,
1,
1343,
4808,
34,
13,
35,
6465,
62,
13918,
8,
201,
198,
62,
34,
13,
35222,
62,
51,
4146,
1546,
62,
1340,
62,
1581,
3528,
17961,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
4808,
34,
13,
35222,
62,
51,
4146,
1546,
62,
12564,
5777,
10426,
1343,
45434,
261,
62,
14986,
62,
1,
1343,
4808,
34,
13,
35,
6465,
62,
13918,
8,
201,
198,
2,
4808,
34,
13,
35222,
62,
51,
4146,
1546,
62,
1340,
62,
1581,
3528,
17961,
62,
4221,
5883,
33,
4535,
4146,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
201,
198,
201,
198,
62,
34,
13,
25621,
2538,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
366,
83,
2915,
62,
1,
1343,
4808,
34,
13,
35,
6465,
62,
13918,
8,
201,
198,
62,
34,
13,
25621,
2538,
62,
12564,
5777,
10426,
796,
366,
40927,
1,
201,
198,
201,
198,
2257,
33586,
62,
34720,
796,
267,
2777,
13,
22179,
28264,
34,
13,
8634,
14114,
13,
33,
11159,
62,
34720,
11,
366,
82,
14259,
62,
34242,
4943,
201,
198,
201,
198,
201,
198,
4299,
651,
62,
37581,
62,
12286,
82,
33529,
201,
198,
220,
37227,
3855,
257,
331,
16436,
327,
40616,
19667,
2134,
351,
4277,
3815,
329,
616,
62,
16302,
526,
15931,
201,
198,
220,
1303,
8229,
257,
17271,
523,
326,
262,
26235,
481,
407,
307,
14294,
201,
198,
220,
1303,
770,
318,
329,
262,
366,
12001,
7885,
1,
779,
3912,
201,
198,
220,
1441,
4808,
34,
13,
21018,
3419
] | 1.898923 | 1,207 |
#!/usr/bin/env python
# -*- coding:UTF-8 -*-
'''
@Description:
@Author: Zpp
@Date: 2019-09-02 16:04:11
@LastEditTime: 2019-09-12 11:27:19
@LastEditors: Zpp
'''
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
48504,
12,
23,
532,
9,
12,
198,
7061,
6,
198,
31,
11828,
25,
220,
198,
31,
13838,
25,
1168,
381,
198,
31,
10430,
25,
13130,
12,
2931,
12,
2999,
1467,
25,
3023,
25,
1157,
198,
31,
5956,
18378,
7575,
25,
13130,
12,
2931,
12,
1065,
1367,
25,
1983,
25,
1129,
198,
31,
5956,
18378,
669,
25,
1168,
381,
198,
7061,
6,
198
] | 2.090909 | 77 |
import argparse
import os
import re
from argparse import ArgumentDefaultsHelpFormatter as Formatter
import numpy as np
from tqdm import tqdm
from CHECLabPy.core.io import ReaderR1
from CHECLabPy.utils.waveform import get_average_wf_per_pixel
if __name__ == '__main__':
main()
| [
11748,
1822,
29572,
198,
11748,
28686,
198,
11748,
302,
198,
6738,
1822,
29572,
1330,
45751,
7469,
13185,
22087,
8479,
1436,
355,
5178,
1436,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
256,
80,
36020,
1330,
256,
80,
36020,
198,
6738,
5870,
2943,
17822,
20519,
13,
7295,
13,
952,
1330,
25342,
49,
16,
198,
6738,
5870,
2943,
17822,
20519,
13,
26791,
13,
19204,
687,
1330,
651,
62,
23913,
62,
86,
69,
62,
525,
62,
32515,
628,
628,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198
] | 3.010526 | 95 |
"""
Tested behaviour:
* Overlapping vcf records (same CHROM, same POS): the first is kept, the rest is ignored
* Fasta records with no variation: they are output to the prg string in the order seen in the input fasta.
* Adjacent records: site markers placed adjacent to each other,
* Allele markers: in 'normal' mode, use even (allele) marker, in legacy use odd (site) marker at end of site.
"""
import filecmp
from tempfile import mkdtemp
from shutil import rmtree
from pathlib import Path
import os
import subprocess
from unittest import TestCase, mock
from gramtools.commands.build import vcf_to_prg_string
from gramtools.commands.build.vcf_to_prg_string import Vcf_to_prg
from gramtools.tests.mocks import _MockVcfRecord
"""
In-memory tests, via mocking pysam and fasta loading
"""
@mock.patch("gramtools.commands.build.vcf_to_prg_string.load_fasta")
@mock.patch("gramtools.commands.build.vcf_to_prg_string.VariantFile", spec=True)
@mock.patch("gramtools.commands.build.vcf_to_prg_string.load_fasta")
@mock.patch("gramtools.commands.build.vcf_to_prg_string.VariantFile", spec=True)
@mock.patch("gramtools.commands.build.vcf_to_prg_string.load_fasta")
@mock.patch("gramtools.commands.build.vcf_to_prg_string.VariantFile", spec=True)
@mock.patch("gramtools.commands.build.vcf_to_prg_string.load_fasta")
@mock.patch("gramtools.commands.build.vcf_to_prg_string.VariantFile", spec=True)
class Test_VcfToPrgString_OverlappingRecords(TestCase):
"""
When records overlap, keeps only the first one
"""
chroms = {"ref1": "TTTT", "ref2": "CCC"}
@mock.patch("gramtools.commands.build.vcf_to_prg_string.load_fasta")
@mock.patch("gramtools.commands.build.vcf_to_prg_string.VariantFile", spec=True)
"""
File-based tests
"""
base_dir = Path(__file__).parent.parent.parent.parent
data_dir = base_dir / "tests" / "data" / "vcf_to_prg_string"
class Utility_Tester(object):
"""
Runs python vcf to prg utility
"""
| [
37811,
198,
51,
7287,
9172,
25,
198,
220,
220,
220,
1635,
3827,
75,
5912,
410,
12993,
4406,
357,
31642,
32567,
2662,
11,
976,
28069,
2599,
262,
717,
318,
4030,
11,
262,
1334,
318,
9514,
198,
220,
220,
220,
1635,
12549,
64,
4406,
351,
645,
12291,
25,
484,
389,
5072,
284,
262,
778,
70,
4731,
287,
262,
1502,
1775,
287,
262,
5128,
3049,
64,
13,
628,
220,
220,
220,
1635,
1215,
73,
12643,
4406,
25,
2524,
19736,
4624,
15909,
284,
1123,
584,
11,
198,
220,
220,
220,
1635,
978,
293,
293,
19736,
25,
287,
705,
11265,
6,
4235,
11,
779,
772,
357,
6765,
293,
8,
18364,
11,
287,
10655,
779,
5629,
357,
15654,
8,
18364,
379,
886,
286,
2524,
13,
198,
37811,
198,
11748,
2393,
48991,
198,
6738,
20218,
7753,
1330,
33480,
67,
29510,
198,
6738,
4423,
346,
1330,
374,
16762,
631,
198,
6738,
3108,
8019,
1330,
10644,
198,
11748,
28686,
198,
11748,
850,
14681,
198,
6738,
555,
715,
395,
1330,
6208,
20448,
11,
15290,
198,
198,
6738,
14599,
31391,
13,
9503,
1746,
13,
11249,
1330,
410,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
198,
6738,
14599,
31391,
13,
9503,
1746,
13,
11249,
13,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
1330,
569,
12993,
62,
1462,
62,
1050,
70,
198,
6738,
14599,
31391,
13,
41989,
13,
76,
3320,
1330,
4808,
44,
735,
53,
12993,
23739,
628,
198,
37811,
198,
818,
12,
31673,
5254,
11,
2884,
31202,
279,
893,
321,
290,
3049,
64,
11046,
198,
37811,
628,
198,
31,
76,
735,
13,
17147,
7203,
4546,
31391,
13,
9503,
1746,
13,
11249,
13,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
13,
2220,
62,
7217,
64,
4943,
198,
31,
76,
735,
13,
17147,
7203,
4546,
31391,
13,
9503,
1746,
13,
11249,
13,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
13,
23907,
415,
8979,
1600,
1020,
28,
17821,
8,
628,
198,
31,
76,
735,
13,
17147,
7203,
4546,
31391,
13,
9503,
1746,
13,
11249,
13,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
13,
2220,
62,
7217,
64,
4943,
198,
31,
76,
735,
13,
17147,
7203,
4546,
31391,
13,
9503,
1746,
13,
11249,
13,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
13,
23907,
415,
8979,
1600,
1020,
28,
17821,
8,
628,
198,
31,
76,
735,
13,
17147,
7203,
4546,
31391,
13,
9503,
1746,
13,
11249,
13,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
13,
2220,
62,
7217,
64,
4943,
198,
31,
76,
735,
13,
17147,
7203,
4546,
31391,
13,
9503,
1746,
13,
11249,
13,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
13,
23907,
415,
8979,
1600,
1020,
28,
17821,
8,
628,
198,
31,
76,
735,
13,
17147,
7203,
4546,
31391,
13,
9503,
1746,
13,
11249,
13,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
13,
2220,
62,
7217,
64,
4943,
198,
31,
76,
735,
13,
17147,
7203,
4546,
31391,
13,
9503,
1746,
13,
11249,
13,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
13,
23907,
415,
8979,
1600,
1020,
28,
17821,
8,
198,
4871,
6208,
62,
53,
12993,
2514,
6836,
70,
10100,
62,
5886,
75,
5912,
6690,
3669,
7,
14402,
20448,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1649,
4406,
21721,
11,
7622,
691,
262,
717,
530,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
15358,
82,
796,
19779,
5420,
16,
1298,
366,
15751,
15751,
1600,
366,
5420,
17,
1298,
366,
46361,
20662,
628,
198,
31,
76,
735,
13,
17147,
7203,
4546,
31391,
13,
9503,
1746,
13,
11249,
13,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
13,
2220,
62,
7217,
64,
4943,
198,
31,
76,
735,
13,
17147,
7203,
4546,
31391,
13,
9503,
1746,
13,
11249,
13,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
13,
23907,
415,
8979,
1600,
1020,
28,
17821,
8,
628,
198,
37811,
198,
8979,
12,
3106,
5254,
198,
37811,
198,
8692,
62,
15908,
796,
10644,
7,
834,
7753,
834,
737,
8000,
13,
8000,
13,
8000,
13,
8000,
198,
7890,
62,
15908,
796,
2779,
62,
15908,
1220,
366,
41989,
1,
1220,
366,
7890,
1,
1220,
366,
85,
12993,
62,
1462,
62,
1050,
70,
62,
8841,
1,
628,
198,
4871,
34030,
62,
51,
7834,
7,
15252,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
44743,
21015,
410,
12993,
284,
778,
70,
10361,
198,
220,
220,
220,
37227,
628
] | 2.719834 | 721 |
import sys
import datetime
import requests
import json
import glob
import re
import numpy as np
import os
import csv
DATAPATH='C:/NBA'
url_base='http://data.nba.com/5s/json/cms/noseason/scoreboard/%s/games.json'
get_season(2015,dateprocess("10/27/2015"),dateprocess("4/13/2016"))
teamlist=["ATL","BKN","BOS","CHA","CHI","CLE","DAL","DEN","DET","GSW","HOU","IND","LAC","LAL","MEM","MIA","MIL","MIN","NOP","NYK","OKC","ORL","PHI","PHX","POR","SAC","SAS","TOR","UTA","WAS"]
for team in teamlist:
os.makedirs(DATAPATH+"/"+team+"/")
def pullfull:
for team in teamlist:
read_listofgames("c:/nba/listofgames_2015.csv",team)
parsecsv(team)
listed=generateplayerslist(team)
generateshots(listed,team)
read_listofgames("c:/nba/listofgames_2015.csv",teamname)
for team in teamlist:
listed=generateplayerslist(team)
generateshotsc(listed,team)
| [
11748,
25064,
201,
198,
11748,
4818,
8079,
201,
198,
11748,
7007,
201,
198,
11748,
33918,
201,
198,
11748,
15095,
201,
198,
11748,
302,
201,
198,
11748,
299,
32152,
355,
45941,
201,
198,
11748,
28686,
201,
198,
11748,
269,
21370,
201,
198,
201,
198,
201,
198,
35,
1404,
2969,
12599,
11639,
34,
14079,
32470,
6,
201,
198,
6371,
62,
8692,
11639,
4023,
1378,
7890,
13,
77,
7012,
13,
785,
14,
20,
82,
14,
17752,
14,
46406,
14,
77,
577,
888,
14,
26675,
3526,
14,
4,
82,
14,
19966,
13,
17752,
6,
201,
198,
201,
198,
1136,
62,
6230,
7,
4626,
11,
4475,
14681,
7203,
940,
14,
1983,
14,
4626,
12340,
4475,
14681,
7203,
19,
14,
1485,
14,
5304,
48774,
201,
198,
201,
198,
15097,
4868,
28,
14692,
1404,
43,
2430,
33,
29132,
2430,
33,
2640,
2430,
49285,
2430,
3398,
40,
2430,
29931,
2430,
35,
1847,
2430,
41819,
2430,
35,
2767,
2430,
14313,
54,
2430,
46685,
2430,
12115,
2430,
43,
2246,
2430,
43,
1847,
2430,
44,
3620,
2430,
44,
3539,
2430,
44,
4146,
2430,
23678,
2430,
45,
3185,
2430,
12805,
42,
2430,
11380,
34,
2430,
1581,
43,
2430,
11909,
40,
2430,
11909,
55,
2430,
44680,
2430,
50,
2246,
2430,
50,
1921,
2430,
32961,
2430,
3843,
32,
2430,
54,
1921,
8973,
201,
198,
1640,
1074,
287,
1074,
4868,
25,
201,
198,
197,
418,
13,
76,
4335,
17062,
7,
35,
1404,
2969,
12599,
10,
1,
30487,
10,
15097,
10,
1,
14,
4943,
201,
198,
201,
198,
4299,
2834,
12853,
25,
201,
198,
197,
1640,
1074,
287,
1074,
4868,
25,
201,
198,
197,
197,
961,
62,
4868,
1659,
19966,
7203,
66,
14079,
77,
7012,
14,
4868,
1659,
19966,
62,
4626,
13,
40664,
1600,
15097,
8,
201,
198,
197,
197,
1845,
2363,
21370,
7,
15097,
8,
201,
198,
197,
197,
17935,
28,
8612,
378,
32399,
4868,
7,
15097,
8,
201,
198,
197,
197,
8612,
689,
17398,
7,
17935,
11,
15097,
8,
201,
198,
197,
197,
201,
198,
201,
198,
961,
62,
4868,
1659,
19966,
7203,
66,
14079,
77,
7012,
14,
4868,
1659,
19966,
62,
4626,
13,
40664,
1600,
15097,
3672,
8,
201,
198,
201,
198,
1640,
1074,
287,
1074,
4868,
25,
201,
198,
197,
197,
17935,
28,
8612,
378,
32399,
4868,
7,
15097,
8,
201,
198,
197,
197,
8612,
689,
8940,
1416,
7,
17935,
11,
15097,
8,
201,
198
] | 2.321149 | 383 |
# This example demonstrates how to use LCM with the Python select module
import select
import lcm
from exlcm import example_t
lc = lcm.LCM()
lc.subscribe("EXAMPLE", my_handler)
try:
timeout = 1.5 # amount of time to wait, in seconds
while True:
rfds, wfds, efds = select.select([lc.fileno()], [], [], timeout)
if rfds:
lc.handle()
else:
print("Waiting for message...")
except KeyboardInterrupt:
pass
| [
2,
770,
1672,
15687,
703,
284,
779,
22228,
44,
351,
262,
11361,
2922,
8265,
198,
198,
11748,
2922,
198,
11748,
300,
11215,
198,
6738,
409,
75,
11215,
1330,
1672,
62,
83,
198,
198,
44601,
796,
300,
11215,
13,
5639,
44,
3419,
198,
44601,
13,
7266,
12522,
7203,
6369,
2390,
16437,
1600,
616,
62,
30281,
8,
198,
198,
28311,
25,
198,
220,
220,
220,
26827,
796,
352,
13,
20,
220,
1303,
2033,
286,
640,
284,
4043,
11,
287,
4201,
198,
220,
220,
220,
981,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
374,
69,
9310,
11,
266,
69,
9310,
11,
304,
69,
9310,
796,
2922,
13,
19738,
26933,
44601,
13,
10379,
23397,
3419,
4357,
685,
4357,
685,
4357,
26827,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
374,
69,
9310,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
66,
13,
28144,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
33484,
1780,
329,
3275,
9313,
8,
198,
16341,
31973,
9492,
3622,
25,
198,
220,
220,
220,
1208,
198
] | 2.404145 | 193 |
# -*- coding: utf-8 -*-
# @Time : 2019/9/6 15:46
# @Author :
# @简介 :
# @File : db_split.py
import cx_Oracle
from collections import defaultdict
import os
from copy import copy
from time import clock
from datetime import datetime, timedelta
from meter_analysis import get_meter_data, get_offset
from trace_m import trace_split_off
os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.AL32UTF8'
veh_trace = {} # restore last list in history trace for each vehicle
@debug_time
@debug_time
if __name__ == '__main__':
main()
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
2488,
7575,
220,
220,
220,
1058,
13130,
14,
24,
14,
21,
1315,
25,
3510,
198,
2,
2488,
13838,
220,
1058,
220,
198,
2,
2488,
163,
106,
222,
20015,
233,
220,
220,
220,
1058,
220,
198,
2,
2488,
8979,
220,
220,
220,
1058,
20613,
62,
35312,
13,
9078,
198,
198,
11748,
43213,
62,
48625,
198,
6738,
17268,
1330,
4277,
11600,
198,
11748,
28686,
198,
6738,
4866,
1330,
4866,
198,
6738,
640,
1330,
8801,
198,
6738,
4818,
8079,
1330,
4818,
8079,
11,
28805,
12514,
198,
6738,
16430,
62,
20930,
1330,
651,
62,
27231,
62,
7890,
11,
651,
62,
28968,
198,
6738,
12854,
62,
76,
1330,
12854,
62,
35312,
62,
2364,
198,
418,
13,
268,
2268,
17816,
45,
6561,
62,
43,
15567,
20520,
796,
705,
48913,
6489,
28343,
5870,
1268,
33635,
62,
3398,
28893,
13,
1847,
2624,
48504,
23,
6,
628,
198,
33892,
62,
40546,
796,
23884,
220,
220,
220,
220,
220,
220,
1303,
11169,
938,
1351,
287,
2106,
12854,
329,
1123,
4038,
628,
628,
628,
198,
198,
31,
24442,
62,
2435,
628,
198,
31,
24442,
62,
2435,
628,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198
] | 2.647619 | 210 |
from exception import BotUserException
from user_input import is_integer_number
from team import is_owner
from team import get_team_db_id
from team import db_teams
| [
6738,
6631,
1330,
18579,
12982,
16922,
198,
6738,
2836,
62,
15414,
1330,
318,
62,
41433,
62,
17618,
198,
6738,
1074,
1330,
318,
62,
18403,
198,
6738,
1074,
1330,
651,
62,
15097,
62,
9945,
62,
312,
198,
6738,
1074,
1330,
20613,
62,
660,
4105,
628,
198
] | 3.688889 | 45 |
from rest_framework.permissions import BasePermission, SAFE_METHODS
class IsPosterOrReadOnly(BasePermission):
"""
The request is authenticated as a poster(the one who posted the item), or is a read-only request.
"""
| [
6738,
1334,
62,
30604,
13,
525,
8481,
1330,
7308,
5990,
3411,
11,
37630,
36,
62,
49273,
50,
628,
198,
4871,
1148,
47,
6197,
5574,
5569,
10049,
7,
14881,
5990,
3411,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
383,
2581,
318,
44529,
355,
257,
11968,
7,
1169,
530,
508,
4481,
262,
2378,
828,
393,
318,
257,
1100,
12,
8807,
2581,
13,
198,
220,
220,
220,
37227,
198
] | 3.333333 | 69 |
import sys
__all__ = ["liangbarsky", "cohensutherland", "clipline", "point_on_line"]
def cohensutherland(left, top, right, bottom, x1, y1, x2, y2):
"""Clips a line to a rectangular area.
This implements the Cohen-Sutherland line clipping algorithm. ``left``,
``top``, ``right`` and ``bottom`` define the bounds of the clipping area,
by which the line from ``(x1, y1)`` to ``(x2, y2)`` will be clipped.
Args:
left (int): The left boundary of the clipping area.
top (int): The top boundary of the clipping area.
right (int): The right boundary of the clipping area.
bottom (int): The bottom boundary of the clipping area.
x1 (int): The x-coordinate of the starting point of the line.
y1 (int): The y-coordinate of the starting point of the line.
x2 (int): The x-coordinate of the end point of the line.
y2 (int): The y-coordinate of the end point of the line.
Returns:
tuple: The start and end coordinates of the clipped line in the form
``(cx1, cy1, cx2, cy2)``. If the line does not intersect with the
rectangular clipping area, all 4 values will be ``None``.
"""
LEFT, RIGHT, LOWER, UPPER = 1, 2, 4, 8
if bottom > top:
bottom, top = (top, bottom)
k1 = _getclip(x1, y1)
k2 = _getclip(x2, y2)
while (k1 | k2) != 0:
if (k1 & k2) != 0:
return None, None, None, None
opt = k2 if k2 > k1 else k1
if opt & UPPER:
x = x1 + (x2 - x1) * (1.0 * (top - y1)) / (y2 - y1)
y = top
elif opt & LOWER:
x = x1 + (x2 - x1) * (1.0 * (bottom - y1)) / (y2 - y1)
y = bottom
elif opt & RIGHT:
y = y1 + (y2 - y1) * (1.0 * (right - x1)) / (x2 - x1)
x = right
elif opt & LEFT:
y = y1 + (y2 - y1) * (1.0 * (left - x1)) / (x2 - x1)
x = left
else:
# this should not happen
raise RuntimeError("invalid clipping state")
if opt == k1:
x1, y1 = x, y
k1 = _getclip(x1, y1)
else:
x2, y2 = x, y
k2 = _getclip(x2, y2)
return x1, y1, x2, y2
def liangbarsky(left, top, right, bottom, x1, y1, x2, y2):
"""Clips a line to a rectangular area.
This implements the Liang-Barsky line clipping algorithm. ``left``,
``top``, ``right`` and ``bottom`` define the bounds of the clipping area,
by which the line from ``(x1, y1)`` to ``(x2, y2)`` will be clipped.
Args:
left (int): The left boundary of the clipping area.
top (int): The top boundary of the clipping area.
right (int): The right boundary of the clipping area.
bottom (int): The bottom boundary of the clipping area.
x1 (int): The x-coordinate of the starting point of the line.
y1 (int): The y-coordinate of the starting point of the line.
x2 (int): The x-coordinate of the end point of the line.
y2 (int): The y-coordinate of the end point of the line.
Returns:
tuple: The start and end coordinates of the clipped line in the form
``(cx1, cy1, cx2, cy2)``. If the line does not intersect with the
rectangular clipping area, all 4 values will be ``None``.
"""
dx = x2 - x1 * 1.0
dy = y2 - y1 * 1.0
dt0, dt1 = 0.0, 1.0
xx1 = x1
yy1 = y1
if bottom > top:
bottom, top = (top, bottom)
checks = ((-dx, x1 - left),
(dx, right - x1),
(-dy, y1 - bottom),
(dy, top - y1))
for p, q in checks:
if p == 0 and q < 0:
return None, None, None, None
if p != 0:
dt = q / (p * 1.0)
if p < 0:
if dt > dt1:
return None, None, None, None
dt0 = max(dt0, dt)
else:
if dt < dt0:
return None, None, None, None
dt1 = min(dt1, dt)
if dt0 > 0:
x1 += dt0 * dx
y1 += dt0 * dy
if dt1 < 1:
x2 = xx1 + dt1 * dx
y2 = yy1 + dt1 * dy
return x1, y1, x2, y2
def clipline(l, t, r, b, x1, y1, x2, y2, method='liangbarsky'):
"""Clips a line to a rectangular area using a given method.
Args:
l (int): The left boundary of the clipping area.
t (int): The top boundary of the clipping area.
r (int): The right boundary of the clipping area.
b (int): The bottom boundary of the clipping area.
x1 (int): The x-coordinate of the starting point of the line.
y1 (int): The y-coordinate of the starting point of the line.
x2 (int): The x-coordinate of the end point of the line.
y2 (int): The y-coordinate of the end point of the line.
method (str, optional): The method to use for clipping lines, can be
either 'cohensutherland' or 'liangbarsky'. Defaults to liangbarsky.
Returns:
tuple: The start and end coordinates of the clipped line in the form
``(cx1, cy1, cx2, cy2)``. If the line does not intersect with the
rectangular clipping area, all 4 values will be ``None``.
"""
if method == 'cohensutherland':
return cohensutherland(l, t, r, b, x1, y1, x2, y2)
elif method == 'liangbarsky':
return liangbarsky(l, t, r, b, x1, y1, x2, y2)
else:
raise ValueError("Unknown clipping method '{0}'".format(method))
def point_on_line(p1, p2, point):
"""Checks if a point falls along a given line segment.
Args:
p1 (tuple): The (x, y) coordinates of the starting point of the line.
p2 (tuple): The (x, y) coordinates of the end point of the line.
point (tuple): The (x, y) coordinates to test against the line.
Returns:
bool: ``True`` if the point falls along the line segment, otherwise
``False``.
"""
x1, y1 = p1
x2, y2 = p2
px, py = point
det = (py - y1) * (x2 - x1) - (px - x1) * (y2 - y1)
if abs(det) > sys.float_info.epsilon:
return False
return (min(x1, x2) <= px <= max(x1, x2) and
min(y1, y2) <= py <= max(y1, y2))
| [
11748,
25064,
198,
198,
834,
439,
834,
796,
14631,
4528,
648,
34046,
2584,
1600,
366,
1073,
5135,
45384,
1600,
366,
565,
24705,
500,
1600,
366,
4122,
62,
261,
62,
1370,
8973,
628,
198,
4299,
763,
5135,
45384,
7,
9464,
11,
1353,
11,
826,
11,
4220,
11,
2124,
16,
11,
331,
16,
11,
2124,
17,
11,
331,
17,
2599,
198,
220,
220,
220,
37227,
2601,
2419,
257,
1627,
284,
257,
36954,
1989,
13,
628,
220,
220,
220,
770,
23986,
262,
17154,
12,
50,
45384,
1627,
45013,
11862,
13,
7559,
9464,
15506,
11,
198,
220,
220,
220,
7559,
4852,
15506,
11,
7559,
3506,
15506,
290,
7559,
22487,
15506,
8160,
262,
22303,
286,
262,
45013,
1989,
11,
198,
220,
220,
220,
416,
543,
262,
1627,
422,
11592,
87,
16,
11,
331,
16,
8,
15506,
284,
11592,
87,
17,
11,
331,
17,
8,
15506,
481,
307,
49305,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1364,
357,
600,
2599,
383,
1364,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1353,
357,
600,
2599,
383,
1353,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
826,
357,
600,
2599,
383,
826,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
4220,
357,
600,
2599,
383,
4220,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
16,
357,
600,
2599,
383,
2124,
12,
37652,
4559,
286,
262,
3599,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
331,
16,
357,
600,
2599,
383,
331,
12,
37652,
4559,
286,
262,
3599,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
17,
357,
600,
2599,
383,
2124,
12,
37652,
4559,
286,
262,
886,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
331,
17,
357,
600,
2599,
383,
331,
12,
37652,
4559,
286,
262,
886,
966,
286,
262,
1627,
13,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
46545,
25,
383,
923,
290,
886,
22715,
286,
262,
49305,
1627,
287,
262,
1296,
198,
220,
220,
220,
220,
220,
220,
220,
11592,
66,
87,
16,
11,
3075,
16,
11,
43213,
17,
11,
3075,
17,
8,
15506,
13,
1002,
262,
1627,
857,
407,
36177,
351,
262,
198,
220,
220,
220,
220,
220,
220,
220,
36954,
45013,
1989,
11,
477,
604,
3815,
481,
307,
7559,
14202,
15506,
13,
628,
220,
220,
220,
37227,
198,
220,
220,
220,
12509,
9792,
11,
33621,
11,
406,
36048,
11,
471,
10246,
1137,
796,
352,
11,
362,
11,
604,
11,
807,
628,
220,
220,
220,
611,
4220,
1875,
1353,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4220,
11,
1353,
796,
357,
4852,
11,
4220,
8,
628,
220,
220,
220,
479,
16,
796,
4808,
1136,
15036,
7,
87,
16,
11,
331,
16,
8,
198,
220,
220,
220,
479,
17,
796,
4808,
1136,
15036,
7,
87,
17,
11,
331,
17,
8,
198,
220,
220,
220,
981,
357,
74,
16,
930,
479,
17,
8,
14512,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
357,
74,
16,
1222,
479,
17,
8,
14512,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
11,
6045,
11,
6045,
11,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2172,
796,
479,
17,
611,
479,
17,
1875,
479,
16,
2073,
479,
16,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2172,
1222,
471,
10246,
1137,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
2124,
16,
1343,
357,
87,
17,
532,
2124,
16,
8,
1635,
357,
16,
13,
15,
1635,
357,
4852,
532,
331,
16,
4008,
1220,
357,
88,
17,
532,
331,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
796,
1353,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2172,
1222,
406,
36048,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
2124,
16,
1343,
357,
87,
17,
532,
2124,
16,
8,
1635,
357,
16,
13,
15,
1635,
357,
22487,
532,
331,
16,
4008,
1220,
357,
88,
17,
532,
331,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
796,
4220,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2172,
1222,
33621,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
796,
331,
16,
1343,
357,
88,
17,
532,
331,
16,
8,
1635,
357,
16,
13,
15,
1635,
357,
3506,
532,
2124,
16,
4008,
1220,
357,
87,
17,
532,
2124,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
826,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2172,
1222,
12509,
9792,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
796,
331,
16,
1343,
357,
88,
17,
532,
331,
16,
8,
1635,
357,
16,
13,
15,
1635,
357,
9464,
532,
2124,
16,
4008,
1220,
357,
87,
17,
532,
2124,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
1364,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
428,
815,
407,
1645,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
43160,
12331,
7203,
259,
12102,
45013,
1181,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2172,
6624,
479,
16,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
16,
11,
331,
16,
796,
2124,
11,
331,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
16,
796,
4808,
1136,
15036,
7,
87,
16,
11,
331,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
17,
11,
331,
17,
796,
2124,
11,
331,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
17,
796,
4808,
1136,
15036,
7,
87,
17,
11,
331,
17,
8,
628,
220,
220,
220,
1441,
2124,
16,
11,
331,
16,
11,
2124,
17,
11,
331,
17,
628,
198,
4299,
7649,
648,
34046,
2584,
7,
9464,
11,
1353,
11,
826,
11,
4220,
11,
2124,
16,
11,
331,
16,
11,
2124,
17,
11,
331,
17,
2599,
198,
220,
220,
220,
37227,
2601,
2419,
257,
1627,
284,
257,
36954,
1989,
13,
628,
220,
220,
220,
770,
23986,
262,
43322,
12,
33,
945,
2584,
1627,
45013,
11862,
13,
7559,
9464,
15506,
11,
198,
220,
220,
220,
7559,
4852,
15506,
11,
7559,
3506,
15506,
290,
7559,
22487,
15506,
8160,
262,
22303,
286,
262,
45013,
1989,
11,
198,
220,
220,
220,
416,
543,
262,
1627,
422,
11592,
87,
16,
11,
331,
16,
8,
15506,
284,
11592,
87,
17,
11,
331,
17,
8,
15506,
481,
307,
49305,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1364,
357,
600,
2599,
383,
1364,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1353,
357,
600,
2599,
383,
1353,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
826,
357,
600,
2599,
383,
826,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
4220,
357,
600,
2599,
383,
4220,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
16,
357,
600,
2599,
383,
2124,
12,
37652,
4559,
286,
262,
3599,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
331,
16,
357,
600,
2599,
383,
331,
12,
37652,
4559,
286,
262,
3599,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
17,
357,
600,
2599,
383,
2124,
12,
37652,
4559,
286,
262,
886,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
331,
17,
357,
600,
2599,
383,
331,
12,
37652,
4559,
286,
262,
886,
966,
286,
262,
1627,
13,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
46545,
25,
383,
923,
290,
886,
22715,
286,
262,
49305,
1627,
287,
262,
1296,
198,
220,
220,
220,
220,
220,
220,
220,
11592,
66,
87,
16,
11,
3075,
16,
11,
43213,
17,
11,
3075,
17,
8,
15506,
13,
1002,
262,
1627,
857,
407,
36177,
351,
262,
198,
220,
220,
220,
220,
220,
220,
220,
36954,
45013,
1989,
11,
477,
604,
3815,
481,
307,
7559,
14202,
15506,
13,
628,
220,
220,
220,
37227,
198,
220,
220,
220,
44332,
796,
2124,
17,
532,
2124,
16,
1635,
352,
13,
15,
198,
220,
220,
220,
20268,
796,
331,
17,
532,
331,
16,
1635,
352,
13,
15,
198,
220,
220,
220,
288,
83,
15,
11,
288,
83,
16,
796,
657,
13,
15,
11,
352,
13,
15,
198,
220,
220,
220,
31383,
16,
796,
2124,
16,
198,
220,
220,
220,
331,
88,
16,
796,
331,
16,
628,
220,
220,
220,
611,
4220,
1875,
1353,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4220,
11,
1353,
796,
357,
4852,
11,
4220,
8,
628,
220,
220,
220,
8794,
796,
14808,
12,
34350,
11,
2124,
16,
532,
1364,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
34350,
11,
826,
532,
2124,
16,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13841,
9892,
11,
331,
16,
532,
4220,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
9892,
11,
1353,
532,
331,
16,
4008,
628,
220,
220,
220,
329,
279,
11,
10662,
287,
8794,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
279,
6624,
657,
290,
10662,
1279,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
11,
6045,
11,
6045,
11,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
611,
279,
14512,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
83,
796,
10662,
1220,
357,
79,
1635,
352,
13,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
279,
1279,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
288,
83,
1875,
288,
83,
16,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
11,
6045,
11,
6045,
11,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
83,
15,
796,
3509,
7,
28664,
15,
11,
288,
83,
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,
611,
288,
83,
1279,
288,
83,
15,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
11,
6045,
11,
6045,
11,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
83,
16,
796,
949,
7,
28664,
16,
11,
288,
83,
8,
628,
220,
220,
220,
611,
288,
83,
15,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
16,
15853,
288,
83,
15,
1635,
44332,
198,
220,
220,
220,
220,
220,
220,
220,
331,
16,
15853,
288,
83,
15,
1635,
20268,
198,
220,
220,
220,
611,
288,
83,
16,
1279,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
17,
796,
31383,
16,
1343,
288,
83,
16,
1635,
44332,
198,
220,
220,
220,
220,
220,
220,
220,
331,
17,
796,
331,
88,
16,
1343,
288,
83,
16,
1635,
20268,
628,
220,
220,
220,
1441,
2124,
16,
11,
331,
16,
11,
2124,
17,
11,
331,
17,
628,
198,
4299,
537,
24705,
500,
7,
75,
11,
256,
11,
374,
11,
275,
11,
2124,
16,
11,
331,
16,
11,
2124,
17,
11,
331,
17,
11,
2446,
11639,
4528,
648,
34046,
2584,
6,
2599,
198,
220,
220,
220,
37227,
2601,
2419,
257,
1627,
284,
257,
36954,
1989,
1262,
257,
1813,
2446,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
300,
357,
600,
2599,
383,
1364,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
256,
357,
600,
2599,
383,
1353,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
374,
357,
600,
2599,
383,
826,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
275,
357,
600,
2599,
383,
4220,
18645,
286,
262,
45013,
1989,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
16,
357,
600,
2599,
383,
2124,
12,
37652,
4559,
286,
262,
3599,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
331,
16,
357,
600,
2599,
383,
331,
12,
37652,
4559,
286,
262,
3599,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
17,
357,
600,
2599,
383,
2124,
12,
37652,
4559,
286,
262,
886,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
331,
17,
357,
600,
2599,
383,
331,
12,
37652,
4559,
286,
262,
886,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2446,
357,
2536,
11,
11902,
2599,
383,
2446,
284,
779,
329,
45013,
3951,
11,
460,
307,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2035,
705,
1073,
5135,
45384,
6,
393,
705,
4528,
648,
34046,
2584,
4458,
2896,
13185,
284,
7649,
648,
34046,
2584,
13,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
46545,
25,
383,
923,
290,
886,
22715,
286,
262,
49305,
1627,
287,
262,
1296,
198,
220,
220,
220,
220,
220,
220,
220,
11592,
66,
87,
16,
11,
3075,
16,
11,
43213,
17,
11,
3075,
17,
8,
15506,
13,
1002,
262,
1627,
857,
407,
36177,
351,
262,
198,
220,
220,
220,
220,
220,
220,
220,
36954,
45013,
1989,
11,
477,
604,
3815,
481,
307,
7559,
14202,
15506,
13,
628,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
2446,
6624,
705,
1073,
5135,
45384,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
763,
5135,
45384,
7,
75,
11,
256,
11,
374,
11,
275,
11,
2124,
16,
11,
331,
16,
11,
2124,
17,
11,
331,
17,
8,
198,
220,
220,
220,
1288,
361,
2446,
6624,
705,
4528,
648,
34046,
2584,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
7649,
648,
34046,
2584,
7,
75,
11,
256,
11,
374,
11,
275,
11,
2124,
16,
11,
331,
16,
11,
2124,
17,
11,
331,
17,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
20035,
45013,
2446,
705,
90,
15,
92,
6,
1911,
18982,
7,
24396,
4008,
628,
198,
4299,
966,
62,
261,
62,
1370,
7,
79,
16,
11,
279,
17,
11,
966,
2599,
198,
220,
220,
220,
37227,
7376,
4657,
611,
257,
966,
8953,
1863,
257,
1813,
1627,
10618,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
357,
83,
29291,
2599,
383,
357,
87,
11,
331,
8,
22715,
286,
262,
3599,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
279,
17,
357,
83,
29291,
2599,
383,
357,
87,
11,
331,
8,
22715,
286,
262,
886,
966,
286,
262,
1627,
13,
198,
220,
220,
220,
220,
220,
220,
220,
966,
357,
83,
29291,
2599,
383,
357,
87,
11,
331,
8,
22715,
284,
1332,
1028,
262,
1627,
13,
198,
220,
220,
220,
220,
198,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
20512,
25,
7559,
17821,
15506,
611,
262,
966,
8953,
1863,
262,
1627,
10618,
11,
4306,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
25101,
15506,
13,
628,
220,
220,
220,
37227,
198,
220,
220,
220,
2124,
16,
11,
331,
16,
796,
279,
16,
198,
220,
220,
220,
2124,
17,
11,
331,
17,
796,
279,
17,
198,
220,
220,
220,
279,
87,
11,
12972,
796,
966,
198,
220,
220,
220,
1062,
796,
357,
9078,
532,
331,
16,
8,
1635,
357,
87,
17,
532,
2124,
16,
8,
532,
357,
8416,
532,
2124,
16,
8,
1635,
357,
88,
17,
532,
331,
16,
8,
198,
220,
220,
220,
611,
2352,
7,
15255,
8,
1875,
25064,
13,
22468,
62,
10951,
13,
538,
18217,
261,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
198,
220,
220,
220,
1441,
357,
1084,
7,
87,
16,
11,
2124,
17,
8,
19841,
279,
87,
19841,
3509,
7,
87,
16,
11,
2124,
17,
8,
290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
949,
7,
88,
16,
11,
331,
17,
8,
19841,
12972,
19841,
3509,
7,
88,
16,
11,
331,
17,
4008,
198
] | 2.169765 | 2,851 |
# coding:utf-8
from .io import load_config, dump_config, register_dump_config, register_load_config
from .io import (
allow_unsafe_yaml,
require_safe_yaml,
ConfigFormat,
LEGAL_CONFIG_EXTENSIONS,
)
from .python import (
is_json_serializable,
UnsafePythonSourceConfig,
PythonConfigNotSerializable,
)
from .ini import INIConfigUnserializable
| [
2,
19617,
25,
40477,
12,
23,
198,
198,
6738,
764,
952,
1330,
3440,
62,
11250,
11,
10285,
62,
11250,
11,
7881,
62,
39455,
62,
11250,
11,
7881,
62,
2220,
62,
11250,
198,
6738,
764,
952,
1330,
357,
198,
220,
220,
220,
1249,
62,
13271,
8635,
62,
88,
43695,
11,
198,
220,
220,
220,
2421,
62,
21230,
62,
88,
43695,
11,
198,
220,
220,
220,
17056,
26227,
11,
198,
220,
220,
220,
20978,
1847,
62,
10943,
16254,
62,
13918,
16938,
11053,
11,
198,
8,
198,
6738,
764,
29412,
1330,
357,
198,
220,
220,
220,
318,
62,
17752,
62,
46911,
13821,
11,
198,
220,
220,
220,
791,
21230,
37906,
7416,
16934,
11,
198,
220,
220,
220,
11361,
16934,
3673,
32634,
13821,
11,
198,
8,
198,
6738,
764,
5362,
1330,
3268,
2149,
261,
5647,
3118,
46911,
13821,
198
] | 2.725926 | 135 |
import json
with open('example.json') as f:
data = json.loads(f.read())
print(data)
print(type(data)) | [
11748,
33918,
198,
198,
4480,
1280,
10786,
20688,
13,
17752,
11537,
355,
277,
25,
198,
220,
220,
220,
1366,
796,
33918,
13,
46030,
7,
69,
13,
961,
28955,
198,
198,
4798,
7,
7890,
8,
198,
4798,
7,
4906,
7,
7890,
4008
] | 2.609756 | 41 |
#!/usr/bin/env python
# Filename: eva_report_to_tables
"""
introduction: convert multiple evaluation reports to tables.
authors: Huang Lingcao
email:[email protected]
add time: 28 June, 2020
"""
import os,sys
import re
from optparse import OptionParser
import pandas as pd
if __name__ == "__main__":
usage = "usage: %prog [options] eva_report eva_report ... "
parser = OptionParser(usage=usage, version="1.0 2020-6-28")
parser.description = 'Introduction: convert the evaluation reports to tables'
parser.add_option("-o", "--output",
action="store", dest="output",default="accuracy_table.xlsx",
help="the output file path")
(options, args) = parser.parse_args()
if len(sys.argv) < 2:
parser.print_help()
sys.exit(2)
main(options, args)
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
7066,
12453,
25,
819,
64,
62,
13116,
62,
1462,
62,
83,
2977,
220,
198,
37811,
198,
27427,
596,
25,
10385,
3294,
12660,
3136,
284,
8893,
13,
198,
198,
41617,
25,
31663,
25116,
66,
5488,
198,
12888,
25,
13415,
27499,
66,
5488,
31,
14816,
13,
785,
198,
2860,
640,
25,
2579,
2795,
11,
12131,
198,
37811,
198,
11748,
28686,
11,
17597,
198,
11748,
302,
198,
198,
6738,
2172,
29572,
1330,
16018,
46677,
198,
198,
11748,
19798,
292,
355,
279,
67,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
8748,
796,
366,
26060,
25,
4064,
1676,
70,
685,
25811,
60,
819,
64,
62,
13116,
819,
64,
62,
13116,
2644,
366,
198,
220,
220,
220,
30751,
796,
16018,
46677,
7,
26060,
28,
26060,
11,
2196,
2625,
16,
13,
15,
12131,
12,
21,
12,
2078,
4943,
198,
220,
220,
220,
30751,
13,
11213,
796,
705,
21906,
25,
10385,
262,
12660,
3136,
284,
8893,
6,
628,
220,
220,
220,
30751,
13,
2860,
62,
18076,
7203,
12,
78,
1600,
366,
438,
22915,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2223,
2625,
8095,
1600,
2244,
2625,
22915,
1600,
12286,
2625,
4134,
23843,
62,
11487,
13,
87,
7278,
87,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
2625,
1169,
5072,
2393,
3108,
4943,
628,
220,
220,
220,
357,
25811,
11,
26498,
8,
796,
30751,
13,
29572,
62,
22046,
3419,
198,
220,
220,
220,
611,
18896,
7,
17597,
13,
853,
85,
8,
1279,
362,
25,
198,
220,
220,
220,
220,
220,
220,
220,
30751,
13,
4798,
62,
16794,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
7,
17,
8,
628,
220,
220,
220,
1388,
7,
25811,
11,
26498,
8,
628
] | 2.576687 | 326 |
from SublimeLinter.lint import ComposerLinter
| [
6738,
3834,
27299,
43,
3849,
13,
75,
600,
1330,
29936,
263,
43,
3849,
628
] | 3.357143 | 14 |
from unittest import TestCase
from base_plugin import BasePlugin
| [
6738,
555,
715,
395,
1330,
6208,
20448,
198,
198,
6738,
2779,
62,
33803,
1330,
7308,
37233,
628
] | 3.941176 | 17 |
#!/usr/bin/python2
# Send a face to be recognized. This is a ros node. First run node tfwho.
import rospy
import numpy as np
import logging
from cv_bridge import CvBridge
if __name__ == '__main__':
main() | [
2,
48443,
14629,
14,
8800,
14,
29412,
17,
198,
198,
2,
16290,
257,
1986,
284,
307,
8018,
13,
770,
318,
257,
686,
82,
10139,
13,
3274,
1057,
10139,
48700,
8727,
13,
198,
11748,
686,
2777,
88,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
18931,
198,
6738,
269,
85,
62,
9458,
1330,
327,
85,
37385,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419
] | 2.876712 | 73 |
#
# PySNMP MIB module Fore-Errors-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Fore-Errors-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:03:25 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint")
snmpErrors, = mibBuilder.importSymbols("Fore-Common-MIB", "snmpErrors")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
NotificationType, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Gauge32, ObjectIdentity, Counter32, ModuleIdentity, TimeTicks, IpAddress, Bits, MibIdentifier, Counter64, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Gauge32", "ObjectIdentity", "Counter32", "ModuleIdentity", "TimeTicks", "IpAddress", "Bits", "MibIdentifier", "Counter64", "Integer32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
errorLogMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 326, 1, 2, 3))
if mibBuilder.loadTexts: errorLogMib.setLastUpdated('9911050000Z')
if mibBuilder.loadTexts: errorLogMib.setOrganization('FORE')
lastLogMessage = MibScalar((1, 3, 6, 1, 4, 1, 326, 1, 2, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lastLogMessage.setStatus('current')
lastLogMessageOID = MibScalar((1, 3, 6, 1, 4, 1, 326, 1, 2, 2), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lastLogMessageOID.setStatus('current')
mibBuilder.exportSymbols("Fore-Errors-MIB", lastLogMessageOID=lastLogMessageOID, PYSNMP_MODULE_ID=errorLogMib, lastLogMessage=lastLogMessage, errorLogMib=errorLogMib)
| [
2,
198,
2,
9485,
15571,
7378,
337,
9865,
8265,
4558,
12,
9139,
5965,
12,
8895,
33,
357,
4023,
1378,
16184,
76,
489,
8937,
13,
785,
14,
79,
893,
11632,
8,
198,
2,
7054,
45,
13,
16,
2723,
2393,
1378,
14,
14490,
14,
67,
615,
47562,
19,
14,
13603,
14,
76,
571,
82,
13,
16184,
76,
489,
8937,
13,
785,
14,
292,
77,
16,
14,
16351,
12,
9139,
5965,
12,
8895,
33,
198,
2,
21522,
771,
416,
279,
893,
11632,
12,
15,
13,
18,
13,
19,
379,
2892,
2758,
2808,
678,
25,
3070,
25,
1495,
13130,
198,
2,
1550,
2583,
42274,
54,
15567,
19,
12,
44,
12,
1415,
2425,
3859,
21450,
2196,
1248,
13,
20,
13,
15,
416,
2836,
288,
615,
47562,
19,
198,
2,
8554,
11361,
2196,
513,
13,
22,
13,
18,
357,
12286,
11,
1526,
2681,
13130,
11,
7769,
25,
1954,
25,
1314,
8,
220,
198,
2,
198,
46541,
11,
2556,
316,
10100,
11,
9515,
33234,
7483,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
1921,
45,
16,
1600,
366,
46541,
1600,
366,
12349,
316,
10100,
1600,
366,
10267,
33234,
7483,
4943,
198,
45,
2434,
40161,
11,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
1921,
45,
16,
12,
1677,
5883,
1137,
6234,
1600,
366,
45,
2434,
40161,
4943,
198,
11395,
10699,
3103,
2536,
2913,
11,
1482,
2536,
6003,
38176,
11,
1482,
2536,
6003,
9492,
5458,
11,
14206,
11395,
3103,
2536,
2913,
11,
11052,
17257,
3103,
2536,
2913,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
1921,
45,
16,
12,
2200,
20032,
12529,
1600,
366,
11395,
10699,
3103,
2536,
2913,
1600,
366,
3103,
2536,
6003,
38176,
1600,
366,
3103,
2536,
6003,
9492,
5458,
1600,
366,
28008,
11395,
3103,
2536,
2913,
1600,
366,
11395,
17257,
3103,
2536,
2913,
4943,
198,
16184,
3149,
9139,
5965,
11,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
16351,
12,
17227,
12,
8895,
33,
1600,
366,
16184,
3149,
9139,
5965,
4943,
198,
26796,
38143,
3610,
11,
42808,
13247,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
15571,
7378,
85,
17,
12,
10943,
37,
1600,
366,
26796,
38143,
3610,
1600,
366,
3673,
2649,
13247,
4943,
198,
3673,
2649,
6030,
11,
791,
32696,
2624,
11,
337,
571,
3351,
282,
283,
11,
337,
571,
10962,
11,
337,
571,
10962,
25166,
11,
337,
571,
10962,
39470,
11,
47279,
11,
35094,
469,
2624,
11,
9515,
7390,
26858,
11,
15034,
2624,
11,
19937,
7390,
26858,
11,
3862,
51,
3378,
11,
314,
79,
20231,
11,
44733,
11,
337,
571,
33234,
7483,
11,
15034,
2414,
11,
34142,
2624,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
15571,
7378,
85,
17,
12,
50,
8895,
1600,
366,
3673,
2649,
6030,
1600,
366,
3118,
32696,
2624,
1600,
366,
44,
571,
3351,
282,
283,
1600,
366,
44,
571,
10962,
1600,
366,
44,
571,
10962,
25166,
1600,
366,
44,
571,
10962,
39470,
1600,
366,
26786,
1600,
366,
38,
559,
469,
2624,
1600,
366,
10267,
7390,
26858,
1600,
366,
31694,
2624,
1600,
366,
26796,
7390,
26858,
1600,
366,
7575,
51,
3378,
1600,
366,
40,
79,
20231,
1600,
366,
33,
896,
1600,
366,
44,
571,
33234,
7483,
1600,
366,
31694,
2414,
1600,
366,
46541,
2624,
4943,
198,
8206,
723,
3103,
4018,
11,
16531,
10100,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
15571,
7378,
85,
17,
12,
4825,
1600,
366,
8206,
723,
3103,
4018,
1600,
366,
23114,
10100,
4943,
198,
18224,
11187,
44,
571,
796,
19937,
7390,
26858,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
40660,
11,
352,
11,
362,
11,
513,
4008,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
4049,
11187,
44,
571,
13,
2617,
5956,
17354,
10786,
2079,
11442,
20,
2388,
57,
11537,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
4049,
11187,
44,
571,
13,
2617,
26121,
1634,
10786,
30818,
11537,
198,
12957,
11187,
12837,
796,
337,
571,
3351,
282,
283,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
40660,
11,
352,
11,
362,
11,
352,
828,
16531,
10100,
22446,
7266,
4906,
7,
7266,
4906,
22882,
28,
11395,
10699,
3103,
2536,
2913,
7,
15,
11,
14280,
4008,
737,
2617,
11518,
15457,
7203,
961,
8807,
4943,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
938,
11187,
12837,
13,
2617,
19580,
10786,
14421,
11537,
198,
12957,
11187,
12837,
46,
2389,
796,
337,
571,
3351,
282,
283,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
40660,
11,
352,
11,
362,
11,
362,
828,
9515,
33234,
7483,
3419,
737,
2617,
11518,
15457,
7203,
961,
8807,
4943,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
938,
11187,
12837,
46,
2389,
13,
2617,
19580,
10786,
14421,
11537,
198,
76,
571,
32875,
13,
39344,
13940,
2022,
10220,
7203,
16351,
12,
9139,
5965,
12,
8895,
33,
1600,
938,
11187,
12837,
46,
2389,
28,
12957,
11187,
12837,
46,
2389,
11,
350,
56,
15571,
7378,
62,
33365,
24212,
62,
2389,
28,
18224,
11187,
44,
571,
11,
938,
11187,
12837,
28,
12957,
11187,
12837,
11,
4049,
11187,
44,
571,
28,
18224,
11187,
44,
571,
8,
198
] | 2.753247 | 847 |
import os
import shutil | [
11748,
28686,
198,
11748,
4423,
346
] | 3.833333 | 6 |
"""Python wrapper for GTA Orange's vehicle functions
Subscribable built-in events:
+===============+=========================+====================================+
| name | vehicle-local arguments | global arguments |
+===============+=========================+====================================+
| playerentered | player (Player) | vehicle (Vehicle), player (Player) |
+---------------+-------------------------+------------------------------------+
| playerleft | player (Player) | vehicle (Vehicle), player (Player) |
+---------------+-------------------------+------------------------------------+
| creation | --- | vehicle (Vehicle) |
+---------------+-------------------------+------------------------------------+
| deletion | --- | vehicle (Vehicle) |
+---------------+-------------------------+------------------------------------+
Subscribable events from other core libraries:
+===============+=========================+====================================+
| name | vehicle-local arguments | global arguments |
+===============+=========================+====================================+
| enteredmarker | marker (Marker) | vehicle (Vehicle), marker (Marker) |
+---------------+-------------------------+------------------------------------+
| leftmarker | marker (Marker) | vehicle (Vehicle), marker (Marker) |
+---------------+-------------------------+------------------------------------+
"""
import __orange__
from GTAOrange import world as _world
from GTAOrange import text as _text
from GTAOrange import player as _player
from GTAOrange import event as _event
__pool = {}
__ehandlers = {}
# attachOwnText
# attachOwnBlip
class Vehicle():
"""Vehicle class
DO NOT GENERATE NEW OBJECTS DIRECTLY! Please use the create() function instead.
Attributes:
id (int): vehicle id
meta (dict): for future releases
texts (dict): texts added to the vehicle
"""
id = None
model = None
meta = {}
texts = {}
_ehandlers = {}
def __init__(self, id, model=None):
"""Initializes a new Vehicle object.
Args:
id (int): vehicle id
"""
self.id = id
self.model = model
def attachBlip(self, name="Vehicle", scale=0.6, color=None, sprite=None):
"""Creates and attaches a blip to the vehicle.
Args:
name (str, optional): blip name
scale (float, optional): blip scale
color (GTAOrange.blip.Color, optional): blip color (see blip library -> classes at the eof)
sprite (GTAOrange.blip.Sprite, optional): blip sprite (see blip library -> classes at the eof)
Returns:
GTAOrange.blip.Blip: generated blip
"""
from GTAOrange import blip as _blip
blip = _blip.create(name, 0, 0, 0, scale, color if color is not None else _blip.Color.ORANGE,
sprite if sprite is not None else _blip.Sprite.STANDARD)
blip.attachTo(self)
return blip
def attachText(self, text, x=0, y=0, z=0, tcolor=0xFFFFFFFF, ocolor=0xFFFFFFFF, size=20):
"""Creates and attaches a 3d text to the vehicle.
Args:
text (str): text which will be added
x (int, optional): x-coord
y (int, optional): y-coord
z (int, optional): z-coord
tcolor (int, optional): text color
ocolor (int, optional): outline color
size (int, optional): font size
Returns:
GTAOrange.text.Text: Description
"""
txt = _text.create(text, 0, 0, 72, tcolor, ocolor, size)
txt.attachToVeh(self, x, y, z)
self.texts[txt.id] = txt
return txt
def delete(self):
"""Deletes the vehicle.
"""
deleteByID(self.id)
def distanceTo(self, x, y, z=None):
"""Returns the distance from vehicle to the given coordinates.
Args:
x (float): x-coord
y (float): y-coord
z (float, optional): z-coord
Returns:
float: distance between vehicle and given coordinates
"""
if z is not None:
x1, y1, z1 = self.getPosition()
return _world.getDistance(x1, y1, z1, x, y, z)
else:
x1, y1 = self.getPosition()
return _world.getDistance(x1, y1, x, y)
def getID(self):
"""Returns vehicle id.
Returns:
int: vehicle id
"""
return self.id
def getModel(self):
"""Returns model string.
Returns:
str: model string (e.g. "Burrito") (returns None, when the vehicle wasn't created in Python!)
"""
return self.model
def getPosition(self):
"""Returns current vehicle position.
Returns:
tuple: position tuple with 3 values
"""
return __orange__.GetVehiclePosition(self.id)
def equals(self, veh):
"""Checks if given object IS this object.
Args:
veh (GTAOrange.vehicle.Vehicle): vehicle object
Returns:
bool: True if it is the object, False if it isn't the object
"""
if isinstance(veh, Vehicle):
return self.id == veh.id
else:
return False
def on(self, event, cb):
"""Subscribes for an event only for this vehicle.
Args:
event (string): event name
cb (function): callback function
"""
if event in self._ehandlers.keys():
self._ehandlers[event].append(_event.Event(cb))
else:
self._ehandlers[event] = []
self._ehandlers[event].append(_event.Event(cb))
def trigger(self, event, *args):
"""Triggers an event for the event handlers subscribing to this specific vehicle.
Args:
event (string): event name
*args: arguments
"""
if event in self._ehandlers.keys():
for handler in self._ehandlers[event]:
handler.getCallback()(self, *args)
def create(model, x, y, z, h):
"""Creates a new vehicle.
This is the right way to spawn a new vehicle.
Args:
model (str OR int): model name OR hash
x (float): x-coord
y (float): y-coord
z (float): z-coord
h (float): heading
Returns:
GTAOrange.vehicle.Vehicle: vehicle object
"""
veh = Vehicle(__orange__.CreateVehicle(model, x, y, z, h), model)
__pool[veh.id] = veh
trigger("creation", veh)
return veh
def deleteByID(id):
"""Deletes a vehicle object by the given id.
Args:
id (int): vehicle id
Returns:
bool: True on success, False on failure
Raises:
TypeError: raises if vehicle id is not int
"""
global __pool
if isinstance(id, int):
if exists(id):
if id in __pool.keys():
trigger("deletion", __pool[id])
del __pool[id]
return __orange__.DeleteVehicle(id)
return False
else:
raise TypeError('Vehicle ID must be an integer')
def exists(id):
"""Checks if a vehicle with the given id exists internally.
TODO: Unimplemented atm.
Args:
id (int): vehicle id
Returns:
bool: True on yes, False on no
"""
# return __orange__.VehicleExists(id)
return True
def getByID(id):
"""Returns vehicle object by given id.
Args:
id (int): vehicle id
Returns:
GTAOrange.vehicle.Vehicle: vehicle object (False on failure)
Raises:
TypeError: raises if vehicle id is not int
"""
global __pool
if isinstance(id, int):
if exists(id):
if id not in __pool.keys():
__pool[id] = Vehicle(id)
return __pool[id]
return False
else:
raise TypeError('Vehicle ID must be an integer')
def getAll():
"""Returns dictionary with all vehicle objects.
WARNING! Can cause heavy load on some servers. If you can avoid using it, don't use it!
Returns:
dict: vehicle dictionary
"""
return __pool
def on(event, cb):
"""Subscribes for an event for all vehicles.
Args:
event (string): event name
cb (function): callback function
"""
if event in __ehandlers.keys():
__ehandlers[event].append(_event.Event(cb))
else:
__ehandlers[event] = []
__ehandlers[event].append(_event.Event(cb))
def trigger(event, *args):
"""Triggers an event for all vehicles.
Args:
event (string): event name
*args: arguments
"""
if event in __ehandlers.keys():
for handler in __ehandlers[event]:
handler.getCallback()(*args)
__orange__.AddServerEvent(_onPlayerEntered, "EnterVehicle")
__orange__.AddServerEvent(_onPlayerLeft, "LeftVehicle")
| [
37811,
37906,
29908,
329,
30807,
11942,
338,
4038,
5499,
198,
198,
7004,
40075,
540,
3170,
12,
259,
2995,
25,
198,
10,
25609,
18604,
10,
4770,
2559,
28,
10,
10052,
1421,
10,
198,
91,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
930,
4038,
12,
12001,
7159,
930,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3298,
7159,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
10,
25609,
18604,
10,
4770,
2559,
28,
10,
10052,
1421,
10,
198,
91,
711,
9100,
1068,
930,
2137,
357,
14140,
8,
220,
220,
220,
220,
220,
220,
220,
220,
930,
4038,
357,
37870,
1548,
828,
2137,
357,
14140,
8,
930,
198,
10,
24305,
10,
22369,
19529,
3880,
650,
10,
198,
91,
2137,
9464,
220,
220,
220,
930,
2137,
357,
14140,
8,
220,
220,
220,
220,
220,
220,
220,
220,
930,
4038,
357,
37870,
1548,
828,
2137,
357,
14140,
8,
930,
198,
10,
24305,
10,
22369,
19529,
3880,
650,
10,
198,
91,
6282,
220,
220,
220,
220,
220,
930,
11420,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
4038,
357,
37870,
1548,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
10,
24305,
10,
22369,
19529,
3880,
650,
10,
198,
91,
39948,
220,
220,
220,
220,
220,
930,
11420,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
4038,
357,
37870,
1548,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
10,
24305,
10,
22369,
19529,
3880,
650,
10,
198,
198,
7004,
40075,
540,
2995,
422,
584,
4755,
12782,
25,
198,
10,
25609,
18604,
10,
4770,
2559,
28,
10,
10052,
1421,
10,
198,
91,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
930,
4038,
12,
12001,
7159,
930,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3298,
7159,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
10,
25609,
18604,
10,
4770,
2559,
28,
10,
10052,
1421,
10,
198,
91,
5982,
4102,
263,
930,
18364,
357,
9704,
263,
8,
220,
220,
220,
220,
220,
220,
220,
220,
930,
4038,
357,
37870,
1548,
828,
18364,
357,
9704,
263,
8,
930,
198,
10,
24305,
10,
22369,
19529,
3880,
650,
10,
198,
91,
1364,
4102,
263,
220,
220,
220,
930,
18364,
357,
9704,
263,
8,
220,
220,
220,
220,
220,
220,
220,
220,
930,
4038,
357,
37870,
1548,
828,
18364,
357,
9704,
263,
8,
930,
198,
10,
24305,
10,
22369,
19529,
3880,
650,
10,
198,
37811,
198,
11748,
11593,
43745,
834,
198,
6738,
30807,
40141,
1330,
995,
355,
4808,
6894,
198,
6738,
30807,
40141,
1330,
2420,
355,
4808,
5239,
198,
6738,
30807,
40141,
1330,
2137,
355,
4808,
7829,
198,
6738,
30807,
40141,
1330,
1785,
355,
4808,
15596,
198,
198,
834,
7742,
796,
23884,
198,
834,
68,
4993,
8116,
796,
23884,
198,
198,
2,
10199,
23858,
8206,
198,
2,
10199,
23858,
3629,
541,
628,
198,
4871,
21501,
33529,
198,
220,
220,
220,
37227,
37870,
1548,
1398,
628,
220,
220,
220,
8410,
5626,
24700,
1137,
6158,
12682,
25334,
41,
2943,
4694,
42242,
11319,
0,
4222,
779,
262,
2251,
3419,
2163,
2427,
13,
628,
220,
220,
220,
49213,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
357,
600,
2599,
4038,
4686,
198,
220,
220,
220,
220,
220,
220,
220,
13634,
357,
11600,
2599,
329,
2003,
10050,
198,
220,
220,
220,
220,
220,
220,
220,
13399,
357,
11600,
2599,
13399,
2087,
284,
262,
4038,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
4686,
796,
6045,
198,
220,
220,
220,
2746,
796,
6045,
198,
220,
220,
220,
13634,
796,
23884,
198,
220,
220,
220,
13399,
796,
23884,
628,
220,
220,
220,
4808,
68,
4993,
8116,
796,
23884,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
4686,
11,
2746,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
4340,
257,
649,
21501,
2134,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
357,
600,
2599,
4038,
4686,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
312,
796,
4686,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
19849,
796,
2746,
628,
220,
220,
220,
825,
10199,
3629,
541,
7,
944,
11,
1438,
2625,
37870,
1548,
1600,
5046,
28,
15,
13,
21,
11,
3124,
28,
14202,
11,
33810,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16719,
274,
290,
48262,
257,
698,
541,
284,
262,
4038,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
357,
2536,
11,
11902,
2599,
698,
541,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5046,
357,
22468,
11,
11902,
2599,
698,
541,
5046,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3124,
357,
38,
5603,
40141,
13,
2436,
541,
13,
10258,
11,
11902,
2599,
698,
541,
3124,
357,
3826,
698,
541,
5888,
4613,
6097,
379,
262,
304,
1659,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33810,
357,
38,
5603,
40141,
13,
2436,
541,
13,
38454,
578,
11,
11902,
2599,
698,
541,
33810,
357,
3826,
698,
541,
5888,
4613,
6097,
379,
262,
304,
1659,
8,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30807,
40141,
13,
2436,
541,
13,
3629,
541,
25,
7560,
698,
541,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
422,
30807,
40141,
1330,
698,
541,
355,
4808,
2436,
541,
628,
220,
220,
220,
220,
220,
220,
220,
698,
541,
796,
4808,
2436,
541,
13,
17953,
7,
3672,
11,
657,
11,
657,
11,
657,
11,
5046,
11,
3124,
611,
3124,
318,
407,
6045,
2073,
4808,
2436,
541,
13,
10258,
13,
1581,
27746,
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,
33810,
611,
33810,
318,
407,
6045,
2073,
4808,
2436,
541,
13,
38454,
578,
13,
2257,
6981,
9795,
8,
198,
220,
220,
220,
220,
220,
220,
220,
698,
541,
13,
47348,
2514,
7,
944,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
698,
541,
628,
220,
220,
220,
825,
10199,
8206,
7,
944,
11,
2420,
11,
2124,
28,
15,
11,
331,
28,
15,
11,
1976,
28,
15,
11,
256,
8043,
28,
15,
87,
29312,
29312,
11,
267,
8043,
28,
15,
87,
29312,
29312,
11,
2546,
28,
1238,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16719,
274,
290,
48262,
257,
513,
67,
2420,
284,
262,
4038,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
357,
2536,
2599,
2420,
543,
481,
307,
2087,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
357,
600,
11,
11902,
2599,
2124,
12,
37652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
357,
600,
11,
11902,
2599,
331,
12,
37652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
357,
600,
11,
11902,
2599,
1976,
12,
37652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
8043,
357,
600,
11,
11902,
2599,
2420,
3124,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
267,
8043,
357,
600,
11,
11902,
2599,
19001,
3124,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2546,
357,
600,
11,
11902,
2599,
10369,
2546,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30807,
40141,
13,
5239,
13,
8206,
25,
12489,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
256,
742,
796,
4808,
5239,
13,
17953,
7,
5239,
11,
657,
11,
657,
11,
7724,
11,
256,
8043,
11,
267,
8043,
11,
2546,
8,
198,
220,
220,
220,
220,
220,
220,
220,
256,
742,
13,
47348,
2514,
37870,
7,
944,
11,
2124,
11,
331,
11,
1976,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5239,
82,
58,
14116,
13,
312,
60,
796,
256,
742,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
256,
742,
628,
220,
220,
220,
825,
12233,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
5005,
40676,
262,
4038,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
12233,
3886,
2389,
7,
944,
13,
312,
8,
628,
220,
220,
220,
825,
5253,
2514,
7,
944,
11,
2124,
11,
331,
11,
1976,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
35561,
262,
5253,
422,
4038,
284,
262,
1813,
22715,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
357,
22468,
2599,
2124,
12,
37652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
357,
22468,
2599,
331,
12,
37652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
357,
22468,
11,
11902,
2599,
1976,
12,
37652,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12178,
25,
5253,
1022,
4038,
290,
1813,
22715,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1976,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
16,
11,
331,
16,
11,
1976,
16,
796,
2116,
13,
1136,
26545,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4808,
6894,
13,
1136,
45767,
7,
87,
16,
11,
331,
16,
11,
1976,
16,
11,
2124,
11,
331,
11,
1976,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
16,
11,
331,
16,
796,
2116,
13,
1136,
26545,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4808,
6894,
13,
1136,
45767,
7,
87,
16,
11,
331,
16,
11,
2124,
11,
331,
8,
628,
220,
220,
220,
825,
651,
2389,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
35561,
4038,
4686,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
493,
25,
4038,
4686,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
312,
628,
220,
220,
220,
825,
651,
17633,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
35561,
2746,
4731,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
25,
2746,
4731,
357,
68,
13,
70,
13,
366,
22991,
39834,
4943,
357,
7783,
82,
6045,
11,
618,
262,
4038,
2492,
470,
2727,
287,
11361,
8133,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
19849,
628,
220,
220,
220,
825,
651,
26545,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
35561,
1459,
4038,
2292,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
46545,
25,
2292,
46545,
351,
513,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
11593,
43745,
834,
13,
3855,
37870,
1548,
26545,
7,
944,
13,
312,
8,
628,
220,
220,
220,
825,
21767,
7,
944,
11,
2844,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7376,
4657,
611,
1813,
2134,
3180,
428,
2134,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2844,
357,
38,
5603,
40141,
13,
33892,
1548,
13,
37870,
1548,
2599,
4038,
2134,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20512,
25,
6407,
611,
340,
318,
262,
2134,
11,
10352,
611,
340,
2125,
470,
262,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
33892,
11,
21501,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
312,
6624,
2844,
13,
312,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
628,
220,
220,
220,
825,
319,
7,
944,
11,
1785,
11,
269,
65,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7004,
1416,
22090,
329,
281,
1785,
691,
329,
428,
4038,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
357,
8841,
2599,
1785,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
65,
357,
8818,
2599,
23838,
2163,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1785,
287,
2116,
13557,
68,
4993,
8116,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
68,
4993,
8116,
58,
15596,
4083,
33295,
28264,
15596,
13,
9237,
7,
21101,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
68,
4993,
8116,
58,
15596,
60,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
68,
4993,
8116,
58,
15596,
4083,
33295,
28264,
15596,
13,
9237,
7,
21101,
4008,
628,
220,
220,
220,
825,
7616,
7,
944,
11,
1785,
11,
1635,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
2898,
328,
5355,
281,
1785,
329,
262,
1785,
32847,
18412,
284,
428,
2176,
4038,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
357,
8841,
2599,
1785,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
22046,
25,
7159,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1785,
287,
2116,
13557,
68,
4993,
8116,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
21360,
287,
2116,
13557,
68,
4993,
8116,
58,
15596,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21360,
13,
1136,
47258,
3419,
7,
944,
11,
1635,
22046,
8,
628,
198,
4299,
2251,
7,
19849,
11,
2124,
11,
331,
11,
1976,
11,
289,
2599,
198,
220,
220,
220,
37227,
16719,
274,
257,
649,
4038,
13,
628,
220,
220,
220,
770,
318,
262,
826,
835,
284,
10922,
257,
649,
4038,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2746,
357,
2536,
6375,
493,
2599,
2746,
1438,
6375,
12234,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
357,
22468,
2599,
2124,
12,
37652,
198,
220,
220,
220,
220,
220,
220,
220,
331,
357,
22468,
2599,
331,
12,
37652,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
357,
22468,
2599,
1976,
12,
37652,
198,
220,
220,
220,
220,
220,
220,
220,
289,
357,
22468,
2599,
9087,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
30807,
40141,
13,
33892,
1548,
13,
37870,
1548,
25,
4038,
2134,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2844,
796,
21501,
7,
834,
43745,
834,
13,
16447,
37870,
1548,
7,
19849,
11,
2124,
11,
331,
11,
1976,
11,
289,
828,
2746,
8,
198,
220,
220,
220,
11593,
7742,
58,
33892,
13,
312,
60,
796,
2844,
628,
220,
220,
220,
7616,
7203,
38793,
1600,
2844,
8,
198,
220,
220,
220,
1441,
2844,
628,
198,
4299,
12233,
3886,
2389,
7,
312,
2599,
198,
220,
220,
220,
37227,
5005,
40676,
257,
4038,
2134,
416,
262,
1813,
4686,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
357,
600,
2599,
4038,
4686,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
20512,
25,
6407,
319,
1943,
11,
10352,
319,
5287,
628,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5994,
12331,
25,
12073,
611,
4038,
4686,
318,
407,
493,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3298,
11593,
7742,
628,
220,
220,
220,
611,
318,
39098,
7,
312,
11,
493,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
7160,
7,
312,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4686,
287,
11593,
7742,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7616,
7203,
2934,
1616,
295,
1600,
11593,
7742,
58,
312,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1619,
11593,
7742,
58,
312,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
11593,
43745,
834,
13,
38727,
37870,
1548,
7,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
5994,
12331,
10786,
37870,
1548,
4522,
1276,
307,
281,
18253,
11537,
628,
198,
4299,
7160,
7,
312,
2599,
198,
220,
220,
220,
37227,
7376,
4657,
611,
257,
4038,
351,
262,
1813,
4686,
7160,
20947,
13,
628,
220,
220,
220,
16926,
46,
25,
791,
320,
1154,
12061,
379,
76,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
357,
600,
2599,
4038,
4686,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
20512,
25,
6407,
319,
3763,
11,
10352,
319,
645,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1303,
1441,
11593,
43745,
834,
13,
37870,
1548,
3109,
1023,
7,
312,
8,
198,
220,
220,
220,
1441,
6407,
628,
198,
4299,
651,
3886,
2389,
7,
312,
2599,
198,
220,
220,
220,
37227,
35561,
4038,
2134,
416,
1813,
4686,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
357,
600,
2599,
4038,
4686,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
30807,
40141,
13,
33892,
1548,
13,
37870,
1548,
25,
4038,
2134,
357,
25101,
319,
5287,
8,
628,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5994,
12331,
25,
12073,
611,
4038,
4686,
318,
407,
493,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3298,
11593,
7742,
628,
220,
220,
220,
611,
318,
39098,
7,
312,
11,
493,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
7160,
7,
312,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4686,
407,
287,
11593,
7742,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11593,
7742,
58,
312,
60,
796,
21501,
7,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
11593,
7742,
58,
312,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
5994,
12331,
10786,
37870,
1548,
4522,
1276,
307,
281,
18253,
11537,
628,
198,
4299,
651,
3237,
33529,
198,
220,
220,
220,
37227,
35561,
22155,
351,
477,
4038,
5563,
13,
628,
220,
220,
220,
39410,
0,
1680,
2728,
4334,
3440,
319,
617,
9597,
13,
1002,
345,
460,
3368,
1262,
340,
11,
836,
470,
779,
340,
0,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
8633,
25,
4038,
22155,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1441,
11593,
7742,
628,
198,
4299,
319,
7,
15596,
11,
269,
65,
2599,
198,
220,
220,
220,
37227,
7004,
1416,
22090,
329,
281,
1785,
329,
477,
5672,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1785,
357,
8841,
2599,
1785,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
269,
65,
357,
8818,
2599,
23838,
2163,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
1785,
287,
11593,
68,
4993,
8116,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
11593,
68,
4993,
8116,
58,
15596,
4083,
33295,
28264,
15596,
13,
9237,
7,
21101,
4008,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
11593,
68,
4993,
8116,
58,
15596,
60,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
11593,
68,
4993,
8116,
58,
15596,
4083,
33295,
28264,
15596,
13,
9237,
7,
21101,
4008,
628,
198,
4299,
7616,
7,
15596,
11,
1635,
22046,
2599,
198,
220,
220,
220,
37227,
2898,
328,
5355,
281,
1785,
329,
477,
5672,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1785,
357,
8841,
2599,
1785,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
1635,
22046,
25,
7159,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
1785,
287,
11593,
68,
4993,
8116,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
329,
21360,
287,
11593,
68,
4993,
8116,
58,
15596,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21360,
13,
1136,
47258,
3419,
46491,
22046,
8,
628,
628,
198,
834,
43745,
834,
13,
4550,
10697,
9237,
28264,
261,
14140,
14539,
1068,
11,
366,
17469,
37870,
1548,
4943,
198,
834,
43745,
834,
13,
4550,
10697,
9237,
28264,
261,
14140,
18819,
11,
366,
18819,
37870,
1548,
4943,
198
] | 2.42358 | 3,749 |
from django.contrib.auth.forms import SetPasswordForm
from django.contrib.auth.views import (PasswordChangeView,
PasswordResetConfirmView,
PasswordResetView)
from django.urls import reverse_lazy
from django.views.generic import CreateView
from .forms import CreationForm, PasswordChangingForm, PasswordResForm
| [
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
23914,
1330,
5345,
35215,
8479,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
33571,
1330,
357,
35215,
19400,
7680,
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,
30275,
4965,
316,
18546,
2533,
7680,
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,
30275,
4965,
316,
7680,
8,
198,
6738,
42625,
14208,
13,
6371,
82,
1330,
9575,
62,
75,
12582,
198,
6738,
42625,
14208,
13,
33571,
13,
41357,
1330,
13610,
7680,
198,
198,
6738,
764,
23914,
1330,
21582,
8479,
11,
30275,
48333,
8479,
11,
30275,
4965,
8479,
628,
628,
198
] | 2.411043 | 163 |
import requests
from bs4 import BeautifulSoup
def imdb_id(title):
"""IMDB identifier
>>> imdb_id("Inception")
'tt1375666'
>>> imdb_id("Interstellar")
'tt0816692'
"""
web_text = requests.get(f"https://www.imdb.com/find?q={title}").text
soup = BeautifulSoup(web_text, "html.parser")
candidates = soup.find("table", attrs={"class": "findList"})
identifier = candidates.find("a", href=True)["href"]
return identifier.rstrip("/").split("/")[-1]
def tv_tropes_id(title):
"""TVTropes identifier
>>> tv_tropes_id("Harry Potter and the Philosopher's Stone")
"Film/HarryPotterAndThePhilosophersStone"
>>> tv_tropes_id("Inception")
"Film/Inception"
>>> tv_tropes_id("Interstellar")
"Film/Interstellar"
"""
pass
def eidr_identifier(title):
"""Entertainment Identifier Registry identifer
E.g. Inception: https://ui.eidr.org/view/content?id=10.5240/0EF3-54F9-2642-0B49-6829-R
>>> eidr_identifier("Inception")
"10.5240/0EF3-54F9-2642-0B49-6829-R"
>>> eidr_identifier("Interstellar")
"10.5240/7F93-54BB-49EF-CD69-2C90-R"
"""
pass
def fandom_wiki_id(title):
"""Fandom Wiki identifier"""
pass
def the_tvdb_dot_com_id(title):
"""thetvdb.com identifier
>>> the_tvdb_dot_com_id("Inception")
"movies/inception"
>>> the_tvdb_dot_com_id("Interstellar")
"movies/interstellar"
>>> the_tvdb_dot_com_id("Harry Potter and the Philosopher's Stone")
"movies/harry-potter-and-the-sorcerers-stone"
"""
pass
def board_game_geek_id(title):
"""The BGG ID on boardgamegeek.com
>>> board_game_geek_id("Clank!")
201808
>>> board_game_geek_id("Bunny Kingdom")
184921
"""
pass
if __name__ == "__main__":
import doctest
doctest.testmod()
| [
11748,
7007,
198,
6738,
275,
82,
19,
1330,
23762,
50,
10486,
628,
198,
4299,
545,
9945,
62,
312,
7,
7839,
2599,
198,
220,
220,
220,
37227,
3955,
11012,
27421,
198,
220,
220,
220,
13163,
545,
9945,
62,
312,
7203,
818,
4516,
4943,
198,
220,
220,
220,
705,
926,
1485,
2425,
27310,
6,
198,
220,
220,
220,
13163,
545,
9945,
62,
312,
7203,
9492,
28732,
4943,
198,
220,
220,
220,
705,
926,
2919,
1433,
46589,
6,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3992,
62,
5239,
796,
7007,
13,
1136,
7,
69,
1,
5450,
1378,
2503,
13,
320,
9945,
13,
785,
14,
19796,
30,
80,
34758,
7839,
92,
11074,
5239,
198,
220,
220,
220,
17141,
796,
23762,
50,
10486,
7,
12384,
62,
5239,
11,
366,
6494,
13,
48610,
4943,
198,
220,
220,
220,
5871,
796,
17141,
13,
19796,
7203,
11487,
1600,
708,
3808,
28,
4895,
4871,
1298,
366,
19796,
8053,
20662,
8,
198,
220,
220,
220,
27421,
796,
5871,
13,
19796,
7203,
64,
1600,
13291,
28,
17821,
8,
14692,
33257,
8973,
198,
220,
220,
220,
1441,
27421,
13,
81,
36311,
7203,
14,
11074,
35312,
7203,
14,
4943,
58,
12,
16,
60,
628,
198,
4299,
31557,
62,
48385,
274,
62,
312,
7,
7839,
2599,
198,
220,
220,
220,
37227,
6849,
51,
1773,
274,
27421,
628,
220,
220,
220,
13163,
31557,
62,
48385,
274,
62,
312,
7203,
18308,
14179,
290,
262,
18880,
8803,
338,
8026,
4943,
198,
220,
220,
220,
366,
39750,
14,
18308,
25396,
353,
1870,
464,
18673,
418,
20856,
34346,
1,
198,
220,
220,
220,
13163,
31557,
62,
48385,
274,
62,
312,
7203,
818,
4516,
4943,
198,
220,
220,
220,
366,
39750,
14,
818,
4516,
1,
198,
220,
220,
220,
13163,
31557,
62,
48385,
274,
62,
312,
7203,
9492,
28732,
4943,
198,
220,
220,
220,
366,
39750,
14,
9492,
28732,
1,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1208,
628,
198,
4299,
304,
312,
81,
62,
738,
7483,
7,
7839,
2599,
198,
220,
220,
220,
37227,
17469,
10738,
11440,
7483,
33432,
1852,
7087,
628,
220,
220,
220,
412,
13,
70,
13,
554,
4516,
25,
3740,
1378,
9019,
13,
68,
312,
81,
13,
2398,
14,
1177,
14,
11299,
30,
312,
28,
940,
13,
20,
16102,
14,
15,
25425,
18,
12,
4051,
37,
24,
12,
2075,
3682,
12,
15,
33,
2920,
12,
3104,
1959,
12,
49,
628,
220,
220,
220,
13163,
304,
312,
81,
62,
738,
7483,
7203,
818,
4516,
4943,
198,
220,
220,
220,
366,
940,
13,
20,
16102,
14,
15,
25425,
18,
12,
4051,
37,
24,
12,
2075,
3682,
12,
15,
33,
2920,
12,
3104,
1959,
12,
49,
1,
198,
220,
220,
220,
13163,
304,
312,
81,
62,
738,
7483,
7203,
9492,
28732,
4943,
198,
220,
220,
220,
366,
940,
13,
20,
16102,
14,
22,
37,
6052,
12,
4051,
15199,
12,
2920,
25425,
12,
8610,
3388,
12,
17,
34,
3829,
12,
49,
1,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1208,
628,
198,
4299,
35387,
62,
15466,
62,
312,
7,
7839,
2599,
198,
220,
220,
220,
37227,
37,
3749,
13078,
27421,
37811,
198,
220,
220,
220,
1208,
628,
198,
4299,
262,
62,
14981,
9945,
62,
26518,
62,
785,
62,
312,
7,
7839,
2599,
198,
220,
220,
220,
37227,
1169,
14981,
9945,
13,
785,
27421,
628,
220,
220,
220,
13163,
262,
62,
14981,
9945,
62,
26518,
62,
785,
62,
312,
7203,
818,
4516,
4943,
198,
220,
220,
220,
366,
76,
20526,
14,
924,
1159,
1,
198,
220,
220,
220,
13163,
262,
62,
14981,
9945,
62,
26518,
62,
785,
62,
312,
7203,
9492,
28732,
4943,
198,
220,
220,
220,
366,
76,
20526,
14,
3849,
28732,
1,
198,
220,
220,
220,
13163,
262,
62,
14981,
9945,
62,
26518,
62,
785,
62,
312,
7203,
18308,
14179,
290,
262,
18880,
8803,
338,
8026,
4943,
198,
220,
220,
220,
366,
76,
20526,
14,
71,
6532,
12,
13059,
353,
12,
392,
12,
1169,
12,
82,
8387,
27736,
12,
6440,
1,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1208,
628,
198,
4299,
3096,
62,
6057,
62,
469,
988,
62,
312,
7,
7839,
2599,
198,
220,
220,
220,
37227,
464,
347,
11190,
4522,
319,
3096,
6057,
469,
988,
13,
785,
628,
220,
220,
220,
13163,
3096,
62,
6057,
62,
469,
988,
62,
312,
7203,
2601,
962,
2474,
8,
198,
220,
220,
220,
580,
28362,
198,
220,
220,
220,
13163,
3096,
62,
6057,
62,
469,
988,
62,
312,
7203,
33,
16948,
7526,
4943,
198,
220,
220,
220,
1248,
2920,
2481,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1208,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1330,
10412,
395,
198,
220,
220,
220,
10412,
395,
13,
9288,
4666,
3419,
198
] | 2.324324 | 777 |
# coding: utf-8
"""
Versed conversion API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class DefaultApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def convert_post(self, file, format, **kwargs): # noqa: E501
"""Uploads a file, converts it to a different format and return # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.convert_post(file, format, async_req=True)
>>> result = thread.get()
:param async_req bool
:param file file: The file to convert. (required)
:param str format: Format to convert to. Some example formats: txt rtf doc docx ppt pptx xls xlsx csv html pdf latex bib bmp svg eps tiff png jpg gif apng mp3 ogg mp4 avi webm mkv mov flv (required)
:return: file
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.convert_post_with_http_info(file, format, **kwargs) # noqa: E501
else:
(data) = self.convert_post_with_http_info(file, format, **kwargs) # noqa: E501
return data
def convert_post_with_http_info(self, file, format, **kwargs): # noqa: E501
"""Uploads a file, converts it to a different format and return # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.convert_post_with_http_info(file, format, async_req=True)
>>> result = thread.get()
:param async_req bool
:param file file: The file to convert. (required)
:param str format: Format to convert to. Some example formats: txt rtf doc docx ppt pptx xls xlsx csv html pdf latex bib bmp svg eps tiff png jpg gif apng mp3 ogg mp4 avi webm mkv mov flv (required)
:return: file
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['file', 'format'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method convert_post" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'file' is set
if self.api_client.client_side_validation and ('file' not in params or
params['file'] is None): # noqa: E501
raise ValueError("Missing the required parameter `file` when calling `convert_post`") # noqa: E501
# verify the required parameter 'format' is set
if self.api_client.client_side_validation and ('format' not in params or
params['format'] is None): # noqa: E501
raise ValueError("Missing the required parameter `format` when calling `convert_post`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'file' in params:
local_var_files['file'] = params['file'] # noqa: E501
if 'format' in params:
form_params.append(('format', params['format'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['audio/*; charset=utf-8', 'image/*; charset=utf-8', 'video/*; charset=utf-8', 'application/*; charset=utf-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['multipart/form-data']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/convert', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='file', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| [
2,
19617,
25,
3384,
69,
12,
23,
198,
198,
37811,
198,
220,
220,
220,
18535,
276,
11315,
7824,
628,
220,
220,
220,
1400,
6764,
2810,
357,
27568,
416,
2451,
7928,
6127,
5235,
3740,
1378,
12567,
13,
785,
14,
2032,
7928,
12,
15042,
14,
2032,
7928,
12,
8189,
5235,
8,
220,
1303,
645,
20402,
25,
412,
33548,
628,
220,
220,
220,
4946,
17614,
1020,
2196,
25,
352,
13,
15,
198,
220,
220,
220,
220,
198,
220,
220,
220,
2980,
515,
416,
25,
3740,
1378,
12567,
13,
785,
14,
2032,
7928,
12,
15042,
14,
2032,
7928,
12,
8189,
5235,
13,
18300,
198,
37811,
628,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
198,
198,
11748,
302,
220,
1303,
645,
20402,
25,
376,
21844,
198,
198,
2,
21015,
362,
290,
21015,
513,
17764,
5888,
198,
11748,
2237,
198,
198,
6738,
1509,
7928,
62,
16366,
13,
15042,
62,
16366,
1330,
5949,
72,
11792,
628,
198,
4871,
15161,
32,
14415,
7,
15252,
2599,
198,
220,
220,
220,
37227,
16580,
25,
770,
1398,
318,
8295,
7560,
416,
262,
1509,
7928,
2438,
17301,
1430,
13,
628,
220,
220,
220,
2141,
407,
4370,
262,
1398,
14500,
13,
198,
220,
220,
220,
6524,
25,
3740,
1378,
12567,
13,
785,
14,
2032,
7928,
12,
15042,
14,
2032,
7928,
12,
8189,
5235,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
10385,
62,
7353,
7,
944,
11,
2393,
11,
5794,
11,
12429,
46265,
22046,
2599,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
41592,
82,
257,
2393,
11,
26161,
340,
284,
257,
1180,
5794,
290,
1441,
220,
1303,
645,
20402,
25,
412,
33548,
628,
220,
220,
220,
220,
220,
220,
220,
770,
2446,
1838,
257,
18305,
516,
14626,
2581,
416,
4277,
13,
1675,
787,
281,
198,
220,
220,
220,
220,
220,
220,
220,
39354,
14626,
2581,
11,
3387,
1208,
30351,
62,
42180,
28,
17821,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
4704,
796,
40391,
13,
1102,
1851,
62,
7353,
7,
7753,
11,
5794,
11,
30351,
62,
42180,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
1255,
796,
4704,
13,
1136,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
30351,
62,
42180,
20512,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2393,
2393,
25,
383,
2393,
284,
10385,
13,
357,
35827,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
5794,
25,
18980,
284,
10385,
284,
13,
2773,
1672,
17519,
25,
256,
742,
374,
27110,
2205,
2205,
87,
279,
457,
279,
457,
87,
2124,
7278,
2124,
7278,
87,
269,
21370,
27711,
37124,
47038,
275,
571,
275,
3149,
38487,
70,
304,
862,
256,
733,
279,
782,
474,
6024,
9381,
2471,
782,
29034,
18,
267,
1130,
29034,
19,
1196,
72,
3992,
76,
33480,
85,
1409,
781,
85,
220,
357,
35827,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1002,
262,
2446,
318,
1444,
355,
24871,
3481,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5860,
262,
2581,
4704,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
479,
86,
22046,
17816,
62,
7783,
62,
4023,
62,
7890,
62,
8807,
20520,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
611,
479,
86,
22046,
13,
1136,
10786,
292,
13361,
62,
42180,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
1102,
1851,
62,
7353,
62,
4480,
62,
4023,
62,
10951,
7,
7753,
11,
5794,
11,
12429,
46265,
22046,
8,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
7890,
8,
796,
2116,
13,
1102,
1851,
62,
7353,
62,
4480,
62,
4023,
62,
10951,
7,
7753,
11,
5794,
11,
12429,
46265,
22046,
8,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1366,
628,
220,
220,
220,
825,
10385,
62,
7353,
62,
4480,
62,
4023,
62,
10951,
7,
944,
11,
2393,
11,
5794,
11,
12429,
46265,
22046,
2599,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
41592,
82,
257,
2393,
11,
26161,
340,
284,
257,
1180,
5794,
290,
1441,
220,
1303,
645,
20402,
25,
412,
33548,
628,
220,
220,
220,
220,
220,
220,
220,
770,
2446,
1838,
257,
18305,
516,
14626,
2581,
416,
4277,
13,
1675,
787,
281,
198,
220,
220,
220,
220,
220,
220,
220,
39354,
14626,
2581,
11,
3387,
1208,
30351,
62,
42180,
28,
17821,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
4704,
796,
40391,
13,
1102,
1851,
62,
7353,
62,
4480,
62,
4023,
62,
10951,
7,
7753,
11,
5794,
11,
30351,
62,
42180,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
1255,
796,
4704,
13,
1136,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
30351,
62,
42180,
20512,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2393,
2393,
25,
383,
2393,
284,
10385,
13,
357,
35827,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
5794,
25,
18980,
284,
10385,
284,
13,
2773,
1672,
17519,
25,
256,
742,
374,
27110,
2205,
2205,
87,
279,
457,
279,
457,
87,
2124,
7278,
2124,
7278,
87,
269,
21370,
27711,
37124,
47038,
275,
571,
275,
3149,
38487,
70,
304,
862,
256,
733,
279,
782,
474,
6024,
9381,
2471,
782,
29034,
18,
267,
1130,
29034,
19,
1196,
72,
3992,
76,
33480,
85,
1409,
781,
85,
220,
357,
35827,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1002,
262,
2446,
318,
1444,
355,
24871,
3481,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5860,
262,
2581,
4704,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
477,
62,
37266,
796,
37250,
7753,
3256,
705,
18982,
20520,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
220,
220,
220,
220,
477,
62,
37266,
13,
33295,
10786,
292,
13361,
62,
42180,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
477,
62,
37266,
13,
33295,
10786,
62,
7783,
62,
4023,
62,
7890,
62,
8807,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
477,
62,
37266,
13,
33295,
10786,
62,
3866,
2220,
62,
11299,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
477,
62,
37266,
13,
33295,
10786,
62,
25927,
62,
48678,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
42287,
796,
17205,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
11,
1188,
287,
2237,
13,
2676,
23814,
7,
37266,
17816,
46265,
22046,
20520,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1994,
407,
287,
477,
62,
37266,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
5994,
12331,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
30074,
281,
10059,
21179,
4578,
705,
4,
82,
29653,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
284,
2446,
10385,
62,
7353,
1,
4064,
1994,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42287,
58,
2539,
60,
796,
1188,
198,
220,
220,
220,
220,
220,
220,
220,
1619,
42287,
17816,
46265,
22046,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
11767,
262,
2672,
11507,
705,
7753,
6,
318,
900,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
15042,
62,
16366,
13,
16366,
62,
1589,
62,
12102,
341,
290,
19203,
7753,
6,
407,
287,
42287,
393,
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,
42287,
17816,
7753,
20520,
318,
6045,
2599,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
43730,
262,
2672,
11507,
4600,
7753,
63,
618,
4585,
4600,
1102,
1851,
62,
7353,
63,
4943,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
11767,
262,
2672,
11507,
705,
18982,
6,
318,
900,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
15042,
62,
16366,
13,
16366,
62,
1589,
62,
12102,
341,
290,
19203,
18982,
6,
407,
287,
42287,
393,
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,
42287,
17816,
18982,
20520,
318,
6045,
2599,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
43730,
262,
2672,
11507,
4600,
18982,
63,
618,
4585,
4600,
1102,
1851,
62,
7353,
63,
4943,
220,
1303,
645,
20402,
25,
412,
33548,
628,
220,
220,
220,
220,
220,
220,
220,
4947,
62,
687,
1381,
796,
23884,
628,
220,
220,
220,
220,
220,
220,
220,
3108,
62,
37266,
796,
23884,
628,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
37266,
796,
17635,
628,
220,
220,
220,
220,
220,
220,
220,
13639,
62,
37266,
796,
23884,
628,
220,
220,
220,
220,
220,
220,
220,
1296,
62,
37266,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
1957,
62,
7785,
62,
16624,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
611,
705,
7753,
6,
287,
42287,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1957,
62,
7785,
62,
16624,
17816,
7753,
20520,
796,
42287,
17816,
7753,
20520,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
220,
220,
220,
220,
611,
705,
18982,
6,
287,
42287,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1296,
62,
37266,
13,
33295,
7,
10786,
18982,
3256,
42287,
17816,
18982,
20520,
4008,
220,
1303,
645,
20402,
25,
412,
33548,
628,
220,
220,
220,
220,
220,
220,
220,
1767,
62,
37266,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
14626,
13639,
4600,
38855,
63,
198,
220,
220,
220,
220,
220,
220,
220,
13639,
62,
37266,
17816,
38855,
20520,
796,
2116,
13,
15042,
62,
16366,
13,
19738,
62,
25677,
62,
13635,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37250,
24051,
15211,
26,
34534,
316,
28,
40477,
12,
23,
3256,
705,
9060,
15211,
26,
34534,
316,
28,
40477,
12,
23,
3256,
705,
15588,
15211,
26,
34534,
316,
28,
40477,
12,
23,
3256,
705,
31438,
15211,
26,
34534,
316,
28,
40477,
12,
23,
6,
12962,
220,
1303,
645,
20402,
25,
412,
33548,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
14626,
13639,
4600,
19746,
12,
6030,
63,
198,
220,
220,
220,
220,
220,
220,
220,
13639,
62,
37266,
17816,
19746,
12,
6030,
20520,
796,
2116,
13,
15042,
62,
16366,
13,
19738,
62,
25677,
62,
11299,
62,
4906,
7,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37250,
16680,
541,
433,
14,
687,
12,
7890,
6,
12962,
220,
1303,
645,
20402,
25,
412,
33548,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
48191,
4634,
198,
220,
220,
220,
220,
220,
220,
220,
6284,
62,
33692,
796,
17635,
220,
1303,
645,
20402,
25,
412,
33548,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
15042,
62,
16366,
13,
13345,
62,
15042,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31051,
1102,
1851,
3256,
705,
32782,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3108,
62,
37266,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
37266,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13639,
62,
37266,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1767,
28,
2618,
62,
37266,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1281,
62,
37266,
28,
687,
62,
37266,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3696,
28,
12001,
62,
7785,
62,
16624,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2882,
62,
4906,
11639,
7753,
3256,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6284,
62,
33692,
28,
18439,
62,
33692,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30351,
62,
42180,
28,
37266,
13,
1136,
10786,
292,
13361,
62,
42180,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
7783,
62,
4023,
62,
7890,
62,
8807,
28,
37266,
13,
1136,
10786,
62,
7783,
62,
4023,
62,
7890,
62,
8807,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
3866,
2220,
62,
11299,
28,
37266,
13,
1136,
10786,
62,
3866,
2220,
62,
11299,
3256,
6407,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25927,
62,
48678,
28,
37266,
13,
1136,
10786,
62,
25927,
62,
48678,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4947,
62,
687,
1381,
28,
43681,
62,
687,
1381,
8,
198
] | 2.311468 | 2,363 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.