content
stringlengths 1
1.04M
| input_ids
listlengths 1
774k
| ratio_char_token
float64 0.38
22.9
| token_count
int64 1
774k
|
---|---|---|---|
"""
View decorators
---------------
Decorators for view handlers.
All items in this module can be imported directly from :mod:`coaster.views`.
"""
from functools import wraps
from flask import (
Response,
abort,
current_app,
g,
jsonify,
make_response,
redirect,
render_template,
request,
url_for,
)
from werkzeug.datastructures import Headers
from werkzeug.exceptions import BadRequest
from werkzeug.wrappers import Response as WerkzeugResponse
from ..auth import add_auth_attribute, current_auth
from ..utils import is_collection
from .misc import jsonp
__all__ = [
'RequestTypeError',
'RequestValueError',
'requestargs',
'requestform',
'requestquery',
'load_model',
'load_models',
'render_with',
'cors',
'requires_permission',
]
class RequestTypeError(BadRequest, TypeError):
"""
Exception that combines TypeError with BadRequest. Used by :func:`requestargs`.
"""
class RequestValueError(BadRequest, ValueError):
"""
Exception that combines ValueError with BadRequest. Used by :func:`requestargs`.
"""
def requestargs(*args, **config):
"""
Decorator that loads parameters from request.values if not specified in the
function's keyword arguments. Usage::
@requestargs('param1', ('param2', int), 'param3[]', ...)
def function(param1, param2=0, param3=None):
...
requestargs takes a list of parameters to pass to the wrapped function, with
an optional filter (useful to convert incoming string request data into integers
and other common types). If a required parameter is missing and your function does
not specify a default value, Python will raise TypeError. requestargs recasts this
as :exc:`RequestTypeError`, which returns HTTP 400 Bad Request.
If the parameter name ends in ``[]``, requestargs will attempt to read a list from
the incoming data. Filters are applied to each member of the list, not to the whole
list.
If the filter raises a ValueError, this is recast as a :exc:`RequestValueError`,
which also returns HTTP 400 Bad Request.
Tests::
>>> from flask import Flask
>>> app = Flask(__name__)
>>>
>>> @requestargs('p1', ('p2', int), ('p3[]', int))
... def f(p1, p2=None, p3=None):
... return p1, p2, p3
...
>>> f(p1=1)
(1, None, None)
>>> f(p1=1, p2=2)
(1, 2, None)
>>> f(p1='a', p2='b')
('a', 'b', None)
>>> with app.test_request_context('/?p2=2'):
... f(p1='1')
...
('1', 2, None)
>>> with app.test_request_context('/?p3=1&p3=2'):
... f(p1='1', p2='2')
...
('1', '2', [1, 2])
>>> with app.test_request_context('/?p2=100&p3=1&p3=2'):
... f(p1='1', p2=200)
...
('1', 200, [1, 2])
"""
if config and list(config.keys()) != ['source']:
raise TypeError(f"Unrecognised parameters: {config.keys()!r}")
return inner
def requestform(*args):
"""
Like :func:`requestargs`, but loads from request.form (the form submission).
"""
return requestargs(*args, **{'source': 'form'})
def requestquery(*args):
"""
Like :func:`requestargs`, but loads from request.args (the query string).
"""
return requestargs(*args, **{'source': 'query'})
def load_model(
model,
attributes=None,
parameter=None,
kwargs=False,
permission=None,
addlperms=None,
urlcheck=(),
):
"""
Decorator to load a model given a query parameter.
Typical usage::
@app.route('/<profile>')
@load_model(Profile, {'name': 'profile'}, 'profileob')
def profile_view(profileob):
# 'profileob' is now a Profile model instance.
# The load_model decorator replaced this:
# profileob = Profile.query.filter_by(name=profile).first_or_404()
return f"Hello, {profileob.name}"
Using the same name for request and parameter makes code easier to understand::
@app.route('/<profile>')
@load_model(Profile, {'name': 'profile'}, 'profile')
def profile_view(profile):
return f"Hello, {profile.name}"
``load_model`` aborts with a 404 if no instance is found.
:param model: The SQLAlchemy model to query. Must contain a ``query`` object
(which is the default with Flask-SQLAlchemy)
:param attributes: A dict of attributes (from the URL request) that will be
used to query for the object. For each key:value pair, the key is the name of
the column on the model and the value is the name of the request parameter that
contains the data
:param parameter: The name of the parameter to the decorated function via which
the result is passed. Usually the same as the attribute. If the parameter name
is prefixed with 'g.', the parameter is also made available as g.<parameter>
:param kwargs: If True, the original request parameters are passed to the decorated
function as a ``kwargs`` parameter
:param permission: If present, ``load_model`` calls the
:meth:`~coaster.sqlalchemy.PermissionMixin.permissions` method of the
retrieved object with ``current_auth.actor`` as a parameter. If
``permission`` is not present in the result, ``load_model`` aborts with
a 403. The permission may be a string or a list of strings, in which
case access is allowed if any of the listed permissions are available
:param addlperms: Iterable or callable that returns an iterable containing
additional permissions available to the user, apart from those granted by the
models. In an app that uses Lastuser for authentication, passing
``lastuser.permissions`` will pass through permissions granted via Lastuser
:param list urlcheck: If an attribute in this list has been used to load an object,
but the value of the attribute in the loaded object does not match the request
argument, issue a redirect to the corrected URL. This is useful for attributes
like ``url_id_name`` and ``url_name_uuid_b58`` where the ``name`` component may
change
"""
return load_models(
(model, attributes, parameter),
kwargs=kwargs,
permission=permission,
addlperms=addlperms,
urlcheck=urlcheck,
)
def load_models(*chain, **kwargs):
"""
Decorator to load a chain of models from the given parameters. This works just like
:func:`load_model` and accepts the same parameters, with some small differences.
:param chain: The chain is a list of tuples of (``model``, ``attributes``,
``parameter``). Lists and tuples can be used interchangeably. All retrieved
instances are passed as parameters to the decorated function
:param permission: Same as in :func:`load_model`, except
:meth:`~coaster.sqlalchemy.PermissionMixin.permissions` is called on every
instance in the chain and the retrieved permissions are passed as the second
parameter to the next instance in the chain. This allows later instances to
revoke permissions granted by earlier instances. As an example, if a URL
represents a hierarchy such as ``/<page>/<comment>``, the ``page`` can assign
``edit`` and ``delete`` permissions, while the ``comment`` can revoke ``edit``
and retain ``delete`` if the current user owns the page but not the comment
In the following example, load_models loads a Folder with a name matching the name
in the URL, then loads a Page with a matching name and with the just-loaded Folder
as parent. If the Page provides a 'view' permission to the current user, the
decorated function is called::
@app.route('/<folder_name>/<page_name>')
@load_models(
(Folder, {'name': 'folder_name'}, 'folder'),
(Page, {'name': 'page_name', 'parent': 'folder'}, 'page'),
permission='view')
def show_page(folder, page):
return render_template('page.html', folder=folder, page=page)
"""
return inner
def dict_jsonify(param):
"""
Convert the parameter into a dictionary before calling jsonify, if it's not already
one
"""
if not isinstance(param, dict):
param = dict(param)
return jsonify(param)
def dict_jsonp(param):
"""
Convert the parameter into a dictionary before calling jsonp, if it's not already
one
"""
if not isinstance(param, dict):
param = dict(param)
return jsonp(param)
def render_with(template=None, json=False, jsonp=False): # skipcq: PYL-W0621
"""
Decorator to render the wrapped function with the given template (or dictionary
of mimetype keys to templates, where the template is a string name of a template
file or a callable that returns a Response). The function's return value must be
a dictionary and is passed to the template as parameters. Callable templates get
a single parameter with the function's return value. Usage::
@app.route('/myview')
@render_with('myview.html')
def myview():
return {'data': 'value'}
@app.route('/myview_with_json')
@render_with('myview.html', json=True)
def myview_no_json():
return {'data': 'value'}
@app.route('/otherview')
@render_with({
'text/html': 'otherview.html',
'text/xml': 'otherview.xml'})
def otherview():
return {'data': 'value'}
@app.route('/404view')
@render_with('myview.html')
def myview():
return {'error': '404 Not Found'}, 404
@app.route('/headerview')
@render_with('myview.html')
def myview():
return {'data': 'value'}, 200, {'X-Header': 'Header value'}
When a mimetype is specified and the template is not a callable, the response is
returned with the same mimetype. Callable templates must return Response objects
to ensure the correct mimetype is set.
If a dictionary of templates is provided and does not include a handler for ``*/*``,
render_with will attempt to use the handler for (in order) ``text/html``,
``text/plain`` and the various JSON types, falling back to rendering the value into
a unicode string.
If the method is called outside a request context, the wrapped method's original
return value is returned. This is meant to facilitate testing and should not be
used to call the method from within another view handler as the presence of a
request context will trigger template rendering.
Rendering may also be suspended by calling the view handler with ``_render=False``.
render_with provides JSON and JSONP handlers for the ``application/json``,
``text/json`` and ``text/x-json`` mimetypes if ``json`` or ``jsonp`` is True
(default is False).
:param template: Single template, or dictionary of MIME type to templates. If the
template is a callable, it is called with the output of the wrapped function
:param json: Helper to add a JSON handler (default is False)
:param jsonp: Helper to add a JSONP handler (if True, also provides JSON, default
is False)
"""
if jsonp:
templates = {
'application/json': dict_jsonp,
'application/javascript': dict_jsonp,
}
elif json:
templates = {'application/json': dict_jsonify}
else:
templates = {}
if isinstance(template, str):
templates['text/html'] = template
elif isinstance(template, dict):
templates.update(template)
elif template is None and (json or jsonp):
pass
else: # pragma: no cover
raise ValueError("Expected string or dict for template")
default_mimetype = '*/*'
if '*/*' not in templates:
templates['*/*'] = str
default_mimetype = 'text/plain'
for mimetype in ('text/html', 'text/plain', 'application/json'):
if mimetype in templates:
templates['*/*'] = templates[mimetype]
default_mimetype = (
mimetype # Remember which mimetype's handler is serving for */*
)
break
template_mimetypes = list(templates.keys())
template_mimetypes.remove(
'*/*'
) # */* messes up matching, so supply it only as last resort
return inner
def cors(
origins,
methods=('HEAD', 'OPTIONS', 'GET', 'POST', 'PUT', 'PATCH', 'DELETE'),
headers=(
'Accept',
'Accept-Language',
'Content-Language',
'Content-Type',
'X-Requested-With',
),
max_age=None,
):
"""
Adds CORS headers to the decorated view function.
:param origins: Allowed origins (see below)
:param methods: A list of allowed HTTP methods
:param headers: A list of allowed HTTP headers
:param max_age: Duration in seconds for which the CORS response may be cached
The :obj:`origins` parameter may be one of:
1. A callable that receives the origin as a parameter.
2. A list of origins.
3. ``*``, indicating that this resource is accessible by any origin.
Example use::
from flask import Flask, Response
from coaster.views import cors
app = Flask(__name__)
@app.route('/any')
@cors('*')
def any_origin():
return Response()
@app.route('/static', methods=['GET', 'POST'])
@cors(
['https://hasgeek.com'],
methods=['GET'],
headers=['Content-Type', 'X-Requested-With'],
max_age=3600)
def static_list():
return Response()
def check_origin(origin):
# check if origin should be allowed
return True
@app.route('/callable')
@cors(check_origin)
def callable_function():
return Response()
"""
return inner
def requires_permission(permission):
"""
View decorator that requires a certain permission to be present in
``current_auth.permissions`` before the view is allowed to proceed.
Aborts with ``403 Forbidden`` if the permission is not present.
The decorated view will have an ``is_available`` method that can be called
to perform the same test.
:param permission: Permission that is required. If a collection type is
provided, any one permission must be available
"""
return inner
|
[
37811,
198,
7680,
11705,
2024,
198,
24305,
198,
198,
10707,
273,
2024,
329,
1570,
32847,
13,
198,
198,
3237,
3709,
287,
428,
8265,
460,
307,
17392,
3264,
422,
1058,
4666,
25,
63,
1073,
1603,
13,
33571,
44646,
198,
37811,
198,
198,
6738,
1257,
310,
10141,
1330,
27521,
198,
198,
6738,
42903,
1330,
357,
198,
220,
220,
220,
18261,
11,
198,
220,
220,
220,
15614,
11,
198,
220,
220,
220,
1459,
62,
1324,
11,
198,
220,
220,
220,
308,
11,
198,
220,
220,
220,
33918,
1958,
11,
198,
220,
220,
220,
787,
62,
26209,
11,
198,
220,
220,
220,
18941,
11,
198,
220,
220,
220,
8543,
62,
28243,
11,
198,
220,
220,
220,
2581,
11,
198,
220,
220,
220,
19016,
62,
1640,
11,
198,
8,
198,
6738,
266,
9587,
2736,
1018,
13,
19608,
459,
1356,
942,
1330,
7123,
364,
198,
6738,
266,
9587,
2736,
1018,
13,
1069,
11755,
1330,
7772,
18453,
198,
6738,
266,
9587,
2736,
1018,
13,
29988,
11799,
1330,
18261,
355,
370,
9587,
2736,
1018,
31077,
198,
198,
6738,
11485,
18439,
1330,
751,
62,
18439,
62,
42348,
11,
1459,
62,
18439,
198,
6738,
11485,
26791,
1330,
318,
62,
43681,
198,
6738,
764,
44374,
1330,
33918,
79,
198,
198,
834,
439,
834,
796,
685,
198,
220,
220,
220,
705,
18453,
6030,
12331,
3256,
198,
220,
220,
220,
705,
18453,
11395,
12331,
3256,
198,
220,
220,
220,
705,
25927,
22046,
3256,
198,
220,
220,
220,
705,
25927,
687,
3256,
198,
220,
220,
220,
705,
25927,
22766,
3256,
198,
220,
220,
220,
705,
2220,
62,
19849,
3256,
198,
220,
220,
220,
705,
2220,
62,
27530,
3256,
198,
220,
220,
220,
705,
13287,
62,
4480,
3256,
198,
220,
220,
220,
705,
66,
669,
3256,
198,
220,
220,
220,
705,
47911,
62,
525,
3411,
3256,
198,
60,
628,
198,
4871,
19390,
6030,
12331,
7,
22069,
18453,
11,
5994,
12331,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
35528,
326,
21001,
5994,
12331,
351,
7772,
18453,
13,
16718,
416,
1058,
20786,
25,
63,
25927,
22046,
44646,
198,
220,
220,
220,
37227,
628,
198,
4871,
19390,
11395,
12331,
7,
22069,
18453,
11,
11052,
12331,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
35528,
326,
21001,
11052,
12331,
351,
7772,
18453,
13,
16718,
416,
1058,
20786,
25,
63,
25927,
22046,
44646,
198,
220,
220,
220,
37227,
628,
198,
4299,
2581,
22046,
46491,
22046,
11,
12429,
11250,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
4280,
273,
1352,
326,
15989,
10007,
422,
2581,
13,
27160,
611,
407,
7368,
287,
262,
198,
220,
220,
220,
2163,
338,
21179,
7159,
13,
29566,
3712,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
25927,
22046,
10786,
17143,
16,
3256,
19203,
17143,
17,
3256,
493,
828,
705,
17143,
18,
21737,
3256,
2644,
8,
198,
220,
220,
220,
220,
220,
220,
220,
825,
2163,
7,
17143,
16,
11,
5772,
17,
28,
15,
11,
5772,
18,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2644,
628,
220,
220,
220,
2581,
22046,
2753,
257,
1351,
286,
10007,
284,
1208,
284,
262,
12908,
2163,
11,
351,
198,
220,
220,
220,
281,
11902,
8106,
357,
1904,
913,
284,
10385,
15619,
4731,
2581,
1366,
656,
37014,
198,
220,
220,
220,
290,
584,
2219,
3858,
737,
1002,
257,
2672,
11507,
318,
4814,
290,
534,
2163,
857,
198,
220,
220,
220,
407,
11986,
257,
4277,
1988,
11,
11361,
481,
5298,
5994,
12331,
13,
2581,
22046,
664,
5773,
428,
198,
220,
220,
220,
355,
1058,
41194,
25,
63,
18453,
6030,
12331,
47671,
543,
5860,
14626,
7337,
7772,
19390,
13,
628,
220,
220,
220,
1002,
262,
11507,
1438,
5645,
287,
7559,
21737,
15506,
11,
2581,
22046,
481,
2230,
284,
1100,
257,
1351,
422,
198,
220,
220,
220,
262,
15619,
1366,
13,
7066,
1010,
389,
5625,
284,
1123,
2888,
286,
262,
1351,
11,
407,
284,
262,
2187,
198,
220,
220,
220,
1351,
13,
628,
220,
220,
220,
1002,
262,
8106,
12073,
257,
11052,
12331,
11,
428,
318,
664,
459,
355,
257,
1058,
41194,
25,
63,
18453,
11395,
12331,
47671,
198,
220,
220,
220,
543,
635,
5860,
14626,
7337,
7772,
19390,
13,
628,
220,
220,
220,
30307,
3712,
628,
220,
220,
220,
220,
220,
220,
220,
13163,
422,
42903,
1330,
46947,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
598,
796,
46947,
7,
834,
3672,
834,
8,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
2488,
25927,
22046,
10786,
79,
16,
3256,
19203,
79,
17,
3256,
493,
828,
19203,
79,
18,
21737,
3256,
493,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2644,
825,
277,
7,
79,
16,
11,
279,
17,
28,
14202,
11,
279,
18,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2644,
220,
220,
220,
220,
1441,
279,
16,
11,
279,
17,
11,
279,
18,
198,
220,
220,
220,
220,
220,
220,
220,
2644,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
277,
7,
79,
16,
28,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
357,
16,
11,
6045,
11,
6045,
8,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
277,
7,
79,
16,
28,
16,
11,
279,
17,
28,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
357,
16,
11,
362,
11,
6045,
8,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
277,
7,
79,
16,
11639,
64,
3256,
279,
17,
11639,
65,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
64,
3256,
705,
65,
3256,
6045,
8,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
351,
598,
13,
9288,
62,
25927,
62,
22866,
10786,
20924,
79,
17,
28,
17,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2644,
220,
220,
220,
220,
277,
7,
79,
16,
11639,
16,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2644,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
16,
3256,
362,
11,
6045,
8,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
351,
598,
13,
9288,
62,
25927,
62,
22866,
10786,
20924,
79,
18,
28,
16,
5,
79,
18,
28,
17,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2644,
220,
220,
220,
220,
277,
7,
79,
16,
11639,
16,
3256,
279,
17,
11639,
17,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2644,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
16,
3256,
705,
17,
3256,
685,
16,
11,
362,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
13163,
351,
598,
13,
9288,
62,
25927,
62,
22866,
10786,
20924,
79,
17,
28,
3064,
5,
79,
18,
28,
16,
5,
79,
18,
28,
17,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2644,
220,
220,
220,
220,
277,
7,
79,
16,
11639,
16,
3256,
279,
17,
28,
2167,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2644,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
16,
3256,
939,
11,
685,
16,
11,
362,
12962,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
4566,
290,
1351,
7,
11250,
13,
13083,
28955,
14512,
37250,
10459,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
5994,
12331,
7,
69,
1,
3118,
26243,
1417,
10007,
25,
1391,
11250,
13,
13083,
3419,
0,
81,
92,
4943,
628,
220,
220,
220,
1441,
8434,
628,
198,
4299,
2581,
687,
46491,
22046,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
4525,
1058,
20786,
25,
63,
25927,
22046,
47671,
475,
15989,
422,
2581,
13,
687,
357,
1169,
1296,
14498,
737,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1441,
2581,
22046,
46491,
22046,
11,
12429,
90,
6,
10459,
10354,
705,
687,
6,
30072,
628,
198,
4299,
2581,
22766,
46491,
22046,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
4525,
1058,
20786,
25,
63,
25927,
22046,
47671,
475,
15989,
422,
2581,
13,
22046,
357,
1169,
12405,
4731,
737,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1441,
2581,
22046,
46491,
22046,
11,
12429,
90,
6,
10459,
10354,
705,
22766,
6,
30072,
628,
198,
4299,
3440,
62,
19849,
7,
198,
220,
220,
220,
2746,
11,
198,
220,
220,
220,
12608,
28,
14202,
11,
198,
220,
220,
220,
11507,
28,
14202,
11,
198,
220,
220,
220,
479,
86,
22046,
28,
25101,
11,
198,
220,
220,
220,
7170,
28,
14202,
11,
198,
220,
220,
220,
751,
75,
525,
907,
28,
14202,
11,
198,
220,
220,
220,
19016,
9122,
16193,
828,
198,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
4280,
273,
1352,
284,
3440,
257,
2746,
1813,
257,
12405,
11507,
13,
628,
220,
220,
220,
48752,
8748,
3712,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
1324,
13,
38629,
10786,
14,
27,
13317,
29,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
2220,
62,
19849,
7,
37046,
11,
1391,
6,
3672,
10354,
705,
13317,
6,
5512,
705,
13317,
672,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
825,
7034,
62,
1177,
7,
13317,
672,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
705,
13317,
672,
6,
318,
783,
257,
13118,
2746,
4554,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
3440,
62,
19849,
11705,
1352,
6928,
428,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
7034,
672,
796,
13118,
13,
22766,
13,
24455,
62,
1525,
7,
3672,
28,
13317,
737,
11085,
62,
273,
62,
26429,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
277,
1,
15496,
11,
1391,
13317,
672,
13,
3672,
36786,
628,
220,
220,
220,
8554,
262,
976,
1438,
329,
2581,
290,
11507,
1838,
2438,
4577,
284,
1833,
3712,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
1324,
13,
38629,
10786,
14,
27,
13317,
29,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
2220,
62,
19849,
7,
37046,
11,
1391,
6,
3672,
10354,
705,
13317,
6,
5512,
705,
13317,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
825,
7034,
62,
1177,
7,
13317,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
277,
1,
15496,
11,
1391,
13317,
13,
3672,
36786,
628,
220,
220,
220,
7559,
2220,
62,
19849,
15506,
450,
2096,
351,
257,
32320,
611,
645,
4554,
318,
1043,
13,
628,
220,
220,
220,
1058,
17143,
2746,
25,
383,
16363,
2348,
26599,
2746,
284,
12405,
13,
12039,
3994,
257,
7559,
22766,
15506,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
357,
4758,
318,
262,
4277,
351,
46947,
12,
17861,
2348,
26599,
8,
628,
220,
220,
220,
1058,
17143,
12608,
25,
317,
8633,
286,
12608,
357,
6738,
262,
10289,
2581,
8,
326,
481,
307,
198,
220,
220,
220,
220,
220,
220,
220,
973,
284,
12405,
329,
262,
2134,
13,
1114,
1123,
1994,
25,
8367,
5166,
11,
262,
1994,
318,
262,
1438,
286,
198,
220,
220,
220,
220,
220,
220,
220,
262,
5721,
319,
262,
2746,
290,
262,
1988,
318,
262,
1438,
286,
262,
2581,
11507,
326,
198,
220,
220,
220,
220,
220,
220,
220,
4909,
262,
1366,
628,
220,
220,
220,
1058,
17143,
11507,
25,
383,
1438,
286,
262,
11507,
284,
262,
24789,
2163,
2884,
543,
198,
220,
220,
220,
220,
220,
220,
220,
262,
1255,
318,
3804,
13,
19672,
262,
976,
355,
262,
11688,
13,
1002,
262,
11507,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
318,
7694,
2966,
351,
705,
70,
2637,
11,
262,
11507,
318,
635,
925,
1695,
355,
308,
29847,
17143,
2357,
29,
628,
220,
220,
220,
1058,
17143,
479,
86,
22046,
25,
1002,
6407,
11,
262,
2656,
2581,
10007,
389,
3804,
284,
262,
24789,
198,
220,
220,
220,
220,
220,
220,
220,
2163,
355,
257,
7559,
46265,
22046,
15506,
11507,
628,
220,
220,
220,
1058,
17143,
7170,
25,
1002,
1944,
11,
7559,
2220,
62,
19849,
15506,
3848,
262,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
76,
2788,
25,
63,
93,
1073,
1603,
13,
25410,
282,
26599,
13,
5990,
3411,
35608,
259,
13,
525,
8481,
63,
2446,
286,
262,
198,
220,
220,
220,
220,
220,
220,
220,
29517,
2134,
351,
7559,
14421,
62,
18439,
13,
11218,
15506,
355,
257,
11507,
13,
1002,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
525,
3411,
15506,
318,
407,
1944,
287,
262,
1255,
11,
7559,
2220,
62,
19849,
15506,
450,
2096,
351,
198,
220,
220,
220,
220,
220,
220,
220,
257,
38210,
13,
383,
7170,
743,
307,
257,
4731,
393,
257,
1351,
286,
13042,
11,
287,
543,
198,
220,
220,
220,
220,
220,
220,
220,
1339,
1895,
318,
3142,
611,
597,
286,
262,
5610,
21627,
389,
1695,
628,
220,
220,
220,
1058,
17143,
751,
75,
525,
907,
25,
40806,
540,
393,
869,
540,
326,
5860,
281,
11629,
540,
7268,
198,
220,
220,
220,
220,
220,
220,
220,
3224,
21627,
1695,
284,
262,
2836,
11,
5475,
422,
883,
7520,
416,
262,
198,
220,
220,
220,
220,
220,
220,
220,
4981,
13,
554,
281,
598,
326,
3544,
4586,
7220,
329,
18239,
11,
6427,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
12957,
7220,
13,
525,
8481,
15506,
481,
1208,
832,
21627,
7520,
2884,
4586,
7220,
628,
220,
220,
220,
1058,
17143,
1351,
19016,
9122,
25,
1002,
281,
11688,
287,
428,
1351,
468,
587,
973,
284,
3440,
281,
2134,
11,
198,
220,
220,
220,
220,
220,
220,
220,
475,
262,
1988,
286,
262,
11688,
287,
262,
9639,
2134,
857,
407,
2872,
262,
2581,
198,
220,
220,
220,
220,
220,
220,
220,
4578,
11,
2071,
257,
18941,
284,
262,
19267,
10289,
13,
770,
318,
4465,
329,
12608,
198,
220,
220,
220,
220,
220,
220,
220,
588,
7559,
6371,
62,
312,
62,
3672,
15506,
290,
7559,
6371,
62,
3672,
62,
12303,
312,
62,
65,
3365,
15506,
810,
262,
7559,
3672,
15506,
7515,
743,
198,
220,
220,
220,
220,
220,
220,
220,
1487,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1441,
3440,
62,
27530,
7,
198,
220,
220,
220,
220,
220,
220,
220,
357,
19849,
11,
12608,
11,
11507,
828,
198,
220,
220,
220,
220,
220,
220,
220,
479,
86,
22046,
28,
46265,
22046,
11,
198,
220,
220,
220,
220,
220,
220,
220,
7170,
28,
525,
3411,
11,
198,
220,
220,
220,
220,
220,
220,
220,
751,
75,
525,
907,
28,
2860,
75,
525,
907,
11,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
9122,
28,
6371,
9122,
11,
198,
220,
220,
220,
1267,
628,
198,
4299,
3440,
62,
27530,
46491,
7983,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
4280,
273,
1352,
284,
3440,
257,
6333,
286,
4981,
422,
262,
1813,
10007,
13,
770,
2499,
655,
588,
198,
220,
220,
220,
1058,
20786,
25,
63,
2220,
62,
19849,
63,
290,
18178,
262,
976,
10007,
11,
351,
617,
1402,
5400,
13,
628,
220,
220,
220,
1058,
17143,
6333,
25,
383,
6333,
318,
257,
1351,
286,
12777,
2374,
286,
357,
15506,
19849,
15506,
11,
7559,
1078,
7657,
15506,
11,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
17143,
2357,
15506,
737,
44968,
290,
12777,
2374,
460,
307,
973,
26478,
1346,
13,
1439,
29517,
198,
220,
220,
220,
220,
220,
220,
220,
10245,
389,
3804,
355,
10007,
284,
262,
24789,
2163,
628,
220,
220,
220,
1058,
17143,
7170,
25,
16766,
355,
287,
1058,
20786,
25,
63,
2220,
62,
19849,
47671,
2845,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
76,
2788,
25,
63,
93,
1073,
1603,
13,
25410,
282,
26599,
13,
5990,
3411,
35608,
259,
13,
525,
8481,
63,
318,
1444,
319,
790,
198,
220,
220,
220,
220,
220,
220,
220,
4554,
287,
262,
6333,
290,
262,
29517,
21627,
389,
3804,
355,
262,
1218,
198,
220,
220,
220,
220,
220,
220,
220,
11507,
284,
262,
1306,
4554,
287,
262,
6333,
13,
770,
3578,
1568,
10245,
284,
198,
220,
220,
220,
220,
220,
220,
220,
39041,
21627,
7520,
416,
2961,
10245,
13,
1081,
281,
1672,
11,
611,
257,
10289,
198,
220,
220,
220,
220,
220,
220,
220,
6870,
257,
18911,
884,
355,
7559,
14,
27,
7700,
29,
14,
27,
23893,
29,
15506,
11,
262,
7559,
7700,
15506,
460,
8333,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
19312,
15506,
290,
7559,
33678,
15506,
21627,
11,
981,
262,
7559,
23893,
15506,
460,
39041,
7559,
19312,
15506,
198,
220,
220,
220,
220,
220,
220,
220,
290,
12377,
7559,
33678,
15506,
611,
262,
1459,
2836,
12216,
262,
2443,
475,
407,
262,
2912,
628,
220,
220,
220,
554,
262,
1708,
1672,
11,
3440,
62,
27530,
15989,
257,
48107,
351,
257,
1438,
12336,
262,
1438,
198,
220,
220,
220,
287,
262,
10289,
11,
788,
15989,
257,
7873,
351,
257,
12336,
1438,
290,
351,
262,
655,
12,
14578,
48107,
198,
220,
220,
220,
355,
2560,
13,
1002,
262,
7873,
3769,
257,
705,
1177,
6,
7170,
284,
262,
1459,
2836,
11,
262,
198,
220,
220,
220,
24789,
2163,
318,
1444,
3712,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
1324,
13,
38629,
10786,
14,
27,
43551,
62,
3672,
29,
14,
27,
7700,
62,
3672,
29,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
2220,
62,
27530,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
41092,
11,
1391,
6,
3672,
10354,
705,
43551,
62,
3672,
6,
5512,
705,
43551,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
9876,
11,
1391,
6,
3672,
10354,
705,
7700,
62,
3672,
3256,
705,
8000,
10354,
705,
43551,
6,
5512,
705,
7700,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7170,
11639,
1177,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
825,
905,
62,
7700,
7,
43551,
11,
2443,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
8543,
62,
28243,
10786,
7700,
13,
6494,
3256,
9483,
28,
43551,
11,
2443,
28,
7700,
8,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1441,
8434,
628,
198,
198,
4299,
8633,
62,
17752,
1958,
7,
17143,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
38240,
262,
11507,
656,
257,
22155,
878,
4585,
33918,
1958,
11,
611,
340,
338,
407,
1541,
198,
220,
220,
220,
530,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
407,
318,
39098,
7,
17143,
11,
8633,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
5772,
796,
8633,
7,
17143,
8,
198,
220,
220,
220,
1441,
33918,
1958,
7,
17143,
8,
628,
198,
4299,
8633,
62,
17752,
79,
7,
17143,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
38240,
262,
11507,
656,
257,
22155,
878,
4585,
33918,
79,
11,
611,
340,
338,
407,
1541,
198,
220,
220,
220,
530,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
407,
318,
39098,
7,
17143,
11,
8633,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
5772,
796,
8633,
7,
17143,
8,
198,
220,
220,
220,
1441,
33918,
79,
7,
17143,
8,
628,
198,
4299,
8543,
62,
4480,
7,
28243,
28,
14202,
11,
33918,
28,
25101,
11,
33918,
79,
28,
25101,
2599,
220,
1303,
14267,
66,
80,
25,
350,
45448,
12,
54,
3312,
2481,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
4280,
273,
1352,
284,
8543,
262,
12908,
2163,
351,
262,
1813,
11055,
357,
273,
22155,
198,
220,
220,
220,
286,
17007,
2963,
431,
8251,
284,
24019,
11,
810,
262,
11055,
318,
257,
4731,
1438,
286,
257,
11055,
198,
220,
220,
220,
2393,
393,
257,
869,
540,
326,
5860,
257,
18261,
737,
383,
2163,
338,
1441,
1988,
1276,
307,
198,
220,
220,
220,
257,
22155,
290,
318,
3804,
284,
262,
11055,
355,
10007,
13,
4889,
540,
24019,
651,
198,
220,
220,
220,
257,
2060,
11507,
351,
262,
2163,
338,
1441,
1988,
13,
29566,
3712,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
1324,
13,
38629,
10786,
14,
1820,
1177,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
13287,
62,
4480,
10786,
1820,
1177,
13,
6494,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
825,
616,
1177,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
6,
7890,
10354,
705,
8367,
6,
92,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
1324,
13,
38629,
10786,
14,
1820,
1177,
62,
4480,
62,
17752,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
13287,
62,
4480,
10786,
1820,
1177,
13,
6494,
3256,
33918,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
825,
616,
1177,
62,
3919,
62,
17752,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
6,
7890,
10354,
705,
8367,
6,
92,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
1324,
13,
38629,
10786,
14,
847,
1177,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
13287,
62,
4480,
15090,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5239,
14,
6494,
10354,
705,
847,
1177,
13,
6494,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5239,
14,
19875,
10354,
705,
847,
1177,
13,
19875,
6,
30072,
198,
220,
220,
220,
220,
220,
220,
220,
825,
584,
1177,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
6,
7890,
10354,
705,
8367,
6,
92,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
1324,
13,
38629,
10786,
14,
26429,
1177,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
13287,
62,
4480,
10786,
1820,
1177,
13,
6494,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
825,
616,
1177,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
6,
18224,
10354,
705,
26429,
1892,
4062,
6,
5512,
32320,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
1324,
13,
38629,
10786,
14,
2256,
712,
769,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
13287,
62,
4480,
10786,
1820,
1177,
13,
6494,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
825,
616,
1177,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
6,
7890,
10354,
705,
8367,
6,
5512,
939,
11,
1391,
6,
55,
12,
39681,
10354,
705,
39681,
1988,
6,
92,
628,
220,
220,
220,
1649,
257,
17007,
2963,
431,
318,
7368,
290,
262,
11055,
318,
407,
257,
869,
540,
11,
262,
2882,
318,
198,
220,
220,
220,
4504,
351,
262,
976,
17007,
2963,
431,
13,
4889,
540,
24019,
1276,
1441,
18261,
5563,
198,
220,
220,
220,
284,
4155,
262,
3376,
17007,
2963,
431,
318,
900,
13,
628,
220,
220,
220,
1002,
257,
22155,
286,
24019,
318,
2810,
290,
857,
407,
2291,
257,
21360,
329,
7559,
9,
15211,
15506,
11,
198,
220,
220,
220,
8543,
62,
4480,
481,
2230,
284,
779,
262,
21360,
329,
357,
259,
1502,
8,
7559,
5239,
14,
6494,
15506,
11,
198,
220,
220,
220,
7559,
5239,
14,
25638,
15506,
290,
262,
2972,
19449,
3858,
11,
7463,
736,
284,
14837,
262,
1988,
656,
198,
220,
220,
220,
257,
28000,
1098,
4731,
13,
628,
220,
220,
220,
1002,
262,
2446,
318,
1444,
2354,
257,
2581,
4732,
11,
262,
12908,
2446,
338,
2656,
198,
220,
220,
220,
1441,
1988,
318,
4504,
13,
770,
318,
4001,
284,
15570,
4856,
290,
815,
407,
307,
198,
220,
220,
220,
973,
284,
869,
262,
2446,
422,
1626,
1194,
1570,
21360,
355,
262,
4931,
286,
257,
198,
220,
220,
220,
2581,
4732,
481,
7616,
11055,
14837,
13,
628,
220,
220,
220,
28703,
1586,
743,
635,
307,
9951,
416,
4585,
262,
1570,
21360,
351,
7559,
62,
13287,
28,
25101,
15506,
13,
628,
220,
220,
220,
8543,
62,
4480,
3769,
19449,
290,
19449,
47,
32847,
329,
262,
7559,
31438,
14,
17752,
15506,
11,
198,
220,
220,
220,
7559,
5239,
14,
17752,
15506,
290,
7559,
5239,
14,
87,
12,
17752,
15506,
17007,
2963,
12272,
611,
7559,
17752,
15506,
393,
7559,
17752,
79,
15506,
318,
6407,
198,
220,
220,
220,
357,
12286,
318,
10352,
737,
628,
220,
220,
220,
1058,
17143,
11055,
25,
14206,
11055,
11,
393,
22155,
286,
337,
12789,
2099,
284,
24019,
13,
1002,
262,
198,
220,
220,
220,
220,
220,
220,
220,
11055,
318,
257,
869,
540,
11,
340,
318,
1444,
351,
262,
5072,
286,
262,
12908,
2163,
198,
220,
220,
220,
1058,
17143,
33918,
25,
5053,
525,
284,
751,
257,
19449,
21360,
357,
12286,
318,
10352,
8,
198,
220,
220,
220,
1058,
17143,
33918,
79,
25,
5053,
525,
284,
751,
257,
19449,
47,
21360,
357,
361,
6407,
11,
635,
3769,
19449,
11,
4277,
198,
220,
220,
220,
220,
220,
220,
220,
318,
10352,
8,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
33918,
79,
25,
198,
220,
220,
220,
220,
220,
220,
220,
24019,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
31438,
14,
17752,
10354,
8633,
62,
17752,
79,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
31438,
14,
37495,
10354,
8633,
62,
17752,
79,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
1288,
361,
33918,
25,
198,
220,
220,
220,
220,
220,
220,
220,
24019,
796,
1391,
6,
31438,
14,
17752,
10354,
8633,
62,
17752,
1958,
92,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
24019,
796,
23884,
198,
220,
220,
220,
611,
318,
39098,
7,
28243,
11,
965,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
24019,
17816,
5239,
14,
6494,
20520,
796,
11055,
198,
220,
220,
220,
1288,
361,
318,
39098,
7,
28243,
11,
8633,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
24019,
13,
19119,
7,
28243,
8,
198,
220,
220,
220,
1288,
361,
11055,
318,
6045,
290,
357,
17752,
393,
33918,
79,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
2073,
25,
220,
1303,
23864,
2611,
25,
645,
3002,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
3109,
7254,
4731,
393,
8633,
329,
11055,
4943,
628,
220,
220,
220,
4277,
62,
76,
320,
2963,
431,
796,
705,
9,
15211,
6,
198,
220,
220,
220,
611,
705,
9,
15211,
6,
407,
287,
24019,
25,
198,
220,
220,
220,
220,
220,
220,
220,
24019,
17816,
9,
15211,
20520,
796,
965,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
76,
320,
2963,
431,
796,
705,
5239,
14,
25638,
6,
198,
220,
220,
220,
220,
220,
220,
220,
329,
17007,
2963,
431,
287,
19203,
5239,
14,
6494,
3256,
705,
5239,
14,
25638,
3256,
705,
31438,
14,
17752,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
17007,
2963,
431,
287,
24019,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24019,
17816,
9,
15211,
20520,
796,
24019,
58,
76,
320,
2963,
431,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
76,
320,
2963,
431,
796,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17007,
2963,
431,
220,
1303,
11436,
543,
17007,
2963,
431,
338,
21360,
318,
7351,
329,
9466,
9,
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,
220,
220,
220,
220,
2270,
628,
220,
220,
220,
11055,
62,
76,
320,
2963,
12272,
796,
1351,
7,
11498,
17041,
13,
13083,
28955,
198,
220,
220,
220,
11055,
62,
76,
320,
2963,
12272,
13,
28956,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
9,
15211,
6,
198,
220,
220,
220,
1267,
220,
1303,
9466,
9,
2085,
274,
510,
12336,
11,
523,
5127,
340,
691,
355,
938,
12600,
628,
220,
220,
220,
1441,
8434,
628,
198,
4299,
269,
669,
7,
198,
220,
220,
220,
15587,
11,
198,
220,
220,
220,
5050,
28,
10786,
37682,
3256,
705,
3185,
51,
11053,
3256,
705,
18851,
3256,
705,
32782,
3256,
705,
30076,
3256,
705,
47,
11417,
3256,
705,
7206,
2538,
9328,
33809,
198,
220,
220,
220,
24697,
16193,
198,
220,
220,
220,
220,
220,
220,
220,
705,
38855,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
38855,
12,
32065,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
19746,
12,
32065,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
19746,
12,
6030,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
55,
12,
18453,
276,
12,
3152,
3256,
198,
220,
220,
220,
10612,
198,
220,
220,
220,
3509,
62,
496,
28,
14202,
11,
198,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
34333,
327,
20673,
24697,
284,
262,
24789,
1570,
2163,
13,
628,
220,
220,
220,
1058,
17143,
15587,
25,
1439,
6972,
15587,
357,
3826,
2174,
8,
198,
220,
220,
220,
1058,
17143,
5050,
25,
317,
1351,
286,
3142,
14626,
5050,
198,
220,
220,
220,
1058,
17143,
24697,
25,
317,
1351,
286,
3142,
14626,
24697,
198,
220,
220,
220,
1058,
17143,
3509,
62,
496,
25,
22920,
287,
4201,
329,
543,
262,
327,
20673,
2882,
743,
307,
39986,
628,
220,
220,
220,
383,
1058,
26801,
25,
63,
11612,
1040,
63,
11507,
743,
307,
530,
286,
25,
628,
220,
220,
220,
352,
13,
317,
869,
540,
326,
11583,
262,
8159,
355,
257,
11507,
13,
198,
220,
220,
220,
362,
13,
317,
1351,
286,
15587,
13,
198,
220,
220,
220,
513,
13,
7559,
9,
15506,
11,
12739,
326,
428,
8271,
318,
9857,
416,
597,
8159,
13,
628,
220,
220,
220,
17934,
779,
3712,
628,
220,
220,
220,
220,
220,
220,
220,
422,
42903,
1330,
46947,
11,
18261,
198,
220,
220,
220,
220,
220,
220,
220,
422,
42450,
13,
33571,
1330,
269,
669,
628,
220,
220,
220,
220,
220,
220,
220,
598,
796,
46947,
7,
834,
3672,
834,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
1324,
13,
38629,
10786,
14,
1092,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
66,
669,
10786,
9,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
825,
597,
62,
47103,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
18261,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
1324,
13,
38629,
10786,
14,
12708,
3256,
5050,
28,
17816,
18851,
3256,
705,
32782,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
66,
669,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37250,
5450,
1378,
10134,
469,
988,
13,
785,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5050,
28,
17816,
18851,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24697,
28,
17816,
19746,
12,
6030,
3256,
705,
55,
12,
18453,
276,
12,
3152,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
496,
28,
2623,
405,
8,
198,
220,
220,
220,
220,
220,
220,
220,
825,
9037,
62,
4868,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
18261,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
825,
2198,
62,
47103,
7,
47103,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
611,
8159,
815,
307,
3142,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
1324,
13,
38629,
10786,
14,
13345,
540,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
66,
669,
7,
9122,
62,
47103,
8,
198,
220,
220,
220,
220,
220,
220,
220,
825,
869,
540,
62,
8818,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
18261,
3419,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1441,
8434,
628,
198,
4299,
4433,
62,
525,
3411,
7,
525,
3411,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3582,
11705,
1352,
326,
4433,
257,
1728,
7170,
284,
307,
1944,
287,
198,
220,
220,
220,
7559,
14421,
62,
18439,
13,
525,
8481,
15506,
878,
262,
1570,
318,
3142,
284,
5120,
13,
198,
220,
220,
220,
2275,
2096,
351,
7559,
31552,
46014,
15506,
611,
262,
7170,
318,
407,
1944,
13,
628,
220,
220,
220,
383,
24789,
1570,
481,
423,
281,
7559,
271,
62,
15182,
15506,
2446,
326,
460,
307,
1444,
198,
220,
220,
220,
284,
1620,
262,
976,
1332,
13,
628,
220,
220,
220,
1058,
17143,
7170,
25,
2448,
3411,
326,
318,
2672,
13,
1002,
257,
4947,
2099,
318,
198,
220,
220,
220,
220,
220,
220,
220,
2810,
11,
597,
530,
7170,
1276,
307,
1695,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1441,
8434,
198
] | 2.701052 | 5,419 |
#!/usr/bin/env python3
# coding:utf-8
if __name__ == "__main__":
s = Solution()
print(s.Power(2, 0))
print(s.Power(0, 2))
print(s.Power(3.5, 2))
print(s.Power(3.5, -2))
|
[
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
2,
19617,
25,
40477,
12,
23,
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,
3601,
7,
82,
13,
13434,
7,
17,
11,
657,
4008,
198,
220,
220,
220,
3601,
7,
82,
13,
13434,
7,
15,
11,
362,
4008,
198,
220,
220,
220,
3601,
7,
82,
13,
13434,
7,
18,
13,
20,
11,
362,
4008,
198,
220,
220,
220,
3601,
7,
82,
13,
13434,
7,
18,
13,
20,
11,
532,
17,
4008,
198
] | 1.939394 | 99 |
# -*- coding : utf-8-*-
import abc
from enum import Enum
class StructTemplate(metaclass=abc.ABCMeta):
"""
构造物模板的基类
"""
@abc.abstractmethod
def _register_kwd(self):
"""
注册参数的抽象方法, 构造函数调用一次, 子类定义中需实现. 已注册的参数可以在构造函数中使用.
Returns:
"""
pass
@abc.abstractmethod
def TypeID(self) -> StructTypeEunm:
"""
注册结构类型
Returns:
"""
pass
|
[
2,
532,
9,
12,
19617,
1058,
3384,
69,
12,
23,
12,
9,
12,
198,
11748,
450,
66,
198,
6738,
33829,
1330,
2039,
388,
628,
198,
198,
4871,
32112,
30800,
7,
4164,
330,
31172,
28,
39305,
13,
24694,
48526,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10545,
252,
226,
34460,
254,
31965,
102,
162,
101,
94,
30266,
123,
21410,
161,
253,
118,
163,
109,
119,
628,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
39305,
13,
397,
8709,
24396,
198,
220,
220,
220,
825,
4808,
30238,
62,
74,
16993,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
10545,
111,
101,
37863,
234,
20998,
224,
46763,
108,
21410,
162,
232,
121,
164,
109,
94,
43095,
37345,
243,
11,
10545,
252,
226,
34460,
254,
49035,
121,
46763,
108,
164,
108,
225,
18796,
101,
31660,
162,
105,
94,
11,
10263,
255,
238,
163,
109,
119,
22522,
248,
20046,
231,
40792,
165,
250,
222,
22522,
252,
163,
236,
108,
13,
10263,
115,
110,
37345,
101,
37863,
234,
21410,
20998,
224,
46763,
108,
20998,
107,
20015,
98,
28839,
101,
162,
252,
226,
34460,
254,
49035,
121,
46763,
108,
40792,
45635,
18796,
101,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
628,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
2488,
39305,
13,
397,
8709,
24396,
198,
220,
220,
220,
825,
5994,
2389,
7,
944,
8,
4613,
32112,
6030,
36,
403,
76,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
10545,
111,
101,
37863,
234,
163,
119,
241,
162,
252,
226,
163,
109,
119,
161,
252,
233,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
628,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
198
] | 1.363354 | 322 |
from descarteslabs.client.exceptions import * # noqa
|
[
6738,
1715,
433,
274,
75,
8937,
13,
16366,
13,
1069,
11755,
1330,
1635,
220,
1303,
645,
20402,
198
] | 3 | 18 |
board = []
for loop in range(0, 5):
treta = ["O"] * 5
board.append(treta)
print(board)
|
[
3526,
796,
17635,
198,
198,
1640,
9052,
287,
2837,
7,
15,
11,
642,
2599,
198,
220,
220,
220,
256,
1186,
64,
796,
14631,
46,
8973,
1635,
642,
198,
220,
220,
220,
3096,
13,
33295,
7,
83,
1186,
64,
8,
198,
220,
220,
220,
3601,
7,
3526,
8,
198
] | 2.083333 | 48 |
from .version import __version__ as version
|
[
6738,
764,
9641,
1330,
11593,
9641,
834,
355,
2196
] | 4.777778 | 9 |
import time
import board
import keypad
import usb_hid
import neopixel
from adafruit_led_animation.animation.pulse import Pulse
from adafruit_led_animation.animation.solid import Solid
from adafruit_led_animation.animation.blink import Blink
from adafruit_led_animation.group import AnimationGroup
from adafruit_led_animation import color
from adafruit_led_animation.animation.chase import Chase
from adafruit_led_animation.animation.rainbow import Rainbow
from adafruit_led_animation.animation.rainbowsparkle import RainbowSparkle
from adafruit_led_animation.animation.colorcycle import ColorCycle
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
# When all buttons are released, this code will type the mask of what
# had been pressed, surrounded by the prefix and suffix below.
MSG_PREFIX = ";#@lime"
MSG_SUFFIX = "#"
kbd = Keyboard(usb_hid.devices)
layout = KeyboardLayoutUS(kbd)
# This is the pin in the board that is connected to the NeoPixel Jewel - 7 RGB LED
pixel_pin = board.A0
num_pixels = 7
pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.8, auto_write=False)
internal_pixel = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=1, auto_write=False)
# The button pins we'll use. Each is directly connected to a Kailh Mechanical Key Switch
buttonpins = (board.A3, board.A2, board.A1, board.D10, board.D9, board.D8)
keys = keypad.Keys(buttonpins, value_when_pressed=False, pull=True)
animation_push_button = AnimationGroup(
Blink(pixels, speed=0.05, color=color.WHITE),
Blink(internal_pixel, speed=0.05, color=color.WHITE),
)
animation_fidget_push_button = AnimationGroup(
Blink(pixels, speed=0.05, color=color.PURPLE),
Solid(internal_pixel, color=color.PURPLE),
)
animation_long_push_button = AnimationGroup(
Blink(pixels, speed=0.05, color=color.RED),
Solid(internal_pixel, color=color.RED),
)
animation_off = AnimationGroup(
Solid(pixels, color=color.BLACK),
Solid(internal_pixel, color=color.BLACK),
)
animation_groups = [
AnimationGroup(
Pulse(pixels, speed=0.05, color=color.ORANGE, period=10),
Solid(internal_pixel, color=color.AMBER),
),
AnimationGroup(
Rainbow(pixels, speed=0.1, period=10),
Solid(internal_pixel, color=color.BLACK),
),
AnimationGroup(
RainbowSparkle(pixels, speed=0.1, num_sparkles=2),
RainbowSparkle(internal_pixel, speed=0.1, num_sparkles=0),
),
AnimationGroup(
Blink(pixels, speed=3, color=color.GOLD),
Solid(internal_pixel, color=color.GOLD),
),
AnimationGroup(
Chase(pixels, speed=0.1, size=3, spacing=6, color=color.GREEN),
Solid(internal_pixel, color=color.GREEN),
),
AnimationGroup(
ColorCycle(
pixels,
10,
colors=[
color.BLUE,
color.GREEN,
color.RED,
color.TEAL,
color.PURPLE,
color.AQUA,
],
),
Solid(internal_pixel, color=color.BLUE),
),
animation_off, # Expected to be the last one
]
# Initial animation to show that code is ready to go
start_ts = time.monotonic()
start_amin = ColorCycle(
pixels, 0.25, colors=[color.MAGENTA, color.ORANGE, color.TEAL, color.AQUA]
)
while time.monotonic() - start_ts < 1.5:
start_amin.animate()
ALL_BUTTONS_MASK = 2 ** len(buttonpins) - 1
# The state of the lemon keyboard
fidget_mode = False
curr_animation_group_index = -1
animations = animation_off
buttons_pressed_ts = None
buttons_pressed = 0
buttons_mask = 0
buttons_first_press = None
long_press = False
# Create an event we will reuse over and over.
event = keypad.Event()
print("Waiting for button presses")
while True:
animations.animate()
time.sleep(0.01)
# Detect long press
if (
(not long_press)
and buttons_pressed
and time.monotonic() - buttons_pressed_ts > 2.8
):
print("long press")
long_press = True
animations.reset()
animations = animation_long_push_button
if keys.events.get_into(event):
pressed_mask = 2 ** event.key_number
prev_buttons_pressed = buttons_pressed
prev_buttons_mask = buttons_mask
if event.pressed:
buttons_pressed |= pressed_mask
buttons_mask |= pressed_mask
else:
buttons_pressed &= ~pressed_mask
print(
"button",
event.key_number,
"pressed." if event.pressed else "released.",
"buttons_pressed_mask:",
buttons_pressed,
"buttons_mask_mask:",
buttons_mask,
"pressed_mask:",
pressed_mask,
)
if not prev_buttons_pressed and buttons_pressed:
print("first detected press")
# first button pressed
animations.reset()
animations = (
animation_fidget_push_button if fidget_mode else animation_push_button
)
buttons_pressed_ts = time.monotonic()
buttons_first_press = event.key_number
elif prev_buttons_pressed and not buttons_pressed:
print("last button release")
# last button released
if long_press:
if buttons_mask != 2 ** buttons_first_press:
# long press when multiple buttons were pressed: animation off
curr_animation_group_index = -1
else:
curr_animation_group_index = buttons_first_press % len(
animation_groups
)
else:
msg = f"{MSG_PREFIX}{buttons_mask}{MSG_SUFFIX}"
if buttons_mask == ALL_BUTTONS_MASK:
fidget_mode = not fidget_mode
print("fidget mode is now", "on" if fidget_mode else "off")
elif fidget_mode:
print("fidget mode message: ", msg)
else:
print("typing", msg)
layout.write(msg)
time.sleep(0.3)
keys.events.clear() # Empty the event queue.
animations.reset()
animations = animation_groups[curr_animation_group_index]
long_press = False
buttons_mask = 0
|
[
11748,
640,
198,
11748,
3096,
198,
11748,
1994,
15636,
198,
11748,
38551,
62,
49675,
198,
11748,
497,
404,
7168,
198,
6738,
512,
1878,
4872,
62,
992,
62,
11227,
341,
13,
11227,
341,
13,
79,
9615,
1330,
25062,
198,
6738,
512,
1878,
4872,
62,
992,
62,
11227,
341,
13,
11227,
341,
13,
39390,
1330,
15831,
198,
6738,
512,
1878,
4872,
62,
992,
62,
11227,
341,
13,
11227,
341,
13,
2436,
676,
1330,
41732,
198,
6738,
512,
1878,
4872,
62,
992,
62,
11227,
341,
13,
8094,
1330,
23535,
13247,
198,
6738,
512,
1878,
4872,
62,
992,
62,
11227,
341,
1330,
3124,
198,
6738,
512,
1878,
4872,
62,
992,
62,
11227,
341,
13,
11227,
341,
13,
354,
589,
1330,
16346,
198,
6738,
512,
1878,
4872,
62,
992,
62,
11227,
341,
13,
11227,
341,
13,
3201,
8176,
1330,
19909,
198,
6738,
512,
1878,
4872,
62,
992,
62,
11227,
341,
13,
11227,
341,
13,
3201,
25435,
20928,
293,
1330,
19909,
4561,
668,
293,
198,
6738,
512,
1878,
4872,
62,
992,
62,
11227,
341,
13,
11227,
341,
13,
8043,
13696,
1330,
5315,
20418,
2375,
198,
6738,
512,
1878,
4872,
62,
49675,
13,
2539,
3526,
1330,
31973,
198,
6738,
512,
1878,
4872,
62,
49675,
13,
2539,
3526,
62,
39786,
62,
385,
1330,
31973,
32517,
2937,
198,
198,
2,
1649,
477,
12163,
389,
2716,
11,
428,
2438,
481,
2099,
262,
9335,
286,
644,
198,
2,
550,
587,
12070,
11,
11191,
416,
262,
21231,
290,
35488,
2174,
13,
198,
5653,
38,
62,
47,
31688,
10426,
796,
366,
26,
2,
31,
27299,
1,
198,
5653,
38,
62,
12564,
5777,
10426,
796,
25113,
1,
198,
198,
74,
17457,
796,
31973,
7,
43319,
62,
49675,
13,
42034,
8,
198,
39786,
796,
31973,
32517,
2937,
7,
74,
17457,
8,
198,
198,
2,
770,
318,
262,
6757,
287,
262,
3096,
326,
318,
5884,
284,
262,
21227,
40809,
29151,
532,
767,
25228,
12365,
198,
32515,
62,
11635,
796,
3096,
13,
32,
15,
198,
22510,
62,
79,
14810,
796,
767,
198,
79,
14810,
796,
497,
404,
7168,
13,
8199,
78,
40809,
7,
32515,
62,
11635,
11,
997,
62,
79,
14810,
11,
22204,
28,
15,
13,
23,
11,
8295,
62,
13564,
28,
25101,
8,
198,
32538,
62,
32515,
796,
497,
404,
7168,
13,
8199,
78,
40809,
7,
3526,
13,
12161,
3185,
10426,
3698,
11,
352,
11,
22204,
28,
16,
11,
8295,
62,
13564,
28,
25101,
8,
198,
198,
2,
383,
4936,
20567,
356,
1183,
779,
13,
5501,
318,
3264,
5884,
284,
257,
509,
603,
71,
19663,
7383,
14645,
198,
16539,
49556,
796,
357,
3526,
13,
32,
18,
11,
3096,
13,
32,
17,
11,
3096,
13,
32,
16,
11,
3096,
13,
35,
940,
11,
3096,
13,
35,
24,
11,
3096,
13,
35,
23,
8,
198,
198,
13083,
796,
1994,
15636,
13,
40729,
7,
16539,
49556,
11,
1988,
62,
12518,
62,
45477,
28,
25101,
11,
2834,
28,
17821,
8,
198,
198,
11227,
341,
62,
14689,
62,
16539,
796,
23535,
13247,
7,
198,
220,
220,
220,
41732,
7,
79,
14810,
11,
2866,
28,
15,
13,
2713,
11,
3124,
28,
8043,
13,
12418,
12709,
828,
198,
220,
220,
220,
41732,
7,
32538,
62,
32515,
11,
2866,
28,
15,
13,
2713,
11,
3124,
28,
8043,
13,
12418,
12709,
828,
198,
8,
198,
198,
11227,
341,
62,
69,
17484,
62,
14689,
62,
16539,
796,
23535,
13247,
7,
198,
220,
220,
220,
41732,
7,
79,
14810,
11,
2866,
28,
15,
13,
2713,
11,
3124,
28,
8043,
13,
47,
4261,
16437,
828,
198,
220,
220,
220,
15831,
7,
32538,
62,
32515,
11,
3124,
28,
8043,
13,
47,
4261,
16437,
828,
198,
8,
198,
198,
11227,
341,
62,
6511,
62,
14689,
62,
16539,
796,
23535,
13247,
7,
198,
220,
220,
220,
41732,
7,
79,
14810,
11,
2866,
28,
15,
13,
2713,
11,
3124,
28,
8043,
13,
22083,
828,
198,
220,
220,
220,
15831,
7,
32538,
62,
32515,
11,
3124,
28,
8043,
13,
22083,
828,
198,
8,
198,
198,
11227,
341,
62,
2364,
796,
23535,
13247,
7,
198,
220,
220,
220,
15831,
7,
79,
14810,
11,
3124,
28,
8043,
13,
9148,
8120,
828,
198,
220,
220,
220,
15831,
7,
32538,
62,
32515,
11,
3124,
28,
8043,
13,
9148,
8120,
828,
198,
8,
198,
198,
11227,
341,
62,
24432,
796,
685,
198,
220,
220,
220,
23535,
13247,
7,
198,
220,
220,
220,
220,
220,
220,
220,
25062,
7,
79,
14810,
11,
2866,
28,
15,
13,
2713,
11,
3124,
28,
8043,
13,
1581,
27746,
11,
2278,
28,
940,
828,
198,
220,
220,
220,
220,
220,
220,
220,
15831,
7,
32538,
62,
32515,
11,
3124,
28,
8043,
13,
2390,
13246,
828,
198,
220,
220,
220,
10612,
198,
220,
220,
220,
23535,
13247,
7,
198,
220,
220,
220,
220,
220,
220,
220,
19909,
7,
79,
14810,
11,
2866,
28,
15,
13,
16,
11,
2278,
28,
940,
828,
198,
220,
220,
220,
220,
220,
220,
220,
15831,
7,
32538,
62,
32515,
11,
3124,
28,
8043,
13,
9148,
8120,
828,
198,
220,
220,
220,
10612,
198,
220,
220,
220,
23535,
13247,
7,
198,
220,
220,
220,
220,
220,
220,
220,
19909,
4561,
668,
293,
7,
79,
14810,
11,
2866,
28,
15,
13,
16,
11,
997,
62,
2777,
668,
829,
28,
17,
828,
198,
220,
220,
220,
220,
220,
220,
220,
19909,
4561,
668,
293,
7,
32538,
62,
32515,
11,
2866,
28,
15,
13,
16,
11,
997,
62,
2777,
668,
829,
28,
15,
828,
198,
220,
220,
220,
10612,
198,
220,
220,
220,
23535,
13247,
7,
198,
220,
220,
220,
220,
220,
220,
220,
41732,
7,
79,
14810,
11,
2866,
28,
18,
11,
3124,
28,
8043,
13,
38,
15173,
828,
198,
220,
220,
220,
220,
220,
220,
220,
15831,
7,
32538,
62,
32515,
11,
3124,
28,
8043,
13,
38,
15173,
828,
198,
220,
220,
220,
10612,
198,
220,
220,
220,
23535,
13247,
7,
198,
220,
220,
220,
220,
220,
220,
220,
16346,
7,
79,
14810,
11,
2866,
28,
15,
13,
16,
11,
2546,
28,
18,
11,
31050,
28,
21,
11,
3124,
28,
8043,
13,
43016,
828,
198,
220,
220,
220,
220,
220,
220,
220,
15831,
7,
32538,
62,
32515,
11,
3124,
28,
8043,
13,
43016,
828,
198,
220,
220,
220,
10612,
198,
220,
220,
220,
23535,
13247,
7,
198,
220,
220,
220,
220,
220,
220,
220,
5315,
20418,
2375,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17848,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
838,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7577,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3124,
13,
9148,
8924,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3124,
13,
43016,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3124,
13,
22083,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3124,
13,
9328,
1847,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3124,
13,
47,
4261,
16437,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3124,
13,
32,
10917,
32,
11,
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,
15831,
7,
32538,
62,
32515,
11,
3124,
28,
8043,
13,
9148,
8924,
828,
198,
220,
220,
220,
10612,
198,
220,
220,
220,
11034,
62,
2364,
11,
220,
1303,
1475,
7254,
284,
307,
262,
938,
530,
198,
60,
198,
198,
2,
20768,
11034,
284,
905,
326,
2438,
318,
3492,
284,
467,
198,
9688,
62,
912,
796,
640,
13,
2144,
313,
9229,
3419,
198,
9688,
62,
5669,
796,
5315,
20418,
2375,
7,
198,
220,
220,
220,
17848,
11,
657,
13,
1495,
11,
7577,
41888,
8043,
13,
45820,
3525,
32,
11,
3124,
13,
1581,
27746,
11,
3124,
13,
9328,
1847,
11,
3124,
13,
32,
10917,
32,
60,
198,
8,
198,
4514,
640,
13,
2144,
313,
9229,
3419,
532,
923,
62,
912,
1279,
352,
13,
20,
25,
198,
220,
220,
220,
923,
62,
5669,
13,
45685,
3419,
198,
198,
7036,
62,
47526,
11357,
50,
62,
31180,
42,
796,
362,
12429,
18896,
7,
16539,
49556,
8,
532,
352,
198,
198,
2,
383,
1181,
286,
262,
18873,
10586,
198,
69,
17484,
62,
14171,
796,
10352,
198,
22019,
81,
62,
11227,
341,
62,
8094,
62,
9630,
796,
532,
16,
198,
11227,
602,
796,
11034,
62,
2364,
198,
4360,
27288,
62,
45477,
62,
912,
796,
6045,
198,
4360,
27288,
62,
45477,
796,
657,
198,
4360,
27288,
62,
27932,
796,
657,
198,
4360,
27288,
62,
11085,
62,
8439,
796,
6045,
198,
6511,
62,
8439,
796,
10352,
198,
198,
2,
13610,
281,
1785,
356,
481,
32349,
625,
290,
625,
13,
198,
15596,
796,
1994,
15636,
13,
9237,
3419,
198,
198,
4798,
7203,
33484,
1780,
329,
4936,
31048,
4943,
198,
4514,
6407,
25,
198,
220,
220,
220,
22407,
13,
45685,
3419,
198,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
486,
8,
628,
220,
220,
220,
1303,
35874,
890,
1803,
198,
220,
220,
220,
611,
357,
198,
220,
220,
220,
220,
220,
220,
220,
357,
1662,
890,
62,
8439,
8,
198,
220,
220,
220,
220,
220,
220,
220,
290,
12163,
62,
45477,
198,
220,
220,
220,
220,
220,
220,
220,
290,
640,
13,
2144,
313,
9229,
3419,
532,
12163,
62,
45477,
62,
912,
1875,
362,
13,
23,
198,
220,
220,
220,
15179,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
6511,
1803,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
890,
62,
8439,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
22407,
13,
42503,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
22407,
796,
11034,
62,
6511,
62,
14689,
62,
16539,
628,
220,
220,
220,
611,
8251,
13,
31534,
13,
1136,
62,
20424,
7,
15596,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
12070,
62,
27932,
796,
362,
12429,
1785,
13,
2539,
62,
17618,
198,
220,
220,
220,
220,
220,
220,
220,
8654,
62,
4360,
27288,
62,
45477,
796,
12163,
62,
45477,
198,
220,
220,
220,
220,
220,
220,
220,
8654,
62,
4360,
27288,
62,
27932,
796,
12163,
62,
27932,
628,
220,
220,
220,
220,
220,
220,
220,
611,
1785,
13,
45477,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12163,
62,
45477,
930,
28,
12070,
62,
27932,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12163,
62,
27932,
930,
28,
12070,
62,
27932,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12163,
62,
45477,
1222,
28,
5299,
45477,
62,
27932,
628,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
16539,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
13,
2539,
62,
17618,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
45477,
526,
611,
1785,
13,
45477,
2073,
366,
30147,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
4360,
27288,
62,
45477,
62,
27932,
25,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12163,
62,
45477,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
4360,
27288,
62,
27932,
62,
27932,
25,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12163,
62,
27932,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
45477,
62,
27932,
25,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12070,
62,
27932,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
611,
407,
8654,
62,
4360,
27288,
62,
45477,
290,
12163,
62,
45477,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
11085,
12326,
1803,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
717,
4936,
12070,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22407,
13,
42503,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22407,
796,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11034,
62,
69,
17484,
62,
14689,
62,
16539,
611,
277,
17484,
62,
14171,
2073,
11034,
62,
14689,
62,
16539,
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,
12163,
62,
45477,
62,
912,
796,
640,
13,
2144,
313,
9229,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12163,
62,
11085,
62,
8439,
796,
1785,
13,
2539,
62,
17618,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
8654,
62,
4360,
27288,
62,
45477,
290,
407,
12163,
62,
45477,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
12957,
4936,
2650,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
938,
4936,
2716,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
890,
62,
8439,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
12163,
62,
27932,
14512,
362,
12429,
12163,
62,
11085,
62,
8439,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
890,
1803,
618,
3294,
12163,
547,
12070,
25,
11034,
572,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
81,
62,
11227,
341,
62,
8094,
62,
9630,
796,
532,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
81,
62,
11227,
341,
62,
8094,
62,
9630,
796,
12163,
62,
11085,
62,
8439,
4064,
18896,
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,
11034,
62,
24432,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
277,
1,
90,
5653,
38,
62,
47,
31688,
10426,
18477,
4360,
27288,
62,
27932,
18477,
5653,
38,
62,
12564,
5777,
10426,
36786,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
12163,
62,
27932,
6624,
11096,
62,
47526,
11357,
50,
62,
31180,
42,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
17484,
62,
14171,
796,
407,
277,
17484,
62,
14171,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
69,
17484,
4235,
318,
783,
1600,
366,
261,
1,
611,
277,
17484,
62,
14171,
2073,
366,
2364,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
277,
17484,
62,
14171,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
69,
17484,
4235,
3275,
25,
33172,
31456,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
774,
13886,
1600,
31456,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12461,
13,
13564,
7,
19662,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8251,
13,
31534,
13,
20063,
3419,
220,
1303,
33523,
262,
1785,
16834,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22407,
13,
42503,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22407,
796,
11034,
62,
24432,
58,
22019,
81,
62,
11227,
341,
62,
8094,
62,
9630,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
890,
62,
8439,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12163,
62,
27932,
796,
657,
198
] | 2.255994 | 2,836 |
#!/usr/bin/python
# Copyright 2015 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.
import contextlib
import os
import shutil
import tempfile
@contextlib.contextmanager
def TempDeploymentDir(paths, use_symlinks=True):
"""Sets up and tears down a directory for deploying an app."""
if use_symlinks:
link_func = os.symlink
else:
link_func = _Copy
try:
deployment_dir = tempfile.mkdtemp(prefix='deploy-')
_PopulateDeploymentDir(deployment_dir, paths, link_func)
yield deployment_dir
finally:
shutil.rmtree(deployment_dir)
def _PopulateDeploymentDir(deployment_dir, paths, link_func):
"""Fills the deployment directory using the link_func specified."""
for path in paths:
destination = os.path.join(deployment_dir, os.path.basename(path))
link_func(path, destination)
|
[
2,
48443,
14629,
14,
8800,
14,
29412,
198,
2,
15069,
1853,
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,
198,
11748,
4732,
8019,
198,
11748,
28686,
198,
11748,
4423,
346,
198,
11748,
20218,
7753,
628,
198,
31,
22866,
8019,
13,
22866,
37153,
198,
4299,
24189,
49322,
434,
35277,
7,
6978,
82,
11,
779,
62,
37047,
28751,
28,
17821,
2599,
198,
220,
37227,
50,
1039,
510,
290,
10953,
866,
257,
8619,
329,
29682,
281,
598,
526,
15931,
198,
220,
611,
779,
62,
37047,
28751,
25,
198,
220,
220,
220,
2792,
62,
20786,
796,
28686,
13,
1837,
4029,
676,
198,
220,
2073,
25,
198,
220,
220,
220,
2792,
62,
20786,
796,
4808,
29881,
628,
220,
1949,
25,
198,
220,
220,
220,
14833,
62,
15908,
796,
20218,
7753,
13,
28015,
67,
29510,
7,
40290,
11639,
2934,
1420,
12,
11537,
198,
220,
220,
220,
4808,
16979,
5039,
49322,
434,
35277,
7,
2934,
1420,
434,
62,
15908,
11,
13532,
11,
2792,
62,
20786,
8,
198,
220,
220,
220,
7800,
14833,
62,
15908,
198,
220,
3443,
25,
198,
220,
220,
220,
4423,
346,
13,
81,
16762,
631,
7,
2934,
1420,
434,
62,
15908,
8,
628,
198,
198,
4299,
4808,
16979,
5039,
49322,
434,
35277,
7,
2934,
1420,
434,
62,
15908,
11,
13532,
11,
2792,
62,
20786,
2599,
198,
220,
37227,
37,
2171,
262,
14833,
8619,
1262,
262,
2792,
62,
20786,
7368,
526,
15931,
198,
220,
329,
3108,
287,
13532,
25,
198,
220,
220,
220,
10965,
796,
28686,
13,
6978,
13,
22179,
7,
2934,
1420,
434,
62,
15908,
11,
28686,
13,
6978,
13,
12093,
12453,
7,
6978,
4008,
198,
220,
220,
220,
2792,
62,
20786,
7,
6978,
11,
10965,
8,
198
] | 3.003289 | 304 |
from functools import cache
if __name__ == '__main__':
print(numsSameConsecDiff(8, 1))
|
[
6738,
1257,
310,
10141,
1330,
12940,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
3601,
7,
77,
5700,
30556,
3103,
2363,
28813,
7,
23,
11,
352,
4008,
198
] | 2.540541 | 37 |
import itertools
import json
from math import inf
import rtree as rtree
from pymunk import Vec2d
from k_road.builder.road_builder import RoadBuilder
from k_road.constants import Constants
from k_road.entity import entity_factory
from k_road.entity.entity_type import EntityType
# ------------------------------------------------#
### NOTE again whether we are mapping to right hand coords here or not.
# This ends up by negating all y coordinates
# The trick is to be consistent w.r.t. when this conversion happens.
# which so far we have not been succeeding. sorry
###
|
[
11748,
340,
861,
10141,
198,
11748,
33918,
198,
6738,
10688,
1330,
1167,
198,
198,
11748,
374,
21048,
355,
374,
21048,
198,
6738,
279,
4948,
2954,
1330,
38692,
17,
67,
198,
198,
6738,
479,
62,
6344,
13,
38272,
13,
6344,
62,
38272,
1330,
5567,
32875,
198,
6738,
479,
62,
6344,
13,
9979,
1187,
1330,
4757,
1187,
198,
6738,
479,
62,
6344,
13,
26858,
1330,
9312,
62,
69,
9548,
198,
6738,
479,
62,
6344,
13,
26858,
13,
26858,
62,
4906,
1330,
20885,
6030,
628,
198,
2,
20368,
1783,
2,
628,
198,
21017,
24550,
757,
1771,
356,
389,
16855,
284,
826,
1021,
763,
3669,
994,
393,
407,
13,
198,
2,
770,
5645,
510,
416,
2469,
803,
477,
331,
22715,
198,
2,
383,
6908,
318,
284,
307,
6414,
266,
13,
81,
13,
83,
13,
618,
428,
11315,
4325,
13,
198,
2,
543,
523,
1290,
356,
423,
407,
587,
34195,
13,
7926,
198,
21017,
198
] | 3.84 | 150 |
#!/usr/bin/python
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/vhosts/maildash.iccenter.org/")
from maildash import app as application
application.secret_key = 'development-key'
|
[
2,
48443,
14629,
14,
8800,
14,
29412,
198,
11748,
25064,
198,
11748,
18931,
198,
6404,
2667,
13,
35487,
16934,
7,
5532,
28,
17597,
13,
301,
1082,
81,
8,
198,
17597,
13,
6978,
13,
28463,
7,
15,
553,
14,
7785,
14,
2503,
14,
85,
4774,
82,
14,
2611,
688,
1077,
13,
291,
16159,
13,
2398,
14,
4943,
198,
198,
6738,
17266,
688,
1077,
1330,
598,
355,
3586,
198,
31438,
13,
21078,
62,
2539,
796,
705,
31267,
12,
2539,
6,
198
] | 2.873418 | 79 |
import os, glob
from fabric.api import env, sudo, run, cd, local, put, prefix, roles, execute, task, get
from fabric.api import settings as fab_settings
from fabric.context_managers import settings, hide
from fabric.contrib.files import sed
from subprocess import Popen, PIPE
import datetime
from utils import _build_env, _run_task, _cron_command, _request_input, _request_continue, _append_to_file, _load_template
from enumerations import GEONODE_TYPES, ISO_CATEGORIES
global targets
targets = ()
PATH_ACTIVATE = "/var/lib/geonode/bin/activate"
PATH_MANAGEPY_VN = "/var/lib/geonode"
PATH_MANAGEPY_GS = "/var/lib/geonode/rogue_geonode"
PATH_DNA_JSON = "/opt/chef-run/dna.json"
PATH_LS_VN = "/var/lib/geonode/local_settings.py"
PATH_LS_GS = "/var/lib/geonode/rogue_geonode/geoshape/local_settings.py"
PATH_GEOSERVER_DATA = "/var/lib/geoserver_data"
#############################################################
# The Public API
@task
def gn(*args):
"""
Load GeoNode settings from geonodes.py
Imports GeoNode settings from a geonodes.py file
in the same directory
"""
global targets
targets = args
@task
@task
## GeoSever
@task
@task
## Vanilla
@task
## GeoSHAPE
@task
def provision_geoshape(*args):
"""
Provision a GeoSHAPE instance
Runs `cybergis-scripts-rogue.sh prod provision`
"""
return _run_task(_provision_geoshape, args=args)
@task
def restart_geoshape(*args):
"""
Restart GeoSHAPE instance, including Django, GeoServer, and RabbitMQ
Calls ./stop_geonode and ./start_geonode,
restarts tomcat7, and resets RabbitMQ
"""
return _run_task(_restart_geoshape, args=args)
@task
@task
@task
def importlayers(t=None, local=None, drop=None, user=None, overwrite=None, category=None, keywords=None, private=None):
"""
Import local files into a GeoNode instance
Puts via SFTP local files into the remote's "drop" folder and then
runs importlayers on all of them.
Options:
t = GeoNode Type (Vanilla or GeoSHAPE)
local = local file path
drop = temporary drop folder
user = the user that will own the layer
overwrite = overwrite existing layers
category = ISO Category for layer
keywords = comma separated list of keywords
private = Is layer only visible to owner and admins?
"""
return _run_task(_importlayers, kwargs={'t':t, 'local':local, 'drop': drop, 'user': user, 'overwrite': overwrite, 'category': category, 'keywords': keywords, 'private': private})
@task
def add_gmail(t=None, u=None, p=None):
"""
Adds server GMail to instance
Adds GMail settings to vim /var/lib/geonode/rogue_geonode/geoshape/local_settings.py
"""
address = _request_input("User", u, True)+'@gmail.com'
host = 'smtp.gmail.com'
return _run_task(_add_email, args=None, kwargs={'t':t, 'a':address, 'p':p, 'h':host})
@task
@task
@task
def backup_geonode(t=None, remote=None, local=None):
"""
Backup GeoNode to disk
Backs up GeoNode to the destination "d" folder
on disk.
Options:
t = GeoNode Type (Vanilla or GeoSHAPE)
remote = remote folder to backup to (required)
local = local folder to backup to (optional)
"""
return _run_task(_backup_geonode, args=None, kwargs={'t':t, 'remote':remote, 'local':local})
#############################################################
# The Private API
|
[
11748,
28686,
11,
15095,
198,
6738,
9664,
13,
15042,
1330,
17365,
11,
21061,
11,
1057,
11,
22927,
11,
1957,
11,
1234,
11,
21231,
11,
9176,
11,
12260,
11,
4876,
11,
651,
198,
6738,
9664,
13,
15042,
1330,
6460,
355,
7843,
62,
33692,
198,
6738,
9664,
13,
22866,
62,
805,
10321,
1330,
6460,
11,
7808,
198,
6738,
9664,
13,
3642,
822,
13,
16624,
1330,
10081,
198,
6738,
850,
14681,
1330,
8099,
268,
11,
350,
4061,
36,
198,
11748,
4818,
8079,
198,
198,
6738,
3384,
4487,
1330,
4808,
11249,
62,
24330,
11,
4808,
5143,
62,
35943,
11,
4808,
66,
1313,
62,
21812,
11,
4808,
25927,
62,
15414,
11,
4808,
25927,
62,
43043,
11,
4808,
33295,
62,
1462,
62,
7753,
11,
4808,
2220,
62,
28243,
198,
198,
6738,
27056,
602,
1330,
22319,
1340,
16820,
62,
9936,
47,
1546,
11,
19694,
62,
34,
6158,
38,
1581,
11015,
198,
198,
20541,
6670,
198,
83,
853,
1039,
796,
7499,
198,
198,
34219,
62,
10659,
3824,
6158,
796,
12813,
7785,
14,
8019,
14,
6281,
1098,
14,
8800,
14,
39022,
1,
198,
34219,
62,
10725,
4760,
8905,
56,
62,
53,
45,
796,
12813,
7785,
14,
8019,
14,
6281,
1098,
1,
198,
34219,
62,
10725,
4760,
8905,
56,
62,
14313,
796,
12813,
7785,
14,
8019,
14,
6281,
1098,
14,
3828,
518,
62,
6281,
1098,
1,
198,
198,
34219,
62,
28886,
62,
40386,
796,
12813,
8738,
14,
2395,
69,
12,
5143,
14,
67,
2616,
13,
17752,
1,
198,
198,
34219,
62,
6561,
62,
53,
45,
796,
12813,
7785,
14,
8019,
14,
6281,
1098,
14,
12001,
62,
33692,
13,
9078,
1,
198,
34219,
62,
6561,
62,
14313,
796,
12813,
7785,
14,
8019,
14,
6281,
1098,
14,
3828,
518,
62,
6281,
1098,
14,
469,
3768,
1758,
14,
12001,
62,
33692,
13,
9078,
1,
198,
198,
34219,
62,
8264,
2640,
1137,
5959,
62,
26947,
796,
12813,
7785,
14,
8019,
14,
469,
13416,
332,
62,
7890,
1,
198,
198,
29113,
14468,
7804,
4242,
2,
198,
2,
383,
5094,
7824,
198,
31,
35943,
198,
4299,
19967,
46491,
22046,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
8778,
32960,
19667,
6460,
422,
4903,
261,
4147,
13,
9078,
628,
220,
220,
220,
1846,
3742,
32960,
19667,
6460,
422,
257,
4903,
261,
4147,
13,
9078,
2393,
198,
220,
220,
220,
287,
262,
976,
8619,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3298,
6670,
198,
220,
220,
220,
6670,
796,
26498,
628,
198,
31,
35943,
628,
198,
31,
35943,
198,
198,
2235,
32960,
50,
964,
198,
198,
31,
35943,
628,
198,
31,
35943,
628,
198,
2235,
33897,
198,
198,
31,
35943,
628,
198,
2235,
32960,
9693,
45721,
628,
198,
31,
35943,
198,
4299,
8287,
62,
469,
3768,
1758,
46491,
22046,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
43161,
257,
32960,
9693,
45721,
4554,
628,
220,
220,
220,
44743,
4600,
948,
3900,
271,
12,
46521,
12,
3828,
518,
13,
1477,
40426,
8287,
63,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1441,
4808,
5143,
62,
35943,
28264,
1676,
10178,
62,
469,
3768,
1758,
11,
26498,
28,
22046,
8,
628,
198,
31,
35943,
198,
4299,
15765,
62,
469,
3768,
1758,
46491,
22046,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
8324,
433,
32960,
9693,
45721,
4554,
11,
1390,
37770,
11,
32960,
10697,
11,
290,
25498,
49215,
628,
220,
220,
220,
27592,
24457,
11338,
62,
6281,
1098,
290,
24457,
9688,
62,
6281,
1098,
11,
198,
220,
220,
220,
1334,
5889,
16667,
9246,
22,
11,
290,
581,
1039,
25498,
49215,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1441,
4808,
5143,
62,
35943,
28264,
2118,
433,
62,
469,
3768,
1758,
11,
26498,
28,
22046,
8,
628,
198,
31,
35943,
628,
198,
31,
35943,
628,
198,
31,
35943,
220,
198,
4299,
1330,
75,
6962,
7,
83,
28,
14202,
11,
1957,
28,
14202,
11,
4268,
28,
14202,
11,
2836,
28,
14202,
11,
49312,
28,
14202,
11,
6536,
28,
14202,
11,
26286,
28,
14202,
11,
2839,
28,
14202,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
17267,
1957,
3696,
656,
257,
32960,
19667,
4554,
628,
220,
220,
220,
350,
5500,
2884,
14362,
7250,
1957,
3696,
656,
262,
6569,
338,
366,
14781,
1,
9483,
290,
788,
198,
220,
220,
220,
4539,
1330,
75,
6962,
319,
477,
286,
606,
13,
628,
220,
220,
220,
18634,
25,
198,
220,
220,
220,
256,
796,
32960,
19667,
5994,
357,
25298,
5049,
393,
32960,
9693,
45721,
8,
198,
220,
220,
220,
1957,
796,
1957,
2393,
3108,
198,
220,
220,
220,
4268,
796,
8584,
4268,
9483,
628,
220,
220,
220,
2836,
796,
262,
2836,
326,
481,
898,
262,
7679,
198,
220,
220,
220,
49312,
796,
49312,
4683,
11685,
198,
220,
220,
220,
6536,
796,
19694,
21743,
329,
7679,
198,
220,
220,
220,
26286,
796,
39650,
11266,
1351,
286,
26286,
198,
220,
220,
220,
2839,
796,
1148,
7679,
691,
7424,
284,
4870,
290,
44563,
30,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1441,
4808,
5143,
62,
35943,
28264,
11748,
75,
6962,
11,
479,
86,
22046,
34758,
6,
83,
10354,
83,
11,
705,
12001,
10354,
12001,
11,
705,
14781,
10354,
4268,
11,
705,
7220,
10354,
2836,
11,
705,
2502,
13564,
10354,
49312,
11,
705,
22872,
10354,
6536,
11,
705,
2539,
10879,
10354,
26286,
11,
705,
19734,
10354,
2839,
30072,
628,
198,
31,
35943,
198,
4299,
751,
62,
14816,
7,
83,
28,
14202,
11,
334,
28,
14202,
11,
279,
28,
14202,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
34333,
4382,
6951,
603,
284,
4554,
628,
220,
220,
220,
34333,
6951,
603,
6460,
284,
43907,
1220,
7785,
14,
8019,
14,
6281,
1098,
14,
3828,
518,
62,
6281,
1098,
14,
469,
3768,
1758,
14,
12001,
62,
33692,
13,
9078,
628,
220,
220,
220,
37227,
628,
220,
220,
220,
2209,
796,
4808,
25927,
62,
15414,
7203,
12982,
1600,
334,
11,
6407,
47762,
6,
31,
14816,
13,
785,
6,
198,
220,
220,
220,
2583,
796,
705,
5796,
34788,
13,
14816,
13,
785,
6,
198,
220,
220,
220,
1441,
4808,
5143,
62,
35943,
28264,
2860,
62,
12888,
11,
26498,
28,
14202,
11,
479,
86,
22046,
34758,
6,
83,
10354,
83,
11,
705,
64,
10354,
21975,
11,
705,
79,
10354,
79,
11,
705,
71,
10354,
4774,
30072,
198,
198,
31,
35943,
628,
198,
31,
35943,
628,
198,
31,
35943,
198,
4299,
11559,
62,
6281,
1098,
7,
83,
28,
14202,
11,
6569,
28,
14202,
11,
1957,
28,
14202,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
35071,
32960,
19667,
284,
11898,
628,
220,
220,
220,
347,
4595,
510,
32960,
19667,
284,
262,
10965,
366,
67,
1,
9483,
198,
220,
220,
220,
319,
11898,
13,
628,
220,
220,
220,
18634,
25,
198,
220,
220,
220,
256,
796,
32960,
19667,
5994,
357,
25298,
5049,
393,
32960,
9693,
45721,
8,
198,
220,
220,
220,
6569,
796,
6569,
9483,
284,
11559,
284,
357,
35827,
8,
198,
220,
220,
220,
1957,
796,
1957,
9483,
284,
11559,
284,
357,
25968,
8,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1441,
4808,
5143,
62,
35943,
28264,
1891,
929,
62,
6281,
1098,
11,
26498,
28,
14202,
11,
479,
86,
22046,
34758,
6,
83,
10354,
83,
11,
705,
47960,
10354,
47960,
11,
705,
12001,
10354,
12001,
30072,
198,
198,
29113,
14468,
7804,
4242,
2,
198,
2,
383,
15348,
7824,
628,
628,
628,
628,
628,
628,
628,
628,
198
] | 2.838442 | 1,207 |
for _ in range(6):
sauter()
avancer()
avancer()
gauche()
for _ in range(2):
avancer()
for _ in range(9):
coup()
avancer()
avancer()
ouvrir()
|
[
1640,
4808,
287,
2837,
7,
21,
2599,
198,
197,
82,
2306,
263,
3419,
198,
197,
615,
8250,
3419,
198,
615,
8250,
3419,
198,
70,
559,
2395,
3419,
198,
1640,
4808,
287,
2837,
7,
17,
2599,
198,
197,
615,
8250,
3419,
198,
1640,
4808,
287,
2837,
7,
24,
2599,
198,
197,
66,
10486,
3419,
198,
197,
615,
8250,
3419,
198,
615,
8250,
3419,
198,
280,
85,
29283,
3419,
198
] | 2.147059 | 68 |
import cv2
import tensorflow as tf
import numpy as np
import glob
import os
import time
import argparse
import configparser
from auto_pose.ae import factory, utils
parser = argparse.ArgumentParser()
parser.add_argument("experiment_name")
parser.add_argument("-f", "--file_str", required=True, help='folder or filename to image(s)')
# parser.add_argument("-gt_bb", action='store_true', default=False)
arguments = parser.parse_args()
full_name = arguments.experiment_name.split('/')
experiment_name = full_name.pop()
experiment_group = full_name.pop() if len(full_name) > 0 else ''
print('experiment name: ', experiment_name)
print('experiment group: ', experiment_group)
file_str = arguments.file_str
if os.path.isdir(file_str):
files = sorted(glob.glob(os.path.join(str(file_str),'*.png'))+glob.glob(os.path.join(str(file_str),'*.jpg'))+glob.glob(os.path.join(str(file_str),'*.JPG')))
else:
files = [file_str]
workspace_path = os.environ.get('AE_WORKSPACE_PATH')
if workspace_path == None:
print('Please define a workspace path:\n')
print('export AE_WORKSPACE_PATH=/path/to/workspace\n')
exit(-1)
log_dir = utils.get_log_dir(workspace_path,experiment_name,experiment_group)
ckpt_dir = utils.get_checkpoint_dir(log_dir)
start_time = time.time()
encoder = factory.build_codebook_from_name(experiment_name, experiment_group, return_encoder=True)
end_time = time.time()
print("encoder loading: ", str(end_time - start_time))
with tf.Session() as sess:
start_time = time.time()
factory.restore_checkpoint(sess, tf.train.Saver(), ckpt_dir)
end_time = time.time()
print("restoring checkpoint: ", str(end_time - start_time))
# for i in range(1, 8):
for file in files:
im = cv2.imread(file)
im = cv2.resize(im, (256, 256))
im = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
im = np.expand_dims(im, axis=2)
start_time = time.time()
latent_vector = encoder.latent_vector(sess, im)
end_time = time.time()
print('latent vector: ', latent_vector)
print("inference time: ", int(1000 * (end_time - start_time)) / 1000., " fps: ",
int(1 / (end_time - start_time)))
|
[
198,
11748,
269,
85,
17,
198,
11748,
11192,
273,
11125,
355,
48700,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
15095,
198,
11748,
28686,
198,
11748,
640,
198,
11748,
1822,
29572,
198,
11748,
4566,
48610,
198,
198,
6738,
8295,
62,
3455,
13,
3609,
1330,
8860,
11,
3384,
4487,
628,
198,
198,
48610,
796,
1822,
29572,
13,
28100,
1713,
46677,
3419,
198,
48610,
13,
2860,
62,
49140,
7203,
23100,
3681,
62,
3672,
4943,
198,
48610,
13,
2860,
62,
49140,
7203,
12,
69,
1600,
366,
438,
7753,
62,
2536,
1600,
2672,
28,
17821,
11,
1037,
11639,
43551,
393,
29472,
284,
2939,
7,
82,
8,
11537,
198,
2,
30751,
13,
2860,
62,
49140,
7203,
12,
13655,
62,
11848,
1600,
2223,
11639,
8095,
62,
7942,
3256,
4277,
28,
25101,
8,
198,
853,
2886,
796,
30751,
13,
29572,
62,
22046,
3419,
198,
12853,
62,
3672,
796,
7159,
13,
23100,
3681,
62,
3672,
13,
35312,
10786,
14,
11537,
198,
23100,
3681,
62,
3672,
796,
1336,
62,
3672,
13,
12924,
3419,
198,
23100,
3681,
62,
8094,
796,
1336,
62,
3672,
13,
12924,
3419,
611,
18896,
7,
12853,
62,
3672,
8,
1875,
657,
2073,
10148,
198,
198,
4798,
10786,
23100,
3681,
1438,
25,
220,
46083,
6306,
62,
3672,
8,
198,
4798,
10786,
23100,
3681,
1448,
25,
220,
46083,
6306,
62,
8094,
8,
628,
198,
7753,
62,
2536,
796,
7159,
13,
7753,
62,
2536,
198,
361,
28686,
13,
6978,
13,
9409,
343,
7,
7753,
62,
2536,
2599,
198,
220,
220,
220,
3696,
796,
23243,
7,
4743,
672,
13,
4743,
672,
7,
418,
13,
6978,
13,
22179,
7,
2536,
7,
7753,
62,
2536,
828,
6,
24620,
11134,
6,
4008,
10,
4743,
672,
13,
4743,
672,
7,
418,
13,
6978,
13,
22179,
7,
2536,
7,
7753,
62,
2536,
828,
6,
24620,
9479,
6,
4008,
10,
4743,
672,
13,
4743,
672,
7,
418,
13,
6978,
13,
22179,
7,
2536,
7,
7753,
62,
2536,
828,
6,
24620,
41,
6968,
6,
22305,
198,
17772,
25,
198,
220,
220,
220,
3696,
796,
685,
7753,
62,
2536,
60,
198,
198,
5225,
10223,
62,
6978,
796,
28686,
13,
268,
2268,
13,
1136,
10786,
14242,
62,
33249,
4303,
11598,
62,
34219,
11537,
198,
361,
44573,
62,
6978,
6624,
6045,
25,
198,
220,
220,
220,
3601,
10786,
5492,
8160,
257,
44573,
3108,
7479,
77,
11537,
198,
220,
220,
220,
3601,
10786,
39344,
25603,
62,
33249,
4303,
11598,
62,
34219,
33223,
6978,
14,
1462,
14,
5225,
10223,
59,
77,
11537,
198,
220,
220,
220,
8420,
32590,
16,
8,
198,
6404,
62,
15908,
796,
3384,
4487,
13,
1136,
62,
6404,
62,
15908,
7,
5225,
10223,
62,
6978,
11,
23100,
3681,
62,
3672,
11,
23100,
3681,
62,
8094,
8,
198,
694,
457,
62,
15908,
796,
3384,
4487,
13,
1136,
62,
9122,
4122,
62,
15908,
7,
6404,
62,
15908,
8,
198,
198,
9688,
62,
2435,
796,
640,
13,
2435,
3419,
198,
12685,
12342,
796,
8860,
13,
11249,
62,
8189,
2070,
62,
6738,
62,
3672,
7,
23100,
3681,
62,
3672,
11,
6306,
62,
8094,
11,
1441,
62,
12685,
12342,
28,
17821,
8,
198,
437,
62,
2435,
796,
640,
13,
2435,
3419,
198,
4798,
7203,
12685,
12342,
11046,
25,
33172,
965,
7,
437,
62,
2435,
532,
923,
62,
2435,
4008,
628,
198,
4480,
48700,
13,
36044,
3419,
355,
264,
408,
25,
628,
220,
220,
220,
923,
62,
2435,
796,
640,
13,
2435,
3419,
198,
220,
220,
220,
8860,
13,
2118,
382,
62,
9122,
4122,
7,
82,
408,
11,
48700,
13,
27432,
13,
50,
8770,
22784,
269,
74,
457,
62,
15908,
8,
198,
220,
220,
220,
886,
62,
2435,
796,
640,
13,
2435,
3419,
198,
220,
220,
220,
3601,
7203,
2118,
3255,
26954,
25,
33172,
965,
7,
437,
62,
2435,
532,
923,
62,
2435,
4008,
628,
220,
220,
220,
1303,
329,
1312,
287,
2837,
7,
16,
11,
807,
2599,
198,
220,
220,
220,
329,
2393,
287,
3696,
25,
628,
220,
220,
220,
220,
220,
220,
220,
545,
796,
269,
85,
17,
13,
320,
961,
7,
7753,
8,
198,
220,
220,
220,
220,
220,
220,
220,
545,
796,
269,
85,
17,
13,
411,
1096,
7,
320,
11,
357,
11645,
11,
17759,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
545,
796,
269,
85,
17,
13,
33967,
83,
10258,
7,
320,
11,
269,
85,
17,
13,
46786,
62,
33,
10761,
17,
38,
30631,
8,
198,
220,
220,
220,
220,
220,
220,
220,
545,
796,
45941,
13,
11201,
392,
62,
67,
12078,
7,
320,
11,
16488,
28,
17,
8,
628,
220,
220,
220,
220,
220,
220,
220,
923,
62,
2435,
796,
640,
13,
2435,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
41270,
62,
31364,
796,
2207,
12342,
13,
15460,
298,
62,
31364,
7,
82,
408,
11,
545,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
62,
2435,
796,
640,
13,
2435,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
15460,
298,
15879,
25,
46083,
41270,
62,
31364,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
259,
4288,
640,
25,
33172,
493,
7,
12825,
1635,
357,
437,
62,
2435,
532,
923,
62,
2435,
4008,
1220,
8576,
1539,
366,
220,
220,
220,
32977,
25,
33172,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
493,
7,
16,
1220,
357,
437,
62,
2435,
532,
923,
62,
2435,
22305,
198
] | 2.508591 | 873 |
# -*- coding: utf-8 -*-
"""
Collection of functions that perform different types of parsing
"""
__author__ = "Brian Connelly <[email protected]>"
__credits__ = "Brian Connelly"
import re
from seeds.SEEDSError import *
def parse_int_rangelist(s, sorted=False):
"""Parse a list of numeric ranges. These lists are a comma-separated list
of either single numbers or ranges, specified by number-number.
Parameters:
s
A string containing a comma-separated list of integers and ranges of
integers
sorted
Whether or not to sort the resulting list (default: False)
"""
range_pattern = "\s*(\-?\d+)\s*\-\s*(\-?\d+)\s*"
retval = []
if s:
tokens = s.split(",")
for t in tokens:
match = re.match(range_pattern, t)
if match:
start = int(match.group(1))
end = int(match.group(2))
for i in range(start, end+1):
retval.append(i)
else:
try:
x = int(t)
retval.append(x)
except ValueError:
raise IntRangelistFormatError(s)
if sorted:
retval.sort()
return retval
def parse_version_string(s):
"""Parse a version string and return a 3-element dict with keys 'operator',
'major', and 'minor'. Input strings are of the form:
<operator><major_version>.<minor_version>
Where <operator> is one of: <, <=, =, >=, or >. Although not recommended,
when the operator is omitted, = will be used.
"""
pattern = '^\s*(?P<operator>[<>=]+)?\s*(?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+))?\s*$'
match = re.match(pattern, s)
if match:
retval = {}
if match.group('operator') == None:
retval['operator'] = '='
else:
retval['operator'] = match.group('operator')
retval['major'] = int(match.group('major'))
retval['minor'] = int(match.group('minor'))
if match.group('patch'):
retval['patch'] = int(match.group('patch'))
else:
retval['patch'] = 0
retval['version'] = (int(match.group('major')), int(match.group('minor')), int(retval['patch']))
return retval
else:
raise VersionStringFormatError("'{s}' is not a valid version string".format(s=s))
|
[
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
198,
36307,
286,
5499,
326,
1620,
1180,
3858,
286,
32096,
198,
37811,
198,
198,
834,
9800,
834,
796,
366,
24761,
20776,
6148,
1279,
17457,
66,
31,
65,
37043,
6148,
13,
3262,
24618,
198,
834,
66,
20696,
834,
796,
366,
24761,
20776,
6148,
1,
198,
198,
11748,
302,
198,
198,
6738,
11904,
13,
5188,
1961,
5188,
81,
1472,
1330,
1635,
628,
198,
4299,
21136,
62,
600,
62,
81,
8368,
396,
7,
82,
11,
23243,
28,
25101,
2599,
198,
220,
220,
220,
37227,
10044,
325,
257,
1351,
286,
35575,
16069,
13,
220,
2312,
8341,
389,
257,
39650,
12,
25512,
515,
1351,
198,
220,
220,
220,
286,
2035,
2060,
3146,
393,
16069,
11,
7368,
416,
1271,
12,
17618,
13,
628,
220,
220,
220,
40117,
25,
628,
220,
220,
220,
264,
198,
220,
220,
220,
220,
220,
220,
220,
317,
4731,
7268,
257,
39650,
12,
25512,
515,
1351,
286,
37014,
290,
16069,
286,
198,
220,
220,
220,
220,
220,
220,
220,
37014,
198,
220,
220,
220,
23243,
198,
220,
220,
220,
220,
220,
220,
220,
10127,
393,
407,
284,
3297,
262,
7186,
1351,
357,
12286,
25,
10352,
8,
628,
220,
220,
220,
37227,
628,
220,
220,
220,
2837,
62,
33279,
796,
37082,
82,
9,
38016,
12,
30,
59,
67,
10,
19415,
82,
9,
41441,
59,
82,
9,
38016,
12,
30,
59,
67,
10,
19415,
82,
9,
1,
628,
220,
220,
220,
1005,
2100,
796,
17635,
628,
220,
220,
220,
611,
264,
25,
198,
220,
220,
220,
220,
220,
220,
220,
16326,
796,
264,
13,
35312,
7,
2430,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
256,
287,
16326,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2872,
796,
302,
13,
15699,
7,
9521,
62,
33279,
11,
256,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2872,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
796,
493,
7,
15699,
13,
8094,
7,
16,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
796,
493,
7,
15699,
13,
8094,
7,
17,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
9688,
11,
886,
10,
16,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
2100,
13,
33295,
7,
72,
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,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
493,
7,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
2100,
13,
33295,
7,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
11052,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2558,
49,
8368,
396,
26227,
12331,
7,
82,
8,
628,
220,
220,
220,
611,
23243,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1005,
2100,
13,
30619,
3419,
628,
220,
220,
220,
1441,
1005,
2100,
198,
198,
4299,
21136,
62,
9641,
62,
8841,
7,
82,
2599,
198,
220,
220,
220,
37227,
10044,
325,
257,
2196,
4731,
290,
1441,
257,
513,
12,
30854,
8633,
351,
8251,
705,
46616,
3256,
198,
220,
220,
220,
705,
22478,
3256,
290,
705,
1084,
273,
4458,
23412,
13042,
389,
286,
262,
1296,
25,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
46616,
6927,
22478,
62,
9641,
28401,
27,
1084,
273,
62,
9641,
29,
628,
220,
220,
220,
6350,
1279,
46616,
29,
318,
530,
286,
25,
1279,
11,
19841,
11,
796,
11,
18189,
11,
393,
1875,
13,
220,
4900,
407,
7151,
11,
198,
220,
220,
220,
618,
262,
10088,
318,
22532,
11,
796,
481,
307,
973,
13,
628,
220,
220,
220,
37227,
628,
220,
220,
220,
3912,
796,
705,
61,
59,
82,
9,
7,
30,
47,
27,
46616,
36937,
27,
29,
28,
48688,
19427,
59,
82,
9,
7,
30,
47,
27,
22478,
29,
59,
67,
10,
19415,
12195,
30,
47,
27,
1084,
273,
29,
59,
67,
10,
5769,
59,
12195,
30,
47,
27,
17147,
29,
59,
67,
10,
4008,
30,
59,
82,
9,
3,
6,
198,
220,
220,
220,
2872,
796,
302,
13,
15699,
7,
33279,
11,
264,
8,
628,
220,
220,
220,
611,
2872,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1005,
2100,
796,
23884,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2872,
13,
8094,
10786,
46616,
11537,
6624,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
2100,
17816,
46616,
20520,
796,
705,
11639,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
2100,
17816,
46616,
20520,
796,
2872,
13,
8094,
10786,
46616,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
1005,
2100,
17816,
22478,
20520,
796,
493,
7,
15699,
13,
8094,
10786,
22478,
6,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1005,
2100,
17816,
1084,
273,
20520,
796,
493,
7,
15699,
13,
8094,
10786,
1084,
273,
6,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2872,
13,
8094,
10786,
17147,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
2100,
17816,
17147,
20520,
796,
493,
7,
15699,
13,
8094,
10786,
17147,
6,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
2100,
17816,
17147,
20520,
796,
657,
628,
220,
220,
220,
220,
220,
220,
220,
1005,
2100,
17816,
9641,
20520,
796,
357,
600,
7,
15699,
13,
8094,
10786,
22478,
11537,
828,
493,
7,
15699,
13,
8094,
10786,
1084,
273,
11537,
828,
493,
7,
1186,
2100,
17816,
17147,
20520,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1005,
2100,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
10628,
10100,
26227,
12331,
7203,
6,
90,
82,
92,
6,
318,
407,
257,
4938,
2196,
4731,
1911,
18982,
7,
82,
28,
82,
4008,
198
] | 2.188472 | 1,093 |
#!/usr/bin/env python3
import contextlib
import os
import random
import socket
import string
import subprocess
import time
import unittest
@contextlib.contextmanager
class SmokeTest(unittest.TestCase):
'''High level smoke tests for the library.
These should be run via ninja smoke from your meson build directory.
'''
if __name__ == '__main__':
unittest.main()
|
[
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
198,
11748,
4732,
8019,
198,
11748,
28686,
198,
11748,
4738,
198,
11748,
17802,
198,
11748,
4731,
198,
11748,
850,
14681,
198,
11748,
640,
198,
11748,
555,
715,
395,
628,
198,
198,
31,
22866,
8019,
13,
22866,
37153,
628,
628,
198,
4871,
25416,
14402,
7,
403,
715,
395,
13,
14402,
20448,
2599,
198,
220,
220,
220,
705,
7061,
11922,
1241,
7523,
5254,
329,
262,
5888,
13,
628,
220,
220,
220,
2312,
815,
307,
1057,
2884,
37049,
7523,
422,
534,
18842,
261,
1382,
8619,
13,
198,
220,
220,
220,
705,
7061,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
555,
715,
395,
13,
12417,
3419,
198
] | 3.180328 | 122 |
from __future__ import print_function
import argparse
import glob
import os
if __name__ == '__main__':
main()
|
[
6738,
11593,
37443,
834,
1330,
3601,
62,
8818,
198,
198,
11748,
1822,
29572,
198,
11748,
15095,
198,
11748,
28686,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198
] | 3.025641 | 39 |
import math
from functools import reduce, wraps
from typing import Callable, List, Union, Optional
from toolz import groupby
import pandas as pd
from funcy import lmapcat
try:
from tqdm.autonotebook import tqdm
except ImportError:
_has_tqdm = False
tqdm = None
else:
_has_tqdm = True
def rename_keys(dictionary: dict, mapping: dict):
"Rename keys in a dictionary"
return {mapping.get(k, k): v for k, v in dictionary.items()}
def concat_dicts(dicts, prefix: Union[str, int] = ""):
"Concatenate list of dictionaries"
def bump_key_index(key, existing_dict, start=1):
"Prefix with _1 until index not in existing dictionary"
if key not in existing_dict:
return key
new_key = f"{key}_{start}"
if new_key in existing_dict:
return bump_key_index(key, existing_dict, start + 1)
return new_key
return prefix_dict_keys(reduce(reduce_two_dicts, dicts, {}), prefix)
def defaultprop(fn):
"""Function decorator to have a default property (but not automatically set
it)
"""
attr_name = "_" + fn.__name__
@property
@wraps(fn)
return _defaultprop
def add_prefixes(values: List[str], prefixes: List[str]):
"""Add prefix to each value if not already present"""
if len(prefixes) == 0:
return values
return lmapcat(
lambda prefix: [
(value if value.startswith(prefix) else f"{prefix}{value}")
for value in values
],
prefixes,
)
class Hashabledict(dict):
"""Dictionary that is hashable (useful for creating set of unique dictionaries)"""
def get_values_at_codeable_paths(value: dict, keys: List[str]):
"""Extract values from FHIR records based on keys (useful for extracting codes)"""
return lmapcat(lambda key: get_value_at_codeable_path(value, key), keys)
def extract_codes(results: list, display: str, code_fields: List[str]):
"""Extract code values from a list of dictionaries based on the code keys.
Requires a display value to filter results preemptively (instead of
filtering afterwards)
"""
codes = set()
for row in results:
row_codes = get_values_at_codeable_paths(row, code_fields)
for code in row_codes:
if (
isinstance(code, dict)
# Poor man's way to filter only matching codes (since Elasticsearch
# returns records which will include other codes)
and display.lower() in code.get("display", "").lower()
):
codes.add(code)
return pd.DataFrame(list(codes))
def split_by(args: dict, left_keys: List[str]):
"""Split into two dictionaries (left is whitelist and right is remaining)"""
result = {
k: dict(v)
for k, v in groupby(
lambda pair: pair[0] in left_keys, args.items()
).items()
}
return (result.get(True, {}), result.get(False, {}))
|
[
11748,
10688,
198,
6738,
1257,
310,
10141,
1330,
4646,
11,
27521,
198,
6738,
19720,
1330,
4889,
540,
11,
7343,
11,
4479,
11,
32233,
198,
6738,
2891,
89,
1330,
1448,
1525,
198,
198,
11748,
19798,
292,
355,
279,
67,
198,
6738,
1257,
948,
1330,
300,
8899,
9246,
198,
198,
28311,
25,
198,
220,
220,
220,
422,
256,
80,
36020,
13,
2306,
261,
1258,
2070,
1330,
256,
80,
36020,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
4808,
10134,
62,
83,
80,
36020,
796,
10352,
198,
220,
220,
220,
256,
80,
36020,
796,
6045,
198,
17772,
25,
198,
220,
220,
220,
4808,
10134,
62,
83,
80,
36020,
796,
6407,
628,
198,
4299,
36265,
62,
13083,
7,
67,
14188,
25,
8633,
11,
16855,
25,
8633,
2599,
198,
220,
220,
220,
366,
49,
12453,
8251,
287,
257,
22155,
1,
198,
220,
220,
220,
1441,
1391,
76,
5912,
13,
1136,
7,
74,
11,
479,
2599,
410,
329,
479,
11,
410,
287,
22155,
13,
23814,
3419,
92,
628,
628,
198,
198,
4299,
1673,
265,
62,
11600,
82,
7,
11600,
82,
11,
21231,
25,
4479,
58,
2536,
11,
493,
60,
796,
13538,
2599,
198,
220,
220,
220,
366,
3103,
9246,
268,
378,
1351,
286,
48589,
3166,
1,
628,
220,
220,
220,
825,
13852,
62,
2539,
62,
9630,
7,
2539,
11,
4683,
62,
11600,
11,
923,
28,
16,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
366,
36698,
844,
351,
4808,
16,
1566,
6376,
407,
287,
4683,
22155,
1,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1994,
407,
287,
4683,
62,
11600,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1994,
628,
220,
220,
220,
220,
220,
220,
220,
649,
62,
2539,
796,
277,
1,
90,
2539,
92,
23330,
9688,
36786,
198,
220,
220,
220,
220,
220,
220,
220,
611,
649,
62,
2539,
287,
4683,
62,
11600,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
13852,
62,
2539,
62,
9630,
7,
2539,
11,
4683,
62,
11600,
11,
923,
1343,
352,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
649,
62,
2539,
628,
220,
220,
220,
1441,
21231,
62,
11600,
62,
13083,
7,
445,
7234,
7,
445,
7234,
62,
11545,
62,
11600,
82,
11,
8633,
82,
11,
23884,
828,
21231,
8,
628,
198,
4299,
4277,
22930,
7,
22184,
2599,
198,
220,
220,
220,
37227,
22203,
11705,
1352,
284,
423,
257,
4277,
3119,
357,
4360,
407,
6338,
900,
198,
220,
220,
220,
340,
8,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
708,
81,
62,
3672,
796,
45434,
1,
1343,
24714,
13,
834,
3672,
834,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
2488,
29988,
862,
7,
22184,
8,
628,
220,
220,
220,
1441,
4808,
12286,
22930,
628,
198,
198,
4299,
751,
62,
40290,
274,
7,
27160,
25,
7343,
58,
2536,
4357,
21231,
274,
25,
7343,
58,
2536,
60,
2599,
198,
220,
220,
220,
37227,
4550,
21231,
284,
1123,
1988,
611,
407,
1541,
1944,
37811,
198,
220,
220,
220,
611,
18896,
7,
40290,
274,
8,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
3815,
628,
220,
220,
220,
1441,
300,
8899,
9246,
7,
198,
220,
220,
220,
220,
220,
220,
220,
37456,
21231,
25,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
8367,
611,
1988,
13,
9688,
2032,
342,
7,
40290,
8,
2073,
277,
1,
90,
40290,
18477,
8367,
92,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1988,
287,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
21231,
274,
11,
198,
220,
220,
220,
1267,
628,
198,
4871,
21059,
4510,
713,
7,
11600,
2599,
198,
220,
220,
220,
37227,
35,
14188,
326,
318,
12234,
540,
357,
1904,
913,
329,
4441,
900,
286,
3748,
48589,
3166,
8,
37811,
628,
198,
4299,
651,
62,
27160,
62,
265,
62,
8189,
540,
62,
6978,
82,
7,
8367,
25,
8633,
11,
8251,
25,
7343,
58,
2536,
60,
2599,
198,
220,
220,
220,
37227,
11627,
974,
3815,
422,
376,
39,
4663,
4406,
1912,
319,
8251,
357,
1904,
913,
329,
37895,
12416,
8,
37811,
628,
220,
220,
220,
1441,
300,
8899,
9246,
7,
50033,
1994,
25,
651,
62,
8367,
62,
265,
62,
8189,
540,
62,
6978,
7,
8367,
11,
1994,
828,
8251,
8,
628,
198,
4299,
7925,
62,
40148,
7,
43420,
25,
1351,
11,
3359,
25,
965,
11,
2438,
62,
25747,
25,
7343,
58,
2536,
60,
2599,
198,
220,
220,
220,
37227,
11627,
974,
2438,
3815,
422,
257,
1351,
286,
48589,
3166,
1912,
319,
262,
2438,
8251,
13,
198,
220,
220,
220,
26848,
257,
3359,
1988,
284,
8106,
2482,
38726,
2280,
357,
38070,
286,
198,
220,
220,
220,
25431,
12979,
8,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
12416,
796,
900,
3419,
628,
220,
220,
220,
329,
5752,
287,
2482,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5752,
62,
40148,
796,
651,
62,
27160,
62,
265,
62,
8189,
540,
62,
6978,
82,
7,
808,
11,
2438,
62,
25747,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2438,
287,
5752,
62,
40148,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
39098,
7,
8189,
11,
8633,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
23676,
582,
338,
835,
284,
8106,
691,
12336,
12416,
357,
20777,
48567,
12947,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5860,
4406,
543,
481,
2291,
584,
12416,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
290,
3359,
13,
21037,
3419,
287,
2438,
13,
1136,
7203,
13812,
1600,
366,
11074,
21037,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15179,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12416,
13,
2860,
7,
8189,
8,
628,
220,
220,
220,
1441,
279,
67,
13,
6601,
19778,
7,
4868,
7,
40148,
4008,
628,
198,
4299,
6626,
62,
1525,
7,
22046,
25,
8633,
11,
1364,
62,
13083,
25,
7343,
58,
2536,
60,
2599,
198,
220,
220,
220,
37227,
41205,
656,
734,
48589,
3166,
357,
9464,
318,
20542,
46331,
290,
826,
318,
5637,
8,
37811,
198,
220,
220,
220,
1255,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
479,
25,
8633,
7,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
479,
11,
410,
287,
1448,
1525,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37456,
5166,
25,
5166,
58,
15,
60,
287,
1364,
62,
13083,
11,
26498,
13,
23814,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
6739,
23814,
3419,
198,
220,
220,
220,
1782,
628,
220,
220,
220,
1441,
357,
20274,
13,
1136,
7,
17821,
11,
23884,
828,
1255,
13,
1136,
7,
25101,
11,
23884,
4008,
198
] | 2.52292 | 1,178 |
#!/usr/bin/env python3
import asyncio
import discord
import logging
import json
import random
logger = logging.getLogger('spookbot')
logger.setLevel(logging.INFO)
handler = logging.FileHandler(filename='spookbot.log', mode='w', encoding='utf-8')
handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s'))
logger.addHandler(handler)
with open("auth.json") as auth:
auth = json.load(auth)
client = discord.Client()
commands = {}
@client.event
# {{{ Commands
@command
@command
@command
@command
# }}}
print("https://discordapp.com/oauth2/authorize?&client_id=" + auth['clientId'] + "&scope=bot&permissions=0")
client.run(auth['token'])
|
[
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
198,
11748,
30351,
952,
198,
11748,
36446,
198,
11748,
18931,
198,
11748,
33918,
198,
11748,
4738,
198,
198,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
10786,
2777,
566,
13645,
11537,
198,
6404,
1362,
13,
2617,
4971,
7,
6404,
2667,
13,
10778,
8,
198,
30281,
796,
18931,
13,
8979,
25060,
7,
34345,
11639,
2777,
566,
13645,
13,
6404,
3256,
4235,
11639,
86,
3256,
21004,
11639,
40477,
12,
23,
11537,
198,
30281,
13,
2617,
8479,
1436,
7,
6404,
2667,
13,
8479,
1436,
10786,
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,
6,
4008,
198,
6404,
1362,
13,
2860,
25060,
7,
30281,
8,
198,
198,
4480,
1280,
7203,
18439,
13,
17752,
4943,
355,
6284,
25,
198,
220,
220,
220,
6284,
796,
33918,
13,
2220,
7,
18439,
8,
198,
198,
16366,
796,
36446,
13,
11792,
3419,
198,
198,
9503,
1746,
796,
23884,
198,
198,
31,
16366,
13,
15596,
198,
198,
2,
22935,
90,
49505,
198,
198,
31,
21812,
198,
198,
31,
21812,
198,
198,
31,
21812,
198,
198,
31,
21812,
628,
198,
2,
1782,
11709,
198,
198,
4798,
7203,
5450,
1378,
15410,
585,
1324,
13,
785,
14,
12162,
1071,
17,
14,
9800,
1096,
30,
5,
16366,
62,
312,
2625,
1343,
6284,
17816,
16366,
7390,
20520,
1343,
366,
5,
29982,
28,
13645,
5,
525,
8481,
28,
15,
4943,
198,
16366,
13,
5143,
7,
18439,
17816,
30001,
6,
12962,
198
] | 2.699605 | 253 |
from threading import Timer
import mido
import time
from singleton import Singleton
from activelayer import ActiveLayer, ActiveLayerIdentifier
|
[
6738,
4704,
278,
1330,
5045,
263,
198,
11748,
3095,
78,
198,
11748,
640,
198,
198,
6738,
2060,
1122,
1330,
5573,
10565,
198,
6738,
4075,
29289,
1330,
14199,
49925,
11,
14199,
49925,
33234,
7483,
628,
198
] | 4.171429 | 35 |
# coding: utf-8
import time
import pickle
import socket
import random
import logging
import argparse
import configparser
import threading
from utils import contains_successor
from queue import Queue
##############################################NODE DISCOVERY##############################################
# Method:
# 1. First node starts sending NODE_DISCOVERY packages with the args containg a dictionary of KEY: ID ; VALUE: Type
# {type:NODE_DISCOVERY,args{ {ENTITY-IDdictionary}, int rounds }}
# 2. Package gets sent to the next node in ring
# 3. When it reaches a node, the node checks whether the dictionary is complete:
# NOT COMPLETE - Add our ENTITY-ID to the dictionary
# COMPLETE - #1. Increment rounds
# 2. Check if rounds is 1 or 2
# 2: [STOP PROCESS]
# 1: Register the dictionary as our own
# 4. Send package to next node
# Q - How to check if it's full?
# A - Check if the current node's ID is the same as the Token Generator's ID (since this is the one where the discovery
# starts)
# Q - How many go-rounds does this method take?
# A - 2. 1 to build the dictionary + 1 to register on each node
# Q - How to check if we're done?
# A - We use a regDone int that's used to check how many nodes have registered the dictionary
##############################################NODE DISCOVERY##############################################
|
[
2,
19617,
25,
3384,
69,
12,
23,
198,
198,
11748,
640,
198,
11748,
2298,
293,
198,
11748,
17802,
198,
11748,
4738,
198,
11748,
18931,
198,
11748,
1822,
29572,
198,
11748,
4566,
48610,
198,
11748,
4704,
278,
198,
6738,
3384,
4487,
1330,
4909,
62,
13138,
273,
198,
6738,
16834,
1330,
4670,
518,
628,
198,
220,
220,
220,
1303,
29113,
7804,
4242,
2,
45,
16820,
13954,
8220,
5959,
56,
29113,
7804,
4242,
2235,
198,
220,
220,
220,
1303,
11789,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
352,
13,
3274,
10139,
4940,
7216,
399,
16820,
62,
26288,
8220,
5959,
56,
10392,
351,
262,
26498,
542,
64,
278,
257,
22155,
286,
35374,
25,
4522,
2162,
26173,
8924,
25,
5994,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1391,
4906,
25,
45,
16820,
62,
26288,
8220,
5959,
56,
11,
22046,
90,
1391,
3525,
9050,
12,
2389,
67,
14188,
5512,
493,
9196,
34949,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
362,
13,
15717,
3011,
1908,
284,
262,
1306,
10139,
287,
5858,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
513,
13,
1649,
340,
12229,
257,
10139,
11,
262,
10139,
8794,
1771,
262,
22155,
318,
1844,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5626,
49269,
9328,
532,
3060,
674,
47353,
9050,
12,
2389,
284,
262,
22155,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
49269,
9328,
532,
1303,
16,
13,
10791,
434,
9196,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
362,
13,
6822,
611,
9196,
318,
352,
393,
362,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
362,
25,
685,
2257,
3185,
41755,
7597,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
352,
25,
17296,
262,
22155,
355,
674,
898,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
604,
13,
16290,
5301,
284,
1306,
10139,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1195,
532,
1374,
284,
2198,
611,
340,
338,
1336,
30,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
317,
532,
6822,
611,
262,
1459,
10139,
338,
4522,
318,
262,
976,
355,
262,
29130,
35986,
338,
4522,
357,
20777,
428,
318,
262,
530,
810,
262,
9412,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4940,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1195,
532,
1374,
867,
467,
12,
744,
82,
857,
428,
2446,
1011,
30,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
317,
532,
362,
13,
352,
284,
1382,
262,
22155,
1343,
352,
284,
7881,
319,
1123,
10139,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1195,
532,
1374,
284,
2198,
611,
356,
821,
1760,
30,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
317,
532,
775,
779,
257,
842,
45677,
493,
326,
338,
973,
284,
2198,
703,
867,
13760,
423,
6823,
262,
22155,
628,
220,
220,
220,
1303,
29113,
7804,
4242,
2,
45,
16820,
13954,
8220,
5959,
56,
29113,
7804,
4242,
2235,
198
] | 3.092593 | 486 |
import os
import numpy as np
from protoclass.preprocessing import StandardTimeNormalization
path_root = '/data/prostate/pre-processing/lemaitre-2016-nov/norm-objects'
shift_patient = []
# We have to open each npy file
for root, dirs, files in os.walk(path_root):
# Create the string for the file to read
for f in files:
filename = os.path.join(root, f)
# Load the normalization object
dce_norm = StandardTimeNormalization.load_from_pickles(filename)
shift_patient.append(dce_norm.fit_params_['shift-int'])
# Stack the different array vetically
shift_patient = np.vstack(shift_patient)
shift_patient = np.max(shift_patient, axis=0)
|
[
11748,
28686,
198,
198,
11748,
299,
32152,
355,
45941,
198,
198,
6738,
1237,
420,
31172,
13,
3866,
36948,
1330,
8997,
7575,
26447,
1634,
198,
198,
6978,
62,
15763,
796,
31051,
7890,
14,
1676,
5219,
14,
3866,
12,
36948,
14,
293,
2611,
270,
260,
12,
5304,
12,
37302,
14,
27237,
12,
48205,
6,
628,
198,
30846,
62,
26029,
796,
17635,
198,
198,
2,
775,
423,
284,
1280,
1123,
299,
9078,
2393,
198,
1640,
6808,
11,
288,
17062,
11,
3696,
287,
28686,
13,
11152,
7,
6978,
62,
15763,
2599,
628,
220,
220,
220,
1303,
13610,
262,
4731,
329,
262,
2393,
284,
1100,
198,
220,
220,
220,
329,
277,
287,
3696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
29472,
796,
28686,
13,
6978,
13,
22179,
7,
15763,
11,
277,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
8778,
262,
3487,
1634,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
288,
344,
62,
27237,
796,
8997,
7575,
26447,
1634,
13,
2220,
62,
6738,
62,
27729,
829,
7,
34345,
8,
628,
220,
220,
220,
220,
220,
220,
220,
6482,
62,
26029,
13,
33295,
7,
67,
344,
62,
27237,
13,
11147,
62,
37266,
62,
17816,
30846,
12,
600,
6,
12962,
198,
198,
2,
23881,
262,
1180,
7177,
20202,
1146,
198,
30846,
62,
26029,
796,
45941,
13,
85,
25558,
7,
30846,
62,
26029,
8,
198,
30846,
62,
26029,
796,
45941,
13,
9806,
7,
30846,
62,
26029,
11,
16488,
28,
15,
8,
198
] | 2.8375 | 240 |
# Generated by Django 2.0.3 on 2018-03-30 22:28
import ckeditor.fields
from django.db import migrations, models
|
[
2,
2980,
515,
416,
37770,
362,
13,
15,
13,
18,
319,
2864,
12,
3070,
12,
1270,
2534,
25,
2078,
198,
198,
11748,
269,
9091,
2072,
13,
25747,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
628
] | 2.923077 | 39 |
end
print max(-1,-2) # = -1
print max(1,2) # = 2
print max(3,4) # = 4
print max(1.0, 1.5) # = 1.500000
|
[
437,
198,
198,
4798,
3509,
32590,
16,
12095,
17,
8,
220,
220,
220,
220,
220,
1303,
796,
532,
16,
198,
4798,
3509,
7,
16,
11,
17,
8,
220,
220,
220,
220,
220,
220,
220,
1303,
796,
362,
198,
4798,
3509,
7,
18,
11,
19,
8,
220,
220,
220,
220,
220,
220,
220,
1303,
796,
604,
198,
4798,
3509,
7,
16,
13,
15,
11,
352,
13,
20,
8,
220,
220,
1303,
796,
352,
13,
4059,
830,
198
] | 1.644737 | 76 |
'''Cross validation codes.'''
"""
kwargs: keyword arguments to runSimulation
order of positional arguments: obs_data, model, parameters
"""
from collections import namedtuple
import lmfit # Fitting lib
import matplotlib.pyplot as plt
import math
import numpy as np
import pandas as pd
import random
import tellurium as te
TIME = "time"
ME_LEASTSQ = "leastsq"
ME_DIFFERENTIAL_EVOLUTION = "differential_evolution"
ME_BOTH = "both"
PER05 = 0.05
PER95 = 0.95
TIME_INTERVAL = 10
# data - named_array result
# road_runner - road_runner instance created
SimulationResult = namedtuple("SimulationResult",
"data road_runner")
ResidualCalculation = namedtuple("ResidualCalculation",
"residuals road_runner")
Statistic = namedtuple("Statistic", "mean std ci_low ci_high")
############## CONSTANTS ######################
# Default simulation model
MODEL = """
A -> B; k1*A
B -> C; k2*B
A = 5;
B = 0;
C = 0;
k1 = 0.1
k2 = 0.2
"""
CONSTANTS = ['k1', 'k2']
NOISE_STD = 0.5
NUM_POINTS = 10
KWARGS_NUM_POINTS = "num_points"
PARAMETERS = lmfit.Parameters()
PARAMETERS.add('k1', value=1, min=0, max=10)
PARAMETERS.add('k2', value=1, min=0, max=10)
ROAD_RUNNER = None
SIM_TIME = 30
# Default parameters values
DF_CONFIDENCE_INTERVAL = (5, 95)
DF_BOOTSTRAP_COUNT = 5
DF_NUM_FOLDS = 3
DF_METHOD = "least_squares"
############## FUNCTIONS ######################
def cleanColumns(df_data, is_force_time=True):
"""
Cleans the column names in the dataframe,
removing "[", "]". Makes time index.
:param pd.DataFrame df_data: Simulation data output.
:param bool is_force_time: force time to factors of 10
"""
df = df_data.copy()
columns = []
for col in df_data.columns:
new_col = str(col)
new_col = new_col.replace("[", "")
new_col = new_col.replace("]", "")
columns.append(new_col)
df.columns = columns
if TIME in df.columns:
df = df.set_index(TIME)
if df.index.name == TIME:
if is_force_time:
df.index = [float(v*TIME_INTERVAL) for v in range(len(df))]
df.index.name = TIME
return df
def matrixToDF(matrix, columns=None, index=None):
"""
Converts an array to a dataframe. If the index is
time, then rounds to a tenth.
:param np.arrayy matrix:
pd.DataFrame : already converted
:param list index: index for dataframe
:return pd.DataFrame: Columns are variables w/o [, ].
index is time.
"""
if isinstance(matrix, pd.DataFrame):
df = cleanColumns(matrix)
else:
df = pd.DataFrame(matrix)
if columns is None:
try:
columns = matrix.colnames
except:
pass
if columns is not None:
df.columns = columns
return cleanColumns(df)
def matrixToDFWithoutTime(matrix, columns=None):
"""
Converts an array to a dataframe, deleting time as a column.
:param np.arrayy matrix:
pd.DataFrame : already converted
:return pd.DataFrame:
"""
if isinstance(matrix, pd.DataFrame):
df = matrix.copy()
else:
df = matrixToDF(matrix, columns=columns)
if TIME != df.index.name:
df = df[df.columns.tolist()[1:]]
return df
def reshapeData(matrix, indices=None):
"""
Re-structures matrix as an array for just the rows
in indices.
:param array matrix: matrix of data
:param list-int indices: indexes to include in reshape
"""
if indices is None:
nrows = np.shape(matrix)[0]
indices = range(nrows)
num_columns = np.shape(matrix)[1]
trimmed_matrix = matrix[indices, :]
return np.reshape(trimmed_matrix, num_columns*len(indices))
def arrayDifference(matrix1, matrix2, indices=None):
"""
Calculates matrix1 - matrix2 as a nX1 array for the rows
specified in indices.
"""
array1 = reshapeData(matrix1, indices=indices)
array2 = reshapeData(matrix2, indices=indices)
return (array1 - array2)
def makeArrayFromMatrix(df_mat, indices):
"""
Returns an constructured from specified rows
organized in sequence by columns.
:param pd.DataFrame df_mat:
:param list-int indices:
:return np.array:
"""
df = df_mat.loc[df_mat.index[indices], :]
array = df.T.values
return np.reshape(array, len(indices)*len(df.columns))
def makeDFWithCommonColumns(df1, df2):
"""
Returns dataframes that have columns in common.
"""
columns = set(df1.columns).intersection(df2.columns)
df1_sub = df1.copy()
df2_sub = df2.copy()
df1_sub = df1_sub[columns]
df2_sub = df2_sub[columns]
return df1_sub, df2_sub
def calcRsq(observations, estimates, indices=None):
"""
Computes RSQ for simulation results.
:param matrix observations: non-time values
: pd.DataFrame : no time column
:param matrix estimates: non-time values
: pd.DataFrame : no time column
:param list-int indices:
:return float:
"""
df_obs = matrixToDF(observations)
df_est = matrixToDF(estimates)
if indices is None:
indices = range(len(df_obs))
#
df_obs_sub, df_est_sub = makeDFWithCommonColumns(df_obs, df_est)
arr_obs = makeArrayFromMatrix(df_obs_sub, indices)
arr_est = makeArrayFromMatrix(df_est_sub, indices)
try:
arr_rsq = arr_obs - arr_est
except:
import pdb; pdb.set_trace()
arr_rsq = arr_rsq*arr_rsq
rsq = 1 - sum(arr_rsq) / np.var(arr_obs)
return rsq
def makeParameters(constants=CONSTANTS, values=1, mins=0, maxs=10):
"""
Constructs parameters for the constants provided.
:param list-str constants: names of parameters
:param list-float values: initial value of parameter
if not list, the value for list
:param list-float mins: minimum values
if not list, the value for list
:param list-float maxs: maximum values
if not list, the value for list
"""
#
values = makeList(values, len(constants))
mins = makeList(mins, len(constants))
maxs = makeList(maxs, len(constants))
parameters = lmfit.Parameters()
for idx, constant in enumerate(constants):
parameters.add(constant,
value=values[idx], min=mins[idx], max=maxs[idx])
return parameters
def makeAverageParameters(list_parameters):
"""
Averages the values of parameters in a list.
:param list-lmfit.Parameters list_parameters:
:return lmfit.Parameters: sets min, max to extremes of list
"""
result_parameters = lmfit.Parameters()
names = list_parameters[0].valuesdict().keys()
for name in names:
values = []
mins = []
maxs = []
for parameters in list_parameters:
values.append(parameters.valuesdict()[name])
mins.append(parameters.get(name).min)
maxs.append(parameters.get(name).max)
value = np.mean(values)
min_val = min(mins)
max_val = min(maxs)
result_parameters.add(name, value=value,
min=min_val, max=max_val)
return result_parameters
def runSimulation(sim_time=SIM_TIME,
num_points=NUM_POINTS, road_runner=ROAD_RUNNER, parameters=None,
**kwargs):
"""
Runs the simulation model rr for the parameters.
:param int sim_time: time to run the simulation
:param int num_points: number of timepoints simulated
:param ExtendedRoadRunner road_runner:
:param lmfit.Parameters parameters:
:param dict kwargs: parameters used in makeSimulation
:return SimulationResult:
"""
if road_runner is None:
road_runner = makeSimulation(parameters=parameters, **kwargs)
else:
road_runner.reset()
setSimulationParameters(road_runner, parameters)
data = road_runner.simulate (0, sim_time, num_points)
simulation_result = SimulationResult(
data=data,
road_runner=road_runner,
)
return simulation_result
def setSimulationParameters(road_runner, parameters=None):
"""
Sets parameter values in a road runner instance.
:param ExtendedRoadRunner road_runner:
:param lmfit.Parameters parameters:
"""
if parameters is not None:
parameter_dict = parameters.valuesdict()
# Set the simulation constants for all parameters
for constant in parameter_dict.keys():
stmt = "road_runner.%s = float(parameter_dict['%s'])" % (
constant, constant)
try:
exec(stmt)
except:
import pdb; pdb.set_trace()
def makeSimulation(parameters=None, model=MODEL):
"""
Creates an road runner instance for the simulation.
:param lmfit.Parameters parameters:
:param str model:
:return ExtendedRoadRunner:
"""
road_runner = te.loada(model)
setSimulationParameters(road_runner, parameters)
return road_runner
def plotTimeSeries(data, is_scatter=False, title="",
columns=None, is_plot=True):
"""
Constructs a time series plot of simulation data.
:param array data: first column is time
:param bool is_scatter: do a scatter plot
:param str title: plot title
"""
if not isinstance(data, pd.DataFrame):
df = pd.DataFrame(data)
else:
df = data
columns = df.columns.tolist()
xv = df[columns[0]]
if is_scatter:
plt.plot (xv, df[columns[1:]], marker='*', linestyle='None')
else:
plt.plot (xv, df[columns[1:]])
plt.title(title)
plt.xlabel("Time")
plt.ylabel("Concentration")
if columns is None:
columns = np.repeat("", np.shape(data)[1])
plt.legend(columns)
if is_plot:
plt.show()
def foldGenerator(num_points, num_folds):
"""
Creates generator for test and training data indices.
:param int num_points: number of data points
:param int num_folds: number of folds
:return iterable: Each iteration produces a tuple
First element: training indices
Second element: test indices
"""
indices = range(num_points)
for remainder in range(num_folds):
test_indices = []
for idx in indices:
if idx % num_folds == remainder:
test_indices.append(idx)
train_indices = np.array(
list(set(indices).difference(test_indices)))
test_indices = np.array(test_indices)
yield train_indices, test_indices
def makeObservations(sim_time=SIM_TIME, num_points=NUM_POINTS,
noise_std=NOISE_STD, **kwargs):
"""
Creates synthetic observations.
:param int sim_time: time to run the simulation
:param int num_points: number of timepoints simulated
:param float noise_std: Standard deviation for random noise
:param dict kwargs: keyword parameters used by runSimulation
:return pd.DataFrame: simulation results with randomness
"""
# Create true values
simulation_result = runSimulation(sim_time=sim_time,
num_points=num_points,
**kwargs)
data = simulation_result.data
num_cols = len(data.colnames)
# Add randomness
for i in range (num_points):
for j in range(1, num_cols):
data[i, j] = max(data[i, j] \
+ np.random.normal(0, noise_std, 1), 0)
return matrixToDF(data)
def calcSimulationResiduals(obs_data, parameters,
indices=None, **kwargs):
"""
Runs a simulation with the specified parameters and calculates residuals
for the train_indices.
:param array obs_data: matrix of data, first col is time.
pd.DataFrame : index is time
:param lmfit.Parameters parameters:
:param list-int indices: indices for which calculation is done
if None, then all.
:param dict kwargs: optional parameters passed to simulation
:return ResidualCalculation:
"""
df_obs = matrixToDFWithoutTime(obs_data)
if indices is None:
indices = range(len(df_obs))
if not KWARGS_NUM_POINTS in kwargs.keys():
kwargs[KWARGS_NUM_POINTS] = len(df_obs)
simulation_result = runSimulation(parameters=parameters,
**kwargs)
df_sim = matrixToDFWithoutTime(simulation_result.data)
# Compute differences
df_obs, df_sim = makeDFWithCommonColumns(df_obs, df_sim)
arr_obs = makeArrayFromMatrix(df_obs, indices)
arr_sim = makeArrayFromMatrix(df_sim, indices)
residuals = arr_obs - arr_sim
residual_calculation = ResidualCalculation(residuals=residuals,
road_runner=simulation_result.road_runner)
return residual_calculation
# TODO: Fix handling of obs_data columns. May not be
# a named array, as in bootstrap.
def fit(obs_data, indices=None, parameters=PARAMETERS,
method=ME_LEASTSQ, **kwargs):
"""
Does a fit of the model to the observations.
:param ndarray obs_data: matrix of observed values with time
as the first column
pd.DataFrame : time is index
:param list-int indices: indices on which fit is performed
:param lmfit.Parameters parameters: parameters fit
:param str method: optimization method; both means
differential_evolution followed by leastsq
:param dict kwargs: optional parameters passed to runSimulation
:return lmfit.Parameters:
"""
global road_runner
road_runner = ROAD_RUNNER
#
#
if method == ME_BOTH:
parameters = estimateParameters(ME_DIFFERENTIAL_EVOLUTION,
parameters)
return estimateParameters(ME_LEASTSQ, parameters)
else:
return estimateParameters(method, parameters)
def crossValidate(obs_data, method=DF_METHOD,
sim_time=SIM_TIME,
num_points=None, parameters=PARAMETERS,
num_folds=3, **kwargs):
"""
Performs cross validation on an antimony model.
:param ndarray obs_data: data to fit;
columns are species;
rows are time instances
first column is time
pd.DataFrame : time is index
:param int sim_time: length of simulation run
:param int num_points: number of time points produced.
:param lmfit.Parameters: parameters to be estimated
:param dict kwargs: optional arguments used in simulation
:return list-lmfit.Parameters, list-float: parameters and RSQ from folds
"""
df_obs = matrixToDF(obs_data)
if num_points is None:
num_points = len(df_obs)
# Iterate for for folds
fold_generator = foldGenerator(num_points, num_folds)
result_parameters = []
result_rsqs = []
road_runner = ROAD_RUNNER
for train_indices, test_indices in fold_generator:
# This function is defined inside the loop because it references a loop variable
new_parameters = parameters.copy()
fitted_parameters = fit(df_obs, method=method,
indices=train_indices, parameters=new_parameters,
sim_time=sim_time, num_points=num_points,
**kwargs)
result_parameters.append(fitted_parameters)
# Run the simulation using
# the parameters estimated using the training data.
simulation_result = runSimulation(road_runner=road_runner,
sim_time=sim_time, num_points=num_points,
parameters=fitted_parameters, **kwargs)
road_runner = simulation_result.road_runner
df_est = matrixToDF(simulation_result.data)
# Calculate RSQ
rsq = calcRsq(df_obs, df_est, test_indices)
result_rsqs.append(rsq)
return result_parameters, result_rsqs
def makeResidualDF(obs_data, model, parameters,
road_runner=ROAD_RUNNER,
**kwargs):
"""
Calculate residuals for each chemical species.
:param named_array/pd.DataFrame obs_data: matrix of observations; first column is time; number of rows is num_points
:param lmfit.Parameters parameters:
:param dict kwargs: optional arguments to runSimulation
:return pd.DataFrame: matrix of residuals; columns are chemical species
"""
df_obs = matrixToDF(obs_data)
if df_obs.index.name != TIME:
import pdb; pdb.set_trace()
raise ValueError("Invalid observational data")
residual_calculation = calcSimulationResiduals(df_obs, parameters,
model=model, road_runner=road_runner, **kwargs)
road_runnder = residual_calculation.road_runner
residuals = residual_calculation.residuals
# Reshape the residuals by species
num_species = len(df_obs.columns)
nrows = int(len(residuals) / num_species)
result = np.reshape(residuals, (nrows, num_species))
df_res = pd.DataFrame(result)
df_res.columns = df_obs.columns
return df_res
def makeSyntheticObservations(df_res, **kwargs):
"""
Constructs synthetic observations for the model.
:param pd.DataFrame df_res: matrix of residuals; columns are species; number of rows is num_points
:param dict kwargs: optional arguments to runSimulation
:return pd.DataFrame: index is time
"""
simulation_result = runSimulation(**kwargs)
df_data = matrixToDF(simulation_result.data)
df_data, df_res = makeDFWithCommonColumns(df_data, df_res)
df_res.columns = df_data.columns
nrows = len(df_data)
ncols = len(df_data.columns)
for col in df_data.columns:
for idx in df_data.index:
random_index = df_res.index[np.random.randint(0, nrows)]
df_data.loc[idx, col] = df_data.loc[idx, col] \
+ df_res.loc[random_index, col]
df_data = df_data.applymap(lambda v: max(v, 0))
return df_data
def doBootstrapWithResiduals(df_res,
method=DF_METHOD, count=DF_BOOTSTRAP_COUNT, **kwargs):
"""
Performs bootstrapping by repeatedly generating synthetic observations.
:param pd.DataFrame residuals_matrix:
:param int count: number of iterations in bootstrap
:param dict kwargs: optional arguments to runSimulation
"""
list_parameters = []
for _ in range(count):
df_data = makeSyntheticObservations(df_res, **kwargs)
parameters = fit(df_data, method=method, **kwargs)
list_parameters.append(parameters)
return list_parameters
def doBootstrap(df_data, model, parameters,
method=DF_METHOD, count=DF_BOOTSTRAP_COUNT,
confidence_limits=DF_CONFIDENCE_INTERVAL, **kwargs):
"""
Performs bootstrapping by repeatedly generating synthetic observations,
calculating the residuals as well.
:param pd.DataFrame df_data: index is time
:param str model:
:param lmfit.Parameters parameters:
:param int count: number of iterations in bootstrap
:param dict kwargs: optional arguments to runSimulation
:return dict: confidence limits
"""
df_res = makeResidualDF(df_data, model,
parameters, **kwargs)
list_parameters = doBootstrapWithResiduals(df_res,
method=method,
count=count, model=model, parameters=parameters, **kwargs)
return makeParameterStatistics(list_parameters,
confidence_limits=confidence_limits)
def calcStatistic(values, confidence_limits=[PER05, PER95]):
"""
Calculates Statistic
:param list-float values:
:return Statistic:
"""
quantiles = np.quantile(values, confidence_limits)
return Statistic(
mean =np.mean(values),
std = np.std(values),
ci_low = quantiles[0],
ci_high = quantiles[1],
)
def makeParameterStatistics(list_parameters,
confidence_limits=DF_CONFIDENCE_INTERVAL):
"""
Computes the mean and standard deviation of the parameters in a list of parameters.
:param list-lmfit.Parameters
:param (float, float) confidence_limits: if none, report mean and variance
:return dict: key is the parameter name; value is ParameterStatistic
"""
statistic_dict = {}
parameter_names = list(list_parameters[0].valuesdict().keys())
for name in parameter_names:
statistic_dict[name] = []
for parameters in list_parameters:
statistic_dict[name].append(parameters.valuesdict()[name])
# Calculate the statistics
for name in statistic_dict.keys():
statistic_dict[name] = calcStatistic(statistic_dict[name])
return statistic_dict
|
[
7061,
6,
21544,
21201,
12416,
2637,
7061,
198,
198,
37811,
198,
46265,
22046,
25,
21179,
7159,
284,
1057,
8890,
1741,
198,
2875,
286,
45203,
7159,
25,
10201,
62,
7890,
11,
2746,
11,
10007,
198,
37811,
198,
198,
6738,
17268,
1330,
3706,
83,
29291,
198,
11748,
300,
76,
11147,
220,
220,
1303,
376,
2535,
9195,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
10688,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
4738,
220,
198,
11748,
1560,
333,
1505,
355,
573,
198,
198,
34694,
796,
366,
2435,
1,
198,
11682,
62,
2538,
1921,
4694,
48,
796,
366,
293,
5773,
80,
1,
198,
11682,
62,
35,
5064,
24302,
3525,
12576,
62,
20114,
3535,
35354,
796,
366,
39799,
498,
62,
1990,
2122,
1,
198,
11682,
62,
33,
26946,
796,
366,
16885,
1,
198,
18973,
2713,
796,
657,
13,
2713,
198,
18973,
3865,
796,
657,
13,
3865,
198,
34694,
62,
41358,
23428,
796,
838,
198,
198,
2,
1366,
532,
3706,
62,
18747,
1255,
198,
2,
2975,
62,
16737,
532,
2975,
62,
16737,
4554,
2727,
198,
8890,
1741,
23004,
796,
3706,
83,
29291,
7203,
8890,
1741,
23004,
1600,
198,
220,
220,
220,
366,
7890,
2975,
62,
16737,
4943,
198,
4965,
312,
723,
9771,
14902,
796,
3706,
83,
29291,
7203,
4965,
312,
723,
9771,
14902,
1600,
198,
220,
220,
220,
366,
411,
312,
723,
82,
2975,
62,
16737,
4943,
198,
17126,
2569,
796,
3706,
83,
29291,
7203,
17126,
2569,
1600,
366,
32604,
14367,
269,
72,
62,
9319,
269,
72,
62,
8929,
4943,
198,
198,
7804,
4242,
2235,
7102,
2257,
1565,
4694,
1303,
14468,
4242,
2,
198,
2,
15161,
18640,
2746,
198,
33365,
3698,
796,
37227,
198,
220,
220,
220,
220,
317,
4613,
347,
26,
479,
16,
9,
32,
198,
220,
220,
220,
220,
347,
4613,
327,
26,
479,
17,
9,
33,
198,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
317,
796,
642,
26,
198,
220,
220,
220,
220,
347,
796,
657,
26,
198,
220,
220,
220,
220,
327,
796,
657,
26,
198,
220,
220,
220,
220,
479,
16,
796,
657,
13,
16,
198,
220,
220,
220,
220,
479,
17,
796,
657,
13,
17,
198,
37811,
198,
10943,
2257,
1565,
4694,
796,
37250,
74,
16,
3256,
705,
74,
17,
20520,
198,
15285,
24352,
62,
32147,
796,
657,
13,
20,
198,
41359,
62,
16402,
1268,
4694,
796,
838,
198,
42,
16279,
14313,
62,
41359,
62,
16402,
1268,
4694,
796,
366,
22510,
62,
13033,
1,
198,
27082,
2390,
2767,
4877,
796,
300,
76,
11147,
13,
48944,
3419,
198,
27082,
2390,
2767,
4877,
13,
2860,
10786,
74,
16,
3256,
1988,
28,
16,
11,
949,
28,
15,
11,
3509,
28,
940,
8,
198,
27082,
2390,
2767,
4877,
13,
2860,
10786,
74,
17,
3256,
1988,
28,
16,
11,
949,
28,
15,
11,
3509,
28,
940,
8,
198,
13252,
2885,
62,
49,
4944,
21479,
796,
6045,
198,
48913,
62,
34694,
796,
1542,
198,
198,
2,
15161,
10007,
3815,
198,
8068,
62,
10943,
37,
2389,
18310,
62,
41358,
23428,
796,
357,
20,
11,
6957,
8,
198,
8068,
62,
8202,
2394,
18601,
2969,
62,
34,
28270,
796,
642,
198,
8068,
62,
41359,
62,
37,
3535,
5258,
796,
513,
198,
8068,
62,
49273,
796,
366,
293,
459,
62,
16485,
3565,
1,
628,
198,
7804,
4242,
2235,
29397,
4177,
11053,
1303,
14468,
4242,
2,
198,
4299,
3424,
39470,
82,
7,
7568,
62,
7890,
11,
318,
62,
3174,
62,
2435,
28,
17821,
2599,
198,
220,
37227,
198,
220,
3779,
504,
262,
5721,
3891,
287,
262,
1366,
14535,
11,
198,
220,
10829,
12878,
1600,
366,
60,
1911,
27433,
640,
6376,
13,
198,
220,
1058,
17143,
279,
67,
13,
6601,
19778,
47764,
62,
7890,
25,
41798,
1366,
5072,
13,
198,
220,
1058,
17143,
20512,
318,
62,
3174,
62,
2435,
25,
2700,
640,
284,
5087,
286,
838,
198,
220,
37227,
198,
220,
47764,
796,
47764,
62,
7890,
13,
30073,
3419,
198,
220,
15180,
796,
17635,
198,
220,
329,
951,
287,
47764,
62,
7890,
13,
28665,
82,
25,
198,
220,
220,
220,
649,
62,
4033,
796,
965,
7,
4033,
8,
198,
220,
220,
220,
649,
62,
4033,
796,
649,
62,
4033,
13,
33491,
7203,
58,
1600,
366,
4943,
198,
220,
220,
220,
649,
62,
4033,
796,
649,
62,
4033,
13,
33491,
7203,
60,
1600,
366,
4943,
198,
220,
220,
220,
15180,
13,
33295,
7,
3605,
62,
4033,
8,
198,
220,
47764,
13,
28665,
82,
796,
15180,
198,
220,
611,
20460,
287,
47764,
13,
28665,
82,
25,
198,
220,
220,
220,
47764,
796,
47764,
13,
2617,
62,
9630,
7,
34694,
8,
198,
220,
611,
47764,
13,
9630,
13,
3672,
6624,
20460,
25,
198,
220,
220,
220,
611,
318,
62,
3174,
62,
2435,
25,
198,
220,
220,
220,
220,
220,
47764,
13,
9630,
796,
685,
22468,
7,
85,
9,
34694,
62,
41358,
23428,
8,
329,
410,
287,
2837,
7,
11925,
7,
7568,
4008,
60,
198,
220,
220,
220,
220,
220,
47764,
13,
9630,
13,
3672,
796,
20460,
198,
220,
1441,
47764,
198,
198,
4299,
17593,
2514,
8068,
7,
6759,
8609,
11,
15180,
28,
14202,
11,
6376,
28,
14202,
2599,
198,
220,
37227,
198,
220,
1482,
24040,
281,
7177,
284,
257,
1366,
14535,
13,
1002,
262,
6376,
318,
198,
220,
640,
11,
788,
9196,
284,
257,
24395,
13,
198,
220,
1058,
17143,
45941,
13,
18747,
88,
17593,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
279,
67,
13,
6601,
19778,
220,
220,
220,
1058,
1541,
11513,
198,
220,
1058,
17143,
1351,
6376,
25,
6376,
329,
1366,
14535,
198,
220,
1058,
7783,
279,
67,
13,
6601,
19778,
25,
29201,
82,
389,
9633,
266,
14,
78,
685,
11,
20740,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
318,
640,
13,
198,
220,
37227,
198,
220,
611,
318,
39098,
7,
6759,
8609,
11,
279,
67,
13,
6601,
19778,
2599,
198,
220,
220,
220,
47764,
796,
3424,
39470,
82,
7,
6759,
8609,
8,
198,
220,
2073,
25,
198,
220,
220,
220,
47764,
796,
279,
67,
13,
6601,
19778,
7,
6759,
8609,
8,
198,
220,
220,
220,
611,
15180,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
15180,
796,
17593,
13,
4033,
14933,
198,
220,
220,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
611,
15180,
318,
407,
6045,
25,
198,
220,
220,
220,
47764,
13,
28665,
82,
796,
15180,
198,
220,
1441,
3424,
39470,
82,
7,
7568,
8,
198,
198,
4299,
17593,
2514,
8068,
16249,
7575,
7,
6759,
8609,
11,
15180,
28,
14202,
2599,
198,
220,
37227,
198,
220,
1482,
24040,
281,
7177,
284,
257,
1366,
14535,
11,
34817,
640,
355,
257,
5721,
13,
198,
220,
1058,
17143,
45941,
13,
18747,
88,
17593,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
279,
67,
13,
6601,
19778,
220,
220,
220,
1058,
1541,
11513,
198,
220,
1058,
7783,
279,
67,
13,
6601,
19778,
25,
198,
220,
37227,
198,
220,
611,
318,
39098,
7,
6759,
8609,
11,
279,
67,
13,
6601,
19778,
2599,
198,
220,
220,
220,
47764,
796,
17593,
13,
30073,
3419,
198,
220,
2073,
25,
198,
220,
220,
220,
47764,
796,
17593,
2514,
8068,
7,
6759,
8609,
11,
15180,
28,
28665,
82,
8,
198,
220,
611,
20460,
14512,
47764,
13,
9630,
13,
3672,
25,
198,
220,
220,
220,
47764,
796,
47764,
58,
7568,
13,
28665,
82,
13,
83,
349,
396,
3419,
58,
16,
25,
11907,
198,
220,
1441,
47764,
198,
198,
4299,
27179,
1758,
6601,
7,
6759,
8609,
11,
36525,
28,
14202,
2599,
198,
220,
37227,
198,
220,
797,
12,
7249,
942,
17593,
355,
281,
7177,
329,
655,
262,
15274,
198,
220,
287,
36525,
13,
198,
220,
1058,
17143,
7177,
17593,
25,
17593,
286,
1366,
198,
220,
1058,
17143,
1351,
12,
600,
36525,
25,
39199,
284,
2291,
287,
27179,
1758,
198,
220,
37227,
198,
220,
611,
36525,
318,
6045,
25,
198,
220,
220,
220,
299,
8516,
796,
45941,
13,
43358,
7,
6759,
8609,
38381,
15,
60,
198,
220,
220,
220,
36525,
796,
2837,
7,
77,
8516,
8,
198,
220,
997,
62,
28665,
82,
796,
45941,
13,
43358,
7,
6759,
8609,
38381,
16,
60,
198,
220,
40325,
62,
6759,
8609,
796,
17593,
58,
521,
1063,
11,
1058,
60,
198,
220,
1441,
45941,
13,
3447,
1758,
7,
2213,
320,
1150,
62,
6759,
8609,
11,
997,
62,
28665,
82,
9,
11925,
7,
521,
1063,
4008,
198,
198,
4299,
7177,
28813,
1945,
7,
6759,
8609,
16,
11,
17593,
17,
11,
36525,
28,
14202,
2599,
198,
220,
37227,
198,
220,
27131,
689,
17593,
16,
532,
17593,
17,
355,
257,
299,
55,
16,
7177,
329,
262,
15274,
198,
220,
7368,
287,
36525,
13,
198,
220,
37227,
198,
220,
7177,
16,
796,
27179,
1758,
6601,
7,
6759,
8609,
16,
11,
36525,
28,
521,
1063,
8,
198,
220,
7177,
17,
796,
27179,
1758,
6601,
7,
6759,
8609,
17,
11,
36525,
28,
521,
1063,
8,
198,
220,
1441,
357,
18747,
16,
532,
7177,
17,
8,
198,
198,
4299,
787,
19182,
4863,
46912,
7,
7568,
62,
6759,
11,
36525,
2599,
198,
220,
37227,
198,
220,
16409,
281,
5678,
1522,
422,
7368,
15274,
198,
220,
8389,
287,
8379,
416,
15180,
13,
198,
220,
1058,
17143,
279,
67,
13,
6601,
19778,
47764,
62,
6759,
25,
198,
220,
1058,
17143,
1351,
12,
600,
36525,
25,
198,
220,
1058,
7783,
45941,
13,
18747,
25,
198,
220,
37227,
198,
220,
47764,
796,
47764,
62,
6759,
13,
17946,
58,
7568,
62,
6759,
13,
9630,
58,
521,
1063,
4357,
1058,
60,
198,
220,
7177,
796,
47764,
13,
51,
13,
27160,
198,
220,
1441,
45941,
13,
3447,
1758,
7,
18747,
11,
18896,
7,
521,
1063,
27493,
11925,
7,
7568,
13,
28665,
82,
4008,
198,
198,
4299,
787,
8068,
3152,
17227,
39470,
82,
7,
7568,
16,
11,
47764,
17,
2599,
198,
220,
37227,
198,
220,
16409,
1366,
37805,
326,
423,
15180,
287,
2219,
13,
198,
220,
37227,
198,
220,
15180,
796,
900,
7,
7568,
16,
13,
28665,
82,
737,
3849,
5458,
7,
7568,
17,
13,
28665,
82,
8,
198,
220,
47764,
16,
62,
7266,
796,
47764,
16,
13,
30073,
3419,
198,
220,
47764,
17,
62,
7266,
796,
47764,
17,
13,
30073,
3419,
198,
220,
47764,
16,
62,
7266,
796,
47764,
16,
62,
7266,
58,
28665,
82,
60,
198,
220,
47764,
17,
62,
7266,
796,
47764,
17,
62,
7266,
58,
28665,
82,
60,
198,
220,
1441,
47764,
16,
62,
7266,
11,
47764,
17,
62,
7266,
198,
198,
4299,
42302,
49,
31166,
7,
672,
3168,
602,
11,
7746,
11,
36525,
28,
14202,
2599,
198,
220,
37227,
198,
220,
3082,
1769,
19340,
48,
329,
18640,
2482,
13,
198,
220,
1058,
17143,
17593,
13050,
25,
1729,
12,
2435,
3815,
198,
220,
1058,
220,
220,
220,
220,
220,
279,
67,
13,
6601,
19778,
220,
220,
220,
220,
220,
220,
1058,
645,
640,
5721,
198,
220,
1058,
17143,
17593,
7746,
25,
1729,
12,
2435,
3815,
198,
220,
1058,
220,
220,
220,
220,
220,
279,
67,
13,
6601,
19778,
220,
220,
220,
220,
220,
220,
1058,
645,
640,
5721,
198,
220,
1058,
17143,
1351,
12,
600,
36525,
25,
198,
220,
1058,
7783,
12178,
25,
198,
220,
37227,
198,
220,
47764,
62,
8158,
796,
17593,
2514,
8068,
7,
672,
3168,
602,
8,
198,
220,
47764,
62,
395,
796,
17593,
2514,
8068,
7,
395,
26748,
8,
198,
220,
611,
36525,
318,
6045,
25,
198,
220,
220,
220,
36525,
796,
2837,
7,
11925,
7,
7568,
62,
8158,
4008,
198,
220,
1303,
198,
220,
47764,
62,
8158,
62,
7266,
11,
47764,
62,
395,
62,
7266,
796,
787,
8068,
3152,
17227,
39470,
82,
7,
7568,
62,
8158,
11,
47764,
62,
395,
8,
198,
220,
5240,
62,
8158,
796,
787,
19182,
4863,
46912,
7,
7568,
62,
8158,
62,
7266,
11,
36525,
8,
198,
220,
5240,
62,
395,
796,
787,
19182,
4863,
46912,
7,
7568,
62,
395,
62,
7266,
11,
36525,
8,
198,
220,
1949,
25,
198,
220,
220,
220,
5240,
62,
3808,
80,
796,
5240,
62,
8158,
532,
5240,
62,
395,
198,
220,
2845,
25,
198,
220,
220,
220,
1330,
279,
9945,
26,
279,
9945,
13,
2617,
62,
40546,
3419,
198,
220,
5240,
62,
3808,
80,
796,
5240,
62,
3808,
80,
9,
3258,
62,
3808,
80,
198,
220,
374,
31166,
796,
352,
532,
2160,
7,
3258,
62,
3808,
80,
8,
1220,
45941,
13,
7785,
7,
3258,
62,
8158,
8,
198,
220,
1441,
374,
31166,
198,
198,
4299,
787,
48944,
7,
9979,
1187,
28,
10943,
2257,
1565,
4694,
11,
3815,
28,
16,
11,
23550,
28,
15,
11,
3509,
82,
28,
940,
2599,
198,
220,
37227,
198,
220,
28407,
82,
10007,
329,
262,
38491,
2810,
13,
198,
220,
1058,
17143,
1351,
12,
2536,
38491,
25,
3891,
286,
10007,
198,
220,
1058,
17143,
1351,
12,
22468,
3815,
25,
4238,
1988,
286,
11507,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
1351,
11,
262,
1988,
329,
1351,
198,
220,
1058,
17143,
1351,
12,
22468,
23550,
25,
5288,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
1351,
11,
262,
1988,
329,
1351,
198,
220,
1058,
17143,
1351,
12,
22468,
3509,
82,
25,
5415,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
1351,
11,
262,
1988,
329,
1351,
198,
220,
37227,
198,
220,
1303,
220,
198,
220,
3815,
796,
787,
8053,
7,
27160,
11,
18896,
7,
9979,
1187,
4008,
198,
220,
23550,
796,
787,
8053,
7,
42951,
11,
18896,
7,
9979,
1187,
4008,
198,
220,
3509,
82,
796,
787,
8053,
7,
9806,
82,
11,
18896,
7,
9979,
1187,
4008,
198,
220,
10007,
796,
300,
76,
11147,
13,
48944,
3419,
198,
220,
329,
4686,
87,
11,
6937,
287,
27056,
378,
7,
9979,
1187,
2599,
198,
220,
220,
220,
10007,
13,
2860,
7,
9979,
415,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
28,
27160,
58,
312,
87,
4357,
949,
28,
42951,
58,
312,
87,
4357,
3509,
28,
9806,
82,
58,
312,
87,
12962,
198,
220,
1441,
10007,
198,
198,
4299,
787,
26287,
48944,
7,
4868,
62,
17143,
7307,
2599,
198,
220,
37227,
198,
220,
317,
23118,
262,
3815,
286,
10007,
287,
257,
1351,
13,
198,
220,
1058,
17143,
1351,
12,
75,
76,
11147,
13,
48944,
1351,
62,
17143,
7307,
25,
198,
220,
1058,
7783,
300,
76,
11147,
13,
48944,
25,
5621,
949,
11,
3509,
284,
31082,
286,
1351,
198,
220,
37227,
198,
220,
1255,
62,
17143,
7307,
796,
300,
76,
11147,
13,
48944,
3419,
198,
220,
3891,
796,
1351,
62,
17143,
7307,
58,
15,
4083,
27160,
11600,
22446,
13083,
3419,
198,
220,
329,
1438,
287,
3891,
25,
198,
220,
220,
220,
3815,
796,
17635,
198,
220,
220,
220,
23550,
796,
17635,
198,
220,
220,
220,
3509,
82,
796,
17635,
198,
220,
220,
220,
329,
10007,
287,
1351,
62,
17143,
7307,
25,
198,
220,
220,
220,
220,
220,
3815,
13,
33295,
7,
17143,
7307,
13,
27160,
11600,
3419,
58,
3672,
12962,
198,
220,
220,
220,
220,
220,
23550,
13,
33295,
7,
17143,
7307,
13,
1136,
7,
3672,
737,
1084,
8,
198,
220,
220,
220,
220,
220,
3509,
82,
13,
33295,
7,
17143,
7307,
13,
1136,
7,
3672,
737,
9806,
8,
198,
220,
220,
220,
1988,
796,
45941,
13,
32604,
7,
27160,
8,
198,
220,
220,
220,
949,
62,
2100,
796,
949,
7,
42951,
8,
198,
220,
220,
220,
3509,
62,
2100,
796,
949,
7,
9806,
82,
8,
198,
220,
220,
220,
1255,
62,
17143,
7307,
13,
2860,
7,
3672,
11,
1988,
28,
8367,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
949,
28,
1084,
62,
2100,
11,
3509,
28,
9806,
62,
2100,
8,
198,
220,
1441,
1255,
62,
17143,
7307,
198,
198,
4299,
1057,
8890,
1741,
7,
14323,
62,
2435,
28,
48913,
62,
34694,
11,
220,
198,
220,
220,
220,
997,
62,
13033,
28,
41359,
62,
16402,
1268,
4694,
11,
2975,
62,
16737,
28,
13252,
2885,
62,
49,
4944,
21479,
11,
10007,
28,
14202,
11,
198,
220,
220,
220,
12429,
46265,
22046,
2599,
198,
220,
37227,
198,
220,
44743,
262,
18640,
2746,
374,
81,
329,
262,
10007,
13,
198,
220,
1058,
17143,
493,
985,
62,
2435,
25,
640,
284,
1057,
262,
18640,
198,
220,
1058,
17143,
493,
997,
62,
13033,
25,
1271,
286,
640,
13033,
28590,
198,
220,
1058,
17143,
24204,
29197,
49493,
2975,
62,
16737,
25,
198,
220,
1058,
17143,
300,
76,
11147,
13,
48944,
10007,
25,
198,
220,
1058,
17143,
8633,
479,
86,
22046,
25,
10007,
973,
287,
787,
8890,
1741,
198,
220,
1058,
7783,
41798,
23004,
25,
198,
220,
37227,
198,
220,
611,
2975,
62,
16737,
318,
6045,
25,
198,
220,
220,
220,
2975,
62,
16737,
796,
787,
8890,
1741,
7,
17143,
7307,
28,
17143,
7307,
11,
12429,
46265,
22046,
8,
198,
220,
2073,
25,
198,
220,
220,
220,
2975,
62,
16737,
13,
42503,
3419,
198,
220,
220,
220,
900,
8890,
1741,
48944,
7,
6344,
62,
16737,
11,
10007,
8,
198,
220,
1366,
796,
2975,
62,
16737,
13,
14323,
5039,
357,
15,
11,
985,
62,
2435,
11,
997,
62,
13033,
8,
198,
220,
18640,
62,
20274,
796,
41798,
23004,
7,
198,
220,
220,
220,
220,
220,
1366,
28,
7890,
11,
198,
220,
220,
220,
220,
220,
2975,
62,
16737,
28,
6344,
62,
16737,
11,
198,
220,
220,
220,
220,
220,
1267,
198,
220,
1441,
18640,
62,
20274,
198,
198,
4299,
900,
8890,
1741,
48944,
7,
6344,
62,
16737,
11,
10007,
28,
14202,
2599,
198,
220,
37227,
198,
220,
21394,
11507,
3815,
287,
257,
2975,
17490,
4554,
13,
198,
220,
1058,
17143,
24204,
29197,
49493,
2975,
62,
16737,
25,
198,
220,
1058,
17143,
300,
76,
11147,
13,
48944,
10007,
25,
198,
220,
37227,
198,
220,
611,
10007,
318,
407,
6045,
25,
198,
220,
220,
220,
11507,
62,
11600,
796,
10007,
13,
27160,
11600,
3419,
198,
220,
220,
220,
1303,
5345,
262,
18640,
38491,
329,
477,
10007,
198,
220,
220,
220,
329,
6937,
287,
11507,
62,
11600,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
336,
16762,
796,
366,
6344,
62,
16737,
13,
4,
82,
796,
12178,
7,
17143,
2357,
62,
11600,
17816,
4,
82,
6,
12962,
1,
4064,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6937,
11,
6937,
8,
198,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2452,
7,
301,
16762,
8,
198,
220,
220,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1330,
279,
9945,
26,
279,
9945,
13,
2617,
62,
40546,
3419,
198,
198,
4299,
787,
8890,
1741,
7,
17143,
7307,
28,
14202,
11,
2746,
28,
33365,
3698,
2599,
198,
220,
37227,
198,
220,
7921,
274,
281,
2975,
17490,
4554,
329,
262,
18640,
13,
198,
220,
1058,
17143,
300,
76,
11147,
13,
48944,
10007,
25,
198,
220,
1058,
17143,
965,
2746,
25,
198,
220,
1058,
7783,
24204,
29197,
49493,
25,
198,
220,
37227,
198,
220,
2975,
62,
16737,
796,
573,
13,
2220,
64,
7,
19849,
8,
198,
220,
900,
8890,
1741,
48944,
7,
6344,
62,
16737,
11,
10007,
8,
198,
220,
1441,
2975,
62,
16737,
198,
198,
4299,
7110,
7575,
27996,
7,
7890,
11,
318,
62,
1416,
1436,
28,
25101,
11,
3670,
2625,
1600,
220,
198,
220,
220,
220,
15180,
28,
14202,
11,
318,
62,
29487,
28,
17821,
2599,
198,
220,
37227,
198,
220,
28407,
82,
257,
640,
2168,
7110,
286,
18640,
1366,
13,
198,
220,
1058,
17143,
7177,
1366,
25,
717,
5721,
318,
640,
198,
220,
1058,
17143,
20512,
318,
62,
1416,
1436,
25,
466,
257,
41058,
7110,
198,
220,
1058,
17143,
965,
3670,
25,
7110,
3670,
198,
220,
37227,
198,
220,
611,
407,
318,
39098,
7,
7890,
11,
279,
67,
13,
6601,
19778,
2599,
198,
220,
220,
220,
47764,
796,
279,
67,
13,
6601,
19778,
7,
7890,
8,
198,
220,
2073,
25,
198,
220,
220,
220,
47764,
796,
1366,
198,
220,
15180,
796,
47764,
13,
28665,
82,
13,
83,
349,
396,
3419,
198,
220,
2124,
85,
796,
47764,
58,
28665,
82,
58,
15,
11907,
198,
220,
611,
318,
62,
1416,
1436,
25,
198,
220,
220,
220,
458,
83,
13,
29487,
357,
87,
85,
11,
47764,
58,
28665,
82,
58,
16,
47715,
4357,
18364,
11639,
9,
3256,
9493,
10992,
11639,
14202,
11537,
198,
220,
2073,
25,
198,
220,
220,
220,
458,
83,
13,
29487,
357,
87,
85,
11,
47764,
58,
28665,
82,
58,
16,
25,
11907,
8,
198,
220,
458,
83,
13,
7839,
7,
7839,
8,
198,
220,
458,
83,
13,
87,
18242,
7203,
7575,
4943,
198,
220,
458,
83,
13,
2645,
9608,
7203,
3103,
1087,
1358,
4943,
198,
220,
611,
15180,
318,
6045,
25,
198,
220,
220,
220,
15180,
796,
45941,
13,
44754,
7203,
1600,
45941,
13,
43358,
7,
7890,
38381,
16,
12962,
198,
220,
458,
83,
13,
1455,
437,
7,
28665,
82,
8,
198,
220,
611,
318,
62,
29487,
25,
198,
220,
220,
220,
458,
83,
13,
12860,
3419,
220,
198,
198,
4299,
5591,
8645,
1352,
7,
22510,
62,
13033,
11,
997,
62,
69,
10119,
2599,
198,
220,
37227,
198,
220,
7921,
274,
17301,
329,
1332,
290,
3047,
1366,
36525,
13,
198,
220,
1058,
17143,
493,
997,
62,
13033,
25,
1271,
286,
1366,
2173,
198,
220,
1058,
17143,
493,
997,
62,
69,
10119,
25,
1271,
286,
38744,
198,
220,
1058,
7783,
11629,
540,
25,
5501,
24415,
11073,
257,
46545,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3274,
5002,
25,
3047,
36525,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5498,
5002,
25,
1332,
36525,
198,
220,
37227,
198,
220,
36525,
796,
2837,
7,
22510,
62,
13033,
8,
198,
220,
329,
17675,
287,
2837,
7,
22510,
62,
69,
10119,
2599,
198,
220,
220,
220,
1332,
62,
521,
1063,
796,
17635,
198,
220,
220,
220,
329,
4686,
87,
287,
36525,
25,
198,
220,
220,
220,
220,
220,
611,
4686,
87,
4064,
997,
62,
69,
10119,
6624,
17675,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
521,
1063,
13,
33295,
7,
312,
87,
8,
198,
220,
220,
220,
4512,
62,
521,
1063,
796,
45941,
13,
18747,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1351,
7,
2617,
7,
521,
1063,
737,
26069,
1945,
7,
9288,
62,
521,
1063,
22305,
198,
220,
220,
220,
1332,
62,
521,
1063,
796,
45941,
13,
18747,
7,
9288,
62,
521,
1063,
8,
198,
220,
220,
220,
7800,
4512,
62,
521,
1063,
11,
1332,
62,
521,
1063,
198,
198,
4299,
787,
31310,
712,
602,
7,
14323,
62,
2435,
28,
48913,
62,
34694,
11,
997,
62,
13033,
28,
41359,
62,
16402,
1268,
4694,
11,
198,
220,
220,
220,
7838,
62,
19282,
28,
15285,
24352,
62,
32147,
11,
12429,
46265,
22046,
2599,
198,
220,
37227,
198,
220,
7921,
274,
18512,
13050,
13,
198,
220,
1058,
17143,
493,
985,
62,
2435,
25,
640,
284,
1057,
262,
18640,
198,
220,
1058,
17143,
493,
997,
62,
13033,
25,
1271,
286,
640,
13033,
28590,
198,
220,
1058,
17143,
12178,
7838,
62,
19282,
25,
8997,
28833,
329,
4738,
7838,
198,
220,
1058,
17143,
8633,
479,
86,
22046,
25,
21179,
10007,
973,
416,
1057,
8890,
1741,
198,
220,
1058,
7783,
279,
67,
13,
6601,
19778,
25,
18640,
2482,
351,
4738,
1108,
198,
220,
37227,
198,
220,
1303,
13610,
2081,
3815,
198,
220,
18640,
62,
20274,
796,
1057,
8890,
1741,
7,
14323,
62,
2435,
28,
14323,
62,
2435,
11,
198,
220,
220,
220,
220,
220,
997,
62,
13033,
28,
22510,
62,
13033,
11,
198,
220,
220,
220,
220,
220,
12429,
46265,
22046,
8,
198,
220,
1366,
796,
18640,
62,
20274,
13,
7890,
198,
220,
997,
62,
4033,
82,
796,
18896,
7,
7890,
13,
4033,
14933,
8,
198,
220,
1303,
3060,
4738,
1108,
198,
220,
329,
1312,
287,
2837,
357,
22510,
62,
13033,
2599,
198,
220,
220,
220,
329,
474,
287,
2837,
7,
16,
11,
997,
62,
4033,
82,
2599,
198,
220,
220,
220,
220,
220,
1366,
58,
72,
11,
474,
60,
796,
3509,
7,
7890,
58,
72,
11,
474,
60,
220,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1343,
45941,
13,
25120,
13,
11265,
7,
15,
11,
7838,
62,
19282,
11,
352,
828,
657,
8,
198,
220,
1441,
17593,
2514,
8068,
7,
7890,
8,
198,
198,
4299,
42302,
8890,
1741,
4965,
312,
723,
82,
7,
8158,
62,
7890,
11,
10007,
11,
198,
220,
220,
220,
36525,
28,
14202,
11,
12429,
46265,
22046,
2599,
198,
220,
37227,
198,
220,
44743,
257,
18640,
351,
262,
7368,
10007,
290,
43707,
29598,
82,
198,
220,
329,
262,
4512,
62,
521,
1063,
13,
198,
220,
1058,
17143,
7177,
10201,
62,
7890,
25,
17593,
286,
1366,
11,
717,
951,
318,
640,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
279,
67,
13,
6601,
19778,
220,
1058,
6376,
318,
640,
198,
220,
1058,
17143,
300,
76,
11147,
13,
48944,
10007,
25,
198,
220,
1058,
17143,
1351,
12,
600,
36525,
25,
36525,
329,
543,
17952,
318,
1760,
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,
611,
6045,
11,
788,
477,
13,
198,
220,
1058,
17143,
8633,
479,
86,
22046,
25,
11902,
10007,
3804,
284,
18640,
198,
220,
1058,
7783,
1874,
312,
723,
9771,
14902,
25,
198,
220,
37227,
198,
220,
47764,
62,
8158,
796,
17593,
2514,
8068,
16249,
7575,
7,
8158,
62,
7890,
8,
198,
220,
611,
36525,
318,
6045,
25,
198,
220,
220,
220,
36525,
796,
2837,
7,
11925,
7,
7568,
62,
8158,
4008,
198,
220,
611,
407,
509,
16279,
14313,
62,
41359,
62,
16402,
1268,
4694,
287,
479,
86,
22046,
13,
13083,
33529,
198,
220,
220,
220,
479,
86,
22046,
58,
42,
16279,
14313,
62,
41359,
62,
16402,
1268,
4694,
60,
796,
18896,
7,
7568,
62,
8158,
8,
198,
220,
18640,
62,
20274,
796,
1057,
8890,
1741,
7,
17143,
7307,
28,
17143,
7307,
11,
198,
220,
220,
220,
220,
220,
12429,
46265,
22046,
8,
198,
220,
47764,
62,
14323,
796,
17593,
2514,
8068,
16249,
7575,
7,
14323,
1741,
62,
20274,
13,
7890,
8,
198,
220,
1303,
3082,
1133,
5400,
198,
220,
47764,
62,
8158,
11,
47764,
62,
14323,
796,
787,
8068,
3152,
17227,
39470,
82,
7,
7568,
62,
8158,
11,
47764,
62,
14323,
8,
198,
220,
5240,
62,
8158,
796,
787,
19182,
4863,
46912,
7,
7568,
62,
8158,
11,
36525,
8,
198,
220,
5240,
62,
14323,
796,
787,
19182,
4863,
46912,
7,
7568,
62,
14323,
11,
36525,
8,
198,
220,
29598,
82,
796,
5240,
62,
8158,
532,
5240,
62,
14323,
198,
220,
29598,
62,
9948,
14902,
796,
1874,
312,
723,
9771,
14902,
7,
411,
312,
723,
82,
28,
411,
312,
723,
82,
11,
198,
220,
220,
220,
220,
220,
2975,
62,
16737,
28,
14323,
1741,
62,
20274,
13,
6344,
62,
16737,
8,
198,
220,
1441,
29598,
62,
9948,
14902,
198,
198,
2,
16926,
46,
25,
13268,
9041,
286,
10201,
62,
7890,
15180,
13,
1737,
407,
307,
198,
2,
220,
220,
220,
220,
220,
220,
257,
3706,
7177,
11,
355,
287,
6297,
26418,
13,
198,
4299,
4197,
7,
8158,
62,
7890,
11,
36525,
28,
14202,
11,
10007,
28,
27082,
2390,
2767,
4877,
11,
220,
198,
220,
220,
220,
2446,
28,
11682,
62,
2538,
1921,
4694,
48,
11,
12429,
46265,
22046,
2599,
198,
220,
37227,
198,
220,
8314,
257,
4197,
286,
262,
2746,
284,
262,
13050,
13,
198,
220,
1058,
17143,
299,
67,
18747,
10201,
62,
7890,
25,
17593,
286,
6515,
3815,
351,
640,
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,
355,
262,
717,
5721,
198,
220,
220,
220,
220,
220,
220,
220,
220,
279,
67,
13,
6601,
19778,
220,
220,
220,
1058,
640,
318,
6376,
198,
220,
1058,
17143,
1351,
12,
600,
36525,
25,
36525,
319,
543,
4197,
318,
6157,
198,
220,
1058,
17143,
300,
76,
11147,
13,
48944,
10007,
25,
10007,
4197,
198,
220,
1058,
17143,
965,
2446,
25,
23989,
2446,
26,
1111,
1724,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22577,
62,
1990,
2122,
3940,
416,
1551,
31166,
198,
220,
1058,
17143,
8633,
479,
86,
22046,
25,
11902,
10007,
3804,
284,
1057,
8890,
1741,
198,
220,
1058,
7783,
300,
76,
11147,
13,
48944,
25,
198,
220,
37227,
198,
220,
3298,
2975,
62,
16737,
198,
220,
2975,
62,
16737,
796,
15107,
2885,
62,
49,
4944,
21479,
198,
220,
1303,
198,
220,
1303,
198,
220,
611,
2446,
6624,
11948,
62,
33,
26946,
25,
198,
220,
220,
220,
10007,
796,
8636,
48944,
7,
11682,
62,
35,
5064,
24302,
3525,
12576,
62,
20114,
3535,
35354,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10007,
8,
198,
220,
220,
220,
1441,
8636,
48944,
7,
11682,
62,
2538,
1921,
4694,
48,
11,
10007,
8,
198,
220,
2073,
25,
198,
220,
220,
220,
1441,
8636,
48944,
7,
24396,
11,
10007,
8,
198,
198,
4299,
3272,
7762,
20540,
7,
8158,
62,
7890,
11,
2446,
28,
8068,
62,
49273,
11,
198,
220,
220,
220,
985,
62,
2435,
28,
48913,
62,
34694,
11,
198,
220,
220,
220,
997,
62,
13033,
28,
14202,
11,
10007,
28,
27082,
2390,
2767,
4877,
11,
198,
220,
220,
220,
997,
62,
69,
10119,
28,
18,
11,
12429,
46265,
22046,
2599,
198,
220,
37227,
198,
220,
2448,
23914,
3272,
21201,
319,
281,
1885,
33969,
2746,
13,
198,
220,
1058,
17143,
299,
67,
18747,
10201,
62,
7890,
25,
1366,
284,
4197,
26,
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,
15180,
389,
4693,
26,
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,
15274,
389,
640,
10245,
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,
717,
5721,
318,
640,
198,
220,
220,
220,
220,
220,
220,
220,
279,
67,
13,
6601,
19778,
220,
220,
220,
1058,
640,
318,
6376,
198,
220,
1058,
17143,
493,
985,
62,
2435,
25,
4129,
286,
18640,
1057,
198,
220,
1058,
17143,
493,
997,
62,
13033,
25,
1271,
286,
640,
2173,
4635,
13,
198,
220,
1058,
17143,
300,
76,
11147,
13,
48944,
25,
10007,
284,
307,
6108,
198,
220,
1058,
17143,
8633,
479,
86,
22046,
25,
11902,
7159,
973,
287,
18640,
198,
220,
1058,
7783,
1351,
12,
75,
76,
11147,
13,
48944,
11,
1351,
12,
22468,
25,
10007,
290,
19340,
48,
422,
38744,
198,
220,
37227,
198,
220,
47764,
62,
8158,
796,
17593,
2514,
8068,
7,
8158,
62,
7890,
8,
198,
220,
611,
997,
62,
13033,
318,
6045,
25,
198,
220,
220,
220,
997,
62,
13033,
796,
18896,
7,
7568,
62,
8158,
8,
198,
220,
1303,
40806,
378,
329,
329,
38744,
198,
220,
5591,
62,
8612,
1352,
796,
5591,
8645,
1352,
7,
22510,
62,
13033,
11,
997,
62,
69,
10119,
8,
198,
220,
1255,
62,
17143,
7307,
796,
17635,
198,
220,
1255,
62,
3808,
48382,
796,
17635,
198,
220,
2975,
62,
16737,
796,
15107,
2885,
62,
49,
4944,
21479,
198,
220,
329,
4512,
62,
521,
1063,
11,
1332,
62,
521,
1063,
287,
5591,
62,
8612,
1352,
25,
198,
220,
220,
220,
1303,
770,
2163,
318,
5447,
2641,
262,
9052,
780,
340,
10288,
257,
9052,
7885,
198,
220,
220,
220,
649,
62,
17143,
7307,
796,
10007,
13,
30073,
3419,
198,
220,
220,
220,
18235,
62,
17143,
7307,
796,
4197,
7,
7568,
62,
8158,
11,
2446,
28,
24396,
11,
198,
220,
220,
220,
220,
220,
36525,
28,
27432,
62,
521,
1063,
11,
10007,
28,
3605,
62,
17143,
7307,
11,
198,
220,
220,
220,
220,
220,
985,
62,
2435,
28,
14323,
62,
2435,
11,
997,
62,
13033,
28,
22510,
62,
13033,
11,
198,
220,
220,
220,
220,
220,
12429,
46265,
22046,
8,
198,
220,
220,
220,
1255,
62,
17143,
7307,
13,
33295,
7,
38631,
62,
17143,
7307,
8,
198,
220,
220,
220,
1303,
5660,
262,
18640,
1262,
198,
220,
220,
220,
1303,
262,
10007,
6108,
1262,
262,
3047,
1366,
13,
198,
220,
220,
220,
18640,
62,
20274,
796,
1057,
8890,
1741,
7,
6344,
62,
16737,
28,
6344,
62,
16737,
11,
198,
220,
220,
220,
220,
220,
220,
220,
985,
62,
2435,
28,
14323,
62,
2435,
11,
997,
62,
13033,
28,
22510,
62,
13033,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10007,
28,
38631,
62,
17143,
7307,
11,
12429,
46265,
22046,
8,
198,
220,
220,
220,
2975,
62,
16737,
796,
18640,
62,
20274,
13,
6344,
62,
16737,
198,
220,
220,
220,
47764,
62,
395,
796,
17593,
2514,
8068,
7,
14323,
1741,
62,
20274,
13,
7890,
8,
198,
220,
220,
220,
1303,
27131,
378,
19340,
48,
198,
220,
220,
220,
374,
31166,
796,
42302,
49,
31166,
7,
7568,
62,
8158,
11,
47764,
62,
395,
11,
1332,
62,
521,
1063,
8,
198,
220,
220,
220,
1255,
62,
3808,
48382,
13,
33295,
7,
3808,
80,
8,
198,
220,
1441,
1255,
62,
17143,
7307,
11,
1255,
62,
3808,
48382,
198,
198,
4299,
787,
4965,
312,
723,
8068,
7,
8158,
62,
7890,
11,
2746,
11,
10007,
11,
198,
220,
220,
220,
2975,
62,
16737,
28,
13252,
2885,
62,
49,
4944,
21479,
11,
198,
220,
220,
220,
12429,
46265,
22046,
2599,
198,
220,
37227,
198,
220,
27131,
378,
29598,
82,
329,
1123,
5931,
4693,
13,
198,
220,
1058,
17143,
3706,
62,
18747,
14,
30094,
13,
6601,
19778,
10201,
62,
7890,
25,
17593,
286,
13050,
26,
717,
5721,
318,
640,
26,
1271,
286,
15274,
318,
997,
62,
13033,
198,
220,
1058,
17143,
300,
76,
11147,
13,
48944,
10007,
25,
198,
220,
1058,
17143,
8633,
479,
86,
22046,
25,
11902,
7159,
284,
1057,
8890,
1741,
198,
220,
1058,
7783,
279,
67,
13,
6601,
19778,
25,
17593,
286,
29598,
82,
26,
15180,
389,
5931,
4693,
198,
220,
37227,
198,
220,
47764,
62,
8158,
796,
17593,
2514,
8068,
7,
8158,
62,
7890,
8,
198,
220,
611,
47764,
62,
8158,
13,
9630,
13,
3672,
14512,
20460,
25,
198,
220,
220,
220,
1330,
279,
9945,
26,
279,
9945,
13,
2617,
62,
40546,
3419,
198,
220,
220,
220,
5298,
11052,
12331,
7203,
44651,
40118,
1366,
4943,
198,
220,
29598,
62,
9948,
14902,
796,
42302,
8890,
1741,
4965,
312,
723,
82,
7,
7568,
62,
8158,
11,
10007,
11,
198,
220,
220,
220,
220,
220,
2746,
28,
19849,
11,
2975,
62,
16737,
28,
6344,
62,
16737,
11,
12429,
46265,
22046,
8,
198,
220,
2975,
62,
5143,
681,
796,
29598,
62,
9948,
14902,
13,
6344,
62,
16737,
198,
220,
29598,
82,
796,
29598,
62,
9948,
14902,
13,
411,
312,
723,
82,
198,
220,
1303,
1874,
71,
1758,
262,
29598,
82,
416,
4693,
198,
220,
997,
62,
35448,
796,
18896,
7,
7568,
62,
8158,
13,
28665,
82,
8,
198,
220,
299,
8516,
796,
493,
7,
11925,
7,
411,
312,
723,
82,
8,
1220,
997,
62,
35448,
8,
198,
220,
1255,
796,
45941,
13,
3447,
1758,
7,
411,
312,
723,
82,
11,
357,
77,
8516,
11,
997,
62,
35448,
4008,
198,
220,
47764,
62,
411,
796,
279,
67,
13,
6601,
19778,
7,
20274,
8,
198,
220,
47764,
62,
411,
13,
28665,
82,
796,
47764,
62,
8158,
13,
28665,
82,
198,
220,
1441,
47764,
62,
411,
198,
198,
4299,
787,
13940,
429,
6587,
31310,
712,
602,
7,
7568,
62,
411,
11,
12429,
46265,
22046,
2599,
198,
220,
37227,
198,
220,
28407,
82,
18512,
13050,
329,
262,
2746,
13,
198,
220,
1058,
17143,
279,
67,
13,
6601,
19778,
47764,
62,
411,
25,
17593,
286,
29598,
82,
26,
15180,
389,
4693,
26,
1271,
286,
15274,
318,
997,
62,
13033,
198,
220,
1058,
17143,
8633,
479,
86,
22046,
25,
11902,
7159,
284,
1057,
8890,
1741,
198,
220,
1058,
7783,
279,
67,
13,
6601,
19778,
25,
6376,
318,
640,
198,
220,
37227,
198,
220,
18640,
62,
20274,
796,
1057,
8890,
1741,
7,
1174,
46265,
22046,
8,
198,
220,
47764,
62,
7890,
796,
17593,
2514,
8068,
7,
14323,
1741,
62,
20274,
13,
7890,
8,
198,
220,
47764,
62,
7890,
11,
47764,
62,
411,
796,
787,
8068,
3152,
17227,
39470,
82,
7,
7568,
62,
7890,
11,
47764,
62,
411,
8,
198,
220,
47764,
62,
411,
13,
28665,
82,
796,
47764,
62,
7890,
13,
28665,
82,
198,
220,
299,
8516,
796,
18896,
7,
7568,
62,
7890,
8,
198,
220,
299,
4033,
82,
796,
18896,
7,
7568,
62,
7890,
13,
28665,
82,
8,
198,
220,
329,
951,
287,
47764,
62,
7890,
13,
28665,
82,
25,
198,
220,
220,
220,
329,
4686,
87,
287,
47764,
62,
7890,
13,
9630,
25,
198,
220,
220,
220,
220,
220,
4738,
62,
9630,
796,
47764,
62,
411,
13,
9630,
58,
37659,
13,
25120,
13,
25192,
600,
7,
15,
11,
299,
8516,
15437,
198,
220,
220,
220,
220,
220,
47764,
62,
7890,
13,
17946,
58,
312,
87,
11,
951,
60,
796,
47764,
62,
7890,
13,
17946,
58,
312,
87,
11,
951,
60,
220,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1343,
47764,
62,
411,
13,
17946,
58,
25120,
62,
9630,
11,
951,
60,
198,
220,
47764,
62,
7890,
796,
47764,
62,
7890,
13,
39014,
8899,
7,
50033,
410,
25,
3509,
7,
85,
11,
657,
4008,
198,
220,
1441,
47764,
62,
7890,
198,
198,
4299,
466,
36476,
26418,
3152,
4965,
312,
723,
82,
7,
7568,
62,
411,
11,
198,
220,
220,
220,
2446,
28,
8068,
62,
49273,
11,
954,
28,
8068,
62,
8202,
2394,
18601,
2969,
62,
34,
28270,
11,
12429,
46265,
22046,
2599,
198,
220,
37227,
198,
220,
2448,
23914,
6297,
12044,
2105,
416,
7830,
15453,
18512,
13050,
13,
198,
220,
1058,
17143,
279,
67,
13,
6601,
19778,
29598,
82,
62,
6759,
8609,
25,
198,
220,
1058,
17143,
493,
954,
25,
1271,
286,
34820,
287,
6297,
26418,
198,
220,
1058,
17143,
8633,
479,
86,
22046,
25,
11902,
7159,
284,
1057,
8890,
1741,
198,
220,
37227,
198,
220,
1351,
62,
17143,
7307,
796,
17635,
198,
220,
329,
4808,
287,
2837,
7,
9127,
2599,
198,
220,
220,
220,
220,
220,
47764,
62,
7890,
796,
787,
13940,
429,
6587,
31310,
712,
602,
7,
7568,
62,
411,
11,
12429,
46265,
22046,
8,
198,
220,
220,
220,
220,
220,
10007,
796,
4197,
7,
7568,
62,
7890,
11,
2446,
28,
24396,
11,
12429,
46265,
22046,
8,
198,
220,
220,
220,
220,
220,
1351,
62,
17143,
7307,
13,
33295,
7,
17143,
7307,
8,
198,
220,
1441,
1351,
62,
17143,
7307,
198,
198,
4299,
466,
36476,
26418,
7,
7568,
62,
7890,
11,
2746,
11,
10007,
11,
220,
198,
220,
220,
220,
2446,
28,
8068,
62,
49273,
11,
954,
28,
8068,
62,
8202,
2394,
18601,
2969,
62,
34,
28270,
11,
198,
220,
220,
220,
6628,
62,
49196,
28,
8068,
62,
10943,
37,
2389,
18310,
62,
41358,
23428,
11,
12429,
46265,
22046,
2599,
198,
220,
37227,
198,
220,
2448,
23914,
6297,
12044,
2105,
416,
7830,
15453,
18512,
13050,
11,
198,
220,
26019,
262,
29598,
82,
355,
880,
13,
198,
220,
1058,
17143,
279,
67,
13,
6601,
19778,
47764,
62,
7890,
25,
6376,
318,
640,
198,
220,
1058,
17143,
965,
2746,
25,
198,
220,
1058,
17143,
300,
76,
11147,
13,
48944,
10007,
25,
198,
220,
1058,
17143,
493,
954,
25,
1271,
286,
34820,
287,
6297,
26418,
198,
220,
1058,
17143,
8633,
479,
86,
22046,
25,
11902,
7159,
284,
1057,
8890,
1741,
198,
220,
1058,
7783,
8633,
25,
6628,
7095,
198,
220,
37227,
198,
220,
47764,
62,
411,
796,
787,
4965,
312,
723,
8068,
7,
7568,
62,
7890,
11,
2746,
11,
198,
220,
220,
220,
220,
220,
10007,
11,
12429,
46265,
22046,
8,
198,
220,
1351,
62,
17143,
7307,
796,
466,
36476,
26418,
3152,
4965,
312,
723,
82,
7,
7568,
62,
411,
11,
198,
220,
220,
220,
220,
220,
2446,
28,
24396,
11,
198,
220,
220,
220,
220,
220,
954,
28,
9127,
11,
2746,
28,
19849,
11,
10007,
28,
17143,
7307,
11,
12429,
46265,
22046,
8,
198,
220,
1441,
787,
36301,
48346,
7,
4868,
62,
17143,
7307,
11,
198,
220,
220,
220,
220,
220,
6628,
62,
49196,
28,
39745,
62,
49196,
8,
198,
198,
4299,
42302,
17126,
2569,
7,
27160,
11,
6628,
62,
49196,
41888,
18973,
2713,
11,
19878,
3865,
60,
2599,
198,
220,
37227,
198,
220,
27131,
689,
5133,
2569,
198,
220,
1058,
17143,
1351,
12,
22468,
3815,
25,
198,
220,
1058,
7783,
5133,
2569,
25,
198,
220,
37227,
198,
220,
5554,
2915,
796,
45941,
13,
40972,
576,
7,
27160,
11,
6628,
62,
49196,
8,
198,
220,
1441,
5133,
2569,
7,
198,
220,
220,
220,
220,
220,
1612,
220,
796,
37659,
13,
32604,
7,
27160,
828,
198,
220,
220,
220,
220,
220,
14367,
796,
45941,
13,
19282,
7,
27160,
828,
198,
220,
220,
220,
220,
220,
269,
72,
62,
9319,
796,
5554,
2915,
58,
15,
4357,
198,
220,
220,
220,
220,
220,
269,
72,
62,
8929,
796,
5554,
2915,
58,
16,
4357,
198,
220,
220,
220,
220,
220,
1267,
198,
198,
4299,
787,
36301,
48346,
7,
4868,
62,
17143,
7307,
11,
198,
220,
220,
220,
6628,
62,
49196,
28,
8068,
62,
10943,
37,
2389,
18310,
62,
41358,
23428,
2599,
198,
220,
37227,
198,
220,
3082,
1769,
262,
1612,
290,
3210,
28833,
286,
262,
10007,
287,
257,
1351,
286,
10007,
13,
198,
220,
1058,
17143,
1351,
12,
75,
76,
11147,
13,
48944,
198,
220,
1058,
17143,
357,
22468,
11,
12178,
8,
6628,
62,
49196,
25,
611,
4844,
11,
989,
1612,
290,
24198,
198,
220,
1058,
7783,
8633,
25,
1994,
318,
262,
11507,
1438,
26,
1988,
318,
25139,
2357,
17126,
2569,
198,
220,
37227,
198,
220,
24696,
62,
11600,
796,
23884,
198,
220,
11507,
62,
14933,
796,
1351,
7,
4868,
62,
17143,
7307,
58,
15,
4083,
27160,
11600,
22446,
13083,
28955,
198,
220,
329,
1438,
287,
11507,
62,
14933,
25,
198,
220,
220,
220,
24696,
62,
11600,
58,
3672,
60,
796,
17635,
198,
220,
220,
220,
329,
10007,
287,
1351,
62,
17143,
7307,
25,
198,
220,
220,
220,
220,
220,
24696,
62,
11600,
58,
3672,
4083,
33295,
7,
17143,
7307,
13,
27160,
11600,
3419,
58,
3672,
12962,
198,
220,
1303,
27131,
378,
262,
7869,
198,
220,
329,
1438,
287,
24696,
62,
11600,
13,
13083,
33529,
198,
220,
220,
220,
24696,
62,
11600,
58,
3672,
60,
796,
42302,
17126,
2569,
7,
14269,
2569,
62,
11600,
58,
3672,
12962,
198,
220,
1441,
24696,
62,
11600,
198
] | 2.721607 | 7,044 |
from qcore.asserts import assert_eq
import random
from python_project_template.utils import random_string
|
[
6738,
10662,
7295,
13,
30493,
82,
1330,
6818,
62,
27363,
198,
11748,
4738,
198,
198,
6738,
21015,
62,
16302,
62,
28243,
13,
26791,
1330,
4738,
62,
8841,
628
] | 3.857143 | 28 |
import unittest
import torch
from pytorch_metric_learning.losses import NPairsLoss
from pytorch_metric_learning.utils import common_functions as c_f, loss_and_miner_utils as lmu
|
[
11748,
555,
715,
395,
198,
11748,
28034,
198,
6738,
12972,
13165,
354,
62,
4164,
1173,
62,
40684,
13,
22462,
274,
1330,
28498,
3468,
43,
793,
198,
6738,
12972,
13165,
354,
62,
4164,
1173,
62,
40684,
13,
26791,
1330,
2219,
62,
12543,
2733,
355,
269,
62,
69,
11,
2994,
62,
392,
62,
1084,
263,
62,
26791,
355,
300,
30300,
198
] | 3.016949 | 59 |
import requests
import json
import datetime
import pandas as pd
import numpy as np
import platform
# 有時候的登入狀態會抓不到資料:
# 要抓的港口 'ID': 港口名稱
port_ID_map = {'87':'Los Angeles','2727':'longBeach','93':'Oakland','1253':'Shanhi','1006':'Yantian',
'290':'Singapore','172':'Hamburg','2036':'Rotterdam','199':'Felixstowe'}
#船隻種類
ship_type = ['CONTAINER SHIPS','DRY BREAKBULK','DRY BULK','LNG CARRIERS','LPG CARRIERS',
'PASSENGER SHIPS','RO/RO','WET BULK','SUPPORTING VESSELS','OTHER MARKETS']
url = 'https://www.marinetraffic.com/en/users/ajax_login'
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36'
,'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'
,'X-Requested-With':'XMLHttpRequest'
}
form_data = {'email': '[email protected]',
'password': 'lay9821529',
'remember': '1'}
# use session to login
s = requests.Session()
#login
s.post(url,headers = headers, data = form_data)
print(s)
# Define 合併函數的裝飾函數
@merge_data_func()
# 主爬蟲
# 要抓的港口 'ID': 港口名稱
port_ID_map = {'87':'Los Angeles','2727':'longBeach','93':'Oakland','1253':'Shanhi','1006':'Yantian',
'290':'Singapore','172':'Hamburg','2036':'Rotterdam','199':'Felixstowe'}
#船隻種類
ship_type = ['CONTAINER SHIPS','DRY BREAKBULK','DRY BULK','LNG CARRIERS','LPG CARRIERS',
'PASSENGER SHIPS','RO/RO','WET BULK','SUPPORTING VESSELS']
# 放所有的資料的地方
result = []
# 迴圈跑所有的港口
for port_ID,port_name in port_ID_map.items():
url = f'https://www.marinetraffic.com/en/ais/getHighcharts/'
myobj = {'PORT_ID':port_ID}
# 分別要去拿到達的時間 跟離開的時間
for job in ['TaA','TaP']:
# 如果現在要拿的是 到達的時間
if job == 'TaA':
myobj['configID'] = 'VesselType_TaA'
else:
myobj['configID'] = 'VesselType_TaP'
r = s.post(url,headers = headers, data = myobj)
# print(r.text)
response = json.loads(r.text)
for i in range(len(response)):
if job == 'TaA':
response[i]['categorization'] = 'Arrive'
else:
response[i]['categorization'] = 'Departure'
result = response + result
df = pd.DataFrame(result)
# 轉型把數字都轉成float
# print(df.columns)
df.loc[:,ship_type] = df.loc[:,ship_type].astype(float)
# 把port_ID maping 到看得懂的名字
df['Port_ID'] = df['Port_ID'].apply(lambda x: port_ID_map[x])
# print(df['Port_ID'].to_string())
# 重新安排欄位名稱
df = df[['Calendar_Week','Port_ID','categorization','ALL','CONTAINER SHIPS','DRY BREAKBULK'
,'DRY BULK','LNG CARRIERS','LPG CARRIERS','PASSENGER SHIPS','RO/RO','WET BULK'
,'SUPPORTING VESSELS']]
print(df)
# 檔案位置
if platform.system() == "Windows":
# Local 端
path = 'static/data/Shipping/congestion.csv'
else:
# AWS 端
path = "/home/cathaylife04/smartphone/iphone11/static/data/Shipping/congestion.csv"
# 執行合併檔案
congestion(df,data_name = path)
|
[
11748,
7007,
198,
11748,
33918,
198,
11748,
4818,
8079,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
3859,
198,
2,
42164,
231,
162,
25081,
161,
222,
247,
21410,
163,
247,
119,
17739,
98,
45379,
222,
162,
26534,
17312,
225,
162,
232,
241,
38834,
26344,
108,
164,
111,
229,
23877,
247,
25,
198,
2,
5525,
99,
223,
162,
232,
241,
21410,
162,
116,
107,
20998,
96,
705,
2389,
10354,
10545,
116,
107,
20998,
96,
28938,
235,
163,
101,
109,
198,
634,
62,
2389,
62,
8899,
796,
1391,
6,
5774,
10354,
6,
28903,
5652,
41707,
1983,
1983,
10354,
6,
6511,
3856,
620,
41707,
6052,
10354,
6,
42426,
1044,
41707,
1065,
4310,
10354,
6,
2484,
272,
5303,
41707,
3064,
21,
10354,
6,
56,
415,
666,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
24369,
10354,
6,
29974,
11656,
41707,
23628,
10354,
6,
39,
4131,
3686,
41707,
1238,
2623,
10354,
6,
24864,
353,
11043,
41707,
19104,
10354,
6,
42493,
844,
301,
47097,
6,
92,
198,
2,
48958,
117,
49694,
119,
163,
101,
106,
165,
94,
252,
198,
6720,
62,
4906,
796,
37250,
10943,
30339,
1137,
6006,
47643,
41707,
7707,
56,
29377,
10206,
33,
6239,
42,
41707,
7707,
56,
347,
6239,
42,
41707,
43,
10503,
17368,
7112,
4877,
41707,
43,
6968,
17368,
7112,
4877,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
47924,
26808,
1137,
6006,
47643,
41707,
13252,
14,
13252,
41707,
54,
2767,
347,
6239,
42,
41707,
40331,
15490,
2751,
569,
7597,
37142,
41707,
31858,
39641,
32716,
20520,
198,
198,
6371,
796,
705,
5450,
1378,
2503,
13,
3876,
42504,
430,
2108,
13,
785,
14,
268,
14,
18417,
14,
1228,
897,
62,
38235,
6,
198,
50145,
796,
1391,
198,
220,
220,
220,
705,
12982,
12,
36772,
10354,
6,
44,
8590,
5049,
14,
20,
13,
15,
357,
11209,
24563,
838,
13,
15,
26,
7178,
2414,
26,
2124,
2414,
8,
4196,
13908,
20827,
14,
46096,
13,
2623,
357,
42,
28656,
11,
588,
2269,
37549,
8,
13282,
14,
6420,
13,
15,
13,
2598,
4761,
13,
23237,
23298,
14,
46096,
13,
2623,
6,
198,
220,
220,
220,
837,
6,
19746,
12,
6030,
10354,
6,
31438,
14,
87,
12,
2503,
12,
687,
12,
6371,
12685,
9043,
26,
34534,
316,
28,
48504,
12,
23,
6,
198,
4032,
55,
12,
18453,
276,
12,
3152,
10354,
6,
55,
5805,
43481,
18453,
6,
198,
92,
198,
687,
62,
7890,
796,
1391,
6,
12888,
10354,
705,
10724,
5824,
1065,
22136,
31,
14816,
13,
785,
3256,
198,
6,
28712,
10354,
705,
10724,
4089,
23349,
1959,
3256,
198,
821,
19522,
10354,
705,
16,
6,
92,
198,
2,
779,
6246,
284,
17594,
198,
82,
796,
7007,
13,
36044,
3419,
198,
2,
38235,
198,
82,
13,
7353,
7,
6371,
11,
50145,
796,
24697,
11,
1366,
796,
1296,
62,
7890,
8,
198,
4798,
7,
82,
8,
628,
198,
2,
2896,
500,
10263,
238,
230,
19526,
113,
49035,
121,
46763,
116,
21410,
32518,
251,
45617,
122,
49035,
121,
46763,
116,
198,
198,
31,
647,
469,
62,
7890,
62,
20786,
3419,
628,
198,
198,
2,
220,
10310,
119,
163,
230,
105,
164,
253,
110,
198,
198,
2,
5525,
99,
223,
162,
232,
241,
21410,
162,
116,
107,
20998,
96,
705,
2389,
10354,
10545,
116,
107,
20998,
96,
28938,
235,
163,
101,
109,
198,
634,
62,
2389,
62,
8899,
796,
1391,
6,
5774,
10354,
6,
28903,
5652,
41707,
1983,
1983,
10354,
6,
6511,
3856,
620,
41707,
6052,
10354,
6,
42426,
1044,
41707,
1065,
4310,
10354,
6,
2484,
272,
5303,
41707,
3064,
21,
10354,
6,
56,
415,
666,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
24369,
10354,
6,
29974,
11656,
41707,
23628,
10354,
6,
39,
4131,
3686,
41707,
1238,
2623,
10354,
6,
24864,
353,
11043,
41707,
19104,
10354,
6,
42493,
844,
301,
47097,
6,
92,
198,
2,
48958,
117,
49694,
119,
163,
101,
106,
165,
94,
252,
198,
6720,
62,
4906,
796,
37250,
10943,
30339,
1137,
6006,
47643,
41707,
7707,
56,
29377,
10206,
33,
6239,
42,
41707,
7707,
56,
347,
6239,
42,
41707,
43,
10503,
17368,
7112,
4877,
41707,
43,
6968,
17368,
7112,
4877,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
47924,
26808,
1137,
6006,
47643,
41707,
13252,
14,
13252,
41707,
54,
2767,
347,
6239,
42,
41707,
40331,
15490,
2751,
569,
7597,
37142,
20520,
198,
2,
10545,
242,
122,
33699,
222,
17312,
231,
21410,
164,
111,
229,
23877,
247,
21410,
28839,
108,
43095,
198,
20274,
796,
17635,
198,
198,
2,
5525,
123,
112,
28839,
42062,
115,
239,
33699,
222,
17312,
231,
21410,
162,
116,
107,
20998,
96,
198,
1640,
2493,
62,
2389,
11,
634,
62,
3672,
287,
2493,
62,
2389,
62,
8899,
13,
23814,
33529,
198,
220,
220,
220,
220,
198,
220,
220,
220,
19016,
796,
277,
6,
5450,
1378,
2503,
13,
3876,
42504,
430,
2108,
13,
785,
14,
268,
14,
15152,
14,
1136,
11922,
354,
5889,
14,
6,
198,
220,
220,
220,
616,
26801,
796,
1391,
6,
15490,
62,
2389,
10354,
634,
62,
2389,
92,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
10263,
230,
228,
26344,
98,
17358,
223,
43889,
119,
162,
233,
123,
26344,
108,
34402,
242,
21410,
162,
25081,
38461,
241,
5525,
115,
253,
37239,
95,
38461,
233,
21410,
162,
25081,
38461,
241,
198,
220,
220,
220,
329,
1693,
287,
37250,
38586,
32,
41707,
38586,
47,
6,
5974,
198,
220,
220,
220,
1303,
10263,
99,
224,
162,
252,
250,
163,
237,
122,
28839,
101,
17358,
223,
162,
233,
123,
21410,
42468,
10263,
230,
108,
34402,
242,
21410,
162,
25081,
38461,
241,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1693,
6624,
705,
38586,
32,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
616,
26801,
17816,
11250,
2389,
20520,
796,
705,
53,
7878,
6030,
62,
38586,
32,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
616,
26801,
17816,
11250,
2389,
20520,
796,
705,
53,
7878,
6030,
62,
38586,
47,
6,
198,
220,
220,
220,
220,
220,
220,
220,
374,
796,
264,
13,
7353,
7,
6371,
11,
50145,
796,
24697,
11,
1366,
796,
616,
26801,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
81,
13,
5239,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2882,
796,
33918,
13,
46030,
7,
81,
13,
5239,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
26209,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1693,
6624,
705,
38586,
32,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2882,
58,
72,
7131,
6,
66,
47467,
1634,
20520,
796,
705,
3163,
11590,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2882,
58,
72,
7131,
6,
66,
47467,
1634,
20520,
796,
705,
12156,
433,
495,
6,
628,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2882,
1343,
1255,
198,
198,
7568,
796,
279,
67,
13,
6601,
19778,
7,
20274,
8,
198,
2,
5525,
121,
231,
161,
252,
233,
162,
232,
232,
46763,
116,
27764,
245,
32849,
121,
164,
121,
231,
22755,
238,
22468,
198,
2,
3601,
7,
7568,
13,
28665,
82,
8,
198,
7568,
13,
17946,
58,
45299,
6720,
62,
4906,
60,
796,
47764,
13,
17946,
58,
45299,
6720,
62,
4906,
4083,
459,
2981,
7,
22468,
8,
198,
2,
10545,
232,
232,
634,
62,
2389,
3975,
278,
10263,
230,
108,
40367,
233,
36181,
245,
162,
229,
224,
21410,
28938,
235,
27764,
245,
198,
7568,
17816,
13924,
62,
2389,
20520,
796,
47764,
17816,
13924,
62,
2389,
6,
4083,
39014,
7,
50033,
2124,
25,
2493,
62,
2389,
62,
8899,
58,
87,
12962,
198,
2,
3601,
7,
7568,
17816,
13924,
62,
2389,
6,
4083,
1462,
62,
8841,
28955,
198,
2,
16268,
229,
235,
23877,
108,
22522,
231,
162,
236,
240,
162,
105,
226,
19526,
235,
28938,
235,
163,
101,
109,
198,
7568,
796,
47764,
58,
17816,
9771,
9239,
62,
20916,
41707,
13924,
62,
2389,
41707,
66,
47467,
1634,
41707,
7036,
41707,
10943,
30339,
1137,
6006,
47643,
41707,
7707,
56,
29377,
10206,
33,
6239,
42,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
6,
7707,
56,
347,
6239,
42,
41707,
43,
10503,
17368,
7112,
4877,
41707,
43,
6968,
17368,
7112,
4877,
41707,
47924,
26808,
1137,
6006,
47643,
41707,
13252,
14,
13252,
41707,
54,
2767,
347,
6239,
42,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
6,
40331,
15490,
2751,
569,
7597,
37142,
6,
11907,
198,
198,
4798,
7,
7568,
8,
198,
2,
10545,
103,
242,
162,
94,
230,
19526,
235,
163,
121,
106,
198,
361,
3859,
13,
10057,
3419,
6624,
366,
11209,
1298,
198,
220,
220,
220,
1303,
10714,
13328,
104,
107,
198,
220,
220,
220,
3108,
796,
705,
12708,
14,
7890,
14,
45169,
14,
36801,
395,
295,
13,
40664,
6,
198,
17772,
25,
198,
220,
220,
220,
1303,
30865,
13328,
104,
107,
198,
220,
220,
220,
3108,
796,
12813,
11195,
14,
66,
776,
323,
6042,
3023,
14,
27004,
4862,
14,
13323,
505,
1157,
14,
12708,
14,
7890,
14,
45169,
14,
36801,
395,
295,
13,
40664,
1,
198,
198,
2,
10263,
253,
115,
26193,
234,
28938,
230,
19526,
113,
162,
103,
242,
162,
94,
230,
198,
36801,
395,
295,
7,
7568,
11,
7890,
62,
3672,
796,
3108,
8,
198
] | 1.848523 | 1,591 |
#!/usr/bin/env python
import unittest
import sys
import os.path
remotedir = os.path.dirname(os.path.dirname(os.path.dirname((__file__))))
sys.path.insert(0, remotedir)
from robotremoteserver import RobotRemoteServer
if __name__ == '__main__':
unittest.main()
|
[
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
198,
11748,
555,
715,
395,
198,
11748,
25064,
198,
11748,
28686,
13,
6978,
198,
198,
2787,
5191,
343,
796,
28686,
13,
6978,
13,
15908,
3672,
7,
418,
13,
6978,
13,
15908,
3672,
7,
418,
13,
6978,
13,
15908,
3672,
19510,
834,
7753,
834,
35514,
198,
17597,
13,
6978,
13,
28463,
7,
15,
11,
816,
5191,
343,
8,
198,
198,
6738,
9379,
2787,
6421,
18497,
1330,
16071,
36510,
10697,
628,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
628,
220,
220,
220,
220,
220,
220,
220,
220,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
555,
715,
395,
13,
12417,
3419,
198
] | 2.34127 | 126 |
import json
import logging
import xbmc
logger = logging.getLogger(__name__)
_JSONRPC_TEMPLATE = """{{"jsonrpc":"2.0","id":0,"method":"{method}","params":{params}}}"""
PLAYER_MUSIC = 0
PLAYER_VIDEO = 1
PLAYER_PICTURE = 2
LIST_FIELD_ART = "art"
LIST_FIELD_UNIQUEID = "uniqueid"
|
[
11748,
33918,
198,
11748,
18931,
198,
198,
11748,
2124,
20475,
66,
198,
198,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
628,
198,
198,
62,
40386,
49,
5662,
62,
51,
3620,
6489,
6158,
796,
37227,
90,
4895,
17752,
81,
14751,
2404,
17,
13,
15,
2430,
312,
1298,
15,
553,
24396,
2404,
90,
24396,
92,
2430,
37266,
1298,
90,
37266,
42535,
37811,
628,
628,
198,
31519,
1137,
62,
44,
2937,
2149,
796,
657,
198,
31519,
1137,
62,
42937,
796,
352,
198,
31519,
1137,
62,
47,
18379,
11335,
796,
362,
198,
198,
45849,
62,
44603,
62,
7227,
796,
366,
433,
1,
198,
45849,
62,
44603,
62,
4944,
33866,
8924,
2389,
796,
366,
34642,
312,
1,
198
] | 2.403361 | 119 |
#!/usr/bin/python
# (c) 2021, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
module: na_ontap_fpolicy_scope
short_description: NetApp ONTAP - Create, delete or modify an FPolicy policy scope configuration.
extends_documentation_fragment:
- netapp.ontap.netapp.na_ontap
version_added: '21.4.0'
author: NetApp Ansible Team (@carchi8py) <[email protected]>
description:
- Create, delete or modify an FPolicy policy scope.
options:
state:
description:
- Whether the FPolicy policy scope is present or not
choices: ['present', 'absent']
default: present
type: str
vserver:
description:
- the name of the vserver to create the scope on
required: true
type: str
name:
description:
- Name of the policy. The FPolicy policy must exist for the scope to be created.
required: true
type: str
check_extensions_on_directories:
description:
- Indicates whether directory names are also subjected to extensions check, similar to file names.
- By default, the value is true if policy is configured with Native engine, false otherwise.
type: bool
export_policies_to_exclude:
description:
- Export Policies to exclude for file access monitoring. By default no export policy is selected.
type: list
elements: str
export_policies_to_include:
description:
- Export policies to include for file access monitoring. By default no export policy is selected.
type: list
elements: str
file_extensions_to_exclude:
description:
- File extensions excluded for screening. By default no file extension is selected.
type: list
elements: str
file_extensions_to_include:
description:
- File extensions included for screening. By default no file extension is selected.
type: list
elements: str
is_monitoring_of_objects_with_no_extension_enabled:
description:
- Indicates whether monitoring of objects with no extension is required. By default, the value is false.
type: bool
shares_to_exclude:
description:
- Shares to exclude for file access monitoring. By default no share is selected.
type: list
elements: str
shares_to_include:
description:
- Shares to include for file access monitoring. By default no share is selected.
type: list
elements: str
volumes_to_exclude:
description:
- Volumes that are inactive for the file policy. The list can include items which are regular expressions, such as 'vol*' or 'user?'.
- Note that if a policy has both an exclude list and an include list, the include list is ignored by the filer when processing user requests.
- By default no volume is selected.
type: list
elements: str
volumes_to_include:
description:
- Volumes that are active for the file policy. The list can include items which are regular expressions, such as 'vol*' or 'user?'.
- By default no volume is selected.
type: list
elements: str
'''
EXAMPLES = """
- name: Create FPolicy scope
na_ontap_fpolicy_scope:
state: present
vserver: GBSMNAS80LD
name: policy1
export_policies_to_include: export1
shares_to_include: share1
username: "{{ username }}"
password: "{{ password }}"
hostname: "{{ hostname }}"
use_rest: "{{ use_rest }}"
- name: Modify FPolicy scope
na_ontap_fpolicy_scope:
state: present
vserver: GBSMNAS80LD
name: policy1
export_policies_to_include: export1,export2
shares_to_include: share1,share2
username: "{{ username }}"
password: "{{ password }}"
hostname: "{{ hostname }}"
use_rest: "{{ use_rest }}"
- name: Delete FPolicy scope
na_ontap_fpolicy_scope:
state: absent
vserver: GBSMNAS80LD
name: policy1
username: "{{ username }}"
password: "{{ password }}"
hostname: "{{ hostname }}"
use_rest: "{{ use_rest }}"
"""
RETURN = """
"""
import traceback
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils._text import to_native
import ansible_collections.netapp.ontap.plugins.module_utils.netapp as netapp_utils
from ansible_collections.netapp.ontap.plugins.module_utils.netapp_module import NetAppModule
from ansible_collections.netapp.ontap.plugins.module_utils.netapp import OntapRestAPI
import ansible_collections.netapp.ontap.plugins.module_utils.rest_response_helpers as rrh
def main():
"""
Execute action from playbook
"""
command = NetAppOntapFpolicyScope()
command.apply()
if __name__ == '__main__':
main()
|
[
2,
48443,
14629,
14,
8800,
14,
29412,
198,
198,
2,
357,
66,
8,
33448,
11,
3433,
4677,
11,
3457,
198,
2,
22961,
3611,
5094,
13789,
410,
18,
13,
15,
10,
357,
3826,
27975,
45761,
393,
3740,
1378,
2503,
13,
41791,
13,
2398,
14,
677,
4541,
14,
70,
489,
12,
18,
13,
15,
13,
14116,
8,
198,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
11,
7297,
11,
3601,
62,
8818,
198,
834,
4164,
330,
31172,
834,
796,
2099,
198,
198,
38715,
5883,
3525,
6234,
796,
705,
7061,
198,
21412,
25,
12385,
62,
756,
499,
62,
69,
30586,
62,
29982,
198,
19509,
62,
11213,
25,
3433,
4677,
6177,
51,
2969,
532,
13610,
11,
12233,
393,
13096,
281,
31459,
21424,
2450,
8354,
8398,
13,
198,
2302,
2412,
62,
22897,
341,
62,
8310,
363,
434,
25,
198,
220,
220,
220,
532,
2010,
1324,
13,
756,
499,
13,
3262,
1324,
13,
2616,
62,
756,
499,
198,
9641,
62,
29373,
25,
705,
2481,
13,
19,
13,
15,
6,
198,
9800,
25,
3433,
4677,
28038,
856,
4816,
4275,
66,
998,
72,
23,
9078,
8,
1279,
782,
12,
504,
856,
15097,
31,
3262,
1324,
13,
785,
29,
198,
11213,
25,
198,
12,
13610,
11,
12233,
393,
13096,
281,
31459,
21424,
2450,
8354,
13,
198,
25811,
25,
198,
220,
1181,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
10127,
262,
31459,
21424,
2450,
8354,
318,
1944,
393,
407,
198,
220,
220,
220,
7747,
25,
37250,
25579,
3256,
705,
8937,
298,
20520,
198,
220,
220,
220,
4277,
25,
1944,
198,
220,
220,
220,
2099,
25,
965,
628,
220,
410,
15388,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
262,
1438,
286,
262,
410,
15388,
284,
2251,
262,
8354,
319,
198,
220,
220,
220,
2672,
25,
2081,
198,
220,
220,
220,
2099,
25,
965,
628,
220,
1438,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
6530,
286,
262,
2450,
13,
220,
383,
31459,
21424,
2450,
1276,
2152,
329,
262,
8354,
284,
307,
2727,
13,
198,
220,
220,
220,
2672,
25,
2081,
198,
220,
220,
220,
2099,
25,
965,
628,
220,
2198,
62,
2302,
5736,
62,
261,
62,
12942,
1749,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
1423,
16856,
1771,
8619,
3891,
389,
635,
16164,
284,
18366,
2198,
11,
2092,
284,
2393,
3891,
13,
198,
220,
220,
220,
532,
2750,
4277,
11,
262,
1988,
318,
2081,
611,
2450,
318,
17839,
351,
12547,
3113,
11,
3991,
4306,
13,
198,
220,
220,
220,
2099,
25,
20512,
628,
220,
10784,
62,
79,
4160,
444,
62,
1462,
62,
1069,
9152,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
220,
36472,
42283,
284,
19607,
329,
2393,
1895,
9904,
13,
2750,
4277,
645,
10784,
2450,
318,
6163,
13,
198,
220,
220,
220,
2099,
25,
1351,
198,
220,
220,
220,
4847,
25,
965,
628,
220,
10784,
62,
79,
4160,
444,
62,
1462,
62,
17256,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
36472,
4788,
284,
2291,
329,
2393,
1895,
9904,
13,
2750,
4277,
645,
10784,
2450,
318,
6163,
13,
198,
220,
220,
220,
2099,
25,
1351,
198,
220,
220,
220,
4847,
25,
965,
628,
220,
2393,
62,
2302,
5736,
62,
1462,
62,
1069,
9152,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
9220,
18366,
15009,
329,
14135,
13,
2750,
4277,
645,
2393,
7552,
318,
6163,
13,
198,
220,
220,
220,
2099,
25,
1351,
198,
220,
220,
220,
4847,
25,
965,
628,
220,
2393,
62,
2302,
5736,
62,
1462,
62,
17256,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
9220,
18366,
3017,
329,
14135,
13,
2750,
4277,
645,
2393,
7552,
318,
6163,
13,
198,
220,
220,
220,
2099,
25,
1351,
198,
220,
220,
220,
4847,
25,
965,
628,
220,
318,
62,
41143,
278,
62,
1659,
62,
48205,
62,
4480,
62,
3919,
62,
2302,
3004,
62,
25616,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
1423,
16856,
1771,
9904,
286,
5563,
351,
645,
7552,
318,
2672,
13,
2750,
4277,
11,
262,
1988,
318,
3991,
13,
198,
220,
220,
220,
2099,
25,
20512,
628,
220,
7303,
62,
1462,
62,
1069,
9152,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
23997,
284,
19607,
329,
2393,
1895,
9904,
13,
2750,
4277,
645,
2648,
318,
6163,
13,
198,
220,
220,
220,
2099,
25,
1351,
198,
220,
220,
220,
4847,
25,
965,
628,
220,
7303,
62,
1462,
62,
17256,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
23997,
284,
2291,
329,
2393,
1895,
9904,
13,
2750,
4277,
645,
2648,
318,
6163,
13,
198,
220,
220,
220,
2099,
25,
1351,
198,
220,
220,
220,
4847,
25,
965,
628,
220,
15343,
62,
1462,
62,
1069,
9152,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
4709,
8139,
326,
389,
28621,
329,
262,
2393,
2450,
13,
383,
1351,
460,
2291,
3709,
543,
389,
3218,
14700,
11,
884,
355,
705,
10396,
9,
6,
393,
705,
7220,
30,
4458,
198,
220,
220,
220,
532,
5740,
326,
611,
257,
2450,
468,
1111,
281,
19607,
1351,
290,
281,
2291,
1351,
11,
262,
2291,
1351,
318,
9514,
416,
262,
1226,
263,
618,
7587,
2836,
7007,
13,
198,
220,
220,
220,
532,
2750,
4277,
645,
6115,
318,
6163,
13,
198,
220,
220,
220,
2099,
25,
1351,
198,
220,
220,
220,
4847,
25,
965,
628,
220,
15343,
62,
1462,
62,
17256,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
532,
4709,
8139,
326,
389,
4075,
329,
262,
2393,
2450,
13,
383,
1351,
460,
2291,
3709,
543,
389,
3218,
14700,
11,
884,
355,
705,
10396,
9,
6,
393,
705,
7220,
30,
4458,
198,
220,
220,
220,
532,
2750,
4277,
645,
6115,
318,
6163,
13,
198,
220,
220,
220,
2099,
25,
1351,
198,
220,
220,
220,
4847,
25,
965,
198,
198,
7061,
6,
198,
198,
6369,
2390,
6489,
1546,
796,
37227,
198,
220,
532,
1438,
25,
13610,
31459,
21424,
8354,
198,
220,
220,
220,
12385,
62,
756,
499,
62,
69,
30586,
62,
29982,
25,
198,
220,
220,
220,
220,
220,
1181,
25,
1944,
198,
220,
220,
220,
220,
220,
410,
15388,
25,
402,
4462,
44,
18293,
1795,
11163,
198,
220,
220,
220,
220,
220,
1438,
25,
2450,
16,
198,
220,
220,
220,
220,
220,
10784,
62,
79,
4160,
444,
62,
1462,
62,
17256,
25,
10784,
16,
198,
220,
220,
220,
220,
220,
7303,
62,
1462,
62,
17256,
25,
2648,
16,
198,
220,
220,
220,
220,
220,
20579,
25,
366,
27007,
20579,
34949,
1,
198,
220,
220,
220,
220,
220,
9206,
25,
366,
27007,
9206,
34949,
1,
198,
220,
220,
220,
220,
220,
2583,
3672,
25,
366,
27007,
2583,
3672,
34949,
1,
198,
220,
220,
220,
220,
220,
779,
62,
2118,
25,
366,
27007,
779,
62,
2118,
34949,
1,
628,
220,
532,
1438,
25,
3401,
1958,
31459,
21424,
8354,
198,
220,
220,
220,
12385,
62,
756,
499,
62,
69,
30586,
62,
29982,
25,
198,
220,
220,
220,
220,
220,
1181,
25,
1944,
198,
220,
220,
220,
220,
220,
410,
15388,
25,
402,
4462,
44,
18293,
1795,
11163,
198,
220,
220,
220,
220,
220,
1438,
25,
2450,
16,
198,
220,
220,
220,
220,
220,
10784,
62,
79,
4160,
444,
62,
1462,
62,
17256,
25,
10784,
16,
11,
39344,
17,
198,
220,
220,
220,
220,
220,
7303,
62,
1462,
62,
17256,
25,
2648,
16,
11,
20077,
17,
198,
220,
220,
220,
220,
220,
20579,
25,
366,
27007,
20579,
34949,
1,
198,
220,
220,
220,
220,
220,
9206,
25,
366,
27007,
9206,
34949,
1,
198,
220,
220,
220,
220,
220,
2583,
3672,
25,
366,
27007,
2583,
3672,
34949,
1,
198,
220,
220,
220,
220,
220,
779,
62,
2118,
25,
366,
27007,
779,
62,
2118,
34949,
1,
628,
220,
532,
1438,
25,
23520,
31459,
21424,
8354,
198,
220,
220,
220,
12385,
62,
756,
499,
62,
69,
30586,
62,
29982,
25,
198,
220,
220,
220,
220,
220,
1181,
25,
13717,
198,
220,
220,
220,
220,
220,
410,
15388,
25,
402,
4462,
44,
18293,
1795,
11163,
198,
220,
220,
220,
220,
220,
1438,
25,
2450,
16,
198,
220,
220,
220,
220,
220,
20579,
25,
366,
27007,
20579,
34949,
1,
198,
220,
220,
220,
220,
220,
9206,
25,
366,
27007,
9206,
34949,
1,
198,
220,
220,
220,
220,
220,
2583,
3672,
25,
366,
27007,
2583,
3672,
34949,
1,
198,
220,
220,
220,
220,
220,
779,
62,
2118,
25,
366,
27007,
779,
62,
2118,
34949,
1,
198,
198,
37811,
198,
198,
26087,
27064,
796,
37227,
198,
198,
37811,
198,
198,
11748,
12854,
1891,
198,
198,
6738,
9093,
856,
13,
21412,
62,
26791,
13,
35487,
1330,
28038,
856,
26796,
198,
6738,
9093,
856,
13,
21412,
62,
26791,
13557,
5239,
1330,
284,
62,
30191,
198,
11748,
9093,
856,
62,
4033,
26448,
13,
3262,
1324,
13,
756,
499,
13,
37390,
13,
21412,
62,
26791,
13,
3262,
1324,
355,
2010,
1324,
62,
26791,
198,
6738,
9093,
856,
62,
4033,
26448,
13,
3262,
1324,
13,
756,
499,
13,
37390,
13,
21412,
62,
26791,
13,
3262,
1324,
62,
21412,
1330,
3433,
4677,
26796,
198,
6738,
9093,
856,
62,
4033,
26448,
13,
3262,
1324,
13,
756,
499,
13,
37390,
13,
21412,
62,
26791,
13,
3262,
1324,
1330,
9463,
499,
19452,
17614,
198,
11748,
9093,
856,
62,
4033,
26448,
13,
3262,
1324,
13,
756,
499,
13,
37390,
13,
21412,
62,
26791,
13,
2118,
62,
26209,
62,
16794,
364,
355,
374,
17179,
628,
198,
198,
4299,
1388,
33529,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
8393,
1133,
2223,
422,
41794,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3141,
796,
3433,
4677,
45984,
499,
37,
30586,
43642,
3419,
198,
220,
220,
220,
3141,
13,
39014,
3419,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198
] | 2.937231 | 1,625 |
"""Console script for codebots.
You can get detaled information about each of the bots with the :code:`--help` option.
.. code-block:: bash
codebots --help
emailbot --help
telebot --help
slackbot --help
sshbot --help
deploybot --help
latexbot --help
drivebot --help
"""
import sys
import os
from pathlib import Path
import click
import codebots
from codebots.bots import SlackBot
from codebots.bots import TeleBot
from codebots.bots import EmailBot
from codebots.bots import sshBot
from codebots.bots.deploybot import DeployBot
from codebots.bots.latexbot import LatexBot
from codebots.bots.drivebot import DriveBot
from codebots.utilities.ssh import gen_keypair, add_pubkey_to_server
from codebots.utilities.tokens import add_token, get_telegram_chatid, set_token_dir, reset_token_dir
from codebots.utilities.deploy import configure_local, configure_server
# -------------------------------- MAIN ----------------------------------#
@click.group()
def main():
"""base bot to setup the common settings for all the other bots.
Run `codebots ono-o-one` for more info.
"""
pass
@main.command()
def one_o_one():
"""Basic explanation of command line usage."""
click.echo("\nHey there! this is codebots, a family of bots here to help you!\n\n"
"To use codebots directly from the command line, type the name of your bot followed by the action.\n"
"For example, this command sends a message through slack:\n\n"
" slackbot --channel=random \"Hello from your slacbot!\"\n")
@main.command()
def get_tokens_path():
"""Get the path to the tokens folder.\n
Return\n
------\n
str\n
path to the folder containing the tokens or passwords for the codebots.\n
"""
out = codebots.TOKENS
click.echo(out)
@main.command()
@click.argument('path')
def set_tokens_path(path):
"""Set the path to the tokens folder.\n
Parameters\n
----------\n
path : str\n
path to the folder containing the tokens or passwords for the codebots.\n
"""
out = set_token_dir(path)
click.echo(out)
@main.command()
def reset_tokens_path():
"""Reset the tokens path to the default (~/.tokens)."""
out = reset_token_dir()
click.echo(out)
# -------------------------------- SLACK ----------------------------------#
@click.group()
def slackbot():
"""bot to interact with slack"""
pass
@slackbot.command()
@click.argument('token')
def set_token(token):
"""create the token file with the credentials.\n
Parameters\n
----------\n
token : str\n
token of the telegram bot.\n
chatid : str\n
chatID of the chat with the bot.\n
"""
out = add_token("slack", bot_token=token)
click.echo(out)
@slackbot.command()
@click.option('--channel', default='general', help='the channel you want to send the message to')
@click.argument('message', default='Ciao Mamma!')
def send(message, channel):
"""Send a message using slack.\n
message : txt\n
the message you want to send to yo.ur slack channel, by default `Ciao Mamma!`
"""
bot = SlackBot()
bot.send_message(channel, message)
# ----------------------------- TELEGRAM ----------------------------------#
@click.group()
def telebot():
"""bot to interact with telegram"""
pass
@telebot.command()
@click.argument('message', default='Ciao Mamma!')
def send(message):
"""Send a message using slack.\n
message : txt\n
the message you want to send to yo.ur slack channel, by default `Ciao Mamma!`
"""
bot = TeleBot()
bot.send_message(message)
@telebot.command()
@click.argument('token')
def set_token(token):
"""create the token file with the credentials.\n
Parameters\n
----------\n
token : str\n
token of the telegram bot.\n
"""
try:
chatid = get_telegram_chatid(token)
except Exception:
raise ConnectionError("Something went wrong! Did you start a chat with your bot on telegram?")
out = add_token("telegram", bot_token=token, bot_chatID=str(chatid))
click.echo(out)
# -------------------------------- EMAIL ----------------------------------#
@click.group()
def emailbot():
"""bot to send emails from the command line"""
pass
@emailbot.command()
@click.argument('receiver', default='[email protected]')
@click.argument('subject', default='Ciao')
@click.argument('body', default='Ciao Mamma!')
# @click.option('--attach', type='path', help='path to any file you want to attach')
def send(receiver, subject, body):
"""Send an email to an email address.\n
Parameters\n
----------\n
receiver : str\n
email address of the receiver\n
subject : str\n
subject of the email\n
body : str\n
body text of the email\n
attachment : str, optional\n
path to the file to attach, by default None\
"""
# sender = Sender.form_file(".tokens/email")
receiver = "[email protected]"
subject = "message from bot"
body = "This message was sent by a bot"
# attach = "document.pdf"
bot = EmailBot()
bot.send_email(receiver, subject, body)
@emailbot.command()
@click.argument('username')
@click.argument('password')
def set_token(username, password):
"""create the token file with the credentials.\n
Parameters\n
----------\n
token : str\n
token of the telegram bot.\n
chatid : str\n
chatID of the chat with the bot.\n
"""
out = add_token("email", username=username, password=password)
click.echo(out)
# --------------------------------- SSH -----------------------------------#
@click.group()
def sshbot():
"""bot to remotely operate on a (linux) server"""
pass
@sshbot.command()
@click.argument('hostname')
@click.argument('username')
@click.option('--password', default='', help='password to access the host or to decrypt the private key')
@click.option('--pvtkey', default='', help='path to the private key')
def set_token(hostname, username, password, pvtkey):
"""create the token file with the credentials.\n
NOTE: to be useful either the password or the ssh private key must be passed.
Parameters\n
----------\n
hostname : str\n
ip address of the server.\n
username : str\n
username on the server.\n
"""
out = add_token(alias=f"{username}@{hostname}", hostname=hostname,
username=username, password=password, pvtkey=pvtkey)
click.echo(out)
@sshbot.command()
@click.option('--ssh_folder', default=None, help='path where the key pair will be saved, by default None (the `USER/.ssh` folder will be used)')
@click.option('--password', default=None, help='encrypt the private key with a password')
def genkeys(ssh_folder, password):
"""Create a set of public and private keys and save them in the given folder.
"""
out = gen_keypair(ssh_folder, password)
click.echo(out)
@sshbot.command()
@click.argument('hostname')
@click.argument('username')
@click.argument('password')
@click.option('--ssh_folder', default=None, help='path where the key pair will be saved')
def link_keys(hostname, username, password, ssh_folder):
"""Adds the public key to the server's list.\n
Parameters\n
----------\n
hostname : str\n
ip address of the server.\n
username : str\n
username on the server.\n
password : str\n
password on the server, by default empty.\n
"""
bot = sshBot(config_file=None, hostname=hostname, username=username, password=password, pvtkey="")
if not ssh_folder:
ssh_folder = os.path.join(str(Path.home()), '.ssh')
out = add_pubkey_to_server(bot, ssh_folder)
click.echo(out)
out = add_token(f"{username}@{hostname}", hostname=hostname, username=username,
password="", pvtkey=os.path.join(ssh_folder, 'id_rsa'))
click.echo(out)
# ------------------------------- DEPLOY ----------------------------------#
@click.group()
def deploybot():
"""bot to deploy projects to a server"""
pass
@deploybot.command()
@click.argument('project')
@click.argument('address')
@click.argument('local')
@click.argument('server')
@click.option('--branch', default='main', help='branch to push to.')
@click.option('--sshbot', default=None, help='instance of an `sshBot` with access to the server.')
def configure(project, address, local, server, branch, sshbot):
"""Configure a local repository to sync with a server.\n
Parameters\n
----------\n
project : str\n
name of the project for the setting file.\n
address : str\n
server address (username@host).\n
local : str\n
path to the local clone of the repository.\n
server : str\n
path to the server bare repository. If no repository is present\n
at the given location a bare new one is created.\n
"""
out = add_token(bot=project, server_address=address, local_repo_path=local, server_repo_path=server)
click.echo(out)
bot = DeployBot(project)
out = configure_local(bot.local_repo, bot.server_complete_path)
click.echo(out)
out = configure_server(bot.server_repo_path, branch, sshbot)
click.echo(out)
@deploybot.command()
@click.argument('project')
def configure_local(project):
"""Configure a local repository to sync with a server.\n
Parameters\n
----------\n
project : str\n
name of the project for the setting file.\n
"""
bot = DeployBot(project)
out = configure_local(bot.local_repo, bot.server_complete_path)
click.echo(out)
@deploybot.command()
@click.argument('project')
@click.option('--branch', default='main', help='branch to push to.')
@click.option('--sshbot', default=None, help='instance of an `sshBot` with access to the server.')
def configure_remote(project, branch, sshbot):
"""Configure a local repository to sync with a server.\n
Parameters\n
----------\n
project : str\n
name of the project for the setting file.\n
address : str\n
server address (username@host).\n
local : str\n
path to the local clone of the repository.\n
server : str\n
path to the server bare repository. If no repository is present\n
at the given location a bare new one is created.\n
"""
bot = DeployBot(project)
out = configure_server(bot.server_repo_path, branch, sshbot)
click.echo(out)
# ------------------------------- LATEX ----------------------------------#
@click.group()
def latexbot():
"""bot to help with latex documents"""
pass
@latexbot.command()
@click.option('--git', default=True, help='if True, install git')
@click.option('--pandoc', default=True, help='if True, install pandoc')
@click.option('--miktex', default=False, help='if True, install miktex')
def configure(git, pandoc, miktex):
"""Download dependencies and set everything up.\n
"""
bot = LatexBot()
out = bot.install_dependencies(git, pandoc, miktex)
click.echo(out)
@latexbot.command()
@click.option('--input', default=None, help='path to the folder containing the .tex files')
@click.option('--output', default=None, help='path to the folder where the .docx files will be saved')
def convert_tex_to_docx(input, output):
"""Convert the .tex files in a folder to .docx.\n
Parameters\n
----------\n
input : str\n
path to the folder containing the .tex files.\n
"""
bot = LatexBot()
if not input:
input = os.getcwd()
if not output: # TODO: change!
output = None
out = bot.convert_tex_to_docx(input, output)
click.echo(out)
@latexbot.command()
@click.argument('project')
@click.option('--output', default=None, help='path to the folder where the .docx files will be saved, by default None')
@click.option('--inspect', default=True, help='open the file after the conversion')
@click.option('--upload', default=False, help='if True upload the docx to your Google Drive')
def convert_overleaf_to_docx(project, output, inspect, upload):
"""Convert an overleaf project to a .docx file.\n
Parameters\n
----------\n
project : str\n
name of the project for the setting file.\n
"""
bot = LatexBot()
out = bot.convert_overleaf_to_docx(project, output, inspect, upload)
click.echo(out)
# ------------------------------ DRIVEBOT ----------------------------------#
@click.group()
def drivebot():
"""bot to help with Google Drive"""
pass
@drivebot.command()
@click.option('--type', default='web', help='choose how you want to authenticate')
@click.option('--save', default=True, help='save the credentials as .json file')
def authenticate(type, save):
"""Sign in your Google Drive.\n
"""
bot = DriveBot(type, save)
bot
click.echo('done!')
@drivebot.command()
@click.argument('path_to_file')
@click.argument('name')
def upload_local_file(path_to_file, name):
"""Upload a local file to your Google Drive.\n
"""
bot = DriveBot('web')
bot.upload_local_file(path_to_file, name)
click.echo('done!')
# -------------------------------- DEBUG ----------------------------------#
if __name__ == "__main__":
sys.exit(main())
|
[
37811,
47581,
4226,
329,
2438,
42478,
13,
198,
198,
1639,
460,
651,
1062,
3021,
1321,
546,
1123,
286,
262,
29641,
351,
262,
1058,
8189,
25,
63,
438,
16794,
63,
3038,
13,
198,
198,
492,
2438,
12,
9967,
3712,
27334,
628,
220,
220,
220,
2438,
42478,
220,
220,
220,
1377,
16794,
198,
220,
220,
220,
3053,
13645,
220,
220,
220,
1377,
16794,
198,
220,
220,
220,
5735,
13645,
220,
220,
220,
220,
1377,
16794,
198,
220,
220,
220,
30740,
13645,
220,
220,
220,
1377,
16794,
198,
220,
220,
220,
26678,
13645,
220,
220,
220,
220,
220,
1377,
16794,
198,
220,
220,
220,
6061,
13645,
220,
220,
1377,
16794,
198,
220,
220,
220,
47038,
13645,
220,
220,
220,
1377,
16794,
198,
220,
220,
220,
3708,
13645,
220,
220,
220,
1377,
16794,
628,
198,
37811,
198,
11748,
25064,
198,
11748,
28686,
198,
6738,
3108,
8019,
1330,
10644,
198,
11748,
3904,
198,
11748,
2438,
42478,
198,
6738,
2438,
42478,
13,
42478,
1330,
36256,
20630,
198,
6738,
2438,
42478,
13,
42478,
1330,
14318,
20630,
198,
6738,
2438,
42478,
13,
42478,
1330,
9570,
20630,
198,
6738,
2438,
42478,
13,
42478,
1330,
26678,
20630,
198,
6738,
2438,
42478,
13,
42478,
13,
2934,
1420,
13645,
1330,
34706,
20630,
198,
6738,
2438,
42478,
13,
42478,
13,
17660,
87,
13645,
1330,
18319,
87,
20630,
198,
6738,
2438,
42478,
13,
42478,
13,
19472,
13645,
1330,
9974,
20630,
198,
6738,
2438,
42478,
13,
315,
2410,
13,
45824,
1330,
2429,
62,
2539,
24874,
11,
751,
62,
12984,
2539,
62,
1462,
62,
15388,
198,
6738,
2438,
42478,
13,
315,
2410,
13,
83,
482,
641,
1330,
751,
62,
30001,
11,
651,
62,
660,
30536,
62,
17006,
312,
11,
900,
62,
30001,
62,
15908,
11,
13259,
62,
30001,
62,
15908,
198,
6738,
2438,
42478,
13,
315,
2410,
13,
2934,
1420,
1330,
17425,
62,
12001,
11,
17425,
62,
15388,
628,
198,
2,
20368,
8779,
1268,
20368,
438,
2,
198,
31,
12976,
13,
8094,
3419,
198,
4299,
1388,
33529,
198,
220,
220,
220,
37227,
8692,
10214,
284,
9058,
262,
2219,
6460,
329,
477,
262,
584,
29641,
13,
628,
220,
220,
220,
5660,
4600,
8189,
42478,
319,
78,
12,
78,
12,
505,
63,
329,
517,
7508,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1208,
628,
198,
31,
12417,
13,
21812,
3419,
198,
4299,
530,
62,
78,
62,
505,
33529,
198,
220,
220,
220,
37227,
26416,
7468,
286,
3141,
1627,
8748,
526,
15931,
628,
220,
220,
220,
3904,
13,
30328,
7203,
59,
77,
10814,
612,
0,
428,
318,
2438,
42478,
11,
257,
1641,
286,
29641,
994,
284,
1037,
345,
0,
59,
77,
59,
77,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
2514,
779,
2438,
42478,
3264,
422,
262,
3141,
1627,
11,
2099,
262,
1438,
286,
534,
10214,
3940,
416,
262,
2223,
13,
59,
77,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1890,
1672,
11,
428,
3141,
12800,
257,
3275,
832,
30740,
7479,
77,
59,
77,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
220,
220,
220,
30740,
13645,
1377,
17620,
28,
25120,
19990,
15496,
422,
534,
1017,
330,
13645,
0,
7879,
59,
77,
4943,
628,
198,
31,
12417,
13,
21812,
3419,
198,
4299,
651,
62,
83,
482,
641,
62,
6978,
33529,
198,
220,
220,
220,
37227,
3855,
262,
3108,
284,
262,
16326,
9483,
13,
59,
77,
628,
220,
220,
220,
8229,
59,
77,
198,
220,
220,
220,
40103,
59,
77,
198,
220,
220,
220,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
284,
262,
9483,
7268,
262,
16326,
393,
21442,
329,
262,
2438,
42478,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
503,
796,
2438,
42478,
13,
10468,
42,
16938,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
31,
12417,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
6978,
11537,
198,
4299,
900,
62,
83,
482,
641,
62,
6978,
7,
6978,
2599,
198,
220,
220,
220,
37227,
7248,
262,
3108,
284,
262,
16326,
9483,
13,
59,
77,
628,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
3108,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
284,
262,
9483,
7268,
262,
16326,
393,
21442,
329,
262,
2438,
42478,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
503,
796,
900,
62,
30001,
62,
15908,
7,
6978,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
31,
12417,
13,
21812,
3419,
198,
4299,
13259,
62,
83,
482,
641,
62,
6978,
33529,
198,
220,
220,
220,
37227,
4965,
316,
262,
16326,
3108,
284,
262,
4277,
31034,
11757,
83,
482,
641,
21387,
15931,
198,
220,
220,
220,
503,
796,
13259,
62,
30001,
62,
15908,
3419,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
198,
198,
2,
20368,
12419,
8120,
20368,
438,
2,
628,
198,
31,
12976,
13,
8094,
3419,
198,
4299,
30740,
13645,
33529,
198,
220,
220,
220,
37227,
13645,
284,
9427,
351,
30740,
37811,
198,
220,
220,
220,
1208,
628,
198,
31,
6649,
441,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
30001,
11537,
198,
4299,
900,
62,
30001,
7,
30001,
2599,
198,
220,
220,
220,
37227,
17953,
262,
11241,
2393,
351,
262,
18031,
13,
59,
77,
628,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
11241,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
11241,
286,
262,
573,
30536,
10214,
13,
59,
77,
198,
220,
220,
220,
8537,
312,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
8537,
2389,
286,
262,
8537,
351,
262,
10214,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
503,
796,
751,
62,
30001,
7203,
6649,
441,
1600,
10214,
62,
30001,
28,
30001,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
31,
6649,
441,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
18076,
10786,
438,
17620,
3256,
4277,
11639,
24622,
3256,
1037,
11639,
1169,
6518,
345,
765,
284,
3758,
262,
3275,
284,
11537,
198,
31,
12976,
13,
49140,
10786,
20500,
3256,
4277,
11639,
34,
13481,
29926,
2611,
0,
11537,
198,
4299,
3758,
7,
20500,
11,
6518,
2599,
198,
220,
220,
220,
37227,
25206,
257,
3275,
1262,
30740,
13,
59,
77,
198,
220,
220,
220,
3275,
1058,
256,
742,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
262,
3275,
345,
765,
284,
3758,
284,
27406,
13,
333,
30740,
6518,
11,
416,
4277,
4600,
34,
13481,
29926,
2611,
0,
63,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10214,
796,
36256,
20630,
3419,
198,
220,
220,
220,
10214,
13,
21280,
62,
20500,
7,
17620,
11,
3275,
8,
198,
198,
2,
34400,
32501,
13368,
2538,
10761,
2390,
20368,
438,
2,
628,
198,
31,
12976,
13,
8094,
3419,
198,
4299,
5735,
13645,
33529,
198,
220,
220,
220,
37227,
13645,
284,
9427,
351,
573,
30536,
37811,
198,
220,
220,
220,
1208,
628,
198,
31,
46813,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
20500,
3256,
4277,
11639,
34,
13481,
29926,
2611,
0,
11537,
198,
4299,
3758,
7,
20500,
2599,
198,
220,
220,
220,
37227,
25206,
257,
3275,
1262,
30740,
13,
59,
77,
198,
220,
220,
220,
3275,
1058,
256,
742,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
262,
3275,
345,
765,
284,
3758,
284,
27406,
13,
333,
30740,
6518,
11,
416,
4277,
4600,
34,
13481,
29926,
2611,
0,
63,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
10214,
796,
14318,
20630,
3419,
198,
220,
220,
220,
10214,
13,
21280,
62,
20500,
7,
20500,
8,
628,
198,
31,
46813,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
30001,
11537,
198,
4299,
900,
62,
30001,
7,
30001,
2599,
198,
220,
220,
220,
37227,
17953,
262,
11241,
2393,
351,
262,
18031,
13,
59,
77,
628,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
11241,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
11241,
286,
262,
573,
30536,
10214,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
8537,
312,
796,
651,
62,
660,
30536,
62,
17006,
312,
7,
30001,
8,
198,
220,
220,
220,
2845,
35528,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
26923,
12331,
7203,
22210,
1816,
2642,
0,
7731,
345,
923,
257,
8537,
351,
534,
10214,
319,
573,
30536,
1701,
8,
198,
220,
220,
220,
503,
796,
751,
62,
30001,
7203,
660,
30536,
1600,
10214,
62,
30001,
28,
30001,
11,
10214,
62,
17006,
2389,
28,
2536,
7,
17006,
312,
4008,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
198,
198,
2,
20368,
412,
5673,
4146,
20368,
438,
2,
628,
198,
31,
12976,
13,
8094,
3419,
198,
4299,
3053,
13645,
33529,
198,
220,
220,
220,
37227,
13645,
284,
3758,
7237,
422,
262,
3141,
1627,
37811,
198,
220,
220,
220,
1208,
628,
198,
31,
12888,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
260,
39729,
3256,
4277,
11639,
76,
321,
2611,
31,
12888,
13,
785,
11537,
198,
31,
12976,
13,
49140,
10786,
32796,
3256,
4277,
11639,
34,
13481,
11537,
198,
31,
12976,
13,
49140,
10786,
2618,
3256,
4277,
11639,
34,
13481,
29926,
2611,
0,
11537,
198,
2,
2488,
12976,
13,
18076,
10786,
438,
47348,
3256,
220,
2099,
11639,
6978,
3256,
1037,
11639,
6978,
284,
597,
2393,
345,
765,
284,
10199,
11537,
198,
4299,
3758,
7,
260,
39729,
11,
2426,
11,
1767,
2599,
198,
220,
220,
220,
37227,
25206,
281,
3053,
284,
281,
3053,
2209,
13,
59,
77,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
9733,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
2209,
286,
262,
9733,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
2426,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2426,
286,
262,
3053,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
1767,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1767,
2420,
286,
262,
3053,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
18231,
1058,
965,
11,
11902,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3108,
284,
262,
2393,
284,
10199,
11,
416,
4277,
6045,
59,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1303,
29788,
796,
311,
2194,
13,
687,
62,
7753,
7,
1911,
83,
482,
641,
14,
12888,
4943,
198,
220,
220,
220,
9733,
796,
366,
8310,
1817,
1073,
13,
81,
2271,
12003,
31,
14816,
13,
785,
1,
198,
220,
220,
220,
2426,
796,
366,
20500,
422,
10214,
1,
198,
220,
220,
220,
1767,
796,
366,
1212,
3275,
373,
1908,
416,
257,
10214,
1,
198,
220,
220,
220,
1303,
10199,
796,
366,
22897,
13,
12315,
1,
628,
220,
220,
220,
10214,
796,
9570,
20630,
3419,
198,
220,
220,
220,
10214,
13,
21280,
62,
12888,
7,
260,
39729,
11,
2426,
11,
1767,
8,
628,
198,
31,
12888,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
29460,
11537,
198,
31,
12976,
13,
49140,
10786,
28712,
11537,
198,
4299,
900,
62,
30001,
7,
29460,
11,
9206,
2599,
198,
220,
220,
220,
37227,
17953,
262,
11241,
2393,
351,
262,
18031,
13,
59,
77,
628,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
11241,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
11241,
286,
262,
573,
30536,
10214,
13,
59,
77,
198,
220,
220,
220,
8537,
312,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
8537,
2389,
286,
262,
8537,
351,
262,
10214,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
503,
796,
751,
62,
30001,
7203,
12888,
1600,
20579,
28,
29460,
11,
9206,
28,
28712,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
2,
20368,
12,
33825,
20368,
6329,
2,
198,
31,
12976,
13,
8094,
3419,
198,
4299,
26678,
13645,
33529,
198,
220,
220,
220,
37227,
13645,
284,
19863,
8076,
319,
257,
357,
23289,
8,
4382,
37811,
198,
220,
220,
220,
1208,
628,
198,
31,
45824,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
4774,
3672,
11537,
198,
31,
12976,
13,
49140,
10786,
29460,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
28712,
3256,
4277,
11639,
3256,
1037,
11639,
28712,
284,
1895,
262,
2583,
393,
284,
42797,
262,
2839,
1994,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
79,
36540,
2539,
3256,
4277,
11639,
3256,
1037,
11639,
6978,
284,
262,
2839,
1994,
11537,
198,
4299,
900,
62,
30001,
7,
4774,
3672,
11,
20579,
11,
9206,
11,
279,
36540,
2539,
2599,
198,
220,
220,
220,
37227,
17953,
262,
11241,
2393,
351,
262,
18031,
13,
59,
77,
198,
220,
220,
220,
24550,
25,
284,
307,
4465,
2035,
262,
9206,
393,
262,
26678,
2839,
1994,
1276,
307,
3804,
13,
628,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
2583,
3672,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
20966,
2209,
286,
262,
4382,
13,
59,
77,
198,
220,
220,
220,
20579,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
20579,
319,
262,
4382,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
503,
796,
751,
62,
30001,
7,
26011,
28,
69,
1,
90,
29460,
92,
31,
90,
4774,
3672,
92,
1600,
2583,
3672,
28,
4774,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20579,
28,
29460,
11,
9206,
28,
28712,
11,
279,
36540,
2539,
28,
79,
36540,
2539,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
31,
45824,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
18076,
10786,
438,
45824,
62,
43551,
3256,
4277,
28,
14202,
11,
1037,
11639,
6978,
810,
262,
1994,
5166,
481,
307,
7448,
11,
416,
4277,
6045,
357,
1169,
4600,
29904,
11757,
45824,
63,
9483,
481,
307,
973,
8,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
28712,
3256,
4277,
28,
14202,
11,
1037,
11639,
12685,
6012,
262,
2839,
1994,
351,
257,
9206,
11537,
198,
4299,
2429,
13083,
7,
45824,
62,
43551,
11,
9206,
2599,
198,
220,
220,
220,
37227,
16447,
257,
900,
286,
1171,
290,
2839,
8251,
290,
3613,
606,
287,
262,
1813,
9483,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
503,
796,
2429,
62,
2539,
24874,
7,
45824,
62,
43551,
11,
9206,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
31,
45824,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
4774,
3672,
11537,
198,
31,
12976,
13,
49140,
10786,
29460,
11537,
198,
31,
12976,
13,
49140,
10786,
28712,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
45824,
62,
43551,
3256,
4277,
28,
14202,
11,
1037,
11639,
6978,
810,
262,
1994,
5166,
481,
307,
7448,
11537,
198,
4299,
2792,
62,
13083,
7,
4774,
3672,
11,
20579,
11,
9206,
11,
26678,
62,
43551,
2599,
198,
220,
220,
220,
37227,
46245,
262,
1171,
1994,
284,
262,
4382,
338,
1351,
13,
59,
77,
628,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
2583,
3672,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
20966,
2209,
286,
262,
4382,
13,
59,
77,
198,
220,
220,
220,
20579,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
20579,
319,
262,
4382,
13,
59,
77,
198,
220,
220,
220,
9206,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
9206,
319,
262,
4382,
11,
416,
4277,
6565,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10214,
796,
26678,
20630,
7,
11250,
62,
7753,
28,
14202,
11,
2583,
3672,
28,
4774,
3672,
11,
20579,
28,
29460,
11,
9206,
28,
28712,
11,
279,
36540,
2539,
2625,
4943,
198,
220,
220,
220,
611,
407,
26678,
62,
43551,
25,
198,
220,
220,
220,
220,
220,
220,
220,
26678,
62,
43551,
796,
28686,
13,
6978,
13,
22179,
7,
2536,
7,
15235,
13,
11195,
3419,
828,
45302,
45824,
11537,
198,
220,
220,
220,
503,
796,
751,
62,
12984,
2539,
62,
1462,
62,
15388,
7,
13645,
11,
26678,
62,
43551,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
198,
220,
220,
220,
503,
796,
751,
62,
30001,
7,
69,
1,
90,
29460,
92,
31,
90,
4774,
3672,
92,
1600,
2583,
3672,
28,
4774,
3672,
11,
20579,
28,
29460,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9206,
2625,
1600,
279,
36540,
2539,
28,
418,
13,
6978,
13,
22179,
7,
45824,
62,
43551,
11,
705,
312,
62,
3808,
64,
6,
4008,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
2,
34400,
24305,
5550,
6489,
21414,
20368,
438,
2,
198,
31,
12976,
13,
8094,
3419,
198,
4299,
6061,
13645,
33529,
198,
220,
220,
220,
37227,
13645,
284,
6061,
4493,
284,
257,
4382,
37811,
198,
220,
220,
220,
1208,
628,
198,
31,
2934,
1420,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
16302,
11537,
198,
31,
12976,
13,
49140,
10786,
21975,
11537,
198,
31,
12976,
13,
49140,
10786,
12001,
11537,
198,
31,
12976,
13,
49140,
10786,
15388,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
1671,
3702,
3256,
4277,
11639,
12417,
3256,
1037,
11639,
1671,
3702,
284,
4574,
284,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
438,
45824,
13645,
3256,
4277,
28,
14202,
11,
1037,
11639,
39098,
286,
281,
4600,
45824,
20630,
63,
351,
1895,
284,
262,
4382,
2637,
8,
198,
4299,
17425,
7,
16302,
11,
2209,
11,
1957,
11,
4382,
11,
8478,
11,
26678,
13645,
2599,
198,
220,
220,
220,
37227,
16934,
495,
257,
1957,
16099,
284,
17510,
351,
257,
4382,
13,
59,
77,
628,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
1628,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
286,
262,
1628,
329,
262,
4634,
2393,
13,
59,
77,
198,
220,
220,
220,
2209,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
4382,
2209,
357,
29460,
31,
4774,
737,
59,
77,
198,
220,
220,
220,
1957,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
284,
262,
1957,
17271,
286,
262,
16099,
13,
59,
77,
198,
220,
220,
220,
4382,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
284,
262,
4382,
6247,
16099,
13,
1002,
645,
16099,
318,
1944,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
379,
262,
1813,
4067,
257,
6247,
649,
530,
318,
2727,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
503,
796,
751,
62,
30001,
7,
13645,
28,
16302,
11,
4382,
62,
21975,
28,
21975,
11,
1957,
62,
260,
7501,
62,
6978,
28,
12001,
11,
4382,
62,
260,
7501,
62,
6978,
28,
15388,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
198,
220,
220,
220,
10214,
796,
34706,
20630,
7,
16302,
8,
198,
220,
220,
220,
503,
796,
17425,
62,
12001,
7,
13645,
13,
12001,
62,
260,
7501,
11,
10214,
13,
15388,
62,
20751,
62,
6978,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
198,
220,
220,
220,
503,
796,
17425,
62,
15388,
7,
13645,
13,
15388,
62,
260,
7501,
62,
6978,
11,
8478,
11,
26678,
13645,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
31,
2934,
1420,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
16302,
11537,
198,
4299,
17425,
62,
12001,
7,
16302,
2599,
198,
220,
220,
220,
37227,
16934,
495,
257,
1957,
16099,
284,
17510,
351,
257,
4382,
13,
59,
77,
628,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
1628,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
286,
262,
1628,
329,
262,
4634,
2393,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10214,
796,
34706,
20630,
7,
16302,
8,
198,
220,
220,
220,
503,
796,
17425,
62,
12001,
7,
13645,
13,
12001,
62,
260,
7501,
11,
10214,
13,
15388,
62,
20751,
62,
6978,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
31,
2934,
1420,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
16302,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
1671,
3702,
3256,
4277,
11639,
12417,
3256,
1037,
11639,
1671,
3702,
284,
4574,
284,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
438,
45824,
13645,
3256,
4277,
28,
14202,
11,
1037,
11639,
39098,
286,
281,
4600,
45824,
20630,
63,
351,
1895,
284,
262,
4382,
2637,
8,
198,
4299,
17425,
62,
47960,
7,
16302,
11,
8478,
11,
26678,
13645,
2599,
198,
220,
220,
220,
37227,
16934,
495,
257,
1957,
16099,
284,
17510,
351,
257,
4382,
13,
59,
77,
628,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
1628,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
286,
262,
1628,
329,
262,
4634,
2393,
13,
59,
77,
198,
220,
220,
220,
2209,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
4382,
2209,
357,
29460,
31,
4774,
737,
59,
77,
198,
220,
220,
220,
1957,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
284,
262,
1957,
17271,
286,
262,
16099,
13,
59,
77,
198,
220,
220,
220,
4382,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
284,
262,
4382,
6247,
16099,
13,
1002,
645,
16099,
318,
1944,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
379,
262,
1813,
4067,
257,
6247,
649,
530,
318,
2727,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10214,
796,
34706,
20630,
7,
16302,
8,
198,
220,
220,
220,
503,
796,
17425,
62,
15388,
7,
13645,
13,
15388,
62,
260,
7501,
62,
6978,
11,
8478,
11,
26678,
13645,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
198,
198,
2,
34400,
24305,
406,
6158,
55,
20368,
438,
2,
628,
198,
31,
12976,
13,
8094,
3419,
198,
4299,
47038,
13645,
33529,
198,
220,
220,
220,
37227,
13645,
284,
1037,
351,
47038,
4963,
37811,
198,
220,
220,
220,
1208,
628,
198,
31,
17660,
87,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
18076,
10786,
438,
18300,
3256,
4277,
28,
17821,
11,
1037,
11639,
361,
6407,
11,
2721,
17606,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
79,
392,
420,
3256,
4277,
28,
17821,
11,
1037,
11639,
361,
6407,
11,
2721,
19798,
420,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
76,
1134,
16886,
3256,
4277,
28,
25101,
11,
1037,
11639,
361,
6407,
11,
2721,
285,
1134,
16886,
11537,
198,
4299,
17425,
7,
18300,
11,
19798,
420,
11,
285,
1134,
16886,
2599,
198,
220,
220,
220,
37227,
10002,
20086,
290,
900,
2279,
510,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10214,
796,
18319,
87,
20630,
3419,
198,
220,
220,
220,
503,
796,
10214,
13,
17350,
62,
45841,
3976,
7,
18300,
11,
19798,
420,
11,
285,
1134,
16886,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
31,
17660,
87,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
18076,
10786,
438,
15414,
3256,
4277,
28,
14202,
11,
1037,
11639,
6978,
284,
262,
9483,
7268,
262,
764,
16886,
3696,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
22915,
3256,
4277,
28,
14202,
11,
1037,
11639,
6978,
284,
262,
9483,
810,
262,
764,
15390,
87,
3696,
481,
307,
7448,
11537,
198,
4299,
10385,
62,
16886,
62,
1462,
62,
15390,
87,
7,
15414,
11,
5072,
2599,
198,
220,
220,
220,
37227,
3103,
1851,
262,
764,
16886,
3696,
287,
257,
9483,
284,
764,
15390,
87,
13,
59,
77,
628,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
5128,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
284,
262,
9483,
7268,
262,
764,
16886,
3696,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10214,
796,
18319,
87,
20630,
3419,
198,
220,
220,
220,
611,
407,
5128,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5128,
796,
28686,
13,
1136,
66,
16993,
3419,
198,
220,
220,
220,
611,
407,
5072,
25,
220,
1303,
16926,
46,
25,
1487,
0,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
796,
6045,
198,
220,
220,
220,
503,
796,
10214,
13,
1102,
1851,
62,
16886,
62,
1462,
62,
15390,
87,
7,
15414,
11,
5072,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
31,
17660,
87,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
16302,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
22915,
3256,
4277,
28,
14202,
11,
1037,
11639,
6978,
284,
262,
9483,
810,
262,
764,
15390,
87,
3696,
481,
307,
7448,
11,
416,
4277,
6045,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
1040,
806,
3256,
4277,
28,
17821,
11,
1037,
11639,
9654,
262,
2393,
706,
262,
11315,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
25850,
3256,
4277,
28,
25101,
11,
1037,
11639,
361,
6407,
9516,
262,
2205,
87,
284,
534,
3012,
9974,
11537,
198,
4299,
10385,
62,
2502,
33201,
62,
1462,
62,
15390,
87,
7,
16302,
11,
5072,
11,
10104,
11,
9516,
2599,
198,
220,
220,
220,
37227,
3103,
1851,
281,
625,
33201,
1628,
284,
257,
764,
15390,
87,
2393,
13,
59,
77,
628,
220,
220,
220,
40117,
59,
77,
198,
220,
220,
220,
24200,
438,
59,
77,
198,
220,
220,
220,
1628,
1058,
965,
59,
77,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
286,
262,
1628,
329,
262,
4634,
2393,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10214,
796,
18319,
87,
20630,
3419,
198,
220,
220,
220,
503,
796,
10214,
13,
1102,
1851,
62,
2502,
33201,
62,
1462,
62,
15390,
87,
7,
16302,
11,
5072,
11,
10104,
11,
9516,
8,
198,
220,
220,
220,
3904,
13,
30328,
7,
448,
8,
628,
198,
2,
34400,
26171,
10560,
9306,
33,
2394,
20368,
438,
2,
198,
198,
31,
12976,
13,
8094,
3419,
198,
4299,
3708,
13645,
33529,
198,
220,
220,
220,
37227,
13645,
284,
1037,
351,
3012,
9974,
37811,
198,
220,
220,
220,
1208,
628,
198,
31,
19472,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
18076,
10786,
438,
4906,
3256,
4277,
11639,
12384,
3256,
1037,
11639,
6679,
577,
703,
345,
765,
284,
8323,
5344,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
21928,
3256,
4277,
28,
17821,
11,
1037,
11639,
21928,
262,
18031,
355,
764,
17752,
2393,
11537,
198,
4299,
8323,
5344,
7,
4906,
11,
3613,
2599,
198,
220,
220,
220,
37227,
11712,
287,
534,
3012,
9974,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10214,
796,
9974,
20630,
7,
4906,
11,
3613,
8,
198,
220,
220,
220,
10214,
198,
220,
220,
220,
3904,
13,
30328,
10786,
28060,
0,
11537,
628,
198,
31,
19472,
13645,
13,
21812,
3419,
198,
31,
12976,
13,
49140,
10786,
6978,
62,
1462,
62,
7753,
11537,
198,
31,
12976,
13,
49140,
10786,
3672,
11537,
198,
4299,
9516,
62,
12001,
62,
7753,
7,
6978,
62,
1462,
62,
7753,
11,
1438,
2599,
198,
220,
220,
220,
37227,
41592,
257,
1957,
2393,
284,
534,
3012,
9974,
13,
59,
77,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10214,
796,
9974,
20630,
10786,
12384,
11537,
198,
220,
220,
220,
10214,
13,
25850,
62,
12001,
62,
7753,
7,
6978,
62,
1462,
62,
7753,
11,
1438,
8,
198,
220,
220,
220,
3904,
13,
30328,
10786,
28060,
0,
11537,
628,
198,
2,
20368,
16959,
20368,
438,
2,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
25064,
13,
37023,
7,
12417,
28955,
198
] | 2.829941 | 4,716 |
# Copyright (C) 2013 Sony Mobile Communications AB.
# All rights, including trade secret rights, reserved.
from ave.broker.session import RemoteSession
|
[
2,
15069,
357,
34,
8,
2211,
10184,
12173,
14620,
9564,
13,
198,
2,
1439,
2489,
11,
1390,
3292,
3200,
2489,
11,
10395,
13,
198,
198,
6738,
257,
303,
13,
7957,
6122,
13,
29891,
1330,
21520,
36044,
198
] | 4.135135 | 37 |
# Add zip code
import pymongo
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["mydatabase"]
mycol = mydb["restaurant"]
myquery = {"borough":{"$regex":"Bronx"}}
for x in mycol.find(myquery):
print(x)
|
[
2,
3060,
19974,
2438,
201,
198,
11748,
279,
4948,
25162,
201,
198,
1820,
16366,
796,
279,
4948,
25162,
13,
44,
25162,
11792,
7203,
31059,
375,
65,
1378,
36750,
25,
1983,
29326,
14,
4943,
201,
198,
1820,
9945,
796,
616,
16366,
14692,
1820,
48806,
8973,
201,
198,
1820,
4033,
796,
616,
9945,
14692,
2118,
2899,
415,
8973,
201,
198,
201,
198,
1820,
22766,
796,
19779,
17913,
8351,
3,
260,
25636,
2404,
18760,
87,
1,
11709,
201,
198,
201,
198,
1640,
2124,
287,
616,
4033,
13,
19796,
7,
1820,
22766,
2599,
201,
198,
220,
220,
220,
3601,
7,
87,
8,
201,
198
] | 2.44 | 100 |
#!/usr/bin/env python3 -B
import paho.mqtt.publish as mqtt # pip install --upgrade paho-mqtt
import json
from collections import namedtuple
import time
import random
import base64
import os
Loc = namedtuple('Loc', 'imei lat lon alt vel cog plate tid')
positions = [
Loc("516081298750081", 59.373399, 17.946690, 101, 15, 280, "25-33-XQ", "xq"),
Loc("507957223448860", 32.851537, -80.012624, 90, 119, 110, "72-93-FQ", "fq"),
Loc("523674523738680", 41.474304, 15.397448, 14, 0, 110, "JL-19-74", "JL"),
Loc("867260028922633", 40.878464, -5.562181, 341, 56, 135, "A 0815 BL", "Gn"),
Loc("012549656802107", 48.856826, 2.292713, 43, 72, 205, "20-ER-20", "JJ"),
]
params = {
"hostname" : "localhost",
"port" : 1883,
"qos" : 1,
"retain" : True,
"client_id" : "pub-simu",
}
for p in positions:
topic = "owntracks/zbx/%s" % (p.imei)
# adjust random time: five minutes ago plus a bit
tst = int(time.time()) - 300 + random.randint(0, 120)
tst = int(time.time())
vel = p.vel
# vel = 10
vel = random.randint(40,80)
print(p.imei, vel)
data = {
"_type" : "location",
"tst" : tst,
"lat" : p.lat,
"lon" : p.lon,
"cog" : p.cog,
"alt" : p.alt,
"vel" : vel,
"tid" : p.tid,
"batt" : random.randint(82, 100),
"name" : p.plate, # OSM popup on last/
}
payload = json.dumps(data)
mqtt.single(topic, payload,
auth=None,
tls=None,
**params)
topic = "owntracks/zbx/%s/card" % (p.imei)
card = {
"_type" : "card",
"name" : p.plate,
}
for ext in [ "png", "jpg" ]:
image_file = "faces/{0}.{1}".format(p.imei, ext)
if os.path.exists(image_file):
img = base64.b64encode(open(image_file, "rb").read()).decode("utf-8")
card["face"] = img
break
mqtt.single(topic, json.dumps(card),
auth=None,
tls=None,
**params)
|
[
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
532,
33,
198,
198,
11748,
279,
17108,
13,
76,
80,
926,
13,
12984,
1836,
355,
285,
80,
926,
220,
1303,
7347,
2721,
1377,
929,
9526,
279,
17108,
12,
76,
80,
926,
198,
11748,
33918,
198,
6738,
17268,
1330,
3706,
83,
29291,
198,
11748,
640,
198,
11748,
4738,
198,
11748,
2779,
2414,
198,
11748,
28686,
198,
198,
33711,
796,
3706,
83,
29291,
10786,
33711,
3256,
705,
45519,
3042,
300,
261,
5988,
11555,
43072,
7480,
29770,
11537,
198,
198,
1930,
1756,
796,
685,
198,
220,
220,
220,
15181,
7203,
47493,
2919,
1065,
4089,
2425,
405,
6659,
1600,
7863,
13,
2718,
2091,
2079,
11,
220,
1596,
13,
5824,
2791,
3829,
11,
8949,
11,
220,
1315,
11,
21355,
11,
366,
1495,
12,
2091,
12,
55,
48,
1600,
366,
87,
80,
12340,
198,
220,
220,
220,
15181,
7203,
1120,
3720,
3553,
22047,
2598,
3459,
1899,
1600,
3933,
13,
5332,
1314,
2718,
11,
532,
1795,
13,
486,
2075,
1731,
11,
220,
4101,
11,
15136,
11,
9796,
11,
366,
4761,
12,
6052,
12,
37,
48,
1600,
366,
69,
80,
12340,
198,
220,
220,
220,
15181,
7203,
49803,
3134,
2231,
24693,
21734,
1795,
1600,
6073,
13,
38652,
21288,
11,
220,
1315,
13,
33372,
31115,
11,
220,
1478,
11,
220,
220,
657,
11,
9796,
11,
366,
41,
43,
12,
1129,
12,
4524,
1600,
366,
41,
43,
12340,
198,
220,
220,
220,
15181,
7203,
23,
3134,
2075,
405,
27693,
24909,
2091,
1600,
2319,
13,
23,
37688,
2414,
11,
220,
532,
20,
13,
43918,
27057,
11,
43155,
11,
220,
7265,
11,
17501,
11,
366,
32,
8487,
1314,
9878,
1600,
366,
38,
77,
12340,
198,
220,
220,
220,
15181,
7203,
486,
1495,
2920,
37466,
30863,
15982,
1600,
4764,
13,
5332,
3104,
2075,
11,
220,
220,
362,
13,
1959,
1983,
1485,
11,
220,
5946,
11,
220,
7724,
11,
22538,
11,
366,
1238,
12,
1137,
12,
1238,
1600,
366,
32178,
12340,
198,
60,
198,
198,
37266,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
4774,
3672,
1,
220,
1058,
366,
36750,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
634,
1,
220,
220,
220,
220,
220,
1058,
1248,
5999,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
80,
418,
1,
220,
220,
220,
220,
220,
220,
1058,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
1186,
391,
1,
220,
220,
220,
1058,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
16366,
62,
312,
1,
1058,
366,
12984,
12,
14323,
84,
1600,
198,
92,
198,
198,
1640,
279,
287,
6116,
25,
198,
220,
220,
220,
7243,
796,
366,
6887,
81,
4595,
14,
14969,
87,
14,
4,
82,
1,
4064,
357,
79,
13,
45519,
8,
198,
220,
220,
220,
1303,
4532,
4738,
640,
25,
1936,
2431,
2084,
5556,
257,
1643,
198,
220,
220,
220,
256,
301,
796,
493,
7,
2435,
13,
2435,
28955,
532,
5867,
1343,
4738,
13,
25192,
600,
7,
15,
11,
7982,
8,
198,
220,
220,
220,
256,
301,
796,
493,
7,
2435,
13,
2435,
28955,
198,
220,
220,
220,
11555,
796,
279,
13,
626,
198,
220,
220,
220,
1303,
11555,
796,
838,
198,
220,
220,
220,
11555,
796,
4738,
13,
25192,
600,
7,
1821,
11,
1795,
8,
198,
220,
220,
220,
3601,
7,
79,
13,
45519,
11,
11555,
8,
198,
220,
220,
220,
1366,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
45434,
4906,
1,
220,
220,
220,
220,
1058,
366,
24886,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
83,
301,
1,
220,
220,
220,
220,
220,
220,
1058,
256,
301,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
15460,
1,
220,
220,
220,
220,
220,
220,
1058,
279,
13,
15460,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
14995,
1,
220,
220,
220,
220,
220,
220,
1058,
279,
13,
14995,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
66,
519,
1,
220,
220,
220,
220,
220,
220,
1058,
279,
13,
66,
519,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
2501,
1,
220,
220,
220,
220,
220,
220,
1058,
279,
13,
2501,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
626,
1,
220,
220,
220,
220,
220,
220,
1058,
11555,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
83,
312,
1,
220,
220,
220,
220,
220,
220,
1058,
279,
13,
83,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
65,
1078,
1,
220,
220,
220,
220,
220,
1058,
4738,
13,
25192,
600,
7,
6469,
11,
1802,
828,
198,
220,
220,
220,
220,
220,
220,
220,
366,
3672,
1,
220,
220,
220,
220,
1058,
279,
13,
6816,
11,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
7294,
44,
46207,
319,
938,
14,
198,
220,
220,
220,
1782,
198,
220,
220,
220,
21437,
796,
33918,
13,
67,
8142,
7,
7890,
8,
198,
220,
220,
220,
285,
80,
926,
13,
29762,
7,
26652,
11,
21437,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6284,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
7278,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12429,
37266,
8,
628,
628,
220,
220,
220,
7243,
796,
366,
6887,
81,
4595,
14,
14969,
87,
14,
4,
82,
14,
9517,
1,
4064,
357,
79,
13,
45519,
8,
198,
220,
220,
220,
2657,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45434,
4906,
1,
1058,
366,
9517,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
3672,
1,
220,
1058,
279,
13,
6816,
11,
198,
220,
220,
220,
1782,
198,
220,
220,
220,
329,
1070,
287,
685,
366,
11134,
1600,
366,
9479,
1,
2361,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2939,
62,
7753,
796,
366,
32186,
14,
90,
15,
27422,
90,
16,
92,
1911,
18982,
7,
79,
13,
45519,
11,
1070,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
9060,
62,
7753,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33705,
796,
2779,
2414,
13,
65,
2414,
268,
8189,
7,
9654,
7,
9060,
62,
7753,
11,
366,
26145,
11074,
961,
3419,
737,
12501,
1098,
7203,
40477,
12,
23,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2657,
14692,
2550,
8973,
796,
33705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
628,
220,
220,
220,
285,
80,
926,
13,
29762,
7,
26652,
11,
33918,
13,
67,
8142,
7,
9517,
828,
198,
220,
220,
220,
220,
220,
220,
220,
6284,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
256,
7278,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12429,
37266,
8,
628,
628
] | 1.846753 | 1,155 |
from db.repositories.statistics_repository import StatisticsRepository
from db.repositories.dna_repository import DNARepository
from model import Dna
from model.DTO.Dna import DNACreate
from service import statistics_service
from fastapi import HTTPException
|
[
6738,
20613,
13,
260,
1930,
270,
1749,
13,
14269,
3969,
62,
260,
1930,
37765,
1330,
14370,
6207,
13264,
198,
6738,
20613,
13,
260,
1930,
270,
1749,
13,
67,
2616,
62,
260,
1930,
37765,
1330,
45080,
1503,
538,
13264,
198,
6738,
2746,
1330,
360,
2616,
198,
6738,
2746,
13,
35,
10468,
13,
35,
2616,
1330,
45080,
2246,
260,
378,
198,
6738,
2139,
1330,
7869,
62,
15271,
198,
6738,
3049,
15042,
1330,
14626,
16922,
198
] | 3.547945 | 73 |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Julea(MesonPackage):
"""JULEA is a flexible storage framework that allows offering arbitrary
I/O interfaces to applications. To be able to rapidly prototype new
approaches, it offers object, key-value and database backends. Support
for popular storage technologies such as POSIX, LevelDB and MongoDB is
already included."""
homepage = "https://github.com/wr-hamburg/julea"
git = "https://github.com/wr-hamburg/julea.git"
tags = ['HPC', 'I/O', 'storage']
maintainers = ['michaelkuhn']
version('master', branch='master')
variant('hdf5', default=True, description='Enable HDF5 support')
variant('leveldb', default=True, description='Enable LevelDB support')
variant('lmdb', default=True, description='Enable LMDB support')
variant('mariadb', default=True, description='Enable MariaDB support')
variant('mongodb', default=True, description='Enable MongoDB support')
variant('sqlite', default=True, description='Enable SQLite support')
depends_on('pkgconfig', type='build')
depends_on('glib')
depends_on('libbson')
# depends_on('libfabric')
depends_on('[email protected]:', when='+leveldb')
depends_on('leveldb', when='+leveldb')
depends_on('lmdb', when='+lmdb')
depends_on('mariadb-c-client', when='+mariadb')
depends_on('mongo-c-driver', when='+mongodb')
depends_on('sqlite', when='+sqlite')
|
[
2,
15069,
2211,
12,
42334,
13914,
45036,
3549,
2351,
4765,
11,
11419,
290,
584,
198,
2,
1338,
441,
4935,
34152,
13,
4091,
262,
1353,
12,
5715,
27975,
38162,
9947,
2393,
329,
3307,
13,
198,
2,
198,
2,
30628,
55,
12,
34156,
12,
33234,
7483,
25,
357,
25189,
4891,
12,
17,
13,
15,
6375,
17168,
8,
198,
198,
6738,
599,
441,
1330,
1635,
628,
198,
4871,
449,
2261,
64,
7,
44,
42038,
27813,
2599,
198,
220,
220,
220,
37227,
41,
24212,
32,
318,
257,
12846,
6143,
9355,
326,
3578,
6011,
14977,
198,
220,
220,
220,
314,
14,
46,
20314,
284,
5479,
13,
1675,
307,
1498,
284,
8902,
14879,
649,
198,
220,
220,
220,
10581,
11,
340,
4394,
2134,
11,
1994,
12,
8367,
290,
6831,
736,
2412,
13,
7929,
198,
220,
220,
220,
329,
2968,
6143,
8514,
884,
355,
28069,
10426,
11,
5684,
11012,
290,
42591,
11012,
318,
198,
220,
220,
220,
1541,
3017,
526,
15931,
628,
220,
220,
220,
34940,
796,
366,
5450,
1378,
12567,
13,
785,
14,
18351,
12,
2763,
7423,
14,
73,
2261,
64,
1,
198,
220,
220,
220,
17606,
220,
220,
220,
220,
220,
796,
366,
5450,
1378,
12567,
13,
785,
14,
18351,
12,
2763,
7423,
14,
73,
2261,
64,
13,
18300,
1,
628,
220,
220,
220,
15940,
220,
220,
220,
220,
220,
220,
220,
796,
37250,
39,
5662,
3256,
705,
40,
14,
46,
3256,
705,
35350,
20520,
198,
220,
220,
220,
5529,
364,
796,
37250,
76,
40302,
74,
7456,
77,
20520,
628,
220,
220,
220,
2196,
10786,
9866,
3256,
8478,
11639,
9866,
11537,
628,
220,
220,
220,
15304,
10786,
71,
7568,
20,
3256,
4277,
28,
17821,
11,
6764,
11639,
36695,
5572,
37,
20,
1104,
11537,
198,
220,
220,
220,
15304,
10786,
293,
303,
335,
65,
3256,
4277,
28,
17821,
11,
6764,
11639,
36695,
5684,
11012,
1104,
11537,
198,
220,
220,
220,
15304,
10786,
75,
9132,
65,
3256,
4277,
28,
17821,
11,
6764,
11639,
36695,
37125,
11012,
1104,
11537,
198,
220,
220,
220,
15304,
10786,
76,
2743,
324,
65,
3256,
4277,
28,
17821,
11,
6764,
11639,
36695,
14200,
11012,
1104,
11537,
198,
220,
220,
220,
15304,
10786,
31059,
375,
65,
3256,
4277,
28,
17821,
11,
6764,
11639,
36695,
42591,
11012,
1104,
11537,
198,
220,
220,
220,
15304,
10786,
25410,
578,
3256,
4277,
28,
17821,
11,
6764,
11639,
36695,
16363,
578,
1104,
11537,
628,
220,
220,
220,
8338,
62,
261,
10786,
35339,
11250,
3256,
2099,
11639,
11249,
11537,
628,
220,
220,
220,
8338,
62,
261,
10786,
4743,
571,
11537,
198,
220,
220,
220,
8338,
62,
261,
10786,
8019,
1443,
261,
11537,
198,
220,
220,
220,
1303,
8338,
62,
261,
10786,
8019,
36434,
1173,
11537,
628,
220,
220,
220,
8338,
62,
261,
10786,
71,
7568,
20,
31,
16,
13,
1065,
13,
15,
25,
3256,
618,
11639,
10,
293,
303,
335,
65,
11537,
198,
220,
220,
220,
8338,
62,
261,
10786,
293,
303,
335,
65,
3256,
618,
11639,
10,
293,
303,
335,
65,
11537,
198,
220,
220,
220,
8338,
62,
261,
10786,
75,
9132,
65,
3256,
618,
11639,
10,
75,
9132,
65,
11537,
198,
220,
220,
220,
8338,
62,
261,
10786,
76,
2743,
324,
65,
12,
66,
12,
16366,
3256,
618,
11639,
10,
76,
2743,
324,
65,
11537,
198,
220,
220,
220,
8338,
62,
261,
10786,
76,
25162,
12,
66,
12,
26230,
3256,
618,
11639,
10,
31059,
375,
65,
11537,
198,
220,
220,
220,
8338,
62,
261,
10786,
25410,
578,
3256,
618,
11639,
10,
25410,
578,
11537,
198
] | 2.878307 | 567 |
import base64
# converte os bytes em imagem e salva no path especificado
# remove o cabeçalho do base64 enviado na requisição pelo JS
|
[
11748,
2779,
2414,
628,
220,
220,
220,
220,
198,
2,
6718,
660,
28686,
9881,
795,
3590,
368,
304,
3664,
6862,
645,
3108,
1658,
431,
7790,
4533,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
2,
4781,
267,
269,
11231,
16175,
282,
8873,
466,
2779,
2414,
551,
8903,
4533,
12385,
1038,
23267,
16175,
28749,
16176,
78,
26755
] | 2.525424 | 59 |
#
# -------------------------------------------------------------------------
# Copyright (c) 2015-2017 AT&T Intellectual Property
#
# 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.
#
# -------------------------------------------------------------------------
#
"""REST Helper"""
import json
from os import path
from oslo_config import cfg
from oslo_log import log
import requests
from requests.auth import HTTPBasicAuth
from six.moves.urllib import parse
from conductor.i18n import _LE, _LW # pylint: disable=W0212
LOG = log.getLogger(__name__)
CONF = cfg.CONF
class RESTException(IOError):
"""Basic exception for errors raised by REST"""
class CertificateFileNotFoundException(RESTException, ValueError):
"""Certificate file was not found"""
class MissingURLNetlocException(RESTException, ValueError):
"""URL is missing a host/port"""
class ProhibitedURLSchemeException(RESTException, ValueError):
"""URL is using a prohibited scheme"""
class REST(object):
"""Helper class for REST operations."""
server_url = None
timeout = None
# Why the funny looking connect/read timeouts? Here, read this:
# http://docs.python-requests.org/en/master/user/advanced/#timeouts
def __init__(self, server_url, retries=3, connect_timeout=3.05,
read_timeout=12.05, username=None, password=None,
cert_file=None, cert_key_file=None, ca_bundle_file=None,
log_debug=False):
"""Initializer."""
parsed = parse.urlparse(server_url, 'http')
if parsed.scheme not in ('http', 'https'):
raise ProhibitedURLSchemeException
if not parsed.netloc:
raise MissingURLNetlocException
for file_path in (cert_file, cert_key_file, ca_bundle_file):
if file_path and not path.exists(file_path):
raise CertificateFileNotFoundException
self.server_url = server_url.rstrip('/')
self.retries = int(retries)
self.timeout = (float(connect_timeout), float(read_timeout))
self.log_debug = log_debug
self.username = username
self.password = password
self.cert = cert_file
self.key = cert_key_file
self.verify = ca_bundle_file
# FIXME(jdandrea): Require a CA bundle; do not suppress warnings.
# This is here due to an A&AI's cert/server name mismatch.
# Permitting this defeats the purpose of using SSL/TLS.
if self.verify == "":
requests.packages.urllib3.disable_warnings()
self.verify = False
# Use connection pooling, kthx.
# http://docs.python-requests.org/en/master/user/advanced/
self.session = requests.Session()
def request(self, method='get', content_type='application/json',
path='', headers=None, data=None):
"""Performs HTTP request. Returns a requests.Response object."""
if method not in ('post', 'get', 'put', 'delete'):
method = 'get'
method_fn = getattr(self.session, method)
full_headers = {
'Accept': content_type,
'Content-Type': content_type,
}
if headers:
full_headers.update(headers)
full_url = '{}/{}'.format(self.server_url, path.lstrip('/'))
# Prepare the request args
try:
data_str = json.dumps(data) if data else None
except (TypeError, ValueError):
data_str = data
kwargs = {
'data': data_str,
'headers': full_headers,
'timeout': self.timeout,
'cert': (self.cert, self.key),
'verify': self.verify,
'stream': False,
}
if self.username or self.password:
LOG.debug("Using HTTPBasicAuth")
kwargs['auth'] = HTTPBasicAuth(self.username, self.password)
if self.cert and self.key:
LOG.debug("Using SSL/TLS Certificate/Key")
if self.log_debug:
LOG.debug("Request: {} {}".format(method.upper(), full_url))
if data:
LOG.debug("Request Body: {}".format(json.dumps(data)))
response = None
for attempt in range(self.retries):
if attempt > 0:
# No need to show 400 bad requests from Music - Ignorable when lock cannot be received at one particular point in time
if "MUSIC" not in full_url:
LOG.warn(_LW("Retry #{}/{}").format(
attempt + 1, self.retries))
try:
response = method_fn(full_url, **kwargs)
# We shouldn't have to do this since stream is set to False,
# but we're gonna anyway. See "Body Content Workflow" here:
# http://docs.python-requests.org/en/master/user/advanced/
response.close()
if not response.ok:
# No need to show 400 bad requests from Music - Ignorable when lock cannot be received at one particular point in time
if "MUSIC" not in full_url:
LOG.warn("Response Status: {} {}".format(
response.status_code, response.reason))
if self.log_debug and response.text:
try:
response_dict = json.loads(response.text)
LOG.debug("Response JSON: {}".format(
json.dumps(response_dict)))
except ValueError:
LOG.debug("Response Body: {}".format(response.text))
if response.ok:
break
except requests.exceptions.RequestException as err:
LOG.error("Exception: %s", err.message)
# Response.__bool__ returns false if status is not ok. Ruh roh!
# That means we must check the object type vs treating it as a bool.
# More info: https://github.com/kennethreitz/requests/issues/2002
if isinstance(response, requests.models.Response) and not response.ok:
# No need to show 400 bad requests from Music - Ignorable when lock cannot be received at one particular point in time
if "MUSIC" not in full_url:
LOG.error(_LE("Status {} {} after {} retries for URL: {}").format(
response.status_code, response.reason, self.retries, full_url))
return response
|
[
2,
198,
2,
16529,
45537,
198,
2,
220,
220,
15069,
357,
66,
8,
1853,
12,
5539,
5161,
5,
51,
42443,
14161,
198,
2,
198,
2,
220,
220,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
220,
220,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
220,
220,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
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,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
220,
220,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
220,
220,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
220,
220,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
220,
220,
11247,
739,
262,
13789,
13,
198,
2,
198,
2,
16529,
45537,
198,
2,
198,
198,
37811,
49,
6465,
5053,
525,
37811,
198,
198,
11748,
33918,
198,
6738,
28686,
1330,
3108,
198,
198,
6738,
28686,
5439,
62,
11250,
1330,
30218,
70,
198,
6738,
28686,
5439,
62,
6404,
1330,
2604,
198,
11748,
7007,
198,
6738,
7007,
13,
18439,
1330,
14626,
26416,
30515,
198,
6738,
2237,
13,
76,
5241,
13,
333,
297,
571,
1330,
21136,
198,
198,
6738,
39206,
13,
72,
1507,
77,
1330,
4808,
2538,
11,
4808,
43,
54,
220,
1303,
279,
2645,
600,
25,
15560,
28,
54,
2999,
1065,
198,
198,
25294,
796,
2604,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
198,
198,
10943,
37,
796,
30218,
70,
13,
10943,
37,
628,
198,
4871,
30617,
16922,
7,
9399,
12331,
2599,
198,
220,
220,
220,
37227,
26416,
6631,
329,
8563,
4376,
416,
30617,
37811,
628,
198,
4871,
27895,
8979,
3673,
21077,
16922,
7,
49,
6465,
16922,
11,
11052,
12331,
2599,
198,
220,
220,
220,
37227,
37608,
22460,
2393,
373,
407,
1043,
37811,
628,
198,
4871,
25639,
21886,
7934,
17946,
16922,
7,
49,
6465,
16922,
11,
11052,
12331,
2599,
198,
220,
220,
220,
37227,
21886,
318,
4814,
257,
2583,
14,
634,
37811,
628,
198,
4871,
1041,
44139,
4261,
6561,
2395,
1326,
16922,
7,
49,
6465,
16922,
11,
11052,
12331,
2599,
198,
220,
220,
220,
37227,
21886,
318,
1262,
257,
12244,
7791,
37811,
628,
198,
4871,
30617,
7,
15252,
2599,
198,
220,
220,
220,
37227,
47429,
1398,
329,
30617,
4560,
526,
15931,
628,
220,
220,
220,
4382,
62,
6371,
796,
6045,
198,
220,
220,
220,
26827,
796,
6045,
628,
220,
220,
220,
1303,
4162,
262,
8258,
2045,
2018,
14,
961,
640,
5269,
30,
3423,
11,
1100,
428,
25,
198,
220,
220,
220,
1303,
2638,
1378,
31628,
13,
29412,
12,
8897,
3558,
13,
2398,
14,
268,
14,
9866,
14,
7220,
14,
32225,
2903,
31113,
2435,
5269,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
4382,
62,
6371,
11,
1005,
1678,
28,
18,
11,
2018,
62,
48678,
28,
18,
13,
2713,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1100,
62,
48678,
28,
1065,
13,
2713,
11,
20579,
28,
14202,
11,
9206,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5051,
62,
7753,
28,
14202,
11,
5051,
62,
2539,
62,
7753,
28,
14202,
11,
1275,
62,
65,
31249,
62,
7753,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2604,
62,
24442,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
7509,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
44267,
796,
21136,
13,
6371,
29572,
7,
15388,
62,
6371,
11,
705,
4023,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
611,
44267,
13,
15952,
1326,
407,
287,
19203,
4023,
3256,
705,
5450,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
1041,
44139,
4261,
6561,
2395,
1326,
16922,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
44267,
13,
3262,
17946,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
25639,
21886,
7934,
17946,
16922,
628,
220,
220,
220,
220,
220,
220,
220,
329,
2393,
62,
6978,
287,
357,
22583,
62,
7753,
11,
5051,
62,
2539,
62,
7753,
11,
1275,
62,
65,
31249,
62,
7753,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2393,
62,
6978,
290,
407,
3108,
13,
1069,
1023,
7,
7753,
62,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
27895,
8979,
3673,
21077,
16922,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15388,
62,
6371,
796,
4382,
62,
6371,
13,
81,
36311,
10786,
14,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1186,
1678,
796,
493,
7,
1186,
1678,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
48678,
796,
357,
22468,
7,
8443,
62,
48678,
828,
12178,
7,
961,
62,
48678,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
62,
24442,
796,
2604,
62,
24442,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
29460,
796,
20579,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
28712,
796,
9206,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22583,
796,
5051,
62,
7753,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2539,
796,
5051,
62,
2539,
62,
7753,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
332,
1958,
796,
1275,
62,
65,
31249,
62,
7753,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
44855,
11682,
7,
73,
67,
392,
21468,
2599,
9394,
557,
257,
7257,
18537,
26,
466,
407,
18175,
14601,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
770,
318,
994,
2233,
284,
281,
317,
5,
20185,
338,
5051,
14,
15388,
1438,
46318,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2448,
16138,
428,
29234,
262,
4007,
286,
1262,
25952,
14,
51,
6561,
13,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
332,
1958,
6624,
366,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7007,
13,
43789,
13,
333,
297,
571,
18,
13,
40223,
62,
40539,
654,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
332,
1958,
796,
10352,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
5765,
4637,
5933,
278,
11,
479,
400,
87,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2638,
1378,
31628,
13,
29412,
12,
8897,
3558,
13,
2398,
14,
268,
14,
9866,
14,
7220,
14,
32225,
2903,
14,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
29891,
796,
7007,
13,
36044,
3419,
628,
220,
220,
220,
825,
2581,
7,
944,
11,
2446,
11639,
1136,
3256,
2695,
62,
4906,
11639,
31438,
14,
17752,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3108,
11639,
3256,
24697,
28,
14202,
11,
1366,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
5990,
23914,
14626,
2581,
13,
16409,
257,
7007,
13,
31077,
2134,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2446,
407,
287,
19203,
7353,
3256,
705,
1136,
3256,
705,
1996,
3256,
705,
33678,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
796,
705,
1136,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2446,
62,
22184,
796,
651,
35226,
7,
944,
13,
29891,
11,
2446,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
50145,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
38855,
10354,
2695,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
19746,
12,
6030,
10354,
2695,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
611,
24697,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
50145,
13,
19119,
7,
50145,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
6371,
796,
705,
90,
92,
14,
90,
92,
4458,
18982,
7,
944,
13,
15388,
62,
6371,
11,
3108,
13,
75,
36311,
10786,
14,
6,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
43426,
262,
2581,
26498,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
2536,
796,
33918,
13,
67,
8142,
7,
7890,
8,
611,
1366,
2073,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
357,
6030,
12331,
11,
11052,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
2536,
796,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
479,
86,
22046,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7890,
10354,
1366,
62,
2536,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
50145,
10354,
1336,
62,
50145,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
48678,
10354,
2116,
13,
48678,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22583,
10354,
357,
944,
13,
22583,
11,
2116,
13,
2539,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
332,
1958,
10354,
2116,
13,
332,
1958,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5532,
10354,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
29460,
393,
2116,
13,
28712,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
24442,
7203,
12814,
14626,
26416,
30515,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
86,
22046,
17816,
18439,
20520,
796,
14626,
26416,
30515,
7,
944,
13,
29460,
11,
2116,
13,
28712,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22583,
290,
2116,
13,
2539,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
24442,
7203,
12814,
25952,
14,
51,
6561,
27895,
14,
9218,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
6404,
62,
24442,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
24442,
7203,
18453,
25,
23884,
23884,
1911,
18982,
7,
24396,
13,
45828,
22784,
1336,
62,
6371,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1366,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
24442,
7203,
18453,
12290,
25,
23884,
1911,
18982,
7,
17752,
13,
67,
8142,
7,
7890,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
2882,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2230,
287,
2837,
7,
944,
13,
1186,
1678,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2230,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1400,
761,
284,
905,
7337,
2089,
7007,
422,
7849,
532,
16583,
10475,
618,
5793,
2314,
307,
2722,
379,
530,
1948,
966,
287,
640,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
366,
44,
2937,
2149,
1,
407,
287,
1336,
62,
6371,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
40539,
28264,
43,
54,
7203,
9781,
563,
1303,
90,
92,
14,
90,
92,
11074,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2230,
1343,
352,
11,
2116,
13,
1186,
1678,
4008,
628,
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,
2882,
796,
2446,
62,
22184,
7,
12853,
62,
6371,
11,
12429,
46265,
22046,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
775,
6584,
470,
423,
284,
466,
428,
1201,
4269,
318,
900,
284,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
475,
356,
821,
8066,
6949,
13,
4091,
366,
25842,
14041,
5521,
11125,
1,
994,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2638,
1378,
31628,
13,
29412,
12,
8897,
3558,
13,
2398,
14,
268,
14,
9866,
14,
7220,
14,
32225,
2903,
14,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2882,
13,
19836,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2882,
13,
482,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1400,
761,
284,
905,
7337,
2089,
7007,
422,
7849,
532,
16583,
10475,
618,
5793,
2314,
307,
2722,
379,
530,
1948,
966,
287,
640,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
366,
44,
2937,
2149,
1,
407,
287,
1336,
62,
6371,
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,
41605,
13,
40539,
7203,
31077,
12678,
25,
23884,
23884,
1911,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2882,
13,
13376,
62,
8189,
11,
2882,
13,
41181,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
6404,
62,
24442,
290,
2882,
13,
5239,
25,
198,
220,
220,
220,
220,
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,
220,
220,
220,
220,
2882,
62,
11600,
796,
33918,
13,
46030,
7,
26209,
13,
5239,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
24442,
7203,
31077,
19449,
25,
23884,
1911,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33918,
13,
67,
8142,
7,
26209,
62,
11600,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
11052,
12331,
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,
41605,
13,
24442,
7203,
31077,
12290,
25,
23884,
1911,
18982,
7,
26209,
13,
5239,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2882,
13,
482,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
7007,
13,
1069,
11755,
13,
18453,
16922,
355,
11454,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
18224,
7203,
16922,
25,
4064,
82,
1600,
11454,
13,
20500,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
18261,
13,
834,
30388,
834,
5860,
3991,
611,
3722,
318,
407,
12876,
13,
371,
7456,
686,
71,
0,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1320,
1724,
356,
1276,
2198,
262,
2134,
2099,
3691,
13622,
340,
355,
257,
20512,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3125,
7508,
25,
3740,
1378,
12567,
13,
785,
14,
74,
1697,
2788,
260,
4224,
14,
8897,
3558,
14,
37165,
14,
16942,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
26209,
11,
7007,
13,
27530,
13,
31077,
8,
290,
407,
2882,
13,
482,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1400,
761,
284,
905,
7337,
2089,
7007,
422,
7849,
532,
16583,
10475,
618,
5793,
2314,
307,
2722,
379,
530,
1948,
966,
287,
640,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
366,
44,
2937,
2149,
1,
407,
287,
1336,
62,
6371,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
18224,
28264,
2538,
7203,
19580,
23884,
23884,
706,
23884,
1005,
1678,
329,
10289,
25,
23884,
11074,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2882,
13,
13376,
62,
8189,
11,
2882,
13,
41181,
11,
2116,
13,
1186,
1678,
11,
1336,
62,
6371,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2882,
198
] | 2.374659 | 2,936 |
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Utility functions related to tasks"""
import subprocess
|
[
2,
15069,
1584,
3012,
3457,
13,
1439,
6923,
33876,
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,
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,
18274,
879,
5499,
3519,
284,
8861,
37811,
198,
198,
11748,
850,
14681,
628
] | 3.987805 | 164 |
#!/usr/bin/env python
from suds.client import Client
import base64
# Suds does not support base64binary type, so we do the encoding manually.
file_data = base64.b64encode('file_data')
c=Client('http://localhost:9000/filemgr/?wsdl')
c.service.add('x', 'y', 'file_name', file_data)
print('file written.')
print()
print('incoming data:')
return_data = c.service.get('file_name')
print(repr(return_data))
|
[
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
198,
6738,
424,
9310,
13,
16366,
1330,
20985,
198,
11748,
2779,
2414,
198,
198,
2,
14818,
82,
857,
407,
1104,
2779,
2414,
39491,
2099,
11,
523,
356,
466,
262,
21004,
14500,
13,
198,
7753,
62,
7890,
796,
2779,
2414,
13,
65,
2414,
268,
8189,
10786,
7753,
62,
7890,
11537,
198,
198,
66,
28,
11792,
10786,
4023,
1378,
36750,
25,
24,
830,
14,
7753,
76,
2164,
20924,
18504,
25404,
11537,
198,
66,
13,
15271,
13,
2860,
10786,
87,
3256,
705,
88,
3256,
705,
7753,
62,
3672,
3256,
2393,
62,
7890,
8,
198,
198,
4798,
10786,
7753,
3194,
2637,
8,
198,
4798,
3419,
198,
198,
4798,
10786,
259,
4976,
1366,
25,
11537,
198,
7783,
62,
7890,
796,
269,
13,
15271,
13,
1136,
10786,
7753,
62,
3672,
11537,
198,
4798,
7,
260,
1050,
7,
7783,
62,
7890,
4008,
198
] | 2.8 | 145 |
from skimage.measure import marching_cubes
import pandas as pd
import numpy as np
from LoopStructural.utils import getLogger
logger = getLogger(__name__)
|
[
6738,
1341,
9060,
13,
1326,
5015,
1330,
26409,
62,
66,
29080,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
299,
32152,
355,
45941,
198,
198,
6738,
26304,
44909,
1523,
13,
26791,
1330,
651,
11187,
1362,
198,
6404,
1362,
796,
651,
11187,
1362,
7,
834,
3672,
834,
8
] | 3.208333 | 48 |
"""
1 comprehension
2 user defined function
# ASSIGNMENT:
1 WRITE list comprehension to create 15 random number
2 write list comprehensioon to create prime number till user defined number
3 write dictionary comprehension with 5 key value paiir
4 convert all assignmnent into user defined function
"""
### COMPREHENSION:
# 1 LIST COMPREHENSION:
# _odd = list()
# for i in range (1,10,2):
# _odd.append(i)
# print(_odd)
#
#
_odd=[i for i in range(1,10,2) ]
print(_odd)
# for i in range (1,10):
# if i%2==1:
# _odd.append(i)
# print(_odd)
# _odd=[i for i in range(1,10) if i%2==1]
# print(_odd)
# 2 DICTIONARY COMPREHENSION:
# sq={}
#
# numbers=[2,4,6,8,8,10,3,5]
# for num in numbers :
# sq[num]=num*num
# print(sq)
#
# _sq={ num:num*num for num in numbers}
# print(_sq)
#
# _sq={ num:num*num for num in numbers if num%2==1}
# print(_sq)
labels = ["name", "age", "contact no"]
user1 = ["pallavi", 24, 9975881339]
user2 = ["sonali", 20, 9881942199]
user3 = ["poonam", 15, 874596312]
# output as :[{"name: "pallavi,"age":24,"contact no" :9975881339},
# { "name":"sonali","age":20, "contact no": 9881942199},
# {"name":"poonam","age": 20,"contact no":874596312}
# ]
# labels1 = [{"name": user1[0] for i in user1}, {"age": user1[1] for i in user1}, {"contact no": user1[2] for i in user1}]
# print(labels1)
#
# label2=[ {"name":[0] for i in user1 }]
# output=[{label:user[index]for index,label in enumerate(labels)}
# for user in [user1,user2,user3]]
# print(output)
# output=[{labels[index]:user[index] for index in range (0,3)}
# for user in [user1,user2,user3]]
# print(output)
# op=list()
# for user in [user1,user2,user3]:
# _user=dict()
# for index in range(0,3):
# _user[labels[index]]=user[index]
# op.append(_user)
#
# print(op)
###2 USER DEFINED FUNCTION:
'''
## simple function
def<function name>():
"""
function doc string
"""
<statement1>
<statement2>
.
.
.
<statementn>
'''
# greeting()
def arg_greeting(name):
"""
this is greeting function with argument
:param name:
:return:
"""
print("hello {}".format(name))
print(F"hello {name}")
# arg_greeting(name="parth")
def arg_return_greeeting(name):
"""
this is greeting function with argument and return greeting message
:param name:
:return:
"""
message=F"hello {name}"
return message
# resp = arg_return_greeeting(name="pallavi")
# print(resp)
# name=input("enter your name : ")
# resp = arg_return_greeeting(name="pallavi")
# print(resp)
wild_card_arg_greetings(*["test1","test2"])
def wild_card_kwargs_function(**kwargs):
"""
:param kwargs:dictinary wild card argument
:return:
"""
for key, values in kwargs.items():
print(key, ":", values)
user1={"name":"pallavi","age":24,"contact no":9975881339}
wild_card_kwargs_function(**user1)
|
[
37811,
198,
16,
35915,
198,
17,
2836,
5447,
2163,
198,
198,
2,
24994,
16284,
10979,
25,
198,
16,
44423,
1351,
35915,
284,
2251,
1315,
4738,
1271,
198,
17,
3551,
1351,
8569,
952,
261,
284,
2251,
6994,
1271,
10597,
2836,
5447,
1271,
198,
18,
3551,
22155,
35915,
351,
642,
1994,
1988,
279,
1872,
343,
198,
19,
10385,
477,
8333,
10295,
298,
656,
2836,
5447,
2163,
628,
198,
37811,
628,
198,
21017,
24301,
2200,
39,
16938,
2849,
25,
198,
198,
2,
352,
39498,
24301,
2200,
39,
16938,
2849,
25,
198,
198,
2,
4808,
5088,
796,
1351,
3419,
198,
2,
329,
1312,
287,
2837,
357,
16,
11,
940,
11,
17,
2599,
198,
2,
220,
220,
220,
220,
4808,
5088,
13,
33295,
7,
72,
8,
198,
2,
3601,
28264,
5088,
8,
198,
2,
198,
2,
198,
62,
5088,
41888,
72,
329,
1312,
287,
2837,
7,
16,
11,
940,
11,
17,
8,
2361,
198,
4798,
28264,
5088,
8,
198,
198,
2,
329,
1312,
287,
2837,
357,
16,
11,
940,
2599,
198,
2,
220,
220,
220,
220,
611,
1312,
4,
17,
855,
16,
25,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
5088,
13,
33295,
7,
72,
8,
198,
2,
3601,
28264,
5088,
8,
198,
198,
2,
4808,
5088,
41888,
72,
329,
1312,
287,
2837,
7,
16,
11,
940,
8,
611,
1312,
4,
17,
855,
16,
60,
198,
2,
3601,
28264,
5088,
8,
198,
198,
2,
362,
360,
18379,
2849,
13153,
24301,
2200,
39,
16938,
2849,
25,
198,
198,
2,
19862,
34758,
92,
198,
2,
198,
2,
3146,
41888,
17,
11,
19,
11,
21,
11,
23,
11,
23,
11,
940,
11,
18,
11,
20,
60,
198,
2,
329,
997,
287,
3146,
1058,
198,
2,
220,
220,
220,
220,
19862,
58,
22510,
22241,
22510,
9,
22510,
198,
2,
3601,
7,
31166,
8,
198,
2,
198,
2,
4808,
31166,
34758,
997,
25,
22510,
9,
22510,
329,
997,
287,
3146,
92,
198,
2,
3601,
28264,
31166,
8,
198,
2,
198,
2,
4808,
31166,
34758,
997,
25,
22510,
9,
22510,
329,
997,
287,
3146,
220,
611,
997,
4,
17,
855,
16,
92,
198,
2,
3601,
28264,
31166,
8,
198,
198,
23912,
1424,
796,
14631,
3672,
1600,
366,
496,
1600,
366,
32057,
645,
8973,
198,
7220,
16,
796,
14631,
79,
439,
15820,
1600,
1987,
11,
7388,
2425,
3459,
1485,
2670,
60,
198,
7220,
17,
796,
14631,
1559,
7344,
1600,
1160,
11,
860,
3459,
1129,
3682,
19104,
60,
198,
7220,
18,
796,
14631,
26743,
321,
1600,
1315,
11,
10083,
2231,
4846,
27970,
60,
198,
198,
2,
5072,
355,
1058,
58,
4895,
3672,
25,
366,
79,
439,
15820,
553,
496,
1298,
1731,
553,
32057,
645,
1,
1058,
2079,
2425,
3459,
1485,
2670,
5512,
198,
2,
1391,
366,
3672,
2404,
1559,
7344,
2430,
496,
1298,
1238,
11,
366,
32057,
645,
1298,
860,
3459,
1129,
3682,
19104,
5512,
198,
2,
220,
19779,
3672,
2404,
26743,
321,
2430,
496,
1298,
1160,
553,
32057,
645,
1298,
5774,
2231,
4846,
27970,
92,
198,
2,
2361,
628,
198,
2,
14722,
16,
796,
685,
4895,
3672,
1298,
2836,
16,
58,
15,
60,
329,
1312,
287,
2836,
16,
5512,
19779,
496,
1298,
2836,
16,
58,
16,
60,
329,
1312,
287,
2836,
16,
5512,
19779,
32057,
645,
1298,
2836,
16,
58,
17,
60,
329,
1312,
287,
2836,
16,
92,
60,
198,
2,
3601,
7,
23912,
1424,
16,
8,
198,
2,
198,
2,
6167,
17,
41888,
19779,
3672,
20598,
15,
60,
329,
1312,
287,
2836,
16,
1782,
60,
628,
198,
2,
5072,
41888,
90,
18242,
25,
7220,
58,
9630,
60,
1640,
6376,
11,
18242,
287,
27056,
378,
7,
23912,
1424,
38165,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2836,
287,
685,
7220,
16,
11,
7220,
17,
11,
7220,
18,
11907,
198,
2,
3601,
7,
22915,
8,
628,
198,
2,
5072,
41888,
90,
23912,
1424,
58,
9630,
5974,
7220,
58,
9630,
60,
329,
6376,
287,
2837,
357,
15,
11,
18,
38165,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2836,
287,
685,
7220,
16,
11,
7220,
17,
11,
7220,
18,
11907,
198,
2,
3601,
7,
22915,
8,
628,
198,
198,
2,
1034,
28,
4868,
3419,
198,
2,
329,
2836,
287,
685,
7220,
16,
11,
7220,
17,
11,
7220,
18,
5974,
198,
2,
220,
220,
220,
220,
4808,
7220,
28,
11600,
3419,
198,
2,
220,
220,
220,
220,
329,
6376,
287,
2837,
7,
15,
11,
18,
2599,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
7220,
58,
23912,
1424,
58,
9630,
11907,
28,
7220,
58,
9630,
60,
198,
2,
220,
220,
220,
220,
1034,
13,
33295,
28264,
7220,
8,
198,
2,
198,
2,
3601,
7,
404,
8,
628,
198,
198,
21017,
17,
1294,
1137,
5550,
20032,
1961,
29397,
4177,
2849,
25,
198,
198,
7061,
6,
198,
2235,
2829,
2163,
198,
198,
4299,
27,
8818,
1438,
29,
33529,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2163,
2205,
4731,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1279,
26090,
16,
29,
198,
220,
220,
220,
1279,
26090,
17,
29,
198,
220,
220,
220,
764,
198,
220,
220,
220,
764,
198,
220,
220,
220,
764,
198,
220,
220,
220,
1279,
26090,
77,
29,
198,
220,
220,
220,
220,
628,
198,
7061,
6,
198,
2,
31933,
3419,
628,
198,
4299,
1822,
62,
70,
2871,
278,
7,
3672,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
428,
318,
31933,
2163,
351,
4578,
198,
220,
220,
220,
1058,
17143,
1438,
25,
198,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
3601,
7203,
31373,
23884,
1911,
18982,
7,
3672,
4008,
198,
220,
220,
220,
3601,
7,
37,
1,
31373,
1391,
3672,
92,
4943,
198,
2,
1822,
62,
70,
2871,
278,
7,
3672,
2625,
1845,
400,
4943,
628,
198,
4299,
1822,
62,
7783,
62,
70,
631,
13629,
7,
3672,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
428,
318,
31933,
2163,
351,
4578,
290,
1441,
31933,
3275,
628,
220,
220,
220,
1058,
17143,
1438,
25,
198,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
3275,
28,
37,
1,
31373,
1391,
3672,
36786,
198,
220,
220,
220,
1441,
3275,
198,
2,
1217,
796,
1822,
62,
7783,
62,
70,
631,
13629,
7,
3672,
2625,
79,
439,
15820,
4943,
198,
2,
3601,
7,
4363,
8,
198,
198,
2,
1438,
28,
15414,
7203,
9255,
534,
1438,
1058,
366,
8,
198,
2,
1217,
796,
1822,
62,
7783,
62,
70,
631,
13629,
7,
3672,
2625,
79,
439,
15820,
4943,
198,
2,
3601,
7,
4363,
8,
198,
198,
21992,
62,
9517,
62,
853,
62,
70,
46648,
46491,
14692,
9288,
16,
2430,
9288,
17,
8973,
8,
198,
198,
4299,
4295,
62,
9517,
62,
46265,
22046,
62,
8818,
7,
1174,
46265,
22046,
2599,
628,
220,
220,
220,
37227,
628,
198,
220,
220,
220,
1058,
17143,
479,
86,
22046,
25,
11600,
3219,
4295,
2657,
4578,
198,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
329,
1994,
11,
3815,
287,
479,
86,
22046,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
2539,
11,
366,
25,
1600,
3815,
8,
198,
198,
7220,
16,
28,
4895,
3672,
2404,
79,
439,
15820,
2430,
496,
1298,
1731,
553,
32057,
645,
1298,
2079,
2425,
3459,
1485,
2670,
92,
198,
21992,
62,
9517,
62,
46265,
22046,
62,
8818,
7,
1174,
7220,
16,
8
] | 2.394586 | 1,219 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from punica.cli import main
from click.testing import CliRunner
if __name__ == '__main__':
unittest.main()
|
[
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
11748,
555,
715,
395,
198,
198,
6738,
4000,
3970,
13,
44506,
1330,
1388,
198,
198,
6738,
3904,
13,
33407,
1330,
1012,
72,
49493,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
555,
715,
395,
13,
12417,
3419,
198
] | 2.5 | 72 |
import requests
import json
from github import GithubException
|
[
11748,
7007,
198,
11748,
33918,
198,
6738,
33084,
1330,
38994,
16922,
628
] | 5.333333 | 12 |
model = dm.DSCN(task=6723)
model.compile("adam", "sparse_categorical_crossentropy", metrics=['accuracy'])
print('start training...')
history = model.fit(train_model_input, data[target].values, batch_size=256, epochs=20, verbose=2, validation_data=(test_model_input, test_data[target].values))
model.save('./dscn.h5')
|
[
19849,
796,
288,
76,
13,
5258,
44175,
7,
35943,
28,
3134,
1954,
8,
198,
19849,
13,
5589,
576,
7203,
324,
321,
1600,
366,
82,
29572,
62,
66,
2397,
12409,
62,
19692,
298,
28338,
1600,
20731,
28,
17816,
4134,
23843,
6,
12962,
198,
198,
4798,
10786,
9688,
3047,
986,
11537,
198,
23569,
796,
2746,
13,
11147,
7,
27432,
62,
19849,
62,
15414,
11,
1366,
58,
16793,
4083,
27160,
11,
15458,
62,
7857,
28,
11645,
11,
36835,
82,
28,
1238,
11,
15942,
577,
28,
17,
11,
21201,
62,
7890,
16193,
9288,
62,
19849,
62,
15414,
11,
1332,
62,
7890,
58,
16793,
4083,
27160,
4008,
198,
19849,
13,
21928,
7,
4458,
14,
67,
1416,
77,
13,
71,
20,
11537,
198
] | 2.717949 | 117 |
import pyodbc
server = 'localhost'
database = 'testDB'
username = 'SA'
password = 'giorgio$1'
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password)
cursor = cnxn.cursor()
print('Inserting a new row into table')
tsql = "INSERT INTO Employees (Name, Location) VALUES (?,?);"
with cursor.execute(tsql,'Jake','United States'):
print('Successfully Inserted!')
|
[
11748,
12972,
375,
15630,
198,
198,
15388,
796,
705,
36750,
6,
198,
48806,
796,
705,
9288,
11012,
6,
198,
29460,
796,
705,
4090,
6,
198,
28712,
796,
705,
70,
1504,
27769,
3,
16,
6,
198,
198,
31522,
87,
77,
796,
12972,
375,
15630,
13,
8443,
10786,
7707,
38757,
34758,
3727,
2749,
12434,
1596,
329,
16363,
9652,
19629,
35009,
5959,
11639,
10,
15388,
10,
17020,
35,
1404,
6242,
11159,
11639,
10,
48806,
10,
17020,
27586,
11639,
10,
29460,
10,
17020,
47,
22332,
11639,
10,
9206,
8,
198,
66,
21471,
796,
269,
77,
87,
77,
13,
66,
21471,
3419,
198,
198,
4798,
10786,
44402,
278,
257,
649,
5752,
656,
3084,
11537,
198,
912,
13976,
796,
366,
20913,
17395,
39319,
30260,
357,
5376,
11,
13397,
8,
26173,
35409,
32843,
30,
1776,
1,
198,
4480,
23493,
13,
41049,
7,
912,
13976,
4032,
43930,
41707,
17013,
1829,
6,
2599,
198,
220,
220,
220,
3601,
10786,
33244,
2759,
35835,
276,
0,
11537,
198
] | 2.828025 | 157 |
#! encoding: UTF-8
import os
import opts
import ipdb
import time
import random
import numpy as np
from six.moves import cPickle
import keras
from keras.datasets import mnist
import tensorflow as tf
if __name__ == '__main__':
opt = opts.parse_opt()
opt_dict = vars(opt)
for k, v in opt_dict.items():
print(k + ': \t' + str(v))
with open('permuted_mnist_110.pkl', 'rb') as f:
permuted_mnist = cPickle.load(f)
if os.path.isdir(opt.rcst_model_save_path) is False:
os.mkdir(opt.rcst_model_save_path)
x_train_permuted = permuted_mnist['x_train_permuted']
y_train = permuted_mnist['y_train']
x_test_permuted = permuted_mnist['x_test_permuted']
y_test = permuted_mnist['y_test']
# training
train(opt, x_train_permuted, y_train, x_test_permuted, y_test)
|
[
2,
0,
21004,
25,
41002,
12,
23,
198,
198,
11748,
28686,
198,
11748,
2172,
82,
198,
11748,
20966,
9945,
198,
11748,
640,
198,
11748,
4738,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
2237,
13,
76,
5241,
1330,
269,
31686,
293,
198,
198,
11748,
41927,
292,
198,
6738,
41927,
292,
13,
19608,
292,
1039,
1330,
285,
77,
396,
198,
11748,
11192,
273,
11125,
355,
48700,
628,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
2172,
796,
2172,
82,
13,
29572,
62,
8738,
3419,
198,
220,
220,
220,
2172,
62,
11600,
796,
410,
945,
7,
8738,
8,
198,
220,
220,
220,
329,
479,
11,
410,
287,
2172,
62,
11600,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
74,
1343,
705,
25,
3467,
83,
6,
1343,
965,
7,
85,
4008,
628,
220,
220,
220,
351,
1280,
10786,
16321,
7241,
62,
10295,
396,
62,
11442,
13,
79,
41582,
3256,
705,
26145,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
9943,
7241,
62,
10295,
396,
796,
269,
31686,
293,
13,
2220,
7,
69,
8,
628,
220,
220,
220,
611,
28686,
13,
6978,
13,
9409,
343,
7,
8738,
13,
6015,
301,
62,
19849,
62,
21928,
62,
6978,
8,
318,
10352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
28015,
15908,
7,
8738,
13,
6015,
301,
62,
19849,
62,
21928,
62,
6978,
8,
628,
220,
220,
220,
2124,
62,
27432,
62,
16321,
7241,
796,
9943,
7241,
62,
10295,
396,
17816,
87,
62,
27432,
62,
16321,
7241,
20520,
198,
220,
220,
220,
331,
62,
27432,
796,
9943,
7241,
62,
10295,
396,
17816,
88,
62,
27432,
20520,
628,
220,
220,
220,
2124,
62,
9288,
62,
16321,
7241,
796,
9943,
7241,
62,
10295,
396,
17816,
87,
62,
9288,
62,
16321,
7241,
20520,
198,
220,
220,
220,
331,
62,
9288,
796,
9943,
7241,
62,
10295,
396,
17816,
88,
62,
9288,
20520,
628,
220,
220,
220,
1303,
3047,
198,
220,
220,
220,
4512,
7,
8738,
11,
2124,
62,
27432,
62,
16321,
7241,
11,
331,
62,
27432,
11,
2124,
62,
9288,
62,
16321,
7241,
11,
331,
62,
9288,
8,
628
] | 2.304469 | 358 |
# -*- coding:utf-8 -*-
#
# File : cmd_package.py
# This file is part of RT-Thread RTOS
# COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Change Logs:
# Date Author Notes
# 2018-05-28 SummerGift Add copyright information
# 2018-12-28 Ernest Chen Add package information and enjoy package maker
# 2019-01-07 SummerGift The prompt supports utf-8 encoding
#
import os
import json
import kconfig
import pkgsdb
import shutil
import platform
import subprocess
import time
import logging
import archive
import sys
try:
import requests
except ImportError:
print("****************************************\n"
"* Import requests module error.\n"
"* Please install requests module first.\n"
"* pip install step:\n"
"* $ pip install requests\n"
"* command install step:\n"
"* $ sudo apt-get install python-requests\n"
"****************************************\n")
from package import Package, Bridge_SConscript, Kconfig_file, Package_json_file, Sconscript_file
from vars import Import, Export
from string import Template
from cmd_menuconfig import find_macro_in_config
"""package command"""
def execute_command(cmdstring, cwd=None, shell=True):
"""Execute the system command at the specified address."""
if shell:
cmdstring_list = cmdstring
sub = subprocess.Popen(cmdstring_list, cwd=cwd, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, shell=shell, bufsize=4096)
stdout_str = ''
while sub.poll() is None:
stdout_str += sub.stdout.read()
time.sleep(0.1)
return stdout_str
def user_input(msg, default_value):
"""Gets the user's keyboard input."""
if default_value != '':
msg = '%s[%s]' % (msg, default_value)
print(msg)
value = raw_input()
if value == '':
value = default_value
return value
def get_mirror_giturl(submod_name):
"""Gets the submodule's url on mirror server.
Retrurn the download address of the submodule on the mirror server from the submod_name.
"""
mirror_url = 'https://gitee.com/RT-Thread-Mirror/submod_' + submod_name + '.git'
return mirror_url
def modify_submod_file_to_mirror(submod_path):
"""Modify the.gitmodules file based on the submodule to be updated"""
replace_list = []
try:
with open(submod_path, 'r') as f:
for line in f:
line = line.replace('\t', '').replace(' ', '').replace('\n', '').replace('\r', '')
if line.startswith('url'):
submod_git_url = line.split('=')[1]
submodule_name = submod_git_url.split('/')[-1].replace('.git', '')
replace_url = get_mirror_giturl(submodule_name)
# print(replace_url)
query_submodule_name = 'submod_' + submodule_name
# print(query_submodule_name)
get_package_url, get_ver_sha = get_url_from_mirror_server(
query_submodule_name, 'latest')
if get_package_url != None and determine_url_valid(get_package_url):
replace_list.append(
(submod_git_url, replace_url, submodule_name))
with open(submod_path, 'r+') as f:
submod_file_count = f.read()
write_content = submod_file_count
for item in replace_list:
write_content = write_content.replace(item[0], item[1])
with open(submod_path, 'w') as f:
f.write(str(write_content))
return replace_list
except Exception, e:
print('e.message:%s\t' % e.message)
def get_url_from_mirror_server(pkgs_name_in_json, pkgs_ver):
"""Get the download address from the mirror server based on the package name."""
payload_pkgs_name_in_json = pkgs_name_in_json.encode("utf-8")
payload = {
"userName": "RT-Thread",
"packages": [
{
"name": "NULL",
}
]
}
payload["packages"][0]['name'] = payload_pkgs_name_in_json
try:
r = requests.post(
"http://packages.rt-thread.org/packages/queries", data=json.dumps(payload))
# print(r.status_code)
if r.status_code == requests.codes.ok:
package_info = json.loads(r.text)
# print(package_info)
# Can't find package,change git package SHA if it's a git
# package
if len(package_info['packages']) == 0:
print("Package was NOT found on mirror server. Using a non-mirrored address to download.")
return None, None
else:
for item in package_info['packages'][0]['packages_info']['site']:
if item['version'] == pkgs_ver:
# Change download url
download_url = item['URL']
if download_url[-4:] == '.git':
# Change git package SHA
repo_sha = item['VER_SHA']
return download_url, repo_sha
return download_url, None
print("\nTips : \nThe system needs to be upgraded.")
print("Please use the <pkgs --upgrade> command to upgrade packages index.\n")
return None, None
except Exception, e:
# print('e.message:%s\t' % e.message)
print("\nThe mirror server could not be contacted. Please check your network connection.")
return None, None
def install_pkg(env_root, pkgs_root, bsp_root, pkg):
"""Install the required packages."""
# default true
ret = True
local_pkgs_path = os.path.join(env_root, 'local_pkgs')
bsp_pkgs_path = os.path.join(bsp_root, 'packages')
# get the .config file from env
env_kconfig_path = os.path.join(env_root, 'tools\scripts\cmds')
env_config_file = os.path.join(env_kconfig_path, '.config')
package = Package()
pkg_path = pkg['path']
if pkg_path[0] == '/' or pkg_path[0] == '\\':
pkg_path = pkg_path[1:]
pkg_path = os.path.join(pkgs_root, pkg_path, 'package.json')
package.parse(pkg_path)
url_from_json = package.get_url(pkg['ver'])
package_url = package.get_url(pkg['ver'])
pkgs_name_in_json = package.get_name()
if package_url[-4:] == '.git':
ver_sha = package.get_versha(pkg['ver'])
# print("==================================================>")
# print("packages name :"%pkgs_name_in_json.encode("utf-8"))
# print("ver :"%pkg['ver'])
# print("url :"%package_url.encode("utf-8"))
# print("url_from_json : "%url_from_json.encode("utf-8"))
# print("==================================================>")
get_package_url = None
get_ver_sha = None
upstream_change_flag = False
try:
if (not os.path.isfile(env_config_file)) or (os.path.isfile(env_config_file) and find_macro_in_config(env_config_file, 'SYS_PKGS_DOWNLOAD_ACCELERATE')):
get_package_url, get_ver_sha = get_url_from_mirror_server(pkgs_name_in_json, pkg['ver'])
# determine whether the package package url is valid
if get_package_url != None and determine_url_valid(get_package_url):
package_url = get_package_url
if get_ver_sha != None:
ver_sha = get_ver_sha
upstream_change_flag = True
except Exception, e:
# print('e.message:%s\t' % e.message)
print("Failed to connect to the mirror server, package will be downloaded from non-mirror server.\n")
if package_url[-4:] == '.git':
try:
repo_path = os.path.join(bsp_pkgs_path, pkgs_name_in_json)
repo_path = repo_path + '-' + pkg['ver']
repo_path_full = '"' + repo_path + '"'
cmd = 'git clone ' + package_url + ' ' + repo_path_full
execute_command(cmd, cwd=bsp_pkgs_path)
cmd = 'git checkout -q ' + ver_sha
execute_command(cmd, cwd=repo_path)
except Exception, e:
print("\nFailed to download software package with git. Please check the network connection.")
return False
if upstream_change_flag:
cmd = 'git remote set-url origin ' + url_from_json
execute_command(cmd, cwd=repo_path)
# If there is a .gitmodules file in the package, prepare to update submodule.
submod_path = os.path.join(repo_path, '.gitmodules')
if os.path.isfile(submod_path):
print("Start to update submodule")
# print("开始更新软件包子模块")
if (not os.path.isfile(env_config_file)) or (os.path.isfile(env_config_file) and find_macro_in_config(env_config_file, 'SYS_PKGS_DOWNLOAD_ACCELERATE')):
# print("开启了镜像加速,开始修改 .gitmodules 文件")
replace_list = modify_submod_file_to_mirror(submod_path) # Modify .gitmodules file
# print("开始执行更新动作")
cmd = 'git submodule update --init --recursive'
execute_command(cmd, cwd=repo_path)
if (not os.path.isfile(env_config_file)) or (os.path.isfile(env_config_file) and find_macro_in_config(env_config_file, 'SYS_PKGS_DOWNLOAD_ACCELERATE')):
if len(replace_list):
for item in replace_list:
submod_dir_path = os.path.join(repo_path, item[2])
if os.path.isdir(submod_dir_path):
cmd = 'git remote set-url origin ' + item[0]
execute_command(cmd, cwd=submod_dir_path)
if (not os.path.isfile(env_config_file)) or (os.path.isfile(env_config_file) and find_macro_in_config(env_config_file, 'SYS_PKGS_DOWNLOAD_ACCELERATE')):
if os.path.isfile(submod_path):
cmd = 'git checkout .gitmodules'
execute_command(cmd, cwd=repo_path)
else:
# Download a package of compressed package type.
if not package.download(pkg['ver'], local_pkgs_path.decode("gbk"), package_url):
return False
pkg_dir = package.get_filename(pkg['ver'])
pkg_dir = os.path.splitext(pkg_dir)[0]
pkg_fullpath = os.path.join(local_pkgs_path, package.get_filename(pkg['ver']))
if not archive.packtest(pkg_fullpath.encode("gbk")):
print("package : %s is invalid"%pkg_fullpath.encode("utf-8"))
return False
# unpack package
if not os.path.exists(pkg_dir.encode("gbk")):
try:
if not package.unpack(pkg_fullpath.encode("gbk"), bsp_pkgs_path, pkg, pkgs_name_in_json.encode("gbk")):
ret = False
except Exception, e:
os.remove(pkg_fullpath)
ret = False
print('e.message: %s\t' % e.message)
else:
print("The file does not exist.")
return ret
def package_list():
"""Print the packages list in env.
Read the.config file in the BSP directory,
and list the version number of the selected package.
"""
fn = '.config'
env_root = Import('env_root')
pkgs_root = Import('pkgs_root')
if not os.path.isfile(fn):
if platform.system() == "Windows":
os.system('chcp 65001 > nul')
print ("\n\033[1;31;40m当前路径下没有发现 .config 文件,请确保当前目录为 BSP 根目录。\033[0m")
print ("\033[1;31;40m如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。\033[0m\n")
print ('\033[1;31;40mNo system configuration file : .config.\033[0m')
print ('\033[1;31;40mYou should use < menuconfig > command to config bsp first.\033[0m')
if platform.system() == "Windows":
os.system('chcp 437 > nul')
return
pkgs = kconfig.parse(fn)
for pkg in pkgs:
package = Package()
pkg_path = pkg['path']
if pkg_path[0] == '/' or pkg_path[0] == '\\':
pkg_path = pkg_path[1:]
pkg_path = os.path.join(pkgs_root, pkg_path, 'package.json')
package.parse(pkg_path)
pkgs_name_in_json = package.get_name()
print ("package name : %s, ver : %s "%(pkgs_name_in_json.encode("utf-8"), pkg['ver'].encode("utf-8")))
if not pkgs:
print ("Packages list is empty.")
print ('You can use < menuconfig > command to select online packages.')
print ('Then use < pkgs --update > command to install them.')
return
def sub_list(aList, bList):
"""Return the items in aList but not in bList."""
tmp = []
for a in aList:
if a not in bList:
tmp.append(a)
return tmp
def and_list(aList, bList):
"""Return the items in aList and in bList."""
tmp = []
for a in aList:
if a in bList:
tmp.append(a)
return tmp
def update_submodule(repo_path):
"""Update the submodules in the repository."""
submod_path = os.path.join(repo_path, '.gitmodules')
if os.path.isfile(submod_path):
print("Please wait a few seconds in order to update the submodule.")
cmd = 'git submodule init -q'
execute_command(cmd, cwd=repo_path)
cmd = 'git submodule update'
execute_command(cmd, cwd=repo_path)
print("Submodule update successful")
def update_latest_packages(pkgs_fn, bsp_packages_path):
""" update the packages that are latest version.
If the selected package is the latest version,
check to see if it is the latest version after the update command,
if not, then update the latest version from the remote repository.
If the download has a conflict, you are currently using the prompt
message provided by git.
"""
env_root = Import('env_root')
pkgs_root = Import('pkgs_root')
env_kconfig_path = os.path.join(env_root, 'tools\scripts\cmds')
env_config_file = os.path.join(env_kconfig_path, '.config')
with open(pkgs_fn, 'r') as f:
read_back_pkgs_json = json.load(f)
for pkg in read_back_pkgs_json:
package = Package()
pkg_path = pkg['path']
if pkg_path[0] == '/' or pkg_path[0] == '\\':
pkg_path = pkg_path[1:]
pkg_path = os.path.join(pkgs_root, pkg_path, 'package.json')
package.parse(pkg_path)
pkgs_name_in_json = package.get_name()
# Find out the packages which version is 'latest'
if pkg['ver'] == "latest_version" or pkg['ver'] == "latest":
repo_path = os.path.join(bsp_packages_path, pkgs_name_in_json)
repo_path = get_pkg_folder_by_orign_path(repo_path, pkg['ver'])
try:
# If mirror acceleration is enabled, get the update address from
# the mirror server.
if (not os.path.isfile(env_config_file)) or (os.path.isfile(env_config_file) and find_macro_in_config(env_config_file, 'SYS_PKGS_DOWNLOAD_ACCELERATE')):
payload_pkgs_name_in_json = pkgs_name_in_json.encode("utf-8")
# Change repo's upstream address.
mirror_url = get_url_from_mirror_server(
payload_pkgs_name_in_json, pkg['ver'])
if mirror_url[0] != None:
cmd = 'git remote set-url origin ' + mirror_url[0]
git_cmd_exec(cmd, repo_path)
except Exception, e:
print("Failed to connect to the mirror server, using non-mirror server to update.")
# Update the package repository from upstream.
cmd = 'git pull'
git_cmd_exec(cmd, repo_path)
# If the package has submodules, update the submodules.
update_submodule(repo_path)
# recover origin url to the path which get from packages.json file
if package.get_url(pkg['ver']):
cmd = 'git remote set-url origin ' + \
package.get_url(pkg['ver'])
git_cmd_exec(cmd, repo_path)
else:
print("Can't find the package : %s's url in file : %s" %
(payload_pkgs_name_in_json.encode("utf-8"), pkg_path.encode("utf-8")))
print("==============================> %s update done \n" %
(pkgs_name_in_json.encode("utf-8")))
def pre_package_update():
""" Make preparations before updating the software package. """
bsp_root = Import('bsp_root')
env_root = Import('env_root')
if not os.path.exists('.config'):
if platform.system() == "Windows":
os.system('chcp 65001 > nul')
print ("\n\033[1;31;40m当前路径下没有发现 .config 文件,请确保当前目录为 BSP 根目录。\033[0m")
print ("\033[1;31;40m如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。\033[0m\n")
print ('No system configuration file : .config.')
print ('You should use < menuconfig > command to config bsp first.')
if platform.system() == "Windows":
os.system('chcp 437 > nul')
return False
bsp_packages_path = os.path.join(bsp_root, 'packages')
if not os.path.exists(bsp_packages_path):
os.mkdir("packages")
os.chdir(bsp_packages_path)
fp = open("pkgs.json", 'w')
fp.write("[]")
fp.close()
fp = open("pkgs_error.json", 'w')
fp.write("[]")
fp.close()
os.chdir(bsp_root)
# prepare target packages file
dbsqlite_pathname = os.path.join(bsp_packages_path, 'packages.dbsqlite')
Export('dbsqlite_pathname')
dbsqlite_pathname = dbsqlite_pathname.decode('gbk')
# Avoid creating tables more than one time
if not os.path.isfile(dbsqlite_pathname):
conn = pkgsdb.get_conn(dbsqlite_pathname)
sql = '''CREATE TABLE packagefile
(pathname TEXT ,package TEXT ,md5 TEXT );'''
pkgsdb.create_table(conn, sql)
fn = '.config'
pkgs = kconfig.parse(fn)
newpkgs = pkgs
if not os.path.exists(bsp_packages_path):
os.mkdir(bsp_packages_path)
pkgs_fn = os.path.join(bsp_packages_path, 'pkgs.json')
# regenerate file : packages/pkgs.json
if not os.path.exists(pkgs_fn):
os.chdir(bsp_packages_path)
fp = open("pkgs.json", 'w')
fp.write("[]")
fp.close()
os.chdir(bsp_root)
# Reading data back from pkgs.json
with open(pkgs_fn, 'r') as f:
oldpkgs = json.load(f)
# regenerate file : packages/pkgs_error.json
pkgs_error_list_fn = os.path.join(
bsp_packages_path, 'pkgs_error.json')
if not os.path.exists(pkgs_error_list_fn):
os.chdir(bsp_packages_path)
fp = open("pkgs_error.json", 'w')
fp.write("[]")
fp.close()
os.chdir(bsp_root)
# Reading data back from pkgs_error.json
with open(pkgs_error_list_fn, 'r') as f:
pkgs_error = json.load(f)
# create SConscript file
if not os.path.isfile(os.path.join(bsp_packages_path, 'SConscript')):
bridge_script = file(os.path.join(
bsp_packages_path, 'SConscript'), 'w')
bridge_script.write(Bridge_SConscript)
bridge_script.close()
return [oldpkgs, newpkgs, pkgs_error, pkgs_fn, pkgs_error_list_fn, bsp_packages_path, dbsqlite_pathname]
def handle_download_error_packages(pkgs_fn, bsp_packages_path):
""" handle download error packages.
Check to see if the packages stored in the Json file list actually exist,
and then download the packages if they don't exist.
"""
with open(pkgs_fn, 'r') as f:
read_back_pkgs_json = json.load(f)
error_packages_list = []
for pkg in read_back_pkgs_json:
removepath = get_package_remove_path(pkg, bsp_packages_path)
if os.path.exists(removepath):
continue
else:
error_packages_list.append(pkg)
# Handle the failed download packages
get_flag = error_packages_handle(
error_packages_list, read_back_pkgs_json, pkgs_fn)
return get_flag
def write_storage_file(pkgs_fn, newpkgs):
"""Writes the updated configuration to pkgs.json file.
Packages that are not downloaded correctly will be redownloaded at the
next update.
"""
pkgs_file = file(pkgs_fn, 'w')
pkgs_file.write(json.dumps(newpkgs, indent=1))
pkgs_file.close()
def package_update(isDeleteOld=False):
"""Update env's packages.
Compare the old and new software package list and update the package.
Remove unwanted packages and download the newly selected package.-
Check if the files in the deleted packages have been changed, and if so,
remind the user saved the modified file.
"""
sys_value = pre_package_update()
if not sys_value:
return
bsp_root = Import('bsp_root')
env_root = Import('env_root')
pkgs_root = Import('pkgs_root')
flag = True
# According to the env version, whether Chinese output is supported or not
if determine_support_chinese(env_root):
if platform.system() == "Windows":
os.system('chcp 65001 > nul')
oldpkgs = sys_value[0]
newpkgs = sys_value[1]
pkgs_delete_error_list = sys_value[2]
pkgs_fn = sys_value[3]
pkgs_error_list_fn = sys_value[4]
bsp_packages_path = sys_value[5]
dbsqlite_pathname = sys_value[6]
if len(pkgs_delete_error_list):
for error_package in pkgs_delete_error_list:
removepath_ver = get_package_remove_path(
error_package, bsp_packages_path)
if os.path.isdir(removepath_ver):
print("\nError: %s package delete failed, begin to remove it."%
error_package['name'].encode("utf-8"))
if rm_package(removepath_ver) == False:
print("Error: Delete package %s failed! Please delete the folder manually.\n"%error_package['name'].encode("utf-8"))
return
# 1.in old ,not in new : Software packages that need to be removed.
casedelete = sub_list(oldpkgs, newpkgs)
pkgs_delete_fail_list = []
for pkg in casedelete:
removepath_ver = get_package_remove_path(pkg, bsp_packages_path)
removepath_git = os.path.join(removepath_ver, '.git')
# Delete. Git directory.
if os.path.isdir(removepath_ver) and os.path.isdir(removepath_git):
gitdir = removepath_ver
print ("\nStart to remove %s \nplease wait..." % gitdir.encode("utf-8"))
if isDeleteOld:
if rm_package(gitdir) == False:
print("Floder delete fail: %s" % gitdir.encode("utf-8"))
print("Please delete this folder manually.")
else:
print (
"The folder is managed by git. Do you want to delete this folder?\n")
rc = raw_input(
'Press the Y Key to delete the folder or just press Enter to keep it : ')
if rc == 'y' or rc == 'Y':
try:
if rm_package(gitdir) == False:
pkgs_delete_fail_list.append(pkg)
print("Error: Please delete the folder manually.")
except Exception, e:
print('Error message:%s%s. error.message: %s\n\t' %
("Delete folder failed: ", gitdir.encode("utf-8"), e.message))
else:
if os.path.isdir(removepath_ver):
print("Start to remove %s \nplease wait..." % removepath_ver.encode("utf-8"))
try:
pkgsdb.deletepackdir(removepath_ver, dbsqlite_pathname)
except Exception, e:
pkgs_delete_fail_list.append(pkg)
print('Error message:\n%s %s. %s \n\t' % (
"Delete folder failed, please delete the folder manually", removepath_ver.encode("utf-8"), e.message))
if len(pkgs_delete_fail_list):
# write error messages
pkgs_file = file(pkgs_error_list_fn, 'w')
pkgs_file.write(json.dumps(pkgs_delete_fail_list, indent=1))
pkgs_file.close()
return
else:
# write error messages
pkgs_file = file(pkgs_error_list_fn, 'w')
pkgs_file.write(json.dumps(pkgs_delete_fail_list, indent=1))
pkgs_file.close()
# 2.in new not in old : Software packages to be installed.
# If the package download fails, record it, and then download again when
# the update command is executed.
casedownload = sub_list(newpkgs, oldpkgs)
# print 'in new not in old:', casedownload
pkgs_download_fail_list = []
for pkg in casedownload:
if install_pkg(env_root, pkgs_root, bsp_root, pkg):
print("==============================> %s %s is downloaded successfully. \n" % (
pkg['name'], pkg['ver']))
else:
# If the PKG download fails, record it in the
# pkgs_download_fail_list.
pkgs_download_fail_list.append(pkg)
print pkg, 'download failed.'
flag = False
# Get the currently updated configuration.
newpkgs = sub_list(newpkgs, pkgs_download_fail_list)
# Give hints based on the success of the download.
if len(pkgs_download_fail_list):
print("\nPackage download failed list:" )
for item in pkgs_download_fail_list:
print(item)
print("You need to reuse the <pkgs -update> command to download again.")
# update pkgs.json and SConscript
write_storage_file(pkgs_fn, newpkgs)
# handle download error packages.
get_flag = handle_download_error_packages(
pkgs_fn, bsp_packages_path)
if get_flag != None:
flag = get_flag
# Update the software packages, which the version is 'latest'
try:
update_latest_packages(pkgs_fn, bsp_packages_path)
except KeyboardInterrupt:
flag = False
if flag:
print ("Operation completed successfully.")
else:
print ("Operation failed.")
def package_wizard():
"""Packages creation wizard.
The user enters the package name, version number, category, and automatically generates the package index file.
"""
# Welcome
print ('\033[4;32;40mWelcome to using package wizard, please follow below steps.\033[0m\n')
#Simple introduction about the wizard
print ('note :')
print (' \033[5;35;40m[ ]\033[0m means default setting or optional information.')
print (' \033[5;35;40mEnter\033[0m means using default option or ending and proceeding to the next step.')
#first step
print ('\033[5;33;40m\n1.Please input a new package name :\033[0m')
name = raw_input()
while name == '' or name.isspace() == True :
print ('\033[1;31;40mError: you must input a package name. Try again.\033[0m')
name = raw_input()
default_description = 'Please add description of ' + name + ' in English.'
#description = user_input('menuconfig option name,default:\n',default_description)
description = default_description
description_zh = "请添加软件包 " + name +" 的中文描述。"
#second step
ver = user_input('\033[5;33;40m\n2.Please input this package version, default :\033[0m', '1.0.0')
ver_standard = ver.replace('.', '')
#keyword = user_input('keyword,default:\n', name)
keyword = name
#third step
packageclass = ('iot', 'language', 'misc', 'multimedia',
'peripherals', 'security', 'system', 'tools', 'peripherals/sensors')
print ('\033[5;33;40m\n3.Please choose a package category from 1 to 9 : \033[0m')
print ("\033[1;32;40m[1:iot]|[2:language]|[3:misc]|[4:multimedia]|[5:peripherals]|[6:security]|[7:system]|[8:tools]|[9:sensors]\033[0m")
classnu = raw_input()
while classnu == '' or classnu.isdigit()== False or int(classnu) < 1 or int(classnu) >9:
if classnu == '' :
print ('\033[1;31;40mError: You must choose a package category. Try again.\033[0m')
else :
print ('\033[1;31;40mError: You must input an integer number from 1 to 9. Try again.\033[0m')
classnu = raw_input()
pkgsclass = packageclass[int(classnu) - 1]
#fourth step
print ('\033[5;33;40m\n4.Please input author name of this package :\033[0m')
authorname = raw_input()
while authorname == '':
print ('\033[1;31;40mError: you must input author name of this package. Try again.\033[0m')
authorname = raw_input()
#fifth step
authoremail = raw_input('\033[5;33;40m\n5.Please input author email of this package :\n\033[0m')
while authoremail == '':
print ('\033[1;31;40mError: you must input author email of this package. Try again.\033[0m')
authoremail = raw_input()
#sixth step
print ('\033[5;33;40m\n6.Please choose a license of this package from 1 to 4, or input other license name :\033[0m')
print ("\033[1;32;40m[1:Apache-2.0]|[2:MIT]|[3:LGPL-2.1]|[4:GPL-2.0]\033[0m")
license_index = ('Apache-2.0', 'MIT', 'LGPL-2.1', 'GPL-2.0')
license_class = raw_input()
while license_class == '' :
print ('\033[1;31;40mError: you must choose or input a license of this package. Try again.\033[0m')
license_class = raw_input()
if license_class.isdigit()== True and int(license_class) >= 1 and int(license_class) <= 4:
license = license_index[int(license_class) - 1]
else :
license = license_class
#seventh step
print ('\033[5;33;40m\n7.Please input the repository of this package :\033[0m')
print ("\033[1;32;40mFor example, hello package's repository url is 'https://github.com/RT-Thread-packages/hello'.\033[0m")
repository = raw_input()
while repository == '':
print ('\033[1;31;40mError: you must input a repository of this package. Try again.\033[0m')
repository = raw_input()
pkg_path = name
if not os.path.exists(pkg_path):
os.mkdir(pkg_path)
else:
print ("\033[1;31;40mError: the package directory is exits!\033[0m")
s = Template(Kconfig_file)
uppername = str.upper(name)
kconfig = s.substitute(name=uppername, description=description, version=ver,
pkgs_class=pkgsclass, lowercase_name=name, version_standard=ver_standard)
f = file(os.path.join(pkg_path, 'Kconfig'), 'wb')
f.write(kconfig)
f.close()
s = Template(Package_json_file)
package = s.substitute(name=name, pkgsclass=pkgsclass,authorname=authorname,authoremail=authoremail, description=description, description_zh=description_zh,version=ver, keyword=keyword,license=license, repository=repository)
f = file(os.path.join(pkg_path, 'package.json'), 'wb')
f.write(package)
f.close()
print ('\nThe package index has been created \033[1;32;40msuccessfully\033[0m.')
print ('Please \033[5;34;40mupdate\033[0m other information of this package based on Kconfig and package.json in directory '+name+'.')
def upgrade_packages_index():
"""Update the package repository index."""
env_root = Import('env_root')
pkgs_root = Import('pkgs_root')
env_kconfig_path = os.path.join(env_root, 'tools\scripts\cmds')
env_config_file = os.path.join(env_kconfig_path, '.config')
if (not os.path.isfile(env_config_file)) or (os.path.isfile(env_config_file) and find_macro_in_config(env_config_file, 'SYS_PKGS_DOWNLOAD_ACCELERATE')):
get_package_url, get_ver_sha = get_url_from_mirror_server('packages', 'latest')
if get_package_url != None:
git_repo = get_package_url
else:
print("Failed to get url from mirror server. Using default url.")
git_repo = 'https://gitee.com/RT-Thread-Mirror/packages.git'
else:
git_repo = 'https://github.com/RT-Thread/packages.git'
packages_root = pkgs_root
pkgs_path = os.path.join(packages_root, 'packages')
if not os.path.isdir(pkgs_path):
cmd = 'git clone ' + git_repo + ' ' + pkgs_path
os.system(cmd)
print ("upgrade from :%s" % (git_repo.encode("utf-8")))
else:
print("Begin to upgrade env packages.")
cmd = r'git pull ' + git_repo
execute_command(cmd, cwd=pkgs_path)
print("==============================> Env packages upgrade done \n")
for filename in os.listdir(packages_root):
package_path = os.path.join(packages_root, filename)
if os.path.isdir(package_path):
if package_path == pkgs_path:
continue
if os.path.isdir(os.path.join(package_path, '.git')):
print("Begin to upgrade %s." % filename)
cmd = r'git pull'
execute_command(cmd, cwd=package_path)
print("==============================> Env %s update done \n" % filename)
def upgrade_env_script():
"""Update env function scripts."""
print("Begin to upgrade env scripts.")
env_root = Import('env_root')
env_kconfig_path = os.path.join(env_root, 'tools\scripts\cmds')
env_config_file = os.path.join(env_kconfig_path, '.config')
if (not os.path.isfile(env_config_file)) or (os.path.isfile(env_config_file) and find_macro_in_config(env_config_file, 'SYS_PKGS_DOWNLOAD_ACCELERATE')):
get_package_url, get_ver_sha = get_url_from_mirror_server('env', 'latest')
if get_package_url != None:
env_scripts_repo = get_package_url
else:
print("Failed to get url from mirror server. Using default url.")
env_scripts_repo = 'https://gitee.com/RT-Thread-Mirror/env.git'
else:
env_scripts_repo = 'https://github.com/RT-Thread/env.git'
env_scripts_root = os.path.join(env_root, 'tools', 'scripts')
cmd = r'git pull ' + env_scripts_repo
execute_command(cmd, cwd=env_scripts_root)
print("==============================> Env scripts upgrade done \n")
def package_upgrade():
"""Update the package repository directory and env function scripts."""
upgrade_packages_index()
upgrade_env_script()
def cmd(args):
"""Env's pkgs command execution options."""
if args.package_update_y:
package_update(True)
elif args.package_update:
package_update()
elif args.package_create:
package_wizard()
elif args.package_list:
package_list()
elif args.package_upgrade:
package_upgrade()
elif args.package_print_env:
package_print_env()
else:
os.system('pkgs -h')
def add_parser(sub):
"""The pkgs command parser for env."""
parser = sub.add_parser('package', help=__doc__, description=__doc__)
parser.add_argument('--force-update',
help='force update and clean packages, install or remove the packages by your settings in menuconfig',
action='store_true',
default=False,
dest='package_update_y')
parser.add_argument('--update',
help='update packages, install or remove the packages by your settings in menuconfig',
action='store_true',
default=False,
dest='package_update')
parser.add_argument('--list',
help='list target packages',
action='store_true',
default=False,
dest='package_list')
parser.add_argument('--wizard',
help='create a new package with wizard',
action='store_true',
default=False,
dest='package_create')
parser.add_argument('--upgrade',
help='upgrade local packages list and ENV scripts from git repo',
action='store_true',
default=False,
dest='package_upgrade')
parser.add_argument('--printenv',
help='print environmental variables to check',
action='store_true',
default=False,
dest='package_print_env')
# parser.add_argument('--upgrade', dest='reposource', required=False,
# help='add source & update packages repo ')
parser.set_defaults(func=cmd)
|
[
2,
532,
9,
12,
19617,
25,
40477,
12,
23,
532,
9,
12,
201,
198,
2,
201,
198,
2,
9220,
220,
220,
220,
220,
220,
1058,
23991,
62,
26495,
13,
9078,
201,
198,
2,
770,
2393,
318,
636,
286,
11923,
12,
16818,
11923,
2640,
201,
198,
2,
27975,
38162,
9947,
357,
34,
8,
4793,
532,
2864,
11,
11923,
12,
16818,
7712,
4816,
201,
198,
2,
201,
198,
2,
220,
770,
1430,
318,
1479,
3788,
26,
345,
460,
17678,
4163,
340,
290,
14,
273,
13096,
201,
198,
2,
220,
340,
739,
262,
2846,
286,
262,
22961,
3611,
5094,
13789,
355,
3199,
416,
201,
198,
2,
220,
262,
3232,
10442,
5693,
26,
2035,
2196,
362,
286,
262,
13789,
11,
393,
201,
198,
2,
220,
357,
265,
534,
3038,
8,
597,
1568,
2196,
13,
201,
198,
2,
201,
198,
2,
220,
770,
1430,
318,
9387,
287,
262,
2911,
326,
340,
481,
307,
4465,
11,
201,
198,
2,
220,
475,
42881,
15529,
34764,
56,
26,
1231,
772,
262,
17142,
18215,
286,
201,
198,
2,
220,
34482,
3398,
1565,
5603,
25382,
393,
376,
46144,
7473,
317,
16652,
2149,
37232,
33079,
48933,
13,
220,
4091,
262,
201,
198,
2,
220,
22961,
3611,
5094,
13789,
329,
517,
3307,
13,
201,
198,
2,
201,
198,
2,
220,
921,
815,
423,
2722,
257,
4866,
286,
262,
22961,
3611,
5094,
13789,
1863,
201,
198,
2,
220,
351,
428,
1430,
26,
611,
407,
11,
3551,
284,
262,
3232,
10442,
5693,
11,
3457,
1539,
201,
198,
2,
220,
6885,
14021,
3530,
11,
19383,
22343,
11,
6182,
11,
8779,
657,
2481,
940,
12,
1485,
486,
4916,
13,
201,
198,
2,
201,
198,
2,
9794,
5972,
82,
25,
201,
198,
2,
7536,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6434,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11822,
201,
198,
2,
2864,
12,
2713,
12,
2078,
220,
220,
220,
220,
10216,
38,
2135,
220,
220,
220,
220,
220,
3060,
6634,
1321,
201,
198,
2,
2864,
12,
1065,
12,
2078,
220,
220,
220,
220,
34705,
12555,
220,
220,
220,
220,
3060,
5301,
1321,
290,
2883,
5301,
16009,
201,
198,
2,
13130,
12,
486,
12,
2998,
220,
220,
220,
220,
10216,
38,
2135,
220,
220,
220,
220,
220,
383,
6152,
6971,
3384,
69,
12,
23,
21004,
201,
198,
2,
201,
198,
201,
198,
11748,
28686,
201,
198,
11748,
33918,
201,
198,
11748,
479,
11250,
201,
198,
11748,
279,
10025,
82,
9945,
201,
198,
11748,
4423,
346,
201,
198,
11748,
3859,
201,
198,
11748,
850,
14681,
201,
198,
11748,
640,
201,
198,
11748,
18931,
201,
198,
11748,
15424,
201,
198,
11748,
25064,
201,
198,
201,
198,
28311,
25,
201,
198,
220,
220,
220,
1330,
7007,
201,
198,
16341,
17267,
12331,
25,
201,
198,
220,
220,
220,
3601,
7203,
17174,
4557,
59,
77,
1,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
17267,
7007,
8265,
4049,
13,
59,
77,
1,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
4222,
2721,
7007,
8265,
717,
13,
59,
77,
1,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
7347,
2721,
2239,
7479,
77,
1,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
720,
7347,
2721,
7007,
59,
77,
1,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
3141,
2721,
2239,
7479,
77,
1,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
720,
21061,
15409,
12,
1136,
2721,
21015,
12,
8897,
3558,
59,
77,
1,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17174,
4557,
59,
77,
4943,
201,
198,
201,
198,
6738,
5301,
1330,
15717,
11,
10290,
62,
6173,
684,
6519,
11,
509,
11250,
62,
7753,
11,
15717,
62,
17752,
62,
7753,
11,
1446,
684,
6519,
62,
7753,
201,
198,
6738,
410,
945,
1330,
17267,
11,
36472,
201,
198,
6738,
4731,
1330,
37350,
201,
198,
6738,
23991,
62,
26272,
11250,
1330,
1064,
62,
20285,
305,
62,
259,
62,
11250,
201,
198,
201,
198,
37811,
26495,
3141,
37811,
201,
198,
201,
198,
4299,
12260,
62,
21812,
7,
28758,
8841,
11,
269,
16993,
28,
14202,
11,
7582,
28,
17821,
2599,
201,
198,
220,
220,
220,
37227,
23002,
1133,
262,
1080,
3141,
379,
262,
7368,
2209,
526,
15931,
201,
198,
201,
198,
220,
220,
220,
611,
7582,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
23991,
8841,
62,
4868,
796,
23991,
8841,
201,
198,
201,
198,
220,
220,
220,
850,
796,
850,
14681,
13,
47,
9654,
7,
28758,
8841,
62,
4868,
11,
269,
16993,
28,
66,
16993,
11,
14367,
259,
28,
7266,
14681,
13,
47,
4061,
36,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14367,
448,
28,
7266,
14681,
13,
47,
4061,
36,
11,
7582,
28,
29149,
11,
42684,
7857,
28,
1821,
4846,
8,
201,
198,
201,
198,
220,
220,
220,
14367,
448,
62,
2536,
796,
10148,
201,
198,
220,
220,
220,
981,
850,
13,
30393,
3419,
318,
6045,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
14367,
448,
62,
2536,
15853,
850,
13,
19282,
448,
13,
961,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
16,
8,
201,
198,
201,
198,
220,
220,
220,
1441,
14367,
448,
62,
2536,
201,
198,
201,
198,
4299,
2836,
62,
15414,
7,
19662,
11,
4277,
62,
8367,
2599,
201,
198,
220,
220,
220,
37227,
38,
1039,
262,
2836,
338,
10586,
5128,
526,
15931,
201,
198,
201,
198,
220,
220,
220,
611,
4277,
62,
8367,
14512,
10148,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
705,
4,
82,
58,
4,
82,
49946,
4064,
357,
19662,
11,
4277,
62,
8367,
8,
201,
198,
201,
198,
220,
220,
220,
3601,
7,
19662,
8,
201,
198,
220,
220,
220,
1988,
796,
8246,
62,
15414,
3419,
201,
198,
220,
220,
220,
611,
1988,
6624,
10148,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
4277,
62,
8367,
201,
198,
201,
198,
220,
220,
220,
1441,
1988,
201,
198,
201,
198,
201,
198,
4299,
651,
62,
10793,
1472,
62,
18300,
6371,
7,
7266,
4666,
62,
3672,
2599,
201,
198,
220,
220,
220,
37227,
38,
1039,
262,
850,
21412,
338,
19016,
319,
10162,
4382,
13,
201,
198,
201,
198,
220,
220,
220,
4990,
81,
700,
262,
4321,
2209,
286,
262,
850,
21412,
319,
262,
10162,
4382,
422,
262,
850,
4666,
62,
3672,
13,
201,
198,
220,
220,
220,
37227,
201,
198,
201,
198,
220,
220,
220,
10162,
62,
6371,
796,
705,
5450,
1378,
70,
578,
68,
13,
785,
14,
14181,
12,
16818,
12,
27453,
1472,
14,
7266,
4666,
62,
6,
1343,
850,
4666,
62,
3672,
1343,
45302,
18300,
6,
201,
198,
220,
220,
220,
1441,
10162,
62,
6371,
201,
198,
201,
198,
201,
198,
4299,
13096,
62,
7266,
4666,
62,
7753,
62,
1462,
62,
10793,
1472,
7,
7266,
4666,
62,
6978,
2599,
201,
198,
220,
220,
220,
37227,
5841,
1958,
262,
13,
18300,
18170,
2393,
1912,
319,
262,
850,
21412,
284,
307,
6153,
37811,
201,
198,
201,
198,
220,
220,
220,
6330,
62,
4868,
796,
17635,
201,
198,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
7266,
4666,
62,
6978,
11,
705,
81,
11537,
355,
277,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1627,
287,
277,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1627,
796,
1627,
13,
33491,
10786,
59,
83,
3256,
10148,
737,
33491,
10786,
46083,
10148,
737,
33491,
10786,
59,
77,
3256,
10148,
737,
33491,
10786,
59,
81,
3256,
10148,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1627,
13,
9688,
2032,
342,
10786,
6371,
6,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
4666,
62,
18300,
62,
6371,
796,
1627,
13,
35312,
10786,
28,
11537,
58,
16,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
21412,
62,
3672,
796,
850,
4666,
62,
18300,
62,
6371,
13,
35312,
10786,
14,
11537,
58,
12,
16,
4083,
33491,
7,
4458,
18300,
3256,
10148,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6330,
62,
6371,
796,
651,
62,
10793,
1472,
62,
18300,
6371,
7,
7266,
21412,
62,
3672,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
33491,
62,
6371,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
7266,
21412,
62,
3672,
796,
705,
7266,
4666,
62,
6,
1343,
850,
21412,
62,
3672,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
22766,
62,
7266,
21412,
62,
3672,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
651,
62,
26495,
62,
6371,
11,
651,
62,
332,
62,
26270,
796,
651,
62,
6371,
62,
6738,
62,
10793,
1472,
62,
15388,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
7266,
21412,
62,
3672,
11,
705,
42861,
11537,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
651,
62,
26495,
62,
6371,
14512,
6045,
290,
5004,
62,
6371,
62,
12102,
7,
1136,
62,
26495,
62,
6371,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6330,
62,
4868,
13,
33295,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
7266,
4666,
62,
18300,
62,
6371,
11,
6330,
62,
6371,
11,
850,
21412,
62,
3672,
4008,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
7266,
4666,
62,
6978,
11,
705,
81,
10,
11537,
355,
277,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
4666,
62,
7753,
62,
9127,
796,
277,
13,
961,
3419,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
62,
11299,
796,
850,
4666,
62,
7753,
62,
9127,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2378,
287,
6330,
62,
4868,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3551,
62,
11299,
796,
3551,
62,
11299,
13,
33491,
7,
9186,
58,
15,
4357,
2378,
58,
16,
12962,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
7266,
4666,
62,
6978,
11,
705,
86,
11537,
355,
277,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
13,
13564,
7,
2536,
7,
13564,
62,
11299,
4008,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6330,
62,
4868,
201,
198,
201,
198,
220,
220,
220,
2845,
35528,
11,
304,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
68,
13,
20500,
25,
4,
82,
59,
83,
6,
4064,
304,
13,
20500,
8,
201,
198,
201,
198,
201,
198,
4299,
651,
62,
6371,
62,
6738,
62,
10793,
1472,
62,
15388,
7,
35339,
82,
62,
3672,
62,
259,
62,
17752,
11,
279,
10025,
82,
62,
332,
2599,
201,
198,
220,
220,
220,
37227,
3855,
262,
4321,
2209,
422,
262,
10162,
4382,
1912,
319,
262,
5301,
1438,
526,
15931,
201,
198,
201,
198,
220,
220,
220,
21437,
62,
35339,
82,
62,
3672,
62,
259,
62,
17752,
796,
279,
10025,
82,
62,
3672,
62,
259,
62,
17752,
13,
268,
8189,
7203,
40477,
12,
23,
4943,
201,
198,
220,
220,
220,
21437,
796,
1391,
201,
198,
220,
220,
220,
220,
220,
220,
220,
366,
7220,
5376,
1298,
366,
14181,
12,
16818,
1600,
201,
198,
220,
220,
220,
220,
220,
220,
220,
366,
43789,
1298,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
3672,
1298,
366,
33991,
1600,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
201,
198,
220,
220,
220,
1782,
201,
198,
220,
220,
220,
21437,
14692,
43789,
1,
7131,
15,
7131,
6,
3672,
20520,
796,
21437,
62,
35339,
82,
62,
3672,
62,
259,
62,
17752,
201,
198,
201,
198,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
374,
796,
7007,
13,
7353,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
4023,
1378,
43789,
13,
17034,
12,
16663,
13,
2398,
14,
43789,
14,
421,
10640,
1600,
1366,
28,
17752,
13,
67,
8142,
7,
15577,
2220,
4008,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
81,
13,
13376,
62,
8189,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
374,
13,
13376,
62,
8189,
6624,
7007,
13,
40148,
13,
482,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5301,
62,
10951,
796,
33918,
13,
46030,
7,
81,
13,
5239,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
26495,
62,
10951,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1680,
470,
1064,
5301,
11,
3803,
17606,
5301,
25630,
611,
340,
338,
257,
17606,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5301,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
26495,
62,
10951,
17816,
43789,
6,
12962,
6624,
657,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
27813,
373,
5626,
1043,
319,
10162,
4382,
13,
8554,
257,
1729,
12,
10793,
34640,
2209,
284,
4321,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
11,
6045,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2378,
287,
5301,
62,
10951,
17816,
43789,
6,
7131,
15,
7131,
6,
43789,
62,
10951,
6,
7131,
6,
15654,
6,
5974,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2378,
17816,
9641,
20520,
6624,
279,
10025,
82,
62,
332,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
9794,
4321,
19016,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4321,
62,
6371,
796,
2378,
17816,
21886,
20520,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4321,
62,
6371,
58,
12,
19,
47715,
6624,
45302,
18300,
10354,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
9794,
17606,
5301,
25630,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29924,
62,
26270,
796,
2378,
17816,
5959,
62,
37596,
20520,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4321,
62,
6371,
11,
29924,
62,
26270,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4321,
62,
6371,
11,
6045,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
59,
77,
43368,
1058,
3467,
77,
464,
1080,
2476,
284,
307,
17955,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
5492,
779,
262,
1279,
35339,
82,
1377,
929,
9526,
29,
3141,
284,
8515,
10392,
6376,
13,
59,
77,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
11,
6045,
201,
198,
201,
198,
220,
220,
220,
2845,
35528,
11,
304,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
10786,
68,
13,
20500,
25,
4,
82,
59,
83,
6,
4064,
304,
13,
20500,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
59,
77,
464,
10162,
4382,
714,
407,
307,
11237,
13,
4222,
2198,
534,
3127,
4637,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
11,
6045,
201,
198,
201,
198,
201,
198,
4299,
2721,
62,
35339,
7,
24330,
62,
15763,
11,
279,
10025,
82,
62,
15763,
11,
275,
2777,
62,
15763,
11,
279,
10025,
2599,
201,
198,
220,
220,
220,
37227,
15798,
262,
2672,
10392,
526,
15931,
201,
198,
201,
198,
220,
220,
220,
1303,
4277,
2081,
201,
198,
220,
220,
220,
1005,
796,
6407,
201,
198,
220,
220,
220,
1957,
62,
35339,
82,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
24330,
62,
15763,
11,
705,
12001,
62,
35339,
82,
11537,
201,
198,
220,
220,
220,
275,
2777,
62,
35339,
82,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
24145,
62,
15763,
11,
705,
43789,
11537,
201,
198,
201,
198,
220,
220,
220,
1303,
651,
262,
764,
11250,
2393,
422,
17365,
201,
198,
220,
220,
220,
17365,
62,
74,
11250,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
24330,
62,
15763,
11,
705,
31391,
59,
46521,
59,
28758,
82,
11537,
201,
198,
220,
220,
220,
17365,
62,
11250,
62,
7753,
796,
28686,
13,
6978,
13,
22179,
7,
24330,
62,
74,
11250,
62,
6978,
11,
45302,
11250,
11537,
201,
198,
201,
198,
220,
220,
220,
5301,
796,
15717,
3419,
201,
198,
220,
220,
220,
279,
10025,
62,
6978,
796,
279,
10025,
17816,
6978,
20520,
201,
198,
220,
220,
220,
611,
279,
10025,
62,
6978,
58,
15,
60,
6624,
31051,
6,
393,
279,
10025,
62,
6978,
58,
15,
60,
6624,
705,
6852,
10354,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
6978,
796,
279,
10025,
62,
6978,
58,
16,
47715,
201,
198,
220,
220,
220,
279,
10025,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
35339,
82,
62,
15763,
11,
279,
10025,
62,
6978,
11,
705,
26495,
13,
17752,
11537,
201,
198,
220,
220,
220,
5301,
13,
29572,
7,
35339,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
19016,
62,
6738,
62,
17752,
796,
5301,
13,
1136,
62,
6371,
7,
35339,
17816,
332,
6,
12962,
201,
198,
220,
220,
220,
5301,
62,
6371,
796,
5301,
13,
1136,
62,
6371,
7,
35339,
17816,
332,
6,
12962,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
3672,
62,
259,
62,
17752,
796,
5301,
13,
1136,
62,
3672,
3419,
201,
198,
201,
198,
220,
220,
220,
611,
5301,
62,
6371,
58,
12,
19,
47715,
6624,
45302,
18300,
10354,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3326,
62,
26270,
796,
5301,
13,
1136,
62,
690,
3099,
7,
35339,
17816,
332,
6,
12962,
201,
198,
201,
198,
220,
220,
220,
1303,
3601,
7203,
10052,
4770,
855,
29,
4943,
201,
198,
220,
220,
220,
1303,
3601,
7203,
43789,
1438,
1058,
1,
4,
35339,
82,
62,
3672,
62,
259,
62,
17752,
13,
268,
8189,
7203,
40477,
12,
23,
48774,
201,
198,
220,
220,
220,
1303,
3601,
7203,
332,
1058,
1,
4,
35339,
17816,
332,
6,
12962,
220,
201,
198,
220,
220,
220,
1303,
3601,
7203,
6371,
1058,
1,
4,
26495,
62,
6371,
13,
268,
8189,
7203,
40477,
12,
23,
48774,
220,
201,
198,
220,
220,
220,
1303,
3601,
7203,
6371,
62,
6738,
62,
17752,
1058,
36521,
6371,
62,
6738,
62,
17752,
13,
268,
8189,
7203,
40477,
12,
23,
48774,
201,
198,
220,
220,
220,
1303,
3601,
7203,
10052,
4770,
855,
29,
4943,
201,
198,
201,
198,
220,
220,
220,
651,
62,
26495,
62,
6371,
796,
6045,
201,
198,
220,
220,
220,
651,
62,
332,
62,
26270,
796,
6045,
201,
198,
220,
220,
220,
28717,
62,
3803,
62,
32109,
796,
10352,
201,
198,
201,
198,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
357,
1662,
28686,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
4008,
393,
357,
418,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
8,
290,
1064,
62,
20285,
305,
62,
259,
62,
11250,
7,
24330,
62,
11250,
62,
7753,
11,
705,
50,
16309,
62,
40492,
14313,
62,
41925,
35613,
62,
26861,
3698,
1137,
6158,
11537,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
651,
62,
26495,
62,
6371,
11,
651,
62,
332,
62,
26270,
796,
651,
62,
6371,
62,
6738,
62,
10793,
1472,
62,
15388,
7,
35339,
82,
62,
3672,
62,
259,
62,
17752,
11,
279,
10025,
17816,
332,
6,
12962,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
5004,
1771,
262,
5301,
5301,
19016,
318,
4938,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
651,
62,
26495,
62,
6371,
14512,
6045,
290,
5004,
62,
6371,
62,
12102,
7,
1136,
62,
26495,
62,
6371,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5301,
62,
6371,
796,
651,
62,
26495,
62,
6371,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
651,
62,
332,
62,
26270,
14512,
6045,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3326,
62,
26270,
796,
651,
62,
332,
62,
26270,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28717,
62,
3803,
62,
32109,
796,
6407,
201,
198,
220,
220,
220,
2845,
35528,
11,
304,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
10786,
68,
13,
20500,
25,
4,
82,
59,
83,
6,
4064,
304,
13,
20500,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
37,
6255,
284,
2018,
284,
262,
10162,
4382,
11,
5301,
481,
307,
15680,
422,
1729,
12,
10793,
1472,
4382,
13,
59,
77,
4943,
201,
198,
201,
198,
220,
220,
220,
611,
5301,
62,
6371,
58,
12,
19,
47715,
6624,
45302,
18300,
10354,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29924,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
24145,
62,
35339,
82,
62,
6978,
11,
279,
10025,
82,
62,
3672,
62,
259,
62,
17752,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29924,
62,
6978,
796,
29924,
62,
6978,
1343,
705,
19355,
1343,
279,
10025,
17816,
332,
20520,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29924,
62,
6978,
62,
12853,
796,
705,
30543,
1343,
29924,
62,
6978,
1343,
705,
30543,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
17271,
705,
1343,
5301,
62,
6371,
1343,
705,
705,
1343,
29924,
62,
6978,
62,
12853,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12260,
62,
21812,
7,
28758,
11,
269,
16993,
28,
24145,
62,
35339,
82,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
28006,
532,
80,
705,
1343,
3326,
62,
26270,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12260,
62,
21812,
7,
28758,
11,
269,
16993,
28,
260,
7501,
62,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
11,
304,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
59,
77,
37,
6255,
284,
4321,
3788,
5301,
351,
17606,
13,
4222,
2198,
262,
3127,
4637,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
28717,
62,
3803,
62,
32109,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
6569,
900,
12,
6371,
8159,
705,
1343,
19016,
62,
6738,
62,
17752,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12260,
62,
21812,
7,
28758,
11,
269,
16993,
28,
260,
7501,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
612,
318,
257,
764,
18300,
18170,
2393,
287,
262,
5301,
11,
8335,
284,
4296,
850,
21412,
13,
201,
198,
220,
220,
220,
220,
220,
220,
220,
850,
4666,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
260,
7501,
62,
6978,
11,
45302,
18300,
18170,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
4468,
576,
7,
7266,
4666,
62,
6978,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
10434,
284,
4296,
850,
21412,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7203,
28156,
222,
34650,
233,
162,
249,
112,
23877,
108,
164,
121,
107,
20015,
114,
44293,
227,
36310,
162,
101,
94,
161,
251,
245,
4943,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
357,
1662,
28686,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
4008,
393,
357,
418,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
8,
290,
1064,
62,
20285,
305,
62,
259,
62,
11250,
7,
24330,
62,
11250,
62,
7753,
11,
705,
50,
16309,
62,
40492,
14313,
62,
41925,
35613,
62,
26861,
3698,
1137,
6158,
11537,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7203,
28156,
222,
28938,
107,
12859,
228,
165,
243,
250,
161,
225,
237,
27950,
254,
34460,
253,
171,
120,
234,
28156,
222,
34650,
233,
46479,
106,
162,
242,
117,
764,
18300,
18170,
10545,
244,
229,
20015,
114,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6330,
62,
4868,
796,
13096,
62,
7266,
4666,
62,
7753,
62,
1462,
62,
10793,
1472,
7,
7266,
4666,
62,
6978,
8,
220,
1303,
3401,
1958,
764,
18300,
18170,
2393,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7203,
28156,
222,
34650,
233,
33699,
100,
26193,
234,
162,
249,
112,
23877,
108,
27950,
101,
43291,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
850,
21412,
4296,
1377,
15003,
1377,
8344,
30753,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12260,
62,
21812,
7,
28758,
11,
269,
16993,
28,
260,
7501,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
357,
1662,
28686,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
4008,
393,
357,
418,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
8,
290,
1064,
62,
20285,
305,
62,
259,
62,
11250,
7,
24330,
62,
11250,
62,
7753,
11,
705,
50,
16309,
62,
40492,
14313,
62,
41925,
35613,
62,
26861,
3698,
1137,
6158,
11537,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
33491,
62,
4868,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2378,
287,
6330,
62,
4868,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
4666,
62,
15908,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
260,
7501,
62,
6978,
11,
2378,
58,
17,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
9409,
343,
7,
7266,
4666,
62,
15908,
62,
6978,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
6569,
900,
12,
6371,
8159,
705,
1343,
2378,
58,
15,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12260,
62,
21812,
7,
28758,
11,
269,
16993,
28,
7266,
4666,
62,
15908,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
357,
1662,
28686,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
4008,
393,
357,
418,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
8,
290,
1064,
62,
20285,
305,
62,
259,
62,
11250,
7,
24330,
62,
11250,
62,
7753,
11,
705,
50,
16309,
62,
40492,
14313,
62,
41925,
35613,
62,
26861,
3698,
1137,
6158,
11537,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
4468,
576,
7,
7266,
4666,
62,
6978,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
28006,
764,
18300,
18170,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12260,
62,
21812,
7,
28758,
11,
269,
16993,
28,
260,
7501,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
10472,
257,
5301,
286,
25388,
5301,
2099,
13,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
5301,
13,
15002,
7,
35339,
17816,
332,
6,
4357,
1957,
62,
35339,
82,
62,
6978,
13,
12501,
1098,
7203,
22296,
74,
12340,
5301,
62,
6371,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
15908,
796,
5301,
13,
1136,
62,
34345,
7,
35339,
17816,
332,
6,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
15908,
796,
28686,
13,
6978,
13,
22018,
578,
742,
7,
35339,
62,
15908,
38381,
15,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
12853,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
12001,
62,
35339,
82,
62,
6978,
11,
5301,
13,
1136,
62,
34345,
7,
35339,
17816,
332,
20520,
4008,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
15424,
13,
8002,
9288,
7,
35339,
62,
12853,
6978,
13,
268,
8189,
7203,
22296,
74,
4943,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
26495,
1058,
4064,
82,
318,
12515,
1,
4,
35339,
62,
12853,
6978,
13,
268,
8189,
7203,
40477,
12,
23,
48774,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
201,
198,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
555,
8002,
5301,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
35339,
62,
15908,
13,
268,
8189,
7203,
22296,
74,
4943,
2599,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
5301,
13,
403,
8002,
7,
35339,
62,
12853,
6978,
13,
268,
8189,
7203,
22296,
74,
12340,
275,
2777,
62,
35339,
82,
62,
6978,
11,
279,
10025,
11,
279,
10025,
82,
62,
3672,
62,
259,
62,
17752,
13,
268,
8189,
7203,
22296,
74,
4943,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
796,
10352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
11,
304,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
28956,
7,
35339,
62,
12853,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
796,
10352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
68,
13,
20500,
25,
4064,
82,
59,
83,
6,
4064,
304,
13,
20500,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
464,
2393,
857,
407,
2152,
19570,
201,
198,
220,
220,
220,
1441,
1005,
201,
198,
201,
198,
201,
198,
4299,
5301,
62,
4868,
33529,
201,
198,
220,
220,
220,
37227,
18557,
262,
10392,
1351,
287,
17365,
13,
201,
198,
201,
198,
220,
220,
220,
4149,
262,
13,
11250,
2393,
287,
262,
347,
4303,
8619,
11,
220,
201,
198,
220,
220,
220,
290,
1351,
262,
2196,
1271,
286,
262,
6163,
5301,
13,
201,
198,
220,
220,
220,
37227,
201,
198,
201,
198,
220,
220,
220,
24714,
796,
45302,
11250,
6,
201,
198,
220,
220,
220,
17365,
62,
15763,
796,
17267,
10786,
24330,
62,
15763,
11537,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
15763,
796,
17267,
10786,
35339,
82,
62,
15763,
11537,
201,
198,
201,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
4468,
576,
7,
22184,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3859,
13,
10057,
3419,
6624,
366,
11209,
1298,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
10057,
10786,
354,
13155,
718,
4059,
16,
220,
1875,
299,
377,
11537,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
5855,
59,
77,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
37605,
241,
30298,
235,
164,
115,
107,
36181,
226,
10310,
233,
162,
110,
94,
17312,
231,
20998,
239,
163,
236,
108,
764,
11250,
10545,
244,
229,
20015,
114,
171,
120,
234,
46237,
115,
163,
94,
106,
46479,
251,
37605,
241,
30298,
235,
33566,
106,
37605,
243,
10310,
118,
347,
4303,
10545,
254,
117,
33566,
106,
37605,
243,
16764,
59,
44427,
58,
15,
76,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
5855,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
36685,
224,
162,
252,
250,
163,
94,
106,
22522,
248,
37605,
241,
30298,
235,
33566,
106,
37605,
243,
10310,
118,
347,
4303,
10545,
254,
117,
33566,
106,
37605,
243,
171,
120,
234,
46237,
115,
17739,
230,
45635,
18796,
101,
1279,
26272,
11250,
29,
10263,
239,
121,
20015,
97,
30266,
98,
37955,
22755,
238,
764,
11250,
10545,
244,
229,
20015,
114,
16764,
59,
44427,
58,
15,
76,
59,
77,
4943,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
2949,
1080,
8398,
2393,
1058,
764,
11250,
13,
59,
44427,
58,
15,
76,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
1639,
815,
779,
1279,
6859,
11250,
1875,
3141,
284,
4566,
275,
2777,
717,
13,
59,
44427,
58,
15,
76,
11537,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3859,
13,
10057,
3419,
6624,
366,
11209,
1298,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
10057,
10786,
354,
13155,
604,
2718,
220,
1875,
299,
377,
11537,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
201,
198,
201,
198,
220,
220,
220,
279,
10025,
82,
796,
479,
11250,
13,
29572,
7,
22184,
8,
201,
198,
201,
198,
220,
220,
220,
329,
279,
10025,
287,
279,
10025,
82,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
796,
15717,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
6978,
796,
279,
10025,
17816,
6978,
20520,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
279,
10025,
62,
6978,
58,
15,
60,
6624,
31051,
6,
393,
279,
10025,
62,
6978,
58,
15,
60,
6624,
705,
6852,
10354,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
6978,
796,
279,
10025,
62,
6978,
58,
16,
47715,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
35339,
82,
62,
15763,
11,
279,
10025,
62,
6978,
11,
705,
26495,
13,
17752,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
13,
29572,
7,
35339,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
3672,
62,
259,
62,
17752,
796,
5301,
13,
1136,
62,
3672,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
5855,
26495,
1438,
1058,
4064,
82,
11,
3326,
1058,
4064,
82,
36521,
7,
35339,
82,
62,
3672,
62,
259,
62,
17752,
13,
268,
8189,
7203,
40477,
12,
23,
12340,
279,
10025,
17816,
332,
6,
4083,
268,
8189,
7203,
40477,
12,
23,
1,
22305,
201,
198,
201,
198,
220,
220,
220,
611,
407,
279,
10025,
82,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
5855,
11869,
1095,
1351,
318,
6565,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
1639,
460,
779,
1279,
6859,
11250,
1875,
3141,
284,
2922,
2691,
10392,
2637,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
6423,
779,
1279,
279,
10025,
82,
1377,
19119,
1875,
3141,
284,
2721,
606,
2637,
8,
201,
198,
220,
220,
220,
1441,
201,
198,
201,
198,
201,
198,
4299,
850,
62,
4868,
7,
64,
8053,
11,
275,
8053,
2599,
201,
198,
220,
220,
220,
37227,
13615,
262,
3709,
287,
257,
8053,
475,
407,
287,
275,
8053,
526,
15931,
201,
198,
201,
198,
220,
220,
220,
45218,
796,
17635,
201,
198,
220,
220,
220,
329,
257,
287,
257,
8053,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
257,
407,
287,
275,
8053,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45218,
13,
33295,
7,
64,
8,
201,
198,
220,
220,
220,
1441,
45218,
201,
198,
201,
198,
201,
198,
4299,
290,
62,
4868,
7,
64,
8053,
11,
275,
8053,
2599,
201,
198,
220,
220,
220,
37227,
13615,
262,
3709,
287,
257,
8053,
290,
287,
275,
8053,
526,
15931,
201,
198,
201,
198,
220,
220,
220,
45218,
796,
17635,
201,
198,
220,
220,
220,
329,
257,
287,
257,
8053,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
257,
287,
275,
8053,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45218,
13,
33295,
7,
64,
8,
201,
198,
220,
220,
220,
1441,
45218,
201,
198,
201,
198,
201,
198,
4299,
4296,
62,
7266,
21412,
7,
260,
7501,
62,
6978,
2599,
201,
198,
220,
220,
220,
37227,
10260,
262,
850,
18170,
287,
262,
16099,
526,
15931,
201,
198,
201,
198,
220,
220,
220,
850,
4666,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
260,
7501,
62,
6978,
11,
45302,
18300,
18170,
11537,
201,
198,
220,
220,
220,
611,
28686,
13,
6978,
13,
4468,
576,
7,
7266,
4666,
62,
6978,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
5492,
4043,
257,
1178,
4201,
287,
1502,
284,
4296,
262,
850,
21412,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
850,
21412,
2315,
532,
80,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
12260,
62,
21812,
7,
28758,
11,
269,
16993,
28,
260,
7501,
62,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
850,
21412,
4296,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
12260,
62,
21812,
7,
28758,
11,
269,
16993,
28,
260,
7501,
62,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
7004,
21412,
4296,
4388,
4943,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
4299,
4296,
62,
42861,
62,
43789,
7,
35339,
82,
62,
22184,
11,
275,
2777,
62,
43789,
62,
6978,
2599,
201,
198,
220,
220,
220,
37227,
4296,
262,
10392,
326,
389,
3452,
2196,
13,
201,
198,
201,
198,
220,
220,
220,
1002,
262,
6163,
5301,
318,
262,
3452,
2196,
11,
201,
198,
220,
220,
220,
2198,
284,
766,
611,
340,
318,
262,
3452,
2196,
706,
262,
4296,
3141,
11,
201,
198,
220,
220,
220,
611,
407,
11,
788,
4296,
262,
3452,
2196,
422,
262,
6569,
16099,
13,
201,
198,
220,
220,
220,
1002,
262,
4321,
468,
257,
5358,
11,
345,
389,
3058,
1262,
262,
6152,
201,
198,
220,
220,
220,
3275,
2810,
416,
17606,
13,
201,
198,
220,
220,
220,
37227,
201,
198,
201,
198,
220,
220,
220,
17365,
62,
15763,
796,
17267,
10786,
24330,
62,
15763,
11537,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
15763,
796,
17267,
10786,
35339,
82,
62,
15763,
11537,
201,
198,
201,
198,
220,
220,
220,
17365,
62,
74,
11250,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
24330,
62,
15763,
11,
705,
31391,
59,
46521,
59,
28758,
82,
11537,
201,
198,
220,
220,
220,
17365,
62,
11250,
62,
7753,
796,
28686,
13,
6978,
13,
22179,
7,
24330,
62,
74,
11250,
62,
6978,
11,
45302,
11250,
11537,
201,
198,
201,
198,
220,
220,
220,
351,
1280,
7,
35339,
82,
62,
22184,
11,
705,
81,
11537,
355,
277,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1100,
62,
1891,
62,
35339,
82,
62,
17752,
796,
33918,
13,
2220,
7,
69,
8,
201,
198,
201,
198,
220,
220,
220,
329,
279,
10025,
287,
1100,
62,
1891,
62,
35339,
82,
62,
17752,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
796,
15717,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
6978,
796,
279,
10025,
17816,
6978,
20520,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
279,
10025,
62,
6978,
58,
15,
60,
6624,
31051,
6,
393,
279,
10025,
62,
6978,
58,
15,
60,
6624,
705,
6852,
10354,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
6978,
796,
279,
10025,
62,
6978,
58,
16,
47715,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
35339,
82,
62,
15763,
11,
279,
10025,
62,
6978,
11,
705,
26495,
13,
17752,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
13,
29572,
7,
35339,
62,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
3672,
62,
259,
62,
17752,
796,
5301,
13,
1136,
62,
3672,
3419,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
9938,
503,
262,
10392,
543,
2196,
318,
705,
42861,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
279,
10025,
17816,
332,
20520,
6624,
366,
42861,
62,
9641,
1,
393,
279,
10025,
17816,
332,
20520,
6624,
366,
42861,
1298,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29924,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
24145,
62,
43789,
62,
6978,
11,
279,
10025,
82,
62,
3672,
62,
259,
62,
17752,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29924,
62,
6978,
796,
651,
62,
35339,
62,
43551,
62,
1525,
62,
273,
570,
62,
6978,
7,
260,
7501,
62,
6978,
11,
279,
10025,
17816,
332,
6,
12962,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
10162,
20309,
318,
9343,
11,
651,
262,
4296,
2209,
422,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
262,
10162,
4382,
13,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
357,
1662,
28686,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
4008,
393,
357,
418,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
8,
290,
1064,
62,
20285,
305,
62,
259,
62,
11250,
7,
24330,
62,
11250,
62,
7753,
11,
705,
50,
16309,
62,
40492,
14313,
62,
41925,
35613,
62,
26861,
3698,
1137,
6158,
11537,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21437,
62,
35339,
82,
62,
3672,
62,
259,
62,
17752,
796,
279,
10025,
82,
62,
3672,
62,
259,
62,
17752,
13,
268,
8189,
7203,
40477,
12,
23,
4943,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
9794,
29924,
338,
28717,
2209,
13,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10162,
62,
6371,
796,
651,
62,
6371,
62,
6738,
62,
10793,
1472,
62,
15388,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21437,
62,
35339,
82,
62,
3672,
62,
259,
62,
17752,
11,
279,
10025,
17816,
332,
6,
12962,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
10162,
62,
6371,
58,
15,
60,
14512,
6045,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
6569,
900,
12,
6371,
8159,
705,
1343,
10162,
62,
6371,
58,
15,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17606,
62,
28758,
62,
18558,
7,
28758,
11,
29924,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
11,
304,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
37,
6255,
284,
2018,
284,
262,
10162,
4382,
11,
1262,
1729,
12,
10793,
1472,
4382,
284,
4296,
19570,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
10133,
262,
5301,
16099,
422,
28717,
13,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
2834,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17606,
62,
28758,
62,
18558,
7,
28758,
11,
29924,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
262,
5301,
468,
850,
18170,
11,
4296,
262,
850,
18170,
13,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4296,
62,
7266,
21412,
7,
260,
7501,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8551,
8159,
19016,
284,
262,
3108,
543,
651,
422,
10392,
13,
17752,
2393,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5301,
13,
1136,
62,
6371,
7,
35339,
17816,
332,
20520,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
6569,
900,
12,
6371,
8159,
705,
1343,
3467,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5301,
13,
1136,
62,
6371,
7,
35339,
17816,
332,
6,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17606,
62,
28758,
62,
18558,
7,
28758,
11,
29924,
62,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
6090,
470,
1064,
262,
5301,
1058,
4064,
82,
338,
19016,
287,
2393,
1058,
4064,
82,
1,
4064,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
15577,
2220,
62,
35339,
82,
62,
3672,
62,
259,
62,
17752,
13,
268,
8189,
7203,
40477,
12,
23,
12340,
279,
10025,
62,
6978,
13,
268,
8189,
7203,
40477,
12,
23,
1,
22305,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
4770,
25609,
855,
29,
220,
4064,
82,
4296,
1760,
3467,
77,
1,
4064,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
35339,
82,
62,
3672,
62,
259,
62,
17752,
13,
268,
8189,
7203,
40477,
12,
23,
1,
22305,
201,
198,
201,
198,
201,
198,
4299,
662,
62,
26495,
62,
19119,
33529,
201,
198,
220,
220,
220,
37227,
6889,
21518,
878,
19698,
262,
3788,
5301,
13,
37227,
201,
198,
201,
198,
220,
220,
220,
275,
2777,
62,
15763,
796,
17267,
10786,
24145,
62,
15763,
11537,
201,
198,
220,
220,
220,
17365,
62,
15763,
796,
17267,
10786,
24330,
62,
15763,
11537,
201,
198,
201,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
4458,
11250,
6,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3859,
13,
10057,
3419,
6624,
366,
11209,
1298,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
10057,
10786,
354,
13155,
718,
4059,
16,
220,
1875,
299,
377,
11537,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
5855,
59,
77,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
37605,
241,
30298,
235,
164,
115,
107,
36181,
226,
10310,
233,
162,
110,
94,
17312,
231,
20998,
239,
163,
236,
108,
764,
11250,
10545,
244,
229,
20015,
114,
171,
120,
234,
46237,
115,
163,
94,
106,
46479,
251,
37605,
241,
30298,
235,
33566,
106,
37605,
243,
10310,
118,
347,
4303,
10545,
254,
117,
33566,
106,
37605,
243,
16764,
59,
44427,
58,
15,
76,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
5855,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
36685,
224,
162,
252,
250,
163,
94,
106,
22522,
248,
37605,
241,
30298,
235,
33566,
106,
37605,
243,
10310,
118,
347,
4303,
10545,
254,
117,
33566,
106,
37605,
243,
171,
120,
234,
46237,
115,
17739,
230,
45635,
18796,
101,
1279,
26272,
11250,
29,
10263,
239,
121,
20015,
97,
30266,
98,
37955,
22755,
238,
764,
11250,
10545,
244,
229,
20015,
114,
16764,
59,
44427,
58,
15,
76,
59,
77,
4943,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
2949,
1080,
8398,
2393,
1058,
764,
11250,
2637,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
1639,
815,
779,
1279,
6859,
11250,
1875,
3141,
284,
4566,
275,
2777,
717,
2637,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3859,
13,
10057,
3419,
6624,
366,
11209,
1298,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
10057,
10786,
354,
13155,
604,
2718,
220,
1875,
299,
377,
11537,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
201,
198,
201,
198,
220,
220,
220,
275,
2777,
62,
43789,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
24145,
62,
15763,
11,
705,
43789,
11537,
201,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
24145,
62,
43789,
62,
6978,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
28015,
15908,
7203,
43789,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
354,
15908,
7,
24145,
62,
43789,
62,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
796,
1280,
7203,
35339,
82,
13,
17752,
1600,
705,
86,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
13,
13564,
7203,
21737,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
13,
19836,
3419,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
796,
1280,
7203,
35339,
82,
62,
18224,
13,
17752,
1600,
705,
86,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
13,
13564,
7203,
21737,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
13,
19836,
3419,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
354,
15908,
7,
24145,
62,
15763,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
8335,
2496,
10392,
2393,
201,
198,
220,
220,
220,
288,
1443,
13976,
578,
62,
6978,
3672,
796,
28686,
13,
6978,
13,
22179,
7,
24145,
62,
43789,
62,
6978,
11,
705,
43789,
13,
67,
1443,
13976,
578,
11537,
201,
198,
220,
220,
220,
36472,
10786,
67,
1443,
13976,
578,
62,
6978,
3672,
11537,
201,
198,
220,
220,
220,
288,
1443,
13976,
578,
62,
6978,
3672,
796,
288,
1443,
13976,
578,
62,
6978,
3672,
13,
12501,
1098,
10786,
22296,
74,
11537,
201,
198,
220,
201,
198,
220,
220,
220,
1303,
24390,
4441,
8893,
517,
621,
530,
640,
201,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
4468,
576,
7,
67,
1443,
13976,
578,
62,
6978,
3672,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
48260,
796,
279,
10025,
82,
9945,
13,
1136,
62,
37043,
7,
67,
1443,
13976,
578,
62,
6978,
3672,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
44161,
796,
705,
7061,
43387,
6158,
43679,
5301,
7753,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
6978,
3672,
220,
220,
40383,
220,
837,
26495,
220,
40383,
220,
837,
9132,
20,
220,
40383,
5619,
7061,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
9945,
13,
17953,
62,
11487,
7,
37043,
11,
44161,
8,
201,
198,
201,
198,
220,
220,
220,
24714,
796,
45302,
11250,
6,
201,
198,
220,
220,
220,
279,
10025,
82,
796,
479,
11250,
13,
29572,
7,
22184,
8,
201,
198,
220,
220,
220,
649,
35339,
82,
796,
279,
10025,
82,
201,
198,
201,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
24145,
62,
43789,
62,
6978,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
28015,
15908,
7,
24145,
62,
43789,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
22184,
796,
28686,
13,
6978,
13,
22179,
7,
24145,
62,
43789,
62,
6978,
11,
705,
35339,
82,
13,
17752,
11537,
201,
198,
201,
198,
220,
220,
220,
1303,
43519,
2393,
1058,
10392,
14,
35339,
82,
13,
17752,
220,
201,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
35339,
82,
62,
22184,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
354,
15908,
7,
24145,
62,
43789,
62,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
796,
1280,
7203,
35339,
82,
13,
17752,
1600,
705,
86,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
13,
13564,
7203,
21737,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
13,
19836,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
354,
15908,
7,
24145,
62,
15763,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
11725,
1366,
736,
422,
279,
10025,
82,
13,
17752,
201,
198,
220,
220,
220,
351,
1280,
7,
35339,
82,
62,
22184,
11,
705,
81,
11537,
355,
277,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1468,
35339,
82,
796,
33918,
13,
2220,
7,
69,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
43519,
2393,
1058,
10392,
14,
35339,
82,
62,
18224,
13,
17752,
220,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
18224,
62,
4868,
62,
22184,
796,
28686,
13,
6978,
13,
22179,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
2777,
62,
43789,
62,
6978,
11,
705,
35339,
82,
62,
18224,
13,
17752,
11537,
201,
198,
201,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
35339,
82,
62,
18224,
62,
4868,
62,
22184,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
354,
15908,
7,
24145,
62,
43789,
62,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
796,
1280,
7203,
35339,
82,
62,
18224,
13,
17752,
1600,
705,
86,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
13,
13564,
7203,
21737,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
79,
13,
19836,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
354,
15908,
7,
24145,
62,
15763,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
11725,
1366,
736,
422,
279,
10025,
82,
62,
18224,
13,
17752,
201,
198,
220,
220,
220,
351,
1280,
7,
35339,
82,
62,
18224,
62,
4868,
62,
22184,
11,
705,
81,
11537,
355,
277,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
18224,
796,
33918,
13,
2220,
7,
69,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
2251,
6374,
684,
6519,
2393,
201,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
4468,
576,
7,
418,
13,
6978,
13,
22179,
7,
24145,
62,
43789,
62,
6978,
11,
705,
6173,
684,
6519,
11537,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
7696,
62,
12048,
796,
2393,
7,
418,
13,
6978,
13,
22179,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
2777,
62,
43789,
62,
6978,
11,
705,
6173,
684,
6519,
33809,
705,
86,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
7696,
62,
12048,
13,
13564,
7,
37385,
62,
6173,
684,
6519,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
7696,
62,
12048,
13,
19836,
3419,
201,
198,
201,
198,
220,
220,
220,
1441,
685,
727,
35339,
82,
11,
649,
35339,
82,
11,
279,
10025,
82,
62,
18224,
11,
279,
10025,
82,
62,
22184,
11,
279,
10025,
82,
62,
18224,
62,
4868,
62,
22184,
11,
275,
2777,
62,
43789,
62,
6978,
11,
288,
1443,
13976,
578,
62,
6978,
3672,
60,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
4299,
5412,
62,
15002,
62,
18224,
62,
43789,
7,
35339,
82,
62,
22184,
11,
275,
2777,
62,
43789,
62,
6978,
2599,
201,
198,
220,
220,
220,
37227,
5412,
4321,
4049,
10392,
13,
201,
198,
201,
198,
220,
220,
220,
6822,
284,
766,
611,
262,
10392,
8574,
287,
262,
449,
1559,
2393,
1351,
1682,
2152,
11,
201,
198,
220,
220,
220,
290,
788,
4321,
262,
10392,
611,
484,
836,
470,
2152,
13,
201,
198,
220,
220,
220,
37227,
201,
198,
201,
198,
220,
220,
220,
351,
1280,
7,
35339,
82,
62,
22184,
11,
705,
81,
11537,
355,
277,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1100,
62,
1891,
62,
35339,
82,
62,
17752,
796,
33918,
13,
2220,
7,
69,
8,
201,
198,
201,
198,
220,
220,
220,
4049,
62,
43789,
62,
4868,
796,
17635,
201,
198,
201,
198,
220,
220,
220,
329,
279,
10025,
287,
1100,
62,
1891,
62,
35339,
82,
62,
17752,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4781,
6978,
796,
651,
62,
26495,
62,
28956,
62,
6978,
7,
35339,
11,
275,
2777,
62,
43789,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
28956,
6978,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
43789,
62,
4868,
13,
33295,
7,
35339,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
33141,
262,
4054,
4321,
10392,
201,
198,
220,
220,
220,
651,
62,
32109,
796,
4049,
62,
43789,
62,
28144,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
43789,
62,
4868,
11,
1100,
62,
1891,
62,
35339,
82,
62,
17752,
11,
279,
10025,
82,
62,
22184,
8,
201,
198,
201,
198,
220,
220,
220,
1441,
651,
62,
32109,
201,
198,
201,
198,
201,
198,
4299,
3551,
62,
35350,
62,
7753,
7,
35339,
82,
62,
22184,
11,
649,
35339,
82,
2599,
201,
198,
220,
220,
220,
37227,
20257,
274,
262,
6153,
8398,
284,
279,
10025,
82,
13,
17752,
2393,
13,
201,
198,
201,
198,
220,
220,
220,
6400,
1095,
326,
389,
407,
15680,
9380,
481,
307,
2266,
593,
14578,
379,
262,
201,
198,
220,
220,
220,
1306,
4296,
13,
201,
198,
220,
220,
220,
37227,
201,
198,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
7753,
796,
2393,
7,
35339,
82,
62,
22184,
11,
705,
86,
11537,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
7753,
13,
13564,
7,
17752,
13,
67,
8142,
7,
3605,
35339,
82,
11,
33793,
28,
16,
4008,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
7753,
13,
19836,
3419,
201,
198,
201,
198,
201,
198,
4299,
5301,
62,
19119,
7,
271,
38727,
19620,
28,
25101,
2599,
201,
198,
220,
220,
220,
37227,
10260,
17365,
338,
10392,
13,
201,
198,
201,
198,
220,
220,
220,
27814,
262,
1468,
290,
649,
3788,
5301,
1351,
290,
4296,
262,
5301,
13,
201,
198,
220,
220,
220,
17220,
19125,
10392,
290,
4321,
262,
8308,
6163,
5301,
7874,
201,
198,
220,
220,
220,
6822,
611,
262,
3696,
287,
262,
13140,
10392,
423,
587,
3421,
11,
290,
611,
523,
11,
220,
201,
198,
220,
220,
220,
7101,
262,
2836,
7448,
262,
9518,
2393,
13,
201,
198,
220,
220,
220,
37227,
201,
198,
201,
198,
220,
220,
220,
25064,
62,
8367,
796,
662,
62,
26495,
62,
19119,
3419,
201,
198,
201,
198,
220,
220,
220,
611,
407,
25064,
62,
8367,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
201,
198,
201,
198,
220,
220,
220,
275,
2777,
62,
15763,
796,
17267,
10786,
24145,
62,
15763,
11537,
201,
198,
220,
220,
220,
17365,
62,
15763,
796,
17267,
10786,
24330,
62,
15763,
11537,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
15763,
796,
17267,
10786,
35339,
82,
62,
15763,
11537,
201,
198,
220,
220,
220,
6056,
796,
6407,
201,
198,
201,
198,
220,
220,
220,
1303,
4784,
284,
262,
17365,
2196,
11,
1771,
3999,
5072,
318,
4855,
393,
407,
201,
198,
220,
220,
220,
611,
5004,
62,
11284,
62,
354,
3762,
7,
24330,
62,
15763,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3859,
13,
10057,
3419,
6624,
366,
11209,
1298,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
10057,
10786,
354,
13155,
718,
4059,
16,
1875,
299,
377,
11537,
220,
201,
198,
201,
198,
220,
220,
220,
1468,
35339,
82,
796,
25064,
62,
8367,
58,
15,
60,
201,
198,
220,
220,
220,
649,
35339,
82,
796,
25064,
62,
8367,
58,
16,
60,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
33678,
62,
18224,
62,
4868,
796,
25064,
62,
8367,
58,
17,
60,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
22184,
796,
25064,
62,
8367,
58,
18,
60,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
18224,
62,
4868,
62,
22184,
796,
25064,
62,
8367,
58,
19,
60,
201,
198,
220,
220,
220,
275,
2777,
62,
43789,
62,
6978,
796,
25064,
62,
8367,
58,
20,
60,
201,
198,
220,
220,
220,
288,
1443,
13976,
578,
62,
6978,
3672,
796,
25064,
62,
8367,
58,
21,
60,
201,
198,
201,
198,
220,
220,
220,
611,
18896,
7,
35339,
82,
62,
33678,
62,
18224,
62,
4868,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
4049,
62,
26495,
287,
279,
10025,
82,
62,
33678,
62,
18224,
62,
4868,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4781,
6978,
62,
332,
796,
651,
62,
26495,
62,
28956,
62,
6978,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
26495,
11,
275,
2777,
62,
43789,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
9409,
343,
7,
28956,
6978,
62,
332,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
59,
77,
12331,
25,
4064,
82,
5301,
12233,
4054,
11,
2221,
284,
4781,
340,
526,
4,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
26495,
17816,
3672,
6,
4083,
268,
8189,
7203,
40477,
12,
23,
48774,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
42721,
62,
26495,
7,
28956,
6978,
62,
332,
8,
6624,
10352,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
12331,
25,
23520,
5301,
4064,
82,
4054,
0,
4222,
12233,
262,
9483,
14500,
13,
59,
77,
1,
4,
18224,
62,
26495,
17816,
3672,
6,
4083,
268,
8189,
7203,
40477,
12,
23,
48774,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
201,
198,
201,
198,
220,
220,
220,
1303,
352,
13,
259,
1468,
837,
1662,
287,
649,
1058,
10442,
10392,
326,
761,
284,
307,
4615,
13,
201,
198,
220,
220,
220,
269,
839,
68,
5807,
796,
850,
62,
4868,
7,
727,
35339,
82,
11,
649,
35339,
82,
8,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
33678,
62,
32165,
62,
4868,
796,
17635,
201,
198,
201,
198,
220,
220,
220,
329,
279,
10025,
287,
269,
839,
68,
5807,
25,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4781,
6978,
62,
332,
796,
651,
62,
26495,
62,
28956,
62,
6978,
7,
35339,
11,
275,
2777,
62,
43789,
62,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4781,
6978,
62,
18300,
796,
28686,
13,
6978,
13,
22179,
7,
28956,
6978,
62,
332,
11,
45302,
18300,
11537,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
23520,
13,
15151,
8619,
13,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
9409,
343,
7,
28956,
6978,
62,
332,
8,
290,
28686,
13,
6978,
13,
9409,
343,
7,
28956,
6978,
62,
18300,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17606,
15908,
796,
4781,
6978,
62,
332,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
5855,
59,
77,
10434,
284,
4781,
4064,
82,
3467,
77,
29688,
4043,
9313,
4064,
17606,
15908,
13,
268,
8189,
7203,
40477,
12,
23,
48774,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
38727,
19620,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
42721,
62,
26495,
7,
18300,
15908,
8,
6624,
10352,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
7414,
12342,
12233,
2038,
25,
4064,
82,
1,
4064,
17606,
15908,
13,
268,
8189,
7203,
40477,
12,
23,
48774,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
5492,
12233,
428,
9483,
14500,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
464,
9483,
318,
5257,
416,
17606,
13,
2141,
345,
765,
284,
12233,
428,
9483,
30,
59,
77,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
48321,
796,
8246,
62,
15414,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
13800,
262,
575,
7383,
284,
12233,
262,
9483,
393,
655,
1803,
6062,
284,
1394,
340,
1058,
705,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
48321,
6624,
705,
88,
6,
393,
48321,
6624,
705,
56,
10354,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
42721,
62,
26495,
7,
18300,
15908,
8,
6624,
10352,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
33678,
62,
32165,
62,
4868,
13,
33295,
7,
35339,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
12331,
25,
4222,
12233,
262,
9483,
14500,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
11,
304,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
12331,
3275,
25,
4,
82,
4,
82,
13,
4049,
13,
20500,
25,
4064,
82,
59,
77,
59,
83,
6,
4064,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5855,
38727,
9483,
4054,
25,
33172,
17606,
15908,
13,
268,
8189,
7203,
40477,
12,
23,
12340,
304,
13,
20500,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
9409,
343,
7,
28956,
6978,
62,
332,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
10434,
284,
4781,
4064,
82,
3467,
77,
29688,
4043,
9313,
4064,
4781,
6978,
62,
332,
13,
268,
8189,
7203,
40477,
12,
23,
48774,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
9945,
13,
2934,
1616,
538,
441,
15908,
7,
28956,
6978,
62,
332,
11,
288,
1443,
13976,
578,
62,
6978,
3672,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
11,
304,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
33678,
62,
32165,
62,
4868,
13,
33295,
7,
35339,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
12331,
3275,
7479,
77,
4,
82,
4064,
82,
13,
4064,
82,
3467,
77,
59,
83,
6,
4064,
357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
38727,
9483,
4054,
11,
3387,
12233,
262,
9483,
14500,
1600,
4781,
6978,
62,
332,
13,
268,
8189,
7203,
40477,
12,
23,
12340,
304,
13,
20500,
4008,
201,
198,
201,
198,
220,
220,
220,
611,
18896,
7,
35339,
82,
62,
33678,
62,
32165,
62,
4868,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3551,
4049,
6218,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
7753,
796,
2393,
7,
35339,
82,
62,
18224,
62,
4868,
62,
22184,
11,
705,
86,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
7753,
13,
13564,
7,
17752,
13,
67,
8142,
7,
35339,
82,
62,
33678,
62,
32165,
62,
4868,
11,
33793,
28,
16,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
7753,
13,
19836,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3551,
4049,
6218,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
7753,
796,
2393,
7,
35339,
82,
62,
18224,
62,
4868,
62,
22184,
11,
705,
86,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
7753,
13,
13564,
7,
17752,
13,
67,
8142,
7,
35339,
82,
62,
33678,
62,
32165,
62,
4868,
11,
33793,
28,
16,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
7753,
13,
19836,
3419,
201,
198,
201,
198,
220,
220,
220,
1303,
362,
13,
259,
649,
407,
287,
1468,
1058,
10442,
10392,
284,
307,
6589,
13,
201,
198,
220,
220,
220,
1303,
1002,
262,
5301,
4321,
10143,
11,
1700,
340,
11,
290,
788,
4321,
757,
618,
201,
198,
220,
220,
220,
1303,
262,
4296,
3141,
318,
10945,
13,
201,
198,
201,
198,
220,
220,
220,
269,
839,
593,
2220,
796,
850,
62,
4868,
7,
3605,
35339,
82,
11,
1468,
35339,
82,
8,
201,
198,
220,
220,
220,
1303,
3601,
705,
259,
649,
407,
287,
1468,
25,
3256,
269,
839,
593,
2220,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
15002,
62,
32165,
62,
4868,
796,
17635,
201,
198,
201,
198,
220,
220,
220,
329,
279,
10025,
287,
269,
839,
593,
2220,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2721,
62,
35339,
7,
24330,
62,
15763,
11,
279,
10025,
82,
62,
15763,
11,
275,
2777,
62,
15763,
11,
279,
10025,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
4770,
25609,
855,
29,
220,
4064,
82,
4064,
82,
318,
15680,
7675,
13,
3467,
77,
1,
4064,
357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
17816,
3672,
6,
4357,
279,
10025,
17816,
332,
20520,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
262,
29673,
38,
4321,
10143,
11,
1700,
340,
287,
262,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
279,
10025,
82,
62,
15002,
62,
32165,
62,
4868,
13,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
15002,
62,
32165,
62,
4868,
13,
33295,
7,
35339,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
279,
10025,
11,
705,
15002,
4054,
2637,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6056,
796,
10352,
201,
198,
201,
198,
220,
220,
220,
1303,
3497,
262,
3058,
6153,
8398,
13,
201,
198,
220,
220,
220,
649,
35339,
82,
796,
850,
62,
4868,
7,
3605,
35339,
82,
11,
279,
10025,
82,
62,
15002,
62,
32165,
62,
4868,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
13786,
20269,
1912,
319,
262,
1943,
286,
262,
4321,
13,
201,
198,
220,
220,
220,
611,
18896,
7,
35339,
82,
62,
15002,
62,
32165,
62,
4868,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
59,
77,
27813,
4321,
4054,
1351,
11097,
1267,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2378,
287,
279,
10025,
82,
62,
15002,
62,
32165,
62,
4868,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
9186,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
1639,
761,
284,
32349,
262,
1279,
35339,
82,
532,
19119,
29,
3141,
284,
4321,
757,
19570,
201,
198,
201,
198,
220,
220,
220,
1303,
4296,
279,
10025,
82,
13,
17752,
290,
6374,
684,
6519,
201,
198,
220,
220,
220,
3551,
62,
35350,
62,
7753,
7,
35339,
82,
62,
22184,
11,
649,
35339,
82,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
5412,
4321,
4049,
10392,
13,
201,
198,
220,
220,
220,
651,
62,
32109,
796,
5412,
62,
15002,
62,
18224,
62,
43789,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
22184,
11,
275,
2777,
62,
43789,
62,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
611,
651,
62,
32109,
14512,
6045,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6056,
796,
651,
62,
32109,
201,
198,
201,
198,
220,
220,
220,
1303,
10133,
262,
3788,
10392,
11,
543,
262,
2196,
318,
705,
42861,
6,
201,
198,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4296,
62,
42861,
62,
43789,
7,
35339,
82,
62,
22184,
11,
275,
2777,
62,
43789,
62,
6978,
8,
201,
198,
220,
220,
220,
2845,
31973,
9492,
3622,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6056,
796,
10352,
201,
198,
201,
198,
220,
220,
220,
611,
6056,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
5855,
32180,
5668,
7675,
19570,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
5855,
32180,
4054,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
4299,
5301,
62,
86,
8669,
33529,
201,
198,
220,
220,
220,
37227,
11869,
1095,
6282,
18731,
13,
201,
198,
201,
198,
220,
220,
220,
383,
2836,
14170,
262,
5301,
1438,
11,
2196,
1271,
11,
6536,
11,
290,
6338,
18616,
262,
5301,
6376,
2393,
13,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
1303,
19134,
201,
198,
220,
220,
220,
3601,
19203,
59,
44427,
58,
19,
26,
2624,
26,
1821,
76,
14618,
284,
1262,
5301,
18731,
11,
3387,
1061,
2174,
4831,
13,
59,
44427,
58,
15,
76,
59,
77,
11537,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
26437,
9793,
546,
262,
18731,
201,
198,
220,
220,
220,
3601,
19203,
11295,
1058,
11537,
201,
198,
220,
220,
220,
3601,
19203,
220,
220,
220,
220,
220,
3467,
44427,
58,
20,
26,
2327,
26,
1821,
76,
58,
220,
220,
2361,
59,
44427,
58,
15,
76,
1724,
4277,
4634,
393,
11902,
1321,
2637,
8,
201,
198,
220,
220,
220,
3601,
19203,
220,
220,
220,
220,
220,
3467,
44427,
58,
20,
26,
2327,
26,
1821,
76,
17469,
59,
44427,
58,
15,
76,
1724,
1262,
4277,
3038,
393,
7464,
290,
18788,
284,
262,
1306,
2239,
2637,
8,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
11085,
2239,
201,
198,
220,
220,
220,
3601,
19203,
59,
44427,
58,
20,
26,
2091,
26,
1821,
76,
59,
77,
16,
13,
5492,
5128,
257,
649,
5301,
1438,
1058,
59,
44427,
58,
15,
76,
11537,
201,
198,
220,
220,
220,
1438,
796,
8246,
62,
15414,
3419,
201,
198,
220,
220,
220,
981,
1438,
6624,
10148,
393,
1438,
13,
747,
10223,
3419,
6624,
6407,
1058,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
12331,
25,
345,
1276,
5128,
257,
5301,
1438,
13,
9993,
757,
13,
59,
44427,
58,
15,
76,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
8246,
62,
15414,
3419,
201,
198,
201,
198,
220,
220,
220,
4277,
62,
11213,
796,
705,
5492,
751,
6764,
286,
705,
1343,
1438,
1343,
705,
287,
3594,
2637,
201,
198,
220,
220,
220,
1303,
11213,
796,
2836,
62,
15414,
10786,
26272,
11250,
3038,
1438,
11,
12286,
7479,
77,
3256,
12286,
62,
11213,
8,
201,
198,
220,
220,
220,
6764,
796,
4277,
62,
11213,
201,
198,
220,
220,
220,
6764,
62,
23548,
796,
366,
46237,
115,
162,
115,
119,
27950,
254,
164,
121,
107,
20015,
114,
44293,
227,
366,
1343,
1438,
1343,
1,
13328,
248,
226,
40792,
23877,
229,
162,
237,
237,
32573,
108,
16764,
1,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
12227,
2239,
201,
198,
220,
220,
220,
3326,
796,
2836,
62,
15414,
10786,
59,
44427,
58,
20,
26,
2091,
26,
1821,
76,
59,
77,
17,
13,
5492,
5128,
428,
5301,
2196,
11,
4277,
1058,
59,
44427,
58,
15,
76,
3256,
705,
16,
13,
15,
13,
15,
11537,
201,
198,
220,
220,
220,
3326,
62,
20307,
796,
3326,
13,
33491,
10786,
2637,
11,
10148,
8,
201,
198,
220,
220,
220,
1303,
2539,
4775,
796,
2836,
62,
15414,
10786,
2539,
4775,
11,
12286,
7479,
77,
3256,
1438,
8,
201,
198,
220,
220,
220,
21179,
796,
1438,
201,
198,
201,
198,
220,
220,
220,
1303,
17089,
2239,
201,
198,
220,
220,
220,
5301,
4871,
796,
19203,
5151,
3256,
705,
16129,
3256,
705,
44374,
3256,
705,
16680,
20626,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
525,
10803,
874,
3256,
705,
12961,
3256,
705,
10057,
3256,
705,
31391,
3256,
705,
525,
10803,
874,
14,
82,
641,
669,
11537,
201,
198,
220,
220,
220,
3601,
19203,
59,
44427,
58,
20,
26,
2091,
26,
1821,
76,
59,
77,
18,
13,
5492,
3853,
257,
5301,
6536,
422,
352,
284,
860,
1058,
3467,
44427,
58,
15,
76,
11537,
201,
198,
220,
220,
220,
3601,
5855,
59,
44427,
58,
16,
26,
2624,
26,
1821,
76,
58,
16,
25,
5151,
60,
91,
58,
17,
25,
16129,
60,
91,
58,
18,
25,
44374,
60,
91,
58,
19,
25,
16680,
20626,
60,
91,
58,
20,
25,
525,
10803,
874,
60,
91,
58,
21,
25,
12961,
60,
91,
58,
22,
25,
10057,
60,
91,
58,
23,
25,
31391,
60,
91,
58,
24,
25,
82,
641,
669,
60,
59,
44427,
58,
15,
76,
4943,
201,
198,
220,
220,
220,
1398,
28803,
796,
8246,
62,
15414,
3419,
201,
198,
220,
220,
220,
981,
1398,
28803,
6624,
10148,
393,
1398,
28803,
13,
9409,
328,
270,
3419,
855,
10352,
393,
493,
7,
4871,
28803,
8,
1279,
352,
393,
493,
7,
4871,
28803,
8,
1875,
24,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1398,
28803,
6624,
10148,
1058,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
12331,
25,
921,
1276,
3853,
257,
5301,
6536,
13,
9993,
757,
13,
59,
44427,
58,
15,
76,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
1058,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
12331,
25,
921,
1276,
5128,
281,
18253,
1271,
422,
352,
284,
860,
13,
9993,
757,
13,
59,
44427,
58,
15,
76,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1398,
28803,
796,
8246,
62,
15414,
3419,
201,
198,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
279,
10025,
82,
4871,
796,
5301,
4871,
58,
600,
7,
4871,
28803,
8,
532,
352,
60,
220,
220,
201,
198,
201,
198,
220,
220,
220,
1303,
49393,
2239,
201,
198,
220,
220,
220,
3601,
19203,
59,
44427,
58,
20,
26,
2091,
26,
1821,
76,
59,
77,
19,
13,
5492,
5128,
1772,
1438,
286,
428,
5301,
1058,
59,
44427,
58,
15,
76,
11537,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
6284,
1211,
480,
796,
8246,
62,
15414,
3419,
201,
198,
220,
220,
220,
981,
6284,
1211,
480,
6624,
10148,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
12331,
25,
345,
1276,
5128,
1772,
1438,
286,
428,
5301,
13,
9993,
757,
13,
59,
44427,
58,
15,
76,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6284,
1211,
480,
796,
8246,
62,
15414,
3419,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
43556,
2239,
220,
220,
220,
220,
201,
198,
220,
220,
220,
6284,
382,
4529,
796,
8246,
62,
15414,
10786,
59,
44427,
58,
20,
26,
2091,
26,
1821,
76,
59,
77,
20,
13,
5492,
5128,
1772,
3053,
286,
428,
5301,
1058,
59,
77,
59,
44427,
58,
15,
76,
11537,
220,
201,
198,
220,
220,
220,
981,
6284,
382,
4529,
6624,
10148,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
12331,
25,
345,
1276,
5128,
1772,
3053,
286,
428,
5301,
13,
9993,
757,
13,
59,
44427,
58,
15,
76,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6284,
382,
4529,
796,
8246,
62,
15414,
3419,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
19412,
400,
2239,
201,
198,
220,
220,
220,
3601,
19203,
59,
44427,
58,
20,
26,
2091,
26,
1821,
76,
59,
77,
21,
13,
5492,
3853,
257,
5964,
286,
428,
5301,
422,
352,
284,
604,
11,
393,
5128,
584,
5964,
1438,
1058,
59,
44427,
58,
15,
76,
11537,
201,
198,
220,
220,
220,
3601,
5855,
59,
44427,
58,
16,
26,
2624,
26,
1821,
76,
58,
16,
25,
25189,
4891,
12,
17,
13,
15,
60,
91,
58,
17,
25,
36393,
60,
91,
58,
18,
25,
41257,
6489,
12,
17,
13,
16,
60,
91,
58,
19,
25,
38,
6489,
12,
17,
13,
15,
60,
59,
44427,
58,
15,
76,
4943,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
5964,
62,
9630,
796,
19203,
25189,
4891,
12,
17,
13,
15,
3256,
705,
36393,
3256,
705,
41257,
6489,
12,
17,
13,
16,
3256,
705,
38,
6489,
12,
17,
13,
15,
11537,
201,
198,
220,
220,
220,
5964,
62,
4871,
796,
8246,
62,
15414,
3419,
201,
198,
220,
220,
220,
981,
5964,
62,
4871,
6624,
10148,
1058,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
12331,
25,
345,
1276,
3853,
393,
5128,
257,
5964,
286,
428,
5301,
13,
9993,
757,
13,
59,
44427,
58,
15,
76,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5964,
62,
4871,
796,
8246,
62,
15414,
3419,
220,
220,
201,
198,
201,
198,
220,
220,
220,
611,
5964,
62,
4871,
13,
9409,
328,
270,
3419,
855,
6407,
290,
493,
7,
43085,
62,
4871,
8,
18189,
352,
290,
493,
7,
43085,
62,
4871,
8,
19841,
604,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5964,
796,
5964,
62,
9630,
58,
600,
7,
43085,
62,
4871,
8,
532,
352,
60,
201,
198,
220,
220,
220,
2073,
1058,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5964,
796,
5964,
62,
4871,
220,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
325,
20987,
2239,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
3601,
19203,
59,
44427,
58,
20,
26,
2091,
26,
1821,
76,
59,
77,
22,
13,
5492,
5128,
262,
16099,
286,
428,
5301,
1058,
59,
44427,
58,
15,
76,
11537,
220,
201,
198,
220,
220,
220,
3601,
5855,
59,
44427,
58,
16,
26,
2624,
26,
1821,
76,
1890,
1672,
11,
23748,
5301,
338,
16099,
19016,
318,
705,
5450,
1378,
12567,
13,
785,
14,
14181,
12,
16818,
12,
43789,
14,
31373,
4458,
59,
44427,
58,
15,
76,
4943,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
16099,
796,
8246,
62,
15414,
3419,
201,
198,
220,
220,
220,
981,
16099,
6624,
10148,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
19203,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
12331,
25,
345,
1276,
5128,
257,
16099,
286,
428,
5301,
13,
9993,
757,
13,
59,
44427,
58,
15,
76,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
16099,
796,
8246,
62,
15414,
3419,
220,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
201,
198,
220,
220,
220,
279,
10025,
62,
6978,
796,
1438,
201,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
35339,
62,
6978,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
28015,
15908,
7,
35339,
62,
6978,
8,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
5855,
59,
44427,
58,
16,
26,
3132,
26,
1821,
76,
12331,
25,
262,
5301,
8619,
318,
30151,
0,
59,
44427,
58,
15,
76,
4943,
201,
198,
201,
198,
220,
220,
220,
264,
796,
37350,
7,
42,
11250,
62,
7753,
8,
201,
198,
220,
220,
220,
334,
381,
13292,
796,
965,
13,
45828,
7,
3672,
8,
201,
198,
220,
220,
220,
479,
11250,
796,
264,
13,
7266,
301,
3678,
7,
3672,
28,
7211,
13292,
11,
6764,
28,
11213,
11,
2196,
28,
332,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
82,
62,
4871,
28,
35339,
82,
4871,
11,
2793,
7442,
62,
3672,
28,
3672,
11,
2196,
62,
20307,
28,
332,
62,
20307,
8,
201,
198,
220,
220,
220,
277,
796,
2393,
7,
418,
13,
6978,
13,
22179,
7,
35339,
62,
6978,
11,
705,
42,
11250,
33809,
705,
39346,
11537,
201,
198,
220,
220,
220,
277,
13,
13564,
7,
74,
11250,
8,
201,
198,
220,
220,
220,
277,
13,
19836,
3419,
201,
198,
201,
198,
220,
220,
220,
264,
796,
37350,
7,
27813,
62,
17752,
62,
7753,
8,
201,
198,
220,
220,
220,
5301,
796,
264,
13,
7266,
301,
3678,
7,
3672,
28,
3672,
11,
279,
10025,
82,
4871,
28,
35339,
82,
4871,
11,
18439,
1211,
480,
28,
18439,
1211,
480,
11,
18439,
382,
4529,
28,
18439,
382,
4529,
11,
6764,
28,
11213,
11,
220,
6764,
62,
23548,
28,
11213,
62,
23548,
11,
9641,
28,
332,
11,
21179,
28,
2539,
4775,
11,
43085,
28,
43085,
11,
16099,
28,
260,
1930,
37765,
8,
201,
198,
220,
220,
220,
277,
796,
2393,
7,
418,
13,
6978,
13,
22179,
7,
35339,
62,
6978,
11,
705,
26495,
13,
17752,
33809,
705,
39346,
11537,
201,
198,
220,
220,
220,
277,
13,
13564,
7,
26495,
8,
201,
198,
220,
220,
220,
277,
13,
19836,
3419,
201,
198,
201,
198,
220,
220,
220,
3601,
19203,
59,
77,
464,
5301,
6376,
468,
587,
2727,
3467,
44427,
58,
16,
26,
2624,
26,
1821,
907,
84,
1591,
2759,
59,
44427,
58,
15,
76,
2637,
8,
201,
198,
220,
220,
220,
3601,
19203,
5492,
3467,
44427,
58,
20,
26,
2682,
26,
1821,
76,
19119,
59,
44427,
58,
15,
76,
584,
1321,
286,
428,
5301,
1912,
319,
509,
11250,
290,
5301,
13,
17752,
287,
8619,
705,
10,
3672,
10,
6,
2637,
8,
201,
198,
201,
198,
4299,
8515,
62,
43789,
62,
9630,
33529,
201,
198,
220,
220,
220,
37227,
10260,
262,
5301,
16099,
6376,
526,
15931,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
17365,
62,
15763,
796,
17267,
10786,
24330,
62,
15763,
11537,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
15763,
796,
17267,
10786,
35339,
82,
62,
15763,
11537,
201,
198,
220,
220,
220,
17365,
62,
74,
11250,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
24330,
62,
15763,
11,
705,
31391,
59,
46521,
59,
28758,
82,
11537,
201,
198,
220,
220,
220,
17365,
62,
11250,
62,
7753,
796,
28686,
13,
6978,
13,
22179,
7,
24330,
62,
74,
11250,
62,
6978,
11,
45302,
11250,
11537,
201,
198,
220,
220,
220,
611,
357,
1662,
28686,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
4008,
393,
357,
418,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
8,
290,
1064,
62,
20285,
305,
62,
259,
62,
11250,
7,
24330,
62,
11250,
62,
7753,
11,
705,
50,
16309,
62,
40492,
14313,
62,
41925,
35613,
62,
26861,
3698,
1137,
6158,
11537,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
651,
62,
26495,
62,
6371,
11,
651,
62,
332,
62,
26270,
796,
651,
62,
6371,
62,
6738,
62,
10793,
1472,
62,
15388,
10786,
43789,
3256,
705,
42861,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
651,
62,
26495,
62,
6371,
14512,
6045,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17606,
62,
260,
7501,
796,
651,
62,
26495,
62,
6371,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
37,
6255,
284,
651,
19016,
422,
10162,
4382,
13,
8554,
4277,
19016,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17606,
62,
260,
7501,
796,
705,
5450,
1378,
70,
578,
68,
13,
785,
14,
14181,
12,
16818,
12,
27453,
1472,
14,
43789,
13,
18300,
6,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
17606,
62,
260,
7501,
796,
705,
5450,
1378,
12567,
13,
785,
14,
14181,
12,
16818,
14,
43789,
13,
18300,
6,
201,
198,
220,
201,
198,
220,
220,
220,
10392,
62,
15763,
796,
279,
10025,
82,
62,
15763,
201,
198,
220,
220,
220,
279,
10025,
82,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
43789,
62,
15763,
11,
705,
43789,
11537,
201,
198,
201,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
9409,
343,
7,
35339,
82,
62,
6978,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
18300,
17271,
705,
1343,
17606,
62,
260,
7501,
1343,
705,
705,
1343,
279,
10025,
82,
62,
6978,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
10057,
7,
28758,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
5855,
929,
9526,
422,
1058,
4,
82,
1,
4064,
357,
18300,
62,
260,
7501,
13,
268,
8189,
7203,
40477,
12,
23,
1,
22305,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
44140,
284,
8515,
17365,
10392,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
374,
6,
18300,
2834,
705,
1343,
17606,
62,
260,
7501,
201,
198,
220,
220,
220,
220,
220,
220,
220,
12260,
62,
21812,
7,
28758,
11,
269,
16993,
28,
35339,
82,
62,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
4770,
25609,
855,
29,
220,
2039,
85,
10392,
8515,
1760,
3467,
77,
4943,
201,
198,
201,
198,
220,
220,
220,
329,
29472,
287,
28686,
13,
4868,
15908,
7,
43789,
62,
15763,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
43789,
62,
15763,
11,
29472,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
9409,
343,
7,
26495,
62,
6978,
2599,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5301,
62,
6978,
6624,
279,
10025,
82,
62,
6978,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
9409,
343,
7,
418,
13,
6978,
13,
22179,
7,
26495,
62,
6978,
11,
45302,
18300,
11537,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
44140,
284,
8515,
4064,
82,
526,
4064,
29472,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
374,
6,
18300,
2834,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12260,
62,
21812,
7,
28758,
11,
269,
16993,
28,
26495,
62,
6978,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
4770,
25609,
855,
29,
220,
2039,
85,
4064,
82,
4296,
1760,
3467,
77,
1,
4064,
29472,
8,
201,
198,
201,
198,
201,
198,
4299,
8515,
62,
24330,
62,
12048,
33529,
201,
198,
220,
220,
220,
37227,
10260,
17365,
2163,
14750,
526,
15931,
201,
198,
201,
198,
220,
220,
220,
3601,
7203,
44140,
284,
8515,
17365,
14750,
19570,
201,
198,
220,
220,
220,
17365,
62,
15763,
796,
17267,
10786,
24330,
62,
15763,
11537,
201,
198,
220,
220,
220,
17365,
62,
74,
11250,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
24330,
62,
15763,
11,
705,
31391,
59,
46521,
59,
28758,
82,
11537,
201,
198,
220,
220,
220,
17365,
62,
11250,
62,
7753,
796,
28686,
13,
6978,
13,
22179,
7,
24330,
62,
74,
11250,
62,
6978,
11,
45302,
11250,
11537,
201,
198,
220,
220,
220,
611,
357,
1662,
28686,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
4008,
393,
357,
418,
13,
6978,
13,
4468,
576,
7,
24330,
62,
11250,
62,
7753,
8,
290,
1064,
62,
20285,
305,
62,
259,
62,
11250,
7,
24330,
62,
11250,
62,
7753,
11,
705,
50,
16309,
62,
40492,
14313,
62,
41925,
35613,
62,
26861,
3698,
1137,
6158,
11537,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
651,
62,
26495,
62,
6371,
11,
651,
62,
332,
62,
26270,
796,
651,
62,
6371,
62,
6738,
62,
10793,
1472,
62,
15388,
10786,
24330,
3256,
705,
42861,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
651,
62,
26495,
62,
6371,
14512,
6045,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17365,
62,
46521,
62,
260,
7501,
796,
651,
62,
26495,
62,
6371,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
37,
6255,
284,
651,
19016,
422,
10162,
4382,
13,
8554,
4277,
19016,
19570,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17365,
62,
46521,
62,
260,
7501,
796,
705,
5450,
1378,
70,
578,
68,
13,
785,
14,
14181,
12,
16818,
12,
27453,
1472,
14,
24330,
13,
18300,
6,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
17365,
62,
46521,
62,
260,
7501,
796,
705,
5450,
1378,
12567,
13,
785,
14,
14181,
12,
16818,
14,
24330,
13,
18300,
6,
201,
198,
201,
198,
220,
220,
220,
17365,
62,
46521,
62,
15763,
796,
28686,
13,
6978,
13,
22179,
7,
24330,
62,
15763,
11,
705,
31391,
3256,
705,
46521,
11537,
201,
198,
220,
220,
220,
23991,
796,
374,
6,
18300,
2834,
705,
1343,
17365,
62,
46521,
62,
260,
7501,
201,
198,
220,
220,
220,
12260,
62,
21812,
7,
28758,
11,
269,
16993,
28,
24330,
62,
46521,
62,
15763,
8,
201,
198,
220,
220,
220,
3601,
7203,
4770,
25609,
855,
29,
220,
2039,
85,
14750,
8515,
1760,
3467,
77,
4943,
201,
198,
201,
198,
201,
198,
4299,
5301,
62,
929,
9526,
33529,
201,
198,
220,
220,
220,
37227,
10260,
262,
5301,
16099,
8619,
290,
17365,
2163,
14750,
526,
15931,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
8515,
62,
43789,
62,
9630,
3419,
201,
198,
220,
220,
220,
8515,
62,
24330,
62,
12048,
3419,
201,
198,
201,
198,
201,
198,
201,
198,
4299,
23991,
7,
22046,
2599,
201,
198,
220,
220,
220,
37227,
4834,
85,
338,
279,
10025,
82,
3141,
9706,
3689,
526,
15931,
201,
198,
201,
198,
220,
220,
220,
611,
26498,
13,
26495,
62,
19119,
62,
88,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
62,
19119,
7,
17821,
8,
201,
198,
220,
220,
220,
1288,
361,
26498,
13,
26495,
62,
19119,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
62,
19119,
3419,
201,
198,
220,
220,
220,
1288,
361,
26498,
13,
26495,
62,
17953,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
62,
86,
8669,
3419,
201,
198,
220,
220,
220,
1288,
361,
26498,
13,
26495,
62,
4868,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
62,
4868,
3419,
201,
198,
220,
220,
220,
1288,
361,
26498,
13,
26495,
62,
929,
9526,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
62,
929,
9526,
3419,
201,
198,
220,
220,
220,
1288,
361,
26498,
13,
26495,
62,
4798,
62,
24330,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
62,
4798,
62,
24330,
3419,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
10057,
10786,
35339,
82,
532,
71,
11537,
201,
198,
201,
198,
201,
198,
4299,
751,
62,
48610,
7,
7266,
2599,
201,
198,
220,
220,
220,
37227,
464,
279,
10025,
82,
3141,
30751,
329,
17365,
526,
15931,
201,
198,
201,
198,
220,
220,
220,
30751,
796,
850,
13,
2860,
62,
48610,
10786,
26495,
3256,
1037,
28,
834,
15390,
834,
11,
6764,
28,
834,
15390,
834,
8,
201,
198,
201,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
3174,
12,
19119,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
3174,
4296,
290,
3424,
10392,
11,
2721,
393,
4781,
262,
10392,
416,
534,
6460,
287,
6859,
11250,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2223,
11639,
8095,
62,
7942,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
25101,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2244,
11639,
26495,
62,
19119,
62,
88,
11537,
201,
198,
201,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
19119,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
19119,
10392,
11,
2721,
393,
4781,
262,
10392,
416,
534,
6460,
287,
6859,
11250,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2223,
11639,
8095,
62,
7942,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
25101,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2244,
11639,
26495,
62,
19119,
11537,
201,
198,
201,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
4868,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
4868,
2496,
10392,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2223,
11639,
8095,
62,
7942,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
25101,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2244,
11639,
26495,
62,
4868,
11537,
201,
198,
201,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
86,
8669,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
17953,
257,
649,
5301,
351,
18731,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2223,
11639,
8095,
62,
7942,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
25101,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2244,
11639,
26495,
62,
17953,
11537,
201,
198,
201,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
929,
9526,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
929,
9526,
1957,
10392,
1351,
290,
12964,
53,
14750,
422,
17606,
29924,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2223,
11639,
8095,
62,
7942,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
25101,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2244,
11639,
26495,
62,
929,
9526,
11537,
201,
198,
201,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
4798,
24330,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
4798,
6142,
9633,
284,
2198,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2223,
11639,
8095,
62,
7942,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
25101,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2244,
11639,
26495,
62,
4798,
62,
24330,
11537,
201,
198,
201,
198,
220,
220,
220,
1303,
30751,
13,
2860,
62,
49140,
10786,
438,
929,
9526,
3256,
2244,
11639,
260,
1930,
1668,
3256,
2672,
28,
25101,
11,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
2860,
2723,
1222,
4296,
10392,
29924,
705,
8,
201,
198,
201,
198,
220,
220,
220,
30751,
13,
2617,
62,
12286,
82,
7,
20786,
28,
28758,
8,
201,
198
] | 2.110933 | 18,137 |
# Corrigido
# Bloco de importações
import random
# Bloco de entrada
print()
n = int(input('Informe um número maior que zero: '))
print()
# Bloco de cálculos
num = random.randint(0, n)
# Bloco de saída
print('Numéro de saída: {}.'.format(num))
print()
|
[
2,
2744,
4359,
17305,
198,
198,
2,
1086,
25634,
390,
1330,
64,
16175,
127,
113,
274,
198,
11748,
4738,
198,
198,
2,
1086,
25634,
390,
24481,
4763,
198,
4798,
3419,
198,
77,
796,
493,
7,
15414,
10786,
818,
687,
68,
23781,
299,
21356,
647,
78,
17266,
1504,
8358,
6632,
25,
705,
4008,
198,
4798,
3419,
198,
198,
2,
1086,
25634,
390,
269,
6557,
75,
3129,
418,
198,
22510,
796,
4738,
13,
25192,
600,
7,
15,
11,
299,
8,
198,
198,
2,
1086,
25634,
390,
473,
8836,
6814,
198,
4798,
10786,
33111,
2634,
305,
390,
473,
8836,
6814,
25,
23884,
2637,
13,
18982,
7,
22510,
4008,
198,
4798,
3419,
198
] | 2.33945 | 109 |
# -*- encoding: utf-8 -*-
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
from tastypie.api import Api
from journalmanager import views, models
from api import resources
admin.autodiscover()
# RESTful API config
v1_api = Api(api_name='v1')
v1_api_resources = [
resources.JournalResource(),
resources.UserResource(),
resources.UseLicenseResource(),
resources.SponsorResource(),
resources.CollectionResource(),
resources.IssueResource(),
resources.SectionResource(),
resources.DataChangeEventResource(),
resources.PressReleaseResource(),
resources.AheadPressReleaseResource(),
resources.CheckinResource(),
resources.CheckinNoticeResource(),
resources.ArticleResource(),
resources.CheckinArticleResource(),
resources.TicketResource(),
resources.CommentResource()
]
for res in v1_api_resources:
v1_api.register(res)
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
# Article Tracking
url(r'^arttrack/', include('articletrack.urls')),
# Article Tools
url(r'^issue/(?P<issue_id>\d+)/articles/$', views.article_index, name='article.index'),
#url(r'^article/(?P<article_id>\d+)/edit/$', views.add_article, name='article.edit'),
# Journal Manager APP
url(r'^journal/', include('journalmanager.urls')),
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
# Collection Tools
url(r'^collection/$', views.collection_index, {'model': models.Collection}, name='collection.index'),
url(r'^collection/new/$', views.add_collection, name='collection.add'),
url(r'^collection/(?P<collection_id>\d+)/edit/$', views.add_collection, name='collection.edit'),
url(r'accounts/', include('accounts.urls')),
(r'^i18n/', include('django.conf.urls.i18n')),
# Trash
url(r'^trash/$', views.trash_listing, name="trash.listing"),
url(r'^trash/bulk_action/(?P<model_name>\w+)/(?P<action_name>\w+)/(?P<value>\w+)/$',
views.generic_bulk_action, name='trash.bulk_action'),
#API version 1
(r'^api/', include(v1_api.urls)),
(r'^export/', include('export.urls')),
#AJAX
url(r'^ajx/ajx3/$', views.ajx_list_users, name="ajx.ajx_list_users"),
)
if settings.DEBUG:
urlpatterns += patterns('',
url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
)
|
[
2,
532,
9,
12,
21004,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
42625,
14208,
13,
10414,
13,
6371,
82,
13,
12286,
82,
1330,
1635,
198,
6738,
42625,
14208,
13,
3642,
822,
1330,
13169,
198,
6738,
42625,
14208,
13,
10414,
1330,
6460,
198,
6738,
14854,
4464,
494,
13,
15042,
1330,
5949,
72,
198,
198,
6738,
3989,
37153,
1330,
5009,
11,
4981,
198,
6738,
40391,
1330,
4133,
198,
198,
28482,
13,
2306,
375,
29392,
3419,
198,
198,
2,
30617,
913,
7824,
4566,
198,
85,
16,
62,
15042,
796,
5949,
72,
7,
15042,
62,
3672,
11639,
85,
16,
11537,
198,
85,
16,
62,
15042,
62,
37540,
796,
685,
198,
220,
220,
220,
4133,
13,
25296,
26198,
22784,
198,
220,
220,
220,
4133,
13,
12982,
26198,
22784,
198,
220,
220,
220,
4133,
13,
11041,
34156,
26198,
22784,
198,
220,
220,
220,
4133,
13,
43522,
273,
26198,
22784,
198,
220,
220,
220,
4133,
13,
36307,
26198,
22784,
198,
220,
220,
220,
4133,
13,
45147,
26198,
22784,
198,
220,
220,
220,
4133,
13,
16375,
26198,
22784,
198,
220,
220,
220,
4133,
13,
6601,
19400,
9237,
26198,
22784,
198,
220,
220,
220,
4133,
13,
13800,
26362,
26198,
22784,
198,
220,
220,
220,
4133,
13,
32,
2256,
13800,
26362,
26198,
22784,
198,
220,
220,
220,
4133,
13,
9787,
259,
26198,
22784,
198,
220,
220,
220,
4133,
13,
9787,
259,
26396,
26198,
22784,
198,
220,
220,
220,
4133,
13,
14906,
26198,
22784,
198,
220,
220,
220,
4133,
13,
9787,
259,
14906,
26198,
22784,
198,
220,
220,
220,
4133,
13,
51,
9715,
26198,
22784,
198,
220,
220,
220,
4133,
13,
21357,
26198,
3419,
198,
60,
198,
198,
1640,
581,
287,
410,
16,
62,
15042,
62,
37540,
25,
198,
220,
220,
220,
410,
16,
62,
15042,
13,
30238,
7,
411,
8,
198,
198,
6371,
33279,
82,
796,
7572,
10786,
3256,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
3,
3256,
5009,
13,
9630,
11,
1438,
11639,
9630,
33809,
628,
220,
220,
220,
1303,
10172,
37169,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
433,
11659,
14,
3256,
2291,
10786,
20205,
11659,
13,
6371,
82,
11537,
828,
628,
220,
220,
220,
1303,
10172,
20003,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
21949,
29006,
30,
47,
27,
21949,
62,
312,
29,
59,
67,
10,
20679,
26845,
32624,
3256,
5009,
13,
20205,
62,
9630,
11,
1438,
11639,
20205,
13,
9630,
33809,
198,
220,
220,
220,
1303,
6371,
7,
81,
6,
61,
20205,
29006,
30,
47,
27,
20205,
62,
312,
29,
59,
67,
10,
20679,
19312,
32624,
3256,
5009,
13,
2860,
62,
20205,
11,
1438,
11639,
20205,
13,
19312,
33809,
628,
220,
220,
220,
1303,
4913,
9142,
43504,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
24891,
14,
3256,
2291,
10786,
24891,
37153,
13,
6371,
82,
11537,
828,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
28482,
14,
15390,
14,
3256,
2291,
10786,
28241,
14208,
13,
3642,
822,
13,
324,
10155,
420,
82,
13,
6371,
82,
11537,
828,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
28482,
14,
3256,
2291,
7,
28482,
13,
15654,
13,
6371,
82,
36911,
628,
220,
220,
220,
1303,
12251,
20003,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
43681,
32624,
3256,
5009,
13,
43681,
62,
9630,
11,
1391,
6,
19849,
10354,
4981,
13,
36307,
5512,
1438,
11639,
43681,
13,
9630,
33809,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
43681,
14,
3605,
32624,
3256,
5009,
13,
2860,
62,
43681,
11,
1438,
11639,
43681,
13,
2860,
33809,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
43681,
29006,
30,
47,
27,
43681,
62,
312,
29,
59,
67,
10,
20679,
19312,
32624,
3256,
5009,
13,
2860,
62,
43681,
11,
1438,
11639,
43681,
13,
19312,
33809,
628,
220,
220,
220,
19016,
7,
81,
6,
23317,
82,
14,
3256,
2291,
10786,
23317,
82,
13,
6371,
82,
11537,
828,
628,
220,
220,
220,
357,
81,
6,
61,
72,
1507,
77,
14,
3256,
2291,
10786,
28241,
14208,
13,
10414,
13,
6371,
82,
13,
72,
1507,
77,
11537,
828,
628,
220,
220,
220,
1303,
48161,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
2213,
1077,
32624,
3256,
5009,
13,
2213,
1077,
62,
4868,
278,
11,
1438,
2625,
2213,
1077,
13,
4868,
278,
12340,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
2213,
1077,
14,
65,
12171,
62,
2673,
29006,
30,
47,
27,
19849,
62,
3672,
29,
59,
86,
10,
20679,
7,
30,
47,
27,
2673,
62,
3672,
29,
59,
86,
10,
20679,
7,
30,
47,
27,
8367,
29,
59,
86,
10,
20679,
3,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
5009,
13,
41357,
62,
65,
12171,
62,
2673,
11,
1438,
11639,
2213,
1077,
13,
65,
12171,
62,
2673,
33809,
628,
220,
220,
220,
1303,
17614,
2196,
352,
198,
220,
220,
220,
357,
81,
6,
61,
15042,
14,
3256,
2291,
7,
85,
16,
62,
15042,
13,
6371,
82,
36911,
628,
220,
220,
220,
357,
81,
6,
61,
39344,
14,
3256,
2291,
10786,
39344,
13,
6371,
82,
11537,
828,
628,
220,
220,
220,
1303,
32,
41,
25922,
198,
220,
220,
220,
19016,
7,
81,
6,
61,
1228,
87,
14,
1228,
87,
18,
32624,
3256,
5009,
13,
1228,
87,
62,
4868,
62,
18417,
11,
1438,
2625,
1228,
87,
13,
1228,
87,
62,
4868,
62,
18417,
12340,
198,
8,
198,
198,
361,
6460,
13,
30531,
25,
628,
220,
220,
220,
19016,
33279,
82,
15853,
7572,
10786,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
7,
81,
6,
61,
12708,
29006,
30,
47,
27,
6978,
29,
15885,
8,
3,
3256,
705,
28241,
14208,
13,
33571,
13,
12708,
13,
2655,
303,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
22897,
62,
15763,
10354,
6460,
13,
30733,
3539,
62,
13252,
2394,
92,
828,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198
] | 2.593361 | 964 |
"""
Neuroimaging cartesian reconstruction
=====================================
Credit: L Elgueddari
In this tutorial we will reconstruct an MRI image from the sparse kspace
measurments.
"""
# Package import
import pysap
from pysap.data import get_sample_data
from mri.numerics.linear import Wavelet2
from mri.numerics.fourier import NFFT
from mri.numerics.reconstruct import sparse_rec_fista
from mri.numerics.reconstruct import sparse_rec_condatvu
from mri.numerics.gradient import Gradient_pMRI
from mri.numerics.proximity import Threshold
from pysap.plugins.mri.parallel_mri.extract_sensitivity_maps import (
extract_k_space_center_and_locations, get_Smaps)
from pysap.plugins.mri.reconstruct.utils import normalize_frequency_locations
# Third party import
import numpy as np
# Loading input data
Il = get_sample_data("2d-pmri").data.astype("complex128")
SOS = np.squeeze(np.sqrt(np.sum(np.abs(Il)**2, axis=0)))
Smaps = np.asarray([Il[channel]/SOS for channel in range(Il.shape[0])])
kspace_loc = normalize_frequency_locations(
get_sample_data("mri-radial-samples").data)
image = pysap.Image(data=np.abs(SOS))
image.show()
#############################################################################
# Generate the kspace
# -------------------
#
# From the 2D brain slice and the acquistion mask, we generate the acquisition
# measurments, the observed kspace.
# We then reconstruct the zero order solution.
# Generate the subsampled kspace
fourier_op_gen = NFFT(samples=kspace_loc, shape=SOS.shape)
kspace_data = np.asarray([fourier_op_gen.op(Il[l]) for l in
range(Il.shape[0])])
# Generate the senitivity matrix from undersampled data
data_thresholded, samples_thresholded = extract_k_space_center_and_locations(
data_values=kspace_data,
samples_locations=kspace_loc,
thr=(0.5/128*5, 0.5/128*5),
img_shape=SOS.shape)
Smaps, SOS_Smaps = get_Smaps(
k_space=data_thresholded,
img_shape=SOS.shape,
samples=samples_thresholded,
mode='Gridding',
min_samples=np.min(kspace_loc),
max_samples=np.max(kspace_loc),
method='linear')
#############################################################################
# FISTA optimization
# ------------------
#
# We now want to refine the zero order solution using a FISTA optimization.
# Here no cost function is set, and the optimization will reach the
# maximum number of iterations. Fill free to play with this parameter.
# Start the FISTA reconstruction
max_iter = 50
linear_op = Wavelet2(wavelet_name="UndecimatedBiOrthogonalTransform",
nb_scale=4)
prox_op = Threshold(None)
fourier_op = NFFT(samples=kspace_loc, shape=SOS.shape)
gradient_op = Gradient_pMRI(data=kspace_data,
fourier_op=fourier_op,
linear_op=linear_op,
S=Smaps)
x_final, transform, cost, metrics = sparse_rec_fista(
gradient_op=gradient_op,
linear_op=linear_op,
prox_op=prox_op,
cost_op=None,
mu=1e-7,
lambda_init=1.0,
max_nb_of_iter=max_iter,
atol=1e-4,
verbose=1)
image_rec = pysap.Image(data=np.abs(x_final))
image_rec.show()
#############################################################################
# Condata-Vu optimization
# -----------------------
#
# We now want to refine the zero order solution using a Condata-Vu
# optimization.
# Here no cost function is set, and the optimization will reach the
# maximum number of iterations. Fill free to play with this parameter.
# Start the CONDAT-VU reconstruction
max_iter = 50
gradient_op_cd = Gradient_pMRI(data=kspace_data,
fourier_op=fourier_op,
S=Smaps)
x_final, transform, cost, metrics = sparse_rec_condatvu(
gradient_op=gradient_op_cd,
linear_op=linear_op,
prox_dual_op=prox_op,
cost_op=None,
std_est=None,
std_est_method="dual",
std_thr=2.,
mu=1e-7,
tau=None,
sigma=None,
relaxation_factor=1.0,
nb_of_reweights=0,
max_nb_of_iter=max_iter,
add_positivity=False,
atol=1e-4,
verbose=1)
image_rec = pysap.Image(data=np.abs(x_final))
image_rec.show()
|
[
37811,
198,
8199,
1434,
320,
3039,
6383,
35610,
25056,
198,
10052,
1421,
28,
198,
198,
23690,
25,
406,
2574,
70,
1739,
67,
2743,
198,
198,
818,
428,
11808,
356,
481,
31081,
281,
30278,
2939,
422,
262,
29877,
479,
13200,
198,
1326,
292,
333,
902,
13,
198,
37811,
198,
198,
2,
15717,
1330,
198,
11748,
279,
893,
499,
198,
6738,
279,
893,
499,
13,
7890,
1330,
651,
62,
39873,
62,
7890,
198,
6738,
285,
380,
13,
77,
6975,
873,
13,
29127,
1330,
17084,
1616,
17,
198,
6738,
285,
380,
13,
77,
6975,
873,
13,
69,
280,
5277,
1330,
399,
5777,
51,
198,
6738,
285,
380,
13,
77,
6975,
873,
13,
260,
41571,
1330,
29877,
62,
8344,
62,
69,
12523,
198,
6738,
285,
380,
13,
77,
6975,
873,
13,
260,
41571,
1330,
29877,
62,
8344,
62,
17561,
265,
40939,
198,
6738,
285,
380,
13,
77,
6975,
873,
13,
49607,
1330,
17701,
1153,
62,
79,
40952,
198,
6738,
285,
380,
13,
77,
6975,
873,
13,
1676,
87,
18853,
1330,
536,
10126,
198,
6738,
279,
893,
499,
13,
37390,
13,
76,
380,
13,
1845,
29363,
62,
76,
380,
13,
2302,
974,
62,
82,
40545,
62,
31803,
1330,
357,
198,
220,
220,
220,
7925,
62,
74,
62,
13200,
62,
16159,
62,
392,
62,
17946,
602,
11,
651,
62,
7556,
1686,
8,
198,
6738,
279,
893,
499,
13,
37390,
13,
76,
380,
13,
260,
41571,
13,
26791,
1330,
3487,
1096,
62,
35324,
62,
17946,
602,
198,
198,
2,
10467,
2151,
1330,
198,
11748,
299,
32152,
355,
45941,
198,
198,
2,
12320,
5128,
1366,
198,
33666,
796,
651,
62,
39873,
62,
7890,
7203,
17,
67,
12,
4426,
380,
11074,
7890,
13,
459,
2981,
7203,
41887,
12762,
4943,
198,
50,
2640,
796,
45941,
13,
16485,
1453,
2736,
7,
37659,
13,
31166,
17034,
7,
37659,
13,
16345,
7,
37659,
13,
8937,
7,
33666,
8,
1174,
17,
11,
16488,
28,
15,
22305,
198,
7556,
1686,
796,
45941,
13,
292,
18747,
26933,
33666,
58,
17620,
60,
14,
50,
2640,
329,
6518,
287,
2837,
7,
33666,
13,
43358,
58,
15,
12962,
12962,
198,
591,
10223,
62,
17946,
796,
3487,
1096,
62,
35324,
62,
17946,
602,
7,
198,
220,
220,
220,
651,
62,
39873,
62,
7890,
7203,
76,
380,
12,
6335,
498,
12,
82,
12629,
11074,
7890,
8,
198,
9060,
796,
279,
893,
499,
13,
5159,
7,
7890,
28,
37659,
13,
8937,
7,
50,
2640,
4008,
198,
9060,
13,
12860,
3419,
628,
198,
29113,
29113,
7804,
4242,
2,
198,
2,
2980,
378,
262,
479,
13200,
198,
2,
34400,
6329,
198,
2,
198,
2,
3574,
262,
362,
35,
3632,
16416,
290,
262,
4078,
396,
295,
9335,
11,
356,
7716,
262,
12673,
198,
2,
2212,
333,
902,
11,
262,
6515,
479,
13200,
13,
198,
2,
775,
788,
31081,
262,
6632,
1502,
4610,
13,
198,
198,
2,
2980,
378,
262,
6352,
321,
10137,
479,
13200,
198,
69,
280,
5277,
62,
404,
62,
5235,
796,
399,
5777,
51,
7,
82,
12629,
28,
591,
10223,
62,
17946,
11,
5485,
28,
50,
2640,
13,
43358,
8,
198,
591,
10223,
62,
7890,
796,
45941,
13,
292,
18747,
26933,
69,
280,
5277,
62,
404,
62,
5235,
13,
404,
7,
33666,
58,
75,
12962,
329,
300,
287,
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,
2837,
7,
33666,
13,
43358,
58,
15,
12962,
12962,
198,
198,
2,
2980,
378,
262,
3308,
11365,
17593,
422,
14584,
321,
10137,
1366,
198,
7890,
62,
400,
10126,
276,
11,
8405,
62,
400,
10126,
276,
796,
7925,
62,
74,
62,
13200,
62,
16159,
62,
392,
62,
17946,
602,
7,
198,
220,
220,
220,
1366,
62,
27160,
28,
591,
10223,
62,
7890,
11,
198,
220,
220,
220,
8405,
62,
17946,
602,
28,
591,
10223,
62,
17946,
11,
198,
220,
220,
220,
5636,
16193,
15,
13,
20,
14,
12762,
9,
20,
11,
657,
13,
20,
14,
12762,
9,
20,
828,
198,
220,
220,
220,
33705,
62,
43358,
28,
50,
2640,
13,
43358,
8,
198,
198,
7556,
1686,
11,
42707,
62,
7556,
1686,
796,
651,
62,
7556,
1686,
7,
198,
220,
220,
220,
479,
62,
13200,
28,
7890,
62,
400,
10126,
276,
11,
198,
220,
220,
220,
33705,
62,
43358,
28,
50,
2640,
13,
43358,
11,
198,
220,
220,
220,
8405,
28,
82,
12629,
62,
400,
10126,
276,
11,
198,
220,
220,
220,
4235,
11639,
8642,
13494,
3256,
198,
220,
220,
220,
949,
62,
82,
12629,
28,
37659,
13,
1084,
7,
591,
10223,
62,
17946,
828,
198,
220,
220,
220,
3509,
62,
82,
12629,
28,
37659,
13,
9806,
7,
591,
10223,
62,
17946,
828,
198,
220,
220,
220,
2446,
11639,
29127,
11537,
198,
198,
29113,
29113,
7804,
4242,
2,
198,
2,
376,
1797,
5603,
23989,
198,
2,
34400,
438,
198,
2,
198,
2,
775,
783,
765,
284,
35139,
262,
6632,
1502,
4610,
1262,
257,
376,
1797,
5603,
23989,
13,
198,
2,
3423,
645,
1575,
2163,
318,
900,
11,
290,
262,
23989,
481,
3151,
262,
198,
2,
5415,
1271,
286,
34820,
13,
27845,
1479,
284,
711,
351,
428,
11507,
13,
198,
198,
2,
7253,
262,
376,
1797,
5603,
25056,
198,
9806,
62,
2676,
796,
2026,
198,
198,
29127,
62,
404,
796,
17084,
1616,
17,
7,
19204,
1616,
62,
3672,
2625,
31319,
721,
15655,
23286,
5574,
400,
519,
20996,
41762,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
65,
62,
9888,
28,
19,
8,
198,
1676,
87,
62,
404,
796,
536,
10126,
7,
14202,
8,
198,
69,
280,
5277,
62,
404,
796,
399,
5777,
51,
7,
82,
12629,
28,
591,
10223,
62,
17946,
11,
5485,
28,
50,
2640,
13,
43358,
8,
198,
49607,
62,
404,
796,
17701,
1153,
62,
79,
40952,
7,
7890,
28,
591,
10223,
62,
7890,
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,
46287,
5277,
62,
404,
28,
69,
280,
5277,
62,
404,
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,
14174,
62,
404,
28,
29127,
62,
404,
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,
311,
28,
7556,
1686,
8,
198,
198,
87,
62,
20311,
11,
6121,
11,
1575,
11,
20731,
796,
29877,
62,
8344,
62,
69,
12523,
7,
198,
220,
220,
220,
31312,
62,
404,
28,
49607,
62,
404,
11,
198,
220,
220,
220,
14174,
62,
404,
28,
29127,
62,
404,
11,
198,
220,
220,
220,
14793,
62,
404,
28,
1676,
87,
62,
404,
11,
198,
220,
220,
220,
1575,
62,
404,
28,
14202,
11,
198,
220,
220,
220,
38779,
28,
16,
68,
12,
22,
11,
198,
220,
220,
220,
37456,
62,
15003,
28,
16,
13,
15,
11,
198,
220,
220,
220,
3509,
62,
46803,
62,
1659,
62,
2676,
28,
9806,
62,
2676,
11,
198,
220,
220,
220,
379,
349,
28,
16,
68,
12,
19,
11,
198,
220,
220,
220,
15942,
577,
28,
16,
8,
198,
9060,
62,
8344,
796,
279,
893,
499,
13,
5159,
7,
7890,
28,
37659,
13,
8937,
7,
87,
62,
20311,
4008,
198,
9060,
62,
8344,
13,
12860,
3419,
628,
198,
29113,
29113,
7804,
4242,
2,
198,
2,
9724,
1045,
12,
53,
84,
23989,
198,
2,
41436,
6329,
198,
2,
198,
2,
775,
783,
765,
284,
35139,
262,
6632,
1502,
4610,
1262,
257,
9724,
1045,
12,
53,
84,
198,
2,
23989,
13,
198,
2,
3423,
645,
1575,
2163,
318,
900,
11,
290,
262,
23989,
481,
3151,
262,
198,
2,
5415,
1271,
286,
34820,
13,
27845,
1479,
284,
711,
351,
428,
11507,
13,
198,
198,
2,
7253,
262,
7102,
35,
1404,
12,
53,
52,
25056,
198,
9806,
62,
2676,
796,
2026,
198,
49607,
62,
404,
62,
10210,
796,
17701,
1153,
62,
79,
40952,
7,
7890,
28,
591,
10223,
62,
7890,
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,
46287,
5277,
62,
404,
28,
69,
280,
5277,
62,
404,
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,
311,
28,
7556,
1686,
8,
198,
87,
62,
20311,
11,
6121,
11,
1575,
11,
20731,
796,
29877,
62,
8344,
62,
17561,
265,
40939,
7,
198,
220,
220,
220,
31312,
62,
404,
28,
49607,
62,
404,
62,
10210,
11,
198,
220,
220,
220,
14174,
62,
404,
28,
29127,
62,
404,
11,
198,
220,
220,
220,
14793,
62,
646,
282,
62,
404,
28,
1676,
87,
62,
404,
11,
198,
220,
220,
220,
1575,
62,
404,
28,
14202,
11,
198,
220,
220,
220,
14367,
62,
395,
28,
14202,
11,
198,
220,
220,
220,
14367,
62,
395,
62,
24396,
2625,
646,
282,
1600,
198,
220,
220,
220,
14367,
62,
400,
81,
28,
17,
1539,
198,
220,
220,
220,
38779,
28,
16,
68,
12,
22,
11,
198,
220,
220,
220,
256,
559,
28,
14202,
11,
198,
220,
220,
220,
264,
13495,
28,
14202,
11,
198,
220,
220,
220,
34205,
62,
31412,
28,
16,
13,
15,
11,
198,
220,
220,
220,
299,
65,
62,
1659,
62,
260,
43775,
28,
15,
11,
198,
220,
220,
220,
3509,
62,
46803,
62,
1659,
62,
2676,
28,
9806,
62,
2676,
11,
198,
220,
220,
220,
751,
62,
1930,
11365,
28,
25101,
11,
198,
220,
220,
220,
379,
349,
28,
16,
68,
12,
19,
11,
198,
220,
220,
220,
15942,
577,
28,
16,
8,
198,
9060,
62,
8344,
796,
279,
893,
499,
13,
5159,
7,
7890,
28,
37659,
13,
8937,
7,
87,
62,
20311,
4008,
198,
9060,
62,
8344,
13,
12860,
3419,
198
] | 2.539442 | 1,648 |
Version = "4.5.2"
if __name__ == "__main__":
print (Version)
|
[
14815,
796,
366,
19,
13,
20,
13,
17,
1,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
3601,
357,
14815,
8,
628
] | 2.233333 | 30 |
from django.contrib.auth.models import Group, Permission
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import ugettext_lazy as _
from guardian.compat import user_model_label
from guardian.ctypes import get_content_type
from guardian.managers import GroupObjectPermissionManager, UserObjectPermissionManager
class BaseObjectPermission(models.Model):
"""
Abstract ObjectPermission class. Actual class should additionally define
a ``content_object`` field and either ``user`` or ``group`` field.
"""
permission = models.ForeignKey(Permission, on_delete=models.CASCADE)
class UserObjectPermissionBase(BaseObjectPermission):
"""
**Manager**: :manager:`UserObjectPermissionManager`
"""
user = models.ForeignKey(user_model_label, on_delete=models.CASCADE)
objects = UserObjectPermissionManager()
class GroupObjectPermissionBase(BaseObjectPermission):
"""
**Manager**: :manager:`GroupObjectPermissionManager`
"""
group = models.ForeignKey(Group, on_delete=models.CASCADE)
objects = GroupObjectPermissionManager()
setattr(Group, 'add_obj_perm',
lambda self, perm, obj: GroupObjectPermission.objects.assign_perm(perm, self, obj))
setattr(Group, 'del_obj_perm',
lambda self, perm, obj: GroupObjectPermission.objects.remove_perm(perm, self, obj))
|
[
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
27530,
1330,
4912,
11,
2448,
3411,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
11299,
19199,
13,
25747,
1330,
42044,
33616,
9218,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
11299,
19199,
13,
27530,
1330,
14041,
6030,
198,
6738,
42625,
14208,
13,
7295,
13,
1069,
11755,
1330,
3254,
24765,
12331,
198,
6738,
42625,
14208,
13,
9945,
1330,
4981,
198,
6738,
42625,
14208,
13,
26791,
13,
41519,
1330,
334,
1136,
5239,
62,
75,
12582,
355,
4808,
198,
6738,
21688,
13,
5589,
265,
1330,
2836,
62,
19849,
62,
18242,
198,
6738,
21688,
13,
310,
9497,
1330,
651,
62,
11299,
62,
4906,
198,
6738,
21688,
13,
805,
10321,
1330,
4912,
10267,
5990,
3411,
13511,
11,
11787,
10267,
5990,
3411,
13511,
628,
198,
4871,
7308,
10267,
5990,
3411,
7,
27530,
13,
17633,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
27741,
9515,
5990,
3411,
1398,
13,
33520,
1398,
815,
36527,
8160,
198,
220,
220,
220,
257,
7559,
11299,
62,
15252,
15506,
2214,
290,
2035,
7559,
7220,
15506,
393,
7559,
8094,
15506,
2214,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
7170,
796,
4981,
13,
33616,
9218,
7,
5990,
3411,
11,
319,
62,
33678,
28,
27530,
13,
34,
42643,
19266,
8,
628,
198,
198,
4871,
11787,
10267,
5990,
3411,
14881,
7,
14881,
10267,
5990,
3411,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
12429,
13511,
1174,
25,
1058,
37153,
25,
63,
12982,
10267,
5990,
3411,
13511,
63,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2836,
796,
4981,
13,
33616,
9218,
7,
7220,
62,
19849,
62,
18242,
11,
319,
62,
33678,
28,
27530,
13,
34,
42643,
19266,
8,
628,
220,
220,
220,
5563,
796,
11787,
10267,
5990,
3411,
13511,
3419,
628,
198,
198,
4871,
4912,
10267,
5990,
3411,
14881,
7,
14881,
10267,
5990,
3411,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
12429,
13511,
1174,
25,
1058,
37153,
25,
63,
13247,
10267,
5990,
3411,
13511,
63,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1448,
796,
4981,
13,
33616,
9218,
7,
13247,
11,
319,
62,
33678,
28,
27530,
13,
34,
42643,
19266,
8,
628,
220,
220,
220,
5563,
796,
4912,
10267,
5990,
3411,
13511,
3419,
628,
198,
198,
2617,
35226,
7,
13247,
11,
705,
2860,
62,
26801,
62,
16321,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
37456,
2116,
11,
9943,
11,
26181,
25,
4912,
10267,
5990,
3411,
13,
48205,
13,
562,
570,
62,
16321,
7,
16321,
11,
2116,
11,
26181,
4008,
198,
2617,
35226,
7,
13247,
11,
705,
12381,
62,
26801,
62,
16321,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
37456,
2116,
11,
9943,
11,
26181,
25,
4912,
10267,
5990,
3411,
13,
48205,
13,
28956,
62,
16321,
7,
16321,
11,
2116,
11,
26181,
4008,
198
] | 3.265659 | 463 |
from transbank.error.invalid_amount_error import InvalidAmountError
|
[
6738,
1007,
17796,
13,
18224,
13,
259,
12102,
62,
17287,
62,
18224,
1330,
17665,
31264,
12331,
628
] | 4.058824 | 17 |
# -*- coding: utf-8 -*-
from usercrawler import UserCrawler
uid = u'小鱼游啊游0423'
crawler = UserCrawler()
userinfo = crawler.scratch(uid)
print userinfo
|
[
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
514,
2798,
39464,
1330,
11787,
34,
39464,
198,
27112,
796,
334,
6,
22887,
237,
165,
109,
120,
162,
116,
116,
161,
243,
232,
162,
116,
116,
3023,
1954,
6,
198,
66,
39464,
796,
11787,
34,
39464,
3419,
198,
7220,
10951,
796,
27784,
1754,
13,
1416,
36722,
7,
27112,
8,
198,
4798,
2836,
10951
] | 2.191176 | 68 |
import torch
from torch.nn import functional as F
from .utils import ConvNdTorch, PoolingNdTorch, NormNdTorch, DropoutNdTorch
from .basic_networks import BaseSegmentationTorchNetwork
|
[
11748,
28034,
198,
6738,
28034,
13,
20471,
1330,
10345,
355,
376,
198,
6738,
764,
26791,
1330,
34872,
45,
67,
15884,
354,
11,
19850,
278,
45,
67,
15884,
354,
11,
11220,
45,
67,
15884,
354,
11,
14258,
448,
45,
67,
15884,
354,
198,
6738,
764,
35487,
62,
3262,
5225,
1330,
7308,
41030,
14374,
15884,
354,
26245,
628,
628
] | 3.263158 | 57 |
from tensorflow.keras import layers
import time
import tensorflow as tf
def make_generator_model():
'''
Create GAN generator
:return: Generator
'''
model = tf.keras.Sequential()
model.add(layers.Dense(7*7*256, use_bias=False, input_shape=(100,)))
model.add(layers.BatchNormalization())
model.add(layers.LeakyReLU())
model.add(layers.Reshape((7, 7, 256)))
assert model.output_shape == (None, 7, 7, 256)
model.add(layers.Conv2DTranspose(128, (5, 5), strides=(1, 1), padding='same', use_bias=False))
assert model.output_shape == (None, 7, 7, 128)
model.add(layers.BatchNormalization())
model.add(layers.LeakyReLU())
model.add(layers.Conv2DTranspose(64, (5, 5), strides=(2, 2), padding='same', use_bias=False))
assert model.output_shape == (None, 14, 14, 64)
model.add(layers.BatchNormalization())
model.add(layers.LeakyReLU())
model.add(layers.Conv2DTranspose(1, (5, 5), strides=(2, 2), padding='same', use_bias=False, activation='tanh'))
assert model.output_shape == (None, 28, 28, 1)
return model
def make_discriminator_model():
"""
Create Discriminator for GAN
:return: Discriminator
"""
model = tf.keras.Sequential()
model.add(layers.Conv2D(64, (5, 5), strides=(2, 2), padding='same',
input_shape=[28, 28, 1]))
model.add(layers.LeakyReLU())
model.add(layers.Dropout(0.3))
model.add(layers.Conv2D(128, (5, 5), strides=(2, 2), padding='same'))
model.add(layers.LeakyReLU())
model.add(layers.Dropout(0.3))
model.add(layers.Flatten())
model.add(layers.Dense(1))
return model
def discriminator_loss(real_output, fake_output, cross_entropy):
"""
Calculate loss
:param real_output: real output
:param fake_output: fake output
:param cross_entropy: cross entropy
:return: loss
"""
real_loss = cross_entropy(tf.ones_like(real_output), real_output)
fake_loss = cross_entropy(tf.zeros_like(fake_output), fake_output)
total_loss = real_loss + fake_loss
return total_loss
@tf.function
|
[
6738,
11192,
273,
11125,
13,
6122,
292,
1330,
11685,
198,
11748,
640,
198,
198,
11748,
11192,
273,
11125,
355,
48700,
628,
198,
4299,
787,
62,
8612,
1352,
62,
19849,
33529,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
13610,
402,
1565,
17301,
198,
220,
220,
220,
1058,
7783,
25,
35986,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
2746,
796,
48700,
13,
6122,
292,
13,
44015,
1843,
3419,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
35,
1072,
7,
22,
9,
22,
9,
11645,
11,
779,
62,
65,
4448,
28,
25101,
11,
5128,
62,
43358,
16193,
3064,
11,
22305,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
33,
963,
26447,
1634,
28955,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
3123,
15492,
3041,
41596,
28955,
628,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
4965,
71,
1758,
19510,
22,
11,
767,
11,
17759,
22305,
198,
220,
220,
220,
6818,
2746,
13,
22915,
62,
43358,
6624,
357,
14202,
11,
767,
11,
767,
11,
17759,
8,
628,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
3103,
85,
17,
35,
8291,
3455,
7,
12762,
11,
357,
20,
11,
642,
828,
35002,
16193,
16,
11,
352,
828,
24511,
11639,
31642,
3256,
779,
62,
65,
4448,
28,
25101,
4008,
198,
220,
220,
220,
6818,
2746,
13,
22915,
62,
43358,
6624,
357,
14202,
11,
767,
11,
767,
11,
13108,
8,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
33,
963,
26447,
1634,
28955,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
3123,
15492,
3041,
41596,
28955,
628,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
3103,
85,
17,
35,
8291,
3455,
7,
2414,
11,
357,
20,
11,
642,
828,
35002,
16193,
17,
11,
362,
828,
24511,
11639,
31642,
3256,
779,
62,
65,
4448,
28,
25101,
4008,
198,
220,
220,
220,
6818,
2746,
13,
22915,
62,
43358,
6624,
357,
14202,
11,
1478,
11,
1478,
11,
5598,
8,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
33,
963,
26447,
1634,
28955,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
3123,
15492,
3041,
41596,
28955,
628,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
3103,
85,
17,
35,
8291,
3455,
7,
16,
11,
357,
20,
11,
642,
828,
35002,
16193,
17,
11,
362,
828,
24511,
11639,
31642,
3256,
779,
62,
65,
4448,
28,
25101,
11,
14916,
11639,
38006,
71,
6,
4008,
198,
220,
220,
220,
6818,
2746,
13,
22915,
62,
43358,
6624,
357,
14202,
11,
2579,
11,
2579,
11,
352,
8,
628,
220,
220,
220,
1441,
2746,
628,
198,
4299,
787,
62,
15410,
3036,
20900,
62,
19849,
33529,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
13610,
8444,
3036,
20900,
329,
402,
1565,
198,
220,
220,
220,
1058,
7783,
25,
8444,
3036,
20900,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2746,
796,
48700,
13,
6122,
292,
13,
44015,
1843,
3419,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
3103,
85,
17,
35,
7,
2414,
11,
357,
20,
11,
642,
828,
35002,
16193,
17,
11,
362,
828,
24511,
11639,
31642,
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,
5128,
62,
43358,
41888,
2078,
11,
2579,
11,
352,
60,
4008,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
3123,
15492,
3041,
41596,
28955,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
26932,
448,
7,
15,
13,
18,
4008,
628,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
3103,
85,
17,
35,
7,
12762,
11,
357,
20,
11,
642,
828,
35002,
16193,
17,
11,
362,
828,
24511,
11639,
31642,
6,
4008,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
3123,
15492,
3041,
41596,
28955,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
26932,
448,
7,
15,
13,
18,
4008,
628,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
7414,
41769,
28955,
198,
220,
220,
220,
2746,
13,
2860,
7,
75,
6962,
13,
35,
1072,
7,
16,
4008,
628,
220,
220,
220,
1441,
2746,
628,
198,
4299,
6534,
20900,
62,
22462,
7,
5305,
62,
22915,
11,
8390,
62,
22915,
11,
3272,
62,
298,
28338,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
27131,
378,
2994,
198,
220,
220,
220,
1058,
17143,
1103,
62,
22915,
25,
1103,
5072,
198,
220,
220,
220,
1058,
17143,
8390,
62,
22915,
25,
8390,
5072,
198,
220,
220,
220,
1058,
17143,
3272,
62,
298,
28338,
25,
3272,
40709,
198,
220,
220,
220,
1058,
7783,
25,
2994,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1103,
62,
22462,
796,
3272,
62,
298,
28338,
7,
27110,
13,
1952,
62,
2339,
7,
5305,
62,
22915,
828,
1103,
62,
22915,
8,
198,
220,
220,
220,
8390,
62,
22462,
796,
3272,
62,
298,
28338,
7,
27110,
13,
9107,
418,
62,
2339,
7,
30706,
62,
22915,
828,
8390,
62,
22915,
8,
198,
220,
220,
220,
2472,
62,
22462,
796,
1103,
62,
22462,
1343,
8390,
62,
22462,
198,
220,
220,
220,
1441,
2472,
62,
22462,
628,
198,
198,
31,
27110,
13,
8818,
198
] | 2.386441 | 885 |
from typing import Optional, Union
from slack_sdk.web import SlackResponse
from slack_bolt.authorization import AuthorizeResult
from slack_bolt.request.request import BoltRequest
from slack_bolt.response import BoltResponse
#
# NOTE: this source file intentionally avoids having a reference to
# AsyncBoltRequest, AsyncSlackResponse, and whatever Async-prefixed.
#
# The reason why we do so is to enable developers use sync version of Bolt
# without installing aiohttp library (or any others we may use for async things)
#
|
[
6738,
19720,
1330,
32233,
11,
4479,
198,
198,
6738,
30740,
62,
21282,
74,
13,
12384,
1330,
36256,
31077,
198,
198,
6738,
30740,
62,
25593,
13,
9800,
1634,
1330,
6434,
1096,
23004,
198,
6738,
30740,
62,
25593,
13,
25927,
13,
25927,
1330,
21764,
18453,
198,
6738,
30740,
62,
25593,
13,
26209,
1330,
21764,
31077,
198,
198,
2,
198,
2,
24550,
25,
428,
2723,
2393,
16464,
30940,
1719,
257,
4941,
284,
198,
2,
1081,
13361,
33,
5978,
18453,
11,
1081,
13361,
11122,
441,
31077,
11,
290,
4232,
1081,
13361,
12,
3866,
34021,
13,
198,
2,
198,
2,
383,
1738,
1521,
356,
466,
523,
318,
284,
7139,
6505,
779,
17510,
2196,
286,
21764,
198,
2,
1231,
15975,
257,
952,
4023,
5888,
357,
273,
597,
1854,
356,
743,
779,
329,
30351,
1243,
8,
198,
2,
628,
628,
628,
628,
628
] | 3.933824 | 136 |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
BROKER_BACKEND = "mongodb"
BROKER_HOST = "localhost"
BROKER_PORT = 7680
CELERY_RESULT_BACKEND = "mongodb"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host": "localhost",
"port": 7680,
"database": "books",
"taskmeta_collection": "celerytasks",
}
CELERYD_CONCURRENCY = 5
# CELERYD_LOG_LEVEL = "INFO"
# CELERYD_LOG_FILE = "logs/celery.log"
CELERY_IMPORTS = ("celerytasks", )
|
[
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
40477,
12,
23,
532,
9,
12,
198,
198,
11473,
11380,
1137,
62,
31098,
10619,
796,
366,
31059,
375,
65,
1,
198,
11473,
11380,
1137,
62,
39,
10892,
796,
366,
36750,
1,
198,
11473,
11380,
1137,
62,
15490,
796,
8684,
1795,
198,
198,
34,
3698,
19664,
62,
19535,
16724,
62,
31098,
10619,
796,
366,
31059,
375,
65,
1,
198,
34,
3698,
19664,
62,
44,
18494,
3727,
33,
62,
31098,
10619,
62,
28480,
51,
20754,
796,
1391,
198,
220,
220,
220,
366,
4774,
1298,
366,
36750,
1600,
198,
220,
220,
220,
366,
634,
1298,
8684,
1795,
11,
198,
220,
220,
220,
366,
48806,
1298,
366,
12106,
1600,
198,
220,
220,
220,
366,
35943,
28961,
62,
43681,
1298,
366,
7015,
20760,
6791,
1600,
198,
92,
198,
198,
34,
3698,
19664,
35,
62,
10943,
34,
31302,
45155,
796,
642,
198,
198,
2,
327,
3698,
19664,
35,
62,
25294,
62,
2538,
18697,
796,
366,
10778,
1,
198,
2,
327,
3698,
19664,
35,
62,
25294,
62,
25664,
796,
366,
6404,
82,
14,
7015,
88,
13,
6404,
1,
628,
198,
34,
3698,
19664,
62,
3955,
47,
33002,
796,
5855,
7015,
20760,
6791,
1600,
1267
] | 2.133663 | 202 |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: http.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name="http.proto",
package="fetch.aea.Http",
syntax="proto3",
serialized_options=None,
serialized_pb=b'\n\nhttp.proto\x12\x0e\x66\x65tch.aea.Http"\xf1\x03\n\x0bHttpMessage\x12\x12\n\nmessage_id\x18\x01 \x01(\x05\x12"\n\x1a\x64ialogue_starter_reference\x18\x02 \x01(\t\x12$\n\x1c\x64ialogue_responder_reference\x18\x03 \x01(\t\x12\x0e\n\x06target\x18\x04 \x01(\x05\x12\x43\n\x07request\x18\x05 \x01(\x0b\x32\x30.fetch.aea.Http.HttpMessage.Request_PerformativeH\x00\x12\x45\n\x08response\x18\x06 \x01(\x0b\x32\x31.fetch.aea.Http.HttpMessage.Response_PerformativeH\x00\x1a\x64\n\x14Request_Performative\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x0f\n\x07headers\x18\x04 \x01(\t\x12\r\n\x05\x62odyy\x18\x05 \x01(\x0c\x1ar\n\x15Response_Performative\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12\x13\n\x0bstatus_text\x18\x03 \x01(\t\x12\x0f\n\x07headers\x18\x04 \x01(\t\x12\r\n\x05\x62odyy\x18\x05 \x01(\x0c\x42\x0e\n\x0cperformativeb\x06proto3',
)
_HTTPMESSAGE_REQUEST_PERFORMATIVE = _descriptor.Descriptor(
name="Request_Performative",
full_name="fetch.aea.Http.HttpMessage.Request_Performative",
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name="method",
full_name="fetch.aea.Http.HttpMessage.Request_Performative.method",
index=0,
number=1,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="url",
full_name="fetch.aea.Http.HttpMessage.Request_Performative.url",
index=1,
number=2,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="version",
full_name="fetch.aea.Http.HttpMessage.Request_Performative.version",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="headers",
full_name="fetch.aea.Http.HttpMessage.Request_Performative.headers",
index=3,
number=4,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="bodyy",
full_name="fetch.aea.Http.HttpMessage.Request_Performative.bodyy",
index=4,
number=5,
type=12,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"",
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=296,
serialized_end=396,
)
_HTTPMESSAGE_RESPONSE_PERFORMATIVE = _descriptor.Descriptor(
name="Response_Performative",
full_name="fetch.aea.Http.HttpMessage.Response_Performative",
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name="version",
full_name="fetch.aea.Http.HttpMessage.Response_Performative.version",
index=0,
number=1,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="status_code",
full_name="fetch.aea.Http.HttpMessage.Response_Performative.status_code",
index=1,
number=2,
type=5,
cpp_type=1,
label=1,
has_default_value=False,
default_value=0,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="status_text",
full_name="fetch.aea.Http.HttpMessage.Response_Performative.status_text",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="headers",
full_name="fetch.aea.Http.HttpMessage.Response_Performative.headers",
index=3,
number=4,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="bodyy",
full_name="fetch.aea.Http.HttpMessage.Response_Performative.bodyy",
index=4,
number=5,
type=12,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"",
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=398,
serialized_end=512,
)
_HTTPMESSAGE = _descriptor.Descriptor(
name="HttpMessage",
full_name="fetch.aea.Http.HttpMessage",
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name="message_id",
full_name="fetch.aea.Http.HttpMessage.message_id",
index=0,
number=1,
type=5,
cpp_type=1,
label=1,
has_default_value=False,
default_value=0,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="dialogue_starter_reference",
full_name="fetch.aea.Http.HttpMessage.dialogue_starter_reference",
index=1,
number=2,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="dialogue_responder_reference",
full_name="fetch.aea.Http.HttpMessage.dialogue_responder_reference",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="target",
full_name="fetch.aea.Http.HttpMessage.target",
index=3,
number=4,
type=5,
cpp_type=1,
label=1,
has_default_value=False,
default_value=0,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="request",
full_name="fetch.aea.Http.HttpMessage.request",
index=4,
number=5,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="response",
full_name="fetch.aea.Http.HttpMessage.response",
index=5,
number=6,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[
_HTTPMESSAGE_REQUEST_PERFORMATIVE,
_HTTPMESSAGE_RESPONSE_PERFORMATIVE,
],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name="performative",
full_name="fetch.aea.Http.HttpMessage.performative",
index=0,
containing_type=None,
fields=[],
),
],
serialized_start=31,
serialized_end=528,
)
_HTTPMESSAGE_REQUEST_PERFORMATIVE.containing_type = _HTTPMESSAGE
_HTTPMESSAGE_RESPONSE_PERFORMATIVE.containing_type = _HTTPMESSAGE
_HTTPMESSAGE.fields_by_name["request"].message_type = _HTTPMESSAGE_REQUEST_PERFORMATIVE
_HTTPMESSAGE.fields_by_name[
"response"
].message_type = _HTTPMESSAGE_RESPONSE_PERFORMATIVE
_HTTPMESSAGE.oneofs_by_name["performative"].fields.append(
_HTTPMESSAGE.fields_by_name["request"]
)
_HTTPMESSAGE.fields_by_name["request"].containing_oneof = _HTTPMESSAGE.oneofs_by_name[
"performative"
]
_HTTPMESSAGE.oneofs_by_name["performative"].fields.append(
_HTTPMESSAGE.fields_by_name["response"]
)
_HTTPMESSAGE.fields_by_name["response"].containing_oneof = _HTTPMESSAGE.oneofs_by_name[
"performative"
]
DESCRIPTOR.message_types_by_name["HttpMessage"] = _HTTPMESSAGE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
HttpMessage = _reflection.GeneratedProtocolMessageType(
"HttpMessage",
(_message.Message,),
{
"Request_Performative": _reflection.GeneratedProtocolMessageType(
"Request_Performative",
(_message.Message,),
{
"DESCRIPTOR": _HTTPMESSAGE_REQUEST_PERFORMATIVE,
"__module__": "http_pb2"
# @@protoc_insertion_point(class_scope:fetch.aea.Http.HttpMessage.Request_Performative)
},
),
"Response_Performative": _reflection.GeneratedProtocolMessageType(
"Response_Performative",
(_message.Message,),
{
"DESCRIPTOR": _HTTPMESSAGE_RESPONSE_PERFORMATIVE,
"__module__": "http_pb2"
# @@protoc_insertion_point(class_scope:fetch.aea.Http.HttpMessage.Response_Performative)
},
),
"DESCRIPTOR": _HTTPMESSAGE,
"__module__": "http_pb2"
# @@protoc_insertion_point(class_scope:fetch.aea.Http.HttpMessage)
},
)
_sym_db.RegisterMessage(HttpMessage)
_sym_db.RegisterMessage(HttpMessage.Request_Performative)
_sym_db.RegisterMessage(HttpMessage.Response_Performative)
# @@protoc_insertion_point(module_scope)
|
[
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
2980,
515,
416,
262,
8435,
11876,
17050,
13,
220,
8410,
5626,
48483,
0,
198,
2,
2723,
25,
2638,
13,
1676,
1462,
198,
198,
6738,
23645,
13,
11235,
672,
3046,
1330,
43087,
355,
4808,
20147,
1968,
273,
198,
6738,
23645,
13,
11235,
672,
3046,
1330,
3275,
355,
4808,
20500,
198,
6738,
23645,
13,
11235,
672,
3046,
1330,
14580,
355,
4808,
5420,
1564,
198,
6738,
23645,
13,
11235,
672,
3046,
1330,
6194,
62,
48806,
355,
4808,
1837,
23650,
62,
48806,
198,
198,
2,
25248,
11235,
420,
62,
28463,
295,
62,
4122,
7,
320,
3742,
8,
198,
198,
62,
37047,
62,
9945,
796,
4808,
1837,
23650,
62,
48806,
13,
19463,
3419,
628,
198,
30910,
36584,
32961,
796,
4808,
20147,
1968,
273,
13,
8979,
24564,
1968,
273,
7,
198,
220,
220,
220,
1438,
2625,
4023,
13,
1676,
1462,
1600,
198,
220,
220,
220,
5301,
2625,
69,
7569,
13,
44705,
13,
43481,
1600,
198,
220,
220,
220,
15582,
2625,
1676,
1462,
18,
1600,
198,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
11389,
1143,
62,
40842,
28,
65,
6,
59,
77,
59,
77,
4023,
13,
1676,
1462,
59,
87,
1065,
59,
87,
15,
68,
59,
87,
2791,
59,
87,
2996,
38664,
13,
44705,
13,
43481,
1,
59,
26152,
16,
59,
87,
3070,
59,
77,
59,
87,
15,
65,
43481,
12837,
59,
87,
1065,
59,
87,
1065,
59,
77,
59,
77,
20500,
62,
312,
59,
87,
1507,
59,
87,
486,
3467,
87,
486,
38016,
87,
2713,
59,
87,
1065,
1,
59,
77,
59,
87,
16,
64,
59,
87,
2414,
498,
5119,
62,
12339,
62,
35790,
59,
87,
1507,
59,
87,
2999,
3467,
87,
486,
38016,
83,
59,
87,
1065,
3,
59,
77,
59,
87,
16,
66,
59,
87,
2414,
498,
5119,
62,
5546,
263,
62,
35790,
59,
87,
1507,
59,
87,
3070,
3467,
87,
486,
38016,
83,
59,
87,
1065,
59,
87,
15,
68,
59,
77,
59,
87,
3312,
16793,
59,
87,
1507,
59,
87,
3023,
3467,
87,
486,
38016,
87,
2713,
59,
87,
1065,
59,
87,
3559,
59,
77,
59,
87,
2998,
25927,
59,
87,
1507,
59,
87,
2713,
3467,
87,
486,
38016,
87,
15,
65,
59,
87,
2624,
59,
87,
1270,
13,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
18453,
62,
5990,
687,
876,
39,
59,
87,
405,
59,
87,
1065,
59,
87,
2231,
59,
77,
59,
87,
2919,
26209,
59,
87,
1507,
59,
87,
3312,
3467,
87,
486,
38016,
87,
15,
65,
59,
87,
2624,
59,
87,
3132,
13,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
31077,
62,
5990,
687,
876,
39,
59,
87,
405,
59,
87,
16,
64,
59,
87,
2414,
59,
77,
59,
87,
1415,
18453,
62,
5990,
687,
876,
59,
87,
1065,
59,
87,
15,
68,
59,
77,
59,
87,
3312,
24396,
59,
87,
1507,
59,
87,
486,
3467,
87,
486,
38016,
83,
59,
87,
1065,
59,
87,
15,
65,
59,
77,
59,
87,
3070,
6371,
59,
87,
1507,
59,
87,
2999,
3467,
87,
486,
38016,
83,
59,
87,
1065,
59,
87,
15,
69,
59,
77,
59,
87,
2998,
9641,
59,
87,
1507,
59,
87,
3070,
3467,
87,
486,
38016,
83,
59,
87,
1065,
59,
87,
15,
69,
59,
77,
59,
87,
2998,
50145,
59,
87,
1507,
59,
87,
3023,
3467,
87,
486,
38016,
83,
59,
87,
1065,
59,
81,
59,
77,
59,
87,
2713,
59,
87,
5237,
1118,
88,
59,
87,
1507,
59,
87,
2713,
3467,
87,
486,
38016,
87,
15,
66,
59,
87,
16,
283,
59,
77,
59,
87,
1314,
31077,
62,
5990,
687,
876,
59,
87,
1065,
59,
87,
15,
69,
59,
77,
59,
87,
2998,
9641,
59,
87,
1507,
59,
87,
486,
3467,
87,
486,
38016,
83,
59,
87,
1065,
59,
87,
1485,
59,
77,
59,
87,
15,
65,
13376,
62,
8189,
59,
87,
1507,
59,
87,
2999,
3467,
87,
486,
38016,
87,
2713,
59,
87,
1065,
59,
87,
1485,
59,
77,
59,
87,
15,
65,
13376,
62,
5239,
59,
87,
1507,
59,
87,
3070,
3467,
87,
486,
38016,
83,
59,
87,
1065,
59,
87,
15,
69,
59,
77,
59,
87,
2998,
50145,
59,
87,
1507,
59,
87,
3023,
3467,
87,
486,
38016,
83,
59,
87,
1065,
59,
81,
59,
77,
59,
87,
2713,
59,
87,
5237,
1118,
88,
59,
87,
1507,
59,
87,
2713,
3467,
87,
486,
38016,
87,
15,
66,
59,
87,
3682,
59,
87,
15,
68,
59,
77,
59,
87,
15,
66,
525,
687,
876,
65,
59,
87,
3312,
1676,
1462,
18,
3256,
198,
8,
628,
198,
62,
6535,
51,
5868,
1546,
4090,
8264,
62,
2200,
35780,
62,
18973,
21389,
37045,
796,
4808,
20147,
1968,
273,
13,
24564,
1968,
273,
7,
198,
220,
220,
220,
1438,
2625,
18453,
62,
5990,
687,
876,
1600,
198,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
18453,
62,
5990,
687,
876,
1600,
198,
220,
220,
220,
29472,
28,
14202,
11,
198,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
7032,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
24396,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
18453,
62,
5990,
687,
876,
13,
24396,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
65,
1,
1911,
12501,
1098,
7203,
40477,
12,
23,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
6371,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
18453,
62,
5990,
687,
876,
13,
6371,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
65,
1,
1911,
12501,
1098,
7203,
40477,
12,
23,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
9641,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
18453,
62,
5990,
687,
876,
13,
9641,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
18,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
65,
1,
1911,
12501,
1098,
7203,
40477,
12,
23,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
50145,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
18453,
62,
5990,
687,
876,
13,
50145,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
18,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
19,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
65,
1,
1911,
12501,
1098,
7203,
40477,
12,
23,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
2618,
88,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
18453,
62,
5990,
687,
876,
13,
2618,
88,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
19,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
1065,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
65,
1,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
16589,
198,
220,
220,
220,
18366,
41888,
4357,
198,
220,
220,
220,
28376,
62,
19199,
41888,
4357,
198,
220,
220,
220,
33829,
62,
19199,
41888,
4357,
198,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
318,
62,
2302,
437,
540,
28,
25101,
11,
198,
220,
220,
220,
15582,
2625,
1676,
1462,
18,
1600,
198,
220,
220,
220,
7552,
62,
81,
6231,
41888,
4357,
198,
220,
220,
220,
530,
1659,
82,
41888,
4357,
198,
220,
220,
220,
11389,
1143,
62,
9688,
28,
27137,
11,
198,
220,
220,
220,
11389,
1143,
62,
437,
28,
34107,
11,
198,
8,
198,
198,
62,
6535,
51,
5868,
1546,
4090,
8264,
62,
19535,
47,
1340,
5188,
62,
18973,
21389,
37045,
796,
4808,
20147,
1968,
273,
13,
24564,
1968,
273,
7,
198,
220,
220,
220,
1438,
2625,
31077,
62,
5990,
687,
876,
1600,
198,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
31077,
62,
5990,
687,
876,
1600,
198,
220,
220,
220,
29472,
28,
14202,
11,
198,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
7032,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
9641,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
31077,
62,
5990,
687,
876,
13,
9641,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
65,
1,
1911,
12501,
1098,
7203,
40477,
12,
23,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
13376,
62,
8189,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
31077,
62,
5990,
687,
876,
13,
13376,
62,
8189,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
13376,
62,
5239,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
31077,
62,
5990,
687,
876,
13,
13376,
62,
5239,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
18,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
65,
1,
1911,
12501,
1098,
7203,
40477,
12,
23,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
50145,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
31077,
62,
5990,
687,
876,
13,
50145,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
18,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
19,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
65,
1,
1911,
12501,
1098,
7203,
40477,
12,
23,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
2618,
88,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
31077,
62,
5990,
687,
876,
13,
2618,
88,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
19,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
1065,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
65,
1,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
16589,
198,
220,
220,
220,
18366,
41888,
4357,
198,
220,
220,
220,
28376,
62,
19199,
41888,
4357,
198,
220,
220,
220,
33829,
62,
19199,
41888,
4357,
198,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
318,
62,
2302,
437,
540,
28,
25101,
11,
198,
220,
220,
220,
15582,
2625,
1676,
1462,
18,
1600,
198,
220,
220,
220,
7552,
62,
81,
6231,
41888,
4357,
198,
220,
220,
220,
530,
1659,
82,
41888,
4357,
198,
220,
220,
220,
11389,
1143,
62,
9688,
28,
31952,
11,
198,
220,
220,
220,
11389,
1143,
62,
437,
28,
25836,
11,
198,
8,
198,
198,
62,
6535,
51,
5868,
1546,
4090,
8264,
796,
4808,
20147,
1968,
273,
13,
24564,
1968,
273,
7,
198,
220,
220,
220,
1438,
2625,
43481,
12837,
1600,
198,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
1600,
198,
220,
220,
220,
29472,
28,
14202,
11,
198,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
7032,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
20500,
62,
312,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
20500,
62,
312,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
38969,
5119,
62,
12339,
62,
35790,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
38969,
5119,
62,
12339,
62,
35790,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
65,
1,
1911,
12501,
1098,
7203,
40477,
12,
23,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
38969,
5119,
62,
5546,
263,
62,
35790,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
38969,
5119,
62,
5546,
263,
62,
35790,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
18,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
65,
1,
1911,
12501,
1098,
7203,
40477,
12,
23,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
16793,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
16793,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
18,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
19,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
25927,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
25927,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
19,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
1157,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
940,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
15878,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
26209,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
26209,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
28,
21,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
1157,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
381,
62,
4906,
28,
940,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
468,
62,
12286,
62,
8367,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33829,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
2302,
3004,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7552,
62,
29982,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
30910,
36584,
32961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
16589,
198,
220,
220,
220,
18366,
41888,
4357,
198,
220,
220,
220,
28376,
62,
19199,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
6535,
51,
5868,
1546,
4090,
8264,
62,
2200,
35780,
62,
18973,
21389,
37045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
6535,
51,
5868,
1546,
4090,
8264,
62,
19535,
47,
1340,
5188,
62,
18973,
21389,
37045,
11,
198,
220,
220,
220,
16589,
198,
220,
220,
220,
33829,
62,
19199,
41888,
4357,
198,
220,
220,
220,
11389,
1143,
62,
25811,
28,
14202,
11,
198,
220,
220,
220,
318,
62,
2302,
437,
540,
28,
25101,
11,
198,
220,
220,
220,
15582,
2625,
1676,
1462,
18,
1600,
198,
220,
220,
220,
7552,
62,
81,
6231,
41888,
4357,
198,
220,
220,
220,
530,
1659,
82,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
20147,
1968,
273,
13,
3198,
1659,
24564,
1968,
273,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
525,
687,
876,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
3672,
2625,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
525,
687,
876,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
28,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7268,
62,
4906,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
41888,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
16589,
198,
220,
220,
220,
11389,
1143,
62,
9688,
28,
3132,
11,
198,
220,
220,
220,
11389,
1143,
62,
437,
28,
49351,
11,
198,
8,
198,
198,
62,
6535,
51,
5868,
1546,
4090,
8264,
62,
2200,
35780,
62,
18973,
21389,
37045,
13,
38301,
62,
4906,
796,
4808,
6535,
51,
5868,
1546,
4090,
8264,
198,
62,
6535,
51,
5868,
1546,
4090,
8264,
62,
19535,
47,
1340,
5188,
62,
18973,
21389,
37045,
13,
38301,
62,
4906,
796,
4808,
6535,
51,
5868,
1546,
4090,
8264,
198,
62,
6535,
51,
5868,
1546,
4090,
8264,
13,
25747,
62,
1525,
62,
3672,
14692,
25927,
1,
4083,
20500,
62,
4906,
796,
4808,
6535,
51,
5868,
1546,
4090,
8264,
62,
2200,
35780,
62,
18973,
21389,
37045,
198,
62,
6535,
51,
5868,
1546,
4090,
8264,
13,
25747,
62,
1525,
62,
3672,
58,
198,
220,
220,
220,
366,
26209,
1,
198,
4083,
20500,
62,
4906,
796,
4808,
6535,
51,
5868,
1546,
4090,
8264,
62,
19535,
47,
1340,
5188,
62,
18973,
21389,
37045,
198,
62,
6535,
51,
5868,
1546,
4090,
8264,
13,
505,
1659,
82,
62,
1525,
62,
3672,
14692,
525,
687,
876,
1,
4083,
25747,
13,
33295,
7,
198,
220,
220,
220,
4808,
6535,
51,
5868,
1546,
4090,
8264,
13,
25747,
62,
1525,
62,
3672,
14692,
25927,
8973,
198,
8,
198,
62,
6535,
51,
5868,
1546,
4090,
8264,
13,
25747,
62,
1525,
62,
3672,
14692,
25927,
1,
4083,
38301,
62,
505,
1659,
796,
4808,
6535,
51,
5868,
1546,
4090,
8264,
13,
505,
1659,
82,
62,
1525,
62,
3672,
58,
198,
220,
220,
220,
366,
525,
687,
876,
1,
198,
60,
198,
62,
6535,
51,
5868,
1546,
4090,
8264,
13,
505,
1659,
82,
62,
1525,
62,
3672,
14692,
525,
687,
876,
1,
4083,
25747,
13,
33295,
7,
198,
220,
220,
220,
4808,
6535,
51,
5868,
1546,
4090,
8264,
13,
25747,
62,
1525,
62,
3672,
14692,
26209,
8973,
198,
8,
198,
62,
6535,
51,
5868,
1546,
4090,
8264,
13,
25747,
62,
1525,
62,
3672,
14692,
26209,
1,
4083,
38301,
62,
505,
1659,
796,
4808,
6535,
51,
5868,
1546,
4090,
8264,
13,
505,
1659,
82,
62,
1525,
62,
3672,
58,
198,
220,
220,
220,
366,
525,
687,
876,
1,
198,
60,
198,
30910,
36584,
32961,
13,
20500,
62,
19199,
62,
1525,
62,
3672,
14692,
43481,
12837,
8973,
796,
4808,
6535,
51,
5868,
1546,
4090,
8264,
198,
62,
37047,
62,
9945,
13,
38804,
8979,
24564,
1968,
273,
7,
30910,
36584,
32961,
8,
198,
198,
43481,
12837,
796,
4808,
5420,
1564,
13,
8645,
515,
19703,
4668,
12837,
6030,
7,
198,
220,
220,
220,
366,
43481,
12837,
1600,
198,
220,
220,
220,
44104,
20500,
13,
12837,
11,
828,
198,
220,
220,
220,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
18453,
62,
5990,
687,
876,
1298,
4808,
5420,
1564,
13,
8645,
515,
19703,
4668,
12837,
6030,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
18453,
62,
5990,
687,
876,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
44104,
20500,
13,
12837,
11,
828,
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,
366,
30910,
36584,
32961,
1298,
4808,
6535,
51,
5868,
1546,
4090,
8264,
62,
2200,
35780,
62,
18973,
21389,
37045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
834,
21412,
834,
1298,
366,
4023,
62,
40842,
17,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
25248,
11235,
420,
62,
28463,
295,
62,
4122,
7,
4871,
62,
29982,
25,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
18453,
62,
5990,
687,
876,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
366,
31077,
62,
5990,
687,
876,
1298,
4808,
5420,
1564,
13,
8645,
515,
19703,
4668,
12837,
6030,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
31077,
62,
5990,
687,
876,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
44104,
20500,
13,
12837,
11,
828,
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,
366,
30910,
36584,
32961,
1298,
4808,
6535,
51,
5868,
1546,
4090,
8264,
62,
19535,
47,
1340,
5188,
62,
18973,
21389,
37045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
834,
21412,
834,
1298,
366,
4023,
62,
40842,
17,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
25248,
11235,
420,
62,
28463,
295,
62,
4122,
7,
4871,
62,
29982,
25,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
13,
31077,
62,
5990,
687,
876,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
366,
30910,
36584,
32961,
1298,
4808,
6535,
51,
5868,
1546,
4090,
8264,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
834,
21412,
834,
1298,
366,
4023,
62,
40842,
17,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
25248,
11235,
420,
62,
28463,
295,
62,
4122,
7,
4871,
62,
29982,
25,
69,
7569,
13,
44705,
13,
43481,
13,
43481,
12837,
8,
198,
220,
220,
220,
8964,
198,
8,
198,
62,
37047,
62,
9945,
13,
38804,
12837,
7,
43481,
12837,
8,
198,
62,
37047,
62,
9945,
13,
38804,
12837,
7,
43481,
12837,
13,
18453,
62,
5990,
687,
876,
8,
198,
62,
37047,
62,
9945,
13,
38804,
12837,
7,
43481,
12837,
13,
31077,
62,
5990,
687,
876,
8,
628,
198,
2,
25248,
11235,
420,
62,
28463,
295,
62,
4122,
7,
21412,
62,
29982,
8,
198
] | 1.83825 | 7,796 |
from function_file import best_fit, line_graph, normal_curve
if __name__ == "__main__":
# Create dataframe
df2 = pd.read_csv("../input/english-premier-league-data-for-10-seasons/epldat10seasons/epl-allseasons-matchstats.csv")
# Create dataframe to summarise cards given by season and create "TotalReds" column
season_cards = df2.groupby("Season")["HomeRedCards", "AwayRedCards"].sum()
season_cards["TotalReds"] = season_cards["HomeRedCards"] + season_cards["AwayRedCards"]
season_cards = season_cards.rename(columns={"HomeRedCards":"HomeReds", "AwayRedCards":"AwayReds"})
# Create line graphs for HomeReds, AwayReds and TotalReds, including linear regression lines
line_graph(season_cards["HomeReds"], "HomeReds", "Home Team Red Cards", style="seaborn-poster")
line_graph(season_cards["AwayReds"], "AwayReds", "Away Team Red Cards", style="seaborn-poster")
line_graph(season_cards["TotalReds"], "TotalReds", "Total Team Red Cards", style="seaborn-poster")
# Create variables to use to calculate z-values
data = season_cards["TotalReds"]
s1415 = np.max(data) # Taking the highest red card tally value, which is for season 2014/15
s1718 = np.min(data) # Taking the lowest red card tally value, which is for season 2017/18
mean = np.mean(data) # Taking the mean value for the 10 years of red card data
std = np.std(data) # Taking the standard deviation of this data
# Plot normal curves and show z-values
normal_curve(True, z1718, "Season 2017/18 Data")
normal_curve(True, z1415, "Season 2014/15 Data")
# Calculate p-values
p_value1415 = norm.sf(abs(z1415))
p_value1718 = norm.sf(abs(z1718))
|
[
6738,
2163,
62,
7753,
1330,
1266,
62,
11147,
11,
1627,
62,
34960,
11,
3487,
62,
22019,
303,
220,
220,
220,
198,
220,
220,
220,
220,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
13610,
1366,
14535,
198,
220,
220,
220,
220,
198,
220,
220,
220,
47764,
17,
796,
279,
67,
13,
961,
62,
40664,
7203,
40720,
15414,
14,
39126,
12,
31605,
959,
12,
19316,
12,
7890,
12,
1640,
12,
940,
12,
325,
2812,
14,
538,
335,
265,
940,
325,
2812,
14,
68,
489,
12,
439,
325,
2812,
12,
15699,
34242,
13,
40664,
4943,
198,
220,
220,
220,
220,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
13610,
1366,
14535,
284,
15676,
786,
4116,
1813,
416,
1622,
290,
2251,
366,
14957,
49,
5379,
1,
5721,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1622,
62,
27761,
796,
47764,
17,
13,
8094,
1525,
7203,
18960,
4943,
14692,
16060,
7738,
34,
1371,
1600,
366,
32,
1014,
7738,
34,
1371,
1,
4083,
16345,
3419,
198,
220,
220,
220,
1622,
62,
27761,
14692,
14957,
49,
5379,
8973,
796,
1622,
62,
27761,
14692,
16060,
7738,
34,
1371,
8973,
1343,
1622,
62,
27761,
14692,
32,
1014,
7738,
34,
1371,
8973,
198,
220,
220,
220,
1622,
62,
27761,
796,
1622,
62,
27761,
13,
918,
480,
7,
28665,
82,
28,
4895,
16060,
7738,
34,
1371,
2404,
16060,
49,
5379,
1600,
366,
32,
1014,
7738,
34,
1371,
2404,
32,
1014,
49,
5379,
20662,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
13610,
1627,
28770,
329,
5995,
49,
5379,
11,
21986,
49,
5379,
290,
7472,
49,
5379,
11,
1390,
14174,
20683,
3951,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1627,
62,
34960,
7,
6230,
62,
27761,
14692,
16060,
49,
5379,
33116,
366,
16060,
49,
5379,
1600,
366,
16060,
4816,
2297,
15824,
1600,
3918,
2625,
325,
397,
1211,
12,
79,
6197,
4943,
198,
220,
220,
220,
1627,
62,
34960,
7,
6230,
62,
27761,
14692,
32,
1014,
49,
5379,
33116,
366,
32,
1014,
49,
5379,
1600,
366,
32,
1014,
4816,
2297,
15824,
1600,
3918,
2625,
325,
397,
1211,
12,
79,
6197,
4943,
198,
220,
220,
220,
1627,
62,
34960,
7,
6230,
62,
27761,
14692,
14957,
49,
5379,
33116,
366,
14957,
49,
5379,
1600,
366,
14957,
4816,
2297,
15824,
1600,
3918,
2625,
325,
397,
1211,
12,
79,
6197,
4943,
198,
220,
220,
220,
220,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
13610,
9633,
284,
779,
284,
15284,
1976,
12,
27160,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1366,
796,
1622,
62,
27761,
14692,
14957,
49,
5379,
8973,
198,
220,
220,
220,
264,
1415,
1314,
796,
45941,
13,
9806,
7,
7890,
8,
1303,
20879,
262,
4511,
2266,
2657,
26767,
1988,
11,
543,
318,
329,
1622,
1946,
14,
1314,
198,
220,
220,
220,
264,
1558,
1507,
796,
45941,
13,
1084,
7,
7890,
8,
1303,
20879,
262,
9016,
2266,
2657,
26767,
1988,
11,
543,
318,
329,
1622,
2177,
14,
1507,
198,
220,
220,
220,
1612,
796,
45941,
13,
32604,
7,
7890,
8,
1303,
20879,
262,
1612,
1988,
329,
262,
838,
812,
286,
2266,
2657,
1366,
198,
220,
220,
220,
14367,
796,
45941,
13,
19282,
7,
7890,
8,
1303,
20879,
262,
3210,
28833,
286,
428,
1366,
198,
220,
220,
220,
220,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
28114,
3487,
23759,
290,
905,
1976,
12,
27160,
198,
220,
220,
220,
220,
198,
220,
220,
220,
3487,
62,
22019,
303,
7,
17821,
11,
1976,
1558,
1507,
11,
366,
18960,
2177,
14,
1507,
6060,
4943,
198,
220,
220,
220,
3487,
62,
22019,
303,
7,
17821,
11,
1976,
1415,
1314,
11,
366,
18960,
1946,
14,
1314,
6060,
4943,
198,
220,
220,
220,
220,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
27131,
378,
279,
12,
27160,
198,
220,
220,
220,
279,
62,
8367,
1415,
1314,
796,
2593,
13,
28202,
7,
8937,
7,
89,
1415,
1314,
4008,
198,
220,
220,
220,
279,
62,
8367,
1558,
1507,
796,
2593,
13,
28202,
7,
8937,
7,
89,
1558,
1507,
4008,
628,
220,
220,
220,
220,
198
] | 2.577875 | 687 |
"""
Helpers for setup.py, e.g. requirements.txt parsing, version bumping, custom setup.py commands
Inside of :py:mod:`privex.helpers.setuppy.common` there's a variety of functions related to generating
requirements.txt files, parsing requirements.txt files which recursively import other requirements.txt files,
and handing automatic generation of ``extras_require`` from a folder containing requirements txt files.
Inside of :py:mod:`privex.helpers.setuppy.bump` - most notably is :py:func:`.bump_version` - a function which
detects a package's version, increments the appropriate part of the version number, and then updates the python
file containing the version number (e.g. an ``__init__.py``)
Inside of :py:mod:`privex.helpers.setuppy.commands` there are command classes which can be loaded into setup.py to
assist with building python packages, generating requirements.txt files from extras, as well as general management
such as a :class:`.BumpCommand` which allows you to bump your package version with a simple ``./setup.py bump --minor``
More detailed usage documentation is available within each individual module's documentation.
"""
try:
from privex.helpers.setuppy.common import *
except ImportError:
log.debug('%s failed to import "setuppy.common", not loading ...', __name__)
try:
from privex.helpers.setuppy.bump import *
except ImportError:
log.debug('%s failed to import "setuppy.bump", not loading ...', __name__)
try:
from privex.helpers.setuppy.commands import *
except ImportError:
log.debug('%s failed to import "setuppy.commands", not loading ...', __name__)
|
[
37811,
198,
12621,
19276,
329,
9058,
13,
9078,
11,
304,
13,
70,
13,
5359,
13,
14116,
32096,
11,
2196,
13852,
278,
11,
2183,
9058,
13,
9078,
9729,
628,
198,
24441,
286,
1058,
9078,
25,
4666,
25,
63,
3448,
303,
87,
13,
16794,
364,
13,
2617,
7211,
88,
13,
11321,
63,
612,
338,
257,
4996,
286,
5499,
3519,
284,
15453,
198,
8897,
18883,
13,
14116,
3696,
11,
32096,
5359,
13,
14116,
3696,
543,
664,
1834,
2280,
1330,
584,
5359,
13,
14116,
3696,
11,
198,
392,
22786,
11353,
5270,
286,
7559,
2302,
8847,
62,
46115,
15506,
422,
257,
9483,
7268,
5359,
256,
742,
3696,
13,
198,
198,
24441,
286,
1058,
9078,
25,
4666,
25,
63,
3448,
303,
87,
13,
16794,
364,
13,
2617,
7211,
88,
13,
65,
931,
63,
532,
749,
14660,
318,
1058,
9078,
25,
20786,
25,
44646,
65,
931,
62,
9641,
63,
532,
257,
2163,
543,
198,
15255,
478,
82,
257,
5301,
338,
2196,
11,
41867,
262,
5035,
636,
286,
262,
2196,
1271,
11,
290,
788,
5992,
262,
21015,
198,
7753,
7268,
262,
2196,
1271,
357,
68,
13,
70,
13,
281,
7559,
834,
15003,
834,
13,
9078,
15506,
8,
628,
198,
24441,
286,
1058,
9078,
25,
4666,
25,
63,
3448,
303,
87,
13,
16794,
364,
13,
2617,
7211,
88,
13,
9503,
1746,
63,
612,
389,
3141,
6097,
543,
460,
307,
9639,
656,
9058,
13,
9078,
284,
198,
562,
396,
351,
2615,
21015,
10392,
11,
15453,
5359,
13,
14116,
3696,
422,
33849,
11,
355,
880,
355,
2276,
4542,
198,
10508,
355,
257,
1058,
4871,
25,
44646,
33,
931,
21575,
63,
543,
3578,
345,
284,
13852,
534,
5301,
2196,
351,
257,
2829,
7559,
19571,
40406,
13,
9078,
13852,
1377,
1084,
273,
15506,
198,
198,
5167,
6496,
8748,
10314,
318,
1695,
1626,
1123,
1981,
8265,
338,
10314,
13,
198,
198,
37811,
198,
198,
28311,
25,
198,
220,
220,
220,
422,
1293,
303,
87,
13,
16794,
364,
13,
2617,
7211,
88,
13,
11321,
1330,
1635,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
2604,
13,
24442,
10786,
4,
82,
4054,
284,
1330,
366,
2617,
7211,
88,
13,
11321,
1600,
407,
11046,
2644,
3256,
11593,
3672,
834,
8,
198,
28311,
25,
198,
220,
220,
220,
422,
1293,
303,
87,
13,
16794,
364,
13,
2617,
7211,
88,
13,
65,
931,
1330,
1635,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
2604,
13,
24442,
10786,
4,
82,
4054,
284,
1330,
366,
2617,
7211,
88,
13,
65,
931,
1600,
407,
11046,
2644,
3256,
11593,
3672,
834,
8,
198,
28311,
25,
198,
220,
220,
220,
422,
1293,
303,
87,
13,
16794,
364,
13,
2617,
7211,
88,
13,
9503,
1746,
1330,
1635,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
2604,
13,
24442,
10786,
4,
82,
4054,
284,
1330,
366,
2617,
7211,
88,
13,
9503,
1746,
1600,
407,
11046,
2644,
3256,
11593,
3672,
834,
8,
198
] | 3.447761 | 469 |
__all__ = ('setup', 'Extension')
from celerid import patch_distutils # Cause distutils to be hot-patched.
from distutils.core import setup, Extension as std_Extension
from distutils.errors import DistutilsOptionError
|
[
834,
439,
834,
796,
19203,
40406,
3256,
705,
11627,
3004,
11537,
198,
198,
6738,
18725,
263,
312,
1330,
8529,
62,
17080,
26791,
1303,
24228,
1233,
26791,
284,
307,
3024,
12,
8071,
1740,
13,
198,
198,
6738,
1233,
26791,
13,
7295,
1330,
9058,
11,
27995,
355,
14367,
62,
11627,
3004,
198,
6738,
1233,
26791,
13,
48277,
1330,
4307,
26791,
19722,
12331,
628
] | 3.606557 | 61 |
#
# Copyright (C) 2019 Databricks, 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 inspect
from distutils.version import LooseVersion
import pandas as pd
from databricks import koalas
from databricks.koalas.config import set_option, reset_option
from databricks.koalas.exceptions import PandasNotImplementedError
from databricks.koalas.missing.groupby import _MissingPandasLikeDataFrameGroupBy, \
_MissingPandasLikeSeriesGroupBy
from databricks.koalas.testing.utils import ReusedSQLTestCase, TestUtils
|
[
2,
198,
2,
15069,
357,
34,
8,
13130,
16092,
397,
23706,
11,
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,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
11247,
739,
262,
13789,
13,
198,
2,
198,
198,
11748,
10104,
198,
6738,
1233,
26791,
13,
9641,
1330,
6706,
577,
14815,
198,
11748,
19798,
292,
355,
279,
67,
198,
198,
6738,
4818,
397,
23706,
1330,
41727,
282,
292,
198,
6738,
4818,
397,
23706,
13,
7204,
282,
292,
13,
11250,
1330,
900,
62,
18076,
11,
13259,
62,
18076,
198,
6738,
4818,
397,
23706,
13,
7204,
282,
292,
13,
1069,
11755,
1330,
16492,
292,
3673,
3546,
1154,
12061,
12331,
198,
6738,
4818,
397,
23706,
13,
7204,
282,
292,
13,
45688,
13,
8094,
1525,
1330,
4808,
43730,
47206,
292,
7594,
6601,
19778,
13247,
3886,
11,
3467,
198,
220,
220,
220,
4808,
43730,
47206,
292,
7594,
27996,
13247,
3886,
198,
6738,
4818,
397,
23706,
13,
7204,
282,
292,
13,
33407,
13,
26791,
1330,
797,
1484,
17861,
14402,
20448,
11,
6208,
18274,
4487,
628
] | 3.52069 | 290 |
import multiprocessing
import os
import random
import shutil
import threading
import time
import traceback
import json
import re
import tempfile
from subprocess import run, PIPE
from urllib.parse import urlparse
from botocore.exceptions import ClientError
import boto3
import requests
from idseq_dag.engine.pipeline_step import PipelineStep
from idseq_dag.exceptions import InsufficientReadsError
import idseq_dag.util.command as command
import idseq_dag.util.command_patterns as command_patterns
import idseq_dag.util.count as count
import idseq_dag.util.log as log
import idseq_dag.util.m8 as m8
from idseq_dag.util.s3 import fetch_reference
from idseq_dag.util.trace_lock import TraceLock
from idseq_dag.util.lineage import DEFAULT_BLACKLIST_S3, DEFAULT_WHITELIST_S3
from idseq_dag.util.m8 import NT_MIN_ALIGNMENT_LEN
MAX_CHUNKS_IN_FLIGHT = 16
CHUNK_MAX_ATTEMPTS = 3
GSNAP_CHUNK_SIZE = 240000
RAPSEARCH_CHUNK_SIZE = 320000
def download_from_s3(session, src, dest):
"""
We are transitioning away from s3 downloads of files within steps.
This is only to be used for getting the state of batch jobs from the
s3 cache. These files are small and dynamically generated based on jobs
so this fetching is very different from downloading input files.
"""
try:
url = urlparse(src)
bucket, key = url.netloc, url.path
session.client("s3").download_file(bucket, key[1:], dest)
return True
except ClientError as e:
if e.response["Error"]["Code"] == "404":
return False
raise e
class PipelineStepRunAlignment(PipelineStep):
""" Runs gsnap/rapsearch2 remotely.
For GSNAP:
```
gsnapl
-A m8
--batch=0
--use-shared-memory=0
--gmap-mode=none
--npaths=100
--ordered
-t 48
--max-mismatches=40
-D {remote_index_dir}
-d nt_k16
{remote_input_files} > {multihit_remote_outfile}
```
GSNAP documentation is available [here](http://research-pub.gene.com/gmap/).
-t (threads): For example, r5d.24xlarge machines have 96 vCPUs. These are the machines used by the alignment batch compute environment.
Each batch job is allotted 48 vcpus. Use 48 threads and each instance will be able to concurrently process 2 chunks
For Rapsearch2:
```
rapsearch
-d {remote_index_dir}/nr_rapsearch
-e -6
-l 10
-a T
-b 0
-v 50
-z 24
-q {remote_input_files}
-o {multihit_remote_outfile}
```
Rapsearch2 documentation is available [here](http://omics.informatics.indiana.edu/mg/RAPSearch2/).
"""
@staticmethod
def run(self):
''' Run alignmment remotely '''
alignment_algorithm_inputs = PipelineStepRunAlignment._alignment_algorithm_inputs(self.input_files_local[0])
duplicate_cluster_sizes_path, = self.input_files_local[1]
output_m8, deduped_output_m8, output_hitsummary, output_counts_with_dcr_json = self.output_files_local()
assert output_counts_with_dcr_json.endswith("_with_dcr.json"), self.output_files_local()
if self.is_local_run:
self.run_locally(alignment_algorithm_inputs[self.alignment_algorithm], output_m8)
else:
self.run_remotely(alignment_algorithm_inputs[self.alignment_algorithm], output_m8)
# get database
lineage_db = fetch_reference(self.additional_files["lineage_db"], self.ref_dir_local)
accession2taxid_db = fetch_reference(self.additional_files["accession2taxid_db"], self.ref_dir_local, allow_s3mi=True)
deuterostome_db = None
if self.additional_files.get("deuterostome_db"):
deuterostome_db = fetch_reference(self.additional_files["deuterostome_db"],
self.ref_dir_local, allow_s3mi=True)
blacklist_s3_file = self.additional_files.get('taxon_blacklist', DEFAULT_BLACKLIST_S3)
taxon_blacklist = fetch_reference(blacklist_s3_file, self.ref_dir_local)
taxon_whitelist = None
if self.additional_attributes.get("use_taxon_whitelist"):
taxon_whitelist = fetch_reference(self.additional_files.get("taxon_whitelist", DEFAULT_WHITELIST_S3),
self.ref_dir_local)
min_alignment_length = NT_MIN_ALIGNMENT_LEN if self.alignment_algorithm == 'gsnap' else 0
m8.call_hits_m8(output_m8, lineage_db, accession2taxid_db,
deduped_output_m8, output_hitsummary, min_alignment_length,
deuterostome_db, taxon_whitelist, taxon_blacklist)
db_type = 'NT' if self.alignment_algorithm == 'gsnap' else 'NR'
m8.generate_taxon_count_json_from_m8(
deduped_output_m8, output_hitsummary, db_type,
lineage_db, deuterostome_db, taxon_whitelist, taxon_blacklist, duplicate_cluster_sizes_path,
output_counts_with_dcr_json)
def chunk_input(self, input_files, chunksize):
"""Chunk input files into pieces for performance and parallelism."""
part_lists = [] # Lists of partial files
known_nlines = None
part_suffix = ""
chunk_nlines = chunksize * 2
for input_file in input_files:
# Count number of lines in the file
cmd_output = command.execute_with_output(
command_patterns.SingleCommand(
cmd="wc",
args=[
"-l",
input_file
]
)
)
nlines = int(cmd_output.strip().split()[0])
# Number of lines should be the same in paired files
if known_nlines is not None:
msg = "Mismatched line counts in supposedly paired files: {}".format(
input_files)
assert nlines == known_nlines, msg
known_nlines = nlines
# Set number of pieces and names
numparts = (nlines + chunk_nlines - 1) // chunk_nlines
ndigits = len(str(numparts - 1))
part_suffix = "-chunksize-%d-numparts-%d-part-" % (chunksize, numparts)
out_prefix_base = os.path.basename(input_file) + part_suffix
out_prefix = os.path.join(self.chunks_result_dir_local, out_prefix_base)
# Split large file into smaller named pieces
command.execute(
command_patterns.SingleCommand(
cmd="split",
args=[
"-a",
ndigits,
"--numeric-suffixes",
"-l",
chunk_nlines,
input_file,
out_prefix
]
)
)
command.execute_with_retries(
command_patterns.SingleCommand(
cmd="aws",
args=[
"s3",
"sync",
"--only-show-errors",
os.path.join(self.chunks_result_dir_local, ""),
os.path.join(self.chunks_result_dir_s3, ""),
"--exclude",
"*",
"--include",
out_prefix_base + "*"
]
)
)
# Get the partial file names
partial_files = []
paths = command.glob(
glob_pattern=out_prefix + "*",
strip_folder_names=True
)
partial_files.extend(paths)
# Check that the partial files match our expected chunking pattern
pattern = "{:0%dd}" % ndigits
expected_partial_files = [(out_prefix_base + pattern.format(i))
for i in range(numparts)]
msg = "something went wrong with chunking: {} != {}".format(
partial_files, expected_partial_files)
assert expected_partial_files == partial_files, msg
part_lists.append(partial_files)
# Ex: [["input_R1.fasta-part-1", "input_R2.fasta-part-1"],
# ["input_R1.fasta-part-2", "input_R2.fasta-part-2"],
# ["input_R1.fasta-part-3", "input_R2.fasta-part-3"],...]
input_chunks = [list(part) for part in zip(*part_lists)]
return part_suffix, input_chunks
@staticmethod
@staticmethod
@staticmethod
def run_chunk(self, part_suffix, input_files, lazy_run):
"""
Dispatch a chunk to worker machines for distributed GSNAP or RAPSearch
group machines and handle their execution.
"""
chunk_id = int(input_files[0].split(part_suffix)[-1])
multihit_basename = f"multihit-{self.alignment_algorithm}-out{part_suffix}{chunk_id}.m8"
multihit_local_outfile = os.path.join(self.chunks_result_dir_local, multihit_basename)
multihit_s3_outfile = os.path.join(self.chunks_result_dir_s3, multihit_basename)
session = boto3.session.Session()
if lazy_run and download_from_s3(session, multihit_s3_outfile, multihit_local_outfile):
log.write(f"finished alignment for chunk {chunk_id} with {self.alignment_algorithm} by lazily fetching last result")
return multihit_local_outfile
deployment_environment = os.environ["DEPLOYMENT_ENVIRONMENT"]
priority_name = os.environ.get("PRIORITY_NAME", "normal")
index_dir_suffix = self.additional_attributes["index_dir_suffix"]
pattern = r's3://.+/samples/([0-9]+)/([0-9]+)/'
m = re.match(pattern, self.chunks_result_dir_s3)
if m:
project_id, sample_id = m.group(1), m.group(2)
else:
project_id, sample_id = '0', '0'
provisioning_model = 'SPOT'
# TODO: parameterize these https://jira.czi.team/browse/IDSEQ-2673
job_name = f"idseq-{deployment_environment}-{self.alignment_algorithm}-project-{project_id}-sample-{sample_id}-part-{chunk_id}"
job_queue = f"idseq-{deployment_environment}-{self.alignment_algorithm}-{provisioning_model}-{index_dir_suffix}-{priority_name}"
job_definition = f"idseq-{deployment_environment}-{self.alignment_algorithm}"
environment = [{
'name': f"INPUT_PATH_{i}",
'value': os.path.join(self.chunks_result_dir_s3, input_file),
} for i, input_file in enumerate(input_files)] + [{
'name': "OUTPUT_PATH",
'value': multihit_s3_outfile,
}]
input_paths = [f"local_input_{i}" for i, _ in enumerate(input_files)]
command = self._get_command("/references/reference", input_paths, "local_output")
try:
job_id = self._run_batch_job(
session=session,
job_name=job_name,
job_queue=job_queue,
job_definition=job_definition,
command=command,
environment=environment,
chunk_id=chunk_id,
retries=2
)
except BatchJobFailed:
provisioning_model = 'EC2'
# TODO: parameterize this https://jira.czi.team/browse/IDSEQ-2673
job_queue = f"idseq-{deployment_environment}-{self.alignment_algorithm}-{provisioning_model}-{index_dir_suffix}-{priority_name}"
job_id = self._run_batch_job(
session=session,
job_name=job_name,
job_queue=job_queue,
job_definition=job_definition,
command=command,
environment=environment,
chunk_id=chunk_id,
retries=1
)
for _ in range(12):
if download_from_s3(session, multihit_s3_outfile, multihit_local_outfile):
break
time.sleep(10)
else:
log.log_event("chunk_result_missing_in_s3", values={
'job_id': job_id,
'chunk_id': chunk_id,
'job_queue': job_queue,
'job_definition': job_definition,
'alignment_algorithm': self.alignment_algorithm,
})
raise Exception("Chunk result is missing from s3")
log.log_event("alignment_batch_chunk_result_downloaded", values={
'job_id': job_id,
'chunk_id': chunk_id,
'job_queue': job_queue,
'job_definition': job_definition,
'alignment_algorithm': self.alignment_algorithm,
})
self._validate_chunk_output(multihit_local_outfile)
return multihit_local_outfile
|
[
11748,
18540,
305,
919,
278,
198,
11748,
28686,
198,
11748,
4738,
198,
11748,
4423,
346,
198,
11748,
4704,
278,
198,
11748,
640,
198,
11748,
12854,
1891,
198,
11748,
33918,
198,
11748,
302,
198,
11748,
20218,
7753,
198,
6738,
850,
14681,
1330,
1057,
11,
350,
4061,
36,
198,
6738,
2956,
297,
571,
13,
29572,
1330,
19016,
29572,
198,
6738,
10214,
420,
382,
13,
1069,
11755,
1330,
20985,
12331,
198,
198,
11748,
275,
2069,
18,
198,
11748,
7007,
198,
198,
6738,
4686,
41068,
62,
67,
363,
13,
18392,
13,
79,
541,
4470,
62,
9662,
1330,
37709,
8600,
198,
6738,
4686,
41068,
62,
67,
363,
13,
1069,
11755,
1330,
7088,
15267,
5569,
82,
12331,
198,
11748,
4686,
41068,
62,
67,
363,
13,
22602,
13,
21812,
355,
3141,
198,
11748,
4686,
41068,
62,
67,
363,
13,
22602,
13,
21812,
62,
33279,
82,
355,
3141,
62,
33279,
82,
198,
11748,
4686,
41068,
62,
67,
363,
13,
22602,
13,
9127,
355,
954,
198,
11748,
4686,
41068,
62,
67,
363,
13,
22602,
13,
6404,
355,
2604,
198,
11748,
4686,
41068,
62,
67,
363,
13,
22602,
13,
76,
23,
355,
285,
23,
198,
198,
6738,
4686,
41068,
62,
67,
363,
13,
22602,
13,
82,
18,
1330,
21207,
62,
35790,
198,
6738,
4686,
41068,
62,
67,
363,
13,
22602,
13,
40546,
62,
5354,
1330,
34912,
25392,
198,
198,
6738,
4686,
41068,
62,
67,
363,
13,
22602,
13,
1370,
496,
1330,
5550,
38865,
62,
9148,
8120,
45849,
62,
50,
18,
11,
5550,
38865,
62,
12418,
2043,
3698,
8808,
62,
50,
18,
198,
6738,
4686,
41068,
62,
67,
363,
13,
22602,
13,
76,
23,
1330,
24563,
62,
23678,
62,
1847,
16284,
10979,
62,
43,
1677,
198,
198,
22921,
62,
3398,
4944,
27015,
62,
1268,
62,
3697,
9947,
796,
1467,
198,
3398,
4944,
42,
62,
22921,
62,
17139,
39494,
4694,
796,
513,
198,
14313,
45,
2969,
62,
3398,
4944,
42,
62,
33489,
796,
1987,
2388,
198,
49,
2969,
5188,
31315,
62,
3398,
4944,
42,
62,
33489,
796,
513,
2167,
405,
628,
198,
4299,
4321,
62,
6738,
62,
82,
18,
7,
29891,
11,
12351,
11,
2244,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
775,
389,
37005,
1497,
422,
264,
18,
21333,
286,
3696,
1626,
4831,
13,
198,
220,
220,
220,
770,
318,
691,
284,
307,
973,
329,
1972,
262,
1181,
286,
15458,
3946,
422,
262,
198,
220,
220,
220,
264,
18,
12940,
13,
2312,
3696,
389,
1402,
290,
32366,
7560,
1912,
319,
3946,
198,
220,
220,
220,
523,
428,
21207,
278,
318,
845,
1180,
422,
22023,
5128,
3696,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
796,
19016,
29572,
7,
10677,
8,
198,
220,
220,
220,
220,
220,
220,
220,
19236,
11,
1994,
796,
19016,
13,
3262,
17946,
11,
19016,
13,
6978,
198,
220,
220,
220,
220,
220,
220,
220,
6246,
13,
16366,
7203,
82,
18,
11074,
15002,
62,
7753,
7,
27041,
316,
11,
1994,
58,
16,
25,
4357,
2244,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
198,
220,
220,
220,
2845,
20985,
12331,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
304,
13,
26209,
14692,
12331,
1,
7131,
1,
10669,
8973,
6624,
366,
26429,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
304,
198,
198,
4871,
37709,
8600,
10987,
2348,
16747,
7,
47,
541,
4470,
8600,
2599,
198,
220,
220,
220,
37227,
44743,
308,
45380,
14,
2416,
12947,
17,
19863,
13,
628,
220,
220,
220,
1114,
402,
15571,
2969,
25,
198,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
308,
82,
2616,
489,
198,
220,
220,
220,
532,
32,
285,
23,
198,
220,
220,
220,
1377,
43501,
28,
15,
198,
220,
220,
220,
1377,
1904,
12,
28710,
12,
31673,
28,
15,
198,
220,
220,
220,
1377,
70,
8899,
12,
14171,
28,
23108,
198,
220,
220,
220,
1377,
77,
6978,
82,
28,
3064,
198,
220,
220,
220,
1377,
24071,
198,
220,
220,
220,
532,
83,
4764,
198,
220,
220,
220,
1377,
9806,
12,
76,
1042,
20981,
28,
1821,
198,
220,
220,
220,
532,
35,
1391,
47960,
62,
9630,
62,
15908,
92,
198,
220,
220,
220,
532,
67,
299,
83,
62,
74,
1433,
198,
220,
220,
220,
1391,
47960,
62,
15414,
62,
16624,
92,
1875,
1391,
16680,
4449,
270,
62,
47960,
62,
448,
7753,
92,
198,
220,
220,
220,
7559,
63,
628,
220,
220,
220,
402,
15571,
2969,
10314,
318,
1695,
685,
1456,
16151,
4023,
1378,
34033,
12,
12984,
13,
70,
1734,
13,
785,
14,
70,
8899,
14,
737,
198,
220,
220,
220,
532,
83,
357,
16663,
82,
2599,
1114,
1672,
11,
374,
20,
67,
13,
1731,
87,
11664,
8217,
423,
9907,
410,
36037,
82,
13,
2312,
389,
262,
8217,
973,
416,
262,
19114,
15458,
24061,
2858,
13,
198,
220,
220,
220,
5501,
15458,
1693,
318,
44554,
4764,
410,
13155,
385,
13,
5765,
4764,
14390,
290,
1123,
4554,
481,
307,
1498,
284,
47480,
1429,
362,
22716,
628,
220,
220,
220,
1114,
371,
7512,
998,
17,
25,
198,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
4095,
12947,
198,
220,
220,
220,
532,
67,
1391,
47960,
62,
9630,
62,
15908,
92,
14,
48624,
62,
2416,
12947,
198,
220,
220,
220,
532,
68,
532,
21,
198,
220,
220,
220,
532,
75,
838,
198,
220,
220,
220,
532,
64,
309,
198,
220,
220,
220,
532,
65,
657,
198,
220,
220,
220,
532,
85,
2026,
198,
220,
220,
220,
532,
89,
1987,
198,
220,
220,
220,
532,
80,
1391,
47960,
62,
15414,
62,
16624,
92,
198,
220,
220,
220,
532,
78,
1391,
16680,
4449,
270,
62,
47960,
62,
448,
7753,
92,
198,
220,
220,
220,
7559,
63,
628,
220,
220,
220,
371,
7512,
998,
17,
10314,
318,
1695,
685,
1456,
16151,
4023,
1378,
31994,
13,
259,
18982,
873,
13,
521,
7484,
13,
15532,
14,
11296,
14,
49,
2969,
18243,
17,
14,
737,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
12708,
24396,
628,
220,
220,
220,
825,
1057,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
5660,
10548,
76,
434,
19863,
705,
7061,
628,
220,
220,
220,
220,
220,
220,
220,
19114,
62,
282,
42289,
62,
15414,
82,
796,
37709,
8600,
10987,
2348,
16747,
13557,
282,
16747,
62,
282,
42289,
62,
15414,
82,
7,
944,
13,
15414,
62,
16624,
62,
12001,
58,
15,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
23418,
62,
565,
5819,
62,
82,
4340,
62,
6978,
11,
796,
2116,
13,
15414,
62,
16624,
62,
12001,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
76,
23,
11,
4648,
929,
276,
62,
22915,
62,
76,
23,
11,
5072,
62,
71,
896,
388,
6874,
11,
5072,
62,
9127,
82,
62,
4480,
62,
67,
6098,
62,
17752,
796,
2116,
13,
22915,
62,
16624,
62,
12001,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
5072,
62,
9127,
82,
62,
4480,
62,
67,
6098,
62,
17752,
13,
437,
2032,
342,
7203,
62,
4480,
62,
67,
6098,
13,
17752,
12340,
2116,
13,
22915,
62,
16624,
62,
12001,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
271,
62,
12001,
62,
5143,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5143,
62,
17946,
453,
7,
282,
16747,
62,
282,
42289,
62,
15414,
82,
58,
944,
13,
282,
16747,
62,
282,
42289,
4357,
5072,
62,
76,
23,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5143,
62,
47960,
306,
7,
282,
16747,
62,
282,
42289,
62,
15414,
82,
58,
944,
13,
282,
16747,
62,
282,
42289,
4357,
5072,
62,
76,
23,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
651,
6831,
198,
220,
220,
220,
220,
220,
220,
220,
31144,
62,
9945,
796,
21207,
62,
35790,
7,
944,
13,
2860,
1859,
62,
16624,
14692,
1370,
496,
62,
9945,
33116,
2116,
13,
5420,
62,
15908,
62,
12001,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1895,
295,
17,
19290,
312,
62,
9945,
796,
21207,
62,
35790,
7,
944,
13,
2860,
1859,
62,
16624,
14692,
15526,
295,
17,
19290,
312,
62,
9945,
33116,
2116,
13,
5420,
62,
15908,
62,
12001,
11,
1249,
62,
82,
18,
11632,
28,
17821,
8,
628,
220,
220,
220,
220,
220,
220,
220,
390,
11894,
455,
462,
62,
9945,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
2860,
1859,
62,
16624,
13,
1136,
7203,
2934,
11894,
455,
462,
62,
9945,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
390,
11894,
455,
462,
62,
9945,
796,
21207,
62,
35790,
7,
944,
13,
2860,
1859,
62,
16624,
14692,
2934,
11894,
455,
462,
62,
9945,
33116,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5420,
62,
15908,
62,
12001,
11,
1249,
62,
82,
18,
11632,
28,
17821,
8,
628,
220,
220,
220,
220,
220,
220,
220,
38810,
62,
82,
18,
62,
7753,
796,
2116,
13,
2860,
1859,
62,
16624,
13,
1136,
10786,
19290,
261,
62,
13424,
4868,
3256,
5550,
38865,
62,
9148,
8120,
45849,
62,
50,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1687,
261,
62,
13424,
4868,
796,
21207,
62,
35790,
7,
13424,
4868,
62,
82,
18,
62,
7753,
11,
2116,
13,
5420,
62,
15908,
62,
12001,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1687,
261,
62,
1929,
270,
46331,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
2860,
1859,
62,
1078,
7657,
13,
1136,
7203,
1904,
62,
19290,
261,
62,
1929,
270,
46331,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1687,
261,
62,
1929,
270,
46331,
796,
21207,
62,
35790,
7,
944,
13,
2860,
1859,
62,
16624,
13,
1136,
7203,
19290,
261,
62,
1929,
270,
46331,
1600,
5550,
38865,
62,
12418,
2043,
3698,
8808,
62,
50,
18,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5420,
62,
15908,
62,
12001,
8,
628,
220,
220,
220,
220,
220,
220,
220,
949,
62,
282,
16747,
62,
13664,
796,
24563,
62,
23678,
62,
1847,
16284,
10979,
62,
43,
1677,
611,
2116,
13,
282,
16747,
62,
282,
42289,
6624,
705,
14542,
77,
499,
6,
2073,
657,
198,
220,
220,
220,
220,
220,
220,
220,
285,
23,
13,
13345,
62,
71,
896,
62,
76,
23,
7,
22915,
62,
76,
23,
11,
31144,
62,
9945,
11,
1895,
295,
17,
19290,
312,
62,
9945,
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,
4648,
929,
276,
62,
22915,
62,
76,
23,
11,
5072,
62,
71,
896,
388,
6874,
11,
949,
62,
282,
16747,
62,
13664,
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,
390,
11894,
455,
462,
62,
9945,
11,
1687,
261,
62,
1929,
270,
46331,
11,
1687,
261,
62,
13424,
4868,
8,
628,
220,
220,
220,
220,
220,
220,
220,
20613,
62,
4906,
796,
705,
11251,
6,
611,
2116,
13,
282,
16747,
62,
282,
42289,
6624,
705,
14542,
77,
499,
6,
2073,
705,
24723,
6,
628,
220,
220,
220,
220,
220,
220,
220,
285,
23,
13,
8612,
378,
62,
19290,
261,
62,
9127,
62,
17752,
62,
6738,
62,
76,
23,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4648,
929,
276,
62,
22915,
62,
76,
23,
11,
5072,
62,
71,
896,
388,
6874,
11,
20613,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31144,
62,
9945,
11,
390,
11894,
455,
462,
62,
9945,
11,
1687,
261,
62,
1929,
270,
46331,
11,
1687,
261,
62,
13424,
4868,
11,
23418,
62,
565,
5819,
62,
82,
4340,
62,
6978,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
9127,
82,
62,
4480,
62,
67,
6098,
62,
17752,
8,
628,
220,
220,
220,
825,
16058,
62,
15414,
7,
944,
11,
5128,
62,
16624,
11,
22716,
1096,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
1925,
2954,
5128,
3696,
656,
5207,
329,
2854,
290,
10730,
1042,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
636,
62,
20713,
796,
17635,
220,
1303,
44968,
286,
13027,
3696,
198,
220,
220,
220,
220,
220,
220,
220,
1900,
62,
77,
6615,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
636,
62,
37333,
844,
796,
13538,
198,
220,
220,
220,
220,
220,
220,
220,
16058,
62,
77,
6615,
796,
22716,
1096,
1635,
362,
628,
220,
220,
220,
220,
220,
220,
220,
329,
5128,
62,
7753,
287,
5128,
62,
16624,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2764,
1271,
286,
3951,
287,
262,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
22915,
796,
3141,
13,
41049,
62,
4480,
62,
22915,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3141,
62,
33279,
82,
13,
28008,
21575,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
2625,
86,
66,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26498,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27444,
75,
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,
5128,
62,
7753,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
6615,
796,
493,
7,
28758,
62,
22915,
13,
36311,
22446,
35312,
3419,
58,
15,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
7913,
286,
3951,
815,
307,
262,
976,
287,
20312,
3696,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1900,
62,
77,
6615,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
366,
44,
1042,
14265,
1627,
9853,
287,
13519,
20312,
3696,
25,
23884,
1911,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5128,
62,
16624,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
299,
6615,
6624,
1900,
62,
77,
6615,
11,
31456,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1900,
62,
77,
6615,
796,
299,
6615,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5345,
1271,
286,
5207,
290,
3891,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
931,
5889,
796,
357,
77,
6615,
1343,
16058,
62,
77,
6615,
532,
352,
8,
3373,
16058,
62,
77,
6615,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
12894,
896,
796,
18896,
7,
2536,
7,
77,
931,
5889,
532,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
636,
62,
37333,
844,
796,
27444,
354,
14125,
1096,
12,
4,
67,
12,
77,
931,
5889,
12,
4,
67,
12,
3911,
21215,
4064,
357,
354,
14125,
1096,
11,
299,
931,
5889,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
503,
62,
40290,
62,
8692,
796,
28686,
13,
6978,
13,
12093,
12453,
7,
15414,
62,
7753,
8,
1343,
636,
62,
37333,
844,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
503,
62,
40290,
796,
28686,
13,
6978,
13,
22179,
7,
944,
13,
354,
14125,
62,
20274,
62,
15908,
62,
12001,
11,
503,
62,
40290,
62,
8692,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
27758,
1588,
2393,
656,
4833,
3706,
5207,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3141,
13,
41049,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3141,
62,
33279,
82,
13,
28008,
21575,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
2625,
35312,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26498,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27444,
64,
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,
299,
12894,
896,
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,
366,
438,
77,
39223,
12,
37333,
844,
274,
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,
27444,
75,
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,
16058,
62,
77,
6615,
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,
5128,
62,
7753,
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,
503,
62,
40290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3141,
13,
41049,
62,
4480,
62,
1186,
1678,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3141,
62,
33279,
82,
13,
28008,
21575,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
2625,
8356,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26498,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
82,
18,
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,
366,
27261,
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,
366,
438,
8807,
12,
12860,
12,
48277,
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,
28686,
13,
6978,
13,
22179,
7,
944,
13,
354,
14125,
62,
20274,
62,
15908,
62,
12001,
11,
366,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
6978,
13,
22179,
7,
944,
13,
354,
14125,
62,
20274,
62,
15908,
62,
82,
18,
11,
366,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
438,
1069,
9152,
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,
366,
9,
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,
366,
438,
17256,
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,
503,
62,
40290,
62,
8692,
1343,
366,
9,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3497,
262,
13027,
2393,
3891,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13027,
62,
16624,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13532,
796,
3141,
13,
4743,
672,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15095,
62,
33279,
28,
448,
62,
40290,
1343,
366,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10283,
62,
43551,
62,
14933,
28,
17821,
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,
13027,
62,
16624,
13,
2302,
437,
7,
6978,
82,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6822,
326,
262,
13027,
3696,
2872,
674,
2938,
16058,
278,
3912,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3912,
796,
45144,
25,
15,
4,
1860,
36786,
4064,
299,
12894,
896,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2938,
62,
47172,
62,
16624,
796,
47527,
448,
62,
40290,
62,
8692,
1343,
3912,
13,
18982,
7,
72,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
77,
931,
5889,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
366,
18927,
1816,
2642,
351,
16058,
278,
25,
23884,
14512,
23884,
1911,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13027,
62,
16624,
11,
2938,
62,
47172,
62,
16624,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
2938,
62,
47172,
62,
16624,
6624,
13027,
62,
16624,
11,
31456,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
636,
62,
20713,
13,
33295,
7,
47172,
62,
16624,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1475,
25,
685,
14692,
15414,
62,
49,
16,
13,
7217,
64,
12,
3911,
12,
16,
1600,
366,
15414,
62,
49,
17,
13,
7217,
64,
12,
3911,
12,
16,
33116,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
14631,
15414,
62,
49,
16,
13,
7217,
64,
12,
3911,
12,
17,
1600,
366,
15414,
62,
49,
17,
13,
7217,
64,
12,
3911,
12,
17,
33116,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
14631,
15414,
62,
49,
16,
13,
7217,
64,
12,
3911,
12,
18,
1600,
366,
15414,
62,
49,
17,
13,
7217,
64,
12,
3911,
12,
18,
33116,
22345,
198,
220,
220,
220,
220,
220,
220,
220,
5128,
62,
354,
14125,
796,
685,
4868,
7,
3911,
8,
329,
636,
287,
19974,
46491,
3911,
62,
20713,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
636,
62,
37333,
844,
11,
5128,
62,
354,
14125,
628,
220,
220,
220,
2488,
12708,
24396,
628,
220,
220,
220,
2488,
12708,
24396,
628,
220,
220,
220,
2488,
12708,
24396,
628,
220,
220,
220,
825,
1057,
62,
354,
2954,
7,
944,
11,
636,
62,
37333,
844,
11,
5128,
62,
16624,
11,
16931,
62,
5143,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
35934,
257,
16058,
284,
8383,
8217,
329,
9387,
402,
15571,
2969,
393,
371,
2969,
18243,
198,
220,
220,
220,
220,
220,
220,
220,
1448,
8217,
290,
5412,
511,
9706,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
16058,
62,
312,
796,
493,
7,
15414,
62,
16624,
58,
15,
4083,
35312,
7,
3911,
62,
37333,
844,
38381,
12,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1963,
4449,
270,
62,
12093,
12453,
796,
277,
1,
16680,
4449,
270,
12,
90,
944,
13,
282,
16747,
62,
282,
42289,
92,
12,
448,
90,
3911,
62,
37333,
844,
18477,
354,
2954,
62,
312,
27422,
76,
23,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1963,
4449,
270,
62,
12001,
62,
448,
7753,
796,
28686,
13,
6978,
13,
22179,
7,
944,
13,
354,
14125,
62,
20274,
62,
15908,
62,
12001,
11,
1963,
4449,
270,
62,
12093,
12453,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1963,
4449,
270,
62,
82,
18,
62,
448,
7753,
796,
28686,
13,
6978,
13,
22179,
7,
944,
13,
354,
14125,
62,
20274,
62,
15908,
62,
82,
18,
11,
1963,
4449,
270,
62,
12093,
12453,
8,
628,
220,
220,
220,
220,
220,
220,
220,
6246,
796,
275,
2069,
18,
13,
29891,
13,
36044,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
16931,
62,
5143,
290,
4321,
62,
6738,
62,
82,
18,
7,
29891,
11,
1963,
4449,
270,
62,
82,
18,
62,
448,
7753,
11,
1963,
4449,
270,
62,
12001,
62,
448,
7753,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2604,
13,
13564,
7,
69,
1,
43952,
19114,
329,
16058,
1391,
354,
2954,
62,
312,
92,
351,
1391,
944,
13,
282,
16747,
62,
282,
42289,
92,
416,
37296,
813,
21207,
278,
938,
1255,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1963,
4449,
270,
62,
12001,
62,
448,
7753,
628,
220,
220,
220,
220,
220,
220,
220,
14833,
62,
38986,
796,
28686,
13,
268,
2268,
14692,
7206,
6489,
21414,
10979,
62,
1677,
53,
4663,
1340,
10979,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
8475,
62,
3672,
796,
28686,
13,
268,
2268,
13,
1136,
7203,
4805,
41254,
9050,
62,
20608,
1600,
366,
11265,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
6376,
62,
15908,
62,
37333,
844,
796,
2116,
13,
2860,
1859,
62,
1078,
7657,
14692,
9630,
62,
15908,
62,
37333,
844,
8973,
628,
220,
220,
220,
220,
220,
220,
220,
3912,
796,
374,
338,
18,
1378,
13,
10,
14,
82,
12629,
14,
26933,
15,
12,
24,
48688,
20679,
26933,
15,
12,
24,
48688,
20679,
6,
198,
220,
220,
220,
220,
220,
220,
220,
285,
796,
302,
13,
15699,
7,
33279,
11,
2116,
13,
354,
14125,
62,
20274,
62,
15908,
62,
82,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
285,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1628,
62,
312,
11,
6291,
62,
312,
796,
285,
13,
8094,
7,
16,
828,
285,
13,
8094,
7,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1628,
62,
312,
11,
6291,
62,
312,
796,
705,
15,
3256,
705,
15,
6,
628,
220,
220,
220,
220,
220,
220,
220,
8287,
278,
62,
19849,
796,
705,
4303,
2394,
6,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
16926,
46,
25,
11507,
1096,
777,
3740,
1378,
73,
8704,
13,
66,
17027,
13,
15097,
14,
25367,
325,
14,
2389,
5188,
48,
12,
2075,
4790,
198,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
3672,
796,
277,
1,
312,
41068,
12,
90,
2934,
1420,
434,
62,
38986,
92,
12,
90,
944,
13,
282,
16747,
62,
282,
42289,
92,
12,
16302,
12,
90,
16302,
62,
312,
92,
12,
39873,
12,
90,
39873,
62,
312,
92,
12,
3911,
12,
90,
354,
2954,
62,
312,
36786,
198,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
36560,
796,
277,
1,
312,
41068,
12,
90,
2934,
1420,
434,
62,
38986,
92,
12,
90,
944,
13,
282,
16747,
62,
282,
42289,
92,
12,
90,
1676,
10178,
278,
62,
19849,
92,
12,
90,
9630,
62,
15908,
62,
37333,
844,
92,
12,
90,
49336,
62,
3672,
36786,
198,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
46758,
796,
277,
1,
312,
41068,
12,
90,
2934,
1420,
434,
62,
38986,
92,
12,
90,
944,
13,
282,
16747,
62,
282,
42289,
36786,
628,
220,
220,
220,
220,
220,
220,
220,
2858,
796,
685,
90,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
277,
1,
1268,
30076,
62,
34219,
23330,
72,
92,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
8367,
10354,
28686,
13,
6978,
13,
22179,
7,
944,
13,
354,
14125,
62,
20274,
62,
15908,
62,
82,
18,
11,
5128,
62,
7753,
828,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
329,
1312,
11,
5128,
62,
7753,
287,
27056,
378,
7,
15414,
62,
16624,
15437,
1343,
685,
90,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
366,
2606,
7250,
3843,
62,
34219,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
8367,
10354,
1963,
4449,
270,
62,
82,
18,
62,
448,
7753,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
60,
628,
220,
220,
220,
220,
220,
220,
220,
5128,
62,
6978,
82,
796,
685,
69,
1,
12001,
62,
15414,
23330,
72,
36786,
329,
1312,
11,
4808,
287,
27056,
378,
7,
15414,
62,
16624,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
3141,
796,
2116,
13557,
1136,
62,
21812,
7203,
14,
5420,
4972,
14,
35790,
1600,
5128,
62,
6978,
82,
11,
366,
12001,
62,
22915,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
312,
796,
2116,
13557,
5143,
62,
43501,
62,
21858,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6246,
28,
29891,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
3672,
28,
21858,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
36560,
28,
21858,
62,
36560,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
46758,
28,
21858,
62,
46758,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3141,
28,
21812,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2858,
28,
38986,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16058,
62,
312,
28,
354,
2954,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
1678,
28,
17,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
347,
963,
33308,
37,
6255,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8287,
278,
62,
19849,
796,
705,
2943,
17,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
16926,
46,
25,
11507,
1096,
428,
3740,
1378,
73,
8704,
13,
66,
17027,
13,
15097,
14,
25367,
325,
14,
2389,
5188,
48,
12,
2075,
4790,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
36560,
796,
277,
1,
312,
41068,
12,
90,
2934,
1420,
434,
62,
38986,
92,
12,
90,
944,
13,
282,
16747,
62,
282,
42289,
92,
12,
90,
1676,
10178,
278,
62,
19849,
92,
12,
90,
9630,
62,
15908,
62,
37333,
844,
92,
12,
90,
49336,
62,
3672,
36786,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
312,
796,
2116,
13557,
5143,
62,
43501,
62,
21858,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6246,
28,
29891,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
3672,
28,
21858,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
36560,
28,
21858,
62,
36560,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
46758,
28,
21858,
62,
46758,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3141,
28,
21812,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2858,
28,
38986,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16058,
62,
312,
28,
354,
2954,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
1678,
28,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
329,
4808,
287,
2837,
7,
1065,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4321,
62,
6738,
62,
82,
18,
7,
29891,
11,
1963,
4449,
270,
62,
82,
18,
62,
448,
7753,
11,
1963,
4449,
270,
62,
12001,
62,
448,
7753,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
940,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2604,
13,
6404,
62,
15596,
7203,
354,
2954,
62,
20274,
62,
45688,
62,
259,
62,
82,
18,
1600,
3815,
34758,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
21858,
62,
312,
10354,
1693,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
354,
2954,
62,
312,
10354,
16058,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
21858,
62,
36560,
10354,
1693,
62,
36560,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
21858,
62,
46758,
10354,
1693,
62,
46758,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
282,
16747,
62,
282,
42289,
10354,
2116,
13,
282,
16747,
62,
282,
42289,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32092,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
35528,
7203,
1925,
2954,
1255,
318,
4814,
422,
264,
18,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
2604,
13,
6404,
62,
15596,
7203,
282,
16747,
62,
43501,
62,
354,
2954,
62,
20274,
62,
2902,
14578,
1600,
3815,
34758,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
21858,
62,
312,
10354,
1693,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
354,
2954,
62,
312,
10354,
16058,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
21858,
62,
36560,
10354,
1693,
62,
36560,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
21858,
62,
46758,
10354,
1693,
62,
46758,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
282,
16747,
62,
282,
42289,
10354,
2116,
13,
282,
16747,
62,
282,
42289,
11,
198,
220,
220,
220,
220,
220,
220,
220,
32092,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
12102,
378,
62,
354,
2954,
62,
22915,
7,
16680,
4449,
270,
62,
12001,
62,
448,
7753,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1963,
4449,
270,
62,
12001,
62,
448,
7753,
198
] | 2.044452 | 6,209 |
import torch
import torch.nn as nn
import torch.jit as jit
from typing import Any
from typing import List
from typing import Tuple
from typing import Optional
from collections import namedtuple
state_type = Tuple[torch.Tensor, torch.Tensor]
return_type = Tuple[torch.Tensor, Tuple[torch.Tensor, torch.Tensor]]
LSTMState = namedtuple("LSTMState", ["hx", "cx"])
__all__ = [
"LSTM",
]
|
[
11748,
28034,
198,
198,
11748,
28034,
13,
20471,
355,
299,
77,
198,
11748,
28034,
13,
45051,
355,
474,
270,
198,
198,
6738,
19720,
1330,
4377,
198,
6738,
19720,
1330,
7343,
198,
6738,
19720,
1330,
309,
29291,
198,
6738,
19720,
1330,
32233,
198,
6738,
17268,
1330,
3706,
83,
29291,
198,
198,
5219,
62,
4906,
796,
309,
29291,
58,
13165,
354,
13,
51,
22854,
11,
28034,
13,
51,
22854,
60,
198,
7783,
62,
4906,
796,
309,
29291,
58,
13165,
354,
13,
51,
22854,
11,
309,
29291,
58,
13165,
354,
13,
51,
22854,
11,
28034,
13,
51,
22854,
11907,
198,
43,
2257,
44,
9012,
796,
3706,
83,
29291,
7203,
43,
2257,
44,
9012,
1600,
14631,
71,
87,
1600,
366,
66,
87,
8973,
8,
628,
628,
198,
198,
834,
439,
834,
796,
685,
198,
220,
220,
220,
366,
43,
2257,
44,
1600,
198,
60,
198
] | 2.794326 | 141 |
import requests
from bs4 import BeautifulSoup
from _datetime import date
import progressbar
import time
import os
import pandas as pd
#check if a value is empty
#if it is we return 0.0
if __name__ == "__main__":
wrapper = WNBAWrapper()
wrapper.getBoxScore()
|
[
11748,
7007,
198,
6738,
275,
82,
19,
1330,
23762,
50,
10486,
198,
6738,
4808,
19608,
8079,
1330,
3128,
198,
11748,
4371,
5657,
198,
11748,
640,
198,
11748,
28686,
198,
11748,
19798,
292,
355,
279,
67,
628,
220,
220,
220,
1303,
9122,
611,
257,
1988,
318,
6565,
198,
220,
220,
220,
1303,
361,
340,
318,
356,
1441,
657,
13,
15,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
29908,
796,
370,
32470,
36918,
2848,
3419,
198,
220,
220,
220,
29908,
13,
1136,
14253,
26595,
3419
] | 2.98913 | 92 |
#!/usr/bin/env python
from subprocess import Popen, PIPE
import sys
import argparse
parser = argparse.ArgumentParser(description='Ping Scan Network')
# Main arguments
parser.add_argument("-network", dest="network", help="NetWork segment[For example 192.168.56]", required=True)
parser.add_argument("-machines", dest="machines", help="Machines number",type=int, required=True)
parsed_args = parser.parse_args()
for ip in range(1,parsed_args.machines+1):
ipAddress = parsed_args.network +'.' + str(ip)
print "Scanning %s " %(ipAddress)
if sys.platform.startswith('linux'):
# Linux
subprocess = Popen(['/bin/ping', '-c 1 ', ipAddress], stdin=PIPE, stdout=PIPE, stderr=PIPE)
elif sys.platform.startswith('win'):
# Windows
subprocess = Popen(['ping', ipAddress], stdin=PIPE, stdout=PIPE, stderr=PIPE)
stdout, stderr= subprocess.communicate(input=None)
print stdout
if "Lost = 0" in stdout or "bytes from " in stdout:
print "The Ip Address %s has responded with a ECHO_REPLY!" %(stdout.split()[1])
|
[
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
6738,
850,
14681,
1330,
8099,
268,
11,
350,
4061,
36,
198,
11748,
25064,
198,
11748,
1822,
29572,
198,
198,
48610,
796,
1822,
29572,
13,
28100,
1713,
46677,
7,
11213,
11639,
49806,
20937,
7311,
11537,
198,
220,
220,
220,
220,
198,
2,
8774,
7159,
198,
48610,
13,
2860,
62,
49140,
7203,
12,
27349,
1600,
2244,
2625,
27349,
1600,
1037,
2625,
7934,
12468,
10618,
58,
1890,
1672,
17817,
13,
14656,
13,
3980,
60,
1600,
2672,
28,
17821,
8,
198,
48610,
13,
2860,
62,
49140,
7203,
12,
76,
620,
1127,
1600,
2244,
2625,
76,
620,
1127,
1600,
1037,
2625,
49999,
1127,
1271,
1600,
4906,
28,
600,
11,
2672,
28,
17821,
8,
198,
198,
79,
945,
276,
62,
22046,
796,
30751,
13,
29572,
62,
22046,
3419,
220,
220,
220,
220,
198,
220,
220,
220,
220,
198,
1640,
20966,
287,
2837,
7,
16,
11,
79,
945,
276,
62,
22046,
13,
76,
620,
1127,
10,
16,
2599,
198,
197,
541,
20231,
796,
44267,
62,
22046,
13,
27349,
1343,
6,
2637,
1343,
965,
7,
541,
8,
198,
197,
4798,
366,
33351,
768,
4064,
82,
366,
4064,
7,
541,
20231,
8,
198,
197,
361,
25064,
13,
24254,
13,
9688,
2032,
342,
10786,
23289,
6,
2599,
198,
197,
197,
2,
7020,
198,
197,
197,
7266,
14681,
796,
8099,
268,
7,
17816,
14,
8800,
14,
13886,
3256,
705,
12,
66,
352,
46083,
20966,
20231,
4357,
14367,
259,
28,
47,
4061,
36,
11,
14367,
448,
28,
47,
4061,
36,
11,
336,
1082,
81,
28,
47,
4061,
36,
8,
198,
197,
417,
361,
25064,
13,
24254,
13,
9688,
2032,
342,
10786,
5404,
6,
2599,
198,
197,
197,
2,
3964,
198,
197,
197,
7266,
14681,
796,
8099,
268,
7,
17816,
13886,
3256,
20966,
20231,
4357,
14367,
259,
28,
47,
4061,
36,
11,
14367,
448,
28,
47,
4061,
36,
11,
336,
1082,
81,
28,
47,
4061,
36,
8,
198,
197,
19282,
448,
11,
336,
1082,
81,
28,
850,
14681,
13,
10709,
5344,
7,
15414,
28,
14202,
8,
198,
197,
4798,
14367,
448,
198,
197,
361,
366,
31042,
796,
657,
1,
287,
14367,
448,
393,
366,
33661,
422,
366,
287,
14367,
448,
25,
198,
197,
197,
4798,
366,
464,
314,
79,
17917,
4064,
82,
468,
7082,
351,
257,
412,
44899,
62,
2200,
6489,
56,
2474,
4064,
7,
19282,
448,
13,
35312,
3419,
58,
16,
12962,
198
] | 2.628205 | 390 |
from django.db import models
from django.utils import timezone
# Create your models here.
|
[
6738,
42625,
14208,
13,
9945,
1330,
4981,
198,
6738,
42625,
14208,
13,
26791,
1330,
640,
11340,
198,
198,
2,
13610,
534,
4981,
994,
13
] | 3.75 | 24 |
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import ElementNotInteractableException, NoSuchElementException
import csv
import time
WPP_URL = "https://web.whatsapp.com/"
def le_arquivo(nome_arquivo):
'''
Função que lê o arquivo e retorna seu conteúdo na estrutura de dados adequada
Parâmetro:
nome_arquivo : str
Retorna: list | None
'''
if nome_arquivo == "contatos":
contatos = list()
with open(f"{nome_arquivo}.txt", "r") as f:
contatos = f.read().rstrip().splitlines()
return contatos
elif nome_arquivo == "mensagem":
mensagem = str()
with open(f"{nome_arquivo}.txt", "r") as f:
mensagem = f.read().rstrip().splitlines()
return mensagem
else:
return None
def iniciar_driver(path):
'''
Inicia o ChromeDriver, abre o navegador e retorna uma instância do
ChromeDriver.
Parâmetro:
path : str
'''
driver = webdriver.Chrome(path)
driver.get(WPP_URL)
return driver
def no_remember_me(driver):
'''
Aperta o botão de "rememberMe" para evitar o log-in a longo prazo
Parâmetro: WebDriver object
'''
botao = driver.find_element(By.NAME, "rememberMe")
botao.click()
def barra_de_pesquisa(contato, driver):
'''
Acha a caixa de texto para pesquisar o contato ou nome do grupo e o pesquisa
Parâmetros:
contato : str
driver : WebDriver object
'''
try:
campo_pesquisa = driver.find_element_by_xpath("//div[contains(@class, 'copyable-text selectable-text')]")
campo_pesquisa.click()
campo_pesquisa.send_keys(contato)
campo_pesquisa.send_keys(Keys.ENTER)
except NoSuchElementException:
driver.quit()
def envia_mensagem(mensagem, driver):
'''
Envia a mensagem ao contato
Parâmetros:
mensagem : list
driver : WebDriver object
'''
try:
campo_mensagem = driver.find_elements_by_xpath("//div[contains(@class, 'copyable-text selectable-text')]")
campo_mensagem[1].click()
for linha in mensagem:
campo_mensagem[1].send_keys(linha)
campo_mensagem[1].send_keys(Keys.SHIFT, Keys.ENTER)
campo_mensagem[1].send_keys(Keys.ENTER)
except NoSuchElementException:
return
def informacoes_do_grupo(driver, grupo):
'''
Devolve as informações sobre um certo grupo, como nome, descrição
e membros do grupo em um arquivo .csv
Parâmetros:
driver : Webdriver object
grupo : str
'''
# pesquisa o grupo
barra_de_pesquisa(grupo, driver)
barra_nome_do_grupo = driver.find_element_by_xpath("//div[contains(@class, '_2uaUb')]")
barra_nome_do_grupo.click()
# nome completo do grupo
header = ["Nome Grupo", "Descrição"]
nome_grupo = driver.find_element_by_xpath("//div[contains(@class, '_2_1wd')]").get_attribute("textContent")
escreve_arquivo_csv(nome_grupo, header)
try:
# clica botão de mostrar mais
botao_ver_mais = driver.find_element_by_xpath("//span[@class='_1oQqb' and @role='button']")
botao_ver_mais.click()
except ElementNotInteractableException:
pass
finally:
descricao = driver.find_element_by_xpath("//span[contains(@class, '_3-8er')]").get_attribute("textContent")
escreve_arquivo_csv(nome_grupo, [nome_grupo, descricao])
membros = driver.find_element_by_xpath("//span[@class='_7yrSq _3-8er selectable-text copyable-text']")
membros = membros.get_attribute("textContent")
membros = membros.split(", ")
for membro in membros:
escreve_arquivo_csv(nome_grupo, [membro])
|
[
6738,
384,
11925,
1505,
1330,
3992,
26230,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
11321,
13,
1525,
1330,
2750,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
11321,
13,
13083,
1330,
26363,
198,
6738,
384,
11925,
1505,
13,
11321,
13,
1069,
11755,
1330,
11703,
3673,
9492,
529,
540,
16922,
11,
1400,
16678,
20180,
16922,
198,
11748,
269,
21370,
198,
11748,
640,
198,
198,
54,
10246,
62,
21886,
796,
366,
5450,
1378,
12384,
13,
1929,
1381,
1324,
13,
785,
30487,
198,
198,
4299,
443,
62,
283,
421,
23593,
7,
77,
462,
62,
283,
421,
23593,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
11138,
16175,
28749,
8358,
300,
25792,
267,
610,
421,
23593,
304,
1005,
1211,
64,
384,
84,
542,
68,
21356,
4598,
12385,
1556,
81,
315,
5330,
390,
9955,
418,
9939,
4763,
628,
220,
220,
220,
2547,
22940,
4164,
305,
25,
220,
198,
220,
220,
220,
299,
462,
62,
283,
421,
23593,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
4990,
1211,
64,
25,
1351,
930,
6045,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
611,
299,
462,
62,
283,
421,
23593,
6624,
366,
3642,
35492,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
542,
35492,
796,
1351,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
69,
1,
90,
77,
462,
62,
283,
421,
23593,
27422,
14116,
1600,
366,
81,
4943,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
542,
35492,
796,
277,
13,
961,
22446,
81,
36311,
22446,
35312,
6615,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
542,
35492,
198,
220,
220,
220,
1288,
361,
299,
462,
62,
283,
421,
23593,
6624,
366,
45535,
363,
368,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
285,
641,
363,
368,
796,
965,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
69,
1,
90,
77,
462,
62,
283,
421,
23593,
27422,
14116,
1600,
366,
81,
4943,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
641,
363,
368,
796,
277,
13,
961,
22446,
81,
36311,
22446,
35312,
6615,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
285,
641,
363,
368,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
198,
198,
4299,
287,
291,
12571,
62,
26230,
7,
6978,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
554,
33577,
267,
13282,
32103,
11,
450,
260,
267,
299,
1015,
70,
7079,
304,
1005,
1211,
64,
334,
2611,
916,
22940,
10782,
544,
466,
198,
220,
220,
220,
13282,
32103,
13,
220,
220,
628,
220,
220,
220,
2547,
22940,
4164,
305,
25,
220,
198,
220,
220,
220,
3108,
1058,
965,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
4639,
796,
3992,
26230,
13,
1925,
5998,
7,
6978,
8,
198,
220,
220,
220,
4639,
13,
1136,
7,
54,
10246,
62,
21886,
8,
198,
220,
220,
220,
1441,
4639,
198,
198,
4299,
645,
62,
38947,
62,
1326,
7,
26230,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
317,
525,
8326,
267,
10214,
28749,
390,
366,
38947,
5308,
1,
31215,
819,
7940,
267,
2604,
12,
259,
257,
890,
78,
279,
3247,
78,
198,
220,
220,
220,
2547,
22940,
4164,
305,
25,
5313,
32103,
2134,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
275,
4265,
78,
796,
4639,
13,
19796,
62,
30854,
7,
3886,
13,
20608,
11,
366,
38947,
5308,
4943,
198,
220,
220,
220,
275,
4265,
78,
13,
12976,
3419,
198,
198,
4299,
2318,
430,
62,
2934,
62,
12272,
421,
9160,
7,
3642,
5549,
11,
4639,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
317,
11693,
257,
1275,
844,
64,
390,
2420,
78,
31215,
32317,
421,
271,
283,
267,
542,
5549,
267,
84,
299,
462,
466,
22848,
7501,
304,
267,
32317,
421,
9160,
628,
220,
220,
220,
2547,
22940,
4164,
4951,
25,
220,
198,
220,
220,
220,
542,
5549,
1058,
965,
198,
220,
220,
220,
4639,
1058,
5313,
32103,
2134,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1413,
78,
62,
12272,
421,
9160,
796,
4639,
13,
19796,
62,
30854,
62,
1525,
62,
87,
6978,
7203,
1003,
7146,
58,
3642,
1299,
7,
31,
4871,
11,
705,
30073,
540,
12,
5239,
2922,
540,
12,
5239,
11537,
60,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1413,
78,
62,
12272,
421,
9160,
13,
12976,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1413,
78,
62,
12272,
421,
9160,
13,
21280,
62,
13083,
7,
3642,
5549,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1413,
78,
62,
12272,
421,
9160,
13,
21280,
62,
13083,
7,
40729,
13,
3525,
1137,
8,
198,
220,
220,
220,
2845,
1400,
16678,
20180,
16922,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4639,
13,
47391,
3419,
198,
198,
4299,
551,
8869,
62,
45535,
363,
368,
7,
45535,
363,
368,
11,
4639,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
2039,
8869,
257,
285,
641,
363,
368,
257,
78,
542,
5549,
628,
220,
220,
220,
2547,
22940,
4164,
4951,
25,
220,
198,
220,
220,
220,
285,
641,
363,
368,
1058,
1351,
220,
198,
220,
220,
220,
4639,
1058,
5313,
32103,
2134,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1413,
78,
62,
45535,
363,
368,
796,
4639,
13,
19796,
62,
68,
3639,
62,
1525,
62,
87,
6978,
7203,
1003,
7146,
58,
3642,
1299,
7,
31,
4871,
11,
705,
30073,
540,
12,
5239,
2922,
540,
12,
5239,
11537,
60,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1413,
78,
62,
45535,
363,
368,
58,
16,
4083,
12976,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
329,
9493,
3099,
287,
285,
641,
363,
368,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1413,
78,
62,
45535,
363,
368,
58,
16,
4083,
21280,
62,
13083,
7,
2815,
3099,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1413,
78,
62,
45535,
363,
368,
58,
16,
4083,
21280,
62,
13083,
7,
40729,
13,
9693,
32297,
11,
26363,
13,
3525,
1137,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1413,
78,
62,
45535,
363,
368,
58,
16,
4083,
21280,
62,
13083,
7,
40729,
13,
3525,
1137,
8,
198,
220,
220,
220,
2845,
1400,
16678,
20180,
16922,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
198,
198,
4299,
4175,
330,
3028,
62,
4598,
62,
48929,
7501,
7,
26230,
11,
22848,
7501,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
6245,
6442,
355,
4175,
64,
16175,
127,
113,
274,
523,
4679,
23781,
5051,
78,
22848,
7501,
11,
401,
78,
299,
462,
11,
1715,
380,
16175,
28749,
198,
220,
220,
220,
304,
1066,
65,
4951,
466,
22848,
7501,
795,
23781,
610,
421,
23593,
764,
40664,
628,
220,
220,
220,
2547,
22940,
4164,
4951,
25,
198,
220,
220,
220,
4639,
1058,
5313,
26230,
2134,
198,
220,
220,
220,
22848,
7501,
1058,
965,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
1303,
32317,
421,
9160,
267,
22848,
7501,
198,
220,
220,
220,
2318,
430,
62,
2934,
62,
12272,
421,
9160,
7,
48929,
7501,
11,
4639,
8,
198,
220,
220,
220,
2318,
430,
62,
77,
462,
62,
4598,
62,
48929,
7501,
796,
4639,
13,
19796,
62,
30854,
62,
1525,
62,
87,
6978,
7203,
1003,
7146,
58,
3642,
1299,
7,
31,
4871,
11,
705,
62,
17,
6413,
36609,
11537,
60,
4943,
198,
220,
220,
220,
2318,
430,
62,
77,
462,
62,
4598,
62,
48929,
7501,
13,
12976,
3419,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
299,
462,
1224,
1462,
466,
22848,
7501,
198,
220,
220,
220,
13639,
796,
14631,
45,
462,
25665,
7501,
1600,
366,
24564,
380,
16175,
28749,
8973,
198,
220,
220,
220,
299,
462,
62,
48929,
7501,
796,
4639,
13,
19796,
62,
30854,
62,
1525,
62,
87,
6978,
7203,
1003,
7146,
58,
3642,
1299,
7,
31,
4871,
11,
705,
62,
17,
62,
16,
16993,
11537,
60,
11074,
1136,
62,
42348,
7203,
5239,
19746,
4943,
198,
220,
220,
220,
3671,
36955,
62,
283,
421,
23593,
62,
40664,
7,
77,
462,
62,
48929,
7501,
11,
13639,
8,
628,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
537,
3970,
10214,
28749,
390,
749,
20040,
285,
15152,
198,
220,
220,
220,
220,
220,
220,
220,
275,
4265,
78,
62,
332,
62,
2611,
271,
796,
4639,
13,
19796,
62,
30854,
62,
1525,
62,
87,
6978,
7203,
1003,
12626,
58,
31,
4871,
11639,
62,
16,
78,
48,
80,
65,
6,
290,
2488,
18090,
11639,
16539,
20520,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
275,
4265,
78,
62,
332,
62,
2611,
271,
13,
12976,
3419,
198,
220,
220,
220,
2845,
11703,
3673,
9492,
529,
540,
16922,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
3443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1715,
1173,
5488,
796,
4639,
13,
19796,
62,
30854,
62,
1525,
62,
87,
6978,
7203,
1003,
12626,
58,
3642,
1299,
7,
31,
4871,
11,
705,
62,
18,
12,
23,
263,
11537,
60,
11074,
1136,
62,
42348,
7203,
5239,
19746,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
3671,
36955,
62,
283,
421,
23593,
62,
40664,
7,
77,
462,
62,
48929,
7501,
11,
685,
77,
462,
62,
48929,
7501,
11,
1715,
1173,
5488,
12962,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1066,
65,
4951,
796,
4639,
13,
19796,
62,
30854,
62,
1525,
62,
87,
6978,
7203,
1003,
12626,
58,
31,
4871,
11639,
62,
22,
2417,
50,
80,
4808,
18,
12,
23,
263,
2922,
540,
12,
5239,
4866,
540,
12,
5239,
20520,
4943,
198,
220,
220,
220,
1066,
65,
4951,
796,
1066,
65,
4951,
13,
1136,
62,
42348,
7203,
5239,
19746,
4943,
198,
220,
220,
220,
1066,
65,
4951,
796,
1066,
65,
4951,
13,
35312,
7,
1600,
366,
8,
198,
220,
220,
220,
329,
1066,
7957,
287,
1066,
65,
4951,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3671,
36955,
62,
283,
421,
23593,
62,
40664,
7,
77,
462,
62,
48929,
7501,
11,
685,
11883,
7957,
12962
] | 2.187355 | 1,724 |
import cv2
import numpy as np
import os
import math
from utils import *
## ADD 'Frames' folder to file path before running code.
if __name__ == "__main__":
main()
|
[
11748,
269,
85,
17,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
28686,
198,
11748,
10688,
198,
6738,
3384,
4487,
1330,
1635,
628,
198,
2235,
27841,
705,
35439,
6,
9483,
284,
2393,
3108,
878,
2491,
2438,
13,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1388,
3419,
198
] | 3.017544 | 57 |
"""
671
easy
second minimum node in a binary tree
"""
# Definition for a binary tree node.
|
[
37811,
198,
46250,
198,
38171,
198,
12227,
5288,
10139,
287,
257,
13934,
5509,
198,
37811,
628,
198,
2,
30396,
329,
257,
13934,
5509,
10139,
13,
628,
628,
198
] | 3.464286 | 28 |
from multiprocessing import Process
from core.himesis_utils import expand_graph
from copy import deepcopy
|
[
198,
6738,
18540,
305,
919,
278,
1330,
10854,
198,
198,
6738,
4755,
13,
71,
999,
271,
62,
26791,
1330,
4292,
62,
34960,
198,
6738,
4866,
1330,
2769,
30073,
628
] | 3.758621 | 29 |
#!/usr/bin/env python3
################################################################################
# This script will run the Arrythmia Web App from the command line. This
# script should be used for developing builds only.
################################################################################
import subprocess as sp
import os
import sys
def run_backend(current_dir, backend_source):
"""
run_backend runs the backend source code, will return to original directory
:param current_dir: current directory
:type current_dir: str
:param backend_source: directory location of the backend source code
:type backend_source: str
:return: the process instance of the backend
:rtype: Popen object
"""
os.chdir(backend_source)
process = sp.Popen(["python3", "manage.py", "runserver"], stdout=sp.PIPE)
os.chdir(current_dir)
return process
def run_frontend(current_dir, frontend_source):
"""
run_frontend runs the frontend source code, will return to original
directory
:param current_dir: current directory
:type current_dir: str
:param frontend_source: directory location of the frontend source code
:type frontend_source: str
:return: the process instance of the frontend
:rtype: Popen object
"""
os.chdir(frontend_source)
process = None
if not os.path.isdir("node_modules"):
process = sp.Popen(["npm", "install"])
process.wait()
process = sp.Popen(["npm", "start"], stdout=sp.PIPE)
os.chdir(current_dir)
return process
if __name__ == "__main__":
print("This script will start the Arrythmia web application.")
# Get directories
original_dir = os.getcwd()
frontend_start = str(original_dir) + "/frontend"
backend_start = str(original_dir) + "/backend"
# Keep track of all subprocesses (the backend and frontend)
subprocesses = []
try:
# Run the backend and frontend
subprocesses.append(run_backend(original_dir, backend_start))
subprocesses.append(run_frontend(original_dir, frontend_start))
exit_codes = [p.wait() for p in subprocesses]
except OSError:
# An error popped up for one of the processes, terminate everything
[p.terminate() for p in subprocesses]
print("OSError Error happened!")
sys.exit()
except KeyboardInterrupt:
# Python script is forcefully closed, terminate all processes
[p.terminate() for p in subprocesses]
print("KeyboardInterrupt Error happened!")
sys.exit()
except:
# An error popped up, terminate everything
[p.terminate() for p in subprocesses]
print("Error happened!")
sys.exit()
|
[
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
29113,
29113,
14468,
198,
2,
770,
4226,
481,
1057,
262,
943,
563,
400,
20730,
5313,
2034,
422,
262,
3141,
1627,
13,
770,
198,
2,
4226,
815,
307,
973,
329,
5922,
12188,
691,
13,
198,
29113,
29113,
14468,
198,
11748,
850,
14681,
355,
599,
198,
11748,
28686,
198,
11748,
25064,
198,
198,
4299,
1057,
62,
1891,
437,
7,
14421,
62,
15908,
11,
30203,
62,
10459,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1057,
62,
1891,
437,
4539,
262,
30203,
2723,
2438,
11,
481,
1441,
284,
2656,
8619,
628,
220,
220,
220,
1058,
17143,
1459,
62,
15908,
25,
1459,
8619,
220,
198,
220,
220,
220,
1058,
4906,
1459,
62,
15908,
25,
965,
198,
220,
220,
220,
1058,
17143,
30203,
62,
10459,
25,
8619,
4067,
286,
262,
30203,
2723,
2438,
198,
220,
220,
220,
1058,
4906,
30203,
62,
10459,
25,
965,
198,
220,
220,
220,
1058,
7783,
25,
262,
1429,
4554,
286,
262,
30203,
198,
220,
220,
220,
1058,
81,
4906,
25,
8099,
268,
2134,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
28686,
13,
354,
15908,
7,
1891,
437,
62,
10459,
8,
198,
220,
220,
220,
1429,
796,
599,
13,
47,
9654,
7,
14692,
29412,
18,
1600,
366,
805,
496,
13,
9078,
1600,
366,
5143,
15388,
33116,
14367,
448,
28,
2777,
13,
47,
4061,
36,
8,
198,
220,
220,
220,
28686,
13,
354,
15908,
7,
14421,
62,
15908,
8,
198,
220,
220,
220,
1441,
1429,
198,
198,
4299,
1057,
62,
8534,
437,
7,
14421,
62,
15908,
11,
2166,
437,
62,
10459,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1057,
62,
8534,
437,
4539,
262,
2166,
437,
2723,
2438,
11,
481,
1441,
284,
2656,
220,
198,
220,
220,
220,
8619,
628,
220,
220,
220,
1058,
17143,
1459,
62,
15908,
25,
1459,
8619,
198,
220,
220,
220,
1058,
4906,
1459,
62,
15908,
25,
965,
198,
220,
220,
220,
1058,
17143,
2166,
437,
62,
10459,
25,
8619,
4067,
286,
262,
2166,
437,
2723,
2438,
198,
220,
220,
220,
1058,
4906,
2166,
437,
62,
10459,
25,
965,
198,
220,
220,
220,
1058,
7783,
25,
262,
1429,
4554,
286,
262,
2166,
437,
198,
220,
220,
220,
1058,
81,
4906,
25,
8099,
268,
2134,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
28686,
13,
354,
15908,
7,
8534,
437,
62,
10459,
8,
198,
220,
220,
220,
1429,
796,
6045,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
9409,
343,
7203,
17440,
62,
18170,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1429,
796,
599,
13,
47,
9654,
7,
14692,
77,
4426,
1600,
366,
17350,
8973,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1429,
13,
17077,
3419,
198,
220,
220,
220,
1429,
796,
599,
13,
47,
9654,
7,
14692,
77,
4426,
1600,
366,
9688,
33116,
14367,
448,
28,
2777,
13,
47,
4061,
36,
8,
198,
220,
220,
220,
28686,
13,
354,
15908,
7,
14421,
62,
15908,
8,
198,
220,
220,
220,
1441,
1429,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
3601,
7203,
1212,
4226,
481,
923,
262,
943,
563,
400,
20730,
3992,
3586,
19570,
198,
220,
220,
220,
1303,
3497,
29196,
198,
220,
220,
220,
2656,
62,
15908,
796,
28686,
13,
1136,
66,
16993,
3419,
198,
220,
220,
220,
2166,
437,
62,
9688,
796,
965,
7,
14986,
62,
15908,
8,
1343,
12813,
8534,
437,
1,
198,
220,
220,
220,
30203,
62,
9688,
796,
965,
7,
14986,
62,
15908,
8,
1343,
12813,
1891,
437,
1,
198,
220,
220,
220,
1303,
9175,
2610,
286,
477,
850,
14681,
274,
357,
1169,
30203,
290,
2166,
437,
8,
198,
220,
220,
220,
850,
14681,
274,
796,
17635,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5660,
262,
30203,
290,
2166,
437,
198,
220,
220,
220,
220,
220,
220,
220,
850,
14681,
274,
13,
33295,
7,
5143,
62,
1891,
437,
7,
14986,
62,
15908,
11,
30203,
62,
9688,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
850,
14681,
274,
13,
33295,
7,
5143,
62,
8534,
437,
7,
14986,
62,
15908,
11,
2166,
437,
62,
9688,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
8420,
62,
40148,
796,
685,
79,
13,
17077,
3419,
329,
279,
287,
850,
14681,
274,
60,
198,
220,
220,
220,
2845,
440,
5188,
81,
1472,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1052,
4049,
22928,
510,
329,
530,
286,
262,
7767,
11,
23654,
2279,
198,
220,
220,
220,
220,
220,
220,
220,
685,
79,
13,
23705,
378,
3419,
329,
279,
287,
850,
14681,
274,
60,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
2640,
12331,
13047,
3022,
2474,
8,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
3419,
198,
220,
220,
220,
2845,
31973,
9492,
3622,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
11361,
4226,
318,
35701,
4838,
11,
23654,
477,
7767,
198,
220,
220,
220,
220,
220,
220,
220,
685,
79,
13,
23705,
378,
3419,
329,
279,
287,
850,
14681,
274,
60,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
9218,
3526,
9492,
3622,
13047,
3022,
2474,
8,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
3419,
198,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1052,
4049,
22928,
510,
11,
23654,
2279,
198,
220,
220,
220,
220,
220,
220,
220,
685,
79,
13,
23705,
378,
3419,
329,
279,
287,
850,
14681,
274,
60,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
12331,
3022,
2474,
8,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
3419,
198
] | 2.887712 | 944 |
# Regression analysis using scikit-learn functions
# Common imports
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import sklearn.linear_model as skl
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error, r2_score, mean_absolute_error
import os
# Where to save the figures and data files
PROJECT_ROOT_DIR = "Results"
FIGURE_ID = "Results/FigureFiles"
DATA_ID = "DataFiles/"
if not os.path.exists(PROJECT_ROOT_DIR):
os.mkdir(PROJECT_ROOT_DIR)
if not os.path.exists(FIGURE_ID):
os.makedirs(FIGURE_ID)
if not os.path.exists(DATA_ID):
os.makedirs(DATA_ID)
infile = open(data_path("MassEval2016.dat"),'r')
# Read the experimental data with Pandas
Masses = pd.read_fwf(infile, usecols=(2,3,4,6,11),
names=('N', 'Z', 'A', 'Element', 'Ebinding'),
widths=(1,3,5,5,5,1,3,4,1,13,11,11,9,1,2,11,9,1,3,1,12,11,1),
header=39,
index_col=False)
# Extrapolated values are indicated by '#' in place of the decimal place, so
# the Ebinding column won't be numeric. Coerce to float and drop these entries.
Masses['Ebinding'] = pd.to_numeric(Masses['Ebinding'], errors='coerce')
Masses = Masses.dropna()
# Convert from keV to MeV.
Masses['Ebinding'] /= 1000
# Group the DataFrame by nucleon number, A.
Masses = Masses.groupby('A')
# Find the rows of the grouped DataFrame with the maximum binding energy.
Masses = Masses.apply(lambda t: t[t.Ebinding==t.Ebinding.max()])
A = Masses['A']
Z = Masses['Z']
N = Masses['N']
Element = Masses['Element']
Energies = Masses['Ebinding']
# Now we set up the design matrix X
X = np.zeros((5,len(A)))
X[4,:] = A**(-1.0)
X[3,:] = A**(-1.0/3.0)
X[2,:] = A**(2.0/3.0)
X[1,:] = A
X[0,:] = 1
X_train = X.T
Y_train = Energies
n_hidden_neurons = 100
epochs = 100
from sklearn.neural_network import MLPRegressor
from sklearn.metrics import accuracy_score
# store models for later use
eta_vals = np.logspace(-5, 1, 7)
lmbd_vals = np.logspace(-5, 1, 7)
# store the models for later use
DNN_scikit = np.zeros((len(eta_vals), len(lmbd_vals)), dtype=object)
train_accuracy = np.zeros((len(eta_vals), len(lmbd_vals)))
import seaborn as sns
sns.set()
for i, eta in enumerate(eta_vals):
for j, lmbd in enumerate(lmbd_vals):
dnn = MLPRegressor(hidden_layer_sizes=(n_hidden_neurons), activation='logistic',
alpha=lmbd, learning_rate_init=eta, max_iter=epochs)
dnn.fit(X_train, Y_train)
DNN_scikit[i][j] = dnn
train_accuracy[i][j] = dnn.score(X_train, Y_train)
fig, ax = plt.subplots(figsize = (10, 10))
sns.heatmap(train_accuracy, annot=True, ax=ax, cmap="viridis")
ax.set_title("Training Accuracy")
ax.set_ylabel("$\eta$")
ax.set_xlabel("$\lambda$")
plt.show()
|
[
2,
3310,
2234,
3781,
1262,
629,
1134,
270,
12,
35720,
5499,
198,
2,
8070,
17944,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
1341,
35720,
13,
29127,
62,
19849,
355,
1341,
75,
198,
6738,
1341,
35720,
13,
19849,
62,
49283,
1330,
4512,
62,
9288,
62,
35312,
198,
6738,
1341,
35720,
13,
4164,
10466,
1330,
1612,
62,
16485,
1144,
62,
18224,
11,
374,
17,
62,
26675,
11,
1612,
62,
48546,
62,
18224,
198,
11748,
28686,
198,
198,
2,
6350,
284,
3613,
262,
5538,
290,
1366,
3696,
198,
31190,
23680,
62,
13252,
2394,
62,
34720,
796,
366,
25468,
1,
198,
16254,
11335,
62,
2389,
796,
366,
25468,
14,
11337,
25876,
1,
198,
26947,
62,
2389,
796,
366,
6601,
25876,
30487,
198,
198,
361,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
31190,
23680,
62,
13252,
2394,
62,
34720,
2599,
198,
220,
220,
220,
28686,
13,
28015,
15908,
7,
31190,
23680,
62,
13252,
2394,
62,
34720,
8,
198,
198,
361,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
16254,
11335,
62,
2389,
2599,
198,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
16254,
11335,
62,
2389,
8,
198,
198,
361,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
26947,
62,
2389,
2599,
198,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
26947,
62,
2389,
8,
198,
198,
259,
7753,
796,
1280,
7,
7890,
62,
6978,
7203,
20273,
36,
2100,
5304,
13,
19608,
12340,
6,
81,
11537,
628,
198,
2,
4149,
262,
11992,
1366,
351,
16492,
292,
198,
44,
13978,
796,
279,
67,
13,
961,
62,
44482,
69,
7,
259,
7753,
11,
779,
4033,
82,
16193,
17,
11,
18,
11,
19,
11,
21,
11,
1157,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3891,
28,
10786,
45,
3256,
705,
57,
3256,
705,
32,
3256,
705,
20180,
3256,
705,
36,
30786,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9647,
82,
16193,
16,
11,
18,
11,
20,
11,
20,
11,
20,
11,
16,
11,
18,
11,
19,
11,
16,
11,
1485,
11,
1157,
11,
1157,
11,
24,
11,
16,
11,
17,
11,
1157,
11,
24,
11,
16,
11,
18,
11,
16,
11,
1065,
11,
1157,
11,
16,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13639,
28,
2670,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
62,
4033,
28,
25101,
8,
198,
198,
2,
5683,
2416,
50027,
3815,
389,
8203,
416,
705,
2,
6,
287,
1295,
286,
262,
32465,
1295,
11,
523,
198,
2,
262,
12119,
6020,
5721,
1839,
470,
307,
35575,
13,
1766,
263,
344,
284,
12178,
290,
4268,
777,
12784,
13,
198,
44,
13978,
17816,
36,
30786,
20520,
796,
279,
67,
13,
1462,
62,
77,
39223,
7,
44,
13978,
17816,
36,
30786,
6,
4357,
8563,
11639,
1073,
263,
344,
11537,
198,
44,
13978,
796,
5674,
274,
13,
14781,
2616,
3419,
198,
2,
38240,
422,
885,
53,
284,
2185,
53,
13,
198,
44,
13978,
17816,
36,
30786,
20520,
1220,
28,
8576,
198,
198,
2,
4912,
262,
6060,
19778,
416,
17751,
261,
1271,
11,
317,
13,
198,
44,
13978,
796,
5674,
274,
13,
8094,
1525,
10786,
32,
11537,
198,
2,
9938,
262,
15274,
286,
262,
32824,
6060,
19778,
351,
262,
5415,
12765,
2568,
13,
198,
44,
13978,
796,
5674,
274,
13,
39014,
7,
50033,
256,
25,
256,
58,
83,
13,
36,
30786,
855,
83,
13,
36,
30786,
13,
9806,
3419,
12962,
198,
32,
796,
5674,
274,
17816,
32,
20520,
198,
57,
796,
5674,
274,
17816,
57,
20520,
198,
45,
796,
5674,
274,
17816,
45,
20520,
198,
20180,
796,
5674,
274,
17816,
20180,
20520,
198,
36,
25649,
444,
796,
5674,
274,
17816,
36,
30786,
20520,
198,
2,
2735,
356,
900,
510,
262,
1486,
17593,
1395,
198,
55,
796,
45941,
13,
9107,
418,
19510,
20,
11,
11925,
7,
32,
22305,
198,
55,
58,
19,
11,
47715,
796,
317,
1174,
32590,
16,
13,
15,
8,
198,
55,
58,
18,
11,
47715,
796,
317,
1174,
32590,
16,
13,
15,
14,
18,
13,
15,
8,
198,
55,
58,
17,
11,
47715,
796,
317,
1174,
7,
17,
13,
15,
14,
18,
13,
15,
8,
198,
55,
58,
16,
11,
47715,
796,
317,
198,
55,
58,
15,
11,
47715,
796,
352,
628,
198,
55,
62,
27432,
796,
1395,
13,
51,
198,
56,
62,
27432,
796,
412,
25649,
444,
198,
77,
62,
30342,
62,
710,
333,
684,
796,
1802,
198,
538,
5374,
82,
796,
1802,
198,
6738,
1341,
35720,
13,
710,
1523,
62,
27349,
1330,
10373,
4805,
1533,
44292,
198,
6738,
1341,
35720,
13,
4164,
10466,
1330,
9922,
62,
26675,
198,
2,
3650,
4981,
329,
1568,
779,
198,
17167,
62,
12786,
796,
45941,
13,
6404,
13200,
32590,
20,
11,
352,
11,
767,
8,
198,
75,
2022,
67,
62,
12786,
796,
45941,
13,
6404,
13200,
32590,
20,
11,
352,
11,
767,
8,
198,
2,
3650,
262,
4981,
329,
1568,
779,
198,
35,
6144,
62,
36216,
15813,
796,
45941,
13,
9107,
418,
19510,
11925,
7,
17167,
62,
12786,
828,
18896,
7,
75,
2022,
67,
62,
12786,
36911,
288,
4906,
28,
15252,
8,
198,
27432,
62,
4134,
23843,
796,
45941,
13,
9107,
418,
19510,
11925,
7,
17167,
62,
12786,
828,
18896,
7,
75,
2022,
67,
62,
12786,
22305,
198,
11748,
384,
397,
1211,
355,
3013,
82,
198,
82,
5907,
13,
2617,
3419,
198,
1640,
1312,
11,
2123,
64,
287,
27056,
378,
7,
17167,
62,
12786,
2599,
198,
220,
220,
220,
329,
474,
11,
300,
2022,
67,
287,
27056,
378,
7,
75,
2022,
67,
62,
12786,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
288,
20471,
796,
10373,
4805,
1533,
44292,
7,
30342,
62,
29289,
62,
82,
4340,
16193,
77,
62,
30342,
62,
710,
333,
684,
828,
14916,
11639,
6404,
2569,
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,
17130,
28,
75,
2022,
67,
11,
4673,
62,
4873,
62,
15003,
28,
17167,
11,
3509,
62,
2676,
28,
538,
5374,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
288,
20471,
13,
11147,
7,
55,
62,
27432,
11,
575,
62,
27432,
8,
198,
220,
220,
220,
220,
220,
220,
220,
360,
6144,
62,
36216,
15813,
58,
72,
7131,
73,
60,
796,
288,
20471,
198,
220,
220,
220,
220,
220,
220,
220,
4512,
62,
4134,
23843,
58,
72,
7131,
73,
60,
796,
288,
20471,
13,
26675,
7,
55,
62,
27432,
11,
575,
62,
27432,
8,
198,
198,
5647,
11,
7877,
796,
458,
83,
13,
7266,
489,
1747,
7,
5647,
7857,
796,
357,
940,
11,
838,
4008,
198,
82,
5907,
13,
25080,
8899,
7,
27432,
62,
4134,
23843,
11,
24708,
28,
17821,
11,
7877,
28,
897,
11,
269,
8899,
2625,
37040,
29207,
4943,
198,
897,
13,
2617,
62,
7839,
7203,
44357,
33222,
4943,
198,
897,
13,
2617,
62,
2645,
9608,
7203,
3,
59,
17167,
3,
4943,
198,
897,
13,
2617,
62,
87,
18242,
7203,
3,
59,
50033,
3,
4943,
198,
489,
83,
13,
12860,
3419,
628,
198
] | 2.333894 | 1,189 |
# -*- coding: utf-8 -*-
# 句向量训练者称为出题者assitant,标签训练者称为student
import getData
from keras.models import Sequential
from keras.layers import LSTM, Dense, Dropout
from gensim.models import Word2Vec
import numpy as np
from keras import metrics
dim_num_feature = 120
# 用于限制长度
w2v_model = Word2Vec.load("./data/120features_20minwords_10context")
train_comments, train_labels = getData.getAllData(
"./data/webshell.json", "./data/normal.json")
count_list = []
commentVec_list = []
n = 30
j = 0
for comment in train_comments:
if(j % 100 == 0):
print("%d of %d total" % (j, len(train_comments)))
count_list.append(len(comment))
comment_vec = sen2Vec(magicFit(comment, n), w2v_model)
commentVec_list.append(comment_vec)
j += 1
commentVec_list = np.array(commentVec_list)
train_labels = np.array(train_labels)
indices = np.arange(commentVec_list.shape[0])
np.random.shuffle(indices)
data = commentVec_list[indices]
labels = train_labels[indices]
VALID_SAMPLE_SPLIT = 0.1
nb_vali_samples = int(VALID_SAMPLE_SPLIT * data.shape[0])
x_train = data[:-nb_vali_samples]
y_train = labels[:-nb_vali_samples]
print(x_train.shape[0], x_train.shape[1], x_train.shape[2])
y_train = getData.getOneHot(y_train)
x_val = data[-nb_vali_samples:]
y_val = labels[-nb_vali_samples:]
y_val = getData.getOneHot(y_val)
'''-----------Train Model-------------'''
assistant = Sequential()
assistant.add(LSTM(128, activation='tanh', input_shape=(
x_train.shape[1], x_train.shape[2])))
assistant.add(Dropout(0.2))
assistant.add(Dense(2, activation='softmax'))
assistant.compile(loss='categorical_crossentropy',
optimizer='adam',
metrics=['accuracy', "mae"])
assistant.summary()
assistant.fit(x_train, y_train, validation_data=(x_val, y_val),
epochs=12, batch_size=128)
#pickle_file = open('LSTM_webshell_20.model.pik','wb')
# pickle.dump(assistant,pickle_file)
# pickle_file.close()
|
[
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
201,
198,
2,
10263,
237,
98,
28938,
239,
34932,
237,
164,
106,
255,
163,
119,
225,
38519,
163,
100,
108,
10310,
118,
49035,
118,
165,
95,
246,
38519,
562,
23737,
171,
120,
234,
43718,
229,
163,
255,
122,
164,
106,
255,
163,
119,
225,
38519,
163,
100,
108,
10310,
118,
50139,
201,
198,
11748,
651,
6601,
201,
198,
6738,
41927,
292,
13,
27530,
1330,
24604,
1843,
201,
198,
6738,
41927,
292,
13,
75,
6962,
1330,
406,
2257,
44,
11,
360,
1072,
11,
14258,
448,
201,
198,
6738,
308,
641,
320,
13,
27530,
1330,
9678,
17,
53,
721,
201,
198,
11748,
299,
32152,
355,
45941,
201,
198,
6738,
41927,
292,
1330,
20731,
201,
198,
201,
198,
201,
198,
27740,
62,
22510,
62,
30053,
796,
7982,
201,
198,
201,
198,
2,
13328,
242,
101,
12859,
236,
165,
247,
238,
26344,
114,
165,
243,
123,
41753,
99,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
86,
17,
85,
62,
19849,
796,
9678,
17,
53,
721,
13,
2220,
7,
1911,
14,
7890,
14,
10232,
40890,
62,
1238,
1084,
10879,
62,
940,
22866,
4943,
201,
198,
27432,
62,
15944,
11,
4512,
62,
23912,
1424,
796,
651,
6601,
13,
1136,
3237,
6601,
7,
201,
198,
220,
220,
220,
366,
19571,
7890,
14,
732,
1443,
12758,
13,
17752,
1600,
366,
19571,
7890,
14,
11265,
13,
17752,
4943,
201,
198,
201,
198,
201,
198,
9127,
62,
4868,
796,
17635,
201,
198,
23893,
53,
721,
62,
4868,
796,
17635,
201,
198,
77,
796,
1542,
201,
198,
73,
796,
657,
201,
198,
201,
198,
1640,
2912,
287,
4512,
62,
15944,
25,
201,
198,
220,
220,
220,
611,
7,
73,
4064,
1802,
6624,
657,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
4,
67,
286,
4064,
67,
2472,
1,
4064,
357,
73,
11,
18896,
7,
27432,
62,
15944,
22305,
201,
198,
220,
220,
220,
954,
62,
4868,
13,
33295,
7,
11925,
7,
23893,
4008,
201,
198,
220,
220,
220,
2912,
62,
35138,
796,
3308,
17,
53,
721,
7,
32707,
31805,
7,
23893,
11,
299,
828,
266,
17,
85,
62,
19849,
8,
201,
198,
220,
220,
220,
2912,
53,
721,
62,
4868,
13,
33295,
7,
23893,
62,
35138,
8,
201,
198,
220,
220,
220,
474,
15853,
352,
201,
198,
201,
198,
201,
198,
23893,
53,
721,
62,
4868,
796,
45941,
13,
18747,
7,
23893,
53,
721,
62,
4868,
8,
201,
198,
27432,
62,
23912,
1424,
796,
45941,
13,
18747,
7,
27432,
62,
23912,
1424,
8,
201,
198,
201,
198,
521,
1063,
796,
45941,
13,
283,
858,
7,
23893,
53,
721,
62,
4868,
13,
43358,
58,
15,
12962,
201,
198,
201,
198,
37659,
13,
25120,
13,
1477,
18137,
7,
521,
1063,
8,
201,
198,
7890,
796,
2912,
53,
721,
62,
4868,
58,
521,
1063,
60,
201,
198,
23912,
1424,
796,
4512,
62,
23912,
1424,
58,
521,
1063,
60,
201,
198,
201,
198,
201,
198,
23428,
2389,
62,
49302,
16437,
62,
4303,
43,
2043,
796,
657,
13,
16,
201,
198,
46803,
62,
2100,
72,
62,
82,
12629,
796,
493,
7,
23428,
2389,
62,
49302,
16437,
62,
4303,
43,
2043,
1635,
1366,
13,
43358,
58,
15,
12962,
201,
198,
87,
62,
27432,
796,
1366,
58,
21912,
46803,
62,
2100,
72,
62,
82,
12629,
60,
201,
198,
88,
62,
27432,
796,
14722,
58,
21912,
46803,
62,
2100,
72,
62,
82,
12629,
60,
201,
198,
4798,
7,
87,
62,
27432,
13,
43358,
58,
15,
4357,
2124,
62,
27432,
13,
43358,
58,
16,
4357,
2124,
62,
27432,
13,
43358,
58,
17,
12962,
201,
198,
88,
62,
27432,
796,
651,
6601,
13,
1136,
3198,
21352,
7,
88,
62,
27432,
8,
201,
198,
201,
198,
87,
62,
2100,
796,
1366,
58,
12,
46803,
62,
2100,
72,
62,
82,
12629,
47715,
201,
198,
88,
62,
2100,
796,
14722,
58,
12,
46803,
62,
2100,
72,
62,
82,
12629,
47715,
201,
198,
88,
62,
2100,
796,
651,
6601,
13,
1136,
3198,
21352,
7,
88,
62,
2100,
8,
201,
198,
201,
198,
7061,
6,
32284,
44077,
9104,
32501,
7061,
6,
201,
198,
562,
10167,
796,
24604,
1843,
3419,
201,
198,
562,
10167,
13,
2860,
7,
43,
2257,
44,
7,
12762,
11,
14916,
11639,
38006,
71,
3256,
5128,
62,
43358,
16193,
201,
198,
220,
220,
220,
2124,
62,
27432,
13,
43358,
58,
16,
4357,
2124,
62,
27432,
13,
43358,
58,
17,
60,
22305,
201,
198,
562,
10167,
13,
2860,
7,
26932,
448,
7,
15,
13,
17,
4008,
201,
198,
562,
10167,
13,
2860,
7,
35,
1072,
7,
17,
11,
14916,
11639,
4215,
9806,
6,
4008,
201,
198,
562,
10167,
13,
5589,
576,
7,
22462,
11639,
66,
2397,
12409,
62,
19692,
298,
28338,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6436,
7509,
11639,
324,
321,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20731,
28,
17816,
4134,
23843,
3256,
366,
2611,
68,
8973,
8,
201,
198,
562,
10167,
13,
49736,
3419,
201,
198,
201,
198,
562,
10167,
13,
11147,
7,
87,
62,
27432,
11,
331,
62,
27432,
11,
21201,
62,
7890,
16193,
87,
62,
2100,
11,
331,
62,
2100,
828,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
36835,
82,
28,
1065,
11,
15458,
62,
7857,
28,
12762,
8,
201,
198,
201,
198,
2,
27729,
293,
62,
7753,
796,
1280,
10786,
43,
2257,
44,
62,
732,
1443,
12758,
62,
1238,
13,
19849,
13,
79,
1134,
41707,
39346,
11537,
201,
198,
2,
2298,
293,
13,
39455,
7,
562,
10167,
11,
27729,
293,
62,
7753,
8,
201,
198,
2,
2298,
293,
62,
7753,
13,
19836,
3419,
201,
198
] | 2.125131 | 951 |
"""Provides methods for text cleanup."""
|
[
37811,
15946,
1460,
5050,
329,
2420,
27425,
526,
15931,
198
] | 4.1 | 10 |
import logging
from contextlib import suppress
from datetime import datetime
from typing_extensions import Self
from ._util import _regex_it
from .api import _APIClient
from .base import ClubObject
from .config import get_from_cache, set_in_cache
from .constants import _TMIO
from .errors import TMIOException
from .player import Player
_log = logging.getLogger(__name__)
__all__ = (
"ClubMember",
"ClubActivity",
"Club",
)
class ClubMember(ClubObject):
"""
.. versionadded :: 0.5
Represents a member of a club.
Parameters
----------
name : str
The name of the player.
tag : str | None
The club tab of the player.
player_id : str
The ID of the player.
join_time : datetime
When the player joined the club.
role : str
The role of the player inside the club
vip : bool
Whether the player is a VIP.
"""
@classmethod
async def player(self) -> Player:
"""
.. versionadded :: 0.5
Gets the player who is this specific club member.
(IDK wtf to put here xD)
Returns
-------
:class:`Player`
The player who is the club member.
Raises
------
:class:`TMIOException`
If there is a problem with the TMIO API.
"""
return await Player.get_player(self.player_id)
class ClubActivity(ClubObject):
"""
.. versionadded :: 0.5
Represents an activity of the club.
Parameters
----------
name : str
The name of the activity.
type : str
What type of activity it is.
activity_id : int
The activity's ID.
target_activity_id : int
The activity's target ID.
position : int
The position of the activity within the club.
public : bool
Whether the activity is public or club-member only.
media : str
The media of the activity.
password : bool
Whether the activity is password-protected.
"""
@classmethod
class Club(ClubObject):
"""
Represents a Club in Trackmania 2020.
Parameters
----------
background : str
The club's background url.
created_at : datetime
The club's created date.
decal : str
The club decal URL
description : str
The club's description
featured : bool
Whether the club is featured or not.
club_id : int
The club's ID.
logo : str
The club's logo URL.
member_count : int
The club's member count.
name : str
The club's name.
popularity : int
The club popularity level
state : str
The club's state.
Is either Private or Public.
tag : str
The club tag
"""
@classmethod
@classmethod
async def get_club(cls: Self, club_id: int) -> Self | None:
"""
.. versionadded :: 0.5
Gets a club based on its club id.
Returns None if the `club_id` is 0
Parameters
----------
club_id : int
The club's id.
Returns
-------
:class:`Club` | None
Returns a `Club` class if a club exists with the given class id. Otherwise returns None.
Raises
------
:class:`TMIOException`
If the club doesn't exist or if an unexpected error occurs on TMIO's side.
"""
if club_id == 0:
return None
club_data = get_from_cache(f"club:{club_id}")
if club_data is not None:
return cls._from_dict(club_data)
api_client = _APIClient()
club_data = await api_client.get(_TMIO.build([_TMIO.TABS.CLUB, club_id]))
await api_client.close()
with suppress(KeyError, TypeError):
raise TMIOException(club_data["error"])
return cls._from_dict(club_data)
@classmethod
async def list_clubs(cls: Self, page: int = 0) -> list[Self]:
"""
.. versionadded :: 0.5
Lists all the popular clubs.
Parameters
----------
page : int, optional
The page bumber, by default 0
Returns
-------
:class:`list[Club]`
The list of clubs on that specific page.
"""
clubs = []
club_data = get_from_cache(f"clubs:{page}")
if club_data is not None:
for club in club_data.get("clubs", []):
clubs.append(cls._from_dict(club))
return clubs
api_client = _APIClient()
club_data = await api_client.get(
_TMIO.build([_TMIO.TABS.CLUBS, page]) + "?sort=popularity"
)
await api_client.close()
set_in_cache(f"clubs:{page}", club_data, ex=43200)
for club in club_data.get("clubs", []):
clubs.append(cls._from_dict(club))
return clubs
async def get_activities(self: Self, page: int = 0) -> list[ClubActivity]:
"""
.. versionadded :: 0.5
Gets the activities of the club.
Parameters
----------
page : int
The page number, by default 0
Returns
-------
:class:`list[ClubActivity]`
The list of activities of the club.
"""
club_activities = []
all_activities = get_from_cache(f"club_activities:{self.club_id}:{page}")
if all_activities is not None:
for activity in all_activities:
club_activities.append(ClubActivity._from_dict(activity))
return club_activities
api_client = _APIClient()
all_activities = await api_client.get(
_TMIO.build([_TMIO.TABS.CLUB, self.club_id, _TMIO.TABS.ACTIVITIES, page])
)
await api_client.close()
with suppress(KeyError, TypeError):
raise TMIOException(all_activities["error"])
for activity in all_activities.get("activities", []):
club_activities.append(ClubActivity._from_dict(activity))
return club_activities
async def get_members(self: Self, page: int = 0) -> list[ClubMember]:
"""
.. versionadded :: 0.5
Gets the members of the club.
Parameters
----------
page : int, optional
The page number, by default 0
Returns
-------
:class:`list[Player]`
The list of members of the club.
"""
player_list = []
club_members = get_from_cache(f"club_members:{self.club_id}:{page}")
if club_members is not None:
for member in club_members.get("members", []):
player_list.append(ClubMember._from_dict(member))
return player_list
api_client = _APIClient()
club_members = await api_client.get(
_TMIO.build([_TMIO.TABS.CLUB, self.club_id, _TMIO.TABS.MEMBERS, page])
)
await api_client.close()
for member in club_members.get("members", []):
player_list.append(ClubMember._from_dict(member))
return player_list
async def creator(self) -> Player:
"""
.. versionadded :: 0.5
Gets the creator of the club.
Returns
-------
:class:`Player`
The creator of the club.
"""
return await Player.get_player(self.creator_id)
|
[
11748,
18931,
198,
6738,
4732,
8019,
1330,
18175,
198,
6738,
4818,
8079,
1330,
4818,
8079,
198,
198,
6738,
19720,
62,
2302,
5736,
1330,
12189,
198,
198,
6738,
47540,
22602,
1330,
4808,
260,
25636,
62,
270,
198,
6738,
764,
15042,
1330,
4808,
2969,
2149,
75,
1153,
198,
6738,
764,
8692,
1330,
6289,
10267,
198,
6738,
764,
11250,
1330,
651,
62,
6738,
62,
23870,
11,
900,
62,
259,
62,
23870,
198,
6738,
764,
9979,
1187,
1330,
4808,
51,
8895,
46,
198,
6738,
764,
48277,
1330,
309,
8895,
46,
16922,
198,
6738,
764,
7829,
1330,
7853,
198,
198,
62,
6404,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
198,
198,
834,
439,
834,
796,
357,
198,
220,
220,
220,
366,
42350,
27608,
1600,
198,
220,
220,
220,
366,
42350,
16516,
1600,
198,
220,
220,
220,
366,
42350,
1600,
198,
8,
628,
198,
4871,
6289,
27608,
7,
42350,
10267,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11485,
2196,
29373,
7904,
657,
13,
20,
628,
220,
220,
220,
1432,
6629,
257,
2888,
286,
257,
3430,
13,
628,
220,
220,
220,
40117,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
1438,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
1438,
286,
262,
2137,
13,
198,
220,
220,
220,
7621,
1058,
965,
930,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
7400,
286,
262,
2137,
13,
198,
220,
220,
220,
2137,
62,
312,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
4522,
286,
262,
2137,
13,
198,
220,
220,
220,
4654,
62,
2435,
1058,
4818,
8079,
198,
220,
220,
220,
220,
220,
220,
220,
1649,
262,
2137,
5399,
262,
3430,
13,
198,
220,
220,
220,
2597,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
2597,
286,
262,
2137,
2641,
262,
3430,
198,
220,
220,
220,
410,
541,
1058,
20512,
198,
220,
220,
220,
220,
220,
220,
220,
10127,
262,
2137,
318,
257,
24791,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
4871,
24396,
628,
220,
220,
220,
30351,
825,
2137,
7,
944,
8,
4613,
7853,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
11485,
2196,
29373,
7904,
657,
13,
20,
628,
220,
220,
220,
220,
220,
220,
220,
29620,
262,
2137,
508,
318,
428,
2176,
3430,
2888,
13,
198,
220,
220,
220,
220,
220,
220,
220,
357,
2389,
42,
266,
27110,
284,
1234,
994,
2124,
35,
8,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
198,
220,
220,
220,
220,
220,
220,
220,
35656,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
14140,
63,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
2137,
508,
318,
262,
3430,
2888,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
198,
220,
220,
220,
220,
220,
220,
220,
40103,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
51,
8895,
46,
16922,
63,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1002,
612,
318,
257,
1917,
351,
262,
309,
8895,
46,
7824,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
25507,
7853,
13,
1136,
62,
7829,
7,
944,
13,
7829,
62,
312,
8,
628,
198,
4871,
6289,
16516,
7,
42350,
10267,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11485,
2196,
29373,
7904,
657,
13,
20,
628,
220,
220,
220,
1432,
6629,
281,
3842,
286,
262,
3430,
13,
628,
220,
220,
220,
40117,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
1438,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
1438,
286,
262,
3842,
13,
198,
220,
220,
220,
2099,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1867,
2099,
286,
3842,
340,
318,
13,
198,
220,
220,
220,
3842,
62,
312,
1058,
493,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3842,
338,
4522,
13,
198,
220,
220,
220,
2496,
62,
21797,
62,
312,
1058,
493,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3842,
338,
2496,
4522,
13,
198,
220,
220,
220,
2292,
1058,
493,
198,
220,
220,
220,
220,
220,
220,
220,
383,
2292,
286,
262,
3842,
1626,
262,
3430,
13,
198,
220,
220,
220,
1171,
1058,
20512,
198,
220,
220,
220,
220,
220,
220,
220,
10127,
262,
3842,
318,
1171,
393,
3430,
12,
19522,
691,
13,
198,
220,
220,
220,
2056,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
2056,
286,
262,
3842,
13,
198,
220,
220,
220,
9206,
1058,
20512,
198,
220,
220,
220,
220,
220,
220,
220,
10127,
262,
3842,
318,
9206,
12,
24326,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
4871,
24396,
628,
198,
4871,
6289,
7,
42350,
10267,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1432,
6629,
257,
6289,
287,
17762,
45733,
12131,
13,
628,
220,
220,
220,
40117,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
4469,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
338,
4469,
19016,
13,
198,
220,
220,
220,
2727,
62,
265,
1058,
4818,
8079,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
338,
2727,
3128,
13,
198,
220,
220,
220,
875,
282,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
875,
282,
10289,
198,
220,
220,
220,
6764,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
338,
6764,
198,
220,
220,
220,
8096,
1058,
20512,
198,
220,
220,
220,
220,
220,
220,
220,
10127,
262,
3430,
318,
8096,
393,
407,
13,
198,
220,
220,
220,
3430,
62,
312,
1058,
493,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
338,
4522,
13,
198,
220,
220,
220,
11112,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
338,
11112,
10289,
13,
198,
220,
220,
220,
2888,
62,
9127,
1058,
493,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
338,
2888,
954,
13,
198,
220,
220,
220,
1438,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
338,
1438,
13,
198,
220,
220,
220,
11533,
1058,
493,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
11533,
1241,
198,
220,
220,
220,
1181,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
338,
1181,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1148,
2035,
15348,
393,
5094,
13,
198,
220,
220,
220,
7621,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
7621,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
4871,
24396,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
30351,
825,
651,
62,
18664,
7,
565,
82,
25,
12189,
11,
3430,
62,
312,
25,
493,
8,
4613,
12189,
930,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
11485,
2196,
29373,
7904,
657,
13,
20,
628,
220,
220,
220,
220,
220,
220,
220,
29620,
257,
3430,
1912,
319,
663,
3430,
4686,
13,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
6045,
611,
262,
4600,
18664,
62,
312,
63,
318,
657,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
198,
220,
220,
220,
220,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
220,
220,
220,
220,
3430,
62,
312,
1058,
493,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
3430,
338,
4686,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
198,
220,
220,
220,
220,
220,
220,
220,
35656,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
42350,
63,
930,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16409,
257,
4600,
42350,
63,
1398,
611,
257,
3430,
7160,
351,
262,
1813,
1398,
4686,
13,
15323,
5860,
6045,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
198,
220,
220,
220,
220,
220,
220,
220,
40103,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
51,
8895,
46,
16922,
63,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1002,
262,
3430,
1595,
470,
2152,
393,
611,
281,
10059,
4049,
8833,
319,
309,
8895,
46,
338,
1735,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3430,
62,
312,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
628,
220,
220,
220,
220,
220,
220,
220,
3430,
62,
7890,
796,
651,
62,
6738,
62,
23870,
7,
69,
1,
18664,
29164,
18664,
62,
312,
92,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3430,
62,
7890,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
537,
82,
13557,
6738,
62,
11600,
7,
18664,
62,
7890,
8,
628,
220,
220,
220,
220,
220,
220,
220,
40391,
62,
16366,
796,
4808,
2969,
2149,
75,
1153,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3430,
62,
7890,
796,
25507,
40391,
62,
16366,
13,
1136,
28264,
51,
8895,
46,
13,
11249,
26933,
62,
51,
8895,
46,
13,
5603,
4462,
13,
5097,
10526,
11,
3430,
62,
312,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
25507,
40391,
62,
16366,
13,
19836,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
351,
18175,
7,
9218,
12331,
11,
5994,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
309,
8895,
46,
16922,
7,
18664,
62,
7890,
14692,
18224,
8973,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
537,
82,
13557,
6738,
62,
11600,
7,
18664,
62,
7890,
8,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
30351,
825,
1351,
62,
18664,
82,
7,
565,
82,
25,
12189,
11,
2443,
25,
493,
796,
657,
8,
4613,
1351,
58,
24704,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
11485,
2196,
29373,
7904,
657,
13,
20,
628,
220,
220,
220,
220,
220,
220,
220,
44968,
477,
262,
2968,
9784,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
198,
220,
220,
220,
220,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
220,
220,
220,
220,
2443,
1058,
493,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
2443,
275,
4494,
11,
416,
4277,
657,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
198,
220,
220,
220,
220,
220,
220,
220,
35656,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
4868,
58,
42350,
60,
63,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1351,
286,
9784,
319,
326,
2176,
2443,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
9784,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
3430,
62,
7890,
796,
651,
62,
6738,
62,
23870,
7,
69,
1,
18664,
82,
29164,
7700,
92,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3430,
62,
7890,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
3430,
287,
3430,
62,
7890,
13,
1136,
7203,
18664,
82,
1600,
17635,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9784,
13,
33295,
7,
565,
82,
13557,
6738,
62,
11600,
7,
18664,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
9784,
628,
220,
220,
220,
220,
220,
220,
220,
40391,
62,
16366,
796,
4808,
2969,
2149,
75,
1153,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3430,
62,
7890,
796,
25507,
40391,
62,
16366,
13,
1136,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
51,
8895,
46,
13,
11249,
26933,
62,
51,
8895,
46,
13,
5603,
4462,
13,
5097,
52,
4462,
11,
2443,
12962,
1343,
366,
30,
30619,
28,
12924,
33737,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
25507,
40391,
62,
16366,
13,
19836,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
900,
62,
259,
62,
23870,
7,
69,
1,
18664,
82,
29164,
7700,
92,
1600,
3430,
62,
7890,
11,
409,
28,
3559,
2167,
8,
628,
220,
220,
220,
220,
220,
220,
220,
329,
3430,
287,
3430,
62,
7890,
13,
1136,
7203,
18664,
82,
1600,
17635,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9784,
13,
33295,
7,
565,
82,
13557,
6738,
62,
11600,
7,
18664,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
9784,
628,
220,
220,
220,
30351,
825,
651,
62,
15791,
871,
7,
944,
25,
12189,
11,
2443,
25,
493,
796,
657,
8,
4613,
1351,
58,
42350,
16516,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
11485,
2196,
29373,
7904,
657,
13,
20,
628,
220,
220,
220,
220,
220,
220,
220,
29620,
262,
4568,
286,
262,
3430,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
198,
220,
220,
220,
220,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
220,
220,
220,
220,
2443,
1058,
493,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
2443,
1271,
11,
416,
4277,
657,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
198,
220,
220,
220,
220,
220,
220,
220,
35656,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
4868,
58,
42350,
16516,
60,
63,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1351,
286,
4568,
286,
262,
3430,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3430,
62,
15791,
871,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
477,
62,
15791,
871,
796,
651,
62,
6738,
62,
23870,
7,
69,
1,
18664,
62,
15791,
871,
29164,
944,
13,
18664,
62,
312,
92,
29164,
7700,
92,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
611,
477,
62,
15791,
871,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
3842,
287,
477,
62,
15791,
871,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3430,
62,
15791,
871,
13,
33295,
7,
42350,
16516,
13557,
6738,
62,
11600,
7,
21797,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
3430,
62,
15791,
871,
628,
220,
220,
220,
220,
220,
220,
220,
40391,
62,
16366,
796,
4808,
2969,
2149,
75,
1153,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
477,
62,
15791,
871,
796,
25507,
40391,
62,
16366,
13,
1136,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
51,
8895,
46,
13,
11249,
26933,
62,
51,
8895,
46,
13,
5603,
4462,
13,
5097,
10526,
11,
2116,
13,
18664,
62,
312,
11,
4808,
51,
8895,
46,
13,
5603,
4462,
13,
10659,
3824,
30383,
11,
2443,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
25507,
40391,
62,
16366,
13,
19836,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
351,
18175,
7,
9218,
12331,
11,
5994,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
309,
8895,
46,
16922,
7,
439,
62,
15791,
871,
14692,
18224,
8973,
8,
628,
220,
220,
220,
220,
220,
220,
220,
329,
3842,
287,
477,
62,
15791,
871,
13,
1136,
7203,
15791,
871,
1600,
17635,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3430,
62,
15791,
871,
13,
33295,
7,
42350,
16516,
13557,
6738,
62,
11600,
7,
21797,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
3430,
62,
15791,
871,
628,
220,
220,
220,
30351,
825,
651,
62,
30814,
7,
944,
25,
12189,
11,
2443,
25,
493,
796,
657,
8,
4613,
1351,
58,
42350,
27608,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
11485,
2196,
29373,
7904,
657,
13,
20,
628,
220,
220,
220,
220,
220,
220,
220,
29620,
262,
1866,
286,
262,
3430,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
198,
220,
220,
220,
220,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
220,
220,
220,
220,
2443,
1058,
493,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
2443,
1271,
11,
416,
4277,
657,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
198,
220,
220,
220,
220,
220,
220,
220,
35656,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
4868,
58,
14140,
60,
63,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1351,
286,
1866,
286,
262,
3430,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2137,
62,
4868,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
3430,
62,
30814,
796,
651,
62,
6738,
62,
23870,
7,
69,
1,
18664,
62,
30814,
29164,
944,
13,
18664,
62,
312,
92,
29164,
7700,
92,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
611,
3430,
62,
30814,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2888,
287,
3430,
62,
30814,
13,
1136,
7203,
30814,
1600,
17635,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2137,
62,
4868,
13,
33295,
7,
42350,
27608,
13557,
6738,
62,
11600,
7,
19522,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2137,
62,
4868,
628,
220,
220,
220,
220,
220,
220,
220,
40391,
62,
16366,
796,
4808,
2969,
2149,
75,
1153,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3430,
62,
30814,
796,
25507,
40391,
62,
16366,
13,
1136,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
51,
8895,
46,
13,
11249,
26933,
62,
51,
8895,
46,
13,
5603,
4462,
13,
5097,
10526,
11,
2116,
13,
18664,
62,
312,
11,
4808,
51,
8895,
46,
13,
5603,
4462,
13,
44,
3620,
33,
4877,
11,
2443,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
25507,
40391,
62,
16366,
13,
19836,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
329,
2888,
287,
3430,
62,
30814,
13,
1136,
7203,
30814,
1600,
17635,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2137,
62,
4868,
13,
33295,
7,
42350,
27608,
13557,
6738,
62,
11600,
7,
19522,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
2137,
62,
4868,
628,
220,
220,
220,
30351,
825,
13172,
7,
944,
8,
4613,
7853,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
11485,
2196,
29373,
7904,
657,
13,
20,
628,
220,
220,
220,
220,
220,
220,
220,
29620,
262,
13172,
286,
262,
3430,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
198,
220,
220,
220,
220,
220,
220,
220,
35656,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
14140,
63,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
13172,
286,
262,
3430,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
25507,
7853,
13,
1136,
62,
7829,
7,
944,
13,
45382,
62,
312,
8,
198
] | 2.252206 | 3,287 |
import os
import json
import torch
import numpy as np
from model import VAENAR, ScheduledOptim
|
[
11748,
28686,
198,
11748,
33918,
198,
198,
11748,
28034,
198,
11748,
299,
32152,
355,
45941,
198,
198,
6738,
2746,
1330,
13753,
1677,
1503,
11,
27774,
6309,
27871,
320,
628,
628,
198
] | 3.258065 | 31 |
from twisted.application import internet, service
from twisted.internet import reactor
from txtrader.tcpserver import serverFactory
from txtrader.webserver import webServerFactory
from txtrader.rtx import RTX
if __name__ == '__main__':
main()
|
[
6738,
19074,
13,
31438,
1330,
5230,
11,
2139,
198,
6738,
19074,
13,
37675,
1330,
21905,
198,
198,
6738,
256,
742,
81,
5067,
13,
23047,
862,
18497,
1330,
4382,
22810,
198,
6738,
256,
742,
81,
5067,
13,
732,
1443,
18497,
1330,
3992,
10697,
22810,
198,
198,
6738,
256,
742,
81,
5067,
13,
17034,
87,
1330,
45877,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198
] | 3.36 | 75 |
from collections import namedtuple
from requests.structures import CaseInsensitiveDict
from boltons.typeutils import make_sentinel
class ReadOnlyContainer(object):
"""
Base class for read-only property containers.
"""
def __init__(self, **fields):
"""
Initialize the property container from the given field-value pairs.
:param fields: container field-value pairs as keyworded arguments.
"""
self._factory = namedtuple(
typename='read_only_container',
field_names=fields.keys()
)
self._container = self._factory(**fields)
|
[
6738,
17268,
1330,
3706,
83,
29291,
198,
198,
6738,
7007,
13,
7249,
942,
1330,
8913,
20376,
18464,
35,
713,
198,
6738,
18100,
684,
13,
4906,
26791,
1330,
787,
62,
34086,
20538,
628,
198,
4871,
4149,
10049,
29869,
7,
15252,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
7308,
1398,
329,
1100,
12,
8807,
3119,
16472,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
12429,
25747,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
20768,
1096,
262,
3119,
9290,
422,
262,
1813,
2214,
12,
8367,
14729,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
7032,
25,
9290,
2214,
12,
8367,
14729,
355,
21179,
276,
7159,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
69,
9548,
796,
3706,
83,
29291,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2170,
12453,
11639,
961,
62,
8807,
62,
34924,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2214,
62,
14933,
28,
25747,
13,
13083,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
34924,
796,
2116,
13557,
69,
9548,
7,
1174,
25747,
8,
628,
198
] | 2.740088 | 227 |
import csv, datetime
with open('tooldesc.csv') as td:
rdr = csv.reader(td)
items = list(rdr)
items = [convertDate(item) for item in items]
with open('tooldesc2.csv', 'w', newline='') as td:
wrt = csv.writer(td)
for item in items:
wrt.writerow(item)
|
[
11748,
269,
21370,
11,
4818,
8079,
198,
198,
4480,
1280,
10786,
1462,
727,
3798,
13,
40664,
11537,
355,
41560,
25,
198,
220,
220,
220,
374,
7109,
796,
269,
21370,
13,
46862,
7,
8671,
8,
198,
220,
220,
220,
3709,
796,
1351,
7,
4372,
81,
8,
198,
198,
23814,
796,
685,
1102,
1851,
10430,
7,
9186,
8,
329,
2378,
287,
3709,
60,
198,
198,
4480,
1280,
10786,
1462,
727,
3798,
17,
13,
40664,
3256,
705,
86,
3256,
649,
1370,
28,
7061,
8,
355,
41560,
25,
198,
220,
220,
220,
1319,
83,
796,
269,
21370,
13,
16002,
7,
8671,
8,
198,
220,
220,
220,
329,
2378,
287,
3709,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1319,
83,
13,
16002,
322,
7,
9186,
8,
198
] | 2.225806 | 124 |
"""
将mask rcnn转成shapefile的一些函数
"""
from osgeo import ogr, gdal, osr
import cv2
import numpy as np
def create_geom():
"""用于测试,生成一个wkt"""
multipolygon = ogr.Geometry(ogr.wkbMultiPolygon)
polygon = ogr.Geometry(ogr.wkbPolygon)
ring = ogr.Geometry(ogr.wkbLinearRing)
ring.AddPoint(1179091.1646903288, 712782.8838459781)
ring.AddPoint(1161053.0218226474, 667456.2684348812)
ring.AddPoint(1218405.0658121984, 721108.1805541387)
ring.AddPoint(1179091.1646903288, 712782.8838459781)
polygon.AddGeometry(ring)
multipolygon.AddGeometry(polygon)
polygon1 = ogr.Geometry(ogr.wkbPolygon)
ring1 = ogr.Geometry(ogr.wkbLinearRing)
ring1.AddPoint(1214704.933941905, 641092.8288590391)
ring1.AddPoint(1228580.428455506, 682719.3123998424)
ring1.AddPoint(1218405.0658121984, 721108.1805541387)
ring1.AddPoint(1214704.933941905, 641092.8288590391)
polygon1.AddGeometry(ring1)
multipolygon.AddGeometry(polygon1)
return multipolygon
def reference_of_tiff(input_tiff_path):
"""
获取给定tiff图像的地理坐标系和投影坐标系
:param input_tiff_path: tiff图像的路径
:return: 投影坐标系,地理坐标系
"""
tiff_data = gdal.Open(input_tiff_path)
prosrs = osr.SpatialReference()
prosrs.ImportFromWkt(tiff_data.GetProjection())
geosrs = prosrs.CloneGeogCS()
return prosrs, geosrs
def convert_geom_to_shp(input_geo, outputfile_name='untitled.shp', geo_type='multipolygon', spatialref=None):
"""
仅支持multipolygon类型转shapefile
:param spatialref: 空间参考坐标系,osr.SpatialReference()类型
:param outputfile_name: 输出文件的名字
:param input_geo: wkt格式的polygon
:return:
"""
if spatialref is None:
spatialref = osr.SpatialReference()
spatialref.ImportFromEPSG(4326)
gdal.SetConfigOption("GDAL_FILENAME_IS_UTF8", "YES")
gdal.SetConfigOption("SHAPE_ENCODING", "GBK")
driver = ogr.GetDriverByName("ESRI Shapefile")
if geo_type == 'multipolygon':
geometry_count = input_geo.GetGeometryCount()
output_shpfile = driver.CreateDataSource(outputfile_name)
dstlayer = output_shpfile.CreateLayer("layer", spatialref, geom_type=ogr.wkbMultiPolygon)
for i in range(geometry_count):
polygon = input_geo.GetGeometryRef(i)
feature = ogr.Feature(dstlayer.GetLayerDefn())
feature.SetGeometry(polygon)
dstlayer.CreateFeature(feature)
# feature.Destroy()
# output_shpfile.Destroy()
def convert_xy_from_img_to_geo(x, y, reference=None):
"""
将图上坐标转成地理坐标或者投影坐标
:param x: 计算机中的x,应该是列
:param y: 计算机中的y,应该是行
:param reference: GDAL的六参数,可以通过dataset.GetGeoTransform()获取,
这里的dataset = gdal.Open(file_name) file_name表示tif格式图片的路径,带坐标的tiff格式
:return:
"""
row = y
col = x
px = reference[0] + col * reference[1] + row * reference[2]
py = reference[3] + col * reference[4] + row * reference[5]
return px, py
"""if __name__ == '__main__':
poly = create_geom()
print(poly.ExportToWkt())
print(poly.GetGeometryCount())
print(poly.GetGeometryRef(1))
tiff_path = 'D:/codes/python/RS_Test/test.tif'
prosrs, geosrs = reference_of_tiff(tiff_path)
convert_geom_to_shp(poly, spatialref=geosrs)
"""
|
[
37811,
198,
49546,
27932,
48321,
20471,
164,
121,
105,
22755,
238,
43358,
7753,
21410,
31660,
12859,
249,
49035,
121,
46763,
108,
198,
37811,
198,
198,
6738,
28686,
469,
78,
1330,
267,
2164,
11,
308,
31748,
11,
267,
27891,
198,
11748,
269,
85,
17,
198,
11748,
299,
32152,
355,
45941,
628,
198,
4299,
2251,
62,
469,
296,
33529,
198,
220,
220,
220,
37227,
18796,
101,
12859,
236,
38184,
233,
46237,
243,
171,
120,
234,
37955,
22755,
238,
31660,
10310,
103,
86,
21841,
37811,
198,
220,
220,
220,
18540,
3366,
14520,
796,
267,
2164,
13,
10082,
15748,
7,
519,
81,
13,
86,
32812,
29800,
34220,
14520,
8,
198,
220,
220,
220,
7514,
14520,
796,
267,
2164,
13,
10082,
15748,
7,
519,
81,
13,
86,
32812,
34220,
14520,
8,
198,
220,
220,
220,
5858,
796,
267,
2164,
13,
10082,
15748,
7,
519,
81,
13,
86,
32812,
14993,
451,
39687,
8,
198,
220,
220,
220,
5858,
13,
4550,
12727,
7,
1157,
3720,
2931,
16,
13,
23237,
3388,
3070,
25270,
11,
767,
1065,
46519,
13,
3459,
2548,
2231,
32196,
16,
8,
198,
220,
220,
220,
5858,
13,
4550,
12727,
7,
18298,
940,
4310,
13,
2999,
1507,
1828,
2414,
4524,
11,
718,
3134,
29228,
13,
2075,
5705,
2682,
3459,
1065,
8,
198,
220,
220,
220,
5858,
13,
4550,
12727,
7,
1065,
1507,
26598,
13,
15,
38431,
1065,
28296,
11,
767,
2481,
15711,
13,
1507,
2713,
4051,
1485,
5774,
8,
198,
220,
220,
220,
5858,
13,
4550,
12727,
7,
1157,
3720,
2931,
16,
13,
23237,
3388,
3070,
25270,
11,
767,
1065,
46519,
13,
3459,
2548,
2231,
32196,
16,
8,
198,
220,
220,
220,
7514,
14520,
13,
4550,
10082,
15748,
7,
1806,
8,
198,
220,
220,
220,
18540,
3366,
14520,
13,
4550,
10082,
15748,
7,
35428,
14520,
8,
198,
220,
220,
220,
7514,
14520,
16,
796,
267,
2164,
13,
10082,
15748,
7,
519,
81,
13,
86,
32812,
34220,
14520,
8,
198,
220,
220,
220,
5858,
16,
796,
267,
2164,
13,
10082,
15748,
7,
519,
81,
13,
86,
32812,
14993,
451,
39687,
8,
198,
220,
220,
220,
5858,
16,
13,
4550,
12727,
7,
1065,
1415,
32869,
13,
24,
2091,
5824,
1129,
2713,
11,
5598,
940,
5892,
13,
23,
25270,
36993,
37710,
8,
198,
220,
220,
220,
5858,
16,
13,
4550,
12727,
7,
1065,
26279,
1795,
13,
40173,
2231,
22730,
21,
11,
8257,
1983,
1129,
13,
18,
10163,
2079,
5705,
1731,
8,
198,
220,
220,
220,
5858,
16,
13,
4550,
12727,
7,
1065,
1507,
26598,
13,
15,
38431,
1065,
28296,
11,
767,
2481,
15711,
13,
1507,
2713,
4051,
1485,
5774,
8,
198,
220,
220,
220,
5858,
16,
13,
4550,
12727,
7,
1065,
1415,
32869,
13,
24,
2091,
5824,
1129,
2713,
11,
5598,
940,
5892,
13,
23,
25270,
36993,
37710,
8,
198,
220,
220,
220,
7514,
14520,
16,
13,
4550,
10082,
15748,
7,
1806,
16,
8,
198,
220,
220,
220,
18540,
3366,
14520,
13,
4550,
10082,
15748,
7,
35428,
14520,
16,
8,
198,
220,
220,
220,
1441,
18540,
3366,
14520,
628,
198,
4299,
4941,
62,
1659,
62,
83,
733,
7,
15414,
62,
83,
733,
62,
6978,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
5525,
236,
115,
20998,
244,
163,
119,
247,
22522,
248,
83,
733,
32368,
122,
161,
225,
237,
21410,
28839,
108,
49426,
228,
161,
251,
238,
43718,
229,
163,
111,
119,
161,
240,
234,
162,
232,
243,
37605,
109,
161,
251,
238,
43718,
229,
163,
111,
119,
198,
220,
220,
220,
1058,
17143,
5128,
62,
83,
733,
62,
6978,
25,
256,
733,
32368,
122,
161,
225,
237,
21410,
164,
115,
107,
36181,
226,
198,
220,
220,
220,
1058,
7783,
25,
10545,
232,
243,
37605,
109,
161,
251,
238,
43718,
229,
163,
111,
119,
171,
120,
234,
28839,
108,
49426,
228,
161,
251,
238,
43718,
229,
163,
111,
119,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
256,
733,
62,
7890,
796,
308,
31748,
13,
11505,
7,
15414,
62,
83,
733,
62,
6978,
8,
198,
220,
220,
220,
10360,
3808,
796,
267,
27891,
13,
4561,
34961,
26687,
3419,
198,
220,
220,
220,
10360,
3808,
13,
20939,
4863,
54,
21841,
7,
83,
733,
62,
7890,
13,
3855,
16775,
295,
28955,
198,
220,
220,
220,
4903,
418,
3808,
796,
10360,
3808,
13,
2601,
505,
10082,
519,
7902,
3419,
198,
220,
220,
220,
1441,
10360,
3808,
11,
4903,
418,
3808,
628,
198,
4299,
10385,
62,
469,
296,
62,
1462,
62,
1477,
79,
7,
15414,
62,
469,
78,
11,
5072,
7753,
62,
3672,
11639,
2797,
7803,
13,
1477,
79,
3256,
40087,
62,
4906,
11639,
16680,
541,
3366,
14520,
3256,
21739,
5420,
28,
14202,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
20015,
227,
162,
242,
107,
162,
234,
223,
16680,
541,
3366,
14520,
163,
109,
119,
161,
252,
233,
164,
121,
105,
43358,
7753,
198,
220,
220,
220,
1058,
17143,
21739,
5420,
25,
13328,
102,
118,
29785,
112,
20998,
224,
32003,
225,
161,
251,
238,
43718,
229,
163,
111,
119,
171,
120,
234,
418,
81,
13,
4561,
34961,
26687,
3419,
163,
109,
119,
161,
252,
233,
198,
220,
220,
220,
1058,
17143,
5072,
7753,
62,
3672,
25,
5525,
122,
241,
49035,
118,
23877,
229,
20015,
114,
21410,
28938,
235,
27764,
245,
198,
220,
220,
220,
1058,
17143,
5128,
62,
469,
78,
25,
266,
21841,
43718,
120,
28156,
237,
21410,
35428,
14520,
198,
220,
220,
220,
1058,
7783,
25,
220,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
21739,
5420,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
21739,
5420,
796,
267,
27891,
13,
4561,
34961,
26687,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
21739,
5420,
13,
20939,
4863,
36,
3705,
38,
7,
3559,
2075,
8,
198,
220,
220,
220,
308,
31748,
13,
7248,
16934,
19722,
7203,
45113,
1847,
62,
46700,
1677,
10067,
62,
1797,
62,
48504,
23,
1600,
366,
43335,
4943,
198,
220,
220,
220,
308,
31748,
13,
7248,
16934,
19722,
7203,
9693,
45721,
62,
24181,
3727,
2751,
1600,
366,
4579,
42,
4943,
198,
220,
220,
220,
4639,
796,
267,
2164,
13,
3855,
32103,
3886,
5376,
7203,
1546,
7112,
25959,
7753,
4943,
198,
220,
220,
220,
611,
40087,
62,
4906,
6624,
705,
16680,
541,
3366,
14520,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
22939,
62,
9127,
796,
5128,
62,
469,
78,
13,
3855,
10082,
15748,
12332,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
1477,
79,
7753,
796,
4639,
13,
16447,
6601,
7416,
7,
22915,
7753,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
29636,
29289,
796,
5072,
62,
1477,
79,
7753,
13,
16447,
49925,
7203,
29289,
1600,
21739,
5420,
11,
4903,
296,
62,
4906,
28,
519,
81,
13,
86,
32812,
29800,
34220,
14520,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
469,
15748,
62,
9127,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7514,
14520,
796,
5128,
62,
469,
78,
13,
3855,
10082,
15748,
8134,
7,
72,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3895,
796,
267,
2164,
13,
38816,
7,
67,
301,
29289,
13,
3855,
49925,
7469,
77,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3895,
13,
7248,
10082,
15748,
7,
35428,
14520,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29636,
29289,
13,
16447,
38816,
7,
30053,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3895,
13,
49174,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5072,
62,
1477,
79,
7753,
13,
49174,
3419,
628,
198,
4299,
10385,
62,
5431,
62,
6738,
62,
9600,
62,
1462,
62,
469,
78,
7,
87,
11,
331,
11,
4941,
28,
14202,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10263,
108,
228,
32368,
122,
41468,
161,
251,
238,
43718,
229,
164,
121,
105,
22755,
238,
28839,
108,
49426,
228,
161,
251,
238,
43718,
229,
22755,
244,
38519,
162,
232,
243,
37605,
109,
161,
251,
238,
43718,
229,
198,
220,
220,
220,
1058,
17143,
2124,
25,
5525,
106,
94,
163,
106,
245,
17312,
118,
40792,
21410,
87,
11,
41753,
242,
46237,
98,
42468,
26344,
245,
198,
220,
220,
220,
1058,
17143,
331,
25,
5525,
106,
94,
163,
106,
245,
17312,
118,
40792,
21410,
88,
171,
120,
234,
41753,
242,
46237,
98,
42468,
26193,
234,
198,
220,
220,
220,
1058,
17143,
4941,
25,
27044,
1847,
21410,
17739,
255,
20998,
224,
46763,
108,
171,
120,
234,
20998,
107,
20015,
98,
34460,
248,
32573,
229,
19608,
292,
316,
13,
3855,
10082,
78,
41762,
3419,
164,
236,
115,
20998,
244,
171,
120,
234,
198,
220,
220,
220,
220,
197,
197,
32573,
247,
34932,
234,
21410,
19608,
292,
316,
796,
308,
31748,
13,
11505,
7,
7753,
62,
3672,
8,
2393,
62,
3672,
26193,
101,
163,
97,
118,
49929,
43718,
120,
28156,
237,
32368,
122,
31965,
229,
21410,
164,
115,
107,
36181,
226,
171,
120,
234,
30585,
99,
161,
251,
238,
43718,
229,
21410,
83,
733,
43718,
120,
28156,
237,
198,
220,
220,
220,
1058,
7783,
25,
220,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
5752,
796,
331,
198,
220,
220,
220,
951,
796,
2124,
198,
220,
220,
220,
279,
87,
796,
4941,
58,
15,
60,
1343,
951,
1635,
4941,
58,
16,
60,
1343,
5752,
1635,
4941,
58,
17,
60,
198,
220,
220,
220,
12972,
796,
4941,
58,
18,
60,
1343,
951,
1635,
4941,
58,
19,
60,
1343,
5752,
1635,
4941,
58,
20,
60,
198,
220,
220,
220,
1441,
279,
87,
11,
12972,
628,
198,
198,
37811,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
7514,
796,
2251,
62,
469,
296,
3419,
198,
220,
220,
220,
3601,
7,
35428,
13,
43834,
2514,
54,
21841,
28955,
198,
220,
220,
220,
3601,
7,
35428,
13,
3855,
10082,
15748,
12332,
28955,
198,
220,
220,
220,
3601,
7,
35428,
13,
3855,
10082,
15748,
8134,
7,
16,
4008,
198,
220,
220,
220,
256,
733,
62,
6978,
796,
705,
35,
14079,
40148,
14,
29412,
14,
6998,
62,
14402,
14,
9288,
13,
49929,
6,
198,
220,
220,
220,
10360,
3808,
11,
4903,
418,
3808,
796,
4941,
62,
1659,
62,
83,
733,
7,
83,
733,
62,
6978,
8,
198,
220,
220,
220,
10385,
62,
469,
296,
62,
1462,
62,
1477,
79,
7,
35428,
11,
21739,
5420,
28,
469,
418,
3808,
8,
198,
37811,
198
] | 1.885781 | 1,716 |
from paypalrestsdk import WebhookEvent
import logging
logging.basicConfig(level=logging.INFO)
webhook_event = WebhookEvent.find("8PT597110X687430LKGECATA")
if webhook_event.resend(): # return True or False
print("webhook event[%s] resend successfully" % (webhook_event.id))
else:
print(webhook_event.error)
|
[
6738,
1414,
18596,
2118,
21282,
74,
1330,
5313,
25480,
9237,
198,
11748,
18931,
198,
6404,
2667,
13,
35487,
16934,
7,
5715,
28,
6404,
2667,
13,
10778,
8,
198,
198,
12384,
25480,
62,
15596,
796,
5313,
25480,
9237,
13,
19796,
7203,
23,
11571,
3270,
4869,
940,
55,
3104,
4524,
1270,
43,
42,
38,
2943,
13563,
4943,
198,
198,
361,
3992,
25480,
62,
15596,
13,
411,
437,
33529,
220,
1303,
1441,
6407,
393,
10352,
198,
220,
220,
220,
3601,
7203,
12384,
25480,
1785,
58,
4,
82,
60,
581,
437,
7675,
1,
4064,
357,
12384,
25480,
62,
15596,
13,
312,
4008,
198,
17772,
25,
198,
220,
220,
220,
3601,
7,
12384,
25480,
62,
15596,
13,
18224,
8,
198
] | 2.765217 | 115 |
#!/usr/bin/env python
# coding=utf-8
try:
import mock
except ImportError:
import unittest.mock as mock
from marvin_product_classifier_engine.data_handler import AcquisitorAndCleaner
import pandas as pd
@mock.patch('marvin_product_classifier_engine.data_handler.acquisitor_and_cleaner.pd.read_csv')
@mock.patch('marvin_product_classifier_engine.data_handler.acquisitor_and_cleaner.MarvinData.download_file')
|
[
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
19617,
28,
40477,
12,
23,
198,
198,
28311,
25,
198,
220,
220,
220,
1330,
15290,
198,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
1330,
555,
715,
395,
13,
76,
735,
355,
15290,
198,
198,
6738,
1667,
7114,
62,
11167,
62,
4871,
7483,
62,
18392,
13,
7890,
62,
30281,
1330,
24939,
271,
2072,
1870,
32657,
263,
198,
11748,
19798,
292,
355,
279,
67,
628,
198,
31,
76,
735,
13,
17147,
10786,
3876,
7114,
62,
11167,
62,
4871,
7483,
62,
18392,
13,
7890,
62,
30281,
13,
43561,
271,
2072,
62,
392,
62,
27773,
263,
13,
30094,
13,
961,
62,
40664,
11537,
198,
31,
76,
735,
13,
17147,
10786,
3876,
7114,
62,
11167,
62,
4871,
7483,
62,
18392,
13,
7890,
62,
30281,
13,
43561,
271,
2072,
62,
392,
62,
27773,
263,
13,
7676,
7114,
6601,
13,
15002,
62,
7753,
11537,
198
] | 2.8 | 150 |
"""TcEx Service Common Module"""
# standard library
import base64
import json
import os
import subprocess
import sys
import time
import uuid
from multiprocessing import Process
from random import randint
from threading import Event, Lock, Thread
from typing import Any, Optional
from ..services import MqttMessageBroker
from .test_case_playbook_common import TestCasePlaybookCommon
class TestCaseServiceCommon(TestCasePlaybookCommon):
"""Service App TestCase Class"""
_mqtt_client = None
_message_broker = None
app_process = None
client_topic = f'client-topic-{randint(100, 999)}'
lock = Lock() # lock for subscription management
server_topic = f'server-topic-{randint(100, 999)}'
service_ready = Event()
service_run_method = 'subprocess' # run service as subprocess, multiprocess, or thread
shutdown = False
shutdown_complete = False
sleep_after_publish_config = 0.5
sleep_after_publish_webhook_event = 0.5
sleep_after_service_start = 5
sleep_before_delete_config = 2
sleep_before_shutdown = 0.5
subscriptions = {} # dictionary of events, posted to by MID by on_subscribe
trigger_requests = {}
trigger_responses = {}
def _app_callback(self, app):
"""Set app object from run.py callback"""
self.app = app
@property
def default_args(self):
"""Return App default args."""
args = super().default_args.copy()
args.update(
{
'tc_svc_broker_host': os.getenv('TC_SVC_BROKER_HOST', 'localhost'),
'tc_svc_broker_port': int(os.getenv('TC_SVC_BROKER_PORT', '1883')),
'tc_svc_broker_service': os.getenv('TC_SVC_BROKER_SERVICE', 'mqtt'),
'tc_svc_broker_conn_timeout': int(os.getenv('TC_SVC_BROKER_CONN_TIMEOUT', '15')),
'tc_svc_broker_token': os.getenv('TC_SVC_BROKER_TOKEN'),
'tc_svc_client_topic': self.client_topic,
'tc_svc_server_topic': self.server_topic,
'tc_svc_hb_timeout_seconds': int(os.getenv('TC_SVC_HB_TIMEOUT_SECONDS', '300')),
}
)
return args
@property
def message_broker(self):
"""Return an instance of MqttMessageBroker."""
if self._message_broker is None:
self._message_broker = MqttMessageBroker(
broker_host=self.default_args.get('tc_svc_broker_host'),
broker_port=self.default_args.get('tc_svc_broker_port'),
broker_timeout=self.default_args.get('tc_svc_broker_conn_timeout'),
logger=self.log,
)
self._message_broker.register_callbacks()
return self._message_broker
@property
def mqtt_client(self):
"""Return a mqtt client instance."""
return self.message_broker.client
def on_message(self, client, userdata, message): # pylint: disable=unused-argument
"""Handle message broker on_message shutdown command events."""
try:
m = json.loads(message.payload)
except ValueError:
raise RuntimeError(f'Could not parse API service response JSON. ({message})')
command = m.get('command').lower()
if command == 'ready':
self.service_ready.set()
trigger_id = str(m.get('triggerId'))
cmd_type = m.get('type', command).lower()
key = f'{trigger_id}-{cmd_type}'
if key in self.trigger_responses:
self.log.warning(f'Additional response arrived for trigger {key} -- discarded')
else:
self.trigger_responses[key] = m
if self.trigger_requests.get(key) is not None:
self.trigger_requests.pop(key).set()
# pylint: disable=unused-argument
def on_subscribe(self, client, userdata, mid, granted_qos):
"""Handle on subscribe callback after subscription completes"""
with self.lock:
event = self.subscriptions.pop(mid)
if event:
event.set()
def publish(self, message: str, topic: Optional[str] = None):
"""Publish message on server channel.
Args:
message: The message to send.
topic: The message broker topic. Defaults to None.
"""
self.message_broker.publish(message, topic)
def publish_create_config(self, message: dict) -> dict:
"""Send create config message.
Args:
trigger_id (str): The trigger id for the config message.
message (dict): The entire message with trigger_id and config.
Returns:
dict: CreateConfig Acknowledge response data.
"""
# merge the message config (e.g., optional, required)
message_config = message.pop('config')
config = message_config.get('optional', {})
config.update(message_config.get('required', {}))
message['config'] = config
# build config message
message['apiToken'] = self.tc_token
message['expireSeconds'] = int(time.time() + 86400)
message['command'] = 'CreateConfig'
message['config']['tc_playbook_out_variables'] = self.profile.tc_playbook_out_variables
message['triggerId'] = message.pop('trigger_id')
self.log.data('run', 'create config', f'{message["triggerId"]}')
self.message_broker.publish(json.dumps(message), self.server_topic)
# create thread wait event
event = Event()
key = f'{message["triggerId"]}-createconfig'
self.trigger_requests[key] = event
event.wait(10) # wait for 10 seconds
# time.sleep(self.sleep_after_publish_config)
result = self.trigger_responses.pop(key, {})
self.log.data(
'run',
'create config',
f'{message["triggerId"]} {result.get("status", "No Status")} '
f'{result.get("message", "No Message")}',
)
return dict(status=result.get('status', False), message=result.get('message'))
def publish_delete_config(self, message):
"""Send delete config message.
Args:
message (str): The message coming in on Broker channel
"""
time.sleep(self.sleep_before_delete_config)
# using triggerId here instead of trigger_id do to pop in publish_create_config
config_msg = {'command': 'DeleteConfig', 'triggerId': message.get('triggerId')}
self.log.data('run', 'delete config', f'{message["triggerId"]}')
self.message_broker.publish(json.dumps(config_msg), self.server_topic)
def publish_heartbeat(self):
"""Send heartbeat message to service."""
shutdown_msg = {'command': 'Heartbeat', 'metric': {}, 'memoryPercent': 0, 'cpuPercent': 0}
self.message_broker.publish(json.dumps(shutdown_msg), self.server_topic)
def publish_shutdown(self):
"""Publish shutdown message."""
config_msg = {'command': 'Shutdown'}
self.log.data('run', 'service', 'shutdown requested')
self.message_broker.publish(json.dumps(config_msg), self.server_topic)
def publish_webhook_event(
self,
trigger_id: int,
body: Optional[Any] = None,
headers: Optional[list] = None,
method: Optional[str] = 'GET',
query_params: Optional[list] = None,
request_key: Optional[str] = None,
):
"""Send create config message.
Args:
trigger_id: The trigger ID.
body: The HTTP request body.
headers: The HTTP request headers name/value pairs.
method: The HTTP request method.
query_params: The HTTP request query param name/value pairs.
request_key: The current request key.
"""
body = body or ''
request_key = request_key or str(uuid.uuid4())
if isinstance(body, dict):
body = json.dumps(body)
body = self.redis_client.hset(
request_key, 'request.body', base64.b64encode(body.encode('utf-8'))
)
event = {
'command': 'WebhookEvent',
'method': method,
'queryParams': query_params or [],
'headers': headers or [],
'body': 'request.body',
'requestKey': request_key,
'triggerId': trigger_id,
}
trigger_id = str(trigger_id)
self.log.data('run', 'webhook event', trigger_id)
ready = Event()
key = f'{trigger_id}-webhookevent'
self.trigger_requests[key] = ready
self.message_broker.publish(json.dumps(event), self.server_topic)
ready.wait(10) # wait for 10 seconds
status = 'Complete' if ready.isSet() else 'Timed Out'
self.trigger_responses.pop(key, {})
self.log.data('run', 'webhook event', f'{trigger_id} {status}')
def publish_marshall_webhook_event(
self,
trigger_id: int,
body: Optional[Any] = None,
headers: Optional[list] = None,
request_key: Optional[str] = None,
status_code: Optional[int] = 200,
):
"""Send create config message.
Args:
trigger_id: The trigger ID.
body: The HTTP response Body.
headers: The HTTP response headers name/value pairs.
request_key: The request key to reply with.
status_code: The HTTP response status code.
request_key: The current request key.
"""
body = body or ''
request_key = request_key or str(uuid.uuid4())
if isinstance(body, dict):
body = json.dumps(body)
body = self.redis_client.hset(
request_key, 'request.body', base64.b64encode(body.encode('utf-8'))
)
event = {
'command': 'WebhookMarshallEvent',
'headers': headers or [],
'body': 'request.body',
'requestKey': request_key,
'triggerId': trigger_id,
'statusCode': status_code,
}
trigger_id = str(trigger_id)
self.log.data('run', 'webhook marshal', trigger_id)
ready = Event()
key = f'{trigger_id}-webhookmarshallevent'
self.trigger_requests[key] = ready
self.message_broker.publish(json.dumps(event), self.server_topic)
ready.wait(10) # wait for 10 seconds
status = 'Complete' if ready.isSet() else 'Timed Out'
self.trigger_responses.pop(key, {})
self.log.data('run', 'webhook marshal', f'{trigger_id} {status}')
def run(self):
"""Implement in Child Class"""
raise NotImplementedError('Child class must implement this method.')
def run_service(self):
"""Run the micro-service."""
self.log.data('run', 'service method', self.service_run_method)
# backup sys.argv
sys_argv_orig = sys.argv
# clear sys.argv
sys.argv = sys.argv[:1]
# create required .app_params encrypted file. args are set in custom.py
self.args['tcex_testing_context'] = self.tcex_testing_context
self.create_config(self.args)
# run the service App in 1 of 3 ways
if self.service_run_method == 'subprocess':
# run the Service App as a subprocess
self.app_process = subprocess.Popen(['python', 'run.py'])
elif self.service_run_method == 'thread':
# run App in a thread
t = Thread(target=self.run, args=(), daemon=True)
t.start()
elif self.service_run_method == 'multiprocess':
p = Process(target=self.run, args=(), daemon=True)
p.start()
# restore sys.argv
sys.argv = sys_argv_orig
@classmethod
def setup_class(cls):
"""Run once before all test cases."""
super().setup_class()
cls.args = {}
cls.service_file = 'SERVICE_STARTED' # started file flag
# generate a context used in service.py to write context during fire event
cls.tcex_testing_context = str(uuid.uuid4())
def setup_method(self):
"""Run before each test method runs."""
super().setup_method()
self.stager.redis.from_dict(self.redis_staging_data)
self.redis_client = self.tcex.redis_client
for key in list(self.trigger_requests.keys()):
del self.trigger_requests[key]
for key in list(self.trigger_responses.keys()):
del self.trigger_responses[key]
self.service_ready.clear()
# register on_message shutdown monitor
self.message_broker.add_on_message_callback(
callback=self.on_message, topics=[self.client_topic]
)
# register on_subscribe notification
self.message_broker.add_on_subscribe_callback(callback=self.on_subscribe)
self.message_broker.client.loop_start()
self.subscribe(self.client_topic)
# only start service if it hasn't been started already base on file flag.
if not os.path.isfile(self.service_file):
open(self.service_file, 'w+').close() # create service started file flag
self.run_service()
# start shutdown monitor thread
t = Thread(target=self.shutdown_monitor, daemon=True)
t.start()
self.service_ready.wait(30)
if not self.service_ready.isSet():
self.log.data('run', 'service', 'failed to start')
else:
self.log.data('run', 'service', 'ready')
def shutdown_monitor(self):
"""Monitor for shutdown flag."""
while not self.shutdown:
time.sleep(0.5)
# shutdown the App
self.publish_shutdown()
# give Service App x seconds to shutdown before terminating
if self.service_run_method == 'subprocess':
for _ in range(1, 10):
time.sleep(0.5)
if self.app_process.poll() is not None:
break
else:
self.log.data('run', 'Terminating Process', f'PID: {self.app_process.pid}', 'debug')
self.app_process.terminate() # terminate subprocess
# remove started file flag
try:
os.remove(self.service_file)
except OSError:
pass
# set shutdown_complete
self.shutdown_complete = True
def stage_data(self, staged_data):
"""Stage the data in the profile."""
for key, value in list(staged_data.get('redis', {}).items()):
self.stager.redis.stage(key, value)
def subscribe(self, topic):
"""Subscribe to a topic and wait for the subscription to complete"""
event = Event()
with self.lock:
# don't try to subscribe outside of lock, since
# it could come back *before* we wait on it
_, mid = self.message_broker.client.subscribe(topic)
self.subscriptions[mid] = event
event.wait(10)
if mid in self.subscriptions: # failed to subscribe
self.log.error(f'Failed to subscribe to topic {topic}')
@classmethod
def teardown_class(cls):
"""Run once before all test cases."""
super().teardown_class()
# set shutdown flag for shutdown_monitor and wait until shutdown is done
cls.shutdown = True
for _ in range(1, 12):
if cls.shutdown_complete:
break
time.sleep(0.5)
def teardown_method(self):
"""Run after each test method runs."""
time.sleep(self.sleep_before_shutdown)
# run test_case_playbook_common teardown_method
super().teardown_method()
self.message_broker.client.loop_stop()
# clean up tcex testing context after populate_output has run
self.clear_context(self.tcex_testing_context)
|
[
37811,
51,
66,
3109,
4809,
8070,
19937,
37811,
198,
2,
3210,
5888,
198,
11748,
2779,
2414,
198,
11748,
33918,
198,
11748,
28686,
198,
11748,
850,
14681,
198,
11748,
25064,
198,
11748,
640,
198,
11748,
334,
27112,
198,
6738,
18540,
305,
919,
278,
1330,
10854,
198,
6738,
4738,
1330,
43720,
600,
198,
6738,
4704,
278,
1330,
8558,
11,
13656,
11,
14122,
198,
6738,
19720,
1330,
4377,
11,
32233,
198,
198,
6738,
11485,
30416,
1330,
337,
80,
926,
12837,
15783,
6122,
198,
6738,
764,
9288,
62,
7442,
62,
1759,
2070,
62,
11321,
1330,
6208,
20448,
11002,
2070,
17227,
628,
198,
4871,
6208,
20448,
16177,
17227,
7,
14402,
20448,
11002,
2070,
17227,
2599,
198,
220,
220,
220,
37227,
16177,
2034,
6208,
20448,
5016,
37811,
628,
220,
220,
220,
4808,
76,
80,
926,
62,
16366,
796,
6045,
198,
220,
220,
220,
4808,
20500,
62,
7957,
6122,
796,
6045,
198,
220,
220,
220,
598,
62,
14681,
796,
6045,
198,
220,
220,
220,
5456,
62,
26652,
796,
277,
6,
16366,
12,
26652,
12,
90,
25192,
600,
7,
3064,
11,
36006,
38165,
6,
198,
220,
220,
220,
5793,
796,
13656,
3419,
220,
1303,
5793,
329,
14569,
4542,
198,
220,
220,
220,
4382,
62,
26652,
796,
277,
338,
18497,
12,
26652,
12,
90,
25192,
600,
7,
3064,
11,
36006,
38165,
6,
198,
220,
220,
220,
2139,
62,
1493,
796,
8558,
3419,
198,
220,
220,
220,
2139,
62,
5143,
62,
24396,
796,
705,
7266,
14681,
6,
220,
1303,
1057,
2139,
355,
850,
14681,
11,
18540,
305,
919,
11,
393,
4704,
198,
220,
220,
220,
18325,
796,
10352,
198,
220,
220,
220,
18325,
62,
20751,
796,
10352,
198,
220,
220,
220,
3993,
62,
8499,
62,
12984,
1836,
62,
11250,
796,
657,
13,
20,
198,
220,
220,
220,
3993,
62,
8499,
62,
12984,
1836,
62,
12384,
25480,
62,
15596,
796,
657,
13,
20,
198,
220,
220,
220,
3993,
62,
8499,
62,
15271,
62,
9688,
796,
642,
198,
220,
220,
220,
3993,
62,
19052,
62,
33678,
62,
11250,
796,
362,
198,
220,
220,
220,
3993,
62,
19052,
62,
49625,
2902,
796,
657,
13,
20,
198,
220,
220,
220,
35675,
796,
23884,
220,
1303,
22155,
286,
2995,
11,
4481,
284,
416,
25269,
416,
319,
62,
7266,
12522,
198,
220,
220,
220,
7616,
62,
8897,
3558,
796,
23884,
198,
220,
220,
220,
7616,
62,
16733,
274,
796,
23884,
628,
220,
220,
220,
825,
4808,
1324,
62,
47423,
7,
944,
11,
598,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
598,
2134,
422,
1057,
13,
9078,
23838,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1324,
796,
598,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
4277,
62,
22046,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
2034,
4277,
26498,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
26498,
796,
2208,
22446,
12286,
62,
22046,
13,
30073,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
26498,
13,
19119,
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,
23047,
62,
21370,
66,
62,
7957,
6122,
62,
4774,
10354,
28686,
13,
1136,
24330,
10786,
4825,
62,
50,
15922,
62,
11473,
11380,
1137,
62,
39,
10892,
3256,
705,
36750,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
23047,
62,
21370,
66,
62,
7957,
6122,
62,
634,
10354,
493,
7,
418,
13,
1136,
24330,
10786,
4825,
62,
50,
15922,
62,
11473,
11380,
1137,
62,
15490,
3256,
705,
1507,
5999,
11537,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
23047,
62,
21370,
66,
62,
7957,
6122,
62,
15271,
10354,
28686,
13,
1136,
24330,
10786,
4825,
62,
50,
15922,
62,
11473,
11380,
1137,
62,
35009,
27389,
3256,
705,
76,
80,
926,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
23047,
62,
21370,
66,
62,
7957,
6122,
62,
37043,
62,
48678,
10354,
493,
7,
418,
13,
1136,
24330,
10786,
4825,
62,
50,
15922,
62,
11473,
11380,
1137,
62,
10943,
45,
62,
34694,
12425,
3256,
705,
1314,
11537,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
23047,
62,
21370,
66,
62,
7957,
6122,
62,
30001,
10354,
28686,
13,
1136,
24330,
10786,
4825,
62,
50,
15922,
62,
11473,
11380,
1137,
62,
10468,
43959,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
23047,
62,
21370,
66,
62,
16366,
62,
26652,
10354,
2116,
13,
16366,
62,
26652,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
23047,
62,
21370,
66,
62,
15388,
62,
26652,
10354,
2116,
13,
15388,
62,
26652,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
23047,
62,
21370,
66,
62,
71,
65,
62,
48678,
62,
43012,
10354,
493,
7,
418,
13,
1136,
24330,
10786,
4825,
62,
50,
15922,
62,
32886,
62,
34694,
12425,
62,
23683,
1340,
5258,
3256,
705,
6200,
11537,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
26498,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
3275,
62,
7957,
6122,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
281,
4554,
286,
337,
80,
926,
12837,
15783,
6122,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
20500,
62,
7957,
6122,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
20500,
62,
7957,
6122,
796,
337,
80,
926,
12837,
15783,
6122,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20426,
62,
4774,
28,
944,
13,
12286,
62,
22046,
13,
1136,
10786,
23047,
62,
21370,
66,
62,
7957,
6122,
62,
4774,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20426,
62,
634,
28,
944,
13,
12286,
62,
22046,
13,
1136,
10786,
23047,
62,
21370,
66,
62,
7957,
6122,
62,
634,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20426,
62,
48678,
28,
944,
13,
12286,
62,
22046,
13,
1136,
10786,
23047,
62,
21370,
66,
62,
7957,
6122,
62,
37043,
62,
48678,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
28,
944,
13,
6404,
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,
13557,
20500,
62,
7957,
6122,
13,
30238,
62,
13345,
10146,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
20500,
62,
7957,
6122,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
285,
80,
926,
62,
16366,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
257,
285,
80,
926,
5456,
4554,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
20500,
62,
7957,
6122,
13,
16366,
628,
220,
220,
220,
825,
319,
62,
20500,
7,
944,
11,
5456,
11,
2836,
7890,
11,
3275,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
37508,
3275,
20426,
319,
62,
20500,
18325,
3141,
2995,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
796,
33918,
13,
46030,
7,
20500,
13,
15577,
2220,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
11052,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
43160,
12331,
7,
69,
6,
23722,
407,
21136,
7824,
2139,
2882,
19449,
13,
37913,
20500,
30072,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
3141,
796,
285,
13,
1136,
10786,
21812,
27691,
21037,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3141,
6624,
705,
1493,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15271,
62,
1493,
13,
2617,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
7616,
62,
312,
796,
965,
7,
76,
13,
1136,
10786,
46284,
7390,
6,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4906,
796,
285,
13,
1136,
10786,
4906,
3256,
3141,
737,
21037,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
277,
6,
90,
46284,
62,
312,
92,
12,
90,
28758,
62,
4906,
92,
6,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1994,
287,
2116,
13,
46284,
62,
16733,
274,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
43917,
7,
69,
6,
17699,
2882,
5284,
329,
7616,
1391,
2539,
92,
1377,
25148,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
46284,
62,
16733,
274,
58,
2539,
60,
796,
285,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
46284,
62,
8897,
3558,
13,
1136,
7,
2539,
8,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
46284,
62,
8897,
3558,
13,
12924,
7,
2539,
737,
2617,
3419,
628,
220,
220,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
825,
319,
62,
7266,
12522,
7,
944,
11,
5456,
11,
2836,
7890,
11,
3095,
11,
7520,
62,
80,
418,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
37508,
319,
12383,
23838,
706,
14569,
32543,
37811,
628,
220,
220,
220,
220,
220,
220,
220,
351,
2116,
13,
5354,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
796,
2116,
13,
7266,
12048,
507,
13,
12924,
7,
13602,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1785,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
13,
2617,
3419,
628,
220,
220,
220,
825,
7715,
7,
944,
11,
3275,
25,
965,
11,
7243,
25,
32233,
58,
2536,
60,
796,
6045,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14876,
1836,
3275,
319,
4382,
6518,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
25,
383,
3275,
284,
3758,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7243,
25,
383,
3275,
20426,
7243,
13,
2896,
13185,
284,
6045,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20500,
62,
7957,
6122,
13,
12984,
1836,
7,
20500,
11,
7243,
8,
628,
220,
220,
220,
825,
7715,
62,
17953,
62,
11250,
7,
944,
11,
3275,
25,
8633,
8,
4613,
8633,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
25206,
2251,
4566,
3275,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7616,
62,
312,
357,
2536,
2599,
383,
7616,
4686,
329,
262,
4566,
3275,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
357,
11600,
2599,
383,
2104,
3275,
351,
7616,
62,
312,
290,
4566,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8633,
25,
13610,
16934,
317,
5319,
2965,
2882,
1366,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
20121,
262,
3275,
4566,
357,
68,
13,
70,
1539,
11902,
11,
2672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
11250,
796,
3275,
13,
12924,
10786,
11250,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
796,
3275,
62,
11250,
13,
1136,
10786,
25968,
3256,
23884,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
19119,
7,
20500,
62,
11250,
13,
1136,
10786,
35827,
3256,
23884,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3275,
17816,
11250,
20520,
796,
4566,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1382,
4566,
3275,
198,
220,
220,
220,
220,
220,
220,
220,
3275,
17816,
15042,
30642,
20520,
796,
2116,
13,
23047,
62,
30001,
198,
220,
220,
220,
220,
220,
220,
220,
3275,
17816,
1069,
5111,
12211,
82,
20520,
796,
493,
7,
2435,
13,
2435,
3419,
1343,
807,
2414,
405,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3275,
17816,
21812,
20520,
796,
705,
16447,
16934,
6,
198,
220,
220,
220,
220,
220,
220,
220,
3275,
17816,
11250,
6,
7131,
6,
23047,
62,
1759,
2070,
62,
448,
62,
25641,
2977,
20520,
796,
2116,
13,
13317,
13,
23047,
62,
1759,
2070,
62,
448,
62,
25641,
2977,
198,
220,
220,
220,
220,
220,
220,
220,
3275,
17816,
46284,
7390,
20520,
796,
3275,
13,
12924,
10786,
46284,
62,
312,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
10786,
5143,
3256,
705,
17953,
4566,
3256,
277,
6,
90,
20500,
14692,
46284,
7390,
8973,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20500,
62,
7957,
6122,
13,
12984,
1836,
7,
17752,
13,
67,
8142,
7,
20500,
828,
2116,
13,
15388,
62,
26652,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2251,
4704,
4043,
1785,
198,
220,
220,
220,
220,
220,
220,
220,
1785,
796,
8558,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
277,
6,
90,
20500,
14692,
46284,
7390,
8973,
92,
12,
17953,
11250,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
46284,
62,
8897,
3558,
58,
2539,
60,
796,
1785,
198,
220,
220,
220,
220,
220,
220,
220,
1785,
13,
17077,
7,
940,
8,
220,
1303,
4043,
329,
838,
4201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
640,
13,
42832,
7,
944,
13,
42832,
62,
8499,
62,
12984,
1836,
62,
11250,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
46284,
62,
16733,
274,
13,
12924,
7,
2539,
11,
23884,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5143,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
17953,
4566,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
6,
90,
20500,
14692,
46284,
7390,
8973,
92,
1391,
20274,
13,
1136,
7203,
13376,
1600,
366,
2949,
12678,
4943,
92,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
6,
90,
20274,
13,
1136,
7203,
20500,
1600,
366,
2949,
16000,
4943,
92,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
8633,
7,
13376,
28,
20274,
13,
1136,
10786,
13376,
3256,
10352,
828,
3275,
28,
20274,
13,
1136,
10786,
20500,
6,
4008,
628,
220,
220,
220,
825,
7715,
62,
33678,
62,
11250,
7,
944,
11,
3275,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
25206,
12233,
4566,
3275,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
357,
2536,
2599,
383,
3275,
2406,
287,
319,
2806,
6122,
6518,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
944,
13,
42832,
62,
19052,
62,
33678,
62,
11250,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1262,
7616,
7390,
994,
2427,
286,
7616,
62,
312,
466,
284,
1461,
287,
7715,
62,
17953,
62,
11250,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
62,
19662,
796,
1391,
6,
21812,
10354,
705,
38727,
16934,
3256,
705,
46284,
7390,
10354,
3275,
13,
1136,
10786,
46284,
7390,
11537,
92,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
10786,
5143,
3256,
705,
33678,
4566,
3256,
277,
6,
90,
20500,
14692,
46284,
7390,
8973,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20500,
62,
7957,
6122,
13,
12984,
1836,
7,
17752,
13,
67,
8142,
7,
11250,
62,
19662,
828,
2116,
13,
15388,
62,
26652,
8,
628,
220,
220,
220,
825,
7715,
62,
11499,
12945,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
25206,
36051,
3275,
284,
2139,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
18325,
62,
19662,
796,
1391,
6,
21812,
10354,
705,
28541,
12945,
3256,
705,
4164,
1173,
10354,
1391,
5512,
705,
31673,
31905,
10354,
657,
11,
705,
36166,
31905,
10354,
657,
92,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20500,
62,
7957,
6122,
13,
12984,
1836,
7,
17752,
13,
67,
8142,
7,
49625,
2902,
62,
19662,
828,
2116,
13,
15388,
62,
26652,
8,
628,
220,
220,
220,
825,
7715,
62,
49625,
2902,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14876,
1836,
18325,
3275,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
62,
19662,
796,
1391,
6,
21812,
10354,
705,
39079,
2902,
6,
92,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
10786,
5143,
3256,
705,
15271,
3256,
705,
49625,
2902,
9167,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20500,
62,
7957,
6122,
13,
12984,
1836,
7,
17752,
13,
67,
8142,
7,
11250,
62,
19662,
828,
2116,
13,
15388,
62,
26652,
8,
628,
220,
220,
220,
825,
7715,
62,
12384,
25480,
62,
15596,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
198,
220,
220,
220,
220,
220,
220,
220,
7616,
62,
312,
25,
493,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1767,
25,
32233,
58,
7149,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
24697,
25,
32233,
58,
4868,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2446,
25,
32233,
58,
2536,
60,
796,
705,
18851,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
37266,
25,
32233,
58,
4868,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2581,
62,
2539,
25,
32233,
58,
2536,
60,
796,
6045,
11,
198,
220,
220,
220,
15179,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
25206,
2251,
4566,
3275,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7616,
62,
312,
25,
383,
7616,
4522,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1767,
25,
383,
14626,
2581,
1767,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24697,
25,
383,
14626,
2581,
24697,
1438,
14,
8367,
14729,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
25,
383,
14626,
2581,
2446,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
37266,
25,
383,
14626,
2581,
12405,
5772,
1438,
14,
8367,
14729,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2581,
62,
2539,
25,
383,
1459,
2581,
1994,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1767,
796,
1767,
393,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
2581,
62,
2539,
796,
2581,
62,
2539,
393,
965,
7,
12303,
312,
13,
12303,
312,
19,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
2618,
11,
8633,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1767,
796,
33918,
13,
67,
8142,
7,
2618,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1767,
796,
2116,
13,
445,
271,
62,
16366,
13,
71,
2617,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2581,
62,
2539,
11,
705,
25927,
13,
2618,
3256,
2779,
2414,
13,
65,
2414,
268,
8189,
7,
2618,
13,
268,
8189,
10786,
40477,
12,
23,
6,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1785,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
21812,
10354,
705,
13908,
25480,
9237,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
24396,
10354,
2446,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22766,
10044,
4105,
10354,
12405,
62,
37266,
393,
685,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
50145,
10354,
24697,
393,
685,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
2618,
10354,
705,
25927,
13,
2618,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
25927,
9218,
10354,
2581,
62,
2539,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
46284,
7390,
10354,
7616,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
220,
220,
7616,
62,
312,
796,
965,
7,
46284,
62,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
10786,
5143,
3256,
705,
12384,
25480,
1785,
3256,
7616,
62,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3492,
796,
8558,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
277,
6,
90,
46284,
62,
312,
92,
12,
12384,
8873,
2088,
1151,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
46284,
62,
8897,
3558,
58,
2539,
60,
796,
3492,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20500,
62,
7957,
6122,
13,
12984,
1836,
7,
17752,
13,
67,
8142,
7,
15596,
828,
2116,
13,
15388,
62,
26652,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3492,
13,
17077,
7,
940,
8,
220,
1303,
4043,
329,
838,
4201,
198,
220,
220,
220,
220,
220,
220,
220,
3722,
796,
705,
20988,
6,
611,
3492,
13,
271,
7248,
3419,
2073,
705,
14967,
276,
3806,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
46284,
62,
16733,
274,
13,
12924,
7,
2539,
11,
23884,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
10786,
5143,
3256,
705,
12384,
25480,
1785,
3256,
277,
6,
90,
46284,
62,
312,
92,
1391,
13376,
92,
11537,
628,
220,
220,
220,
825,
7715,
62,
76,
5406,
439,
62,
12384,
25480,
62,
15596,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
198,
220,
220,
220,
220,
220,
220,
220,
7616,
62,
312,
25,
493,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1767,
25,
32233,
58,
7149,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
24697,
25,
32233,
58,
4868,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2581,
62,
2539,
25,
32233,
58,
2536,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3722,
62,
8189,
25,
32233,
58,
600,
60,
796,
939,
11,
198,
220,
220,
220,
15179,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
25206,
2251,
4566,
3275,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7616,
62,
312,
25,
383,
7616,
4522,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1767,
25,
383,
14626,
2882,
12290,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24697,
25,
383,
14626,
2882,
24697,
1438,
14,
8367,
14729,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2581,
62,
2539,
25,
383,
2581,
1994,
284,
10971,
351,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3722,
62,
8189,
25,
383,
14626,
2882,
3722,
2438,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2581,
62,
2539,
25,
383,
1459,
2581,
1994,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1767,
796,
1767,
393,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
2581,
62,
2539,
796,
2581,
62,
2539,
393,
965,
7,
12303,
312,
13,
12303,
312,
19,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
2618,
11,
8633,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1767,
796,
33918,
13,
67,
8142,
7,
2618,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1767,
796,
2116,
13,
445,
271,
62,
16366,
13,
71,
2617,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2581,
62,
2539,
11,
705,
25927,
13,
2618,
3256,
2779,
2414,
13,
65,
2414,
268,
8189,
7,
2618,
13,
268,
8189,
10786,
40477,
12,
23,
6,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1785,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
21812,
10354,
705,
13908,
25480,
41984,
439,
9237,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
50145,
10354,
24697,
393,
685,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
2618,
10354,
705,
25927,
13,
2618,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
25927,
9218,
10354,
2581,
62,
2539,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
46284,
7390,
10354,
7616,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
13376,
10669,
10354,
3722,
62,
8189,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
7616,
62,
312,
796,
965,
7,
46284,
62,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
10786,
5143,
3256,
705,
12384,
25480,
22397,
282,
3256,
7616,
62,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3492,
796,
8558,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
277,
6,
90,
46284,
62,
312,
92,
12,
12384,
25480,
76,
5406,
6765,
1151,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
46284,
62,
8897,
3558,
58,
2539,
60,
796,
3492,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20500,
62,
7957,
6122,
13,
12984,
1836,
7,
17752,
13,
67,
8142,
7,
15596,
828,
2116,
13,
15388,
62,
26652,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3492,
13,
17077,
7,
940,
8,
220,
1303,
4043,
329,
838,
4201,
198,
220,
220,
220,
220,
220,
220,
220,
3722,
796,
705,
20988,
6,
611,
3492,
13,
271,
7248,
3419,
2073,
705,
14967,
276,
3806,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
46284,
62,
16733,
274,
13,
12924,
7,
2539,
11,
23884,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
10786,
5143,
3256,
705,
12384,
25480,
22397,
282,
3256,
277,
6,
90,
46284,
62,
312,
92,
1391,
13376,
92,
11537,
628,
220,
220,
220,
825,
1057,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3546,
26908,
287,
5932,
5016,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1892,
3546,
1154,
12061,
12331,
10786,
16424,
1398,
1276,
3494,
428,
2446,
2637,
8,
628,
220,
220,
220,
825,
1057,
62,
15271,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
10987,
262,
4580,
12,
15271,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
10786,
5143,
3256,
705,
15271,
2446,
3256,
2116,
13,
15271,
62,
5143,
62,
24396,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
11559,
25064,
13,
853,
85,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
62,
853,
85,
62,
11612,
796,
25064,
13,
853,
85,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1598,
25064,
13,
853,
85,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
853,
85,
796,
25064,
13,
853,
85,
58,
25,
16,
60,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2251,
2672,
764,
1324,
62,
37266,
19365,
2393,
13,
26498,
389,
900,
287,
2183,
13,
9078,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22046,
17816,
83,
344,
87,
62,
33407,
62,
22866,
20520,
796,
2116,
13,
83,
344,
87,
62,
33407,
62,
22866,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
17953,
62,
11250,
7,
944,
13,
22046,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1057,
262,
2139,
2034,
287,
352,
286,
513,
2842,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
15271,
62,
5143,
62,
24396,
6624,
705,
7266,
14681,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1057,
262,
4809,
2034,
355,
257,
850,
14681,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1324,
62,
14681,
796,
850,
14681,
13,
47,
9654,
7,
17816,
29412,
3256,
705,
5143,
13,
9078,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2116,
13,
15271,
62,
5143,
62,
24396,
6624,
705,
16663,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1057,
2034,
287,
257,
4704,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
796,
14122,
7,
16793,
28,
944,
13,
5143,
11,
26498,
16193,
828,
33386,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
13,
9688,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2116,
13,
15271,
62,
5143,
62,
24396,
6624,
705,
16680,
541,
305,
919,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
796,
10854,
7,
16793,
28,
944,
13,
5143,
11,
26498,
16193,
828,
33386,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
13,
9688,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
11169,
25064,
13,
853,
85,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
853,
85,
796,
25064,
62,
853,
85,
62,
11612,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
825,
9058,
62,
4871,
7,
565,
82,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
10987,
1752,
878,
477,
1332,
2663,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
40406,
62,
4871,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
537,
82,
13,
22046,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
537,
82,
13,
15271,
62,
7753,
796,
705,
35009,
27389,
62,
2257,
7227,
1961,
6,
220,
1303,
2067,
2393,
6056,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
7716,
257,
4732,
973,
287,
2139,
13,
9078,
284,
3551,
4732,
1141,
2046,
1785,
198,
220,
220,
220,
220,
220,
220,
220,
537,
82,
13,
83,
344,
87,
62,
33407,
62,
22866,
796,
965,
7,
12303,
312,
13,
12303,
312,
19,
28955,
628,
220,
220,
220,
825,
9058,
62,
24396,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
10987,
878,
1123,
1332,
2446,
4539,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
40406,
62,
24396,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
301,
3536,
13,
445,
271,
13,
6738,
62,
11600,
7,
944,
13,
445,
271,
62,
301,
3039,
62,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
445,
271,
62,
16366,
796,
2116,
13,
83,
344,
87,
13,
445,
271,
62,
16366,
628,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
287,
1351,
7,
944,
13,
46284,
62,
8897,
3558,
13,
13083,
3419,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1619,
2116,
13,
46284,
62,
8897,
3558,
58,
2539,
60,
628,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
287,
1351,
7,
944,
13,
46284,
62,
16733,
274,
13,
13083,
3419,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1619,
2116,
13,
46284,
62,
16733,
274,
58,
2539,
60,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15271,
62,
1493,
13,
20063,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
7881,
319,
62,
20500,
18325,
5671,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20500,
62,
7957,
6122,
13,
2860,
62,
261,
62,
20500,
62,
47423,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23838,
28,
944,
13,
261,
62,
20500,
11,
10233,
41888,
944,
13,
16366,
62,
26652,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
7881,
319,
62,
7266,
12522,
14483,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20500,
62,
7957,
6122,
13,
2860,
62,
261,
62,
7266,
12522,
62,
47423,
7,
47423,
28,
944,
13,
261,
62,
7266,
12522,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20500,
62,
7957,
6122,
13,
16366,
13,
26268,
62,
9688,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7266,
12522,
7,
944,
13,
16366,
62,
26652,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
691,
923,
2139,
611,
340,
5818,
470,
587,
2067,
1541,
2779,
319,
2393,
6056,
13,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
4468,
576,
7,
944,
13,
15271,
62,
7753,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1280,
7,
944,
13,
15271,
62,
7753,
11,
705,
86,
10,
27691,
19836,
3419,
220,
1303,
2251,
2139,
2067,
2393,
6056,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5143,
62,
15271,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
923,
18325,
5671,
4704,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
796,
14122,
7,
16793,
28,
944,
13,
49625,
2902,
62,
41143,
11,
33386,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
13,
9688,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15271,
62,
1493,
13,
17077,
7,
1270,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
13,
15271,
62,
1493,
13,
271,
7248,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
10786,
5143,
3256,
705,
15271,
3256,
705,
47904,
284,
923,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
10786,
5143,
3256,
705,
15271,
3256,
705,
1493,
11537,
628,
220,
220,
220,
825,
18325,
62,
41143,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
35479,
329,
18325,
6056,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
981,
407,
2116,
13,
49625,
2902,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
20,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
18325,
262,
2034,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12984,
1836,
62,
49625,
2902,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1577,
4809,
2034,
2124,
4201,
284,
18325,
878,
47985,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
15271,
62,
5143,
62,
24396,
6624,
705,
7266,
14681,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
4808,
287,
2837,
7,
16,
11,
838,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
20,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
1324,
62,
14681,
13,
30393,
3419,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
7890,
10786,
5143,
3256,
705,
44798,
803,
10854,
3256,
277,
6,
47,
2389,
25,
1391,
944,
13,
1324,
62,
14681,
13,
35317,
92,
3256,
705,
24442,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1324,
62,
14681,
13,
23705,
378,
3419,
220,
1303,
23654,
850,
14681,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
4781,
2067,
2393,
6056,
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,
944,
13,
15271,
62,
7753,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
440,
5188,
81,
1472,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
900,
18325,
62,
20751,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
49625,
2902,
62,
20751,
796,
6407,
628,
220,
220,
220,
825,
3800,
62,
7890,
7,
944,
11,
23393,
62,
7890,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
29391,
262,
1366,
287,
262,
7034,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
11,
1988,
287,
1351,
7,
301,
1886,
62,
7890,
13,
1136,
10786,
445,
271,
3256,
23884,
737,
23814,
3419,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
301,
3536,
13,
445,
271,
13,
14247,
7,
2539,
11,
1988,
8,
628,
220,
220,
220,
825,
12383,
7,
944,
11,
7243,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27125,
284,
257,
7243,
290,
4043,
329,
262,
14569,
284,
1844,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
1785,
796,
8558,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
351,
2116,
13,
5354,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
836,
470,
1949,
284,
12383,
2354,
286,
5793,
11,
1201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
340,
714,
1282,
736,
1635,
19052,
9,
356,
4043,
319,
340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
11,
3095,
796,
2116,
13,
20500,
62,
7957,
6122,
13,
16366,
13,
7266,
12522,
7,
26652,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7266,
12048,
507,
58,
13602,
60,
796,
1785,
628,
220,
220,
220,
220,
220,
220,
220,
1785,
13,
17077,
7,
940,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3095,
287,
2116,
13,
7266,
12048,
507,
25,
220,
1303,
4054,
284,
12383,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6404,
13,
18224,
7,
69,
6,
37,
6255,
284,
12383,
284,
7243,
1391,
26652,
92,
11537,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
825,
573,
446,
593,
62,
4871,
7,
565,
82,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
10987,
1752,
878,
477,
1332,
2663,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
660,
446,
593,
62,
4871,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
900,
18325,
6056,
329,
18325,
62,
41143,
290,
4043,
1566,
18325,
318,
1760,
198,
220,
220,
220,
220,
220,
220,
220,
537,
82,
13,
49625,
2902,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
329,
4808,
287,
2837,
7,
16,
11,
1105,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
537,
82,
13,
49625,
2902,
62,
20751,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
20,
8,
628,
220,
220,
220,
825,
573,
446,
593,
62,
24396,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
10987,
706,
1123,
1332,
2446,
4539,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
944,
13,
42832,
62,
19052,
62,
49625,
2902,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1057,
1332,
62,
7442,
62,
1759,
2070,
62,
11321,
573,
446,
593,
62,
24396,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
660,
446,
593,
62,
24396,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20500,
62,
7957,
6122,
13,
16366,
13,
26268,
62,
11338,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
3424,
510,
256,
344,
87,
4856,
4732,
706,
48040,
62,
22915,
468,
1057,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20063,
62,
22866,
7,
944,
13,
83,
344,
87,
62,
33407,
62,
22866,
8,
198
] | 2.277994 | 6,939 |
'''aula de tkinter I'''
from tkinter import *
#dá nome ao quadro principal
quadro = Tk()
#dá um tamanho ao quadro
quadro.geometry("800x600")
#dá o titulo na janela do programa
quadro.title("primeiro programa pos retorno!")
#faz o quadro iniciar
# sem isso o programa não abre
quadro.mainloop()
|
[
7061,
6,
2518,
64,
390,
256,
74,
3849,
314,
7061,
6,
198,
198,
6738,
256,
74,
3849,
1330,
1635,
198,
198,
2,
67,
6557,
299,
462,
257,
78,
15094,
305,
10033,
198,
47003,
305,
796,
309,
74,
3419,
198,
198,
2,
67,
6557,
23781,
256,
10546,
8873,
257,
78,
15094,
305,
198,
47003,
305,
13,
469,
15748,
7203,
7410,
87,
8054,
4943,
198,
198,
2,
67,
6557,
267,
5259,
43348,
12385,
42897,
10304,
466,
1430,
64,
198,
47003,
305,
13,
7839,
7203,
35505,
7058,
1430,
64,
1426,
1005,
46447,
2474,
8,
628,
198,
2,
69,
1031,
267,
15094,
305,
287,
291,
12571,
220,
198,
2,
5026,
318,
568,
267,
1430,
64,
299,
28749,
450,
260,
198,
47003,
305,
13,
12417,
26268,
3419,
628,
628,
628,
628,
628,
628,
628,
628,
628,
628,
628,
628
] | 2.41791 | 134 |
#This script Imports Game Data from ESPN, and Odds from the ODDS-API, and then imports them into a MySQL table, example in workbench here https://puu.sh/HOKCj/ce199eec8e.png
import mysql.connector
import requests
import json
import datetime
import time
#Connection to the MYSQL Server.
mydb = mysql.connector.connect(
host="",
user="",
password="",
database="basketbet_data"
)
mycursor = mydb.cursor()
#Games List.
allGames=[]
#Gets the game Data from ESPN API given the link.
#Gets the Odds from the ODDS-API.
#Block to keep the script running then sleep for time 300 with counter set at 72 for Games every 5min | Odds every 6hr.
counter=72
startTime = time.time()
while True:
#Today, Yesterday and Tomorrow.
today = datetime.date.today()
yesterday = today + datetime.timedelta(days=-1)
tomorrow = today + datetime.timedelta(days=1)
#Removing the - from the dates for the URLs, then making the URLs.
todayShort = str(today).replace('-', '')
yesterdayShort = str(yesterday).replace('-', '')
tomorrowShort = str(tomorrow).replace('-', '')
yesterdayUrl = "http://site.api.espn.com/apis/site/v2/sports/basketball/nba/scoreboard?dates=" + yesterdayShort + '-' + yesterdayShort
todayUrl = "http://site.api.espn.com/apis/site/v2/sports/basketball/nba/scoreboard?dates=" + todayShort + '-' + todayShort
tomorrowUrl = "http://site.api.espn.com/apis/site/v2/sports/basketball/nba/scoreboard?dates=" + tomorrowShort + '-' + tomorrowShort
newGetter(yesterdayUrl)
newGetter(todayUrl)
newGetter(tomorrowUrl)
#Inserting or updating the table in MYSQL with the games.
c=0
updateCount=0
newGameCount=0
while c < len(allGames):
query_string = 'SELECT * FROM basketbet_data.all_games WHERE Game_ID = %s'
gameID = (str(allGames[c][0]),)
mycursor.execute(query_string, gameID)
if mycursor.fetchone():
updateCount+=1
query_list = [allGames[c][1], allGames[c][2], allGames[c][4], allGames[c][5], allGames[c][3], allGames[c][6], allGames[c][7], allGames[c][8], allGames[c][9], allGames[c][0]]
query_string = 'UPDATE all_games SET Game_Name = %s, Home_Team = %s, Away_Team = %s, Away_Score = %s, Home_Score = %s, Game_Date = %s, Game_Time = %s, Game_Period = %s, Game_Status = %s WHERE (Game_ID = %s)'
mycursor.execute(query_string, query_list)
mydb.commit()
else:
newGameCount+=1
query_string = "INSERT INTO basketbet_data.all_games (Game_ID, Game_Name, Home_Team, Home_Odds, Home_Score, Away_Team, Away_Odds, Away_Score, Game_Date, Game_Time, Game_Period, Game_Status) VALUES (%s, %s, %s, 0, %s, %s, 0, %s, %s, %s, %s, %s)"
mycursor.execute(query_string, allGames[c])
mydb.commit()
c+=1
#Prints to console what games were updated and what new games were inserted.
print('----------------------------------------')
print(str(updateCount) + ' GAMES UPDATED, and ' + str(newGameCount) + ' NEW GAMES inserted.')
print('----------------------------------------')
allGames=[]
#Counter for the Odds script.
if counter==72:
oddsGetter()
counter=0
else:
counter+=1
print('\n')
time.sleep(300 - ((time.time() - startTime) % 300))
|
[
2,
1212,
4226,
1846,
3742,
3776,
6060,
422,
10409,
11,
290,
20664,
82,
422,
262,
31245,
5258,
12,
17614,
11,
290,
788,
17944,
606,
656,
257,
33476,
3084,
11,
1672,
287,
670,
26968,
994,
3740,
1378,
79,
12303,
13,
1477,
14,
39,
11380,
34,
73,
14,
344,
19104,
68,
721,
23,
68,
13,
11134,
201,
198,
11748,
48761,
13,
8443,
273,
201,
198,
11748,
7007,
201,
198,
11748,
33918,
201,
198,
11748,
4818,
8079,
201,
198,
11748,
640,
201,
198,
201,
198,
201,
198,
2,
32048,
284,
262,
337,
16309,
9711,
9652,
13,
201,
198,
1820,
9945,
796,
48761,
13,
8443,
273,
13,
8443,
7,
201,
198,
220,
2583,
2625,
1600,
201,
198,
220,
2836,
2625,
1600,
201,
198,
220,
9206,
2625,
1600,
201,
198,
220,
6831,
2625,
65,
11715,
11181,
62,
7890,
1,
201,
198,
220,
1267,
201,
198,
1820,
66,
21471,
796,
616,
9945,
13,
66,
21471,
3419,
201,
198,
201,
198,
201,
198,
2,
24474,
7343,
13,
201,
198,
439,
24474,
28,
21737,
201,
198,
2,
38,
1039,
262,
983,
6060,
422,
10409,
7824,
1813,
262,
2792,
13,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
201,
198,
2,
38,
1039,
262,
20664,
82,
422,
262,
31245,
5258,
12,
17614,
13,
201,
198,
201,
198,
201,
198,
2,
12235,
284,
1394,
262,
4226,
2491,
788,
3993,
329,
640,
5867,
351,
3753,
900,
379,
7724,
329,
5776,
790,
642,
1084,
930,
20664,
82,
790,
718,
11840,
13,
201,
198,
24588,
28,
4761,
201,
198,
9688,
7575,
796,
640,
13,
2435,
3419,
201,
198,
4514,
6407,
25,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
8888,
11,
34668,
290,
25939,
13,
201,
198,
220,
220,
220,
1909,
796,
4818,
8079,
13,
4475,
13,
40838,
3419,
201,
198,
220,
220,
220,
7415,
796,
1909,
1343,
4818,
8079,
13,
16514,
276,
12514,
7,
12545,
10779,
16,
8,
201,
198,
220,
220,
220,
9439,
796,
1909,
1343,
4818,
8079,
13,
16514,
276,
12514,
7,
12545,
28,
16,
8,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
8413,
5165,
262,
532,
422,
262,
9667,
329,
262,
32336,
11,
788,
1642,
262,
32336,
13,
201,
198,
220,
220,
220,
1909,
16438,
796,
965,
7,
40838,
737,
33491,
10786,
12,
3256,
10148,
8,
201,
198,
220,
220,
220,
7415,
16438,
796,
965,
7,
8505,
6432,
737,
33491,
10786,
12,
3256,
10148,
8,
201,
198,
220,
220,
220,
9439,
16438,
796,
965,
7,
39532,
6254,
737,
33491,
10786,
12,
3256,
10148,
8,
201,
198,
220,
220,
220,
7415,
28165,
796,
366,
4023,
1378,
15654,
13,
15042,
13,
9774,
77,
13,
785,
14,
499,
271,
14,
15654,
14,
85,
17,
14,
32945,
14,
21265,
14,
77,
7012,
14,
26675,
3526,
30,
19581,
2625,
1343,
7415,
16438,
1343,
705,
19355,
1343,
7415,
16438,
201,
198,
220,
220,
220,
1909,
28165,
796,
366,
4023,
1378,
15654,
13,
15042,
13,
9774,
77,
13,
785,
14,
499,
271,
14,
15654,
14,
85,
17,
14,
32945,
14,
21265,
14,
77,
7012,
14,
26675,
3526,
30,
19581,
2625,
1343,
1909,
16438,
1343,
705,
19355,
1343,
1909,
16438,
201,
198,
220,
220,
220,
9439,
28165,
796,
366,
4023,
1378,
15654,
13,
15042,
13,
9774,
77,
13,
785,
14,
499,
271,
14,
15654,
14,
85,
17,
14,
32945,
14,
21265,
14,
77,
7012,
14,
26675,
3526,
30,
19581,
2625,
1343,
9439,
16438,
1343,
705,
19355,
1343,
9439,
16438,
201,
198,
220,
220,
220,
649,
3855,
353,
7,
8505,
6432,
28165,
8,
201,
198,
220,
220,
220,
649,
3855,
353,
7,
40838,
28165,
8,
201,
198,
220,
220,
220,
649,
3855,
353,
7,
39532,
6254,
28165,
8,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
44402,
278,
393,
19698,
262,
3084,
287,
337,
16309,
9711,
351,
262,
1830,
13,
201,
198,
220,
220,
220,
269,
28,
15,
201,
198,
220,
220,
220,
4296,
12332,
28,
15,
201,
198,
220,
220,
220,
649,
8777,
12332,
28,
15,
201,
198,
220,
220,
220,
981,
269,
1279,
18896,
7,
439,
24474,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
8841,
796,
705,
46506,
1635,
16034,
7988,
11181,
62,
7890,
13,
439,
62,
19966,
33411,
3776,
62,
2389,
796,
4064,
82,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
983,
2389,
796,
357,
2536,
7,
439,
24474,
58,
66,
7131,
15,
46570,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
616,
66,
21471,
13,
41049,
7,
22766,
62,
8841,
11,
983,
2389,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
616,
66,
21471,
13,
69,
7569,
505,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4296,
12332,
47932,
16,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
4868,
796,
685,
439,
24474,
58,
66,
7131,
16,
4357,
477,
24474,
58,
66,
7131,
17,
4357,
477,
24474,
58,
66,
7131,
19,
4357,
477,
24474,
58,
66,
7131,
20,
4357,
477,
24474,
58,
66,
7131,
18,
4357,
477,
24474,
58,
66,
7131,
21,
4357,
477,
24474,
58,
66,
7131,
22,
4357,
477,
24474,
58,
66,
7131,
23,
4357,
477,
24474,
58,
66,
7131,
24,
4357,
477,
24474,
58,
66,
7131,
15,
11907,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
8841,
796,
705,
16977,
477,
62,
19966,
25823,
3776,
62,
5376,
796,
4064,
82,
11,
5995,
62,
15592,
796,
4064,
82,
11,
21986,
62,
15592,
796,
4064,
82,
11,
21986,
62,
26595,
796,
4064,
82,
11,
5995,
62,
26595,
796,
4064,
82,
11,
3776,
62,
10430,
796,
4064,
82,
11,
3776,
62,
7575,
796,
4064,
82,
11,
3776,
62,
5990,
2101,
796,
4064,
82,
11,
3776,
62,
19580,
796,
4064,
82,
33411,
357,
8777,
62,
2389,
796,
4064,
82,
33047,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
616,
66,
21471,
13,
41049,
7,
22766,
62,
8841,
11,
12405,
62,
4868,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
616,
9945,
13,
41509,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
8777,
12332,
47932,
16,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
8841,
796,
366,
20913,
17395,
39319,
7988,
11181,
62,
7890,
13,
439,
62,
19966,
357,
8777,
62,
2389,
11,
3776,
62,
5376,
11,
5995,
62,
15592,
11,
5995,
62,
46,
33714,
11,
5995,
62,
26595,
11,
21986,
62,
15592,
11,
21986,
62,
46,
33714,
11,
21986,
62,
26595,
11,
3776,
62,
10430,
11,
3776,
62,
7575,
11,
3776,
62,
5990,
2101,
11,
3776,
62,
19580,
8,
26173,
35409,
37633,
82,
11,
4064,
82,
11,
4064,
82,
11,
657,
11,
4064,
82,
11,
4064,
82,
11,
657,
11,
4064,
82,
11,
4064,
82,
11,
4064,
82,
11,
4064,
82,
11,
4064,
82,
16725,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
616,
66,
21471,
13,
41049,
7,
22766,
62,
8841,
11,
477,
24474,
58,
66,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
616,
9945,
13,
41509,
3419,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
269,
47932,
16,
201,
198,
201,
198,
220,
220,
220,
1303,
18557,
82,
284,
8624,
644,
1830,
547,
6153,
290,
644,
649,
1830,
547,
18846,
13,
201,
198,
220,
220,
220,
3601,
10786,
3880,
982,
11537,
201,
198,
220,
220,
220,
3601,
7,
2536,
7,
19119,
12332,
8,
1343,
705,
402,
29559,
471,
49316,
11,
290,
705,
1343,
965,
7,
3605,
8777,
12332,
8,
1343,
705,
12682,
402,
29559,
18846,
2637,
8,
201,
198,
220,
220,
220,
3601,
10786,
3880,
982,
11537,
201,
198,
220,
220,
220,
477,
24474,
28,
21737,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
31694,
329,
262,
20664,
82,
4226,
13,
201,
198,
220,
220,
220,
611,
3753,
855,
4761,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
10402,
3855,
353,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3753,
28,
15,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3753,
47932,
16,
201,
198,
201,
198,
220,
220,
220,
3601,
10786,
59,
77,
11537,
201,
198,
220,
220,
220,
640,
13,
42832,
7,
6200,
532,
14808,
2435,
13,
2435,
3419,
532,
923,
7575,
8,
4064,
5867,
4008
] | 2.405726 | 1,432 |
from models import news
|
[
6738,
4981,
1330,
1705,
628,
628
] | 4.5 | 6 |
"""
Utilities for creating simulated data sets.
"""
from typing import Optional, Sequence
import numpy as np
import pandas as pd
from scipy.linalg import toeplitz
from ..api import AllTracker
__all__ = ["sim_data"]
__tracker = AllTracker(globals())
def sim_data(
n: int = 100,
intercept: float = -5,
two_way_coef: Optional[float] = None,
linear_vars: int = 10,
linear_var_coef: Optional[Sequence[float]] = None,
noise_vars: int = 0,
corr_vars: int = 0,
corr_type: str = "AR1",
corr_value: float = 0,
surg_err: float = 0.05,
bin_var_p: float = 0,
bin_coef: float = 0,
outcome: str = "classification",
regression_err: Optional[float] = None,
seed_val: int = 4763546,
) -> pd.DataFrame:
"""
Simulate data for classification or regression that includes an interaction between
two linear features, and some non-linear and linear features.
Noise variables, correlated variables that are not predictive and surrogate features
which are just derived from features that are predictive are also added.
This function is for the most part a direct translation of the ``twoClassSim``
function from the R package caret -- the option for an ordinal outcome and binary
outcome mis-labelling were omitted. Full credit for the approach used for simulating
binary classification data goes to the authors and contributors of caret
[`Kuhn, M. (2008). Caret package. Journal of Statistical Software, 28(5).
<https://rdrr.io/cran/caret/man/twoClassSim.html>`_]
Key modifications compared to the *R* implementation:
1. The ordinal outcome option has not been translated
2. Mis-labelling of the binary outcome has not been translated
3. The addition of a linear feature that is a copy of another used in the linear
predictor with a small amount of noise has been added to allow for the study
of variable surrogacy
4. Option for a binary predictor and surrogate has been added
5. Toggle option for regression versus classification has been added
6. Arguments for the coefficients of primary predictors of interest has been added
:param n: number of observations
:param intercept: value for the intercept which can be modified to generate class
imbalance
:param two_way_coef: list of three coefficients: two linear terms and an
interaction effect
:param linear_vars: number of linear features
:param linear_var_coef: an optional list of coefficients for linear features if
the default is not desired
:param noise_vars: number of unrelated independent noise features (do not
contribute to the linear predictor)
:param corr_vars: number of unrelated correlated noise features (do not contribute
to the linear predictor)
:param corr_type: type of correlation (exchangeable or auto-regressive) for
correlated noise features
:param corr_value: correlation for correlated noise features
:param surg_err: degree of noise added to first linear predictor
:param bin_var_p: prevalence for a binary feature to include in linear predictor
:param bin_coef: coefficient for the impact of binary feature on linear predictor
:param outcome: can be either classification for a binary outcome or regression
for a continuous outcome
:param regression_err: the error to be used in simulating a regression outcome
:param seed_val: set a seed for reproducibility
:return: data frame containing the simulated features and target for classification
"""
# set seed
np.random.seed(seed=seed_val)
# add two correlated normal features for use in creating an interaction term in the
# linear predictor
sigma = np.array([[2, 1.3], [1.3, 2]])
mu = [0, 0]
tmp_data = pd.DataFrame(
np.random.multivariate_normal(mu, sigma, size=n),
columns=["TwoFactor1", "TwoFactor2"],
)
# add independent linear features that contribute to the linear predictor
if linear_vars > 0:
lin_cols = ["Linear" + str(x) for x in range(1, linear_vars + 1)]
tmp_data = pd.concat(
[
tmp_data,
pd.DataFrame(np.random.normal(size=(n, linear_vars)), columns=lin_cols),
],
axis=1,
)
else:
lin_cols = None
# add non-linear features that contribute to the linear predictor
tmp_data["Nonlinear1"] = pd.Series(np.random.uniform(low=-1.0, high=1.0, size=n))
tmp_data = pd.concat(
[
tmp_data,
pd.DataFrame(
np.random.uniform(size=(n, 2)), columns=["Nonlinear2", "Nonlinear3"]
),
],
axis=1,
)
# add independent noise features that do not contribute to the linear predictor
if noise_vars > 0:
noise_cols = ["Noise" + str(x) for x in range(1, noise_vars + 1)]
tmp_data = pd.concat(
[
tmp_data,
pd.DataFrame(
np.random.normal(size=(n, noise_vars)), columns=noise_cols
),
],
axis=1,
)
# add correlated noise features that do not contribute to the linear predictor
if corr_vars > 0:
if corr_type == "exch":
vc = corr_value * np.ones((corr_vars, corr_vars))
np.fill_diagonal(vc, 1)
elif corr_type == "AR1":
vc_values = corr_value ** np.arange(corr_vars)
vc = toeplitz(vc_values)
else:
raise ValueError(
f'arg corr_type must be "exch" or "AR1", but got {repr(corr_type)}'
)
corr_cols = ["Corr" + str(x) for x in range(1, corr_vars + 1)]
tmp_data = pd.concat(
[
tmp_data,
pd.DataFrame(
np.random.multivariate_normal(np.zeros(corr_vars), vc, size=n),
columns=corr_cols,
),
],
axis=1,
)
# add a surrogate linear feature that does not contribute to the linear predictor
if linear_vars > 0:
tmp_data["Linear1_prime"] = tmp_data["Linear1"] + np.random.normal(
0, surg_err, size=n
)
# add a binary feature that contributes to the linear predictor
if bin_var_p > 0:
tmp_data["Binary1"] = np.where(np.random.uniform(size=n) <= bin_var_p, 0, 1)
# generate linear predictor
if two_way_coef is None:
two_way_coef = [4, 4, 2]
lp = (
intercept
- two_way_coef[0] * tmp_data.TwoFactor1
+ two_way_coef[1] * tmp_data.TwoFactor2
+ two_way_coef[2] * tmp_data.TwoFactor1 * tmp_data.TwoFactor2
+ tmp_data.Nonlinear1 ** 3
+ 2 * np.exp(-6 * (tmp_data.Nonlinear1 - 0.3) ** 2)
+ 2 * np.sin(np.pi * tmp_data.Nonlinear2 * tmp_data.Nonlinear3)
)
# add independent linear features to the linear predictor if required
if linear_vars > 0:
if linear_var_coef is None:
lin_coef = np.linspace(linear_vars, 1, num=linear_vars) / 4
neg_idx = list(range(1, linear_vars, 2))
lin_coef[neg_idx] *= -1
lp += tmp_data[lin_cols].dot(lin_coef)
elif linear_var_coef is not None:
if linear_vars != len(linear_var_coef):
raise ValueError(
"User defined linear feature coefficient list must be of length "
f"{linear_vars}"
)
lp += tmp_data[lin_cols].dot(linear_var_coef)
# add binary feature to the linear predictor if required
if bin_var_p > 0:
lp += bin_coef * tmp_data["Binary1"]
tmp_data["Binary1_prime"] = 1 - tmp_data["Binary1"]
# create classification outcome from linear predictor
if outcome == "classification":
# convert to a probability
prob = 1 / (1 + np.exp(-lp))
# generate target
tmp_data["target"] = np.where(prob <= np.random.uniform(size=n), 0, 1)
# create regression outcome
elif outcome == "regression":
# continuous outcome based on linear predictor
tmp_data["target"] = np.random.normal(lp, regression_err, size=n)
return tmp_data
__tracker.validate()
|
[
37811,
198,
18274,
2410,
329,
4441,
28590,
1366,
5621,
13,
198,
37811,
198,
6738,
19720,
1330,
32233,
11,
45835,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
355,
279,
67,
198,
6738,
629,
541,
88,
13,
75,
1292,
70,
1330,
21189,
489,
4224,
198,
198,
6738,
11485,
15042,
1330,
1439,
35694,
198,
198,
834,
439,
834,
796,
14631,
14323,
62,
7890,
8973,
628,
198,
834,
2213,
10735,
796,
1439,
35694,
7,
4743,
672,
874,
28955,
628,
198,
4299,
985,
62,
7890,
7,
198,
220,
220,
220,
299,
25,
493,
796,
1802,
11,
198,
220,
220,
220,
15788,
25,
12178,
796,
532,
20,
11,
198,
220,
220,
220,
734,
62,
1014,
62,
1073,
891,
25,
32233,
58,
22468,
60,
796,
6045,
11,
198,
220,
220,
220,
14174,
62,
85,
945,
25,
493,
796,
838,
11,
198,
220,
220,
220,
14174,
62,
7785,
62,
1073,
891,
25,
32233,
58,
44015,
594,
58,
22468,
11907,
796,
6045,
11,
198,
220,
220,
220,
7838,
62,
85,
945,
25,
493,
796,
657,
11,
198,
220,
220,
220,
1162,
81,
62,
85,
945,
25,
493,
796,
657,
11,
198,
220,
220,
220,
1162,
81,
62,
4906,
25,
965,
796,
366,
1503,
16,
1600,
198,
220,
220,
220,
1162,
81,
62,
8367,
25,
12178,
796,
657,
11,
198,
220,
220,
220,
19797,
62,
8056,
25,
12178,
796,
657,
13,
2713,
11,
198,
220,
220,
220,
9874,
62,
7785,
62,
79,
25,
12178,
796,
657,
11,
198,
220,
220,
220,
9874,
62,
1073,
891,
25,
12178,
796,
657,
11,
198,
220,
220,
220,
8055,
25,
965,
796,
366,
4871,
2649,
1600,
198,
220,
220,
220,
20683,
62,
8056,
25,
32233,
58,
22468,
60,
796,
6045,
11,
198,
220,
220,
220,
9403,
62,
2100,
25,
493,
796,
604,
4304,
2327,
3510,
11,
198,
8,
4613,
279,
67,
13,
6601,
19778,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3184,
5039,
1366,
329,
17923,
393,
20683,
326,
3407,
281,
10375,
1022,
198,
220,
220,
220,
734,
14174,
3033,
11,
290,
617,
1729,
12,
29127,
290,
14174,
3033,
13,
628,
220,
220,
220,
30964,
9633,
11,
23551,
9633,
326,
389,
407,
33344,
290,
37660,
3033,
198,
220,
220,
220,
543,
389,
655,
10944,
422,
3033,
326,
389,
33344,
389,
635,
2087,
13,
628,
220,
220,
220,
770,
2163,
318,
329,
262,
749,
636,
257,
1277,
11059,
286,
262,
7559,
11545,
9487,
8890,
15506,
198,
220,
220,
220,
2163,
422,
262,
371,
5301,
1337,
83,
1377,
262,
3038,
329,
281,
2760,
1292,
8055,
290,
13934,
198,
220,
220,
220,
8055,
2984,
12,
23912,
9417,
547,
22532,
13,
6462,
3884,
329,
262,
3164,
973,
329,
985,
8306,
198,
220,
220,
220,
13934,
17923,
1366,
2925,
284,
262,
7035,
290,
20420,
286,
1337,
83,
198,
220,
220,
220,
685,
63,
42,
7456,
77,
11,
337,
13,
357,
11528,
737,
7276,
83,
5301,
13,
4913,
286,
34931,
10442,
11,
2579,
7,
20,
737,
198,
220,
220,
220,
1279,
5450,
1378,
4372,
21062,
13,
952,
14,
66,
2596,
14,
6651,
83,
14,
805,
14,
11545,
9487,
8890,
13,
6494,
29,
63,
62,
60,
628,
220,
220,
220,
7383,
19008,
3688,
284,
262,
1635,
49,
9,
7822,
25,
628,
220,
220,
220,
352,
13,
220,
383,
2760,
1292,
8055,
3038,
468,
407,
587,
14251,
198,
220,
220,
220,
362,
13,
220,
14136,
12,
23912,
9417,
286,
262,
13934,
8055,
468,
407,
587,
14251,
198,
220,
220,
220,
513,
13,
220,
383,
3090,
286,
257,
14174,
3895,
326,
318,
257,
4866,
286,
1194,
973,
287,
262,
14174,
198,
220,
220,
220,
220,
220,
220,
220,
41568,
351,
257,
1402,
2033,
286,
7838,
468,
587,
2087,
284,
1249,
329,
262,
2050,
198,
220,
220,
220,
220,
220,
220,
220,
286,
7885,
27552,
1590,
198,
220,
220,
220,
604,
13,
220,
16018,
329,
257,
13934,
41568,
290,
37660,
468,
587,
2087,
198,
220,
220,
220,
642,
13,
220,
34098,
3038,
329,
20683,
9051,
17923,
468,
587,
2087,
198,
220,
220,
220,
718,
13,
220,
20559,
2886,
329,
262,
44036,
286,
4165,
4331,
669,
286,
1393,
468,
587,
2087,
628,
220,
220,
220,
1058,
17143,
299,
25,
1271,
286,
13050,
198,
220,
220,
220,
1058,
17143,
15788,
25,
1988,
329,
262,
15788,
543,
460,
307,
9518,
284,
7716,
1398,
198,
220,
220,
220,
220,
220,
220,
220,
32556,
198,
220,
220,
220,
1058,
17143,
734,
62,
1014,
62,
1073,
891,
25,
1351,
286,
1115,
44036,
25,
734,
14174,
2846,
290,
281,
198,
220,
220,
220,
220,
220,
220,
220,
10375,
1245,
198,
220,
220,
220,
1058,
17143,
14174,
62,
85,
945,
25,
1271,
286,
14174,
3033,
198,
220,
220,
220,
1058,
17143,
14174,
62,
7785,
62,
1073,
891,
25,
281,
11902,
1351,
286,
44036,
329,
14174,
3033,
611,
198,
220,
220,
220,
220,
220,
220,
220,
262,
4277,
318,
407,
10348,
198,
220,
220,
220,
1058,
17143,
7838,
62,
85,
945,
25,
1271,
286,
19938,
4795,
7838,
3033,
357,
4598,
407,
198,
220,
220,
220,
220,
220,
220,
220,
8676,
284,
262,
14174,
41568,
8,
198,
220,
220,
220,
1058,
17143,
1162,
81,
62,
85,
945,
25,
1271,
286,
19938,
23551,
7838,
3033,
357,
4598,
407,
8676,
198,
220,
220,
220,
220,
220,
220,
220,
284,
262,
14174,
41568,
8,
198,
220,
220,
220,
1058,
17143,
1162,
81,
62,
4906,
25,
2099,
286,
16096,
357,
1069,
3803,
540,
393,
8295,
12,
2301,
3314,
8,
329,
198,
220,
220,
220,
220,
220,
220,
220,
23551,
7838,
3033,
198,
220,
220,
220,
1058,
17143,
1162,
81,
62,
8367,
25,
16096,
329,
23551,
7838,
3033,
198,
220,
220,
220,
1058,
17143,
19797,
62,
8056,
25,
4922,
286,
7838,
2087,
284,
717,
14174,
41568,
198,
220,
220,
220,
1058,
17143,
9874,
62,
7785,
62,
79,
25,
16815,
329,
257,
13934,
3895,
284,
2291,
287,
14174,
41568,
198,
220,
220,
220,
1058,
17143,
9874,
62,
1073,
891,
25,
35381,
329,
262,
2928,
286,
13934,
3895,
319,
14174,
41568,
198,
220,
220,
220,
1058,
17143,
8055,
25,
460,
307,
2035,
17923,
329,
257,
13934,
8055,
393,
20683,
198,
220,
220,
220,
220,
220,
220,
220,
329,
257,
12948,
8055,
198,
220,
220,
220,
1058,
17143,
20683,
62,
8056,
25,
262,
4049,
284,
307,
973,
287,
985,
8306,
257,
20683,
8055,
198,
220,
220,
220,
1058,
17143,
9403,
62,
2100,
25,
900,
257,
9403,
329,
8186,
66,
2247,
198,
220,
220,
220,
1058,
7783,
25,
1366,
5739,
7268,
262,
28590,
3033,
290,
2496,
329,
17923,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1303,
900,
9403,
198,
220,
220,
220,
45941,
13,
25120,
13,
28826,
7,
28826,
28,
28826,
62,
2100,
8,
628,
220,
220,
220,
1303,
751,
734,
23551,
3487,
3033,
329,
779,
287,
4441,
281,
10375,
3381,
287,
262,
198,
220,
220,
220,
1303,
14174,
41568,
198,
220,
220,
220,
264,
13495,
796,
45941,
13,
18747,
26933,
58,
17,
11,
352,
13,
18,
4357,
685,
16,
13,
18,
11,
362,
11907,
8,
198,
220,
220,
220,
38779,
796,
685,
15,
11,
657,
60,
198,
220,
220,
220,
45218,
62,
7890,
796,
279,
67,
13,
6601,
19778,
7,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
25120,
13,
16680,
42524,
62,
11265,
7,
30300,
11,
264,
13495,
11,
2546,
28,
77,
828,
198,
220,
220,
220,
220,
220,
220,
220,
15180,
28,
14692,
7571,
41384,
16,
1600,
366,
7571,
41384,
17,
33116,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
1303,
751,
4795,
14174,
3033,
326,
8676,
284,
262,
14174,
41568,
198,
220,
220,
220,
611,
14174,
62,
85,
945,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
9493,
62,
4033,
82,
796,
14631,
14993,
451,
1,
1343,
965,
7,
87,
8,
329,
2124,
287,
2837,
7,
16,
11,
14174,
62,
85,
945,
1343,
352,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
62,
7890,
796,
279,
67,
13,
1102,
9246,
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,
45218,
62,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
67,
13,
6601,
19778,
7,
37659,
13,
25120,
13,
11265,
7,
7857,
16193,
77,
11,
14174,
62,
85,
945,
36911,
15180,
28,
2815,
62,
4033,
82,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16488,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
9493,
62,
4033,
82,
796,
6045,
628,
220,
220,
220,
1303,
751,
1729,
12,
29127,
3033,
326,
8676,
284,
262,
14174,
41568,
198,
220,
220,
220,
45218,
62,
7890,
14692,
15419,
29127,
16,
8973,
796,
279,
67,
13,
27996,
7,
37659,
13,
25120,
13,
403,
6933,
7,
9319,
10779,
16,
13,
15,
11,
1029,
28,
16,
13,
15,
11,
2546,
28,
77,
4008,
198,
220,
220,
220,
45218,
62,
7890,
796,
279,
67,
13,
1102,
9246,
7,
198,
220,
220,
220,
220,
220,
220,
220,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45218,
62,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
67,
13,
6601,
19778,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
25120,
13,
403,
6933,
7,
7857,
16193,
77,
11,
362,
36911,
15180,
28,
14692,
15419,
29127,
17,
1600,
366,
15419,
29127,
18,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
16488,
28,
16,
11,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
1303,
751,
4795,
7838,
3033,
326,
466,
407,
8676,
284,
262,
14174,
41568,
198,
220,
220,
220,
611,
7838,
62,
85,
945,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
7838,
62,
4033,
82,
796,
14631,
2949,
786,
1,
1343,
965,
7,
87,
8,
329,
2124,
287,
2837,
7,
16,
11,
7838,
62,
85,
945,
1343,
352,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
62,
7890,
796,
279,
67,
13,
1102,
9246,
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,
45218,
62,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
67,
13,
6601,
19778,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
25120,
13,
11265,
7,
7857,
16193,
77,
11,
7838,
62,
85,
945,
36911,
15180,
28,
3919,
786,
62,
4033,
82,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16488,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
1303,
751,
23551,
7838,
3033,
326,
466,
407,
8676,
284,
262,
14174,
41568,
198,
220,
220,
220,
611,
1162,
81,
62,
85,
945,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1162,
81,
62,
4906,
6624,
366,
1069,
354,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
66,
796,
1162,
81,
62,
8367,
1635,
45941,
13,
1952,
19510,
10215,
81,
62,
85,
945,
11,
1162,
81,
62,
85,
945,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
20797,
62,
10989,
27923,
7,
28435,
11,
352,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
1162,
81,
62,
4906,
6624,
366,
1503,
16,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
66,
62,
27160,
796,
1162,
81,
62,
8367,
12429,
45941,
13,
283,
858,
7,
10215,
81,
62,
85,
945,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
66,
796,
21189,
489,
4224,
7,
28435,
62,
27160,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
6,
853,
1162,
81,
62,
4906,
1276,
307,
366,
1069,
354,
1,
393,
366,
1503,
16,
1600,
475,
1392,
1391,
260,
1050,
7,
10215,
81,
62,
4906,
38165,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
1162,
81,
62,
4033,
82,
796,
14631,
10606,
81,
1,
1343,
965,
7,
87,
8,
329,
2124,
287,
2837,
7,
16,
11,
1162,
81,
62,
85,
945,
1343,
352,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
62,
7890,
796,
279,
67,
13,
1102,
9246,
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,
45218,
62,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
67,
13,
6601,
19778,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
25120,
13,
16680,
42524,
62,
11265,
7,
37659,
13,
9107,
418,
7,
10215,
81,
62,
85,
945,
828,
410,
66,
11,
2546,
28,
77,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15180,
28,
10215,
81,
62,
4033,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16488,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
1303,
751,
257,
37660,
14174,
3895,
326,
857,
407,
8676,
284,
262,
14174,
41568,
198,
220,
220,
220,
611,
14174,
62,
85,
945,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
62,
7890,
14692,
14993,
451,
16,
62,
35505,
8973,
796,
45218,
62,
7890,
14692,
14993,
451,
16,
8973,
1343,
45941,
13,
25120,
13,
11265,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
11,
19797,
62,
8056,
11,
2546,
28,
77,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
1303,
751,
257,
13934,
3895,
326,
22625,
284,
262,
14174,
41568,
198,
220,
220,
220,
611,
9874,
62,
7785,
62,
79,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
62,
7890,
14692,
33,
3219,
16,
8973,
796,
45941,
13,
3003,
7,
37659,
13,
25120,
13,
403,
6933,
7,
7857,
28,
77,
8,
19841,
9874,
62,
7785,
62,
79,
11,
657,
11,
352,
8,
628,
220,
220,
220,
1303,
7716,
14174,
41568,
198,
220,
220,
220,
611,
734,
62,
1014,
62,
1073,
891,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
734,
62,
1014,
62,
1073,
891,
796,
685,
19,
11,
604,
11,
362,
60,
628,
220,
220,
220,
300,
79,
796,
357,
198,
220,
220,
220,
220,
220,
220,
220,
15788,
198,
220,
220,
220,
220,
220,
220,
220,
532,
734,
62,
1014,
62,
1073,
891,
58,
15,
60,
1635,
45218,
62,
7890,
13,
7571,
41384,
16,
198,
220,
220,
220,
220,
220,
220,
220,
1343,
734,
62,
1014,
62,
1073,
891,
58,
16,
60,
1635,
45218,
62,
7890,
13,
7571,
41384,
17,
198,
220,
220,
220,
220,
220,
220,
220,
1343,
734,
62,
1014,
62,
1073,
891,
58,
17,
60,
1635,
45218,
62,
7890,
13,
7571,
41384,
16,
1635,
45218,
62,
7890,
13,
7571,
41384,
17,
198,
220,
220,
220,
220,
220,
220,
220,
1343,
45218,
62,
7890,
13,
15419,
29127,
16,
12429,
513,
198,
220,
220,
220,
220,
220,
220,
220,
1343,
362,
1635,
45941,
13,
11201,
32590,
21,
1635,
357,
22065,
62,
7890,
13,
15419,
29127,
16,
532,
657,
13,
18,
8,
12429,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1343,
362,
1635,
45941,
13,
31369,
7,
37659,
13,
14415,
1635,
45218,
62,
7890,
13,
15419,
29127,
17,
1635,
45218,
62,
7890,
13,
15419,
29127,
18,
8,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
1303,
751,
4795,
14174,
3033,
284,
262,
14174,
41568,
611,
2672,
198,
220,
220,
220,
611,
14174,
62,
85,
945,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
14174,
62,
7785,
62,
1073,
891,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9493,
62,
1073,
891,
796,
45941,
13,
21602,
10223,
7,
29127,
62,
85,
945,
11,
352,
11,
997,
28,
29127,
62,
85,
945,
8,
1220,
604,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2469,
62,
312,
87,
796,
1351,
7,
9521,
7,
16,
11,
14174,
62,
85,
945,
11,
362,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9493,
62,
1073,
891,
58,
12480,
62,
312,
87,
60,
1635,
28,
532,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
79,
15853,
45218,
62,
7890,
58,
2815,
62,
4033,
82,
4083,
26518,
7,
2815,
62,
1073,
891,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
14174,
62,
7785,
62,
1073,
891,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
14174,
62,
85,
945,
14512,
18896,
7,
29127,
62,
7785,
62,
1073,
891,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
12982,
5447,
14174,
3895,
35381,
1351,
1276,
307,
286,
4129,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
1,
90,
29127,
62,
85,
945,
36786,
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,
300,
79,
15853,
45218,
62,
7890,
58,
2815,
62,
4033,
82,
4083,
26518,
7,
29127,
62,
7785,
62,
1073,
891,
8,
628,
220,
220,
220,
1303,
751,
13934,
3895,
284,
262,
14174,
41568,
611,
2672,
198,
220,
220,
220,
611,
9874,
62,
7785,
62,
79,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
300,
79,
15853,
9874,
62,
1073,
891,
1635,
45218,
62,
7890,
14692,
33,
3219,
16,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
62,
7890,
14692,
33,
3219,
16,
62,
35505,
8973,
796,
352,
532,
45218,
62,
7890,
14692,
33,
3219,
16,
8973,
628,
220,
220,
220,
1303,
2251,
17923,
8055,
422,
14174,
41568,
198,
220,
220,
220,
611,
8055,
6624,
366,
4871,
2649,
1298,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
10385,
284,
257,
12867,
198,
220,
220,
220,
220,
220,
220,
220,
1861,
796,
352,
1220,
357,
16,
1343,
45941,
13,
11201,
32590,
34431,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
7716,
2496,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
62,
7890,
14692,
16793,
8973,
796,
45941,
13,
3003,
7,
1676,
65,
19841,
45941,
13,
25120,
13,
403,
6933,
7,
7857,
28,
77,
828,
657,
11,
352,
8,
628,
220,
220,
220,
1303,
2251,
20683,
8055,
198,
220,
220,
220,
1288,
361,
8055,
6624,
366,
2301,
2234,
1298,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
12948,
8055,
1912,
319,
14174,
41568,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
62,
7890,
14692,
16793,
8973,
796,
45941,
13,
25120,
13,
11265,
7,
34431,
11,
20683,
62,
8056,
11,
2546,
28,
77,
8,
628,
220,
220,
220,
1441,
45218,
62,
7890,
628,
198,
834,
2213,
10735,
13,
12102,
378,
3419,
198
] | 2.443789 | 3,389 |
# Copyright (c) 2021 - present / Neuralmagic, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Base classes for describing models and layers in ML framework neural networks.
"""
import json
from abc import ABC, abstractmethod
from collections import OrderedDict
from copy import deepcopy
from enum import Enum
from typing import Any, Dict, List, Optional, Set, Union
import numpy
from pydantic import BaseModel, Field, root_validator
from sparseml.utils import clean_path, create_parent_dirs
__all__ = [
"LayerInfo",
"Result",
"ModelResult",
"PruningSensitivityResult",
"PruningSensitivityResultTypes",
"ModelInfo",
]
class LayerInfo(BaseModel):
"""
Class for storing properties about a layer in a model
"""
name: str = Field(
title="name",
description="unique name of the layer within its model",
)
op_type: str = Field(
title="op_type",
description="type of layer, i.e. 'conv', 'linear'",
)
params: Optional[int] = Field(
title="params",
default=None,
description=(
"number of non-bias parameters in the layer. must be included "
"for prunable layers"
),
)
bias_params: Optional[int] = Field(
title="bias_params",
default=None,
description="number of bias parameters in the layer",
)
prunable: bool = Field(
title="prunable",
default=False,
description="True if the layers non-bias parameters can be pruned",
)
flops: Optional[int] = Field(
title="flops",
default=None,
description="number of float operations within the layer",
)
execution_order: int = Field(
title="execution_order",
default=-1,
description="execution order of the layer within the model",
)
attributes: Optional[Dict[str, Any]] = Field(
title="attributes",
default=None,
description="dictionary of string attribute names to their values",
)
@root_validator(pre=True)
@classmethod
def linear_layer(
cls, name: str, in_channels: int, out_channels: int, bias: bool, **kwargs
) -> "LayerInfo":
"""
creates a LayerInfo object for a fully connected linear layer
:param name: unique name of the layer within its model
:param in_channels: number of input channels
:param out_channels: number of output channels
:param bias: True if the linear layer has a bias add included, False otherwise
:param kwargs: additional kwargs to be passed to the LayerInfo constructor
:return:
"""
attributes = {
"in_channels": in_channels,
"out_channels": out_channels,
}
attributes.update(kwargs.get("attributes", {}))
kwargs["attributes"] = attributes
return cls(
name=name,
op_type="linear",
params=in_channels * out_channels,
bias_params=out_channels if bias else None,
prunable=True,
**kwargs, # TODO: add FLOPS calculation
)
@classmethod
def conv_layer(
cls,
name: str,
in_channels: int,
out_channels: int,
kernel_shape: List[int],
bias: bool,
groups: int = 1,
stride: Union[int, List[int]] = 1,
padding: List[int] = None,
**kwargs,
) -> "LayerInfo":
"""
creates a LayerInfo object for a fully connected convolutional layer
:param name: unique name of the layer within its model
:param in_channels: number of input channels
:param out_channels: number of output channels
:param kernel_shape: kernel shape of this layer, given as a list
:param bias: True if the linear layer has a bias add included, False otherwise
:param groups: number of groups that input and output channels are divided into.
default is 1
:param stride: stride for this convolution, can be int or tuple of ints. default
is 1
:param padding: padding applied to each spatial axis. defualt is [0, 0, 0, 0]
:param kwargs: additional kwargs to be passed to the LayerInfo constructor
:return:
"""
attributes = {
"in_channels": in_channels,
"out_channels": out_channels,
"kernel_shape": kernel_shape,
"groups": groups,
"stride": stride,
"padding": padding if padding is not None else [0, 0, 0, 0],
}
attributes.update(kwargs.get("attributes", {}))
kwargs["attributes"] = attributes
return cls(
name=name,
op_type="conv",
params=in_channels * out_channels * numpy.prod(kernel_shape) // groups,
bias_params=out_channels if bias else None,
prunable=True,
**kwargs, # TODO: add FLOPS calculation
)
class Result(BaseModel):
"""
Base class for storing the results of an analysis
"""
value: Any = Field(
title="value",
default=None,
description="initial value of the result",
)
attributes: Optional[Dict[str, Any]] = Field(
title="attributes",
default=None,
description="dict of attributes of this result",
)
class ModelResult(Result):
"""
Class for storing the results of an analysis for an entire model
"""
analysis_type: str = Field(
title="analysis_type",
description="name of the type of analysis that was performed",
)
layer_results: Dict[str, Result] = Field(
title="layer_results",
default_factory=dict,
description=(
"dict of layer results to initialize for this analysis. should map "
"layer name to Result object"
),
)
class PruningSensitivityResultTypes(Enum):
"""
Types of pruning sensitivity results standardized by SparseML, used as
ModelResult.analysis_type
"""
LOSS = "pruning_sensitivity_loss"
PERF = "pruning_sensitivity_perf"
class PruningSensitivityResult(ModelResult):
"""
Helper class for creating and updating results of pruning sensitivity analyses
:param analysis_type: PruningSensitivityResultTypes Enum value
of type of analysis this is
:param kwargs: optional args to be passed into model result constructor
"""
def add_layer_sparsity_result(self, layer_name: str, sparsity: float, value: Any):
"""
Adds a result of the given value for a given sparsity to the given layer name
:param layer_name: layer param name to add result for
:param sparsity: sparsity of the layer at which the sensitivity was measured
:param value: sensitivity value
"""
sparsity = str(sparsity)
if layer_name not in self.layer_results:
self.layer_results[layer_name] = Result(value={})
self.layer_results[layer_name].value[sparsity] = value
def add_model_sparsity_result(self, sparsity: float, value: Any):
"""
Adds a model result of the given value for a given sparsity
:param sparsity: sparsity of model at which the sensitivity was measured
:param value: sensitivity value
"""
sparsity = str(sparsity)
if self.value is None:
self.value = {}
self.value[sparsity] = value
def get_available_layer_sparsities(self) -> List[float]:
"""
:return: list of sparsity values available for all model layers
"""
available_sparsities = None
for result in self.layer_results.values():
sparsities = set(result.value.keys())
if available_sparsities is None:
available_sparsities = sparsities
else:
available_sparsities = available_sparsities.intersection(sparsities)
return [float(sparsity) for sparsity in sorted(available_sparsities)]
def get_layer_sparsity_score(self, layer_name: str, sparsity: float) -> float:
"""
:param layer_name: name of layer to get sparsity score for
:param sparsity: sparsity to measure score at
:return: sparsity score at the given sparsity such that higher scores correlate
to a less prunable layer
"""
result = self.layer_results[layer_name].value
sparsity = str(sparsity)
if sparsity not in result:
raise ValueError(f"No result for sparsity {sparsity} in layer {layer_name}")
baseline_sparsity = str(0.0 if 0.0 in result else min(result))
return (
result[sparsity]
if self.analysis_type is PruningSensitivityResultTypes.PERF
else result[sparsity] - result[baseline_sparsity]
)
_ANALYSIS_TYPE_TO_CLASS = {
PruningSensitivityResultTypes.LOSS.value: PruningSensitivityResult,
PruningSensitivityResultTypes.PERF.value: PruningSensitivityResult,
}
class ModelInfo(ABC):
"""
Base class for extracting and serializing model metadata, layers info, and
analysis results
:param model: framework specific model object to extract info for
:param metadata: optional dict of string metadata attributes to value. Default
is empty dict
"""
@classmethod
def from_dict(cls, dictionary: Dict[str, Any]):
"""
:param dictionary: dict serialized by `dict(ModelInfo(...))`
:return: ModelInfo object created from the given dict
"""
dictionary = deepcopy(dictionary)
if "layer_info" not in dictionary:
raise ValueError(
"ModelInfo objects serialized as a dict must include a 'layer_info' key"
)
layer_info = {
name: LayerInfo.parse_obj(info)
for name, info in dictionary["layer_info"].items()
}
model_info = cls(layer_info, metadata=dictionary.get("metadata", {}))
results = dictionary.get("analysis_results", [])
for result in results:
model_result = _model_result_from_dict(result)
model_info.add_analysis_result(model_result)
return model_info
@staticmethod
def load(file_path) -> "ModelInfo":
"""
:param file_path: file path to JSON file to load ModelInfo object from
:return: the loaded ModelInfo object
"""
file_path = clean_path(file_path)
with open(file_path, "r") as file:
model_info_dict = json.load(file)
return ModelInfo.from_dict(model_info_dict)
@property
def layer_info(self) -> "OrderedDict[str, LayerInfo]":
"""
:return: dict of unique layer name to LayerInfo object of the given layer
"""
return self._layer_info
@property
def analysis_results(self) -> List[ModelResult]:
"""
:return: list of analysis results run on this model
"""
return self._analysis_results
@abstractmethod
def extract_layer_info(self, model: Any) -> "OrderedDict[str, LayerInfo]":
"""
Abstract method for extracting an ordered dictionary of layer name to
completed LayerInfo object for the layer
:param model: model to extract LayerInfo information of
:return: ordered dictionary of layer name to LayerInfo object for the layer
"""
raise NotImplementedError()
def get_results_by_type(self, analysis_type: str) -> List[ModelResult]:
"""
:param analysis_type: type of analysis in ModelResult.analysis_type to
filter by
:return: list of analysis results of this model that match the given type
"""
return [
result
for result in self._analysis_results
if result.analysis_type == analysis_type
]
def get_prunable_param_names(self) -> Set[str]:
"""
:return: set of parameter names of all prunable layers in this ModelInfo
"""
return {
layer_name
for layer_name, layer_info in self.layer_info.items()
if layer_info.prunable
}
def to_dict(self) -> Dict[str, Any]:
"""
:return: dict representation of this ModelResult
"""
layer_info = {name: dict(info) for name, info in self._layer_info.items()}
analysis_results = [dict(result) for result in self._analysis_results]
return {
"metadata": self.metadata,
"layer_info": layer_info,
"analysis_results": analysis_results,
}
def save(self, file_path: str):
"""
saves the dict representation of this ModelInfo object as a JSON file
to the given file path
:param file_path: file path to save to
"""
create_parent_dirs(file_path)
with open(file_path, "w") as file:
json.dump(self.to_dict(), file)
@staticmethod
|
[
2,
15069,
357,
66,
8,
33448,
532,
1944,
1220,
47986,
32707,
11,
3457,
13,
1439,
6923,
33876,
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,
198,
2,
3788,
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,
14881,
6097,
329,
12059,
4981,
290,
11685,
287,
10373,
9355,
17019,
7686,
13,
198,
37811,
628,
198,
11748,
33918,
198,
6738,
450,
66,
1330,
9738,
11,
12531,
24396,
198,
6738,
17268,
1330,
14230,
1068,
35,
713,
198,
6738,
4866,
1330,
2769,
30073,
198,
6738,
33829,
1330,
2039,
388,
198,
6738,
19720,
1330,
4377,
11,
360,
713,
11,
7343,
11,
32233,
11,
5345,
11,
4479,
198,
198,
11748,
299,
32152,
198,
6738,
279,
5173,
5109,
1330,
7308,
17633,
11,
7663,
11,
6808,
62,
12102,
1352,
198,
198,
6738,
29877,
4029,
13,
26791,
1330,
3424,
62,
6978,
11,
2251,
62,
8000,
62,
15908,
82,
628,
198,
834,
439,
834,
796,
685,
198,
220,
220,
220,
366,
49925,
12360,
1600,
198,
220,
220,
220,
366,
23004,
1600,
198,
220,
220,
220,
366,
17633,
23004,
1600,
198,
220,
220,
220,
366,
47,
5143,
278,
50,
40545,
23004,
1600,
198,
220,
220,
220,
366,
47,
5143,
278,
50,
40545,
23004,
31431,
1600,
198,
220,
220,
220,
366,
17633,
12360,
1600,
198,
60,
628,
198,
4871,
34398,
12360,
7,
14881,
17633,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
5016,
329,
23069,
6608,
546,
257,
7679,
287,
257,
2746,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1438,
25,
965,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
3672,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
2625,
34642,
1438,
286,
262,
7679,
1626,
663,
2746,
1600,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
1034,
62,
4906,
25,
965,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
404,
62,
4906,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
2625,
4906,
286,
7679,
11,
1312,
13,
68,
13,
705,
42946,
3256,
705,
29127,
6,
1600,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
42287,
25,
32233,
58,
600,
60,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
37266,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
16193,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17618,
286,
1729,
12,
65,
4448,
10007,
287,
262,
7679,
13,
1276,
307,
3017,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1640,
778,
403,
540,
11685,
1,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
10690,
62,
37266,
25,
32233,
58,
600,
60,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
65,
4448,
62,
37266,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
2625,
17618,
286,
10690,
10007,
287,
262,
7679,
1600,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
778,
403,
540,
25,
20512,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
1050,
403,
540,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
2625,
17821,
611,
262,
11685,
1729,
12,
65,
4448,
10007,
460,
307,
778,
40881,
1600,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
781,
2840,
25,
32233,
58,
600,
60,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
2704,
2840,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
2625,
17618,
286,
12178,
4560,
1626,
262,
7679,
1600,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
9706,
62,
2875,
25,
493,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
18558,
1009,
62,
2875,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
10779,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
2625,
18558,
1009,
1502,
286,
262,
7679,
1626,
262,
2746,
1600,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
12608,
25,
32233,
58,
35,
713,
58,
2536,
11,
4377,
11907,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
1078,
7657,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
2625,
67,
14188,
286,
4731,
11688,
3891,
284,
511,
3815,
1600,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
2488,
15763,
62,
12102,
1352,
7,
3866,
28,
17821,
8,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
825,
14174,
62,
29289,
7,
198,
220,
220,
220,
220,
220,
220,
220,
537,
82,
11,
1438,
25,
965,
11,
287,
62,
354,
8961,
25,
493,
11,
503,
62,
354,
8961,
25,
493,
11,
10690,
25,
20512,
11,
12429,
46265,
22046,
198,
220,
220,
220,
1267,
4613,
366,
49925,
12360,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
8075,
257,
34398,
12360,
2134,
329,
257,
3938,
5884,
14174,
7679,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1438,
25,
3748,
1438,
286,
262,
7679,
1626,
663,
2746,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
287,
62,
354,
8961,
25,
1271,
286,
5128,
9619,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
503,
62,
354,
8961,
25,
1271,
286,
5072,
9619,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
10690,
25,
6407,
611,
262,
14174,
7679,
468,
257,
10690,
751,
3017,
11,
10352,
4306,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
479,
86,
22046,
25,
3224,
479,
86,
22046,
284,
307,
3804,
284,
262,
34398,
12360,
23772,
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,
12608,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
259,
62,
354,
8961,
1298,
287,
62,
354,
8961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
448,
62,
354,
8961,
1298,
503,
62,
354,
8961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
12608,
13,
19119,
7,
46265,
22046,
13,
1136,
7203,
1078,
7657,
1600,
23884,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
479,
86,
22046,
14692,
1078,
7657,
8973,
796,
12608,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
537,
82,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
28,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1034,
62,
4906,
2625,
29127,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42287,
28,
259,
62,
354,
8961,
1635,
503,
62,
354,
8961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10690,
62,
37266,
28,
448,
62,
354,
8961,
611,
10690,
2073,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
778,
403,
540,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12429,
46265,
22046,
11,
220,
1303,
16926,
46,
25,
751,
9977,
30737,
17952,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
825,
3063,
62,
29289,
7,
198,
220,
220,
220,
220,
220,
220,
220,
537,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
25,
965,
11,
198,
220,
220,
220,
220,
220,
220,
220,
287,
62,
354,
8961,
25,
493,
11,
198,
220,
220,
220,
220,
220,
220,
220,
503,
62,
354,
8961,
25,
493,
11,
198,
220,
220,
220,
220,
220,
220,
220,
9720,
62,
43358,
25,
7343,
58,
600,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
10690,
25,
20512,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2628,
25,
493,
796,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
33769,
25,
4479,
58,
600,
11,
7343,
58,
600,
11907,
796,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
24511,
25,
7343,
58,
600,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12429,
46265,
22046,
11,
198,
220,
220,
220,
1267,
4613,
366,
49925,
12360,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
8075,
257,
34398,
12360,
2134,
329,
257,
3938,
5884,
3063,
2122,
282,
7679,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1438,
25,
3748,
1438,
286,
262,
7679,
1626,
663,
2746,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
287,
62,
354,
8961,
25,
1271,
286,
5128,
9619,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
503,
62,
354,
8961,
25,
1271,
286,
5072,
9619,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
9720,
62,
43358,
25,
9720,
5485,
286,
428,
7679,
11,
1813,
355,
257,
1351,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
10690,
25,
6407,
611,
262,
14174,
7679,
468,
257,
10690,
751,
3017,
11,
10352,
4306,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2628,
25,
1271,
286,
2628,
326,
5128,
290,
5072,
9619,
389,
9086,
656,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
318,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
33769,
25,
33769,
329,
428,
3063,
2122,
11,
460,
307,
493,
393,
46545,
286,
493,
82,
13,
4277,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
24511,
25,
24511,
5625,
284,
1123,
21739,
16488,
13,
825,
723,
83,
318,
685,
15,
11,
657,
11,
657,
11,
657,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
479,
86,
22046,
25,
3224,
479,
86,
22046,
284,
307,
3804,
284,
262,
34398,
12360,
23772,
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,
12608,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
259,
62,
354,
8961,
1298,
287,
62,
354,
8961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
448,
62,
354,
8961,
1298,
503,
62,
354,
8961,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33885,
62,
43358,
1298,
9720,
62,
43358,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
24432,
1298,
2628,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
2536,
485,
1298,
33769,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
39231,
1298,
24511,
611,
24511,
318,
407,
6045,
2073,
685,
15,
11,
657,
11,
657,
11,
657,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
12608,
13,
19119,
7,
46265,
22046,
13,
1136,
7203,
1078,
7657,
1600,
23884,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
479,
86,
22046,
14692,
1078,
7657,
8973,
796,
12608,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
537,
82,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
28,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1034,
62,
4906,
2625,
42946,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42287,
28,
259,
62,
354,
8961,
1635,
503,
62,
354,
8961,
1635,
299,
32152,
13,
1676,
67,
7,
33885,
62,
43358,
8,
3373,
2628,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10690,
62,
37266,
28,
448,
62,
354,
8961,
611,
10690,
2073,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
778,
403,
540,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12429,
46265,
22046,
11,
220,
1303,
16926,
46,
25,
751,
9977,
30737,
17952,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
198,
4871,
25414,
7,
14881,
17633,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
7308,
1398,
329,
23069,
262,
2482,
286,
281,
3781,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1988,
25,
4377,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
8367,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
2625,
36733,
1988,
286,
262,
1255,
1600,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
12608,
25,
32233,
58,
35,
713,
58,
2536,
11,
4377,
11907,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
1078,
7657,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
2625,
11600,
286,
12608,
286,
428,
1255,
1600,
198,
220,
220,
220,
1267,
628,
198,
4871,
9104,
23004,
7,
23004,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
5016,
329,
23069,
262,
2482,
286,
281,
3781,
329,
281,
2104,
2746,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
3781,
62,
4906,
25,
965,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
20930,
62,
4906,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
2625,
3672,
286,
262,
2099,
286,
3781,
326,
373,
6157,
1600,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
7679,
62,
43420,
25,
360,
713,
58,
2536,
11,
25414,
60,
796,
7663,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
2625,
29289,
62,
43420,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
69,
9548,
28,
11600,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
16193,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
11600,
286,
7679,
2482,
284,
41216,
329,
428,
3781,
13,
815,
3975,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29289,
1438,
284,
25414,
2134,
1,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
1267,
628,
198,
4871,
1736,
46493,
50,
40545,
23004,
31431,
7,
4834,
388,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
24897,
286,
778,
46493,
14233,
2482,
25713,
416,
1338,
17208,
5805,
11,
973,
355,
198,
220,
220,
220,
9104,
23004,
13,
20930,
62,
4906,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
406,
18420,
796,
366,
1050,
46493,
62,
82,
40545,
62,
22462,
1,
198,
220,
220,
220,
19878,
37,
796,
366,
1050,
46493,
62,
82,
40545,
62,
525,
69,
1,
628,
198,
4871,
1736,
46493,
50,
40545,
23004,
7,
17633,
23004,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
5053,
525,
1398,
329,
4441,
290,
19698,
2482,
286,
778,
46493,
14233,
13523,
628,
220,
220,
220,
1058,
17143,
3781,
62,
4906,
25,
1736,
46493,
50,
40545,
23004,
31431,
2039,
388,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
286,
2099,
286,
3781,
428,
318,
198,
220,
220,
220,
1058,
17143,
479,
86,
22046,
25,
11902,
26498,
284,
307,
3804,
656,
2746,
1255,
23772,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
751,
62,
29289,
62,
2777,
45826,
62,
20274,
7,
944,
11,
7679,
62,
3672,
25,
965,
11,
599,
45826,
25,
12178,
11,
1988,
25,
4377,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
34333,
257,
1255,
286,
262,
1813,
1988,
329,
257,
1813,
599,
45826,
284,
262,
1813,
7679,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
7679,
62,
3672,
25,
7679,
5772,
1438,
284,
751,
1255,
329,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
599,
45826,
25,
599,
45826,
286,
262,
7679,
379,
543,
262,
14233,
373,
8630,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1988,
25,
14233,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
599,
45826,
796,
965,
7,
2777,
45826,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
7679,
62,
3672,
407,
287,
2116,
13,
29289,
62,
43420,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
29289,
62,
43420,
58,
29289,
62,
3672,
60,
796,
25414,
7,
8367,
34758,
30072,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
29289,
62,
43420,
58,
29289,
62,
3672,
4083,
8367,
58,
2777,
45826,
60,
796,
1988,
628,
220,
220,
220,
825,
751,
62,
19849,
62,
2777,
45826,
62,
20274,
7,
944,
11,
599,
45826,
25,
12178,
11,
1988,
25,
4377,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
34333,
257,
2746,
1255,
286,
262,
1813,
1988,
329,
257,
1813,
599,
45826,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
599,
45826,
25,
599,
45826,
286,
2746,
379,
543,
262,
14233,
373,
8630,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1988,
25,
14233,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
599,
45826,
796,
965,
7,
2777,
45826,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
8367,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8367,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8367,
58,
2777,
45826,
60,
796,
1988,
628,
220,
220,
220,
825,
651,
62,
15182,
62,
29289,
62,
2777,
945,
871,
7,
944,
8,
4613,
7343,
58,
22468,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
1351,
286,
599,
45826,
3815,
1695,
329,
477,
2746,
11685,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1695,
62,
2777,
945,
871,
796,
6045,
628,
220,
220,
220,
220,
220,
220,
220,
329,
1255,
287,
2116,
13,
29289,
62,
43420,
13,
27160,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
599,
945,
871,
796,
900,
7,
20274,
13,
8367,
13,
13083,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1695,
62,
2777,
945,
871,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1695,
62,
2777,
945,
871,
796,
599,
945,
871,
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,
1695,
62,
2777,
945,
871,
796,
1695,
62,
2777,
945,
871,
13,
3849,
5458,
7,
2777,
945,
871,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
685,
22468,
7,
2777,
45826,
8,
329,
599,
45826,
287,
23243,
7,
15182,
62,
2777,
945,
871,
15437,
628,
220,
220,
220,
825,
651,
62,
29289,
62,
2777,
45826,
62,
26675,
7,
944,
11,
7679,
62,
3672,
25,
965,
11,
599,
45826,
25,
12178,
8,
4613,
12178,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
7679,
62,
3672,
25,
1438,
286,
7679,
284,
651,
599,
45826,
4776,
329,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
599,
45826,
25,
599,
45826,
284,
3953,
4776,
379,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
599,
45826,
4776,
379,
262,
1813,
599,
45826,
884,
326,
2440,
8198,
39684,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
284,
257,
1342,
778,
403,
540,
7679,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
29289,
62,
43420,
58,
29289,
62,
3672,
4083,
8367,
628,
220,
220,
220,
220,
220,
220,
220,
599,
45826,
796,
965,
7,
2777,
45826,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
599,
45826,
407,
287,
1255,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7,
69,
1,
2949,
1255,
329,
599,
45826,
1391,
2777,
45826,
92,
287,
7679,
1391,
29289,
62,
3672,
92,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
14805,
62,
2777,
45826,
796,
965,
7,
15,
13,
15,
611,
657,
13,
15,
287,
1255,
2073,
949,
7,
20274,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
58,
2777,
45826,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
20930,
62,
4906,
318,
1736,
46493,
50,
40545,
23004,
31431,
13,
18973,
37,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
1255,
58,
2777,
45826,
60,
532,
1255,
58,
12093,
4470,
62,
2777,
45826,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
198,
62,
1565,
1847,
16309,
1797,
62,
25216,
62,
10468,
62,
31631,
796,
1391,
198,
220,
220,
220,
1736,
46493,
50,
40545,
23004,
31431,
13,
43,
18420,
13,
8367,
25,
1736,
46493,
50,
40545,
23004,
11,
198,
220,
220,
220,
1736,
46493,
50,
40545,
23004,
31431,
13,
18973,
37,
13,
8367,
25,
1736,
46493,
50,
40545,
23004,
11,
198,
92,
628,
198,
198,
4871,
9104,
12360,
7,
24694,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
7308,
1398,
329,
37895,
290,
11389,
2890,
2746,
20150,
11,
11685,
7508,
11,
290,
198,
220,
220,
220,
3781,
2482,
628,
220,
220,
220,
1058,
17143,
2746,
25,
9355,
2176,
2746,
2134,
284,
7925,
7508,
329,
198,
220,
220,
220,
1058,
17143,
20150,
25,
11902,
8633,
286,
4731,
20150,
12608,
284,
1988,
13,
15161,
198,
220,
220,
220,
220,
220,
220,
220,
318,
6565,
8633,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
825,
422,
62,
11600,
7,
565,
82,
11,
22155,
25,
360,
713,
58,
2536,
11,
4377,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
22155,
25,
8633,
11389,
1143,
416,
4600,
11600,
7,
17633,
12360,
7,
986,
4008,
63,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
9104,
12360,
2134,
2727,
422,
262,
1813,
8633,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
22155,
796,
2769,
30073,
7,
67,
14188,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
366,
29289,
62,
10951,
1,
407,
287,
22155,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17633,
12360,
5563,
11389,
1143,
355,
257,
8633,
1276,
2291,
257,
705,
29289,
62,
10951,
6,
1994,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
7679,
62,
10951,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
25,
34398,
12360,
13,
29572,
62,
26801,
7,
10951,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1438,
11,
7508,
287,
22155,
14692,
29289,
62,
10951,
1,
4083,
23814,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
220,
220,
2746,
62,
10951,
796,
537,
82,
7,
29289,
62,
10951,
11,
20150,
28,
67,
14188,
13,
1136,
7203,
38993,
1600,
23884,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
2482,
796,
22155,
13,
1136,
7203,
20930,
62,
43420,
1600,
685,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1255,
287,
2482,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
62,
20274,
796,
4808,
19849,
62,
20274,
62,
6738,
62,
11600,
7,
20274,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
62,
10951,
13,
2860,
62,
20930,
62,
20274,
7,
19849,
62,
20274,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
2746,
62,
10951,
628,
220,
220,
220,
2488,
12708,
24396,
198,
220,
220,
220,
825,
3440,
7,
7753,
62,
6978,
8,
4613,
366,
17633,
12360,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2393,
62,
6978,
25,
2393,
3108,
284,
19449,
2393,
284,
3440,
9104,
12360,
2134,
422,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
262,
9639,
9104,
12360,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
62,
6978,
796,
3424,
62,
6978,
7,
7753,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
7753,
62,
6978,
11,
366,
81,
4943,
355,
2393,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
62,
10951,
62,
11600,
796,
33918,
13,
2220,
7,
7753,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
9104,
12360,
13,
6738,
62,
11600,
7,
19849,
62,
10951,
62,
11600,
8,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
7679,
62,
10951,
7,
944,
8,
4613,
366,
35422,
1068,
35,
713,
58,
2536,
11,
34398,
12360,
60,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
8633,
286,
3748,
7679,
1438,
284,
34398,
12360,
2134,
286,
262,
1813,
7679,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
29289,
62,
10951,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
3781,
62,
43420,
7,
944,
8,
4613,
7343,
58,
17633,
23004,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
1351,
286,
3781,
2482,
1057,
319,
428,
2746,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
20930,
62,
43420,
628,
220,
220,
220,
2488,
397,
8709,
24396,
198,
220,
220,
220,
825,
7925,
62,
29289,
62,
10951,
7,
944,
11,
2746,
25,
4377,
8,
4613,
366,
35422,
1068,
35,
713,
58,
2536,
11,
34398,
12360,
60,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
27741,
2446,
329,
37895,
281,
6149,
22155,
286,
7679,
1438,
284,
198,
220,
220,
220,
220,
220,
220,
220,
5668,
34398,
12360,
2134,
329,
262,
7679,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2746,
25,
2746,
284,
7925,
34398,
12360,
1321,
286,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
6149,
22155,
286,
7679,
1438,
284,
34398,
12360,
2134,
329,
262,
7679,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1892,
3546,
1154,
12061,
12331,
3419,
628,
220,
220,
220,
825,
651,
62,
43420,
62,
1525,
62,
4906,
7,
944,
11,
3781,
62,
4906,
25,
965,
8,
4613,
7343,
58,
17633,
23004,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3781,
62,
4906,
25,
2099,
286,
3781,
287,
9104,
23004,
13,
20930,
62,
4906,
284,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8106,
416,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
1351,
286,
3781,
2482,
286,
428,
2746,
326,
2872,
262,
1813,
2099,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1255,
287,
2116,
13557,
20930,
62,
43420,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
13,
20930,
62,
4906,
6624,
3781,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
628,
220,
220,
220,
825,
651,
62,
1050,
403,
540,
62,
17143,
62,
14933,
7,
944,
8,
4613,
5345,
58,
2536,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
900,
286,
11507,
3891,
286,
477,
778,
403,
540,
11685,
287,
428,
9104,
12360,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7679,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
7679,
62,
3672,
11,
7679,
62,
10951,
287,
2116,
13,
29289,
62,
10951,
13,
23814,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
7679,
62,
10951,
13,
1050,
403,
540,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
825,
284,
62,
11600,
7,
944,
8,
4613,
360,
713,
58,
2536,
11,
4377,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
8633,
10552,
286,
428,
9104,
23004,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
7679,
62,
10951,
796,
1391,
3672,
25,
8633,
7,
10951,
8,
329,
1438,
11,
7508,
287,
2116,
13557,
29289,
62,
10951,
13,
23814,
3419,
92,
198,
220,
220,
220,
220,
220,
220,
220,
3781,
62,
43420,
796,
685,
11600,
7,
20274,
8,
329,
1255,
287,
2116,
13557,
20930,
62,
43420,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
38993,
1298,
2116,
13,
38993,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29289,
62,
10951,
1298,
7679,
62,
10951,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
20930,
62,
43420,
1298,
3781,
62,
43420,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
825,
3613,
7,
944,
11,
2393,
62,
6978,
25,
965,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16031,
262,
8633,
10552,
286,
428,
9104,
12360,
2134,
355,
257,
19449,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
284,
262,
1813,
2393,
3108,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2393,
62,
6978,
25,
2393,
3108,
284,
3613,
284,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2251,
62,
8000,
62,
15908,
82,
7,
7753,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
7753,
62,
6978,
11,
366,
86,
4943,
355,
2393,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33918,
13,
39455,
7,
944,
13,
1462,
62,
11600,
22784,
2393,
8,
628,
220,
220,
220,
2488,
12708,
24396,
628
] | 2.515022 | 5,392 |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2019 CESNET z.s.p.o..
#
# OARepo is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
""" Models used by the ProxyIDP Remote application """
|
[
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
198,
2,
15069,
357,
34,
8,
13130,
42700,
12884,
1976,
13,
82,
13,
79,
13,
78,
492,
198,
2,
198,
2,
440,
1503,
538,
78,
318,
1479,
3788,
26,
345,
460,
17678,
4163,
340,
290,
14,
273,
13096,
340,
198,
2,
739,
262,
2846,
286,
262,
17168,
13789,
26,
766,
38559,
24290,
2393,
329,
517,
3307,
13,
198,
198,
37811,
32329,
973,
416,
262,
38027,
2389,
47,
21520,
3586,
37227,
198
] | 3.05814 | 86 |
import argparse
from camp_real_engine.engine import RealizationEngine
|
[
11748,
1822,
29572,
198,
198,
6738,
1413,
62,
5305,
62,
18392,
13,
18392,
1330,
6416,
1634,
13798,
628,
198
] | 3.842105 | 19 |
from rest_framework.pagination import LimitOffsetPagination
from rest_framework.permissions import AllowAny
from rest_framework.viewsets import ReadOnlyModelViewSet
from ..models import Catalog
from ..serializers import CatalogListSerializer, CatalogSerializer
|
[
6738,
1334,
62,
30604,
13,
79,
363,
1883,
1330,
27272,
34519,
47,
363,
1883,
198,
6738,
1334,
62,
30604,
13,
525,
8481,
1330,
22507,
7149,
198,
6738,
1334,
62,
30604,
13,
1177,
28709,
1330,
4149,
10049,
17633,
7680,
7248,
198,
198,
6738,
11485,
27530,
1330,
44515,
198,
6738,
11485,
46911,
11341,
1330,
44515,
8053,
32634,
7509,
11,
44515,
32634,
7509,
628
] | 4.311475 | 61 |
"""
File: weather_master.py
Name: Karen Wong
-----------------------
This program should implement a console program that asks weather data from user to compute the average, highest, lowest, cold days among the inputs.
Output format should match what is shown in the sample run in the Assignment 2 Handout.
"""
EXIT = -100
def main():
"""
This program is used to calculate the highest, lowest, average temperature
and the total cold day (temperature < 16 ) of the given sequences.
"""
print('stanCode "Weather Master 4.0"!')
temp = int(input('Next Temperature(or ' + str(EXIT) + ' to quit)? '))
if temp == EXIT:
print('No temperature were entered.')
else:
highest = temp
lowest = temp
average = temp
if temp < 16:
cold = 1
else:
cold = 0
total_num = 1
while True:
temp1 = int(input('Next Temperature(or ' + str(EXIT)+' to quit)? '))
if temp1 == EXIT:
break
else:
total_num += 1
if temp1 > highest:
highest = temp1
if temp1 < lowest:
lowest = temp1
if temp1 <= 16:
cold += 1
average = (temp1+average*(total_num-1))/total_num
temp = temp1
print('Highest temperature = ' + str(highest))
print('Lowest temperature = ' + str(lowest))
print('Average temperature = ' + str(average))
print(str(cold)+' cold days!')
if __name__ == "__main__":
main()
|
[
37811,
198,
8979,
25,
6193,
62,
9866,
13,
9078,
198,
5376,
25,
18678,
27247,
198,
19351,
6329,
198,
1212,
1430,
815,
3494,
257,
8624,
1430,
326,
7893,
6193,
1366,
422,
2836,
284,
24061,
262,
2811,
11,
4511,
11,
9016,
11,
4692,
1528,
1871,
262,
17311,
13,
198,
26410,
5794,
815,
2872,
644,
318,
3402,
287,
262,
6291,
1057,
287,
262,
50144,
362,
7157,
448,
13,
198,
198,
37811,
198,
6369,
2043,
796,
532,
3064,
198,
198,
4299,
1388,
33529,
198,
197,
37811,
198,
197,
1212,
1430,
318,
973,
284,
15284,
262,
4511,
11,
9016,
11,
2811,
5951,
198,
197,
392,
262,
2472,
4692,
1110,
357,
11498,
21069,
1279,
1467,
1267,
286,
262,
1813,
16311,
13,
198,
197,
37811,
628,
197,
4798,
10786,
14192,
10669,
366,
41865,
5599,
604,
13,
15,
40484,
11537,
198,
197,
29510,
796,
493,
7,
15414,
10786,
10019,
34467,
7,
273,
705,
1343,
965,
7,
6369,
2043,
8,
1343,
705,
284,
11238,
19427,
705,
4008,
198,
197,
361,
20218,
6624,
7788,
2043,
25,
198,
197,
197,
4798,
10786,
2949,
5951,
547,
5982,
2637,
8,
198,
197,
17772,
25,
198,
197,
197,
35323,
796,
20218,
198,
197,
197,
9319,
395,
796,
20218,
198,
197,
197,
23913,
796,
20218,
198,
197,
197,
361,
20218,
1279,
1467,
25,
198,
197,
197,
197,
36673,
796,
352,
198,
197,
197,
17772,
25,
198,
197,
197,
197,
36673,
796,
657,
198,
197,
197,
23350,
62,
22510,
796,
352,
198,
197,
197,
4514,
6407,
25,
198,
197,
197,
197,
29510,
16,
796,
493,
7,
15414,
10786,
10019,
34467,
7,
273,
705,
1343,
965,
7,
6369,
2043,
47762,
6,
284,
11238,
19427,
705,
4008,
198,
197,
197,
197,
361,
20218,
16,
6624,
7788,
2043,
25,
198,
197,
197,
197,
197,
9032,
198,
197,
197,
197,
17772,
25,
198,
197,
197,
197,
197,
23350,
62,
22510,
15853,
352,
198,
197,
197,
197,
197,
361,
20218,
16,
1875,
4511,
25,
198,
197,
197,
197,
197,
197,
35323,
796,
20218,
16,
628,
197,
197,
197,
197,
361,
20218,
16,
1279,
9016,
25,
198,
197,
197,
197,
197,
197,
9319,
395,
796,
20218,
16,
198,
197,
197,
197,
197,
361,
20218,
16,
19841,
1467,
25,
198,
197,
197,
197,
197,
197,
36673,
15853,
352,
198,
197,
197,
197,
197,
23913,
796,
357,
29510,
16,
10,
23913,
9,
7,
23350,
62,
22510,
12,
16,
4008,
14,
23350,
62,
22510,
198,
197,
197,
197,
197,
29510,
796,
20218,
16,
628,
197,
197,
4798,
10786,
36124,
3634,
5951,
796,
705,
1343,
965,
7,
35323,
4008,
198,
197,
197,
4798,
10786,
20535,
395,
5951,
796,
705,
1343,
965,
7,
9319,
395,
4008,
198,
197,
197,
4798,
10786,
26287,
5951,
796,
705,
1343,
965,
7,
23913,
4008,
198,
197,
197,
4798,
7,
2536,
7,
36673,
47762,
6,
4692,
1528,
0,
11537,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
197,
12417,
3419,
198
] | 2.824895 | 474 |
"""Color cycler."""
from matplotlib import cycler as mpl_cycler
def cycler(**kwargs):
"""Wrap a matplotlib.cycler object into a parameter-dictionary compatible with plt.rcParams.
Please refer to
https://matplotlib.org/cycler/
and
https://matplotlib.org/stable/tutorials/intermediate/color_cycle.html
for information about how to use cyclers.
"""
return {"axes.prop_cycle": mpl_cycler(**kwargs)}
|
[
37811,
10258,
11700,
263,
526,
15931,
198,
198,
6738,
2603,
29487,
8019,
1330,
11700,
263,
355,
285,
489,
62,
15539,
263,
628,
198,
4299,
11700,
263,
7,
1174,
46265,
22046,
2599,
198,
220,
220,
220,
37227,
54,
2416,
257,
2603,
29487,
8019,
13,
15539,
263,
2134,
656,
257,
11507,
12,
67,
14188,
11670,
351,
458,
83,
13,
6015,
10044,
4105,
13,
628,
220,
220,
220,
4222,
3522,
284,
198,
220,
220,
220,
220,
220,
220,
220,
3740,
1378,
6759,
29487,
8019,
13,
2398,
14,
15539,
263,
14,
198,
220,
220,
220,
290,
198,
220,
220,
220,
220,
220,
220,
220,
3740,
1378,
6759,
29487,
8019,
13,
2398,
14,
31284,
14,
83,
44917,
82,
14,
3849,
13857,
14,
8043,
62,
13696,
13,
6494,
198,
220,
220,
220,
329,
1321,
546,
703,
284,
779,
11700,
364,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1441,
19779,
897,
274,
13,
22930,
62,
13696,
1298,
285,
489,
62,
15539,
263,
7,
1174,
46265,
22046,
38165,
198
] | 2.676829 | 164 |
# Copyright (c) 2020 Continental Automotive GmbH
"""Testing functions."""
|
[
2,
220,
15069,
357,
66,
8,
12131,
30462,
17406,
19138,
402,
2022,
39,
198,
198,
37811,
44154,
5499,
526,
15931,
198
] | 3.619048 | 21 |
import unittest
import pandas as pd
import pytest
import riptable as rt
# N.B. TL;DR We have to import the actual implementation module to override the module global
# variable "tm.N" and "tm.K".
# In pandas 1.0 they move the code from pandas/util/testing.py to pandas/_testing.py.
# The "import pandas.util.testing" still works but because it doesn't contain the actual code
# our attempt to override the "tm.N" and "tm.K" will not change the actual value for
# makeTimeDataFrame, which will produce data with different shape and make the test
# "test_accum_table" fail. Maybe we want to reconsider using the pandas internal testing utils.
try:
import pandas._testing as tm
except ImportError:
import pandas.util.testing as tm
from riptable import *
from numpy.testing import (
assert_array_equal,
assert_almost_equal,
assert_array_almost_equal,
)
from riptable.rt_numpy import arange
# To create AccumTable test data
from riptable.Utils.pandas_utils import dataset_from_pandas_df
from riptable.rt_datetime import DateTimeNano
tm.N = 3
tm.K = 5
class Accum2_Test(unittest.TestCase):
'''
TODO: add more tests for different types
'''
@pytest.mark.xfail(reason='20200416 This test was previously overridden by a later test in the file with the same name. Need to revisit and get back in a working state.')
if __name__ == "__main__":
tester = unittest.main()
|
[
11748,
555,
715,
395,
201,
198,
11748,
19798,
292,
355,
279,
67,
201,
198,
11748,
12972,
9288,
201,
198,
201,
198,
11748,
374,
10257,
540,
355,
374,
83,
201,
198,
2,
399,
13,
33,
13,
24811,
26,
7707,
775,
423,
284,
1330,
262,
4036,
7822,
8265,
284,
20957,
262,
8265,
3298,
201,
198,
2,
220,
220,
220,
220,
220,
7885,
366,
17209,
13,
45,
1,
290,
366,
17209,
13,
42,
1911,
201,
198,
2,
220,
220,
220,
220,
220,
554,
19798,
292,
352,
13,
15,
484,
1445,
262,
2438,
422,
19798,
292,
14,
22602,
14,
33407,
13,
9078,
284,
19798,
292,
47835,
33407,
13,
9078,
13,
201,
198,
2,
220,
220,
220,
220,
220,
383,
366,
11748,
19798,
292,
13,
22602,
13,
33407,
1,
991,
2499,
475,
780,
340,
1595,
470,
3994,
262,
4036,
2438,
201,
198,
2,
220,
220,
220,
220,
220,
674,
2230,
284,
20957,
262,
366,
17209,
13,
45,
1,
290,
366,
17209,
13,
42,
1,
481,
407,
1487,
262,
4036,
1988,
329,
201,
198,
2,
220,
220,
220,
220,
220,
787,
7575,
6601,
19778,
11,
543,
481,
4439,
1366,
351,
1180,
5485,
290,
787,
262,
1332,
201,
198,
2,
220,
220,
220,
220,
220,
366,
9288,
62,
4134,
388,
62,
11487,
1,
2038,
13,
6674,
356,
765,
284,
26540,
1262,
262,
19798,
292,
5387,
4856,
3384,
4487,
13,
201,
198,
28311,
25,
201,
198,
220,
220,
220,
1330,
19798,
292,
13557,
33407,
355,
256,
76,
201,
198,
16341,
17267,
12331,
25,
201,
198,
220,
220,
220,
1330,
19798,
292,
13,
22602,
13,
33407,
355,
256,
76,
201,
198,
201,
198,
6738,
374,
10257,
540,
1330,
1635,
201,
198,
6738,
299,
32152,
13,
33407,
1330,
357,
201,
198,
220,
220,
220,
6818,
62,
18747,
62,
40496,
11,
201,
198,
220,
220,
220,
6818,
62,
28177,
62,
40496,
11,
201,
198,
220,
220,
220,
6818,
62,
18747,
62,
28177,
62,
40496,
11,
201,
198,
8,
201,
198,
6738,
374,
10257,
540,
13,
17034,
62,
77,
32152,
1330,
610,
858,
201,
198,
2,
1675,
2251,
6366,
388,
10962,
1332,
1366,
201,
198,
6738,
374,
10257,
540,
13,
18274,
4487,
13,
79,
392,
292,
62,
26791,
1330,
27039,
62,
6738,
62,
79,
392,
292,
62,
7568,
201,
198,
6738,
374,
10257,
540,
13,
17034,
62,
19608,
8079,
1330,
7536,
7575,
45,
5733,
201,
198,
201,
198,
201,
198,
17209,
13,
45,
796,
513,
201,
198,
17209,
13,
42,
796,
642,
201,
198,
201,
198,
201,
198,
4871,
6366,
388,
17,
62,
14402,
7,
403,
715,
395,
13,
14402,
20448,
2599,
201,
198,
220,
220,
220,
705,
7061,
201,
198,
220,
220,
220,
16926,
46,
25,
751,
517,
5254,
329,
1180,
3858,
201,
198,
220,
220,
220,
705,
7061,
201,
198,
201,
198,
220,
220,
220,
2488,
9078,
9288,
13,
4102,
13,
26152,
603,
7,
41181,
11639,
1238,
15724,
1433,
770,
1332,
373,
4271,
23170,
4651,
416,
257,
1568,
1332,
287,
262,
2393,
351,
262,
976,
1438,
13,
10664,
284,
32302,
290,
651,
736,
287,
257,
1762,
1181,
2637,
8,
201,
198,
201,
198,
201,
198,
201,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
201,
198,
220,
220,
220,
256,
7834,
796,
555,
715,
395,
13,
12417,
3419,
201,
198
] | 2.776735 | 533 |
"""Indent and Dedent classes."""
from sqlfluff.core.parser.match_wrapper import match_wrapper
from sqlfluff.core.parser.segments.raw import RawSegment
from sqlfluff.core.parser.context import ParseContext
from typing import Optional, List
class MetaSegment(RawSegment):
"""A segment which is empty but indicates where something should be."""
type = "meta"
_is_code = False
_template = "<unset>"
indent_val = 0
is_meta = True
@staticmethod
def _suffix():
"""Return any extra output required at the end when logging.
Meta classes have not much to say here so just stay blank.
"""
return ""
@classmethod
@match_wrapper()
def match(cls, segments, parse_context): # pragma: no cover
"""This will never be called. If it is then we're using it wrong."""
raise NotImplementedError(
"{} has no match method, it should only be used in a Sequence!".format(
cls.__name__
)
)
@classmethod
def simple(cls, parse_context: ParseContext) -> Optional[List[str]]:
"""Does this matcher support an uppercase hash matching route?
This should be true if the MATCH grammar is simple. Most more
complicated segments will be assumed to overwrite this method
if they wish to be considered simple.
"""
return None
class Indent(MetaSegment):
"""A segment which is empty but indicates where an indent should be.
This segment is always empty, i.e. its raw format is '', but it indicates
the position of a theoretical indent which will be used in linting
and reconstruction. Even if there is an *actual indent* that occurs
in the same place this intentionally *won't* capture it, they will just
be compared later.
"""
type = "indent"
indent_val = 1
class Dedent(Indent):
"""A segment which is empty but indicates where an dedent should be.
This segment is always empty, i.e. its raw format is '', but it indicates
the position of a theoretical dedent which will be used in linting
and reconstruction. Even if there is an *actual dedent* that occurs
in the same place this intentionally *won't* capture it, they will just
be compared later.
"""
type = "dedent"
indent_val = -1
class TemplateSegment(MetaSegment):
"""A segment which is empty but indicates something should be.
This segment is always empty, i.e. its raw format is '', but it indicates
the position of an element on a line which has been removed. This is used
to record the position of template blocks, so that their indents are not
removed during linting.
This is used to hold a reference point for code from the source file
which is removed in the templated version such as loop blocks or comments.
On initialisation we optionally accept the source string as a kwarg in
case rules want to lint this down the line.
"""
type = "placeholder"
def __init__(self, pos_marker=None, source_str="", block_type=""):
"""Initialise a placeholder with the source code embedded."""
if not source_str: # pragma: no cover
raise ValueError("Cannot instantiate TemplateSegment without a source_str.")
self.source_str = source_str
self.block_type = block_type
# Call the super of the pos_marker.
super().__init__(pos_marker=pos_marker)
def _suffix(self):
"""Also output what it's a placeholder for."""
return f"[Type: {self.block_type!r}, Raw: {self.source_str!r}]"
def to_tuple(self, code_only=False, show_raw=False, include_meta=False):
"""Return a tuple structure from this segment.
Unlike most segments, we return the _source_ content for placeholders
if viewing metas is allowed. This allows verification of the content
of those placeholders for inspection or debugging.
"""
if include_meta:
return (self.get_type(), self.source_str)
else: # pragma: no cover TODO?
return (self.get_type(), self.raw)
|
[
37811,
5497,
298,
290,
35023,
298,
6097,
526,
15931,
198,
198,
6738,
19862,
1652,
75,
1648,
13,
7295,
13,
48610,
13,
15699,
62,
48553,
1330,
2872,
62,
48553,
198,
6738,
19862,
1652,
75,
1648,
13,
7295,
13,
48610,
13,
325,
11726,
13,
1831,
1330,
16089,
41030,
434,
198,
6738,
19862,
1652,
75,
1648,
13,
7295,
13,
48610,
13,
22866,
1330,
2547,
325,
21947,
198,
6738,
19720,
1330,
32233,
11,
7343,
628,
198,
4871,
30277,
41030,
434,
7,
27369,
41030,
434,
2599,
198,
220,
220,
220,
37227,
32,
10618,
543,
318,
6565,
475,
9217,
810,
1223,
815,
307,
526,
15931,
628,
220,
220,
220,
2099,
796,
366,
28961,
1,
198,
220,
220,
220,
4808,
271,
62,
8189,
796,
10352,
198,
220,
220,
220,
4808,
28243,
796,
33490,
403,
2617,
24618,
198,
220,
220,
220,
33793,
62,
2100,
796,
657,
198,
220,
220,
220,
318,
62,
28961,
796,
6407,
628,
220,
220,
220,
2488,
12708,
24396,
198,
220,
220,
220,
825,
4808,
37333,
844,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
597,
3131,
5072,
2672,
379,
262,
886,
618,
18931,
13,
628,
220,
220,
220,
220,
220,
220,
220,
30277,
6097,
423,
407,
881,
284,
910,
994,
523,
655,
2652,
9178,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
13538,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
2488,
15699,
62,
48553,
3419,
198,
220,
220,
220,
825,
2872,
7,
565,
82,
11,
17894,
11,
21136,
62,
22866,
2599,
220,
1303,
23864,
2611,
25,
645,
3002,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
1212,
481,
1239,
307,
1444,
13,
1002,
340,
318,
788,
356,
821,
1262,
340,
2642,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1892,
3546,
1154,
12061,
12331,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45144,
92,
468,
645,
2872,
2446,
11,
340,
815,
691,
307,
973,
287,
257,
45835,
48220,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
537,
82,
13,
834,
3672,
834,
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,
2488,
4871,
24396,
198,
220,
220,
220,
825,
2829,
7,
565,
82,
11,
21136,
62,
22866,
25,
2547,
325,
21947,
8,
4613,
32233,
58,
8053,
58,
2536,
60,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13921,
428,
2603,
2044,
1104,
281,
334,
39921,
589,
12234,
12336,
6339,
30,
628,
220,
220,
220,
220,
220,
220,
220,
770,
815,
307,
2081,
611,
262,
337,
11417,
23491,
318,
2829,
13,
4042,
517,
198,
220,
220,
220,
220,
220,
220,
220,
8253,
17894,
481,
307,
9672,
284,
49312,
428,
2446,
198,
220,
220,
220,
220,
220,
220,
220,
611,
484,
4601,
284,
307,
3177,
2829,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
628,
198,
4871,
1423,
298,
7,
48526,
41030,
434,
2599,
198,
220,
220,
220,
37227,
32,
10618,
543,
318,
6565,
475,
9217,
810,
281,
33793,
815,
307,
13,
628,
220,
220,
220,
770,
10618,
318,
1464,
6565,
11,
1312,
13,
68,
13,
663,
8246,
5794,
318,
705,
3256,
475,
340,
9217,
198,
220,
220,
220,
262,
2292,
286,
257,
16200,
33793,
543,
481,
307,
973,
287,
300,
600,
278,
198,
220,
220,
220,
290,
25056,
13,
3412,
611,
612,
318,
281,
1635,
50039,
33793,
9,
326,
8833,
198,
220,
220,
220,
287,
262,
976,
1295,
428,
16464,
1635,
26502,
470,
9,
8006,
340,
11,
484,
481,
655,
198,
220,
220,
220,
307,
3688,
1568,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2099,
796,
366,
521,
298,
1,
198,
220,
220,
220,
33793,
62,
2100,
796,
352,
628,
198,
4871,
35023,
298,
7,
5497,
298,
2599,
198,
220,
220,
220,
37227,
32,
10618,
543,
318,
6565,
475,
9217,
810,
281,
4648,
298,
815,
307,
13,
628,
220,
220,
220,
770,
10618,
318,
1464,
6565,
11,
1312,
13,
68,
13,
663,
8246,
5794,
318,
705,
3256,
475,
340,
9217,
198,
220,
220,
220,
262,
2292,
286,
257,
16200,
4648,
298,
543,
481,
307,
973,
287,
300,
600,
278,
198,
220,
220,
220,
290,
25056,
13,
3412,
611,
612,
318,
281,
1635,
50039,
4648,
298,
9,
326,
8833,
198,
220,
220,
220,
287,
262,
976,
1295,
428,
16464,
1635,
26502,
470,
9,
8006,
340,
11,
484,
481,
655,
198,
220,
220,
220,
307,
3688,
1568,
13,
628,
220,
220,
220,
37227,
628,
220,
220,
220,
2099,
796,
366,
9395,
298,
1,
198,
220,
220,
220,
33793,
62,
2100,
796,
532,
16,
628,
198,
4871,
37350,
41030,
434,
7,
48526,
41030,
434,
2599,
198,
220,
220,
220,
37227,
32,
10618,
543,
318,
6565,
475,
9217,
1223,
815,
307,
13,
628,
220,
220,
220,
770,
10618,
318,
1464,
6565,
11,
1312,
13,
68,
13,
663,
8246,
5794,
318,
705,
3256,
475,
340,
9217,
198,
220,
220,
220,
262,
2292,
286,
281,
5002,
319,
257,
1627,
543,
468,
587,
4615,
13,
770,
318,
973,
198,
220,
220,
220,
284,
1700,
262,
2292,
286,
11055,
7021,
11,
523,
326,
511,
773,
658,
389,
407,
198,
220,
220,
220,
4615,
1141,
300,
600,
278,
13,
628,
220,
220,
220,
770,
318,
973,
284,
1745,
257,
4941,
966,
329,
2438,
422,
262,
2723,
2393,
198,
220,
220,
220,
543,
318,
4615,
287,
262,
2169,
489,
515,
2196,
884,
355,
9052,
7021,
393,
3651,
13,
198,
220,
220,
220,
1550,
4238,
5612,
356,
42976,
2453,
262,
2723,
4731,
355,
257,
479,
86,
853,
287,
198,
220,
220,
220,
1339,
3173,
765,
284,
300,
600,
428,
866,
262,
1627,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2099,
796,
366,
5372,
13829,
1,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1426,
62,
4102,
263,
28,
14202,
11,
2723,
62,
2536,
2625,
1600,
2512,
62,
4906,
33151,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
786,
257,
46076,
351,
262,
2723,
2438,
14553,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2723,
62,
2536,
25,
220,
1303,
23864,
2611,
25,
645,
3002,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
34,
34574,
9113,
9386,
37350,
41030,
434,
1231,
257,
2723,
62,
2536,
19570,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
10459,
62,
2536,
796,
2723,
62,
2536,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9967,
62,
4906,
796,
2512,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4889,
262,
2208,
286,
262,
1426,
62,
4102,
263,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
1930,
62,
4102,
263,
28,
1930,
62,
4102,
263,
8,
628,
220,
220,
220,
825,
4808,
37333,
844,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7583,
5072,
644,
340,
338,
257,
46076,
329,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
277,
17912,
6030,
25,
1391,
944,
13,
9967,
62,
4906,
0,
81,
5512,
16089,
25,
1391,
944,
13,
10459,
62,
2536,
0,
81,
92,
30866,
628,
220,
220,
220,
825,
284,
62,
83,
29291,
7,
944,
11,
2438,
62,
8807,
28,
25101,
11,
905,
62,
1831,
28,
25101,
11,
2291,
62,
28961,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
257,
46545,
4645,
422,
428,
10618,
13,
628,
220,
220,
220,
220,
220,
220,
220,
12101,
749,
17894,
11,
356,
1441,
262,
4808,
10459,
62,
2695,
329,
1295,
10476,
198,
220,
220,
220,
220,
220,
220,
220,
611,
11681,
1138,
292,
318,
3142,
13,
770,
3578,
19637,
286,
262,
2695,
198,
220,
220,
220,
220,
220,
220,
220,
286,
883,
1295,
10476,
329,
15210,
393,
28769,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2291,
62,
28961,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
944,
13,
1136,
62,
4906,
22784,
2116,
13,
10459,
62,
2536,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
220,
1303,
23864,
2611,
25,
645,
3002,
16926,
46,
30,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
944,
13,
1136,
62,
4906,
22784,
2116,
13,
1831,
8,
198
] | 2.924221 | 1,412 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.