max_stars_repo_path
stringlengths 4
237
| max_stars_repo_name
stringlengths 6
117
| max_stars_count
int64 0
95.2k
| id
stringlengths 1
7
| content
stringlengths 12
593k
| input_ids
sequencelengths 7
549k
|
---|---|---|---|---|---|
utils/generate-sha256.py | dskrvk/anteater | 177 | 33869 | ##############################################################################
# Copyright (c) 2017 <NAME> <<EMAIL>>, Red Hat
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
# python generate-sha256.py --project /home/user/opnfv/infra
# output made to working directory, file `output.yaml`
import os
import sys
import hashlib
import argparse
from binaryornot.check import is_binary
hasher = hashlib.sha256()
parser = argparse.ArgumentParser()
parser.add_argument('--project', help="Full path to project folder",
required=True)
args = parser.parse_args()
ignore_dirs = ['.git']
sys.stdout = open('output.yaml', 'w')
print("binaries:")
for root, dirs, files in os.walk(args.project):
dirs[:] = [d for d in dirs if d not in ignore_dirs]
for file in files:
full_path = os.path.join(root, file)
if is_binary(full_path):
with open(full_path, 'rb') as afile:
buf = afile.read()
hasher.update(buf)
split_path = full_path.split(args.project + '/', 1)[-1]
print(" {}:".format(split_path))
sum = hasher.hexdigest()
print(" - {}".format(sum))
| [
1,
835,
13383,
13383,
13383,
13383,
7346,
2277,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29955,
529,
5813,
29958,
3532,
26862,
6227,
6778,
29892,
4367,
25966,
13,
29937,
13,
29937,
2178,
10462,
21676,
29889,
910,
1824,
322,
278,
10259,
1384,
292,
17279,
13,
29937,
526,
1754,
3625,
1090,
278,
4958,
310,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
13,
29937,
607,
18509,
583,
445,
4978,
29892,
322,
338,
3625,
472,
13,
29937,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
13383,
13383,
13383,
13383,
7346,
4136,
2277,
13,
13,
29937,
3017,
5706,
29899,
17051,
29906,
29945,
29953,
29889,
2272,
1192,
4836,
847,
5184,
29914,
1792,
29914,
459,
29876,
29888,
29894,
29914,
7192,
336,
13,
29937,
1962,
1754,
304,
1985,
3884,
29892,
934,
421,
4905,
29889,
25162,
29952,
13,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
6608,
1982,
13,
5215,
1852,
5510,
13,
3166,
7581,
272,
1333,
29889,
3198,
1053,
338,
29918,
19541,
13,
13,
8568,
261,
353,
6608,
1982,
29889,
17051,
29906,
29945,
29953,
580,
13,
16680,
353,
1852,
5510,
29889,
15730,
11726,
580,
13,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
4836,
742,
1371,
543,
13658,
2224,
304,
2060,
4138,
613,
13,
462,
1678,
3734,
29922,
5574,
29897,
13,
5085,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
17281,
29918,
3972,
29879,
353,
518,
4286,
5559,
2033,
13,
9675,
29889,
25393,
353,
1722,
877,
4905,
29889,
25162,
742,
525,
29893,
1495,
13,
13,
2158,
703,
2109,
4314,
29901,
1159,
13,
1454,
3876,
29892,
4516,
29879,
29892,
2066,
297,
2897,
29889,
20919,
29898,
5085,
29889,
4836,
1125,
13,
1678,
4516,
29879,
7503,
29962,
353,
518,
29881,
363,
270,
297,
4516,
29879,
565,
270,
451,
297,
11455,
29918,
3972,
29879,
29962,
13,
1678,
363,
934,
297,
2066,
29901,
13,
4706,
2989,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
4632,
29892,
934,
29897,
13,
4706,
565,
338,
29918,
19541,
29898,
8159,
29918,
2084,
1125,
13,
9651,
411,
1722,
29898,
8159,
29918,
2084,
29892,
525,
6050,
1495,
408,
263,
1445,
29901,
13,
18884,
18392,
353,
263,
1445,
29889,
949,
580,
13,
18884,
756,
2276,
29889,
5504,
29898,
9721,
29897,
13,
18884,
6219,
29918,
2084,
353,
2989,
29918,
2084,
29889,
5451,
29898,
5085,
29889,
4836,
718,
8207,
742,
29871,
29896,
9601,
29899,
29896,
29962,
13,
18884,
1596,
703,
29871,
426,
6177,
1642,
4830,
29898,
5451,
29918,
2084,
876,
13,
18884,
2533,
353,
756,
2276,
29889,
20970,
7501,
342,
580,
13,
18884,
1596,
703,
1678,
448,
6571,
1642,
4830,
29898,
2083,
876,
13,
2
] |
src/workflow/ops.py | uts-cic/ontask_b | 0 | 129930 | <filename>src/workflow/ops.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import gzip
from io import BytesIO
from django.contrib.auth import get_user_model
from django.contrib.sessions.models import Session
from django.core.exceptions import ObjectDoesNotExist
from django.db.models import Q
from django.http import HttpResponse
from django.utils import timezone
from rest_framework.parsers import JSONParser
from rest_framework.renderers import JSONRenderer
from action.models import Condition
from dataops import formula_evaluation, pandas_db, ops
from .models import Workflow, Column
from .serializers import (WorkflowExportSerializer, WorkflowImportSerializer)
from rest_framework import serializers
import logs.ops
def lock_workflow(request, workflow):
"""
Function that sets the session key in the workflow to flag that is locked.
:param request: HTTP request
:param workflow: workflow to lock
:return:
"""
workflow.session_key = request.session.session_key
workflow.save()
def unlock_workflow_by_id(wid):
"""
Removes the session_key from the workflow with given id
:param wid: Workflow id
:return:
"""
try:
workflow = Workflow.objects.get(id=wid)
except ObjectDoesNotExist:
return
# Workflow exists, unlock
unlock_workflow(workflow)
def unlock_workflow(workflow):
"""
Removes the session_key from the workflow
:param workflow:
:return:
"""
workflow.session_key = ''
workflow.save()
def is_locked(workflow):
"""
:param workflow: workflow object to check if it is locked
:return: Is the given workflow locked?
"""
if not workflow.session_key:
# No key in the workflow, then it is not locked.
return False
try:
session = Session.objects.get(session_key=workflow.session_key)
except ObjectDoesNotExist:
# Session does not exist, then it is not locked
return False
# Session is in the workflow and in the session table. Locked if expire
# date is less that current time.
return session.expire_date < timezone.now()
def get_workflow(request, wid=None, select_related=None, prefetch_related=None):
"""
Function that gets the workflow that the user (in the current request) is
using.
:param request: HTTP request object
:param wid: Workflow id to get. If not given, taken from the request
session
:param select_related: Field to add as select_related query filter
:param prefetch_related: Field to add as prefetch_related query filter
:return: Workflow object or None (if error)
"""
# Step 1: Get the workflow that is being accessed
try:
# If there is no wid given, take it from the session. Search for
# workflow that is either owned by the user or shared with her.
if not wid:
wid = request.session['ontask_workflow_id']
# Initial query set with the distinct filter
workflow = Workflow.objects.filter(
Q(user=request.user) | Q(shared__id=request.user.id)
).distinct()
# Apply select if given
if select_related:
workflow = workflow.select_related(select_related)
# Apply prefetch if given
if prefetch_related:
workflow = workflow.prefetch_related(prefetch_related)
# Final filter
workflow = workflow.get(id=wid)
except (KeyError, ObjectDoesNotExist):
# No workflow or value set in the session, flag error.
return None
# Step 2: If the workflow is locked by this user session, return correct
# result
if request.session.session_key == workflow.session_key:
return workflow
# Step 3: If the workflow is unlocked, lock and return
if not workflow.session_key:
# Workflow is unlocked. Proceed to lock
lock_workflow(request, workflow)
return workflow
# Step 4: The workflow is locked. See if the session locking it is
# still valid
try:
session = Session.objects.get(session_key=workflow.session_key)
except Session.DoesNotExist:
# An exception means that the session stored as locking the
# workflow is no longer in the session table, so the user can access
# the workflow
lock_workflow(request, workflow)
return workflow
# Get the owner of the session locking the workflow
owner = get_user_model().objects.get(
id=session.get_decoded().get('_auth_user_id')
)
# Step 5: The workflow is locked by a session that is valid. See if the
# session locking it happens to be from the same user (a previous session
# that has not been properly closed)
if owner == request.user:
lock_workflow(request, workflow)
return workflow
# Step 6: The workflow is locked by an existing session. See if the
# session is valid
if session.expire_date >= timezone.now():
# The session currently locking the workflow
# has an expire date in the future from now. So, no access is granted.
return None
# The workflow is locked by a session that has expired. Take the workflow
# and lock it with the current session.
lock_workflow(request, workflow)
return workflow
def get_user_locked_workflow(workflow):
"""
Given a workflow that is supposed to be locked, it returns the user that
is locking it.
:param workflow:
:return:
"""
session = Session.objects.get(session_key=workflow.session_key)
session_data = session.get_decoded()
return get_user_model().objects.get(id=session_data.get('_auth_user_id'))
def detach_dataframe(workflow):
"""
Given a workflow object, delete its dataframe
:param workflow:
:return: Nothing, the workflow object is updated
"""
pandas_db.delete_table(workflow.id)
# Delete number of rows and columns
workflow.nrows = 0
workflow.ncols = 0
workflow.n_filterd_rows = -1
workflow.save()
# Delete the column_names, column_types and column_unique
Column.objects.filter(workflow__id=workflow.id).delete()
# Delete the info for QueryBuilder
workflow.set_query_builder_ops()
# Table name
workflow.data_frame_table_name = ''
# Save the workflow with the new fields.
workflow.save()
def do_import_workflow(user, name, file_item):
"""
Receives a name and a file item (submitted through a form) and creates
the structure of workflow, conditions, actions and data table.
:param user: User record to use for the import (own all created items)
:param name: Workflow name (it has been checked that it does not exist)
:param file_item: File item obtained through a form
:return:
"""
data_in = gzip.GzipFile(fileobj=file_item)
data = JSONParser().parse(data_in)
# Serialize content
workflow_data = WorkflowImportSerializer(
data=data,
context={'user': user, 'name': name}
)
# If anything went wrong, return the string to show to the form.
workflow = None
try:
if not workflow_data.is_valid():
return 'Unable to import the workflow' + ' (' + \
workflow_data.errors + ')'
# Save the new workflow
workflow = workflow_data.save(user=user, name=name)
except (TypeError, NotImplementedError) as e:
return 'Unable to import workflow (Exception: ' + e.message + ')'
except serializers.ValidationError as e:
return 'Unable to import workflow due to a validation error'
if not pandas_db.check_wf_df(workflow):
# Something went wrong.
workflow.delete()
return 'Workflow data with incorrect structure.'
# Success
# Log the event
logs.ops.put(user,
'workflow_import',
workflow,
{'id': workflow.id,
'name': workflow.name})
return None
def do_export_workflow(workflow, selected_actions=None):
"""
Proceed with the workflow export.
:param workflow: Workflow record to export be included.
:param selected_actions: A subset of actions to export
:return: Page that shows a confirmation message and starts the download
"""
# Create the context object for the serializer
context = {'selected_actions': selected_actions}
# Get the info to send from the serializer
serializer = WorkflowExportSerializer(workflow, context=context)
to_send = JSONRenderer().render(serializer.data)
# Get the in-memory file to compress
zbuf = BytesIO()
zfile = gzip.GzipFile(mode='wb', compresslevel=6, fileobj=zbuf)
zfile.write(to_send)
zfile.close()
# Attach the compressed value to the response and send
compressed_content = zbuf.getvalue()
response = HttpResponse(compressed_content)
response['Content-Encoding'] = 'application/gzip'
response['Content-Disposition'] = \
'attachment; filename="ontask_workflow.gz"'
response['Content-Length'] = str(len(compressed_content))
return response
def workflow_delete_column(workflow, column, cond_to_delete=None):
"""
Given a workflow and a column, removes it from the workflow (and the
corresponding data frame
:param workflow: Workflow object
:param column: Column object to delete
:param cond_to_delete: List of conditions to delete after removing the
column
:return: Nothing. Effect reflected in the database
"""
# Drop the column from the DB table storing the data frame
pandas_db.df_drop_column(workflow.id, column.name)
# Delete the column
column.delete()
# Update the information in the workflow
workflow.ncols = workflow.ncols - 1
workflow.save()
if not cond_to_delete:
# The conditions to delete are not given, so calculate them
# Get the conditions/actions attached to this workflow
cond_to_delete = [x for x in Condition.objects.filter(
action__workflow=workflow)
if formula_evaluation.has_variable(x.formula,
column.name)]
# If a column disappears, the conditions that contain that variable
# are removed..
for condition in cond_to_delete:
# Formula has the name of the deleted column.
# Solution 1: Nuke (Very easy)
# Solution 2: Mark as invalid and enhance the edit condition form
# to handle renaming the fields in a formula (Complex)
#
# Solution 1 chosen.
condition.delete()
# If a column disappears, the views that contain only that column need to
# disappear as well as they are no longer relevant.
for view in workflow.views.all():
if view.columns.all().count() == 0:
view.delete()
return
def clone_column(column, new_workflow=None, new_name=None):
"""
Function that given a column clones it and changes workflow and name
:param column: Object to clone
:param new_workflow: New workflow object to point
:param new_name: New name
:return: Cloned object
"""
# Store the old object name before squashing it
old_id = column.id
old_name = column.name
# Clone
column.id = None
# Update some of the fields
if new_name:
column.name = new_name
if new_workflow:
column.workflow = new_workflow
# Update
column.save()
# Add the column to the table and update it.
data_frame = pandas_db.load_from_db(column.workflow.id)
data_frame[new_name] = data_frame[old_name]
ops.store_dataframe_in_db(data_frame, column.workflow.id)
return column
| [
1,
529,
9507,
29958,
4351,
29914,
1287,
1731,
29914,
3554,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
29892,
1596,
29918,
2220,
13,
13,
5215,
330,
7554,
13,
13,
3166,
12013,
1053,
2648,
2167,
5971,
13,
3166,
9557,
29889,
21570,
29889,
5150,
1053,
679,
29918,
1792,
29918,
4299,
13,
3166,
9557,
29889,
21570,
29889,
29879,
10964,
29889,
9794,
1053,
16441,
13,
3166,
9557,
29889,
3221,
29889,
11739,
29879,
1053,
4669,
25125,
3664,
1252,
391,
13,
3166,
9557,
29889,
2585,
29889,
9794,
1053,
660,
13,
3166,
9557,
29889,
1124,
1053,
9056,
5103,
13,
3166,
9557,
29889,
13239,
1053,
29431,
13,
3166,
1791,
29918,
4468,
29889,
862,
4253,
1053,
4663,
11726,
13,
3166,
1791,
29918,
4468,
29889,
9482,
414,
1053,
4663,
21323,
13,
13,
3166,
3158,
29889,
9794,
1053,
11790,
654,
13,
3166,
848,
3554,
1053,
7063,
29918,
24219,
362,
29892,
11701,
29918,
2585,
29892,
288,
567,
13,
3166,
869,
9794,
1053,
5244,
1731,
29892,
12481,
13,
3166,
869,
15550,
19427,
1053,
313,
5531,
1731,
26382,
17679,
29892,
5244,
1731,
17518,
17679,
29897,
13,
3166,
1791,
29918,
4468,
1053,
7797,
19427,
13,
5215,
10748,
29889,
3554,
13,
13,
1753,
7714,
29918,
1287,
1731,
29898,
3827,
29892,
27321,
1125,
13,
1678,
9995,
13,
1678,
6680,
393,
6166,
278,
4867,
1820,
297,
278,
27321,
304,
7353,
393,
338,
22822,
29889,
13,
1678,
584,
3207,
2009,
29901,
7331,
2009,
13,
1678,
584,
3207,
27321,
29901,
27321,
304,
7714,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
1678,
27321,
29889,
7924,
29918,
1989,
353,
2009,
29889,
7924,
29889,
7924,
29918,
1989,
13,
1678,
27321,
29889,
7620,
580,
13,
13,
13,
1753,
443,
908,
29918,
1287,
1731,
29918,
1609,
29918,
333,
29898,
9163,
1125,
13,
1678,
9995,
13,
1678,
5240,
586,
267,
278,
4867,
29918,
1989,
515,
278,
27321,
411,
2183,
1178,
13,
1678,
584,
3207,
9449,
29901,
5244,
1731,
1178,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
1678,
1018,
29901,
13,
4706,
27321,
353,
5244,
1731,
29889,
12650,
29889,
657,
29898,
333,
29922,
9163,
29897,
13,
1678,
5174,
4669,
25125,
3664,
1252,
391,
29901,
13,
4706,
736,
13,
13,
1678,
396,
5244,
1731,
4864,
29892,
443,
908,
13,
1678,
443,
908,
29918,
1287,
1731,
29898,
1287,
1731,
29897,
13,
13,
13,
1753,
443,
908,
29918,
1287,
1731,
29898,
1287,
1731,
1125,
13,
1678,
9995,
13,
1678,
5240,
586,
267,
278,
4867,
29918,
1989,
515,
278,
27321,
13,
1678,
584,
3207,
27321,
29901,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
1678,
27321,
29889,
7924,
29918,
1989,
353,
6629,
13,
1678,
27321,
29889,
7620,
580,
13,
13,
13,
1753,
338,
29918,
29113,
29898,
1287,
1731,
1125,
13,
1678,
9995,
13,
1678,
584,
3207,
27321,
29901,
27321,
1203,
304,
1423,
565,
372,
338,
22822,
13,
1678,
584,
2457,
29901,
1317,
278,
2183,
27321,
22822,
29973,
13,
1678,
9995,
13,
13,
1678,
565,
451,
27321,
29889,
7924,
29918,
1989,
29901,
13,
4706,
396,
1939,
1820,
297,
278,
27321,
29892,
769,
372,
338,
451,
22822,
29889,
13,
4706,
736,
7700,
13,
13,
1678,
1018,
29901,
13,
4706,
4867,
353,
16441,
29889,
12650,
29889,
657,
29898,
7924,
29918,
1989,
29922,
1287,
1731,
29889,
7924,
29918,
1989,
29897,
13,
1678,
5174,
4669,
25125,
3664,
1252,
391,
29901,
13,
4706,
396,
16441,
947,
451,
1863,
29892,
769,
372,
338,
451,
22822,
13,
4706,
736,
7700,
13,
13,
1678,
396,
16441,
338,
297,
278,
27321,
322,
297,
278,
4867,
1591,
29889,
18199,
287,
565,
1518,
533,
13,
1678,
396,
2635,
338,
3109,
393,
1857,
931,
29889,
13,
1678,
736,
4867,
29889,
4548,
533,
29918,
1256,
529,
29431,
29889,
3707,
580,
13,
13,
13,
1753,
679,
29918,
1287,
1731,
29898,
3827,
29892,
9449,
29922,
8516,
29892,
1831,
29918,
12817,
29922,
8516,
29892,
758,
9155,
29918,
12817,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
6680,
393,
4947,
278,
27321,
393,
278,
1404,
313,
262,
278,
1857,
2009,
29897,
338,
13,
1678,
773,
29889,
13,
1678,
584,
3207,
2009,
29901,
7331,
2009,
1203,
13,
1678,
584,
3207,
9449,
29901,
5244,
1731,
1178,
304,
679,
29889,
960,
451,
2183,
29892,
4586,
515,
278,
2009,
13,
1678,
4867,
13,
1678,
584,
3207,
1831,
29918,
12817,
29901,
8989,
304,
788,
408,
1831,
29918,
12817,
2346,
4175,
13,
1678,
584,
3207,
758,
9155,
29918,
12817,
29901,
8989,
304,
788,
408,
758,
9155,
29918,
12817,
2346,
4175,
13,
1678,
584,
2457,
29901,
5244,
1731,
1203,
470,
6213,
313,
361,
1059,
29897,
13,
1678,
9995,
13,
13,
1678,
396,
16696,
29871,
29896,
29901,
3617,
278,
27321,
393,
338,
1641,
20592,
13,
1678,
1018,
29901,
13,
4706,
396,
960,
727,
338,
694,
9449,
2183,
29892,
2125,
372,
515,
278,
4867,
29889,
11856,
363,
13,
4706,
396,
27321,
393,
338,
2845,
15205,
491,
278,
1404,
470,
7258,
411,
902,
29889,
13,
4706,
565,
451,
9449,
29901,
13,
9651,
9449,
353,
2009,
29889,
7924,
1839,
609,
1278,
29918,
1287,
1731,
29918,
333,
2033,
13,
13,
4706,
396,
17250,
2346,
731,
411,
278,
8359,
4175,
13,
4706,
27321,
353,
5244,
1731,
29889,
12650,
29889,
4572,
29898,
13,
9651,
660,
29898,
1792,
29922,
3827,
29889,
1792,
29897,
891,
660,
29898,
12366,
1649,
333,
29922,
3827,
29889,
1792,
29889,
333,
29897,
13,
4706,
13742,
5721,
5562,
580,
13,
13,
4706,
396,
2401,
368,
1831,
565,
2183,
13,
4706,
565,
1831,
29918,
12817,
29901,
13,
9651,
27321,
353,
27321,
29889,
2622,
29918,
12817,
29898,
2622,
29918,
12817,
29897,
13,
13,
4706,
396,
2401,
368,
758,
9155,
565,
2183,
13,
4706,
565,
758,
9155,
29918,
12817,
29901,
13,
9651,
27321,
353,
27321,
29889,
29886,
999,
3486,
29918,
12817,
29898,
29886,
999,
3486,
29918,
12817,
29897,
13,
13,
4706,
396,
9550,
4175,
13,
4706,
27321,
353,
27321,
29889,
657,
29898,
333,
29922,
9163,
29897,
13,
1678,
5174,
313,
2558,
2392,
29892,
4669,
25125,
3664,
1252,
391,
1125,
13,
4706,
396,
1939,
27321,
470,
995,
731,
297,
278,
4867,
29892,
7353,
1059,
29889,
13,
4706,
736,
6213,
13,
13,
1678,
396,
16696,
29871,
29906,
29901,
960,
278,
27321,
338,
22822,
491,
445,
1404,
4867,
29892,
736,
1959,
13,
1678,
396,
1121,
13,
1678,
565,
2009,
29889,
7924,
29889,
7924,
29918,
1989,
1275,
27321,
29889,
7924,
29918,
1989,
29901,
13,
4706,
736,
27321,
13,
13,
1678,
396,
16696,
29871,
29941,
29901,
960,
278,
27321,
338,
443,
29113,
29892,
7714,
322,
736,
13,
1678,
565,
451,
27321,
29889,
7924,
29918,
1989,
29901,
13,
4706,
396,
5244,
1731,
338,
443,
29113,
29889,
1019,
3947,
304,
7714,
13,
4706,
7714,
29918,
1287,
1731,
29898,
3827,
29892,
27321,
29897,
13,
4706,
736,
27321,
13,
13,
1678,
396,
16696,
29871,
29946,
29901,
450,
27321,
338,
22822,
29889,
2823,
565,
278,
4867,
7714,
292,
372,
338,
13,
1678,
396,
1603,
2854,
13,
1678,
1018,
29901,
13,
4706,
4867,
353,
16441,
29889,
12650,
29889,
657,
29898,
7924,
29918,
1989,
29922,
1287,
1731,
29889,
7924,
29918,
1989,
29897,
13,
1678,
5174,
16441,
29889,
25125,
3664,
1252,
391,
29901,
13,
4706,
396,
530,
3682,
2794,
393,
278,
4867,
6087,
408,
7714,
292,
278,
13,
4706,
396,
27321,
338,
694,
5520,
297,
278,
4867,
1591,
29892,
577,
278,
1404,
508,
2130,
13,
4706,
396,
278,
27321,
13,
4706,
7714,
29918,
1287,
1731,
29898,
3827,
29892,
27321,
29897,
13,
4706,
736,
27321,
13,
13,
1678,
396,
3617,
278,
12271,
310,
278,
4867,
7714,
292,
278,
27321,
13,
1678,
12271,
353,
679,
29918,
1792,
29918,
4299,
2141,
12650,
29889,
657,
29898,
13,
4706,
1178,
29922,
7924,
29889,
657,
29918,
7099,
6797,
2141,
657,
877,
29918,
5150,
29918,
1792,
29918,
333,
1495,
13,
1678,
1723,
13,
13,
1678,
396,
16696,
29871,
29945,
29901,
450,
27321,
338,
22822,
491,
263,
4867,
393,
338,
2854,
29889,
2823,
565,
278,
13,
1678,
396,
4867,
7714,
292,
372,
5930,
304,
367,
515,
278,
1021,
1404,
313,
29874,
3517,
4867,
13,
1678,
396,
393,
756,
451,
1063,
6284,
5764,
29897,
13,
1678,
565,
12271,
1275,
2009,
29889,
1792,
29901,
13,
4706,
7714,
29918,
1287,
1731,
29898,
3827,
29892,
27321,
29897,
13,
4706,
736,
27321,
13,
13,
1678,
396,
16696,
29871,
29953,
29901,
450,
27321,
338,
22822,
491,
385,
5923,
4867,
29889,
2823,
565,
278,
13,
1678,
396,
4867,
338,
2854,
13,
1678,
565,
4867,
29889,
4548,
533,
29918,
1256,
6736,
29431,
29889,
3707,
7295,
13,
4706,
396,
450,
4867,
5279,
7714,
292,
278,
27321,
13,
4706,
396,
756,
385,
1518,
533,
2635,
297,
278,
5434,
515,
1286,
29889,
1105,
29892,
694,
2130,
338,
16896,
29889,
13,
4706,
736,
6213,
13,
13,
1678,
396,
450,
27321,
338,
22822,
491,
263,
4867,
393,
756,
1518,
2859,
29889,
11190,
278,
27321,
13,
1678,
396,
322,
7714,
372,
411,
278,
1857,
4867,
29889,
13,
1678,
7714,
29918,
1287,
1731,
29898,
3827,
29892,
27321,
29897,
13,
1678,
736,
27321,
13,
13,
13,
1753,
679,
29918,
1792,
29918,
29113,
29918,
1287,
1731,
29898,
1287,
1731,
1125,
13,
1678,
9995,
13,
1678,
11221,
263,
27321,
393,
338,
7424,
304,
367,
22822,
29892,
372,
3639,
278,
1404,
393,
13,
1678,
338,
7714,
292,
372,
29889,
13,
1678,
584,
3207,
27321,
29901,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
1678,
4867,
353,
16441,
29889,
12650,
29889,
657,
29898,
7924,
29918,
1989,
29922,
1287,
1731,
29889,
7924,
29918,
1989,
29897,
13,
1678,
4867,
29918,
1272,
353,
4867,
29889,
657,
29918,
7099,
6797,
580,
13,
1678,
736,
679,
29918,
1792,
29918,
4299,
2141,
12650,
29889,
657,
29898,
333,
29922,
7924,
29918,
1272,
29889,
657,
877,
29918,
5150,
29918,
1792,
29918,
333,
8785,
13,
13,
13,
1753,
1439,
496,
29918,
1272,
2557,
29898,
1287,
1731,
1125,
13,
1678,
9995,
13,
1678,
11221,
263,
27321,
1203,
29892,
5217,
967,
12205,
13,
1678,
584,
3207,
27321,
29901,
13,
1678,
584,
2457,
29901,
9531,
29892,
278,
27321,
1203,
338,
4784,
13,
1678,
9995,
13,
1678,
11701,
29918,
2585,
29889,
8143,
29918,
2371,
29898,
1287,
1731,
29889,
333,
29897,
13,
13,
1678,
396,
21267,
1353,
310,
4206,
322,
4341,
13,
1678,
27321,
29889,
29876,
5727,
353,
29871,
29900,
13,
1678,
27321,
29889,
29876,
22724,
353,
29871,
29900,
13,
1678,
27321,
29889,
29876,
29918,
4572,
29881,
29918,
5727,
353,
448,
29896,
13,
1678,
27321,
29889,
7620,
580,
13,
13,
1678,
396,
21267,
278,
1897,
29918,
7039,
29892,
1897,
29918,
8768,
322,
1897,
29918,
13092,
13,
1678,
12481,
29889,
12650,
29889,
4572,
29898,
1287,
1731,
1649,
333,
29922,
1287,
1731,
29889,
333,
467,
8143,
580,
13,
13,
1678,
396,
21267,
278,
5235,
363,
13641,
5627,
13,
1678,
27321,
29889,
842,
29918,
1972,
29918,
16409,
29918,
3554,
580,
13,
13,
1678,
396,
6137,
1024,
13,
1678,
27321,
29889,
1272,
29918,
2557,
29918,
2371,
29918,
978,
353,
6629,
13,
13,
1678,
396,
16913,
278,
27321,
411,
278,
716,
4235,
29889,
13,
1678,
27321,
29889,
7620,
580,
13,
13,
13,
1753,
437,
29918,
5215,
29918,
1287,
1731,
29898,
1792,
29892,
1024,
29892,
934,
29918,
667,
1125,
13,
1678,
9995,
13,
1678,
24328,
3145,
263,
1024,
322,
263,
934,
2944,
313,
1491,
29885,
4430,
1549,
263,
883,
29897,
322,
10017,
13,
1678,
278,
3829,
310,
27321,
29892,
5855,
29892,
8820,
322,
848,
1591,
29889,
13,
13,
1678,
584,
3207,
1404,
29901,
4911,
2407,
304,
671,
363,
278,
1053,
313,
776,
599,
2825,
4452,
29897,
13,
1678,
584,
3207,
1024,
29901,
5244,
1731,
1024,
313,
277,
756,
1063,
7120,
393,
372,
947,
451,
1863,
29897,
13,
1678,
584,
3207,
934,
29918,
667,
29901,
3497,
2944,
7625,
1549,
263,
883,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
13,
1678,
848,
29918,
262,
353,
330,
7554,
29889,
29954,
7554,
2283,
29898,
1445,
5415,
29922,
1445,
29918,
667,
29897,
13,
1678,
848,
353,
4663,
11726,
2141,
5510,
29898,
1272,
29918,
262,
29897,
13,
1678,
396,
1816,
6646,
2793,
13,
1678,
27321,
29918,
1272,
353,
5244,
1731,
17518,
17679,
29898,
13,
4706,
848,
29922,
1272,
29892,
13,
4706,
3030,
3790,
29915,
1792,
2396,
1404,
29892,
525,
978,
2396,
1024,
29913,
13,
1678,
1723,
13,
13,
1678,
396,
960,
3099,
3512,
2743,
29892,
736,
278,
1347,
304,
1510,
304,
278,
883,
29889,
13,
1678,
27321,
353,
6213,
13,
1678,
1018,
29901,
13,
4706,
565,
451,
27321,
29918,
1272,
29889,
275,
29918,
3084,
7295,
13,
9651,
736,
525,
2525,
519,
304,
1053,
278,
27321,
29915,
718,
525,
6702,
718,
320,
13,
462,
259,
27321,
29918,
1272,
29889,
12523,
718,
525,
16029,
13,
13,
4706,
396,
16913,
278,
716,
27321,
13,
4706,
27321,
353,
27321,
29918,
1272,
29889,
7620,
29898,
1792,
29922,
1792,
29892,
1024,
29922,
978,
29897,
13,
1678,
5174,
313,
1542,
2392,
29892,
2216,
1888,
2037,
287,
2392,
29897,
408,
321,
29901,
13,
4706,
736,
525,
2525,
519,
304,
1053,
27321,
313,
2451,
29901,
525,
718,
321,
29889,
4906,
718,
525,
16029,
13,
1678,
5174,
7797,
19427,
29889,
19448,
2392,
408,
321,
29901,
13,
4706,
736,
525,
2525,
519,
304,
1053,
27321,
2861,
304,
263,
8845,
1059,
29915,
13,
13,
1678,
565,
451,
11701,
29918,
2585,
29889,
3198,
29918,
29893,
29888,
29918,
2176,
29898,
1287,
1731,
1125,
13,
4706,
396,
12538,
3512,
2743,
29889,
13,
4706,
27321,
29889,
8143,
580,
13,
4706,
736,
525,
5531,
1731,
848,
411,
10240,
3829,
6169,
13,
13,
1678,
396,
21397,
13,
1678,
396,
4522,
278,
1741,
13,
1678,
10748,
29889,
3554,
29889,
649,
29898,
1792,
29892,
13,
462,
525,
1287,
1731,
29918,
5215,
742,
13,
462,
27321,
29892,
13,
462,
11117,
333,
2396,
27321,
29889,
333,
29892,
13,
462,
29871,
525,
978,
2396,
27321,
29889,
978,
1800,
13,
1678,
736,
6213,
13,
13,
13,
1753,
437,
29918,
15843,
29918,
1287,
1731,
29898,
1287,
1731,
29892,
4629,
29918,
7387,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
1019,
3947,
411,
278,
27321,
5609,
29889,
13,
1678,
584,
3207,
27321,
29901,
5244,
1731,
2407,
304,
5609,
367,
5134,
29889,
13,
1678,
584,
3207,
4629,
29918,
7387,
29901,
319,
11306,
310,
8820,
304,
5609,
13,
1678,
584,
2457,
29901,
9305,
393,
3697,
263,
9659,
362,
2643,
322,
8665,
278,
5142,
13,
1678,
9995,
13,
13,
1678,
396,
6204,
278,
3030,
1203,
363,
278,
7797,
3950,
13,
1678,
3030,
353,
11117,
8391,
29918,
7387,
2396,
4629,
29918,
7387,
29913,
13,
13,
1678,
396,
3617,
278,
5235,
304,
3638,
515,
278,
7797,
3950,
13,
1678,
7797,
3950,
353,
5244,
1731,
26382,
17679,
29898,
1287,
1731,
29892,
3030,
29922,
4703,
29897,
13,
1678,
304,
29918,
6717,
353,
4663,
21323,
2141,
9482,
29898,
15550,
3950,
29889,
1272,
29897,
13,
13,
1678,
396,
3617,
278,
297,
29899,
14834,
934,
304,
27122,
13,
1678,
503,
9721,
353,
2648,
2167,
5971,
580,
13,
1678,
503,
1445,
353,
330,
7554,
29889,
29954,
7554,
2283,
29898,
8513,
2433,
29893,
29890,
742,
27122,
5563,
29922,
29953,
29892,
934,
5415,
29922,
29920,
9721,
29897,
13,
1678,
503,
1445,
29889,
3539,
29898,
517,
29918,
6717,
29897,
13,
1678,
503,
1445,
29889,
5358,
580,
13,
13,
1678,
396,
6212,
496,
278,
419,
13120,
995,
304,
278,
2933,
322,
3638,
13,
1678,
419,
13120,
29918,
3051,
353,
503,
9721,
29889,
657,
1767,
580,
13,
1678,
2933,
353,
9056,
5103,
29898,
510,
13120,
29918,
3051,
29897,
13,
1678,
2933,
1839,
3916,
29899,
14934,
2033,
353,
525,
6214,
29914,
29887,
7554,
29915,
13,
1678,
2933,
1839,
3916,
29899,
4205,
3283,
2033,
353,
320,
13,
4706,
525,
14930,
358,
29936,
10422,
543,
609,
1278,
29918,
1287,
1731,
29889,
18828,
29908,
29915,
13,
1678,
2933,
1839,
3916,
29899,
6513,
2033,
353,
851,
29898,
2435,
29898,
510,
13120,
29918,
3051,
876,
13,
13,
1678,
736,
2933,
13,
13,
13,
1753,
27321,
29918,
8143,
29918,
4914,
29898,
1287,
1731,
29892,
1897,
29892,
2148,
29918,
517,
29918,
8143,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
11221,
263,
27321,
322,
263,
1897,
29892,
25388,
372,
515,
278,
27321,
313,
392,
278,
13,
1678,
6590,
848,
3515,
13,
1678,
584,
3207,
27321,
29901,
5244,
1731,
1203,
13,
1678,
584,
3207,
1897,
29901,
12481,
1203,
304,
5217,
13,
1678,
584,
3207,
2148,
29918,
517,
29918,
8143,
29901,
2391,
310,
5855,
304,
5217,
1156,
11077,
278,
13,
1678,
1897,
13,
1678,
584,
2457,
29901,
9531,
29889,
26475,
25312,
297,
278,
2566,
13,
1678,
9995,
13,
13,
1678,
396,
20724,
278,
1897,
515,
278,
6535,
1591,
15446,
278,
848,
3515,
13,
1678,
11701,
29918,
2585,
29889,
2176,
29918,
8865,
29918,
4914,
29898,
1287,
1731,
29889,
333,
29892,
1897,
29889,
978,
29897,
13,
13,
1678,
396,
21267,
278,
1897,
13,
1678,
1897,
29889,
8143,
580,
13,
13,
1678,
396,
10318,
278,
2472,
297,
278,
27321,
13,
1678,
27321,
29889,
29876,
22724,
353,
27321,
29889,
29876,
22724,
448,
29871,
29896,
13,
1678,
27321,
29889,
7620,
580,
13,
13,
1678,
565,
451,
2148,
29918,
517,
29918,
8143,
29901,
13,
4706,
396,
450,
5855,
304,
5217,
526,
451,
2183,
29892,
577,
8147,
963,
13,
4706,
396,
3617,
278,
5855,
29914,
7387,
10959,
304,
445,
27321,
13,
4706,
2148,
29918,
517,
29918,
8143,
353,
518,
29916,
363,
921,
297,
11790,
654,
29889,
12650,
29889,
4572,
29898,
13,
9651,
3158,
1649,
1287,
1731,
29922,
1287,
1731,
29897,
13,
462,
3986,
565,
7063,
29918,
24219,
362,
29889,
5349,
29918,
11918,
29898,
29916,
29889,
689,
2497,
29892,
13,
462,
462,
462,
632,
1897,
29889,
978,
4638,
13,
13,
1678,
396,
960,
263,
1897,
8796,
15451,
29892,
278,
5855,
393,
1712,
393,
2286,
13,
1678,
396,
526,
6206,
636,
13,
1678,
363,
4195,
297,
2148,
29918,
517,
29918,
8143,
29901,
13,
4706,
396,
25515,
756,
278,
1024,
310,
278,
11132,
1897,
29889,
13,
4706,
396,
24380,
29871,
29896,
29901,
12487,
446,
313,
29963,
708,
4780,
29897,
13,
4706,
396,
24380,
29871,
29906,
29901,
4485,
408,
8340,
322,
26371,
749,
278,
3863,
4195,
883,
13,
4706,
396,
29871,
304,
4386,
4325,
11500,
278,
4235,
297,
263,
7063,
313,
8909,
29916,
29897,
13,
4706,
396,
13,
4706,
396,
24380,
29871,
29896,
10434,
29889,
13,
4706,
4195,
29889,
8143,
580,
13,
13,
1678,
396,
960,
263,
1897,
8796,
15451,
29892,
278,
8386,
393,
1712,
871,
393,
1897,
817,
304,
13,
1678,
396,
25417,
408,
1532,
408,
896,
526,
694,
5520,
8018,
29889,
13,
1678,
363,
1776,
297,
27321,
29889,
7406,
29889,
497,
7295,
13,
4706,
565,
1776,
29889,
13099,
29889,
497,
2141,
2798,
580,
1275,
29871,
29900,
29901,
13,
9651,
1776,
29889,
8143,
580,
13,
13,
1678,
736,
13,
13,
13,
1753,
17432,
29918,
4914,
29898,
4914,
29892,
716,
29918,
1287,
1731,
29922,
8516,
29892,
716,
29918,
978,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
6680,
393,
2183,
263,
1897,
1067,
2873,
372,
322,
3620,
27321,
322,
1024,
13,
1678,
584,
3207,
1897,
29901,
4669,
304,
17432,
13,
1678,
584,
3207,
716,
29918,
1287,
1731,
29901,
1570,
27321,
1203,
304,
1298,
13,
1678,
584,
3207,
716,
29918,
978,
29901,
1570,
1024,
13,
1678,
584,
2457,
29901,
2233,
22367,
1203,
13,
1678,
9995,
13,
1678,
396,
14491,
278,
2030,
1203,
1024,
1434,
10674,
1161,
292,
372,
13,
1678,
2030,
29918,
333,
353,
1897,
29889,
333,
13,
1678,
2030,
29918,
978,
353,
1897,
29889,
978,
13,
13,
1678,
396,
2233,
650,
13,
1678,
1897,
29889,
333,
353,
6213,
13,
13,
1678,
396,
10318,
777,
310,
278,
4235,
13,
1678,
565,
716,
29918,
978,
29901,
13,
4706,
1897,
29889,
978,
353,
716,
29918,
978,
13,
1678,
565,
716,
29918,
1287,
1731,
29901,
13,
4706,
1897,
29889,
1287,
1731,
353,
716,
29918,
1287,
1731,
13,
13,
1678,
396,
10318,
13,
1678,
1897,
29889,
7620,
580,
13,
13,
1678,
396,
3462,
278,
1897,
304,
278,
1591,
322,
2767,
372,
29889,
13,
1678,
848,
29918,
2557,
353,
11701,
29918,
2585,
29889,
1359,
29918,
3166,
29918,
2585,
29898,
4914,
29889,
1287,
1731,
29889,
333,
29897,
13,
1678,
848,
29918,
2557,
29961,
1482,
29918,
978,
29962,
353,
848,
29918,
2557,
29961,
1025,
29918,
978,
29962,
13,
1678,
288,
567,
29889,
8899,
29918,
1272,
2557,
29918,
262,
29918,
2585,
29898,
1272,
29918,
2557,
29892,
1897,
29889,
1287,
1731,
29889,
333,
29897,
13,
13,
1678,
736,
1897,
13,
2
] |
tests/shell/test_shell_commandline.py | mjacobs/impala | 0 | 1612828 | # encoding=utf-8
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import os
import pytest
import re
import signal
from subprocess import call
from tests.common.impala_service import ImpaladService
from tests.common.impala_test_suite import ImpalaTestSuite
from tests.common.skip import SkipIf
from time import sleep
from util import IMPALAD, SHELL_CMD
from util import assert_var_substitution, run_impala_shell_cmd, ImpalaShell
DEFAULT_QUERY = 'select 1'
QUERY_FILE_PATH = os.path.join(os.environ['IMPALA_HOME'], 'tests', 'shell')
@pytest.fixture
def empty_table(unique_database, request):
"""Create an empty table within the test database before executing test.
The table will have the same name as the test_function itself. Setup and teardown
of the database is handled by the unique_database fixture.
Args:
unique_database: pytest fixture defined in conftest.py
request: standard pytest request fixture
Returns:
fq_table_name (str): the fully qualified name of the table: : dbname.table_name
"""
table_name = request.node.name
fq_table_name = '.'.join([unique_database, table_name])
stmt = "CREATE TABLE %s (i integer, s string)" % fq_table_name
request.instance.execute_query_expect_success(request.instance.client, stmt,
query_options={'sync_ddl': 1})
return fq_table_name
@pytest.fixture
def populated_table(empty_table, request):
"""
Populate a table within the test database before executing test.
The table will have the same name as the test_function itself. Setup and teardown
of the database is handled by the unique_database fixture.
Args:
empty_table: pytest fixture that creates an empty table
request: standard pytest request fixture
Returns:
fq_table_name (str): the fully qualified name of the table: : dbname.table_name
"""
fq_table_name = empty_table
stmt = "insert into %s values (1, 'a'),(1, 'b'),(3, 'b')" % fq_table_name
request.instance.execute_query_expect_success(request.instance.client, stmt)
return fq_table_name
class TestImpalaShell(ImpalaTestSuite):
"""A set of sanity tests for the Impala shell commandline parameters.
The tests need to maintain Python 2.4 compatibility as a sub-goal of having
shell tests is to ensure that it's not broken in systems running Python 2.4.
The tests need a running impalad instance in order to execute queries.
TODO:
* Test individual modules.
* Add a test for a kerberized impala.
"""
def test_no_args(self):
args = '-q "%s"' % DEFAULT_QUERY
run_impala_shell_cmd(args)
def test_multiple_queries(self):
queries = ';'.join([DEFAULT_QUERY] * 3)
args = '-q "%s" -B' % queries
run_impala_shell_cmd(args)
def test_multiple_queries_with_escaped_backslash(self):
"""Regression test for string containing an escaped backslash.
This relies on the patch at thirdparty/patches/sqlparse/0001-....patch.
"""
run_impala_shell_cmd(r'''-q "select '\\\\'; select '\\'';" -B''')
def test_default_db(self, empty_table):
db_name, table_name = empty_table.split('.')
args = '-d %s -q "describe %s" --quiet' % (db_name, table_name)
run_impala_shell_cmd(args)
args = '-q "describe %s"' % table_name
run_impala_shell_cmd(args, expect_success=False)
# test keyword parquet is interpreted as an identifier
# when passed as an argument to -d
args = '-d parquet'
result = run_impala_shell_cmd(args)
assert "Query: use `parquet`" in result.stderr, result.stderr
# test if backticking is idempotent
args = "-d '```parquet```'"
result = run_impala_shell_cmd(args)
assert "Query: use `parquet`" in result.stderr, result.stderr
def test_unsecure_message(self):
results = run_impala_shell_cmd("")
assert "Starting Impala Shell without Kerberos authentication" in results.stderr
def test_print_header(self, populated_table):
args = '--print_header -B --output_delim="," -q "select * from %s"' % populated_table
result = run_impala_shell_cmd(args)
result_rows = result.stdout.strip().split('\n')
assert len(result_rows) == 4
assert result_rows[0].split(',') == ['i', 's']
args = '-B --output_delim="," -q "select * from %s"' % populated_table
result = run_impala_shell_cmd(args)
result_rows = result.stdout.strip().split('\n')
assert len(result_rows) == 3
@pytest.mark.execute_serially
def test_kerberos_option(self):
args = "-k"
# If you have a valid kerberos ticket in your cache, this test fails - so
# here we set a bogus KRB5CCNAME in the environment so that klist (and other
# kerberos commands) won't find the normal ticket cache.
# KERBEROS TODO: add kerberized cluster test case
os.environ["KRB5CCNAME"] = "/tmp/this/file/hopefully/does/not/exist"
# The command will fail because we're trying to connect to a kerberized impalad.
results = run_impala_shell_cmd(args, expect_success=False)
# Check that impala is using the right service name.
assert "Using service name 'impala'" in results.stderr
assert "Starting Impala Shell using Kerberos authentication" in results.stderr
# Check that Impala warns the user if klist does not exist on the system, or if
# no kerberos tickets are initialized.
try:
call(["klist"])
expected_error_msg = ("-k requires a valid kerberos ticket but no valid kerberos "
"ticket found.")
assert expected_error_msg in results.stderr
except OSError:
assert 'klist not found on the system' in results.stderr
# Make sure we don't try to re-connect
assert "retrying the connection with a secure transport" not in results.stderr
# Change the service name
args += " -s foobar"
results = run_impala_shell_cmd(args, expect_success=False)
assert "Using service name 'foobar'" in results.stderr
def test_continue_on_error(self):
args = '-c -q "select foo; select bar;"'
run_impala_shell_cmd(args)
# Should fail
args = '-q "select foo; select bar;"'
run_impala_shell_cmd(args, expect_success=False)
def test_execute_queries_from_file(self):
args = '-f %s/test_file_comments.sql --quiet -B' % QUERY_FILE_PATH
result = run_impala_shell_cmd(args)
output = result.stdout
args = '-f %s/test_file_no_comments.sql --quiet -B' % QUERY_FILE_PATH
result = run_impala_shell_cmd(args)
assert output == result.stdout, "Queries with comments not parsed correctly"
def test_completed_query_errors(self):
args = ('-q "set abort_on_error=false;'
' select count(*) from functional_seq_snap.bad_seq_snap"')
result = run_impala_shell_cmd(args)
assert 'WARNINGS:' in result.stderr
assert 'Bad synchronization marker' in result.stderr
assert 'Expected: ' in result.stderr
assert 'Actual: ' in result.stderr
assert 'Problem parsing file' in result.stderr
def test_no_warnings_in_log_with_quiet_mode(self):
"""Regression test for IMPALA-4222."""
args = ('-q "set abort_on_error=false;'
' select count(*) from functional_seq_snap.bad_seq_snap" --quiet')
result = run_impala_shell_cmd(args)
assert 'WARNINGS:' not in result.stderr
def test_removed_query_option(self):
"""Test that removed query options produce warning."""
result = run_impala_shell_cmd("-q 'set disable_cached_reads=true'",
expect_success=True)
assert "Ignoring removed query option: 'disable_cached_reads'" in result.stderr
def test_output_format(self):
expected_output = ['1'] * 3
args = '-q "select 1,1,1" -B --quiet'
result = run_impala_shell_cmd(args)
actual_output = [r.strip() for r in result.stdout.split('\t')]
assert actual_output == expected_output
result = run_impala_shell_cmd(args + ' --output_delim="|"')
actual_output = [r.strip() for r in result.stdout.split('|')]
assert actual_output == expected_output
result = run_impala_shell_cmd(args + ' --output_delim="||"',
expect_success=False)
assert "Illegal delimiter" in result.stderr
def test_do_methods(self, empty_table):
"""Ensure that the do_ methods in the shell work.
Some of the do_ methods are implicitly tested in other tests, and as part of the
test setup.
"""
# explain
args = '-q "explain select 1"'
run_impala_shell_cmd(args)
# show
args = '-q "show tables"'
run_impala_shell_cmd(args)
# with
args = '-q "with t1 as (select 1) select * from t1"'
run_impala_shell_cmd(args)
# set
# spaces around the = sign
args = '-q "set batch_size = 10"'
run_impala_shell_cmd(args)
# no spaces around the = sign
args = '-q "set batch_size=10"'
run_impala_shell_cmd(args)
# test query options displayed
args = '-q "set"'
result_set = run_impala_shell_cmd(args)
assert 'MEM_LIMIT: [0]' in result_set.stdout
# test to check that explain_level is 1
assert 'EXPLAIN_LEVEL: [1]' in result_set.stdout
# test to check that configs without defaults show up as []
assert 'COMPRESSION_CODEC: []' in result_set.stdout
# test values displayed after setting value
args = '-q "set mem_limit=1g;set"'
result_set = run_impala_shell_cmd(args)
# single list means one instance of mem_limit in displayed output
assert 'MEM_LIMIT: 1g' in result_set.stdout
assert 'MEM_LIMIT: [0]' not in result_set.stdout
# Negative tests for set
# use : instead of =
args = '-q "set batch_size:10"'
run_impala_shell_cmd(args, expect_success=False)
# use 2 = signs
args = '-q "set batch_size=10=50"'
run_impala_shell_cmd(args, expect_success=False)
# describe and desc should return the same result.
args = '-q "describe %s" -B' % empty_table
result_describe = run_impala_shell_cmd(args)
args = '-q "desc %s" -B' % empty_table
result_desc = run_impala_shell_cmd(args)
assert result_describe.stdout == result_desc.stdout
def test_runtime_profile(self):
# test summary is in both the profile printed by the
# -p option and the one printed by the profile command
args = "-p -q 'select 1; profile;'"
result_set = run_impala_shell_cmd(args)
# This regex helps us uniquely identify a profile.
regex = re.compile("Operator\s+#Hosts\s+Avg\s+Time")
# We expect two query profiles.
assert len(re.findall(regex, result_set.stdout)) == 2, \
"Could not detect two profiles, stdout: %s" % result_set.stdout
def test_summary(self):
args = "-q 'select count(*) from functional.alltypes; summary;'"
result_set = run_impala_shell_cmd(args)
assert "03:AGGREGATE" in result_set.stdout
args = "-q 'summary;'"
result_set = run_impala_shell_cmd(args, expect_success=False)
assert "Could not retrieve summary for query" in result_set.stderr
args = "-q 'show tables; summary;'"
result_set = run_impala_shell_cmd(args)
assert "Summary not available" in result_set.stderr
# Test queries without an exchange
args = "-q 'select 1; summary;'"
result_set = run_impala_shell_cmd(args)
assert "00:UNION" in result_set.stdout
@pytest.mark.execute_serially
def test_queries_closed(self):
"""Regression test for IMPALA-897."""
args = '-f %s/test_close_queries.sql --quiet -B' % QUERY_FILE_PATH
cmd = "%s %s" % (SHELL_CMD, args)
# Execute the shell command async
p = ImpalaShell(args)
impalad_service = ImpaladService(IMPALAD.split(':')[0])
# The last query in the test SQL script will sleep for 10 seconds, so sleep
# here for 5 seconds and verify the number of in-flight queries is 1.
sleep(5)
assert 1 == impalad_service.get_num_in_flight_queries()
assert p.get_result().rc == 0
assert 0 == impalad_service.get_num_in_flight_queries()
def test_cancellation(self):
"""Test cancellation (Ctrl+C event)."""
args = '-q "select sleep(10000)"'
p = ImpalaShell(args)
sleep(3)
os.kill(p.pid(), signal.SIGINT)
result = p.get_result()
assert "Cancelling Query" in result.stderr, result.stderr
@pytest.mark.execute_serially
def test_query_cancellation_during_fetch(self):
"""IMPALA-1144: Test cancellation (CTRL+C) while results are being
fetched"""
pytest.skip("""Skipping as it occasionally gets stuck in Jenkins builds
resulting the build to timeout.""")
# A select query where fetch takes several seconds
stmt = "with v as (values (1 as x), (2), (3), (4)) " + \
"select * from v, v v2, v v3, v v4, v v5, v v6, v v7, v v8, " + \
"v v9, v v10, v v11"
# Kill happens when the results are being fetched
self.run_and_verify_query_cancellation_test(stmt, "FINISHED")
@pytest.mark.execute_serially
def test_query_cancellation_during_wait_to_finish(self):
"""IMPALA-1144: Test cancellation (CTRL+C) while the query is in the
wait_to_finish state"""
# A select where wait_to_finish takes several seconds
stmt = "select * from tpch.customer c1, tpch.customer c2, " + \
"tpch.customer c3 order by c1.c_name"
# Kill happens in wait_to_finish state
self.run_and_verify_query_cancellation_test(stmt, "RUNNING")
def wait_for_query_state(self, stmt, state, max_retry=15):
"""Checks the in flight queries on Impala debug page. Polls the state of
the query statement from parameter every second until the query gets to
a state given via parameter or a maximum retry count is reached.
Restriction: Only works if there is only one in flight query."""
impalad_service = ImpaladService(IMPALAD.split(':')[0])
if not impalad_service.wait_for_num_in_flight_queries(1):
raise Exception("No in flight query found")
retry_count = 0
while retry_count <= max_retry:
query_info = impalad_service.get_in_flight_queries()[0]
if query_info['stmt'] != stmt:
exc_text = "The found in flight query is not the one under test: " + \
query_info['stmt']
raise Exception(exc_text)
if query_info['state'] == state:
return
retry_count += 1
sleep(1.0)
raise Exception("Query didn't reach desired state: " + state)
def run_and_verify_query_cancellation_test(self, stmt, cancel_at_state):
"""Starts the execution of the received query, waits until the query
execution in fact starts and then cancels it. Expects the query
cancellation to succeed."""
args = "-q \"" + stmt + ";\""
p = ImpalaShell(args)
self.wait_for_query_state(stmt, cancel_at_state)
os.kill(p.pid(), signal.SIGINT)
result = p.get_result()
assert "Cancelling Query" in result.stderr
assert "Invalid query handle" not in result.stderr
def test_get_log_once(self, empty_table):
"""Test that get_log() is always called exactly once."""
# Query with fetch
args = '-q "select * from functional.alltypeserror"'
result = run_impala_shell_cmd(args)
assert result.stderr.count('WARNINGS') == 1
# Insert query (doesn't fetch)
drop_args = '-q "drop table if exists %s"' % empty_table
run_impala_shell_cmd(drop_args)
args = '-q "create table %s like functional.alltypeserror"' % empty_table
run_impala_shell_cmd(args)
args = '-q "insert overwrite %s partition(year, month)' \
'select * from functional.alltypeserror"' % empty_table
result = run_impala_shell_cmd(args)
assert result.stderr.count('WARNINGS') == 1
def test_international_characters(self):
"""Sanity test to ensure that the shell can read international characters."""
russian_chars = (u"А, Б, В, Г, Д, Е, Ё, Ж, З, И, Й, К, Л, М, Н, О, П, Р,"
u"С, Т, У, Ф, Х, Ц,Ч, Ш, Щ, Ъ, Ы, Ь, Э, Ю, Я")
args = """-B -q "select '%s'" """ % russian_chars
result = run_impala_shell_cmd(args.encode('utf-8'))
assert 'UnicodeDecodeError' not in result.stderr
assert russian_chars.encode('utf-8') in result.stdout
@pytest.mark.execute_serially # This tests invalidates metadata, and must run serially
def test_config_file(self):
"""Test the optional configuration file."""
# Positive tests
args = '--config_file=%s/good_impalarc' % QUERY_FILE_PATH
result = run_impala_shell_cmd(args)
assert 'Query: select 1' in result.stderr
# override option in config file through command line
args = '--config_file=%s/good_impalarc --query="select 2"' % QUERY_FILE_PATH
result = run_impala_shell_cmd(args)
assert 'Query: select 2' in result.stderr
# Negative Tests
# specified config file does not exist
args = '--config_file=%s/does_not_exist' % QUERY_FILE_PATH
run_impala_shell_cmd(args, expect_success=False)
# bad formatting of config file
args = '--config_file=%s/bad_impalarc' % QUERY_FILE_PATH
run_impala_shell_cmd(args, expect_success=False)
# Testing config file related warning and error messages
args = '--config_file=%s/impalarc_with_warnings' % QUERY_FILE_PATH
result = run_impala_shell_cmd(args, expect_success=True)
assert "WARNING: Option 'config_file' can be only set from shell." in result.stderr
err_msg = ("WARNING: Unable to read configuration file correctly. "
"Ignoring unrecognized config option: 'invalid_option'\n")
assert err_msg in result.stderr
args = '--config_file=%s/impalarc_with_error' % QUERY_FILE_PATH
result = run_impala_shell_cmd(args, expect_success=False)
err_msg = ("Unexpected value in configuration file. "
"'maybe' is not a valid value for a boolean option.")
assert err_msg in result.stderr
def test_execute_queries_from_stdin(self):
"""Test that queries get executed correctly when STDIN is given as the sql file."""
args = '-f - --quiet -B'
query_file = "%s/test_file_comments.sql" % QUERY_FILE_PATH
query_file_handle = None
try:
query_file_handle = open(query_file, 'r')
query = query_file_handle.read()
query_file_handle.close()
except Exception, e:
assert query_file_handle is not None, "Exception %s: Could not find query file" % e
result = run_impala_shell_cmd(args, expect_success=True, stdin_input=query)
output = result.stdout
args = '-f %s/test_file_no_comments.sql --quiet -B' % QUERY_FILE_PATH
result = run_impala_shell_cmd(args)
assert output == result.stdout, "Queries from STDIN not parsed correctly."
def test_allow_creds_in_clear(self):
args = '-l'
result = run_impala_shell_cmd(args, expect_success=False)
err_msg = ("LDAP credentials may not be sent over insecure connections. "
"Enable SSL or set --auth_creds_ok_in_clear")
assert err_msg in result.stderr
# TODO: Without an Impala daemon running LDAP authentication, we can't test if
# --auth_creds_ok_in_clear works when correctly set.
def test_ldap_password_from_shell(self):
args = "-l --auth_creds_ok_in_clear --ldap_password_cmd='%s'"
result = run_impala_shell_cmd(args % 'cmddoesntexist', expect_success=False)
assert ("Error retrieving LDAP password (command was: 'cmddoesntexist', exception "
"was: '[Errno 2] No such file or directory')") in result.stderr
result = run_impala_shell_cmd(args % 'cat filedoesntexist', expect_success=False)
assert ("Error retrieving LDAP password (command was 'cat filedoesntexist', error "
"was: 'cat: filedoesntexist: No such file or directory')") in result.stderr
# TODO: Without an Impala daemon with LDAP authentication enabled, we can't test the
# positive case where the password is correct.
def test_var_substitution(self):
args = '--var=foo=123 --var=BAR=456 --delimited --output_delimiter=" " -c -f %s' \
% (os.path.join(QUERY_FILE_PATH, 'test_var_substitution.sql'))
result = run_impala_shell_cmd(args, expect_success=True)
assert_var_substitution(result)
args = '--var=foo'
result = run_impala_shell_cmd(args, expect_success=False)
assert ("Error: Could not parse key-value \"foo\". It must follow the pattern "
"\"KEY=VALUE\".") in result.stderr
# Checks if 'messages' exists/does not exist in 'result_stderr' based on the value of
# 'should_exist'
def _validate_shell_messages(self, result_stderr, messages, should_exist=True):
for msg in messages:
if should_exist:
assert msg in result_stderr
else:
assert msg not in result_stderr
def test_query_time_and_link_message(self, unique_database):
shell_messages = ["Query submitted at: ", "(Coordinator: ",
"Query progress can be monitored at: "]
# CREATE statements should not print query time and webserver address.
results = run_impala_shell_cmd('--query="create table %s.shell_msg_test (id int)"' %
unique_database)
self._validate_shell_messages(results.stderr, shell_messages, should_exist=False)
# SELECT, INSERT, CTAS, CTE queries should print the query time message and webserver
# address.
results = run_impala_shell_cmd('--query="insert into %s.shell_msg_test values (1)"' %
unique_database)
self._validate_shell_messages(results.stderr, shell_messages, should_exist=True)
results = run_impala_shell_cmd('--query="select * from %s.shell_msg_test"' %
unique_database)
self._validate_shell_messages(results.stderr, shell_messages, should_exist=True)
results = run_impala_shell_cmd('--query="create table %s.shell_msg_ctas_test as \
select * from %s.shell_msg_test"' % (unique_database, unique_database))
self._validate_shell_messages(results.stderr, shell_messages, should_exist=True)
results = run_impala_shell_cmd('--query="create table %s.shell_msg_cte_test(i int); '
'with abc as (select 1) '
'insert overwrite %s.shell_msg_cte_test '
'select * from %s.shell_msg_cte_test;"' %
(unique_database, unique_database, unique_database))
self._validate_shell_messages(results.stderr, shell_messages, should_exist=True)
# DROP statements should not print query time and webserver address.
results = run_impala_shell_cmd('--query="drop table %s.shell_msg_test"' %
unique_database)
self._validate_shell_messages(results.stderr, shell_messages, should_exist=False)
run_impala_shell_cmd('--query="drop table %s.shell_msg_ctas_test"' %
unique_database)
# Simple queries should not print query time and webserver address.
results = run_impala_shell_cmd('--query="use default"')
self._validate_shell_messages(results.stderr, shell_messages, should_exist=False)
results = run_impala_shell_cmd('--query="show tables"')
self._validate_shell_messages(results.stderr, shell_messages, should_exist=False)
def test_insert_status(self, unique_database):
run_impala_shell_cmd('--query="create table %s.insert_test (id int)"' %
unique_database)
results = run_impala_shell_cmd('--query="insert into %s.insert_test values (1)"' %
unique_database)
assert "Modified 1 row(s)" in results.stderr
def _validate_dml_stmt(self, stmt, expected_rows_modified, expected_row_errors):
results = run_impala_shell_cmd('--query="%s"' % (stmt))
expected_output = "Modified %d row(s), %d row error(s)" %\
(expected_rows_modified, expected_row_errors)
assert expected_output in results.stderr
@SkipIf.kudu_not_supported
def test_kudu_dml_reporting(self, unique_database):
db = unique_database
run_impala_shell_cmd('--query="create table %s.dml_test (id int primary key, '\
'age int null) partition by hash(id) partitions 2 stored as kudu"' % db)
self._validate_dml_stmt("insert into %s.dml_test (id) values (7), (7)" % db, 1, 1)
self._validate_dml_stmt("insert into %s.dml_test (id) values (7)" % db, 0, 1)
self._validate_dml_stmt("upsert into %s.dml_test (id) values (7), (7)" % db, 2, 0)
self._validate_dml_stmt("update %s.dml_test set age = 1 where id = 7" % db, 1, 0)
self._validate_dml_stmt("delete from %s.dml_test where id = 7" % db, 1, 0)
# UPDATE/DELETE where there are no matching rows; there are no errors because the
# scan produced no rows.
self._validate_dml_stmt("update %s.dml_test set age = 1 where id = 8" % db, 0, 0)
self._validate_dml_stmt("delete from %s.dml_test where id = 7" % db, 0, 0)
# WITH clauses, only apply to INSERT and UPSERT
self._validate_dml_stmt(\
"with y as (values(7)) insert into %s.dml_test (id) select * from y" % db, 1, 0)
self._validate_dml_stmt(\
"with y as (values(7)) insert into %s.dml_test (id) select * from y" % db, 0, 1)
self._validate_dml_stmt(\
"with y as (values(7)) upsert into %s.dml_test (id) select * from y" % db, 1, 0)
def test_missing_query_file(self):
result = run_impala_shell_cmd('-f nonexistent.sql', expect_success=False)
assert "Could not open file 'nonexistent.sql'" in result.stderr
| [
1,
396,
8025,
29922,
9420,
29899,
29947,
13,
29937,
13,
29937,
10413,
21144,
304,
278,
13380,
18540,
10606,
313,
3289,
29943,
29897,
1090,
697,
13,
29937,
470,
901,
17737,
3406,
19405,
8571,
4110,
29889,
29871,
2823,
278,
6058,
12107,
934,
13,
29937,
13235,
411,
445,
664,
363,
5684,
2472,
13,
29937,
11211,
3509,
1266,
27428,
29889,
29871,
450,
3339,
29943,
7794,
11259,
445,
934,
13,
29937,
304,
366,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
13,
29937,
376,
29931,
293,
1947,
1496,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
13,
29937,
411,
278,
19245,
29889,
29871,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
259,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
13,
29937,
7047,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
13,
29937,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
13,
29937,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
29871,
2823,
278,
19245,
363,
278,
13,
29937,
2702,
4086,
14765,
1076,
11239,
322,
27028,
13,
29937,
1090,
278,
19245,
29889,
13,
13,
5215,
2897,
13,
5215,
11451,
1688,
13,
5215,
337,
13,
5215,
7182,
13,
13,
3166,
1014,
5014,
1053,
1246,
13,
3166,
6987,
29889,
9435,
29889,
6574,
2883,
29918,
5509,
1053,
14305,
284,
328,
3170,
13,
3166,
6987,
29889,
9435,
29889,
6574,
2883,
29918,
1688,
29918,
13495,
1053,
14305,
2883,
3057,
5091,
568,
13,
3166,
6987,
29889,
9435,
29889,
11014,
1053,
4971,
666,
3644,
13,
3166,
931,
1053,
8709,
13,
3166,
3667,
1053,
306,
3580,
1964,
3035,
29892,
317,
9606,
2208,
29918,
29907,
5773,
13,
3166,
3667,
1053,
4974,
29918,
1707,
29918,
22492,
5008,
29892,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29892,
14305,
2883,
16037,
13,
13,
23397,
29918,
13356,
24422,
353,
525,
2622,
29871,
29896,
29915,
13,
13356,
24422,
29918,
7724,
29918,
10145,
353,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
21813,
1839,
29902,
3580,
1964,
29909,
29918,
17353,
7464,
525,
21150,
742,
525,
15903,
1495,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
13,
1753,
4069,
29918,
2371,
29898,
13092,
29918,
9803,
29892,
2009,
1125,
13,
29871,
9995,
4391,
385,
4069,
1591,
2629,
278,
1243,
2566,
1434,
14012,
1243,
29889,
13,
13,
29871,
450,
1591,
674,
505,
278,
1021,
1024,
408,
278,
1243,
29918,
2220,
3528,
29889,
3789,
786,
322,
734,
538,
776,
13,
29871,
310,
278,
2566,
338,
16459,
491,
278,
5412,
29918,
9803,
5713,
15546,
29889,
13,
13,
29871,
826,
3174,
29901,
13,
1678,
5412,
29918,
9803,
29901,
11451,
1688,
5713,
15546,
3342,
297,
378,
615,
342,
29889,
2272,
13,
1678,
2009,
29901,
3918,
11451,
1688,
2009,
5713,
15546,
13,
13,
29871,
16969,
29901,
13,
1678,
285,
29939,
29918,
2371,
29918,
978,
313,
710,
1125,
278,
8072,
18698,
1024,
310,
278,
1591,
29901,
584,
4833,
978,
29889,
2371,
29918,
978,
13,
29871,
9995,
13,
29871,
1591,
29918,
978,
353,
2009,
29889,
3177,
29889,
978,
13,
29871,
285,
29939,
29918,
2371,
29918,
978,
353,
15300,
4286,
7122,
4197,
13092,
29918,
9803,
29892,
1591,
29918,
978,
2314,
13,
29871,
380,
4378,
353,
376,
27045,
10911,
1273,
29879,
313,
29875,
6043,
29892,
269,
1347,
5513,
1273,
285,
29939,
29918,
2371,
29918,
978,
13,
29871,
2009,
29889,
8758,
29889,
7978,
29918,
1972,
29918,
17854,
29918,
8698,
29898,
3827,
29889,
8758,
29889,
4645,
29892,
380,
4378,
29892,
13,
462,
462,
18884,
2346,
29918,
6768,
3790,
29915,
16593,
29918,
1289,
29880,
2396,
29871,
29896,
1800,
13,
29871,
736,
285,
29939,
29918,
2371,
29918,
978,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
13,
1753,
24146,
29918,
2371,
29898,
6310,
29918,
2371,
29892,
2009,
1125,
13,
29871,
9995,
13,
29871,
6977,
5987,
263,
1591,
2629,
278,
1243,
2566,
1434,
14012,
1243,
29889,
13,
13,
29871,
450,
1591,
674,
505,
278,
1021,
1024,
408,
278,
1243,
29918,
2220,
3528,
29889,
3789,
786,
322,
734,
538,
776,
13,
29871,
310,
278,
2566,
338,
16459,
491,
278,
5412,
29918,
9803,
5713,
15546,
29889,
13,
13,
29871,
826,
3174,
29901,
13,
1678,
4069,
29918,
2371,
29901,
11451,
1688,
5713,
15546,
393,
10017,
385,
4069,
1591,
13,
1678,
2009,
29901,
3918,
11451,
1688,
2009,
5713,
15546,
13,
13,
29871,
16969,
29901,
13,
1678,
285,
29939,
29918,
2371,
29918,
978,
313,
710,
1125,
278,
8072,
18698,
1024,
310,
278,
1591,
29901,
584,
4833,
978,
29889,
2371,
29918,
978,
13,
29871,
9995,
13,
29871,
285,
29939,
29918,
2371,
29918,
978,
353,
4069,
29918,
2371,
13,
29871,
380,
4378,
353,
376,
7851,
964,
1273,
29879,
1819,
313,
29896,
29892,
525,
29874,
5477,
29898,
29896,
29892,
525,
29890,
5477,
29898,
29941,
29892,
525,
29890,
1495,
29908,
1273,
285,
29939,
29918,
2371,
29918,
978,
13,
29871,
2009,
29889,
8758,
29889,
7978,
29918,
1972,
29918,
17854,
29918,
8698,
29898,
3827,
29889,
8758,
29889,
4645,
29892,
380,
4378,
29897,
13,
29871,
736,
285,
29939,
29918,
2371,
29918,
978,
13,
13,
13,
1990,
4321,
24192,
2883,
16037,
29898,
24192,
2883,
3057,
5091,
568,
1125,
13,
29871,
9995,
29909,
731,
310,
9753,
537,
6987,
363,
278,
14305,
2883,
6473,
1899,
1220,
4128,
29889,
13,
13,
29871,
450,
6987,
817,
304,
7344,
5132,
29871,
29906,
29889,
29946,
24521,
408,
263,
1014,
29899,
28111,
310,
2534,
13,
29871,
6473,
6987,
338,
304,
9801,
393,
372,
29915,
29879,
451,
9391,
297,
6757,
2734,
5132,
29871,
29906,
29889,
29946,
29889,
13,
29871,
450,
6987,
817,
263,
2734,
2411,
284,
328,
2777,
297,
1797,
304,
6222,
9365,
29889,
13,
13,
29871,
14402,
29901,
13,
268,
334,
4321,
5375,
10585,
29889,
13,
268,
334,
3462,
263,
1243,
363,
263,
13023,
495,
1891,
2411,
2883,
29889,
13,
29871,
9995,
13,
13,
29871,
822,
1243,
29918,
1217,
29918,
5085,
29898,
1311,
1125,
13,
1678,
6389,
353,
17411,
29939,
11860,
29879,
29908,
29915,
1273,
22236,
29918,
13356,
24422,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
13,
29871,
822,
1243,
29918,
20787,
29918,
339,
6358,
29898,
1311,
1125,
13,
1678,
9365,
353,
21921,
4286,
7122,
4197,
23397,
29918,
13356,
24422,
29962,
334,
29871,
29941,
29897,
13,
1678,
6389,
353,
17411,
29939,
11860,
29879,
29908,
448,
29933,
29915,
1273,
9365,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
13,
29871,
822,
1243,
29918,
20787,
29918,
339,
6358,
29918,
2541,
29918,
267,
5030,
287,
29918,
1627,
17057,
29898,
1311,
1125,
13,
1678,
9995,
4597,
23881,
1243,
363,
1347,
6943,
385,
19824,
1250,
17057,
29889,
13,
13,
1678,
910,
337,
3687,
373,
278,
13261,
472,
4654,
22633,
29914,
5041,
267,
29914,
2850,
5510,
29914,
29900,
29900,
29900,
29896,
29899,
3045,
5041,
29889,
13,
1678,
9995,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
29878,
12008,
29899,
29939,
376,
2622,
525,
1966,
1966,
2670,
1831,
525,
1966,
29915,
2670,
29908,
448,
29933,
4907,
1495,
13,
13,
29871,
822,
1243,
29918,
4381,
29918,
2585,
29898,
1311,
29892,
4069,
29918,
2371,
1125,
13,
1678,
4833,
29918,
978,
29892,
1591,
29918,
978,
353,
4069,
29918,
2371,
29889,
5451,
12839,
1495,
13,
1678,
6389,
353,
17411,
29881,
1273,
29879,
448,
29939,
376,
2783,
29581,
1273,
29879,
29908,
1192,
339,
2035,
29915,
1273,
313,
2585,
29918,
978,
29892,
1591,
29918,
978,
29897,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
6389,
353,
17411,
29939,
376,
2783,
29581,
1273,
29879,
29908,
29915,
1273,
1591,
29918,
978,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
396,
1243,
13553,
610,
12621,
338,
21551,
408,
385,
15882,
13,
1678,
396,
746,
4502,
408,
385,
2980,
304,
448,
29881,
13,
1678,
6389,
353,
17411,
29881,
610,
12621,
29915,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
376,
3010,
29901,
671,
421,
862,
12621,
29952,
29908,
297,
1121,
29889,
303,
20405,
29892,
1121,
29889,
303,
20405,
13,
1678,
396,
1243,
565,
1250,
24667,
292,
338,
1957,
1526,
327,
296,
13,
1678,
6389,
353,
11663,
29881,
525,
28956,
862,
12621,
28956,
11838,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
376,
3010,
29901,
671,
421,
862,
12621,
29952,
29908,
297,
1121,
29889,
303,
20405,
29892,
1121,
29889,
303,
20405,
13,
13,
29871,
822,
1243,
29918,
348,
24216,
29918,
4906,
29898,
1311,
1125,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
703,
1159,
13,
1678,
4974,
376,
4763,
292,
14305,
2883,
1383,
514,
1728,
12693,
495,
359,
10760,
29908,
297,
2582,
29889,
303,
20405,
13,
13,
29871,
822,
1243,
29918,
2158,
29918,
6672,
29898,
1311,
29892,
24146,
29918,
2371,
1125,
13,
1678,
6389,
353,
525,
489,
2158,
29918,
6672,
448,
29933,
1192,
4905,
29918,
6144,
326,
543,
1699,
448,
29939,
376,
2622,
334,
515,
1273,
29879,
29908,
29915,
1273,
24146,
29918,
2371,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
1121,
29918,
5727,
353,
1121,
29889,
25393,
29889,
17010,
2141,
5451,
28909,
29876,
1495,
13,
1678,
4974,
7431,
29898,
2914,
29918,
5727,
29897,
1275,
29871,
29946,
13,
1678,
4974,
1121,
29918,
5727,
29961,
29900,
1822,
5451,
29317,
1495,
1275,
6024,
29875,
742,
525,
29879,
2033,
13,
13,
1678,
6389,
353,
17411,
29933,
1192,
4905,
29918,
6144,
326,
543,
1699,
448,
29939,
376,
2622,
334,
515,
1273,
29879,
29908,
29915,
1273,
24146,
29918,
2371,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
1121,
29918,
5727,
353,
1121,
29889,
25393,
29889,
17010,
2141,
5451,
28909,
29876,
1495,
13,
1678,
4974,
7431,
29898,
2914,
29918,
5727,
29897,
1275,
29871,
29941,
13,
13,
29871,
732,
2272,
1688,
29889,
3502,
29889,
7978,
29918,
15550,
368,
13,
29871,
822,
1243,
29918,
3946,
495,
359,
29918,
3385,
29898,
1311,
1125,
13,
1678,
6389,
353,
11663,
29895,
29908,
13,
13,
1678,
396,
960,
366,
505,
263,
2854,
13023,
495,
359,
23381,
297,
596,
7090,
29892,
445,
1243,
8465,
448,
577,
13,
1678,
396,
1244,
591,
731,
263,
26652,
375,
476,
29934,
29933,
29945,
4174,
5813,
297,
278,
5177,
577,
393,
413,
1761,
313,
392,
916,
13,
1678,
396,
13023,
495,
359,
8260,
29897,
2113,
29915,
29873,
1284,
278,
4226,
23381,
7090,
29889,
13,
1678,
396,
476,
1001,
13635,
3267,
14402,
29901,
788,
13023,
495,
1891,
9867,
1243,
1206,
13,
1678,
2897,
29889,
21813,
3366,
29968,
29934,
29933,
29945,
4174,
5813,
3108,
353,
5591,
7050,
29914,
1366,
29914,
1445,
29914,
1251,
412,
3730,
29914,
13221,
29914,
1333,
29914,
28997,
29908,
13,
13,
1678,
396,
450,
1899,
674,
4418,
1363,
591,
29915,
276,
1811,
304,
4511,
304,
263,
13023,
495,
1891,
2411,
284,
328,
29889,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
396,
5399,
393,
2411,
2883,
338,
773,
278,
1492,
2669,
1024,
29889,
13,
1678,
4974,
376,
15156,
2669,
1024,
525,
6574,
2883,
11838,
297,
2582,
29889,
303,
20405,
13,
1678,
4974,
376,
4763,
292,
14305,
2883,
1383,
514,
773,
12693,
495,
359,
10760,
29908,
297,
2582,
29889,
303,
20405,
13,
1678,
396,
5399,
393,
14305,
2883,
1370,
1983,
278,
1404,
565,
413,
1761,
947,
451,
1863,
373,
278,
1788,
29892,
470,
565,
13,
1678,
396,
694,
13023,
495,
359,
16892,
1691,
526,
16601,
29889,
13,
1678,
1018,
29901,
13,
418,
1246,
29898,
3366,
29895,
1761,
20068,
13,
418,
3806,
29918,
2704,
29918,
7645,
353,
4852,
29899,
29895,
6858,
263,
2854,
13023,
495,
359,
23381,
541,
694,
2854,
13023,
495,
359,
376,
13,
462,
9651,
376,
29873,
8522,
1476,
23157,
13,
418,
4974,
3806,
29918,
2704,
29918,
7645,
297,
2582,
29889,
303,
20405,
13,
1678,
5174,
438,
29173,
29901,
13,
418,
4974,
525,
29895,
1761,
451,
1476,
373,
278,
1788,
29915,
297,
2582,
29889,
303,
20405,
13,
1678,
396,
8561,
1854,
591,
1016,
29915,
29873,
1018,
304,
337,
29899,
6915,
13,
1678,
4974,
376,
276,
2202,
292,
278,
3957,
411,
263,
11592,
8608,
29908,
451,
297,
2582,
29889,
303,
20405,
13,
1678,
396,
10726,
278,
2669,
1024,
13,
1678,
6389,
4619,
376,
448,
29879,
1701,
22872,
29908,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
4974,
376,
15156,
2669,
1024,
525,
1181,
22872,
11838,
297,
2582,
29889,
303,
20405,
13,
13,
29871,
822,
1243,
29918,
19878,
29918,
265,
29918,
2704,
29898,
1311,
1125,
13,
1678,
6389,
353,
17411,
29883,
448,
29939,
376,
2622,
7953,
29936,
1831,
2594,
15458,
29915,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
396,
10575,
4418,
13,
1678,
6389,
353,
17411,
29939,
376,
2622,
7953,
29936,
1831,
2594,
15458,
29915,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
13,
29871,
822,
1243,
29918,
7978,
29918,
339,
6358,
29918,
3166,
29918,
1445,
29898,
1311,
1125,
13,
1678,
6389,
353,
17411,
29888,
1273,
29879,
29914,
1688,
29918,
1445,
29918,
21032,
29889,
2850,
1192,
339,
2035,
448,
29933,
29915,
1273,
660,
29965,
24422,
29918,
7724,
29918,
10145,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
1962,
353,
1121,
29889,
25393,
13,
1678,
6389,
353,
17411,
29888,
1273,
29879,
29914,
1688,
29918,
1445,
29918,
1217,
29918,
21032,
29889,
2850,
1192,
339,
2035,
448,
29933,
29915,
1273,
660,
29965,
24422,
29918,
7724,
29918,
10145,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
1962,
1275,
1121,
29889,
25393,
29892,
376,
2182,
6358,
411,
6589,
451,
21213,
5149,
29908,
13,
13,
29871,
822,
1243,
29918,
5729,
9446,
29918,
1972,
29918,
12523,
29898,
1311,
1125,
13,
1678,
6389,
353,
6702,
29899,
29939,
376,
842,
27450,
29918,
265,
29918,
2704,
29922,
4541,
29936,
29915,
13,
9651,
525,
1831,
2302,
22798,
515,
13303,
29918,
11762,
29918,
29879,
8971,
29889,
12313,
29918,
11762,
29918,
29879,
8971,
29908,
1495,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
525,
29956,
25614,
29903,
11283,
297,
1121,
29889,
303,
20405,
13,
1678,
4974,
525,
22050,
12231,
2133,
17456,
29915,
297,
1121,
29889,
303,
20405,
13,
1678,
4974,
525,
1252,
6021,
29901,
525,
297,
1121,
29889,
303,
20405,
13,
1678,
4974,
525,
2865,
950,
29901,
525,
297,
1121,
29889,
303,
20405,
13,
1678,
4974,
525,
26604,
13755,
934,
29915,
297,
1121,
29889,
303,
20405,
13,
13,
29871,
822,
1243,
29918,
1217,
29918,
25442,
886,
29918,
262,
29918,
1188,
29918,
2541,
29918,
339,
2035,
29918,
8513,
29898,
1311,
1125,
13,
1678,
9995,
4597,
23881,
1243,
363,
306,
3580,
1964,
29909,
29899,
29946,
29906,
29906,
29906,
1213,
15945,
13,
1678,
6389,
353,
6702,
29899,
29939,
376,
842,
27450,
29918,
265,
29918,
2704,
29922,
4541,
29936,
29915,
13,
9651,
525,
1831,
2302,
22798,
515,
13303,
29918,
11762,
29918,
29879,
8971,
29889,
12313,
29918,
11762,
29918,
29879,
8971,
29908,
1192,
339,
2035,
1495,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
525,
29956,
25614,
29903,
11283,
451,
297,
1121,
29889,
303,
20405,
13,
13,
29871,
822,
1243,
29918,
1745,
8238,
29918,
1972,
29918,
3385,
29898,
1311,
1125,
13,
1678,
9995,
3057,
393,
6206,
2346,
3987,
7738,
9177,
1213,
15945,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
703,
29899,
29939,
525,
842,
11262,
29918,
29883,
3791,
29918,
949,
29879,
29922,
3009,
29915,
613,
13,
4706,
2149,
29918,
8698,
29922,
5574,
29897,
13,
1678,
4974,
376,
17273,
8253,
6206,
2346,
2984,
29901,
525,
20472,
29918,
29883,
3791,
29918,
949,
29879,
11838,
297,
1121,
29889,
303,
20405,
13,
13,
29871,
822,
1243,
29918,
4905,
29918,
4830,
29898,
1311,
1125,
13,
1678,
3806,
29918,
4905,
353,
6024,
29896,
2033,
334,
29871,
29941,
13,
1678,
6389,
353,
17411,
29939,
376,
2622,
29871,
29896,
29892,
29896,
29892,
29896,
29908,
448,
29933,
1192,
339,
2035,
29915,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
3935,
29918,
4905,
353,
518,
29878,
29889,
17010,
580,
363,
364,
297,
1121,
29889,
25393,
29889,
5451,
28909,
29873,
1495,
29962,
13,
1678,
4974,
3935,
29918,
4905,
1275,
3806,
29918,
4905,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
718,
525,
1192,
4905,
29918,
6144,
326,
543,
29989,
29908,
1495,
13,
1678,
3935,
29918,
4905,
353,
518,
29878,
29889,
17010,
580,
363,
364,
297,
1121,
29889,
25393,
29889,
5451,
877,
29989,
1495,
29962,
13,
1678,
4974,
3935,
29918,
4905,
1275,
3806,
29918,
4905,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
718,
525,
1192,
4905,
29918,
6144,
326,
543,
8876,
29908,
742,
13,
462,
462,
29871,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
4974,
376,
14126,
12018,
28552,
29908,
297,
1121,
29889,
303,
20405,
13,
13,
29871,
822,
1243,
29918,
1867,
29918,
23515,
29898,
1311,
29892,
4069,
29918,
2371,
1125,
13,
1678,
9995,
29923,
1983,
545,
393,
278,
437,
29918,
3519,
297,
278,
6473,
664,
29889,
13,
13,
1678,
3834,
310,
278,
437,
29918,
3519,
526,
27063,
9528,
297,
916,
6987,
29892,
322,
408,
760,
310,
278,
13,
1678,
1243,
6230,
29889,
13,
1678,
9995,
13,
1678,
396,
5649,
13,
1678,
6389,
353,
17411,
29939,
376,
4548,
7420,
1831,
29871,
29896,
29908,
29915,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
396,
1510,
13,
1678,
6389,
353,
17411,
29939,
376,
4294,
6131,
29908,
29915,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
396,
411,
13,
1678,
6389,
353,
17411,
29939,
376,
2541,
260,
29896,
408,
313,
2622,
29871,
29896,
29897,
1831,
334,
515,
260,
29896,
29908,
29915,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
396,
731,
13,
1678,
396,
8162,
2820,
278,
353,
1804,
13,
1678,
6389,
353,
17411,
29939,
376,
842,
9853,
29918,
2311,
29871,
353,
1678,
29896,
29900,
29908,
29915,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
396,
694,
8162,
2820,
278,
353,
1804,
13,
1678,
6389,
353,
17411,
29939,
376,
842,
9853,
29918,
2311,
29922,
29896,
29900,
29908,
29915,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
396,
1243,
2346,
3987,
8833,
13,
1678,
6389,
353,
17411,
29939,
376,
842,
29908,
29915,
13,
1678,
1121,
29918,
842,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
525,
2303,
29924,
29918,
5265,
26349,
29901,
518,
29900,
29962,
29915,
297,
1121,
29918,
842,
29889,
25393,
13,
1678,
396,
1243,
304,
1423,
393,
5649,
29918,
5563,
338,
29871,
29896,
13,
1678,
4974,
525,
5746,
29925,
4375,
1177,
29918,
1307,
29963,
6670,
29901,
518,
29896,
29962,
29915,
297,
1121,
29918,
842,
29889,
25393,
13,
1678,
396,
1243,
304,
1423,
393,
2295,
29879,
1728,
21274,
1510,
701,
408,
5159,
13,
1678,
4974,
525,
21514,
1525,
13507,
29918,
16524,
29907,
29901,
5159,
29915,
297,
1121,
29918,
842,
29889,
25393,
13,
1678,
396,
1243,
1819,
8833,
1156,
4444,
995,
13,
1678,
6389,
353,
17411,
29939,
376,
842,
2626,
29918,
13400,
29922,
29896,
29887,
29936,
842,
29908,
29915,
13,
1678,
1121,
29918,
842,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
396,
2323,
1051,
2794,
697,
2777,
310,
2626,
29918,
13400,
297,
8833,
1962,
13,
1678,
4974,
525,
2303,
29924,
29918,
5265,
26349,
29901,
29871,
29896,
29887,
29915,
297,
1121,
29918,
842,
29889,
25393,
13,
1678,
4974,
525,
2303,
29924,
29918,
5265,
26349,
29901,
518,
29900,
29962,
29915,
451,
297,
1121,
29918,
842,
29889,
25393,
13,
1678,
396,
12610,
1230,
6987,
363,
731,
13,
1678,
396,
671,
584,
2012,
310,
353,
13,
1678,
6389,
353,
17411,
29939,
376,
842,
9853,
29918,
2311,
29901,
29896,
29900,
29908,
29915,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
396,
671,
29871,
29906,
353,
18906,
13,
1678,
6389,
353,
17411,
29939,
376,
842,
9853,
29918,
2311,
29922,
29896,
29900,
29922,
29945,
29900,
29908,
29915,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
396,
8453,
322,
5153,
881,
736,
278,
1021,
1121,
29889,
13,
1678,
6389,
353,
17411,
29939,
376,
2783,
29581,
1273,
29879,
29908,
448,
29933,
29915,
1273,
4069,
29918,
2371,
13,
1678,
1121,
29918,
2783,
29581,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
6389,
353,
17411,
29939,
376,
14273,
1273,
29879,
29908,
448,
29933,
29915,
1273,
4069,
29918,
2371,
13,
1678,
1121,
29918,
14273,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
1121,
29918,
2783,
29581,
29889,
25393,
1275,
1121,
29918,
14273,
29889,
25393,
13,
13,
29871,
822,
1243,
29918,
15634,
29918,
10185,
29898,
1311,
1125,
13,
1678,
396,
1243,
15837,
338,
297,
1716,
278,
8722,
13350,
491,
278,
13,
1678,
396,
448,
29886,
2984,
322,
278,
697,
13350,
491,
278,
8722,
1899,
13,
1678,
6389,
353,
11663,
29886,
448,
29939,
525,
2622,
29871,
29896,
29936,
8722,
29936,
11838,
13,
1678,
1121,
29918,
842,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
396,
910,
6528,
6911,
502,
20498,
873,
12439,
263,
8722,
29889,
13,
1678,
6528,
353,
337,
29889,
12198,
703,
26486,
29905,
29879,
29974,
29937,
8514,
29879,
29905,
29879,
29974,
12810,
29887,
29905,
29879,
29974,
2481,
1159,
13,
1678,
396,
1334,
2149,
1023,
2346,
28723,
29889,
13,
1678,
4974,
7431,
29898,
276,
29889,
2886,
497,
29898,
13087,
29892,
1121,
29918,
842,
29889,
25393,
876,
1275,
29871,
29906,
29892,
320,
13,
4706,
376,
23323,
451,
6459,
1023,
28723,
29892,
27591,
29901,
1273,
29879,
29908,
1273,
1121,
29918,
842,
29889,
25393,
13,
13,
29871,
822,
1243,
29918,
7727,
29898,
1311,
1125,
13,
1678,
6389,
353,
11663,
29939,
525,
2622,
2302,
22798,
515,
13303,
29889,
497,
8768,
29936,
15837,
29936,
11838,
13,
1678,
1121,
29918,
842,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
376,
29900,
29941,
29901,
10051,
29954,
18166,
3040,
29908,
297,
1121,
29918,
842,
29889,
25393,
13,
13,
1678,
6389,
353,
11663,
29939,
525,
7727,
29936,
11838,
13,
1678,
1121,
29918,
842,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
4974,
376,
23323,
451,
10563,
15837,
363,
2346,
29908,
297,
1121,
29918,
842,
29889,
303,
20405,
13,
13,
1678,
6389,
353,
11663,
29939,
525,
4294,
6131,
29936,
15837,
29936,
11838,
13,
1678,
1121,
29918,
842,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
376,
26289,
451,
3625,
29908,
297,
1121,
29918,
842,
29889,
303,
20405,
13,
13,
1678,
396,
4321,
9365,
1728,
385,
14523,
13,
1678,
6389,
353,
11663,
29939,
525,
2622,
29871,
29896,
29936,
15837,
29936,
11838,
13,
1678,
1121,
29918,
842,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
376,
29900,
29900,
29901,
3904,
2725,
29908,
297,
1121,
29918,
842,
29889,
25393,
13,
13,
29871,
732,
2272,
1688,
29889,
3502,
29889,
7978,
29918,
15550,
368,
13,
29871,
822,
1243,
29918,
339,
6358,
29918,
15603,
29898,
1311,
1125,
13,
1678,
9995,
4597,
23881,
1243,
363,
306,
3580,
1964,
29909,
29899,
29947,
29929,
29955,
1213,
15945,
13,
1678,
6389,
353,
17411,
29888,
1273,
29879,
29914,
1688,
29918,
5358,
29918,
339,
6358,
29889,
2850,
1192,
339,
2035,
448,
29933,
29915,
1273,
660,
29965,
24422,
29918,
7724,
29918,
10145,
13,
1678,
9920,
353,
11860,
29879,
1273,
29879,
29908,
1273,
313,
7068,
29923,
2208,
29918,
29907,
5773,
29892,
6389,
29897,
13,
1678,
396,
11080,
1082,
278,
6473,
1899,
7465,
13,
1678,
282,
353,
14305,
2883,
16037,
29898,
5085,
29897,
13,
13,
1678,
2411,
284,
328,
29918,
5509,
353,
14305,
284,
328,
3170,
29898,
29902,
3580,
1964,
3035,
29889,
5451,
877,
29901,
29861,
29900,
2314,
13,
1678,
396,
450,
1833,
2346,
297,
278,
1243,
3758,
2471,
674,
8709,
363,
29871,
29896,
29900,
6923,
29892,
577,
8709,
13,
1678,
396,
1244,
363,
29871,
29945,
6923,
322,
11539,
278,
1353,
310,
297,
29899,
1579,
523,
9365,
338,
29871,
29896,
29889,
13,
1678,
8709,
29898,
29945,
29897,
13,
1678,
4974,
29871,
29896,
1275,
2411,
284,
328,
29918,
5509,
29889,
657,
29918,
1949,
29918,
262,
29918,
1579,
523,
29918,
339,
6358,
580,
13,
1678,
4974,
282,
29889,
657,
29918,
2914,
2141,
2214,
1275,
29871,
29900,
13,
1678,
4974,
29871,
29900,
1275,
2411,
284,
328,
29918,
5509,
29889,
657,
29918,
1949,
29918,
262,
29918,
1579,
523,
29918,
339,
6358,
580,
13,
13,
29871,
822,
1243,
29918,
3068,
22603,
29898,
1311,
1125,
13,
1678,
9995,
3057,
508,
22603,
313,
18069,
29974,
29907,
1741,
467,
15945,
29908,
13,
1678,
6389,
353,
17411,
29939,
376,
2622,
8709,
29898,
29896,
29900,
29900,
29900,
29900,
5513,
29915,
13,
1678,
282,
353,
14305,
2883,
16037,
29898,
5085,
29897,
13,
1678,
8709,
29898,
29941,
29897,
13,
1678,
2897,
29889,
21174,
29898,
29886,
29889,
5935,
3285,
7182,
29889,
5425,
29954,
10192,
29897,
13,
1678,
1121,
353,
282,
29889,
657,
29918,
2914,
580,
13,
13,
1678,
4974,
376,
6028,
3729,
292,
13641,
29908,
297,
1121,
29889,
303,
20405,
29892,
1121,
29889,
303,
20405,
13,
13,
29871,
732,
2272,
1688,
29889,
3502,
29889,
7978,
29918,
15550,
368,
13,
29871,
822,
1243,
29918,
1972,
29918,
3068,
22603,
29918,
29881,
3864,
29918,
9155,
29898,
1311,
1125,
13,
1678,
9995,
29902,
3580,
1964,
29909,
29899,
29896,
29896,
29946,
29946,
29901,
4321,
508,
22603,
313,
1783,
2241,
29974,
29907,
29897,
1550,
2582,
526,
1641,
13,
1678,
6699,
287,
15945,
29908,
13,
1678,
11451,
1688,
29889,
11014,
703,
15945,
29903,
1984,
3262,
408,
372,
23025,
4947,
10771,
297,
23750,
23315,
13,
18884,
9819,
278,
2048,
304,
11815,
1213,
29908,
1159,
13,
1678,
396,
319,
1831,
2346,
988,
6699,
4893,
3196,
6923,
13,
1678,
380,
4378,
353,
376,
2541,
325,
408,
313,
5975,
313,
29896,
408,
921,
511,
313,
29906,
511,
313,
29941,
511,
313,
29946,
876,
376,
718,
320,
13,
4706,
376,
2622,
334,
515,
325,
29892,
325,
325,
29906,
29892,
325,
325,
29941,
29892,
325,
325,
29946,
29892,
325,
325,
29945,
29892,
325,
325,
29953,
29892,
325,
325,
29955,
29892,
325,
325,
29947,
29892,
376,
718,
320,
13,
4706,
376,
29894,
325,
29929,
29892,
325,
325,
29896,
29900,
29892,
325,
325,
29896,
29896,
29908,
13,
1678,
396,
29021,
5930,
746,
278,
2582,
526,
1641,
6699,
287,
13,
1678,
1583,
29889,
3389,
29918,
392,
29918,
27902,
29918,
1972,
29918,
3068,
22603,
29918,
1688,
29898,
17868,
29892,
376,
29943,
1177,
3235,
29950,
3352,
1159,
13,
13,
29871,
732,
2272,
1688,
29889,
3502,
29889,
7978,
29918,
15550,
368,
13,
29871,
822,
1243,
29918,
1972,
29918,
3068,
22603,
29918,
29881,
3864,
29918,
10685,
29918,
517,
29918,
4951,
728,
29898,
1311,
1125,
13,
1678,
9995,
29902,
3580,
1964,
29909,
29899,
29896,
29896,
29946,
29946,
29901,
4321,
508,
22603,
313,
1783,
2241,
29974,
29907,
29897,
1550,
278,
2346,
338,
297,
278,
13,
1678,
4480,
29918,
517,
29918,
4951,
728,
2106,
15945,
29908,
13,
1678,
396,
319,
1831,
988,
4480,
29918,
517,
29918,
4951,
728,
4893,
3196,
6923,
13,
1678,
380,
4378,
353,
376,
2622,
334,
515,
260,
29886,
305,
29889,
15539,
274,
29896,
29892,
260,
29886,
305,
29889,
15539,
274,
29906,
29892,
376,
718,
320,
13,
965,
376,
9392,
305,
29889,
15539,
274,
29941,
1797,
491,
274,
29896,
29889,
29883,
29918,
978,
29908,
13,
1678,
396,
29021,
5930,
297,
4480,
29918,
517,
29918,
4951,
728,
2106,
13,
1678,
1583,
29889,
3389,
29918,
392,
29918,
27902,
29918,
1972,
29918,
3068,
22603,
29918,
1688,
29898,
17868,
29892,
376,
29934,
3904,
29940,
4214,
1159,
13,
13,
29871,
822,
4480,
29918,
1454,
29918,
1972,
29918,
3859,
29898,
1311,
29892,
380,
4378,
29892,
2106,
29892,
4236,
29918,
276,
2202,
29922,
29896,
29945,
1125,
13,
1678,
9995,
5596,
29879,
278,
297,
16286,
9365,
373,
14305,
2883,
4744,
1813,
29889,
2043,
3137,
278,
2106,
310,
13,
1678,
278,
2346,
3229,
515,
3443,
1432,
1473,
2745,
278,
2346,
4947,
304,
13,
1678,
263,
2106,
2183,
3025,
3443,
470,
263,
7472,
337,
2202,
2302,
338,
7450,
29889,
13,
1678,
11654,
19902,
29901,
9333,
1736,
565,
727,
338,
871,
697,
297,
16286,
2346,
1213,
15945,
13,
1678,
2411,
284,
328,
29918,
5509,
353,
14305,
284,
328,
3170,
29898,
29902,
3580,
1964,
3035,
29889,
5451,
877,
29901,
29861,
29900,
2314,
13,
1678,
565,
451,
2411,
284,
328,
29918,
5509,
29889,
10685,
29918,
1454,
29918,
1949,
29918,
262,
29918,
1579,
523,
29918,
339,
6358,
29898,
29896,
1125,
13,
418,
12020,
8960,
703,
3782,
297,
16286,
2346,
1476,
1159,
13,
13,
1678,
337,
2202,
29918,
2798,
353,
29871,
29900,
13,
1678,
1550,
337,
2202,
29918,
2798,
5277,
4236,
29918,
276,
2202,
29901,
13,
418,
2346,
29918,
3888,
353,
2411,
284,
328,
29918,
5509,
29889,
657,
29918,
262,
29918,
1579,
523,
29918,
339,
6358,
580,
29961,
29900,
29962,
13,
418,
565,
2346,
29918,
3888,
1839,
17868,
2033,
2804,
380,
4378,
29901,
13,
4706,
5566,
29918,
726,
353,
376,
1576,
1476,
297,
16286,
2346,
338,
451,
278,
697,
1090,
1243,
29901,
376,
718,
320,
13,
9651,
2346,
29918,
3888,
1839,
17868,
2033,
13,
4706,
12020,
8960,
29898,
735,
29883,
29918,
726,
29897,
13,
418,
565,
2346,
29918,
3888,
1839,
3859,
2033,
1275,
2106,
29901,
13,
4706,
736,
13,
418,
337,
2202,
29918,
2798,
4619,
29871,
29896,
13,
418,
8709,
29898,
29896,
29889,
29900,
29897,
13,
1678,
12020,
8960,
703,
3010,
3282,
29915,
29873,
6159,
7429,
2106,
29901,
376,
718,
2106,
29897,
13,
13,
29871,
822,
1065,
29918,
392,
29918,
27902,
29918,
1972,
29918,
3068,
22603,
29918,
1688,
29898,
1311,
29892,
380,
4378,
29892,
12611,
29918,
271,
29918,
3859,
1125,
13,
1678,
9995,
4763,
29879,
278,
8225,
310,
278,
4520,
2346,
29892,
11324,
1169,
2745,
278,
2346,
13,
1678,
8225,
297,
2114,
8665,
322,
769,
508,
29883,
1379,
372,
29889,
1222,
1103,
29879,
278,
2346,
13,
1678,
508,
22603,
304,
9269,
1213,
15945,
13,
1678,
6389,
353,
11663,
29939,
13218,
29908,
718,
380,
4378,
718,
12159,
5931,
29908,
13,
1678,
282,
353,
14305,
2883,
16037,
29898,
5085,
29897,
13,
13,
1678,
1583,
29889,
10685,
29918,
1454,
29918,
1972,
29918,
3859,
29898,
17868,
29892,
12611,
29918,
271,
29918,
3859,
29897,
13,
13,
1678,
2897,
29889,
21174,
29898,
29886,
29889,
5935,
3285,
7182,
29889,
5425,
29954,
10192,
29897,
13,
1678,
1121,
353,
282,
29889,
657,
29918,
2914,
580,
13,
1678,
4974,
376,
6028,
3729,
292,
13641,
29908,
297,
1121,
29889,
303,
20405,
13,
1678,
4974,
376,
13919,
2346,
4386,
29908,
451,
297,
1121,
29889,
303,
20405,
13,
13,
29871,
822,
1243,
29918,
657,
29918,
1188,
29918,
10646,
29898,
1311,
29892,
4069,
29918,
2371,
1125,
13,
1678,
9995,
3057,
393,
679,
29918,
1188,
580,
338,
2337,
2000,
3721,
2748,
1213,
15945,
13,
1678,
396,
13641,
411,
6699,
13,
1678,
6389,
353,
17411,
29939,
376,
2622,
334,
515,
13303,
29889,
497,
8768,
2704,
29908,
29915,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
1121,
29889,
303,
20405,
29889,
2798,
877,
29956,
25614,
29903,
1495,
1275,
29871,
29896,
13,
13,
1678,
396,
24505,
2346,
313,
13221,
29876,
29915,
29873,
6699,
29897,
13,
1678,
5768,
29918,
5085,
353,
17411,
29939,
376,
8865,
1591,
565,
4864,
1273,
29879,
29908,
29915,
1273,
4069,
29918,
2371,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
8865,
29918,
5085,
29897,
13,
13,
1678,
6389,
353,
17411,
29939,
376,
3258,
1591,
1273,
29879,
763,
13303,
29889,
497,
8768,
2704,
29908,
29915,
1273,
4069,
29918,
2371,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
13,
1678,
6389,
353,
17411,
29939,
376,
7851,
26556,
1273,
29879,
8877,
29898,
6360,
29892,
4098,
16029,
320,
13,
965,
525,
2622,
334,
515,
13303,
29889,
497,
8768,
2704,
29908,
29915,
1273,
4069,
29918,
2371,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
13,
1678,
4974,
1121,
29889,
303,
20405,
29889,
2798,
877,
29956,
25614,
29903,
1495,
1275,
29871,
29896,
13,
13,
29871,
822,
1243,
29918,
14168,
1288,
29918,
3090,
21706,
29898,
1311,
1125,
13,
1678,
9995,
22509,
537,
1243,
304,
9801,
393,
278,
6473,
508,
1303,
6121,
4890,
1213,
15945,
13,
1678,
17626,
713,
29918,
305,
1503,
353,
313,
29884,
29908,
30018,
29892,
1386,
29892,
939,
29892,
1618,
29892,
1453,
29892,
3337,
29892,
29871,
30555,
29892,
7007,
29892,
2419,
29892,
2081,
29892,
14680,
29892,
1069,
29892,
1872,
29892,
1142,
29892,
1392,
29892,
1651,
29892,
971,
29892,
1483,
1699,
13,
462,
268,
318,
29908,
30008,
29892,
1703,
29892,
2014,
29892,
2515,
29892,
3004,
29892,
5502,
29892,
30076,
29892,
4119,
29892,
26975,
29892,
29871,
31147,
29892,
29871,
30570,
29892,
29871,
30523,
29892,
4767,
29892,
6885,
29892,
6061,
1159,
13,
1678,
6389,
353,
9995,
29899,
29933,
448,
29939,
376,
2622,
14210,
29879,
11838,
9995,
1273,
17626,
713,
29918,
305,
1503,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29889,
12508,
877,
9420,
29899,
29947,
8785,
13,
1678,
4974,
525,
2525,
12858,
2772,
401,
2392,
29915,
451,
297,
1121,
29889,
303,
20405,
13,
1678,
4974,
17626,
713,
29918,
305,
1503,
29889,
12508,
877,
9420,
29899,
29947,
1495,
297,
1121,
29889,
25393,
13,
13,
29871,
732,
2272,
1688,
29889,
3502,
29889,
7978,
29918,
15550,
368,
29871,
396,
910,
6987,
8340,
1078,
15562,
29892,
322,
1818,
1065,
7797,
368,
13,
29871,
822,
1243,
29918,
2917,
29918,
1445,
29898,
1311,
1125,
13,
1678,
9995,
3057,
278,
13136,
5285,
934,
1213,
15945,
13,
1678,
396,
10321,
3321,
6987,
13,
1678,
6389,
353,
525,
489,
2917,
29918,
1445,
16328,
29879,
29914,
16773,
29918,
6574,
284,
5666,
29915,
1273,
660,
29965,
24422,
29918,
7724,
29918,
10145,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
525,
3010,
29901,
1831,
29871,
29896,
29915,
297,
1121,
29889,
303,
20405,
13,
13,
1678,
396,
5712,
2984,
297,
2295,
934,
1549,
1899,
1196,
13,
1678,
6389,
353,
525,
489,
2917,
29918,
1445,
16328,
29879,
29914,
16773,
29918,
6574,
284,
5666,
1192,
1972,
543,
2622,
29871,
29906,
29908,
29915,
1273,
660,
29965,
24422,
29918,
7724,
29918,
10145,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
525,
3010,
29901,
1831,
29871,
29906,
29915,
297,
1121,
29889,
303,
20405,
13,
13,
1678,
396,
12610,
1230,
4321,
29879,
13,
1678,
396,
6790,
2295,
934,
947,
451,
1863,
13,
1678,
6389,
353,
525,
489,
2917,
29918,
1445,
16328,
29879,
29914,
13221,
29918,
1333,
29918,
28997,
29915,
1273,
660,
29965,
24422,
29918,
7724,
29918,
10145,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
396,
4319,
15998,
310,
2295,
934,
13,
1678,
6389,
353,
525,
489,
2917,
29918,
1445,
16328,
29879,
29914,
12313,
29918,
6574,
284,
5666,
29915,
1273,
660,
29965,
24422,
29918,
7724,
29918,
10145,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
13,
1678,
396,
4321,
292,
2295,
934,
4475,
9177,
322,
1059,
7191,
13,
1678,
6389,
353,
525,
489,
2917,
29918,
1445,
16328,
29879,
29914,
6574,
284,
5666,
29918,
2541,
29918,
25442,
886,
29915,
1273,
660,
29965,
24422,
29918,
7724,
29918,
10145,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
5574,
29897,
13,
1678,
4974,
376,
29956,
25614,
29901,
10831,
525,
2917,
29918,
1445,
29915,
508,
367,
871,
731,
515,
6473,
1213,
297,
1121,
29889,
303,
20405,
13,
1678,
4589,
29918,
7645,
353,
4852,
29956,
25614,
29901,
20065,
304,
1303,
5285,
934,
5149,
29889,
376,
13,
1669,
376,
17273,
8253,
443,
29423,
1891,
2295,
2984,
29901,
525,
20965,
29918,
3385,
12764,
29876,
1159,
13,
1678,
4974,
29871,
4589,
29918,
7645,
297,
1121,
29889,
303,
20405,
13,
13,
1678,
6389,
353,
525,
489,
2917,
29918,
1445,
16328,
29879,
29914,
6574,
284,
5666,
29918,
2541,
29918,
2704,
29915,
1273,
660,
29965,
24422,
29918,
7724,
29918,
10145,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
4589,
29918,
7645,
353,
4852,
29965,
13996,
6021,
995,
297,
5285,
934,
29889,
376,
13,
1669,
13577,
26026,
29915,
338,
451,
263,
2854,
995,
363,
263,
7223,
2984,
23157,
13,
1678,
4974,
29871,
4589,
29918,
7645,
297,
1121,
29889,
303,
20405,
13,
13,
29871,
822,
1243,
29918,
7978,
29918,
339,
6358,
29918,
3166,
29918,
4172,
262,
29898,
1311,
1125,
13,
1678,
9995,
3057,
393,
9365,
679,
8283,
5149,
746,
6850,
29928,
1177,
338,
2183,
408,
278,
4576,
934,
1213,
15945,
13,
1678,
6389,
353,
17411,
29888,
448,
1192,
339,
2035,
448,
29933,
29915,
13,
1678,
2346,
29918,
1445,
353,
11860,
29879,
29914,
1688,
29918,
1445,
29918,
21032,
29889,
2850,
29908,
1273,
660,
29965,
24422,
29918,
7724,
29918,
10145,
13,
1678,
2346,
29918,
1445,
29918,
8411,
353,
6213,
13,
1678,
1018,
29901,
13,
418,
2346,
29918,
1445,
29918,
8411,
353,
1722,
29898,
1972,
29918,
1445,
29892,
525,
29878,
1495,
13,
418,
2346,
353,
2346,
29918,
1445,
29918,
8411,
29889,
949,
580,
13,
418,
2346,
29918,
1445,
29918,
8411,
29889,
5358,
580,
13,
1678,
5174,
8960,
29892,
321,
29901,
13,
418,
4974,
2346,
29918,
1445,
29918,
8411,
338,
451,
6213,
29892,
376,
2451,
1273,
29879,
29901,
6527,
451,
1284,
2346,
934,
29908,
1273,
321,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
5574,
29892,
3659,
262,
29918,
2080,
29922,
1972,
29897,
13,
1678,
1962,
353,
1121,
29889,
25393,
13,
13,
1678,
6389,
353,
17411,
29888,
1273,
29879,
29914,
1688,
29918,
1445,
29918,
1217,
29918,
21032,
29889,
2850,
1192,
339,
2035,
448,
29933,
29915,
1273,
660,
29965,
24422,
29918,
7724,
29918,
10145,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29897,
13,
1678,
4974,
1962,
1275,
1121,
29889,
25393,
29892,
376,
2182,
6358,
515,
6850,
29928,
1177,
451,
21213,
5149,
1213,
13,
13,
29871,
822,
1243,
29918,
9536,
29918,
1037,
6289,
29918,
262,
29918,
8551,
29898,
1311,
1125,
13,
1678,
6389,
353,
17411,
29880,
29915,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
4589,
29918,
7645,
353,
4852,
10249,
3301,
16140,
1122,
451,
367,
2665,
975,
297,
24216,
12368,
29889,
376,
13,
1669,
376,
20701,
17122,
470,
731,
1192,
5150,
29918,
1037,
6289,
29918,
554,
29918,
262,
29918,
8551,
1159,
13,
13,
1678,
4974,
4589,
29918,
7645,
297,
1121,
29889,
303,
20405,
13,
13,
1678,
396,
14402,
29901,
13932,
385,
14305,
2883,
1146,
9857,
2734,
365,
29928,
3301,
10760,
29892,
591,
508,
29915,
29873,
1243,
565,
13,
1678,
396,
1192,
5150,
29918,
1037,
6289,
29918,
554,
29918,
262,
29918,
8551,
1736,
746,
5149,
731,
29889,
13,
13,
29871,
822,
1243,
29918,
430,
481,
29918,
5630,
29918,
3166,
29918,
15903,
29898,
1311,
1125,
13,
1678,
6389,
353,
11663,
29880,
1192,
5150,
29918,
1037,
6289,
29918,
554,
29918,
262,
29918,
8551,
1192,
430,
481,
29918,
5630,
29918,
9006,
2433,
29995,
29879,
11838,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
1273,
525,
4912,
1289,
29877,
267,
29876,
4776,
391,
742,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
4974,
4852,
2392,
5663,
15387,
365,
29928,
3301,
4800,
313,
6519,
471,
29901,
525,
4912,
1289,
29877,
267,
29876,
4776,
391,
742,
3682,
376,
13,
9651,
376,
11102,
29901,
525,
29961,
19212,
1217,
29871,
29906,
29962,
1939,
1316,
934,
470,
3884,
1495,
1159,
297,
1121,
29889,
303,
20405,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
1273,
525,
4117,
934,
13221,
29876,
4776,
391,
742,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
4974,
4852,
2392,
5663,
15387,
365,
29928,
3301,
4800,
313,
6519,
471,
525,
4117,
934,
13221,
29876,
4776,
391,
742,
1059,
376,
13,
9651,
376,
11102,
29901,
525,
4117,
29901,
934,
13221,
29876,
4776,
391,
29901,
1939,
1316,
934,
470,
3884,
1495,
1159,
297,
1121,
29889,
303,
20405,
13,
13,
1678,
396,
14402,
29901,
13932,
385,
14305,
2883,
1146,
9857,
411,
365,
29928,
3301,
10760,
9615,
29892,
591,
508,
29915,
29873,
1243,
278,
13,
1678,
396,
6374,
1206,
988,
278,
4800,
338,
1959,
29889,
13,
13,
29871,
822,
1243,
29918,
1707,
29918,
22492,
5008,
29898,
1311,
1125,
13,
1678,
6389,
353,
525,
489,
1707,
29922,
5431,
29922,
29896,
29906,
29941,
1192,
1707,
29922,
29933,
1718,
29922,
29946,
29945,
29953,
1192,
6144,
326,
1573,
1192,
4905,
29918,
6144,
19657,
543,
376,
448,
29883,
448,
29888,
1273,
29879,
29915,
320,
13,
965,
1273,
313,
359,
29889,
2084,
29889,
7122,
29898,
13356,
24422,
29918,
7724,
29918,
10145,
29892,
525,
1688,
29918,
1707,
29918,
22492,
5008,
29889,
2850,
8785,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
5574,
29897,
13,
1678,
4974,
29918,
1707,
29918,
22492,
5008,
29898,
2914,
29897,
13,
1678,
6389,
353,
525,
489,
1707,
29922,
5431,
29915,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
29898,
5085,
29892,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
4974,
4852,
2392,
29901,
6527,
451,
6088,
1820,
29899,
1767,
13218,
5431,
29905,
1642,
739,
1818,
1101,
278,
4766,
376,
13,
632,
376,
5931,
10818,
29922,
19143,
29905,
1642,
1159,
297,
1121,
29889,
303,
20405,
13,
13,
29871,
396,
5399,
29879,
565,
525,
19158,
29915,
4864,
29914,
13221,
451,
1863,
297,
525,
2914,
29918,
303,
20405,
29915,
2729,
373,
278,
995,
310,
13,
29871,
396,
525,
9344,
29918,
28997,
29915,
13,
29871,
822,
903,
15480,
29918,
15903,
29918,
19158,
29898,
1311,
29892,
1121,
29918,
303,
20405,
29892,
7191,
29892,
881,
29918,
28997,
29922,
5574,
1125,
13,
1678,
363,
10191,
297,
7191,
29901,
13,
418,
565,
881,
29918,
28997,
29901,
13,
4706,
4974,
10191,
297,
1121,
29918,
303,
20405,
13,
418,
1683,
29901,
13,
4706,
4974,
10191,
451,
297,
1121,
29918,
303,
20405,
13,
13,
29871,
822,
1243,
29918,
1972,
29918,
2230,
29918,
392,
29918,
2324,
29918,
4906,
29898,
1311,
29892,
5412,
29918,
9803,
1125,
13,
1678,
6473,
29918,
19158,
353,
6796,
3010,
18397,
472,
29901,
9162,
18227,
7967,
4194,
1061,
29901,
9162,
13,
4706,
376,
3010,
6728,
508,
367,
11819,
287,
472,
29901,
376,
29962,
13,
1678,
396,
14602,
9506,
881,
451,
1596,
2346,
931,
322,
1856,
2974,
3211,
29889,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
3258,
1591,
1273,
29879,
29889,
15903,
29918,
7645,
29918,
1688,
313,
333,
938,
5513,
29915,
1273,
13,
4706,
5412,
29918,
9803,
29897,
13,
1678,
1583,
3032,
15480,
29918,
15903,
29918,
19158,
29898,
9902,
29889,
303,
20405,
29892,
6473,
29918,
19158,
29892,
881,
29918,
28997,
29922,
8824,
29897,
13,
13,
1678,
396,
5097,
29892,
14482,
29892,
26637,
3289,
29892,
315,
4330,
9365,
881,
1596,
278,
2346,
931,
2643,
322,
1856,
2974,
13,
1678,
396,
3211,
29889,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
7851,
964,
1273,
29879,
29889,
15903,
29918,
7645,
29918,
1688,
1819,
313,
29896,
5513,
29915,
1273,
13,
4706,
5412,
29918,
9803,
29897,
13,
1678,
1583,
3032,
15480,
29918,
15903,
29918,
19158,
29898,
9902,
29889,
303,
20405,
29892,
6473,
29918,
19158,
29892,
881,
29918,
28997,
29922,
5574,
29897,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
2622,
334,
515,
1273,
29879,
29889,
15903,
29918,
7645,
29918,
1688,
29908,
29915,
1273,
13,
4706,
5412,
29918,
9803,
29897,
13,
1678,
1583,
3032,
15480,
29918,
15903,
29918,
19158,
29898,
9902,
29889,
303,
20405,
29892,
6473,
29918,
19158,
29892,
881,
29918,
28997,
29922,
5574,
29897,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
3258,
1591,
1273,
29879,
29889,
15903,
29918,
7645,
29918,
312,
294,
29918,
1688,
408,
320,
13,
4706,
1831,
334,
515,
1273,
29879,
29889,
15903,
29918,
7645,
29918,
1688,
29908,
29915,
1273,
313,
13092,
29918,
9803,
29892,
5412,
29918,
9803,
876,
13,
1678,
1583,
3032,
15480,
29918,
15903,
29918,
19158,
29898,
9902,
29889,
303,
20405,
29892,
6473,
29918,
19158,
29892,
881,
29918,
28997,
29922,
5574,
29897,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
3258,
1591,
1273,
29879,
29889,
15903,
29918,
7645,
29918,
312,
29872,
29918,
1688,
29898,
29875,
938,
416,
525,
13,
462,
462,
259,
525,
2541,
25638,
408,
313,
2622,
29871,
29896,
29897,
525,
13,
462,
462,
259,
525,
7851,
26556,
1273,
29879,
29889,
15903,
29918,
7645,
29918,
312,
29872,
29918,
1688,
525,
13,
462,
462,
259,
525,
2622,
334,
515,
1273,
29879,
29889,
15903,
29918,
7645,
29918,
312,
29872,
29918,
1688,
15458,
29915,
1273,
13,
462,
462,
259,
313,
13092,
29918,
9803,
29892,
5412,
29918,
9803,
29892,
5412,
29918,
9803,
876,
13,
1678,
1583,
3032,
15480,
29918,
15903,
29918,
19158,
29898,
9902,
29889,
303,
20405,
29892,
6473,
29918,
19158,
29892,
881,
29918,
28997,
29922,
5574,
29897,
13,
13,
1678,
396,
360,
29366,
9506,
881,
451,
1596,
2346,
931,
322,
1856,
2974,
3211,
29889,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
8865,
1591,
1273,
29879,
29889,
15903,
29918,
7645,
29918,
1688,
29908,
29915,
1273,
13,
4706,
5412,
29918,
9803,
29897,
13,
1678,
1583,
3032,
15480,
29918,
15903,
29918,
19158,
29898,
9902,
29889,
303,
20405,
29892,
6473,
29918,
19158,
29892,
881,
29918,
28997,
29922,
8824,
29897,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
8865,
1591,
1273,
29879,
29889,
15903,
29918,
7645,
29918,
312,
294,
29918,
1688,
29908,
29915,
1273,
13,
4706,
5412,
29918,
9803,
29897,
13,
13,
1678,
396,
12545,
9365,
881,
451,
1596,
2346,
931,
322,
1856,
2974,
3211,
29889,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
1509,
2322,
29908,
1495,
13,
1678,
1583,
3032,
15480,
29918,
15903,
29918,
19158,
29898,
9902,
29889,
303,
20405,
29892,
6473,
29918,
19158,
29892,
881,
29918,
28997,
29922,
8824,
29897,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
4294,
6131,
29908,
1495,
13,
1678,
1583,
3032,
15480,
29918,
15903,
29918,
19158,
29898,
9902,
29889,
303,
20405,
29892,
6473,
29918,
19158,
29892,
881,
29918,
28997,
29922,
8824,
29897,
13,
13,
29871,
822,
1243,
29918,
7851,
29918,
4882,
29898,
1311,
29892,
5412,
29918,
9803,
1125,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
3258,
1591,
1273,
29879,
29889,
7851,
29918,
1688,
313,
333,
938,
5513,
29915,
1273,
13,
4706,
5412,
29918,
9803,
29897,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
7851,
964,
1273,
29879,
29889,
7851,
29918,
1688,
1819,
313,
29896,
5513,
29915,
1273,
13,
4706,
5412,
29918,
9803,
29897,
13,
1678,
4974,
376,
2111,
2164,
29871,
29896,
1948,
29898,
29879,
5513,
297,
2582,
29889,
303,
20405,
13,
13,
29871,
822,
903,
15480,
29918,
29881,
828,
29918,
17868,
29898,
1311,
29892,
380,
4378,
29892,
3806,
29918,
5727,
29918,
1545,
2164,
29892,
3806,
29918,
798,
29918,
12523,
1125,
13,
1678,
2582,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
29995,
29879,
29908,
29915,
1273,
313,
17868,
876,
13,
1678,
3806,
29918,
4905,
353,
376,
2111,
2164,
1273,
29881,
1948,
29898,
29879,
511,
1273,
29881,
1948,
1059,
29898,
29879,
5513,
1273,
29905,
13,
4706,
313,
9684,
29918,
5727,
29918,
1545,
2164,
29892,
3806,
29918,
798,
29918,
12523,
29897,
13,
1678,
4974,
3806,
29918,
4905,
297,
2582,
29889,
303,
20405,
13,
13,
29871,
732,
15797,
666,
3644,
29889,
29895,
566,
29884,
29918,
1333,
29918,
23765,
13,
29871,
822,
1243,
29918,
29895,
566,
29884,
29918,
29881,
828,
29918,
12276,
292,
29898,
1311,
29892,
5412,
29918,
9803,
1125,
13,
1678,
4833,
353,
5412,
29918,
9803,
13,
1678,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
489,
1972,
543,
3258,
1591,
1273,
29879,
29889,
29881,
828,
29918,
1688,
313,
333,
938,
7601,
1820,
29892,
11297,
13,
4706,
525,
482,
938,
1870,
29897,
8877,
491,
6608,
29898,
333,
29897,
23629,
29871,
29906,
6087,
408,
413,
566,
29884,
29908,
29915,
1273,
4833,
29897,
13,
13,
1678,
1583,
3032,
15480,
29918,
29881,
828,
29918,
17868,
703,
7851,
964,
1273,
29879,
29889,
29881,
828,
29918,
1688,
313,
333,
29897,
1819,
313,
29955,
511,
313,
29955,
5513,
1273,
4833,
29892,
29871,
29896,
29892,
29871,
29896,
29897,
13,
1678,
1583,
3032,
15480,
29918,
29881,
828,
29918,
17868,
703,
7851,
964,
1273,
29879,
29889,
29881,
828,
29918,
1688,
313,
333,
29897,
1819,
313,
29955,
5513,
1273,
4833,
29892,
29871,
29900,
29892,
29871,
29896,
29897,
13,
1678,
1583,
3032,
15480,
29918,
29881,
828,
29918,
17868,
703,
14340,
814,
964,
1273,
29879,
29889,
29881,
828,
29918,
1688,
313,
333,
29897,
1819,
313,
29955,
511,
313,
29955,
5513,
1273,
4833,
29892,
29871,
29906,
29892,
29871,
29900,
29897,
13,
1678,
1583,
3032,
15480,
29918,
29881,
828,
29918,
17868,
703,
5504,
1273,
29879,
29889,
29881,
828,
29918,
1688,
731,
5046,
353,
29871,
29896,
988,
1178,
353,
29871,
29955,
29908,
1273,
4833,
29892,
29871,
29896,
29892,
29871,
29900,
29897,
13,
1678,
1583,
3032,
15480,
29918,
29881,
828,
29918,
17868,
703,
8143,
515,
1273,
29879,
29889,
29881,
828,
29918,
1688,
988,
1178,
353,
29871,
29955,
29908,
1273,
4833,
29892,
29871,
29896,
29892,
29871,
29900,
29897,
13,
13,
1678,
396,
16924,
29914,
2287,
18476,
988,
727,
526,
694,
9686,
4206,
29936,
727,
526,
694,
4436,
1363,
278,
13,
1678,
396,
12812,
7371,
694,
4206,
29889,
13,
1678,
1583,
3032,
15480,
29918,
29881,
828,
29918,
17868,
703,
5504,
1273,
29879,
29889,
29881,
828,
29918,
1688,
731,
5046,
353,
29871,
29896,
988,
1178,
353,
29871,
29947,
29908,
1273,
4833,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
1678,
1583,
3032,
15480,
29918,
29881,
828,
29918,
17868,
703,
8143,
515,
1273,
29879,
29889,
29881,
828,
29918,
1688,
988,
1178,
353,
29871,
29955,
29908,
1273,
4833,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
13,
1678,
396,
22659,
3711,
6394,
29892,
871,
3394,
304,
14482,
322,
11901,
9938,
13,
1678,
1583,
3032,
15480,
29918,
29881,
828,
29918,
17868,
1194,
13,
4706,
376,
2541,
343,
408,
313,
5975,
29898,
29955,
876,
4635,
964,
1273,
29879,
29889,
29881,
828,
29918,
1688,
313,
333,
29897,
1831,
334,
515,
343,
29908,
1273,
4833,
29892,
29871,
29896,
29892,
29871,
29900,
29897,
13,
1678,
1583,
3032,
15480,
29918,
29881,
828,
29918,
17868,
1194,
13,
4706,
376,
2541,
343,
408,
313,
5975,
29898,
29955,
876,
4635,
964,
1273,
29879,
29889,
29881,
828,
29918,
1688,
313,
333,
29897,
1831,
334,
515,
343,
29908,
1273,
4833,
29892,
29871,
29900,
29892,
29871,
29896,
29897,
13,
1678,
1583,
3032,
15480,
29918,
29881,
828,
29918,
17868,
1194,
13,
4706,
376,
2541,
343,
408,
313,
5975,
29898,
29955,
876,
24081,
814,
964,
1273,
29879,
29889,
29881,
828,
29918,
1688,
313,
333,
29897,
1831,
334,
515,
343,
29908,
1273,
4833,
29892,
29871,
29896,
29892,
29871,
29900,
29897,
13,
13,
29871,
822,
1243,
29918,
27259,
29918,
1972,
29918,
1445,
29898,
1311,
1125,
13,
1678,
1121,
353,
1065,
29918,
6574,
2883,
29918,
15903,
29918,
9006,
877,
29899,
29888,
5642,
29916,
9696,
29889,
2850,
742,
2149,
29918,
8698,
29922,
8824,
29897,
13,
1678,
4974,
376,
23323,
451,
1722,
934,
525,
9290,
29916,
9696,
29889,
2850,
11838,
297,
1121,
29889,
303,
20405,
13,
2
] |
Password-Gen/pwned_check.py | FoxInTheClouds/Memorable-Password-Generator | 0 | 120152 | <reponame>FoxInTheClouds/Memorable-Password-Generator
import requests
import hashlib
def pwned_check(password):
password = password.encode() # Turns it into bytes
hashed_password = hashlib.sha1(password).hexdigest() # Api recuires sha1 hash
url = "https://api.pwnedpasswords.com/range/" + hashed_password[:5]
# Sends first five characters
pwned_request = requests.get(url)
pwned_list = pwned_request.text.splitlines()
secure = True
for i in pwned_list:
if i[:i.find(":")].lower() == hashed_password[5:].lower():
secure = False # Checks if it is in the returned list
return secure
| [
1,
529,
276,
1112,
420,
29958,
29943,
2251,
797,
1576,
20442,
29879,
29914,
11442,
272,
519,
29899,
10048,
29899,
21575,
13,
5215,
7274,
30004,
13,
5215,
6608,
1982,
30004,
13,
30004,
13,
30004,
13,
1753,
282,
1233,
287,
29918,
3198,
29898,
5630,
1125,
30004,
13,
1678,
6756,
13,
1678,
4800,
353,
4800,
29889,
12508,
580,
29871,
396,
9603,
29879,
372,
964,
6262,
30004,
13,
1678,
6756,
13,
1678,
6608,
287,
29918,
5630,
353,
6608,
1982,
29889,
17051,
29896,
29898,
5630,
467,
20970,
7501,
342,
580,
29871,
396,
29749,
1162,
29884,
2658,
528,
29874,
29896,
6608,
30004,
13,
30004,
13,
1678,
3142,
353,
376,
991,
597,
2754,
29889,
29886,
1233,
287,
5630,
29879,
29889,
510,
29914,
3881,
12975,
718,
6608,
287,
29918,
5630,
7503,
29945,
29962,
29871,
6756,
13,
1678,
396,
317,
1975,
937,
5320,
4890,
30004,
13,
30004,
13,
1678,
282,
1233,
287,
29918,
3827,
353,
7274,
29889,
657,
29898,
2271,
8443,
13,
1678,
282,
1233,
287,
29918,
1761,
353,
282,
1233,
287,
29918,
3827,
29889,
726,
29889,
5451,
9012,
26471,
13,
30004,
13,
1678,
11592,
353,
5852,
30004,
13,
30004,
13,
1678,
363,
474,
297,
282,
1233,
287,
29918,
1761,
29901,
30004,
13,
4706,
565,
474,
7503,
29875,
29889,
2886,
703,
29901,
1159,
1822,
13609,
580,
1275,
6608,
287,
29918,
5630,
29961,
29945,
29901,
1822,
13609,
7295,
30004,
13,
9651,
11592,
353,
7700,
29871,
396,
5399,
29879,
565,
372,
338,
297,
278,
4133,
1051,
30004,
13,
30004,
13,
1678,
736,
11592,
30004,
13,
2
] |
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_berttextembeddingbatchop.py | wenwei8268/Alink | 0 | 166528 | <reponame>wenwei8268/Alink
import unittest
from pyalink.alink import *
import numpy as np
import pandas as pd
class TestBertTextEmbeddingBatchOp(unittest.TestCase):
def test_berttextembeddingbatchop(self):
df_data = pd.DataFrame([
[1, 'An english sentence.'],
[2, '这是一个中文句子']
])
batch_data = BatchOperator.fromDataframe(df_data, schemaStr='f1 bigint, f2 string')
BertTextEmbeddingBatchOp() \
.setSelectedCol("f2") \
.setOutputCol("embedding") \
.setLayer(-2) \
.linkFrom(batch_data) \
.print()
pass | [
1,
529,
276,
1112,
420,
29958,
15556,
26599,
29947,
29906,
29953,
29947,
29914,
29909,
2324,
13,
5215,
443,
27958,
13,
3166,
282,
4605,
682,
29889,
284,
682,
1053,
334,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
1990,
4321,
29933,
814,
1626,
6026,
2580,
8497,
23145,
11746,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
2151,
726,
17987,
8497,
16175,
459,
29898,
1311,
1125,
13,
13,
4706,
4489,
29918,
1272,
353,
10518,
29889,
17271,
4197,
13,
9651,
518,
29896,
29892,
525,
2744,
3033,
1674,
10541,
6169,
1402,
13,
9651,
518,
29906,
29892,
525,
30810,
30392,
30287,
30502,
30275,
30333,
232,
146,
168,
30319,
2033,
13,
308,
2314,
13,
308,
13,
4706,
9853,
29918,
1272,
353,
350,
905,
26486,
29889,
3166,
1469,
2557,
29898,
2176,
29918,
1272,
29892,
10938,
5015,
2433,
29888,
29896,
4802,
524,
29892,
285,
29906,
1347,
1495,
13,
308,
13,
4706,
16662,
1626,
6026,
2580,
8497,
23145,
11746,
580,
320,
13,
9651,
869,
842,
8592,
1625,
703,
29888,
29906,
1159,
320,
13,
9651,
869,
842,
6466,
1625,
703,
17987,
8497,
1159,
320,
13,
9651,
869,
842,
14420,
6278,
29906,
29897,
320,
13,
9651,
869,
2324,
4591,
29898,
16175,
29918,
1272,
29897,
320,
13,
9651,
869,
2158,
580,
13,
4706,
1209,
2
] |
tests/bulk_importer/test_bulk_importer.py | alessiamarcolini/hangar-py | 202 | 147029 | import pytest
import numpy as np
def assert_equal(arr, arr2):
assert np.array_equal(arr, arr2)
assert arr.dtype == arr2.dtype
def test_bulk_importer_ndarray(repo):
from hangar.bulk_importer import run_bulk_import
from hangar.bulk_importer import UDF_Return
def make_ndarray(column, key, shape, dtype, multiplier):
size = np.prod(shape)
arr = np.arange(size, dtype=dtype).reshape(shape) * multiplier
yield UDF_Return(column=column, key=key, data=arr)
co = repo.checkout(write=True)
co.add_ndarray_column('arr', shape=(5, 5), dtype=np.uint32)
co.commit('first')
co.close()
kwargs = []
expected_kv = []
for idx in range(200):
_kw_dict = {
'column': 'arr',
'key': idx,
'shape': (5, 5),
'dtype': np.uint32,
'multiplier': idx
}
kwargs.append(_kw_dict)
for _udf_val in make_ndarray(**_kw_dict):
expected_kv.append(_udf_val)
assert len(expected_kv) == 200
run_bulk_import(
repo,
branch_name='master',
column_names=['arr'],
udf=make_ndarray,
udf_kwargs=kwargs,
ncpus=2)
co = repo.checkout()
try:
arr_col = co['arr']
assert len(arr_col) == 200
for _expected_udf_val in expected_kv:
assert _expected_udf_val.key in arr_col
assert_equal(arr_col[_expected_udf_val.key], _expected_udf_val.data)
finally:
co.close()
def test_bulk_importer_pystr(repo):
from hangar.bulk_importer import run_bulk_import
from hangar.bulk_importer import UDF_Return
def make_pystr(column, key, str_val):
yield UDF_Return(column=column, key=key, data=str_val)
co = repo.checkout(write=True)
co.add_str_column('str')
co.commit('first')
co.close()
kwargs = []
expected_kv = []
for idx in range(200):
_kw_dict = {
'column': 'str',
'key': idx,
'str_val': f'{str(idx) * 2}',
}
kwargs.append(_kw_dict)
for _udf_val in make_pystr(**_kw_dict):
expected_kv.append(_udf_val)
assert len(expected_kv) == 200
run_bulk_import(
repo,
branch_name='master',
column_names=['str'],
udf=make_pystr,
udf_kwargs=kwargs,
ncpus=2)
co = repo.checkout()
try:
str_col = co['str']
assert len(str_col) == 200
for _expected_udf_val in expected_kv:
assert _expected_udf_val.key in str_col
assert str_col[_expected_udf_val.key] == _expected_udf_val.data
finally:
co.close()
def test_bulk_importer_pybytes(repo):
from hangar.bulk_importer import run_bulk_import
from hangar.bulk_importer import UDF_Return
def make_pybytes(column, key, str_val):
raw = str_val.encode()
yield UDF_Return(column=column, key=key, data=raw)
co = repo.checkout(write=True)
co.add_bytes_column('bytes')
co.commit('first')
co.close()
kwargs = []
expected_kv = []
for idx in range(200):
_kw_dict = {
'column': 'bytes',
'key': idx,
'str_val': f'{str(idx) * 2}',
}
kwargs.append(_kw_dict)
for _udf_val in make_pybytes(**_kw_dict):
expected_kv.append(_udf_val)
assert len(expected_kv) == 200
run_bulk_import(
repo,
branch_name='master',
column_names=['bytes'],
udf=make_pybytes,
udf_kwargs=kwargs,
ncpus=2)
co = repo.checkout()
try:
bytes_col = co['bytes']
assert len(bytes_col) == 200
for _expected_udf_val in expected_kv:
assert _expected_udf_val.key in bytes_col
assert bytes_col[_expected_udf_val.key] == _expected_udf_val.data
finally:
co.close()
def test_bulk_importer_two_col_pybytes_pystr(repo):
from hangar.bulk_importer import run_bulk_import
from hangar.bulk_importer import UDF_Return
def _make_pystr(column, key, str_val):
yield UDF_Return(column=column, key=key, data=str_val)
def _make_pybytes(column, key, str_val):
raw = str_val.encode()
yield UDF_Return(column=column, key=key, data=raw)
def make_pystr_pybytes(str_col, bytes_col, key, str_val):
yield from _make_pystr(column=str_col, key=key, str_val=str_val)
yield from _make_pybytes(column=bytes_col, key=key, str_val=str_val)
co = repo.checkout(write=True)
co.add_bytes_column('bytes')
co.add_str_column('str')
co.commit('first')
co.close()
kwargs = []
expected_kv = []
for idx in range(200):
_kw_dict = {
'str_col': 'str',
'bytes_col': 'bytes',
'key': idx,
'str_val': f'{str(idx) * 2}',
}
kwargs.append(_kw_dict)
for _udf_val in make_pystr_pybytes(**_kw_dict):
expected_kv.append(_udf_val)
assert len(expected_kv) == 400
run_bulk_import(
repo,
branch_name='master',
column_names=['bytes', 'str'],
udf=make_pystr_pybytes,
udf_kwargs=kwargs,
ncpus=2)
co = repo.checkout()
try:
pybytes_col = co['bytes']
pystr_col = co['str']
assert len(pybytes_col) == 200
assert len(pystr_col) == 200
for _expected_udf_val in expected_kv:
assert _expected_udf_val.column in ['str', 'bytes']
if _expected_udf_val.column == 'str':
assert _expected_udf_val.key in pystr_col
assert pystr_col[_expected_udf_val.key] == _expected_udf_val.data
elif _expected_udf_val.column == 'bytes':
assert _expected_udf_val.key in pystr_col
assert pybytes_col[_expected_udf_val.key] == _expected_udf_val.data
else:
raise ValueError(_expected_udf_val.column)
finally:
co.close()
def test_signature_wrong(repo):
from hangar.bulk_importer import run_bulk_import
from hangar.bulk_importer import UDF_Return
def wrong_sig_udf(a, b, c=None):
yield UDF_Return(column='str', key=a, data=f'{a} {b} {c}')
co = repo.checkout(write=True)
co.add_str_column('str')
co.commit('first')
co.close()
kwargs = []
for idx in range(200):
_kw_dict = {
'a': 'bytes',
'str_val': f'{str(idx) * 2}',
}
kwargs.append(_kw_dict)
with pytest.raises(TypeError):
run_bulk_import(
repo,
branch_name='master',
column_names=['str'],
udf=wrong_sig_udf,
udf_kwargs=kwargs,
ncpus=2)
| [
1,
1053,
11451,
1688,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1753,
4974,
29918,
11745,
29898,
2749,
29892,
3948,
29906,
1125,
13,
1678,
4974,
7442,
29889,
2378,
29918,
11745,
29898,
2749,
29892,
3948,
29906,
29897,
13,
1678,
4974,
3948,
29889,
29881,
1853,
1275,
3948,
29906,
29889,
29881,
1853,
13,
13,
13,
1753,
1243,
29918,
8645,
29895,
29918,
326,
18505,
29918,
299,
2378,
29898,
20095,
1125,
13,
1678,
515,
13958,
279,
29889,
8645,
29895,
29918,
326,
18505,
1053,
1065,
29918,
8645,
29895,
29918,
5215,
13,
1678,
515,
13958,
279,
29889,
8645,
29895,
29918,
326,
18505,
1053,
501,
4037,
29918,
11609,
13,
13,
1678,
822,
1207,
29918,
299,
2378,
29898,
4914,
29892,
1820,
29892,
8267,
29892,
26688,
29892,
6674,
4926,
1125,
13,
4706,
2159,
353,
7442,
29889,
10633,
29898,
12181,
29897,
13,
4706,
3948,
353,
7442,
29889,
279,
927,
29898,
2311,
29892,
26688,
29922,
29881,
1853,
467,
690,
14443,
29898,
12181,
29897,
334,
6674,
4926,
13,
4706,
7709,
501,
4037,
29918,
11609,
29898,
4914,
29922,
4914,
29892,
1820,
29922,
1989,
29892,
848,
29922,
2749,
29897,
13,
13,
1678,
1302,
353,
13761,
29889,
3198,
449,
29898,
3539,
29922,
5574,
29897,
13,
1678,
1302,
29889,
1202,
29918,
299,
2378,
29918,
4914,
877,
2749,
742,
8267,
7607,
29945,
29892,
29871,
29945,
511,
26688,
29922,
9302,
29889,
13470,
29941,
29906,
29897,
13,
1678,
1302,
29889,
15060,
877,
4102,
1495,
13,
1678,
1302,
29889,
5358,
580,
13,
13,
1678,
9049,
5085,
353,
5159,
13,
1678,
3806,
29918,
27049,
353,
5159,
13,
1678,
363,
22645,
297,
3464,
29898,
29906,
29900,
29900,
1125,
13,
4706,
903,
11022,
29918,
8977,
353,
426,
13,
9651,
525,
4914,
2396,
525,
2749,
742,
13,
9651,
525,
1989,
2396,
22645,
29892,
13,
9651,
525,
12181,
2396,
313,
29945,
29892,
29871,
29945,
511,
13,
9651,
525,
29881,
1853,
2396,
7442,
29889,
13470,
29941,
29906,
29892,
13,
9651,
525,
18056,
4926,
2396,
22645,
13,
4706,
500,
13,
4706,
9049,
5085,
29889,
4397,
7373,
11022,
29918,
8977,
29897,
13,
13,
4706,
363,
903,
566,
29888,
29918,
791,
297,
1207,
29918,
299,
2378,
29898,
1068,
29918,
11022,
29918,
8977,
1125,
13,
9651,
3806,
29918,
27049,
29889,
4397,
7373,
566,
29888,
29918,
791,
29897,
13,
1678,
4974,
7431,
29898,
9684,
29918,
27049,
29897,
1275,
29871,
29906,
29900,
29900,
13,
13,
1678,
1065,
29918,
8645,
29895,
29918,
5215,
29898,
13,
4706,
13761,
29892,
13,
4706,
5443,
29918,
978,
2433,
6207,
742,
13,
4706,
1897,
29918,
7039,
29922,
1839,
2749,
7464,
13,
4706,
318,
2176,
29922,
5675,
29918,
299,
2378,
29892,
13,
4706,
318,
2176,
29918,
19290,
29922,
19290,
29892,
13,
4706,
302,
6814,
375,
29922,
29906,
29897,
13,
13,
1678,
1302,
353,
13761,
29889,
3198,
449,
580,
13,
1678,
1018,
29901,
13,
4706,
3948,
29918,
1054,
353,
1302,
1839,
2749,
2033,
13,
4706,
4974,
7431,
29898,
2749,
29918,
1054,
29897,
1275,
29871,
29906,
29900,
29900,
13,
4706,
363,
903,
9684,
29918,
566,
29888,
29918,
791,
297,
3806,
29918,
27049,
29901,
13,
9651,
4974,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
1989,
297,
3948,
29918,
1054,
13,
9651,
4974,
29918,
11745,
29898,
2749,
29918,
1054,
28513,
9684,
29918,
566,
29888,
29918,
791,
29889,
1989,
1402,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
1272,
29897,
13,
1678,
7146,
29901,
13,
4706,
1302,
29889,
5358,
580,
13,
13,
13,
1753,
1243,
29918,
8645,
29895,
29918,
326,
18505,
29918,
2272,
710,
29898,
20095,
1125,
13,
1678,
515,
13958,
279,
29889,
8645,
29895,
29918,
326,
18505,
1053,
1065,
29918,
8645,
29895,
29918,
5215,
13,
1678,
515,
13958,
279,
29889,
8645,
29895,
29918,
326,
18505,
1053,
501,
4037,
29918,
11609,
13,
13,
1678,
822,
1207,
29918,
2272,
710,
29898,
4914,
29892,
1820,
29892,
851,
29918,
791,
1125,
13,
4706,
7709,
501,
4037,
29918,
11609,
29898,
4914,
29922,
4914,
29892,
1820,
29922,
1989,
29892,
848,
29922,
710,
29918,
791,
29897,
13,
13,
1678,
1302,
353,
13761,
29889,
3198,
449,
29898,
3539,
29922,
5574,
29897,
13,
1678,
1302,
29889,
1202,
29918,
710,
29918,
4914,
877,
710,
1495,
13,
1678,
1302,
29889,
15060,
877,
4102,
1495,
13,
1678,
1302,
29889,
5358,
580,
13,
13,
1678,
9049,
5085,
353,
5159,
13,
1678,
3806,
29918,
27049,
353,
5159,
13,
1678,
363,
22645,
297,
3464,
29898,
29906,
29900,
29900,
1125,
13,
4706,
903,
11022,
29918,
8977,
353,
426,
13,
9651,
525,
4914,
2396,
525,
710,
742,
13,
9651,
525,
1989,
2396,
22645,
29892,
13,
9651,
525,
710,
29918,
791,
2396,
285,
29915,
29912,
710,
29898,
13140,
29897,
334,
29871,
29906,
29913,
742,
13,
4706,
500,
13,
4706,
9049,
5085,
29889,
4397,
7373,
11022,
29918,
8977,
29897,
13,
13,
4706,
363,
903,
566,
29888,
29918,
791,
297,
1207,
29918,
2272,
710,
29898,
1068,
29918,
11022,
29918,
8977,
1125,
13,
9651,
3806,
29918,
27049,
29889,
4397,
7373,
566,
29888,
29918,
791,
29897,
13,
1678,
4974,
7431,
29898,
9684,
29918,
27049,
29897,
1275,
29871,
29906,
29900,
29900,
13,
13,
1678,
1065,
29918,
8645,
29895,
29918,
5215,
29898,
13,
4706,
13761,
29892,
13,
4706,
5443,
29918,
978,
2433,
6207,
742,
13,
4706,
1897,
29918,
7039,
29922,
1839,
710,
7464,
13,
4706,
318,
2176,
29922,
5675,
29918,
2272,
710,
29892,
13,
4706,
318,
2176,
29918,
19290,
29922,
19290,
29892,
13,
4706,
302,
6814,
375,
29922,
29906,
29897,
13,
13,
1678,
1302,
353,
13761,
29889,
3198,
449,
580,
13,
1678,
1018,
29901,
13,
4706,
851,
29918,
1054,
353,
1302,
1839,
710,
2033,
13,
4706,
4974,
7431,
29898,
710,
29918,
1054,
29897,
1275,
29871,
29906,
29900,
29900,
13,
4706,
363,
903,
9684,
29918,
566,
29888,
29918,
791,
297,
3806,
29918,
27049,
29901,
13,
9651,
4974,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
1989,
297,
851,
29918,
1054,
13,
9651,
4974,
851,
29918,
1054,
28513,
9684,
29918,
566,
29888,
29918,
791,
29889,
1989,
29962,
1275,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
1272,
13,
1678,
7146,
29901,
13,
4706,
1302,
29889,
5358,
580,
13,
13,
13,
1753,
1243,
29918,
8645,
29895,
29918,
326,
18505,
29918,
2272,
13193,
29898,
20095,
1125,
13,
1678,
515,
13958,
279,
29889,
8645,
29895,
29918,
326,
18505,
1053,
1065,
29918,
8645,
29895,
29918,
5215,
13,
1678,
515,
13958,
279,
29889,
8645,
29895,
29918,
326,
18505,
1053,
501,
4037,
29918,
11609,
13,
13,
1678,
822,
1207,
29918,
2272,
13193,
29898,
4914,
29892,
1820,
29892,
851,
29918,
791,
1125,
13,
4706,
10650,
353,
851,
29918,
791,
29889,
12508,
580,
13,
4706,
7709,
501,
4037,
29918,
11609,
29898,
4914,
29922,
4914,
29892,
1820,
29922,
1989,
29892,
848,
29922,
1610,
29897,
13,
13,
1678,
1302,
353,
13761,
29889,
3198,
449,
29898,
3539,
29922,
5574,
29897,
13,
1678,
1302,
29889,
1202,
29918,
13193,
29918,
4914,
877,
13193,
1495,
13,
1678,
1302,
29889,
15060,
877,
4102,
1495,
13,
1678,
1302,
29889,
5358,
580,
13,
13,
1678,
9049,
5085,
353,
5159,
13,
1678,
3806,
29918,
27049,
353,
5159,
13,
1678,
363,
22645,
297,
3464,
29898,
29906,
29900,
29900,
1125,
13,
4706,
903,
11022,
29918,
8977,
353,
426,
13,
9651,
525,
4914,
2396,
525,
13193,
742,
13,
9651,
525,
1989,
2396,
22645,
29892,
13,
9651,
525,
710,
29918,
791,
2396,
285,
29915,
29912,
710,
29898,
13140,
29897,
334,
29871,
29906,
29913,
742,
13,
4706,
500,
13,
4706,
9049,
5085,
29889,
4397,
7373,
11022,
29918,
8977,
29897,
13,
13,
4706,
363,
903,
566,
29888,
29918,
791,
297,
1207,
29918,
2272,
13193,
29898,
1068,
29918,
11022,
29918,
8977,
1125,
13,
9651,
3806,
29918,
27049,
29889,
4397,
7373,
566,
29888,
29918,
791,
29897,
13,
1678,
4974,
7431,
29898,
9684,
29918,
27049,
29897,
1275,
29871,
29906,
29900,
29900,
13,
13,
1678,
1065,
29918,
8645,
29895,
29918,
5215,
29898,
13,
4706,
13761,
29892,
13,
4706,
5443,
29918,
978,
2433,
6207,
742,
13,
4706,
1897,
29918,
7039,
29922,
1839,
13193,
7464,
13,
4706,
318,
2176,
29922,
5675,
29918,
2272,
13193,
29892,
13,
4706,
318,
2176,
29918,
19290,
29922,
19290,
29892,
13,
4706,
302,
6814,
375,
29922,
29906,
29897,
13,
13,
1678,
1302,
353,
13761,
29889,
3198,
449,
580,
13,
1678,
1018,
29901,
13,
4706,
6262,
29918,
1054,
353,
1302,
1839,
13193,
2033,
13,
4706,
4974,
7431,
29898,
13193,
29918,
1054,
29897,
1275,
29871,
29906,
29900,
29900,
13,
4706,
363,
903,
9684,
29918,
566,
29888,
29918,
791,
297,
3806,
29918,
27049,
29901,
13,
9651,
4974,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
1989,
297,
6262,
29918,
1054,
13,
9651,
4974,
6262,
29918,
1054,
28513,
9684,
29918,
566,
29888,
29918,
791,
29889,
1989,
29962,
1275,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
1272,
13,
1678,
7146,
29901,
13,
4706,
1302,
29889,
5358,
580,
13,
13,
13,
1753,
1243,
29918,
8645,
29895,
29918,
326,
18505,
29918,
10184,
29918,
1054,
29918,
2272,
13193,
29918,
2272,
710,
29898,
20095,
1125,
13,
1678,
515,
13958,
279,
29889,
8645,
29895,
29918,
326,
18505,
1053,
1065,
29918,
8645,
29895,
29918,
5215,
13,
1678,
515,
13958,
279,
29889,
8645,
29895,
29918,
326,
18505,
1053,
501,
4037,
29918,
11609,
13,
13,
1678,
822,
903,
5675,
29918,
2272,
710,
29898,
4914,
29892,
1820,
29892,
851,
29918,
791,
1125,
13,
4706,
7709,
501,
4037,
29918,
11609,
29898,
4914,
29922,
4914,
29892,
1820,
29922,
1989,
29892,
848,
29922,
710,
29918,
791,
29897,
13,
13,
1678,
822,
903,
5675,
29918,
2272,
13193,
29898,
4914,
29892,
1820,
29892,
851,
29918,
791,
1125,
13,
4706,
10650,
353,
851,
29918,
791,
29889,
12508,
580,
13,
4706,
7709,
501,
4037,
29918,
11609,
29898,
4914,
29922,
4914,
29892,
1820,
29922,
1989,
29892,
848,
29922,
1610,
29897,
13,
13,
1678,
822,
1207,
29918,
2272,
710,
29918,
2272,
13193,
29898,
710,
29918,
1054,
29892,
6262,
29918,
1054,
29892,
1820,
29892,
851,
29918,
791,
1125,
13,
4706,
7709,
515,
903,
5675,
29918,
2272,
710,
29898,
4914,
29922,
710,
29918,
1054,
29892,
1820,
29922,
1989,
29892,
851,
29918,
791,
29922,
710,
29918,
791,
29897,
13,
4706,
7709,
515,
903,
5675,
29918,
2272,
13193,
29898,
4914,
29922,
13193,
29918,
1054,
29892,
1820,
29922,
1989,
29892,
851,
29918,
791,
29922,
710,
29918,
791,
29897,
13,
13,
1678,
1302,
353,
13761,
29889,
3198,
449,
29898,
3539,
29922,
5574,
29897,
13,
1678,
1302,
29889,
1202,
29918,
13193,
29918,
4914,
877,
13193,
1495,
13,
1678,
1302,
29889,
1202,
29918,
710,
29918,
4914,
877,
710,
1495,
13,
1678,
1302,
29889,
15060,
877,
4102,
1495,
13,
1678,
1302,
29889,
5358,
580,
13,
13,
1678,
9049,
5085,
353,
5159,
13,
1678,
3806,
29918,
27049,
353,
5159,
13,
1678,
363,
22645,
297,
3464,
29898,
29906,
29900,
29900,
1125,
13,
4706,
903,
11022,
29918,
8977,
353,
426,
13,
9651,
525,
710,
29918,
1054,
2396,
525,
710,
742,
13,
9651,
525,
13193,
29918,
1054,
2396,
525,
13193,
742,
13,
9651,
525,
1989,
2396,
22645,
29892,
13,
9651,
525,
710,
29918,
791,
2396,
285,
29915,
29912,
710,
29898,
13140,
29897,
334,
29871,
29906,
29913,
742,
13,
4706,
500,
13,
4706,
9049,
5085,
29889,
4397,
7373,
11022,
29918,
8977,
29897,
13,
13,
4706,
363,
903,
566,
29888,
29918,
791,
297,
1207,
29918,
2272,
710,
29918,
2272,
13193,
29898,
1068,
29918,
11022,
29918,
8977,
1125,
13,
9651,
3806,
29918,
27049,
29889,
4397,
7373,
566,
29888,
29918,
791,
29897,
13,
1678,
4974,
7431,
29898,
9684,
29918,
27049,
29897,
1275,
29871,
29946,
29900,
29900,
13,
13,
1678,
1065,
29918,
8645,
29895,
29918,
5215,
29898,
13,
4706,
13761,
29892,
13,
4706,
5443,
29918,
978,
2433,
6207,
742,
13,
4706,
1897,
29918,
7039,
29922,
1839,
13193,
742,
525,
710,
7464,
13,
4706,
318,
2176,
29922,
5675,
29918,
2272,
710,
29918,
2272,
13193,
29892,
13,
4706,
318,
2176,
29918,
19290,
29922,
19290,
29892,
13,
4706,
302,
6814,
375,
29922,
29906,
29897,
13,
13,
1678,
1302,
353,
13761,
29889,
3198,
449,
580,
13,
1678,
1018,
29901,
13,
4706,
11451,
13193,
29918,
1054,
353,
1302,
1839,
13193,
2033,
13,
4706,
11451,
710,
29918,
1054,
353,
1302,
1839,
710,
2033,
13,
4706,
4974,
7431,
29898,
2272,
13193,
29918,
1054,
29897,
1275,
29871,
29906,
29900,
29900,
13,
4706,
4974,
7431,
29898,
2272,
710,
29918,
1054,
29897,
1275,
29871,
29906,
29900,
29900,
13,
4706,
363,
903,
9684,
29918,
566,
29888,
29918,
791,
297,
3806,
29918,
27049,
29901,
13,
9651,
4974,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
4914,
297,
6024,
710,
742,
525,
13193,
2033,
13,
9651,
565,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
4914,
1275,
525,
710,
2396,
13,
18884,
4974,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
1989,
297,
11451,
710,
29918,
1054,
13,
18884,
4974,
11451,
710,
29918,
1054,
28513,
9684,
29918,
566,
29888,
29918,
791,
29889,
1989,
29962,
1275,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
1272,
13,
9651,
25342,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
4914,
1275,
525,
13193,
2396,
13,
18884,
4974,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
1989,
297,
11451,
710,
29918,
1054,
13,
18884,
4974,
11451,
13193,
29918,
1054,
28513,
9684,
29918,
566,
29888,
29918,
791,
29889,
1989,
29962,
1275,
903,
9684,
29918,
566,
29888,
29918,
791,
29889,
1272,
13,
9651,
1683,
29901,
13,
18884,
12020,
7865,
2392,
7373,
9684,
29918,
566,
29888,
29918,
791,
29889,
4914,
29897,
13,
1678,
7146,
29901,
13,
4706,
1302,
29889,
5358,
580,
13,
13,
13,
1753,
1243,
29918,
4530,
1535,
29918,
15866,
549,
29898,
20095,
1125,
13,
1678,
515,
13958,
279,
29889,
8645,
29895,
29918,
326,
18505,
1053,
1065,
29918,
8645,
29895,
29918,
5215,
13,
1678,
515,
13958,
279,
29889,
8645,
29895,
29918,
326,
18505,
1053,
501,
4037,
29918,
11609,
13,
13,
1678,
822,
2743,
29918,
18816,
29918,
566,
29888,
29898,
29874,
29892,
289,
29892,
274,
29922,
8516,
1125,
13,
4706,
7709,
501,
4037,
29918,
11609,
29898,
4914,
2433,
710,
742,
1820,
29922,
29874,
29892,
848,
29922,
29888,
29915,
29912,
29874,
29913,
426,
29890,
29913,
426,
29883,
29913,
1495,
13,
13,
1678,
1302,
353,
13761,
29889,
3198,
449,
29898,
3539,
29922,
5574,
29897,
13,
1678,
1302,
29889,
1202,
29918,
710,
29918,
4914,
877,
710,
1495,
13,
1678,
1302,
29889,
15060,
877,
4102,
1495,
13,
1678,
1302,
29889,
5358,
580,
13,
13,
1678,
9049,
5085,
353,
5159,
13,
1678,
363,
22645,
297,
3464,
29898,
29906,
29900,
29900,
1125,
13,
4706,
903,
11022,
29918,
8977,
353,
426,
13,
9651,
525,
29874,
2396,
525,
13193,
742,
13,
9651,
525,
710,
29918,
791,
2396,
285,
29915,
29912,
710,
29898,
13140,
29897,
334,
29871,
29906,
29913,
742,
13,
4706,
500,
13,
4706,
9049,
5085,
29889,
4397,
7373,
11022,
29918,
8977,
29897,
13,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1542,
2392,
1125,
13,
4706,
1065,
29918,
8645,
29895,
29918,
5215,
29898,
13,
9651,
13761,
29892,
13,
9651,
5443,
29918,
978,
2433,
6207,
742,
13,
9651,
1897,
29918,
7039,
29922,
1839,
710,
7464,
13,
9651,
318,
2176,
29922,
15866,
549,
29918,
18816,
29918,
566,
29888,
29892,
13,
9651,
318,
2176,
29918,
19290,
29922,
19290,
29892,
13,
9651,
302,
6814,
375,
29922,
29906,
29897,
13,
2
] |
setup.py | jean/labels | 1 | 4526 | <reponame>jean/labels<gh_stars>1-10
import pathlib
import setuptools
def read(*args: str) -> str:
file_path = pathlib.Path(__file__).parent.joinpath(*args)
return file_path.read_text("utf-8")
setuptools.setup(
name="labels",
version="0.3.0.dev0",
author="<NAME>",
author_email="<EMAIL>",
maintainer="<NAME>",
maintainer_email="<EMAIL>",
license="MIT",
url="https://github.com/hackebrot/labels",
project_urls={
"Repository": "https://github.com/hackebrot/labels",
"Issues": "https://github.com/hackebrot/labels/issues",
},
description="CLI app for managing GitHub labels for Python 3.6 and newer. 📝",
long_description=read("README.md"),
long_description_content_type="text/markdown",
packages=setuptools.find_packages("src"),
package_dir={"": "src"},
include_package_data=True,
zip_safe=False,
python_requires=">=3.6",
install_requires=["click", "requests", "pytoml", "attrs"],
entry_points={"console_scripts": ["labels = labels.cli:labels"]},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Utilities",
],
keywords=["github", "command-line"],
)
| [
1,
529,
276,
1112,
420,
29958,
1324,
273,
29914,
21134,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2224,
1982,
13,
5215,
731,
21245,
8789,
13,
13,
13,
1753,
1303,
10456,
5085,
29901,
851,
29897,
1599,
851,
29901,
13,
1678,
934,
29918,
2084,
353,
2224,
1982,
29889,
2605,
22168,
1445,
1649,
467,
3560,
29889,
7122,
2084,
10456,
5085,
29897,
13,
1678,
736,
934,
29918,
2084,
29889,
949,
29918,
726,
703,
9420,
29899,
29947,
1159,
13,
13,
13,
842,
21245,
8789,
29889,
14669,
29898,
13,
1678,
1024,
543,
21134,
613,
13,
1678,
1873,
543,
29900,
29889,
29941,
29889,
29900,
29889,
3359,
29900,
613,
13,
1678,
4148,
543,
29966,
5813,
28341,
13,
1678,
4148,
29918,
5269,
543,
29966,
26862,
6227,
28341,
13,
1678,
7344,
261,
543,
29966,
5813,
28341,
13,
1678,
7344,
261,
29918,
5269,
543,
29966,
26862,
6227,
28341,
13,
1678,
19405,
543,
26349,
613,
13,
1678,
3142,
543,
991,
597,
3292,
29889,
510,
29914,
29882,
547,
774,
5450,
29914,
21134,
613,
13,
1678,
2060,
29918,
26045,
3790,
13,
4706,
376,
11481,
1115,
376,
991,
597,
3292,
29889,
510,
29914,
29882,
547,
774,
5450,
29914,
21134,
613,
13,
4706,
376,
29902,
893,
1041,
1115,
376,
991,
597,
3292,
29889,
510,
29914,
29882,
547,
774,
5450,
29914,
21134,
29914,
12175,
613,
13,
1678,
2981,
13,
1678,
6139,
543,
27205,
623,
363,
767,
6751,
25492,
11073,
363,
5132,
29871,
29941,
29889,
29953,
322,
20687,
29889,
29871,
243,
162,
150,
160,
613,
13,
1678,
1472,
29918,
8216,
29922,
949,
703,
16310,
2303,
29889,
3487,
4968,
13,
1678,
1472,
29918,
8216,
29918,
3051,
29918,
1853,
543,
726,
29914,
3502,
3204,
613,
13,
1678,
9741,
29922,
842,
21245,
8789,
29889,
2886,
29918,
8318,
703,
4351,
4968,
13,
1678,
3577,
29918,
3972,
3790,
29908,
1115,
376,
4351,
10758,
13,
1678,
3160,
29918,
5113,
29918,
1272,
29922,
5574,
29892,
13,
1678,
14319,
29918,
11177,
29922,
8824,
29892,
13,
1678,
3017,
29918,
276,
339,
2658,
543,
18572,
29941,
29889,
29953,
613,
13,
1678,
2601,
29918,
276,
339,
2658,
29922,
3366,
3808,
613,
376,
24830,
613,
376,
2272,
15135,
29880,
613,
376,
5552,
29879,
12436,
13,
1678,
6251,
29918,
9748,
3790,
29908,
11058,
29918,
16713,
1115,
6796,
21134,
353,
11073,
29889,
11303,
29901,
21134,
3108,
1118,
13,
1678,
770,
14903,
11759,
13,
4706,
376,
21956,
358,
16034,
4761,
29871,
29941,
448,
838,
2026,
613,
13,
4706,
376,
2928,
2760,
319,
4749,
663,
4761,
10682,
414,
613,
13,
4706,
376,
29931,
293,
1947,
4761,
438,
5425,
28268,
1490,
4761,
341,
1806,
19245,
613,
13,
4706,
376,
29940,
18771,
17088,
4761,
4223,
613,
13,
4706,
376,
7094,
1218,
2184,
4761,
6570,
25266,
613,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
4761,
9333,
613,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
29889,
29953,
613,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
29889,
29955,
613,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
1954,
14607,
4761,
315,
11980,
613,
13,
4706,
376,
7031,
293,
4761,
22310,
1907,
613,
13,
1678,
21251,
13,
1678,
29361,
29922,
3366,
3292,
613,
376,
6519,
29899,
1220,
12436,
13,
29897,
13,
2
] |
chatbot_jesse/snotbot/chatServer_snotbot.py | carmensteenbrink/getyourreview | 0 | 167580 | #!/usr/bin/env python3
# Command Line Interface (CLI) version
import time
import uniquebot as bot
# Chat Server Framework functions
def sleep(n):
"""Sleep n number of seconds.
Pauses the execution of the program.
"""
time.sleep(n)
def output(s):
"""Outputs string s as chat message.
Send the given string to the chat client.
"""
print(s)
# Run forever on the command line
def main():
"""docstring for main"""
# Setup
bot.setup()
#
# Run continuesly
while True:
humanSpeak = input("> ")
bot.response(humanSpeak)
if __name__ == '__main__':
main()
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
29937,
10516,
7407,
25796,
313,
27205,
29897,
1873,
13,
13,
5215,
931,
13,
5215,
20498,
774,
327,
408,
9225,
13,
13,
13,
29937,
678,
271,
5656,
16657,
3168,
13,
13,
1753,
8709,
29898,
29876,
1125,
13,
1678,
9995,
29903,
5436,
302,
1353,
310,
6923,
29889,
13,
1678,
349,
1485,
267,
278,
8225,
310,
278,
1824,
29889,
13,
1678,
9995,
13,
1678,
931,
29889,
17059,
29898,
29876,
29897,
13,
13,
13,
1753,
1962,
29898,
29879,
1125,
13,
1678,
9995,
6466,
29879,
1347,
269,
408,
13563,
2643,
29889,
13,
1678,
15076,
278,
2183,
1347,
304,
278,
13563,
3132,
29889,
13,
1678,
9995,
13,
1678,
1596,
29898,
29879,
29897,
13,
13,
13,
29937,
7525,
22296,
373,
278,
1899,
1196,
13,
13,
1753,
1667,
7295,
13,
1678,
9995,
1514,
1807,
363,
1667,
15945,
29908,
13,
1678,
396,
3789,
786,
13,
1678,
9225,
29889,
14669,
580,
13,
1678,
396,
13,
1678,
396,
7525,
18172,
368,
13,
1678,
1550,
5852,
29901,
13,
4706,
5199,
10649,
557,
353,
1881,
703,
29958,
16521,
13,
4706,
9225,
29889,
5327,
29898,
26029,
10649,
557,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
13,
2
] |
src/python-speech-recognition/auto.py | Zambashilidye/face_recognition_robocup | 0 | 159124 | <reponame>Zambashilidye/face_recognition_robocup<filename>src/python-speech-recognition/auto.py
#!/usr/bin/env python
#coding:utf-8
from audio import AudioControl
import os
import time
#import winsound
def DetectImage():
#print(os.path.abspath("facereg"))
return os.path.isfile("/home/snfgto/robocup/facereg/face_recog_v1.0/outputs/operator.jpg")
def AutoControl():
detectflag = 0
while (detectflag == 0):
time.sleep(1)
if DetectImage():
detectflag = 1
#winsound.Beep(600,1000)
#print("\a")
beep()
print("Get Image.Now turning.")
ac=AudioControl("ac")
ac.turn()
else:
detectflag = 0
print("Don't find the image.Keep searching...")
def beep():
duration = 1 # second
freq = 1000 # Hz
os.system('play --no-show-progress --null --channels 1 synth %s sine %f' % (duration, freq))
if __name__ == '__main__':
try:
#rate = 20
#SetRate(rate)
AutoControl()
#print("\a")
except:
print("Processes End.") | [
1,
529,
276,
1112,
420,
29958,
29999,
1117,
1161,
309,
333,
4099,
29914,
2161,
29918,
29423,
654,
29918,
13716,
542,
786,
29966,
9507,
29958,
4351,
29914,
4691,
29899,
5965,
5309,
29899,
29423,
654,
29914,
6921,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
29883,
3689,
29901,
9420,
29899,
29947,
13,
3166,
10348,
1053,
21764,
4809,
29871,
13,
5215,
2897,
13,
5215,
931,
13,
29937,
5215,
21614,
618,
13,
13,
1753,
5953,
522,
2940,
7295,
13,
1678,
396,
2158,
29898,
359,
29889,
2084,
29889,
370,
1028,
493,
703,
17470,
261,
387,
5783,
13,
1678,
736,
2897,
29889,
2084,
29889,
275,
1445,
11974,
5184,
29914,
16586,
16434,
517,
29914,
13716,
542,
786,
29914,
17470,
261,
387,
29914,
2161,
29918,
3757,
468,
29918,
29894,
29896,
29889,
29900,
29914,
4905,
29879,
29914,
6891,
29889,
6173,
1159,
13,
13,
1753,
11133,
4809,
7295,
13,
1678,
6459,
15581,
353,
29871,
29900,
13,
1678,
1550,
313,
4801,
522,
15581,
1275,
29871,
29900,
1125,
13,
4706,
931,
29889,
17059,
29898,
29896,
29897,
13,
4706,
565,
5953,
522,
2940,
7295,
13,
9651,
6459,
15581,
353,
29871,
29896,
13,
9651,
396,
29893,
1144,
618,
29889,
3629,
1022,
29898,
29953,
29900,
29900,
29892,
29896,
29900,
29900,
29900,
29897,
13,
9651,
396,
2158,
14182,
29874,
1159,
13,
9651,
367,
1022,
580,
13,
9651,
1596,
703,
2577,
7084,
29889,
10454,
14712,
23157,
13,
9651,
1274,
29922,
17111,
4809,
703,
562,
1159,
13,
9651,
1274,
29889,
685,
580,
13,
4706,
1683,
29901,
13,
9651,
6459,
15581,
353,
29871,
29900,
13,
9651,
1596,
703,
10310,
29915,
29873,
1284,
278,
1967,
29889,
9598,
1022,
11975,
856,
1159,
13,
13,
1753,
367,
1022,
7295,
13,
1678,
14385,
353,
29871,
29896,
29871,
396,
1473,
13,
1678,
3005,
29939,
353,
29871,
29896,
29900,
29900,
29900,
29871,
396,
379,
29920,
13,
1678,
2897,
29889,
5205,
877,
1456,
1192,
1217,
29899,
4294,
29899,
18035,
1192,
4304,
1192,
305,
12629,
29871,
29896,
14710,
1273,
29879,
269,
457,
1273,
29888,
29915,
1273,
313,
19708,
29892,
3005,
29939,
876,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1018,
29901,
13,
4706,
396,
10492,
353,
29871,
29906,
29900,
13,
4706,
396,
2697,
19907,
29898,
10492,
29897,
13,
4706,
11133,
4809,
580,
13,
4706,
396,
2158,
14182,
29874,
1159,
13,
1678,
5174,
29901,
13,
4706,
1596,
703,
7032,
267,
2796,
23157,
2
] |
comments/views.py | praekeltfoundation/ge-web | 1 | 1603504 | <reponame>praekeltfoundation/ge-web<filename>comments/views.py<gh_stars>1-10
from django.contrib import messages
from django.views.generic import FormView
from django.views.generic.base import ContextMixin
from threadedcomments.forms import ThreadedCommentForm
from threadedcomments.models import ThreadedComment
class AdminCommentReplyView(FormView, ContextMixin):
form_class = ThreadedCommentForm
template_name = "admin/reply.html"
success_url = "/admin/threadedcomments/threadedcomment/"
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["parent"] = self.get_form_kwargs()["target_object"]
return context
def get_form_kwargs(self, *args, **kwargs):
kwargs = super(AdminCommentReplyView, self).get_form_kwargs(*args, **kwargs)
kwargs["parent"] = self.kwargs["parent"]
kwargs["target_object"] = ThreadedComment.objects.get(pk=self.kwargs["parent"])
del kwargs["prefix"]
if "files" in kwargs.keys():
del kwargs["files"]
return kwargs
def form_valid(self, form, *args, **kwargs):
comment = form.get_comment_object()
comment.save()
messages.success(self.request, "Comment Reply Successfully Posted")
return super().form_valid(form, *args, **kwargs)
| [
1,
529,
276,
1112,
420,
29958,
29886,
336,
1416,
2152,
11940,
362,
29914,
479,
29899,
2676,
29966,
9507,
29958,
21032,
29914,
7406,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
9557,
29889,
21570,
1053,
7191,
13,
3166,
9557,
29889,
7406,
29889,
19206,
1053,
3812,
1043,
13,
3166,
9557,
29889,
7406,
29889,
19206,
29889,
3188,
1053,
15228,
29924,
861,
262,
13,
3166,
3244,
287,
21032,
29889,
9514,
1053,
10480,
287,
20001,
2500,
13,
3166,
3244,
287,
21032,
29889,
9794,
1053,
10480,
287,
20001,
13,
13,
13,
1990,
10229,
20001,
5612,
368,
1043,
29898,
2500,
1043,
29892,
15228,
29924,
861,
262,
1125,
13,
1678,
883,
29918,
1990,
353,
10480,
287,
20001,
2500,
13,
1678,
4472,
29918,
978,
353,
376,
6406,
29914,
3445,
368,
29889,
1420,
29908,
13,
1678,
2551,
29918,
2271,
353,
5591,
6406,
29914,
7097,
287,
21032,
29914,
7097,
287,
9342,
12975,
13,
13,
1678,
822,
679,
29918,
4703,
29918,
1272,
29898,
1311,
29892,
3579,
19290,
1125,
13,
4706,
3030,
353,
2428,
2141,
657,
29918,
4703,
29918,
1272,
29898,
1068,
19290,
29897,
13,
4706,
3030,
3366,
3560,
3108,
353,
1583,
29889,
657,
29918,
689,
29918,
19290,
580,
3366,
5182,
29918,
3318,
3108,
13,
4706,
736,
3030,
13,
13,
1678,
822,
679,
29918,
689,
29918,
19290,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
9049,
5085,
353,
2428,
29898,
12754,
20001,
5612,
368,
1043,
29892,
1583,
467,
657,
29918,
689,
29918,
19290,
10456,
5085,
29892,
3579,
19290,
29897,
13,
4706,
9049,
5085,
3366,
3560,
3108,
353,
1583,
29889,
19290,
3366,
3560,
3108,
13,
4706,
9049,
5085,
3366,
5182,
29918,
3318,
3108,
353,
10480,
287,
20001,
29889,
12650,
29889,
657,
29898,
20571,
29922,
1311,
29889,
19290,
3366,
3560,
20068,
13,
4706,
628,
9049,
5085,
3366,
13506,
3108,
13,
4706,
565,
376,
5325,
29908,
297,
9049,
5085,
29889,
8149,
7295,
13,
9651,
628,
9049,
5085,
3366,
5325,
3108,
13,
4706,
736,
9049,
5085,
13,
13,
1678,
822,
883,
29918,
3084,
29898,
1311,
29892,
883,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
3440,
353,
883,
29889,
657,
29918,
9342,
29918,
3318,
580,
13,
4706,
3440,
29889,
7620,
580,
13,
4706,
7191,
29889,
8698,
29898,
1311,
29889,
3827,
29892,
376,
20001,
10088,
368,
21397,
3730,
4918,
287,
1159,
13,
4706,
736,
2428,
2141,
689,
29918,
3084,
29898,
689,
29892,
334,
5085,
29892,
3579,
19290,
29897,
13,
2
] |
tasks/kaggle/disaster_tweets/bert_finetuing.py | charliemorning/mlws | 0 | 130787 | import os
import argparse
import pandas as pd
from models.tf.nlp.bert.bert_models import BertTrainer
from util.corpus import train_test_split_from_data_frame
from util.label import encode_labels
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='train cls models on bert.')
parser.add_argument('bert_home', type=str)
parser.add_argument('data_home', type=str)
parser.add_argument('--batch-size', type=int, default=4, metavar='N', help='input batch size for training (default: 4)')
args = parser.parse_args()
bert_home = args.bert_home
data_home = args.data_home
df = pd.read_csv(os.path.join(data_home, "train.csv"))
df["target"] = df["target"].apply(lambda x: str(x))
train_df, dev_df = train_test_split_from_data_frame(df)
# test_pd = pd.read_csv(os.path.join(data_home, "test.csv"))
# xs_test, ys_test = dev_df["text"], dev_df["target"].apply(lambda x: str(x))
import tensorflow as tf
tf.logging.set_verbosity(tf.logging.ERROR)
bert = BertTrainer(
os.path.join(bert_home, 'bert_config.json'),
os.path.join(bert_home, 'vocab.txt'),
os.path.join(bert_home, 'bert_model.ckpt'),
data_home,
os.path.join(data_home, 'output'),
BertTrainer.DataFrameInput(
BertTrainer.DataFrameSingleTextInputProcessor("id", "text", "target"), encode_labels(df["target"]), train_df, dev_df),
train_batch_size=1, num_train_epochs=1, max_seq_length=16
)
bert.train()
print("done") | [
1,
1053,
2897,
13,
5215,
1852,
5510,
13,
13,
5215,
11701,
408,
10518,
13,
13,
3166,
4733,
29889,
13264,
29889,
12938,
29886,
29889,
2151,
29889,
2151,
29918,
9794,
1053,
16662,
5323,
4983,
13,
3166,
3667,
29889,
2616,
13364,
1053,
7945,
29918,
1688,
29918,
5451,
29918,
3166,
29918,
1272,
29918,
2557,
13,
3166,
3667,
29889,
1643,
1053,
19750,
29918,
21134,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
2433,
14968,
1067,
29879,
4733,
373,
289,
814,
29889,
1495,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
2151,
29918,
5184,
742,
1134,
29922,
710,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
1272,
29918,
5184,
742,
1134,
29922,
710,
29897,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
16175,
29899,
2311,
742,
1134,
29922,
524,
29892,
2322,
29922,
29946,
29892,
1539,
485,
279,
2433,
29940,
742,
1371,
2433,
2080,
9853,
2159,
363,
6694,
313,
4381,
29901,
29871,
29946,
29897,
1495,
13,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
1678,
289,
814,
29918,
5184,
353,
6389,
29889,
2151,
29918,
5184,
13,
1678,
848,
29918,
5184,
353,
6389,
29889,
1272,
29918,
5184,
13,
13,
1678,
4489,
353,
10518,
29889,
949,
29918,
7638,
29898,
359,
29889,
2084,
29889,
7122,
29898,
1272,
29918,
5184,
29892,
376,
14968,
29889,
7638,
5783,
13,
1678,
4489,
3366,
5182,
3108,
353,
4489,
3366,
5182,
16862,
7302,
29898,
2892,
921,
29901,
851,
29898,
29916,
876,
13,
1678,
7945,
29918,
2176,
29892,
2906,
29918,
2176,
353,
7945,
29918,
1688,
29918,
5451,
29918,
3166,
29918,
1272,
29918,
2557,
29898,
2176,
29897,
13,
13,
1678,
396,
1243,
29918,
15926,
353,
10518,
29889,
949,
29918,
7638,
29898,
359,
29889,
2084,
29889,
7122,
29898,
1272,
29918,
5184,
29892,
376,
1688,
29889,
7638,
5783,
13,
1678,
396,
14492,
29918,
1688,
29892,
343,
29879,
29918,
1688,
353,
2906,
29918,
2176,
3366,
726,
12436,
2906,
29918,
2176,
3366,
5182,
16862,
7302,
29898,
2892,
921,
29901,
851,
29898,
29916,
876,
13,
13,
1678,
1053,
26110,
408,
15886,
13,
1678,
15886,
29889,
21027,
29889,
842,
29918,
18248,
359,
537,
29898,
13264,
29889,
21027,
29889,
11432,
29897,
13,
13,
1678,
289,
814,
353,
16662,
5323,
4983,
29898,
13,
4706,
2897,
29889,
2084,
29889,
7122,
29898,
2151,
29918,
5184,
29892,
525,
2151,
29918,
2917,
29889,
3126,
5477,
13,
4706,
2897,
29889,
2084,
29889,
7122,
29898,
2151,
29918,
5184,
29892,
525,
29894,
542,
370,
29889,
3945,
5477,
13,
4706,
2897,
29889,
2084,
29889,
7122,
29898,
2151,
29918,
5184,
29892,
525,
2151,
29918,
4299,
29889,
384,
415,
5477,
13,
4706,
848,
29918,
5184,
29892,
13,
4706,
2897,
29889,
2084,
29889,
7122,
29898,
1272,
29918,
5184,
29892,
525,
4905,
5477,
13,
4706,
16662,
5323,
4983,
29889,
17271,
4290,
29898,
13,
9651,
16662,
5323,
4983,
29889,
17271,
15771,
1626,
4290,
18689,
703,
333,
613,
376,
726,
613,
376,
5182,
4968,
19750,
29918,
21134,
29898,
2176,
3366,
5182,
3108,
511,
7945,
29918,
2176,
29892,
2906,
29918,
2176,
511,
13,
4706,
7945,
29918,
16175,
29918,
2311,
29922,
29896,
29892,
954,
29918,
14968,
29918,
1022,
2878,
29879,
29922,
29896,
29892,
4236,
29918,
11762,
29918,
2848,
29922,
29896,
29953,
13,
1678,
1723,
13,
13,
1678,
289,
814,
29889,
14968,
580,
13,
1678,
1596,
703,
15091,
1159,
2
] |
unit_tests/expressions/Subquery.py | jaredlunde/cargo-orm | 3 | 102496 | #!/usr/bin/python3 -S
# -*- coding: utf-8 -*-
"""
`Unit tests for cargo.expressions.Subquery`
--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--
2016 <NAME> © The MIT License (MIT)
http://github.com/jaredlunde
"""
import unittest
from vital.security import randkey
from cargo import *
def new_field(type='varchar'):
field = getattr(fields, type.title())(value=1234)
keyspace = '<KEY>'
name = randkey(24, keyspace)
table = randkey(24, keyspace)
field.field_name = name
field.table = table
return field
def new_expression(cast=int):
if cast == bytes:
cast = lambda x: psycopg2.Binary(str(x).encode())
return Expression(new_field(), '=', cast(12345))
def new_function(cast=int):
if cast == bytes:
cast = lambda x: psycopg2.Binary(str(x).encode())
return Function('some_func', cast(12345))
class TestSubquery(unittest.TestCase):
def test___init__(self):
q = Insert(ORM())
base = Subquery(q)
self.assertIs(base.subquery, q)
self.assertIn(q.query, base.query)
self.assertIs(base.params, q.params)
def test_alias(self):
q = Insert(ORM())
base = Subquery(q, alias='subalias')
self.assertEqual(base.alias, 'subalias')
self.assertTrue(base.query.endswith('subalias'))
def test_exists(self):
q = Select(ORM())
base = Subquery(q)
func = base.exists()
self.assertIsInstance(func, Function)
self.assertEqual(func.func, 'EXISTS')
self.assertTupleEqual(func.args, tuple([base,]))
func = base.exists(alias='foo')
self.assertIsInstance(func, Function)
self.assertEqual(func.func, 'EXISTS')
self.assertTupleEqual(func.args, tuple([base,]))
self.assertEqual(func.alias, 'foo')
def test_not_exists(self):
q = Select(ORM())
base = Subquery(q)
func = base.not_exists()
self.assertIsInstance(func, Function)
self.assertEqual(func.func, 'NOT EXISTS')
self.assertTupleEqual(func.args, tuple([base,]))
func = base.not_exists(alias='foo')
self.assertIsInstance(func, Function)
self.assertEqual(func.func, 'NOT EXISTS')
self.assertTupleEqual(func.args, tuple([base,]))
self.assertEqual(func.alias, 'foo')
if __name__ == '__main__':
# Unit test
unittest.main()
| [
1,
18787,
4855,
29914,
2109,
29914,
4691,
29941,
448,
29903,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
1678,
421,
8325,
6987,
363,
17040,
29889,
17073,
1080,
29889,
4035,
1972,
29952,
13,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
30064,
489,
13,
1678,
29906,
29900,
29896,
29953,
529,
5813,
29958,
29871,
30211,
450,
341,
1806,
19245,
313,
26349,
29897,
13,
259,
1732,
597,
3292,
29889,
510,
29914,
29926,
1965,
29880,
9140,
13,
15945,
29908,
13,
5215,
443,
27958,
13,
13,
3166,
27131,
29889,
8926,
1053,
20088,
1989,
13,
3166,
17040,
1053,
334,
13,
13,
13,
1753,
716,
29918,
2671,
29898,
1853,
2433,
22408,
29374,
13,
1678,
1746,
353,
679,
5552,
29898,
9621,
29892,
1134,
29889,
3257,
3101,
29898,
1767,
29922,
29896,
29906,
29941,
29946,
29897,
13,
1678,
6611,
3535,
353,
12801,
10818,
16299,
13,
1678,
1024,
353,
20088,
1989,
29898,
29906,
29946,
29892,
6611,
3535,
29897,
13,
1678,
1591,
353,
20088,
1989,
29898,
29906,
29946,
29892,
6611,
3535,
29897,
13,
1678,
1746,
29889,
2671,
29918,
978,
353,
1024,
13,
1678,
1746,
29889,
2371,
353,
1591,
13,
1678,
736,
1746,
13,
13,
13,
1753,
716,
29918,
17471,
29898,
4384,
29922,
524,
1125,
13,
1678,
565,
4320,
1275,
6262,
29901,
13,
4706,
4320,
353,
14013,
921,
29901,
6529,
29891,
9708,
29887,
29906,
29889,
25196,
29898,
710,
29898,
29916,
467,
12508,
3101,
13,
1678,
736,
29871,
21444,
29898,
1482,
29918,
2671,
3285,
525,
29922,
742,
4320,
29898,
29896,
29906,
29941,
29946,
29945,
876,
13,
13,
13,
1753,
716,
29918,
2220,
29898,
4384,
29922,
524,
1125,
13,
1678,
565,
4320,
1275,
6262,
29901,
13,
4706,
4320,
353,
14013,
921,
29901,
6529,
29891,
9708,
29887,
29906,
29889,
25196,
29898,
710,
29898,
29916,
467,
12508,
3101,
13,
1678,
736,
29871,
6680,
877,
5372,
29918,
9891,
742,
4320,
29898,
29896,
29906,
29941,
29946,
29945,
876,
13,
13,
13,
1990,
4321,
4035,
1972,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
13,
1678,
822,
1243,
22359,
2344,
12035,
1311,
1125,
13,
4706,
3855,
353,
24505,
29898,
12054,
3101,
13,
4706,
2967,
353,
3323,
1972,
29898,
29939,
29897,
13,
4706,
1583,
29889,
9294,
3624,
29898,
3188,
29889,
1491,
1972,
29892,
3855,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
29939,
29889,
1972,
29892,
2967,
29889,
1972,
29897,
13,
4706,
1583,
29889,
9294,
3624,
29898,
3188,
29889,
7529,
29892,
3855,
29889,
7529,
29897,
13,
13,
1678,
822,
1243,
29918,
19973,
29898,
1311,
1125,
13,
4706,
3855,
353,
24505,
29898,
12054,
3101,
13,
4706,
2967,
353,
3323,
1972,
29898,
29939,
29892,
13995,
2433,
1491,
19973,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
3188,
29889,
19973,
29892,
525,
1491,
19973,
1495,
13,
4706,
1583,
29889,
9294,
5574,
29898,
3188,
29889,
1972,
29889,
1975,
2541,
877,
1491,
19973,
8785,
13,
13,
1678,
822,
1243,
29918,
9933,
29898,
1311,
1125,
13,
4706,
3855,
353,
7605,
29898,
12054,
3101,
13,
4706,
2967,
353,
3323,
1972,
29898,
29939,
29897,
13,
4706,
3653,
353,
2967,
29889,
9933,
580,
13,
4706,
1583,
29889,
9294,
3624,
4998,
29898,
9891,
29892,
6680,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
9891,
29889,
9891,
29892,
525,
5746,
24306,
1495,
13,
4706,
1583,
29889,
9294,
23215,
552,
9843,
29898,
9891,
29889,
5085,
29892,
18761,
4197,
3188,
29892,
12622,
13,
4706,
3653,
353,
2967,
29889,
9933,
29898,
19973,
2433,
5431,
1495,
13,
4706,
1583,
29889,
9294,
3624,
4998,
29898,
9891,
29892,
6680,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
9891,
29889,
9891,
29892,
525,
5746,
24306,
1495,
13,
4706,
1583,
29889,
9294,
23215,
552,
9843,
29898,
9891,
29889,
5085,
29892,
18761,
4197,
3188,
29892,
12622,
13,
4706,
1583,
29889,
9294,
9843,
29898,
9891,
29889,
19973,
29892,
525,
5431,
1495,
13,
13,
1678,
822,
1243,
29918,
1333,
29918,
9933,
29898,
1311,
1125,
13,
4706,
3855,
353,
7605,
29898,
12054,
3101,
13,
4706,
2967,
353,
3323,
1972,
29898,
29939,
29897,
13,
4706,
3653,
353,
2967,
29889,
1333,
29918,
9933,
580,
13,
4706,
1583,
29889,
9294,
3624,
4998,
29898,
9891,
29892,
6680,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
9891,
29889,
9891,
29892,
525,
12256,
28731,
1495,
13,
4706,
1583,
29889,
9294,
23215,
552,
9843,
29898,
9891,
29889,
5085,
29892,
18761,
4197,
3188,
29892,
12622,
13,
4706,
3653,
353,
2967,
29889,
1333,
29918,
9933,
29898,
19973,
2433,
5431,
1495,
13,
4706,
1583,
29889,
9294,
3624,
4998,
29898,
9891,
29892,
6680,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
9891,
29889,
9891,
29892,
525,
12256,
28731,
1495,
13,
4706,
1583,
29889,
9294,
23215,
552,
9843,
29898,
9891,
29889,
5085,
29892,
18761,
4197,
3188,
29892,
12622,
13,
4706,
1583,
29889,
9294,
9843,
29898,
9891,
29889,
19973,
29892,
525,
5431,
1495,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
396,
13223,
1243,
13,
1678,
443,
27958,
29889,
3396,
580,
13,
2
] |
general_maths/sph_harms/azi_deriv.py | chrisjdavie/ws_cross_project | 0 | 133552 | '''
Examining the gradients of the azimuthally symmetric legendre polynomial.
Created on 1 May 2013
@author: chris
'''
def main():
l = 4
a = max_n_minimas(l)
print a
def leg_poly(l):
m = 0
from pert_sphere import pert_sphere
rs, thetas, _ = pert_sphere(l,m)
rs = rs[:,0]
thetas = thetas[:,0]
return rs, thetas
def dr_dtheta(l):
rs, thetas = leg_poly(l)
dr_dthetas = (rs[:-1] - rs[1:])/(thetas[:-1] - thetas[1:])
thetas_d = (thetas[:-1] + thetas[1:])/2.0
return dr_dthetas, thetas_d
def max_n_minimas(l):
dr_dthetas, thetas_d = dr_dtheta(l)
num_m2 = dr_dthetas[0]
num_m1 = dr_dthetas[0]
maxima_i = []
minima_i = []
for i, num in enumerate(dr_dthetas):
if num_m1 > num_m2 and num_m1 > num:
maxima_i.append(i)
if num_m1 < num_m2 and num_m1 < num:
minima_i.append(i)
num_m2 = num_m1
num_m1 = num
return thetas_d[maxima_i], thetas_d[minima_i]
if __name__ == '__main__':
main() | [
1,
14550,
13,
1252,
314,
2827,
278,
4656,
10070,
310,
278,
2698,
326,
2806,
635,
18348,
2814,
9030,
10159,
29889,
13,
13,
20399,
373,
29871,
29896,
2610,
29871,
29906,
29900,
29896,
29941,
13,
13,
29992,
8921,
29901,
521,
3780,
13,
12008,
13,
1753,
1667,
7295,
13,
1678,
301,
353,
29871,
29946,
13,
1678,
263,
353,
4236,
29918,
29876,
29918,
1195,
25268,
29898,
29880,
29897,
13,
1678,
1596,
263,
13,
268,
13,
1753,
2814,
29918,
22678,
29898,
29880,
1125,
13,
1678,
286,
353,
29871,
29900,
13,
1678,
515,
13499,
29918,
29879,
9085,
1053,
13499,
29918,
29879,
9085,
13,
1678,
20371,
29892,
278,
29873,
294,
29892,
903,
353,
13499,
29918,
29879,
9085,
29898,
29880,
29892,
29885,
29897,
13,
268,
13,
1678,
20371,
353,
20371,
7503,
29892,
29900,
29962,
13,
1678,
278,
29873,
294,
353,
278,
29873,
294,
7503,
29892,
29900,
29962,
13,
1678,
736,
20371,
29892,
278,
29873,
294,
13,
268,
13,
1753,
4192,
29918,
29881,
3416,
29898,
29880,
1125,
13,
1678,
20371,
29892,
278,
29873,
294,
353,
2814,
29918,
22678,
29898,
29880,
29897,
13,
268,
13,
1678,
4192,
29918,
29881,
386,
300,
294,
353,
313,
2288,
7503,
29899,
29896,
29962,
448,
20371,
29961,
29896,
29901,
2314,
14571,
386,
300,
294,
7503,
29899,
29896,
29962,
448,
278,
29873,
294,
29961,
29896,
29901,
2314,
13,
1678,
278,
29873,
294,
29918,
29881,
353,
313,
386,
300,
294,
7503,
29899,
29896,
29962,
718,
278,
29873,
294,
29961,
29896,
29901,
2314,
29914,
29906,
29889,
29900,
268,
13,
1678,
736,
4192,
29918,
29881,
386,
300,
294,
29892,
278,
29873,
294,
29918,
29881,
13,
268,
13,
1753,
4236,
29918,
29876,
29918,
1195,
25268,
29898,
29880,
1125,
13,
1678,
4192,
29918,
29881,
386,
300,
294,
29892,
278,
29873,
294,
29918,
29881,
353,
4192,
29918,
29881,
3416,
29898,
29880,
29897,
13,
1678,
954,
29918,
29885,
29906,
353,
4192,
29918,
29881,
386,
300,
294,
29961,
29900,
29962,
13,
1678,
954,
29918,
29885,
29896,
353,
4192,
29918,
29881,
386,
300,
294,
29961,
29900,
29962,
13,
268,
13,
1678,
5256,
29874,
29918,
29875,
353,
5159,
13,
1678,
1375,
2946,
29918,
29875,
353,
5159,
13,
1678,
363,
474,
29892,
954,
297,
26985,
29898,
7707,
29918,
29881,
386,
300,
294,
1125,
13,
4706,
565,
954,
29918,
29885,
29896,
1405,
954,
29918,
29885,
29906,
322,
954,
29918,
29885,
29896,
1405,
954,
29901,
13,
9651,
5256,
29874,
29918,
29875,
29889,
4397,
29898,
29875,
29897,
13,
4706,
565,
954,
29918,
29885,
29896,
529,
954,
29918,
29885,
29906,
322,
954,
29918,
29885,
29896,
529,
954,
29901,
13,
9651,
1375,
2946,
29918,
29875,
29889,
4397,
29898,
29875,
29897,
13,
308,
13,
4706,
954,
29918,
29885,
29906,
353,
954,
29918,
29885,
29896,
13,
4706,
954,
29918,
29885,
29896,
353,
954,
13,
308,
13,
1678,
736,
278,
29873,
294,
29918,
29881,
29961,
27525,
29874,
29918,
29875,
1402,
278,
29873,
294,
29918,
29881,
29961,
1195,
2946,
29918,
29875,
29962,
13,
268,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
2
] |
custom_components/shinhugas_fee/const.py | tsunglung/ShinhuGasFee | 1 | 1607297 | """Constants of the ShinHu Gas Fee component."""
DEFAULT_NAME = "ShinHu Gas Fee"
DEFAULT_NAME_UPLOAD_USAGE = "ShinHu Gas Upload Usage"
DOMAIN = "shinhugas_fee"
DOMAINS = [ "sensor", "binary_sensor" ]
DATA_KEY = "sensor.shinhugas_fee"
DATA_KEY_BINARY = "binary_sensor.shinhu_gas_upload_usage"
ATTR_BILLING_MONTH = "billing_month"
ATTR_CURRENT_GASMETER = "current_gasmeter"
ATTR_PAYMENT = "gas_payment"
ATTR_GAS_CONSUMPTION = "gas_consumption"
ATTR_EXTRA_GAS = "extra_gas"
ATTR_BILL_AMOUNT = "billing_amount"
ATTR_HTTPS_RESULT = "https_result"
ATTR_UPLOAD_DATETIME = "upload_datetime"
ATTR_USAGE = "usage"
ATTR_LIST = [
ATTR_BILLING_MONTH,
ATTR_CURRENT_GASMETER,
ATTR_PAYMENT,
ATTR_GAS_CONSUMPTION,
ATTR_EXTRA_GAS,
ATTR_BILL_AMOUNT,
ATTR_HTTPS_RESULT
]
CONF_GASID = "gasid"
CONF_COOKIE = "cookie"
# 5308 characters
CONF_VIEWSTATE = "viewstate"
# 668 characters
CONF_VIEWSTATEGENERATOR = "viewstategenerator"
# 636 characters
CONF_VIEWSTATE4UPLOAD = "viewstate4upload"
ATTRIBUTION = "Powered by ShinHu Gas Data"
MANUFACTURER = "ShinHu Gas"
HA_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36 OPR/38.0.2220.41"
BASE_URL = 'http://6172.16.31.10/shinhuwww/member_main.aspx'
REQUEST_TIMEOUT = 10 # seconds
| [
1,
9995,
26570,
310,
278,
27948,
29950,
29884,
19141,
383,
3905,
4163,
1213,
15945,
13,
13,
23397,
29918,
5813,
353,
376,
2713,
262,
29950,
29884,
19141,
383,
3905,
29908,
13,
23397,
29918,
5813,
29918,
4897,
29428,
29918,
3308,
10461,
353,
376,
2713,
262,
29950,
29884,
19141,
5020,
1359,
10783,
482,
29908,
13,
3970,
29032,
353,
376,
845,
262,
29882,
688,
294,
29918,
1725,
29872,
29908,
13,
3970,
29032,
29903,
353,
518,
376,
29879,
6073,
613,
376,
19541,
29918,
29879,
6073,
29908,
4514,
13,
14573,
29918,
10818,
353,
376,
29879,
6073,
29889,
845,
262,
29882,
688,
294,
29918,
1725,
29872,
29908,
13,
14573,
29918,
10818,
29918,
29933,
1177,
19926,
353,
376,
19541,
29918,
29879,
6073,
29889,
845,
262,
6905,
29918,
25496,
29918,
9009,
29918,
21125,
29908,
13,
13,
1299,
5659,
29918,
12809,
2208,
4214,
29918,
22877,
4690,
353,
376,
29890,
8873,
29918,
10874,
29908,
13,
1299,
5659,
29918,
22484,
29450,
29918,
29954,
3289,
2303,
4945,
353,
376,
3784,
29918,
29887,
11625,
1308,
29908,
13,
1299,
5659,
29918,
7228,
29979,
13780,
353,
376,
25496,
29918,
27825,
29908,
13,
1299,
5659,
29918,
29954,
3289,
29918,
6007,
14605,
3580,
29911,
2725,
353,
376,
25496,
29918,
25978,
683,
29908,
13,
1299,
5659,
29918,
12194,
4717,
29918,
29954,
3289,
353,
376,
17833,
29918,
25496,
29908,
13,
1299,
5659,
29918,
12809,
2208,
29918,
5194,
29949,
10356,
353,
376,
29890,
8873,
29918,
14506,
29908,
13,
1299,
5659,
29918,
10493,
29903,
29918,
15989,
8647,
353,
376,
991,
29918,
2914,
29908,
13,
1299,
5659,
29918,
4897,
29428,
29918,
25832,
2544,
8890,
353,
376,
9009,
29918,
12673,
29908,
13,
1299,
5659,
29918,
3308,
10461,
353,
376,
21125,
29908,
13,
1299,
5659,
29918,
24360,
353,
518,
13,
1678,
15531,
5659,
29918,
12809,
2208,
4214,
29918,
22877,
4690,
29892,
13,
1678,
15531,
5659,
29918,
22484,
29450,
29918,
29954,
3289,
2303,
4945,
29892,
13,
1678,
15531,
5659,
29918,
7228,
29979,
13780,
29892,
13,
1678,
15531,
5659,
29918,
29954,
3289,
29918,
6007,
14605,
3580,
29911,
2725,
29892,
13,
1678,
15531,
5659,
29918,
12194,
4717,
29918,
29954,
3289,
29892,
13,
1678,
15531,
5659,
29918,
12809,
2208,
29918,
5194,
29949,
10356,
29892,
13,
1678,
15531,
5659,
29918,
10493,
29903,
29918,
15989,
8647,
13,
29962,
13,
13,
6007,
29943,
29918,
29954,
3289,
1367,
353,
376,
25496,
333,
29908,
13,
6007,
29943,
29918,
3217,
8949,
8673,
353,
376,
21509,
29908,
13,
29937,
29871,
29945,
29941,
29900,
29947,
4890,
13,
6007,
29943,
29918,
29963,
8673,
29956,
19713,
353,
376,
1493,
3859,
29908,
13,
29937,
29871,
29953,
29953,
29947,
4890,
13,
6007,
29943,
29918,
29963,
8673,
29956,
19713,
24647,
1001,
1299,
1955,
353,
376,
1493,
303,
1845,
759,
1061,
29908,
13,
29937,
29871,
29953,
29941,
29953,
4890,
13,
6007,
29943,
29918,
29963,
8673,
29956,
19713,
29946,
4897,
29428,
353,
376,
1493,
3859,
29946,
9009,
29908,
13,
1299,
29911,
3960,
29933,
2692,
2725,
353,
376,
21472,
287,
491,
27948,
29950,
29884,
19141,
3630,
29908,
13,
1529,
11601,
4519,
1783,
4574,
1001,
353,
376,
2713,
262,
29950,
29884,
19141,
29908,
13,
13,
15715,
29918,
11889,
29918,
10051,
3919,
353,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
7685,
405,
29911,
29871,
29896,
29900,
29889,
29900,
29936,
8892,
29953,
29946,
29936,
921,
29953,
29946,
29897,
12113,
3609,
13117,
29914,
29945,
29941,
29955,
29889,
29941,
29953,
313,
29968,
7020,
29892,
763,
1879,
27604,
29897,
10228,
29914,
29929,
29900,
29889,
29900,
29889,
29946,
29946,
29941,
29900,
29889,
29955,
29906,
24544,
29914,
29945,
29941,
29955,
29889,
29941,
29953,
6418,
29934,
29914,
29941,
29947,
29889,
29900,
29889,
29906,
29906,
29906,
29900,
29889,
29946,
29896,
29908,
13,
25416,
29918,
4219,
353,
525,
1124,
597,
29953,
29896,
29955,
29906,
29889,
29896,
29953,
29889,
29941,
29896,
29889,
29896,
29900,
29914,
845,
262,
6905,
1636,
29914,
14242,
29918,
3396,
29889,
6307,
29915,
13,
13,
16244,
29918,
15307,
12015,
353,
29871,
29896,
29900,
29871,
396,
6923,
13,
2
] |
molecules/ml/callbacks/loss_callback.py | braceal/molecules | 4 | 74526 | <reponame>braceal/molecules<filename>molecules/ml/callbacks/loss_callback.py
import json
import wandb
import numpy as np
from .callback import Callback
class LossCallback(Callback):
def __init__(self, path,
interval=1,
wandb_config=None,
mpi_comm=None):
"""
Parameters
----------
path : str
path to save loss history to
interval : int
Plots every interval epochs, default is once per epoch.
wandb_config : wandb configuration file
mpi_comm : mpi communicator for distributed training
"""
super().__init__(interval, mpi_comm)
self.path = path
self.wandb_config = wandb_config
def on_train_begin(self, logs):
self.epochs = []
self.train_losses = {}
self.valid_losses = {}
def on_epoch_end(self, epoch, logs):
# Only store loss every self.interval epochs
if epoch % self.interval != 0:
return
# epochs
self.epochs.append(epoch)
# train_losses
for lossname in [x for x in logs if x.startswith("train_loss")]:
# reduce losses
if self.comm is not None:
lossarr = np.array(logs[lossname], dtype = np.float32)
logs[lossname] = np.asscalar(self.comm.allreduce(lossarr))
logs[lossname] /= float(self.comm.Get_size())
# manual logging
if lossname in self.train_losses:
self.train_losses[lossname].append(logs[lossname])
else:
self.train_losses[lossname] = [logs[lossname]]
# wandb
if self.wandb_config is not None:
wandb.log({lossname: logs[lossname]}, step = logs["global_step"])
# validation losses
for lossname in [x for x in logs if x.startswith("valid_loss")]:
# reduce losses
if self.comm is not None:
lossarr = np.array(logs[lossname], dtype = np.float32)
logs[lossname] = np.asscalar(self.comm.allreduce(lossarr))
logs[lossname] /= float(self.comm.Get_size())
# manual logging
if lossname in self.valid_losses:
self.valid_losses[lossname].append(logs[lossname])
else:
self.valid_losses[lossname] = [logs[lossname]]
# wandb
if self.wandb_config is not None:
wandb.log({lossname: logs[lossname]}, step = logs["global_step"])
# save to json for manual logging
if self.is_eval_node:
self.save(self.path)
def save(self, path):
"""
Save train and validation loss from the end of each epoch.
Parameters
----------
path: str
Path to save train and validation loss history
"""
# Happens when loading from a checkpoint
if self.epochs[0] != 1:
with open(path) as f:
data = json.load(f)
if data:
# Prepend data from checkpointed model to the start of the
# current logs. This avoids needing to load the data every
# time the logs are saved.
# epochs
data['epochs'].extend(self.epochs)
self.epochs = data['epochs']
# train losses
for lossname in [x for x in data if x.startswith("train_loss")]:
data[lossname].extend(self.train_losses[lossname])
self.train_losses[lossname] = data[lossname]
# valid losses
for lossname in [x for x in data if x.startswith("valid_loss")]:
data[lossname].extend(self.valid_losses[lossname])
self.valid_losses[lossname] = data[lossname]
# Write history to disk
with open(path, 'w') as f:
# construct json dump file
jsondict = {}
for lossname in [x for x in self.train_losses if x.startswith("train_loss")]:
jsondict[lossname] = self.train_losses[lossname]
for lossname in [x for x in self.valid_losses if x.startswith("valid_loss")]:
jsondict[lossname] = self.valid_losses[lossname]
jsondict['epochs'] = self.epochs
json.dump(jsondict, f)
| [
1,
529,
276,
1112,
420,
29958,
13842,
284,
29914,
29885,
1772,
21337,
29966,
9507,
29958,
29885,
1772,
21337,
29914,
828,
29914,
14035,
29879,
29914,
6758,
29918,
14035,
29889,
2272,
13,
5215,
4390,
13,
5215,
24706,
29890,
13,
5215,
12655,
408,
7442,
13,
3166,
869,
14035,
1053,
8251,
1627,
13,
13,
1990,
365,
2209,
10717,
29898,
10717,
1125,
13,
268,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2224,
29892,
13,
462,
7292,
29922,
29896,
29892,
13,
462,
24706,
29890,
29918,
2917,
29922,
8516,
29892,
13,
462,
286,
1631,
29918,
2055,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
2224,
584,
851,
13,
9651,
2224,
304,
4078,
6410,
4955,
304,
13,
4706,
7292,
584,
938,
13,
9651,
1858,
1862,
1432,
7292,
21502,
12168,
29892,
2322,
338,
2748,
639,
21502,
305,
29889,
13,
4706,
24706,
29890,
29918,
2917,
584,
24706,
29890,
5285,
934,
13,
4706,
286,
1631,
29918,
2055,
584,
286,
1631,
7212,
1061,
363,
13235,
6694,
13,
4706,
9995,
13,
4706,
2428,
2141,
1649,
2344,
12035,
19207,
29892,
286,
1631,
29918,
2055,
29897,
13,
13,
4706,
1583,
29889,
2084,
353,
2224,
13,
4706,
1583,
29889,
18622,
29890,
29918,
2917,
353,
24706,
29890,
29918,
2917,
13,
308,
13,
1678,
822,
373,
29918,
14968,
29918,
463,
29898,
1311,
29892,
10748,
1125,
13,
4706,
1583,
29889,
1022,
2878,
29879,
353,
5159,
13,
4706,
1583,
29889,
14968,
29918,
6758,
267,
353,
6571,
13,
4706,
1583,
29889,
3084,
29918,
6758,
267,
353,
6571,
13,
13,
308,
13,
1678,
822,
373,
29918,
1022,
2878,
29918,
355,
29898,
1311,
29892,
21502,
305,
29892,
10748,
1125,
13,
4706,
396,
9333,
3787,
6410,
1432,
1583,
29889,
19207,
21502,
12168,
13,
4706,
565,
21502,
305,
1273,
1583,
29889,
19207,
2804,
29871,
29900,
29901,
13,
9651,
736,
13,
13,
4706,
396,
21502,
12168,
13,
4706,
1583,
29889,
1022,
2878,
29879,
29889,
4397,
29898,
1022,
2878,
29897,
13,
268,
13,
4706,
396,
7945,
29918,
6758,
267,
13,
4706,
363,
6410,
978,
297,
518,
29916,
363,
921,
297,
10748,
565,
921,
29889,
27382,
2541,
703,
14968,
29918,
6758,
1159,
5387,
13,
13,
9651,
396,
10032,
28495,
13,
9651,
565,
1583,
29889,
2055,
338,
451,
6213,
29901,
13,
18884,
6410,
2749,
353,
7442,
29889,
2378,
29898,
20756,
29961,
6758,
978,
1402,
26688,
353,
7442,
29889,
7411,
29941,
29906,
29897,
13,
18884,
10748,
29961,
6758,
978,
29962,
353,
7442,
29889,
465,
1052,
279,
29898,
1311,
29889,
2055,
29889,
497,
17469,
29898,
6758,
2749,
876,
13,
18884,
10748,
29961,
6758,
978,
29962,
847,
29922,
5785,
29898,
1311,
29889,
2055,
29889,
2577,
29918,
2311,
3101,
13,
632,
13,
9651,
396,
12219,
12183,
13,
9651,
565,
6410,
978,
297,
1583,
29889,
14968,
29918,
6758,
267,
29901,
13,
18884,
1583,
29889,
14968,
29918,
6758,
267,
29961,
6758,
978,
1822,
4397,
29898,
20756,
29961,
6758,
978,
2314,
13,
9651,
1683,
29901,
13,
18884,
1583,
29889,
14968,
29918,
6758,
267,
29961,
6758,
978,
29962,
353,
518,
20756,
29961,
6758,
978,
5262,
13,
13,
9651,
396,
24706,
29890,
13,
9651,
565,
1583,
29889,
18622,
29890,
29918,
2917,
338,
451,
6213,
29901,
13,
18884,
24706,
29890,
29889,
1188,
3319,
6758,
978,
29901,
10748,
29961,
6758,
978,
29962,
1118,
4331,
353,
10748,
3366,
10945,
29918,
10568,
20068,
13,
462,
268,
13,
13,
4706,
396,
8845,
28495,
13,
4706,
363,
6410,
978,
297,
518,
29916,
363,
921,
297,
10748,
565,
921,
29889,
27382,
2541,
703,
3084,
29918,
6758,
1159,
5387,
13,
13,
9651,
396,
10032,
28495,
13,
9651,
565,
1583,
29889,
2055,
338,
451,
6213,
29901,
13,
18884,
6410,
2749,
353,
7442,
29889,
2378,
29898,
20756,
29961,
6758,
978,
1402,
26688,
353,
7442,
29889,
7411,
29941,
29906,
29897,
13,
18884,
10748,
29961,
6758,
978,
29962,
353,
7442,
29889,
465,
1052,
279,
29898,
1311,
29889,
2055,
29889,
497,
17469,
29898,
6758,
2749,
876,
13,
18884,
10748,
29961,
6758,
978,
29962,
847,
29922,
5785,
29898,
1311,
29889,
2055,
29889,
2577,
29918,
2311,
3101,
13,
462,
13,
9651,
396,
12219,
12183,
13,
9651,
565,
6410,
978,
297,
1583,
29889,
3084,
29918,
6758,
267,
29901,
13,
18884,
1583,
29889,
3084,
29918,
6758,
267,
29961,
6758,
978,
1822,
4397,
29898,
20756,
29961,
6758,
978,
2314,
13,
9651,
1683,
29901,
13,
18884,
1583,
29889,
3084,
29918,
6758,
267,
29961,
6758,
978,
29962,
353,
518,
20756,
29961,
6758,
978,
5262,
13,
13,
9651,
396,
24706,
29890,
13,
9651,
565,
1583,
29889,
18622,
29890,
29918,
2917,
338,
451,
6213,
29901,
13,
18884,
24706,
29890,
29889,
1188,
3319,
6758,
978,
29901,
10748,
29961,
6758,
978,
29962,
1118,
4331,
353,
10748,
3366,
10945,
29918,
10568,
20068,
13,
13,
462,
13,
4706,
396,
4078,
304,
4390,
363,
12219,
12183,
13,
4706,
565,
1583,
29889,
275,
29918,
14513,
29918,
3177,
29901,
13,
9651,
1583,
29889,
7620,
29898,
1311,
29889,
2084,
29897,
13,
13,
13,
1678,
822,
4078,
29898,
1311,
29892,
2224,
1125,
13,
4706,
9995,
13,
4706,
16913,
7945,
322,
8845,
6410,
515,
278,
1095,
310,
1269,
21502,
305,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
2224,
29901,
851,
13,
9651,
10802,
304,
4078,
7945,
322,
8845,
6410,
4955,
13,
4706,
9995,
13,
13,
4706,
396,
379,
932,
575,
746,
8363,
515,
263,
1423,
3149,
13,
4706,
565,
1583,
29889,
1022,
2878,
29879,
29961,
29900,
29962,
2804,
29871,
29896,
29901,
13,
9651,
411,
1722,
29898,
2084,
29897,
408,
285,
29901,
13,
18884,
848,
353,
4390,
29889,
1359,
29898,
29888,
29897,
13,
18884,
565,
848,
29901,
13,
462,
1678,
396,
349,
3445,
355,
848,
515,
1423,
3149,
287,
1904,
304,
278,
1369,
310,
278,
13,
462,
1678,
396,
1857,
10748,
29889,
910,
4772,
29879,
817,
292,
304,
2254,
278,
848,
1432,
13,
462,
1678,
396,
931,
278,
10748,
526,
7160,
29889,
13,
462,
1678,
396,
21502,
12168,
13,
462,
1678,
848,
1839,
1022,
2878,
29879,
13359,
21843,
29898,
1311,
29889,
1022,
2878,
29879,
29897,
13,
462,
1678,
1583,
29889,
1022,
2878,
29879,
353,
848,
1839,
1022,
2878,
29879,
2033,
13,
13,
462,
1678,
396,
7945,
28495,
13,
462,
1678,
363,
6410,
978,
297,
518,
29916,
363,
921,
297,
848,
565,
921,
29889,
27382,
2541,
703,
14968,
29918,
6758,
1159,
5387,
13,
462,
4706,
848,
29961,
6758,
978,
1822,
21843,
29898,
1311,
29889,
14968,
29918,
6758,
267,
29961,
6758,
978,
2314,
13,
462,
4706,
1583,
29889,
14968,
29918,
6758,
267,
29961,
6758,
978,
29962,
353,
848,
29961,
6758,
978,
29962,
13,
13,
462,
1678,
396,
2854,
28495,
13,
462,
1678,
363,
6410,
978,
297,
518,
29916,
363,
921,
297,
848,
565,
921,
29889,
27382,
2541,
703,
3084,
29918,
6758,
1159,
5387,
13,
462,
4706,
848,
29961,
6758,
978,
1822,
21843,
29898,
1311,
29889,
3084,
29918,
6758,
267,
29961,
6758,
978,
2314,
13,
462,
4706,
1583,
29889,
3084,
29918,
6758,
267,
29961,
6758,
978,
29962,
353,
848,
29961,
6758,
978,
29962,
13,
13,
4706,
396,
14350,
4955,
304,
8086,
13,
4706,
411,
1722,
29898,
2084,
29892,
525,
29893,
1495,
408,
285,
29901,
13,
9651,
396,
3386,
4390,
16766,
934,
13,
9651,
6965,
898,
919,
353,
6571,
13,
9651,
363,
6410,
978,
297,
518,
29916,
363,
921,
297,
1583,
29889,
14968,
29918,
6758,
267,
565,
921,
29889,
27382,
2541,
703,
14968,
29918,
6758,
1159,
5387,
13,
18884,
6965,
898,
919,
29961,
6758,
978,
29962,
353,
1583,
29889,
14968,
29918,
6758,
267,
29961,
6758,
978,
29962,
13,
9651,
363,
6410,
978,
297,
518,
29916,
363,
921,
297,
1583,
29889,
3084,
29918,
6758,
267,
565,
921,
29889,
27382,
2541,
703,
3084,
29918,
6758,
1159,
5387,
13,
18884,
6965,
898,
919,
29961,
6758,
978,
29962,
353,
1583,
29889,
3084,
29918,
6758,
267,
29961,
6758,
978,
29962,
13,
9651,
6965,
898,
919,
1839,
1022,
2878,
29879,
2033,
353,
1583,
29889,
1022,
2878,
29879,
13,
9651,
4390,
29889,
15070,
29898,
1315,
898,
919,
29892,
285,
29897,
13,
2
] |
Json_handling/read_write.py | hbachchas/myexp | 0 | 1608808 | # example from: https://stackabuse.com/reading-and-writing-json-to-a-file-in-python/
import json
data = {}
with open('imagenet_class_index.json') as json_file:
data = json.load(json_file)
with open('imagenet_class_index_indented.json', 'w') as outfile:
json.dump(data, outfile, sort_keys=True, indent=4)
| [
1,
396,
1342,
515,
29901,
2045,
597,
1429,
370,
1509,
29889,
510,
29914,
19715,
29899,
392,
29899,
16554,
29899,
3126,
29899,
517,
29899,
29874,
29899,
1445,
29899,
262,
29899,
4691,
29914,
13,
13,
5215,
4390,
13,
13,
1272,
353,
6571,
13,
2541,
1722,
877,
326,
5370,
300,
29918,
1990,
29918,
2248,
29889,
3126,
1495,
408,
4390,
29918,
1445,
29901,
259,
13,
1678,
848,
353,
4390,
29889,
1359,
29898,
3126,
29918,
1445,
29897,
13,
13,
2541,
1722,
877,
326,
5370,
300,
29918,
1990,
29918,
2248,
29918,
12860,
287,
29889,
3126,
742,
525,
29893,
1495,
408,
714,
1445,
29901,
259,
13,
1678,
4390,
29889,
15070,
29898,
1272,
29892,
714,
1445,
29892,
2656,
29918,
8149,
29922,
5574,
29892,
29536,
29922,
29946,
29897,
13,
2
] |
python_parikshith21/Day15.py | 01coders/50-Days-Of-Code | 0 | 89308 | # -*- coding: utf-8 -*-
"""
Created on Wed May 22 17:54:15 2019
@author: Parikshith.H
"""
L1 = [10,20,30,40]
print(L1)
print(L1[0])
print(L1[3])
L1[3] = 50
print(L1)
#output:
# =============================================================================
# [10, 20, 30, 40]
# 10
# 40
# [10, 20, 30, 50]
# =============================================================================
L2 = [10,2.5,"hello"]
print(L2)
print(L2[2])
L2[1] = "welcome" #lists are mutable
print(L2)
# =============================================================================
# #output:
# [10, 2.5, 'hello']
# hello
# [10, 'welcome', 'hello']
# =============================================================================
l3 = [10,20,'hello',['A','B']] #4 elements int,int,string,list #it has list
#inside a list
print(l3[3])
print(l3[2])
print(l3[3][0])#in list3 acces 4th element inside that 1st element
# =============================================================================
# #output:
# ['A', 'B']
# hello
# A
# =============================================================================
l4 = [[10,20,30],[2,5,6]]
print(l4)
# =============================================================================
# #output:
# [[10, 20, 30], [2, 5, 6]]
# =============================================================================
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
15050,
2610,
29871,
29906,
29906,
29871,
29896,
29955,
29901,
29945,
29946,
29901,
29896,
29945,
29871,
29906,
29900,
29896,
29929,
13,
13,
29992,
8921,
29901,
1459,
638,
845,
389,
29889,
29950,
13,
15945,
29908,
13,
13,
29871,
13,
29931,
29896,
353,
518,
29896,
29900,
29892,
29906,
29900,
29892,
29941,
29900,
29892,
29946,
29900,
29962,
13,
2158,
29898,
29931,
29896,
29897,
13,
2158,
29898,
29931,
29896,
29961,
29900,
2314,
13,
2158,
29898,
29931,
29896,
29961,
29941,
2314,
13,
29931,
29896,
29961,
29941,
29962,
353,
29871,
29945,
29900,
13,
2158,
29898,
29931,
29896,
29897,
13,
29937,
4905,
29901,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
29937,
518,
29896,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29941,
29900,
29892,
29871,
29946,
29900,
29962,
13,
29937,
29871,
29896,
29900,
13,
29937,
29871,
29946,
29900,
13,
29937,
518,
29896,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29941,
29900,
29892,
29871,
29945,
29900,
29962,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
13,
29871,
13,
29931,
29906,
353,
518,
29896,
29900,
29892,
29906,
29889,
29945,
1699,
12199,
3108,
13,
2158,
29898,
29931,
29906,
29897,
259,
13,
2158,
29898,
29931,
29906,
29961,
29906,
2314,
13,
29931,
29906,
29961,
29896,
29962,
353,
376,
20466,
2763,
29908,
29871,
396,
21513,
526,
26691,
13,
2158,
29898,
29931,
29906,
29897,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
29937,
396,
4905,
29901,
13,
29937,
518,
29896,
29900,
29892,
29871,
29906,
29889,
29945,
29892,
525,
12199,
2033,
13,
29937,
22172,
13,
29937,
518,
29896,
29900,
29892,
525,
20466,
2763,
742,
525,
12199,
2033,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
13,
29871,
13,
29880,
29941,
353,
518,
29896,
29900,
29892,
29906,
29900,
5501,
12199,
742,
1839,
29909,
3788,
29933,
2033,
29962,
396,
29946,
3161,
938,
29892,
524,
29892,
1807,
29892,
1761,
396,
277,
756,
1051,
29871,
13,
462,
18884,
396,
26102,
263,
1051,
13,
2158,
29898,
29880,
29941,
29961,
29941,
2314,
13,
2158,
29898,
29880,
29941,
29961,
29906,
2314,
13,
2158,
29898,
29880,
29941,
29961,
29941,
3816,
29900,
2314,
29937,
262,
1051,
29941,
1035,
267,
29871,
29946,
386,
1543,
2768,
393,
29871,
29896,
303,
1543,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
29937,
396,
4905,
29901,
13,
29937,
6024,
29909,
742,
525,
29933,
2033,
13,
29937,
22172,
13,
29937,
319,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
13,
29880,
29946,
353,
5519,
29896,
29900,
29892,
29906,
29900,
29892,
29941,
29900,
16272,
29906,
29892,
29945,
29892,
29953,
5262,
13,
2158,
29898,
29880,
29946,
29897,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
29937,
396,
4905,
29901,
13,
29937,
5519,
29896,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29941,
29900,
1402,
518,
29906,
29892,
29871,
29945,
29892,
29871,
29953,
5262,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
2
] |
taxi_zebra/ui.py | sephii/taxi-zebra | 5 | 41720 | <reponame>sephii/taxi-zebra
import inspect
from collections import namedtuple
import click
from taxi.aliases import aliases_database
from taxi.backends import PushEntryFailed
from .roles import NEVER_SAVE_ROLE_ID
from .utils import get_role_id_from_alias, update_alias_mapping
class CancelInput(Exception):
pass
Option = namedtuple('Option', ['value', 'label', 'key', 'style'])
Option.__new__.__defaults__ = (None, {})
def format_response_messages(response_json):
"""
Show all messages in the `messages` key of the given dict.
"""
message_type_kwargs = {
'warning': {'fg': 'yellow'},
'error': {'fg': 'red'},
}
return [
click.style(
message['text'], **message_type_kwargs.get(message['type'], {})
)
for message in response_json.get('messages', [])
]
def prompt_options(message, options, default=None):
def get_option_key(pos, option):
return option.key if option.key is not None else pos
enumerated_options = list(enumerate(options))
options_by_key = [(get_option_key(i, option), option) for i, option in enumerated_options]
options_by_key_dict = dict(options_by_key)
try:
default_option_id = next(
key for key, option in options_by_key if option.value == default.value
) if default else None
except StopIteration:
default_option_id = None
click.secho(message + "\n", bold=True)
for option_key, option in options_by_key:
if option.value is not None:
click.echo(
click.style("[{}]".format(option_key), fg='yellow',
**option.style)
+ " "
+ click.style(option.label, **option.style)
)
else:
click.echo(option.label)
click.echo()
prompt_message_default = " (leave empty for {})".format(click.style(default.label, bold=True)) if default else ""
prompt_message = "Select a role{}".format(prompt_message_default)
while True:
option_id = click.prompt(
prompt_message,
default=str(default_option_id) if default_option_id is not None else None,
show_default=False
).lstrip('[').rstrip(']')
try:
option_id = int(option_id)
except ValueError:
pass
try:
return options_by_key_dict[option_id][0]
except KeyError:
click.secho("`{}` is not a a valid option. Please try again.".format(option_id), fg='red')
return option_id
def input_role(roles, project_team, default_role=None):
"""
Show a list of roles to the user and ask them to select one. Return the
selected `Role`, or `None` if individual action was chosen.
"""
def role_to_option(role):
highlight = role.parent_id and role.parent_id == project_team
return Option(
value=role, label=role.full_name, style={'bold': True} if highlight else {}
)
individual_action = 'i'
cancel = 'c'
sorted_roles = sorted(roles, key=lambda role: role.full_name)
options = [
role_to_option(role) for role in sorted_roles
] + [
Option(value=None, label='-----'),
Option(value=individual_action, label="Individual action", key=individual_action),
Option(value=cancel, label="Cancel, skip this entry for now", key=cancel),
]
default_option = role_to_option(default_role) if default_role else None
try:
selected_role = prompt_options(
message='In which role do you want to push this entry?', options=options, default=default_option
)
except click.exceptions.Abort:
selected_role = cancel
if selected_role == cancel:
click.echo()
raise CancelInput()
elif selected_role == individual_action:
selected_role = None
return selected_role
def prompt_role(entry, roles, context, default_role=None):
"""
Ask the user to choose a role in `roles` for the given `entry` and return
it.
"""
mapping = aliases_database[entry.alias]
project = context['projects_db'].get(mapping.mapping[0], mapping.backend)
project_team = project.team if project else None
try:
role = input_role(roles, project_team, default_role=default_role)
except CancelInput:
raise PushEntryFailed("Skipped")
# Do not ask to save role association if user has requested to never be asked for it
if role and get_role_id_from_alias(entry.alias) != NEVER_SAVE_ROLE_ID:
click.echo("You have selected the role {}".format(click.style(role.full_name, fg='yellow')))
prompt_kwargs = {
'prompt_suffix': ' ',
'type': click.Choice(['y', 'n', 'N']),
'default': 'y'
}
# `show_choices` has been added in click 7.0. Support for click < 7 is needed for distributions
# that only provide click 6 in their package managers
if 'show_choices' in inspect.signature(click.prompt).parameters:
prompt_kwargs['show_choices'] = False
try:
create_alias = click.prompt(
"Make the {} alias always use this role? ([y]es, [n]o, [N]ever)".format(
click.style(entry.alias, fg='yellow')
), **prompt_kwargs
)
except click.exceptions.Abort:
click.echo()
raise PushEntryFailed("Skipped")
if create_alias == 'y':
update_alias_mapping(
context['settings'], entry.alias,
aliases_database[entry.alias].mapping[:2] + (str(role.id),)
)
click.secho("Alias {} now points to the role {}".format(
entry.alias, role.full_name
), fg='green')
elif create_alias == 'N':
update_alias_mapping(
context['settings'], entry.alias,
aliases_database[entry.alias].mapping[:2] + (NEVER_SAVE_ROLE_ID,)
)
return role
| [
1,
529,
276,
1112,
420,
29958,
344,
561,
2236,
29914,
941,
5389,
29899,
29920,
774,
336,
13,
5215,
16096,
13,
3166,
16250,
1053,
4257,
23583,
13,
13,
5215,
2828,
13,
13,
3166,
8818,
29875,
29889,
2606,
2129,
1053,
14430,
2129,
29918,
9803,
13,
3166,
8818,
29875,
29889,
1627,
1975,
1053,
349,
1878,
9634,
17776,
13,
13,
3166,
869,
307,
793,
1053,
14693,
5348,
29918,
29903,
7520,
29923,
29918,
1672,
1307,
29918,
1367,
13,
3166,
869,
13239,
1053,
679,
29918,
12154,
29918,
333,
29918,
3166,
29918,
19973,
29892,
2767,
29918,
19973,
29918,
20698,
13,
13,
13,
1990,
1815,
2242,
4290,
29898,
2451,
1125,
13,
1678,
1209,
13,
13,
13,
8375,
353,
4257,
23583,
877,
8375,
742,
6024,
1767,
742,
525,
1643,
742,
525,
1989,
742,
525,
3293,
11287,
13,
8375,
17255,
1482,
1649,
17255,
4381,
29879,
1649,
353,
313,
8516,
29892,
426,
1800,
13,
13,
13,
1753,
3402,
29918,
5327,
29918,
19158,
29898,
5327,
29918,
3126,
1125,
13,
1678,
9995,
13,
1678,
7704,
599,
7191,
297,
278,
421,
19158,
29952,
1820,
310,
278,
2183,
9657,
29889,
13,
1678,
9995,
13,
1678,
2643,
29918,
1853,
29918,
19290,
353,
426,
13,
4706,
525,
27392,
2396,
11117,
16434,
2396,
525,
29136,
16675,
13,
4706,
525,
2704,
2396,
11117,
16434,
2396,
525,
1127,
16675,
13,
1678,
500,
13,
13,
1678,
736,
518,
13,
4706,
2828,
29889,
3293,
29898,
13,
9651,
2643,
1839,
726,
7464,
3579,
4906,
29918,
1853,
29918,
19290,
29889,
657,
29898,
4906,
1839,
1853,
7464,
426,
1800,
13,
4706,
1723,
13,
4706,
363,
2643,
297,
2933,
29918,
3126,
29889,
657,
877,
19158,
742,
518,
2314,
13,
1678,
4514,
13,
13,
13,
1753,
9508,
29918,
6768,
29898,
4906,
29892,
3987,
29892,
2322,
29922,
8516,
1125,
13,
1678,
822,
679,
29918,
3385,
29918,
1989,
29898,
1066,
29892,
2984,
1125,
13,
4706,
736,
2984,
29889,
1989,
565,
2984,
29889,
1989,
338,
451,
6213,
1683,
926,
13,
13,
1678,
22447,
630,
29918,
6768,
353,
1051,
29898,
15172,
29898,
6768,
876,
13,
1678,
3987,
29918,
1609,
29918,
1989,
353,
17288,
657,
29918,
3385,
29918,
1989,
29898,
29875,
29892,
2984,
511,
2984,
29897,
363,
474,
29892,
2984,
297,
22447,
630,
29918,
6768,
29962,
13,
1678,
3987,
29918,
1609,
29918,
1989,
29918,
8977,
353,
9657,
29898,
6768,
29918,
1609,
29918,
1989,
29897,
13,
1678,
1018,
29901,
13,
4706,
2322,
29918,
3385,
29918,
333,
353,
2446,
29898,
13,
9651,
1820,
363,
1820,
29892,
2984,
297,
3987,
29918,
1609,
29918,
1989,
565,
2984,
29889,
1767,
1275,
2322,
29889,
1767,
13,
4706,
1723,
565,
2322,
1683,
6213,
13,
1678,
5174,
22303,
13463,
362,
29901,
13,
4706,
2322,
29918,
3385,
29918,
333,
353,
6213,
13,
13,
1678,
2828,
29889,
344,
1859,
29898,
4906,
718,
6634,
29876,
613,
14288,
29922,
5574,
29897,
13,
13,
1678,
363,
2984,
29918,
1989,
29892,
2984,
297,
3987,
29918,
1609,
29918,
1989,
29901,
13,
4706,
565,
2984,
29889,
1767,
338,
451,
6213,
29901,
13,
9651,
2828,
29889,
8057,
29898,
13,
18884,
2828,
29889,
3293,
703,
19660,
6525,
1642,
4830,
29898,
3385,
29918,
1989,
511,
285,
29887,
2433,
29136,
742,
13,
462,
9651,
3579,
3385,
29889,
3293,
29897,
13,
18884,
718,
376,
376,
13,
18884,
718,
2828,
29889,
3293,
29898,
3385,
29889,
1643,
29892,
3579,
3385,
29889,
3293,
29897,
13,
9651,
1723,
13,
4706,
1683,
29901,
13,
9651,
2828,
29889,
8057,
29898,
3385,
29889,
1643,
29897,
13,
13,
1678,
2828,
29889,
8057,
580,
13,
1678,
9508,
29918,
4906,
29918,
4381,
353,
376,
313,
280,
1351,
4069,
363,
426,
1800,
1642,
4830,
29898,
3808,
29889,
3293,
29898,
4381,
29889,
1643,
29892,
14288,
29922,
5574,
876,
565,
2322,
1683,
5124,
13,
1678,
9508,
29918,
4906,
353,
376,
3549,
263,
6297,
8875,
1642,
4830,
29898,
14032,
415,
29918,
4906,
29918,
4381,
29897,
13,
13,
1678,
1550,
5852,
29901,
13,
4706,
2984,
29918,
333,
353,
2828,
29889,
14032,
415,
29898,
13,
9651,
9508,
29918,
4906,
29892,
13,
9651,
2322,
29922,
710,
29898,
4381,
29918,
3385,
29918,
333,
29897,
565,
2322,
29918,
3385,
29918,
333,
338,
451,
6213,
1683,
6213,
29892,
13,
9651,
1510,
29918,
4381,
29922,
8824,
13,
4706,
13742,
29880,
17010,
877,
1839,
467,
29878,
17010,
877,
29962,
1495,
13,
13,
4706,
1018,
29901,
13,
9651,
2984,
29918,
333,
353,
938,
29898,
3385,
29918,
333,
29897,
13,
4706,
5174,
7865,
2392,
29901,
13,
9651,
1209,
13,
13,
4706,
1018,
29901,
13,
9651,
736,
3987,
29918,
1609,
29918,
1989,
29918,
8977,
29961,
3385,
29918,
333,
3816,
29900,
29962,
13,
4706,
5174,
7670,
2392,
29901,
13,
9651,
2828,
29889,
344,
1859,
703,
29952,
8875,
29952,
338,
451,
263,
263,
2854,
2984,
29889,
3529,
1018,
1449,
1213,
29889,
4830,
29898,
3385,
29918,
333,
511,
285,
29887,
2433,
1127,
1495,
13,
13,
1678,
736,
2984,
29918,
333,
13,
13,
13,
1753,
1881,
29918,
12154,
29898,
307,
793,
29892,
2060,
29918,
14318,
29892,
2322,
29918,
12154,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
7704,
263,
1051,
310,
16178,
304,
278,
1404,
322,
2244,
963,
304,
1831,
697,
29889,
7106,
278,
13,
1678,
4629,
421,
16727,
1673,
470,
421,
8516,
29952,
565,
5375,
3158,
471,
10434,
29889,
13,
1678,
9995,
13,
1678,
822,
6297,
29918,
517,
29918,
3385,
29898,
12154,
1125,
13,
4706,
12141,
353,
6297,
29889,
3560,
29918,
333,
322,
6297,
29889,
3560,
29918,
333,
1275,
2060,
29918,
14318,
13,
13,
4706,
736,
10831,
29898,
13,
9651,
995,
29922,
12154,
29892,
3858,
29922,
12154,
29889,
8159,
29918,
978,
29892,
3114,
3790,
29915,
8934,
2396,
5852,
29913,
565,
12141,
1683,
6571,
13,
4706,
1723,
13,
13,
1678,
5375,
29918,
2467,
353,
525,
29875,
29915,
13,
1678,
12611,
353,
525,
29883,
29915,
13,
1678,
12705,
29918,
307,
793,
353,
12705,
29898,
307,
793,
29892,
1820,
29922,
2892,
6297,
29901,
6297,
29889,
8159,
29918,
978,
29897,
13,
13,
1678,
3987,
353,
518,
13,
4706,
6297,
29918,
517,
29918,
3385,
29898,
12154,
29897,
363,
6297,
297,
12705,
29918,
307,
793,
13,
1678,
4514,
718,
518,
13,
4706,
10831,
29898,
1767,
29922,
8516,
29892,
3858,
2433,
23648,
5477,
13,
4706,
10831,
29898,
1767,
29922,
513,
23352,
29918,
2467,
29892,
3858,
543,
2568,
23352,
3158,
613,
1820,
29922,
513,
23352,
29918,
2467,
511,
13,
4706,
10831,
29898,
1767,
29922,
20713,
29892,
3858,
543,
19420,
29892,
14383,
445,
6251,
363,
1286,
613,
1820,
29922,
20713,
511,
13,
1678,
4514,
13,
13,
1678,
2322,
29918,
3385,
353,
6297,
29918,
517,
29918,
3385,
29898,
4381,
29918,
12154,
29897,
565,
2322,
29918,
12154,
1683,
6213,
13,
13,
1678,
1018,
29901,
13,
4706,
4629,
29918,
12154,
353,
9508,
29918,
6768,
29898,
13,
9651,
2643,
2433,
797,
607,
6297,
437,
366,
864,
304,
5503,
445,
6251,
29973,
742,
3987,
29922,
6768,
29892,
2322,
29922,
4381,
29918,
3385,
13,
4706,
1723,
13,
1678,
5174,
2828,
29889,
11739,
29879,
29889,
4920,
441,
29901,
13,
4706,
4629,
29918,
12154,
353,
12611,
13,
13,
1678,
565,
4629,
29918,
12154,
1275,
12611,
29901,
13,
4706,
2828,
29889,
8057,
580,
13,
4706,
12020,
1815,
2242,
4290,
580,
13,
1678,
25342,
4629,
29918,
12154,
1275,
5375,
29918,
2467,
29901,
13,
4706,
4629,
29918,
12154,
353,
6213,
13,
13,
1678,
736,
4629,
29918,
12154,
13,
13,
13,
1753,
9508,
29918,
12154,
29898,
8269,
29892,
16178,
29892,
3030,
29892,
2322,
29918,
12154,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
26579,
278,
1404,
304,
6755,
263,
6297,
297,
421,
307,
793,
29952,
363,
278,
2183,
421,
8269,
29952,
322,
736,
13,
1678,
372,
29889,
13,
1678,
9995,
13,
1678,
10417,
353,
14430,
2129,
29918,
9803,
29961,
8269,
29889,
19973,
29962,
13,
1678,
2060,
353,
3030,
1839,
16418,
29918,
2585,
13359,
657,
29898,
20698,
29889,
20698,
29961,
29900,
1402,
10417,
29889,
27852,
29897,
13,
1678,
2060,
29918,
14318,
353,
2060,
29889,
14318,
565,
2060,
1683,
6213,
13,
13,
1678,
1018,
29901,
13,
4706,
6297,
353,
1881,
29918,
12154,
29898,
307,
793,
29892,
2060,
29918,
14318,
29892,
2322,
29918,
12154,
29922,
4381,
29918,
12154,
29897,
13,
1678,
5174,
1815,
2242,
4290,
29901,
13,
4706,
12020,
349,
1878,
9634,
17776,
703,
29903,
1984,
2986,
1159,
13,
13,
1678,
396,
1938,
451,
2244,
304,
4078,
6297,
15477,
565,
1404,
756,
13877,
304,
2360,
367,
4433,
363,
372,
13,
1678,
565,
6297,
322,
679,
29918,
12154,
29918,
333,
29918,
3166,
29918,
19973,
29898,
8269,
29889,
19973,
29897,
2804,
14693,
5348,
29918,
29903,
7520,
29923,
29918,
1672,
1307,
29918,
1367,
29901,
13,
4706,
2828,
29889,
8057,
703,
3492,
505,
4629,
278,
6297,
6571,
1642,
4830,
29898,
3808,
29889,
3293,
29898,
12154,
29889,
8159,
29918,
978,
29892,
285,
29887,
2433,
29136,
29915,
4961,
13,
4706,
9508,
29918,
19290,
353,
426,
13,
9651,
525,
14032,
415,
29918,
2146,
600,
861,
2396,
525,
13420,
13,
9651,
525,
1853,
2396,
2828,
29889,
29620,
18959,
29891,
742,
525,
29876,
742,
525,
29940,
2033,
511,
13,
9651,
525,
4381,
2396,
525,
29891,
29915,
13,
4706,
500,
13,
13,
4706,
396,
421,
4294,
29918,
1859,
1575,
29952,
756,
1063,
2715,
297,
2828,
29871,
29955,
29889,
29900,
29889,
18601,
363,
2828,
529,
29871,
29955,
338,
4312,
363,
18822,
13,
4706,
396,
393,
871,
3867,
2828,
29871,
29953,
297,
1009,
3577,
767,
18150,
13,
4706,
565,
525,
4294,
29918,
1859,
1575,
29915,
297,
16096,
29889,
4530,
1535,
29898,
3808,
29889,
14032,
415,
467,
16744,
29901,
13,
9651,
9508,
29918,
19290,
1839,
4294,
29918,
1859,
1575,
2033,
353,
7700,
13,
13,
4706,
1018,
29901,
13,
9651,
1653,
29918,
19973,
353,
2828,
29889,
14032,
415,
29898,
13,
18884,
376,
9984,
278,
6571,
13995,
2337,
671,
445,
6297,
29973,
9310,
29891,
29962,
267,
29892,
518,
29876,
29962,
29877,
29892,
518,
29940,
29962,
1310,
29897,
1642,
4830,
29898,
13,
462,
1678,
2828,
29889,
3293,
29898,
8269,
29889,
19973,
29892,
285,
29887,
2433,
29136,
1495,
13,
18884,
10353,
3579,
14032,
415,
29918,
19290,
13,
9651,
1723,
13,
4706,
5174,
2828,
29889,
11739,
29879,
29889,
4920,
441,
29901,
13,
9651,
2828,
29889,
8057,
580,
13,
9651,
12020,
349,
1878,
9634,
17776,
703,
29903,
1984,
2986,
1159,
13,
13,
4706,
565,
1653,
29918,
19973,
1275,
525,
29891,
2396,
13,
9651,
2767,
29918,
19973,
29918,
20698,
29898,
13,
18884,
3030,
1839,
11027,
7464,
6251,
29889,
19973,
29892,
13,
18884,
14430,
2129,
29918,
9803,
29961,
8269,
29889,
19973,
1822,
20698,
7503,
29906,
29962,
718,
313,
710,
29898,
12154,
29889,
333,
511,
29897,
13,
9651,
1723,
13,
13,
9651,
2828,
29889,
344,
1859,
703,
29909,
18849,
6571,
1286,
3291,
304,
278,
6297,
6571,
1642,
4830,
29898,
13,
18884,
6251,
29889,
19973,
29892,
6297,
29889,
8159,
29918,
978,
13,
9651,
10353,
285,
29887,
2433,
12692,
1495,
13,
4706,
25342,
1653,
29918,
19973,
1275,
525,
29940,
2396,
13,
9651,
2767,
29918,
19973,
29918,
20698,
29898,
13,
18884,
3030,
1839,
11027,
7464,
6251,
29889,
19973,
29892,
13,
18884,
14430,
2129,
29918,
9803,
29961,
8269,
29889,
19973,
1822,
20698,
7503,
29906,
29962,
718,
313,
8186,
5348,
29918,
29903,
7520,
29923,
29918,
1672,
1307,
29918,
1367,
29892,
29897,
13,
9651,
1723,
13,
13,
1678,
736,
6297,
13,
2
] |
deliver/social/api/serializers.py | Untouchable17/social-web | 1 | 113534 | from rest_framework import serializers
from social.models import Post, Comment, UserProfile
class CommentSerializer(serializers.ModelSerializer):
class Meta:
model = Comment
fields = '__all__'
class PostSerializer(serializers.ModelSerializer):
comments = CommentSerializer(many=True, required=False)
author = serializers.ReadOnlyField(source='author.username')
title = serializers.CharField(required=True)
slug = serializers.SlugField(required=True)
body = serializers.CharField(required=True)
photo = serializers.ImageField(required=False)
created_at = serializers.DateTimeField(required=False)
class Meta:
model = Post
fields = (
'id', 'author', 'title', 'slug', 'body', 'photo', 'created_at', 'comments'
)
class UserProfileSerializer(serializers.ModelSerializer):
user = serializers.ReadOnlyField(source='profile.username')
name = serializers.CharField(required=True)
bio = serializers.CharField(required=True)
birth_date = serializers.TimeField(required=True)
location = serializers.CharField(required=True)
picture = serializers.ImageField(required=True)
class Meta:
model = UserProfile
fields = (
'id', 'user', 'name', 'bio', 'birth_date', 'location', 'picture'
) | [
1,
515,
1791,
29918,
4468,
1053,
7797,
19427,
13,
13,
3166,
5264,
29889,
9794,
1053,
4918,
29892,
461,
29892,
4911,
13909,
13,
13,
13,
1990,
461,
17679,
29898,
15550,
19427,
29889,
3195,
17679,
1125,
13,
1678,
770,
20553,
29901,
13,
4706,
1904,
353,
461,
13,
4706,
4235,
353,
525,
1649,
497,
1649,
29915,
13,
13,
13,
1990,
4918,
17679,
29898,
15550,
19427,
29889,
3195,
17679,
1125,
13,
13,
1678,
6589,
353,
461,
17679,
29898,
13011,
29922,
5574,
29892,
3734,
29922,
8824,
29897,
13,
13,
1678,
4148,
353,
7797,
19427,
29889,
6359,
11730,
3073,
29898,
4993,
2433,
8921,
29889,
6786,
1495,
13,
1678,
3611,
353,
7797,
19427,
29889,
27890,
29898,
12403,
29922,
5574,
29897,
13,
1678,
2243,
688,
353,
7797,
19427,
29889,
16973,
688,
3073,
29898,
12403,
29922,
5574,
29897,
13,
1678,
3573,
353,
7797,
19427,
29889,
27890,
29898,
12403,
29922,
5574,
29897,
13,
1678,
15373,
353,
7797,
19427,
29889,
2940,
3073,
29898,
12403,
29922,
8824,
29897,
13,
1678,
2825,
29918,
271,
353,
7797,
19427,
29889,
11384,
3073,
29898,
12403,
29922,
8824,
29897,
13,
13,
1678,
770,
20553,
29901,
13,
4706,
1904,
353,
4918,
13,
4706,
4235,
353,
313,
13,
9651,
525,
333,
742,
525,
8921,
742,
525,
3257,
742,
525,
29517,
742,
525,
2587,
742,
525,
21596,
742,
525,
11600,
29918,
271,
742,
525,
21032,
29915,
13,
4706,
1723,
13,
13,
13,
1990,
4911,
13909,
17679,
29898,
15550,
19427,
29889,
3195,
17679,
1125,
13,
1678,
1404,
353,
7797,
19427,
29889,
6359,
11730,
3073,
29898,
4993,
2433,
10185,
29889,
6786,
1495,
13,
1678,
1024,
353,
7797,
19427,
29889,
27890,
29898,
12403,
29922,
5574,
29897,
13,
1678,
17799,
353,
7797,
19427,
29889,
27890,
29898,
12403,
29922,
5574,
29897,
13,
1678,
12060,
29918,
1256,
353,
7797,
19427,
29889,
2481,
3073,
29898,
12403,
29922,
5574,
29897,
13,
1678,
4423,
353,
7797,
19427,
29889,
27890,
29898,
12403,
29922,
5574,
29897,
13,
1678,
7623,
353,
7797,
19427,
29889,
2940,
3073,
29898,
12403,
29922,
5574,
29897,
13,
13,
1678,
770,
20553,
29901,
13,
4706,
1904,
353,
4911,
13909,
13,
4706,
4235,
353,
313,
13,
9651,
525,
333,
742,
525,
1792,
742,
525,
978,
742,
525,
24840,
742,
525,
29890,
7515,
29918,
1256,
742,
525,
5479,
742,
525,
12095,
29915,
13,
4706,
1723,
2
] |
sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py | rsdoherty/azure-sdk-for-python | 1 | 1607742 | <reponame>rsdoherty/azure-sdk-for-python
# coding=utf-8 pylint: disable=too-many-lines
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import re
from enum import Enum
from ._generated.models import (
LanguageInput,
MultiLanguageInput,
)
from ._generated.v3_0 import models as _v3_0_models
from ._generated.v3_2_preview_1 import models as _v3_2_preview_1_models
from ._version import DEFAULT_API_VERSION
def _get_indices(relation):
return [int(s) for s in re.findall(r"\d+", relation)]
class DictMixin(object):
def __setitem__(self, key, item):
self.__dict__[key] = item
def __getitem__(self, key):
return self.__dict__[key]
def __repr__(self):
return str(self)
def __len__(self):
return len(self.keys())
def __delitem__(self, key):
self.__dict__[key] = None
def __eq__(self, other):
"""Compare objects by comparing all attributes."""
if isinstance(other, self.__class__):
return self.__dict__ == other.__dict__
return False
def __ne__(self, other):
"""Compare objects by comparing all attributes."""
return not self.__eq__(other)
def __contains__(self, key):
return key in self.__dict__
def __str__(self):
return str({k: v for k, v in self.__dict__.items() if not k.startswith("_")})
def has_key(self, k):
return k in self.__dict__
def update(self, *args, **kwargs):
return self.__dict__.update(*args, **kwargs)
def keys(self):
return [k for k in self.__dict__ if not k.startswith("_")]
def values(self):
return [v for k, v in self.__dict__.items() if not k.startswith("_")]
def items(self):
return [(k, v) for k, v in self.__dict__.items() if not k.startswith("_")]
def get(self, key, default=None):
if key in self.__dict__:
return self.__dict__[key]
return default
class EntityAssociation(str, Enum):
"""Describes if the entity is the subject of the text or if it describes someone else."""
SUBJECT = "subject"
OTHER = "other"
class EntityCertainty(str, Enum):
"""Describes the entities certainty and polarity."""
POSITIVE = "positive"
POSITIVE_POSSIBLE = "positivePossible"
NEUTRAL_POSSIBLE = "neutralPossible"
NEGATIVE_POSSIBLE = "negativePossible"
NEGATIVE = "negative"
class EntityConditionality(str, Enum):
"""Describes any conditionality on the entity."""
HYPOTHETICAL = "hypothetical"
CONDITIONAL = "conditional"
class HealthcareEntityRelation(str, Enum):
"""Type of relation. Examples include: 'DosageOfMedication' or 'FrequencyOfMedication', etc."""
ABBREVIATION = "Abbreviation"
DIRECTION_OF_BODY_STRUCTURE = "DirectionOfBodyStructure"
DIRECTION_OF_CONDITION = "DirectionOfCondition"
DIRECTION_OF_EXAMINATION = "DirectionOfExamination"
DIRECTION_OF_TREATMENT = "DirectionOfTreatment"
DOSAGE_OF_MEDICATION = "DosageOfMedication"
FORM_OF_MEDICATION = "FormOfMedication"
FREQUENCY_OF_MEDICATION = "FrequencyOfMedication"
FREQUENCY_OF_TREATMENT = "FrequencyOfTreatment"
QUALIFIER_OF_CONDITION = "QualifierOfCondition"
RELATION_OF_EXAMINATION = "RelationOfExamination"
ROUTE_OF_MEDICATION = "RouteOfMedication"
TIME_OF_CONDITION = "TimeOfCondition"
TIME_OF_EVENT = "TimeOfEvent"
TIME_OF_EXAMINATION = "TimeOfExamination"
TIME_OF_MEDICATION = "TimeOfMedication"
TIME_OF_TREATMENT = "TimeOfTreatment"
UNIT_OF_CONDITION = "UnitOfCondition"
UNIT_OF_EXAMINATION = "UnitOfExamination"
VALUE_OF_CONDITION = "ValueOfCondition"
VALUE_OF_EXAMINATION = "ValueOfExamination"
class PiiEntityCategory(str, Enum):
"""Categories of Personally Identifiable Information (PII)."""
ABA_ROUTING_NUMBER = "ABARoutingNumber"
AR_NATIONAL_IDENTITY_NUMBER = "ARNationalIdentityNumber"
AU_BANK_ACCOUNT_NUMBER = "AUBankAccountNumber"
AU_DRIVERS_LICENSE_NUMBER = "AUDriversLicenseNumber"
AU_MEDICAL_ACCOUNT_NUMBER = "AUMedicalAccountNumber"
AU_PASSPORT_NUMBER = "AUPassportNumber"
AU_TAX_FILE_NUMBER = "AUTaxFileNumber"
AU_BUSINESS_NUMBER = "AUBusinessNumber"
AU_COMPANY_NUMBER = "AUCompanyNumber"
AT_IDENTITY_CARD = "ATIdentityCard"
AT_TAX_IDENTIFICATION_NUMBER = "ATTaxIdentificationNumber"
AT_VALUE_ADDED_TAX_NUMBER = "ATValueAddedTaxNumber"
AZURE_DOCUMENT_DB_AUTH_KEY = "AzureDocumentDBAuthKey"
AZURE_IAAS_DATABASE_CONNECTION_AND_SQL_STRING = (
"AzureIAASDatabaseConnectionAndSQLString"
)
AZURE_IO_T_CONNECTION_STRING = "AzureIoTConnectionString"
AZURE_PUBLISH_SETTING_PASSWORD = "<PASSWORD>"
AZURE_REDIS_CACHE_STRING = "AzureRedisCacheString"
AZURE_SAS = "AzureSAS"
AZURE_SERVICE_BUS_STRING = "AzureServiceBusString"
AZURE_STORAGE_ACCOUNT_KEY = "AzureStorageAccountKey"
AZURE_STORAGE_ACCOUNT_GENERIC = "AzureStorageAccountGeneric"
BE_NATIONAL_NUMBER = "BENationalNumber"
BE_NATIONAL_NUMBER_V2 = "BENationalNumberV2"
BE_VALUE_ADDED_TAX_NUMBER = "BEValueAddedTaxNumber"
BRCPF_NUMBER = "BRCPFNumber"
BR_LEGAL_ENTITY_NUMBER = "BRLegalEntityNumber"
BR_NATIONAL_IDRG = "BRNationalIDRG"
BG_UNIFORM_CIVIL_NUMBER = "BGUniformCivilNumber"
CA_BANK_ACCOUNT_NUMBER = "CABankAccountNumber"
CA_DRIVERS_LICENSE_NUMBER = "CADriversLicenseNumber"
CA_HEALTH_SERVICE_NUMBER = "CAHealthServiceNumber"
CA_PASSPORT_NUMBER = "CAPassportNumber"
CA_PERSONAL_HEALTH_IDENTIFICATION = "CAPersonalHealthIdentification"
CA_SOCIAL_INSURANCE_NUMBER = "CASocialInsuranceNumber"
CL_IDENTITY_CARD_NUMBER = "CLIdentityCardNumber"
CN_RESIDENT_IDENTITY_CARD_NUMBER = "CNResidentIdentityCardNumber"
CREDIT_CARD_NUMBER = "CreditCardNumber"
HR_IDENTITY_CARD_NUMBER = "HRIdentityCardNumber"
HR_NATIONAL_ID_NUMBER = "HRNationalIDNumber"
HR_PERSONAL_IDENTIFICATION_NUMBER = "HRPersonalIdentificationNumber"
HR_PERSONAL_IDENTIFICATION_OIB_NUMBER_V2 = "HRPersonalIdentificationOIBNumberV2"
CY_IDENTITY_CARD = "CYIdentityCard"
CY_TAX_IDENTIFICATION_NUMBER = "CYTaxIdentificationNumber"
CZ_PERSONAL_IDENTITY_NUMBER = "CZPersonalIdentityNumber"
CZ_PERSONAL_IDENTITY_V2 = "CZPersonalIdentityV2"
DK_PERSONAL_IDENTIFICATION_NUMBER = "DKPersonalIdentificationNumber"
DK_PERSONAL_IDENTIFICATION_V2 = "DKPersonalIdentificationV2"
DRUG_ENFORCEMENT_AGENCY_NUMBER = "DrugEnforcementAgencyNumber"
EE_PERSONAL_IDENTIFICATION_CODE = "EEPersonalIdentificationCode"
EU_DEBIT_CARD_NUMBER = "EUDebitCardNumber"
EU_DRIVERS_LICENSE_NUMBER = "EUDriversLicenseNumber"
EUGPS_COORDINATES = "EUGPSCoordinates"
EU_NATIONAL_IDENTIFICATION_NUMBER = "EUNationalIdentificationNumber"
EU_PASSPORT_NUMBER = "EUPassportNumber"
EU_SOCIAL_SECURITY_NUMBER = "EUSocialSecurityNumber"
EU_TAX_IDENTIFICATION_NUMBER = "EUTaxIdentificationNumber"
FI_EUROPEAN_HEALTH_NUMBER = "FIEuropeanHealthNumber"
FI_NATIONAL_ID = "FINationalID"
FI_NATIONAL_IDV2 = "FINationalIDV2"
FI_PASSPORT_NUMBER = "FIPassportNumber"
FR_DRIVERS_LICENSE_NUMBER = "FRDriversLicenseNumber"
FR_HEALTH_INSURANCE_NUMBER = "FRHealthInsuranceNumber"
FR_NATIONAL_ID = "FRNationalID"
FR_PASSPORT_NUMBER = "FRPassportNumber"
FR_SOCIAL_SECURITY_NUMBER = "FRSocialSecurityNumber"
FR_TAX_IDENTIFICATION_NUMBER = "FRTaxIdentificationNumber"
FR_VALUE_ADDED_TAX_NUMBER = "FRValueAddedTaxNumber"
DE_DRIVERS_LICENSE_NUMBER = "DEDriversLicenseNumber"
DE_PASSPORT_NUMBER = "DEPassportNumber"
DE_IDENTITY_CARD_NUMBER = "DEIdentityCardNumber"
DE_TAX_IDENTIFICATION_NUMBER = "DETaxIdentificationNumber"
DE_VALUE_ADDED_NUMBER = "DEValueAddedNumber"
GR_NATIONAL_ID_CARD = "GRNationalIDCard"
GR_NATIONAL_IDV2 = "GRNationalIDV2"
GR_TAX_IDENTIFICATION_NUMBER = "GRTaxIdentificationNumber"
HK_IDENTITY_CARD_NUMBER = "HKIdentityCardNumber"
HU_VALUE_ADDED_NUMBER = "HUValueAddedNumber"
HU_PERSONAL_IDENTIFICATION_NUMBER = "HUPersonalIdentificationNumber"
HU_TAX_IDENTIFICATION_NUMBER = "HUTaxIdentificationNumber"
IN_PERMANENT_ACCOUNT = "INPermanentAccount"
IN_UNIQUE_IDENTIFICATION_NUMBER = "INUniqueIdentificationNumber"
ID_IDENTITY_CARD_NUMBER = "IDIdentityCardNumber"
INTERNATIONAL_BANKING_ACCOUNT_NUMBER = "InternationalBankingAccountNumber"
IE_PERSONAL_PUBLIC_SERVICE_NUMBER = "IEPersonalPublicServiceNumber"
IE_PERSONAL_PUBLIC_SERVICE_NUMBER_V2 = "IEPersonalPublicServiceNumberV2"
IL_BANK_ACCOUNT_NUMBER = "ILBankAccountNumber"
IL_NATIONAL_ID = "ILNationalID"
IT_DRIVERS_LICENSE_NUMBER = "ITDriversLicenseNumber"
IT_FISCAL_CODE = "ITFiscalCode"
IT_VALUE_ADDED_TAX_NUMBER = "ITValueAddedTaxNumber"
JP_BANK_ACCOUNT_NUMBER = "JPBankAccountNumber"
JP_DRIVERS_LICENSE_NUMBER = "JPDriversLicenseNumber"
JP_PASSPORT_NUMBER = "JPPassportNumber"
JP_RESIDENT_REGISTRATION_NUMBER = "JPResidentRegistrationNumber"
JP_SOCIAL_INSURANCE_NUMBER = "JPSocialInsuranceNumber"
JP_MY_NUMBER_CORPORATE = "JPMyNumberCorporate"
JP_MY_NUMBER_PERSONAL = "JPMyNumberPersonal"
JP_RESIDENCE_CARD_NUMBER = "JPResidenceCardNumber"
LV_PERSONAL_CODE = "LVPersonalCode"
LT_PERSONAL_CODE = "LTPersonalCode"
LU_NATIONAL_IDENTIFICATION_NUMBER_NATURAL = "LUNationalIdentificationNumberNatural"
LU_NATIONAL_IDENTIFICATION_NUMBER_NON_NATURAL = (
"LUNationalIdentificationNumberNonNatural"
)
MY_IDENTITY_CARD_NUMBER = "MYIdentityCardNumber"
MT_IDENTITY_CARD_NUMBER = "MTIdentityCardNumber"
MT_TAX_ID_NUMBER = "MTTaxIDNumber"
NL_CITIZENS_SERVICE_NUMBER = "NLCitizensServiceNumber"
NL_CITIZENS_SERVICE_NUMBER_V2 = "NLCitizensServiceNumberV2"
NL_TAX_IDENTIFICATION_NUMBER = "NLTaxIdentificationNumber"
NL_VALUE_ADDED_TAX_NUMBER = "NLValueAddedTaxNumber"
NZ_BANK_ACCOUNT_NUMBER = "NZBankAccountNumber"
NZ_DRIVERS_LICENSE_NUMBER = "NZDriversLicenseNumber"
NZ_INLAND_REVENUE_NUMBER = "NZInlandRevenueNumber"
NZ_MINISTRY_OF_HEALTH_NUMBER = "NZMinistryOfHealthNumber"
NZ_SOCIAL_WELFARE_NUMBER = "NZSocialWelfareNumber"
NO_IDENTITY_NUMBER = "NOIdentityNumber"
PH_UNIFIED_MULTI_PURPOSE_ID_NUMBER = "PHUnifiedMultiPurposeIDNumber"
PL_IDENTITY_CARD = "PLIdentityCard"
PL_NATIONAL_ID = "PLNationalID"
PL_NATIONAL_IDV2 = "PLNationalIDV2"
PL_PASSPORT_NUMBER = "PLPassportNumber"
PL_TAX_IDENTIFICATION_NUMBER = "PLTaxIdentificationNumber"
PLREGON_NUMBER = "PLREGONNumber"
PT_CITIZEN_CARD_NUMBER = "PTCitizenCardNumber"
PT_CITIZEN_CARD_NUMBER_V2 = "PTCitizenCardNumberV2"
PT_TAX_IDENTIFICATION_NUMBER = "PTTaxIdentificationNumber"
RO_PERSONAL_NUMERICAL_CODE = "ROPersonalNumericalCode"
RU_PASSPORT_NUMBER_DOMESTIC = "RUPassportNumberDomestic"
RU_PASSPORT_NUMBER_INTERNATIONAL = "RUPassportNumberInternational"
SA_NATIONAL_ID = "SANationalID"
SG_NATIONAL_REGISTRATION_IDENTITY_CARD_NUMBER = (
"SGNationalRegistrationIdentityCardNumber"
)
SK_PERSONAL_NUMBER = "SKPersonalNumber"
SI_TAX_IDENTIFICATION_NUMBER = "SITaxIdentificationNumber"
SI_UNIQUE_MASTER_CITIZEN_NUMBER = "SIUniqueMasterCitizenNumber"
ZA_IDENTIFICATION_NUMBER = "ZAIdentificationNumber"
KR_RESIDENT_REGISTRATION_NUMBER = "KRResidentRegistrationNumber"
ESDNI = "ESDNI"
ES_SOCIAL_SECURITY_NUMBER = "ESSocialSecurityNumber"
ES_TAX_IDENTIFICATION_NUMBER = "ESTaxIdentificationNumber"
SQL_SERVER_CONNECTION_STRING = "SQLServerConnectionString"
SE_NATIONAL_ID = "SENationalID"
SE_NATIONAL_IDV2 = "SENationalIDV2"
SE_PASSPORT_NUMBER = "SEPassportNumber"
SE_TAX_IDENTIFICATION_NUMBER = "SETaxIdentificationNumber"
SWIFT_CODE = "SWIFTCode"
CH_SOCIAL_SECURITY_NUMBER = "CHSocialSecurityNumber"
TW_NATIONAL_ID = "TWNationalID"
TW_PASSPORT_NUMBER = "TWPassportNumber"
TW_RESIDENT_CERTIFICATE = "TWResidentCertificate"
TH_POPULATION_IDENTIFICATION_CODE = "THPopulationIdentificationCode"
TR_NATIONAL_IDENTIFICATION_NUMBER = "TRNationalIdentificationNumber"
UK_DRIVERS_LICENSE_NUMBER = "UKDriversLicenseNumber"
UK_ELECTORAL_ROLL_NUMBER = "UKElectoralRollNumber"
UK_NATIONAL_HEALTH_NUMBER = "UKNationalHealthNumber"
UK_NATIONAL_INSURANCE_NUMBER = "UKNationalInsuranceNumber"
UK_UNIQUE_TAXPAYER_NUMBER = "UKUniqueTaxpayerNumber"
USUK_PASSPORT_NUMBER = "USUKPassportNumber"
US_BANK_ACCOUNT_NUMBER = "USBankAccountNumber"
US_DRIVERS_LICENSE_NUMBER = "USDriversLicenseNumber"
US_INDIVIDUAL_TAXPAYER_IDENTIFICATION = "USIndividualTaxpayerIdentification"
US_SOCIAL_SECURITY_NUMBER = "USSocialSecurityNumber"
UA_PASSPORT_NUMBER_DOMESTIC = "UAPassportNumberDomestic"
UA_PASSPORT_NUMBER_INTERNATIONAL = "UAPassportNumberInternational"
ORGANIZATION = "Organization"
EMAIL = "Email"
URL = "URL"
AGE = "Age"
PHONE_NUMBER = "PhoneNumber"
IP_ADDRESS = "IPAddress"
DATE = "Date"
PERSON = "Person"
ADDRESS = "Address"
ALL = "All"
DEFAULT = "Default"
class HealthcareEntityCategory(str, Enum):
"""Healthcare Entity Category."""
BODY_STRUCTURE = "BodyStructure"
AGE = "Age"
GENDER = "Gender"
EXAMINATION_NAME = "ExaminationName"
DATE = "Date"
DIRECTION = "Direction"
FREQUENCY = "Frequency"
MEASUREMENT_VALUE = "MeasurementValue"
MEASUREMENT_UNIT = "MeasurementUnit"
RELATIONAL_OPERATOR = "RelationalOperator"
TIME = "Time"
GENE_OR_PROTEIN = "GeneOrProtein"
VARIANT = "Variant"
ADMINISTRATIVE_EVENT = "AdministrativeEvent"
CARE_ENVIRONMENT = "CareEnvironment"
HEALTHCARE_PROFESSION = "HealthcareProfession"
DIAGNOSIS = "Diagnosis"
SYMPTOM_OR_SIGN = "SymptomOrSign"
CONDITION_QUALIFIER = "ConditionQualifier"
MEDICATION_CLASS = "MedicationClass"
MEDICATION_NAME = "MedicationName"
DOSAGE = "Dosage"
MEDICATION_FORM = "MedicationForm"
MEDICATION_ROUTE = "MedicationRoute"
FAMILY_RELATION = "FamilyRelation"
TREATMENT_NAME = "TreatmentName"
class PiiEntityDomain(str, Enum):
"""The different domains of PII entities that users can filter by"""
PROTECTED_HEALTH_INFORMATION = (
"phi" # See https://aka.ms/tanerpii for more information.
)
class DetectedLanguage(DictMixin):
"""DetectedLanguage contains the predicted language found in text,
its confidence score, and its ISO 639-1 representation.
:ivar name: Long name of a detected language (e.g. English,
French).
:vartype name: str
:ivar iso6391_name: A two letter representation of the detected
language according to the ISO 639-1 standard (e.g. en, fr).
:vartype iso6391_name: str
:ivar confidence_score: A confidence score between 0 and 1. Scores close
to 1 indicate 100% certainty that the identified language is true.
:vartype confidence_score: float
"""
def __init__(self, **kwargs):
self.name = kwargs.get("name", None)
self.iso6391_name = kwargs.get("iso6391_name", None)
self.confidence_score = kwargs.get("confidence_score", None)
@classmethod
def _from_generated(cls, language):
return cls(
name=language.name,
iso6391_name=language.iso6391_name,
confidence_score=language.confidence_score,
)
def __repr__(self):
return "DetectedLanguage(name={}, iso6391_name={}, confidence_score={})".format(
self.name, self.iso6391_name, self.confidence_score
)[:1024]
class RecognizeEntitiesResult(DictMixin):
"""RecognizeEntitiesResult is a result object which contains
the recognized entities from a particular document.
:ivar id: Unique, non-empty document identifier that matches the
document id that was passed in with the request. If not specified
in the request, an id is assigned for the document.
:vartype id: str
:ivar entities: Recognized entities in the document.
:vartype entities:
list[~azure.ai.textanalytics.CategorizedEntity]
:ivar warnings: Warnings encountered while processing document. Results will still be returned
if there are warnings, but they may not be fully accurate.
:vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning]
:ivar statistics: If `show_stats=True` was specified in the request this
field will contain information about the document payload.
:vartype statistics:
~azure.ai.textanalytics.TextDocumentStatistics
:ivar bool is_error: Boolean check for error item when iterating over list of
results. Always False for an instance of a RecognizeEntitiesResult.
"""
def __init__(self, **kwargs):
self.id = kwargs.get("id", None)
self.entities = kwargs.get("entities", None)
self.warnings = kwargs.get("warnings", [])
self.statistics = kwargs.get("statistics", None)
self.is_error = False
def __repr__(self):
return "RecognizeEntitiesResult(id={}, entities={}, warnings={}, statistics={}, is_error={})".format(
self.id,
repr(self.entities),
repr(self.warnings),
repr(self.statistics),
self.is_error,
)[
:1024
]
class RecognizePiiEntitiesResult(DictMixin):
"""RecognizePiiEntitiesResult is a result object which contains
the recognized Personally Identifiable Information (PII) entities
from a particular document.
:ivar str id: Unique, non-empty document identifier that matches the
document id that was passed in with the request. If not specified
in the request, an id is assigned for the document.
:ivar entities: Recognized PII entities in the document.
:vartype entities:
list[~azure.ai.textanalytics.PiiEntity]
:ivar str redacted_text: Returns the text of the input document with all of the PII information
redacted out.
:ivar warnings: Warnings encountered while processing document. Results will still be returned
if there are warnings, but they may not be fully accurate.
:vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning]
:ivar statistics: If `show_stats=True` was specified in the request this
field will contain information about the document payload.
:vartype statistics:
~azure.ai.textanalytics.TextDocumentStatistics
:ivar bool is_error: Boolean check for error item when iterating over list of
results. Always False for an instance of a RecognizePiiEntitiesResult.
"""
def __init__(self, **kwargs):
self.id = kwargs.get("id", None)
self.entities = kwargs.get("entities", None)
self.redacted_text = kwargs.get("redacted_text", None)
self.warnings = kwargs.get("warnings", [])
self.statistics = kwargs.get("statistics", None)
self.is_error = False
def __repr__(self):
return (
"RecognizePiiEntitiesResult(id={}, entities={}, redacted_text={}, warnings={}, "
"statistics={}, is_error={})".format(
self.id,
repr(self.entities),
self.redacted_text,
repr(self.warnings),
repr(self.statistics),
self.is_error,
)[:1024]
)
class AnalyzeHealthcareEntitiesResult(DictMixin):
"""
AnalyzeHealthcareEntitiesResult contains the Healthcare entities from a
particular document.
:ivar str id: Unique, non-empty document identifier that matches the
document id that was passed in with the request. If not specified
in the request, an id is assigned for the document.
:ivar entities: Identified Healthcare entities in the document, i.e. in
the document "The subject took ibuprofen", "ibuprofen" is an identified entity
from the document.
:vartype entities:
list[~azure.ai.textanalytics.HealthcareEntity]
:ivar entity_relations: Identified Healthcare relations between entities. For example, in the
document "The subject took 100mg of ibuprofen", we would identify the relationship
between the dosage of 100mg and the medication ibuprofen.
:vartype entity_relations: list[~azure.ai.textanalytics.HealthcareRelation]
:ivar warnings: Warnings encountered while processing document. Results will still be returned
if there are warnings, but they may not be fully accurate.
:vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning]
:ivar statistics: If show_stats=true was specified in the request this
field will contain information about the document payload.
:vartype statistics:
~azure.ai.textanalytics.TextDocumentStatistics
:ivar bool is_error: Boolean check for error item when iterating over list of
results. Always False for an instance of a AnalyzeHealthcareEntitiesResult.
"""
def __init__(self, **kwargs):
self.id = kwargs.get("id", None)
self.entities = kwargs.get("entities", None)
self.entity_relations = kwargs.get("entity_relations", None)
self.warnings = kwargs.get("warnings", [])
self.statistics = kwargs.get("statistics", None)
self.is_error = False
@classmethod
def _from_generated(cls, healthcare_result):
entities = [
HealthcareEntity._from_generated(e) # pylint: disable=protected-access
for e in healthcare_result.entities
]
relations = [
HealthcareRelation._from_generated( # pylint: disable=protected-access
r, entities
)
for r in healthcare_result.relations
]
return cls(
id=healthcare_result.id,
entities=entities,
entity_relations=relations,
warnings=[
TextAnalyticsWarning._from_generated( # pylint: disable=protected-access
w
)
for w in healthcare_result.warnings
],
statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access
healthcare_result.statistics
),
)
def __repr__(self):
return (
"AnalyzeHealthcareEntitiesResult(id={}, entities={}, entity_relations={}, warnings={}, "
"statistics={}, is_error={})".format(
self.id,
repr(self.entities),
repr(self.entity_relations),
repr(self.warnings),
repr(self.statistics),
self.is_error,
)[:1024]
)
class HealthcareRelation(DictMixin):
"""HealthcareRelation is a result object which represents a relation detected in a document.
Every HealthcareRelation is an entity graph of a certain relation type,
where all entities are connected and have specific roles within the relation context.
:ivar relation_type: The type of relation, i.e. the relationship between "100mg" and
"ibuprofen" in the document "The subject took 100 mg of ibuprofen" is "DosageOfMedication".
Possible values found in :class:`~azure.ai.textanalytics.HealthcareEntityRelation`
:vartype relation_type: str
:ivar roles: The roles present in this relation. I.e., in the document
"The subject took 100 mg of ibuprofen", the present roles are "Dosage" and "Medication".
:vartype roles: list[~azure.ai.textanalytics.HealthcareRelationRole]
"""
def __init__(self, **kwargs):
self.relation_type = kwargs.get("relation_type")
self.roles = kwargs.get("roles")
@classmethod
def _from_generated(cls, healthcare_relation_result, entities):
roles = [
HealthcareRelationRole._from_generated( # pylint: disable=protected-access
r, entities
)
for r in healthcare_relation_result.entities
]
return cls(
relation_type=healthcare_relation_result.relation_type,
roles=roles,
)
def __repr__(self):
return "HealthcareRelation(relation_type={}, roles={})".format(
self.relation_type,
repr(self.roles),
)[:1024]
class HealthcareRelationRole(DictMixin):
"""A model representing a role in a relation.
For example, in "The subject took 100 mg of ibuprofen",
"100 mg" is a dosage entity fulfilling the role "Dosage"
in the extracted relation "DosageofMedication".
:ivar name: The role of the entity in the relationship. I.e., in the relation
"The subject took 100 mg of ibuprofen", the dosage entity "100 mg" has role
"Dosage".
:vartype name: str
:ivar entity: The entity that is present in the relationship. For example, in
"The subject took 100 mg of ibuprofen", this property holds the dosage entity
of "100 mg".
:vartype entity: ~azure.ai.textanalytics.HealthcareEntity
"""
def __init__(self, **kwargs):
self.name = kwargs.get("name")
self.entity = kwargs.get("entity")
@staticmethod
def _get_entity(healthcare_role_result, entities):
nums = _get_indices(healthcare_role_result.ref)
entity_index = nums[
1
] # first num parsed from index is document #, second is entity index
return entities[entity_index]
@classmethod
def _from_generated(cls, healthcare_role_result, entities):
return cls(
name=healthcare_role_result.role,
entity=HealthcareRelationRole._get_entity(healthcare_role_result, entities),
)
def __repr__(self):
return "HealthcareRelationRole(name={}, entity={})".format(
self.name, repr(self.entity)
)
class DetectLanguageResult(DictMixin):
"""DetectLanguageResult is a result object which contains
the detected language of a particular document.
:ivar id: Unique, non-empty document identifier that matches the
document id that was passed in with the request. If not specified
in the request, an id is assigned for the document.
:vartype id: str
:ivar primary_language: The primary language detected in the document.
:vartype primary_language: ~azure.ai.textanalytics.DetectedLanguage
:ivar warnings: Warnings encountered while processing document. Results will still be returned
if there are warnings, but they may not be fully accurate.
:vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning]
:ivar statistics: If `show_stats=True` was specified in the request this
field will contain information about the document payload.
:vartype statistics:
~azure.ai.textanalytics.TextDocumentStatistics
:ivar bool is_error: Boolean check for error item when iterating over list of
results. Always False for an instance of a DetectLanguageResult.
"""
def __init__(self, **kwargs):
self.id = kwargs.get("id", None)
self.primary_language = kwargs.get("primary_language", None)
self.warnings = kwargs.get("warnings", [])
self.statistics = kwargs.get("statistics", None)
self.is_error = False
def __repr__(self):
return (
"DetectLanguageResult(id={}, primary_language={}, warnings={}, statistics={}, "
"is_error={})".format(
self.id,
repr(self.primary_language),
repr(self.warnings),
repr(self.statistics),
self.is_error,
)[:1024]
)
class CategorizedEntity(DictMixin):
"""CategorizedEntity contains information about a particular
entity found in text.
:ivar text: Entity text as appears in the request.
:vartype text: str
:ivar category: Entity category, such as Person/Location/Org/SSN etc
:vartype category: str
:ivar subcategory: Entity subcategory, such as Age/Year/TimeRange etc
:vartype subcategory: str
:ivar int length: The entity text length. This value depends on the value of the
`string_index_type` parameter set in the original request, which is UnicodeCodePoints
by default.
:ivar int offset: The entity text offset from the start of the document.
The value depends on the value of the `string_index_type` parameter
set in the original request, which is UnicodeCodePoints by default.
:ivar confidence_score: Confidence score between 0 and 1 of the extracted
entity.
:vartype confidence_score: float
.. versionadded:: v3.1
The *offset* and *length* properties.
"""
def __init__(self, **kwargs):
self.text = kwargs.get("text", None)
self.category = kwargs.get("category", None)
self.subcategory = kwargs.get("subcategory", None)
self.length = kwargs.get("length", None)
self.offset = kwargs.get("offset", None)
self.confidence_score = kwargs.get("confidence_score", None)
@classmethod
def _from_generated(cls, entity):
offset = entity.offset
length = entity.length
if isinstance(entity, _v3_0_models.Entity):
# we do not return offset for v3.0 since
# the correct encoding was not introduced for v3.0
offset = None
length = None
return cls(
text=entity.text,
category=entity.category,
subcategory=entity.subcategory,
length=length,
offset=offset,
confidence_score=entity.confidence_score,
)
def __repr__(self):
return (
"CategorizedEntity(text={}, category={}, subcategory={}, "
"length={}, offset={}, confidence_score={})".format(
self.text,
self.category,
self.subcategory,
self.length,
self.offset,
self.confidence_score,
)[:1024]
)
class PiiEntity(DictMixin):
"""PiiEntity contains information about a Personally Identifiable
Information (PII) entity found in text.
:ivar str text: Entity text as appears in the request.
:ivar str category: Entity category, such as Financial Account
Identification/Social Security Number/Phone Number, etc.
:ivar str subcategory: Entity subcategory, such as Credit Card/EU
Phone number/ABA Routing Numbers, etc.
:ivar int length: The PII entity text length. This value depends on the value
of the `string_index_type` parameter specified in the original request, which
is UnicodeCodePoints by default.
:ivar int offset: The PII entity text offset from the start of the document.
This value depends on the value of the `string_index_type` parameter specified
in the original request, which is UnicodeCodePoints by default.
:ivar float confidence_score: Confidence score between 0 and 1 of the extracted
entity.
"""
def __init__(self, **kwargs):
self.text = kwargs.get("text", None)
self.category = kwargs.get("category", None)
self.subcategory = kwargs.get("subcategory", None)
self.length = kwargs.get("length", None)
self.offset = kwargs.get("offset", None)
self.confidence_score = kwargs.get("confidence_score", None)
@classmethod
def _from_generated(cls, entity):
return cls(
text=entity.text,
category=entity.category,
subcategory=entity.subcategory,
length=entity.length,
offset=entity.offset,
confidence_score=entity.confidence_score,
)
def __repr__(self):
return (
"PiiEntity(text={}, category={}, subcategory={}, length={}, "
"offset={}, confidence_score={})".format(
self.text,
self.category,
self.subcategory,
self.length,
self.offset,
self.confidence_score,
)[:1024]
)
class HealthcareEntity(DictMixin):
"""HealthcareEntity contains information about a Healthcare entity found in text.
:ivar str text: Entity text as appears in the document.
:ivar str normalized_text: Optional. Normalized version of the raw `text` we extract
from the document. Not all `text` will have a normalized version.
:ivar str category: Entity category, see the :class:`~azure.ai.textanalytics.HealthcareEntityCategory`
type for possible healthcare entity categories.
:ivar str subcategory: Entity subcategory.
:ivar assertion: Contains various assertions about this entity. For example, if
an entity is a diagnosis, is this diagnosis 'conditional' on a symptom?
Are the doctors 'certain' about this diagnosis? Is this diagnosis 'associated'
with another diagnosis?
:vartype assertion: ~azure.ai.textanalytics.HealthcareEntityAssertion
:ivar int length: The entity text length. This value depends on the value
of the `string_index_type` parameter specified in the original request, which is
UnicodeCodePoints by default.
:ivar int offset: The entity text offset from the start of the document.
This value depends on the value of the `string_index_type` parameter specified
in the original request, which is UnicodeCodePoints by default.
:ivar float confidence_score: Confidence score between 0 and 1 of the extracted
entity.
:ivar data_sources: A collection of entity references in known data sources.
:vartype data_sources: list[~azure.ai.textanalytics.HealthcareEntityDataSource]
"""
def __init__(self, **kwargs):
self.text = kwargs.get("text", None)
self.normalized_text = kwargs.get("normalized_text", None)
self.category = kwargs.get("category", None)
self.subcategory = kwargs.get("subcategory", None)
self.assertion = kwargs.get("assertion", None)
self.length = kwargs.get("length", None)
self.offset = kwargs.get("offset", None)
self.confidence_score = kwargs.get("confidence_score", None)
self.data_sources = kwargs.get("data_sources", [])
@classmethod
def _from_generated(cls, healthcare_entity):
assertion = None
try:
if healthcare_entity.assertion:
assertion = HealthcareEntityAssertion._from_generated( # pylint: disable=protected-access
healthcare_entity.assertion
)
except AttributeError:
assertion = None
return cls(
text=healthcare_entity.text,
normalized_text=healthcare_entity.name,
category=healthcare_entity.category,
subcategory=healthcare_entity.subcategory,
assertion=assertion,
length=healthcare_entity.length,
offset=healthcare_entity.offset,
confidence_score=healthcare_entity.confidence_score,
data_sources=[
HealthcareEntityDataSource(entity_id=l.id, name=l.data_source)
for l in healthcare_entity.links
]
if healthcare_entity.links
else None,
)
def __hash__(self):
return hash(repr(self))
def __repr__(self):
return (
"HealthcareEntity(text={}, normalized_text={}, category={}, subcategory={}, assertion={}, length={}, "
"offset={}, confidence_score={}, data_sources={})".format(
self.text,
self.normalized_text,
self.category,
self.subcategory,
repr(self.assertion),
self.length,
self.offset,
self.confidence_score,
repr(self.data_sources),
)[:1024]
)
class HealthcareEntityAssertion(DictMixin):
"""Contains various assertions about a `HealthcareEntity`.
For example, if an entity is a diagnosis, is this diagnosis 'conditional' on a symptom?
Are the doctors 'certain' about this diagnosis? Is this diagnosis 'associated'
with another diagnosis?
:ivar str conditionality: Describes whether the healthcare entity it's on is conditional on another entity.
For example, "If the patient has a fever, he has pneumonia", the diagnosis of pneumonia
is 'conditional' on whether the patient has a fever. Possible values are "hypothetical" and
"conditional".
:ivar str certainty: Describes how certain the healthcare entity it's on is. For example,
in "The patient may have a fever", the fever entity is not 100% certain, but is instead
"positivePossible". Possible values are "positive", "positivePossible", "neutralPossible",
"negativePossible", and "negative".
:ivar str association: Describes whether the healthcare entity it's on is the subject of the document, or
if this entity describes someone else in the document. For example, in "The subject's mother has
a fever", the "fever" entity is not associated with the subject themselves, but with the subject's
mother. Possible values are "subject" and "other".
"""
def __init__(self, **kwargs):
self.conditionality = kwargs.get("conditionality", None)
self.certainty = kwargs.get("certainty", None)
self.association = kwargs.get("association", None)
@classmethod
def _from_generated(cls, healthcare_assertion):
return cls(
conditionality=healthcare_assertion.conditionality,
certainty=healthcare_assertion.certainty,
association=healthcare_assertion.association,
)
def __repr__(self):
return "HealthcareEntityAssertion(conditionality={}, certainty={}, association={})".format(
self.conditionality, self.certainty, self.association
)
class HealthcareEntityDataSource(DictMixin):
"""
HealthcareEntityDataSource contains information representing an entity reference in a known data source.
:ivar str entity_id: ID of the entity in the given source catalog.
:ivar str name: The name of the entity catalog from where the entity was identified, such as UMLS, CHV, MSH, etc.
"""
def __init__(self, **kwargs):
self.entity_id = kwargs.get("entity_id", None)
self.name = kwargs.get("name", None)
def __repr__(self):
return "HealthcareEntityDataSource(entity_id={}, name={})".format(
self.entity_id, self.name
)[:1024]
class TextAnalyticsError(DictMixin):
"""TextAnalyticsError contains the error code, message, and
other details that explain why the batch or individual document
failed to be processed by the service.
:ivar code: Error code. Possible values include:
'invalidRequest', 'invalidArgument', 'internalServerError',
'serviceUnavailable', 'invalidParameterValue', 'invalidRequestBodyFormat',
'emptyRequest', 'missingInputRecords', 'invalidDocument', 'modelVersionIncorrect',
'invalidDocumentBatch', 'unsupportedLanguageCode', 'invalidCountryHint'
:vartype code: str
:ivar message: Error message.
:vartype message: str
:ivar target: Error target.
:vartype target: str
"""
def __init__(self, **kwargs):
self.code = kwargs.get("code", None)
self.message = kwargs.get("message", None)
self.target = kwargs.get("target", None)
@classmethod
def _from_generated(cls, err):
if err.innererror:
return cls(
code=err.innererror.code,
message=err.innererror.message,
target=err.innererror.target,
)
return cls(code=err.code, message=err.message, target=err.target)
def __repr__(self):
return "TextAnalyticsError(code={}, message={}, target={})".format(
self.code, self.message, self.target
)[:1024]
class TextAnalyticsWarning(DictMixin):
"""TextAnalyticsWarning contains the warning code and message that explains why
the response has a warning.
:ivar code: Warning code. Possible values include: 'LongWordsInDocument',
'DocumentTruncated'.
:vartype code: str
:ivar message: Warning message.
:vartype message: str
"""
def __init__(self, **kwargs):
self.code = kwargs.get("code", None)
self.message = kwargs.get("message", None)
@classmethod
def _from_generated(cls, warning):
return cls(
code=warning.code,
message=warning.message,
)
def __repr__(self):
return "TextAnalyticsWarning(code={}, message={})".format(
self.code, self.message
)[:1024]
class ExtractKeyPhrasesResult(DictMixin):
"""ExtractKeyPhrasesResult is a result object which contains
the key phrases found in a particular document.
:ivar id: Unique, non-empty document identifier that matches the
document id that was passed in with the request. If not specified
in the request, an id is assigned for the document.
:vartype id: str
:ivar key_phrases: A list of representative words or phrases.
The number of key phrases returned is proportional to the number of words
in the input document.
:vartype key_phrases: list[str]
:ivar warnings: Warnings encountered while processing document. Results will still be returned
if there are warnings, but they may not be fully accurate.
:vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning]
:ivar statistics: If `show_stats=True` was specified in the request this
field will contain information about the document payload.
:vartype statistics:
~azure.ai.textanalytics.TextDocumentStatistics
:ivar bool is_error: Boolean check for error item when iterating over list of
results. Always False for an instance of a ExtractKeyPhrasesResult.
"""
def __init__(self, **kwargs):
self.id = kwargs.get("id", None)
self.key_phrases = kwargs.get("key_phrases", None)
self.warnings = kwargs.get("warnings", [])
self.statistics = kwargs.get("statistics", None)
self.is_error = False
def __repr__(self):
return "ExtractKeyPhrasesResult(id={}, key_phrases={}, warnings={}, statistics={}, is_error={})".format(
self.id,
self.key_phrases,
repr(self.warnings),
repr(self.statistics),
self.is_error,
)[
:1024
]
class RecognizeLinkedEntitiesResult(DictMixin):
"""RecognizeLinkedEntitiesResult is a result object which contains
links to a well-known knowledge base, like for example, Wikipedia or Bing.
:ivar id: Unique, non-empty document identifier that matches the
document id that was passed in with the request. If not specified
in the request, an id is assigned for the document.
:vartype id: str
:ivar entities: Recognized well-known entities in the document.
:vartype entities:
list[~azure.ai.textanalytics.LinkedEntity]
:ivar warnings: Warnings encountered while processing document. Results will still be returned
if there are warnings, but they may not be fully accurate.
:vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning]
:ivar statistics: If `show_stats=True` was specified in the request this
field will contain information about the document payload.
:vartype statistics:
~azure.ai.textanalytics.TextDocumentStatistics
:ivar bool is_error: Boolean check for error item when iterating over list of
results. Always False for an instance of a RecognizeLinkedEntitiesResult.
"""
def __init__(self, **kwargs):
self.id = kwargs.get("id", None)
self.entities = kwargs.get("entities", None)
self.warnings = kwargs.get("warnings", [])
self.statistics = kwargs.get("statistics", None)
self.is_error = False
def __repr__(self):
return "RecognizeLinkedEntitiesResult(id={}, entities={}, warnings={}, statistics={}, is_error={})".format(
self.id,
repr(self.entities),
repr(self.warnings),
repr(self.statistics),
self.is_error,
)[
:1024
]
class AnalyzeSentimentResult(DictMixin):
"""AnalyzeSentimentResult is a result object which contains
the overall predicted sentiment and confidence scores for your document
and a per-sentence sentiment prediction with scores.
:ivar id: Unique, non-empty document identifier that matches the
document id that was passed in with the request. If not specified
in the request, an id is assigned for the document.
:vartype id: str
:ivar sentiment: Predicted sentiment for document (Negative,
Neutral, Positive, or Mixed). Possible values include: 'positive',
'neutral', 'negative', 'mixed'
:vartype sentiment: str
:ivar warnings: Warnings encountered while processing document. Results will still be returned
if there are warnings, but they may not be fully accurate.
:vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning]
:ivar statistics: If `show_stats=True` was specified in the request this
field will contain information about the document payload.
:vartype statistics:
~azure.ai.textanalytics.TextDocumentStatistics
:ivar confidence_scores: Document level sentiment confidence
scores between 0 and 1 for each sentiment label.
:vartype confidence_scores:
~azure.ai.textanalytics.SentimentConfidenceScores
:ivar sentences: Sentence level sentiment analysis.
:vartype sentences:
list[~azure.ai.textanalytics.SentenceSentiment]
:ivar bool is_error: Boolean check for error item when iterating over list of
results. Always False for an instance of a AnalyzeSentimentResult.
"""
def __init__(self, **kwargs):
self.id = kwargs.get("id", None)
self.sentiment = kwargs.get("sentiment", None)
self.warnings = kwargs.get("warnings", [])
self.statistics = kwargs.get("statistics", None)
self.confidence_scores = kwargs.get("confidence_scores", None)
self.sentences = kwargs.get("sentences", None)
self.is_error = False
def __repr__(self):
return (
"AnalyzeSentimentResult(id={}, sentiment={}, warnings={}, statistics={}, confidence_scores={}, "
"sentences={}, is_error={})".format(
self.id,
self.sentiment,
repr(self.warnings),
repr(self.statistics),
repr(self.confidence_scores),
repr(self.sentences),
self.is_error,
)[:1024]
)
class TextDocumentStatistics(DictMixin):
"""TextDocumentStatistics contains information about
the document payload.
:ivar character_count: Number of text elements recognized in
the document.
:vartype character_count: int
:ivar transaction_count: Number of transactions for the document.
:vartype transaction_count: int
"""
def __init__(self, **kwargs):
self.character_count = kwargs.get("character_count", None)
self.transaction_count = kwargs.get("transaction_count", None)
@classmethod
def _from_generated(cls, stats):
if stats is None:
return None
return cls(
character_count=stats.characters_count,
transaction_count=stats.transactions_count,
)
def __repr__(self):
return (
"TextDocumentStatistics(character_count={}, transaction_count={})".format(
self.character_count, self.transaction_count
)[:1024]
)
class DocumentError(DictMixin):
"""DocumentError is an error object which represents an error on
the individual document.
:ivar id: Unique, non-empty document identifier that matches the
document id that was passed in with the request. If not specified
in the request, an id is assigned for the document.
:vartype id: str
:ivar error: The document error.
:vartype error: ~azure.ai.textanalytics.TextAnalyticsError
:ivar bool is_error: Boolean check for error item when iterating over list of
results. Always True for an instance of a DocumentError.
"""
def __init__(self, **kwargs):
self.id = kwargs.get("id", None)
self.error = kwargs.get("error", None)
self.is_error = True
def __getattr__(self, attr):
result_set = set()
result_set.update(
RecognizeEntitiesResult().keys()
+ RecognizePiiEntitiesResult().keys()
+ DetectLanguageResult().keys()
+ RecognizeLinkedEntitiesResult().keys()
+ AnalyzeSentimentResult().keys()
+ ExtractKeyPhrasesResult().keys()
)
result_attrs = result_set.difference(DocumentError().keys())
if attr in result_attrs:
raise AttributeError(
"'DocumentError' object has no attribute '{}'. The service was unable to process this document:\n"
"Document Id: {}\nError: {} - {}\n".format(
attr, self.id, self.error.code, self.error.message
)
)
raise AttributeError(
"'DocumentError' object has no attribute '{}'".format(attr)
)
@classmethod
def _from_generated(cls, doc_err):
return cls(
id=doc_err.id,
error=TextAnalyticsError._from_generated( # pylint: disable=protected-access
doc_err.error
),
is_error=True,
)
def __repr__(self):
return "DocumentError(id={}, error={}, is_error={})".format(
self.id, repr(self.error), self.is_error
)[:1024]
class DetectLanguageInput(LanguageInput):
"""The input document to be analyzed for detecting language.
:keyword str id: Unique, non-empty document identifier.
:keyword str text: The input text to process.
:keyword str country_hint: A country hint to help better detect
the language of the text. Accepts two letter country codes
specified by ISO 3166-1 alpha-2. Defaults to "US". Pass
in the string "none" to not use a country_hint.
:ivar id: Required. Unique, non-empty document identifier.
:vartype id: str
:ivar text: Required. The input text to process.
:vartype text: str
:ivar country_hint: A country hint to help better detect
the language of the text. Accepts two letter country codes
specified by ISO 3166-1 alpha-2. Defaults to "US". Pass
in the string "none" to not use a country_hint.
:vartype country_hint: str
"""
def __init__(self, **kwargs):
super(DetectLanguageInput, self).__init__(**kwargs)
self.id = kwargs.get("id", None)
self.text = kwargs.get("text", None)
self.country_hint = kwargs.get("country_hint", None)
def __repr__(self):
return "DetectLanguageInput(id={}, text={}, country_hint={})".format(
self.id, self.text, self.country_hint
)[:1024]
class LinkedEntity(DictMixin):
"""LinkedEntity contains a link to the well-known recognized
entity in text. The link comes from a data source like Wikipedia
or Bing. It additionally includes all of the matches of this
entity found in the document.
:ivar name: Entity Linking formal name.
:vartype name: str
:ivar matches: List of instances this entity appears in the text.
:vartype matches:
list[~azure.ai.textanalytics.LinkedEntityMatch]
:ivar language: Language used in the data source.
:vartype language: str
:ivar data_source_entity_id: Unique identifier of the recognized entity from the data
source.
:vartype data_source_entity_id: str
:ivar url: URL to the entity's page from the data source.
:vartype url: str
:ivar data_source: Data source used to extract entity linking,
such as Wiki/Bing etc.
:vartype data_source: str
:ivar str bing_entity_search_api_id: Bing Entity Search unique identifier of the recognized entity.
Use in conjunction with the Bing Entity Search SDK to fetch additional relevant information.
.. versionadded:: v3.1
The *bing_entity_search_api_id* property.
"""
def __init__(self, **kwargs):
self.name = kwargs.get("name", None)
self.matches = kwargs.get("matches", None)
self.language = kwargs.get("language", None)
self.data_source_entity_id = kwargs.get("data_source_entity_id", None)
self.url = kwargs.get("url", None)
self.data_source = kwargs.get("data_source", None)
self.bing_entity_search_api_id = kwargs.get("bing_entity_search_api_id", None)
@classmethod
def _from_generated(cls, entity):
bing_entity_search_api_id = (
entity.bing_id if hasattr(entity, "bing_id") else None
)
return cls(
name=entity.name,
matches=[
LinkedEntityMatch._from_generated(e) # pylint: disable=protected-access
for e in entity.matches
],
language=entity.language,
data_source_entity_id=entity.id,
url=entity.url,
data_source=entity.data_source,
bing_entity_search_api_id=bing_entity_search_api_id,
)
def __repr__(self):
return (
"LinkedEntity(name={}, matches={}, language={}, data_source_entity_id={}, url={}, "
"data_source={}, bing_entity_search_api_id={})".format(
self.name,
repr(self.matches),
self.language,
self.data_source_entity_id,
self.url,
self.data_source,
self.bing_entity_search_api_id,
)[:1024]
)
class LinkedEntityMatch(DictMixin):
"""A match for the linked entity found in text. Provides
the confidence score of the prediction and where the entity
was found in the text.
:ivar confidence_score: If a well-known item is recognized, a
decimal number denoting the confidence level between 0 and 1 will be
returned.
:vartype confidence_score: float
:ivar text: Entity text as appears in the request.
:ivar int length: The linked entity match text length. This value depends on the value of the
`string_index_type` parameter set in the original request, which is UnicodeCodePoints by default.
:ivar int offset: The linked entity match text offset from the start of the document.
The value depends on the value of the `string_index_type` parameter
set in the original request, which is UnicodeCodePoints by default.
:vartype text: str
.. versionadded:: v3.1
The *offset* and *length* properties.
"""
def __init__(self, **kwargs):
self.confidence_score = kwargs.get("confidence_score", None)
self.text = kwargs.get("text", None)
self.length = kwargs.get("length", None)
self.offset = kwargs.get("offset", None)
@classmethod
def _from_generated(cls, match):
offset = match.offset
length = match.length
if isinstance(match, _v3_0_models.Match):
# we do not return offset for v3.0 since
# the correct encoding was not introduced for v3.0
offset = None
length = None
return cls(
confidence_score=match.confidence_score,
text=match.text,
length=length,
offset=offset,
)
def __repr__(self):
return "LinkedEntityMatch(confidence_score={}, text={}, length={}, offset={})".format(
self.confidence_score, self.text, self.length, self.offset
)[
:1024
]
class TextDocumentInput(DictMixin, MultiLanguageInput):
"""The input document to be analyzed by the service.
:keyword str id: Unique, non-empty document identifier.
:keyword str text: The input text to process.
:keyword str language: This is the 2 letter ISO 639-1 representation
of a language. For example, use "en" for English; "es" for Spanish etc. If
not set, uses "en" for English as default.
:ivar id: Required. Unique, non-empty document identifier.
:vartype id: str
:ivar text: Required. The input text to process.
:vartype text: str
:ivar language: This is the 2 letter ISO 639-1 representation
of a language. For example, use "en" for English; "es" for Spanish etc. If
not set, uses "en" for English as default.
:vartype language: str
"""
def __init__(self, **kwargs):
super(TextDocumentInput, self).__init__(**kwargs)
self.id = kwargs.get("id", None)
self.text = kwargs.get("text", None)
self.language = kwargs.get("language", None)
def __repr__(self):
return "TextDocumentInput(id={}, text={}, language={})".format(
self.id, self.text, self.language
)[:1024]
class TextDocumentBatchStatistics(DictMixin):
"""TextDocumentBatchStatistics contains information about the
request payload. Note: This object is not returned
in the response and needs to be retrieved by a response hook.
:ivar document_count: Number of documents submitted in the request.
:vartype document_count: int
:ivar valid_document_count: Number of valid documents. This
excludes empty, over-size limit or non-supported languages documents.
:vartype valid_document_count: int
:ivar erroneous_document_count: Number of invalid documents.
This includes empty, over-size limit or non-supported languages documents.
:vartype erroneous_document_count: int
:ivar transaction_count: Number of transactions for the request.
:vartype transaction_count: long
"""
def __init__(self, **kwargs):
self.document_count = kwargs.get("document_count", None)
self.valid_document_count = kwargs.get("valid_document_count", None)
self.erroneous_document_count = kwargs.get("erroneous_document_count", None)
self.transaction_count = kwargs.get("transaction_count", None)
@classmethod
def _from_generated(cls, statistics):
if statistics is None:
return None
return cls(
document_count=statistics["documentsCount"],
valid_document_count=statistics["validDocumentsCount"],
erroneous_document_count=statistics["erroneousDocumentsCount"],
transaction_count=statistics["transactionsCount"],
)
def __repr__(self):
return (
"TextDocumentBatchStatistics(document_count={}, valid_document_count={}, erroneous_document_count={}, "
"transaction_count={})".format(
self.document_count,
self.valid_document_count,
self.erroneous_document_count,
self.transaction_count,
)[:1024]
)
class SentenceSentiment(DictMixin):
"""SentenceSentiment contains the predicted sentiment and
confidence scores for each individual sentence in the document.
:ivar text: The sentence text.
:vartype text: str
:ivar sentiment: The predicted Sentiment for the sentence.
Possible values include: 'positive', 'neutral', 'negative'
:vartype sentiment: str
:ivar confidence_scores: The sentiment confidence score between 0
and 1 for the sentence for all labels.
:vartype confidence_scores:
~azure.ai.textanalytics.SentimentConfidenceScores
:ivar int length: The sentence text length. This value depends on the value of the
`string_index_type` parameter set in the original request, which is UnicodeCodePoints
by default.
:ivar int offset: The sentence text offset from the start of the document.
The value depends on the value of the `string_index_type` parameter
set in the original request, which is UnicodeCodePoints by default.
:ivar mined_opinions: The list of opinions mined from this sentence.
For example in the sentence "The food is good, but the service is bad", we would
mine the two opinions "food is good" and "service is bad". Only returned
if `show_opinion_mining` is set to True in the call to `analyze_sentiment` and
api version is v3.1 and up.
:vartype mined_opinions:
list[~azure.ai.textanalytics.MinedOpinion]
.. versionadded:: v3.1
The *offset*, *length*, and *mined_opinions* properties.
"""
def __init__(self, **kwargs):
self.text = kwargs.get("text", None)
self.sentiment = kwargs.get("sentiment", None)
self.confidence_scores = kwargs.get("confidence_scores", None)
self.length = kwargs.get("length", None)
self.offset = kwargs.get("offset", None)
self.mined_opinions = kwargs.get("mined_opinions", None)
@classmethod
def _from_generated(cls, sentence, results, sentiment):
offset = sentence.offset
length = sentence.length
if isinstance(sentence, _v3_0_models.SentenceSentiment):
# we do not return offset for v3.0 since
# the correct encoding was not introduced for v3.0
offset = None
length = None
if hasattr(sentence, "targets"):
mined_opinions = (
[
MinedOpinion._from_generated( # pylint: disable=protected-access
target, results, sentiment
)
for target in sentence.targets
]
if sentence.targets
else []
)
else:
mined_opinions = None
return cls(
text=sentence.text,
sentiment=sentence.sentiment,
confidence_scores=SentimentConfidenceScores._from_generated( # pylint: disable=protected-access
sentence.confidence_scores
),
length=length,
offset=offset,
mined_opinions=mined_opinions,
)
def __repr__(self):
return (
"SentenceSentiment(text={}, sentiment={}, confidence_scores={}, "
"length={}, offset={}, mined_opinions={})".format(
self.text,
self.sentiment,
repr(self.confidence_scores),
self.length,
self.offset,
repr(self.mined_opinions),
)[:1024]
)
class MinedOpinion(DictMixin):
"""A mined opinion object represents an opinion we've extracted from a sentence.
It consists of both a target that these opinions are about, and the assessments
representing the opinion.
:ivar target: The target of an opinion about a product/service.
:vartype target: ~azure.ai.textanalytics.TargetSentiment
:ivar assessments: The assessments representing the opinion of the target.
:vartype assessments: list[~azure.ai.textanalytics.AssessmentSentiment]
"""
def __init__(self, **kwargs):
self.target = kwargs.get("target", None)
self.assessments = kwargs.get("assessments", None)
@staticmethod
def _get_assessments(
relations, results, sentiment
): # pylint: disable=unused-argument
if not relations:
return []
assessment_relations = [
r.ref for r in relations if r.relation_type == "assessment"
]
assessments = []
for assessment_relation in assessment_relations:
nums = _get_indices(assessment_relation)
sentence_index = nums[1]
assessment_index = nums[2]
assessments.append(
sentiment.sentences[sentence_index].assessments[assessment_index]
)
return assessments
@classmethod
def _from_generated(cls, target, results, sentiment):
return cls(
target=TargetSentiment._from_generated( # pylint: disable=protected-access
target
),
assessments=[
AssessmentSentiment._from_generated( # pylint: disable=protected-access
assessment
)
for assessment in cls._get_assessments(
target.relations, results, sentiment
)
],
)
def __repr__(self):
return "MinedOpinion(target={}, assessments={})".format(
repr(self.target), repr(self.assessments)
)[:1024]
class TargetSentiment(DictMixin):
"""TargetSentiment contains the predicted sentiment,
confidence scores and other information about a key component of a product/service.
For example in "The food at Hotel Foo is good", "food" is an key component of
"Hotel Foo".
:ivar str text: The text value of the target.
:ivar str sentiment: The predicted Sentiment for the target. Possible values
include 'positive', 'mixed', and 'negative'.
:ivar confidence_scores: The sentiment confidence score between 0
and 1 for the target for 'positive' and 'negative' labels. It's score
for 'neutral' will always be 0
:vartype confidence_scores:
~azure.ai.textanalytics.SentimentConfidenceScores
:ivar int length: The target text length. This value depends on the value of the
`string_index_type` parameter set in the original request, which is UnicodeCodePoints
by default.
:ivar int offset: The target text offset from the start of the document.
The value depends on the value of the `string_index_type` parameter
set in the original request, which is UnicodeCodePoints by default.
"""
def __init__(self, **kwargs):
self.text = kwargs.get("text", None)
self.sentiment = kwargs.get("sentiment", None)
self.confidence_scores = kwargs.get("confidence_scores", None)
self.length = kwargs.get("length", None)
self.offset = kwargs.get("offset", None)
@classmethod
def _from_generated(cls, target):
return cls(
text=target.text,
sentiment=target.sentiment,
confidence_scores=SentimentConfidenceScores._from_generated( # pylint: disable=protected-access
target.confidence_scores
),
length=target.length,
offset=target.offset,
)
def __repr__(self):
return (
"TargetSentiment(text={}, sentiment={}, confidence_scores={}, "
"length={}, offset={})".format(
self.text,
self.sentiment,
repr(self.confidence_scores),
self.length,
self.offset,
)[:1024]
)
class AssessmentSentiment(DictMixin):
"""AssessmentSentiment contains the predicted sentiment,
confidence scores and other information about an assessment given about
a particular target. For example, in the sentence "The food is good", the assessment
of the target 'food' is 'good'.
:ivar str text: The assessment text.
:ivar str sentiment: The predicted Sentiment for the assessment. Possible values
include 'positive', 'mixed', and 'negative'.
:ivar confidence_scores: The sentiment confidence score between 0
and 1 for the assessment for 'positive' and 'negative' labels. It's score
for 'neutral' will always be 0
:vartype confidence_scores:
~azure.ai.textanalytics.SentimentConfidenceScores
:ivar int length: The assessment text length. This value depends on the value of the
`string_index_type` parameter set in the original request, which is UnicodeCodePoints
by default.
:ivar int offset: The assessment text offset from the start of the document.
The value depends on the value of the `string_index_type` parameter
set in the original request, which is UnicodeCodePoints by default.
:ivar bool is_negated: Whether the value of the assessment is negated. For example, in
"The food is not good", the assessment "good" is negated.
"""
def __init__(self, **kwargs):
self.text = kwargs.get("text", None)
self.sentiment = kwargs.get("sentiment", None)
self.confidence_scores = kwargs.get("confidence_scores", None)
self.length = kwargs.get("length", None)
self.offset = kwargs.get("offset", None)
self.is_negated = kwargs.get("is_negated", None)
@classmethod
def _from_generated(cls, assessment):
return cls(
text=assessment.text,
sentiment=assessment.sentiment,
confidence_scores=SentimentConfidenceScores._from_generated( # pylint: disable=protected-access
assessment.confidence_scores
),
length=assessment.length,
offset=assessment.offset,
is_negated=assessment.is_negated,
)
def __repr__(self):
return (
"AssessmentSentiment(text={}, sentiment={}, confidence_scores={}, length={}, offset={}, "
"is_negated={})".format(
self.text,
self.sentiment,
repr(self.confidence_scores),
self.length,
self.offset,
self.is_negated,
)[:1024]
)
class SentimentConfidenceScores(DictMixin):
"""The confidence scores (Softmax scores) between 0 and 1.
Higher values indicate higher confidence.
:ivar positive: Positive score.
:vartype positive: float
:ivar neutral: Neutral score.
:vartype neutral: float
:ivar negative: Negative score.
:vartype negative: float
"""
def __init__(self, **kwargs):
self.positive = kwargs.get("positive", 0.0)
self.neutral = kwargs.get("neutral", 0.0)
self.negative = kwargs.get("negative", 0.0)
@classmethod
def _from_generated(cls, score):
return cls(
positive=score.positive,
neutral=score.neutral if hasattr(score, "neutral") else 0.0,
negative=score.negative,
)
def __repr__(self):
return "SentimentConfidenceScores(positive={}, neutral={}, negative={})".format(
self.positive, self.neutral, self.negative
)[:1024]
class _AnalyzeActionsType(str, Enum):
"""The type of action that was applied to the documents"""
RECOGNIZE_ENTITIES = "recognize_entities" #: Entities Recognition action.
RECOGNIZE_PII_ENTITIES = (
"recognize_pii_entities" #: PII Entities Recognition action.
)
EXTRACT_KEY_PHRASES = "extract_key_phrases" #: Key Phrase Extraction action.
RECOGNIZE_LINKED_ENTITIES = (
"recognize_linked_entities" #: Linked Entities Recognition action.
)
ANALYZE_SENTIMENT = "analyze_sentiment" #: Sentiment Analysis action.
EXTRACT_SUMMARY = "extract_summary"
class RecognizeEntitiesAction(DictMixin):
"""RecognizeEntitiesAction encapsulates the parameters for starting a long-running Entities Recognition operation.
If you just want to recognize entities in a list of documents, and not perform multiple
long running actions on the input of documents, call method `recognize_entities` instead
of interfacing with this model.
:keyword str model_version: The model version to use for the analysis.
:keyword str string_index_type: Specifies the method used to interpret string offsets.
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
see https://aka.ms/text-analytics-offsets
:keyword bool disable_service_logs: If set to true, you opt-out of having your text input
logged on the service side for troubleshooting. By default, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Setting this parameter to true,
disables input logging and may limit our ability to remediate issues that occur. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
:ivar str model_version: The model version to use for the analysis.
:ivar str string_index_type: Specifies the method used to interpret string offsets.
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
see https://aka.ms/text-analytics-offsets
:ivar bool disable_service_logs: If set to true, you opt-out of having your text input
logged on the service side for troubleshooting. By default, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Setting this parameter to true,
disables input logging and may limit our ability to remediate issues that occur. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
"""
def __init__(self, **kwargs):
self.model_version = kwargs.get("model_version", "latest")
self.string_index_type = kwargs.get("string_index_type", "UnicodeCodePoint")
self.disable_service_logs = kwargs.get("disable_service_logs", False)
def __repr__(self, **kwargs):
return "RecognizeEntitiesAction(model_version={}, string_index_type={}, disable_service_logs={})".format(
self.model_version, self.string_index_type, self.disable_service_logs
)[
:1024
]
def _to_generated(self, api_version):
if api_version == DEFAULT_API_VERSION:
from ._generated.v3_2_preview_1 import models
else:
from ._generated.v3_1 import models
return models.EntitiesTask(
parameters=models.EntitiesTaskParameters(
model_version=self.model_version,
string_index_type=self.string_index_type,
logging_opt_out=self.disable_service_logs,
)
)
class AnalyzeSentimentAction(DictMixin):
"""AnalyzeSentimentAction encapsulates the parameters for starting a long-running
Sentiment Analysis operation.
If you just want to analyze sentiment in a list of documents, and not perform multiple
long running actions on the input of documents, call method `analyze_sentiment` instead
of interfacing with this model.
:keyword str model_version: The model version to use for the analysis.
:keyword bool show_opinion_mining: Whether to mine the opinions of a sentence and conduct more
granular analysis around the aspects of a product or service (also known as
aspect-based sentiment analysis). If set to true, the returned
:class:`~azure.ai.textanalytics.SentenceSentiment` objects
will have property `mined_opinions` containing the result of this analysis.
:keyword str string_index_type: Specifies the method used to interpret string offsets.
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
see https://aka.ms/text-analytics-offsets
:keyword bool disable_service_logs: If set to true, you opt-out of having your text input
logged on the service side for troubleshooting. By default, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Setting this parameter to true,
disables input logging and may limit our ability to remediate issues that occur. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
:ivar str model_version: The model version to use for the analysis.
:ivar bool show_opinion_mining: Whether to mine the opinions of a sentence and conduct more
granular analysis around the aspects of a product or service (also known as
aspect-based sentiment analysis). If set to true, the returned
:class:`~azure.ai.textanalytics.SentenceSentiment` objects
will have property `mined_opinions` containing the result of this analysis.
:ivar str string_index_type: Specifies the method used to interpret string offsets.
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
see https://aka.ms/text-analytics-offsets
:ivar bool disable_service_logs: If set to true, you opt-out of having your text input
logged on the service side for troubleshooting. By default, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Setting this parameter to true,
disables input logging and may limit our ability to remediate issues that occur. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
"""
def __init__(self, **kwargs):
self.model_version = kwargs.get("model_version", "latest")
self.show_opinion_mining = kwargs.get("show_opinion_mining", False)
self.string_index_type = kwargs.get("string_index_type", None)
self.disable_service_logs = kwargs.get("disable_service_logs", False)
def __repr__(self, **kwargs):
return (
"AnalyzeSentimentAction(model_version={}, show_opinion_mining={}, string_index_type={}, "
"disable_service_logs={}".format(
self.model_version,
self.show_opinion_mining,
self.string_index_type,
self.disable_service_logs,
)[:1024]
)
def _to_generated(self, api_version):
if api_version == DEFAULT_API_VERSION:
from ._generated.v3_2_preview_1 import models
else:
from ._generated.v3_1 import models
return models.SentimentAnalysisTask(
parameters=models.SentimentAnalysisTaskParameters(
model_version=self.model_version,
opinion_mining=self.show_opinion_mining,
string_index_type=self.string_index_type,
logging_opt_out=self.disable_service_logs,
)
)
class RecognizePiiEntitiesAction(DictMixin):
"""RecognizePiiEntitiesAction encapsulates the parameters for starting a long-running PII
Entities Recognition operation.
If you just want to recognize pii entities in a list of documents, and not perform multiple
long running actions on the input of documents, call method `recognize_pii_entities` instead
of interfacing with this model.
:keyword str model_version: The model version to use for the analysis.
:keyword str domain_filter: An optional string to set the PII domain to include only a
subset of the PII entity categories. Possible values include 'phi' or None.
:keyword categories_filter: Instead of filtering over all PII entity categories, you can pass in a list of
the specific PII entity categories you want to filter out. For example, if you only want to filter out
U.S. social security numbers in a document, you can pass in
`[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]` for this kwarg.
:paramtype categories_filter: list[~azure.ai.textanalytics.PiiEntityCategory]
:keyword str string_index_type: Specifies the method used to interpret string offsets.
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
see https://aka.ms/text-analytics-offsets
:keyword bool disable_service_logs: Defaults to true, meaning that Text Analytics will not log your
input text on the service side for troubleshooting. If set to False, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
:ivar str model_version: The model version to use for the analysis.
:ivar str domain_filter: An optional string to set the PII domain to include only a
subset of the PII entity categories. Possible values include 'phi' or None.
:ivar categories_filter: Instead of filtering over all PII entity categories, you can pass in a list of
the specific PII entity categories you want to filter out. For example, if you only want to filter out
U.S. social security numbers in a document, you can pass in
`[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]` for this kwarg.
:vartype categories_filter: list[~azure.ai.textanalytics.PiiEntityCategory]
:ivar str string_index_type: Specifies the method used to interpret string offsets.
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
see https://aka.ms/text-analytics-offsets
:ivar bool disable_service_logs: Defaults to true, meaning that Text Analytics will not log your
input text on the service side for troubleshooting. If set to False, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
"""
def __init__(self, **kwargs):
self.model_version = kwargs.get("model_version", "latest")
self.domain_filter = kwargs.get("domain_filter", None)
self.categories_filter = kwargs.get("categories_filter", None)
self.string_index_type = kwargs.get("string_index_type", "UnicodeCodePoint")
self.disable_service_logs = kwargs.get("disable_service_logs", True)
def __repr__(self, **kwargs):
return (
"RecognizePiiEntitiesAction(model_version={}, domain_filter={}, categories_filter={}, "
"string_index_type={}, disable_service_logs={}".format(
self.model_version,
self.domain_filter,
self.categories_filter,
self.string_index_type,
self.disable_service_logs,
)[:1024]
)
def _to_generated(self, api_version):
if api_version == DEFAULT_API_VERSION:
from ._generated.v3_2_preview_1 import models
else:
from ._generated.v3_1 import models
return models.PiiTask(
parameters=models.PiiTaskParameters(
model_version=self.model_version,
domain=self.domain_filter,
pii_categories=self.categories_filter,
string_index_type=self.string_index_type,
logging_opt_out=self.disable_service_logs,
)
)
class ExtractKeyPhrasesAction(DictMixin):
"""ExtractKeyPhrasesAction encapsulates the parameters for starting a long-running key phrase
extraction operation
If you just want to extract key phrases from a list of documents, and not perform multiple
long running actions on the input of documents, call method `extract_key_phrases` instead
of interfacing with this model.
:keyword str model_version: The model version to use for the analysis.
:keyword bool disable_service_logs: If set to true, you opt-out of having your text input
logged on the service side for troubleshooting. By default, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Setting this parameter to true,
disables input logging and may limit our ability to remediate issues that occur. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
:ivar str model_version: The model version to use for the analysis.
:ivar bool disable_service_logs: If set to true, you opt-out of having your text input
logged on the service side for troubleshooting. By default, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Setting this parameter to true,
disables input logging and may limit our ability to remediate issues that occur. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
"""
def __init__(self, **kwargs):
self.model_version = kwargs.get("model_version", "latest")
self.disable_service_logs = kwargs.get("disable_service_logs", False)
def __repr__(self, **kwargs):
return (
"ExtractKeyPhrasesAction(model_version={}, disable_service_logs={})".format(
self.model_version, self.disable_service_logs
)[:1024]
)
def _to_generated(self, api_version):
if api_version == DEFAULT_API_VERSION:
from ._generated.v3_2_preview_1 import models
else:
from ._generated.v3_1 import models
return models.KeyPhrasesTask(
parameters=models.KeyPhrasesTaskParameters(
model_version=self.model_version,
logging_opt_out=self.disable_service_logs,
)
)
class RecognizeLinkedEntitiesAction(DictMixin):
"""RecognizeLinkedEntitiesAction encapsulates the parameters for starting a long-running Linked Entities
Recognition operation.
If you just want to recognize linked entities in a list of documents, and not perform multiple
long running actions on the input of documents, call method `recognize_linked_entities` instead
of interfacing with this model.
:keyword str model_version: The model version to use for the analysis.
:keyword str string_index_type: Specifies the method used to interpret string offsets.
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
see https://aka.ms/text-analytics-offsets
:keyword bool disable_service_logs: If set to true, you opt-out of having your text input
logged on the service side for troubleshooting. By default, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Setting this parameter to true,
disables input logging and may limit our ability to remediate issues that occur. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
:ivar str model_version: The model version to use for the analysis.
:ivar str string_index_type: Specifies the method used to interpret string offsets.
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
see https://aka.ms/text-analytics-offsets
:ivar bool disable_service_logs: If set to true, you opt-out of having your text input
logged on the service side for troubleshooting. By default, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Setting this parameter to true,
disables input logging and may limit our ability to remediate issues that occur. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
"""
def __init__(self, **kwargs):
self.model_version = kwargs.get("model_version", "latest")
self.string_index_type = kwargs.get("string_index_type", "UnicodeCodePoint")
self.disable_service_logs = kwargs.get("disable_service_logs", False)
def __repr__(self, **kwargs):
return (
"RecognizeLinkedEntitiesAction(model_version={}, string_index_type={}), "
"disable_service_logs={}".format(
self.model_version, self.string_index_type, self.disable_service_logs
)[:1024]
)
def _to_generated(self, api_version):
if api_version == DEFAULT_API_VERSION:
from ._generated.v3_2_preview_1 import models
else:
from ._generated.v3_1 import models
return models.EntityLinkingTask(
parameters=models.EntityLinkingTaskParameters(
model_version=self.model_version,
string_index_type=self.string_index_type,
logging_opt_out=self.disable_service_logs,
)
)
class ExtractSummaryAction(DictMixin):
"""ExtractSummaryAction encapsulates the parameters for starting a long-running Extractive
Text Summarization operation.
:keyword str model_version: The model version to use for the analysis.
:keyword str string_index_type: Specifies the method used to interpret string offsets.
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
see https://aka.ms/text-analytics-offsets
:keyword bool disable_service_logs: If set to true, you opt-out of having your text input
logged on the service side for troubleshooting. By default, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Setting this parameter to true,
disables input logging and may limit our ability to remediate issues that occur. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
:keyword int max_sentence_count: Maximum number of sentences to return. Defaults to 3.
:keyword str order_by: Possible values include: "Offset", "Rank". Default value: "Offset".
:ivar str model_version: The model version to use for the analysis.
:ivar str string_index_type: Specifies the method used to interpret string offsets.
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
see https://aka.ms/text-analytics-offsets
:ivar bool disable_service_logs: If set to true, you opt-out of having your text input
logged on the service side for troubleshooting. By default, Text Analytics logs your
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
the Text Analytics natural language processing functions. Setting this parameter to true,
disables input logging and may limit our ability to remediate issues that occur. Please see
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
additional details, and Microsoft Responsible AI principles at
https://www.microsoft.com/ai/responsible-ai.
:ivar int max_sentence_count: Number of sentences to return. Defaults to 3.
:ivar str order_by: Possible values include: "Offset", "Rank". Default value: "Offset".
"""
def __init__(self, **kwargs):
self.model_version = kwargs.get("model_version", "latest")
self.string_index_type = kwargs.get("string_index_type", "UnicodeCodePoint")
self.disable_service_logs = kwargs.get("disable_service_logs", False)
self.max_sentence_count = kwargs.get("max_sentence_count", 3)
self.order_by = kwargs.get("order_by", "Offset")
def __repr__(self):
return (
"ExtractSummaryAction(model_version={}, string_index_type={}, disable_service_logs={}, "
"max_sentence_count={}, order_by={})".format(
self.model_version,
self.string_index_type,
self.disable_service_logs,
self.max_sentence_count,
self.order_by,
)[:1024]
)
def _to_generated(self, api_version): # pylint: disable=unused-argument
return _v3_2_preview_1_models.ExtractiveSummarizationTask(
parameters=_v3_2_preview_1_models.ExtractiveSummarizationTaskParameters(
model_version=self.model_version,
string_index_type=self.string_index_type,
logging_opt_out=self.disable_service_logs,
sentence_count=self.max_sentence_count,
sort_by=self.order_by,
)
)
class ExtractSummaryResult(DictMixin):
"""ExtractSummaryResult is a result object which contains
the extractive text summarization from a particular document.
:ivar str id: Unique, non-empty document identifier.
:ivar sentences: A ranked list of sentences representing the extracted summary.
:vartype sentences: list[~azure.ai.textanalytics.SummarySentence]
:ivar warnings: Warnings encountered while processing document.
:vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning]
:ivar statistics: If `show_stats=True` was specified in the request this
field will contain information about the document payload.
:vartype statistics: ~azure.ai.textanalytics.TextDocumentStatistics
:ivar bool is_error: Boolean check for error item when iterating over list of
results. Always False for an instance of an ExtractSummaryResult.
"""
def __init__(self, **kwargs):
self.id = kwargs.get("id", None)
self.sentences = kwargs.get("sentences", None)
self.warnings = kwargs.get("warnings", None)
self.statistics = kwargs.get("statistics", None)
self.is_error = False
def __repr__(self):
return "ExtractSummaryResult(id={}, sentences={}, warnings={}, statistics={}, is_error={})".format(
self.id,
repr(self.sentences),
repr(self.warnings),
repr(self.statistics),
self.is_error,
)[
:1024
]
@classmethod
def _from_generated(cls, summary):
return cls(
id=summary.id,
sentences=[
SummarySentence._from_generated( # pylint: disable=protected-access
sentence
)
for sentence in summary.sentences
],
warnings=[
TextAnalyticsWarning._from_generated( # pylint: disable=protected-access
w
)
for w in summary.warnings
],
statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access
summary.statistics
),
)
class SummarySentence(DictMixin):
"""Represents a single sentence from the extractive text summarization.
:ivar str text: The extracted sentence text.
:ivar float rank_score: A float value representing the relevance of the sentence within
the summary. Higher values indicate higher importance.
:ivar int offset: The sentence offset from the start of the document.
The value depends on the value of the `string_index_type` parameter
set in the original request, which is UnicodeCodePoint by default.
:ivar int length: The length of the sentence. This value depends on the value of the
`string_index_type` parameter set in the original request, which is UnicodeCodePoint
by default.
"""
def __init__(self, **kwargs):
self.text = kwargs.get("text", None)
self.rank_score = kwargs.get("rank_score", None)
self.offset = kwargs.get("offset", None)
self.length = kwargs.get("length", None)
def __repr__(self):
return "SummarySentence(text={}, rank_score={}, offset={}, length={})".format(
self.text,
self.rank_score,
self.offset,
self.length,
)[:1024]
@classmethod
def _from_generated(cls, sentence):
return cls(
text=sentence.text,
rank_score=sentence.rank_score,
offset=sentence.offset,
length=sentence.length,
)
| [
1,
529,
276,
1112,
420,
29958,
2288,
29881,
1148,
814,
29891,
29914,
17688,
29899,
15348,
29899,
1454,
29899,
4691,
13,
29937,
14137,
29922,
9420,
29899,
29947,
29871,
282,
2904,
524,
29901,
11262,
29922,
517,
29877,
29899,
13011,
29899,
9012,
13,
29937,
448,
2683,
2683,
5634,
13,
29937,
14187,
1266,
313,
29883,
29897,
7783,
15025,
29889,
13,
29937,
10413,
21144,
1090,
278,
341,
1806,
19245,
29889,
13,
29937,
448,
2683,
2683,
5634,
13,
5215,
337,
13,
3166,
14115,
1053,
1174,
398,
13,
3166,
869,
29918,
13525,
29889,
9794,
1053,
313,
13,
1678,
17088,
4290,
29892,
13,
1678,
14974,
21233,
4290,
29892,
13,
29897,
13,
13,
3166,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29900,
1053,
4733,
408,
903,
29894,
29941,
29918,
29900,
29918,
9794,
13,
3166,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29906,
29918,
25347,
29918,
29896,
1053,
4733,
408,
903,
29894,
29941,
29918,
29906,
29918,
25347,
29918,
29896,
29918,
9794,
13,
3166,
869,
29918,
3259,
1053,
22236,
29918,
8787,
29918,
16358,
13,
13,
13,
1753,
903,
657,
29918,
513,
1575,
29898,
23445,
1125,
13,
1678,
736,
518,
524,
29898,
29879,
29897,
363,
269,
297,
337,
29889,
2886,
497,
29898,
29878,
26732,
29881,
29974,
613,
8220,
4638,
13,
13,
13,
1990,
360,
919,
29924,
861,
262,
29898,
3318,
1125,
13,
1678,
822,
4770,
842,
667,
12035,
1311,
29892,
1820,
29892,
2944,
1125,
13,
4706,
1583,
17255,
8977,
1649,
29961,
1989,
29962,
353,
2944,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
1820,
1125,
13,
4706,
736,
1583,
17255,
8977,
1649,
29961,
1989,
29962,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
851,
29898,
1311,
29897,
13,
13,
1678,
822,
4770,
2435,
12035,
1311,
1125,
13,
4706,
736,
7431,
29898,
1311,
29889,
8149,
3101,
13,
13,
1678,
822,
4770,
6144,
667,
12035,
1311,
29892,
1820,
1125,
13,
4706,
1583,
17255,
8977,
1649,
29961,
1989,
29962,
353,
6213,
13,
13,
1678,
822,
4770,
1837,
12035,
1311,
29892,
916,
1125,
13,
4706,
9995,
6843,
598,
3618,
491,
17420,
599,
8393,
1213,
15945,
13,
4706,
565,
338,
8758,
29898,
1228,
29892,
1583,
17255,
1990,
1649,
1125,
13,
9651,
736,
1583,
17255,
8977,
1649,
1275,
916,
17255,
8977,
1649,
13,
4706,
736,
7700,
13,
13,
1678,
822,
4770,
484,
12035,
1311,
29892,
916,
1125,
13,
4706,
9995,
6843,
598,
3618,
491,
17420,
599,
8393,
1213,
15945,
13,
4706,
736,
451,
1583,
17255,
1837,
12035,
1228,
29897,
13,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
1820,
1125,
13,
4706,
736,
1820,
297,
1583,
17255,
8977,
1649,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
851,
3319,
29895,
29901,
325,
363,
413,
29892,
325,
297,
1583,
17255,
8977,
26914,
7076,
580,
565,
451,
413,
29889,
27382,
2541,
703,
29918,
1159,
1800,
13,
13,
1678,
822,
756,
29918,
1989,
29898,
1311,
29892,
413,
1125,
13,
4706,
736,
413,
297,
1583,
17255,
8977,
1649,
13,
13,
1678,
822,
2767,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
736,
1583,
17255,
8977,
26914,
5504,
10456,
5085,
29892,
3579,
19290,
29897,
13,
13,
1678,
822,
6611,
29898,
1311,
1125,
13,
4706,
736,
518,
29895,
363,
413,
297,
1583,
17255,
8977,
1649,
565,
451,
413,
29889,
27382,
2541,
703,
29918,
13531,
13,
13,
1678,
822,
1819,
29898,
1311,
1125,
13,
4706,
736,
518,
29894,
363,
413,
29892,
325,
297,
1583,
17255,
8977,
26914,
7076,
580,
565,
451,
413,
29889,
27382,
2541,
703,
29918,
13531,
13,
13,
1678,
822,
4452,
29898,
1311,
1125,
13,
4706,
736,
17288,
29895,
29892,
325,
29897,
363,
413,
29892,
325,
297,
1583,
17255,
8977,
26914,
7076,
580,
565,
451,
413,
29889,
27382,
2541,
703,
29918,
13531,
13,
13,
1678,
822,
679,
29898,
1311,
29892,
1820,
29892,
2322,
29922,
8516,
1125,
13,
4706,
565,
1820,
297,
1583,
17255,
8977,
1649,
29901,
13,
9651,
736,
1583,
17255,
8977,
1649,
29961,
1989,
29962,
13,
4706,
736,
2322,
13,
13,
13,
1990,
14945,
29254,
362,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
9995,
4002,
699,
5707,
565,
278,
7855,
338,
278,
4967,
310,
278,
1426,
470,
565,
372,
16612,
4856,
1683,
1213,
15945,
13,
13,
1678,
27092,
17637,
353,
376,
16009,
29908,
13,
1678,
438,
29911,
4448,
353,
376,
1228,
29908,
13,
13,
13,
1990,
14945,
29907,
13946,
1017,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
9995,
4002,
699,
5707,
278,
16212,
3058,
1017,
322,
16755,
537,
1213,
15945,
13,
13,
1678,
349,
3267,
1806,
18474,
353,
376,
1066,
3321,
29908,
13,
1678,
349,
3267,
1806,
18474,
29918,
13152,
1799,
8979,
1307,
353,
376,
1066,
3321,
9135,
1687,
29908,
13,
1678,
14693,
2692,
29934,
1964,
29918,
13152,
1799,
8979,
1307,
353,
376,
17821,
1705,
9135,
1687,
29908,
13,
1678,
405,
11787,
1299,
18474,
29918,
13152,
1799,
8979,
1307,
353,
376,
22198,
9135,
1687,
29908,
13,
1678,
405,
11787,
1299,
18474,
353,
376,
22198,
29908,
13,
13,
13,
1990,
14945,
25255,
2877,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
9995,
4002,
699,
5707,
738,
4195,
2877,
373,
278,
7855,
1213,
15945,
13,
13,
1678,
379,
29979,
29925,
2891,
29950,
2544,
2965,
1964,
353,
376,
29882,
1478,
720,
300,
936,
29908,
13,
1678,
8707,
29928,
22122,
1964,
353,
376,
1116,
3245,
29908,
13,
13,
13,
1990,
15202,
18020,
6691,
9662,
362,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
9995,
1542,
310,
8220,
29889,
1222,
9422,
3160,
29901,
525,
29928,
359,
482,
2776,
29924,
7486,
362,
29915,
470,
525,
23923,
23860,
2776,
29924,
7486,
362,
742,
2992,
1213,
15945,
13,
13,
1678,
319,
14388,
1525,
18118,
8098,
353,
376,
4920,
1030,
14641,
29908,
13,
1678,
22471,
1525,
9838,
29918,
9800,
29918,
8456,
29928,
29979,
29918,
10810,
29965,
1783,
11499,
353,
376,
21602,
2776,
8434,
5015,
12425,
29908,
13,
1678,
22471,
1525,
9838,
29918,
9800,
29918,
6007,
29928,
22122,
353,
376,
21602,
2776,
25255,
29908,
13,
1678,
22471,
1525,
9838,
29918,
9800,
29918,
5746,
5194,
1177,
8098,
353,
376,
21602,
2776,
1252,
314,
3381,
29908,
13,
1678,
22471,
1525,
9838,
29918,
9800,
29918,
29911,
1525,
1299,
13780,
353,
376,
21602,
2776,
29911,
276,
271,
358,
29908,
13,
1678,
360,
3267,
10461,
29918,
9800,
29918,
2303,
29928,
28541,
353,
376,
29928,
359,
482,
2776,
29924,
7486,
362,
29908,
13,
1678,
383,
12054,
29918,
9800,
29918,
2303,
29928,
28541,
353,
376,
2500,
2776,
29924,
7486,
362,
29908,
13,
1678,
383,
1525,
13356,
1430,
29907,
29979,
29918,
9800,
29918,
2303,
29928,
28541,
353,
376,
23923,
23860,
2776,
29924,
7486,
362,
29908,
13,
1678,
383,
1525,
13356,
1430,
29907,
29979,
29918,
9800,
29918,
29911,
1525,
1299,
13780,
353,
376,
23923,
23860,
2776,
29911,
276,
271,
358,
29908,
13,
1678,
660,
29965,
1964,
29902,
3738,
1001,
29918,
9800,
29918,
6007,
29928,
22122,
353,
376,
24399,
3709,
2776,
25255,
29908,
13,
1678,
5195,
29931,
8098,
29918,
9800,
29918,
5746,
5194,
1177,
8098,
353,
376,
9662,
362,
2776,
1252,
314,
3381,
29908,
13,
1678,
390,
12015,
29923,
29918,
9800,
29918,
2303,
29928,
28541,
353,
376,
12085,
2776,
29924,
7486,
362,
29908,
13,
1678,
323,
8890,
29918,
9800,
29918,
6007,
29928,
22122,
353,
376,
2481,
2776,
25255,
29908,
13,
1678,
323,
8890,
29918,
9800,
29918,
22240,
3919,
353,
376,
2481,
2776,
2624,
29908,
13,
1678,
323,
8890,
29918,
9800,
29918,
5746,
5194,
1177,
8098,
353,
376,
2481,
2776,
1252,
314,
3381,
29908,
13,
1678,
323,
8890,
29918,
9800,
29918,
2303,
29928,
28541,
353,
376,
2481,
2776,
29924,
7486,
362,
29908,
13,
1678,
323,
8890,
29918,
9800,
29918,
29911,
1525,
1299,
13780,
353,
376,
2481,
2776,
29911,
276,
271,
358,
29908,
13,
1678,
8291,
1806,
29918,
9800,
29918,
6007,
29928,
22122,
353,
376,
8325,
2776,
25255,
29908,
13,
1678,
8291,
1806,
29918,
9800,
29918,
5746,
5194,
1177,
8098,
353,
376,
8325,
2776,
1252,
314,
3381,
29908,
13,
1678,
12599,
4462,
29918,
9800,
29918,
6007,
29928,
22122,
353,
376,
1917,
2776,
25255,
29908,
13,
1678,
12599,
4462,
29918,
9800,
29918,
5746,
5194,
1177,
8098,
353,
376,
1917,
2776,
1252,
314,
3381,
29908,
13,
13,
13,
1990,
349,
2236,
6691,
10900,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
9995,
29907,
14404,
310,
5196,
635,
13355,
28677,
10343,
313,
2227,
29902,
467,
15945,
29908,
13,
13,
1678,
319,
5688,
29918,
1672,
2692,
4214,
29918,
23207,
353,
376,
2882,
1718,
449,
292,
4557,
29908,
13,
1678,
9033,
29918,
29940,
8098,
1964,
29918,
1367,
3919,
11937,
29918,
23207,
353,
376,
15249,
1288,
18415,
4557,
29908,
13,
1678,
319,
29965,
29918,
29933,
2190,
29968,
29918,
2477,
18736,
29918,
23207,
353,
376,
29909,
7466,
804,
10601,
4557,
29908,
13,
1678,
319,
29965,
29918,
29928,
3960,
5348,
29903,
29918,
27888,
1430,
1660,
29918,
23207,
353,
376,
29909,
15789,
374,
874,
29931,
293,
1947,
4557,
29908,
13,
1678,
319,
29965,
29918,
2303,
29928,
2965,
1964,
29918,
2477,
18736,
29918,
23207,
353,
376,
29909,
5005,
287,
936,
10601,
4557,
29908,
13,
1678,
319,
29965,
29918,
25711,
15082,
29918,
23207,
353,
376,
29909,
4897,
465,
637,
4557,
29908,
13,
1678,
319,
29965,
29918,
6040,
29990,
29918,
7724,
29918,
23207,
353,
376,
20656,
1165,
2283,
4557,
29908,
13,
1678,
319,
29965,
29918,
29933,
3308,
8895,
1799,
29918,
23207,
353,
376,
29909,
7466,
375,
3335,
4557,
29908,
13,
1678,
319,
29965,
29918,
21514,
2190,
29979,
29918,
23207,
353,
376,
25951,
21410,
4557,
29908,
13,
1678,
15531,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
353,
376,
1299,
18415,
13200,
29908,
13,
1678,
15531,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
1299,
29911,
1165,
7648,
2450,
4557,
29908,
13,
1678,
15531,
29918,
19143,
29918,
3035,
2287,
29928,
29918,
6040,
29990,
29918,
23207,
353,
376,
1299,
1917,
2528,
287,
29911,
1165,
4557,
29908,
13,
1678,
319,
29999,
11499,
29918,
28665,
5005,
3919,
29918,
4051,
29918,
20656,
29950,
29918,
10818,
353,
376,
28413,
6268,
4051,
6444,
2558,
29908,
13,
1678,
319,
29999,
11499,
29918,
10764,
3289,
29918,
25832,
27982,
29918,
6007,
8186,
9838,
29918,
9468,
29918,
4176,
29918,
20785,
353,
313,
13,
4706,
376,
28413,
10764,
3289,
9112,
5350,
2855,
4176,
1231,
29908,
13,
1678,
1723,
13,
1678,
319,
29999,
11499,
29918,
5971,
29918,
29911,
29918,
6007,
8186,
9838,
29918,
20785,
353,
376,
28413,
29902,
29877,
29911,
5350,
1231,
29908,
13,
1678,
319,
29999,
11499,
29918,
7056,
13367,
3235,
29950,
29918,
10490,
29911,
4214,
29918,
25711,
17013,
353,
9872,
25711,
17013,
11903,
13,
1678,
319,
29999,
11499,
29918,
19386,
3235,
29918,
29907,
2477,
9606,
29918,
20785,
353,
376,
28413,
9039,
275,
10408,
1231,
29908,
13,
1678,
319,
29999,
11499,
29918,
29903,
3289,
353,
376,
28413,
29903,
3289,
29908,
13,
1678,
319,
29999,
11499,
29918,
6304,
19059,
29918,
29933,
3308,
29918,
20785,
353,
376,
28413,
3170,
16890,
1231,
29908,
13,
1678,
319,
29999,
11499,
29918,
1254,
1955,
10461,
29918,
2477,
18736,
29918,
10818,
353,
376,
28413,
10486,
10601,
2558,
29908,
13,
1678,
319,
29999,
11499,
29918,
1254,
1955,
10461,
29918,
2477,
18736,
29918,
24647,
1001,
2965,
353,
376,
28413,
10486,
10601,
15809,
29908,
13,
1678,
20700,
29918,
29940,
8098,
1964,
29918,
23207,
353,
376,
29933,
1430,
1288,
4557,
29908,
13,
1678,
20700,
29918,
29940,
8098,
1964,
29918,
23207,
29918,
29963,
29906,
353,
376,
29933,
1430,
1288,
4557,
29963,
29906,
29908,
13,
1678,
20700,
29918,
19143,
29918,
3035,
2287,
29928,
29918,
6040,
29990,
29918,
23207,
353,
376,
15349,
1917,
2528,
287,
29911,
1165,
4557,
29908,
13,
1678,
25185,
6271,
29943,
29918,
23207,
353,
376,
15176,
6271,
29943,
4557,
29908,
13,
1678,
25185,
29918,
1307,
29954,
1964,
29918,
3919,
11937,
29918,
23207,
353,
376,
29933,
2241,
387,
284,
6691,
4557,
29908,
13,
1678,
25185,
29918,
29940,
8098,
1964,
29918,
1367,
29934,
29954,
353,
376,
15176,
27325,
1367,
29934,
29954,
29908,
13,
1678,
350,
29954,
29918,
3904,
6545,
12054,
29918,
29907,
5667,
6227,
29918,
23207,
353,
376,
29933,
29954,
2525,
5560,
29907,
5341,
4557,
29908,
13,
1678,
12766,
29918,
29933,
2190,
29968,
29918,
2477,
18736,
29918,
23207,
353,
376,
29907,
2882,
804,
10601,
4557,
29908,
13,
1678,
12766,
29918,
29928,
3960,
5348,
29903,
29918,
27888,
1430,
1660,
29918,
23207,
353,
376,
29907,
3035,
374,
874,
29931,
293,
1947,
4557,
29908,
13,
1678,
12766,
29918,
9606,
1964,
4690,
29918,
6304,
19059,
29918,
23207,
353,
376,
5454,
3868,
4298,
3170,
4557,
29908,
13,
1678,
12766,
29918,
25711,
15082,
29918,
23207,
353,
376,
29907,
3301,
465,
637,
4557,
29908,
13,
1678,
12766,
29918,
13171,
3094,
1964,
29918,
9606,
1964,
4690,
29918,
1367,
3919,
6545,
28541,
353,
376,
29907,
3301,
1330,
284,
3868,
4298,
7648,
2450,
29908,
13,
1678,
12766,
29918,
6156,
8426,
1964,
29918,
1177,
29903,
4574,
23219,
29918,
23207,
353,
376,
29907,
3289,
29877,
1455,
797,
7610,
749,
4557,
29908,
13,
1678,
17332,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
29918,
23207,
353,
376,
6154,
18415,
13200,
4557,
29908,
13,
1678,
315,
29940,
29918,
15989,
1367,
3919,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
29918,
23207,
353,
376,
13778,
1666,
1693,
18415,
13200,
4557,
29908,
13,
1678,
315,
19386,
1806,
29918,
29907,
17011,
29918,
23207,
353,
376,
15507,
277,
13200,
4557,
29908,
13,
1678,
379,
29934,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
29918,
23207,
353,
376,
20938,
18415,
13200,
4557,
29908,
13,
1678,
379,
29934,
29918,
29940,
8098,
1964,
29918,
1367,
29918,
23207,
353,
376,
20938,
27325,
1367,
4557,
29908,
13,
1678,
379,
29934,
29918,
13171,
3094,
1964,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
20938,
7435,
284,
7648,
2450,
4557,
29908,
13,
1678,
379,
29934,
29918,
13171,
3094,
1964,
29918,
1367,
3919,
6545,
28541,
29918,
29949,
8979,
29918,
23207,
29918,
29963,
29906,
353,
376,
20938,
7435,
284,
7648,
2450,
29949,
8979,
4557,
29963,
29906,
29908,
13,
1678,
315,
29979,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
353,
376,
29907,
29979,
18415,
13200,
29908,
13,
1678,
315,
29979,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29907,
29979,
29911,
1165,
7648,
2450,
4557,
29908,
13,
1678,
315,
29999,
29918,
13171,
3094,
1964,
29918,
1367,
3919,
11937,
29918,
23207,
353,
376,
29907,
29999,
7435,
284,
18415,
4557,
29908,
13,
1678,
315,
29999,
29918,
13171,
3094,
1964,
29918,
1367,
3919,
11937,
29918,
29963,
29906,
353,
376,
29907,
29999,
7435,
284,
18415,
29963,
29906,
29908,
13,
1678,
360,
29968,
29918,
13171,
3094,
1964,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
17359,
7435,
284,
7648,
2450,
4557,
29908,
13,
1678,
360,
29968,
29918,
13171,
3094,
1964,
29918,
1367,
3919,
6545,
28541,
29918,
29963,
29906,
353,
376,
17359,
7435,
284,
7648,
2450,
29963,
29906,
29908,
13,
1678,
26900,
23338,
29918,
1430,
22051,
4741,
13780,
29918,
10051,
1430,
29907,
29979,
29918,
23207,
353,
376,
29928,
11124,
2369,
1454,
13561,
29909,
14703,
4557,
29908,
13,
1678,
382,
29923,
29918,
13171,
3094,
1964,
29918,
1367,
3919,
6545,
28541,
29918,
16524,
353,
376,
17896,
7435,
284,
7648,
2450,
3399,
29908,
13,
1678,
19007,
29918,
2287,
22698,
29918,
29907,
17011,
29918,
23207,
353,
376,
29923,
29965,
10251,
277,
13200,
4557,
29908,
13,
1678,
19007,
29918,
29928,
3960,
5348,
29903,
29918,
27888,
1430,
1660,
29918,
23207,
353,
376,
29923,
15789,
374,
874,
29931,
293,
1947,
4557,
29908,
13,
1678,
19007,
29954,
7024,
29918,
3217,
25593,
1177,
1299,
2890,
353,
376,
29923,
23338,
7024,
7967,
24266,
29908,
13,
1678,
19007,
29918,
29940,
8098,
1964,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29923,
3904,
1288,
7648,
2450,
4557,
29908,
13,
1678,
19007,
29918,
25711,
15082,
29918,
23207,
353,
376,
29923,
4897,
465,
637,
4557,
29908,
13,
1678,
19007,
29918,
6156,
8426,
1964,
29918,
1660,
22484,
11937,
29918,
23207,
353,
376,
29923,
3308,
29877,
1455,
13228,
4557,
29908,
13,
1678,
19007,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29923,
2692,
1165,
7648,
2450,
4557,
29908,
13,
1678,
9338,
29918,
29923,
29965,
1672,
4162,
2190,
29918,
9606,
1964,
4690,
29918,
23207,
353,
376,
3738,
15654,
273,
3868,
4298,
4557,
29908,
13,
1678,
9338,
29918,
29940,
8098,
1964,
29918,
1367,
353,
376,
29943,
1177,
1288,
1367,
29908,
13,
1678,
9338,
29918,
29940,
8098,
1964,
29918,
1367,
29963,
29906,
353,
376,
29943,
1177,
1288,
1367,
29963,
29906,
29908,
13,
1678,
9338,
29918,
25711,
15082,
29918,
23207,
353,
376,
3738,
7129,
637,
4557,
29908,
13,
1678,
23788,
29918,
29928,
3960,
5348,
29903,
29918,
27888,
1430,
1660,
29918,
23207,
353,
376,
15860,
29928,
374,
874,
29931,
293,
1947,
4557,
29908,
13,
1678,
23788,
29918,
9606,
1964,
4690,
29918,
1177,
29903,
4574,
23219,
29918,
23207,
353,
376,
15860,
3868,
4298,
797,
7610,
749,
4557,
29908,
13,
1678,
23788,
29918,
29940,
8098,
1964,
29918,
1367,
353,
376,
15860,
27325,
1367,
29908,
13,
1678,
23788,
29918,
25711,
15082,
29918,
23207,
353,
376,
15860,
7129,
637,
4557,
29908,
13,
1678,
23788,
29918,
6156,
8426,
1964,
29918,
1660,
22484,
11937,
29918,
23207,
353,
376,
15860,
6295,
1455,
13228,
4557,
29908,
13,
1678,
23788,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29943,
13079,
1165,
7648,
2450,
4557,
29908,
13,
1678,
23788,
29918,
19143,
29918,
3035,
2287,
29928,
29918,
6040,
29990,
29918,
23207,
353,
376,
15860,
1917,
2528,
287,
29911,
1165,
4557,
29908,
13,
1678,
5012,
29918,
29928,
3960,
5348,
29903,
29918,
27888,
1430,
1660,
29918,
23207,
353,
376,
2287,
29928,
374,
874,
29931,
293,
1947,
4557,
29908,
13,
1678,
5012,
29918,
25711,
15082,
29918,
23207,
353,
376,
2287,
7129,
637,
4557,
29908,
13,
1678,
5012,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
29918,
23207,
353,
376,
2287,
18415,
13200,
4557,
29908,
13,
1678,
5012,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
2287,
29911,
1165,
7648,
2450,
4557,
29908,
13,
1678,
5012,
29918,
19143,
29918,
3035,
2287,
29928,
29918,
23207,
353,
376,
2287,
1917,
2528,
287,
4557,
29908,
13,
1678,
18016,
29918,
29940,
8098,
1964,
29918,
1367,
29918,
29907,
17011,
353,
376,
14345,
27325,
1367,
13200,
29908,
13,
1678,
18016,
29918,
29940,
8098,
1964,
29918,
1367,
29963,
29906,
353,
376,
14345,
27325,
1367,
29963,
29906,
29908,
13,
1678,
18016,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29954,
13079,
1165,
7648,
2450,
4557,
29908,
13,
1678,
379,
29968,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
29918,
23207,
353,
376,
29950,
29968,
18415,
13200,
4557,
29908,
13,
1678,
379,
29965,
29918,
19143,
29918,
3035,
2287,
29928,
29918,
23207,
353,
376,
29950,
29965,
1917,
2528,
287,
4557,
29908,
13,
1678,
379,
29965,
29918,
13171,
3094,
1964,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29950,
4897,
1330,
284,
7648,
2450,
4557,
29908,
13,
1678,
379,
29965,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29950,
2692,
1165,
7648,
2450,
4557,
29908,
13,
1678,
2672,
29918,
13171,
27616,
3919,
29918,
2477,
18736,
353,
376,
1177,
29925,
3504,
296,
10601,
29908,
13,
1678,
2672,
29918,
3904,
29902,
11144,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
1177,
8110,
802,
7648,
2450,
4557,
29908,
13,
1678,
3553,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
29918,
23207,
353,
376,
1367,
18415,
13200,
4557,
29908,
13,
1678,
2672,
4945,
29940,
8098,
1964,
29918,
29933,
2190,
29968,
4214,
29918,
2477,
18736,
29918,
23207,
353,
376,
17579,
1288,
29933,
804,
292,
10601,
4557,
29908,
13,
1678,
7159,
29918,
13171,
3094,
1964,
29918,
7056,
13367,
2965,
29918,
6304,
19059,
29918,
23207,
353,
376,
8673,
7435,
284,
19858,
3170,
4557,
29908,
13,
1678,
7159,
29918,
13171,
3094,
1964,
29918,
7056,
13367,
2965,
29918,
6304,
19059,
29918,
23207,
29918,
29963,
29906,
353,
376,
8673,
7435,
284,
19858,
3170,
4557,
29963,
29906,
29908,
13,
1678,
17674,
29918,
29933,
2190,
29968,
29918,
2477,
18736,
29918,
23207,
353,
376,
6227,
29933,
804,
10601,
4557,
29908,
13,
1678,
17674,
29918,
29940,
8098,
1964,
29918,
1367,
353,
376,
6227,
27325,
1367,
29908,
13,
1678,
13315,
29918,
29928,
3960,
5348,
29903,
29918,
27888,
1430,
1660,
29918,
23207,
353,
376,
1806,
29928,
374,
874,
29931,
293,
1947,
4557,
29908,
13,
1678,
13315,
29918,
29943,
3235,
29907,
1964,
29918,
16524,
353,
376,
1806,
29943,
275,
1052,
3399,
29908,
13,
1678,
13315,
29918,
19143,
29918,
3035,
2287,
29928,
29918,
6040,
29990,
29918,
23207,
353,
376,
1806,
1917,
2528,
287,
29911,
1165,
4557,
29908,
13,
1678,
435,
29925,
29918,
29933,
2190,
29968,
29918,
2477,
18736,
29918,
23207,
353,
376,
29967,
29925,
29933,
804,
10601,
4557,
29908,
13,
1678,
435,
29925,
29918,
29928,
3960,
5348,
29903,
29918,
27888,
1430,
1660,
29918,
23207,
353,
376,
29967,
25014,
374,
874,
29931,
293,
1947,
4557,
29908,
13,
1678,
435,
29925,
29918,
25711,
15082,
29918,
23207,
353,
376,
29967,
29925,
7129,
637,
4557,
29908,
13,
1678,
435,
29925,
29918,
15989,
1367,
3919,
29918,
18166,
9047,
29934,
8098,
29918,
23207,
353,
376,
29967,
29925,
1666,
1693,
4597,
8306,
4557,
29908,
13,
1678,
435,
29925,
29918,
6156,
8426,
1964,
29918,
1177,
29903,
4574,
23219,
29918,
23207,
353,
376,
29967,
29925,
6295,
1455,
797,
7610,
749,
4557,
29908,
13,
1678,
435,
29925,
29918,
17870,
29918,
23207,
29918,
29907,
1955,
29925,
1955,
3040,
353,
376,
29967,
29925,
3421,
4557,
12521,
1971,
403,
29908,
13,
1678,
435,
29925,
29918,
17870,
29918,
23207,
29918,
13171,
3094,
1964,
353,
376,
29967,
29925,
3421,
4557,
7435,
284,
29908,
13,
1678,
435,
29925,
29918,
15989,
1367,
1430,
4741,
29918,
29907,
17011,
29918,
23207,
353,
376,
29967,
29925,
1666,
5084,
13200,
4557,
29908,
13,
1678,
365,
29963,
29918,
13171,
3094,
1964,
29918,
16524,
353,
376,
29931,
29963,
7435,
284,
3399,
29908,
13,
1678,
365,
29911,
29918,
13171,
3094,
1964,
29918,
16524,
353,
376,
29931,
3557,
1330,
284,
3399,
29908,
13,
1678,
365,
29965,
29918,
29940,
8098,
1964,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
29918,
29940,
1299,
4574,
1964,
353,
376,
29931,
3904,
1288,
7648,
2450,
4557,
29940,
18771,
29908,
13,
1678,
365,
29965,
29918,
29940,
8098,
1964,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
29918,
29940,
1164,
29918,
29940,
1299,
4574,
1964,
353,
313,
13,
4706,
376,
29931,
3904,
1288,
7648,
2450,
4557,
12283,
29940,
18771,
29908,
13,
1678,
1723,
13,
1678,
19519,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
29918,
23207,
353,
376,
17870,
18415,
13200,
4557,
29908,
13,
1678,
341,
29911,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
29918,
23207,
353,
376,
11490,
18415,
13200,
4557,
29908,
13,
1678,
341,
29911,
29918,
6040,
29990,
29918,
1367,
29918,
23207,
353,
376,
11490,
29911,
1165,
1367,
4557,
29908,
13,
1678,
405,
29931,
29918,
29907,
1806,
26664,
1430,
29903,
29918,
6304,
19059,
29918,
23207,
353,
376,
29940,
12182,
277,
466,
575,
3170,
4557,
29908,
13,
1678,
405,
29931,
29918,
29907,
1806,
26664,
1430,
29903,
29918,
6304,
19059,
29918,
23207,
29918,
29963,
29906,
353,
376,
29940,
12182,
277,
466,
575,
3170,
4557,
29963,
29906,
29908,
13,
1678,
405,
29931,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29940,
5850,
1165,
7648,
2450,
4557,
29908,
13,
1678,
405,
29931,
29918,
19143,
29918,
3035,
2287,
29928,
29918,
6040,
29990,
29918,
23207,
353,
376,
25103,
1917,
2528,
287,
29911,
1165,
4557,
29908,
13,
1678,
405,
29999,
29918,
29933,
2190,
29968,
29918,
2477,
18736,
29918,
23207,
353,
376,
29940,
29999,
29933,
804,
10601,
4557,
29908,
13,
1678,
405,
29999,
29918,
29928,
3960,
5348,
29903,
29918,
27888,
1430,
1660,
29918,
23207,
353,
376,
29940,
29999,
29928,
374,
874,
29931,
293,
1947,
4557,
29908,
13,
1678,
405,
29999,
29918,
1177,
29931,
9468,
29918,
1525,
29963,
1430,
4462,
29918,
23207,
353,
376,
29940,
29999,
797,
1049,
1123,
9947,
4557,
29908,
13,
1678,
405,
29999,
29918,
16173,
9047,
13207,
29918,
9800,
29918,
9606,
1964,
4690,
29918,
23207,
353,
376,
29940,
29999,
8140,
6020,
2776,
3868,
4298,
4557,
29908,
13,
1678,
405,
29999,
29918,
6156,
8426,
1964,
29918,
29956,
6670,
4519,
1525,
29918,
23207,
353,
376,
29940,
29999,
6295,
1455,
29956,
761,
598,
4557,
29908,
13,
1678,
11698,
29918,
1367,
3919,
11937,
29918,
23207,
353,
376,
6632,
18415,
4557,
29908,
13,
1678,
349,
29950,
29918,
3904,
29902,
3738,
3352,
29918,
29924,
8647,
29902,
29918,
29925,
4574,
13152,
1660,
29918,
1367,
29918,
23207,
353,
376,
19689,
2525,
2164,
15329,
29925,
332,
4220,
1367,
4557,
29908,
13,
1678,
16507,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
353,
376,
7390,
18415,
13200,
29908,
13,
1678,
16507,
29918,
29940,
8098,
1964,
29918,
1367,
353,
376,
7390,
27325,
1367,
29908,
13,
1678,
16507,
29918,
29940,
8098,
1964,
29918,
1367,
29963,
29906,
353,
376,
7390,
27325,
1367,
29963,
29906,
29908,
13,
1678,
16507,
29918,
25711,
15082,
29918,
23207,
353,
376,
7390,
7129,
637,
4557,
29908,
13,
1678,
16507,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29925,
5850,
1165,
7648,
2450,
4557,
29908,
13,
1678,
16507,
18166,
1164,
29918,
23207,
353,
376,
7390,
18166,
1164,
4557,
29908,
13,
1678,
349,
29911,
29918,
29907,
1806,
26664,
1430,
29918,
29907,
17011,
29918,
23207,
353,
376,
7982,
29907,
277,
19642,
13200,
4557,
29908,
13,
1678,
349,
29911,
29918,
29907,
1806,
26664,
1430,
29918,
29907,
17011,
29918,
23207,
29918,
29963,
29906,
353,
376,
7982,
29907,
277,
19642,
13200,
4557,
29963,
29906,
29908,
13,
1678,
349,
29911,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
7982,
29911,
1165,
7648,
2450,
4557,
29908,
13,
1678,
16641,
29918,
13171,
3094,
1964,
29918,
13967,
1001,
2965,
1964,
29918,
16524,
353,
376,
1672,
7435,
284,
29940,
4680,
936,
3399,
29908,
13,
1678,
390,
29965,
29918,
25711,
15082,
29918,
23207,
29918,
3970,
2303,
1254,
2965,
353,
376,
29934,
4897,
465,
637,
4557,
11096,
15931,
29908,
13,
1678,
390,
29965,
29918,
25711,
15082,
29918,
23207,
29918,
23845,
29940,
8098,
1964,
353,
376,
29934,
4897,
465,
637,
4557,
17579,
1288,
29908,
13,
1678,
16698,
29918,
29940,
8098,
1964,
29918,
1367,
353,
376,
29903,
2190,
1288,
1367,
29908,
13,
1678,
317,
29954,
29918,
29940,
8098,
1964,
29918,
18166,
9047,
29934,
8098,
29918,
1367,
3919,
11937,
29918,
29907,
17011,
29918,
23207,
353,
313,
13,
4706,
376,
29903,
20728,
1288,
4597,
8306,
18415,
13200,
4557,
29908,
13,
1678,
1723,
13,
1678,
18581,
29918,
13171,
3094,
1964,
29918,
23207,
353,
376,
16033,
7435,
284,
4557,
29908,
13,
1678,
22717,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29903,
1806,
1165,
7648,
2450,
4557,
29908,
13,
1678,
22717,
29918,
3904,
29902,
11144,
29918,
1529,
1254,
1001,
29918,
29907,
1806,
26664,
1430,
29918,
23207,
353,
376,
5425,
8110,
802,
19203,
29907,
277,
19642,
4557,
29908,
13,
1678,
796,
29909,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29999,
29909,
7648,
2450,
4557,
29908,
13,
1678,
476,
29934,
29918,
15989,
1367,
3919,
29918,
18166,
9047,
29934,
8098,
29918,
23207,
353,
376,
29968,
29934,
1666,
1693,
4597,
8306,
4557,
29908,
13,
1678,
382,
7230,
12916,
353,
376,
2890,
29928,
12916,
29908,
13,
1678,
17956,
29918,
6156,
8426,
1964,
29918,
1660,
22484,
11937,
29918,
23207,
353,
376,
29923,
1799,
29877,
1455,
13228,
4557,
29908,
13,
1678,
17956,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
29923,
1254,
1165,
7648,
2450,
4557,
29908,
13,
1678,
3758,
29918,
18603,
29918,
6007,
8186,
9838,
29918,
20785,
353,
376,
4176,
6004,
5350,
1231,
29908,
13,
1678,
3725,
29918,
29940,
8098,
1964,
29918,
1367,
353,
376,
29903,
1430,
1288,
1367,
29908,
13,
1678,
3725,
29918,
29940,
8098,
1964,
29918,
1367,
29963,
29906,
353,
376,
29903,
1430,
1288,
1367,
29963,
29906,
29908,
13,
1678,
3725,
29918,
25711,
15082,
29918,
23207,
353,
376,
1660,
7129,
637,
4557,
29908,
13,
1678,
3725,
29918,
6040,
29990,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
10490,
1165,
7648,
2450,
4557,
29908,
13,
1678,
25289,
6545,
29911,
29918,
16524,
353,
376,
23066,
6545,
29911,
3399,
29908,
13,
1678,
5868,
29918,
6156,
8426,
1964,
29918,
1660,
22484,
11937,
29918,
23207,
353,
376,
3210,
6295,
1455,
13228,
4557,
29908,
13,
1678,
323,
29956,
29918,
29940,
8098,
1964,
29918,
1367,
353,
376,
29911,
16048,
1288,
1367,
29908,
13,
1678,
323,
29956,
29918,
25711,
15082,
29918,
23207,
353,
376,
16240,
7129,
637,
4557,
29908,
13,
1678,
323,
29956,
29918,
15989,
1367,
3919,
29918,
29907,
20161,
6545,
2965,
3040,
353,
376,
16240,
1666,
1693,
20455,
8021,
29908,
13,
1678,
3446,
29918,
29925,
4590,
13309,
8098,
29918,
1367,
3919,
6545,
28541,
29918,
16524,
353,
376,
29911,
3954,
459,
2785,
7648,
2450,
3399,
29908,
13,
1678,
10014,
29918,
29940,
8098,
1964,
29918,
1367,
3919,
6545,
28541,
29918,
23207,
353,
376,
5659,
27325,
7648,
2450,
4557,
29908,
13,
1678,
10261,
29918,
29928,
3960,
5348,
29903,
29918,
27888,
1430,
1660,
29918,
23207,
353,
376,
19960,
29928,
374,
874,
29931,
293,
1947,
4557,
29908,
13,
1678,
10261,
29918,
29923,
3281,
1955,
1964,
29918,
1672,
2208,
29918,
23207,
353,
376,
29965,
6059,
781,
11251,
29934,
3028,
4557,
29908,
13,
1678,
10261,
29918,
29940,
8098,
1964,
29918,
9606,
1964,
4690,
29918,
23207,
353,
376,
19960,
27325,
3868,
4298,
4557,
29908,
13,
1678,
10261,
29918,
29940,
8098,
1964,
29918,
1177,
29903,
4574,
23219,
29918,
23207,
353,
376,
19960,
27325,
797,
7610,
749,
4557,
29908,
13,
1678,
10261,
29918,
3904,
29902,
11144,
29918,
6040,
29990,
7228,
29979,
1001,
29918,
23207,
353,
376,
19960,
8110,
802,
29911,
1165,
29886,
2747,
4557,
29908,
13,
1678,
3148,
19960,
29918,
25711,
15082,
29918,
23207,
353,
376,
3308,
19960,
7129,
637,
4557,
29908,
13,
1678,
3148,
29918,
29933,
2190,
29968,
29918,
2477,
18736,
29918,
23207,
353,
376,
29965,
1744,
804,
10601,
4557,
29908,
13,
1678,
3148,
29918,
29928,
3960,
5348,
29903,
29918,
27888,
1430,
1660,
29918,
23207,
353,
376,
3308,
29928,
374,
874,
29931,
293,
1947,
4557,
29908,
13,
1678,
3148,
29918,
1177,
4571,
13044,
29965,
1964,
29918,
6040,
29990,
7228,
29979,
1001,
29918,
1367,
3919,
6545,
28541,
353,
376,
3308,
2568,
23352,
29911,
1165,
29886,
2747,
7648,
2450,
29908,
13,
1678,
3148,
29918,
6156,
8426,
1964,
29918,
1660,
22484,
11937,
29918,
23207,
353,
376,
29965,
1799,
29877,
1455,
13228,
4557,
29908,
13,
1678,
501,
29909,
29918,
25711,
15082,
29918,
23207,
29918,
3970,
2303,
1254,
2965,
353,
376,
29965,
3301,
465,
637,
4557,
11096,
15931,
29908,
13,
1678,
501,
29909,
29918,
25711,
15082,
29918,
23207,
29918,
23845,
29940,
8098,
1964,
353,
376,
29965,
3301,
465,
637,
4557,
17579,
1288,
29908,
13,
1678,
6323,
29954,
2190,
26664,
8098,
353,
376,
27356,
2133,
29908,
13,
1678,
382,
1529,
6227,
353,
376,
9823,
29908,
13,
1678,
3988,
353,
376,
4219,
29908,
13,
1678,
319,
1692,
353,
376,
22406,
29908,
13,
1678,
349,
29950,
12413,
29918,
23207,
353,
376,
9861,
4557,
29908,
13,
1678,
5641,
29918,
17744,
26785,
353,
376,
5690,
7061,
29908,
13,
1678,
20231,
353,
376,
2539,
29908,
13,
1678,
349,
1001,
3094,
353,
376,
7435,
29908,
13,
1678,
27827,
26785,
353,
376,
7061,
29908,
13,
1678,
15149,
353,
376,
3596,
29908,
13,
1678,
22236,
353,
376,
4592,
29908,
13,
13,
13,
1990,
15202,
18020,
6691,
10900,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
9995,
3868,
4298,
18020,
14945,
17943,
1213,
15945,
13,
13,
1678,
350,
13668,
29979,
29918,
10810,
29965,
1783,
11499,
353,
376,
8434,
5015,
12425,
29908,
13,
1678,
319,
1692,
353,
376,
22406,
29908,
13,
1678,
402,
1430,
8032,
353,
376,
29954,
1581,
29908,
13,
1678,
8528,
5194,
1177,
8098,
29918,
5813,
353,
376,
1252,
314,
3381,
1170,
29908,
13,
1678,
20231,
353,
376,
2539,
29908,
13,
1678,
22471,
1525,
9838,
353,
376,
21602,
29908,
13,
1678,
383,
1525,
13356,
1430,
29907,
29979,
353,
376,
23923,
23860,
29908,
13,
1678,
22986,
3289,
11499,
13780,
29918,
19143,
353,
376,
6816,
3745,
358,
1917,
29908,
13,
1678,
22986,
3289,
11499,
13780,
29918,
3904,
1806,
353,
376,
6816,
3745,
358,
8325,
29908,
13,
1678,
5195,
29931,
8098,
1964,
29918,
4590,
1001,
1299,
1955,
353,
376,
9662,
1288,
26486,
29908,
13,
1678,
323,
8890,
353,
376,
2481,
29908,
13,
1678,
402,
1430,
29923,
29918,
1955,
29918,
8618,
4330,
1177,
353,
376,
29954,
1600,
2816,
1184,
371,
262,
29908,
13,
1678,
478,
1718,
29902,
13566,
353,
376,
10444,
424,
29908,
13,
1678,
11033,
16173,
9047,
29934,
1299,
18474,
29918,
22240,
3919,
353,
376,
12754,
2132,
1230,
2624,
29908,
13,
1678,
12766,
1525,
29918,
25838,
8193,
1164,
13780,
353,
376,
29907,
598,
18649,
29908,
13,
1678,
17714,
1964,
4690,
5454,
1525,
29918,
8618,
16359,
13507,
353,
376,
3868,
4298,
18020,
1184,
29888,
1211,
29908,
13,
1678,
22471,
10051,
29940,
3267,
3235,
353,
376,
12130,
4211,
19263,
29908,
13,
1678,
28962,
3580,
4986,
29924,
29918,
1955,
29918,
5425,
20728,
353,
376,
25548,
415,
290,
2816,
10140,
29908,
13,
1678,
8707,
29928,
22122,
29918,
13356,
1964,
29902,
3738,
1001,
353,
376,
25255,
24399,
3709,
29908,
13,
1678,
341,
3352,
28541,
29918,
13875,
1799,
353,
376,
29924,
7486,
362,
2385,
29908,
13,
1678,
341,
3352,
28541,
29918,
5813,
353,
376,
29924,
7486,
362,
1170,
29908,
13,
1678,
360,
3267,
10461,
353,
376,
29928,
359,
482,
29908,
13,
1678,
341,
3352,
28541,
29918,
19094,
353,
376,
29924,
7486,
362,
2500,
29908,
13,
1678,
341,
3352,
28541,
29918,
1672,
26027,
353,
376,
29924,
7486,
362,
12085,
29908,
13,
1678,
383,
5194,
6227,
29979,
29918,
1525,
29931,
8098,
353,
376,
27104,
9662,
362,
29908,
13,
1678,
323,
1525,
1299,
13780,
29918,
5813,
353,
376,
29911,
276,
271,
358,
1170,
29908,
13,
13,
13,
1990,
349,
2236,
6691,
15951,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
9995,
1576,
1422,
21904,
310,
349,
2687,
16212,
393,
4160,
508,
4175,
491,
15945,
29908,
13,
13,
1678,
13756,
4330,
1783,
3352,
29918,
9606,
1964,
4690,
29918,
1177,
19094,
8098,
353,
313,
13,
4706,
376,
2876,
29908,
29871,
396,
2823,
2045,
597,
8245,
29889,
1516,
29914,
13161,
261,
1631,
29875,
363,
901,
2472,
29889,
13,
1678,
1723,
13,
13,
13,
1990,
5953,
26458,
21233,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
6362,
26458,
21233,
3743,
278,
25383,
4086,
1476,
297,
1426,
29892,
13,
1678,
967,
16420,
8158,
29892,
322,
967,
17723,
29871,
29953,
29941,
29929,
29899,
29896,
8954,
29889,
13,
13,
1678,
584,
440,
279,
1024,
29901,
6242,
1024,
310,
263,
17809,
4086,
313,
29872,
29889,
29887,
29889,
4223,
29892,
13,
4706,
5176,
467,
13,
1678,
584,
29894,
442,
668,
1024,
29901,
851,
13,
1678,
584,
440,
279,
338,
29877,
29953,
29941,
29929,
29896,
29918,
978,
29901,
319,
1023,
5497,
8954,
310,
278,
17809,
13,
4706,
4086,
5034,
304,
278,
17723,
29871,
29953,
29941,
29929,
29899,
29896,
3918,
313,
29872,
29889,
29887,
29889,
427,
29892,
1424,
467,
13,
1678,
584,
29894,
442,
668,
338,
29877,
29953,
29941,
29929,
29896,
29918,
978,
29901,
851,
13,
1678,
584,
440,
279,
16420,
29918,
13628,
29901,
319,
16420,
8158,
1546,
29871,
29900,
322,
29871,
29896,
29889,
2522,
2361,
3802,
13,
4706,
304,
29871,
29896,
12266,
29871,
29896,
29900,
29900,
29995,
3058,
1017,
393,
278,
15659,
4086,
338,
1565,
29889,
13,
1678,
584,
29894,
442,
668,
16420,
29918,
13628,
29901,
5785,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
978,
353,
9049,
5085,
29889,
657,
703,
978,
613,
6213,
29897,
13,
4706,
1583,
29889,
10718,
29953,
29941,
29929,
29896,
29918,
978,
353,
9049,
5085,
29889,
657,
703,
10718,
29953,
29941,
29929,
29896,
29918,
978,
613,
6213,
29897,
13,
4706,
1583,
29889,
5527,
5084,
29918,
13628,
353,
9049,
5085,
29889,
657,
703,
5527,
5084,
29918,
13628,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
4086,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1024,
29922,
11675,
29889,
978,
29892,
13,
9651,
338,
29877,
29953,
29941,
29929,
29896,
29918,
978,
29922,
11675,
29889,
10718,
29953,
29941,
29929,
29896,
29918,
978,
29892,
13,
9651,
16420,
29918,
13628,
29922,
11675,
29889,
5527,
5084,
29918,
13628,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
6362,
26458,
21233,
29898,
978,
3790,
1118,
338,
29877,
29953,
29941,
29929,
29896,
29918,
978,
3790,
1118,
16420,
29918,
13628,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
978,
29892,
1583,
29889,
10718,
29953,
29941,
29929,
29896,
29918,
978,
29892,
1583,
29889,
5527,
5084,
29918,
13628,
13,
4706,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
13,
13,
1990,
3599,
3811,
675,
5292,
1907,
3591,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
23122,
675,
5292,
1907,
3591,
338,
263,
1121,
1203,
607,
3743,
13,
1678,
278,
14831,
16212,
515,
263,
3153,
1842,
29889,
13,
13,
1678,
584,
440,
279,
1178,
29901,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
393,
7087,
278,
13,
4706,
1842,
1178,
393,
471,
4502,
297,
411,
278,
2009,
29889,
960,
451,
6790,
13,
4706,
297,
278,
2009,
29892,
385,
1178,
338,
9859,
363,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
1178,
29901,
851,
13,
1678,
584,
440,
279,
16212,
29901,
3599,
3811,
1891,
16212,
297,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
16212,
29901,
13,
4706,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29907,
20440,
1891,
6691,
29962,
13,
1678,
584,
440,
279,
18116,
29901,
399,
2753,
886,
18169,
1550,
9068,
1842,
29889,
17212,
674,
1603,
367,
4133,
13,
4706,
565,
727,
526,
18116,
29892,
541,
896,
1122,
451,
367,
8072,
16232,
29889,
13,
1678,
584,
29894,
442,
668,
18116,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
21067,
22026,
22709,
29962,
13,
1678,
584,
440,
279,
13964,
29901,
960,
421,
4294,
29918,
16202,
29922,
5574,
29952,
471,
6790,
297,
278,
2009,
445,
13,
4706,
1746,
674,
1712,
2472,
1048,
278,
1842,
20092,
29889,
13,
1678,
584,
29894,
442,
668,
13964,
29901,
13,
4706,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
6268,
9513,
6765,
13,
1678,
584,
440,
279,
6120,
338,
29918,
2704,
29901,
11185,
1423,
363,
1059,
2944,
746,
4256,
1218,
975,
1051,
310,
13,
4706,
2582,
29889,
29849,
7700,
363,
385,
2777,
310,
263,
3599,
3811,
675,
5292,
1907,
3591,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
333,
353,
9049,
5085,
29889,
657,
703,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
296,
1907,
353,
9049,
5085,
29889,
657,
703,
296,
1907,
613,
6213,
29897,
13,
4706,
1583,
29889,
25442,
886,
353,
9049,
5085,
29889,
657,
703,
25442,
886,
613,
518,
2314,
13,
4706,
1583,
29889,
6112,
6765,
353,
9049,
5085,
29889,
657,
703,
6112,
6765,
613,
6213,
29897,
13,
4706,
1583,
29889,
275,
29918,
2704,
353,
7700,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
23122,
675,
5292,
1907,
3591,
29898,
333,
3790,
1118,
16212,
3790,
1118,
18116,
3790,
1118,
13964,
3790,
1118,
338,
29918,
2704,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
333,
29892,
13,
9651,
2062,
29898,
1311,
29889,
296,
1907,
511,
13,
9651,
2062,
29898,
1311,
29889,
25442,
886,
511,
13,
9651,
2062,
29898,
1311,
29889,
6112,
6765,
511,
13,
9651,
1583,
29889,
275,
29918,
2704,
29892,
13,
4706,
1723,
29961,
13,
9651,
584,
29896,
29900,
29906,
29946,
13,
4706,
4514,
13,
13,
13,
1990,
3599,
3811,
675,
29925,
2236,
5292,
1907,
3591,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
23122,
675,
29925,
2236,
5292,
1907,
3591,
338,
263,
1121,
1203,
607,
3743,
13,
1678,
278,
14831,
5196,
635,
13355,
28677,
10343,
313,
2227,
29902,
29897,
16212,
13,
1678,
515,
263,
3153,
1842,
29889,
13,
13,
1678,
584,
440,
279,
851,
1178,
29901,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
393,
7087,
278,
13,
4706,
1842,
1178,
393,
471,
4502,
297,
411,
278,
2009,
29889,
960,
451,
6790,
13,
4706,
297,
278,
2009,
29892,
385,
1178,
338,
9859,
363,
278,
1842,
29889,
13,
1678,
584,
440,
279,
16212,
29901,
3599,
3811,
1891,
349,
2687,
16212,
297,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
16212,
29901,
13,
4706,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29925,
2236,
6691,
29962,
13,
1678,
584,
440,
279,
851,
2654,
627,
287,
29918,
726,
29901,
16969,
278,
1426,
310,
278,
1881,
1842,
411,
599,
310,
278,
349,
2687,
2472,
13,
4706,
2654,
627,
287,
714,
29889,
13,
1678,
584,
440,
279,
18116,
29901,
399,
2753,
886,
18169,
1550,
9068,
1842,
29889,
17212,
674,
1603,
367,
4133,
13,
4706,
565,
727,
526,
18116,
29892,
541,
896,
1122,
451,
367,
8072,
16232,
29889,
13,
1678,
584,
29894,
442,
668,
18116,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
21067,
22026,
22709,
29962,
13,
1678,
584,
440,
279,
13964,
29901,
960,
421,
4294,
29918,
16202,
29922,
5574,
29952,
471,
6790,
297,
278,
2009,
445,
13,
4706,
1746,
674,
1712,
2472,
1048,
278,
1842,
20092,
29889,
13,
1678,
584,
29894,
442,
668,
13964,
29901,
13,
4706,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
6268,
9513,
6765,
13,
1678,
584,
440,
279,
6120,
338,
29918,
2704,
29901,
11185,
1423,
363,
1059,
2944,
746,
4256,
1218,
975,
1051,
310,
13,
4706,
2582,
29889,
29849,
7700,
363,
385,
2777,
310,
263,
3599,
3811,
675,
29925,
2236,
5292,
1907,
3591,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
333,
353,
9049,
5085,
29889,
657,
703,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
296,
1907,
353,
9049,
5085,
29889,
657,
703,
296,
1907,
613,
6213,
29897,
13,
4706,
1583,
29889,
1127,
627,
287,
29918,
726,
353,
9049,
5085,
29889,
657,
703,
1127,
627,
287,
29918,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
25442,
886,
353,
9049,
5085,
29889,
657,
703,
25442,
886,
613,
518,
2314,
13,
4706,
1583,
29889,
6112,
6765,
353,
9049,
5085,
29889,
657,
703,
6112,
6765,
613,
6213,
29897,
13,
4706,
1583,
29889,
275,
29918,
2704,
353,
7700,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
23122,
675,
29925,
2236,
5292,
1907,
3591,
29898,
333,
3790,
1118,
16212,
3790,
1118,
2654,
627,
287,
29918,
726,
3790,
1118,
18116,
3790,
1118,
376,
13,
9651,
376,
6112,
6765,
3790,
1118,
338,
29918,
2704,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
333,
29892,
13,
18884,
2062,
29898,
1311,
29889,
296,
1907,
511,
13,
18884,
1583,
29889,
1127,
627,
287,
29918,
726,
29892,
13,
18884,
2062,
29898,
1311,
29889,
25442,
886,
511,
13,
18884,
2062,
29898,
1311,
29889,
6112,
6765,
511,
13,
18884,
1583,
29889,
275,
29918,
2704,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
11597,
29891,
911,
3868,
4298,
18020,
5292,
1907,
3591,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
13,
1678,
11597,
29891,
911,
3868,
4298,
18020,
5292,
1907,
3591,
3743,
278,
15202,
18020,
16212,
515,
263,
13,
1678,
3153,
1842,
29889,
13,
13,
1678,
584,
440,
279,
851,
1178,
29901,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
393,
7087,
278,
13,
4706,
1842,
1178,
393,
471,
4502,
297,
411,
278,
2009,
29889,
960,
451,
6790,
13,
4706,
297,
278,
2009,
29892,
385,
1178,
338,
9859,
363,
278,
1842,
29889,
13,
1678,
584,
440,
279,
16212,
29901,
13355,
2164,
15202,
18020,
16212,
297,
278,
1842,
29892,
474,
29889,
29872,
29889,
297,
13,
4706,
278,
1842,
376,
1576,
4967,
3614,
474,
2423,
771,
11350,
613,
376,
747,
29884,
771,
11350,
29908,
338,
385,
15659,
7855,
13,
4706,
515,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
16212,
29901,
13,
4706,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
3868,
4298,
18020,
6691,
29962,
13,
1678,
584,
440,
279,
7855,
29918,
2674,
800,
29901,
13355,
2164,
15202,
18020,
5302,
1546,
16212,
29889,
1152,
1342,
29892,
297,
278,
13,
4706,
1842,
376,
1576,
4967,
3614,
29871,
29896,
29900,
29900,
29885,
29887,
310,
474,
2423,
771,
11350,
613,
591,
723,
12439,
278,
9443,
13,
4706,
1546,
278,
3248,
482,
310,
29871,
29896,
29900,
29900,
29885,
29887,
322,
278,
13589,
362,
474,
2423,
771,
11350,
29889,
13,
1678,
584,
29894,
442,
668,
7855,
29918,
2674,
800,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
3868,
4298,
18020,
9662,
362,
29962,
13,
1678,
584,
440,
279,
18116,
29901,
399,
2753,
886,
18169,
1550,
9068,
1842,
29889,
17212,
674,
1603,
367,
4133,
13,
4706,
565,
727,
526,
18116,
29892,
541,
896,
1122,
451,
367,
8072,
16232,
29889,
13,
1678,
584,
29894,
442,
668,
18116,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
21067,
22026,
22709,
29962,
13,
1678,
584,
440,
279,
13964,
29901,
960,
1510,
29918,
16202,
29922,
3009,
471,
6790,
297,
278,
2009,
445,
13,
4706,
1746,
674,
1712,
2472,
1048,
278,
1842,
20092,
29889,
13,
1678,
584,
29894,
442,
668,
13964,
29901,
13,
4706,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
6268,
9513,
6765,
13,
1678,
584,
440,
279,
6120,
338,
29918,
2704,
29901,
11185,
1423,
363,
1059,
2944,
746,
4256,
1218,
975,
1051,
310,
13,
4706,
2582,
29889,
29849,
7700,
363,
385,
2777,
310,
263,
11597,
29891,
911,
3868,
4298,
18020,
5292,
1907,
3591,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
333,
353,
9049,
5085,
29889,
657,
703,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
296,
1907,
353,
9049,
5085,
29889,
657,
703,
296,
1907,
613,
6213,
29897,
13,
4706,
1583,
29889,
10041,
29918,
2674,
800,
353,
9049,
5085,
29889,
657,
703,
10041,
29918,
2674,
800,
613,
6213,
29897,
13,
4706,
1583,
29889,
25442,
886,
353,
9049,
5085,
29889,
657,
703,
25442,
886,
613,
518,
2314,
13,
4706,
1583,
29889,
6112,
6765,
353,
9049,
5085,
29889,
657,
703,
6112,
6765,
613,
6213,
29897,
13,
4706,
1583,
29889,
275,
29918,
2704,
353,
7700,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
9045,
18020,
29918,
2914,
1125,
13,
4706,
16212,
353,
518,
13,
9651,
15202,
18020,
6691,
3032,
3166,
29918,
13525,
29898,
29872,
29897,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
9651,
363,
321,
297,
9045,
18020,
29918,
2914,
29889,
296,
1907,
13,
4706,
4514,
13,
4706,
5302,
353,
518,
13,
9651,
15202,
18020,
9662,
362,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
18884,
364,
29892,
16212,
13,
9651,
1723,
13,
9651,
363,
364,
297,
9045,
18020,
29918,
2914,
29889,
2674,
800,
13,
4706,
4514,
13,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1178,
29922,
354,
4298,
18020,
29918,
2914,
29889,
333,
29892,
13,
9651,
16212,
29922,
296,
1907,
29892,
13,
9651,
7855,
29918,
2674,
800,
29922,
2674,
800,
29892,
13,
9651,
18116,
11759,
13,
18884,
3992,
21067,
22026,
22709,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
462,
1678,
281,
13,
18884,
1723,
13,
18884,
363,
281,
297,
9045,
18020,
29918,
2914,
29889,
25442,
886,
13,
9651,
21251,
13,
9651,
13964,
29922,
1626,
6268,
9513,
6765,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
18884,
9045,
18020,
29918,
2914,
29889,
6112,
6765,
13,
9651,
10353,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
2744,
14997,
911,
3868,
4298,
18020,
5292,
1907,
3591,
29898,
333,
3790,
1118,
16212,
3790,
1118,
7855,
29918,
2674,
800,
3790,
1118,
18116,
3790,
1118,
376,
13,
9651,
376,
6112,
6765,
3790,
1118,
338,
29918,
2704,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
333,
29892,
13,
18884,
2062,
29898,
1311,
29889,
296,
1907,
511,
13,
18884,
2062,
29898,
1311,
29889,
10041,
29918,
2674,
800,
511,
13,
18884,
2062,
29898,
1311,
29889,
25442,
886,
511,
13,
18884,
2062,
29898,
1311,
29889,
6112,
6765,
511,
13,
18884,
1583,
29889,
275,
29918,
2704,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
15202,
18020,
9662,
362,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
3868,
4298,
18020,
9662,
362,
338,
263,
1121,
1203,
607,
11524,
263,
8220,
17809,
297,
263,
1842,
29889,
13,
13,
1678,
7569,
15202,
18020,
9662,
362,
338,
385,
7855,
3983,
310,
263,
3058,
8220,
1134,
29892,
13,
1678,
988,
599,
16212,
526,
6631,
322,
505,
2702,
16178,
2629,
278,
8220,
3030,
29889,
13,
13,
1678,
584,
440,
279,
8220,
29918,
1853,
29901,
450,
1134,
310,
8220,
29892,
474,
29889,
29872,
29889,
278,
9443,
1546,
376,
29896,
29900,
29900,
29885,
29887,
29908,
322,
13,
4706,
376,
747,
29884,
771,
11350,
29908,
297,
278,
1842,
376,
1576,
4967,
3614,
29871,
29896,
29900,
29900,
286,
29887,
310,
474,
2423,
771,
11350,
29908,
338,
376,
29928,
359,
482,
2776,
29924,
7486,
362,
1642,
13,
4706,
20049,
1819,
1476,
297,
584,
1990,
18078,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
3868,
4298,
18020,
6691,
9662,
362,
29952,
13,
1678,
584,
29894,
442,
668,
8220,
29918,
1853,
29901,
851,
13,
1678,
584,
440,
279,
16178,
29901,
450,
16178,
2198,
297,
445,
8220,
29889,
306,
29889,
29872,
1696,
297,
278,
1842,
13,
4706,
376,
1576,
4967,
3614,
29871,
29896,
29900,
29900,
286,
29887,
310,
474,
2423,
771,
11350,
613,
278,
2198,
16178,
526,
376,
29928,
359,
482,
29908,
322,
376,
29924,
7486,
362,
1642,
13,
1678,
584,
29894,
442,
668,
16178,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
3868,
4298,
18020,
9662,
362,
16727,
29962,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
23445,
29918,
1853,
353,
9049,
5085,
29889,
657,
703,
23445,
29918,
1853,
1159,
13,
4706,
1583,
29889,
307,
793,
353,
9049,
5085,
29889,
657,
703,
307,
793,
1159,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
9045,
18020,
29918,
23445,
29918,
2914,
29892,
16212,
1125,
13,
4706,
16178,
353,
518,
13,
9651,
15202,
18020,
9662,
362,
16727,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
18884,
364,
29892,
16212,
13,
9651,
1723,
13,
9651,
363,
364,
297,
9045,
18020,
29918,
23445,
29918,
2914,
29889,
296,
1907,
13,
4706,
4514,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
8220,
29918,
1853,
29922,
354,
4298,
18020,
29918,
23445,
29918,
2914,
29889,
23445,
29918,
1853,
29892,
13,
9651,
16178,
29922,
307,
793,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
3868,
4298,
18020,
9662,
362,
29898,
23445,
29918,
1853,
3790,
1118,
16178,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
23445,
29918,
1853,
29892,
13,
9651,
2062,
29898,
1311,
29889,
307,
793,
511,
13,
4706,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
13,
13,
1990,
15202,
18020,
9662,
362,
16727,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
29909,
1904,
15783,
263,
6297,
297,
263,
8220,
29889,
13,
13,
1678,
1152,
1342,
29892,
297,
376,
1576,
4967,
3614,
29871,
29896,
29900,
29900,
286,
29887,
310,
474,
2423,
771,
11350,
613,
13,
1678,
376,
29896,
29900,
29900,
286,
29887,
29908,
338,
263,
3248,
482,
7855,
6095,
5589,
292,
278,
6297,
376,
29928,
359,
482,
29908,
13,
1678,
297,
278,
23892,
8220,
376,
29928,
359,
482,
974,
29924,
7486,
362,
1642,
13,
13,
1678,
584,
440,
279,
1024,
29901,
450,
6297,
310,
278,
7855,
297,
278,
9443,
29889,
306,
29889,
29872,
1696,
297,
278,
8220,
13,
4706,
376,
1576,
4967,
3614,
29871,
29896,
29900,
29900,
286,
29887,
310,
474,
2423,
771,
11350,
613,
278,
3248,
482,
7855,
376,
29896,
29900,
29900,
286,
29887,
29908,
756,
6297,
13,
4706,
376,
29928,
359,
482,
1642,
13,
1678,
584,
29894,
442,
668,
1024,
29901,
851,
13,
1678,
584,
440,
279,
7855,
29901,
450,
7855,
393,
338,
2198,
297,
278,
9443,
29889,
1152,
1342,
29892,
297,
13,
4706,
376,
1576,
4967,
3614,
29871,
29896,
29900,
29900,
286,
29887,
310,
474,
2423,
771,
11350,
613,
445,
2875,
8640,
278,
3248,
482,
7855,
13,
4706,
310,
376,
29896,
29900,
29900,
286,
29887,
1642,
13,
1678,
584,
29894,
442,
668,
7855,
29901,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
3868,
4298,
18020,
6691,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
978,
353,
9049,
5085,
29889,
657,
703,
978,
1159,
13,
4706,
1583,
29889,
10041,
353,
9049,
5085,
29889,
657,
703,
10041,
1159,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
903,
657,
29918,
10041,
29898,
354,
4298,
18020,
29918,
12154,
29918,
2914,
29892,
16212,
1125,
13,
4706,
954,
29879,
353,
903,
657,
29918,
513,
1575,
29898,
354,
4298,
18020,
29918,
12154,
29918,
2914,
29889,
999,
29897,
13,
4706,
7855,
29918,
2248,
353,
954,
29879,
29961,
13,
632,
29896,
13,
4706,
4514,
29871,
396,
937,
954,
21213,
515,
2380,
338,
1842,
396,
29892,
1473,
338,
7855,
2380,
13,
4706,
736,
16212,
29961,
10041,
29918,
2248,
29962,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
9045,
18020,
29918,
12154,
29918,
2914,
29892,
16212,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1024,
29922,
354,
4298,
18020,
29918,
12154,
29918,
2914,
29889,
12154,
29892,
13,
9651,
7855,
29922,
3868,
4298,
18020,
9662,
362,
16727,
3032,
657,
29918,
10041,
29898,
354,
4298,
18020,
29918,
12154,
29918,
2914,
29892,
16212,
511,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
3868,
4298,
18020,
9662,
362,
16727,
29898,
978,
3790,
1118,
7855,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
978,
29892,
2062,
29898,
1311,
29889,
10041,
29897,
13,
4706,
1723,
13,
13,
13,
1990,
5953,
522,
21233,
3591,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
6362,
522,
21233,
3591,
338,
263,
1121,
1203,
607,
3743,
13,
1678,
278,
17809,
4086,
310,
263,
3153,
1842,
29889,
13,
13,
1678,
584,
440,
279,
1178,
29901,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
393,
7087,
278,
13,
4706,
1842,
1178,
393,
471,
4502,
297,
411,
278,
2009,
29889,
960,
451,
6790,
13,
4706,
297,
278,
2009,
29892,
385,
1178,
338,
9859,
363,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
1178,
29901,
851,
13,
1678,
584,
440,
279,
7601,
29918,
11675,
29901,
450,
7601,
4086,
17809,
297,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
7601,
29918,
11675,
29901,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
6362,
26458,
21233,
13,
1678,
584,
440,
279,
18116,
29901,
399,
2753,
886,
18169,
1550,
9068,
1842,
29889,
17212,
674,
1603,
367,
4133,
13,
4706,
565,
727,
526,
18116,
29892,
541,
896,
1122,
451,
367,
8072,
16232,
29889,
13,
1678,
584,
29894,
442,
668,
18116,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
21067,
22026,
22709,
29962,
13,
1678,
584,
440,
279,
13964,
29901,
960,
421,
4294,
29918,
16202,
29922,
5574,
29952,
471,
6790,
297,
278,
2009,
445,
13,
4706,
1746,
674,
1712,
2472,
1048,
278,
1842,
20092,
29889,
13,
1678,
584,
29894,
442,
668,
13964,
29901,
13,
4706,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
6268,
9513,
6765,
13,
1678,
584,
440,
279,
6120,
338,
29918,
2704,
29901,
11185,
1423,
363,
1059,
2944,
746,
4256,
1218,
975,
1051,
310,
13,
4706,
2582,
29889,
29849,
7700,
363,
385,
2777,
310,
263,
5953,
522,
21233,
3591,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
333,
353,
9049,
5085,
29889,
657,
703,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
16072,
29918,
11675,
353,
9049,
5085,
29889,
657,
703,
16072,
29918,
11675,
613,
6213,
29897,
13,
4706,
1583,
29889,
25442,
886,
353,
9049,
5085,
29889,
657,
703,
25442,
886,
613,
518,
2314,
13,
4706,
1583,
29889,
6112,
6765,
353,
9049,
5085,
29889,
657,
703,
6112,
6765,
613,
6213,
29897,
13,
4706,
1583,
29889,
275,
29918,
2704,
353,
7700,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
6362,
522,
21233,
3591,
29898,
333,
3790,
1118,
7601,
29918,
11675,
3790,
1118,
18116,
3790,
1118,
13964,
3790,
1118,
376,
13,
9651,
376,
275,
29918,
2704,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
333,
29892,
13,
18884,
2062,
29898,
1311,
29889,
16072,
29918,
11675,
511,
13,
18884,
2062,
29898,
1311,
29889,
25442,
886,
511,
13,
18884,
2062,
29898,
1311,
29889,
6112,
6765,
511,
13,
18884,
1583,
29889,
275,
29918,
2704,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
315,
20440,
1891,
6691,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
29907,
20440,
1891,
6691,
3743,
2472,
1048,
263,
3153,
13,
1678,
7855,
1476,
297,
1426,
29889,
13,
13,
1678,
584,
440,
279,
1426,
29901,
14945,
1426,
408,
5692,
297,
278,
2009,
29889,
13,
1678,
584,
29894,
442,
668,
1426,
29901,
851,
13,
1678,
584,
440,
279,
7663,
29901,
14945,
7663,
29892,
1316,
408,
5196,
29914,
6508,
29914,
2816,
29887,
29914,
13429,
2992,
13,
1678,
584,
29894,
442,
668,
7663,
29901,
851,
13,
1678,
584,
440,
279,
1014,
7320,
29901,
14945,
1014,
7320,
29892,
1316,
408,
16767,
29914,
12883,
29914,
2481,
6069,
2992,
13,
1678,
584,
29894,
442,
668,
1014,
7320,
29901,
851,
13,
1678,
584,
440,
279,
938,
3309,
29901,
450,
7855,
1426,
3309,
29889,
29871,
910,
995,
7111,
373,
278,
995,
310,
278,
13,
4706,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
13,
4706,
491,
2322,
29889,
13,
1678,
584,
440,
279,
938,
9210,
29901,
450,
7855,
1426,
9210,
515,
278,
1369,
310,
278,
1842,
29889,
13,
4706,
450,
995,
7111,
373,
278,
995,
310,
278,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
13,
4706,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
491,
2322,
29889,
13,
1678,
584,
440,
279,
16420,
29918,
13628,
29901,
10811,
5084,
8158,
1546,
29871,
29900,
322,
29871,
29896,
310,
278,
23892,
13,
4706,
7855,
29889,
13,
1678,
584,
29894,
442,
668,
16420,
29918,
13628,
29901,
5785,
13,
13,
1678,
6317,
1873,
23959,
1057,
325,
29941,
29889,
29896,
13,
4706,
450,
334,
10289,
29930,
322,
334,
2848,
29930,
4426,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
726,
353,
9049,
5085,
29889,
657,
703,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
7320,
353,
9049,
5085,
29889,
657,
703,
7320,
613,
6213,
29897,
13,
4706,
1583,
29889,
1491,
7320,
353,
9049,
5085,
29889,
657,
703,
1491,
7320,
613,
6213,
29897,
13,
4706,
1583,
29889,
2848,
353,
9049,
5085,
29889,
657,
703,
2848,
613,
6213,
29897,
13,
4706,
1583,
29889,
10289,
353,
9049,
5085,
29889,
657,
703,
10289,
613,
6213,
29897,
13,
4706,
1583,
29889,
5527,
5084,
29918,
13628,
353,
9049,
5085,
29889,
657,
703,
5527,
5084,
29918,
13628,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
7855,
1125,
13,
4706,
9210,
353,
7855,
29889,
10289,
13,
4706,
3309,
353,
7855,
29889,
2848,
13,
4706,
565,
338,
8758,
29898,
10041,
29892,
903,
29894,
29941,
29918,
29900,
29918,
9794,
29889,
6691,
1125,
13,
9651,
396,
591,
437,
451,
736,
9210,
363,
325,
29941,
29889,
29900,
1951,
13,
9651,
396,
278,
1959,
8025,
471,
451,
9129,
363,
325,
29941,
29889,
29900,
13,
9651,
9210,
353,
6213,
13,
9651,
3309,
353,
6213,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1426,
29922,
10041,
29889,
726,
29892,
13,
9651,
7663,
29922,
10041,
29889,
7320,
29892,
13,
9651,
1014,
7320,
29922,
10041,
29889,
1491,
7320,
29892,
13,
9651,
3309,
29922,
2848,
29892,
13,
9651,
9210,
29922,
10289,
29892,
13,
9651,
16420,
29918,
13628,
29922,
10041,
29889,
5527,
5084,
29918,
13628,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
29907,
20440,
1891,
6691,
29898,
726,
3790,
1118,
7663,
3790,
1118,
1014,
7320,
3790,
1118,
376,
13,
9651,
376,
2848,
3790,
1118,
9210,
3790,
1118,
16420,
29918,
13628,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
726,
29892,
13,
18884,
1583,
29889,
7320,
29892,
13,
18884,
1583,
29889,
1491,
7320,
29892,
13,
18884,
1583,
29889,
2848,
29892,
13,
18884,
1583,
29889,
10289,
29892,
13,
18884,
1583,
29889,
5527,
5084,
29918,
13628,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
349,
2236,
6691,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
29925,
2236,
6691,
3743,
2472,
1048,
263,
5196,
635,
13355,
28677,
13,
1678,
10343,
313,
2227,
29902,
29897,
7855,
1476,
297,
1426,
29889,
13,
13,
1678,
584,
440,
279,
851,
1426,
29901,
14945,
1426,
408,
5692,
297,
278,
2009,
29889,
13,
1678,
584,
440,
279,
851,
7663,
29901,
14945,
7663,
29892,
1316,
408,
4231,
273,
1455,
16535,
13,
4706,
13355,
2450,
29914,
6295,
1455,
14223,
9681,
29914,
9861,
9681,
29892,
2992,
29889,
13,
1678,
584,
440,
279,
851,
1014,
7320,
29901,
14945,
1014,
7320,
29892,
1316,
408,
24596,
277,
9160,
29914,
29923,
29965,
13,
4706,
24323,
1353,
29914,
2882,
29909,
20829,
292,
11848,
2596,
29892,
2992,
29889,
13,
1678,
584,
440,
279,
938,
3309,
29901,
450,
349,
2687,
7855,
1426,
3309,
29889,
29871,
910,
995,
7111,
373,
278,
995,
13,
4706,
310,
278,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
6790,
297,
278,
2441,
2009,
29892,
607,
13,
4706,
338,
23862,
3399,
20325,
491,
2322,
29889,
13,
1678,
584,
440,
279,
938,
9210,
29901,
450,
349,
2687,
7855,
1426,
9210,
515,
278,
1369,
310,
278,
1842,
29889,
13,
4706,
910,
995,
7111,
373,
278,
995,
310,
278,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
6790,
13,
4706,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
491,
2322,
29889,
13,
1678,
584,
440,
279,
5785,
16420,
29918,
13628,
29901,
10811,
5084,
8158,
1546,
29871,
29900,
322,
29871,
29896,
310,
278,
23892,
13,
4706,
7855,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
726,
353,
9049,
5085,
29889,
657,
703,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
7320,
353,
9049,
5085,
29889,
657,
703,
7320,
613,
6213,
29897,
13,
4706,
1583,
29889,
1491,
7320,
353,
9049,
5085,
29889,
657,
703,
1491,
7320,
613,
6213,
29897,
13,
4706,
1583,
29889,
2848,
353,
9049,
5085,
29889,
657,
703,
2848,
613,
6213,
29897,
13,
4706,
1583,
29889,
10289,
353,
9049,
5085,
29889,
657,
703,
10289,
613,
6213,
29897,
13,
4706,
1583,
29889,
5527,
5084,
29918,
13628,
353,
9049,
5085,
29889,
657,
703,
5527,
5084,
29918,
13628,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
7855,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1426,
29922,
10041,
29889,
726,
29892,
13,
9651,
7663,
29922,
10041,
29889,
7320,
29892,
13,
9651,
1014,
7320,
29922,
10041,
29889,
1491,
7320,
29892,
13,
9651,
3309,
29922,
10041,
29889,
2848,
29892,
13,
9651,
9210,
29922,
10041,
29889,
10289,
29892,
13,
9651,
16420,
29918,
13628,
29922,
10041,
29889,
5527,
5084,
29918,
13628,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
29925,
2236,
6691,
29898,
726,
3790,
1118,
7663,
3790,
1118,
1014,
7320,
3790,
1118,
3309,
3790,
1118,
376,
13,
9651,
376,
10289,
3790,
1118,
16420,
29918,
13628,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
726,
29892,
13,
18884,
1583,
29889,
7320,
29892,
13,
18884,
1583,
29889,
1491,
7320,
29892,
13,
18884,
1583,
29889,
2848,
29892,
13,
18884,
1583,
29889,
10289,
29892,
13,
18884,
1583,
29889,
5527,
5084,
29918,
13628,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
15202,
18020,
6691,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
3868,
4298,
18020,
6691,
3743,
2472,
1048,
263,
15202,
18020,
7855,
1476,
297,
1426,
29889,
13,
13,
1678,
584,
440,
279,
851,
1426,
29901,
14945,
1426,
408,
5692,
297,
278,
1842,
29889,
13,
1678,
584,
440,
279,
851,
4226,
1891,
29918,
726,
29901,
28379,
29889,
21981,
1891,
1873,
310,
278,
10650,
421,
726,
29952,
591,
6597,
13,
4706,
515,
278,
1842,
29889,
2216,
599,
421,
726,
29952,
674,
505,
263,
4226,
1891,
1873,
29889,
13,
1678,
584,
440,
279,
851,
7663,
29901,
14945,
7663,
29892,
1074,
278,
584,
1990,
18078,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
3868,
4298,
18020,
6691,
10900,
29952,
13,
4706,
1134,
363,
1950,
9045,
18020,
7855,
13997,
29889,
13,
1678,
584,
440,
279,
851,
1014,
7320,
29901,
14945,
1014,
7320,
29889,
13,
1678,
584,
440,
279,
28306,
29901,
2866,
2708,
5164,
4974,
1080,
1048,
445,
7855,
29889,
1152,
1342,
29892,
565,
13,
4706,
385,
7855,
338,
263,
24876,
19263,
29892,
338,
445,
24876,
19263,
525,
1116,
3245,
29915,
373,
263,
25828,
290,
29973,
13,
4706,
4683,
278,
437,
14359,
525,
14082,
29915,
1048,
445,
24876,
19263,
29973,
1317,
445,
24876,
19263,
525,
21264,
630,
29915,
13,
4706,
411,
1790,
24876,
19263,
29973,
13,
1678,
584,
29894,
442,
668,
28306,
29901,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
3868,
4298,
18020,
6691,
14697,
291,
13,
1678,
584,
440,
279,
938,
3309,
29901,
450,
7855,
1426,
3309,
29889,
29871,
910,
995,
7111,
373,
278,
995,
13,
4706,
310,
278,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
6790,
297,
278,
2441,
2009,
29892,
607,
338,
13,
4706,
23862,
3399,
20325,
491,
2322,
29889,
13,
1678,
584,
440,
279,
938,
9210,
29901,
450,
7855,
1426,
9210,
515,
278,
1369,
310,
278,
1842,
29889,
13,
4706,
910,
995,
7111,
373,
278,
995,
310,
278,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
6790,
13,
4706,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
491,
2322,
29889,
13,
1678,
584,
440,
279,
5785,
16420,
29918,
13628,
29901,
10811,
5084,
8158,
1546,
29871,
29900,
322,
29871,
29896,
310,
278,
23892,
13,
4706,
7855,
29889,
13,
1678,
584,
440,
279,
848,
29918,
29879,
2863,
29901,
319,
4333,
310,
7855,
9282,
297,
2998,
848,
8974,
29889,
13,
1678,
584,
29894,
442,
668,
848,
29918,
29879,
2863,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
3868,
4298,
18020,
6691,
15559,
29962,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
726,
353,
9049,
5085,
29889,
657,
703,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
8945,
1891,
29918,
726,
353,
9049,
5085,
29889,
657,
703,
8945,
1891,
29918,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
7320,
353,
9049,
5085,
29889,
657,
703,
7320,
613,
6213,
29897,
13,
4706,
1583,
29889,
1491,
7320,
353,
9049,
5085,
29889,
657,
703,
1491,
7320,
613,
6213,
29897,
13,
4706,
1583,
29889,
9294,
291,
353,
9049,
5085,
29889,
657,
703,
9294,
291,
613,
6213,
29897,
13,
4706,
1583,
29889,
2848,
353,
9049,
5085,
29889,
657,
703,
2848,
613,
6213,
29897,
13,
4706,
1583,
29889,
10289,
353,
9049,
5085,
29889,
657,
703,
10289,
613,
6213,
29897,
13,
4706,
1583,
29889,
5527,
5084,
29918,
13628,
353,
9049,
5085,
29889,
657,
703,
5527,
5084,
29918,
13628,
613,
6213,
29897,
13,
4706,
1583,
29889,
1272,
29918,
29879,
2863,
353,
9049,
5085,
29889,
657,
703,
1272,
29918,
29879,
2863,
613,
518,
2314,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
9045,
18020,
29918,
10041,
1125,
13,
4706,
28306,
353,
6213,
13,
4706,
1018,
29901,
13,
9651,
565,
9045,
18020,
29918,
10041,
29889,
9294,
291,
29901,
13,
18884,
28306,
353,
15202,
18020,
6691,
14697,
291,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
462,
1678,
9045,
18020,
29918,
10041,
29889,
9294,
291,
13,
18884,
1723,
13,
4706,
5174,
23833,
2392,
29901,
13,
9651,
28306,
353,
6213,
13,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1426,
29922,
354,
4298,
18020,
29918,
10041,
29889,
726,
29892,
13,
9651,
4226,
1891,
29918,
726,
29922,
354,
4298,
18020,
29918,
10041,
29889,
978,
29892,
13,
9651,
7663,
29922,
354,
4298,
18020,
29918,
10041,
29889,
7320,
29892,
13,
9651,
1014,
7320,
29922,
354,
4298,
18020,
29918,
10041,
29889,
1491,
7320,
29892,
13,
9651,
28306,
29922,
9294,
291,
29892,
13,
9651,
3309,
29922,
354,
4298,
18020,
29918,
10041,
29889,
2848,
29892,
13,
9651,
9210,
29922,
354,
4298,
18020,
29918,
10041,
29889,
10289,
29892,
13,
9651,
16420,
29918,
13628,
29922,
354,
4298,
18020,
29918,
10041,
29889,
5527,
5084,
29918,
13628,
29892,
13,
9651,
848,
29918,
29879,
2863,
11759,
13,
18884,
15202,
18020,
6691,
15559,
29898,
10041,
29918,
333,
29922,
29880,
29889,
333,
29892,
1024,
29922,
29880,
29889,
1272,
29918,
4993,
29897,
13,
18884,
363,
301,
297,
9045,
18020,
29918,
10041,
29889,
4965,
13,
9651,
4514,
13,
9651,
565,
9045,
18020,
29918,
10041,
29889,
4965,
13,
9651,
1683,
6213,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
8568,
12035,
1311,
1125,
13,
4706,
736,
6608,
29898,
276,
558,
29898,
1311,
876,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
3868,
4298,
18020,
6691,
29898,
726,
3790,
1118,
4226,
1891,
29918,
726,
3790,
1118,
7663,
3790,
1118,
1014,
7320,
3790,
1118,
28306,
3790,
1118,
3309,
3790,
1118,
376,
13,
9651,
376,
10289,
3790,
1118,
16420,
29918,
13628,
3790,
1118,
848,
29918,
29879,
2863,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
726,
29892,
13,
18884,
1583,
29889,
8945,
1891,
29918,
726,
29892,
13,
18884,
1583,
29889,
7320,
29892,
13,
18884,
1583,
29889,
1491,
7320,
29892,
13,
18884,
2062,
29898,
1311,
29889,
9294,
291,
511,
13,
18884,
1583,
29889,
2848,
29892,
13,
18884,
1583,
29889,
10289,
29892,
13,
18884,
1583,
29889,
5527,
5084,
29918,
13628,
29892,
13,
18884,
2062,
29898,
1311,
29889,
1272,
29918,
29879,
2863,
511,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
15202,
18020,
6691,
14697,
291,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
21409,
5164,
4974,
1080,
1048,
263,
421,
3868,
4298,
18020,
6691,
1412,
13,
13,
1678,
1152,
1342,
29892,
565,
385,
7855,
338,
263,
24876,
19263,
29892,
338,
445,
24876,
19263,
525,
1116,
3245,
29915,
373,
263,
25828,
290,
29973,
13,
1678,
4683,
278,
437,
14359,
525,
14082,
29915,
1048,
445,
24876,
19263,
29973,
1317,
445,
24876,
19263,
525,
21264,
630,
29915,
13,
1678,
411,
1790,
24876,
19263,
29973,
13,
13,
1678,
584,
440,
279,
851,
4195,
2877,
29901,
20355,
5707,
3692,
278,
9045,
18020,
7855,
372,
29915,
29879,
373,
338,
15047,
373,
1790,
7855,
29889,
13,
4706,
1152,
1342,
29892,
376,
3644,
278,
16500,
756,
263,
1238,
369,
29892,
540,
756,
282,
29765,
6405,
613,
278,
24876,
19263,
310,
282,
29765,
6405,
13,
4706,
338,
525,
1116,
3245,
29915,
373,
3692,
278,
16500,
756,
263,
1238,
369,
29889,
20049,
1819,
526,
376,
29882,
1478,
720,
300,
936,
29908,
322,
13,
4706,
376,
1116,
3245,
1642,
13,
1678,
584,
440,
279,
851,
3058,
1017,
29901,
20355,
5707,
920,
3058,
278,
9045,
18020,
7855,
372,
29915,
29879,
373,
338,
29889,
1152,
1342,
29892,
13,
4706,
297,
376,
1576,
16500,
1122,
505,
263,
1238,
369,
613,
278,
1238,
369,
7855,
338,
451,
29871,
29896,
29900,
29900,
29995,
3058,
29892,
541,
338,
2012,
13,
4706,
376,
1066,
3321,
9135,
1687,
1642,
20049,
1819,
526,
376,
1066,
3321,
613,
376,
1066,
3321,
9135,
1687,
613,
376,
17821,
1705,
9135,
1687,
613,
13,
4706,
376,
22198,
9135,
1687,
613,
322,
376,
22198,
1642,
13,
1678,
584,
440,
279,
851,
15477,
29901,
20355,
5707,
3692,
278,
9045,
18020,
7855,
372,
29915,
29879,
373,
338,
278,
4967,
310,
278,
1842,
29892,
470,
13,
4706,
565,
445,
7855,
16612,
4856,
1683,
297,
278,
1842,
29889,
1152,
1342,
29892,
297,
376,
1576,
4967,
29915,
29879,
5637,
756,
13,
4706,
263,
1238,
369,
613,
278,
376,
29888,
1310,
29908,
7855,
338,
451,
6942,
411,
278,
4967,
6053,
29892,
541,
411,
278,
4967,
29915,
29879,
13,
4706,
5637,
29889,
20049,
1819,
526,
376,
16009,
29908,
322,
376,
1228,
1642,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
16122,
2877,
353,
9049,
5085,
29889,
657,
703,
16122,
2877,
613,
6213,
29897,
13,
4706,
1583,
29889,
14082,
1017,
353,
9049,
5085,
29889,
657,
703,
14082,
1017,
613,
6213,
29897,
13,
4706,
1583,
29889,
21264,
362,
353,
9049,
5085,
29889,
657,
703,
21264,
362,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
9045,
18020,
29918,
9294,
291,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
4195,
2877,
29922,
354,
4298,
18020,
29918,
9294,
291,
29889,
16122,
2877,
29892,
13,
9651,
3058,
1017,
29922,
354,
4298,
18020,
29918,
9294,
291,
29889,
14082,
1017,
29892,
13,
9651,
15477,
29922,
354,
4298,
18020,
29918,
9294,
291,
29889,
21264,
362,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
3868,
4298,
18020,
6691,
14697,
291,
29898,
16122,
2877,
3790,
1118,
3058,
1017,
3790,
1118,
15477,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
16122,
2877,
29892,
1583,
29889,
14082,
1017,
29892,
1583,
29889,
21264,
362,
13,
4706,
1723,
13,
13,
13,
1990,
15202,
18020,
6691,
15559,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
13,
1678,
15202,
18020,
6691,
15559,
3743,
2472,
15783,
385,
7855,
3407,
297,
263,
2998,
848,
2752,
29889,
13,
13,
1678,
584,
440,
279,
851,
7855,
29918,
333,
29901,
3553,
310,
278,
7855,
297,
278,
2183,
2752,
16653,
29889,
13,
1678,
584,
440,
279,
851,
1024,
29901,
450,
1024,
310,
278,
7855,
16653,
515,
988,
278,
7855,
471,
15659,
29892,
1316,
408,
501,
1988,
29903,
29892,
5868,
29963,
29892,
341,
7068,
29892,
2992,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
10041,
29918,
333,
353,
9049,
5085,
29889,
657,
703,
10041,
29918,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
978,
353,
9049,
5085,
29889,
657,
703,
978,
613,
6213,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
3868,
4298,
18020,
6691,
15559,
29898,
10041,
29918,
333,
3790,
1118,
1024,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
10041,
29918,
333,
29892,
1583,
29889,
978,
13,
4706,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
13,
13,
1990,
3992,
21067,
22026,
2392,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
1626,
21067,
22026,
2392,
3743,
278,
1059,
775,
29892,
2643,
29892,
322,
13,
1678,
916,
4902,
393,
5649,
2020,
278,
9853,
470,
5375,
1842,
13,
1678,
5229,
304,
367,
19356,
491,
278,
2669,
29889,
13,
13,
1678,
584,
440,
279,
775,
29901,
4829,
775,
29889,
20049,
1819,
3160,
29901,
13,
268,
525,
20965,
3089,
742,
525,
20965,
15730,
742,
525,
7564,
6004,
2392,
742,
13,
268,
525,
5509,
2525,
16515,
742,
525,
20965,
9329,
1917,
742,
525,
20965,
3089,
8434,
5809,
742,
13,
268,
525,
6310,
3089,
742,
525,
27259,
4290,
4789,
4339,
742,
525,
20965,
6268,
742,
525,
4299,
6594,
797,
15728,
742,
13,
268,
525,
20965,
6268,
23145,
742,
525,
348,
23765,
21233,
3399,
742,
525,
20965,
20779,
28016,
29915,
13,
1678,
584,
29894,
442,
668,
775,
29901,
851,
13,
1678,
584,
440,
279,
2643,
29901,
4829,
2643,
29889,
13,
1678,
584,
29894,
442,
668,
2643,
29901,
851,
13,
1678,
584,
440,
279,
3646,
29901,
4829,
3646,
29889,
13,
1678,
584,
29894,
442,
668,
3646,
29901,
851,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
401,
353,
9049,
5085,
29889,
657,
703,
401,
613,
6213,
29897,
13,
4706,
1583,
29889,
4906,
353,
9049,
5085,
29889,
657,
703,
4906,
613,
6213,
29897,
13,
4706,
1583,
29889,
5182,
353,
9049,
5085,
29889,
657,
703,
5182,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
4589,
1125,
13,
4706,
565,
4589,
29889,
3993,
2704,
29901,
13,
9651,
736,
1067,
29879,
29898,
13,
18884,
775,
29922,
3127,
29889,
3993,
2704,
29889,
401,
29892,
13,
18884,
2643,
29922,
3127,
29889,
3993,
2704,
29889,
4906,
29892,
13,
18884,
3646,
29922,
3127,
29889,
3993,
2704,
29889,
5182,
29892,
13,
9651,
1723,
13,
4706,
736,
1067,
29879,
29898,
401,
29922,
3127,
29889,
401,
29892,
2643,
29922,
3127,
29889,
4906,
29892,
3646,
29922,
3127,
29889,
5182,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
1626,
21067,
22026,
2392,
29898,
401,
3790,
1118,
2643,
3790,
1118,
3646,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
401,
29892,
1583,
29889,
4906,
29892,
1583,
29889,
5182,
13,
4706,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
13,
13,
1990,
3992,
21067,
22026,
22709,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
1626,
21067,
22026,
22709,
3743,
278,
9177,
775,
322,
2643,
393,
18568,
2020,
13,
1678,
278,
2933,
756,
263,
9177,
29889,
13,
13,
1678,
584,
440,
279,
775,
29901,
24412,
775,
29889,
20049,
1819,
3160,
29901,
525,
8208,
29956,
4339,
797,
6268,
742,
13,
268,
525,
6268,
2308,
4661,
630,
4286,
13,
1678,
584,
29894,
442,
668,
775,
29901,
851,
13,
1678,
584,
440,
279,
2643,
29901,
24412,
2643,
29889,
13,
1678,
584,
29894,
442,
668,
2643,
29901,
851,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
401,
353,
9049,
5085,
29889,
657,
703,
401,
613,
6213,
29897,
13,
4706,
1583,
29889,
4906,
353,
9049,
5085,
29889,
657,
703,
4906,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
9177,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
775,
29922,
27392,
29889,
401,
29892,
13,
9651,
2643,
29922,
27392,
29889,
4906,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
1626,
21067,
22026,
22709,
29898,
401,
3790,
1118,
2643,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
401,
29892,
1583,
29889,
4906,
13,
4706,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
13,
13,
1990,
7338,
1461,
2558,
29925,
1092,
2129,
3591,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
5647,
1461,
2558,
29925,
1092,
2129,
3591,
338,
263,
1121,
1203,
607,
3743,
13,
1678,
278,
1820,
12216,
2129,
1476,
297,
263,
3153,
1842,
29889,
13,
13,
1678,
584,
440,
279,
1178,
29901,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
393,
7087,
278,
13,
4706,
1842,
1178,
393,
471,
4502,
297,
411,
278,
2009,
29889,
960,
451,
6790,
13,
4706,
297,
278,
2009,
29892,
385,
1178,
338,
9859,
363,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
1178,
29901,
851,
13,
1678,
584,
440,
279,
1820,
29918,
24588,
2129,
29901,
319,
1051,
310,
21097,
3838,
470,
12216,
2129,
29889,
13,
4706,
450,
1353,
310,
1820,
12216,
2129,
4133,
338,
29839,
304,
278,
1353,
310,
3838,
13,
4706,
297,
278,
1881,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
1820,
29918,
24588,
2129,
29901,
1051,
29961,
710,
29962,
13,
1678,
584,
440,
279,
18116,
29901,
399,
2753,
886,
18169,
1550,
9068,
1842,
29889,
17212,
674,
1603,
367,
4133,
13,
4706,
565,
727,
526,
18116,
29892,
541,
896,
1122,
451,
367,
8072,
16232,
29889,
13,
1678,
584,
29894,
442,
668,
18116,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
21067,
22026,
22709,
29962,
13,
1678,
584,
440,
279,
13964,
29901,
960,
421,
4294,
29918,
16202,
29922,
5574,
29952,
471,
6790,
297,
278,
2009,
445,
13,
4706,
1746,
674,
1712,
2472,
1048,
278,
1842,
20092,
29889,
13,
1678,
584,
29894,
442,
668,
13964,
29901,
13,
4706,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
6268,
9513,
6765,
13,
1678,
584,
440,
279,
6120,
338,
29918,
2704,
29901,
11185,
1423,
363,
1059,
2944,
746,
4256,
1218,
975,
1051,
310,
13,
4706,
2582,
29889,
29849,
7700,
363,
385,
2777,
310,
263,
7338,
1461,
2558,
29925,
1092,
2129,
3591,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
333,
353,
9049,
5085,
29889,
657,
703,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
1989,
29918,
24588,
2129,
353,
9049,
5085,
29889,
657,
703,
1989,
29918,
24588,
2129,
613,
6213,
29897,
13,
4706,
1583,
29889,
25442,
886,
353,
9049,
5085,
29889,
657,
703,
25442,
886,
613,
518,
2314,
13,
4706,
1583,
29889,
6112,
6765,
353,
9049,
5085,
29889,
657,
703,
6112,
6765,
613,
6213,
29897,
13,
4706,
1583,
29889,
275,
29918,
2704,
353,
7700,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
5647,
1461,
2558,
29925,
1092,
2129,
3591,
29898,
333,
3790,
1118,
1820,
29918,
24588,
2129,
3790,
1118,
18116,
3790,
1118,
13964,
3790,
1118,
338,
29918,
2704,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
333,
29892,
13,
9651,
1583,
29889,
1989,
29918,
24588,
2129,
29892,
13,
9651,
2062,
29898,
1311,
29889,
25442,
886,
511,
13,
9651,
2062,
29898,
1311,
29889,
6112,
6765,
511,
13,
9651,
1583,
29889,
275,
29918,
2704,
29892,
13,
4706,
1723,
29961,
13,
9651,
584,
29896,
29900,
29906,
29946,
13,
4706,
4514,
13,
13,
13,
1990,
3599,
3811,
675,
6595,
287,
5292,
1907,
3591,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
23122,
675,
6595,
287,
5292,
1907,
3591,
338,
263,
1121,
1203,
607,
3743,
13,
1678,
2988,
304,
263,
1532,
29899,
5203,
7134,
2967,
29892,
763,
363,
1342,
29892,
14109,
470,
350,
292,
29889,
13,
13,
1678,
584,
440,
279,
1178,
29901,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
393,
7087,
278,
13,
4706,
1842,
1178,
393,
471,
4502,
297,
411,
278,
2009,
29889,
960,
451,
6790,
13,
4706,
297,
278,
2009,
29892,
385,
1178,
338,
9859,
363,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
1178,
29901,
851,
13,
1678,
584,
440,
279,
16212,
29901,
3599,
3811,
1891,
1532,
29899,
5203,
16212,
297,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
16212,
29901,
13,
4706,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
6595,
287,
6691,
29962,
13,
1678,
584,
440,
279,
18116,
29901,
399,
2753,
886,
18169,
1550,
9068,
1842,
29889,
17212,
674,
1603,
367,
4133,
13,
4706,
565,
727,
526,
18116,
29892,
541,
896,
1122,
451,
367,
8072,
16232,
29889,
13,
1678,
584,
29894,
442,
668,
18116,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
21067,
22026,
22709,
29962,
13,
1678,
584,
440,
279,
13964,
29901,
960,
421,
4294,
29918,
16202,
29922,
5574,
29952,
471,
6790,
297,
278,
2009,
445,
13,
4706,
1746,
674,
1712,
2472,
1048,
278,
1842,
20092,
29889,
13,
1678,
584,
29894,
442,
668,
13964,
29901,
13,
4706,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
6268,
9513,
6765,
13,
1678,
584,
440,
279,
6120,
338,
29918,
2704,
29901,
11185,
1423,
363,
1059,
2944,
746,
4256,
1218,
975,
1051,
310,
13,
4706,
2582,
29889,
29849,
7700,
363,
385,
2777,
310,
263,
3599,
3811,
675,
6595,
287,
5292,
1907,
3591,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
333,
353,
9049,
5085,
29889,
657,
703,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
296,
1907,
353,
9049,
5085,
29889,
657,
703,
296,
1907,
613,
6213,
29897,
13,
4706,
1583,
29889,
25442,
886,
353,
9049,
5085,
29889,
657,
703,
25442,
886,
613,
518,
2314,
13,
4706,
1583,
29889,
6112,
6765,
353,
9049,
5085,
29889,
657,
703,
6112,
6765,
613,
6213,
29897,
13,
4706,
1583,
29889,
275,
29918,
2704,
353,
7700,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
23122,
675,
6595,
287,
5292,
1907,
3591,
29898,
333,
3790,
1118,
16212,
3790,
1118,
18116,
3790,
1118,
13964,
3790,
1118,
338,
29918,
2704,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
333,
29892,
13,
9651,
2062,
29898,
1311,
29889,
296,
1907,
511,
13,
9651,
2062,
29898,
1311,
29889,
25442,
886,
511,
13,
9651,
2062,
29898,
1311,
29889,
6112,
6765,
511,
13,
9651,
1583,
29889,
275,
29918,
2704,
29892,
13,
4706,
1723,
29961,
13,
9651,
584,
29896,
29900,
29906,
29946,
13,
4706,
4514,
13,
13,
13,
1990,
11597,
29891,
911,
29903,
296,
2073,
3591,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
2744,
14997,
911,
29903,
296,
2073,
3591,
338,
263,
1121,
1203,
607,
3743,
13,
1678,
278,
12463,
25383,
19688,
322,
16420,
19435,
363,
596,
1842,
13,
1678,
322,
263,
639,
29899,
18616,
663,
19688,
18988,
411,
19435,
29889,
13,
13,
1678,
584,
440,
279,
1178,
29901,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
393,
7087,
278,
13,
4706,
1842,
1178,
393,
471,
4502,
297,
411,
278,
2009,
29889,
960,
451,
6790,
13,
4706,
297,
278,
2009,
29892,
385,
1178,
338,
9859,
363,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
1178,
29901,
851,
13,
1678,
584,
440,
279,
19688,
29901,
21099,
18186,
19688,
363,
1842,
313,
29940,
387,
1230,
29892,
13,
4706,
2448,
329,
1705,
29892,
10321,
3321,
29892,
470,
341,
11925,
467,
20049,
1819,
3160,
29901,
525,
1066,
3321,
742,
13,
4706,
525,
17821,
1705,
742,
525,
22198,
742,
525,
29885,
11925,
29915,
13,
1678,
584,
29894,
442,
668,
19688,
29901,
851,
13,
1678,
584,
440,
279,
18116,
29901,
399,
2753,
886,
18169,
1550,
9068,
1842,
29889,
17212,
674,
1603,
367,
4133,
13,
4706,
565,
727,
526,
18116,
29892,
541,
896,
1122,
451,
367,
8072,
16232,
29889,
13,
1678,
584,
29894,
442,
668,
18116,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
21067,
22026,
22709,
29962,
13,
1678,
584,
440,
279,
13964,
29901,
960,
421,
4294,
29918,
16202,
29922,
5574,
29952,
471,
6790,
297,
278,
2009,
445,
13,
4706,
1746,
674,
1712,
2472,
1048,
278,
1842,
20092,
29889,
13,
1678,
584,
29894,
442,
668,
13964,
29901,
13,
4706,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
6268,
9513,
6765,
13,
1678,
584,
440,
279,
16420,
29918,
1557,
2361,
29901,
10854,
3233,
19688,
16420,
13,
4706,
19435,
1546,
29871,
29900,
322,
29871,
29896,
363,
1269,
19688,
3858,
29889,
13,
1678,
584,
29894,
442,
668,
16420,
29918,
1557,
2361,
29901,
13,
4706,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29903,
296,
2073,
16376,
5084,
4421,
2361,
13,
1678,
584,
440,
279,
25260,
29901,
28048,
663,
3233,
19688,
7418,
29889,
13,
1678,
584,
29894,
442,
668,
25260,
29901,
13,
4706,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29903,
296,
663,
29903,
296,
2073,
29962,
13,
1678,
584,
440,
279,
6120,
338,
29918,
2704,
29901,
11185,
1423,
363,
1059,
2944,
746,
4256,
1218,
975,
1051,
310,
13,
4706,
2582,
29889,
29849,
7700,
363,
385,
2777,
310,
263,
11597,
29891,
911,
29903,
296,
2073,
3591,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
333,
353,
9049,
5085,
29889,
657,
703,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
18616,
2073,
353,
9049,
5085,
29889,
657,
703,
18616,
2073,
613,
6213,
29897,
13,
4706,
1583,
29889,
25442,
886,
353,
9049,
5085,
29889,
657,
703,
25442,
886,
613,
518,
2314,
13,
4706,
1583,
29889,
6112,
6765,
353,
9049,
5085,
29889,
657,
703,
6112,
6765,
613,
6213,
29897,
13,
4706,
1583,
29889,
5527,
5084,
29918,
1557,
2361,
353,
9049,
5085,
29889,
657,
703,
5527,
5084,
29918,
1557,
2361,
613,
6213,
29897,
13,
4706,
1583,
29889,
18616,
2063,
353,
9049,
5085,
29889,
657,
703,
18616,
2063,
613,
6213,
29897,
13,
4706,
1583,
29889,
275,
29918,
2704,
353,
7700,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
2744,
14997,
911,
29903,
296,
2073,
3591,
29898,
333,
3790,
1118,
19688,
3790,
1118,
18116,
3790,
1118,
13964,
3790,
1118,
16420,
29918,
1557,
2361,
3790,
1118,
376,
13,
9651,
376,
18616,
2063,
3790,
1118,
338,
29918,
2704,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
333,
29892,
13,
18884,
1583,
29889,
18616,
2073,
29892,
13,
18884,
2062,
29898,
1311,
29889,
25442,
886,
511,
13,
18884,
2062,
29898,
1311,
29889,
6112,
6765,
511,
13,
18884,
2062,
29898,
1311,
29889,
5527,
5084,
29918,
1557,
2361,
511,
13,
18884,
2062,
29898,
1311,
29889,
18616,
2063,
511,
13,
18884,
1583,
29889,
275,
29918,
2704,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
3992,
6268,
9513,
6765,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
1626,
6268,
9513,
6765,
3743,
2472,
1048,
13,
1678,
278,
1842,
20092,
29889,
13,
13,
1678,
584,
440,
279,
2931,
29918,
2798,
29901,
9681,
310,
1426,
3161,
14831,
297,
13,
4706,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
2931,
29918,
2798,
29901,
938,
13,
1678,
584,
440,
279,
10804,
29918,
2798,
29901,
9681,
310,
22160,
363,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
10804,
29918,
2798,
29901,
938,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
18609,
29918,
2798,
353,
9049,
5085,
29889,
657,
703,
18609,
29918,
2798,
613,
6213,
29897,
13,
4706,
1583,
29889,
20736,
29918,
2798,
353,
9049,
5085,
29889,
657,
703,
20736,
29918,
2798,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
22663,
1125,
13,
4706,
565,
22663,
338,
6213,
29901,
13,
9651,
736,
6213,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
2931,
29918,
2798,
29922,
16202,
29889,
3090,
21706,
29918,
2798,
29892,
13,
9651,
10804,
29918,
2798,
29922,
16202,
29889,
3286,
7387,
29918,
2798,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
1626,
6268,
9513,
6765,
29898,
18609,
29918,
2798,
3790,
1118,
10804,
29918,
2798,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
18609,
29918,
2798,
29892,
1583,
29889,
20736,
29918,
2798,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
10854,
2392,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
6268,
2392,
338,
385,
1059,
1203,
607,
11524,
385,
1059,
373,
13,
1678,
278,
5375,
1842,
29889,
13,
13,
1678,
584,
440,
279,
1178,
29901,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
393,
7087,
278,
13,
4706,
1842,
1178,
393,
471,
4502,
297,
411,
278,
2009,
29889,
960,
451,
6790,
13,
4706,
297,
278,
2009,
29892,
385,
1178,
338,
9859,
363,
278,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
1178,
29901,
851,
13,
1678,
584,
440,
279,
1059,
29901,
450,
1842,
1059,
29889,
13,
1678,
584,
29894,
442,
668,
1059,
29901,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
21067,
22026,
2392,
13,
1678,
584,
440,
279,
6120,
338,
29918,
2704,
29901,
11185,
1423,
363,
1059,
2944,
746,
4256,
1218,
975,
1051,
310,
13,
4706,
2582,
29889,
29849,
5852,
363,
385,
2777,
310,
263,
10854,
2392,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
333,
353,
9049,
5085,
29889,
657,
703,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
2704,
353,
9049,
5085,
29889,
657,
703,
2704,
613,
6213,
29897,
13,
4706,
1583,
29889,
275,
29918,
2704,
353,
5852,
13,
13,
1678,
822,
4770,
657,
5552,
12035,
1311,
29892,
12421,
1125,
13,
4706,
1121,
29918,
842,
353,
731,
580,
13,
4706,
1121,
29918,
842,
29889,
5504,
29898,
13,
9651,
3599,
3811,
675,
5292,
1907,
3591,
2141,
8149,
580,
13,
9651,
718,
3599,
3811,
675,
29925,
2236,
5292,
1907,
3591,
2141,
8149,
580,
13,
9651,
718,
5953,
522,
21233,
3591,
2141,
8149,
580,
13,
9651,
718,
3599,
3811,
675,
6595,
287,
5292,
1907,
3591,
2141,
8149,
580,
13,
9651,
718,
11597,
29891,
911,
29903,
296,
2073,
3591,
2141,
8149,
580,
13,
9651,
718,
7338,
1461,
2558,
29925,
1092,
2129,
3591,
2141,
8149,
580,
13,
4706,
1723,
13,
4706,
1121,
29918,
5552,
29879,
353,
1121,
29918,
842,
29889,
29881,
17678,
29898,
6268,
2392,
2141,
8149,
3101,
13,
4706,
565,
12421,
297,
1121,
29918,
5552,
29879,
29901,
13,
9651,
12020,
23833,
2392,
29898,
13,
18884,
13577,
6268,
2392,
29915,
1203,
756,
694,
5352,
525,
8875,
4286,
450,
2669,
471,
9368,
304,
1889,
445,
1842,
3583,
29876,
29908,
13,
18884,
376,
6268,
5163,
29901,
426,
1012,
29876,
2392,
29901,
6571,
448,
426,
1012,
29876,
1642,
4830,
29898,
13,
462,
1678,
12421,
29892,
1583,
29889,
333,
29892,
1583,
29889,
2704,
29889,
401,
29892,
1583,
29889,
2704,
29889,
4906,
13,
18884,
1723,
13,
9651,
1723,
13,
4706,
12020,
23833,
2392,
29898,
13,
9651,
13577,
6268,
2392,
29915,
1203,
756,
694,
5352,
525,
8875,
29915,
1642,
4830,
29898,
5552,
29897,
13,
4706,
1723,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
1574,
29918,
3127,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1178,
29922,
1514,
29918,
3127,
29889,
333,
29892,
13,
9651,
1059,
29922,
1626,
21067,
22026,
2392,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
18884,
1574,
29918,
3127,
29889,
2704,
13,
9651,
10353,
13,
9651,
338,
29918,
2704,
29922,
5574,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
6268,
2392,
29898,
333,
3790,
1118,
1059,
3790,
1118,
338,
29918,
2704,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
333,
29892,
2062,
29898,
1311,
29889,
2704,
511,
1583,
29889,
275,
29918,
2704,
13,
4706,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
13,
13,
1990,
5953,
522,
21233,
4290,
29898,
21233,
4290,
1125,
13,
1678,
9995,
1576,
1881,
1842,
304,
367,
29537,
287,
363,
6459,
292,
4086,
29889,
13,
13,
1678,
584,
26766,
851,
1178,
29901,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
29889,
13,
1678,
584,
26766,
851,
1426,
29901,
450,
1881,
1426,
304,
1889,
29889,
13,
1678,
584,
26766,
851,
4234,
29918,
29882,
524,
29901,
319,
4234,
13182,
304,
1371,
2253,
6459,
13,
268,
278,
4086,
310,
278,
1426,
29889,
29848,
29879,
1023,
5497,
4234,
11561,
13,
268,
6790,
491,
17723,
29871,
29941,
29896,
29953,
29953,
29899,
29896,
15595,
29899,
29906,
29889,
13109,
29879,
304,
376,
3308,
1642,
6978,
13,
268,
297,
278,
1347,
376,
9290,
29908,
304,
451,
671,
263,
4234,
29918,
29882,
524,
29889,
13,
1678,
584,
440,
279,
1178,
29901,
830,
5958,
29889,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
29889,
13,
1678,
584,
29894,
442,
668,
1178,
29901,
851,
13,
1678,
584,
440,
279,
1426,
29901,
830,
5958,
29889,
450,
1881,
1426,
304,
1889,
29889,
13,
1678,
584,
29894,
442,
668,
1426,
29901,
851,
13,
1678,
584,
440,
279,
4234,
29918,
29882,
524,
29901,
319,
4234,
13182,
304,
1371,
2253,
6459,
13,
268,
278,
4086,
310,
278,
1426,
29889,
29848,
29879,
1023,
5497,
4234,
11561,
13,
268,
6790,
491,
17723,
29871,
29941,
29896,
29953,
29953,
29899,
29896,
15595,
29899,
29906,
29889,
13109,
29879,
304,
376,
3308,
1642,
6978,
13,
268,
297,
278,
1347,
376,
9290,
29908,
304,
451,
671,
263,
4234,
29918,
29882,
524,
29889,
13,
1678,
584,
29894,
442,
668,
4234,
29918,
29882,
524,
29901,
851,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
2428,
29898,
6362,
522,
21233,
4290,
29892,
1583,
467,
1649,
2344,
12035,
1068,
19290,
29897,
13,
4706,
1583,
29889,
333,
353,
9049,
5085,
29889,
657,
703,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
726,
353,
9049,
5085,
29889,
657,
703,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
13509,
29918,
29882,
524,
353,
9049,
5085,
29889,
657,
703,
13509,
29918,
29882,
524,
613,
6213,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
6362,
522,
21233,
4290,
29898,
333,
3790,
1118,
1426,
3790,
1118,
4234,
29918,
29882,
524,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
333,
29892,
1583,
29889,
726,
29892,
1583,
29889,
13509,
29918,
29882,
524,
13,
4706,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
13,
13,
1990,
28547,
6691,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
6595,
287,
6691,
3743,
263,
1544,
304,
278,
1532,
29899,
5203,
14831,
13,
1678,
7855,
297,
1426,
29889,
450,
1544,
5304,
515,
263,
848,
2752,
763,
14109,
13,
1678,
470,
350,
292,
29889,
739,
6124,
635,
7805,
599,
310,
278,
7087,
310,
445,
13,
1678,
7855,
1476,
297,
278,
1842,
29889,
13,
13,
1678,
584,
440,
279,
1024,
29901,
14945,
6645,
292,
11595,
1024,
29889,
13,
1678,
584,
29894,
442,
668,
1024,
29901,
851,
13,
1678,
584,
440,
279,
7087,
29901,
2391,
310,
8871,
445,
7855,
5692,
297,
278,
1426,
29889,
13,
1678,
584,
29894,
442,
668,
7087,
29901,
13,
4706,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
6595,
287,
6691,
9652,
29962,
13,
1678,
584,
440,
279,
4086,
29901,
17088,
1304,
297,
278,
848,
2752,
29889,
13,
1678,
584,
29894,
442,
668,
4086,
29901,
851,
13,
1678,
584,
440,
279,
848,
29918,
4993,
29918,
10041,
29918,
333,
29901,
853,
1387,
15882,
310,
278,
14831,
7855,
515,
278,
848,
13,
4706,
2752,
29889,
13,
1678,
584,
29894,
442,
668,
848,
29918,
4993,
29918,
10041,
29918,
333,
29901,
851,
13,
1678,
584,
440,
279,
3142,
29901,
3988,
304,
278,
7855,
29915,
29879,
1813,
515,
278,
848,
2752,
29889,
13,
1678,
584,
29894,
442,
668,
3142,
29901,
851,
13,
1678,
584,
440,
279,
848,
29918,
4993,
29901,
3630,
2752,
1304,
304,
6597,
7855,
25236,
29892,
13,
4706,
1316,
408,
3772,
29875,
29914,
29933,
292,
2992,
29889,
13,
1678,
584,
29894,
442,
668,
848,
29918,
4993,
29901,
851,
13,
1678,
584,
440,
279,
851,
289,
292,
29918,
10041,
29918,
4478,
29918,
2754,
29918,
333,
29901,
350,
292,
14945,
11856,
5412,
15882,
310,
278,
14831,
7855,
29889,
13,
4706,
4803,
297,
9589,
651,
411,
278,
350,
292,
14945,
11856,
12967,
304,
6699,
5684,
8018,
2472,
29889,
13,
13,
1678,
6317,
1873,
23959,
1057,
325,
29941,
29889,
29896,
13,
4706,
450,
334,
10549,
29918,
10041,
29918,
4478,
29918,
2754,
29918,
333,
29930,
2875,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
978,
353,
9049,
5085,
29889,
657,
703,
978,
613,
6213,
29897,
13,
4706,
1583,
29889,
20317,
353,
9049,
5085,
29889,
657,
703,
20317,
613,
6213,
29897,
13,
4706,
1583,
29889,
11675,
353,
9049,
5085,
29889,
657,
703,
11675,
613,
6213,
29897,
13,
4706,
1583,
29889,
1272,
29918,
4993,
29918,
10041,
29918,
333,
353,
9049,
5085,
29889,
657,
703,
1272,
29918,
4993,
29918,
10041,
29918,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
2271,
353,
9049,
5085,
29889,
657,
703,
2271,
613,
6213,
29897,
13,
4706,
1583,
29889,
1272,
29918,
4993,
353,
9049,
5085,
29889,
657,
703,
1272,
29918,
4993,
613,
6213,
29897,
13,
4706,
1583,
29889,
10549,
29918,
10041,
29918,
4478,
29918,
2754,
29918,
333,
353,
9049,
5085,
29889,
657,
703,
10549,
29918,
10041,
29918,
4478,
29918,
2754,
29918,
333,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
7855,
1125,
13,
4706,
289,
292,
29918,
10041,
29918,
4478,
29918,
2754,
29918,
333,
353,
313,
13,
9651,
7855,
29889,
10549,
29918,
333,
565,
756,
5552,
29898,
10041,
29892,
376,
10549,
29918,
333,
1159,
1683,
6213,
13,
4706,
1723,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1024,
29922,
10041,
29889,
978,
29892,
13,
9651,
7087,
11759,
13,
18884,
28547,
6691,
9652,
3032,
3166,
29918,
13525,
29898,
29872,
29897,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
18884,
363,
321,
297,
7855,
29889,
20317,
13,
9651,
21251,
13,
9651,
4086,
29922,
10041,
29889,
11675,
29892,
13,
9651,
848,
29918,
4993,
29918,
10041,
29918,
333,
29922,
10041,
29889,
333,
29892,
13,
9651,
3142,
29922,
10041,
29889,
2271,
29892,
13,
9651,
848,
29918,
4993,
29922,
10041,
29889,
1272,
29918,
4993,
29892,
13,
9651,
289,
292,
29918,
10041,
29918,
4478,
29918,
2754,
29918,
333,
29922,
10549,
29918,
10041,
29918,
4478,
29918,
2754,
29918,
333,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
6595,
287,
6691,
29898,
978,
3790,
1118,
7087,
3790,
1118,
4086,
3790,
1118,
848,
29918,
4993,
29918,
10041,
29918,
333,
3790,
1118,
3142,
3790,
1118,
376,
13,
9651,
376,
1272,
29918,
4993,
3790,
1118,
289,
292,
29918,
10041,
29918,
4478,
29918,
2754,
29918,
333,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
978,
29892,
13,
18884,
2062,
29898,
1311,
29889,
20317,
511,
13,
18884,
1583,
29889,
11675,
29892,
13,
18884,
1583,
29889,
1272,
29918,
4993,
29918,
10041,
29918,
333,
29892,
13,
18884,
1583,
29889,
2271,
29892,
13,
18884,
1583,
29889,
1272,
29918,
4993,
29892,
13,
18884,
1583,
29889,
10549,
29918,
10041,
29918,
4478,
29918,
2754,
29918,
333,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
28547,
6691,
9652,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
29909,
1993,
363,
278,
9024,
7855,
1476,
297,
1426,
29889,
9133,
2247,
13,
1678,
278,
16420,
8158,
310,
278,
18988,
322,
988,
278,
7855,
13,
1678,
471,
1476,
297,
278,
1426,
29889,
13,
13,
1678,
584,
440,
279,
16420,
29918,
13628,
29901,
960,
263,
1532,
29899,
5203,
2944,
338,
14831,
29892,
263,
13,
4706,
13677,
1353,
972,
11427,
278,
16420,
3233,
1546,
29871,
29900,
322,
29871,
29896,
674,
367,
13,
4706,
4133,
29889,
13,
1678,
584,
29894,
442,
668,
16420,
29918,
13628,
29901,
5785,
13,
1678,
584,
440,
279,
1426,
29901,
14945,
1426,
408,
5692,
297,
278,
2009,
29889,
13,
1678,
584,
440,
279,
938,
3309,
29901,
450,
9024,
7855,
1993,
1426,
3309,
29889,
29871,
910,
995,
7111,
373,
278,
995,
310,
278,
13,
4706,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
491,
2322,
29889,
13,
1678,
584,
440,
279,
938,
9210,
29901,
450,
9024,
7855,
1993,
1426,
9210,
515,
278,
1369,
310,
278,
1842,
29889,
13,
4706,
450,
995,
7111,
373,
278,
995,
310,
278,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
13,
4706,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
491,
2322,
29889,
13,
1678,
584,
29894,
442,
668,
1426,
29901,
851,
13,
13,
1678,
6317,
1873,
23959,
1057,
325,
29941,
29889,
29896,
13,
4706,
450,
334,
10289,
29930,
322,
334,
2848,
29930,
4426,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
5527,
5084,
29918,
13628,
353,
9049,
5085,
29889,
657,
703,
5527,
5084,
29918,
13628,
613,
6213,
29897,
13,
4706,
1583,
29889,
726,
353,
9049,
5085,
29889,
657,
703,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
2848,
353,
9049,
5085,
29889,
657,
703,
2848,
613,
6213,
29897,
13,
4706,
1583,
29889,
10289,
353,
9049,
5085,
29889,
657,
703,
10289,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
1993,
1125,
13,
4706,
9210,
353,
1993,
29889,
10289,
13,
4706,
3309,
353,
1993,
29889,
2848,
13,
4706,
565,
338,
8758,
29898,
4352,
29892,
903,
29894,
29941,
29918,
29900,
29918,
9794,
29889,
9652,
1125,
13,
9651,
396,
591,
437,
451,
736,
9210,
363,
325,
29941,
29889,
29900,
1951,
13,
9651,
396,
278,
1959,
8025,
471,
451,
9129,
363,
325,
29941,
29889,
29900,
13,
9651,
9210,
353,
6213,
13,
9651,
3309,
353,
6213,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
16420,
29918,
13628,
29922,
4352,
29889,
5527,
5084,
29918,
13628,
29892,
13,
9651,
1426,
29922,
4352,
29889,
726,
29892,
13,
9651,
3309,
29922,
2848,
29892,
13,
9651,
9210,
29922,
10289,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
6595,
287,
6691,
9652,
29898,
5527,
5084,
29918,
13628,
3790,
1118,
1426,
3790,
1118,
3309,
3790,
1118,
9210,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
5527,
5084,
29918,
13628,
29892,
1583,
29889,
726,
29892,
1583,
29889,
2848,
29892,
1583,
29889,
10289,
13,
4706,
1723,
29961,
13,
9651,
584,
29896,
29900,
29906,
29946,
13,
4706,
4514,
13,
13,
13,
1990,
3992,
6268,
4290,
29898,
21533,
29924,
861,
262,
29892,
14974,
21233,
4290,
1125,
13,
1678,
9995,
1576,
1881,
1842,
304,
367,
29537,
287,
491,
278,
2669,
29889,
13,
13,
1678,
584,
26766,
851,
1178,
29901,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
29889,
13,
1678,
584,
26766,
851,
1426,
29901,
450,
1881,
1426,
304,
1889,
29889,
13,
1678,
584,
26766,
851,
4086,
29901,
910,
338,
278,
29871,
29906,
5497,
17723,
29871,
29953,
29941,
29929,
29899,
29896,
8954,
13,
268,
310,
263,
4086,
29889,
1152,
1342,
29892,
671,
376,
264,
29908,
363,
4223,
29936,
376,
267,
29908,
363,
10432,
2992,
29889,
960,
13,
268,
451,
731,
29892,
3913,
376,
264,
29908,
363,
4223,
408,
2322,
29889,
13,
1678,
584,
440,
279,
1178,
29901,
830,
5958,
29889,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
29889,
13,
1678,
584,
29894,
442,
668,
1178,
29901,
851,
13,
1678,
584,
440,
279,
1426,
29901,
830,
5958,
29889,
450,
1881,
1426,
304,
1889,
29889,
13,
1678,
584,
29894,
442,
668,
1426,
29901,
851,
13,
1678,
584,
440,
279,
4086,
29901,
910,
338,
278,
29871,
29906,
5497,
17723,
29871,
29953,
29941,
29929,
29899,
29896,
8954,
13,
268,
310,
263,
4086,
29889,
1152,
1342,
29892,
671,
376,
264,
29908,
363,
4223,
29936,
376,
267,
29908,
363,
10432,
2992,
29889,
960,
13,
268,
451,
731,
29892,
3913,
376,
264,
29908,
363,
4223,
408,
2322,
29889,
13,
1678,
584,
29894,
442,
668,
4086,
29901,
851,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
2428,
29898,
1626,
6268,
4290,
29892,
1583,
467,
1649,
2344,
12035,
1068,
19290,
29897,
13,
4706,
1583,
29889,
333,
353,
9049,
5085,
29889,
657,
703,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
726,
353,
9049,
5085,
29889,
657,
703,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
11675,
353,
9049,
5085,
29889,
657,
703,
11675,
613,
6213,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
1626,
6268,
4290,
29898,
333,
3790,
1118,
1426,
3790,
1118,
4086,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
333,
29892,
1583,
29889,
726,
29892,
1583,
29889,
11675,
13,
4706,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
13,
13,
1990,
3992,
6268,
23145,
9513,
6765,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
1626,
6268,
23145,
9513,
6765,
3743,
2472,
1048,
278,
13,
1678,
2009,
20092,
29889,
3940,
29901,
910,
1203,
338,
451,
4133,
13,
1678,
297,
278,
2933,
322,
4225,
304,
367,
27387,
491,
263,
2933,
12422,
29889,
13,
13,
1678,
584,
440,
279,
1842,
29918,
2798,
29901,
9681,
310,
10701,
18397,
297,
278,
2009,
29889,
13,
1678,
584,
29894,
442,
668,
1842,
29918,
2798,
29901,
938,
13,
1678,
584,
440,
279,
2854,
29918,
3225,
29918,
2798,
29901,
9681,
310,
2854,
10701,
29889,
910,
13,
4706,
429,
27722,
4069,
29892,
975,
29899,
2311,
4046,
470,
1661,
29899,
23765,
10276,
10701,
29889,
13,
1678,
584,
29894,
442,
668,
2854,
29918,
3225,
29918,
2798,
29901,
938,
13,
1678,
584,
440,
279,
4589,
650,
681,
29918,
3225,
29918,
2798,
29901,
9681,
310,
8340,
10701,
29889,
13,
4706,
910,
7805,
4069,
29892,
975,
29899,
2311,
4046,
470,
1661,
29899,
23765,
10276,
10701,
29889,
13,
1678,
584,
29894,
442,
668,
4589,
650,
681,
29918,
3225,
29918,
2798,
29901,
938,
13,
1678,
584,
440,
279,
10804,
29918,
2798,
29901,
9681,
310,
22160,
363,
278,
2009,
29889,
13,
1678,
584,
29894,
442,
668,
10804,
29918,
2798,
29901,
1472,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
3225,
29918,
2798,
353,
9049,
5085,
29889,
657,
703,
3225,
29918,
2798,
613,
6213,
29897,
13,
4706,
1583,
29889,
3084,
29918,
3225,
29918,
2798,
353,
9049,
5085,
29889,
657,
703,
3084,
29918,
3225,
29918,
2798,
613,
6213,
29897,
13,
4706,
1583,
29889,
3127,
650,
681,
29918,
3225,
29918,
2798,
353,
9049,
5085,
29889,
657,
703,
3127,
650,
681,
29918,
3225,
29918,
2798,
613,
6213,
29897,
13,
4706,
1583,
29889,
20736,
29918,
2798,
353,
9049,
5085,
29889,
657,
703,
20736,
29918,
2798,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
13964,
1125,
13,
4706,
565,
13964,
338,
6213,
29901,
13,
9651,
736,
6213,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1842,
29918,
2798,
29922,
6112,
6765,
3366,
3225,
29879,
3981,
12436,
13,
9651,
2854,
29918,
3225,
29918,
2798,
29922,
6112,
6765,
3366,
3084,
20128,
3981,
12436,
13,
9651,
4589,
650,
681,
29918,
3225,
29918,
2798,
29922,
6112,
6765,
3366,
3127,
650,
681,
20128,
3981,
12436,
13,
9651,
10804,
29918,
2798,
29922,
6112,
6765,
3366,
3286,
7387,
3981,
12436,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
1626,
6268,
23145,
9513,
6765,
29898,
3225,
29918,
2798,
3790,
1118,
2854,
29918,
3225,
29918,
2798,
3790,
1118,
4589,
650,
681,
29918,
3225,
29918,
2798,
3790,
1118,
376,
13,
9651,
376,
20736,
29918,
2798,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
3225,
29918,
2798,
29892,
13,
18884,
1583,
29889,
3084,
29918,
3225,
29918,
2798,
29892,
13,
18884,
1583,
29889,
3127,
650,
681,
29918,
3225,
29918,
2798,
29892,
13,
18884,
1583,
29889,
20736,
29918,
2798,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
28048,
663,
29903,
296,
2073,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
29903,
296,
663,
29903,
296,
2073,
3743,
278,
25383,
19688,
322,
13,
1678,
16420,
19435,
363,
1269,
5375,
10541,
297,
278,
1842,
29889,
13,
13,
1678,
584,
440,
279,
1426,
29901,
450,
10541,
1426,
29889,
13,
1678,
584,
29894,
442,
668,
1426,
29901,
851,
13,
1678,
584,
440,
279,
19688,
29901,
450,
25383,
28048,
2073,
363,
278,
10541,
29889,
13,
4706,
20049,
1819,
3160,
29901,
525,
1066,
3321,
742,
525,
17821,
1705,
742,
525,
22198,
29915,
13,
1678,
584,
29894,
442,
668,
19688,
29901,
851,
13,
1678,
584,
440,
279,
16420,
29918,
1557,
2361,
29901,
450,
19688,
16420,
8158,
1546,
29871,
29900,
13,
4706,
322,
29871,
29896,
363,
278,
10541,
363,
599,
11073,
29889,
13,
1678,
584,
29894,
442,
668,
16420,
29918,
1557,
2361,
29901,
13,
4706,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29903,
296,
2073,
16376,
5084,
4421,
2361,
13,
1678,
584,
440,
279,
938,
3309,
29901,
450,
10541,
1426,
3309,
29889,
29871,
910,
995,
7111,
373,
278,
995,
310,
278,
13,
4706,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
13,
4706,
491,
2322,
29889,
13,
1678,
584,
440,
279,
938,
9210,
29901,
450,
10541,
1426,
9210,
515,
278,
1369,
310,
278,
1842,
29889,
13,
4706,
450,
995,
7111,
373,
278,
995,
310,
278,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
13,
4706,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
491,
2322,
29889,
13,
1678,
584,
440,
279,
286,
1312,
29918,
459,
262,
1080,
29901,
450,
1051,
310,
26971,
286,
1312,
515,
445,
10541,
29889,
13,
4706,
1152,
1342,
297,
278,
10541,
376,
1576,
9687,
338,
1781,
29892,
541,
278,
2669,
338,
4319,
613,
591,
723,
13,
4706,
7903,
278,
1023,
26971,
376,
1181,
397,
338,
1781,
29908,
322,
376,
5509,
338,
4319,
1642,
9333,
4133,
13,
4706,
565,
421,
4294,
29918,
459,
262,
291,
29918,
1195,
292,
29952,
338,
731,
304,
5852,
297,
278,
1246,
304,
421,
24209,
911,
29918,
18616,
2073,
29952,
322,
13,
4706,
7882,
1873,
338,
325,
29941,
29889,
29896,
322,
701,
29889,
13,
1678,
584,
29894,
442,
668,
286,
1312,
29918,
459,
262,
1080,
29901,
13,
4706,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29924,
1312,
11746,
262,
291,
29962,
13,
13,
1678,
6317,
1873,
23959,
1057,
325,
29941,
29889,
29896,
13,
4706,
450,
334,
10289,
15966,
334,
2848,
15966,
322,
334,
1195,
287,
29918,
459,
262,
1080,
29930,
4426,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
726,
353,
9049,
5085,
29889,
657,
703,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
18616,
2073,
353,
9049,
5085,
29889,
657,
703,
18616,
2073,
613,
6213,
29897,
13,
4706,
1583,
29889,
5527,
5084,
29918,
1557,
2361,
353,
9049,
5085,
29889,
657,
703,
5527,
5084,
29918,
1557,
2361,
613,
6213,
29897,
13,
4706,
1583,
29889,
2848,
353,
9049,
5085,
29889,
657,
703,
2848,
613,
6213,
29897,
13,
4706,
1583,
29889,
10289,
353,
9049,
5085,
29889,
657,
703,
10289,
613,
6213,
29897,
13,
4706,
1583,
29889,
1195,
287,
29918,
459,
262,
1080,
353,
9049,
5085,
29889,
657,
703,
1195,
287,
29918,
459,
262,
1080,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
10541,
29892,
2582,
29892,
19688,
1125,
13,
4706,
9210,
353,
10541,
29889,
10289,
13,
4706,
3309,
353,
10541,
29889,
2848,
13,
4706,
565,
338,
8758,
29898,
18616,
663,
29892,
903,
29894,
29941,
29918,
29900,
29918,
9794,
29889,
29903,
296,
663,
29903,
296,
2073,
1125,
13,
9651,
396,
591,
437,
451,
736,
9210,
363,
325,
29941,
29889,
29900,
1951,
13,
9651,
396,
278,
1959,
8025,
471,
451,
9129,
363,
325,
29941,
29889,
29900,
13,
9651,
9210,
353,
6213,
13,
9651,
3309,
353,
6213,
13,
4706,
565,
756,
5552,
29898,
18616,
663,
29892,
376,
5182,
29879,
29908,
1125,
13,
9651,
286,
1312,
29918,
459,
262,
1080,
353,
313,
13,
18884,
518,
13,
462,
1678,
341,
1312,
11746,
262,
291,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
462,
4706,
3646,
29892,
2582,
29892,
19688,
13,
462,
1678,
1723,
13,
462,
1678,
363,
3646,
297,
10541,
29889,
5182,
29879,
13,
18884,
4514,
13,
18884,
565,
10541,
29889,
5182,
29879,
13,
18884,
1683,
5159,
13,
9651,
1723,
13,
4706,
1683,
29901,
13,
9651,
286,
1312,
29918,
459,
262,
1080,
353,
6213,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1426,
29922,
18616,
663,
29889,
726,
29892,
13,
9651,
19688,
29922,
18616,
663,
29889,
18616,
2073,
29892,
13,
9651,
16420,
29918,
1557,
2361,
29922,
29903,
296,
2073,
16376,
5084,
4421,
2361,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
18884,
10541,
29889,
5527,
5084,
29918,
1557,
2361,
13,
9651,
10353,
13,
9651,
3309,
29922,
2848,
29892,
13,
9651,
9210,
29922,
10289,
29892,
13,
9651,
286,
1312,
29918,
459,
262,
1080,
29922,
1195,
287,
29918,
459,
262,
1080,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
29903,
296,
663,
29903,
296,
2073,
29898,
726,
3790,
1118,
19688,
3790,
1118,
16420,
29918,
1557,
2361,
3790,
1118,
376,
13,
9651,
376,
2848,
3790,
1118,
9210,
3790,
1118,
286,
1312,
29918,
459,
262,
1080,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
726,
29892,
13,
18884,
1583,
29889,
18616,
2073,
29892,
13,
18884,
2062,
29898,
1311,
29889,
5527,
5084,
29918,
1557,
2361,
511,
13,
18884,
1583,
29889,
2848,
29892,
13,
18884,
1583,
29889,
10289,
29892,
13,
18884,
2062,
29898,
1311,
29889,
1195,
287,
29918,
459,
262,
1080,
511,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
341,
1312,
11746,
262,
291,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
29909,
286,
1312,
9426,
1203,
11524,
385,
9426,
591,
29915,
345,
23892,
515,
263,
10541,
29889,
13,
1678,
739,
11624,
310,
1716,
263,
3646,
393,
1438,
26971,
526,
1048,
29892,
322,
278,
24809,
1860,
13,
1678,
15783,
278,
9426,
29889,
13,
13,
1678,
584,
440,
279,
3646,
29901,
450,
3646,
310,
385,
9426,
1048,
263,
3234,
29914,
5509,
29889,
13,
1678,
584,
29894,
442,
668,
3646,
29901,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
8667,
29903,
296,
2073,
13,
1678,
584,
440,
279,
24809,
1860,
29901,
450,
24809,
1860,
15783,
278,
9426,
310,
278,
3646,
29889,
13,
1678,
584,
29894,
442,
668,
24809,
1860,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
7900,
404,
358,
29903,
296,
2073,
29962,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
5182,
353,
9049,
5085,
29889,
657,
703,
5182,
613,
6213,
29897,
13,
4706,
1583,
29889,
465,
404,
1860,
353,
9049,
5085,
29889,
657,
703,
465,
404,
1860,
613,
6213,
29897,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
903,
657,
29918,
465,
404,
1860,
29898,
13,
4706,
5302,
29892,
2582,
29892,
19688,
13,
268,
1125,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
348,
3880,
29899,
23516,
13,
4706,
565,
451,
5302,
29901,
13,
9651,
736,
5159,
13,
4706,
24809,
358,
29918,
2674,
800,
353,
518,
13,
9651,
364,
29889,
999,
363,
364,
297,
5302,
565,
364,
29889,
23445,
29918,
1853,
1275,
376,
465,
404,
358,
29908,
13,
4706,
4514,
13,
4706,
24809,
1860,
353,
5159,
13,
4706,
363,
24809,
358,
29918,
23445,
297,
24809,
358,
29918,
2674,
800,
29901,
13,
9651,
954,
29879,
353,
903,
657,
29918,
513,
1575,
29898,
465,
404,
358,
29918,
23445,
29897,
13,
9651,
10541,
29918,
2248,
353,
954,
29879,
29961,
29896,
29962,
13,
9651,
24809,
358,
29918,
2248,
353,
954,
29879,
29961,
29906,
29962,
13,
9651,
24809,
1860,
29889,
4397,
29898,
13,
18884,
19688,
29889,
18616,
2063,
29961,
18616,
663,
29918,
2248,
1822,
465,
404,
1860,
29961,
465,
404,
358,
29918,
2248,
29962,
13,
9651,
1723,
13,
4706,
736,
24809,
1860,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
3646,
29892,
2582,
29892,
19688,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
3646,
29922,
8667,
29903,
296,
2073,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
18884,
3646,
13,
9651,
10353,
13,
9651,
24809,
1860,
11759,
13,
18884,
4007,
404,
358,
29903,
296,
2073,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
462,
1678,
24809,
358,
13,
18884,
1723,
13,
18884,
363,
24809,
358,
297,
1067,
29879,
3032,
657,
29918,
465,
404,
1860,
29898,
13,
462,
1678,
3646,
29889,
2674,
800,
29892,
2582,
29892,
19688,
13,
18884,
1723,
13,
9651,
21251,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
29924,
1312,
11746,
262,
291,
29898,
5182,
3790,
1118,
24809,
1860,
3790,
1800,
1642,
4830,
29898,
13,
9651,
2062,
29898,
1311,
29889,
5182,
511,
2062,
29898,
1311,
29889,
465,
404,
1860,
29897,
13,
4706,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
13,
13,
1990,
17157,
29903,
296,
2073,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
8667,
29903,
296,
2073,
3743,
278,
25383,
19688,
29892,
13,
1678,
16420,
19435,
322,
916,
2472,
1048,
263,
1820,
4163,
310,
263,
3234,
29914,
5509,
29889,
13,
1678,
1152,
1342,
297,
376,
1576,
9687,
472,
16923,
13679,
338,
1781,
613,
376,
1181,
397,
29908,
338,
385,
1820,
4163,
310,
13,
1678,
376,
28917,
295,
13679,
1642,
13,
13,
1678,
584,
440,
279,
851,
1426,
29901,
450,
1426,
995,
310,
278,
3646,
29889,
13,
1678,
584,
440,
279,
851,
19688,
29901,
450,
25383,
28048,
2073,
363,
278,
3646,
29889,
20049,
1819,
13,
4706,
3160,
525,
1066,
3321,
742,
525,
29885,
11925,
742,
322,
525,
22198,
4286,
13,
1678,
584,
440,
279,
16420,
29918,
1557,
2361,
29901,
450,
19688,
16420,
8158,
1546,
29871,
29900,
13,
4706,
322,
29871,
29896,
363,
278,
3646,
363,
525,
1066,
3321,
29915,
322,
525,
22198,
29915,
11073,
29889,
739,
29915,
29879,
8158,
13,
4706,
363,
525,
17821,
1705,
29915,
674,
2337,
367,
29871,
29900,
13,
1678,
584,
29894,
442,
668,
16420,
29918,
1557,
2361,
29901,
13,
4706,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29903,
296,
2073,
16376,
5084,
4421,
2361,
13,
1678,
584,
440,
279,
938,
3309,
29901,
450,
3646,
1426,
3309,
29889,
29871,
910,
995,
7111,
373,
278,
995,
310,
278,
13,
4706,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
13,
4706,
491,
2322,
29889,
13,
1678,
584,
440,
279,
938,
9210,
29901,
450,
3646,
1426,
9210,
515,
278,
1369,
310,
278,
1842,
29889,
13,
4706,
450,
995,
7111,
373,
278,
995,
310,
278,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
13,
4706,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
491,
2322,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
726,
353,
9049,
5085,
29889,
657,
703,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
18616,
2073,
353,
9049,
5085,
29889,
657,
703,
18616,
2073,
613,
6213,
29897,
13,
4706,
1583,
29889,
5527,
5084,
29918,
1557,
2361,
353,
9049,
5085,
29889,
657,
703,
5527,
5084,
29918,
1557,
2361,
613,
6213,
29897,
13,
4706,
1583,
29889,
2848,
353,
9049,
5085,
29889,
657,
703,
2848,
613,
6213,
29897,
13,
4706,
1583,
29889,
10289,
353,
9049,
5085,
29889,
657,
703,
10289,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
3646,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1426,
29922,
5182,
29889,
726,
29892,
13,
9651,
19688,
29922,
5182,
29889,
18616,
2073,
29892,
13,
9651,
16420,
29918,
1557,
2361,
29922,
29903,
296,
2073,
16376,
5084,
4421,
2361,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
18884,
3646,
29889,
5527,
5084,
29918,
1557,
2361,
13,
9651,
10353,
13,
9651,
3309,
29922,
5182,
29889,
2848,
29892,
13,
9651,
9210,
29922,
5182,
29889,
10289,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
8667,
29903,
296,
2073,
29898,
726,
3790,
1118,
19688,
3790,
1118,
16420,
29918,
1557,
2361,
3790,
1118,
376,
13,
9651,
376,
2848,
3790,
1118,
9210,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
726,
29892,
13,
18884,
1583,
29889,
18616,
2073,
29892,
13,
18884,
2062,
29898,
1311,
29889,
5527,
5084,
29918,
1557,
2361,
511,
13,
18884,
1583,
29889,
2848,
29892,
13,
18884,
1583,
29889,
10289,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
4007,
404,
358,
29903,
296,
2073,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
7900,
404,
358,
29903,
296,
2073,
3743,
278,
25383,
19688,
29892,
13,
1678,
16420,
19435,
322,
916,
2472,
1048,
385,
24809,
358,
2183,
1048,
13,
1678,
263,
3153,
3646,
29889,
29871,
1152,
1342,
29892,
297,
278,
10541,
376,
1576,
9687,
338,
1781,
613,
278,
24809,
358,
13,
1678,
310,
278,
3646,
525,
1181,
397,
29915,
338,
525,
16773,
4286,
13,
13,
1678,
584,
440,
279,
851,
1426,
29901,
450,
24809,
358,
1426,
29889,
13,
1678,
584,
440,
279,
851,
19688,
29901,
450,
25383,
28048,
2073,
363,
278,
24809,
358,
29889,
20049,
1819,
13,
4706,
3160,
525,
1066,
3321,
742,
525,
29885,
11925,
742,
322,
525,
22198,
4286,
13,
1678,
584,
440,
279,
16420,
29918,
1557,
2361,
29901,
450,
19688,
16420,
8158,
1546,
29871,
29900,
13,
4706,
322,
29871,
29896,
363,
278,
24809,
358,
363,
525,
1066,
3321,
29915,
322,
525,
22198,
29915,
11073,
29889,
739,
29915,
29879,
8158,
13,
4706,
363,
525,
17821,
1705,
29915,
674,
2337,
367,
29871,
29900,
13,
1678,
584,
29894,
442,
668,
16420,
29918,
1557,
2361,
29901,
13,
4706,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29903,
296,
2073,
16376,
5084,
4421,
2361,
13,
1678,
584,
440,
279,
938,
3309,
29901,
450,
24809,
358,
1426,
3309,
29889,
29871,
910,
995,
7111,
373,
278,
995,
310,
278,
13,
4706,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
13,
4706,
491,
2322,
29889,
13,
1678,
584,
440,
279,
938,
9210,
29901,
450,
24809,
358,
1426,
9210,
515,
278,
1369,
310,
278,
1842,
29889,
13,
4706,
450,
995,
7111,
373,
278,
995,
310,
278,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
13,
4706,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
20325,
491,
2322,
29889,
13,
1678,
584,
440,
279,
6120,
338,
29918,
10052,
630,
29901,
26460,
278,
995,
310,
278,
24809,
358,
338,
3480,
630,
29889,
1152,
1342,
29892,
297,
13,
4706,
376,
1576,
9687,
338,
451,
1781,
613,
278,
24809,
358,
376,
16773,
29908,
338,
3480,
630,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
726,
353,
9049,
5085,
29889,
657,
703,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
18616,
2073,
353,
9049,
5085,
29889,
657,
703,
18616,
2073,
613,
6213,
29897,
13,
4706,
1583,
29889,
5527,
5084,
29918,
1557,
2361,
353,
9049,
5085,
29889,
657,
703,
5527,
5084,
29918,
1557,
2361,
613,
6213,
29897,
13,
4706,
1583,
29889,
2848,
353,
9049,
5085,
29889,
657,
703,
2848,
613,
6213,
29897,
13,
4706,
1583,
29889,
10289,
353,
9049,
5085,
29889,
657,
703,
10289,
613,
6213,
29897,
13,
4706,
1583,
29889,
275,
29918,
10052,
630,
353,
9049,
5085,
29889,
657,
703,
275,
29918,
10052,
630,
613,
6213,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
24809,
358,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1426,
29922,
465,
404,
358,
29889,
726,
29892,
13,
9651,
19688,
29922,
465,
404,
358,
29889,
18616,
2073,
29892,
13,
9651,
16420,
29918,
1557,
2361,
29922,
29903,
296,
2073,
16376,
5084,
4421,
2361,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
18884,
24809,
358,
29889,
5527,
5084,
29918,
1557,
2361,
13,
9651,
10353,
13,
9651,
3309,
29922,
465,
404,
358,
29889,
2848,
29892,
13,
9651,
9210,
29922,
465,
404,
358,
29889,
10289,
29892,
13,
9651,
338,
29918,
10052,
630,
29922,
465,
404,
358,
29889,
275,
29918,
10052,
630,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
7900,
404,
358,
29903,
296,
2073,
29898,
726,
3790,
1118,
19688,
3790,
1118,
16420,
29918,
1557,
2361,
3790,
1118,
3309,
3790,
1118,
9210,
3790,
1118,
376,
13,
9651,
376,
275,
29918,
10052,
630,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
726,
29892,
13,
18884,
1583,
29889,
18616,
2073,
29892,
13,
18884,
2062,
29898,
1311,
29889,
5527,
5084,
29918,
1557,
2361,
511,
13,
18884,
1583,
29889,
2848,
29892,
13,
18884,
1583,
29889,
10289,
29892,
13,
18884,
1583,
29889,
275,
29918,
10052,
630,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
13,
1990,
28048,
2073,
16376,
5084,
4421,
2361,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
1576,
16420,
19435,
313,
6295,
615,
3317,
19435,
29897,
1546,
29871,
29900,
322,
29871,
29896,
29889,
13,
1678,
5057,
261,
1819,
12266,
6133,
16420,
29889,
13,
13,
1678,
584,
440,
279,
6374,
29901,
10321,
3321,
8158,
29889,
13,
1678,
584,
29894,
442,
668,
6374,
29901,
5785,
13,
1678,
584,
440,
279,
21104,
29901,
2448,
329,
1705,
8158,
29889,
13,
1678,
584,
29894,
442,
668,
21104,
29901,
5785,
13,
1678,
584,
440,
279,
8178,
29901,
12610,
1230,
8158,
29889,
13,
1678,
584,
29894,
442,
668,
8178,
29901,
5785,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
1066,
3321,
353,
9049,
5085,
29889,
657,
703,
1066,
3321,
613,
29871,
29900,
29889,
29900,
29897,
13,
4706,
1583,
29889,
17821,
1705,
353,
9049,
5085,
29889,
657,
703,
17821,
1705,
613,
29871,
29900,
29889,
29900,
29897,
13,
4706,
1583,
29889,
22198,
353,
9049,
5085,
29889,
657,
703,
22198,
613,
29871,
29900,
29889,
29900,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
8158,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
6374,
29922,
13628,
29889,
1066,
3321,
29892,
13,
9651,
21104,
29922,
13628,
29889,
17821,
1705,
565,
756,
5552,
29898,
13628,
29892,
376,
17821,
1705,
1159,
1683,
29871,
29900,
29889,
29900,
29892,
13,
9651,
8178,
29922,
13628,
29889,
22198,
29892,
13,
4706,
1723,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
29903,
296,
2073,
16376,
5084,
4421,
2361,
29898,
1066,
3321,
3790,
1118,
21104,
3790,
1118,
8178,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
1066,
3321,
29892,
1583,
29889,
17821,
1705,
29892,
1583,
29889,
22198,
13,
4706,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
13,
13,
1990,
903,
2744,
14997,
911,
26525,
1542,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
9995,
1576,
1134,
310,
3158,
393,
471,
7436,
304,
278,
10701,
15945,
29908,
13,
13,
1678,
5195,
3217,
29954,
12916,
10721,
29918,
3919,
1806,
29059,
353,
376,
29423,
675,
29918,
296,
1907,
29908,
29871,
396,
29901,
4284,
1907,
3599,
3811,
654,
3158,
29889,
13,
1678,
5195,
3217,
29954,
12916,
10721,
29918,
2227,
29902,
29918,
3919,
1806,
29059,
353,
313,
13,
4706,
376,
29423,
675,
29918,
1631,
29875,
29918,
296,
1907,
29908,
29871,
396,
29901,
349,
2687,
4284,
1907,
3599,
3811,
654,
3158,
29889,
13,
1678,
1723,
13,
1678,
8528,
29911,
4717,
1783,
29918,
10818,
29918,
19689,
4717,
1660,
29903,
353,
376,
21111,
29918,
1989,
29918,
24588,
2129,
29908,
29871,
396,
29901,
7670,
349,
1092,
559,
7338,
13857,
3158,
29889,
13,
1678,
5195,
3217,
29954,
12916,
10721,
29918,
23714,
29968,
3352,
29918,
3919,
1806,
29059,
353,
313,
13,
4706,
376,
29423,
675,
29918,
2324,
287,
29918,
296,
1907,
29908,
29871,
396,
29901,
28547,
4284,
1907,
3599,
3811,
654,
3158,
29889,
13,
1678,
1723,
13,
1678,
13764,
1964,
29979,
10721,
29918,
29903,
3919,
7833,
3919,
353,
376,
24209,
911,
29918,
18616,
2073,
29908,
29871,
396,
29901,
28048,
2073,
24352,
3158,
29889,
13,
1678,
8528,
29911,
4717,
1783,
29918,
25021,
1529,
13207,
353,
376,
21111,
29918,
7727,
29908,
13,
13,
13,
1990,
3599,
3811,
675,
5292,
1907,
4276,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
23122,
675,
5292,
1907,
4276,
2094,
2547,
352,
1078,
278,
4128,
363,
6257,
263,
1472,
29899,
21094,
4284,
1907,
3599,
3811,
654,
5858,
29889,
13,
13,
1678,
960,
366,
925,
864,
304,
18720,
16212,
297,
263,
1051,
310,
10701,
29892,
322,
451,
2189,
2999,
13,
1678,
1472,
2734,
8820,
373,
278,
1881,
310,
10701,
29892,
1246,
1158,
421,
29423,
675,
29918,
296,
1907,
29952,
2012,
13,
1678,
310,
1006,
29888,
9390,
411,
445,
1904,
29889,
13,
13,
1678,
584,
26766,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
26766,
851,
1347,
29918,
2248,
29918,
1853,
29901,
12048,
11057,
278,
1158,
1304,
304,
6613,
1347,
1283,
7224,
29889,
13,
4706,
421,
2525,
12858,
3399,
5228,
1673,
278,
5132,
8025,
29892,
338,
278,
2322,
29889,
1763,
5712,
278,
5132,
2322,
29892,
13,
4706,
366,
508,
884,
1209,
297,
421,
29965,
13264,
29896,
29953,
3399,
5228,
29952,
470,
3992,
2642,
29918,
29894,
29947,
1412,
1152,
5684,
2472,
13,
4706,
1074,
2045,
597,
8245,
29889,
1516,
29914,
726,
29899,
7054,
22026,
29899,
2696,
7224,
13,
1678,
584,
26766,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
960,
731,
304,
1565,
29892,
366,
3523,
29899,
449,
310,
2534,
596,
1426,
1881,
13,
4706,
13817,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
2648,
2322,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
21605,
445,
3443,
304,
1565,
29892,
13,
4706,
766,
1849,
1881,
12183,
322,
1122,
4046,
1749,
11509,
304,
1083,
15844,
403,
5626,
393,
6403,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
584,
440,
279,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
440,
279,
851,
1347,
29918,
2248,
29918,
1853,
29901,
12048,
11057,
278,
1158,
1304,
304,
6613,
1347,
1283,
7224,
29889,
13,
4706,
421,
2525,
12858,
3399,
5228,
1673,
278,
5132,
8025,
29892,
338,
278,
2322,
29889,
1763,
5712,
278,
5132,
2322,
29892,
13,
4706,
366,
508,
884,
1209,
297,
421,
29965,
13264,
29896,
29953,
3399,
5228,
29952,
470,
3992,
2642,
29918,
29894,
29947,
1412,
1152,
5684,
2472,
13,
4706,
1074,
2045,
597,
8245,
29889,
1516,
29914,
726,
29899,
7054,
22026,
29899,
2696,
7224,
13,
1678,
584,
440,
279,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
960,
731,
304,
1565,
29892,
366,
3523,
29899,
449,
310,
2534,
596,
1426,
1881,
13,
4706,
13817,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
2648,
2322,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
21605,
445,
3443,
304,
1565,
29892,
13,
4706,
766,
1849,
1881,
12183,
322,
1122,
4046,
1749,
11509,
304,
1083,
15844,
403,
5626,
393,
6403,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
4299,
29918,
3259,
353,
9049,
5085,
29889,
657,
703,
4299,
29918,
3259,
613,
376,
12333,
1159,
13,
4706,
1583,
29889,
1807,
29918,
2248,
29918,
1853,
353,
9049,
5085,
29889,
657,
703,
1807,
29918,
2248,
29918,
1853,
613,
376,
2525,
12858,
3399,
5228,
1159,
13,
4706,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
353,
9049,
5085,
29889,
657,
703,
20472,
29918,
5509,
29918,
20756,
613,
7700,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
736,
376,
23122,
675,
5292,
1907,
4276,
29898,
4299,
29918,
3259,
3790,
1118,
1347,
29918,
2248,
29918,
1853,
3790,
1118,
11262,
29918,
5509,
29918,
20756,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
4299,
29918,
3259,
29892,
1583,
29889,
1807,
29918,
2248,
29918,
1853,
29892,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
13,
4706,
1723,
29961,
13,
9651,
584,
29896,
29900,
29906,
29946,
13,
4706,
4514,
13,
13,
1678,
822,
903,
517,
29918,
13525,
29898,
1311,
29892,
7882,
29918,
3259,
1125,
13,
4706,
565,
7882,
29918,
3259,
1275,
22236,
29918,
8787,
29918,
16358,
29901,
13,
9651,
515,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29906,
29918,
25347,
29918,
29896,
1053,
4733,
13,
4706,
1683,
29901,
13,
9651,
515,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29896,
1053,
4733,
13,
4706,
736,
4733,
29889,
5292,
1907,
5398,
29898,
13,
9651,
4128,
29922,
9794,
29889,
5292,
1907,
5398,
11507,
29898,
13,
18884,
1904,
29918,
3259,
29922,
1311,
29889,
4299,
29918,
3259,
29892,
13,
18884,
1347,
29918,
2248,
29918,
1853,
29922,
1311,
29889,
1807,
29918,
2248,
29918,
1853,
29892,
13,
18884,
12183,
29918,
3670,
29918,
449,
29922,
1311,
29889,
20472,
29918,
5509,
29918,
20756,
29892,
13,
9651,
1723,
13,
4706,
1723,
13,
13,
13,
1990,
11597,
29891,
911,
29903,
296,
2073,
4276,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
2744,
14997,
911,
29903,
296,
2073,
4276,
2094,
2547,
352,
1078,
278,
4128,
363,
6257,
263,
1472,
29899,
21094,
13,
1678,
28048,
2073,
24352,
5858,
29889,
13,
13,
1678,
960,
366,
925,
864,
304,
27599,
19688,
297,
263,
1051,
310,
10701,
29892,
322,
451,
2189,
2999,
13,
1678,
1472,
2734,
8820,
373,
278,
1881,
310,
10701,
29892,
1246,
1158,
421,
24209,
911,
29918,
18616,
2073,
29952,
2012,
13,
1678,
310,
1006,
29888,
9390,
411,
445,
1904,
29889,
13,
13,
1678,
584,
26766,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
26766,
6120,
1510,
29918,
459,
262,
291,
29918,
1195,
292,
29901,
26460,
304,
7903,
278,
26971,
310,
263,
10541,
322,
7512,
901,
13,
4706,
3803,
1070,
7418,
2820,
278,
21420,
310,
263,
3234,
470,
2669,
313,
15189,
2998,
408,
13,
4706,
9565,
29899,
6707,
19688,
7418,
467,
960,
731,
304,
1565,
29892,
278,
4133,
13,
4706,
584,
1990,
18078,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29903,
296,
663,
29903,
296,
2073,
29952,
3618,
13,
4706,
674,
505,
2875,
421,
1195,
287,
29918,
459,
262,
1080,
29952,
6943,
278,
1121,
310,
445,
7418,
29889,
13,
1678,
584,
26766,
851,
1347,
29918,
2248,
29918,
1853,
29901,
12048,
11057,
278,
1158,
1304,
304,
6613,
1347,
1283,
7224,
29889,
13,
4706,
421,
2525,
12858,
3399,
5228,
1673,
278,
5132,
8025,
29892,
338,
278,
2322,
29889,
1763,
5712,
278,
5132,
2322,
29892,
13,
4706,
366,
508,
884,
1209,
297,
421,
29965,
13264,
29896,
29953,
3399,
5228,
29952,
470,
3992,
2642,
29918,
29894,
29947,
1412,
1152,
5684,
2472,
13,
4706,
1074,
2045,
597,
8245,
29889,
1516,
29914,
726,
29899,
7054,
22026,
29899,
2696,
7224,
13,
1678,
584,
26766,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
960,
731,
304,
1565,
29892,
366,
3523,
29899,
449,
310,
2534,
596,
1426,
1881,
13,
4706,
13817,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
2648,
2322,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
21605,
445,
3443,
304,
1565,
29892,
13,
4706,
766,
1849,
1881,
12183,
322,
1122,
4046,
1749,
11509,
304,
1083,
15844,
403,
5626,
393,
6403,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
584,
440,
279,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
440,
279,
6120,
1510,
29918,
459,
262,
291,
29918,
1195,
292,
29901,
26460,
304,
7903,
278,
26971,
310,
263,
10541,
322,
7512,
901,
13,
4706,
3803,
1070,
7418,
2820,
278,
21420,
310,
263,
3234,
470,
2669,
313,
15189,
2998,
408,
13,
4706,
9565,
29899,
6707,
19688,
7418,
467,
960,
731,
304,
1565,
29892,
278,
4133,
13,
4706,
584,
1990,
18078,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29903,
296,
663,
29903,
296,
2073,
29952,
3618,
13,
4706,
674,
505,
2875,
421,
1195,
287,
29918,
459,
262,
1080,
29952,
6943,
278,
1121,
310,
445,
7418,
29889,
13,
1678,
584,
440,
279,
851,
1347,
29918,
2248,
29918,
1853,
29901,
12048,
11057,
278,
1158,
1304,
304,
6613,
1347,
1283,
7224,
29889,
13,
4706,
421,
2525,
12858,
3399,
5228,
1673,
278,
5132,
8025,
29892,
338,
278,
2322,
29889,
1763,
5712,
278,
5132,
2322,
29892,
13,
4706,
366,
508,
884,
1209,
297,
421,
29965,
13264,
29896,
29953,
3399,
5228,
29952,
470,
3992,
2642,
29918,
29894,
29947,
1412,
1152,
5684,
2472,
13,
4706,
1074,
2045,
597,
8245,
29889,
1516,
29914,
726,
29899,
7054,
22026,
29899,
2696,
7224,
13,
1678,
584,
440,
279,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
960,
731,
304,
1565,
29892,
366,
3523,
29899,
449,
310,
2534,
596,
1426,
1881,
13,
4706,
13817,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
2648,
2322,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
21605,
445,
3443,
304,
1565,
29892,
13,
4706,
766,
1849,
1881,
12183,
322,
1122,
4046,
1749,
11509,
304,
1083,
15844,
403,
5626,
393,
6403,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
4299,
29918,
3259,
353,
9049,
5085,
29889,
657,
703,
4299,
29918,
3259,
613,
376,
12333,
1159,
13,
4706,
1583,
29889,
4294,
29918,
459,
262,
291,
29918,
1195,
292,
353,
9049,
5085,
29889,
657,
703,
4294,
29918,
459,
262,
291,
29918,
1195,
292,
613,
7700,
29897,
13,
4706,
1583,
29889,
1807,
29918,
2248,
29918,
1853,
353,
9049,
5085,
29889,
657,
703,
1807,
29918,
2248,
29918,
1853,
613,
6213,
29897,
13,
4706,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
353,
9049,
5085,
29889,
657,
703,
20472,
29918,
5509,
29918,
20756,
613,
7700,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
736,
313,
13,
9651,
376,
2744,
14997,
911,
29903,
296,
2073,
4276,
29898,
4299,
29918,
3259,
3790,
1118,
1510,
29918,
459,
262,
291,
29918,
1195,
292,
3790,
1118,
1347,
29918,
2248,
29918,
1853,
3790,
1118,
376,
13,
9651,
376,
20472,
29918,
5509,
29918,
20756,
3790,
29913,
1642,
4830,
29898,
13,
18884,
1583,
29889,
4299,
29918,
3259,
29892,
13,
18884,
1583,
29889,
4294,
29918,
459,
262,
291,
29918,
1195,
292,
29892,
13,
18884,
1583,
29889,
1807,
29918,
2248,
29918,
1853,
29892,
13,
18884,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
1678,
822,
903,
517,
29918,
13525,
29898,
1311,
29892,
7882,
29918,
3259,
1125,
13,
4706,
565,
7882,
29918,
3259,
1275,
22236,
29918,
8787,
29918,
16358,
29901,
13,
9651,
515,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29906,
29918,
25347,
29918,
29896,
1053,
4733,
13,
4706,
1683,
29901,
13,
9651,
515,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29896,
1053,
4733,
13,
4706,
736,
4733,
29889,
29903,
296,
2073,
21067,
4848,
5398,
29898,
13,
9651,
4128,
29922,
9794,
29889,
29903,
296,
2073,
21067,
4848,
5398,
11507,
29898,
13,
18884,
1904,
29918,
3259,
29922,
1311,
29889,
4299,
29918,
3259,
29892,
13,
18884,
9426,
29918,
1195,
292,
29922,
1311,
29889,
4294,
29918,
459,
262,
291,
29918,
1195,
292,
29892,
13,
18884,
1347,
29918,
2248,
29918,
1853,
29922,
1311,
29889,
1807,
29918,
2248,
29918,
1853,
29892,
13,
18884,
12183,
29918,
3670,
29918,
449,
29922,
1311,
29889,
20472,
29918,
5509,
29918,
20756,
29892,
13,
9651,
1723,
13,
4706,
1723,
13,
13,
13,
1990,
3599,
3811,
675,
29925,
2236,
5292,
1907,
4276,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
23122,
675,
29925,
2236,
5292,
1907,
4276,
2094,
2547,
352,
1078,
278,
4128,
363,
6257,
263,
1472,
29899,
21094,
349,
2687,
13,
1678,
4284,
1907,
3599,
3811,
654,
5858,
29889,
13,
13,
1678,
960,
366,
925,
864,
304,
18720,
282,
2236,
16212,
297,
263,
1051,
310,
10701,
29892,
322,
451,
2189,
2999,
13,
1678,
1472,
2734,
8820,
373,
278,
1881,
310,
10701,
29892,
1246,
1158,
421,
29423,
675,
29918,
1631,
29875,
29918,
296,
1907,
29952,
2012,
13,
1678,
310,
1006,
29888,
9390,
411,
445,
1904,
29889,
13,
13,
1678,
584,
26766,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
26766,
851,
5354,
29918,
4572,
29901,
530,
13136,
1347,
304,
731,
278,
349,
2687,
5354,
304,
3160,
871,
263,
13,
4706,
11306,
310,
278,
349,
2687,
7855,
13997,
29889,
20049,
1819,
3160,
525,
2876,
29915,
470,
6213,
29889,
13,
1678,
584,
26766,
13997,
29918,
4572,
29901,
8669,
310,
21166,
975,
599,
349,
2687,
7855,
13997,
29892,
366,
508,
1209,
297,
263,
1051,
310,
13,
4706,
278,
2702,
349,
2687,
7855,
13997,
366,
864,
304,
4175,
714,
29889,
1152,
1342,
29892,
565,
366,
871,
864,
304,
4175,
714,
13,
4706,
501,
29889,
29903,
29889,
5264,
6993,
3694,
297,
263,
1842,
29892,
366,
508,
1209,
297,
13,
4706,
10338,
29925,
2236,
6691,
10900,
29889,
3308,
29918,
6156,
8426,
1964,
29918,
1660,
22484,
11937,
29918,
23207,
7961,
363,
445,
9049,
1191,
29889,
13,
1678,
584,
3207,
1853,
13997,
29918,
4572,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29925,
2236,
6691,
10900,
29962,
13,
1678,
584,
26766,
851,
1347,
29918,
2248,
29918,
1853,
29901,
12048,
11057,
278,
1158,
1304,
304,
6613,
1347,
1283,
7224,
29889,
13,
4706,
421,
2525,
12858,
3399,
5228,
1673,
278,
5132,
8025,
29892,
338,
278,
2322,
29889,
1763,
5712,
278,
5132,
2322,
29892,
13,
4706,
366,
508,
884,
1209,
297,
421,
29965,
13264,
29896,
29953,
3399,
5228,
29952,
470,
3992,
2642,
29918,
29894,
29947,
1412,
1152,
5684,
2472,
13,
4706,
1074,
2045,
597,
8245,
29889,
1516,
29914,
726,
29899,
7054,
22026,
29899,
2696,
7224,
13,
1678,
584,
26766,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
13109,
29879,
304,
1565,
29892,
6593,
393,
3992,
11597,
22026,
674,
451,
1480,
596,
13,
4706,
1881,
1426,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
960,
731,
304,
7700,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
584,
440,
279,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
440,
279,
851,
5354,
29918,
4572,
29901,
530,
13136,
1347,
304,
731,
278,
349,
2687,
5354,
304,
3160,
871,
263,
13,
4706,
11306,
310,
278,
349,
2687,
7855,
13997,
29889,
20049,
1819,
3160,
525,
2876,
29915,
470,
6213,
29889,
13,
1678,
584,
440,
279,
13997,
29918,
4572,
29901,
8669,
310,
21166,
975,
599,
349,
2687,
7855,
13997,
29892,
366,
508,
1209,
297,
263,
1051,
310,
13,
4706,
278,
2702,
349,
2687,
7855,
13997,
366,
864,
304,
4175,
714,
29889,
1152,
1342,
29892,
565,
366,
871,
864,
304,
4175,
714,
13,
4706,
501,
29889,
29903,
29889,
5264,
6993,
3694,
297,
263,
1842,
29892,
366,
508,
1209,
297,
13,
4706,
10338,
29925,
2236,
6691,
10900,
29889,
3308,
29918,
6156,
8426,
1964,
29918,
1660,
22484,
11937,
29918,
23207,
7961,
363,
445,
9049,
1191,
29889,
13,
1678,
584,
29894,
442,
668,
13997,
29918,
4572,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
29925,
2236,
6691,
10900,
29962,
13,
1678,
584,
440,
279,
851,
1347,
29918,
2248,
29918,
1853,
29901,
12048,
11057,
278,
1158,
1304,
304,
6613,
1347,
1283,
7224,
29889,
13,
4706,
421,
2525,
12858,
3399,
5228,
1673,
278,
5132,
8025,
29892,
338,
278,
2322,
29889,
1763,
5712,
278,
5132,
2322,
29892,
13,
4706,
366,
508,
884,
1209,
297,
421,
29965,
13264,
29896,
29953,
3399,
5228,
29952,
470,
3992,
2642,
29918,
29894,
29947,
1412,
1152,
5684,
2472,
13,
4706,
1074,
2045,
597,
8245,
29889,
1516,
29914,
726,
29899,
7054,
22026,
29899,
2696,
7224,
13,
1678,
584,
440,
279,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
13109,
29879,
304,
1565,
29892,
6593,
393,
3992,
11597,
22026,
674,
451,
1480,
596,
13,
4706,
1881,
1426,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
960,
731,
304,
7700,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
4299,
29918,
3259,
353,
9049,
5085,
29889,
657,
703,
4299,
29918,
3259,
613,
376,
12333,
1159,
13,
4706,
1583,
29889,
7247,
29918,
4572,
353,
9049,
5085,
29889,
657,
703,
7247,
29918,
4572,
613,
6213,
29897,
13,
4706,
1583,
29889,
20683,
29918,
4572,
353,
9049,
5085,
29889,
657,
703,
20683,
29918,
4572,
613,
6213,
29897,
13,
4706,
1583,
29889,
1807,
29918,
2248,
29918,
1853,
353,
9049,
5085,
29889,
657,
703,
1807,
29918,
2248,
29918,
1853,
613,
376,
2525,
12858,
3399,
5228,
1159,
13,
4706,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
353,
9049,
5085,
29889,
657,
703,
20472,
29918,
5509,
29918,
20756,
613,
5852,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
736,
313,
13,
9651,
376,
23122,
675,
29925,
2236,
5292,
1907,
4276,
29898,
4299,
29918,
3259,
3790,
1118,
5354,
29918,
4572,
3790,
1118,
13997,
29918,
4572,
3790,
1118,
376,
13,
9651,
376,
1807,
29918,
2248,
29918,
1853,
3790,
1118,
11262,
29918,
5509,
29918,
20756,
3790,
29913,
1642,
4830,
29898,
13,
18884,
1583,
29889,
4299,
29918,
3259,
29892,
13,
18884,
1583,
29889,
7247,
29918,
4572,
29892,
13,
18884,
1583,
29889,
20683,
29918,
4572,
29892,
13,
18884,
1583,
29889,
1807,
29918,
2248,
29918,
1853,
29892,
13,
18884,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
1678,
822,
903,
517,
29918,
13525,
29898,
1311,
29892,
7882,
29918,
3259,
1125,
13,
4706,
565,
7882,
29918,
3259,
1275,
22236,
29918,
8787,
29918,
16358,
29901,
13,
9651,
515,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29906,
29918,
25347,
29918,
29896,
1053,
4733,
13,
4706,
1683,
29901,
13,
9651,
515,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29896,
1053,
4733,
13,
4706,
736,
4733,
29889,
29925,
2236,
5398,
29898,
13,
9651,
4128,
29922,
9794,
29889,
29925,
2236,
5398,
11507,
29898,
13,
18884,
1904,
29918,
3259,
29922,
1311,
29889,
4299,
29918,
3259,
29892,
13,
18884,
5354,
29922,
1311,
29889,
7247,
29918,
4572,
29892,
13,
18884,
282,
2236,
29918,
20683,
29922,
1311,
29889,
20683,
29918,
4572,
29892,
13,
18884,
1347,
29918,
2248,
29918,
1853,
29922,
1311,
29889,
1807,
29918,
2248,
29918,
1853,
29892,
13,
18884,
12183,
29918,
3670,
29918,
449,
29922,
1311,
29889,
20472,
29918,
5509,
29918,
20756,
29892,
13,
9651,
1723,
13,
4706,
1723,
13,
13,
13,
1990,
7338,
1461,
2558,
29925,
1092,
2129,
4276,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
5647,
1461,
2558,
29925,
1092,
2129,
4276,
2094,
2547,
352,
1078,
278,
4128,
363,
6257,
263,
1472,
29899,
21094,
1820,
16549,
13,
1678,
4805,
428,
5858,
13,
13,
1678,
960,
366,
925,
864,
304,
6597,
1820,
12216,
2129,
515,
263,
1051,
310,
10701,
29892,
322,
451,
2189,
2999,
13,
1678,
1472,
2734,
8820,
373,
278,
1881,
310,
10701,
29892,
1246,
1158,
421,
21111,
29918,
1989,
29918,
24588,
2129,
29952,
2012,
13,
1678,
310,
1006,
29888,
9390,
411,
445,
1904,
29889,
13,
13,
1678,
584,
26766,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
26766,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
960,
731,
304,
1565,
29892,
366,
3523,
29899,
449,
310,
2534,
596,
1426,
1881,
13,
4706,
13817,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
2648,
2322,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
21605,
445,
3443,
304,
1565,
29892,
13,
4706,
766,
1849,
1881,
12183,
322,
1122,
4046,
1749,
11509,
304,
1083,
15844,
403,
5626,
393,
6403,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
584,
440,
279,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
440,
279,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
960,
731,
304,
1565,
29892,
366,
3523,
29899,
449,
310,
2534,
596,
1426,
1881,
13,
4706,
13817,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
2648,
2322,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
21605,
445,
3443,
304,
1565,
29892,
13,
4706,
766,
1849,
1881,
12183,
322,
1122,
4046,
1749,
11509,
304,
1083,
15844,
403,
5626,
393,
6403,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
4299,
29918,
3259,
353,
9049,
5085,
29889,
657,
703,
4299,
29918,
3259,
613,
376,
12333,
1159,
13,
4706,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
353,
9049,
5085,
29889,
657,
703,
20472,
29918,
5509,
29918,
20756,
613,
7700,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
736,
313,
13,
9651,
376,
5647,
1461,
2558,
29925,
1092,
2129,
4276,
29898,
4299,
29918,
3259,
3790,
1118,
11262,
29918,
5509,
29918,
20756,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
4299,
29918,
3259,
29892,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
1678,
822,
903,
517,
29918,
13525,
29898,
1311,
29892,
7882,
29918,
3259,
1125,
13,
4706,
565,
7882,
29918,
3259,
1275,
22236,
29918,
8787,
29918,
16358,
29901,
13,
9651,
515,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29906,
29918,
25347,
29918,
29896,
1053,
4733,
13,
4706,
1683,
29901,
13,
9651,
515,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29896,
1053,
4733,
13,
4706,
736,
4733,
29889,
2558,
29925,
1092,
2129,
5398,
29898,
13,
9651,
4128,
29922,
9794,
29889,
2558,
29925,
1092,
2129,
5398,
11507,
29898,
13,
18884,
1904,
29918,
3259,
29922,
1311,
29889,
4299,
29918,
3259,
29892,
13,
18884,
12183,
29918,
3670,
29918,
449,
29922,
1311,
29889,
20472,
29918,
5509,
29918,
20756,
29892,
13,
9651,
1723,
13,
4706,
1723,
13,
13,
13,
1990,
3599,
3811,
675,
6595,
287,
5292,
1907,
4276,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
23122,
675,
6595,
287,
5292,
1907,
4276,
2094,
2547,
352,
1078,
278,
4128,
363,
6257,
263,
1472,
29899,
21094,
28547,
4284,
1907,
13,
1678,
3599,
3811,
654,
5858,
29889,
13,
13,
1678,
960,
366,
925,
864,
304,
18720,
9024,
16212,
297,
263,
1051,
310,
10701,
29892,
322,
451,
2189,
2999,
13,
1678,
1472,
2734,
8820,
373,
278,
1881,
310,
10701,
29892,
1246,
1158,
421,
29423,
675,
29918,
2324,
287,
29918,
296,
1907,
29952,
2012,
13,
1678,
310,
1006,
29888,
9390,
411,
445,
1904,
29889,
13,
13,
1678,
584,
26766,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
26766,
851,
1347,
29918,
2248,
29918,
1853,
29901,
12048,
11057,
278,
1158,
1304,
304,
6613,
1347,
1283,
7224,
29889,
13,
4706,
421,
2525,
12858,
3399,
5228,
1673,
278,
5132,
8025,
29892,
338,
278,
2322,
29889,
1763,
5712,
278,
5132,
2322,
29892,
13,
4706,
366,
508,
884,
1209,
297,
421,
29965,
13264,
29896,
29953,
3399,
5228,
29952,
470,
3992,
2642,
29918,
29894,
29947,
1412,
1152,
5684,
2472,
13,
4706,
1074,
2045,
597,
8245,
29889,
1516,
29914,
726,
29899,
7054,
22026,
29899,
2696,
7224,
13,
1678,
584,
26766,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
960,
731,
304,
1565,
29892,
366,
3523,
29899,
449,
310,
2534,
596,
1426,
1881,
13,
4706,
13817,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
2648,
2322,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
21605,
445,
3443,
304,
1565,
29892,
13,
4706,
766,
1849,
1881,
12183,
322,
1122,
4046,
1749,
11509,
304,
1083,
15844,
403,
5626,
393,
6403,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
584,
440,
279,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
440,
279,
851,
1347,
29918,
2248,
29918,
1853,
29901,
12048,
11057,
278,
1158,
1304,
304,
6613,
1347,
1283,
7224,
29889,
13,
4706,
421,
2525,
12858,
3399,
5228,
1673,
278,
5132,
8025,
29892,
338,
278,
2322,
29889,
1763,
5712,
278,
5132,
2322,
29892,
13,
4706,
366,
508,
884,
1209,
297,
421,
29965,
13264,
29896,
29953,
3399,
5228,
29952,
470,
3992,
2642,
29918,
29894,
29947,
1412,
1152,
5684,
2472,
13,
4706,
1074,
2045,
597,
8245,
29889,
1516,
29914,
726,
29899,
7054,
22026,
29899,
2696,
7224,
13,
1678,
584,
440,
279,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
960,
731,
304,
1565,
29892,
366,
3523,
29899,
449,
310,
2534,
596,
1426,
1881,
13,
4706,
13817,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
2648,
2322,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
21605,
445,
3443,
304,
1565,
29892,
13,
4706,
766,
1849,
1881,
12183,
322,
1122,
4046,
1749,
11509,
304,
1083,
15844,
403,
5626,
393,
6403,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
4299,
29918,
3259,
353,
9049,
5085,
29889,
657,
703,
4299,
29918,
3259,
613,
376,
12333,
1159,
13,
4706,
1583,
29889,
1807,
29918,
2248,
29918,
1853,
353,
9049,
5085,
29889,
657,
703,
1807,
29918,
2248,
29918,
1853,
613,
376,
2525,
12858,
3399,
5228,
1159,
13,
4706,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
353,
9049,
5085,
29889,
657,
703,
20472,
29918,
5509,
29918,
20756,
613,
7700,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
736,
313,
13,
9651,
376,
23122,
675,
6595,
287,
5292,
1907,
4276,
29898,
4299,
29918,
3259,
3790,
1118,
1347,
29918,
2248,
29918,
1853,
3790,
9594,
376,
13,
9651,
376,
20472,
29918,
5509,
29918,
20756,
3790,
29913,
1642,
4830,
29898,
13,
18884,
1583,
29889,
4299,
29918,
3259,
29892,
1583,
29889,
1807,
29918,
2248,
29918,
1853,
29892,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
1678,
822,
903,
517,
29918,
13525,
29898,
1311,
29892,
7882,
29918,
3259,
1125,
13,
4706,
565,
7882,
29918,
3259,
1275,
22236,
29918,
8787,
29918,
16358,
29901,
13,
9651,
515,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29906,
29918,
25347,
29918,
29896,
1053,
4733,
13,
4706,
1683,
29901,
13,
9651,
515,
869,
29918,
13525,
29889,
29894,
29941,
29918,
29896,
1053,
4733,
13,
4706,
736,
4733,
29889,
6691,
6595,
292,
5398,
29898,
13,
9651,
4128,
29922,
9794,
29889,
6691,
6595,
292,
5398,
11507,
29898,
13,
18884,
1904,
29918,
3259,
29922,
1311,
29889,
4299,
29918,
3259,
29892,
13,
18884,
1347,
29918,
2248,
29918,
1853,
29922,
1311,
29889,
1807,
29918,
2248,
29918,
1853,
29892,
13,
18884,
12183,
29918,
3670,
29918,
449,
29922,
1311,
29889,
20472,
29918,
5509,
29918,
20756,
29892,
13,
9651,
1723,
13,
4706,
1723,
13,
13,
13,
1990,
7338,
1461,
26289,
4276,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
5647,
1461,
26289,
4276,
2094,
2547,
352,
1078,
278,
4128,
363,
6257,
263,
1472,
29899,
21094,
7338,
1461,
573,
13,
1678,
3992,
6991,
3034,
2133,
5858,
29889,
13,
13,
1678,
584,
26766,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
26766,
851,
1347,
29918,
2248,
29918,
1853,
29901,
12048,
11057,
278,
1158,
1304,
304,
6613,
1347,
1283,
7224,
29889,
13,
4706,
421,
2525,
12858,
3399,
5228,
1673,
278,
5132,
8025,
29892,
338,
278,
2322,
29889,
1763,
5712,
278,
5132,
2322,
29892,
13,
4706,
366,
508,
884,
1209,
297,
421,
29965,
13264,
29896,
29953,
3399,
5228,
29952,
470,
3992,
2642,
29918,
29894,
29947,
1412,
1152,
5684,
2472,
13,
4706,
1074,
2045,
597,
8245,
29889,
1516,
29914,
726,
29899,
7054,
22026,
29899,
2696,
7224,
13,
1678,
584,
26766,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
960,
731,
304,
1565,
29892,
366,
3523,
29899,
449,
310,
2534,
596,
1426,
1881,
13,
4706,
13817,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
2648,
2322,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
21605,
445,
3443,
304,
1565,
29892,
13,
4706,
766,
1849,
1881,
12183,
322,
1122,
4046,
1749,
11509,
304,
1083,
15844,
403,
5626,
393,
6403,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
584,
26766,
938,
4236,
29918,
18616,
663,
29918,
2798,
29901,
5918,
12539,
1353,
310,
25260,
304,
736,
29889,
13109,
29879,
304,
29871,
29941,
29889,
13,
1678,
584,
26766,
851,
1797,
29918,
1609,
29901,
29871,
20049,
1819,
3160,
29901,
376,
10302,
613,
376,
29934,
804,
1642,
13109,
995,
29901,
376,
10302,
1642,
13,
1678,
584,
440,
279,
851,
1904,
29918,
3259,
29901,
450,
1904,
1873,
304,
671,
363,
278,
7418,
29889,
13,
1678,
584,
440,
279,
851,
1347,
29918,
2248,
29918,
1853,
29901,
12048,
11057,
278,
1158,
1304,
304,
6613,
1347,
1283,
7224,
29889,
13,
4706,
421,
2525,
12858,
3399,
5228,
1673,
278,
5132,
8025,
29892,
338,
278,
2322,
29889,
1763,
5712,
278,
5132,
2322,
29892,
13,
4706,
366,
508,
884,
1209,
297,
421,
29965,
13264,
29896,
29953,
3399,
5228,
29952,
470,
3992,
2642,
29918,
29894,
29947,
1412,
1152,
5684,
2472,
13,
4706,
1074,
2045,
597,
8245,
29889,
1516,
29914,
726,
29899,
7054,
22026,
29899,
2696,
7224,
13,
1678,
584,
440,
279,
6120,
11262,
29918,
5509,
29918,
20756,
29901,
960,
731,
304,
1565,
29892,
366,
3523,
29899,
449,
310,
2534,
596,
1426,
1881,
13,
4706,
13817,
373,
278,
2669,
2625,
363,
18835,
1251,
11427,
29889,
2648,
2322,
29892,
3992,
11597,
22026,
10748,
596,
13,
4706,
1881,
1426,
363,
29871,
29946,
29947,
6199,
29892,
14419,
368,
304,
2758,
363,
18835,
1251,
11427,
5626,
297,
13138,
366,
411,
13,
4706,
278,
3992,
11597,
22026,
5613,
4086,
9068,
3168,
29889,
21605,
445,
3443,
304,
1565,
29892,
13,
4706,
766,
1849,
1881,
12183,
322,
1122,
4046,
1749,
11509,
304,
1083,
15844,
403,
5626,
393,
6403,
29889,
3529,
1074,
13,
4706,
315,
3811,
3321,
15538,
3831,
13036,
322,
18936,
4135,
11486,
472,
2045,
597,
8245,
29889,
1516,
29914,
2395,
29899,
2388,
13036,
363,
13,
4706,
5684,
4902,
29892,
322,
7783,
2538,
29886,
787,
1821,
319,
29902,
18671,
472,
13,
4706,
2045,
597,
1636,
29889,
4994,
29889,
510,
29914,
1794,
29914,
26679,
1821,
29899,
1794,
29889,
13,
1678,
584,
440,
279,
938,
4236,
29918,
18616,
663,
29918,
2798,
29901,
9681,
310,
25260,
304,
736,
29889,
13109,
29879,
304,
29871,
29941,
29889,
13,
1678,
584,
440,
279,
851,
1797,
29918,
1609,
29901,
29871,
20049,
1819,
3160,
29901,
376,
10302,
613,
376,
29934,
804,
1642,
13109,
995,
29901,
376,
10302,
1642,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
4299,
29918,
3259,
353,
9049,
5085,
29889,
657,
703,
4299,
29918,
3259,
613,
376,
12333,
1159,
13,
4706,
1583,
29889,
1807,
29918,
2248,
29918,
1853,
353,
9049,
5085,
29889,
657,
703,
1807,
29918,
2248,
29918,
1853,
613,
376,
2525,
12858,
3399,
5228,
1159,
13,
4706,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
353,
9049,
5085,
29889,
657,
703,
20472,
29918,
5509,
29918,
20756,
613,
7700,
29897,
13,
4706,
1583,
29889,
3317,
29918,
18616,
663,
29918,
2798,
353,
9049,
5085,
29889,
657,
703,
3317,
29918,
18616,
663,
29918,
2798,
613,
29871,
29941,
29897,
13,
4706,
1583,
29889,
2098,
29918,
1609,
353,
9049,
5085,
29889,
657,
703,
2098,
29918,
1609,
613,
376,
10302,
1159,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
313,
13,
9651,
376,
5647,
1461,
26289,
4276,
29898,
4299,
29918,
3259,
3790,
1118,
1347,
29918,
2248,
29918,
1853,
3790,
1118,
11262,
29918,
5509,
29918,
20756,
3790,
1118,
376,
13,
9651,
376,
3317,
29918,
18616,
663,
29918,
2798,
3790,
1118,
1797,
29918,
1609,
3790,
1800,
1642,
4830,
29898,
13,
18884,
1583,
29889,
4299,
29918,
3259,
29892,
13,
18884,
1583,
29889,
1807,
29918,
2248,
29918,
1853,
29892,
13,
18884,
1583,
29889,
20472,
29918,
5509,
29918,
20756,
29892,
13,
18884,
1583,
29889,
3317,
29918,
18616,
663,
29918,
2798,
29892,
13,
18884,
1583,
29889,
2098,
29918,
1609,
29892,
13,
9651,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
4706,
1723,
13,
13,
1678,
822,
903,
517,
29918,
13525,
29898,
1311,
29892,
7882,
29918,
3259,
1125,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
348,
3880,
29899,
23516,
13,
4706,
736,
903,
29894,
29941,
29918,
29906,
29918,
25347,
29918,
29896,
29918,
9794,
29889,
5647,
1461,
573,
11139,
3034,
2133,
5398,
29898,
13,
9651,
4128,
29922,
29918,
29894,
29941,
29918,
29906,
29918,
25347,
29918,
29896,
29918,
9794,
29889,
5647,
1461,
573,
11139,
3034,
2133,
5398,
11507,
29898,
13,
18884,
1904,
29918,
3259,
29922,
1311,
29889,
4299,
29918,
3259,
29892,
13,
18884,
1347,
29918,
2248,
29918,
1853,
29922,
1311,
29889,
1807,
29918,
2248,
29918,
1853,
29892,
13,
18884,
12183,
29918,
3670,
29918,
449,
29922,
1311,
29889,
20472,
29918,
5509,
29918,
20756,
29892,
13,
18884,
10541,
29918,
2798,
29922,
1311,
29889,
3317,
29918,
18616,
663,
29918,
2798,
29892,
13,
18884,
2656,
29918,
1609,
29922,
1311,
29889,
2098,
29918,
1609,
29892,
13,
9651,
1723,
13,
4706,
1723,
13,
13,
13,
1990,
7338,
1461,
26289,
3591,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
5647,
1461,
26289,
3591,
338,
263,
1121,
1203,
607,
3743,
13,
1678,
278,
6597,
573,
1426,
19138,
2133,
515,
263,
3153,
1842,
29889,
13,
13,
1678,
584,
440,
279,
851,
1178,
29901,
853,
1387,
29892,
1661,
29899,
6310,
1842,
15882,
29889,
13,
1678,
584,
440,
279,
25260,
29901,
319,
26642,
1051,
310,
25260,
15783,
278,
23892,
15837,
29889,
13,
1678,
584,
29894,
442,
668,
25260,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
26289,
29903,
296,
663,
29962,
13,
1678,
584,
440,
279,
18116,
29901,
399,
2753,
886,
18169,
1550,
9068,
1842,
29889,
13,
1678,
584,
29894,
442,
668,
18116,
29901,
1051,
29961,
30022,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
21067,
22026,
22709,
29962,
13,
1678,
584,
440,
279,
13964,
29901,
960,
421,
4294,
29918,
16202,
29922,
5574,
29952,
471,
6790,
297,
278,
2009,
445,
13,
4706,
1746,
674,
1712,
2472,
1048,
278,
1842,
20092,
29889,
13,
1678,
584,
29894,
442,
668,
13964,
29901,
3695,
17688,
29889,
1794,
29889,
726,
7054,
22026,
29889,
1626,
6268,
9513,
6765,
13,
1678,
584,
440,
279,
6120,
338,
29918,
2704,
29901,
11185,
1423,
363,
1059,
2944,
746,
4256,
1218,
975,
1051,
310,
13,
4706,
2582,
29889,
29849,
7700,
363,
385,
2777,
310,
385,
7338,
1461,
26289,
3591,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
333,
353,
9049,
5085,
29889,
657,
703,
333,
613,
6213,
29897,
13,
4706,
1583,
29889,
18616,
2063,
353,
9049,
5085,
29889,
657,
703,
18616,
2063,
613,
6213,
29897,
13,
4706,
1583,
29889,
25442,
886,
353,
9049,
5085,
29889,
657,
703,
25442,
886,
613,
6213,
29897,
13,
4706,
1583,
29889,
6112,
6765,
353,
9049,
5085,
29889,
657,
703,
6112,
6765,
613,
6213,
29897,
13,
4706,
1583,
29889,
275,
29918,
2704,
353,
7700,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
5647,
1461,
26289,
3591,
29898,
333,
3790,
1118,
25260,
3790,
1118,
18116,
3790,
1118,
13964,
3790,
1118,
338,
29918,
2704,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
333,
29892,
13,
9651,
2062,
29898,
1311,
29889,
18616,
2063,
511,
13,
9651,
2062,
29898,
1311,
29889,
25442,
886,
511,
13,
9651,
2062,
29898,
1311,
29889,
6112,
6765,
511,
13,
9651,
1583,
29889,
275,
29918,
2704,
29892,
13,
4706,
1723,
29961,
13,
9651,
584,
29896,
29900,
29906,
29946,
13,
4706,
4514,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
15837,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1178,
29922,
7727,
29889,
333,
29892,
13,
9651,
25260,
11759,
13,
18884,
6991,
5219,
29903,
296,
663,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
462,
1678,
10541,
13,
18884,
1723,
13,
18884,
363,
10541,
297,
15837,
29889,
18616,
2063,
13,
9651,
21251,
13,
9651,
18116,
11759,
13,
18884,
3992,
21067,
22026,
22709,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
462,
1678,
281,
13,
18884,
1723,
13,
18884,
363,
281,
297,
15837,
29889,
25442,
886,
13,
9651,
21251,
13,
9651,
13964,
29922,
1626,
6268,
9513,
6765,
3032,
3166,
29918,
13525,
29898,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
18884,
15837,
29889,
6112,
6765,
13,
9651,
10353,
13,
4706,
1723,
13,
13,
13,
1990,
6991,
5219,
29903,
296,
663,
29898,
21533,
29924,
861,
262,
1125,
13,
1678,
9995,
1123,
4569,
1237,
263,
2323,
10541,
515,
278,
6597,
573,
1426,
19138,
2133,
29889,
13,
13,
1678,
584,
440,
279,
851,
1426,
29901,
450,
23892,
10541,
1426,
29889,
13,
1678,
584,
440,
279,
5785,
7115,
29918,
13628,
29901,
319,
5785,
995,
15783,
278,
29527,
749,
310,
278,
10541,
2629,
13,
4706,
278,
15837,
29889,
5057,
261,
1819,
12266,
6133,
13500,
29889,
13,
1678,
584,
440,
279,
938,
9210,
29901,
450,
10541,
9210,
515,
278,
1369,
310,
278,
1842,
29889,
13,
4706,
450,
995,
7111,
373,
278,
995,
310,
278,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
13,
4706,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
5228,
491,
2322,
29889,
13,
1678,
584,
440,
279,
938,
3309,
29901,
450,
3309,
310,
278,
10541,
29889,
910,
995,
7111,
373,
278,
995,
310,
278,
13,
4706,
421,
1807,
29918,
2248,
29918,
1853,
29952,
3443,
731,
297,
278,
2441,
2009,
29892,
607,
338,
23862,
3399,
5228,
13,
4706,
491,
2322,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
726,
353,
9049,
5085,
29889,
657,
703,
726,
613,
6213,
29897,
13,
4706,
1583,
29889,
10003,
29918,
13628,
353,
9049,
5085,
29889,
657,
703,
10003,
29918,
13628,
613,
6213,
29897,
13,
4706,
1583,
29889,
10289,
353,
9049,
5085,
29889,
657,
703,
10289,
613,
6213,
29897,
13,
4706,
1583,
29889,
2848,
353,
9049,
5085,
29889,
657,
703,
2848,
613,
6213,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
26289,
29903,
296,
663,
29898,
726,
3790,
1118,
7115,
29918,
13628,
3790,
1118,
9210,
3790,
1118,
3309,
3790,
1800,
1642,
4830,
29898,
13,
9651,
1583,
29889,
726,
29892,
13,
9651,
1583,
29889,
10003,
29918,
13628,
29892,
13,
9651,
1583,
29889,
10289,
29892,
13,
9651,
1583,
29889,
2848,
29892,
13,
4706,
1723,
7503,
29896,
29900,
29906,
29946,
29962,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
903,
3166,
29918,
13525,
29898,
25932,
29892,
10541,
1125,
13,
4706,
736,
1067,
29879,
29898,
13,
9651,
1426,
29922,
18616,
663,
29889,
726,
29892,
13,
9651,
7115,
29918,
13628,
29922,
18616,
663,
29889,
10003,
29918,
13628,
29892,
13,
9651,
9210,
29922,
18616,
663,
29889,
10289,
29892,
13,
9651,
3309,
29922,
18616,
663,
29889,
2848,
29892,
13,
4706,
1723,
13,
2
] |
onlinejudge/implementation/command/test.py | gitter-badger/online-judge-tools | 1 | 197908 | <filename>onlinejudge/implementation/command/test.py
# Python Version: 3.x
import onlinejudge
import onlinejudge.implementation.utils as utils
import onlinejudge.implementation.logging as log
import onlinejudge.implementation.command.utils as cutils
import sys
import os
import os.path
import re
import glob
import colorama
import collections
import time
import math
from typing import *
if TYPE_CHECKING:
import argparse
def compare_as_floats(xs_: str, ys_: str, error: float) -> bool:
def f(x):
try:
y = float(x)
if not math.isfinite(y):
log.warning('not an real number found: %f', y)
return y
except ValueError:
return x
xs = list(map(f, xs_.split()))
ys = list(map(f, ys_.split()))
if len(xs) != len(ys):
return False
for x, y in zip(xs, ys):
if isinstance(x, float) and isinstance(y, float):
if not math.isclose(x, y, rel_tol=error, abs_tol=error):
return False
else:
if x != y:
return False
return True
def test(args: 'argparse.Namespace') -> None:
# prepare
if not args.test:
args.test = cutils.glob_with_format(args.directory, args.format) # by default
if args.ignore_backup:
args.test = cutils.drop_backup_or_hidden_files(args.test)
tests = cutils.construct_relationship_of_files(args.test, args.directory, args.format)
if args.error: # float mode
match = lambda a, b: compare_as_floats(a, b, args.error)
else:
def match(a, b):
if a == b:
return True
if args.rstrip and a.rstrip(rstrip_targets) == b.rstrip(rstrip_targets):
log.warning('WA if no rstrip')
return True
return False
rstrip_targets = ' \t\r\n\f\v\0' # ruby's one, follow AnarchyGolf
slowest: Union[int, float] = -1
slowest_name = ''
ac_count = 0
for name, it in sorted(tests.items()):
is_printed_input = not args.print_input
def print_input():
nonlocal is_printed_input
if not is_printed_input:
is_printed_input = True
with open(it['in']) as inf:
log.emit('input:\n%s', log.bold(inf.read()))
log.emit('')
log.info('%s', name)
# run the binary
with open(it['in']) as inf:
begin = time.perf_counter()
answer_byte, proc = utils.exec_command(args.command, shell=True, stdin=inf, timeout=args.tle)
end = time.perf_counter()
answer = answer_byte.decode()
if slowest < end - begin:
slowest = end - begin
slowest_name = name
log.status('time: %f sec', end - begin)
proc.terminate()
# check TLE, RE or not
result = 'AC'
if proc.returncode is None:
log.failure(log.red('TLE'))
result = 'TLE'
print_input()
elif proc.returncode != 0:
log.failure(log.red('RE') + ': return code %d', proc.returncode)
result = 'RE'
print_input()
# check WA or not
if 'out' in it:
with open(it['out']) as outf:
correct = outf.read()
# compare
if args.mode == 'all':
if not match(answer, correct):
log.failure(log.red('WA'))
print_input()
if not args.silent:
log.emit('output:\n%s', log.bold(answer))
log.emit('expected:\n%s', log.bold(correct))
result = 'WA'
elif args.mode == 'line':
answer_words = answer .splitlines()
correct_words = correct.splitlines()
for i, (x, y) in enumerate(zip(answer_words + [ None ] * len(correct_words), correct_words + [ None ] * len(answer_words))): # type: ignore
if x is None and y is None:
break
elif x is None:
print_input()
log.failure(log.red('WA') + ': line %d: line is nothing: expected "%s"', i + 1, log.bold(y))
result = 'WA'
elif y is None:
print_input()
log.failure(log.red('WA') + ': line %d: unexpected line: output "%s"', i + 1, log.bold(x))
result = 'WA'
elif not match(x, y):
print_input()
log.failure(log.red('WA') + ': line %d: output "%s": expected "%s"', i + 1, log.bold(x), log.bold(y))
result = 'WA'
else:
assert False
else:
if not args.silent:
log.emit(log.bold(answer))
if result == 'AC':
log.success(log.green('AC'))
ac_count += 1
# summarize
log.emit('')
log.status('slowest: %f sec (for %s)', slowest, slowest_name)
if ac_count == len(tests):
log.success('test ' + log.green('success') + ': %d cases', len(tests))
else:
log.failure('test ' + log.red('failed') + ': %d AC / %d cases', ac_count, len(tests))
sys.exit(1)
| [
1,
529,
9507,
29958,
14627,
17675,
479,
29914,
21382,
29914,
6519,
29914,
1688,
29889,
2272,
13,
29937,
5132,
10079,
29901,
29871,
29941,
29889,
29916,
13,
5215,
7395,
17675,
479,
13,
5215,
7395,
17675,
479,
29889,
21382,
29889,
13239,
408,
3667,
29879,
13,
5215,
7395,
17675,
479,
29889,
21382,
29889,
21027,
408,
1480,
13,
5215,
7395,
17675,
479,
29889,
21382,
29889,
6519,
29889,
13239,
408,
5700,
2719,
13,
5215,
10876,
13,
5215,
2897,
13,
5215,
2897,
29889,
2084,
13,
5215,
337,
13,
5215,
13149,
13,
5215,
2927,
3304,
13,
5215,
16250,
13,
5215,
931,
13,
5215,
5844,
13,
3166,
19229,
1053,
334,
13,
361,
323,
6959,
29918,
3210,
16658,
4214,
29901,
13,
1678,
1053,
1852,
5510,
13,
13,
1753,
7252,
29918,
294,
29918,
29888,
417,
1446,
29898,
10351,
29918,
29901,
851,
29892,
343,
29879,
29918,
29901,
851,
29892,
1059,
29901,
5785,
29897,
1599,
6120,
29901,
13,
1678,
822,
285,
29898,
29916,
1125,
13,
4706,
1018,
29901,
13,
9651,
343,
353,
5785,
29898,
29916,
29897,
13,
9651,
565,
451,
5844,
29889,
4492,
262,
568,
29898,
29891,
1125,
13,
18884,
1480,
29889,
27392,
877,
1333,
385,
1855,
1353,
1476,
29901,
1273,
29888,
742,
343,
29897,
13,
9651,
736,
343,
13,
4706,
5174,
7865,
2392,
29901,
13,
9651,
736,
921,
13,
1678,
14492,
353,
1051,
29898,
1958,
29898,
29888,
29892,
14492,
5396,
5451,
22130,
13,
1678,
343,
29879,
353,
1051,
29898,
1958,
29898,
29888,
29892,
343,
29879,
5396,
5451,
22130,
13,
1678,
565,
7431,
29898,
10351,
29897,
2804,
7431,
29898,
952,
1125,
13,
4706,
736,
7700,
13,
1678,
363,
921,
29892,
343,
297,
14319,
29898,
10351,
29892,
343,
29879,
1125,
13,
4706,
565,
338,
8758,
29898,
29916,
29892,
5785,
29897,
322,
338,
8758,
29898,
29891,
29892,
5785,
1125,
13,
9651,
565,
451,
5844,
29889,
275,
5358,
29898,
29916,
29892,
343,
29892,
1104,
29918,
25027,
29922,
2704,
29892,
6425,
29918,
25027,
29922,
2704,
1125,
13,
18884,
736,
7700,
13,
4706,
1683,
29901,
13,
9651,
565,
921,
2804,
343,
29901,
13,
18884,
736,
7700,
13,
1678,
736,
5852,
13,
13,
1753,
1243,
29898,
5085,
29901,
525,
1191,
5510,
29889,
23335,
1495,
1599,
6213,
29901,
13,
1678,
396,
19012,
13,
1678,
565,
451,
6389,
29889,
1688,
29901,
13,
4706,
6389,
29889,
1688,
353,
5700,
2719,
29889,
23705,
29918,
2541,
29918,
4830,
29898,
5085,
29889,
12322,
29892,
6389,
29889,
4830,
29897,
29871,
396,
491,
2322,
13,
1678,
565,
6389,
29889,
17281,
29918,
1627,
786,
29901,
13,
4706,
6389,
29889,
1688,
353,
5700,
2719,
29889,
8865,
29918,
1627,
786,
29918,
272,
29918,
10892,
29918,
5325,
29898,
5085,
29889,
1688,
29897,
13,
1678,
6987,
353,
5700,
2719,
29889,
11433,
29918,
2674,
800,
4034,
29918,
974,
29918,
5325,
29898,
5085,
29889,
1688,
29892,
6389,
29889,
12322,
29892,
6389,
29889,
4830,
29897,
13,
1678,
565,
6389,
29889,
2704,
29901,
396,
5785,
4464,
13,
4706,
1993,
353,
14013,
263,
29892,
289,
29901,
7252,
29918,
294,
29918,
29888,
417,
1446,
29898,
29874,
29892,
289,
29892,
6389,
29889,
2704,
29897,
13,
1678,
1683,
29901,
13,
4706,
822,
1993,
29898,
29874,
29892,
289,
1125,
13,
9651,
565,
263,
1275,
289,
29901,
13,
18884,
736,
5852,
13,
9651,
565,
6389,
29889,
29878,
17010,
322,
263,
29889,
29878,
17010,
29898,
29878,
17010,
29918,
5182,
29879,
29897,
1275,
289,
29889,
29878,
17010,
29898,
29878,
17010,
29918,
5182,
29879,
1125,
13,
18884,
1480,
29889,
27392,
877,
12982,
565,
694,
364,
17010,
1495,
13,
18884,
736,
5852,
13,
9651,
736,
7700,
13,
1678,
364,
17010,
29918,
5182,
29879,
353,
525,
320,
29873,
29905,
29878,
29905,
29876,
29905,
29888,
29905,
29894,
29905,
29900,
29915,
29871,
396,
9453,
29915,
29879,
697,
29892,
1101,
530,
12040,
29954,
4369,
13,
1678,
5232,
342,
29901,
7761,
29961,
524,
29892,
5785,
29962,
353,
448,
29896,
13,
1678,
5232,
342,
29918,
978,
353,
6629,
13,
1678,
1274,
29918,
2798,
353,
29871,
29900,
13,
13,
1678,
363,
1024,
29892,
372,
297,
12705,
29898,
21150,
29889,
7076,
580,
1125,
13,
4706,
338,
29918,
2158,
287,
29918,
2080,
353,
451,
6389,
29889,
2158,
29918,
2080,
13,
4706,
822,
1596,
29918,
2080,
7295,
13,
9651,
1661,
2997,
338,
29918,
2158,
287,
29918,
2080,
13,
9651,
565,
451,
338,
29918,
2158,
287,
29918,
2080,
29901,
13,
18884,
338,
29918,
2158,
287,
29918,
2080,
353,
5852,
13,
18884,
411,
1722,
29898,
277,
1839,
262,
11287,
408,
3041,
29901,
13,
462,
1678,
1480,
29889,
21976,
877,
2080,
3583,
29876,
29995,
29879,
742,
1480,
29889,
8934,
29898,
7192,
29889,
949,
22130,
13,
13,
4706,
1480,
29889,
21976,
877,
1495,
13,
4706,
1480,
29889,
3888,
877,
29995,
29879,
742,
1024,
29897,
13,
13,
4706,
396,
1065,
278,
7581,
13,
4706,
411,
1722,
29898,
277,
1839,
262,
11287,
408,
3041,
29901,
13,
9651,
3380,
353,
931,
29889,
546,
29888,
29918,
11808,
580,
13,
9651,
1234,
29918,
10389,
29892,
9580,
353,
3667,
29879,
29889,
4258,
29918,
6519,
29898,
5085,
29889,
6519,
29892,
6473,
29922,
5574,
29892,
3659,
262,
29922,
7192,
29892,
11815,
29922,
5085,
29889,
29873,
280,
29897,
13,
9651,
1095,
353,
931,
29889,
546,
29888,
29918,
11808,
580,
13,
9651,
1234,
353,
1234,
29918,
10389,
29889,
13808,
580,
13,
9651,
565,
5232,
342,
529,
1095,
448,
3380,
29901,
13,
18884,
5232,
342,
353,
1095,
448,
3380,
13,
18884,
5232,
342,
29918,
978,
353,
1024,
13,
9651,
1480,
29889,
4882,
877,
2230,
29901,
1273,
29888,
5226,
742,
1095,
448,
3380,
29897,
13,
9651,
9580,
29889,
18821,
403,
580,
13,
13,
4706,
396,
1423,
323,
1307,
29892,
5195,
470,
451,
13,
4706,
1121,
353,
525,
2477,
29915,
13,
4706,
565,
9580,
29889,
2457,
401,
338,
6213,
29901,
13,
9651,
1480,
29889,
14057,
545,
29898,
1188,
29889,
1127,
877,
29911,
1307,
8785,
13,
9651,
1121,
353,
525,
29911,
1307,
29915,
13,
9651,
1596,
29918,
2080,
580,
13,
4706,
25342,
9580,
29889,
2457,
401,
2804,
29871,
29900,
29901,
13,
9651,
1480,
29889,
14057,
545,
29898,
1188,
29889,
1127,
877,
1525,
1495,
718,
525,
29901,
736,
775,
1273,
29881,
742,
9580,
29889,
2457,
401,
29897,
13,
9651,
1121,
353,
525,
1525,
29915,
13,
9651,
1596,
29918,
2080,
580,
13,
13,
4706,
396,
1423,
399,
29909,
470,
451,
13,
4706,
565,
525,
449,
29915,
297,
372,
29901,
13,
9651,
411,
1722,
29898,
277,
1839,
449,
11287,
408,
714,
29888,
29901,
13,
18884,
1959,
353,
714,
29888,
29889,
949,
580,
13,
9651,
396,
7252,
13,
9651,
565,
6389,
29889,
8513,
1275,
525,
497,
2396,
13,
18884,
565,
451,
1993,
29898,
12011,
29892,
1959,
1125,
13,
462,
1678,
1480,
29889,
14057,
545,
29898,
1188,
29889,
1127,
877,
12982,
8785,
13,
462,
1678,
1596,
29918,
2080,
580,
13,
462,
1678,
565,
451,
6389,
29889,
25590,
296,
29901,
13,
462,
4706,
1480,
29889,
21976,
877,
4905,
3583,
29876,
29995,
29879,
742,
1480,
29889,
8934,
29898,
12011,
876,
13,
462,
4706,
1480,
29889,
21976,
877,
9684,
3583,
29876,
29995,
29879,
742,
1480,
29889,
8934,
29898,
15728,
876,
13,
462,
1678,
1121,
353,
525,
12982,
29915,
13,
9651,
25342,
6389,
29889,
8513,
1275,
525,
1220,
2396,
13,
18884,
1234,
29918,
9303,
29871,
353,
1234,
869,
5451,
9012,
580,
13,
18884,
1959,
29918,
9303,
353,
1959,
29889,
5451,
9012,
580,
13,
18884,
363,
474,
29892,
313,
29916,
29892,
343,
29897,
297,
26985,
29898,
7554,
29898,
12011,
29918,
9303,
718,
518,
6213,
4514,
334,
7431,
29898,
15728,
29918,
9303,
511,
1959,
29918,
9303,
718,
518,
6213,
4514,
334,
7431,
29898,
12011,
29918,
9303,
876,
1125,
29871,
396,
1134,
29901,
11455,
13,
462,
1678,
565,
921,
338,
6213,
322,
343,
338,
6213,
29901,
13,
462,
4706,
2867,
13,
462,
1678,
25342,
921,
338,
6213,
29901,
13,
462,
4706,
1596,
29918,
2080,
580,
13,
462,
4706,
1480,
29889,
14057,
545,
29898,
1188,
29889,
1127,
877,
12982,
1495,
718,
525,
29901,
1196,
1273,
29881,
29901,
1196,
338,
3078,
29901,
3806,
11860,
29879,
29908,
742,
474,
718,
29871,
29896,
29892,
1480,
29889,
8934,
29898,
29891,
876,
13,
462,
4706,
1121,
353,
525,
12982,
29915,
13,
462,
1678,
25342,
343,
338,
6213,
29901,
13,
462,
4706,
1596,
29918,
2080,
580,
13,
462,
4706,
1480,
29889,
14057,
545,
29898,
1188,
29889,
1127,
877,
12982,
1495,
718,
525,
29901,
1196,
1273,
29881,
29901,
15668,
1196,
29901,
1962,
11860,
29879,
29908,
742,
474,
718,
29871,
29896,
29892,
1480,
29889,
8934,
29898,
29916,
876,
13,
462,
4706,
1121,
353,
525,
12982,
29915,
13,
462,
1678,
25342,
451,
1993,
29898,
29916,
29892,
343,
1125,
13,
462,
4706,
1596,
29918,
2080,
580,
13,
462,
4706,
1480,
29889,
14057,
545,
29898,
1188,
29889,
1127,
877,
12982,
1495,
718,
525,
29901,
1196,
1273,
29881,
29901,
1962,
11860,
29879,
1115,
3806,
11860,
29879,
29908,
742,
474,
718,
29871,
29896,
29892,
1480,
29889,
8934,
29898,
29916,
511,
1480,
29889,
8934,
29898,
29891,
876,
13,
462,
4706,
1121,
353,
525,
12982,
29915,
13,
9651,
1683,
29901,
13,
18884,
4974,
7700,
13,
4706,
1683,
29901,
13,
9651,
565,
451,
6389,
29889,
25590,
296,
29901,
13,
18884,
1480,
29889,
21976,
29898,
1188,
29889,
8934,
29898,
12011,
876,
13,
4706,
565,
1121,
1275,
525,
2477,
2396,
13,
9651,
1480,
29889,
8698,
29898,
1188,
29889,
12692,
877,
2477,
8785,
13,
9651,
1274,
29918,
2798,
4619,
29871,
29896,
13,
13,
1678,
396,
19138,
675,
13,
1678,
1480,
29889,
21976,
877,
1495,
13,
1678,
1480,
29889,
4882,
877,
28544,
342,
29901,
1273,
29888,
5226,
29871,
313,
1454,
1273,
29879,
29897,
742,
5232,
342,
29892,
5232,
342,
29918,
978,
29897,
13,
1678,
565,
1274,
29918,
2798,
1275,
7431,
29898,
21150,
1125,
13,
4706,
1480,
29889,
8698,
877,
1688,
525,
718,
1480,
29889,
12692,
877,
8698,
1495,
718,
525,
29901,
1273,
29881,
4251,
742,
7431,
29898,
21150,
876,
13,
1678,
1683,
29901,
13,
4706,
1480,
29889,
14057,
545,
877,
1688,
525,
718,
1480,
29889,
1127,
877,
26061,
1495,
718,
525,
29901,
1273,
29881,
14614,
847,
1273,
29881,
4251,
742,
1274,
29918,
2798,
29892,
7431,
29898,
21150,
876,
13,
4706,
10876,
29889,
13322,
29898,
29896,
29897,
13,
2
] |
0015_3Sum.py | taro-masuda/leetcode | 0 | 36495 | class Solution:
def twoSum(self, nums: List[int], target: int) -> List[List[int]]:
complement = {}
out = []
for i,n in enumerate(nums):
complement[target-n] = i
for i,n in enumerate(nums):
idx = complement.get(n, None)
if idx != None and idx != i:
out.append([nums[idx], nums[i]])
return out
def threeSum(self, nums: List[int]) -> List[List[int]]:
if len(nums) < 3:
return []
nums.sort()
out = []
if set(nums) == {0}:
return [[0,0,0]]
i = 0
while len(nums) >= 3:
l_twosum = self.twoSum(nums[1:], -nums[0])
if l_twosum != None:
for l in l_twosum:
l.append(nums[0])
out.append(l)
nums.pop(0)
for i,l in enumerate(out):
out[i] = sorted(l)
out = list(map(list, set(map(tuple, out))))
return out
| [
1,
770,
24380,
29901,
13,
268,
13,
1678,
822,
1023,
11139,
29898,
1311,
29892,
954,
29879,
29901,
2391,
29961,
524,
1402,
3646,
29901,
938,
29897,
1599,
2391,
29961,
1293,
29961,
524,
5262,
29901,
13,
4706,
19595,
353,
6571,
13,
4706,
714,
353,
5159,
13,
4706,
363,
474,
29892,
29876,
297,
26985,
29898,
1949,
29879,
1125,
13,
9651,
19595,
29961,
5182,
29899,
29876,
29962,
353,
474,
13,
4706,
363,
474,
29892,
29876,
297,
26985,
29898,
1949,
29879,
1125,
13,
9651,
22645,
353,
19595,
29889,
657,
29898,
29876,
29892,
6213,
29897,
13,
9651,
565,
22645,
2804,
6213,
322,
22645,
2804,
474,
29901,
13,
18884,
714,
29889,
4397,
4197,
1949,
29879,
29961,
13140,
1402,
954,
29879,
29961,
29875,
24960,
13,
18884,
13,
4706,
736,
714,
13,
462,
13,
1678,
822,
2211,
11139,
29898,
1311,
29892,
954,
29879,
29901,
2391,
29961,
524,
2314,
1599,
2391,
29961,
1293,
29961,
524,
5262,
29901,
13,
4706,
565,
7431,
29898,
1949,
29879,
29897,
529,
29871,
29941,
29901,
13,
9651,
736,
5159,
13,
4706,
954,
29879,
29889,
6605,
580,
13,
308,
13,
4706,
714,
353,
5159,
13,
4706,
13,
4706,
565,
731,
29898,
1949,
29879,
29897,
1275,
426,
29900,
6177,
13,
9651,
736,
5519,
29900,
29892,
29900,
29892,
29900,
5262,
13,
308,
13,
4706,
474,
353,
29871,
29900,
13,
4706,
1550,
7431,
29898,
1949,
29879,
29897,
6736,
29871,
29941,
29901,
13,
9651,
301,
29918,
7516,
359,
398,
353,
1583,
29889,
10184,
11139,
29898,
1949,
29879,
29961,
29896,
29901,
1402,
448,
1949,
29879,
29961,
29900,
2314,
13,
9651,
565,
301,
29918,
7516,
359,
398,
2804,
6213,
29901,
13,
18884,
363,
301,
297,
301,
29918,
7516,
359,
398,
29901,
13,
462,
1678,
301,
29889,
4397,
29898,
1949,
29879,
29961,
29900,
2314,
13,
462,
1678,
714,
29889,
4397,
29898,
29880,
29897,
13,
9651,
954,
29879,
29889,
7323,
29898,
29900,
29897,
13,
4706,
363,
474,
29892,
29880,
297,
26985,
29898,
449,
1125,
13,
9651,
714,
29961,
29875,
29962,
353,
12705,
29898,
29880,
29897,
13,
4706,
714,
353,
1051,
29898,
1958,
29898,
1761,
29892,
731,
29898,
1958,
29898,
23583,
29892,
714,
13697,
13,
4706,
736,
714,
13,
2
] |
tests/core/test_urn.py | joshuataylor/great_expectations | 6,451 | 125719 | <gh_stars>1000+
from urllib.parse import parse_qs
import pytest
from pyparsing import ParseException
from great_expectations.core.urn import ge_urn
def test_ge_validations_urn():
# We should be able to parse validations urns
urn = (
"urn:great_expectations:validations:my_suite:expect_something.observed_value:query=s%20tring&query="
"string3&query2=string2"
)
res = ge_urn.parseString(urn)
assert res["urn_type"] == "validations"
assert res["expectation_suite_name"] == "my_suite"
assert res["metric_name"] == "expect_something.observed_value"
kwargs_dict = parse_qs(res["metric_kwargs"])
assert kwargs_dict == {"query": ["s tring", "string3"], "query2": ["string2"]}
# no kwargs is ok
urn = "urn:great_expectations:validations:my_suite:expect_something.observed_value"
res = ge_urn.parseString(urn)
assert res["urn_type"] == "validations"
assert res["expectation_suite_name"] == "my_suite"
assert res["metric_name"] == "expect_something.observed_value"
assert "metric_kwargs" not in res
def test_ge_metrics_urn():
urn = "urn:great_expectations:metrics:20200403T1234.324Z:my_suite:expect_something.observed_value:column=mycol"
res = ge_urn.parseString(urn)
assert res["urn_type"] == "metrics"
assert res["run_id"] == "20200403T1234.324Z"
assert res["expectation_suite_name"] == "my_suite"
assert res["metric_name"] == "expect_something.observed_value"
kwargs_dict = parse_qs(res["metric_kwargs"])
assert kwargs_dict == {"column": ["mycol"]}
# No kwargs is ok
urn = "urn:great_expectations:metrics:20200403T1234.324Z:my_suite:expect_something.observed_value"
res = ge_urn.parseString(urn)
assert res["urn_type"] == "metrics"
assert res["run_id"] == "20200403T1234.324Z"
assert res["expectation_suite_name"] == "my_suite"
assert res["metric_name"] == "expect_something.observed_value"
assert "kwargs_dict" not in res
def test_ge_stores_urn():
urn = "urn:great_expectations:stores:my_store:mymetric:kw=param"
res = ge_urn.parseString(urn)
assert res["urn_type"] == "stores"
assert res["store_name"] == "my_store"
assert res["metric_name"] == "mymetric"
kwargs_dict = parse_qs(res["metric_kwargs"])
assert kwargs_dict == {
"kw": ["param"],
}
# No kwargs is ok
urn = "urn:great_expectations:stores:my_store:mymetric"
res = ge_urn.parseString(urn)
assert res["urn_type"] == "stores"
assert res["store_name"] == "my_store"
assert res["metric_name"] == "mymetric"
assert "metric_kwargs" not in res
def test_invalid_urn():
# Must start with "urn:great_expectations"
with pytest.raises(ParseException) as e:
ge_urn.parseString("not_a_ge_urn")
assert "not_a_ge_urn" in e.value.line
# Must have one of the recognized types
with pytest.raises(ParseException) as e:
ge_urn.parseString("urn:great_expectations:foo:bar:baz:bin:barg")
assert "urn:great_expectations:foo:bar:baz:bin:barg" in e.value.line
# Cannot have too many parts
with pytest.raises(ParseException) as e:
ge_urn.parseString(
"urn:great_expectations:validations:foo:bar:baz:bin:barg:boo"
)
assert "urn:great_expectations:validations:foo:bar:baz:bin:barg:boo" in e.value.line
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29900,
29974,
13,
3166,
3142,
1982,
29889,
5510,
1053,
6088,
29918,
29939,
29879,
13,
13,
5215,
11451,
1688,
13,
3166,
11451,
862,
2976,
1053,
20969,
2451,
13,
13,
3166,
2107,
29918,
17854,
800,
29889,
3221,
29889,
595,
1053,
1737,
29918,
595,
13,
13,
13,
1753,
1243,
29918,
479,
29918,
3084,
800,
29918,
595,
7295,
13,
1678,
396,
1334,
881,
367,
2221,
304,
6088,
2854,
800,
5065,
1983,
13,
1678,
5065,
29876,
353,
313,
13,
4706,
376,
595,
29901,
7979,
271,
29918,
17854,
800,
29901,
3084,
800,
29901,
1357,
29918,
13495,
29901,
17854,
29918,
14481,
29889,
711,
643,
1490,
29918,
1767,
29901,
1972,
29922,
29879,
29995,
29906,
29900,
909,
29987,
1972,
543,
13,
4706,
376,
1807,
29941,
29987,
1972,
29906,
29922,
1807,
29906,
29908,
13,
1678,
1723,
13,
1678,
620,
353,
1737,
29918,
595,
29889,
5510,
1231,
29898,
595,
29897,
13,
13,
1678,
4974,
620,
3366,
595,
29918,
1853,
3108,
1275,
376,
3084,
800,
29908,
13,
1678,
4974,
620,
3366,
17854,
362,
29918,
13495,
29918,
978,
3108,
1275,
376,
1357,
29918,
13495,
29908,
13,
1678,
4974,
620,
3366,
16414,
29918,
978,
3108,
1275,
376,
17854,
29918,
14481,
29889,
711,
643,
1490,
29918,
1767,
29908,
13,
1678,
9049,
5085,
29918,
8977,
353,
6088,
29918,
29939,
29879,
29898,
690,
3366,
16414,
29918,
19290,
20068,
13,
1678,
4974,
9049,
5085,
29918,
8977,
1275,
8853,
1972,
1115,
6796,
29879,
534,
292,
613,
376,
1807,
29941,
12436,
376,
1972,
29906,
1115,
6796,
1807,
29906,
3108,
29913,
13,
13,
1678,
396,
694,
9049,
5085,
338,
3431,
13,
1678,
5065,
29876,
353,
376,
595,
29901,
7979,
271,
29918,
17854,
800,
29901,
3084,
800,
29901,
1357,
29918,
13495,
29901,
17854,
29918,
14481,
29889,
711,
643,
1490,
29918,
1767,
29908,
13,
1678,
620,
353,
1737,
29918,
595,
29889,
5510,
1231,
29898,
595,
29897,
13,
13,
1678,
4974,
620,
3366,
595,
29918,
1853,
3108,
1275,
376,
3084,
800,
29908,
13,
1678,
4974,
620,
3366,
17854,
362,
29918,
13495,
29918,
978,
3108,
1275,
376,
1357,
29918,
13495,
29908,
13,
1678,
4974,
620,
3366,
16414,
29918,
978,
3108,
1275,
376,
17854,
29918,
14481,
29889,
711,
643,
1490,
29918,
1767,
29908,
13,
1678,
4974,
376,
16414,
29918,
19290,
29908,
451,
297,
620,
13,
13,
13,
1753,
1243,
29918,
479,
29918,
2527,
10817,
29918,
595,
7295,
13,
1678,
5065,
29876,
353,
376,
595,
29901,
7979,
271,
29918,
17854,
800,
29901,
2527,
10817,
29901,
29906,
29900,
29906,
29900,
29900,
29946,
29900,
29941,
29911,
29896,
29906,
29941,
29946,
29889,
29941,
29906,
29946,
29999,
29901,
1357,
29918,
13495,
29901,
17854,
29918,
14481,
29889,
711,
643,
1490,
29918,
1767,
29901,
4914,
29922,
1357,
1054,
29908,
13,
1678,
620,
353,
1737,
29918,
595,
29889,
5510,
1231,
29898,
595,
29897,
13,
13,
1678,
4974,
620,
3366,
595,
29918,
1853,
3108,
1275,
376,
2527,
10817,
29908,
13,
1678,
4974,
620,
3366,
3389,
29918,
333,
3108,
1275,
376,
29906,
29900,
29906,
29900,
29900,
29946,
29900,
29941,
29911,
29896,
29906,
29941,
29946,
29889,
29941,
29906,
29946,
29999,
29908,
13,
1678,
4974,
620,
3366,
17854,
362,
29918,
13495,
29918,
978,
3108,
1275,
376,
1357,
29918,
13495,
29908,
13,
1678,
4974,
620,
3366,
16414,
29918,
978,
3108,
1275,
376,
17854,
29918,
14481,
29889,
711,
643,
1490,
29918,
1767,
29908,
13,
1678,
9049,
5085,
29918,
8977,
353,
6088,
29918,
29939,
29879,
29898,
690,
3366,
16414,
29918,
19290,
20068,
13,
1678,
4974,
9049,
5085,
29918,
8977,
1275,
8853,
4914,
1115,
6796,
1357,
1054,
3108,
29913,
13,
13,
1678,
396,
1939,
9049,
5085,
338,
3431,
13,
1678,
5065,
29876,
353,
376,
595,
29901,
7979,
271,
29918,
17854,
800,
29901,
2527,
10817,
29901,
29906,
29900,
29906,
29900,
29900,
29946,
29900,
29941,
29911,
29896,
29906,
29941,
29946,
29889,
29941,
29906,
29946,
29999,
29901,
1357,
29918,
13495,
29901,
17854,
29918,
14481,
29889,
711,
643,
1490,
29918,
1767,
29908,
13,
1678,
620,
353,
1737,
29918,
595,
29889,
5510,
1231,
29898,
595,
29897,
13,
13,
1678,
4974,
620,
3366,
595,
29918,
1853,
3108,
1275,
376,
2527,
10817,
29908,
13,
1678,
4974,
620,
3366,
3389,
29918,
333,
3108,
1275,
376,
29906,
29900,
29906,
29900,
29900,
29946,
29900,
29941,
29911,
29896,
29906,
29941,
29946,
29889,
29941,
29906,
29946,
29999,
29908,
13,
1678,
4974,
620,
3366,
17854,
362,
29918,
13495,
29918,
978,
3108,
1275,
376,
1357,
29918,
13495,
29908,
13,
1678,
4974,
620,
3366,
16414,
29918,
978,
3108,
1275,
376,
17854,
29918,
14481,
29889,
711,
643,
1490,
29918,
1767,
29908,
13,
1678,
4974,
376,
19290,
29918,
8977,
29908,
451,
297,
620,
13,
13,
13,
1753,
1243,
29918,
479,
29918,
303,
2361,
29918,
595,
7295,
13,
1678,
5065,
29876,
353,
376,
595,
29901,
7979,
271,
29918,
17854,
800,
29901,
303,
2361,
29901,
1357,
29918,
8899,
29901,
29885,
962,
300,
2200,
29901,
11022,
29922,
3207,
29908,
13,
1678,
620,
353,
1737,
29918,
595,
29889,
5510,
1231,
29898,
595,
29897,
13,
13,
1678,
4974,
620,
3366,
595,
29918,
1853,
3108,
1275,
376,
303,
2361,
29908,
13,
1678,
4974,
620,
3366,
8899,
29918,
978,
3108,
1275,
376,
1357,
29918,
8899,
29908,
13,
1678,
4974,
620,
3366,
16414,
29918,
978,
3108,
1275,
376,
29885,
962,
300,
2200,
29908,
13,
1678,
9049,
5085,
29918,
8977,
353,
6088,
29918,
29939,
29879,
29898,
690,
3366,
16414,
29918,
19290,
20068,
13,
1678,
4974,
9049,
5085,
29918,
8977,
1275,
426,
13,
4706,
376,
11022,
1115,
6796,
3207,
12436,
13,
1678,
500,
13,
13,
1678,
396,
1939,
9049,
5085,
338,
3431,
13,
1678,
5065,
29876,
353,
376,
595,
29901,
7979,
271,
29918,
17854,
800,
29901,
303,
2361,
29901,
1357,
29918,
8899,
29901,
29885,
962,
300,
2200,
29908,
13,
1678,
620,
353,
1737,
29918,
595,
29889,
5510,
1231,
29898,
595,
29897,
13,
13,
1678,
4974,
620,
3366,
595,
29918,
1853,
3108,
1275,
376,
303,
2361,
29908,
13,
1678,
4974,
620,
3366,
8899,
29918,
978,
3108,
1275,
376,
1357,
29918,
8899,
29908,
13,
1678,
4974,
620,
3366,
16414,
29918,
978,
3108,
1275,
376,
29885,
962,
300,
2200,
29908,
13,
1678,
4974,
376,
16414,
29918,
19290,
29908,
451,
297,
620,
13,
13,
13,
1753,
1243,
29918,
20965,
29918,
595,
7295,
13,
1678,
396,
19928,
1369,
411,
376,
595,
29901,
7979,
271,
29918,
17854,
800,
29908,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
12914,
2451,
29897,
408,
321,
29901,
13,
4706,
1737,
29918,
595,
29889,
5510,
1231,
703,
1333,
29918,
29874,
29918,
479,
29918,
595,
1159,
13,
1678,
4974,
376,
1333,
29918,
29874,
29918,
479,
29918,
595,
29908,
297,
321,
29889,
1767,
29889,
1220,
13,
13,
1678,
396,
19928,
505,
697,
310,
278,
14831,
4072,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
12914,
2451,
29897,
408,
321,
29901,
13,
4706,
1737,
29918,
595,
29889,
5510,
1231,
703,
595,
29901,
7979,
271,
29918,
17854,
800,
29901,
5431,
29901,
1646,
29901,
27975,
29901,
2109,
29901,
29890,
1191,
1159,
13,
1678,
4974,
376,
595,
29901,
7979,
271,
29918,
17854,
800,
29901,
5431,
29901,
1646,
29901,
27975,
29901,
2109,
29901,
29890,
1191,
29908,
297,
321,
29889,
1767,
29889,
1220,
13,
13,
1678,
396,
15808,
505,
2086,
1784,
5633,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
12914,
2451,
29897,
408,
321,
29901,
13,
4706,
1737,
29918,
595,
29889,
5510,
1231,
29898,
13,
9651,
376,
595,
29901,
7979,
271,
29918,
17854,
800,
29901,
3084,
800,
29901,
5431,
29901,
1646,
29901,
27975,
29901,
2109,
29901,
29890,
1191,
29901,
833,
29877,
29908,
13,
4706,
1723,
13,
1678,
4974,
376,
595,
29901,
7979,
271,
29918,
17854,
800,
29901,
3084,
800,
29901,
5431,
29901,
1646,
29901,
27975,
29901,
2109,
29901,
29890,
1191,
29901,
833,
29877,
29908,
297,
321,
29889,
1767,
29889,
1220,
13,
2
] |
dist/functional/pipeline.py | evandroforks/CrowdAnki | 0 | 1611378 | """
The pipeline module contains the transformations and actions API of PyFunctional
"""
from __future__ import division, absolute_import
from operator import mul, add
import collections
from functools import reduce, wraps, partial
import json
import csv
import sqlite3
import re
import six
from tabulate import tabulate
from functional.execution import ExecutionEngine
from functional.lineage import Lineage
from functional.util import is_iterable, is_primitive, is_namedtuple, is_tabulatable, identity
from functional.io import WRITE_MODE, universal_write_open
from functional import transformations
from functional.execution import ExecutionStrategies
class Sequence(object):
"""
Sequence is a wrapper around any type of sequence which provides access to common
functional transformations and reductions in a data pipeline style
"""
def __init__(self, sequence, transform=None, engine=None, max_repr_items=None):
# pylint: disable=protected-access
"""
Takes a Sequence, list, tuple. or iterable sequence and wraps it around a Sequence object.
If the sequence is already an instance of Sequence, it will in total be wrapped exactly
once. A TypeError is raised if sequence is none of these.
:param sequence: sequence of items to wrap in a Sequence
:param transform: transformation to apply
:param engine: execution engine
:param max_repr_items: maximum number of items to print with repr
:return: sequence wrapped in a Sequence
"""
self.engine = engine or ExecutionEngine()
if isinstance(sequence, Sequence):
self._max_repr_items = max_repr_items or sequence._max_repr_items
self._base_sequence = sequence._base_sequence
self._lineage = Lineage(prior_lineage=sequence._lineage,
engine=engine)
elif isinstance(sequence, (list, tuple)) or is_iterable(sequence):
self._max_repr_items = max_repr_items
self._base_sequence = sequence
self._lineage = Lineage(engine=engine)
else:
raise TypeError("Given sequence must be an iterable value")
if transform is not None:
self._lineage.apply(transform)
def __iter__(self):
"""
Return iterator of sequence.
:return: iterator of sequence
"""
return self._evaluate()
def __eq__(self, other):
"""
Checks for equality with the sequence's equality operator.
:param other: object to compare to
:return: true if the underlying sequence is equal to other
"""
return self.sequence == other
def __ne__(self, other):
"""
Checks for inequality with the sequence's inequality operator.
:param other: object to compare to
:return: true if the underlying sequence is not equal to other
"""
return self.sequence != other
def __hash__(self):
"""
Return the hash of the sequence.
:return: hash of sequence
"""
raise TypeError("unhashable type: Sequence")
def __repr__(self):
"""
Return repr using sequence's repr function.
:return: sequence's repr
"""
items = self.to_list()
if self._max_repr_items is None or len(items) <= self._max_repr_items:
return repr(items)
else:
return repr(items[:self._max_repr_items])[:-1] + ', ...]'
def __str__(self):
"""
Return string using sequence's string function.
:return: sequence's string
"""
return str(self.to_list())
def __bool__(self):
"""
Returns True if size is not zero.
:return: True if size is not zero
"""
return self.size() != 0
def __nonzero__(self):
"""
Returns True if size is not zero.
:return: True if size is not zero
"""
return self.size() != 0
def __getitem__(self, item):
"""
Gets item at given index.
:param item: key to use for getitem
:return: item at index key
"""
self.cache()
return _wrap(self.sequence[item])
def __reversed__(self):
"""
Return reversed sequence using sequence's reverse function
:return: reversed sequence
"""
return self._transform(transformations.reversed_t())
def __contains__(self, item):
"""
Checks if item is in sequence.
:param item: item to check
:return: True if item is in sequence
"""
return self.sequence.__contains__(item)
def __add__(self, other):
"""
Concatenates sequence with other.
:param other: sequence to concatenate
:return: concatenated sequence with other
"""
if isinstance(other, Sequence):
return Sequence(self.sequence + other.sequence)
else:
return Sequence(self.sequence + other)
def _evaluate(self):
"""
Creates and returns an iterator which applies all the transformations in the lineage
:return: iterator over the transformed sequence
"""
return self._lineage.evaluate(self._base_sequence)
def _transform(self, *transforms):
"""
Copies the given Sequence and appends new transformation
:param transform: transform to apply or list of transforms to apply
:return: transformed sequence
"""
sequence = None
for transform in transforms:
if sequence:
sequence = Sequence(sequence, transform=transform)
else:
sequence = Sequence(self, transform=transform)
return sequence
@property
def sequence(self):
"""
Alias for to_list used internally for brevity
:return: result of to_list() on sequence
"""
return self.to_list()
def cache(self, delete_lineage=False):
"""
Caches the result of the Sequence so far. This means that any functions applied on the
pipeline before cache() are evaluated, and the result is stored in the Sequence. This is
primarily used internally and is no more helpful than to_list() externally. delete_lineage
allows for cache() to be used in internal initialization calls without the caller having
knowledge of the internals via the lineage
:param delete_lineage: If set to True, it will cache then erase the lineage
"""
if len(self._lineage) == 0 or self._lineage[-1] == transformations.CACHE_T:
if not isinstance(self._base_sequence, list):
self._base_sequence = list(self._base_sequence)
self._lineage.apply(transformations.CACHE_T)
else:
self._base_sequence = list(self._evaluate())
self._lineage.apply(transformations.CACHE_T)
if delete_lineage:
self._lineage = Lineage(engine=self.engine)
return self
def head(self):
"""
Returns the first element of the sequence.
>>> seq([1, 2, 3]).head()
1
Raises IndexError when the sequence is empty.
>>> seq([]).head()
Traceback (most recent call last):
...
IndexError: list index out of range
:return: first element of sequence
"""
return _wrap(self.take(1)[0])
def first(self):
"""
Returns the first element of the sequence.
>>> seq([1, 2, 3]).first()
1
Raises IndexError when the sequence is empty.
>>> seq([]).first()
Traceback (most recent call last):
...
IndexError: list index out of range
:return: first element of sequence
"""
return self.head()
def head_option(self):
"""
Returns the first element of the sequence or None, if the sequence is empty.
>>> seq([1, 2, 3]).head_option()
1
>>> seq([]).head_option()
None
:return: first element of sequence or None if sequence is empty
"""
if not self.sequence:
return None
return self.head()
def last(self):
"""
Returns the last element of the sequence.
>>> seq([1, 2, 3]).last()
3
Raises IndexError when the sequence is empty.
>>> seq([]).last()
Traceback (most recent call last):
...
IndexError: list index out of range
:return: last element of sequence
"""
return _wrap(self.sequence[-1])
def last_option(self):
"""
Returns the last element of the sequence or None, if the sequence is empty.
>>> seq([1, 2, 3]).last_option()
3
>>> seq([]).last_option()
None
:return: last element of sequence or None if sequence is empty
"""
if not self.sequence:
return None
return self.last()
def init(self):
"""
Returns the sequence, without its last element.
>>> seq([1, 2, 3]).init()
[1, 2]
:return: sequence without last element
"""
return self._transform(transformations.init_t())
def tail(self):
"""
Returns the sequence, without its first element.
>>> seq([1, 2, 3]).tail()
[2, 3]
:return: sequence without first element
"""
return self._transform(transformations.tail_t())
def inits(self):
"""
Returns consecutive inits of the sequence.
>>> seq([1, 2, 3]).inits()
[[1, 2, 3], [1, 2], [1], []]
:return: consecutive init()s on sequence
"""
return self._transform(transformations.inits_t(_wrap))
def tails(self):
"""
Returns consecutive tails of the sequence.
>>> seq([1, 2, 3]).tails()
[[1, 2, 3], [2, 3], [3], []]
:return: consecutive tail()s of the sequence
"""
return self._transform(transformations.tails_t(_wrap))
def cartesian(self, *iterables, **kwargs):
"""
Returns the cartesian product of the passed iterables with the specified number of
repetitions.
The keyword argument `repeat` is read from kwargs to pass to itertools.cartesian.
>>> seq.range(2).cartesian(range(2))
[(0, 0), (0, 1), (1, 0), (1, 1)]
:param iterables: elements for cartesian product
:param kwargs: the variable `repeat` is read from kwargs
:return: cartesian product
"""
return self._transform(transformations.cartesian_t(iterables, kwargs.get('repeat', 1)))
def drop(self, n):
"""
Drop the first n elements of the sequence.
>>> seq([1, 2, 3, 4, 5]).drop(2)
[3, 4, 5]
:param n: number of elements to drop
:return: sequence without first n elements
"""
if n <= 0:
return self._transform(transformations.drop_t(0))
else:
return self._transform(transformations.drop_t(n))
def drop_right(self, n):
"""
Drops the last n elements of the sequence.
>>> seq([1, 2, 3, 4, 5]).drop_right(2)
[1, 2, 3]
:param n: number of elements to drop
:return: sequence with last n elements dropped
"""
return self._transform(transformations.CACHE_T, transformations.drop_right_t(n))
def drop_while(self, func):
"""
Drops elements in the sequence while func evaluates to True, then returns the rest.
>>> seq([1, 2, 3, 4, 5, 1, 2]).drop_while(lambda x: x < 3)
[3, 4, 5, 1, 2]
:param func: truth returning function
:return: elements including and after func evaluates to False
"""
return self._transform(transformations.drop_while_t(func))
def take(self, n):
"""
Take the first n elements of the sequence.
>>> seq([1, 2, 3, 4]).take(2)
[1, 2]
:param n: number of elements to take
:return: first n elements of sequence
"""
if n <= 0:
return self._transform(transformations.take_t(0))
else:
return self._transform(transformations.take_t(n))
def take_while(self, func):
"""
Take elements in the sequence until func evaluates to False, then return them.
>>> seq([1, 2, 3, 4, 5, 1, 2]).take_while(lambda x: x < 3)
[1, 2]
:param func: truth returning function
:return: elements taken until func evaluates to False
"""
return self._transform(transformations.take_while_t(func))
def union(self, other):
"""
New sequence with unique elements from self and other.
>>> seq([1, 1, 2, 3, 3]).union([1, 4, 5])
[1, 2, 3, 4, 5]
:param other: sequence to union with
:return: union of sequence and other
"""
return self._transform(transformations.union_t(other))
def intersection(self, other):
"""
New sequence with unique elements present in sequence and other.
>>> seq([1, 1, 2, 3]).intersection([2, 3, 4])
[2, 3]
:param other: sequence to perform intersection with
:return: intersection of sequence and other
"""
return self._transform(transformations.intersection_t(other))
def difference(self, other):
"""
New sequence with unique elements present in sequence but not in other.
>>> seq([1, 2, 3]).difference([2, 3, 4])
[1]
:param other: sequence to perform difference with
:return: difference of sequence and other
"""
return self._transform(transformations.difference_t(other))
def symmetric_difference(self, other):
"""
New sequence with elements in either sequence or other, but not both.
>>> seq([1, 2, 3, 3]).symmetric_difference([2, 4, 5])
[1, 3, 4, 5]
:param other: sequence to perform symmetric difference with
:return: symmetric difference of sequence and other
"""
return self._transform(transformations.symmetric_difference_t(other))
def map(self, func):
"""
Maps f onto the elements of the sequence.
>>> seq([1, 2, 3, 4]).map(lambda x: x * -1)
[-1, -2, -3, -4]
:param func: function to map with
:return: sequence with func mapped onto it
"""
return self._transform(transformations.map_t(func))
def select(self, func):
"""
Selects f from the elements of the sequence.
>>> seq([1, 2, 3, 4]).select(lambda x: x * -1)
[-1, -2, -3, -4]
:param func: function to select with
:return: sequence with func mapped onto it
"""
return self._transform(transformations.select_t(func))
def starmap(self, func):
"""
starmaps f onto the sequence as itertools.starmap does.
>>> seq([(2, 3), (-2, 1), (0, 10)]).starmap(lambda x, y: x + y)
[5, -1, 10]
:param func: function to starmap with
:return: sequence with func starmapped onto it
"""
return self._transform(transformations.starmap_t(func))
def smap(self, func):
"""
Alias to Sequence.starmap
starmaps f onto the sequence as itertools.starmap does.
>>> seq([(2, 3), (-2, 1), (0, 10)]).smap(lambda x, y: x + y)
[5, -1, 10]
:param func: function to starmap with
:return: sequence with func starmapped onto it
"""
return self._transform(transformations.starmap_t(func))
def for_each(self, func):
"""
Executes func on each element of the sequence.
>>> l = []
>>> seq([1, 2, 3, 4]).for_each(l.append)
>>> l
[1, 2, 3, 4]
:param func: function to execute
"""
for e in self:
func(e)
def filter(self, func):
"""
Filters sequence to include only elements where func is True.
>>> seq([-1, 1, -2, 2]).filter(lambda x: x > 0)
[1, 2]
:param func: function to filter on
:return: filtered sequence
"""
return self._transform(transformations.filter_t(func))
def filter_not(self, func):
"""
Filters sequence to include only elements where func is False.
>>> seq([-1, 1, -2, 2]).filter_not(lambda x: x > 0)
[-1, -2]
:param func: function to filter_not on
:return: filtered sequence
"""
return self._transform(transformations.filter_not_t(func))
def where(self, func):
"""
Selects elements where func evaluates to True.
>>> seq([-1, 1, -2, 2]).where(lambda x: x > 0)
[1, 2]
:param func: function to filter on
:return: filtered sequence
"""
return self._transform(transformations.where_t(func))
def count(self, func):
"""
Counts the number of elements in the sequence which satisfy the predicate func.
>>> seq([-1, -2, 1, 2]).count(lambda x: x > 0)
2
:param func: predicate to count elements on
:return: count of elements that satisfy predicate
"""
n = 0
for element in self:
if func(element):
n += 1
return n
def len(self):
"""
Return length of sequence using its length function.
>>> seq([1, 2, 3]).len()
3
:return: length of sequence
"""
self.cache()
return len(self._base_sequence)
def size(self):
"""
Return size of sequence using its length function.
:return: size of sequence
"""
return self.len()
def empty(self):
"""
Returns True if the sequence has length zero.
>>> seq([]).empty()
True
>>> seq([1]).empty()
False
:return: True if sequence length is zero
"""
return self.size() == 0
def non_empty(self):
"""
Returns True if the sequence does not have length zero.
>>> seq([]).non_empty()
False
>>> seq([1]).non_empty()
True
:return: True if sequence length is not zero
"""
return self.size() != 0
def any(self):
"""
Returns True if any element in the sequence has truth value True
>>> seq([True, False]).any()
True
>>> seq([False, False]).any()
False
:return: True if any element is True
"""
return any(self)
def all(self):
"""
Returns True if the truth value of all items in the sequence true.
>>> seq([True, True]).all()
True
>>> seq([True, False]).all()
False
:return: True if all items truth value evaluates to True
"""
return all(self)
def exists(self, func):
"""
Returns True if an element in the sequence makes func evaluate to True.
>>> seq([1, 2, 3, 4]).exists(lambda x: x == 2)
True
>>> seq([1, 2, 3, 4]).exists(lambda x: x < 0)
False
:param func: existence check function
:return: True if any element satisfies func
"""
for element in self:
if func(element):
return True
return False
def for_all(self, func):
"""
Returns True if all elements in sequence make func evaluate to True.
>>> seq([1, 2, 3]).for_all(lambda x: x > 0)
True
>>> seq([1, 2, -1]).for_all(lambda x: x > 0)
False
:param func: function to check truth value of all elements with
:return: True if all elements make func evaluate to True
"""
for element in self:
if not func(element):
return False
return True
def max(self):
"""
Returns the largest element in the sequence.
If the sequence has multiple maximal elements, only the first one is returned.
The compared objects must have defined comparison methods.
Raises TypeError when the objects are not comparable.
The sequence can not be empty.
Raises ValueError when the sequence is empty.
>>> seq([2, 4, 5, 1, 3]).max()
5
>>> seq('aa', 'xyz', 'abcd', 'xyy').max()
'xyz'
>>> seq([1, "a"]).max()
Traceback (most recent call last):
...
TypeError: unorderable types: int() < str()
>>> seq([]).max()
Traceback (most recent call last):
...
ValueError: max() arg is an empty sequence
:return: Maximal value of sequence
"""
return _wrap(max(self))
def min(self):
"""
Returns the smallest element in the sequence.
If the sequence has multiple minimal elements, only the first one is returned.
The compared objects must have defined comparison methods.
Raises TypeError when the objects are not comparable.
The sequence can not be empty.
Raises ValueError when the sequence is empty.
>>> seq([2, 4, 5, 1, 3]).min()
1
>>> seq('aa', 'xyz', 'abcd', 'xyy').min()
'aa'
>>> seq([1, "a"]).min()
Traceback (most recent call last):
...
TypeError: unorderable types: int() < str()
>>> seq([]).min()
Traceback (most recent call last):
...
ValueError: min() arg is an empty sequence
:return: Minimal value of sequence
"""
return _wrap(min(self))
def max_by(self, func):
"""
Returns the largest element in the sequence.
Provided function is used to generate key used to compare the elements.
If the sequence has multiple maximal elements, only the first one is returned.
The sequence can not be empty.
Raises ValueError when the sequence is empty.
>>> seq([2, 4, 5, 1, 3]).max_by(lambda num: num % 4)
3
>>> seq('aa', 'xyz', 'abcd', 'xyy').max_by(len)
'abcd'
>>> seq([]).max_by(lambda x: x)
Traceback (most recent call last):
...
ValueError: max() arg is an empty sequence
:param func: function to compute max by
:return: Maximal element by func(element)
"""
return _wrap(max(self, key=func))
def min_by(self, func):
"""
Returns the smallest element in the sequence.
Provided function is used to generate key used to compare the elements.
If the sequence has multiple minimal elements, only the first one is returned.
The sequence can not be empty.
Raises ValueError when the sequence is empty.
>>> seq([2, 4, 5, 1, 3]).min_by(lambda num: num % 6)
5
>>> seq('aa', 'xyz', 'abcd', 'xyy').min_by(len)
'aa'
>>> seq([]).min_by(lambda x: x)
Traceback (most recent call last):
...
ValueError: min() arg is an empty sequence
:param func: function to compute min by
:return: Maximal element by func(element)
"""
return _wrap(min(self, key=func))
def find(self, func):
"""
Finds the first element of the sequence that satisfies func. If no such element exists,
then return None.
>>> seq(["abc", "ab", "bc"]).find(lambda x: len(x) == 2)
'ab'
:param func: function to find with
:return: first element to satisfy func or None
"""
for element in self:
if func(element):
return element
return None
def flatten(self):
"""
Flattens a sequence of sequences to a single sequence of elements.
>>> seq([[1, 2], [3, 4], [5, 6]])
[1, 2, 3, 4, 5, 6]
:return: flattened sequence
"""
return self._transform(transformations.flatten_t())
def flat_map(self, func):
"""
Applies func to each element of the sequence, which themselves should be sequences.
Then appends each element of each sequence to a final result
>>> seq([[1, 2], [3, 4], [5, 6]]).flat_map(lambda x: x)
[1, 2, 3, 4, 5, 6]
>>> seq(["a", "bc", "def"]).flat_map(list)
['a', 'b', 'c', 'd', 'e', 'f']
>>> seq([[1], [2], [3]]).flat_map(lambda x: x * 2)
[1, 1, 2, 2, 3, 3]
:param func: function to apply to each sequence in the sequence
:return: application of func to elements followed by flattening
"""
return self._transform(transformations.flat_map_t(func))
def group_by(self, func):
"""
Group elements into a list of (Key, Value) tuples where func creates the key and maps
to values matching that key.
>>> seq(["abc", "ab", "z", "f", "qw"]).group_by(len)
[(1, ['z', 'f']), (2, ['ab', 'qw']), (3, ['abc'])]
:param func: group by result of this function
:return: grouped sequence
"""
return self._transform(transformations.group_by_t(func))
def group_by_key(self):
"""
Group sequence of (Key, Value) elements by Key.
>>> seq([('a', 1), ('b', 2), ('b', 3), ('b', 4), ('c', 3), ('c', 0)]).group_by_key()
[('a', [1]), ('c', [3, 0]), ('b', [2, 3, 4])]
:return: sequence grouped by key
"""
return self._transform(transformations.group_by_key_t())
def reduce_by_key(self, func):
"""
Reduces a sequence of (Key, Value) using func on each sequence of values.
>>> seq([('a', 1), ('b', 2), ('b', 3), ('b', 4), ('c', 3), ('c', 0)]) \
.reduce_by_key(lambda x, y: x + y)
[('a', 1), ('c', 3), ('b', 9)]
:param func: reduce each list of values using two parameter, associative func
:return: Sequence of tuples where the value is reduced with func
"""
return self._transform(transformations.reduce_by_key_t(func))
def count_by_key(self):
"""
Reduces a sequence of (Key, Value) by counting each key
>>> seq([('a', 1), ('b', 2), ('b', 3), ('b', 4), ('c', 3), ('c', 0)]).count_by_key()
[('a', 1), ('b', 3), ('c', 2)]
:return: Sequence of tuples where value is the count of each key
"""
return self._transform(transformations.count_by_key_t())
def count_by_value(self):
"""
Reduces a sequence of items by counting each unique item
>>> seq(['a', 'a', 'a', 'b', 'b', 'c', 'd']).count_by_value()
[('a', 3), ('b', 2), ('c', 1), ('d', 1)]
:return: Sequence of tuples where value is the count of each key
"""
return self._transform(transformations.count_by_value_t())
def reduce(self, func, *initial):
"""
Reduce sequence of elements using func. API mirrors functools.reduce
>>> seq([1, 2, 3]).reduce(lambda x, y: x + y)
6
:param func: two parameter, associative reduce function
:param initial: single optional argument acting as initial value
:return: reduced value using func
"""
if len(initial) == 0:
return _wrap(reduce(func, self))
elif len(initial) == 1:
return _wrap(reduce(func, self, initial[0]))
else:
raise ValueError('reduce takes exactly one optional parameter for initial value')
def accumulate(self, func=add):
"""
Accumulate sequence of elements using func. API mirrors itertools.accumulate
>>> seq([1, 2, 3]).accumulate(lambda x, y: x + y)
[1, 3, 6]
>>> seq(['a', 'b', 'c']).accumulate()
['a', 'ab', 'abc']
:param func: two parameter, associative accumulate function
:return: accumulated values using func in sequence
"""
return self._transform(transformations.accumulate_t(func))
def make_string(self, separator):
"""
Concatenate the elements of the sequence into a string separated by separator.
>>> seq([1, 2, 3]).make_string("@")
'1@2@3'
:param separator: string separating elements in string
:return: concatenated string separated by separator
"""
return separator.join(str(e) for e in self)
def product(self, projection=None):
"""
Takes product of elements in sequence.
>>> seq([1, 2, 3, 4]).product()
24
>>> seq([]).product()
1
>>> seq([(1, 2), (1, 3), (1, 4)]).product(lambda x: x[0])
1
:param projection: function to project on the sequence before taking the product
:return: product of elements in sequence
"""
if self.empty():
if projection:
return projection(1)
else:
return 1
if self.size() == 1:
if projection:
return projection(self.first())
else:
return self.first()
if projection:
return self.map(projection).reduce(mul)
else:
return self.reduce(mul)
def sum(self, projection=None):
"""
Takes sum of elements in sequence.
>>> seq([1, 2, 3, 4]).sum()
10
>>> seq([(1, 2), (1, 3), (1, 4)]).sum(lambda x: x[0])
3
:param projection: function to project on the sequence before taking the sum
:return: sum of elements in sequence
"""
if projection:
return sum(self.map(projection))
else:
return sum(self)
def average(self, projection=None):
"""
Takes the average of elements in the sequence
>>> seq([1, 2]).average()
1.5
>>> seq([('a', 1), ('b', 2)]).average(lambda x: x[1])
:param projection: function to project on the sequence before taking the average
:return: average of elements in the sequence
"""
length = self.size()
if projection:
return sum(self.map(projection)) / length
else:
return sum(self) / length
def aggregate(self, *args):
"""
Aggregates the sequence by specified arguments. Its behavior varies depending on if one,
two, or three arguments are passed. Assuming the type of the sequence is A:
One Argument: argument specifies a function of the type f(current: B, next: A => result: B.
current represents results computed so far, and next is the next element to aggregate into
current in order to return result.
Two Argument: the first argument is the seed value for the aggregation. The second argument
is the same as for the one argument case.
Three Argument: the first two arguments are the same as for one and two argument calls. The
additional third parameter is a function applied to the result of the aggregation before
returning the value.
:param args: options for how to execute the aggregation
:return: aggregated value
"""
seed = None
result_lambda = identity
if len(args) == 1:
func = args[0]
elif len(args) == 2:
seed = args[0]
func = args[1]
elif len(args) == 3:
seed = args[0]
func = args[1]
result_lambda = args[2]
else:
raise ValueError('aggregate takes 1-3 arguments, {0} were given'.format(len(args)))
if len(args) == 1:
return result_lambda(self.drop(1).fold_left(self.first(), func))
else:
return result_lambda(self.fold_left(seed, func))
def fold_left(self, zero_value, func):
"""
Assuming that the sequence elements are of type A, folds from left to right starting with
the seed value given by zero_value (of type A) using a function of type
func(current: B, next: A) => B. current represents the folded value so far and next is the
next element from the sequence to fold into current.
>>> seq('a', 'b', 'c').fold_left(['start'], lambda current, next: current + [next]))
['start', 'a', 'b', 'c']
:param zero_value: zero value to reduce into
:param func: Two parameter function as described by function docs
:return: value from folding values with func into zero_value from left to right.
"""
result = zero_value
for element in self:
result = func(result, element)
return _wrap(result)
def fold_right(self, zero_value, func):
"""
Assuming that the sequence elements are of type A, folds from right to left starting with
the seed value given by zero_value (of type A) using a function of type
func(next: A, current: B) => B. current represents the folded value so far and next is the
next element from the sequence to fold into current.
>>> seq('a', 'b', 'c').fold_left(['start'], lambda next, current: current + [next])
['start', 'c', 'b', a']
:param zero_value: zero value to reduce into
:param func: Two parameter function as described by function docs
:return: value from folding values with func into zero_value from right to left
"""
result = zero_value
for element in self.reverse():
result = func(element, result)
return _wrap(result)
def zip(self, sequence):
"""
Zips the stored sequence with the given sequence.
>>> seq([1, 2, 3]).zip([4, 5, 6])
[(1, 4), (2, 5), (3, 6)]
:param sequence: second sequence to zip
:return: stored sequence zipped with given sequence
"""
return self._transform(transformations.zip_t(sequence))
def zip_with_index(self, start=0):
"""
Zips the sequence to its index, with the index being the second element of each tuple.
>>> seq(['a', 'b', 'c']).zip_with_index()
[('a', 0), ('b', 1), ('c', 2)]
:return: sequence zipped to its index
"""
return self._transform(transformations.zip_with_index_t(start))
def enumerate(self, start=0):
"""
Uses python enumerate to to zip the sequence with indexes starting at start.
>>> seq(['a', 'b', 'c']).enumerate(start=1)
[(1, 'a'), (2, 'b'), (3, 'c')]
:param start: Beginning of zip
:return: enumerated sequence starting at start
"""
return self._transform(transformations.enumerate_t(start))
def inner_join(self, other):
"""
Sequence and other must be composed of (Key, Value) pairs.
If self.sequence contains (K, V) pairs and other contains (K, W) pairs, the return result
is a sequence of (K, (V, W)) pairs. Will return only elements
where the key exists in both sequences.
>>> seq([('a', 1), ('b', 2), ('c', 3)]).inner_join([('a', 2), ('c', 5)])
[('a', (1, 2)), ('c', (3, 5))]
:param other: sequence to join with
:return: joined sequence of (K, (V, W)) pairs
"""
return self.join(other, 'inner')
def join(self, other, join_type="inner"):
"""
Sequence and other must be composed of (Key, Value) pairs. If self.sequence contains (K, V)
pairs and other contains (K, W) pairs, the return result is a sequence of (K, (V, W)) pairs.
If join_type is "left", V values will always be present, W values may be present or None.
If join_type is "right", W values will always be present, W values may be present or None.
If join_type is "outer", V or W may be present or None,
but never at the same time.
>>> seq([('a', 1), ('b', 2), ('c', 3)]).join([('a', 2), ('c', 5)], "inner")
[('a', (1, 2)), ('c', (3, 5))]
>>> seq([('a', 1), ('b', 2), ('c', 3)]).join([('a', 2), ('c', 5)])
[('a', (1, 2)), ('c', (3, 5))]
>>> seq([('a', 1), ('b', 2)]).join([('a', 3), ('c', 4)], "left")
[('a', (1, 3)), ('b', (2, None)]
>>> seq([('a', 1), ('b', 2)]).join([('a', 3), ('c', 4)], "right")
[('a', (1, 3)), ('c', (None, 4)]
>>> seq([('a', 1), ('b', 2)]).join([('a', 3), ('c', 4)], "outer")
[('a', (1, 3)), ('b', (2, None)), ('c', (None, 4))]
:param other: sequence to join with
:param join_type: specifies join_type, may be "left", "right", or "outer"
:return: side joined sequence of (K, (V, W)) pairs
"""
return self._transform(transformations.join_t(other, join_type))
def left_join(self, other):
"""
Sequence and other must be composed of (Key, Value) pairs. If self.sequence contains (K, V)
pairs and other contains (K, W) pairs, the return result is a sequence of (K, (V, W)) pairs.
V values will always be present, W values may be present or None.
>>> seq([('a', 1), ('b', 2)]).join([('a', 3), ('c', 4)])
[('a', (1, 3)), ('b', (2, None)]
:param other: sequence to join with
:return: left joined sequence of (K, (V, W)) pairs
"""
return self.join(other, "left")
def right_join(self, other):
"""
Sequence and other must be composed of (Key, Value) pairs. If self.sequence contains (K, V)
pairs and other contains (K, W) pairs, the return result is a sequence of (K, (V, W)) pairs.
W values will always bepresent, V values may be present or None.
>>> seq([('a', 1), ('b', 2)]).join([('a', 3), ('c', 4)])
[('a', (1, 3)), ('b', (2, None)]
:param other: sequence to join with
:return: right joined sequence of (K, (V, W)) pairs
"""
return self.join(other, "right")
def outer_join(self, other):
"""
Sequence and other must be composed of (Key, Value) pairs. If self.sequence contains (K, V)
pairs and other contains (K, W) pairs, the return result is a sequence of (K, (V, W)) pairs.
One of V or W will always be not None, but the other may be None
>>> seq([('a', 1), ('b', 2)]).outer_join([('a', 3), ('c', 4)], "outer")
[('a', (1, 3)), ('b', (2, None)), ('c', (None, 4))]
:param other: sequence to join with
:return: outer joined sequence of (K, (V, W)) pairs
"""
return self.join(other, "outer")
def partition(self, func):
"""
Partition the sequence based on satisfying the predicate func.
>>> seq([-1, 1, -2, 2]).partition(lambda x: x < 0)
([-1, -2], [1, 2])
:param func: predicate to partition on
:return: tuple of partitioned sequences
"""
return self._transform(transformations.partition_t(_wrap, func))
def grouped(self, size):
"""
Partitions the elements into groups of length size.
>>> seq([1, 2, 3, 4, 5, 6, 7, 8]).grouped(2)
[[1, 2], [3, 4], [5, 6], [7, 8]]
>>> seq([1, 2, 3, 4, 5, 6, 7, 8]).grouped(3)
[[1, 2, 3], [4, 5, 6], [7, 8]]
The last partition has at least one element but may have less than size elements.
:param size: size of the partitions
:return: sequence partitioned into groups of length size
"""
return self._transform(transformations.grouped_t(_wrap, size))
def sliding(self, size, step=1):
"""
Groups elements in fixed size blocks by passing a sliding window over them.
The last window has at least one element but may have less than size elements
:param size: size of sliding window
:param step: step size between windows
:return: sequence of sliding windows
"""
return self._transform(transformations.sliding_t(_wrap, size, step))
def sorted(self, key=None, reverse=False):
"""
Uses python sort and its passed arguments to sort the input.
>>> seq([2, 1, 4, 3]).sorted()
[1, 2, 3, 4]
:param key: sort using key function
:param reverse: return list reversed or not
:return: sorted sequence
"""
return self._transform(transformations.sorted_t(key=key, reverse=reverse))
def order_by(self, func):
"""
Orders the input according to func
>>> seq([(2, 'a'), (1, 'b'), (4, 'c'), (3, 'd')]).order_by(lambda x: x[0])
[1, 2, 3, 4]
:param func: order by funciton
:return: ordered sequence
"""
return self._transform(transformations.order_by_t(func))
def reverse(self):
"""
Returns the reversed sequence.
>>> seq([1, 2, 3]).reverse()
[3, 2, 1]
:return: reversed sequence
"""
return reversed(self)
def distinct(self):
"""
Returns sequence of distinct elements. Elements must be hashable.
>>> seq([1, 1, 2, 3, 3, 3, 4]).distinct()
[1, 2, 3, 4]
:return: sequence of distinct elements
"""
return self._transform(transformations.distinct_t())
def distinct_by(self, func):
"""
Returns sequence of elements who are distinct by the passed function. The return
value of func must be hashable. When two elements are distinct by func, the first is taken.
:param func: function to use for determining distinctness
:return: elements distinct by func
"""
return self._transform(transformations.distinct_by_t(func))
def slice(self, start, until):
"""
Takes a slice of the sequence starting at start and until but not including until.
>>> seq([1, 2, 3, 4]).slice(1, 2)
[2]
>>> seq([1, 2, 3, 4]).slice(1, 3)
[2, 3]
:param start: starting index
:param until: ending index
:return: slice including start until but not including until
"""
return self._transform(transformations.slice_t(start, until))
def to_list(self, n=None):
"""
Converts sequence to list of elements.
>>> type(seq([]).to_list())
list
>>> type(seq([]))
functional.pipeline.Sequence
>>> seq([1, 2, 3]).to_list()
[1, 2, 3]
:param n: Take n elements of sequence if not None
:return: list of elements in sequence
"""
if n is None:
self.cache()
return self._base_sequence
else:
return self.cache().take(n).list()
def list(self, n=None):
"""
Converts sequence to list of elements.
>>> type(seq([]).list())
list
>>> type(seq([]))
functional.pipeline.Sequence
>>> seq([1, 2, 3]).list()
[1, 2, 3]
:param n: Take n elements of sequenc eif not None
:return: list of elements in sequence
"""
return self.to_list(n=n)
def to_set(self):
"""
Converts sequence to a set of elements.
>>> type(seq([])).to_set()
set
>>> type(seq([]))
functional.pipeline.Sequence
>>> seq([1, 1, 2, 2]).to_set()
{1, 2}
:return:set of elements in sequence
"""
return set(self.sequence)
def set(self):
"""
Converts sequence to a set of elements.
>>> type(seq([])).to_set()
set
>>> type(seq([]))
functional.pipeline.Sequence
>>> seq([1, 1, 2, 2]).set()
{1, 2}
:return:set of elements in sequence
"""
return self.to_set()
def to_dict(self, default=None):
"""
Converts sequence of (Key, Value) pairs to a dictionary.
>>> type(seq([('a', 1)]).to_dict())
dict
>>> seq([('a', 1), ('b', 2)]).to_dict()
{'a': 1, 'b': 2}
:param default: Can be a callable zero argument function. When not None, the returned
dictionary is a collections.defaultdict with default as value for missing keys. If the
value is not callable, then a zero argument lambda function is created returning the
value and used for collections.defaultdict
:return: dictionary from sequence of (Key, Value) elements
"""
dictionary = {}
for e in self.sequence:
dictionary[e[0]] = e[1]
if default is None:
return dictionary
else:
if hasattr(default, '__call__'):
return collections.defaultdict(default, dictionary)
else:
return collections.defaultdict(lambda: default, dictionary)
def dict(self, default=None):
"""
Converts sequence of (Key, Value) pairs to a dictionary.
>>> type(seq([('a', 1)]).dict())
dict
>>> seq([('a', 1), ('b', 2)]).dict()
{'a': 1, 'b': 2}
:param default: Can be a callable zero argument function. When not None, the returned
dictionary is a collections.defaultdict with default as value for missing keys. If the
value is not callable, then a zero argument lambda function is created returning the
value and used for collections.defaultdict
:return: dictionary from sequence of (Key, Value) elements
"""
return self.to_dict(default=default)
# pylint: disable=too-many-locals
def to_file(self, path, delimiter=None, mode='wt', buffering=-1, encoding=None, errors=None,
newline=None, compresslevel=9, format=None, check=-1, preset=None, filters=None,
compression=None):
"""
Saves the sequence to a file by executing str(self) which becomes str(self.to_list()). If
delimiter is defined will instead execute self.make_string(delimiter)
:param path: path to write file
:param delimiter: if defined, will call make_string(delimiter) and save that to file.
:param mode: file open mode
:param buffering: passed to builtins.open
:param encoding: passed to builtins.open
:param errors: passed to builtins.open
:param newline: passed to builtins.open
:param compression: compression format
:param compresslevel: passed to gzip.open
:param format: passed to lzma.open
:param check: passed to lzma.open
:param preset: passed to lzma.open
:param filters: passed to lzma.open
"""
with universal_write_open(path, mode=mode, buffering=buffering, encoding=encoding,
errors=errors, newline=newline, compression=compression,
compresslevel=compresslevel, format=format, check=check,
preset=preset, filters=filters) as output:
if delimiter:
output.write(six.u(self.make_string(delimiter)))
else:
output.write(six.u(str(self)))
def to_jsonl(self, path, mode='wb', compression=None):
"""
Saves the sequence to a jsonl file. Each element is mapped using json.dumps then written
with a newline separating each element.
:param path: path to write file
:param mode: mode to write in, defaults to 'w' to overwrite contents
:param compression: compression format
"""
with universal_write_open(path, mode=mode, compression=compression) as output:
output.write((self.map(json.dumps).make_string('\n') + '\n').encode('utf-8'))
def to_json(self, path, root_array=True, mode=WRITE_MODE, compression=None):
"""
Saves the sequence to a json file. If root_array is True, then the sequence will be written
to json with an array at the root. If it is False, then the sequence will be converted from
a sequence of (Key, Value) pairs to a dictionary so that the json root is a dictionary.
:param path: path to write file
:param root_array: write json root as an array or dictionary
:param mode: file open mode
"""
with universal_write_open(path, mode=mode, compression=compression) as output:
if root_array:
json.dump(self.to_list(), output)
else:
json.dump(self.to_dict(), output)
def to_csv(self, path, mode=WRITE_MODE, dialect='excel', compression=None,
newline='', **fmtparams):
"""
Saves the sequence to a csv file. Each element should be an iterable which will be expanded
to the elements of each row.
:param path: path to write file
:param mode: file open mode
:param dialect: passed to csv.writer
:param fmtparams: passed to csv.writer
"""
if 'b' in mode:
newline = None
with universal_write_open(path, mode=mode, compression=compression,
newline=newline) as output:
csv_writer = csv.writer(output, dialect=dialect, **fmtparams)
for row in self:
csv_writer.writerow([six.u(str(element)) for element in row])
def _to_sqlite3_by_query(self, conn, sql):
"""
Saves the sequence to sqlite3 database by supplied query.
Each element should be an iterable which will be expanded
to the elements of each row. Target table must be created in advance.
:param conn: path or sqlite connection, cursor
:param sql: SQL query string
"""
conn.executemany(sql, self)
def _to_sqlite3_by_table(self, conn, table_name):
"""
Saves the sequence to the specified table of sqlite3 database.
Each element can be a dictionary, namedtuple, tuple or list.
Target table must be created in advance.
:param conn: path or sqlite connection, cursor
:param table_name: table name string
"""
def _insert_item(item):
if isinstance(item, dict):
cols = ', '.join(item.keys())
placeholders = ', '.join('?' * len(item))
sql = 'INSERT INTO {} ({}) VALUES ({})'.format(table_name, cols, placeholders)
conn.execute(sql, tuple(item.values()))
elif is_namedtuple(item):
cols = ', '.join(item._fields)
placeholders = ', '.join('?' * len(item))
sql = 'INSERT INTO {} ({}) VALUES ({})'.format(table_name, cols, placeholders)
conn.execute(sql, item)
elif isinstance(item, (list, tuple)):
placeholders = ', '.join('?' * len(item))
sql = 'INSERT INTO {} VALUES ({})'.format(table_name, placeholders)
conn.execute(sql, item)
else:
raise TypeError('item must be one of dict, namedtuple, tuple or list got {}'
.format(type(item)))
self.for_each(_insert_item)
def to_sqlite3(self, conn, target, *args, **kwargs):
"""
Saves the sequence to sqlite3 database.
Target table must be created in advance.
The table schema is inferred from the elements in the sequence
if only target table name is supplied.
>>> seq([(1, 'Tom'), (2, 'Jack')])\
.to_sqlite3('users.db', 'INSERT INTO user (id, name) VALUES (?, ?)')
>>> seq([{'id': 1, 'name': 'Tom'}, {'id': 2, 'name': 'Jack'}]).to_sqlite3(conn, 'user')
:param conn: path or sqlite connection, cursor
:param target: SQL query string or table name
:param args: passed to sqlite3.connect
:param kwargs: passed to sqlite3.connect
"""
# pylint: disable=no-member
insert_regex = re.compile(r'(insert|update)\s+into', flags=re.IGNORECASE)
if insert_regex.match(target):
insert_f = self._to_sqlite3_by_query
else:
insert_f = self._to_sqlite3_by_table
if isinstance(conn, (sqlite3.Connection, sqlite3.Cursor)):
insert_f(conn, target)
conn.commit()
elif isinstance(conn, str):
with sqlite3.connect(conn, *args, **kwargs) as input_conn:
insert_f(input_conn, target)
input_conn.commit()
else:
raise ValueError('conn must be a must be a file path or sqlite3 Connection/Cursor')
def to_pandas(self, columns=None):
# pylint: disable=import-error
"""
Converts sequence to a pandas DataFrame using pandas.DataFrame.from_records
:param columns: columns for pandas to use
:return: DataFrame of sequence
"""
import pandas
return pandas.DataFrame.from_records(self.to_list(), columns=columns)
def show(self, n=10, headers=(), tablefmt="simple", floatfmt="g", numalign="decimal",
stralign="left", missingval=""):
"""
Pretty print first n rows of sequence as a table. See
https://bitbucket.org/astanin/python-tabulate for details on tabulate parameters
:param n: Number of rows to show
:param headers: Passed to tabulate
:param tablefmt: Passed to tabulate
:param floatfmt: Passed to tabulate
:param numalign: Passed to tabulate
:param stralign: Passed to tabulate
:param missingval: Passed to tabulate
"""
formatted_seq = self.tabulate(n=n, headers=headers, tablefmt=tablefmt,
floatfmt=floatfmt, numalign=numalign, stralign=stralign,
missingval=missingval)
print(formatted_seq)
def _repr_html_(self):
"""
Allows IPython render HTML tables
:return: First 10 rows of data as an HTML table
"""
return self.tabulate(10, tablefmt='html')
def tabulate(self, n=None, headers=(), tablefmt="simple", floatfmt="g", numalign="decimal",
stralign="left", missingval=""):
"""
Return pretty string table of first n rows of sequence or everything if n is None. See
https://bitbucket.org/astanin/python-tabulate for details on tabulate parameters
:param n: Number of rows to show, if set to None return all rows
:param headers: Passed to tabulate
:param tablefmt: Passed to tabulate
:param floatfmt: Passed to tabulate
:param numalign: Passed to tabulate
:param stralign: Passed to tabulate
:param missingval: Passed to tabulate
"""
self.cache()
length = self.len()
if length == 0 or not is_tabulatable(self[0]):
return None
if n is None or n >= length:
rows = self.list()
message = ''
else:
rows = self.take(n).list()
if tablefmt == 'simple':
message = '\nShowing {} of {} rows'.format(n, length)
elif tablefmt == 'html':
message = '<p>Showing {} of {} rows'.format(n, length)
else:
message = ''
if len(headers) == 0 and is_namedtuple(rows[0]):
headers = rows[0]._fields
return tabulate(rows, headers=headers, tablefmt=tablefmt, floatfmt=floatfmt,
numalign=numalign, stralign=stralign, missingval=missingval) + message
def _wrap(value):
"""
Wraps the passed value in a Sequence if it is not a primitive. If it is a string
argument it is expanded to a list of characters.
>>> _wrap(1)
1
>>> _wrap("abc")
['a', 'b', 'c']
>>> type(_wrap([1, 2]))
functional.pipeline.Sequence
:param value: value to wrap
:return: wrapped or not wrapped value
"""
if is_primitive(value):
return value
if isinstance(value, (dict, set)) or is_namedtuple(value):
return value
elif isinstance(value, collections.Iterable):
try:
if type(value).__name__ == 'DataFrame':
import pandas
if isinstance(value, pandas.DataFrame):
return Sequence(value.values)
except ImportError: # pragma: no cover
pass
return Sequence(value)
else:
return value
def extend(func=None, aslist=False, final=False, name=None, parallel=False):
"""
Function decorator for adding new methods to the Sequence class.
>>> @extend()
def zip2(it):
return [(i,i) for i in it]
>>> seq.range(3).zip2()
[(0, 0), (1, 1), (2, 2)]
>>> @extend(aslist=True)
def zip2(it):
return zip(it,it)
>>> seq.range(3).zip2()
[(0, 0), (1, 1), (2, 2)]
>>> @extend(final=True)
def make_set(it):
return set(it)
>>> r = seq([0,1,1]).make_set()
>>> r
{0, 1}
>>> type(r)
<class 'set'>
:param func: function to decorate
:param aslist: if True convert input sequence to list (default False)
:param final: If True decorated function does not return a sequence. Useful
for creating functions such as to_list.
:param name: name of the function (default function definition name)
:param parallel: if true the function is executed in parallel execution strategy (default False)
"""
if func is None:
return partial(extend, aslist=aslist, final=final, name=name, parallel=parallel)
@wraps(func)
def wrapper(self, *args, **kwargs):
# pylint: disable=protected-access
# do not create a new Sequence - just apply a function
if final:
return func(self.sequence, *args, **kwargs)
if aslist:
func_ = lambda seq: func(list(seq), *args, **kwargs)
else:
func_ = lambda seq: func(seq, *args, **kwargs)
transform = transformations.Transformation(
'extended[{}]'.format(name or func.__name__),
func_,
{ExecutionStrategies.PARALLEL} if parallel else None
)
return self._transform(transform)
# dynamically add a new method
setattr(Sequence, func.__name__, wrapper)
return wrapper
| [
1,
9995,
13,
1576,
16439,
3883,
3743,
278,
29304,
322,
8820,
3450,
310,
10772,
6678,
284,
13,
15945,
29908,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
29892,
8380,
29918,
5215,
13,
13,
3166,
5455,
1053,
15065,
29892,
788,
13,
5215,
16250,
13,
3166,
2090,
312,
8789,
1053,
10032,
29892,
11463,
567,
29892,
7687,
13,
13,
5215,
4390,
13,
5215,
11799,
13,
5215,
21120,
29941,
13,
5215,
337,
13,
13,
5215,
4832,
13,
3166,
4434,
5987,
1053,
4434,
5987,
13,
13,
3166,
13303,
29889,
22256,
1053,
11080,
918,
12412,
13,
3166,
13303,
29889,
1220,
482,
1053,
7407,
482,
13,
3166,
13303,
29889,
4422,
1053,
338,
29918,
1524,
519,
29892,
338,
29918,
9469,
3321,
29892,
338,
29918,
17514,
23583,
29892,
338,
29918,
3891,
352,
17219,
29892,
10110,
13,
3166,
13303,
29889,
601,
1053,
399,
29934,
9094,
29918,
20387,
29892,
15968,
29918,
3539,
29918,
3150,
13,
3166,
13303,
1053,
29304,
13,
3166,
13303,
29889,
22256,
1053,
11080,
918,
5015,
1845,
583,
13,
13,
1990,
922,
3910,
29898,
3318,
1125,
13,
1678,
9995,
13,
1678,
922,
3910,
338,
263,
14476,
2820,
738,
1134,
310,
5665,
607,
8128,
2130,
304,
3619,
13,
1678,
13303,
29304,
322,
3724,
1953,
297,
263,
848,
16439,
3114,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
5665,
29892,
4327,
29922,
8516,
29892,
6012,
29922,
8516,
29892,
4236,
29918,
276,
558,
29918,
7076,
29922,
8516,
1125,
13,
4706,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
4706,
9995,
13,
4706,
323,
6926,
263,
922,
3910,
29892,
1051,
29892,
18761,
29889,
470,
4256,
519,
5665,
322,
11463,
567,
372,
2820,
263,
922,
3910,
1203,
29889,
13,
4706,
960,
278,
5665,
338,
2307,
385,
2777,
310,
922,
3910,
29892,
372,
674,
297,
3001,
367,
21021,
3721,
13,
4706,
2748,
29889,
319,
20948,
338,
10425,
565,
5665,
338,
5642,
310,
1438,
29889,
13,
13,
4706,
584,
3207,
5665,
29901,
5665,
310,
4452,
304,
12244,
297,
263,
922,
3910,
13,
4706,
584,
3207,
4327,
29901,
13852,
304,
3394,
13,
4706,
584,
3207,
6012,
29901,
8225,
6012,
13,
4706,
584,
3207,
4236,
29918,
276,
558,
29918,
7076,
29901,
7472,
1353,
310,
4452,
304,
1596,
411,
2062,
13,
4706,
584,
2457,
29901,
5665,
21021,
297,
263,
922,
3910,
13,
4706,
9995,
13,
4706,
1583,
29889,
10599,
353,
6012,
470,
11080,
918,
12412,
580,
13,
4706,
565,
338,
8758,
29898,
16506,
29892,
922,
3910,
1125,
13,
9651,
1583,
3032,
3317,
29918,
276,
558,
29918,
7076,
353,
4236,
29918,
276,
558,
29918,
7076,
470,
5665,
3032,
3317,
29918,
276,
558,
29918,
7076,
13,
9651,
1583,
3032,
3188,
29918,
16506,
353,
5665,
3032,
3188,
29918,
16506,
13,
9651,
1583,
3032,
1220,
482,
353,
7407,
482,
29898,
29886,
13479,
29918,
1220,
482,
29922,
16506,
3032,
1220,
482,
29892,
13,
462,
462,
1678,
6012,
29922,
10599,
29897,
13,
4706,
25342,
338,
8758,
29898,
16506,
29892,
313,
1761,
29892,
18761,
876,
470,
338,
29918,
1524,
519,
29898,
16506,
1125,
13,
9651,
1583,
3032,
3317,
29918,
276,
558,
29918,
7076,
353,
4236,
29918,
276,
558,
29918,
7076,
13,
9651,
1583,
3032,
3188,
29918,
16506,
353,
5665,
13,
9651,
1583,
3032,
1220,
482,
353,
7407,
482,
29898,
10599,
29922,
10599,
29897,
13,
4706,
1683,
29901,
13,
9651,
12020,
20948,
703,
29954,
5428,
5665,
1818,
367,
385,
4256,
519,
995,
1159,
13,
4706,
565,
4327,
338,
451,
6213,
29901,
13,
9651,
1583,
3032,
1220,
482,
29889,
7302,
29898,
9067,
29897,
13,
13,
1678,
822,
4770,
1524,
12035,
1311,
1125,
13,
4706,
9995,
13,
4706,
7106,
20380,
310,
5665,
29889,
13,
13,
4706,
584,
2457,
29901,
20380,
310,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
24219,
403,
580,
13,
13,
1678,
822,
4770,
1837,
12035,
1311,
29892,
916,
1125,
13,
4706,
9995,
13,
4706,
5399,
29879,
363,
17193,
411,
278,
5665,
29915,
29879,
17193,
5455,
29889,
13,
13,
4706,
584,
3207,
916,
29901,
1203,
304,
7252,
304,
13,
4706,
584,
2457,
29901,
1565,
565,
278,
14407,
5665,
338,
5186,
304,
916,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
16506,
1275,
916,
13,
13,
1678,
822,
4770,
484,
12035,
1311,
29892,
916,
1125,
13,
4706,
9995,
13,
4706,
5399,
29879,
363,
14585,
411,
278,
5665,
29915,
29879,
14585,
5455,
29889,
13,
13,
4706,
584,
3207,
916,
29901,
1203,
304,
7252,
304,
13,
4706,
584,
2457,
29901,
1565,
565,
278,
14407,
5665,
338,
451,
5186,
304,
916,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
16506,
2804,
916,
13,
13,
1678,
822,
4770,
8568,
12035,
1311,
1125,
13,
4706,
9995,
13,
4706,
7106,
278,
6608,
310,
278,
5665,
29889,
13,
13,
4706,
584,
2457,
29901,
6608,
310,
5665,
13,
4706,
9995,
13,
4706,
12020,
20948,
703,
348,
8568,
519,
1134,
29901,
922,
3910,
1159,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
9995,
13,
4706,
7106,
2062,
773,
5665,
29915,
29879,
2062,
740,
29889,
13,
13,
4706,
584,
2457,
29901,
5665,
29915,
29879,
2062,
13,
4706,
9995,
13,
4706,
4452,
353,
1583,
29889,
517,
29918,
1761,
580,
13,
4706,
565,
1583,
3032,
3317,
29918,
276,
558,
29918,
7076,
338,
6213,
470,
7431,
29898,
7076,
29897,
5277,
1583,
3032,
3317,
29918,
276,
558,
29918,
7076,
29901,
13,
9651,
736,
2062,
29898,
7076,
29897,
13,
4706,
1683,
29901,
13,
9651,
736,
2062,
29898,
7076,
7503,
1311,
3032,
3317,
29918,
276,
558,
29918,
7076,
2314,
7503,
29899,
29896,
29962,
718,
13420,
2023,
29962,
29915,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
9995,
13,
4706,
7106,
1347,
773,
5665,
29915,
29879,
1347,
740,
29889,
13,
13,
4706,
584,
2457,
29901,
5665,
29915,
29879,
1347,
13,
4706,
9995,
13,
4706,
736,
851,
29898,
1311,
29889,
517,
29918,
1761,
3101,
13,
13,
1678,
822,
4770,
11227,
12035,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
5852,
565,
2159,
338,
451,
5225,
29889,
13,
13,
4706,
584,
2457,
29901,
5852,
565,
2159,
338,
451,
5225,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
2311,
580,
2804,
29871,
29900,
13,
13,
1678,
822,
4770,
5464,
9171,
12035,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
5852,
565,
2159,
338,
451,
5225,
29889,
13,
13,
4706,
584,
2457,
29901,
5852,
565,
2159,
338,
451,
5225,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
2311,
580,
2804,
29871,
29900,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
2944,
1125,
13,
4706,
9995,
13,
4706,
402,
1691,
2944,
472,
2183,
2380,
29889,
13,
13,
4706,
584,
3207,
2944,
29901,
1820,
304,
671,
363,
679,
667,
13,
4706,
584,
2457,
29901,
2944,
472,
2380,
1820,
13,
4706,
9995,
13,
4706,
1583,
29889,
8173,
580,
13,
4706,
736,
903,
6312,
29898,
1311,
29889,
16506,
29961,
667,
2314,
13,
13,
1678,
822,
4770,
276,
874,
287,
12035,
1311,
1125,
13,
4706,
9995,
13,
4706,
7106,
18764,
287,
5665,
773,
5665,
29915,
29879,
11837,
740,
13,
13,
4706,
584,
2457,
29901,
18764,
287,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
276,
874,
287,
29918,
29873,
3101,
13,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
2944,
1125,
13,
4706,
9995,
13,
4706,
5399,
29879,
565,
2944,
338,
297,
5665,
29889,
13,
13,
4706,
584,
3207,
2944,
29901,
2944,
304,
1423,
13,
4706,
584,
2457,
29901,
5852,
565,
2944,
338,
297,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
16506,
17255,
11516,
12035,
667,
29897,
13,
13,
1678,
822,
4770,
1202,
12035,
1311,
29892,
916,
1125,
13,
4706,
9995,
13,
4706,
23924,
2579,
1078,
5665,
411,
916,
29889,
13,
13,
4706,
584,
3207,
916,
29901,
5665,
304,
16125,
403,
13,
4706,
584,
2457,
29901,
16125,
630,
5665,
411,
916,
13,
4706,
9995,
13,
4706,
565,
338,
8758,
29898,
1228,
29892,
922,
3910,
1125,
13,
9651,
736,
922,
3910,
29898,
1311,
29889,
16506,
718,
916,
29889,
16506,
29897,
13,
4706,
1683,
29901,
13,
9651,
736,
922,
3910,
29898,
1311,
29889,
16506,
718,
916,
29897,
13,
13,
1678,
822,
903,
24219,
403,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
6760,
1078,
322,
3639,
385,
20380,
607,
16058,
599,
278,
29304,
297,
278,
1196,
482,
13,
13,
4706,
584,
2457,
29901,
20380,
975,
278,
27615,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
1220,
482,
29889,
24219,
403,
29898,
1311,
3032,
3188,
29918,
16506,
29897,
13,
13,
1678,
822,
903,
9067,
29898,
1311,
29892,
334,
9067,
29879,
1125,
13,
4706,
9995,
13,
4706,
10061,
583,
278,
2183,
922,
3910,
322,
623,
1975,
716,
13852,
13,
4706,
584,
3207,
4327,
29901,
4327,
304,
3394,
470,
1051,
310,
4327,
29879,
304,
3394,
13,
4706,
584,
2457,
29901,
27615,
5665,
13,
4706,
9995,
13,
4706,
5665,
353,
6213,
13,
4706,
363,
4327,
297,
4327,
29879,
29901,
13,
9651,
565,
5665,
29901,
13,
18884,
5665,
353,
922,
3910,
29898,
16506,
29892,
4327,
29922,
9067,
29897,
13,
9651,
1683,
29901,
13,
18884,
5665,
353,
922,
3910,
29898,
1311,
29892,
4327,
29922,
9067,
29897,
13,
4706,
736,
5665,
13,
13,
1678,
732,
6799,
13,
1678,
822,
5665,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
10785,
294,
363,
304,
29918,
1761,
1304,
25106,
363,
2078,
17037,
13,
13,
4706,
584,
2457,
29901,
1121,
310,
304,
29918,
1761,
580,
373,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
517,
29918,
1761,
580,
13,
13,
1678,
822,
7090,
29898,
1311,
29892,
5217,
29918,
1220,
482,
29922,
8824,
1125,
13,
4706,
9995,
13,
4706,
315,
14520,
278,
1121,
310,
278,
922,
3910,
577,
2215,
29889,
910,
2794,
393,
738,
3168,
7436,
373,
278,
13,
4706,
16439,
1434,
7090,
580,
526,
19030,
29892,
322,
278,
1121,
338,
6087,
297,
278,
922,
3910,
29889,
910,
338,
13,
4706,
19434,
1304,
25106,
322,
338,
694,
901,
8444,
1135,
304,
29918,
1761,
580,
3622,
635,
29889,
5217,
29918,
1220,
482,
13,
4706,
6511,
363,
7090,
580,
304,
367,
1304,
297,
7463,
17865,
5717,
1728,
278,
24959,
2534,
13,
4706,
7134,
310,
278,
2836,
1338,
3025,
278,
1196,
482,
13,
13,
4706,
584,
3207,
5217,
29918,
1220,
482,
29901,
960,
731,
304,
5852,
29892,
372,
674,
7090,
769,
604,
559,
278,
1196,
482,
13,
4706,
9995,
13,
4706,
565,
7431,
29898,
1311,
3032,
1220,
482,
29897,
1275,
29871,
29900,
470,
1583,
3032,
1220,
482,
14352,
29896,
29962,
1275,
29304,
29889,
29907,
2477,
9606,
29918,
29911,
29901,
13,
9651,
565,
451,
338,
8758,
29898,
1311,
3032,
3188,
29918,
16506,
29892,
1051,
1125,
13,
18884,
1583,
3032,
3188,
29918,
16506,
353,
1051,
29898,
1311,
3032,
3188,
29918,
16506,
29897,
13,
18884,
1583,
3032,
1220,
482,
29889,
7302,
29898,
9067,
800,
29889,
29907,
2477,
9606,
29918,
29911,
29897,
13,
4706,
1683,
29901,
13,
9651,
1583,
3032,
3188,
29918,
16506,
353,
1051,
29898,
1311,
3032,
24219,
403,
3101,
13,
9651,
1583,
3032,
1220,
482,
29889,
7302,
29898,
9067,
800,
29889,
29907,
2477,
9606,
29918,
29911,
29897,
13,
4706,
565,
5217,
29918,
1220,
482,
29901,
13,
9651,
1583,
3032,
1220,
482,
353,
7407,
482,
29898,
10599,
29922,
1311,
29889,
10599,
29897,
13,
4706,
736,
1583,
13,
13,
1678,
822,
2343,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
937,
1543,
310,
278,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
2813,
580,
13,
308,
29896,
13,
13,
4706,
390,
1759,
267,
11374,
2392,
746,
278,
5665,
338,
4069,
29889,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
2813,
580,
13,
4706,
29243,
313,
3242,
7786,
1246,
1833,
1125,
13,
308,
2023,
13,
4706,
11374,
2392,
29901,
1051,
2380,
714,
310,
3464,
13,
13,
4706,
584,
2457,
29901,
937,
1543,
310,
5665,
13,
4706,
9995,
13,
4706,
736,
903,
6312,
29898,
1311,
29889,
19730,
29898,
29896,
9601,
29900,
2314,
13,
13,
1678,
822,
937,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
937,
1543,
310,
278,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
4102,
580,
13,
308,
29896,
13,
13,
4706,
390,
1759,
267,
11374,
2392,
746,
278,
5665,
338,
4069,
29889,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
4102,
580,
13,
4706,
29243,
313,
3242,
7786,
1246,
1833,
1125,
13,
308,
2023,
13,
4706,
11374,
2392,
29901,
1051,
2380,
714,
310,
3464,
13,
13,
4706,
584,
2457,
29901,
937,
1543,
310,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
2813,
580,
13,
13,
1678,
822,
2343,
29918,
3385,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
937,
1543,
310,
278,
5665,
470,
6213,
29892,
565,
278,
5665,
338,
4069,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
2813,
29918,
3385,
580,
13,
308,
29896,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
2813,
29918,
3385,
580,
13,
4706,
6213,
13,
13,
4706,
584,
2457,
29901,
937,
1543,
310,
5665,
470,
6213,
565,
5665,
338,
4069,
13,
4706,
9995,
13,
4706,
565,
451,
1583,
29889,
16506,
29901,
13,
9651,
736,
6213,
13,
4706,
736,
1583,
29889,
2813,
580,
13,
13,
1678,
822,
1833,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
1833,
1543,
310,
278,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
4230,
580,
13,
308,
29941,
13,
13,
4706,
390,
1759,
267,
11374,
2392,
746,
278,
5665,
338,
4069,
29889,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
4230,
580,
13,
4706,
29243,
313,
3242,
7786,
1246,
1833,
1125,
13,
308,
2023,
13,
4706,
11374,
2392,
29901,
1051,
2380,
714,
310,
3464,
13,
13,
4706,
584,
2457,
29901,
1833,
1543,
310,
5665,
13,
4706,
9995,
13,
4706,
736,
903,
6312,
29898,
1311,
29889,
16506,
14352,
29896,
2314,
13,
13,
1678,
822,
1833,
29918,
3385,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
1833,
1543,
310,
278,
5665,
470,
6213,
29892,
565,
278,
5665,
338,
4069,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
4230,
29918,
3385,
580,
13,
308,
29941,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
4230,
29918,
3385,
580,
13,
4706,
6213,
13,
13,
4706,
584,
2457,
29901,
1833,
1543,
310,
5665,
470,
6213,
565,
5665,
338,
4069,
13,
4706,
9995,
13,
4706,
565,
451,
1583,
29889,
16506,
29901,
13,
9651,
736,
6213,
13,
4706,
736,
1583,
29889,
4230,
580,
13,
13,
1678,
822,
2069,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
5665,
29892,
1728,
967,
1833,
1543,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
2344,
580,
13,
4706,
518,
29896,
29892,
29871,
29906,
29962,
13,
13,
4706,
584,
2457,
29901,
5665,
1728,
1833,
1543,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
2344,
29918,
29873,
3101,
13,
13,
1678,
822,
12464,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
5665,
29892,
1728,
967,
937,
1543,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
18237,
580,
13,
4706,
518,
29906,
29892,
29871,
29941,
29962,
13,
13,
4706,
584,
2457,
29901,
5665,
1728,
937,
1543,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
18237,
29918,
29873,
3101,
13,
13,
1678,
822,
297,
1169,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
18942,
297,
1169,
310,
278,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
262,
1169,
580,
13,
4706,
5519,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
1402,
518,
29896,
29892,
29871,
29906,
1402,
518,
29896,
1402,
5159,
29962,
13,
13,
4706,
584,
2457,
29901,
18942,
2069,
580,
29879,
373,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
262,
1169,
29918,
29873,
7373,
6312,
876,
13,
13,
1678,
822,
260,
2234,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
18942,
260,
2234,
310,
278,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
29873,
2234,
580,
13,
4706,
5519,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
1402,
518,
29906,
29892,
29871,
29941,
1402,
518,
29941,
1402,
5159,
29962,
13,
13,
4706,
584,
2457,
29901,
18942,
12464,
580,
29879,
310,
278,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
29873,
2234,
29918,
29873,
7373,
6312,
876,
13,
13,
1678,
822,
7774,
18970,
29898,
1311,
29892,
334,
1524,
1849,
29892,
3579,
19290,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
7774,
18970,
3234,
310,
278,
4502,
4256,
1849,
411,
278,
6790,
1353,
310,
13,
4706,
21159,
2187,
29889,
13,
13,
4706,
450,
13553,
2980,
421,
14358,
29952,
338,
1303,
515,
9049,
5085,
304,
1209,
304,
4256,
8504,
29889,
13823,
18970,
29889,
13,
13,
4706,
8653,
19359,
29889,
3881,
29898,
29906,
467,
13823,
18970,
29898,
3881,
29898,
29906,
876,
13,
4706,
17288,
29900,
29892,
29871,
29900,
511,
313,
29900,
29892,
29871,
29896,
511,
313,
29896,
29892,
29871,
29900,
511,
313,
29896,
29892,
29871,
29896,
4638,
13,
13,
4706,
584,
3207,
4256,
1849,
29901,
3161,
363,
7774,
18970,
3234,
13,
4706,
584,
3207,
9049,
5085,
29901,
278,
2286,
421,
14358,
29952,
338,
1303,
515,
9049,
5085,
13,
4706,
584,
2457,
29901,
7774,
18970,
3234,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
13823,
18970,
29918,
29873,
29898,
1524,
1849,
29892,
9049,
5085,
29889,
657,
877,
14358,
742,
29871,
29896,
4961,
13,
13,
1678,
822,
5768,
29898,
1311,
29892,
302,
1125,
13,
4706,
9995,
13,
4706,
20724,
278,
937,
302,
3161,
310,
278,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
14664,
8865,
29898,
29906,
29897,
13,
4706,
518,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29962,
13,
13,
4706,
584,
3207,
302,
29901,
1353,
310,
3161,
304,
5768,
13,
4706,
584,
2457,
29901,
5665,
1728,
937,
302,
3161,
13,
4706,
9995,
13,
4706,
565,
302,
5277,
29871,
29900,
29901,
13,
9651,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
8865,
29918,
29873,
29898,
29900,
876,
13,
4706,
1683,
29901,
13,
9651,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
8865,
29918,
29873,
29898,
29876,
876,
13,
13,
1678,
822,
5768,
29918,
1266,
29898,
1311,
29892,
302,
1125,
13,
4706,
9995,
13,
4706,
22938,
567,
278,
1833,
302,
3161,
310,
278,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
14664,
8865,
29918,
1266,
29898,
29906,
29897,
13,
4706,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
13,
13,
4706,
584,
3207,
302,
29901,
1353,
310,
3161,
304,
5768,
13,
4706,
584,
2457,
29901,
5665,
411,
1833,
302,
3161,
13700,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
29907,
2477,
9606,
29918,
29911,
29892,
29304,
29889,
8865,
29918,
1266,
29918,
29873,
29898,
29876,
876,
13,
13,
1678,
822,
5768,
29918,
8000,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
22938,
567,
3161,
297,
278,
5665,
1550,
3653,
6161,
1078,
304,
5852,
29892,
769,
3639,
278,
1791,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29896,
29892,
29871,
29906,
14664,
8865,
29918,
8000,
29898,
2892,
921,
29901,
921,
529,
29871,
29941,
29897,
13,
4706,
518,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29896,
29892,
29871,
29906,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
8760,
7863,
740,
13,
4706,
584,
2457,
29901,
3161,
3704,
322,
1156,
3653,
6161,
1078,
304,
7700,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
8865,
29918,
8000,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
2125,
29898,
1311,
29892,
302,
1125,
13,
4706,
9995,
13,
4706,
11190,
278,
937,
302,
3161,
310,
278,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
14664,
19730,
29898,
29906,
29897,
13,
4706,
518,
29896,
29892,
29871,
29906,
29962,
13,
13,
4706,
584,
3207,
302,
29901,
1353,
310,
3161,
304,
2125,
13,
4706,
584,
2457,
29901,
937,
302,
3161,
310,
5665,
13,
4706,
9995,
13,
4706,
565,
302,
5277,
29871,
29900,
29901,
13,
9651,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
19730,
29918,
29873,
29898,
29900,
876,
13,
4706,
1683,
29901,
13,
9651,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
19730,
29918,
29873,
29898,
29876,
876,
13,
13,
1678,
822,
2125,
29918,
8000,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
11190,
3161,
297,
278,
5665,
2745,
3653,
6161,
1078,
304,
7700,
29892,
769,
736,
963,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29896,
29892,
29871,
29906,
14664,
19730,
29918,
8000,
29898,
2892,
921,
29901,
921,
529,
29871,
29941,
29897,
13,
4706,
518,
29896,
29892,
29871,
29906,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
8760,
7863,
740,
13,
4706,
584,
2457,
29901,
3161,
4586,
2745,
3653,
6161,
1078,
304,
7700,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
19730,
29918,
8000,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
9833,
29898,
1311,
29892,
916,
1125,
13,
4706,
9995,
13,
4706,
1570,
5665,
411,
5412,
3161,
515,
1583,
322,
916,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29941,
14664,
13094,
4197,
29896,
29892,
29871,
29946,
29892,
29871,
29945,
2314,
13,
4706,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29962,
13,
13,
4706,
584,
3207,
916,
29901,
5665,
304,
9833,
411,
13,
4706,
584,
2457,
29901,
9833,
310,
5665,
322,
916,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
13094,
29918,
29873,
29898,
1228,
876,
13,
13,
1678,
822,
17686,
29898,
1311,
29892,
916,
1125,
13,
4706,
9995,
13,
4706,
1570,
5665,
411,
5412,
3161,
2198,
297,
5665,
322,
916,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
1639,
2042,
4197,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
2314,
13,
4706,
518,
29906,
29892,
29871,
29941,
29962,
13,
13,
4706,
584,
3207,
916,
29901,
5665,
304,
2189,
17686,
411,
13,
4706,
584,
2457,
29901,
17686,
310,
5665,
322,
916,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
1639,
2042,
29918,
29873,
29898,
1228,
876,
13,
13,
1678,
822,
4328,
29898,
1311,
29892,
916,
1125,
13,
4706,
9995,
13,
4706,
1570,
5665,
411,
5412,
3161,
2198,
297,
5665,
541,
451,
297,
916,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
29881,
17678,
4197,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
2314,
13,
4706,
518,
29896,
29962,
13,
13,
4706,
584,
3207,
916,
29901,
5665,
304,
2189,
4328,
411,
13,
4706,
584,
2457,
29901,
4328,
310,
5665,
322,
916,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
29881,
17678,
29918,
29873,
29898,
1228,
876,
13,
13,
1678,
822,
18348,
29918,
29881,
17678,
29898,
1311,
29892,
916,
1125,
13,
4706,
9995,
13,
4706,
1570,
5665,
411,
3161,
297,
2845,
5665,
470,
916,
29892,
541,
451,
1716,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29941,
14664,
11967,
16414,
29918,
29881,
17678,
4197,
29906,
29892,
29871,
29946,
29892,
29871,
29945,
2314,
13,
4706,
518,
29896,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29962,
13,
13,
4706,
584,
3207,
916,
29901,
5665,
304,
2189,
18348,
4328,
411,
13,
4706,
584,
2457,
29901,
18348,
4328,
310,
5665,
322,
916,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
11967,
16414,
29918,
29881,
17678,
29918,
29873,
29898,
1228,
876,
13,
13,
1678,
822,
2910,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
25846,
285,
11480,
278,
3161,
310,
278,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
14664,
1958,
29898,
2892,
921,
29901,
921,
334,
448,
29896,
29897,
13,
4706,
21069,
29896,
29892,
448,
29906,
29892,
448,
29941,
29892,
448,
29946,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
2910,
411,
13,
4706,
584,
2457,
29901,
5665,
411,
3653,
20545,
11480,
372,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
1958,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
1831,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
7605,
29879,
285,
515,
278,
3161,
310,
278,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
14664,
2622,
29898,
2892,
921,
29901,
921,
334,
448,
29896,
29897,
13,
4706,
21069,
29896,
29892,
448,
29906,
29892,
448,
29941,
29892,
448,
29946,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
1831,
411,
13,
4706,
584,
2457,
29901,
5665,
411,
3653,
20545,
11480,
372,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
2622,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
5810,
1958,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
5810,
10339,
285,
11480,
278,
5665,
408,
4256,
8504,
29889,
8508,
1958,
947,
29889,
13,
13,
4706,
8653,
19359,
4197,
29898,
29906,
29892,
29871,
29941,
511,
8521,
29906,
29892,
29871,
29896,
511,
313,
29900,
29892,
29871,
29896,
29900,
4638,
467,
8508,
1958,
29898,
2892,
921,
29892,
343,
29901,
921,
718,
343,
29897,
13,
4706,
518,
29945,
29892,
448,
29896,
29892,
29871,
29896,
29900,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
5810,
1958,
411,
13,
4706,
584,
2457,
29901,
5665,
411,
3653,
5810,
655,
2986,
11480,
372,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
8508,
1958,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
1560,
481,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
10785,
294,
304,
922,
3910,
29889,
8508,
1958,
13,
13,
4706,
5810,
10339,
285,
11480,
278,
5665,
408,
4256,
8504,
29889,
8508,
1958,
947,
29889,
13,
13,
4706,
8653,
19359,
4197,
29898,
29906,
29892,
29871,
29941,
511,
8521,
29906,
29892,
29871,
29896,
511,
313,
29900,
29892,
29871,
29896,
29900,
4638,
467,
29879,
1958,
29898,
2892,
921,
29892,
343,
29901,
921,
718,
343,
29897,
13,
4706,
518,
29945,
29892,
448,
29896,
29892,
29871,
29896,
29900,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
5810,
1958,
411,
13,
4706,
584,
2457,
29901,
5665,
411,
3653,
5810,
655,
2986,
11480,
372,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
8508,
1958,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
363,
29918,
4204,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
11080,
2667,
3653,
373,
1269,
1543,
310,
278,
5665,
29889,
13,
13,
4706,
8653,
301,
353,
5159,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
14664,
1454,
29918,
4204,
29898,
29880,
29889,
4397,
29897,
13,
4706,
8653,
301,
13,
4706,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
6222,
13,
4706,
9995,
13,
4706,
363,
321,
297,
1583,
29901,
13,
9651,
3653,
29898,
29872,
29897,
13,
13,
1678,
822,
4175,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
2514,
2153,
5665,
304,
3160,
871,
3161,
988,
3653,
338,
5852,
29889,
13,
13,
4706,
8653,
19359,
4197,
29899,
29896,
29892,
29871,
29896,
29892,
448,
29906,
29892,
29871,
29906,
14664,
4572,
29898,
2892,
921,
29901,
921,
1405,
29871,
29900,
29897,
13,
4706,
518,
29896,
29892,
29871,
29906,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
4175,
373,
13,
4706,
584,
2457,
29901,
22289,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
4572,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
4175,
29918,
1333,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
2514,
2153,
5665,
304,
3160,
871,
3161,
988,
3653,
338,
7700,
29889,
13,
13,
4706,
8653,
19359,
4197,
29899,
29896,
29892,
29871,
29896,
29892,
448,
29906,
29892,
29871,
29906,
14664,
4572,
29918,
1333,
29898,
2892,
921,
29901,
921,
1405,
29871,
29900,
29897,
13,
4706,
21069,
29896,
29892,
448,
29906,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
4175,
29918,
1333,
373,
13,
4706,
584,
2457,
29901,
22289,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
4572,
29918,
1333,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
988,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
7605,
29879,
3161,
988,
3653,
6161,
1078,
304,
5852,
29889,
13,
13,
4706,
8653,
19359,
4197,
29899,
29896,
29892,
29871,
29896,
29892,
448,
29906,
29892,
29871,
29906,
14664,
3062,
29898,
2892,
921,
29901,
921,
1405,
29871,
29900,
29897,
13,
4706,
518,
29896,
29892,
29871,
29906,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
4175,
373,
13,
4706,
584,
2457,
29901,
22289,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
3062,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
2302,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
3917,
29879,
278,
1353,
310,
3161,
297,
278,
5665,
607,
15523,
278,
24384,
3653,
29889,
13,
13,
4706,
8653,
19359,
4197,
29899,
29896,
29892,
448,
29906,
29892,
29871,
29896,
29892,
29871,
29906,
14664,
2798,
29898,
2892,
921,
29901,
921,
1405,
29871,
29900,
29897,
13,
308,
29906,
13,
13,
4706,
584,
3207,
3653,
29901,
24384,
304,
2302,
3161,
373,
13,
4706,
584,
2457,
29901,
2302,
310,
3161,
393,
15523,
24384,
13,
4706,
9995,
13,
4706,
302,
353,
29871,
29900,
13,
4706,
363,
1543,
297,
1583,
29901,
13,
9651,
565,
3653,
29898,
5029,
1125,
13,
18884,
302,
4619,
29871,
29896,
13,
4706,
736,
302,
13,
13,
1678,
822,
7431,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
7106,
3309,
310,
5665,
773,
967,
3309,
740,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
2435,
580,
13,
308,
29941,
13,
13,
4706,
584,
2457,
29901,
3309,
310,
5665,
13,
4706,
9995,
13,
4706,
1583,
29889,
8173,
580,
13,
4706,
736,
7431,
29898,
1311,
3032,
3188,
29918,
16506,
29897,
13,
13,
1678,
822,
2159,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
7106,
2159,
310,
5665,
773,
967,
3309,
740,
29889,
13,
13,
4706,
584,
2457,
29901,
2159,
310,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
2435,
580,
13,
13,
1678,
822,
4069,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
5852,
565,
278,
5665,
756,
3309,
5225,
29889,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
6310,
580,
13,
4706,
5852,
13,
13,
4706,
8653,
19359,
4197,
29896,
14664,
6310,
580,
13,
4706,
7700,
13,
13,
4706,
584,
2457,
29901,
5852,
565,
5665,
3309,
338,
5225,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
2311,
580,
1275,
29871,
29900,
13,
13,
1678,
822,
1661,
29918,
6310,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
5852,
565,
278,
5665,
947,
451,
505,
3309,
5225,
29889,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
5464,
29918,
6310,
580,
13,
4706,
7700,
13,
13,
4706,
8653,
19359,
4197,
29896,
14664,
5464,
29918,
6310,
580,
13,
4706,
5852,
13,
13,
4706,
584,
2457,
29901,
5852,
565,
5665,
3309,
338,
451,
5225,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
2311,
580,
2804,
29871,
29900,
13,
13,
1678,
822,
738,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
5852,
565,
738,
1543,
297,
278,
5665,
756,
8760,
995,
5852,
13,
13,
4706,
8653,
19359,
4197,
5574,
29892,
7700,
14664,
1384,
580,
13,
4706,
5852,
13,
13,
4706,
8653,
19359,
4197,
8824,
29892,
7700,
14664,
1384,
580,
13,
4706,
7700,
13,
13,
4706,
584,
2457,
29901,
5852,
565,
738,
1543,
338,
5852,
13,
4706,
9995,
13,
4706,
736,
738,
29898,
1311,
29897,
13,
13,
1678,
822,
599,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
5852,
565,
278,
8760,
995,
310,
599,
4452,
297,
278,
5665,
1565,
29889,
13,
13,
4706,
8653,
19359,
4197,
5574,
29892,
5852,
14664,
497,
580,
13,
4706,
5852,
13,
13,
4706,
8653,
19359,
4197,
5574,
29892,
7700,
14664,
497,
580,
13,
4706,
7700,
13,
13,
4706,
584,
2457,
29901,
5852,
565,
599,
4452,
8760,
995,
6161,
1078,
304,
5852,
13,
4706,
9995,
13,
4706,
736,
599,
29898,
1311,
29897,
13,
13,
1678,
822,
4864,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
16969,
5852,
565,
385,
1543,
297,
278,
5665,
3732,
3653,
14707,
304,
5852,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
14664,
9933,
29898,
2892,
921,
29901,
921,
1275,
29871,
29906,
29897,
13,
4706,
5852,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
14664,
9933,
29898,
2892,
921,
29901,
921,
529,
29871,
29900,
29897,
13,
4706,
7700,
13,
13,
4706,
584,
3207,
3653,
29901,
10379,
1423,
740,
13,
4706,
584,
2457,
29901,
5852,
565,
738,
1543,
17150,
3653,
13,
4706,
9995,
13,
4706,
363,
1543,
297,
1583,
29901,
13,
9651,
565,
3653,
29898,
5029,
1125,
13,
18884,
736,
5852,
13,
4706,
736,
7700,
13,
13,
1678,
822,
363,
29918,
497,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
16969,
5852,
565,
599,
3161,
297,
5665,
1207,
3653,
14707,
304,
5852,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
1454,
29918,
497,
29898,
2892,
921,
29901,
921,
1405,
29871,
29900,
29897,
13,
4706,
5852,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
448,
29896,
14664,
1454,
29918,
497,
29898,
2892,
921,
29901,
921,
1405,
29871,
29900,
29897,
13,
4706,
7700,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
1423,
8760,
995,
310,
599,
3161,
411,
13,
4706,
584,
2457,
29901,
5852,
565,
599,
3161,
1207,
3653,
14707,
304,
5852,
13,
4706,
9995,
13,
4706,
363,
1543,
297,
1583,
29901,
13,
9651,
565,
451,
3653,
29898,
5029,
1125,
13,
18884,
736,
7700,
13,
4706,
736,
5852,
13,
13,
1678,
822,
4236,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
10150,
1543,
297,
278,
5665,
29889,
13,
4706,
960,
278,
5665,
756,
2999,
23183,
3161,
29892,
871,
278,
937,
697,
338,
4133,
29889,
13,
13,
4706,
450,
9401,
3618,
1818,
505,
3342,
10230,
3519,
29889,
13,
4706,
390,
1759,
267,
20948,
746,
278,
3618,
526,
451,
5734,
519,
29889,
13,
13,
4706,
450,
5665,
508,
451,
367,
4069,
29889,
13,
4706,
390,
1759,
267,
7865,
2392,
746,
278,
5665,
338,
4069,
29889,
13,
13,
4706,
8653,
19359,
4197,
29906,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29896,
29892,
29871,
29941,
14664,
3317,
580,
13,
308,
29945,
13,
13,
4706,
8653,
19359,
877,
7340,
742,
525,
20230,
742,
525,
370,
2252,
742,
525,
3594,
29891,
2824,
3317,
580,
13,
4706,
525,
20230,
29915,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
376,
29874,
3108,
467,
3317,
580,
13,
4706,
29243,
313,
3242,
7786,
1246,
1833,
1125,
13,
308,
2023,
13,
4706,
20948,
29901,
443,
2098,
519,
4072,
29901,
938,
580,
529,
851,
580,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
3317,
580,
13,
4706,
29243,
313,
3242,
7786,
1246,
1833,
1125,
13,
308,
2023,
13,
4706,
7865,
2392,
29901,
4236,
580,
1852,
338,
385,
4069,
5665,
13,
13,
4706,
584,
2457,
29901,
5918,
3039,
995,
310,
5665,
13,
4706,
9995,
13,
4706,
736,
903,
6312,
29898,
3317,
29898,
1311,
876,
13,
13,
1678,
822,
1375,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
19087,
1543,
297,
278,
5665,
29889,
13,
4706,
960,
278,
5665,
756,
2999,
13114,
3161,
29892,
871,
278,
937,
697,
338,
4133,
29889,
13,
13,
4706,
450,
9401,
3618,
1818,
505,
3342,
10230,
3519,
29889,
13,
4706,
390,
1759,
267,
20948,
746,
278,
3618,
526,
451,
5734,
519,
29889,
13,
13,
4706,
450,
5665,
508,
451,
367,
4069,
29889,
13,
4706,
390,
1759,
267,
7865,
2392,
746,
278,
5665,
338,
4069,
29889,
13,
13,
4706,
8653,
19359,
4197,
29906,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29896,
29892,
29871,
29941,
14664,
1195,
580,
13,
308,
29896,
13,
13,
4706,
8653,
19359,
877,
7340,
742,
525,
20230,
742,
525,
370,
2252,
742,
525,
3594,
29891,
2824,
1195,
580,
13,
4706,
525,
7340,
29915,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
376,
29874,
3108,
467,
1195,
580,
13,
4706,
29243,
313,
3242,
7786,
1246,
1833,
1125,
13,
308,
2023,
13,
4706,
20948,
29901,
443,
2098,
519,
4072,
29901,
938,
580,
529,
851,
580,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
1195,
580,
13,
4706,
29243,
313,
3242,
7786,
1246,
1833,
1125,
13,
308,
2023,
13,
4706,
7865,
2392,
29901,
1375,
580,
1852,
338,
385,
4069,
5665,
13,
13,
4706,
584,
2457,
29901,
3080,
3039,
995,
310,
5665,
13,
4706,
9995,
13,
4706,
736,
903,
6312,
29898,
1195,
29898,
1311,
876,
13,
13,
1678,
822,
4236,
29918,
1609,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
10150,
1543,
297,
278,
5665,
29889,
13,
4706,
9133,
2618,
740,
338,
1304,
304,
5706,
1820,
1304,
304,
7252,
278,
3161,
29889,
13,
4706,
960,
278,
5665,
756,
2999,
23183,
3161,
29892,
871,
278,
937,
697,
338,
4133,
29889,
13,
13,
4706,
450,
5665,
508,
451,
367,
4069,
29889,
13,
4706,
390,
1759,
267,
7865,
2392,
746,
278,
5665,
338,
4069,
29889,
13,
13,
4706,
8653,
19359,
4197,
29906,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29896,
29892,
29871,
29941,
14664,
3317,
29918,
1609,
29898,
2892,
954,
29901,
954,
1273,
29871,
29946,
29897,
13,
308,
29941,
13,
13,
4706,
8653,
19359,
877,
7340,
742,
525,
20230,
742,
525,
370,
2252,
742,
525,
3594,
29891,
2824,
3317,
29918,
1609,
29898,
2435,
29897,
13,
4706,
525,
370,
2252,
29915,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
3317,
29918,
1609,
29898,
2892,
921,
29901,
921,
29897,
13,
4706,
29243,
313,
3242,
7786,
1246,
1833,
1125,
13,
308,
2023,
13,
4706,
7865,
2392,
29901,
4236,
580,
1852,
338,
385,
4069,
5665,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
10272,
4236,
491,
13,
4706,
584,
2457,
29901,
5918,
3039,
1543,
491,
3653,
29898,
5029,
29897,
13,
4706,
9995,
13,
4706,
736,
903,
6312,
29898,
3317,
29898,
1311,
29892,
1820,
29922,
9891,
876,
13,
13,
1678,
822,
1375,
29918,
1609,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
19087,
1543,
297,
278,
5665,
29889,
13,
4706,
9133,
2618,
740,
338,
1304,
304,
5706,
1820,
1304,
304,
7252,
278,
3161,
29889,
13,
4706,
960,
278,
5665,
756,
2999,
13114,
3161,
29892,
871,
278,
937,
697,
338,
4133,
29889,
13,
13,
4706,
450,
5665,
508,
451,
367,
4069,
29889,
13,
4706,
390,
1759,
267,
7865,
2392,
746,
278,
5665,
338,
4069,
29889,
13,
13,
4706,
8653,
19359,
4197,
29906,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29896,
29892,
29871,
29941,
14664,
1195,
29918,
1609,
29898,
2892,
954,
29901,
954,
1273,
29871,
29953,
29897,
13,
308,
29945,
13,
13,
4706,
8653,
19359,
877,
7340,
742,
525,
20230,
742,
525,
370,
2252,
742,
525,
3594,
29891,
2824,
1195,
29918,
1609,
29898,
2435,
29897,
13,
4706,
525,
7340,
29915,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
1195,
29918,
1609,
29898,
2892,
921,
29901,
921,
29897,
13,
4706,
29243,
313,
3242,
7786,
1246,
1833,
1125,
13,
308,
2023,
13,
4706,
7865,
2392,
29901,
1375,
580,
1852,
338,
385,
4069,
5665,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
10272,
1375,
491,
13,
4706,
584,
2457,
29901,
5918,
3039,
1543,
491,
3653,
29898,
5029,
29897,
13,
4706,
9995,
13,
4706,
736,
903,
6312,
29898,
1195,
29898,
1311,
29892,
1820,
29922,
9891,
876,
13,
13,
1678,
822,
1284,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
10987,
29879,
278,
937,
1543,
310,
278,
5665,
393,
17150,
3653,
29889,
960,
694,
1316,
1543,
4864,
29892,
13,
4706,
769,
736,
6213,
29889,
13,
13,
4706,
8653,
19359,
29898,
3366,
10736,
613,
376,
370,
613,
376,
12328,
3108,
467,
2886,
29898,
2892,
921,
29901,
7431,
29898,
29916,
29897,
1275,
29871,
29906,
29897,
13,
4706,
525,
370,
29915,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
1284,
411,
13,
4706,
584,
2457,
29901,
937,
1543,
304,
15523,
3653,
470,
6213,
13,
4706,
9995,
13,
4706,
363,
1543,
297,
1583,
29901,
13,
9651,
565,
3653,
29898,
5029,
1125,
13,
18884,
736,
1543,
13,
4706,
736,
6213,
13,
13,
1678,
822,
1652,
8606,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
2379,
1131,
575,
263,
5665,
310,
15602,
304,
263,
2323,
5665,
310,
3161,
29889,
13,
13,
4706,
8653,
19359,
4197,
29961,
29896,
29892,
29871,
29906,
1402,
518,
29941,
29892,
29871,
29946,
1402,
518,
29945,
29892,
29871,
29953,
24960,
13,
4706,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
29962,
13,
13,
4706,
584,
2457,
29901,
1652,
8606,
287,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
1579,
8606,
29918,
29873,
3101,
13,
13,
1678,
822,
12151,
29918,
1958,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
2401,
3687,
3653,
304,
1269,
1543,
310,
278,
5665,
29892,
607,
6053,
881,
367,
15602,
29889,
13,
4706,
1987,
623,
1975,
1269,
1543,
310,
1269,
5665,
304,
263,
2186,
1121,
13,
13,
4706,
8653,
19359,
4197,
29961,
29896,
29892,
29871,
29906,
1402,
518,
29941,
29892,
29871,
29946,
1402,
518,
29945,
29892,
29871,
29953,
5262,
467,
20620,
29918,
1958,
29898,
2892,
921,
29901,
921,
29897,
13,
4706,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
29962,
13,
13,
4706,
8653,
19359,
29898,
3366,
29874,
613,
376,
12328,
613,
376,
1753,
3108,
467,
20620,
29918,
1958,
29898,
1761,
29897,
13,
4706,
6024,
29874,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
742,
525,
29872,
742,
525,
29888,
2033,
13,
13,
4706,
8653,
19359,
4197,
29961,
29896,
1402,
518,
29906,
1402,
518,
29941,
5262,
467,
20620,
29918,
1958,
29898,
2892,
921,
29901,
921,
334,
29871,
29906,
29897,
13,
4706,
518,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29941,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
3394,
304,
1269,
5665,
297,
278,
5665,
13,
4706,
584,
2457,
29901,
2280,
310,
3653,
304,
3161,
5643,
491,
1652,
8606,
292,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
20620,
29918,
1958,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
2318,
29918,
1609,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
6431,
3161,
964,
263,
1051,
310,
313,
2558,
29892,
7865,
29897,
5291,
2701,
988,
3653,
10017,
278,
1820,
322,
11053,
13,
4706,
304,
1819,
9686,
393,
1820,
29889,
13,
13,
4706,
8653,
19359,
29898,
3366,
10736,
613,
376,
370,
613,
376,
29920,
613,
376,
29888,
613,
376,
29939,
29893,
3108,
467,
2972,
29918,
1609,
29898,
2435,
29897,
13,
4706,
17288,
29896,
29892,
6024,
29920,
742,
525,
29888,
2033,
511,
313,
29906,
29892,
6024,
370,
742,
525,
29939,
29893,
2033,
511,
313,
29941,
29892,
6024,
10736,
2033,
4638,
13,
13,
4706,
584,
3207,
3653,
29901,
2318,
491,
1121,
310,
445,
740,
13,
4706,
584,
2457,
29901,
27831,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
2972,
29918,
1609,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
2318,
29918,
1609,
29918,
1989,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
6431,
5665,
310,
313,
2558,
29892,
7865,
29897,
3161,
491,
7670,
29889,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
511,
6702,
29890,
742,
29871,
29941,
511,
6702,
29890,
742,
29871,
29946,
511,
6702,
29883,
742,
29871,
29941,
511,
6702,
29883,
742,
29871,
29900,
4638,
467,
2972,
29918,
1609,
29918,
1989,
580,
13,
4706,
518,
877,
29874,
742,
518,
29896,
11724,
6702,
29883,
742,
518,
29941,
29892,
29871,
29900,
11724,
6702,
29890,
742,
518,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
2314,
29962,
13,
13,
4706,
584,
2457,
29901,
5665,
27831,
491,
1820,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
2972,
29918,
1609,
29918,
1989,
29918,
29873,
3101,
13,
13,
1678,
822,
10032,
29918,
1609,
29918,
1989,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
4367,
29884,
778,
263,
5665,
310,
313,
2558,
29892,
7865,
29897,
773,
3653,
373,
1269,
5665,
310,
1819,
29889,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
511,
6702,
29890,
742,
29871,
29941,
511,
6702,
29890,
742,
29871,
29946,
511,
6702,
29883,
742,
29871,
29941,
511,
6702,
29883,
742,
29871,
29900,
29897,
2314,
320,
13,
18884,
869,
17469,
29918,
1609,
29918,
1989,
29898,
2892,
921,
29892,
343,
29901,
921,
718,
343,
29897,
13,
4706,
518,
877,
29874,
742,
29871,
29896,
511,
6702,
29883,
742,
29871,
29941,
511,
6702,
29890,
742,
29871,
29929,
4638,
13,
13,
4706,
584,
3207,
3653,
29901,
10032,
1269,
1051,
310,
1819,
773,
1023,
3443,
29892,
4067,
1230,
3653,
13,
4706,
584,
2457,
29901,
922,
3910,
310,
5291,
2701,
988,
278,
995,
338,
12212,
411,
3653,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
17469,
29918,
1609,
29918,
1989,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
2302,
29918,
1609,
29918,
1989,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4367,
29884,
778,
263,
5665,
310,
313,
2558,
29892,
7865,
29897,
491,
21248,
1269,
1820,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
511,
6702,
29890,
742,
29871,
29941,
511,
6702,
29890,
742,
29871,
29946,
511,
6702,
29883,
742,
29871,
29941,
511,
6702,
29883,
742,
29871,
29900,
4638,
467,
2798,
29918,
1609,
29918,
1989,
580,
13,
4706,
518,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29941,
511,
6702,
29883,
742,
29871,
29906,
4638,
13,
4706,
584,
2457,
29901,
922,
3910,
310,
5291,
2701,
988,
995,
338,
278,
2302,
310,
1269,
1820,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
2798,
29918,
1609,
29918,
1989,
29918,
29873,
3101,
13,
13,
1678,
822,
2302,
29918,
1609,
29918,
1767,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4367,
29884,
778,
263,
5665,
310,
4452,
491,
21248,
1269,
5412,
2944,
13,
13,
4706,
8653,
19359,
18959,
29874,
742,
525,
29874,
742,
525,
29874,
742,
525,
29890,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
2033,
467,
2798,
29918,
1609,
29918,
1767,
580,
13,
4706,
518,
877,
29874,
742,
29871,
29941,
511,
6702,
29890,
742,
29871,
29906,
511,
6702,
29883,
742,
29871,
29896,
511,
6702,
29881,
742,
29871,
29896,
4638,
13,
4706,
584,
2457,
29901,
922,
3910,
310,
5291,
2701,
988,
995,
338,
278,
2302,
310,
1269,
1820,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
2798,
29918,
1609,
29918,
1767,
29918,
29873,
3101,
13,
13,
1678,
822,
10032,
29898,
1311,
29892,
3653,
29892,
334,
11228,
1125,
13,
4706,
9995,
13,
4706,
4367,
24551,
5665,
310,
3161,
773,
3653,
29889,
3450,
19571,
29879,
2090,
312,
8789,
29889,
17469,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
17469,
29898,
2892,
921,
29892,
343,
29901,
921,
718,
343,
29897,
13,
308,
29953,
13,
13,
4706,
584,
3207,
3653,
29901,
1023,
3443,
29892,
4067,
1230,
10032,
740,
13,
4706,
584,
3207,
2847,
29901,
2323,
13136,
2980,
16684,
408,
2847,
995,
13,
4706,
584,
2457,
29901,
12212,
995,
773,
3653,
13,
4706,
9995,
13,
4706,
565,
7431,
29898,
11228,
29897,
1275,
29871,
29900,
29901,
13,
9651,
736,
903,
6312,
29898,
17469,
29898,
9891,
29892,
1583,
876,
13,
4706,
25342,
7431,
29898,
11228,
29897,
1275,
29871,
29896,
29901,
13,
9651,
736,
903,
6312,
29898,
17469,
29898,
9891,
29892,
1583,
29892,
2847,
29961,
29900,
12622,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
877,
17469,
4893,
3721,
697,
13136,
3443,
363,
2847,
995,
1495,
13,
13,
1678,
822,
18414,
5987,
29898,
1311,
29892,
3653,
29922,
1202,
1125,
13,
4706,
9995,
13,
4706,
4831,
398,
5987,
5665,
310,
3161,
773,
3653,
29889,
3450,
19571,
29879,
4256,
8504,
29889,
5753,
398,
5987,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
5753,
398,
5987,
29898,
2892,
921,
29892,
343,
29901,
921,
718,
343,
29897,
13,
4706,
518,
29896,
29892,
29871,
29941,
29892,
29871,
29953,
29962,
13,
13,
4706,
8653,
19359,
18959,
29874,
742,
525,
29890,
742,
525,
29883,
2033,
467,
5753,
398,
5987,
580,
13,
4706,
6024,
29874,
742,
525,
370,
742,
525,
10736,
2033,
13,
13,
4706,
584,
3207,
3653,
29901,
1023,
3443,
29892,
4067,
1230,
18414,
5987,
740,
13,
4706,
584,
2457,
29901,
18414,
7964,
1819,
773,
3653,
297,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
5753,
398,
5987,
29918,
29873,
29898,
9891,
876,
13,
13,
13,
1678,
822,
1207,
29918,
1807,
29898,
1311,
29892,
28128,
1125,
13,
4706,
9995,
13,
4706,
23924,
2579,
403,
278,
3161,
310,
278,
5665,
964,
263,
1347,
13055,
491,
28128,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
5675,
29918,
1807,
29475,
1159,
13,
4706,
525,
29896,
29992,
29906,
29992,
29941,
29915,
13,
13,
4706,
584,
3207,
28128,
29901,
1347,
2903,
1218,
3161,
297,
1347,
13,
4706,
584,
2457,
29901,
16125,
630,
1347,
13055,
491,
28128,
13,
4706,
9995,
13,
4706,
736,
28128,
29889,
7122,
29898,
710,
29898,
29872,
29897,
363,
321,
297,
1583,
29897,
13,
13,
1678,
822,
3234,
29898,
1311,
29892,
18246,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
323,
6926,
3234,
310,
3161,
297,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
14664,
4704,
580,
13,
308,
29906,
29946,
13,
13,
4706,
8653,
19359,
29898,
2636,
467,
4704,
580,
13,
308,
29896,
13,
13,
4706,
8653,
19359,
4197,
29898,
29896,
29892,
29871,
29906,
511,
313,
29896,
29892,
29871,
29941,
511,
313,
29896,
29892,
29871,
29946,
4638,
467,
4704,
29898,
2892,
921,
29901,
921,
29961,
29900,
2314,
13,
308,
29896,
13,
13,
4706,
584,
3207,
18246,
29901,
740,
304,
2060,
373,
278,
5665,
1434,
5622,
278,
3234,
13,
4706,
584,
2457,
29901,
3234,
310,
3161,
297,
5665,
13,
4706,
9995,
13,
4706,
565,
1583,
29889,
6310,
7295,
13,
9651,
565,
18246,
29901,
13,
18884,
736,
18246,
29898,
29896,
29897,
13,
9651,
1683,
29901,
13,
18884,
736,
29871,
29896,
13,
4706,
565,
1583,
29889,
2311,
580,
1275,
29871,
29896,
29901,
13,
9651,
565,
18246,
29901,
13,
18884,
736,
18246,
29898,
1311,
29889,
4102,
3101,
13,
9651,
1683,
29901,
13,
18884,
736,
1583,
29889,
4102,
580,
13,
13,
4706,
565,
18246,
29901,
13,
9651,
736,
1583,
29889,
1958,
29898,
771,
6929,
467,
17469,
29898,
16109,
29897,
13,
4706,
1683,
29901,
13,
9651,
736,
1583,
29889,
17469,
29898,
16109,
29897,
13,
13,
1678,
822,
2533,
29898,
1311,
29892,
18246,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
323,
6926,
2533,
310,
3161,
297,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
14664,
2083,
580,
13,
308,
29896,
29900,
13,
13,
4706,
8653,
19359,
4197,
29898,
29896,
29892,
29871,
29906,
511,
313,
29896,
29892,
29871,
29941,
511,
313,
29896,
29892,
29871,
29946,
4638,
467,
2083,
29898,
2892,
921,
29901,
921,
29961,
29900,
2314,
13,
308,
29941,
13,
13,
4706,
584,
3207,
18246,
29901,
740,
304,
2060,
373,
278,
5665,
1434,
5622,
278,
2533,
13,
4706,
584,
2457,
29901,
2533,
310,
3161,
297,
5665,
13,
4706,
9995,
13,
4706,
565,
18246,
29901,
13,
9651,
736,
2533,
29898,
1311,
29889,
1958,
29898,
771,
6929,
876,
13,
4706,
1683,
29901,
13,
9651,
736,
2533,
29898,
1311,
29897,
13,
13,
1678,
822,
6588,
29898,
1311,
29892,
18246,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
323,
6926,
278,
6588,
310,
3161,
297,
278,
5665,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
14664,
12483,
482,
580,
13,
308,
29896,
29889,
29945,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
4638,
467,
12483,
482,
29898,
2892,
921,
29901,
921,
29961,
29896,
2314,
13,
13,
4706,
584,
3207,
18246,
29901,
740,
304,
2060,
373,
278,
5665,
1434,
5622,
278,
6588,
13,
4706,
584,
2457,
29901,
6588,
310,
3161,
297,
278,
5665,
13,
4706,
9995,
13,
4706,
3309,
353,
1583,
29889,
2311,
580,
13,
4706,
565,
18246,
29901,
13,
9651,
736,
2533,
29898,
1311,
29889,
1958,
29898,
771,
6929,
876,
847,
3309,
13,
4706,
1683,
29901,
13,
9651,
736,
2533,
29898,
1311,
29897,
847,
3309,
13,
13,
1678,
822,
20431,
29898,
1311,
29892,
334,
5085,
1125,
13,
4706,
9995,
13,
4706,
319,
26127,
1078,
278,
5665,
491,
6790,
6273,
29889,
8011,
6030,
722,
583,
8679,
373,
565,
697,
29892,
13,
4706,
1023,
29892,
470,
2211,
6273,
526,
4502,
29889,
17090,
278,
1134,
310,
278,
5665,
338,
319,
29901,
13,
13,
4706,
3118,
23125,
29901,
2980,
1580,
11057,
263,
740,
310,
278,
1134,
285,
29898,
3784,
29901,
350,
29892,
2446,
29901,
319,
1149,
1121,
29901,
350,
29889,
13,
4706,
1857,
11524,
2582,
15712,
577,
2215,
29892,
322,
2446,
338,
278,
2446,
1543,
304,
20431,
964,
13,
4706,
1857,
297,
1797,
304,
736,
1121,
29889,
13,
13,
4706,
7803,
23125,
29901,
278,
937,
2980,
338,
278,
16717,
995,
363,
278,
11404,
362,
29889,
450,
1473,
2980,
13,
4706,
338,
278,
1021,
408,
363,
278,
697,
2980,
1206,
29889,
13,
13,
4706,
12753,
23125,
29901,
278,
937,
1023,
6273,
526,
278,
1021,
408,
363,
697,
322,
1023,
2980,
5717,
29889,
450,
13,
4706,
5684,
4654,
3443,
338,
263,
740,
7436,
304,
278,
1121,
310,
278,
11404,
362,
1434,
13,
4706,
7863,
278,
995,
29889,
13,
13,
4706,
584,
3207,
6389,
29901,
3987,
363,
920,
304,
6222,
278,
11404,
362,
13,
4706,
584,
2457,
29901,
11404,
630,
995,
13,
4706,
9995,
13,
4706,
16717,
353,
6213,
13,
4706,
1121,
29918,
2892,
353,
10110,
13,
4706,
565,
7431,
29898,
5085,
29897,
1275,
29871,
29896,
29901,
13,
9651,
3653,
353,
6389,
29961,
29900,
29962,
13,
4706,
25342,
7431,
29898,
5085,
29897,
1275,
29871,
29906,
29901,
13,
9651,
16717,
353,
6389,
29961,
29900,
29962,
13,
9651,
3653,
353,
6389,
29961,
29896,
29962,
13,
4706,
25342,
7431,
29898,
5085,
29897,
1275,
29871,
29941,
29901,
13,
9651,
16717,
353,
6389,
29961,
29900,
29962,
13,
9651,
3653,
353,
6389,
29961,
29896,
29962,
13,
9651,
1121,
29918,
2892,
353,
6389,
29961,
29906,
29962,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
877,
26193,
403,
4893,
29871,
29896,
29899,
29941,
6273,
29892,
426,
29900,
29913,
892,
2183,
4286,
4830,
29898,
2435,
29898,
5085,
4961,
13,
4706,
565,
7431,
29898,
5085,
29897,
1275,
29871,
29896,
29901,
13,
9651,
736,
1121,
29918,
2892,
29898,
1311,
29889,
8865,
29898,
29896,
467,
8771,
29918,
1563,
29898,
1311,
29889,
4102,
3285,
3653,
876,
13,
4706,
1683,
29901,
13,
9651,
736,
1121,
29918,
2892,
29898,
1311,
29889,
8771,
29918,
1563,
29898,
26776,
29892,
3653,
876,
13,
13,
1678,
822,
900,
29881,
29918,
1563,
29898,
1311,
29892,
5225,
29918,
1767,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
17090,
393,
278,
5665,
3161,
526,
310,
1134,
319,
29892,
900,
6289,
515,
2175,
304,
1492,
6257,
411,
13,
4706,
278,
16717,
995,
2183,
491,
5225,
29918,
1767,
313,
974,
1134,
319,
29897,
773,
263,
740,
310,
1134,
13,
4706,
3653,
29898,
3784,
29901,
350,
29892,
2446,
29901,
319,
29897,
1149,
350,
29889,
1857,
11524,
278,
900,
7176,
995,
577,
2215,
322,
2446,
338,
278,
13,
4706,
2446,
1543,
515,
278,
5665,
304,
900,
29881,
964,
1857,
29889,
13,
13,
4706,
8653,
19359,
877,
29874,
742,
525,
29890,
742,
525,
29883,
2824,
8771,
29918,
1563,
18959,
2962,
7464,
14013,
1857,
29892,
2446,
29901,
1857,
718,
518,
4622,
12622,
13,
4706,
6024,
2962,
742,
525,
29874,
742,
525,
29890,
742,
525,
29883,
2033,
13,
13,
4706,
584,
3207,
5225,
29918,
1767,
29901,
5225,
995,
304,
10032,
964,
13,
4706,
584,
3207,
3653,
29901,
7803,
3443,
740,
408,
5439,
491,
740,
10561,
13,
4706,
584,
2457,
29901,
995,
515,
900,
8497,
1819,
411,
3653,
964,
5225,
29918,
1767,
515,
2175,
304,
1492,
29889,
13,
4706,
9995,
13,
4706,
1121,
353,
5225,
29918,
1767,
13,
4706,
363,
1543,
297,
1583,
29901,
13,
9651,
1121,
353,
3653,
29898,
2914,
29892,
1543,
29897,
13,
4706,
736,
903,
6312,
29898,
2914,
29897,
13,
13,
1678,
822,
900,
29881,
29918,
1266,
29898,
1311,
29892,
5225,
29918,
1767,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
17090,
393,
278,
5665,
3161,
526,
310,
1134,
319,
29892,
900,
6289,
515,
1492,
304,
2175,
6257,
411,
13,
4706,
278,
16717,
995,
2183,
491,
5225,
29918,
1767,
313,
974,
1134,
319,
29897,
773,
263,
740,
310,
1134,
13,
4706,
3653,
29898,
4622,
29901,
319,
29892,
1857,
29901,
350,
29897,
1149,
350,
29889,
1857,
11524,
278,
900,
7176,
995,
577,
2215,
322,
2446,
338,
278,
13,
4706,
2446,
1543,
515,
278,
5665,
304,
900,
29881,
964,
1857,
29889,
13,
13,
4706,
8653,
19359,
877,
29874,
742,
525,
29890,
742,
525,
29883,
2824,
8771,
29918,
1563,
18959,
2962,
7464,
14013,
2446,
29892,
1857,
29901,
1857,
718,
518,
4622,
2314,
13,
4706,
6024,
2962,
742,
525,
29883,
742,
525,
29890,
742,
263,
2033,
13,
13,
4706,
584,
3207,
5225,
29918,
1767,
29901,
5225,
995,
304,
10032,
964,
13,
4706,
584,
3207,
3653,
29901,
7803,
3443,
740,
408,
5439,
491,
740,
10561,
13,
4706,
584,
2457,
29901,
995,
515,
900,
8497,
1819,
411,
3653,
964,
5225,
29918,
1767,
515,
1492,
304,
2175,
13,
4706,
9995,
13,
4706,
1121,
353,
5225,
29918,
1767,
13,
4706,
363,
1543,
297,
1583,
29889,
24244,
7295,
13,
9651,
1121,
353,
3653,
29898,
5029,
29892,
1121,
29897,
13,
4706,
736,
903,
6312,
29898,
2914,
29897,
13,
13,
1678,
822,
14319,
29898,
1311,
29892,
5665,
1125,
13,
4706,
9995,
13,
4706,
796,
4512,
278,
6087,
5665,
411,
278,
2183,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
7554,
4197,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
2314,
13,
4706,
17288,
29896,
29892,
29871,
29946,
511,
313,
29906,
29892,
29871,
29945,
511,
313,
29941,
29892,
29871,
29953,
4638,
13,
13,
4706,
584,
3207,
5665,
29901,
1473,
5665,
304,
14319,
13,
4706,
584,
2457,
29901,
6087,
5665,
503,
16242,
411,
2183,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
7554,
29918,
29873,
29898,
16506,
876,
13,
13,
1678,
822,
14319,
29918,
2541,
29918,
2248,
29898,
1311,
29892,
1369,
29922,
29900,
1125,
13,
4706,
9995,
13,
4706,
796,
4512,
278,
5665,
304,
967,
2380,
29892,
411,
278,
2380,
1641,
278,
1473,
1543,
310,
1269,
18761,
29889,
13,
13,
4706,
8653,
19359,
18959,
29874,
742,
525,
29890,
742,
525,
29883,
2033,
467,
7554,
29918,
2541,
29918,
2248,
580,
13,
4706,
518,
877,
29874,
742,
29871,
29900,
511,
6702,
29890,
742,
29871,
29896,
511,
6702,
29883,
742,
29871,
29906,
4638,
13,
13,
4706,
584,
2457,
29901,
5665,
503,
16242,
304,
967,
2380,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
7554,
29918,
2541,
29918,
2248,
29918,
29873,
29898,
2962,
876,
13,
13,
1678,
822,
26985,
29898,
1311,
29892,
1369,
29922,
29900,
1125,
13,
4706,
9995,
13,
4706,
10783,
267,
3017,
26985,
304,
304,
14319,
278,
5665,
411,
18111,
6257,
472,
1369,
29889,
13,
13,
4706,
8653,
19359,
18959,
29874,
742,
525,
29890,
742,
525,
29883,
2033,
467,
15172,
29898,
2962,
29922,
29896,
29897,
13,
4706,
17288,
29896,
29892,
525,
29874,
5477,
313,
29906,
29892,
525,
29890,
5477,
313,
29941,
29892,
525,
29883,
1495,
29962,
13,
13,
4706,
584,
3207,
1369,
29901,
14893,
1076,
310,
14319,
13,
4706,
584,
2457,
29901,
22447,
630,
5665,
6257,
472,
1369,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
15172,
29918,
29873,
29898,
2962,
876,
13,
13,
1678,
822,
6426,
29918,
7122,
29898,
1311,
29892,
916,
1125,
13,
4706,
9995,
13,
4706,
922,
3910,
322,
916,
1818,
367,
13725,
310,
313,
2558,
29892,
7865,
29897,
11000,
29889,
13,
4706,
960,
1583,
29889,
16506,
3743,
313,
29968,
29892,
478,
29897,
11000,
322,
916,
3743,
313,
29968,
29892,
399,
29897,
11000,
29892,
278,
736,
1121,
13,
4706,
338,
263,
5665,
310,
313,
29968,
29892,
313,
29963,
29892,
399,
876,
11000,
29889,
2811,
736,
871,
3161,
13,
4706,
988,
278,
1820,
4864,
297,
1716,
15602,
29889,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
511,
6702,
29883,
742,
29871,
29941,
4638,
467,
3993,
29918,
7122,
4197,
877,
29874,
742,
29871,
29906,
511,
6702,
29883,
742,
29871,
29945,
29897,
2314,
13,
4706,
518,
877,
29874,
742,
313,
29896,
29892,
29871,
29906,
8243,
6702,
29883,
742,
313,
29941,
29892,
29871,
29945,
28166,
13,
13,
4706,
584,
3207,
916,
29901,
5665,
304,
5988,
411,
13,
4706,
584,
2457,
29901,
8772,
5665,
310,
313,
29968,
29892,
313,
29963,
29892,
399,
876,
11000,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
7122,
29898,
1228,
29892,
525,
3993,
1495,
13,
13,
1678,
822,
5988,
29898,
1311,
29892,
916,
29892,
5988,
29918,
1853,
543,
3993,
29908,
1125,
13,
4706,
9995,
13,
4706,
922,
3910,
322,
916,
1818,
367,
13725,
310,
313,
2558,
29892,
7865,
29897,
11000,
29889,
960,
1583,
29889,
16506,
3743,
313,
29968,
29892,
478,
29897,
13,
4706,
11000,
322,
916,
3743,
313,
29968,
29892,
399,
29897,
11000,
29892,
278,
736,
1121,
338,
263,
5665,
310,
313,
29968,
29892,
313,
29963,
29892,
399,
876,
11000,
29889,
13,
4706,
960,
5988,
29918,
1853,
338,
376,
1563,
613,
478,
1819,
674,
2337,
367,
2198,
29892,
399,
1819,
1122,
367,
2198,
470,
6213,
29889,
13,
4706,
960,
5988,
29918,
1853,
338,
376,
1266,
613,
399,
1819,
674,
2337,
367,
2198,
29892,
399,
1819,
1122,
367,
2198,
470,
6213,
29889,
13,
4706,
960,
5988,
29918,
1853,
338,
376,
5561,
613,
478,
470,
399,
1122,
367,
2198,
470,
6213,
29892,
13,
4706,
541,
2360,
472,
278,
1021,
931,
29889,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
511,
6702,
29883,
742,
29871,
29941,
4638,
467,
7122,
4197,
877,
29874,
742,
29871,
29906,
511,
6702,
29883,
742,
29871,
29945,
29897,
1402,
376,
3993,
1159,
13,
4706,
518,
877,
29874,
742,
313,
29896,
29892,
29871,
29906,
8243,
6702,
29883,
742,
313,
29941,
29892,
29871,
29945,
28166,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
511,
6702,
29883,
742,
29871,
29941,
4638,
467,
7122,
4197,
877,
29874,
742,
29871,
29906,
511,
6702,
29883,
742,
29871,
29945,
29897,
2314,
13,
4706,
518,
877,
29874,
742,
313,
29896,
29892,
29871,
29906,
8243,
6702,
29883,
742,
313,
29941,
29892,
29871,
29945,
28166,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
4638,
467,
7122,
4197,
877,
29874,
742,
29871,
29941,
511,
6702,
29883,
742,
29871,
29946,
29897,
1402,
376,
1563,
1159,
13,
4706,
518,
877,
29874,
742,
313,
29896,
29892,
29871,
29941,
8243,
6702,
29890,
742,
313,
29906,
29892,
6213,
4638,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
4638,
467,
7122,
4197,
877,
29874,
742,
29871,
29941,
511,
6702,
29883,
742,
29871,
29946,
29897,
1402,
376,
1266,
1159,
13,
4706,
518,
877,
29874,
742,
313,
29896,
29892,
29871,
29941,
8243,
6702,
29883,
742,
313,
8516,
29892,
29871,
29946,
4638,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
4638,
467,
7122,
4197,
877,
29874,
742,
29871,
29941,
511,
6702,
29883,
742,
29871,
29946,
29897,
1402,
376,
5561,
1159,
13,
4706,
518,
877,
29874,
742,
313,
29896,
29892,
29871,
29941,
8243,
6702,
29890,
742,
313,
29906,
29892,
6213,
8243,
6702,
29883,
742,
313,
8516,
29892,
29871,
29946,
28166,
13,
13,
4706,
584,
3207,
916,
29901,
5665,
304,
5988,
411,
13,
4706,
584,
3207,
5988,
29918,
1853,
29901,
1580,
11057,
5988,
29918,
1853,
29892,
1122,
367,
376,
1563,
613,
376,
1266,
613,
470,
376,
5561,
29908,
13,
4706,
584,
2457,
29901,
2625,
8772,
5665,
310,
313,
29968,
29892,
313,
29963,
29892,
399,
876,
11000,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
7122,
29918,
29873,
29898,
1228,
29892,
5988,
29918,
1853,
876,
13,
13,
1678,
822,
2175,
29918,
7122,
29898,
1311,
29892,
916,
1125,
13,
4706,
9995,
13,
4706,
922,
3910,
322,
916,
1818,
367,
13725,
310,
313,
2558,
29892,
7865,
29897,
11000,
29889,
960,
1583,
29889,
16506,
3743,
313,
29968,
29892,
478,
29897,
13,
4706,
11000,
322,
916,
3743,
313,
29968,
29892,
399,
29897,
11000,
29892,
278,
736,
1121,
338,
263,
5665,
310,
313,
29968,
29892,
313,
29963,
29892,
399,
876,
11000,
29889,
13,
4706,
478,
1819,
674,
2337,
367,
2198,
29892,
399,
1819,
1122,
367,
2198,
470,
6213,
29889,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
4638,
467,
7122,
4197,
877,
29874,
742,
29871,
29941,
511,
6702,
29883,
742,
29871,
29946,
29897,
2314,
13,
4706,
518,
877,
29874,
742,
313,
29896,
29892,
29871,
29941,
8243,
6702,
29890,
742,
313,
29906,
29892,
6213,
4638,
13,
13,
4706,
584,
3207,
916,
29901,
5665,
304,
5988,
411,
13,
4706,
584,
2457,
29901,
2175,
8772,
5665,
310,
313,
29968,
29892,
313,
29963,
29892,
399,
876,
11000,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
7122,
29898,
1228,
29892,
376,
1563,
1159,
13,
13,
1678,
822,
1492,
29918,
7122,
29898,
1311,
29892,
916,
1125,
13,
4706,
9995,
13,
4706,
922,
3910,
322,
916,
1818,
367,
13725,
310,
313,
2558,
29892,
7865,
29897,
11000,
29889,
960,
1583,
29889,
16506,
3743,
313,
29968,
29892,
478,
29897,
13,
4706,
11000,
322,
916,
3743,
313,
29968,
29892,
399,
29897,
11000,
29892,
278,
736,
1121,
338,
263,
5665,
310,
313,
29968,
29892,
313,
29963,
29892,
399,
876,
11000,
29889,
13,
4706,
399,
1819,
674,
2337,
367,
6338,
29892,
478,
1819,
1122,
367,
2198,
470,
6213,
29889,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
4638,
467,
7122,
4197,
877,
29874,
742,
29871,
29941,
511,
6702,
29883,
742,
29871,
29946,
29897,
2314,
13,
4706,
518,
877,
29874,
742,
313,
29896,
29892,
29871,
29941,
8243,
6702,
29890,
742,
313,
29906,
29892,
6213,
4638,
13,
13,
4706,
584,
3207,
916,
29901,
5665,
304,
5988,
411,
13,
4706,
584,
2457,
29901,
1492,
8772,
5665,
310,
313,
29968,
29892,
313,
29963,
29892,
399,
876,
11000,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
7122,
29898,
1228,
29892,
376,
1266,
1159,
13,
13,
1678,
822,
11420,
29918,
7122,
29898,
1311,
29892,
916,
1125,
13,
4706,
9995,
13,
4706,
922,
3910,
322,
916,
1818,
367,
13725,
310,
313,
2558,
29892,
7865,
29897,
11000,
29889,
960,
1583,
29889,
16506,
3743,
313,
29968,
29892,
478,
29897,
13,
4706,
11000,
322,
916,
3743,
313,
29968,
29892,
399,
29897,
11000,
29892,
278,
736,
1121,
338,
263,
5665,
310,
313,
29968,
29892,
313,
29963,
29892,
399,
876,
11000,
29889,
13,
4706,
3118,
310,
478,
470,
399,
674,
2337,
367,
451,
6213,
29892,
541,
278,
916,
1122,
367,
6213,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
4638,
467,
5561,
29918,
7122,
4197,
877,
29874,
742,
29871,
29941,
511,
6702,
29883,
742,
29871,
29946,
29897,
1402,
376,
5561,
1159,
13,
4706,
518,
877,
29874,
742,
313,
29896,
29892,
29871,
29941,
8243,
6702,
29890,
742,
313,
29906,
29892,
6213,
8243,
6702,
29883,
742,
313,
8516,
29892,
29871,
29946,
28166,
13,
13,
4706,
584,
3207,
916,
29901,
5665,
304,
5988,
411,
13,
4706,
584,
2457,
29901,
11420,
8772,
5665,
310,
313,
29968,
29892,
313,
29963,
29892,
399,
876,
11000,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
7122,
29898,
1228,
29892,
376,
5561,
1159,
13,
13,
1678,
822,
8877,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
3455,
654,
278,
5665,
2729,
373,
24064,
278,
24384,
3653,
29889,
13,
13,
4706,
8653,
19359,
4197,
29899,
29896,
29892,
29871,
29896,
29892,
448,
29906,
29892,
29871,
29906,
14664,
16707,
29898,
2892,
921,
29901,
921,
529,
29871,
29900,
29897,
13,
4706,
9310,
29899,
29896,
29892,
448,
29906,
1402,
518,
29896,
29892,
29871,
29906,
2314,
13,
13,
4706,
584,
3207,
3653,
29901,
24384,
304,
8877,
373,
13,
4706,
584,
2457,
29901,
18761,
310,
8877,
287,
15602,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
16707,
29918,
29873,
7373,
6312,
29892,
3653,
876,
13,
13,
1678,
822,
27831,
29898,
1311,
29892,
2159,
1125,
13,
4706,
9995,
13,
4706,
3455,
2187,
278,
3161,
964,
6471,
310,
3309,
2159,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
29892,
29871,
29955,
29892,
29871,
29947,
14664,
2972,
287,
29898,
29906,
29897,
13,
4706,
5519,
29896,
29892,
29871,
29906,
1402,
518,
29941,
29892,
29871,
29946,
1402,
518,
29945,
29892,
29871,
29953,
1402,
518,
29955,
29892,
29871,
29947,
5262,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
29892,
29871,
29955,
29892,
29871,
29947,
14664,
2972,
287,
29898,
29941,
29897,
13,
4706,
5519,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
1402,
518,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
1402,
518,
29955,
29892,
29871,
29947,
5262,
13,
13,
4706,
450,
1833,
8877,
756,
472,
3203,
697,
1543,
541,
1122,
505,
3109,
1135,
2159,
3161,
29889,
13,
13,
4706,
584,
3207,
2159,
29901,
2159,
310,
278,
23629,
13,
4706,
584,
2457,
29901,
5665,
8877,
287,
964,
6471,
310,
3309,
2159,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
2972,
287,
29918,
29873,
7373,
6312,
29892,
2159,
876,
13,
13,
1678,
822,
2243,
4821,
29898,
1311,
29892,
2159,
29892,
4331,
29922,
29896,
1125,
13,
4706,
9995,
13,
4706,
1632,
4410,
3161,
297,
4343,
2159,
10930,
491,
6819,
263,
2243,
4821,
3474,
975,
963,
29889,
13,
13,
4706,
450,
1833,
3474,
756,
472,
3203,
697,
1543,
541,
1122,
505,
3109,
1135,
2159,
3161,
13,
13,
4706,
584,
3207,
2159,
29901,
2159,
310,
2243,
4821,
3474,
13,
4706,
584,
3207,
4331,
29901,
4331,
2159,
1546,
5417,
13,
4706,
584,
2457,
29901,
5665,
310,
2243,
4821,
5417,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
2536,
4821,
29918,
29873,
7373,
6312,
29892,
2159,
29892,
4331,
876,
13,
13,
1678,
822,
12705,
29898,
1311,
29892,
1820,
29922,
8516,
29892,
11837,
29922,
8824,
1125,
13,
4706,
9995,
13,
4706,
10783,
267,
3017,
2656,
322,
967,
4502,
6273,
304,
2656,
278,
1881,
29889,
13,
13,
4706,
8653,
19359,
4197,
29906,
29892,
29871,
29896,
29892,
29871,
29946,
29892,
29871,
29941,
14664,
24582,
580,
13,
4706,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29962,
13,
13,
4706,
584,
3207,
1820,
29901,
2656,
773,
1820,
740,
13,
4706,
584,
3207,
11837,
29901,
736,
1051,
18764,
287,
470,
451,
13,
4706,
584,
2457,
29901,
12705,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
24582,
29918,
29873,
29898,
1989,
29922,
1989,
29892,
11837,
29922,
24244,
876,
13,
13,
1678,
822,
1797,
29918,
1609,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
1394,
8623,
278,
1881,
5034,
304,
3653,
13,
13,
4706,
8653,
19359,
4197,
29898,
29906,
29892,
525,
29874,
5477,
313,
29896,
29892,
525,
29890,
5477,
313,
29946,
29892,
525,
29883,
5477,
313,
29941,
29892,
525,
29881,
1495,
14664,
2098,
29918,
1609,
29898,
2892,
921,
29901,
921,
29961,
29900,
2314,
13,
4706,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29962,
13,
13,
4706,
584,
3207,
3653,
29901,
1797,
491,
3653,
277,
265,
13,
4706,
584,
2457,
29901,
10372,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
2098,
29918,
1609,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
11837,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
18764,
287,
5665,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
24244,
580,
13,
4706,
518,
29941,
29892,
29871,
29906,
29892,
29871,
29896,
29962,
13,
13,
4706,
584,
2457,
29901,
18764,
287,
5665,
13,
4706,
9995,
13,
4706,
736,
18764,
287,
29898,
1311,
29897,
13,
13,
1678,
822,
8359,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
5665,
310,
8359,
3161,
29889,
10619,
29879,
1818,
367,
6608,
519,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29941,
29892,
29871,
29941,
29892,
29871,
29946,
14664,
5721,
5562,
580,
13,
4706,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29962,
13,
13,
4706,
584,
2457,
29901,
5665,
310,
8359,
3161,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
5721,
5562,
29918,
29873,
3101,
13,
13,
1678,
822,
8359,
29918,
1609,
29898,
1311,
29892,
3653,
1125,
13,
4706,
9995,
13,
4706,
16969,
5665,
310,
3161,
1058,
526,
8359,
491,
278,
4502,
740,
29889,
450,
736,
13,
4706,
995,
310,
3653,
1818,
367,
6608,
519,
29889,
1932,
1023,
3161,
526,
8359,
491,
3653,
29892,
278,
937,
338,
4586,
29889,
13,
13,
4706,
584,
3207,
3653,
29901,
740,
304,
671,
363,
3683,
2827,
8359,
2264,
13,
4706,
584,
2457,
29901,
3161,
8359,
491,
3653,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
5721,
5562,
29918,
1609,
29918,
29873,
29898,
9891,
876,
13,
13,
1678,
822,
22780,
29898,
1311,
29892,
1369,
29892,
2745,
1125,
13,
4706,
9995,
13,
4706,
323,
6926,
263,
22780,
310,
278,
5665,
6257,
472,
1369,
322,
2745,
541,
451,
3704,
2745,
29889,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
14664,
18337,
29898,
29896,
29892,
29871,
29906,
29897,
13,
4706,
518,
29906,
29962,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
14664,
18337,
29898,
29896,
29892,
29871,
29941,
29897,
13,
4706,
518,
29906,
29892,
29871,
29941,
29962,
13,
13,
4706,
584,
3207,
1369,
29901,
6257,
2380,
13,
4706,
584,
3207,
2745,
29901,
17140,
2380,
13,
4706,
584,
2457,
29901,
22780,
3704,
1369,
2745,
541,
451,
3704,
2745,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
800,
29889,
18337,
29918,
29873,
29898,
2962,
29892,
2745,
876,
13,
13,
1678,
822,
304,
29918,
1761,
29898,
1311,
29892,
302,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
1281,
369,
1372,
5665,
304,
1051,
310,
3161,
29889,
13,
13,
4706,
8653,
1134,
29898,
11762,
29898,
2636,
467,
517,
29918,
1761,
3101,
13,
4706,
1051,
13,
13,
4706,
8653,
1134,
29898,
11762,
29898,
2636,
876,
13,
4706,
13303,
29889,
13096,
5570,
29889,
20529,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
517,
29918,
1761,
580,
13,
4706,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
13,
13,
4706,
584,
3207,
302,
29901,
11190,
302,
3161,
310,
5665,
565,
451,
6213,
13,
4706,
584,
2457,
29901,
1051,
310,
3161,
297,
5665,
13,
4706,
9995,
13,
4706,
565,
302,
338,
6213,
29901,
13,
9651,
1583,
29889,
8173,
580,
13,
9651,
736,
1583,
3032,
3188,
29918,
16506,
13,
4706,
1683,
29901,
13,
9651,
736,
1583,
29889,
8173,
2141,
19730,
29898,
29876,
467,
1761,
580,
13,
13,
1678,
822,
1051,
29898,
1311,
29892,
302,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
1281,
369,
1372,
5665,
304,
1051,
310,
3161,
29889,
13,
13,
4706,
8653,
1134,
29898,
11762,
29898,
2636,
467,
1761,
3101,
13,
4706,
1051,
13,
13,
4706,
8653,
1134,
29898,
11762,
29898,
2636,
876,
13,
4706,
13303,
29889,
13096,
5570,
29889,
20529,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
14664,
1761,
580,
13,
4706,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
13,
13,
4706,
584,
3207,
302,
29901,
11190,
302,
3161,
310,
8617,
3977,
321,
361,
451,
6213,
13,
4706,
584,
2457,
29901,
1051,
310,
3161,
297,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
517,
29918,
1761,
29898,
29876,
29922,
29876,
29897,
13,
13,
1678,
822,
304,
29918,
842,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
1281,
369,
1372,
5665,
304,
263,
731,
310,
3161,
29889,
13,
13,
4706,
8653,
1134,
29898,
11762,
4197,
2314,
467,
517,
29918,
842,
580,
13,
4706,
731,
13,
13,
4706,
8653,
1134,
29898,
11762,
29898,
2636,
876,
13,
4706,
13303,
29889,
13096,
5570,
29889,
20529,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29906,
14664,
517,
29918,
842,
580,
13,
4706,
426,
29896,
29892,
29871,
29906,
29913,
13,
13,
4706,
584,
2457,
29901,
842,
310,
3161,
297,
5665,
13,
4706,
9995,
13,
4706,
736,
731,
29898,
1311,
29889,
16506,
29897,
13,
13,
1678,
822,
731,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
1281,
369,
1372,
5665,
304,
263,
731,
310,
3161,
29889,
13,
13,
4706,
8653,
1134,
29898,
11762,
4197,
2314,
467,
517,
29918,
842,
580,
13,
4706,
731,
13,
13,
4706,
8653,
1134,
29898,
11762,
29898,
2636,
876,
13,
4706,
13303,
29889,
13096,
5570,
29889,
20529,
13,
13,
4706,
8653,
19359,
4197,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29906,
14664,
842,
580,
13,
4706,
426,
29896,
29892,
29871,
29906,
29913,
13,
13,
4706,
584,
2457,
29901,
842,
310,
3161,
297,
5665,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
517,
29918,
842,
580,
13,
13,
1678,
822,
304,
29918,
8977,
29898,
1311,
29892,
2322,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
1281,
369,
1372,
5665,
310,
313,
2558,
29892,
7865,
29897,
11000,
304,
263,
8600,
29889,
13,
13,
4706,
8653,
1134,
29898,
11762,
4197,
877,
29874,
742,
29871,
29896,
4638,
467,
517,
29918,
8977,
3101,
13,
4706,
9657,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
4638,
467,
517,
29918,
8977,
580,
13,
4706,
11117,
29874,
2396,
29871,
29896,
29892,
525,
29890,
2396,
29871,
29906,
29913,
13,
13,
4706,
584,
3207,
2322,
29901,
1815,
367,
263,
1246,
519,
5225,
2980,
740,
29889,
1932,
451,
6213,
29892,
278,
4133,
13,
9651,
8600,
338,
263,
16250,
29889,
4381,
8977,
411,
2322,
408,
995,
363,
4567,
6611,
29889,
960,
278,
13,
9651,
995,
338,
451,
1246,
519,
29892,
769,
263,
5225,
2980,
14013,
740,
338,
2825,
7863,
278,
13,
9651,
995,
322,
1304,
363,
16250,
29889,
4381,
8977,
13,
4706,
584,
2457,
29901,
8600,
515,
5665,
310,
313,
2558,
29892,
7865,
29897,
3161,
13,
4706,
9995,
13,
4706,
8600,
353,
6571,
13,
4706,
363,
321,
297,
1583,
29889,
16506,
29901,
13,
9651,
8600,
29961,
29872,
29961,
29900,
5262,
353,
321,
29961,
29896,
29962,
13,
4706,
565,
2322,
338,
6213,
29901,
13,
9651,
736,
8600,
13,
4706,
1683,
29901,
13,
9651,
565,
756,
5552,
29898,
4381,
29892,
525,
1649,
4804,
1649,
29374,
13,
18884,
736,
16250,
29889,
4381,
8977,
29898,
4381,
29892,
8600,
29897,
13,
9651,
1683,
29901,
13,
18884,
736,
16250,
29889,
4381,
8977,
29898,
2892,
29901,
2322,
29892,
8600,
29897,
13,
13,
1678,
822,
9657,
29898,
1311,
29892,
2322,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
1281,
369,
1372,
5665,
310,
313,
2558,
29892,
7865,
29897,
11000,
304,
263,
8600,
29889,
13,
13,
4706,
8653,
1134,
29898,
11762,
4197,
877,
29874,
742,
29871,
29896,
4638,
467,
8977,
3101,
13,
4706,
9657,
13,
13,
4706,
8653,
19359,
4197,
877,
29874,
742,
29871,
29896,
511,
6702,
29890,
742,
29871,
29906,
4638,
467,
8977,
580,
13,
4706,
11117,
29874,
2396,
29871,
29896,
29892,
525,
29890,
2396,
29871,
29906,
29913,
13,
13,
4706,
584,
3207,
2322,
29901,
1815,
367,
263,
1246,
519,
5225,
2980,
740,
29889,
1932,
451,
6213,
29892,
278,
4133,
13,
9651,
8600,
338,
263,
16250,
29889,
4381,
8977,
411,
2322,
408,
995,
363,
4567,
6611,
29889,
960,
278,
13,
9651,
995,
338,
451,
1246,
519,
29892,
769,
263,
5225,
2980,
14013,
740,
338,
2825,
7863,
278,
13,
9651,
995,
322,
1304,
363,
16250,
29889,
4381,
8977,
13,
4706,
584,
2457,
29901,
8600,
515,
5665,
310,
313,
2558,
29892,
7865,
29897,
3161,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
517,
29918,
8977,
29898,
4381,
29922,
4381,
29897,
13,
13,
1678,
396,
282,
2904,
524,
29901,
11262,
29922,
517,
29877,
29899,
13011,
29899,
2997,
29879,
13,
1678,
822,
304,
29918,
1445,
29898,
1311,
29892,
2224,
29892,
28552,
29922,
8516,
29892,
4464,
2433,
14554,
742,
6835,
292,
10457,
29896,
29892,
8025,
29922,
8516,
29892,
4436,
29922,
8516,
29892,
13,
18884,
25899,
29922,
8516,
29892,
27122,
5563,
29922,
29929,
29892,
3402,
29922,
8516,
29892,
1423,
10457,
29896,
29892,
2225,
300,
29922,
8516,
29892,
18094,
29922,
8516,
29892,
13,
18884,
24221,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
317,
5989,
278,
5665,
304,
263,
934,
491,
14012,
851,
29898,
1311,
29897,
607,
7415,
851,
29898,
1311,
29889,
517,
29918,
1761,
16655,
960,
13,
4706,
28552,
338,
3342,
674,
2012,
6222,
1583,
29889,
5675,
29918,
1807,
29898,
6144,
19657,
29897,
13,
13,
4706,
584,
3207,
2224,
29901,
2224,
304,
2436,
934,
13,
4706,
584,
3207,
28552,
29901,
565,
3342,
29892,
674,
1246,
1207,
29918,
1807,
29898,
6144,
19657,
29897,
322,
4078,
393,
304,
934,
29889,
13,
4706,
584,
3207,
4464,
29901,
934,
1722,
4464,
13,
4706,
584,
3207,
6835,
292,
29901,
4502,
304,
4240,
1144,
29889,
3150,
13,
4706,
584,
3207,
8025,
29901,
4502,
304,
4240,
1144,
29889,
3150,
13,
4706,
584,
3207,
4436,
29901,
4502,
304,
4240,
1144,
29889,
3150,
13,
4706,
584,
3207,
25899,
29901,
4502,
304,
4240,
1144,
29889,
3150,
13,
4706,
584,
3207,
24221,
29901,
24221,
3402,
13,
4706,
584,
3207,
27122,
5563,
29901,
4502,
304,
330,
7554,
29889,
3150,
13,
4706,
584,
3207,
3402,
29901,
4502,
304,
301,
29920,
655,
29889,
3150,
13,
4706,
584,
3207,
1423,
29901,
4502,
304,
301,
29920,
655,
29889,
3150,
13,
4706,
584,
3207,
2225,
300,
29901,
4502,
304,
301,
29920,
655,
29889,
3150,
13,
4706,
584,
3207,
18094,
29901,
4502,
304,
301,
29920,
655,
29889,
3150,
13,
4706,
9995,
13,
4706,
411,
15968,
29918,
3539,
29918,
3150,
29898,
2084,
29892,
4464,
29922,
8513,
29892,
6835,
292,
29922,
9040,
292,
29892,
8025,
29922,
22331,
29892,
13,
462,
462,
29871,
4436,
29922,
12523,
29892,
25899,
29922,
1482,
1220,
29892,
24221,
29922,
510,
2590,
29892,
13,
462,
462,
29871,
27122,
5563,
29922,
510,
2139,
5563,
29892,
3402,
29922,
4830,
29892,
1423,
29922,
3198,
29892,
13,
462,
462,
29871,
2225,
300,
29922,
4569,
300,
29892,
18094,
29922,
26705,
29897,
408,
1962,
29901,
13,
9651,
565,
28552,
29901,
13,
18884,
1962,
29889,
3539,
29898,
28319,
29889,
29884,
29898,
1311,
29889,
5675,
29918,
1807,
29898,
6144,
19657,
4961,
13,
9651,
1683,
29901,
13,
18884,
1962,
29889,
3539,
29898,
28319,
29889,
29884,
29898,
710,
29898,
1311,
4961,
13,
13,
1678,
822,
304,
29918,
3126,
29880,
29898,
1311,
29892,
2224,
29892,
4464,
2433,
29893,
29890,
742,
24221,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
317,
5989,
278,
5665,
304,
263,
4390,
29880,
934,
29889,
7806,
1543,
338,
20545,
773,
4390,
29889,
29881,
17204,
769,
3971,
13,
4706,
411,
263,
25899,
2903,
1218,
1269,
1543,
29889,
13,
13,
4706,
584,
3207,
2224,
29901,
2224,
304,
2436,
934,
13,
4706,
584,
3207,
4464,
29901,
4464,
304,
2436,
297,
29892,
21274,
304,
525,
29893,
29915,
304,
26556,
8118,
13,
4706,
584,
3207,
24221,
29901,
24221,
3402,
13,
4706,
9995,
13,
4706,
411,
15968,
29918,
3539,
29918,
3150,
29898,
2084,
29892,
4464,
29922,
8513,
29892,
24221,
29922,
510,
2590,
29897,
408,
1962,
29901,
13,
9651,
1962,
29889,
3539,
3552,
1311,
29889,
1958,
29898,
3126,
29889,
29881,
17204,
467,
5675,
29918,
1807,
28909,
29876,
1495,
718,
11297,
29876,
2824,
12508,
877,
9420,
29899,
29947,
8785,
13,
13,
1678,
822,
304,
29918,
3126,
29898,
1311,
29892,
2224,
29892,
3876,
29918,
2378,
29922,
5574,
29892,
4464,
29922,
16365,
29918,
20387,
29892,
24221,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
317,
5989,
278,
5665,
304,
263,
4390,
934,
29889,
960,
3876,
29918,
2378,
338,
5852,
29892,
769,
278,
5665,
674,
367,
3971,
13,
4706,
304,
4390,
411,
385,
1409,
472,
278,
3876,
29889,
960,
372,
338,
7700,
29892,
769,
278,
5665,
674,
367,
11543,
515,
13,
4706,
263,
5665,
310,
313,
2558,
29892,
7865,
29897,
11000,
304,
263,
8600,
577,
393,
278,
4390,
3876,
338,
263,
8600,
29889,
13,
13,
4706,
584,
3207,
2224,
29901,
2224,
304,
2436,
934,
13,
4706,
584,
3207,
3876,
29918,
2378,
29901,
2436,
4390,
3876,
408,
385,
1409,
470,
8600,
13,
4706,
584,
3207,
4464,
29901,
934,
1722,
4464,
13,
4706,
9995,
13,
4706,
411,
15968,
29918,
3539,
29918,
3150,
29898,
2084,
29892,
4464,
29922,
8513,
29892,
24221,
29922,
510,
2590,
29897,
408,
1962,
29901,
13,
9651,
565,
3876,
29918,
2378,
29901,
13,
18884,
4390,
29889,
15070,
29898,
1311,
29889,
517,
29918,
1761,
3285,
1962,
29897,
13,
9651,
1683,
29901,
13,
18884,
4390,
29889,
15070,
29898,
1311,
29889,
517,
29918,
8977,
3285,
1962,
29897,
13,
13,
1678,
822,
304,
29918,
7638,
29898,
1311,
29892,
2224,
29892,
4464,
29922,
16365,
29918,
20387,
29892,
23725,
2433,
24633,
742,
24221,
29922,
8516,
29892,
13,
1669,
25899,
2433,
742,
3579,
23479,
7529,
1125,
13,
4706,
9995,
13,
4706,
317,
5989,
278,
5665,
304,
263,
11799,
934,
29889,
7806,
1543,
881,
367,
385,
4256,
519,
607,
674,
367,
17832,
13,
4706,
304,
278,
3161,
310,
1269,
1948,
29889,
13,
13,
4706,
584,
3207,
2224,
29901,
2224,
304,
2436,
934,
13,
4706,
584,
3207,
4464,
29901,
934,
1722,
4464,
13,
4706,
584,
3207,
23725,
29901,
4502,
304,
11799,
29889,
13236,
13,
4706,
584,
3207,
19200,
7529,
29901,
4502,
304,
11799,
29889,
13236,
13,
4706,
9995,
13,
13,
4706,
565,
525,
29890,
29915,
297,
4464,
29901,
13,
9651,
25899,
353,
6213,
13,
13,
4706,
411,
15968,
29918,
3539,
29918,
3150,
29898,
2084,
29892,
4464,
29922,
8513,
29892,
24221,
29922,
510,
2590,
29892,
13,
462,
462,
29871,
25899,
29922,
1482,
1220,
29897,
408,
1962,
29901,
13,
9651,
11799,
29918,
13236,
353,
11799,
29889,
13236,
29898,
4905,
29892,
23725,
29922,
15321,
781,
29892,
3579,
23479,
7529,
29897,
13,
9651,
363,
1948,
297,
1583,
29901,
13,
18884,
11799,
29918,
13236,
29889,
13236,
340,
4197,
28319,
29889,
29884,
29898,
710,
29898,
5029,
876,
363,
1543,
297,
1948,
2314,
13,
13,
1678,
822,
903,
517,
29918,
22793,
29941,
29918,
1609,
29918,
1972,
29898,
1311,
29892,
11009,
29892,
4576,
1125,
13,
4706,
9995,
13,
4706,
317,
5989,
278,
5665,
304,
21120,
29941,
2566,
491,
19056,
2346,
29889,
13,
4706,
7806,
1543,
881,
367,
385,
4256,
519,
607,
674,
367,
17832,
13,
4706,
304,
278,
3161,
310,
1269,
1948,
29889,
17157,
1591,
1818,
367,
2825,
297,
6564,
29889,
13,
13,
4706,
584,
3207,
11009,
29901,
2224,
470,
21120,
3957,
29892,
10677,
13,
4706,
584,
3207,
4576,
29901,
3758,
2346,
1347,
13,
4706,
9995,
13,
4706,
11009,
29889,
4258,
329,
331,
1384,
29898,
2850,
29892,
1583,
29897,
13,
13,
1678,
822,
903,
517,
29918,
22793,
29941,
29918,
1609,
29918,
2371,
29898,
1311,
29892,
11009,
29892,
1591,
29918,
978,
1125,
13,
4706,
9995,
13,
4706,
317,
5989,
278,
5665,
304,
278,
6790,
1591,
310,
21120,
29941,
2566,
29889,
13,
4706,
7806,
1543,
508,
367,
263,
8600,
29892,
4257,
23583,
29892,
18761,
470,
1051,
29889,
13,
4706,
17157,
1591,
1818,
367,
2825,
297,
6564,
29889,
13,
13,
4706,
584,
3207,
11009,
29901,
2224,
470,
21120,
3957,
29892,
10677,
13,
4706,
584,
3207,
1591,
29918,
978,
29901,
1591,
1024,
1347,
13,
4706,
9995,
13,
4706,
822,
903,
7851,
29918,
667,
29898,
667,
1125,
13,
9651,
565,
338,
8758,
29898,
667,
29892,
9657,
1125,
13,
18884,
28730,
353,
13420,
15300,
7122,
29898,
667,
29889,
8149,
3101,
13,
18884,
2058,
8948,
414,
353,
13420,
15300,
7122,
877,
17901,
334,
7431,
29898,
667,
876,
13,
18884,
4576,
353,
525,
19460,
11646,
6571,
21313,
1800,
15673,
21313,
1800,
4286,
4830,
29898,
2371,
29918,
978,
29892,
28730,
29892,
2058,
8948,
414,
29897,
13,
18884,
11009,
29889,
7978,
29898,
2850,
29892,
18761,
29898,
667,
29889,
5975,
22130,
13,
9651,
25342,
338,
29918,
17514,
23583,
29898,
667,
1125,
13,
18884,
28730,
353,
13420,
15300,
7122,
29898,
667,
3032,
9621,
29897,
13,
18884,
2058,
8948,
414,
353,
13420,
15300,
7122,
877,
17901,
334,
7431,
29898,
667,
876,
13,
18884,
4576,
353,
525,
19460,
11646,
6571,
21313,
1800,
15673,
21313,
1800,
4286,
4830,
29898,
2371,
29918,
978,
29892,
28730,
29892,
2058,
8948,
414,
29897,
13,
18884,
11009,
29889,
7978,
29898,
2850,
29892,
2944,
29897,
13,
9651,
25342,
338,
8758,
29898,
667,
29892,
313,
1761,
29892,
18761,
22164,
13,
18884,
2058,
8948,
414,
353,
13420,
15300,
7122,
877,
17901,
334,
7431,
29898,
667,
876,
13,
18884,
4576,
353,
525,
19460,
11646,
6571,
15673,
21313,
1800,
4286,
4830,
29898,
2371,
29918,
978,
29892,
2058,
8948,
414,
29897,
13,
18884,
11009,
29889,
7978,
29898,
2850,
29892,
2944,
29897,
13,
9651,
1683,
29901,
13,
18884,
12020,
20948,
877,
667,
1818,
367,
697,
310,
9657,
29892,
4257,
23583,
29892,
18761,
470,
1051,
2355,
6571,
29915,
13,
462,
18884,
869,
4830,
29898,
1853,
29898,
667,
4961,
13,
13,
4706,
1583,
29889,
1454,
29918,
4204,
7373,
7851,
29918,
667,
29897,
13,
13,
1678,
822,
304,
29918,
22793,
29941,
29898,
1311,
29892,
11009,
29892,
3646,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
9995,
13,
4706,
317,
5989,
278,
5665,
304,
21120,
29941,
2566,
29889,
13,
4706,
17157,
1591,
1818,
367,
2825,
297,
6564,
29889,
13,
4706,
450,
1591,
10938,
338,
10115,
1127,
515,
278,
3161,
297,
278,
5665,
13,
4706,
565,
871,
3646,
1591,
1024,
338,
19056,
29889,
13,
13,
4706,
8653,
19359,
4197,
29898,
29896,
29892,
525,
21599,
5477,
313,
29906,
29892,
525,
27006,
1495,
29962,
2144,
13,
18884,
869,
517,
29918,
22793,
29941,
877,
7193,
29889,
2585,
742,
525,
19460,
11646,
1404,
313,
333,
29892,
1024,
29897,
15673,
313,
14579,
1577,
29897,
1495,
13,
13,
4706,
8653,
19359,
4197,
10998,
333,
2396,
29871,
29896,
29892,
525,
978,
2396,
525,
21599,
16675,
11117,
333,
2396,
29871,
29906,
29892,
525,
978,
2396,
525,
27006,
29915,
6525,
467,
517,
29918,
22793,
29941,
29898,
13082,
29892,
525,
1792,
1495,
13,
13,
4706,
584,
3207,
11009,
29901,
2224,
470,
21120,
3957,
29892,
10677,
13,
4706,
584,
3207,
3646,
29901,
3758,
2346,
1347,
470,
1591,
1024,
13,
4706,
584,
3207,
6389,
29901,
4502,
304,
21120,
29941,
29889,
6915,
13,
4706,
584,
3207,
9049,
5085,
29901,
4502,
304,
21120,
29941,
29889,
6915,
13,
4706,
9995,
13,
4706,
396,
282,
2904,
524,
29901,
11262,
29922,
1217,
29899,
14242,
13,
4706,
4635,
29918,
13087,
353,
337,
29889,
12198,
29898,
29878,
12215,
7851,
29989,
5504,
2144,
29879,
29974,
8941,
742,
13449,
29922,
276,
29889,
6259,
6632,
1525,
23487,
29897,
13,
4706,
565,
4635,
29918,
13087,
29889,
4352,
29898,
5182,
1125,
13,
9651,
4635,
29918,
29888,
353,
1583,
3032,
517,
29918,
22793,
29941,
29918,
1609,
29918,
1972,
13,
4706,
1683,
29901,
13,
9651,
4635,
29918,
29888,
353,
1583,
3032,
517,
29918,
22793,
29941,
29918,
1609,
29918,
2371,
13,
13,
4706,
565,
338,
8758,
29898,
13082,
29892,
313,
22793,
29941,
29889,
5350,
29892,
21120,
29941,
29889,
19890,
22164,
13,
9651,
4635,
29918,
29888,
29898,
13082,
29892,
3646,
29897,
13,
9651,
11009,
29889,
15060,
580,
13,
4706,
25342,
338,
8758,
29898,
13082,
29892,
851,
1125,
13,
9651,
411,
21120,
29941,
29889,
6915,
29898,
13082,
29892,
334,
5085,
29892,
3579,
19290,
29897,
408,
1881,
29918,
13082,
29901,
13,
18884,
4635,
29918,
29888,
29898,
2080,
29918,
13082,
29892,
3646,
29897,
13,
18884,
1881,
29918,
13082,
29889,
15060,
580,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
877,
13082,
1818,
367,
263,
1818,
367,
263,
934,
2224,
470,
21120,
29941,
15160,
29914,
19890,
1495,
13,
13,
1678,
822,
304,
29918,
15112,
29898,
1311,
29892,
4341,
29922,
8516,
1125,
13,
4706,
396,
282,
2904,
524,
29901,
11262,
29922,
5215,
29899,
2704,
13,
4706,
9995,
13,
4706,
1281,
369,
1372,
5665,
304,
263,
11701,
3630,
4308,
773,
11701,
29889,
17271,
29889,
3166,
29918,
3757,
4339,
13,
13,
4706,
584,
3207,
4341,
29901,
4341,
363,
11701,
304,
671,
13,
4706,
584,
2457,
29901,
3630,
4308,
310,
5665,
13,
4706,
9995,
13,
4706,
1053,
11701,
13,
4706,
736,
11701,
29889,
17271,
29889,
3166,
29918,
3757,
4339,
29898,
1311,
29889,
517,
29918,
1761,
3285,
4341,
29922,
13099,
29897,
13,
13,
1678,
822,
1510,
29898,
1311,
29892,
302,
29922,
29896,
29900,
29892,
9066,
29922,
3285,
1591,
23479,
543,
12857,
613,
5785,
23479,
543,
29887,
613,
954,
2520,
543,
7099,
3039,
613,
13,
632,
851,
2520,
543,
1563,
613,
4567,
791,
13776,
1125,
13,
4706,
9995,
13,
4706,
4721,
4349,
1596,
937,
302,
4206,
310,
5665,
408,
263,
1591,
29889,
2823,
13,
4706,
2045,
597,
2966,
21454,
29889,
990,
29914,
579,
273,
262,
29914,
4691,
29899,
3891,
5987,
363,
4902,
373,
4434,
5987,
4128,
13,
13,
4706,
584,
3207,
302,
29901,
9681,
310,
4206,
304,
1510,
13,
4706,
584,
3207,
9066,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
584,
3207,
1591,
23479,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
584,
3207,
5785,
23479,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
584,
3207,
954,
2520,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
584,
3207,
851,
2520,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
584,
3207,
4567,
791,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
9995,
13,
4706,
20917,
29918,
11762,
353,
1583,
29889,
3891,
5987,
29898,
29876,
29922,
29876,
29892,
9066,
29922,
13662,
29892,
1591,
23479,
29922,
2371,
23479,
29892,
13,
462,
462,
418,
5785,
23479,
29922,
7411,
23479,
29892,
954,
2520,
29922,
1949,
2520,
29892,
851,
2520,
29922,
710,
2520,
29892,
13,
462,
462,
418,
4567,
791,
29922,
27259,
791,
29897,
13,
4706,
1596,
29898,
689,
19667,
29918,
11762,
29897,
13,
13,
1678,
822,
903,
276,
558,
29918,
1420,
23538,
1311,
1125,
13,
4706,
9995,
13,
4706,
2178,
1242,
29871,
5641,
1656,
4050,
4544,
6131,
13,
4706,
584,
2457,
29901,
3824,
29871,
29896,
29900,
4206,
310,
848,
408,
385,
4544,
1591,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
3891,
5987,
29898,
29896,
29900,
29892,
1591,
23479,
2433,
1420,
1495,
13,
13,
1678,
822,
4434,
5987,
29898,
1311,
29892,
302,
29922,
8516,
29892,
9066,
29922,
3285,
1591,
23479,
543,
12857,
613,
5785,
23479,
543,
29887,
613,
954,
2520,
543,
7099,
3039,
613,
13,
462,
851,
2520,
543,
1563,
613,
4567,
791,
13776,
1125,
13,
4706,
9995,
13,
4706,
7106,
5051,
1347,
1591,
310,
937,
302,
4206,
310,
5665,
470,
4129,
565,
302,
338,
6213,
29889,
2823,
13,
4706,
2045,
597,
2966,
21454,
29889,
990,
29914,
579,
273,
262,
29914,
4691,
29899,
3891,
5987,
363,
4902,
373,
4434,
5987,
4128,
13,
13,
4706,
584,
3207,
302,
29901,
9681,
310,
4206,
304,
1510,
29892,
565,
731,
304,
6213,
736,
599,
4206,
13,
4706,
584,
3207,
9066,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
584,
3207,
1591,
23479,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
584,
3207,
5785,
23479,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
584,
3207,
954,
2520,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
584,
3207,
851,
2520,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
584,
3207,
4567,
791,
29901,
6978,
287,
304,
4434,
5987,
13,
4706,
9995,
13,
4706,
1583,
29889,
8173,
580,
13,
4706,
3309,
353,
1583,
29889,
2435,
580,
13,
4706,
565,
3309,
1275,
29871,
29900,
470,
451,
338,
29918,
3891,
352,
17219,
29898,
1311,
29961,
29900,
29962,
1125,
13,
9651,
736,
6213,
13,
13,
4706,
565,
302,
338,
6213,
470,
302,
6736,
3309,
29901,
13,
9651,
4206,
353,
1583,
29889,
1761,
580,
13,
9651,
2643,
353,
6629,
13,
4706,
1683,
29901,
13,
9651,
4206,
353,
1583,
29889,
19730,
29898,
29876,
467,
1761,
580,
13,
9651,
565,
1591,
23479,
1275,
525,
12857,
2396,
13,
18884,
2643,
353,
11297,
29876,
8964,
292,
6571,
310,
6571,
4206,
4286,
4830,
29898,
29876,
29892,
3309,
29897,
13,
9651,
25342,
1591,
23479,
1275,
525,
1420,
2396,
13,
18884,
2643,
353,
12801,
29886,
29958,
8964,
292,
6571,
310,
6571,
4206,
4286,
4830,
29898,
29876,
29892,
3309,
29897,
13,
9651,
1683,
29901,
13,
18884,
2643,
353,
6629,
13,
4706,
565,
7431,
29898,
13662,
29897,
1275,
29871,
29900,
322,
338,
29918,
17514,
23583,
29898,
5727,
29961,
29900,
29962,
1125,
13,
9651,
9066,
353,
4206,
29961,
29900,
1822,
29918,
9621,
13,
4706,
736,
4434,
5987,
29898,
5727,
29892,
9066,
29922,
13662,
29892,
1591,
23479,
29922,
2371,
23479,
29892,
5785,
23479,
29922,
7411,
23479,
29892,
13,
462,
4706,
954,
2520,
29922,
1949,
2520,
29892,
851,
2520,
29922,
710,
2520,
29892,
4567,
791,
29922,
27259,
791,
29897,
718,
2643,
13,
13,
13,
1753,
903,
6312,
29898,
1767,
1125,
13,
1678,
9995,
13,
1678,
399,
336,
567,
278,
4502,
995,
297,
263,
922,
3910,
565,
372,
338,
451,
263,
19269,
29889,
960,
372,
338,
263,
1347,
13,
1678,
2980,
372,
338,
17832,
304,
263,
1051,
310,
4890,
29889,
13,
13,
1678,
8653,
903,
6312,
29898,
29896,
29897,
13,
268,
29896,
13,
13,
1678,
8653,
903,
6312,
703,
10736,
1159,
13,
1678,
6024,
29874,
742,
525,
29890,
742,
525,
29883,
2033,
13,
13,
1678,
8653,
1134,
7373,
6312,
4197,
29896,
29892,
29871,
29906,
12622,
13,
1678,
13303,
29889,
13096,
5570,
29889,
20529,
13,
13,
1678,
584,
3207,
995,
29901,
995,
304,
12244,
13,
1678,
584,
2457,
29901,
21021,
470,
451,
21021,
995,
13,
1678,
9995,
13,
1678,
565,
338,
29918,
9469,
3321,
29898,
1767,
1125,
13,
4706,
736,
995,
13,
1678,
565,
338,
8758,
29898,
1767,
29892,
313,
8977,
29892,
731,
876,
470,
338,
29918,
17514,
23583,
29898,
1767,
1125,
13,
4706,
736,
995,
13,
1678,
25342,
338,
8758,
29898,
1767,
29892,
16250,
29889,
13463,
519,
1125,
13,
4706,
1018,
29901,
13,
9651,
565,
1134,
29898,
1767,
467,
1649,
978,
1649,
1275,
525,
17271,
2396,
13,
18884,
1053,
11701,
13,
18884,
565,
338,
8758,
29898,
1767,
29892,
11701,
29889,
17271,
1125,
13,
462,
1678,
736,
922,
3910,
29898,
1767,
29889,
5975,
29897,
13,
4706,
5174,
16032,
2392,
29901,
396,
282,
23929,
29901,
694,
4612,
13,
9651,
1209,
13,
13,
4706,
736,
922,
3910,
29898,
1767,
29897,
13,
1678,
1683,
29901,
13,
4706,
736,
995,
13,
13,
1753,
10985,
29898,
9891,
29922,
8516,
29892,
408,
1761,
29922,
8824,
29892,
2186,
29922,
8824,
29892,
1024,
29922,
8516,
29892,
8943,
29922,
8824,
1125,
13,
1678,
9995,
13,
1678,
6680,
10200,
1061,
363,
4417,
716,
3519,
304,
278,
922,
3910,
770,
29889,
13,
13,
1678,
8653,
732,
21843,
580,
13,
4706,
822,
14319,
29906,
29898,
277,
1125,
13,
9651,
736,
17288,
29875,
29892,
29875,
29897,
363,
474,
297,
372,
29962,
13,
13,
1678,
8653,
19359,
29889,
3881,
29898,
29941,
467,
7554,
29906,
580,
13,
1678,
17288,
29900,
29892,
29871,
29900,
511,
313,
29896,
29892,
29871,
29896,
511,
313,
29906,
29892,
29871,
29906,
4638,
13,
13,
13,
1678,
8653,
732,
21843,
29898,
294,
1761,
29922,
5574,
29897,
13,
4706,
822,
14319,
29906,
29898,
277,
1125,
13,
9651,
736,
14319,
29898,
277,
29892,
277,
29897,
13,
13,
1678,
8653,
19359,
29889,
3881,
29898,
29941,
467,
7554,
29906,
580,
13,
1678,
17288,
29900,
29892,
29871,
29900,
511,
313,
29896,
29892,
29871,
29896,
511,
313,
29906,
29892,
29871,
29906,
4638,
13,
13,
13,
1678,
8653,
732,
21843,
29898,
8394,
29922,
5574,
29897,
13,
4706,
822,
1207,
29918,
842,
29898,
277,
1125,
13,
9651,
736,
731,
29898,
277,
29897,
13,
13,
1678,
8653,
364,
353,
19359,
4197,
29900,
29892,
29896,
29892,
29896,
14664,
5675,
29918,
842,
580,
13,
1678,
8653,
364,
13,
1678,
426,
29900,
29892,
29871,
29896,
29913,
13,
13,
1678,
8653,
1134,
29898,
29878,
29897,
13,
1678,
529,
1990,
525,
842,
11041,
13,
13,
1678,
584,
3207,
3653,
29901,
740,
304,
10200,
403,
13,
1678,
584,
3207,
408,
1761,
29901,
565,
5852,
3588,
1881,
5665,
304,
1051,
313,
4381,
7700,
29897,
13,
1678,
584,
3207,
2186,
29901,
960,
5852,
10200,
630,
740,
947,
451,
736,
263,
5665,
29889,
4803,
1319,
13,
4706,
363,
4969,
3168,
1316,
408,
304,
29918,
1761,
29889,
13,
1678,
584,
3207,
1024,
29901,
1024,
310,
278,
740,
313,
4381,
740,
5023,
1024,
29897,
13,
1678,
584,
3207,
8943,
29901,
565,
1565,
278,
740,
338,
8283,
297,
8943,
8225,
13705,
313,
4381,
7700,
29897,
13,
1678,
9995,
13,
1678,
565,
3653,
338,
6213,
29901,
13,
4706,
736,
7687,
29898,
21843,
29892,
408,
1761,
29922,
294,
1761,
29892,
2186,
29922,
8394,
29892,
1024,
29922,
978,
29892,
8943,
29922,
23482,
29897,
13,
13,
1678,
732,
29893,
336,
567,
29898,
9891,
29897,
13,
1678,
822,
14476,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
13,
13,
4706,
396,
437,
451,
1653,
263,
716,
922,
3910,
448,
925,
3394,
263,
740,
13,
4706,
565,
2186,
29901,
13,
9651,
736,
3653,
29898,
1311,
29889,
16506,
29892,
334,
5085,
29892,
3579,
19290,
29897,
13,
13,
4706,
565,
408,
1761,
29901,
13,
9651,
3653,
29918,
353,
14013,
19359,
29901,
3653,
29898,
1761,
29898,
11762,
511,
334,
5085,
29892,
3579,
19290,
29897,
13,
4706,
1683,
29901,
13,
9651,
3653,
29918,
353,
14013,
19359,
29901,
3653,
29898,
11762,
29892,
334,
5085,
29892,
3579,
19290,
29897,
13,
13,
4706,
4327,
353,
29304,
29889,
4300,
5404,
29898,
13,
9651,
525,
1062,
2760,
19660,
6525,
4286,
4830,
29898,
978,
470,
3653,
17255,
978,
1649,
511,
13,
9651,
3653,
3383,
13,
9651,
426,
20418,
5015,
1845,
583,
29889,
16320,
1964,
1307,
29931,
29913,
565,
8943,
1683,
6213,
13,
4706,
1723,
13,
4706,
736,
1583,
3032,
9067,
29898,
9067,
29897,
13,
13,
1678,
396,
11200,
788,
263,
716,
1158,
13,
1678,
731,
5552,
29898,
20529,
29892,
3653,
17255,
978,
1649,
29892,
14476,
29897,
13,
1678,
736,
14476,
13,
2
] |
setup.py | eddbrown/coodinate_country_lookup | 0 | 97825 | <filename>setup.py
from distutils.core import setup
setup(
name = 'coordinate_country_lookup', # How you named your package folder (MyLib)
packages = ['coordinate_country_lookup'], # Chose the same as "name"
version = '0.1.5', # Start with a small number and increase it with every change you make
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
description = 'Returns the country of the latitude longitude tuple offline', # Give a short description about your library
author = '<NAME>', # Type in your name
author_email = '<EMAIL>', # Type in your E-Mail
url = 'https://github.com/eddbrown/coodinate_country_lookup', # Provide either the link to your github or to your website
keywords = ['COORDINATE', 'COUNTRY', 'OFFLINE'], # Keywords that define your package best
install_requires=['shapely', 'geopandas'],
package_data={'': ['countries/*']},
include_package_data=True
)
| [
1,
529,
9507,
29958,
14669,
29889,
2272,
13,
3166,
1320,
13239,
29889,
3221,
1053,
6230,
13,
14669,
29898,
13,
29871,
1024,
353,
525,
29302,
29918,
13509,
29918,
20401,
742,
308,
396,
1128,
366,
4257,
596,
3577,
4138,
313,
3421,
14868,
29897,
13,
29871,
9741,
353,
6024,
29302,
29918,
13509,
29918,
20401,
7464,
259,
396,
678,
852,
278,
1021,
408,
376,
978,
29908,
13,
29871,
1873,
353,
525,
29900,
29889,
29896,
29889,
29945,
742,
418,
396,
7370,
411,
263,
2319,
1353,
322,
7910,
372,
411,
1432,
1735,
366,
1207,
13,
29871,
19405,
2433,
26349,
742,
4706,
396,
678,
852,
263,
19405,
515,
1244,
29901,
2045,
597,
8477,
29889,
3292,
29889,
510,
29914,
18569,
29914,
506,
575,
292,
29899,
29874,
29899,
19033,
13,
29871,
6139,
353,
525,
11609,
29879,
278,
4234,
310,
278,
26271,
28745,
18761,
1283,
1220,
742,
259,
396,
25538,
263,
3273,
6139,
1048,
596,
3489,
13,
29871,
4148,
353,
12801,
5813,
29958,
742,
462,
259,
396,
5167,
297,
596,
1024,
13,
29871,
4148,
29918,
5269,
353,
12801,
26862,
6227,
29958,
742,
418,
396,
5167,
297,
596,
382,
29899,
14925,
13,
29871,
3142,
353,
525,
991,
597,
3292,
29889,
510,
29914,
287,
2585,
4708,
29914,
1111,
397,
16976,
29918,
13509,
29918,
20401,
742,
259,
396,
9133,
680,
2845,
278,
1544,
304,
596,
18546,
470,
304,
596,
4700,
13,
29871,
29361,
353,
6024,
3217,
25593,
1177,
3040,
742,
525,
3217,
3904,
5659,
29979,
742,
525,
27681,
18521,
7464,
259,
396,
7670,
9303,
393,
4529,
596,
3577,
1900,
13,
29871,
2601,
29918,
276,
339,
2658,
29922,
1839,
845,
481,
873,
742,
525,
479,
459,
7086,
7464,
13,
29871,
3577,
29918,
1272,
3790,
29915,
2396,
6024,
2798,
2722,
5515,
2033,
1118,
13,
29871,
3160,
29918,
5113,
29918,
1272,
29922,
5574,
13,
29897,
13,
2
] |
obsolete/pipeline_idr.py | kevinrue/cgat-flow | 11 | 195416 | """===========================
Pipeline IDR
===========================
Overview
========
This pipeline is a wrapper for the Irreproducibility Discovery Pipeline
outlined by <NAME>.
(see https://sites.google.com/site/anshulkundaje/projects/idr)
It is split into two stages and performs several basic steps:
Fist stage
----------
1) Pre-processing bamfiles
Bamfiles are filtered prior to peak-calling. With the option to remove
non-uniquely mapping reads, remove duplicates, and mask genomic
regions in a specified bedfile. Bamfiles are variously pooled by
EXPERIMENT (tissue-condition-agg )and split, to provide
pseudoreplicates of individual samples and pooled-pseudoreplicates.
2) Peak calling is carried out using SPP on three sets of samples:
i) individual samples, ii) pseudoreplicates, and iii)
pooled-pseudoreplicates.
Three options exist for using control files in peak-calling:
i) All peak calling may be carried out against a single control per
experiment, in which case the control must be labelled
<tissue>-<control>-R1.
ii) Peaks may be called against pooled control files for each
EXPERIMENT (as recommended for IDR) in which case all three
peak-calling steps will be carried out using pooled controls labelled
<tissue>-<condition>-R0.
iii) Peak calling for individual samples may be carried out using
controls matched by replicate. In which case peak calling for
pseudoreplicates will be carried out against the same control
(i.e. pseudoreplication of the control file does not take place), and
peak calling for the pooled pseudoreplicates is carried out against a
pooled control.
Peakcalling for IDR is necessarily lax and the option exists to
specify the number of peaks called using either -npeaks or -fdr. (It
may be necessary to use a customized version of run_spp.R for one or
other of these options, depending on which version of SPP is being
run, this option is also provided.)
3) IDR analysis is carried out using WrapperIDR (which us a python
wrapper for batch-consistency-analysis.r) for i) all pairwise
comparisons of individual replicates within an EXPERIMENT, ii) pairs
of psuedoreplicates for each sample, and iii) paired pooled
pseudoreplicates for each EXPERIMENT. These steps provide IDR analysis
on origanl replicates, IDR analysis on self- pseudoreplicates, and IDR
analysis on pooled-pseudoreplicates, respectively.
Second stage
------------
4) Following IDR analysis, a second stage of the pipeline
(generatePeakSets) may be run. Libraries that fail in terms of
'max_numPeaks_Rep' or 'self-consistency' may be specified for
exclusion in the config file. Subsequently, all non-excluded bamfiles
are pooled per EXPERIMENT so that both a conservative peak set and
optimal peak set may be derived.
Usage
=====
See :ref:`PipelineSettingUp` and :ref:`PipelineRunning` on general information
how to use cgat pipelines.
Configuration
-------------
The pipeline requires a configured :file:`pipeline.ini` file.
Sphinxreport report requires a :file:`conf.py` and :file:`sphinxreport.ini`
file (see :ref:`PipelineDocumenation`). To start with, use the files supplied
with the :ref:`Example` data.
Input
-----
Optional inputs
+++++++++++++++
Requirements
------------
The pipeline requires the results from :doc:`pipeline_annotations`. Set the
configuration variable :py:data:`annotations_database`
and :py:data:`annotations_dir`.
On top of the default cgat setup, the pipeline requires the following software
to be in the path:
+--------------------+-------------------+------------------------------------+
|*Program* |*Version* |*Purpose* |
+--------------------+-------------------+------------------------------------+
| | | |
+--------------------+-------------------+------------------------------------+
Pipeline output
===============
The major output is in the database file :file:`csvdb`.
Example
=======
Example data is available at http://www.cgat.org/~andreas/sample_data\
/pipeline_IDR.tgz.
To run the example, simply unpack and untar::
wget http://www.cgat.org/~andreas/sample_data/pipeline_IDR.tgz
tar -xvzf pipeline_IDR.tgz
cd pipeline_IDR
python <srcdir>/pipeline_IDR.py make full
.. note::
For the pipeline to run, install the :doc:`pipeline_annotations` as well.
Glossary
========
.. glossary::
Code
====
"""
from ruffus import *
import sys
import os
import itertools
import re
import sqlite3
import glob
import shutil
import cgatcore.experiment as E
import cgatcore.iotools as iotools
import cgatcore.database as Database
import cgatPipelines.PipelineIDR as IDR
from cgatcore import pipeline as P
import cgatPipelines.PipelineTracks as PipelineTracks
# Pipeline configuration
P.getParameters(
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini"])
PARAMS = P.PARAMS
PARAMS.update(P.peekParameters(
PARAMS["annotations_dir"],
"pipeline_annotations.py",
prefix="annotations_",
update_interface=True))
# Helper functions mapping tracks to conditions, etc
Sample = PipelineTracks.AutoSample
# define tracks based on all samples in .bamfile that are not input or index
TRACKS = PipelineTracks.Tracks(Sample).loadFromDirectory(
glob.glob(os.path.join(PARAMS.get("location_bamfiles", ""), "*.bam")),
"(\S+).bam",
exclude=[".+input.+"])
@files(None, None)
def printTracks(infile, outfile):
P.warn("\n\n\n\nprinting tracks:")
for track in EXPERIMENTS:
print("\t")
print(track)
def get_peak_caller_parameters(peak_caller_id):
"""
Returns a dictionary of config file parameters for the chosen peak caller
(an attempt to keep access to PARAMS out of associated pipeline script).
"""
caller_parameters = {}
caller_prefix = peak_caller_id + "_options"
for key, value in PARAMS.items():
if re.match(caller_prefix, key):
caller_parameters[key] = value
return caller_parameters
def connect():
'''connect to database.
Use this method to connect to additional databases.
Returns a database connection.
'''
dbh = sqlite3.connect(PARAMS["database_name"])
statement = '''ATTACH DATABASE '%s' as annotations''' % (
PARAMS["annotations_database"])
cc = dbh.cursor()
cc.execute(statement)
cc.close()
return dbh
# Process Bamfiles
@follows(mkdir("bamfiles_filtered"))
@transform(os.path.join(PARAMS["location_bamfiles"], "*.bam"),
regex("(.+)/(.+).bam"),
r"./bamfiles_filtered/\2.sentinel")
def filterBamfiles(infile, sentinel):
"""
Pre-process bamfiles prior to peak calling.
i) sort bamfiles
ii) remove unmapped readswith bam2bam.py
iii) remove non-uniquely mapping reads with bam2bam.py (optional)
iv) remove duplicates with Picards MarkDuplicates (optional)
v) remove reads from masked regions with bedtools intersect (optional)
vi) index
"""
# create tempfile for Picard's MarkDuplicates
picard_tmp = P.getTempDir(PARAMS["scratchdir"])
outfile = P.snip(sentinel, ".sentinel") + ".bam"
# ensure bamfile is sorted,
statement = ["samtools sort @IN@ -o @[email protected]", ]
# remove unmapped reads
statement.append("cgat bam2bam"
" --method=filter --filter-method=mapped"
" --log=%(outfile)s.log"
" < @[email protected]"
" > @OUT@")
# remove non-uniquely mapping reads, if requested
if PARAMS["filter_remove_non_unique"]:
statement.append("cgat bam2bam"
" --method=filter --filter-method=unique"
" --log=%(outfile)s.log"
" < @IN@"
" > @OUT@")
# remove duplicates, if requested
if PARAMS["filter_remove_duplicates"]:
statement.append("MarkDuplicates"
" INPUT=@IN@"
" ASSUME_SORTED=true"
" REMOVE_DUPLICATES=true"
" QUIET=false"
" OUTPUT=@OUT@"
" METRICS_FILE=/dev/null"
" VALIDATION_STRINGENCY=SILENT"
" TMP_DIR=%(picard_tmp)s"
" 2> %(outfile)s.log")
# mask regions, if intervals supplied
if PARAMS["filter_mask_intervals"]:
mask = PARAMS["filter_mask_intervals"]
statement.append("bedtools intersect"
" -abam @IN@"
" -b %(mask)s"
" -wa"
" -v"
" > @OUT@")
statement.append("mv @IN@ %(outfile)s")
statement.append("samtools index %(outfile)s")
job_memory = "5G"
statement = P.joinStatements(statement, infile)
P.run()
P.touch(sentinel)
shutil.rmtree(picard_tmp)
@follows(filterBamfiles, mkdir("bamfiles_pseudoreplicates"))
@transform([os.path.join("./bamfiles_filtered", x.asFile() + ".sentinel")
for x in TRACKS],
regex("./bamfiles_filtered/(.+).sentinel"),
r"./bamfiles_pseudoreplicates/\1.sentinel")
def splitBamfiles(infile, sentinel):
"""
For all tracks, split the filtered bamfile in two using pysam
"""
infile = P.snip(infile, ".sentinel") + ".bam"
outfile = P.snip(sentinel, ".sentinel")
params = '2'
try:
module = P.snip(IDR.__file__, ".py")
except ValueError:
module = P.snip(IDR.__file__, ".pyc")
P.submit(module,
"splitBam",
params,
infile,
outfile)
P.touch(sentinel)
# AH: remove replicate requirement for input tracks
# AH: avoid merging if only one repliacte
@follows(mkdir("bamfiles_pooled"))
@collate(filterBamfiles,
regex(r"(.+)/(.+)-input-.*.sentinel"),
r"./bamfiles_pooled/\2-input-R0.sentinel")
def poolInputBamfiles(infiles, sentinel):
"""
Merge filtered input files for each tissue, with the option of excluding
undesirable libraries.
"""
infiles = [P.snip(x, ".sentinel") + ".bam" for x in infiles]
outfile = P.snip(sentinel, ".sentinel") + ".bam"
bad_samples = PARAMS["filter_remove_inputs"].split(",")
if len(infiles) > 1:
to_merge = IDR.filterBadLibraries(infiles, bad_samples)
IDR.mergeBams(to_merge, outfile)
else:
os.symlink(os.path.abspath(infiles[0]), outfile)
os.symlink(os.path.abspath(infiles[0]) + ".bai", outfile + ".bai")
P.touch(sentinel)
@follows(mkdir("bamfiles_pooled"))
@collate(filterBamfiles,
regex(r"(.+)/(.+)-((?!input).*)-R[0-9]+.sentinel"),
r"./bamfiles_pooled/\2-\3-R0.sentinel")
def poolSampleBamfiles(infiles, sentinel):
"""
Merge filtered sample files for each tissue
"""
infiles = [P.snip(x, ".sentinel") + ".bam" for x in infiles]
outfile = P.snip(sentinel, ".sentinel") + ".bam"
IDR.mergeBams(infiles, outfile)
P.touch(sentinel)
@follows(mkdir("./bamfiles_pooled_pseudoreplicates"))
@transform(poolSampleBamfiles,
regex("(.+)/(.+).sentinel"),
r"./bamfiles_pooled_pseudoreplicates/\2.sentinel")
def splitPooledBamfiles(infile, sentinel):
infile = P.snip(infile, ".sentinel") + ".bam"
outfile = P.snip(sentinel, ".sentinel")
params = '2'
try:
module = P.snip(IDR.__file__, ".py")
except ValueError:
module = P.snip(IDR.__file__, ".pyc")
P.submit(module,
"splitBam",
params,
infile,
outfile)
P.touch(sentinel)
##########################################################################
##########################################################################
##########################################################################
# Run Peak calling for IDR
##########################################################################
@follows(filterBamfiles,
poolInputBamfiles,
mkdir("peakfiles_individual_replicates"),
mkdir("stats"))
@transform([os.path.join("./bamfiles_filtered", x.asFile() + ".sentinel")
for x in TRACKS],
regex("(.+)/(.+).sentinel"),
r"./peakfiles_individual_replicates/\2_regionPeak.sentinel")
def callPeaksOnIndividualReplicates(infile, outfile):
infile = P.snip(infile, ".sentinel") + ".bam"
# fetch peak calling parameters
PARAMS_PEAKCALLER = get_peak_caller_parameters(
PARAMS["options_peak_caller"])
# call peaks
IDR.callIDRPeaks(infile,
outfile,
PARAMS["options_peak_caller"],
PARAMS["options_control_type"],
PARAMS_PEAKCALLER)
P.touch(outfile)
@follows(callPeaksOnIndividualReplicates)
@merge("./peakfiles_individual_replicates/*.narrowPeak.gz",
"./peakfiles_individual_replicates/"
"peakcalling_summary_individual_replicates.tsv")
def summarizePeaksForIndividualReplicates(infiles, outfile):
outf = iotools.openFile(outfile, "w")
outf.write("Sample_id\t"
"Experiment\t"
"Tissue\t"
"Condition\t"
"Replicate\t"
"n_peaks\n")
IDR.countPeaks(infiles, outf)
@transform(summarizePeaksForIndividualReplicates,
regex("(.+)/(.+).tsv"),
r"\2.load")
def loadPeakSummaryForIndividualReplicates(infile, outfile):
P.load(infile, outfile)
@follows(splitBamfiles,
poolInputBamfiles,
mkdir("peakfiles_pseudoreplicates"))
@transform("./bamfiles_pseudoreplicates/*.bam",
regex("(.+)/(.+).bam"),
r"./peakfiles_pseudoreplicates/\2_regionPeak.sentinel")
def callPeaksOnPseudoreplicates(infile, outfile):
# fetch peak calling parameters
PARAMS_PEAKCALLER = get_peak_caller_parameters(
PARAMS["options_peak_caller"])
# call peaks on pseudoreplicates
IDR.callIDRPeaks(infile,
outfile,
PARAMS["options_peak_caller"],
PARAMS["options_control_type"],
PARAMS_PEAKCALLER,
pseudoreplicate=True)
@follows(callPeaksOnPseudoreplicates)
@merge("./peakfiles_pseudoreplicates/*.narrowPeak.gz",
"./peakfiles_pseudoreplicates/"
"peakcalling_summary_pseudoreplicates.tsv")
def summarizePeaksForPseudoreplicates(infiles, outfile):
outf = iotools.openFile(outfile, "w")
outf.write("Sample_id\t"
"Experiment\t"
"Tissue\t"
"Condition\t"
"Pseudoreplicate\t"
"n_peaks\n")
IDR.countPeaks(infiles, outf)
@transform(summarizePeaksForPseudoreplicates,
regex("(.+)/(.+).tsv"),
r"\2.load")
def loadPeakSummaryForPseudoreplicates(infile, outfile):
P.load(infile, outfile)
@follows(splitPooledBamfiles,
poolInputBamfiles,
mkdir("peakfiles_pooled_pseudoreplicates"))
@transform("./bamfiles_pooled_pseudoreplicates/*.bam",
regex("(.+)/(.+).bam"),
r"./peakfiles_pooled_pseudoreplicates/\2.regionPeak.sentinel")
def callPeaksOnPooledPseudoreplicates(infile, outfile):
# fetch peak calling parameters
PARAMS_PEAKCALLER = get_peak_caller_parameters(
PARAMS["options_peak_caller"])
# call peaks on pseudoreplicates
IDR.callIDRPeaks(infile,
outfile,
PARAMS["options_peak_caller"],
PARAMS["options_control_type"],
PARAMS_PEAKCALLER,
pseudoreplicate=True)
P.touch(outfile)
@follows(callPeaksOnPooledPseudoreplicates)
@merge("./peakfiles_pooled_pseudoreplicates/*.narrowPeak.gz",
"./peakfiles_pooled_pseudoreplicates/"
"peakcalling_summary_pooled_pseudoreplicates.tsv")
def summarizePeaksForPooledPseudoreplicates(infiles, outfile):
outf = iotools.openFile(outfile, "w")
outf.write("Sample_id\t"
"Experiment\t"
"Tissue\t"
"Condition\t"
"Pseudoreplicate\t"
"n_peaks\n")
IDR.countPeaks(infiles, outf)
@transform(summarizePeaksForPooledPseudoreplicates,
regex("(.+)/(.+).tsv"),
r"\2.load")
def loadPeakSummaryForPooledPseudoreplicates(infile, outfile):
P.load(infile, outfile)
##########################################################################
##########################################################################
##########################################################################
# Run IDR
##########################################################################
@follows(callPeaksOnIndividualReplicates,
mkdir("./idr_individual_replicates"))
@collate("./peakfiles_individual_replicates/*.regionPeak.gz",
regex(r"(.+)/(.+)-(.+)-(R[0-9]+)_VS_(.+).regionPeak.gz"),
r"./idr_individual_replicates/\2-\3.idr")
def runIDROnIndividualReplicates(infiles, outfile):
"""
Run IDR consecutively for each pairwise combination of a particular
EXPERIMENT
"""
# set IDR parameters (HACK!) WrapperIDR is in /ifs/devel/cgat
chr_table = os.path.join(PARAMS["annotations_dir"],
PARAMS["annotations_interface_contigs"])
# iterate through pairwise combinations of infiles
for infile1, infile2 in itertools.combinations(infiles, 2):
# get statement
statement = IDR.getIDRStatement(infile1,
infile2,
outfile,
PARAMS["idr_options_overlap_ratio"],
PARAMS["idr_options_ranking_measure"],
chr_table)
# run
E.info("applyIDR: processing %s and %s" % (infile1, infile2))
job_memory = "5G"
P.run()
# print "\n" + statement + "\n"
@transform(runIDROnIndividualReplicates,
regex("(.+).idr"),
add_inputs(r"\1-*-uri.sav"),
r"\1_batch-consistency.pdf")
def plotBatchConsistencyForIndividualReplicates(infiles, outfile):
# HACK!
statement = IDR.getIDRPlotStatement(infiles, outfile)
P.run()
# print statement
@follows(callPeaksOnPseudoreplicates,
mkdir("./idr_pseudoreplicates"))
@collate("./peakfiles_pseudoreplicates/*.regionPeak.gz",
regex("./peakfiles_pseudoreplicates/"
"(.+)(_00|_01)_VS_(.+).regionPeak.gz"),
r"idr_pseudoreplicates/\1_pseudoreplicates.idr")
def runIDROnPseudoreplicates(infiles, outfile):
"""
Run IDR analysis on pseudoreplicates for each TRACK
"""
# set IDR parameters
chr_table = os.path.join(PARAMS["annotations_dir"],
PARAMS["annotations_interface_contigs"])
# get statement
statement = IDR.getIDRStatement(infiles[0],
infiles[1],
outfile,
PARAMS["idr_options_overlap_ratio"],
PARAMS["idr_options_ranking_measure"],
chr_table)
# run
E.info("applyIDR: processing %s and %s" % (infiles[0], infiles[1]))
job_memory = "5G"
P.run()
# print "\n" + statement + "\n"
@collate(runIDROnPseudoreplicates,
regex("(.+)_pseudoreplicates.idr"),
add_inputs(r"\1*-uri.sav"),
r"\1_batch-consistency.pdf")
def plotBatchConsistencyForPseudoreplicates(infiles, outfile):
statement = IDR.getIDRPlotStatement(infiles[0], outfile)
P.run()
@follows(callPeaksOnPooledPseudoreplicates,
mkdir("./idr_pooled_pseudoreplicates"))
@collate("./peakfiles_pooled_pseudoreplicates/*.regionPeak.gz",
regex(r"./peakfiles_pooled_pseudoreplicates/"
"(.+)(_00|_01)_VS_(.+).regionPeak.gz"),
r"./idr_pooled_pseudoreplicates/\1_pooled_pseudoreplicate.idr")
def runIDROnPooledPseudoreplicates(infiles, outfile):
"""
Run IDR analysis on pooled pseudoreplicates for each EXPERIMENT
"""
# set IDR parameters
chr_table = os.path.join(PARAMS["annotations_dir"],
PARAMS["annotations_interface_contigs"])
# get statement
statement = IDR.getIDRStatement(infiles[0],
infiles[1],
outfile,
PARAMS["idr_options_overlap_ratio"],
PARAMS["idr_options_ranking_measure"],
chr_table)
# run
E.info("applyIDR: processing %s and %s" % (infiles[0], infiles[1]))
job_memory = "5G"
P.run()
@collate(runIDROnPooledPseudoreplicates,
regex("(.+)_pooled_pseudoreplicate.idr"),
add_inputs(r"\1*-uri.sav"),
r"\1_batch-consistency.pdf")
def plotBatchConsistencyForPooledPseudoreplicates(infiles, outfile):
statement = IDR.getIDRPlotStatement(infiles[0], outfile)
P.run()
##########################################################################
##########################################################################
##########################################################################
# Post Process IDR
##########################################################################
@follows(plotBatchConsistencyForIndividualReplicates)
@transform(runIDROnIndividualReplicates,
regex("(.+).idr"),
add_inputs(r"\1-*-npeaks-aboveIDR.txt"),
r"\1_npeaks_aboveIDR.tsv")
def combineIDROnIndividualReplicates(infiles, outfile):
tables = infiles[1:]
headers = [os.path.basename(x) for x in tables]
headers = ",".join([P.snip(x, "-npeaks-aboveIDR.txt") for x in headers])
tables = " ".join(tables)
to_cluster = False
statement = ("cgat combine_tables"
" --columns=1"
" --skip-titles"
" --header-names=%(headers)s"
" --log=%(outfile)s.log"
" --stdout=%(outfile)s"
" %(tables)s")
P.run()
@transform(combineIDROnIndividualReplicates,
regex("(.+)/(.+).tsv"),
r"./\2.load")
def loadIDROnIndividualReplicates(infile, outfile):
P.load(infile, outfile)
@follows(plotBatchConsistencyForPseudoreplicates)
@collate("./idr_pseudoreplicates/*-npeaks-aboveIDR.txt",
regex("(.+)-R(.+)_vs_(.+)-npeaks-aboveIDR.txt"),
r"\1_pseudoreplicates_npeaks_aboveIDR.tsv")
def combineIDROnPseudoreplicates(infiles, outfile):
headers = [os.path.basename(x) for x in infiles]
headers = ",".join([P.snip(x, "-npeaks-aboveIDR.txt") for x in headers])
tables = " ".join(infiles)
to_cluster = False
statement = ("cgat combine_tables"
" --columns=1"
" --skip-titles"
" --header-names=%(headers)s"
" --log=%(outfile)s.log"
" --stdout=%(outfile)s"
" %(tables)s")
P.run()
@transform(combineIDROnPseudoreplicates,
regex("(.+)/(.+).tsv"),
r"./\2.load")
def loadIDROnPseudoreplicates(infile, outfile):
P.load(infile, outfile)
@follows(plotBatchConsistencyForPooledPseudoreplicates)
@collate("./idr_pooled_pseudoreplicates/*-npeaks-aboveIDR.txt",
regex("(.+)-R(.+)_vs_(.+)-npeaks-aboveIDR.txt"),
r"\1_pooled_pseudoreplicates_npeaks_aboveIDR.tsv")
def combineIDROnPooledPseudoreplicates(infiles, outfile):
headers = [os.path.basename(x) for x in infiles]
headers = ",".join([P.snip(x, "-npeaks-aboveIDR.txt") for x in headers])
tables = " ".join(infiles)
to_cluster = False
statement = ("cgat combine_tables"
" --columns=1"
" --skip-titles"
" --header-names=%(headers)s"
" --log=%(outfile)s.log"
" --stdout=%(outfile)s"
" %(tables)s")
P.run()
@transform(combineIDROnPooledPseudoreplicates,
regex("(.+)/(.+).tsv"),
r"./\2.load")
def loadIDROnPooledPseudoreplicates(infile, outfile):
P.load(infile, outfile)
@follows(runIDROnIndividualReplicates)
@merge("./idr_individual_replicates/*-overlapped-peaks.txt",
"./idr_individual_replicates/individual_replicates.nPeaks.tsv")
def findNPeaksForIndividualReplicates(infiles, outfile):
idr_thresh = PARAMS["idr_options_inter_replicate_threshold"]
try:
module = P.snip(IDR.__file__, ".py")
except ValueError:
module = P.snip(IDR.__file__, ".pyc")
P.submit(module,
"findNPeaks",
params=[str(idr_thresh), ],
infiles=infiles,
outfiles=outfile)
@transform(findNPeaksForIndividualReplicates,
regex("(.+)/(.+).tsv"),
r"./\2.load")
def loadNPeaksForIndividualReplicates(infile, outfile):
P.load(infile, outfile)
@follows(runIDROnPseudoreplicates)
@merge("./idr_pseudoreplicates/*-overlapped-peaks.txt",
"./idr_pseudoreplicates/pseudoreplicates.nPeaks.tsv")
def findNPeaksForPseudoreplicates(infiles, outfile):
idr_thresh = PARAMS["idr_options_self_consistency_threshold"]
try:
module = P.snip(IDR.__file__, ".py")
except ValueError:
module = P.snip(IDR.__file__, ".pyc")
P.submit(module,
"findNPeaks",
params=[str(idr_thresh), ],
infiles=infiles,
outfiles=outfile)
@transform(findNPeaksForPseudoreplicates,
regex("(.+)/(.+).tsv"),
r"./\2.load")
def loadNPeaksForPseudoreplicates(infile, outfile):
P.load(infile, outfile)
@follows(runIDROnPooledPseudoreplicates)
@merge("./idr_pooled_pseudoreplicates/*-overlapped-peaks.txt",
"./idr_pooled_pseudoreplicates/pooled_pseudoreplicates.nPeaks.tsv")
def findNPeaksForPooledPseudoreplicates(infiles, outfile):
idr_thresh = PARAMS["idr_options_pooled_consistency_threshold"]
try:
module = P.snip(IDR.__file__, ".py")
except ValueError:
module = P.snip(IDR.__file__, ".pyc")
P.submit(module,
"findNPeaks",
params=[str(idr_thresh), ],
infiles=infiles,
outfiles=outfile)
@transform(findNPeaksForPooledPseudoreplicates,
regex("(.+)/(.+).tsv"),
r"./\2.load")
def loadNPeaksForPooledPseudoreplicates(infile, outfile):
P.load(infile, outfile)
##########################################################################
##########################################################################
##########################################################################
# Generate consensus peak set
##########################################################################
@follows(mkdir("bamfiles_final"))
@collate(filterBamfiles,
regex(r"(.+)/(.+)-((?!input).*)-R[0-9]+.sentinel"),
r"./bamfiles_final/\2-\3-R0.sentinel")
def reMergeBamfiles(infiles, sentinel):
infiles = [P.snip(x, ".sentinel") + ".bam" for x in infiles]
outfile = P.snip(sentinel, ".sentinel") + ".bam"
bad_samples = PARAMS["options_to_remove"].split(",")
to_merge = IDR.filterBadLibraries(infiles, bad_samples)
IDR.mergeBams(to_merge, outfile)
P.touch(sentinel)
@follows(reMergeBamfiles, mkdir("peakfiles_final"))
@transform("./bamfiles_final/*.bam",
regex("(.+)/(.+).bam"),
r"peakfiles_final/\2.narrowPeak.sentinel")
def callPeaksOnPooledReplicates(infile, outfile):
# fetch peak calling parameters
PARAMS_PEAKCALLER = get_peak_caller_parameters(
PARAMS["options_peak_caller"])
# call peaks on pseudoreplicates
IDR.callIDRPeaks(infile,
outfile,
PARAMS["options_peak_caller"],
PARAMS["options_control_type"],
PARAMS_PEAKCALLER,
pseudoreplicate=False)
P.touch(outfile)
@follows(connect,
callPeaksOnPooledReplicates,
loadNPeaksForIndividualReplicates,
loadNPeaksForPseudoreplicates,
loadNPeaksForPooledPseudoreplicates,
mkdir("peakfiles_final_conservative"),
mkdir("peakfiles_final_optimum"))
@transform("./peakfiles_final/*.narrowPeak.gz",
regex("(.+)/(.+)-R0_VS_(.+)-R0_peaks.narrowPeak.gz"),
[r"peakfiles_final_conservative/\2.narrowPeak.gz",
r"peakfiles_final_optimum/\2.narrowPeak.gz"])
def generatePeakSets(infile, outfiles):
outf_con, outf_opt = outfiles
# retrieve maximum number of peaks obtained from inter-replicate IDR
# (table created by loadNPeaksForIndividualReplicates)
statement = ("SELECT"
" Experiment,"
" max(n_peaks) AS nPeaks"
" FROM individual_replicates_nPeaks"
" GROUP BY experiment")
df = Database.fetch_DataFrame(statement, dbhandle=PARAMS['database_name'])
# reassign experiment as index
df = df.set_index("Experiment")
# retrieve number of peaks obtained from pooled_pseudoreplicate IDR
# (table created by loadNPeaksForPooledPseudoreplicates)
statement = ("SELECT"
" Experiment,"
" n_peaks AS nPeaks"
" FROM pooled_pseudoreplicates_nPeaks")
df2 = Database.fetch_DataFrame(statement, dbhandle=PARAMS['database_name'])
# reassign experiment as index
df2 = df2.set_index("Experiment")
# split the infile name to obtain experiment
sample_id = os.path.basename(infile).split("_VS_")[0]
sample = sample_id.split("-")
experiment = "_".join([sample[0], sample[1]])
# retrieve max_numPeaks for experiment
nPeaks = int(df.loc[experiment])
# retrieve numPeaks_Rep0 for experiment
nPeaks_rep0 = int(df2.loc[experiment])
# retrieve maximumn of the two
nPeaks_max = max(nPeaks, nPeaks_rep0)
# establish which column to sort by
if PARAMS["idr_options_ranking_measure"] == "signal.value":
sort_statement = "sort -k7nr,7nr"
elif PARAMS["idr_options_ranking_measure"] == "p.value":
sort_statement = "sort -k8nr,8nr"
elif PARAMS["idr_options_ranking_measure"] == "q.value":
sort_statement = "sort -k9nr,9nr"
else:
raise ValueError("Unrecognised ranking_measure"
" %s don't know which column"
" to sort on" % PARAMS["idr_options_ranking_measure"])
# sort infile by column and write top nPeaks to outfile (conservative)
ignore_pipe_errors = True
statement = ("zcat %(infile)s |"
" %(sort_statement)s |"
" head -%(nPeaks)s |"
" gzip > %(outf_con)s")
P.run()
# sort infile by column and write top nPeaks_max to outfile (optimum)
ignore_pipe_errors = True
statement = ("zcat %(infile)s |"
" %(sort_statement)s |"
" head -%(nPeaks_max)s |"
" gzip > %(outf_opt)s")
P.run()
##########################################################################
##########################################################################
##########################################################################
# Clean Up!
##########################################################################
@merge(("./bamfiles_filtered/*.bam",
"./bamfiles_final/*.bam",
"./bamfiles_pooled/*.bam",
"./bamfiles_pseudoreplicates/*.bam",
"./bamfiles_pooled_pseudoreplicates/*.bam"),
"./bamfiles_removed.sentinel")
def removeBamfiles(infiles, outfile):
for bamfile in infiles:
bam_index = bamfile + ".bai"
os.unlink(bamfile)
if os.path.exists(bam_index):
os.unlink(bam_index)
P.touch(outfile)
@transform(("./bamfiles_filtered/*.bdg",
"./bamfiles_pooled/*.bdg",
"./bamfiles_pseudoreplicates/*.bdg",
"./bamfiles_pooled_pseudoreplicates/*.bdg"),
suffix(".bdg"),
".bw")
def convertBedGraph(infile, outfile):
contig_file = os.path.join(PARAMS["annotations_dir"], "contigs.tsv")
statement = ("bedGraphToBigWig %(infile)s %(contig_file)s %(outfile)s")
P.run()
##########################################################################
##########################################################################
##########################################################################
# primary targets
##########################################################################
@follows(splitBamfiles,
poolInputBamfiles,
splitPooledBamfiles)
def preProcessBamfiles():
pass
@follows(callPeaksOnIndividualReplicates,
callPeaksOnPseudoreplicates,
callPeaksOnPooledPseudoreplicates,
loadPeakSummaryForIndividualReplicates,
loadPeakSummaryForPseudoreplicates,
loadPeakSummaryForPooledPseudoreplicates)
def callPeaks():
pass
@follows(plotBatchConsistencyForIndividualReplicates,
plotBatchConsistencyForPseudoreplicates,
plotBatchConsistencyForPooledPseudoreplicates)
def runIDR():
pass
@follows(loadIDROnIndividualReplicates,
loadIDROnPseudoreplicates,
loadIDROnPooledPseudoreplicates,
loadNPeaksForIndividualReplicates,
loadNPeaksForPseudoreplicates,
loadNPeaksForPooledPseudoreplicates)
def summarizeIDR():
pass
@follows(preProcessBamfiles,
callPeaks,
runIDR,
summarizeIDR,
generatePeakSets)
def full():
pass
@follows(removeBamfiles,
convertBedGraph)
def cleanUp():
pass
##########################################################################
##########################################################################
##########################################################################
# primary targets
##########################################################################
@follows(mkdir("report"))
def build_report():
'''build report from scratch.'''
E.info("starting report build process from scratch")
P.run_report(clean=True)
@follows(mkdir("report"))
def update_report():
'''update report.'''
E.info("updating report")
P.run_report(clean=False)
@follows(update_report)
def publish():
'''publish report and data.'''
E.info("publishing report")
P.publish_report()
if __name__ == "__main__":
# P.checkFiles( ("genome.fasta", "genome.idx" ) )
sys.exit(P.main(sys.argv))
| [
1,
9995,
9166,
4936,
25512,
13,
29925,
23828,
3553,
29934,
13,
9166,
4936,
25512,
13,
13,
3563,
1493,
13,
4936,
13,
13,
4013,
16439,
338,
263,
14476,
363,
278,
6600,
276,
5498,
455,
29890,
1793,
8565,
22205,
349,
23828,
13,
449,
21354,
491,
529,
5813,
15513,
13,
29898,
4149,
2045,
597,
16315,
29889,
3608,
29889,
510,
29914,
2746,
29914,
550,
29882,
352,
23262,
8339,
29914,
16418,
29914,
333,
29878,
29897,
13,
13,
3112,
338,
6219,
964,
1023,
22950,
322,
23233,
3196,
6996,
6576,
29901,
13,
13,
29943,
391,
7408,
13,
28400,
13,
13,
29896,
29897,
4721,
29899,
19170,
289,
314,
5325,
13,
13,
29933,
314,
5325,
526,
22289,
7536,
304,
19224,
29899,
4804,
292,
29889,
2973,
278,
2984,
304,
3349,
13,
5464,
29899,
3909,
339,
873,
10417,
13623,
29892,
3349,
20955,
29892,
322,
11105,
20853,
293,
13,
1727,
1080,
297,
263,
6790,
6592,
1445,
29889,
29871,
350,
314,
5325,
526,
5164,
368,
772,
29877,
839,
491,
13,
5746,
13171,
7833,
3919,
313,
29873,
15118,
29899,
16122,
29899,
16170,
1723,
392,
6219,
29892,
304,
3867,
13,
27358,
566,
487,
29886,
15815,
310,
5375,
11916,
322,
772,
29877,
839,
29899,
27358,
566,
487,
29886,
15815,
29889,
13,
13,
29906,
29897,
3938,
557,
5432,
338,
8988,
714,
773,
10937,
29925,
373,
2211,
6166,
310,
11916,
29901,
13,
13,
29875,
29897,
5375,
11916,
29892,
13607,
29897,
19923,
487,
29886,
15815,
29892,
322,
474,
2236,
29897,
13,
1129,
29877,
839,
29899,
27358,
566,
487,
29886,
15815,
29889,
13,
13,
28575,
3987,
1863,
363,
773,
2761,
2066,
297,
19224,
29899,
4804,
292,
29901,
13,
13,
29875,
29897,
2178,
19224,
5432,
1122,
367,
8988,
714,
2750,
263,
2323,
2761,
639,
13,
735,
15362,
29892,
297,
607,
1206,
278,
2761,
1818,
367,
3858,
839,
13,
29966,
29873,
15118,
29958,
29899,
29966,
6451,
29958,
29899,
29934,
29896,
29889,
13,
13,
2236,
29897,
3938,
10327,
1122,
367,
2000,
2750,
772,
29877,
839,
2761,
2066,
363,
1269,
13,
5746,
13171,
7833,
3919,
313,
294,
13622,
363,
3553,
29934,
29897,
297,
607,
1206,
599,
2211,
13,
412,
557,
29899,
4804,
292,
6576,
674,
367,
8988,
714,
773,
772,
29877,
839,
11761,
3858,
839,
13,
29966,
29873,
15118,
29958,
29899,
29966,
16122,
29958,
29899,
29934,
29900,
29889,
13,
13,
25609,
29897,
3938,
557,
5432,
363,
5375,
11916,
1122,
367,
8988,
714,
773,
13,
26255,
19228,
491,
1634,
5926,
29889,
512,
607,
1206,
19224,
5432,
363,
13,
27358,
566,
487,
29886,
15815,
674,
367,
8988,
714,
2750,
278,
1021,
2761,
13,
29898,
29875,
29889,
29872,
29889,
19923,
487,
29886,
1414,
310,
278,
2761,
934,
947,
451,
2125,
2058,
511,
322,
13,
412,
557,
5432,
363,
278,
772,
29877,
839,
19923,
487,
29886,
15815,
338,
8988,
714,
2750,
263,
13,
1129,
29877,
839,
2761,
29889,
13,
13,
15666,
557,
4804,
292,
363,
3553,
29934,
338,
12695,
425,
29916,
322,
278,
2984,
4864,
304,
13,
6550,
1598,
278,
1353,
310,
1236,
10327,
2000,
773,
2845,
448,
29876,
412,
10327,
470,
448,
29888,
7707,
29889,
313,
3112,
13,
13029,
367,
5181,
304,
671,
263,
2888,
1891,
1873,
310,
1065,
29918,
29879,
407,
29889,
29934,
363,
697,
470,
13,
1228,
310,
1438,
3987,
29892,
8679,
373,
607,
1873,
310,
10937,
29925,
338,
1641,
13,
3389,
29892,
445,
2984,
338,
884,
4944,
1846,
13,
13,
29941,
29897,
3553,
29934,
7418,
338,
8988,
714,
773,
399,
6794,
1367,
29934,
313,
4716,
502,
263,
3017,
13,
17699,
363,
9853,
29899,
3200,
391,
3819,
29899,
15916,
29889,
29878,
29897,
363,
474,
29897,
599,
5101,
3538,
13,
510,
862,
14125,
310,
5375,
1634,
15815,
2629,
385,
8528,
13171,
7833,
3919,
29892,
13607,
29897,
11000,
13,
974,
282,
2146,
287,
487,
29886,
15815,
363,
1269,
4559,
29892,
322,
474,
2236,
29897,
3300,
2859,
772,
29877,
839,
13,
27358,
566,
487,
29886,
15815,
363,
1269,
8528,
13171,
7833,
3919,
29889,
4525,
6576,
3867,
3553,
29934,
7418,
13,
265,
1677,
273,
29880,
1634,
15815,
29892,
3553,
29934,
7418,
373,
1583,
29899,
19923,
487,
29886,
15815,
29892,
322,
3553,
29934,
13,
15916,
373,
772,
29877,
839,
29899,
27358,
566,
487,
29886,
15815,
29892,
8307,
29889,
13,
13,
11863,
7408,
13,
9072,
13,
13,
29946,
29897,
12206,
3553,
29934,
7418,
29892,
263,
1473,
7408,
310,
278,
16439,
13,
29898,
17158,
15666,
557,
29903,
1691,
29897,
1122,
367,
1065,
29889,
365,
4626,
4314,
393,
4418,
297,
4958,
310,
13,
29915,
3317,
29918,
1949,
15666,
10327,
29918,
5612,
29915,
470,
525,
1311,
29899,
3200,
391,
3819,
29915,
1122,
367,
6790,
363,
13,
735,
10085,
297,
278,
2295,
934,
29889,
29871,
3323,
27284,
29892,
599,
1661,
29899,
735,
13347,
289,
314,
5325,
13,
598,
772,
29877,
839,
639,
8528,
13171,
7833,
3919,
577,
393,
1716,
263,
8976,
1230,
19224,
731,
322,
13,
3670,
3039,
19224,
731,
1122,
367,
10723,
29889,
13,
13,
13,
27573,
13,
2751,
29922,
13,
13,
13393,
584,
999,
18078,
29925,
23828,
29020,
3373,
29952,
322,
584,
999,
18078,
29925,
23828,
27795,
29952,
373,
2498,
2472,
13,
3525,
304,
671,
274,
28818,
8450,
24210,
29889,
13,
13,
8614,
13,
9072,
29899,
13,
13,
1576,
16439,
6858,
263,
13252,
584,
1445,
18078,
13096,
5570,
29889,
2172,
29952,
934,
29889,
13,
13,
29903,
561,
14668,
12276,
3461,
6858,
263,
584,
1445,
18078,
5527,
29889,
2272,
29952,
322,
584,
1445,
18078,
29879,
561,
14668,
12276,
29889,
2172,
29952,
13,
1445,
313,
4149,
584,
999,
18078,
29925,
23828,
14526,
14170,
362,
12913,
1763,
1369,
411,
29892,
671,
278,
2066,
19056,
13,
2541,
278,
584,
999,
18078,
14023,
29952,
848,
29889,
13,
13,
4290,
13,
23648,
13,
13,
27636,
10970,
13,
1817,
1817,
1817,
1817,
1817,
1817,
1817,
29974,
13,
13,
1123,
1548,
1860,
13,
9072,
13,
13,
1576,
16439,
6858,
278,
2582,
515,
584,
1514,
18078,
13096,
5570,
29918,
6735,
800,
1412,
3789,
278,
13,
13305,
2286,
584,
2272,
29901,
1272,
18078,
6735,
800,
29918,
9803,
29952,
13,
392,
584,
2272,
29901,
1272,
18078,
6735,
800,
29918,
3972,
1412,
13,
13,
2951,
2246,
310,
278,
2322,
274,
28818,
6230,
29892,
278,
16439,
6858,
278,
1494,
7047,
13,
517,
367,
297,
278,
2224,
29901,
13,
13,
29974,
2683,
27385,
2683,
12918,
2683,
2683,
27385,
13,
29989,
29930,
9283,
29930,
965,
891,
29930,
6594,
29930,
3986,
891,
29930,
29925,
332,
4220,
29930,
462,
965,
891,
13,
29974,
2683,
27385,
2683,
12918,
2683,
2683,
27385,
13,
29989,
462,
1678,
891,
462,
259,
891,
462,
462,
1678,
891,
13,
29974,
2683,
27385,
2683,
12918,
2683,
2683,
27385,
13,
13,
29925,
23828,
1962,
13,
4936,
2751,
25512,
13,
13,
1576,
4655,
1962,
338,
297,
278,
2566,
934,
584,
1445,
18078,
7638,
2585,
1412,
13,
13,
14023,
13,
2751,
25512,
13,
13,
14023,
848,
338,
3625,
472,
1732,
597,
1636,
29889,
29883,
28818,
29889,
990,
24629,
392,
12588,
29914,
11249,
29918,
1272,
29905,
13,
29914,
13096,
5570,
29918,
1367,
29934,
29889,
29873,
18828,
29889,
13,
1762,
1065,
278,
1342,
29892,
3763,
443,
4058,
322,
443,
12637,
1057,
13,
13,
259,
281,
657,
1732,
597,
1636,
29889,
29883,
28818,
29889,
990,
24629,
392,
12588,
29914,
11249,
29918,
1272,
29914,
13096,
5570,
29918,
1367,
29934,
29889,
29873,
18828,
13,
259,
9913,
448,
29916,
29894,
29920,
29888,
16439,
29918,
1367,
29934,
29889,
29873,
18828,
13,
259,
14965,
16439,
29918,
1367,
29934,
13,
259,
3017,
529,
4351,
3972,
20690,
13096,
5570,
29918,
1367,
29934,
29889,
2272,
1207,
2989,
13,
13,
636,
4443,
1057,
13,
259,
1152,
278,
16439,
304,
1065,
29892,
2601,
278,
584,
1514,
18078,
13096,
5570,
29918,
6735,
800,
29952,
408,
1532,
29889,
13,
13,
29954,
6758,
653,
13,
4936,
13,
13,
636,
3144,
2209,
653,
1057,
13,
13,
13,
3399,
13,
2751,
13,
13,
15945,
29908,
13,
13,
3166,
364,
3096,
375,
1053,
334,
13,
13,
5215,
10876,
13,
5215,
2897,
13,
5215,
4256,
8504,
13,
5215,
337,
13,
5215,
21120,
29941,
13,
5215,
13149,
13,
5215,
528,
4422,
13,
13,
5215,
274,
28818,
3221,
29889,
735,
15362,
408,
382,
13,
5215,
274,
28818,
3221,
29889,
24414,
8789,
408,
474,
327,
8789,
13,
5215,
274,
28818,
3221,
29889,
9803,
408,
5470,
13,
13,
5215,
274,
28818,
29925,
666,
24210,
29889,
29925,
23828,
1367,
29934,
408,
3553,
29934,
13,
3166,
274,
28818,
3221,
1053,
16439,
408,
349,
13,
5215,
274,
28818,
29925,
666,
24210,
29889,
29925,
23828,
5323,
4684,
408,
349,
23828,
5323,
4684,
13,
13,
29937,
349,
23828,
5285,
13,
29925,
29889,
657,
11507,
29898,
13,
1678,
6796,
29995,
29879,
29914,
13096,
5570,
29889,
2172,
29908,
1273,
2897,
29889,
2084,
29889,
23579,
568,
486,
22168,
1445,
1649,
9601,
29900,
1402,
13,
268,
376,
6995,
13096,
5570,
29889,
2172,
613,
13,
268,
376,
13096,
5570,
29889,
2172,
20068,
13,
13,
16320,
29909,
4345,
353,
349,
29889,
16320,
29909,
4345,
13,
13,
16320,
29909,
4345,
29889,
5504,
29898,
29925,
29889,
412,
1416,
11507,
29898,
13,
1678,
349,
1718,
29909,
4345,
3366,
6735,
800,
29918,
3972,
12436,
13,
1678,
376,
13096,
5570,
29918,
6735,
800,
29889,
2272,
613,
13,
1678,
10944,
543,
6735,
800,
29918,
613,
13,
1678,
2767,
29918,
13248,
29922,
5574,
876,
13,
13,
29937,
6162,
546,
3168,
10417,
16257,
304,
5855,
29892,
2992,
13,
17708,
353,
349,
23828,
5323,
4684,
29889,
12300,
17708,
13,
13,
29937,
4529,
16257,
2729,
373,
599,
11916,
297,
869,
29890,
314,
1445,
393,
526,
451,
1881,
470,
2380,
13,
5659,
11375,
29903,
353,
349,
23828,
5323,
4684,
29889,
5323,
4684,
29898,
17708,
467,
1359,
4591,
9882,
29898,
13,
1678,
13149,
29889,
23705,
29898,
359,
29889,
2084,
29889,
7122,
29898,
16320,
29909,
4345,
29889,
657,
703,
5479,
29918,
29890,
314,
5325,
613,
376,
4968,
376,
10521,
29890,
314,
1159,
511,
13,
1678,
376,
1194,
29903,
29974,
467,
29890,
314,
613,
13,
1678,
19060,
11759,
1642,
29974,
2080,
29889,
13578,
2314,
13,
13,
13,
29992,
5325,
29898,
8516,
29892,
6213,
29897,
13,
1753,
1596,
5323,
4684,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
349,
29889,
25442,
14182,
29876,
29905,
29876,
29905,
29876,
29905,
29876,
2158,
292,
16257,
29901,
1159,
13,
1678,
363,
5702,
297,
8528,
13171,
7833,
3919,
29903,
29901,
13,
4706,
1596,
14182,
29873,
1159,
13,
4706,
1596,
29898,
11294,
29897,
13,
13,
13,
1753,
679,
29918,
412,
557,
29918,
4804,
261,
29918,
16744,
29898,
412,
557,
29918,
4804,
261,
29918,
333,
1125,
13,
1678,
9995,
13,
1678,
16969,
263,
8600,
310,
2295,
934,
4128,
363,
278,
10434,
19224,
24959,
13,
1678,
313,
273,
4218,
304,
3013,
2130,
304,
349,
1718,
29909,
4345,
714,
310,
6942,
16439,
2471,
467,
13,
1678,
9995,
13,
1678,
24959,
29918,
16744,
353,
6571,
13,
1678,
24959,
29918,
13506,
353,
19224,
29918,
4804,
261,
29918,
333,
718,
11119,
6768,
29908,
13,
1678,
363,
1820,
29892,
995,
297,
349,
1718,
29909,
4345,
29889,
7076,
7295,
13,
4706,
565,
337,
29889,
4352,
29898,
4804,
261,
29918,
13506,
29892,
1820,
1125,
13,
9651,
24959,
29918,
16744,
29961,
1989,
29962,
353,
995,
13,
13,
1678,
736,
24959,
29918,
16744,
13,
13,
13,
1753,
4511,
7295,
13,
1678,
14550,
6915,
304,
2566,
29889,
13,
13,
1678,
4803,
445,
1158,
304,
4511,
304,
5684,
21218,
29889,
13,
13,
1678,
16969,
263,
2566,
3957,
29889,
13,
1678,
14550,
13,
13,
1678,
4833,
29882,
353,
21120,
29941,
29889,
6915,
29898,
16320,
29909,
4345,
3366,
9803,
29918,
978,
20068,
13,
1678,
3229,
353,
14550,
1299,
8687,
29950,
27640,
27982,
14210,
29879,
29915,
408,
25495,
12008,
1273,
313,
13,
4706,
349,
1718,
29909,
4345,
3366,
6735,
800,
29918,
9803,
20068,
13,
1678,
21759,
353,
4833,
29882,
29889,
18127,
580,
13,
1678,
21759,
29889,
7978,
29898,
20788,
29897,
13,
1678,
21759,
29889,
5358,
580,
13,
13,
1678,
736,
4833,
29882,
13,
13,
13,
29937,
10554,
350,
314,
5325,
13,
29992,
23031,
29879,
29898,
11256,
3972,
703,
29890,
314,
5325,
29918,
4572,
287,
5783,
13,
29992,
9067,
29898,
359,
29889,
2084,
29889,
7122,
29898,
16320,
29909,
4345,
3366,
5479,
29918,
29890,
314,
5325,
12436,
376,
10521,
29890,
314,
4968,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
29890,
314,
4968,
13,
965,
364,
1642,
29914,
29890,
314,
5325,
29918,
4572,
287,
7998,
29906,
29889,
29879,
15440,
295,
1159,
13,
1753,
4175,
29933,
314,
5325,
29898,
262,
1445,
29892,
2665,
262,
295,
1125,
13,
1678,
9995,
13,
1678,
4721,
29899,
5014,
289,
314,
5325,
7536,
304,
19224,
5432,
29889,
13,
1678,
474,
29897,
2656,
289,
314,
5325,
13,
1678,
13607,
29897,
3349,
443,
655,
2986,
13623,
2541,
289,
314,
29906,
29890,
314,
29889,
2272,
13,
1678,
474,
2236,
29897,
3349,
1661,
29899,
3909,
339,
873,
10417,
13623,
411,
289,
314,
29906,
29890,
314,
29889,
2272,
313,
25253,
29897,
13,
1678,
20444,
29897,
3349,
20955,
411,
14612,
3163,
4485,
29928,
786,
15815,
313,
25253,
29897,
13,
1678,
325,
29897,
3349,
13623,
515,
11105,
287,
12786,
411,
6592,
8504,
25869,
313,
25253,
29897,
13,
1678,
3516,
29897,
2380,
13,
1678,
9995,
13,
13,
1678,
396,
1653,
5694,
1445,
363,
14612,
538,
29915,
29879,
4485,
29928,
786,
15815,
13,
1678,
11942,
538,
29918,
7050,
353,
349,
29889,
657,
15637,
9170,
29898,
16320,
29909,
4345,
3366,
10526,
905,
3972,
20068,
13,
13,
1678,
714,
1445,
353,
349,
29889,
16586,
666,
29898,
29879,
15440,
295,
29892,
11393,
29879,
15440,
295,
1159,
718,
11393,
29890,
314,
29908,
13,
13,
1678,
396,
9801,
289,
314,
1445,
338,
12705,
29892,
13,
1678,
3229,
353,
6796,
13445,
8504,
2656,
732,
1177,
29992,
448,
29877,
732,
12015,
29992,
29889,
29890,
314,
613,
4514,
13,
13,
1678,
396,
3349,
443,
655,
2986,
13623,
13,
1678,
3229,
29889,
4397,
703,
29883,
28818,
289,
314,
29906,
29890,
314,
29908,
13,
462,
268,
376,
1192,
5696,
29922,
4572,
1192,
4572,
29899,
5696,
29922,
655,
2986,
29908,
13,
462,
268,
376,
1192,
1188,
16328,
29898,
449,
1445,
29897,
29879,
29889,
1188,
29908,
13,
462,
268,
376,
529,
732,
1177,
29992,
29889,
29890,
314,
29908,
13,
462,
268,
376,
1405,
732,
12015,
29992,
1159,
13,
13,
1678,
396,
3349,
1661,
29899,
3909,
339,
873,
10417,
13623,
29892,
565,
13877,
13,
1678,
565,
349,
1718,
29909,
4345,
3366,
4572,
29918,
5992,
29918,
5464,
29918,
13092,
3108,
29901,
13,
4706,
3229,
29889,
4397,
703,
29883,
28818,
289,
314,
29906,
29890,
314,
29908,
13,
462,
308,
376,
1192,
5696,
29922,
4572,
1192,
4572,
29899,
5696,
29922,
13092,
29908,
13,
462,
308,
376,
1192,
1188,
16328,
29898,
449,
1445,
29897,
29879,
29889,
1188,
29908,
13,
462,
308,
376,
529,
732,
1177,
5507,
13,
462,
308,
376,
1405,
732,
12015,
29992,
1159,
13,
13,
1678,
396,
3349,
20955,
29892,
565,
13877,
13,
1678,
565,
349,
1718,
29909,
4345,
3366,
4572,
29918,
5992,
29918,
20908,
15815,
3108,
29901,
13,
4706,
3229,
29889,
4397,
703,
9802,
29928,
786,
15815,
29908,
13,
462,
308,
376,
2672,
12336,
29922,
29992,
1177,
5507,
13,
462,
308,
376,
319,
1799,
29965,
2303,
29918,
29903,
8476,
3352,
29922,
3009,
29908,
13,
462,
308,
376,
5195,
6720,
12064,
29918,
29928,
4897,
27888,
1299,
2890,
29922,
3009,
29908,
13,
462,
308,
376,
660,
3120,
2544,
29922,
4541,
29908,
13,
462,
308,
376,
19474,
12336,
29922,
29992,
12015,
5507,
13,
462,
308,
376,
341,
2544,
29934,
2965,
29903,
29918,
7724,
14327,
3359,
29914,
4304,
29908,
13,
462,
308,
376,
12599,
1367,
8098,
29918,
20785,
1430,
29907,
29979,
29922,
5425,
1307,
20321,
29908,
13,
462,
308,
376,
323,
3580,
29918,
9464,
16328,
29898,
16447,
538,
29918,
7050,
29897,
29879,
29908,
13,
462,
308,
376,
29871,
29906,
29958,
1273,
29898,
449,
1445,
29897,
29879,
29889,
1188,
1159,
13,
13,
1678,
396,
11105,
12786,
29892,
565,
18747,
19056,
13,
1678,
565,
349,
1718,
29909,
4345,
3366,
4572,
29918,
13168,
29918,
19207,
29879,
3108,
29901,
13,
4706,
11105,
353,
349,
1718,
29909,
4345,
3366,
4572,
29918,
13168,
29918,
19207,
29879,
3108,
13,
4706,
3229,
29889,
4397,
703,
2580,
8504,
25869,
29908,
13,
462,
308,
376,
448,
370,
314,
732,
1177,
5507,
13,
462,
308,
376,
448,
29890,
1273,
29898,
13168,
29897,
29879,
29908,
13,
462,
308,
376,
448,
2766,
29908,
13,
462,
308,
376,
448,
29894,
29908,
13,
462,
308,
376,
1405,
732,
12015,
29992,
1159,
13,
13,
1678,
3229,
29889,
4397,
703,
29324,
732,
1177,
29992,
1273,
29898,
449,
1445,
29897,
29879,
1159,
13,
1678,
3229,
29889,
4397,
703,
13445,
8504,
2380,
1273,
29898,
449,
1445,
29897,
29879,
1159,
13,
268,
13,
1678,
4982,
29918,
14834,
353,
376,
29945,
29954,
29908,
13,
1678,
3229,
353,
349,
29889,
7122,
9513,
4110,
29898,
20788,
29892,
297,
1445,
29897,
13,
13,
1678,
349,
29889,
3389,
580,
13,
1678,
349,
29889,
16747,
29898,
29879,
15440,
295,
29897,
13,
1678,
528,
4422,
29889,
1758,
8336,
29898,
16447,
538,
29918,
7050,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
4572,
29933,
314,
5325,
29892,
29356,
703,
29890,
314,
5325,
29918,
27358,
566,
487,
29886,
15815,
5783,
13,
29992,
9067,
4197,
359,
29889,
2084,
29889,
7122,
703,
6904,
29890,
314,
5325,
29918,
4572,
287,
613,
921,
29889,
294,
2283,
580,
718,
11393,
29879,
15440,
295,
1159,
13,
9651,
363,
921,
297,
10014,
11375,
29903,
1402,
13,
965,
6528,
703,
6904,
29890,
314,
5325,
29918,
4572,
287,
29914,
11891,
29974,
467,
29879,
15440,
295,
4968,
13,
965,
364,
1642,
29914,
29890,
314,
5325,
29918,
27358,
566,
487,
29886,
15815,
7998,
29896,
29889,
29879,
15440,
295,
1159,
13,
1753,
6219,
29933,
314,
5325,
29898,
262,
1445,
29892,
2665,
262,
295,
1125,
13,
1678,
9995,
13,
1678,
1152,
599,
16257,
29892,
6219,
278,
22289,
289,
314,
1445,
297,
1023,
773,
282,
952,
314,
13,
1678,
9995,
13,
1678,
297,
1445,
353,
349,
29889,
16586,
666,
29898,
262,
1445,
29892,
11393,
29879,
15440,
295,
1159,
718,
11393,
29890,
314,
29908,
13,
1678,
714,
1445,
353,
349,
29889,
16586,
666,
29898,
29879,
15440,
295,
29892,
11393,
29879,
15440,
295,
1159,
13,
1678,
8636,
353,
525,
29906,
29915,
13,
1678,
1018,
29901,
13,
4706,
3883,
353,
349,
29889,
16586,
666,
29898,
1367,
29934,
17255,
1445,
1649,
29892,
11393,
2272,
1159,
13,
1678,
5174,
7865,
2392,
29901,
13,
4706,
3883,
353,
349,
29889,
16586,
666,
29898,
1367,
29934,
17255,
1445,
1649,
29892,
11393,
2272,
29883,
1159,
13,
13,
1678,
349,
29889,
7892,
29898,
5453,
29892,
13,
632,
376,
5451,
29933,
314,
613,
13,
632,
8636,
29892,
13,
632,
297,
1445,
29892,
13,
632,
714,
1445,
29897,
13,
13,
1678,
349,
29889,
16747,
29898,
29879,
15440,
295,
29897,
13,
13,
13,
29937,
319,
29950,
29901,
3349,
1634,
5926,
11809,
363,
1881,
16257,
13,
29937,
319,
29950,
29901,
4772,
2778,
3460,
565,
871,
697,
337,
572,
423,
312,
29872,
13,
29992,
23031,
29879,
29898,
11256,
3972,
703,
29890,
314,
5325,
29918,
1129,
29877,
839,
5783,
13,
29992,
1054,
9632,
29898,
4572,
29933,
314,
5325,
29892,
13,
308,
6528,
29898,
29878,
29908,
11891,
29974,
6802,
11891,
29974,
6817,
2080,
29899,
5575,
29889,
29879,
15440,
295,
4968,
13,
308,
364,
1642,
29914,
29890,
314,
5325,
29918,
1129,
29877,
839,
7998,
29906,
29899,
2080,
29899,
29934,
29900,
29889,
29879,
15440,
295,
1159,
13,
1753,
11565,
4290,
29933,
314,
5325,
29898,
262,
5325,
29892,
2665,
262,
295,
1125,
13,
1678,
9995,
13,
1678,
4702,
479,
22289,
1881,
2066,
363,
1269,
260,
15118,
29892,
411,
278,
2984,
310,
429,
22368,
13,
1678,
563,
267,
27797,
9562,
29889,
13,
1678,
9995,
13,
1678,
297,
5325,
353,
518,
29925,
29889,
16586,
666,
29898,
29916,
29892,
11393,
29879,
15440,
295,
1159,
718,
11393,
29890,
314,
29908,
363,
921,
297,
297,
5325,
29962,
13,
1678,
714,
1445,
353,
349,
29889,
16586,
666,
29898,
29879,
15440,
295,
29892,
11393,
29879,
15440,
295,
1159,
718,
11393,
29890,
314,
29908,
13,
1678,
4319,
29918,
27736,
353,
349,
1718,
29909,
4345,
3366,
4572,
29918,
5992,
29918,
2080,
29879,
16862,
5451,
28165,
1159,
13,
13,
1678,
565,
7431,
29898,
262,
5325,
29897,
1405,
29871,
29896,
29901,
13,
4706,
304,
29918,
14634,
353,
3553,
29934,
29889,
4572,
22050,
29931,
4626,
4314,
29898,
262,
5325,
29892,
4319,
29918,
27736,
29897,
13,
4706,
3553,
29934,
29889,
14634,
29933,
2232,
29898,
517,
29918,
14634,
29892,
714,
1445,
29897,
13,
1678,
1683,
29901,
13,
4706,
2897,
29889,
29879,
21053,
682,
29898,
359,
29889,
2084,
29889,
370,
1028,
493,
29898,
262,
5325,
29961,
29900,
11724,
714,
1445,
29897,
13,
4706,
2897,
29889,
29879,
21053,
682,
29898,
359,
29889,
2084,
29889,
370,
1028,
493,
29898,
262,
5325,
29961,
29900,
2314,
718,
11393,
29890,
1794,
613,
714,
1445,
718,
11393,
29890,
1794,
1159,
13,
13,
1678,
349,
29889,
16747,
29898,
29879,
15440,
295,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
11256,
3972,
703,
29890,
314,
5325,
29918,
1129,
29877,
839,
5783,
13,
29992,
1054,
9632,
29898,
4572,
29933,
314,
5325,
29892,
13,
308,
6528,
29898,
29878,
29908,
11891,
29974,
6802,
11891,
29974,
6817,
3552,
29973,
29991,
2080,
467,
29930,
6817,
29934,
29961,
29900,
29899,
29929,
10062,
29889,
29879,
15440,
295,
4968,
13,
308,
364,
1642,
29914,
29890,
314,
5325,
29918,
1129,
29877,
839,
7998,
29906,
2612,
29941,
29899,
29934,
29900,
29889,
29879,
15440,
295,
1159,
13,
1753,
11565,
17708,
29933,
314,
5325,
29898,
262,
5325,
29892,
2665,
262,
295,
1125,
13,
1678,
9995,
13,
1678,
4702,
479,
22289,
4559,
2066,
363,
1269,
260,
15118,
13,
1678,
9995,
13,
1678,
297,
5325,
353,
518,
29925,
29889,
16586,
666,
29898,
29916,
29892,
11393,
29879,
15440,
295,
1159,
718,
11393,
29890,
314,
29908,
363,
921,
297,
297,
5325,
29962,
13,
1678,
714,
1445,
353,
349,
29889,
16586,
666,
29898,
29879,
15440,
295,
29892,
11393,
29879,
15440,
295,
1159,
718,
11393,
29890,
314,
29908,
13,
13,
1678,
3553,
29934,
29889,
14634,
29933,
2232,
29898,
262,
5325,
29892,
714,
1445,
29897,
13,
13,
1678,
349,
29889,
16747,
29898,
29879,
15440,
295,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
11256,
3972,
703,
6904,
29890,
314,
5325,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
5783,
13,
29992,
9067,
29898,
10109,
17708,
29933,
314,
5325,
29892,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
29879,
15440,
295,
4968,
13,
965,
364,
1642,
29914,
29890,
314,
5325,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
7998,
29906,
29889,
29879,
15440,
295,
1159,
13,
1753,
6219,
29925,
3634,
839,
29933,
314,
5325,
29898,
262,
1445,
29892,
2665,
262,
295,
1125,
13,
1678,
297,
1445,
353,
349,
29889,
16586,
666,
29898,
262,
1445,
29892,
11393,
29879,
15440,
295,
1159,
718,
11393,
29890,
314,
29908,
13,
1678,
714,
1445,
353,
349,
29889,
16586,
666,
29898,
29879,
15440,
295,
29892,
11393,
29879,
15440,
295,
1159,
13,
1678,
8636,
353,
525,
29906,
29915,
13,
1678,
1018,
29901,
13,
4706,
3883,
353,
349,
29889,
16586,
666,
29898,
1367,
29934,
17255,
1445,
1649,
29892,
11393,
2272,
1159,
13,
1678,
5174,
7865,
2392,
29901,
13,
4706,
3883,
353,
349,
29889,
16586,
666,
29898,
1367,
29934,
17255,
1445,
1649,
29892,
11393,
2272,
29883,
1159,
13,
13,
1678,
349,
29889,
7892,
29898,
5453,
29892,
13,
632,
376,
5451,
29933,
314,
613,
13,
632,
8636,
29892,
13,
632,
297,
1445,
29892,
13,
632,
714,
1445,
29897,
13,
13,
1678,
349,
29889,
16747,
29898,
29879,
15440,
295,
29897,
13,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
29937,
7525,
3938,
557,
5432,
363,
3553,
29934,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13,
13,
29992,
23031,
29879,
29898,
4572,
29933,
314,
5325,
29892,
13,
308,
11565,
4290,
29933,
314,
5325,
29892,
13,
308,
29356,
703,
412,
557,
5325,
29918,
513,
23352,
29918,
3445,
15815,
4968,
13,
308,
29356,
703,
16202,
5783,
13,
29992,
9067,
4197,
359,
29889,
2084,
29889,
7122,
703,
6904,
29890,
314,
5325,
29918,
4572,
287,
613,
921,
29889,
294,
2283,
580,
718,
11393,
29879,
15440,
295,
1159,
13,
9651,
363,
921,
297,
10014,
11375,
29903,
1402,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
29879,
15440,
295,
4968,
13,
965,
364,
1642,
29914,
412,
557,
5325,
29918,
513,
23352,
29918,
3445,
15815,
7998,
29906,
29918,
12803,
15666,
557,
29889,
29879,
15440,
295,
1159,
13,
1753,
1246,
15666,
10327,
2951,
2568,
23352,
5612,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
297,
1445,
353,
349,
29889,
16586,
666,
29898,
262,
1445,
29892,
11393,
29879,
15440,
295,
1159,
718,
11393,
29890,
314,
29908,
13,
1678,
396,
6699,
19224,
5432,
4128,
13,
1678,
349,
1718,
29909,
4345,
29918,
4162,
22311,
29907,
9818,
1001,
353,
679,
29918,
412,
557,
29918,
4804,
261,
29918,
16744,
29898,
13,
4706,
349,
1718,
29909,
4345,
3366,
6768,
29918,
412,
557,
29918,
4804,
261,
20068,
13,
13,
1678,
396,
1246,
1236,
10327,
13,
1678,
3553,
29934,
29889,
4804,
1367,
29934,
15666,
10327,
29898,
262,
1445,
29892,
13,
462,
268,
714,
1445,
29892,
13,
462,
268,
349,
1718,
29909,
4345,
3366,
6768,
29918,
412,
557,
29918,
4804,
261,
12436,
13,
462,
268,
349,
1718,
29909,
4345,
3366,
6768,
29918,
6451,
29918,
1853,
12436,
13,
462,
268,
349,
1718,
29909,
4345,
29918,
4162,
22311,
29907,
9818,
1001,
29897,
13,
13,
1678,
349,
29889,
16747,
29898,
449,
1445,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
4804,
15666,
10327,
2951,
2568,
23352,
5612,
15815,
29897,
13,
29992,
14634,
703,
6904,
412,
557,
5325,
29918,
513,
23352,
29918,
3445,
15815,
5515,
29889,
29876,
2936,
15666,
557,
29889,
18828,
613,
13,
539,
376,
6904,
412,
557,
5325,
29918,
513,
23352,
29918,
3445,
15815,
12975,
13,
539,
376,
412,
557,
4804,
292,
29918,
7727,
29918,
513,
23352,
29918,
3445,
15815,
29889,
1372,
29894,
1159,
13,
1753,
19138,
675,
15666,
10327,
2831,
2568,
23352,
5612,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
714,
29888,
353,
474,
327,
8789,
29889,
3150,
2283,
29898,
449,
1445,
29892,
376,
29893,
1159,
13,
1678,
714,
29888,
29889,
3539,
703,
17708,
29918,
333,
29905,
29873,
29908,
13,
1669,
376,
1252,
15362,
29905,
29873,
29908,
13,
1669,
376,
29911,
15118,
29905,
29873,
29908,
13,
1669,
376,
25255,
29905,
29873,
29908,
13,
1669,
376,
5612,
5926,
29905,
29873,
29908,
13,
1669,
376,
29876,
29918,
412,
10327,
29905,
29876,
1159,
13,
1678,
3553,
29934,
29889,
2798,
15666,
10327,
29898,
262,
5325,
29892,
714,
29888,
29897,
13,
13,
13,
29992,
9067,
29898,
2083,
3034,
675,
15666,
10327,
2831,
2568,
23352,
5612,
15815,
29892,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
1372,
29894,
4968,
13,
965,
364,
26732,
29906,
29889,
1359,
1159,
13,
1753,
2254,
15666,
557,
26289,
2831,
2568,
23352,
5612,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
349,
29889,
1359,
29898,
262,
1445,
29892,
714,
1445,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
5451,
29933,
314,
5325,
29892,
13,
308,
11565,
4290,
29933,
314,
5325,
29892,
13,
308,
29356,
703,
412,
557,
5325,
29918,
27358,
566,
487,
29886,
15815,
5783,
13,
29992,
9067,
703,
6904,
29890,
314,
5325,
29918,
27358,
566,
487,
29886,
15815,
5515,
29889,
29890,
314,
613,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
29890,
314,
4968,
13,
965,
364,
1642,
29914,
412,
557,
5325,
29918,
27358,
566,
487,
29886,
15815,
7998,
29906,
29918,
12803,
15666,
557,
29889,
29879,
15440,
295,
1159,
13,
1753,
1246,
15666,
10327,
2951,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
396,
6699,
19224,
5432,
4128,
13,
1678,
349,
1718,
29909,
4345,
29918,
4162,
22311,
29907,
9818,
1001,
353,
679,
29918,
412,
557,
29918,
4804,
261,
29918,
16744,
29898,
13,
4706,
349,
1718,
29909,
4345,
3366,
6768,
29918,
412,
557,
29918,
4804,
261,
20068,
13,
13,
1678,
396,
1246,
1236,
10327,
373,
19923,
487,
29886,
15815,
13,
1678,
3553,
29934,
29889,
4804,
1367,
29934,
15666,
10327,
29898,
262,
1445,
29892,
13,
462,
268,
714,
1445,
29892,
13,
462,
268,
349,
1718,
29909,
4345,
3366,
6768,
29918,
412,
557,
29918,
4804,
261,
12436,
13,
462,
268,
349,
1718,
29909,
4345,
3366,
6768,
29918,
6451,
29918,
1853,
12436,
13,
462,
268,
349,
1718,
29909,
4345,
29918,
4162,
22311,
29907,
9818,
1001,
29892,
13,
462,
268,
19923,
487,
29886,
5926,
29922,
5574,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
4804,
15666,
10327,
2951,
29925,
344,
566,
487,
29886,
15815,
29897,
13,
29992,
14634,
703,
6904,
412,
557,
5325,
29918,
27358,
566,
487,
29886,
15815,
5515,
29889,
29876,
2936,
15666,
557,
29889,
18828,
613,
13,
539,
376,
6904,
412,
557,
5325,
29918,
27358,
566,
487,
29886,
15815,
12975,
13,
539,
376,
412,
557,
4804,
292,
29918,
7727,
29918,
27358,
566,
487,
29886,
15815,
29889,
1372,
29894,
1159,
13,
1753,
19138,
675,
15666,
10327,
2831,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
714,
29888,
353,
474,
327,
8789,
29889,
3150,
2283,
29898,
449,
1445,
29892,
376,
29893,
1159,
13,
1678,
714,
29888,
29889,
3539,
703,
17708,
29918,
333,
29905,
29873,
29908,
13,
1669,
376,
1252,
15362,
29905,
29873,
29908,
13,
1669,
376,
29911,
15118,
29905,
29873,
29908,
13,
1669,
376,
25255,
29905,
29873,
29908,
13,
1669,
376,
29925,
344,
566,
487,
29886,
5926,
29905,
29873,
29908,
13,
1669,
376,
29876,
29918,
412,
10327,
29905,
29876,
1159,
13,
1678,
3553,
29934,
29889,
2798,
15666,
10327,
29898,
262,
5325,
29892,
714,
29888,
29897,
13,
13,
13,
29992,
9067,
29898,
2083,
3034,
675,
15666,
10327,
2831,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
1372,
29894,
4968,
13,
965,
364,
26732,
29906,
29889,
1359,
1159,
13,
1753,
2254,
15666,
557,
26289,
2831,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
349,
29889,
1359,
29898,
262,
1445,
29892,
714,
1445,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
5451,
29925,
3634,
839,
29933,
314,
5325,
29892,
13,
308,
11565,
4290,
29933,
314,
5325,
29892,
13,
308,
29356,
703,
412,
557,
5325,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
5783,
13,
29992,
9067,
703,
6904,
29890,
314,
5325,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
5515,
29889,
29890,
314,
613,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
29890,
314,
4968,
13,
965,
364,
1642,
29914,
412,
557,
5325,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
7998,
29906,
29889,
12803,
15666,
557,
29889,
29879,
15440,
295,
1159,
13,
1753,
1246,
15666,
10327,
2951,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
396,
6699,
19224,
5432,
4128,
13,
1678,
349,
1718,
29909,
4345,
29918,
4162,
22311,
29907,
9818,
1001,
353,
679,
29918,
412,
557,
29918,
4804,
261,
29918,
16744,
29898,
13,
4706,
349,
1718,
29909,
4345,
3366,
6768,
29918,
412,
557,
29918,
4804,
261,
20068,
13,
13,
1678,
396,
1246,
1236,
10327,
373,
19923,
487,
29886,
15815,
13,
1678,
3553,
29934,
29889,
4804,
1367,
29934,
15666,
10327,
29898,
262,
1445,
29892,
13,
462,
268,
714,
1445,
29892,
13,
462,
268,
349,
1718,
29909,
4345,
3366,
6768,
29918,
412,
557,
29918,
4804,
261,
12436,
13,
462,
268,
349,
1718,
29909,
4345,
3366,
6768,
29918,
6451,
29918,
1853,
12436,
13,
462,
268,
349,
1718,
29909,
4345,
29918,
4162,
22311,
29907,
9818,
1001,
29892,
13,
462,
268,
19923,
487,
29886,
5926,
29922,
5574,
29897,
13,
13,
1678,
349,
29889,
16747,
29898,
449,
1445,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
4804,
15666,
10327,
2951,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29897,
13,
29992,
14634,
703,
6904,
412,
557,
5325,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
5515,
29889,
29876,
2936,
15666,
557,
29889,
18828,
613,
13,
539,
376,
6904,
412,
557,
5325,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
12975,
13,
539,
376,
412,
557,
4804,
292,
29918,
7727,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
29889,
1372,
29894,
1159,
13,
1753,
19138,
675,
15666,
10327,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
714,
29888,
353,
474,
327,
8789,
29889,
3150,
2283,
29898,
449,
1445,
29892,
376,
29893,
1159,
13,
1678,
714,
29888,
29889,
3539,
703,
17708,
29918,
333,
29905,
29873,
29908,
13,
1669,
376,
1252,
15362,
29905,
29873,
29908,
13,
1669,
376,
29911,
15118,
29905,
29873,
29908,
13,
1669,
376,
25255,
29905,
29873,
29908,
13,
1669,
376,
29925,
344,
566,
487,
29886,
5926,
29905,
29873,
29908,
13,
1669,
376,
29876,
29918,
412,
10327,
29905,
29876,
1159,
13,
1678,
3553,
29934,
29889,
2798,
15666,
10327,
29898,
262,
5325,
29892,
714,
29888,
29897,
13,
13,
13,
29992,
9067,
29898,
2083,
3034,
675,
15666,
10327,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
1372,
29894,
4968,
13,
965,
364,
26732,
29906,
29889,
1359,
1159,
13,
1753,
2254,
15666,
557,
26289,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
349,
29889,
1359,
29898,
262,
1445,
29892,
714,
1445,
29897,
13,
13,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
29937,
7525,
3553,
29934,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13,
13,
29992,
23031,
29879,
29898,
4804,
15666,
10327,
2951,
2568,
23352,
5612,
15815,
29892,
13,
308,
29356,
703,
6904,
333,
29878,
29918,
513,
23352,
29918,
3445,
15815,
5783,
13,
29992,
1054,
9632,
703,
6904,
412,
557,
5325,
29918,
513,
23352,
29918,
3445,
15815,
5515,
29889,
12803,
15666,
557,
29889,
18828,
613,
13,
308,
6528,
29898,
29878,
29908,
11891,
29974,
6802,
11891,
29974,
6817,
11891,
29974,
6817,
29898,
29934,
29961,
29900,
29899,
29929,
10062,
20344,
21819,
29918,
11891,
29974,
467,
12803,
15666,
557,
29889,
18828,
4968,
13,
308,
364,
1642,
29914,
333,
29878,
29918,
513,
23352,
29918,
3445,
15815,
7998,
29906,
2612,
29941,
29889,
333,
29878,
1159,
13,
1753,
1065,
1367,
1672,
29876,
2568,
23352,
5612,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
9995,
13,
1678,
7525,
3553,
29934,
11888,
329,
3598,
363,
1269,
5101,
3538,
10296,
310,
263,
3153,
13,
1678,
8528,
13171,
7833,
3919,
13,
1678,
9995,
13,
1678,
396,
731,
3553,
29934,
4128,
313,
29950,
11375,
14366,
399,
6794,
1367,
29934,
338,
297,
847,
10270,
29914,
311,
955,
29914,
29883,
28818,
13,
1678,
18460,
29918,
2371,
353,
2897,
29889,
2084,
29889,
7122,
29898,
16320,
29909,
4345,
3366,
6735,
800,
29918,
3972,
12436,
13,
462,
632,
349,
1718,
29909,
4345,
3366,
6735,
800,
29918,
13248,
29918,
1285,
23379,
20068,
13,
13,
1678,
396,
13649,
1549,
5101,
3538,
18240,
310,
297,
5325,
13,
1678,
363,
297,
1445,
29896,
29892,
297,
1445,
29906,
297,
4256,
8504,
29889,
510,
2109,
800,
29898,
262,
5325,
29892,
29871,
29906,
1125,
13,
4706,
396,
679,
3229,
13,
4706,
3229,
353,
3553,
29934,
29889,
657,
1367,
29934,
14473,
29898,
262,
1445,
29896,
29892,
13,
462,
462,
4706,
297,
1445,
29906,
29892,
13,
462,
462,
4706,
714,
1445,
29892,
13,
462,
462,
4706,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
957,
6984,
29918,
3605,
601,
12436,
13,
462,
462,
4706,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
661,
9292,
29918,
26658,
12436,
13,
462,
462,
4706,
18460,
29918,
2371,
29897,
13,
13,
4706,
396,
1065,
13,
4706,
382,
29889,
3888,
703,
7302,
1367,
29934,
29901,
9068,
1273,
29879,
322,
1273,
29879,
29908,
1273,
313,
262,
1445,
29896,
29892,
297,
1445,
29906,
876,
13,
4706,
4982,
29918,
14834,
353,
376,
29945,
29954,
29908,
13,
4706,
349,
29889,
3389,
580,
13,
29937,
4706,
1596,
6634,
29876,
29908,
718,
3229,
718,
6634,
29876,
29908,
13,
13,
13,
29992,
9067,
29898,
3389,
1367,
1672,
29876,
2568,
23352,
5612,
15815,
29892,
13,
965,
6528,
703,
11891,
29974,
467,
333,
29878,
4968,
13,
965,
788,
29918,
2080,
29879,
29898,
29878,
26732,
29896,
29899,
29930,
29899,
5338,
29889,
29879,
485,
4968,
13,
965,
364,
26732,
29896,
29918,
16175,
29899,
3200,
391,
3819,
29889,
5140,
1159,
13,
1753,
6492,
23145,
13696,
391,
3819,
2831,
2568,
23352,
5612,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
13,
1678,
396,
379,
11375,
29991,
13,
1678,
3229,
353,
3553,
29934,
29889,
657,
1367,
29934,
20867,
14473,
29898,
262,
5325,
29892,
714,
1445,
29897,
13,
1678,
349,
29889,
3389,
580,
13,
29937,
1678,
1596,
3229,
13,
13,
13,
29992,
23031,
29879,
29898,
4804,
15666,
10327,
2951,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
29356,
703,
6904,
333,
29878,
29918,
27358,
566,
487,
29886,
15815,
5783,
13,
29992,
1054,
9632,
703,
6904,
412,
557,
5325,
29918,
27358,
566,
487,
29886,
15815,
5515,
29889,
12803,
15666,
557,
29889,
18828,
613,
13,
308,
6528,
703,
6904,
412,
557,
5325,
29918,
27358,
566,
487,
29886,
15815,
12975,
13,
1669,
376,
11891,
29974,
5033,
29918,
29900,
29900,
29989,
29918,
29900,
29896,
20344,
21819,
29918,
11891,
29974,
467,
12803,
15666,
557,
29889,
18828,
4968,
13,
308,
364,
29908,
333,
29878,
29918,
27358,
566,
487,
29886,
15815,
7998,
29896,
29918,
27358,
566,
487,
29886,
15815,
29889,
333,
29878,
1159,
13,
1753,
1065,
1367,
1672,
29876,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
9995,
13,
1678,
7525,
3553,
29934,
7418,
373,
19923,
487,
29886,
15815,
363,
1269,
10014,
11375,
13,
1678,
9995,
13,
1678,
396,
731,
3553,
29934,
4128,
13,
1678,
18460,
29918,
2371,
353,
2897,
29889,
2084,
29889,
7122,
29898,
16320,
29909,
4345,
3366,
6735,
800,
29918,
3972,
12436,
13,
462,
632,
349,
1718,
29909,
4345,
3366,
6735,
800,
29918,
13248,
29918,
1285,
23379,
20068,
13,
13,
1678,
396,
679,
3229,
13,
1678,
3229,
353,
3553,
29934,
29889,
657,
1367,
29934,
14473,
29898,
262,
5325,
29961,
29900,
1402,
13,
462,
462,
1678,
297,
5325,
29961,
29896,
1402,
13,
462,
462,
1678,
714,
1445,
29892,
13,
462,
462,
1678,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
957,
6984,
29918,
3605,
601,
12436,
13,
462,
462,
1678,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
661,
9292,
29918,
26658,
12436,
13,
462,
462,
1678,
18460,
29918,
2371,
29897,
13,
13,
1678,
396,
1065,
13,
1678,
382,
29889,
3888,
703,
7302,
1367,
29934,
29901,
9068,
1273,
29879,
322,
1273,
29879,
29908,
1273,
313,
262,
5325,
29961,
29900,
1402,
297,
5325,
29961,
29896,
12622,
13,
1678,
4982,
29918,
14834,
353,
376,
29945,
29954,
29908,
13,
1678,
349,
29889,
3389,
580,
13,
29937,
1678,
1596,
29871,
6634,
29876,
29908,
718,
3229,
718,
6634,
29876,
29908,
13,
13,
13,
29992,
1054,
9632,
29898,
3389,
1367,
1672,
29876,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
6528,
703,
11891,
29974,
20344,
27358,
566,
487,
29886,
15815,
29889,
333,
29878,
4968,
13,
308,
788,
29918,
2080,
29879,
29898,
29878,
26732,
29896,
29930,
29899,
5338,
29889,
29879,
485,
4968,
13,
308,
364,
26732,
29896,
29918,
16175,
29899,
3200,
391,
3819,
29889,
5140,
1159,
13,
1753,
6492,
23145,
13696,
391,
3819,
2831,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
3229,
353,
3553,
29934,
29889,
657,
1367,
29934,
20867,
14473,
29898,
262,
5325,
29961,
29900,
1402,
714,
1445,
29897,
13,
1678,
349,
29889,
3389,
580,
13,
13,
13,
29992,
23031,
29879,
29898,
4804,
15666,
10327,
2951,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
29356,
703,
6904,
333,
29878,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
5783,
13,
29992,
1054,
9632,
703,
6904,
412,
557,
5325,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
5515,
29889,
12803,
15666,
557,
29889,
18828,
613,
13,
308,
6528,
29898,
29878,
1642,
29914,
412,
557,
5325,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
12975,
13,
1669,
376,
11891,
29974,
5033,
29918,
29900,
29900,
29989,
29918,
29900,
29896,
20344,
21819,
29918,
11891,
29974,
467,
12803,
15666,
557,
29889,
18828,
4968,
13,
308,
364,
1642,
29914,
333,
29878,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
7998,
29896,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
5926,
29889,
333,
29878,
1159,
13,
1753,
1065,
1367,
1672,
29876,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
9995,
13,
1678,
7525,
3553,
29934,
7418,
373,
772,
29877,
839,
19923,
487,
29886,
15815,
363,
1269,
8528,
13171,
7833,
3919,
13,
1678,
9995,
13,
1678,
396,
731,
3553,
29934,
4128,
13,
1678,
18460,
29918,
2371,
353,
2897,
29889,
2084,
29889,
7122,
29898,
16320,
29909,
4345,
3366,
6735,
800,
29918,
3972,
12436,
13,
462,
632,
349,
1718,
29909,
4345,
3366,
6735,
800,
29918,
13248,
29918,
1285,
23379,
20068,
13,
13,
1678,
396,
679,
3229,
13,
1678,
3229,
353,
3553,
29934,
29889,
657,
1367,
29934,
14473,
29898,
262,
5325,
29961,
29900,
1402,
13,
462,
462,
1678,
297,
5325,
29961,
29896,
1402,
13,
462,
462,
1678,
714,
1445,
29892,
13,
462,
462,
1678,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
957,
6984,
29918,
3605,
601,
12436,
13,
462,
462,
1678,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
661,
9292,
29918,
26658,
12436,
13,
462,
462,
1678,
18460,
29918,
2371,
29897,
13,
13,
1678,
396,
1065,
13,
1678,
382,
29889,
3888,
703,
7302,
1367,
29934,
29901,
9068,
1273,
29879,
322,
1273,
29879,
29908,
1273,
313,
262,
5325,
29961,
29900,
1402,
297,
5325,
29961,
29896,
12622,
13,
1678,
4982,
29918,
14834,
353,
376,
29945,
29954,
29908,
13,
1678,
349,
29889,
3389,
580,
13,
13,
268,
13,
29992,
1054,
9632,
29898,
3389,
1367,
1672,
29876,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
6528,
703,
11891,
29974,
20344,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
5926,
29889,
333,
29878,
4968,
13,
308,
788,
29918,
2080,
29879,
29898,
29878,
26732,
29896,
29930,
29899,
5338,
29889,
29879,
485,
4968,
13,
308,
364,
26732,
29896,
29918,
16175,
29899,
3200,
391,
3819,
29889,
5140,
1159,
13,
1753,
6492,
23145,
13696,
391,
3819,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
3229,
353,
3553,
29934,
29889,
657,
1367,
29934,
20867,
14473,
29898,
262,
5325,
29961,
29900,
1402,
714,
1445,
29897,
13,
1678,
349,
29889,
3389,
580,
13,
13,
268,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
29937,
4918,
10554,
3553,
29934,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13,
13,
29992,
23031,
29879,
29898,
5317,
23145,
13696,
391,
3819,
2831,
2568,
23352,
5612,
15815,
29897,
13,
29992,
9067,
29898,
3389,
1367,
1672,
29876,
2568,
23352,
5612,
15815,
29892,
13,
965,
6528,
703,
11891,
29974,
467,
333,
29878,
4968,
13,
965,
788,
29918,
2080,
29879,
29898,
29878,
26732,
29896,
29899,
29930,
29899,
29876,
412,
10327,
29899,
27215,
1367,
29934,
29889,
3945,
4968,
13,
965,
364,
26732,
29896,
29918,
29876,
412,
10327,
29918,
27215,
1367,
29934,
29889,
1372,
29894,
1159,
13,
1753,
14405,
1367,
1672,
29876,
2568,
23352,
5612,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
6131,
353,
297,
5325,
29961,
29896,
17531,
13,
1678,
9066,
353,
518,
359,
29889,
2084,
29889,
6500,
3871,
29898,
29916,
29897,
363,
921,
297,
6131,
29962,
13,
1678,
9066,
353,
9162,
1642,
7122,
4197,
29925,
29889,
16586,
666,
29898,
29916,
29892,
11663,
29876,
412,
10327,
29899,
27215,
1367,
29934,
29889,
3945,
1159,
363,
921,
297,
9066,
2314,
13,
1678,
6131,
353,
376,
11393,
7122,
29898,
24051,
29897,
13,
13,
1678,
304,
29918,
19594,
353,
7700,
13,
1678,
3229,
353,
4852,
29883,
28818,
14405,
29918,
24051,
29908,
13,
462,
376,
1192,
13099,
29922,
29896,
29908,
13,
462,
376,
1192,
11014,
29899,
23545,
793,
29908,
13,
462,
376,
1192,
6672,
29899,
7039,
16328,
29898,
13662,
29897,
29879,
29908,
13,
462,
376,
1192,
1188,
16328,
29898,
449,
1445,
29897,
29879,
29889,
1188,
29908,
13,
462,
376,
1192,
25393,
16328,
29898,
449,
1445,
29897,
29879,
29908,
13,
462,
376,
1273,
29898,
24051,
29897,
29879,
1159,
13,
1678,
349,
29889,
3389,
580,
13,
13,
13,
29992,
9067,
29898,
17743,
457,
1367,
1672,
29876,
2568,
23352,
5612,
15815,
29892,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
1372,
29894,
4968,
13,
965,
364,
1642,
7998,
29906,
29889,
1359,
1159,
13,
1753,
2254,
1367,
1672,
29876,
2568,
23352,
5612,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
349,
29889,
1359,
29898,
262,
1445,
29892,
714,
1445,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
5317,
23145,
13696,
391,
3819,
2831,
29925,
344,
566,
487,
29886,
15815,
29897,
13,
29992,
1054,
9632,
703,
6904,
333,
29878,
29918,
27358,
566,
487,
29886,
15815,
5515,
29899,
29876,
412,
10327,
29899,
27215,
1367,
29934,
29889,
3945,
613,
13,
308,
6528,
703,
11891,
29974,
6817,
29934,
11891,
29974,
20344,
4270,
29918,
11891,
29974,
6817,
29876,
412,
10327,
29899,
27215,
1367,
29934,
29889,
3945,
4968,
13,
308,
364,
26732,
29896,
29918,
27358,
566,
487,
29886,
15815,
29918,
29876,
412,
10327,
29918,
27215,
1367,
29934,
29889,
1372,
29894,
1159,
13,
1753,
14405,
1367,
1672,
29876,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
9066,
353,
518,
359,
29889,
2084,
29889,
6500,
3871,
29898,
29916,
29897,
363,
921,
297,
297,
5325,
29962,
13,
1678,
9066,
353,
9162,
1642,
7122,
4197,
29925,
29889,
16586,
666,
29898,
29916,
29892,
11663,
29876,
412,
10327,
29899,
27215,
1367,
29934,
29889,
3945,
1159,
363,
921,
297,
9066,
2314,
13,
1678,
6131,
353,
376,
11393,
7122,
29898,
262,
5325,
29897,
13,
13,
1678,
304,
29918,
19594,
353,
7700,
13,
1678,
3229,
353,
4852,
29883,
28818,
14405,
29918,
24051,
29908,
13,
462,
376,
1192,
13099,
29922,
29896,
29908,
13,
462,
376,
1192,
11014,
29899,
23545,
793,
29908,
13,
462,
376,
1192,
6672,
29899,
7039,
16328,
29898,
13662,
29897,
29879,
29908,
13,
462,
376,
1192,
1188,
16328,
29898,
449,
1445,
29897,
29879,
29889,
1188,
29908,
13,
462,
376,
1192,
25393,
16328,
29898,
449,
1445,
29897,
29879,
29908,
13,
462,
376,
1273,
29898,
24051,
29897,
29879,
1159,
13,
1678,
349,
29889,
3389,
580,
13,
13,
13,
29992,
9067,
29898,
17743,
457,
1367,
1672,
29876,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
1372,
29894,
4968,
13,
965,
364,
1642,
7998,
29906,
29889,
1359,
1159,
13,
1753,
2254,
1367,
1672,
29876,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
349,
29889,
1359,
29898,
262,
1445,
29892,
714,
1445,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
5317,
23145,
13696,
391,
3819,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29897,
13,
29992,
1054,
9632,
703,
6904,
333,
29878,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
5515,
29899,
29876,
412,
10327,
29899,
27215,
1367,
29934,
29889,
3945,
613,
13,
308,
6528,
703,
11891,
29974,
6817,
29934,
11891,
29974,
20344,
4270,
29918,
11891,
29974,
6817,
29876,
412,
10327,
29899,
27215,
1367,
29934,
29889,
3945,
4968,
13,
308,
364,
26732,
29896,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
29918,
29876,
412,
10327,
29918,
27215,
1367,
29934,
29889,
1372,
29894,
1159,
13,
1753,
14405,
1367,
1672,
29876,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
9066,
353,
518,
359,
29889,
2084,
29889,
6500,
3871,
29898,
29916,
29897,
363,
921,
297,
297,
5325,
29962,
13,
1678,
9066,
353,
9162,
1642,
7122,
4197,
29925,
29889,
16586,
666,
29898,
29916,
29892,
11663,
29876,
412,
10327,
29899,
27215,
1367,
29934,
29889,
3945,
1159,
363,
921,
297,
9066,
2314,
13,
1678,
6131,
353,
376,
11393,
7122,
29898,
262,
5325,
29897,
13,
13,
1678,
304,
29918,
19594,
353,
7700,
13,
1678,
3229,
353,
4852,
29883,
28818,
14405,
29918,
24051,
29908,
13,
462,
376,
1192,
13099,
29922,
29896,
29908,
13,
462,
376,
1192,
11014,
29899,
23545,
793,
29908,
13,
462,
376,
1192,
6672,
29899,
7039,
16328,
29898,
13662,
29897,
29879,
29908,
13,
462,
376,
1192,
1188,
16328,
29898,
449,
1445,
29897,
29879,
29889,
1188,
29908,
13,
462,
376,
1192,
25393,
16328,
29898,
449,
1445,
29897,
29879,
29908,
13,
462,
376,
1273,
29898,
24051,
29897,
29879,
1159,
13,
1678,
349,
29889,
3389,
580,
13,
13,
13,
29992,
9067,
29898,
17743,
457,
1367,
1672,
29876,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
1372,
29894,
4968,
13,
965,
364,
1642,
7998,
29906,
29889,
1359,
1159,
13,
1753,
2254,
1367,
1672,
29876,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
349,
29889,
1359,
29898,
262,
1445,
29892,
714,
1445,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
3389,
1367,
1672,
29876,
2568,
23352,
5612,
15815,
29897,
13,
29992,
14634,
703,
6904,
333,
29878,
29918,
513,
23352,
29918,
3445,
15815,
5515,
29899,
957,
433,
2986,
29899,
412,
10327,
29889,
3945,
613,
13,
539,
376,
6904,
333,
29878,
29918,
513,
23352,
29918,
3445,
15815,
29914,
513,
23352,
29918,
3445,
15815,
29889,
29876,
15666,
10327,
29889,
1372,
29894,
1159,
13,
1753,
1284,
29940,
15666,
10327,
2831,
2568,
23352,
5612,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
1178,
29878,
29918,
386,
3781,
353,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
1639,
29918,
3445,
5926,
29918,
386,
12268,
3108,
13,
1678,
1018,
29901,
13,
4706,
3883,
353,
349,
29889,
16586,
666,
29898,
1367,
29934,
17255,
1445,
1649,
29892,
11393,
2272,
1159,
13,
1678,
5174,
7865,
2392,
29901,
13,
4706,
3883,
353,
349,
29889,
16586,
666,
29898,
1367,
29934,
17255,
1445,
1649,
29892,
11393,
2272,
29883,
1159,
13,
13,
1678,
349,
29889,
7892,
29898,
5453,
29892,
13,
632,
376,
2886,
29940,
15666,
10327,
613,
13,
632,
8636,
11759,
710,
29898,
333,
29878,
29918,
386,
3781,
511,
21251,
13,
632,
297,
5325,
29922,
262,
5325,
29892,
13,
632,
714,
5325,
29922,
449,
1445,
29897,
13,
13,
13,
29992,
9067,
29898,
2886,
29940,
15666,
10327,
2831,
2568,
23352,
5612,
15815,
29892,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
1372,
29894,
4968,
13,
965,
364,
1642,
7998,
29906,
29889,
1359,
1159,
13,
1753,
2254,
29940,
15666,
10327,
2831,
2568,
23352,
5612,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
349,
29889,
1359,
29898,
262,
1445,
29892,
714,
1445,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
3389,
1367,
1672,
29876,
29925,
344,
566,
487,
29886,
15815,
29897,
13,
29992,
14634,
703,
6904,
333,
29878,
29918,
27358,
566,
487,
29886,
15815,
5515,
29899,
957,
433,
2986,
29899,
412,
10327,
29889,
3945,
613,
13,
539,
376,
6904,
333,
29878,
29918,
27358,
566,
487,
29886,
15815,
29914,
27358,
566,
487,
29886,
15815,
29889,
29876,
15666,
10327,
29889,
1372,
29894,
1159,
13,
1753,
1284,
29940,
15666,
10327,
2831,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
1178,
29878,
29918,
386,
3781,
353,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
1311,
29918,
3200,
391,
3819,
29918,
386,
12268,
3108,
13,
1678,
1018,
29901,
13,
4706,
3883,
353,
349,
29889,
16586,
666,
29898,
1367,
29934,
17255,
1445,
1649,
29892,
11393,
2272,
1159,
13,
1678,
5174,
7865,
2392,
29901,
13,
4706,
3883,
353,
349,
29889,
16586,
666,
29898,
1367,
29934,
17255,
1445,
1649,
29892,
11393,
2272,
29883,
1159,
13,
13,
1678,
349,
29889,
7892,
29898,
5453,
29892,
13,
632,
376,
2886,
29940,
15666,
10327,
613,
13,
632,
8636,
11759,
710,
29898,
333,
29878,
29918,
386,
3781,
511,
21251,
13,
632,
297,
5325,
29922,
262,
5325,
29892,
13,
632,
714,
5325,
29922,
449,
1445,
29897,
13,
13,
13,
29992,
9067,
29898,
2886,
29940,
15666,
10327,
2831,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
1372,
29894,
4968,
13,
965,
364,
1642,
7998,
29906,
29889,
1359,
1159,
13,
1753,
2254,
29940,
15666,
10327,
2831,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
349,
29889,
1359,
29898,
262,
1445,
29892,
714,
1445,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
3389,
1367,
1672,
29876,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29897,
13,
29992,
14634,
703,
6904,
333,
29878,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
5515,
29899,
957,
433,
2986,
29899,
412,
10327,
29889,
3945,
613,
13,
539,
376,
6904,
333,
29878,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
29914,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
29889,
29876,
15666,
10327,
29889,
1372,
29894,
1159,
13,
1753,
1284,
29940,
15666,
10327,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
1178,
29878,
29918,
386,
3781,
353,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
1129,
29877,
839,
29918,
3200,
391,
3819,
29918,
386,
12268,
3108,
13,
1678,
1018,
29901,
13,
4706,
3883,
353,
349,
29889,
16586,
666,
29898,
1367,
29934,
17255,
1445,
1649,
29892,
11393,
2272,
1159,
13,
1678,
5174,
7865,
2392,
29901,
13,
4706,
3883,
353,
349,
29889,
16586,
666,
29898,
1367,
29934,
17255,
1445,
1649,
29892,
11393,
2272,
29883,
1159,
13,
13,
1678,
349,
29889,
7892,
29898,
5453,
29892,
13,
632,
376,
2886,
29940,
15666,
10327,
613,
13,
632,
8636,
11759,
710,
29898,
333,
29878,
29918,
386,
3781,
511,
21251,
13,
632,
297,
5325,
29922,
262,
5325,
29892,
13,
632,
714,
5325,
29922,
449,
1445,
29897,
13,
13,
13,
29992,
9067,
29898,
2886,
29940,
15666,
10327,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
1372,
29894,
4968,
13,
965,
364,
1642,
7998,
29906,
29889,
1359,
1159,
13,
1753,
2254,
29940,
15666,
10327,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
349,
29889,
1359,
29898,
262,
1445,
29892,
714,
1445,
29897,
13,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
29937,
3251,
403,
1136,
8841,
19224,
731,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13,
13,
29992,
23031,
29879,
29898,
11256,
3972,
703,
29890,
314,
5325,
29918,
8394,
5783,
13,
29992,
1054,
9632,
29898,
4572,
29933,
314,
5325,
29892,
13,
308,
6528,
29898,
29878,
29908,
11891,
29974,
6802,
11891,
29974,
6817,
3552,
29973,
29991,
2080,
467,
29930,
6817,
29934,
29961,
29900,
29899,
29929,
10062,
29889,
29879,
15440,
295,
4968,
13,
308,
364,
1642,
29914,
29890,
314,
5325,
29918,
8394,
7998,
29906,
2612,
29941,
29899,
29934,
29900,
29889,
29879,
15440,
295,
1159,
13,
1753,
337,
15836,
479,
29933,
314,
5325,
29898,
262,
5325,
29892,
2665,
262,
295,
1125,
13,
1678,
297,
5325,
353,
518,
29925,
29889,
16586,
666,
29898,
29916,
29892,
11393,
29879,
15440,
295,
1159,
718,
11393,
29890,
314,
29908,
363,
921,
297,
297,
5325,
29962,
13,
1678,
714,
1445,
353,
349,
29889,
16586,
666,
29898,
29879,
15440,
295,
29892,
11393,
29879,
15440,
295,
1159,
718,
11393,
29890,
314,
29908,
13,
1678,
4319,
29918,
27736,
353,
349,
1718,
29909,
4345,
3366,
6768,
29918,
517,
29918,
5992,
16862,
5451,
28165,
1159,
13,
13,
1678,
304,
29918,
14634,
353,
3553,
29934,
29889,
4572,
22050,
29931,
4626,
4314,
29898,
262,
5325,
29892,
4319,
29918,
27736,
29897,
13,
13,
1678,
3553,
29934,
29889,
14634,
29933,
2232,
29898,
517,
29918,
14634,
29892,
714,
1445,
29897,
13,
1678,
349,
29889,
16747,
29898,
29879,
15440,
295,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
276,
15836,
479,
29933,
314,
5325,
29892,
29356,
703,
412,
557,
5325,
29918,
8394,
5783,
13,
29992,
9067,
703,
6904,
29890,
314,
5325,
29918,
8394,
5515,
29889,
29890,
314,
613,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
467,
29890,
314,
4968,
13,
965,
364,
29908,
412,
557,
5325,
29918,
8394,
7998,
29906,
29889,
29876,
2936,
15666,
557,
29889,
29879,
15440,
295,
1159,
13,
1753,
1246,
15666,
10327,
2951,
29925,
3634,
839,
5612,
15815,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
396,
6699,
19224,
5432,
4128,
13,
1678,
349,
1718,
29909,
4345,
29918,
4162,
22311,
29907,
9818,
1001,
353,
679,
29918,
412,
557,
29918,
4804,
261,
29918,
16744,
29898,
13,
4706,
349,
1718,
29909,
4345,
3366,
6768,
29918,
412,
557,
29918,
4804,
261,
20068,
13,
13,
1678,
396,
1246,
1236,
10327,
373,
19923,
487,
29886,
15815,
13,
1678,
3553,
29934,
29889,
4804,
1367,
29934,
15666,
10327,
29898,
262,
1445,
29892,
13,
462,
268,
714,
1445,
29892,
13,
462,
268,
349,
1718,
29909,
4345,
3366,
6768,
29918,
412,
557,
29918,
4804,
261,
12436,
13,
462,
268,
349,
1718,
29909,
4345,
3366,
6768,
29918,
6451,
29918,
1853,
12436,
13,
462,
268,
349,
1718,
29909,
4345,
29918,
4162,
22311,
29907,
9818,
1001,
29892,
13,
462,
268,
19923,
487,
29886,
5926,
29922,
8824,
29897,
13,
13,
1678,
349,
29889,
16747,
29898,
449,
1445,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
6915,
29892,
13,
308,
1246,
15666,
10327,
2951,
29925,
3634,
839,
5612,
15815,
29892,
13,
308,
2254,
29940,
15666,
10327,
2831,
2568,
23352,
5612,
15815,
29892,
13,
308,
2254,
29940,
15666,
10327,
2831,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
2254,
29940,
15666,
10327,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
29356,
703,
412,
557,
5325,
29918,
8394,
29918,
535,
2140,
1230,
4968,
13,
308,
29356,
703,
412,
557,
5325,
29918,
8394,
29918,
3670,
12539,
5783,
13,
29992,
9067,
703,
6904,
412,
557,
5325,
29918,
8394,
5515,
29889,
29876,
2936,
15666,
557,
29889,
18828,
613,
13,
965,
6528,
703,
11891,
29974,
6802,
11891,
29974,
6817,
29934,
29900,
29918,
21819,
29918,
11891,
29974,
6817,
29934,
29900,
29918,
412,
10327,
29889,
29876,
2936,
15666,
557,
29889,
18828,
4968,
13,
965,
518,
29878,
29908,
412,
557,
5325,
29918,
8394,
29918,
535,
2140,
1230,
7998,
29906,
29889,
29876,
2936,
15666,
557,
29889,
18828,
613,
13,
9651,
364,
29908,
412,
557,
5325,
29918,
8394,
29918,
3670,
12539,
7998,
29906,
29889,
29876,
2936,
15666,
557,
29889,
18828,
20068,
13,
1753,
5706,
15666,
557,
29903,
1691,
29898,
262,
1445,
29892,
714,
5325,
1125,
13,
1678,
714,
29888,
29918,
535,
29892,
714,
29888,
29918,
3670,
353,
714,
5325,
13,
13,
1678,
396,
10563,
7472,
1353,
310,
1236,
10327,
7625,
515,
1006,
29899,
3445,
5926,
3553,
29934,
13,
1678,
396,
313,
2371,
2825,
491,
2254,
29940,
15666,
10327,
2831,
2568,
23352,
5612,
15815,
29897,
13,
1678,
3229,
353,
4852,
6404,
29908,
13,
462,
376,
1222,
15362,
1699,
13,
462,
376,
4236,
29898,
29876,
29918,
412,
10327,
29897,
3339,
302,
15666,
10327,
29908,
13,
462,
376,
3895,
5375,
29918,
3445,
15815,
29918,
29876,
15666,
10327,
29908,
13,
462,
376,
15345,
6770,
7639,
1159,
13,
1678,
4489,
353,
5470,
29889,
9155,
29918,
17271,
29898,
20788,
29892,
4833,
8411,
29922,
16320,
29909,
4345,
1839,
9803,
29918,
978,
11287,
13,
13,
1678,
396,
337,
16645,
7639,
408,
2380,
13,
1678,
4489,
353,
4489,
29889,
842,
29918,
2248,
703,
1252,
15362,
1159,
13,
13,
1678,
396,
10563,
1353,
310,
1236,
10327,
7625,
515,
772,
29877,
839,
29918,
27358,
566,
487,
29886,
5926,
3553,
29934,
13,
1678,
396,
313,
2371,
2825,
491,
2254,
29940,
15666,
10327,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29897,
13,
1678,
3229,
353,
4852,
6404,
29908,
13,
462,
376,
1222,
15362,
1699,
13,
462,
376,
302,
29918,
412,
10327,
3339,
302,
15666,
10327,
29908,
13,
462,
376,
3895,
772,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
29918,
29876,
15666,
10327,
1159,
13,
1678,
4489,
29906,
353,
5470,
29889,
9155,
29918,
17271,
29898,
20788,
29892,
4833,
8411,
29922,
16320,
29909,
4345,
1839,
9803,
29918,
978,
11287,
13,
13,
1678,
396,
337,
16645,
7639,
408,
2380,
13,
1678,
4489,
29906,
353,
4489,
29906,
29889,
842,
29918,
2248,
703,
1252,
15362,
1159,
13,
13,
1678,
396,
6219,
278,
297,
1445,
1024,
304,
4017,
7639,
13,
1678,
4559,
29918,
333,
353,
2897,
29889,
2084,
29889,
6500,
3871,
29898,
262,
1445,
467,
5451,
703,
29918,
21819,
29918,
1159,
29961,
29900,
29962,
13,
1678,
4559,
353,
4559,
29918,
333,
29889,
5451,
703,
29899,
1159,
13,
1678,
7639,
353,
11119,
1642,
7122,
4197,
11249,
29961,
29900,
1402,
4559,
29961,
29896,
24960,
13,
13,
1678,
396,
10563,
4236,
29918,
1949,
15666,
10327,
363,
7639,
13,
1678,
302,
15666,
10327,
353,
938,
29898,
2176,
29889,
2029,
29961,
735,
15362,
2314,
13,
1678,
396,
10563,
954,
15666,
10327,
29918,
5612,
29900,
363,
7639,
13,
1678,
302,
15666,
10327,
29918,
3445,
29900,
353,
938,
29898,
2176,
29906,
29889,
2029,
29961,
735,
15362,
2314,
13,
1678,
396,
10563,
5256,
1227,
310,
278,
1023,
13,
1678,
302,
15666,
10327,
29918,
3317,
353,
4236,
29898,
29876,
15666,
10327,
29892,
302,
15666,
10327,
29918,
3445,
29900,
29897,
13,
13,
1678,
396,
10127,
607,
1897,
304,
2656,
491,
13,
1678,
565,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
661,
9292,
29918,
26658,
3108,
1275,
376,
25436,
29889,
1767,
1115,
13,
4706,
2656,
29918,
20788,
353,
376,
6605,
448,
29895,
29955,
22230,
29892,
29955,
22230,
29908,
13,
1678,
25342,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
661,
9292,
29918,
26658,
3108,
1275,
376,
29886,
29889,
1767,
1115,
13,
4706,
2656,
29918,
20788,
353,
376,
6605,
448,
29895,
29947,
22230,
29892,
29947,
22230,
29908,
13,
1678,
25342,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
661,
9292,
29918,
26658,
3108,
1275,
376,
29939,
29889,
1767,
1115,
13,
4706,
2656,
29918,
20788,
353,
376,
6605,
448,
29895,
29929,
22230,
29892,
29929,
22230,
29908,
13,
1678,
1683,
29901,
13,
4706,
12020,
7865,
2392,
703,
2525,
29423,
3368,
24034,
29918,
26658,
29908,
13,
462,
308,
376,
1273,
29879,
1016,
29915,
29873,
1073,
607,
1897,
29908,
13,
462,
308,
376,
304,
2656,
373,
29908,
1273,
349,
1718,
29909,
4345,
3366,
333,
29878,
29918,
6768,
29918,
661,
9292,
29918,
26658,
20068,
13,
13,
1678,
396,
2656,
297,
1445,
491,
1897,
322,
2436,
2246,
302,
15666,
10327,
304,
714,
1445,
313,
535,
2140,
1230,
29897,
13,
1678,
11455,
29918,
17760,
29918,
12523,
353,
5852,
13,
1678,
3229,
353,
4852,
29920,
4117,
1273,
29898,
262,
1445,
29897,
29879,
891,
29908,
13,
462,
376,
1273,
29898,
6605,
29918,
20788,
29897,
29879,
891,
29908,
13,
462,
376,
2343,
448,
29995,
29898,
29876,
15666,
10327,
29897,
29879,
891,
29908,
13,
462,
376,
330,
7554,
1405,
1273,
29898,
449,
29888,
29918,
535,
29897,
29879,
1159,
13,
1678,
349,
29889,
3389,
580,
13,
13,
1678,
396,
2656,
297,
1445,
491,
1897,
322,
2436,
2246,
302,
15666,
10327,
29918,
3317,
304,
714,
1445,
313,
3670,
12539,
29897,
13,
1678,
11455,
29918,
17760,
29918,
12523,
353,
5852,
13,
1678,
3229,
353,
4852,
29920,
4117,
1273,
29898,
262,
1445,
29897,
29879,
891,
29908,
13,
462,
376,
1273,
29898,
6605,
29918,
20788,
29897,
29879,
891,
29908,
13,
462,
376,
2343,
448,
29995,
29898,
29876,
15666,
10327,
29918,
3317,
29897,
29879,
891,
29908,
13,
462,
376,
330,
7554,
1405,
1273,
29898,
449,
29888,
29918,
3670,
29897,
29879,
1159,
13,
1678,
349,
29889,
3389,
580,
13,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
29937,
315,
14044,
5020,
29991,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13,
13,
29992,
14634,
29898,
703,
6904,
29890,
314,
5325,
29918,
4572,
287,
5515,
29889,
29890,
314,
613,
13,
4706,
376,
6904,
29890,
314,
5325,
29918,
8394,
5515,
29889,
29890,
314,
613,
13,
4706,
376,
6904,
29890,
314,
5325,
29918,
1129,
29877,
839,
5515,
29889,
29890,
314,
613,
13,
4706,
376,
6904,
29890,
314,
5325,
29918,
27358,
566,
487,
29886,
15815,
5515,
29889,
29890,
314,
613,
13,
4706,
376,
6904,
29890,
314,
5325,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
5515,
29889,
29890,
314,
4968,
13,
539,
376,
6904,
29890,
314,
5325,
29918,
1745,
8238,
29889,
29879,
15440,
295,
1159,
13,
1753,
3349,
29933,
314,
5325,
29898,
262,
5325,
29892,
714,
1445,
1125,
13,
1678,
363,
289,
314,
1445,
297,
297,
5325,
29901,
13,
4706,
289,
314,
29918,
2248,
353,
289,
314,
1445,
718,
11393,
29890,
1794,
29908,
13,
4706,
2897,
29889,
348,
2324,
29898,
29890,
314,
1445,
29897,
13,
4706,
565,
2897,
29889,
2084,
29889,
9933,
29898,
29890,
314,
29918,
2248,
1125,
13,
9651,
2897,
29889,
348,
2324,
29898,
29890,
314,
29918,
2248,
29897,
13,
1678,
349,
29889,
16747,
29898,
449,
1445,
29897,
13,
13,
13,
29992,
9067,
29898,
703,
6904,
29890,
314,
5325,
29918,
4572,
287,
5515,
29889,
6448,
29887,
613,
13,
9651,
376,
6904,
29890,
314,
5325,
29918,
1129,
29877,
839,
5515,
29889,
6448,
29887,
613,
13,
9651,
376,
6904,
29890,
314,
5325,
29918,
27358,
566,
487,
29886,
15815,
5515,
29889,
6448,
29887,
613,
13,
9651,
376,
6904,
29890,
314,
5325,
29918,
1129,
29877,
839,
29918,
27358,
566,
487,
29886,
15815,
5515,
29889,
6448,
29887,
4968,
13,
965,
25557,
17350,
6448,
29887,
4968,
13,
965,
11393,
29890,
29893,
1159,
13,
1753,
3588,
29933,
287,
9527,
29898,
262,
1445,
29892,
714,
1445,
1125,
13,
1678,
640,
335,
29918,
1445,
353,
2897,
29889,
2084,
29889,
7122,
29898,
16320,
29909,
4345,
3366,
6735,
800,
29918,
3972,
12436,
376,
1285,
23379,
29889,
1372,
29894,
1159,
13,
1678,
3229,
353,
4852,
2580,
9527,
1762,
6970,
29956,
335,
1273,
29898,
262,
1445,
29897,
29879,
1273,
29898,
1285,
335,
29918,
1445,
29897,
29879,
1273,
29898,
449,
1445,
29897,
29879,
1159,
13,
1678,
349,
29889,
3389,
580,
13,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
29937,
7601,
22525,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13,
13,
29992,
23031,
29879,
29898,
5451,
29933,
314,
5325,
29892,
13,
308,
11565,
4290,
29933,
314,
5325,
29892,
13,
308,
6219,
29925,
3634,
839,
29933,
314,
5325,
29897,
13,
1753,
758,
7032,
29933,
314,
5325,
7295,
13,
1678,
1209,
13,
13,
13,
29992,
23031,
29879,
29898,
4804,
15666,
10327,
2951,
2568,
23352,
5612,
15815,
29892,
13,
308,
1246,
15666,
10327,
2951,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
1246,
15666,
10327,
2951,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
2254,
15666,
557,
26289,
2831,
2568,
23352,
5612,
15815,
29892,
13,
308,
2254,
15666,
557,
26289,
2831,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
2254,
15666,
557,
26289,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29897,
13,
1753,
1246,
15666,
10327,
7295,
13,
1678,
1209,
13,
13,
13,
29992,
23031,
29879,
29898,
5317,
23145,
13696,
391,
3819,
2831,
2568,
23352,
5612,
15815,
29892,
13,
308,
6492,
23145,
13696,
391,
3819,
2831,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
6492,
23145,
13696,
391,
3819,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29897,
13,
1753,
1065,
1367,
29934,
7295,
13,
1678,
1209,
13,
13,
13,
29992,
23031,
29879,
29898,
1359,
1367,
1672,
29876,
2568,
23352,
5612,
15815,
29892,
13,
308,
2254,
1367,
1672,
29876,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
2254,
1367,
1672,
29876,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
2254,
29940,
15666,
10327,
2831,
2568,
23352,
5612,
15815,
29892,
13,
308,
2254,
29940,
15666,
10327,
2831,
29925,
344,
566,
487,
29886,
15815,
29892,
13,
308,
2254,
29940,
15666,
10327,
2831,
29925,
3634,
839,
29925,
344,
566,
487,
29886,
15815,
29897,
13,
1753,
19138,
675,
1367,
29934,
7295,
13,
1678,
1209,
13,
13,
13,
29992,
23031,
29879,
29898,
1457,
7032,
29933,
314,
5325,
29892,
13,
308,
1246,
15666,
10327,
29892,
13,
308,
1065,
1367,
29934,
29892,
13,
308,
19138,
675,
1367,
29934,
29892,
13,
308,
5706,
15666,
557,
29903,
1691,
29897,
13,
1753,
2989,
7295,
13,
1678,
1209,
13,
13,
13,
29992,
23031,
29879,
29898,
5992,
29933,
314,
5325,
29892,
13,
308,
3588,
29933,
287,
9527,
29897,
13,
1753,
5941,
3373,
7295,
13,
1678,
1209,
13,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
29937,
7601,
22525,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
13,
13,
29992,
23031,
29879,
29898,
11256,
3972,
703,
12276,
5783,
13,
1753,
2048,
29918,
12276,
7295,
13,
1678,
14550,
4282,
3461,
515,
22728,
29889,
12008,
13,
13,
1678,
382,
29889,
3888,
703,
2962,
292,
3461,
2048,
1889,
515,
22728,
1159,
13,
1678,
349,
29889,
3389,
29918,
12276,
29898,
14941,
29922,
5574,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
11256,
3972,
703,
12276,
5783,
13,
1753,
2767,
29918,
12276,
7295,
13,
1678,
14550,
5504,
3461,
29889,
12008,
13,
13,
1678,
382,
29889,
3888,
703,
786,
26747,
3461,
1159,
13,
1678,
349,
29889,
3389,
29918,
12276,
29898,
14941,
29922,
8824,
29897,
13,
13,
13,
29992,
23031,
29879,
29898,
5504,
29918,
12276,
29897,
13,
1753,
9805,
7295,
13,
1678,
14550,
23679,
3461,
322,
848,
29889,
12008,
13,
13,
1678,
382,
29889,
3888,
703,
23679,
292,
3461,
1159,
13,
1678,
349,
29889,
23679,
29918,
12276,
580,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
13,
1678,
396,
349,
29889,
3198,
10547,
29898,
4852,
1885,
608,
29889,
29888,
5427,
613,
376,
1885,
608,
29889,
13140,
29908,
1723,
1723,
13,
1678,
10876,
29889,
13322,
29898,
29925,
29889,
3396,
29898,
9675,
29889,
19218,
876,
13,
2
] |
out/production/CS-4950-Applied-Crypto/HW1/hillCipher.py | prchander/CS-4950-Applied-Crypto | 0 | 158184 | <gh_stars>0
import numpy as np
import os
from sympy import Matrix
alphabet = "abcdefghijklmnopqrstuvwxyz"
#Change the name of the file below to test other files
with open('ChandramoulihillCustom.txt', 'r') as file:
data = file.read().replace(' ', '')
key = np.array([[9, 4],[5, 7]])
def encrypt(contents):
#encrypted = np.array()
message = []
for x in range (0,len(contents)-1,2):
temp1 = contents[x]
temp2 = contents[x+1]
number1=-1
number2=-1
for i in range (0,len(alphabet)):
if (temp1==alphabet[i]):
number1 = i
for j in range (0,len(alphabet)):
if (temp2==alphabet[j]):
number2 = j
toEncrypt = np.array([number1,number2])
todo = np.dot(key,toEncrypt) % 26
message.append(todo)
message = np.array(message)
message = message.flatten()
eMessage = []
for i in range (0,len(message)):
a = message[i]
eMessage.append(alphabet[a])
return eMessage
def toString(message):
str1 = ""
for ele in message:
str1 += ele
return str1
def decrypt(contents):
message = []
for x in range (0,len(contents),2):
temp1 = contents[x]
temp2 = contents[x+1]
for i in range (0,len(alphabet)):
if (temp1==alphabet[i]):
number1 = i
for j in range (0,len(alphabet)):
if (temp2==alphabet[j]):
number2 = j
toEncrypt = np.array([number1,number2])
invKey=Matrix(key).inv_mod(26)
invKey = np.array(invKey)
todo = (np.dot(invKey,toEncrypt) % 26+26)%26
message.append(todo)
message = np.array(message)
message = message.flatten()
eMessage = []
for i in range (0,len(message)):
a = message[i]
eMessage.append(alphabet[a])
return eMessage
inList = encrypt(data)
inStr = toString(inList)
#Change file name for input here
f = open("ChandramoulihillEncrypt.txt","w")
f.write(inStr)
nList=decrypt(inStr)
nStr=toString(nList)
#Change file name for decrypt here
f = open("ChandramoulihillDecrypt.txt","w")
f.write(nStr) | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12655,
408,
7442,
13,
5215,
2897,
29871,
13,
3166,
5016,
2272,
1053,
22513,
13,
13,
284,
17416,
353,
376,
10736,
1753,
12443,
823,
6321,
23521,
459,
29939,
29878,
303,
4090,
29893,
20230,
29908,
13,
13,
29937,
7277,
278,
1024,
310,
278,
934,
2400,
304,
1243,
916,
2066,
13,
2541,
1722,
877,
1451,
392,
2572,
283,
492,
29131,
7281,
29889,
3945,
742,
525,
29878,
1495,
408,
934,
29901,
13,
1678,
848,
353,
934,
29889,
949,
2141,
6506,
877,
13420,
27255,
13,
13,
1989,
353,
7442,
29889,
2378,
4197,
29961,
29929,
29892,
29871,
29946,
16272,
29945,
29892,
29871,
29955,
24960,
13,
13,
1753,
27924,
29898,
10853,
1125,
13,
1678,
396,
3977,
14740,
353,
7442,
29889,
2378,
580,
13,
1678,
2643,
353,
5159,
13,
1678,
363,
921,
297,
3464,
313,
29900,
29892,
2435,
29898,
10853,
6817,
29896,
29892,
29906,
1125,
29871,
13,
4706,
5694,
29896,
353,
8118,
29961,
29916,
29962,
13,
4706,
5694,
29906,
353,
8118,
29961,
29916,
29974,
29896,
29962,
13,
4706,
1353,
29896,
10457,
29896,
13,
4706,
1353,
29906,
10457,
29896,
13,
13,
4706,
363,
474,
297,
3464,
313,
29900,
29892,
2435,
29898,
284,
17416,
22164,
13,
9651,
565,
313,
7382,
29896,
1360,
284,
17416,
29961,
29875,
29962,
1125,
13,
18884,
1353,
29896,
353,
474,
13,
308,
13,
4706,
363,
432,
297,
3464,
313,
29900,
29892,
2435,
29898,
284,
17416,
22164,
13,
9651,
565,
313,
7382,
29906,
1360,
284,
17416,
29961,
29926,
29962,
1125,
13,
18884,
1353,
29906,
353,
432,
13,
13,
4706,
304,
8566,
4641,
353,
7442,
29889,
2378,
4197,
4537,
29896,
29892,
4537,
29906,
2314,
13,
4706,
10481,
353,
7442,
29889,
6333,
29898,
1989,
29892,
517,
8566,
4641,
29897,
1273,
29871,
29906,
29953,
13,
4706,
2643,
29889,
4397,
29898,
29873,
8144,
29897,
13,
308,
13,
1678,
2643,
353,
7442,
29889,
2378,
29898,
4906,
29897,
13,
1678,
2643,
353,
2643,
29889,
1579,
8606,
580,
13,
13,
1678,
321,
3728,
353,
5159,
13,
1678,
363,
474,
297,
3464,
313,
29900,
29892,
2435,
29898,
4906,
22164,
13,
4706,
263,
353,
2643,
29961,
29875,
29962,
13,
4706,
321,
3728,
29889,
4397,
29898,
284,
17416,
29961,
29874,
2314,
13,
1678,
736,
321,
3728,
13,
13,
1753,
304,
1231,
29898,
4906,
1125,
13,
1678,
851,
29896,
353,
5124,
259,
13,
268,
13,
1678,
363,
4552,
297,
2643,
29901,
259,
13,
4706,
851,
29896,
4619,
4552,
1678,
13,
268,
13,
1678,
736,
851,
29896,
259,
13,
13,
1753,
1602,
4641,
29898,
10853,
1125,
13,
1678,
2643,
353,
5159,
13,
1678,
363,
921,
297,
3464,
313,
29900,
29892,
2435,
29898,
10853,
511,
29906,
1125,
29871,
13,
4706,
5694,
29896,
353,
8118,
29961,
29916,
29962,
13,
4706,
5694,
29906,
353,
8118,
29961,
29916,
29974,
29896,
29962,
13,
13,
4706,
363,
474,
297,
3464,
313,
29900,
29892,
2435,
29898,
284,
17416,
22164,
13,
9651,
565,
313,
7382,
29896,
1360,
284,
17416,
29961,
29875,
29962,
1125,
13,
18884,
1353,
29896,
353,
474,
13,
308,
13,
4706,
363,
432,
297,
3464,
313,
29900,
29892,
2435,
29898,
284,
17416,
22164,
13,
9651,
565,
313,
7382,
29906,
1360,
284,
17416,
29961,
29926,
29962,
1125,
13,
18884,
1353,
29906,
353,
432,
13,
13,
4706,
304,
8566,
4641,
353,
7442,
29889,
2378,
4197,
4537,
29896,
29892,
4537,
29906,
2314,
13,
4706,
2437,
2558,
29922,
14609,
29898,
1989,
467,
11569,
29918,
1545,
29898,
29906,
29953,
29897,
13,
4706,
2437,
2558,
353,
7442,
29889,
2378,
29898,
11569,
2558,
29897,
13,
4706,
10481,
353,
313,
9302,
29889,
6333,
29898,
11569,
2558,
29892,
517,
8566,
4641,
29897,
1273,
29871,
29906,
29953,
29974,
29906,
29953,
29897,
29995,
29906,
29953,
13,
4706,
2643,
29889,
4397,
29898,
29873,
8144,
29897,
13,
308,
13,
1678,
2643,
353,
7442,
29889,
2378,
29898,
4906,
29897,
13,
1678,
2643,
353,
2643,
29889,
1579,
8606,
580,
13,
13,
1678,
321,
3728,
353,
5159,
13,
1678,
363,
474,
297,
3464,
313,
29900,
29892,
2435,
29898,
4906,
22164,
13,
4706,
263,
353,
2643,
29961,
29875,
29962,
13,
4706,
321,
3728,
29889,
4397,
29898,
284,
17416,
29961,
29874,
2314,
13,
1678,
736,
321,
3728,
13,
13,
262,
1293,
353,
27924,
29898,
1272,
29897,
13,
262,
5015,
353,
304,
1231,
29898,
262,
1293,
29897,
13,
29937,
7277,
934,
1024,
363,
1881,
1244,
29871,
13,
29888,
353,
1722,
703,
1451,
392,
2572,
283,
492,
29131,
8566,
4641,
29889,
3945,
3284,
29893,
1159,
13,
29888,
29889,
3539,
29898,
262,
5015,
29897,
13,
13,
29876,
1293,
29922,
7099,
4641,
29898,
262,
5015,
29897,
13,
29876,
5015,
29922,
7711,
29898,
29876,
1293,
29897,
13,
29937,
7277,
934,
1024,
363,
1602,
4641,
1244,
13,
29888,
353,
1722,
703,
1451,
392,
2572,
283,
492,
29131,
6185,
4641,
29889,
3945,
3284,
29893,
1159,
13,
29888,
29889,
3539,
29898,
29876,
5015,
29897,
2
] |
LeetCode/LastWord.py | Jaidev810/Competitive-Questions | 1 | 93428 | <reponame>Jaidev810/Competitive-Questions<filename>LeetCode/LastWord.py
string = 'b a '
newstring = string[-1::-1]
length = 0
print(newstring)
for i in range(0, len(newstring)):
if newstring[i] == ' ':
if i == 0:
continue
if newstring[i-1] == ' ':
continue
break
length += 1
print(length) | [
1,
529,
276,
1112,
420,
29958,
29967,
29874,
680,
29894,
29947,
29896,
29900,
29914,
6843,
300,
3321,
29899,
2182,
2297,
29966,
9507,
29958,
3226,
300,
3399,
29914,
8897,
14463,
29889,
2272,
13,
1807,
353,
525,
29890,
263,
259,
525,
13,
1482,
1807,
353,
1347,
14352,
29896,
1057,
29899,
29896,
29962,
13,
2848,
353,
29871,
29900,
13,
2158,
29898,
1482,
1807,
29897,
13,
1454,
474,
297,
3464,
29898,
29900,
29892,
7431,
29898,
1482,
1807,
22164,
13,
268,
13,
1678,
565,
716,
1807,
29961,
29875,
29962,
1275,
525,
525,
29901,
13,
4706,
565,
474,
1275,
29871,
29900,
29901,
13,
9651,
6773,
13,
4706,
565,
716,
1807,
29961,
29875,
29899,
29896,
29962,
1275,
525,
525,
29901,
13,
9651,
6773,
13,
4706,
2867,
13,
1678,
3309,
4619,
29871,
29896,
13,
268,
13,
2158,
29898,
2848,
29897,
2
] |
odoo-13.0/addons/l10n_cl/models/account_journal.py | VaibhavBhujade/Blockchain-ERP-interoperability | 0 | 1613558 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, api
class AccountJournal(models.Model):
_inherit = "account.journal"
l10n_cl_sequence_ids = fields.Many2many(
'ir.sequence', 'l10n_cl_journal_sequence_rel', 'journal_id', 'sequence_id', string='Sequences (cl)',
domain="[('l10n_latam_document_type_id', '!=', False)]")
def button_create_new_sequences(self):
self.ensure_one()
internal_types = ['invoice', 'debit_note', 'credit_note']
domain = [('country_id.code', '=', 'CL'), ('internal_type', 'in', internal_types)]
if self.company_id.partner_id.l10n_cl_sii_taxpayer_type in ['1', False]:
domain += [('code', 'not in', ['70', '71'])]
elif self.company_id.partner_id.l10n_cl_sii_taxpayer_type == '2':
domain += [('code', 'not in', ['33', '34'])]
documents = self.env['l10n_latam.document.type'].search(domain)
sequences = self.env['ir.sequence']
for document in documents:
sequences |= self.env['ir.sequence'].create(document._get_document_sequence_vals(self))
self.write({'l10n_cl_sequence_ids': [(4, s.id) for s in sequences]})
def create_document_sequences_cl(self):
self.ensure_one()
if (self.company_id.country_id != self.env.ref('base.cl')) or self.env['ir.sequence'].search(
[('l10n_latam_document_type_id', '!=', False)]) or self.type != 'sale' or not self.l10n_latam_use_documents:
return
self.button_create_new_sequences()
@api.model
def create(self, values):
""" Create Document sequences after create the journal """
res = super().create(values)
res.create_document_sequences_cl()
return res
| [
1,
396,
3455,
310,
438,
1867,
29877,
29889,
2823,
365,
2965,
1430,
1660,
934,
363,
2989,
3509,
1266,
322,
7794,
575,
292,
4902,
29889,
13,
13,
3166,
288,
1867,
29877,
1053,
4235,
29892,
4733,
29892,
7882,
13,
13,
13,
1990,
16535,
29967,
4659,
29898,
9794,
29889,
3195,
1125,
13,
1678,
903,
262,
27069,
353,
376,
10149,
29889,
29926,
4659,
29908,
13,
13,
1678,
301,
29896,
29900,
29876,
29918,
695,
29918,
16506,
29918,
4841,
353,
4235,
29889,
14804,
29906,
13011,
29898,
13,
4706,
525,
381,
29889,
16506,
742,
525,
29880,
29896,
29900,
29876,
29918,
695,
29918,
29926,
4659,
29918,
16506,
29918,
2674,
742,
525,
29926,
4659,
29918,
333,
742,
525,
16506,
29918,
333,
742,
1347,
2433,
16941,
2063,
313,
695,
29897,
742,
13,
4706,
5354,
543,
29961,
877,
29880,
29896,
29900,
29876,
29918,
5066,
314,
29918,
3225,
29918,
1853,
29918,
333,
742,
525,
19216,
742,
7700,
4638,
1159,
13,
13,
1678,
822,
2826,
29918,
3258,
29918,
1482,
29918,
6831,
2063,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7469,
29918,
650,
580,
13,
4706,
7463,
29918,
8768,
353,
6024,
262,
14917,
742,
525,
311,
2966,
29918,
6812,
742,
525,
11944,
277,
29918,
6812,
2033,
13,
4706,
5354,
353,
518,
877,
13509,
29918,
333,
29889,
401,
742,
525,
29922,
742,
525,
6154,
5477,
6702,
7564,
29918,
1853,
742,
525,
262,
742,
7463,
29918,
8768,
4638,
13,
4706,
565,
1583,
29889,
14518,
29918,
333,
29889,
1595,
1089,
29918,
333,
29889,
29880,
29896,
29900,
29876,
29918,
695,
29918,
1039,
29875,
29918,
20725,
29886,
2747,
29918,
1853,
297,
6024,
29896,
742,
7700,
5387,
13,
9651,
5354,
4619,
518,
877,
401,
742,
525,
1333,
297,
742,
6024,
29955,
29900,
742,
525,
29955,
29896,
2033,
4638,
13,
4706,
25342,
1583,
29889,
14518,
29918,
333,
29889,
1595,
1089,
29918,
333,
29889,
29880,
29896,
29900,
29876,
29918,
695,
29918,
1039,
29875,
29918,
20725,
29886,
2747,
29918,
1853,
1275,
525,
29906,
2396,
13,
9651,
5354,
4619,
518,
877,
401,
742,
525,
1333,
297,
742,
6024,
29941,
29941,
742,
525,
29941,
29946,
2033,
4638,
13,
4706,
10701,
353,
1583,
29889,
6272,
1839,
29880,
29896,
29900,
29876,
29918,
5066,
314,
29889,
3225,
29889,
1853,
13359,
4478,
29898,
7247,
29897,
13,
4706,
15602,
353,
1583,
29889,
6272,
1839,
381,
29889,
16506,
2033,
13,
4706,
363,
1842,
297,
10701,
29901,
13,
9651,
15602,
891,
29922,
1583,
29889,
6272,
1839,
381,
29889,
16506,
13359,
3258,
29898,
3225,
3032,
657,
29918,
3225,
29918,
16506,
29918,
791,
29879,
29898,
1311,
876,
13,
4706,
1583,
29889,
3539,
3319,
29915,
29880,
29896,
29900,
29876,
29918,
695,
29918,
16506,
29918,
4841,
2396,
17288,
29946,
29892,
269,
29889,
333,
29897,
363,
269,
297,
15602,
29962,
1800,
13,
13,
1678,
822,
1653,
29918,
3225,
29918,
6831,
2063,
29918,
695,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7469,
29918,
650,
580,
13,
4706,
565,
313,
1311,
29889,
14518,
29918,
333,
29889,
13509,
29918,
333,
2804,
1583,
29889,
6272,
29889,
999,
877,
3188,
29889,
695,
8785,
470,
1583,
29889,
6272,
1839,
381,
29889,
16506,
13359,
4478,
29898,
13,
18884,
518,
877,
29880,
29896,
29900,
29876,
29918,
5066,
314,
29918,
3225,
29918,
1853,
29918,
333,
742,
525,
19216,
742,
7700,
29897,
2314,
470,
1583,
29889,
1853,
2804,
525,
29879,
744,
29915,
470,
451,
1583,
29889,
29880,
29896,
29900,
29876,
29918,
5066,
314,
29918,
1509,
29918,
3225,
29879,
29901,
13,
9651,
736,
13,
4706,
1583,
29889,
3092,
29918,
3258,
29918,
1482,
29918,
6831,
2063,
580,
13,
13,
1678,
732,
2754,
29889,
4299,
13,
1678,
822,
1653,
29898,
1311,
29892,
1819,
1125,
13,
4706,
9995,
6204,
10854,
15602,
1156,
1653,
278,
8955,
9995,
13,
4706,
620,
353,
2428,
2141,
3258,
29898,
5975,
29897,
13,
4706,
620,
29889,
3258,
29918,
3225,
29918,
6831,
2063,
29918,
695,
580,
13,
4706,
736,
620,
13,
2
] |
epydoc/util.py | ftfniqpl/epydoc | 0 | 65992 | # epydoc -- Utility functions
#
# Copyright (C) 2005 <NAME>
# Author: <NAME> <<EMAIL>>
# URL: <http://epydoc.sf.net>
#
# $Id: util.py 1671 2008-01-29 02:55:49Z edloper $
"""
Miscellaneous utility functions that are used by multiple modules.
@group Python source types: is_module_file, is_package_dir, is_pyname,
py_src_filename
@group Text processing: wordwrap, decode_with_backslashreplace,
plaintext_to_html
"""
__docformat__ = 'epytext en'
import os, os.path, re
######################################################################
## Python Source Types
######################################################################
PY_SRC_EXTENSIONS = ['.py', '.pyw']
PY_BIN_EXTENSIONS = ['.pyc', '.so', '.pyd']
def is_module_file(path):
# Make sure it's a file name.
if not isinstance(path, basestring):
return False
(dir, filename) = os.path.split(path)
(basename, extension) = os.path.splitext(filename)
return (os.path.isfile(path) and
re.match('[a-zA-Z_]\w*$', basename) and
extension in PY_SRC_EXTENSIONS+PY_BIN_EXTENSIONS)
def is_src_filename(filename):
if not isinstance(filename, basestring): return False
if not os.path.exists(filename): return False
return os.path.splitext(filename)[1] in PY_SRC_EXTENSIONS
def is_package_dir(dirname):
"""
Return true if the given directory is a valid package directory
(i.e., it names a directory that contains a valid __init__ file,
and its name is a valid identifier).
"""
# Make sure it's a directory name.
if not isinstance(dirname, basestring):
return False
if not os.path.isdir(dirname):
return False
dirname = os.path.abspath(dirname)
# Make sure it's a valid identifier. (Special case for
# "foo/", where os.path.split -> ("foo", "").)
(parent, dir) = os.path.split(dirname)
if dir == '': (parent, dir) = os.path.split(parent)
# The following constraint was removed because of sourceforge
# bug #1787028 -- in some cases (eg eggs), it's too strict.
#if not re.match('\w+$', dir):
# return False
for name in os.listdir(dirname):
filename = os.path.join(dirname, name)
if name.startswith('__init__.') and is_module_file(filename):
return True
else:
return False
def is_pyname(name):
return re.match(r"\w+(\.\w+)*$", name)
def py_src_filename(filename):
basefile, extension = os.path.splitext(filename)
if extension in PY_SRC_EXTENSIONS:
return filename
else:
for ext in PY_SRC_EXTENSIONS:
if os.path.isfile('%s%s' % (basefile, ext)):
return '%s%s' % (basefile, ext)
else:
raise ValueError('Could not find a corresponding '
'Python source file for %r.' % filename)
def munge_script_name(filename):
name = os.path.split(filename)[1]
name = re.sub(r'\W', '_', name)
return 'script-'+name
######################################################################
## Text Processing
######################################################################
def decode_with_backslashreplace(s):
r"""
Convert the given 8-bit string into unicode, treating any
character c such that ord(c)<128 as an ascii character, and
converting any c such that ord(c)>128 into a backslashed escape
sequence.
>>> decode_with_backslashreplace('abc\xff\xe8')
u'abc\\xff\\xe8'
"""
# s.encode('string-escape') is not appropriate here, since it
# also adds backslashes to some ascii chars (eg \ and ').
assert isinstance(s, str)
return (s
.decode('latin1')
.encode('ascii', 'backslashreplace')
.decode('ascii'))
def wordwrap(str, indent=0, right=75, startindex=0, splitchars=''):
"""
Word-wrap the given string. I.e., add newlines to the string such
that any lines that are longer than C{right} are broken into
shorter lines (at the first whitespace sequence that occurs before
index C{right}). If the given string contains newlines, they will
I{not} be removed. Any lines that begin with whitespace will not
be wordwrapped.
@param indent: If specified, then indent each line by this number
of spaces.
@type indent: C{int}
@param right: The right margin for word wrapping. Lines that are
longer than C{right} will be broken at the first whitespace
sequence before the right margin.
@type right: C{int}
@param startindex: If specified, then assume that the first line
is already preceeded by C{startindex} characters.
@type startindex: C{int}
@param splitchars: A list of non-whitespace characters which can
be used to split a line. (E.g., use '/\\' to allow path names
to be split over multiple lines.)
@rtype: C{str}
"""
if splitchars:
chunks = re.split(r'( +|\n|[^ \n%s]*[%s])' %
(re.escape(splitchars), re.escape(splitchars)),
str.expandtabs())
else:
chunks = re.split(r'( +|\n)', str.expandtabs())
result = [' '*(indent-startindex)]
charindex = max(indent, startindex)
for chunknum, chunk in enumerate(chunks):
if (charindex+len(chunk) > right and charindex > 0) or chunk == '\n':
result.append('\n' + ' '*indent)
charindex = indent
if chunk[:1] not in ('\n', ' '):
result.append(chunk)
charindex += len(chunk)
else:
result.append(chunk)
charindex += len(chunk)
return ''.join(result).rstrip()+'\n'
def plaintext_to_html(s):
"""
@return: An HTML string that encodes the given plaintext string.
In particular, special characters (such as C{'<'} and C{'&'})
are escaped.
@rtype: C{string}
"""
s = s.replace('&', '&').replace('"', '"')
s = s.replace('<', '<').replace('>', '>')
return s
def plaintext_to_latex(str, nbsp=0, breakany=0):
"""
@return: A LaTeX string that encodes the given plaintext string.
In particular, special characters (such as C{'$'} and C{'_'})
are escaped, and tabs are expanded.
@rtype: C{string}
@param breakany: Insert hyphenation marks, so that LaTeX can
break the resulting string at any point. This is useful for
small boxes (e.g., the type box in the variable list table).
@param nbsp: Replace every space with a non-breaking space
(C{'~'}).
"""
# These get converted to hyphenation points later
if breakany: str = re.sub('(.)', '\\1\1', str)
# These get converted to \textbackslash later.
str = str.replace('\\', '\0')
# Expand tabs
str = str.expandtabs()
# These elements need to be backslashed.
str = re.sub(r'([#$&%_\${}])', r'\\\1', str)
# These elements have special names.
str = str.replace('|', '{\\textbar}')
str = str.replace('<', '{\\textless}')
str = str.replace('>', '{\\textgreater}')
str = str.replace('^', '{\\textasciicircum}')
str = str.replace('~', '{\\textasciitilde}')
str = str.replace('\0', r'{\textbackslash}')
# replace spaces with non-breaking spaces
if nbsp: str = str.replace(' ', '~')
# Convert \1's to hyphenation points.
if breakany: str = str.replace('\1', r'\-')
return str
class RunSubprocessError(OSError):
def __init__(self, cmd, out, err):
OSError.__init__(self, '%s failed' % cmd[0])
self.out = out
self.err = err
def run_subprocess(cmd, data=None):
"""
Execute the command C{cmd} in a subprocess.
@param cmd: The command to execute, specified as a list
of string.
@param data: A string containing data to send to the
subprocess.
@return: A tuple C{(out, err)}.
@raise OSError: If there is any problem executing the
command, or if its exitval is not 0.
"""
if isinstance(cmd, basestring):
cmd = cmd.split()
# Under Python 2.4+, use subprocess
try:
from subprocess import Popen, PIPE
pipe = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
out, err = pipe.communicate(data)
if hasattr(pipe, 'returncode'):
if pipe.returncode == 0:
return out, err
else:
raise RunSubprocessError(cmd, out, err)
else:
# Assume that there was an error iff anything was written
# to the child's stderr.
if err == '':
return out, err
else:
raise RunSubprocessError(cmd, out, err)
except ImportError:
pass
# Under Python 2.3 or earlier, on unix, use popen2.Popen3 so we
# can access the return value.
import popen2
if hasattr(popen2, 'Popen3'):
pipe = popen2.Popen3(' '.join(cmd), True)
to_child = pipe.tochild
from_child = pipe.fromchild
child_err = pipe.childerr
if data:
to_child.write(data)
to_child.close()
out = err = ''
while pipe.poll() is None:
out += from_child.read()
err += child_err.read()
out += from_child.read()
err += child_err.read()
if pipe.wait() == 0:
return out, err
else:
raise RunSubprocessError(cmd, out, err)
# Under Python 2.3 or earlier, on non-unix, use os.popen3
else:
to_child, from_child, child_err = os.popen3(' '.join(cmd), 'b')
if data:
try:
to_child.write(data)
# Guard for a broken pipe error
except IOError as e:
raise OSError(e)
to_child.close()
out = from_child.read()
err = child_err.read()
# Assume that there was an error iff anything was written
# to the child's stderr.
if err == '':
return out, err
else:
raise RunSubprocessError(cmd, out, err)
| [
1,
396,
321,
2272,
1514,
1192,
22310,
537,
3168,
13,
29937,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29900,
29945,
529,
5813,
29958,
13,
29937,
13361,
29901,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
29937,
3988,
29901,
529,
1124,
597,
1022,
29891,
1514,
29889,
4668,
29889,
1212,
29958,
13,
29937,
13,
29937,
395,
1204,
29901,
3667,
29889,
2272,
29871,
29896,
29953,
29955,
29896,
29871,
29906,
29900,
29900,
29947,
29899,
29900,
29896,
29899,
29906,
29929,
29871,
29900,
29906,
29901,
29945,
29945,
29901,
29946,
29929,
29999,
1226,
417,
546,
395,
13,
13,
15945,
29908,
13,
29924,
275,
3729,
23584,
19725,
3168,
393,
526,
1304,
491,
2999,
10585,
29889,
13,
13,
29992,
2972,
5132,
2752,
4072,
29901,
338,
29918,
5453,
29918,
1445,
29892,
338,
29918,
5113,
29918,
3972,
29892,
338,
29918,
29886,
948,
420,
29892,
13,
1678,
11451,
29918,
4351,
29918,
9507,
13,
29992,
2972,
3992,
9068,
29901,
1734,
6312,
29892,
21822,
29918,
2541,
29918,
1627,
17057,
6506,
29892,
13,
1678,
8656,
726,
29918,
517,
29918,
1420,
13,
15945,
29908,
13,
1649,
1514,
4830,
1649,
353,
525,
1022,
29891,
726,
427,
29915,
13,
13,
5215,
2897,
29892,
2897,
29889,
2084,
29892,
337,
13,
13,
13383,
13383,
13383,
13383,
4136,
2277,
13,
2277,
5132,
7562,
28025,
13,
13383,
13383,
13383,
13383,
4136,
2277,
13,
13,
20055,
29918,
29903,
10363,
29918,
12194,
1430,
13381,
29903,
353,
518,
4286,
2272,
742,
15300,
2272,
29893,
2033,
13,
20055,
29918,
29933,
1177,
29918,
12194,
1430,
13381,
29903,
353,
518,
4286,
2272,
29883,
742,
15300,
578,
742,
15300,
2272,
29881,
2033,
13,
13,
1753,
338,
29918,
5453,
29918,
1445,
29898,
2084,
1125,
13,
1678,
396,
8561,
1854,
372,
29915,
29879,
263,
934,
1024,
29889,
13,
1678,
565,
451,
338,
8758,
29898,
2084,
29892,
2362,
342,
5393,
1125,
13,
4706,
736,
7700,
13,
1678,
313,
3972,
29892,
10422,
29897,
353,
2897,
29889,
2084,
29889,
5451,
29898,
2084,
29897,
13,
1678,
313,
6500,
3871,
29892,
6081,
29897,
353,
2897,
29889,
2084,
29889,
23579,
568,
486,
29898,
9507,
29897,
13,
1678,
736,
313,
359,
29889,
2084,
29889,
275,
1445,
29898,
2084,
29897,
322,
13,
9651,
337,
29889,
4352,
877,
29961,
29874,
29899,
25265,
29899,
29999,
29918,
10725,
29893,
29394,
742,
2362,
3871,
29897,
322,
13,
9651,
6081,
297,
349,
29979,
29918,
29903,
10363,
29918,
12194,
1430,
13381,
29903,
29974,
20055,
29918,
29933,
1177,
29918,
12194,
1430,
13381,
29903,
29897,
13,
13,
1753,
338,
29918,
4351,
29918,
9507,
29898,
9507,
1125,
13,
1678,
565,
451,
338,
8758,
29898,
9507,
29892,
2362,
342,
5393,
1125,
736,
7700,
13,
1678,
565,
451,
2897,
29889,
2084,
29889,
9933,
29898,
9507,
1125,
736,
7700,
13,
1678,
736,
2897,
29889,
2084,
29889,
23579,
568,
486,
29898,
9507,
9601,
29896,
29962,
297,
349,
29979,
29918,
29903,
10363,
29918,
12194,
1430,
13381,
29903,
13,
13,
1753,
338,
29918,
5113,
29918,
3972,
29898,
25721,
1125,
13,
1678,
9995,
13,
1678,
7106,
1565,
565,
278,
2183,
3884,
338,
263,
2854,
3577,
3884,
13,
1678,
313,
29875,
29889,
29872,
1696,
372,
2983,
263,
3884,
393,
3743,
263,
2854,
4770,
2344,
1649,
934,
29892,
13,
1678,
322,
967,
1024,
338,
263,
2854,
15882,
467,
13,
1678,
9995,
13,
1678,
396,
8561,
1854,
372,
29915,
29879,
263,
3884,
1024,
29889,
13,
1678,
565,
451,
338,
8758,
29898,
25721,
29892,
2362,
342,
5393,
1125,
13,
4706,
736,
7700,
13,
1678,
565,
451,
2897,
29889,
2084,
29889,
275,
3972,
29898,
25721,
1125,
13,
4706,
736,
7700,
13,
1678,
4516,
978,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
25721,
29897,
13,
1678,
396,
8561,
1854,
372,
29915,
29879,
263,
2854,
15882,
29889,
29871,
313,
24780,
1206,
363,
13,
1678,
396,
376,
5431,
29914,
613,
988,
2897,
29889,
2084,
29889,
5451,
1599,
4852,
5431,
613,
376,
2564,
29897,
13,
1678,
313,
3560,
29892,
4516,
29897,
353,
2897,
29889,
2084,
29889,
5451,
29898,
25721,
29897,
13,
1678,
565,
4516,
1275,
525,
2396,
313,
3560,
29892,
4516,
29897,
353,
2897,
29889,
2084,
29889,
5451,
29898,
3560,
29897,
13,
13,
1678,
396,
450,
1494,
7276,
471,
6206,
1363,
310,
2752,
20324,
13,
1678,
396,
6494,
396,
29896,
29955,
29947,
29955,
29900,
29906,
29947,
1192,
297,
777,
4251,
313,
387,
29808,
511,
372,
29915,
29879,
2086,
9406,
29889,
13,
1678,
396,
361,
451,
337,
29889,
4352,
28909,
29893,
24035,
742,
4516,
1125,
13,
1678,
396,
1678,
736,
7700,
13,
13,
1678,
363,
1024,
297,
2897,
29889,
1761,
3972,
29898,
25721,
1125,
13,
4706,
10422,
353,
2897,
29889,
2084,
29889,
7122,
29898,
25721,
29892,
1024,
29897,
13,
4706,
565,
1024,
29889,
27382,
2541,
877,
1649,
2344,
26914,
1495,
322,
338,
29918,
5453,
29918,
1445,
29898,
9507,
1125,
13,
9651,
736,
5852,
13,
1678,
1683,
29901,
13,
4706,
736,
7700,
13,
13,
1753,
338,
29918,
29886,
948,
420,
29898,
978,
1125,
13,
1678,
736,
337,
29889,
4352,
29898,
29878,
26732,
29893,
29974,
1194,
7790,
29893,
29974,
11877,
29938,
613,
1024,
29897,
13,
13,
1753,
11451,
29918,
4351,
29918,
9507,
29898,
9507,
1125,
13,
1678,
2967,
1445,
29892,
6081,
353,
2897,
29889,
2084,
29889,
23579,
568,
486,
29898,
9507,
29897,
13,
1678,
565,
6081,
297,
349,
29979,
29918,
29903,
10363,
29918,
12194,
1430,
13381,
29903,
29901,
13,
4706,
736,
10422,
13,
1678,
1683,
29901,
13,
4706,
363,
1294,
297,
349,
29979,
29918,
29903,
10363,
29918,
12194,
1430,
13381,
29903,
29901,
13,
9651,
565,
2897,
29889,
2084,
29889,
275,
1445,
877,
29995,
29879,
29995,
29879,
29915,
1273,
313,
3188,
1445,
29892,
1294,
22164,
13,
18884,
736,
14210,
29879,
29995,
29879,
29915,
1273,
313,
3188,
1445,
29892,
1294,
29897,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
877,
23323,
451,
1284,
263,
6590,
525,
13,
462,
632,
525,
11980,
2752,
934,
363,
1273,
29878,
6169,
1273,
10422,
29897,
13,
13,
1753,
286,
19440,
29918,
2154,
29918,
978,
29898,
9507,
1125,
13,
1678,
1024,
353,
2897,
29889,
2084,
29889,
5451,
29898,
9507,
9601,
29896,
29962,
13,
1678,
1024,
353,
337,
29889,
1491,
29898,
29878,
12764,
29956,
742,
22868,
742,
1024,
29897,
13,
1678,
736,
525,
2154,
29899,
18717,
978,
13,
13,
13383,
13383,
13383,
13383,
4136,
2277,
13,
2277,
3992,
10554,
292,
13,
13383,
13383,
13383,
13383,
4136,
2277,
13,
13,
1753,
21822,
29918,
2541,
29918,
1627,
17057,
6506,
29898,
29879,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
14806,
278,
2183,
29871,
29947,
29899,
2966,
1347,
964,
29104,
29892,
2578,
1218,
738,
13,
1678,
2931,
274,
1316,
393,
4356,
29898,
29883,
29897,
29966,
29896,
29906,
29947,
408,
385,
408,
18869,
2931,
29892,
322,
13,
1678,
17415,
738,
274,
1316,
393,
4356,
29898,
29883,
15410,
29896,
29906,
29947,
964,
263,
1250,
17057,
287,
10169,
13,
1678,
5665,
29889,
13,
13,
4706,
8653,
21822,
29918,
2541,
29918,
1627,
17057,
6506,
877,
10736,
29905,
29916,
600,
29905,
17115,
29947,
1495,
13,
4706,
318,
29915,
10736,
1966,
29916,
600,
1966,
17115,
29947,
29915,
13,
1678,
9995,
13,
1678,
396,
269,
29889,
12508,
877,
1807,
29899,
21587,
1495,
338,
451,
8210,
1244,
29892,
1951,
372,
13,
1678,
396,
884,
12778,
1250,
17057,
267,
304,
777,
408,
18869,
22524,
313,
387,
320,
322,
525,
467,
13,
1678,
4974,
338,
8758,
29898,
29879,
29892,
851,
29897,
13,
1678,
736,
313,
29879,
13,
9651,
869,
13808,
877,
5066,
262,
29896,
1495,
13,
9651,
869,
12508,
877,
294,
18869,
742,
525,
1627,
17057,
6506,
1495,
13,
9651,
869,
13808,
877,
294,
18869,
8785,
13,
13,
1753,
1734,
6312,
29898,
710,
29892,
29536,
29922,
29900,
29892,
1492,
29922,
29955,
29945,
29892,
1369,
2248,
29922,
29900,
29892,
8536,
2335,
1503,
2433,
29374,
13,
1678,
9995,
13,
1678,
10803,
29899,
6312,
278,
2183,
1347,
29889,
29871,
306,
29889,
29872,
1696,
788,
716,
9012,
304,
278,
1347,
1316,
13,
1678,
393,
738,
3454,
393,
526,
5520,
1135,
315,
29912,
1266,
29913,
526,
9391,
964,
13,
1678,
20511,
3454,
313,
271,
278,
937,
24358,
5665,
393,
10008,
1434,
13,
1678,
2380,
315,
29912,
1266,
7690,
29871,
960,
278,
2183,
1347,
3743,
716,
9012,
29892,
896,
674,
13,
1678,
306,
29912,
1333,
29913,
367,
6206,
29889,
29871,
3139,
3454,
393,
3380,
411,
24358,
674,
451,
13,
1678,
367,
1734,
29893,
336,
2986,
29889,
13,
13,
1678,
732,
3207,
29536,
29901,
960,
6790,
29892,
769,
29536,
1269,
1196,
491,
445,
1353,
13,
4706,
310,
8162,
29889,
13,
1678,
732,
1853,
29536,
29901,
315,
29912,
524,
29913,
13,
1678,
732,
3207,
1492,
29901,
450,
1492,
5906,
363,
1734,
28489,
29889,
29871,
365,
1475,
393,
526,
13,
4706,
5520,
1135,
315,
29912,
1266,
29913,
674,
367,
9391,
472,
278,
937,
24358,
13,
4706,
5665,
1434,
278,
1492,
5906,
29889,
13,
1678,
732,
1853,
1492,
29901,
315,
29912,
524,
29913,
13,
1678,
732,
3207,
1369,
2248,
29901,
960,
6790,
29892,
769,
5251,
393,
278,
937,
1196,
13,
4706,
338,
2307,
758,
3947,
287,
491,
315,
29912,
2962,
2248,
29913,
4890,
29889,
13,
1678,
732,
1853,
1369,
2248,
29901,
315,
29912,
524,
29913,
13,
1678,
732,
3207,
8536,
2335,
1503,
29901,
319,
1051,
310,
1661,
29899,
1332,
3246,
3535,
4890,
607,
508,
13,
4706,
367,
1304,
304,
6219,
263,
1196,
29889,
29871,
313,
29923,
29889,
29887,
1696,
671,
8207,
1966,
29915,
304,
2758,
2224,
2983,
13,
4706,
304,
367,
6219,
975,
2999,
3454,
1846,
13,
1678,
732,
29878,
1853,
29901,
315,
29912,
710,
29913,
13,
1678,
9995,
13,
1678,
565,
8536,
2335,
1503,
29901,
13,
4706,
521,
18801,
353,
337,
29889,
5451,
29898,
29878,
12215,
718,
4295,
29876,
29989,
22896,
320,
29876,
29995,
29879,
14178,
29961,
29995,
29879,
2314,
29915,
1273,
13,
462,
3986,
313,
276,
29889,
21587,
29898,
23579,
2335,
1503,
511,
337,
29889,
21587,
29898,
23579,
2335,
1503,
8243,
13,
462,
3986,
851,
29889,
18837,
21175,
3101,
13,
1678,
1683,
29901,
13,
4706,
521,
18801,
353,
337,
29889,
5451,
29898,
29878,
12215,
718,
4295,
29876,
29897,
742,
851,
29889,
18837,
21175,
3101,
13,
1678,
1121,
353,
6024,
525,
16395,
12860,
29899,
2962,
2248,
4638,
13,
1678,
1373,
2248,
353,
4236,
29898,
12860,
29892,
1369,
2248,
29897,
13,
1678,
363,
19875,
1949,
29892,
19875,
297,
26985,
29898,
305,
18801,
1125,
13,
4706,
565,
313,
3090,
2248,
29974,
2435,
29898,
29812,
29897,
1405,
1492,
322,
1373,
2248,
1405,
29871,
29900,
29897,
470,
19875,
1275,
11297,
29876,
2396,
13,
9651,
1121,
29889,
4397,
28909,
29876,
29915,
718,
525,
525,
29930,
12860,
29897,
13,
9651,
1373,
2248,
353,
29536,
13,
9651,
565,
19875,
7503,
29896,
29962,
451,
297,
6702,
29905,
29876,
742,
525,
525,
1125,
13,
18884,
1121,
29889,
4397,
29898,
29812,
29897,
13,
18884,
1373,
2248,
4619,
7431,
29898,
29812,
29897,
13,
4706,
1683,
29901,
13,
9651,
1121,
29889,
4397,
29898,
29812,
29897,
13,
9651,
1373,
2248,
4619,
7431,
29898,
29812,
29897,
13,
1678,
736,
525,
4286,
7122,
29898,
2914,
467,
29878,
17010,
580,
29974,
12764,
29876,
29915,
13,
13,
1753,
8656,
726,
29918,
517,
29918,
1420,
29898,
29879,
1125,
13,
1678,
9995,
13,
1678,
732,
2457,
29901,
530,
4544,
1347,
393,
2094,
2631,
278,
2183,
8656,
726,
1347,
29889,
13,
1678,
512,
3153,
29892,
4266,
4890,
313,
14565,
408,
315,
10998,
29966,
10827,
322,
315,
10998,
29987,
29915,
1800,
13,
1678,
526,
19824,
29889,
13,
1678,
732,
29878,
1853,
29901,
315,
29912,
1807,
29913,
13,
1678,
9995,
13,
1678,
269,
353,
269,
29889,
6506,
877,
29987,
742,
525,
29987,
1160,
29936,
2824,
6506,
877,
29908,
742,
525,
29987,
23083,
29936,
1495,
13,
1678,
269,
353,
269,
29889,
6506,
877,
29966,
742,
525,
29987,
1896,
29936,
2824,
6506,
877,
29958,
742,
525,
29987,
4141,
29936,
1495,
13,
1678,
736,
269,
13,
13,
1753,
8656,
726,
29918,
517,
29918,
25694,
29898,
710,
29892,
302,
29890,
1028,
29922,
29900,
29892,
2867,
1384,
29922,
29900,
1125,
13,
1678,
9995,
13,
1678,
732,
2457,
29901,
319,
29186,
1347,
393,
2094,
2631,
278,
2183,
8656,
726,
1347,
29889,
13,
1678,
512,
3153,
29892,
4266,
4890,
313,
14565,
408,
315,
10998,
29938,
10827,
322,
315,
10998,
29918,
29915,
1800,
13,
1678,
526,
19824,
29892,
322,
18859,
526,
17832,
29889,
13,
1678,
732,
29878,
1853,
29901,
315,
29912,
1807,
29913,
13,
1678,
732,
3207,
2867,
1384,
29901,
24505,
7498,
9789,
362,
17997,
29892,
577,
393,
29186,
508,
13,
1678,
2867,
278,
9819,
1347,
472,
738,
1298,
29889,
29871,
910,
338,
5407,
363,
13,
1678,
2319,
16273,
313,
29872,
29889,
29887,
1696,
278,
1134,
3800,
297,
278,
2286,
1051,
1591,
467,
13,
1678,
732,
3207,
302,
29890,
1028,
29901,
22108,
1432,
2913,
411,
263,
1661,
29899,
1030,
5086,
2913,
13,
1678,
313,
29907,
10998,
30022,
29915,
7690,
13,
1678,
9995,
13,
1678,
396,
4525,
679,
11543,
304,
7498,
9789,
362,
3291,
2678,
13,
1678,
565,
2867,
1384,
29901,
851,
353,
337,
29889,
1491,
877,
29898,
1846,
742,
525,
1966,
29896,
29905,
29896,
742,
851,
29897,
13,
13,
1678,
396,
4525,
679,
11543,
304,
320,
726,
1627,
17057,
2678,
29889,
13,
1678,
851,
353,
851,
29889,
6506,
877,
1966,
742,
11297,
29900,
1495,
13,
13,
1678,
396,
12027,
392,
18859,
13,
1678,
851,
353,
851,
29889,
18837,
21175,
580,
13,
13,
1678,
396,
4525,
3161,
817,
304,
367,
1250,
17057,
287,
29889,
13,
1678,
851,
353,
337,
29889,
1491,
29898,
29878,
29915,
4197,
29937,
29938,
29987,
29995,
3187,
5303,
29913,
2314,
742,
364,
29915,
1966,
29905,
29896,
742,
851,
29897,
13,
13,
1678,
396,
4525,
3161,
505,
4266,
2983,
29889,
13,
1678,
851,
353,
851,
29889,
6506,
877,
29989,
742,
525,
741,
29905,
726,
1646,
29913,
1495,
13,
1678,
851,
353,
851,
29889,
6506,
877,
29966,
742,
525,
741,
29905,
726,
2222,
29913,
1495,
13,
1678,
851,
353,
851,
29889,
6506,
877,
29958,
742,
525,
741,
29905,
726,
7979,
1008,
29913,
1495,
13,
1678,
851,
353,
851,
29889,
6506,
877,
29985,
742,
525,
741,
29905,
726,
294,
455,
293,
2076,
398,
29913,
1495,
13,
1678,
851,
353,
851,
29889,
6506,
877,
30022,
742,
525,
741,
29905,
726,
294,
455,
277,
7154,
29913,
1495,
13,
1678,
851,
353,
851,
29889,
6506,
28909,
29900,
742,
364,
29915,
741,
726,
1627,
17057,
29913,
1495,
13,
13,
1678,
396,
5191,
8162,
411,
1661,
29899,
1030,
5086,
8162,
13,
1678,
565,
302,
29890,
1028,
29901,
851,
353,
851,
29889,
6506,
877,
13420,
525,
30022,
1495,
13,
13,
1678,
396,
14806,
320,
29896,
29915,
29879,
304,
7498,
9789,
362,
3291,
29889,
13,
1678,
565,
2867,
1384,
29901,
851,
353,
851,
29889,
6506,
28909,
29896,
742,
364,
12764,
29899,
1495,
13,
13,
1678,
736,
851,
13,
13,
1990,
7525,
4035,
5014,
2392,
29898,
29949,
29173,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
9920,
29892,
714,
29892,
4589,
1125,
13,
4706,
438,
29173,
17255,
2344,
12035,
1311,
29892,
14210,
29879,
5229,
29915,
1273,
9920,
29961,
29900,
2314,
13,
4706,
1583,
29889,
449,
353,
714,
13,
4706,
1583,
29889,
3127,
353,
4589,
13,
13,
1753,
1065,
29918,
1491,
5014,
29898,
9006,
29892,
848,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
11080,
1082,
278,
1899,
315,
29912,
9006,
29913,
297,
263,
1014,
5014,
29889,
13,
13,
1678,
732,
3207,
9920,
29901,
450,
1899,
304,
6222,
29892,
6790,
408,
263,
1051,
13,
4706,
310,
1347,
29889,
13,
1678,
732,
3207,
848,
29901,
319,
1347,
6943,
848,
304,
3638,
304,
278,
13,
4706,
1014,
5014,
29889,
13,
1678,
732,
2457,
29901,
319,
18761,
315,
8001,
449,
29892,
4589,
29512,
13,
1678,
732,
22692,
438,
29173,
29901,
960,
727,
338,
738,
1108,
14012,
278,
13,
4706,
1899,
29892,
470,
565,
967,
6876,
791,
338,
451,
29871,
29900,
29889,
13,
1678,
9995,
13,
1678,
565,
338,
8758,
29898,
9006,
29892,
2362,
342,
5393,
1125,
13,
4706,
9920,
353,
9920,
29889,
5451,
580,
13,
13,
1678,
396,
7634,
5132,
29871,
29906,
29889,
29946,
29974,
29892,
671,
1014,
5014,
13,
1678,
1018,
29901,
13,
4706,
515,
1014,
5014,
1053,
349,
3150,
29892,
349,
29902,
4162,
13,
4706,
14282,
353,
349,
3150,
29898,
9006,
29892,
3659,
262,
29922,
2227,
4162,
29892,
27591,
29922,
2227,
4162,
29892,
380,
20405,
29922,
2227,
4162,
29897,
13,
4706,
714,
29892,
4589,
353,
14282,
29889,
27820,
403,
29898,
1272,
29897,
13,
4706,
565,
756,
5552,
29898,
17760,
29892,
525,
2457,
401,
29374,
13,
9651,
565,
14282,
29889,
2457,
401,
1275,
29871,
29900,
29901,
13,
18884,
736,
714,
29892,
4589,
13,
9651,
1683,
29901,
13,
18884,
12020,
7525,
4035,
5014,
2392,
29898,
9006,
29892,
714,
29892,
4589,
29897,
13,
4706,
1683,
29901,
13,
9651,
396,
22680,
393,
727,
471,
385,
1059,
565,
29888,
3099,
471,
3971,
13,
9651,
396,
304,
278,
2278,
29915,
29879,
380,
20405,
29889,
13,
9651,
565,
4589,
1275,
525,
2396,
13,
18884,
736,
714,
29892,
4589,
13,
9651,
1683,
29901,
13,
18884,
12020,
7525,
4035,
5014,
2392,
29898,
9006,
29892,
714,
29892,
4589,
29897,
13,
1678,
5174,
16032,
2392,
29901,
13,
4706,
1209,
13,
13,
1678,
396,
7634,
5132,
29871,
29906,
29889,
29941,
470,
8859,
29892,
373,
28167,
29892,
671,
1835,
264,
29906,
29889,
29925,
3150,
29941,
577,
591,
13,
1678,
396,
508,
2130,
278,
736,
995,
29889,
13,
1678,
1053,
1835,
264,
29906,
13,
1678,
565,
756,
5552,
29898,
29886,
3150,
29906,
29892,
525,
29925,
3150,
29941,
29374,
13,
4706,
14282,
353,
1835,
264,
29906,
29889,
29925,
3150,
29941,
877,
15300,
7122,
29898,
9006,
511,
5852,
29897,
13,
4706,
304,
29918,
5145,
353,
14282,
29889,
517,
5145,
13,
4706,
515,
29918,
5145,
353,
14282,
29889,
3166,
5145,
13,
4706,
2278,
29918,
3127,
353,
14282,
29889,
305,
2700,
29878,
13,
4706,
565,
848,
29901,
13,
9651,
304,
29918,
5145,
29889,
3539,
29898,
1272,
29897,
13,
4706,
304,
29918,
5145,
29889,
5358,
580,
13,
4706,
714,
353,
4589,
353,
6629,
13,
4706,
1550,
14282,
29889,
29886,
3028,
580,
338,
6213,
29901,
13,
9651,
714,
4619,
515,
29918,
5145,
29889,
949,
580,
13,
9651,
4589,
4619,
2278,
29918,
3127,
29889,
949,
580,
13,
4706,
714,
4619,
515,
29918,
5145,
29889,
949,
580,
13,
4706,
4589,
4619,
2278,
29918,
3127,
29889,
949,
580,
13,
4706,
565,
14282,
29889,
10685,
580,
1275,
29871,
29900,
29901,
13,
9651,
736,
714,
29892,
4589,
13,
4706,
1683,
29901,
13,
9651,
12020,
7525,
4035,
5014,
2392,
29898,
9006,
29892,
714,
29892,
4589,
29897,
13,
13,
1678,
396,
7634,
5132,
29871,
29906,
29889,
29941,
470,
8859,
29892,
373,
1661,
29899,
24538,
29892,
671,
2897,
29889,
29886,
3150,
29941,
13,
1678,
1683,
29901,
13,
4706,
304,
29918,
5145,
29892,
515,
29918,
5145,
29892,
2278,
29918,
3127,
353,
2897,
29889,
29886,
3150,
29941,
877,
15300,
7122,
29898,
9006,
511,
525,
29890,
1495,
13,
4706,
565,
848,
29901,
13,
9651,
1018,
29901,
13,
18884,
304,
29918,
5145,
29889,
3539,
29898,
1272,
29897,
13,
9651,
396,
13211,
363,
263,
9391,
14282,
1059,
13,
9651,
5174,
10663,
2392,
408,
321,
29901,
13,
18884,
12020,
438,
29173,
29898,
29872,
29897,
13,
4706,
304,
29918,
5145,
29889,
5358,
580,
13,
4706,
714,
353,
515,
29918,
5145,
29889,
949,
580,
13,
4706,
4589,
353,
2278,
29918,
3127,
29889,
949,
580,
13,
4706,
396,
22680,
393,
727,
471,
385,
1059,
565,
29888,
3099,
471,
3971,
13,
4706,
396,
304,
278,
2278,
29915,
29879,
380,
20405,
29889,
13,
4706,
565,
4589,
1275,
525,
2396,
13,
9651,
736,
714,
29892,
4589,
13,
4706,
1683,
29901,
13,
9651,
12020,
7525,
4035,
5014,
2392,
29898,
9006,
29892,
714,
29892,
4589,
29897,
13,
2
] |
applications/cli/commands/model/tests/test_common.py | starcell/deepcell-ncluster | 0 | 148754 | #
# Copyright (c) 2019 Intel Corporation
#
# 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 commands.model.common import format_workflow_description, get_list_of_workflows, EXPORT_WORKFLOWS_LOCATION
from unittest.mock import patch, mock_open
FULL_WORKFLOW_FILE = """
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: test-workflow
spec:
entrypoint: test-image
arguments:
parameters:
- name: test-message
value: test value
- name: test-number
value: test number value
templates:
- name: test-image
inputs:
parameters:
- name: message
container:
image: docker/whalesay
command: [cowsay]
args: ["{{inputs.parameters.test-message}}"]
"""
LACK_OF_ARGS_WORKFLOW_FILE = """
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: test-workflow2
spec:
entrypoint: test-image
templates:
- name: test-image
inputs:
parameters:
- name: message
container:
image: docker/whalesay
command: [cowsay]
"""
def test_format_workflow_description(mocker):
m = mock_open(read_data=FULL_WORKFLOW_FILE)
with patch("builtins.open", m):
description = format_workflow_description("filename.txt")
assert "test-workflow" == description.name
def test_format_workflow_description_wo_arguments(mocker):
m = mock_open(read_data=LACK_OF_ARGS_WORKFLOW_FILE)
with patch("builtins.open", m):
description = format_workflow_description("filename.txt")
assert "test-workflow2" == description.name
def test_list_of_workflows(tmpdir, mocker):
exports_temp_dir = tmpdir.mkdir("workflows").mkdir("exports")
first_workflow = exports_temp_dir.join("first_workflow.yaml")
first_workflow.write(FULL_WORKFLOW_FILE)
second_workflow = exports_temp_dir.join("second_workflow.yaml")
second_workflow.write(LACK_OF_ARGS_WORKFLOW_FILE)
fake_config = mocker.patch("commands.model.common.Config")
fake_config.return_value.config_path = tmpdir
list_of_workflows = get_list_of_workflows(EXPORT_WORKFLOWS_LOCATION)
assert len(list_of_workflows) == 2
first_found = False
second_found = False
for workflow in list_of_workflows:
if workflow.name == "test-workflow":
first_found = True
if workflow.name == "test-workflow2":
second_found = True
assert first_found
assert second_found
| [
1,
396,
30004,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29929,
18555,
15025,
30004,
13,
29937,
30004,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
18584,
13,
29937,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
22993,
13,
29937,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
30004,
13,
29937,
30004,
13,
29937,
418,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
30004,
13,
29937,
30004,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
30004,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
11167,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
22993,
13,
29937,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
30004,
13,
29937,
27028,
1090,
278,
19245,
22993,
13,
29937,
30004,
13,
30004,
13,
3166,
8260,
29889,
4299,
29889,
9435,
1053,
3402,
29918,
1287,
1731,
29918,
8216,
29892,
679,
29918,
1761,
29918,
974,
29918,
1287,
1731,
29879,
29892,
8528,
15082,
29918,
11686,
29968,
29943,
3927,
7811,
29918,
16652,
8098,
30004,
13,
3166,
443,
27958,
29889,
17640,
1053,
13261,
29892,
11187,
29918,
3150,
30004,
13,
30004,
13,
30004,
13,
29943,
3299,
29918,
11686,
29968,
29943,
27998,
29918,
7724,
353,
9995,
30004,
13,
2754,
6594,
29901,
1852,
26555,
29926,
29889,
601,
29914,
29894,
29896,
2312,
29896,
30004,
13,
14380,
29901,
5244,
1731,
30004,
13,
19635,
29901,
30004,
13,
29871,
5706,
1170,
29901,
1243,
29899,
1287,
1731,
30004,
13,
6550,
29901,
30004,
13,
29871,
6251,
3149,
29901,
1243,
29899,
3027,
30004,
13,
29871,
6273,
29901,
30004,
13,
1678,
4128,
29901,
30004,
13,
1678,
448,
1024,
29901,
1243,
29899,
4906,
30004,
13,
418,
995,
29901,
1243,
995,
30004,
13,
1678,
448,
1024,
29901,
1243,
29899,
4537,
30004,
13,
418,
995,
29901,
1243,
1353,
995,
30004,
13,
30004,
13,
29871,
17475,
29901,
30004,
13,
29871,
448,
1024,
29901,
1243,
29899,
3027,
30004,
13,
1678,
10970,
29901,
30004,
13,
418,
4128,
29901,
30004,
13,
418,
448,
1024,
29901,
2643,
30004,
13,
1678,
5639,
29901,
30004,
13,
418,
1967,
29901,
10346,
29914,
1332,
2122,
388,
30004,
13,
418,
1899,
29901,
518,
29883,
1242,
388,
29962,
30004,
13,
418,
6389,
29901,
6796,
6224,
2080,
29879,
29889,
16744,
29889,
1688,
29899,
4906,
930,
3108,
30004,
13,
15945,
19451,
13,
30004,
13,
29931,
11375,
29918,
9800,
29918,
1718,
10749,
29918,
11686,
29968,
29943,
27998,
29918,
7724,
353,
9995,
30004,
13,
2754,
6594,
29901,
1852,
26555,
29926,
29889,
601,
29914,
29894,
29896,
2312,
29896,
30004,
13,
14380,
29901,
5244,
1731,
30004,
13,
19635,
29901,
30004,
13,
29871,
5706,
1170,
29901,
1243,
29899,
1287,
1731,
29906,
30004,
13,
6550,
29901,
30004,
13,
29871,
6251,
3149,
29901,
1243,
29899,
3027,
30004,
13,
29871,
17475,
29901,
30004,
13,
29871,
448,
1024,
29901,
1243,
29899,
3027,
30004,
13,
1678,
10970,
29901,
30004,
13,
418,
4128,
29901,
30004,
13,
418,
448,
1024,
29901,
2643,
30004,
13,
1678,
5639,
29901,
30004,
13,
418,
1967,
29901,
10346,
29914,
1332,
2122,
388,
30004,
13,
418,
1899,
29901,
518,
29883,
1242,
388,
29962,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
1753,
1243,
29918,
4830,
29918,
1287,
1731,
29918,
8216,
29898,
29885,
8658,
1125,
30004,
13,
1678,
286,
353,
11187,
29918,
3150,
29898,
949,
29918,
1272,
29922,
29943,
3299,
29918,
11686,
29968,
29943,
27998,
29918,
7724,
8443,
13,
30004,
13,
1678,
411,
13261,
703,
16145,
1144,
29889,
3150,
613,
286,
1125,
30004,
13,
4706,
6139,
353,
3402,
29918,
1287,
1731,
29918,
8216,
703,
9507,
29889,
3945,
1159,
30004,
13,
30004,
13,
1678,
4974,
376,
1688,
29899,
1287,
1731,
29908,
1275,
6139,
29889,
978,
30004,
13,
30004,
13,
30004,
13,
1753,
1243,
29918,
4830,
29918,
1287,
1731,
29918,
8216,
29918,
827,
29918,
25699,
29898,
29885,
8658,
1125,
30004,
13,
1678,
286,
353,
11187,
29918,
3150,
29898,
949,
29918,
1272,
29922,
29931,
11375,
29918,
9800,
29918,
1718,
10749,
29918,
11686,
29968,
29943,
27998,
29918,
7724,
8443,
13,
30004,
13,
1678,
411,
13261,
703,
16145,
1144,
29889,
3150,
613,
286,
1125,
30004,
13,
4706,
6139,
353,
3402,
29918,
1287,
1731,
29918,
8216,
703,
9507,
29889,
3945,
1159,
30004,
13,
30004,
13,
1678,
4974,
376,
1688,
29899,
1287,
1731,
29906,
29908,
1275,
6139,
29889,
978,
30004,
13,
30004,
13,
30004,
13,
1753,
1243,
29918,
1761,
29918,
974,
29918,
1287,
1731,
29879,
29898,
7050,
3972,
29892,
286,
8658,
1125,
30004,
13,
1678,
29586,
29918,
7382,
29918,
3972,
353,
13128,
3972,
29889,
11256,
3972,
703,
1287,
1731,
29879,
2564,
11256,
3972,
703,
26500,
1159,
30004,
13,
30004,
13,
1678,
937,
29918,
1287,
1731,
353,
29586,
29918,
7382,
29918,
3972,
29889,
7122,
703,
4102,
29918,
1287,
1731,
29889,
25162,
1159,
30004,
13,
1678,
937,
29918,
1287,
1731,
29889,
3539,
29898,
29943,
3299,
29918,
11686,
29968,
29943,
27998,
29918,
7724,
8443,
13,
30004,
13,
1678,
1473,
29918,
1287,
1731,
353,
29586,
29918,
7382,
29918,
3972,
29889,
7122,
703,
7496,
29918,
1287,
1731,
29889,
25162,
1159,
30004,
13,
1678,
1473,
29918,
1287,
1731,
29889,
3539,
29898,
29931,
11375,
29918,
9800,
29918,
1718,
10749,
29918,
11686,
29968,
29943,
27998,
29918,
7724,
8443,
13,
30004,
13,
1678,
25713,
29918,
2917,
353,
286,
8658,
29889,
5041,
703,
26381,
29889,
4299,
29889,
9435,
29889,
3991,
1159,
30004,
13,
1678,
25713,
29918,
2917,
29889,
2457,
29918,
1767,
29889,
2917,
29918,
2084,
353,
13128,
3972,
30004,
13,
30004,
13,
1678,
1051,
29918,
974,
29918,
1287,
1731,
29879,
353,
679,
29918,
1761,
29918,
974,
29918,
1287,
1731,
29879,
29898,
5746,
15082,
29918,
11686,
29968,
29943,
3927,
7811,
29918,
16652,
8098,
8443,
13,
30004,
13,
1678,
4974,
7431,
29898,
1761,
29918,
974,
29918,
1287,
1731,
29879,
29897,
1275,
29871,
29906,
30004,
13,
30004,
13,
1678,
937,
29918,
11940,
353,
7700,
30004,
13,
1678,
1473,
29918,
11940,
353,
7700,
30004,
13,
30004,
13,
1678,
363,
27321,
297,
1051,
29918,
974,
29918,
1287,
1731,
29879,
29901,
30004,
13,
30004,
13,
4706,
565,
27321,
29889,
978,
1275,
376,
1688,
29899,
1287,
1731,
1115,
30004,
13,
9651,
937,
29918,
11940,
353,
5852,
30004,
13,
30004,
13,
4706,
565,
27321,
29889,
978,
1275,
376,
1688,
29899,
1287,
1731,
29906,
1115,
30004,
13,
9651,
1473,
29918,
11940,
353,
5852,
30004,
13,
30004,
13,
1678,
4974,
937,
29918,
11940,
30004,
13,
1678,
4974,
1473,
29918,
11940,
30004,
13,
2
] |
ManageProxy.py | guiqiqi/AirPoluionData | 1 | 187617 | import subprocess
import time
import threading
import shelve
import queue
import re
from collections import defaultdict
import urllib.request as request
import urllib
import socket
import datetime
socket.setdefaulttimeout(5)
class DBHandler(object):
"""数据文件操作"""
def __init__(self, file_name, file_dir):
self.file_dir = file_dir
self.file_name = file_name
self.db = shelve.open(file_dir+"/"+file_name, writeback = True)
def getAllKey(self, as_queue = True):
self.ip_list = self.db.keys()
if not as_queue:
return self.ip_list
self.ip_queue = queue.Queue(maxsize = -1)
for ip in self.ip_list:
self.ip_queue.put(ip)
return self.ip_queue
def getAll(self):
return dict(self.db.items())
def get(self, key):
return self.db.get(key, default = False)
def update(self):
self.close()
self.__init__(self.file_name, self.file_dir)
def add(self, key, data):
self.db[key] = data
def delete(self, key):
del self.db[key]
def clear(self):
for item in self.getAllKey(False):
self.delete(item)
def exist(self, key):
if key in self.db.keys():
return True
return False
def close(self):
self.db.close()
class TestLag(object):
"""用于定时测试每个IP的延迟以及可用性"""
def __init__(self, manager, thread_num = 8, retry_times = 3):
self.manager = manager
self.ip_queue = manager.ipfile.getAllKey()
self.IP_COUNT = self.ip_queue.qsize()
self.thread_num = thread_num
self.thread_queue = queue.Queue(maxsize = thread_num)
self.pattern = re.compile('(?P<gap>\d+)ms')
self.resultset = {}
self.retry_times = retry_times
def start(self):
ip_queue = self.ip_queue
for i in range(self.thread_num):
self.thread_queue.put(i+1)
while (not ip_queue.empty()) or (len(self.resultset) != self.IP_COUNT):
try:
ip = ip_queue.get_nowait()
except:
pass
thread_id = self.thread_queue.get()
newth = threading.Thread(target = self.gapping, name = 'TestGap-' + str(thread_id),
args = (ip, thread_id))
newth.start()
print (self.resultset)
ip_queue = self.manager.ipfile.getAllKey()
def gapping(self, ip, thread_id):
ret = subprocess.Popen('ping -n 1 %s' % ip,stdout = subprocess.PIPE)
ret.wait()
gap = has_gap = self.manager.ipfile.get(ip)
if (has_gap > 0) and ret.returncode:
gap = -self.retry_times
if has_gap < 0:
gap = has_gap + 1
if not ret.returncode:
result = ret.stdout.read()
t = self.pattern.search(str(result))
if t:
gap = int(t.group()[0:-2])
self.resultset[ip] = gap
self.thread_queue.put(thread_id)
class ManageAddr(object):
"""管理相应的IP以及端口,延迟的对应关系"""
def __init__(self, ipfile_name, portfile_name, file_dir = 'data'):
self.ipfile = DBHandler(ipfile_name,file_dir)
self.portfile = DBHandler(portfile_name,file_dir)
def add(self, ipListWithPort, retry_times = 3):
for item in ipListWithPort:
ip_addr = item.split(':')
ip, port = ip_addr[0], ip_addr[1]
self.record_ip(ip, retry_times)
self.record_port(ip, port)
def get(self, ip):
return ip+self.portfile.get(ip)
def record_port(self, ip, port):
self.portfile.add(ip, port)
def record_ip(self, ip, retry_times):
if not self.ipfile.exist(ip):
self.ipfile.add(ip, -retry_times)
def getAsGap(self):
sortasgap = defaultdict(list)
for k,v in self.ipfile.getAll().items():
sortasgap[v].append(k)
try:
sortasgap = sorted(sortasgap.items(),key = lambda d:d[0])
ip = sortasgap[0][1][0]
gap = sortasgap[0][0]
port = self.portfile.get(ip)
except:
return None
self.delete(ip)
self.update()
if gap <= 0:
return self.getAsGap()
return [[ip,port],gap]
def renew(self, has_test):
for ip in has_test.keys():
if not has_test[ip]:
self.ipfile.delete(ip)
self.portfile.delete(ip)
self.update()
def update(self):
self.ipfile.update()
self.portfile.update()
def delete(self, key):
self.ipfile.delete(key)
self.portfile.delete(key)
def close(self):
self.ipfile.close()
self.portfile.close()
def query(self, handler, key = None):
if key == None:
return handler.getAllKey()
return handler.get(key)
class VerifyProxy(object):
"""通过使用测试代理的可用性"""
def __init__(self, manager, thread_num):
self.manager = manager
self.thread_num = thread_num
self.ip_queue = manager.ipfile.getAllKey()
self.deleteList = []
self.header = [('User-Agent', 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko'),
('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'),
('Cache-Control', 'no-cache'), ('Connection', 'Keep-Alive'), ('Pragma', 'no-cache'),
('Accept-Language', 'zh-CN,zh;q=0.8,en;q=0.6')]
with open('Verify.data','r') as file:
self.data = file.read()
def start(self):
thread_queue = queue.Queue(maxsize = self.thread_num)
self.thread_queue = thread_queue
ip_queue = self.ip_queue
for i in range(self.thread_num):
thread_queue.put(i+1)
while not ip_queue.empty():
try:
ip = ip_queue.get_nowait()
port = self.manager.portfile.get(ip)
except:
pass
thread_id = thread_queue.get()
newth = threading.Thread(target = self.verifying,
name = 'Verify-' + str(thread_id), args = (ip, port, thread_id))
newth.start()
for item in self.deleteList:
self.manager.delete(item)
self.manager.update()
def verifying(self, ip, port, thread_id):
thread_queue = self.thread_queue
head = self.usingProxy([ip, port])
thread_queue.put(thread_id)
def usingProxy(self, address):
ip = address[0]
address = ":".join(address)
proxies = {'http': address}
proxy_handler = request.ProxyHandler(proxies)
opener = request.build_opener(request.HTTPHandler,proxy_handler)
request.install_opener(opener)
opener.addheaders = self.header
try:
response = opener.open("http://www.example.com")
if response.read().hex() == self.data:
print (address)
else:
self.deleteList.append(ip)
except:
self.deleteList.append(ip)
if __name__ == "__main__":
manager = ManageAddr('IPADDR','PORT','data')
data = open('data/IP.txt','r').read().split('\n')
manager.add(data)
manager.close()
# verify = VerifyProxy(manager, 16)
# verify.start()
# Lapper = TestLag(manager, 8, 3)
# Lapper.start()
pass | [
1,
1053,
1014,
5014,
30004,
13,
5215,
931,
30004,
13,
5215,
3244,
292,
30004,
13,
5215,
528,
13841,
30004,
13,
5215,
9521,
30004,
13,
5215,
337,
30004,
13,
3166,
16250,
1053,
2322,
8977,
30004,
13,
5215,
3142,
1982,
29889,
3827,
408,
2009,
30004,
13,
5215,
3142,
1982,
30004,
13,
5215,
9909,
30004,
13,
30004,
13,
5215,
12865,
30004,
13,
30004,
13,
11514,
29889,
842,
4381,
15619,
29898,
29945,
8443,
13,
30004,
13,
1990,
6535,
4598,
29898,
3318,
1125,
30004,
13,
12,
15945,
29908,
30354,
30763,
30333,
30631,
31904,
30732,
15945,
19451,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
934,
29918,
978,
29892,
934,
29918,
3972,
1125,
30004,
13,
12,
12,
1311,
29889,
1445,
29918,
3972,
353,
934,
29918,
3972,
30004,
13,
12,
12,
1311,
29889,
1445,
29918,
978,
353,
934,
29918,
978,
30004,
13,
12,
12,
1311,
29889,
2585,
353,
528,
13841,
29889,
3150,
29898,
1445,
29918,
3972,
13578,
12975,
29974,
1445,
29918,
978,
29892,
2436,
1627,
353,
5852,
8443,
13,
12,
1753,
679,
3596,
2558,
29898,
1311,
29892,
408,
29918,
9990,
353,
5852,
1125,
30004,
13,
12,
12,
1311,
29889,
666,
29918,
1761,
353,
1583,
29889,
2585,
29889,
8149,
26471,
13,
12,
12,
361,
451,
408,
29918,
9990,
29901,
30004,
13,
12,
12,
12,
2457,
1583,
29889,
666,
29918,
1761,
30004,
13,
12,
12,
1311,
29889,
666,
29918,
9990,
353,
9521,
29889,
10620,
29898,
3317,
2311,
353,
448,
29896,
8443,
13,
12,
12,
1454,
10377,
297,
1583,
29889,
666,
29918,
1761,
29901,
30004,
13,
12,
12,
12,
1311,
29889,
666,
29918,
9990,
29889,
649,
29898,
666,
8443,
13,
12,
12,
2457,
1583,
29889,
666,
29918,
9990,
30004,
13,
12,
1753,
679,
3596,
29898,
1311,
1125,
30004,
13,
12,
12,
2457,
9657,
29898,
1311,
29889,
2585,
29889,
7076,
3101,
30004,
13,
12,
1753,
679,
29898,
1311,
29892,
1820,
1125,
30004,
13,
12,
12,
2457,
1583,
29889,
2585,
29889,
657,
29898,
1989,
29892,
2322,
353,
7700,
8443,
13,
12,
1753,
2767,
29898,
1311,
1125,
30004,
13,
12,
12,
1311,
29889,
5358,
26471,
13,
12,
12,
1311,
17255,
2344,
12035,
1311,
29889,
1445,
29918,
978,
29892,
1583,
29889,
1445,
29918,
3972,
8443,
13,
12,
1753,
788,
29898,
1311,
29892,
1820,
29892,
848,
1125,
30004,
13,
12,
12,
1311,
29889,
2585,
29961,
1989,
29962,
353,
848,
30004,
13,
12,
1753,
5217,
29898,
1311,
29892,
1820,
1125,
30004,
13,
12,
12,
6144,
1583,
29889,
2585,
29961,
1989,
29962,
30004,
13,
12,
1753,
2821,
29898,
1311,
1125,
30004,
13,
12,
12,
1454,
2944,
297,
1583,
29889,
657,
3596,
2558,
29898,
8824,
1125,
30004,
13,
12,
12,
12,
1311,
29889,
8143,
29898,
667,
8443,
13,
12,
1753,
1863,
29898,
1311,
29892,
1820,
1125,
30004,
13,
12,
12,
361,
1820,
297,
1583,
29889,
2585,
29889,
8149,
7295,
30004,
13,
12,
12,
12,
2457,
5852,
30004,
13,
12,
12,
2457,
7700,
30004,
13,
12,
1753,
3802,
29898,
1311,
1125,
30004,
13,
12,
12,
1311,
29889,
2585,
29889,
5358,
26471,
13,
30004,
13,
1990,
4321,
29931,
351,
29898,
3318,
1125,
30004,
13,
12,
15945,
29908,
30406,
30909,
30495,
30594,
31851,
31787,
31951,
30502,
5690,
30210,
232,
190,
185,
235,
194,
162,
30651,
31436,
30682,
30406,
30952,
15945,
19451,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
8455,
29892,
3244,
29918,
1949,
353,
29871,
29947,
29892,
337,
2202,
29918,
3706,
353,
29871,
29941,
1125,
30004,
13,
12,
12,
1311,
29889,
12847,
353,
8455,
30004,
13,
12,
12,
1311,
29889,
666,
29918,
9990,
353,
8455,
29889,
666,
1445,
29889,
657,
3596,
2558,
26471,
13,
12,
12,
1311,
29889,
5690,
29918,
18736,
353,
1583,
29889,
666,
29918,
9990,
29889,
29939,
2311,
26471,
13,
12,
12,
1311,
29889,
7097,
29918,
1949,
353,
3244,
29918,
1949,
30004,
13,
12,
12,
1311,
29889,
7097,
29918,
9990,
353,
9521,
29889,
10620,
29898,
3317,
2311,
353,
3244,
29918,
1949,
8443,
13,
12,
12,
1311,
29889,
11037,
353,
337,
29889,
12198,
877,
10780,
29925,
29966,
29887,
481,
14247,
29881,
28135,
1516,
1495,
30004,
13,
12,
12,
1311,
29889,
2914,
842,
353,
6571,
30004,
13,
12,
12,
1311,
29889,
276,
2202,
29918,
3706,
353,
337,
2202,
29918,
3706,
30004,
13,
12,
1753,
1369,
29898,
1311,
1125,
30004,
13,
12,
12,
666,
29918,
9990,
353,
1583,
29889,
666,
29918,
9990,
30004,
13,
12,
12,
1454,
474,
297,
3464,
29898,
1311,
29889,
7097,
29918,
1949,
1125,
30004,
13,
12,
12,
12,
1311,
29889,
7097,
29918,
9990,
29889,
649,
29898,
29875,
29974,
29896,
8443,
13,
12,
12,
8000,
313,
1333,
10377,
29918,
9990,
29889,
6310,
3101,
470,
313,
2435,
29898,
1311,
29889,
2914,
842,
29897,
2804,
1583,
29889,
5690,
29918,
18736,
1125,
30004,
13,
12,
12,
12,
2202,
29901,
30004,
13,
12,
12,
12,
12,
666,
353,
10377,
29918,
9990,
29889,
657,
29918,
3707,
1249,
26471,
13,
12,
12,
12,
19499,
29901,
30004,
13,
12,
12,
12,
12,
3364,
30004,
13,
12,
12,
12,
7097,
29918,
333,
353,
1583,
29889,
7097,
29918,
9990,
29889,
657,
26471,
13,
12,
12,
12,
1482,
386,
353,
3244,
292,
29889,
4899,
29898,
5182,
353,
1583,
29889,
29887,
20304,
29892,
1024,
353,
525,
3057,
29954,
481,
29899,
29915,
718,
851,
29898,
7097,
29918,
333,
511,
30004,
13,
12,
12,
12,
12,
5085,
353,
313,
666,
29892,
3244,
29918,
333,
876,
30004,
13,
12,
12,
12,
1482,
386,
29889,
2962,
26471,
13,
12,
12,
2158,
313,
1311,
29889,
2914,
842,
8443,
13,
12,
12,
666,
29918,
9990,
353,
1583,
29889,
12847,
29889,
666,
1445,
29889,
657,
3596,
2558,
26471,
13,
12,
1753,
330,
20304,
29898,
1311,
29892,
10377,
29892,
3244,
29918,
333,
1125,
30004,
13,
12,
12,
2267,
353,
1014,
5014,
29889,
29925,
3150,
877,
15702,
448,
29876,
29871,
29896,
1273,
29879,
29915,
1273,
10377,
29892,
25393,
353,
1014,
5014,
29889,
2227,
4162,
8443,
13,
12,
12,
2267,
29889,
10685,
26471,
13,
12,
12,
29887,
481,
353,
756,
29918,
29887,
481,
353,
1583,
29889,
12847,
29889,
666,
1445,
29889,
657,
29898,
666,
8443,
13,
12,
12,
361,
313,
5349,
29918,
29887,
481,
1405,
29871,
29900,
29897,
322,
3240,
29889,
2457,
401,
29901,
30004,
13,
12,
12,
12,
29887,
481,
353,
448,
1311,
29889,
276,
2202,
29918,
3706,
30004,
13,
12,
12,
361,
756,
29918,
29887,
481,
529,
29871,
29900,
29901,
30004,
13,
12,
12,
12,
29887,
481,
353,
756,
29918,
29887,
481,
718,
29871,
29896,
30004,
13,
12,
12,
361,
451,
3240,
29889,
2457,
401,
29901,
30004,
13,
12,
12,
12,
2914,
353,
3240,
29889,
25393,
29889,
949,
26471,
13,
12,
12,
12,
29873,
353,
1583,
29889,
11037,
29889,
4478,
29898,
710,
29898,
2914,
876,
30004,
13,
12,
12,
12,
361,
260,
29901,
30004,
13,
12,
12,
12,
12,
29887,
481,
353,
938,
29898,
29873,
29889,
2972,
580,
29961,
29900,
13018,
29906,
2314,
30004,
13,
12,
12,
1311,
29889,
2914,
842,
29961,
666,
29962,
353,
17261,
30004,
13,
12,
12,
1311,
29889,
7097,
29918,
9990,
29889,
649,
29898,
7097,
29918,
333,
8443,
13,
30004,
13,
1990,
2315,
482,
2528,
29878,
29898,
3318,
1125,
30004,
13,
12,
15945,
29908,
31624,
30687,
30990,
31370,
30210,
5690,
30651,
31436,
234,
174,
178,
30856,
30214,
232,
190,
185,
235,
194,
162,
30210,
30783,
31370,
31057,
31185,
15945,
19451,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
10377,
1445,
29918,
978,
29892,
2011,
1445,
29918,
978,
29892,
934,
29918,
3972,
353,
525,
1272,
29374,
30004,
13,
12,
12,
1311,
29889,
666,
1445,
353,
6535,
4598,
29898,
666,
1445,
29918,
978,
29892,
1445,
29918,
3972,
8443,
13,
12,
12,
1311,
29889,
637,
1445,
353,
6535,
4598,
29898,
637,
1445,
29918,
978,
29892,
1445,
29918,
3972,
8443,
13,
12,
1753,
788,
29898,
1311,
29892,
10377,
1293,
3047,
2290,
29892,
337,
2202,
29918,
3706,
353,
29871,
29941,
1125,
30004,
13,
12,
12,
1454,
2944,
297,
10377,
1293,
3047,
2290,
29901,
30004,
13,
12,
12,
12,
666,
29918,
10030,
353,
2944,
29889,
5451,
877,
29901,
1495,
30004,
13,
12,
12,
12,
666,
29892,
2011,
353,
10377,
29918,
10030,
29961,
29900,
1402,
10377,
29918,
10030,
29961,
29896,
29962,
30004,
13,
12,
12,
12,
1311,
29889,
11651,
29918,
666,
29898,
666,
29892,
337,
2202,
29918,
3706,
8443,
13,
12,
12,
12,
1311,
29889,
11651,
29918,
637,
29898,
666,
29892,
2011,
8443,
13,
12,
1753,
679,
29898,
1311,
29892,
10377,
1125,
30004,
13,
12,
12,
2457,
10377,
29974,
1311,
29889,
637,
1445,
29889,
657,
29898,
666,
8443,
13,
12,
1753,
2407,
29918,
637,
29898,
1311,
29892,
10377,
29892,
2011,
1125,
30004,
13,
12,
12,
1311,
29889,
637,
1445,
29889,
1202,
29898,
666,
29892,
2011,
8443,
13,
12,
1753,
2407,
29918,
666,
29898,
1311,
29892,
10377,
29892,
337,
2202,
29918,
3706,
1125,
30004,
13,
12,
12,
361,
451,
1583,
29889,
666,
1445,
29889,
28997,
29898,
666,
1125,
30004,
13,
12,
12,
12,
1311,
29889,
666,
1445,
29889,
1202,
29898,
666,
29892,
448,
276,
2202,
29918,
3706,
8443,
13,
12,
1753,
679,
2887,
29954,
481,
29898,
1311,
1125,
30004,
13,
12,
12,
6605,
294,
29887,
481,
353,
2322,
8977,
29898,
1761,
8443,
13,
12,
12,
1454,
413,
29892,
29894,
297,
1583,
29889,
666,
1445,
29889,
657,
3596,
2141,
7076,
7295,
30004,
13,
12,
12,
12,
6605,
294,
29887,
481,
29961,
29894,
1822,
4397,
29898,
29895,
8443,
13,
12,
12,
2202,
29901,
30004,
13,
12,
12,
12,
6605,
294,
29887,
481,
353,
12705,
29898,
6605,
294,
29887,
481,
29889,
7076,
3285,
1989,
353,
14013,
270,
29901,
29881,
29961,
29900,
2314,
30004,
13,
12,
12,
12,
666,
353,
2656,
294,
29887,
481,
29961,
29900,
3816,
29896,
3816,
29900,
29962,
30004,
13,
12,
12,
12,
29887,
481,
353,
2656,
294,
29887,
481,
29961,
29900,
3816,
29900,
29962,
30004,
13,
12,
12,
12,
637,
353,
1583,
29889,
637,
1445,
29889,
657,
29898,
666,
8443,
13,
12,
12,
19499,
29901,
30004,
13,
12,
12,
12,
2457,
6213,
30004,
13,
12,
12,
1311,
29889,
8143,
29898,
666,
8443,
13,
12,
12,
1311,
29889,
5504,
26471,
13,
12,
12,
361,
17261,
5277,
29871,
29900,
29901,
30004,
13,
12,
12,
12,
2457,
1583,
29889,
657,
2887,
29954,
481,
26471,
13,
12,
12,
2457,
5519,
666,
29892,
637,
1402,
29887,
481,
29962,
30004,
13,
12,
1753,
23011,
29898,
1311,
29892,
756,
29918,
1688,
1125,
30004,
13,
12,
12,
1454,
10377,
297,
756,
29918,
1688,
29889,
8149,
7295,
30004,
13,
12,
12,
12,
361,
451,
756,
29918,
1688,
29961,
666,
5387,
30004,
13,
12,
12,
12,
12,
1311,
29889,
666,
1445,
29889,
8143,
29898,
666,
8443,
13,
12,
12,
12,
12,
1311,
29889,
637,
1445,
29889,
8143,
29898,
666,
8443,
13,
12,
12,
1311,
29889,
5504,
26471,
13,
12,
1753,
2767,
29898,
1311,
1125,
30004,
13,
12,
12,
1311,
29889,
666,
1445,
29889,
5504,
26471,
13,
12,
12,
1311,
29889,
637,
1445,
29889,
5504,
26471,
13,
12,
1753,
5217,
29898,
1311,
29892,
1820,
1125,
30004,
13,
12,
12,
1311,
29889,
666,
1445,
29889,
8143,
29898,
1989,
8443,
13,
12,
12,
1311,
29889,
637,
1445,
29889,
8143,
29898,
1989,
8443,
13,
12,
1753,
3802,
29898,
1311,
1125,
30004,
13,
12,
12,
1311,
29889,
666,
1445,
29889,
5358,
26471,
13,
12,
12,
1311,
29889,
637,
1445,
29889,
5358,
26471,
13,
12,
1753,
2346,
29898,
1311,
29892,
7834,
29892,
1820,
353,
6213,
1125,
30004,
13,
12,
12,
361,
1820,
1275,
6213,
29901,
30004,
13,
12,
12,
12,
2457,
7834,
29889,
657,
3596,
2558,
26471,
13,
12,
12,
2457,
7834,
29889,
657,
29898,
1989,
8443,
13,
30004,
13,
1990,
1798,
1598,
14048,
29898,
3318,
1125,
30004,
13,
12,
15945,
29908,
30768,
31138,
30785,
30406,
31851,
31787,
30690,
30687,
30210,
30682,
30406,
30952,
15945,
19451,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
8455,
29892,
3244,
29918,
1949,
1125,
30004,
13,
12,
12,
1311,
29889,
12847,
353,
8455,
30004,
13,
12,
12,
1311,
29889,
7097,
29918,
1949,
353,
3244,
29918,
1949,
30004,
13,
12,
12,
1311,
29889,
666,
29918,
9990,
353,
8455,
29889,
666,
1445,
29889,
657,
3596,
2558,
26471,
13,
12,
12,
1311,
29889,
8143,
1293,
353,
5159,
30004,
13,
12,
12,
1311,
29889,
6672,
353,
518,
877,
2659,
29899,
19661,
742,
525,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
7685,
405,
29911,
29871,
29953,
29889,
29941,
29936,
399,
9806,
29953,
29946,
29936,
1605,
1693,
29914,
29955,
29889,
29900,
29936,
364,
29894,
29901,
29896,
29896,
29889,
29900,
29897,
763,
1879,
27604,
5477,
30004,
13,
12,
12,
877,
23965,
742,
525,
726,
29914,
1420,
29892,
6214,
29914,
28392,
29974,
3134,
29892,
6214,
29914,
3134,
29936,
29939,
29922,
29900,
29889,
29929,
29892,
3027,
29914,
2676,
29886,
29892,
3877,
29930,
29936,
29939,
29922,
29900,
29889,
29947,
5477,
6756,
13,
12,
12,
877,
10408,
29899,
4809,
742,
525,
1217,
29899,
8173,
5477,
6702,
5350,
742,
525,
9598,
1022,
29899,
29909,
9258,
5477,
6702,
29925,
23929,
742,
525,
1217,
29899,
8173,
5477,
6756,
13,
12,
12,
877,
23965,
29899,
21233,
742,
525,
17599,
29899,
13778,
29892,
17599,
29936,
29939,
29922,
29900,
29889,
29947,
29892,
264,
29936,
29939,
29922,
29900,
29889,
29953,
1495,
29962,
30004,
13,
12,
12,
2541,
1722,
877,
6565,
1598,
29889,
1272,
3788,
29878,
1495,
408,
934,
29901,
30004,
13,
12,
12,
12,
1311,
29889,
1272,
353,
934,
29889,
949,
26471,
13,
12,
1753,
1369,
29898,
1311,
1125,
30004,
13,
12,
12,
7097,
29918,
9990,
353,
9521,
29889,
10620,
29898,
3317,
2311,
353,
1583,
29889,
7097,
29918,
1949,
8443,
13,
12,
12,
1311,
29889,
7097,
29918,
9990,
353,
3244,
29918,
9990,
30004,
13,
12,
12,
666,
29918,
9990,
353,
1583,
29889,
666,
29918,
9990,
30004,
13,
12,
12,
1454,
474,
297,
3464,
29898,
1311,
29889,
7097,
29918,
1949,
1125,
30004,
13,
12,
12,
12,
7097,
29918,
9990,
29889,
649,
29898,
29875,
29974,
29896,
8443,
13,
12,
12,
8000,
451,
10377,
29918,
9990,
29889,
6310,
7295,
30004,
13,
12,
12,
12,
2202,
29901,
30004,
13,
12,
12,
12,
12,
666,
353,
10377,
29918,
9990,
29889,
657,
29918,
3707,
1249,
26471,
13,
12,
12,
12,
12,
637,
353,
1583,
29889,
12847,
29889,
637,
1445,
29889,
657,
29898,
666,
8443,
13,
12,
12,
12,
19499,
29901,
30004,
13,
12,
12,
12,
12,
3364,
30004,
13,
12,
12,
12,
7097,
29918,
333,
353,
3244,
29918,
9990,
29889,
657,
26471,
13,
12,
12,
12,
1482,
386,
353,
3244,
292,
29889,
4899,
29898,
5182,
353,
1583,
29889,
369,
9215,
29892,
6756,
13,
12,
12,
12,
12,
978,
353,
525,
6565,
1598,
29899,
29915,
718,
851,
29898,
7097,
29918,
333,
511,
6389,
353,
313,
666,
29892,
2011,
29892,
3244,
29918,
333,
876,
30004,
13,
12,
12,
12,
1482,
386,
29889,
2962,
26471,
13,
12,
12,
1454,
2944,
297,
1583,
29889,
8143,
1293,
29901,
30004,
13,
12,
12,
12,
1311,
29889,
12847,
29889,
8143,
29898,
667,
8443,
13,
12,
12,
1311,
29889,
12847,
29889,
5504,
26471,
13,
12,
1753,
1147,
9215,
29898,
1311,
29892,
10377,
29892,
2011,
29892,
3244,
29918,
333,
1125,
30004,
13,
12,
12,
7097,
29918,
9990,
353,
1583,
29889,
7097,
29918,
9990,
30004,
13,
12,
12,
2813,
353,
1583,
29889,
4746,
14048,
4197,
666,
29892,
2011,
2314,
30004,
13,
12,
12,
7097,
29918,
9990,
29889,
649,
29898,
7097,
29918,
333,
8443,
13,
12,
1753,
773,
14048,
29898,
1311,
29892,
3211,
1125,
30004,
13,
12,
12,
666,
353,
3211,
29961,
29900,
29962,
30004,
13,
12,
12,
7328,
353,
29242,
1642,
7122,
29898,
7328,
8443,
13,
12,
12,
771,
29916,
583,
353,
11117,
1124,
2396,
3211,
8117,
13,
12,
12,
14701,
29918,
13789,
353,
2009,
29889,
14048,
4598,
29898,
771,
29916,
583,
8443,
13,
12,
12,
459,
759,
353,
2009,
29889,
4282,
29918,
459,
759,
29898,
3827,
29889,
10493,
4598,
29892,
14701,
29918,
13789,
8443,
13,
12,
12,
3827,
29889,
6252,
29918,
459,
759,
29898,
459,
759,
8443,
13,
12,
12,
459,
759,
29889,
1202,
13662,
353,
1583,
29889,
6672,
30004,
13,
12,
12,
2202,
29901,
30004,
13,
12,
12,
12,
5327,
353,
1015,
759,
29889,
3150,
703,
1124,
597,
1636,
29889,
4773,
29889,
510,
1159,
30004,
13,
12,
12,
12,
361,
2933,
29889,
949,
2141,
20970,
580,
1275,
1583,
29889,
1272,
29901,
30004,
13,
12,
12,
12,
12,
2158,
313,
7328,
8443,
13,
12,
12,
12,
2870,
29901,
30004,
13,
12,
12,
12,
12,
1311,
29889,
8143,
1293,
29889,
4397,
29898,
666,
8443,
13,
12,
12,
19499,
29901,
30004,
13,
12,
12,
12,
1311,
29889,
8143,
1293,
29889,
4397,
29898,
666,
8443,
13,
30004,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
30004,
13,
12,
12847,
353,
2315,
482,
2528,
29878,
877,
5690,
3035,
8353,
3788,
15082,
3788,
1272,
1495,
30004,
13,
12,
1272,
353,
1722,
877,
1272,
29914,
5690,
29889,
3945,
3788,
29878,
2824,
949,
2141,
5451,
28909,
29876,
1495,
30004,
13,
12,
12847,
29889,
1202,
29898,
1272,
8443,
13,
12,
12847,
29889,
5358,
26471,
13,
12,
29937,
11539,
353,
1798,
1598,
14048,
29898,
12847,
29892,
29871,
29896,
29953,
8443,
13,
12,
29937,
11539,
29889,
2962,
26471,
13,
12,
29937,
365,
23239,
353,
4321,
29931,
351,
29898,
12847,
29892,
29871,
29947,
29892,
29871,
29941,
8443,
13,
12,
29937,
365,
23239,
29889,
2962,
26471,
13,
12,
3364,
2
] |
applications/popart/bert/utils/__init__.py | Alwaysproblem/examples-1 | 0 | 75774 | <filename>applications/popart/bert/utils/__init__.py
# Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import sys
import json
import argparse
import datetime
from typing import List, Optional
import numpy as np
import onnx
from logging import getLogger
from bert_model import BertConfig
from .weight_loading import load_initializers_from_onnx
logger = getLogger(__name__)
def save_model_statistics(model_path, writer, i=0):
initializers = load_initializers_from_onnx(model_path)
for name, np_weight in initializers.items():
name = name.replace(":", "_")
writer.add_histogram(name, np_weight, i)
writer.add_scalar(f"L2/{name}", np.linalg.norm(np_weight.astype(np.float32)), i)
def str_to_bool(value):
if isinstance(value, bool) or value is None:
return value
if value.lower() in {'false', 'f', '0', 'no', 'n'}:
return False
elif value.lower() in {'true', 't', '1', 'yes', 'y'}:
return True
raise argparse.ArgumentTypeError(f'{value} is not a valid boolean value')
def parser_from_NamedTuple(parser, ntuple, args={}):
for key in ntuple._fields:
string = "--" + key.replace("_", "-")
t = ntuple._field_types[key]
default = ntuple._field_defaults.get(key, None)
kwargs = dict(
string=string,
type=t,
default=default,
dest=key
)
if t is bool:
# Make bool a flag
kwargs["nargs"] = "?"
kwargs["const"] = not kwargs["default"]
kwargs["type"] = str_to_bool
else:
for _t in (str, int, float):
if t == List[_t]:
kwargs["type"] = _t
kwargs["nargs"] = '+'
break
if t == Optional[_t]:
kwargs["type"] = _t
break
args_or_help = args.get(key, None)
if isinstance(args_or_help, dict):
kwargs.update(**args_or_help)
else:
kwargs["help"] = args_or_help
string = kwargs["string"]
del kwargs["string"]
parser.add_argument(string, **kwargs)
class ScheduleArgumentParser(argparse.Action):
def __init__(self, option_strings, dest, nargs=None, **kwargs):
super(ScheduleArgumentParser, self).__init__(
option_strings, dest, nargs=nargs, **kwargs)
self.default_input = kwargs['default']
def __call__(self, parser, namespace, values, option_string=None):
schedule = {}
if len(values) == 0:
schedule = self.default_input
for kv in values:
training_proportion, lr = kv.split(":")
try:
schedule[int(training_proportion)] = float(lr)
except ValueError as ex:
logger.warning("Invalid Learning Rate Schedule provided. "
"It should be a set of int:float pairs.")
raise ex
setattr(namespace, self.dest, schedule)
class ValidationConfig(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
value = None
try:
value = json.loads(values)
except json.decoder.JSONDecodeError as e:
pass
if os.path.isfile(values):
with open(values, 'r') as f:
value = json.load(f)
if value is not None:
setattr(namespace, self.dest, value)
def parse_bert_args(args_string=None):
pparser = argparse.ArgumentParser("Config Parser", add_help=False)
pparser.add_argument("--config", type=str)
pargs, remaining_argv = pparser.parse_known_args(args_string)
parser = argparse.ArgumentParser(
"PopART BERT", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# TODO: Organise Argument Groups.
group = parser.add_argument_group("Model Config")
parser_from_NamedTuple(group, BertConfig, args={
"batch_size": "Set the micro batch-size",
"host_embedding": dict(
choices=["NONE", "WORD", "ALL", "MERGE"],
help="Enable embedding lookup on CPU. Values: "
"NONE = use IPU; "
"WORD = use CPU for word embedding and IPU for position; "
"ALL = use CPU; "
"MERGE = use CPU and add word and position embedding together"
),
"sequence_length": "Set the max sequence length",
"mask_tokens": "Set the max number of masked tokens in a sequence (PRETRAINING only)",
"vocab_length": "Set the size of the vocabulary",
"hidden_size": "Set the size of the hidden state of the transformer layers",
"ff_size__": dict(
string="--ff-size",
help="Set the size of the intermediate state of the feed forward layers, by default 4x the hidden_size"
),
"attention_heads": "Set the number of heads in self attention",
"inference": "Create a model for inference. Otherwise a trainable model is created and trained.",
"num_layers": "Set the number of transformer layers",
"layers_per_ipu": "Set the number of layers on each IPU. "
"If specified as more than one value, the sum of the values must equal num_layers.",
"available_memory_proportion": "This option specifies the proportion of total tile memory the Encoder MatMul's can use. "
"Can be specified as either a single value for all IPUs or a value for each Encoder IPU.",
"recompute_checkpoint_every_layer": "This controls how recomputation is handled in pipelining. "
"If True the output of each layer will be stashed keeping the max liveness "
"of activations to be at most one layer. "
"However, the stash size scales with the number of pipeline stages so this may not always be beneficial. "
"The added stash + code could be greater than the reduction in temporary memory.",
"no_dropout": "Don't use dropout",
"no_attn_dropout": "Don't use dropout on attention scores",
"dropout_prob": "Set the dropout probability",
"layer_norm_eps": "Set the layer norm epsilon value",
"popart_dtype": dict(
string="--dtype",
choices=["FLOAT16", "FLOAT"],
help="Set the data type used"
),
"task": dict(
choices=["PRETRAINING", "SQUAD", "MRPC"],
help="Set the task. Pretraining (Masked-LM & Next Sentence Prediction), SQuAD, MRPC"
),
"split_linear_layers": "Memory Optimisation to serialise MatMul Operations.",
"replicated_weight_sharding": "Shard weight tensors over the replicas, only supported in phased_execution mode.",
"no_mask": "Don't apply padding masks to the attention scores",
"use_default_available_memory_proportion": "Use the poplibs default value for availableMemoryProportion option on the encoder matmuls.",
"update_embedding_dict": "Include the sparse update to the word Embedding_Dict.",
"no_cls_layer": "Don't include the CLS layer in pretraining. This layer comes after the encoders but before the projection for the MLM loss.",
"projection_bias": "Include bias to the projection layer.",
"embedding_serialization_vocab_steps": "Factor by which embedding layer is serialized, only supported in phased_execution mode.",
"num_attention_splits": "Factor by which attention layer is serialized, only supported in phased_execution mode.",
"num_ffwd_splits": "Factor by which feedforward layer is serialized, only supported in phased_execution mode.",
"split_transformer": "Place attention and feedforward layers in separate phased_execution scope.",
"batch_serialize": "Factor by which a micro-batch is serialized, only supported in phased_execution mode.",
"num_io_tiles": "The number of tiles on each IPU dedicated to doing collective communication ops with the replicated weights. Only supported in phased_execution mode."
})
group = parser.add_argument_group("SQuAD Config")
group.add_argument("--vocab-file", type=str,
help="Path to the vocab file")
group.add_argument("--do-lower-case", type=str_to_bool, nargs="?", const=True, default=False,
help="Use this when using a uncased vocab")
group.add_argument("--squad-results-dir", type=str, default="squad_results",
help="Path to directory to write results (Note: will be created if path does not exist)")
group.add_argument("--squad-evaluate-script", type=str,
help="Path to SQuAD evaulate-v1.1.py script")
group.add_argument("--squad-lr-scale", type=float, default=1.0,
help="Scale the learning rate of the SQuAD layers.")
group = parser.add_argument_group("Training Config")
group.add_argument("--gradient-accumulation-factor", type=int, default=1,
help="Set how many gradients to accumulate before updating the weights. \
Note: This affects the calculation of effective batch size")
group.add_argument("--replication-factor", type=int, default=1,
help="Replicates the graph by this factor across IPUs to achieve data parallel execution. (Note: This changes the effective batch size)")
group.add_argument("--optimizer", type=str, choices=['SGD', 'ADAM', 'ADAM_NO_BIAS', 'LAMB', 'LAMB_NO_BIAS'], default="SGD",
help="Set the optimizer type")
group.add_argument("--learning-rate", type=float, default=0.0008,
help="Set the learning rate")
# SGD+M
group.add_argument("--momentum", type=float, default=0.984375,
help="Set the optimizer momentum value")
group.add_argument("--dampening", type=float,
help="Set the optimizer dampening value. (Note: this will be set to momentum value by default)")
group.add_argument("--velocity-scaling", type=float, default=1.0,
help="Set the velocity scaling. This helps prevent overflow when accumulating gradients.")
# Adam
group.add_argument("--beta1", type=float, default=0.9,
help="Set the Adam/Lamb beta1 value")
group.add_argument("--beta2", type=float, default=0.999,
help="Set the Adam/Lamb beta2 value")
group.add_argument("--max-weight-norm", type=float, default=None,
help="Set the max value for R1 (weight norm) in the Lamb optimizer. Default is no clipping")
group.add_argument("--loss-scaling", type=float, default=4.0,
help="Set the loss scaling. This helps prevent underflow during backpropagation.")
group.add_argument("--weight-decay", type=float, default=0, help="Set the weight decay, not used for bias and norms parameters")
group.add_argument("--epochs", type=int, default=35,
help="Number of epochs to train for")
group.add_argument("--epochs-inference", type=int, default=1,
help="Number of epochs to run inference for")
group.add_argument("--stochastic-rounding", type=str_to_bool, nargs="?", const=True, default=False,
help="Turn on Stochastic Rounding")
group.add_argument("--gradient-reduction-type", type=str, choices=["Sum", "Mean"], default="Sum",
help="Set how gradients are reduced over the global batch size.")
group = parser.add_argument_group("Continuous Pipelining Config")
group.add_argument("--pipeline-lr-scaling", type=str_to_bool, nargs="?", const=True, default=False,
help="Enable learning rate scaling per pipeline stage")
group.add_argument("--pipeline-lr-scaling-offset", type=float, default=0.25,
help="Set the value for learning rate scaling on the first pipeline stage. Learning rates will be scaled "
"linearly from this offset (default: 0.25) to 1 as pipeline stage increases to account for increased errors "
"at lower-level stages when pipelining. (Note: for pipelines with few stages, this should be increased)")
group.add_argument("--pipeline-momentum-scaling", type=str_to_bool, nargs="?", const=True, default=False,
help="Enable momentum and dampening scaling per pipeline stage")
group.add_argument("--pipeline-momentum-scaling-offset", type=float, default=0.1,
help="Set the value momentum scaling on the last pipeline stage. Momentums will be scaled "
"linearly from this offset (default: 0.1) to 1 as pipeline stage decrease to account for increased errors "
"at lower-level stages when pipelining. (Note: for pipelines with few stages, this should be increased)")
group.add_argument("--pipeline-dampening-scaling-offset", type=float,
help="Set the value for dampening scaling on the last pipeline stage. Dampenings will be scaled "
"linearly from this offset (default: same as momentum) to 1 as pipeline stage decrease to account for increased errors "
"at lower-level stages when pipelining. (Note: this will be set to the momentum offset by default)")
_group = parser.add_argument_group("Hyperparameter Schedule Config")
group = _group.add_mutually_exclusive_group()
group.add_argument("--lr-schedule-by-epoch", action=ScheduleArgumentParser, nargs="*", default=None,
help="A schedule for learning rate warmup and decay, provided as space-separated "
"<int>:<float> pairs. The first item is the epoch at which to update and the second is "
"the learning rate at that epoch. \n"
"E.g.: --lr-schedule-by-epoch 0:0.00001 1:0.0001 3:0.0008 5:0.00004 10:0.00002")
group.add_argument("--lr-schedule-by-step", action=ScheduleArgumentParser, nargs="*", default=None,
help="A schedule for learning rate warmup and decay, provided as space-separated "
"<int>:<float> pairs. The first item is the step at which to update and the second is "
"the learning rate at that step. \n"
"E.g.: --lr-schedule-by-step 0:0.00001 2500:0.0001 10000:0.0008 50000:0.00004 100000:0.00002")
group = _group.add_mutually_exclusive_group()
group.add_argument("--ls-schedule-by-epoch", action=ScheduleArgumentParser, nargs="*", default=None,
help="A schedule for loss scaling, provided as space-separated <int>:<float> pairs. "
"The first item is the spoch at which to update and the second is "
"the loss scaling at that epoch. \n"
"E.g.: --ls-schedule-by-step 0:0.00001 2500:0.0001 10000:0.0008 50000:0.00004 100000:0.00002")
group.add_argument("--ls-schedule-by-step", action=ScheduleArgumentParser, nargs="*", default=None,
help="A schedule for loss scaling, provided as space-separated <int>:<float> pairs. "
"The first item is the step at which to update and the second is "
"the loss scaling at that step. \n"
"E.g.: --ls-schedule-by-step 0:0.00001 2500:0.0001 10000:0.0008 50000:0.00004 100000:0.00002")
group = parser.add_argument_group("Initialisation Config", "Flags for initialising the weights")
group = group.add_mutually_exclusive_group()
group.add_argument("--tf-checkpoint", type=str,
help="Path to Tensorflow Checkpoint to initialise the model.")
group.add_argument("--onnx-checkpoint", type=str,
help="Path to .onnx file created by this application to initialise the model.")
group = parser.add_argument_group("Data Config")
group.add_argument("--input-files", type=str, nargs="*",
help="Files to load data from. "
"For Pretraining: Binary files created by bert_data/create_pretraining_data.py. "
"For SQuAD: Path to train-v1.1.json")
group.add_argument("--shuffle", type=str_to_bool, nargs="?", const=True, default=False,
help="Shuffle Dataset")
group.add_argument("--overwrite-cache", type=str_to_bool, nargs="?", const=True, default=False,
help="Regenerates the SQuAD dataset instead of loading the cache if available")
group.add_argument("--no-drop-remainder", type=str_to_bool, nargs="?", const=True, default=False,
help="Adjust the batches_per_step to perfectly divide the dataset so no data is missed. Only available for SQuAD.")
group.add_argument("--generated-data", type=str_to_bool, nargs="?", const=True, default=False,
help="Generate a random dataset on the host machine. Creates enough data for one step per epoch. "
"Increase --epochs for multiple performance measurements.")
group.add_argument("--synthetic-data", type=str_to_bool, nargs="?", const=True, default=False,
help="Generate a synthetic dataset on the IPU device. Creates enough data for one step per epoch. "
"Note that using this option will remove all Host I/O from the model. "
"Increase --epochs for multiple perfomance measurements.")
group.add_argument("--synthetic-data-initializer", type=str, choices=['random_normal', 'zeros'], default="random_normal",
help="Specify to the synthetic data initializer with either 'random_normal' or 'zeros'. ")
group.add_argument("--duplication-factor", type=int, default=1,
help="Set the number of times the dataset has been duplicated. This reduces the samples per epoch to"
" (# of samples in input-files)/duplication-factor")
group.add_argument("--epochs-to-cache", type=int, default=0,
help="Number of epochs of data to load into memory during PRETRAINING. Default is to load input files as needed.")
group = parser.add_argument_group("Execution Mode")
emode = group.add_mutually_exclusive_group()
emode.add_argument("--virtual-graph", type=str_to_bool, nargs="?", const=True, default=None,
help="Build and execute the graph with only VirtualGraph annotations.")
emode.add_argument("--pipeline", type=str_to_bool, nargs="?", const=True, default=None,
help="Build and execute the graph with Pipeline annotations.")
emode.add_argument("--phased-execution", type=str_to_bool, nargs="?", const=True, default=None,
help="Build and execute the graph with ExecutionPhase annotations.")
phased_emode = group.add_mutually_exclusive_group()
phased_emode.add_argument("--single-device", action='store_const', const='SINGLE', dest='phased_execution_type',
help="Execute on a single device per replica. Only used in phased_execution mode.")
phased_emode.add_argument("--dual-device", action='store_const', const='DUAL', dest='phased_execution_type',
help="Execute using two devices per replica. Only used in phased_execution mode.")
parser.set_defaults(phased_execution_type='SINGLE')
group = parser.add_argument_group("Execution Config")
group.add_argument("--batches-per-step", type=int, default=250,
help="Set the number of batches (weight updates) to execute before returning to the Host")
group.add_argument("--floating-point-exceptions", type=str_to_bool, nargs="?", const=True, default=False,
help="Turn on floating point exceptions")
group.add_argument("--seed", type=int, default=1984,
help="Set the host and device seed")
group.add_argument("--profile", type=str_to_bool, nargs="?", const=True, default=False,
help="Generate a profile directory to be analysed by popvision.")
group.add_argument("--profile-dir", type=str,
help="Path to profile directory.")
group.add_argument("--profile-instrument", type=str_to_bool, nargs="?", const=True, default=True,
help="Include cycle count instrumentation when profiling.")
group.add_argument("--no-outlining", type=str_to_bool, nargs="?", const=True, default=False,
help="Disable PopART outlining optimisations. This will increase memory for a small throughput improvement.")
group.add_argument("--engine-cache", type=lambda arg: None if not arg else arg,
help="Path to store a cache of the engine compilation.")
group.add_argument("--variable-weights-inference", type=str_to_bool, nargs="?", const=True, default=False,
help="Force the weights to be variables during inference. Required for loading weights from a checkpoint when using a cached engine.")
group.add_argument("--continue-training-from-epoch", type=int, default=0,
help="Training epoch at which to start hyperparameter schedules when loading from a checkpoint")
group.add_argument("--no-training", type=str_to_bool, nargs="?", const=True, default=False,
help="Don't run the training loop")
group.add_argument("--no-validation", type=str_to_bool, nargs="?", const=True, default=False,
help="Don't validate training. This includes validation at the end of training")
group.add_argument("--validation-config", action=ValidationConfig,
help="Path to preset config for validation. If set by the `--config` file, it definied as a dict instead")
group.add_argument("--low-latency-inference", type=str_to_bool, nargs="?", const=True, default=False,
help="Use input/output callbacks to minimise inference latency for tasks that support this mode.")
group.add_argument("--minimum-latency-inference", type=str_to_bool, nargs="?", const=True, default=False,
help="Disable IO pre-fetching to minimize inference latency, at the cost of reduced throughput. Also sets low-latency-inference=true. ")
group.add_argument("--inference-lm-perplexity", type=str_to_bool, nargs="?", const=True, default=False,
help="Calculate the LM perplexity metric as part of inference (e^loss).")
group.add_argument("--realtime-scheduler", action="store_true",
help="Set a realtime scheduler for this process. Only activated during inference. \
(IMPORTANT: Requires non-interactive sudo, otherwise has no effect)")
group.add_argument("--max-copy-merge-size", type=int, default=-1,
help="Set the value for Poplar engine option 'opt.maxCopyMergeSize'. Set to -1 to use Poplar's default.")
group.add_argument("--disable-fully-connected-pass", type=str_to_bool, nargs="?", const=True, default=False,
help="Adding fully connected pass to some matmuls causes large transposes before operations during training. "
"Note: This will improve throughput at the cost of memory.")
group.add_argument("--group-host-syncs", type=str_to_bool, nargs="?", const=True, default=False,
help="Groups the host-device synchronisations more efficiently, higher throughput can be reached at the expense of sum liveness")
group.add_argument("--optimizer-state-offchip", type=str_to_bool, nargs="?", const=True, default=False,
help="Keep the optimizer state off chip. Only streaming it on when needed for the weight update.")
group.add_argument("--enable-half-partials", type=str_to_bool, nargs="?", const=True, default=False,
help="Enable half partials for matmuls and convolutions globally.")
group.add_argument('--internal-exchange-optimisation-target', type=str, default=None,
choices=["balanced", "cycles", "memory"],
help="The optimisation approach for internal exchanges.")
group.add_argument("--activations-on-chip", type=str_to_bool, nargs="?", const=True, default=False,
help="Leave activations stashed on chip, i.e don't move the activations to streaming memory.")
group = parser.add_argument_group("Logging Config")
group.add_argument("--report-hw-cycle-count", action="store_true",
help='Report the number of cycles each "session.run" takes.')
group.add_argument("--log-dir", type=str, default="logs",
help="Path to save Tensorboard logs")
group.add_argument("--steps-per-log", type=int, default=1,
help="Number of session.run to execute before logging training metrics")
group.add_argument("--aggregate-metrics-over-steps", type=int,
help="Number of steps to aggregate metrics over. Default is the number of steps per epoch")
group.add_argument("--epochs-per-save", type=int, default=-1,
help="Number of epochs between each save of the model. Also saves at the end of training")
group.add_argument("--steps-per-save", type=int, default=-1,
help="Number of steps between each save of the model. Also saves at the end of training")
group.add_argument("--no-model-save", type=str_to_bool, nargs="?", const=True, default=False,
help="Don't save the model. Useful for testing.")
group.add_argument("--checkpoint-dir", type=str, default="ckpts",
help="Path to directory to save model checkpoints.")
group.add_argument("--wandb", type=str_to_bool, nargs="?", const=True, default=False,
help="Enable logging to Weights and Biases.")
group.add_argument("--log-level", type=str, default='INFO',
choices=['NOTSET', 'INFO', 'DEBUG', 'WARNING', 'ERROR', 'CRITICAL'],
help="Set the logging level")
group = parser.add_argument_group("Device Config")
group.add_argument("--device-id", type=int, default=None,
help="Select a specific IPU device.")
group.add_argument("--device-connection-type", type=str, default="always",
choices=["always", "ondemand", "offline"],
help="Set the popart.DeviceConnectionType.")
group.add_argument("--device-version", type=str, default=None,
help="Set the IPU version (for offline compilation).")
group.add_argument("--device-tiles", type=int, default=None,
help="Set the number of tiles (for offline compilation).")
group.add_argument("--device-ondemand-timeout", type=int, default=int(1e4),
help="Set the seconds to wait for an ondemand device to become before available before exiting.")
group.add_argument("--use-ipu-model", type=str_to_bool, nargs="?", const=True, default=False,
help="Target the IPU Model.")
group = parser.add_argument_group("Distribution Config")
group.add_argument("--mpi-distributed", type=str_to_bool, nargs="?", const=True, default=False,
help="Enable distributed training with MPI backend. Distributed training with MPI is currently in preview."
"Full support for distributed training will be coming in a future release.")
group.add_argument("--mpi-rank", type=int, default=0, help="Input the MPI rank of this process. This value will be overwritten by the rank determined by the MPI controller")
group.add_argument("--mpi-size", type=int, default=1, help="Input the MPI size. This value will be overwritten by the size determined by the MPI controller")
# This is here only for the help message
group.add_argument("--config", type=str,
help="Path to preset config")
defaults = dict(execution_mode="DEFAULT")
if pargs.config is not None:
with open(pargs.config, "r") as f:
preset = json.load(f)
clean_exclusive_presets(parser, preset, remaining_argv)
defaults.update(**preset)
# Check the default args are valid
known_args = set(vars(parser.parse_args("")))
unknown_defaults = set(defaults) - known_args
if unknown_defaults:
raise ValueError(f"Unknown arg(s) in config file: {unknown_defaults}")
parser.set_defaults(**defaults)
args = parser.parse_args(remaining_argv)
set_execution_mode(args)
set_mpi_args(args)
# Invalidate incompatible options
if args.no_drop_remainder and args.task != "SQUAD":
raise RuntimeError(f"--no-drop-remainder is only compatible with SQUAD and not with {args.task}, aborting")
if args.batch_serialize > args.batch_size:
raise RuntimeError("--batch-serialize cannot be > --batch_size, aborting")
if args.split_linear_layers and args.batch_serialize > 1:
raise RuntimeError("--split-linear-layers is incompatible with --batch-serialize > 1, aborting")
if args.synthetic_data and args.generated_data:
raise RuntimeError("choose either --synthetic-data or --generated-data, not both. Aborting")
# set low-latency-inference if minimum-latency-inference set
if args.minimum_latency_inference:
args.low_latency_inference = True
# Append datetime string to checkpoints path and create the subdirectory
args.checkpoint_dir = os.path.join(args.checkpoint_dir,
datetime.datetime.now().strftime("%y-%m-%d-%H-%M-%S"))
os.makedirs(args.checkpoint_dir, exist_ok=True)
save_args(args)
return args
def set_execution_mode(args):
if args.pipeline:
args.execution_mode = "PIPELINE"
elif args.phased_execution:
args.execution_mode = "PHASED"
elif args.virtual_graph or \
args.execution_mode == "PIPELINE" and args.pipeline is False or \
args.execution_mode == "PHASED" and args.phased_execution is False:
args.execution_mode = "DEFAULT"
return args
def clean_exclusive_presets(parser, preset, remaining_argv):
"""Modifies the presets dictionary in-place to remove any defaults that would violate
a mutually exclusive constraint."""
def mutually_exclusive_action_on_cmd(group):
for action in group._group_actions:
if any([opt in remaining_argv for opt in action.option_strings]):
return action.dest
return None
def remove_mutually_exclusive_clashes(group, presets, cmd_arg):
for action in group._group_actions:
if action.dest != cmd_arg and action.dest in presets:
del presets[action.dest]
for group in parser._mutually_exclusive_groups:
cmd_arg = mutually_exclusive_action_on_cmd(group)
if cmd_arg is not None:
remove_mutually_exclusive_clashes(group, preset, cmd_arg)
def save_args(args):
os.makedirs(args.checkpoint_dir, exist_ok=True)
config_path = os.path.join(args.checkpoint_dir, "config.json")
with open(config_path, "w") as f:
json.dump(vars(args), f, indent=2)
def get_validation_args(args):
validation_kwargs = dict(
inference=True,
tf_checkpoint=None,
gradient_accumulation_factor=1
)
if not args.no_training:
validation_kwargs["onnx_checkpoint"] = os.path.join(args.checkpoint_dir, "model.onnx")
if args.engine_cache:
validation_kwargs["engine_cache"] = args.engine_cache + "val"
if args.validation_config is not None:
validation_kwargs.update(**args.validation_config)
args = vars(args)
args.update(**validation_kwargs)
return argparse.Namespace(**args)
def set_mpi_args(args):
if not args.mpi_distributed:
return
logger.warning("Distributed training with MPI is currently in preview."
"Full support for distributed training will be coming in a future release.")
from mpi4py import MPI
comm = MPI.COMM_WORLD
mpi_size = comm.Get_size()
mpi_rank = comm.Get_rank()
if args.mpi_rank != mpi_rank and args.mpi_rank != 0:
logger.warning(f"Overwriting the MPI rank provided {args.mpi_rank} to {mpi_rank}")
args.mpi_rank = mpi_rank
if args.mpi_size != mpi_size and args.mpi_size > 1:
logger.warning(f"Overwriting the MPI size provided {args.mpi_size} to {mpi_size}")
args.mpi_size = mpi_size
is_distributed = mpi_size > 1
if is_distributed:
if args.inference:
raise RuntimeError("Distributed execution only supported for training")
if args.task != "SQUAD":
raise RuntimeError("Distributed training only supported with SQUAD")
if is_distributed:
args.checkpoint_dir = args.checkpoint_dir + "_rank_" + str(args.mpi_rank)
| [
1,
529,
9507,
29958,
932,
5795,
29914,
7323,
442,
29914,
2151,
29914,
13239,
29914,
1649,
2344,
26914,
2272,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29929,
12367,
3221,
19806,
29889,
2178,
10462,
21676,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
268,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
29937,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
27028,
1090,
278,
19245,
29889,
13,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
4390,
13,
5215,
1852,
5510,
13,
5215,
12865,
13,
3166,
19229,
1053,
2391,
29892,
28379,
13,
5215,
12655,
408,
7442,
13,
5215,
373,
23818,
13,
3166,
12183,
1053,
679,
16363,
13,
3166,
289,
814,
29918,
4299,
1053,
16662,
3991,
13,
13,
3166,
869,
7915,
29918,
13234,
1053,
2254,
29918,
11228,
19427,
29918,
3166,
29918,
3409,
29916,
13,
13,
21707,
353,
679,
16363,
22168,
978,
1649,
29897,
13,
13,
13,
1753,
4078,
29918,
4299,
29918,
6112,
6765,
29898,
4299,
29918,
2084,
29892,
9227,
29892,
474,
29922,
29900,
1125,
13,
1678,
2847,
19427,
353,
2254,
29918,
11228,
19427,
29918,
3166,
29918,
3409,
29916,
29898,
4299,
29918,
2084,
29897,
13,
1678,
363,
1024,
29892,
7442,
29918,
7915,
297,
2847,
19427,
29889,
7076,
7295,
13,
4706,
1024,
353,
1024,
29889,
6506,
703,
29901,
613,
11119,
1159,
13,
4706,
9227,
29889,
1202,
29918,
29882,
391,
13342,
29898,
978,
29892,
7442,
29918,
7915,
29892,
474,
29897,
13,
4706,
9227,
29889,
1202,
29918,
19529,
279,
29898,
29888,
29908,
29931,
29906,
19248,
978,
17671,
7442,
29889,
29880,
979,
29887,
29889,
12324,
29898,
9302,
29918,
7915,
29889,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
8243,
474,
29897,
13,
13,
13,
1753,
851,
29918,
517,
29918,
11227,
29898,
1767,
1125,
13,
1678,
565,
338,
8758,
29898,
1767,
29892,
6120,
29897,
470,
995,
338,
6213,
29901,
13,
4706,
736,
995,
13,
1678,
565,
995,
29889,
13609,
580,
297,
11117,
4541,
742,
525,
29888,
742,
525,
29900,
742,
525,
1217,
742,
525,
29876,
29915,
6177,
13,
4706,
736,
7700,
13,
1678,
25342,
995,
29889,
13609,
580,
297,
11117,
3009,
742,
525,
29873,
742,
525,
29896,
742,
525,
3582,
742,
525,
29891,
29915,
6177,
13,
4706,
736,
5852,
13,
1678,
12020,
1852,
5510,
29889,
15730,
1542,
2392,
29898,
29888,
29915,
29912,
1767,
29913,
338,
451,
263,
2854,
7223,
995,
1495,
13,
13,
13,
1753,
13812,
29918,
3166,
29918,
22175,
23215,
552,
29898,
16680,
29892,
302,
23583,
29892,
6389,
3790,
29913,
1125,
13,
1678,
363,
1820,
297,
302,
23583,
3032,
9621,
29901,
13,
4706,
1347,
353,
376,
13869,
718,
1820,
29889,
6506,
703,
29918,
613,
11663,
1159,
13,
4706,
260,
353,
302,
23583,
3032,
2671,
29918,
8768,
29961,
1989,
29962,
13,
4706,
2322,
353,
302,
23583,
3032,
2671,
29918,
4381,
29879,
29889,
657,
29898,
1989,
29892,
6213,
29897,
13,
4706,
9049,
5085,
353,
9657,
29898,
13,
9651,
1347,
29922,
1807,
29892,
13,
9651,
1134,
29922,
29873,
29892,
13,
9651,
2322,
29922,
4381,
29892,
13,
9651,
2731,
29922,
1989,
13,
4706,
1723,
13,
4706,
565,
260,
338,
6120,
29901,
13,
9651,
396,
8561,
6120,
263,
7353,
13,
9651,
9049,
5085,
3366,
29876,
5085,
3108,
353,
376,
3026,
13,
9651,
9049,
5085,
3366,
3075,
3108,
353,
451,
9049,
5085,
3366,
4381,
3108,
13,
9651,
9049,
5085,
3366,
1853,
3108,
353,
851,
29918,
517,
29918,
11227,
13,
4706,
1683,
29901,
13,
9651,
363,
903,
29873,
297,
313,
710,
29892,
938,
29892,
5785,
1125,
13,
18884,
565,
260,
1275,
2391,
28513,
29873,
5387,
13,
462,
1678,
9049,
5085,
3366,
1853,
3108,
353,
903,
29873,
13,
462,
1678,
9049,
5085,
3366,
29876,
5085,
3108,
353,
525,
23097,
13,
462,
1678,
2867,
13,
18884,
565,
260,
1275,
28379,
28513,
29873,
5387,
13,
462,
1678,
9049,
5085,
3366,
1853,
3108,
353,
903,
29873,
13,
462,
1678,
2867,
13,
13,
4706,
6389,
29918,
272,
29918,
8477,
353,
6389,
29889,
657,
29898,
1989,
29892,
6213,
29897,
13,
4706,
565,
338,
8758,
29898,
5085,
29918,
272,
29918,
8477,
29892,
9657,
1125,
13,
9651,
9049,
5085,
29889,
5504,
29898,
1068,
5085,
29918,
272,
29918,
8477,
29897,
13,
4706,
1683,
29901,
13,
9651,
9049,
5085,
3366,
8477,
3108,
353,
6389,
29918,
272,
29918,
8477,
13,
4706,
1347,
353,
9049,
5085,
3366,
1807,
3108,
13,
4706,
628,
9049,
5085,
3366,
1807,
3108,
13,
4706,
13812,
29889,
1202,
29918,
23516,
29898,
1807,
29892,
3579,
19290,
29897,
13,
13,
13,
1990,
1102,
11272,
15730,
11726,
29898,
1191,
5510,
29889,
4276,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2984,
29918,
19651,
29892,
2731,
29892,
302,
5085,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
2428,
29898,
4504,
11272,
15730,
11726,
29892,
1583,
467,
1649,
2344,
12035,
13,
9651,
2984,
29918,
19651,
29892,
2731,
29892,
302,
5085,
29922,
29876,
5085,
29892,
3579,
19290,
29897,
13,
4706,
1583,
29889,
4381,
29918,
2080,
353,
9049,
5085,
1839,
4381,
2033,
13,
13,
1678,
822,
4770,
4804,
12035,
1311,
29892,
13812,
29892,
7397,
29892,
1819,
29892,
2984,
29918,
1807,
29922,
8516,
1125,
13,
4706,
20410,
353,
6571,
13,
4706,
565,
7431,
29898,
5975,
29897,
1275,
29871,
29900,
29901,
13,
9651,
20410,
353,
1583,
29889,
4381,
29918,
2080,
13,
13,
4706,
363,
10908,
297,
1819,
29901,
13,
9651,
6694,
29918,
771,
637,
291,
29892,
301,
29878,
353,
10908,
29889,
5451,
703,
29901,
1159,
13,
9651,
1018,
29901,
13,
18884,
20410,
29961,
524,
29898,
26495,
29918,
771,
637,
291,
4638,
353,
5785,
29898,
29212,
29897,
13,
9651,
5174,
7865,
2392,
408,
429,
29901,
13,
18884,
17927,
29889,
27392,
703,
13919,
29257,
390,
403,
1102,
11272,
4944,
29889,
376,
13,
462,
1669,
376,
3112,
881,
367,
263,
731,
310,
938,
29901,
7411,
11000,
23157,
13,
18884,
12020,
429,
13,
13,
4706,
731,
5552,
29898,
22377,
29892,
1583,
29889,
7854,
29892,
20410,
29897,
13,
13,
13,
1990,
15758,
362,
3991,
29898,
1191,
5510,
29889,
4276,
1125,
13,
1678,
822,
4770,
4804,
12035,
1311,
29892,
13812,
29892,
7397,
29892,
1819,
29892,
2984,
29918,
1807,
29922,
8516,
1125,
13,
4706,
995,
353,
6213,
13,
4706,
1018,
29901,
13,
9651,
995,
353,
4390,
29889,
18132,
29898,
5975,
29897,
13,
4706,
5174,
4390,
29889,
7099,
6119,
29889,
7249,
2772,
401,
2392,
408,
321,
29901,
13,
9651,
1209,
13,
4706,
565,
2897,
29889,
2084,
29889,
275,
1445,
29898,
5975,
1125,
13,
9651,
411,
1722,
29898,
5975,
29892,
525,
29878,
1495,
408,
285,
29901,
13,
18884,
995,
353,
4390,
29889,
1359,
29898,
29888,
29897,
13,
4706,
565,
995,
338,
451,
6213,
29901,
13,
9651,
731,
5552,
29898,
22377,
29892,
1583,
29889,
7854,
29892,
995,
29897,
13,
13,
13,
1753,
6088,
29918,
2151,
29918,
5085,
29898,
5085,
29918,
1807,
29922,
8516,
1125,
13,
1678,
282,
16680,
353,
1852,
5510,
29889,
15730,
11726,
703,
3991,
1459,
643,
613,
788,
29918,
8477,
29922,
8824,
29897,
13,
1678,
282,
16680,
29889,
1202,
29918,
23516,
703,
489,
2917,
613,
1134,
29922,
710,
29897,
13,
1678,
610,
3174,
29892,
9886,
29918,
19218,
353,
282,
16680,
29889,
5510,
29918,
5203,
29918,
5085,
29898,
5085,
29918,
1807,
29897,
13,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
13,
4706,
376,
12310,
8322,
350,
20161,
613,
883,
2620,
29918,
1990,
29922,
1191,
5510,
29889,
15730,
24863,
29648,
18522,
29897,
13,
13,
1678,
396,
14402,
29901,
9205,
895,
23125,
1632,
4410,
29889,
13,
1678,
2318,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
3195,
12782,
1159,
13,
1678,
13812,
29918,
3166,
29918,
22175,
23215,
552,
29898,
2972,
29892,
16662,
3991,
29892,
6389,
3790,
13,
4706,
376,
16175,
29918,
2311,
1115,
376,
2697,
278,
9200,
9853,
29899,
2311,
613,
13,
4706,
376,
3069,
29918,
17987,
8497,
1115,
9657,
29898,
13,
9651,
19995,
29922,
3366,
29940,
12413,
613,
376,
17013,
613,
376,
9818,
613,
376,
29924,
1001,
1692,
12436,
13,
9651,
1371,
543,
20701,
23655,
16280,
373,
10808,
29889,
2630,
1041,
29901,
376,
13,
9651,
376,
29940,
12413,
353,
671,
5641,
29965,
29936,
376,
13,
9651,
376,
17013,
353,
671,
10808,
363,
1734,
23655,
322,
5641,
29965,
363,
2602,
29936,
376,
13,
9651,
376,
9818,
353,
671,
10808,
29936,
376,
13,
9651,
376,
29924,
1001,
1692,
353,
671,
10808,
322,
788,
1734,
322,
2602,
23655,
4208,
29908,
13,
4706,
10353,
13,
4706,
376,
16506,
29918,
2848,
1115,
376,
2697,
278,
4236,
5665,
3309,
613,
13,
4706,
376,
13168,
29918,
517,
12360,
1115,
376,
2697,
278,
4236,
1353,
310,
11105,
287,
18897,
297,
263,
5665,
313,
15094,
29911,
4717,
1177,
4214,
871,
19123,
13,
4706,
376,
29894,
542,
370,
29918,
2848,
1115,
376,
2697,
278,
2159,
310,
278,
7931,
370,
352,
653,
613,
13,
4706,
376,
10892,
29918,
2311,
1115,
376,
2697,
278,
2159,
310,
278,
7934,
2106,
310,
278,
4327,
261,
15359,
613,
13,
4706,
376,
600,
29918,
2311,
1649,
1115,
9657,
29898,
13,
9651,
1347,
543,
489,
600,
29899,
2311,
613,
13,
9651,
1371,
543,
2697,
278,
2159,
310,
278,
19697,
2106,
310,
278,
8343,
6375,
15359,
29892,
491,
2322,
29871,
29946,
29916,
278,
7934,
29918,
2311,
29908,
13,
4706,
10353,
13,
4706,
376,
1131,
2509,
29918,
2813,
29879,
1115,
376,
2697,
278,
1353,
310,
15883,
297,
1583,
8570,
613,
13,
4706,
376,
262,
1659,
1115,
376,
4391,
263,
1904,
363,
27262,
29889,
13466,
263,
7945,
519,
1904,
338,
2825,
322,
16370,
19602,
13,
4706,
376,
1949,
29918,
29277,
1115,
376,
2697,
278,
1353,
310,
4327,
261,
15359,
613,
13,
4706,
376,
29277,
29918,
546,
29918,
666,
29884,
1115,
376,
2697,
278,
1353,
310,
15359,
373,
1269,
5641,
29965,
29889,
376,
13,
462,
3986,
376,
3644,
6790,
408,
901,
1135,
697,
995,
29892,
278,
2533,
310,
278,
1819,
1818,
5186,
954,
29918,
29277,
19602,
13,
4706,
376,
16515,
29918,
14834,
29918,
771,
637,
291,
1115,
376,
4013,
2984,
1580,
11057,
278,
18618,
310,
3001,
25900,
3370,
278,
11346,
6119,
5345,
29924,
352,
29915,
29879,
508,
671,
29889,
376,
13,
462,
462,
539,
376,
6028,
367,
6790,
408,
2845,
263,
2323,
995,
363,
599,
5641,
15922,
470,
263,
995,
363,
1269,
11346,
6119,
5641,
29965,
19602,
13,
4706,
376,
276,
26017,
29918,
3198,
3149,
29918,
17991,
29918,
13148,
1115,
376,
4013,
11761,
920,
337,
12097,
362,
338,
16459,
297,
8450,
295,
2827,
29889,
376,
13,
462,
462,
9651,
376,
3644,
5852,
278,
1962,
310,
1269,
7546,
674,
367,
380,
25936,
12515,
278,
4236,
301,
20193,
376,
13,
462,
462,
9651,
376,
974,
5039,
800,
304,
367,
472,
1556,
697,
7546,
29889,
376,
13,
462,
462,
9651,
376,
17245,
29892,
278,
380,
1161,
2159,
23431,
411,
278,
1353,
310,
16439,
22950,
577,
445,
1122,
451,
2337,
367,
7795,
5611,
29889,
376,
13,
462,
462,
9651,
376,
1576,
2715,
380,
1161,
718,
775,
1033,
367,
7621,
1135,
278,
20376,
297,
13201,
3370,
19602,
13,
4706,
376,
1217,
29918,
8865,
449,
1115,
376,
10310,
29915,
29873,
671,
5768,
449,
613,
13,
4706,
376,
1217,
29918,
1131,
29876,
29918,
8865,
449,
1115,
376,
10310,
29915,
29873,
671,
5768,
449,
373,
8570,
19435,
613,
13,
4706,
376,
8865,
449,
29918,
22795,
1115,
376,
2697,
278,
5768,
449,
6976,
613,
13,
4706,
376,
13148,
29918,
12324,
29918,
8961,
1115,
376,
2697,
278,
7546,
6056,
321,
3232,
995,
613,
13,
4706,
376,
7323,
442,
29918,
29881,
1853,
1115,
9657,
29898,
13,
9651,
1347,
543,
489,
29881,
1853,
613,
13,
9651,
19995,
29922,
3366,
29943,
3927,
1299,
29896,
29953,
613,
376,
29943,
3927,
1299,
12436,
13,
9651,
1371,
543,
2697,
278,
848,
1134,
1304,
29908,
13,
4706,
10353,
13,
4706,
376,
7662,
1115,
9657,
29898,
13,
9651,
19995,
29922,
3366,
15094,
29911,
4717,
1177,
4214,
613,
376,
29903,
13356,
3035,
613,
376,
21055,
9026,
12436,
13,
9651,
1371,
543,
2697,
278,
3414,
29889,
349,
2267,
336,
2827,
313,
19832,
287,
29899,
26369,
669,
8084,
28048,
663,
21099,
2463,
511,
317,
2182,
3035,
29892,
29751,
9026,
29908,
13,
4706,
10353,
13,
4706,
376,
5451,
29918,
10660,
29918,
29277,
1115,
376,
16015,
20693,
326,
4371,
304,
7797,
895,
5345,
29924,
352,
6607,
800,
19602,
13,
4706,
376,
3445,
9169,
29918,
7915,
29918,
845,
20272,
1115,
376,
2713,
538,
7688,
25187,
943,
975,
278,
1634,
506,
294,
29892,
871,
6969,
297,
1374,
1463,
29918,
22256,
4464,
19602,
13,
4706,
376,
1217,
29918,
13168,
1115,
376,
10310,
29915,
29873,
3394,
7164,
11105,
29879,
304,
278,
8570,
19435,
613,
13,
4706,
376,
1509,
29918,
4381,
29918,
16515,
29918,
14834,
29918,
771,
637,
291,
1115,
376,
11403,
278,
1835,
10254,
2322,
995,
363,
3625,
16015,
1184,
637,
291,
2984,
373,
278,
2094,
6119,
1775,
29885,
7273,
19602,
13,
4706,
376,
5504,
29918,
17987,
8497,
29918,
8977,
1115,
376,
29419,
278,
29234,
2767,
304,
278,
1734,
2812,
2580,
8497,
29918,
21533,
19602,
13,
4706,
376,
1217,
29918,
25932,
29918,
13148,
1115,
376,
10310,
29915,
29873,
3160,
278,
315,
8547,
7546,
297,
758,
26495,
29889,
910,
7546,
5304,
1156,
278,
2094,
397,
414,
541,
1434,
278,
18246,
363,
278,
23158,
29924,
6410,
19602,
13,
4706,
376,
771,
6929,
29918,
29890,
3173,
1115,
376,
29419,
24003,
304,
278,
18246,
7546,
19602,
13,
4706,
376,
17987,
8497,
29918,
15550,
2133,
29918,
29894,
542,
370,
29918,
24530,
1115,
376,
29943,
7168,
491,
607,
23655,
7546,
338,
7797,
1891,
29892,
871,
6969,
297,
1374,
1463,
29918,
22256,
4464,
19602,
13,
4706,
376,
1949,
29918,
1131,
2509,
29918,
23579,
1169,
1115,
376,
29943,
7168,
491,
607,
8570,
7546,
338,
7797,
1891,
29892,
871,
6969,
297,
1374,
1463,
29918,
22256,
4464,
19602,
13,
4706,
376,
1949,
29918,
600,
9970,
29918,
23579,
1169,
1115,
376,
29943,
7168,
491,
607,
8343,
11333,
7546,
338,
7797,
1891,
29892,
871,
6969,
297,
1374,
1463,
29918,
22256,
4464,
19602,
13,
4706,
376,
5451,
29918,
9067,
261,
1115,
376,
22150,
8570,
322,
8343,
11333,
15359,
297,
5004,
1374,
1463,
29918,
22256,
6874,
19602,
13,
4706,
376,
16175,
29918,
643,
6646,
1115,
376,
29943,
7168,
491,
607,
263,
9200,
29899,
16175,
338,
7797,
1891,
29892,
871,
6969,
297,
1374,
1463,
29918,
22256,
4464,
19602,
13,
4706,
376,
1949,
29918,
601,
29918,
1376,
267,
1115,
376,
1576,
1353,
310,
260,
5475,
373,
1269,
5641,
29965,
16955,
304,
2599,
6314,
573,
12084,
288,
567,
411,
278,
1634,
9169,
18177,
29889,
9333,
6969,
297,
1374,
1463,
29918,
22256,
4464,
1213,
13,
1678,
5615,
13,
13,
1678,
2318,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
29903,
2182,
3035,
12782,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
29894,
542,
370,
29899,
1445,
613,
1134,
29922,
710,
29892,
13,
462,
539,
1371,
543,
2605,
304,
278,
7931,
370,
934,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1867,
29899,
13609,
29899,
4878,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
11403,
445,
746,
773,
263,
443,
29883,
1463,
7931,
370,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
29879,
3425,
29899,
9902,
29899,
3972,
613,
1134,
29922,
710,
29892,
2322,
543,
29879,
3425,
29918,
9902,
613,
13,
462,
539,
1371,
543,
2605,
304,
3884,
304,
2436,
2582,
313,
9842,
29901,
674,
367,
2825,
565,
2224,
947,
451,
1863,
25760,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
29879,
3425,
29899,
24219,
403,
29899,
2154,
613,
1134,
29922,
710,
29892,
13,
462,
539,
1371,
543,
2605,
304,
317,
2182,
3035,
321,
1564,
5987,
29899,
29894,
29896,
29889,
29896,
29889,
2272,
2471,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
29879,
3425,
29899,
29212,
29899,
7052,
613,
1134,
29922,
7411,
29892,
2322,
29922,
29896,
29889,
29900,
29892,
13,
462,
539,
1371,
543,
17185,
278,
6509,
6554,
310,
278,
317,
2182,
3035,
15359,
23157,
13,
13,
1678,
2318,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
5323,
2827,
12782,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
24970,
29899,
5753,
398,
2785,
29899,
19790,
613,
1134,
29922,
524,
29892,
2322,
29922,
29896,
29892,
13,
462,
539,
1371,
543,
2697,
920,
1784,
4656,
10070,
304,
18414,
5987,
1434,
13271,
278,
18177,
29889,
320,
13,
462,
9651,
3940,
29901,
910,
6602,
29879,
278,
13944,
310,
11828,
9853,
2159,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
3445,
1414,
29899,
19790,
613,
1134,
29922,
524,
29892,
2322,
29922,
29896,
29892,
13,
462,
539,
1371,
543,
5612,
15815,
278,
3983,
491,
445,
7329,
4822,
5641,
15922,
304,
6176,
848,
8943,
8225,
29889,
313,
9842,
29901,
910,
3620,
278,
11828,
9853,
2159,
25760,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
20640,
3950,
613,
1134,
29922,
710,
29892,
19995,
29922,
1839,
26016,
29928,
742,
525,
3035,
5194,
742,
525,
3035,
5194,
29918,
6632,
29918,
12809,
3289,
742,
525,
4375,
9486,
742,
525,
4375,
9486,
29918,
6632,
29918,
12809,
3289,
7464,
2322,
543,
26016,
29928,
613,
13,
462,
539,
1371,
543,
2697,
278,
5994,
3950,
1134,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
21891,
29899,
10492,
613,
1134,
29922,
7411,
29892,
2322,
29922,
29900,
29889,
29900,
29900,
29900,
29947,
29892,
13,
462,
539,
1371,
543,
2697,
278,
6509,
6554,
1159,
13,
1678,
396,
317,
29954,
29928,
29974,
29924,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
29885,
2932,
398,
613,
1134,
29922,
7411,
29892,
2322,
29922,
29900,
29889,
29929,
29947,
29946,
29941,
29955,
29945,
29892,
13,
462,
539,
1371,
543,
2697,
278,
5994,
3950,
19399,
995,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
29881,
1160,
8333,
613,
1134,
29922,
7411,
29892,
13,
462,
539,
1371,
543,
2697,
278,
5994,
3950,
270,
1160,
8333,
995,
29889,
313,
9842,
29901,
445,
674,
367,
731,
304,
19399,
995,
491,
2322,
25760,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
955,
25245,
29899,
19529,
292,
613,
1134,
29922,
7411,
29892,
2322,
29922,
29896,
29889,
29900,
29892,
13,
462,
539,
1371,
543,
2697,
278,
12885,
21640,
29889,
910,
6911,
5557,
11969,
746,
18414,
18099,
4656,
10070,
23157,
13,
1678,
396,
11783,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
3571,
29896,
613,
1134,
29922,
7411,
29892,
2322,
29922,
29900,
29889,
29929,
29892,
13,
462,
539,
1371,
543,
2697,
278,
11783,
29914,
29931,
1117,
21762,
29896,
995,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
3571,
29906,
613,
1134,
29922,
7411,
29892,
2322,
29922,
29900,
29889,
29929,
29929,
29929,
29892,
13,
462,
539,
1371,
543,
2697,
278,
11783,
29914,
29931,
1117,
21762,
29906,
995,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
3317,
29899,
7915,
29899,
12324,
613,
1134,
29922,
7411,
29892,
2322,
29922,
8516,
29892,
13,
462,
539,
1371,
543,
2697,
278,
4236,
995,
363,
390,
29896,
313,
7915,
6056,
29897,
297,
278,
26832,
5994,
3950,
29889,
13109,
338,
694,
9335,
3262,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
6758,
29899,
19529,
292,
613,
1134,
29922,
7411,
29892,
2322,
29922,
29946,
29889,
29900,
29892,
13,
462,
539,
1371,
543,
2697,
278,
6410,
21640,
29889,
910,
6911,
5557,
1090,
1731,
2645,
1250,
7728,
351,
362,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
7915,
29899,
7099,
388,
613,
1134,
29922,
7411,
29892,
2322,
29922,
29900,
29892,
1371,
543,
2697,
278,
7688,
20228,
29892,
451,
1304,
363,
24003,
322,
6056,
29879,
4128,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1022,
2878,
29879,
613,
1134,
29922,
524,
29892,
2322,
29922,
29941,
29945,
29892,
13,
462,
539,
1371,
543,
4557,
310,
21502,
12168,
304,
7945,
363,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1022,
2878,
29879,
29899,
262,
1659,
613,
1134,
29922,
524,
29892,
2322,
29922,
29896,
29892,
13,
462,
539,
1371,
543,
4557,
310,
21502,
12168,
304,
1065,
27262,
363,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
303,
28225,
29899,
29878,
12449,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
27407,
373,
6639,
305,
6288,
390,
12449,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
24970,
29899,
9313,
428,
29899,
1853,
613,
1134,
29922,
710,
29892,
19995,
29922,
3366,
11139,
613,
376,
6816,
273,
12436,
2322,
543,
11139,
613,
13,
462,
539,
1371,
543,
2697,
920,
4656,
10070,
526,
12212,
975,
278,
5534,
9853,
2159,
23157,
13,
13,
1678,
2318,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
1323,
8675,
681,
349,
666,
295,
2827,
12782,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
13096,
5570,
29899,
29212,
29899,
19529,
292,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
20701,
6509,
6554,
21640,
639,
16439,
7408,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
13096,
5570,
29899,
29212,
29899,
19529,
292,
29899,
10289,
613,
1134,
29922,
7411,
29892,
2322,
29922,
29900,
29889,
29906,
29945,
29892,
13,
462,
539,
1371,
543,
2697,
278,
995,
363,
6509,
6554,
21640,
373,
278,
937,
16439,
7408,
29889,
29257,
19257,
674,
367,
6287,
29881,
376,
13,
462,
9651,
376,
10660,
368,
515,
445,
9210,
313,
4381,
29901,
29871,
29900,
29889,
29906,
29945,
29897,
304,
29871,
29896,
408,
16439,
7408,
16415,
304,
3633,
363,
11664,
4436,
376,
13,
462,
9651,
376,
271,
5224,
29899,
5563,
22950,
746,
8450,
295,
2827,
29889,
313,
9842,
29901,
363,
8450,
24210,
411,
2846,
22950,
29892,
445,
881,
367,
11664,
25760,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
13096,
5570,
29899,
29885,
2932,
398,
29899,
19529,
292,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
20701,
19399,
322,
270,
1160,
8333,
21640,
639,
16439,
7408,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
13096,
5570,
29899,
29885,
2932,
398,
29899,
19529,
292,
29899,
10289,
613,
1134,
29922,
7411,
29892,
2322,
29922,
29900,
29889,
29896,
29892,
13,
462,
539,
1371,
543,
2697,
278,
995,
19399,
21640,
373,
278,
1833,
16439,
7408,
29889,
341,
2932,
6762,
674,
367,
6287,
29881,
376,
13,
462,
9651,
376,
10660,
368,
515,
445,
9210,
313,
4381,
29901,
29871,
29900,
29889,
29896,
29897,
304,
29871,
29896,
408,
16439,
7408,
23806,
304,
3633,
363,
11664,
4436,
376,
13,
462,
9651,
376,
271,
5224,
29899,
5563,
22950,
746,
8450,
295,
2827,
29889,
313,
9842,
29901,
363,
8450,
24210,
411,
2846,
22950,
29892,
445,
881,
367,
11664,
25760,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
13096,
5570,
29899,
29881,
1160,
8333,
29899,
19529,
292,
29899,
10289,
613,
1134,
29922,
7411,
29892,
13,
462,
539,
1371,
543,
2697,
278,
995,
363,
270,
1160,
8333,
21640,
373,
278,
1833,
16439,
7408,
29889,
360,
1160,
264,
886,
674,
367,
6287,
29881,
376,
13,
462,
9651,
376,
10660,
368,
515,
445,
9210,
313,
4381,
29901,
1021,
408,
19399,
29897,
304,
29871,
29896,
408,
16439,
7408,
23806,
304,
3633,
363,
11664,
4436,
376,
13,
462,
9651,
376,
271,
5224,
29899,
5563,
22950,
746,
8450,
295,
2827,
29889,
313,
9842,
29901,
445,
674,
367,
731,
304,
278,
19399,
9210,
491,
2322,
25760,
13,
13,
1678,
903,
2972,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
26322,
546,
15501,
1102,
11272,
12782,
1159,
13,
1678,
2318,
353,
903,
2972,
29889,
1202,
29918,
6149,
1474,
29918,
735,
7009,
573,
29918,
2972,
580,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
29212,
29899,
816,
11272,
29899,
1609,
29899,
1022,
2878,
613,
3158,
29922,
4504,
11272,
15730,
11726,
29892,
302,
5085,
543,
29930,
613,
2322,
29922,
8516,
29892,
13,
462,
539,
1371,
543,
29909,
20410,
363,
6509,
6554,
14294,
786,
322,
20228,
29892,
4944,
408,
2913,
29899,
25048,
630,
376,
13,
462,
9651,
9872,
524,
23917,
29966,
7411,
29958,
11000,
29889,
450,
937,
2944,
338,
278,
21502,
305,
472,
607,
304,
2767,
322,
278,
1473,
338,
376,
13,
462,
9651,
376,
1552,
6509,
6554,
472,
393,
21502,
305,
29889,
320,
29876,
29908,
13,
462,
9651,
376,
29923,
29889,
29887,
4898,
1192,
29212,
29899,
816,
11272,
29899,
1609,
29899,
1022,
2878,
29871,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29896,
29871,
29896,
29901,
29900,
29889,
29900,
29900,
29900,
29896,
29871,
29941,
29901,
29900,
29889,
29900,
29900,
29900,
29947,
29871,
29945,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29946,
29871,
29896,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29906,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
29212,
29899,
816,
11272,
29899,
1609,
29899,
10568,
613,
3158,
29922,
4504,
11272,
15730,
11726,
29892,
302,
5085,
543,
29930,
613,
2322,
29922,
8516,
29892,
13,
462,
539,
1371,
543,
29909,
20410,
363,
6509,
6554,
14294,
786,
322,
20228,
29892,
4944,
408,
2913,
29899,
25048,
630,
376,
13,
462,
9651,
9872,
524,
23917,
29966,
7411,
29958,
11000,
29889,
450,
937,
2944,
338,
278,
4331,
472,
607,
304,
2767,
322,
278,
1473,
338,
376,
13,
462,
9651,
376,
1552,
6509,
6554,
472,
393,
4331,
29889,
320,
29876,
29908,
13,
462,
9651,
376,
29923,
29889,
29887,
4898,
1192,
29212,
29899,
816,
11272,
29899,
1609,
29899,
10568,
29871,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29896,
29871,
29906,
29945,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29896,
29871,
29896,
29900,
29900,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29947,
29871,
29945,
29900,
29900,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29946,
29871,
29896,
29900,
29900,
29900,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29906,
1159,
13,
13,
1678,
2318,
353,
903,
2972,
29889,
1202,
29918,
6149,
1474,
29918,
735,
7009,
573,
29918,
2972,
580,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
3137,
29899,
816,
11272,
29899,
1609,
29899,
1022,
2878,
613,
3158,
29922,
4504,
11272,
15730,
11726,
29892,
302,
5085,
543,
29930,
613,
2322,
29922,
8516,
29892,
13,
462,
539,
1371,
543,
29909,
20410,
363,
6410,
21640,
29892,
4944,
408,
2913,
29899,
25048,
630,
529,
524,
23917,
29966,
7411,
29958,
11000,
29889,
376,
13,
462,
9651,
376,
1576,
937,
2944,
338,
278,
805,
2878,
472,
607,
304,
2767,
322,
278,
1473,
338,
376,
13,
462,
9651,
376,
1552,
6410,
21640,
472,
393,
21502,
305,
29889,
320,
29876,
29908,
13,
462,
9651,
376,
29923,
29889,
29887,
4898,
1192,
3137,
29899,
816,
11272,
29899,
1609,
29899,
10568,
29871,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29896,
29871,
29906,
29945,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29896,
29871,
29896,
29900,
29900,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29947,
29871,
29945,
29900,
29900,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29946,
29871,
29896,
29900,
29900,
29900,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29906,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
3137,
29899,
816,
11272,
29899,
1609,
29899,
10568,
613,
3158,
29922,
4504,
11272,
15730,
11726,
29892,
302,
5085,
543,
29930,
613,
2322,
29922,
8516,
29892,
13,
462,
539,
1371,
543,
29909,
20410,
363,
6410,
21640,
29892,
4944,
408,
2913,
29899,
25048,
630,
529,
524,
23917,
29966,
7411,
29958,
11000,
29889,
376,
13,
462,
9651,
376,
1576,
937,
2944,
338,
278,
4331,
472,
607,
304,
2767,
322,
278,
1473,
338,
376,
13,
462,
9651,
376,
1552,
6410,
21640,
472,
393,
4331,
29889,
320,
29876,
29908,
13,
462,
9651,
376,
29923,
29889,
29887,
4898,
1192,
3137,
29899,
816,
11272,
29899,
1609,
29899,
10568,
29871,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29896,
29871,
29906,
29945,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29896,
29871,
29896,
29900,
29900,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29947,
29871,
29945,
29900,
29900,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29946,
29871,
29896,
29900,
29900,
29900,
29900,
29900,
29901,
29900,
29889,
29900,
29900,
29900,
29900,
29906,
1159,
13,
13,
1678,
2318,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
15514,
4371,
12782,
613,
376,
15675,
363,
2847,
5921,
278,
18177,
1159,
13,
1678,
2318,
353,
2318,
29889,
1202,
29918,
6149,
1474,
29918,
735,
7009,
573,
29918,
2972,
580,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
13264,
29899,
3198,
3149,
613,
1134,
29922,
710,
29892,
13,
462,
539,
1371,
543,
2605,
304,
323,
6073,
1731,
5399,
3149,
304,
2847,
895,
278,
1904,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
3409,
29916,
29899,
3198,
3149,
613,
1134,
29922,
710,
29892,
13,
462,
539,
1371,
543,
2605,
304,
869,
3409,
29916,
934,
2825,
491,
445,
2280,
304,
2847,
895,
278,
1904,
23157,
13,
13,
1678,
2318,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
1469,
12782,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
2080,
29899,
5325,
613,
1134,
29922,
710,
29892,
302,
5085,
543,
29930,
613,
13,
462,
539,
1371,
543,
10547,
304,
2254,
848,
515,
29889,
376,
13,
462,
9651,
376,
2831,
349,
2267,
336,
2827,
29901,
29479,
2066,
2825,
491,
289,
814,
29918,
1272,
29914,
3258,
29918,
1457,
26495,
29918,
1272,
29889,
2272,
29889,
376,
13,
462,
9651,
376,
2831,
317,
2182,
3035,
29901,
10802,
304,
7945,
29899,
29894,
29896,
29889,
29896,
29889,
3126,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
845,
21897,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
2713,
21897,
13373,
24541,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
957,
3539,
29899,
8173,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
4597,
759,
1078,
278,
317,
2182,
3035,
8783,
2012,
310,
8363,
278,
7090,
565,
3625,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1217,
29899,
8865,
29899,
1745,
475,
672,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
3253,
5143,
278,
9853,
267,
29918,
546,
29918,
10568,
304,
7970,
16429,
278,
8783,
577,
694,
848,
338,
13726,
29889,
9333,
3625,
363,
317,
2182,
3035,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
13525,
29899,
1272,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
5631,
403,
263,
4036,
8783,
373,
278,
3495,
4933,
29889,
6760,
1078,
3307,
848,
363,
697,
4331,
639,
21502,
305,
29889,
376,
13,
462,
9651,
376,
797,
1037,
559,
1192,
1022,
2878,
29879,
363,
2999,
4180,
20398,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
19274,
386,
7492,
29899,
1272,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
5631,
403,
263,
14710,
7492,
8783,
373,
278,
5641,
29965,
4742,
29889,
6760,
1078,
3307,
848,
363,
697,
4331,
639,
21502,
305,
29889,
376,
13,
462,
9651,
376,
9842,
393,
773,
445,
2984,
674,
3349,
599,
16956,
306,
29914,
29949,
515,
278,
1904,
29889,
376,
13,
462,
9651,
376,
797,
1037,
559,
1192,
1022,
2878,
29879,
363,
2999,
23895,
290,
749,
20398,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
19274,
386,
7492,
29899,
1272,
29899,
11228,
3950,
613,
1134,
29922,
710,
29892,
19995,
29922,
1839,
8172,
29918,
8945,
742,
525,
3298,
359,
7464,
2322,
543,
8172,
29918,
8945,
613,
13,
462,
539,
1371,
543,
10299,
1598,
304,
278,
14710,
7492,
848,
2847,
3950,
411,
2845,
525,
8172,
29918,
8945,
29915,
470,
525,
3298,
359,
4286,
16521,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
20908,
1414,
29899,
19790,
613,
1134,
29922,
524,
29892,
2322,
29922,
29896,
29892,
13,
462,
539,
1371,
543,
2697,
278,
1353,
310,
3064,
278,
8783,
756,
1063,
5141,
9169,
29889,
910,
26830,
278,
11916,
639,
21502,
305,
304,
29908,
13,
462,
9651,
376,
313,
29937,
310,
11916,
297,
1881,
29899,
5325,
6802,
20908,
1414,
29899,
19790,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1022,
2878,
29879,
29899,
517,
29899,
8173,
613,
1134,
29922,
524,
29892,
2322,
29922,
29900,
29892,
13,
462,
539,
1371,
543,
4557,
310,
21502,
12168,
310,
848,
304,
2254,
964,
3370,
2645,
349,
1525,
29911,
4717,
1177,
4214,
29889,
13109,
338,
304,
2254,
1881,
2066,
408,
4312,
23157,
13,
13,
1678,
2318,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
20418,
21864,
1159,
13,
1678,
953,
356,
353,
2318,
29889,
1202,
29918,
6149,
1474,
29918,
735,
7009,
573,
29918,
2972,
580,
13,
1678,
953,
356,
29889,
1202,
29918,
23516,
703,
489,
18714,
29899,
4262,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8516,
29892,
13,
462,
539,
1371,
543,
8893,
322,
6222,
278,
3983,
411,
871,
19181,
9527,
25495,
23157,
13,
1678,
953,
356,
29889,
1202,
29918,
23516,
703,
489,
13096,
5570,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8516,
29892,
13,
462,
539,
1371,
543,
8893,
322,
6222,
278,
3983,
411,
349,
23828,
25495,
23157,
13,
1678,
953,
356,
29889,
1202,
29918,
23516,
703,
489,
561,
1463,
29899,
22256,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8516,
29892,
13,
462,
539,
1371,
543,
8893,
322,
6222,
278,
3983,
411,
11080,
918,
4819,
559,
25495,
23157,
13,
1678,
1374,
1463,
29918,
331,
356,
353,
2318,
29889,
1202,
29918,
6149,
1474,
29918,
735,
7009,
573,
29918,
2972,
580,
13,
1678,
1374,
1463,
29918,
331,
356,
29889,
1202,
29918,
23516,
703,
489,
14369,
29899,
10141,
613,
3158,
2433,
8899,
29918,
3075,
742,
1040,
2433,
29903,
4214,
1307,
742,
2731,
2433,
561,
1463,
29918,
22256,
29918,
1853,
742,
13,
462,
795,
1371,
543,
12296,
373,
263,
2323,
4742,
639,
1634,
10123,
29889,
9333,
1304,
297,
1374,
1463,
29918,
22256,
4464,
23157,
13,
1678,
1374,
1463,
29918,
331,
356,
29889,
1202,
29918,
23516,
703,
489,
700,
284,
29899,
10141,
613,
3158,
2433,
8899,
29918,
3075,
742,
1040,
2433,
14849,
1964,
742,
2731,
2433,
561,
1463,
29918,
22256,
29918,
1853,
742,
13,
462,
795,
1371,
543,
12296,
773,
1023,
9224,
639,
1634,
10123,
29889,
9333,
1304,
297,
1374,
1463,
29918,
22256,
4464,
23157,
13,
1678,
13812,
29889,
842,
29918,
4381,
29879,
29898,
561,
1463,
29918,
22256,
29918,
1853,
2433,
29903,
4214,
1307,
1495,
13,
13,
13,
1678,
2318,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
20418,
12782,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
16175,
267,
29899,
546,
29899,
10568,
613,
1134,
29922,
524,
29892,
2322,
29922,
29906,
29945,
29900,
29892,
13,
462,
539,
1371,
543,
2697,
278,
1353,
310,
9853,
267,
313,
7915,
11217,
29897,
304,
6222,
1434,
7863,
304,
278,
16956,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
29888,
417,
1218,
29899,
3149,
29899,
11739,
29879,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
27407,
373,
16526,
1298,
15283,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
26776,
613,
1134,
29922,
524,
29892,
2322,
29922,
29896,
29929,
29947,
29946,
29892,
13,
462,
539,
1371,
543,
2697,
278,
3495,
322,
4742,
16717,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
10185,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
5631,
403,
263,
8722,
3884,
304,
367,
3483,
952,
287,
491,
1835,
4924,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
10185,
29899,
3972,
613,
1134,
29922,
710,
29892,
13,
462,
539,
1371,
543,
2605,
304,
8722,
3884,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
10185,
29899,
2611,
15461,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
5574,
29892,
13,
462,
539,
1371,
543,
29419,
11412,
2302,
11395,
362,
746,
20077,
292,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1217,
29899,
449,
1915,
292,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
4205,
519,
6977,
8322,
714,
1915,
292,
5994,
275,
800,
29889,
910,
674,
7910,
3370,
363,
263,
2319,
1549,
649,
20414,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
10599,
29899,
8173,
613,
1134,
29922,
2892,
1852,
29901,
6213,
565,
451,
1852,
1683,
1852,
29892,
13,
462,
539,
1371,
543,
2605,
304,
3787,
263,
7090,
310,
278,
6012,
14835,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
11918,
29899,
705,
5861,
29899,
262,
1659,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
2831,
346,
278,
18177,
304,
367,
3651,
2645,
27262,
29889,
830,
5958,
363,
8363,
18177,
515,
263,
1423,
3149,
746,
773,
263,
22152,
6012,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
19878,
29899,
26495,
29899,
3166,
29899,
1022,
2878,
613,
1134,
29922,
524,
29892,
2322,
29922,
29900,
29892,
13,
462,
539,
1371,
543,
5323,
2827,
21502,
305,
472,
607,
304,
1369,
11266,
15501,
28598,
2540,
746,
8363,
515,
263,
1423,
3149,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1217,
29899,
26495,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
10310,
29915,
29873,
1065,
278,
6694,
2425,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1217,
29899,
18157,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
10310,
29915,
29873,
12725,
6694,
29889,
910,
7805,
8845,
472,
278,
1095,
310,
6694,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
18157,
29899,
2917,
613,
3158,
29922,
19448,
3991,
29892,
13,
462,
539,
1371,
543,
2605,
304,
2225,
300,
2295,
363,
8845,
29889,
960,
731,
491,
278,
22974,
2917,
29952,
934,
29892,
372,
7403,
1000,
408,
263,
9657,
2012,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
677,
29899,
29880,
2579,
1270,
29899,
262,
1659,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
11403,
1881,
29914,
4905,
6939,
29879,
304,
6260,
895,
27262,
23316,
1270,
363,
9595,
393,
2304,
445,
4464,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1195,
12539,
29899,
29880,
2579,
1270,
29899,
262,
1659,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
4205,
519,
10663,
758,
29899,
9155,
292,
304,
6260,
675,
27262,
23316,
1270,
29892,
472,
278,
3438,
310,
12212,
1549,
649,
29889,
3115,
6166,
4482,
29899,
29880,
2579,
1270,
29899,
262,
1659,
29922,
3009,
29889,
16521,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
262,
1659,
29899,
21457,
29899,
546,
10709,
537,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
27065,
403,
278,
365,
29924,
639,
10709,
537,
12714,
408,
760,
310,
27262,
313,
29872,
29985,
6758,
467,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
276,
1997,
603,
29899,
816,
14952,
613,
3158,
543,
8899,
29918,
3009,
613,
13,
462,
539,
1371,
543,
2697,
263,
1855,
2230,
1364,
14952,
363,
445,
1889,
29889,
9333,
5039,
630,
2645,
27262,
29889,
320,
13,
462,
632,
313,
29902,
3580,
8476,
13566,
29901,
830,
339,
2658,
1661,
29899,
1639,
4925,
9196,
29892,
6467,
756,
694,
2779,
25760,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
3317,
29899,
8552,
29899,
14634,
29899,
2311,
613,
1134,
29922,
524,
29892,
2322,
10457,
29896,
29892,
13,
462,
539,
1371,
543,
2697,
278,
995,
363,
6977,
4675,
6012,
2984,
525,
3670,
29889,
3317,
11882,
15836,
479,
3505,
4286,
3789,
304,
448,
29896,
304,
671,
6977,
4675,
29915,
29879,
2322,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
20472,
29899,
3730,
29899,
18045,
29899,
3364,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
2528,
292,
8072,
6631,
1209,
304,
777,
1775,
29885,
7273,
9946,
2919,
1301,
10590,
1434,
6931,
2645,
6694,
29889,
376,
13,
462,
539,
376,
9842,
29901,
910,
674,
11157,
1549,
649,
472,
278,
3438,
310,
3370,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
2972,
29899,
3069,
29899,
19274,
2395,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
24020,
278,
3495,
29899,
10141,
12231,
275,
800,
901,
29497,
29892,
6133,
1549,
649,
508,
367,
7450,
472,
278,
1518,
1947,
310,
2533,
301,
20193,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
20640,
3950,
29899,
3859,
29899,
2696,
305,
666,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
9598,
1022,
278,
5994,
3950,
2106,
1283,
29830,
29889,
9333,
24820,
372,
373,
746,
4312,
363,
278,
7688,
2767,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
12007,
29899,
24498,
29899,
3846,
29879,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
20701,
4203,
7687,
29879,
363,
1775,
29885,
7273,
322,
26851,
29879,
13149,
635,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
877,
489,
7564,
29899,
6543,
29899,
20640,
4371,
29899,
5182,
742,
1134,
29922,
710,
29892,
2322,
29922,
8516,
29892,
13,
462,
539,
19995,
29922,
3366,
5521,
8362,
613,
376,
1270,
7799,
613,
376,
14834,
12436,
13,
462,
539,
1371,
543,
1576,
5994,
4371,
2948,
363,
7463,
429,
25990,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
11236,
800,
29899,
265,
29899,
305,
666,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
3226,
1351,
5039,
800,
380,
25936,
373,
29830,
29892,
474,
29889,
29872,
1016,
29915,
29873,
4337,
278,
5039,
800,
304,
24820,
3370,
23157,
13,
13,
1678,
2318,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
3403,
3460,
12782,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
12276,
29899,
26828,
29899,
23090,
29899,
2798,
613,
3158,
543,
8899,
29918,
3009,
613,
13,
462,
539,
1371,
2433,
13020,
278,
1353,
310,
25785,
1269,
376,
7924,
29889,
3389,
29908,
4893,
29889,
1495,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1188,
29899,
3972,
613,
1134,
29922,
710,
29892,
2322,
543,
20756,
613,
13,
462,
539,
1371,
543,
2605,
304,
4078,
323,
6073,
3377,
10748,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
24530,
29899,
546,
29899,
1188,
613,
1134,
29922,
524,
29892,
2322,
29922,
29896,
29892,
13,
462,
539,
1371,
543,
4557,
310,
4867,
29889,
3389,
304,
6222,
1434,
12183,
6694,
21556,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
26193,
403,
29899,
2527,
10817,
29899,
957,
29899,
24530,
613,
1134,
29922,
524,
29892,
13,
462,
539,
1371,
543,
4557,
310,
6576,
304,
20431,
21556,
975,
29889,
13109,
338,
278,
1353,
310,
6576,
639,
21502,
305,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1022,
2878,
29879,
29899,
546,
29899,
7620,
613,
1134,
29922,
524,
29892,
2322,
10457,
29896,
29892,
13,
462,
539,
1371,
543,
4557,
310,
21502,
12168,
1546,
1269,
4078,
310,
278,
1904,
29889,
3115,
27401,
472,
278,
1095,
310,
6694,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
24530,
29899,
546,
29899,
7620,
613,
1134,
29922,
524,
29892,
2322,
10457,
29896,
29892,
13,
462,
539,
1371,
543,
4557,
310,
6576,
1546,
1269,
4078,
310,
278,
1904,
29889,
3115,
27401,
472,
278,
1095,
310,
6694,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1217,
29899,
4299,
29899,
7620,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
10310,
29915,
29873,
4078,
278,
1904,
29889,
4803,
1319,
363,
6724,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
3198,
3149,
29899,
3972,
613,
1134,
29922,
710,
29892,
2322,
543,
384,
16485,
613,
13,
462,
539,
1371,
543,
2605,
304,
3884,
304,
4078,
1904,
1423,
9748,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
18622,
29890,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
20701,
12183,
304,
1334,
5861,
322,
3457,
2129,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1188,
29899,
5563,
613,
1134,
29922,
710,
29892,
2322,
2433,
11690,
742,
13,
462,
539,
19995,
29922,
1839,
12256,
10490,
742,
525,
11690,
742,
525,
18525,
742,
525,
29956,
25614,
742,
525,
11432,
742,
525,
11341,
1806,
2965,
1964,
7464,
13,
462,
539,
1371,
543,
2697,
278,
12183,
3233,
1159,
13,
13,
1678,
2318,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
11501,
12782,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
10141,
29899,
333,
613,
1134,
29922,
524,
29892,
2322,
29922,
8516,
29892,
13,
462,
539,
1371,
543,
3549,
263,
2702,
5641,
29965,
4742,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
10141,
29899,
9965,
29899,
1853,
613,
1134,
29922,
710,
29892,
2322,
543,
21936,
613,
13,
462,
539,
19995,
29922,
3366,
21936,
613,
376,
265,
2310,
392,
613,
376,
2696,
1220,
12436,
13,
462,
539,
1371,
543,
2697,
278,
1835,
442,
29889,
11501,
5350,
1542,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
10141,
29899,
3259,
613,
1134,
29922,
710,
29892,
2322,
29922,
8516,
29892,
13,
462,
539,
1371,
543,
2697,
278,
5641,
29965,
1873,
313,
1454,
1283,
1220,
14835,
467,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
10141,
29899,
1376,
267,
613,
1134,
29922,
524,
29892,
2322,
29922,
8516,
29892,
13,
462,
539,
1371,
543,
2697,
278,
1353,
310,
260,
5475,
313,
1454,
1283,
1220,
14835,
467,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
10141,
29899,
265,
2310,
392,
29899,
15619,
613,
1134,
29922,
524,
29892,
2322,
29922,
524,
29898,
29896,
29872,
29946,
511,
13,
462,
539,
1371,
543,
2697,
278,
6923,
304,
4480,
363,
385,
373,
2310,
392,
4742,
304,
4953,
1434,
3625,
1434,
6876,
292,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1509,
29899,
666,
29884,
29899,
4299,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
8667,
278,
5641,
29965,
8125,
23157,
13,
13,
1678,
2318,
353,
13812,
29889,
1202,
29918,
23516,
29918,
2972,
703,
13398,
3224,
12782,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1526,
29875,
29899,
5721,
7541,
613,
1134,
29922,
710,
29918,
517,
29918,
11227,
29892,
302,
5085,
543,
29973,
613,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29892,
13,
462,
539,
1371,
543,
20701,
13235,
6694,
411,
341,
2227,
14998,
29889,
6652,
7541,
6694,
411,
341,
2227,
338,
5279,
297,
25267,
1213,
13,
462,
539,
376,
13658,
2304,
363,
13235,
6694,
674,
367,
6421,
297,
263,
5434,
6507,
23157,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1526,
29875,
29899,
10003,
613,
1134,
29922,
524,
29892,
2322,
29922,
29900,
29892,
1371,
543,
4290,
278,
341,
2227,
7115,
310,
445,
1889,
29889,
910,
995,
674,
367,
975,
17625,
491,
278,
7115,
10087,
491,
278,
341,
2227,
4701,
1159,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
1526,
29875,
29899,
2311,
613,
1134,
29922,
524,
29892,
2322,
29922,
29896,
29892,
1371,
543,
4290,
278,
341,
2227,
2159,
29889,
910,
995,
674,
367,
975,
17625,
491,
278,
2159,
10087,
491,
278,
341,
2227,
4701,
1159,
13,
13,
1678,
396,
910,
338,
1244,
871,
363,
278,
1371,
2643,
13,
1678,
2318,
29889,
1202,
29918,
23516,
703,
489,
2917,
613,
1134,
29922,
710,
29892,
13,
462,
539,
1371,
543,
2605,
304,
2225,
300,
2295,
1159,
13,
1678,
21274,
353,
9657,
29898,
22256,
29918,
8513,
543,
23397,
1159,
13,
1678,
565,
610,
3174,
29889,
2917,
338,
451,
6213,
29901,
13,
4706,
411,
1722,
29898,
862,
3174,
29889,
2917,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
9651,
2225,
300,
353,
4390,
29889,
1359,
29898,
29888,
29897,
13,
4706,
5941,
29918,
735,
7009,
573,
29918,
4569,
1691,
29898,
16680,
29892,
2225,
300,
29892,
9886,
29918,
19218,
29897,
13,
4706,
21274,
29889,
5504,
29898,
1068,
4569,
300,
29897,
13,
13,
1678,
396,
5399,
278,
2322,
6389,
526,
2854,
13,
1678,
2998,
29918,
5085,
353,
731,
29898,
16908,
29898,
16680,
29889,
5510,
29918,
5085,
703,
29908,
4961,
13,
1678,
9815,
29918,
4381,
29879,
353,
731,
29898,
4381,
29879,
29897,
448,
2998,
29918,
5085,
13,
13,
1678,
565,
9815,
29918,
4381,
29879,
29901,
13,
4706,
12020,
7865,
2392,
29898,
29888,
29908,
14148,
1852,
29898,
29879,
29897,
297,
2295,
934,
29901,
426,
26690,
29918,
4381,
29879,
27195,
13,
13,
1678,
13812,
29889,
842,
29918,
4381,
29879,
29898,
1068,
4381,
29879,
29897,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
29898,
1745,
17225,
29918,
19218,
29897,
13,
13,
1678,
731,
29918,
22256,
29918,
8513,
29898,
5085,
29897,
13,
13,
1678,
731,
29918,
1526,
29875,
29918,
5085,
29898,
5085,
29897,
13,
13,
1678,
396,
512,
15480,
297,
23712,
3987,
13,
1678,
565,
6389,
29889,
1217,
29918,
8865,
29918,
1745,
475,
672,
322,
6389,
29889,
7662,
2804,
376,
29903,
13356,
3035,
1115,
13,
4706,
12020,
24875,
2392,
29898,
29888,
29908,
489,
1217,
29899,
8865,
29899,
1745,
475,
672,
338,
871,
15878,
411,
317,
13356,
3035,
322,
451,
411,
426,
5085,
29889,
7662,
1118,
27450,
292,
1159,
13,
1678,
565,
6389,
29889,
16175,
29918,
643,
6646,
1405,
6389,
29889,
16175,
29918,
2311,
29901,
13,
4706,
12020,
24875,
2392,
703,
489,
16175,
29899,
643,
6646,
2609,
367,
1405,
1192,
16175,
29918,
2311,
29892,
27450,
292,
1159,
13,
1678,
565,
6389,
29889,
5451,
29918,
10660,
29918,
29277,
322,
6389,
29889,
16175,
29918,
643,
6646,
1405,
29871,
29896,
29901,
13,
4706,
12020,
24875,
2392,
703,
489,
5451,
29899,
10660,
29899,
29277,
338,
297,
23712,
411,
1192,
16175,
29899,
643,
6646,
1405,
29871,
29896,
29892,
27450,
292,
1159,
13,
1678,
565,
6389,
29889,
19274,
386,
7492,
29918,
1272,
322,
6389,
29889,
13525,
29918,
1272,
29901,
13,
4706,
12020,
24875,
2392,
703,
21803,
2845,
1192,
19274,
386,
7492,
29899,
1272,
470,
1192,
13525,
29899,
1272,
29892,
451,
1716,
29889,
1976,
441,
292,
1159,
13,
13,
1678,
396,
731,
4482,
29899,
29880,
2579,
1270,
29899,
262,
1659,
565,
9212,
29899,
29880,
2579,
1270,
29899,
262,
1659,
731,
13,
1678,
565,
6389,
29889,
1195,
12539,
29918,
29880,
2579,
1270,
29918,
262,
1659,
29901,
13,
4706,
6389,
29889,
677,
29918,
29880,
2579,
1270,
29918,
262,
1659,
353,
5852,
13,
13,
1678,
396,
22871,
12865,
1347,
304,
1423,
9748,
2224,
322,
1653,
278,
1014,
12322,
13,
1678,
6389,
29889,
3198,
3149,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
5085,
29889,
3198,
3149,
29918,
3972,
29892,
13,
462,
462,
539,
12865,
29889,
12673,
29889,
3707,
2141,
710,
615,
603,
11702,
29891,
19222,
29885,
19222,
29881,
19222,
29950,
19222,
29924,
19222,
29903,
5783,
13,
1678,
2897,
29889,
29885,
12535,
12935,
29898,
5085,
29889,
3198,
3149,
29918,
3972,
29892,
1863,
29918,
554,
29922,
5574,
29897,
13,
1678,
4078,
29918,
5085,
29898,
5085,
29897,
13,
1678,
736,
6389,
13,
13,
13,
1753,
731,
29918,
22256,
29918,
8513,
29898,
5085,
1125,
13,
1678,
565,
6389,
29889,
13096,
5570,
29901,
13,
4706,
6389,
29889,
22256,
29918,
8513,
353,
376,
2227,
4162,
18521,
29908,
13,
1678,
25342,
6389,
29889,
561,
1463,
29918,
22256,
29901,
13,
4706,
6389,
29889,
22256,
29918,
8513,
353,
376,
19689,
8127,
29928,
29908,
13,
1678,
25342,
6389,
29889,
18714,
29918,
4262,
470,
320,
13,
4706,
6389,
29889,
22256,
29918,
8513,
1275,
376,
2227,
4162,
18521,
29908,
322,
6389,
29889,
13096,
5570,
338,
7700,
470,
320,
13,
9651,
6389,
29889,
22256,
29918,
8513,
1275,
376,
19689,
8127,
29928,
29908,
322,
6389,
29889,
561,
1463,
29918,
22256,
338,
7700,
29901,
13,
4706,
6389,
29889,
22256,
29918,
8513,
353,
376,
23397,
29908,
13,
1678,
736,
6389,
13,
13,
13,
1753,
5941,
29918,
735,
7009,
573,
29918,
4569,
1691,
29898,
16680,
29892,
2225,
300,
29892,
9886,
29918,
19218,
1125,
13,
1678,
9995,
2111,
11057,
278,
2225,
1691,
8600,
297,
29899,
6689,
304,
3349,
738,
21274,
393,
723,
5537,
403,
13,
1678,
263,
5478,
1474,
29192,
7276,
1213,
15945,
13,
1678,
822,
5478,
1474,
29918,
735,
7009,
573,
29918,
2467,
29918,
265,
29918,
9006,
29898,
2972,
1125,
13,
4706,
363,
3158,
297,
2318,
3032,
2972,
29918,
7387,
29901,
13,
9651,
565,
738,
4197,
3670,
297,
9886,
29918,
19218,
363,
3523,
297,
3158,
29889,
3385,
29918,
19651,
29962,
1125,
13,
18884,
736,
3158,
29889,
7854,
13,
4706,
736,
6213,
13,
13,
1678,
822,
3349,
29918,
6149,
1474,
29918,
735,
7009,
573,
29918,
695,
1161,
267,
29898,
2972,
29892,
2225,
1691,
29892,
9920,
29918,
1191,
1125,
13,
4706,
363,
3158,
297,
2318,
3032,
2972,
29918,
7387,
29901,
13,
9651,
565,
3158,
29889,
7854,
2804,
9920,
29918,
1191,
322,
3158,
29889,
7854,
297,
2225,
1691,
29901,
13,
18884,
628,
2225,
1691,
29961,
2467,
29889,
7854,
29962,
13,
13,
1678,
363,
2318,
297,
13812,
3032,
6149,
1474,
29918,
735,
7009,
573,
29918,
13155,
29901,
13,
4706,
9920,
29918,
1191,
353,
5478,
1474,
29918,
735,
7009,
573,
29918,
2467,
29918,
265,
29918,
9006,
29898,
2972,
29897,
13,
4706,
565,
9920,
29918,
1191,
338,
451,
6213,
29901,
13,
9651,
3349,
29918,
6149,
1474,
29918,
735,
7009,
573,
29918,
695,
1161,
267,
29898,
2972,
29892,
2225,
300,
29892,
9920,
29918,
1191,
29897,
13,
13,
13,
1753,
4078,
29918,
5085,
29898,
5085,
1125,
13,
1678,
2897,
29889,
29885,
12535,
12935,
29898,
5085,
29889,
3198,
3149,
29918,
3972,
29892,
1863,
29918,
554,
29922,
5574,
29897,
13,
1678,
2295,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
5085,
29889,
3198,
3149,
29918,
3972,
29892,
376,
2917,
29889,
3126,
1159,
13,
1678,
411,
1722,
29898,
2917,
29918,
2084,
29892,
376,
29893,
1159,
408,
285,
29901,
13,
4706,
4390,
29889,
15070,
29898,
16908,
29898,
5085,
511,
285,
29892,
29536,
29922,
29906,
29897,
13,
13,
13,
1753,
679,
29918,
18157,
29918,
5085,
29898,
5085,
1125,
13,
1678,
8845,
29918,
19290,
353,
9657,
29898,
13,
4706,
27262,
29922,
5574,
29892,
13,
4706,
15886,
29918,
3198,
3149,
29922,
8516,
29892,
13,
4706,
16030,
29918,
5753,
398,
2785,
29918,
19790,
29922,
29896,
13,
1678,
1723,
13,
1678,
565,
451,
6389,
29889,
1217,
29918,
26495,
29901,
13,
4706,
8845,
29918,
19290,
3366,
3409,
29916,
29918,
3198,
3149,
3108,
353,
2897,
29889,
2084,
29889,
7122,
29898,
5085,
29889,
3198,
3149,
29918,
3972,
29892,
376,
4299,
29889,
3409,
29916,
1159,
13,
1678,
565,
6389,
29889,
10599,
29918,
8173,
29901,
13,
4706,
8845,
29918,
19290,
3366,
10599,
29918,
8173,
3108,
353,
6389,
29889,
10599,
29918,
8173,
718,
376,
791,
29908,
13,
1678,
565,
6389,
29889,
18157,
29918,
2917,
338,
451,
6213,
29901,
13,
4706,
8845,
29918,
19290,
29889,
5504,
29898,
1068,
5085,
29889,
18157,
29918,
2917,
29897,
13,
13,
1678,
6389,
353,
24987,
29898,
5085,
29897,
13,
1678,
6389,
29889,
5504,
29898,
1068,
18157,
29918,
19290,
29897,
13,
1678,
736,
1852,
5510,
29889,
23335,
29898,
1068,
5085,
29897,
13,
13,
13,
1753,
731,
29918,
1526,
29875,
29918,
5085,
29898,
5085,
1125,
13,
1678,
565,
451,
6389,
29889,
1526,
29875,
29918,
5721,
7541,
29901,
13,
4706,
736,
13,
13,
1678,
17927,
29889,
27392,
703,
13398,
7541,
6694,
411,
341,
2227,
338,
5279,
297,
25267,
1213,
13,
462,
259,
376,
13658,
2304,
363,
13235,
6694,
674,
367,
6421,
297,
263,
5434,
6507,
23157,
13,
1678,
515,
286,
1631,
29946,
2272,
1053,
341,
2227,
13,
1678,
844,
353,
341,
2227,
29889,
3217,
7428,
29918,
11686,
10249,
13,
1678,
286,
1631,
29918,
2311,
353,
844,
29889,
2577,
29918,
2311,
580,
13,
1678,
286,
1631,
29918,
10003,
353,
844,
29889,
2577,
29918,
10003,
580,
13,
1678,
565,
6389,
29889,
1526,
29875,
29918,
10003,
2804,
286,
1631,
29918,
10003,
322,
6389,
29889,
1526,
29875,
29918,
10003,
2804,
29871,
29900,
29901,
13,
4706,
17927,
29889,
27392,
29898,
29888,
29908,
3563,
16554,
278,
341,
2227,
7115,
4944,
426,
5085,
29889,
1526,
29875,
29918,
10003,
29913,
304,
426,
1526,
29875,
29918,
10003,
27195,
13,
1678,
6389,
29889,
1526,
29875,
29918,
10003,
353,
286,
1631,
29918,
10003,
13,
13,
1678,
565,
6389,
29889,
1526,
29875,
29918,
2311,
2804,
286,
1631,
29918,
2311,
322,
6389,
29889,
1526,
29875,
29918,
2311,
1405,
29871,
29896,
29901,
13,
4706,
17927,
29889,
27392,
29898,
29888,
29908,
3563,
16554,
278,
341,
2227,
2159,
4944,
426,
5085,
29889,
1526,
29875,
29918,
2311,
29913,
304,
426,
1526,
29875,
29918,
2311,
27195,
13,
1678,
6389,
29889,
1526,
29875,
29918,
2311,
353,
286,
1631,
29918,
2311,
13,
13,
1678,
338,
29918,
5721,
7541,
353,
286,
1631,
29918,
2311,
1405,
29871,
29896,
13,
1678,
565,
338,
29918,
5721,
7541,
29901,
13,
4706,
565,
6389,
29889,
262,
1659,
29901,
13,
9651,
12020,
24875,
2392,
703,
13398,
7541,
8225,
871,
6969,
363,
6694,
1159,
13,
4706,
565,
6389,
29889,
7662,
2804,
376,
29903,
13356,
3035,
1115,
13,
9651,
12020,
24875,
2392,
703,
13398,
7541,
6694,
871,
6969,
411,
317,
13356,
3035,
1159,
13,
13,
1678,
565,
338,
29918,
5721,
7541,
29901,
13,
4706,
6389,
29889,
3198,
3149,
29918,
3972,
353,
6389,
29889,
3198,
3149,
29918,
3972,
718,
11119,
10003,
27508,
718,
851,
29898,
5085,
29889,
1526,
29875,
29918,
10003,
29897,
13,
2
] |
starfile/writer.py | robertbuecker/starfile | 0 | 64424 | from __future__ import annotations
from collections import OrderedDict
from datetime import datetime
from pathlib import Path
from typing import TYPE_CHECKING, Union, Dict, List
import pandas as pd
from pkg_resources import get_distribution
from .utils import TextBuffer
if TYPE_CHECKING:
from os import PathLike
__version__ = get_distribution("starfile").version
class StarWriter:
def __init__(self, dataframes: Union[pd.DataFrame, Dict[pd.DataFrame], List[pd.DataFrame]],
filename: PathLike, overwrite: bool = False, float_format: str = '%.6f',
sep: str = '\t', na_rep: str = '<NA>', force_loop: bool = False):
self.overwrite = overwrite
self.filename = filename
self.dataframes = dataframes
self.float_format = float_format
self.sep = sep
self.na_rep = na_rep
self.force_loop = force_loop
self.buffer = TextBuffer()
self.write_star_file()
@property
def dataframes(self):
"""
Ordered dictionary of pandas dataframes
df.name defines the data block name
"""
return self._dataframes
@dataframes.setter
def dataframes(self, dataframes: Union[pd.DataFrame, Dict[pd.DataFrame], List[pd.DataFrame]]):
if isinstance(dataframes, pd.DataFrame):
self._dataframes = self.coerce_dataframe(dataframes)
elif isinstance(dataframes, dict):
self._dataframes = self.coerce_dict(dataframes)
elif isinstance(dataframes, list):
self._dataframes = self.coerce_list(dataframes)
else:
raise ValueError(f'Expected a DataFrame, Dict or List object, got {type(dataframes)}')
@staticmethod
def coerce_dataframe(df: pd.DataFrame):
name = getattr(df, 'name', '')
if name != '':
name = 0
return {name: df}
@staticmethod
def coerce_dict(dfs: Dict[str, pd.DataFrame]):
"""
This method ensures that dataframe names are updated based on dict keys
"""
for key, df in dfs.items():
df.name = str(key)
return dfs
def coerce_list(self, dfs: List[pd.DataFrame]):
"""
This method coerces a list of DataFrames into a dict
"""
return self.coerce_dict(OrderedDict([(idx, df) for idx, df in enumerate(dfs)]))
@property
def filename(self):
return self._filename
@filename.setter
def filename(self, filename: Union[Path, str]):
self._filename = Path(filename)
if not self.file_writable:
raise FileExistsError('to overwrite an existing file set overwrite=True')
@property
def file_exists(self):
return self.filename.exists()
@property
def file_writable(self):
if self.overwrite or (not self.file_exists):
return True
else:
return False
def write_package_info(self):
date = datetime.now().strftime('%d/%m/%Y')
time = datetime.now().strftime('%H:%M:%S')
line = f'Created by the starfile Python package (version {__version__}) at {time} on' \
f' {date}'
self.buffer.add_comment(line)
self.buffer.add_blank_lines(1)
self.buffer.write_as_new_file_and_clear(self.filename)
def write_star_file(self, filename: str = None):
self.write_package_info()
for _, df in self.dataframes.items():
self.write_block(df)
self.buffer.add_blank_line()
self.buffer.append_to_file_and_clear(self.filename)
def write_loopheader(self, df: pd.DataFrame):
self.buffer.add_line('loop_')
lines = [f'_{column_name} #{idx}' for idx, column_name in enumerate(df.columns, 1)]
for line in lines:
self.buffer.add_line(line)
self.buffer.append_to_file_and_clear(self.filename)
@staticmethod
def get_block_name(df: pd.DataFrame):
return 'data_' + getattr(df, 'name', '')
def add_block_name_to_buffer(self, df: pd.DataFrame):
self.buffer.add_line(self.get_block_name(df))
self.buffer.add_blank_lines(1)
self.buffer.append_to_file_and_clear(self.filename)
def write_block(self, df: pd.DataFrame):
self.add_block_name_to_buffer(df)
if (df.shape[0] == 1) and not self.force_loop:
self._write_simple_block(df)
elif (df.shape[0] > 1) or self.force_loop:
self._write_loop_block(df)
self.buffer.add_blank_lines(2)
self.buffer.append_to_file_and_clear(self.filename)
def _write_simple_block(self, df: pd.DataFrame):
lines = [f'_{column_name}\t\t\t{df[column_name].iloc[0]}'
for column_name in df.columns]
for line in lines:
self.buffer.add_line(line)
self.buffer.append_to_file_and_clear(self.filename)
def _write_loop_block(self, df: pd.DataFrame):
self.write_loopheader(df)
df.to_csv(self.filename, mode='a', sep=self.sep, header=False, index=False,
float_format=self.float_format, na_rep=self.na_rep)
| [
1,
515,
4770,
29888,
9130,
1649,
1053,
25495,
13,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
3166,
12865,
1053,
12865,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
19229,
1053,
323,
6959,
29918,
3210,
16658,
4214,
29892,
7761,
29892,
360,
919,
29892,
2391,
13,
13,
5215,
11701,
408,
10518,
13,
3166,
282,
9415,
29918,
13237,
1053,
679,
29918,
27691,
13,
13,
3166,
869,
13239,
1053,
3992,
7701,
13,
13,
361,
323,
6959,
29918,
3210,
16658,
4214,
29901,
13,
1678,
515,
2897,
1053,
10802,
27552,
13,
13,
1649,
3259,
1649,
353,
679,
29918,
27691,
703,
8508,
1445,
2564,
3259,
13,
13,
13,
1990,
7828,
10507,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
848,
19935,
29901,
7761,
29961,
15926,
29889,
17271,
29892,
360,
919,
29961,
15926,
29889,
17271,
1402,
2391,
29961,
15926,
29889,
17271,
20526,
13,
462,
10422,
29901,
10802,
27552,
29892,
26556,
29901,
6120,
353,
7700,
29892,
5785,
29918,
4830,
29901,
851,
353,
14210,
29889,
29953,
29888,
742,
13,
462,
16345,
29901,
851,
353,
11297,
29873,
742,
1055,
29918,
3445,
29901,
851,
353,
12801,
3521,
29958,
742,
4889,
29918,
7888,
29901,
6120,
353,
7700,
1125,
13,
4706,
1583,
29889,
957,
3539,
353,
26556,
13,
4706,
1583,
29889,
9507,
353,
10422,
13,
4706,
1583,
29889,
1272,
19935,
353,
848,
19935,
13,
4706,
1583,
29889,
7411,
29918,
4830,
353,
5785,
29918,
4830,
13,
4706,
1583,
29889,
19570,
353,
16345,
13,
4706,
1583,
29889,
1056,
29918,
3445,
353,
1055,
29918,
3445,
13,
4706,
1583,
29889,
10118,
29918,
7888,
353,
4889,
29918,
7888,
13,
4706,
1583,
29889,
9040,
353,
3992,
7701,
580,
13,
4706,
1583,
29889,
3539,
29918,
8508,
29918,
1445,
580,
13,
13,
1678,
732,
6799,
13,
1678,
822,
848,
19935,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
8170,
287,
8600,
310,
11701,
848,
19935,
13,
4706,
4489,
29889,
978,
17645,
278,
848,
2908,
1024,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
1272,
19935,
13,
13,
1678,
732,
1272,
19935,
29889,
842,
357,
13,
1678,
822,
848,
19935,
29898,
1311,
29892,
848,
19935,
29901,
7761,
29961,
15926,
29889,
17271,
29892,
360,
919,
29961,
15926,
29889,
17271,
1402,
2391,
29961,
15926,
29889,
17271,
5262,
1125,
13,
4706,
565,
338,
8758,
29898,
1272,
19935,
29892,
10518,
29889,
17271,
1125,
13,
9651,
1583,
3032,
1272,
19935,
353,
1583,
29889,
1111,
261,
346,
29918,
1272,
2557,
29898,
1272,
19935,
29897,
13,
4706,
25342,
338,
8758,
29898,
1272,
19935,
29892,
9657,
1125,
13,
9651,
1583,
3032,
1272,
19935,
353,
1583,
29889,
1111,
261,
346,
29918,
8977,
29898,
1272,
19935,
29897,
13,
4706,
25342,
338,
8758,
29898,
1272,
19935,
29892,
1051,
1125,
13,
9651,
1583,
3032,
1272,
19935,
353,
1583,
29889,
1111,
261,
346,
29918,
1761,
29898,
1272,
19935,
29897,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
29898,
29888,
29915,
1252,
6021,
263,
3630,
4308,
29892,
360,
919,
470,
2391,
1203,
29892,
2355,
426,
1853,
29898,
1272,
19935,
2915,
1495,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
1302,
261,
346,
29918,
1272,
2557,
29898,
2176,
29901,
10518,
29889,
17271,
1125,
13,
4706,
1024,
353,
679,
5552,
29898,
2176,
29892,
525,
978,
742,
27255,
13,
4706,
565,
1024,
2804,
525,
2396,
13,
9651,
1024,
353,
29871,
29900,
13,
4706,
736,
426,
978,
29901,
4489,
29913,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
1302,
261,
346,
29918,
8977,
29898,
29069,
29901,
360,
919,
29961,
710,
29892,
10518,
29889,
17271,
29962,
1125,
13,
4706,
9995,
13,
4706,
910,
1158,
5662,
1973,
393,
12205,
2983,
526,
4784,
2729,
373,
9657,
6611,
13,
4706,
9995,
13,
4706,
363,
1820,
29892,
4489,
297,
4489,
29879,
29889,
7076,
7295,
13,
9651,
4489,
29889,
978,
353,
851,
29898,
1989,
29897,
13,
4706,
736,
4489,
29879,
13,
13,
1678,
822,
1302,
261,
346,
29918,
1761,
29898,
1311,
29892,
4489,
29879,
29901,
2391,
29961,
15926,
29889,
17271,
29962,
1125,
13,
4706,
9995,
13,
4706,
910,
1158,
1302,
261,
778,
263,
1051,
310,
3630,
14438,
1280,
964,
263,
9657,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
1111,
261,
346,
29918,
8977,
29898,
7514,
287,
21533,
4197,
29898,
13140,
29892,
4489,
29897,
363,
22645,
29892,
4489,
297,
26985,
29898,
29069,
4638,
876,
13,
13,
1678,
732,
6799,
13,
1678,
822,
10422,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
9507,
13,
13,
1678,
732,
9507,
29889,
842,
357,
13,
1678,
822,
10422,
29898,
1311,
29892,
10422,
29901,
7761,
29961,
2605,
29892,
851,
29962,
1125,
13,
4706,
1583,
3032,
9507,
353,
10802,
29898,
9507,
29897,
13,
4706,
565,
451,
1583,
29889,
1445,
29918,
8231,
519,
29901,
13,
9651,
12020,
3497,
24217,
2392,
877,
517,
26556,
385,
5923,
934,
731,
26556,
29922,
5574,
1495,
13,
13,
1678,
732,
6799,
13,
1678,
822,
934,
29918,
9933,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
9507,
29889,
9933,
580,
13,
13,
1678,
732,
6799,
13,
1678,
822,
934,
29918,
8231,
519,
29898,
1311,
1125,
13,
4706,
565,
1583,
29889,
957,
3539,
470,
313,
1333,
1583,
29889,
1445,
29918,
9933,
1125,
13,
9651,
736,
5852,
13,
4706,
1683,
29901,
13,
9651,
736,
7700,
13,
13,
1678,
822,
2436,
29918,
5113,
29918,
3888,
29898,
1311,
1125,
13,
4706,
2635,
353,
12865,
29889,
3707,
2141,
710,
615,
603,
877,
29995,
29881,
22584,
29885,
22584,
29979,
1495,
13,
4706,
931,
353,
12865,
29889,
3707,
2141,
710,
615,
603,
877,
29995,
29950,
16664,
29924,
16664,
29903,
1495,
13,
4706,
1196,
353,
285,
29915,
20399,
491,
278,
5810,
1445,
5132,
3577,
313,
3259,
426,
1649,
3259,
1649,
1800,
472,
426,
2230,
29913,
373,
29915,
320,
13,
1669,
285,
29915,
426,
1256,
10162,
13,
4706,
1583,
29889,
9040,
29889,
1202,
29918,
9342,
29898,
1220,
29897,
13,
4706,
1583,
29889,
9040,
29889,
1202,
29918,
19465,
29918,
9012,
29898,
29896,
29897,
13,
4706,
1583,
29889,
9040,
29889,
3539,
29918,
294,
29918,
1482,
29918,
1445,
29918,
392,
29918,
8551,
29898,
1311,
29889,
9507,
29897,
13,
13,
1678,
822,
2436,
29918,
8508,
29918,
1445,
29898,
1311,
29892,
10422,
29901,
851,
353,
6213,
1125,
13,
4706,
1583,
29889,
3539,
29918,
5113,
29918,
3888,
580,
13,
13,
4706,
363,
17117,
4489,
297,
1583,
29889,
1272,
19935,
29889,
7076,
7295,
13,
9651,
1583,
29889,
3539,
29918,
1271,
29898,
2176,
29897,
13,
13,
4706,
1583,
29889,
9040,
29889,
1202,
29918,
19465,
29918,
1220,
580,
13,
4706,
1583,
29889,
9040,
29889,
4397,
29918,
517,
29918,
1445,
29918,
392,
29918,
8551,
29898,
1311,
29889,
9507,
29897,
13,
13,
1678,
822,
2436,
29918,
7888,
6672,
29898,
1311,
29892,
4489,
29901,
10518,
29889,
17271,
1125,
13,
4706,
1583,
29889,
9040,
29889,
1202,
29918,
1220,
877,
7888,
29918,
1495,
13,
4706,
3454,
353,
518,
29888,
29915,
648,
4914,
29918,
978,
29913,
24037,
13140,
10162,
363,
22645,
29892,
1897,
29918,
978,
297,
26985,
29898,
2176,
29889,
13099,
29892,
29871,
29896,
4638,
13,
13,
4706,
363,
1196,
297,
3454,
29901,
13,
9651,
1583,
29889,
9040,
29889,
1202,
29918,
1220,
29898,
1220,
29897,
13,
13,
4706,
1583,
29889,
9040,
29889,
4397,
29918,
517,
29918,
1445,
29918,
392,
29918,
8551,
29898,
1311,
29889,
9507,
29897,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
679,
29918,
1271,
29918,
978,
29898,
2176,
29901,
10518,
29889,
17271,
1125,
13,
4706,
736,
525,
1272,
29918,
29915,
718,
679,
5552,
29898,
2176,
29892,
525,
978,
742,
27255,
13,
13,
1678,
822,
788,
29918,
1271,
29918,
978,
29918,
517,
29918,
9040,
29898,
1311,
29892,
4489,
29901,
10518,
29889,
17271,
1125,
13,
4706,
1583,
29889,
9040,
29889,
1202,
29918,
1220,
29898,
1311,
29889,
657,
29918,
1271,
29918,
978,
29898,
2176,
876,
13,
4706,
1583,
29889,
9040,
29889,
1202,
29918,
19465,
29918,
9012,
29898,
29896,
29897,
13,
4706,
1583,
29889,
9040,
29889,
4397,
29918,
517,
29918,
1445,
29918,
392,
29918,
8551,
29898,
1311,
29889,
9507,
29897,
13,
13,
1678,
822,
2436,
29918,
1271,
29898,
1311,
29892,
4489,
29901,
10518,
29889,
17271,
1125,
13,
4706,
1583,
29889,
1202,
29918,
1271,
29918,
978,
29918,
517,
29918,
9040,
29898,
2176,
29897,
13,
13,
4706,
565,
313,
2176,
29889,
12181,
29961,
29900,
29962,
1275,
29871,
29896,
29897,
322,
451,
1583,
29889,
10118,
29918,
7888,
29901,
13,
9651,
1583,
3032,
3539,
29918,
12857,
29918,
1271,
29898,
2176,
29897,
13,
4706,
25342,
313,
2176,
29889,
12181,
29961,
29900,
29962,
1405,
29871,
29896,
29897,
470,
1583,
29889,
10118,
29918,
7888,
29901,
13,
9651,
1583,
3032,
3539,
29918,
7888,
29918,
1271,
29898,
2176,
29897,
13,
4706,
1583,
29889,
9040,
29889,
1202,
29918,
19465,
29918,
9012,
29898,
29906,
29897,
13,
4706,
1583,
29889,
9040,
29889,
4397,
29918,
517,
29918,
1445,
29918,
392,
29918,
8551,
29898,
1311,
29889,
9507,
29897,
13,
13,
1678,
822,
903,
3539,
29918,
12857,
29918,
1271,
29898,
1311,
29892,
4489,
29901,
10518,
29889,
17271,
1125,
13,
4706,
3454,
353,
518,
29888,
29915,
648,
4914,
29918,
978,
1012,
29873,
29905,
29873,
29905,
29873,
29912,
2176,
29961,
4914,
29918,
978,
1822,
309,
542,
29961,
29900,
29962,
10162,
13,
462,
363,
1897,
29918,
978,
297,
4489,
29889,
13099,
29962,
13,
4706,
363,
1196,
297,
3454,
29901,
13,
9651,
1583,
29889,
9040,
29889,
1202,
29918,
1220,
29898,
1220,
29897,
13,
4706,
1583,
29889,
9040,
29889,
4397,
29918,
517,
29918,
1445,
29918,
392,
29918,
8551,
29898,
1311,
29889,
9507,
29897,
13,
13,
1678,
822,
903,
3539,
29918,
7888,
29918,
1271,
29898,
1311,
29892,
4489,
29901,
10518,
29889,
17271,
1125,
13,
4706,
1583,
29889,
3539,
29918,
7888,
6672,
29898,
2176,
29897,
13,
4706,
4489,
29889,
517,
29918,
7638,
29898,
1311,
29889,
9507,
29892,
4464,
2433,
29874,
742,
16345,
29922,
1311,
29889,
19570,
29892,
4839,
29922,
8824,
29892,
2380,
29922,
8824,
29892,
13,
462,
29871,
5785,
29918,
4830,
29922,
1311,
29889,
7411,
29918,
4830,
29892,
1055,
29918,
3445,
29922,
1311,
29889,
1056,
29918,
3445,
29897,
13,
2
] |
models/loss.py | kungyao/StyledFontGAN | 18 | 1606928 | <filename>models/loss.py
from operator import itemgetter
import torch
from torch.autograd import grad as torch_grad
def l1_and_adversarial_loss(D, G, real_data, generated_data, losses, options):
l1_lamba = 10
return min_max_loss(D, G, real_data, generated_data, losses, options) + l1_lamba * l1_loss(D, G, real_data, generated_data, losses, options)
def wasserstein_loss(D, G, real_data, generated_data, losses, options):
real_loss = D(real_data)
generated_loss = D(generated_data)
batch_size, data_type = itemgetter('batch_size', 'data_type')(options)
gradient_penalty_weight = 10
# Calculate gradient penalty
gradient_penalty = calculate_gradient_penalty(D, real_data, generated_data, batch_size, gradient_penalty_weight, losses, data_type)
losses['GP'].append(gradient_penalty.data)
# Calculate the Wasserstein Distance.
loss = generated_loss.mean() - real_loss.mean() + gradient_penalty
losses['Generated'].append(generated_loss.mean().data)
losses['Real'].append(real_loss.mean().data)
losses['D'].append(loss.data)
return loss
def min_max_loss(D, G, real_data, generated_data, losses, options):
# Forward pass with the discriminator
discriminator_loss = D(generated_data)
# Update the loss. We're trying to fool the discriminator to say '1, this is real'
loss = -discriminator_loss.mean()
return loss
def l1_loss(D, G, real_data, generated_data, losses, options):
"""
Performs the L1 loss between the generated data and the real data.
It is expected that both `real_data` and `generated_data` are of the same shape.
"""
return torch.nn.L1Loss()(generated_data, real_data)
def calculate_gradient_penalty(D, real_data, generated_data, batch_size, gradient_penalty_weight, losses, data_type):
# Calculate interpolation
alpha = torch.rand(batch_size, 1, 1, 1).expand_as(real_data).type(data_type)
# 'interpolated' is x-hat
interpolated = (alpha * real_data.data + (1 - alpha) * generated_data.data).type(data_type)
interpolated.requires_grad = True
# Calculate probability of interpolated examples
probability_interpolated = D(interpolated)
gradients = torch_grad(outputs=probability_interpolated,
inputs=interpolated,
grad_outputs=torch.ones(
probability_interpolated.size()).type(data_type),
create_graph=True,
retain_graph=True)[0]
# Gradients have shape (batch_size, num_channels, img_width, img_height),
# so flatten to easily take norm per example in batch
gradients = gradients.view(batch_size, -1)
losses['gradient_norm'].append(gradients.norm(2, dim=1).mean().data)
# Derivatives of the gradient close to 0 can cause problems because of
# the square root, so manually calculate norm and add epsilon
gradients_norm = torch.sqrt(torch.sum(gradients ** 2, dim=1) + 1e-12)
# Return gradient penalty
return gradient_penalty_weight * ((gradients_norm - 1) ** 2).mean() | [
1,
529,
9507,
29958,
9794,
29914,
6758,
29889,
2272,
13,
3166,
5455,
1053,
2944,
657,
357,
13,
13,
5215,
4842,
305,
13,
3166,
4842,
305,
29889,
1300,
468,
3665,
1053,
4656,
408,
4842,
305,
29918,
5105,
13,
13,
1753,
301,
29896,
29918,
392,
29918,
328,
874,
27521,
29918,
6758,
29898,
29928,
29892,
402,
29892,
1855,
29918,
1272,
29892,
5759,
29918,
1272,
29892,
28495,
29892,
3987,
1125,
13,
29871,
301,
29896,
29918,
29880,
20027,
353,
29871,
29896,
29900,
13,
29871,
736,
1375,
29918,
3317,
29918,
6758,
29898,
29928,
29892,
402,
29892,
1855,
29918,
1272,
29892,
5759,
29918,
1272,
29892,
28495,
29892,
3987,
29897,
718,
301,
29896,
29918,
29880,
20027,
334,
301,
29896,
29918,
6758,
29898,
29928,
29892,
402,
29892,
1855,
29918,
1272,
29892,
5759,
29918,
1272,
29892,
28495,
29892,
3987,
29897,
13,
13,
1753,
281,
9498,
5465,
29918,
6758,
29898,
29928,
29892,
402,
29892,
1855,
29918,
1272,
29892,
5759,
29918,
1272,
29892,
28495,
29892,
3987,
1125,
13,
29871,
1855,
29918,
6758,
353,
360,
29898,
6370,
29918,
1272,
29897,
13,
29871,
5759,
29918,
6758,
353,
360,
29898,
13525,
29918,
1272,
29897,
13,
13,
29871,
9853,
29918,
2311,
29892,
848,
29918,
1853,
353,
2944,
657,
357,
877,
16175,
29918,
2311,
742,
525,
1272,
29918,
1853,
1495,
29898,
6768,
29897,
13,
29871,
16030,
29918,
2238,
18745,
29918,
7915,
353,
29871,
29896,
29900,
13,
13,
29871,
396,
20535,
403,
16030,
27368,
13,
29871,
16030,
29918,
2238,
18745,
353,
8147,
29918,
24970,
29918,
2238,
18745,
29898,
29928,
29892,
1855,
29918,
1272,
29892,
5759,
29918,
1272,
29892,
9853,
29918,
2311,
29892,
16030,
29918,
2238,
18745,
29918,
7915,
29892,
28495,
29892,
848,
29918,
1853,
29897,
13,
29871,
28495,
1839,
19903,
13359,
4397,
29898,
24970,
29918,
2238,
18745,
29889,
1272,
29897,
13,
13,
29871,
396,
20535,
403,
278,
16124,
5465,
6652,
749,
29889,
13,
29871,
6410,
353,
5759,
29918,
6758,
29889,
12676,
580,
448,
1855,
29918,
6758,
29889,
12676,
580,
718,
16030,
29918,
2238,
18745,
13,
29871,
28495,
1839,
24565,
13359,
4397,
29898,
13525,
29918,
6758,
29889,
12676,
2141,
1272,
29897,
13,
29871,
28495,
1839,
21713,
13359,
4397,
29898,
6370,
29918,
6758,
29889,
12676,
2141,
1272,
29897,
13,
29871,
28495,
1839,
29928,
13359,
4397,
29898,
6758,
29889,
1272,
29897,
13,
13,
29871,
736,
6410,
13,
13,
1753,
1375,
29918,
3317,
29918,
6758,
29898,
29928,
29892,
402,
29892,
1855,
29918,
1272,
29892,
5759,
29918,
1272,
29892,
28495,
29892,
3987,
1125,
13,
29871,
396,
1152,
1328,
1209,
411,
278,
2313,
20386,
1061,
13,
29871,
2313,
20386,
1061,
29918,
6758,
353,
360,
29898,
13525,
29918,
1272,
29897,
13,
13,
29871,
396,
10318,
278,
6410,
29889,
1334,
29915,
276,
1811,
304,
17928,
278,
2313,
20386,
1061,
304,
1827,
525,
29896,
29892,
445,
338,
1855,
29915,
13,
29871,
6410,
353,
448,
2218,
29883,
20386,
1061,
29918,
6758,
29889,
12676,
580,
13,
13,
29871,
736,
6410,
13,
13,
1753,
301,
29896,
29918,
6758,
29898,
29928,
29892,
402,
29892,
1855,
29918,
1272,
29892,
5759,
29918,
1272,
29892,
28495,
29892,
3987,
1125,
13,
29871,
9995,
13,
29871,
2431,
9514,
278,
365,
29896,
6410,
1546,
278,
5759,
848,
322,
278,
1855,
848,
29889,
13,
13,
29871,
739,
338,
3806,
393,
1716,
421,
6370,
29918,
1272,
29952,
322,
421,
13525,
29918,
1272,
29952,
526,
310,
278,
1021,
8267,
29889,
13,
29871,
9995,
13,
29871,
736,
4842,
305,
29889,
15755,
29889,
29931,
29896,
29931,
2209,
580,
29898,
13525,
29918,
1272,
29892,
1855,
29918,
1272,
29897,
13,
13,
13,
1753,
8147,
29918,
24970,
29918,
2238,
18745,
29898,
29928,
29892,
1855,
29918,
1272,
29892,
5759,
29918,
1272,
29892,
9853,
29918,
2311,
29892,
16030,
29918,
2238,
18745,
29918,
7915,
29892,
28495,
29892,
848,
29918,
1853,
1125,
13,
1678,
396,
20535,
403,
29694,
13,
1678,
15595,
353,
4842,
305,
29889,
9502,
29898,
16175,
29918,
2311,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
467,
18837,
29918,
294,
29898,
6370,
29918,
1272,
467,
1853,
29898,
1272,
29918,
1853,
29897,
13,
13,
1678,
396,
525,
1639,
3733,
630,
29915,
338,
921,
29899,
2455,
13,
1678,
20064,
630,
353,
313,
2312,
334,
1855,
29918,
1272,
29889,
1272,
718,
313,
29896,
448,
15595,
29897,
334,
5759,
29918,
1272,
29889,
1272,
467,
1853,
29898,
1272,
29918,
1853,
29897,
13,
1678,
20064,
630,
29889,
276,
339,
2658,
29918,
5105,
353,
5852,
13,
13,
1678,
396,
20535,
403,
6976,
310,
20064,
630,
6455,
13,
1678,
6976,
29918,
1639,
3733,
630,
353,
360,
29898,
1639,
3733,
630,
29897,
13,
13,
1678,
4656,
10070,
353,
4842,
305,
29918,
5105,
29898,
4905,
29879,
29922,
22795,
3097,
29918,
1639,
3733,
630,
29892,
13,
462,
965,
10970,
29922,
1639,
3733,
630,
29892,
13,
462,
965,
4656,
29918,
4905,
29879,
29922,
7345,
305,
29889,
2873,
29898,
13,
462,
1669,
6976,
29918,
1639,
3733,
630,
29889,
2311,
16655,
1853,
29898,
1272,
29918,
1853,
511,
13,
462,
965,
1653,
29918,
4262,
29922,
5574,
29892,
13,
462,
965,
11551,
29918,
4262,
29922,
5574,
9601,
29900,
29962,
13,
13,
1678,
396,
19295,
10070,
505,
8267,
313,
16175,
29918,
2311,
29892,
954,
29918,
305,
12629,
29892,
10153,
29918,
2103,
29892,
10153,
29918,
3545,
511,
13,
1678,
396,
577,
1652,
8606,
304,
5948,
2125,
6056,
639,
1342,
297,
9853,
13,
1678,
4656,
10070,
353,
4656,
10070,
29889,
1493,
29898,
16175,
29918,
2311,
29892,
448,
29896,
29897,
13,
1678,
28495,
1839,
24970,
29918,
12324,
13359,
4397,
29898,
5105,
10070,
29889,
12324,
29898,
29906,
29892,
3964,
29922,
29896,
467,
12676,
2141,
1272,
29897,
13,
13,
1678,
396,
2452,
440,
5056,
310,
278,
16030,
3802,
304,
29871,
29900,
508,
4556,
4828,
1363,
310,
13,
1678,
396,
278,
6862,
3876,
29892,
577,
7522,
8147,
6056,
322,
788,
321,
3232,
13,
1678,
4656,
10070,
29918,
12324,
353,
4842,
305,
29889,
3676,
29898,
7345,
305,
29889,
2083,
29898,
5105,
10070,
3579,
29871,
29906,
29892,
3964,
29922,
29896,
29897,
718,
29871,
29896,
29872,
29899,
29896,
29906,
29897,
13,
13,
1678,
396,
7106,
16030,
27368,
13,
1678,
736,
16030,
29918,
2238,
18745,
29918,
7915,
334,
5135,
5105,
10070,
29918,
12324,
448,
29871,
29896,
29897,
3579,
29871,
29906,
467,
12676,
580,
2
] |
EasyRecycle/tests/unittests/recycle/views/test_EditCommercialOrderAPIView.py | YuriyLisovskiy/EasyRecycle | 0 | 43457 | from django.urls import reverse
from rest_framework import status
from rest_framework.test import force_authenticate
from core.models import UserModel
from recycle import garbage
from recycle.models import CommercialRequest, Location
from recycle.views.commercial_order import EditCommercialOrderAPIView
from tests.unittests.common import APIFactoryTestCase
class EditCommercialOrderAPIViewUpdateTestCase(APIFactoryTestCase):
def setUp(self) -> None:
super(EditCommercialOrderAPIViewUpdateTestCase, self).setUp()
self.user = UserModel.objects.get(username='User')
self.super_user = UserModel.objects.get(username='SuperUser')
self.gc_user = UserModel.objects.get(username='GCUser')
self.commercial_user = UserModel.objects.get(username='CommercialUser')
self.commercial_order = CommercialRequest.objects.get(address='Hello st., 11')
self.view = EditCommercialOrderAPIView.as_view()
def check_permission_denied(self):
request = self.request_factory.put(reverse('api_v1:recycle:edit_commercial_order', args=[self.commercial_order.pk]))
force_authenticate(request, self.user)
response = self.view(request, pk=self.commercial_order.pk)
self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
def test_AnonymousUser(self):
request = self.request_factory.put(reverse('api_v1:recycle:edit_commercial_order', args=[self.commercial_order.pk]))
response = self.view(request, pk=self.commercial_order.pk)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
def test_AuthenticatedUser(self):
self.check_permission_denied()
def test_CommercialUser(self):
self.check_permission_denied()
def test_SuperUser(self):
input_data = {
'address': 'Hello St. 10',
'date': '2021-05-03',
'garbage_type': garbage.METAL,
'mass': 15.7,
'status': CommercialRequest.IN_PROGRESS,
'location': Location.objects.get(address='Second st. 1').id,
'user': UserModel.objects.get(username='CommercialUser2').id
}
request = self.request_factory.put(
reverse('api_v1:recycle:edit_commercial_order', args=[self.commercial_order.pk]), data=input_data
)
force_authenticate(request, self.super_user)
response = self.view(request, pk=self.commercial_order.pk)
self.assertEqual(response.status_code, status.HTTP_200_OK)
actual_order = response.data
self.assertEqual(input_data['address'], actual_order['address'])
self.assertEqual(input_data['date'], actual_order['date'])
self.assertEqual(input_data['garbage_type'], actual_order['garbage_type'])
self.assertEqual(input_data['mass'], actual_order['mass'])
self.assertEqual(input_data['status'], actual_order['status'])
self.assertEqual(input_data['location'], actual_order['location'])
self.assertEqual(input_data['user'], actual_order['user'])
def test_UpdateDoneOrder(self):
input_data = {
'address': 'Hello St. 10'
}
order = CommercialRequest.objects.get(address='Hello st., 12')
request = self.request_factory.put(
reverse('api_v1:recycle:edit_commercial_order', args=[order.pk]), data=input_data
)
force_authenticate(request, self.super_user)
response = self.view(request, pk=order.pk)
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
def test_GCUpdateStatusOnly(self):
input_data = {
'status': CommercialRequest.IN_PROGRESS
}
order = CommercialRequest.objects.get(address='Hello st., 12')
request = self.request_factory.put(
reverse('api_v1:recycle:edit_commercial_order', args=[order.pk]), data=input_data
)
force_authenticate(request, self.gc_user)
response = self.view(request, pk=self.commercial_order.pk)
self.assertEqual(response.status_code, status.HTTP_200_OK)
def run_update_field(self, data):
request = self.request_factory.put(
reverse('api_v1:recycle:edit_commercial_order', args=[self.commercial_order.pk]), data=data
)
force_authenticate(request, self.super_user)
response = self.view(request, pk=self.commercial_order.pk)
self.assertEqual(response.status_code, status.HTTP_200_OK)
def test_UpdateAddress(self):
input_data = {
'address': 'Hello St. 10'
}
self.run_update_field(input_data)
actual_order = CommercialRequest.objects.get(pk=self.commercial_order.pk)
self.assertEqual(actual_order.address, input_data['address'])
def test_UpdateDate(self):
input_data = {
'date': '2021-05-03'
}
self.run_update_field(input_data)
actual_order = CommercialRequest.objects.get(pk=self.commercial_order.pk)
self.assertEqual(actual_order.date.strftime('%Y-%m-%d'), input_data['date'])
def test_UpdateGarbageType(self):
input_data = {
'garbage_type': garbage.PAPER
}
self.run_update_field(input_data)
actual_order = CommercialRequest.objects.get(pk=self.commercial_order.pk)
self.assertEqual(actual_order.garbage_type, input_data['garbage_type'])
def test_UpdateMass(self):
input_data = {
'mass': 15.7
}
self.run_update_field(input_data)
actual_order = CommercialRequest.objects.get(pk=self.commercial_order.pk)
self.assertEqual(actual_order.mass, input_data['mass'])
def test_UpdateStatus(self):
input_data = {
'status': CommercialRequest.IN_PROGRESS
}
self.run_update_field(input_data)
actual_order = CommercialRequest.objects.get(pk=self.commercial_order.pk)
self.assertEqual(actual_order.status, input_data['status'])
def test_UpdateLocation(self):
input_data = {
'location': Location.objects.get(address='Second st. 1').id
}
self.run_update_field(input_data)
actual_order = CommercialRequest.objects.get(pk=self.commercial_order.pk)
self.assertEqual(actual_order.location.id, input_data['location'])
def test_UpdateUser(self):
input_data = {
'user': UserModel.objects.get(username='CommercialUser2').id
}
self.run_update_field(input_data)
actual_order = CommercialRequest.objects.get(pk=self.commercial_order.pk)
self.assertEqual(actual_order.user.id, input_data['user'])
| [
1,
515,
9557,
29889,
26045,
1053,
11837,
13,
3166,
1791,
29918,
4468,
1053,
4660,
13,
3166,
1791,
29918,
4468,
29889,
1688,
1053,
4889,
29918,
27218,
403,
13,
13,
3166,
7136,
29889,
9794,
1053,
4911,
3195,
13,
3166,
1162,
13317,
1053,
25861,
13,
3166,
1162,
13317,
29889,
9794,
1053,
422,
1050,
1455,
3089,
29892,
17015,
13,
3166,
1162,
13317,
29889,
7406,
29889,
510,
1050,
1455,
29918,
2098,
1053,
7641,
1523,
1050,
1455,
7514,
8787,
1043,
13,
3166,
6987,
29889,
348,
986,
9197,
29889,
9435,
1053,
3450,
5126,
3057,
8259,
13,
13,
13,
1990,
7641,
1523,
1050,
1455,
7514,
8787,
1043,
6422,
3057,
8259,
29898,
8787,
5126,
3057,
8259,
1125,
13,
13,
12,
1753,
731,
3373,
29898,
1311,
29897,
1599,
6213,
29901,
13,
12,
12,
9136,
29898,
6103,
1523,
1050,
1455,
7514,
8787,
1043,
6422,
3057,
8259,
29892,
1583,
467,
842,
3373,
580,
13,
12,
12,
1311,
29889,
1792,
353,
4911,
3195,
29889,
12650,
29889,
657,
29898,
6786,
2433,
2659,
1495,
13,
12,
12,
1311,
29889,
9136,
29918,
1792,
353,
4911,
3195,
29889,
12650,
29889,
657,
29898,
6786,
2433,
19111,
2659,
1495,
13,
12,
12,
1311,
29889,
27354,
29918,
1792,
353,
4911,
3195,
29889,
12650,
29889,
657,
29898,
6786,
2433,
8766,
2659,
1495,
13,
12,
12,
1311,
29889,
510,
1050,
1455,
29918,
1792,
353,
4911,
3195,
29889,
12650,
29889,
657,
29898,
6786,
2433,
1523,
1050,
1455,
2659,
1495,
13,
12,
12,
1311,
29889,
510,
1050,
1455,
29918,
2098,
353,
422,
1050,
1455,
3089,
29889,
12650,
29889,
657,
29898,
7328,
2433,
10994,
380,
1696,
29871,
29896,
29896,
1495,
13,
12,
12,
1311,
29889,
1493,
353,
7641,
1523,
1050,
1455,
7514,
8787,
1043,
29889,
294,
29918,
1493,
580,
13,
13,
12,
1753,
1423,
29918,
16074,
29918,
1145,
1000,
29898,
1311,
1125,
13,
12,
12,
3827,
353,
1583,
29889,
3827,
29918,
14399,
29889,
649,
29898,
24244,
877,
2754,
29918,
29894,
29896,
29901,
276,
23090,
29901,
5628,
29918,
510,
1050,
1455,
29918,
2098,
742,
6389,
11759,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
12622,
13,
12,
12,
10118,
29918,
27218,
403,
29898,
3827,
29892,
1583,
29889,
1792,
29897,
13,
12,
12,
5327,
353,
1583,
29889,
1493,
29898,
3827,
29892,
282,
29895,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
5327,
29889,
4882,
29918,
401,
29892,
4660,
29889,
10493,
29918,
29946,
29900,
29941,
29918,
22051,
29933,
1367,
29928,
1430,
29897,
13,
13,
12,
1753,
1243,
29918,
2744,
11428,
2659,
29898,
1311,
1125,
13,
12,
12,
3827,
353,
1583,
29889,
3827,
29918,
14399,
29889,
649,
29898,
24244,
877,
2754,
29918,
29894,
29896,
29901,
276,
23090,
29901,
5628,
29918,
510,
1050,
1455,
29918,
2098,
742,
6389,
11759,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
12622,
13,
12,
12,
5327,
353,
1583,
29889,
1493,
29898,
3827,
29892,
282,
29895,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
5327,
29889,
4882,
29918,
401,
29892,
4660,
29889,
10493,
29918,
29946,
29900,
29896,
29918,
29965,
3521,
2692,
29950,
1955,
26664,
3352,
29897,
13,
13,
12,
1753,
1243,
29918,
6444,
4173,
630,
2659,
29898,
1311,
1125,
13,
12,
12,
1311,
29889,
3198,
29918,
16074,
29918,
1145,
1000,
580,
13,
13,
12,
1753,
1243,
29918,
1523,
1050,
1455,
2659,
29898,
1311,
1125,
13,
12,
12,
1311,
29889,
3198,
29918,
16074,
29918,
1145,
1000,
580,
13,
13,
12,
1753,
1243,
29918,
19111,
2659,
29898,
1311,
1125,
13,
12,
12,
2080,
29918,
1272,
353,
426,
13,
12,
12,
12,
29915,
7328,
2396,
525,
10994,
624,
29889,
29871,
29896,
29900,
742,
13,
12,
12,
12,
29915,
1256,
2396,
525,
29906,
29900,
29906,
29896,
29899,
29900,
29945,
29899,
29900,
29941,
742,
13,
12,
12,
12,
29915,
5397,
17807,
29918,
1853,
2396,
25861,
29889,
2303,
29911,
1964,
29892,
13,
12,
12,
12,
29915,
25379,
2396,
29871,
29896,
29945,
29889,
29955,
29892,
13,
12,
12,
12,
29915,
4882,
2396,
422,
1050,
1455,
3089,
29889,
1177,
29918,
8618,
29954,
26785,
29892,
13,
12,
12,
12,
29915,
5479,
2396,
17015,
29889,
12650,
29889,
657,
29898,
7328,
2433,
11863,
380,
29889,
29871,
29896,
2824,
333,
29892,
13,
12,
12,
12,
29915,
1792,
2396,
4911,
3195,
29889,
12650,
29889,
657,
29898,
6786,
2433,
1523,
1050,
1455,
2659,
29906,
2824,
333,
13,
12,
12,
29913,
13,
12,
12,
3827,
353,
1583,
29889,
3827,
29918,
14399,
29889,
649,
29898,
13,
12,
12,
12,
24244,
877,
2754,
29918,
29894,
29896,
29901,
276,
23090,
29901,
5628,
29918,
510,
1050,
1455,
29918,
2098,
742,
6389,
11759,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
11724,
848,
29922,
2080,
29918,
1272,
13,
12,
12,
29897,
13,
12,
12,
10118,
29918,
27218,
403,
29898,
3827,
29892,
1583,
29889,
9136,
29918,
1792,
29897,
13,
12,
12,
5327,
353,
1583,
29889,
1493,
29898,
3827,
29892,
282,
29895,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
5327,
29889,
4882,
29918,
401,
29892,
4660,
29889,
10493,
29918,
29906,
29900,
29900,
29918,
8949,
29897,
13,
13,
12,
12,
19304,
29918,
2098,
353,
2933,
29889,
1272,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
2080,
29918,
1272,
1839,
7328,
7464,
3935,
29918,
2098,
1839,
7328,
11287,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
2080,
29918,
1272,
1839,
1256,
7464,
3935,
29918,
2098,
1839,
1256,
11287,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
2080,
29918,
1272,
1839,
5397,
17807,
29918,
1853,
7464,
3935,
29918,
2098,
1839,
5397,
17807,
29918,
1853,
11287,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
2080,
29918,
1272,
1839,
25379,
7464,
3935,
29918,
2098,
1839,
25379,
11287,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
2080,
29918,
1272,
1839,
4882,
7464,
3935,
29918,
2098,
1839,
4882,
11287,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
2080,
29918,
1272,
1839,
5479,
7464,
3935,
29918,
2098,
1839,
5479,
11287,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
2080,
29918,
1272,
1839,
1792,
7464,
3935,
29918,
2098,
1839,
1792,
11287,
13,
13,
12,
1753,
1243,
29918,
6422,
25632,
7514,
29898,
1311,
1125,
13,
12,
12,
2080,
29918,
1272,
353,
426,
13,
12,
12,
12,
29915,
7328,
2396,
525,
10994,
624,
29889,
29871,
29896,
29900,
29915,
13,
12,
12,
29913,
13,
12,
12,
2098,
353,
422,
1050,
1455,
3089,
29889,
12650,
29889,
657,
29898,
7328,
2433,
10994,
380,
1696,
29871,
29896,
29906,
1495,
13,
12,
12,
3827,
353,
1583,
29889,
3827,
29918,
14399,
29889,
649,
29898,
13,
12,
12,
12,
24244,
877,
2754,
29918,
29894,
29896,
29901,
276,
23090,
29901,
5628,
29918,
510,
1050,
1455,
29918,
2098,
742,
6389,
11759,
2098,
29889,
20571,
11724,
848,
29922,
2080,
29918,
1272,
13,
12,
12,
29897,
13,
12,
12,
10118,
29918,
27218,
403,
29898,
3827,
29892,
1583,
29889,
9136,
29918,
1792,
29897,
13,
12,
12,
5327,
353,
1583,
29889,
1493,
29898,
3827,
29892,
282,
29895,
29922,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
5327,
29889,
4882,
29918,
401,
29892,
4660,
29889,
10493,
29918,
29946,
29900,
29900,
29918,
29933,
3035,
29918,
16244,
29897,
13,
13,
12,
1753,
1243,
29918,
8766,
6422,
5709,
11730,
29898,
1311,
1125,
13,
12,
12,
2080,
29918,
1272,
353,
426,
13,
12,
12,
12,
29915,
4882,
2396,
422,
1050,
1455,
3089,
29889,
1177,
29918,
8618,
29954,
26785,
13,
12,
12,
29913,
13,
12,
12,
2098,
353,
422,
1050,
1455,
3089,
29889,
12650,
29889,
657,
29898,
7328,
2433,
10994,
380,
1696,
29871,
29896,
29906,
1495,
13,
12,
12,
3827,
353,
1583,
29889,
3827,
29918,
14399,
29889,
649,
29898,
13,
12,
12,
12,
24244,
877,
2754,
29918,
29894,
29896,
29901,
276,
23090,
29901,
5628,
29918,
510,
1050,
1455,
29918,
2098,
742,
6389,
11759,
2098,
29889,
20571,
11724,
848,
29922,
2080,
29918,
1272,
13,
12,
12,
29897,
13,
12,
12,
10118,
29918,
27218,
403,
29898,
3827,
29892,
1583,
29889,
27354,
29918,
1792,
29897,
13,
12,
12,
5327,
353,
1583,
29889,
1493,
29898,
3827,
29892,
282,
29895,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
5327,
29889,
4882,
29918,
401,
29892,
4660,
29889,
10493,
29918,
29906,
29900,
29900,
29918,
8949,
29897,
13,
13,
12,
1753,
1065,
29918,
5504,
29918,
2671,
29898,
1311,
29892,
848,
1125,
13,
12,
12,
3827,
353,
1583,
29889,
3827,
29918,
14399,
29889,
649,
29898,
13,
12,
12,
12,
24244,
877,
2754,
29918,
29894,
29896,
29901,
276,
23090,
29901,
5628,
29918,
510,
1050,
1455,
29918,
2098,
742,
6389,
11759,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
11724,
848,
29922,
1272,
13,
12,
12,
29897,
13,
12,
12,
10118,
29918,
27218,
403,
29898,
3827,
29892,
1583,
29889,
9136,
29918,
1792,
29897,
13,
12,
12,
5327,
353,
1583,
29889,
1493,
29898,
3827,
29892,
282,
29895,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
5327,
29889,
4882,
29918,
401,
29892,
4660,
29889,
10493,
29918,
29906,
29900,
29900,
29918,
8949,
29897,
13,
13,
12,
1753,
1243,
29918,
6422,
7061,
29898,
1311,
1125,
13,
12,
12,
2080,
29918,
1272,
353,
426,
13,
12,
12,
12,
29915,
7328,
2396,
525,
10994,
624,
29889,
29871,
29896,
29900,
29915,
13,
12,
12,
29913,
13,
12,
12,
1311,
29889,
3389,
29918,
5504,
29918,
2671,
29898,
2080,
29918,
1272,
29897,
13,
12,
12,
19304,
29918,
2098,
353,
422,
1050,
1455,
3089,
29889,
12650,
29889,
657,
29898,
20571,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
19304,
29918,
2098,
29889,
7328,
29892,
1881,
29918,
1272,
1839,
7328,
11287,
13,
13,
12,
1753,
1243,
29918,
6422,
2539,
29898,
1311,
1125,
13,
12,
12,
2080,
29918,
1272,
353,
426,
13,
12,
12,
12,
29915,
1256,
2396,
525,
29906,
29900,
29906,
29896,
29899,
29900,
29945,
29899,
29900,
29941,
29915,
13,
12,
12,
29913,
13,
12,
12,
1311,
29889,
3389,
29918,
5504,
29918,
2671,
29898,
2080,
29918,
1272,
29897,
13,
12,
12,
19304,
29918,
2098,
353,
422,
1050,
1455,
3089,
29889,
12650,
29889,
657,
29898,
20571,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
19304,
29918,
2098,
29889,
1256,
29889,
710,
615,
603,
877,
29995,
29979,
19222,
29885,
19222,
29881,
5477,
1881,
29918,
1272,
1839,
1256,
11287,
13,
13,
12,
1753,
1243,
29918,
6422,
29954,
279,
17807,
1542,
29898,
1311,
1125,
13,
12,
12,
2080,
29918,
1272,
353,
426,
13,
12,
12,
12,
29915,
5397,
17807,
29918,
1853,
2396,
25861,
29889,
29925,
3301,
1001,
13,
12,
12,
29913,
13,
12,
12,
1311,
29889,
3389,
29918,
5504,
29918,
2671,
29898,
2080,
29918,
1272,
29897,
13,
12,
12,
19304,
29918,
2098,
353,
422,
1050,
1455,
3089,
29889,
12650,
29889,
657,
29898,
20571,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
19304,
29918,
2098,
29889,
5397,
17807,
29918,
1853,
29892,
1881,
29918,
1272,
1839,
5397,
17807,
29918,
1853,
11287,
13,
13,
12,
1753,
1243,
29918,
6422,
29924,
465,
29898,
1311,
1125,
13,
12,
12,
2080,
29918,
1272,
353,
426,
13,
12,
12,
12,
29915,
25379,
2396,
29871,
29896,
29945,
29889,
29955,
13,
12,
12,
29913,
13,
12,
12,
1311,
29889,
3389,
29918,
5504,
29918,
2671,
29898,
2080,
29918,
1272,
29897,
13,
12,
12,
19304,
29918,
2098,
353,
422,
1050,
1455,
3089,
29889,
12650,
29889,
657,
29898,
20571,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
19304,
29918,
2098,
29889,
25379,
29892,
1881,
29918,
1272,
1839,
25379,
11287,
13,
13,
12,
1753,
1243,
29918,
6422,
5709,
29898,
1311,
1125,
13,
12,
12,
2080,
29918,
1272,
353,
426,
13,
12,
12,
12,
29915,
4882,
2396,
422,
1050,
1455,
3089,
29889,
1177,
29918,
8618,
29954,
26785,
13,
12,
12,
29913,
13,
12,
12,
1311,
29889,
3389,
29918,
5504,
29918,
2671,
29898,
2080,
29918,
1272,
29897,
13,
12,
12,
19304,
29918,
2098,
353,
422,
1050,
1455,
3089,
29889,
12650,
29889,
657,
29898,
20571,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
19304,
29918,
2098,
29889,
4882,
29892,
1881,
29918,
1272,
1839,
4882,
11287,
13,
13,
12,
1753,
1243,
29918,
6422,
6508,
29898,
1311,
1125,
13,
12,
12,
2080,
29918,
1272,
353,
426,
13,
12,
12,
12,
29915,
5479,
2396,
17015,
29889,
12650,
29889,
657,
29898,
7328,
2433,
11863,
380,
29889,
29871,
29896,
2824,
333,
13,
12,
12,
29913,
13,
12,
12,
1311,
29889,
3389,
29918,
5504,
29918,
2671,
29898,
2080,
29918,
1272,
29897,
13,
12,
12,
19304,
29918,
2098,
353,
422,
1050,
1455,
3089,
29889,
12650,
29889,
657,
29898,
20571,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
19304,
29918,
2098,
29889,
5479,
29889,
333,
29892,
1881,
29918,
1272,
1839,
5479,
11287,
13,
13,
12,
1753,
1243,
29918,
6422,
2659,
29898,
1311,
1125,
13,
12,
12,
2080,
29918,
1272,
353,
426,
13,
12,
12,
12,
29915,
1792,
2396,
4911,
3195,
29889,
12650,
29889,
657,
29898,
6786,
2433,
1523,
1050,
1455,
2659,
29906,
2824,
333,
13,
12,
12,
29913,
13,
12,
12,
1311,
29889,
3389,
29918,
5504,
29918,
2671,
29898,
2080,
29918,
1272,
29897,
13,
12,
12,
19304,
29918,
2098,
353,
422,
1050,
1455,
3089,
29889,
12650,
29889,
657,
29898,
20571,
29922,
1311,
29889,
510,
1050,
1455,
29918,
2098,
29889,
20571,
29897,
13,
12,
12,
1311,
29889,
9294,
9843,
29898,
19304,
29918,
2098,
29889,
1792,
29889,
333,
29892,
1881,
29918,
1272,
1839,
1792,
11287,
13,
2
] |
alarm_clock/AlarmClock.py | anshul2807/Automation-scripts | 5 | 1617923 | <gh_stars>1-10
import time
import datetime
import simpleaudio
set_time = input("please enter the time in HH:MM format to set an alarm : ")
while True:
time.sleep(1)
obj = simpleaudio.WaveObject.from_wave_file("./alarm.wav")
current_time = datetime.datetime.now().time().strftime("%H:%M")
curr_l = current_time.split(":")
curr_l = [int(i) for i in curr_l]
set_l = set_time.split(":")
set_l = [int(i) for i in set_l]
print(f"current time : {current_time}")
print(f"alarm time : {set_time}")
if curr_l[0] == set_l[0] and curr_l[1] == set_l[1]:
obj.play()
print("Time to Wake up")
input("Press enter to Stop")
break
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
931,
13,
5215,
12865,
13,
5215,
2560,
18494,
13,
13,
13,
842,
29918,
2230,
353,
1881,
703,
552,
559,
3896,
278,
931,
297,
379,
29950,
29901,
7428,
3402,
304,
731,
385,
21200,
584,
16521,
13,
8000,
5852,
29901,
13,
1678,
931,
29889,
17059,
29898,
29896,
29897,
13,
1678,
5446,
353,
2560,
18494,
29889,
29956,
1351,
2061,
29889,
3166,
29918,
27766,
29918,
1445,
703,
6904,
284,
2817,
29889,
29893,
485,
1159,
13,
1678,
1857,
29918,
2230,
353,
12865,
29889,
12673,
29889,
3707,
2141,
2230,
2141,
710,
615,
603,
11702,
29950,
16664,
29924,
1159,
13,
1678,
16256,
29918,
29880,
353,
1857,
29918,
2230,
29889,
5451,
703,
29901,
1159,
13,
1678,
16256,
29918,
29880,
353,
518,
524,
29898,
29875,
29897,
363,
474,
297,
16256,
29918,
29880,
29962,
13,
1678,
731,
29918,
29880,
353,
731,
29918,
2230,
29889,
5451,
703,
29901,
1159,
13,
1678,
731,
29918,
29880,
353,
518,
524,
29898,
29875,
29897,
363,
474,
297,
731,
29918,
29880,
29962,
13,
1678,
1596,
29898,
29888,
29908,
3784,
931,
584,
426,
3784,
29918,
2230,
27195,
13,
1678,
1596,
29898,
29888,
29908,
284,
2817,
931,
584,
426,
842,
29918,
2230,
27195,
13,
1678,
565,
16256,
29918,
29880,
29961,
29900,
29962,
1275,
731,
29918,
29880,
29961,
29900,
29962,
322,
16256,
29918,
29880,
29961,
29896,
29962,
1275,
731,
29918,
29880,
29961,
29896,
5387,
13,
4706,
5446,
29889,
1456,
580,
13,
4706,
1596,
703,
2481,
304,
399,
1296,
701,
1159,
13,
4706,
1881,
703,
10923,
3896,
304,
22303,
1159,
13,
4706,
2867,
13,
2
] |
Interview_Questions_Arrays/duplicates_in_array.py | MNikov/Algorithms-and-Data-Structures | 0 | 195372 | # Interview Question #5
# The problem is that we want to find duplicates in a one-dimensional array of integers in O(N) running time
# where the integer values are smaller than the length of the array!
# For example: if we have a list [1, 2, 3, 1, 5] then the algorithm can detect that there are a duplicate with value 1.
# Note: the array can not contain items smaller than 0 and items with values greater than the size of the list.
# This is how we can achieve O(N) linear running time complexity!
def duplicate_finder_1(nums):
duplicates = []
for n in set(nums):
if nums.count(n) > 1:
duplicates.append(n)
return duplicates if duplicates else 'The array does not contain any duplicates!'
def duplicate_finder_2(nums):
duplicates = set()
for i, n in enumerate(sorted(nums)):
if i + 1 < len(nums) and n == nums[i + 1]:
duplicates.add(n)
return list(duplicates) if duplicates else 'The array does not contain any duplicates!'
# Course implementation
def duplicate_finder_3(nums):
duplicates = set()
for n in nums:
if nums[abs(n)] >= 0:
nums[abs(n)] *= -1
else:
duplicates.add(n)
return list({-n if n < 0 else n for n in duplicates}) if duplicates \
else 'The array does not contain any duplicates!'
# return list(map(lambda n: n * -1 if n < 0 else n,
# duplicates)) if duplicates else 'The array does not contain any duplicates!'
# My solutions allow the use of numbers greater than the length of the array
print(duplicate_finder_1([1, 2, 3, 4]))
print(duplicate_finder_1([1, 1, 2, 3, 3, 4]))
print(duplicate_finder_2([5, 6, 7, 8]))
print(duplicate_finder_2([5, 6, 6, 6, 7, 7, 9]))
print(duplicate_finder_3([2, 3, 1, 2, 4, 3, 3]))
print(duplicate_finder_3([0, 1, 2]))
| [
1,
396,
4124,
1493,
894,
396,
29945,
13,
29937,
450,
1108,
338,
393,
591,
864,
304,
1284,
20955,
297,
263,
697,
29899,
12531,
1409,
310,
11920,
297,
438,
29898,
29940,
29897,
2734,
931,
13,
29937,
988,
278,
6043,
1819,
526,
7968,
1135,
278,
3309,
310,
278,
1409,
29991,
13,
29937,
1152,
1342,
29901,
565,
591,
505,
263,
1051,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29896,
29892,
29871,
29945,
29962,
769,
278,
5687,
508,
6459,
393,
727,
526,
263,
7929,
411,
995,
29871,
29896,
29889,
13,
29937,
3940,
29901,
278,
1409,
508,
451,
1712,
4452,
7968,
1135,
29871,
29900,
322,
4452,
411,
1819,
7621,
1135,
278,
2159,
310,
278,
1051,
29889,
13,
29937,
910,
338,
920,
591,
508,
6176,
438,
29898,
29940,
29897,
5608,
2734,
931,
13644,
29991,
13,
13,
13,
1753,
7929,
29918,
2886,
261,
29918,
29896,
29898,
1949,
29879,
1125,
13,
1678,
20955,
353,
5159,
13,
13,
1678,
363,
302,
297,
731,
29898,
1949,
29879,
1125,
13,
4706,
565,
954,
29879,
29889,
2798,
29898,
29876,
29897,
1405,
29871,
29896,
29901,
13,
9651,
20955,
29889,
4397,
29898,
29876,
29897,
13,
13,
1678,
736,
20955,
565,
20955,
1683,
525,
1576,
1409,
947,
451,
1712,
738,
20955,
20714,
13,
13,
13,
1753,
7929,
29918,
2886,
261,
29918,
29906,
29898,
1949,
29879,
1125,
13,
1678,
20955,
353,
731,
580,
13,
13,
1678,
363,
474,
29892,
302,
297,
26985,
29898,
24582,
29898,
1949,
29879,
22164,
13,
4706,
565,
474,
718,
29871,
29896,
529,
7431,
29898,
1949,
29879,
29897,
322,
302,
1275,
954,
29879,
29961,
29875,
718,
29871,
29896,
5387,
13,
9651,
20955,
29889,
1202,
29898,
29876,
29897,
13,
13,
1678,
736,
1051,
29898,
20908,
15815,
29897,
565,
20955,
1683,
525,
1576,
1409,
947,
451,
1712,
738,
20955,
20714,
13,
13,
13,
29937,
6325,
344,
5314,
13,
1753,
7929,
29918,
2886,
261,
29918,
29941,
29898,
1949,
29879,
1125,
13,
1678,
20955,
353,
731,
580,
13,
1678,
363,
302,
297,
954,
29879,
29901,
13,
4706,
565,
954,
29879,
29961,
6897,
29898,
29876,
4638,
6736,
29871,
29900,
29901,
13,
9651,
954,
29879,
29961,
6897,
29898,
29876,
4638,
334,
29922,
448,
29896,
13,
4706,
1683,
29901,
13,
9651,
20955,
29889,
1202,
29898,
29876,
29897,
13,
13,
1678,
736,
1051,
3319,
29899,
29876,
565,
302,
529,
29871,
29900,
1683,
302,
363,
302,
297,
20955,
1800,
565,
20955,
320,
13,
4706,
1683,
525,
1576,
1409,
947,
451,
1712,
738,
20955,
20714,
13,
1678,
396,
736,
1051,
29898,
1958,
29898,
2892,
302,
29901,
302,
334,
448,
29896,
565,
302,
529,
29871,
29900,
1683,
302,
29892,
13,
1678,
396,
462,
20955,
876,
565,
20955,
1683,
525,
1576,
1409,
947,
451,
1712,
738,
20955,
20714,
13,
13,
13,
29937,
1619,
6851,
2758,
278,
671,
310,
3694,
7621,
1135,
278,
3309,
310,
278,
1409,
13,
2158,
29898,
20908,
5926,
29918,
2886,
261,
29918,
29896,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
12622,
13,
2158,
29898,
20908,
5926,
29918,
2886,
261,
29918,
29896,
4197,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29941,
29892,
29871,
29946,
12622,
13,
2158,
29898,
20908,
5926,
29918,
2886,
261,
29918,
29906,
4197,
29945,
29892,
29871,
29953,
29892,
29871,
29955,
29892,
29871,
29947,
12622,
13,
2158,
29898,
20908,
5926,
29918,
2886,
261,
29918,
29906,
4197,
29945,
29892,
29871,
29953,
29892,
29871,
29953,
29892,
29871,
29953,
29892,
29871,
29955,
29892,
29871,
29955,
29892,
29871,
29929,
12622,
13,
2158,
29898,
20908,
5926,
29918,
2886,
261,
29918,
29941,
4197,
29906,
29892,
29871,
29941,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29946,
29892,
29871,
29941,
29892,
29871,
29941,
12622,
13,
2158,
29898,
20908,
5926,
29918,
2886,
261,
29918,
29941,
4197,
29900,
29892,
29871,
29896,
29892,
29871,
29906,
12622,
13,
2
] |
mmdet/models/necks/fpn_carafe.py | evgps/mmdetection_trashcan | 12,377 | 196605 | import torch.nn as nn
from mmcv.cnn import ConvModule, build_upsample_layer, xavier_init
from mmcv.ops.carafe import CARAFEPack
from ..builder import NECKS
@NECKS.register_module()
class FPN_CARAFE(nn.Module):
"""FPN_CARAFE is a more flexible implementation of FPN. It allows more
choice for upsample methods during the top-down pathway.
It can reproduce the preformance of ICCV 2019 paper
CARAFE: Content-Aware ReAssembly of FEatures
Please refer to https://arxiv.org/abs/1905.02188 for more details.
Args:
in_channels (list[int]): Number of channels for each input feature map.
out_channels (int): Output channels of feature pyramids.
num_outs (int): Number of output stages.
start_level (int): Start level of feature pyramids.
(Default: 0)
end_level (int): End level of feature pyramids.
(Default: -1 indicates the last level).
norm_cfg (dict): Dictionary to construct and config norm layer.
activate (str): Type of activation function in ConvModule
(Default: None indicates w/o activation).
order (dict): Order of components in ConvModule.
upsample (str): Type of upsample layer.
upsample_cfg (dict): Dictionary to construct and config upsample layer.
"""
def __init__(self,
in_channels,
out_channels,
num_outs,
start_level=0,
end_level=-1,
norm_cfg=None,
act_cfg=None,
order=('conv', 'norm', 'act'),
upsample_cfg=dict(
type='carafe',
up_kernel=5,
up_group=1,
encoder_kernel=3,
encoder_dilation=1)):
super(FPN_CARAFE, self).__init__()
assert isinstance(in_channels, list)
self.in_channels = in_channels
self.out_channels = out_channels
self.num_ins = len(in_channels)
self.num_outs = num_outs
self.norm_cfg = norm_cfg
self.act_cfg = act_cfg
self.with_bias = norm_cfg is None
self.upsample_cfg = upsample_cfg.copy()
self.upsample = self.upsample_cfg.get('type')
self.relu = nn.ReLU(inplace=False)
self.order = order
assert order in [('conv', 'norm', 'act'), ('act', 'conv', 'norm')]
assert self.upsample in [
'nearest', 'bilinear', 'deconv', 'pixel_shuffle', 'carafe', None
]
if self.upsample in ['deconv', 'pixel_shuffle']:
assert hasattr(
self.upsample_cfg,
'upsample_kernel') and self.upsample_cfg.upsample_kernel > 0
self.upsample_kernel = self.upsample_cfg.pop('upsample_kernel')
if end_level == -1:
self.backbone_end_level = self.num_ins
assert num_outs >= self.num_ins - start_level
else:
# if end_level < inputs, no extra level is allowed
self.backbone_end_level = end_level
assert end_level <= len(in_channels)
assert num_outs == end_level - start_level
self.start_level = start_level
self.end_level = end_level
self.lateral_convs = nn.ModuleList()
self.fpn_convs = nn.ModuleList()
self.upsample_modules = nn.ModuleList()
for i in range(self.start_level, self.backbone_end_level):
l_conv = ConvModule(
in_channels[i],
out_channels,
1,
norm_cfg=norm_cfg,
bias=self.with_bias,
act_cfg=act_cfg,
inplace=False,
order=self.order)
fpn_conv = ConvModule(
out_channels,
out_channels,
3,
padding=1,
norm_cfg=self.norm_cfg,
bias=self.with_bias,
act_cfg=act_cfg,
inplace=False,
order=self.order)
if i != self.backbone_end_level - 1:
upsample_cfg_ = self.upsample_cfg.copy()
if self.upsample == 'deconv':
upsample_cfg_.update(
in_channels=out_channels,
out_channels=out_channels,
kernel_size=self.upsample_kernel,
stride=2,
padding=(self.upsample_kernel - 1) // 2,
output_padding=(self.upsample_kernel - 1) // 2)
elif self.upsample == 'pixel_shuffle':
upsample_cfg_.update(
in_channels=out_channels,
out_channels=out_channels,
scale_factor=2,
upsample_kernel=self.upsample_kernel)
elif self.upsample == 'carafe':
upsample_cfg_.update(channels=out_channels, scale_factor=2)
else:
# suppress warnings
align_corners = (None
if self.upsample == 'nearest' else False)
upsample_cfg_.update(
scale_factor=2,
mode=self.upsample,
align_corners=align_corners)
upsample_module = build_upsample_layer(upsample_cfg_)
self.upsample_modules.append(upsample_module)
self.lateral_convs.append(l_conv)
self.fpn_convs.append(fpn_conv)
# add extra conv layers (e.g., RetinaNet)
extra_out_levels = (
num_outs - self.backbone_end_level + self.start_level)
if extra_out_levels >= 1:
for i in range(extra_out_levels):
in_channels = (
self.in_channels[self.backbone_end_level -
1] if i == 0 else out_channels)
extra_l_conv = ConvModule(
in_channels,
out_channels,
3,
stride=2,
padding=1,
norm_cfg=norm_cfg,
bias=self.with_bias,
act_cfg=act_cfg,
inplace=False,
order=self.order)
if self.upsample == 'deconv':
upsampler_cfg_ = dict(
in_channels=out_channels,
out_channels=out_channels,
kernel_size=self.upsample_kernel,
stride=2,
padding=(self.upsample_kernel - 1) // 2,
output_padding=(self.upsample_kernel - 1) // 2)
elif self.upsample == 'pixel_shuffle':
upsampler_cfg_ = dict(
in_channels=out_channels,
out_channels=out_channels,
scale_factor=2,
upsample_kernel=self.upsample_kernel)
elif self.upsample == 'carafe':
upsampler_cfg_ = dict(
channels=out_channels,
scale_factor=2,
**self.upsample_cfg)
else:
# suppress warnings
align_corners = (None
if self.upsample == 'nearest' else False)
upsampler_cfg_ = dict(
scale_factor=2,
mode=self.upsample,
align_corners=align_corners)
upsampler_cfg_['type'] = self.upsample
upsample_module = build_upsample_layer(upsampler_cfg_)
extra_fpn_conv = ConvModule(
out_channels,
out_channels,
3,
padding=1,
norm_cfg=self.norm_cfg,
bias=self.with_bias,
act_cfg=act_cfg,
inplace=False,
order=self.order)
self.upsample_modules.append(upsample_module)
self.fpn_convs.append(extra_fpn_conv)
self.lateral_convs.append(extra_l_conv)
# default init_weights for conv(msra) and norm in ConvModule
def init_weights(self):
"""Initialize the weights of module."""
for m in self.modules():
if isinstance(m, (nn.Conv2d, nn.ConvTranspose2d)):
xavier_init(m, distribution='uniform')
for m in self.modules():
if isinstance(m, CARAFEPack):
m.init_weights()
def slice_as(self, src, dst):
"""Slice ``src`` as ``dst``
Note:
``src`` should have the same or larger size than ``dst``.
Args:
src (torch.Tensor): Tensors to be sliced.
dst (torch.Tensor): ``src`` will be sliced to have the same
size as ``dst``.
Returns:
torch.Tensor: Sliced tensor.
"""
assert (src.size(2) >= dst.size(2)) and (src.size(3) >= dst.size(3))
if src.size(2) == dst.size(2) and src.size(3) == dst.size(3):
return src
else:
return src[:, :, :dst.size(2), :dst.size(3)]
def tensor_add(self, a, b):
"""Add tensors ``a`` and ``b`` that might have different sizes."""
if a.size() == b.size():
c = a + b
else:
c = a + self.slice_as(b, a)
return c
def forward(self, inputs):
"""Forward function."""
assert len(inputs) == len(self.in_channels)
# build laterals
laterals = []
for i, lateral_conv in enumerate(self.lateral_convs):
if i <= self.backbone_end_level - self.start_level:
input = inputs[min(i + self.start_level, len(inputs) - 1)]
else:
input = laterals[-1]
lateral = lateral_conv(input)
laterals.append(lateral)
# build top-down path
for i in range(len(laterals) - 1, 0, -1):
if self.upsample is not None:
upsample_feat = self.upsample_modules[i - 1](laterals[i])
else:
upsample_feat = laterals[i]
laterals[i - 1] = self.tensor_add(laterals[i - 1], upsample_feat)
# build outputs
num_conv_outs = len(self.fpn_convs)
outs = []
for i in range(num_conv_outs):
out = self.fpn_convs[i](laterals[i])
outs.append(out)
return tuple(outs)
| [
1,
1053,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
3166,
5654,
11023,
29889,
29883,
15755,
1053,
1281,
29894,
7355,
29892,
2048,
29918,
14340,
981,
29918,
13148,
29892,
921,
18852,
29918,
2344,
13,
3166,
5654,
11023,
29889,
3554,
29889,
29883,
2518,
1725,
1053,
315,
1718,
5098,
15488,
547,
13,
13,
3166,
6317,
16409,
1053,
14693,
7077,
29903,
13,
13,
13,
29992,
8186,
7077,
29903,
29889,
9573,
29918,
5453,
580,
13,
1990,
383,
15695,
29918,
29907,
1718,
5098,
29923,
29898,
15755,
29889,
7355,
1125,
13,
1678,
9995,
29943,
15695,
29918,
29907,
1718,
5098,
29923,
338,
263,
901,
25706,
5314,
310,
383,
15695,
29889,
739,
6511,
901,
13,
1678,
7348,
363,
24081,
981,
3519,
2645,
278,
2246,
29899,
3204,
2224,
1582,
29889,
13,
13,
1678,
739,
508,
18532,
278,
758,
13390,
310,
306,
4174,
29963,
29871,
29906,
29900,
29896,
29929,
5650,
13,
1678,
315,
1718,
5098,
29923,
29901,
10576,
29899,
29909,
2519,
830,
22400,
310,
383,
29923,
3698,
13,
1678,
3529,
2737,
304,
2045,
597,
279,
26560,
29889,
990,
29914,
6897,
29914,
29896,
29929,
29900,
29945,
29889,
29900,
29906,
29896,
29947,
29947,
363,
901,
4902,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
297,
29918,
305,
12629,
313,
1761,
29961,
524,
29962,
1125,
9681,
310,
18196,
363,
1269,
1881,
4682,
2910,
29889,
13,
4706,
714,
29918,
305,
12629,
313,
524,
1125,
10604,
18196,
310,
4682,
11451,
2572,
4841,
29889,
13,
4706,
954,
29918,
17718,
313,
524,
1125,
9681,
310,
1962,
22950,
29889,
13,
4706,
1369,
29918,
5563,
313,
524,
1125,
7370,
3233,
310,
4682,
11451,
2572,
4841,
29889,
13,
9651,
313,
4592,
29901,
29871,
29900,
29897,
13,
4706,
1095,
29918,
5563,
313,
524,
1125,
2796,
3233,
310,
4682,
11451,
2572,
4841,
29889,
13,
9651,
313,
4592,
29901,
448,
29896,
14088,
278,
1833,
3233,
467,
13,
4706,
6056,
29918,
16859,
313,
8977,
1125,
13343,
304,
3386,
322,
2295,
6056,
7546,
29889,
13,
4706,
5039,
403,
313,
710,
1125,
5167,
310,
26229,
740,
297,
1281,
29894,
7355,
13,
9651,
313,
4592,
29901,
6213,
14088,
281,
29914,
29877,
26229,
467,
13,
4706,
1797,
313,
8977,
1125,
8170,
310,
7117,
297,
1281,
29894,
7355,
29889,
13,
4706,
24081,
981,
313,
710,
1125,
5167,
310,
24081,
981,
7546,
29889,
13,
4706,
24081,
981,
29918,
16859,
313,
8977,
1125,
13343,
304,
3386,
322,
2295,
24081,
981,
7546,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
13,
462,
297,
29918,
305,
12629,
29892,
13,
462,
714,
29918,
305,
12629,
29892,
13,
462,
954,
29918,
17718,
29892,
13,
462,
1369,
29918,
5563,
29922,
29900,
29892,
13,
462,
1095,
29918,
5563,
10457,
29896,
29892,
13,
462,
6056,
29918,
16859,
29922,
8516,
29892,
13,
462,
1044,
29918,
16859,
29922,
8516,
29892,
13,
462,
1797,
29922,
877,
20580,
742,
525,
12324,
742,
525,
627,
5477,
13,
462,
24081,
981,
29918,
16859,
29922,
8977,
29898,
13,
462,
268,
1134,
2433,
29883,
2518,
1725,
742,
13,
462,
268,
701,
29918,
17460,
29922,
29945,
29892,
13,
462,
268,
701,
29918,
2972,
29922,
29896,
29892,
13,
462,
268,
2094,
6119,
29918,
17460,
29922,
29941,
29892,
13,
462,
268,
2094,
6119,
29918,
29881,
8634,
29922,
29896,
22164,
13,
4706,
2428,
29898,
29943,
15695,
29918,
29907,
1718,
5098,
29923,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
4706,
4974,
338,
8758,
29898,
262,
29918,
305,
12629,
29892,
1051,
29897,
13,
4706,
1583,
29889,
262,
29918,
305,
12629,
353,
297,
29918,
305,
12629,
13,
4706,
1583,
29889,
449,
29918,
305,
12629,
353,
714,
29918,
305,
12629,
13,
4706,
1583,
29889,
1949,
29918,
1144,
353,
7431,
29898,
262,
29918,
305,
12629,
29897,
13,
4706,
1583,
29889,
1949,
29918,
17718,
353,
954,
29918,
17718,
13,
4706,
1583,
29889,
12324,
29918,
16859,
353,
6056,
29918,
16859,
13,
4706,
1583,
29889,
627,
29918,
16859,
353,
1044,
29918,
16859,
13,
4706,
1583,
29889,
2541,
29918,
29890,
3173,
353,
6056,
29918,
16859,
338,
6213,
13,
4706,
1583,
29889,
14340,
981,
29918,
16859,
353,
24081,
981,
29918,
16859,
29889,
8552,
580,
13,
4706,
1583,
29889,
14340,
981,
353,
1583,
29889,
14340,
981,
29918,
16859,
29889,
657,
877,
1853,
1495,
13,
4706,
1583,
29889,
2674,
29884,
353,
302,
29876,
29889,
1123,
29931,
29965,
29898,
262,
6689,
29922,
8824,
29897,
13,
13,
4706,
1583,
29889,
2098,
353,
1797,
13,
4706,
4974,
1797,
297,
518,
877,
20580,
742,
525,
12324,
742,
525,
627,
5477,
6702,
627,
742,
525,
20580,
742,
525,
12324,
1495,
29962,
13,
13,
4706,
4974,
1583,
29889,
14340,
981,
297,
518,
13,
9651,
525,
28502,
342,
742,
525,
18152,
457,
279,
742,
525,
311,
20580,
742,
525,
29886,
15711,
29918,
845,
21897,
742,
525,
29883,
2518,
1725,
742,
6213,
13,
4706,
4514,
13,
4706,
565,
1583,
29889,
14340,
981,
297,
6024,
311,
20580,
742,
525,
29886,
15711,
29918,
845,
21897,
2033,
29901,
13,
9651,
4974,
756,
5552,
29898,
13,
18884,
1583,
29889,
14340,
981,
29918,
16859,
29892,
13,
18884,
525,
14340,
981,
29918,
17460,
1495,
322,
1583,
29889,
14340,
981,
29918,
16859,
29889,
14340,
981,
29918,
17460,
1405,
29871,
29900,
13,
9651,
1583,
29889,
14340,
981,
29918,
17460,
353,
1583,
29889,
14340,
981,
29918,
16859,
29889,
7323,
877,
14340,
981,
29918,
17460,
1495,
13,
13,
4706,
565,
1095,
29918,
5563,
1275,
448,
29896,
29901,
13,
9651,
1583,
29889,
1627,
15933,
29918,
355,
29918,
5563,
353,
1583,
29889,
1949,
29918,
1144,
13,
9651,
4974,
954,
29918,
17718,
6736,
1583,
29889,
1949,
29918,
1144,
448,
1369,
29918,
5563,
13,
4706,
1683,
29901,
13,
9651,
396,
565,
1095,
29918,
5563,
529,
10970,
29892,
694,
4805,
3233,
338,
6068,
13,
9651,
1583,
29889,
1627,
15933,
29918,
355,
29918,
5563,
353,
1095,
29918,
5563,
13,
9651,
4974,
1095,
29918,
5563,
5277,
7431,
29898,
262,
29918,
305,
12629,
29897,
13,
9651,
4974,
954,
29918,
17718,
1275,
1095,
29918,
5563,
448,
1369,
29918,
5563,
13,
4706,
1583,
29889,
2962,
29918,
5563,
353,
1369,
29918,
5563,
13,
4706,
1583,
29889,
355,
29918,
5563,
353,
1095,
29918,
5563,
13,
13,
4706,
1583,
29889,
29880,
1008,
284,
29918,
535,
4270,
353,
302,
29876,
29889,
7355,
1293,
580,
13,
4706,
1583,
29889,
18091,
29876,
29918,
535,
4270,
353,
302,
29876,
29889,
7355,
1293,
580,
13,
4706,
1583,
29889,
14340,
981,
29918,
7576,
353,
302,
29876,
29889,
7355,
1293,
580,
13,
13,
4706,
363,
474,
297,
3464,
29898,
1311,
29889,
2962,
29918,
5563,
29892,
1583,
29889,
1627,
15933,
29918,
355,
29918,
5563,
1125,
13,
9651,
301,
29918,
20580,
353,
1281,
29894,
7355,
29898,
13,
18884,
297,
29918,
305,
12629,
29961,
29875,
1402,
13,
18884,
714,
29918,
305,
12629,
29892,
13,
462,
29896,
29892,
13,
18884,
6056,
29918,
16859,
29922,
12324,
29918,
16859,
29892,
13,
18884,
24003,
29922,
1311,
29889,
2541,
29918,
29890,
3173,
29892,
13,
18884,
1044,
29918,
16859,
29922,
627,
29918,
16859,
29892,
13,
18884,
297,
6689,
29922,
8824,
29892,
13,
18884,
1797,
29922,
1311,
29889,
2098,
29897,
13,
9651,
285,
21257,
29918,
20580,
353,
1281,
29894,
7355,
29898,
13,
18884,
714,
29918,
305,
12629,
29892,
13,
18884,
714,
29918,
305,
12629,
29892,
13,
462,
29941,
29892,
13,
18884,
7164,
29922,
29896,
29892,
13,
18884,
6056,
29918,
16859,
29922,
1311,
29889,
12324,
29918,
16859,
29892,
13,
18884,
24003,
29922,
1311,
29889,
2541,
29918,
29890,
3173,
29892,
13,
18884,
1044,
29918,
16859,
29922,
627,
29918,
16859,
29892,
13,
18884,
297,
6689,
29922,
8824,
29892,
13,
18884,
1797,
29922,
1311,
29889,
2098,
29897,
13,
9651,
565,
474,
2804,
1583,
29889,
1627,
15933,
29918,
355,
29918,
5563,
448,
29871,
29896,
29901,
13,
18884,
24081,
981,
29918,
16859,
29918,
353,
1583,
29889,
14340,
981,
29918,
16859,
29889,
8552,
580,
13,
18884,
565,
1583,
29889,
14340,
981,
1275,
525,
311,
20580,
2396,
13,
462,
1678,
24081,
981,
29918,
16859,
5396,
5504,
29898,
13,
462,
4706,
297,
29918,
305,
12629,
29922,
449,
29918,
305,
12629,
29892,
13,
462,
4706,
714,
29918,
305,
12629,
29922,
449,
29918,
305,
12629,
29892,
13,
462,
4706,
8466,
29918,
2311,
29922,
1311,
29889,
14340,
981,
29918,
17460,
29892,
13,
462,
4706,
380,
2426,
29922,
29906,
29892,
13,
462,
4706,
7164,
7607,
1311,
29889,
14340,
981,
29918,
17460,
448,
29871,
29896,
29897,
849,
29871,
29906,
29892,
13,
462,
4706,
1962,
29918,
12791,
7607,
1311,
29889,
14340,
981,
29918,
17460,
448,
29871,
29896,
29897,
849,
29871,
29906,
29897,
13,
18884,
25342,
1583,
29889,
14340,
981,
1275,
525,
29886,
15711,
29918,
845,
21897,
2396,
13,
462,
1678,
24081,
981,
29918,
16859,
5396,
5504,
29898,
13,
462,
4706,
297,
29918,
305,
12629,
29922,
449,
29918,
305,
12629,
29892,
13,
462,
4706,
714,
29918,
305,
12629,
29922,
449,
29918,
305,
12629,
29892,
13,
462,
4706,
6287,
29918,
19790,
29922,
29906,
29892,
13,
462,
4706,
24081,
981,
29918,
17460,
29922,
1311,
29889,
14340,
981,
29918,
17460,
29897,
13,
18884,
25342,
1583,
29889,
14340,
981,
1275,
525,
29883,
2518,
1725,
2396,
13,
462,
1678,
24081,
981,
29918,
16859,
5396,
5504,
29898,
305,
12629,
29922,
449,
29918,
305,
12629,
29892,
6287,
29918,
19790,
29922,
29906,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
396,
21301,
18116,
13,
462,
1678,
7595,
29918,
29883,
1398,
414,
353,
313,
8516,
13,
462,
462,
268,
565,
1583,
29889,
14340,
981,
1275,
525,
28502,
342,
29915,
1683,
7700,
29897,
13,
462,
1678,
24081,
981,
29918,
16859,
5396,
5504,
29898,
13,
462,
4706,
6287,
29918,
19790,
29922,
29906,
29892,
13,
462,
4706,
4464,
29922,
1311,
29889,
14340,
981,
29892,
13,
462,
4706,
7595,
29918,
29883,
1398,
414,
29922,
2520,
29918,
29883,
1398,
414,
29897,
13,
18884,
24081,
981,
29918,
5453,
353,
2048,
29918,
14340,
981,
29918,
13148,
29898,
14340,
981,
29918,
16859,
19925,
13,
18884,
1583,
29889,
14340,
981,
29918,
7576,
29889,
4397,
29898,
14340,
981,
29918,
5453,
29897,
13,
9651,
1583,
29889,
29880,
1008,
284,
29918,
535,
4270,
29889,
4397,
29898,
29880,
29918,
20580,
29897,
13,
9651,
1583,
29889,
18091,
29876,
29918,
535,
4270,
29889,
4397,
29898,
18091,
29876,
29918,
20580,
29897,
13,
13,
4706,
396,
788,
4805,
7602,
15359,
313,
29872,
29889,
29887,
1696,
4649,
1099,
6779,
29897,
13,
4706,
4805,
29918,
449,
29918,
5563,
29879,
353,
313,
13,
9651,
954,
29918,
17718,
448,
1583,
29889,
1627,
15933,
29918,
355,
29918,
5563,
718,
1583,
29889,
2962,
29918,
5563,
29897,
13,
4706,
565,
4805,
29918,
449,
29918,
5563,
29879,
6736,
29871,
29896,
29901,
13,
9651,
363,
474,
297,
3464,
29898,
17833,
29918,
449,
29918,
5563,
29879,
1125,
13,
18884,
297,
29918,
305,
12629,
353,
313,
13,
462,
1678,
1583,
29889,
262,
29918,
305,
12629,
29961,
1311,
29889,
1627,
15933,
29918,
355,
29918,
5563,
448,
13,
462,
462,
418,
29896,
29962,
565,
474,
1275,
29871,
29900,
1683,
714,
29918,
305,
12629,
29897,
13,
18884,
4805,
29918,
29880,
29918,
20580,
353,
1281,
29894,
7355,
29898,
13,
462,
1678,
297,
29918,
305,
12629,
29892,
13,
462,
1678,
714,
29918,
305,
12629,
29892,
13,
462,
268,
29941,
29892,
13,
462,
1678,
380,
2426,
29922,
29906,
29892,
13,
462,
1678,
7164,
29922,
29896,
29892,
13,
462,
1678,
6056,
29918,
16859,
29922,
12324,
29918,
16859,
29892,
13,
462,
1678,
24003,
29922,
1311,
29889,
2541,
29918,
29890,
3173,
29892,
13,
462,
1678,
1044,
29918,
16859,
29922,
627,
29918,
16859,
29892,
13,
462,
1678,
297,
6689,
29922,
8824,
29892,
13,
462,
1678,
1797,
29922,
1311,
29889,
2098,
29897,
13,
18884,
565,
1583,
29889,
14340,
981,
1275,
525,
311,
20580,
2396,
13,
462,
1678,
24081,
314,
20069,
29918,
16859,
29918,
353,
9657,
29898,
13,
462,
4706,
297,
29918,
305,
12629,
29922,
449,
29918,
305,
12629,
29892,
13,
462,
4706,
714,
29918,
305,
12629,
29922,
449,
29918,
305,
12629,
29892,
13,
462,
4706,
8466,
29918,
2311,
29922,
1311,
29889,
14340,
981,
29918,
17460,
29892,
13,
462,
4706,
380,
2426,
29922,
29906,
29892,
13,
462,
4706,
7164,
7607,
1311,
29889,
14340,
981,
29918,
17460,
448,
29871,
29896,
29897,
849,
29871,
29906,
29892,
13,
462,
4706,
1962,
29918,
12791,
7607,
1311,
29889,
14340,
981,
29918,
17460,
448,
29871,
29896,
29897,
849,
29871,
29906,
29897,
13,
18884,
25342,
1583,
29889,
14340,
981,
1275,
525,
29886,
15711,
29918,
845,
21897,
2396,
13,
462,
1678,
24081,
314,
20069,
29918,
16859,
29918,
353,
9657,
29898,
13,
462,
4706,
297,
29918,
305,
12629,
29922,
449,
29918,
305,
12629,
29892,
13,
462,
4706,
714,
29918,
305,
12629,
29922,
449,
29918,
305,
12629,
29892,
13,
462,
4706,
6287,
29918,
19790,
29922,
29906,
29892,
13,
462,
4706,
24081,
981,
29918,
17460,
29922,
1311,
29889,
14340,
981,
29918,
17460,
29897,
13,
18884,
25342,
1583,
29889,
14340,
981,
1275,
525,
29883,
2518,
1725,
2396,
13,
462,
1678,
24081,
314,
20069,
29918,
16859,
29918,
353,
9657,
29898,
13,
462,
4706,
18196,
29922,
449,
29918,
305,
12629,
29892,
13,
462,
4706,
6287,
29918,
19790,
29922,
29906,
29892,
13,
462,
4706,
3579,
1311,
29889,
14340,
981,
29918,
16859,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
396,
21301,
18116,
13,
462,
1678,
7595,
29918,
29883,
1398,
414,
353,
313,
8516,
13,
462,
462,
268,
565,
1583,
29889,
14340,
981,
1275,
525,
28502,
342,
29915,
1683,
7700,
29897,
13,
462,
1678,
24081,
314,
20069,
29918,
16859,
29918,
353,
9657,
29898,
13,
462,
4706,
6287,
29918,
19790,
29922,
29906,
29892,
13,
462,
4706,
4464,
29922,
1311,
29889,
14340,
981,
29892,
13,
462,
4706,
7595,
29918,
29883,
1398,
414,
29922,
2520,
29918,
29883,
1398,
414,
29897,
13,
18884,
24081,
314,
20069,
29918,
16859,
29918,
1839,
1853,
2033,
353,
1583,
29889,
14340,
981,
13,
18884,
24081,
981,
29918,
5453,
353,
2048,
29918,
14340,
981,
29918,
13148,
29898,
14340,
314,
20069,
29918,
16859,
19925,
13,
18884,
4805,
29918,
18091,
29876,
29918,
20580,
353,
1281,
29894,
7355,
29898,
13,
462,
1678,
714,
29918,
305,
12629,
29892,
13,
462,
1678,
714,
29918,
305,
12629,
29892,
13,
462,
268,
29941,
29892,
13,
462,
1678,
7164,
29922,
29896,
29892,
13,
462,
1678,
6056,
29918,
16859,
29922,
1311,
29889,
12324,
29918,
16859,
29892,
13,
462,
1678,
24003,
29922,
1311,
29889,
2541,
29918,
29890,
3173,
29892,
13,
462,
1678,
1044,
29918,
16859,
29922,
627,
29918,
16859,
29892,
13,
462,
1678,
297,
6689,
29922,
8824,
29892,
13,
462,
1678,
1797,
29922,
1311,
29889,
2098,
29897,
13,
18884,
1583,
29889,
14340,
981,
29918,
7576,
29889,
4397,
29898,
14340,
981,
29918,
5453,
29897,
13,
18884,
1583,
29889,
18091,
29876,
29918,
535,
4270,
29889,
4397,
29898,
17833,
29918,
18091,
29876,
29918,
20580,
29897,
13,
18884,
1583,
29889,
29880,
1008,
284,
29918,
535,
4270,
29889,
4397,
29898,
17833,
29918,
29880,
29918,
20580,
29897,
13,
13,
1678,
396,
2322,
2069,
29918,
705,
5861,
363,
7602,
29898,
1516,
336,
29897,
322,
6056,
297,
1281,
29894,
7355,
13,
1678,
822,
2069,
29918,
705,
5861,
29898,
1311,
1125,
13,
4706,
9995,
6644,
6646,
278,
18177,
310,
3883,
1213,
15945,
13,
4706,
363,
286,
297,
1583,
29889,
7576,
7295,
13,
9651,
565,
338,
8758,
29898,
29885,
29892,
313,
15755,
29889,
1168,
29894,
29906,
29881,
29892,
302,
29876,
29889,
1168,
29894,
4300,
4220,
29906,
29881,
22164,
13,
18884,
921,
18852,
29918,
2344,
29898,
29885,
29892,
4978,
2433,
29590,
1495,
13,
4706,
363,
286,
297,
1583,
29889,
7576,
7295,
13,
9651,
565,
338,
8758,
29898,
29885,
29892,
315,
1718,
5098,
15488,
547,
1125,
13,
18884,
286,
29889,
2344,
29918,
705,
5861,
580,
13,
13,
1678,
822,
22780,
29918,
294,
29898,
1311,
29892,
4765,
29892,
29743,
1125,
13,
4706,
9995,
29903,
5897,
4954,
4351,
16159,
408,
4954,
22992,
16159,
13,
13,
4706,
3940,
29901,
13,
9651,
4954,
4351,
16159,
881,
505,
278,
1021,
470,
7200,
2159,
1135,
4954,
22992,
29952,
1412,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
4765,
313,
7345,
305,
29889,
29911,
6073,
1125,
323,
575,
943,
304,
367,
269,
506,
287,
29889,
13,
9651,
29743,
313,
7345,
305,
29889,
29911,
6073,
1125,
4954,
4351,
16159,
674,
367,
269,
506,
287,
304,
505,
278,
1021,
13,
18884,
2159,
408,
4954,
22992,
29952,
1412,
13,
13,
4706,
16969,
29901,
13,
9651,
4842,
305,
29889,
29911,
6073,
29901,
317,
506,
287,
12489,
29889,
13,
4706,
9995,
13,
4706,
4974,
313,
4351,
29889,
2311,
29898,
29906,
29897,
6736,
29743,
29889,
2311,
29898,
29906,
876,
322,
313,
4351,
29889,
2311,
29898,
29941,
29897,
6736,
29743,
29889,
2311,
29898,
29941,
876,
13,
4706,
565,
4765,
29889,
2311,
29898,
29906,
29897,
1275,
29743,
29889,
2311,
29898,
29906,
29897,
322,
4765,
29889,
2311,
29898,
29941,
29897,
1275,
29743,
29889,
2311,
29898,
29941,
1125,
13,
9651,
736,
4765,
13,
4706,
1683,
29901,
13,
9651,
736,
4765,
7503,
29892,
584,
29892,
584,
22992,
29889,
2311,
29898,
29906,
511,
584,
22992,
29889,
2311,
29898,
29941,
4638,
13,
13,
1678,
822,
12489,
29918,
1202,
29898,
1311,
29892,
263,
29892,
289,
1125,
13,
4706,
9995,
2528,
25187,
943,
4954,
29874,
16159,
322,
4954,
29890,
16159,
393,
1795,
505,
1422,
15786,
1213,
15945,
13,
4706,
565,
263,
29889,
2311,
580,
1275,
289,
29889,
2311,
7295,
13,
9651,
274,
353,
263,
718,
289,
13,
4706,
1683,
29901,
13,
9651,
274,
353,
263,
718,
1583,
29889,
18337,
29918,
294,
29898,
29890,
29892,
263,
29897,
13,
4706,
736,
274,
13,
13,
1678,
822,
6375,
29898,
1311,
29892,
10970,
1125,
13,
4706,
9995,
2831,
1328,
740,
1213,
15945,
13,
4706,
4974,
7431,
29898,
2080,
29879,
29897,
1275,
7431,
29898,
1311,
29889,
262,
29918,
305,
12629,
29897,
13,
13,
4706,
396,
2048,
2678,
1338,
13,
4706,
2678,
1338,
353,
5159,
13,
4706,
363,
474,
29892,
2678,
284,
29918,
20580,
297,
26985,
29898,
1311,
29889,
29880,
1008,
284,
29918,
535,
4270,
1125,
13,
9651,
565,
474,
5277,
1583,
29889,
1627,
15933,
29918,
355,
29918,
5563,
448,
1583,
29889,
2962,
29918,
5563,
29901,
13,
18884,
1881,
353,
10970,
29961,
1195,
29898,
29875,
718,
1583,
29889,
2962,
29918,
5563,
29892,
7431,
29898,
2080,
29879,
29897,
448,
29871,
29896,
4638,
13,
9651,
1683,
29901,
13,
18884,
1881,
353,
2678,
1338,
14352,
29896,
29962,
13,
9651,
2678,
284,
353,
2678,
284,
29918,
20580,
29898,
2080,
29897,
13,
9651,
2678,
1338,
29889,
4397,
29898,
29880,
1008,
284,
29897,
13,
13,
4706,
396,
2048,
2246,
29899,
3204,
2224,
13,
4706,
363,
474,
297,
3464,
29898,
2435,
29898,
29880,
1008,
1338,
29897,
448,
29871,
29896,
29892,
29871,
29900,
29892,
448,
29896,
1125,
13,
9651,
565,
1583,
29889,
14340,
981,
338,
451,
6213,
29901,
13,
18884,
24081,
981,
29918,
1725,
271,
353,
1583,
29889,
14340,
981,
29918,
7576,
29961,
29875,
448,
29871,
29896,
850,
29880,
1008,
1338,
29961,
29875,
2314,
13,
9651,
1683,
29901,
13,
18884,
24081,
981,
29918,
1725,
271,
353,
2678,
1338,
29961,
29875,
29962,
13,
9651,
2678,
1338,
29961,
29875,
448,
29871,
29896,
29962,
353,
1583,
29889,
20158,
29918,
1202,
29898,
29880,
1008,
1338,
29961,
29875,
448,
29871,
29896,
1402,
24081,
981,
29918,
1725,
271,
29897,
13,
13,
4706,
396,
2048,
14391,
13,
4706,
954,
29918,
20580,
29918,
17718,
353,
7431,
29898,
1311,
29889,
18091,
29876,
29918,
535,
4270,
29897,
13,
4706,
714,
29879,
353,
5159,
13,
4706,
363,
474,
297,
3464,
29898,
1949,
29918,
20580,
29918,
17718,
1125,
13,
9651,
714,
353,
1583,
29889,
18091,
29876,
29918,
535,
4270,
29961,
29875,
850,
29880,
1008,
1338,
29961,
29875,
2314,
13,
9651,
714,
29879,
29889,
4397,
29898,
449,
29897,
13,
4706,
736,
18761,
29898,
17718,
29897,
13,
2
] |
cinder/tests/test_glusterfs.py | sombrafam/cinder | 0 | 195718 |
# Copyright (c) 2013 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""Unit tests for the GlusterFS driver module."""
import errno
import os
import tempfile
import mox as mox_lib
from mox import IgnoreArg
from mox import IsA
from mox import stubout
from cinder import context
from cinder import db
from cinder import exception
from cinder.image import image_utils
from cinder.openstack.common import imageutils
from cinder.openstack.common import processutils as putils
from cinder import test
from cinder import units
from cinder import utils
from cinder.volume import configuration as conf
from cinder.volume.drivers import glusterfs
class DumbVolume(object):
fields = {}
def __setitem__(self, key, value):
self.fields[key] = value
def __getitem__(self, item):
return self.fields[item]
class GlusterFsDriverTestCase(test.TestCase):
"""Test case for GlusterFS driver."""
TEST_EXPORT1 = 'glusterfs-host1:/export'
TEST_EXPORT2 = 'glusterfs-host2:/export'
TEST_EXPORT2_OPTIONS = '-o backupvolfile-server=glusterfs-backup1'
TEST_SIZE_IN_GB = 1
TEST_MNT_POINT = '/mnt/glusterfs'
TEST_MNT_POINT_BASE = '/mnt/test'
TEST_LOCAL_PATH = '/mnt/glusterfs/volume-123'
TEST_FILE_NAME = 'test.txt'
TEST_SHARES_CONFIG_FILE = '/etc/cinder/test-shares.conf'
VOLUME_UUID = 'abcdefab-cdef-abcd-efab-cdefabcdefab'
SNAP_UUID = 'bacadaca-baca-daca-baca-dacadacadaca'
SNAP_UUID_2 = 'bebedede-bebe-dede-bebe-dedebebedede'
def setUp(self):
super(GlusterFsDriverTestCase, self).setUp()
self._mox = mox_lib.Mox()
self._configuration = mox_lib.MockObject(conf.Configuration)
self._configuration.append_config_values(mox_lib.IgnoreArg())
self._configuration.glusterfs_shares_config = \
self.TEST_SHARES_CONFIG_FILE
self._configuration.glusterfs_mount_point_base = \
self.TEST_MNT_POINT_BASE
self._configuration.glusterfs_disk_util = 'df'
self._configuration.glusterfs_sparsed_volumes = True
self._configuration.glusterfs_qcow2_volumes = False
self.stubs = stubout.StubOutForTesting()
self._driver =\
glusterfs.GlusterfsDriver(configuration=self._configuration)
self._driver.shares = {}
def tearDown(self):
self._mox.UnsetStubs()
self.stubs.UnsetAll()
super(GlusterFsDriverTestCase, self).tearDown()
def stub_out_not_replaying(self, obj, attr_name):
attr_to_replace = getattr(obj, attr_name)
stub = mox_lib.MockObject(attr_to_replace)
self.stubs.Set(obj, attr_name, stub)
def test_local_path(self):
"""local_path common use case."""
glusterfs.CONF.glusterfs_mount_point_base = self.TEST_MNT_POINT_BASE
drv = self._driver
volume = DumbVolume()
volume['provider_location'] = self.TEST_EXPORT1
volume['name'] = 'volume-123'
self.assertEqual(
'/mnt/test/ab03ab34eaca46a5fb81878f7e9b91fc/volume-123',
drv.local_path(volume))
def test_mount_glusterfs_should_mount_correctly(self):
"""_mount_glusterfs common case usage."""
mox = self._mox
drv = self._driver
mox.StubOutWithMock(drv, '_execute')
drv._execute('mkdir', '-p', self.TEST_MNT_POINT)
drv._execute('mount', '-t', 'glusterfs', self.TEST_EXPORT1,
self.TEST_MNT_POINT, run_as_root=True)
mox.ReplayAll()
drv._mount_glusterfs(self.TEST_EXPORT1, self.TEST_MNT_POINT)
mox.VerifyAll()
def test_mount_glusterfs_should_suppress_already_mounted_error(self):
"""_mount_glusterfs should suppress already mounted error if
ensure=True
"""
mox = self._mox
drv = self._driver
mox.StubOutWithMock(drv, '_execute')
drv._execute('mkdir', '-p', self.TEST_MNT_POINT)
drv._execute('mount', '-t', 'glusterfs', self.TEST_EXPORT1,
self.TEST_MNT_POINT, run_as_root=True).\
AndRaise(putils.ProcessExecutionError(
stderr='is busy or already mounted'))
mox.ReplayAll()
drv._mount_glusterfs(self.TEST_EXPORT1, self.TEST_MNT_POINT,
ensure=True)
mox.VerifyAll()
def test_mount_glusterfs_should_reraise_already_mounted_error(self):
"""_mount_glusterfs should not suppress already mounted error
if ensure=False
"""
mox = self._mox
drv = self._driver
mox.StubOutWithMock(drv, '_execute')
drv._execute('mkdir', '-p', self.TEST_MNT_POINT)
drv._execute(
'mount',
'-t',
'glusterfs',
self.TEST_EXPORT1,
self.TEST_MNT_POINT,
run_as_root=True). \
AndRaise(putils.ProcessExecutionError(stderr='is busy or '
'already mounted'))
mox.ReplayAll()
self.assertRaises(putils.ProcessExecutionError, drv._mount_glusterfs,
self.TEST_EXPORT1, self.TEST_MNT_POINT,
ensure=False)
mox.VerifyAll()
def test_mount_glusterfs_should_create_mountpoint_if_not_yet(self):
"""_mount_glusterfs should create mountpoint if it doesn't exist."""
mox = self._mox
drv = self._driver
mox.StubOutWithMock(drv, '_execute')
drv._execute('mkdir', '-p', self.TEST_MNT_POINT)
drv._execute(*([IgnoreArg()] * 5), run_as_root=IgnoreArg())
mox.ReplayAll()
drv._mount_glusterfs(self.TEST_EXPORT1, self.TEST_MNT_POINT)
mox.VerifyAll()
def test_get_hash_str(self):
"""_get_hash_str should calculation correct value."""
drv = self._driver
self.assertEqual('ab03ab34eaca46a5fb81878f7e9b91fc',
drv._get_hash_str(self.TEST_EXPORT1))
def test_get_mount_point_for_share(self):
"""_get_mount_point_for_share should calculate correct value."""
drv = self._driver
glusterfs.CONF.glusterfs_mount_point_base = self.TEST_MNT_POINT_BASE
self.assertEqual('/mnt/test/ab03ab34eaca46a5fb81878f7e9b91fc',
drv._get_mount_point_for_share(
self.TEST_EXPORT1))
def test_get_available_capacity_with_df(self):
"""_get_available_capacity should calculate correct value."""
mox = self._mox
drv = self._driver
df_total_size = 2620544
df_avail = 1490560
df_head = 'Filesystem 1K-blocks Used Available Use% Mounted on\n'
df_data = 'glusterfs-host:/export %d 996864 %d 41%% /mnt' % \
(df_total_size, df_avail)
df_output = df_head + df_data
setattr(glusterfs.CONF, 'glusterfs_disk_util', 'df')
mox.StubOutWithMock(drv, '_get_mount_point_for_share')
drv._get_mount_point_for_share(self.TEST_EXPORT1).\
AndReturn(self.TEST_MNT_POINT)
mox.StubOutWithMock(drv, '_execute')
drv._execute('df', '--portability', '--block-size', '1',
self.TEST_MNT_POINT,
run_as_root=True).AndReturn((df_output, None))
mox.ReplayAll()
self.assertEqual((df_avail, df_total_size),
drv._get_available_capacity(self.TEST_EXPORT1))
mox.VerifyAll()
delattr(glusterfs.CONF, 'glusterfs_disk_util')
def test_load_shares_config(self):
mox = self._mox
drv = self._driver
drv.configuration.glusterfs_shares_config = (
self.TEST_SHARES_CONFIG_FILE)
mox.StubOutWithMock(drv, '_read_config_file')
config_data = []
config_data.append(self.TEST_EXPORT1)
config_data.append('#' + self.TEST_EXPORT2)
config_data.append(self.TEST_EXPORT2 + ' ' + self.TEST_EXPORT2_OPTIONS)
config_data.append('broken:share_format')
config_data.append('')
drv._read_config_file(self.TEST_SHARES_CONFIG_FILE).\
AndReturn(config_data)
mox.ReplayAll()
drv._load_shares_config(drv.configuration.glusterfs_shares_config)
self.assertIn(self.TEST_EXPORT1, drv.shares)
self.assertIn(self.TEST_EXPORT2, drv.shares)
self.assertEqual(len(drv.shares), 2)
self.assertEqual(drv.shares[self.TEST_EXPORT2],
self.TEST_EXPORT2_OPTIONS)
mox.VerifyAll()
def test_ensure_share_mounted(self):
"""_ensure_share_mounted simple use case."""
mox = self._mox
drv = self._driver
mox.StubOutWithMock(utils, 'get_file_mode')
mox.StubOutWithMock(utils, 'get_file_gid')
mox.StubOutWithMock(drv, '_execute')
mox.StubOutWithMock(drv, '_ensure_share_writable')
mox.StubOutWithMock(drv, '_get_mount_point_for_share')
drv._get_mount_point_for_share(self.TEST_EXPORT1).\
AndReturn(self.TEST_MNT_POINT)
mox.StubOutWithMock(drv, '_mount_glusterfs')
drv._mount_glusterfs(self.TEST_EXPORT1, self.TEST_MNT_POINT,
ensure=True)
utils.get_file_gid(self.TEST_MNT_POINT).AndReturn(333333)
utils.get_file_mode(self.TEST_MNT_POINT).AndReturn(0o777)
drv._ensure_share_writable(self.TEST_MNT_POINT)
drv._execute('chgrp', IgnoreArg(), self.TEST_MNT_POINT,
run_as_root=True)
mox.ReplayAll()
drv._ensure_share_mounted(self.TEST_EXPORT1)
mox.VerifyAll()
def test_ensure_shares_mounted_should_save_mounting_successfully(self):
"""_ensure_shares_mounted should save share if mounted with success."""
mox = self._mox
drv = self._driver
mox.StubOutWithMock(drv, '_read_config_file')
config_data = []
config_data.append(self.TEST_EXPORT1)
drv._read_config_file(self.TEST_SHARES_CONFIG_FILE).\
AndReturn(config_data)
mox.StubOutWithMock(drv, '_ensure_share_mounted')
drv._ensure_share_mounted(self.TEST_EXPORT1)
mox.ReplayAll()
drv._ensure_shares_mounted()
self.assertEqual(1, len(drv._mounted_shares))
self.assertEqual(self.TEST_EXPORT1, drv._mounted_shares[0])
mox.VerifyAll()
def test_ensure_shares_mounted_should_not_save_mounting_with_error(self):
"""_ensure_shares_mounted should not save share if failed to mount."""
mox = self._mox
drv = self._driver
mox.StubOutWithMock(drv, '_read_config_file')
config_data = []
config_data.append(self.TEST_EXPORT1)
drv._read_config_file(self.TEST_SHARES_CONFIG_FILE).\
AndReturn(config_data)
mox.StubOutWithMock(drv, '_ensure_share_mounted')
drv._ensure_share_mounted(self.TEST_EXPORT1).AndRaise(Exception())
mox.ReplayAll()
drv._ensure_shares_mounted()
self.assertEqual(0, len(drv._mounted_shares))
mox.VerifyAll()
def test_setup_should_throw_error_if_shares_config_not_configured(self):
"""do_setup should throw error if shares config is not configured."""
drv = self._driver
glusterfs.CONF.glusterfs_shares_config = self.TEST_SHARES_CONFIG_FILE
self.assertRaises(exception.GlusterfsException,
drv.do_setup, IsA(context.RequestContext))
def test_setup_should_throw_exception_if_client_is_not_installed(self):
"""do_setup should throw exception if client is not installed."""
mox = self._mox
drv = self._driver
glusterfs.CONF.glusterfs_shares_config = self.TEST_SHARES_CONFIG_FILE
mox.StubOutWithMock(os.path, 'exists')
os.path.exists(self.TEST_SHARES_CONFIG_FILE).AndReturn(True)
mox.StubOutWithMock(drv, '_execute')
drv._execute('mount.glusterfs', check_exit_code=False).\
AndRaise(OSError(errno.ENOENT, 'No such file or directory'))
mox.ReplayAll()
self.assertRaises(exception.GlusterfsException,
drv.do_setup, IsA(context.RequestContext))
mox.VerifyAll()
def _fake_load_shares_config(self, conf):
self._driver.shares = {'127.7.7.7:/gluster1': None}
def _fake_NamedTemporaryFile(self, prefix=None, dir=None):
raise OSError('Permission denied!')
def test_setup_set_share_permissions(self):
mox = self._mox
drv = self._driver
glusterfs.CONF.glusterfs_shares_config = self.TEST_SHARES_CONFIG_FILE
self.stubs.Set(drv, '_load_shares_config',
self._fake_load_shares_config)
self.stubs.Set(tempfile, 'NamedTemporaryFile',
self._fake_NamedTemporaryFile)
mox.StubOutWithMock(os.path, 'exists')
mox.StubOutWithMock(drv, '_execute')
mox.StubOutWithMock(utils, 'get_file_gid')
mox.StubOutWithMock(utils, 'get_file_mode')
mox.StubOutWithMock(os, 'getegid')
drv._execute('mount.glusterfs', check_exit_code=False)
drv._execute('mkdir', '-p', mox_lib.IgnoreArg())
os.path.exists(self.TEST_SHARES_CONFIG_FILE).AndReturn(True)
drv._execute('mount', '-t', 'glusterfs', '127.7.7.7:/gluster1',
mox_lib.IgnoreArg(), run_as_root=True)
utils.get_file_gid(mox_lib.IgnoreArg()).AndReturn(33333)
# perms not writable
utils.get_file_mode(mox_lib.IgnoreArg()).AndReturn(0o000)
os.getegid().AndReturn(888)
drv._execute('chgrp', 888, mox_lib.IgnoreArg(), run_as_root=True)
drv._execute('chmod', 'g+w', mox_lib.IgnoreArg(), run_as_root=True)
mox.ReplayAll()
drv.do_setup(IsA(context.RequestContext))
mox.VerifyAll()
def test_find_share_should_throw_error_if_there_is_no_mounted_shares(self):
"""_find_share should throw error if there is no mounted shares."""
drv = self._driver
drv._mounted_shares = []
self.assertRaises(exception.GlusterfsNoSharesMounted,
drv._find_share,
self.TEST_SIZE_IN_GB)
def test_find_share(self):
"""_find_share simple use case."""
mox = self._mox
drv = self._driver
drv._mounted_shares = [self.TEST_EXPORT1, self.TEST_EXPORT2]
mox.StubOutWithMock(drv, '_get_available_capacity')
drv._get_available_capacity(self.TEST_EXPORT1).\
AndReturn((2 * units.GiB, 5 * units.GiB))
drv._get_available_capacity(self.TEST_EXPORT2).\
AndReturn((3 * units.GiB, 10 * units.GiB))
mox.ReplayAll()
self.assertEqual(self.TEST_EXPORT2,
drv._find_share(self.TEST_SIZE_IN_GB))
mox.VerifyAll()
def test_find_share_should_throw_error_if_there_is_no_enough_place(self):
"""_find_share should throw error if there is no share to host vol."""
mox = self._mox
drv = self._driver
drv._mounted_shares = [self.TEST_EXPORT1,
self.TEST_EXPORT2]
mox.StubOutWithMock(drv, '_get_available_capacity')
drv._get_available_capacity(self.TEST_EXPORT1).\
AndReturn((0, 5 * units.GiB))
drv._get_available_capacity(self.TEST_EXPORT2).\
AndReturn((0, 10 * units.GiB))
mox.ReplayAll()
self.assertRaises(exception.GlusterfsNoSuitableShareFound,
drv._find_share,
self.TEST_SIZE_IN_GB)
mox.VerifyAll()
def _simple_volume(self, id=None):
volume = DumbVolume()
volume['provider_location'] = self.TEST_EXPORT1
if id is None:
volume['id'] = self.VOLUME_UUID
else:
volume['id'] = id
# volume['name'] mirrors format from db/sqlalchemy/models.py
volume['name'] = 'volume-%s' % volume['id']
volume['size'] = 10
volume['status'] = 'available'
return volume
def test_create_sparsed_volume(self):
mox = self._mox
drv = self._driver
volume = self._simple_volume()
setattr(glusterfs.CONF, 'glusterfs_sparsed_volumes', True)
mox.StubOutWithMock(drv, '_create_sparsed_file')
mox.StubOutWithMock(drv, '_set_rw_permissions_for_all')
drv._create_sparsed_file(IgnoreArg(), IgnoreArg())
drv._set_rw_permissions_for_all(IgnoreArg())
mox.ReplayAll()
drv._do_create_volume(volume)
mox.VerifyAll()
delattr(glusterfs.CONF, 'glusterfs_sparsed_volumes')
def test_create_nonsparsed_volume(self):
mox = self._mox
drv = self._driver
volume = self._simple_volume()
old_value = self._configuration.glusterfs_sparsed_volumes
self._configuration.glusterfs_sparsed_volumes = False
mox.StubOutWithMock(drv, '_create_regular_file')
mox.StubOutWithMock(drv, '_set_rw_permissions_for_all')
drv._create_regular_file(IgnoreArg(), IgnoreArg())
drv._set_rw_permissions_for_all(IgnoreArg())
mox.ReplayAll()
drv._do_create_volume(volume)
mox.VerifyAll()
self._configuration.glusterfs_sparsed_volumes = old_value
def test_create_qcow2_volume(self):
(mox, drv) = self._mox, self._driver
volume = self._simple_volume()
old_value = self._configuration.glusterfs_qcow2_volumes
self._configuration.glusterfs_qcow2_volumes = True
mox.StubOutWithMock(drv, '_execute')
hashed = drv._get_hash_str(volume['provider_location'])
path = '%s/%s/volume-%s' % (self.TEST_MNT_POINT_BASE,
hashed,
self.VOLUME_UUID)
drv._execute('qemu-img', 'create', '-f', 'qcow2',
'-o', 'preallocation=metadata', path,
str(volume['size'] * units.GiB),
run_as_root=True)
drv._execute('chmod', 'ugo+rw', path, run_as_root=True)
mox.ReplayAll()
drv._do_create_volume(volume)
mox.VerifyAll()
self._configuration.glusterfs_qcow2_volumes = old_value
def test_create_volume_should_ensure_glusterfs_mounted(self):
"""create_volume ensures shares provided in config are mounted."""
mox = self._mox
drv = self._driver
self.stub_out_not_replaying(glusterfs, 'LOG')
self.stub_out_not_replaying(drv, '_find_share')
self.stub_out_not_replaying(drv, '_do_create_volume')
mox.StubOutWithMock(drv, '_ensure_shares_mounted')
drv._ensure_shares_mounted()
mox.ReplayAll()
volume = DumbVolume()
volume['size'] = self.TEST_SIZE_IN_GB
drv.create_volume(volume)
mox.VerifyAll()
def test_create_volume_should_return_provider_location(self):
"""create_volume should return provider_location with found share."""
mox = self._mox
drv = self._driver
self.stub_out_not_replaying(glusterfs, 'LOG')
self.stub_out_not_replaying(drv, '_ensure_shares_mounted')
self.stub_out_not_replaying(drv, '_do_create_volume')
mox.StubOutWithMock(drv, '_find_share')
drv._find_share(self.TEST_SIZE_IN_GB).AndReturn(self.TEST_EXPORT1)
mox.ReplayAll()
volume = DumbVolume()
volume['size'] = self.TEST_SIZE_IN_GB
result = drv.create_volume(volume)
self.assertEqual(self.TEST_EXPORT1, result['provider_location'])
mox.VerifyAll()
def test_create_cloned_volume(self):
(mox, drv) = self._mox, self._driver
mox.StubOutWithMock(drv, '_create_snapshot')
mox.StubOutWithMock(drv, '_delete_snapshot')
mox.StubOutWithMock(drv, '_read_info_file')
mox.StubOutWithMock(image_utils, 'convert_image')
mox.StubOutWithMock(drv, '_copy_volume_from_snapshot')
volume_file = 'volume-%s' % self.VOLUME_UUID
volume_path = '%s/%s/%s' % (self.TEST_MNT_POINT_BASE,
drv._get_hash_str(self.TEST_EXPORT1),
volume_file)
volume = self._simple_volume()
src_vref = self._simple_volume()
src_vref['id'] = '375e32b2-804a-49f2-b282-85d1d5a5b9e1'
src_vref['name'] = 'volume-%s' % src_vref['id']
volume_file = 'volume-%s' % src_vref['id']
volume_path = '%s/%s/%s' % (self.TEST_MNT_POINT_BASE,
drv._get_hash_str(self.TEST_EXPORT1),
volume_file)
src_info_path = '%s.info' % volume_path
volume_ref = {'id': volume['id'],
'name': volume['name'],
'status': volume['status'],
'provider_location': volume['provider_location'],
'size': volume['size']}
snap_ref = {'volume_name': src_vref['name'],
'name': 'clone-snap-%s' % src_vref['id'],
'size': src_vref['size'],
'volume_size': src_vref['size'],
'volume_id': src_vref['id'],
'id': 'tmp-snap-%s' % src_vref['id'],
'volume': src_vref}
drv._create_snapshot(snap_ref)
snap_info = {'active': volume_file,
snap_ref['id']: volume_path + '-clone'}
drv._read_info_file(src_info_path).AndReturn(snap_info)
drv._copy_volume_from_snapshot(snap_ref, volume_ref, volume['size'])
drv._delete_snapshot(mox_lib.IgnoreArg())
mox.ReplayAll()
drv.create_cloned_volume(volume, src_vref)
def test_delete_volume(self):
"""delete_volume simple test case."""
mox = self._mox
drv = self._driver
self.stub_out_not_replaying(drv, '_ensure_share_mounted')
volume = DumbVolume()
volume['name'] = 'volume-123'
volume['provider_location'] = self.TEST_EXPORT1
mox.StubOutWithMock(drv, 'local_path')
drv.local_path(volume).AndReturn(self.TEST_LOCAL_PATH)
mox.StubOutWithMock(drv, '_execute')
drv._execute('rm', '-f', self.TEST_LOCAL_PATH, run_as_root=True)
mox.ReplayAll()
drv.delete_volume(volume)
mox.VerifyAll()
def test_delete_should_ensure_share_mounted(self):
"""delete_volume should ensure that corresponding share is mounted."""
mox = self._mox
drv = self._driver
self.stub_out_not_replaying(drv, '_execute')
volume = DumbVolume()
volume['name'] = 'volume-123'
volume['provider_location'] = self.TEST_EXPORT1
mox.StubOutWithMock(drv, '_ensure_share_mounted')
drv._ensure_share_mounted(self.TEST_EXPORT1)
mox.ReplayAll()
drv.delete_volume(volume)
mox.VerifyAll()
def test_delete_should_not_delete_if_provider_location_not_provided(self):
"""delete_volume shouldn't delete if provider_location missed."""
mox = self._mox
drv = self._driver
self.stub_out_not_replaying(drv, '_ensure_share_mounted')
volume = DumbVolume()
volume['name'] = 'volume-123'
volume['provider_location'] = None
mox.StubOutWithMock(drv, '_execute')
mox.ReplayAll()
drv.delete_volume(volume)
mox.VerifyAll()
def test_create_snapshot(self):
(mox, drv) = self._mox, self._driver
self.stub_out_not_replaying(drv, '_ensure_share_mounted')
mox.StubOutWithMock(drv, '_create_qcow2_snap_file')
mox.StubOutWithMock(drv, '_read_info_file')
mox.StubOutWithMock(drv, '_write_info_file')
volume = self._simple_volume()
snap_ref = {'name': 'test snap',
'volume_id': self.VOLUME_UUID,
'volume': volume,
'id': self.SNAP_UUID}
mox.StubOutWithMock(drv, '_execute')
vol_filename = 'volume-%s' % self.VOLUME_UUID
snap_filename = '%s.%s' % (vol_filename, self.SNAP_UUID)
hashed = drv._get_hash_str(self.TEST_EXPORT1)
vol_path = '%s/%s/%s' % (self.TEST_MNT_POINT_BASE,
hashed,
vol_filename)
snap_path = '%s.%s' % (vol_path, self.SNAP_UUID)
info_path = '%s%s' % (vol_path, '.info')
info_dict = {'active': vol_filename}
drv._read_info_file(info_path, empty_if_missing=True).\
AndReturn(info_dict)
drv._create_qcow2_snap_file(snap_ref, vol_filename, snap_path)
qemu_img_info_output = ("""image: volume-%s
file format: raw
virtual size: 1.0G (1073741824 bytes)
disk size: 152K
""" % self.VOLUME_UUID, '')
drv._read_info_file(info_path, empty_if_missing=True).\
AndReturn(info_dict)
# SNAP_UUID_2 has been removed from dict.
info_file_dict = {'active': 'volume-%s.%s' %
(self.VOLUME_UUID, self.SNAP_UUID),
self.SNAP_UUID: 'volume-%s.%s' %
(self.VOLUME_UUID, self.SNAP_UUID)}
drv._write_info_file(info_path, info_file_dict)
mox.ReplayAll()
drv.create_snapshot(snap_ref)
mox.VerifyAll()
def test_delete_snapshot_bottom(self):
"""Multiple snapshots exist.
In this test, path (volume-<uuid>) is backed by
snap_path (volume-<uuid>.<snap_uuid>) which is backed by
snap_path_2 (volume-<uuid>.<snap_uuid_2>).
Delete the snapshot identified by SNAP_UUID_2.
Chain goes from
(SNAP_UUID) (SNAP_UUID_2)
volume-abc -> volume-abc.baca -> volume-abc.bebe
to
(SNAP_UUID)
volume-abc -> volume-abc.baca
"""
(mox, drv) = self._mox, self._driver
hashed = drv._get_hash_str(self.TEST_EXPORT1)
volume_dir = os.path.join(self.TEST_MNT_POINT_BASE, hashed)
volume_path = '%s/%s/volume-%s' % (self.TEST_MNT_POINT_BASE,
hashed,
self.VOLUME_UUID)
volume_filename = 'volume-%s' % self.VOLUME_UUID
snap_path = '%s.%s' % (volume_path, self.SNAP_UUID)
snap_path_2 = '%s.%s' % (volume_path, self.SNAP_UUID_2)
snap_file = '%s.%s' % (volume_filename, self.SNAP_UUID)
snap_file_2 = '%s.%s' % (volume_filename, self.SNAP_UUID_2)
info_path = '%s%s' % (volume_path, '.info')
qemu_img_info_output = """image: volume-%s.%s
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 173K
backing file: %s
""" % (self.VOLUME_UUID, self.SNAP_UUID, volume_filename)
mox.StubOutWithMock(drv, '_execute')
mox.StubOutWithMock(drv, '_read_file')
mox.StubOutWithMock(drv, '_read_info_file')
mox.StubOutWithMock(drv, '_get_backing_chain_for_path')
mox.StubOutWithMock(drv, '_get_matching_backing_file')
mox.StubOutWithMock(drv, '_write_info_file')
mox.StubOutWithMock(drv, '_ensure_share_writable')
mox.StubOutWithMock(image_utils, 'qemu_img_info')
drv._ensure_share_writable(volume_dir)
img_info = imageutils.QemuImgInfo(qemu_img_info_output)
image_utils.qemu_img_info(snap_path_2).AndReturn(img_info)
info_file_dict = {'active': snap_file_2,
self.SNAP_UUID_2: snap_file_2,
self.SNAP_UUID: snap_file}
snap_ref = {'name': 'test snap',
'volume_id': self.VOLUME_UUID,
'volume': self._simple_volume(),
'id': self.SNAP_UUID_2}
snap_path_2_chain = [{self.SNAP_UUID_2: snap_file_2},
{self.SNAP_UUID: snap_file},
{'active': snap_file_2}]
snap_path_chain = [{self.SNAP_UUID: snap_file},
{'active': snap_file}]
drv._read_info_file(info_path, empty_if_missing=True).\
AndReturn(info_file_dict)
drv._execute('qemu-img', 'commit', snap_path_2, run_as_root=True)
drv._execute('rm', '-f', snap_path_2, run_as_root=True)
drv._read_info_file(info_path, empty_if_missing=True).\
AndReturn(info_file_dict)
drv._read_info_file(info_path).AndReturn(info_file_dict)
drv._write_info_file(info_path, info_file_dict)
mox.ReplayAll()
drv.delete_snapshot(snap_ref)
mox.VerifyAll()
def test_delete_snapshot_middle(self):
"""Multiple snapshots exist.
In this test, path (volume-<uuid>) is backed by
snap_path (volume-<uuid>.<snap_uuid>) which is backed by
snap_path_2 (volume-<uuid>.<snap_uuid_2>).
Delete the snapshot identified with SNAP_UUID.
Chain goes from
(SNAP_UUID) (SNAP_UUID_2)
volume-abc -> volume-abc.baca -> volume-abc.bebe
to (SNAP_UUID_2)
volume-abc -> volume-abc.bebe
"""
(mox, drv) = self._mox, self._driver
volume = self._simple_volume()
hashed = drv._get_hash_str(self.TEST_EXPORT1)
volume_file = 'volume-%s' % self.VOLUME_UUID
volume_dir = os.path.join(self.TEST_MNT_POINT_BASE, hashed)
volume_path = '%s/%s/%s' % (self.TEST_MNT_POINT_BASE,
hashed,
volume_file)
info_path = '%s%s' % (volume_path, '.info')
snap_path = '%s.%s' % (volume_path, self.SNAP_UUID)
snap_file = 'volume-%s.%s' % (self.VOLUME_UUID, self.SNAP_UUID)
snap_path_2 = '%s.%s' % (volume_path, self.SNAP_UUID_2)
snap_file_2 = 'volume-%s.%s' % (self.VOLUME_UUID, self.SNAP_UUID_2)
qemu_img_info_output_snap_2 = """image: volume-%s.%s
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 173K
backing file: %s
""" % (self.VOLUME_UUID, self.SNAP_UUID_2,
'volume-%s.%s' % (self.VOLUME_UUID, self.SNAP_UUID_2))
qemu_img_info_output_snap_1 = """image: volume-%s.%s
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 122K
backing file: %s
""" % (self.VOLUME_UUID, self.SNAP_UUID,
'volume-%s.%s' % (self.VOLUME_UUID, self.SNAP_UUID))
qemu_img_info_output = """image: volume-%s
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 175K
""" % self.VOLUME_UUID
mox.StubOutWithMock(drv, '_execute')
mox.StubOutWithMock(drv, '_read_info_file')
mox.StubOutWithMock(drv, '_write_info_file')
mox.StubOutWithMock(drv, '_get_backing_chain_for_path')
mox.StubOutWithMock(drv, 'get_active_image_from_info')
mox.StubOutWithMock(drv, '_ensure_share_writable')
mox.StubOutWithMock(image_utils, 'qemu_img_info')
info_file_dict = {self.SNAP_UUID_2: 'volume-%s.%s' %
(self.VOLUME_UUID, self.SNAP_UUID_2),
self.SNAP_UUID: 'volume-%s.%s' %
(self.VOLUME_UUID, self.SNAP_UUID)}
drv._ensure_share_writable(volume_dir)
info_path = drv._local_path_volume(volume) + '.info'
drv._read_info_file(info_path, empty_if_missing=True).\
AndReturn(info_file_dict)
img_info = imageutils.QemuImgInfo(qemu_img_info_output_snap_1)
image_utils.qemu_img_info(snap_path).AndReturn(img_info)
snap_ref = {'name': '<NAME>',
'volume_id': self.VOLUME_UUID,
'volume': volume,
'id': self.SNAP_UUID}
snap_path_chain = [{'filename': snap_file_2,
'backing-filename': snap_file},
{'filename': snap_file,
'backing-filename': volume_file}]
drv.get_active_image_from_info(volume).AndReturn(snap_file_2)
drv._get_backing_chain_for_path(volume, snap_path_2).\
AndReturn(snap_path_chain)
drv._read_info_file(info_path).AndReturn(info_file_dict)
drv._execute('qemu-img', 'commit', snap_path_2, run_as_root=True)
drv._execute('rm', '-f', snap_path_2, run_as_root=True)
drv._read_info_file(info_path).AndReturn(info_file_dict)
drv._write_info_file(info_path, info_file_dict)
mox.ReplayAll()
drv.delete_snapshot(snap_ref)
mox.VerifyAll()
def test_delete_snapshot_not_in_info(self):
"""Snapshot not in info file / info file doesn't exist.
Snapshot creation failed so nothing is on-disk. Driver
should allow operation to succeed so the manager can
remove the snapshot record.
(Scenario: Snapshot object created in Cinder db but not
on backing storage.)
"""
(mox, drv) = self._mox, self._driver
hashed = drv._get_hash_str(self.TEST_EXPORT1)
volume_dir = os.path.join(self.TEST_MNT_POINT_BASE, hashed)
volume_filename = 'volume-%s' % self.VOLUME_UUID
volume_path = os.path.join(volume_dir, volume_filename)
info_path = '%s%s' % (volume_path, '.info')
mox.StubOutWithMock(drv, '_read_file')
mox.StubOutWithMock(drv, '_read_info_file')
mox.StubOutWithMock(drv, '_ensure_share_writable')
snap_ref = {'name': 'test snap',
'volume_id': self.VOLUME_UUID,
'volume': self._simple_volume(),
'id': self.SNAP_UUID_2}
drv._ensure_share_writable(volume_dir)
drv._read_info_file(info_path, empty_if_missing=True).AndReturn({})
mox.ReplayAll()
drv.delete_snapshot(snap_ref)
mox.VerifyAll()
def test_read_info_file(self):
(mox, drv) = self._mox, self._driver
mox.StubOutWithMock(drv, '_read_file')
hashed = drv._get_hash_str(self.TEST_EXPORT1)
volume_path = '%s/%s/volume-%s' % (self.TEST_MNT_POINT_BASE,
hashed,
self.VOLUME_UUID)
info_path = '%s%s' % (volume_path, '.info')
drv._read_file(info_path).AndReturn('{"%(id)s": "volume-%(id)s"}' %
{'id': self.VOLUME_UUID})
mox.ReplayAll()
volume = DumbVolume()
volume['id'] = self.VOLUME_UUID
volume['name'] = 'volume-%s' % self.VOLUME_UUID
info = drv._read_info_file(info_path)
self.assertEqual(info[self.VOLUME_UUID],
'volume-%s' % self.VOLUME_UUID)
mox.VerifyAll()
def test_extend_volume(self):
(mox, drv) = self._mox, self._driver
volume = self._simple_volume()
volume_path = '%s/%s/volume-%s' % (self.TEST_MNT_POINT_BASE,
drv._get_hash_str(
self.TEST_EXPORT1),
self.VOLUME_UUID)
qemu_img_info_output = """image: volume-%s
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 473K
""" % self.VOLUME_UUID
img_info = imageutils.QemuImgInfo(qemu_img_info_output)
mox.StubOutWithMock(drv, '_execute')
mox.StubOutWithMock(drv, 'get_active_image_from_info')
mox.StubOutWithMock(image_utils, 'qemu_img_info')
mox.StubOutWithMock(image_utils, 'resize_image')
drv.get_active_image_from_info(volume).AndReturn(volume['name'])
image_utils.qemu_img_info(volume_path).AndReturn(img_info)
image_utils.resize_image(volume_path, 3)
mox.ReplayAll()
drv.extend_volume(volume, 3)
mox.VerifyAll()
def test_create_snapshot_online(self):
(mox, drv) = self._mox, self._driver
volume = self._simple_volume()
volume['status'] = 'in-use'
hashed = drv._get_hash_str(self.TEST_EXPORT1)
volume_file = 'volume-%s' % self.VOLUME_UUID
volume_path = '%s/%s/%s' % (self.TEST_MNT_POINT_BASE,
hashed,
volume_file)
info_path = '%s.info' % volume_path
ctxt = context.RequestContext('fake_user', 'fake_project')
snap_ref = {'name': 'test snap (online)',
'volume_id': self.VOLUME_UUID,
'volume': volume,
'id': self.SNAP_UUID,
'context': ctxt,
'status': 'asdf',
'progress': 'asdf'}
snap_path = '%s.%s' % (volume_path, self.SNAP_UUID)
snap_file = '%s.%s' % (volume_file, self.SNAP_UUID)
mox.StubOutWithMock(drv, '_execute')
mox.StubOutWithMock(drv, '_create_qcow2_snap_file')
mox.StubOutWithMock(db, 'snapshot_get')
mox.StubOutWithMock(drv, '_write_info_file')
mox.StubOutWithMock(drv, '_nova')
drv._create_qcow2_snap_file(snap_ref, volume_file, snap_path)
create_info = {'snapshot_id': snap_ref['id'],
'type': 'qcow2',
'new_file': snap_file}
drv._nova.create_volume_snapshot(ctxt, self.VOLUME_UUID, create_info)
snap_ref['status'] = 'creating'
snap_ref['progress'] = '0%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_ref['progress'] = '50%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_ref['progress'] = '90%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_info = {'active': snap_file,
self.SNAP_UUID: snap_file}
drv._write_info_file(info_path, snap_info)
mox.ReplayAll()
drv.create_snapshot(snap_ref)
def test_create_snapshot_online_novafailure(self):
(mox, drv) = self._mox, self._driver
volume = self._simple_volume()
volume['status'] = 'in-use'
hashed = drv._get_hash_str(self.TEST_EXPORT1)
volume_file = 'volume-%s' % self.VOLUME_UUID
volume_path = '%s/%s/%s' % (self.TEST_MNT_POINT_BASE,
hashed,
volume_file)
info_path = '%s.info' % volume_path
ctxt = context.RequestContext('fake_user', 'fake_project')
snap_ref = {'name': 'test snap (online)',
'volume_id': self.VOLUME_UUID,
'volume': volume,
'id': self.SNAP_UUID,
'context': ctxt}
snap_path = '%s.%s' % (volume_path, self.SNAP_UUID)
snap_file = '%s.%s' % (volume_file, self.SNAP_UUID)
mox.StubOutWithMock(drv, '_execute')
mox.StubOutWithMock(drv, '_create_qcow2_snap_file')
mox.StubOutWithMock(drv, '_nova')
mox.StubOutWithMock(db, 'snapshot_get')
mox.StubOutWithMock(drv, '_write_info_file')
drv._create_qcow2_snap_file(snap_ref, volume_file, snap_path)
create_info = {'snapshot_id': snap_ref['id'],
'type': 'qcow2',
'new_file': snap_file}
drv._nova.create_volume_snapshot(ctxt, self.VOLUME_UUID, create_info)
snap_ref['status'] = 'creating'
snap_ref['progress'] = '0%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_ref['progress'] = '50%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_ref['progress'] = '99%'
snap_ref['status'] = 'error'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_info = {'active': snap_file,
self.SNAP_UUID: snap_file}
drv._write_info_file(info_path, snap_info)
mox.ReplayAll()
self.assertRaises(exception.GlusterfsException,
drv.create_snapshot,
snap_ref)
def test_delete_snapshot_online_1(self):
"""Delete the newest snapshot, with only one snap present."""
(mox, drv) = self._mox, self._driver
volume = self._simple_volume()
volume['status'] = 'in-use'
ctxt = context.RequestContext('fake_user', 'fake_project')
snap_ref = {'name': 'test snap to delete (online)',
'volume_id': self.VOLUME_UUID,
'volume': volume,
'id': self.SNAP_UUID,
'context': ctxt}
hashed = drv._get_hash_str(self.TEST_EXPORT1)
volume_file = 'volume-%s' % self.VOLUME_UUID
volume_dir = os.path.join(self.TEST_MNT_POINT_BASE, hashed)
volume_path = '%s/%s/%s' % (self.TEST_MNT_POINT_BASE,
hashed,
volume_file)
info_path = '%s.info' % volume_path
snap_path = '%s.%s' % (volume_path, self.SNAP_UUID)
snap_file = '%s.%s' % (volume_file, self.SNAP_UUID)
mox.StubOutWithMock(drv, '_execute')
mox.StubOutWithMock(drv, '_nova')
mox.StubOutWithMock(drv, '_read_info_file')
mox.StubOutWithMock(drv, '_write_info_file')
mox.StubOutWithMock(os.path, 'exists')
mox.StubOutWithMock(db, 'snapshot_get')
mox.StubOutWithMock(image_utils, 'qemu_img_info')
mox.StubOutWithMock(drv, '_ensure_share_writable')
snap_info = {'active': snap_file,
self.SNAP_UUID: snap_file}
drv._ensure_share_writable(volume_dir)
drv._read_info_file(info_path, empty_if_missing=True).\
AndReturn(snap_info)
os.path.exists(snap_path).AndReturn(True)
qemu_img_info_output = """image: %s
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 173K
backing file: %s
""" % (snap_file, volume_file)
img_info = imageutils.QemuImgInfo(qemu_img_info_output)
vol_qemu_img_info_output = """image: %s
file format: raw
virtual size: 1.0G (1073741824 bytes)
disk size: 173K
""" % volume_file
volume_img_info = imageutils.QemuImgInfo(vol_qemu_img_info_output)
image_utils.qemu_img_info(snap_path).AndReturn(img_info)
image_utils.qemu_img_info(volume_path).AndReturn(volume_img_info)
drv._read_info_file(info_path, empty_if_missing=True).\
AndReturn(snap_info)
delete_info = {
'type': 'qcow2',
'merge_target_file': None,
'file_to_merge': None,
'volume_id': self.VOLUME_UUID
}
drv._nova.delete_volume_snapshot(ctxt, self.SNAP_UUID, delete_info)
drv._read_info_file(info_path).AndReturn(snap_info)
drv._read_info_file(info_path).AndReturn(snap_info)
snap_ref['status'] = 'deleting'
snap_ref['progress'] = '0%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_ref['progress'] = '50%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_ref['progress'] = '90%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
drv._write_info_file(info_path, snap_info)
drv._execute('rm', '-f', volume_path, run_as_root=True)
mox.ReplayAll()
drv.delete_snapshot(snap_ref)
def test_delete_snapshot_online_2(self):
"""Delete the middle of 3 snapshots."""
(mox, drv) = self._mox, self._driver
volume = self._simple_volume()
volume['status'] = 'in-use'
ctxt = context.RequestContext('fake_user', 'fake_project')
snap_ref = {'name': 'test snap to delete (online)',
'volume_id': self.VOLUME_UUID,
'volume': volume,
'id': self.SNAP_UUID,
'context': ctxt}
hashed = drv._get_hash_str(self.TEST_EXPORT1)
volume_file = 'volume-%s' % self.VOLUME_UUID
volume_dir = os.path.join(self.TEST_MNT_POINT_BASE, hashed)
volume_path = '%s/%s/%s' % (self.TEST_MNT_POINT_BASE,
hashed,
volume_file)
info_path = '%s.info' % volume_path
snap_path = '%s.%s' % (volume_path, self.SNAP_UUID)
snap_path_2 = '%s.%s' % (volume_path, self.SNAP_UUID_2)
snap_file = '%s.%s' % (volume_file, self.SNAP_UUID)
snap_file_2 = '%s.%s' % (volume_file, self.SNAP_UUID_2)
mox.StubOutWithMock(drv, '_execute')
mox.StubOutWithMock(drv, '_nova')
mox.StubOutWithMock(drv, '_read_info_file')
mox.StubOutWithMock(drv, '_write_info_file')
mox.StubOutWithMock(os.path, 'exists')
mox.StubOutWithMock(db, 'snapshot_get')
mox.StubOutWithMock(image_utils, 'qemu_img_info')
mox.StubOutWithMock(drv, '_ensure_share_writable')
snap_info = {'active': snap_file_2,
self.SNAP_UUID: snap_file,
self.SNAP_UUID_2: snap_file_2}
drv._ensure_share_writable(volume_dir)
drv._read_info_file(info_path, empty_if_missing=True).\
AndReturn(snap_info)
os.path.exists(snap_path).AndReturn(True)
qemu_img_info_output = """image: %s
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 173K
backing file: %s
""" % (snap_file, volume_file)
img_info = imageutils.QemuImgInfo(qemu_img_info_output)
vol_qemu_img_info_output = """image: %s
file format: raw
virtual size: 1.0G (1073741824 bytes)
disk size: 173K
""" % volume_file
volume_img_info = imageutils.QemuImgInfo(vol_qemu_img_info_output)
image_utils.qemu_img_info(snap_path).AndReturn(img_info)
image_utils.qemu_img_info(volume_path).AndReturn(volume_img_info)
drv._read_info_file(info_path, empty_if_missing=True).\
AndReturn(snap_info)
delete_info = {'type': 'qcow2',
'merge_target_file': volume_file,
'file_to_merge': snap_file,
'volume_id': self.VOLUME_UUID}
drv._nova.delete_volume_snapshot(ctxt, self.SNAP_UUID, delete_info)
drv._read_info_file(info_path).AndReturn(snap_info)
drv._read_info_file(info_path).AndReturn(snap_info)
snap_ref['status'] = 'deleting'
snap_ref['progress'] = '0%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_ref['progress'] = '50%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_ref['progress'] = '90%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
drv._write_info_file(info_path, snap_info)
drv._execute('rm', '-f', snap_path, run_as_root=True)
mox.ReplayAll()
drv.delete_snapshot(snap_ref)
def test_delete_snapshot_online_novafailure(self):
"""Delete the newest snapshot."""
(mox, drv) = self._mox, self._driver
volume = self._simple_volume()
volume['status'] = 'in-use'
ctxt = context.RequestContext('fake_user', 'fake_project')
snap_ref = {'name': 'test snap to delete (online)',
'volume_id': self.VOLUME_UUID,
'volume': volume,
'id': self.SNAP_UUID,
'context': ctxt}
hashed = drv._get_hash_str(self.TEST_EXPORT1)
volume_file = 'volume-%s' % self.VOLUME_UUID
volume_path = '%s/%s/%s' % (self.TEST_MNT_POINT_BASE,
hashed,
volume_file)
info_path = '%s.info' % volume_path
snap_path = '%s.%s' % (volume_path, self.SNAP_UUID)
snap_file = '%s.%s' % (volume_file, self.SNAP_UUID)
mox.StubOutWithMock(drv, '_execute')
mox.StubOutWithMock(drv, '_nova')
mox.StubOutWithMock(drv, '_read_info_file')
mox.StubOutWithMock(drv, '_write_info_file')
mox.StubOutWithMock(os.path, 'exists')
mox.StubOutWithMock(db, 'snapshot_get')
mox.StubOutWithMock(image_utils, 'qemu_img_info')
snap_info = {'active': snap_file,
self.SNAP_UUID: snap_file}
drv._read_info_file(info_path, empty_if_missing=True).\
AndReturn(snap_info)
os.path.exists(snap_path).AndReturn(True)
qemu_img_info_output = """image: %s
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 173K
backing file: %s
""" % (snap_file, volume_file)
img_info = imageutils.QemuImgInfo(qemu_img_info_output)
image_utils.qemu_img_info(snap_path).AndReturn(img_info)
drv._read_info_file(info_path, empty_if_missing=True).\
AndReturn(snap_info)
delete_info = {
'type': 'qcow2',
'merge_target_file': None,
'file_to_merge': volume_file,
'volume_id': self.VOLUME_UUID
}
drv._nova.delete_volume_snapshot(ctxt, self.SNAP_UUID, delete_info)
drv._read_info_file(info_path).AndReturn(snap_info)
drv._read_info_file(info_path).AndReturn(snap_info)
snap_ref['status'] = 'deleting'
snap_ref['progress'] = '0%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_ref['progress'] = '50%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
snap_ref['status'] = 'error_deleting'
snap_ref['progress'] = '90%'
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
db.snapshot_get(ctxt, self.SNAP_UUID).AndReturn(snap_ref)
drv._write_info_file(info_path, snap_info)
drv._execute('rm', '-f', volume_path, run_as_root=True)
mox.ReplayAll()
self.assertRaises(exception.GlusterfsException,
drv.delete_snapshot,
snap_ref)
def test_get_backing_chain_for_path(self):
(mox, drv) = self._mox, self._driver
glusterfs.CONF.glusterfs_mount_point_base = self.TEST_MNT_POINT_BASE
volume = self._simple_volume()
vol_filename = volume['name']
vol_filename_2 = volume['name'] + '.asdfjkl'
vol_filename_3 = volume['name'] + 'qwertyuiop'
hashed = drv._get_hash_str(self.TEST_EXPORT1)
vol_dir = '%s/%s' % (self.TEST_MNT_POINT_BASE, hashed)
vol_path = '%s/%s' % (vol_dir, vol_filename)
vol_path_2 = '%s/%s' % (vol_dir, vol_filename_2)
vol_path_3 = '%s/%s' % (vol_dir, vol_filename_3)
mox.StubOutWithMock(drv, '_execute')
mox.StubOutWithMock(drv, '_local_volume_dir')
mox.StubOutWithMock(image_utils, 'qemu_img_info')
qemu_img_output_base = """image: %(image_name)s
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 173K
"""
qemu_img_output = """image: %(image_name)s
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 173K
backing file: %(backing_file)s
"""
qemu_img_output_1 = qemu_img_output_base % {'image_name': vol_filename}
qemu_img_output_2 = qemu_img_output % {'image_name': vol_filename_2,
'backing_file': vol_filename}
qemu_img_output_3 = qemu_img_output % {'image_name': vol_filename_3,
'backing_file': vol_filename_2}
info_1 = imageutils.QemuImgInfo(qemu_img_output_1)
info_2 = imageutils.QemuImgInfo(qemu_img_output_2)
info_3 = imageutils.QemuImgInfo(qemu_img_output_3)
drv._local_volume_dir(volume).AndReturn(vol_dir)
image_utils.qemu_img_info(vol_path_3).\
AndReturn(info_3)
drv._local_volume_dir(volume).AndReturn(vol_dir)
image_utils.qemu_img_info(vol_path_2).\
AndReturn(info_2)
drv._local_volume_dir(volume).AndReturn(vol_dir)
image_utils.qemu_img_info(vol_path).\
AndReturn(info_1)
mox.ReplayAll()
chain = drv._get_backing_chain_for_path(volume, vol_path_3)
# Verify chain contains all expected data
item_1 = drv._get_matching_backing_file(chain, vol_filename)
self.assertEqual(item_1['filename'], vol_filename_2)
chain.remove(item_1)
item_2 = drv._get_matching_backing_file(chain, vol_filename_2)
self.assertEqual(item_2['filename'], vol_filename_3)
chain.remove(item_2)
self.assertEqual(len(chain), 1)
self.assertEqual(chain[0]['filename'], vol_filename)
def test_copy_volume_from_snapshot(self):
(mox, drv) = self._mox, self._driver
mox.StubOutWithMock(image_utils, 'convert_image')
mox.StubOutWithMock(drv, '_read_info_file')
mox.StubOutWithMock(image_utils, 'qemu_img_info')
mox.StubOutWithMock(drv, '_set_rw_permissions_for_all')
dest_volume = self._simple_volume(
'c1073000-0000-0000-0000-0000000c1073')
src_volume = self._simple_volume()
vol_dir = os.path.join(self.TEST_MNT_POINT_BASE,
drv._get_hash_str(self.TEST_EXPORT1))
src_vol_path = os.path.join(vol_dir, src_volume['name'])
dest_vol_path = os.path.join(vol_dir, dest_volume['name'])
info_path = os.path.join(vol_dir, src_volume['name']) + '.info'
snapshot = {'volume_name': src_volume['name'],
'name': 'clone-snap-%s' % src_volume['id'],
'size': src_volume['size'],
'volume_size': src_volume['size'],
'volume_id': src_volume['id'],
'id': 'tmp-snap-%s' % src_volume['id'],
'volume': src_volume}
snap_file = dest_volume['name'] + '.' + snapshot['id']
snap_path = os.path.join(vol_dir, snap_file)
size = dest_volume['size']
drv._read_info_file(info_path).AndReturn(
{'active': snap_file,
snapshot['id']: snap_file}
)
qemu_img_output = """image: %s
file format: raw
virtual size: 1.0G (1073741824 bytes)
disk size: 173K
backing file: %s
""" % (snap_file, src_volume['name'])
img_info = imageutils.QemuImgInfo(qemu_img_output)
image_utils.qemu_img_info(snap_path).AndReturn(img_info)
image_utils.convert_image(src_vol_path, dest_vol_path, 'raw')
drv._set_rw_permissions_for_all(dest_vol_path)
mox.ReplayAll()
drv._copy_volume_from_snapshot(snapshot, dest_volume, size)
def test_create_volume_from_snapshot(self):
(mox, drv) = self._mox, self._driver
volume = self._simple_volume('c1073000-0000-0000-0000-0000000c1073')
src_volume = self._simple_volume()
mox.StubOutWithMock(drv, '_create_snapshot')
mox.StubOutWithMock(drv, '_copy_volume_from_snapshot')
mox.StubOutWithMock(drv, '_delete_snapshot')
snap_ref = {'volume_name': src_volume['name'],
'name': 'clone-snap-%s' % src_volume['id'],
'size': src_volume['size'],
'volume_size': src_volume['size'],
'volume_id': src_volume['id'],
'id': 'tmp-snap-%s' % src_volume['id'],
'volume': src_volume}
volume_ref = {'id': volume['id'],
'size': volume['size'],
'status': volume['status'],
'provider_location': volume['provider_location'],
'name': 'volume-' + volume['id']}
drv._create_snapshot(snap_ref)
drv._copy_volume_from_snapshot(snap_ref,
volume_ref,
src_volume['size'])
drv._delete_snapshot(snap_ref)
mox.ReplayAll()
drv.create_cloned_volume(volume, src_volume)
def test_initialize_connection(self):
(mox, drv) = self._mox, self._driver
volume = self._simple_volume()
vol_dir = os.path.join(self.TEST_MNT_POINT_BASE,
drv._get_hash_str(self.TEST_EXPORT1))
vol_path = os.path.join(vol_dir, volume['name'])
qemu_img_output = """image: %s
file format: raw
virtual size: 1.0G (1073741824 bytes)
disk size: 173K
""" % volume['name']
img_info = imageutils.QemuImgInfo(qemu_img_output)
mox.StubOutWithMock(drv, 'get_active_image_from_info')
mox.StubOutWithMock(image_utils, 'qemu_img_info')
drv.get_active_image_from_info(volume).AndReturn(volume['name'])
image_utils.qemu_img_info(vol_path).AndReturn(img_info)
mox.ReplayAll()
conn_info = drv.initialize_connection(volume, None)
self.assertEqual(conn_info['data']['format'], 'raw')
self.assertEqual(conn_info['driver_volume_type'], 'glusterfs')
self.assertEqual(conn_info['data']['name'], volume['name'])
| [
1,
29871,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29941,
4367,
25966,
29892,
9266,
29889,
13,
29937,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
1678,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
366,
1122,
13,
29937,
1678,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
887,
1122,
4017,
13,
29937,
1678,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
308,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
1678,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
1678,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
399,
1806,
8187,
2692,
13,
29937,
1678,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
2823,
278,
13,
29937,
1678,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
27028,
13,
29937,
1678,
1090,
278,
19245,
29889,
13,
15945,
29908,
8325,
6987,
363,
278,
8467,
5402,
9998,
7156,
3883,
1213,
15945,
13,
13,
5215,
4589,
1217,
13,
5215,
2897,
13,
5215,
5694,
1445,
13,
13,
5215,
286,
2251,
408,
286,
2251,
29918,
1982,
13,
3166,
286,
2251,
1053,
18076,
487,
8559,
13,
3166,
286,
2251,
1053,
1317,
29909,
13,
3166,
286,
2251,
1053,
19281,
449,
13,
13,
3166,
274,
4995,
1053,
3030,
13,
3166,
274,
4995,
1053,
4833,
13,
3166,
274,
4995,
1053,
3682,
13,
3166,
274,
4995,
29889,
3027,
1053,
1967,
29918,
13239,
13,
3166,
274,
4995,
29889,
3150,
1429,
29889,
9435,
1053,
1967,
13239,
13,
3166,
274,
4995,
29889,
3150,
1429,
29889,
9435,
1053,
1889,
13239,
408,
1925,
2719,
13,
3166,
274,
4995,
1053,
1243,
13,
3166,
274,
4995,
1053,
10340,
13,
3166,
274,
4995,
1053,
3667,
29879,
13,
3166,
274,
4995,
29889,
24623,
1053,
5285,
408,
1970,
13,
3166,
274,
4995,
29889,
24623,
29889,
24477,
874,
1053,
3144,
5402,
5847,
13,
13,
13,
1990,
360,
3774,
24679,
29898,
3318,
1125,
13,
1678,
4235,
353,
6571,
13,
13,
1678,
822,
4770,
842,
667,
12035,
1311,
29892,
1820,
29892,
995,
1125,
13,
4706,
1583,
29889,
9621,
29961,
1989,
29962,
353,
995,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
2944,
1125,
13,
4706,
736,
1583,
29889,
9621,
29961,
667,
29962,
13,
13,
13,
1990,
8467,
5402,
29943,
29879,
12376,
3057,
8259,
29898,
1688,
29889,
3057,
8259,
1125,
13,
1678,
9995,
3057,
1206,
363,
8467,
5402,
9998,
7156,
1213,
15945,
13,
13,
1678,
17067,
1254,
29918,
5746,
15082,
29896,
353,
525,
3820,
5402,
5847,
29899,
3069,
29896,
8419,
15843,
29915,
13,
1678,
17067,
1254,
29918,
5746,
15082,
29906,
353,
525,
3820,
5402,
5847,
29899,
3069,
29906,
8419,
15843,
29915,
13,
1678,
17067,
1254,
29918,
5746,
15082,
29906,
29918,
14094,
27946,
353,
17411,
29877,
16199,
1555,
1445,
29899,
2974,
29922,
3820,
5402,
5847,
29899,
1627,
786,
29896,
29915,
13,
1678,
17067,
1254,
29918,
14226,
29918,
1177,
29918,
7210,
353,
29871,
29896,
13,
1678,
17067,
1254,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
353,
8207,
29885,
593,
29914,
3820,
5402,
5847,
29915,
13,
1678,
17067,
1254,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
353,
8207,
29885,
593,
29914,
1688,
29915,
13,
1678,
17067,
1254,
29918,
16652,
1964,
29918,
10145,
353,
8207,
29885,
593,
29914,
3820,
5402,
5847,
29914,
24623,
29899,
29896,
29906,
29941,
29915,
13,
1678,
17067,
1254,
29918,
7724,
29918,
5813,
353,
525,
1688,
29889,
3945,
29915,
13,
1678,
17067,
1254,
29918,
23498,
15989,
29918,
25903,
29918,
7724,
353,
8207,
7070,
29914,
29883,
4995,
29914,
1688,
29899,
845,
5114,
29889,
5527,
29915,
13,
1678,
478,
5607,
29965,
2303,
29918,
29965,
11150,
353,
525,
10736,
1753,
370,
29899,
29883,
1753,
29899,
370,
2252,
29899,
1389,
370,
29899,
29883,
1753,
10736,
1753,
370,
29915,
13,
1678,
21989,
3301,
29918,
29965,
11150,
353,
525,
29890,
562,
328,
11989,
29899,
29890,
11989,
29899,
29881,
11989,
29899,
29890,
11989,
29899,
29881,
562,
328,
562,
328,
11989,
29915,
13,
1678,
21989,
3301,
29918,
29965,
11150,
29918,
29906,
353,
525,
29890,
774,
287,
2742,
29899,
29890,
774,
29872,
29899,
29881,
2742,
29899,
29890,
774,
29872,
29899,
7176,
774,
774,
287,
2742,
29915,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
2428,
29898,
29954,
29880,
5402,
29943,
29879,
12376,
3057,
8259,
29892,
1583,
467,
842,
3373,
580,
13,
4706,
1583,
3032,
29885,
2251,
353,
286,
2251,
29918,
1982,
29889,
29924,
2251,
580,
13,
4706,
1583,
3032,
13305,
353,
286,
2251,
29918,
1982,
29889,
18680,
2061,
29898,
5527,
29889,
8614,
29897,
13,
4706,
1583,
3032,
13305,
29889,
4397,
29918,
2917,
29918,
5975,
29898,
29885,
2251,
29918,
1982,
29889,
23805,
8559,
3101,
13,
4706,
1583,
3032,
13305,
29889,
3820,
5402,
5847,
29918,
845,
5114,
29918,
2917,
353,
320,
13,
9651,
1583,
29889,
18267,
29918,
23498,
15989,
29918,
25903,
29918,
7724,
13,
4706,
1583,
3032,
13305,
29889,
3820,
5402,
5847,
29918,
16476,
29918,
3149,
29918,
3188,
353,
320,
13,
9651,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
13,
4706,
1583,
3032,
13305,
29889,
3820,
5402,
5847,
29918,
20960,
29918,
4422,
353,
525,
2176,
29915,
13,
4706,
1583,
3032,
13305,
29889,
3820,
5402,
5847,
29918,
29879,
862,
8485,
29918,
1555,
9351,
353,
5852,
13,
4706,
1583,
3032,
13305,
29889,
3820,
5402,
5847,
29918,
29939,
20587,
29906,
29918,
1555,
9351,
353,
7700,
13,
13,
4706,
1583,
29889,
303,
23954,
353,
19281,
449,
29889,
855,
431,
3744,
2831,
3057,
292,
580,
13,
4706,
1583,
3032,
9465,
17313,
13,
9651,
3144,
5402,
5847,
29889,
29954,
29880,
5402,
5847,
12376,
29898,
13305,
29922,
1311,
3032,
13305,
29897,
13,
4706,
1583,
3032,
9465,
29889,
845,
5114,
353,
6571,
13,
13,
1678,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
4706,
1583,
3032,
29885,
2251,
29889,
2525,
842,
855,
23954,
580,
13,
4706,
1583,
29889,
303,
23954,
29889,
2525,
842,
3596,
580,
13,
4706,
2428,
29898,
29954,
29880,
5402,
29943,
29879,
12376,
3057,
8259,
29892,
1583,
467,
371,
279,
6767,
580,
13,
13,
1678,
822,
19281,
29918,
449,
29918,
1333,
29918,
276,
1456,
292,
29898,
1311,
29892,
5446,
29892,
12421,
29918,
978,
1125,
13,
4706,
12421,
29918,
517,
29918,
6506,
353,
679,
5552,
29898,
5415,
29892,
12421,
29918,
978,
29897,
13,
4706,
19281,
353,
286,
2251,
29918,
1982,
29889,
18680,
2061,
29898,
5552,
29918,
517,
29918,
6506,
29897,
13,
4706,
1583,
29889,
303,
23954,
29889,
2697,
29898,
5415,
29892,
12421,
29918,
978,
29892,
19281,
29897,
13,
13,
1678,
822,
1243,
29918,
2997,
29918,
2084,
29898,
1311,
1125,
13,
4706,
9995,
2997,
29918,
2084,
3619,
671,
1206,
1213,
15945,
13,
4706,
3144,
5402,
5847,
29889,
6007,
29943,
29889,
3820,
5402,
5847,
29918,
16476,
29918,
3149,
29918,
3188,
353,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
7977,
353,
360,
3774,
24679,
580,
13,
4706,
7977,
1839,
18121,
29918,
5479,
2033,
353,
1583,
29889,
18267,
29918,
5746,
15082,
29896,
13,
4706,
7977,
1839,
978,
2033,
353,
525,
24623,
29899,
29896,
29906,
29941,
29915,
13,
13,
4706,
1583,
29889,
9294,
9843,
29898,
13,
9651,
8207,
29885,
593,
29914,
1688,
29914,
370,
29900,
29941,
370,
29941,
29946,
29872,
11989,
29946,
29953,
29874,
29945,
14943,
29947,
29896,
29947,
29955,
29947,
29888,
29955,
29872,
29929,
29890,
29929,
29896,
13801,
29914,
24623,
29899,
29896,
29906,
29941,
742,
13,
9651,
4192,
29894,
29889,
2997,
29918,
2084,
29898,
24623,
876,
13,
13,
1678,
822,
1243,
29918,
16476,
29918,
3820,
5402,
5847,
29918,
9344,
29918,
16476,
29918,
15728,
368,
29898,
1311,
1125,
13,
4706,
9995,
29918,
16476,
29918,
3820,
5402,
5847,
3619,
1206,
8744,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
4192,
29894,
3032,
7978,
877,
11256,
3972,
742,
17411,
29886,
742,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29897,
13,
4706,
4192,
29894,
3032,
7978,
877,
16476,
742,
17411,
29873,
742,
525,
3820,
5402,
5847,
742,
1583,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
13,
462,
268,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29892,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
3032,
16476,
29918,
3820,
5402,
5847,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
16476,
29918,
3820,
5402,
5847,
29918,
9344,
29918,
19303,
1253,
29918,
284,
2040,
29918,
16476,
287,
29918,
2704,
29898,
1311,
1125,
13,
4706,
9995,
29918,
16476,
29918,
3820,
5402,
5847,
881,
21301,
2307,
19239,
1059,
565,
13,
965,
9801,
29922,
5574,
13,
4706,
9995,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
4192,
29894,
3032,
7978,
877,
11256,
3972,
742,
17411,
29886,
742,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29897,
13,
4706,
4192,
29894,
3032,
7978,
877,
16476,
742,
17411,
29873,
742,
525,
3820,
5402,
5847,
742,
1583,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
13,
462,
268,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29892,
1065,
29918,
294,
29918,
4632,
29922,
5574,
467,
29905,
13,
9651,
1126,
29934,
29874,
895,
29898,
649,
2719,
29889,
7032,
20418,
2392,
29898,
13,
462,
268,
380,
20405,
2433,
275,
19587,
470,
2307,
19239,
8785,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
3032,
16476,
29918,
3820,
5402,
5847,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29892,
13,
462,
632,
9801,
29922,
5574,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
16476,
29918,
3820,
5402,
5847,
29918,
9344,
29918,
13941,
895,
29918,
284,
2040,
29918,
16476,
287,
29918,
2704,
29898,
1311,
1125,
13,
4706,
9995,
29918,
16476,
29918,
3820,
5402,
5847,
881,
451,
21301,
2307,
19239,
1059,
13,
965,
565,
9801,
29922,
8824,
13,
4706,
9995,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
4192,
29894,
3032,
7978,
877,
11256,
3972,
742,
17411,
29886,
742,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29897,
13,
4706,
4192,
29894,
3032,
7978,
29898,
13,
9651,
525,
16476,
742,
13,
9651,
17411,
29873,
742,
13,
9651,
525,
3820,
5402,
5847,
742,
13,
9651,
1583,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
13,
9651,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29892,
13,
9651,
1065,
29918,
294,
29918,
4632,
29922,
5574,
467,
320,
13,
9651,
1126,
29934,
29874,
895,
29898,
649,
2719,
29889,
7032,
20418,
2392,
29898,
303,
20405,
2433,
275,
19587,
470,
525,
13,
462,
462,
462,
308,
525,
284,
2040,
19239,
8785,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
649,
2719,
29889,
7032,
20418,
2392,
29892,
4192,
29894,
3032,
16476,
29918,
3820,
5402,
5847,
29892,
13,
462,
3986,
1583,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29892,
13,
462,
3986,
9801,
29922,
8824,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
16476,
29918,
3820,
5402,
5847,
29918,
9344,
29918,
3258,
29918,
16476,
3149,
29918,
361,
29918,
1333,
29918,
29891,
300,
29898,
1311,
1125,
13,
4706,
9995,
29918,
16476,
29918,
3820,
5402,
5847,
881,
1653,
5766,
3149,
565,
372,
1838,
29915,
29873,
1863,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
4192,
29894,
3032,
7978,
877,
11256,
3972,
742,
17411,
29886,
742,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29897,
13,
4706,
4192,
29894,
3032,
7978,
10456,
4197,
23805,
8559,
580,
29962,
334,
29871,
29945,
511,
1065,
29918,
294,
29918,
4632,
29922,
23805,
8559,
3101,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
3032,
16476,
29918,
3820,
5402,
5847,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
657,
29918,
8568,
29918,
710,
29898,
1311,
1125,
13,
4706,
9995,
29918,
657,
29918,
8568,
29918,
710,
881,
13944,
1959,
995,
1213,
15945,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
1583,
29889,
9294,
9843,
877,
370,
29900,
29941,
370,
29941,
29946,
29872,
11989,
29946,
29953,
29874,
29945,
14943,
29947,
29896,
29947,
29955,
29947,
29888,
29955,
29872,
29929,
29890,
29929,
29896,
13801,
742,
13,
462,
308,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
876,
13,
13,
1678,
822,
1243,
29918,
657,
29918,
16476,
29918,
3149,
29918,
1454,
29918,
13653,
29898,
1311,
1125,
13,
4706,
9995,
29918,
657,
29918,
16476,
29918,
3149,
29918,
1454,
29918,
13653,
881,
8147,
1959,
995,
1213,
15945,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
3144,
5402,
5847,
29889,
6007,
29943,
29889,
3820,
5402,
5847,
29918,
16476,
29918,
3149,
29918,
3188,
353,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
13,
13,
4706,
1583,
29889,
9294,
9843,
11219,
29885,
593,
29914,
1688,
29914,
370,
29900,
29941,
370,
29941,
29946,
29872,
11989,
29946,
29953,
29874,
29945,
14943,
29947,
29896,
29947,
29955,
29947,
29888,
29955,
29872,
29929,
29890,
29929,
29896,
13801,
742,
13,
462,
308,
4192,
29894,
3032,
657,
29918,
16476,
29918,
3149,
29918,
1454,
29918,
13653,
29898,
13,
462,
632,
1583,
29889,
18267,
29918,
5746,
15082,
29896,
876,
13,
13,
1678,
822,
1243,
29918,
657,
29918,
16515,
29918,
5030,
5946,
29918,
2541,
29918,
2176,
29898,
1311,
1125,
13,
4706,
9995,
29918,
657,
29918,
16515,
29918,
5030,
5946,
881,
8147,
1959,
995,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
4489,
29918,
7827,
29918,
2311,
353,
29871,
29906,
29953,
29906,
29900,
29945,
29946,
29946,
13,
4706,
4489,
29918,
485,
737,
353,
29871,
29896,
29946,
29929,
29900,
29945,
29953,
29900,
13,
4706,
4489,
29918,
2813,
353,
525,
10547,
973,
29871,
29896,
29968,
29899,
1271,
29879,
501,
8485,
7740,
3106,
4803,
29995,
8040,
287,
373,
29905,
29876,
29915,
13,
4706,
4489,
29918,
1272,
353,
525,
3820,
5402,
5847,
29899,
3069,
8419,
15843,
1273,
29881,
29871,
29929,
29929,
29953,
29947,
29953,
29946,
1273,
29881,
29871,
29946,
29896,
7686,
847,
29885,
593,
29915,
1273,
320,
13,
462,
29871,
313,
2176,
29918,
7827,
29918,
2311,
29892,
4489,
29918,
485,
737,
29897,
13,
4706,
4489,
29918,
4905,
353,
4489,
29918,
2813,
718,
4489,
29918,
1272,
13,
13,
4706,
731,
5552,
29898,
3820,
5402,
5847,
29889,
6007,
29943,
29892,
525,
3820,
5402,
5847,
29918,
20960,
29918,
4422,
742,
525,
2176,
1495,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
657,
29918,
16476,
29918,
3149,
29918,
1454,
29918,
13653,
1495,
13,
4706,
4192,
29894,
3032,
657,
29918,
16476,
29918,
3149,
29918,
1454,
29918,
13653,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
467,
29905,
13,
9651,
1126,
11609,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
4192,
29894,
3032,
7978,
877,
2176,
742,
525,
489,
637,
3097,
742,
525,
489,
1271,
29899,
2311,
742,
525,
29896,
742,
13,
462,
268,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29892,
13,
462,
268,
1065,
29918,
294,
29918,
4632,
29922,
5574,
467,
2855,
11609,
3552,
2176,
29918,
4905,
29892,
6213,
876,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
1583,
29889,
9294,
9843,
3552,
2176,
29918,
485,
737,
29892,
4489,
29918,
7827,
29918,
2311,
511,
13,
462,
308,
4192,
29894,
3032,
657,
29918,
16515,
29918,
5030,
5946,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
876,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
4706,
628,
5552,
29898,
3820,
5402,
5847,
29889,
6007,
29943,
29892,
525,
3820,
5402,
5847,
29918,
20960,
29918,
4422,
1495,
13,
13,
1678,
822,
1243,
29918,
1359,
29918,
845,
5114,
29918,
2917,
29898,
1311,
1125,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
4192,
29894,
29889,
13305,
29889,
3820,
5402,
5847,
29918,
845,
5114,
29918,
2917,
353,
313,
13,
9651,
1583,
29889,
18267,
29918,
23498,
15989,
29918,
25903,
29918,
7724,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
2917,
29918,
1445,
1495,
13,
4706,
2295,
29918,
1272,
353,
5159,
13,
4706,
2295,
29918,
1272,
29889,
4397,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
2295,
29918,
1272,
29889,
4397,
14237,
29915,
718,
1583,
29889,
18267,
29918,
5746,
15082,
29906,
29897,
13,
4706,
2295,
29918,
1272,
29889,
4397,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29906,
718,
525,
525,
718,
1583,
29889,
18267,
29918,
5746,
15082,
29906,
29918,
14094,
27946,
29897,
13,
4706,
2295,
29918,
1272,
29889,
4397,
877,
6729,
1717,
29901,
13653,
29918,
4830,
1495,
13,
4706,
2295,
29918,
1272,
29889,
4397,
877,
1495,
13,
4706,
4192,
29894,
3032,
949,
29918,
2917,
29918,
1445,
29898,
1311,
29889,
18267,
29918,
23498,
15989,
29918,
25903,
29918,
7724,
467,
29905,
13,
9651,
1126,
11609,
29898,
2917,
29918,
1272,
29897,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
3032,
1359,
29918,
845,
5114,
29918,
2917,
29898,
7707,
29894,
29889,
13305,
29889,
3820,
5402,
5847,
29918,
845,
5114,
29918,
2917,
29897,
13,
13,
4706,
1583,
29889,
9294,
797,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
4192,
29894,
29889,
845,
5114,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29906,
29892,
4192,
29894,
29889,
845,
5114,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
7707,
29894,
29889,
845,
5114,
511,
29871,
29906,
29897,
13,
13,
4706,
1583,
29889,
9294,
9843,
29898,
7707,
29894,
29889,
845,
5114,
29961,
1311,
29889,
18267,
29918,
5746,
15082,
29906,
1402,
13,
462,
308,
1583,
29889,
18267,
29918,
5746,
15082,
29906,
29918,
14094,
27946,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
7469,
29918,
13653,
29918,
16476,
287,
29898,
1311,
1125,
13,
4706,
9995,
29918,
7469,
29918,
13653,
29918,
16476,
287,
2560,
671,
1206,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
13239,
29892,
525,
657,
29918,
1445,
29918,
8513,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
13239,
29892,
525,
657,
29918,
1445,
29918,
29887,
333,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
8231,
519,
1495,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
657,
29918,
16476,
29918,
3149,
29918,
1454,
29918,
13653,
1495,
13,
4706,
4192,
29894,
3032,
657,
29918,
16476,
29918,
3149,
29918,
1454,
29918,
13653,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
467,
29905,
13,
9651,
1126,
11609,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
16476,
29918,
3820,
5402,
5847,
1495,
13,
4706,
4192,
29894,
3032,
16476,
29918,
3820,
5402,
5847,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29892,
13,
462,
632,
9801,
29922,
5574,
29897,
13,
13,
4706,
3667,
29879,
29889,
657,
29918,
1445,
29918,
29887,
333,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
467,
2855,
11609,
29898,
29941,
29941,
29941,
29941,
29941,
29941,
29897,
13,
13,
4706,
3667,
29879,
29889,
657,
29918,
1445,
29918,
8513,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
467,
2855,
11609,
29898,
29900,
29877,
29955,
29955,
29955,
29897,
13,
13,
4706,
4192,
29894,
3032,
7469,
29918,
13653,
29918,
8231,
519,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
305,
629,
29886,
742,
18076,
487,
8559,
3285,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29892,
13,
462,
268,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
3032,
7469,
29918,
13653,
29918,
16476,
287,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
7469,
29918,
845,
5114,
29918,
16476,
287,
29918,
9344,
29918,
7620,
29918,
16476,
292,
29918,
8698,
3730,
29898,
1311,
1125,
13,
4706,
9995,
29918,
7469,
29918,
845,
5114,
29918,
16476,
287,
881,
4078,
6232,
565,
19239,
411,
2551,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
2917,
29918,
1445,
1495,
13,
4706,
2295,
29918,
1272,
353,
5159,
13,
4706,
2295,
29918,
1272,
29889,
4397,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
4192,
29894,
3032,
949,
29918,
2917,
29918,
1445,
29898,
1311,
29889,
18267,
29918,
23498,
15989,
29918,
25903,
29918,
7724,
467,
29905,
13,
9651,
1126,
11609,
29898,
2917,
29918,
1272,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
16476,
287,
1495,
13,
4706,
4192,
29894,
3032,
7469,
29918,
13653,
29918,
16476,
287,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
3032,
7469,
29918,
845,
5114,
29918,
16476,
287,
580,
13,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29896,
29892,
7431,
29898,
7707,
29894,
3032,
16476,
287,
29918,
845,
5114,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
4192,
29894,
3032,
16476,
287,
29918,
845,
5114,
29961,
29900,
2314,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
7469,
29918,
845,
5114,
29918,
16476,
287,
29918,
9344,
29918,
1333,
29918,
7620,
29918,
16476,
292,
29918,
2541,
29918,
2704,
29898,
1311,
1125,
13,
4706,
9995,
29918,
7469,
29918,
845,
5114,
29918,
16476,
287,
881,
451,
4078,
6232,
565,
5229,
304,
5766,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
2917,
29918,
1445,
1495,
13,
4706,
2295,
29918,
1272,
353,
5159,
13,
4706,
2295,
29918,
1272,
29889,
4397,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
4192,
29894,
3032,
949,
29918,
2917,
29918,
1445,
29898,
1311,
29889,
18267,
29918,
23498,
15989,
29918,
25903,
29918,
7724,
467,
29905,
13,
9651,
1126,
11609,
29898,
2917,
29918,
1272,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
16476,
287,
1495,
13,
4706,
4192,
29894,
3032,
7469,
29918,
13653,
29918,
16476,
287,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
467,
2855,
29934,
29874,
895,
29898,
2451,
3101,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
3032,
7469,
29918,
845,
5114,
29918,
16476,
287,
580,
13,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29900,
29892,
7431,
29898,
7707,
29894,
3032,
16476,
287,
29918,
845,
5114,
876,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
14669,
29918,
9344,
29918,
20539,
29918,
2704,
29918,
361,
29918,
845,
5114,
29918,
2917,
29918,
1333,
29918,
2917,
2955,
29898,
1311,
1125,
13,
4706,
9995,
1867,
29918,
14669,
881,
3183,
1059,
565,
29358,
2295,
338,
451,
13252,
1213,
15945,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
3144,
5402,
5847,
29889,
6007,
29943,
29889,
3820,
5402,
5847,
29918,
845,
5114,
29918,
2917,
353,
1583,
29889,
18267,
29918,
23498,
15989,
29918,
25903,
29918,
7724,
13,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
11739,
29889,
29954,
29880,
5402,
5847,
2451,
29892,
13,
462,
3986,
4192,
29894,
29889,
1867,
29918,
14669,
29892,
1317,
29909,
29898,
4703,
29889,
3089,
2677,
876,
13,
13,
1678,
822,
1243,
29918,
14669,
29918,
9344,
29918,
20539,
29918,
11739,
29918,
361,
29918,
4645,
29918,
275,
29918,
1333,
29918,
25537,
29898,
1311,
1125,
13,
4706,
9995,
1867,
29918,
14669,
881,
3183,
3682,
565,
3132,
338,
451,
5130,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
3144,
5402,
5847,
29889,
6007,
29943,
29889,
3820,
5402,
5847,
29918,
845,
5114,
29918,
2917,
353,
1583,
29889,
18267,
29918,
23498,
15989,
29918,
25903,
29918,
7724,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
359,
29889,
2084,
29892,
525,
9933,
1495,
13,
4706,
2897,
29889,
2084,
29889,
9933,
29898,
1311,
29889,
18267,
29918,
23498,
15989,
29918,
25903,
29918,
7724,
467,
2855,
11609,
29898,
5574,
29897,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
4192,
29894,
3032,
7978,
877,
16476,
29889,
3820,
5402,
5847,
742,
1423,
29918,
13322,
29918,
401,
29922,
8824,
467,
29905,
13,
9651,
1126,
29934,
29874,
895,
29898,
29949,
29173,
29898,
3127,
1217,
29889,
1430,
29949,
3919,
29892,
525,
3782,
1316,
934,
470,
3884,
8785,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
11739,
29889,
29954,
29880,
5402,
5847,
2451,
29892,
13,
462,
3986,
4192,
29894,
29889,
1867,
29918,
14669,
29892,
1317,
29909,
29898,
4703,
29889,
3089,
2677,
876,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
903,
29888,
1296,
29918,
1359,
29918,
845,
5114,
29918,
2917,
29898,
1311,
29892,
1970,
1125,
13,
4706,
1583,
3032,
9465,
29889,
845,
5114,
353,
11117,
29896,
29906,
29955,
29889,
29955,
29889,
29955,
29889,
29955,
8419,
3820,
5402,
29896,
2396,
6213,
29913,
13,
13,
1678,
822,
903,
29888,
1296,
29918,
22175,
5776,
1971,
653,
2283,
29898,
1311,
29892,
10944,
29922,
8516,
29892,
4516,
29922,
8516,
1125,
13,
4706,
12020,
438,
29173,
877,
27293,
17935,
29991,
1495,
13,
13,
1678,
822,
1243,
29918,
14669,
29918,
842,
29918,
13653,
29918,
17858,
6847,
29898,
1311,
1125,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
3144,
5402,
5847,
29889,
6007,
29943,
29889,
3820,
5402,
5847,
29918,
845,
5114,
29918,
2917,
353,
1583,
29889,
18267,
29918,
23498,
15989,
29918,
25903,
29918,
7724,
13,
13,
4706,
1583,
29889,
303,
23954,
29889,
2697,
29898,
7707,
29894,
29892,
22868,
1359,
29918,
845,
5114,
29918,
2917,
742,
13,
462,
539,
1583,
3032,
29888,
1296,
29918,
1359,
29918,
845,
5114,
29918,
2917,
29897,
13,
4706,
1583,
29889,
303,
23954,
29889,
2697,
29898,
7382,
1445,
29892,
525,
22175,
5776,
1971,
653,
2283,
742,
13,
462,
539,
1583,
3032,
29888,
1296,
29918,
22175,
5776,
1971,
653,
2283,
29897,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
359,
29889,
2084,
29892,
525,
9933,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
13239,
29892,
525,
657,
29918,
1445,
29918,
29887,
333,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
13239,
29892,
525,
657,
29918,
1445,
29918,
8513,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
359,
29892,
525,
657,
387,
333,
1495,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
16476,
29889,
3820,
5402,
5847,
742,
1423,
29918,
13322,
29918,
401,
29922,
8824,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
11256,
3972,
742,
17411,
29886,
742,
286,
2251,
29918,
1982,
29889,
23805,
8559,
3101,
13,
13,
4706,
2897,
29889,
2084,
29889,
9933,
29898,
1311,
29889,
18267,
29918,
23498,
15989,
29918,
25903,
29918,
7724,
467,
2855,
11609,
29898,
5574,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
16476,
742,
17411,
29873,
742,
525,
3820,
5402,
5847,
742,
525,
29896,
29906,
29955,
29889,
29955,
29889,
29955,
29889,
29955,
8419,
3820,
5402,
29896,
742,
13,
462,
268,
286,
2251,
29918,
1982,
29889,
23805,
8559,
3285,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
3667,
29879,
29889,
657,
29918,
1445,
29918,
29887,
333,
29898,
29885,
2251,
29918,
1982,
29889,
23805,
8559,
16655,
2855,
11609,
29898,
29941,
29941,
29941,
29941,
29941,
29897,
13,
4706,
396,
639,
1516,
451,
2044,
519,
13,
4706,
3667,
29879,
29889,
657,
29918,
1445,
29918,
8513,
29898,
29885,
2251,
29918,
1982,
29889,
23805,
8559,
16655,
2855,
11609,
29898,
29900,
29877,
29900,
29900,
29900,
29897,
13,
13,
4706,
2897,
29889,
657,
387,
333,
2141,
2855,
11609,
29898,
29947,
29947,
29947,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
305,
629,
29886,
742,
29871,
29947,
29947,
29947,
29892,
286,
2251,
29918,
1982,
29889,
23805,
8559,
3285,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
4706,
4192,
29894,
3032,
7978,
877,
305,
1545,
742,
525,
29887,
29974,
29893,
742,
286,
2251,
29918,
1982,
29889,
23805,
8559,
3285,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
1867,
29918,
14669,
29898,
3624,
29909,
29898,
4703,
29889,
3089,
2677,
876,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
2886,
29918,
13653,
29918,
9344,
29918,
20539,
29918,
2704,
29918,
361,
29918,
12711,
29918,
275,
29918,
1217,
29918,
16476,
287,
29918,
845,
5114,
29898,
1311,
1125,
13,
4706,
9995,
29918,
2886,
29918,
13653,
881,
3183,
1059,
565,
727,
338,
694,
19239,
29358,
1213,
15945,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
4192,
29894,
3032,
16476,
287,
29918,
845,
5114,
353,
5159,
13,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
11739,
29889,
29954,
29880,
5402,
5847,
3782,
2713,
5114,
27648,
287,
29892,
13,
462,
3986,
4192,
29894,
3032,
2886,
29918,
13653,
29892,
13,
462,
3986,
1583,
29889,
18267,
29918,
14226,
29918,
1177,
29918,
7210,
29897,
13,
13,
1678,
822,
1243,
29918,
2886,
29918,
13653,
29898,
1311,
1125,
13,
4706,
9995,
29918,
2886,
29918,
13653,
2560,
671,
1206,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
4192,
29894,
3032,
16476,
287,
29918,
845,
5114,
353,
518,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
1583,
29889,
18267,
29918,
5746,
15082,
29906,
29962,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
657,
29918,
16515,
29918,
5030,
5946,
1495,
13,
4706,
4192,
29894,
3032,
657,
29918,
16515,
29918,
5030,
5946,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
467,
29905,
13,
9651,
1126,
11609,
3552,
29906,
334,
10340,
29889,
26074,
29933,
29892,
29871,
29945,
334,
10340,
29889,
26074,
29933,
876,
13,
4706,
4192,
29894,
3032,
657,
29918,
16515,
29918,
5030,
5946,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29906,
467,
29905,
13,
9651,
1126,
11609,
3552,
29941,
334,
10340,
29889,
26074,
29933,
29892,
29871,
29896,
29900,
334,
10340,
29889,
26074,
29933,
876,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29906,
29892,
13,
462,
308,
4192,
29894,
3032,
2886,
29918,
13653,
29898,
1311,
29889,
18267,
29918,
14226,
29918,
1177,
29918,
7210,
876,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
2886,
29918,
13653,
29918,
9344,
29918,
20539,
29918,
2704,
29918,
361,
29918,
12711,
29918,
275,
29918,
1217,
29918,
264,
820,
29918,
6689,
29898,
1311,
1125,
13,
4706,
9995,
29918,
2886,
29918,
13653,
881,
3183,
1059,
565,
727,
338,
694,
6232,
304,
3495,
1700,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
4192,
29894,
3032,
16476,
287,
29918,
845,
5114,
353,
518,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
13,
462,
1669,
1583,
29889,
18267,
29918,
5746,
15082,
29906,
29962,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
657,
29918,
16515,
29918,
5030,
5946,
1495,
13,
4706,
4192,
29894,
3032,
657,
29918,
16515,
29918,
5030,
5946,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
467,
29905,
13,
9651,
1126,
11609,
3552,
29900,
29892,
29871,
29945,
334,
10340,
29889,
26074,
29933,
876,
13,
4706,
4192,
29894,
3032,
657,
29918,
16515,
29918,
5030,
5946,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29906,
467,
29905,
13,
9651,
1126,
11609,
3552,
29900,
29892,
29871,
29896,
29900,
334,
10340,
29889,
26074,
29933,
876,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
11739,
29889,
29954,
29880,
5402,
5847,
3782,
29903,
3121,
519,
2713,
598,
9692,
29892,
13,
462,
3986,
4192,
29894,
3032,
2886,
29918,
13653,
29892,
13,
462,
3986,
1583,
29889,
18267,
29918,
14226,
29918,
1177,
29918,
7210,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
903,
12857,
29918,
24623,
29898,
1311,
29892,
1178,
29922,
8516,
1125,
13,
4706,
7977,
353,
360,
3774,
24679,
580,
13,
4706,
7977,
1839,
18121,
29918,
5479,
2033,
353,
1583,
29889,
18267,
29918,
5746,
15082,
29896,
13,
4706,
565,
1178,
338,
6213,
29901,
13,
9651,
7977,
1839,
333,
2033,
353,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
1683,
29901,
13,
9651,
7977,
1839,
333,
2033,
353,
1178,
13,
4706,
396,
7977,
1839,
978,
2033,
19571,
29879,
3402,
515,
4833,
29914,
2850,
284,
305,
6764,
29914,
9794,
29889,
2272,
13,
4706,
7977,
1839,
978,
2033,
353,
525,
24623,
19222,
29879,
29915,
1273,
7977,
1839,
333,
2033,
13,
4706,
7977,
1839,
2311,
2033,
353,
29871,
29896,
29900,
13,
4706,
7977,
1839,
4882,
2033,
353,
525,
16515,
29915,
13,
13,
4706,
736,
7977,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
29879,
862,
8485,
29918,
24623,
29898,
1311,
1125,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
13,
4706,
731,
5552,
29898,
3820,
5402,
5847,
29889,
6007,
29943,
29892,
525,
3820,
5402,
5847,
29918,
29879,
862,
8485,
29918,
1555,
9351,
742,
5852,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3258,
29918,
29879,
862,
8485,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
842,
29918,
13975,
29918,
17858,
6847,
29918,
1454,
29918,
497,
1495,
13,
13,
4706,
4192,
29894,
3032,
3258,
29918,
29879,
862,
8485,
29918,
1445,
29898,
23805,
8559,
3285,
18076,
487,
8559,
3101,
13,
4706,
4192,
29894,
3032,
842,
29918,
13975,
29918,
17858,
6847,
29918,
1454,
29918,
497,
29898,
23805,
8559,
3101,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
3032,
1867,
29918,
3258,
29918,
24623,
29898,
24623,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
4706,
628,
5552,
29898,
3820,
5402,
5847,
29889,
6007,
29943,
29892,
525,
3820,
5402,
5847,
29918,
29879,
862,
8485,
29918,
1555,
9351,
1495,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
29876,
787,
862,
8485,
29918,
24623,
29898,
1311,
1125,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
13,
4706,
2030,
29918,
1767,
353,
1583,
3032,
13305,
29889,
3820,
5402,
5847,
29918,
29879,
862,
8485,
29918,
1555,
9351,
13,
4706,
1583,
3032,
13305,
29889,
3820,
5402,
5847,
29918,
29879,
862,
8485,
29918,
1555,
9351,
353,
7700,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3258,
29918,
15227,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
842,
29918,
13975,
29918,
17858,
6847,
29918,
1454,
29918,
497,
1495,
13,
13,
4706,
4192,
29894,
3032,
3258,
29918,
15227,
29918,
1445,
29898,
23805,
8559,
3285,
18076,
487,
8559,
3101,
13,
4706,
4192,
29894,
3032,
842,
29918,
13975,
29918,
17858,
6847,
29918,
1454,
29918,
497,
29898,
23805,
8559,
3101,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
3032,
1867,
29918,
3258,
29918,
24623,
29898,
24623,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
4706,
1583,
3032,
13305,
29889,
3820,
5402,
5847,
29918,
29879,
862,
8485,
29918,
1555,
9351,
353,
2030,
29918,
1767,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
29939,
20587,
29906,
29918,
24623,
29898,
1311,
1125,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
4706,
2030,
29918,
1767,
353,
1583,
3032,
13305,
29889,
3820,
5402,
5847,
29918,
29939,
20587,
29906,
29918,
1555,
9351,
13,
4706,
1583,
3032,
13305,
29889,
3820,
5402,
5847,
29918,
29939,
20587,
29906,
29918,
1555,
9351,
353,
5852,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
24623,
1839,
18121,
29918,
5479,
11287,
13,
4706,
2224,
353,
14210,
29879,
22584,
29879,
29914,
24623,
19222,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
1678,
6608,
287,
29892,
13,
462,
462,
1678,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
29939,
24425,
29899,
2492,
742,
525,
3258,
742,
17411,
29888,
742,
525,
29939,
20587,
29906,
742,
13,
462,
268,
17411,
29877,
742,
525,
1457,
284,
5479,
29922,
19635,
742,
2224,
29892,
13,
462,
268,
851,
29898,
24623,
1839,
2311,
2033,
334,
10340,
29889,
26074,
29933,
511,
13,
462,
268,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
305,
1545,
742,
525,
15490,
29974,
13975,
742,
2224,
29892,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
3032,
1867,
29918,
3258,
29918,
24623,
29898,
24623,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
4706,
1583,
3032,
13305,
29889,
3820,
5402,
5847,
29918,
29939,
20587,
29906,
29918,
1555,
9351,
353,
2030,
29918,
1767,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
24623,
29918,
9344,
29918,
7469,
29918,
3820,
5402,
5847,
29918,
16476,
287,
29898,
1311,
1125,
13,
4706,
9995,
3258,
29918,
24623,
5662,
1973,
29358,
4944,
297,
2295,
526,
19239,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
1583,
29889,
303,
431,
29918,
449,
29918,
1333,
29918,
276,
1456,
292,
29898,
3820,
5402,
5847,
29892,
525,
14480,
1495,
13,
4706,
1583,
29889,
303,
431,
29918,
449,
29918,
1333,
29918,
276,
1456,
292,
29898,
7707,
29894,
29892,
22868,
2886,
29918,
13653,
1495,
13,
4706,
1583,
29889,
303,
431,
29918,
449,
29918,
1333,
29918,
276,
1456,
292,
29898,
7707,
29894,
29892,
22868,
1867,
29918,
3258,
29918,
24623,
1495,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
845,
5114,
29918,
16476,
287,
1495,
13,
4706,
4192,
29894,
3032,
7469,
29918,
845,
5114,
29918,
16476,
287,
580,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
7977,
353,
360,
3774,
24679,
580,
13,
4706,
7977,
1839,
2311,
2033,
353,
1583,
29889,
18267,
29918,
14226,
29918,
1177,
29918,
7210,
13,
4706,
4192,
29894,
29889,
3258,
29918,
24623,
29898,
24623,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
24623,
29918,
9344,
29918,
2457,
29918,
18121,
29918,
5479,
29898,
1311,
1125,
13,
4706,
9995,
3258,
29918,
24623,
881,
736,
13113,
29918,
5479,
411,
1476,
6232,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
1583,
29889,
303,
431,
29918,
449,
29918,
1333,
29918,
276,
1456,
292,
29898,
3820,
5402,
5847,
29892,
525,
14480,
1495,
13,
4706,
1583,
29889,
303,
431,
29918,
449,
29918,
1333,
29918,
276,
1456,
292,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
845,
5114,
29918,
16476,
287,
1495,
13,
4706,
1583,
29889,
303,
431,
29918,
449,
29918,
1333,
29918,
276,
1456,
292,
29898,
7707,
29894,
29892,
22868,
1867,
29918,
3258,
29918,
24623,
1495,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
2886,
29918,
13653,
1495,
13,
4706,
4192,
29894,
3032,
2886,
29918,
13653,
29898,
1311,
29889,
18267,
29918,
14226,
29918,
1177,
29918,
7210,
467,
2855,
11609,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
7977,
353,
360,
3774,
24679,
580,
13,
4706,
7977,
1839,
2311,
2033,
353,
1583,
29889,
18267,
29918,
14226,
29918,
1177,
29918,
7210,
13,
4706,
1121,
353,
4192,
29894,
29889,
3258,
29918,
24623,
29898,
24623,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29892,
1121,
1839,
18121,
29918,
5479,
11287,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
695,
22367,
29918,
24623,
29898,
1311,
1125,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3258,
29918,
29879,
14551,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
8143,
29918,
29879,
14551,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
13441,
29918,
3027,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
8552,
29918,
24623,
29918,
3166,
29918,
29879,
14551,
1495,
13,
13,
4706,
7977,
29918,
1445,
353,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
7977,
29918,
2084,
353,
14210,
29879,
22584,
29879,
22584,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
1678,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
511,
13,
462,
462,
1678,
7977,
29918,
1445,
29897,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
4706,
4765,
29918,
29894,
999,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
4706,
4765,
29918,
29894,
999,
1839,
333,
2033,
353,
525,
29941,
29955,
29945,
29872,
29941,
29906,
29890,
29906,
29899,
29947,
29900,
29946,
29874,
29899,
29946,
29929,
29888,
29906,
29899,
29890,
29906,
29947,
29906,
29899,
29947,
29945,
29881,
29896,
29881,
29945,
29874,
29945,
29890,
29929,
29872,
29896,
29915,
13,
4706,
4765,
29918,
29894,
999,
1839,
978,
2033,
353,
525,
24623,
19222,
29879,
29915,
1273,
4765,
29918,
29894,
999,
1839,
333,
2033,
13,
4706,
7977,
29918,
1445,
353,
525,
24623,
19222,
29879,
29915,
1273,
4765,
29918,
29894,
999,
1839,
333,
2033,
13,
4706,
7977,
29918,
2084,
353,
14210,
29879,
22584,
29879,
22584,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
1678,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
511,
13,
462,
462,
1678,
7977,
29918,
1445,
29897,
13,
4706,
4765,
29918,
3888,
29918,
2084,
353,
14210,
29879,
29889,
3888,
29915,
1273,
7977,
29918,
2084,
13,
4706,
7977,
29918,
999,
353,
11117,
333,
2396,
7977,
1839,
333,
7464,
13,
462,
418,
525,
978,
2396,
7977,
1839,
978,
7464,
13,
462,
418,
525,
4882,
2396,
7977,
1839,
4882,
7464,
13,
462,
418,
525,
18121,
29918,
5479,
2396,
7977,
1839,
18121,
29918,
5479,
7464,
13,
462,
418,
525,
2311,
2396,
7977,
1839,
2311,
2033,
29913,
13,
13,
4706,
15101,
29918,
999,
353,
11117,
24623,
29918,
978,
2396,
4765,
29918,
29894,
999,
1839,
978,
7464,
13,
462,
1678,
525,
978,
2396,
525,
16513,
29899,
29879,
8971,
19222,
29879,
29915,
1273,
4765,
29918,
29894,
999,
1839,
333,
7464,
13,
462,
1678,
525,
2311,
2396,
4765,
29918,
29894,
999,
1839,
2311,
7464,
13,
462,
1678,
525,
24623,
29918,
2311,
2396,
4765,
29918,
29894,
999,
1839,
2311,
7464,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
4765,
29918,
29894,
999,
1839,
333,
7464,
13,
462,
1678,
525,
333,
2396,
525,
7050,
29899,
29879,
8971,
19222,
29879,
29915,
1273,
4765,
29918,
29894,
999,
1839,
333,
7464,
13,
462,
1678,
525,
24623,
2396,
4765,
29918,
29894,
999,
29913,
13,
13,
4706,
4192,
29894,
3032,
3258,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
3888,
353,
11117,
4925,
2396,
7977,
29918,
1445,
29892,
13,
462,
268,
15101,
29918,
999,
1839,
333,
2033,
29901,
7977,
29918,
2084,
718,
17411,
16513,
10827,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
4351,
29918,
3888,
29918,
2084,
467,
2855,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
8552,
29918,
24623,
29918,
3166,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29892,
7977,
29918,
999,
29892,
7977,
1839,
2311,
11287,
13,
13,
4706,
4192,
29894,
3032,
8143,
29918,
29879,
14551,
29898,
29885,
2251,
29918,
1982,
29889,
23805,
8559,
3101,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
3258,
29918,
695,
22367,
29918,
24623,
29898,
24623,
29892,
4765,
29918,
29894,
999,
29897,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
24623,
29898,
1311,
1125,
13,
4706,
9995,
8143,
29918,
24623,
2560,
1243,
1206,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
1583,
29889,
303,
431,
29918,
449,
29918,
1333,
29918,
276,
1456,
292,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
16476,
287,
1495,
13,
13,
4706,
7977,
353,
360,
3774,
24679,
580,
13,
4706,
7977,
1839,
978,
2033,
353,
525,
24623,
29899,
29896,
29906,
29941,
29915,
13,
4706,
7977,
1839,
18121,
29918,
5479,
2033,
353,
1583,
29889,
18267,
29918,
5746,
15082,
29896,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
525,
2997,
29918,
2084,
1495,
13,
4706,
4192,
29894,
29889,
2997,
29918,
2084,
29898,
24623,
467,
2855,
11609,
29898,
1311,
29889,
18267,
29918,
16652,
1964,
29918,
10145,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
4192,
29894,
3032,
7978,
877,
1758,
742,
17411,
29888,
742,
1583,
29889,
18267,
29918,
16652,
1964,
29918,
10145,
29892,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
8143,
29918,
24623,
29898,
24623,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
9344,
29918,
7469,
29918,
13653,
29918,
16476,
287,
29898,
1311,
1125,
13,
4706,
9995,
8143,
29918,
24623,
881,
9801,
393,
6590,
6232,
338,
19239,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
1583,
29889,
303,
431,
29918,
449,
29918,
1333,
29918,
276,
1456,
292,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
13,
4706,
7977,
353,
360,
3774,
24679,
580,
13,
4706,
7977,
1839,
978,
2033,
353,
525,
24623,
29899,
29896,
29906,
29941,
29915,
13,
4706,
7977,
1839,
18121,
29918,
5479,
2033,
353,
1583,
29889,
18267,
29918,
5746,
15082,
29896,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
16476,
287,
1495,
13,
4706,
4192,
29894,
3032,
7469,
29918,
13653,
29918,
16476,
287,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
8143,
29918,
24623,
29898,
24623,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
9344,
29918,
1333,
29918,
8143,
29918,
361,
29918,
18121,
29918,
5479,
29918,
1333,
29918,
16123,
2618,
29898,
1311,
1125,
13,
4706,
9995,
8143,
29918,
24623,
9273,
29915,
29873,
5217,
565,
13113,
29918,
5479,
13726,
1213,
15945,
13,
4706,
286,
2251,
353,
1583,
3032,
29885,
2251,
13,
4706,
4192,
29894,
353,
1583,
3032,
9465,
13,
13,
4706,
1583,
29889,
303,
431,
29918,
449,
29918,
1333,
29918,
276,
1456,
292,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
16476,
287,
1495,
13,
13,
4706,
7977,
353,
360,
3774,
24679,
580,
13,
4706,
7977,
1839,
978,
2033,
353,
525,
24623,
29899,
29896,
29906,
29941,
29915,
13,
4706,
7977,
1839,
18121,
29918,
5479,
2033,
353,
6213,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
8143,
29918,
24623,
29898,
24623,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
29879,
14551,
29898,
1311,
1125,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
1583,
29889,
303,
431,
29918,
449,
29918,
1333,
29918,
276,
1456,
292,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
16476,
287,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3258,
29918,
29939,
20587,
29906,
29918,
29879,
8971,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3539,
29918,
3888,
29918,
1445,
1495,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
4706,
15101,
29918,
999,
353,
11117,
978,
2396,
525,
1688,
15101,
742,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
24623,
2396,
7977,
29892,
13,
462,
1678,
525,
333,
2396,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29913,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
13,
4706,
1700,
29918,
9507,
353,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
15101,
29918,
9507,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
1555,
29918,
9507,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
1700,
29918,
2084,
353,
14210,
29879,
22584,
29879,
22584,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
6608,
287,
29892,
13,
462,
462,
1700,
29918,
9507,
29897,
13,
4706,
15101,
29918,
2084,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
1555,
29918,
2084,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
4706,
5235,
29918,
2084,
353,
14210,
29879,
29995,
29879,
29915,
1273,
313,
1555,
29918,
2084,
29892,
15300,
3888,
1495,
13,
13,
4706,
5235,
29918,
8977,
353,
11117,
4925,
2396,
1700,
29918,
9507,
29913,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
29905,
13,
9651,
1126,
11609,
29898,
3888,
29918,
8977,
29897,
13,
13,
4706,
4192,
29894,
3032,
3258,
29918,
29939,
20587,
29906,
29918,
29879,
8971,
29918,
1445,
29898,
29879,
8971,
29918,
999,
29892,
1700,
29918,
9507,
29892,
15101,
29918,
2084,
29897,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
353,
4852,
15945,
3027,
29901,
7977,
19222,
29879,
13,
4706,
934,
3402,
29901,
10650,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29945,
29906,
29968,
13,
4706,
9995,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
27255,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
29905,
13,
9651,
1126,
11609,
29898,
3888,
29918,
8977,
29897,
13,
13,
4706,
396,
21989,
3301,
29918,
29965,
11150,
29918,
29906,
756,
1063,
6206,
515,
9657,
29889,
13,
4706,
5235,
29918,
1445,
29918,
8977,
353,
11117,
4925,
2396,
525,
24623,
19222,
29879,
29889,
29995,
29879,
29915,
1273,
13,
462,
3986,
313,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
511,
13,
462,
3986,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29901,
525,
24623,
19222,
29879,
29889,
29995,
29879,
29915,
1273,
13,
462,
3986,
313,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
2915,
13,
13,
4706,
4192,
29894,
3032,
3539,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
5235,
29918,
1445,
29918,
8977,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
3258,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
29879,
14551,
29918,
8968,
29898,
1311,
1125,
13,
4706,
9995,
15329,
552,
15101,
845,
1862,
1863,
29889,
13,
13,
965,
512,
445,
1243,
29892,
2224,
313,
24623,
29899,
29966,
25118,
12948,
338,
1250,
287,
491,
13,
9651,
15101,
29918,
2084,
313,
24623,
29899,
29966,
25118,
15513,
29966,
29879,
8971,
29918,
25118,
12948,
607,
338,
1250,
287,
491,
13,
9651,
15101,
29918,
2084,
29918,
29906,
313,
24623,
29899,
29966,
25118,
15513,
29966,
29879,
8971,
29918,
25118,
29918,
29906,
29958,
467,
13,
13,
965,
21267,
278,
22395,
15659,
491,
21989,
3301,
29918,
29965,
11150,
29918,
29906,
29889,
13,
13,
965,
678,
475,
5771,
515,
13,
462,
1669,
313,
19296,
3301,
29918,
29965,
11150,
29897,
418,
313,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29897,
13,
632,
7977,
29899,
10736,
1599,
7977,
29899,
10736,
29889,
29890,
11989,
1599,
7977,
29899,
10736,
29889,
29890,
774,
29872,
13,
965,
304,
13,
462,
1669,
313,
19296,
3301,
29918,
29965,
11150,
29897,
13,
632,
7977,
29899,
10736,
1599,
7977,
29899,
10736,
29889,
29890,
11989,
13,
4706,
9995,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
7977,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
6608,
287,
29897,
13,
4706,
7977,
29918,
2084,
353,
14210,
29879,
22584,
29879,
29914,
24623,
19222,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
965,
6608,
287,
29892,
13,
462,
462,
965,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29897,
13,
4706,
7977,
29918,
9507,
353,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
13,
4706,
15101,
29918,
2084,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
4706,
15101,
29918,
2084,
29918,
29906,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29897,
13,
4706,
15101,
29918,
1445,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
9507,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
4706,
15101,
29918,
1445,
29918,
29906,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
9507,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29897,
13,
4706,
5235,
29918,
2084,
353,
14210,
29879,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
15300,
3888,
1495,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
353,
9995,
3027,
29901,
7977,
19222,
29879,
29889,
29995,
29879,
13,
4706,
934,
3402,
29901,
3855,
20587,
29906,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29941,
29968,
13,
4706,
27436,
934,
29901,
1273,
29879,
13,
4706,
9995,
1273,
313,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29892,
7977,
29918,
9507,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
657,
29918,
1627,
292,
29918,
14153,
29918,
1454,
29918,
2084,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
657,
29918,
4352,
292,
29918,
1627,
292,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3539,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
8231,
519,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
29939,
24425,
29918,
2492,
29918,
3888,
1495,
13,
13,
4706,
4192,
29894,
3032,
7469,
29918,
13653,
29918,
8231,
519,
29898,
24623,
29918,
3972,
29897,
13,
13,
4706,
10153,
29918,
3888,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
29939,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
29897,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
29879,
8971,
29918,
2084,
29918,
29906,
467,
2855,
11609,
29898,
2492,
29918,
3888,
29897,
13,
13,
4706,
5235,
29918,
1445,
29918,
8977,
353,
11117,
4925,
2396,
15101,
29918,
1445,
29918,
29906,
29892,
13,
462,
3986,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29901,
15101,
29918,
1445,
29918,
29906,
29892,
13,
462,
3986,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29901,
15101,
29918,
1445,
29913,
13,
13,
4706,
15101,
29918,
999,
353,
11117,
978,
2396,
525,
1688,
15101,
742,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
24623,
2396,
1583,
3032,
12857,
29918,
24623,
3285,
13,
462,
1678,
525,
333,
2396,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29913,
13,
13,
4706,
15101,
29918,
2084,
29918,
29906,
29918,
14153,
353,
15974,
1311,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29901,
15101,
29918,
1445,
29918,
29906,
1118,
13,
462,
632,
426,
1311,
29889,
19296,
3301,
29918,
29965,
11150,
29901,
15101,
29918,
1445,
1118,
13,
462,
632,
11117,
4925,
2396,
15101,
29918,
1445,
29918,
29906,
6525,
13,
13,
4706,
15101,
29918,
2084,
29918,
14153,
353,
15974,
1311,
29889,
19296,
3301,
29918,
29965,
11150,
29901,
15101,
29918,
1445,
1118,
13,
462,
965,
11117,
4925,
2396,
15101,
29918,
1445,
6525,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
29905,
13,
9651,
1126,
11609,
29898,
3888,
29918,
1445,
29918,
8977,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
29939,
24425,
29899,
2492,
742,
525,
15060,
742,
15101,
29918,
2084,
29918,
29906,
29892,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
1758,
742,
17411,
29888,
742,
15101,
29918,
2084,
29918,
29906,
29892,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
29905,
13,
9651,
1126,
11609,
29898,
3888,
29918,
1445,
29918,
8977,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
467,
2855,
11609,
29898,
3888,
29918,
1445,
29918,
8977,
29897,
13,
13,
4706,
4192,
29894,
3032,
3539,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
5235,
29918,
1445,
29918,
8977,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
8143,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
29879,
14551,
29918,
17662,
29898,
1311,
1125,
13,
4706,
9995,
15329,
552,
15101,
845,
1862,
1863,
29889,
13,
13,
965,
512,
445,
1243,
29892,
2224,
313,
24623,
29899,
29966,
25118,
12948,
338,
1250,
287,
491,
13,
9651,
15101,
29918,
2084,
313,
24623,
29899,
29966,
25118,
15513,
29966,
29879,
8971,
29918,
25118,
12948,
607,
338,
1250,
287,
491,
13,
9651,
15101,
29918,
2084,
29918,
29906,
313,
24623,
29899,
29966,
25118,
15513,
29966,
29879,
8971,
29918,
25118,
29918,
29906,
29958,
467,
13,
13,
965,
21267,
278,
22395,
15659,
411,
21989,
3301,
29918,
29965,
11150,
29889,
13,
13,
965,
678,
475,
5771,
515,
13,
462,
1669,
313,
19296,
3301,
29918,
29965,
11150,
29897,
418,
313,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29897,
13,
632,
7977,
29899,
10736,
1599,
7977,
29899,
10736,
29889,
29890,
11989,
1599,
7977,
29899,
10736,
29889,
29890,
774,
29872,
13,
965,
304,
18884,
313,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29897,
13,
632,
7977,
29899,
10736,
1599,
7977,
29899,
10736,
29889,
29890,
774,
29872,
13,
4706,
9995,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
7977,
29918,
1445,
353,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
7977,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
6608,
287,
29897,
13,
4706,
7977,
29918,
2084,
353,
14210,
29879,
22584,
29879,
22584,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
1678,
6608,
287,
29892,
13,
462,
462,
1678,
7977,
29918,
1445,
29897,
13,
13,
4706,
5235,
29918,
2084,
353,
14210,
29879,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
15300,
3888,
1495,
13,
4706,
15101,
29918,
2084,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
4706,
15101,
29918,
1445,
353,
525,
24623,
19222,
29879,
29889,
29995,
29879,
29915,
1273,
313,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
4706,
15101,
29918,
2084,
29918,
29906,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29897,
13,
4706,
15101,
29918,
1445,
29918,
29906,
353,
525,
24623,
19222,
29879,
29889,
29995,
29879,
29915,
1273,
313,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29897,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
29918,
29879,
8971,
29918,
29906,
353,
9995,
3027,
29901,
7977,
19222,
29879,
29889,
29995,
29879,
13,
4706,
934,
3402,
29901,
3855,
20587,
29906,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29941,
29968,
13,
4706,
27436,
934,
29901,
1273,
29879,
13,
4706,
9995,
1273,
313,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29892,
13,
1669,
525,
24623,
19222,
29879,
29889,
29995,
29879,
29915,
1273,
313,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
876,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
29918,
29879,
8971,
29918,
29896,
353,
9995,
3027,
29901,
7977,
19222,
29879,
29889,
29995,
29879,
13,
4706,
934,
3402,
29901,
3855,
20587,
29906,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29906,
29906,
29968,
13,
4706,
27436,
934,
29901,
1273,
29879,
13,
4706,
9995,
1273,
313,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29892,
13,
1669,
525,
24623,
19222,
29879,
29889,
29995,
29879,
29915,
1273,
313,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
876,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
353,
9995,
3027,
29901,
7977,
19222,
29879,
13,
4706,
934,
3402,
29901,
3855,
20587,
29906,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29945,
29968,
13,
4706,
9995,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3539,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
657,
29918,
1627,
292,
29918,
14153,
29918,
1454,
29918,
2084,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
525,
657,
29918,
4925,
29918,
3027,
29918,
3166,
29918,
3888,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
8231,
519,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
29939,
24425,
29918,
2492,
29918,
3888,
1495,
13,
13,
4706,
5235,
29918,
1445,
29918,
8977,
353,
426,
1311,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29901,
525,
24623,
19222,
29879,
29889,
29995,
29879,
29915,
1273,
13,
462,
3986,
313,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
511,
13,
462,
3986,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29901,
525,
24623,
19222,
29879,
29889,
29995,
29879,
29915,
1273,
13,
462,
3986,
313,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
2915,
13,
13,
4706,
4192,
29894,
3032,
7469,
29918,
13653,
29918,
8231,
519,
29898,
24623,
29918,
3972,
29897,
13,
13,
4706,
5235,
29918,
2084,
353,
4192,
29894,
3032,
2997,
29918,
2084,
29918,
24623,
29898,
24623,
29897,
718,
15300,
3888,
29915,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
29905,
13,
9651,
1126,
11609,
29898,
3888,
29918,
1445,
29918,
8977,
29897,
13,
13,
4706,
10153,
29918,
3888,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
29939,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
29918,
29879,
8971,
29918,
29896,
29897,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
29879,
8971,
29918,
2084,
467,
2855,
11609,
29898,
2492,
29918,
3888,
29897,
13,
13,
4706,
15101,
29918,
999,
353,
11117,
978,
2396,
12801,
5813,
29958,
742,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
24623,
2396,
7977,
29892,
13,
462,
1678,
525,
333,
2396,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29913,
13,
13,
4706,
15101,
29918,
2084,
29918,
14153,
353,
518,
10998,
9507,
2396,
15101,
29918,
1445,
29918,
29906,
29892,
13,
462,
9651,
525,
1627,
292,
29899,
9507,
2396,
15101,
29918,
1445,
1118,
13,
462,
965,
11117,
9507,
2396,
15101,
29918,
1445,
29892,
13,
462,
9651,
525,
1627,
292,
29899,
9507,
2396,
7977,
29918,
1445,
6525,
13,
13,
4706,
4192,
29894,
29889,
657,
29918,
4925,
29918,
3027,
29918,
3166,
29918,
3888,
29898,
24623,
467,
2855,
11609,
29898,
29879,
8971,
29918,
1445,
29918,
29906,
29897,
13,
4706,
4192,
29894,
3032,
657,
29918,
1627,
292,
29918,
14153,
29918,
1454,
29918,
2084,
29898,
24623,
29892,
15101,
29918,
2084,
29918,
29906,
467,
29905,
13,
9651,
1126,
11609,
29898,
29879,
8971,
29918,
2084,
29918,
14153,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
467,
2855,
11609,
29898,
3888,
29918,
1445,
29918,
8977,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
29939,
24425,
29899,
2492,
742,
525,
15060,
742,
15101,
29918,
2084,
29918,
29906,
29892,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
1758,
742,
17411,
29888,
742,
15101,
29918,
2084,
29918,
29906,
29892,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
467,
2855,
11609,
29898,
3888,
29918,
1445,
29918,
8977,
29897,
13,
13,
4706,
4192,
29894,
3032,
3539,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
5235,
29918,
1445,
29918,
8977,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
8143,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
29879,
14551,
29918,
1333,
29918,
262,
29918,
3888,
29898,
1311,
1125,
13,
4706,
9995,
21913,
451,
297,
5235,
934,
847,
5235,
934,
1838,
29915,
29873,
1863,
29889,
13,
13,
4706,
317,
14551,
11265,
5229,
577,
3078,
338,
373,
29899,
20960,
29889,
29871,
26391,
13,
4706,
881,
2758,
5858,
304,
9269,
577,
278,
8455,
508,
13,
4706,
3349,
278,
22395,
2407,
29889,
13,
13,
4706,
313,
4421,
24893,
29901,
317,
14551,
1203,
2825,
297,
315,
4995,
4833,
541,
451,
13,
308,
373,
27436,
8635,
1846,
13,
13,
4706,
9995,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
7977,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
6608,
287,
29897,
13,
4706,
7977,
29918,
9507,
353,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
7977,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
24623,
29918,
3972,
29892,
7977,
29918,
9507,
29897,
13,
4706,
5235,
29918,
2084,
353,
14210,
29879,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
15300,
3888,
1495,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
8231,
519,
1495,
13,
13,
4706,
15101,
29918,
999,
353,
11117,
978,
2396,
525,
1688,
15101,
742,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
24623,
2396,
1583,
3032,
12857,
29918,
24623,
3285,
13,
462,
1678,
525,
333,
2396,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29913,
13,
13,
4706,
4192,
29894,
3032,
7469,
29918,
13653,
29918,
8231,
519,
29898,
24623,
29918,
3972,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
2855,
11609,
3319,
1800,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
8143,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
949,
29918,
3888,
29918,
1445,
29898,
1311,
1125,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
1445,
1495,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
7977,
29918,
2084,
353,
14210,
29879,
22584,
29879,
29914,
24623,
19222,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
965,
6608,
287,
29892,
13,
462,
462,
965,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29897,
13,
4706,
5235,
29918,
2084,
353,
14210,
29879,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
15300,
3888,
1495,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
1445,
29898,
3888,
29918,
2084,
467,
2855,
11609,
877,
6377,
29995,
29898,
333,
29897,
29879,
1115,
376,
24623,
19222,
29898,
333,
29897,
29879,
9092,
29915,
1273,
13,
462,
462,
9651,
11117,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
1800,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
7977,
353,
360,
3774,
24679,
580,
13,
4706,
7977,
1839,
333,
2033,
353,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
7977,
1839,
978,
2033,
353,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
13,
4706,
5235,
353,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29897,
13,
13,
4706,
1583,
29889,
9294,
9843,
29898,
3888,
29961,
1311,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
1402,
13,
462,
308,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
21843,
29918,
24623,
29898,
1311,
1125,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
13,
4706,
7977,
29918,
2084,
353,
14210,
29879,
22584,
29879,
29914,
24623,
19222,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
965,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
13,
462,
462,
1669,
1583,
29889,
18267,
29918,
5746,
15082,
29896,
511,
13,
462,
462,
965,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29897,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
353,
9995,
3027,
29901,
7977,
19222,
29879,
13,
4706,
934,
3402,
29901,
3855,
20587,
29906,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29946,
29955,
29941,
29968,
13,
4706,
9995,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
13,
4706,
10153,
29918,
3888,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
29939,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
525,
657,
29918,
4925,
29918,
3027,
29918,
3166,
29918,
3888,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
29939,
24425,
29918,
2492,
29918,
3888,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
21476,
29918,
3027,
1495,
13,
13,
4706,
4192,
29894,
29889,
657,
29918,
4925,
29918,
3027,
29918,
3166,
29918,
3888,
29898,
24623,
467,
2855,
11609,
29898,
24623,
1839,
978,
11287,
13,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
24623,
29918,
2084,
467,
2855,
11609,
29898,
2492,
29918,
3888,
29897,
13,
13,
4706,
1967,
29918,
13239,
29889,
21476,
29918,
3027,
29898,
24623,
29918,
2084,
29892,
29871,
29941,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
21843,
29918,
24623,
29898,
24623,
29892,
29871,
29941,
29897,
13,
13,
4706,
286,
2251,
29889,
6565,
1598,
3596,
580,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
29879,
14551,
29918,
14627,
29898,
1311,
1125,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
4706,
7977,
1839,
4882,
2033,
353,
525,
262,
29899,
1509,
29915,
13,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
7977,
29918,
1445,
353,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
7977,
29918,
2084,
353,
14210,
29879,
22584,
29879,
22584,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
1678,
6608,
287,
29892,
13,
462,
462,
1678,
7977,
29918,
1445,
29897,
13,
4706,
5235,
29918,
2084,
353,
14210,
29879,
29889,
3888,
29915,
1273,
7977,
29918,
2084,
13,
13,
4706,
274,
3945,
353,
3030,
29889,
3089,
2677,
877,
29888,
1296,
29918,
1792,
742,
525,
29888,
1296,
29918,
4836,
1495,
13,
13,
4706,
15101,
29918,
999,
353,
11117,
978,
2396,
525,
1688,
15101,
313,
14627,
29897,
742,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
24623,
2396,
7977,
29892,
13,
462,
1678,
525,
333,
2396,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
4703,
2396,
274,
3945,
29892,
13,
462,
1678,
525,
4882,
2396,
525,
294,
2176,
742,
13,
462,
1678,
525,
18035,
2396,
525,
294,
2176,
10827,
13,
13,
4706,
15101,
29918,
2084,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
4706,
15101,
29918,
1445,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
1445,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3258,
29918,
29939,
20587,
29906,
29918,
29879,
8971,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
2585,
29892,
525,
29879,
14551,
29918,
657,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3539,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
29876,
4273,
1495,
13,
13,
4706,
4192,
29894,
3032,
3258,
29918,
29939,
20587,
29906,
29918,
29879,
8971,
29918,
1445,
29898,
29879,
8971,
29918,
999,
29892,
7977,
29918,
1445,
29892,
15101,
29918,
2084,
29897,
13,
13,
4706,
1653,
29918,
3888,
353,
11117,
29879,
14551,
29918,
333,
2396,
15101,
29918,
999,
1839,
333,
7464,
13,
462,
539,
525,
1853,
2396,
525,
29939,
20587,
29906,
742,
13,
462,
539,
525,
1482,
29918,
1445,
2396,
15101,
29918,
1445,
29913,
13,
13,
4706,
4192,
29894,
3032,
29876,
4273,
29889,
3258,
29918,
24623,
29918,
29879,
14551,
29898,
312,
486,
29892,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1653,
29918,
3888,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
4882,
2033,
353,
525,
1037,
1218,
29915,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29945,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29929,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
3888,
353,
11117,
4925,
2396,
15101,
29918,
1445,
29892,
13,
462,
268,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29901,
15101,
29918,
1445,
29913,
13,
13,
4706,
4192,
29894,
3032,
3539,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
15101,
29918,
3888,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
3258,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
29879,
14551,
29918,
14627,
29918,
13715,
2142,
737,
545,
29898,
1311,
1125,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
4706,
7977,
1839,
4882,
2033,
353,
525,
262,
29899,
1509,
29915,
13,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
7977,
29918,
1445,
353,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
7977,
29918,
2084,
353,
14210,
29879,
22584,
29879,
22584,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
1678,
6608,
287,
29892,
13,
462,
462,
1678,
7977,
29918,
1445,
29897,
13,
4706,
5235,
29918,
2084,
353,
14210,
29879,
29889,
3888,
29915,
1273,
7977,
29918,
2084,
13,
13,
4706,
274,
3945,
353,
3030,
29889,
3089,
2677,
877,
29888,
1296,
29918,
1792,
742,
525,
29888,
1296,
29918,
4836,
1495,
13,
13,
4706,
15101,
29918,
999,
353,
11117,
978,
2396,
525,
1688,
15101,
313,
14627,
29897,
742,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
24623,
2396,
7977,
29892,
13,
462,
1678,
525,
333,
2396,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
4703,
2396,
274,
3945,
29913,
13,
13,
4706,
15101,
29918,
2084,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
4706,
15101,
29918,
1445,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
1445,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3258,
29918,
29939,
20587,
29906,
29918,
29879,
8971,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
29876,
4273,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
2585,
29892,
525,
29879,
14551,
29918,
657,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3539,
29918,
3888,
29918,
1445,
1495,
13,
13,
4706,
4192,
29894,
3032,
3258,
29918,
29939,
20587,
29906,
29918,
29879,
8971,
29918,
1445,
29898,
29879,
8971,
29918,
999,
29892,
7977,
29918,
1445,
29892,
15101,
29918,
2084,
29897,
13,
13,
4706,
1653,
29918,
3888,
353,
11117,
29879,
14551,
29918,
333,
2396,
15101,
29918,
999,
1839,
333,
7464,
13,
462,
539,
525,
1853,
2396,
525,
29939,
20587,
29906,
742,
13,
462,
539,
525,
1482,
29918,
1445,
2396,
15101,
29918,
1445,
29913,
13,
13,
4706,
4192,
29894,
3032,
29876,
4273,
29889,
3258,
29918,
24623,
29918,
29879,
14551,
29898,
312,
486,
29892,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
1653,
29918,
3888,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
4882,
2033,
353,
525,
1037,
1218,
29915,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29900,
29001,
13,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29945,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29929,
29929,
29001,
13,
4706,
15101,
29918,
999,
1839,
4882,
2033,
353,
525,
2704,
29915,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
3888,
353,
11117,
4925,
2396,
15101,
29918,
1445,
29892,
13,
462,
268,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29901,
15101,
29918,
1445,
29913,
13,
13,
4706,
4192,
29894,
3032,
3539,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
15101,
29918,
3888,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
11739,
29889,
29954,
29880,
5402,
5847,
2451,
29892,
13,
462,
3986,
4192,
29894,
29889,
3258,
29918,
29879,
14551,
29892,
13,
462,
3986,
15101,
29918,
999,
29897,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
29879,
14551,
29918,
14627,
29918,
29896,
29898,
1311,
1125,
13,
4706,
9995,
12498,
278,
716,
342,
22395,
29892,
411,
871,
697,
15101,
2198,
1213,
15945,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
4706,
7977,
1839,
4882,
2033,
353,
525,
262,
29899,
1509,
29915,
13,
13,
4706,
274,
3945,
353,
3030,
29889,
3089,
2677,
877,
29888,
1296,
29918,
1792,
742,
525,
29888,
1296,
29918,
4836,
1495,
13,
13,
4706,
15101,
29918,
999,
353,
11117,
978,
2396,
525,
1688,
15101,
304,
5217,
313,
14627,
29897,
742,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
24623,
2396,
7977,
29892,
13,
462,
1678,
525,
333,
2396,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
4703,
2396,
274,
3945,
29913,
13,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
7977,
29918,
1445,
353,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
7977,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
6608,
287,
29897,
13,
4706,
7977,
29918,
2084,
353,
14210,
29879,
22584,
29879,
22584,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
1678,
6608,
287,
29892,
13,
462,
462,
1678,
7977,
29918,
1445,
29897,
13,
4706,
5235,
29918,
2084,
353,
14210,
29879,
29889,
3888,
29915,
1273,
7977,
29918,
2084,
13,
13,
4706,
15101,
29918,
2084,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
4706,
15101,
29918,
1445,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
1445,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
29876,
4273,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3539,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
359,
29889,
2084,
29892,
525,
9933,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
2585,
29892,
525,
29879,
14551,
29918,
657,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
29939,
24425,
29918,
2492,
29918,
3888,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
8231,
519,
1495,
13,
13,
4706,
15101,
29918,
3888,
353,
11117,
4925,
2396,
15101,
29918,
1445,
29892,
13,
462,
268,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29901,
15101,
29918,
1445,
29913,
13,
13,
4706,
4192,
29894,
3032,
7469,
29918,
13653,
29918,
8231,
519,
29898,
24623,
29918,
3972,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
29905,
13,
9651,
1126,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
2897,
29889,
2084,
29889,
9933,
29898,
29879,
8971,
29918,
2084,
467,
2855,
11609,
29898,
5574,
29897,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
353,
9995,
3027,
29901,
1273,
29879,
13,
4706,
934,
3402,
29901,
3855,
20587,
29906,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29941,
29968,
13,
4706,
27436,
934,
29901,
1273,
29879,
13,
4706,
9995,
1273,
313,
29879,
8971,
29918,
1445,
29892,
7977,
29918,
1445,
29897,
13,
4706,
10153,
29918,
3888,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
29939,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
29897,
13,
13,
4706,
1700,
29918,
29939,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
353,
9995,
3027,
29901,
1273,
29879,
13,
4706,
934,
3402,
29901,
10650,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29941,
29968,
13,
4706,
9995,
1273,
7977,
29918,
1445,
13,
4706,
7977,
29918,
2492,
29918,
3888,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
1555,
29918,
29939,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
29897,
13,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
29879,
8971,
29918,
2084,
467,
2855,
11609,
29898,
2492,
29918,
3888,
29897,
13,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
24623,
29918,
2084,
467,
2855,
11609,
29898,
24623,
29918,
2492,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
29905,
13,
9651,
1126,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
5217,
29918,
3888,
353,
426,
13,
9651,
525,
1853,
2396,
525,
29939,
20587,
29906,
742,
13,
9651,
525,
14634,
29918,
5182,
29918,
1445,
2396,
6213,
29892,
13,
9651,
525,
1445,
29918,
517,
29918,
14634,
2396,
6213,
29892,
13,
9651,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
500,
13,
13,
4706,
4192,
29894,
3032,
29876,
4273,
29889,
8143,
29918,
24623,
29918,
29879,
14551,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29892,
5217,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
467,
2855,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
467,
2855,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
4882,
2033,
353,
525,
311,
1026,
292,
29915,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29945,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29929,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
4192,
29894,
3032,
3539,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
15101,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
1758,
742,
17411,
29888,
742,
7977,
29918,
2084,
29892,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
8143,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
29879,
14551,
29918,
14627,
29918,
29906,
29898,
1311,
1125,
13,
4706,
9995,
12498,
278,
7256,
310,
29871,
29941,
15101,
845,
1862,
1213,
15945,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
4706,
7977,
1839,
4882,
2033,
353,
525,
262,
29899,
1509,
29915,
13,
13,
4706,
274,
3945,
353,
3030,
29889,
3089,
2677,
877,
29888,
1296,
29918,
1792,
742,
525,
29888,
1296,
29918,
4836,
1495,
13,
13,
4706,
15101,
29918,
999,
353,
11117,
978,
2396,
525,
1688,
15101,
304,
5217,
313,
14627,
29897,
742,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
24623,
2396,
7977,
29892,
13,
462,
1678,
525,
333,
2396,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
4703,
2396,
274,
3945,
29913,
13,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
7977,
29918,
1445,
353,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
7977,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
6608,
287,
29897,
13,
4706,
7977,
29918,
2084,
353,
14210,
29879,
22584,
29879,
22584,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
1678,
6608,
287,
29892,
13,
462,
462,
1678,
7977,
29918,
1445,
29897,
13,
4706,
5235,
29918,
2084,
353,
14210,
29879,
29889,
3888,
29915,
1273,
7977,
29918,
2084,
13,
13,
4706,
15101,
29918,
2084,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
4706,
15101,
29918,
2084,
29918,
29906,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29897,
13,
4706,
15101,
29918,
1445,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
1445,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
4706,
15101,
29918,
1445,
29918,
29906,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
1445,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
29876,
4273,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3539,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
359,
29889,
2084,
29892,
525,
9933,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
2585,
29892,
525,
29879,
14551,
29918,
657,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
29939,
24425,
29918,
2492,
29918,
3888,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7469,
29918,
13653,
29918,
8231,
519,
1495,
13,
13,
4706,
15101,
29918,
3888,
353,
11117,
4925,
2396,
15101,
29918,
1445,
29918,
29906,
29892,
13,
462,
268,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29901,
15101,
29918,
1445,
29892,
13,
462,
268,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29918,
29906,
29901,
15101,
29918,
1445,
29918,
29906,
29913,
13,
13,
4706,
4192,
29894,
3032,
7469,
29918,
13653,
29918,
8231,
519,
29898,
24623,
29918,
3972,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
29905,
13,
9651,
1126,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
2897,
29889,
2084,
29889,
9933,
29898,
29879,
8971,
29918,
2084,
467,
2855,
11609,
29898,
5574,
29897,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
353,
9995,
3027,
29901,
1273,
29879,
13,
4706,
934,
3402,
29901,
3855,
20587,
29906,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29941,
29968,
13,
4706,
27436,
934,
29901,
1273,
29879,
13,
4706,
9995,
1273,
313,
29879,
8971,
29918,
1445,
29892,
7977,
29918,
1445,
29897,
13,
4706,
10153,
29918,
3888,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
29939,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
29897,
13,
13,
4706,
1700,
29918,
29939,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
353,
9995,
3027,
29901,
1273,
29879,
13,
4706,
934,
3402,
29901,
10650,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29941,
29968,
13,
4706,
9995,
1273,
7977,
29918,
1445,
13,
4706,
7977,
29918,
2492,
29918,
3888,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
1555,
29918,
29939,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
29897,
13,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
29879,
8971,
29918,
2084,
467,
2855,
11609,
29898,
2492,
29918,
3888,
29897,
13,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
24623,
29918,
2084,
467,
2855,
11609,
29898,
24623,
29918,
2492,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
29905,
13,
9651,
1126,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
5217,
29918,
3888,
353,
11117,
1853,
2396,
525,
29939,
20587,
29906,
742,
13,
462,
539,
525,
14634,
29918,
5182,
29918,
1445,
2396,
7977,
29918,
1445,
29892,
13,
462,
539,
525,
1445,
29918,
517,
29918,
14634,
2396,
15101,
29918,
1445,
29892,
13,
462,
539,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29913,
13,
4706,
4192,
29894,
3032,
29876,
4273,
29889,
8143,
29918,
24623,
29918,
29879,
14551,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29892,
5217,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
467,
2855,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
467,
2855,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
4882,
2033,
353,
525,
311,
1026,
292,
29915,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29945,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29929,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
4192,
29894,
3032,
3539,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
15101,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
1758,
742,
17411,
29888,
742,
15101,
29918,
2084,
29892,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
8143,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
29879,
14551,
29918,
14627,
29918,
13715,
2142,
737,
545,
29898,
1311,
1125,
13,
4706,
9995,
12498,
278,
716,
342,
22395,
1213,
15945,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
4706,
7977,
1839,
4882,
2033,
353,
525,
262,
29899,
1509,
29915,
13,
13,
4706,
274,
3945,
353,
3030,
29889,
3089,
2677,
877,
29888,
1296,
29918,
1792,
742,
525,
29888,
1296,
29918,
4836,
1495,
13,
13,
4706,
15101,
29918,
999,
353,
11117,
978,
2396,
525,
1688,
15101,
304,
5217,
313,
14627,
29897,
742,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
24623,
2396,
7977,
29892,
13,
462,
1678,
525,
333,
2396,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29892,
13,
462,
1678,
525,
4703,
2396,
274,
3945,
29913,
13,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
7977,
29918,
1445,
353,
525,
24623,
19222,
29879,
29915,
1273,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
7977,
29918,
2084,
353,
14210,
29879,
22584,
29879,
22584,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
462,
1678,
6608,
287,
29892,
13,
462,
462,
1678,
7977,
29918,
1445,
29897,
13,
4706,
5235,
29918,
2084,
353,
14210,
29879,
29889,
3888,
29915,
1273,
7977,
29918,
2084,
13,
13,
4706,
15101,
29918,
2084,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
2084,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
4706,
15101,
29918,
1445,
353,
14210,
29879,
29889,
29995,
29879,
29915,
1273,
313,
24623,
29918,
1445,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
29876,
4273,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3539,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
359,
29889,
2084,
29892,
525,
9933,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
2585,
29892,
525,
29879,
14551,
29918,
657,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
29939,
24425,
29918,
2492,
29918,
3888,
1495,
13,
13,
4706,
15101,
29918,
3888,
353,
11117,
4925,
2396,
15101,
29918,
1445,
29892,
13,
462,
268,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29901,
15101,
29918,
1445,
29913,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
29905,
13,
9651,
1126,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
2897,
29889,
2084,
29889,
9933,
29898,
29879,
8971,
29918,
2084,
467,
2855,
11609,
29898,
5574,
29897,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
353,
9995,
3027,
29901,
1273,
29879,
13,
4706,
934,
3402,
29901,
3855,
20587,
29906,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29941,
29968,
13,
4706,
27436,
934,
29901,
1273,
29879,
13,
4706,
9995,
1273,
313,
29879,
8971,
29918,
1445,
29892,
7977,
29918,
1445,
29897,
13,
4706,
10153,
29918,
3888,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
29939,
24425,
29918,
2492,
29918,
3888,
29918,
4905,
29897,
13,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
29879,
8971,
29918,
2084,
467,
2855,
11609,
29898,
2492,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
4069,
29918,
361,
29918,
27259,
29922,
5574,
467,
29905,
13,
9651,
1126,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
5217,
29918,
3888,
353,
426,
13,
9651,
525,
1853,
2396,
525,
29939,
20587,
29906,
742,
13,
9651,
525,
14634,
29918,
5182,
29918,
1445,
2396,
6213,
29892,
13,
9651,
525,
1445,
29918,
517,
29918,
14634,
2396,
7977,
29918,
1445,
29892,
13,
9651,
525,
24623,
29918,
333,
2396,
1583,
29889,
29963,
5607,
29965,
2303,
29918,
29965,
11150,
13,
4706,
500,
13,
13,
4706,
4192,
29894,
3032,
29876,
4273,
29889,
8143,
29918,
24623,
29918,
29879,
14551,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
29892,
5217,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
467,
2855,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
467,
2855,
11609,
29898,
29879,
8971,
29918,
3888,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
4882,
2033,
353,
525,
311,
1026,
292,
29915,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29945,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
15101,
29918,
999,
1839,
4882,
2033,
353,
525,
2704,
29918,
311,
1026,
292,
29915,
13,
4706,
15101,
29918,
999,
1839,
18035,
2033,
353,
525,
29929,
29900,
29001,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
4833,
29889,
29879,
14551,
29918,
657,
29898,
312,
486,
29892,
1583,
29889,
19296,
3301,
29918,
29965,
11150,
467,
2855,
11609,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
4192,
29894,
3032,
3539,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
29892,
15101,
29918,
3888,
29897,
13,
13,
4706,
4192,
29894,
3032,
7978,
877,
1758,
742,
17411,
29888,
742,
7977,
29918,
2084,
29892,
1065,
29918,
294,
29918,
4632,
29922,
5574,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
11739,
29889,
29954,
29880,
5402,
5847,
2451,
29892,
13,
462,
3986,
4192,
29894,
29889,
8143,
29918,
29879,
14551,
29892,
13,
462,
3986,
15101,
29918,
999,
29897,
13,
13,
1678,
822,
1243,
29918,
657,
29918,
1627,
292,
29918,
14153,
29918,
1454,
29918,
2084,
29898,
1311,
1125,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
3144,
5402,
5847,
29889,
6007,
29943,
29889,
3820,
5402,
5847,
29918,
16476,
29918,
3149,
29918,
3188,
353,
1583,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
4706,
1700,
29918,
9507,
353,
7977,
1839,
978,
2033,
13,
4706,
1700,
29918,
9507,
29918,
29906,
353,
7977,
1839,
978,
2033,
718,
15300,
294,
2176,
29926,
6321,
29915,
13,
4706,
1700,
29918,
9507,
29918,
29941,
353,
7977,
1839,
978,
2033,
718,
525,
29939,
556,
1017,
1481,
459,
29915,
13,
4706,
6608,
287,
353,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
29897,
13,
4706,
1700,
29918,
3972,
353,
14210,
29879,
22584,
29879,
29915,
1273,
313,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
6608,
287,
29897,
13,
4706,
1700,
29918,
2084,
353,
14210,
29879,
22584,
29879,
29915,
1273,
313,
1555,
29918,
3972,
29892,
1700,
29918,
9507,
29897,
13,
4706,
1700,
29918,
2084,
29918,
29906,
353,
14210,
29879,
22584,
29879,
29915,
1273,
313,
1555,
29918,
3972,
29892,
1700,
29918,
9507,
29918,
29906,
29897,
13,
4706,
1700,
29918,
2084,
29918,
29941,
353,
14210,
29879,
22584,
29879,
29915,
1273,
313,
1555,
29918,
3972,
29892,
1700,
29918,
9507,
29918,
29941,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
7978,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
2997,
29918,
24623,
29918,
3972,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
29939,
24425,
29918,
2492,
29918,
3888,
1495,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
4905,
29918,
3188,
353,
9995,
3027,
29901,
1273,
29898,
3027,
29918,
978,
29897,
29879,
13,
4706,
934,
3402,
29901,
3855,
20587,
29906,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29941,
29968,
13,
4706,
9995,
13,
4706,
3855,
24425,
29918,
2492,
29918,
4905,
353,
9995,
3027,
29901,
1273,
29898,
3027,
29918,
978,
29897,
29879,
13,
4706,
934,
3402,
29901,
3855,
20587,
29906,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29941,
29968,
13,
4706,
27436,
934,
29901,
1273,
29898,
1627,
292,
29918,
1445,
29897,
29879,
13,
4706,
9995,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
4905,
29918,
29896,
353,
3855,
24425,
29918,
2492,
29918,
4905,
29918,
3188,
1273,
11117,
3027,
29918,
978,
2396,
1700,
29918,
9507,
29913,
13,
4706,
3855,
24425,
29918,
2492,
29918,
4905,
29918,
29906,
353,
3855,
24425,
29918,
2492,
29918,
4905,
1273,
11117,
3027,
29918,
978,
2396,
1700,
29918,
9507,
29918,
29906,
29892,
13,
462,
462,
1669,
525,
1627,
292,
29918,
1445,
2396,
1700,
29918,
9507,
29913,
13,
4706,
3855,
24425,
29918,
2492,
29918,
4905,
29918,
29941,
353,
3855,
24425,
29918,
2492,
29918,
4905,
1273,
11117,
3027,
29918,
978,
2396,
1700,
29918,
9507,
29918,
29941,
29892,
13,
462,
462,
1669,
525,
1627,
292,
29918,
1445,
2396,
1700,
29918,
9507,
29918,
29906,
29913,
13,
13,
4706,
5235,
29918,
29896,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
29939,
24425,
29918,
2492,
29918,
4905,
29918,
29896,
29897,
13,
4706,
5235,
29918,
29906,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
29939,
24425,
29918,
2492,
29918,
4905,
29918,
29906,
29897,
13,
4706,
5235,
29918,
29941,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
29939,
24425,
29918,
2492,
29918,
4905,
29918,
29941,
29897,
13,
13,
4706,
4192,
29894,
3032,
2997,
29918,
24623,
29918,
3972,
29898,
24623,
467,
2855,
11609,
29898,
1555,
29918,
3972,
29897,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
1555,
29918,
2084,
29918,
29941,
467,
29905,
13,
9651,
1126,
11609,
29898,
3888,
29918,
29941,
29897,
13,
4706,
4192,
29894,
3032,
2997,
29918,
24623,
29918,
3972,
29898,
24623,
467,
2855,
11609,
29898,
1555,
29918,
3972,
29897,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
1555,
29918,
2084,
29918,
29906,
467,
29905,
13,
9651,
1126,
11609,
29898,
3888,
29918,
29906,
29897,
13,
4706,
4192,
29894,
3032,
2997,
29918,
24623,
29918,
3972,
29898,
24623,
467,
2855,
11609,
29898,
1555,
29918,
3972,
29897,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
1555,
29918,
2084,
467,
29905,
13,
9651,
1126,
11609,
29898,
3888,
29918,
29896,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
9704,
353,
4192,
29894,
3032,
657,
29918,
1627,
292,
29918,
14153,
29918,
1454,
29918,
2084,
29898,
24623,
29892,
1700,
29918,
2084,
29918,
29941,
29897,
13,
13,
4706,
396,
1798,
1598,
9704,
3743,
599,
3806,
848,
13,
4706,
2944,
29918,
29896,
353,
4192,
29894,
3032,
657,
29918,
4352,
292,
29918,
1627,
292,
29918,
1445,
29898,
14153,
29892,
1700,
29918,
9507,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
667,
29918,
29896,
1839,
9507,
7464,
1700,
29918,
9507,
29918,
29906,
29897,
13,
4706,
9704,
29889,
5992,
29898,
667,
29918,
29896,
29897,
13,
4706,
2944,
29918,
29906,
353,
4192,
29894,
3032,
657,
29918,
4352,
292,
29918,
1627,
292,
29918,
1445,
29898,
14153,
29892,
1700,
29918,
9507,
29918,
29906,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
667,
29918,
29906,
1839,
9507,
7464,
1700,
29918,
9507,
29918,
29941,
29897,
13,
4706,
9704,
29889,
5992,
29898,
667,
29918,
29906,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
14153,
511,
29871,
29896,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
14153,
29961,
29900,
22322,
9507,
7464,
1700,
29918,
9507,
29897,
13,
13,
1678,
822,
1243,
29918,
8552,
29918,
24623,
29918,
3166,
29918,
29879,
14551,
29898,
1311,
1125,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
13441,
29918,
3027,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
949,
29918,
3888,
29918,
1445,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
29939,
24425,
29918,
2492,
29918,
3888,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
842,
29918,
13975,
29918,
17858,
6847,
29918,
1454,
29918,
497,
1495,
13,
13,
4706,
2731,
29918,
24623,
353,
1583,
3032,
12857,
29918,
24623,
29898,
13,
9651,
525,
29883,
29896,
29900,
29955,
29941,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29883,
29896,
29900,
29955,
29941,
1495,
13,
4706,
4765,
29918,
24623,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
13,
4706,
1700,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
1669,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
876,
13,
4706,
4765,
29918,
1555,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1555,
29918,
3972,
29892,
4765,
29918,
24623,
1839,
978,
11287,
13,
4706,
2731,
29918,
1555,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1555,
29918,
3972,
29892,
2731,
29918,
24623,
1839,
978,
11287,
13,
4706,
5235,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1555,
29918,
3972,
29892,
4765,
29918,
24623,
1839,
978,
11287,
718,
15300,
3888,
29915,
13,
13,
4706,
22395,
353,
11117,
24623,
29918,
978,
2396,
4765,
29918,
24623,
1839,
978,
7464,
13,
462,
1678,
525,
978,
2396,
525,
16513,
29899,
29879,
8971,
19222,
29879,
29915,
1273,
4765,
29918,
24623,
1839,
333,
7464,
13,
462,
1678,
525,
2311,
2396,
4765,
29918,
24623,
1839,
2311,
7464,
13,
462,
1678,
525,
24623,
29918,
2311,
2396,
4765,
29918,
24623,
1839,
2311,
7464,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
4765,
29918,
24623,
1839,
333,
7464,
13,
462,
1678,
525,
333,
2396,
525,
7050,
29899,
29879,
8971,
19222,
29879,
29915,
1273,
4765,
29918,
24623,
1839,
333,
7464,
13,
462,
1678,
525,
24623,
2396,
4765,
29918,
24623,
29913,
13,
13,
4706,
15101,
29918,
1445,
353,
2731,
29918,
24623,
1839,
978,
2033,
718,
525,
6169,
718,
22395,
1839,
333,
2033,
13,
4706,
15101,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1555,
29918,
3972,
29892,
15101,
29918,
1445,
29897,
13,
13,
4706,
2159,
353,
2731,
29918,
24623,
1839,
2311,
2033,
13,
13,
4706,
4192,
29894,
3032,
949,
29918,
3888,
29918,
1445,
29898,
3888,
29918,
2084,
467,
2855,
11609,
29898,
13,
9651,
11117,
4925,
2396,
15101,
29918,
1445,
29892,
13,
632,
22395,
1839,
333,
2033,
29901,
15101,
29918,
1445,
29913,
13,
4706,
1723,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
4905,
353,
9995,
3027,
29901,
1273,
29879,
13,
4706,
934,
3402,
29901,
10650,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29941,
29968,
13,
4706,
27436,
934,
29901,
1273,
29879,
13,
4706,
9995,
1273,
313,
29879,
8971,
29918,
1445,
29892,
4765,
29918,
24623,
1839,
978,
11287,
13,
4706,
10153,
29918,
3888,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
29939,
24425,
29918,
2492,
29918,
4905,
29897,
13,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
29879,
8971,
29918,
2084,
467,
2855,
11609,
29898,
2492,
29918,
3888,
29897,
13,
13,
4706,
1967,
29918,
13239,
29889,
13441,
29918,
3027,
29898,
4351,
29918,
1555,
29918,
2084,
29892,
2731,
29918,
1555,
29918,
2084,
29892,
525,
1610,
1495,
13,
13,
4706,
4192,
29894,
3032,
842,
29918,
13975,
29918,
17858,
6847,
29918,
1454,
29918,
497,
29898,
7854,
29918,
1555,
29918,
2084,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
3032,
8552,
29918,
24623,
29918,
3166,
29918,
29879,
14551,
29898,
29879,
14551,
29892,
2731,
29918,
24623,
29892,
2159,
29897,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
24623,
29918,
3166,
29918,
29879,
14551,
29898,
1311,
1125,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
877,
29883,
29896,
29900,
29955,
29941,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29883,
29896,
29900,
29955,
29941,
1495,
13,
4706,
4765,
29918,
24623,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
3258,
29918,
29879,
14551,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
8552,
29918,
24623,
29918,
3166,
29918,
29879,
14551,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
22868,
8143,
29918,
29879,
14551,
1495,
13,
13,
4706,
15101,
29918,
999,
353,
11117,
24623,
29918,
978,
2396,
4765,
29918,
24623,
1839,
978,
7464,
13,
462,
1678,
525,
978,
2396,
525,
16513,
29899,
29879,
8971,
19222,
29879,
29915,
1273,
4765,
29918,
24623,
1839,
333,
7464,
13,
462,
1678,
525,
2311,
2396,
4765,
29918,
24623,
1839,
2311,
7464,
13,
462,
1678,
525,
24623,
29918,
2311,
2396,
4765,
29918,
24623,
1839,
2311,
7464,
13,
462,
1678,
525,
24623,
29918,
333,
2396,
4765,
29918,
24623,
1839,
333,
7464,
13,
462,
1678,
525,
333,
2396,
525,
7050,
29899,
29879,
8971,
19222,
29879,
29915,
1273,
4765,
29918,
24623,
1839,
333,
7464,
13,
462,
1678,
525,
24623,
2396,
4765,
29918,
24623,
29913,
13,
13,
4706,
7977,
29918,
999,
353,
11117,
333,
2396,
7977,
1839,
333,
7464,
13,
462,
418,
525,
2311,
2396,
7977,
1839,
2311,
7464,
13,
462,
418,
525,
4882,
2396,
7977,
1839,
4882,
7464,
13,
462,
418,
525,
18121,
29918,
5479,
2396,
7977,
1839,
18121,
29918,
5479,
7464,
13,
462,
418,
525,
978,
2396,
525,
24623,
29899,
29915,
718,
7977,
1839,
333,
2033,
29913,
13,
13,
4706,
4192,
29894,
3032,
3258,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29897,
13,
4706,
4192,
29894,
3032,
8552,
29918,
24623,
29918,
3166,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29892,
13,
462,
462,
539,
7977,
29918,
999,
29892,
13,
462,
462,
539,
4765,
29918,
24623,
1839,
2311,
11287,
13,
4706,
4192,
29894,
3032,
8143,
29918,
29879,
14551,
29898,
29879,
8971,
29918,
999,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
4192,
29894,
29889,
3258,
29918,
695,
22367,
29918,
24623,
29898,
24623,
29892,
4765,
29918,
24623,
29897,
13,
13,
1678,
822,
1243,
29918,
24926,
29918,
9965,
29898,
1311,
1125,
13,
4706,
313,
29885,
2251,
29892,
4192,
29894,
29897,
353,
1583,
3032,
29885,
2251,
29892,
1583,
3032,
9465,
13,
13,
4706,
7977,
353,
1583,
3032,
12857,
29918,
24623,
580,
13,
4706,
1700,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1311,
29889,
18267,
29918,
29924,
20321,
29918,
29925,
6992,
29911,
29918,
25416,
29892,
13,
462,
1669,
4192,
29894,
3032,
657,
29918,
8568,
29918,
710,
29898,
1311,
29889,
18267,
29918,
5746,
15082,
29896,
876,
13,
4706,
1700,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1555,
29918,
3972,
29892,
7977,
1839,
978,
11287,
13,
13,
4706,
3855,
24425,
29918,
2492,
29918,
4905,
353,
9995,
3027,
29901,
1273,
29879,
13,
4706,
934,
3402,
29901,
10650,
13,
4706,
6901,
2159,
29901,
29871,
29896,
29889,
29900,
29954,
313,
29896,
29900,
29955,
29941,
29955,
29946,
29896,
29947,
29906,
29946,
6262,
29897,
13,
4706,
8086,
2159,
29901,
29871,
29896,
29955,
29941,
29968,
13,
4706,
9995,
1273,
7977,
1839,
978,
2033,
13,
4706,
10153,
29918,
3888,
353,
1967,
13239,
29889,
29984,
24425,
25518,
3401,
29898,
29939,
24425,
29918,
2492,
29918,
4905,
29897,
13,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
7707,
29894,
29892,
525,
657,
29918,
4925,
29918,
3027,
29918,
3166,
29918,
3888,
1495,
13,
4706,
286,
2251,
29889,
855,
431,
3744,
3047,
18680,
29898,
3027,
29918,
13239,
29892,
525,
29939,
24425,
29918,
2492,
29918,
3888,
1495,
13,
13,
4706,
4192,
29894,
29889,
657,
29918,
4925,
29918,
3027,
29918,
3166,
29918,
3888,
29898,
24623,
467,
2855,
11609,
29898,
24623,
1839,
978,
11287,
13,
4706,
1967,
29918,
13239,
29889,
29939,
24425,
29918,
2492,
29918,
3888,
29898,
1555,
29918,
2084,
467,
2855,
11609,
29898,
2492,
29918,
3888,
29897,
13,
13,
4706,
286,
2251,
29889,
1123,
1456,
3596,
580,
13,
13,
4706,
11009,
29918,
3888,
353,
4192,
29894,
29889,
24926,
29918,
9965,
29898,
24623,
29892,
6213,
29897,
13,
13,
4706,
1583,
29889,
9294,
9843,
29898,
13082,
29918,
3888,
1839,
1272,
16215,
4830,
7464,
525,
1610,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
13082,
29918,
3888,
1839,
9465,
29918,
24623,
29918,
1853,
7464,
525,
3820,
5402,
5847,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
13082,
29918,
3888,
1839,
1272,
16215,
978,
7464,
7977,
1839,
978,
11287,
13,
2
] |
Python/multiscale_quad_retrieval.py | Spectavi/video-diff | 1 | 102963 | <reponame>Spectavi/video-diff<gh_stars>1-10
import math
import numpy as np
import cv2
import common
import config
import findquads
import spatial_consistency
import Matlab
FILTER = True
USE_GPS_COORDINATES = False
if config.USE_MULTITHREADING:
import multiprocessing
class Globals:
r_quadsTree = None
r_harlocs = None
q_harlocs = None
md_threshold = None
st_threshold = None
all_ori = None
all_id = None
all_max = None
all_cen = None
nos = None
scale_index = None
crop_flag = None
sequence = None
rd_start = None
rd_end = None
maxdis = None
maxori = None
tolers = None
g = Globals()
"""
When parallelizing multiscale_quad_retrieval(), we will obtain
slightly different results for crossref (etc) - see crossref.txt.
Note that when running in serial (without a POOL), we obtain the same result ALWAYS.
(less relevant: if we run only 1 process in pool instead of 3, we get
fewer changes in crossref.txt - NOT sure if this means something).
It appears the reason is the fact I am running the FLANN KD-tree implementation,
which is an approximate NN search library, employing randomization
(see http://answers.opencv.org/question/32664/flannbasedmatcher-returning-different-results/).
I guess the random number sequence, when having the same seed, evolves
differently when serial VS in parallel
threads, so the results tend to be different.
"""
def iteration_standalone_mqr(query_frame):
r_quads_tree = g.r_quadsTree
r_harlocs = g.r_harlocs
q_harlocs = g.q_harlocs
md_threshold = g.md_threshold
st_threshold = g.st_threshold
all_ori = g.all_ori
all_id = g.all_id
all_max = g.all_max
all_cen = g.all_cen
nos = g.nos
scale_index = g.scale_index
crop_flag = g.crop_flag
sequence = g.sequence
rd_start = g.rd_start
rd_end = g.rd_end
maxdis = g.maxdis
maxori = g.maxori
tolers = g.tolers
"""
We make pp reference the desired multiharloc list for the query video
frame query_frame
"""
pp = q_harlocs[query_frame]
"""
Alex: for the query frame query_frame we retrieve, for scale scale_index, the
harris features in var points.
Then we build the quads from points.
Then for each quad (4 float values) we query the corresponding scale
kd-tree, and we get the indices.
Then we build the histogram and compute idf, ....!!!!
Note: scale is 1 for original frame resolution and the higher
we go we have lower image resolutions (we go higher in the
Guassian pyramid I think).
"""
points = pp[pp[:, 2] == scale_index, 0:2]
qout, qcen, qmaxdis, qori = findquads.findquads(points, md_threshold, 0)
common.DebugPrint("multiscale_quad_retrieval(): query_frame = %d, "
"qout.shape = %s" % (query_frame, str(qout.shape)))
space_xy = np.zeros((qcen.shape[0], 2 * len(r_harlocs))) + np.nan
votes = np.zeros((len(r_harlocs), 1))
assert isinstance(tolers, float)
"""
We substitute queryFrameQuad - 1 with queryFrameQuad, since we want
to number arrays from 0 (not from 1 like in Matlab).
"""
for queryFrameQuad in range(qout.shape[0]):
"""
Matlab's polymorphism is really bugging here: although it's
normally a float, tolers is considered to be a size 1 vector...
so len(tolers) == 1
"""
"""
We substitute tol_i - 1 with tol, since we want
to number arrays from 0 (not from 1 like in Matlab).
"""
for tol_i in range(1):
tol = tolers
# default for first PAMI with tol= 0.1 approximately
# NOTE: SciPy's KDTree finds a few more results, in some cases,
# than the Matlab code from Evangelidis.
# tol is a scalar representing the radius of the ball
if config.KDTREE_IMPLEMENTATION == 0:
idx = r_quads_tree.query_ball_point(qout[queryFrameQuad, :],
tol)
elif config.KDTREE_IMPLEMENTATION == 1:
pt = qout[queryFrameQuad, :]
pt = np.array([[pt[0], pt[1], pt[2], pt[3]]], dtype=np.float32)
retval, idx, dists = r_quads_tree.radiusSearch(
query=pt,
radius=(tol ** 2),
maxResults=NUM_MAX_ELEMS,
params=search_params)
if common.MY_DEBUG_STDOUT:
common.DebugPrint(
"multiscale_quad_retrieval(): radiusSearch's retval "
"(at query_frame=%d, queryFrameQuad=%d) is %d\n" % (
query_frame, queryFrameQuad, retval))
idx = idx[0]
dists = dists[0]
idx = idx[: retval]
dists = dists[: retval]
if common.MY_DEBUG_STDOUT:
print("multiscale_quad_retrieval(): "
"qout[queryFrameQuad, :] = %s" % str(
qout[queryFrameQuad, :]))
print("multiscale_quad_retrieval(): "
"idx = %s" % str(idx))
print("multiscale_quad_retrieval(): "
"tol = %s" % str(tol))
if config.KDTREE_IMPLEMENTATION == 0:
print("multiscale_quad_retrieval(): "
"r_quads_tree.data[idx] = %s" %
str(r_quads_tree.data[idx]))
# We print the distances to the points returned in idx
a = qout[queryFrameQuad, :]
idx = np.array(idx)
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"all_max.shape = %s" % str(all_max.shape))
common.DebugPrint("multiscale_quad_retrieval(): "
"qmaxdis.shape = %s" % str(qmaxdis.shape))
common.DebugPrint("multiscale_quad_retrieval(): "
"qmaxdis = %s" % str(qmaxdis))
common.DebugPrint("multiscale_quad_retrieval(): "
"qori.shape = %s" % str(qori.shape))
common.DebugPrint("multiscale_quad_retrieval(): "
"qori = %s" % str(qori))
if len(idx) == 0:
# NOT A GOOD IDEA: continue
# idx = np.array([])
dis_idx = np.array([])
ori_idx = np.array([])
else:
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"queryFrameQuad = %s" % str(
queryFrameQuad))
common.DebugPrint("multiscale_quad_retrieval(): "
"all_max[idx] = %s" % str(all_max[idx]))
common.DebugPrint("multiscale_quad_retrieval(): "
"qmaxdis[queryFrameQuad] = %s" % str(
qmaxdis[queryFrameQuad]))
dis_idx = np.abs(
qmaxdis[queryFrameQuad] - all_max[idx]) < maxdis
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"dis_idx = %s" % str(dis_idx))
idx = idx[dis_idx]
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"idx (after idx = idx[dis_idx]) = "
"%s" % str(idx))
ori_idx = np.abs(qori[queryFrameQuad] - all_ori[idx]) < maxori
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"ori_idx = %s" % str(ori_idx))
idx = idx[ori_idx]
# IMPORTANT ###################################################
# IMPORTANT ###################################################
# IMPORTANT ###################################################
# spatio-temporal consistency
# IMPORTANT ###################################################
# IMPORTANT ###################################################
# IMPORTANT ###################################################
if idx.size > 0:
# Normally crop_flag == 0
if crop_flag == 0:
dy = qcen[queryFrameQuad, 0] - all_cen[idx, 0]
dx = qcen[queryFrameQuad, 1] - all_cen[idx, 1]
D = dy ** 2 + dx ** 2
co_idx = D < pow(st_threshold, 2)
idx = idx[co_idx]
else:
"""
We substitute iii - 1 with iii, since we want
to number arrays from 0 (not from 1 like in Matlab).
"""
for iii in range(len(idx)):
space_xy[queryFrameQuad,
(all_id[idx[iii]] - rd_start) * 2: (all_id[idx[
iii] - 1] - rd_start) * 2 + 1] = \
all_cen[idx[iii], :]
# It has to be an np.array because we multiply it with a scalar
histo_range = np.array(range(rd_start, rd_end + 1))
hh = Matlab.hist(x=all_id[idx], binCenters=histo_range)
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"hh = %s" % (str(hh)))
common.DebugPrint("multiscale_quad_retrieval(): "
"hh.shape = %s" % (str(hh.shape)))
common.DebugPrint("multiscale_quad_retrieval(): "
"all_id.shape = %s" % (str(all_id.shape)))
common.DebugPrint("multiscale_quad_retrieval(): "
"idx = %s" % (str(idx)))
common.DebugPrint("multiscale_quad_retrieval(): "
"idx.shape = %s" % (str(idx.shape)))
# nz can be computed more optimally
# nz=find(hh~=0) # nz can be computed more optimally
# np.nonzero() always returns a tuple, even if it contains
# 1 element since hh has only 1 dimension
nz = np.nonzero(hh != 0)[0]
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"nz = %s" % (str(nz)))
common.DebugPrint("multiscale_quad_retrieval(): "
"nz.shape = %s" % (str(nz.shape)))
if nz.size > 0:
my_val = pow(math.log10(float(len(r_harlocs)) / len(nz)), 2)
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"len(r_harlocs) = "
"%d" % len(r_harlocs))
common.DebugPrint("multiscale_quad_retrieval(): "
"len(nz) = %d" % len(nz))
common.DebugPrint("multiscale_quad_retrieval(): "
"my_val = %.5f" % my_val)
# PREVIOUSLY
votes[nz, tol_i] = votes[nz, tol_i] + my_val
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"votes.shape = %s" % (str(votes.shape)))
common.DebugPrint("multiscale_quad_retrieval(): "
"votes = %s" % (str(votes)))
return query_frame, np.ravel(votes)
"""
From http://www.mathworks.com/help/matlab/matlab_prog/symbol-reference.html:
Dot-Dot-Dot (Ellipsis) - ...
A series of three consecutive periods (...) is the line continuation
operator in MATLAB.
Line Continuation
Continue any MATLAB command or expression by placing an ellipsis at the
end of the line to be continued:
"""
NUM_MAX_ELEMS = 100000
# Gives fewer results than scipy's tree.query_ball_point when we have 65K
# features
search_params = dict(checks=1000000000)
# returns Votes_space, HH
# Alex: r_harlocs and q_harlocs are the corresponding lists of harlocs computed
"""
md_threshold = max-distance threshold used to build quads out of Harris features
st_threshold = threshold value for spatio-temporal consistency (coherence)
all_ori, all_id, all_max, all_cen = orientation, reference frame ids,
max distances, respectively centroids coordinates of each reference quad for
scale scale_index
"""
def multiscale_quad_retrieval(r_quads_tree, r_harlocs, q_harlocs, md_threshold,
st_threshold, all_ori, all_id, all_max, all_cen,
nos, scale_index, crop_flag, sequence):
common.DebugPrint("Entered multiscale_quad_retrieval(): "
"md_threshold = %s, st_threshold = %s." %
(str(md_threshold), str(st_threshold)))
assert len(r_harlocs) != 0
assert len(q_harlocs) != 0
try:
votes_space = np.load("votes_space%d.npz" % scale_index)['arr_0']
HH = np.load("HH%d.npz" % scale_index)['arr_0']
return votes_space, HH
except:
common.DebugPrintErrorTrace()
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): r_quads_tree = %s" %
str(r_quads_tree))
common.DebugPrint(
"multiscale_quad_retrieval(): len(r_harlocs) = %d" % len(r_harlocs))
common.DebugPrint(
"multiscale_quad_retrieval(): r_harlocs = %s" % str(r_harlocs))
common.DebugPrint(
"multiscale_quad_retrieval(): q_harlocs = %s" % str(q_harlocs))
common.DebugPrint(
"multiscale_quad_retrieval(): md_threshold = %s" % str(
md_threshold))
print("multiscale_quad_retrieval(): st_threshold = %s" % str(
st_threshold))
common.DebugPrint(
"multiscale_quad_retrieval(): all_id = %s" % str(all_id))
common.DebugPrint("multiscale_quad_retrieval(): all_id.shape = %s" % (
str(all_id.shape)))
common.DebugPrint(
"multiscale_quad_retrieval(): sequence = %s" % str(sequence))
print("multiscale_quad_retrieval(): crop_flag = %s" % str(crop_flag))
t1 = float(cv2.getTickCount())
if scale_index > nos:
assert scale_index <= nos
# TODO: take out rd_start
rd_start = 0
rd_end = len(r_harlocs) - 1
j = 1
"""
Inspired from
https://stackoverflow.com/questions/17559140/matlab-twice-as-fast-as-numpy
BUT doesn't help in this case:
votes_space = np.asfortranarray(np.zeros( (len(RD), len(QD)) ))
"""
votes_space = np.zeros((len(r_harlocs), len(q_harlocs)))
# Make a distinct copy of HH from votes_space...
# TODO: use MAYBE even np.bool - OR take it out
HH = np.zeros((len(r_harlocs), len(q_harlocs)), dtype=np.int8)
# it helps to make more strict the threshold as the scale goes up
tolers = 0.1 - float(scale_index) / 100.0
maxdis = 3 + scale_index
maxori = 0.25
# TODO: I am using multiprocessing.Poll and return votes the dispatcher
# assembles the results, but the results are NOT the same with the serial
# case - although they look pretty decent, but they seem to be
# suboptimal - dp_alex returns suboptimal cost path for
# USE_MULTITHREADING == True instead of False.
# (Note: running under the same preconditions
# multiscale_quad_retrieval I got the same results in dp_alex().
"""
if False: #config.USE_MULTITHREADING == True:
global g
g.r_quads_tree = r_quads_tree
g.r_harlocs = r_harlocs
g.q_harlocs = q_harlocs
g.md_threshold = md_threshold
g.st_threshold = st_threshold
g.all_ori = all_ori
g.all_id = all_id
g.all_max = all_max
g.all_cen = all_cen
g.nos = nos
g.scale_index = scale_index
g.crop_flag = crop_flag
g.sequence = sequence
g.RD_start = RD_start
g.RD_end = RD_end
g.maxdis = maxdis
g.maxori = maxori
g.tolers = tolers
#Start worker processes to use on multi-core processor (able to run
# in parallel - no GIL issue if each core has it's own VM)
pool = multiprocessing.Pool(processes=config.numProcesses)
print("multiscale_quad_retrieval(): Spawned a pool of %d workers" %
config.numProcesses)
listParams = range(0, len(q_harlocs)) #!!!!TODO: use counterStep, config.initFrame[indexVideo]
#res = pool.map(iteration_standalone_mqr, listParams)
# See https://docs.python.org/2/library/multiprocessing.html#module-multiprocessing.pool
res = pool.map(func=iteration_standalone_mqr, iterable=listParams,
chunksize=1)
print("Pool.map returns %s" % str(res)) #x0.size + 1
# From https://medium.com/building-things-on-the-internet/40e9b2b36148
# close the pool and wait for the work to finish
pool.close()
pool.join()
# Doing the "reduce" phase after the workers have finished :)
assert len(res) == len(q_harlocs)
for query_frame, resE in enumerate(res):
resEIndex = resE[0]
resE = resE[1]
assert resEIndex == query_frame
# Gives: "ValueError: output operand requires a reduction, but reduction is not enabled"
#votes_space[:, query_frame - 1] = votes
votes_space[:, query_frame] = resE
for query_frame in range(len(q_harlocs)):
if crop_flag == 0:
HH[:, query_frame] = 1
else:
HH[:, query_frame] = spatial_consistency.spatial_consistency(space_xy,
qcen, len(r_harlocs), st_threshold, crop_flag)
try:
np.savez_compressed("votes_space%d" % scale_index, votes_space)
np.savez_compressed("HH%d" % scale_index, HH)
except:
common.DebugPrintErrorTrace()
return votes_space, HH
"""
"""
We substitute q - 1 with q, since we want
to number arrays from 0 (not from 1 like in Matlab).
"""
for query_frame in range(len(q_harlocs)):
common.DebugPrint("multiscale_quad_retrieval(): Starting iteration "
"query_frame = %d" % query_frame)
"""
We make pp reference the desired multiharloc list for the query video
frame query_frame
"""
pp = q_harlocs[query_frame]
points = pp[pp[:, 2] == scale_index, 0:2]
qout, qcen, qmaxdis, qori = findquads.findquads(points, md_threshold, 0)
if common.MY_DEBUG_STDOUT:
print("multiscale_quad_retrieval(): query_frame = %d, "
"qout.shape (number of quads for query frame query_frame) = "
"%s" % (query_frame, str(qout.shape)))
space_xy = np.zeros((qcen.shape[0], 2 * len(r_harlocs))) + np.nan
votes = np.zeros((len(r_harlocs), 1))
assert isinstance(tolers, float)
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): quads of query "
"frame %d are: " % query_frame)
common.DebugPrint(" qout = %s" % str(qout))
"""
Alex: for each quad (4 floats) of the query frame from Harris feature of
scale scale_index
Note: all_id stores the reference frame id for each quad descriptor.
"""
"""
We substitute queryFrameQuad - 1 with queryFrameQuad, since we want
to number arrays from 0 (not from 1 like in Matlab).
"""
for queryFrameQuad in range(qout.shape[0]):
common.DebugPrint("multiscale_quad_retrieval(): Starting iteration "
"queryFrameQuad = %d" % queryFrameQuad)
"""
Matlab's polymorphism is really bugging here: although it's
normally a float, tolers is considered to be a size 1 vector...
so len(tolers) == 1
"""
"""
We substitute tol_i - 1 with tol, since we want
to number arrays from 0 (not from 1 like in Matlab).
"""
for tol_i in range(1):
tol = tolers
# default for first PAMI with tol= 0.1 approximately
# NOTE: SciPy's KDTree finds a few more results, in some cases,
# than the Matlab code from Evangelidis.
# tol is a scalar representing the radius of the ball
if config.KDTREE_IMPLEMENTATION == 0:
idx = r_quads_tree.query_ball_point(qout[queryFrameQuad, :],
tol)
elif config.KDTREE_IMPLEMENTATION == 1:
pt = qout[queryFrameQuad, :]
pt = np.array([[pt[0], pt[1], pt[2], pt[3]]],
dtype=np.float32)
retval, idx, dists = r_quads_tree.radiusSearch(
query=pt,
radius=(tol ** 2),
maxResults=NUM_MAX_ELEMS,
params=search_params)
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"radiusSearch's retval (at "
"query_frame=%d, queryFrameQuad=%d) "
"is %d" %
(query_frame, queryFrameQuad, retval))
idx = idx[0]
dists = dists[0]
"""
Note: retval is the number of neighbors returned from the
radiusSearch().
But the idx and the dists can have more elements than the
returned retval.
"""
idx = idx[: retval]
dists = dists[: retval]
if common.MY_DEBUG_STDOUT:
print("multiscale_quad_retrieval(): "
"qout[queryFrameQuad, :] = %s" %
str(qout[queryFrameQuad, :]))
print("multiscale_quad_retrieval(): "
"idx = %s" % str(idx))
print("multiscale_quad_retrieval(): "
"dists = %s" % str(dists))
print("multiscale_quad_retrieval(): "
"tol = %s" % str(tol))
if config.KDTREE_IMPLEMENTATION == 0:
print("multiscale_quad_retrieval(): "
"r_quads_tree.data[idx] = %s" %
str(r_quads_tree.data[idx]))
if common.MY_DEBUG_STDOUT:
a = qout[queryFrameQuad, :]
if config.KDTREE_IMPLEMENTATION == 0:
for myI, index in enumerate(idx):
b = r_quads_tree.data[index]
else:
pass
idx = np.array(idx)
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"all_max.shape = %s" % str(all_max.shape))
common.DebugPrint("multiscale_quad_retrieval(): "
"qmaxdis.shape = %s" % str(qmaxdis.shape))
common.DebugPrint("multiscale_quad_retrieval(): "
"qmaxdis = %s" % str(qmaxdis))
common.DebugPrint("multiscale_quad_retrieval(): "
"qori.shape = %s" % str(qori.shape))
common.DebugPrint("multiscale_quad_retrieval(): "
"qori = %s" % str(qori))
if len(idx) == 0:
# NOT A GOOD IDEA: continue
dis_idx = np.array([])
ori_idx = np.array([])
else:
if common.MY_DEBUG_STDOUT:
print("multiscale_quad_retrieval(): "
"queryFrameQuad = %s" % str(queryFrameQuad))
print("multiscale_quad_retrieval(): "
"all_max[idx] = %s" % str(all_max[idx]))
print("multiscale_quad_retrieval(): "
"qmaxdis[queryFrameQuad] = %s" %
str(qmaxdis[queryFrameQuad]))
if USE_GPS_COORDINATES:
# We look only at a part of the reference video
"""
Since in some cases the video temporal alignment is
difficult to do due to similar portions in the
trajectory (see the drone videos, clip 3_some_lake)
we "guide" the temporal alignment by restricting
the reference frame search space - this is useful
when we have the geolocation (GPS) coordinate for
each frame.
"""
if common.MY_DEBUG_STDOUT:
print("multiscale_quad_retrieval(): "
"all_id = %s" % str(all_id))
if all_id.ndim == 2:
# TODO: put this at the beginning of the
# function
assert all_id.shape[1] == 1
"""
We flatten the array all_id
Note: We don't use order="F" since it's
basically 1-D array
"""
all_id = np.ravel(all_id)
# TODO: put start and end frame in config - or compute
# it from geolocation
sub_idx = np.logical_and((all_id[idx] >= 2030 - 928),
(all_id[idx] <= 2400 - 928))
idx = idx[sub_idx]
if common.MY_DEBUG_STDOUT:
print("multiscale_quad_retrieval(): "
"all_id = %s" % str(all_id))
print("multiscale_quad_retrieval(): "
"sub_idx = %s" % str(sub_idx))
print("multiscale_quad_retrieval(): "
"idx = %s" % str(idx))
if FILTER:
dis_idx = np.abs(
qmaxdis[queryFrameQuad] - all_max[idx]) < maxdis
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"dis_idx = %s" % str(dis_idx))
idx = idx[dis_idx]
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"idx (after idx = idx[dis_idx]) = "
"%s" % str(idx))
if FILTER:
ori_idx = np.abs(
qori[queryFrameQuad] - all_ori[idx]) < maxori
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"ori_idx = %s" % str(ori_idx))
idx = idx[ori_idx]
# IMPORTANT ###################################################
# IMPORTANT ###################################################
# IMPORTANT ###################################################
# spatio-temporal consistency
# IMPORTANT ###################################################
# IMPORTANT ###################################################
# IMPORTANT ###################################################
if idx.size > 0:
if crop_flag == 0:
if FILTER:
"""
Alex: this is a simple procedure of eliminating
False Positive (FP) matches, as presented in
Section 4.2 of TPAMI 2013 paper.
Basically it filters out quad matches that have
centroids st_threshold away from the query quad.
Note: all_cen are the controids of all reference
quads.
"""
dy = qcen[queryFrameQuad, 0] - all_cen[idx, 0]
dx = qcen[queryFrameQuad, 1] - all_cen[idx, 1]
D = dy ** 2 + dx ** 2
co_idx = D < pow(st_threshold, 2)
idx = idx[co_idx]
else:
"""
We substitute iii - 1 with iii, since we want
to number arrays from 0 (not from 1 like in Matlab).
"""
for iii in range(len(idx)):
space_xy[queryFrameQuad,
(all_id[idx[iii]] - rd_start) * 2: (all_id[idx[
iii] - 1] - rd_start) * 2 + 1] = \
all_cen[idx[iii], :]
# It has to be an np.array because we multiply it with a
# scalar
histo_range = np.array(range(rd_start, rd_end + 1))
hh = Matlab.hist(x=all_id[idx], binCenters=histo_range)
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"hh = %s" % (str(hh)))
common.DebugPrint("multiscale_quad_retrieval(): "
"hh.shape = %s" % (str(hh.shape)))
common.DebugPrint("multiscale_quad_retrieval(): "
"all_id.shape = %s" % (
str(all_id.shape)))
common.DebugPrint("multiscale_quad_retrieval(): "
"idx = %s" % (str(idx)))
common.DebugPrint("multiscale_quad_retrieval(): "
"idx.shape = %s" % (str(idx.shape)))
# % nz can be computed more optimally
nz = np.nonzero(hh != 0)[0]
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"nz = %s" % (str(nz)))
common.DebugPrint("multiscale_quad_retrieval(): "
"nz.shape = %s" % (str(nz.shape)))
if nz.size > 0:
my_val = pow(
math.log10(float(len(r_harlocs)) / len(nz)), 2)
if common.MY_DEBUG_STDOUT:
common.DebugPrint("multiscale_quad_retrieval(): "
"len(r_harlocs) = %d" % len(
r_harlocs))
common.DebugPrint("multiscale_quad_retrieval(): "
"len(nz) = %d" % len(nz))
common.DebugPrint("multiscale_quad_retrieval(): "
"my_val = %.5f" % my_val)
# PREVIOUSLY
votes[nz, tol_i] = votes[nz, tol_i] + my_val
if common.MY_DEBUG_STDOUT:
print("multiscale_quad_retrieval(): "
"votes.shape = %s" % (str(votes.shape)))
if (np.abs(votes) < 1.0e-10).all():
print("multiscale_quad_retrieval(): votes = 0 (all zeros)")
else:
print("multiscale_quad_retrieval(): votes = %s" % (str(votes)))
# Note: since votes is basically a 1-D vector, we don't use the
# Fortran order
votes_space[:, query_frame] = np.ravel(votes)
if crop_flag == 0:
HH[:, query_frame] = 1
else:
HH[:, query_frame] = spatial_consistency.spatial_consistency(
space_xy,
qcen, len(r_harlocs), st_threshold, crop_flag)
if common.MY_DEBUG_STDOUT:
print("multiscale_quad_retrieval(scale_index=%d): "
"votes_space =\n%s" % (scale_index, str(votes_space)))
try:
np.savez_compressed("votes_space%d" % scale_index, votes_space)
np.savez_compressed("HH%d" % scale_index, HH)
except:
common.DebugPrintErrorTrace()
t2 = float(cv2.getTickCount())
my_time = (t2 - t1) / cv2.getTickFrequency()
print("multiscale_quad_retrieval() took %.6f [sec]" % my_time)
return votes_space, HH
| [
1,
529,
276,
1112,
420,
29958,
29903,
1103,
17345,
29914,
9641,
29899,
12765,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
5844,
13,
5215,
12655,
408,
7442,
13,
13,
5215,
13850,
29906,
13,
13,
5215,
3619,
13,
5215,
2295,
13,
5215,
1284,
3425,
29879,
13,
5215,
18652,
29918,
3200,
391,
3819,
13,
5215,
5345,
8205,
13,
13,
3738,
29931,
4945,
353,
5852,
13,
17171,
29918,
29954,
7024,
29918,
3217,
25593,
1177,
1299,
2890,
353,
7700,
13,
13,
361,
2295,
29889,
17171,
29918,
29924,
8647,
13054,
16310,
4214,
29901,
13,
1678,
1053,
6674,
307,
985,
292,
13,
13,
1678,
770,
402,
2127,
1338,
29901,
13,
4706,
364,
29918,
3425,
29879,
9643,
353,
6213,
13,
4706,
364,
29918,
8222,
2029,
29879,
353,
6213,
13,
4706,
3855,
29918,
8222,
2029,
29879,
353,
6213,
13,
4706,
22821,
29918,
386,
12268,
353,
6213,
13,
4706,
380,
29918,
386,
12268,
353,
6213,
13,
4706,
599,
29918,
4170,
353,
6213,
13,
4706,
599,
29918,
333,
353,
6213,
13,
4706,
599,
29918,
3317,
353,
6213,
13,
4706,
599,
29918,
10278,
353,
6213,
13,
4706,
7814,
353,
6213,
13,
4706,
6287,
29918,
2248,
353,
6213,
13,
4706,
274,
1336,
29918,
15581,
353,
6213,
13,
4706,
5665,
353,
6213,
13,
4706,
364,
29881,
29918,
2962,
353,
6213,
13,
4706,
364,
29881,
29918,
355,
353,
6213,
13,
4706,
4236,
2218,
353,
6213,
13,
4706,
4236,
4170,
353,
6213,
13,
4706,
304,
9306,
353,
6213,
13,
1678,
330,
353,
402,
2127,
1338,
580,
13,
13,
13,
15945,
29908,
13,
10401,
8943,
5281,
1773,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
3285,
591,
674,
4017,
13,
29871,
10029,
1422,
2582,
363,
4891,
999,
313,
7070,
29897,
448,
1074,
4891,
999,
29889,
3945,
29889,
13,
29871,
3940,
393,
746,
2734,
297,
7797,
313,
14037,
263,
21521,
5607,
511,
591,
4017,
278,
1021,
1121,
14445,
12982,
21554,
29889,
13,
29871,
313,
2222,
8018,
29901,
565,
591,
1065,
871,
29871,
29896,
1889,
297,
11565,
2012,
310,
29871,
29941,
29892,
591,
679,
13,
268,
28145,
3620,
297,
4891,
999,
29889,
3945,
448,
6058,
1854,
565,
445,
2794,
1554,
467,
13,
259,
739,
5692,
278,
2769,
338,
278,
2114,
306,
626,
2734,
278,
383,
29931,
2190,
29940,
476,
29928,
29899,
8336,
5314,
29892,
13,
268,
607,
338,
385,
26368,
405,
29940,
2740,
3489,
29892,
5703,
292,
4036,
2133,
13,
268,
313,
4149,
1732,
597,
550,
17538,
29889,
3150,
11023,
29889,
990,
29914,
12470,
29914,
29941,
29906,
29953,
29953,
29946,
29914,
1579,
812,
6707,
4352,
261,
29899,
2457,
292,
29899,
29881,
15622,
29899,
9902,
12495,
13,
268,
306,
4140,
278,
4036,
1353,
5665,
29892,
746,
2534,
278,
1021,
16717,
29892,
15220,
1960,
13,
4706,
17587,
746,
7797,
12221,
297,
8943,
13,
539,
9717,
29892,
577,
278,
2582,
10331,
304,
367,
1422,
29889,
13,
15945,
29908,
13,
13,
13,
1753,
12541,
29918,
1689,
18785,
29918,
28466,
29878,
29898,
1972,
29918,
2557,
1125,
13,
1678,
364,
29918,
3425,
29879,
29918,
8336,
353,
330,
29889,
29878,
29918,
3425,
29879,
9643,
13,
1678,
364,
29918,
8222,
2029,
29879,
353,
330,
29889,
29878,
29918,
8222,
2029,
29879,
13,
1678,
3855,
29918,
8222,
2029,
29879,
353,
330,
29889,
29939,
29918,
8222,
2029,
29879,
13,
1678,
22821,
29918,
386,
12268,
353,
330,
29889,
3487,
29918,
386,
12268,
13,
1678,
380,
29918,
386,
12268,
353,
330,
29889,
303,
29918,
386,
12268,
13,
1678,
599,
29918,
4170,
353,
330,
29889,
497,
29918,
4170,
13,
1678,
599,
29918,
333,
353,
330,
29889,
497,
29918,
333,
13,
1678,
599,
29918,
3317,
353,
330,
29889,
497,
29918,
3317,
13,
1678,
599,
29918,
10278,
353,
330,
29889,
497,
29918,
10278,
13,
1678,
7814,
353,
330,
29889,
17639,
13,
1678,
6287,
29918,
2248,
353,
330,
29889,
7052,
29918,
2248,
13,
1678,
274,
1336,
29918,
15581,
353,
330,
29889,
29883,
1336,
29918,
15581,
13,
1678,
5665,
353,
330,
29889,
16506,
13,
1678,
364,
29881,
29918,
2962,
353,
330,
29889,
5499,
29918,
2962,
13,
1678,
364,
29881,
29918,
355,
353,
330,
29889,
5499,
29918,
355,
13,
1678,
4236,
2218,
353,
330,
29889,
3317,
2218,
13,
1678,
4236,
4170,
353,
330,
29889,
3317,
4170,
13,
1678,
304,
9306,
353,
330,
29889,
25027,
414,
13,
13,
1678,
9995,
13,
1678,
1334,
1207,
6499,
3407,
278,
7429,
2473,
8222,
2029,
1051,
363,
278,
2346,
4863,
13,
4706,
3515,
2346,
29918,
2557,
13,
1678,
9995,
13,
1678,
6499,
353,
3855,
29918,
8222,
2029,
29879,
29961,
1972,
29918,
2557,
29962,
13,
13,
1678,
9995,
13,
1678,
4827,
29901,
363,
278,
2346,
3515,
2346,
29918,
2557,
591,
10563,
29892,
363,
6287,
6287,
29918,
2248,
29892,
278,
13,
4706,
298,
2749,
275,
5680,
297,
722,
3291,
29889,
13,
418,
1987,
591,
2048,
278,
439,
7925,
515,
3291,
29889,
13,
418,
1987,
363,
1269,
18890,
313,
29946,
5785,
1819,
29897,
591,
2346,
278,
6590,
6287,
13,
4706,
413,
29881,
29899,
8336,
29892,
322,
591,
679,
278,
16285,
29889,
13,
4706,
1987,
591,
2048,
278,
9825,
13342,
322,
10272,
1178,
29888,
29892,
13035,
6824,
6824,
13,
13,
268,
3940,
29901,
6287,
338,
29871,
29896,
363,
2441,
3515,
10104,
322,
278,
6133,
13,
4706,
591,
748,
591,
505,
5224,
1967,
10104,
29879,
313,
705,
748,
6133,
297,
278,
13,
4706,
2088,
465,
713,
11451,
2572,
333,
306,
1348,
467,
13,
1678,
9995,
13,
1678,
3291,
353,
6499,
29961,
407,
7503,
29892,
29871,
29906,
29962,
1275,
6287,
29918,
2248,
29892,
29871,
29900,
29901,
29906,
29962,
13,
1678,
3855,
449,
29892,
3855,
10278,
29892,
3855,
3317,
2218,
29892,
3855,
4170,
353,
1284,
3425,
29879,
29889,
2886,
3425,
29879,
29898,
9748,
29892,
22821,
29918,
386,
12268,
29892,
29871,
29900,
29897,
13,
13,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
2346,
29918,
2557,
353,
1273,
29881,
29892,
376,
13,
462,
418,
376,
29939,
449,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
1972,
29918,
2557,
29892,
851,
29898,
29939,
449,
29889,
12181,
4961,
13,
13,
1678,
2913,
29918,
3594,
353,
7442,
29889,
3298,
359,
3552,
29939,
10278,
29889,
12181,
29961,
29900,
1402,
29871,
29906,
334,
7431,
29898,
29878,
29918,
8222,
2029,
29879,
4961,
718,
7442,
29889,
13707,
13,
1678,
18952,
353,
7442,
29889,
3298,
359,
3552,
2435,
29898,
29878,
29918,
8222,
2029,
29879,
511,
29871,
29896,
876,
13,
1678,
4974,
338,
8758,
29898,
25027,
414,
29892,
5785,
29897,
13,
13,
1678,
9995,
13,
1678,
1334,
23764,
2346,
4308,
2182,
328,
448,
29871,
29896,
411,
2346,
4308,
2182,
328,
29892,
1951,
591,
864,
13,
4706,
304,
1353,
7049,
515,
29871,
29900,
313,
1333,
515,
29871,
29896,
763,
297,
5345,
8205,
467,
13,
1678,
9995,
13,
1678,
363,
2346,
4308,
2182,
328,
297,
3464,
29898,
29939,
449,
29889,
12181,
29961,
29900,
29962,
1125,
13,
4706,
9995,
13,
4706,
5345,
8205,
29915,
29879,
24324,
28611,
338,
2289,
6494,
3460,
1244,
29901,
5998,
372,
29915,
29879,
13,
9651,
12891,
263,
5785,
29892,
304,
9306,
338,
5545,
304,
367,
263,
2159,
29871,
29896,
4608,
856,
13,
9651,
577,
7431,
29898,
25027,
414,
29897,
1275,
29871,
29896,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
1334,
23764,
304,
29880,
29918,
29875,
448,
29871,
29896,
411,
304,
29880,
29892,
1951,
591,
864,
13,
9651,
304,
1353,
7049,
515,
29871,
29900,
313,
1333,
515,
29871,
29896,
763,
297,
5345,
8205,
467,
13,
4706,
9995,
13,
4706,
363,
304,
29880,
29918,
29875,
297,
3464,
29898,
29896,
1125,
13,
9651,
304,
29880,
353,
304,
9306,
13,
13,
9651,
396,
2322,
363,
937,
349,
5194,
29902,
411,
304,
29880,
29922,
29871,
29900,
29889,
29896,
14235,
13,
13,
9651,
396,
6058,
29923,
29901,
5636,
19737,
29915,
29879,
476,
29928,
9643,
14061,
263,
2846,
901,
2582,
29892,
297,
777,
4251,
29892,
13,
9651,
396,
1678,
1135,
278,
5345,
8205,
775,
515,
21827,
333,
275,
29889,
13,
9651,
396,
304,
29880,
338,
263,
17336,
15783,
278,
11855,
310,
278,
8287,
13,
9651,
565,
2295,
29889,
29968,
12972,
21661,
29918,
29902,
3580,
1307,
13780,
8098,
1275,
29871,
29900,
29901,
13,
18884,
22645,
353,
364,
29918,
3425,
29879,
29918,
8336,
29889,
1972,
29918,
2135,
29918,
3149,
29898,
29939,
449,
29961,
1972,
4308,
2182,
328,
29892,
584,
1402,
13,
462,
462,
462,
1678,
304,
29880,
29897,
13,
9651,
25342,
2295,
29889,
29968,
12972,
21661,
29918,
29902,
3580,
1307,
13780,
8098,
1275,
29871,
29896,
29901,
13,
18884,
19592,
353,
3855,
449,
29961,
1972,
4308,
2182,
328,
29892,
584,
29962,
13,
18884,
19592,
353,
7442,
29889,
2378,
4197,
29961,
415,
29961,
29900,
1402,
19592,
29961,
29896,
1402,
19592,
29961,
29906,
1402,
19592,
29961,
29941,
5262,
1402,
26688,
29922,
9302,
29889,
7411,
29941,
29906,
29897,
13,
18884,
3240,
791,
29892,
22645,
29892,
1320,
29879,
353,
364,
29918,
3425,
29879,
29918,
8336,
29889,
13471,
7974,
29898,
13,
462,
1678,
2346,
29922,
415,
29892,
13,
462,
1678,
11855,
7607,
25027,
3579,
29871,
29906,
511,
13,
462,
1678,
4236,
12191,
29922,
13967,
29918,
12648,
29918,
29923,
1307,
4345,
29892,
13,
462,
1678,
8636,
29922,
4478,
29918,
7529,
29897,
13,
18884,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
1678,
3619,
29889,
11862,
11816,
29898,
13,
462,
4706,
376,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
11855,
7974,
29915,
29879,
3240,
791,
376,
13,
462,
4706,
18227,
271,
2346,
29918,
2557,
16328,
29881,
29892,
2346,
4308,
2182,
328,
16328,
29881,
29897,
338,
1273,
29881,
29905,
29876,
29908,
1273,
313,
13,
462,
308,
2346,
29918,
2557,
29892,
2346,
4308,
2182,
328,
29892,
3240,
791,
876,
13,
18884,
22645,
353,
22645,
29961,
29900,
29962,
13,
18884,
1320,
29879,
353,
1320,
29879,
29961,
29900,
29962,
13,
18884,
22645,
353,
22645,
7503,
3240,
791,
29962,
13,
18884,
1320,
29879,
353,
1320,
29879,
7503,
3240,
791,
29962,
13,
13,
9651,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
18884,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
418,
376,
29939,
449,
29961,
1972,
4308,
2182,
328,
29892,
584,
29962,
353,
1273,
29879,
29908,
1273,
851,
29898,
13,
462,
539,
3855,
449,
29961,
1972,
4308,
2182,
328,
29892,
584,
12622,
13,
18884,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
418,
376,
13140,
353,
1273,
29879,
29908,
1273,
851,
29898,
13140,
876,
13,
18884,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
418,
376,
25027,
353,
1273,
29879,
29908,
1273,
851,
29898,
25027,
876,
13,
18884,
565,
2295,
29889,
29968,
12972,
21661,
29918,
29902,
3580,
1307,
13780,
8098,
1275,
29871,
29900,
29901,
13,
462,
1678,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
3986,
376,
29878,
29918,
3425,
29879,
29918,
8336,
29889,
1272,
29961,
13140,
29962,
353,
1273,
29879,
29908,
1273,
13,
462,
3986,
851,
29898,
29878,
29918,
3425,
29879,
29918,
8336,
29889,
1272,
29961,
13140,
12622,
13,
13,
9651,
396,
1334,
1596,
278,
24610,
304,
278,
3291,
4133,
297,
22645,
13,
9651,
263,
353,
3855,
449,
29961,
1972,
4308,
2182,
328,
29892,
584,
29962,
13,
9651,
22645,
353,
7442,
29889,
2378,
29898,
13140,
29897,
13,
13,
9651,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
18884,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
29871,
376,
497,
29918,
3317,
29889,
12181,
353,
1273,
29879,
29908,
1273,
851,
29898,
497,
29918,
3317,
29889,
12181,
876,
13,
18884,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
29871,
376,
29939,
3317,
2218,
29889,
12181,
353,
1273,
29879,
29908,
1273,
851,
29898,
29939,
3317,
2218,
29889,
12181,
876,
13,
18884,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
29871,
376,
29939,
3317,
2218,
353,
1273,
29879,
29908,
1273,
851,
29898,
29939,
3317,
2218,
876,
13,
18884,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
29871,
376,
29939,
4170,
29889,
12181,
353,
1273,
29879,
29908,
1273,
851,
29898,
29939,
4170,
29889,
12181,
876,
13,
18884,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
29871,
376,
29939,
4170,
353,
1273,
29879,
29908,
1273,
851,
29898,
29939,
4170,
876,
13,
13,
9651,
565,
7431,
29898,
13140,
29897,
1275,
29871,
29900,
29901,
13,
18884,
396,
6058,
319,
21947,
13668,
15004,
29909,
29901,
6773,
13,
18884,
396,
22645,
353,
7442,
29889,
2378,
4197,
2314,
13,
18884,
766,
29918,
13140,
353,
7442,
29889,
2378,
4197,
2314,
13,
18884,
470,
29875,
29918,
13140,
353,
7442,
29889,
2378,
4197,
2314,
13,
9651,
1683,
29901,
13,
18884,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
1972,
4308,
2182,
328,
353,
1273,
29879,
29908,
1273,
851,
29898,
13,
462,
462,
539,
2346,
4308,
2182,
328,
876,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
497,
29918,
3317,
29961,
13140,
29962,
353,
1273,
29879,
29908,
1273,
851,
29898,
497,
29918,
3317,
29961,
13140,
12622,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
29939,
3317,
2218,
29961,
1972,
4308,
2182,
328,
29962,
353,
1273,
29879,
29908,
1273,
851,
29898,
13,
462,
462,
539,
3855,
3317,
2218,
29961,
1972,
4308,
2182,
328,
12622,
13,
13,
18884,
766,
29918,
13140,
353,
7442,
29889,
6897,
29898,
13,
462,
1678,
3855,
3317,
2218,
29961,
1972,
4308,
2182,
328,
29962,
448,
599,
29918,
3317,
29961,
13140,
2314,
529,
4236,
2218,
13,
13,
18884,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
2218,
29918,
13140,
353,
1273,
29879,
29908,
1273,
851,
29898,
2218,
29918,
13140,
876,
13,
13,
18884,
22645,
353,
22645,
29961,
2218,
29918,
13140,
29962,
13,
13,
18884,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
13140,
313,
7045,
22645,
353,
22645,
29961,
2218,
29918,
13140,
2314,
353,
376,
13,
462,
462,
418,
11860,
29879,
29908,
1273,
851,
29898,
13140,
876,
13,
13,
18884,
470,
29875,
29918,
13140,
353,
7442,
29889,
6897,
29898,
29939,
4170,
29961,
1972,
4308,
2182,
328,
29962,
448,
599,
29918,
4170,
29961,
13140,
2314,
529,
4236,
4170,
13,
13,
18884,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
4170,
29918,
13140,
353,
1273,
29879,
29908,
1273,
851,
29898,
4170,
29918,
13140,
876,
13,
13,
18884,
22645,
353,
22645,
29961,
4170,
29918,
13140,
29962,
13,
13,
9651,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
9651,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
9651,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
9651,
396,
805,
20819,
29899,
1356,
1971,
284,
5718,
3819,
13,
9651,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
9651,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
9651,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
13,
9651,
565,
22645,
29889,
2311,
1405,
29871,
29900,
29901,
13,
18884,
396,
5655,
635,
274,
1336,
29918,
15581,
1275,
29871,
29900,
13,
18884,
565,
274,
1336,
29918,
15581,
1275,
29871,
29900,
29901,
13,
462,
1678,
13475,
353,
3855,
10278,
29961,
1972,
4308,
2182,
328,
29892,
29871,
29900,
29962,
448,
599,
29918,
10278,
29961,
13140,
29892,
29871,
29900,
29962,
13,
462,
1678,
15414,
353,
3855,
10278,
29961,
1972,
4308,
2182,
328,
29892,
29871,
29896,
29962,
448,
599,
29918,
10278,
29961,
13140,
29892,
29871,
29896,
29962,
13,
462,
1678,
360,
353,
13475,
3579,
29871,
29906,
718,
15414,
3579,
29871,
29906,
13,
462,
1678,
1302,
29918,
13140,
353,
360,
529,
4764,
29898,
303,
29918,
386,
12268,
29892,
29871,
29906,
29897,
13,
462,
1678,
22645,
353,
22645,
29961,
1111,
29918,
13140,
29962,
13,
18884,
1683,
29901,
13,
462,
1678,
9995,
13,
462,
1678,
1334,
23764,
474,
2236,
448,
29871,
29896,
411,
474,
2236,
29892,
1951,
591,
864,
13,
462,
4706,
304,
1353,
7049,
515,
29871,
29900,
313,
1333,
515,
29871,
29896,
763,
297,
5345,
8205,
467,
13,
462,
1678,
9995,
13,
462,
1678,
363,
474,
2236,
297,
3464,
29898,
2435,
29898,
13140,
22164,
13,
462,
4706,
2913,
29918,
3594,
29961,
1972,
4308,
2182,
328,
29892,
13,
462,
4706,
313,
497,
29918,
333,
29961,
13140,
29961,
25609,
5262,
448,
364,
29881,
29918,
2962,
29897,
334,
29871,
29906,
29901,
313,
497,
29918,
333,
29961,
13140,
29961,
13,
462,
9651,
474,
2236,
29962,
448,
29871,
29896,
29962,
448,
364,
29881,
29918,
2962,
29897,
334,
29871,
29906,
718,
29871,
29896,
29962,
353,
320,
13,
462,
9651,
599,
29918,
10278,
29961,
13140,
29961,
25609,
1402,
584,
29962,
13,
13,
18884,
396,
739,
756,
304,
367,
385,
7442,
29889,
2378,
1363,
591,
22932,
372,
411,
263,
17336,
13,
18884,
298,
5137,
29918,
3881,
353,
7442,
29889,
2378,
29898,
3881,
29898,
5499,
29918,
2962,
29892,
364,
29881,
29918,
355,
718,
29871,
29896,
876,
13,
18884,
298,
29882,
353,
5345,
8205,
29889,
29882,
391,
29898,
29916,
29922,
497,
29918,
333,
29961,
13140,
1402,
9016,
23369,
414,
29922,
29882,
5137,
29918,
3881,
29897,
13,
13,
18884,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
25446,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
25446,
4961,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
25446,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
25446,
29889,
12181,
4961,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
497,
29918,
333,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
497,
29918,
333,
29889,
12181,
4961,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
13140,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
13140,
4961,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
13140,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
13140,
29889,
12181,
4961,
13,
13,
18884,
396,
302,
29920,
508,
367,
15712,
901,
5994,
635,
13,
18884,
396,
302,
29920,
29922,
2886,
29898,
25446,
30022,
29922,
29900,
29897,
396,
302,
29920,
508,
367,
15712,
901,
5994,
635,
13,
18884,
396,
7442,
29889,
5464,
9171,
580,
2337,
3639,
263,
18761,
29892,
1584,
565,
372,
3743,
13,
18884,
396,
29871,
29896,
1543,
1951,
298,
29882,
756,
871,
29871,
29896,
9927,
13,
18884,
302,
29920,
353,
7442,
29889,
5464,
9171,
29898,
25446,
2804,
29871,
29900,
9601,
29900,
29962,
13,
18884,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
29876,
29920,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
29876,
29920,
4961,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
29876,
29920,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
29876,
29920,
29889,
12181,
4961,
13,
13,
18884,
565,
302,
29920,
29889,
2311,
1405,
29871,
29900,
29901,
13,
462,
1678,
590,
29918,
791,
353,
4764,
29898,
755,
29889,
1188,
29896,
29900,
29898,
7411,
29898,
2435,
29898,
29878,
29918,
8222,
2029,
29879,
876,
847,
7431,
29898,
29876,
29920,
8243,
29871,
29906,
29897,
13,
13,
462,
1678,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
2435,
29898,
29878,
29918,
8222,
2029,
29879,
29897,
353,
376,
13,
462,
462,
3986,
11860,
29881,
29908,
1273,
7431,
29898,
29878,
29918,
8222,
2029,
29879,
876,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
2435,
29898,
29876,
29920,
29897,
353,
1273,
29881,
29908,
1273,
7431,
29898,
29876,
29920,
876,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
1357,
29918,
791,
353,
18695,
29945,
29888,
29908,
1273,
590,
29918,
791,
29897,
13,
13,
462,
1678,
396,
349,
1525,
29963,
5971,
3308,
16786,
13,
462,
1678,
18952,
29961,
29876,
29920,
29892,
304,
29880,
29918,
29875,
29962,
353,
18952,
29961,
29876,
29920,
29892,
304,
29880,
29918,
29875,
29962,
718,
590,
29918,
791,
13,
13,
1678,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
3986,
376,
29894,
4769,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
29894,
4769,
29889,
12181,
4961,
13,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
3986,
376,
29894,
4769,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
29894,
4769,
4961,
13,
13,
1678,
736,
2346,
29918,
2557,
29892,
7442,
29889,
336,
955,
29898,
29894,
4769,
29897,
13,
13,
13,
15945,
29908,
13,
4591,
1732,
597,
1636,
29889,
755,
13129,
29889,
510,
29914,
8477,
29914,
2922,
8205,
29914,
2922,
8205,
29918,
29097,
29914,
18098,
29899,
5679,
29889,
1420,
29901,
13,
1678,
360,
327,
29899,
29928,
327,
29899,
29928,
327,
313,
6489,
492,
567,
275,
29897,
448,
2023,
13,
1678,
319,
3652,
310,
2211,
18942,
23704,
313,
11410,
338,
278,
1196,
3133,
362,
29871,
13,
1678,
5455,
297,
341,
1299,
24461,
29889,
13,
418,
7407,
2866,
8675,
362,
13,
418,
2866,
14150,
738,
341,
1299,
24461,
1899,
470,
4603,
491,
24421,
385,
22434,
567,
275,
472,
278,
29871,
13,
418,
1095,
310,
278,
1196,
304,
367,
7572,
29901,
13,
15945,
29908,
13,
13,
13967,
29918,
12648,
29918,
29923,
1307,
4345,
353,
29871,
29896,
29900,
29900,
29900,
29900,
29900,
13,
29937,
402,
3145,
28145,
2582,
1135,
4560,
2272,
29915,
29879,
5447,
29889,
1972,
29918,
2135,
29918,
3149,
746,
591,
505,
29871,
29953,
29945,
29968,
13,
29937,
5680,
13,
4478,
29918,
7529,
353,
9657,
29898,
3198,
29879,
29922,
29896,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29897,
13,
13,
29937,
3639,
478,
4769,
29918,
3493,
29892,
379,
29950,
13,
29937,
4827,
29901,
364,
29918,
8222,
2029,
29879,
322,
3855,
29918,
8222,
2029,
29879,
526,
278,
6590,
8857,
310,
4023,
2029,
29879,
15712,
13,
15945,
29908,
13,
3487,
29918,
386,
12268,
353,
4236,
29899,
19244,
16897,
1304,
304,
2048,
439,
7925,
714,
310,
20349,
5680,
13,
303,
29918,
386,
12268,
353,
16897,
995,
363,
805,
20819,
29899,
1356,
1971,
284,
5718,
3819,
313,
1111,
2276,
663,
29897,
13,
497,
29918,
4170,
29892,
599,
29918,
333,
29892,
599,
29918,
3317,
29892,
599,
29918,
10278,
353,
19843,
29892,
3407,
3515,
18999,
29892,
29871,
13,
3317,
24610,
29892,
8307,
1644,
1007,
29879,
10350,
310,
1269,
3407,
18890,
363,
13,
7052,
6287,
29918,
2248,
13,
15945,
29908,
13,
13,
13,
1753,
1773,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
29898,
29878,
29918,
3425,
29879,
29918,
8336,
29892,
364,
29918,
8222,
2029,
29879,
29892,
3855,
29918,
8222,
2029,
29879,
29892,
22821,
29918,
386,
12268,
29892,
13,
462,
795,
380,
29918,
386,
12268,
29892,
599,
29918,
4170,
29892,
599,
29918,
333,
29892,
599,
29918,
3317,
29892,
599,
29918,
10278,
29892,
13,
462,
795,
7814,
29892,
6287,
29918,
2248,
29892,
274,
1336,
29918,
15581,
29892,
5665,
1125,
13,
1678,
3619,
29889,
11862,
11816,
703,
10399,
287,
1773,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
418,
376,
3487,
29918,
386,
12268,
353,
1273,
29879,
29892,
380,
29918,
386,
12268,
353,
1273,
29879,
1213,
1273,
13,
462,
418,
313,
710,
29898,
3487,
29918,
386,
12268,
511,
851,
29898,
303,
29918,
386,
12268,
4961,
13,
13,
1678,
4974,
7431,
29898,
29878,
29918,
8222,
2029,
29879,
29897,
2804,
29871,
29900,
13,
1678,
4974,
7431,
29898,
29939,
29918,
8222,
2029,
29879,
29897,
2804,
29871,
29900,
13,
13,
1678,
1018,
29901,
13,
4706,
18952,
29918,
3493,
353,
7442,
29889,
1359,
703,
29894,
4769,
29918,
3493,
29995,
29881,
29889,
9302,
29920,
29908,
1273,
6287,
29918,
2248,
29897,
1839,
2749,
29918,
29900,
2033,
13,
4706,
379,
29950,
353,
7442,
29889,
1359,
703,
27590,
29995,
29881,
29889,
9302,
29920,
29908,
1273,
6287,
29918,
2248,
29897,
1839,
2749,
29918,
29900,
2033,
13,
4706,
736,
18952,
29918,
3493,
29892,
379,
29950,
13,
1678,
5174,
29901,
13,
4706,
3619,
29889,
11862,
11816,
2392,
11591,
580,
13,
13,
1678,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
364,
29918,
3425,
29879,
29918,
8336,
353,
1273,
29879,
29908,
1273,
13,
462,
3986,
851,
29898,
29878,
29918,
3425,
29879,
29918,
8336,
876,
13,
4706,
3619,
29889,
11862,
11816,
29898,
13,
9651,
376,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
7431,
29898,
29878,
29918,
8222,
2029,
29879,
29897,
353,
1273,
29881,
29908,
1273,
7431,
29898,
29878,
29918,
8222,
2029,
29879,
876,
13,
4706,
3619,
29889,
11862,
11816,
29898,
13,
9651,
376,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
364,
29918,
8222,
2029,
29879,
353,
1273,
29879,
29908,
1273,
851,
29898,
29878,
29918,
8222,
2029,
29879,
876,
13,
4706,
3619,
29889,
11862,
11816,
29898,
13,
9651,
376,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
3855,
29918,
8222,
2029,
29879,
353,
1273,
29879,
29908,
1273,
851,
29898,
29939,
29918,
8222,
2029,
29879,
876,
13,
4706,
3619,
29889,
11862,
11816,
29898,
13,
9651,
376,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
22821,
29918,
386,
12268,
353,
1273,
29879,
29908,
1273,
851,
29898,
13,
18884,
22821,
29918,
386,
12268,
876,
13,
4706,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
380,
29918,
386,
12268,
353,
1273,
29879,
29908,
1273,
851,
29898,
13,
9651,
380,
29918,
386,
12268,
876,
13,
4706,
3619,
29889,
11862,
11816,
29898,
13,
9651,
376,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
599,
29918,
333,
353,
1273,
29879,
29908,
1273,
851,
29898,
497,
29918,
333,
876,
13,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
599,
29918,
333,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
13,
9651,
851,
29898,
497,
29918,
333,
29889,
12181,
4961,
13,
4706,
3619,
29889,
11862,
11816,
29898,
13,
9651,
376,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
5665,
353,
1273,
29879,
29908,
1273,
851,
29898,
16506,
876,
13,
4706,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
274,
1336,
29918,
15581,
353,
1273,
29879,
29908,
1273,
851,
29898,
29883,
1336,
29918,
15581,
876,
13,
13,
1678,
260,
29896,
353,
5785,
29898,
11023,
29906,
29889,
657,
29911,
860,
3981,
3101,
13,
13,
1678,
565,
6287,
29918,
2248,
1405,
7814,
29901,
13,
4706,
4974,
6287,
29918,
2248,
5277,
7814,
13,
13,
1678,
396,
14402,
29901,
2125,
714,
364,
29881,
29918,
2962,
13,
1678,
364,
29881,
29918,
2962,
353,
29871,
29900,
13,
1678,
364,
29881,
29918,
355,
353,
7431,
29898,
29878,
29918,
8222,
2029,
29879,
29897,
448,
29871,
29896,
13,
13,
1678,
432,
353,
29871,
29896,
13,
13,
1678,
9995,
13,
1678,
512,
1028,
2859,
515,
13,
418,
2045,
597,
2417,
29889,
510,
29914,
2619,
29914,
29896,
29955,
29945,
29945,
29929,
29896,
29946,
29900,
29914,
2922,
8205,
29899,
7516,
625,
29899,
294,
29899,
11255,
29899,
294,
29899,
23749,
13,
4706,
350,
2692,
1838,
29915,
29873,
1371,
297,
445,
1206,
29901,
13,
1678,
18952,
29918,
3493,
353,
7442,
29889,
294,
3921,
661,
2378,
29898,
9302,
29889,
3298,
359,
29898,
313,
2435,
29898,
29934,
29928,
511,
7431,
29898,
29984,
29928,
876,
29871,
876,
13,
1678,
9995,
13,
1678,
18952,
29918,
3493,
353,
7442,
29889,
3298,
359,
3552,
2435,
29898,
29878,
29918,
8222,
2029,
29879,
511,
7431,
29898,
29939,
29918,
8222,
2029,
29879,
4961,
13,
13,
1678,
396,
8561,
263,
8359,
3509,
310,
379,
29950,
515,
18952,
29918,
3493,
856,
13,
1678,
396,
14402,
29901,
671,
14861,
29979,
15349,
1584,
7442,
29889,
11227,
448,
6323,
2125,
372,
714,
13,
1678,
379,
29950,
353,
7442,
29889,
3298,
359,
3552,
2435,
29898,
29878,
29918,
8222,
2029,
29879,
511,
7431,
29898,
29939,
29918,
8222,
2029,
29879,
8243,
26688,
29922,
9302,
29889,
524,
29947,
29897,
13,
13,
1678,
396,
372,
6911,
304,
1207,
901,
9406,
278,
16897,
408,
278,
6287,
5771,
701,
13,
1678,
304,
9306,
353,
29871,
29900,
29889,
29896,
448,
5785,
29898,
7052,
29918,
2248,
29897,
847,
29871,
29896,
29900,
29900,
29889,
29900,
13,
13,
1678,
4236,
2218,
353,
29871,
29941,
718,
6287,
29918,
2248,
13,
1678,
4236,
4170,
353,
29871,
29900,
29889,
29906,
29945,
13,
13,
1678,
396,
14402,
29901,
306,
626,
773,
6674,
307,
985,
292,
29889,
29925,
3028,
322,
736,
18952,
278,
13916,
261,
13,
1678,
396,
29871,
24367,
793,
278,
2582,
29892,
541,
278,
2582,
526,
6058,
278,
1021,
411,
278,
7797,
13,
1678,
396,
29871,
1206,
448,
5998,
896,
1106,
5051,
27189,
29892,
541,
896,
2833,
304,
367,
13,
1678,
396,
29871,
1014,
3670,
3039,
448,
270,
29886,
29918,
744,
29916,
3639,
1014,
3670,
3039,
3438,
2224,
363,
13,
1678,
396,
29871,
501,
1660,
29918,
29924,
8647,
13054,
16310,
4214,
1275,
5852,
2012,
310,
7700,
29889,
13,
1678,
396,
308,
313,
9842,
29901,
2734,
1090,
278,
1021,
758,
1116,
2187,
13,
1678,
396,
632,
1773,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
306,
2355,
278,
1021,
2582,
297,
270,
29886,
29918,
744,
29916,
2141,
13,
1678,
9995,
13,
1678,
565,
7700,
29901,
396,
2917,
29889,
17171,
29918,
29924,
8647,
13054,
16310,
4214,
1275,
5852,
29901,
13,
4706,
5534,
330,
13,
4706,
330,
29889,
29878,
29918,
3425,
29879,
29918,
8336,
353,
364,
29918,
3425,
29879,
29918,
8336,
13,
4706,
330,
29889,
29878,
29918,
8222,
2029,
29879,
353,
364,
29918,
8222,
2029,
29879,
13,
4706,
330,
29889,
29939,
29918,
8222,
2029,
29879,
353,
3855,
29918,
8222,
2029,
29879,
13,
4706,
330,
29889,
3487,
29918,
386,
12268,
353,
22821,
29918,
386,
12268,
13,
4706,
330,
29889,
303,
29918,
386,
12268,
353,
380,
29918,
386,
12268,
13,
4706,
330,
29889,
497,
29918,
4170,
353,
599,
29918,
4170,
13,
4706,
330,
29889,
497,
29918,
333,
353,
599,
29918,
333,
13,
4706,
330,
29889,
497,
29918,
3317,
353,
599,
29918,
3317,
13,
4706,
330,
29889,
497,
29918,
10278,
353,
599,
29918,
10278,
13,
4706,
330,
29889,
17639,
353,
7814,
13,
4706,
330,
29889,
7052,
29918,
2248,
353,
6287,
29918,
2248,
13,
4706,
330,
29889,
29883,
1336,
29918,
15581,
353,
274,
1336,
29918,
15581,
13,
4706,
330,
29889,
16506,
353,
5665,
13,
4706,
330,
29889,
29934,
29928,
29918,
2962,
353,
390,
29928,
29918,
2962,
13,
4706,
330,
29889,
29934,
29928,
29918,
355,
353,
390,
29928,
29918,
355,
13,
4706,
330,
29889,
3317,
2218,
353,
4236,
2218,
13,
4706,
330,
29889,
3317,
4170,
353,
4236,
4170,
13,
4706,
330,
29889,
25027,
414,
353,
304,
9306,
13,
13,
4706,
396,
4763,
15645,
10174,
304,
671,
373,
2473,
29899,
3221,
21433,
313,
519,
304,
1065,
13,
4706,
396,
259,
297,
8943,
448,
694,
402,
6227,
2228,
565,
1269,
7136,
756,
372,
29915,
29879,
1914,
11400,
29897,
13,
268,
13,
4706,
11565,
353,
6674,
307,
985,
292,
29889,
11426,
29898,
5014,
267,
29922,
2917,
29889,
1949,
7032,
267,
29897,
13,
4706,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
1706,
18101,
287,
263,
11565,
310,
1273,
29881,
17162,
29908,
1273,
13,
462,
18884,
2295,
29889,
1949,
7032,
267,
29897,
13,
13,
4706,
1051,
9629,
353,
3464,
29898,
29900,
29892,
7431,
29898,
29939,
29918,
8222,
2029,
29879,
876,
396,
6824,
6824,
4986,
3970,
29901,
671,
6795,
14448,
29892,
2295,
29889,
2344,
4308,
29961,
2248,
15167,
29962,
13,
13,
4706,
396,
690,
353,
11565,
29889,
1958,
29898,
1524,
362,
29918,
1689,
18785,
29918,
28466,
29878,
29892,
1051,
9629,
29897,
13,
4706,
396,
2823,
2045,
597,
2640,
29889,
4691,
29889,
990,
29914,
29906,
29914,
5258,
29914,
18056,
307,
985,
292,
29889,
1420,
29937,
5453,
29899,
18056,
307,
985,
292,
29889,
10109,
13,
4706,
620,
353,
11565,
29889,
1958,
29898,
9891,
29922,
1524,
362,
29918,
1689,
18785,
29918,
28466,
29878,
29892,
4256,
519,
29922,
1761,
9629,
29892,
13,
462,
539,
521,
18801,
675,
29922,
29896,
29897,
13,
13,
4706,
1596,
703,
11426,
29889,
1958,
3639,
1273,
29879,
29908,
1273,
851,
29898,
690,
876,
396,
29916,
29900,
29889,
2311,
718,
29871,
29896,
13,
13,
4706,
396,
3645,
2045,
597,
27891,
29889,
510,
29914,
25237,
29899,
386,
886,
29899,
265,
29899,
1552,
29899,
14168,
300,
29914,
29946,
29900,
29872,
29929,
29890,
29906,
29890,
29941,
29953,
29896,
29946,
29947,
13,
4706,
396,
1678,
3802,
278,
11565,
322,
4480,
363,
278,
664,
304,
8341,
13,
4706,
11565,
29889,
5358,
580,
13,
4706,
11565,
29889,
7122,
580,
13,
13,
4706,
396,
1938,
292,
278,
376,
17469,
29908,
8576,
1156,
278,
17162,
505,
7743,
4248,
13,
4706,
4974,
7431,
29898,
690,
29897,
1275,
7431,
29898,
29939,
29918,
8222,
2029,
29879,
29897,
13,
4706,
363,
2346,
29918,
2557,
29892,
620,
29923,
297,
26985,
29898,
690,
1125,
13,
9651,
620,
29923,
3220,
353,
620,
29923,
29961,
29900,
29962,
13,
9651,
620,
29923,
353,
620,
29923,
29961,
29896,
29962,
13,
9651,
4974,
620,
29923,
3220,
1275,
2346,
29918,
2557,
13,
9651,
396,
402,
3145,
29901,
376,
1917,
2392,
29901,
1962,
1751,
392,
6858,
263,
20376,
29892,
541,
20376,
338,
451,
9615,
29908,
13,
9651,
396,
29894,
4769,
29918,
3493,
7503,
29892,
2346,
29918,
2557,
448,
29871,
29896,
29962,
353,
18952,
13,
9651,
18952,
29918,
3493,
7503,
29892,
2346,
29918,
2557,
29962,
353,
620,
29923,
13,
13,
4706,
363,
2346,
29918,
2557,
297,
3464,
29898,
2435,
29898,
29939,
29918,
8222,
2029,
29879,
22164,
13,
9651,
565,
274,
1336,
29918,
15581,
1275,
29871,
29900,
29901,
13,
18884,
379,
29950,
7503,
29892,
2346,
29918,
2557,
29962,
353,
29871,
29896,
13,
9651,
1683,
29901,
13,
18884,
379,
29950,
7503,
29892,
2346,
29918,
2557,
29962,
353,
18652,
29918,
3200,
391,
3819,
29889,
1028,
15238,
29918,
3200,
391,
3819,
29898,
3493,
29918,
3594,
29892,
13,
462,
462,
9651,
3855,
10278,
29892,
7431,
29898,
29878,
29918,
8222,
2029,
29879,
511,
380,
29918,
386,
12268,
29892,
274,
1336,
29918,
15581,
29897,
13,
13,
4706,
1018,
29901,
13,
9651,
7442,
29889,
7620,
29920,
29918,
510,
13120,
703,
29894,
4769,
29918,
3493,
29995,
29881,
29908,
1273,
6287,
29918,
2248,
29892,
18952,
29918,
3493,
29897,
13,
9651,
7442,
29889,
7620,
29920,
29918,
510,
13120,
703,
27590,
29995,
29881,
29908,
1273,
6287,
29918,
2248,
29892,
379,
29950,
29897,
13,
4706,
5174,
29901,
13,
9651,
3619,
29889,
11862,
11816,
2392,
11591,
580,
13,
13,
4706,
736,
18952,
29918,
3493,
29892,
379,
29950,
13,
4706,
9995,
13,
13,
1678,
9995,
13,
1678,
1334,
23764,
3855,
448,
29871,
29896,
411,
3855,
29892,
1951,
591,
864,
13,
418,
304,
1353,
7049,
515,
29871,
29900,
313,
1333,
515,
29871,
29896,
763,
297,
5345,
8205,
467,
13,
1678,
9995,
13,
1678,
363,
2346,
29918,
2557,
297,
3464,
29898,
2435,
29898,
29939,
29918,
8222,
2029,
29879,
22164,
13,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
23748,
12541,
376,
13,
462,
3986,
376,
1972,
29918,
2557,
353,
1273,
29881,
29908,
1273,
2346,
29918,
2557,
29897,
13,
13,
4706,
9995,
13,
4706,
1334,
1207,
6499,
3407,
278,
7429,
2473,
8222,
2029,
1051,
363,
278,
2346,
4863,
13,
965,
3515,
2346,
29918,
2557,
13,
4706,
9995,
13,
4706,
6499,
353,
3855,
29918,
8222,
2029,
29879,
29961,
1972,
29918,
2557,
29962,
13,
13,
4706,
3291,
353,
6499,
29961,
407,
7503,
29892,
29871,
29906,
29962,
1275,
6287,
29918,
2248,
29892,
29871,
29900,
29901,
29906,
29962,
13,
4706,
3855,
449,
29892,
3855,
10278,
29892,
3855,
3317,
2218,
29892,
3855,
4170,
353,
1284,
3425,
29879,
29889,
2886,
3425,
29879,
29898,
9748,
29892,
22821,
29918,
386,
12268,
29892,
29871,
29900,
29897,
13,
13,
4706,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
9651,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
2346,
29918,
2557,
353,
1273,
29881,
29892,
376,
13,
462,
29871,
376,
29939,
449,
29889,
12181,
313,
4537,
310,
439,
7925,
363,
2346,
3515,
2346,
29918,
2557,
29897,
353,
376,
13,
462,
29871,
11860,
29879,
29908,
1273,
313,
1972,
29918,
2557,
29892,
851,
29898,
29939,
449,
29889,
12181,
4961,
13,
13,
4706,
2913,
29918,
3594,
353,
7442,
29889,
3298,
359,
3552,
29939,
10278,
29889,
12181,
29961,
29900,
1402,
29871,
29906,
334,
7431,
29898,
29878,
29918,
8222,
2029,
29879,
4961,
718,
7442,
29889,
13707,
13,
4706,
18952,
353,
7442,
29889,
3298,
359,
3552,
2435,
29898,
29878,
29918,
8222,
2029,
29879,
511,
29871,
29896,
876,
13,
13,
4706,
4974,
338,
8758,
29898,
25027,
414,
29892,
5785,
29897,
13,
13,
4706,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
9651,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
439,
7925,
310,
2346,
376,
13,
462,
795,
376,
2557,
1273,
29881,
526,
29901,
376,
1273,
2346,
29918,
2557,
29897,
13,
9651,
3619,
29889,
11862,
11816,
703,
29871,
3855,
449,
353,
1273,
29879,
29908,
1273,
851,
29898,
29939,
449,
876,
13,
13,
4706,
9995,
13,
4706,
4827,
29901,
363,
1269,
18890,
313,
29946,
5685,
1446,
29897,
310,
278,
2346,
3515,
515,
20349,
4682,
310,
13,
4706,
6287,
6287,
29918,
2248,
13,
3986,
3940,
29901,
599,
29918,
333,
14422,
278,
3407,
3515,
1178,
363,
1269,
18890,
553,
11709,
29889,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
1334,
23764,
2346,
4308,
2182,
328,
448,
29871,
29896,
411,
2346,
4308,
2182,
328,
29892,
1951,
591,
864,
13,
9651,
304,
1353,
7049,
515,
29871,
29900,
313,
1333,
515,
29871,
29896,
763,
297,
5345,
8205,
467,
13,
4706,
9995,
13,
4706,
363,
2346,
4308,
2182,
328,
297,
3464,
29898,
29939,
449,
29889,
12181,
29961,
29900,
29962,
1125,
13,
9651,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
23748,
12541,
376,
13,
462,
795,
376,
1972,
4308,
2182,
328,
353,
1273,
29881,
29908,
1273,
2346,
4308,
2182,
328,
29897,
13,
9651,
9995,
13,
9651,
5345,
8205,
29915,
29879,
24324,
28611,
338,
2289,
6494,
3460,
1244,
29901,
5998,
372,
29915,
29879,
13,
18884,
12891,
263,
5785,
29892,
304,
9306,
338,
5545,
304,
367,
263,
2159,
29871,
29896,
4608,
856,
13,
18884,
577,
7431,
29898,
25027,
414,
29897,
1275,
29871,
29896,
13,
9651,
9995,
13,
9651,
9995,
13,
9651,
1334,
23764,
304,
29880,
29918,
29875,
448,
29871,
29896,
411,
304,
29880,
29892,
1951,
591,
864,
13,
18884,
304,
1353,
7049,
515,
29871,
29900,
313,
1333,
515,
29871,
29896,
763,
297,
5345,
8205,
467,
13,
9651,
9995,
13,
9651,
363,
304,
29880,
29918,
29875,
297,
3464,
29898,
29896,
1125,
13,
18884,
304,
29880,
353,
304,
9306,
13,
13,
18884,
396,
2322,
363,
937,
349,
5194,
29902,
411,
304,
29880,
29922,
29871,
29900,
29889,
29896,
14235,
13,
18884,
396,
6058,
29923,
29901,
5636,
19737,
29915,
29879,
476,
29928,
9643,
14061,
263,
2846,
901,
2582,
29892,
297,
777,
4251,
29892,
13,
18884,
396,
1678,
1135,
278,
5345,
8205,
775,
515,
21827,
333,
275,
29889,
13,
18884,
396,
304,
29880,
338,
263,
17336,
15783,
278,
11855,
310,
278,
8287,
13,
18884,
565,
2295,
29889,
29968,
12972,
21661,
29918,
29902,
3580,
1307,
13780,
8098,
1275,
29871,
29900,
29901,
13,
462,
1678,
22645,
353,
364,
29918,
3425,
29879,
29918,
8336,
29889,
1972,
29918,
2135,
29918,
3149,
29898,
29939,
449,
29961,
1972,
4308,
2182,
328,
29892,
584,
1402,
13,
462,
462,
462,
4706,
304,
29880,
29897,
13,
18884,
25342,
2295,
29889,
29968,
12972,
21661,
29918,
29902,
3580,
1307,
13780,
8098,
1275,
29871,
29896,
29901,
13,
462,
1678,
19592,
353,
3855,
449,
29961,
1972,
4308,
2182,
328,
29892,
584,
29962,
13,
462,
1678,
19592,
353,
7442,
29889,
2378,
4197,
29961,
415,
29961,
29900,
1402,
19592,
29961,
29896,
1402,
19592,
29961,
29906,
1402,
19592,
29961,
29941,
5262,
1402,
13,
462,
462,
29871,
26688,
29922,
9302,
29889,
7411,
29941,
29906,
29897,
13,
462,
1678,
3240,
791,
29892,
22645,
29892,
1320,
29879,
353,
364,
29918,
3425,
29879,
29918,
8336,
29889,
13471,
7974,
29898,
13,
462,
4706,
2346,
29922,
415,
29892,
13,
462,
4706,
11855,
7607,
25027,
3579,
29871,
29906,
511,
13,
462,
4706,
4236,
12191,
29922,
13967,
29918,
12648,
29918,
29923,
1307,
4345,
29892,
13,
462,
4706,
8636,
29922,
4478,
29918,
7529,
29897,
13,
462,
1678,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
13471,
7974,
29915,
29879,
3240,
791,
313,
271,
376,
13,
462,
462,
3986,
376,
1972,
29918,
2557,
16328,
29881,
29892,
2346,
4308,
2182,
328,
16328,
29881,
29897,
376,
13,
462,
462,
3986,
376,
275,
1273,
29881,
29908,
1273,
13,
462,
462,
3986,
313,
1972,
29918,
2557,
29892,
2346,
4308,
2182,
328,
29892,
3240,
791,
876,
13,
462,
1678,
22645,
353,
22645,
29961,
29900,
29962,
13,
462,
1678,
1320,
29879,
353,
1320,
29879,
29961,
29900,
29962,
13,
462,
1678,
9995,
13,
462,
1678,
3940,
29901,
3240,
791,
338,
278,
1353,
310,
22092,
943,
4133,
515,
278,
29871,
13,
462,
1678,
11855,
7974,
2141,
13,
462,
1678,
1205,
278,
22645,
322,
278,
1320,
29879,
508,
505,
901,
3161,
1135,
278,
13,
462,
1678,
4133,
3240,
791,
29889,
13,
462,
1678,
9995,
13,
462,
1678,
22645,
353,
22645,
7503,
3240,
791,
29962,
13,
462,
1678,
1320,
29879,
353,
1320,
29879,
7503,
3240,
791,
29962,
13,
13,
18884,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
1678,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
3986,
376,
29939,
449,
29961,
1972,
4308,
2182,
328,
29892,
584,
29962,
353,
1273,
29879,
29908,
1273,
13,
462,
3986,
851,
29898,
29939,
449,
29961,
1972,
4308,
2182,
328,
29892,
584,
12622,
13,
462,
1678,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
3986,
376,
13140,
353,
1273,
29879,
29908,
1273,
851,
29898,
13140,
876,
13,
462,
1678,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
3986,
376,
29881,
2879,
353,
1273,
29879,
29908,
1273,
851,
29898,
29881,
2879,
876,
13,
462,
1678,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
3986,
376,
25027,
353,
1273,
29879,
29908,
1273,
851,
29898,
25027,
876,
13,
462,
1678,
565,
2295,
29889,
29968,
12972,
21661,
29918,
29902,
3580,
1307,
13780,
8098,
1275,
29871,
29900,
29901,
13,
462,
4706,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
795,
376,
29878,
29918,
3425,
29879,
29918,
8336,
29889,
1272,
29961,
13140,
29962,
353,
1273,
29879,
29908,
1273,
13,
462,
795,
851,
29898,
29878,
29918,
3425,
29879,
29918,
8336,
29889,
1272,
29961,
13140,
12622,
13,
13,
18884,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
1678,
263,
353,
3855,
449,
29961,
1972,
4308,
2182,
328,
29892,
584,
29962,
13,
462,
1678,
565,
2295,
29889,
29968,
12972,
21661,
29918,
29902,
3580,
1307,
13780,
8098,
1275,
29871,
29900,
29901,
13,
462,
4706,
363,
590,
29902,
29892,
2380,
297,
26985,
29898,
13140,
1125,
13,
462,
9651,
289,
353,
364,
29918,
3425,
29879,
29918,
8336,
29889,
1272,
29961,
2248,
29962,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
1209,
13,
18884,
22645,
353,
7442,
29889,
2378,
29898,
13140,
29897,
13,
13,
18884,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
497,
29918,
3317,
29889,
12181,
353,
1273,
29879,
29908,
1273,
851,
29898,
497,
29918,
3317,
29889,
12181,
876,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
29939,
3317,
2218,
29889,
12181,
353,
1273,
29879,
29908,
1273,
851,
29898,
29939,
3317,
2218,
29889,
12181,
876,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
29939,
3317,
2218,
353,
1273,
29879,
29908,
1273,
851,
29898,
29939,
3317,
2218,
876,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
29939,
4170,
29889,
12181,
353,
1273,
29879,
29908,
1273,
851,
29898,
29939,
4170,
29889,
12181,
876,
13,
462,
1678,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
418,
376,
29939,
4170,
353,
1273,
29879,
29908,
1273,
851,
29898,
29939,
4170,
876,
13,
13,
18884,
565,
7431,
29898,
13140,
29897,
1275,
29871,
29900,
29901,
13,
462,
1678,
396,
6058,
319,
21947,
13668,
15004,
29909,
29901,
6773,
13,
462,
1678,
766,
29918,
13140,
353,
7442,
29889,
2378,
4197,
2314,
13,
462,
1678,
470,
29875,
29918,
13140,
353,
7442,
29889,
2378,
4197,
2314,
13,
18884,
1683,
29901,
13,
462,
1678,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
4706,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
795,
376,
1972,
4308,
2182,
328,
353,
1273,
29879,
29908,
1273,
851,
29898,
1972,
4308,
2182,
328,
876,
13,
462,
4706,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
795,
376,
497,
29918,
3317,
29961,
13140,
29962,
353,
1273,
29879,
29908,
1273,
851,
29898,
497,
29918,
3317,
29961,
13140,
12622,
13,
462,
4706,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
795,
376,
29939,
3317,
2218,
29961,
1972,
4308,
2182,
328,
29962,
353,
1273,
29879,
29908,
1273,
13,
462,
795,
851,
29898,
29939,
3317,
2218,
29961,
1972,
4308,
2182,
328,
12622,
13,
13,
462,
1678,
565,
501,
1660,
29918,
29954,
7024,
29918,
3217,
25593,
1177,
1299,
2890,
29901,
13,
462,
4706,
396,
1334,
1106,
871,
472,
263,
760,
310,
278,
3407,
4863,
13,
462,
4706,
9995,
13,
462,
4706,
4001,
297,
777,
4251,
278,
4863,
25406,
22239,
338,
13,
462,
9651,
5189,
304,
437,
2861,
304,
2788,
2011,
1080,
297,
278,
13,
462,
9651,
23324,
706,
313,
4149,
278,
4192,
650,
19707,
29892,
20102,
29871,
29941,
29918,
5372,
29918,
433,
446,
29897,
13,
462,
9651,
591,
376,
13075,
29908,
278,
25406,
22239,
491,
9250,
292,
13,
462,
9651,
278,
3407,
3515,
2740,
2913,
448,
445,
338,
5407,
13,
462,
9651,
746,
591,
505,
278,
1737,
324,
10610,
313,
29954,
7024,
29897,
14821,
363,
13,
462,
9651,
1269,
3515,
29889,
13,
462,
4706,
9995,
13,
462,
4706,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
9651,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
29871,
376,
497,
29918,
333,
353,
1273,
29879,
29908,
1273,
851,
29898,
497,
29918,
333,
876,
13,
13,
462,
4706,
565,
599,
29918,
333,
29889,
299,
326,
1275,
29871,
29906,
29901,
13,
462,
9651,
396,
14402,
29901,
1925,
445,
472,
278,
6763,
310,
278,
13,
462,
9651,
396,
29871,
740,
13,
462,
9651,
4974,
599,
29918,
333,
29889,
12181,
29961,
29896,
29962,
1275,
29871,
29896,
13,
462,
9651,
9995,
13,
462,
9651,
1334,
1652,
8606,
278,
1409,
599,
29918,
333,
13,
462,
795,
3940,
29901,
1334,
1016,
29915,
29873,
671,
1797,
543,
29943,
29908,
1951,
372,
29915,
29879,
13,
462,
462,
1678,
8830,
29871,
29896,
29899,
29928,
1409,
13,
462,
9651,
9995,
13,
462,
9651,
599,
29918,
333,
353,
7442,
29889,
336,
955,
29898,
497,
29918,
333,
29897,
13,
13,
462,
4706,
396,
14402,
29901,
1925,
1369,
322,
1095,
3515,
297,
2295,
448,
470,
10272,
13,
462,
4706,
396,
29871,
372,
515,
1737,
324,
10610,
13,
462,
4706,
1014,
29918,
13140,
353,
7442,
29889,
1188,
936,
29918,
392,
3552,
497,
29918,
333,
29961,
13140,
29962,
6736,
29871,
29906,
29900,
29941,
29900,
448,
29871,
29929,
29906,
29947,
511,
13,
462,
462,
462,
313,
497,
29918,
333,
29961,
13140,
29962,
5277,
29871,
29906,
29946,
29900,
29900,
448,
29871,
29929,
29906,
29947,
876,
13,
462,
4706,
22645,
353,
22645,
29961,
1491,
29918,
13140,
29962,
13,
13,
462,
4706,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
9651,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
29871,
376,
497,
29918,
333,
353,
1273,
29879,
29908,
1273,
851,
29898,
497,
29918,
333,
876,
13,
462,
9651,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
29871,
376,
1491,
29918,
13140,
353,
1273,
29879,
29908,
1273,
851,
29898,
1491,
29918,
13140,
876,
13,
462,
9651,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
29871,
376,
13140,
353,
1273,
29879,
29908,
1273,
851,
29898,
13140,
876,
13,
13,
462,
1678,
565,
383,
6227,
4945,
29901,
13,
462,
4706,
766,
29918,
13140,
353,
7442,
29889,
6897,
29898,
13,
462,
9651,
3855,
3317,
2218,
29961,
1972,
4308,
2182,
328,
29962,
448,
599,
29918,
3317,
29961,
13140,
2314,
529,
4236,
2218,
13,
13,
462,
4706,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
9651,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
795,
376,
2218,
29918,
13140,
353,
1273,
29879,
29908,
1273,
851,
29898,
2218,
29918,
13140,
876,
13,
13,
462,
4706,
22645,
353,
22645,
29961,
2218,
29918,
13140,
29962,
13,
13,
462,
1678,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
13140,
313,
7045,
22645,
353,
22645,
29961,
2218,
29918,
13140,
2314,
353,
376,
13,
462,
462,
3986,
11860,
29879,
29908,
1273,
851,
29898,
13140,
876,
13,
13,
462,
1678,
565,
383,
6227,
4945,
29901,
13,
462,
4706,
470,
29875,
29918,
13140,
353,
7442,
29889,
6897,
29898,
13,
462,
9651,
3855,
4170,
29961,
1972,
4308,
2182,
328,
29962,
448,
599,
29918,
4170,
29961,
13140,
2314,
529,
4236,
4170,
13,
13,
462,
4706,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
9651,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
795,
376,
4170,
29918,
13140,
353,
1273,
29879,
29908,
1273,
851,
29898,
4170,
29918,
13140,
876,
13,
13,
462,
4706,
22645,
353,
22645,
29961,
4170,
29918,
13140,
29962,
13,
13,
18884,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
18884,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
18884,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
18884,
396,
805,
20819,
29899,
1356,
1971,
284,
5718,
3819,
13,
18884,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
18884,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
18884,
396,
306,
3580,
8476,
13566,
835,
13383,
13383,
13383,
13,
13,
18884,
565,
22645,
29889,
2311,
1405,
29871,
29900,
29901,
13,
462,
1678,
565,
274,
1336,
29918,
15581,
1275,
29871,
29900,
29901,
13,
462,
4706,
565,
383,
6227,
4945,
29901,
13,
462,
9651,
9995,
13,
462,
9651,
4827,
29901,
445,
338,
263,
2560,
8792,
310,
10397,
1218,
29871,
13,
462,
9651,
7700,
10321,
3321,
313,
26353,
29897,
7087,
29892,
408,
9132,
297,
29871,
13,
462,
9651,
9779,
29871,
29946,
29889,
29906,
310,
323,
29925,
5194,
29902,
29871,
29906,
29900,
29896,
29941,
5650,
29889,
13,
462,
9651,
13702,
372,
18094,
714,
18890,
7087,
393,
505,
13,
462,
9651,
1644,
1007,
29879,
380,
29918,
386,
12268,
3448,
515,
278,
2346,
18890,
29889,
13,
462,
9651,
3940,
29901,
599,
29918,
10278,
526,
278,
640,
1007,
29879,
310,
599,
3407,
13,
462,
18884,
439,
7925,
29889,
13,
462,
9651,
9995,
13,
462,
9651,
13475,
353,
3855,
10278,
29961,
1972,
4308,
2182,
328,
29892,
29871,
29900,
29962,
448,
599,
29918,
10278,
29961,
13140,
29892,
29871,
29900,
29962,
13,
462,
9651,
15414,
353,
3855,
10278,
29961,
1972,
4308,
2182,
328,
29892,
29871,
29896,
29962,
448,
599,
29918,
10278,
29961,
13140,
29892,
29871,
29896,
29962,
13,
462,
9651,
360,
353,
13475,
3579,
29871,
29906,
718,
15414,
3579,
29871,
29906,
13,
462,
9651,
1302,
29918,
13140,
353,
360,
529,
4764,
29898,
303,
29918,
386,
12268,
29892,
29871,
29906,
29897,
13,
462,
9651,
22645,
353,
22645,
29961,
1111,
29918,
13140,
29962,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
9995,
13,
462,
4706,
1334,
23764,
474,
2236,
448,
29871,
29896,
411,
474,
2236,
29892,
1951,
591,
864,
13,
462,
9651,
304,
1353,
7049,
515,
29871,
29900,
313,
1333,
515,
29871,
29896,
763,
297,
5345,
8205,
467,
13,
462,
4706,
9995,
13,
462,
4706,
363,
474,
2236,
297,
3464,
29898,
2435,
29898,
13140,
22164,
13,
462,
9651,
2913,
29918,
3594,
29961,
1972,
4308,
2182,
328,
29892,
13,
462,
9651,
313,
497,
29918,
333,
29961,
13140,
29961,
25609,
5262,
448,
364,
29881,
29918,
2962,
29897,
334,
29871,
29906,
29901,
313,
497,
29918,
333,
29961,
13140,
29961,
13,
462,
18884,
474,
2236,
29962,
448,
29871,
29896,
29962,
448,
364,
29881,
29918,
2962,
29897,
334,
29871,
29906,
718,
29871,
29896,
29962,
353,
320,
13,
462,
18884,
599,
29918,
10278,
29961,
13140,
29961,
25609,
1402,
584,
29962,
13,
13,
462,
1678,
396,
739,
756,
304,
367,
385,
7442,
29889,
2378,
1363,
591,
22932,
372,
411,
263,
13,
462,
1678,
396,
17336,
13,
462,
1678,
298,
5137,
29918,
3881,
353,
7442,
29889,
2378,
29898,
3881,
29898,
5499,
29918,
2962,
29892,
364,
29881,
29918,
355,
718,
29871,
29896,
876,
13,
462,
1678,
298,
29882,
353,
5345,
8205,
29889,
29882,
391,
29898,
29916,
29922,
497,
29918,
333,
29961,
13140,
1402,
9016,
23369,
414,
29922,
29882,
5137,
29918,
3881,
29897,
13,
13,
462,
1678,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
25446,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
25446,
4961,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
25446,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
25446,
29889,
12181,
4961,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
497,
29918,
333,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
13,
462,
462,
795,
851,
29898,
497,
29918,
333,
29889,
12181,
4961,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
13140,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
13140,
4961,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
13140,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
13140,
29889,
12181,
4961,
13,
13,
462,
1678,
396,
1273,
302,
29920,
508,
367,
15712,
901,
5994,
635,
13,
462,
1678,
302,
29920,
353,
7442,
29889,
5464,
9171,
29898,
25446,
2804,
29871,
29900,
9601,
29900,
29962,
13,
462,
1678,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
29876,
29920,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
29876,
29920,
4961,
13,
462,
4706,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
3986,
376,
29876,
29920,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
29876,
29920,
29889,
12181,
4961,
13,
13,
462,
1678,
565,
302,
29920,
29889,
2311,
1405,
29871,
29900,
29901,
13,
462,
4706,
590,
29918,
791,
353,
4764,
29898,
13,
462,
9651,
5844,
29889,
1188,
29896,
29900,
29898,
7411,
29898,
2435,
29898,
29878,
29918,
8222,
2029,
29879,
876,
847,
7431,
29898,
29876,
29920,
8243,
29871,
29906,
29897,
13,
13,
462,
4706,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
462,
9651,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
795,
376,
2435,
29898,
29878,
29918,
8222,
2029,
29879,
29897,
353,
1273,
29881,
29908,
1273,
7431,
29898,
13,
462,
462,
1669,
364,
29918,
8222,
2029,
29879,
876,
13,
462,
9651,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
795,
376,
2435,
29898,
29876,
29920,
29897,
353,
1273,
29881,
29908,
1273,
7431,
29898,
29876,
29920,
876,
13,
462,
9651,
3619,
29889,
11862,
11816,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
462,
795,
376,
1357,
29918,
791,
353,
18695,
29945,
29888,
29908,
1273,
590,
29918,
791,
29897,
13,
462,
4706,
396,
349,
1525,
29963,
5971,
3308,
16786,
13,
462,
4706,
18952,
29961,
29876,
29920,
29892,
304,
29880,
29918,
29875,
29962,
353,
18952,
29961,
29876,
29920,
29892,
304,
29880,
29918,
29875,
29962,
718,
590,
29918,
791,
13,
13,
4706,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
9651,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
376,
13,
462,
29871,
376,
29894,
4769,
29889,
12181,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
29894,
4769,
29889,
12181,
4961,
13,
9651,
565,
313,
9302,
29889,
6897,
29898,
29894,
4769,
29897,
529,
29871,
29896,
29889,
29900,
29872,
29899,
29896,
29900,
467,
497,
7295,
13,
18884,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
18952,
353,
29871,
29900,
313,
497,
24786,
25760,
13,
9651,
1683,
29901,
13,
18884,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
7295,
18952,
353,
1273,
29879,
29908,
1273,
313,
710,
29898,
29894,
4769,
4961,
13,
13,
4706,
396,
3940,
29901,
1951,
18952,
338,
8830,
263,
29871,
29896,
29899,
29928,
4608,
29892,
591,
1016,
29915,
29873,
671,
278,
13,
4706,
396,
7236,
661,
1797,
13,
4706,
18952,
29918,
3493,
7503,
29892,
2346,
29918,
2557,
29962,
353,
7442,
29889,
336,
955,
29898,
29894,
4769,
29897,
13,
13,
4706,
565,
274,
1336,
29918,
15581,
1275,
29871,
29900,
29901,
13,
9651,
379,
29950,
7503,
29892,
2346,
29918,
2557,
29962,
353,
29871,
29896,
13,
4706,
1683,
29901,
13,
9651,
379,
29950,
7503,
29892,
2346,
29918,
2557,
29962,
353,
18652,
29918,
3200,
391,
3819,
29889,
1028,
15238,
29918,
3200,
391,
3819,
29898,
13,
18884,
2913,
29918,
3594,
29892,
13,
18884,
3855,
10278,
29892,
7431,
29898,
29878,
29918,
8222,
2029,
29879,
511,
380,
29918,
386,
12268,
29892,
274,
1336,
29918,
15581,
29897,
13,
13,
1678,
565,
3619,
29889,
17870,
29918,
18525,
29918,
1254,
3970,
2692,
29901,
13,
4706,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
29898,
7052,
29918,
2248,
16328,
29881,
1125,
376,
13,
795,
376,
29894,
4769,
29918,
3493,
17313,
29876,
29995,
29879,
29908,
1273,
313,
7052,
29918,
2248,
29892,
851,
29898,
29894,
4769,
29918,
3493,
4961,
13,
13,
1678,
1018,
29901,
13,
4706,
7442,
29889,
7620,
29920,
29918,
510,
13120,
703,
29894,
4769,
29918,
3493,
29995,
29881,
29908,
1273,
6287,
29918,
2248,
29892,
18952,
29918,
3493,
29897,
13,
4706,
7442,
29889,
7620,
29920,
29918,
510,
13120,
703,
27590,
29995,
29881,
29908,
1273,
6287,
29918,
2248,
29892,
379,
29950,
29897,
13,
1678,
5174,
29901,
13,
4706,
3619,
29889,
11862,
11816,
2392,
11591,
580,
13,
13,
1678,
260,
29906,
353,
5785,
29898,
11023,
29906,
29889,
657,
29911,
860,
3981,
3101,
13,
1678,
590,
29918,
2230,
353,
313,
29873,
29906,
448,
260,
29896,
29897,
847,
13850,
29906,
29889,
657,
29911,
860,
23923,
23860,
580,
13,
1678,
1596,
703,
4713,
10669,
744,
29918,
3425,
29918,
276,
509,
16837,
580,
3614,
18695,
29953,
29888,
518,
3471,
18017,
1273,
590,
29918,
2230,
29897,
13,
13,
1678,
736,
18952,
29918,
3493,
29892,
379,
29950,
13,
2
] |
pyradmon/args.py | will-mccarty/pyradmon | 0 | 112904 | <filename>pyradmon/args.py
#!/usr/bin/env python
# PyRadmon - Python Radiance Monitoring Tool
# Copyright 2014 <NAME>.
#
# 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.
#
# Argument Parsing Library -
# library for parsing command line arguments
#
import argparse
import textwrap
import os
import sys
from _version import __version__
from core import *
import config
import config_printer
from config import SPECIAL_FIELDS
import log
import logging
try:
from collections import OrderedDict
except:
try:
from ordereddict import OrderedDict
except:
print "ERROR: OrderedDict not found! It is required to run this script."
sys.exit(1)
def add_args(parser, inherit, opts):
for opt in opts:
if inherit:
opts[opt]['help'] = argparse.SUPPRESS
opts[opt]['default'] = argparse.SUPPRESS
opt_opt = dict(opts[opt])
parser.add_argument(opt, **opt_opt)
def add_list_args(parser, inherit = False):
opts = OrderedDict()
opts['--data-single-date'] = \
{
'action' : 'store',
'metavar' : 'DATE',
'dest' : 'data_single_date',
'help' : 'Use single date. Format should be "YYYY-MM-DD HHz". Negates the options below specifying dates and times.',
}
opts['--data-path-format'] = \
{
'action' : 'store',
'metavar' : 'PATH_FORMAT',
'dest' : 'data_path_format',
'help' : 'Specify the path format for data.',
}
opts['--data-experiment-id'] = \
{
'action' : 'store',
'metavar' : 'EXPERIMENT_ID',
'dest' : 'data_experiment_id',
'help' : 'Specify the experiment ID for data.',
}
opts['--data-start-date'] = \
{
'action' : 'store',
'metavar' : 'DATE',
'dest' : 'data_start_date',
'help' : 'Specify the start date for data. Format should be "YYYY-MM-DD HHz".',
}
opts['--data-end-date'] = \
{
'action' : 'store',
'metavar' : 'DATE',
'dest' : 'data_end_date',
'help' : 'Specify the end date for data. Format should be "YYYY-MM-DD HHz".',
}
opts['--data-instrument-sat'] = \
{
'action' : 'store',
'metavar' : 'INSTRUMENT_SAT',
'dest' : 'data_instrument_sat',
'help' : 'Specify the instrument and satellite ID for data.',
}
opts['--data-step'] = \
{
'action' : 'store',
'metavar' : 'STEP_TYPE',
'dest' : 'data_step',
'help' : 'Specify the step/type for the data. "anl" and "ges" are allowed. If you wish to specify more than one, use a pipe to seperate them, e.g. "anl|ges".',
}
opts['--data-time-delta'] = \
{
'action' : 'store',
'metavar' : 'TIME_DELTA',
'dest' : 'data_time_delta',
'help' : """Specify the time interval for data. The time format is
expressed using the sleep command's format, "#U", where # is
a number and U is a letter representing a unit of time.""",
}
add_args(parser, inherit, opts)
def add_dump_args(parser, inherit = False):
opts = OrderedDict()
opts['--dump-columns'] = \
{
'action' : 'store',
'metavar' : 'COLUMNS',
'dest' : 'dump_columns',
'help' : 'Specify the columns to dump/use, separated by commas.',
}
opts['--dump-all-channels'] = \
{
'action' : 'store_true',
'dest' : 'dump_all_channels',
'help' : 'Specify to dump all channels. Negates the option below specifying channels to use.',
}
opts['--dump-channels'] = \
{
'action' : 'store',
'metavar' : 'CHANNELS',
'dest' : 'dump_channels',
'help' : 'Specify the channels to dump/use, separated by commas. Ranges are also acceptable.',
}
opts['--dump-assim-only'] = \
{
'action' : 'store_true',
'dest' : 'dump_assim_only',
'help' : 'Specify to use only assimilated data (iuse = 1).',
}
opts['--dump-suppress-warnings'] = \
{
'action' : 'store_true',
'dest' : 'dump_suppress_warnings',
'help' : 'Specify whether to suppress data warnings or not. This will hide important warnings about data inconsistencies, so only enable if you are 100%% sure that your data is valid!',
}
add_args(parser, inherit, opts)
def add_plot_args(parser, inherit = False):
opts = OrderedDict()
opts['--plot-define-plots'] = \
{
'action' : 'append',
'metavar' : 'PLOTS',
'dest' : 'plot_define_plots',
'help' : 'Define plots. Uses the value list system, specified by "plot1,plot2,plot3,...".',
}
opts['--plot-define-subplots'] = \
{
'action' : 'append',
'metavar' : 'SUBPLOTS',
'dest' : 'plot_define_subplots',
'help' : 'Define subplots. Uses the key-value pair system, specified by "plot1:subplot1,subplotid2,...;".',
}
opts['--plot-define-axes'] = \
{
'action' : 'append',
'metavar' : 'AXES',
'dest' : 'plot_define_axes',
'help' : 'Define axes for the subplot. Uses the key-value pair system, specified by "plot1|subplot1|y:ticks=5,label="test";...".',
}
opts['--plot-define-data'] = \
{
'action' : 'append',
'metavar' : 'DATA',
'dest' : 'plot_define_data',
'help' : 'Define data to be plotted in the subplot. Uses the key-value pair system, specified by "plot1|subplot1|x:data_field_1;plot1|subplot1|y:...".',
}
opts['--plot-define-title'] = \
{
'action' : 'append',
'metavar' : 'TITLE',
'dest' : 'plot_define_title',
'help' : 'Define the title for the plot, and optionally, subplot and legend. Uses the key-value pair system, specified by "plot1:title;plot1|subplot1:title;plot1|subplot1|legend:title;...".',
}
opts['--plot-define-output'] = \
{
'action' : 'append',
'metavar' : 'OUTPUT_FILE',
'dest' : 'plot_define_output',
'help' : 'Define the output file for the plot. Uses the key-value pair system, specified by "plot1:output_file.png;...".',
}
opts['--plot-define-settings'] = \
{
'action' : 'append',
'metavar' : 'SETTINGS',
'dest' : 'plot_define_settings',
'help' : 'Define the settings for the plot. Uses the key-value pair system, specified by "plot1:target_size=595x700,dpi=50;...".',
}
opts['--plot-define-custom-vars'] = \
{
'action' : 'append',
'metavar' : 'CUSTOM_VARS',
'dest' : 'plot_define_custom_vars',
'help' : 'Define the custom variables for use in the output file and title. Uses the key-value pair system, specified by "myvar:123,myvar2:abc,...".',
}
opts['--plot-make-dirs'] = \
{
'action' : 'store_true',
'dest' : 'plot_make_dirs',
'help' : 'Make directories if the specified output path does not exist.',
}
add_args(parser, inherit, opts)
def add_config_args(parser, inherit = False):
opts = OrderedDict()
opts['--config-display'] = \
{
'action' : 'store_true',
'dest' : 'config_display',
'help' : 'Displays the configuration.',
}
opts['--config-load'] = \
{
'action' : 'store',
'metavar' : 'FILE',
'dest' : 'config_load',
'help' : 'Load an existing configuration file. Note that this will override the main --config-file argument.',
}
opts['--config-save'] = \
{
'action' : 'store',
'metavar' : 'FILE',
'dest' : 'config_save',
'help' : 'Save the currently loaded configuration to a file. Note that saved configuration may not be placed in order.',
}
add_args(parser, inherit, opts)
def make_argparser():
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter, \
epilog = textwrap.dedent("""\
Logging levels, from least to most importance:
DEBUG, INFO, WARNING, ERROR, CRITICAL
Setting a logging level will show messages that meet and
exceed that level. For instance, setting INFO will show
INFO, WARNING, ERROR, and CRITICAL messages.
Priority modes:
DUMMYMP_GENEROUS - Generous mode. Very conservative about using any
CPU, and ensures that no one else is disrupted.
Note that this is VERY GENEROUS - if all CPUs are
taken, DummyMP will wait until there are
available CPUs! (All other modes will run a
single process, regardless of CPU usage.) This is
the slowest mode!
DUMMYMP_NORMAL - Normal mode. Careful not to take up too much
resources on the CPU, but it will try to get
things done. This is faster than GENEROUS, but it
isn't the fastest. This mode is the default and
is recommended for most conditions.
DUMMYMP_AGGRESSIVE - Aggressive mode. This mode considers other users,
but it may spawn processes anyway depending on
how other processes behave. This is faster than
NORMAL, and is recommended for semi-important
conditions.
DUMMYMP_EXTREME - Extreme mode. This mode somewhat considers other
users, but unless the other processes are using
a significant portion of the CPU, it will spawn
spawn processes anyway. This is faster than
AGGRESSIVE, and is recommended for important
conditions.
DUMMYMP_NUCLEAR - Nuclear mode. This mode does NOT consider other
users, and just runs as many processes as it can
allow (total number of cores). This is much
faster than EXTREME, and is recommended for
really important conditions. Note that this may
earn you very angry co-workers knocking down your
door with pitchforks, so use sparingly!
Quick Start Examples:
List data available:
%(prog)s --config-file=config.yaml list
Dump data:
%(prog)s --config-file=config.yaml dump
Make plots:
%(prog)s --config-file=config.yaml plot
Print configuration:
%(prog)s --config-file=config.yaml config
Make plots and log output:
%(prog)s --config-file=config.yaml --logging-output="stdout,file" \\
--logging-file="mylog.txt" plot
"""),
version = 'PyRadmon v' + __version__) # Old: %(prog)s evals to pyradmon.py
subparsers = parser.add_subparsers(metavar="verb", dest = "verb", help='Description')
main_opts = OrderedDict()
main_opts['--config-file'] = \
{
'action' : 'store',
'dest' : 'config_file',
'metavar' : 'FILE',
'help' : 'Load a configuration file for PyRadmon to use. Synonymous to --config-load, but for all verbs and options.',
}
main_opts['--config-unset'] = \
{
'action' : 'append',
'dest' : 'config_unset',
'metavar' : 'VARS',
'help' : 'Unset (or remove) variables after all configuration settings (config file and command line) have been loaded. Format for VARS is "VARIABLE1;VARIABLE2;...". For core PyRadmon configuration, the variable syntax is "config.key". For plot configuration, the variable syntax follows the plot argument hierarchy format at any level, e.g. "plot|subplot|attr|subattr", "plot|subplot", or even "plot". (See plot help for more details regarding the plot hierarchy format.) Note that removing certain variables can cause PyRadmon to not run.',
}
main_opts['--logging-output'] = \
{
'action' : 'store',
'metavar' : 'OUTPUT',
'dest' : 'logging_output',
'help' : 'Specify where to output to. Options include file, stdout, and stderr. Multiple outputs can be specified, seperated with a comma.',
}
main_opts['--logging-file'] = \
{
'action' : 'store',
'metavar' : 'FILE',
'dest' : 'logging_file',
'help' : 'If outputting to a file, specify the file path to save to.',
}
main_opts['--logging-level'] = \
{
'action' : 'store',
'metavar' : 'LOG_LEVEL',
'dest' : 'logging_level',
'help' : 'Set the logging level for PyRadmon.',
}
main_opts['--mp-disable'] = \
{
'action' : 'store_true',
'dest' : 'mp_disable',
'help' : 'Disable multiprocessing (mp) optimizations in PyRadmon.',
}
main_opts['--mp-priority-mode'] = \
{
'action' : 'store',
'metavar' : 'PRIORITY_MODE',
'dest' : 'mp_priority_mode',
'help' : 'Set the priority mode for the multiprocessing (mp) optimizations in PyRadmon. Options are GENEROUS, NORMAL, AGGRESSIVE, EXTREME, and NUCLEAR. GENEROUS yields to other CPU hungry processes, while NUCLEAR spawns as many processes as it can regardless of CPU usage.',
}
main_opts['--mp-cpu-limit'] = \
{
'action' : 'store',
'metavar' : 'NUM_CPUS',
'dest' : 'mp_cpu_limit',
'help' : 'Limit the number of CPUs that the multiprocessing (mp) optimizations in PyRadmon can use.',
}
add_args(parser, False, main_opts)
# A list command
list_parser = subparsers.add_parser('list', help='Lists the data set available for use.', \
description = 'Lists the data set available for use.',
epilog = textwrap.dedent("""\
For --data-time-delta:
Available time units (case-sensitive):
s: seconds m: minutes h: hours d: days
w: weeks M: months y: years
For instance, to specify 5 months, 3 minutes, 2 seconds:
"5M 3m 2s"
Multiple elements with same time units will be summed up,
regardless of position or order. "3m 2s 5m" == "8m 2s"
Years is not a native time delta, so this uses the
conversion "1 year = 365 days".
Note that specifying years may have some caveats, see:
http://stackoverflow.com/a/765990
"""), \
formatter_class=argparse.RawDescriptionHelpFormatter)
add_list_args(list_parser, False)
# [dump]
dump_parser = subparsers.add_parser('dump', help='Dumps data from the data set.', \
description = textwrap.dedent("""\
Dumps data from the data set.
Inherits arguments from [list]. [list] arguments may be required to use
[dump]. For information on [list] arguments, see the [list] help.
"""), \
formatter_class=argparse.RawDescriptionHelpFormatter)
add_list_args(dump_parser, True)
add_dump_args(dump_parser, False)
# [plot]
plot_parser = subparsers.add_parser('plot', help='Creates a plot given plot parameters.', \
description = textwrap.dedent("""\
Creates a plot given plot parameters.
Inherits arguments from [list] and [dump]. [list] and [dump] arguments
may be required to use [plot]. For information on [list] and [dump]
arguments, see their respective help.
NOTE: These options are advanced - although you could (potentially)
plot using these options, it would probably be very painful!
All of these options can be defined via config file, which is
much easier and less verbose! These options are meant to be
used in conjunction with a config file for overriding certain
configuration options and testing them.
"""), \
epilog = textwrap.dedent("""\
Definitions follow either a simple value list system or a simple
key-value pair system.
Value List System:
The value list system looks like:
"value1,value2,value3,..."
For the value list system, values are separated with commas.
Key-Value Pair System:
The key-value pair system looks like:
"key1:value1,value2;key2:value3,value4,..."
For the key-value pair system, a key is followed by a colon,
values are separated with commas, and key-value pairs are
separated by semicolons.
If settings are being set, values can look like subkey=value.
It is a pair with a sub-key and a sub-value, separated by an
equal sign.
These are called sub-key-value pairs, and are in place of values
in a key-value system.
They can look like this:
"key1:skey1=sval1,skey2=sval2;..."
Key/Value Naming:
Plots and subplots are indicated above with plot# and subplot#,
respectively. They are simply IDs for the plots and subplots.
You define them with --plot-define-plots and --plot-define-subplots.
They can take on any name - for instance:
--plot-define-plots="a,b" --plot-define-subplots="a:1,2;b:3,4"
Hierarchy is done by starting with the highest hierarchy, and then
adding additional lower levels to the right, sepearated by pipes.
For instance:
high|medium|low
In the case of plots and subplots, the hierarchy is as follows:
plot|subplot|attribute
This is the naming scheme for keys in key/value pairs.
Argument Definitions:
Note that arguments can be specified multiple times to reduce
the length of one argument. For instance:
--plot-define-plots="plot1" --plot-define-plots="plot2"
is the same as
--plot-define-plots="plot1,plot2"
This works regardless of argument order. This is encouraged, since
this helps with argument organization. (In particular, arguments
deals with a specific plot or subplot can be grouped together.)
--plot-define-plots
Value list of plot IDs.
This argument is REQUIRED to produce a plot.
Example:
"plot1,abc2,superplot3"
--plot-define-subplots
Key-value pairs of plot IDs and subplot IDs.
This argument is REQUIRED to produce a plot.
Example (using above plot IDs):
"plot1:sub1,sub2;abc2:abc,def;superplot3:s1,s2"
--plot-define-axes
Key-value pairs of plot/subplot IDs, and axes properties
defined as sub-key-value pairs. This is the first argument to
use key hierarchy naming.
Available hierarchy attributes:
plot|subplot|x
X axis settings.
plot|subplot|y
Y axis settings.
Available attributes (sub-key-value pairs):
ticks=#
Define number of ticks.
label=LABEL
Define the axis label.
Example (using above info):
"plot1|sub1|x:ticks=5,label=Hello world"
--plot-define-data
Key-value pairs of plot/subplot IDs, with data fields as
values. This also uses key hierarchy naming.
This argument is REQUIRED to produce a plot.
Available hierarchy attributes:
plot|subplot|x
X plotting settings.
plot|subplot|y
Y plotting settings.
Values:
Data field elements. Specified using a different hierarchy
system:
STEP/TYPE|FIELD
STEP/TYPE is either "ges" or "anl", but not both.
For instance: ges|bc_total|mean
Example (using above info):
"abc2|abc|x:timestamp;abc2|abc|y:ges|bc_total|mean,ges|bc_total|stddev"
--plot-define-title
Key-value pairs of plot/subplot IDs, with titles as values. This
also uses key hierarchy naming, but in a slightly different way.
Available hierarchy attributes:
plot|title
Title for the whole plot.
plot|subplot|title
Title for the subplot.
plot|subplot|legend
Title for the subplot's legend.
Values:
The title for the specified title attribute.
Example (using above info):
"abc2|title:Title;abc2|abc|title:SubTitle;abc2|abc|legend:LegendTitle"
--plot-define-output
Key-value pairs of plot and output paths.
Example (using above info):
"plot1:myplot1.png;abc2:abcplot.png;superplot3:super.png"
--plot-define-settings
Key-value pairs of plot IDs, and settings defined as
sub-key-value pairs.
This argument is REQUIRED to produce a plot.
Available attributes (sub-key-value pairs):
target_size=#x#
Define the output plot target size.
dpi=#
Define the output plot DPI.
Example (using above info):
"plot1:target_size=595x700,dpi=50"
--plot-define-custom-vars
Key-value pairs of custom variables to be used in the plot
title and output file name. Variables are case insensitive.
The suggested variable definition and usage standard is
using lowercase for variable definition, and uppercase for
variable usage in the title and/or output file name.
Example:
"expid:exp_2;author:theauthor"
Applying custom variables to plot title and output file name:
--plot-define-title "plot1:Experiment %EXPID% - By %AUTHOR%"
Result:
Experiment exp_2 - By theauthor
--plot-define-output "plot1:plot_%EXPID%-%AUTHOR%.png"
Result:
plot_exp_2-theauthor.png
--plot-make-dirs
If specified, automatically make non-existent directories,
as needed. No additional arguments or options needed.
NOTE: These options are advanced - although you could (potentially)
plot using these options, it would probably be very painful!
All of these options can be defined via config file, which is
much easier and less verbose! These options are meant to be
used in conjunction with a config file for overriding certain
configuration options and testing them.
"""),
formatter_class=argparse.RawDescriptionHelpFormatter)
add_list_args(plot_parser, True)
add_dump_args(plot_parser, True)
add_plot_args(plot_parser, False)
# [config]
config_parser = subparsers.add_parser('config', help='Displays, loads, and saves the configuration.', \
description = textwrap.dedent("""\
Displays, loads, and saves the configuration.
Inherits arguments from [list], [dump], and [plot]. [list], [dump],
and [plot] arguments may be required to use [config]. For information
on [list], [dump], or [plot] arguments, see their respective help.
"""), \
formatter_class=argparse.RawDescriptionHelpFormatter)
add_list_args(config_parser, True)
add_dump_args(config_parser, True)
add_plot_args(config_parser, True)
add_config_args(config_parser, False)
return parser
def parse_to_config(parse):
# Init a few variables:
pyradmon_config = {}
plot_dict = {}
## Core args
# First, examine the core arguments.
if isset_obj("config_file", parse):
# OK, check if the file exists.
if os.path.isfile(parse.config_file):
# Attempt to load
res = config.load(parse.config_file)
if res == None:
print "ERROR: Could not open configuration file!"
return (None, None, None)
pyradmon_config = res[0]
plot_dict = res[1]
else:
print "ERROR: Configuration file path does not exist!"
return (None, None, None)
# Validate configuration
config.validate(pyradmon_config, plot_dict)
# Now check for logging args!
file_enabled = False
if isset_obj("logging_output", parse):
logging_output = parse.logging_output
if logging_output != "":
logging_output = logging_output.split(",")
logging_output = [x.strip() for x in logging_output]
final_logging_output = []
for log_o in logging_output:
if log_o == 'file':
file_enabled = True
elif log_o == 'stdout':
final_logging_output.append(sys.stdout)
elif log_o == 'stderr':
final_logging_output.append(sys.stderr)
else:
print "ERROR: Invalid logging output! Valid output: stdout, stderr, file"
return (None, None, None)
logging_output = final_logging_output
else:
logging_output = [ sys.stdout ]
if logging_output and file_enabled and isset_obj("logging_file", parse):
logging_file = parse.logging_file
else:
logging_file = None
if isset_obj("logging_level", parse):
logging_level = parse.logging_level
logging_level = logging_level.strip()
if logging_level == "INFO":
logging_level = logging.INFO
elif logging_level == "WARNING":
logging_level = logging.WARNING
elif logging_level == "ERROR":
logging_level = logging.ERROR
elif logging_level == "CRITICAL":
logging_level = logging.CRITICAL
elif logging_level == "DEBUG":
logging_level = logging.DEBUG
else:
print "ERROR: Invalid logging level specified!"
print "Valid levels: INFO, WARNING, ERROR, CRITICAL, DEBUG"
return (None, None, None)
else:
logging_level = logging.INFO
if isset_obj("mp_disable", parse):
pyradmon_config['mp_disable'] = parse.mp_disable
if isset_obj("mp_priority_mode", parse):
mp_priority_mode = parse.mp_priority_mode
mp_priority_mode = mp_priority_mode.strip()
if mp_priority_mode == "GENEROUS":
pyradmon_config['mp_priority_mode'] = "GENEROUS"
elif mp_priority_mode == "NORMAL":
pyradmon_config['mp_priority_mode'] = "NORMAL"
elif mp_priority_mode == "AGGRESSIVE":
pyradmon_config['mp_priority_mode'] = "AGGRESSIVE"
elif mp_priority_mode == "EXTREME":
pyradmon_config['mp_priority_mode'] = "EXTREME"
elif mp_priority_mode == "NUCLEAR":
pyradmon_config['mp_priority_mode'] = "NUCLEAR"
else:
print "ERROR: Invalid multiprocessing (mp) priority mode specified!"
print "Valid levels: GENEROUS, NORMAL, AGGRESSIVE, EXTREME, NUCLEAR"
return (None, None, None)
else:
pyradmon_config['mp_priority_mode'] = "NORMAL"
if isset_obj("mp_cpu_limit", parse):
if (parse.mp_cpu_limit).isdigit():
pyradmon_config['mp_cpu_limit'] = int(parse.mp_cpu_limit)
else:
print "ERROR: Invalid multiprocessing (mp) CPU limit! The CPU limit"
print "must specify an integer number of CPUs to limit use to."
return (None, None, None)
# We're ready - let's set up logging!
logger = log.init(logging_level, logging_output, logging_file)
# From now on, we'll stick to using the log module to print stuff
# out.
## Config args, part 1
if parse.verb == "config":
# We will only read --config-load here. All others will be
# checked at the end.
if isset_obj("config_load", parse):
if isset_obj("config_file", parse):
warn("Detected --config-load when --config-file is already specified! --config-load will override the configuration file specified in --config-file. You should only specify one argument, preferrably --config-file.")
# OK, check if the file exists.
if os.path.isfile(parse.config_load):
# Attempt to load
res = config.load(parse.config_load)
if res == None:
critical("ERROR: Could not open configuration file!")
return (None, None, None)
pyradmon_config = res[0]
plot_dict = res[1]
else:
critical("ERROR: Configuration file path does not exist!")
return (None, None, None)
# Validate configuration
config.validate(pyradmon_config, plot_dict)
## Plot args
# FUN TIME
if parse.verb == "plot" or parse.verb == "config":
if isset_obj("plot_define_plots", parse):
plots = ",".join(parse.plot_define_plots).split(",")
# Cleanup
plots = [x.strip() for x in plots]
for plot in plots:
if not plot in plot_dict:
if plot == "":
warn("Invalid plot ID detected - plot ID can't be blank!")
warn("This plot definition will be skipped.")
continue
plot_dict[plot] = {}
if isset_obj("plot_define_subplots", parse):
# "plot1:sub1,sub2;abc2:abc,def;superplot3:s1,s2"
subplots_def = ";".join(parse.plot_define_subplots).split(";")
# Cleanup
subplots_def = [x.strip() for x in subplots_def]
for subplot_def in subplots_def:
# Chunk: plot1:sub1,sub2
subplot_def_split = subplot_def.split(":")
subplot_def_split = [x.strip() for x in subplot_def_split]
# SAAAAAAAANITY CHECK!!!!!!!1111
# Sanity check 1: do we have 2 elements?
if len(subplot_def_split) != 2:
warn("Invalid subplot definition detected - invalid key-value pair '%s'!" % subplot_def)
warn("(Key-value pair should be key:value - make sure there are no extra colons!)")
warn("This subplot definition will be skipped.")
continue
# OK, now seperate it out!
subplot_def_plot = subplot_def_split[0]
subplot_def_subplots = subplot_def_split[1]
# Sanity check 2: does the plot named exist?!?
if not subplot_def_plot in plot_dict:
warn("Invalid subplot definition detected - the plot specified, '%s', does not exist!" % subplot_def_plot)
warn("Ensure spelling is correct. If it is a new plot, make sure it is defined.")
warn("This subplot definition will be skipped.")
continue
# OK, let's process subplots.
subplot_def_subplots = subplot_def_subplots.split(",")
subplot_def_subplots = [x.strip() for x in subplot_def_subplots]
# Prep plot_dict
if not "plots" in plot_dict[subplot_def_plot]:
plot_dict[subplot_def_plot]["plots"] = []
# Add away!
for subplot_def_subplot in subplot_def_subplots:
plot_dict[subplot_def_plot]["plots"].append({ subplot_def_subplot : {} })
# Done!
if isset_obj("plot_define_axes", parse):
# "plot1|sub1|x:ticks=5,label=Hello world"
axes_def = ";".join(parse.plot_define_axes).split(";")
# Cleanup
axes_def = [x.strip() for x in axes_def]
for axis_def in axes_def:
# Chunk: plot1|sub1|x:ticks=5,label=Hello world
axis_def_split = axis_def.split(":")
axis_def_split = [x.strip() for x in axis_def_split]
# SAAAAAAAANITY CHECK!!!!!!!1111
# Sanity check 1: do we have 2 elements?
if len(axis_def_split) != 2:
warn("Invalid axis definition detected - invalid key-value pair '%s'!" % axis_def)
warn("(Key-value pair should be key:value - make sure there are no extra colons!)")
warn("This axis definition will be skipped.")
continue
# OK, now seperate it out!
# Chunk: plot1|sub1|x --> [plot1, sub1, x]
axis_def_plot_subplot_axis = axis_def_split[0].split("|")
# Chunk: ticks=5,label=Hello world
axis_def_attrs = axis_def_split[1]
# Sanity check 2: does the plot/subplot/axe key have 3 elements?
if len(axis_def_plot_subplot_axis) != 3:
warn("Invalid axis definition detected - the key is invalid! It should only have")
warn("3 elements - plot|subplot|x/y!")
warn("This axis definition will be skipped.")
continue
# OK, let's seperate that out!
axis_def_plot = axis_def_plot_subplot_axis[0]
axis_def_subplot = axis_def_plot_subplot_axis[1]
axis_def_axis = axis_def_plot_subplot_axis[2].lower()
# Sanity check 3: does the plot/subplot named exist?!?
if not axis_def_plot in plot_dict:
warn("Invalid axis definition detected - the plot specified, '%s', does not exist!" % axis_def_plot)
warn("Ensure spelling is correct. If it is a new plot, make sure it is defined.")
warn("This axis definition will be skipped.")
continue
# OK, plot exists. How about subplot?
# We have to do some strange magic here...
axis_def_subplot_found = False
axis_def_subplot_dat = None
for axis_def_subplot_dict in plot_dict[axis_def_plot]['plots']:
if axis_def_subplot in axis_def_subplot_dict:
axis_def_subplot_dat = axis_def_subplot_dict[axis_def_subplot]
axis_def_subplot_found = True
break
if not axis_def_subplot_found:
warn("Invalid axis definition detected - the subplot specified, '%s', does not exist!" % axis_def_subplot)
warn("Ensure spelling is correct. If it is a new subplot, make sure it is defined and")
warn("in the right subplot. This axis definition will be skipped.")
continue
# Sanity check 4: Is the axis valid?
if axis_def_axis != "x" and axis_def_axis != "y":
warn("Invalid axis definition detected - the axis specified, '%s', is invalid!" % axis_def_axis)
warn("'x' and 'y' are the only axes allowed. This axis definition will be skipped.")
continue
# OK, let's setup shop.
if not "axes" in axis_def_subplot_dat:
axis_def_subplot_dat["axes"] = {}
if not axis_def_axis in axis_def_subplot_dat["axes"]:
axis_def_subplot_dat["axes"][axis_def_axis] = {}
# OK, let's process attributes.
axis_def_attrs = axis_def_attrs.split(",")
axis_def_attrs = [x.strip().split("=") for x in axis_def_attrs]
# Sanity check 5: Are these valid key-value pairs?
kvpair_bad = False
for kvpair in axis_def_attrs:
if len(kvpair) != 2:
warn("Invalid axis definition detected - the key/value subpair, '%s', is invalid!" % '='.join(kvpair))
kvpair_bad = True
if type(kvpair[0]) != str:
warn("Invalid axis definition detected - the key '%s' in the subpair, '%s', is a non-string!" % (str(kvpair[0]), '='.join(kvpair)))
if kvpair_bad:
warn("(Key-value subpair should be key=value - make sure there are no extra =s!)")
warn("This axis definition will be skipped.")
continue
# Whew, so much sanity lost from sanity checking!
# Install attributes!
for kvpair in axis_def_attrs:
if kvpair[0] == 'ticks':
axis_def_subplot_dat["axes"][axis_def_axis][kvpair[0]] = int(kvpair[1])
else:
axis_def_subplot_dat["axes"][axis_def_axis][kvpair[0]] = kvpair[1]
# Done!!!!!1111
if isset_obj("plot_define_data", parse):
# "abc2|abc|x:timestamp;abc2|abc|y:ges|bc_total|mean,ges|bc_total|stddev"
data_defs = ";".join(parse.plot_define_data).split(";")
# Cleanup
data_defs = [x.strip() for x in data_defs]
for data_def in data_defs:
# Chunk: abc2|abc|x:timestamp
# Chunk: abc2|abc|y:ges|bc_total|mean,ges|bc_total|stddev
data_def_split = data_def.split(":")
data_def_split = [x.strip() for x in data_def_split]
# SAAAAAAAANITY CHECK!!!!!!!1111
# Sanity check 1: do we have 2 elements?
if len(data_def_split) != 2:
warn("Invalid data definition detected - invalid key-value pair '%s'!" % data_def)
warn("(Key-value pair should be key:value - make sure there are no extra colons!)")
warn("This data definition will be skipped.")
continue
# OK, now seperate it out!
# Chunk: abc2|abc|x --> [abc2, abc, x]
data_def_plot_subplot_attr = data_def_split[0].split("|")
# Chunk: timestamp
data_def_attrs = data_def_split[1]
# Sanity check 2: does the plot/subplot/axe key have 3 elements?
if len(data_def_plot_subplot_attr) != 3:
warn("Invalid data definition detected - the key is invalid! It should only have")
warn("3 elements - plot|subplot|x/y!")
warn("This data definition will be skipped.")
continue
# OK, let's seperate that out!
data_def_plot = data_def_plot_subplot_attr[0]
data_def_subplot = data_def_plot_subplot_attr[1]
data_def_attr_name = data_def_plot_subplot_attr[2].lower()
# Sanity check 3: does the plot/subplot named exist?!?
if not data_def_plot in plot_dict:
warn("Invalid data definition detected - the plot specified, '%s', does not exist!" % data_def_plot)
warn("Ensure spelling is correct. If it is a new plot, make sure it is defined.")
warn("This data definition will be skipped.")
continue
# OK, plot exists. How about subplot?
# We have to do some strange magic here...
data_def_subplot_found = False
data_def_subplot_dat = None
for data_def_subplot_dict in plot_dict[data_def_plot]['plots']:
if data_def_subplot in data_def_subplot_dict:
data_def_subplot_dat = data_def_subplot_dict[data_def_subplot]
data_def_subplot_found = True
break
if not data_def_subplot_found:
warn("Invalid data definition detected - the subplot specified, '%s', does not exist!" % data_def_subplot)
warn("Ensure spelling is correct. If it is a new subplot, make sure it is defined and")
warn("in the right subplot. This data definition will be skipped.")
continue
# Sanity check 4: Is the attr field valid?
valid_attrs = [ "x", "y", "colors", "labels" ]
if not data_def_attr_name in valid_attrs:
warn("Invalid data definition detected - the attribute specified, '%s', is invalid!" % data_def_data)
warn("%s are the only attributes allowed. This data definition will be skipped." % (",".join(valid_attrs[:-1]) + ", and " + valid_attrs[-1]))
continue
# OK, let's setup shop.
if not "data" in data_def_subplot_dat:
data_def_subplot_dat["data"] = {}
# OK, let's process attributes.
data_def_attrs = data_def_attrs.split(",")
# Whew, so much sanity lost from sanity checking!
# (But not as bad as the axes part...)
# Install attributes!
if len(data_def_attrs) == 1:
data_def_subplot_dat["data"][data_def_attr_name] = data_def_attrs[0]
else:
if not data_def_attr_name in data_def_subplot_dat["data"]:
data_def_subplot_dat["data"][data_def_attr_name] = []
for attr_val in data_def_attrs:
data_def_subplot_dat["data"][data_def_attr_name].append(attr_val)
# Done!
if isset_obj("plot_define_title", parse):
# "abc2|title:Title;abc2|abc|title:SubTitle;abc2|abc|legend:LegendTitle"
title_defs = ";".join(parse.plot_define_title).split(";")
# Cleanup
title_defs = [x.strip() for x in title_defs]
for title_def in title_defs:
# Chunk: abc2|title:Title
# Chunk: abc2|abc|title:SubTitle
# Chunk: abc2|abc|legend:LegendTitle
title_def_split = title_def.split(":")
title_def_split = [x.strip() for x in title_def_split]
# SAAAAAAAANITY CHECK!!!!!!!1111
# Sanity check 1: do we have 2 elements?
if len(title_def_split) != 2:
warn("Invalid title definition detected - invalid key-value pair '%s'!" % title_def)
warn("(Key-value pair should be key:value - make sure there are no extra colons!)")
warn("This title definition will be skipped.")
continue
# OK, now seperate it out!
# Chunk: abc2|title --> [abc2, title]
# Chunk: abc2|abc|title --> [abc2, abc, title]
# Chunk: abc2|abc|legend --> [abc2, abc, legend]
title_def_plot_subplot_attr = title_def_split[0].split("|")
# Chunk: Title
# Chunk: SubTitle
# Chunk: LegendTitle
title_def_title = title_def_split[1]
# Sanity check 2: does the plot(/subplot)/attr key have 2 or 3 elements?
if (len(title_def_plot_subplot_attr) != 3) and (len(title_def_plot_subplot_attr) != 2):
warn("Invalid title definition detected - the key is invalid! It should only have")
warn("2-3 elements - plot|title or plot|subplot|title/legend!")
warn("This title definition will be skipped.")
continue
# OK, let's seperate that out!
# ...except this varies, so let's take it a bit slow.
title_def_plot_subplot = [ title_def_plot_subplot_attr[0] ]
if len(title_def_plot_subplot_attr) == 3:
title_def_plot_subplot.append(title_def_plot_subplot_attr[1])
title_def_attr_name = title_def_plot_subplot_attr[-1].lower()
# Sanity check 3: does the plot/subplot named exist?!?
if not title_def_plot_subplot[0] in plot_dict:
warn("Invalid title definition detected - the plot specified, '%s', does not exist!" % title_def_plot)
warn("Ensure spelling is correct. If it is a new plot, make sure it is defined.")
warn("This title definition will be skipped.")
continue
# OK, plot exists. How about subplot?
# We have to do some strange magic here...
# ...but only if we need to.
if len(title_def_plot_subplot) == 2:
title_def_subplot_found = False
title_def_subplot_dat = None
for title_def_subplot_dict in plot_dict[title_def_plot_subplot[0]]['plots']:
if title_def_plot_subplot[1] in title_def_subplot_dict:
title_def_subplot_dat = title_def_subplot_dict[title_def_plot_subplot[1]]
title_def_subplot_found = True
break
if not title_def_subplot_found:
warn("Invalid title definition detected - the subplot specified, '%s', does not exist!" % title_def_subplot)
warn("Ensure spelling is correct. If it is a new subplot, make sure it is defined and")
warn("in the right subplot. This title definition will be skipped.")
continue
# Sanity check 4: Is the attr field valid?
# Title is valid for both, but legend is only valid for
# plot|subplot.
if title_def_attr_name != "title" and not ( (len(title_def_plot_subplot) == 2) and (title_def_attr_name == "legend") ):
warn("Invalid title definition detected - the attribute specified, '%s', is invalid!" % title_def_title)
warn("legend (for plot|subplot) and title are the only attributes allowed.")
warn("This title definition will be skipped.")
continue
# OK, let's go!
if len(title_def_plot_subplot) == 1:
plot_dict[title_def_plot_subplot[0]]["title"] = title_def_title
else:
if title_def_attr_name == "legend":
if not isset_obj("legend", title_def_subplot_dat):
title_def_subplot_dat["legend"] = {}
title_def_subplot_dat["legend"]["title"] = title_def_title
else:
title_def_subplot_dat["title"] = title_def_title
# Done!
if isset_obj("plot_define_output", parse):
# "plot1:myplot1.png;abc2:abcplot.png;superplot3:super.png"
output_defs = ";".join(parse.plot_define_output).split(";")
# Cleanup
output_defs = [x.strip() for x in output_defs]
for output_def in output_defs:
# Chunk: plot1:myplot1.png
output_def_split = output_def.split(":")
output_def_split = [x.strip() for x in output_def_split]
# SAAAAAAAANITY CHECK!!!!!!!1111
# Sanity check 1: do we have 2 elements?
if len(output_def_split) != 2:
warn("Invalid output definition detected - invalid key-value pair '%s'!" % output_def)
warn("(Key-value pair should be key:value - make sure there are no extra colons!)")
warn("This output definition will be skipped.")
continue
# OK, now seperate it out!
# Chunk: plot1
output_def_plot = output_def_split[0]
# Chunk: myplot1.png
output_def_output = output_def_split[1]
# Sanity check 2: does the plot named exist?!?
if not output_def_plot in plot_dict:
warn("Invalid output definition detected - the plot specified, '%s', does not exist!" % output_def_plot)
warn("Ensure spelling is correct. If it is a new plot, make sure it is defined.")
warn("This output definition will be skipped.")
continue
# OK, plot exists. This is super easy, so we're free to
# fly from here!
plot_dict[output_def_plot]["output"] = output_def_output
# Done!
if isset_obj("plot_define_settings", parse):
# "plot1:target_size=595x700,dpi=50"
settings_def = ";".join(parse.plot_define_settings).split(";")
# Cleanup
settings_def = [x.strip() for x in settings_def]
for settings_def in settings_def:
# Chunk: plot1:target_size=595x700,dpi=50
settings_def_split = settings_def.split(":")
settings_def_split = [x.strip() for x in settings_def_split]
# SAAAAAAAANITY CHECK!!!!!!!1111
# Sanity check 1: do we have 2 elements?
if len(settings_def_split) != 2:
warn("Invalid settings definition detected - invalid key-value pair '%s'!" % settings_def)
warn("(Key-value pair should be key:value - make sure there are no extra colons!)")
warn("This settings definition will be skipped.")
continue
# OK, now seperate it out!
# Chunk: plot1
settings_def_plot = settings_def_split[0]
# Chunk: ticks=5,label=Hello world
settings_def_attrs = settings_def_split[1]
# Sanity check 2: does the plot/subplot named exist?!?
if not settings_def_plot in plot_dict:
warn("Invalid settings definition detected - the plot specified, '%s', does not exist!" % settings_def_plot)
warn("Ensure spelling is correct. If it is a new plot, make sure it is defined.")
warn("This settings definition will be skipped.")
continue
# OK, let's setup shop.
if not "settings" in plot_dict[settings_def_plot]:
plot_dict[settings_def_plot]["settings"] = {}
# OK, let's process attributes.
settings_def_attrs = settings_def_attrs.split(",")
settings_def_attrs = [x.strip().split("=") for x in settings_def_attrs]
# Sanity check 5: Are these valid key-value pairs?
kvpair_bad = False
for kvpair in settings_def_attrs:
if len(kvpair) != 2:
warn("Invalid settings definition detected - the key/value subpair, '%s', is invalid!" % '='.join(kvpair))
kvpair_bad = True
if type(kvpair[0]) != str:
warn("Invalid settings definition detected - the key '%s' in the subpair, '%s', is a non-string!" % (str(kvpair[0]), '='.join(kvpair)))
if kvpair_bad:
warn("(Key-value subpair should be key=value - make sure there are no extra =s!)")
warn("This settings definition will be skipped.")
continue
# Whew, so much sanity lost from sanity checking!
# Install attributes!
for kvpair in settings_def_attrs:
if kvpair[0] == 'target_size':
size_arr = [ int(x) for x in kvpair[1].lower().split("x") ]
if len(size_arr) != 2:
warn("Key-value pair for target_size is invalid - should be INTxINT!")
warn("Skipping key-value pair.")
continue
plot_dict[settings_def_plot]["settings"]["target_size"] = size_arr
elif kvpair[0] == 'dpi':
if not kvpair[1].isdigit():
warn("Key-value pair for dpi is invalid - value is not an int!")
warn("Skipping key-value pair.")
continue
plot_dict[settings_def_plot]["settings"][kvpair[0]] = int(kvpair[1])
else:
# Strange stuff
warn("Key '%s' in not defined - setting anyway." % str(kvpair[0]))
plot_dict[settings_def_plot]["settings"][kvpair[0]] = kvpair[1]
# Done!!!!!1111
if isset_obj("plot_define_custom_vars", parse):
# "customvar1:value1;customvar2:value2"
custom_var_defs = ";".join(parse.plot_define_custom_vars).split(";")
# Cleanup
custom_var_defs = [x.strip() for x in custom_var_defs]
for output_def in output_defs:
# Chunk: customvar1:value1
custom_var_def_split = custom_var_def.split(":")
custom_var_def_split = [x.strip() for x in custom_var_def_split]
# Sanity check!
# Sanity check 1: do we have 2 elements?
if len(custom_var_def_split) != 2:
warn("Invalid custom variable definition detected - invalid key-value pair '%s'!" % output_def)
warn("(Key-value pair should be key:value - make sure there are no extra colons!)")
warn("This custom variable definition will be skipped.")
continue
# OK, now seperate it out!
# Chunk: customvar1
custom_var_def_var = custom_var_def_split[0]
# Chunk: value1
custom_var_def_val = custom_var_def_split[1]
# OK, we got everything. This is super easy, so we're free to
# leap from here!
if "custom_vars" not in pyradmon_config:
pyradmon_config["custom_vars"] = {}
pyradmon_config["custom_vars"][custom_var_def_var] = custom_var_def_val
# Done!
if isset_obj("plot_make_dirs", parse) and parse.plot_make_dirs:
pyradmon_config["make_dirs"] = parse.plot_make_dirs
# Done!
## Dump args
if parse.verb == "dump" or parse.verb == "plot" or parse.verb == "config":
# --dump-columns
if isset_obj("dump_columns", parse):
for data_column in (parse.dump_columns).split(","):
data_column = data_column.strip()
if not data_column in SPECIAL_FIELDS:
if not ((data_column.startswith("ges|") or data_column.startswith("anl|"))):
die("ERROR: Invalid data column '%s' specified in --dump-columns! Must have ges| or anl| as a prefix." % data_column)
pyradmon_config["data_columns"] = parse.dump_columns
# --dump-all-channels
if isset_obj("dump_all_channels", parse) and parse.dump_all_channels:
pyradmon_config["data_all_channels"] = parse.dump_all_channels
# --dump-channels
if isset_obj("dump_channels", parse):
if isset_obj("dump_all_channels", parse) and parse.dump_all_channels:
die("ERROR: You can not specify --dump-all-channels and --dump-channels at the same time!")
for data_channel in (parse.dump_channels).split(","):
data_channel = data_channel.strip()
if not ( (data_channel.isdigit()) or \
( (len(data_channel.split("-")) == 2) and data_channel.split("-")[0].isdigit() and data_channel.split("-")[1].isdigit() ) ):
die("ERROR: Invalid data channel '%s' specified in --dump-channels! Must be a number or a numeric range (#-#)." % data_channel)
pyradmon_config["data_channels"] = parse.dump_channels
# --dump-assim-only
if isset_obj("dump_assim_only", parse):
pyradmon_config["data_assim_only"] = parse.dump_assim_only
# --dump-suppress-warnings
if isset_obj("dump_suppress_warnings", parse):
pyradmon_config["data_suppress_warnings"] = parse.dump_suppress_warnings
## List args
if parse.verb == "list" or parse.verb == "dump" or parse.verb == "plot" or parse.verb == "config":
# --data-single-date (action flag)
if isset_obj("data_single_date", parse):
pyradmon_config["data_start_date"] = parse.data_single_date
pyradmon_config["data_end_date"] = parse.data_single_date
# --data-path-format
if isset_obj("data_path_format", parse):
pyradmon_config["data_path_format"] = parse.data_path_format
# --data-experiment-id
if isset_obj("data_experiment_id", parse):
pyradmon_config["data_experiment_id"] = parse.data_experiment_id
# --data-start-date
if isset_obj("data_start_date", parse):
if isset_obj("data_single_date", parse):
die("ERROR: You can not specify --data-single-date and --data-start-date at the same time!")
# FORMAT: YYYY-MM-DD HHz
pyradmon_config["data_start_date"] = parse.data_start_date
if not (pyradmon_config["data_start_date"][:4].isdigit() and \
pyradmon_config["data_start_date"][5:7].isdigit() and \
pyradmon_config["data_start_date"][8:10].isdigit() and \
pyradmon_config["data_start_date"][11:13].isdigit()):
die("ERROR: Start date '%s' specified in --data-start-date is not valid! It must be in 'YYYY-MM-DD HHz' format!" % pyradmon_config["data_start_date"])
# --data-end-date
if isset_obj("data_end_date", parse):
if isset_obj("data_single_date", parse):
die("ERROR: You can not specify --data-single-date and --data-end-date at the same time!")
# FORMAT: YYYY-MM-DD HHz
pyradmon_config["data_end_date"] = parse.data_end_date
if not (pyradmon_config["data_end_date"][:4].isdigit() and \
pyradmon_config["data_end_date"][5:7].isdigit() and \
pyradmon_config["data_end_date"][8:10].isdigit() and \
pyradmon_config["data_end_date"][11:13].isdigit()):
die("ERROR: End date '%s' specified in --data-end-date is not valid! It must be in 'YYYY-MM-DD HHz' format!" % pyradmon_config["data_end_date"])
# --data-instrument-sat
if isset_obj("data_instrument_sat", parse):
pyradmon_config["data_instrument_sat"] = parse.data_instrument_sat
# --data-step
if isset_obj("data_step", parse):
pyradmon_config["data_step"] = parse.data_step
if not ((pyradmon_config['data_step'] == "anl") or \
(pyradmon_config['data_step'] == "ges") or \
(pyradmon_config['data_step'] == "anl|ges") or \
(pyradmon_config['data_step'] == "ges|anl")):
die("ERROR: Data step '%s' specified in --date-step is not valid! Must either be 'anl', 'ges', or the two combined with a pipe ('anl|ges')." % pyradmon_config["data_step"])
# --data-time-delta
if isset_obj("data_time_delta", parse):
pyradmon_config["data_time_delta"] = parse.data_time_delta
dtd_split = pyradmon_config['data_time_delta'].split(" ")
unit_valid = [ "s", "w", "m", "M", "h", "y", "d" ]
for dtd in dtd_split:
# s: seconds m: minutes h: hours d: days
# w: weeks M: months y: years
if not ( (dtd[-1] in unit_valid) and (dtd[:-1].isdigit()) ):
die("ERROR: Invalid delta time '%s' specified in --data-delta-time! Must be a # followed by a valid unit letter. ([s]ecs, [m]inutes, [h]ours, [d]ays, [w]eeks, [M]onths, [y]ears)" % pyradmon_config["data_delta_time"])
if isset_obj("config_unset", parse):
# "config.var1;plot1|subplot1"
config_unset_def = ";".join(parse.config_unset).split(";")
for config_def in config_unset_def:
if config_def.startswith("config."):
pyr_config_var = config_def.split("config.")[1:]
if len(pyr_config_var) > 1:
warn("WARNING: Detected strange unset entry, but continuing anyway.")
pyr_config_var = "config.".join(pyr_config_var)
else:
pyr_config_var = str(pyr_config_var[0])
info("Unsetting pyradmon_config variable %s." % pyr_config_var)
pyradmon_config.pop(pyr_config_var, None)
else:
plot_config_var = config_def.split("|")
info("Unsetting plot_dict variable %s." % "|".join(plot_config_var))
if not plot_config_var[0] in plot_dict:
warn("Invalid unset definition detected - the plot specified, '%s', does not exist!" % title_def_plot)
warn("Ensure spelling is correct. If it is a new plot, make sure it is defined.")
warn("This unset definition will be skipped.")
continue
# OK, plot exists. How about subplot?
# We have to do some strange magic here...
# ...but only if we need to.
if len(plot_config_var) >= 2:
plot_config_subplot_found = False
title_def_subplot_dat = None
for subplot_dict in plot_dict[plot_config_var[0]]['plots']:
if plot_config_var[1] in subplot_dict:
subplot_dat = subplot_dict[plot_config_var[1]]
plot_config_subplot_found = True
break
if not plot_config_subplot_found:
warn("Invalid unset definition detected - the subplot specified, '%s', does not exist!" % title_def_subplot)
warn("Ensure spelling is correct. If it is a new subplot, make sure it is defined and")
warn("in the right subplot. This unset definition will be skipped.")
continue
# Check
if len(plot_config_var) == 2:
plot_dict[plot_config_var[0]]['plots'].remove(subplot_dict)
else:
# Now recursively delete!
delete_keys_from_dict(subplot_dat, plot_config_var[2:])
else:
plot_dict.pop(plot_config_var[0], None)
#import pprint
#pprint.pprint(plot_dict)
#print plot_dict
return (pyradmon_config, plot_dict, parse)
if __name__ == "__main__":
parser = make_argparser()
parse = parser.parse_args()
print parse_to_config(parse)
| [
1,
529,
9507,
29958,
2272,
3665,
3712,
29914,
5085,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
10772,
9908,
3712,
448,
5132,
4957,
8837,
2598,
2105,
292,
21704,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29946,
529,
5813,
15513,
13,
29937,
29871,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
29871,
13,
29937,
259,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
29871,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
13,
29937,
2411,
2957,
29889,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
13,
29937,
11239,
322,
27028,
1090,
278,
19245,
29889,
13,
29937,
29871,
13,
29937,
23125,
1459,
2976,
9538,
448,
13,
29937,
259,
3489,
363,
13755,
1899,
1196,
6273,
13,
29937,
29871,
13,
13,
5215,
1852,
5510,
13,
5215,
1426,
6312,
13,
5215,
2897,
13,
5215,
10876,
13,
13,
3166,
903,
3259,
1053,
4770,
3259,
1649,
13,
13,
3166,
7136,
1053,
334,
13,
5215,
2295,
13,
5215,
2295,
29918,
558,
1639,
13,
3166,
2295,
1053,
317,
4162,
8426,
1964,
29918,
3738,
6670,
8452,
13,
5215,
1480,
13,
13,
5215,
12183,
13,
13,
2202,
29901,
13,
1678,
515,
16250,
1053,
8170,
287,
21533,
13,
19499,
29901,
13,
1678,
1018,
29901,
13,
4706,
515,
10372,
8977,
1053,
8170,
287,
21533,
13,
1678,
5174,
29901,
13,
4706,
1596,
376,
11432,
29901,
8170,
287,
21533,
451,
1476,
29991,
739,
338,
3734,
304,
1065,
445,
2471,
1213,
13,
4706,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
1753,
788,
29918,
5085,
29898,
16680,
29892,
13125,
29892,
29111,
1125,
13,
1678,
363,
3523,
297,
29111,
29901,
13,
4706,
565,
13125,
29901,
13,
9651,
29111,
29961,
3670,
22322,
8477,
2033,
353,
1852,
5510,
29889,
29903,
4897,
15094,
1799,
13,
9651,
29111,
29961,
3670,
22322,
4381,
2033,
353,
1852,
5510,
29889,
29903,
4897,
15094,
1799,
13,
4706,
3523,
29918,
3670,
353,
9657,
29898,
25707,
29961,
3670,
2314,
13,
4706,
13812,
29889,
1202,
29918,
23516,
29898,
3670,
29892,
3579,
3670,
29918,
3670,
29897,
13,
13,
1753,
788,
29918,
1761,
29918,
5085,
29898,
16680,
29892,
13125,
353,
7700,
1125,
13,
1678,
29111,
353,
8170,
287,
21533,
580,
13,
1678,
29111,
1839,
489,
1272,
29899,
14369,
29899,
1256,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
6248,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
1272,
29918,
14369,
29918,
1256,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
11403,
2323,
2635,
29889,
19191,
881,
367,
376,
14995,
14995,
29899,
7428,
29899,
7858,
379,
12661,
1642,
12610,
1078,
278,
3987,
2400,
22146,
10116,
322,
3064,
29889,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
1272,
29899,
2084,
29899,
4830,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
10145,
29918,
19094,
1299,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
1272,
29918,
2084,
29918,
4830,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
278,
2224,
3402,
363,
848,
29889,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
1272,
29899,
735,
15362,
29899,
333,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
5746,
13171,
7833,
3919,
29918,
1367,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
1272,
29918,
735,
15362,
29918,
333,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
278,
7639,
3553,
363,
848,
29889,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
1272,
29899,
2962,
29899,
1256,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
6248,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
1272,
29918,
2962,
29918,
1256,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
278,
1369,
2635,
363,
848,
29889,
19191,
881,
367,
376,
14995,
14995,
29899,
7428,
29899,
7858,
379,
12661,
1642,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
1272,
29899,
355,
29899,
1256,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
6248,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
1272,
29918,
355,
29918,
1256,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
278,
1095,
2635,
363,
848,
29889,
19191,
881,
367,
376,
14995,
14995,
29899,
7428,
29899,
7858,
379,
12661,
1642,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
1272,
29899,
2611,
15461,
29899,
29879,
271,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
1177,
10810,
5005,
3919,
29918,
29903,
1299,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
1272,
29918,
2611,
15461,
29918,
29879,
271,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
278,
11395,
322,
28421,
3553,
363,
848,
29889,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
1272,
29899,
10568,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
1254,
15488,
29918,
11116,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
1272,
29918,
10568,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
278,
4331,
29914,
1853,
363,
278,
848,
29889,
376,
273,
29880,
29908,
322,
376,
2710,
29908,
526,
6068,
29889,
960,
366,
6398,
304,
6084,
901,
1135,
697,
29892,
671,
263,
14282,
304,
409,
21194,
963,
29892,
321,
29889,
29887,
29889,
376,
273,
29880,
29989,
2710,
1642,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
1272,
29899,
2230,
29899,
4181,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
15307,
29918,
2287,
5850,
29909,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
1272,
29918,
2230,
29918,
4181,
742,
13,
9651,
525,
8477,
29915,
418,
584,
9995,
10299,
1598,
278,
931,
7292,
363,
848,
29889,
450,
931,
3402,
338,
13,
462,
632,
13384,
773,
278,
8709,
1899,
29915,
29879,
3402,
29892,
12305,
29965,
613,
988,
396,
338,
13,
462,
632,
263,
1353,
322,
501,
338,
263,
5497,
15783,
263,
5190,
310,
931,
1213,
29908,
613,
13,
4706,
500,
13,
268,
13,
1678,
788,
29918,
5085,
29898,
16680,
29892,
13125,
29892,
29111,
29897,
13,
13,
1753,
788,
29918,
15070,
29918,
5085,
29898,
16680,
29892,
13125,
353,
7700,
1125,
13,
1678,
29111,
353,
8170,
287,
21533,
580,
13,
1678,
29111,
1839,
489,
15070,
29899,
13099,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
15032,
5005,
3059,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
15070,
29918,
13099,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
278,
4341,
304,
16766,
29914,
1509,
29892,
13055,
491,
844,
294,
29889,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
15070,
29899,
497,
29899,
305,
12629,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
29918,
3009,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
15070,
29918,
497,
29918,
305,
12629,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
304,
16766,
599,
18196,
29889,
12610,
1078,
278,
2984,
2400,
22146,
18196,
304,
671,
29889,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
15070,
29899,
305,
12629,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
3210,
2190,
29940,
6670,
29903,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
15070,
29918,
305,
12629,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
278,
18196,
304,
16766,
29914,
1509,
29892,
13055,
491,
844,
294,
29889,
390,
6916,
526,
884,
22691,
29889,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
15070,
29899,
465,
326,
29899,
6194,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
29918,
3009,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
15070,
29918,
465,
326,
29918,
6194,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
304,
671,
871,
24443,
309,
630,
848,
313,
29875,
1509,
353,
29871,
29896,
467,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
15070,
29899,
19303,
1253,
29899,
25442,
886,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
29918,
3009,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
15070,
29918,
19303,
1253,
29918,
25442,
886,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
3692,
304,
21301,
848,
18116,
470,
451,
29889,
910,
674,
9563,
4100,
18116,
1048,
848,
22435,
8244,
2478,
29892,
577,
871,
9025,
565,
366,
526,
29871,
29896,
29900,
29900,
7686,
1854,
393,
596,
848,
338,
2854,
29991,
742,
13,
4706,
500,
13,
268,
13,
1678,
788,
29918,
5085,
29898,
16680,
29892,
13125,
29892,
29111,
29897,
13,
13,
1753,
788,
29918,
5317,
29918,
5085,
29898,
16680,
29892,
13125,
353,
7700,
1125,
13,
1678,
29111,
353,
8170,
287,
21533,
580,
13,
1678,
29111,
1839,
489,
5317,
29899,
7922,
29899,
26762,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
4397,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
7390,
2891,
29903,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
5317,
29918,
7922,
29918,
26762,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
3206,
457,
24580,
29889,
10783,
267,
278,
995,
1051,
1788,
29892,
6790,
491,
376,
5317,
29896,
29892,
5317,
29906,
29892,
5317,
29941,
29892,
856,
1642,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
5317,
29899,
7922,
29899,
1491,
26762,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
4397,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
20633,
7390,
2891,
29903,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
5317,
29918,
7922,
29918,
1491,
26762,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
3206,
457,
1014,
26762,
29889,
10783,
267,
278,
1820,
29899,
1767,
5101,
1788,
29892,
6790,
491,
376,
5317,
29896,
29901,
1491,
5317,
29896,
29892,
1491,
5317,
333,
29906,
29892,
856,
29936,
1642,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
5317,
29899,
7922,
29899,
1165,
267,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
4397,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
6604,
2890,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
5317,
29918,
7922,
29918,
1165,
267,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
3206,
457,
27815,
363,
278,
1014,
5317,
29889,
10783,
267,
278,
1820,
29899,
1767,
5101,
1788,
29892,
6790,
491,
376,
5317,
29896,
29989,
1491,
5317,
29896,
29989,
29891,
29901,
29873,
7358,
29922,
29945,
29892,
1643,
543,
1688,
1769,
856,
1642,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
5317,
29899,
7922,
29899,
1272,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
4397,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
14573,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
5317,
29918,
7922,
29918,
1272,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
3206,
457,
848,
304,
367,
715,
15048,
297,
278,
1014,
5317,
29889,
10783,
267,
278,
1820,
29899,
1767,
5101,
1788,
29892,
6790,
491,
376,
5317,
29896,
29989,
1491,
5317,
29896,
29989,
29916,
29901,
1272,
29918,
2671,
29918,
29896,
29936,
5317,
29896,
29989,
1491,
5317,
29896,
29989,
29891,
29901,
856,
1642,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
5317,
29899,
7922,
29899,
3257,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
4397,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
29911,
1806,
1307,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
5317,
29918,
7922,
29918,
3257,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
3206,
457,
278,
3611,
363,
278,
6492,
29892,
322,
2984,
635,
29892,
1014,
5317,
322,
15983,
29889,
10783,
267,
278,
1820,
29899,
1767,
5101,
1788,
29892,
6790,
491,
376,
5317,
29896,
29901,
3257,
29936,
5317,
29896,
29989,
1491,
5317,
29896,
29901,
3257,
29936,
5317,
29896,
29989,
1491,
5317,
29896,
29989,
26172,
29901,
3257,
29936,
856,
1642,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
5317,
29899,
7922,
29899,
4905,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
4397,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
12015,
12336,
29918,
7724,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
5317,
29918,
7922,
29918,
4905,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
3206,
457,
278,
1962,
934,
363,
278,
6492,
29889,
10783,
267,
278,
1820,
29899,
1767,
5101,
1788,
29892,
6790,
491,
376,
5317,
29896,
29901,
4905,
29918,
1445,
29889,
2732,
29936,
856,
1642,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
5317,
29899,
7922,
29899,
11027,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
4397,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
10490,
29911,
4214,
29903,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
5317,
29918,
7922,
29918,
11027,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
3206,
457,
278,
6055,
363,
278,
6492,
29889,
10783,
267,
278,
1820,
29899,
1767,
5101,
1788,
29892,
6790,
491,
376,
5317,
29896,
29901,
5182,
29918,
2311,
29922,
29945,
29929,
29945,
29916,
29955,
29900,
29900,
29892,
29881,
1631,
29922,
29945,
29900,
29936,
856,
1642,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
5317,
29899,
7922,
29899,
6341,
29899,
16908,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
4397,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
29907,
17321,
6488,
29918,
26865,
29903,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
5317,
29918,
7922,
29918,
6341,
29918,
16908,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
3206,
457,
278,
2888,
3651,
363,
671,
297,
278,
1962,
934,
322,
3611,
29889,
10783,
267,
278,
1820,
29899,
1767,
5101,
1788,
29892,
6790,
491,
376,
1357,
1707,
29901,
29896,
29906,
29941,
29892,
1357,
1707,
29906,
29901,
10736,
29892,
856,
1642,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
5317,
29899,
5675,
29899,
3972,
29879,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
29918,
3009,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
5317,
29918,
5675,
29918,
3972,
29879,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
9984,
17525,
565,
278,
6790,
1962,
2224,
947,
451,
1863,
29889,
742,
13,
4706,
500,
13,
268,
13,
1678,
788,
29918,
5085,
29898,
16680,
29892,
13125,
29892,
29111,
29897,
13,
13,
1753,
788,
29918,
2917,
29918,
5085,
29898,
16680,
29892,
13125,
353,
7700,
1125,
13,
1678,
29111,
353,
8170,
287,
21533,
580,
13,
1678,
29111,
1839,
489,
2917,
29899,
4990,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
29918,
3009,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
2917,
29918,
4990,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
4205,
12922,
278,
5285,
29889,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
2917,
29899,
1359,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
7724,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
2917,
29918,
1359,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
5896,
385,
5923,
5285,
934,
29889,
3940,
393,
445,
674,
5712,
278,
1667,
1192,
2917,
29899,
1445,
2980,
29889,
742,
13,
4706,
500,
13,
1678,
29111,
1839,
489,
2917,
29899,
7620,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
7724,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
2917,
29918,
7620,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
11371,
278,
5279,
7500,
5285,
304,
263,
934,
29889,
3940,
393,
7160,
5285,
1122,
451,
367,
7180,
297,
1797,
29889,
742,
13,
4706,
500,
13,
268,
13,
1678,
788,
29918,
5085,
29898,
16680,
29892,
13125,
29892,
29111,
29897,
13,
13,
1753,
1207,
29918,
1191,
16680,
7295,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
689,
2620,
29918,
1990,
29922,
1191,
5510,
29889,
22131,
9868,
29648,
18522,
29892,
320,
13,
18884,
9358,
26140,
353,
1426,
6312,
29889,
7176,
296,
703,
15945,
29905,
13,
462,
29871,
4522,
3460,
11174,
29892,
515,
3203,
304,
1556,
13500,
29901,
13,
462,
1678,
21681,
29892,
15233,
29892,
399,
25614,
29892,
14431,
29892,
15600,
1806,
2965,
1964,
13,
462,
29871,
21605,
263,
12183,
3233,
674,
1510,
7191,
393,
5870,
322,
13,
462,
29871,
13461,
393,
3233,
29889,
1152,
2777,
29892,
4444,
15233,
674,
1510,
13,
462,
29871,
15233,
29892,
399,
25614,
29892,
14431,
29892,
322,
15600,
1806,
2965,
1964,
7191,
29889,
13,
462,
259,
13,
462,
29871,
22096,
537,
18893,
29901,
13,
462,
1678,
360,
5005,
17870,
3580,
29918,
24647,
1001,
29949,
3308,
259,
448,
3251,
681,
4464,
29889,
18064,
8976,
1230,
1048,
773,
738,
13,
462,
462,
308,
10808,
29892,
322,
5662,
1973,
393,
694,
697,
1683,
338,
766,
14214,
29889,
13,
462,
462,
308,
3940,
393,
445,
338,
478,
24422,
402,
1430,
1001,
29949,
3308,
448,
565,
599,
10808,
29879,
526,
13,
462,
462,
308,
4586,
29892,
360,
11770,
3580,
674,
4480,
2745,
727,
526,
13,
462,
462,
308,
3625,
10808,
29879,
29991,
313,
3596,
916,
18893,
674,
1065,
263,
13,
462,
462,
308,
2323,
1889,
29892,
17126,
310,
10808,
8744,
1846,
910,
338,
13,
462,
462,
308,
278,
5232,
342,
4464,
29991,
13,
462,
1678,
360,
5005,
17870,
3580,
29918,
29940,
1955,
1529,
29931,
268,
448,
21981,
4464,
29889,
10057,
1319,
451,
304,
2125,
701,
2086,
1568,
13,
462,
462,
308,
7788,
373,
278,
10808,
29892,
541,
372,
674,
1018,
304,
679,
13,
462,
462,
308,
2712,
2309,
29889,
910,
338,
8473,
1135,
402,
1430,
1001,
29949,
3308,
29892,
541,
372,
13,
462,
462,
308,
3508,
29915,
29873,
278,
5172,
342,
29889,
910,
4464,
338,
278,
2322,
322,
13,
462,
462,
308,
338,
13622,
363,
1556,
5855,
29889,
13,
462,
1678,
360,
5005,
17870,
3580,
29918,
10051,
29954,
26785,
18474,
448,
4059,
3663,
573,
4464,
29889,
910,
4464,
1136,
11376,
916,
4160,
29892,
13,
462,
462,
308,
541,
372,
1122,
29178,
10174,
8763,
8679,
373,
13,
462,
462,
308,
920,
916,
10174,
23389,
29889,
910,
338,
8473,
1135,
13,
462,
462,
308,
405,
1955,
1529,
29931,
29892,
322,
338,
13622,
363,
12647,
29899,
17001,
13,
462,
462,
308,
5855,
29889,
13,
462,
1678,
360,
5005,
17870,
3580,
29918,
12194,
1525,
2303,
1678,
448,
7338,
10291,
4464,
29889,
910,
4464,
10579,
1136,
11376,
916,
13,
462,
462,
308,
4160,
29892,
541,
6521,
278,
916,
10174,
526,
773,
13,
462,
462,
308,
263,
7282,
11910,
310,
278,
10808,
29892,
372,
674,
29178,
13,
462,
462,
308,
29178,
10174,
8763,
29889,
910,
338,
8473,
1135,
13,
462,
462,
308,
16369,
29954,
26785,
18474,
29892,
322,
338,
13622,
363,
4100,
13,
462,
462,
308,
5855,
29889,
13,
462,
1678,
360,
5005,
17870,
3580,
29918,
11601,
29907,
1307,
1718,
1678,
448,
405,
1682,
1945,
4464,
29889,
910,
4464,
947,
6058,
2050,
916,
13,
462,
462,
308,
4160,
29892,
322,
925,
6057,
408,
1784,
10174,
408,
372,
508,
13,
462,
462,
308,
2758,
313,
7827,
1353,
310,
28337,
467,
910,
338,
1568,
13,
462,
462,
308,
8473,
1135,
8528,
29911,
1525,
2303,
29892,
322,
338,
13622,
363,
13,
462,
462,
308,
2289,
4100,
5855,
29889,
3940,
393,
445,
1122,
13,
462,
462,
308,
2326,
29876,
366,
1407,
26230,
1302,
29899,
1287,
414,
18232,
292,
1623,
596,
13,
462,
462,
308,
3050,
411,
15905,
29888,
548,
29879,
29892,
577,
671,
805,
4362,
368,
29991,
13,
462,
259,
13,
462,
29871,
26141,
7370,
1222,
9422,
29901,
13,
462,
1678,
2391,
848,
3625,
29901,
13,
462,
418,
1273,
29898,
29097,
29897,
29879,
1192,
2917,
29899,
1445,
29922,
2917,
29889,
25162,
1051,
13,
462,
1678,
360,
3427,
848,
29901,
13,
462,
418,
1273,
29898,
29097,
29897,
29879,
1192,
2917,
29899,
1445,
29922,
2917,
29889,
25162,
16766,
13,
462,
1678,
8561,
24580,
29901,
13,
462,
418,
1273,
29898,
29097,
29897,
29879,
1192,
2917,
29899,
1445,
29922,
2917,
29889,
25162,
6492,
13,
462,
1678,
13905,
5285,
29901,
13,
462,
418,
1273,
29898,
29097,
29897,
29879,
1192,
2917,
29899,
1445,
29922,
2917,
29889,
25162,
2295,
13,
462,
1678,
8561,
24580,
322,
1480,
1962,
29901,
13,
462,
418,
1273,
29898,
29097,
29897,
29879,
1192,
2917,
29899,
1445,
29922,
2917,
29889,
25162,
1192,
21027,
29899,
4905,
543,
25393,
29892,
1445,
29908,
2474,
13,
462,
1669,
1192,
21027,
29899,
1445,
543,
1357,
1188,
29889,
3945,
29908,
6492,
13,
462,
29871,
5124,
4968,
13,
18884,
1873,
353,
525,
19737,
9908,
3712,
325,
29915,
718,
4770,
3259,
1649,
29897,
396,
8198,
29901,
1273,
29898,
29097,
29897,
29879,
19745,
29879,
304,
11451,
3665,
3712,
29889,
2272,
13,
13,
1678,
1014,
862,
4253,
353,
13812,
29889,
1202,
29918,
1491,
862,
4253,
29898,
2527,
485,
279,
543,
18248,
613,
2731,
353,
376,
18248,
613,
1371,
2433,
9868,
1495,
13,
13,
1678,
1667,
29918,
25707,
353,
8170,
287,
21533,
580,
13,
1678,
1667,
29918,
25707,
1839,
489,
2917,
29899,
1445,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
2917,
29918,
1445,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
7724,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
5896,
263,
5285,
934,
363,
10772,
9908,
3712,
304,
671,
29889,
10829,
11428,
304,
1192,
2917,
29899,
1359,
29892,
541,
363,
599,
1147,
5824,
322,
3987,
29889,
742,
13,
4706,
500,
13,
1678,
1667,
29918,
25707,
1839,
489,
2917,
29899,
348,
842,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
4397,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
2917,
29918,
348,
842,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
26865,
29903,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
2525,
842,
313,
272,
3349,
29897,
3651,
1156,
599,
5285,
6055,
313,
2917,
934,
322,
1899,
1196,
29897,
505,
1063,
7500,
29889,
19191,
363,
478,
1718,
29903,
338,
376,
26865,
29902,
6181,
29896,
29936,
26865,
29902,
6181,
29906,
29936,
856,
1642,
1152,
7136,
10772,
9908,
3712,
5285,
29892,
278,
2286,
5877,
338,
376,
2917,
29889,
1989,
1642,
1152,
6492,
5285,
29892,
278,
2286,
5877,
4477,
278,
6492,
2980,
21277,
3402,
472,
738,
3233,
29892,
321,
29889,
29887,
29889,
376,
5317,
29989,
1491,
5317,
29989,
5552,
29989,
1491,
5552,
613,
376,
5317,
29989,
1491,
5317,
613,
470,
1584,
376,
5317,
1642,
313,
13393,
6492,
1371,
363,
901,
4902,
11211,
278,
6492,
21277,
3402,
1846,
3940,
393,
11077,
3058,
3651,
508,
4556,
10772,
9908,
3712,
304,
451,
1065,
29889,
742,
13,
4706,
500,
13,
1678,
1667,
29918,
25707,
1839,
489,
21027,
29899,
4905,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
12015,
12336,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
21027,
29918,
4905,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
10299,
1598,
988,
304,
1962,
304,
29889,
25186,
3160,
934,
29892,
27591,
29892,
322,
380,
20405,
29889,
26905,
14391,
508,
367,
6790,
29892,
409,
546,
630,
411,
263,
16694,
29889,
742,
13,
4706,
500,
13,
1678,
1667,
29918,
25707,
1839,
489,
21027,
29899,
1445,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
7724,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
21027,
29918,
1445,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
3644,
1962,
1259,
304,
263,
934,
29892,
6084,
278,
934,
2224,
304,
4078,
304,
29889,
742,
13,
4706,
500,
13,
1678,
1667,
29918,
25707,
1839,
489,
21027,
29899,
5563,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
14480,
29918,
1307,
29963,
6670,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
21027,
29918,
5563,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
2697,
278,
12183,
3233,
363,
10772,
9908,
3712,
29889,
742,
13,
4706,
500,
13,
1678,
1667,
29918,
25707,
1839,
489,
1526,
29899,
20472,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
29918,
3009,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
1526,
29918,
20472,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
4205,
519,
6674,
307,
985,
292,
313,
1526,
29897,
5994,
17063,
297,
10772,
9908,
3712,
29889,
742,
13,
4706,
500,
13,
1678,
1667,
29918,
25707,
1839,
489,
1526,
29899,
29886,
21766,
29899,
8513,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
29829,
1955,
11937,
29918,
20387,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
1526,
29918,
29886,
21766,
29918,
8513,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
2697,
278,
20136,
4464,
363,
278,
6674,
307,
985,
292,
313,
1526,
29897,
5994,
17063,
297,
10772,
9908,
3712,
29889,
25186,
526,
402,
1430,
1001,
29949,
3308,
29892,
405,
1955,
1529,
29931,
29892,
16369,
29954,
26785,
18474,
29892,
8528,
29911,
1525,
2303,
29892,
322,
405,
23129,
1307,
1718,
29889,
402,
1430,
1001,
29949,
3308,
17498,
304,
916,
10808,
9074,
14793,
10174,
29892,
1550,
405,
23129,
1307,
1718,
29178,
29879,
408,
1784,
10174,
408,
372,
508,
17126,
310,
10808,
8744,
29889,
742,
13,
4706,
500,
13,
1678,
1667,
29918,
25707,
1839,
489,
1526,
29899,
21970,
29899,
13400,
2033,
353,
320,
13,
4706,
426,
13,
9651,
525,
2467,
29915,
1678,
584,
525,
8899,
742,
13,
9651,
525,
2527,
485,
279,
29915,
259,
584,
525,
13967,
29918,
6271,
3308,
742,
13,
9651,
525,
7854,
29915,
418,
584,
525,
1526,
29918,
21970,
29918,
13400,
742,
13,
9651,
525,
8477,
29915,
418,
584,
525,
24445,
278,
1353,
310,
10808,
29879,
393,
278,
6674,
307,
985,
292,
313,
1526,
29897,
5994,
17063,
297,
10772,
9908,
3712,
508,
671,
29889,
742,
13,
4706,
500,
13,
13,
1678,
788,
29918,
5085,
29898,
16680,
29892,
7700,
29892,
1667,
29918,
25707,
29897,
13,
13,
1678,
396,
319,
1051,
1899,
13,
1678,
1051,
29918,
16680,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
877,
1761,
742,
1371,
2433,
1293,
29879,
278,
848,
731,
3625,
363,
671,
29889,
742,
320,
13,
4706,
6139,
353,
525,
1293,
29879,
278,
848,
731,
3625,
363,
671,
29889,
742,
13,
4706,
9358,
26140,
353,
1426,
6312,
29889,
7176,
296,
703,
15945,
29905,
13,
462,
1152,
1192,
1272,
29899,
2230,
29899,
4181,
29901,
13,
462,
259,
7740,
3106,
931,
10340,
313,
4878,
29899,
23149,
3321,
1125,
13,
462,
268,
269,
29901,
6923,
1678,
286,
29901,
6233,
1678,
298,
29901,
6199,
1678,
270,
29901,
3841,
13,
462,
268,
281,
29901,
11405,
418,
341,
29901,
7378,
268,
343,
29901,
2440,
13,
462,
259,
1152,
2777,
29892,
304,
6084,
29871,
29945,
7378,
29892,
29871,
29941,
6233,
29892,
29871,
29906,
6923,
29901,
13,
462,
268,
376,
29945,
29924,
29871,
29941,
29885,
29871,
29906,
29879,
29908,
13,
462,
1678,
13,
462,
259,
26905,
3161,
411,
1021,
931,
10340,
674,
367,
2533,
2168,
701,
29892,
13,
462,
259,
17126,
310,
2602,
470,
1797,
29889,
376,
29941,
29885,
29871,
29906,
29879,
29871,
29945,
29885,
29908,
1275,
376,
29947,
29885,
29871,
29906,
29879,
29908,
13,
462,
1678,
13,
462,
259,
23857,
338,
451,
263,
7531,
931,
19471,
29892,
577,
445,
3913,
278,
13,
462,
259,
11301,
376,
29896,
1629,
353,
29871,
29941,
29953,
29945,
3841,
1642,
13,
462,
1678,
13,
462,
259,
3940,
393,
22146,
2440,
1122,
505,
777,
24230,
1446,
29892,
1074,
29901,
13,
462,
268,
1732,
597,
2417,
29889,
510,
29914,
29874,
29914,
29955,
29953,
29945,
29929,
29929,
29900,
13,
462,
5124,
4968,
320,
13,
462,
883,
2620,
29918,
1990,
29922,
1191,
5510,
29889,
22131,
9868,
29648,
18522,
29897,
13,
1678,
788,
29918,
1761,
29918,
5085,
29898,
1761,
29918,
16680,
29892,
7700,
29897,
13,
13,
1678,
396,
518,
15070,
29962,
13,
1678,
16766,
29918,
16680,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
877,
15070,
742,
1371,
2433,
29928,
17204,
848,
515,
278,
848,
731,
29889,
742,
320,
13,
4706,
6139,
353,
1426,
6312,
29889,
7176,
296,
703,
15945,
29905,
13,
4706,
360,
17204,
848,
515,
278,
848,
731,
29889,
13,
308,
13,
4706,
512,
2276,
1169,
6273,
515,
518,
1761,
1822,
518,
1761,
29962,
6273,
1122,
367,
3734,
304,
671,
13,
4706,
518,
15070,
1822,
1152,
2472,
373,
518,
1761,
29962,
6273,
29892,
1074,
278,
518,
1761,
29962,
1371,
29889,
13,
4706,
5124,
4968,
320,
13,
4706,
883,
2620,
29918,
1990,
29922,
1191,
5510,
29889,
22131,
9868,
29648,
18522,
29897,
13,
1678,
788,
29918,
1761,
29918,
5085,
29898,
15070,
29918,
16680,
29892,
5852,
29897,
13,
1678,
788,
29918,
15070,
29918,
5085,
29898,
15070,
29918,
16680,
29892,
7700,
29897,
13,
13,
1678,
396,
518,
5317,
29962,
13,
1678,
6492,
29918,
16680,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
877,
5317,
742,
1371,
2433,
9832,
1078,
263,
6492,
2183,
6492,
4128,
29889,
742,
320,
13,
4706,
6139,
353,
1426,
6312,
29889,
7176,
296,
703,
15945,
29905,
13,
4706,
6760,
1078,
263,
6492,
2183,
6492,
4128,
29889,
13,
308,
13,
4706,
512,
2276,
1169,
6273,
515,
518,
1761,
29962,
322,
518,
15070,
1822,
518,
1761,
29962,
322,
518,
15070,
29962,
6273,
13,
4706,
1122,
367,
3734,
304,
671,
518,
5317,
1822,
1152,
2472,
373,
518,
1761,
29962,
322,
518,
15070,
29962,
13,
4706,
6273,
29892,
1074,
1009,
18067,
1371,
29889,
13,
308,
13,
4706,
6058,
29923,
29901,
4525,
3987,
526,
12862,
448,
5998,
366,
1033,
313,
17765,
9247,
29897,
13,
795,
6492,
773,
1438,
3987,
29892,
372,
723,
3117,
367,
1407,
6788,
1319,
29991,
13,
795,
2178,
310,
1438,
3987,
508,
367,
3342,
3025,
2295,
934,
29892,
607,
338,
13,
795,
1568,
6775,
322,
3109,
26952,
29991,
4525,
3987,
526,
6839,
304,
367,
13,
795,
1304,
297,
9589,
651,
411,
263,
2295,
934,
363,
20831,
292,
3058,
13,
795,
5285,
3987,
322,
6724,
963,
29889,
13,
1669,
13,
4706,
5124,
4968,
320,
13,
4706,
9358,
26140,
353,
1426,
6312,
29889,
7176,
296,
703,
15945,
29905,
13,
4706,
897,
4951,
2187,
1101,
2845,
263,
2560,
995,
1051,
1788,
470,
263,
2560,
13,
4706,
1820,
29899,
1767,
5101,
1788,
29889,
13,
308,
13,
4706,
7865,
2391,
2184,
29901,
13,
3986,
450,
995,
1051,
1788,
3430,
763,
29901,
13,
3986,
376,
1767,
29896,
29892,
1767,
29906,
29892,
1767,
29941,
29892,
17794,
13,
308,
13,
3986,
1152,
278,
995,
1051,
1788,
29892,
1819,
526,
13055,
411,
844,
294,
29889,
13,
308,
13,
4706,
7670,
29899,
1917,
349,
1466,
2184,
29901,
13,
3986,
450,
1820,
29899,
1767,
5101,
1788,
3430,
763,
29901,
13,
3986,
376,
1989,
29896,
29901,
1767,
29896,
29892,
1767,
29906,
29936,
1989,
29906,
29901,
1767,
29941,
29892,
1767,
29946,
29892,
17794,
13,
308,
13,
3986,
1152,
278,
1820,
29899,
1767,
5101,
1788,
29892,
263,
1820,
338,
5643,
491,
263,
8104,
29892,
13,
3986,
1819,
526,
13055,
411,
844,
294,
29892,
322,
1820,
29899,
1767,
11000,
526,
13,
3986,
13055,
491,
3031,
5283,
787,
29889,
13,
965,
13,
3986,
960,
6055,
526,
1641,
731,
29892,
1819,
508,
1106,
763,
1014,
1989,
29922,
1767,
29889,
13,
3986,
739,
338,
263,
5101,
411,
263,
1014,
29899,
1989,
322,
263,
1014,
29899,
1767,
29892,
13055,
491,
385,
13,
3986,
5186,
1804,
29889,
13,
3986,
4525,
526,
2000,
1014,
29899,
1989,
29899,
1767,
11000,
29892,
322,
526,
297,
2058,
310,
1819,
13,
3986,
297,
263,
1820,
29899,
1767,
1788,
29889,
13,
965,
13,
3986,
2688,
508,
1106,
763,
445,
29901,
13,
3986,
376,
1989,
29896,
29901,
29879,
1989,
29896,
29922,
29879,
791,
29896,
29892,
29879,
1989,
29906,
29922,
29879,
791,
29906,
29936,
17794,
13,
965,
13,
4706,
7670,
29914,
1917,
405,
11500,
29901,
13,
3986,
1858,
1862,
322,
1014,
26762,
526,
18694,
2038,
411,
6492,
29937,
322,
1014,
5317,
6552,
13,
3986,
8307,
29889,
2688,
526,
3763,
23481,
363,
278,
24580,
322,
1014,
26762,
29889,
13,
3986,
887,
4529,
963,
411,
1192,
5317,
29899,
7922,
29899,
26762,
322,
1192,
5317,
29899,
7922,
29899,
1491,
26762,
29889,
13,
965,
13,
3986,
2688,
508,
2125,
373,
738,
1024,
448,
363,
2777,
29901,
13,
9651,
1192,
5317,
29899,
7922,
29899,
26762,
543,
29874,
29892,
29890,
29908,
1192,
5317,
29899,
7922,
29899,
1491,
26762,
543,
29874,
29901,
29896,
29892,
29906,
29936,
29890,
29901,
29941,
29892,
29946,
29908,
13,
965,
13,
3986,
12433,
12040,
338,
2309,
491,
6257,
411,
278,
9939,
21277,
29892,
322,
769,
13,
3986,
4417,
5684,
5224,
11174,
304,
278,
1492,
29892,
409,
412,
279,
630,
491,
8450,
267,
29889,
13,
3986,
1152,
2777,
29901,
13,
9651,
1880,
29989,
27891,
29989,
677,
13,
965,
13,
3986,
512,
278,
1206,
310,
24580,
322,
1014,
26762,
29892,
278,
21277,
338,
408,
4477,
29901,
13,
9651,
6492,
29989,
1491,
5317,
29989,
12715,
13,
965,
13,
3986,
910,
338,
278,
22006,
11380,
363,
6611,
297,
1820,
29914,
1767,
11000,
29889,
13,
308,
13,
4706,
23125,
897,
4951,
2187,
29901,
13,
3986,
3940,
393,
6273,
508,
367,
6790,
2999,
3064,
304,
10032,
13,
3986,
278,
3309,
310,
697,
2980,
29889,
1152,
2777,
29901,
13,
965,
13,
9651,
1192,
5317,
29899,
7922,
29899,
26762,
543,
5317,
29896,
29908,
1192,
5317,
29899,
7922,
29899,
26762,
543,
5317,
29906,
29908,
13,
3986,
338,
278,
1021,
408,
13,
9651,
1192,
5317,
29899,
7922,
29899,
26762,
543,
5317,
29896,
29892,
5317,
29906,
29908,
13,
632,
13,
3986,
910,
1736,
17126,
310,
2980,
1797,
29889,
910,
338,
18443,
287,
29892,
1951,
13,
3986,
445,
6911,
411,
2980,
13013,
29889,
313,
797,
3153,
29892,
6273,
13,
3986,
316,
1338,
411,
263,
2702,
6492,
470,
1014,
5317,
508,
367,
27831,
4208,
1846,
13,
965,
13,
3986,
1192,
5317,
29899,
7922,
29899,
26762,
13,
9651,
7865,
1051,
310,
6492,
23481,
29889,
13,
632,
13,
9651,
910,
2980,
338,
5195,
29984,
3120,
19386,
304,
7738,
263,
6492,
29889,
13,
632,
13,
9651,
8741,
29901,
13,
795,
376,
5317,
29896,
29892,
10736,
29906,
29892,
9136,
5317,
29941,
29908,
13,
1669,
13,
3986,
1192,
5317,
29899,
7922,
29899,
1491,
26762,
13,
9651,
7670,
29899,
1767,
11000,
310,
6492,
23481,
322,
1014,
5317,
23481,
29889,
13,
632,
13,
9651,
910,
2980,
338,
5195,
29984,
3120,
19386,
304,
7738,
263,
6492,
29889,
13,
632,
13,
9651,
8741,
313,
4746,
2038,
6492,
23481,
1125,
13,
795,
376,
5317,
29896,
29901,
1491,
29896,
29892,
1491,
29906,
29936,
10736,
29906,
29901,
10736,
29892,
1753,
29936,
9136,
5317,
29941,
29901,
29879,
29896,
29892,
29879,
29906,
29908,
13,
1669,
13,
3986,
1192,
5317,
29899,
7922,
29899,
1165,
267,
13,
9651,
7670,
29899,
1767,
11000,
310,
6492,
29914,
1491,
5317,
23481,
29892,
322,
27815,
4426,
13,
9651,
3342,
408,
1014,
29899,
1989,
29899,
1767,
11000,
29889,
910,
338,
278,
937,
2980,
304,
13,
9651,
671,
1820,
21277,
22006,
29889,
13,
632,
13,
9651,
7740,
3106,
21277,
8393,
29901,
13,
795,
6492,
29989,
1491,
5317,
29989,
29916,
13,
18884,
1060,
9685,
6055,
29889,
13,
795,
6492,
29989,
1491,
5317,
29989,
29891,
13,
18884,
612,
9685,
6055,
29889,
13,
632,
13,
9651,
7740,
3106,
8393,
313,
1491,
29899,
1989,
29899,
1767,
11000,
1125,
13,
795,
260,
7358,
29922,
29937,
13,
18884,
22402,
1353,
310,
260,
7358,
29889,
13,
795,
3858,
29922,
24461,
6670,
13,
18884,
22402,
278,
9685,
3858,
29889,
13,
632,
13,
9651,
8741,
313,
4746,
2038,
5235,
1125,
13,
795,
376,
5317,
29896,
29989,
1491,
29896,
29989,
29916,
29901,
29873,
7358,
29922,
29945,
29892,
1643,
29922,
10994,
3186,
29908,
13,
632,
13,
3986,
1192,
5317,
29899,
7922,
29899,
1272,
13,
9651,
7670,
29899,
1767,
11000,
310,
6492,
29914,
1491,
5317,
23481,
29892,
411,
848,
4235,
408,
13,
9651,
1819,
29889,
910,
884,
3913,
1820,
21277,
22006,
29889,
13,
632,
13,
9651,
910,
2980,
338,
5195,
29984,
3120,
19386,
304,
7738,
263,
6492,
29889,
13,
632,
13,
9651,
7740,
3106,
21277,
8393,
29901,
13,
795,
6492,
29989,
1491,
5317,
29989,
29916,
13,
18884,
1060,
6492,
1259,
6055,
29889,
13,
795,
6492,
29989,
1491,
5317,
29989,
29891,
13,
18884,
612,
6492,
1259,
6055,
29889,
13,
632,
13,
9651,
2630,
1041,
29901,
13,
795,
3630,
1746,
3161,
29889,
12048,
2164,
773,
263,
1422,
21277,
13,
795,
1788,
29901,
13,
18884,
317,
4330,
29925,
29914,
11116,
29989,
3738,
27286,
13,
1669,
13,
795,
317,
4330,
29925,
29914,
11116,
338,
2845,
376,
2710,
29908,
470,
376,
273,
29880,
613,
541,
451,
1716,
29889,
13,
1669,
13,
795,
1152,
2777,
29901,
6300,
29989,
12328,
29918,
7827,
29989,
12676,
13,
632,
13,
9651,
8741,
313,
4746,
2038,
5235,
1125,
13,
795,
376,
10736,
29906,
29989,
10736,
29989,
29916,
29901,
16394,
29936,
10736,
29906,
29989,
10736,
29989,
29891,
29901,
2710,
29989,
12328,
29918,
7827,
29989,
12676,
29892,
2710,
29989,
12328,
29918,
7827,
29989,
4172,
3359,
29908,
13,
632,
13,
3986,
1192,
5317,
29899,
7922,
29899,
3257,
13,
9651,
7670,
29899,
1767,
11000,
310,
6492,
29914,
1491,
5317,
23481,
29892,
411,
17735,
408,
1819,
29889,
910,
13,
9651,
884,
3913,
1820,
21277,
22006,
29892,
541,
297,
263,
10029,
1422,
982,
29889,
13,
632,
13,
9651,
7740,
3106,
21277,
8393,
29901,
13,
795,
6492,
29989,
3257,
13,
18884,
18527,
363,
278,
3353,
6492,
29889,
13,
795,
6492,
29989,
1491,
5317,
29989,
3257,
13,
18884,
18527,
363,
278,
1014,
5317,
29889,
13,
795,
6492,
29989,
1491,
5317,
29989,
26172,
13,
18884,
18527,
363,
278,
1014,
5317,
29915,
29879,
15983,
29889,
13,
632,
13,
9651,
2630,
1041,
29901,
13,
795,
450,
3611,
363,
278,
6790,
3611,
5352,
29889,
13,
632,
13,
9651,
8741,
313,
4746,
2038,
5235,
1125,
13,
795,
376,
10736,
29906,
29989,
3257,
29901,
7030,
29936,
10736,
29906,
29989,
10736,
29989,
3257,
29901,
4035,
7030,
29936,
10736,
29906,
29989,
10736,
29989,
26172,
29901,
22988,
355,
7030,
29908,
13,
3986,
1192,
5317,
29899,
7922,
29899,
4905,
13,
9651,
7670,
29899,
1767,
11000,
310,
6492,
322,
1962,
10898,
29889,
13,
632,
13,
9651,
8741,
313,
4746,
2038,
5235,
1125,
13,
795,
376,
5317,
29896,
29901,
1357,
5317,
29896,
29889,
2732,
29936,
10736,
29906,
29901,
10736,
5317,
29889,
2732,
29936,
9136,
5317,
29941,
29901,
9136,
29889,
2732,
29908,
13,
3986,
1192,
5317,
29899,
7922,
29899,
11027,
13,
9651,
7670,
29899,
1767,
11000,
310,
6492,
23481,
29892,
322,
6055,
3342,
408,
13,
9651,
1014,
29899,
1989,
29899,
1767,
11000,
29889,
13,
632,
13,
9651,
910,
2980,
338,
5195,
29984,
3120,
19386,
304,
7738,
263,
6492,
29889,
13,
632,
13,
9651,
7740,
3106,
8393,
313,
1491,
29899,
1989,
29899,
1767,
11000,
1125,
13,
795,
3646,
29918,
2311,
29922,
29937,
29916,
29937,
13,
18884,
22402,
278,
1962,
6492,
3646,
2159,
29889,
13,
795,
270,
1631,
29922,
29937,
13,
18884,
22402,
278,
1962,
6492,
360,
2227,
29889,
13,
632,
13,
9651,
8741,
313,
4746,
2038,
5235,
1125,
13,
795,
376,
5317,
29896,
29901,
5182,
29918,
2311,
29922,
29945,
29929,
29945,
29916,
29955,
29900,
29900,
29892,
29881,
1631,
29922,
29945,
29900,
29908,
13,
3986,
1192,
5317,
29899,
7922,
29899,
6341,
29899,
16908,
13,
9651,
7670,
29899,
1767,
11000,
310,
2888,
3651,
304,
367,
1304,
297,
278,
6492,
13,
9651,
3611,
322,
1962,
934,
1024,
29889,
9586,
1849,
526,
1206,
1663,
575,
3321,
29889,
13,
632,
13,
9651,
450,
7829,
2286,
5023,
322,
8744,
3918,
338,
13,
9651,
773,
5224,
4878,
363,
2286,
5023,
29892,
322,
7568,
4878,
363,
13,
9651,
2286,
8744,
297,
278,
3611,
322,
29914,
272,
1962,
934,
1024,
29889,
13,
632,
13,
9651,
8741,
29901,
13,
795,
376,
4548,
333,
29901,
4548,
29918,
29906,
29936,
8921,
29901,
1552,
8921,
29908,
13,
1669,
13,
795,
2401,
5890,
2888,
3651,
304,
6492,
3611,
322,
1962,
934,
1024,
29901,
13,
18884,
1192,
5317,
29899,
7922,
29899,
3257,
29871,
376,
5317,
29896,
29901,
1252,
15362,
1273,
5746,
29925,
1367,
29995,
448,
2648,
1273,
20656,
29950,
1955,
23577,
13,
462,
29871,
7867,
29901,
13,
462,
1678,
1222,
15362,
1518,
29918,
29906,
448,
2648,
278,
8921,
13,
18884,
1192,
5317,
29899,
7922,
29899,
4905,
376,
5317,
29896,
29901,
5317,
29918,
29995,
5746,
29925,
1367,
29995,
19222,
20656,
29950,
1955,
15543,
2732,
29908,
13,
462,
29871,
7867,
29901,
13,
462,
1678,
6492,
29918,
4548,
29918,
29906,
29899,
1552,
8921,
29889,
2732,
13,
3986,
1192,
5317,
29899,
5675,
29899,
3972,
29879,
13,
9651,
960,
6790,
29892,
6336,
1207,
1661,
29899,
735,
9696,
17525,
29892,
13,
9651,
408,
4312,
29889,
1939,
5684,
6273,
470,
3987,
4312,
29889,
13,
632,
13,
4706,
6058,
29923,
29901,
4525,
3987,
526,
12862,
448,
5998,
366,
1033,
313,
17765,
9247,
29897,
13,
795,
6492,
773,
1438,
3987,
29892,
372,
723,
3117,
367,
1407,
6788,
1319,
29991,
13,
795,
2178,
310,
1438,
3987,
508,
367,
3342,
3025,
2295,
934,
29892,
607,
338,
13,
795,
1568,
6775,
322,
3109,
26952,
29991,
4525,
3987,
526,
6839,
304,
367,
13,
795,
1304,
297,
9589,
651,
411,
263,
2295,
934,
363,
20831,
292,
3058,
13,
795,
5285,
3987,
322,
6724,
963,
29889,
13,
4706,
5124,
4968,
13,
4706,
883,
2620,
29918,
1990,
29922,
1191,
5510,
29889,
22131,
9868,
29648,
18522,
29897,
13,
13,
1678,
788,
29918,
1761,
29918,
5085,
29898,
5317,
29918,
16680,
29892,
5852,
29897,
13,
1678,
788,
29918,
15070,
29918,
5085,
29898,
5317,
29918,
16680,
29892,
5852,
29897,
13,
1678,
788,
29918,
5317,
29918,
5085,
29898,
5317,
29918,
16680,
29892,
7700,
29897,
13,
13,
1678,
396,
518,
2917,
29962,
13,
1678,
2295,
29918,
16680,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
877,
2917,
742,
1371,
2433,
4205,
12922,
29892,
15376,
29892,
322,
27401,
278,
5285,
29889,
742,
320,
13,
4706,
6139,
353,
1426,
6312,
29889,
7176,
296,
703,
15945,
29905,
13,
4706,
3295,
12922,
29892,
15376,
29892,
322,
27401,
278,
5285,
29889,
13,
308,
13,
4706,
512,
2276,
1169,
6273,
515,
518,
1761,
1402,
518,
15070,
1402,
322,
518,
5317,
1822,
518,
1761,
1402,
518,
15070,
1402,
13,
4706,
322,
518,
5317,
29962,
6273,
1122,
367,
3734,
304,
671,
518,
2917,
1822,
1152,
2472,
13,
4706,
373,
518,
1761,
1402,
518,
15070,
1402,
470,
518,
5317,
29962,
6273,
29892,
1074,
1009,
18067,
1371,
29889,
13,
4706,
5124,
4968,
320,
13,
4706,
883,
2620,
29918,
1990,
29922,
1191,
5510,
29889,
22131,
9868,
29648,
18522,
29897,
13,
1678,
788,
29918,
1761,
29918,
5085,
29898,
2917,
29918,
16680,
29892,
5852,
29897,
13,
1678,
788,
29918,
15070,
29918,
5085,
29898,
2917,
29918,
16680,
29892,
5852,
29897,
13,
1678,
788,
29918,
5317,
29918,
5085,
29898,
2917,
29918,
16680,
29892,
5852,
29897,
13,
1678,
788,
29918,
2917,
29918,
5085,
29898,
2917,
29918,
16680,
29892,
7700,
29897,
13,
268,
13,
1678,
736,
13812,
13,
13,
1753,
6088,
29918,
517,
29918,
2917,
29898,
5510,
1125,
13,
1678,
396,
10886,
263,
2846,
3651,
29901,
13,
1678,
11451,
3665,
3712,
29918,
2917,
353,
6571,
13,
1678,
6492,
29918,
8977,
353,
6571,
13,
268,
13,
1678,
444,
10239,
6389,
13,
1678,
396,
3824,
29892,
25917,
278,
7136,
6273,
29889,
13,
1678,
565,
338,
842,
29918,
5415,
703,
2917,
29918,
1445,
613,
6088,
1125,
13,
4706,
396,
9280,
29892,
1423,
565,
278,
934,
4864,
29889,
13,
4706,
565,
2897,
29889,
2084,
29889,
275,
1445,
29898,
5510,
29889,
2917,
29918,
1445,
1125,
13,
9651,
396,
6212,
3456,
304,
2254,
13,
9651,
620,
353,
2295,
29889,
1359,
29898,
5510,
29889,
2917,
29918,
1445,
29897,
13,
632,
13,
9651,
565,
620,
1275,
6213,
29901,
13,
18884,
1596,
376,
11432,
29901,
6527,
451,
1722,
5285,
934,
3850,
13,
18884,
736,
313,
8516,
29892,
6213,
29892,
6213,
29897,
13,
632,
13,
9651,
11451,
3665,
3712,
29918,
2917,
353,
620,
29961,
29900,
29962,
13,
9651,
6492,
29918,
8977,
353,
620,
29961,
29896,
29962,
13,
4706,
1683,
29901,
13,
9651,
1596,
376,
11432,
29901,
20999,
934,
2224,
947,
451,
1863,
3850,
13,
9651,
736,
313,
8516,
29892,
6213,
29892,
6213,
29897,
13,
308,
13,
4706,
396,
15758,
403,
5285,
13,
4706,
2295,
29889,
15480,
29898,
2272,
3665,
3712,
29918,
2917,
29892,
6492,
29918,
8977,
29897,
13,
268,
13,
1678,
396,
2567,
1423,
363,
12183,
6389,
29991,
13,
1678,
934,
29918,
17590,
353,
7700,
13,
268,
13,
1678,
565,
338,
842,
29918,
5415,
703,
21027,
29918,
4905,
613,
6088,
1125,
13,
4706,
12183,
29918,
4905,
353,
6088,
29889,
21027,
29918,
4905,
13,
308,
13,
4706,
565,
12183,
29918,
4905,
2804,
376,
1115,
13,
9651,
12183,
29918,
4905,
353,
12183,
29918,
4905,
29889,
5451,
28165,
1159,
13,
9651,
12183,
29918,
4905,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
12183,
29918,
4905,
29962,
13,
632,
13,
9651,
2186,
29918,
21027,
29918,
4905,
353,
5159,
13,
632,
13,
9651,
363,
1480,
29918,
29877,
297,
12183,
29918,
4905,
29901,
13,
18884,
565,
1480,
29918,
29877,
1275,
525,
1445,
2396,
13,
462,
1678,
934,
29918,
17590,
353,
5852,
13,
18884,
25342,
1480,
29918,
29877,
1275,
525,
25393,
2396,
13,
462,
1678,
2186,
29918,
21027,
29918,
4905,
29889,
4397,
29898,
9675,
29889,
25393,
29897,
13,
18884,
25342,
1480,
29918,
29877,
1275,
525,
303,
20405,
2396,
13,
462,
1678,
2186,
29918,
21027,
29918,
4905,
29889,
4397,
29898,
9675,
29889,
303,
20405,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
1596,
376,
11432,
29901,
21403,
12183,
1962,
29991,
15758,
1962,
29901,
27591,
29892,
380,
20405,
29892,
934,
29908,
13,
462,
1678,
736,
313,
8516,
29892,
6213,
29892,
6213,
29897,
13,
9651,
12183,
29918,
4905,
353,
2186,
29918,
21027,
29918,
4905,
13,
1678,
1683,
29901,
13,
4706,
12183,
29918,
4905,
353,
518,
10876,
29889,
25393,
4514,
13,
268,
13,
1678,
565,
12183,
29918,
4905,
322,
934,
29918,
17590,
322,
338,
842,
29918,
5415,
703,
21027,
29918,
1445,
613,
6088,
1125,
13,
4706,
12183,
29918,
1445,
353,
6088,
29889,
21027,
29918,
1445,
13,
1678,
1683,
29901,
13,
4706,
12183,
29918,
1445,
353,
6213,
13,
268,
13,
1678,
565,
338,
842,
29918,
5415,
703,
21027,
29918,
5563,
613,
6088,
1125,
13,
4706,
12183,
29918,
5563,
353,
6088,
29889,
21027,
29918,
5563,
13,
4706,
12183,
29918,
5563,
353,
12183,
29918,
5563,
29889,
17010,
580,
13,
4706,
565,
12183,
29918,
5563,
1275,
376,
11690,
1115,
13,
9651,
12183,
29918,
5563,
353,
12183,
29889,
11690,
13,
4706,
25342,
12183,
29918,
5563,
1275,
376,
29956,
25614,
1115,
13,
9651,
12183,
29918,
5563,
353,
12183,
29889,
29956,
25614,
13,
4706,
25342,
12183,
29918,
5563,
1275,
376,
11432,
1115,
13,
9651,
12183,
29918,
5563,
353,
12183,
29889,
11432,
13,
4706,
25342,
12183,
29918,
5563,
1275,
376,
11341,
1806,
2965,
1964,
1115,
13,
9651,
12183,
29918,
5563,
353,
12183,
29889,
11341,
1806,
2965,
1964,
13,
4706,
25342,
12183,
29918,
5563,
1275,
376,
18525,
1115,
13,
9651,
12183,
29918,
5563,
353,
12183,
29889,
18525,
13,
4706,
1683,
29901,
13,
9651,
1596,
376,
11432,
29901,
21403,
12183,
3233,
6790,
3850,
13,
9651,
1596,
376,
7211,
11174,
29901,
15233,
29892,
399,
25614,
29892,
14431,
29892,
15600,
1806,
2965,
1964,
29892,
21681,
29908,
13,
9651,
736,
313,
8516,
29892,
6213,
29892,
6213,
29897,
13,
1678,
1683,
29901,
13,
4706,
12183,
29918,
5563,
353,
12183,
29889,
11690,
13,
268,
13,
1678,
565,
338,
842,
29918,
5415,
703,
1526,
29918,
20472,
613,
6088,
1125,
13,
4706,
11451,
3665,
3712,
29918,
2917,
1839,
1526,
29918,
20472,
2033,
353,
6088,
29889,
1526,
29918,
20472,
13,
268,
13,
1678,
565,
338,
842,
29918,
5415,
703,
1526,
29918,
29886,
21766,
29918,
8513,
613,
6088,
1125,
13,
4706,
22326,
29918,
29886,
21766,
29918,
8513,
353,
6088,
29889,
1526,
29918,
29886,
21766,
29918,
8513,
13,
4706,
22326,
29918,
29886,
21766,
29918,
8513,
353,
22326,
29918,
29886,
21766,
29918,
8513,
29889,
17010,
580,
13,
4706,
565,
22326,
29918,
29886,
21766,
29918,
8513,
1275,
376,
24647,
1001,
29949,
3308,
1115,
13,
9651,
11451,
3665,
3712,
29918,
2917,
1839,
1526,
29918,
29886,
21766,
29918,
8513,
2033,
353,
376,
24647,
1001,
29949,
3308,
29908,
13,
4706,
25342,
22326,
29918,
29886,
21766,
29918,
8513,
1275,
376,
29940,
1955,
1529,
29931,
1115,
13,
9651,
11451,
3665,
3712,
29918,
2917,
1839,
1526,
29918,
29886,
21766,
29918,
8513,
2033,
353,
376,
29940,
1955,
1529,
29931,
29908,
13,
4706,
25342,
22326,
29918,
29886,
21766,
29918,
8513,
1275,
376,
10051,
29954,
26785,
18474,
1115,
13,
9651,
11451,
3665,
3712,
29918,
2917,
1839,
1526,
29918,
29886,
21766,
29918,
8513,
2033,
353,
376,
10051,
29954,
26785,
18474,
29908,
13,
4706,
25342,
22326,
29918,
29886,
21766,
29918,
8513,
1275,
376,
12194,
1525,
2303,
1115,
13,
9651,
11451,
3665,
3712,
29918,
2917,
1839,
1526,
29918,
29886,
21766,
29918,
8513,
2033,
353,
376,
12194,
1525,
2303,
29908,
13,
4706,
25342,
22326,
29918,
29886,
21766,
29918,
8513,
1275,
376,
11601,
29907,
1307,
1718,
1115,
13,
9651,
11451,
3665,
3712,
29918,
2917,
1839,
1526,
29918,
29886,
21766,
29918,
8513,
2033,
353,
376,
11601,
29907,
1307,
1718,
29908,
13,
4706,
1683,
29901,
13,
9651,
1596,
376,
11432,
29901,
21403,
6674,
307,
985,
292,
313,
1526,
29897,
20136,
4464,
6790,
3850,
13,
9651,
1596,
376,
7211,
11174,
29901,
402,
1430,
1001,
29949,
3308,
29892,
405,
1955,
1529,
29931,
29892,
16369,
29954,
26785,
18474,
29892,
8528,
29911,
1525,
2303,
29892,
405,
23129,
1307,
1718,
29908,
13,
9651,
736,
313,
8516,
29892,
6213,
29892,
6213,
29897,
13,
1678,
1683,
29901,
13,
4706,
11451,
3665,
3712,
29918,
2917,
1839,
1526,
29918,
29886,
21766,
29918,
8513,
2033,
353,
376,
29940,
1955,
1529,
29931,
29908,
13,
268,
13,
1678,
565,
338,
842,
29918,
5415,
703,
1526,
29918,
21970,
29918,
13400,
613,
6088,
1125,
13,
4706,
565,
313,
5510,
29889,
1526,
29918,
21970,
29918,
13400,
467,
275,
26204,
7295,
13,
9651,
11451,
3665,
3712,
29918,
2917,
1839,
1526,
29918,
21970,
29918,
13400,
2033,
353,
938,
29898,
5510,
29889,
1526,
29918,
21970,
29918,
13400,
29897,
13,
4706,
1683,
29901,
13,
9651,
1596,
376,
11432,
29901,
21403,
6674,
307,
985,
292,
313,
1526,
29897,
10808,
4046,
29991,
450,
10808,
4046,
29908,
13,
9651,
1596,
376,
21969,
6084,
385,
6043,
1353,
310,
10808,
29879,
304,
4046,
671,
304,
1213,
13,
9651,
736,
313,
8516,
29892,
6213,
29892,
6213,
29897,
13,
268,
13,
1678,
396,
1334,
29915,
276,
7960,
448,
1235,
29915,
29879,
731,
701,
12183,
29991,
13,
1678,
17927,
353,
1480,
29889,
2344,
29898,
21027,
29918,
5563,
29892,
12183,
29918,
4905,
29892,
12183,
29918,
1445,
29897,
13,
268,
13,
1678,
396,
3645,
1286,
373,
29892,
591,
29915,
645,
12070,
304,
773,
278,
1480,
3883,
304,
1596,
6433,
13,
1678,
396,
714,
29889,
13,
268,
13,
1678,
444,
12782,
6389,
29892,
760,
29871,
29896,
13,
1678,
565,
6088,
29889,
18248,
1275,
376,
2917,
1115,
13,
4706,
396,
1334,
674,
871,
1303,
1192,
2917,
29899,
1359,
1244,
29889,
2178,
4045,
674,
367,
13,
4706,
396,
7120,
472,
278,
1095,
29889,
13,
4706,
565,
338,
842,
29918,
5415,
703,
2917,
29918,
1359,
613,
6088,
1125,
13,
9651,
565,
338,
842,
29918,
5415,
703,
2917,
29918,
1445,
613,
6088,
1125,
13,
18884,
29383,
703,
6362,
26458,
1192,
2917,
29899,
1359,
746,
1192,
2917,
29899,
1445,
338,
2307,
6790,
29991,
1192,
2917,
29899,
1359,
674,
5712,
278,
5285,
934,
6790,
297,
1192,
2917,
29899,
1445,
29889,
887,
881,
871,
6084,
697,
2980,
29892,
5821,
4201,
368,
1192,
2917,
29899,
1445,
23157,
13,
632,
13,
9651,
396,
9280,
29892,
1423,
565,
278,
934,
4864,
29889,
13,
9651,
565,
2897,
29889,
2084,
29889,
275,
1445,
29898,
5510,
29889,
2917,
29918,
1359,
1125,
13,
18884,
396,
6212,
3456,
304,
2254,
13,
18884,
620,
353,
2295,
29889,
1359,
29898,
5510,
29889,
2917,
29918,
1359,
29897,
13,
462,
13,
18884,
565,
620,
1275,
6213,
29901,
13,
462,
1678,
12187,
703,
11432,
29901,
6527,
451,
1722,
5285,
934,
29991,
1159,
13,
462,
1678,
736,
313,
8516,
29892,
6213,
29892,
6213,
29897,
13,
462,
13,
18884,
11451,
3665,
3712,
29918,
2917,
353,
620,
29961,
29900,
29962,
13,
18884,
6492,
29918,
8977,
353,
620,
29961,
29896,
29962,
13,
9651,
1683,
29901,
13,
18884,
12187,
703,
11432,
29901,
20999,
934,
2224,
947,
451,
1863,
29991,
1159,
13,
18884,
736,
313,
8516,
29892,
6213,
29892,
6213,
29897,
13,
632,
13,
9651,
396,
15758,
403,
5285,
13,
9651,
2295,
29889,
15480,
29898,
2272,
3665,
3712,
29918,
2917,
29892,
6492,
29918,
8977,
29897,
13,
268,
13,
1678,
444,
18399,
6389,
13,
1678,
396,
383,
3904,
323,
8890,
13,
268,
13,
1678,
565,
6088,
29889,
18248,
1275,
376,
5317,
29908,
470,
6088,
29889,
18248,
1275,
376,
2917,
1115,
13,
4706,
565,
338,
842,
29918,
5415,
703,
5317,
29918,
7922,
29918,
26762,
613,
6088,
1125,
13,
9651,
24580,
353,
9162,
1642,
7122,
29898,
5510,
29889,
5317,
29918,
7922,
29918,
26762,
467,
5451,
28165,
1159,
13,
9651,
396,
315,
14044,
786,
13,
9651,
24580,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
24580,
29962,
13,
632,
13,
9651,
363,
6492,
297,
24580,
29901,
13,
18884,
565,
451,
6492,
297,
6492,
29918,
8977,
29901,
13,
462,
1678,
565,
6492,
1275,
376,
1115,
13,
462,
4706,
29383,
703,
13919,
6492,
3553,
17809,
448,
6492,
3553,
508,
29915,
29873,
367,
9654,
29991,
1159,
13,
462,
4706,
29383,
703,
4013,
6492,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
4706,
6773,
13,
462,
1678,
6492,
29918,
8977,
29961,
5317,
29962,
353,
6571,
13,
632,
13,
4706,
565,
338,
842,
29918,
5415,
703,
5317,
29918,
7922,
29918,
1491,
26762,
613,
6088,
1125,
13,
9651,
396,
376,
5317,
29896,
29901,
1491,
29896,
29892,
1491,
29906,
29936,
10736,
29906,
29901,
10736,
29892,
1753,
29936,
9136,
5317,
29941,
29901,
29879,
29896,
29892,
29879,
29906,
29908,
13,
9651,
1014,
26762,
29918,
1753,
353,
12159,
1642,
7122,
29898,
5510,
29889,
5317,
29918,
7922,
29918,
1491,
26762,
467,
5451,
703,
29936,
1159,
13,
9651,
396,
315,
14044,
786,
13,
9651,
1014,
26762,
29918,
1753,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
1014,
26762,
29918,
1753,
29962,
13,
9651,
363,
1014,
5317,
29918,
1753,
297,
1014,
26762,
29918,
1753,
29901,
13,
18884,
396,
678,
2960,
29901,
6492,
29896,
29901,
1491,
29896,
29892,
1491,
29906,
13,
18884,
1014,
5317,
29918,
1753,
29918,
5451,
353,
1014,
5317,
29918,
1753,
29889,
5451,
703,
29901,
1159,
13,
18884,
1014,
5317,
29918,
1753,
29918,
5451,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
1014,
5317,
29918,
1753,
29918,
5451,
29962,
13,
462,
13,
18884,
396,
317,
23184,
6344,
29909,
2190,
11937,
23557,
6824,
6824,
21004,
29896,
29896,
29896,
29896,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29896,
29901,
437,
591,
505,
29871,
29906,
3161,
29973,
13,
18884,
565,
7431,
29898,
1491,
5317,
29918,
1753,
29918,
5451,
29897,
2804,
29871,
29906,
29901,
13,
462,
1678,
29383,
703,
13919,
1014,
5317,
5023,
17809,
448,
8340,
1820,
29899,
1767,
5101,
14210,
29879,
29915,
3850,
1273,
1014,
5317,
29918,
1753,
29897,
13,
462,
1678,
29383,
703,
29898,
2558,
29899,
1767,
5101,
881,
367,
1820,
29901,
1767,
448,
1207,
1854,
727,
526,
694,
4805,
784,
787,
14366,
1159,
13,
462,
1678,
29383,
703,
4013,
1014,
5317,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1286,
409,
21194,
372,
714,
29991,
13,
18884,
1014,
5317,
29918,
1753,
29918,
5317,
353,
1014,
5317,
29918,
1753,
29918,
5451,
29961,
29900,
29962,
13,
18884,
1014,
5317,
29918,
1753,
29918,
1491,
26762,
353,
1014,
5317,
29918,
1753,
29918,
5451,
29961,
29896,
29962,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29906,
29901,
947,
278,
6492,
4257,
1863,
29973,
29991,
29973,
13,
18884,
565,
451,
1014,
5317,
29918,
1753,
29918,
5317,
297,
6492,
29918,
8977,
29901,
13,
462,
1678,
29383,
703,
13919,
1014,
5317,
5023,
17809,
448,
278,
6492,
6790,
29892,
14210,
29879,
742,
947,
451,
1863,
3850,
1273,
1014,
5317,
29918,
1753,
29918,
5317,
29897,
13,
462,
1678,
29383,
703,
29923,
1983,
545,
805,
7807,
338,
1959,
29889,
960,
372,
338,
263,
716,
6492,
29892,
1207,
1854,
372,
338,
3342,
23157,
13,
462,
1678,
29383,
703,
4013,
1014,
5317,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1235,
29915,
29879,
1889,
1014,
26762,
29889,
13,
18884,
1014,
5317,
29918,
1753,
29918,
1491,
26762,
353,
1014,
5317,
29918,
1753,
29918,
1491,
26762,
29889,
5451,
28165,
1159,
13,
18884,
1014,
5317,
29918,
1753,
29918,
1491,
26762,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
1014,
5317,
29918,
1753,
29918,
1491,
26762,
29962,
13,
462,
13,
18884,
396,
349,
3445,
6492,
29918,
8977,
13,
18884,
565,
451,
376,
26762,
29908,
297,
6492,
29918,
8977,
29961,
1491,
5317,
29918,
1753,
29918,
5317,
5387,
13,
462,
1678,
6492,
29918,
8977,
29961,
1491,
5317,
29918,
1753,
29918,
5317,
29962,
3366,
26762,
3108,
353,
5159,
13,
462,
13,
18884,
396,
3462,
3448,
29991,
13,
18884,
363,
1014,
5317,
29918,
1753,
29918,
1491,
5317,
297,
1014,
5317,
29918,
1753,
29918,
1491,
26762,
29901,
13,
462,
1678,
6492,
29918,
8977,
29961,
1491,
5317,
29918,
1753,
29918,
5317,
29962,
3366,
26762,
16862,
4397,
3319,
1014,
5317,
29918,
1753,
29918,
1491,
5317,
584,
6571,
5615,
13,
462,
13,
18884,
396,
25679,
29991,
13,
632,
13,
4706,
565,
338,
842,
29918,
5415,
703,
5317,
29918,
7922,
29918,
1165,
267,
613,
6088,
1125,
13,
9651,
396,
376,
5317,
29896,
29989,
1491,
29896,
29989,
29916,
29901,
29873,
7358,
29922,
29945,
29892,
1643,
29922,
10994,
3186,
29908,
13,
9651,
27815,
29918,
1753,
353,
12159,
1642,
7122,
29898,
5510,
29889,
5317,
29918,
7922,
29918,
1165,
267,
467,
5451,
703,
29936,
1159,
13,
9651,
396,
315,
14044,
786,
13,
9651,
27815,
29918,
1753,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
27815,
29918,
1753,
29962,
13,
9651,
363,
9685,
29918,
1753,
297,
27815,
29918,
1753,
29901,
13,
18884,
396,
678,
2960,
29901,
6492,
29896,
29989,
1491,
29896,
29989,
29916,
29901,
29873,
7358,
29922,
29945,
29892,
1643,
29922,
10994,
3186,
13,
18884,
9685,
29918,
1753,
29918,
5451,
353,
9685,
29918,
1753,
29889,
5451,
703,
29901,
1159,
13,
18884,
9685,
29918,
1753,
29918,
5451,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
9685,
29918,
1753,
29918,
5451,
29962,
13,
462,
13,
18884,
396,
317,
23184,
6344,
29909,
2190,
11937,
23557,
6824,
6824,
21004,
29896,
29896,
29896,
29896,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29896,
29901,
437,
591,
505,
29871,
29906,
3161,
29973,
13,
18884,
565,
7431,
29898,
8990,
29918,
1753,
29918,
5451,
29897,
2804,
29871,
29906,
29901,
13,
462,
1678,
29383,
703,
13919,
9685,
5023,
17809,
448,
8340,
1820,
29899,
1767,
5101,
14210,
29879,
29915,
3850,
1273,
9685,
29918,
1753,
29897,
13,
462,
1678,
29383,
703,
29898,
2558,
29899,
1767,
5101,
881,
367,
1820,
29901,
1767,
448,
1207,
1854,
727,
526,
694,
4805,
784,
787,
14366,
1159,
13,
462,
1678,
29383,
703,
4013,
9685,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1286,
409,
21194,
372,
714,
29991,
13,
18884,
396,
678,
2960,
29901,
6492,
29896,
29989,
1491,
29896,
29989,
29916,
6660,
518,
5317,
29896,
29892,
1014,
29896,
29892,
921,
29962,
13,
18884,
9685,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
8990,
353,
9685,
29918,
1753,
29918,
5451,
29961,
29900,
1822,
5451,
703,
29989,
1159,
13,
18884,
396,
678,
2960,
29901,
260,
7358,
29922,
29945,
29892,
1643,
29922,
10994,
3186,
13,
18884,
9685,
29918,
1753,
29918,
5552,
29879,
353,
9685,
29918,
1753,
29918,
5451,
29961,
29896,
29962,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29906,
29901,
947,
278,
6492,
29914,
1491,
5317,
29914,
1165,
29872,
1820,
505,
29871,
29941,
3161,
29973,
13,
18884,
565,
7431,
29898,
8990,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
8990,
29897,
2804,
29871,
29941,
29901,
13,
462,
1678,
29383,
703,
13919,
9685,
5023,
17809,
448,
278,
1820,
338,
8340,
29991,
739,
881,
871,
505,
1159,
13,
462,
1678,
29383,
703,
29941,
3161,
448,
6492,
29989,
1491,
5317,
29989,
29916,
29914,
29891,
29991,
1159,
13,
462,
1678,
29383,
703,
4013,
9685,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1235,
29915,
29879,
409,
21194,
393,
714,
29991,
13,
18884,
9685,
29918,
1753,
29918,
5317,
353,
9685,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
8990,
29961,
29900,
29962,
13,
18884,
9685,
29918,
1753,
29918,
1491,
5317,
353,
9685,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
8990,
29961,
29896,
29962,
13,
18884,
9685,
29918,
1753,
29918,
8990,
353,
9685,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
8990,
29961,
29906,
1822,
13609,
580,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29941,
29901,
947,
278,
6492,
29914,
1491,
5317,
4257,
1863,
29973,
29991,
29973,
13,
18884,
565,
451,
9685,
29918,
1753,
29918,
5317,
297,
6492,
29918,
8977,
29901,
13,
462,
1678,
29383,
703,
13919,
9685,
5023,
17809,
448,
278,
6492,
6790,
29892,
14210,
29879,
742,
947,
451,
1863,
3850,
1273,
9685,
29918,
1753,
29918,
5317,
29897,
13,
462,
1678,
29383,
703,
29923,
1983,
545,
805,
7807,
338,
1959,
29889,
960,
372,
338,
263,
716,
6492,
29892,
1207,
1854,
372,
338,
3342,
23157,
13,
462,
1678,
29383,
703,
4013,
9685,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
268,
13,
18884,
396,
9280,
29892,
6492,
4864,
29889,
1128,
1048,
1014,
5317,
29973,
13,
18884,
396,
1334,
505,
304,
437,
777,
8515,
15709,
1244,
856,
13,
18884,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
11940,
353,
7700,
13,
18884,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
353,
6213,
13,
18884,
363,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
8977,
297,
6492,
29918,
8977,
29961,
8990,
29918,
1753,
29918,
5317,
22322,
26762,
2033,
29901,
13,
462,
1678,
565,
9685,
29918,
1753,
29918,
1491,
5317,
297,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
8977,
29901,
13,
462,
4706,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
353,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
8977,
29961,
8990,
29918,
1753,
29918,
1491,
5317,
29962,
13,
462,
4706,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
11940,
353,
5852,
13,
462,
4706,
2867,
13,
462,
13,
18884,
565,
451,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
11940,
29901,
13,
462,
1678,
29383,
703,
13919,
9685,
5023,
17809,
448,
278,
1014,
5317,
6790,
29892,
14210,
29879,
742,
947,
451,
1863,
3850,
1273,
9685,
29918,
1753,
29918,
1491,
5317,
29897,
13,
462,
1678,
29383,
703,
29923,
1983,
545,
805,
7807,
338,
1959,
29889,
960,
372,
338,
263,
716,
1014,
5317,
29892,
1207,
1854,
372,
338,
3342,
322,
1159,
13,
462,
1678,
29383,
703,
262,
278,
1492,
1014,
5317,
29889,
910,
9685,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29946,
29901,
1317,
278,
9685,
2854,
29973,
13,
18884,
565,
9685,
29918,
1753,
29918,
8990,
2804,
376,
29916,
29908,
322,
9685,
29918,
1753,
29918,
8990,
2804,
376,
29891,
1115,
13,
462,
1678,
29383,
703,
13919,
9685,
5023,
17809,
448,
278,
9685,
6790,
29892,
14210,
29879,
742,
338,
8340,
3850,
1273,
9685,
29918,
1753,
29918,
8990,
29897,
13,
462,
1678,
29383,
703,
29915,
29916,
29915,
322,
525,
29891,
29915,
526,
278,
871,
27815,
6068,
29889,
910,
9685,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1235,
29915,
29879,
6230,
18296,
29889,
13,
18884,
565,
451,
376,
1165,
267,
29908,
297,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
29901,
13,
462,
1678,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
1165,
267,
3108,
353,
6571,
13,
462,
13,
18884,
565,
451,
9685,
29918,
1753,
29918,
8990,
297,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
1165,
267,
3108,
29901,
13,
462,
1678,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
1165,
267,
3108,
29961,
8990,
29918,
1753,
29918,
8990,
29962,
353,
6571,
13,
462,
13,
18884,
396,
9280,
29892,
1235,
29915,
29879,
1889,
8393,
29889,
13,
18884,
9685,
29918,
1753,
29918,
5552,
29879,
353,
9685,
29918,
1753,
29918,
5552,
29879,
29889,
5451,
28165,
1159,
13,
18884,
9685,
29918,
1753,
29918,
5552,
29879,
353,
518,
29916,
29889,
17010,
2141,
5451,
703,
543,
29897,
363,
921,
297,
9685,
29918,
1753,
29918,
5552,
29879,
29962,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29945,
29901,
4683,
1438,
2854,
1820,
29899,
1767,
11000,
29973,
13,
18884,
10908,
18784,
29918,
12313,
353,
7700,
13,
18884,
363,
10908,
18784,
297,
9685,
29918,
1753,
29918,
5552,
29879,
29901,
13,
462,
1678,
565,
7431,
29898,
27049,
18784,
29897,
2804,
29871,
29906,
29901,
13,
462,
4706,
29383,
703,
13919,
9685,
5023,
17809,
448,
278,
1820,
29914,
1767,
1014,
18784,
29892,
14210,
29879,
742,
338,
8340,
3850,
1273,
525,
2433,
29889,
7122,
29898,
27049,
18784,
876,
13,
462,
4706,
10908,
18784,
29918,
12313,
353,
5852,
13,
462,
1678,
565,
1134,
29898,
27049,
18784,
29961,
29900,
2314,
2804,
851,
29901,
13,
462,
4706,
29383,
703,
13919,
9685,
5023,
17809,
448,
278,
1820,
14210,
29879,
29915,
297,
278,
1014,
18784,
29892,
14210,
29879,
742,
338,
263,
1661,
29899,
1807,
3850,
1273,
313,
710,
29898,
27049,
18784,
29961,
29900,
11724,
525,
2433,
29889,
7122,
29898,
27049,
18784,
4961,
13,
462,
13,
18884,
565,
10908,
18784,
29918,
12313,
29901,
13,
462,
1678,
29383,
703,
29898,
2558,
29899,
1767,
1014,
18784,
881,
367,
1820,
29922,
1767,
448,
1207,
1854,
727,
526,
694,
4805,
353,
29879,
14366,
1159,
13,
462,
1678,
29383,
703,
4013,
9685,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
399,
13636,
29892,
577,
1568,
9753,
537,
5714,
515,
9753,
537,
8454,
29991,
13,
462,
13,
18884,
396,
16052,
8393,
29991,
13,
18884,
363,
10908,
18784,
297,
9685,
29918,
1753,
29918,
5552,
29879,
29901,
13,
462,
1678,
565,
10908,
18784,
29961,
29900,
29962,
1275,
525,
29873,
7358,
2396,
13,
462,
4706,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
1165,
267,
3108,
29961,
8990,
29918,
1753,
29918,
8990,
3816,
27049,
18784,
29961,
29900,
5262,
353,
938,
29898,
27049,
18784,
29961,
29896,
2314,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
9685,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
1165,
267,
3108,
29961,
8990,
29918,
1753,
29918,
8990,
3816,
27049,
18784,
29961,
29900,
5262,
353,
10908,
18784,
29961,
29896,
29962,
13,
462,
13,
18884,
396,
25679,
6824,
21004,
29896,
29896,
29896,
29896,
13,
308,
13,
4706,
565,
338,
842,
29918,
5415,
703,
5317,
29918,
7922,
29918,
1272,
613,
6088,
1125,
13,
9651,
396,
376,
10736,
29906,
29989,
10736,
29989,
29916,
29901,
16394,
29936,
10736,
29906,
29989,
10736,
29989,
29891,
29901,
2710,
29989,
12328,
29918,
7827,
29989,
12676,
29892,
2710,
29989,
12328,
29918,
7827,
29989,
4172,
3359,
29908,
13,
9651,
848,
29918,
1753,
29879,
353,
12159,
1642,
7122,
29898,
5510,
29889,
5317,
29918,
7922,
29918,
1272,
467,
5451,
703,
29936,
1159,
13,
9651,
396,
315,
14044,
786,
13,
9651,
848,
29918,
1753,
29879,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
848,
29918,
1753,
29879,
29962,
13,
9651,
363,
848,
29918,
1753,
297,
848,
29918,
1753,
29879,
29901,
13,
18884,
396,
678,
2960,
29901,
25638,
29906,
29989,
10736,
29989,
29916,
29901,
16394,
13,
18884,
396,
678,
2960,
29901,
25638,
29906,
29989,
10736,
29989,
29891,
29901,
2710,
29989,
12328,
29918,
7827,
29989,
12676,
29892,
2710,
29989,
12328,
29918,
7827,
29989,
4172,
3359,
13,
18884,
848,
29918,
1753,
29918,
5451,
353,
848,
29918,
1753,
29889,
5451,
703,
29901,
1159,
13,
18884,
848,
29918,
1753,
29918,
5451,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
848,
29918,
1753,
29918,
5451,
29962,
13,
462,
13,
18884,
396,
317,
23184,
6344,
29909,
2190,
11937,
23557,
6824,
6824,
21004,
29896,
29896,
29896,
29896,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29896,
29901,
437,
591,
505,
29871,
29906,
3161,
29973,
13,
18884,
565,
7431,
29898,
1272,
29918,
1753,
29918,
5451,
29897,
2804,
29871,
29906,
29901,
13,
462,
1678,
29383,
703,
13919,
848,
5023,
17809,
448,
8340,
1820,
29899,
1767,
5101,
14210,
29879,
29915,
3850,
1273,
848,
29918,
1753,
29897,
13,
462,
1678,
29383,
703,
29898,
2558,
29899,
1767,
5101,
881,
367,
1820,
29901,
1767,
448,
1207,
1854,
727,
526,
694,
4805,
784,
787,
14366,
1159,
13,
462,
1678,
29383,
703,
4013,
848,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1286,
409,
21194,
372,
714,
29991,
13,
18884,
396,
678,
2960,
29901,
25638,
29906,
29989,
10736,
29989,
29916,
6660,
518,
10736,
29906,
29892,
25638,
29892,
921,
29962,
13,
18884,
848,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
353,
848,
29918,
1753,
29918,
5451,
29961,
29900,
1822,
5451,
703,
29989,
1159,
13,
18884,
396,
678,
2960,
29901,
14334,
13,
18884,
848,
29918,
1753,
29918,
5552,
29879,
353,
848,
29918,
1753,
29918,
5451,
29961,
29896,
29962,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29906,
29901,
947,
278,
6492,
29914,
1491,
5317,
29914,
1165,
29872,
1820,
505,
29871,
29941,
3161,
29973,
13,
18884,
565,
7431,
29898,
1272,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
29897,
2804,
29871,
29941,
29901,
13,
462,
1678,
29383,
703,
13919,
848,
5023,
17809,
448,
278,
1820,
338,
8340,
29991,
739,
881,
871,
505,
1159,
13,
462,
1678,
29383,
703,
29941,
3161,
448,
6492,
29989,
1491,
5317,
29989,
29916,
29914,
29891,
29991,
1159,
13,
462,
1678,
29383,
703,
4013,
848,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1235,
29915,
29879,
409,
21194,
393,
714,
29991,
13,
18884,
848,
29918,
1753,
29918,
5317,
353,
848,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
29961,
29900,
29962,
13,
18884,
848,
29918,
1753,
29918,
1491,
5317,
353,
848,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
29961,
29896,
29962,
13,
18884,
848,
29918,
1753,
29918,
5552,
29918,
978,
353,
848,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
29961,
29906,
1822,
13609,
580,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29941,
29901,
947,
278,
6492,
29914,
1491,
5317,
4257,
1863,
29973,
29991,
29973,
13,
18884,
565,
451,
848,
29918,
1753,
29918,
5317,
297,
6492,
29918,
8977,
29901,
13,
462,
1678,
29383,
703,
13919,
848,
5023,
17809,
448,
278,
6492,
6790,
29892,
14210,
29879,
742,
947,
451,
1863,
3850,
1273,
848,
29918,
1753,
29918,
5317,
29897,
13,
462,
1678,
29383,
703,
29923,
1983,
545,
805,
7807,
338,
1959,
29889,
960,
372,
338,
263,
716,
6492,
29892,
1207,
1854,
372,
338,
3342,
23157,
13,
462,
1678,
29383,
703,
4013,
848,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
268,
13,
18884,
396,
9280,
29892,
6492,
4864,
29889,
1128,
1048,
1014,
5317,
29973,
13,
18884,
396,
1334,
505,
304,
437,
777,
8515,
15709,
1244,
856,
13,
18884,
848,
29918,
1753,
29918,
1491,
5317,
29918,
11940,
353,
7700,
13,
18884,
848,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
353,
6213,
13,
18884,
363,
848,
29918,
1753,
29918,
1491,
5317,
29918,
8977,
297,
6492,
29918,
8977,
29961,
1272,
29918,
1753,
29918,
5317,
22322,
26762,
2033,
29901,
13,
462,
1678,
565,
848,
29918,
1753,
29918,
1491,
5317,
297,
848,
29918,
1753,
29918,
1491,
5317,
29918,
8977,
29901,
13,
462,
4706,
848,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
353,
848,
29918,
1753,
29918,
1491,
5317,
29918,
8977,
29961,
1272,
29918,
1753,
29918,
1491,
5317,
29962,
13,
462,
4706,
848,
29918,
1753,
29918,
1491,
5317,
29918,
11940,
353,
5852,
13,
462,
4706,
2867,
13,
462,
13,
18884,
565,
451,
848,
29918,
1753,
29918,
1491,
5317,
29918,
11940,
29901,
13,
462,
1678,
29383,
703,
13919,
848,
5023,
17809,
448,
278,
1014,
5317,
6790,
29892,
14210,
29879,
742,
947,
451,
1863,
3850,
1273,
848,
29918,
1753,
29918,
1491,
5317,
29897,
13,
462,
1678,
29383,
703,
29923,
1983,
545,
805,
7807,
338,
1959,
29889,
960,
372,
338,
263,
716,
1014,
5317,
29892,
1207,
1854,
372,
338,
3342,
322,
1159,
13,
462,
1678,
29383,
703,
262,
278,
1492,
1014,
5317,
29889,
910,
848,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29946,
29901,
1317,
278,
12421,
1746,
2854,
29973,
13,
18884,
2854,
29918,
5552,
29879,
353,
518,
376,
29916,
613,
376,
29891,
613,
376,
27703,
613,
376,
21134,
29908,
4514,
13,
18884,
565,
451,
848,
29918,
1753,
29918,
5552,
29918,
978,
297,
2854,
29918,
5552,
29879,
29901,
13,
462,
1678,
29383,
703,
13919,
848,
5023,
17809,
448,
278,
5352,
6790,
29892,
14210,
29879,
742,
338,
8340,
3850,
1273,
848,
29918,
1753,
29918,
1272,
29897,
13,
462,
1678,
29383,
11702,
29879,
526,
278,
871,
8393,
6068,
29889,
910,
848,
5023,
674,
367,
14993,
2986,
1213,
1273,
313,
613,
1642,
7122,
29898,
3084,
29918,
5552,
29879,
7503,
29899,
29896,
2314,
718,
9162,
322,
376,
718,
2854,
29918,
5552,
29879,
14352,
29896,
12622,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1235,
29915,
29879,
6230,
18296,
29889,
13,
18884,
565,
451,
376,
1272,
29908,
297,
848,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
29901,
13,
462,
1678,
848,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
1272,
3108,
353,
6571,
13,
462,
13,
18884,
396,
9280,
29892,
1235,
29915,
29879,
1889,
8393,
29889,
13,
18884,
848,
29918,
1753,
29918,
5552,
29879,
353,
848,
29918,
1753,
29918,
5552,
29879,
29889,
5451,
28165,
1159,
13,
462,
13,
18884,
396,
399,
13636,
29892,
577,
1568,
9753,
537,
5714,
515,
9753,
537,
8454,
29991,
13,
18884,
396,
313,
6246,
451,
408,
4319,
408,
278,
27815,
760,
11410,
13,
462,
13,
18884,
396,
16052,
8393,
29991,
13,
18884,
565,
7431,
29898,
1272,
29918,
1753,
29918,
5552,
29879,
29897,
1275,
29871,
29896,
29901,
13,
462,
1678,
848,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
1272,
3108,
29961,
1272,
29918,
1753,
29918,
5552,
29918,
978,
29962,
353,
848,
29918,
1753,
29918,
5552,
29879,
29961,
29900,
29962,
13,
18884,
1683,
29901,
13,
462,
1678,
565,
451,
848,
29918,
1753,
29918,
5552,
29918,
978,
297,
848,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
1272,
3108,
29901,
13,
462,
4706,
848,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
1272,
3108,
29961,
1272,
29918,
1753,
29918,
5552,
29918,
978,
29962,
353,
5159,
13,
462,
1678,
363,
12421,
29918,
791,
297,
848,
29918,
1753,
29918,
5552,
29879,
29901,
13,
462,
4706,
848,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
1272,
3108,
29961,
1272,
29918,
1753,
29918,
5552,
29918,
978,
1822,
4397,
29898,
5552,
29918,
791,
29897,
13,
462,
13,
18884,
396,
25679,
29991,
13,
308,
13,
4706,
565,
338,
842,
29918,
5415,
703,
5317,
29918,
7922,
29918,
3257,
613,
6088,
1125,
13,
9651,
396,
376,
10736,
29906,
29989,
3257,
29901,
7030,
29936,
10736,
29906,
29989,
10736,
29989,
3257,
29901,
4035,
7030,
29936,
10736,
29906,
29989,
10736,
29989,
26172,
29901,
22988,
355,
7030,
29908,
13,
9651,
3611,
29918,
1753,
29879,
353,
12159,
1642,
7122,
29898,
5510,
29889,
5317,
29918,
7922,
29918,
3257,
467,
5451,
703,
29936,
1159,
13,
9651,
396,
315,
14044,
786,
13,
9651,
3611,
29918,
1753,
29879,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
3611,
29918,
1753,
29879,
29962,
13,
9651,
363,
3611,
29918,
1753,
297,
3611,
29918,
1753,
29879,
29901,
13,
18884,
396,
678,
2960,
29901,
25638,
29906,
29989,
3257,
29901,
7030,
13,
18884,
396,
678,
2960,
29901,
25638,
29906,
29989,
10736,
29989,
3257,
29901,
4035,
7030,
13,
18884,
396,
678,
2960,
29901,
25638,
29906,
29989,
10736,
29989,
26172,
29901,
22988,
355,
7030,
13,
18884,
3611,
29918,
1753,
29918,
5451,
353,
3611,
29918,
1753,
29889,
5451,
703,
29901,
1159,
13,
18884,
3611,
29918,
1753,
29918,
5451,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
3611,
29918,
1753,
29918,
5451,
29962,
13,
462,
13,
18884,
396,
317,
23184,
6344,
29909,
2190,
11937,
23557,
6824,
6824,
21004,
29896,
29896,
29896,
29896,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29896,
29901,
437,
591,
505,
29871,
29906,
3161,
29973,
13,
18884,
565,
7431,
29898,
3257,
29918,
1753,
29918,
5451,
29897,
2804,
29871,
29906,
29901,
13,
462,
1678,
29383,
703,
13919,
3611,
5023,
17809,
448,
8340,
1820,
29899,
1767,
5101,
14210,
29879,
29915,
3850,
1273,
3611,
29918,
1753,
29897,
13,
462,
1678,
29383,
703,
29898,
2558,
29899,
1767,
5101,
881,
367,
1820,
29901,
1767,
448,
1207,
1854,
727,
526,
694,
4805,
784,
787,
14366,
1159,
13,
462,
1678,
29383,
703,
4013,
3611,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1286,
409,
21194,
372,
714,
29991,
13,
18884,
396,
678,
2960,
29901,
25638,
29906,
29989,
3257,
418,
6660,
518,
10736,
29906,
29892,
3611,
29962,
13,
18884,
396,
678,
2960,
29901,
25638,
29906,
29989,
10736,
29989,
3257,
29871,
6660,
518,
10736,
29906,
29892,
25638,
29892,
3611,
29962,
13,
18884,
396,
678,
2960,
29901,
25638,
29906,
29989,
10736,
29989,
26172,
6660,
518,
10736,
29906,
29892,
25638,
29892,
15983,
29962,
13,
18884,
3611,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
353,
3611,
29918,
1753,
29918,
5451,
29961,
29900,
1822,
5451,
703,
29989,
1159,
13,
18884,
396,
678,
2960,
29901,
18527,
13,
18884,
396,
678,
2960,
29901,
3323,
7030,
13,
18884,
396,
678,
2960,
29901,
5682,
355,
7030,
13,
18884,
3611,
29918,
1753,
29918,
3257,
353,
3611,
29918,
1753,
29918,
5451,
29961,
29896,
29962,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29906,
29901,
947,
278,
6492,
18854,
1491,
5317,
6802,
5552,
1820,
505,
29871,
29906,
470,
29871,
29941,
3161,
29973,
13,
18884,
565,
313,
2435,
29898,
3257,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
29897,
2804,
29871,
29941,
29897,
322,
313,
2435,
29898,
3257,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
29897,
2804,
29871,
29906,
1125,
13,
462,
1678,
29383,
703,
13919,
3611,
5023,
17809,
448,
278,
1820,
338,
8340,
29991,
739,
881,
871,
505,
1159,
13,
462,
1678,
29383,
703,
29906,
29899,
29941,
3161,
448,
6492,
29989,
3257,
470,
6492,
29989,
1491,
5317,
29989,
3257,
29914,
26172,
29991,
1159,
13,
462,
1678,
29383,
703,
4013,
3611,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1235,
29915,
29879,
409,
21194,
393,
714,
29991,
13,
18884,
396,
2023,
19499,
445,
722,
583,
29892,
577,
1235,
29915,
29879,
2125,
372,
263,
2586,
5232,
29889,
13,
462,
13,
18884,
3611,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
353,
518,
3611,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
29961,
29900,
29962,
4514,
13,
462,
13,
18884,
565,
7431,
29898,
3257,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
29897,
1275,
29871,
29941,
29901,
13,
462,
1678,
3611,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29889,
4397,
29898,
3257,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
29961,
29896,
2314,
13,
462,
13,
18884,
3611,
29918,
1753,
29918,
5552,
29918,
978,
353,
3611,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29918,
5552,
14352,
29896,
1822,
13609,
580,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29941,
29901,
947,
278,
6492,
29914,
1491,
5317,
4257,
1863,
29973,
29991,
29973,
13,
18884,
565,
451,
3611,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29961,
29900,
29962,
297,
6492,
29918,
8977,
29901,
13,
462,
1678,
29383,
703,
13919,
3611,
5023,
17809,
448,
278,
6492,
6790,
29892,
14210,
29879,
742,
947,
451,
1863,
3850,
1273,
3611,
29918,
1753,
29918,
5317,
29897,
13,
462,
1678,
29383,
703,
29923,
1983,
545,
805,
7807,
338,
1959,
29889,
960,
372,
338,
263,
716,
6492,
29892,
1207,
1854,
372,
338,
3342,
23157,
13,
462,
1678,
29383,
703,
4013,
3611,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
6492,
4864,
29889,
1128,
1048,
1014,
5317,
29973,
13,
18884,
396,
1334,
505,
304,
437,
777,
8515,
15709,
1244,
856,
13,
18884,
396,
2023,
4187,
871,
565,
591,
817,
304,
29889,
13,
462,
13,
18884,
565,
7431,
29898,
3257,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29897,
1275,
29871,
29906,
29901,
13,
462,
1678,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
11940,
353,
7700,
13,
462,
1678,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
353,
6213,
13,
462,
1678,
363,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
8977,
297,
6492,
29918,
8977,
29961,
3257,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29961,
29900,
5262,
1839,
26762,
2033,
29901,
13,
462,
4706,
565,
3611,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29961,
29896,
29962,
297,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
8977,
29901,
13,
462,
9651,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
353,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
8977,
29961,
3257,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29961,
29896,
5262,
13,
462,
9651,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
11940,
353,
5852,
13,
462,
9651,
2867,
13,
462,
268,
13,
462,
1678,
565,
451,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
11940,
29901,
13,
462,
4706,
29383,
703,
13919,
3611,
5023,
17809,
448,
278,
1014,
5317,
6790,
29892,
14210,
29879,
742,
947,
451,
1863,
3850,
1273,
3611,
29918,
1753,
29918,
1491,
5317,
29897,
13,
462,
4706,
29383,
703,
29923,
1983,
545,
805,
7807,
338,
1959,
29889,
960,
372,
338,
263,
716,
1014,
5317,
29892,
1207,
1854,
372,
338,
3342,
322,
1159,
13,
462,
4706,
29383,
703,
262,
278,
1492,
1014,
5317,
29889,
910,
3611,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
4706,
6773,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29946,
29901,
1317,
278,
12421,
1746,
2854,
29973,
13,
18884,
396,
18527,
338,
2854,
363,
1716,
29892,
541,
15983,
338,
871,
2854,
363,
13,
18884,
396,
6492,
29989,
1491,
5317,
29889,
13,
18884,
565,
3611,
29918,
1753,
29918,
5552,
29918,
978,
2804,
376,
3257,
29908,
322,
451,
313,
313,
2435,
29898,
3257,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29897,
1275,
29871,
29906,
29897,
322,
313,
3257,
29918,
1753,
29918,
5552,
29918,
978,
1275,
376,
26172,
1159,
29871,
1125,
13,
462,
1678,
29383,
703,
13919,
3611,
5023,
17809,
448,
278,
5352,
6790,
29892,
14210,
29879,
742,
338,
8340,
3850,
1273,
3611,
29918,
1753,
29918,
3257,
29897,
13,
462,
1678,
29383,
703,
26172,
313,
1454,
6492,
29989,
1491,
5317,
29897,
322,
3611,
526,
278,
871,
8393,
6068,
23157,
13,
462,
1678,
29383,
703,
4013,
3611,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1235,
29915,
29879,
748,
29991,
13,
18884,
565,
7431,
29898,
3257,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29897,
1275,
29871,
29896,
29901,
13,
462,
1678,
6492,
29918,
8977,
29961,
3257,
29918,
1753,
29918,
5317,
29918,
1491,
5317,
29961,
29900,
5262,
3366,
3257,
3108,
353,
3611,
29918,
1753,
29918,
3257,
13,
18884,
1683,
29901,
13,
462,
1678,
565,
3611,
29918,
1753,
29918,
5552,
29918,
978,
1275,
376,
26172,
1115,
13,
462,
4706,
565,
451,
338,
842,
29918,
5415,
703,
26172,
613,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
1125,
13,
462,
9651,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
26172,
3108,
353,
6571,
13,
462,
4706,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
26172,
3108,
3366,
3257,
3108,
353,
3611,
29918,
1753,
29918,
3257,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
3366,
3257,
3108,
353,
3611,
29918,
1753,
29918,
3257,
13,
462,
13,
18884,
396,
25679,
29991,
13,
308,
13,
4706,
565,
338,
842,
29918,
5415,
703,
5317,
29918,
7922,
29918,
4905,
613,
6088,
1125,
13,
9651,
396,
376,
5317,
29896,
29901,
1357,
5317,
29896,
29889,
2732,
29936,
10736,
29906,
29901,
10736,
5317,
29889,
2732,
29936,
9136,
5317,
29941,
29901,
9136,
29889,
2732,
29908,
13,
9651,
1962,
29918,
1753,
29879,
353,
12159,
1642,
7122,
29898,
5510,
29889,
5317,
29918,
7922,
29918,
4905,
467,
5451,
703,
29936,
1159,
13,
9651,
396,
315,
14044,
786,
13,
9651,
1962,
29918,
1753,
29879,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
1962,
29918,
1753,
29879,
29962,
13,
9651,
363,
1962,
29918,
1753,
297,
1962,
29918,
1753,
29879,
29901,
13,
18884,
396,
678,
2960,
29901,
6492,
29896,
29901,
1357,
5317,
29896,
29889,
2732,
13,
18884,
1962,
29918,
1753,
29918,
5451,
353,
1962,
29918,
1753,
29889,
5451,
703,
29901,
1159,
13,
18884,
1962,
29918,
1753,
29918,
5451,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
1962,
29918,
1753,
29918,
5451,
29962,
13,
462,
13,
18884,
396,
317,
23184,
6344,
29909,
2190,
11937,
23557,
6824,
6824,
21004,
29896,
29896,
29896,
29896,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29896,
29901,
437,
591,
505,
29871,
29906,
3161,
29973,
13,
18884,
565,
7431,
29898,
4905,
29918,
1753,
29918,
5451,
29897,
2804,
29871,
29906,
29901,
13,
462,
1678,
29383,
703,
13919,
1962,
5023,
17809,
448,
8340,
1820,
29899,
1767,
5101,
14210,
29879,
29915,
3850,
1273,
1962,
29918,
1753,
29897,
13,
462,
1678,
29383,
703,
29898,
2558,
29899,
1767,
5101,
881,
367,
1820,
29901,
1767,
448,
1207,
1854,
727,
526,
694,
4805,
784,
787,
14366,
1159,
13,
462,
1678,
29383,
703,
4013,
1962,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1286,
409,
21194,
372,
714,
29991,
13,
18884,
396,
678,
2960,
29901,
6492,
29896,
13,
18884,
1962,
29918,
1753,
29918,
5317,
353,
1962,
29918,
1753,
29918,
5451,
29961,
29900,
29962,
13,
18884,
396,
678,
2960,
29901,
590,
5317,
29896,
29889,
2732,
13,
18884,
1962,
29918,
1753,
29918,
4905,
353,
1962,
29918,
1753,
29918,
5451,
29961,
29896,
29962,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29906,
29901,
947,
278,
6492,
4257,
1863,
29973,
29991,
29973,
13,
18884,
565,
451,
1962,
29918,
1753,
29918,
5317,
297,
6492,
29918,
8977,
29901,
13,
462,
1678,
29383,
703,
13919,
1962,
5023,
17809,
448,
278,
6492,
6790,
29892,
14210,
29879,
742,
947,
451,
1863,
3850,
1273,
1962,
29918,
1753,
29918,
5317,
29897,
13,
462,
1678,
29383,
703,
29923,
1983,
545,
805,
7807,
338,
1959,
29889,
960,
372,
338,
263,
716,
6492,
29892,
1207,
1854,
372,
338,
3342,
23157,
13,
462,
1678,
29383,
703,
4013,
1962,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
6492,
4864,
29889,
910,
338,
2428,
4780,
29892,
577,
591,
29915,
276,
3889,
304,
13,
18884,
396,
11340,
515,
1244,
29991,
13,
18884,
6492,
29918,
8977,
29961,
4905,
29918,
1753,
29918,
5317,
29962,
3366,
4905,
3108,
353,
1962,
29918,
1753,
29918,
4905,
13,
462,
13,
18884,
396,
25679,
29991,
13,
308,
13,
4706,
565,
338,
842,
29918,
5415,
703,
5317,
29918,
7922,
29918,
11027,
613,
6088,
1125,
13,
9651,
396,
376,
5317,
29896,
29901,
5182,
29918,
2311,
29922,
29945,
29929,
29945,
29916,
29955,
29900,
29900,
29892,
29881,
1631,
29922,
29945,
29900,
29908,
13,
9651,
6055,
29918,
1753,
353,
12159,
1642,
7122,
29898,
5510,
29889,
5317,
29918,
7922,
29918,
11027,
467,
5451,
703,
29936,
1159,
13,
9651,
396,
315,
14044,
786,
13,
9651,
6055,
29918,
1753,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
6055,
29918,
1753,
29962,
13,
9651,
363,
6055,
29918,
1753,
297,
6055,
29918,
1753,
29901,
13,
18884,
396,
678,
2960,
29901,
6492,
29896,
29901,
5182,
29918,
2311,
29922,
29945,
29929,
29945,
29916,
29955,
29900,
29900,
29892,
29881,
1631,
29922,
29945,
29900,
13,
18884,
6055,
29918,
1753,
29918,
5451,
353,
6055,
29918,
1753,
29889,
5451,
703,
29901,
1159,
13,
18884,
6055,
29918,
1753,
29918,
5451,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
6055,
29918,
1753,
29918,
5451,
29962,
13,
462,
13,
18884,
396,
317,
23184,
6344,
29909,
2190,
11937,
23557,
6824,
6824,
21004,
29896,
29896,
29896,
29896,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29896,
29901,
437,
591,
505,
29871,
29906,
3161,
29973,
13,
18884,
565,
7431,
29898,
11027,
29918,
1753,
29918,
5451,
29897,
2804,
29871,
29906,
29901,
13,
462,
1678,
29383,
703,
13919,
6055,
5023,
17809,
448,
8340,
1820,
29899,
1767,
5101,
14210,
29879,
29915,
3850,
1273,
6055,
29918,
1753,
29897,
13,
462,
1678,
29383,
703,
29898,
2558,
29899,
1767,
5101,
881,
367,
1820,
29901,
1767,
448,
1207,
1854,
727,
526,
694,
4805,
784,
787,
14366,
1159,
13,
462,
1678,
29383,
703,
4013,
6055,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1286,
409,
21194,
372,
714,
29991,
13,
18884,
396,
678,
2960,
29901,
6492,
29896,
13,
18884,
6055,
29918,
1753,
29918,
5317,
353,
6055,
29918,
1753,
29918,
5451,
29961,
29900,
29962,
13,
18884,
396,
678,
2960,
29901,
260,
7358,
29922,
29945,
29892,
1643,
29922,
10994,
3186,
13,
18884,
6055,
29918,
1753,
29918,
5552,
29879,
353,
6055,
29918,
1753,
29918,
5451,
29961,
29896,
29962,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29906,
29901,
947,
278,
6492,
29914,
1491,
5317,
4257,
1863,
29973,
29991,
29973,
13,
18884,
565,
451,
6055,
29918,
1753,
29918,
5317,
297,
6492,
29918,
8977,
29901,
13,
462,
1678,
29383,
703,
13919,
6055,
5023,
17809,
448,
278,
6492,
6790,
29892,
14210,
29879,
742,
947,
451,
1863,
3850,
1273,
6055,
29918,
1753,
29918,
5317,
29897,
13,
462,
1678,
29383,
703,
29923,
1983,
545,
805,
7807,
338,
1959,
29889,
960,
372,
338,
263,
716,
6492,
29892,
1207,
1854,
372,
338,
3342,
23157,
13,
462,
1678,
29383,
703,
4013,
6055,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1235,
29915,
29879,
6230,
18296,
29889,
13,
18884,
565,
451,
376,
11027,
29908,
297,
6492,
29918,
8977,
29961,
11027,
29918,
1753,
29918,
5317,
5387,
13,
462,
1678,
6492,
29918,
8977,
29961,
11027,
29918,
1753,
29918,
5317,
29962,
3366,
11027,
3108,
353,
6571,
13,
462,
13,
18884,
396,
9280,
29892,
1235,
29915,
29879,
1889,
8393,
29889,
13,
18884,
6055,
29918,
1753,
29918,
5552,
29879,
353,
6055,
29918,
1753,
29918,
5552,
29879,
29889,
5451,
28165,
1159,
13,
18884,
6055,
29918,
1753,
29918,
5552,
29879,
353,
518,
29916,
29889,
17010,
2141,
5451,
703,
543,
29897,
363,
921,
297,
6055,
29918,
1753,
29918,
5552,
29879,
29962,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29945,
29901,
4683,
1438,
2854,
1820,
29899,
1767,
11000,
29973,
13,
18884,
10908,
18784,
29918,
12313,
353,
7700,
13,
18884,
363,
10908,
18784,
297,
6055,
29918,
1753,
29918,
5552,
29879,
29901,
13,
462,
1678,
565,
7431,
29898,
27049,
18784,
29897,
2804,
29871,
29906,
29901,
13,
462,
4706,
29383,
703,
13919,
6055,
5023,
17809,
448,
278,
1820,
29914,
1767,
1014,
18784,
29892,
14210,
29879,
742,
338,
8340,
3850,
1273,
525,
2433,
29889,
7122,
29898,
27049,
18784,
876,
13,
462,
4706,
10908,
18784,
29918,
12313,
353,
5852,
13,
462,
1678,
565,
1134,
29898,
27049,
18784,
29961,
29900,
2314,
2804,
851,
29901,
13,
462,
4706,
29383,
703,
13919,
6055,
5023,
17809,
448,
278,
1820,
14210,
29879,
29915,
297,
278,
1014,
18784,
29892,
14210,
29879,
742,
338,
263,
1661,
29899,
1807,
3850,
1273,
313,
710,
29898,
27049,
18784,
29961,
29900,
11724,
525,
2433,
29889,
7122,
29898,
27049,
18784,
4961,
13,
462,
13,
18884,
565,
10908,
18784,
29918,
12313,
29901,
13,
462,
1678,
29383,
703,
29898,
2558,
29899,
1767,
1014,
18784,
881,
367,
1820,
29922,
1767,
448,
1207,
1854,
727,
526,
694,
4805,
353,
29879,
14366,
1159,
13,
462,
1678,
29383,
703,
4013,
6055,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
399,
13636,
29892,
577,
1568,
9753,
537,
5714,
515,
9753,
537,
8454,
29991,
13,
462,
13,
18884,
396,
16052,
8393,
29991,
13,
18884,
363,
10908,
18784,
297,
6055,
29918,
1753,
29918,
5552,
29879,
29901,
13,
462,
1678,
565,
10908,
18784,
29961,
29900,
29962,
1275,
525,
5182,
29918,
2311,
2396,
13,
462,
4706,
2159,
29918,
2749,
353,
518,
938,
29898,
29916,
29897,
363,
921,
297,
10908,
18784,
29961,
29896,
1822,
13609,
2141,
5451,
703,
29916,
1159,
4514,
13,
462,
4706,
565,
7431,
29898,
2311,
29918,
2749,
29897,
2804,
29871,
29906,
29901,
13,
462,
9651,
29383,
703,
2558,
29899,
1767,
5101,
363,
3646,
29918,
2311,
338,
8340,
448,
881,
367,
19578,
29916,
10192,
29991,
1159,
13,
462,
9651,
29383,
703,
29903,
1984,
3262,
1820,
29899,
1767,
5101,
23157,
13,
462,
9651,
6773,
13,
462,
4706,
6492,
29918,
8977,
29961,
11027,
29918,
1753,
29918,
5317,
29962,
3366,
11027,
3108,
3366,
5182,
29918,
2311,
3108,
353,
2159,
29918,
2749,
13,
462,
1678,
25342,
10908,
18784,
29961,
29900,
29962,
1275,
525,
29881,
1631,
2396,
13,
462,
4706,
565,
451,
10908,
18784,
29961,
29896,
1822,
275,
26204,
7295,
13,
462,
9651,
29383,
703,
2558,
29899,
1767,
5101,
363,
270,
1631,
338,
8340,
448,
995,
338,
451,
385,
938,
29991,
1159,
13,
462,
9651,
29383,
703,
29903,
1984,
3262,
1820,
29899,
1767,
5101,
23157,
13,
462,
9651,
6773,
13,
462,
4706,
6492,
29918,
8977,
29961,
11027,
29918,
1753,
29918,
5317,
29962,
3366,
11027,
3108,
29961,
27049,
18784,
29961,
29900,
5262,
353,
938,
29898,
27049,
18784,
29961,
29896,
2314,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
396,
3767,
927,
6433,
13,
462,
4706,
29383,
703,
2558,
14210,
29879,
29915,
297,
451,
3342,
448,
4444,
8763,
1213,
1273,
851,
29898,
27049,
18784,
29961,
29900,
12622,
13,
462,
4706,
6492,
29918,
8977,
29961,
11027,
29918,
1753,
29918,
5317,
29962,
3366,
11027,
3108,
29961,
27049,
18784,
29961,
29900,
5262,
353,
10908,
18784,
29961,
29896,
29962,
13,
462,
13,
18884,
396,
25679,
6824,
21004,
29896,
29896,
29896,
29896,
13,
4706,
565,
338,
842,
29918,
5415,
703,
5317,
29918,
7922,
29918,
6341,
29918,
16908,
613,
6088,
1125,
13,
9651,
396,
376,
6341,
1707,
29896,
29901,
1767,
29896,
29936,
6341,
1707,
29906,
29901,
1767,
29906,
29908,
13,
9651,
2888,
29918,
1707,
29918,
1753,
29879,
353,
12159,
1642,
7122,
29898,
5510,
29889,
5317,
29918,
7922,
29918,
6341,
29918,
16908,
467,
5451,
703,
29936,
1159,
13,
9651,
396,
315,
14044,
786,
13,
9651,
2888,
29918,
1707,
29918,
1753,
29879,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
2888,
29918,
1707,
29918,
1753,
29879,
29962,
13,
9651,
363,
1962,
29918,
1753,
297,
1962,
29918,
1753,
29879,
29901,
13,
18884,
396,
678,
2960,
29901,
2888,
1707,
29896,
29901,
1767,
29896,
13,
18884,
2888,
29918,
1707,
29918,
1753,
29918,
5451,
353,
2888,
29918,
1707,
29918,
1753,
29889,
5451,
703,
29901,
1159,
13,
18884,
2888,
29918,
1707,
29918,
1753,
29918,
5451,
353,
518,
29916,
29889,
17010,
580,
363,
921,
297,
2888,
29918,
1707,
29918,
1753,
29918,
5451,
29962,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29991,
13,
462,
13,
18884,
396,
3087,
537,
1423,
29871,
29896,
29901,
437,
591,
505,
29871,
29906,
3161,
29973,
13,
18884,
565,
7431,
29898,
6341,
29918,
1707,
29918,
1753,
29918,
5451,
29897,
2804,
29871,
29906,
29901,
13,
462,
1678,
29383,
703,
13919,
2888,
2286,
5023,
17809,
448,
8340,
1820,
29899,
1767,
5101,
14210,
29879,
29915,
3850,
1273,
1962,
29918,
1753,
29897,
13,
462,
1678,
29383,
703,
29898,
2558,
29899,
1767,
5101,
881,
367,
1820,
29901,
1767,
448,
1207,
1854,
727,
526,
694,
4805,
784,
787,
14366,
1159,
13,
462,
1678,
29383,
703,
4013,
2888,
2286,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
1286,
409,
21194,
372,
714,
29991,
13,
18884,
396,
678,
2960,
29901,
2888,
1707,
29896,
13,
18884,
2888,
29918,
1707,
29918,
1753,
29918,
1707,
353,
2888,
29918,
1707,
29918,
1753,
29918,
5451,
29961,
29900,
29962,
13,
18884,
396,
678,
2960,
29901,
995,
29896,
13,
18884,
2888,
29918,
1707,
29918,
1753,
29918,
791,
353,
2888,
29918,
1707,
29918,
1753,
29918,
5451,
29961,
29896,
29962,
13,
462,
13,
18884,
396,
9280,
29892,
591,
2355,
4129,
29889,
910,
338,
2428,
4780,
29892,
577,
591,
29915,
276,
3889,
304,
13,
18884,
396,
454,
481,
515,
1244,
29991,
13,
18884,
565,
376,
6341,
29918,
16908,
29908,
451,
297,
11451,
3665,
3712,
29918,
2917,
29901,
13,
462,
1678,
11451,
3665,
3712,
29918,
2917,
3366,
6341,
29918,
16908,
3108,
353,
6571,
13,
18884,
11451,
3665,
3712,
29918,
2917,
3366,
6341,
29918,
16908,
3108,
29961,
6341,
29918,
1707,
29918,
1753,
29918,
1707,
29962,
353,
2888,
29918,
1707,
29918,
1753,
29918,
791,
13,
462,
13,
18884,
396,
25679,
29991,
13,
4706,
565,
338,
842,
29918,
5415,
703,
5317,
29918,
5675,
29918,
3972,
29879,
613,
6088,
29897,
322,
6088,
29889,
5317,
29918,
5675,
29918,
3972,
29879,
29901,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
5675,
29918,
3972,
29879,
3108,
353,
6088,
29889,
5317,
29918,
5675,
29918,
3972,
29879,
13,
632,
13,
9651,
396,
25679,
29991,
13,
268,
13,
1678,
444,
360,
3427,
6389,
13,
1678,
565,
6088,
29889,
18248,
1275,
376,
15070,
29908,
470,
6088,
29889,
18248,
1275,
376,
5317,
29908,
470,
6088,
29889,
18248,
1275,
376,
2917,
1115,
308,
13,
4706,
396,
1192,
15070,
29899,
13099,
13,
4706,
565,
338,
842,
29918,
5415,
703,
15070,
29918,
13099,
613,
6088,
1125,
13,
9651,
363,
848,
29918,
4914,
297,
313,
5510,
29889,
15070,
29918,
13099,
467,
5451,
29898,
3284,
1125,
13,
18884,
848,
29918,
4914,
353,
848,
29918,
4914,
29889,
17010,
580,
13,
18884,
565,
451,
848,
29918,
4914,
297,
317,
4162,
8426,
1964,
29918,
3738,
6670,
8452,
29901,
13,
462,
1678,
565,
451,
5135,
1272,
29918,
4914,
29889,
27382,
2541,
703,
2710,
29989,
1159,
470,
848,
29918,
4914,
29889,
27382,
2541,
703,
273,
29880,
29989,
5783,
1125,
13,
462,
4706,
762,
703,
11432,
29901,
21403,
848,
1897,
14210,
29879,
29915,
6790,
297,
1192,
15070,
29899,
13099,
29991,
19928,
505,
6300,
29989,
470,
385,
29880,
29989,
408,
263,
10944,
1213,
1273,
848,
29918,
4914,
29897,
13,
632,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
13099,
3108,
353,
6088,
29889,
15070,
29918,
13099,
13,
308,
13,
4706,
396,
1192,
15070,
29899,
497,
29899,
305,
12629,
13,
4706,
565,
338,
842,
29918,
5415,
703,
15070,
29918,
497,
29918,
305,
12629,
613,
6088,
29897,
322,
6088,
29889,
15070,
29918,
497,
29918,
305,
12629,
29901,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
497,
29918,
305,
12629,
3108,
353,
6088,
29889,
15070,
29918,
497,
29918,
305,
12629,
13,
308,
13,
4706,
396,
1192,
15070,
29899,
305,
12629,
13,
4706,
565,
338,
842,
29918,
5415,
703,
15070,
29918,
305,
12629,
613,
6088,
1125,
13,
9651,
565,
338,
842,
29918,
5415,
703,
15070,
29918,
497,
29918,
305,
12629,
613,
6088,
29897,
322,
6088,
29889,
15070,
29918,
497,
29918,
305,
12629,
29901,
13,
18884,
762,
703,
11432,
29901,
887,
508,
451,
6084,
1192,
15070,
29899,
497,
29899,
305,
12629,
322,
1192,
15070,
29899,
305,
12629,
472,
278,
1021,
931,
29991,
1159,
13,
9651,
363,
848,
29918,
12719,
297,
313,
5510,
29889,
15070,
29918,
305,
12629,
467,
5451,
29898,
3284,
1125,
13,
18884,
848,
29918,
12719,
353,
848,
29918,
12719,
29889,
17010,
580,
13,
462,
13,
18884,
565,
451,
313,
313,
1272,
29918,
12719,
29889,
275,
26204,
3101,
470,
320,
13,
462,
1678,
313,
313,
2435,
29898,
1272,
29918,
12719,
29889,
5451,
703,
29899,
5783,
1275,
29871,
29906,
29897,
322,
848,
29918,
12719,
29889,
5451,
703,
29899,
1159,
29961,
29900,
1822,
275,
26204,
580,
322,
848,
29918,
12719,
29889,
5451,
703,
29899,
1159,
29961,
29896,
1822,
275,
26204,
580,
1723,
29871,
1125,
13,
462,
1678,
762,
703,
11432,
29901,
21403,
848,
8242,
14210,
29879,
29915,
6790,
297,
1192,
15070,
29899,
305,
12629,
29991,
19928,
367,
263,
1353,
470,
263,
16985,
3464,
313,
29937,
29899,
29937,
467,
29908,
1273,
848,
29918,
12719,
29897,
13,
632,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
305,
12629,
3108,
353,
6088,
29889,
15070,
29918,
305,
12629,
13,
308,
13,
4706,
396,
1192,
15070,
29899,
465,
326,
29899,
6194,
13,
4706,
565,
338,
842,
29918,
5415,
703,
15070,
29918,
465,
326,
29918,
6194,
613,
6088,
1125,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
465,
326,
29918,
6194,
3108,
353,
6088,
29889,
15070,
29918,
465,
326,
29918,
6194,
13,
308,
13,
4706,
396,
1192,
15070,
29899,
19303,
1253,
29899,
25442,
886,
13,
4706,
565,
338,
842,
29918,
5415,
703,
15070,
29918,
19303,
1253,
29918,
25442,
886,
613,
6088,
1125,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
19303,
1253,
29918,
25442,
886,
3108,
353,
6088,
29889,
15070,
29918,
19303,
1253,
29918,
25442,
886,
13,
268,
13,
1678,
444,
2391,
6389,
13,
1678,
565,
6088,
29889,
18248,
1275,
376,
1761,
29908,
470,
6088,
29889,
18248,
1275,
376,
15070,
29908,
470,
6088,
29889,
18248,
1275,
376,
5317,
29908,
470,
6088,
29889,
18248,
1275,
376,
2917,
1115,
13,
4706,
396,
1192,
1272,
29899,
14369,
29899,
1256,
313,
2467,
7353,
29897,
13,
4706,
565,
338,
842,
29918,
5415,
703,
1272,
29918,
14369,
29918,
1256,
613,
6088,
1125,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
2962,
29918,
1256,
3108,
353,
6088,
29889,
1272,
29918,
14369,
29918,
1256,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
355,
29918,
1256,
3108,
353,
6088,
29889,
1272,
29918,
14369,
29918,
1256,
13,
308,
13,
4706,
396,
1192,
1272,
29899,
2084,
29899,
4830,
13,
4706,
565,
338,
842,
29918,
5415,
703,
1272,
29918,
2084,
29918,
4830,
613,
6088,
1125,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
2084,
29918,
4830,
3108,
353,
6088,
29889,
1272,
29918,
2084,
29918,
4830,
13,
308,
13,
4706,
396,
1192,
1272,
29899,
735,
15362,
29899,
333,
13,
4706,
565,
338,
842,
29918,
5415,
703,
1272,
29918,
735,
15362,
29918,
333,
613,
6088,
1125,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
735,
15362,
29918,
333,
3108,
353,
6088,
29889,
1272,
29918,
735,
15362,
29918,
333,
13,
308,
13,
4706,
396,
1192,
1272,
29899,
2962,
29899,
1256,
13,
4706,
565,
338,
842,
29918,
5415,
703,
1272,
29918,
2962,
29918,
1256,
613,
6088,
1125,
13,
9651,
565,
338,
842,
29918,
5415,
703,
1272,
29918,
14369,
29918,
1256,
613,
6088,
1125,
13,
18884,
762,
703,
11432,
29901,
887,
508,
451,
6084,
1192,
1272,
29899,
14369,
29899,
1256,
322,
1192,
1272,
29899,
2962,
29899,
1256,
472,
278,
1021,
931,
29991,
1159,
13,
632,
13,
9651,
396,
383,
12054,
1299,
29901,
612,
14995,
29979,
29899,
7428,
29899,
7858,
379,
12661,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
2962,
29918,
1256,
3108,
353,
6088,
29889,
1272,
29918,
2962,
29918,
1256,
13,
632,
13,
9651,
565,
451,
313,
2272,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
2962,
29918,
1256,
3108,
7503,
29946,
1822,
275,
26204,
580,
322,
320,
13,
18884,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
2962,
29918,
1256,
3108,
29961,
29945,
29901,
29955,
1822,
275,
26204,
580,
322,
320,
13,
18884,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
2962,
29918,
1256,
3108,
29961,
29947,
29901,
29896,
29900,
1822,
275,
26204,
580,
322,
320,
13,
18884,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
2962,
29918,
1256,
3108,
29961,
29896,
29896,
29901,
29896,
29941,
1822,
275,
26204,
580,
1125,
13,
18884,
762,
703,
11432,
29901,
7370,
2635,
14210,
29879,
29915,
6790,
297,
1192,
1272,
29899,
2962,
29899,
1256,
338,
451,
2854,
29991,
739,
1818,
367,
297,
525,
14995,
14995,
29899,
7428,
29899,
7858,
379,
12661,
29915,
3402,
3850,
1273,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
2962,
29918,
1256,
20068,
13,
308,
13,
4706,
396,
1192,
1272,
29899,
355,
29899,
1256,
13,
4706,
565,
338,
842,
29918,
5415,
703,
1272,
29918,
355,
29918,
1256,
613,
6088,
1125,
13,
9651,
565,
338,
842,
29918,
5415,
703,
1272,
29918,
14369,
29918,
1256,
613,
6088,
1125,
13,
18884,
762,
703,
11432,
29901,
887,
508,
451,
6084,
1192,
1272,
29899,
14369,
29899,
1256,
322,
1192,
1272,
29899,
355,
29899,
1256,
472,
278,
1021,
931,
29991,
1159,
13,
632,
13,
9651,
396,
383,
12054,
1299,
29901,
612,
14995,
29979,
29899,
7428,
29899,
7858,
379,
12661,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
355,
29918,
1256,
3108,
353,
6088,
29889,
1272,
29918,
355,
29918,
1256,
13,
632,
13,
9651,
565,
451,
313,
2272,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
355,
29918,
1256,
3108,
7503,
29946,
1822,
275,
26204,
580,
322,
320,
13,
18884,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
355,
29918,
1256,
3108,
29961,
29945,
29901,
29955,
1822,
275,
26204,
580,
322,
320,
13,
18884,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
355,
29918,
1256,
3108,
29961,
29947,
29901,
29896,
29900,
1822,
275,
26204,
580,
322,
320,
13,
18884,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
355,
29918,
1256,
3108,
29961,
29896,
29896,
29901,
29896,
29941,
1822,
275,
26204,
580,
1125,
13,
18884,
762,
703,
11432,
29901,
2796,
2635,
14210,
29879,
29915,
6790,
297,
1192,
1272,
29899,
355,
29899,
1256,
338,
451,
2854,
29991,
739,
1818,
367,
297,
525,
14995,
14995,
29899,
7428,
29899,
7858,
379,
12661,
29915,
3402,
3850,
1273,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
355,
29918,
1256,
20068,
13,
308,
13,
4706,
396,
1192,
1272,
29899,
2611,
15461,
29899,
29879,
271,
13,
4706,
565,
338,
842,
29918,
5415,
703,
1272,
29918,
2611,
15461,
29918,
29879,
271,
613,
6088,
1125,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
2611,
15461,
29918,
29879,
271,
3108,
353,
6088,
29889,
1272,
29918,
2611,
15461,
29918,
29879,
271,
13,
308,
13,
4706,
396,
1192,
1272,
29899,
10568,
13,
4706,
565,
338,
842,
29918,
5415,
703,
1272,
29918,
10568,
613,
6088,
1125,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
10568,
3108,
353,
6088,
29889,
1272,
29918,
10568,
13,
9651,
565,
451,
5135,
2272,
3665,
3712,
29918,
2917,
1839,
1272,
29918,
10568,
2033,
1275,
376,
273,
29880,
1159,
470,
320,
13,
18884,
313,
2272,
3665,
3712,
29918,
2917,
1839,
1272,
29918,
10568,
2033,
1275,
376,
2710,
1159,
470,
320,
13,
18884,
313,
2272,
3665,
3712,
29918,
2917,
1839,
1272,
29918,
10568,
2033,
1275,
376,
273,
29880,
29989,
2710,
1159,
470,
320,
13,
18884,
313,
2272,
3665,
3712,
29918,
2917,
1839,
1272,
29918,
10568,
2033,
1275,
376,
2710,
29989,
273,
29880,
5783,
29901,
13,
18884,
762,
703,
11432,
29901,
3630,
4331,
14210,
29879,
29915,
6790,
297,
1192,
1256,
29899,
10568,
338,
451,
2854,
29991,
19928,
2845,
367,
525,
273,
29880,
742,
525,
2710,
742,
470,
278,
1023,
12420,
411,
263,
14282,
6702,
273,
29880,
29989,
2710,
2824,
29908,
1273,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
10568,
20068,
13,
308,
13,
4706,
396,
1192,
1272,
29899,
2230,
29899,
4181,
13,
4706,
565,
338,
842,
29918,
5415,
703,
1272,
29918,
2230,
29918,
4181,
613,
6088,
1125,
13,
9651,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
2230,
29918,
4181,
3108,
353,
6088,
29889,
1272,
29918,
2230,
29918,
4181,
13,
632,
13,
9651,
270,
1594,
29918,
5451,
353,
11451,
3665,
3712,
29918,
2917,
1839,
1272,
29918,
2230,
29918,
4181,
13359,
5451,
703,
16521,
13,
9651,
5190,
29918,
3084,
353,
518,
376,
29879,
613,
376,
29893,
613,
376,
29885,
613,
376,
29924,
613,
376,
29882,
613,
376,
29891,
613,
376,
29881,
29908,
4514,
13,
632,
13,
9651,
363,
270,
1594,
297,
270,
1594,
29918,
5451,
29901,
13,
18884,
396,
29871,
269,
29901,
6923,
1678,
286,
29901,
6233,
1678,
298,
29901,
6199,
1678,
270,
29901,
3841,
13,
18884,
396,
29871,
281,
29901,
11405,
418,
341,
29901,
7378,
268,
343,
29901,
2440,
13,
18884,
565,
451,
313,
313,
29881,
1594,
14352,
29896,
29962,
297,
5190,
29918,
3084,
29897,
322,
313,
29881,
1594,
7503,
29899,
29896,
1822,
275,
26204,
3101,
29871,
1125,
13,
462,
1678,
762,
703,
11432,
29901,
21403,
19471,
931,
14210,
29879,
29915,
6790,
297,
1192,
1272,
29899,
4181,
29899,
2230,
29991,
19928,
367,
263,
396,
5643,
491,
263,
2854,
5190,
5497,
29889,
9310,
29879,
29962,
687,
29879,
29892,
518,
29885,
29962,
262,
2667,
29892,
518,
29882,
29962,
2470,
29892,
518,
29881,
29962,
1036,
29892,
518,
29893,
29962,
29872,
14541,
29892,
518,
29924,
29962,
265,
386,
29879,
29892,
518,
29891,
29962,
15451,
5513,
1273,
11451,
3665,
3712,
29918,
2917,
3366,
1272,
29918,
4181,
29918,
2230,
20068,
13,
268,
13,
1678,
565,
338,
842,
29918,
5415,
703,
2917,
29918,
348,
842,
613,
6088,
1125,
13,
4706,
396,
376,
2917,
29889,
1707,
29896,
29936,
5317,
29896,
29989,
1491,
5317,
29896,
29908,
13,
4706,
2295,
29918,
348,
842,
29918,
1753,
353,
12159,
1642,
7122,
29898,
5510,
29889,
2917,
29918,
348,
842,
467,
5451,
703,
29936,
1159,
13,
308,
13,
4706,
363,
2295,
29918,
1753,
297,
2295,
29918,
348,
842,
29918,
1753,
29901,
13,
9651,
565,
2295,
29918,
1753,
29889,
27382,
2541,
703,
2917,
1213,
1125,
13,
18884,
282,
4316,
29918,
2917,
29918,
1707,
353,
2295,
29918,
1753,
29889,
5451,
703,
2917,
23157,
29961,
29896,
17531,
13,
462,
13,
18884,
565,
7431,
29898,
2272,
29878,
29918,
2917,
29918,
1707,
29897,
1405,
29871,
29896,
29901,
13,
462,
1678,
29383,
703,
29956,
25614,
29901,
5953,
26458,
8515,
443,
842,
6251,
29892,
541,
3133,
292,
8763,
23157,
13,
462,
1678,
282,
4316,
29918,
2917,
29918,
1707,
353,
376,
2917,
1213,
29889,
7122,
29898,
2272,
29878,
29918,
2917,
29918,
1707,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
282,
4316,
29918,
2917,
29918,
1707,
353,
851,
29898,
2272,
29878,
29918,
2917,
29918,
1707,
29961,
29900,
2314,
13,
462,
268,
13,
18884,
5235,
703,
2525,
26740,
11451,
3665,
3712,
29918,
2917,
2286,
1273,
29879,
1213,
1273,
282,
4316,
29918,
2917,
29918,
1707,
29897,
13,
462,
13,
18884,
11451,
3665,
3712,
29918,
2917,
29889,
7323,
29898,
2272,
29878,
29918,
2917,
29918,
1707,
29892,
6213,
29897,
13,
9651,
1683,
29901,
13,
18884,
6492,
29918,
2917,
29918,
1707,
353,
2295,
29918,
1753,
29889,
5451,
703,
29989,
1159,
13,
18884,
5235,
703,
2525,
26740,
6492,
29918,
8977,
2286,
1273,
29879,
1213,
1273,
376,
29989,
1642,
7122,
29898,
5317,
29918,
2917,
29918,
1707,
876,
13,
18884,
565,
451,
6492,
29918,
2917,
29918,
1707,
29961,
29900,
29962,
297,
6492,
29918,
8977,
29901,
13,
462,
1678,
29383,
703,
13919,
443,
842,
5023,
17809,
448,
278,
6492,
6790,
29892,
14210,
29879,
742,
947,
451,
1863,
3850,
1273,
3611,
29918,
1753,
29918,
5317,
29897,
13,
462,
1678,
29383,
703,
29923,
1983,
545,
805,
7807,
338,
1959,
29889,
960,
372,
338,
263,
716,
6492,
29892,
1207,
1854,
372,
338,
3342,
23157,
13,
462,
1678,
29383,
703,
4013,
443,
842,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
1678,
6773,
13,
462,
13,
18884,
396,
9280,
29892,
6492,
4864,
29889,
1128,
1048,
1014,
5317,
29973,
13,
18884,
396,
1334,
505,
304,
437,
777,
8515,
15709,
1244,
856,
13,
18884,
396,
2023,
4187,
871,
565,
591,
817,
304,
29889,
13,
462,
13,
18884,
565,
7431,
29898,
5317,
29918,
2917,
29918,
1707,
29897,
6736,
29871,
29906,
29901,
13,
462,
1678,
6492,
29918,
2917,
29918,
1491,
5317,
29918,
11940,
353,
7700,
13,
462,
1678,
3611,
29918,
1753,
29918,
1491,
5317,
29918,
4130,
353,
6213,
13,
462,
1678,
363,
1014,
5317,
29918,
8977,
297,
6492,
29918,
8977,
29961,
5317,
29918,
2917,
29918,
1707,
29961,
29900,
5262,
1839,
26762,
2033,
29901,
13,
462,
4706,
565,
6492,
29918,
2917,
29918,
1707,
29961,
29896,
29962,
297,
1014,
5317,
29918,
8977,
29901,
13,
462,
9651,
1014,
5317,
29918,
4130,
353,
1014,
5317,
29918,
8977,
29961,
5317,
29918,
2917,
29918,
1707,
29961,
29896,
5262,
13,
462,
9651,
6492,
29918,
2917,
29918,
1491,
5317,
29918,
11940,
353,
5852,
13,
462,
9651,
2867,
13,
462,
268,
13,
462,
1678,
565,
451,
6492,
29918,
2917,
29918,
1491,
5317,
29918,
11940,
29901,
13,
462,
4706,
29383,
703,
13919,
443,
842,
5023,
17809,
448,
278,
1014,
5317,
6790,
29892,
14210,
29879,
742,
947,
451,
1863,
3850,
1273,
3611,
29918,
1753,
29918,
1491,
5317,
29897,
13,
462,
4706,
29383,
703,
29923,
1983,
545,
805,
7807,
338,
1959,
29889,
960,
372,
338,
263,
716,
1014,
5317,
29892,
1207,
1854,
372,
338,
3342,
322,
1159,
13,
462,
4706,
29383,
703,
262,
278,
1492,
1014,
5317,
29889,
910,
443,
842,
5023,
674,
367,
14993,
2986,
23157,
13,
462,
4706,
6773,
13,
462,
268,
13,
462,
1678,
396,
5399,
13,
462,
1678,
565,
7431,
29898,
5317,
29918,
2917,
29918,
1707,
29897,
1275,
29871,
29906,
29901,
13,
462,
4706,
6492,
29918,
8977,
29961,
5317,
29918,
2917,
29918,
1707,
29961,
29900,
5262,
1839,
26762,
13359,
5992,
29898,
1491,
5317,
29918,
8977,
29897,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
396,
2567,
8304,
3598,
5217,
29991,
13,
462,
4706,
5217,
29918,
8149,
29918,
3166,
29918,
8977,
29898,
1491,
5317,
29918,
4130,
29892,
6492,
29918,
2917,
29918,
1707,
29961,
29906,
29901,
2314,
13,
18884,
1683,
29901,
13,
462,
1678,
6492,
29918,
8977,
29889,
7323,
29898,
5317,
29918,
2917,
29918,
1707,
29961,
29900,
1402,
6213,
29897,
13,
462,
13,
268,
13,
1678,
396,
5215,
282,
2158,
13,
1678,
396,
407,
29878,
524,
29889,
407,
29878,
524,
29898,
5317,
29918,
8977,
29897,
13,
308,
13,
1678,
396,
2158,
6492,
29918,
8977,
13,
268,
13,
1678,
736,
313,
2272,
3665,
3712,
29918,
2917,
29892,
6492,
29918,
8977,
29892,
6088,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
13812,
353,
1207,
29918,
1191,
16680,
580,
13,
1678,
6088,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
1678,
1596,
6088,
29918,
517,
29918,
2917,
29898,
5510,
29897,
13,
2
] |
DQMOffline/Trigger/python/SoftdropMonitor_cfi.py | PKUfudawei/cmssw | 1 | 189236 | <filename>DQMOffline/Trigger/python/SoftdropMonitor_cfi.py
import FWCore.ParameterSet.Config as cms
from DQMOffline.Trigger.htMonitoring_cfi import htMonitoring
# config file for monitoring the trigger efficiency vs softdropmass of the leading jet
# see python/HTMonitor_cfi.py or plugins/HTMonitor.h or plugins/HTMonitor.cc for more details
hltSoftdropmonitoring = htMonitoring.clone(
FolderName = 'HLT/HT/PFMETNoMu120/',
quantity = 'softdrop', # set quantity to leading jet softdropmass
jetSelection = "pt > 65 && eta < 2.4",
dEtaCut = 1.3,
met = "pfMet",
jets = "ak8PFJetsPuppiSoftDrop", # dont set this to non-SoftdropJets
electrons = "gedGsfElectrons",
muons = "muons",
histoPSet = dict(htBinning = [0., 5., 10., 15., 20., 25., 30., 35., 40., 45., 50., 55., 60., 65., 70., 75., 80., 85., 90., 95., 100., 105., 110., 115., 120., 125., 130., 135., 140., 145., 150., 155., 160., 165., 170., 175., 180., 185., 190., 195., 200.],
htPSet = dict(
nbins = 200,
xmin = -0.5,
xmax = 19999.5)),
numGenericTriggerEventPSet = dict(
andOr = False,
andOrHlt = True, # True:=OR; False:=AND
hltInputTag = "TriggerResults::HLT",
hltPaths = ["HLT_PFMETNoMu120_PFMHTNoMu120_IDTight_v*"],
errorReplyHlt = False,
verbosityLevel = 0),
denGenericTriggerEventPSet = dict(
andOr = False,
dcsInputTag = "scalersRawToDigi",
dcsRecordInputTag = "onlineMetaDataDigis",
dcsPartitions = [24, 25, 26, 27, 28, 29], # 24-27: strip, 28-29
andOrDcs = False,
errorReplyDcs = True,
verbosityLevel = 0,
hltPaths = ["HLT_IsoMu27_v*"])
)
| [
1,
529,
9507,
29958,
29928,
29984,
6720,
600,
1220,
29914,
20211,
29914,
4691,
29914,
6295,
615,
8865,
7185,
2105,
29918,
6854,
29875,
29889,
2272,
13,
5215,
383,
29956,
9203,
29889,
9329,
2697,
29889,
3991,
408,
274,
1516,
13,
13,
3166,
360,
29984,
6720,
600,
1220,
29889,
20211,
29889,
400,
7185,
2105,
292,
29918,
6854,
29875,
1053,
298,
29873,
7185,
2105,
292,
13,
13,
29937,
2295,
934,
363,
29652,
278,
7135,
19201,
7186,
4964,
8865,
25379,
310,
278,
8236,
22588,
13,
29937,
1074,
3017,
29914,
3912,
7185,
2105,
29918,
6854,
29875,
29889,
2272,
470,
18224,
29914,
3912,
7185,
2105,
29889,
29882,
470,
18224,
29914,
3912,
7185,
2105,
29889,
617,
363,
901,
4902,
13,
13,
29882,
1896,
6295,
615,
8865,
3712,
2105,
292,
353,
298,
29873,
7185,
2105,
292,
29889,
16513,
29898,
13,
1678,
383,
3194,
1170,
353,
525,
29950,
5850,
29914,
3912,
29914,
13691,
2303,
29911,
3782,
29924,
29884,
29896,
29906,
29900,
29914,
742,
13,
1678,
14728,
353,
525,
2695,
8865,
742,
396,
731,
14728,
304,
8236,
22588,
4964,
8865,
25379,
13,
1678,
22588,
15097,
353,
376,
415,
1405,
29871,
29953,
29945,
2607,
634,
29874,
529,
29871,
29906,
29889,
29946,
613,
13,
1678,
270,
29923,
941,
29907,
329,
268,
353,
29871,
29896,
29889,
29941,
29892,
13,
1678,
1539,
539,
353,
376,
7810,
10095,
613,
13,
1678,
432,
1691,
418,
353,
376,
557,
29947,
13691,
29967,
1691,
29925,
14889,
29875,
6295,
615,
15063,
613,
396,
4555,
731,
445,
304,
1661,
29899,
6295,
615,
8865,
29967,
1691,
13,
1678,
27149,
353,
376,
3192,
29954,
4668,
29923,
781,
12628,
613,
13,
1678,
3887,
787,
268,
353,
376,
2589,
787,
613,
13,
1678,
298,
5137,
29925,
2697,
353,
9657,
29898,
400,
29933,
262,
1076,
353,
518,
29900,
1696,
29871,
29945,
1696,
29871,
29896,
29900,
1696,
29871,
29896,
29945,
1696,
29871,
29906,
29900,
1696,
29871,
29906,
29945,
1696,
29871,
29941,
29900,
1696,
29871,
29941,
29945,
1696,
29871,
29946,
29900,
1696,
29871,
29946,
29945,
1696,
29871,
29945,
29900,
1696,
29871,
29945,
29945,
1696,
29871,
29953,
29900,
1696,
29871,
29953,
29945,
1696,
29871,
29955,
29900,
1696,
29871,
29955,
29945,
1696,
29871,
29947,
29900,
1696,
29871,
29947,
29945,
1696,
29871,
29929,
29900,
1696,
29871,
29929,
29945,
1696,
29871,
29896,
29900,
29900,
1696,
29871,
29896,
29900,
29945,
1696,
29871,
29896,
29896,
29900,
1696,
29871,
29896,
29896,
29945,
1696,
29871,
29896,
29906,
29900,
1696,
29871,
29896,
29906,
29945,
1696,
29871,
29896,
29941,
29900,
1696,
29871,
29896,
29941,
29945,
1696,
29871,
29896,
29946,
29900,
1696,
29871,
29896,
29946,
29945,
1696,
29871,
29896,
29945,
29900,
1696,
29871,
29896,
29945,
29945,
1696,
29871,
29896,
29953,
29900,
1696,
29871,
29896,
29953,
29945,
1696,
29871,
29896,
29955,
29900,
1696,
29871,
29896,
29955,
29945,
1696,
29871,
29896,
29947,
29900,
1696,
29871,
29896,
29947,
29945,
1696,
29871,
29896,
29929,
29900,
1696,
29871,
29896,
29929,
29945,
1696,
29871,
29906,
29900,
29900,
29889,
1402,
13,
462,
268,
298,
29873,
29925,
2697,
353,
9657,
29898,
13,
462,
9651,
302,
29890,
1144,
353,
259,
29906,
29900,
29900,
29892,
13,
462,
9651,
921,
1195,
29871,
353,
448,
29900,
29889,
29945,
29892,
13,
462,
9651,
921,
3317,
29871,
353,
29871,
29896,
29929,
29929,
29929,
29929,
29889,
29945,
8243,
13,
268,
13,
1949,
15809,
20211,
2624,
29925,
2697,
353,
9657,
29898,
13,
1678,
322,
2816,
29871,
353,
7700,
29892,
13,
1678,
322,
2816,
29950,
1896,
418,
353,
5852,
29892,
396,
5852,
9361,
1955,
29936,
7700,
9361,
9468,
13,
1678,
298,
1896,
4290,
8176,
259,
353,
376,
20211,
12191,
1057,
29950,
5850,
613,
13,
1678,
298,
1896,
2605,
29879,
418,
353,
6796,
29950,
5850,
29918,
13691,
2303,
29911,
3782,
29924,
29884,
29896,
29906,
29900,
29918,
13691,
29924,
3912,
3782,
29924,
29884,
29896,
29906,
29900,
29918,
1367,
29911,
523,
29918,
29894,
29930,
12436,
13,
1678,
1059,
5612,
368,
29950,
1896,
353,
7700,
29892,
13,
1678,
9750,
359,
537,
10108,
353,
29871,
29900,
511,
13,
13,
1145,
15809,
20211,
2624,
29925,
2697,
353,
9657,
29898,
13,
1678,
322,
2816,
29871,
353,
7700,
29892,
13,
1678,
270,
2395,
4290,
8176,
259,
353,
376,
19529,
414,
22131,
1762,
29928,
10091,
613,
13,
1678,
270,
2395,
9182,
4290,
8176,
353,
376,
14627,
19346,
1469,
14991,
275,
613,
13,
1678,
270,
2395,
7439,
2187,
353,
518,
29906,
29946,
29892,
29871,
29906,
29945,
29892,
29871,
29906,
29953,
29892,
29871,
29906,
29955,
29892,
29871,
29906,
29947,
29892,
29871,
29906,
29929,
1402,
396,
29871,
29906,
29946,
29899,
29906,
29955,
29901,
17820,
29892,
29871,
29906,
29947,
29899,
29906,
29929,
13,
1678,
322,
2816,
29928,
2395,
418,
353,
7700,
29892,
13,
1678,
1059,
5612,
368,
29928,
2395,
353,
5852,
29892,
13,
1678,
9750,
359,
537,
10108,
353,
29871,
29900,
29892,
13,
1678,
298,
1896,
2605,
29879,
418,
353,
6796,
29950,
5850,
29918,
29902,
578,
29924,
29884,
29906,
29955,
29918,
29894,
29930,
20068,
13,
29897,
13,
13,
2
] |
lib/python3.8/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_bd.py | cjsteel/python3-venv-ansible-2.10.5 | 0 | 85989 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'certified'}
DOCUMENTATION = r'''
---
module: aci_bd
short_description: Manage Bridge Domains (BD) objects (fv:BD)
description:
- Manages Bridge Domains (BD) on Cisco ACI fabrics.
options:
arp_flooding:
description:
- Determines if the Bridge Domain should flood ARP traffic.
- The APIC defaults to C(no) when unset during creation.
type: bool
bd:
description:
- The name of the Bridge Domain.
type: str
aliases: [ bd_name, name ]
bd_type:
description:
- The type of traffic on the Bridge Domain.
- The APIC defaults to C(ethernet) when unset during creation.
type: str
choices: [ ethernet, fc ]
description:
description:
- Description for the Bridge Domain.
type: str
enable_multicast:
description:
- Determines if PIM is enabled.
- The APIC defaults to C(no) when unset during creation.
type: bool
enable_routing:
description:
- Determines if IP forwarding should be allowed.
- The APIC defaults to C(yes) when unset during creation.
type: bool
endpoint_clear:
description:
- Clears all End Points in all Leaves when C(yes).
- The value is not reset to disabled once End Points have been cleared; that requires a second task.
- The APIC defaults to C(no) when unset during creation.
type: bool
endpoint_move_detect:
description:
- Determines if GARP should be enabled to detect when End Points move.
- The APIC defaults to C(garp) when unset during creation.
type: str
choices: [ default, garp ]
endpoint_retention_action:
description:
- Determines if the Bridge Domain should inherit or resolve the End Point Retention Policy.
- The APIC defaults to C(resolve) when unset during creation.
type: str
choices: [ inherit, resolve ]
endpoint_retention_policy:
description:
- The name of the End Point Retention Policy the Bridge Domain should use when
overriding the default End Point Retention Policy.
type: str
igmp_snoop_policy:
description:
- The name of the IGMP Snooping Policy the Bridge Domain should use when
overriding the default IGMP Snooping Policy.
type: str
ip_learning:
description:
- Determines if the Bridge Domain should learn End Point IPs.
- The APIC defaults to C(yes) when unset during creation.
type: bool
ipv6_nd_policy:
description:
- The name of the IPv6 Neighbor Discovery Policy the Bridge Domain should use when
overridding the default IPV6 ND Policy.
type: str
l2_unknown_unicast:
description:
- Determines what forwarding method to use for unknown l2 destinations.
- The APIC defaults to C(proxy) when unset during creation.
type: str
choices: [ proxy, flood ]
l3_unknown_multicast:
description:
- Determines the forwarding method to use for unknown multicast destinations.
- The APIC defaults to C(flood) when unset during creation.
type: str
choices: [ flood, opt-flood ]
limit_ip_learn:
description:
- Determines if the BD should limit IP learning to only subnets owned by the Bridge Domain.
- The APIC defaults to C(yes) when unset during creation.
type: bool
mac_address:
description:
- The MAC Address to assign to the C(bd) instead of using the default.
- The APIC defaults to C(00:22:BD:F8:19:FF) when unset during creation.
type: str
aliases: [ mac ]
multi_dest:
description:
- Determines the forwarding method for L2 multicast, broadcast, and link layer traffic.
- The APIC defaults to C(bd-flood) when unset during creation.
type: str
choices: [ bd-flood, drop, encap-flood ]
state:
description:
- Use C(present) or C(absent) for adding or removing.
- Use C(query) for listing an object or multiple objects.
type: str
choices: [ absent, present, query ]
default: present
name_alias:
description:
- The alias for the current object. This relates to the nameAlias field in ACI.
type: str
tenant:
description:
- The name of the Tenant.
type: str
aliases: [ tenant_name ]
vrf:
description:
- The name of the VRF.
type: str
aliases: [ vrf_name ]
extends_documentation_fragment:
- cisco.aci.aci
notes:
- The C(tenant) used must exist before using this module in your playbook.
The M(cisco.aci.aci_tenant) module can be used for this.
seealso:
- module: cisco.aci.aci_tenant
- name: APIC Management Information Model reference
description: More information about the internal APIC class B(fv:BD).
link: https://developer.cisco.com/docs/apic-mim-ref/
author:
- <NAME> (@jmcgill298)
'''
EXAMPLES = r'''
- name: Add Bridge Domain
cisco.aci.aci_bd:
host: "{{ inventory_hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: no
tenant: prod
bd: web_servers
mac_address: 00:22:BD:F8:19:FE
vrf: prod_vrf
state: present
delegate_to: localhost
- name: Add an FC Bridge Domain
cisco.aci.aci_bd:
host: "{{ inventory_hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: no
tenant: prod
bd: storage
bd_type: fc
vrf: fc_vrf
enable_routing: no
state: present
delegate_to: localhost
- name: Modify a Bridge Domain
cisco.aci.aci_bd:
host: "{{ inventory_hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: yes
tenant: prod
bd: web_servers
arp_flooding: yes
l2_unknown_unicast: flood
state: present
delegate_to: localhost
- name: Query All Bridge Domains
cisco.aci.aci_bd:
host: "{{ inventory_hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: yes
state: query
delegate_to: localhost
register: query_result
- name: Query a Bridge Domain
cisco.aci.aci_bd:
host: "{{ inventory_hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: yes
tenant: prod
bd: web_servers
state: query
delegate_to: localhost
register: query_result
- name: Delete a Bridge Domain
cisco.aci.aci_bd:
host: "{{ inventory_hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: yes
tenant: prod
bd: web_servers
state: absent
delegate_to: localhost
'''
RETURN = r'''
current:
description: The existing configuration from the APIC after the module has finished
returned: success
type: list
sample:
[
{
"fvTenant": {
"attributes": {
"descr": "Production environment",
"dn": "uni/tn-production",
"name": "production",
"nameAlias": "",
"ownerKey": "",
"ownerTag": ""
}
}
}
]
error:
description: The error information as returned from the APIC
returned: failure
type: dict
sample:
{
"code": "122",
"text": "unknown managed object class foo"
}
raw:
description: The raw output returned by the APIC REST API (xml or json)
returned: parse error
type: str
sample: '<?xml version="1.0" encoding="UTF-8"?><imdata totalCount="1"><error code="122" text="unknown managed object class foo"/></imdata>'
sent:
description: The actual/minimal configuration pushed to the APIC
returned: info
type: list
sample:
{
"fvTenant": {
"attributes": {
"descr": "Production environment"
}
}
}
previous:
description: The original configuration from the APIC before the module has started
returned: info
type: list
sample:
[
{
"fvTenant": {
"attributes": {
"descr": "Production",
"dn": "uni/tn-production",
"name": "production",
"nameAlias": "",
"ownerKey": "",
"ownerTag": ""
}
}
}
]
proposed:
description: The assembled configuration from the user-provided parameters
returned: info
type: dict
sample:
{
"fvTenant": {
"attributes": {
"descr": "Production environment",
"name": "production"
}
}
}
filter_string:
description: The filter string used for the request
returned: failure or debug
type: str
sample: ?rsp-prop-include=config-only
method:
description: The HTTP method used for the request to the APIC
returned: failure or debug
type: str
sample: POST
response:
description: The HTTP response from the APIC
returned: failure or debug
type: str
sample: OK (30 bytes)
status:
description: The HTTP status from the APIC
returned: failure or debug
type: int
sample: 200
url:
description: The HTTP url used for the request to the APIC
returned: failure or debug
type: str
sample: https://10.11.12.13/api/mo/uni/tn-production.json
'''
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cisco.aci.plugins.module_utils.aci import ACIModule, aci_argument_spec
def main():
argument_spec = aci_argument_spec()
argument_spec.update(
arp_flooding=dict(type='bool'),
bd=dict(type='str', aliases=['bd_name', 'name']), # Not required for querying all objects
bd_type=dict(type='str', choices=['ethernet', 'fc']),
description=dict(type='str'),
enable_multicast=dict(type='bool'),
enable_routing=dict(type='bool'),
endpoint_clear=dict(type='bool'),
endpoint_move_detect=dict(type='str', choices=['default', 'garp']),
endpoint_retention_action=dict(type='str', choices=['inherit', 'resolve']),
endpoint_retention_policy=dict(type='str'),
igmp_snoop_policy=dict(type='str'),
ip_learning=dict(type='bool'),
ipv6_nd_policy=dict(type='str'),
l2_unknown_unicast=dict(type='str', choices=['proxy', 'flood']),
l3_unknown_multicast=dict(type='str', choices=['flood', 'opt-flood']),
limit_ip_learn=dict(type='bool'),
mac_address=dict(type='str', aliases=['mac']),
multi_dest=dict(type='str', choices=['bd-flood', 'drop', 'encap-flood']),
state=dict(type='str', default='present', choices=['absent', 'present', 'query']),
tenant=dict(type='str', aliases=['tenant_name']), # Not required for querying all objects
vrf=dict(type='str', aliases=['vrf_name']),
name_alias=dict(type='str'),
)
module = AnsibleModule(
argument_spec=argument_spec,
supports_check_mode=True,
required_if=[
['state', 'absent', ['bd', 'tenant']],
['state', 'present', ['bd', 'tenant']],
],
)
aci = ACIModule(module)
arp_flooding = aci.boolean(module.params.get('arp_flooding'))
bd = module.params.get('bd')
bd_type = module.params.get('bd_type')
if bd_type == 'ethernet':
# ethernet type is represented as regular, but that is not clear to the users
bd_type = 'regular'
description = module.params.get('description')
enable_multicast = aci.boolean(module.params.get('enable_multicast'))
enable_routing = aci.boolean(module.params.get('enable_routing'))
endpoint_clear = aci.boolean(module.params.get('endpoint_clear'))
endpoint_move_detect = module.params.get('endpoint_move_detect')
if endpoint_move_detect == 'default':
# the ACI default setting is an empty string, but that is not a good input value
endpoint_move_detect = ''
endpoint_retention_action = module.params.get('endpoint_retention_action')
endpoint_retention_policy = module.params.get('endpoint_retention_policy')
igmp_snoop_policy = module.params.get('igmp_snoop_policy')
ip_learning = aci.boolean(module.params.get('ip_learning'))
ipv6_nd_policy = module.params.get('ipv6_nd_policy')
l2_unknown_unicast = module.params.get('l2_unknown_unicast')
l3_unknown_multicast = module.params.get('l3_unknown_multicast')
limit_ip_learn = aci.boolean(module.params.get('limit_ip_learn'))
mac_address = module.params.get('mac_address')
multi_dest = module.params.get('multi_dest')
state = module.params.get('state')
tenant = module.params.get('tenant')
vrf = module.params.get('vrf')
name_alias = module.params.get('name_alias')
aci.construct_url(
root_class=dict(
aci_class='fvTenant',
aci_rn='tn-{0}'.format(tenant),
module_object=tenant,
target_filter={'name': tenant},
),
subclass_1=dict(
aci_class='fvBD',
aci_rn='BD-{0}'.format(bd),
module_object=bd,
target_filter={'name': bd},
),
child_classes=['fvRsCtx', 'fvRsIgmpsn', 'fvRsBDToNdP', 'fvRsBdToEpRet'],
)
aci.get_existing()
if state == 'present':
aci.payload(
aci_class='fvBD',
class_config=dict(
arpFlood=arp_flooding,
descr=description,
epClear=endpoint_clear,
epMoveDetectMode=endpoint_move_detect,
ipLearning=ip_learning,
limitIpLearnToSubnets=limit_ip_learn,
mac=mac_address,
mcastAllow=enable_multicast,
multiDstPktAct=multi_dest,
name=bd,
type=bd_type,
unicastRoute=enable_routing,
unkMacUcastAct=l2_unknown_unicast,
unkMcastAct=l3_unknown_multicast,
nameAlias=name_alias,
),
child_configs=[
{'fvRsCtx': {'attributes': {'tnFvCtxName': vrf}}},
{'fvRsIgmpsn': {'attributes': {'tnIgmpSnoopPolName': igmp_snoop_policy}}},
{'fvRsBDToNdP': {'attributes': {'tnNdIfPolName': ipv6_nd_policy}}},
{'fvRsBdToEpRet': {'attributes': {'resolveAct': endpoint_retention_action, 'tnFvEpRetPolName': endpoint_retention_policy}}},
],
)
aci.get_diff(aci_class='fvBD')
aci.post_config()
elif state == 'absent':
aci.delete_config()
aci.exit_json()
if __name__ == "__main__":
main()
| [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
29937,
15143,
4593,
5236,
19245,
325,
29941,
29889,
29900,
29974,
313,
4149,
365,
2965,
1430,
1660,
470,
2045,
597,
1636,
29889,
18713,
29889,
990,
29914,
506,
11259,
29914,
29887,
572,
29899,
29941,
29889,
29900,
29889,
3945,
29897,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
8542,
29892,
1596,
29918,
2220,
13,
1649,
2527,
562,
605,
1649,
353,
1134,
13,
13,
2190,
5425,
29933,
1307,
29918,
2303,
29911,
3035,
8254,
353,
11117,
19635,
29918,
3259,
2396,
525,
29896,
29889,
29896,
742,
13,
462,
1678,
525,
4882,
2396,
6024,
25347,
7464,
13,
462,
1678,
525,
23765,
29918,
1609,
2396,
525,
6327,
2164,
10827,
13,
13,
28665,
5005,
3919,
8098,
353,
364,
12008,
13,
5634,
13,
5453,
29901,
263,
455,
29918,
6448,
13,
12759,
29918,
8216,
29901,
2315,
482,
16230,
7809,
2708,
313,
29121,
29897,
3618,
313,
29888,
29894,
29901,
29121,
29897,
13,
8216,
29901,
13,
29899,
2315,
1179,
16230,
7809,
2708,
313,
29121,
29897,
373,
315,
275,
1111,
319,
8426,
10135,
10817,
29889,
13,
6768,
29901,
13,
29871,
564,
29886,
29918,
29888,
417,
3689,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
5953,
837,
1475,
565,
278,
16230,
28460,
881,
5685,
397,
9033,
29925,
12469,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
1217,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
6120,
13,
29871,
289,
29881,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
450,
1024,
310,
278,
16230,
28460,
29889,
13,
1678,
1134,
29901,
851,
13,
1678,
14430,
2129,
29901,
518,
289,
29881,
29918,
978,
29892,
1024,
4514,
13,
29871,
289,
29881,
29918,
1853,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
450,
1134,
310,
12469,
373,
278,
16230,
28460,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
621,
824,
300,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
851,
13,
1678,
19995,
29901,
518,
11314,
824,
300,
29892,
285,
29883,
4514,
13,
29871,
6139,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
12953,
363,
278,
16230,
28460,
29889,
13,
1678,
1134,
29901,
851,
13,
29871,
9025,
29918,
4713,
293,
579,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
5953,
837,
1475,
565,
349,
7833,
338,
9615,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
1217,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
6120,
13,
29871,
9025,
29918,
14608,
292,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
5953,
837,
1475,
565,
5641,
6375,
292,
881,
367,
6068,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
3582,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
6120,
13,
29871,
16248,
29918,
8551,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
21386,
1503,
599,
2796,
8984,
29879,
297,
599,
951,
5989,
746,
315,
29898,
3582,
467,
13,
1678,
448,
450,
995,
338,
451,
10092,
304,
12708,
2748,
2796,
8984,
29879,
505,
1063,
24639,
29936,
393,
6858,
263,
1473,
3414,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
1217,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
6120,
13,
29871,
16248,
29918,
11631,
29918,
4801,
522,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
5953,
837,
1475,
565,
402,
1718,
29925,
881,
367,
9615,
304,
6459,
746,
2796,
8984,
29879,
4337,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
5397,
29886,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
851,
13,
1678,
19995,
29901,
518,
2322,
29892,
330,
6834,
4514,
13,
29871,
16248,
29918,
2267,
2509,
29918,
2467,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
5953,
837,
1475,
565,
278,
16230,
28460,
881,
13125,
470,
8814,
278,
2796,
8984,
4649,
2509,
25219,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
17863,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
851,
13,
1678,
19995,
29901,
518,
13125,
29892,
8814,
4514,
13,
29871,
16248,
29918,
2267,
2509,
29918,
22197,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
450,
1024,
310,
278,
2796,
8984,
4649,
2509,
25219,
278,
16230,
28460,
881,
671,
746,
13,
418,
20831,
292,
278,
2322,
2796,
8984,
4649,
2509,
25219,
29889,
13,
1678,
1134,
29901,
851,
13,
29871,
8919,
1526,
29918,
29879,
1217,
459,
29918,
22197,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
450,
1024,
310,
278,
306,
29954,
3580,
317,
1217,
459,
292,
25219,
278,
16230,
28460,
881,
671,
746,
13,
418,
20831,
292,
278,
2322,
306,
29954,
3580,
317,
1217,
459,
292,
25219,
29889,
13,
1678,
1134,
29901,
851,
13,
29871,
10377,
29918,
21891,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
5953,
837,
1475,
565,
278,
16230,
28460,
881,
5110,
2796,
8984,
5641,
29879,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
3582,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
6120,
13,
29871,
10377,
29894,
29953,
29918,
299,
29918,
22197,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
450,
1024,
310,
278,
5641,
29894,
29953,
2448,
1141,
4089,
8565,
22205,
25219,
278,
16230,
28460,
881,
671,
746,
13,
418,
975,
29878,
2205,
292,
278,
2322,
5641,
29963,
29953,
405,
29928,
25219,
29889,
13,
1678,
1134,
29901,
851,
13,
29871,
301,
29906,
29918,
26690,
29918,
2523,
579,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
5953,
837,
1475,
825,
6375,
292,
1158,
304,
671,
363,
9815,
301,
29906,
15422,
800,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
14701,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
851,
13,
1678,
19995,
29901,
518,
10166,
29892,
5685,
397,
4514,
13,
29871,
301,
29941,
29918,
26690,
29918,
4713,
293,
579,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
5953,
837,
1475,
278,
6375,
292,
1158,
304,
671,
363,
9815,
1773,
293,
579,
15422,
800,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
29888,
417,
397,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
851,
13,
1678,
19995,
29901,
518,
5685,
397,
29892,
3523,
29899,
29888,
417,
397,
4514,
13,
29871,
4046,
29918,
666,
29918,
19668,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
5953,
837,
1475,
565,
278,
350,
29928,
881,
4046,
5641,
6509,
304,
871,
1014,
1212,
29879,
15205,
491,
278,
16230,
28460,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
3582,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
6120,
13,
29871,
5825,
29918,
7328,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
450,
26750,
16428,
304,
3566,
304,
278,
315,
29898,
6448,
29897,
2012,
310,
773,
278,
2322,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
29900,
29900,
29901,
29906,
29906,
29901,
29121,
29901,
29943,
29947,
29901,
29896,
29929,
29901,
4198,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
851,
13,
1678,
14430,
2129,
29901,
518,
5825,
4514,
13,
29871,
2473,
29918,
7854,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
5953,
837,
1475,
278,
6375,
292,
1158,
363,
365,
29906,
1773,
293,
579,
29892,
12672,
29892,
322,
1544,
7546,
12469,
29889,
13,
1678,
448,
450,
3450,
29907,
21274,
304,
315,
29898,
6448,
29899,
29888,
417,
397,
29897,
746,
443,
842,
2645,
11265,
29889,
13,
1678,
1134,
29901,
851,
13,
1678,
19995,
29901,
518,
289,
29881,
29899,
29888,
417,
397,
29892,
5768,
29892,
2094,
481,
29899,
29888,
417,
397,
4514,
13,
29871,
2106,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
4803,
315,
29898,
6338,
29897,
470,
315,
29898,
6897,
296,
29897,
363,
4417,
470,
11077,
29889,
13,
1678,
448,
4803,
315,
29898,
1972,
29897,
363,
18028,
385,
1203,
470,
2999,
3618,
29889,
13,
1678,
1134,
29901,
851,
13,
1678,
19995,
29901,
518,
29207,
29892,
2198,
29892,
2346,
4514,
13,
1678,
2322,
29901,
2198,
13,
29871,
1024,
29918,
19973,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
450,
13995,
363,
278,
1857,
1203,
29889,
910,
1104,
1078,
304,
278,
1024,
29909,
18849,
1746,
297,
319,
8426,
29889,
13,
1678,
1134,
29901,
851,
13,
29871,
3006,
424,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
450,
1024,
310,
278,
12444,
424,
29889,
13,
1678,
1134,
29901,
851,
13,
1678,
14430,
2129,
29901,
518,
3006,
424,
29918,
978,
4514,
13,
29871,
325,
9600,
29901,
13,
1678,
6139,
29901,
13,
1678,
448,
450,
1024,
310,
278,
478,
29934,
29943,
29889,
13,
1678,
1134,
29901,
851,
13,
1678,
14430,
2129,
29901,
518,
325,
9600,
29918,
978,
4514,
13,
1062,
1975,
29918,
12663,
29918,
20777,
29901,
13,
29899,
274,
275,
1111,
29889,
18703,
29889,
18703,
13,
13,
16953,
29901,
13,
29899,
450,
315,
29898,
841,
424,
29897,
1304,
1818,
1863,
1434,
773,
445,
3883,
297,
596,
1708,
2909,
29889,
13,
29871,
450,
341,
29898,
3476,
1111,
29889,
18703,
29889,
18703,
29918,
841,
424,
29897,
3883,
508,
367,
1304,
363,
445,
29889,
13,
4149,
15189,
29901,
13,
29899,
3883,
29901,
274,
275,
1111,
29889,
18703,
29889,
18703,
29918,
841,
424,
13,
29899,
1024,
29901,
3450,
29907,
15057,
10343,
8125,
3407,
13,
29871,
6139,
29901,
5853,
2472,
1048,
278,
7463,
3450,
29907,
770,
350,
29898,
29888,
29894,
29901,
29121,
467,
13,
29871,
1544,
29901,
2045,
597,
6734,
29889,
3476,
1111,
29889,
510,
29914,
2640,
29914,
481,
293,
29899,
29885,
326,
29899,
999,
29914,
13,
8921,
29901,
13,
29899,
529,
5813,
29958,
20164,
29926,
14047,
29887,
453,
29906,
29929,
29947,
29897,
13,
12008,
13,
13,
5746,
19297,
17101,
353,
364,
12008,
13,
29899,
1024,
29901,
3462,
16230,
28460,
13,
29871,
274,
275,
1111,
29889,
18703,
29889,
18703,
29918,
6448,
29901,
13,
1678,
3495,
29901,
376,
6224,
11817,
706,
29918,
28988,
500,
5038,
13,
1678,
8952,
29901,
376,
6224,
8952,
500,
5038,
13,
1678,
4800,
29901,
376,
6224,
4800,
500,
5038,
13,
1678,
12725,
29918,
6327,
29879,
29901,
694,
13,
1678,
3006,
424,
29901,
11859,
13,
1678,
289,
29881,
29901,
1856,
29918,
643,
874,
13,
1678,
5825,
29918,
7328,
29901,
29871,
29900,
29900,
29901,
29906,
29906,
29901,
29121,
29901,
29943,
29947,
29901,
29896,
29929,
29901,
16359,
13,
1678,
325,
9600,
29901,
11859,
29918,
29894,
9600,
13,
1678,
2106,
29901,
2198,
13,
29871,
13341,
29918,
517,
29901,
15683,
13,
13,
29899,
1024,
29901,
3462,
385,
7992,
16230,
28460,
13,
29871,
274,
275,
1111,
29889,
18703,
29889,
18703,
29918,
6448,
29901,
13,
1678,
3495,
29901,
376,
6224,
11817,
706,
29918,
28988,
500,
5038,
13,
1678,
8952,
29901,
376,
6224,
8952,
500,
5038,
13,
1678,
4800,
29901,
376,
6224,
4800,
500,
5038,
13,
1678,
12725,
29918,
6327,
29879,
29901,
694,
13,
1678,
3006,
424,
29901,
11859,
13,
1678,
289,
29881,
29901,
8635,
13,
1678,
289,
29881,
29918,
1853,
29901,
285,
29883,
13,
1678,
325,
9600,
29901,
285,
29883,
29918,
29894,
9600,
13,
1678,
9025,
29918,
14608,
292,
29901,
694,
13,
1678,
2106,
29901,
2198,
13,
29871,
13341,
29918,
517,
29901,
15683,
13,
13,
29899,
1024,
29901,
3382,
1598,
263,
16230,
28460,
13,
29871,
274,
275,
1111,
29889,
18703,
29889,
18703,
29918,
6448,
29901,
13,
1678,
3495,
29901,
376,
6224,
11817,
706,
29918,
28988,
500,
5038,
13,
1678,
8952,
29901,
376,
6224,
8952,
500,
5038,
13,
1678,
4800,
29901,
376,
6224,
4800,
500,
5038,
13,
1678,
12725,
29918,
6327,
29879,
29901,
4874,
13,
1678,
3006,
424,
29901,
11859,
13,
1678,
289,
29881,
29901,
1856,
29918,
643,
874,
13,
1678,
564,
29886,
29918,
29888,
417,
3689,
29901,
4874,
13,
1678,
301,
29906,
29918,
26690,
29918,
2523,
579,
29901,
5685,
397,
13,
1678,
2106,
29901,
2198,
13,
29871,
13341,
29918,
517,
29901,
15683,
13,
13,
29899,
1024,
29901,
13641,
2178,
16230,
7809,
2708,
13,
29871,
274,
275,
1111,
29889,
18703,
29889,
18703,
29918,
6448,
29901,
13,
1678,
3495,
29901,
376,
6224,
11817,
706,
29918,
28988,
500,
5038,
13,
1678,
8952,
29901,
376,
6224,
8952,
500,
5038,
13,
1678,
4800,
29901,
376,
6224,
4800,
500,
5038,
13,
1678,
12725,
29918,
6327,
29879,
29901,
4874,
13,
1678,
2106,
29901,
2346,
13,
29871,
13341,
29918,
517,
29901,
15683,
13,
29871,
6036,
29901,
2346,
29918,
2914,
13,
13,
29899,
1024,
29901,
13641,
263,
16230,
28460,
13,
29871,
274,
275,
1111,
29889,
18703,
29889,
18703,
29918,
6448,
29901,
13,
1678,
3495,
29901,
376,
6224,
11817,
706,
29918,
28988,
500,
5038,
13,
1678,
8952,
29901,
376,
6224,
8952,
500,
5038,
13,
1678,
4800,
29901,
376,
6224,
4800,
500,
5038,
13,
1678,
12725,
29918,
6327,
29879,
29901,
4874,
13,
1678,
3006,
424,
29901,
11859,
13,
1678,
289,
29881,
29901,
1856,
29918,
643,
874,
13,
1678,
2106,
29901,
2346,
13,
29871,
13341,
29918,
517,
29901,
15683,
13,
29871,
6036,
29901,
2346,
29918,
2914,
13,
13,
29899,
1024,
29901,
21267,
263,
16230,
28460,
13,
29871,
274,
275,
1111,
29889,
18703,
29889,
18703,
29918,
6448,
29901,
13,
1678,
3495,
29901,
376,
6224,
11817,
706,
29918,
28988,
500,
5038,
13,
1678,
8952,
29901,
376,
6224,
8952,
500,
5038,
13,
1678,
4800,
29901,
376,
6224,
4800,
500,
5038,
13,
1678,
12725,
29918,
6327,
29879,
29901,
4874,
13,
1678,
3006,
424,
29901,
11859,
13,
1678,
289,
29881,
29901,
1856,
29918,
643,
874,
13,
1678,
2106,
29901,
29207,
13,
29871,
13341,
29918,
517,
29901,
15683,
13,
12008,
13,
13,
1525,
29911,
24015,
353,
364,
12008,
13,
3784,
29901,
13,
29871,
6139,
29901,
450,
5923,
5285,
515,
278,
3450,
29907,
1156,
278,
3883,
756,
7743,
13,
29871,
4133,
29901,
2551,
13,
29871,
1134,
29901,
1051,
13,
29871,
4559,
29901,
13,
1678,
518,
13,
4706,
426,
13,
9651,
376,
29888,
29894,
29911,
27153,
1115,
426,
13,
18884,
376,
15697,
1115,
426,
13,
462,
1678,
376,
2783,
7283,
1115,
376,
23665,
428,
5177,
613,
13,
462,
1678,
376,
5200,
1115,
376,
3909,
29914,
6277,
29899,
24601,
613,
13,
462,
1678,
376,
978,
1115,
376,
24601,
613,
13,
462,
1678,
376,
978,
29909,
18849,
1115,
12633,
13,
462,
1678,
376,
20348,
2558,
1115,
12633,
13,
462,
1678,
376,
20348,
8176,
1115,
5124,
13,
18884,
500,
13,
9651,
500,
13,
4706,
500,
13,
1678,
4514,
13,
2704,
29901,
13,
29871,
6139,
29901,
450,
1059,
2472,
408,
4133,
515,
278,
3450,
29907,
13,
29871,
4133,
29901,
10672,
13,
29871,
1134,
29901,
9657,
13,
29871,
4559,
29901,
13,
1678,
426,
13,
4706,
376,
401,
1115,
376,
29896,
29906,
29906,
613,
13,
4706,
376,
726,
1115,
376,
26690,
8745,
1203,
770,
7953,
29908,
13,
1678,
500,
13,
1610,
29901,
13,
29871,
6139,
29901,
450,
10650,
1962,
4133,
491,
278,
3450,
29907,
16759,
3450,
313,
3134,
470,
4390,
29897,
13,
29871,
4133,
29901,
6088,
1059,
13,
29871,
1134,
29901,
851,
13,
29871,
4559,
29901,
525,
8169,
3134,
1873,
543,
29896,
29889,
29900,
29908,
8025,
543,
10496,
29899,
29947,
8652,
5299,
326,
1272,
3001,
3981,
543,
29896,
3254,
2704,
775,
543,
29896,
29906,
29906,
29908,
1426,
543,
26690,
8745,
1203,
770,
7953,
23901,
2565,
326,
1272,
16299,
13,
18616,
29901,
13,
29871,
6139,
29901,
450,
3935,
29914,
1195,
3039,
5285,
18760,
304,
278,
3450,
29907,
13,
29871,
4133,
29901,
5235,
13,
29871,
1134,
29901,
1051,
13,
29871,
4559,
29901,
13,
1678,
426,
13,
4706,
376,
29888,
29894,
29911,
27153,
1115,
426,
13,
9651,
376,
15697,
1115,
426,
13,
18884,
376,
2783,
7283,
1115,
376,
23665,
428,
5177,
29908,
13,
9651,
500,
13,
4706,
500,
13,
1678,
500,
13,
24957,
29901,
13,
29871,
6139,
29901,
450,
2441,
5285,
515,
278,
3450,
29907,
1434,
278,
3883,
756,
4687,
13,
29871,
4133,
29901,
5235,
13,
29871,
1134,
29901,
1051,
13,
29871,
4559,
29901,
13,
1678,
518,
13,
4706,
426,
13,
9651,
376,
29888,
29894,
29911,
27153,
1115,
426,
13,
18884,
376,
15697,
1115,
426,
13,
462,
1678,
376,
2783,
7283,
1115,
376,
23665,
428,
613,
13,
462,
1678,
376,
5200,
1115,
376,
3909,
29914,
6277,
29899,
24601,
613,
13,
462,
1678,
376,
978,
1115,
376,
24601,
613,
13,
462,
1678,
376,
978,
29909,
18849,
1115,
12633,
13,
462,
1678,
376,
20348,
2558,
1115,
12633,
13,
462,
1678,
376,
20348,
8176,
1115,
5124,
13,
18884,
500,
13,
9651,
500,
13,
4706,
500,
13,
1678,
4514,
13,
771,
4752,
29901,
13,
29871,
6139,
29901,
450,
24940,
29881,
5285,
515,
278,
1404,
29899,
16123,
2618,
4128,
13,
29871,
4133,
29901,
5235,
13,
29871,
1134,
29901,
9657,
13,
29871,
4559,
29901,
13,
1678,
426,
13,
4706,
376,
29888,
29894,
29911,
27153,
1115,
426,
13,
9651,
376,
15697,
1115,
426,
13,
18884,
376,
2783,
7283,
1115,
376,
23665,
428,
5177,
613,
13,
18884,
376,
978,
1115,
376,
24601,
29908,
13,
9651,
500,
13,
4706,
500,
13,
1678,
500,
13,
4572,
29918,
1807,
29901,
13,
29871,
6139,
29901,
450,
4175,
1347,
1304,
363,
278,
2009,
13,
29871,
4133,
29901,
10672,
470,
4744,
13,
29871,
1134,
29901,
851,
13,
29871,
4559,
29901,
1577,
29878,
1028,
29899,
7728,
29899,
2856,
29922,
2917,
29899,
6194,
13,
5696,
29901,
13,
29871,
6139,
29901,
450,
7331,
1158,
1304,
363,
278,
2009,
304,
278,
3450,
29907,
13,
29871,
4133,
29901,
10672,
470,
4744,
13,
29871,
1134,
29901,
851,
13,
29871,
4559,
29901,
11971,
13,
5327,
29901,
13,
29871,
6139,
29901,
450,
7331,
2933,
515,
278,
3450,
29907,
13,
29871,
4133,
29901,
10672,
470,
4744,
13,
29871,
1134,
29901,
851,
13,
29871,
4559,
29901,
9280,
313,
29941,
29900,
6262,
29897,
13,
4882,
29901,
13,
29871,
6139,
29901,
450,
7331,
4660,
515,
278,
3450,
29907,
13,
29871,
4133,
29901,
10672,
470,
4744,
13,
29871,
1134,
29901,
938,
13,
29871,
4559,
29901,
29871,
29906,
29900,
29900,
13,
2271,
29901,
13,
29871,
6139,
29901,
450,
7331,
3142,
1304,
363,
278,
2009,
304,
278,
3450,
29907,
13,
29871,
4133,
29901,
10672,
470,
4744,
13,
29871,
1134,
29901,
851,
13,
29871,
4559,
29901,
2045,
597,
29896,
29900,
29889,
29896,
29896,
29889,
29896,
29906,
29889,
29896,
29941,
29914,
2754,
29914,
4346,
29914,
3909,
29914,
6277,
29899,
24601,
29889,
3126,
13,
12008,
13,
13,
3166,
385,
1687,
29889,
5453,
29918,
13239,
29889,
16121,
1053,
530,
1687,
7355,
13,
3166,
385,
1687,
29918,
29027,
29889,
3476,
1111,
29889,
18703,
29889,
12800,
29889,
5453,
29918,
13239,
29889,
18703,
1053,
319,
8426,
7355,
29892,
263,
455,
29918,
23516,
29918,
6550,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
2980,
29918,
6550,
353,
263,
455,
29918,
23516,
29918,
6550,
580,
13,
1678,
2980,
29918,
6550,
29889,
5504,
29898,
13,
4706,
564,
29886,
29918,
29888,
417,
3689,
29922,
8977,
29898,
1853,
2433,
11227,
5477,
13,
4706,
289,
29881,
29922,
8977,
29898,
1853,
2433,
710,
742,
14430,
2129,
29922,
1839,
6448,
29918,
978,
742,
525,
978,
2033,
511,
29871,
396,
2216,
3734,
363,
2346,
292,
599,
3618,
13,
4706,
289,
29881,
29918,
1853,
29922,
8977,
29898,
1853,
2433,
710,
742,
19995,
29922,
1839,
621,
824,
300,
742,
525,
13801,
2033,
511,
13,
4706,
6139,
29922,
8977,
29898,
1853,
2433,
710,
5477,
13,
4706,
9025,
29918,
4713,
293,
579,
29922,
8977,
29898,
1853,
2433,
11227,
5477,
13,
4706,
9025,
29918,
14608,
292,
29922,
8977,
29898,
1853,
2433,
11227,
5477,
13,
4706,
16248,
29918,
8551,
29922,
8977,
29898,
1853,
2433,
11227,
5477,
13,
4706,
16248,
29918,
11631,
29918,
4801,
522,
29922,
8977,
29898,
1853,
2433,
710,
742,
19995,
29922,
1839,
4381,
742,
525,
5397,
29886,
2033,
511,
13,
4706,
16248,
29918,
2267,
2509,
29918,
2467,
29922,
8977,
29898,
1853,
2433,
710,
742,
19995,
29922,
1839,
262,
27069,
742,
525,
17863,
2033,
511,
13,
4706,
16248,
29918,
2267,
2509,
29918,
22197,
29922,
8977,
29898,
1853,
2433,
710,
5477,
13,
4706,
8919,
1526,
29918,
29879,
1217,
459,
29918,
22197,
29922,
8977,
29898,
1853,
2433,
710,
5477,
13,
4706,
10377,
29918,
21891,
29922,
8977,
29898,
1853,
2433,
11227,
5477,
13,
4706,
10377,
29894,
29953,
29918,
299,
29918,
22197,
29922,
8977,
29898,
1853,
2433,
710,
5477,
13,
4706,
301,
29906,
29918,
26690,
29918,
2523,
579,
29922,
8977,
29898,
1853,
2433,
710,
742,
19995,
29922,
1839,
14701,
742,
525,
29888,
417,
397,
2033,
511,
13,
4706,
301,
29941,
29918,
26690,
29918,
4713,
293,
579,
29922,
8977,
29898,
1853,
2433,
710,
742,
19995,
29922,
1839,
29888,
417,
397,
742,
525,
3670,
29899,
29888,
417,
397,
2033,
511,
13,
4706,
4046,
29918,
666,
29918,
19668,
29922,
8977,
29898,
1853,
2433,
11227,
5477,
13,
4706,
5825,
29918,
7328,
29922,
8977,
29898,
1853,
2433,
710,
742,
14430,
2129,
29922,
1839,
8628,
2033,
511,
13,
4706,
2473,
29918,
7854,
29922,
8977,
29898,
1853,
2433,
710,
742,
19995,
29922,
1839,
6448,
29899,
29888,
417,
397,
742,
525,
8865,
742,
525,
3977,
481,
29899,
29888,
417,
397,
2033,
511,
13,
4706,
2106,
29922,
8977,
29898,
1853,
2433,
710,
742,
2322,
2433,
6338,
742,
19995,
29922,
1839,
6897,
296,
742,
525,
6338,
742,
525,
1972,
2033,
511,
13,
4706,
3006,
424,
29922,
8977,
29898,
1853,
2433,
710,
742,
14430,
2129,
29922,
1839,
841,
424,
29918,
978,
2033,
511,
29871,
396,
2216,
3734,
363,
2346,
292,
599,
3618,
13,
4706,
325,
9600,
29922,
8977,
29898,
1853,
2433,
710,
742,
14430,
2129,
29922,
1839,
29894,
9600,
29918,
978,
2033,
511,
13,
4706,
1024,
29918,
19973,
29922,
8977,
29898,
1853,
2433,
710,
5477,
13,
1678,
1723,
13,
13,
1678,
3883,
353,
530,
1687,
7355,
29898,
13,
4706,
2980,
29918,
6550,
29922,
23516,
29918,
6550,
29892,
13,
4706,
11286,
29918,
3198,
29918,
8513,
29922,
5574,
29892,
13,
4706,
3734,
29918,
361,
11759,
13,
9651,
6024,
3859,
742,
525,
6897,
296,
742,
6024,
6448,
742,
525,
841,
424,
2033,
1402,
13,
9651,
6024,
3859,
742,
525,
6338,
742,
6024,
6448,
742,
525,
841,
424,
2033,
1402,
13,
4706,
21251,
13,
1678,
1723,
13,
13,
1678,
263,
455,
353,
319,
8426,
7355,
29898,
5453,
29897,
13,
13,
1678,
564,
29886,
29918,
29888,
417,
3689,
353,
263,
455,
29889,
20054,
29898,
5453,
29889,
7529,
29889,
657,
877,
6834,
29918,
29888,
417,
3689,
8785,
13,
1678,
289,
29881,
353,
3883,
29889,
7529,
29889,
657,
877,
6448,
1495,
13,
1678,
289,
29881,
29918,
1853,
353,
3883,
29889,
7529,
29889,
657,
877,
6448,
29918,
1853,
1495,
13,
1678,
565,
289,
29881,
29918,
1853,
1275,
525,
621,
824,
300,
2396,
13,
4706,
396,
11314,
824,
300,
1134,
338,
9875,
408,
4943,
29892,
541,
393,
338,
451,
2821,
304,
278,
4160,
13,
4706,
289,
29881,
29918,
1853,
353,
525,
15227,
29915,
13,
1678,
6139,
353,
3883,
29889,
7529,
29889,
657,
877,
8216,
1495,
13,
1678,
9025,
29918,
4713,
293,
579,
353,
263,
455,
29889,
20054,
29898,
5453,
29889,
7529,
29889,
657,
877,
12007,
29918,
4713,
293,
579,
8785,
13,
1678,
9025,
29918,
14608,
292,
353,
263,
455,
29889,
20054,
29898,
5453,
29889,
7529,
29889,
657,
877,
12007,
29918,
14608,
292,
8785,
13,
1678,
16248,
29918,
8551,
353,
263,
455,
29889,
20054,
29898,
5453,
29889,
7529,
29889,
657,
877,
29734,
29918,
8551,
8785,
13,
1678,
16248,
29918,
11631,
29918,
4801,
522,
353,
3883,
29889,
7529,
29889,
657,
877,
29734,
29918,
11631,
29918,
4801,
522,
1495,
13,
1678,
565,
16248,
29918,
11631,
29918,
4801,
522,
1275,
525,
4381,
2396,
13,
4706,
396,
278,
319,
8426,
2322,
4444,
338,
385,
4069,
1347,
29892,
541,
393,
338,
451,
263,
1781,
1881,
995,
13,
4706,
16248,
29918,
11631,
29918,
4801,
522,
353,
6629,
13,
1678,
16248,
29918,
2267,
2509,
29918,
2467,
353,
3883,
29889,
7529,
29889,
657,
877,
29734,
29918,
2267,
2509,
29918,
2467,
1495,
13,
1678,
16248,
29918,
2267,
2509,
29918,
22197,
353,
3883,
29889,
7529,
29889,
657,
877,
29734,
29918,
2267,
2509,
29918,
22197,
1495,
13,
1678,
8919,
1526,
29918,
29879,
1217,
459,
29918,
22197,
353,
3883,
29889,
7529,
29889,
657,
877,
335,
1526,
29918,
29879,
1217,
459,
29918,
22197,
1495,
13,
1678,
10377,
29918,
21891,
353,
263,
455,
29889,
20054,
29898,
5453,
29889,
7529,
29889,
657,
877,
666,
29918,
21891,
8785,
13,
1678,
10377,
29894,
29953,
29918,
299,
29918,
22197,
353,
3883,
29889,
7529,
29889,
657,
877,
666,
29894,
29953,
29918,
299,
29918,
22197,
1495,
13,
1678,
301,
29906,
29918,
26690,
29918,
2523,
579,
353,
3883,
29889,
7529,
29889,
657,
877,
29880,
29906,
29918,
26690,
29918,
2523,
579,
1495,
13,
1678,
301,
29941,
29918,
26690,
29918,
4713,
293,
579,
353,
3883,
29889,
7529,
29889,
657,
877,
29880,
29941,
29918,
26690,
29918,
4713,
293,
579,
1495,
13,
1678,
4046,
29918,
666,
29918,
19668,
353,
263,
455,
29889,
20054,
29898,
5453,
29889,
7529,
29889,
657,
877,
13400,
29918,
666,
29918,
19668,
8785,
13,
1678,
5825,
29918,
7328,
353,
3883,
29889,
7529,
29889,
657,
877,
8628,
29918,
7328,
1495,
13,
1678,
2473,
29918,
7854,
353,
3883,
29889,
7529,
29889,
657,
877,
9910,
29918,
7854,
1495,
13,
1678,
2106,
353,
3883,
29889,
7529,
29889,
657,
877,
3859,
1495,
13,
1678,
3006,
424,
353,
3883,
29889,
7529,
29889,
657,
877,
841,
424,
1495,
13,
1678,
325,
9600,
353,
3883,
29889,
7529,
29889,
657,
877,
29894,
9600,
1495,
13,
1678,
1024,
29918,
19973,
353,
3883,
29889,
7529,
29889,
657,
877,
978,
29918,
19973,
1495,
13,
13,
1678,
263,
455,
29889,
11433,
29918,
2271,
29898,
13,
4706,
3876,
29918,
1990,
29922,
8977,
29898,
13,
9651,
263,
455,
29918,
1990,
2433,
29888,
29894,
29911,
27153,
742,
13,
9651,
263,
455,
29918,
27539,
2433,
6277,
29899,
29912,
29900,
29913,
4286,
4830,
29898,
841,
424,
511,
13,
9651,
3883,
29918,
3318,
29922,
841,
424,
29892,
13,
9651,
3646,
29918,
4572,
3790,
29915,
978,
2396,
3006,
424,
1118,
13,
4706,
10353,
13,
4706,
19481,
29918,
29896,
29922,
8977,
29898,
13,
9651,
263,
455,
29918,
1990,
2433,
29888,
29894,
29121,
742,
13,
9651,
263,
455,
29918,
27539,
2433,
29121,
29899,
29912,
29900,
29913,
4286,
4830,
29898,
6448,
511,
13,
9651,
3883,
29918,
3318,
29922,
6448,
29892,
13,
9651,
3646,
29918,
4572,
3790,
29915,
978,
2396,
289,
29881,
1118,
13,
4706,
10353,
13,
4706,
2278,
29918,
13203,
29922,
1839,
29888,
29894,
29934,
29879,
29907,
7508,
742,
525,
29888,
29894,
29934,
29879,
28600,
29885,
567,
29876,
742,
525,
29888,
29894,
29934,
29879,
29121,
1762,
29940,
29881,
29925,
742,
525,
29888,
29894,
29934,
29879,
29933,
29881,
1762,
29923,
29886,
8015,
7464,
13,
1678,
1723,
13,
13,
1678,
263,
455,
29889,
657,
29918,
735,
15423,
580,
13,
13,
1678,
565,
2106,
1275,
525,
6338,
2396,
13,
4706,
263,
455,
29889,
23813,
29898,
13,
9651,
263,
455,
29918,
1990,
2433,
29888,
29894,
29121,
742,
13,
9651,
770,
29918,
2917,
29922,
8977,
29898,
13,
18884,
564,
29886,
29943,
417,
397,
29922,
6834,
29918,
29888,
417,
3689,
29892,
13,
18884,
5153,
29878,
29922,
8216,
29892,
13,
18884,
9358,
18759,
29922,
29734,
29918,
8551,
29892,
13,
18884,
9358,
16619,
6362,
522,
6818,
29922,
29734,
29918,
11631,
29918,
4801,
522,
29892,
13,
18884,
10377,
29931,
799,
1076,
29922,
666,
29918,
21891,
29892,
13,
18884,
4046,
29902,
29886,
29931,
799,
29876,
1762,
4035,
1212,
29879,
29922,
13400,
29918,
666,
29918,
19668,
29892,
13,
18884,
5825,
29922,
8628,
29918,
7328,
29892,
13,
18884,
286,
4384,
15930,
29922,
12007,
29918,
4713,
293,
579,
29892,
13,
18884,
2473,
29928,
303,
29925,
1193,
2865,
29922,
9910,
29918,
7854,
29892,
13,
18884,
1024,
29922,
6448,
29892,
13,
18884,
1134,
29922,
6448,
29918,
1853,
29892,
13,
18884,
443,
293,
579,
12085,
29922,
12007,
29918,
14608,
292,
29892,
13,
18884,
443,
29895,
15735,
29965,
4384,
2865,
29922,
29880,
29906,
29918,
26690,
29918,
2523,
579,
29892,
13,
18884,
443,
29895,
29924,
4384,
2865,
29922,
29880,
29941,
29918,
26690,
29918,
4713,
293,
579,
29892,
13,
18884,
1024,
29909,
18849,
29922,
978,
29918,
19973,
29892,
13,
9651,
10353,
13,
9651,
2278,
29918,
2917,
29879,
11759,
13,
18884,
11117,
29888,
29894,
29934,
29879,
29907,
7508,
2396,
11117,
15697,
2396,
11117,
6277,
29943,
29894,
29907,
7508,
1170,
2396,
325,
9600,
930,
1118,
13,
18884,
11117,
29888,
29894,
29934,
29879,
28600,
29885,
567,
29876,
2396,
11117,
15697,
2396,
11117,
6277,
28600,
1526,
29903,
1217,
459,
7713,
1170,
2396,
8919,
1526,
29918,
29879,
1217,
459,
29918,
22197,
930,
1118,
13,
18884,
11117,
29888,
29894,
29934,
29879,
29121,
1762,
29940,
29881,
29925,
2396,
11117,
15697,
2396,
11117,
6277,
29940,
29881,
3644,
7713,
1170,
2396,
10377,
29894,
29953,
29918,
299,
29918,
22197,
930,
1118,
13,
18884,
11117,
29888,
29894,
29934,
29879,
29933,
29881,
1762,
29923,
29886,
8015,
2396,
11117,
15697,
2396,
11117,
17863,
2865,
2396,
16248,
29918,
2267,
2509,
29918,
2467,
29892,
525,
6277,
29943,
29894,
29923,
29886,
8015,
7713,
1170,
2396,
16248,
29918,
2267,
2509,
29918,
22197,
930,
1118,
13,
9651,
21251,
13,
4706,
1723,
13,
13,
4706,
263,
455,
29889,
657,
29918,
12765,
29898,
18703,
29918,
1990,
2433,
29888,
29894,
29121,
1495,
13,
13,
4706,
263,
455,
29889,
2490,
29918,
2917,
580,
13,
13,
1678,
25342,
2106,
1275,
525,
6897,
296,
2396,
13,
4706,
263,
455,
29889,
8143,
29918,
2917,
580,
13,
13,
1678,
263,
455,
29889,
13322,
29918,
3126,
580,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1667,
580,
13,
2
] |
code/data-cleaning/generate_overlapping_features.py | tejasph/qlesq_prediction | 0 | 179132 | <reponame>tejasph/qlesq_prediction<filename>code/data-cleaning/generate_overlapping_features.py
import os
import sys
import pandas as pd
import numpy as np
from overlapping_globals import HEADER_CONVERSION_DICT, CANBIND_OVERLAPPING_VALUE_CONVERSION_MAP,NEW_FEATURES_CANBIND,QIDS_STARD_TO_CANBIND_DICT as Q_DICT_C
from overlapping_globals import STARD_OVERLAPPING_VALUE_CONVERSION_MAP, STARD_TO_DROP
"""
Generates the overlapping datasets from the processed datasets, for canbind data, thats the product of canbind_imputer
Takes in the processed dataset, and generates the overlapping datasets
Can generate an overlapping dataset one at a time if needed, or
by default will do both
See main() for description of arguments
"""
Q_DICT_S = dict(map(reversed, Q_DICT_C.items()))
def convert_stard_to_overlapping(output_dir , path_name):
if output_dir == "":
output_dir = r"C:\Users\jjnun\Documents\Sync\Research\1_CANBIND Replication\teyden-git\data\final_datasets" # TODO temporarily hardcode
if not os.path.exists(output_dir):
os.mkdir(output_dir)
# df = pd.read_csv(file_path)
df = pd.read_csv(output_dir + "/" + path_name + ".csv") # changed to fit Tejas file name
# Take whitelist columns first
df = df[STARD_OVERLAPPING_VALUE_CONVERSION_MAP["whitelist"]]## + ["days_baseline"]]
# Warn if any null found, as they should not be!
check_missing_values(df)
# Then process them
for case, config in STARD_OVERLAPPING_VALUE_CONVERSION_MAP.items():
if case == "keep":
# Nothing to do, already grabbed from whitelist
continue
elif case == "multiply":
for col_name, multiple in config["col_names"].items():
df[col_name] = df[col_name].apply(lambda x: x * multiple)
elif case == "other":
for i, row in df.iterrows():
# phx01__alcoh set 1 if either 1
if row["phx01__alcoh||2.0"] == 1:
df.at[i, "phx01__alcoh||1.0"] = 1
# phx01__bulimia||2/5: set 1 if any of bulimia one-hots
bullemias = ['phx01__bulimia||3','phx01__bulimia||4']
set_if_found_in_others(i,row,'phx01__bulimia||2/5',bullemias,1, df)
# phx01__amphet||1.0: set 1 if any of the non alchol substance uses
non_alch_sub = ['phx01__amphet||2.0','phx01__cannibis||1.0','phx01__cannibis||2.0','phx01__opioid||1.0','phx01__opioid||2.0','phx01__ax_cocaine||1.0','phx01__ax_cocaine||2.0']
set_if_found_in_others(i,row,'phx01__amphet||1.0',non_alch_sub,1, df)
# phx01__dep: 1 if any family history conditions are 1
family_hxs = ['phx01__deppar','phx01__depsib','phx01__depchld','phx01__bip','phx01__bippar','phx01__bipsib','phx01__bipchld','phx01__alcohol','phx01__alcpar','phx01__alcsib',
'phx01__alcchld','phx01__drug_phx','phx01__drgpar','phx01__drgsib','phx01__drgchld','phx01__suic_phx','phx01__suicpar','phx01__suicsib','phx01__suicchld']
set_if_found_in_others(i,row,'phx01__dep',family_hxs,1, df)
# dm01_enroll__empl||3.0 to 1 if any full time employment options
full_time_statuses = ["dm01_enroll__empl||4.0","dm01_enroll__empl||5.0"]
set_if_found_in_others(i,row,'dm01_enroll__empl||3.0',full_time_statuses,1,df)
#dm01_w0__totincom: Converts monthly usd old income to current CAD, and then categorizes per canbind
totincom_convert = row["dm01_w0__totincom"]*12*1.25*1.19 #Converts to annual, then inflation, then USDtoCAD
if totincom_convert <10000:
df.at[i, "dm01_w0__totincom"] = 1
elif totincom_convert <25000:
df.at[i, "dm01_w0__totincom"] = 2
elif totincom_convert <50000:
df.at[i, "dm01_w0__totincom"] = 3
elif totincom_convert <75000:
df.at[i, "dm01_w0__totincom"] = 4
elif totincom_convert <100000:
df.at[i, "dm01_w0__totincom"] = 5
elif totincom_convert <150000:
df.at[i, "dm01_w0__totincom"] = 6
elif totincom_convert <200000:
df.at[i, "dm01_w0__totincom"] = 7
elif totincom_convert >=200000:
df.at[i, "dm01_w0__totincom"] = 8
# Add in new features
add_new_imputed_features_stard(df, row, i) # fill in new features
# Eliminate subjects that don't have any records > 21 This section removed, should be done already beforehand in generation of X_stard
##df = eliminate_early_leavers(df)
##df = df.drop(["days_baseline"], axis=1)
# Drop columns that were used for calcs above
for to_drop in STARD_TO_DROP:
df = df.drop([to_drop], axis=1)
# Rename Column Headers according to dict
df = df.rename(HEADER_CONVERSION_DICT, axis=1)
# Check that all column headers have ::: to ensure they have correspondance in CAN-BIND
for header in list(df.columns.values):
if not (':::' in header):
print('Warning! Likely unwanted column in output: ' + header)
# Sort and output
df = df.reset_index(drop=True)
df = df.sort_index(axis=1) # Newly added, sorts columns alphabetically so same for both matrices
#df = df.sort_values(by=['SUBJLABEL:::subjectkey'])
df = df.rename(columns = {'SUBJLABEL:::subjectkey':'subjectkey'})
df = df.set_index(['subjectkey'])
df.to_csv(output_dir + "/" + path_name + "_extval.csv",index=True)
def convert_canbind_to_overlapping(output_dir=""):
if output_dir == "":
output_dir = r"C:\Users\jjnun\Documents\Sync\Research\1_CANBIND Replication\teyden-git\data\canbind_data_full_auto" # TODO temporarily hardcode
if not os.path.exists(output_dir):
os.mkdir(output_dir)
orig_df = pd.read_csv(output_dir + "/canbind_imputed.csv")
# Drop index column in present
if "Unnamed: 0"in orig_df:
df = orig_df.drop(["Unnamed: 0"], axis=1)
else:
df = orig_df
# Take whitelist columns first
df = df[CANBIND_OVERLAPPING_VALUE_CONVERSION_MAP["whitelist"]]
# Warn if any NaN found, as they should not be!
check_missing_values(df)
# Add new features as blank
for new_feature in NEW_FEATURES_CANBIND:
df[new_feature] = np.nan
# Then process them
for case, config in CANBIND_OVERLAPPING_VALUE_CONVERSION_MAP.items():
if case == "keep":
# Nothing to do, already grabbed from whitelist
continue
elif case == "multiply":
for col_name, multiple in config["col_names"].items():
df[col_name] = df[col_name].apply(lambda x: x * multiple)
elif case == "other":
for i, row in df.iterrows():
if row["MINI_SBSTNC_DPNDC_NONALCHL_TIME"] == 1:
df.at[i, "MINI_SBSTNC_ABUSE_NONALCHL_TIME"] = 1
if row["MINI_ALCHL_DPNDC_TIME"] == 1:
df.at[i, "MINI_ALCHL_ABUSE_TIME"] = 1
if row["MINI_AN_TIME"] == 1:
df.at[i, "MINI_AN_BINGE_TIME"] = 1
if (row['EMPLOY_STATUS_6.0'] == 1) or (row['EMPLOY_STATUS_3.0'] == 1):
df.at[i, "EMPLOY_STATUS_1.0"] = 1
if row['EMPLOY_STATUS_4.0'] == 1:
df.at[i, "EMPLOY_STATUS_2.0"] = 1
add_new_imputed_features_canbind(df, row, i) # fill in new features
# Drop columns that were used for calcs above
for todrop in ["MINI_SBSTNC_DPNDC_NONALCHL_TIME","MINI_ALCHL_DPNDC_TIME","MINI_AN_TIME","EMPLOY_STATUS_6.0","EMPLOY_STATUS_3.0","EMPLOY_STATUS_4.0"]:
df = df.drop([todrop], axis=1)
# Filter out those without valid response/nonresponse values
## Already filtered so ignore
##df = get_valid_subjects(df)
##df = df.drop(["RESPOND_WK8"], axis=1)
# Rename Column Headers according to dict
df = df.rename(HEADER_CONVERSION_DICT, axis=1)
# Check that all column headers have ::: to ensure they have correspondance in STAR*D
for header in list(df.columns.values):
if not (':::' in header):
print('Warning! Likely unwanted column in output: ' + header)
# Sort and output
df = df.reset_index(drop=True)
df = df.sort_index(axis=1) # Newly added, sorts columns alphabetically so same for both matrices
df = df.rename(columns = {'SUBJLABEL:::subjectkey':'subjectkey'})
df = df.set_index(['subjectkey'])
df.to_csv(output_dir + "/X_test_cb_extval.csv",index=True)
def add_new_imputed_features_canbind(df, row, i):
# imput_anyanxiety
imput_anyanxiety = ['MINI_PTSD_TIME', 'MINI_PD_DX', 'MINI_AGRPHOBIA_TIME', 'MINI_SOCL_PHOBIA_DX', 'MINI_GAD_TIME']
val = 1 if sum(row[imput_anyanxiety] == 1) > 0 else 0
df.at[i, ':::imput_anyanxiety'] = val
# imput_QIDS_SR_perc_change
val = round((row[Q_DICT_C['qids01_w2sr__qstot']] - row[Q_DICT_C['qids01_w0sr__qstot']]) / row[Q_DICT_C['qids01_w0sr__qstot']] if row[Q_DICT_C['qids01_w0sr__qstot']] else 0, 3)
df.at[i, 'imput_QIDS_SR_perc_change:::'] = val
# Imputed new QIDS features
for time in ['week0','week2']:
time2 = 'baseline' if time =='week0' else 'week2' #week0 is sometimes called _baseline
# imput_QIDS_SR_sleep_domain
val = round(np.nanmax(list(row[['QIDS_SR_1_' + time2,'QIDS_SR_2_' + time2,'QIDS_SR_3_' + time2,'QIDS_SR_4_' + time2]])))
df.at[i, 'imput_QIDS_SR_sleep_domain_' + time + ':::'] = val
# imput_QIDS_SR_appetite_domain
val = round(np.nanmax(list(row[['QIDS_SR_6_' + time2,'QIDS_SR_7_' + time2,'QIDS_SR_8_' + time2,'QIDS_SR_9_' + time2]])))
df.at[i, 'imput_QIDS_SR_appetite_domain_' + time + ':::'] = val
# imput_QIDS_SR_psychomot_domain
val = round(np.nanmax(list(row[['QIDS_SR_15_' + time2,'QIDS_SR_16_' + time2]])))
df.at[i, 'imput_QIDS_SR_psychomot_domain_' + time + ':::'] = val
# imput_QIDS_SR_overeating
val = round(np.nanmax(list(row[['QIDS_SR_7_' + time2,'QIDS_SR_9_' + time2]])))
df.at[i, 'imput_QIDS_SR_overeating_' + time + ':::'] = val
# imput_QIDS_SR_insomnia
val = round(np.nanmax(list(row[['QIDS_SR_1_' + time2,'QIDS_SR_2_' + time2,'QIDS_SR_3_' + time2]])))
df.at[i, 'imput_QIDS_SR_insomnia_' + time + ':::'] = val
def add_new_imputed_features_stard(df, row, i):
# imput_anyanxiety
imput_anyanxiety = ['phx01__psd', 'phx01__pd_noag', 'phx01__pd_ag', 'phx01__soc_phob', 'phx01__gad_phx','phx01__specphob']
val = 1 if sum(row[imput_anyanxiety] == 1) > 0 else 0
df.at[i, ':::imput_anyanxiety'] = val
# imput_QIDS_SR_perc_change
val = round((row['qids01_w2sr__qstot'] - row['qids01_w0sr__qstot']) / row['qids01_w0sr__qstot'] if row['qids01_w0sr__qstot'] else 0, 3)
df.at[i, 'imput_QIDS_SR_perc_change:::'] = val
# PSYHIS_MDD_PREV:::
val = 1 if row['phx01__epino'] >= 2 else 0
df.at[i, 'PSYHIS_MDD_PREV:::'] = val
# 'QLESQA_TOT_QLESQB_TOT_merged:::'
val = 0
for j in range(1,15): # Sum items 1-14
str_j = str(j)
str_j = "0" + str_j if j < 10 else str_j
val = val + row['qlesq01__qlesq' + str_j]
df.at[i, 'QLESQA_TOT_QLESQB_TOT_merged:::'] = val
# Imputed new QIDS features
for time in ['week0','week2']:
time2 = 'baseline' if time =='week0' else 'week2' #week0 is sometimes called _baseline
time3 = 'w0' if time =='week0' else 'w2' #week0 is sometimes called w0, and week2 w2
# imput_QIDS_SR_sleep_domain
val = round(np.nanmax(list(row[[Q_DICT_S['QIDS_SR_1_' + time2],Q_DICT_S['QIDS_SR_2_' + time2],Q_DICT_S['QIDS_SR_3_' + time2],Q_DICT_S['QIDS_SR_4_' + time2]]])))
df.at[i, 'imput_QIDS_SR_sleep_domain_' + time + ':::'] = val
# imput_QIDS_SR_appetite_domain
val = round(np.nanmax(list(row[[Q_DICT_S['QIDS_SR_6_' + time2],Q_DICT_S['QIDS_SR_7_' + time2],Q_DICT_S['QIDS_SR_8_' + time2],Q_DICT_S['QIDS_SR_9_' + time2]]])))
df.at[i, 'imput_QIDS_SR_appetite_domain_' + time + ':::'] = val
# imput_QIDS_SR_psychomot_domain
val = round(np.nanmax(list(row[[Q_DICT_S['QIDS_SR_15_' + time2],Q_DICT_S['QIDS_SR_16_' + time2]]])))
df.at[i, 'imput_QIDS_SR_psychomot_domain_' + time + ':::'] = val
# imput_QIDS_SR_overeating
val = round(np.nanmax(list(row[[Q_DICT_S['QIDS_SR_7_' + time2],Q_DICT_S['QIDS_SR_9_' + time2]]])))
df.at[i, 'imput_QIDS_SR_overeating_' + time + ':::'] = val
# imput_QIDS_SR_insomnia
val = round(np.nanmax(list(row[[Q_DICT_S['QIDS_SR_1_' + time2],Q_DICT_S['QIDS_SR_2_' + time2],Q_DICT_S['QIDS_SR_3_' + time2]]])))
df.at[i, 'imput_QIDS_SR_insomnia_' + time + ':::'] = val
# imput_QIDS_SR_ATYPICAL
val = round(np.sum(list(row[['qids01_' + time3 + 'sr__vhysm','qids01_' + time3 + 'sr__vapin', 'qids01_' + time3 + 'sr__vwtin', 'qids01_' + time3 + 'sr__vengy']])))
df.at[i, 'QIDS_ATYPICAL_' + time2 + ':::'] = val
def set_if_found_in_others(i,row,to_set, others, val, df):
"""
Quick helper function. Sets row[to_set][i] to value if
any of the values in others ==1.
Useful whem collapsing a one-hot set of columns to 1 if
any of the columns are 1.
"""
for c in others:
other_val = int(row[c])
if other_val ==1:
df.at[i, to_set] = val
elif other_val ==0:
continue
else:
raise Exception('set_if_found should only be used for columns that are 1 or 0, given: ' + str(other_val))
def check_missing_values(df):
nulls = df.isnull().sum().sum()
if nulls != 0:
print("WARNING! A total of: " + str(nulls) + " missing values found, this should likely be 0!")
if __name__ == "__main__":
if len(sys.argv) == 2 and sys.argv[1] == "-bothdefault":
convert_stard_to_overlapping()
convert_canbind_to_overlapping()
elif len(sys.argv) == 4 and sys.argv[1] == "-both" and os.path.isdir(sys.argv[2]):
convert_stard_to_overlapping(sys.argv[2], "X_77_qlesq_sr__final")
convert_stard_to_overlapping(sys.argv[2], "X_91_qlesq_sr__final")
convert_canbind_to_overlapping(sys.argv[3])
elif len(sys.argv) == 3 and sys.argv[1] == "-sd" and os.path.isdir(sys.argv[2]):
convert_stard_to_overlapping(sys.argv[2])
elif len(sys.argv) == 3 and sys.argv[1] == "-cb" and os.path.isdir(sys.argv[2]):
convert_canbind_to_overlapping(sys.argv[2])
else:
print("Enter valid arguments\n"
"\t options: -both to generate overlapping for both, -sd for STAR*D, -cb for CAN-BIND\n"
"\t path: the path to a real directory with the preprocessed data\n"
"\t path: if generating the overlapping for both, this will be the CAN-BIND data, and the 2nd argument STAR*D") | [
1,
529,
276,
1112,
420,
29958,
371,
14196,
561,
29914,
29939,
793,
29939,
29918,
11965,
2463,
29966,
9507,
29958,
401,
29914,
1272,
29899,
14941,
292,
29914,
17158,
29918,
957,
433,
3262,
29918,
22100,
29889,
2272,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
975,
433,
3262,
29918,
23705,
1338,
1053,
17714,
3035,
1001,
29918,
6007,
16358,
29918,
4571,
1783,
29892,
315,
2190,
29933,
22255,
29918,
29949,
5348,
29931,
20576,
4214,
29918,
19143,
29918,
6007,
16358,
29918,
23827,
29892,
28577,
29918,
16359,
1299,
11499,
29903,
29918,
29907,
2190,
29933,
22255,
29892,
29984,
1367,
29903,
29918,
1254,
17011,
29918,
4986,
29918,
29907,
2190,
29933,
22255,
29918,
4571,
1783,
408,
660,
29918,
4571,
1783,
29918,
29907,
13,
3166,
975,
433,
3262,
29918,
23705,
1338,
1053,
6850,
17011,
29918,
29949,
5348,
29931,
20576,
4214,
29918,
19143,
29918,
6007,
16358,
29918,
23827,
29892,
6850,
17011,
29918,
4986,
29918,
29928,
29366,
13,
13,
15945,
29908,
13,
5631,
1078,
278,
975,
433,
3262,
20035,
515,
278,
19356,
20035,
29892,
363,
508,
5355,
848,
29892,
20952,
278,
3234,
310,
508,
5355,
29918,
326,
649,
261,
13,
13,
29911,
6926,
297,
278,
19356,
8783,
29892,
322,
16785,
278,
975,
433,
3262,
20035,
13,
6028,
5706,
385,
975,
433,
3262,
8783,
697,
472,
263,
931,
565,
4312,
29892,
470,
29871,
13,
1609,
2322,
674,
437,
1716,
13,
13,
13393,
1667,
580,
363,
6139,
310,
6273,
13,
13,
15945,
29908,
13,
13,
13,
29984,
29918,
4571,
1783,
29918,
29903,
353,
9657,
29898,
1958,
29898,
276,
874,
287,
29892,
660,
29918,
4571,
1783,
29918,
29907,
29889,
7076,
22130,
13,
13,
13,
1753,
3588,
29918,
303,
538,
29918,
517,
29918,
957,
433,
3262,
29898,
4905,
29918,
3972,
1919,
2224,
29918,
978,
1125,
13,
1678,
565,
1962,
29918,
3972,
1275,
376,
1115,
13,
4706,
1962,
29918,
3972,
353,
364,
29908,
29907,
3583,
5959,
29905,
29926,
29926,
29876,
348,
29905,
20128,
29905,
21077,
29905,
1666,
2842,
29905,
29896,
29918,
29907,
2190,
29933,
22255,
10088,
1414,
29905,
371,
29891,
1145,
29899,
5559,
29905,
1272,
29905,
8394,
29918,
14538,
1691,
29908,
396,
14402,
5382,
6275,
2898,
401,
13,
1678,
565,
451,
2897,
29889,
2084,
29889,
9933,
29898,
4905,
29918,
3972,
1125,
13,
4706,
2897,
29889,
11256,
3972,
29898,
4905,
29918,
3972,
29897,
13,
13,
1678,
396,
4489,
353,
10518,
29889,
949,
29918,
7638,
29898,
1445,
29918,
2084,
29897,
13,
1678,
4489,
353,
10518,
29889,
949,
29918,
7638,
29898,
4905,
29918,
3972,
718,
5591,
29908,
718,
2224,
29918,
978,
718,
11393,
7638,
1159,
29871,
396,
3939,
304,
6216,
1920,
14196,
934,
1024,
13,
13,
1678,
396,
11190,
377,
7454,
391,
4341,
937,
13,
1678,
4489,
353,
4489,
29961,
1254,
17011,
29918,
29949,
5348,
29931,
20576,
4214,
29918,
19143,
29918,
6007,
16358,
29918,
23827,
3366,
1332,
7454,
391,
3108,
29962,
2277,
718,
6796,
16700,
29918,
6500,
5570,
3108,
29962,
13,
268,
13,
1678,
396,
399,
2753,
565,
738,
1870,
1476,
29892,
408,
896,
881,
451,
367,
29991,
13,
1678,
1423,
29918,
27259,
29918,
5975,
29898,
2176,
29897,
13,
308,
13,
1678,
396,
1987,
1889,
963,
13,
1678,
363,
1206,
29892,
2295,
297,
6850,
17011,
29918,
29949,
5348,
29931,
20576,
4214,
29918,
19143,
29918,
6007,
16358,
29918,
23827,
29889,
7076,
7295,
13,
4706,
565,
1206,
1275,
376,
17462,
1115,
13,
9651,
396,
9531,
304,
437,
29892,
2307,
2646,
1327,
287,
515,
377,
7454,
391,
13,
9651,
6773,
13,
4706,
25342,
1206,
1275,
376,
18056,
368,
1115,
13,
9651,
363,
784,
29918,
978,
29892,
2999,
297,
2295,
3366,
1054,
29918,
7039,
16862,
7076,
7295,
13,
18884,
4489,
29961,
1054,
29918,
978,
29962,
353,
4489,
29961,
1054,
29918,
978,
1822,
7302,
29898,
2892,
921,
29901,
921,
334,
2999,
29897,
13,
4706,
25342,
1206,
1275,
376,
1228,
1115,
13,
9651,
363,
474,
29892,
1948,
297,
4489,
29889,
1524,
5727,
7295,
13,
18884,
396,
1374,
29916,
29900,
29896,
1649,
284,
1111,
29882,
731,
29871,
29896,
565,
2845,
29871,
29896,
13,
18884,
565,
1948,
3366,
561,
29916,
29900,
29896,
1649,
284,
1111,
29882,
8876,
29906,
29889,
29900,
3108,
1275,
29871,
29896,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
561,
29916,
29900,
29896,
1649,
284,
1111,
29882,
8876,
29896,
29889,
29900,
3108,
353,
29871,
29896,
13,
18884,
396,
1374,
29916,
29900,
29896,
1649,
8645,
326,
423,
8876,
29906,
29914,
29945,
29901,
731,
29871,
29896,
565,
738,
310,
8227,
326,
423,
697,
29899,
29882,
1862,
13,
18884,
8227,
2409,
3173,
353,
6024,
561,
29916,
29900,
29896,
1649,
8645,
326,
423,
8876,
29941,
3788,
561,
29916,
29900,
29896,
1649,
8645,
326,
423,
8876,
29946,
2033,
13,
18884,
731,
29918,
361,
29918,
11940,
29918,
262,
29918,
720,
414,
29898,
29875,
29892,
798,
5501,
561,
29916,
29900,
29896,
1649,
8645,
326,
423,
8876,
29906,
29914,
29945,
742,
8645,
2409,
3173,
29892,
29896,
29892,
4489,
29897,
13,
18884,
396,
1374,
29916,
29900,
29896,
1649,
314,
561,
300,
8876,
29896,
29889,
29900,
29901,
731,
29871,
29896,
565,
738,
310,
278,
1661,
394,
305,
324,
5960,
749,
3913,
13,
18884,
1661,
29918,
284,
305,
29918,
1491,
353,
6024,
561,
29916,
29900,
29896,
1649,
314,
561,
300,
8876,
29906,
29889,
29900,
3788,
561,
29916,
29900,
29896,
1649,
29883,
812,
747,
275,
8876,
29896,
29889,
29900,
3788,
561,
29916,
29900,
29896,
1649,
29883,
812,
747,
275,
8876,
29906,
29889,
29900,
3788,
561,
29916,
29900,
29896,
1649,
459,
601,
333,
8876,
29896,
29889,
29900,
3788,
561,
29916,
29900,
29896,
1649,
459,
601,
333,
8876,
29906,
29889,
29900,
3788,
561,
29916,
29900,
29896,
1649,
1165,
29918,
29883,
6400,
457,
8876,
29896,
29889,
29900,
3788,
561,
29916,
29900,
29896,
1649,
1165,
29918,
29883,
6400,
457,
8876,
29906,
29889,
29900,
2033,
13,
18884,
731,
29918,
361,
29918,
11940,
29918,
262,
29918,
720,
414,
29898,
29875,
29892,
798,
5501,
561,
29916,
29900,
29896,
1649,
314,
561,
300,
8876,
29896,
29889,
29900,
742,
5464,
29918,
284,
305,
29918,
1491,
29892,
29896,
29892,
4489,
29897,
13,
18884,
396,
1374,
29916,
29900,
29896,
1649,
2716,
29901,
29871,
29896,
565,
738,
3942,
4955,
5855,
526,
29871,
29896,
29871,
13,
18884,
3942,
29918,
29882,
10351,
353,
6024,
561,
29916,
29900,
29896,
1649,
311,
407,
279,
3788,
561,
29916,
29900,
29896,
1649,
311,
567,
747,
3788,
561,
29916,
29900,
29896,
1649,
2716,
305,
430,
3788,
561,
29916,
29900,
29896,
1649,
29890,
666,
3788,
561,
29916,
29900,
29896,
1649,
5365,
407,
279,
3788,
561,
29916,
29900,
29896,
1649,
29890,
4512,
747,
3788,
561,
29916,
29900,
29896,
1649,
29890,
666,
305,
430,
3788,
561,
29916,
29900,
29896,
1649,
284,
1111,
5391,
3788,
561,
29916,
29900,
29896,
1649,
284,
29883,
862,
3788,
561,
29916,
29900,
29896,
1649,
284,
2395,
747,
742,
13,
462,
795,
525,
561,
29916,
29900,
29896,
1649,
284,
29883,
305,
430,
3788,
561,
29916,
29900,
29896,
1649,
29881,
11124,
29918,
561,
29916,
3788,
561,
29916,
29900,
29896,
1649,
7707,
29887,
862,
3788,
561,
29916,
29900,
29896,
1649,
7707,
3174,
747,
3788,
561,
29916,
29900,
29896,
1649,
7707,
29887,
305,
430,
3788,
561,
29916,
29900,
29896,
1649,
2146,
293,
29918,
561,
29916,
3788,
561,
29916,
29900,
29896,
1649,
2146,
293,
862,
3788,
561,
29916,
29900,
29896,
1649,
2146,
1199,
747,
3788,
561,
29916,
29900,
29896,
1649,
2146,
293,
305,
430,
2033,
13,
18884,
731,
29918,
361,
29918,
11940,
29918,
262,
29918,
720,
414,
29898,
29875,
29892,
798,
5501,
561,
29916,
29900,
29896,
1649,
2716,
742,
11922,
29918,
29882,
10351,
29892,
29896,
29892,
4489,
29897,
13,
18884,
396,
270,
29885,
29900,
29896,
29918,
264,
1245,
1649,
16305,
8876,
29941,
29889,
29900,
304,
29871,
29896,
565,
738,
2989,
931,
5703,
358,
3987,
13,
18884,
2989,
29918,
2230,
29918,
4882,
267,
353,
6796,
18933,
29900,
29896,
29918,
264,
1245,
1649,
16305,
8876,
29946,
29889,
29900,
3284,
18933,
29900,
29896,
29918,
264,
1245,
1649,
16305,
8876,
29945,
29889,
29900,
3108,
13,
18884,
731,
29918,
361,
29918,
11940,
29918,
262,
29918,
720,
414,
29898,
29875,
29892,
798,
5501,
18933,
29900,
29896,
29918,
264,
1245,
1649,
16305,
8876,
29941,
29889,
29900,
742,
8159,
29918,
2230,
29918,
4882,
267,
29892,
29896,
29892,
2176,
29897,
13,
462,
462,
13,
18884,
396,
18933,
29900,
29896,
29918,
29893,
29900,
1649,
4260,
262,
510,
29901,
1281,
369,
1372,
4098,
368,
502,
29881,
2030,
17869,
304,
1857,
315,
3035,
29892,
322,
769,
11608,
7093,
639,
508,
5355,
418,
13,
18884,
2025,
262,
510,
29918,
13441,
353,
1948,
3366,
18933,
29900,
29896,
29918,
29893,
29900,
1649,
4260,
262,
510,
3108,
29930,
29896,
29906,
29930,
29896,
29889,
29906,
29945,
29930,
29896,
29889,
29896,
29929,
396,
1168,
369,
1372,
304,
17568,
29892,
769,
4414,
362,
29892,
769,
3148,
29928,
517,
29907,
3035,
13,
18884,
565,
2025,
262,
510,
29918,
13441,
529,
29896,
29900,
29900,
29900,
29900,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
18933,
29900,
29896,
29918,
29893,
29900,
1649,
4260,
262,
510,
3108,
353,
29871,
29896,
13,
18884,
25342,
2025,
262,
510,
29918,
13441,
529,
29906,
29945,
29900,
29900,
29900,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
18933,
29900,
29896,
29918,
29893,
29900,
1649,
4260,
262,
510,
3108,
353,
29871,
29906,
13,
18884,
25342,
2025,
262,
510,
29918,
13441,
529,
29945,
29900,
29900,
29900,
29900,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
18933,
29900,
29896,
29918,
29893,
29900,
1649,
4260,
262,
510,
3108,
353,
29871,
29941,
13,
18884,
25342,
2025,
262,
510,
29918,
13441,
529,
29955,
29945,
29900,
29900,
29900,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
18933,
29900,
29896,
29918,
29893,
29900,
1649,
4260,
262,
510,
3108,
353,
29871,
29946,
13,
18884,
25342,
2025,
262,
510,
29918,
13441,
529,
29896,
29900,
29900,
29900,
29900,
29900,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
18933,
29900,
29896,
29918,
29893,
29900,
1649,
4260,
262,
510,
3108,
353,
29871,
29945,
13,
18884,
25342,
2025,
262,
510,
29918,
13441,
529,
29896,
29945,
29900,
29900,
29900,
29900,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
18933,
29900,
29896,
29918,
29893,
29900,
1649,
4260,
262,
510,
3108,
353,
29871,
29953,
13,
18884,
25342,
2025,
262,
510,
29918,
13441,
529,
29906,
29900,
29900,
29900,
29900,
29900,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
18933,
29900,
29896,
29918,
29893,
29900,
1649,
4260,
262,
510,
3108,
353,
29871,
29955,
13,
18884,
25342,
2025,
262,
510,
29918,
13441,
6736,
29906,
29900,
29900,
29900,
29900,
29900,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
18933,
29900,
29896,
29918,
29893,
29900,
1649,
4260,
262,
510,
3108,
353,
29871,
29947,
13,
462,
13,
18884,
396,
3462,
297,
716,
5680,
13,
18884,
788,
29918,
1482,
29918,
326,
649,
287,
29918,
22100,
29918,
303,
538,
29898,
2176,
29892,
1948,
29892,
474,
29897,
396,
5445,
297,
716,
5680,
13,
13,
1678,
396,
1260,
8332,
403,
17800,
393,
1016,
29915,
29873,
505,
738,
6475,
1405,
29871,
29906,
29896,
910,
4004,
6206,
29892,
881,
367,
2309,
2307,
1434,
3179,
297,
12623,
310,
1060,
29918,
303,
538,
13,
1678,
444,
2176,
353,
27399,
29918,
799,
368,
29918,
20774,
874,
29898,
2176,
29897,
13,
1678,
444,
2176,
353,
4489,
29889,
8865,
29898,
3366,
16700,
29918,
6500,
5570,
12436,
9685,
29922,
29896,
29897,
13,
13,
1678,
396,
20724,
4341,
393,
892,
1304,
363,
1208,
2395,
2038,
13,
1678,
363,
304,
29918,
8865,
297,
6850,
17011,
29918,
4986,
29918,
29928,
29366,
29901,
13,
4706,
4489,
353,
4489,
29889,
8865,
4197,
517,
29918,
8865,
1402,
9685,
29922,
29896,
29897,
13,
268,
13,
1678,
396,
390,
3871,
12481,
12252,
414,
5034,
304,
9657,
13,
1678,
4489,
353,
4489,
29889,
1267,
420,
29898,
23252,
1001,
29918,
6007,
16358,
29918,
4571,
1783,
29892,
9685,
29922,
29896,
29897,
13,
268,
13,
1678,
396,
5399,
393,
599,
1897,
9066,
505,
584,
1057,
304,
9801,
896,
505,
3928,
749,
297,
315,
2190,
29899,
29933,
22255,
13,
1678,
363,
4839,
297,
1051,
29898,
2176,
29889,
13099,
29889,
5975,
1125,
13,
4706,
565,
451,
6702,
1057,
11283,
297,
4839,
1125,
13,
9651,
1596,
877,
22709,
29991,
365,
638,
873,
18500,
9714,
1897,
297,
1962,
29901,
525,
718,
4839,
29897,
13,
268,
13,
1678,
396,
20025,
322,
1962,
13,
1678,
4489,
353,
4489,
29889,
12071,
29918,
2248,
29898,
8865,
29922,
5574,
29897,
13,
1678,
4489,
353,
4489,
29889,
6605,
29918,
2248,
29898,
8990,
29922,
29896,
29897,
396,
1570,
368,
2715,
29892,
23551,
4341,
22968,
1711,
577,
1021,
363,
1716,
13516,
13,
1678,
396,
2176,
353,
4489,
29889,
6605,
29918,
5975,
29898,
1609,
29922,
1839,
20633,
29967,
24461,
6670,
1057,
29901,
16009,
1989,
11287,
13,
1678,
4489,
353,
4489,
29889,
1267,
420,
29898,
13099,
353,
11117,
20633,
29967,
24461,
6670,
1057,
29901,
16009,
1989,
22099,
16009,
1989,
29915,
1800,
268,
13,
1678,
4489,
353,
4489,
29889,
842,
29918,
2248,
18959,
16009,
1989,
11287,
13,
1678,
4489,
29889,
517,
29918,
7638,
29898,
4905,
29918,
3972,
718,
5591,
29908,
718,
2224,
29918,
978,
718,
11119,
1062,
791,
29889,
7638,
613,
2248,
29922,
5574,
29897,
13,
13,
1753,
3588,
29918,
3068,
5355,
29918,
517,
29918,
957,
433,
3262,
29898,
4905,
29918,
3972,
13776,
1125,
13,
1678,
565,
1962,
29918,
3972,
1275,
376,
1115,
13,
4706,
1962,
29918,
3972,
353,
364,
29908,
29907,
3583,
5959,
29905,
29926,
29926,
29876,
348,
29905,
20128,
29905,
21077,
29905,
1666,
2842,
29905,
29896,
29918,
29907,
2190,
29933,
22255,
10088,
1414,
29905,
371,
29891,
1145,
29899,
5559,
29905,
1272,
29905,
3068,
5355,
29918,
1272,
29918,
8159,
29918,
6921,
29908,
396,
14402,
5382,
6275,
2898,
401,
13,
1678,
565,
451,
2897,
29889,
2084,
29889,
9933,
29898,
4905,
29918,
3972,
1125,
13,
4706,
2897,
29889,
11256,
3972,
29898,
4905,
29918,
3972,
29897,
13,
13,
1678,
1677,
29918,
2176,
353,
10518,
29889,
949,
29918,
7638,
29898,
4905,
29918,
3972,
718,
5591,
3068,
5355,
29918,
326,
649,
287,
29889,
7638,
1159,
13,
1678,
396,
20724,
2380,
1897,
297,
2198,
13,
1678,
565,
376,
2525,
17514,
29901,
29871,
29900,
29908,
262,
1677,
29918,
2176,
29901,
29871,
13,
4706,
4489,
353,
1677,
29918,
2176,
29889,
8865,
29898,
3366,
2525,
17514,
29901,
29871,
29900,
12436,
9685,
29922,
29896,
29897,
13,
1678,
1683,
29901,
13,
4706,
4489,
353,
1677,
29918,
2176,
13,
13,
1678,
396,
11190,
377,
7454,
391,
4341,
937,
13,
1678,
4489,
353,
4489,
29961,
29907,
2190,
29933,
22255,
29918,
29949,
5348,
29931,
20576,
4214,
29918,
19143,
29918,
6007,
16358,
29918,
23827,
3366,
1332,
7454,
391,
3108,
29962,
13,
13,
1678,
396,
399,
2753,
565,
738,
18780,
1476,
29892,
408,
896,
881,
451,
367,
29991,
13,
1678,
1423,
29918,
27259,
29918,
5975,
29898,
2176,
29897,
13,
268,
13,
1678,
396,
3462,
716,
5680,
408,
9654,
13,
1678,
363,
716,
29918,
14394,
297,
29091,
29918,
16359,
1299,
11499,
29903,
29918,
29907,
2190,
29933,
22255,
29901,
13,
9651,
4489,
29961,
1482,
29918,
14394,
29962,
353,
7442,
29889,
13707,
13,
268,
13,
1678,
396,
1987,
1889,
963,
13,
1678,
363,
1206,
29892,
2295,
297,
315,
2190,
29933,
22255,
29918,
29949,
5348,
29931,
20576,
4214,
29918,
19143,
29918,
6007,
16358,
29918,
23827,
29889,
7076,
7295,
13,
4706,
565,
1206,
1275,
376,
17462,
1115,
13,
9651,
396,
9531,
304,
437,
29892,
2307,
2646,
1327,
287,
515,
377,
7454,
391,
13,
9651,
6773,
13,
4706,
25342,
1206,
1275,
376,
18056,
368,
1115,
13,
9651,
363,
784,
29918,
978,
29892,
2999,
297,
2295,
3366,
1054,
29918,
7039,
16862,
7076,
7295,
13,
18884,
4489,
29961,
1054,
29918,
978,
29962,
353,
4489,
29961,
1054,
29918,
978,
1822,
7302,
29898,
2892,
921,
29901,
921,
334,
2999,
29897,
13,
4706,
25342,
1206,
1275,
376,
1228,
1115,
13,
9651,
363,
474,
29892,
1948,
297,
4489,
29889,
1524,
5727,
7295,
13,
18884,
565,
1948,
3366,
16173,
29902,
29918,
1744,
1254,
15868,
29918,
11191,
2797,
29907,
29918,
29940,
1164,
1964,
3210,
29931,
29918,
15307,
3108,
1275,
29871,
29896,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
16173,
29902,
29918,
1744,
1254,
15868,
29918,
2882,
17171,
29918,
29940,
1164,
1964,
3210,
29931,
29918,
15307,
3108,
353,
29871,
29896,
13,
18884,
565,
1948,
3366,
16173,
29902,
29918,
1964,
3210,
29931,
29918,
11191,
2797,
29907,
29918,
15307,
3108,
1275,
29871,
29896,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
16173,
29902,
29918,
1964,
3210,
29931,
29918,
2882,
17171,
29918,
15307,
3108,
353,
29871,
29896,
13,
18884,
565,
1948,
3366,
16173,
29902,
29918,
2190,
29918,
15307,
3108,
1275,
29871,
29896,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
16173,
29902,
29918,
2190,
29918,
29933,
1177,
1692,
29918,
15307,
3108,
353,
29871,
29896,
13,
18884,
565,
313,
798,
1839,
29923,
3580,
3927,
29979,
29918,
27047,
29918,
29953,
29889,
29900,
2033,
1275,
29871,
29896,
29897,
470,
313,
798,
1839,
29923,
3580,
3927,
29979,
29918,
27047,
29918,
29941,
29889,
29900,
2033,
1275,
29871,
29896,
1125,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
29923,
3580,
3927,
29979,
29918,
27047,
29918,
29896,
29889,
29900,
3108,
353,
29871,
29896,
13,
18884,
565,
1948,
1839,
29923,
3580,
3927,
29979,
29918,
27047,
29918,
29946,
29889,
29900,
2033,
1275,
29871,
29896,
29901,
13,
462,
1678,
4489,
29889,
271,
29961,
29875,
29892,
376,
29923,
3580,
3927,
29979,
29918,
27047,
29918,
29906,
29889,
29900,
3108,
353,
29871,
29896,
13,
18884,
788,
29918,
1482,
29918,
326,
649,
287,
29918,
22100,
29918,
3068,
5355,
29898,
2176,
29892,
1948,
29892,
474,
29897,
396,
5445,
297,
716,
5680,
13,
268,
13,
1678,
396,
20724,
4341,
393,
892,
1304,
363,
1208,
2395,
2038,
13,
1678,
363,
7379,
1336,
297,
6796,
16173,
29902,
29918,
1744,
1254,
15868,
29918,
11191,
2797,
29907,
29918,
29940,
1164,
1964,
3210,
29931,
29918,
15307,
3284,
16173,
29902,
29918,
1964,
3210,
29931,
29918,
11191,
2797,
29907,
29918,
15307,
3284,
16173,
29902,
29918,
2190,
29918,
15307,
3284,
29923,
3580,
3927,
29979,
29918,
27047,
29918,
29953,
29889,
29900,
3284,
29923,
3580,
3927,
29979,
29918,
27047,
29918,
29941,
29889,
29900,
3284,
29923,
3580,
3927,
29979,
29918,
27047,
29918,
29946,
29889,
29900,
3108,
29901,
13,
4706,
4489,
353,
4489,
29889,
8865,
4197,
20034,
1336,
1402,
9685,
29922,
29896,
29897,
13,
268,
13,
1678,
396,
19916,
714,
1906,
1728,
2854,
2933,
29914,
5464,
5327,
1819,
13,
1678,
444,
838,
2040,
22289,
577,
11455,
13,
1678,
444,
2176,
353,
679,
29918,
3084,
29918,
16009,
29879,
29898,
2176,
29897,
13,
1678,
444,
2176,
353,
4489,
29889,
8865,
29898,
3366,
1525,
5550,
1164,
29928,
29918,
29956,
29968,
29947,
12436,
9685,
29922,
29896,
29897,
13,
268,
13,
1678,
396,
390,
3871,
12481,
12252,
414,
5034,
304,
9657,
13,
1678,
4489,
353,
4489,
29889,
1267,
420,
29898,
23252,
1001,
29918,
6007,
16358,
29918,
4571,
1783,
29892,
9685,
29922,
29896,
29897,
13,
268,
13,
1678,
396,
5399,
393,
599,
1897,
9066,
505,
584,
1057,
304,
9801,
896,
505,
3928,
749,
297,
6850,
1718,
29930,
29928,
13,
1678,
363,
4839,
297,
1051,
29898,
2176,
29889,
13099,
29889,
5975,
1125,
13,
4706,
565,
451,
6702,
1057,
11283,
297,
4839,
1125,
13,
9651,
1596,
877,
22709,
29991,
365,
638,
873,
18500,
9714,
1897,
297,
1962,
29901,
525,
718,
4839,
29897,
13,
268,
13,
1678,
396,
20025,
322,
1962,
13,
1678,
4489,
353,
4489,
29889,
12071,
29918,
2248,
29898,
8865,
29922,
5574,
29897,
13,
1678,
4489,
353,
4489,
29889,
6605,
29918,
2248,
29898,
8990,
29922,
29896,
29897,
396,
1570,
368,
2715,
29892,
23551,
4341,
22968,
1711,
577,
1021,
363,
1716,
13516,
1678,
13,
1678,
4489,
353,
4489,
29889,
1267,
420,
29898,
13099,
353,
11117,
20633,
29967,
24461,
6670,
1057,
29901,
16009,
1989,
22099,
16009,
1989,
29915,
1800,
13,
1678,
4489,
353,
4489,
29889,
842,
29918,
2248,
18959,
16009,
1989,
11287,
13,
1678,
4489,
29889,
517,
29918,
7638,
29898,
4905,
29918,
3972,
718,
5591,
29990,
29918,
1688,
29918,
10702,
29918,
1062,
791,
29889,
7638,
613,
2248,
29922,
5574,
29897,
13,
13,
13,
1753,
788,
29918,
1482,
29918,
326,
649,
287,
29918,
22100,
29918,
3068,
5355,
29898,
2176,
29892,
1948,
29892,
474,
1125,
13,
268,
13,
1678,
396,
527,
649,
29918,
1384,
273,
29916,
21549,
13,
1678,
527,
649,
29918,
1384,
273,
29916,
21549,
353,
6024,
16173,
29902,
29918,
7982,
7230,
29918,
15307,
742,
525,
16173,
29902,
29918,
25014,
29918,
29928,
29990,
742,
525,
16173,
29902,
29918,
10051,
29934,
29925,
8187,
29933,
10764,
29918,
15307,
742,
525,
16173,
29902,
29918,
6156,
6154,
29918,
29925,
8187,
29933,
10764,
29918,
29928,
29990,
742,
525,
16173,
29902,
29918,
29954,
3035,
29918,
15307,
2033,
13,
1678,
659,
353,
29871,
29896,
565,
2533,
29898,
798,
29961,
326,
649,
29918,
1384,
273,
29916,
21549,
29962,
1275,
29871,
29896,
29897,
1405,
29871,
29900,
1683,
29871,
29900,
13,
1678,
4489,
29889,
271,
29961,
29875,
29892,
525,
1057,
29901,
326,
649,
29918,
1384,
273,
29916,
21549,
2033,
353,
659,
13,
308,
13,
1678,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
546,
29883,
29918,
3167,
13,
1678,
659,
353,
4513,
3552,
798,
29961,
29984,
29918,
4571,
1783,
29918,
29907,
1839,
29939,
4841,
29900,
29896,
29918,
29893,
29906,
21935,
1649,
29939,
303,
327,
2033,
29962,
448,
1948,
29961,
29984,
29918,
4571,
1783,
29918,
29907,
1839,
29939,
4841,
29900,
29896,
29918,
29893,
29900,
21935,
1649,
29939,
303,
327,
2033,
2314,
847,
1948,
29961,
29984,
29918,
4571,
1783,
29918,
29907,
1839,
29939,
4841,
29900,
29896,
29918,
29893,
29900,
21935,
1649,
29939,
303,
327,
2033,
29962,
565,
1948,
29961,
29984,
29918,
4571,
1783,
29918,
29907,
1839,
29939,
4841,
29900,
29896,
29918,
29893,
29900,
21935,
1649,
29939,
303,
327,
2033,
29962,
1683,
29871,
29900,
29892,
29871,
29941,
29897,
13,
1678,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
546,
29883,
29918,
3167,
1057,
29901,
2033,
353,
659,
13,
268,
13,
1678,
396,
1954,
649,
287,
716,
660,
1367,
29903,
5680,
13,
1678,
363,
931,
297,
6024,
18448,
29900,
3788,
18448,
29906,
2033,
29901,
29871,
13,
4706,
931,
29906,
353,
525,
6500,
5570,
29915,
565,
931,
1275,
29915,
18448,
29900,
29915,
1683,
525,
18448,
29906,
29915,
396,
18448,
29900,
338,
6041,
2000,
903,
6500,
5570,
13,
308,
13,
4706,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
17059,
29918,
7247,
13,
4706,
659,
353,
4513,
29898,
9302,
29889,
13707,
3317,
29898,
1761,
29898,
798,
29961,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29896,
29918,
29915,
718,
931,
29906,
5501,
29984,
1367,
29903,
29918,
14098,
29918,
29906,
29918,
29915,
718,
931,
29906,
5501,
29984,
1367,
29903,
29918,
14098,
29918,
29941,
29918,
29915,
718,
931,
29906,
5501,
29984,
1367,
29903,
29918,
14098,
29918,
29946,
29918,
29915,
718,
931,
29906,
5262,
4961,
13,
4706,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
17059,
29918,
7247,
29918,
29915,
718,
931,
718,
525,
1057,
29901,
2033,
353,
659,
13,
13,
4706,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
932,
300,
568,
29918,
7247,
13,
4706,
659,
353,
4513,
29898,
9302,
29889,
13707,
3317,
29898,
1761,
29898,
798,
29961,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29953,
29918,
29915,
718,
931,
29906,
5501,
29984,
1367,
29903,
29918,
14098,
29918,
29955,
29918,
29915,
718,
931,
29906,
5501,
29984,
1367,
29903,
29918,
14098,
29918,
29947,
29918,
29915,
718,
931,
29906,
5501,
29984,
1367,
29903,
29918,
14098,
29918,
29929,
29918,
29915,
718,
931,
29906,
5262,
4961,
13,
4706,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
932,
300,
568,
29918,
7247,
29918,
29915,
718,
931,
718,
525,
1057,
29901,
2033,
353,
659,
13,
308,
13,
4706,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
567,
3376,
290,
327,
29918,
7247,
13,
4706,
659,
353,
4513,
29898,
9302,
29889,
13707,
3317,
29898,
1761,
29898,
798,
29961,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29896,
29945,
29918,
29915,
718,
931,
29906,
5501,
29984,
1367,
29903,
29918,
14098,
29918,
29896,
29953,
29918,
29915,
718,
931,
29906,
5262,
4961,
13,
4706,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
567,
3376,
290,
327,
29918,
7247,
29918,
29915,
718,
931,
718,
525,
1057,
29901,
2033,
353,
659,
13,
308,
13,
4706,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
957,
29872,
1218,
13,
4706,
659,
353,
4513,
29898,
9302,
29889,
13707,
3317,
29898,
1761,
29898,
798,
29961,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29955,
29918,
29915,
718,
931,
29906,
5501,
29984,
1367,
29903,
29918,
14098,
29918,
29929,
29918,
29915,
718,
931,
29906,
5262,
4961,
13,
4706,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
957,
29872,
1218,
29918,
29915,
718,
931,
718,
525,
1057,
29901,
2033,
353,
659,
13,
13,
4706,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
1144,
290,
3915,
13,
4706,
659,
353,
4513,
29898,
9302,
29889,
13707,
3317,
29898,
1761,
29898,
798,
29961,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29896,
29918,
29915,
718,
931,
29906,
5501,
29984,
1367,
29903,
29918,
14098,
29918,
29906,
29918,
29915,
718,
931,
29906,
5501,
29984,
1367,
29903,
29918,
14098,
29918,
29941,
29918,
29915,
718,
931,
29906,
5262,
4961,
13,
4706,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
1144,
290,
3915,
29918,
29915,
718,
931,
718,
525,
1057,
29901,
2033,
353,
659,
13,
13,
1753,
788,
29918,
1482,
29918,
326,
649,
287,
29918,
22100,
29918,
303,
538,
29898,
2176,
29892,
1948,
29892,
474,
1125,
13,
268,
13,
1678,
396,
527,
649,
29918,
1384,
273,
29916,
21549,
13,
1678,
527,
649,
29918,
1384,
273,
29916,
21549,
353,
6024,
561,
29916,
29900,
29896,
1649,
567,
29881,
742,
525,
561,
29916,
29900,
29896,
1649,
15926,
29918,
1217,
351,
742,
525,
561,
29916,
29900,
29896,
1649,
15926,
29918,
351,
742,
525,
561,
29916,
29900,
29896,
1649,
29879,
542,
29918,
561,
711,
742,
525,
561,
29916,
29900,
29896,
1649,
29887,
328,
29918,
561,
29916,
3788,
561,
29916,
29900,
29896,
1649,
6550,
561,
711,
2033,
13,
1678,
659,
353,
29871,
29896,
565,
2533,
29898,
798,
29961,
326,
649,
29918,
1384,
273,
29916,
21549,
29962,
1275,
29871,
29896,
29897,
1405,
29871,
29900,
1683,
29871,
29900,
13,
1678,
4489,
29889,
271,
29961,
29875,
29892,
525,
1057,
29901,
326,
649,
29918,
1384,
273,
29916,
21549,
2033,
353,
659,
13,
308,
13,
1678,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
546,
29883,
29918,
3167,
13,
1678,
659,
353,
4513,
3552,
798,
1839,
29939,
4841,
29900,
29896,
29918,
29893,
29906,
21935,
1649,
29939,
303,
327,
2033,
448,
1948,
1839,
29939,
4841,
29900,
29896,
29918,
29893,
29900,
21935,
1649,
29939,
303,
327,
11287,
847,
1948,
1839,
29939,
4841,
29900,
29896,
29918,
29893,
29900,
21935,
1649,
29939,
303,
327,
2033,
565,
1948,
1839,
29939,
4841,
29900,
29896,
29918,
29893,
29900,
21935,
1649,
29939,
303,
327,
2033,
1683,
29871,
29900,
29892,
29871,
29941,
29897,
13,
1678,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
546,
29883,
29918,
3167,
1057,
29901,
2033,
353,
659,
13,
268,
13,
1678,
396,
11323,
29979,
29950,
3235,
29918,
5773,
29928,
29918,
15094,
29963,
1057,
29901,
13,
1678,
659,
353,
29871,
29896,
565,
1948,
1839,
561,
29916,
29900,
29896,
1649,
1022,
1789,
2033,
6736,
29871,
29906,
1683,
29871,
29900,
13,
1678,
4489,
29889,
271,
29961,
29875,
29892,
525,
7024,
29979,
29950,
3235,
29918,
5773,
29928,
29918,
15094,
29963,
1057,
29901,
2033,
353,
659,
13,
268,
13,
1678,
396,
525,
29984,
17101,
29984,
29909,
29918,
29911,
2891,
29918,
29984,
17101,
29984,
29933,
29918,
29911,
2891,
29918,
1050,
3192,
1057,
11283,
13,
1678,
659,
353,
29871,
29900,
13,
1678,
363,
432,
297,
3464,
29898,
29896,
29892,
29896,
29945,
1125,
396,
6991,
4452,
29871,
29896,
29899,
29896,
29946,
13,
4706,
851,
29918,
29926,
353,
851,
29898,
29926,
29897,
13,
4706,
851,
29918,
29926,
353,
376,
29900,
29908,
718,
851,
29918,
29926,
565,
432,
529,
29871,
29896,
29900,
1683,
851,
29918,
29926,
13,
4706,
659,
353,
659,
718,
1948,
1839,
29939,
793,
29939,
29900,
29896,
1649,
29939,
793,
29939,
29915,
718,
851,
29918,
29926,
29962,
13,
1678,
4489,
29889,
271,
29961,
29875,
29892,
525,
29984,
17101,
29984,
29909,
29918,
29911,
2891,
29918,
29984,
17101,
29984,
29933,
29918,
29911,
2891,
29918,
1050,
3192,
1057,
29901,
2033,
353,
659,
13,
268,
13,
1678,
396,
1954,
649,
287,
716,
660,
1367,
29903,
5680,
13,
1678,
363,
931,
297,
6024,
18448,
29900,
3788,
18448,
29906,
2033,
29901,
29871,
13,
4706,
931,
29906,
353,
525,
6500,
5570,
29915,
565,
931,
1275,
29915,
18448,
29900,
29915,
1683,
525,
18448,
29906,
29915,
396,
18448,
29900,
338,
6041,
2000,
903,
6500,
5570,
13,
4706,
931,
29941,
353,
525,
29893,
29900,
29915,
565,
931,
1275,
29915,
18448,
29900,
29915,
1683,
525,
29893,
29906,
29915,
396,
18448,
29900,
338,
6041,
2000,
281,
29900,
29892,
322,
4723,
29906,
281,
29906,
13,
308,
13,
4706,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
17059,
29918,
7247,
13,
4706,
659,
353,
4513,
29898,
9302,
29889,
13707,
3317,
29898,
1761,
29898,
798,
8999,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29896,
29918,
29915,
718,
931,
29906,
1402,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29906,
29918,
29915,
718,
931,
29906,
1402,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29941,
29918,
29915,
718,
931,
29906,
1402,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29946,
29918,
29915,
718,
931,
29906,
5262,
29962,
4961,
13,
4706,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
17059,
29918,
7247,
29918,
29915,
718,
931,
718,
525,
1057,
29901,
2033,
353,
659,
13,
13,
4706,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
932,
300,
568,
29918,
7247,
13,
4706,
659,
353,
4513,
29898,
9302,
29889,
13707,
3317,
29898,
1761,
29898,
798,
8999,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29953,
29918,
29915,
718,
931,
29906,
1402,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29955,
29918,
29915,
718,
931,
29906,
1402,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29947,
29918,
29915,
718,
931,
29906,
1402,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29929,
29918,
29915,
718,
931,
29906,
5262,
29962,
4961,
13,
4706,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
932,
300,
568,
29918,
7247,
29918,
29915,
718,
931,
718,
525,
1057,
29901,
2033,
353,
659,
13,
308,
13,
4706,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
567,
3376,
290,
327,
29918,
7247,
13,
4706,
659,
353,
4513,
29898,
9302,
29889,
13707,
3317,
29898,
1761,
29898,
798,
8999,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29896,
29945,
29918,
29915,
718,
931,
29906,
1402,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29896,
29953,
29918,
29915,
718,
931,
29906,
5262,
29962,
4961,
13,
4706,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
567,
3376,
290,
327,
29918,
7247,
29918,
29915,
718,
931,
718,
525,
1057,
29901,
2033,
353,
659,
13,
308,
13,
4706,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
957,
29872,
1218,
13,
4706,
659,
353,
4513,
29898,
9302,
29889,
13707,
3317,
29898,
1761,
29898,
798,
8999,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29955,
29918,
29915,
718,
931,
29906,
1402,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29929,
29918,
29915,
718,
931,
29906,
5262,
29962,
4961,
13,
4706,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
957,
29872,
1218,
29918,
29915,
718,
931,
718,
525,
1057,
29901,
2033,
353,
659,
13,
13,
4706,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
1144,
290,
3915,
13,
4706,
659,
353,
4513,
29898,
9302,
29889,
13707,
3317,
29898,
1761,
29898,
798,
8999,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29896,
29918,
29915,
718,
931,
29906,
1402,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29906,
29918,
29915,
718,
931,
29906,
1402,
29984,
29918,
4571,
1783,
29918,
29903,
1839,
29984,
1367,
29903,
29918,
14098,
29918,
29941,
29918,
29915,
718,
931,
29906,
5262,
29962,
4961,
13,
4706,
4489,
29889,
271,
29961,
29875,
29892,
525,
326,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
1144,
290,
3915,
29918,
29915,
718,
931,
718,
525,
1057,
29901,
2033,
353,
659,
13,
308,
13,
4706,
396,
527,
649,
29918,
29984,
1367,
29903,
29918,
14098,
29918,
1299,
29979,
2227,
29907,
1964,
13,
4706,
659,
353,
4513,
29898,
9302,
29889,
2083,
29898,
1761,
29898,
798,
29961,
1839,
29939,
4841,
29900,
29896,
29918,
29915,
718,
931,
29941,
718,
525,
21935,
1649,
29894,
29882,
952,
29885,
3788,
29939,
4841,
29900,
29896,
29918,
29915,
718,
931,
29941,
718,
525,
21935,
1649,
29894,
481,
262,
742,
525,
29939,
4841,
29900,
29896,
29918,
29915,
718,
931,
29941,
718,
525,
21935,
1649,
29894,
14554,
262,
742,
525,
29939,
4841,
29900,
29896,
29918,
29915,
718,
931,
29941,
718,
525,
21935,
1649,
854,
1927,
2033,
29962,
4961,
13,
4706,
4489,
29889,
271,
29961,
29875,
29892,
525,
29984,
1367,
29903,
29918,
1299,
29979,
2227,
29907,
1964,
29918,
29915,
718,
931,
29906,
718,
525,
1057,
29901,
2033,
353,
659,
13,
13,
1753,
731,
29918,
361,
29918,
11940,
29918,
262,
29918,
720,
414,
29898,
29875,
29892,
798,
29892,
517,
29918,
842,
29892,
4045,
29892,
659,
29892,
4489,
1125,
13,
1678,
9995,
13,
1678,
26141,
16876,
740,
29889,
317,
1691,
1948,
29961,
517,
29918,
842,
3816,
29875,
29962,
304,
995,
565,
29871,
13,
1678,
738,
310,
278,
1819,
297,
4045,
1275,
29896,
29889,
13,
1678,
4803,
1319,
377,
331,
784,
14128,
292,
263,
697,
29899,
8711,
731,
310,
4341,
304,
29871,
29896,
565,
29871,
13,
1678,
738,
310,
278,
4341,
526,
29871,
29896,
29889,
29871,
13,
1678,
9995,
13,
1678,
363,
274,
297,
4045,
29901,
13,
4706,
916,
29918,
791,
353,
938,
29898,
798,
29961,
29883,
2314,
13,
4706,
565,
916,
29918,
791,
1275,
29896,
29901,
13,
9651,
4489,
29889,
271,
29961,
29875,
29892,
304,
29918,
842,
29962,
353,
659,
13,
4706,
25342,
916,
29918,
791,
1275,
29900,
29901,
13,
9651,
6773,
13,
4706,
1683,
29901,
13,
9651,
12020,
8960,
877,
842,
29918,
361,
29918,
11940,
881,
871,
367,
1304,
363,
4341,
393,
526,
29871,
29896,
470,
29871,
29900,
29892,
2183,
29901,
525,
718,
851,
29898,
1228,
29918,
791,
876,
13,
632,
13,
1753,
1423,
29918,
27259,
29918,
5975,
29898,
2176,
1125,
13,
1678,
1870,
29879,
353,
4489,
29889,
275,
4304,
2141,
2083,
2141,
2083,
580,
13,
1678,
565,
1870,
29879,
2804,
29871,
29900,
29901,
13,
4706,
1596,
703,
29956,
25614,
29991,
319,
3001,
310,
29901,
376,
718,
851,
29898,
4304,
29879,
29897,
718,
376,
4567,
1819,
1476,
29892,
445,
881,
5517,
367,
29871,
29900,
29991,
1159,
13,
268,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
565,
7431,
29898,
9675,
29889,
19218,
29897,
1275,
29871,
29906,
322,
10876,
29889,
19218,
29961,
29896,
29962,
1275,
11663,
20313,
4381,
1115,
13,
4706,
3588,
29918,
303,
538,
29918,
517,
29918,
957,
433,
3262,
580,
13,
4706,
3588,
29918,
3068,
5355,
29918,
517,
29918,
957,
433,
3262,
580,
13,
13,
1678,
25342,
7431,
29898,
9675,
29889,
19218,
29897,
1275,
29871,
29946,
322,
10876,
29889,
19218,
29961,
29896,
29962,
1275,
11663,
20313,
29908,
322,
2897,
29889,
2084,
29889,
275,
3972,
29898,
9675,
29889,
19218,
29961,
29906,
29962,
1125,
13,
4706,
3588,
29918,
303,
538,
29918,
517,
29918,
957,
433,
3262,
29898,
9675,
29889,
19218,
29961,
29906,
1402,
376,
29990,
29918,
29955,
29955,
29918,
29939,
793,
29939,
29918,
21935,
1649,
8394,
1159,
13,
4706,
3588,
29918,
303,
538,
29918,
517,
29918,
957,
433,
3262,
29898,
9675,
29889,
19218,
29961,
29906,
1402,
376,
29990,
29918,
29929,
29896,
29918,
29939,
793,
29939,
29918,
21935,
1649,
8394,
1159,
13,
4706,
3588,
29918,
3068,
5355,
29918,
517,
29918,
957,
433,
3262,
29898,
9675,
29889,
19218,
29961,
29941,
2314,
13,
13,
1678,
25342,
7431,
29898,
9675,
29889,
19218,
29897,
1275,
29871,
29941,
322,
10876,
29889,
19218,
29961,
29896,
29962,
1275,
11663,
4928,
29908,
322,
2897,
29889,
2084,
29889,
275,
3972,
29898,
9675,
29889,
19218,
29961,
29906,
29962,
1125,
13,
4706,
3588,
29918,
303,
538,
29918,
517,
29918,
957,
433,
3262,
29898,
9675,
29889,
19218,
29961,
29906,
2314,
13,
13,
1678,
25342,
7431,
29898,
9675,
29889,
19218,
29897,
1275,
29871,
29941,
322,
10876,
29889,
19218,
29961,
29896,
29962,
1275,
11663,
10702,
29908,
322,
2897,
29889,
2084,
29889,
275,
3972,
29898,
9675,
29889,
19218,
29961,
29906,
29962,
1125,
13,
4706,
3588,
29918,
3068,
5355,
29918,
517,
29918,
957,
433,
3262,
29898,
9675,
29889,
19218,
29961,
29906,
2314,
13,
13,
1678,
1683,
29901,
13,
4706,
1596,
703,
10399,
2854,
6273,
29905,
29876,
29908,
13,
795,
6634,
29873,
3987,
29901,
448,
20313,
304,
5706,
975,
433,
3262,
363,
1716,
29892,
448,
4928,
363,
6850,
1718,
29930,
29928,
29892,
448,
10702,
363,
315,
2190,
29899,
29933,
22255,
29905,
29876,
29908,
13,
795,
6634,
29873,
2224,
29901,
278,
2224,
304,
263,
1855,
3884,
411,
278,
758,
5014,
287,
848,
29905,
29876,
29908,
13,
795,
6634,
29873,
2224,
29901,
565,
14655,
278,
975,
433,
3262,
363,
1716,
29892,
445,
674,
367,
278,
315,
2190,
29899,
29933,
22255,
848,
29892,
322,
278,
29871,
29906,
299,
2980,
6850,
1718,
29930,
29928,
1159,
2
] |
test22.py | spatole12/ssw555tmashishningrohnitshivani2019Spring | 0 | 37451 | import unittest
import io
import sys
from main import Gedcom
class TestProject(unittest.TestCase):
def test_us22_unique_id(self):
# Redirect stdout for unit test
capturedOutput = io.StringIO()
sys.stdout = capturedOutput
FILENAME="My-Family-27-Jan-2019-275.ged"
gedcom = Gedcom(FILENAME)
# Non-unique ID cases
self.assertIn('ERROR US22 for ID @F8@', capturedOutput.getvalue())
self.assertIn('ERROR US22 for ID @I15@', capturedOutput.getvalue())
# Unique ID cases
self.assertNotIn('ERROR US22 for ID @F3@', capturedOutput.getvalue())
self.assertNotIn('ERROR US22 for ID @I2@', capturedOutput.getvalue())
# Reset redirection
sys.stdout = sys.__stdout__
if __name__ == '__main__':
unittest.main() | [
1,
1053,
443,
27958,
13,
5215,
12013,
13,
5215,
10876,
13,
3166,
1667,
1053,
16836,
510,
13,
13,
1990,
4321,
7653,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
375,
29906,
29906,
29918,
13092,
29918,
333,
29898,
1311,
1125,
13,
4706,
396,
4367,
1088,
27591,
363,
5190,
1243,
13,
4706,
15468,
6466,
353,
12013,
29889,
1231,
5971,
580,
18884,
13,
4706,
10876,
29889,
25393,
353,
15468,
6466,
13,
13,
4706,
24080,
5813,
543,
3421,
29899,
27104,
29899,
29906,
29955,
29899,
26626,
29899,
29906,
29900,
29896,
29929,
29899,
29906,
29955,
29945,
29889,
3192,
29908,
13,
4706,
15652,
510,
353,
16836,
510,
29898,
7724,
5813,
29897,
13,
4706,
396,
10050,
29899,
13092,
3553,
4251,
13,
4706,
1583,
29889,
9294,
797,
877,
11432,
3148,
29906,
29906,
363,
3553,
29871,
732,
29943,
29947,
29992,
742,
15468,
6466,
29889,
657,
1767,
3101,
13,
4706,
1583,
29889,
9294,
797,
877,
11432,
3148,
29906,
29906,
363,
3553,
29871,
732,
29902,
29896,
29945,
29992,
742,
15468,
6466,
29889,
657,
1767,
3101,
13,
4706,
396,
853,
1387,
3553,
4251,
13,
4706,
1583,
29889,
9294,
3664,
797,
877,
11432,
3148,
29906,
29906,
363,
3553,
29871,
732,
29943,
29941,
29992,
742,
15468,
6466,
29889,
657,
1767,
3101,
13,
4706,
1583,
29889,
9294,
3664,
797,
877,
11432,
3148,
29906,
29906,
363,
3553,
29871,
732,
29902,
29906,
29992,
742,
15468,
6466,
29889,
657,
1767,
3101,
13,
4706,
396,
2538,
300,
2654,
8684,
13,
4706,
10876,
29889,
25393,
353,
10876,
17255,
25393,
1649,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
443,
27958,
29889,
3396,
580,
2
] |
bin/run_imctools.py | nf-core/nf-core-imcyto | 15 | 75983 | <gh_stars>10-100
#!/usr/bin/env python
import os
import sys
import argparse
import re
import imctools.io.mcdparser as mcdparser
import imctools.io.txtparser as txtparser
import imctools.io.ometiffparser as omeparser
import imctools.io.mcdxmlparser as meta
############################################
############################################
## PARSE ARGUMENTS
############################################
############################################
Description = 'Split nf-core/imcyto input data by full/ilastik stack.'
Epilog = """Example usage: python run_imctools.py <MCD/TXT/TIFF> <METADATA_FILE>"""
argParser = argparse.ArgumentParser(description=Description, epilog=Epilog)
argParser.add_argument('INPUT_FILE', help="Input files with extension '.mcd', '.txt', or '.tiff'.")
argParser.add_argument('METADATA_FILE', help="Metadata file containing 3 columns i.e. metal,full_stack,ilastik_stack. See pipeline usage docs for file format information.")
args = argParser.parse_args()
############################################
############################################
## PARSE & VALIDATE INPUTS
############################################
############################################
## READ AND VALIDATE METADATA FILE
ERROR_STR = 'ERROR: Please check metadata file'
HEADER = ['metal', 'full_stack', 'ilastik_stack']
fin = open(args.METADATA_FILE,'r')
header = fin.readline().strip().split(',')
if header != HEADER:
print("{} header: {} != {}".format(ERROR_STR,','.join(header),','.join(HEADER)))
sys.exit(1)
metalDict = {}
for line in fin.readlines():
lspl = line.strip().split(',')
metal,fstack,istack = lspl
## CHECK THREE COLUMNS IN LINE
if len(lspl) != len(HEADER):
print("{}: Invalid number of columns - should be 3!\nLine: '{}'".format(ERROR_STR,line.strip()))
sys.exit(1)
## CHECK VALID INCLUDE/EXCLUDE CODES
if fstack not in ['0','1'] or istack not in ['0','1']:
print("{}: Invalid column code - should be 0 or 1!\nLine: '{}'".format(ERROR_STR,line.strip()))
sys.exit(1)
## CREATE DICTIONARY
metal = metal.upper()
if metal not in metalDict:
metalDict[metal] = [bool(int(x)) for x in [fstack,istack]]
fin.close()
## OUTPUT FILE LINKING ROI IDS TO ROI LABELS (IMAGE DESCRIPTION)
roi_map = open(os.path.basename(args.INPUT_FILE)+'_ROI_map.csv', "w")
## USE DIFFERENT PARSERS CORRESPONDING TO THE INPUT FILE FORMAT
file_type = re.sub(".*\.([^.]+)$", '\\1', args.INPUT_FILE.lower())
## CONVERT INPUT_FILE TO TIFF AND WRITE RELEVANT TIFF IMAGES
if file_type == "mcd":
parser = mcdparser.McdParser(args.INPUT_FILE)
acids = parser.acquisition_ids
else:
if file_type == "txt":
parser = txtparser.TxtParser(args.INPUT_FILE)
elif file_type == "tiff" or file_type == "tif":
parser = omeparser.OmetiffParser(args.INPUT_FILE)
else:
print("{}: Invalid input file type - should be txt, tiff, or mcd!".format(file_type))
sys.exit(1)
# THERE IS ONLY ONE ACQUISITION - ROI FOLDER NAMED ACCORDING TO INPUT FILENAME
acids = [ re.sub('.txt|.tiff', '', os.path.basename(parser.filename).lower().replace(" ", "_")) ]
for roi_number in acids:
if file_type == "mcd":
imc_ac = parser.get_imc_acquisition(roi_number)
acmeta = parser.meta.get_object(meta.ACQUISITION, roi_number)
roi_label = parser.get_acquisition_description(roi_number)
roi_map.write("roi_%s,%s,%s,%s" % (roi_number, roi_label, acmeta.properties['StartTimeStamp'], acmeta.properties['EndTimeStamp']) + "\n")
else:
imc_ac = parser.get_imc_acquisition()
# NO INFORMATION ON IMAGE ACQUISITION TIME FOR TXT AND TIFF FILE FORMATS
roi_map.write("roi_%s,,," % (roi_number) + "\n")
for i,j in enumerate(HEADER[1:]):
## WRITE TO APPROPRIATE DIRECTORY
dirname = "roi_%s/%s" % (roi_number, j)
if not os.path.exists(dirname):
os.makedirs(dirname)
# SELECT THE METALS FOR THE CORRESPNDING STACK (i) TO CREATE OME TIFF STACK
label_indices = [ idx for idx in range(0, len(imc_ac.channel_labels)) if len([ entry for entry in metalDict if imc_ac.channel_labels[idx].upper().startswith(entry) and metalDict[entry][i]]) > 0 ]
metal_stack = [ imc_ac.channel_metals[idx] for idx in label_indices ]
if len(metal_stack) > 0:
img = imc_ac.get_image_writer(filename=os.path.join("roi_%s" % (roi_number), "%s.ome.tiff" % j), metals=metal_stack)
img.save_image(mode='ome', compression=0, dtype=None, bigtiff=True)
else:
print("None of the metals exists in metasheet file for {}".format(j))
sys.exit(1)
for l, m in zip(imc_ac.channel_labels, imc_ac.channel_metals):
filename = "%s.tiff" % (l)
# MATCH METAL LABEL TO METADATA METAL COLUMN
metal_label = l.split('_')[0].upper()
metal = [ entry for entry in metalDict if metal_label.upper().startswith(entry) and metalDict[entry][i] ]
if len(metal) == 1:
if metalDict[metal[0]][i]:
img = imc_ac.get_image_writer(filename=os.path.join(dirname,filename), metals=[m])
img.save_image(mode='ome', compression=0, dtype=None, bigtiff=False)
elif len(metal) > 1:
print("{} metal has multiple matches found".format(metal_label))
elif len([ entry for entry in metalDict if metal_label.upper().startswith(entry)]) == 0:
print("{} metal does not exist in metasheet file".format(metal_label))
roi_map.close()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
1852,
5510,
13,
5215,
337,
13,
13,
5215,
527,
312,
8789,
29889,
601,
29889,
29885,
2252,
16680,
408,
286,
2252,
16680,
13,
5215,
527,
312,
8789,
29889,
601,
29889,
3945,
16680,
408,
13872,
16680,
13,
5215,
527,
312,
8789,
29889,
601,
29889,
3297,
2593,
16680,
408,
288,
1004,
16680,
13,
5215,
527,
312,
8789,
29889,
601,
29889,
29885,
2252,
3134,
16680,
408,
12700,
13,
13,
13383,
13383,
7346,
4136,
13,
13383,
13383,
7346,
4136,
13,
2277,
349,
1718,
1660,
9033,
29954,
5005,
3919,
29903,
13,
13383,
13383,
7346,
4136,
13,
13383,
13383,
7346,
4136,
13,
13,
9868,
353,
525,
18772,
302,
29888,
29899,
3221,
29914,
326,
1270,
517,
1881,
848,
491,
2989,
29914,
309,
579,
638,
5096,
6169,
13,
29923,
29886,
26140,
353,
9995,
14023,
8744,
29901,
3017,
1065,
29918,
326,
312,
8789,
29889,
2272,
529,
29924,
6530,
29914,
29911,
12188,
29914,
24301,
4198,
29958,
529,
2303,
29911,
3035,
8254,
29918,
7724,
11903,
15945,
13,
13,
1191,
11726,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
29922,
9868,
29892,
9358,
26140,
29922,
29923,
29886,
26140,
29897,
13,
1191,
11726,
29889,
1202,
29918,
23516,
877,
1177,
12336,
29918,
7724,
742,
1371,
543,
4290,
2066,
411,
6081,
15300,
29885,
2252,
742,
15300,
3945,
742,
470,
15300,
29873,
2593,
4286,
1159,
13,
1191,
11726,
29889,
1202,
29918,
23516,
877,
2303,
29911,
3035,
8254,
29918,
7724,
742,
1371,
543,
18417,
934,
6943,
29871,
29941,
4341,
474,
29889,
29872,
29889,
11915,
29892,
8159,
29918,
1429,
29892,
309,
579,
638,
29918,
1429,
29889,
2823,
16439,
8744,
10561,
363,
934,
3402,
2472,
23157,
13,
5085,
353,
1852,
11726,
29889,
5510,
29918,
5085,
580,
13,
13,
13383,
13383,
7346,
4136,
13,
13383,
13383,
7346,
4136,
13,
2277,
349,
1718,
1660,
669,
12599,
1367,
3040,
2672,
12336,
29903,
13,
13383,
13383,
7346,
4136,
13,
13383,
13383,
7346,
4136,
13,
13,
2277,
5195,
3035,
5300,
12599,
1367,
3040,
341,
2544,
3035,
8254,
24080,
13,
11432,
29918,
10810,
353,
525,
11432,
29901,
3529,
1423,
15562,
934,
29915,
13,
23252,
1001,
353,
6024,
2527,
284,
742,
525,
8159,
29918,
1429,
742,
525,
309,
579,
638,
29918,
1429,
2033,
13,
13,
4951,
353,
1722,
29898,
5085,
29889,
2303,
29911,
3035,
8254,
29918,
7724,
5501,
29878,
1495,
13,
6672,
353,
1436,
29889,
949,
1220,
2141,
17010,
2141,
5451,
29317,
1495,
13,
361,
4839,
2804,
17714,
3035,
1001,
29901,
13,
1678,
1596,
703,
8875,
4839,
29901,
6571,
2804,
6571,
1642,
4830,
29898,
11432,
29918,
10810,
29892,
3788,
29889,
7122,
29898,
6672,
511,
3788,
29889,
7122,
29898,
23252,
1001,
4961,
13,
1678,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
2527,
284,
21533,
353,
6571,
13,
1454,
1196,
297,
1436,
29889,
949,
9012,
7295,
13,
1678,
19375,
572,
353,
1196,
29889,
17010,
2141,
5451,
29317,
1495,
13,
1678,
11915,
29892,
29888,
1429,
29892,
391,
547,
353,
19375,
572,
13,
13,
1678,
444,
23557,
3446,
21661,
23958,
5005,
3059,
2672,
365,
8895,
13,
1678,
565,
7431,
29898,
3137,
572,
29897,
2804,
7431,
29898,
23252,
1001,
1125,
13,
4706,
1596,
703,
29912,
6177,
21403,
1353,
310,
4341,
448,
881,
367,
29871,
29941,
9903,
29876,
3542,
29901,
525,
8875,
29915,
1642,
4830,
29898,
11432,
29918,
10810,
29892,
1220,
29889,
17010,
22130,
13,
4706,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
1678,
444,
23557,
12599,
1367,
2672,
6154,
29965,
2287,
29914,
5746,
6154,
29965,
2287,
4810,
2287,
29903,
13,
1678,
565,
285,
1429,
451,
297,
6024,
29900,
3788,
29896,
2033,
470,
1752,
547,
451,
297,
6024,
29900,
3788,
29896,
2033,
29901,
13,
4706,
1596,
703,
29912,
6177,
21403,
1897,
775,
448,
881,
367,
29871,
29900,
470,
29871,
29896,
9903,
29876,
3542,
29901,
525,
8875,
29915,
1642,
4830,
29898,
11432,
29918,
10810,
29892,
1220,
29889,
17010,
22130,
13,
4706,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
1678,
444,
14602,
22471,
9838,
19926,
13,
1678,
11915,
353,
11915,
29889,
21064,
580,
13,
1678,
565,
11915,
451,
297,
11915,
21533,
29901,
13,
4706,
11915,
21533,
29961,
2527,
284,
29962,
353,
518,
11227,
29898,
524,
29898,
29916,
876,
363,
921,
297,
518,
29888,
1429,
29892,
391,
547,
5262,
13,
4951,
29889,
5358,
580,
13,
13,
2277,
19474,
12336,
24080,
21724,
29968,
4214,
16641,
29902,
3553,
29903,
7495,
16641,
29902,
365,
2882,
6670,
29903,
313,
2382,
23050,
24290,
2725,
29897,
13,
307,
29875,
29918,
1958,
353,
1722,
29898,
359,
29889,
2084,
29889,
6500,
3871,
29898,
5085,
29889,
1177,
12336,
29918,
7724,
7240,
15972,
1672,
29902,
29918,
1958,
29889,
7638,
742,
376,
29893,
1159,
13,
13,
2277,
501,
1660,
22471,
28483,
3919,
349,
1718,
6304,
29903,
315,
1955,
1525,
5550,
1164,
29928,
4214,
7495,
6093,
2672,
12336,
24080,
383,
12054,
1299,
13,
1445,
29918,
1853,
353,
337,
29889,
1491,
703,
5575,
23301,
4197,
29985,
5586,
29974,
1262,
613,
525,
1966,
29896,
742,
6389,
29889,
1177,
12336,
29918,
7724,
29889,
13609,
3101,
13,
13,
2277,
8707,
5348,
29911,
2672,
12336,
29918,
7724,
7495,
323,
29902,
4198,
5300,
399,
29934,
9094,
5195,
1307,
29963,
13566,
323,
29902,
4198,
306,
1529,
1692,
29903,
13,
361,
934,
29918,
1853,
1275,
376,
29885,
2252,
1115,
13,
1678,
13812,
353,
286,
2252,
16680,
29889,
29924,
2252,
11726,
29898,
5085,
29889,
1177,
12336,
29918,
7724,
29897,
13,
1678,
1274,
4841,
353,
13812,
29889,
562,
23493,
29918,
4841,
13,
2870,
29901,
13,
1678,
565,
934,
29918,
1853,
1275,
376,
3945,
1115,
13,
4706,
13812,
353,
13872,
16680,
29889,
29911,
486,
11726,
29898,
5085,
29889,
1177,
12336,
29918,
7724,
29897,
13,
1678,
25342,
934,
29918,
1853,
1275,
376,
29873,
2593,
29908,
470,
934,
29918,
1853,
1275,
376,
29873,
361,
1115,
13,
4706,
13812,
353,
288,
1004,
16680,
29889,
29949,
2527,
2593,
11726,
29898,
5085,
29889,
1177,
12336,
29918,
7724,
29897,
13,
1678,
1683,
29901,
13,
4706,
1596,
703,
29912,
6177,
21403,
1881,
934,
1134,
448,
881,
367,
13872,
29892,
260,
2593,
29892,
470,
286,
2252,
29991,
1642,
4830,
29898,
1445,
29918,
1853,
876,
13,
4706,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
1678,
396,
3446,
27267,
8519,
6732,
16786,
6732,
29923,
14614,
29984,
3120,
29903,
22122,
448,
16641,
29902,
383,
5607,
8032,
27085,
29928,
319,
4174,
25593,
4214,
7495,
2672,
12336,
24080,
5813,
13,
1678,
1274,
4841,
353,
518,
337,
29889,
1491,
12839,
3945,
29989,
29889,
29873,
2593,
742,
15516,
2897,
29889,
2084,
29889,
6500,
3871,
29898,
16680,
29889,
9507,
467,
13609,
2141,
6506,
703,
9162,
11119,
5783,
4514,
13,
13,
1454,
14100,
29918,
4537,
297,
1274,
4841,
29901,
13,
1678,
565,
934,
29918,
1853,
1275,
376,
29885,
2252,
1115,
13,
4706,
527,
29883,
29918,
562,
353,
13812,
29889,
657,
29918,
326,
29883,
29918,
562,
23493,
29898,
307,
29875,
29918,
4537,
29897,
13,
4706,
1274,
7299,
353,
13812,
29889,
7299,
29889,
657,
29918,
3318,
29898,
7299,
29889,
2477,
29984,
3120,
29903,
22122,
29892,
14100,
29918,
4537,
29897,
13,
4706,
14100,
29918,
1643,
353,
13812,
29889,
657,
29918,
562,
23493,
29918,
8216,
29898,
307,
29875,
29918,
4537,
29897,
13,
4706,
14100,
29918,
1958,
29889,
3539,
703,
307,
29875,
29918,
29995,
29879,
24163,
29879,
24163,
29879,
24163,
29879,
29908,
1273,
313,
307,
29875,
29918,
4537,
29892,
14100,
29918,
1643,
29892,
1274,
7299,
29889,
11330,
1839,
4763,
2481,
855,
1160,
7464,
1274,
7299,
29889,
11330,
1839,
5044,
2481,
855,
1160,
11287,
718,
6634,
29876,
1159,
13,
1678,
1683,
29901,
13,
4706,
527,
29883,
29918,
562,
353,
13812,
29889,
657,
29918,
326,
29883,
29918,
562,
23493,
580,
13,
13,
4706,
396,
11698,
2672,
19094,
8098,
6732,
306,
1529,
1692,
14614,
29984,
3120,
29903,
22122,
323,
8890,
15842,
323,
12188,
5300,
323,
29902,
4198,
24080,
383,
12054,
1299,
29903,
13,
4706,
14100,
29918,
1958,
29889,
3539,
703,
307,
29875,
29918,
29995,
29879,
12985,
1699,
1273,
313,
307,
29875,
29918,
4537,
29897,
718,
6634,
29876,
1159,
13,
13,
1678,
363,
474,
29892,
29926,
297,
26985,
29898,
23252,
1001,
29961,
29896,
17531,
1125,
13,
4706,
444,
399,
29934,
9094,
7495,
12279,
8618,
29829,
3040,
22471,
26282,
18929,
13,
4706,
4516,
978,
353,
376,
307,
29875,
29918,
29995,
29879,
22584,
29879,
29908,
1273,
313,
307,
29875,
29918,
4537,
29892,
432,
29897,
13,
4706,
565,
451,
2897,
29889,
2084,
29889,
9933,
29898,
25721,
1125,
13,
9651,
2897,
29889,
29885,
12535,
12935,
29898,
25721,
29897,
13,
13,
4706,
396,
5097,
6093,
341,
2544,
1964,
29903,
15842,
6093,
315,
1955,
1525,
5550,
2797,
4214,
6850,
11375,
313,
29875,
29897,
7495,
14602,
438,
2303,
323,
29902,
4198,
6850,
11375,
13,
4706,
3858,
29918,
513,
1575,
353,
518,
22645,
363,
22645,
297,
3464,
29898,
29900,
29892,
7431,
29898,
326,
29883,
29918,
562,
29889,
12719,
29918,
21134,
876,
565,
7431,
4197,
6251,
363,
6251,
297,
11915,
21533,
565,
527,
29883,
29918,
562,
29889,
12719,
29918,
21134,
29961,
13140,
1822,
21064,
2141,
27382,
2541,
29898,
8269,
29897,
322,
11915,
21533,
29961,
8269,
3816,
29875,
24960,
1405,
29871,
29900,
4514,
13,
4706,
11915,
29918,
1429,
353,
518,
527,
29883,
29918,
562,
29889,
12719,
29918,
2527,
1338,
29961,
13140,
29962,
363,
22645,
297,
3858,
29918,
513,
1575,
4514,
13,
13,
4706,
565,
7431,
29898,
2527,
284,
29918,
1429,
29897,
1405,
29871,
29900,
29901,
13,
9651,
10153,
353,
527,
29883,
29918,
562,
29889,
657,
29918,
3027,
29918,
13236,
29898,
9507,
29922,
359,
29889,
2084,
29889,
7122,
703,
307,
29875,
29918,
29995,
29879,
29908,
1273,
313,
307,
29875,
29918,
4537,
511,
11860,
29879,
29889,
608,
29889,
29873,
2593,
29908,
1273,
432,
511,
1539,
1338,
29922,
2527,
284,
29918,
1429,
29897,
13,
9651,
10153,
29889,
7620,
29918,
3027,
29898,
8513,
2433,
608,
742,
24221,
29922,
29900,
29892,
26688,
29922,
8516,
29892,
4802,
29873,
2593,
29922,
5574,
29897,
13,
4706,
1683,
29901,
13,
9651,
1596,
703,
8516,
310,
278,
1539,
1338,
4864,
297,
1539,
294,
4155,
934,
363,
6571,
1642,
4830,
29898,
29926,
876,
13,
9651,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
4706,
363,
301,
29892,
286,
297,
14319,
29898,
326,
29883,
29918,
562,
29889,
12719,
29918,
21134,
29892,
527,
29883,
29918,
562,
29889,
12719,
29918,
2527,
1338,
1125,
13,
9651,
10422,
353,
11860,
29879,
29889,
29873,
2593,
29908,
1273,
313,
29880,
29897,
13,
13,
9651,
396,
341,
14789,
341,
2544,
1964,
365,
2882,
6670,
7495,
341,
2544,
3035,
8254,
341,
2544,
1964,
23958,
29127,
13,
9651,
11915,
29918,
1643,
353,
301,
29889,
5451,
877,
29918,
29861,
29900,
1822,
21064,
580,
13,
9651,
11915,
353,
518,
6251,
363,
6251,
297,
11915,
21533,
565,
11915,
29918,
1643,
29889,
21064,
2141,
27382,
2541,
29898,
8269,
29897,
322,
11915,
21533,
29961,
8269,
3816,
29875,
29962,
4514,
13,
9651,
565,
7431,
29898,
2527,
284,
29897,
1275,
29871,
29896,
29901,
13,
18884,
565,
11915,
21533,
29961,
2527,
284,
29961,
29900,
29962,
3816,
29875,
5387,
13,
462,
1678,
10153,
353,
527,
29883,
29918,
562,
29889,
657,
29918,
3027,
29918,
13236,
29898,
9507,
29922,
359,
29889,
2084,
29889,
7122,
29898,
25721,
29892,
9507,
511,
1539,
1338,
11759,
29885,
2314,
13,
462,
1678,
10153,
29889,
7620,
29918,
3027,
29898,
8513,
2433,
608,
742,
24221,
29922,
29900,
29892,
26688,
29922,
8516,
29892,
4802,
29873,
2593,
29922,
8824,
29897,
13,
9651,
25342,
7431,
29898,
2527,
284,
29897,
1405,
29871,
29896,
29901,
13,
18884,
1596,
703,
8875,
11915,
756,
2999,
7087,
1476,
1642,
4830,
29898,
2527,
284,
29918,
1643,
876,
13,
9651,
25342,
7431,
4197,
6251,
363,
6251,
297,
11915,
21533,
565,
11915,
29918,
1643,
29889,
21064,
2141,
27382,
2541,
29898,
8269,
29897,
2314,
1275,
29871,
29900,
29901,
13,
18884,
1596,
703,
8875,
11915,
947,
451,
1863,
297,
1539,
294,
4155,
934,
1642,
4830,
29898,
2527,
284,
29918,
1643,
876,
13,
307,
29875,
29918,
1958,
29889,
5358,
580,
13,
2
] |
admin_tools_stats/utils.py | afkmamunbd/django-admin-tools-stats | 204 | 166850 | <reponame>afkmamunbd/django-admin-tools-stats
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (C) 2011-2014 Star2Billing S.L.
#
# The Initial Developer of the Original Code is
# <NAME> <<EMAIL>>
#
from django.contrib.auth.models import User
from django.test import TestCase, Client
from django.test.client import RequestFactory
import base64
import unittest
import inspect
def build_test_suite_from(test_cases):
"""Returns a single or group of unittest test suite(s) that's ready to be
run. The function expects a list of classes that are subclasses of
TestCase.
The function will search the module where each class resides and
build a test suite from that class and all subclasses of it.
"""
test_suites = []
for test_case in test_cases:
mod = __import__(test_case.__module__)
components = test_case.__module__.split('.')
for comp in components[1:]:
mod = getattr(mod, comp)
tests = []
for item in mod.__dict__.values():
if type(item) is type and issubclass(item, test_case):
tests.append(item)
test_suites.append(unittest.TestSuite(
map(unittest.TestLoader().loadTestsFromTestCase, tests)))
return unittest.TestSuite(test_suites)
class BaseAuthenticatedClient(TestCase):
"""Common Authentication"""
fixtures = ['auth_user']
def setUp(self):
"""To create admin user"""
self.client = Client()
self.user = User.objects.get(username='admin')
auth = '%s:%s' % ('admin', 'admin')
auth = 'Basic %s' % base64.encodestring(auth.encode('utf8'))
auth = auth.strip()
self.extra = {
'HTTP_AUTHORIZATION': auth,
}
try:
self.client.force_login(self.user)
except AttributeError: # Django < 1.8
login = self.client.login(username='admin', password='<PASSWORD>')
self.assertTrue(login)
self.factory = RequestFactory()
class Choice(object):
class __metaclass__(type):
def __init__(self, *args, **kwargs):
self._data = []
for name, value in inspect.getmembers(self):
if not name.startswith('_') and not inspect.ismethod(value):
if isinstance(value, tuple) and len(value) > 1:
data = value
else:
pieces = [x.capitalize() for x in name.split('_')]
data = (value, ' '.join(pieces))
self._data.append(data)
setattr(self, name, data[0])
self._hash = dict(self._data)
def __iter__(self):
for value, data in self._data:
yield value, data
@classmethod
def get_value(self, key):
return self._hash[key]
| [
1,
529,
276,
1112,
420,
29958,
2142,
8848,
314,
348,
6448,
29914,
14095,
29899,
6406,
29899,
8504,
29899,
16202,
13,
29937,
13,
29937,
910,
7562,
5920,
3812,
338,
4967,
304,
278,
4958,
310,
278,
18129,
2911,
5236,
13,
29937,
19245,
29892,
325,
29889,
29871,
29906,
29889,
29900,
29889,
960,
263,
3509,
310,
278,
341,
7390,
471,
451,
13235,
411,
445,
934,
29892,
13,
29937,
887,
508,
4017,
697,
472,
1732,
597,
13025,
29889,
990,
29914,
3580,
29931,
29914,
29906,
29889,
29900,
6294,
13,
29937,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29896,
29899,
29906,
29900,
29896,
29946,
7828,
29906,
29933,
8873,
317,
29889,
29931,
29889,
13,
29937,
13,
29937,
450,
17250,
10682,
261,
310,
278,
8533,
5920,
338,
13,
29937,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
29937,
13,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9794,
1053,
4911,
13,
3166,
9557,
29889,
1688,
1053,
4321,
8259,
29892,
12477,
13,
3166,
9557,
29889,
1688,
29889,
4645,
1053,
10729,
5126,
13,
5215,
2967,
29953,
29946,
13,
5215,
443,
27958,
13,
5215,
16096,
13,
13,
13,
1753,
2048,
29918,
1688,
29918,
13495,
29918,
3166,
29898,
1688,
29918,
11436,
1125,
13,
1678,
9995,
11609,
29879,
263,
2323,
470,
2318,
310,
443,
27958,
1243,
9460,
29898,
29879,
29897,
393,
29915,
29879,
7960,
304,
367,
13,
1678,
1065,
29889,
450,
740,
23347,
263,
1051,
310,
4413,
393,
526,
1014,
13203,
310,
13,
1678,
4321,
8259,
29889,
13,
13,
1678,
450,
740,
674,
2740,
278,
3883,
988,
1269,
770,
620,
2247,
322,
13,
1678,
2048,
263,
1243,
9460,
515,
393,
770,
322,
599,
1014,
13203,
310,
372,
29889,
13,
1678,
9995,
13,
1678,
1243,
29918,
2146,
3246,
353,
5159,
13,
1678,
363,
1243,
29918,
4878,
297,
1243,
29918,
11436,
29901,
13,
4706,
878,
353,
4770,
5215,
12035,
1688,
29918,
4878,
17255,
5453,
1649,
29897,
13,
4706,
7117,
353,
1243,
29918,
4878,
17255,
5453,
26914,
5451,
12839,
1495,
13,
4706,
363,
752,
297,
7117,
29961,
29896,
29901,
5387,
13,
9651,
878,
353,
679,
5552,
29898,
1545,
29892,
752,
29897,
13,
4706,
6987,
353,
5159,
13,
4706,
363,
2944,
297,
878,
17255,
8977,
26914,
5975,
7295,
13,
9651,
565,
1134,
29898,
667,
29897,
338,
1134,
322,
338,
1491,
1990,
29898,
667,
29892,
1243,
29918,
4878,
1125,
13,
18884,
6987,
29889,
4397,
29898,
667,
29897,
13,
4706,
1243,
29918,
2146,
3246,
29889,
4397,
29898,
348,
27958,
29889,
3057,
5091,
568,
29898,
13,
9651,
2910,
29898,
348,
27958,
29889,
3057,
10036,
2141,
1359,
24376,
4591,
3057,
8259,
29892,
6987,
4961,
13,
13,
1678,
736,
443,
27958,
29889,
3057,
5091,
568,
29898,
1688,
29918,
2146,
3246,
29897,
13,
13,
13,
1990,
7399,
6444,
4173,
630,
4032,
29898,
3057,
8259,
1125,
13,
1678,
9995,
18877,
27241,
15945,
29908,
13,
1678,
5713,
486,
1973,
353,
6024,
5150,
29918,
1792,
2033,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
9995,
1762,
1653,
4113,
1404,
15945,
29908,
13,
4706,
1583,
29889,
4645,
353,
12477,
580,
13,
4706,
1583,
29889,
1792,
353,
4911,
29889,
12650,
29889,
657,
29898,
6786,
2433,
6406,
1495,
13,
4706,
4817,
353,
14210,
29879,
16664,
29879,
29915,
1273,
6702,
6406,
742,
525,
6406,
1495,
13,
4706,
4817,
353,
525,
16616,
1273,
29879,
29915,
1273,
2967,
29953,
29946,
29889,
3977,
397,
342,
5393,
29898,
5150,
29889,
12508,
877,
9420,
29947,
8785,
13,
4706,
4817,
353,
4817,
29889,
17010,
580,
13,
4706,
1583,
29889,
17833,
353,
426,
13,
9651,
525,
10493,
29918,
20656,
29950,
1955,
26664,
8098,
2396,
4817,
29892,
13,
4706,
500,
13,
4706,
1018,
29901,
13,
9651,
1583,
29889,
4645,
29889,
10118,
29918,
7507,
29898,
1311,
29889,
1792,
29897,
13,
4706,
5174,
23833,
2392,
29901,
29871,
396,
15337,
529,
29871,
29896,
29889,
29947,
13,
9651,
6464,
353,
1583,
29889,
4645,
29889,
7507,
29898,
6786,
2433,
6406,
742,
4800,
2433,
29966,
25711,
17013,
29958,
1495,
13,
9651,
1583,
29889,
9294,
5574,
29898,
7507,
29897,
13,
13,
4706,
1583,
29889,
14399,
353,
10729,
5126,
580,
13,
13,
13,
1990,
14542,
625,
29898,
3318,
1125,
13,
13,
1678,
770,
4770,
2527,
562,
605,
12035,
1853,
1125,
13,
4706,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
9651,
1583,
3032,
1272,
353,
5159,
13,
9651,
363,
1024,
29892,
995,
297,
16096,
29889,
657,
28109,
29898,
1311,
1125,
13,
18884,
565,
451,
1024,
29889,
27382,
2541,
877,
29918,
1495,
322,
451,
16096,
29889,
1608,
959,
29898,
1767,
1125,
13,
462,
1678,
565,
338,
8758,
29898,
1767,
29892,
18761,
29897,
322,
7431,
29898,
1767,
29897,
1405,
29871,
29896,
29901,
13,
462,
4706,
848,
353,
995,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
12785,
353,
518,
29916,
29889,
5030,
2410,
675,
580,
363,
921,
297,
1024,
29889,
5451,
877,
29918,
1495,
29962,
13,
462,
4706,
848,
353,
313,
1767,
29892,
525,
15300,
7122,
29898,
12343,
778,
876,
13,
462,
1678,
1583,
3032,
1272,
29889,
4397,
29898,
1272,
29897,
13,
462,
1678,
731,
5552,
29898,
1311,
29892,
1024,
29892,
848,
29961,
29900,
2314,
13,
13,
9651,
1583,
3032,
8568,
353,
9657,
29898,
1311,
3032,
1272,
29897,
13,
13,
4706,
822,
4770,
1524,
12035,
1311,
1125,
13,
9651,
363,
995,
29892,
848,
297,
1583,
3032,
1272,
29901,
13,
18884,
7709,
995,
29892,
848,
13,
13,
4706,
732,
1990,
5696,
13,
4706,
822,
679,
29918,
1767,
29898,
1311,
29892,
1820,
1125,
13,
9651,
736,
1583,
3032,
8568,
29961,
1989,
29962,
13,
2
] |
python/re-group-groups.py | gajubadge11/HackerRank-1 | 340 | 160128 | #!/usr/bin/env python3
import re
if __name__ == "__main__":
string = input()
match = re.search(r'([a-zA-Z0-9])\1+', string)
print(match.group(1) if match else -1)
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
5215,
337,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1347,
353,
1881,
580,
13,
268,
13,
1678,
1993,
353,
337,
29889,
4478,
29898,
29878,
29915,
4197,
29874,
29899,
25265,
29899,
29999,
29900,
29899,
29929,
29962,
2144,
29896,
29974,
742,
1347,
29897,
13,
268,
13,
1678,
1596,
29898,
4352,
29889,
2972,
29898,
29896,
29897,
565,
1993,
1683,
448,
29896,
29897,
13,
268,
2
] |
startup/20-diagon.py | mrakitin/profile_collection-six | 0 | 73522 | <filename>startup/20-diagon.py<gh_stars>0
from ophyd import Device, EpicsMotor
from ophyd import Component as Cpt
class DIAGON(Device):
hml = Cpt(EpicsMotor, '_HLPM}Mtr')
hyag = Cpt(EpicsMotor, '_HLPF}Mtr')
vml = Cpt(EpicsMotor, '_VLPM}Mtr')
vyag = Cpt(EpicsMotor, '_VLPF}Mtr')
diagon = DIAGON('XF:02IDA-OP{Diag:1-Ax:3', name='diagon')
| [
1,
529,
9507,
29958,
2962,
786,
29914,
29906,
29900,
29899,
6051,
12841,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
288,
561,
2941,
1053,
21830,
29892,
14055,
1199,
29924,
327,
272,
13,
3166,
288,
561,
2941,
1053,
15924,
408,
315,
415,
13,
13,
13,
1990,
22471,
10051,
1164,
29898,
11501,
1125,
13,
1678,
298,
828,
353,
315,
415,
29898,
29923,
29886,
1199,
29924,
327,
272,
29892,
22868,
29950,
13208,
29924,
29913,
29924,
509,
1495,
13,
1678,
7498,
351,
353,
315,
415,
29898,
29923,
29886,
1199,
29924,
327,
272,
29892,
22868,
29950,
13208,
29943,
29913,
29924,
509,
1495,
13,
1678,
325,
828,
353,
315,
415,
29898,
29923,
29886,
1199,
29924,
327,
272,
29892,
22868,
29963,
13208,
29924,
29913,
29924,
509,
1495,
13,
1678,
10195,
351,
353,
315,
415,
29898,
29923,
29886,
1199,
29924,
327,
272,
29892,
22868,
29963,
13208,
29943,
29913,
29924,
509,
1495,
268,
13,
268,
13,
6051,
12841,
353,
22471,
10051,
1164,
877,
29990,
29943,
29901,
29900,
29906,
1367,
29909,
29899,
4590,
29912,
12130,
351,
29901,
29896,
29899,
29909,
29916,
29901,
29941,
742,
1024,
2433,
6051,
12841,
1495,
13,
2
] |
tests/integration/Story.py | marqov/storyscript | 1 | 153294 | # -*- coding: utf-8 -*-
from io import StringIO
from storyscript.Story import Story
def test_story_from_stream():
stream = StringIO('x = 0')
story = Story.from_stream(stream)
assert story.story == 'x = 0'
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
12013,
1053,
1714,
5971,
13,
13,
3166,
5828,
2154,
29889,
29359,
1053,
13740,
13,
13,
13,
1753,
1243,
29918,
24098,
29918,
3166,
29918,
5461,
7295,
13,
1678,
4840,
353,
1714,
5971,
877,
29916,
353,
29871,
29900,
1495,
13,
1678,
5828,
353,
13740,
29889,
3166,
29918,
5461,
29898,
5461,
29897,
13,
1678,
4974,
5828,
29889,
24098,
1275,
525,
29916,
353,
29871,
29900,
29915,
13,
2
] |
setup.py | stb-tester/stbt-rig | 0 | 178835 | # coding: utf-8
import setuptools
long_description = """\
# stbt_rig
Command-line tool & library for interacting with the Stb-tester Portal's [REST
API].
For more details see [IDE Configuration] in the Stb-tester manual.
[IDE Configuration]: https://stb-tester.com/manual/ide-configuration
[REST API]: https://stb-tester.com/manual/rest-api-v2
"""
setuptools.setup(
name="stbt_rig",
version="2.0.2",
author="<EMAIL>.",
author_email="<EMAIL>",
description="Library for interacting with the Stb-tester Portal's REST API",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/stb-tester/stbt-rig",
py_modules=["stbt_rig"],
entry_points={
"console_scripts": [
"stbt_rig=stbt_rig:main",
],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development :: Testing",
],
# I have only tested Python 2.7 & 3.6
python_requires=">=2.7",
install_requires=[
"keyring",
"requests",
],
)
| [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
13,
5215,
731,
21245,
8789,
13,
13,
13,
5426,
29918,
8216,
353,
9995,
29905,
13,
29937,
380,
3116,
29918,
8966,
13,
13,
6255,
29899,
1220,
5780,
669,
3489,
363,
16254,
292,
411,
278,
624,
29890,
29899,
1688,
261,
28612,
29915,
29879,
518,
1525,
1254,
13,
8787,
1822,
13,
13,
2831,
901,
4902,
1074,
518,
22027,
20999,
29962,
297,
278,
624,
29890,
29899,
1688,
261,
12219,
29889,
13,
13,
29961,
22027,
20999,
5387,
2045,
597,
303,
29890,
29899,
1688,
261,
29889,
510,
29914,
11288,
29914,
680,
29899,
13305,
13,
29961,
1525,
1254,
3450,
5387,
2045,
597,
303,
29890,
29899,
1688,
261,
29889,
510,
29914,
11288,
29914,
5060,
29899,
2754,
29899,
29894,
29906,
13,
15945,
29908,
13,
13,
842,
21245,
8789,
29889,
14669,
29898,
13,
1678,
1024,
543,
303,
3116,
29918,
8966,
613,
13,
1678,
1873,
543,
29906,
29889,
29900,
29889,
29906,
613,
13,
1678,
4148,
543,
29966,
26862,
6227,
15513,
613,
13,
1678,
4148,
29918,
5269,
543,
29966,
26862,
6227,
28341,
13,
1678,
6139,
543,
12284,
363,
16254,
292,
411,
278,
624,
29890,
29899,
1688,
261,
28612,
29915,
29879,
16759,
3450,
613,
13,
1678,
1472,
29918,
8216,
29922,
5426,
29918,
8216,
29892,
13,
1678,
1472,
29918,
8216,
29918,
3051,
29918,
1853,
543,
726,
29914,
3502,
3204,
613,
13,
1678,
3142,
543,
991,
597,
3292,
29889,
510,
29914,
303,
29890,
29899,
1688,
261,
29914,
303,
3116,
29899,
8966,
613,
13,
1678,
11451,
29918,
7576,
29922,
3366,
303,
3116,
29918,
8966,
12436,
13,
1678,
6251,
29918,
9748,
3790,
13,
4706,
376,
11058,
29918,
16713,
1115,
518,
13,
9651,
376,
303,
3116,
29918,
8966,
29922,
303,
3116,
29918,
8966,
29901,
3396,
613,
13,
4706,
21251,
13,
1678,
2981,
13,
1678,
770,
14903,
11759,
13,
4706,
376,
21956,
358,
16034,
4761,
29871,
29945,
448,
19561,
29914,
855,
519,
613,
13,
4706,
376,
29931,
293,
1947,
4761,
438,
5425,
28268,
1490,
4761,
341,
1806,
19245,
613,
13,
4706,
376,
7094,
1218,
2184,
4761,
6570,
25266,
613,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29906,
29889,
29955,
613,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
29889,
29953,
613,
13,
4706,
376,
7031,
293,
4761,
18540,
14650,
4761,
4321,
292,
613,
13,
1678,
21251,
13,
1678,
396,
306,
505,
871,
9528,
5132,
29871,
29906,
29889,
29955,
669,
29871,
29941,
29889,
29953,
13,
1678,
3017,
29918,
276,
339,
2658,
543,
18572,
29906,
29889,
29955,
613,
13,
1678,
2601,
29918,
276,
339,
2658,
11759,
13,
4706,
376,
1989,
5393,
613,
13,
4706,
376,
24830,
613,
13,
1678,
21251,
13,
29897,
13,
2
] |
claim_frags.py | mattharris/adfs-tools | 0 | 190197 | #! /usr/bin/python
import sys
from objects import Map
from utils import find_map
fd = open("Loader", "r")
fd.seek(0,2)
loader_len = fd.tell()
fd.close()
print "Loader is {0} bytes long.".format(loader_len)
if len(sys.argv) != 2:
print("Usage: claim_frags <device>")
exit(1)
fd = open(sys.argv[1], "r+b")
map_address, map_length = find_map(fd)
fd.seek(map_address)
fs_map = Map(fd.read(map_length))
loader_start = (fs_map.disc_record.idlen+1) * fs_map.disc_record.bpmb
bits_needed = loader_len / fs_map.disc_record.bpmb
start_bit = loader_start / fs_map.disc_record.bpmb
last_bit = start_bit + bits_needed
while start_bit * fs_map.disc_record.bpmb < loader_start:
start_bit += 1
while bits_needed * fs_map.disc_record.bpmb < loader_len:
bits_needed += 1
print "{0} map bits required for loader, from bit {1} to {2}.".format(bits_needed,start_bit,last_bit)
zone = 0
while True:
zone_start, zone_end = fs_map.zone_range(zone)
first_in_zone = zone_start
last_in_zone = zone_end
if zone_start < start_bit:
first_in_zone = start_bit
if last_bit < last_in_zone:
last_in_zone = last_bit
#note = ""
#if first_in_zone > zone_start:
# note = " ** {0} bits not used at start of zone".format(first_in_zone-zone_start)
#if last_in_zone < zone_end:
# note = " ** {0} bits not used at end of zone".format(zone_end-last_in_zone)
#print "Zone {0} - bits {1} to {2}{3}".format(zone,first_in_zone,last_in_zone,note)
#print zone_start
fs_map.allocate(zone, 3, first_in_zone-zone_start, last_in_zone-zone_start)
if zone_end > last_bit:
break
zone += 1
fd.seek(map_address)
fd.write(fs_map.data.tostring())
| [
1,
396,
29991,
847,
4855,
29914,
2109,
29914,
4691,
13,
13,
5215,
10876,
13,
3166,
3618,
1053,
7315,
13,
3166,
3667,
29879,
1053,
1284,
29918,
1958,
13,
13,
11512,
353,
1722,
703,
10036,
613,
376,
29878,
1159,
13,
11512,
29889,
344,
1416,
29898,
29900,
29892,
29906,
29897,
13,
12657,
29918,
2435,
353,
285,
29881,
29889,
29873,
514,
580,
13,
11512,
29889,
5358,
580,
13,
13,
2158,
376,
10036,
338,
426,
29900,
29913,
6262,
1472,
1213,
29889,
4830,
29898,
12657,
29918,
2435,
29897,
13,
13,
361,
7431,
29898,
9675,
29889,
19218,
29897,
2804,
29871,
29906,
29901,
13,
1678,
1596,
703,
27573,
29901,
5995,
29918,
29888,
1431,
29879,
529,
10141,
29958,
1159,
13,
1678,
6876,
29898,
29896,
29897,
13,
13,
11512,
353,
1722,
29898,
9675,
29889,
19218,
29961,
29896,
1402,
376,
29878,
29974,
29890,
1159,
13,
1958,
29918,
7328,
29892,
2910,
29918,
2848,
353,
1284,
29918,
1958,
29898,
11512,
29897,
13,
11512,
29889,
344,
1416,
29898,
1958,
29918,
7328,
29897,
13,
5847,
29918,
1958,
353,
7315,
29898,
11512,
29889,
949,
29898,
1958,
29918,
2848,
876,
13,
13,
12657,
29918,
2962,
353,
313,
5847,
29918,
1958,
29889,
2218,
29883,
29918,
11651,
29889,
333,
2435,
29974,
29896,
29897,
334,
18920,
29918,
1958,
29889,
2218,
29883,
29918,
11651,
29889,
29890,
3358,
29890,
13,
13,
14836,
29918,
484,
19226,
353,
23466,
29918,
2435,
259,
847,
18920,
29918,
1958,
29889,
2218,
29883,
29918,
11651,
29889,
29890,
3358,
29890,
13,
2962,
29918,
2966,
259,
353,
23466,
29918,
2962,
847,
18920,
29918,
1958,
29889,
2218,
29883,
29918,
11651,
29889,
29890,
3358,
29890,
13,
4230,
29918,
2966,
1678,
353,
1369,
29918,
2966,
718,
9978,
29918,
484,
19226,
13,
13,
8000,
1369,
29918,
2966,
334,
18920,
29918,
1958,
29889,
2218,
29883,
29918,
11651,
29889,
29890,
3358,
29890,
529,
23466,
29918,
2962,
29901,
13,
1678,
1369,
29918,
2966,
4619,
29871,
29896,
13,
13,
8000,
9978,
29918,
484,
19226,
334,
18920,
29918,
1958,
29889,
2218,
29883,
29918,
11651,
29889,
29890,
3358,
29890,
529,
23466,
29918,
2435,
29901,
13,
1678,
9978,
29918,
484,
19226,
4619,
29871,
29896,
13,
13,
2158,
29850,
29900,
29913,
2910,
9978,
3734,
363,
23466,
29892,
515,
2586,
426,
29896,
29913,
304,
426,
29906,
29913,
1213,
29889,
4830,
29898,
14836,
29918,
484,
19226,
29892,
2962,
29918,
2966,
29892,
4230,
29918,
2966,
29897,
13,
13,
8028,
353,
29871,
29900,
13,
13,
8000,
5852,
29901,
13,
1678,
10640,
29918,
2962,
29892,
10640,
29918,
355,
353,
18920,
29918,
1958,
29889,
8028,
29918,
3881,
29898,
8028,
29897,
13,
13,
1678,
937,
29918,
262,
29918,
8028,
353,
10640,
29918,
2962,
13,
1678,
1833,
29918,
262,
29918,
8028,
29871,
353,
10640,
29918,
355,
13,
13,
1678,
565,
10640,
29918,
2962,
529,
1369,
29918,
2966,
29901,
13,
4706,
937,
29918,
262,
29918,
8028,
353,
1369,
29918,
2966,
13,
13,
1678,
565,
1833,
29918,
2966,
529,
1833,
29918,
262,
29918,
8028,
29901,
13,
4706,
1833,
29918,
262,
29918,
8028,
353,
1833,
29918,
2966,
13,
13,
1678,
396,
6812,
353,
5124,
13,
1678,
396,
361,
937,
29918,
262,
29918,
8028,
1405,
10640,
29918,
2962,
29901,
13,
1678,
396,
259,
4443,
353,
376,
3579,
426,
29900,
29913,
9978,
451,
1304,
472,
1369,
310,
10640,
1642,
4830,
29898,
4102,
29918,
262,
29918,
8028,
29899,
8028,
29918,
2962,
29897,
13,
13,
1678,
396,
361,
1833,
29918,
262,
29918,
8028,
529,
10640,
29918,
355,
29901,
13,
1678,
396,
259,
4443,
353,
376,
3579,
426,
29900,
29913,
9978,
451,
1304,
472,
1095,
310,
10640,
1642,
4830,
29898,
8028,
29918,
355,
29899,
4230,
29918,
262,
29918,
8028,
29897,
13,
13,
1678,
396,
2158,
376,
18482,
426,
29900,
29913,
448,
9978,
426,
29896,
29913,
304,
426,
29906,
1157,
29941,
29913,
1642,
4830,
29898,
8028,
29892,
4102,
29918,
262,
29918,
8028,
29892,
4230,
29918,
262,
29918,
8028,
29892,
6812,
29897,
13,
1678,
396,
2158,
10640,
29918,
2962,
13,
13,
1678,
18920,
29918,
1958,
29889,
15956,
403,
29898,
8028,
29892,
29871,
29941,
29892,
937,
29918,
262,
29918,
8028,
29899,
8028,
29918,
2962,
29892,
1833,
29918,
262,
29918,
8028,
29899,
8028,
29918,
2962,
29897,
13,
13,
1678,
565,
10640,
29918,
355,
1405,
1833,
29918,
2966,
29901,
13,
4706,
2867,
13,
13,
1678,
10640,
4619,
29871,
29896,
13,
13,
11512,
29889,
344,
1416,
29898,
1958,
29918,
7328,
29897,
13,
11512,
29889,
3539,
29898,
5847,
29918,
1958,
29889,
1272,
29889,
517,
1807,
3101,
13,
13,
2
] |
setup.py | rionehome/face_predictor | 0 | 1610270 | <reponame>rionehome/face_predictor<filename>setup.py<gh_stars>0
import os
from setuptools import setup
package_name = 'face_predictor'
def create_install_files(paths: list):
target_data_files = [('share/ament_index/resource_index/packages', ['resource/' + package_name]),
('share/' + package_name, ['package.xml'])]
for path in paths:
for root, dirs, files in os.walk(path):
print(root)
target_data_files.append(('lib/{}/{}'.format(package_name, root), []))
for file in files:
print('{}/{}'.format(root, file))
target_data_files[-1][1].append('{}/{}'.format(root, file))
return target_data_files
# print(create_install_files(['vision', 'models']))
setup(
name=package_name,
version='0.0.0',
packages=[],
py_modules=[
'face_predictor.script',
],
data_files=[('share/ament_index/resource_index/packages', ['resource/face_predictor']),
('share/face_predictor', ['package.xml']),
('share/face_predictor/yaml', ['yaml/face_predictor.yaml']),
('lib/face_predictor/vision', ['vision/__init__.py']),
('share/' + package_name, ['launch/face_predictor.launch.py']),
('lib/face_predictor/vision/utils', ['vision/utils/__init__.py',
'vision/utils/misc.py',
'vision/utils/box_utils.py',
'vision/utils/box_utils_numpy.py']),
('lib/face_predictor/vision/transforms', ['vision/transforms/__init__.py',
'vision/transforms/transforms.py']),
('lib/face_predictor/vision/ssd', ['vision/ssd/data_preprocessing.py',
'vision/ssd/__init__.py',
'vision/ssd/mb_tiny_fd.py',
'vision/ssd/ssd.py',
'vision/ssd/predictor.py',
'vision/ssd/mb_tiny_RFB_fd.py']),
('lib/face_predictor/vision/ssd/config', ['vision/ssd/config/__init__.py',
'vision/ssd/config/fd_config.py']),
('lib/face_predictor/vision/nn', ['vision/nn/__init__.py',
'vision/nn/multibox_loss.py',
'vision/nn/mb_tiny_RFB.py',
'vision/nn/mb_tiny.py']),
('lib/face_predictor/vision/datasets', ['vision/datasets/voc_dataset.py',
'vision/datasets/__init__.py']),
('lib/face_predictor/models', ['models/voc-model-labels.txt', 'models/readme']),
('lib/face_predictor/models/pretrained', ['models/pretrained/version-RFB-320.pth',
'models/pretrained/version-slim-320.pth',
'models/pretrained/version-RFB-640.pth',
'models/pretrained/version-slim-640.pth']),
('lib/face_predictor/models/onnx', ['models/onnx/version-slim-320.onnx',
'models/onnx/version-RFB-320.onnx',
'models/onnx/version-RFB-320_ncnn_slim.onnx',
'models/onnx/version-RFB-320_without_postprocessing.onnx',
'models/onnx/version-slim-320_without_postprocessing.onnx',
'models/onnx/version-slim-320_ncnn_slim.onnx']),
],
install_requires=['setuptools'],
zip_safe=True,
maintainer='hirorittsu',
maintainer_email='<EMAIL>',
description='TODO: Package description',
license='TODO: License declaration',
tests_require=['pytest'],
entry_points={
'console_scripts': [
'face_predictor = face_predictor.script:main'
],
},
)
| [
1,
529,
276,
1112,
420,
29958,
29878,
1421,
5184,
29914,
2161,
29918,
27711,
272,
29966,
9507,
29958,
14669,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2897,
13,
13,
3166,
731,
21245,
8789,
1053,
6230,
13,
13,
5113,
29918,
978,
353,
525,
2161,
29918,
27711,
272,
29915,
13,
13,
13,
1753,
1653,
29918,
6252,
29918,
5325,
29898,
24772,
29901,
1051,
1125,
13,
1678,
3646,
29918,
1272,
29918,
5325,
353,
518,
877,
13653,
29914,
1166,
29918,
2248,
29914,
10314,
29918,
2248,
29914,
8318,
742,
6024,
10314,
22208,
718,
3577,
29918,
978,
11724,
13,
462,
308,
6702,
13653,
22208,
718,
3577,
29918,
978,
29892,
6024,
5113,
29889,
3134,
2033,
4638,
13,
13,
1678,
363,
2224,
297,
10898,
29901,
13,
4706,
363,
3876,
29892,
4516,
29879,
29892,
2066,
297,
2897,
29889,
20919,
29898,
2084,
1125,
13,
9651,
1596,
29898,
4632,
29897,
13,
9651,
3646,
29918,
1272,
29918,
5325,
29889,
4397,
29898,
877,
1982,
19248,
6822,
8875,
4286,
4830,
29898,
5113,
29918,
978,
29892,
3876,
511,
5159,
876,
13,
9651,
363,
934,
297,
2066,
29901,
13,
18884,
1596,
877,
29912,
6822,
8875,
4286,
4830,
29898,
4632,
29892,
934,
876,
13,
18884,
3646,
29918,
1272,
29918,
5325,
14352,
29896,
3816,
29896,
1822,
4397,
877,
29912,
6822,
8875,
4286,
4830,
29898,
4632,
29892,
934,
876,
13,
1678,
736,
3646,
29918,
1272,
29918,
5325,
13,
13,
13,
29937,
1596,
29898,
3258,
29918,
6252,
29918,
5325,
18959,
4924,
742,
525,
9794,
25901,
13,
13,
14669,
29898,
13,
1678,
1024,
29922,
5113,
29918,
978,
29892,
13,
1678,
1873,
2433,
29900,
29889,
29900,
29889,
29900,
742,
13,
1678,
9741,
11759,
1402,
13,
1678,
11451,
29918,
7576,
11759,
13,
4706,
525,
2161,
29918,
27711,
272,
29889,
2154,
742,
13,
1678,
21251,
13,
1678,
848,
29918,
5325,
11759,
877,
13653,
29914,
1166,
29918,
2248,
29914,
10314,
29918,
2248,
29914,
8318,
742,
6024,
10314,
29914,
2161,
29918,
27711,
272,
2033,
511,
13,
18884,
6702,
13653,
29914,
2161,
29918,
27711,
272,
742,
6024,
5113,
29889,
3134,
2033,
511,
13,
18884,
6702,
13653,
29914,
2161,
29918,
27711,
272,
29914,
25162,
742,
6024,
25162,
29914,
2161,
29918,
27711,
272,
29889,
25162,
2033,
511,
13,
18884,
6702,
1982,
29914,
2161,
29918,
27711,
272,
29914,
4924,
742,
6024,
4924,
29914,
1649,
2344,
26914,
2272,
2033,
511,
13,
18884,
6702,
13653,
22208,
718,
3577,
29918,
978,
29892,
6024,
15343,
29914,
2161,
29918,
27711,
272,
29889,
15343,
29889,
2272,
2033,
511,
13,
18884,
6702,
1982,
29914,
2161,
29918,
27711,
272,
29914,
4924,
29914,
13239,
742,
6024,
4924,
29914,
13239,
29914,
1649,
2344,
26914,
2272,
742,
13,
462,
462,
462,
268,
525,
4924,
29914,
13239,
29914,
29885,
10669,
29889,
2272,
742,
13,
462,
462,
462,
268,
525,
4924,
29914,
13239,
29914,
1884,
29918,
13239,
29889,
2272,
742,
13,
462,
462,
462,
268,
525,
4924,
29914,
13239,
29914,
1884,
29918,
13239,
29918,
23749,
29889,
2272,
2033,
511,
13,
18884,
6702,
1982,
29914,
2161,
29918,
27711,
272,
29914,
4924,
29914,
9067,
29879,
742,
6024,
4924,
29914,
9067,
29879,
29914,
1649,
2344,
26914,
2272,
742,
13,
462,
462,
462,
3986,
525,
4924,
29914,
9067,
29879,
29914,
9067,
29879,
29889,
2272,
2033,
511,
13,
18884,
6702,
1982,
29914,
2161,
29918,
27711,
272,
29914,
4924,
29914,
893,
29881,
742,
6024,
4924,
29914,
893,
29881,
29914,
1272,
29918,
1457,
19170,
29889,
2272,
742,
13,
462,
462,
462,
259,
525,
4924,
29914,
893,
29881,
29914,
1649,
2344,
26914,
2272,
742,
13,
462,
462,
462,
259,
525,
4924,
29914,
893,
29881,
29914,
8337,
29918,
25649,
29918,
11512,
29889,
2272,
742,
13,
462,
462,
462,
259,
525,
4924,
29914,
893,
29881,
29914,
893,
29881,
29889,
2272,
742,
13,
462,
462,
462,
259,
525,
4924,
29914,
893,
29881,
29914,
27711,
272,
29889,
2272,
742,
13,
462,
462,
462,
259,
525,
4924,
29914,
893,
29881,
29914,
8337,
29918,
25649,
29918,
29934,
18426,
29918,
11512,
29889,
2272,
2033,
511,
13,
18884,
6702,
1982,
29914,
2161,
29918,
27711,
272,
29914,
4924,
29914,
893,
29881,
29914,
2917,
742,
6024,
4924,
29914,
893,
29881,
29914,
2917,
29914,
1649,
2344,
26914,
2272,
742,
13,
462,
462,
462,
3986,
525,
4924,
29914,
893,
29881,
29914,
2917,
29914,
11512,
29918,
2917,
29889,
2272,
2033,
511,
13,
18884,
6702,
1982,
29914,
2161,
29918,
27711,
272,
29914,
4924,
29914,
15755,
742,
6024,
4924,
29914,
15755,
29914,
1649,
2344,
26914,
2272,
742,
13,
462,
462,
462,
29871,
525,
4924,
29914,
15755,
29914,
4713,
747,
2251,
29918,
6758,
29889,
2272,
742,
13,
462,
462,
462,
29871,
525,
4924,
29914,
15755,
29914,
8337,
29918,
25649,
29918,
29934,
18426,
29889,
2272,
742,
13,
462,
462,
462,
29871,
525,
4924,
29914,
15755,
29914,
8337,
29918,
25649,
29889,
2272,
2033,
511,
13,
18884,
6702,
1982,
29914,
2161,
29918,
27711,
272,
29914,
4924,
29914,
14538,
1691,
742,
6024,
4924,
29914,
14538,
1691,
29914,
29894,
542,
29918,
24713,
29889,
2272,
742,
13,
462,
462,
462,
4706,
525,
4924,
29914,
14538,
1691,
29914,
1649,
2344,
26914,
2272,
2033,
511,
13,
18884,
6702,
1982,
29914,
2161,
29918,
27711,
272,
29914,
9794,
742,
6024,
9794,
29914,
29894,
542,
29899,
4299,
29899,
21134,
29889,
3945,
742,
525,
9794,
29914,
949,
1004,
2033,
511,
13,
18884,
6702,
1982,
29914,
2161,
29918,
27711,
272,
29914,
9794,
29914,
1457,
3018,
1312,
742,
6024,
9794,
29914,
1457,
3018,
1312,
29914,
3259,
29899,
29934,
18426,
29899,
29941,
29906,
29900,
29889,
29886,
386,
742,
13,
462,
462,
462,
3986,
525,
9794,
29914,
1457,
3018,
1312,
29914,
3259,
29899,
2536,
326,
29899,
29941,
29906,
29900,
29889,
29886,
386,
742,
13,
462,
462,
462,
3986,
525,
9794,
29914,
1457,
3018,
1312,
29914,
3259,
29899,
29934,
18426,
29899,
29953,
29946,
29900,
29889,
29886,
386,
742,
13,
462,
462,
462,
3986,
525,
9794,
29914,
1457,
3018,
1312,
29914,
3259,
29899,
2536,
326,
29899,
29953,
29946,
29900,
29889,
29886,
386,
2033,
511,
13,
18884,
6702,
1982,
29914,
2161,
29918,
27711,
272,
29914,
9794,
29914,
3409,
29916,
742,
6024,
9794,
29914,
3409,
29916,
29914,
3259,
29899,
2536,
326,
29899,
29941,
29906,
29900,
29889,
3409,
29916,
742,
13,
462,
462,
462,
1678,
525,
9794,
29914,
3409,
29916,
29914,
3259,
29899,
29934,
18426,
29899,
29941,
29906,
29900,
29889,
3409,
29916,
742,
13,
462,
462,
462,
1678,
525,
9794,
29914,
3409,
29916,
29914,
3259,
29899,
29934,
18426,
29899,
29941,
29906,
29900,
29918,
17608,
15755,
29918,
2536,
326,
29889,
3409,
29916,
742,
13,
462,
462,
462,
1678,
525,
9794,
29914,
3409,
29916,
29914,
3259,
29899,
29934,
18426,
29899,
29941,
29906,
29900,
29918,
14037,
29918,
2490,
19170,
29889,
3409,
29916,
742,
13,
462,
462,
462,
1678,
525,
9794,
29914,
3409,
29916,
29914,
3259,
29899,
2536,
326,
29899,
29941,
29906,
29900,
29918,
14037,
29918,
2490,
19170,
29889,
3409,
29916,
742,
13,
462,
462,
462,
1678,
525,
9794,
29914,
3409,
29916,
29914,
3259,
29899,
2536,
326,
29899,
29941,
29906,
29900,
29918,
17608,
15755,
29918,
2536,
326,
29889,
3409,
29916,
2033,
511,
13,
18884,
21251,
13,
1678,
2601,
29918,
276,
339,
2658,
29922,
1839,
842,
21245,
8789,
7464,
13,
1678,
14319,
29918,
11177,
29922,
5574,
29892,
13,
1678,
7344,
261,
2433,
29882,
381,
272,
986,
2146,
742,
13,
1678,
7344,
261,
29918,
5269,
2433,
29966,
26862,
6227,
29958,
742,
13,
1678,
6139,
2433,
4986,
3970,
29901,
22029,
6139,
742,
13,
1678,
19405,
2433,
4986,
3970,
29901,
19245,
12029,
742,
13,
1678,
6987,
29918,
12277,
29922,
1839,
2272,
1688,
7464,
13,
1678,
6251,
29918,
9748,
3790,
13,
4706,
525,
11058,
29918,
16713,
2396,
518,
13,
9651,
525,
2161,
29918,
27711,
272,
353,
3700,
29918,
27711,
272,
29889,
2154,
29901,
3396,
29915,
13,
4706,
21251,
13,
1678,
2981,
13,
29897,
13,
2
] |
run.py | berges99/Spatial-Pyramid-Kernel-for-Image-Recognition | 1 | 152687 | <reponame>berges99/Spatial-Pyramid-Kernel-for-Image-Recognition
import subprocess
cmd = 'python3 histogram_svm2.py --data df128.csv --L 0 --train_frac 0.5 --test_frac 0.2 > ./results/out1.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 1 --train_frac 0.5 --test_frac 0.2 > ./results/out2.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 2 --train_frac 0.5 --test_frac 0.2 > ./results/out3.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 3 --train_frac 0.5 --test_frac 0.2 > ./results/out4.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 4 --train_frac 0.5 --test_frac 0.2 > ./results/out5.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 0 --quantization 10 --train_frac 0.5 --test_frac 0.2 > ./results/out6.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 1 --quantization 10 --train_frac 0.5 --test_frac 0.2 > ./results/out7.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 2 --quantization 10 --train_frac 0.5 --test_frac 0.2 > ./results/out8.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 3 --quantization 10 --train_frac 0.5 --test_frac 0.2 > ./results/out9.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 4 --quantization 10 --train_frac 0.5 --test_frac 0.2 > ./results/out10.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 0 --quantization 20 --train_frac 0.5 --test_frac 0.2 > ./results/out11.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 1 --quantization 20 --train_frac 0.5 --test_frac 0.2 > ./results/out12.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 2 --quantization 20 --train_frac 0.5 --test_frac 0.2 > ./results/out13.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 3 --quantization 20 --train_frac 0.5 --test_frac 0.2 > ./results/out14.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 4 --quantization 20 --train_frac 0.5 --test_frac 0.2 > ./results/out15.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 0 --quantization 30 --train_frac 0.5 --test_frac 0.2 > ./results/out16.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 1 --quantization 30 --train_frac 0.5 --test_frac 0.2 > ./results/out17.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 2 --quantization 30 --train_frac 0.5 --test_frac 0.2 > ./results/out18.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 3 --quantization 30 --train_frac 0.5 --test_frac 0.2 > ./results/out19.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 4 --quantization 30 --train_frac 0.5 --test_frac 0.2 > ./results/out20.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 0 --quantization 40 --train_frac 0.5 --test_frac 0.2 > ./results/out21.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 1 --quantization 40 --train_frac 0.5 --test_frac 0.2 > ./results/out22.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 2 --quantization 40 --train_frac 0.5 --test_frac 0.2 > ./results/out23.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 3 --quantization 40 --train_frac 0.5 --test_frac 0.2 > ./results/out24.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 4 --quantization 40 --train_frac 0.5 --test_frac 0.2 > ./results/out25.txt'
subprocess.Popen(cmd, shell = True)
| [
1,
529,
276,
1112,
420,
29958,
2552,
267,
29929,
29929,
29914,
29903,
5031,
616,
29899,
19737,
2572,
333,
29899,
29968,
5851,
29899,
1454,
29899,
2940,
29899,
23122,
654,
13,
5215,
1014,
5014,
13,
13,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29896,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29896,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29906,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29906,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29941,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29941,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29946,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29946,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29945,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29900,
1192,
12150,
2133,
29871,
29896,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29953,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29896,
1192,
12150,
2133,
29871,
29896,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29955,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29906,
1192,
12150,
2133,
29871,
29896,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29947,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29941,
1192,
12150,
2133,
29871,
29896,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29929,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29946,
1192,
12150,
2133,
29871,
29896,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29896,
29900,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29900,
1192,
12150,
2133,
29871,
29906,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29896,
29896,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29896,
1192,
12150,
2133,
29871,
29906,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29896,
29906,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29906,
1192,
12150,
2133,
29871,
29906,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29896,
29941,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29941,
1192,
12150,
2133,
29871,
29906,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29896,
29946,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29946,
1192,
12150,
2133,
29871,
29906,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29896,
29945,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29900,
1192,
12150,
2133,
29871,
29941,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29896,
29953,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29896,
1192,
12150,
2133,
29871,
29941,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29896,
29955,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29906,
1192,
12150,
2133,
29871,
29941,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29896,
29947,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29941,
1192,
12150,
2133,
29871,
29941,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29896,
29929,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29946,
1192,
12150,
2133,
29871,
29941,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29906,
29900,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29900,
1192,
12150,
2133,
29871,
29946,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29906,
29896,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29896,
1192,
12150,
2133,
29871,
29946,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29906,
29906,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29906,
1192,
12150,
2133,
29871,
29946,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29906,
29941,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29941,
1192,
12150,
2133,
29871,
29946,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29906,
29946,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
9006,
353,
525,
4691,
29941,
9825,
13342,
29918,
4501,
29885,
29906,
29889,
2272,
1192,
1272,
4489,
29896,
29906,
29947,
29889,
7638,
1192,
29931,
29871,
29946,
1192,
12150,
2133,
29871,
29946,
29900,
1192,
14968,
29918,
1154,
29871,
29900,
29889,
29945,
1192,
1688,
29918,
1154,
29871,
29900,
29889,
29906,
1405,
11431,
9902,
29914,
449,
29906,
29945,
29889,
3945,
29915,
13,
1491,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
6473,
353,
5852,
29897,
13,
13,
13,
13,
2
] |
piret/workflows/__init__.py | bos-lab/piret | 2 | 197486 | <gh_stars>1-10
"""Importing."""
import os
import sys
dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append(dir_path)
from single_seq import SingleSeq
from dual_seq import DualSeq
"""Importing."""
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
17518,
292,
1213,
15945,
13,
5215,
2897,
13,
5215,
10876,
13,
3972,
29918,
2084,
353,
2897,
29889,
2084,
29889,
25721,
29898,
359,
29889,
2084,
29889,
6370,
2084,
22168,
1445,
1649,
876,
13,
9675,
29889,
2084,
29889,
4397,
29898,
3972,
29918,
2084,
29897,
13,
13,
3166,
2323,
29918,
11762,
1053,
16740,
23718,
13,
3166,
14581,
29918,
11762,
1053,
360,
950,
23718,
13,
15945,
29908,
17518,
292,
1213,
15945,
13,
13,
2
] |
src/img_prediction.py | henlein/PoseContrast | 0 | 189924 | import bpy
from PIL import ImageDraw
import os
import torch
import cv2
import math
import numpy as np
from math import radians
from PIL import Image, ImageFilter
from dataset.data_utils import process_viewpoint_label, TransLightning, resize_pad, random_crop
import torchvision.transforms as transforms
from model.resnet import resnet50
from model.vp_estimator import BaselineEstimator, Estimator
# Crop and Resize the image and paste it to the bg
def crop_resize_paste(im, bg, left, upper, right, lower):
# crop the RGBA image according to alpha channel
bbox = im.getbbox()
im = im.crop(bbox)
# resize & padding the rendering then paste on the bg
w, h = im.size
target_w, target_h = right - left, lower - upper
ratio = min(float(target_w) / w, float(target_h / h))
new_size = (int(w * ratio), int(h * ratio))
im = im.resize(new_size, Image.BILINEAR)
bg.paste(im, (left + (target_w - new_size[0]) // 2, upper + (target_h - new_size[1]) // 2))
# create a lamp with an appropriate energy
def makeLamp(lamp_name, rad):
# Create new lamp data block
lamp_data = bpy.data.lamps.new(name=lamp_name, type='POINT')
lamp_data.energy = rad
# modify the distance when the object is not normalized
# lamp_data.distance = rad * 2.5
# Create new object with our lamp data block
lamp_object = bpy.data.objects.new(name=lamp_name, object_data=lamp_data)
# Link lamp object to the scene so it'll appear in this scene
scene = bpy.context.scene
scene.objects.link(lamp_object)
return lamp_object
def parent_obj_to_camera(b_camera):
# set the parenting to the origin
origin = (0, 0, 0)
b_empty = bpy.data.objects.new("Empty", None)
b_empty.location = origin
b_camera.parent = b_empty
scn = bpy.context.scene
scn.objects.link(b_empty)
scn.objects.active = b_empty
return b_empty
def clean_obj_lamp_and_mesh(context):
scene = context.scene
objs = bpy.data.objects
meshes = bpy.data.meshes
for obj in objs:
if obj.type == "MESH" or obj.type == 'LAMP':
scene.objects.unlink(obj)
objs.remove(obj)
for mesh in meshes:
meshes.remove(mesh)
def angles_to_matrix(angles):
"""Compute the rotation matrix from euler angles for a mini-batch"""
azi = angles[:, 0]
ele = angles[:, 1]
rol = angles[:, 2]
element1 = (torch.cos(rol) * torch.cos(azi) - torch.sin(rol) * torch.cos(ele) * torch.sin(azi)).unsqueeze(1)
element2 = (torch.sin(rol) * torch.cos(azi) + torch.cos(rol) * torch.cos(ele) * torch.sin(azi)).unsqueeze(1)
element3 = (torch.sin(ele) * torch.sin(azi)).unsqueeze(1)
element4 = (-torch.cos(rol) * torch.sin(azi) - torch.sin(rol) * torch.cos(ele) * torch.cos(azi)).unsqueeze(1)
element5 = (-torch.sin(rol) * torch.sin(azi) + torch.cos(rol) * torch.cos(ele) * torch.cos(azi)).unsqueeze(1)
element6 = (torch.sin(ele) * torch.cos(azi)).unsqueeze(1)
element7 = (torch.sin(rol) * torch.sin(ele)).unsqueeze(1)
element8 = (-torch.cos(rol) * torch.sin(ele)).unsqueeze(1)
element9 = (torch.cos(ele)).unsqueeze(1)
return torch.cat((element1, element2, element3, element4, element5, element6, element7, element8, element9), dim=1)
def render_obj(obj, output_dir, azi, ele, rol, name, shape=[512, 512], forward=None, up=None):
clean_obj_lamp_and_mesh(bpy.context)
# Setting up the environment
scene = bpy.context.scene
scene.render.resolution_x = shape[1]
scene.render.resolution_y = shape[0]
scene.render.resolution_percentage = 100
scene.render.alpha_mode = 'TRANSPARENT'
# Camera setting
cam = scene.objects['Camera']
cam_constraint = cam.constraints.new(type='TRACK_TO')
cam_constraint.track_axis = 'TRACK_NEGATIVE_Z'
cam_constraint.up_axis = 'UP_Y'
b_empty = parent_obj_to_camera(cam)
cam_constraint.target = b_empty
# Light setting
lamp_object = makeLamp('Lamp1', 5)
lamp_add = makeLamp('Lamp2', 1)
if forward is not None and up is not None:
bpy.ops.import_scene.obj(filepath=obj, axis_forward=forward, axis_up=up)
else:
bpy.ops.import_scene.obj(filepath=obj)
# normalize it and set the center
for object in bpy.context.scene.objects:
if object.name in ['Camera', 'Lamp'] or object.type == 'EMPTY':
continue
bpy.context.scene.objects.active = object
max_dim = max(object.dimensions)
object.dimensions = object.dimensions / max_dim if max_dim != 0 else object.dimensions
# Output setting
scene.render.image_settings.file_format = 'PNG'
scene.render.filepath = os.path.join(output_dir, name)
# scene.render.filepath = os.path.join(output_dir, name + '_render_%03d_%03d_%03d' % (int(azi), int(ele), int(rol)))
# transform Euler angles from degrees into radians
azi = radians(azi)
ele = radians(ele)
rol = radians(rol)
r = 3
loc_y = r * math.cos(ele) * math.cos(azi)
loc_x = r * math.cos(ele) * math.sin(azi)
loc_z = r * math.sin(ele)
print(loc_x, loc_y, loc_z)
print("===========")
cam.location = (loc_x, loc_y, loc_z + 0.5)
bpy.ops.render.render(write_still=True)
cam.location = (loc_x, loc_y, loc_z + 0.5)
lamp_object.location = (loc_x, loc_y, 10)
lamp_add.location = (loc_x, loc_y, -10)
bpy.ops.render.render(write_still=True)
# Change the in-plane rotation
cam_ob = bpy.context.scene.camera
bpy.context.scene.objects.active = cam_ob # select the camera object
distance = np.sqrt(loc_x ** 2 + loc_y ** 2 + loc_z ** 2)
bpy.ops.transform.rotate(value=90, axis=(loc_x / distance, loc_y / distance, loc_z / distance),
constraint_axis=(False, False, False), constraint_orientation='GLOBAL', mirror=False,
proportional='DISABLED', proportional_edit_falloff='SMOOTH',
proportional_size=1)
print(loc_x / distance, loc_y / distance, loc_z / distance)
print(rol)
print(rol * 180 / math.pi)
bpy.ops.render.render(write_still=True)
img_name = "../test_img/Screenshot 2022-01-26 120213.png"
img_name = "../test_img/horse.png"
obj_path = "../data/Pix3D/model/chair/IKEA_BERNHARD/model.obj"
save_name = "PoseImg.png"
out_dir = ".../test_img/out"
img = Image.open(img_name).convert('RGB')
im_pos = img.copy()
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
im_transform = transforms.Compose([transforms.ToTensor(), normalize])
#im = im.crop((left, upper, right, lower))
im_flip = img.transpose(Image.FLIP_LEFT_RIGHT)
im = resize_pad(img, 224)
im_flip = resize_pad(im_flip, 224)
im = im_transform(im)
im_flip = im_transform(im_flip)
#im = im_flip
# ================CREATE NETWORK============================ #
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
net_feat = resnet50(num_classes=128)
net_vp = BaselineEstimator(img_feature_dim=2048)
net_feat.cuda()
net_vp.cuda()
state = torch.load("../exps/PoseContrast_ObjectNet3d_ZeroShot/ckpt.pth")
net_feat.load_state_dict(state['net_feat'])
net_vp.load_state_dict(state['net_vp'])
net_feat.eval()
net_vp.eval()
im = im[None, :].cuda()
feat, _ = net_feat(im)
out = net_vp(feat)
vp_pred, score = net_vp.compute_vp_pred(out, True)
def RotMat(axis, ang):
s = np.sin(ang)
c = np.cos(ang)
res = np.zeros((3, 3))
if axis == 'Z':
res[0, 0] = c
res[0, 1] = -s
res[1, 0] = s
res[1, 1] = c
res[2, 2] = 1
elif axis == 'Y':
res[0, 0] = c
res[0, 2] = s
res[1, 1] = 1
res[2, 0] = -s
res[2, 2] = c
elif axis == 'X':
res[0, 0] = 1
res[1, 1] = c
res[1, 2] = -s
res[2, 1] = s
res[2, 2] = c
return res
def angle2dcm(azi, ele, theta):
azi = radians(azi)
ele = radians(ele)
theta = radians(theta)
PI = np.arccos(-1)
return np.dot(RotMat('Z', theta), np.dot(RotMat('X', - (PI / 2 - ele)), RotMat('Z', - azi)))
#vp_pred[:, 1] = vp_pred[:, 1] - 180.
#vp_pred[:, 2] = vp_pred[:, 2] - 180.
#vp_pred = vp_pred * np.pi / 180.
# render viewpoint predictions
[azi, ele, inp] = vp_pred[0].detach().cpu().numpy()
mat = angle2dcm(azi, ele - 90, inp - 180)
mat = torch.FloatTensor(mat)
front = torch.FloatTensor([0,0,1])
right = torch.FloatTensor([0,1,0])
up = torch.FloatTensor([1,0,0])
print(mat)
print("....")
print("Front", torch.matmul(front, mat))
print("Up", torch.matmul(up, mat))
print("Right", torch.matmul(right, mat))
render_obj(obj_path,
"out",
azi, ele - 90, inp - 180,
"test.png",
[521, 512], None, None)
#render_obj(obj_path,
# "out",
# azi, ele, inp,
# "test.png",
# [521, 512], None, None)
# blend viewpoint results into the original image
#img = cv2.imread(img_name)
#w, h = img.shape[1], img.shape[0]
#bg = Image.new("RGBA", (w, h))
#vp_rend = Image.open(os.path.join(out_dir, save_name))
#crop_resize_paste(vp_rend, bg, left, upper, right, lower)
#draw = ImageDraw.Draw(bg)
#draw.rectangle([(left, upper), (right, lower)], outline=(0, 255, 0, 255),
# width=int(0.02 * min(img.shape[0], img.shape[1])))
#print("bgsave")
#bg.save(os.path.join(out_dir, save_name))
| [
1,
1053,
289,
2272,
13,
3166,
349,
6227,
1053,
7084,
8537,
13,
5215,
2897,
13,
5215,
4842,
305,
13,
5215,
13850,
29906,
13,
5215,
5844,
13,
5215,
12655,
408,
7442,
13,
3166,
5844,
1053,
2971,
5834,
13,
3166,
349,
6227,
1053,
7084,
29892,
7084,
5072,
13,
3166,
8783,
29889,
1272,
29918,
13239,
1053,
1889,
29918,
1493,
3149,
29918,
1643,
29892,
4103,
20769,
1076,
29892,
19490,
29918,
8305,
29892,
4036,
29918,
29883,
1336,
13,
5215,
4842,
305,
4924,
29889,
9067,
29879,
408,
4327,
29879,
13,
3166,
1904,
29889,
690,
1212,
1053,
620,
1212,
29945,
29900,
13,
3166,
1904,
29889,
29894,
29886,
29918,
342,
326,
1061,
1053,
4886,
5570,
12787,
326,
1061,
29892,
2661,
326,
1061,
13,
13,
13,
29937,
315,
1336,
322,
2538,
675,
278,
1967,
322,
11417,
372,
304,
278,
25989,
13,
1753,
274,
1336,
29918,
21476,
29918,
16179,
29898,
326,
29892,
25989,
29892,
2175,
29892,
7568,
29892,
1492,
29892,
5224,
1125,
13,
1678,
396,
274,
1336,
278,
390,
29954,
5688,
1967,
5034,
304,
15595,
8242,
13,
1678,
289,
1884,
353,
527,
29889,
657,
29890,
1884,
580,
13,
1678,
527,
353,
527,
29889,
29883,
1336,
29898,
29890,
1884,
29897,
13,
13,
1678,
396,
19490,
669,
7164,
278,
15061,
769,
11417,
373,
278,
25989,
13,
1678,
281,
29892,
298,
353,
527,
29889,
2311,
13,
1678,
3646,
29918,
29893,
29892,
3646,
29918,
29882,
353,
1492,
448,
2175,
29892,
5224,
448,
7568,
13,
1678,
11959,
353,
1375,
29898,
7411,
29898,
5182,
29918,
29893,
29897,
847,
281,
29892,
5785,
29898,
5182,
29918,
29882,
847,
298,
876,
13,
1678,
716,
29918,
2311,
353,
313,
524,
29898,
29893,
334,
11959,
511,
938,
29898,
29882,
334,
11959,
876,
13,
1678,
527,
353,
527,
29889,
21476,
29898,
1482,
29918,
2311,
29892,
7084,
29889,
29933,
6227,
8895,
1718,
29897,
13,
1678,
25989,
29889,
16179,
29898,
326,
29892,
313,
1563,
718,
313,
5182,
29918,
29893,
448,
716,
29918,
2311,
29961,
29900,
2314,
849,
29871,
29906,
29892,
7568,
718,
313,
5182,
29918,
29882,
448,
716,
29918,
2311,
29961,
29896,
2314,
849,
29871,
29906,
876,
13,
13,
13,
29937,
1653,
263,
28692,
411,
385,
8210,
5864,
13,
1753,
1207,
29931,
1160,
29898,
29880,
1160,
29918,
978,
29892,
2971,
1125,
13,
1678,
396,
6204,
716,
28692,
848,
2908,
13,
1678,
28692,
29918,
1272,
353,
289,
2272,
29889,
1272,
29889,
5288,
567,
29889,
1482,
29898,
978,
29922,
29880,
1160,
29918,
978,
29892,
1134,
2433,
29925,
6992,
29911,
1495,
13,
1678,
28692,
29918,
1272,
29889,
27548,
353,
2971,
13,
1678,
396,
6623,
278,
5418,
746,
278,
1203,
338,
451,
4226,
1891,
13,
1678,
396,
28692,
29918,
1272,
29889,
19244,
353,
2971,
334,
29871,
29906,
29889,
29945,
13,
13,
1678,
396,
6204,
716,
1203,
411,
1749,
28692,
848,
2908,
13,
1678,
28692,
29918,
3318,
353,
289,
2272,
29889,
1272,
29889,
12650,
29889,
1482,
29898,
978,
29922,
29880,
1160,
29918,
978,
29892,
1203,
29918,
1272,
29922,
29880,
1160,
29918,
1272,
29897,
13,
13,
1678,
396,
6645,
28692,
1203,
304,
278,
9088,
577,
372,
29915,
645,
2615,
297,
445,
9088,
13,
1678,
9088,
353,
289,
2272,
29889,
4703,
29889,
24645,
13,
1678,
9088,
29889,
12650,
29889,
2324,
29898,
29880,
1160,
29918,
3318,
29897,
13,
1678,
736,
28692,
29918,
3318,
13,
13,
13,
1753,
3847,
29918,
5415,
29918,
517,
29918,
26065,
29898,
29890,
29918,
26065,
1125,
13,
1678,
396,
731,
278,
3847,
292,
304,
278,
3978,
13,
1678,
3978,
353,
313,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
1678,
289,
29918,
6310,
353,
289,
2272,
29889,
1272,
29889,
12650,
29889,
1482,
703,
8915,
613,
6213,
29897,
13,
1678,
289,
29918,
6310,
29889,
5479,
353,
3978,
13,
1678,
289,
29918,
26065,
29889,
3560,
353,
289,
29918,
6310,
13,
13,
1678,
885,
29876,
353,
289,
2272,
29889,
4703,
29889,
24645,
13,
1678,
885,
29876,
29889,
12650,
29889,
2324,
29898,
29890,
29918,
6310,
29897,
13,
1678,
885,
29876,
29889,
12650,
29889,
4925,
353,
289,
29918,
6310,
13,
1678,
736,
289,
29918,
6310,
13,
13,
13,
1753,
5941,
29918,
5415,
29918,
29880,
1160,
29918,
392,
29918,
4467,
29882,
29898,
4703,
1125,
13,
1678,
9088,
353,
3030,
29889,
24645,
13,
1678,
704,
1315,
353,
289,
2272,
29889,
1272,
29889,
12650,
13,
1678,
4883,
13244,
353,
289,
2272,
29889,
1272,
29889,
4467,
13244,
13,
1678,
363,
5446,
297,
704,
1315,
29901,
13,
4706,
565,
5446,
29889,
1853,
1275,
376,
2303,
7068,
29908,
470,
5446,
29889,
1853,
1275,
525,
4375,
3580,
2396,
13,
9651,
9088,
29889,
12650,
29889,
348,
2324,
29898,
5415,
29897,
13,
9651,
704,
1315,
29889,
5992,
29898,
5415,
29897,
13,
1678,
363,
27716,
297,
4883,
13244,
29901,
13,
4706,
4883,
13244,
29889,
5992,
29898,
4467,
29882,
29897,
13,
13,
13,
1753,
23619,
29918,
517,
29918,
5344,
29898,
19536,
1125,
13,
1678,
9995,
20606,
29872,
278,
13733,
4636,
515,
321,
8584,
23619,
363,
263,
20629,
29899,
16175,
15945,
29908,
13,
1678,
263,
2526,
353,
23619,
7503,
29892,
29871,
29900,
29962,
13,
1678,
4552,
353,
23619,
7503,
29892,
29871,
29896,
29962,
13,
1678,
14467,
353,
23619,
7503,
29892,
29871,
29906,
29962,
13,
1678,
1543,
29896,
353,
313,
7345,
305,
29889,
3944,
29898,
1467,
29897,
334,
4842,
305,
29889,
3944,
29898,
18861,
29897,
448,
4842,
305,
29889,
5223,
29898,
1467,
29897,
334,
4842,
305,
29889,
3944,
29898,
6146,
29897,
334,
4842,
305,
29889,
5223,
29898,
18861,
8106,
6948,
802,
29872,
911,
29898,
29896,
29897,
13,
1678,
1543,
29906,
353,
313,
7345,
305,
29889,
5223,
29898,
1467,
29897,
334,
4842,
305,
29889,
3944,
29898,
18861,
29897,
718,
4842,
305,
29889,
3944,
29898,
1467,
29897,
334,
4842,
305,
29889,
3944,
29898,
6146,
29897,
334,
4842,
305,
29889,
5223,
29898,
18861,
8106,
6948,
802,
29872,
911,
29898,
29896,
29897,
13,
1678,
1543,
29941,
353,
313,
7345,
305,
29889,
5223,
29898,
6146,
29897,
334,
4842,
305,
29889,
5223,
29898,
18861,
8106,
6948,
802,
29872,
911,
29898,
29896,
29897,
13,
1678,
1543,
29946,
353,
8521,
7345,
305,
29889,
3944,
29898,
1467,
29897,
334,
4842,
305,
29889,
5223,
29898,
18861,
29897,
448,
4842,
305,
29889,
5223,
29898,
1467,
29897,
334,
4842,
305,
29889,
3944,
29898,
6146,
29897,
334,
4842,
305,
29889,
3944,
29898,
18861,
8106,
6948,
802,
29872,
911,
29898,
29896,
29897,
13,
1678,
1543,
29945,
353,
8521,
7345,
305,
29889,
5223,
29898,
1467,
29897,
334,
4842,
305,
29889,
5223,
29898,
18861,
29897,
718,
4842,
305,
29889,
3944,
29898,
1467,
29897,
334,
4842,
305,
29889,
3944,
29898,
6146,
29897,
334,
4842,
305,
29889,
3944,
29898,
18861,
8106,
6948,
802,
29872,
911,
29898,
29896,
29897,
13,
1678,
1543,
29953,
353,
313,
7345,
305,
29889,
5223,
29898,
6146,
29897,
334,
4842,
305,
29889,
3944,
29898,
18861,
8106,
6948,
802,
29872,
911,
29898,
29896,
29897,
13,
1678,
1543,
29955,
353,
313,
7345,
305,
29889,
5223,
29898,
1467,
29897,
334,
4842,
305,
29889,
5223,
29898,
6146,
8106,
6948,
802,
29872,
911,
29898,
29896,
29897,
13,
1678,
1543,
29947,
353,
8521,
7345,
305,
29889,
3944,
29898,
1467,
29897,
334,
4842,
305,
29889,
5223,
29898,
6146,
8106,
6948,
802,
29872,
911,
29898,
29896,
29897,
13,
1678,
1543,
29929,
353,
313,
7345,
305,
29889,
3944,
29898,
6146,
8106,
6948,
802,
29872,
911,
29898,
29896,
29897,
13,
1678,
736,
4842,
305,
29889,
4117,
3552,
5029,
29896,
29892,
1543,
29906,
29892,
1543,
29941,
29892,
1543,
29946,
29892,
1543,
29945,
29892,
1543,
29953,
29892,
1543,
29955,
29892,
1543,
29947,
29892,
1543,
29929,
511,
3964,
29922,
29896,
29897,
13,
13,
1753,
4050,
29918,
5415,
29898,
5415,
29892,
1962,
29918,
3972,
29892,
263,
2526,
29892,
4552,
29892,
14467,
29892,
1024,
29892,
8267,
11759,
29945,
29896,
29906,
29892,
29871,
29945,
29896,
29906,
1402,
6375,
29922,
8516,
29892,
701,
29922,
8516,
1125,
13,
1678,
5941,
29918,
5415,
29918,
29880,
1160,
29918,
392,
29918,
4467,
29882,
29898,
29890,
2272,
29889,
4703,
29897,
13,
13,
1678,
396,
21605,
701,
278,
5177,
13,
1678,
9088,
353,
289,
2272,
29889,
4703,
29889,
24645,
13,
1678,
9088,
29889,
9482,
29889,
9778,
918,
29918,
29916,
353,
8267,
29961,
29896,
29962,
13,
1678,
9088,
29889,
9482,
29889,
9778,
918,
29918,
29891,
353,
8267,
29961,
29900,
29962,
13,
1678,
9088,
29889,
9482,
29889,
9778,
918,
29918,
25376,
482,
353,
29871,
29896,
29900,
29900,
13,
1678,
9088,
29889,
9482,
29889,
2312,
29918,
8513,
353,
525,
26813,
5550,
1718,
3919,
29915,
13,
13,
1678,
396,
24321,
4444,
13,
1678,
3949,
353,
9088,
29889,
12650,
1839,
20717,
2033,
13,
1678,
3949,
29918,
13646,
353,
3949,
29889,
13646,
29879,
29889,
1482,
29898,
1853,
2433,
5659,
11375,
29918,
4986,
1495,
13,
1678,
3949,
29918,
13646,
29889,
11294,
29918,
8990,
353,
525,
5659,
11375,
29918,
8186,
29954,
1299,
18474,
29918,
29999,
29915,
13,
1678,
3949,
29918,
13646,
29889,
786,
29918,
8990,
353,
525,
4897,
29918,
29979,
29915,
13,
1678,
289,
29918,
6310,
353,
3847,
29918,
5415,
29918,
517,
29918,
26065,
29898,
11108,
29897,
13,
1678,
3949,
29918,
13646,
29889,
5182,
353,
289,
29918,
6310,
13,
13,
1678,
396,
12790,
4444,
13,
1678,
28692,
29918,
3318,
353,
1207,
29931,
1160,
877,
29931,
1160,
29896,
742,
29871,
29945,
29897,
13,
1678,
28692,
29918,
1202,
353,
1207,
29931,
1160,
877,
29931,
1160,
29906,
742,
29871,
29896,
29897,
13,
13,
1678,
565,
6375,
338,
451,
6213,
322,
701,
338,
451,
6213,
29901,
13,
4706,
289,
2272,
29889,
3554,
29889,
5215,
29918,
24645,
29889,
5415,
29898,
1445,
2084,
29922,
5415,
29892,
9685,
29918,
11333,
29922,
11333,
29892,
9685,
29918,
786,
29922,
786,
29897,
13,
1678,
1683,
29901,
13,
4706,
289,
2272,
29889,
3554,
29889,
5215,
29918,
24645,
29889,
5415,
29898,
1445,
2084,
29922,
5415,
29897,
13,
13,
1678,
396,
4226,
675,
372,
322,
731,
278,
4818,
13,
1678,
363,
1203,
297,
289,
2272,
29889,
4703,
29889,
24645,
29889,
12650,
29901,
13,
4706,
565,
1203,
29889,
978,
297,
6024,
20717,
742,
525,
29931,
1160,
2033,
470,
1203,
29889,
1853,
1275,
525,
29923,
3580,
15631,
2396,
13,
9651,
6773,
13,
4706,
289,
2272,
29889,
4703,
29889,
24645,
29889,
12650,
29889,
4925,
353,
1203,
13,
4706,
4236,
29918,
6229,
353,
4236,
29898,
3318,
29889,
6229,
5580,
29897,
13,
4706,
1203,
29889,
6229,
5580,
353,
1203,
29889,
6229,
5580,
847,
4236,
29918,
6229,
565,
4236,
29918,
6229,
2804,
29871,
29900,
1683,
1203,
29889,
6229,
5580,
13,
13,
1678,
396,
10604,
4444,
13,
1678,
9088,
29889,
9482,
29889,
3027,
29918,
11027,
29889,
1445,
29918,
4830,
353,
525,
29925,
9312,
29915,
13,
1678,
9088,
29889,
9482,
29889,
1445,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
4905,
29918,
3972,
29892,
1024,
29897,
13,
13,
1678,
396,
9088,
29889,
9482,
29889,
1445,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
4905,
29918,
3972,
29892,
1024,
718,
22868,
9482,
29918,
29995,
29900,
29941,
29881,
29918,
29995,
29900,
29941,
29881,
29918,
29995,
29900,
29941,
29881,
29915,
1273,
313,
524,
29898,
18861,
511,
938,
29898,
6146,
511,
938,
29898,
1467,
4961,
13,
13,
1678,
396,
4327,
382,
8584,
23619,
515,
14496,
964,
2971,
5834,
13,
1678,
263,
2526,
353,
2971,
5834,
29898,
18861,
29897,
13,
1678,
4552,
353,
2971,
5834,
29898,
6146,
29897,
13,
1678,
14467,
353,
2971,
5834,
29898,
1467,
29897,
13,
13,
1678,
364,
353,
29871,
29941,
13,
1678,
1180,
29918,
29891,
353,
364,
334,
5844,
29889,
3944,
29898,
6146,
29897,
334,
5844,
29889,
3944,
29898,
18861,
29897,
13,
1678,
1180,
29918,
29916,
353,
364,
334,
5844,
29889,
3944,
29898,
6146,
29897,
334,
5844,
29889,
5223,
29898,
18861,
29897,
13,
1678,
1180,
29918,
29920,
353,
364,
334,
5844,
29889,
5223,
29898,
6146,
29897,
13,
1678,
1596,
29898,
2029,
29918,
29916,
29892,
1180,
29918,
29891,
29892,
1180,
29918,
29920,
29897,
13,
13,
1678,
1596,
703,
4936,
1360,
543,
29897,
13,
1678,
3949,
29889,
5479,
353,
313,
2029,
29918,
29916,
29892,
1180,
29918,
29891,
29892,
1180,
29918,
29920,
718,
29871,
29900,
29889,
29945,
29897,
13,
1678,
289,
2272,
29889,
3554,
29889,
9482,
29889,
9482,
29898,
3539,
29918,
303,
453,
29922,
5574,
29897,
13,
13,
13,
13,
1678,
3949,
29889,
5479,
353,
313,
2029,
29918,
29916,
29892,
1180,
29918,
29891,
29892,
1180,
29918,
29920,
718,
29871,
29900,
29889,
29945,
29897,
13,
1678,
28692,
29918,
3318,
29889,
5479,
353,
313,
2029,
29918,
29916,
29892,
1180,
29918,
29891,
29892,
29871,
29896,
29900,
29897,
13,
1678,
28692,
29918,
1202,
29889,
5479,
353,
313,
2029,
29918,
29916,
29892,
1180,
29918,
29891,
29892,
448,
29896,
29900,
29897,
13,
13,
1678,
289,
2272,
29889,
3554,
29889,
9482,
29889,
9482,
29898,
3539,
29918,
303,
453,
29922,
5574,
29897,
13,
13,
1678,
396,
10726,
278,
297,
29899,
22116,
13733,
13,
1678,
3949,
29918,
711,
353,
289,
2272,
29889,
4703,
29889,
24645,
29889,
26065,
13,
1678,
289,
2272,
29889,
4703,
29889,
24645,
29889,
12650,
29889,
4925,
353,
3949,
29918,
711,
29871,
396,
1831,
278,
10656,
1203,
13,
1678,
5418,
353,
7442,
29889,
3676,
29898,
2029,
29918,
29916,
3579,
29871,
29906,
718,
1180,
29918,
29891,
3579,
29871,
29906,
718,
1180,
29918,
29920,
3579,
29871,
29906,
29897,
13,
1678,
289,
2272,
29889,
3554,
29889,
9067,
29889,
23361,
29898,
1767,
29922,
29929,
29900,
29892,
9685,
7607,
2029,
29918,
29916,
847,
5418,
29892,
1180,
29918,
29891,
847,
5418,
29892,
1180,
29918,
29920,
847,
5418,
511,
13,
462,
632,
7276,
29918,
8990,
7607,
8824,
29892,
7700,
29892,
7700,
511,
7276,
29918,
20659,
2433,
29954,
28902,
1964,
742,
19571,
29922,
8824,
29892,
13,
462,
632,
29839,
2433,
23711,
6181,
29928,
742,
29839,
29918,
5628,
29918,
18263,
417,
600,
2433,
29903,
6720,
2891,
29950,
742,
13,
462,
632,
29839,
29918,
2311,
29922,
29896,
29897,
13,
1678,
1596,
29898,
2029,
29918,
29916,
847,
5418,
29892,
1180,
29918,
29891,
847,
5418,
29892,
1180,
29918,
29920,
847,
5418,
29897,
13,
1678,
1596,
29898,
1467,
29897,
13,
1678,
1596,
29898,
1467,
334,
29871,
29896,
29947,
29900,
847,
5844,
29889,
1631,
29897,
13,
1678,
289,
2272,
29889,
3554,
29889,
9482,
29889,
9482,
29898,
3539,
29918,
303,
453,
29922,
5574,
29897,
13,
13,
13,
13,
13,
2492,
29918,
978,
353,
376,
6995,
1688,
29918,
2492,
29914,
29903,
24546,
8711,
29871,
29906,
29900,
29906,
29906,
29899,
29900,
29896,
29899,
29906,
29953,
29871,
29896,
29906,
29900,
29906,
29896,
29941,
29889,
2732,
29908,
13,
2492,
29918,
978,
353,
376,
6995,
1688,
29918,
2492,
29914,
2015,
344,
29889,
2732,
29908,
13,
13,
5415,
29918,
2084,
353,
376,
6995,
1272,
29914,
29925,
861,
29941,
29928,
29914,
4299,
29914,
305,
1466,
29914,
29902,
6059,
29909,
29918,
13635,
29940,
29950,
17011,
29914,
4299,
29889,
5415,
29908,
13,
7620,
29918,
978,
353,
376,
29925,
852,
25518,
29889,
2732,
29908,
13,
449,
29918,
3972,
353,
29804,
29914,
1688,
29918,
2492,
29914,
449,
29908,
13,
13,
2492,
353,
7084,
29889,
3150,
29898,
2492,
29918,
978,
467,
13441,
877,
28212,
1495,
13,
326,
29918,
1066,
353,
10153,
29889,
8552,
580,
13,
13,
8945,
675,
353,
4327,
29879,
29889,
19077,
675,
29898,
12676,
11759,
29900,
29889,
29946,
29947,
29945,
29892,
29871,
29900,
29889,
29946,
29945,
29953,
29892,
29871,
29900,
29889,
29946,
29900,
29953,
1402,
3659,
11759,
29900,
29889,
29906,
29906,
29929,
29892,
29871,
29900,
29889,
29906,
29906,
29946,
29892,
29871,
29900,
29889,
29906,
29906,
29945,
2314,
13,
326,
29918,
9067,
353,
4327,
29879,
29889,
1523,
4220,
4197,
9067,
29879,
29889,
1762,
29911,
6073,
3285,
4226,
675,
2314,
13,
13,
29937,
326,
353,
527,
29889,
29883,
1336,
3552,
1563,
29892,
7568,
29892,
1492,
29892,
5224,
876,
13,
326,
29918,
29888,
3466,
353,
10153,
29889,
3286,
4220,
29898,
2940,
29889,
29943,
5265,
29925,
29918,
28024,
29918,
22789,
3912,
29897,
13,
326,
353,
19490,
29918,
8305,
29898,
2492,
29892,
29871,
29906,
29906,
29946,
29897,
13,
326,
29918,
29888,
3466,
353,
19490,
29918,
8305,
29898,
326,
29918,
29888,
3466,
29892,
29871,
29906,
29906,
29946,
29897,
13,
326,
353,
527,
29918,
9067,
29898,
326,
29897,
13,
326,
29918,
29888,
3466,
353,
527,
29918,
9067,
29898,
326,
29918,
29888,
3466,
29897,
13,
29937,
326,
353,
527,
29918,
29888,
3466,
13,
13,
29937,
1275,
4936,
2751,
1360,
27045,
405,
2544,
11686,
29968,
9166,
4936,
2751,
396,
13,
359,
29889,
21813,
3366,
29907,
29965,
7698,
29918,
28607,
8979,
1307,
29918,
2287,
29963,
2965,
2890,
3108,
353,
376,
29900,
29908,
13,
13,
1212,
29918,
1725,
271,
353,
620,
1212,
29945,
29900,
29898,
1949,
29918,
13203,
29922,
29896,
29906,
29947,
29897,
13,
1212,
29918,
29894,
29886,
353,
4886,
5570,
12787,
326,
1061,
29898,
2492,
29918,
14394,
29918,
6229,
29922,
29906,
29900,
29946,
29947,
29897,
13,
13,
1212,
29918,
1725,
271,
29889,
29883,
6191,
580,
13,
1212,
29918,
29894,
29886,
29889,
29883,
6191,
580,
13,
13,
3859,
353,
4842,
305,
29889,
1359,
703,
6995,
735,
567,
29914,
29925,
852,
1168,
509,
579,
29918,
2061,
6779,
29941,
29881,
29918,
24214,
2713,
327,
29914,
384,
415,
29889,
29886,
386,
1159,
13,
1212,
29918,
1725,
271,
29889,
1359,
29918,
3859,
29918,
8977,
29898,
3859,
1839,
1212,
29918,
1725,
271,
11287,
13,
1212,
29918,
29894,
29886,
29889,
1359,
29918,
3859,
29918,
8977,
29898,
3859,
1839,
1212,
29918,
29894,
29886,
11287,
13,
1212,
29918,
1725,
271,
29889,
14513,
580,
13,
1212,
29918,
29894,
29886,
29889,
14513,
580,
13,
13,
326,
353,
527,
29961,
8516,
29892,
584,
1822,
29883,
6191,
580,
13,
1725,
271,
29892,
903,
353,
7787,
29918,
1725,
271,
29898,
326,
29897,
13,
449,
353,
7787,
29918,
29894,
29886,
29898,
1725,
271,
29897,
13,
29894,
29886,
29918,
11965,
29892,
8158,
353,
7787,
29918,
29894,
29886,
29889,
26017,
29918,
29894,
29886,
29918,
11965,
29898,
449,
29892,
5852,
29897,
13,
13,
1753,
9664,
9782,
29898,
8990,
29892,
2614,
1125,
13,
1678,
269,
353,
7442,
29889,
5223,
29898,
574,
29897,
13,
1678,
274,
353,
7442,
29889,
3944,
29898,
574,
29897,
13,
1678,
620,
353,
7442,
29889,
3298,
359,
3552,
29941,
29892,
29871,
29941,
876,
13,
1678,
565,
9685,
1275,
525,
29999,
2396,
13,
4706,
620,
29961,
29900,
29892,
29871,
29900,
29962,
353,
274,
13,
4706,
620,
29961,
29900,
29892,
29871,
29896,
29962,
353,
448,
29879,
13,
4706,
620,
29961,
29896,
29892,
29871,
29900,
29962,
353,
269,
13,
4706,
620,
29961,
29896,
29892,
29871,
29896,
29962,
353,
274,
13,
4706,
620,
29961,
29906,
29892,
29871,
29906,
29962,
353,
29871,
29896,
13,
1678,
25342,
9685,
1275,
525,
29979,
2396,
13,
4706,
620,
29961,
29900,
29892,
29871,
29900,
29962,
353,
274,
13,
4706,
620,
29961,
29900,
29892,
29871,
29906,
29962,
353,
269,
13,
4706,
620,
29961,
29896,
29892,
29871,
29896,
29962,
353,
29871,
29896,
13,
4706,
620,
29961,
29906,
29892,
29871,
29900,
29962,
353,
448,
29879,
13,
4706,
620,
29961,
29906,
29892,
29871,
29906,
29962,
353,
274,
13,
1678,
25342,
9685,
1275,
525,
29990,
2396,
13,
4706,
620,
29961,
29900,
29892,
29871,
29900,
29962,
353,
29871,
29896,
13,
4706,
620,
29961,
29896,
29892,
29871,
29896,
29962,
353,
274,
13,
4706,
620,
29961,
29896,
29892,
29871,
29906,
29962,
353,
448,
29879,
13,
4706,
620,
29961,
29906,
29892,
29871,
29896,
29962,
353,
269,
13,
4706,
620,
29961,
29906,
29892,
29871,
29906,
29962,
353,
274,
13,
1678,
736,
620,
13,
13,
1753,
10696,
29906,
29881,
4912,
29898,
18861,
29892,
4552,
29892,
278,
941,
1125,
13,
1678,
263,
2526,
353,
2971,
5834,
29898,
18861,
29897,
13,
1678,
4552,
353,
2971,
5834,
29898,
6146,
29897,
13,
1678,
278,
941,
353,
2971,
5834,
29898,
3416,
29897,
13,
1678,
349,
29902,
353,
7442,
29889,
279,
617,
359,
6278,
29896,
29897,
13,
1678,
736,
7442,
29889,
6333,
29898,
21281,
9782,
877,
29999,
742,
278,
941,
511,
7442,
29889,
6333,
29898,
21281,
9782,
877,
29990,
742,
448,
313,
2227,
847,
29871,
29906,
448,
4552,
8243,
9664,
9782,
877,
29999,
742,
448,
263,
2526,
4961,
13,
13,
29937,
29894,
29886,
29918,
11965,
7503,
29892,
29871,
29896,
29962,
353,
325,
29886,
29918,
11965,
7503,
29892,
29871,
29896,
29962,
448,
29871,
29896,
29947,
29900,
29889,
13,
29937,
29894,
29886,
29918,
11965,
7503,
29892,
29871,
29906,
29962,
353,
325,
29886,
29918,
11965,
7503,
29892,
29871,
29906,
29962,
448,
29871,
29896,
29947,
29900,
29889,
13,
29937,
29894,
29886,
29918,
11965,
353,
325,
29886,
29918,
11965,
334,
7442,
29889,
1631,
847,
29871,
29896,
29947,
29900,
29889,
13,
13,
1678,
396,
4050,
1776,
3149,
27303,
13,
29961,
18861,
29892,
4552,
29892,
297,
29886,
29962,
353,
325,
29886,
29918,
11965,
29961,
29900,
1822,
4801,
496,
2141,
21970,
2141,
23749,
580,
13,
13,
2922,
353,
10696,
29906,
29881,
4912,
29898,
18861,
29892,
4552,
448,
29871,
29929,
29900,
29892,
297,
29886,
448,
29871,
29896,
29947,
29900,
29897,
13,
2922,
353,
4842,
305,
29889,
11031,
29911,
6073,
29898,
2922,
29897,
13,
8862,
353,
4842,
305,
29889,
11031,
29911,
6073,
4197,
29900,
29892,
29900,
29892,
29896,
2314,
13,
1266,
353,
4842,
305,
29889,
11031,
29911,
6073,
4197,
29900,
29892,
29896,
29892,
29900,
2314,
13,
13,
786,
353,
4842,
305,
29889,
11031,
29911,
6073,
4197,
29896,
29892,
29900,
29892,
29900,
2314,
13,
2158,
29898,
2922,
29897,
13,
2158,
703,
3045,
1159,
13,
2158,
703,
29348,
613,
4842,
305,
29889,
2922,
16109,
29898,
8862,
29892,
1775,
876,
13,
2158,
703,
3373,
613,
4842,
305,
29889,
2922,
16109,
29898,
786,
29892,
1775,
876,
13,
2158,
703,
7341,
613,
4842,
305,
29889,
2922,
16109,
29898,
1266,
29892,
1775,
876,
13,
13,
9482,
29918,
5415,
29898,
5415,
29918,
2084,
29892,
13,
965,
376,
449,
613,
13,
965,
263,
2526,
29892,
4552,
448,
29871,
29929,
29900,
29892,
297,
29886,
448,
29871,
29896,
29947,
29900,
29892,
13,
965,
376,
1688,
29889,
2732,
613,
13,
965,
518,
29945,
29906,
29896,
29892,
29871,
29945,
29896,
29906,
1402,
6213,
29892,
6213,
29897,
13,
13,
29937,
9482,
29918,
5415,
29898,
5415,
29918,
2084,
29892,
13,
29937,
9651,
376,
449,
613,
13,
29937,
9651,
263,
2526,
29892,
4552,
29892,
297,
29886,
29892,
13,
29937,
9651,
376,
1688,
29889,
2732,
613,
13,
29937,
9651,
518,
29945,
29906,
29896,
29892,
29871,
29945,
29896,
29906,
1402,
6213,
29892,
6213,
29897,
13,
13,
29937,
1999,
355,
1776,
3149,
2582,
964,
278,
2441,
1967,
13,
29937,
2492,
353,
13850,
29906,
29889,
326,
949,
29898,
2492,
29918,
978,
29897,
13,
29937,
29893,
29892,
298,
353,
10153,
29889,
12181,
29961,
29896,
1402,
10153,
29889,
12181,
29961,
29900,
29962,
13,
29937,
16264,
353,
7084,
29889,
1482,
703,
29934,
29954,
5688,
613,
313,
29893,
29892,
298,
876,
13,
29937,
29894,
29886,
29918,
28759,
353,
7084,
29889,
3150,
29898,
359,
29889,
2084,
29889,
7122,
29898,
449,
29918,
3972,
29892,
4078,
29918,
978,
876,
13,
29937,
29883,
1336,
29918,
21476,
29918,
16179,
29898,
29894,
29886,
29918,
28759,
29892,
25989,
29892,
2175,
29892,
7568,
29892,
1492,
29892,
5224,
29897,
13,
13,
29937,
4012,
353,
7084,
8537,
29889,
8537,
29898,
16264,
29897,
13,
29937,
4012,
29889,
1621,
2521,
4197,
29898,
1563,
29892,
7568,
511,
313,
1266,
29892,
5224,
29897,
1402,
27887,
7607,
29900,
29892,
29871,
29906,
29945,
29945,
29892,
29871,
29900,
29892,
29871,
29906,
29945,
29945,
511,
13,
29937,
1669,
2920,
29922,
524,
29898,
29900,
29889,
29900,
29906,
334,
1375,
29898,
2492,
29889,
12181,
29961,
29900,
1402,
10153,
29889,
12181,
29961,
29896,
29962,
4961,
13,
29937,
2158,
703,
29890,
3174,
1351,
1159,
13,
29937,
16264,
29889,
7620,
29898,
359,
29889,
2084,
29889,
7122,
29898,
449,
29918,
3972,
29892,
4078,
29918,
978,
876,
13,
13,
2
] |
yahoo_with_mixtext/train_tmix_single_policy.py | sgondala/Automix | 1 | 59034 | <filename>yahoo_with_mixtext/train_tmix_single_policy.py<gh_stars>1-10
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.optim import Adam
from torch.utils.data import DataLoader, random_split, ConcatDataset
import pandas as pd
import numpy as np
import transformers
from transformers import AutoModelForSequenceClassification, AutoTokenizer
from FastAutoAugment.read_data import *
from FastAutoAugment.classification_models.TestClassifier import *
from FastAutoAugment.classification_models.BertBasedClassifier import *
from FastAutoAugment.classification_models.RandomDistilBertClassifier import *
from FastAutoAugment.classification_models.MixText import *
import pickle
import wandb
import argparse
import os
parser = argparse.ArgumentParser(description='PyTorch MixText')
parser.add_argument('--epochs', default=50, type=int, metavar='N',
help='number of total epochs to run')
parser.add_argument('--lrmain', '--learning-rate-bert', default=2e-5, type=float,
metavar='LR', help='initial learning rate for bert')
parser.add_argument('--lrlast', '--learning-rate-model', default=1e-3, type=float,
metavar='LR', help='initial learning rate for models')
parser.add_argument('--lr-decay', default=0.98, type=float,
help='alpha for beta distribution')
parser.add_argument('--stop-decay-after', default=-1, type=int,
help='batch size for train')
parser.add_argument('--batch-size', default=32, type=int, metavar='N',
help='train batchsize')
parser.add_argument('--alpha', type=float, default=2)
parser.add_argument('--mix-layers', nargs='+',
default=[7,9,12], type=int, help='define mix layer set')
args = parser.parse_args()
# Seeds
np.random.seed(42)
torch.manual_seed(42)
torch.cuda.manual_seed_all(42)
torch.backends.cudnn.benchmark = False
torch.backends.cudnn.deterministic = True
function_name_to_tmix_functions_map = {
'synonym_replacement': 'TMix_with_EDA_synonym_replacement',
'random_insert': 'TMix_with_EDA_random_insertion',
'random_swap': 'TMix_with_EDA_random_swap',
'random_delete': 'TMix_with_EDA_random_deletion',
'random': 'TMix',
'intra_lada': 'Intra_LADA'
}
def own_loss(logits, target, num_labels):
assert logits.shape == target.shape
loss = -torch.sum(F.log_softmax(logits, dim=1)*target, axis=1)
assert loss.shape[0] == target.shape[0]
return loss.mean()
if __name__ == "__main__":
wandb.init(project="auto_augment")
wandb.config.update(args)
run_name = 'train_yahoo_10_with_base_policy_random_insert_0.7079546446941665_0.27912003338168995_0.8035810562324185_synonym_replacement_0.27517045577668814_0.6137977840002864_0.4953631547548106_random_insert_0.5525104535555041_0.3032184207648565_0.7924285457888011'
wandb.run.name = run_name
wandb.run.save()
train = pickle.load(open('data/paper_yahoo_split/yahoo_train_10_per_class.pkl', 'rb'))
val = pickle.load(open('data/paper_yahoo_split/yahoo_val_200_per_class.pkl', 'rb'))
model_name = 'bert-base-uncased'
dataset_identifier = 'train_10'
function_names = ['random_insert', 'synonym_replacement', 'random_insert']
probabilities = [0.7079546446941665, 0.27517045577668814, 0.5525104535555041]
argument_1s = [0.27912003338168995, 0.6137977840002864, 0.3032184207648565]
argument_2s = [0.8035810562324185, 0.4953631547548106, 0.7924285457888011]
datasets = []
for i in range(len(function_names)):
function_name = function_names[i]
probability_of_application = probabilities[i]
argument_1 = argument_1s[i]
argument_2 = argument_2s[i]
if function_name in ['random', 'intra_lada']:
# 0 arguments
mix = function_name_to_tmix_functions_map[function_name]
augmented_dataset = create_dataset(
train['X'], train['y'], model_name, 256, mix=mix, num_classes=10,
probability_of_application = probability_of_application,
dataset_identifier = dataset_identifier)
elif function_name in ['synonym_replacement', 'random_insert', 'random_swap', 'random_delete']:
# one argument
mix = function_name_to_tmix_functions_map[function_name]
augmented_dataset = create_dataset(
train['X'], train['y'], model_name, 256, mix=mix, num_classes=10,
probability_of_application = probability_of_application, alpha=argument_1,
dataset_identifier = dataset_identifier)
elif function_name == 'inter_lada':
# 2 arguments
knn = int(argument_1 * 10) + 1 # Making sure we have atleast k = 1
mu = argument_2
augmented_dataset = create_dataset(
train['X'], train['y'], model_name, 256, mix='Inter_LADA', num_classes=10,
probability_of_application = probability_of_application,
knn_lada=knn, mu_lada=mu, dataset_identifier = dataset_identifier)
datasets.append(augmented_dataset)
base_train = create_dataset(train['X'], train['y'],
model_name, 256, mix='duplicate', num_classes=10)
# datasets.append(base_train)
val_dataset = create_dataset(val['X'], val['y'], model_name, 256, mix=None)
train_dataset = ConcatDataset(datasets)
train_dataloader = DataLoader(train_dataset, batch_size=args.batch_size, num_workers=3, shuffle=True)
val_dataloader = DataLoader(val_dataset, batch_size=64, num_workers=3, shuffle=False)
model = MixText(10, True).cuda()
model = nn.DataParallel(model)
wandb.watch(model, log=all)
optimizer = AdamW(
[
{"params": model.module.bert.parameters(), "lr": args.lrmain},
{"params": model.module.linear.parameters(), "lr": args.lrlast},
]
)
decayRate = args.lr_decay
lr_scheduler = torch.optim.lr_scheduler.ExponentialLR(optimizer=optimizer, gamma=decayRate)
criterion = nn.CrossEntropyLoss()
best_val_accuracy = 0
for epoch in range(args.epochs):
# Train loop
model.train()
for batch in tqdm(train_dataloader, desc=f'Train epoch {epoch}'):
encoded_1, encoded_2, label_1, label_2 = batch
assert encoded_1.shape == encoded_2.shape
mix_layer = np.random.choice(args.mix_layers)
l = np.random.beta(args.alpha, args.alpha)
l = max(l, 1-l)
logits = model(encoded_1.cuda(), encoded_2.cuda(), l, mix_layer)
combined_labels = label_1 * l + label_2 * (1-l)
loss = own_loss(logits, combined_labels.cuda(), num_labels=10)
wandb.log({'Train loss': loss.item()}, step=epoch)
optimizer.zero_grad()
loss.backward()
optimizer.step()
wandb.log({
'lr_bert':lr_scheduler.get_lr()[0],
'lr_linear':lr_scheduler.get_lr()[1]},
step=epoch
)
if epoch <= args.stop_decay_after:
lr_scheduler.step()
# Val loop
model.eval()
with torch.no_grad():
loss_total = 0
correct = 0
total_sample = 0
for batch in tqdm(val_dataloader, desc=f'Val epoch {epoch}'):
encoded_text, _, target, _ = batch
outputs = model(encoded_text.cuda())
loss = criterion(outputs, target.cuda())
# all_losses.append(loss.item())
_, predicted = torch.max(outputs.data, 1)
correct += (np.array(predicted.cpu()) == np.array(target.cpu())).sum()
loss_total += loss.item() * encoded_text.shape[0]
total_sample += encoded_text.shape[0]
acc_total = correct / total_sample
loss_total = loss_total / total_sample
print(f'Epoch number {epoch} Val Loss {loss_total} Val accuracy {acc_total}')
wandb.log({'Val loss' : loss_total}, step=epoch)
wandb.log({'Val accuracy': acc_total}, step=epoch)
if acc_total > best_val_accuracy:
best_val_accuracy = acc_total
wandb.run.summary['Val accuracy'] = acc_total
checkpoint_path = f'checkpoints/{run_name}/'
if not os.path.isdir(checkpoint_path):
os.makedirs(checkpoint_path)
torch.save(model, f'{checkpoint_path}/model_best.pth') | [
1,
529,
9507,
29958,
29891,
26779,
29918,
2541,
29918,
28084,
726,
29914,
14968,
29918,
18276,
861,
29918,
14369,
29918,
22197,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
5215,
4842,
305,
29889,
15755,
29889,
2220,
284,
408,
383,
13,
3166,
4842,
305,
29889,
20640,
1053,
11783,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
3630,
10036,
29892,
4036,
29918,
5451,
29892,
1281,
4117,
16390,
24541,
13,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
5215,
4327,
414,
13,
3166,
4327,
414,
1053,
11133,
3195,
2831,
20529,
2385,
2450,
29892,
11133,
6066,
3950,
13,
3166,
23786,
12300,
29909,
688,
358,
29889,
949,
29918,
1272,
1053,
334,
13,
3166,
23786,
12300,
29909,
688,
358,
29889,
1990,
2450,
29918,
9794,
29889,
3057,
2385,
3709,
1053,
334,
13,
3166,
23786,
12300,
29909,
688,
358,
29889,
1990,
2450,
29918,
9794,
29889,
29933,
814,
29933,
1463,
2385,
3709,
1053,
334,
13,
3166,
23786,
12300,
29909,
688,
358,
29889,
1990,
2450,
29918,
9794,
29889,
17875,
13398,
309,
29933,
814,
2385,
3709,
1053,
334,
13,
3166,
23786,
12300,
29909,
688,
358,
29889,
1990,
2450,
29918,
9794,
29889,
29924,
861,
1626,
1053,
334,
13,
13,
5215,
5839,
280,
13,
5215,
24706,
29890,
13,
5215,
1852,
5510,
13,
5215,
2897,
13,
13,
16680,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
2433,
19737,
29911,
25350,
23478,
1626,
1495,
13,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
1022,
2878,
29879,
742,
2322,
29922,
29945,
29900,
29892,
1134,
29922,
524,
29892,
1539,
485,
279,
2433,
29940,
742,
13,
462,
1678,
1371,
2433,
4537,
310,
3001,
21502,
12168,
304,
1065,
1495,
13,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
29880,
1758,
475,
742,
525,
489,
21891,
29899,
10492,
29899,
2151,
742,
2322,
29922,
29906,
29872,
29899,
29945,
29892,
1134,
29922,
7411,
29892,
13,
462,
1678,
1539,
485,
279,
2433,
29519,
742,
1371,
2433,
11228,
6509,
6554,
363,
289,
814,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
29880,
2096,
579,
742,
525,
489,
21891,
29899,
10492,
29899,
4299,
742,
2322,
29922,
29896,
29872,
29899,
29941,
29892,
1134,
29922,
7411,
29892,
13,
462,
1678,
1539,
485,
279,
2433,
29519,
742,
1371,
2433,
11228,
6509,
6554,
363,
4733,
1495,
13,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
29212,
29899,
7099,
388,
742,
2322,
29922,
29900,
29889,
29929,
29947,
29892,
1134,
29922,
7411,
29892,
13,
462,
1678,
1371,
2433,
2312,
363,
21762,
4978,
1495,
13,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
9847,
29899,
7099,
388,
29899,
7045,
742,
2322,
10457,
29896,
29892,
1134,
29922,
524,
29892,
13,
462,
1678,
1371,
2433,
16175,
2159,
363,
7945,
1495,
13,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
16175,
29899,
2311,
742,
2322,
29922,
29941,
29906,
29892,
1134,
29922,
524,
29892,
1539,
485,
279,
2433,
29940,
742,
13,
462,
1678,
1371,
2433,
14968,
9853,
2311,
1495,
13,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
2312,
742,
1134,
29922,
7411,
29892,
2322,
29922,
29906,
29897,
13,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
28084,
29899,
29277,
742,
302,
5085,
2433,
29974,
742,
13,
462,
1678,
2322,
11759,
29955,
29892,
29929,
29892,
29896,
29906,
1402,
1134,
29922,
524,
29892,
1371,
2433,
7922,
6837,
7546,
731,
1495,
13,
13,
5085,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
29937,
922,
5779,
13,
9302,
29889,
8172,
29889,
26776,
29898,
29946,
29906,
29897,
13,
7345,
305,
29889,
11288,
29918,
26776,
29898,
29946,
29906,
29897,
13,
7345,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
29946,
29906,
29897,
13,
7345,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
7700,
13,
7345,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
13,
2220,
29918,
978,
29918,
517,
29918,
18276,
861,
29918,
12171,
29918,
1958,
353,
426,
13,
1678,
525,
19274,
4735,
29918,
3445,
9552,
2396,
525,
23081,
861,
29918,
2541,
29918,
3352,
29909,
29918,
19274,
4735,
29918,
3445,
9552,
742,
13,
1678,
525,
8172,
29918,
7851,
2396,
525,
23081,
861,
29918,
2541,
29918,
3352,
29909,
29918,
8172,
29918,
7851,
291,
742,
13,
1678,
525,
8172,
29918,
26276,
2396,
525,
23081,
861,
29918,
2541,
29918,
3352,
29909,
29918,
8172,
29918,
26276,
742,
13,
1678,
525,
8172,
29918,
8143,
2396,
525,
23081,
861,
29918,
2541,
29918,
3352,
29909,
29918,
8172,
29918,
311,
1026,
291,
742,
13,
1678,
525,
8172,
2396,
525,
23081,
861,
742,
13,
1678,
525,
524,
336,
29918,
29880,
1114,
2396,
525,
2928,
336,
29918,
29931,
3035,
29909,
29915,
13,
29913,
13,
13,
1753,
1914,
29918,
6758,
29898,
1188,
1169,
29892,
3646,
29892,
954,
29918,
21134,
1125,
13,
1678,
4974,
1480,
1169,
29889,
12181,
1275,
3646,
29889,
12181,
13,
1678,
6410,
353,
448,
7345,
305,
29889,
2083,
29898,
29943,
29889,
1188,
29918,
2695,
3317,
29898,
1188,
1169,
29892,
3964,
29922,
29896,
11877,
5182,
29892,
9685,
29922,
29896,
29897,
13,
1678,
4974,
6410,
29889,
12181,
29961,
29900,
29962,
1275,
3646,
29889,
12181,
29961,
29900,
29962,
13,
1678,
736,
6410,
29889,
12676,
580,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
24706,
29890,
29889,
2344,
29898,
4836,
543,
6921,
29918,
2987,
358,
1159,
13,
1678,
24706,
29890,
29889,
2917,
29889,
5504,
29898,
5085,
29897,
13,
268,
13,
1678,
1065,
29918,
978,
353,
525,
14968,
29918,
29891,
26779,
29918,
29896,
29900,
29918,
2541,
29918,
3188,
29918,
22197,
29918,
8172,
29918,
7851,
29918,
29900,
29889,
29955,
29900,
29955,
29929,
29945,
29946,
29953,
29946,
29946,
29953,
29929,
29946,
29896,
29953,
29953,
29945,
29918,
29900,
29889,
29906,
29955,
29929,
29896,
29906,
29900,
29900,
29941,
29941,
29941,
29947,
29896,
29953,
29947,
29929,
29929,
29945,
29918,
29900,
29889,
29947,
29900,
29941,
29945,
29947,
29896,
29900,
29945,
29953,
29906,
29941,
29906,
29946,
29896,
29947,
29945,
29918,
19274,
4735,
29918,
3445,
9552,
29918,
29900,
29889,
29906,
29955,
29945,
29896,
29955,
29900,
29946,
29945,
29945,
29955,
29955,
29953,
29953,
29947,
29947,
29896,
29946,
29918,
29900,
29889,
29953,
29896,
29941,
29955,
29929,
29955,
29955,
29947,
29946,
29900,
29900,
29900,
29906,
29947,
29953,
29946,
29918,
29900,
29889,
29946,
29929,
29945,
29941,
29953,
29941,
29896,
29945,
29946,
29955,
29945,
29946,
29947,
29896,
29900,
29953,
29918,
8172,
29918,
7851,
29918,
29900,
29889,
29945,
29945,
29906,
29945,
29896,
29900,
29946,
29945,
29941,
29945,
29945,
29945,
29945,
29900,
29946,
29896,
29918,
29900,
29889,
29941,
29900,
29941,
29906,
29896,
29947,
29946,
29906,
29900,
29955,
29953,
29946,
29947,
29945,
29953,
29945,
29918,
29900,
29889,
29955,
29929,
29906,
29946,
29906,
29947,
29945,
29946,
29945,
29955,
29947,
29947,
29947,
29900,
29896,
29896,
29915,
13,
1678,
24706,
29890,
29889,
3389,
29889,
978,
353,
1065,
29918,
978,
13,
1678,
24706,
29890,
29889,
3389,
29889,
7620,
580,
13,
13,
1678,
7945,
353,
5839,
280,
29889,
1359,
29898,
3150,
877,
1272,
29914,
19773,
29918,
29891,
26779,
29918,
5451,
29914,
29891,
26779,
29918,
14968,
29918,
29896,
29900,
29918,
546,
29918,
1990,
29889,
29886,
6321,
742,
525,
6050,
8785,
13,
1678,
659,
353,
5839,
280,
29889,
1359,
29898,
3150,
877,
1272,
29914,
19773,
29918,
29891,
26779,
29918,
5451,
29914,
29891,
26779,
29918,
791,
29918,
29906,
29900,
29900,
29918,
546,
29918,
1990,
29889,
29886,
6321,
742,
525,
6050,
8785,
13,
13,
1678,
1904,
29918,
978,
353,
525,
2151,
29899,
3188,
29899,
4661,
1463,
29915,
13,
1678,
8783,
29918,
25378,
353,
525,
14968,
29918,
29896,
29900,
29915,
13,
13,
1678,
740,
29918,
7039,
353,
6024,
8172,
29918,
7851,
742,
525,
19274,
4735,
29918,
3445,
9552,
742,
525,
8172,
29918,
7851,
2033,
13,
1678,
2070,
11614,
353,
518,
29900,
29889,
29955,
29900,
29955,
29929,
29945,
29946,
29953,
29946,
29946,
29953,
29929,
29946,
29896,
29953,
29953,
29945,
29892,
29871,
29900,
29889,
29906,
29955,
29945,
29896,
29955,
29900,
29946,
29945,
29945,
29955,
29955,
29953,
29953,
29947,
29947,
29896,
29946,
29892,
29871,
29900,
29889,
29945,
29945,
29906,
29945,
29896,
29900,
29946,
29945,
29941,
29945,
29945,
29945,
29945,
29900,
29946,
29896,
29962,
13,
1678,
2980,
29918,
29896,
29879,
353,
518,
29900,
29889,
29906,
29955,
29929,
29896,
29906,
29900,
29900,
29941,
29941,
29941,
29947,
29896,
29953,
29947,
29929,
29929,
29945,
29892,
29871,
29900,
29889,
29953,
29896,
29941,
29955,
29929,
29955,
29955,
29947,
29946,
29900,
29900,
29900,
29906,
29947,
29953,
29946,
29892,
29871,
29900,
29889,
29941,
29900,
29941,
29906,
29896,
29947,
29946,
29906,
29900,
29955,
29953,
29946,
29947,
29945,
29953,
29945,
29962,
13,
1678,
2980,
29918,
29906,
29879,
353,
518,
29900,
29889,
29947,
29900,
29941,
29945,
29947,
29896,
29900,
29945,
29953,
29906,
29941,
29906,
29946,
29896,
29947,
29945,
29892,
29871,
29900,
29889,
29946,
29929,
29945,
29941,
29953,
29941,
29896,
29945,
29946,
29955,
29945,
29946,
29947,
29896,
29900,
29953,
29892,
29871,
29900,
29889,
29955,
29929,
29906,
29946,
29906,
29947,
29945,
29946,
29945,
29955,
29947,
29947,
29947,
29900,
29896,
29896,
29962,
13,
13,
1678,
20035,
353,
5159,
13,
13,
1678,
363,
474,
297,
3464,
29898,
2435,
29898,
2220,
29918,
7039,
22164,
13,
4706,
740,
29918,
978,
353,
740,
29918,
7039,
29961,
29875,
29962,
13,
4706,
6976,
29918,
974,
29918,
6214,
353,
2070,
11614,
29961,
29875,
29962,
13,
4706,
2980,
29918,
29896,
353,
2980,
29918,
29896,
29879,
29961,
29875,
29962,
13,
4706,
2980,
29918,
29906,
353,
2980,
29918,
29906,
29879,
29961,
29875,
29962,
13,
308,
13,
4706,
565,
740,
29918,
978,
297,
6024,
8172,
742,
525,
524,
336,
29918,
29880,
1114,
2033,
29901,
13,
9651,
396,
29871,
29900,
6273,
13,
9651,
6837,
353,
740,
29918,
978,
29918,
517,
29918,
18276,
861,
29918,
12171,
29918,
1958,
29961,
2220,
29918,
978,
29962,
13,
9651,
18765,
287,
29918,
24713,
353,
1653,
29918,
24713,
29898,
13,
18884,
7945,
1839,
29990,
7464,
7945,
1839,
29891,
7464,
1904,
29918,
978,
29892,
29871,
29906,
29945,
29953,
29892,
6837,
29922,
28084,
29892,
954,
29918,
13203,
29922,
29896,
29900,
29892,
13,
18884,
6976,
29918,
974,
29918,
6214,
353,
6976,
29918,
974,
29918,
6214,
29892,
29871,
13,
18884,
8783,
29918,
25378,
353,
8783,
29918,
25378,
29897,
13,
308,
13,
4706,
25342,
740,
29918,
978,
297,
6024,
19274,
4735,
29918,
3445,
9552,
742,
525,
8172,
29918,
7851,
742,
525,
8172,
29918,
26276,
742,
525,
8172,
29918,
8143,
2033,
29901,
13,
9651,
396,
697,
2980,
13,
9651,
6837,
353,
740,
29918,
978,
29918,
517,
29918,
18276,
861,
29918,
12171,
29918,
1958,
29961,
2220,
29918,
978,
29962,
13,
9651,
18765,
287,
29918,
24713,
353,
1653,
29918,
24713,
29898,
13,
18884,
7945,
1839,
29990,
7464,
7945,
1839,
29891,
7464,
1904,
29918,
978,
29892,
29871,
29906,
29945,
29953,
29892,
6837,
29922,
28084,
29892,
954,
29918,
13203,
29922,
29896,
29900,
29892,
13,
18884,
6976,
29918,
974,
29918,
6214,
353,
6976,
29918,
974,
29918,
6214,
29892,
15595,
29922,
23516,
29918,
29896,
29892,
29871,
13,
18884,
8783,
29918,
25378,
353,
8783,
29918,
25378,
29897,
13,
308,
13,
4706,
25342,
740,
29918,
978,
1275,
525,
1639,
29918,
29880,
1114,
2396,
13,
9651,
396,
29871,
29906,
6273,
13,
9651,
889,
29876,
353,
938,
29898,
23516,
29918,
29896,
334,
29871,
29896,
29900,
29897,
718,
29871,
29896,
396,
341,
5086,
1854,
591,
505,
472,
280,
579,
413,
353,
29871,
29896,
13,
9651,
3887,
353,
2980,
29918,
29906,
13,
9651,
18765,
287,
29918,
24713,
353,
1653,
29918,
24713,
29898,
13,
18884,
7945,
1839,
29990,
7464,
7945,
1839,
29891,
7464,
1904,
29918,
978,
29892,
29871,
29906,
29945,
29953,
29892,
6837,
2433,
4074,
29918,
29931,
3035,
29909,
742,
954,
29918,
13203,
29922,
29896,
29900,
29892,
13,
18884,
6976,
29918,
974,
29918,
6214,
353,
6976,
29918,
974,
29918,
6214,
29892,
29871,
13,
18884,
889,
29876,
29918,
29880,
1114,
29922,
3959,
29876,
29892,
3887,
29918,
29880,
1114,
29922,
2589,
29892,
8783,
29918,
25378,
353,
8783,
29918,
25378,
29897,
13,
308,
13,
4706,
20035,
29889,
4397,
29898,
2987,
358,
287,
29918,
24713,
29897,
13,
268,
13,
1678,
2967,
29918,
14968,
353,
1653,
29918,
24713,
29898,
14968,
1839,
29990,
7464,
7945,
1839,
29891,
7464,
29871,
13,
4706,
1904,
29918,
978,
29892,
29871,
29906,
29945,
29953,
29892,
6837,
2433,
20908,
5926,
742,
954,
29918,
13203,
29922,
29896,
29900,
29897,
13,
1678,
396,
20035,
29889,
4397,
29898,
3188,
29918,
14968,
29897,
13,
13,
1678,
659,
29918,
24713,
353,
1653,
29918,
24713,
29898,
791,
1839,
29990,
7464,
659,
1839,
29891,
7464,
1904,
29918,
978,
29892,
29871,
29906,
29945,
29953,
29892,
6837,
29922,
8516,
29897,
13,
13,
1678,
7945,
29918,
24713,
353,
1281,
4117,
16390,
24541,
29898,
14538,
1691,
29897,
13,
13,
1678,
7945,
29918,
29881,
2075,
29877,
1664,
353,
3630,
10036,
29898,
14968,
29918,
24713,
29892,
9853,
29918,
2311,
29922,
5085,
29889,
16175,
29918,
2311,
29892,
954,
29918,
1287,
414,
29922,
29941,
29892,
528,
21897,
29922,
5574,
29897,
13,
1678,
659,
29918,
29881,
2075,
29877,
1664,
353,
3630,
10036,
29898,
791,
29918,
24713,
29892,
9853,
29918,
2311,
29922,
29953,
29946,
29892,
954,
29918,
1287,
414,
29922,
29941,
29892,
528,
21897,
29922,
8824,
29897,
13,
13,
1678,
1904,
353,
23478,
1626,
29898,
29896,
29900,
29892,
5852,
467,
29883,
6191,
580,
13,
1678,
1904,
353,
302,
29876,
29889,
1469,
2177,
6553,
29898,
4299,
29897,
13,
1678,
24706,
29890,
29889,
12344,
29898,
4299,
29892,
1480,
29922,
497,
29897,
13,
268,
13,
1678,
5994,
3950,
353,
11783,
29956,
29898,
13,
4706,
518,
13,
9651,
8853,
7529,
1115,
1904,
29889,
5453,
29889,
2151,
29889,
16744,
3285,
376,
29212,
1115,
6389,
29889,
29880,
1758,
475,
1118,
13,
9651,
8853,
7529,
1115,
1904,
29889,
5453,
29889,
10660,
29889,
16744,
3285,
376,
29212,
1115,
6389,
29889,
29880,
2096,
579,
1118,
13,
4706,
4514,
13,
1678,
1723,
13,
268,
13,
1678,
20228,
19907,
353,
6389,
29889,
29212,
29918,
7099,
388,
13,
1678,
301,
29878,
29918,
816,
14952,
353,
4842,
305,
29889,
20640,
29889,
29212,
29918,
816,
14952,
29889,
1252,
1112,
2556,
29519,
29898,
20640,
3950,
29922,
20640,
3950,
29892,
330,
2735,
29922,
7099,
388,
19907,
29897,
13,
13,
1678,
28770,
291,
353,
302,
29876,
29889,
29907,
2124,
5292,
14441,
29931,
2209,
580,
13,
1678,
1900,
29918,
791,
29918,
562,
2764,
4135,
353,
29871,
29900,
13,
13,
1678,
363,
21502,
305,
297,
3464,
29898,
5085,
29889,
1022,
2878,
29879,
1125,
13,
4706,
396,
28186,
2425,
13,
4706,
1904,
29889,
14968,
580,
13,
4706,
363,
9853,
297,
260,
29939,
18933,
29898,
14968,
29918,
29881,
2075,
29877,
1664,
29892,
5153,
29922,
29888,
29915,
5323,
262,
21502,
305,
426,
1022,
2878,
10162,
1125,
13,
9651,
18511,
29918,
29896,
29892,
18511,
29918,
29906,
29892,
3858,
29918,
29896,
29892,
3858,
29918,
29906,
353,
9853,
13,
9651,
4974,
18511,
29918,
29896,
29889,
12181,
1275,
18511,
29918,
29906,
29889,
12181,
13,
632,
13,
9651,
6837,
29918,
13148,
353,
7442,
29889,
8172,
29889,
16957,
29898,
5085,
29889,
28084,
29918,
29277,
29897,
13,
9651,
301,
353,
7442,
29889,
8172,
29889,
3571,
29898,
5085,
29889,
2312,
29892,
6389,
29889,
2312,
29897,
13,
9651,
301,
353,
4236,
29898,
29880,
29892,
29871,
29896,
29899,
29880,
29897,
13,
632,
13,
9651,
1480,
1169,
353,
1904,
29898,
26716,
29918,
29896,
29889,
29883,
6191,
3285,
18511,
29918,
29906,
29889,
29883,
6191,
3285,
301,
29892,
6837,
29918,
13148,
29897,
13,
9651,
12420,
29918,
21134,
353,
3858,
29918,
29896,
334,
301,
718,
3858,
29918,
29906,
334,
313,
29896,
29899,
29880,
29897,
13,
9651,
6410,
353,
1914,
29918,
6758,
29898,
1188,
1169,
29892,
12420,
29918,
21134,
29889,
29883,
6191,
3285,
954,
29918,
21134,
29922,
29896,
29900,
29897,
13,
9651,
24706,
29890,
29889,
1188,
3319,
29915,
5323,
262,
6410,
2396,
6410,
29889,
667,
580,
1118,
4331,
29922,
1022,
2878,
29897,
13,
9651,
5994,
3950,
29889,
9171,
29918,
5105,
580,
13,
9651,
6410,
29889,
1627,
1328,
580,
13,
9651,
5994,
3950,
29889,
10568,
580,
13,
308,
13,
4706,
24706,
29890,
29889,
1188,
3319,
13,
9651,
525,
29212,
29918,
2151,
2396,
29212,
29918,
816,
14952,
29889,
657,
29918,
29212,
580,
29961,
29900,
1402,
29871,
13,
9651,
525,
29212,
29918,
10660,
2396,
29212,
29918,
816,
14952,
29889,
657,
29918,
29212,
580,
29961,
29896,
29962,
1118,
13,
9651,
4331,
29922,
1022,
2878,
13,
4706,
1723,
13,
308,
13,
4706,
565,
21502,
305,
5277,
6389,
29889,
9847,
29918,
7099,
388,
29918,
7045,
29901,
13,
9651,
301,
29878,
29918,
816,
14952,
29889,
10568,
580,
13,
308,
13,
4706,
396,
2630,
2425,
13,
4706,
1904,
29889,
14513,
580,
13,
4706,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
9651,
6410,
29918,
7827,
353,
29871,
29900,
13,
9651,
1959,
353,
29871,
29900,
13,
9651,
3001,
29918,
11249,
353,
29871,
29900,
13,
13,
9651,
363,
9853,
297,
260,
29939,
18933,
29898,
791,
29918,
29881,
2075,
29877,
1664,
29892,
5153,
29922,
29888,
29915,
1440,
21502,
305,
426,
1022,
2878,
10162,
1125,
13,
18884,
18511,
29918,
726,
29892,
17117,
3646,
29892,
903,
353,
9853,
13,
462,
13,
18884,
14391,
353,
1904,
29898,
26716,
29918,
726,
29889,
29883,
6191,
3101,
13,
18884,
6410,
353,
28770,
291,
29898,
4905,
29879,
29892,
3646,
29889,
29883,
6191,
3101,
13,
18884,
396,
599,
29918,
6758,
267,
29889,
4397,
29898,
6758,
29889,
667,
3101,
13,
18884,
17117,
25383,
353,
4842,
305,
29889,
3317,
29898,
4905,
29879,
29889,
1272,
29892,
29871,
29896,
29897,
13,
18884,
1959,
4619,
313,
9302,
29889,
2378,
29898,
11965,
18186,
29889,
21970,
3101,
1275,
7442,
29889,
2378,
29898,
5182,
29889,
21970,
3101,
467,
2083,
580,
13,
18884,
6410,
29918,
7827,
4619,
6410,
29889,
667,
580,
334,
18511,
29918,
726,
29889,
12181,
29961,
29900,
29962,
13,
18884,
3001,
29918,
11249,
4619,
18511,
29918,
726,
29889,
12181,
29961,
29900,
29962,
13,
632,
13,
9651,
1035,
29918,
7827,
353,
1959,
847,
3001,
29918,
11249,
13,
9651,
6410,
29918,
7827,
353,
6410,
29918,
7827,
847,
3001,
29918,
11249,
13,
9651,
1596,
29898,
29888,
29915,
29923,
1129,
305,
1353,
426,
1022,
2878,
29913,
2630,
365,
2209,
426,
6758,
29918,
7827,
29913,
2630,
13600,
426,
5753,
29918,
7827,
29913,
1495,
13,
9651,
24706,
29890,
29889,
1188,
3319,
29915,
1440,
6410,
29915,
584,
6410,
29918,
7827,
1118,
4331,
29922,
1022,
2878,
29897,
13,
9651,
24706,
29890,
29889,
1188,
3319,
29915,
1440,
13600,
2396,
1035,
29918,
7827,
1118,
4331,
29922,
1022,
2878,
29897,
13,
308,
13,
4706,
565,
1035,
29918,
7827,
1405,
1900,
29918,
791,
29918,
562,
2764,
4135,
29901,
13,
9651,
1900,
29918,
791,
29918,
562,
2764,
4135,
353,
1035,
29918,
7827,
13,
9651,
24706,
29890,
29889,
3389,
29889,
7727,
1839,
1440,
13600,
2033,
353,
1035,
29918,
7827,
13,
9651,
1423,
3149,
29918,
2084,
353,
285,
29915,
3198,
9748,
19248,
3389,
29918,
978,
6822,
29915,
13,
9651,
565,
451,
2897,
29889,
2084,
29889,
275,
3972,
29898,
3198,
3149,
29918,
2084,
1125,
13,
18884,
2897,
29889,
29885,
12535,
12935,
29898,
3198,
3149,
29918,
2084,
29897,
13,
9651,
4842,
305,
29889,
7620,
29898,
4299,
29892,
285,
29915,
29912,
3198,
3149,
29918,
2084,
6822,
4299,
29918,
13318,
29889,
29886,
386,
1495,
2
] |
stations.py | wipfli/airspaces | 1 | 186956 | import requests
import pandas as pd
from io import StringIO
import json
r = requests.get('https://data.geo.admin.ch/ch.meteoschweiz.messnetz-automatisch/ch.meteoschweiz.messnetz-automatisch_de.csv')
df = pd.read_csv(StringIO(r.text), sep=';')
features = []
for i in range(299):
if df.loc[i]['Stationstyp'] == 'Wetterstation':
name = df.loc[i]['Station']
wigos_id = df.loc[i]['WIGOS-ID']
altitude = df.loc[i]['Stationshöhe m. ü. M.']
latitude = df.loc[i]['Breitengrad']
longitude = df.loc[i]['Längengrad']
properties = {
'name': str(name),
'id': str(wigos_id),
'altitude': str(altitude),
'longitude': ('%.4f' % longitude),
'latitude': ('%.4f' % latitude),
}
feature = {
'type': 'Feature',
'properties': properties,
'geometry': {
'type': 'Point',
'coordinates': [float('%.4f' % longitude), float('%.4f' % latitude)]
},
}
features += [feature]
geojson = {
'type': 'FeatureCollection',
'features': features
}
with open('stations.geojson', 'w') as f:
json.dump(geojson, f)
| [
1,
1053,
7274,
30004,
13,
5215,
11701,
408,
10518,
30004,
13,
3166,
12013,
1053,
1714,
5971,
30004,
13,
5215,
4390,
30004,
13,
30004,
13,
29878,
353,
7274,
29889,
657,
877,
991,
597,
1272,
29889,
24756,
29889,
6406,
29889,
305,
29914,
305,
29889,
2527,
29872,
359,
305,
705,
466,
29889,
12062,
1212,
29920,
29899,
17405,
271,
783,
29914,
305,
29889,
2527,
29872,
359,
305,
705,
466,
29889,
12062,
1212,
29920,
29899,
17405,
271,
783,
29918,
311,
29889,
7638,
1495,
30004,
13,
30004,
13,
2176,
353,
10518,
29889,
949,
29918,
7638,
29898,
1231,
5971,
29898,
29878,
29889,
726,
511,
16345,
2433,
29936,
1495,
30004,
13,
30004,
13,
22100,
353,
5159,
30004,
13,
1454,
474,
297,
3464,
29898,
29906,
29929,
29929,
1125,
30004,
13,
1678,
565,
4489,
29889,
2029,
29961,
29875,
22322,
22814,
303,
1478,
2033,
1275,
525,
29956,
19036,
19569,
2396,
30004,
13,
4706,
1024,
353,
4489,
29889,
2029,
29961,
29875,
22322,
22814,
2033,
30004,
13,
4706,
281,
19336,
29918,
333,
353,
4489,
29889,
2029,
29961,
29875,
22322,
29956,
6259,
3267,
29899,
1367,
2033,
30004,
13,
4706,
5272,
4279,
353,
4489,
29889,
2029,
29961,
29875,
22322,
855,
800,
13238,
354,
286,
29889,
2505,
29889,
341,
29889,
2033,
30004,
13,
4706,
26271,
353,
4489,
29889,
2029,
29961,
29875,
22322,
20130,
3537,
5105,
2033,
30004,
13,
4706,
28745,
353,
4489,
29889,
2029,
29961,
29875,
22322,
29931,
21644,
5105,
2033,
30004,
13,
4706,
6756,
13,
4706,
4426,
353,
3336,
13,
9651,
525,
978,
2396,
851,
29898,
978,
511,
30004,
13,
9651,
525,
333,
2396,
851,
29898,
9192,
359,
29918,
333,
511,
30004,
13,
9651,
525,
1997,
4279,
2396,
851,
29898,
1997,
4279,
511,
30004,
13,
9651,
525,
5426,
4279,
2396,
6702,
15543,
29946,
29888,
29915,
1273,
28745,
511,
30004,
13,
9651,
525,
5066,
4279,
2396,
6702,
15543,
29946,
29888,
29915,
1273,
26271,
511,
30004,
13,
4706,
4970,
13,
4706,
4682,
353,
3336,
13,
9651,
525,
1853,
2396,
525,
19132,
23592,
13,
9651,
525,
11330,
2396,
4426,
11167,
13,
9651,
525,
19156,
2396,
3336,
13,
18884,
525,
1853,
2396,
525,
5228,
23592,
13,
18884,
525,
1111,
24266,
2396,
518,
7411,
877,
15543,
29946,
29888,
29915,
1273,
28745,
511,
5785,
877,
15543,
29946,
29888,
29915,
1273,
26271,
4638,
30004,
13,
9651,
2981,
30004,
13,
4706,
4970,
13,
4706,
5680,
4619,
518,
14394,
29962,
30004,
13,
30004,
13,
24756,
3126,
353,
3336,
13,
1678,
525,
1853,
2396,
525,
19132,
7196,
23592,
13,
1678,
525,
22100,
2396,
5680,
30004,
13,
8117,
13,
30004,
13,
2541,
1722,
877,
303,
800,
29889,
24756,
3126,
742,
525,
29893,
1495,
408,
285,
29901,
30004,
13,
1678,
4390,
29889,
15070,
29898,
24756,
3126,
29892,
285,
8443,
13,
2
] |
src/migrations/versions/0930fdefb325_initial_migration.py | vishaltanwar96/Py-iTrack | 4 | 43632 | """initial migration
Revision ID: 0930fdefb325
Revises:
Create Date: 2020-09-27 21:13:23.088570
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0930fdefb325'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('criticality',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('value', sa.String(length=100), nullable=False),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('value')
)
op.create_table('role',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('value', sa.String(length=100), nullable=False),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('value')
)
op.create_table('status',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('value', sa.String(length=100), nullable=False),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('value')
)
op.create_table('user',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('first_name', sa.String(length=30), nullable=False),
sa.Column('last_name', sa.String(length=30), nullable=False),
sa.Column('email', sa.String(length=200), nullable=False),
sa.Column('password', sa.Text(), nullable=False),
sa.Column('is_verified', sa.Boolean(), server_default=sa.text('0'), nullable=True),
sa.Column('created_at', sa.DateTime(), server_default=sa.text('now()'), nullable=True),
sa.Column('role_id', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['role_id'], ['role.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('email')
)
op.create_table('organisation',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('name', sa.String(length=70), nullable=False),
sa.Column('passcode', sa.Text(), nullable=False),
sa.Column('location', sa.String(length=30), nullable=False),
sa.Column('registered_at', sa.DateTime(), server_default=sa.text('now()'), nullable=False),
sa.Column('registered_by', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['registered_by'], ['user.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name')
)
op.create_table('project',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('name', sa.String(length=100), nullable=False),
sa.Column('description', sa.String(length=255), server_default='', nullable=False),
sa.Column('status_id', sa.Integer(), nullable=True),
sa.Column('created_at', sa.DateTime(), server_default=sa.text('now()'), nullable=False),
sa.Column('organisation_id', sa.Integer(), nullable=True),
sa.Column('created_by', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['created_by'], ['user.id'], ),
sa.ForeignKeyConstraint(['organisation_id'], ['organisation.id'], ),
sa.ForeignKeyConstraint(['status_id'], ['status.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name')
)
op.create_table('user_organisation',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('user_id', sa.Integer(), nullable=False),
sa.Column('organisation_id', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['organisation_id'], ['organisation.id'], ),
sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
sa.PrimaryKeyConstraint('id')
)
op.create_table('project_history',
sa.Column('remarks', sa.Text(), server_default=sa.text('NULL'), nullable=True),
sa.Column('created_at', sa.DateTime(), server_default=sa.text('now()'), nullable=False),
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('project_id', sa.Integer(), nullable=False),
sa.Column('created_by', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['created_by'], ['user.id'], ),
sa.ForeignKeyConstraint(['project_id'], ['project.id'], ),
sa.PrimaryKeyConstraint('id')
)
op.create_table('task',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('name', sa.String(length=200), nullable=False),
sa.Column('description', sa.Text(), nullable=False),
sa.Column('created_at', sa.DateTime(), server_default=sa.text('now()'), nullable=False),
sa.Column('created_by', sa.Integer(), nullable=True),
sa.Column('assigned_by', sa.Integer(), nullable=True),
sa.Column('assigned_to', sa.Integer(), nullable=True),
sa.Column('reviewed_by', sa.Integer(), nullable=True),
sa.Column('status_id', sa.Integer(), nullable=True),
sa.Column('criticality_id', sa.Integer(), nullable=True),
sa.Column('expected_completion_date', sa.DateTime(),
sa.Computed('created_at + INTERVAL 3 DAY', persisted=True), nullable=False),
sa.Column('project_id', sa.Integer(), nullable=True),
sa.Column('actual_completion_date', sa.DateTime(), server_default=sa.text('NULL'), nullable=True),
sa.ForeignKeyConstraint(['assigned_by'], ['user.id'], ),
sa.ForeignKeyConstraint(['assigned_to'], ['user.id'], ),
sa.ForeignKeyConstraint(['created_by'], ['user.id'], ),
sa.ForeignKeyConstraint(['criticality_id'], ['criticality.id'], ),
sa.ForeignKeyConstraint(['project_id'], ['project.id'], ),
sa.ForeignKeyConstraint(['reviewed_by'], ['user.id'], ),
sa.ForeignKeyConstraint(['status_id'], ['status.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name')
)
op.create_table('user_project',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('user_id', sa.Integer(), nullable=False),
sa.Column('project_id', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['project_id'], ['project.id'], ),
sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
sa.PrimaryKeyConstraint('id')
)
op.create_table('task_history',
sa.Column('remarks', sa.Text(), server_default=sa.text('NULL'), nullable=True),
sa.Column('created_at', sa.DateTime(), server_default=sa.text('now()'), nullable=False),
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('task_id', sa.Integer(), nullable=False),
sa.Column('created_by', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['created_by'], ['user.id'], ),
sa.ForeignKeyConstraint(['task_id'], ['task.id'], ),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('task_history')
op.drop_table('user_project')
op.drop_table('task')
op.drop_table('project_history')
op.drop_table('user_organisation')
op.drop_table('project')
op.drop_table('organisation')
op.drop_table('user')
op.drop_table('status')
op.drop_table('role')
op.drop_table('criticality')
# ### end Alembic commands ###
| [
1,
9995,
11228,
20332,
13,
13,
1123,
4924,
3553,
29901,
29871,
29900,
29929,
29941,
29900,
29888,
1753,
29890,
29941,
29906,
29945,
13,
1123,
1730,
267,
29901,
29871,
13,
4391,
4712,
29901,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29929,
29899,
29906,
29955,
29871,
29906,
29896,
29901,
29896,
29941,
29901,
29906,
29941,
29889,
29900,
29947,
29947,
29945,
29955,
29900,
13,
13,
15945,
29908,
13,
3166,
20712,
29890,
293,
1053,
1015,
13,
5215,
4576,
284,
305,
6764,
408,
872,
13,
13,
29937,
26554,
2893,
14903,
29892,
1304,
491,
319,
2409,
29890,
293,
29889,
13,
276,
4924,
353,
525,
29900,
29929,
29941,
29900,
29888,
1753,
29890,
29941,
29906,
29945,
29915,
13,
3204,
29918,
276,
4924,
353,
6213,
13,
17519,
29918,
21134,
353,
6213,
13,
2716,
1975,
29918,
265,
353,
6213,
13,
13,
13,
1753,
14955,
7295,
13,
1678,
396,
835,
8260,
4469,
5759,
491,
319,
2409,
29890,
293,
448,
3113,
10365,
29991,
835,
13,
1678,
1015,
29889,
3258,
29918,
2371,
877,
9695,
936,
537,
742,
13,
462,
1678,
872,
29889,
4409,
877,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
1767,
742,
872,
29889,
1231,
29898,
2848,
29922,
29896,
29900,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
26666,
2558,
21529,
877,
333,
5477,
13,
462,
1678,
872,
29889,
8110,
802,
21529,
877,
1767,
1495,
13,
462,
1678,
1723,
13,
1678,
1015,
29889,
3258,
29918,
2371,
877,
12154,
742,
13,
462,
1678,
872,
29889,
4409,
877,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
1767,
742,
872,
29889,
1231,
29898,
2848,
29922,
29896,
29900,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
26666,
2558,
21529,
877,
333,
5477,
13,
462,
1678,
872,
29889,
8110,
802,
21529,
877,
1767,
1495,
13,
462,
1678,
1723,
13,
1678,
1015,
29889,
3258,
29918,
2371,
877,
4882,
742,
13,
462,
1678,
872,
29889,
4409,
877,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
1767,
742,
872,
29889,
1231,
29898,
2848,
29922,
29896,
29900,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
26666,
2558,
21529,
877,
333,
5477,
13,
462,
1678,
872,
29889,
8110,
802,
21529,
877,
1767,
1495,
13,
462,
1678,
1723,
13,
1678,
1015,
29889,
3258,
29918,
2371,
877,
1792,
742,
13,
462,
1678,
872,
29889,
4409,
877,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
4102,
29918,
978,
742,
872,
29889,
1231,
29898,
2848,
29922,
29941,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
4230,
29918,
978,
742,
872,
29889,
1231,
29898,
2848,
29922,
29941,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
5269,
742,
872,
29889,
1231,
29898,
2848,
29922,
29906,
29900,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
5630,
742,
872,
29889,
1626,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
275,
29918,
369,
2164,
742,
872,
29889,
18146,
3285,
1923,
29918,
4381,
29922,
4977,
29889,
726,
877,
29900,
5477,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
11600,
29918,
271,
742,
872,
29889,
11384,
3285,
1923,
29918,
4381,
29922,
4977,
29889,
726,
877,
3707,
580,
5477,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
12154,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
12154,
29918,
333,
7464,
6024,
12154,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
26666,
2558,
21529,
877,
333,
5477,
13,
462,
1678,
872,
29889,
8110,
802,
21529,
877,
5269,
1495,
13,
462,
1678,
1723,
13,
1678,
1015,
29889,
3258,
29918,
2371,
877,
22481,
742,
13,
462,
1678,
872,
29889,
4409,
877,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
978,
742,
872,
29889,
1231,
29898,
2848,
29922,
29955,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
3364,
401,
742,
872,
29889,
1626,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
5479,
742,
872,
29889,
1231,
29898,
2848,
29922,
29941,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
9573,
287,
29918,
271,
742,
872,
29889,
11384,
3285,
1923,
29918,
4381,
29922,
4977,
29889,
726,
877,
3707,
580,
5477,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
9573,
287,
29918,
1609,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
9573,
287,
29918,
1609,
7464,
6024,
1792,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
26666,
2558,
21529,
877,
333,
5477,
13,
462,
1678,
872,
29889,
8110,
802,
21529,
877,
978,
1495,
13,
462,
1678,
1723,
13,
1678,
1015,
29889,
3258,
29918,
2371,
877,
4836,
742,
13,
462,
1678,
872,
29889,
4409,
877,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
978,
742,
872,
29889,
1231,
29898,
2848,
29922,
29896,
29900,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
8216,
742,
872,
29889,
1231,
29898,
2848,
29922,
29906,
29945,
29945,
511,
1923,
29918,
4381,
2433,
742,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
4882,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
11600,
29918,
271,
742,
872,
29889,
11384,
3285,
1923,
29918,
4381,
29922,
4977,
29889,
726,
877,
3707,
580,
5477,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
22481,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
11600,
29918,
1609,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
11600,
29918,
1609,
7464,
6024,
1792,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
22481,
29918,
333,
7464,
6024,
22481,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
4882,
29918,
333,
7464,
6024,
4882,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
26666,
2558,
21529,
877,
333,
5477,
13,
462,
1678,
872,
29889,
8110,
802,
21529,
877,
978,
1495,
13,
462,
1678,
1723,
13,
1678,
1015,
29889,
3258,
29918,
2371,
877,
1792,
29918,
22481,
742,
13,
462,
1678,
872,
29889,
4409,
877,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
1792,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
22481,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
22481,
29918,
333,
7464,
6024,
22481,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
1792,
29918,
333,
7464,
6024,
1792,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
26666,
2558,
21529,
877,
333,
1495,
13,
462,
1678,
1723,
13,
1678,
1015,
29889,
3258,
29918,
2371,
877,
4836,
29918,
18434,
742,
13,
462,
1678,
872,
29889,
4409,
877,
1745,
17862,
742,
872,
29889,
1626,
3285,
1923,
29918,
4381,
29922,
4977,
29889,
726,
877,
10074,
5477,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
11600,
29918,
271,
742,
872,
29889,
11384,
3285,
1923,
29918,
4381,
29922,
4977,
29889,
726,
877,
3707,
580,
5477,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
4836,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
11600,
29918,
1609,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
11600,
29918,
1609,
7464,
6024,
1792,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
4836,
29918,
333,
7464,
6024,
4836,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
26666,
2558,
21529,
877,
333,
1495,
13,
462,
1678,
1723,
13,
1678,
1015,
29889,
3258,
29918,
2371,
877,
7662,
742,
13,
462,
1678,
872,
29889,
4409,
877,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
978,
742,
872,
29889,
1231,
29898,
2848,
29922,
29906,
29900,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
8216,
742,
872,
29889,
1626,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
11600,
29918,
271,
742,
872,
29889,
11384,
3285,
1923,
29918,
4381,
29922,
4977,
29889,
726,
877,
3707,
580,
5477,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
11600,
29918,
1609,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
465,
12961,
29918,
1609,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
465,
12961,
29918,
517,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
27828,
287,
29918,
1609,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
4882,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
9695,
936,
537,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
9684,
29918,
5729,
12757,
29918,
1256,
742,
872,
29889,
11384,
3285,
13,
462,
795,
872,
29889,
20606,
287,
877,
11600,
29918,
271,
718,
2672,
4945,
8932,
29871,
29941,
21330,
29979,
742,
3736,
12652,
29922,
5574,
511,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
4836,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
19304,
29918,
5729,
12757,
29918,
1256,
742,
872,
29889,
11384,
3285,
1923,
29918,
4381,
29922,
4977,
29889,
726,
877,
10074,
5477,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
465,
12961,
29918,
1609,
7464,
6024,
1792,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
465,
12961,
29918,
517,
7464,
6024,
1792,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
11600,
29918,
1609,
7464,
6024,
1792,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
9695,
936,
537,
29918,
333,
7464,
6024,
9695,
936,
537,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
4836,
29918,
333,
7464,
6024,
4836,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
27828,
287,
29918,
1609,
7464,
6024,
1792,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
4882,
29918,
333,
7464,
6024,
4882,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
26666,
2558,
21529,
877,
333,
5477,
13,
462,
1678,
872,
29889,
8110,
802,
21529,
877,
978,
1495,
13,
462,
1678,
1723,
13,
1678,
1015,
29889,
3258,
29918,
2371,
877,
1792,
29918,
4836,
742,
13,
462,
1678,
872,
29889,
4409,
877,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
1792,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
4836,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
4836,
29918,
333,
7464,
6024,
4836,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
1792,
29918,
333,
7464,
6024,
1792,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
26666,
2558,
21529,
877,
333,
1495,
13,
462,
1678,
1723,
13,
1678,
1015,
29889,
3258,
29918,
2371,
877,
7662,
29918,
18434,
742,
13,
462,
1678,
872,
29889,
4409,
877,
1745,
17862,
742,
872,
29889,
1626,
3285,
1923,
29918,
4381,
29922,
4977,
29889,
726,
877,
10074,
5477,
1870,
519,
29922,
5574,
511,
13,
462,
1678,
872,
29889,
4409,
877,
11600,
29918,
271,
742,
872,
29889,
11384,
3285,
1923,
29918,
4381,
29922,
4977,
29889,
726,
877,
3707,
580,
5477,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
7662,
29918,
333,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
4409,
877,
11600,
29918,
1609,
742,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
11600,
29918,
1609,
7464,
6024,
1792,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
27755,
2558,
21529,
18959,
7662,
29918,
333,
7464,
6024,
7662,
29889,
333,
7464,
10353,
13,
462,
1678,
872,
29889,
26666,
2558,
21529,
877,
333,
1495,
13,
462,
1678,
1723,
13,
1678,
396,
835,
1095,
319,
2409,
29890,
293,
8260,
835,
13,
13,
13,
1753,
1623,
8228,
7295,
13,
1678,
396,
835,
8260,
4469,
5759,
491,
319,
2409,
29890,
293,
448,
3113,
10365,
29991,
835,
13,
1678,
1015,
29889,
8865,
29918,
2371,
877,
7662,
29918,
18434,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2371,
877,
1792,
29918,
4836,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2371,
877,
7662,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2371,
877,
4836,
29918,
18434,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2371,
877,
1792,
29918,
22481,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2371,
877,
4836,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2371,
877,
22481,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2371,
877,
1792,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2371,
877,
4882,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2371,
877,
12154,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2371,
877,
9695,
936,
537,
1495,
13,
1678,
396,
835,
1095,
319,
2409,
29890,
293,
8260,
835,
13,
2
] |
src/omfgp/scp02.py | stepansnigirev/omfgp | 0 | 141444 | class SCP02:
pass
| [
1,
770,
317,
6271,
29900,
29906,
29901,
13,
12,
3364,
13,
2
] |
Problemset/distribute-candies-to-people/distribute-candies-to-people.py | KivenCkl/LeetCode | 7 | 75055 | <filename>Problemset/distribute-candies-to-people/distribute-candies-to-people.py
# @Title: 分糖果 II (Distribute Candies to People)
# @Author: KivenC
# @Date: 2019-07-03 18:34:09
# @Runtime: 44 ms
# @Memory: 13 MB
class Solution:
def distributeCandies(self, candies: int, num_people: int) -> List[int]:
# # way 1
# # 假设总分发次数为 k,则总共需要的糖果数为 S(k) = (1 + k) * k / 2
# # 由于最后一次可以不发满,无论剩多少都会给最后一个小朋友,所以 S(k-1) < candies <= S(k)
# # 通过该不等式可以算出 (-1+(1+8*candies)^(1/2))/2 <= k < (1+(1+8*candies)^(1/2))/2
# import math
# k = math.ceil((math.sqrt(1 + 8 * candies) - 1) / 2)
# i = 0
# res = [0] * num_people
# # 因为不知道最后一次需要发多少糖果,因此循环分发 k - 1 次
# while k > 1:
# res[i % num_people] += i + 1
# i += 1
# candies -= i
# k -= 1
# # 将剩余糖果发掉
# res[i % num_people] += candies
# return res
# # way 2
# # 直接模拟整个过程
# k = 0
# i = 0
# arr = [0] * num_people
# while(True):
# k += 1
# if(k <= candies):
# arr[i] += k
# candies -= k
# else:
# arr[i] += candies
# break
# i = (i + 1) % num_people
# return arr
# way 3
# 优化 way 1
import math
k = math.ceil((math.sqrt(1 + 8 * candies) - 1) / 2)
i, j = k // num_people, k % num_people # 前 j 个小朋友发了 i+1 次,剩下的发了 i 次
if j == 0:
j = num_people
i -= 1
remain = candies - k * (k - 1) // 2 # 最后一次发的糖果数
res = []
for ind in range(1, num_people+1):
if ind < j:
res.append((i + 1) * i // 2 * num_people + (i + 1) * ind)
else:
tmp = (i * (i - 1) // 2 * num_people if i > 0 else 0) + i * ind
if ind == j:
res.append(tmp + remain)
else:
res.append(tmp)
return res
| [
1,
529,
9507,
29958,
26604,
842,
29914,
5721,
2666,
29899,
29883,
392,
583,
29899,
517,
29899,
25719,
29914,
5721,
2666,
29899,
29883,
392,
583,
29899,
517,
29899,
25719,
29889,
2272,
13,
13,
29937,
732,
7030,
29901,
29871,
30748,
234,
182,
153,
30801,
1944,
313,
13398,
2666,
28433,
583,
304,
11647,
29897,
13,
29937,
732,
13720,
29901,
476,
5428,
29907,
13,
29937,
732,
2539,
29901,
29871,
29906,
29900,
29896,
29929,
29899,
29900,
29955,
29899,
29900,
29941,
29871,
29896,
29947,
29901,
29941,
29946,
29901,
29900,
29929,
13,
29937,
732,
7944,
29901,
29871,
29946,
29946,
10887,
13,
29937,
732,
16015,
29901,
29871,
29896,
29941,
13232,
13,
13,
1990,
24380,
29901,
13,
1678,
822,
1320,
2666,
29907,
392,
583,
29898,
1311,
29892,
23794,
583,
29901,
938,
29892,
954,
29918,
25719,
29901,
938,
29897,
1599,
2391,
29961,
524,
5387,
13,
29937,
308,
396,
982,
29871,
29896,
13,
29937,
308,
396,
29871,
232,
132,
138,
30872,
233,
131,
190,
30748,
30910,
30936,
30354,
30573,
413,
30214,
31403,
233,
131,
190,
31611,
31383,
30698,
30210,
234,
182,
153,
30801,
30354,
30573,
317,
29898,
29895,
29897,
353,
313,
29896,
718,
413,
29897,
334,
413,
847,
29871,
29906,
13,
29937,
308,
396,
29871,
31272,
30909,
30878,
30822,
30287,
30936,
30682,
30651,
30413,
30910,
233,
190,
164,
30214,
31352,
235,
177,
189,
232,
140,
172,
30923,
31022,
30769,
30437,
31999,
30878,
30822,
30287,
30502,
30446,
233,
159,
142,
31373,
30214,
30744,
30651,
317,
29898,
29895,
29899,
29896,
29897,
529,
23794,
583,
5277,
317,
29898,
29895,
29897,
13,
29937,
308,
396,
29871,
30768,
31138,
31751,
30413,
31184,
30607,
30682,
30651,
31565,
30544,
8521,
29896,
17108,
29896,
29974,
29947,
29930,
29883,
392,
583,
4887,
29898,
29896,
29914,
29906,
876,
29914,
29906,
5277,
413,
529,
313,
29896,
17108,
29896,
29974,
29947,
29930,
29883,
392,
583,
4887,
29898,
29896,
29914,
29906,
876,
29914,
29906,
13,
29937,
308,
1053,
5844,
13,
29937,
308,
413,
353,
5844,
29889,
27696,
3552,
755,
29889,
3676,
29898,
29896,
718,
29871,
29947,
334,
23794,
583,
29897,
448,
29871,
29896,
29897,
847,
29871,
29906,
29897,
13,
29937,
308,
474,
353,
29871,
29900,
13,
29937,
308,
620,
353,
518,
29900,
29962,
334,
954,
29918,
25719,
13,
308,
13,
29937,
308,
396,
29871,
31570,
30573,
30413,
31043,
30397,
30878,
30822,
30287,
30936,
31383,
30698,
30910,
30923,
31022,
234,
182,
153,
30801,
30214,
31570,
31389,
232,
193,
173,
234,
145,
178,
30748,
30910,
413,
448,
29871,
29896,
29871,
30936,
13,
29937,
308,
1550,
413,
1405,
29871,
29896,
29901,
13,
29937,
632,
620,
29961,
29875,
1273,
954,
29918,
25719,
29962,
4619,
474,
718,
29871,
29896,
13,
29937,
632,
474,
4619,
29871,
29896,
13,
29937,
632,
23794,
583,
22361,
474,
13,
29937,
632,
413,
22361,
29871,
29896,
13,
29937,
308,
396,
29871,
30998,
232,
140,
172,
231,
192,
156,
234,
182,
153,
30801,
30910,
233,
145,
140,
13,
29937,
308,
620,
29961,
29875,
1273,
954,
29918,
25719,
29962,
4619,
23794,
583,
13,
29937,
308,
736,
620,
13,
268,
13,
29937,
308,
396,
982,
29871,
29906,
13,
29937,
308,
396,
29871,
31157,
31092,
31382,
233,
142,
162,
233,
152,
183,
30502,
31138,
31101,
13,
29937,
308,
413,
353,
29871,
29900,
13,
29937,
308,
474,
353,
29871,
29900,
13,
29937,
308,
3948,
353,
518,
29900,
29962,
334,
954,
29918,
25719,
13,
308,
13,
29937,
308,
1550,
29898,
5574,
1125,
13,
29937,
632,
413,
4619,
29871,
29896,
13,
13,
29937,
632,
565,
29898,
29895,
5277,
23794,
583,
1125,
13,
29937,
462,
3948,
29961,
29875,
29962,
4619,
413,
13,
29937,
462,
23794,
583,
22361,
413,
13,
29937,
632,
1683,
29901,
13,
29937,
462,
3948,
29961,
29875,
29962,
4619,
23794,
583,
13,
29937,
462,
2867,
13,
632,
13,
29937,
632,
474,
353,
313,
29875,
718,
29871,
29896,
29897,
1273,
954,
29918,
25719,
13,
632,
13,
29937,
308,
736,
3948,
13,
13,
4706,
396,
982,
29871,
29941,
13,
4706,
396,
29871,
231,
191,
155,
30705,
982,
29871,
29896,
13,
4706,
1053,
5844,
13,
4706,
413,
353,
5844,
29889,
27696,
3552,
755,
29889,
3676,
29898,
29896,
718,
29871,
29947,
334,
23794,
583,
29897,
448,
29871,
29896,
29897,
847,
29871,
29906,
29897,
13,
4706,
474,
29892,
432,
353,
413,
849,
954,
29918,
25719,
29892,
413,
1273,
954,
29918,
25719,
29871,
396,
29871,
30658,
432,
29871,
30502,
30446,
233,
159,
142,
31373,
30910,
30743,
474,
29974,
29896,
29871,
30936,
30214,
232,
140,
172,
30557,
30210,
30910,
30743,
474,
29871,
30936,
13,
4706,
565,
432,
1275,
29871,
29900,
29901,
13,
9651,
432,
353,
954,
29918,
25719,
13,
9651,
474,
22361,
29871,
29896,
13,
4706,
3933,
353,
23794,
583,
448,
413,
334,
313,
29895,
448,
29871,
29896,
29897,
849,
29871,
29906,
29871,
396,
29871,
30878,
30822,
30287,
30936,
30910,
30210,
234,
182,
153,
30801,
30354,
13,
4706,
620,
353,
5159,
13,
308,
13,
4706,
363,
1399,
297,
3464,
29898,
29896,
29892,
954,
29918,
25719,
29974,
29896,
1125,
13,
9651,
565,
1399,
529,
432,
29901,
13,
18884,
620,
29889,
4397,
3552,
29875,
718,
29871,
29896,
29897,
334,
474,
849,
29871,
29906,
334,
954,
29918,
25719,
718,
313,
29875,
718,
29871,
29896,
29897,
334,
1399,
29897,
13,
9651,
1683,
29901,
13,
18884,
13128,
353,
313,
29875,
334,
313,
29875,
448,
29871,
29896,
29897,
849,
29871,
29906,
334,
954,
29918,
25719,
565,
474,
1405,
29871,
29900,
1683,
29871,
29900,
29897,
718,
474,
334,
1399,
13,
18884,
565,
1399,
1275,
432,
29901,
13,
462,
1678,
620,
29889,
4397,
29898,
7050,
718,
3933,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
620,
29889,
4397,
29898,
7050,
29897,
13,
4706,
736,
620,
13,
2
] |
nokiaapp/views.py | orcasgit/django-nokia | 2 | 97524 | <gh_stars>1-10
import logging
from django.contrib.auth.decorators import login_required
from django.contrib.auth.signals import user_logged_in
from django.core.urlresolvers import reverse
from django.dispatch import receiver
from django.http import HttpResponse, Http404
from django.shortcuts import redirect, render
from django.utils import timezone
from django.views.decorators.csrf import csrf_exempt
from . import utils
from .models import NokiaUser, MeasureGroup
try:
from django.urls import NoReverseMatch
except ImportError:
# Fallback for older Djangos
from django.core.urlresolvers import NoReverseMatch
logger = logging.getLogger(__name__)
@login_required
def login(request):
"""
Begins the OAuth authentication process by obtaining a Request Token from
Nokia and redirecting the user to the Nokia site for authorization.
When the user has finished at the Nokia site, they will be redirected
to the :py:func:`nokiaapp.views.complete` view.
If 'next' is provided in the GET data, it is saved in the session so the
:py:func:`nokiaapp.views.complete` view can redirect the user to that
URL upon successful authentication.
URL name:
`nokia-login`
"""
next_url = request.GET.get('next', None)
if next_url:
request.session['nokia_next'] = next_url
else:
request.session.pop('nokia_next', None)
callback_uri = request.build_absolute_uri(reverse('nokia-complete'))
auth = utils.create_nokia_auth(callback_uri)
auth_url = auth.get_authorize_url()
return redirect(auth_url)
@login_required
def complete(request):
"""
After the user authorizes us, Nokia sends a callback to this URL to
complete authentication.
If there was an error, the user is redirected again to the `error` view.
If the authorization was successful, the credentials are stored for us to
use later, and the user is redirected. If 'next_url' is in the request
session, the user is redirected to that URL. Otherwise, they are
redirected to the URL specified by the setting
:ref:`NOKIA_LOGIN_REDIRECT`.
If :ref:`NOKIA_SUBSCRIBE` is set to True, add a subscription to user
data at this time.
URL name:
`nokia-complete`
"""
callback_uri = request.build_absolute_uri(reverse('nokia-complete'))
auth = utils.create_nokia_auth(callback_uri)
try:
code = request.GET.get('code')
except KeyError:
return redirect(reverse('nokia-error'))
if not code:
return redirect(reverse('nokia-error'))
try:
creds = auth.get_credentials(code)
except:
return redirect(reverse('nokia-error'))
user_updates = {
'access_token': creds.access_token,
'token_expiry': creds.token_expiry,
'token_type': creds.token_type,
'refresh_token': creds.refresh_token,
'nokia_user_id': creds.user_id,
'last_update': timezone.now(),
}
nokia_user = NokiaUser.objects.filter(user=request.user)
if nokia_user.exists():
nokia_user.update(**user_updates)
nokia_user = nokia_user[0]
else:
user_updates['user'] = request.user
nokia_user = NokiaUser.objects.create(**user_updates)
# Add the Nokia user info to the session
api = utils.create_nokia(**nokia_user.get_user_data())
request.session['nokia_profile'] = api.get_user()
MeasureGroup.create_from_measures(request.user, api.get_measures())
if utils.get_setting('NOKIA_SUBSCRIBE'):
for appli in [1, 4]:
notification_url = request.build_absolute_uri(
reverse('nokia-notification', kwargs={'appli': appli}))
api.subscribe(notification_url, 'django-nokia', appli=appli)
next_url = request.session.pop('nokia_next', None) or utils.get_setting(
'NOKIA_LOGIN_REDIRECT')
return redirect(next_url)
@receiver(user_logged_in)
def create_nokia_session(sender, request, user, **kwargs):
""" If the user is a Nokia user, update the profile in the session. """
if (user.is_authenticated() and utils.is_integrated(user) and
user.is_active):
nokia_user = NokiaUser.objects.filter(user=user)
if nokia_user.exists():
api = utils.create_nokia(**nokia_user[0].get_user_data())
try:
request.session['nokia_profile'] = api.get_user()
except:
pass
@login_required
def error(request):
"""
The user is redirected to this view if we encounter an error acquiring
their Nokia credentials. It renders the template defined in the setting
:ref:`NOKIA_ERROR_TEMPLATE`. The default template, located at
*nokia/error.html*, simply informs the user of the error::
<html>
<head>
<title>Nokia Authentication Error</title>
</head>
<body>
<h1>Nokia Authentication Error</h1>
<p>We encontered an error while attempting to authenticate you
through Nokia.</p>
</body>
</html>
URL name:
`nokia-error`
"""
return render(request, utils.get_setting('NOKIA_ERROR_TEMPLATE'), {})
@login_required
def logout(request):
"""Forget this user's Nokia credentials.
If the request has a `next` parameter, the user is redirected to that URL.
Otherwise, they're redirected to the URL defined in the setting
:ref:`NOKIA_LOGOUT_REDIRECT`.
URL name:
`nokia-logout`
"""
nokia_user = NokiaUser.objects.filter(user=request.user)
urls = []
for appli in [1, 4]:
for app in ['nokia', 'withings']:
try:
urls.append(request.build_absolute_uri(reverse(
'{}-notification'.format(app),
kwargs={'appli': appli}
)))
except NoReverseMatch:
# The library user does not have the legacy withings URLs
pass
if nokia_user.exists() and utils.get_setting('NOKIA_SUBSCRIBE'):
try:
api = utils.create_nokia(**nokia_user[0].get_user_data())
subs = api.list_subscriptions()
for sub in subs:
if sub['callbackurl'] in urls:
api.unsubscribe(sub['callbackurl'], appli=sub['appli'])
except:
return redirect(reverse('nokia-error'))
nokia_user.delete()
next_url = request.GET.get('next', None) or utils.get_setting(
'NOKIA_LOGOUT_REDIRECT')
return redirect(next_url)
@csrf_exempt
def notification(request, appli):
""" Receive notification from Nokia.
More information here:
https://developer.health.nokia.com/api/doc#api-Notification-Notification_callback
URL name:
`nokia-notification`
"""
if request.method == 'HEAD':
return HttpResponse()
# The updates come in as a POST request with the necessary data
uid = request.POST.get('userid')
if uid and request.method == 'POST':
for user in NokiaUser.objects.filter(nokia_user_id=uid):
kwargs = {}
if user.last_update:
kwargs['lastupdate'] = user.last_update
try:
measures = utils.get_nokia_data(user, **kwargs)
except Exception:
logger.exception("Error getting nokia user measures")
else:
MeasureGroup.create_from_measures(user.user, measures)
user.last_update = timezone.now()
user.save()
return HttpResponse(status=204)
# If GET request or POST with bad data, raise a 404
raise Http404
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
12183,
13,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
19557,
4097,
1053,
6464,
29918,
12403,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
4530,
1338,
1053,
1404,
29918,
1188,
3192,
29918,
262,
13,
3166,
9557,
29889,
3221,
29889,
2271,
9778,
874,
1053,
11837,
13,
3166,
9557,
29889,
13369,
1053,
19870,
13,
3166,
9557,
29889,
1124,
1053,
9056,
5103,
29892,
9056,
29946,
29900,
29946,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
6684,
29892,
4050,
13,
3166,
9557,
29889,
13239,
1053,
29431,
13,
3166,
9557,
29889,
7406,
29889,
19557,
4097,
29889,
2395,
9600,
1053,
5939,
9600,
29918,
735,
3456,
13,
13,
3166,
869,
1053,
3667,
29879,
13,
3166,
869,
9794,
1053,
405,
554,
423,
2659,
29892,
2191,
3745,
4782,
13,
13,
2202,
29901,
13,
1678,
515,
9557,
29889,
26045,
1053,
1939,
1123,
3901,
9652,
13,
19499,
16032,
2392,
29901,
13,
1678,
396,
14053,
1627,
363,
9642,
27467,
574,
359,
13,
1678,
515,
9557,
29889,
3221,
29889,
2271,
9778,
874,
1053,
1939,
1123,
3901,
9652,
13,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
13,
29992,
7507,
29918,
12403,
13,
1753,
6464,
29898,
3827,
1125,
13,
1678,
9995,
13,
1678,
14893,
29879,
278,
438,
6444,
10760,
1889,
491,
4017,
292,
263,
10729,
25159,
515,
13,
1678,
405,
554,
423,
322,
6684,
292,
278,
1404,
304,
278,
405,
554,
423,
3268,
363,
28733,
29889,
13,
13,
1678,
1932,
278,
1404,
756,
7743,
472,
278,
405,
554,
423,
3268,
29892,
896,
674,
367,
6684,
287,
13,
1678,
304,
278,
584,
2272,
29901,
9891,
18078,
29876,
554,
423,
932,
29889,
7406,
29889,
8835,
29952,
1776,
29889,
13,
13,
1678,
960,
525,
4622,
29915,
338,
4944,
297,
278,
12354,
848,
29892,
372,
338,
7160,
297,
278,
4867,
577,
278,
13,
1678,
584,
2272,
29901,
9891,
18078,
29876,
554,
423,
932,
29889,
7406,
29889,
8835,
29952,
1776,
508,
6684,
278,
1404,
304,
393,
13,
1678,
3988,
2501,
9150,
10760,
29889,
13,
13,
1678,
3988,
1024,
29901,
13,
4706,
421,
29876,
554,
423,
29899,
7507,
29952,
13,
1678,
9995,
13,
1678,
2446,
29918,
2271,
353,
2009,
29889,
7194,
29889,
657,
877,
4622,
742,
6213,
29897,
13,
1678,
565,
2446,
29918,
2271,
29901,
13,
4706,
2009,
29889,
7924,
1839,
29876,
554,
423,
29918,
4622,
2033,
353,
2446,
29918,
2271,
13,
1678,
1683,
29901,
13,
4706,
2009,
29889,
7924,
29889,
7323,
877,
29876,
554,
423,
29918,
4622,
742,
6213,
29897,
13,
13,
1678,
6939,
29918,
5338,
353,
2009,
29889,
4282,
29918,
23552,
29918,
5338,
29898,
24244,
877,
29876,
554,
423,
29899,
8835,
8785,
13,
1678,
4817,
353,
3667,
29879,
29889,
3258,
29918,
29876,
554,
423,
29918,
5150,
29898,
14035,
29918,
5338,
29897,
13,
1678,
4817,
29918,
2271,
353,
4817,
29889,
657,
29918,
8921,
675,
29918,
2271,
580,
13,
1678,
736,
6684,
29898,
5150,
29918,
2271,
29897,
13,
13,
13,
29992,
7507,
29918,
12403,
13,
1753,
4866,
29898,
3827,
1125,
13,
1678,
9995,
13,
1678,
2860,
278,
1404,
4148,
7093,
502,
29892,
405,
554,
423,
16003,
263,
6939,
304,
445,
3988,
304,
13,
1678,
4866,
10760,
29889,
13,
13,
1678,
960,
727,
471,
385,
1059,
29892,
278,
1404,
338,
6684,
287,
1449,
304,
278,
421,
2704,
29952,
1776,
29889,
13,
13,
1678,
960,
278,
28733,
471,
9150,
29892,
278,
16140,
526,
6087,
363,
502,
304,
13,
1678,
671,
2678,
29892,
322,
278,
1404,
338,
6684,
287,
29889,
960,
525,
4622,
29918,
2271,
29915,
338,
297,
278,
2009,
13,
1678,
4867,
29892,
278,
1404,
338,
6684,
287,
304,
393,
3988,
29889,
13466,
29892,
896,
526,
13,
1678,
6684,
287,
304,
278,
3988,
6790,
491,
278,
4444,
13,
1678,
584,
999,
18078,
6632,
29968,
10764,
29918,
14480,
1177,
29918,
1525,
4571,
26282,
1412,
13,
13,
1678,
960,
584,
999,
18078,
6632,
29968,
10764,
29918,
20633,
7187,
3960,
15349,
29952,
338,
731,
304,
5852,
29892,
788,
263,
25691,
304,
1404,
13,
1678,
848,
472,
445,
931,
29889,
13,
13,
1678,
3988,
1024,
29901,
13,
4706,
421,
29876,
554,
423,
29899,
8835,
29952,
13,
1678,
9995,
13,
1678,
6939,
29918,
5338,
353,
2009,
29889,
4282,
29918,
23552,
29918,
5338,
29898,
24244,
877,
29876,
554,
423,
29899,
8835,
8785,
13,
1678,
4817,
353,
3667,
29879,
29889,
3258,
29918,
29876,
554,
423,
29918,
5150,
29898,
14035,
29918,
5338,
29897,
13,
1678,
1018,
29901,
13,
4706,
775,
353,
2009,
29889,
7194,
29889,
657,
877,
401,
1495,
13,
1678,
5174,
7670,
2392,
29901,
13,
4706,
736,
6684,
29898,
24244,
877,
29876,
554,
423,
29899,
2704,
8785,
13,
1678,
565,
451,
775,
29901,
13,
4706,
736,
6684,
29898,
24244,
877,
29876,
554,
423,
29899,
2704,
8785,
13,
1678,
1018,
29901,
13,
4706,
907,
6289,
353,
4817,
29889,
657,
29918,
11944,
9409,
29898,
401,
29897,
13,
1678,
5174,
29901,
13,
4706,
736,
6684,
29898,
24244,
877,
29876,
554,
423,
29899,
2704,
8785,
13,
13,
1678,
1404,
29918,
786,
15190,
353,
426,
13,
4706,
525,
5943,
29918,
6979,
2396,
907,
6289,
29889,
5943,
29918,
6979,
29892,
13,
4706,
525,
6979,
29918,
4548,
16129,
2396,
907,
6289,
29889,
6979,
29918,
4548,
16129,
29892,
13,
4706,
525,
6979,
29918,
1853,
2396,
907,
6289,
29889,
6979,
29918,
1853,
29892,
13,
4706,
525,
22379,
29918,
6979,
2396,
907,
6289,
29889,
22379,
29918,
6979,
29892,
13,
4706,
525,
29876,
554,
423,
29918,
1792,
29918,
333,
2396,
907,
6289,
29889,
1792,
29918,
333,
29892,
13,
4706,
525,
4230,
29918,
5504,
2396,
29431,
29889,
3707,
3285,
13,
1678,
500,
13,
1678,
302,
554,
423,
29918,
1792,
353,
405,
554,
423,
2659,
29889,
12650,
29889,
4572,
29898,
1792,
29922,
3827,
29889,
1792,
29897,
13,
1678,
565,
302,
554,
423,
29918,
1792,
29889,
9933,
7295,
13,
4706,
302,
554,
423,
29918,
1792,
29889,
5504,
29898,
1068,
1792,
29918,
786,
15190,
29897,
13,
4706,
302,
554,
423,
29918,
1792,
353,
302,
554,
423,
29918,
1792,
29961,
29900,
29962,
13,
1678,
1683,
29901,
13,
4706,
1404,
29918,
786,
15190,
1839,
1792,
2033,
353,
2009,
29889,
1792,
13,
4706,
302,
554,
423,
29918,
1792,
353,
405,
554,
423,
2659,
29889,
12650,
29889,
3258,
29898,
1068,
1792,
29918,
786,
15190,
29897,
13,
1678,
396,
3462,
278,
405,
554,
423,
1404,
5235,
304,
278,
4867,
13,
1678,
7882,
353,
3667,
29879,
29889,
3258,
29918,
29876,
554,
423,
29898,
1068,
29876,
554,
423,
29918,
1792,
29889,
657,
29918,
1792,
29918,
1272,
3101,
13,
1678,
2009,
29889,
7924,
1839,
29876,
554,
423,
29918,
10185,
2033,
353,
7882,
29889,
657,
29918,
1792,
580,
13,
1678,
2191,
3745,
4782,
29889,
3258,
29918,
3166,
29918,
1004,
25414,
29898,
3827,
29889,
1792,
29892,
7882,
29889,
657,
29918,
1004,
25414,
3101,
13,
1678,
565,
3667,
29879,
29889,
657,
29918,
26740,
877,
6632,
29968,
10764,
29918,
20633,
7187,
3960,
15349,
29374,
13,
4706,
363,
623,
492,
297,
518,
29896,
29892,
29871,
29946,
5387,
13,
9651,
12519,
29918,
2271,
353,
2009,
29889,
4282,
29918,
23552,
29918,
5338,
29898,
13,
18884,
11837,
877,
29876,
554,
423,
29899,
24671,
742,
9049,
5085,
3790,
29915,
932,
492,
2396,
623,
492,
20073,
13,
9651,
7882,
29889,
19496,
29898,
24671,
29918,
2271,
29892,
525,
14095,
29899,
29876,
554,
423,
742,
623,
492,
29922,
932,
492,
29897,
13,
13,
1678,
2446,
29918,
2271,
353,
2009,
29889,
7924,
29889,
7323,
877,
29876,
554,
423,
29918,
4622,
742,
6213,
29897,
470,
3667,
29879,
29889,
657,
29918,
26740,
29898,
13,
4706,
525,
6632,
29968,
10764,
29918,
14480,
1177,
29918,
1525,
4571,
26282,
1495,
13,
1678,
736,
6684,
29898,
4622,
29918,
2271,
29897,
13,
13,
13,
29992,
13556,
2147,
29898,
1792,
29918,
1188,
3192,
29918,
262,
29897,
13,
1753,
1653,
29918,
29876,
554,
423,
29918,
7924,
29898,
15452,
29892,
2009,
29892,
1404,
29892,
3579,
19290,
1125,
13,
1678,
9995,
960,
278,
1404,
338,
263,
405,
554,
423,
1404,
29892,
2767,
278,
8722,
297,
278,
4867,
29889,
9995,
13,
13,
1678,
565,
313,
1792,
29889,
275,
29918,
27218,
630,
580,
322,
3667,
29879,
29889,
275,
29918,
14146,
630,
29898,
1792,
29897,
322,
13,
9651,
1404,
29889,
275,
29918,
4925,
1125,
13,
4706,
302,
554,
423,
29918,
1792,
353,
405,
554,
423,
2659,
29889,
12650,
29889,
4572,
29898,
1792,
29922,
1792,
29897,
13,
4706,
565,
302,
554,
423,
29918,
1792,
29889,
9933,
7295,
13,
9651,
7882,
353,
3667,
29879,
29889,
3258,
29918,
29876,
554,
423,
29898,
1068,
29876,
554,
423,
29918,
1792,
29961,
29900,
1822,
657,
29918,
1792,
29918,
1272,
3101,
13,
9651,
1018,
29901,
13,
18884,
2009,
29889,
7924,
1839,
29876,
554,
423,
29918,
10185,
2033,
353,
7882,
29889,
657,
29918,
1792,
580,
13,
9651,
5174,
29901,
13,
18884,
1209,
13,
13,
13,
29992,
7507,
29918,
12403,
13,
1753,
1059,
29898,
3827,
1125,
13,
1678,
9995,
13,
1678,
450,
1404,
338,
6684,
287,
304,
445,
1776,
565,
591,
11735,
385,
1059,
10695,
8491,
13,
1678,
1009,
405,
554,
423,
16140,
29889,
739,
7697,
414,
278,
4472,
3342,
297,
278,
4444,
13,
1678,
584,
999,
18078,
6632,
29968,
10764,
29918,
11432,
29918,
4330,
3580,
29931,
3040,
1412,
450,
2322,
4472,
29892,
5982,
472,
13,
1678,
334,
29876,
554,
423,
29914,
2704,
29889,
1420,
15966,
3763,
1871,
29879,
278,
1404,
310,
278,
1059,
1057,
13,
13,
4706,
529,
1420,
29958,
13,
9651,
529,
2813,
29958,
13,
18884,
529,
3257,
29958,
29940,
554,
423,
27241,
4829,
829,
3257,
29958,
13,
9651,
1533,
2813,
29958,
13,
9651,
529,
2587,
29958,
13,
18884,
529,
29882,
29896,
29958,
29940,
554,
423,
27241,
4829,
829,
29882,
29896,
29958,
13,
13,
18884,
529,
29886,
29958,
4806,
427,
535,
25396,
385,
1059,
1550,
15661,
304,
15585,
403,
366,
13,
18884,
1549,
405,
554,
423,
21106,
29886,
29958,
13,
9651,
1533,
2587,
29958,
13,
4706,
1533,
1420,
29958,
13,
13,
1678,
3988,
1024,
29901,
13,
4706,
421,
29876,
554,
423,
29899,
2704,
29952,
13,
1678,
9995,
13,
1678,
736,
4050,
29898,
3827,
29892,
3667,
29879,
29889,
657,
29918,
26740,
877,
6632,
29968,
10764,
29918,
11432,
29918,
4330,
3580,
29931,
3040,
5477,
426,
1800,
13,
13,
13,
29992,
7507,
29918,
12403,
13,
1753,
1480,
449,
29898,
3827,
1125,
13,
1678,
9995,
2831,
657,
445,
1404,
29915,
29879,
405,
554,
423,
16140,
29889,
13,
13,
1678,
960,
278,
2009,
756,
263,
421,
4622,
29952,
3443,
29892,
278,
1404,
338,
6684,
287,
304,
393,
3988,
29889,
13,
1678,
13466,
29892,
896,
29915,
276,
6684,
287,
304,
278,
3988,
3342,
297,
278,
4444,
13,
1678,
584,
999,
18078,
6632,
29968,
10764,
29918,
14480,
12015,
29918,
1525,
4571,
26282,
1412,
13,
13,
1678,
3988,
1024,
29901,
13,
4706,
421,
29876,
554,
423,
29899,
1188,
449,
29952,
13,
1678,
9995,
13,
1678,
302,
554,
423,
29918,
1792,
353,
405,
554,
423,
2659,
29889,
12650,
29889,
4572,
29898,
1792,
29922,
3827,
29889,
1792,
29897,
13,
1678,
23942,
353,
5159,
13,
1678,
363,
623,
492,
297,
518,
29896,
29892,
29871,
29946,
5387,
13,
4706,
363,
623,
297,
6024,
29876,
554,
423,
742,
525,
2541,
886,
2033,
29901,
13,
9651,
1018,
29901,
13,
18884,
23942,
29889,
4397,
29898,
3827,
29889,
4282,
29918,
23552,
29918,
5338,
29898,
24244,
29898,
13,
462,
1678,
22372,
7402,
24671,
4286,
4830,
29898,
932,
511,
13,
462,
1678,
9049,
5085,
3790,
29915,
932,
492,
2396,
623,
492,
29913,
13,
462,
4961,
13,
9651,
5174,
1939,
1123,
3901,
9652,
29901,
13,
18884,
396,
450,
3489,
1404,
947,
451,
505,
278,
25000,
411,
886,
24295,
13,
18884,
1209,
13,
1678,
565,
302,
554,
423,
29918,
1792,
29889,
9933,
580,
322,
3667,
29879,
29889,
657,
29918,
26740,
877,
6632,
29968,
10764,
29918,
20633,
7187,
3960,
15349,
29374,
13,
4706,
1018,
29901,
13,
9651,
7882,
353,
3667,
29879,
29889,
3258,
29918,
29876,
554,
423,
29898,
1068,
29876,
554,
423,
29918,
1792,
29961,
29900,
1822,
657,
29918,
1792,
29918,
1272,
3101,
13,
9651,
11684,
353,
7882,
29889,
1761,
29918,
1491,
7588,
1980,
580,
13,
9651,
363,
1014,
297,
11684,
29901,
13,
18884,
565,
1014,
1839,
14035,
2271,
2033,
297,
23942,
29901,
13,
462,
1678,
7882,
29889,
348,
19496,
29898,
1491,
1839,
14035,
2271,
7464,
623,
492,
29922,
1491,
1839,
932,
492,
11287,
13,
4706,
5174,
29901,
13,
9651,
736,
6684,
29898,
24244,
877,
29876,
554,
423,
29899,
2704,
8785,
13,
1678,
302,
554,
423,
29918,
1792,
29889,
8143,
580,
13,
1678,
2446,
29918,
2271,
353,
2009,
29889,
7194,
29889,
657,
877,
4622,
742,
6213,
29897,
470,
3667,
29879,
29889,
657,
29918,
26740,
29898,
13,
4706,
525,
6632,
29968,
10764,
29918,
14480,
12015,
29918,
1525,
4571,
26282,
1495,
13,
1678,
736,
6684,
29898,
4622,
29918,
2271,
29897,
13,
13,
13,
29992,
2395,
9600,
29918,
735,
3456,
13,
1753,
12519,
29898,
3827,
29892,
623,
492,
1125,
13,
1678,
9995,
24328,
573,
12519,
515,
405,
554,
423,
29889,
13,
13,
1678,
5853,
2472,
1244,
29901,
13,
1678,
2045,
597,
6734,
29889,
354,
4298,
29889,
29876,
554,
423,
29889,
510,
29914,
2754,
29914,
1514,
29937,
2754,
29899,
12958,
29899,
12958,
29918,
14035,
13,
13,
1678,
3988,
1024,
29901,
13,
4706,
421,
29876,
554,
423,
29899,
24671,
29952,
13,
1678,
9995,
13,
1678,
565,
2009,
29889,
5696,
1275,
525,
23252,
2396,
13,
4706,
736,
9056,
5103,
580,
13,
13,
1678,
396,
450,
11217,
2041,
297,
408,
263,
11971,
2009,
411,
278,
5181,
848,
13,
1678,
318,
333,
353,
2009,
29889,
5438,
29889,
657,
877,
1792,
333,
1495,
13,
13,
1678,
565,
318,
333,
322,
2009,
29889,
5696,
1275,
525,
5438,
2396,
13,
4706,
363,
1404,
297,
405,
554,
423,
2659,
29889,
12650,
29889,
4572,
29898,
29876,
554,
423,
29918,
1792,
29918,
333,
29922,
5416,
1125,
13,
9651,
9049,
5085,
353,
6571,
13,
9651,
565,
1404,
29889,
4230,
29918,
5504,
29901,
13,
18884,
9049,
5085,
1839,
4230,
5504,
2033,
353,
1404,
29889,
4230,
29918,
5504,
13,
9651,
1018,
29901,
13,
18884,
15366,
353,
3667,
29879,
29889,
657,
29918,
29876,
554,
423,
29918,
1272,
29898,
1792,
29892,
3579,
19290,
29897,
13,
9651,
5174,
8960,
29901,
13,
18884,
17927,
29889,
11739,
703,
2392,
2805,
302,
554,
423,
1404,
15366,
1159,
13,
9651,
1683,
29901,
13,
18884,
2191,
3745,
4782,
29889,
3258,
29918,
3166,
29918,
1004,
25414,
29898,
1792,
29889,
1792,
29892,
15366,
29897,
13,
18884,
1404,
29889,
4230,
29918,
5504,
353,
29431,
29889,
3707,
580,
13,
18884,
1404,
29889,
7620,
580,
13,
4706,
736,
9056,
5103,
29898,
4882,
29922,
29906,
29900,
29946,
29897,
13,
13,
1678,
396,
960,
12354,
2009,
470,
11971,
411,
4319,
848,
29892,
12020,
263,
29871,
29946,
29900,
29946,
13,
1678,
12020,
9056,
29946,
29900,
29946,
13,
2
] |
rec_to_nwb/test/processing/tools/test_beartype.py | jihyunbak/rec_to_nwb | 8 | 23957 | <reponame>jihyunbak/rec_to_nwb
#!/usr/bin/env python3
"""
`py.test`-driven unit test suite for the `@beartype` decorator, implementing a
rudimentary subset of PEP 484-style type checking based on Python 3.x function
annotations.
Usage
----------
These tests assume the `@beartype` decorator and all utility functions (e.g.,
`_check_type_annotation()`) and globals (e.g., `_PARAMETER_KIND_IGNORED`)
required by this decorator to reside in a top-level module named `beartype`. If
this is the case, these tests may be run as is with:
$ py.test -k test_beartype
See Also
----------
https://stackoverflow.com/a/37961120/2809027
Stackoverflow answer introducing the `@beartype` decorator.
"""
from unittest import TestCase
import typing
import pytest
from testfixtures import should_raise
from rec_to_nwb.processing.tools.beartype.beartype import beartype
class TestBearyype(TestCase):
def test_beartype_noop(self) -> None:
"""
Test bear typing of a function with no function annotations, reducing to
_no_ type checking.
"""
# Unannotated function to be type checked.
@beartype
def khorne(gork, mork):
return gork + mork
# Call this function and assert the expected return value.
assert khorne('WAAAGH!', '!HGAAAW') == 'WAAAGH!!HGAAAW'
# ....................{ TESTS ~ pass : param }....................
def test_beartype_pass_param_keyword_and_positional(self) -> None:
"""
Test bear typing of a function call successfully passed both annotated
positional and keyword parameters.
"""
# Function to be type checked.
@beartype
def slaanesh(daemonette: str, keeper_of_secrets: str) -> str:
return daemonette + keeper_of_secrets
# Call this function with both positional and keyword arguments and assert
# the expected return value.
assert slaanesh(
'Seeker of Decadence', keeper_of_secrets="N'Kari") == (
"Seeker of DecadenceN'Kari")
def test_beartype_pass_param_keyword_only(self) -> None:
"""
Test bear typing of a function call successfully passed an annotated
keyword-only parameter following an `*` or `*args` parameter.
"""
# Function to be type checked.
@beartype
def changer_of_ways(sky_shark: str, *, chaos_spawn: str) -> str:
return sky_shark + chaos_spawn
# Call this function with keyword arguments and assert the expected return
# value.
assert changer_of_ways(
'Screamers', chaos_spawn="Mith'an'driarkh") == (
"ScreamersMith'an'driarkh")
def test_beartype_pass_param_tuple(self) -> None:
"""
Test bear typing of a function call successfully passed a parameter
annotated as a tuple.
"""
# Function to be type checked.
@beartype
def genestealer(tyranid: str, hive_fleet: (str, int)) -> str:
return tyranid + str(hive_fleet)
# Call this function with each of the two types listed in the above tuple.
assert genestealer(
'Norn-Queen', hive_fleet='Behemoth') == 'Norn-QueenBehemoth'
assert genestealer(
'Carnifex', hive_fleet=0xDEADBEEF) == 'Carnifex3735928559'
def test_type_check_pass_param_custom(self) -> None:
"""
Test bear typing of a function call successfully passed a parameter
annotated as a user-defined rather than builtin type.
"""
# User-defined type.
class CustomTestStr(str):
pass
# Function to be type checked.
@beartype
def hrud(gugann: str, delphic_plague: CustomTestStr) -> str:
return gugann + delphic_plague
# Call this function with each of the two types listed in the above tuple.
assert hrud(
'Troglydium hruddi', delphic_plague=CustomTestStr('Delphic Sink')) == (
'Troglydium hruddiDelphic Sink')
def test_type_check_pass_typing_module(self) -> None:
"""
Test bear typing of a function call successfully passed a parameter
annotated with an abstract type from the typing module.
"""
MyMap = typing.Mapping
@beartype
def function(par: MyMap, ameter: MyMap) -> MyMap:
result = par.copy()
result.update(ameter)
return result
assert function({1:1}, {2:2}) == {1:1, 2:2}
def test_type_check_pass_parameterized_typing_module(self) -> None:
"""
Test bear typing of a function call successfully passed a parameter
annotated with a parametirized abstract type from the typing module.
"""
MyMap = typing.Mapping
@beartype
def function(par: MyMap, ameter: MyMap) -> MyMap:
result = par.copy()
result.update(ameter)
return result
assert function({1:1}, {2:2}) == {1:1, 2:2}
# ....................{ TESTS ~ pass : return }....................
def test_type_check_pass_return_none(self) -> None:
"""
Test bear typing of a function call successfully returning `None` and
annotated as such.
"""
# Function to be type checked.
@beartype
def xenos(interex: str, diasporex: str) -> None:
interex + diasporex
# Call this function and assert no value to be returned.
assert xenos(
'Luna Wolves', diasporex='Iron Hands Legion') is None
# ....................{ TESTS ~ fail }....................
def test_beartype_fail_keyword_unknown(self) -> None:
"""
Test bear typing of an annotated function call passed an unrecognized
keyword parameter.
"""
# Annotated function to be type checked.
@beartype
def tau(kroot: str, vespid: str) -> str:
return kroot + vespid
# Call this function with an unrecognized keyword parameter and assert the
# expected exception.
with pytest.raises(TypeError) as exception:
tau(kroot='Greater Good', nicassar='Dhow')
# For readability, this should be a "TypeError" synopsizing the exact issue
# raised by the Python interpreter on calling the original function rather
# than a "TypeError" failing to synopsize the exact issue raised by the
# wrapper type-checking the original function. Since the function
# annotations defined above guarantee that the exception message of the
# latter will be suffixed by "not a str", ensure this is *NOT* the case.
assert not str(exception.value).endswith('not a str')
def test_beartype_fail_param_name(self) -> None:
"""
Test bear typing of a function accepting a parameter name reserved for
use by the `@beartype` decorator.
"""
# Define a function accepting a reserved parameter name and assert the
# expected exception.
@beartype
@should_raise(NameError)
def jokaero(weaponsmith: str, __beartype_func: str) -> str:
return weaponsmith + __beartype_func
# ....................{ TESTS ~ fail : type }....................
def test_beartype_fail_param_type(self) -> None:
"""
Test bear typing of an annotated function call failing a parameter type
check.
"""
# Annotated function to be type checked.
@beartype
def eldar(isha: str, asuryan: (str, int)) -> str:
return isha + asuryan
# Call this function with an invalid type and assert the expected exception.
with pytest.raises(TypeError):
eldar('Mother of the Eldar', 100.100)
def test_beartype_fail_return_type(self) -> None:
"""
Test bear typing of an annotated function call failing a return type
check.
"""
# Annotated function to be type checked.
@beartype
def necron(star_god: str, old_one: str) -> str:
return 60e6
# Call this function and assert the expected exception.
with pytest.raises(TypeError):
necron("C'tan", 'Elder Thing')
# ....................{ TESTS ~ fail : annotation }....................
def test_beartype_fail_annotation_param(self) -> None:
"""
Test bear typing of a function with an unsupported parameter annotation.
"""
# Assert the expected exception from attempting to type check a function
# with a parameter annotation that is *NOT* a type.
with pytest.raises(TypeError):
@beartype
def nurgle(nurgling: str, great_unclean_one: 'Bringer of Poxes') -> str:
return nurgling + great_unclean_one
def test_beartype_fail_annotation_return(self) -> None:
"""
Test bear typing of a function with an unsupported return annotation.
"""
# Assert the expected exception from attempting to type check a function
# with a return annotation that is *NOT* a type.
with pytest.raises(TypeError):
@beartype
def tzeentch(disc: str, lord_of_change: str) -> 'Player of Games':
return disc + lord_of_change
| [
1,
529,
276,
1112,
420,
29958,
2397,
5819,
348,
29890,
557,
29914,
3757,
29918,
517,
29918,
29876,
29893,
29890,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
15945,
29908,
13,
29952,
2272,
29889,
1688,
27969,
24477,
854,
5190,
1243,
9460,
363,
278,
11159,
915,
442,
668,
29952,
10200,
1061,
29892,
16049,
263,
13,
29878,
566,
2073,
653,
11306,
310,
349,
15488,
29871,
29946,
29947,
29946,
29899,
3293,
1134,
8454,
2729,
373,
5132,
29871,
29941,
29889,
29916,
740,
13,
6735,
800,
29889,
13,
13,
27573,
13,
28400,
13,
1349,
968,
6987,
5251,
278,
11159,
915,
442,
668,
29952,
10200,
1061,
322,
599,
19725,
3168,
313,
29872,
29889,
29887,
1696,
13,
29952,
29918,
3198,
29918,
1853,
29918,
18317,
2555,
29897,
322,
13149,
1338,
313,
29872,
29889,
29887,
1696,
19392,
16320,
25797,
4945,
29918,
29968,
22255,
29918,
6259,
6632,
19386,
6348,
13,
12403,
491,
445,
10200,
1061,
304,
620,
680,
297,
263,
2246,
29899,
5563,
3883,
4257,
421,
915,
442,
668,
1412,
960,
13,
1366,
338,
278,
1206,
29892,
1438,
6987,
1122,
367,
1065,
408,
338,
411,
29901,
13,
13,
1678,
395,
11451,
29889,
1688,
448,
29895,
1243,
29918,
915,
442,
668,
13,
13,
13393,
3115,
13,
28400,
13,
991,
597,
2417,
29889,
510,
29914,
29874,
29914,
29941,
29955,
29929,
29953,
29896,
29896,
29906,
29900,
29914,
29906,
29947,
29900,
29929,
29900,
29906,
29955,
13,
1678,
10292,
2262,
1234,
4547,
3277,
278,
11159,
915,
442,
668,
29952,
10200,
1061,
29889,
13,
15945,
29908,
13,
3166,
443,
27958,
1053,
4321,
8259,
13,
13,
5215,
19229,
13,
5215,
11451,
1688,
13,
13,
3166,
1243,
7241,
486,
1973,
1053,
881,
29918,
22692,
13,
13,
3166,
1162,
29918,
517,
29918,
29876,
29893,
29890,
29889,
19170,
29889,
8504,
29889,
915,
442,
668,
29889,
915,
442,
668,
1053,
367,
442,
668,
13,
13,
13,
1990,
4321,
3629,
653,
668,
29898,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
915,
442,
668,
29918,
1217,
459,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
263,
740,
411,
694,
740,
25495,
29892,
27668,
304,
13,
4706,
903,
1217,
29918,
1134,
8454,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
853,
6735,
630,
740,
304,
367,
1134,
7120,
29889,
13,
4706,
732,
915,
442,
668,
13,
4706,
822,
413,
2015,
484,
29898,
29887,
548,
29892,
286,
548,
1125,
13,
9651,
736,
330,
548,
718,
286,
548,
13,
13,
4706,
396,
8251,
445,
740,
322,
4974,
278,
3806,
736,
995,
29889,
13,
4706,
4974,
413,
2015,
484,
877,
29956,
6344,
10051,
29950,
29991,
742,
525,
29991,
29950,
29954,
6344,
29376,
1495,
1275,
525,
29956,
6344,
10051,
29950,
6824,
29950,
29954,
6344,
29376,
29915,
13,
13,
1678,
396,
29871,
25285,
3045,
29912,
17067,
1254,
29903,
3695,
1209,
584,
1828,
1669,
500,
25285,
3045,
13,
1678,
822,
1243,
29918,
915,
442,
668,
29918,
3364,
29918,
3207,
29918,
26766,
29918,
392,
29918,
1066,
3245,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
263,
740,
1246,
8472,
4502,
1716,
9732,
630,
13,
4706,
2602,
284,
322,
13553,
4128,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
6680,
304,
367,
1134,
7120,
29889,
13,
4706,
732,
915,
442,
668,
13,
4706,
822,
8370,
273,
12094,
29898,
1388,
9857,
2353,
29901,
851,
29892,
1589,
11356,
29918,
974,
29918,
344,
1037,
1372,
29901,
851,
29897,
1599,
851,
29901,
13,
9651,
736,
1146,
9857,
2353,
718,
1589,
11356,
29918,
974,
29918,
344,
1037,
1372,
13,
13,
4706,
396,
8251,
445,
740,
411,
1716,
2602,
284,
322,
13553,
6273,
322,
4974,
13,
4706,
396,
278,
3806,
736,
995,
29889,
13,
4706,
4974,
8370,
273,
12094,
29898,
13,
9651,
525,
2008,
1416,
261,
310,
3826,
328,
663,
742,
1589,
11356,
29918,
974,
29918,
344,
1037,
1372,
543,
29940,
29915,
29968,
1306,
1159,
1275,
313,
13,
9651,
376,
2008,
1416,
261,
310,
3826,
328,
663,
29940,
29915,
29968,
1306,
1159,
13,
13,
1678,
822,
1243,
29918,
915,
442,
668,
29918,
3364,
29918,
3207,
29918,
26766,
29918,
6194,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
263,
740,
1246,
8472,
4502,
385,
9732,
630,
13,
4706,
13553,
29899,
6194,
3443,
1494,
385,
421,
20463,
470,
421,
29930,
5085,
29952,
3443,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
6680,
304,
367,
1134,
7120,
29889,
13,
4706,
732,
915,
442,
668,
13,
4706,
822,
1874,
261,
29918,
974,
29918,
1994,
29898,
7912,
29918,
845,
935,
29901,
851,
29892,
334,
29892,
10329,
359,
29918,
1028,
18101,
29901,
851,
29897,
1599,
851,
29901,
13,
9651,
736,
14744,
29918,
845,
935,
718,
10329,
359,
29918,
1028,
18101,
13,
13,
4706,
396,
8251,
445,
740,
411,
13553,
6273,
322,
4974,
278,
3806,
736,
13,
4706,
396,
995,
29889,
13,
4706,
4974,
1874,
261,
29918,
974,
29918,
1994,
29898,
13,
9651,
525,
29903,
1037,
314,
414,
742,
10329,
359,
29918,
1028,
18101,
543,
29924,
389,
29915,
273,
29915,
24477,
935,
29882,
1159,
1275,
313,
13,
9651,
376,
29903,
1037,
314,
414,
29924,
389,
29915,
273,
29915,
24477,
935,
29882,
1159,
13,
13,
1678,
822,
1243,
29918,
915,
442,
668,
29918,
3364,
29918,
3207,
29918,
23583,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
263,
740,
1246,
8472,
4502,
263,
3443,
13,
4706,
9732,
630,
408,
263,
18761,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
6680,
304,
367,
1134,
7120,
29889,
13,
4706,
732,
915,
442,
668,
13,
4706,
822,
2531,
4196,
18362,
29898,
1017,
661,
333,
29901,
851,
29892,
298,
573,
29918,
29888,
280,
300,
29901,
313,
710,
29892,
938,
876,
1599,
851,
29901,
13,
9651,
736,
7911,
661,
333,
718,
851,
29898,
29882,
573,
29918,
29888,
280,
300,
29897,
13,
13,
4706,
396,
8251,
445,
740,
411,
1269,
310,
278,
1023,
4072,
9904,
297,
278,
2038,
18761,
29889,
13,
4706,
4974,
2531,
4196,
18362,
29898,
13,
9651,
525,
29940,
1398,
29899,
8654,
264,
742,
298,
573,
29918,
29888,
280,
300,
2433,
3629,
8008,
720,
1495,
1275,
525,
29940,
1398,
29899,
8654,
264,
3629,
8008,
720,
29915,
13,
4706,
4974,
2531,
4196,
18362,
29898,
13,
9651,
525,
29907,
2753,
361,
735,
742,
298,
573,
29918,
29888,
280,
300,
29922,
29900,
29916,
2287,
3035,
15349,
29638,
29897,
1275,
525,
29907,
2753,
361,
735,
29941,
29955,
29941,
29945,
29929,
29906,
29947,
29945,
29945,
29929,
29915,
13,
13,
1678,
822,
1243,
29918,
1853,
29918,
3198,
29918,
3364,
29918,
3207,
29918,
6341,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
263,
740,
1246,
8472,
4502,
263,
3443,
13,
4706,
9732,
630,
408,
263,
1404,
29899,
12119,
3265,
1135,
4240,
262,
1134,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
4911,
29899,
12119,
1134,
29889,
13,
4706,
770,
8701,
3057,
5015,
29898,
710,
1125,
13,
9651,
1209,
13,
13,
4706,
396,
6680,
304,
367,
1134,
7120,
29889,
13,
4706,
732,
915,
442,
668,
13,
4706,
822,
22157,
566,
29898,
29887,
688,
812,
29901,
851,
29892,
628,
561,
293,
29918,
572,
3437,
29901,
8701,
3057,
5015,
29897,
1599,
851,
29901,
13,
9651,
736,
330,
688,
812,
718,
628,
561,
293,
29918,
572,
3437,
13,
13,
4706,
396,
8251,
445,
740,
411,
1269,
310,
278,
1023,
4072,
9904,
297,
278,
2038,
18761,
29889,
13,
4706,
4974,
22157,
566,
29898,
13,
9651,
525,
29911,
9102,
368,
29881,
1974,
22157,
566,
6051,
742,
628,
561,
293,
29918,
572,
3437,
29922,
7281,
3057,
5015,
877,
13157,
561,
293,
317,
682,
8785,
1275,
313,
13,
9651,
525,
29911,
9102,
368,
29881,
1974,
22157,
566,
6051,
13157,
561,
293,
317,
682,
1495,
13,
13,
1678,
822,
1243,
29918,
1853,
29918,
3198,
29918,
3364,
29918,
1017,
15702,
29918,
5453,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
263,
740,
1246,
8472,
4502,
263,
3443,
13,
4706,
9732,
630,
411,
385,
9846,
1134,
515,
278,
19229,
3883,
29889,
13,
4706,
9995,
13,
13,
4706,
1619,
3388,
353,
19229,
29889,
15845,
13,
13,
4706,
732,
915,
442,
668,
13,
4706,
822,
740,
29898,
862,
29901,
1619,
3388,
29892,
626,
1308,
29901,
1619,
3388,
29897,
1599,
1619,
3388,
29901,
13,
9651,
1121,
353,
610,
29889,
8552,
580,
13,
9651,
1121,
29889,
5504,
29898,
314,
1308,
29897,
13,
9651,
736,
1121,
13,
13,
4706,
4974,
740,
3319,
29896,
29901,
29896,
1118,
426,
29906,
29901,
29906,
1800,
1275,
426,
29896,
29901,
29896,
29892,
29871,
29906,
29901,
29906,
29913,
13,
13,
1678,
822,
1243,
29918,
1853,
29918,
3198,
29918,
3364,
29918,
15501,
1891,
29918,
1017,
15702,
29918,
5453,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
263,
740,
1246,
8472,
4502,
263,
3443,
13,
4706,
9732,
630,
411,
263,
1828,
16577,
7485,
287,
9846,
1134,
515,
278,
19229,
3883,
29889,
13,
4706,
9995,
13,
4706,
1619,
3388,
353,
19229,
29889,
15845,
13,
13,
4706,
732,
915,
442,
668,
13,
4706,
822,
740,
29898,
862,
29901,
1619,
3388,
29892,
626,
1308,
29901,
1619,
3388,
29897,
1599,
1619,
3388,
29901,
13,
9651,
1121,
353,
610,
29889,
8552,
580,
13,
9651,
1121,
29889,
5504,
29898,
314,
1308,
29897,
13,
9651,
736,
1121,
13,
13,
4706,
4974,
740,
3319,
29896,
29901,
29896,
1118,
426,
29906,
29901,
29906,
1800,
1275,
426,
29896,
29901,
29896,
29892,
29871,
29906,
29901,
29906,
29913,
13,
13,
1678,
396,
29871,
25285,
3045,
29912,
17067,
1254,
29903,
3695,
1209,
584,
736,
795,
500,
25285,
3045,
13,
1678,
822,
1243,
29918,
1853,
29918,
3198,
29918,
3364,
29918,
2457,
29918,
9290,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
263,
740,
1246,
8472,
7863,
421,
8516,
29952,
322,
13,
4706,
9732,
630,
408,
1316,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
6680,
304,
367,
1134,
7120,
29889,
13,
4706,
732,
915,
442,
668,
13,
4706,
822,
921,
264,
359,
29898,
1639,
735,
29901,
851,
29892,
652,
4692,
487,
29916,
29901,
851,
29897,
1599,
6213,
29901,
13,
9651,
1006,
735,
718,
652,
4692,
487,
29916,
13,
13,
4706,
396,
8251,
445,
740,
322,
4974,
694,
995,
304,
367,
4133,
29889,
13,
4706,
4974,
921,
264,
359,
29898,
13,
9651,
525,
29931,
4347,
11902,
1960,
742,
652,
4692,
487,
29916,
2433,
29902,
1617,
379,
4167,
5682,
291,
1495,
338,
6213,
13,
13,
1678,
396,
29871,
25285,
3045,
29912,
17067,
1254,
29903,
3695,
4418,
462,
539,
500,
25285,
3045,
13,
1678,
822,
1243,
29918,
915,
442,
668,
29918,
14057,
29918,
26766,
29918,
26690,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
385,
9732,
630,
740,
1246,
4502,
385,
443,
29423,
1891,
13,
4706,
13553,
3443,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
530,
1333,
630,
740,
304,
367,
1134,
7120,
29889,
13,
4706,
732,
915,
442,
668,
13,
4706,
822,
260,
585,
29898,
29895,
4632,
29901,
851,
29892,
28999,
5935,
29901,
851,
29897,
1599,
851,
29901,
13,
9651,
736,
413,
4632,
718,
28999,
5935,
13,
13,
4706,
396,
8251,
445,
740,
411,
385,
443,
29423,
1891,
13553,
3443,
322,
4974,
278,
13,
4706,
396,
3806,
3682,
29889,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1542,
2392,
29897,
408,
3682,
29901,
13,
9651,
260,
585,
29898,
29895,
4632,
2433,
25120,
1008,
7197,
742,
16588,
465,
279,
2433,
29928,
3525,
1495,
13,
13,
4706,
396,
1152,
1303,
3097,
29892,
445,
881,
367,
263,
376,
1542,
2392,
29908,
5222,
3554,
5281,
278,
2684,
2228,
13,
4706,
396,
10425,
491,
278,
5132,
26997,
373,
5432,
278,
2441,
740,
3265,
13,
4706,
396,
1135,
263,
376,
1542,
2392,
29908,
17581,
304,
5222,
459,
2311,
278,
2684,
2228,
10425,
491,
278,
13,
4706,
396,
14476,
1134,
29899,
3198,
292,
278,
2441,
740,
29889,
4001,
278,
740,
13,
4706,
396,
25495,
3342,
2038,
18818,
393,
278,
3682,
2643,
310,
278,
13,
4706,
396,
7480,
674,
367,
9378,
11925,
491,
376,
1333,
263,
851,
613,
9801,
445,
338,
334,
12256,
29930,
278,
1206,
29889,
13,
4706,
4974,
451,
851,
29898,
11739,
29889,
1767,
467,
1975,
2541,
877,
1333,
263,
851,
1495,
13,
13,
1678,
822,
1243,
29918,
915,
442,
668,
29918,
14057,
29918,
3207,
29918,
978,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
263,
740,
25967,
263,
3443,
1024,
21676,
363,
13,
4706,
671,
491,
278,
11159,
915,
442,
668,
29952,
10200,
1061,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
22402,
263,
740,
25967,
263,
21676,
3443,
1024,
322,
4974,
278,
13,
4706,
396,
3806,
3682,
29889,
13,
4706,
732,
915,
442,
668,
13,
4706,
732,
9344,
29918,
22692,
29898,
1170,
2392,
29897,
13,
4706,
822,
432,
17029,
1489,
29898,
705,
481,
787,
29885,
389,
29901,
851,
29892,
4770,
915,
442,
668,
29918,
9891,
29901,
851,
29897,
1599,
851,
29901,
13,
9651,
736,
25340,
29885,
389,
718,
4770,
915,
442,
668,
29918,
9891,
13,
13,
1678,
396,
29871,
25285,
3045,
29912,
17067,
1254,
29903,
3695,
4418,
584,
1134,
18884,
500,
25285,
3045,
13,
1678,
822,
1243,
29918,
915,
442,
668,
29918,
14057,
29918,
3207,
29918,
1853,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
385,
9732,
630,
740,
1246,
17581,
263,
3443,
1134,
13,
4706,
1423,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
530,
1333,
630,
740,
304,
367,
1134,
7120,
29889,
13,
4706,
732,
915,
442,
668,
13,
4706,
822,
560,
16702,
29898,
728,
29874,
29901,
851,
29892,
408,
2857,
273,
29901,
313,
710,
29892,
938,
876,
1599,
851,
29901,
13,
9651,
736,
338,
2350,
718,
408,
2857,
273,
13,
13,
4706,
396,
8251,
445,
740,
411,
385,
8340,
1134,
322,
4974,
278,
3806,
3682,
29889,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1542,
2392,
1125,
13,
9651,
560,
16702,
877,
29924,
1228,
310,
278,
382,
430,
279,
742,
29871,
29896,
29900,
29900,
29889,
29896,
29900,
29900,
29897,
13,
13,
1678,
822,
1243,
29918,
915,
442,
668,
29918,
14057,
29918,
2457,
29918,
1853,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
385,
9732,
630,
740,
1246,
17581,
263,
736,
1134,
13,
4706,
1423,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
530,
1333,
630,
740,
304,
367,
1134,
7120,
29889,
13,
4706,
732,
915,
442,
668,
13,
4706,
822,
452,
29883,
1617,
29898,
8508,
29918,
17083,
29901,
851,
29892,
2030,
29918,
650,
29901,
851,
29897,
1599,
851,
29901,
13,
9651,
736,
29871,
29953,
29900,
29872,
29953,
13,
13,
4706,
396,
8251,
445,
740,
322,
4974,
278,
3806,
3682,
29889,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1542,
2392,
1125,
13,
9651,
452,
29883,
1617,
703,
29907,
29915,
13161,
613,
525,
29923,
25943,
498,
292,
1495,
13,
13,
1678,
396,
29871,
25285,
3045,
29912,
17067,
1254,
29903,
3695,
4418,
584,
17195,
3986,
500,
25285,
3045,
13,
1678,
822,
1243,
29918,
915,
442,
668,
29918,
14057,
29918,
18317,
29918,
3207,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
263,
740,
411,
385,
443,
23765,
3443,
17195,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
16499,
278,
3806,
3682,
515,
15661,
304,
1134,
1423,
263,
740,
13,
4706,
396,
411,
263,
3443,
17195,
393,
338,
334,
12256,
29930,
263,
1134,
29889,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1542,
2392,
1125,
13,
9651,
732,
915,
442,
668,
13,
9651,
822,
302,
2007,
280,
29898,
29876,
2007,
1847,
29901,
851,
29892,
2107,
29918,
348,
14941,
29918,
650,
29901,
525,
29933,
5393,
261,
310,
349,
2251,
267,
1495,
1599,
851,
29901,
13,
18884,
736,
302,
2007,
1847,
718,
2107,
29918,
348,
14941,
29918,
650,
13,
13,
1678,
822,
1243,
29918,
915,
442,
668,
29918,
14057,
29918,
18317,
29918,
2457,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
4321,
11460,
19229,
310,
263,
740,
411,
385,
443,
23765,
736,
17195,
29889,
13,
4706,
9995,
13,
13,
4706,
396,
16499,
278,
3806,
3682,
515,
15661,
304,
1134,
1423,
263,
740,
13,
4706,
396,
411,
263,
736,
17195,
393,
338,
334,
12256,
29930,
263,
1134,
29889,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1542,
2392,
1125,
13,
9651,
732,
915,
442,
668,
13,
9651,
822,
260,
911,
296,
305,
29898,
2218,
29883,
29901,
851,
29892,
18120,
29918,
974,
29918,
3167,
29901,
851,
29897,
1599,
525,
9075,
310,
12482,
2396,
13,
18884,
736,
2313,
718,
18120,
29918,
974,
29918,
3167,
13,
2
] |
sfepy/terms/terms_navier_stokes.py | vondrejc/sfepy | 0 | 13637 | import numpy as nm
from sfepy.linalg import dot_sequences
from sfepy.terms.terms import Term, terms
class DivGradTerm(Term):
r"""
Diffusion term.
:Definition:
.. math::
\int_{\Omega} \nu\ \nabla \ul{v} : \nabla \ul{u} \mbox{ , }
\int_{\Omega} \nu\ \nabla \ul{u} : \nabla \ul{w} \\
\int_{\Omega} \nabla \ul{v} : \nabla \ul{u} \mbox{ , }
\int_{\Omega} \nabla \ul{u} : \nabla \ul{w}
:Arguments 1:
- material : :math:`\nu` (viscosity, optional)
- virtual : :math:`\ul{v}`
- state : :math:`\ul{u}`
:Arguments 2:
- material : :math:`\nu` (viscosity, optional)
- parameter_1 : :math:`\ul{u}`
- parameter_2 : :math:`\ul{w}`
"""
name = 'dw_div_grad'
arg_types = (('opt_material', 'virtual', 'state'),
('opt_material', 'parameter_1', 'parameter_2'))
arg_shapes = {'opt_material' : '1, 1', 'virtual' : ('D', 'state'),
'state' : 'D', 'parameter_1' : 'D', 'parameter_2' : 'D'}
modes = ('weak', 'eval')
function = staticmethod(terms.term_ns_asm_div_grad)
def d_div_grad(self, out, grad1, grad2, mat, vg, fmode):
sh = grad1.shape
g1 = grad1.reshape((sh[0], sh[1], sh[2] * sh[3]))
g2 = grad2.reshape((sh[0], sh[1], sh[2] * sh[3]))
aux = mat * dot_sequences(g1[..., None], g2, 'ATB')[..., None]
if fmode == 2:
out[:] = aux
status = 0
else:
status = vg.integrate(out, aux, fmode)
return status
def get_fargs(self, mat, virtual, state,
mode=None, term_mode=None, diff_var=None, **kwargs):
vg, _ = self.get_mapping(state)
if mat is None:
n_el, n_qp, dim, n_en, n_c = self.get_data_shape(state)
mat = nm.ones((1, n_qp, 1, 1), dtype=nm.float64)
if mode == 'weak':
if diff_var is None:
grad = self.get(state, 'grad').transpose((0, 1, 3, 2))
sh = grad.shape
grad = grad.reshape((sh[0], sh[1], sh[2] * sh[3], 1))
fmode = 0
else:
grad = nm.array([0], ndmin=4, dtype=nm.float64)
fmode = 1
return grad, mat, vg, fmode
elif mode == 'eval':
grad1 = self.get(virtual, 'grad')
grad2 = self.get(state, 'grad')
fmode = {'eval' : 0, 'el_avg' : 1, 'qp' : 2}.get(mode, 1)
return grad1, grad2, mat, vg, fmode
else:
raise ValueError('unsupported evaluation mode in %s! (%s)'
% (self.name, mode))
def get_eval_shape(self, mat, virtual, state,
mode=None, term_mode=None, diff_var=None, **kwargs):
n_el, n_qp, dim, n_en, n_c = self.get_data_shape(state)
return (n_el, 1, 1, 1), state.dtype
def set_arg_types(self):
if self.mode == 'weak':
self.function = terms.term_ns_asm_div_grad
else:
self.function = self.d_div_grad
class ConvectTerm(Term):
r"""
Nonlinear convective term.
:Definition:
.. math::
\int_{\Omega} ((\ul{u} \cdot \nabla) \ul{u}) \cdot \ul{v}
:Arguments:
- virtual : :math:`\ul{v}`
- state : :math:`\ul{u}`
"""
name = 'dw_convect'
arg_types = ('virtual', 'state')
arg_shapes = {'virtual' : ('D', 'state'), 'state' : 'D'}
function = staticmethod(terms.term_ns_asm_convect)
def get_fargs(self, virtual, state,
mode=None, term_mode=None, diff_var=None, **kwargs):
vg, _ = self.get_mapping(state)
grad = self.get(state, 'grad').transpose((0, 1, 3, 2)).copy()
val_qp = self.get(state, 'val')
fmode = diff_var is not None
return grad, val_qp, vg, fmode
class LinearConvectTerm(Term):
r"""
Linearized convective term.
:Definition:
.. math::
\int_{\Omega} ((\ul{b} \cdot \nabla) \ul{u}) \cdot \ul{v}
.. math::
((\ul{b} \cdot \nabla) \ul{u})|_{qp}
:Arguments:
- virtual : :math:`\ul{v}`
- parameter : :math:`\ul{b}`
- state : :math:`\ul{u}`
"""
name = 'dw_lin_convect'
arg_types = ('virtual', 'parameter', 'state')
arg_shapes = {'virtual' : ('D', 'state'), 'parameter' : 'D', 'state' : 'D'}
function = staticmethod(terms.dw_lin_convect)
def get_fargs(self, virtual, parameter, state,
mode=None, term_mode=None, diff_var=None, **kwargs):
vg, _ = self.get_mapping(state)
val_qp = self.get(parameter, 'val')
if mode == 'weak':
if diff_var is None:
grad = self.get(state, 'grad').transpose((0, 1, 3, 2)).copy()
fmode = 0
else:
grad = nm.array([0], ndmin=4, dtype=nm.float64)
fmode = 1
return grad, val_qp, vg, fmode
elif mode == 'qp':
grad = self.get(state, 'grad').transpose((0, 1, 3, 2)).copy()
fmode = 2
return grad, val_qp, vg, fmode
else:
raise ValueError('unsupported evaluation mode in %s! (%s)'
% (self.name, mode))
class StokesTerm(Term):
r"""
Stokes problem coupling term. Corresponds to weak forms of gradient and
divergence terms. Can be evaluated.
:Definition:
.. math::
\int_{\Omega} p\ \nabla \cdot \ul{v} \mbox{ , }
\int_{\Omega} q\ \nabla \cdot \ul{u}
\mbox{ or }
\int_{\Omega} c\ p\ \nabla \cdot \ul{v} \mbox{ , }
\int_{\Omega} c\ q\ \nabla \cdot \ul{u}
:Arguments 1:
- material : :math:`c` (optional)
- virtual : :math:`\ul{v}`
- state : :math:`p`
:Arguments 2:
- material : :math:`c` (optional)
- state : :math:`\ul{u}`
- virtual : :math:`q`
:Arguments 3:
- material : :math:`c` (optional)
- parameter_v : :math:`\ul{u}`
- parameter_s : :math:`p`
"""
name = 'dw_stokes'
arg_types = (('opt_material', 'virtual', 'state'),
('opt_material', 'state', 'virtual'),
('opt_material', 'parameter_v', 'parameter_s'))
arg_shapes = [{'opt_material' : '1, 1',
'virtual/grad' : ('D', None), 'state/grad' : 1,
'virtual/div' : (1, None), 'state/div' : 'D',
'parameter_v' : 'D', 'parameter_s' : 1},
{'opt_material' : None}]
modes = ('grad', 'div', 'eval')
@staticmethod
def d_eval(out, coef, vec_qp, div, vvg):
out_qp = coef * vec_qp * div
status = vvg.integrate(out, out_qp)
return status
def get_fargs(self, coef, vvar, svar,
mode=None, term_mode=None, diff_var=None, **kwargs):
if self.mode == 'grad':
qp_var, qp_name = svar, 'val'
else:
qp_var, qp_name = vvar, 'div'
n_el, n_qp, dim, n_en, n_c = self.get_data_shape(vvar)
if coef is None:
coef = nm.ones((1, n_qp, 1, 1), dtype=nm.float64)
if mode == 'weak':
vvg, _ = self.get_mapping(vvar)
svg, _ = self.get_mapping(svar)
if diff_var is None:
val_qp = self.get(qp_var, qp_name)
fmode = 0
else:
val_qp = nm.array([0], ndmin=4, dtype=nm.float64)
fmode = 1
return coef, val_qp, svg, vvg, fmode
elif mode == 'eval':
vvg, _ = self.get_mapping(vvar)
div = self.get(vvar, 'div')
vec_qp = self.get(svar, 'val')
return coef, vec_qp, div, vvg
else:
raise ValueError('unsupported evaluation mode in %s! (%s)'
% (self.name, mode))
def get_eval_shape(self, coef, vvar, svar,
mode=None, term_mode=None, diff_var=None, **kwargs):
n_el, n_qp, dim, n_en, n_c = self.get_data_shape(vvar)
return (n_el, 1, 1, 1), vvar.dtype
def set_arg_types(self):
self.function = {
'grad' : terms.dw_grad,
'div' : terms.dw_div,
'eval' : self.d_eval,
}[self.mode]
class GradTerm(Term):
r"""
Evaluate gradient of a scalar or vector field.
Supports 'eval', 'el_avg' and 'qp' evaluation modes.
:Definition:
.. math::
\int_{\Omega} \nabla p \mbox{ or } \int_{\Omega} \nabla \ul{w}
.. math::
\mbox{vector for } K \from \Ical_h: \int_{T_K} \nabla p /
\int_{T_K} 1 \mbox{ or } \int_{T_K} \nabla \ul{w} /
\int_{T_K} 1
.. math::
(\nabla p)|_{qp} \mbox{ or } \nabla \ul{w}|_{qp}
:Arguments:
- parameter : :math:`p` or :math:`\ul{w}`
"""
name = 'ev_grad'
arg_types = ('parameter',)
arg_shapes = [{'parameter' : 1}, {'parameter' : 'D'}]
@staticmethod
def function(out, grad, vg, fmode):
if fmode == 2:
out[:] = grad
status = 0
else:
status = vg.integrate(out, grad, fmode)
return status
def get_fargs(self, parameter,
mode=None, term_mode=None, diff_var=None, **kwargs):
vg, _ = self.get_mapping(parameter)
grad = self.get(parameter, 'grad')
fmode = {'eval' : 0, 'el_avg' : 1, 'qp' : 2}.get(mode, 1)
return grad, vg, fmode
def get_eval_shape(self, parameter,
mode=None, term_mode=None, diff_var=None, **kwargs):
n_el, n_qp, dim, n_en, n_c = self.get_data_shape(parameter)
if mode != 'qp':
n_qp = 1
return (n_el, n_qp, dim, n_c), parameter.dtype
class DivTerm(Term):
r"""
Evaluate divergence of a vector field.
Supports 'eval', 'el_avg' and 'qp' evaluation modes.
:Definition:
.. math::
\int_{\Omega} \nabla \cdot \ul{u}
.. math::
\mbox{vector for } K \from \Ical_h:
\int_{T_K} \nabla \cdot \ul{u} / \int_{T_K} 1
.. math::
(\nabla \cdot \ul{u})|_{qp}
:Arguments:
- parameter : :math:`\ul{u}`
"""
name = 'ev_div'
arg_types = ('parameter',)
arg_shapes = {'parameter' : 'D'}
@staticmethod
def function(out, div, vg, fmode):
if fmode == 2:
out[:] = div
status = 0
else:
status = vg.integrate(out, div, fmode)
return status
def get_fargs(self, parameter,
mode=None, term_mode=None, diff_var=None, **kwargs):
vg, _ = self.get_mapping(parameter)
div = self.get(parameter, 'div')
fmode = {'eval' : 0, 'el_avg' : 1, 'qp' : 2}.get(mode, 1)
return div, vg, fmode
def get_eval_shape(self, parameter,
mode=None, term_mode=None, diff_var=None, **kwargs):
n_el, n_qp, dim, n_en, n_c = self.get_data_shape(parameter)
if mode != 'qp':
n_qp = 1
return (n_el, n_qp, 1, 1), parameter.dtype
class DivOperatorTerm(Term):
r"""
Weighted divergence term of a test function.
:Definition:
.. math::
\int_{\Omega} \nabla \cdot \ul{v} \mbox { or } \int_{\Omega} c \nabla
\cdot \ul{v}
:Arguments:
- material : :math:`c` (optional)
- virtual : :math:`\ul{v}`
"""
name = 'dw_div'
arg_types = ('opt_material', 'virtual')
arg_shapes = [{'opt_material' : '1, 1', 'virtual' : ('D', None)},
{'opt_material' : None}]
@staticmethod
def function(out, mat, vg):
div_bf = vg.bfg
n_el, n_qp, dim, n_ep = div_bf.shape
div_bf = div_bf.reshape((n_el, n_qp, dim * n_ep, 1))
div_bf = nm.ascontiguousarray(div_bf)
if mat is not None:
status = vg.integrate(out, mat * div_bf)
else:
status = vg.integrate(out, div_bf)
return status
def get_fargs(self, mat, virtual,
mode=None, term_mode=None, diff_var=None, **kwargs):
vg, _ = self.get_mapping(virtual)
return mat, vg
class GradDivStabilizationTerm(Term):
r"""
Grad-div stabilization term ( :math:`\gamma` is a global stabilization
parameter).
:Definition:
.. math::
\gamma \int_{\Omega} (\nabla\cdot\ul{u}) \cdot (\nabla\cdot\ul{v})
:Arguments:
- material : :math:`\gamma`
- virtual : :math:`\ul{v}`
- state : :math:`\ul{u}`
"""
name = 'dw_st_grad_div'
arg_types = ('material', 'virtual', 'state')
arg_shapes = {'material' : '1, 1', 'virtual' : ('D', 'state'),
'state' : 'D'}
function = staticmethod(terms.dw_st_grad_div)
def get_fargs(self, gamma, virtual, state,
mode=None, term_mode=None, diff_var=None, **kwargs):
vg, _ = self.get_mapping(state)
if diff_var is None:
div = self.get(state, 'div')
fmode = 0
else:
div = nm.array([0], ndmin=4, dtype=nm.float64)
fmode = 1
return div, gamma, vg, fmode
from sfepy.terms.terms_diffusion import LaplaceTerm
class PSPGPStabilizationTerm(LaplaceTerm):
r"""
PSPG stabilization term, pressure part ( :math:`\tau` is a local
stabilization parameter), alias to Laplace term dw_laplace.
:Definition:
.. math::
\sum_{K \in \Ical_h}\int_{T_K} \tau_K\ \nabla p \cdot \nabla q
:Arguments:
- material : :math:`\tau_K`
- virtual : :math:`q`
- state : :math:`p`
"""
name = 'dw_st_pspg_p'
class PSPGCStabilizationTerm(Term):
r"""
PSPG stabilization term, convective part ( :math:`\tau` is a local
stabilization parameter).
:Definition:
.. math::
\sum_{K \in \Ical_h}\int_{T_K} \tau_K\ ((\ul{b} \cdot \nabla) \ul{u})
\cdot \nabla q
:Arguments:
- material : :math:`\tau_K`
- virtual : :math:`q`
- parameter : :math:`\ul{b}`
- state : :math:`\ul{u}`
"""
name = 'dw_st_pspg_c'
arg_types = ('material', 'virtual', 'parameter', 'state')
arg_shapes = {'material' : '1, 1', 'virtual' : (1, None),
'parameter' : 'D', 'state' : 'D'}
function = staticmethod(terms.dw_st_pspg_c)
def get_fargs(self, tau, virtual, parameter, state,
mode=None, term_mode=None, diff_var=None, **kwargs):
sap, svg = self.get_approximation(virtual)
vap, vvg = self.get_approximation(state)
val_qp = self.get(parameter, 'val')
conn = vap.get_connectivity(self.region, self.integration)
if diff_var is None:
fmode = 0
else:
fmode = 1
return val_qp, state(), tau, svg, vvg, conn, fmode
class SUPGPStabilizationTerm(Term):
r"""
SUPG stabilization term, pressure part ( :math:`\delta` is a local
stabilization parameter).
:Definition:
.. math::
\sum_{K \in \Ical_h}\int_{T_K} \delta_K\ \nabla p\cdot ((\ul{b} \cdot
\nabla) \ul{v})
:Arguments:
- material : :math:`\delta_K`
- virtual : :math:`\ul{v}`
- parameter : :math:`\ul{b}`
- state : :math:`p`
"""
name = 'dw_st_supg_p'
arg_types = ('material', 'virtual', 'parameter', 'state')
arg_shapes = {'material' : '1, 1', 'virtual' : ('D', None),
'parameter' : 'D', 'state' : 1}
function = staticmethod(terms.dw_st_supg_p)
def get_fargs(self, delta, virtual, parameter, state,
mode=None, term_mode=None, diff_var=None, **kwargs):
vvg, _ = self.get_mapping(virtual)
svg, _ = self.get_mapping(state)
val_qp = self.get(parameter, 'val')
if diff_var is None:
grad = self.get(state, 'grad')
fmode = 0
else:
grad = nm.array([0], ndmin=4, dtype=nm.float64)
fmode = 1
return val_qp, grad, delta, vvg, svg, fmode
class SUPGCStabilizationTerm(Term):
r"""
SUPG stabilization term, convective part ( :math:`\delta` is a local
stabilization parameter).
:Definition:
.. math::
\sum_{K \in \Ical_h}\int_{T_K} \delta_K\ ((\ul{b} \cdot \nabla)
\ul{u})\cdot ((\ul{b} \cdot \nabla) \ul{v})
:Arguments:
- material : :math:`\delta_K`
- virtual : :math:`\ul{v}`
- parameter : :math:`\ul{b}`
- state : :math:`\ul{u}`
"""
name = 'dw_st_supg_c'
arg_types = ('material', 'virtual', 'parameter', 'state')
arg_shapes = {'material' : '1, 1', 'virtual' : ('D', 'state'),
'parameter' : 'D', 'state' : 'D'}
function = staticmethod(terms.dw_st_supg_c)
def get_fargs(self, delta, virtual, parameter, state,
mode=None, term_mode=None, diff_var=None, **kwargs):
ap, vg = self.get_approximation(virtual)
val_qp = self.get(parameter, 'val')
conn = ap.get_connectivity(self.region, self.integration)
if diff_var is None:
fmode = 0
else:
fmode = 1
return val_qp, state(), delta, vg, conn, fmode
| [
1,
1053,
12655,
408,
302,
29885,
13,
13,
3166,
18668,
1022,
29891,
29889,
29880,
979,
29887,
1053,
8329,
29918,
6831,
2063,
13,
3166,
18668,
1022,
29891,
29889,
357,
1516,
29889,
357,
1516,
1053,
11814,
29892,
4958,
13,
13,
1990,
4910,
25584,
14343,
29898,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
360,
2593,
3958,
1840,
29889,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
524,
1665,
5981,
29913,
320,
3433,
29905,
320,
8511,
320,
352,
29912,
29894,
29913,
584,
320,
8511,
320,
352,
29912,
29884,
29913,
320,
8264,
29912,
1919,
500,
13,
4706,
320,
524,
1665,
5981,
29913,
320,
3433,
29905,
320,
8511,
320,
352,
29912,
29884,
29913,
584,
320,
8511,
320,
352,
29912,
29893,
29913,
2474,
13,
4706,
320,
524,
1665,
5981,
29913,
320,
8511,
320,
352,
29912,
29894,
29913,
584,
320,
8511,
320,
352,
29912,
29884,
29913,
320,
8264,
29912,
1919,
500,
13,
4706,
320,
524,
1665,
5981,
29913,
320,
8511,
320,
352,
29912,
29884,
29913,
584,
320,
8511,
320,
352,
29912,
29893,
29913,
13,
13,
1678,
584,
26915,
29871,
29896,
29901,
13,
4706,
448,
5518,
584,
584,
755,
18078,
29905,
3433,
29952,
313,
1730,
3944,
537,
29892,
13136,
29897,
13,
4706,
448,
6901,
29871,
584,
584,
755,
18078,
29905,
352,
29912,
29894,
10114,
13,
4706,
448,
2106,
1678,
584,
584,
755,
18078,
29905,
352,
29912,
29884,
10114,
13,
13,
1678,
584,
26915,
29871,
29906,
29901,
13,
4706,
448,
5518,
1678,
584,
584,
755,
18078,
29905,
3433,
29952,
313,
1730,
3944,
537,
29892,
13136,
29897,
13,
4706,
448,
3443,
29918,
29896,
584,
584,
755,
18078,
29905,
352,
29912,
29884,
10114,
13,
4706,
448,
3443,
29918,
29906,
584,
584,
755,
18078,
29905,
352,
29912,
29893,
10114,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
28012,
29918,
4563,
29918,
5105,
29915,
13,
1678,
1852,
29918,
8768,
353,
313,
877,
3670,
29918,
15388,
742,
525,
18714,
742,
525,
3859,
5477,
13,
462,
6702,
3670,
29918,
15388,
742,
525,
15501,
29918,
29896,
742,
525,
15501,
29918,
29906,
8785,
13,
1678,
1852,
29918,
845,
11603,
353,
11117,
3670,
29918,
15388,
29915,
584,
525,
29896,
29892,
29871,
29896,
742,
525,
18714,
29915,
584,
6702,
29928,
742,
525,
3859,
5477,
13,
462,
29871,
525,
3859,
29915,
584,
525,
29928,
742,
525,
15501,
29918,
29896,
29915,
584,
525,
29928,
742,
525,
15501,
29918,
29906,
29915,
584,
525,
29928,
10827,
13,
1678,
18893,
353,
6702,
25129,
742,
525,
14513,
1495,
13,
13,
1678,
740,
353,
2294,
5696,
29898,
357,
1516,
29889,
8489,
29918,
1983,
29918,
11625,
29918,
4563,
29918,
5105,
29897,
13,
13,
1678,
822,
270,
29918,
4563,
29918,
5105,
29898,
1311,
29892,
714,
29892,
4656,
29896,
29892,
4656,
29906,
29892,
1775,
29892,
325,
29887,
29892,
285,
8513,
1125,
13,
4706,
528,
353,
4656,
29896,
29889,
12181,
13,
4706,
330,
29896,
353,
4656,
29896,
29889,
690,
14443,
3552,
845,
29961,
29900,
1402,
528,
29961,
29896,
1402,
528,
29961,
29906,
29962,
334,
528,
29961,
29941,
12622,
13,
4706,
330,
29906,
353,
4656,
29906,
29889,
690,
14443,
3552,
845,
29961,
29900,
1402,
528,
29961,
29896,
1402,
528,
29961,
29906,
29962,
334,
528,
29961,
29941,
12622,
13,
4706,
3479,
353,
1775,
334,
8329,
29918,
6831,
2063,
29898,
29887,
29896,
29961,
16361,
6213,
1402,
330,
29906,
29892,
525,
1299,
29933,
29861,
16361,
6213,
29962,
13,
13,
4706,
565,
285,
8513,
1275,
29871,
29906,
29901,
13,
9651,
714,
7503,
29962,
353,
3479,
13,
9651,
4660,
353,
29871,
29900,
13,
13,
4706,
1683,
29901,
13,
9651,
4660,
353,
325,
29887,
29889,
14146,
403,
29898,
449,
29892,
3479,
29892,
285,
8513,
29897,
13,
13,
4706,
736,
4660,
13,
13,
1678,
822,
679,
29918,
29888,
5085,
29898,
1311,
29892,
1775,
29892,
6901,
29892,
2106,
29892,
13,
462,
29871,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
325,
29887,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
3859,
29897,
13,
13,
4706,
565,
1775,
338,
6213,
29901,
13,
9651,
302,
29918,
295,
29892,
302,
29918,
29939,
29886,
29892,
3964,
29892,
302,
29918,
264,
29892,
302,
29918,
29883,
353,
1583,
29889,
657,
29918,
1272,
29918,
12181,
29898,
3859,
29897,
13,
9651,
1775,
353,
302,
29885,
29889,
2873,
3552,
29896,
29892,
302,
29918,
29939,
29886,
29892,
29871,
29896,
29892,
29871,
29896,
511,
26688,
29922,
22882,
29889,
7411,
29953,
29946,
29897,
13,
13,
4706,
565,
4464,
1275,
525,
25129,
2396,
13,
9651,
565,
2923,
29918,
1707,
338,
6213,
29901,
13,
18884,
4656,
353,
1583,
29889,
657,
29898,
3859,
29892,
525,
5105,
2824,
3286,
4220,
3552,
29900,
29892,
29871,
29896,
29892,
29871,
29941,
29892,
29871,
29906,
876,
13,
18884,
528,
353,
4656,
29889,
12181,
13,
18884,
4656,
353,
4656,
29889,
690,
14443,
3552,
845,
29961,
29900,
1402,
528,
29961,
29896,
1402,
528,
29961,
29906,
29962,
334,
528,
29961,
29941,
1402,
29871,
29896,
876,
13,
18884,
285,
8513,
353,
29871,
29900,
13,
13,
9651,
1683,
29901,
13,
18884,
4656,
353,
302,
29885,
29889,
2378,
4197,
29900,
1402,
29871,
299,
1195,
29922,
29946,
29892,
26688,
29922,
22882,
29889,
7411,
29953,
29946,
29897,
13,
18884,
285,
8513,
353,
29871,
29896,
13,
13,
9651,
736,
4656,
29892,
1775,
29892,
325,
29887,
29892,
285,
8513,
13,
13,
4706,
25342,
4464,
1275,
525,
14513,
2396,
13,
9651,
4656,
29896,
353,
1583,
29889,
657,
29898,
18714,
29892,
525,
5105,
1495,
13,
9651,
4656,
29906,
353,
1583,
29889,
657,
29898,
3859,
29892,
525,
5105,
1495,
13,
9651,
285,
8513,
353,
11117,
14513,
29915,
584,
29871,
29900,
29892,
525,
295,
29918,
485,
29887,
29915,
584,
29871,
29896,
29892,
525,
29939,
29886,
29915,
584,
29871,
29906,
1836,
657,
29898,
8513,
29892,
29871,
29896,
29897,
13,
13,
9651,
736,
4656,
29896,
29892,
4656,
29906,
29892,
1775,
29892,
325,
29887,
29892,
285,
8513,
13,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
877,
348,
23765,
17983,
4464,
297,
1273,
29879,
29991,
313,
29995,
29879,
16029,
13,
462,
632,
1273,
313,
1311,
29889,
978,
29892,
4464,
876,
13,
13,
1678,
822,
679,
29918,
14513,
29918,
12181,
29898,
1311,
29892,
1775,
29892,
6901,
29892,
2106,
29892,
13,
462,
539,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
302,
29918,
295,
29892,
302,
29918,
29939,
29886,
29892,
3964,
29892,
302,
29918,
264,
29892,
302,
29918,
29883,
353,
1583,
29889,
657,
29918,
1272,
29918,
12181,
29898,
3859,
29897,
13,
13,
4706,
736,
313,
29876,
29918,
295,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
511,
2106,
29889,
29881,
1853,
13,
13,
1678,
822,
731,
29918,
1191,
29918,
8768,
29898,
1311,
1125,
13,
4706,
565,
1583,
29889,
8513,
1275,
525,
25129,
2396,
13,
9651,
1583,
29889,
2220,
353,
4958,
29889,
8489,
29918,
1983,
29918,
11625,
29918,
4563,
29918,
5105,
13,
13,
4706,
1683,
29901,
13,
9651,
1583,
29889,
2220,
353,
1583,
29889,
29881,
29918,
4563,
29918,
5105,
13,
13,
1990,
1281,
345,
312,
14343,
29898,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
10050,
10660,
378,
345,
312,
573,
1840,
29889,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
524,
1665,
5981,
29913,
313,
1194,
352,
29912,
29884,
29913,
320,
3822,
320,
8511,
29897,
320,
352,
29912,
29884,
1800,
320,
3822,
320,
352,
29912,
29894,
29913,
13,
13,
1678,
584,
26915,
29901,
13,
4706,
448,
6901,
584,
584,
755,
18078,
29905,
352,
29912,
29894,
10114,
13,
4706,
448,
2106,
259,
584,
584,
755,
18078,
29905,
352,
29912,
29884,
10114,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
28012,
29918,
535,
345,
312,
29915,
13,
1678,
1852,
29918,
8768,
353,
6702,
18714,
742,
525,
3859,
1495,
13,
1678,
1852,
29918,
845,
11603,
353,
11117,
18714,
29915,
584,
6702,
29928,
742,
525,
3859,
5477,
525,
3859,
29915,
584,
525,
29928,
10827,
13,
13,
1678,
740,
353,
2294,
5696,
29898,
357,
1516,
29889,
8489,
29918,
1983,
29918,
11625,
29918,
535,
345,
312,
29897,
13,
13,
1678,
822,
679,
29918,
29888,
5085,
29898,
1311,
29892,
6901,
29892,
2106,
29892,
13,
462,
29871,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
325,
29887,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
3859,
29897,
13,
13,
4706,
4656,
353,
1583,
29889,
657,
29898,
3859,
29892,
525,
5105,
2824,
3286,
4220,
3552,
29900,
29892,
29871,
29896,
29892,
29871,
29941,
29892,
29871,
29906,
8106,
8552,
580,
13,
4706,
659,
29918,
29939,
29886,
353,
1583,
29889,
657,
29898,
3859,
29892,
525,
791,
1495,
13,
13,
4706,
285,
8513,
353,
2923,
29918,
1707,
338,
451,
6213,
13,
13,
4706,
736,
4656,
29892,
659,
29918,
29939,
29886,
29892,
325,
29887,
29892,
285,
8513,
13,
13,
1990,
22985,
1168,
345,
312,
14343,
29898,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
22985,
1891,
378,
345,
312,
573,
1840,
29889,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
524,
1665,
5981,
29913,
313,
1194,
352,
29912,
29890,
29913,
320,
3822,
320,
8511,
29897,
320,
352,
29912,
29884,
1800,
320,
3822,
320,
352,
29912,
29894,
29913,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
313,
1194,
352,
29912,
29890,
29913,
320,
3822,
320,
8511,
29897,
320,
352,
29912,
29884,
1800,
26632,
29939,
29886,
29913,
13,
13,
1678,
584,
26915,
29901,
13,
4706,
448,
6901,
259,
584,
584,
755,
18078,
29905,
352,
29912,
29894,
10114,
13,
4706,
448,
3443,
584,
584,
755,
18078,
29905,
352,
29912,
29890,
10114,
13,
4706,
448,
2106,
268,
584,
584,
755,
18078,
29905,
352,
29912,
29884,
10114,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
28012,
29918,
1915,
29918,
535,
345,
312,
29915,
13,
1678,
1852,
29918,
8768,
353,
6702,
18714,
742,
525,
15501,
742,
525,
3859,
1495,
13,
1678,
1852,
29918,
845,
11603,
353,
11117,
18714,
29915,
584,
6702,
29928,
742,
525,
3859,
5477,
525,
15501,
29915,
584,
525,
29928,
742,
525,
3859,
29915,
584,
525,
29928,
10827,
13,
13,
1678,
740,
353,
2294,
5696,
29898,
357,
1516,
29889,
28012,
29918,
1915,
29918,
535,
345,
312,
29897,
13,
13,
1678,
822,
679,
29918,
29888,
5085,
29898,
1311,
29892,
6901,
29892,
3443,
29892,
2106,
29892,
13,
462,
29871,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
325,
29887,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
3859,
29897,
13,
13,
4706,
659,
29918,
29939,
29886,
353,
1583,
29889,
657,
29898,
15501,
29892,
525,
791,
1495,
13,
13,
4706,
565,
4464,
1275,
525,
25129,
2396,
13,
9651,
565,
2923,
29918,
1707,
338,
6213,
29901,
13,
18884,
4656,
353,
1583,
29889,
657,
29898,
3859,
29892,
525,
5105,
2824,
3286,
4220,
3552,
29900,
29892,
29871,
29896,
29892,
29871,
29941,
29892,
29871,
29906,
8106,
8552,
580,
13,
18884,
285,
8513,
353,
29871,
29900,
13,
13,
9651,
1683,
29901,
13,
18884,
4656,
353,
302,
29885,
29889,
2378,
4197,
29900,
1402,
29871,
299,
1195,
29922,
29946,
29892,
26688,
29922,
22882,
29889,
7411,
29953,
29946,
29897,
13,
18884,
285,
8513,
353,
29871,
29896,
13,
13,
9651,
736,
4656,
29892,
659,
29918,
29939,
29886,
29892,
325,
29887,
29892,
285,
8513,
13,
13,
4706,
25342,
4464,
1275,
525,
29939,
29886,
2396,
13,
9651,
4656,
353,
1583,
29889,
657,
29898,
3859,
29892,
525,
5105,
2824,
3286,
4220,
3552,
29900,
29892,
29871,
29896,
29892,
29871,
29941,
29892,
29871,
29906,
8106,
8552,
580,
13,
9651,
285,
8513,
353,
29871,
29906,
13,
13,
9651,
736,
4656,
29892,
659,
29918,
29939,
29886,
29892,
325,
29887,
29892,
285,
8513,
13,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
877,
348,
23765,
17983,
4464,
297,
1273,
29879,
29991,
313,
29995,
29879,
16029,
13,
462,
632,
1273,
313,
1311,
29889,
978,
29892,
4464,
876,
13,
13,
1990,
6639,
10794,
14343,
29898,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
6639,
10794,
1108,
23638,
1840,
29889,
2994,
3636,
29879,
304,
8062,
7190,
310,
16030,
322,
13,
1678,
17089,
10238,
4958,
29889,
1815,
367,
19030,
29889,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
524,
1665,
5981,
29913,
282,
29905,
320,
8511,
320,
3822,
320,
352,
29912,
29894,
29913,
320,
8264,
29912,
1919,
500,
13,
4706,
320,
524,
1665,
5981,
29913,
3855,
29905,
320,
8511,
320,
3822,
320,
352,
29912,
29884,
29913,
13,
4706,
320,
8264,
29912,
470,
500,
13,
4706,
320,
524,
1665,
5981,
29913,
274,
29905,
282,
29905,
320,
8511,
320,
3822,
320,
352,
29912,
29894,
29913,
320,
8264,
29912,
1919,
500,
13,
4706,
320,
524,
1665,
5981,
29913,
274,
29905,
3855,
29905,
320,
8511,
320,
3822,
320,
352,
29912,
29884,
29913,
13,
13,
1678,
584,
26915,
29871,
29896,
29901,
13,
4706,
448,
5518,
584,
584,
755,
18078,
29883,
29952,
313,
25253,
29897,
13,
4706,
448,
6901,
29871,
584,
584,
755,
18078,
29905,
352,
29912,
29894,
10114,
13,
4706,
448,
2106,
1678,
584,
584,
755,
18078,
29886,
29952,
13,
13,
1678,
584,
26915,
29871,
29906,
29901,
13,
4706,
448,
5518,
584,
584,
755,
18078,
29883,
29952,
313,
25253,
29897,
13,
4706,
448,
2106,
1678,
584,
584,
755,
18078,
29905,
352,
29912,
29884,
10114,
13,
4706,
448,
6901,
29871,
584,
584,
755,
18078,
29939,
29952,
13,
13,
1678,
584,
26915,
29871,
29941,
29901,
13,
4706,
448,
5518,
1678,
584,
584,
755,
18078,
29883,
29952,
313,
25253,
29897,
13,
4706,
448,
3443,
29918,
29894,
584,
584,
755,
18078,
29905,
352,
29912,
29884,
10114,
13,
4706,
448,
3443,
29918,
29879,
584,
584,
755,
18078,
29886,
29952,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
28012,
29918,
303,
23195,
29915,
13,
1678,
1852,
29918,
8768,
353,
313,
877,
3670,
29918,
15388,
742,
525,
18714,
742,
525,
3859,
5477,
13,
462,
6702,
3670,
29918,
15388,
742,
525,
3859,
742,
525,
18714,
5477,
13,
462,
6702,
3670,
29918,
15388,
742,
525,
15501,
29918,
29894,
742,
525,
15501,
29918,
29879,
8785,
13,
1678,
1852,
29918,
845,
11603,
353,
518,
10998,
3670,
29918,
15388,
29915,
584,
525,
29896,
29892,
29871,
29896,
742,
13,
462,
259,
525,
18714,
29914,
5105,
29915,
584,
6702,
29928,
742,
6213,
511,
525,
3859,
29914,
5105,
29915,
584,
29871,
29896,
29892,
13,
462,
259,
525,
18714,
29914,
4563,
29915,
584,
313,
29896,
29892,
6213,
511,
525,
3859,
29914,
4563,
29915,
584,
525,
29928,
742,
13,
462,
259,
525,
15501,
29918,
29894,
29915,
584,
525,
29928,
742,
525,
15501,
29918,
29879,
29915,
584,
29871,
29896,
1118,
13,
462,
29871,
11117,
3670,
29918,
15388,
29915,
584,
6213,
6525,
13,
1678,
18893,
353,
6702,
5105,
742,
525,
4563,
742,
525,
14513,
1495,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
270,
29918,
14513,
29898,
449,
29892,
1302,
1389,
29892,
9649,
29918,
29939,
29886,
29892,
1933,
29892,
325,
29894,
29887,
1125,
13,
4706,
714,
29918,
29939,
29886,
353,
1302,
1389,
334,
9649,
29918,
29939,
29886,
334,
1933,
13,
13,
4706,
4660,
353,
325,
29894,
29887,
29889,
14146,
403,
29898,
449,
29892,
714,
29918,
29939,
29886,
29897,
13,
13,
4706,
736,
4660,
13,
13,
1678,
822,
679,
29918,
29888,
5085,
29898,
1311,
29892,
1302,
1389,
29892,
325,
1707,
29892,
269,
1707,
29892,
13,
462,
29871,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
565,
1583,
29889,
8513,
1275,
525,
5105,
2396,
13,
9651,
3855,
29886,
29918,
1707,
29892,
3855,
29886,
29918,
978,
353,
269,
1707,
29892,
525,
791,
29915,
13,
13,
4706,
1683,
29901,
13,
9651,
3855,
29886,
29918,
1707,
29892,
3855,
29886,
29918,
978,
353,
325,
1707,
29892,
525,
4563,
29915,
13,
13,
4706,
302,
29918,
295,
29892,
302,
29918,
29939,
29886,
29892,
3964,
29892,
302,
29918,
264,
29892,
302,
29918,
29883,
353,
1583,
29889,
657,
29918,
1272,
29918,
12181,
29898,
29894,
1707,
29897,
13,
4706,
565,
1302,
1389,
338,
6213,
29901,
13,
9651,
1302,
1389,
353,
302,
29885,
29889,
2873,
3552,
29896,
29892,
302,
29918,
29939,
29886,
29892,
29871,
29896,
29892,
29871,
29896,
511,
26688,
29922,
22882,
29889,
7411,
29953,
29946,
29897,
13,
13,
4706,
565,
4464,
1275,
525,
25129,
2396,
13,
9651,
325,
29894,
29887,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
29894,
1707,
29897,
13,
9651,
25773,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
29879,
1707,
29897,
13,
13,
9651,
565,
2923,
29918,
1707,
338,
6213,
29901,
13,
18884,
659,
29918,
29939,
29886,
353,
1583,
29889,
657,
29898,
29939,
29886,
29918,
1707,
29892,
3855,
29886,
29918,
978,
29897,
13,
18884,
285,
8513,
353,
29871,
29900,
13,
13,
9651,
1683,
29901,
13,
18884,
659,
29918,
29939,
29886,
353,
302,
29885,
29889,
2378,
4197,
29900,
1402,
29871,
299,
1195,
29922,
29946,
29892,
26688,
29922,
22882,
29889,
7411,
29953,
29946,
29897,
13,
18884,
285,
8513,
353,
29871,
29896,
13,
13,
9651,
736,
1302,
1389,
29892,
659,
29918,
29939,
29886,
29892,
25773,
29892,
325,
29894,
29887,
29892,
285,
8513,
13,
13,
4706,
25342,
4464,
1275,
525,
14513,
2396,
13,
9651,
325,
29894,
29887,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
29894,
1707,
29897,
13,
13,
9651,
1933,
353,
1583,
29889,
657,
29898,
29894,
1707,
29892,
525,
4563,
1495,
13,
9651,
9649,
29918,
29939,
29886,
353,
1583,
29889,
657,
29898,
29879,
1707,
29892,
525,
791,
1495,
13,
13,
9651,
736,
1302,
1389,
29892,
9649,
29918,
29939,
29886,
29892,
1933,
29892,
325,
29894,
29887,
13,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
877,
348,
23765,
17983,
4464,
297,
1273,
29879,
29991,
313,
29995,
29879,
16029,
13,
462,
632,
1273,
313,
1311,
29889,
978,
29892,
4464,
876,
13,
13,
1678,
822,
679,
29918,
14513,
29918,
12181,
29898,
1311,
29892,
1302,
1389,
29892,
325,
1707,
29892,
269,
1707,
29892,
13,
462,
539,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
302,
29918,
295,
29892,
302,
29918,
29939,
29886,
29892,
3964,
29892,
302,
29918,
264,
29892,
302,
29918,
29883,
353,
1583,
29889,
657,
29918,
1272,
29918,
12181,
29898,
29894,
1707,
29897,
13,
13,
4706,
736,
313,
29876,
29918,
295,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
511,
325,
1707,
29889,
29881,
1853,
13,
13,
1678,
822,
731,
29918,
1191,
29918,
8768,
29898,
1311,
1125,
13,
4706,
1583,
29889,
2220,
353,
426,
13,
9651,
525,
5105,
29915,
584,
4958,
29889,
28012,
29918,
5105,
29892,
13,
9651,
525,
4563,
29915,
584,
4958,
29889,
28012,
29918,
4563,
29892,
13,
9651,
525,
14513,
29915,
584,
1583,
29889,
29881,
29918,
14513,
29892,
13,
4706,
500,
29961,
1311,
29889,
8513,
29962,
13,
13,
1990,
19295,
14343,
29898,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
382,
4387,
403,
16030,
310,
263,
17336,
470,
4608,
1746,
29889,
13,
13,
1678,
18601,
29879,
525,
14513,
742,
525,
295,
29918,
485,
29887,
29915,
322,
525,
29939,
29886,
29915,
17983,
18893,
29889,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
524,
1665,
5981,
29913,
320,
8511,
282,
320,
8264,
29912,
470,
500,
320,
524,
1665,
5981,
29913,
320,
8511,
320,
352,
29912,
29893,
29913,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
8264,
29912,
8111,
363,
500,
476,
320,
3166,
320,
29902,
1052,
29918,
29882,
29901,
320,
524,
648,
29911,
29918,
29968,
29913,
320,
8511,
282,
847,
13,
4706,
320,
524,
648,
29911,
29918,
29968,
29913,
29871,
29896,
320,
8264,
29912,
470,
500,
320,
524,
648,
29911,
29918,
29968,
29913,
320,
8511,
320,
352,
29912,
29893,
29913,
847,
13,
4706,
320,
524,
648,
29911,
29918,
29968,
29913,
29871,
29896,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
3441,
8511,
282,
10531,
648,
29939,
29886,
29913,
320,
8264,
29912,
470,
500,
320,
8511,
320,
352,
29912,
29893,
11079,
648,
29939,
29886,
29913,
13,
13,
1678,
584,
26915,
29901,
13,
4706,
448,
3443,
584,
584,
755,
18078,
29886,
29952,
470,
584,
755,
18078,
29905,
352,
29912,
29893,
10114,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
5750,
29918,
5105,
29915,
13,
1678,
1852,
29918,
8768,
353,
6702,
15501,
742,
29897,
13,
1678,
1852,
29918,
845,
11603,
353,
518,
10998,
15501,
29915,
584,
29871,
29896,
1118,
11117,
15501,
29915,
584,
525,
29928,
29915,
6525,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
740,
29898,
449,
29892,
4656,
29892,
325,
29887,
29892,
285,
8513,
1125,
13,
4706,
565,
285,
8513,
1275,
29871,
29906,
29901,
13,
9651,
714,
7503,
29962,
353,
4656,
13,
9651,
4660,
353,
29871,
29900,
13,
13,
4706,
1683,
29901,
13,
9651,
4660,
353,
325,
29887,
29889,
14146,
403,
29898,
449,
29892,
4656,
29892,
285,
8513,
29897,
13,
13,
4706,
736,
4660,
13,
13,
1678,
822,
679,
29918,
29888,
5085,
29898,
1311,
29892,
3443,
29892,
13,
462,
29871,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
325,
29887,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
15501,
29897,
13,
13,
4706,
4656,
353,
1583,
29889,
657,
29898,
15501,
29892,
525,
5105,
1495,
13,
13,
4706,
285,
8513,
353,
11117,
14513,
29915,
584,
29871,
29900,
29892,
525,
295,
29918,
485,
29887,
29915,
584,
29871,
29896,
29892,
525,
29939,
29886,
29915,
584,
29871,
29906,
1836,
657,
29898,
8513,
29892,
29871,
29896,
29897,
13,
13,
4706,
736,
4656,
29892,
325,
29887,
29892,
285,
8513,
13,
13,
1678,
822,
679,
29918,
14513,
29918,
12181,
29898,
1311,
29892,
3443,
29892,
13,
462,
539,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
302,
29918,
295,
29892,
302,
29918,
29939,
29886,
29892,
3964,
29892,
302,
29918,
264,
29892,
302,
29918,
29883,
353,
1583,
29889,
657,
29918,
1272,
29918,
12181,
29898,
15501,
29897,
13,
13,
4706,
565,
4464,
2804,
525,
29939,
29886,
2396,
13,
9651,
302,
29918,
29939,
29886,
353,
29871,
29896,
13,
13,
4706,
736,
313,
29876,
29918,
295,
29892,
302,
29918,
29939,
29886,
29892,
3964,
29892,
302,
29918,
29883,
511,
3443,
29889,
29881,
1853,
13,
13,
1990,
4910,
14343,
29898,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
382,
4387,
403,
17089,
10238,
310,
263,
4608,
1746,
29889,
13,
13,
1678,
18601,
29879,
525,
14513,
742,
525,
295,
29918,
485,
29887,
29915,
322,
525,
29939,
29886,
29915,
17983,
18893,
29889,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
308,
320,
524,
1665,
5981,
29913,
320,
8511,
320,
3822,
320,
352,
29912,
29884,
29913,
13,
13,
1678,
6317,
5844,
1057,
13,
308,
320,
8264,
29912,
8111,
363,
500,
476,
320,
3166,
320,
29902,
1052,
29918,
29882,
29901,
13,
308,
320,
524,
648,
29911,
29918,
29968,
29913,
320,
8511,
320,
3822,
320,
352,
29912,
29884,
29913,
847,
320,
524,
648,
29911,
29918,
29968,
29913,
29871,
29896,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
3441,
8511,
320,
3822,
320,
352,
29912,
29884,
1800,
26632,
29939,
29886,
29913,
13,
13,
1678,
584,
26915,
29901,
13,
4706,
448,
3443,
584,
584,
755,
18078,
29905,
352,
29912,
29884,
10114,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
5750,
29918,
4563,
29915,
13,
1678,
1852,
29918,
8768,
353,
6702,
15501,
742,
29897,
13,
1678,
1852,
29918,
845,
11603,
353,
11117,
15501,
29915,
584,
525,
29928,
10827,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
740,
29898,
449,
29892,
1933,
29892,
325,
29887,
29892,
285,
8513,
1125,
13,
4706,
565,
285,
8513,
1275,
29871,
29906,
29901,
13,
9651,
714,
7503,
29962,
353,
1933,
13,
9651,
4660,
353,
29871,
29900,
13,
13,
4706,
1683,
29901,
13,
9651,
4660,
353,
325,
29887,
29889,
14146,
403,
29898,
449,
29892,
1933,
29892,
285,
8513,
29897,
13,
13,
4706,
736,
4660,
13,
13,
1678,
822,
679,
29918,
29888,
5085,
29898,
1311,
29892,
3443,
29892,
13,
462,
29871,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
325,
29887,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
15501,
29897,
13,
13,
4706,
1933,
353,
1583,
29889,
657,
29898,
15501,
29892,
525,
4563,
1495,
13,
13,
4706,
285,
8513,
353,
11117,
14513,
29915,
584,
29871,
29900,
29892,
525,
295,
29918,
485,
29887,
29915,
584,
29871,
29896,
29892,
525,
29939,
29886,
29915,
584,
29871,
29906,
1836,
657,
29898,
8513,
29892,
29871,
29896,
29897,
13,
13,
4706,
736,
1933,
29892,
325,
29887,
29892,
285,
8513,
13,
13,
1678,
822,
679,
29918,
14513,
29918,
12181,
29898,
1311,
29892,
3443,
29892,
13,
462,
539,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
302,
29918,
295,
29892,
302,
29918,
29939,
29886,
29892,
3964,
29892,
302,
29918,
264,
29892,
302,
29918,
29883,
353,
1583,
29889,
657,
29918,
1272,
29918,
12181,
29898,
15501,
29897,
13,
13,
4706,
565,
4464,
2804,
525,
29939,
29886,
2396,
13,
9651,
302,
29918,
29939,
29886,
353,
29871,
29896,
13,
13,
4706,
736,
313,
29876,
29918,
295,
29892,
302,
29918,
29939,
29886,
29892,
29871,
29896,
29892,
29871,
29896,
511,
3443,
29889,
29881,
1853,
13,
13,
1990,
4910,
26486,
14343,
29898,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
1334,
523,
287,
17089,
10238,
1840,
310,
263,
1243,
740,
29889,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
524,
1665,
5981,
29913,
320,
8511,
320,
3822,
320,
352,
29912,
29894,
29913,
320,
8264,
426,
470,
500,
320,
524,
1665,
5981,
29913,
274,
320,
8511,
13,
4706,
320,
3822,
320,
352,
29912,
29894,
29913,
13,
13,
1678,
584,
26915,
29901,
13,
4706,
448,
5518,
584,
584,
755,
18078,
29883,
29952,
313,
25253,
29897,
13,
4706,
448,
6901,
29871,
584,
584,
755,
18078,
29905,
352,
29912,
29894,
10114,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
28012,
29918,
4563,
29915,
13,
1678,
1852,
29918,
8768,
353,
6702,
3670,
29918,
15388,
742,
525,
18714,
1495,
13,
1678,
1852,
29918,
845,
11603,
353,
518,
10998,
3670,
29918,
15388,
29915,
584,
525,
29896,
29892,
29871,
29896,
742,
525,
18714,
29915,
584,
6702,
29928,
742,
6213,
19230,
13,
462,
29871,
11117,
3670,
29918,
15388,
29915,
584,
6213,
6525,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
740,
29898,
449,
29892,
1775,
29892,
325,
29887,
1125,
13,
4706,
1933,
29918,
1635,
353,
325,
29887,
29889,
1635,
29887,
13,
13,
4706,
302,
29918,
295,
29892,
302,
29918,
29939,
29886,
29892,
3964,
29892,
302,
29918,
1022,
353,
1933,
29918,
1635,
29889,
12181,
13,
4706,
1933,
29918,
1635,
353,
1933,
29918,
1635,
29889,
690,
14443,
3552,
29876,
29918,
295,
29892,
302,
29918,
29939,
29886,
29892,
3964,
334,
302,
29918,
1022,
29892,
29871,
29896,
876,
13,
4706,
1933,
29918,
1635,
353,
302,
29885,
29889,
294,
1285,
5526,
681,
2378,
29898,
4563,
29918,
1635,
29897,
13,
13,
4706,
565,
1775,
338,
451,
6213,
29901,
13,
9651,
4660,
353,
325,
29887,
29889,
14146,
403,
29898,
449,
29892,
1775,
334,
1933,
29918,
1635,
29897,
13,
4706,
1683,
29901,
13,
9651,
4660,
353,
325,
29887,
29889,
14146,
403,
29898,
449,
29892,
1933,
29918,
1635,
29897,
13,
13,
4706,
736,
4660,
13,
13,
1678,
822,
679,
29918,
29888,
5085,
29898,
1311,
29892,
1775,
29892,
6901,
29892,
13,
462,
29871,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
325,
29887,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
18714,
29897,
13,
13,
4706,
736,
1775,
29892,
325,
29887,
13,
13,
1990,
19295,
12596,
855,
4427,
2133,
14343,
29898,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
19295,
29899,
4563,
16160,
2133,
1840,
313,
584,
755,
18078,
29905,
4283,
29952,
338,
263,
5534,
16160,
2133,
13,
1678,
3443,
467,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
4283,
320,
524,
1665,
5981,
29913,
3441,
8511,
29905,
3822,
29905,
352,
29912,
29884,
1800,
320,
3822,
3441,
8511,
29905,
3822,
29905,
352,
29912,
29894,
1800,
13,
13,
1678,
584,
26915,
29901,
13,
4706,
448,
5518,
584,
584,
755,
18078,
29905,
4283,
29952,
13,
4706,
448,
6901,
29871,
584,
584,
755,
18078,
29905,
352,
29912,
29894,
10114,
13,
4706,
448,
2106,
1678,
584,
584,
755,
18078,
29905,
352,
29912,
29884,
10114,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
28012,
29918,
303,
29918,
5105,
29918,
4563,
29915,
13,
1678,
1852,
29918,
8768,
353,
6702,
15388,
742,
525,
18714,
742,
525,
3859,
1495,
13,
1678,
1852,
29918,
845,
11603,
353,
11117,
15388,
29915,
584,
525,
29896,
29892,
29871,
29896,
742,
525,
18714,
29915,
584,
6702,
29928,
742,
525,
3859,
5477,
13,
462,
29871,
525,
3859,
29915,
584,
525,
29928,
10827,
13,
13,
1678,
740,
353,
2294,
5696,
29898,
357,
1516,
29889,
28012,
29918,
303,
29918,
5105,
29918,
4563,
29897,
13,
13,
1678,
822,
679,
29918,
29888,
5085,
29898,
1311,
29892,
330,
2735,
29892,
6901,
29892,
2106,
29892,
13,
462,
29871,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
325,
29887,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
3859,
29897,
13,
13,
4706,
565,
2923,
29918,
1707,
338,
6213,
29901,
13,
9651,
1933,
353,
1583,
29889,
657,
29898,
3859,
29892,
525,
4563,
1495,
13,
9651,
285,
8513,
353,
29871,
29900,
13,
13,
4706,
1683,
29901,
13,
9651,
1933,
353,
302,
29885,
29889,
2378,
4197,
29900,
1402,
29871,
299,
1195,
29922,
29946,
29892,
26688,
29922,
22882,
29889,
7411,
29953,
29946,
29897,
13,
9651,
285,
8513,
353,
29871,
29896,
13,
13,
4706,
736,
1933,
29892,
330,
2735,
29892,
325,
29887,
29892,
285,
8513,
13,
13,
3166,
18668,
1022,
29891,
29889,
357,
1516,
29889,
357,
1516,
29918,
12765,
3958,
1053,
20298,
1265,
14343,
13,
1990,
349,
5550,
19903,
855,
4427,
2133,
14343,
29898,
29931,
481,
1265,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
349,
5550,
29954,
16160,
2133,
1840,
29892,
12959,
760,
313,
584,
755,
18078,
29905,
4722,
29952,
338,
263,
1887,
13,
1678,
16160,
2133,
3443,
511,
13995,
304,
20298,
1265,
1840,
11988,
29918,
433,
6689,
29889,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
2083,
648,
29968,
320,
262,
320,
29902,
1052,
29918,
29882,
1012,
524,
648,
29911,
29918,
29968,
29913,
320,
4722,
29918,
29968,
29905,
320,
8511,
282,
320,
3822,
320,
8511,
3855,
13,
13,
1678,
584,
26915,
29901,
13,
4706,
448,
5518,
584,
584,
755,
18078,
29905,
4722,
29918,
29968,
29952,
13,
4706,
448,
6901,
29871,
584,
584,
755,
18078,
29939,
29952,
13,
4706,
448,
2106,
1678,
584,
584,
755,
18078,
29886,
29952,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
28012,
29918,
303,
29918,
567,
4061,
29918,
29886,
29915,
13,
13,
1990,
349,
5550,
8766,
855,
4427,
2133,
14343,
29898,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
349,
5550,
29954,
16160,
2133,
1840,
29892,
378,
345,
312,
573,
760,
313,
584,
755,
18078,
29905,
4722,
29952,
338,
263,
1887,
13,
1678,
16160,
2133,
3443,
467,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
2083,
648,
29968,
320,
262,
320,
29902,
1052,
29918,
29882,
1012,
524,
648,
29911,
29918,
29968,
29913,
320,
4722,
29918,
29968,
29905,
313,
1194,
352,
29912,
29890,
29913,
320,
3822,
320,
8511,
29897,
320,
352,
29912,
29884,
1800,
13,
4706,
320,
3822,
320,
8511,
3855,
13,
13,
1678,
584,
26915,
29901,
13,
4706,
448,
5518,
29871,
584,
584,
755,
18078,
29905,
4722,
29918,
29968,
29952,
13,
4706,
448,
6901,
259,
584,
584,
755,
18078,
29939,
29952,
13,
4706,
448,
3443,
584,
584,
755,
18078,
29905,
352,
29912,
29890,
10114,
13,
4706,
448,
2106,
268,
584,
584,
755,
18078,
29905,
352,
29912,
29884,
10114,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
28012,
29918,
303,
29918,
567,
4061,
29918,
29883,
29915,
13,
1678,
1852,
29918,
8768,
353,
6702,
15388,
742,
525,
18714,
742,
525,
15501,
742,
525,
3859,
1495,
13,
1678,
1852,
29918,
845,
11603,
353,
11117,
15388,
29915,
584,
525,
29896,
29892,
29871,
29896,
742,
525,
18714,
29915,
584,
313,
29896,
29892,
6213,
511,
13,
462,
29871,
525,
15501,
29915,
584,
525,
29928,
742,
525,
3859,
29915,
584,
525,
29928,
10827,
13,
13,
1678,
740,
353,
2294,
5696,
29898,
357,
1516,
29889,
28012,
29918,
303,
29918,
567,
4061,
29918,
29883,
29897,
13,
13,
1678,
822,
679,
29918,
29888,
5085,
29898,
1311,
29892,
260,
585,
29892,
6901,
29892,
3443,
29892,
2106,
29892,
13,
462,
29871,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
21672,
29892,
25773,
353,
1583,
29889,
657,
29918,
9961,
2657,
362,
29898,
18714,
29897,
13,
4706,
325,
481,
29892,
325,
29894,
29887,
353,
1583,
29889,
657,
29918,
9961,
2657,
362,
29898,
3859,
29897,
13,
13,
4706,
659,
29918,
29939,
29886,
353,
1583,
29889,
657,
29898,
15501,
29892,
525,
791,
1495,
13,
4706,
11009,
353,
325,
481,
29889,
657,
29918,
6915,
2068,
29898,
1311,
29889,
12803,
29892,
1583,
29889,
27925,
29897,
13,
13,
4706,
565,
2923,
29918,
1707,
338,
6213,
29901,
13,
9651,
285,
8513,
353,
29871,
29900,
13,
13,
4706,
1683,
29901,
13,
9651,
285,
8513,
353,
29871,
29896,
13,
13,
4706,
736,
659,
29918,
29939,
29886,
29892,
2106,
3285,
260,
585,
29892,
25773,
29892,
325,
29894,
29887,
29892,
11009,
29892,
285,
8513,
13,
13,
1990,
317,
4897,
19903,
855,
4427,
2133,
14343,
29898,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
317,
4897,
29954,
16160,
2133,
1840,
29892,
12959,
760,
313,
584,
755,
18078,
29905,
4181,
29952,
338,
263,
1887,
13,
1678,
16160,
2133,
3443,
467,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
2083,
648,
29968,
320,
262,
320,
29902,
1052,
29918,
29882,
1012,
524,
648,
29911,
29918,
29968,
29913,
320,
4181,
29918,
29968,
29905,
320,
8511,
282,
29905,
3822,
313,
1194,
352,
29912,
29890,
29913,
320,
3822,
13,
4706,
320,
8511,
29897,
320,
352,
29912,
29894,
1800,
13,
13,
1678,
584,
26915,
29901,
13,
4706,
448,
5518,
29871,
584,
584,
755,
18078,
29905,
4181,
29918,
29968,
29952,
13,
4706,
448,
6901,
259,
584,
584,
755,
18078,
29905,
352,
29912,
29894,
10114,
13,
4706,
448,
3443,
584,
584,
755,
18078,
29905,
352,
29912,
29890,
10114,
13,
4706,
448,
2106,
268,
584,
584,
755,
18078,
29886,
29952,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
28012,
29918,
303,
29918,
12587,
29887,
29918,
29886,
29915,
13,
1678,
1852,
29918,
8768,
353,
6702,
15388,
742,
525,
18714,
742,
525,
15501,
742,
525,
3859,
1495,
13,
1678,
1852,
29918,
845,
11603,
353,
11117,
15388,
29915,
584,
525,
29896,
29892,
29871,
29896,
742,
525,
18714,
29915,
584,
6702,
29928,
742,
6213,
511,
13,
462,
29871,
525,
15501,
29915,
584,
525,
29928,
742,
525,
3859,
29915,
584,
29871,
29896,
29913,
13,
13,
1678,
740,
353,
2294,
5696,
29898,
357,
1516,
29889,
28012,
29918,
303,
29918,
12587,
29887,
29918,
29886,
29897,
13,
13,
1678,
822,
679,
29918,
29888,
5085,
29898,
1311,
29892,
19471,
29892,
6901,
29892,
3443,
29892,
2106,
29892,
13,
462,
29871,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
325,
29894,
29887,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
18714,
29897,
13,
4706,
25773,
29892,
903,
353,
1583,
29889,
657,
29918,
20698,
29898,
3859,
29897,
13,
13,
4706,
659,
29918,
29939,
29886,
353,
1583,
29889,
657,
29898,
15501,
29892,
525,
791,
1495,
13,
13,
4706,
565,
2923,
29918,
1707,
338,
6213,
29901,
13,
9651,
4656,
353,
1583,
29889,
657,
29898,
3859,
29892,
525,
5105,
1495,
13,
9651,
285,
8513,
353,
29871,
29900,
13,
13,
4706,
1683,
29901,
13,
9651,
4656,
353,
302,
29885,
29889,
2378,
4197,
29900,
1402,
29871,
299,
1195,
29922,
29946,
29892,
26688,
29922,
22882,
29889,
7411,
29953,
29946,
29897,
13,
9651,
285,
8513,
353,
29871,
29896,
13,
13,
4706,
736,
659,
29918,
29939,
29886,
29892,
4656,
29892,
19471,
29892,
325,
29894,
29887,
29892,
25773,
29892,
285,
8513,
13,
13,
1990,
317,
4897,
8766,
855,
4427,
2133,
14343,
29898,
14343,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
317,
4897,
29954,
16160,
2133,
1840,
29892,
378,
345,
312,
573,
760,
313,
584,
755,
18078,
29905,
4181,
29952,
338,
263,
1887,
13,
1678,
16160,
2133,
3443,
467,
13,
13,
1678,
584,
14683,
29901,
13,
13,
1678,
6317,
5844,
1057,
13,
4706,
320,
2083,
648,
29968,
320,
262,
320,
29902,
1052,
29918,
29882,
1012,
524,
648,
29911,
29918,
29968,
29913,
320,
4181,
29918,
29968,
29905,
313,
1194,
352,
29912,
29890,
29913,
320,
3822,
320,
8511,
29897,
13,
4706,
320,
352,
29912,
29884,
11606,
3822,
313,
1194,
352,
29912,
29890,
29913,
320,
3822,
320,
8511,
29897,
320,
352,
29912,
29894,
1800,
13,
13,
1678,
584,
26915,
29901,
13,
4706,
448,
5518,
29871,
584,
584,
755,
18078,
29905,
4181,
29918,
29968,
29952,
13,
4706,
448,
6901,
259,
584,
584,
755,
18078,
29905,
352,
29912,
29894,
10114,
13,
4706,
448,
3443,
584,
584,
755,
18078,
29905,
352,
29912,
29890,
10114,
13,
4706,
448,
2106,
268,
584,
584,
755,
18078,
29905,
352,
29912,
29884,
10114,
13,
1678,
9995,
13,
1678,
1024,
353,
525,
28012,
29918,
303,
29918,
12587,
29887,
29918,
29883,
29915,
13,
1678,
1852,
29918,
8768,
353,
6702,
15388,
742,
525,
18714,
742,
525,
15501,
742,
525,
3859,
1495,
13,
1678,
1852,
29918,
845,
11603,
353,
11117,
15388,
29915,
584,
525,
29896,
29892,
29871,
29896,
742,
525,
18714,
29915,
584,
6702,
29928,
742,
525,
3859,
5477,
13,
462,
29871,
525,
15501,
29915,
584,
525,
29928,
742,
525,
3859,
29915,
584,
525,
29928,
10827,
13,
13,
1678,
740,
353,
2294,
5696,
29898,
357,
1516,
29889,
28012,
29918,
303,
29918,
12587,
29887,
29918,
29883,
29897,
13,
13,
1678,
822,
679,
29918,
29888,
5085,
29898,
1311,
29892,
19471,
29892,
6901,
29892,
3443,
29892,
2106,
29892,
13,
462,
29871,
4464,
29922,
8516,
29892,
1840,
29918,
8513,
29922,
8516,
29892,
2923,
29918,
1707,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
3095,
29892,
325,
29887,
353,
1583,
29889,
657,
29918,
9961,
2657,
362,
29898,
18714,
29897,
13,
13,
4706,
659,
29918,
29939,
29886,
353,
1583,
29889,
657,
29898,
15501,
29892,
525,
791,
1495,
13,
4706,
11009,
353,
3095,
29889,
657,
29918,
6915,
2068,
29898,
1311,
29889,
12803,
29892,
1583,
29889,
27925,
29897,
13,
13,
4706,
565,
2923,
29918,
1707,
338,
6213,
29901,
13,
9651,
285,
8513,
353,
29871,
29900,
13,
13,
4706,
1683,
29901,
13,
9651,
285,
8513,
353,
29871,
29896,
13,
13,
4706,
736,
659,
29918,
29939,
29886,
29892,
2106,
3285,
19471,
29892,
325,
29887,
29892,
11009,
29892,
285,
8513,
13,
2
] |
grr/server/grr_response_server/instant_output_plugin_test.py | khanhgithead/grr | 4,238 | 197398 | <filename>grr/server/grr_response_server/instant_output_plugin_test.py
#!/usr/bin/env python
# Lint as: python3
"""Tests for grr.lib.output_plugin."""
import io
from absl import app
from grr_response_core.lib import rdfvalue
from grr_response_server import export
from grr_response_server.output_plugins import test_plugins
from grr.test_lib import test_lib
class DummySrcValue1(rdfvalue.RDFString):
pass
class DummySrcValue2(rdfvalue.RDFString):
pass
class DummyOutValue1(rdfvalue.RDFString):
pass
class DummyOutValue2(rdfvalue.RDFString):
pass
class TestConverter1(export.ExportConverter):
input_rdf_type = DummySrcValue1
def Convert(self, metadata, value):
return [DummyOutValue1("exp-" + str(value))]
class TestConverter2(export.ExportConverter):
input_rdf_type = DummySrcValue2
def Convert(self, metadata, value):
_ = metadata
return [
DummyOutValue1("exp1-" + str(value)),
DummyOutValue2("exp2-" + str(value))
]
class InstantOutputPluginWithExportConversionTest(
test_plugins.InstantOutputPluginTestBase):
"""Tests for InstantOutputPluginWithExportConversion."""
plugin_cls = test_plugins.TestInstantOutputPluginWithExportConverstion
def ProcessValuesToLines(self, values_by_cls):
fd_name = self.ProcessValues(values_by_cls)
with io.open(fd_name, mode="r", encoding="utf-8") as fd:
return fd.read().split("\n")
def testWorksCorrectlyWithOneSourceValueAndOneExportedValue(self):
lines = self.ProcessValuesToLines({DummySrcValue1: [DummySrcValue1("foo")]})
self.assertListEqual(lines, [
"Start",
"Original: DummySrcValue1",
"Exported value: exp-foo",
"Finish"
]) # pyformat: disable
def testWorksCorrectlyWithOneSourceValueAndTwoExportedValues(self):
lines = self.ProcessValuesToLines({DummySrcValue2: [DummySrcValue2("foo")]})
self.assertListEqual(lines, [
"Start",
"Original: DummySrcValue2",
"Exported value: exp1-foo",
"Original: DummySrcValue2",
"Exported value: exp2-foo",
"Finish"
]) # pyformat: disable
def testWorksCorrectlyWithTwoSourceValueAndTwoExportedValuesEach(self):
lines = self.ProcessValuesToLines(
{DummySrcValue2: [DummySrcValue2("foo"),
DummySrcValue2("bar")]})
self.assertListEqual(lines, [
"Start",
"Original: DummySrcValue2",
"Exported value: exp1-foo",
"Exported value: exp1-bar",
"Original: DummySrcValue2",
"Exported value: exp2-foo",
"Exported value: exp2-bar",
"Finish"
]) # pyformat: disable
def testWorksCorrectlyWithTwoDifferentTypesOfSourceValues(self):
lines = self.ProcessValuesToLines({
DummySrcValue1: [DummySrcValue1("foo")],
DummySrcValue2: [DummySrcValue2("bar")],
})
self.assertListEqual(lines, [
"Start",
"Original: DummySrcValue1",
"Exported value: exp-foo",
"Original: DummySrcValue2",
"Exported value: exp1-bar",
"Original: DummySrcValue2",
"Exported value: exp2-bar",
"Finish"
]) # pyformat: disable
def main(argv):
test_lib.main(argv)
if __name__ == "__main__":
app.run(main)
| [
1,
529,
9507,
29958,
629,
29878,
29914,
2974,
29914,
629,
29878,
29918,
5327,
29918,
2974,
29914,
2611,
424,
29918,
4905,
29918,
8582,
29918,
1688,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
365,
524,
408,
29901,
3017,
29941,
13,
15945,
29908,
24376,
363,
867,
29878,
29889,
1982,
29889,
4905,
29918,
8582,
1213,
15945,
13,
13,
5215,
12013,
13,
13,
3166,
633,
2536,
1053,
623,
13,
13,
3166,
867,
29878,
29918,
5327,
29918,
3221,
29889,
1982,
1053,
364,
2176,
1767,
13,
3166,
867,
29878,
29918,
5327,
29918,
2974,
1053,
5609,
13,
3166,
867,
29878,
29918,
5327,
29918,
2974,
29889,
4905,
29918,
12800,
1053,
1243,
29918,
12800,
13,
3166,
867,
29878,
29889,
1688,
29918,
1982,
1053,
1243,
29918,
1982,
13,
13,
13,
1990,
360,
11770,
29903,
2214,
1917,
29896,
29898,
29878,
2176,
1767,
29889,
29934,
4037,
1231,
1125,
13,
29871,
1209,
13,
13,
13,
1990,
360,
11770,
29903,
2214,
1917,
29906,
29898,
29878,
2176,
1767,
29889,
29934,
4037,
1231,
1125,
13,
29871,
1209,
13,
13,
13,
1990,
360,
11770,
3744,
1917,
29896,
29898,
29878,
2176,
1767,
29889,
29934,
4037,
1231,
1125,
13,
29871,
1209,
13,
13,
13,
1990,
360,
11770,
3744,
1917,
29906,
29898,
29878,
2176,
1767,
29889,
29934,
4037,
1231,
1125,
13,
29871,
1209,
13,
13,
13,
1990,
4321,
18545,
29896,
29898,
15843,
29889,
26382,
18545,
1125,
13,
29871,
1881,
29918,
29878,
2176,
29918,
1853,
353,
360,
11770,
29903,
2214,
1917,
29896,
13,
13,
29871,
822,
14806,
29898,
1311,
29892,
15562,
29892,
995,
1125,
13,
1678,
736,
518,
29928,
11770,
3744,
1917,
29896,
703,
4548,
29899,
29908,
718,
851,
29898,
1767,
28166,
13,
13,
13,
1990,
4321,
18545,
29906,
29898,
15843,
29889,
26382,
18545,
1125,
13,
29871,
1881,
29918,
29878,
2176,
29918,
1853,
353,
360,
11770,
29903,
2214,
1917,
29906,
13,
13,
29871,
822,
14806,
29898,
1311,
29892,
15562,
29892,
995,
1125,
13,
1678,
903,
353,
15562,
13,
1678,
736,
518,
13,
4706,
360,
11770,
3744,
1917,
29896,
703,
4548,
29896,
29899,
29908,
718,
851,
29898,
1767,
8243,
13,
4706,
360,
11770,
3744,
1917,
29906,
703,
4548,
29906,
29899,
29908,
718,
851,
29898,
1767,
876,
13,
1678,
4514,
13,
13,
13,
1990,
2799,
424,
6466,
16288,
3047,
26382,
1168,
3259,
3057,
29898,
13,
1678,
1243,
29918,
12800,
29889,
3379,
424,
6466,
16288,
3057,
5160,
1125,
13,
29871,
9995,
24376,
363,
2799,
424,
6466,
16288,
3047,
26382,
1168,
3259,
1213,
15945,
13,
13,
29871,
7079,
29918,
25932,
353,
1243,
29918,
12800,
29889,
3057,
3379,
424,
6466,
16288,
3047,
26382,
1168,
369,
303,
291,
13,
13,
29871,
822,
10554,
9065,
1762,
20261,
29898,
1311,
29892,
1819,
29918,
1609,
29918,
25932,
1125,
13,
1678,
285,
29881,
29918,
978,
353,
1583,
29889,
7032,
9065,
29898,
5975,
29918,
1609,
29918,
25932,
29897,
13,
1678,
411,
12013,
29889,
3150,
29898,
11512,
29918,
978,
29892,
4464,
543,
29878,
613,
8025,
543,
9420,
29899,
29947,
1159,
408,
285,
29881,
29901,
13,
418,
736,
285,
29881,
29889,
949,
2141,
5451,
14182,
29876,
1159,
13,
13,
29871,
822,
1243,
5531,
29879,
12521,
1621,
368,
3047,
6716,
4435,
1917,
2855,
6716,
26382,
287,
1917,
29898,
1311,
1125,
13,
1678,
3454,
353,
1583,
29889,
7032,
9065,
1762,
20261,
3319,
29928,
11770,
29903,
2214,
1917,
29896,
29901,
518,
29928,
11770,
29903,
2214,
1917,
29896,
703,
5431,
13531,
1800,
13,
1678,
1583,
29889,
9294,
1293,
9843,
29898,
9012,
29892,
518,
13,
4706,
376,
4763,
613,
13,
4706,
376,
26036,
29901,
360,
11770,
29903,
2214,
1917,
29896,
613,
13,
4706,
376,
26382,
287,
995,
29901,
1518,
29899,
5431,
613,
13,
4706,
376,
12881,
728,
29908,
13,
268,
2314,
29871,
396,
11451,
4830,
29901,
11262,
13,
13,
29871,
822,
1243,
5531,
29879,
12521,
1621,
368,
3047,
6716,
4435,
1917,
2855,
13985,
26382,
287,
9065,
29898,
1311,
1125,
13,
1678,
3454,
353,
1583,
29889,
7032,
9065,
1762,
20261,
3319,
29928,
11770,
29903,
2214,
1917,
29906,
29901,
518,
29928,
11770,
29903,
2214,
1917,
29906,
703,
5431,
13531,
1800,
13,
1678,
1583,
29889,
9294,
1293,
9843,
29898,
9012,
29892,
518,
13,
4706,
376,
4763,
613,
13,
4706,
376,
26036,
29901,
360,
11770,
29903,
2214,
1917,
29906,
613,
13,
4706,
376,
26382,
287,
995,
29901,
1518,
29896,
29899,
5431,
613,
13,
4706,
376,
26036,
29901,
360,
11770,
29903,
2214,
1917,
29906,
613,
13,
4706,
376,
26382,
287,
995,
29901,
1518,
29906,
29899,
5431,
613,
13,
4706,
376,
12881,
728,
29908,
13,
268,
2314,
29871,
396,
11451,
4830,
29901,
11262,
13,
13,
29871,
822,
1243,
5531,
29879,
12521,
1621,
368,
3047,
13985,
4435,
1917,
2855,
13985,
26382,
287,
9065,
9760,
29898,
1311,
1125,
13,
1678,
3454,
353,
1583,
29889,
7032,
9065,
1762,
20261,
29898,
13,
4706,
426,
29928,
11770,
29903,
2214,
1917,
29906,
29901,
518,
29928,
11770,
29903,
2214,
1917,
29906,
703,
5431,
4968,
13,
462,
3986,
360,
11770,
29903,
2214,
1917,
29906,
703,
1646,
13531,
1800,
13,
1678,
1583,
29889,
9294,
1293,
9843,
29898,
9012,
29892,
518,
13,
4706,
376,
4763,
613,
13,
4706,
376,
26036,
29901,
360,
11770,
29903,
2214,
1917,
29906,
613,
13,
4706,
376,
26382,
287,
995,
29901,
1518,
29896,
29899,
5431,
613,
13,
4706,
376,
26382,
287,
995,
29901,
1518,
29896,
29899,
1646,
613,
13,
4706,
376,
26036,
29901,
360,
11770,
29903,
2214,
1917,
29906,
613,
13,
4706,
376,
26382,
287,
995,
29901,
1518,
29906,
29899,
5431,
613,
13,
4706,
376,
26382,
287,
995,
29901,
1518,
29906,
29899,
1646,
613,
13,
4706,
376,
12881,
728,
29908,
13,
268,
2314,
29871,
396,
11451,
4830,
29901,
11262,
13,
13,
29871,
822,
1243,
5531,
29879,
12521,
1621,
368,
3047,
13985,
29928,
15622,
10562,
2776,
4435,
9065,
29898,
1311,
1125,
13,
1678,
3454,
353,
1583,
29889,
7032,
9065,
1762,
20261,
3319,
13,
4706,
360,
11770,
29903,
2214,
1917,
29896,
29901,
518,
29928,
11770,
29903,
2214,
1917,
29896,
703,
5431,
1159,
1402,
13,
4706,
360,
11770,
29903,
2214,
1917,
29906,
29901,
518,
29928,
11770,
29903,
2214,
1917,
29906,
703,
1646,
1159,
1402,
13,
1678,
5615,
13,
1678,
1583,
29889,
9294,
1293,
9843,
29898,
9012,
29892,
518,
13,
4706,
376,
4763,
613,
13,
4706,
376,
26036,
29901,
360,
11770,
29903,
2214,
1917,
29896,
613,
13,
4706,
376,
26382,
287,
995,
29901,
1518,
29899,
5431,
613,
13,
4706,
376,
26036,
29901,
360,
11770,
29903,
2214,
1917,
29906,
613,
13,
4706,
376,
26382,
287,
995,
29901,
1518,
29896,
29899,
1646,
613,
13,
4706,
376,
26036,
29901,
360,
11770,
29903,
2214,
1917,
29906,
613,
13,
4706,
376,
26382,
287,
995,
29901,
1518,
29906,
29899,
1646,
613,
13,
4706,
376,
12881,
728,
29908,
13,
268,
2314,
29871,
396,
11451,
4830,
29901,
11262,
13,
13,
13,
1753,
1667,
29898,
19218,
1125,
13,
29871,
1243,
29918,
1982,
29889,
3396,
29898,
19218,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
29871,
623,
29889,
3389,
29898,
3396,
29897,
13,
2
] |
python/paddle/fluid/tests/unittests/test_gru_op.py | javakian/Paddle | 0 | 197769 | <gh_stars>0
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import print_function
import unittest
import numpy as np
import math
import functools
from op_test import OpTest
from test_lstm_op import ACTIVATION
def gru(
input, # T x 3D
lod, # 1 x N
h0, # N x D
weight, # D x 3D
bias, # 1 x 3D
is_reverse,
act_state,
act_gate,
dtype='float32',
origin_mode=False):
def _seq_to_batch(lod, is_reverse):
idx_in_seq_list = []
seq_lens = lod[0]
seq_starts = [0]
for i in range(len(seq_lens)):
seq_starts.append(seq_starts[-1] + seq_lens[i])
sorted_seqs = sorted(
list(range(len(seq_lens))),
key=functools.cmp_to_key(lambda x, y: seq_lens[y] - seq_lens[x]))
num_batch = seq_lens[sorted_seqs[0]]
for batch_idx in range(num_batch):
idx_in_seq = []
for i in range(len(seq_lens)):
if seq_lens[sorted_seqs[i]] <= batch_idx:
break
idx = (seq_starts[sorted_seqs[i] + 1] - 1 - batch_idx
) if is_reverse else (
seq_starts[sorted_seqs[i]] + batch_idx)
idx_in_seq.append(idx)
idx_in_seq_list.append(idx_in_seq)
return idx_in_seq_list, sorted_seqs
def _step(x, h_p, w, b, act_state, act_gate):
T = x.shape[0]
D = w.shape[0]
g = x + np.tile(b, (T, 1))
w_u_r = w.flatten()[:D * D * 2].reshape((D, D * 2))
u_r = act_gate(np.dot(h_p, w_u_r) + g[:, :D * 2])
u = u_r[:, :D]
r = u_r[:, D:D * 2]
r_h_p = r * h_p
w_c = w.flatten()[D * D * 2:].reshape((D, D))
c = act_state(np.dot(r_h_p, w_c) + g[:, D * 2:])
g = np.hstack((u_r, c))
if origin_mode:
h = (1 - u) * c + u * h_p
else:
h = u * c + (1 - u) * h_p
return g, r_h_p, h
T = sum(lod[0])
N = len(lod[0])
D = weight.shape[0]
batch_gate = np.zeros((T, 3 * D), dtype=dtype)
batch_reset_hidden_prev = np.zeros((T, D), dtype=dtype)
batch_hidden = np.zeros((T, D), dtype=dtype)
hidden = np.zeros((T, D), dtype=dtype)
idx_in_seq_list, sorted_seqs = _seq_to_batch(lod, is_reverse)
h_p = h0[[seq for seq in sorted_seqs if lod[0][seq] > 0]]
max_seq_len = len(idx_in_seq_list)
end_idx = 0
for batch_idx in range(max_seq_len):
x = input[idx_in_seq_list[batch_idx]]
g, r_h_p, h = _step(x, h_p, weight, bias, act_state, act_gate)
if batch_idx < (max_seq_len - 1):
h_p = h[:len(idx_in_seq_list[batch_idx + 1])]
start_idx = end_idx
end_idx = start_idx + len(idx_in_seq_list[batch_idx])
batch_gate[start_idx:end_idx] = g
batch_reset_hidden_prev[start_idx:end_idx] = r_h_p
batch_hidden[start_idx:end_idx] = h
hidden[idx_in_seq_list[batch_idx]] = h
return batch_gate, batch_reset_hidden_prev, batch_hidden, hidden
class TestGRUOp(OpTest):
def set_confs(self):
pass
def setUp(self):
self.op_type = "gru"
self.lod = [[2, 4, 3]]
self.D = 5
self.is_reverse = False
self.with_h0 = True
self.with_bias = True
self.act_state = 'tanh'
self.act_gate = 'sigmoid'
self.dtype = 'float64'
self.origin_mode = False
self.set_confs()
T = sum(self.lod[0])
N = len(self.lod[0])
input = np.random.rand(T, 3 * self.D).astype(self.dtype)
weight = np.random.rand(self.D, 3 * self.D).astype(self.dtype)
bias = np.random.rand(
1, 3 * self.D).astype(self.dtype) if self.with_bias else np.zeros(
(1, 3 * self.D), dtype=self.dtype)
h0 = np.random.rand(
N, self.D).astype(self.dtype) if self.with_h0 else np.zeros(
(N, self.D), dtype=self.dtype)
batch_gate, batch_reset_hidden_prev, batch_hidden, hidden = gru(
input, self.lod, h0, weight, bias, self.is_reverse,
ACTIVATION[self.act_state], ACTIVATION[self.act_gate], self.dtype,
self.origin_mode)
self.inputs = {'Input': (input, self.lod), 'Weight': weight}
if self.with_bias:
self.inputs['Bias'] = bias
if self.with_h0:
self.inputs['H0'] = h0
self.outputs = {
'Hidden': (hidden, self.lod),
'BatchGate': batch_gate,
'BatchResetHiddenPrev': batch_reset_hidden_prev,
'BatchHidden': batch_hidden,
}
self.attrs = {
'activation': self.act_state,
'gate_activation': self.act_gate,
'is_reverse': self.is_reverse,
'origin_mode': self.origin_mode
}
def test_check_output(self):
self.check_output(atol=1e-8, check_dygraph=False)
def test_check_grad(self):
self.check_grad(
['Input', 'H0', 'Weight', 'Bias'], ['Hidden'], check_dygraph=False)
class TestGRUOriginMode(TestGRUOp):
def set_confs(self):
self.origin_mode = True
class TestGRUOp2(TestGRUOp):
def set_confs(self):
self.D = 19
self.dtype = 'float32'
class TestGRUOp2Len0(TestGRUOp):
def set_confs(self):
self.D = 19
self.lod = [[2, 0, 4]]
self.dtype = 'float32'
class TestGRUOp2OriginMode(TestGRUOp):
def set_confs(self):
self.D = 19
self.dtype = 'float32'
self.origin_mode = True
class TestGRUOp2OriginModeLen0(TestGRUOp):
def set_confs(self):
self.D = 19
self.lod = [[0, 3, 4]]
self.dtype = 'float32'
self.origin_mode = True
class TestGRUOp2OriginModeLastLen0(TestGRUOp):
def set_confs(self):
self.D = 19
self.lod = [[0, 3, 0]]
self.dtype = 'float32'
self.origin_mode = True
class TestGRUOpNoInitial(TestGRUOp):
def set_confs(self):
self.with_h0 = False
def test_check_grad(self):
self.check_grad(
['Input', 'Weight', 'Bias'], ['Hidden'], check_dygraph=False)
class TestGRUOpNoBias(TestGRUOp):
def set_confs(self):
self.with_bias = False
def test_check_grad(self):
self.check_grad(
['Input', 'H0', 'Weight'], ['Hidden'], check_dygraph=False)
class TestGRUOpReverse(TestGRUOp):
def set_confs(self):
self.is_reverse = True
class TestGRUOpReverseOriginMode(TestGRUOp):
def set_confs(self):
self.is_reverse = True
self.origin_mode = True
if __name__ == "__main__":
unittest.main()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
259,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29947,
349,
22352,
29925,
22352,
13189,
943,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
268,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
29937,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
27028,
1090,
278,
19245,
29889,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
13,
5215,
443,
27958,
13,
5215,
12655,
408,
7442,
13,
5215,
5844,
13,
5215,
2090,
312,
8789,
13,
3166,
1015,
29918,
1688,
1053,
6461,
3057,
13,
3166,
1243,
29918,
20155,
29885,
29918,
459,
1053,
319,
1783,
5667,
8098,
13,
13,
13,
1753,
4500,
29898,
13,
4706,
1881,
29892,
29871,
396,
323,
921,
29871,
29941,
29928,
13,
4706,
21896,
29892,
29871,
396,
29871,
29896,
921,
405,
13,
4706,
298,
29900,
29892,
29871,
396,
405,
921,
360,
13,
4706,
7688,
29892,
29871,
396,
360,
921,
29871,
29941,
29928,
13,
4706,
24003,
29892,
29871,
396,
29871,
29896,
921,
29871,
29941,
29928,
13,
4706,
338,
29918,
24244,
29892,
13,
4706,
1044,
29918,
3859,
29892,
13,
4706,
1044,
29918,
17062,
29892,
13,
4706,
26688,
2433,
7411,
29941,
29906,
742,
13,
4706,
3978,
29918,
8513,
29922,
8824,
1125,
13,
1678,
822,
903,
11762,
29918,
517,
29918,
16175,
29898,
29880,
397,
29892,
338,
29918,
24244,
1125,
13,
4706,
22645,
29918,
262,
29918,
11762,
29918,
1761,
353,
5159,
13,
4706,
19359,
29918,
29880,
575,
353,
21896,
29961,
29900,
29962,
13,
4706,
19359,
29918,
27382,
353,
518,
29900,
29962,
13,
4706,
363,
474,
297,
3464,
29898,
2435,
29898,
11762,
29918,
29880,
575,
22164,
13,
9651,
19359,
29918,
27382,
29889,
4397,
29898,
11762,
29918,
27382,
14352,
29896,
29962,
718,
19359,
29918,
29880,
575,
29961,
29875,
2314,
13,
4706,
12705,
29918,
11762,
29879,
353,
12705,
29898,
13,
9651,
1051,
29898,
3881,
29898,
2435,
29898,
11762,
29918,
29880,
575,
876,
511,
13,
9651,
1820,
29922,
7692,
312,
8789,
29889,
21058,
29918,
517,
29918,
1989,
29898,
2892,
921,
29892,
343,
29901,
19359,
29918,
29880,
575,
29961,
29891,
29962,
448,
19359,
29918,
29880,
575,
29961,
29916,
12622,
13,
4706,
954,
29918,
16175,
353,
19359,
29918,
29880,
575,
29961,
24582,
29918,
11762,
29879,
29961,
29900,
5262,
13,
4706,
363,
9853,
29918,
13140,
297,
3464,
29898,
1949,
29918,
16175,
1125,
13,
9651,
22645,
29918,
262,
29918,
11762,
353,
5159,
13,
9651,
363,
474,
297,
3464,
29898,
2435,
29898,
11762,
29918,
29880,
575,
22164,
13,
18884,
565,
19359,
29918,
29880,
575,
29961,
24582,
29918,
11762,
29879,
29961,
29875,
5262,
5277,
9853,
29918,
13140,
29901,
13,
462,
1678,
2867,
13,
18884,
22645,
353,
313,
11762,
29918,
27382,
29961,
24582,
29918,
11762,
29879,
29961,
29875,
29962,
718,
29871,
29896,
29962,
448,
29871,
29896,
448,
9853,
29918,
13140,
13,
462,
539,
1723,
565,
338,
29918,
24244,
1683,
313,
13,
462,
965,
19359,
29918,
27382,
29961,
24582,
29918,
11762,
29879,
29961,
29875,
5262,
718,
9853,
29918,
13140,
29897,
13,
18884,
22645,
29918,
262,
29918,
11762,
29889,
4397,
29898,
13140,
29897,
13,
9651,
22645,
29918,
262,
29918,
11762,
29918,
1761,
29889,
4397,
29898,
13140,
29918,
262,
29918,
11762,
29897,
13,
4706,
736,
22645,
29918,
262,
29918,
11762,
29918,
1761,
29892,
12705,
29918,
11762,
29879,
13,
13,
1678,
822,
903,
10568,
29898,
29916,
29892,
298,
29918,
29886,
29892,
281,
29892,
289,
29892,
1044,
29918,
3859,
29892,
1044,
29918,
17062,
1125,
13,
4706,
323,
353,
921,
29889,
12181,
29961,
29900,
29962,
13,
4706,
360,
353,
281,
29889,
12181,
29961,
29900,
29962,
13,
4706,
330,
353,
921,
718,
7442,
29889,
29873,
488,
29898,
29890,
29892,
313,
29911,
29892,
29871,
29896,
876,
13,
4706,
281,
29918,
29884,
29918,
29878,
353,
281,
29889,
1579,
8606,
580,
7503,
29928,
334,
360,
334,
29871,
29906,
1822,
690,
14443,
3552,
29928,
29892,
360,
334,
29871,
29906,
876,
13,
4706,
318,
29918,
29878,
353,
1044,
29918,
17062,
29898,
9302,
29889,
6333,
29898,
29882,
29918,
29886,
29892,
281,
29918,
29884,
29918,
29878,
29897,
718,
330,
7503,
29892,
584,
29928,
334,
29871,
29906,
2314,
13,
4706,
318,
353,
318,
29918,
29878,
7503,
29892,
584,
29928,
29962,
13,
4706,
364,
353,
318,
29918,
29878,
7503,
29892,
360,
29901,
29928,
334,
29871,
29906,
29962,
13,
4706,
364,
29918,
29882,
29918,
29886,
353,
364,
334,
298,
29918,
29886,
13,
4706,
281,
29918,
29883,
353,
281,
29889,
1579,
8606,
580,
29961,
29928,
334,
360,
334,
29871,
29906,
29901,
1822,
690,
14443,
3552,
29928,
29892,
360,
876,
13,
4706,
274,
353,
1044,
29918,
3859,
29898,
9302,
29889,
6333,
29898,
29878,
29918,
29882,
29918,
29886,
29892,
281,
29918,
29883,
29897,
718,
330,
7503,
29892,
360,
334,
29871,
29906,
29901,
2314,
13,
4706,
330,
353,
7442,
29889,
29882,
1429,
3552,
29884,
29918,
29878,
29892,
274,
876,
13,
4706,
565,
3978,
29918,
8513,
29901,
13,
9651,
298,
353,
313,
29896,
448,
318,
29897,
334,
274,
718,
318,
334,
298,
29918,
29886,
13,
4706,
1683,
29901,
13,
9651,
298,
353,
318,
334,
274,
718,
313,
29896,
448,
318,
29897,
334,
298,
29918,
29886,
13,
4706,
736,
330,
29892,
364,
29918,
29882,
29918,
29886,
29892,
298,
13,
13,
1678,
323,
353,
2533,
29898,
29880,
397,
29961,
29900,
2314,
13,
1678,
405,
353,
7431,
29898,
29880,
397,
29961,
29900,
2314,
13,
1678,
360,
353,
7688,
29889,
12181,
29961,
29900,
29962,
13,
1678,
9853,
29918,
17062,
353,
7442,
29889,
3298,
359,
3552,
29911,
29892,
29871,
29941,
334,
360,
511,
26688,
29922,
29881,
1853,
29897,
13,
1678,
9853,
29918,
12071,
29918,
10892,
29918,
16304,
353,
7442,
29889,
3298,
359,
3552,
29911,
29892,
360,
511,
26688,
29922,
29881,
1853,
29897,
13,
1678,
9853,
29918,
10892,
353,
7442,
29889,
3298,
359,
3552,
29911,
29892,
360,
511,
26688,
29922,
29881,
1853,
29897,
13,
1678,
7934,
353,
7442,
29889,
3298,
359,
3552,
29911,
29892,
360,
511,
26688,
29922,
29881,
1853,
29897,
13,
13,
1678,
22645,
29918,
262,
29918,
11762,
29918,
1761,
29892,
12705,
29918,
11762,
29879,
353,
903,
11762,
29918,
517,
29918,
16175,
29898,
29880,
397,
29892,
338,
29918,
24244,
29897,
13,
1678,
298,
29918,
29886,
353,
298,
29900,
8999,
11762,
363,
19359,
297,
12705,
29918,
11762,
29879,
565,
21896,
29961,
29900,
3816,
11762,
29962,
1405,
29871,
29900,
5262,
13,
13,
1678,
4236,
29918,
11762,
29918,
2435,
353,
7431,
29898,
13140,
29918,
262,
29918,
11762,
29918,
1761,
29897,
13,
1678,
1095,
29918,
13140,
353,
29871,
29900,
13,
1678,
363,
9853,
29918,
13140,
297,
3464,
29898,
3317,
29918,
11762,
29918,
2435,
1125,
13,
4706,
921,
353,
1881,
29961,
13140,
29918,
262,
29918,
11762,
29918,
1761,
29961,
16175,
29918,
13140,
5262,
13,
4706,
330,
29892,
364,
29918,
29882,
29918,
29886,
29892,
298,
353,
903,
10568,
29898,
29916,
29892,
298,
29918,
29886,
29892,
7688,
29892,
24003,
29892,
1044,
29918,
3859,
29892,
1044,
29918,
17062,
29897,
13,
4706,
565,
9853,
29918,
13140,
529,
313,
3317,
29918,
11762,
29918,
2435,
448,
29871,
29896,
1125,
13,
9651,
298,
29918,
29886,
353,
298,
7503,
2435,
29898,
13140,
29918,
262,
29918,
11762,
29918,
1761,
29961,
16175,
29918,
13140,
718,
29871,
29896,
2314,
29962,
13,
4706,
1369,
29918,
13140,
353,
1095,
29918,
13140,
13,
4706,
1095,
29918,
13140,
353,
1369,
29918,
13140,
718,
7431,
29898,
13140,
29918,
262,
29918,
11762,
29918,
1761,
29961,
16175,
29918,
13140,
2314,
13,
4706,
9853,
29918,
17062,
29961,
2962,
29918,
13140,
29901,
355,
29918,
13140,
29962,
353,
330,
13,
4706,
9853,
29918,
12071,
29918,
10892,
29918,
16304,
29961,
2962,
29918,
13140,
29901,
355,
29918,
13140,
29962,
353,
364,
29918,
29882,
29918,
29886,
13,
4706,
9853,
29918,
10892,
29961,
2962,
29918,
13140,
29901,
355,
29918,
13140,
29962,
353,
298,
13,
4706,
7934,
29961,
13140,
29918,
262,
29918,
11762,
29918,
1761,
29961,
16175,
29918,
13140,
5262,
353,
298,
13,
1678,
736,
9853,
29918,
17062,
29892,
9853,
29918,
12071,
29918,
10892,
29918,
16304,
29892,
9853,
29918,
10892,
29892,
7934,
13,
13,
13,
1990,
4321,
14345,
29965,
11746,
29898,
11746,
3057,
1125,
13,
1678,
822,
731,
29918,
5527,
29879,
29898,
1311,
1125,
13,
4706,
1209,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
459,
29918,
1853,
353,
376,
7108,
29908,
13,
4706,
1583,
29889,
29880,
397,
353,
5519,
29906,
29892,
29871,
29946,
29892,
29871,
29941,
5262,
13,
4706,
1583,
29889,
29928,
353,
29871,
29945,
13,
4706,
1583,
29889,
275,
29918,
24244,
353,
7700,
13,
4706,
1583,
29889,
2541,
29918,
29882,
29900,
353,
5852,
13,
4706,
1583,
29889,
2541,
29918,
29890,
3173,
353,
5852,
13,
4706,
1583,
29889,
627,
29918,
3859,
353,
525,
13161,
29882,
29915,
13,
4706,
1583,
29889,
627,
29918,
17062,
353,
525,
18816,
29885,
3398,
29915,
13,
4706,
1583,
29889,
29881,
1853,
353,
525,
7411,
29953,
29946,
29915,
13,
4706,
1583,
29889,
12574,
29918,
8513,
353,
7700,
13,
4706,
1583,
29889,
842,
29918,
5527,
29879,
580,
13,
13,
4706,
323,
353,
2533,
29898,
1311,
29889,
29880,
397,
29961,
29900,
2314,
13,
4706,
405,
353,
7431,
29898,
1311,
29889,
29880,
397,
29961,
29900,
2314,
13,
4706,
1881,
353,
7442,
29889,
8172,
29889,
9502,
29898,
29911,
29892,
29871,
29941,
334,
1583,
29889,
29928,
467,
579,
668,
29898,
1311,
29889,
29881,
1853,
29897,
13,
4706,
7688,
353,
7442,
29889,
8172,
29889,
9502,
29898,
1311,
29889,
29928,
29892,
29871,
29941,
334,
1583,
29889,
29928,
467,
579,
668,
29898,
1311,
29889,
29881,
1853,
29897,
13,
4706,
24003,
353,
7442,
29889,
8172,
29889,
9502,
29898,
13,
632,
29896,
29892,
29871,
29941,
334,
1583,
29889,
29928,
467,
579,
668,
29898,
1311,
29889,
29881,
1853,
29897,
565,
1583,
29889,
2541,
29918,
29890,
3173,
1683,
7442,
29889,
3298,
359,
29898,
13,
18884,
313,
29896,
29892,
29871,
29941,
334,
1583,
29889,
29928,
511,
26688,
29922,
1311,
29889,
29881,
1853,
29897,
13,
4706,
298,
29900,
353,
7442,
29889,
8172,
29889,
9502,
29898,
13,
9651,
405,
29892,
1583,
29889,
29928,
467,
579,
668,
29898,
1311,
29889,
29881,
1853,
29897,
565,
1583,
29889,
2541,
29918,
29882,
29900,
1683,
7442,
29889,
3298,
359,
29898,
13,
18884,
313,
29940,
29892,
1583,
29889,
29928,
511,
26688,
29922,
1311,
29889,
29881,
1853,
29897,
13,
13,
4706,
9853,
29918,
17062,
29892,
9853,
29918,
12071,
29918,
10892,
29918,
16304,
29892,
9853,
29918,
10892,
29892,
7934,
353,
4500,
29898,
13,
9651,
1881,
29892,
1583,
29889,
29880,
397,
29892,
298,
29900,
29892,
7688,
29892,
24003,
29892,
1583,
29889,
275,
29918,
24244,
29892,
13,
9651,
319,
1783,
5667,
8098,
29961,
1311,
29889,
627,
29918,
3859,
1402,
319,
1783,
5667,
8098,
29961,
1311,
29889,
627,
29918,
17062,
1402,
1583,
29889,
29881,
1853,
29892,
13,
9651,
1583,
29889,
12574,
29918,
8513,
29897,
13,
4706,
1583,
29889,
2080,
29879,
353,
11117,
4290,
2396,
313,
2080,
29892,
1583,
29889,
29880,
397,
511,
525,
22676,
2396,
7688,
29913,
13,
13,
4706,
565,
1583,
29889,
2541,
29918,
29890,
3173,
29901,
13,
9651,
1583,
29889,
2080,
29879,
1839,
29933,
3173,
2033,
353,
24003,
13,
13,
4706,
565,
1583,
29889,
2541,
29918,
29882,
29900,
29901,
13,
9651,
1583,
29889,
2080,
29879,
1839,
29950,
29900,
2033,
353,
298,
29900,
13,
13,
4706,
1583,
29889,
4905,
29879,
353,
426,
13,
9651,
525,
25108,
2396,
313,
10892,
29892,
1583,
29889,
29880,
397,
511,
13,
9651,
525,
23145,
29954,
403,
2396,
9853,
29918,
17062,
29892,
13,
9651,
525,
23145,
27175,
25108,
6572,
29894,
2396,
9853,
29918,
12071,
29918,
10892,
29918,
16304,
29892,
13,
9651,
525,
23145,
25108,
2396,
9853,
29918,
10892,
29892,
13,
4706,
500,
13,
13,
4706,
1583,
29889,
5552,
29879,
353,
426,
13,
9651,
525,
11236,
362,
2396,
1583,
29889,
627,
29918,
3859,
29892,
13,
9651,
525,
17062,
29918,
11236,
362,
2396,
1583,
29889,
627,
29918,
17062,
29892,
13,
9651,
525,
275,
29918,
24244,
2396,
1583,
29889,
275,
29918,
24244,
29892,
13,
9651,
525,
12574,
29918,
8513,
2396,
1583,
29889,
12574,
29918,
8513,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
3198,
29918,
4905,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3198,
29918,
4905,
29898,
14947,
29922,
29896,
29872,
29899,
29947,
29892,
1423,
29918,
4518,
4262,
29922,
8824,
29897,
13,
13,
1678,
822,
1243,
29918,
3198,
29918,
5105,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3198,
29918,
5105,
29898,
13,
9651,
6024,
4290,
742,
525,
29950,
29900,
742,
525,
22676,
742,
525,
29933,
3173,
7464,
6024,
25108,
7464,
1423,
29918,
4518,
4262,
29922,
8824,
29897,
13,
13,
13,
1990,
4321,
14345,
29965,
23182,
6818,
29898,
3057,
14345,
29965,
11746,
1125,
13,
1678,
822,
731,
29918,
5527,
29879,
29898,
1311,
1125,
13,
4706,
1583,
29889,
12574,
29918,
8513,
353,
5852,
13,
13,
13,
1990,
4321,
14345,
29965,
11746,
29906,
29898,
3057,
14345,
29965,
11746,
1125,
13,
1678,
822,
731,
29918,
5527,
29879,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29928,
353,
29871,
29896,
29929,
13,
4706,
1583,
29889,
29881,
1853,
353,
525,
7411,
29941,
29906,
29915,
13,
13,
13,
1990,
4321,
14345,
29965,
11746,
29906,
21515,
29900,
29898,
3057,
14345,
29965,
11746,
1125,
13,
1678,
822,
731,
29918,
5527,
29879,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29928,
353,
29871,
29896,
29929,
13,
4706,
1583,
29889,
29880,
397,
353,
5519,
29906,
29892,
29871,
29900,
29892,
29871,
29946,
5262,
13,
4706,
1583,
29889,
29881,
1853,
353,
525,
7411,
29941,
29906,
29915,
13,
13,
13,
1990,
4321,
14345,
29965,
11746,
29906,
23182,
6818,
29898,
3057,
14345,
29965,
11746,
1125,
13,
1678,
822,
731,
29918,
5527,
29879,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29928,
353,
29871,
29896,
29929,
13,
4706,
1583,
29889,
29881,
1853,
353,
525,
7411,
29941,
29906,
29915,
13,
4706,
1583,
29889,
12574,
29918,
8513,
353,
5852,
13,
13,
13,
1990,
4321,
14345,
29965,
11746,
29906,
23182,
6818,
21515,
29900,
29898,
3057,
14345,
29965,
11746,
1125,
13,
1678,
822,
731,
29918,
5527,
29879,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29928,
353,
29871,
29896,
29929,
13,
4706,
1583,
29889,
29880,
397,
353,
5519,
29900,
29892,
29871,
29941,
29892,
29871,
29946,
5262,
13,
4706,
1583,
29889,
29881,
1853,
353,
525,
7411,
29941,
29906,
29915,
13,
4706,
1583,
29889,
12574,
29918,
8513,
353,
5852,
13,
13,
13,
1990,
4321,
14345,
29965,
11746,
29906,
23182,
6818,
8897,
21515,
29900,
29898,
3057,
14345,
29965,
11746,
1125,
13,
1678,
822,
731,
29918,
5527,
29879,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29928,
353,
29871,
29896,
29929,
13,
4706,
1583,
29889,
29880,
397,
353,
5519,
29900,
29892,
29871,
29941,
29892,
29871,
29900,
5262,
13,
4706,
1583,
29889,
29881,
1853,
353,
525,
7411,
29941,
29906,
29915,
13,
4706,
1583,
29889,
12574,
29918,
8513,
353,
5852,
13,
13,
13,
1990,
4321,
14345,
29965,
11746,
3782,
15514,
29898,
3057,
14345,
29965,
11746,
1125,
13,
1678,
822,
731,
29918,
5527,
29879,
29898,
1311,
1125,
13,
4706,
1583,
29889,
2541,
29918,
29882,
29900,
353,
7700,
13,
13,
1678,
822,
1243,
29918,
3198,
29918,
5105,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3198,
29918,
5105,
29898,
13,
9651,
6024,
4290,
742,
525,
22676,
742,
525,
29933,
3173,
7464,
6024,
25108,
7464,
1423,
29918,
4518,
4262,
29922,
8824,
29897,
13,
13,
13,
1990,
4321,
14345,
29965,
11746,
3782,
29933,
3173,
29898,
3057,
14345,
29965,
11746,
1125,
13,
1678,
822,
731,
29918,
5527,
29879,
29898,
1311,
1125,
13,
4706,
1583,
29889,
2541,
29918,
29890,
3173,
353,
7700,
13,
13,
1678,
822,
1243,
29918,
3198,
29918,
5105,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3198,
29918,
5105,
29898,
13,
9651,
6024,
4290,
742,
525,
29950,
29900,
742,
525,
22676,
7464,
6024,
25108,
7464,
1423,
29918,
4518,
4262,
29922,
8824,
29897,
13,
13,
13,
1990,
4321,
14345,
29965,
11746,
1123,
3901,
29898,
3057,
14345,
29965,
11746,
1125,
13,
1678,
822,
731,
29918,
5527,
29879,
29898,
1311,
1125,
13,
4706,
1583,
29889,
275,
29918,
24244,
353,
5852,
13,
13,
13,
1990,
4321,
14345,
29965,
11746,
1123,
3901,
23182,
6818,
29898,
3057,
14345,
29965,
11746,
1125,
13,
1678,
822,
731,
29918,
5527,
29879,
29898,
1311,
1125,
13,
4706,
1583,
29889,
275,
29918,
24244,
353,
5852,
13,
4706,
1583,
29889,
12574,
29918,
8513,
353,
5852,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
443,
27958,
29889,
3396,
580,
13,
2
] |
porder/multiproc_pydl.py | testinggis/porder | 33 | 1616757 | <gh_stars>10-100
from __future__ import print_function
__copyright__ = """
Copyright 2019 <NAME>
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.
"""
__license__ = "Apache 2.0"
#!/usr/bin/env python
import multiprocessing
import os
import csv
import requests
import glob
import time
import progressbar
import json
import sys
from threading import *
screen_lock = Semaphore(value=1)
from retrying import retry
from planet.api.utils import read_planet_json
from planet.api.auth import find_api_key
# Get Planet API and Authenticate SESSION
try:
PL_API_KEY = find_api_key()
except:
print("Failed to get Planet Key")
sys.exit()
SESSION = requests.Session()
SESSION.auth = (PL_API_KEY, "")
# To get redirect link
@retry(wait_exponential_multiplier=1000, wait_exponential_max=10000)
def check_for_redirects(url):
try:
r = SESSION.get(url, allow_redirects=False, timeout=0.5)
if 300 <= r.status_code < 400:
return r.headers["location"]
elif r.status_code == 429:
raise Exception("rate limit error")
except requests.exceptions.Timeout:
return "[timeout]"
except requests.exceptions.ConnectionError:
return "[connection error]"
except requests.HTTPError as e:
print(r.status_code)
if r.status_code == 429: # Too many requests
raise Exception("rate limit error")
########################################################################
class MultiProcDownloader(object):
"""
Downloads urls with Python's multiprocessing module
"""
# ----------------------------------------------------------------------
def __init__(self, urls):
""" Initialize class with list of urls """
self.urls = urls
# ----------------------------------------------------------------------
def run(self):
"""
Download the urls and waits for the processes to finish
"""
jobs = []
for url in self.urls:
process = multiprocessing.Process(target=self.worker, args=(url,))
jobs.append(process)
process.start()
for job in jobs:
job.join()
# ----------------------------------------------------------------------
@retry(wait_exponential_multiplier=1000, wait_exponential_max=10000)
def worker(self, url):
"""
The target method that the process uses tp download the specified url
"""
try:
urlcheck = url.split("|")[0]
fullpath = url.split("|")[1]
[head, tail] = os.path.split(fullpath)
msg = "Starting download of %s" % fullpath.split("/")[-1]
if not os.path.exists(head):
os.makedirs(head)
os.chdir(head)
if not os.path.isfile(fullpath):
screen_lock.acquire()
print(str(msg) + " " + str(multiprocessing.current_process().name))
screen_lock.release()
r = requests.get(urlcheck)
with open(fullpath, "wb") as f:
f.write(r.content)
else:
print(("File already exists skipping " + str(tail)))
except Exception as e:
print(e)
print(("Issues with file: " + str(fullpath)))
def funct(url, final, ext):
filenames = glob.glob1(final, "*")
if not os.path.exists(final):
os.makedirs(final)
os.chdir(final)
urls = []
response = SESSION.get(url).json()
print("Polling with exponential backoff..")
while (
response["state"] == "queued"
or response["state"] == "running"
or response["state"] == "starting"
):
bar = progressbar.ProgressBar()
for z in bar(range(60)):
time.sleep(1)
response = SESSION.get(url).json()
if response["state"] == "success" or response["state"] == "partial":
print("Order completed with status: " + str(response["state"]))
for items in response["_links"]["results"]:
url = items["location"]
name = items["name"]
if name.endswith("manifest.json"):
time.sleep(0.2)
resp = SESSION.get(url)
if int(resp.status_code) == 200:
r = resp.content
inp = json.loads(r)
for things in inp["files"]:
try:
local_path = os.path.join(
final,
things["annotations"]["planet/item_id"]
+ "_manifest.json",
)
except Exception as e:
local_path = os.path.join(
final,
things["path"].split("/")[1].split(".")[0]
+ "_manifest.json",
)
else:
print(resp.status_code)
else:
local_path = os.path.join(final, str(os.path.split(items["name"])[-1]))
filenames = [os.path.join(final, files) for files in filenames]
if not local_path in filenames:
url_to_check = url if url.startswith("https") else "http://%s" % url
redirect_url = check_for_redirects(url_to_check)
if redirect_url.startswith("https"):
if not os.path.isfile(local_path) and ext is None:
urls.append(str(redirect_url) + "|" + local_path)
print("Processing total URLs " + str(len(urls)), end="\r")
if not os.path.isfile(local_path) and ext is not None:
if local_path.endswith(ext):
urls.append(str(redirect_url) + "|" + local_path)
print("Processing total URLs " + str(len(urls)), end="\r")
else:
print("Order Failed with state: " + str(response["state"]))
print("Downloading a total of " + str(len(urls)) + " objects")
downloader = MultiProcDownloader(urls)
downloader.run()
# ----------------------------------------------------------------------
if __name__ == "__main__":
if len(sys.argv) == 4:
funct(url=sys.argv[1], final=os.path.normpath(sys.argv[2]), ext=sys.argv[3])
elif len(sys.argv) == 3:
funct(url=sys.argv[1], final=os.path.normpath(sys.argv[2]), ext=None)
# funct(url='https://api.planet.com/compute/ops/orders/v2/4ebfa89e-dc59-41cc-ad82-dbad2b5375b2',final=r'C:\planet_demo',ext='.zip')
# downloader = MultiProcDownloader(urls)
# downloader.run()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
13,
1649,
8552,
1266,
1649,
353,
9995,
13,
13,
1678,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
529,
5813,
29958,
13,
13,
1678,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
1678,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
1678,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
13,
539,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
13,
1678,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
1678,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
1678,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
1678,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
1678,
27028,
1090,
278,
19245,
29889,
13,
13,
15945,
29908,
13,
1649,
506,
1947,
1649,
353,
376,
17396,
1829,
29871,
29906,
29889,
29900,
29908,
13,
13,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
6674,
307,
985,
292,
13,
5215,
2897,
13,
5215,
11799,
13,
5215,
7274,
13,
5215,
13149,
13,
5215,
931,
13,
5215,
6728,
1646,
13,
5215,
4390,
13,
5215,
10876,
13,
3166,
3244,
292,
1053,
334,
13,
13,
10525,
29918,
908,
353,
9444,
12451,
487,
29898,
1767,
29922,
29896,
29897,
13,
3166,
337,
2202,
292,
1053,
337,
2202,
13,
3166,
15754,
29889,
2754,
29889,
13239,
1053,
1303,
29918,
9018,
300,
29918,
3126,
13,
3166,
15754,
29889,
2754,
29889,
5150,
1053,
1284,
29918,
2754,
29918,
1989,
13,
13,
29937,
3617,
20540,
3450,
322,
13189,
4173,
403,
3725,
13507,
13,
2202,
29901,
13,
1678,
16507,
29918,
8787,
29918,
10818,
353,
1284,
29918,
2754,
29918,
1989,
580,
13,
19499,
29901,
13,
1678,
1596,
703,
17776,
304,
679,
20540,
7670,
1159,
13,
1678,
10876,
29889,
13322,
580,
13,
17493,
353,
7274,
29889,
7317,
580,
13,
17493,
29889,
5150,
353,
313,
7390,
29918,
8787,
29918,
10818,
29892,
20569,
13,
13,
29937,
1763,
679,
6684,
1544,
13,
29992,
276,
2202,
29898,
10685,
29918,
735,
1112,
2556,
29918,
18056,
4926,
29922,
29896,
29900,
29900,
29900,
29892,
4480,
29918,
735,
1112,
2556,
29918,
3317,
29922,
29896,
29900,
29900,
29900,
29900,
29897,
13,
1753,
1423,
29918,
1454,
29918,
17886,
29879,
29898,
2271,
1125,
13,
1678,
1018,
29901,
13,
4706,
364,
353,
3725,
13507,
29889,
657,
29898,
2271,
29892,
2758,
29918,
17886,
29879,
29922,
8824,
29892,
11815,
29922,
29900,
29889,
29945,
29897,
13,
4706,
565,
29871,
29941,
29900,
29900,
5277,
364,
29889,
4882,
29918,
401,
529,
29871,
29946,
29900,
29900,
29901,
13,
9651,
736,
364,
29889,
13662,
3366,
5479,
3108,
13,
4706,
25342,
364,
29889,
4882,
29918,
401,
1275,
29871,
29946,
29906,
29929,
29901,
13,
9651,
12020,
8960,
703,
10492,
4046,
1059,
1159,
13,
1678,
5174,
7274,
29889,
11739,
29879,
29889,
10851,
29901,
13,
4706,
736,
14704,
15619,
18017,
13,
1678,
5174,
7274,
29889,
11739,
29879,
29889,
5350,
2392,
29901,
13,
4706,
736,
14704,
9965,
1059,
18017,
13,
1678,
5174,
7274,
29889,
10493,
2392,
408,
321,
29901,
13,
4706,
1596,
29898,
29878,
29889,
4882,
29918,
401,
29897,
13,
4706,
565,
364,
29889,
4882,
29918,
401,
1275,
29871,
29946,
29906,
29929,
29901,
29871,
396,
1763,
29877,
1784,
7274,
13,
9651,
12020,
8960,
703,
10492,
4046,
1059,
1159,
13,
13,
13,
13383,
13383,
13383,
13383,
7346,
13,
1990,
14974,
27893,
6767,
12657,
29898,
3318,
1125,
13,
1678,
9995,
13,
1678,
9943,
18132,
23942,
411,
5132,
29915,
29879,
6674,
307,
985,
292,
3883,
13,
1678,
9995,
13,
13,
1678,
396,
448,
2683,
2683,
2683,
2683,
23648,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
23942,
1125,
13,
4706,
9995,
25455,
770,
411,
1051,
310,
23942,
9995,
13,
4706,
1583,
29889,
26045,
353,
23942,
13,
13,
1678,
396,
448,
2683,
2683,
2683,
2683,
23648,
13,
1678,
822,
1065,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
25553,
278,
23942,
322,
11324,
1169,
363,
278,
10174,
304,
8341,
13,
4706,
9995,
13,
4706,
17643,
353,
5159,
13,
4706,
363,
3142,
297,
1583,
29889,
26045,
29901,
13,
9651,
1889,
353,
6674,
307,
985,
292,
29889,
7032,
29898,
5182,
29922,
1311,
29889,
24602,
29892,
6389,
7607,
2271,
29892,
876,
13,
9651,
17643,
29889,
4397,
29898,
5014,
29897,
13,
9651,
1889,
29889,
2962,
580,
13,
4706,
363,
4982,
297,
17643,
29901,
13,
9651,
4982,
29889,
7122,
580,
13,
13,
1678,
396,
448,
2683,
2683,
2683,
2683,
23648,
13,
1678,
732,
276,
2202,
29898,
10685,
29918,
735,
1112,
2556,
29918,
18056,
4926,
29922,
29896,
29900,
29900,
29900,
29892,
4480,
29918,
735,
1112,
2556,
29918,
3317,
29922,
29896,
29900,
29900,
29900,
29900,
29897,
13,
1678,
822,
15645,
29898,
1311,
29892,
3142,
1125,
13,
4706,
9995,
13,
4706,
450,
3646,
1158,
393,
278,
1889,
3913,
260,
29886,
5142,
278,
6790,
3142,
13,
4706,
9995,
13,
4706,
1018,
29901,
13,
9651,
3142,
3198,
353,
3142,
29889,
5451,
703,
29989,
1159,
29961,
29900,
29962,
13,
9651,
2989,
2084,
353,
3142,
29889,
5451,
703,
29989,
1159,
29961,
29896,
29962,
13,
9651,
518,
2813,
29892,
12464,
29962,
353,
2897,
29889,
2084,
29889,
5451,
29898,
8159,
2084,
29897,
13,
9651,
10191,
353,
376,
4763,
292,
5142,
310,
1273,
29879,
29908,
1273,
2989,
2084,
29889,
5451,
11974,
1159,
14352,
29896,
29962,
13,
9651,
565,
451,
2897,
29889,
2084,
29889,
9933,
29898,
2813,
1125,
13,
18884,
2897,
29889,
29885,
12535,
12935,
29898,
2813,
29897,
13,
9651,
2897,
29889,
305,
3972,
29898,
2813,
29897,
13,
9651,
565,
451,
2897,
29889,
2084,
29889,
275,
1445,
29898,
8159,
2084,
1125,
13,
18884,
4315,
29918,
908,
29889,
562,
1548,
580,
13,
18884,
1596,
29898,
710,
29898,
7645,
29897,
718,
376,
376,
718,
851,
29898,
18056,
307,
985,
292,
29889,
3784,
29918,
5014,
2141,
978,
876,
13,
18884,
4315,
29918,
908,
29889,
14096,
580,
13,
18884,
364,
353,
7274,
29889,
657,
29898,
2271,
3198,
29897,
13,
18884,
411,
1722,
29898,
8159,
2084,
29892,
376,
29893,
29890,
1159,
408,
285,
29901,
13,
462,
1678,
285,
29889,
3539,
29898,
29878,
29889,
3051,
29897,
13,
9651,
1683,
29901,
13,
18884,
1596,
29898,
703,
2283,
2307,
4864,
14993,
3262,
376,
718,
851,
29898,
18237,
4961,
13,
4706,
5174,
8960,
408,
321,
29901,
13,
9651,
1596,
29898,
29872,
29897,
13,
9651,
1596,
29898,
703,
29902,
893,
1041,
411,
934,
29901,
376,
718,
851,
29898,
8159,
2084,
4961,
13,
13,
13,
1753,
2090,
312,
29898,
2271,
29892,
2186,
29892,
1294,
1125,
13,
1678,
977,
264,
1280,
353,
13149,
29889,
23705,
29896,
29898,
8394,
29892,
26345,
1159,
13,
1678,
565,
451,
2897,
29889,
2084,
29889,
9933,
29898,
8394,
1125,
13,
4706,
2897,
29889,
29885,
12535,
12935,
29898,
8394,
29897,
13,
1678,
2897,
29889,
305,
3972,
29898,
8394,
29897,
13,
1678,
23942,
353,
5159,
13,
1678,
2933,
353,
3725,
13507,
29889,
657,
29898,
2271,
467,
3126,
580,
13,
1678,
1596,
703,
7713,
1847,
411,
25658,
1250,
2696,
636,
1159,
13,
1678,
1550,
313,
13,
4706,
2933,
3366,
3859,
3108,
1275,
376,
802,
6742,
29908,
13,
4706,
470,
2933,
3366,
3859,
3108,
1275,
376,
21094,
29908,
13,
4706,
470,
2933,
3366,
3859,
3108,
1275,
376,
2962,
292,
29908,
13,
268,
1125,
13,
4706,
2594,
353,
6728,
1646,
29889,
14470,
4297,
580,
13,
4706,
363,
503,
297,
2594,
29898,
3881,
29898,
29953,
29900,
22164,
13,
9651,
931,
29889,
17059,
29898,
29896,
29897,
13,
4706,
2933,
353,
3725,
13507,
29889,
657,
29898,
2271,
467,
3126,
580,
13,
1678,
565,
2933,
3366,
3859,
3108,
1275,
376,
8698,
29908,
470,
2933,
3366,
3859,
3108,
1275,
376,
3846,
1115,
13,
4706,
1596,
703,
7514,
8676,
411,
4660,
29901,
376,
718,
851,
29898,
5327,
3366,
3859,
3108,
876,
13,
4706,
363,
4452,
297,
2933,
3366,
29918,
4965,
3108,
3366,
9902,
3108,
29901,
13,
9651,
3142,
353,
4452,
3366,
5479,
3108,
13,
9651,
1024,
353,
4452,
3366,
978,
3108,
13,
9651,
565,
1024,
29889,
1975,
2541,
703,
29135,
29889,
3126,
29908,
1125,
13,
18884,
931,
29889,
17059,
29898,
29900,
29889,
29906,
29897,
13,
18884,
4613,
353,
3725,
13507,
29889,
657,
29898,
2271,
29897,
13,
18884,
565,
938,
29898,
13713,
29889,
4882,
29918,
401,
29897,
1275,
29871,
29906,
29900,
29900,
29901,
13,
462,
1678,
364,
353,
4613,
29889,
3051,
13,
462,
1678,
297,
29886,
353,
4390,
29889,
18132,
29898,
29878,
29897,
13,
462,
1678,
363,
2712,
297,
297,
29886,
3366,
5325,
3108,
29901,
13,
462,
4706,
1018,
29901,
13,
462,
9651,
1887,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
13,
462,
18884,
2186,
29892,
13,
462,
18884,
2712,
3366,
6735,
800,
3108,
3366,
9018,
300,
29914,
667,
29918,
333,
3108,
13,
462,
18884,
718,
11119,
29135,
29889,
3126,
613,
13,
462,
9651,
1723,
13,
462,
4706,
5174,
8960,
408,
321,
29901,
13,
462,
9651,
1887,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
13,
462,
18884,
2186,
29892,
13,
462,
18884,
2712,
3366,
2084,
16862,
5451,
11974,
1159,
29961,
29896,
1822,
5451,
17350,
1159,
29961,
29900,
29962,
13,
462,
18884,
718,
11119,
29135,
29889,
3126,
613,
13,
462,
9651,
1723,
13,
18884,
1683,
29901,
13,
462,
1678,
1596,
29898,
13713,
29889,
4882,
29918,
401,
29897,
13,
9651,
1683,
29901,
13,
18884,
1887,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
8394,
29892,
851,
29898,
359,
29889,
2084,
29889,
5451,
29898,
7076,
3366,
978,
20068,
14352,
29896,
12622,
13,
9651,
977,
264,
1280,
353,
518,
359,
29889,
2084,
29889,
7122,
29898,
8394,
29892,
2066,
29897,
363,
2066,
297,
977,
264,
1280,
29962,
13,
9651,
565,
451,
1887,
29918,
2084,
297,
977,
264,
1280,
29901,
13,
18884,
3142,
29918,
517,
29918,
3198,
353,
3142,
565,
3142,
29889,
27382,
2541,
703,
991,
1159,
1683,
376,
1124,
597,
29995,
29879,
29908,
1273,
3142,
13,
18884,
6684,
29918,
2271,
353,
1423,
29918,
1454,
29918,
17886,
29879,
29898,
2271,
29918,
517,
29918,
3198,
29897,
13,
18884,
565,
6684,
29918,
2271,
29889,
27382,
2541,
703,
991,
29908,
1125,
13,
462,
1678,
565,
451,
2897,
29889,
2084,
29889,
275,
1445,
29898,
2997,
29918,
2084,
29897,
322,
1294,
338,
6213,
29901,
13,
462,
4706,
23942,
29889,
4397,
29898,
710,
29898,
17886,
29918,
2271,
29897,
718,
376,
29989,
29908,
718,
1887,
29918,
2084,
29897,
13,
462,
4706,
1596,
703,
7032,
292,
3001,
24295,
376,
718,
851,
29898,
2435,
29898,
26045,
8243,
1095,
543,
29905,
29878,
1159,
13,
462,
1678,
565,
451,
2897,
29889,
2084,
29889,
275,
1445,
29898,
2997,
29918,
2084,
29897,
322,
1294,
338,
451,
6213,
29901,
13,
462,
4706,
565,
1887,
29918,
2084,
29889,
1975,
2541,
29898,
1062,
1125,
13,
462,
9651,
23942,
29889,
4397,
29898,
710,
29898,
17886,
29918,
2271,
29897,
718,
376,
29989,
29908,
718,
1887,
29918,
2084,
29897,
13,
462,
9651,
1596,
703,
7032,
292,
3001,
24295,
376,
718,
851,
29898,
2435,
29898,
26045,
8243,
1095,
543,
29905,
29878,
1159,
13,
1678,
1683,
29901,
13,
4706,
1596,
703,
7514,
18390,
411,
2106,
29901,
376,
718,
851,
29898,
5327,
3366,
3859,
3108,
876,
13,
1678,
1596,
703,
6767,
13234,
263,
3001,
310,
376,
718,
851,
29898,
2435,
29898,
26045,
876,
718,
376,
3618,
1159,
13,
1678,
5142,
261,
353,
14974,
27893,
6767,
12657,
29898,
26045,
29897,
13,
1678,
5142,
261,
29889,
3389,
580,
13,
13,
13,
29937,
448,
2683,
2683,
2683,
2683,
23648,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
565,
7431,
29898,
9675,
29889,
19218,
29897,
1275,
29871,
29946,
29901,
13,
4706,
2090,
312,
29898,
2271,
29922,
9675,
29889,
19218,
29961,
29896,
1402,
2186,
29922,
359,
29889,
2084,
29889,
12324,
2084,
29898,
9675,
29889,
19218,
29961,
29906,
11724,
1294,
29922,
9675,
29889,
19218,
29961,
29941,
2314,
13,
1678,
25342,
7431,
29898,
9675,
29889,
19218,
29897,
1275,
29871,
29941,
29901,
13,
4706,
2090,
312,
29898,
2271,
29922,
9675,
29889,
19218,
29961,
29896,
1402,
2186,
29922,
359,
29889,
2084,
29889,
12324,
2084,
29898,
9675,
29889,
19218,
29961,
29906,
11724,
1294,
29922,
8516,
29897,
13,
1678,
396,
2090,
312,
29898,
2271,
2433,
991,
597,
2754,
29889,
9018,
300,
29889,
510,
29914,
26017,
29914,
3554,
29914,
20488,
29914,
29894,
29906,
29914,
29946,
774,
5444,
29947,
29929,
29872,
29899,
13891,
29945,
29929,
29899,
29946,
29896,
617,
29899,
328,
29947,
29906,
29899,
2585,
328,
29906,
29890,
29945,
29941,
29955,
29945,
29890,
29906,
742,
8394,
29922,
29878,
29915,
29907,
3583,
9018,
300,
29918,
17482,
742,
1062,
2433,
29889,
7554,
1495,
13,
1678,
396,
5142,
261,
353,
14974,
27893,
6767,
12657,
29898,
26045,
29897,
13,
1678,
396,
5142,
261,
29889,
3389,
580,
13,
2
] |
python/setup.py | deepest-stack/graph2tensor | 0 | 56392 | <reponame>deepest-stack/graph2tensor
# coding=utf-8
import numpy as np
from setuptools import find_packages, setup, Extension
sampler = Extension('graph2tensor.client.sampler',
include_dirs=[np.get_include(), ],
extra_compile_args=['-std=c++11', '-fopenmp'],
extra_link_args=['-fopenmp'],
sources=['graph2tensor/client/sampler.cpp'])
setup(
name='graph2tensor',
version='0.2.0',
description='Graph learning framework based on neighbour sampling',
packages=find_packages(exclude=("test",)),
ext_modules=[sampler, ]
)
| [
1,
529,
276,
1112,
420,
29958,
24535,
342,
29899,
1429,
29914,
4262,
29906,
20158,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
731,
21245,
8789,
1053,
1284,
29918,
8318,
29892,
6230,
29892,
7338,
2673,
13,
13,
13,
13445,
20069,
353,
7338,
2673,
877,
4262,
29906,
20158,
29889,
4645,
29889,
13445,
20069,
742,
13,
462,
1678,
3160,
29918,
3972,
29879,
11759,
9302,
29889,
657,
29918,
2856,
3285,
21251,
13,
462,
1678,
4805,
29918,
12198,
29918,
5085,
29922,
1839,
29899,
4172,
29922,
29883,
1817,
29896,
29896,
742,
17411,
29888,
3150,
1526,
7464,
13,
462,
1678,
4805,
29918,
2324,
29918,
5085,
29922,
1839,
29899,
29888,
3150,
1526,
7464,
13,
462,
1678,
8974,
29922,
1839,
4262,
29906,
20158,
29914,
4645,
29914,
13445,
20069,
29889,
8223,
11287,
13,
13,
14669,
29898,
13,
1678,
1024,
2433,
4262,
29906,
20158,
742,
13,
1678,
1873,
2433,
29900,
29889,
29906,
29889,
29900,
742,
13,
1678,
6139,
2433,
9527,
6509,
6890,
2729,
373,
17647,
23460,
742,
13,
1678,
9741,
29922,
2886,
29918,
8318,
29898,
735,
2325,
29922,
703,
1688,
613,
8243,
13,
1678,
1294,
29918,
7576,
11759,
13445,
20069,
29892,
4514,
13,
29897,
13,
13,
2
] |
pdfs/req.py | prof-andre/TCC | 0 | 187317 | import requests as rt
import pandas as pd
import numpy as np
import PyPDF2 as p2
from pathlib import Path
def trans_csv(path):
#Recebe o caminho do arquivo csv e retorna uma array do tipo string. Leitura do arquivo csv com os dados das escolas. Transforma a coluna COD_ESC em uma unida Array do tipo string.
data = pd.read_csv(path)
cod_n = np.array(data['COD_ESC'])
cod_s = []
for x in cod_n:
x = str(x)
if len(x) < 6:
cod_s.append('0'*(6-len(x)) + str(x))
else:
cod_s.append(x)
return cod_s
def download_pdf(ano, COD_ESC):
#Recebe ano como inteiro e COD_ESC como string para determinar o endereço do arquivo e definição do nome para ser salvo. Retorna o nome do arquivo.
ano = str(ano)
url = 'http://idesp.edunet.sp.gov.br/arquivos' + ano + '/' + COD_ESC + '.pdf'
end_pdf = ano + '_' + COD_ESC + '.pdf'
response = rt.get(url)
filename = Path(end_pdf)
filename.write_bytes(response.content)
print(url)
return end_pdf
def le_pdf(path):
#Recebe o caminho do arquivo pdf e retorna um dict(key=Nº, value=conteúdo da página).
arq = open(path, "rb")
pdf = p2.PdfFileReader(arq)
pg_pdf = {}
for i in range(0, pdf.getNumPages()):
pg_pdf[i+1] = [pdf.getPage(i).extractText()]
arq.close()
return pg_pdf
def PD_2007(pg_pdf,pg):
dados = []
for i in range(0, len(pg_pdf[pg][0])):
if pg_pdf[pg][0][i] == ',':
dados.append(float(pg_pdf[pg][0][i-1]+'.'+pg_pdf[pg][0][i+1]+pg_pdf[pg][0][i+2]))
return dados
def PD_novo(pg_pdf, pg):
#serve para 2013 para frente
dados = []
num_dados = []
start = 0
first = True
for i in range(0, len(pg_pdf[pg][0])):
if pg_pdf[pg][0][i] == '\n' and first:
dados.append(str(pg_pdf[pg][0][0:i]))
start = i+1
first = False
elif pg_pdf[pg][0][i] == '\n':
dados.append(str(pg_pdf[pg][0][start:i]))
start = i+1
for i in range(0,len(dados)):
num_dados.append(float(dados[i].replace(',','.')))
return num_dados
| [
1,
1053,
7274,
408,
364,
29873,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
5215,
10772,
8493,
29906,
408,
282,
29906,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
1753,
1301,
29918,
7638,
29898,
2084,
1125,
13,
29937,
10380,
915,
288,
3949,
21307,
437,
19325,
4243,
11799,
321,
3240,
272,
1056,
3672,
1409,
437,
13306,
1347,
29889,
951,
277,
2002,
437,
19325,
4243,
11799,
419,
2897,
270,
2255,
1697,
25224,
294,
29889,
4103,
689,
29874,
263,
784,
4347,
4810,
29928,
29918,
2890,
29907,
953,
3672,
443,
1458,
4398,
437,
13306,
1347,
29889,
13,
13,
1678,
848,
353,
10518,
29889,
949,
29918,
7638,
29898,
2084,
29897,
13,
1678,
15234,
29918,
29876,
353,
7442,
29889,
2378,
29898,
1272,
1839,
3217,
29928,
29918,
2890,
29907,
11287,
13,
1678,
15234,
29918,
29879,
353,
5159,
13,
1678,
363,
921,
297,
15234,
29918,
29876,
29901,
13,
4706,
921,
353,
851,
29898,
29916,
29897,
13,
4706,
565,
7431,
29898,
29916,
29897,
529,
29871,
29953,
29901,
29871,
13,
9651,
15234,
29918,
29879,
29889,
4397,
877,
29900,
29915,
16395,
29953,
29899,
2435,
29898,
29916,
876,
718,
851,
29898,
29916,
876,
13,
4706,
1683,
29901,
13,
9651,
15234,
29918,
29879,
29889,
4397,
29898,
29916,
29897,
13,
1678,
736,
15234,
29918,
29879,
13,
13,
1753,
5142,
29918,
5140,
29898,
1562,
29892,
4810,
29928,
29918,
2890,
29907,
1125,
13,
29937,
10380,
915,
19410,
1986,
2293,
3350,
321,
4810,
29928,
29918,
2890,
29907,
1986,
1347,
1702,
11806,
279,
288,
29871,
1095,
406,
6102,
437,
19325,
4243,
321,
822,
2172,
2340,
437,
9235,
1702,
724,
4497,
1365,
29889,
4649,
272,
1056,
288,
9235,
437,
19325,
4243,
29889,
13,
13,
1678,
19410,
353,
851,
29898,
1562,
29897,
13,
1678,
3142,
353,
525,
1124,
597,
2247,
29886,
29889,
287,
348,
300,
29889,
1028,
29889,
13513,
29889,
1182,
29914,
19862,
12927,
29915,
718,
19410,
718,
8207,
29915,
718,
4810,
29928,
29918,
2890,
29907,
718,
15300,
5140,
29915,
13,
1678,
1095,
29918,
5140,
353,
19410,
718,
22868,
29915,
718,
4810,
29928,
29918,
2890,
29907,
718,
15300,
5140,
29915,
13,
13,
1678,
2933,
353,
364,
29873,
29889,
657,
29898,
2271,
29897,
13,
1678,
10422,
353,
10802,
29898,
355,
29918,
5140,
29897,
13,
1678,
10422,
29889,
3539,
29918,
13193,
29898,
5327,
29889,
3051,
29897,
13,
1678,
1596,
29898,
2271,
29897,
13,
1678,
736,
1095,
29918,
5140,
13,
13,
1753,
454,
29918,
5140,
29898,
2084,
1125,
13,
29937,
10380,
915,
288,
3949,
21307,
437,
19325,
4243,
13552,
321,
3240,
272,
1056,
1922,
9657,
29898,
1989,
29922,
29940,
30105,
29892,
995,
29922,
535,
371,
30030,
1867,
1146,
282,
18814,
467,
13,
13,
1678,
564,
29939,
353,
1722,
29898,
2084,
29892,
376,
6050,
1159,
13,
1678,
13552,
353,
282,
29906,
29889,
29925,
2176,
2283,
6982,
29898,
279,
29939,
29897,
13,
1678,
23822,
29918,
5140,
353,
6571,
13,
1678,
363,
474,
297,
3464,
29898,
29900,
29892,
13552,
29889,
657,
8009,
27514,
580,
1125,
308,
13,
4706,
23822,
29918,
5140,
29961,
29875,
29974,
29896,
29962,
353,
518,
5140,
29889,
657,
5074,
29898,
29875,
467,
21111,
1626,
580,
29962,
13,
308,
13,
1678,
564,
29939,
29889,
5358,
580,
13,
1678,
736,
23822,
29918,
5140,
13,
13,
1753,
349,
29928,
29918,
29906,
29900,
29900,
29955,
29898,
4061,
29918,
5140,
29892,
4061,
1125,
13,
1678,
270,
2255,
353,
5159,
13,
1678,
363,
474,
297,
3464,
29898,
29900,
29892,
7431,
29898,
4061,
29918,
5140,
29961,
4061,
3816,
29900,
12622,
29901,
13,
4706,
565,
23822,
29918,
5140,
29961,
4061,
3816,
29900,
3816,
29875,
29962,
1275,
13420,
2396,
13,
9651,
270,
2255,
29889,
4397,
29898,
7411,
29898,
4061,
29918,
5140,
29961,
4061,
3816,
29900,
3816,
29875,
29899,
29896,
10062,
4286,
18717,
4061,
29918,
5140,
29961,
4061,
3816,
29900,
3816,
29875,
29974,
29896,
10062,
4061,
29918,
5140,
29961,
4061,
3816,
29900,
3816,
29875,
29974,
29906,
12622,
13,
1678,
736,
270,
2255,
13,
13,
1753,
349,
29928,
29918,
29876,
6962,
29898,
4061,
29918,
5140,
29892,
23822,
1125,
13,
29937,
16349,
1702,
29871,
29906,
29900,
29896,
29941,
1702,
22859,
13,
1678,
270,
2255,
353,
5159,
13,
1678,
954,
29918,
29881,
2255,
353,
5159,
13,
1678,
1369,
353,
29871,
29900,
13,
1678,
937,
353,
5852,
13,
1678,
363,
474,
297,
3464,
29898,
29900,
29892,
7431,
29898,
4061,
29918,
5140,
29961,
4061,
3816,
29900,
12622,
29901,
13,
4706,
565,
23822,
29918,
5140,
29961,
4061,
3816,
29900,
3816,
29875,
29962,
1275,
11297,
29876,
29915,
322,
937,
29901,
632,
13,
9651,
270,
2255,
29889,
4397,
29898,
710,
29898,
4061,
29918,
5140,
29961,
4061,
3816,
29900,
3816,
29900,
29901,
29875,
12622,
13,
9651,
1369,
353,
474,
29974,
29896,
13,
9651,
937,
353,
7700,
13,
4706,
25342,
23822,
29918,
5140,
29961,
4061,
3816,
29900,
3816,
29875,
29962,
1275,
11297,
29876,
2396,
13,
9651,
270,
2255,
29889,
4397,
29898,
710,
29898,
4061,
29918,
5140,
29961,
4061,
3816,
29900,
3816,
2962,
29901,
29875,
12622,
13,
9651,
1369,
353,
474,
29974,
29896,
13,
1678,
363,
474,
297,
3464,
29898,
29900,
29892,
2435,
29898,
29881,
2255,
22164,
13,
4706,
954,
29918,
29881,
2255,
29889,
4397,
29898,
7411,
29898,
29881,
2255,
29961,
29875,
1822,
6506,
29317,
3788,
6169,
4961,
13,
1678,
736,
954,
29918,
29881,
2255,
13,
2
] |
tests/test_roleplay.py | kintaclausin01/GHG-reduction-project | 0 | 139668 | <filename>tests/test_roleplay.py
import sys
import os
parent_dir = os.path.join(os.path.dirname(__file__), '..')
sys.path.append(parent_dir)
from roleplay import *
#main.roleplayRun(sys.argv[1],sys.argv[2],sys.argv[3])
#main2.roleplayRun(sys.argv[1],sys.argv[2],sys.argv[3])
main2.roleplayRun() | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
12154,
1456,
29889,
2272,
13,
5215,
10876,
30004,
13,
5215,
2897,
30004,
13,
3560,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
25721,
22168,
1445,
1649,
511,
525,
636,
1495,
30004,
13,
9675,
29889,
2084,
29889,
4397,
29898,
3560,
29918,
3972,
8443,
13,
30004,
13,
3166,
6297,
1456,
1053,
334,
30004,
13,
29937,
3396,
29889,
12154,
1456,
6558,
29898,
9675,
29889,
19218,
29961,
29896,
1402,
9675,
29889,
19218,
29961,
29906,
1402,
9675,
29889,
19218,
29961,
29941,
2314,
30004,
13,
29937,
3396,
29906,
29889,
12154,
1456,
6558,
29898,
9675,
29889,
19218,
29961,
29896,
1402,
9675,
29889,
19218,
29961,
29906,
1402,
9675,
29889,
19218,
29961,
29941,
2314,
30004,
13,
3396,
29906,
29889,
12154,
1456,
6558,
580,
2
] |
tgml/validator/generator/yamodel.py | kshaposhnikov/twitter-graph-model | 0 | 71055 | <filename>tgml/validator/generator/yamodel.py
# Yet Another Model for generating random graphs
| [
1,
529,
9507,
29958,
29873,
29887,
828,
29914,
3084,
1061,
29914,
27959,
29914,
29891,
314,
27224,
29889,
2272,
13,
29937,
15175,
7280,
8125,
363,
14655,
4036,
18445,
13,
2
] |
tests/integration/voice/v1/connection_policy/test_connection_policy_target.py | BrimmingDev/twilio-python | 1,362 | 172259 | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class ConnectionPolicyTargetTestCase(IntegrationTestCase):
def test_create_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.voice.v1.connection_policies("NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.targets.create(target="https://example.com")
values = {'Target': "https://example.com", }
self.holodeck.assert_has_request(Request(
'post',
'https://voice.twilio.com/v1/ConnectionPolicies/NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Targets',
data=values,
))
def test_create_response(self):
self.holodeck.mock(Response(
201,
'''
{
"account_sid": "AC<KEY>",
"connection_policy_sid": "NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "NEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"friendly_name": "friendly_name",
"target": "sip:sip-box.com:1234",
"priority": 1,
"weight": 20,
"enabled": true,
"date_created": "2020-03-18T23:31:36Z",
"date_updated": "2020-03-18T23:31:36Z",
"url": "https://voice.twilio.com/v1/ConnectionPolicies/NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Targets/NEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
'''
))
actual = self.client.voice.v1.connection_policies("NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.targets.create(target="https://example.com")
self.assertIsNotNone(actual)
def test_fetch_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.voice.v1.connection_policies("NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.targets("NEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
self.holodeck.assert_has_request(Request(
'get',
'https://voice.twilio.com/v1/ConnectionPolicies/NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Targets/NEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))
def test_fetch_response(self):
self.holodeck.mock(Response(
200,
'''
{
"account_sid": "<KEY>",
"connection_policy_sid": "NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "NEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"friendly_name": "friendly_name",
"target": "sip:sip-box.com:1234",
"priority": 1,
"weight": 20,
"enabled": true,
"date_created": "2020-03-18T23:31:36Z",
"date_updated": "2020-03-18T23:31:37Z",
"url": "https://voice.twilio.com/v1/ConnectionPolicies/NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Targets/NEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
'''
))
actual = self.client.voice.v1.connection_policies("NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.targets("NEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
self.assertIsNotNone(actual)
def test_list_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.voice.v1.connection_policies("NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.targets.list()
self.holodeck.assert_has_request(Request(
'get',
'https://voice.twilio.com/v1/ConnectionPolicies/NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Targets',
))
def test_read_full_response(self):
self.holodeck.mock(Response(
200,
'''
{
"meta": {
"page": 0,
"page_size": 50,
"first_page_url": "https://voice.twilio.com/v1/ConnectionPolicies/NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Targets?PageSize=50&Page=0",
"previous_page_url": null,
"url": "https://voice.twilio.com/v1/ConnectionPolicies/NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Targets?PageSize=50&Page=0",
"next_page_url": null,
"key": "targets"
},
"targets": [
{
"account_sid": "<KEY>",
"connection_policy_sid": "NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "NEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"friendly_name": "friendly_name",
"target": "sip:sip-box.com:1234",
"priority": 1,
"weight": 20,
"enabled": true,
"date_created": "2020-03-18T23:31:36Z",
"date_updated": "2020-03-18T23:31:37Z",
"url": "https://voice.twilio.com/v1/ConnectionPolicies/NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Targets/NEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
}
'''
))
actual = self.client.voice.v1.connection_policies("NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.targets.list()
self.assertIsNotNone(actual)
def test_read_empty_response(self):
self.holodeck.mock(Response(
200,
'''
{
"meta": {
"page": 0,
"page_size": 50,
"first_page_url": "https://voice.twilio.com/v1/ConnectionPolicies/NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Targets?PageSize=50&Page=0",
"previous_page_url": null,
"url": "https://voice.twilio.com/v1/ConnectionPolicies/NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Targets?PageSize=50&Page=0",
"next_page_url": null,
"key": "targets"
},
"targets": []
}
'''
))
actual = self.client.voice.v1.connection_policies("NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.targets.list()
self.assertIsNotNone(actual)
def test_update_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.voice.v1.connection_policies("NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.targets("NEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
self.holodeck.assert_has_request(Request(
'post',
'https://voice.twilio.com/v1/ConnectionPolicies/NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Targets/NEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))
def test_update_response(self):
self.holodeck.mock(Response(
200,
'''
{
"account_sid": "<KEY>",
"connection_policy_sid": "NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "NEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"friendly_name": "updated_name",
"target": "sip:sip-updated.com:4321",
"priority": 2,
"weight": 10,
"enabled": false,
"date_created": "2020-03-18T23:31:36Z",
"date_updated": "2020-03-18T23:31:37Z",
"url": "https://voice.twilio.com/v1/ConnectionPolicies/NYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Targets/NEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
'''
))
actual = self.client.voice.v1.connection_policies("NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.targets("NEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
self.assertIsNotNone(actual)
def test_delete_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.voice.v1.connection_policies("NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.targets("NEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").delete()
self.holodeck.assert_has_request(Request(
'delete',
'https://voice.twilio.com/v1/ConnectionPolicies/NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Targets/NEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))
def test_delete_response(self):
self.holodeck.mock(Response(
204,
None,
))
actual = self.client.voice.v1.connection_policies("NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.targets("NEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").delete()
self.assertTrue(actual)
| [
1,
396,
14137,
29922,
9420,
29899,
29947,
13,
29878,
15945,
29908,
13,
4013,
775,
471,
5759,
491,
13,
29905,
847,
903,
1678,
903,
29871,
903,
29989,
259,
903,
29871,
903,
13,
891,
9423,
2144,
29914,
7373,
5033,
29918,
4295,
29914,
29989,
891,
18854,
29918,
29871,
325,
29896,
29889,
29900,
29889,
29900,
13,
418,
847,
539,
847,
13,
15945,
29908,
13,
13,
3166,
6987,
1053,
17100,
362,
3057,
8259,
13,
3166,
6987,
29889,
5391,
356,
384,
1053,
10729,
13,
3166,
3252,
14876,
29889,
3188,
29889,
11739,
29879,
1053,
8168,
14876,
2451,
13,
3166,
3252,
14876,
29889,
1124,
29889,
5327,
1053,
13291,
13,
13,
13,
1990,
15160,
15644,
8667,
3057,
8259,
29898,
23573,
362,
3057,
8259,
1125,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
3827,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
17640,
29898,
5103,
29898,
29945,
29900,
29900,
29892,
6629,
876,
13,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
27418,
14876,
2451,
1125,
13,
9651,
1583,
29889,
4645,
29889,
14917,
29889,
29894,
29896,
29889,
9965,
29918,
3733,
293,
583,
703,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
1159,
320,
13,
462,
18884,
869,
5182,
29879,
29889,
3258,
29898,
5182,
543,
991,
597,
4773,
29889,
510,
1159,
13,
13,
4706,
1819,
353,
11117,
8667,
2396,
376,
991,
597,
4773,
29889,
510,
613,
500,
13,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
9294,
29918,
5349,
29918,
3827,
29898,
3089,
29898,
13,
9651,
525,
2490,
742,
13,
9651,
525,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
29914,
8667,
29879,
742,
13,
9651,
848,
29922,
5975,
29892,
13,
308,
876,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
5327,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
17640,
29898,
5103,
29898,
13,
632,
29906,
29900,
29896,
29892,
13,
9651,
14550,
13,
9651,
426,
13,
18884,
376,
10149,
29918,
29879,
333,
1115,
376,
2477,
29966,
10818,
28341,
13,
18884,
376,
9965,
29918,
22197,
29918,
29879,
333,
1115,
376,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
613,
13,
18884,
376,
29879,
333,
1115,
376,
8186,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
613,
13,
18884,
376,
18326,
368,
29918,
978,
1115,
376,
18326,
368,
29918,
978,
613,
13,
18884,
376,
5182,
1115,
376,
29879,
666,
29901,
29879,
666,
29899,
1884,
29889,
510,
29901,
29896,
29906,
29941,
29946,
613,
13,
18884,
376,
29886,
21766,
1115,
29871,
29896,
29892,
13,
18884,
376,
7915,
1115,
29871,
29906,
29900,
29892,
13,
18884,
376,
17590,
1115,
1565,
29892,
13,
18884,
376,
1256,
29918,
11600,
1115,
376,
29906,
29900,
29906,
29900,
29899,
29900,
29941,
29899,
29896,
29947,
29911,
29906,
29941,
29901,
29941,
29896,
29901,
29941,
29953,
29999,
613,
13,
18884,
376,
1256,
29918,
21402,
1115,
376,
29906,
29900,
29906,
29900,
29899,
29900,
29941,
29899,
29896,
29947,
29911,
29906,
29941,
29901,
29941,
29896,
29901,
29941,
29953,
29999,
613,
13,
18884,
376,
2271,
1115,
376,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29914,
8667,
29879,
29914,
8186,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29908,
13,
9651,
500,
13,
9651,
14550,
13,
308,
876,
13,
13,
4706,
3935,
353,
1583,
29889,
4645,
29889,
14917,
29889,
29894,
29896,
29889,
9965,
29918,
3733,
293,
583,
703,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
1159,
320,
13,
462,
462,
268,
869,
5182,
29879,
29889,
3258,
29898,
5182,
543,
991,
597,
4773,
29889,
510,
1159,
13,
13,
4706,
1583,
29889,
9294,
3624,
3664,
8516,
29898,
19304,
29897,
13,
13,
1678,
822,
1243,
29918,
9155,
29918,
3827,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
17640,
29898,
5103,
29898,
29945,
29900,
29900,
29892,
6629,
876,
13,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
27418,
14876,
2451,
1125,
13,
9651,
1583,
29889,
4645,
29889,
14917,
29889,
29894,
29896,
29889,
9965,
29918,
3733,
293,
583,
703,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
1159,
320,
13,
462,
18884,
869,
5182,
29879,
703,
29940,
5746,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
22791,
2564,
9155,
580,
13,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
9294,
29918,
5349,
29918,
3827,
29898,
3089,
29898,
13,
9651,
525,
657,
742,
13,
9651,
525,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
29914,
8667,
29879,
29914,
29940,
5746,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
22791,
742,
13,
308,
876,
13,
13,
1678,
822,
1243,
29918,
9155,
29918,
5327,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
17640,
29898,
5103,
29898,
13,
632,
29906,
29900,
29900,
29892,
13,
9651,
14550,
13,
9651,
426,
13,
18884,
376,
10149,
29918,
29879,
333,
1115,
9872,
10818,
28341,
13,
18884,
376,
9965,
29918,
22197,
29918,
29879,
333,
1115,
376,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
613,
13,
18884,
376,
29879,
333,
1115,
376,
8186,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
613,
13,
18884,
376,
18326,
368,
29918,
978,
1115,
376,
18326,
368,
29918,
978,
613,
13,
18884,
376,
5182,
1115,
376,
29879,
666,
29901,
29879,
666,
29899,
1884,
29889,
510,
29901,
29896,
29906,
29941,
29946,
613,
13,
18884,
376,
29886,
21766,
1115,
29871,
29896,
29892,
13,
18884,
376,
7915,
1115,
29871,
29906,
29900,
29892,
13,
18884,
376,
17590,
1115,
1565,
29892,
13,
18884,
376,
1256,
29918,
11600,
1115,
376,
29906,
29900,
29906,
29900,
29899,
29900,
29941,
29899,
29896,
29947,
29911,
29906,
29941,
29901,
29941,
29896,
29901,
29941,
29953,
29999,
613,
13,
18884,
376,
1256,
29918,
21402,
1115,
376,
29906,
29900,
29906,
29900,
29899,
29900,
29941,
29899,
29896,
29947,
29911,
29906,
29941,
29901,
29941,
29896,
29901,
29941,
29955,
29999,
613,
13,
18884,
376,
2271,
1115,
376,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29914,
8667,
29879,
29914,
8186,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29908,
13,
9651,
500,
13,
9651,
14550,
13,
308,
876,
13,
13,
4706,
3935,
353,
1583,
29889,
4645,
29889,
14917,
29889,
29894,
29896,
29889,
9965,
29918,
3733,
293,
583,
703,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
1159,
320,
13,
462,
462,
268,
869,
5182,
29879,
703,
29940,
5746,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
22791,
2564,
9155,
580,
13,
13,
4706,
1583,
29889,
9294,
3624,
3664,
8516,
29898,
19304,
29897,
13,
13,
1678,
822,
1243,
29918,
1761,
29918,
3827,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
17640,
29898,
5103,
29898,
29945,
29900,
29900,
29892,
6629,
876,
13,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
27418,
14876,
2451,
1125,
13,
9651,
1583,
29889,
4645,
29889,
14917,
29889,
29894,
29896,
29889,
9965,
29918,
3733,
293,
583,
703,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
1159,
320,
13,
462,
18884,
869,
5182,
29879,
29889,
1761,
580,
13,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
9294,
29918,
5349,
29918,
3827,
29898,
3089,
29898,
13,
9651,
525,
657,
742,
13,
9651,
525,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
29914,
8667,
29879,
742,
13,
308,
876,
13,
13,
1678,
822,
1243,
29918,
949,
29918,
8159,
29918,
5327,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
17640,
29898,
5103,
29898,
13,
632,
29906,
29900,
29900,
29892,
13,
9651,
14550,
13,
9651,
426,
13,
18884,
376,
7299,
1115,
426,
13,
462,
1678,
376,
3488,
1115,
29871,
29900,
29892,
13,
462,
1678,
376,
3488,
29918,
2311,
1115,
29871,
29945,
29900,
29892,
13,
462,
1678,
376,
4102,
29918,
3488,
29918,
2271,
1115,
376,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29914,
8667,
29879,
29973,
5074,
3505,
29922,
29945,
29900,
29987,
5074,
29922,
29900,
613,
13,
462,
1678,
376,
24957,
29918,
3488,
29918,
2271,
1115,
1870,
29892,
13,
462,
1678,
376,
2271,
1115,
376,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29914,
8667,
29879,
29973,
5074,
3505,
29922,
29945,
29900,
29987,
5074,
29922,
29900,
613,
13,
462,
1678,
376,
4622,
29918,
3488,
29918,
2271,
1115,
1870,
29892,
13,
462,
1678,
376,
1989,
1115,
376,
5182,
29879,
29908,
13,
18884,
2981,
13,
18884,
376,
5182,
29879,
1115,
518,
13,
462,
1678,
426,
13,
462,
4706,
376,
10149,
29918,
29879,
333,
1115,
9872,
10818,
28341,
13,
462,
4706,
376,
9965,
29918,
22197,
29918,
29879,
333,
1115,
376,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
613,
13,
462,
4706,
376,
29879,
333,
1115,
376,
8186,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
613,
13,
462,
4706,
376,
18326,
368,
29918,
978,
1115,
376,
18326,
368,
29918,
978,
613,
13,
462,
4706,
376,
5182,
1115,
376,
29879,
666,
29901,
29879,
666,
29899,
1884,
29889,
510,
29901,
29896,
29906,
29941,
29946,
613,
13,
462,
4706,
376,
29886,
21766,
1115,
29871,
29896,
29892,
13,
462,
4706,
376,
7915,
1115,
29871,
29906,
29900,
29892,
13,
462,
4706,
376,
17590,
1115,
1565,
29892,
13,
462,
4706,
376,
1256,
29918,
11600,
1115,
376,
29906,
29900,
29906,
29900,
29899,
29900,
29941,
29899,
29896,
29947,
29911,
29906,
29941,
29901,
29941,
29896,
29901,
29941,
29953,
29999,
613,
13,
462,
4706,
376,
1256,
29918,
21402,
1115,
376,
29906,
29900,
29906,
29900,
29899,
29900,
29941,
29899,
29896,
29947,
29911,
29906,
29941,
29901,
29941,
29896,
29901,
29941,
29955,
29999,
613,
13,
462,
4706,
376,
2271,
1115,
376,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29914,
8667,
29879,
29914,
8186,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29908,
13,
462,
1678,
500,
13,
18884,
4514,
13,
9651,
500,
13,
9651,
14550,
13,
308,
876,
13,
13,
4706,
3935,
353,
1583,
29889,
4645,
29889,
14917,
29889,
29894,
29896,
29889,
9965,
29918,
3733,
293,
583,
703,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
1159,
320,
13,
462,
462,
268,
869,
5182,
29879,
29889,
1761,
580,
13,
13,
4706,
1583,
29889,
9294,
3624,
3664,
8516,
29898,
19304,
29897,
13,
13,
1678,
822,
1243,
29918,
949,
29918,
6310,
29918,
5327,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
17640,
29898,
5103,
29898,
13,
632,
29906,
29900,
29900,
29892,
13,
9651,
14550,
13,
9651,
426,
13,
18884,
376,
7299,
1115,
426,
13,
462,
1678,
376,
3488,
1115,
29871,
29900,
29892,
13,
462,
1678,
376,
3488,
29918,
2311,
1115,
29871,
29945,
29900,
29892,
13,
462,
1678,
376,
4102,
29918,
3488,
29918,
2271,
1115,
376,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29914,
8667,
29879,
29973,
5074,
3505,
29922,
29945,
29900,
29987,
5074,
29922,
29900,
613,
13,
462,
1678,
376,
24957,
29918,
3488,
29918,
2271,
1115,
1870,
29892,
13,
462,
1678,
376,
2271,
1115,
376,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29914,
8667,
29879,
29973,
5074,
3505,
29922,
29945,
29900,
29987,
5074,
29922,
29900,
613,
13,
462,
1678,
376,
4622,
29918,
3488,
29918,
2271,
1115,
1870,
29892,
13,
462,
1678,
376,
1989,
1115,
376,
5182,
29879,
29908,
13,
18884,
2981,
13,
18884,
376,
5182,
29879,
1115,
5159,
13,
9651,
500,
13,
9651,
14550,
13,
308,
876,
13,
13,
4706,
3935,
353,
1583,
29889,
4645,
29889,
14917,
29889,
29894,
29896,
29889,
9965,
29918,
3733,
293,
583,
703,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
1159,
320,
13,
462,
462,
268,
869,
5182,
29879,
29889,
1761,
580,
13,
13,
4706,
1583,
29889,
9294,
3624,
3664,
8516,
29898,
19304,
29897,
13,
13,
1678,
822,
1243,
29918,
5504,
29918,
3827,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
17640,
29898,
5103,
29898,
29945,
29900,
29900,
29892,
6629,
876,
13,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
27418,
14876,
2451,
1125,
13,
9651,
1583,
29889,
4645,
29889,
14917,
29889,
29894,
29896,
29889,
9965,
29918,
3733,
293,
583,
703,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
1159,
320,
13,
462,
18884,
869,
5182,
29879,
703,
29940,
5746,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
22791,
2564,
5504,
580,
13,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
9294,
29918,
5349,
29918,
3827,
29898,
3089,
29898,
13,
9651,
525,
2490,
742,
13,
9651,
525,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
29914,
8667,
29879,
29914,
29940,
5746,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
22791,
742,
13,
308,
876,
13,
13,
1678,
822,
1243,
29918,
5504,
29918,
5327,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
17640,
29898,
5103,
29898,
13,
632,
29906,
29900,
29900,
29892,
13,
9651,
14550,
13,
9651,
426,
13,
18884,
376,
10149,
29918,
29879,
333,
1115,
9872,
10818,
28341,
13,
18884,
376,
9965,
29918,
22197,
29918,
29879,
333,
1115,
376,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
613,
13,
18884,
376,
29879,
333,
1115,
376,
8186,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
613,
13,
18884,
376,
18326,
368,
29918,
978,
1115,
376,
21402,
29918,
978,
613,
13,
18884,
376,
5182,
1115,
376,
29879,
666,
29901,
29879,
666,
29899,
21402,
29889,
510,
29901,
29946,
29941,
29906,
29896,
613,
13,
18884,
376,
29886,
21766,
1115,
29871,
29906,
29892,
13,
18884,
376,
7915,
1115,
29871,
29896,
29900,
29892,
13,
18884,
376,
17590,
1115,
2089,
29892,
13,
18884,
376,
1256,
29918,
11600,
1115,
376,
29906,
29900,
29906,
29900,
29899,
29900,
29941,
29899,
29896,
29947,
29911,
29906,
29941,
29901,
29941,
29896,
29901,
29941,
29953,
29999,
613,
13,
18884,
376,
1256,
29918,
21402,
1115,
376,
29906,
29900,
29906,
29900,
29899,
29900,
29941,
29899,
29896,
29947,
29911,
29906,
29941,
29901,
29941,
29896,
29901,
29941,
29955,
29999,
613,
13,
18884,
376,
2271,
1115,
376,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29914,
8667,
29879,
29914,
8186,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
27137,
29908,
13,
9651,
500,
13,
9651,
14550,
13,
308,
876,
13,
13,
4706,
3935,
353,
1583,
29889,
4645,
29889,
14917,
29889,
29894,
29896,
29889,
9965,
29918,
3733,
293,
583,
703,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
1159,
320,
13,
462,
462,
268,
869,
5182,
29879,
703,
29940,
5746,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
22791,
2564,
5504,
580,
13,
13,
4706,
1583,
29889,
9294,
3624,
3664,
8516,
29898,
19304,
29897,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
3827,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
17640,
29898,
5103,
29898,
29945,
29900,
29900,
29892,
6629,
876,
13,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
27418,
14876,
2451,
1125,
13,
9651,
1583,
29889,
4645,
29889,
14917,
29889,
29894,
29896,
29889,
9965,
29918,
3733,
293,
583,
703,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
1159,
320,
13,
462,
18884,
869,
5182,
29879,
703,
29940,
5746,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
22791,
2564,
8143,
580,
13,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
9294,
29918,
5349,
29918,
3827,
29898,
3089,
29898,
13,
9651,
525,
8143,
742,
13,
9651,
525,
991,
597,
14917,
29889,
7516,
14876,
29889,
510,
29914,
29894,
29896,
29914,
5350,
7713,
293,
583,
29914,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
29914,
8667,
29879,
29914,
29940,
5746,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
22791,
742,
13,
308,
876,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
5327,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5391,
356,
384,
29889,
17640,
29898,
5103,
29898,
13,
632,
29906,
29900,
29946,
29892,
13,
9651,
6213,
29892,
13,
308,
876,
13,
13,
4706,
3935,
353,
1583,
29889,
4645,
29889,
14917,
29889,
29894,
29896,
29889,
9965,
29918,
3733,
293,
583,
703,
29940,
29979,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
1159,
320,
13,
462,
462,
268,
869,
5182,
29879,
703,
29940,
5746,
19165,
19165,
19165,
19165,
19165,
19165,
19165,
22791,
2564,
8143,
580,
13,
13,
4706,
1583,
29889,
9294,
5574,
29898,
19304,
29897,
13,
2
] |
international_data_preprocessing/money.py | emcarlson2017/international-data-preprocessing | 0 | 183081 | <filename>international_data_preprocessing/money.py
"""The money module includes an object representation of money,
and functions to parse strings into Money."""
from .country import Country
from ._util import check_single_row
import pandas as pd
import re
import os
import os.path
dirpath = os.path.dirname(os.path.realpath(__file__))
_country_to_currency = pd.read_csv(
os.path.join(dirpath, 'data/country_currency.csv'))
_currencies = pd.read_csv(os.path.join(dirpath, 'data/currencies.csv'))
_country_to_currency_dict = {}
for row in _country_to_currency.itertuples():
_country_to_currency_dict[row.country] = row.currency
class Money:
"""The Money class contains all functions to parse and retrieve money values in any currency."""
def __init__(self, amount, currency_abbv, currency_full=None):
"""Initialize Money instance.
Args:
amount: the numeric amount of money, regardless of currency.
currency_abbv: the 3 letter abbreviation of the currency.
currency_full: optional, the full name of the currency.
"""
self.amount = amount
self.currency_abbv = currency_abbv
self.currency_full = currency_full
def get(self, attr):
"""Retrieve attribute from an instance of the Money class.
Args:
attr: name of attribute to retrieve, one of (amount, abbv, full).
Returns:
the value of the requested attribute.
Raises:
ValueError: if the input is not one of the 3 attributes.
"""
if attr == 'amount':
return self.amount
elif attr == 'abbv':
return self.currency_abbv
elif attr == 'full':
return self.currency_full
else:
raise ValueError(
"attr must be one of the following: amount, currency_abbv, currency_full")
@staticmethod
def parse(input, currency=None):
"""Parses money value strings into Money objects.
Args:
input: string containing the money value in <amount currency> or <currency amount> format, or <amount> format if currency is provided separately.
currency: optional, string containing the currency code or full currency name.
Returns:
the Currency object.
Raises:
ValueError: if the input is not in the format specified above.
"""
input = str(input).strip()
if currency:
if not re.fullmatch('[0-9]+\\.?[0-9]*', input):
raise ValueError(
"Input must be a numeric value or number in string representation when currency is specified.")
row = _currencies[(_currencies['abbreviation'] == currency) | (
_currencies['full_name'] == currency)]
check_single_row(row,
"Currency provided must be a valid 3 letter abbreviation from https://www.ifcmarkets.com/en/about-forex/currencies-and-abbreviations")
return Money(
float(input), row.iloc[0]['abbreviation'], row.iloc[0]['full_name'])
amount = None
match = re.fullmatch('([0-9]+\\.?[0-9]*)\\s*([a-zA-Z\\s]+)', input)
if match:
amount = match.group(0)
currency = match.group(1)
else:
match = re.fullmatch('([a-zA-Z\\s]+)\\s*([0-9]+\\.?[0-9]*)', input)
if match:
amount = match.group(1)
currency = match.group(0)
else:
raise ValueError(
"Input must be of the form <amount currency> or <currency amount> if currency is not provided.")
row = _currencies[(_currencies['abbreviation'] == currency) |
(_currencies['full_name'] == currency)]
check_single_row(row,
"Currency must be a valid 3 letter abbreviation from https://www.ifcmarkets.com/en/about-forex/currencies-and-abbreviations")
return Money(
float(amount), row.iloc[0]['abbreviation'], row.iloc[0]['full_name'])
def country_to_primary_currency(
df, country_col_name, output_col_name=None, in_place=True):
"""Provides currency code given a country in any standard notation.
For countries with more than one currency, the primary or most commonly used one is selected.
Args:
df: the data frame.
country_col_name: the name of the column with country in alpha2, alpha3, UN, full, or short format.
output_col_name: new column name if in_place is False.
in_place: if True, overwrite output to input column; if False, write output to new column.
"""
new_col = df[country_col_name].map(Country.parse).map(
lambda x: _country_to_currency_dict[x.get('alpha3')])
if in_place:
df[country_col_name] = new_col
else:
if not output_col_name:
raise ValueError(
"output_col_name must be provided when operation is not in place.")
df[output_col_name] = new_col
def parse_money(df, input_col_name, output_types=None,
output_col_names=None, in_place=True):
"""Parses and separates money values (e.g. EUR 52.50) into its amount and/or currency.
Args:
df: the data frame.
input_col_name: the name of the column with money values.
output_types: one or more of ['amount', 'abbv', 'full'].
output_col_names: new column names if in_place is False.
in_place: if True, overwrite output to input column; if False, write output to new column.
"""
new_col = df[input_col_name].map(Money.parse)
if in_place:
df[input_col_name] = new_col.map(
lambda x: str(x.get('amount')) + x.get('abbv'))
else:
if len(output_types) != len(output_col_names):
raise ValueError(
"output_types and output_col_names must be of the same length")
for i in range(len(output_types)):
df[output_col_names[i]] = new_col.map(
lambda x: x.get(output_types[i]))
| [
1,
529,
9507,
29958,
14168,
1288,
29918,
1272,
29918,
1457,
19170,
29914,
29885,
4992,
29889,
2272,
13,
15945,
29908,
1576,
6909,
3883,
7805,
385,
1203,
8954,
310,
6909,
29892,
13,
392,
3168,
304,
6088,
6031,
964,
341,
4992,
1213,
15945,
13,
3166,
869,
13509,
1053,
15456,
13,
3166,
869,
29918,
4422,
1053,
1423,
29918,
14369,
29918,
798,
13,
5215,
11701,
408,
10518,
13,
5215,
337,
13,
5215,
2897,
13,
5215,
2897,
29889,
2084,
13,
13,
3972,
2084,
353,
2897,
29889,
2084,
29889,
25721,
29898,
359,
29889,
2084,
29889,
6370,
2084,
22168,
1445,
1649,
876,
13,
29918,
13509,
29918,
517,
29918,
26095,
353,
10518,
29889,
949,
29918,
7638,
29898,
13,
1678,
2897,
29889,
2084,
29889,
7122,
29898,
3972,
2084,
29892,
525,
1272,
29914,
13509,
29918,
26095,
29889,
7638,
8785,
13,
29918,
21962,
15942,
353,
10518,
29889,
949,
29918,
7638,
29898,
359,
29889,
2084,
29889,
7122,
29898,
3972,
2084,
29892,
525,
1272,
29914,
21962,
15942,
29889,
7638,
8785,
13,
13,
29918,
13509,
29918,
517,
29918,
26095,
29918,
8977,
353,
6571,
13,
1454,
1948,
297,
903,
13509,
29918,
517,
29918,
26095,
29889,
277,
814,
29884,
2701,
7295,
13,
1678,
903,
13509,
29918,
517,
29918,
26095,
29918,
8977,
29961,
798,
29889,
13509,
29962,
353,
1948,
29889,
26095,
13,
13,
13,
1990,
341,
4992,
29901,
13,
1678,
9995,
1576,
341,
4992,
770,
3743,
599,
3168,
304,
6088,
322,
10563,
6909,
1819,
297,
738,
27550,
1213,
15945,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
5253,
29892,
27550,
29918,
8846,
29894,
29892,
27550,
29918,
8159,
29922,
8516,
1125,
13,
4706,
9995,
6644,
6646,
341,
4992,
2777,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
5253,
29901,
278,
16985,
5253,
310,
6909,
29892,
17126,
310,
27550,
29889,
13,
9651,
27550,
29918,
8846,
29894,
29901,
278,
29871,
29941,
5497,
29759,
14641,
310,
278,
27550,
29889,
13,
9651,
27550,
29918,
8159,
29901,
13136,
29892,
278,
2989,
1024,
310,
278,
27550,
29889,
13,
4706,
9995,
13,
4706,
1583,
29889,
14506,
353,
5253,
13,
4706,
1583,
29889,
26095,
29918,
8846,
29894,
353,
27550,
29918,
8846,
29894,
13,
4706,
1583,
29889,
26095,
29918,
8159,
353,
27550,
29918,
8159,
13,
13,
1678,
822,
679,
29898,
1311,
29892,
12421,
1125,
13,
4706,
9995,
8015,
29878,
2418,
5352,
515,
385,
2777,
310,
278,
341,
4992,
770,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
12421,
29901,
1024,
310,
5352,
304,
10563,
29892,
697,
310,
313,
14506,
29892,
22195,
29894,
29892,
2989,
467,
13,
13,
4706,
16969,
29901,
13,
9651,
278,
995,
310,
278,
13877,
5352,
29889,
13,
13,
4706,
390,
1759,
267,
29901,
13,
9651,
7865,
2392,
29901,
565,
278,
1881,
338,
451,
697,
310,
278,
29871,
29941,
8393,
29889,
13,
4706,
9995,
13,
4706,
565,
12421,
1275,
525,
14506,
2396,
13,
9651,
736,
1583,
29889,
14506,
13,
4706,
25342,
12421,
1275,
525,
8846,
29894,
2396,
13,
9651,
736,
1583,
29889,
26095,
29918,
8846,
29894,
13,
4706,
25342,
12421,
1275,
525,
8159,
2396,
13,
9651,
736,
1583,
29889,
26095,
29918,
8159,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
29898,
13,
18884,
376,
5552,
1818,
367,
697,
310,
278,
1494,
29901,
5253,
29892,
27550,
29918,
8846,
29894,
29892,
27550,
29918,
8159,
1159,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
6088,
29898,
2080,
29892,
27550,
29922,
8516,
1125,
13,
4706,
9995,
29925,
1503,
267,
6909,
995,
6031,
964,
341,
4992,
3618,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
1881,
29901,
1347,
6943,
278,
6909,
995,
297,
529,
14506,
27550,
29958,
470,
529,
26095,
5253,
29958,
3402,
29892,
470,
529,
14506,
29958,
3402,
565,
27550,
338,
4944,
16949,
29889,
13,
9651,
27550,
29901,
13136,
29892,
1347,
6943,
278,
27550,
775,
470,
2989,
27550,
1024,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
278,
315,
10880,
1203,
29889,
13,
13,
4706,
390,
1759,
267,
29901,
13,
9651,
7865,
2392,
29901,
565,
278,
1881,
338,
451,
297,
278,
3402,
6790,
2038,
29889,
13,
4706,
9995,
13,
4706,
1881,
353,
851,
29898,
2080,
467,
17010,
580,
13,
13,
4706,
565,
27550,
29901,
13,
9651,
565,
451,
337,
29889,
8159,
4352,
877,
29961,
29900,
29899,
29929,
10062,
1966,
29889,
29973,
29961,
29900,
29899,
29929,
14178,
742,
1881,
1125,
13,
18884,
12020,
7865,
2392,
29898,
13,
462,
1678,
376,
4290,
1818,
367,
263,
16985,
995,
470,
1353,
297,
1347,
8954,
746,
27550,
338,
6790,
23157,
13,
9651,
1948,
353,
903,
21962,
15942,
29961,
7373,
21962,
15942,
1839,
370,
1030,
14641,
2033,
1275,
27550,
29897,
891,
313,
13,
18884,
903,
21962,
15942,
1839,
8159,
29918,
978,
2033,
1275,
27550,
4638,
13,
9651,
1423,
29918,
14369,
29918,
798,
29898,
798,
29892,
13,
462,
632,
376,
29907,
10880,
4944,
1818,
367,
263,
2854,
29871,
29941,
5497,
29759,
14641,
515,
2045,
597,
1636,
29889,
361,
29883,
3502,
1691,
29889,
510,
29914,
264,
29914,
12717,
29899,
1079,
29916,
29914,
21962,
15942,
29899,
392,
29899,
370,
1030,
1403,
800,
1159,
13,
9651,
736,
341,
4992,
29898,
13,
18884,
5785,
29898,
2080,
511,
1948,
29889,
309,
542,
29961,
29900,
22322,
370,
1030,
14641,
7464,
1948,
29889,
309,
542,
29961,
29900,
22322,
8159,
29918,
978,
11287,
13,
13,
4706,
5253,
353,
6213,
13,
4706,
1993,
353,
337,
29889,
8159,
4352,
877,
4197,
29900,
29899,
29929,
10062,
1966,
29889,
29973,
29961,
29900,
29899,
29929,
29962,
7528,
1966,
29879,
29930,
4197,
29874,
29899,
25265,
29899,
29999,
1966,
29879,
10062,
29897,
742,
1881,
29897,
13,
4706,
565,
1993,
29901,
13,
9651,
5253,
353,
1993,
29889,
2972,
29898,
29900,
29897,
13,
9651,
27550,
353,
1993,
29889,
2972,
29898,
29896,
29897,
13,
4706,
1683,
29901,
13,
9651,
1993,
353,
337,
29889,
8159,
4352,
877,
4197,
29874,
29899,
25265,
29899,
29999,
1966,
29879,
10062,
18775,
29879,
29930,
4197,
29900,
29899,
29929,
10062,
1966,
29889,
29973,
29961,
29900,
29899,
29929,
29962,
7528,
742,
1881,
29897,
13,
9651,
565,
1993,
29901,
13,
18884,
5253,
353,
1993,
29889,
2972,
29898,
29896,
29897,
13,
18884,
27550,
353,
1993,
29889,
2972,
29898,
29900,
29897,
13,
9651,
1683,
29901,
13,
18884,
12020,
7865,
2392,
29898,
13,
462,
1678,
376,
4290,
1818,
367,
310,
278,
883,
529,
14506,
27550,
29958,
470,
529,
26095,
5253,
29958,
565,
27550,
338,
451,
4944,
23157,
13,
13,
4706,
1948,
353,
903,
21962,
15942,
29961,
7373,
21962,
15942,
1839,
370,
1030,
14641,
2033,
1275,
27550,
29897,
891,
13,
462,
3986,
9423,
21962,
15942,
1839,
8159,
29918,
978,
2033,
1275,
27550,
4638,
13,
4706,
1423,
29918,
14369,
29918,
798,
29898,
798,
29892,
13,
462,
308,
376,
29907,
10880,
1818,
367,
263,
2854,
29871,
29941,
5497,
29759,
14641,
515,
2045,
597,
1636,
29889,
361,
29883,
3502,
1691,
29889,
510,
29914,
264,
29914,
12717,
29899,
1079,
29916,
29914,
21962,
15942,
29899,
392,
29899,
370,
1030,
1403,
800,
1159,
13,
4706,
736,
341,
4992,
29898,
13,
9651,
5785,
29898,
14506,
511,
1948,
29889,
309,
542,
29961,
29900,
22322,
370,
1030,
14641,
7464,
1948,
29889,
309,
542,
29961,
29900,
22322,
8159,
29918,
978,
11287,
13,
13,
13,
1753,
4234,
29918,
517,
29918,
16072,
29918,
26095,
29898,
13,
4706,
4489,
29892,
4234,
29918,
1054,
29918,
978,
29892,
1962,
29918,
1054,
29918,
978,
29922,
8516,
29892,
297,
29918,
6689,
29922,
5574,
1125,
13,
1678,
9995,
1184,
29894,
2247,
27550,
775,
2183,
263,
4234,
297,
738,
3918,
12640,
29889,
13,
1678,
1152,
10916,
411,
901,
1135,
697,
27550,
29892,
278,
7601,
470,
1556,
15574,
1304,
697,
338,
4629,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
4489,
29901,
278,
848,
3515,
29889,
13,
4706,
4234,
29918,
1054,
29918,
978,
29901,
278,
1024,
310,
278,
1897,
411,
4234,
297,
15595,
29906,
29892,
15595,
29941,
29892,
8291,
29892,
2989,
29892,
470,
3273,
3402,
29889,
13,
4706,
1962,
29918,
1054,
29918,
978,
29901,
716,
1897,
1024,
565,
297,
29918,
6689,
338,
7700,
29889,
13,
4706,
297,
29918,
6689,
29901,
565,
5852,
29892,
26556,
1962,
304,
1881,
1897,
29936,
565,
7700,
29892,
2436,
1962,
304,
716,
1897,
29889,
13,
1678,
9995,
13,
1678,
716,
29918,
1054,
353,
4489,
29961,
13509,
29918,
1054,
29918,
978,
1822,
1958,
29898,
20779,
29889,
5510,
467,
1958,
29898,
13,
4706,
14013,
921,
29901,
903,
13509,
29918,
517,
29918,
26095,
29918,
8977,
29961,
29916,
29889,
657,
877,
2312,
29941,
1495,
2314,
13,
13,
1678,
565,
297,
29918,
6689,
29901,
13,
4706,
4489,
29961,
13509,
29918,
1054,
29918,
978,
29962,
353,
716,
29918,
1054,
13,
1678,
1683,
29901,
13,
4706,
565,
451,
1962,
29918,
1054,
29918,
978,
29901,
13,
9651,
12020,
7865,
2392,
29898,
13,
18884,
376,
4905,
29918,
1054,
29918,
978,
1818,
367,
4944,
746,
5858,
338,
451,
297,
2058,
23157,
13,
4706,
4489,
29961,
4905,
29918,
1054,
29918,
978,
29962,
353,
716,
29918,
1054,
13,
13,
13,
1753,
6088,
29918,
29885,
4992,
29898,
2176,
29892,
1881,
29918,
1054,
29918,
978,
29892,
1962,
29918,
8768,
29922,
8516,
29892,
13,
462,
268,
1962,
29918,
1054,
29918,
7039,
29922,
8516,
29892,
297,
29918,
6689,
29922,
5574,
1125,
13,
1678,
9995,
29925,
1503,
267,
322,
2903,
1078,
6909,
1819,
313,
29872,
29889,
29887,
29889,
382,
4574,
29871,
29945,
29906,
29889,
29945,
29900,
29897,
964,
967,
5253,
322,
29914,
272,
27550,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
4489,
29901,
278,
848,
3515,
29889,
13,
4706,
1881,
29918,
1054,
29918,
978,
29901,
278,
1024,
310,
278,
1897,
411,
6909,
1819,
29889,
13,
4706,
1962,
29918,
8768,
29901,
697,
470,
901,
310,
6024,
14506,
742,
525,
8846,
29894,
742,
525,
8159,
13359,
13,
4706,
1962,
29918,
1054,
29918,
7039,
29901,
716,
1897,
2983,
565,
297,
29918,
6689,
338,
7700,
29889,
13,
4706,
297,
29918,
6689,
29901,
565,
5852,
29892,
26556,
1962,
304,
1881,
1897,
29936,
565,
7700,
29892,
2436,
1962,
304,
716,
1897,
29889,
13,
1678,
9995,
13,
1678,
716,
29918,
1054,
353,
4489,
29961,
2080,
29918,
1054,
29918,
978,
1822,
1958,
29898,
29924,
4992,
29889,
5510,
29897,
13,
13,
1678,
565,
297,
29918,
6689,
29901,
13,
4706,
4489,
29961,
2080,
29918,
1054,
29918,
978,
29962,
353,
716,
29918,
1054,
29889,
1958,
29898,
13,
9651,
14013,
921,
29901,
851,
29898,
29916,
29889,
657,
877,
14506,
8785,
718,
921,
29889,
657,
877,
8846,
29894,
8785,
13,
1678,
1683,
29901,
13,
4706,
565,
7431,
29898,
4905,
29918,
8768,
29897,
2804,
7431,
29898,
4905,
29918,
1054,
29918,
7039,
1125,
13,
9651,
12020,
7865,
2392,
29898,
13,
18884,
376,
4905,
29918,
8768,
322,
1962,
29918,
1054,
29918,
7039,
1818,
367,
310,
278,
1021,
3309,
1159,
13,
4706,
363,
474,
297,
3464,
29898,
2435,
29898,
4905,
29918,
8768,
22164,
13,
9651,
4489,
29961,
4905,
29918,
1054,
29918,
7039,
29961,
29875,
5262,
353,
716,
29918,
1054,
29889,
1958,
29898,
13,
18884,
14013,
921,
29901,
921,
29889,
657,
29898,
4905,
29918,
8768,
29961,
29875,
12622,
13,
2
] |
setup.py | vishnumenon/pyims | 1 | 13688 | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(name="pyims",
version='0.1.2',
description='A python wrapper for the IMS Word Sense Disambiguation tool (Zhong and Ng, 2010)',
url='http://github.com/vishnumenon/pyims',
author="<NAME>",
author_email="<EMAIL>",
long_description=long_description,
long_description_content_type="text/markdown",
license='MIT',
packages=setuptools.find_packages(),
install_requires=[
'nltk',
],
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
zip_safe=False)
| [
1,
1053,
731,
21245,
8789,
13,
2541,
1722,
703,
16310,
2303,
29889,
3487,
613,
376,
29878,
1159,
408,
285,
29882,
29901,
13,
1678,
1472,
29918,
8216,
353,
285,
29882,
29889,
949,
580,
13,
13,
842,
21245,
8789,
29889,
14669,
29898,
978,
543,
2272,
9893,
613,
13,
1678,
1873,
2433,
29900,
29889,
29896,
29889,
29906,
742,
13,
1678,
6139,
2433,
29909,
3017,
14476,
363,
278,
306,
4345,
10803,
317,
1947,
3295,
18065,
5780,
313,
29999,
29882,
549,
322,
29170,
29892,
29871,
29906,
29900,
29896,
29900,
29897,
742,
13,
1678,
3142,
2433,
1124,
597,
3292,
29889,
510,
29914,
29894,
728,
1949,
264,
265,
29914,
2272,
9893,
742,
13,
1678,
4148,
543,
29966,
5813,
28341,
13,
1678,
4148,
29918,
5269,
543,
29966,
26862,
6227,
28341,
13,
1678,
1472,
29918,
8216,
29922,
5426,
29918,
8216,
29892,
13,
1678,
1472,
29918,
8216,
29918,
3051,
29918,
1853,
543,
726,
29914,
3502,
3204,
613,
13,
1678,
19405,
2433,
26349,
742,
13,
1678,
9741,
29922,
842,
21245,
8789,
29889,
2886,
29918,
8318,
3285,
13,
1678,
2601,
29918,
276,
339,
2658,
11759,
13,
4706,
525,
29876,
1896,
29895,
742,
13,
1678,
21251,
13,
1678,
770,
14903,
7607,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
613,
13,
4706,
376,
29931,
293,
1947,
4761,
438,
5425,
28268,
1490,
4761,
341,
1806,
19245,
613,
13,
4706,
376,
7094,
1218,
2184,
4761,
6570,
25266,
613,
13,
1678,
10353,
13,
1678,
14319,
29918,
11177,
29922,
8824,
29897,
13,
2
] |
ecasb2share/tests/__init__.py | statiksof/ECAS-B2SHARE | 1 | 163855 | all = ["ecas_b2share_test", "tests.py"] | [
1,
599,
353,
6796,
687,
294,
29918,
29890,
29906,
13653,
29918,
1688,
613,
376,
21150,
29889,
2272,
3108,
2
] |
adminmgr/media/code/A3/task2/BD_1595_1702_0194_43EhjOV.py | IamMayankThakur/test-bigdata | 9 | 1607833 | from pyspark.sql import SparkSession
from pyspark.sql.types import *
from pyspark.conf import SparkConf
from pyspark.streaming import StreamingContext
from pyspark.sql import Row,SQLContext
import csv
from pyspark.sql.functions import col,split,explode
sp = SparkSession.builder.appName("app").getOrCreate()
myschema = StructType().add("Id", "string").\
add("lang", "string").\
add("date", "string").\
add("source", "string").\
add("len","integer").\
add("likes", "integer").\
add("rt", "integer").\
add("ht", "string").\
add("umn", "string").\
add("umi", "string").\
add("name", "string").\
add("place", "string").\
add("followers", "integer").\
add("friends","integer")
rows = sp.readStream.option("sep", ";").schema(myschema).csv("/stream")
rows.createOrReplaceTempView("updates")
out = sp.sql("select name,max(followers/friends) as FRRatio from updates group by name order by FRRatio desc LIMIT 1")
query = out.writeStream.outputMode("complete").format("console").start()
query.awaitTermination(100)
query.stop()
| [
1,
515,
282,
952,
6378,
29889,
2850,
1053,
20814,
7317,
13,
3166,
282,
952,
6378,
29889,
2850,
29889,
8768,
1053,
334,
13,
3166,
282,
952,
6378,
29889,
5527,
1053,
20814,
16376,
13,
3166,
282,
952,
6378,
29889,
5461,
292,
1053,
13763,
292,
2677,
13,
3166,
282,
952,
6378,
29889,
2850,
1053,
11438,
29892,
4176,
2677,
13,
5215,
11799,
13,
3166,
282,
952,
6378,
29889,
2850,
29889,
12171,
1053,
784,
29892,
5451,
29892,
24516,
356,
13,
13,
13,
12,
13,
1028,
353,
20814,
7317,
29889,
16409,
29889,
932,
1170,
703,
932,
2564,
657,
2816,
4391,
580,
13,
13,
1357,
11010,
353,
28771,
1542,
2141,
1202,
703,
1204,
613,
376,
1807,
2564,
29905,
13,
12,
1202,
703,
3893,
613,
376,
1807,
2564,
29905,
13,
12,
1202,
703,
1256,
613,
376,
1807,
2564,
29905,
13,
12,
1202,
703,
4993,
613,
376,
1807,
2564,
29905,
13,
12,
1202,
703,
2435,
3284,
16031,
2564,
29905,
13,
12,
1202,
703,
5081,
267,
613,
376,
16031,
2564,
29905,
13,
12,
1202,
703,
2273,
613,
376,
16031,
2564,
29905,
13,
12,
1202,
703,
400,
613,
376,
1807,
2564,
29905,
13,
12,
1202,
703,
1227,
613,
376,
1807,
2564,
29905,
13,
12,
1202,
703,
15547,
613,
376,
1807,
2564,
29905,
13,
12,
1202,
703,
978,
613,
376,
1807,
2564,
29905,
13,
12,
1202,
703,
6689,
613,
376,
1807,
2564,
29905,
13,
12,
1202,
703,
23031,
414,
613,
376,
16031,
2564,
29905,
13,
12,
1202,
703,
7932,
1975,
3284,
16031,
1159,
13,
13,
5727,
353,
805,
29889,
949,
3835,
29889,
3385,
703,
19570,
613,
12159,
2564,
11010,
29898,
1357,
11010,
467,
7638,
11974,
5461,
1159,
13,
5727,
29889,
3258,
2816,
20083,
15637,
1043,
703,
786,
15190,
1159,
13,
449,
353,
29871,
805,
29889,
2850,
703,
2622,
1024,
29892,
3317,
29898,
23031,
414,
29914,
7932,
1975,
29897,
408,
23788,
29934,
20819,
515,
11217,
2318,
491,
1024,
1797,
491,
29871,
23788,
29934,
20819,
5153,
27848,
29871,
29896,
1159,
13,
13,
13,
13,
1972,
353,
29871,
714,
29889,
3539,
3835,
29889,
4905,
6818,
703,
8835,
2564,
4830,
703,
11058,
2564,
2962,
580,
13,
1972,
29889,
20675,
14343,
3381,
29898,
29896,
29900,
29900,
29897,
13,
1972,
29889,
9847,
580,
13,
2
] |
src/aws_lambda/movie_lens_data_injection_lambda.py | joshch1630/movie_data_platform | 0 | 1605370 | import os
import zipfile
import logging
import boto3
import wget
logger = logging.getLogger()
logger.setLevel(logging.INFO)
S3_BUCKET_NAME = "movie-data-platform.mpd"
TEMP_PATH = "/tmp/"
MOVIE_LENS_PATH = "movie_lens/"
RAW_ZONE_PATH = "raw_zone/"
MOVIE_LENS_URL_PREFIX = "https://files.grouplens.org/datasets/movielens/"
MOVIE_LENS_FILE_NAME = "ml-25m.zip"
MOVIE_LENS_DIR_NAME = "ml-25m/"
def lambda_handler(event, context):
logger.info("===== Start MovieLens data injection =====")
zip_file_path = get_file_from_movie_lens(MOVIE_LENS_URL_PREFIX + MOVIE_LENS_FILE_NAME, MOVIE_LENS_FILE_NAME)
unzip_file_and_save_into_s3(zip_file_path)
start_glue_workflow()
logger.info("===== End MovieLens data injection =====")
return {
"statusCode": 200,
"headers": {
"Content-Type": "application/json"
}
}
def get_file_from_movie_lens(remote_url, file_name):
logger.info("Start get_file_from_movie_lens")
zip_file_path = TEMP_PATH + file_name
logger.info('zip_file_path: {}'.format(zip_file_path))
unzip_file_name = file_name.replace(".zip", "")
logger.info('unzip_file: {}'.format(unzip_file_name))
wget.download(remote_url, zip_file_path)
logger.info('File info: {}'.format(os.stat(zip_file_path)))
return zip_file_path
def unzip_file_and_save_into_s3(zip_file_path):
logger.info("Start unzip_file_and_save_into_s3")
s3 = boto3.resource("s3")
z = zipfile.ZipFile(zip_file_path)
logger.info('file name list: {}'.format(", ".join(str(file_name) for file_name in z.namelist())))
for file_name in z.namelist():
s3_raw_path = RAW_ZONE_PATH + MOVIE_LENS_PATH + file_name.replace(MOVIE_LENS_DIR_NAME, "")
logger.info('s3_raw_path: {}'.format(s3_raw_path))
s3.Bucket(S3_BUCKET_NAME).put_object(Key=s3_raw_path, Body=z.open(file_name))
def start_glue_workflow():
logger.info("Start start_glue_workflow")
glue = boto3.client("glue")
glue.start_workflow_run(
Name = "movie_lens_data_cleansing_glue_workflow"
) | [
1,
1053,
2897,
13,
5215,
14319,
1445,
13,
5215,
12183,
13,
5215,
289,
3747,
29941,
13,
5215,
281,
657,
13,
13,
21707,
353,
12183,
29889,
657,
16363,
580,
13,
21707,
29889,
842,
10108,
29898,
21027,
29889,
11690,
29897,
13,
13,
29903,
29941,
29918,
7838,
7077,
2544,
29918,
5813,
353,
376,
27362,
29899,
1272,
29899,
12120,
29889,
1526,
29881,
29908,
13,
4330,
3580,
29918,
10145,
353,
5591,
7050,
12975,
13,
6720,
29963,
8673,
29918,
1307,
3059,
29918,
10145,
353,
376,
27362,
29918,
29880,
575,
12975,
13,
4717,
29956,
29918,
29999,
12413,
29918,
10145,
353,
376,
1610,
29918,
8028,
12975,
13,
6720,
29963,
8673,
29918,
1307,
3059,
29918,
4219,
29918,
15094,
25634,
353,
376,
991,
597,
5325,
29889,
629,
283,
572,
575,
29889,
990,
29914,
14538,
1691,
29914,
13529,
709,
575,
12975,
13,
6720,
29963,
8673,
29918,
1307,
3059,
29918,
7724,
29918,
5813,
353,
376,
828,
29899,
29906,
29945,
29885,
29889,
7554,
29908,
13,
6720,
29963,
8673,
29918,
1307,
3059,
29918,
9464,
29918,
5813,
353,
376,
828,
29899,
29906,
29945,
29885,
12975,
13,
13,
13,
1753,
14013,
29918,
13789,
29898,
3696,
29892,
3030,
1125,
13,
13,
1678,
17927,
29889,
3888,
703,
2751,
29922,
7370,
7871,
29931,
575,
848,
20859,
1275,
1360,
543,
29897,
13,
13,
1678,
14319,
29918,
1445,
29918,
2084,
353,
679,
29918,
1445,
29918,
3166,
29918,
27362,
29918,
29880,
575,
29898,
6720,
29963,
8673,
29918,
1307,
3059,
29918,
4219,
29918,
15094,
25634,
718,
16999,
29963,
8673,
29918,
1307,
3059,
29918,
7724,
29918,
5813,
29892,
16999,
29963,
8673,
29918,
1307,
3059,
29918,
7724,
29918,
5813,
29897,
13,
308,
13,
1678,
443,
7554,
29918,
1445,
29918,
392,
29918,
7620,
29918,
8941,
29918,
29879,
29941,
29898,
7554,
29918,
1445,
29918,
2084,
29897,
13,
13,
1678,
1369,
29918,
3820,
434,
29918,
1287,
1731,
580,
13,
13,
1678,
17927,
29889,
3888,
703,
2751,
29922,
2796,
7871,
29931,
575,
848,
20859,
1275,
1360,
543,
29897,
13,
13,
1678,
736,
426,
13,
4706,
376,
4882,
3399,
1115,
29871,
29906,
29900,
29900,
29892,
13,
4706,
376,
13662,
1115,
426,
13,
9651,
376,
3916,
29899,
1542,
1115,
376,
6214,
29914,
3126,
29908,
13,
4706,
500,
13,
1678,
500,
13,
13,
1753,
679,
29918,
1445,
29918,
3166,
29918,
27362,
29918,
29880,
575,
29898,
16674,
29918,
2271,
29892,
934,
29918,
978,
1125,
13,
1678,
17927,
29889,
3888,
703,
4763,
679,
29918,
1445,
29918,
3166,
29918,
27362,
29918,
29880,
575,
1159,
13,
13,
1678,
14319,
29918,
1445,
29918,
2084,
353,
17067,
3580,
29918,
10145,
718,
934,
29918,
978,
13,
13,
1678,
17927,
29889,
3888,
877,
7554,
29918,
1445,
29918,
2084,
29901,
6571,
4286,
4830,
29898,
7554,
29918,
1445,
29918,
2084,
876,
13,
13,
1678,
443,
7554,
29918,
1445,
29918,
978,
353,
934,
29918,
978,
29889,
6506,
17350,
7554,
613,
20569,
13,
13,
1678,
17927,
29889,
3888,
877,
348,
7554,
29918,
1445,
29901,
6571,
4286,
4830,
29898,
348,
7554,
29918,
1445,
29918,
978,
876,
13,
13,
1678,
281,
657,
29889,
10382,
29898,
16674,
29918,
2271,
29892,
14319,
29918,
1445,
29918,
2084,
29897,
13,
13,
1678,
17927,
29889,
3888,
877,
2283,
5235,
29901,
6571,
4286,
4830,
29898,
359,
29889,
6112,
29898,
7554,
29918,
1445,
29918,
2084,
4961,
13,
13,
1678,
736,
14319,
29918,
1445,
29918,
2084,
13,
13,
1753,
443,
7554,
29918,
1445,
29918,
392,
29918,
7620,
29918,
8941,
29918,
29879,
29941,
29898,
7554,
29918,
1445,
29918,
2084,
1125,
13,
1678,
17927,
29889,
3888,
703,
4763,
443,
7554,
29918,
1445,
29918,
392,
29918,
7620,
29918,
8941,
29918,
29879,
29941,
1159,
13,
13,
1678,
269,
29941,
353,
289,
3747,
29941,
29889,
10314,
703,
29879,
29941,
1159,
13,
1678,
503,
353,
14319,
1445,
29889,
26264,
2283,
29898,
7554,
29918,
1445,
29918,
2084,
29897,
13,
13,
1678,
17927,
29889,
3888,
877,
1445,
1024,
1051,
29901,
6571,
4286,
4830,
28165,
11393,
7122,
29898,
710,
29898,
1445,
29918,
978,
29897,
363,
934,
29918,
978,
297,
503,
29889,
8588,
295,
391,
580,
4961,
13,
13,
1678,
363,
934,
29918,
978,
297,
503,
29889,
8588,
295,
391,
7295,
13,
4706,
269,
29941,
29918,
1610,
29918,
2084,
353,
18865,
29956,
29918,
29999,
12413,
29918,
10145,
718,
16999,
29963,
8673,
29918,
1307,
3059,
29918,
10145,
718,
934,
29918,
978,
29889,
6506,
29898,
6720,
29963,
8673,
29918,
1307,
3059,
29918,
9464,
29918,
5813,
29892,
20569,
13,
4706,
17927,
29889,
3888,
877,
29879,
29941,
29918,
1610,
29918,
2084,
29901,
6571,
4286,
4830,
29898,
29879,
29941,
29918,
1610,
29918,
2084,
876,
13,
4706,
269,
29941,
29889,
29933,
2707,
300,
29898,
29903,
29941,
29918,
7838,
7077,
2544,
29918,
5813,
467,
649,
29918,
3318,
29898,
2558,
29922,
29879,
29941,
29918,
1610,
29918,
2084,
29892,
24928,
29922,
29920,
29889,
3150,
29898,
1445,
29918,
978,
876,
13,
13,
1753,
1369,
29918,
3820,
434,
29918,
1287,
1731,
7295,
13,
1678,
17927,
29889,
3888,
703,
4763,
1369,
29918,
3820,
434,
29918,
1287,
1731,
1159,
13,
13,
1678,
3144,
434,
353,
289,
3747,
29941,
29889,
4645,
703,
3820,
434,
1159,
13,
1678,
3144,
434,
29889,
2962,
29918,
1287,
1731,
29918,
3389,
29898,
13,
4706,
4408,
353,
376,
27362,
29918,
29880,
575,
29918,
1272,
29918,
2841,
550,
292,
29918,
3820,
434,
29918,
1287,
1731,
29908,
13,
1678,
1723,
2
] |
main.py | keyan/reaction_reader | 0 | 186735 | import io
import os
import time
from collections import Counter
from tempfile import NamedTemporaryFile
import cv2
import numpy as np
import pyautogui
from gtts import gTTS
from mpg123 import Mpg123, Out123
def get_screen_image():
with NamedTemporaryFile() as f:
pil_image = pyautogui.screenshot(imageFilename=f.name)
opencvImage = cv2.cvtColor(np.array(pil_image), cv2.COLOR_RGB2BGR)
return opencvImage
def extract_qr_codes(image):
qrCodeDetector = cv2.QRCodeDetector()
res = qrCodeDetector.detectAndDecodeMulti(image)
return Counter(res[1])
def audio_describe(codes):
text = ''
for code, count in codes.items():
if code == 'thumbs_up':
text += f'{count} users are presenting thumbs-up, '
elif code == 'smiling':
text += f'{count} users are smiling, '
if text == '':
return
with io.BytesIO() as f:
gTTS(text=text, lang='en', slow=False).write_to_fp(f)
f.seek(0)
mp3 = Mpg123()
mp3.feed(f.read())
out = Out123()
for frame in mp3.iter_frames(out.start):
out.play(frame)
if __name__ == '__main__':
while True:
# Sanity check using a pre-made image.
# Comment out the get_screen_image() call to test this.
# image = cv2.imread('multi.png')
s = time.perf_counter()
image = get_screen_image()
print(f'Screenshot time: {time.perf_counter() - s:0.2f} secs')
s = time.perf_counter()
codes_and_counts = extract_qr_codes(image)
print(f'QR extraction time: {time.perf_counter() - s:0.2f} secs')
if len(codes_and_counts) > 0:
s = time.perf_counter()
audio_describe(codes_and_counts)
print(f'Audio time: {time.perf_counter() - s:0.2f} secs')
else:
print('No QR codes detected')
| [
1,
1053,
12013,
13,
5215,
2897,
13,
5215,
931,
13,
3166,
16250,
1053,
315,
5336,
13,
3166,
5694,
1445,
1053,
405,
2795,
5776,
1971,
653,
2283,
13,
13,
5215,
13850,
29906,
13,
5215,
12655,
408,
7442,
13,
5215,
11451,
1300,
468,
1481,
13,
3166,
330,
698,
29879,
1053,
330,
29911,
9375,
13,
3166,
286,
4061,
29896,
29906,
29941,
1053,
341,
4061,
29896,
29906,
29941,
29892,
4451,
29896,
29906,
29941,
13,
13,
13,
1753,
679,
29918,
10525,
29918,
3027,
7295,
13,
1678,
411,
405,
2795,
5776,
1971,
653,
2283,
580,
408,
285,
29901,
13,
4706,
8230,
29918,
3027,
353,
11451,
1300,
468,
1481,
29889,
29879,
24546,
8711,
29898,
3027,
3434,
3871,
29922,
29888,
29889,
978,
29897,
13,
13,
1678,
1722,
11023,
2940,
353,
13850,
29906,
29889,
11023,
29873,
3306,
29898,
9302,
29889,
2378,
29898,
29886,
309,
29918,
3027,
511,
13850,
29906,
29889,
15032,
1955,
29918,
28212,
29906,
29933,
14345,
29897,
13,
1678,
736,
1722,
11023,
2940,
13,
13,
13,
1753,
6597,
29918,
29939,
29878,
29918,
18137,
29898,
3027,
1125,
13,
1678,
3855,
29878,
3399,
6362,
3019,
353,
13850,
29906,
29889,
29984,
29934,
3399,
6362,
3019,
580,
13,
1678,
620,
353,
3855,
29878,
3399,
6362,
3019,
29889,
4801,
522,
2855,
2772,
401,
15329,
29898,
3027,
29897,
13,
1678,
736,
315,
5336,
29898,
690,
29961,
29896,
2314,
13,
13,
13,
1753,
10348,
29918,
2783,
29581,
29898,
18137,
1125,
13,
1678,
1426,
353,
6629,
13,
1678,
363,
775,
29892,
2302,
297,
11561,
29889,
7076,
7295,
13,
4706,
565,
775,
1275,
525,
386,
3774,
29879,
29918,
786,
2396,
13,
9651,
1426,
4619,
285,
29915,
29912,
2798,
29913,
4160,
526,
2198,
292,
28968,
29879,
29899,
786,
29892,
525,
13,
4706,
25342,
775,
1275,
525,
3844,
6504,
2396,
13,
9651,
1426,
4619,
285,
29915,
29912,
2798,
29913,
4160,
526,
1560,
6504,
29892,
525,
13,
13,
1678,
565,
1426,
1275,
525,
2396,
13,
4706,
736,
13,
13,
1678,
411,
12013,
29889,
11207,
5971,
580,
408,
285,
29901,
13,
4706,
330,
29911,
9375,
29898,
726,
29922,
726,
29892,
6361,
2433,
264,
742,
5232,
29922,
8824,
467,
3539,
29918,
517,
29918,
18091,
29898,
29888,
29897,
13,
4706,
285,
29889,
344,
1416,
29898,
29900,
29897,
13,
4706,
22326,
29941,
353,
341,
4061,
29896,
29906,
29941,
580,
13,
4706,
22326,
29941,
29889,
18798,
29898,
29888,
29889,
949,
3101,
13,
4706,
714,
353,
4451,
29896,
29906,
29941,
580,
13,
4706,
363,
3515,
297,
22326,
29941,
29889,
1524,
29918,
19935,
29898,
449,
29889,
2962,
1125,
13,
9651,
714,
29889,
1456,
29898,
2557,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1550,
5852,
29901,
13,
4706,
396,
3087,
537,
1423,
773,
263,
758,
29899,
26350,
1967,
29889,
13,
4706,
396,
461,
714,
278,
679,
29918,
10525,
29918,
3027,
580,
1246,
304,
1243,
445,
29889,
13,
4706,
396,
1967,
353,
13850,
29906,
29889,
326,
949,
877,
9910,
29889,
2732,
1495,
13,
13,
4706,
269,
353,
931,
29889,
546,
29888,
29918,
11808,
580,
13,
4706,
1967,
353,
679,
29918,
10525,
29918,
3027,
580,
13,
4706,
1596,
29898,
29888,
29915,
29903,
24546,
8711,
931,
29901,
426,
2230,
29889,
546,
29888,
29918,
11808,
580,
448,
269,
29901,
29900,
29889,
29906,
29888,
29913,
409,
2395,
1495,
13,
13,
4706,
269,
353,
931,
29889,
546,
29888,
29918,
11808,
580,
13,
4706,
11561,
29918,
392,
29918,
2798,
29879,
353,
6597,
29918,
29939,
29878,
29918,
18137,
29898,
3027,
29897,
13,
4706,
1596,
29898,
29888,
29915,
29984,
29934,
4805,
428,
931,
29901,
426,
2230,
29889,
546,
29888,
29918,
11808,
580,
448,
269,
29901,
29900,
29889,
29906,
29888,
29913,
409,
2395,
1495,
13,
4706,
565,
7431,
29898,
18137,
29918,
392,
29918,
2798,
29879,
29897,
1405,
29871,
29900,
29901,
13,
9651,
269,
353,
931,
29889,
546,
29888,
29918,
11808,
580,
13,
9651,
10348,
29918,
2783,
29581,
29898,
18137,
29918,
392,
29918,
2798,
29879,
29897,
13,
9651,
1596,
29898,
29888,
29915,
17111,
931,
29901,
426,
2230,
29889,
546,
29888,
29918,
11808,
580,
448,
269,
29901,
29900,
29889,
29906,
29888,
29913,
409,
2395,
1495,
13,
4706,
1683,
29901,
13,
9651,
1596,
877,
3782,
660,
29934,
11561,
17809,
1495,
13,
2
] |
software/kilsyth/platform/kilsyth.py | kbeckmann/Kilsyth | 5 | 128401 | <gh_stars>1-10
import os
import subprocess
from nmigen.build import *
from nmigen.vendor.lattice_ecp5 import *
from nmigen_boards.resources import *
from ..gateware.ft600 import FT600Resource
__all__ = ["KilsythPlatform"]
class KilsythPlatform(LatticeECP5Platform):
device = "LFE5U-45F"
package = "BG381"
speed = 6
default_clk = "clk16"
resources = [
Resource("clk16", 0, Pins("G3", dir="i"),
Clock(16e6), Attrs(GLOBAL=True, IO_TYPE="LVCMOS33")),
*LEDResources(pins="A9 B9 B10 A10 A11 C10 B11 C11", invert=False, attrs=Attrs(IO_TYPE="LVCMOS33")),
FT600Resource(0,
clk="H2",
data="P4 P3 P2 P1 N4 N3 N2 N1 M3 M1 L3 L2 L1 K4 K3 K2",
be="K1 J5",
rd_n="M4",
wr_n="J1",
gpio1="G5",
txe_n="J4",
rxf_n="J3",
oe_n="H1",
)
]
connectors = []
def toolchain_program(self, products, name):
openocd = os.environ.get("OPENOCD", "openocd")
interface = os.environ.get("INTERFACE", "SiPEED")
if interface == "SiPEED" or interface == "busblaster":
if interface == "SiPEED":
args = ["-c", """
interface ftdi
ftdi_vid_pid 0x0403 0x6010
ftdi_layout_init 0x0018 0x05fb
ftdi_layout_signal nSRST -data 0x0010
"""]
elif interface == "busblaster":
args = ["-f", "interface/ftdi/dp_busblaster.cfg"]
with products.extract("{}.svf".format(name)) as vector_filename:
subprocess.check_call([openocd,
*args,
"-c", "transport select jtag; adapter_khz 10000; init; svf -quiet {}; exit".format(vector_filename)
])
else:
raise Exception("Unsupported interface")
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2897,
13,
5215,
1014,
5014,
13,
13,
3166,
302,
29885,
2101,
29889,
4282,
1053,
334,
13,
3166,
302,
29885,
2101,
29889,
19167,
29889,
29880,
19704,
29918,
687,
29886,
29945,
1053,
334,
13,
3166,
302,
29885,
2101,
29918,
24691,
29889,
13237,
1053,
334,
13,
13,
3166,
6317,
17062,
2519,
29889,
615,
29953,
29900,
29900,
1053,
383,
29911,
29953,
29900,
29900,
6848,
13,
13,
1649,
497,
1649,
353,
6796,
29968,
2719,
1541,
21889,
3108,
13,
13,
13,
1990,
476,
2719,
1541,
21889,
29898,
29931,
19704,
29923,
6271,
29945,
21889,
1125,
13,
1678,
4742,
418,
353,
376,
29931,
16359,
29945,
29965,
29899,
29946,
29945,
29943,
29908,
13,
1678,
3577,
268,
353,
376,
29933,
29954,
29941,
29947,
29896,
29908,
13,
1678,
6210,
539,
353,
29871,
29953,
13,
13,
1678,
2322,
29918,
20495,
353,
376,
20495,
29896,
29953,
29908,
13,
1678,
7788,
259,
353,
518,
13,
4706,
18981,
703,
20495,
29896,
29953,
613,
29871,
29900,
29892,
349,
1144,
703,
29954,
29941,
613,
4516,
543,
29875,
4968,
13,
462,
315,
908,
29898,
29896,
29953,
29872,
29953,
511,
2180,
509,
29879,
29898,
29954,
28902,
1964,
29922,
5574,
29892,
10663,
29918,
11116,
543,
29931,
8257,
29924,
3267,
29941,
29941,
1159,
511,
13,
13,
4706,
334,
20566,
13770,
29898,
29886,
1144,
543,
29909,
29929,
350,
29929,
350,
29896,
29900,
319,
29896,
29900,
319,
29896,
29896,
315,
29896,
29900,
350,
29896,
29896,
315,
29896,
29896,
613,
21292,
29922,
8824,
29892,
12421,
29879,
29922,
25098,
29879,
29898,
5971,
29918,
11116,
543,
29931,
8257,
29924,
3267,
29941,
29941,
1159,
511,
13,
13,
4706,
383,
29911,
29953,
29900,
29900,
6848,
29898,
29900,
29892,
13,
9651,
1067,
29895,
543,
29950,
29906,
613,
13,
9651,
848,
543,
29925,
29946,
349,
29941,
349,
29906,
349,
29896,
405,
29946,
405,
29941,
405,
29906,
405,
29896,
341,
29941,
341,
29896,
365,
29941,
365,
29906,
365,
29896,
476,
29946,
476,
29941,
476,
29906,
613,
13,
9651,
367,
543,
29968,
29896,
435,
29945,
613,
13,
9651,
364,
29881,
29918,
29876,
543,
29924,
29946,
613,
13,
9651,
2358,
29918,
29876,
543,
29967,
29896,
613,
13,
9651,
330,
16168,
29896,
543,
29954,
29945,
613,
13,
9651,
260,
17115,
29918,
29876,
543,
29967,
29946,
613,
13,
9651,
364,
24660,
29918,
29876,
543,
29967,
29941,
613,
13,
9651,
288,
29872,
29918,
29876,
543,
29950,
29896,
613,
13,
4706,
1723,
13,
1678,
4514,
13,
1678,
4511,
943,
353,
5159,
13,
13,
1678,
822,
5780,
14153,
29918,
8860,
29898,
1311,
29892,
9316,
29892,
1024,
1125,
13,
4706,
1722,
542,
29881,
353,
2897,
29889,
21813,
29889,
657,
703,
4590,
1430,
29949,
6530,
613,
376,
3150,
542,
29881,
1159,
13,
4706,
5067,
353,
2897,
29889,
21813,
29889,
657,
703,
23845,
29943,
11538,
613,
376,
25598,
4162,
3352,
1159,
13,
4706,
565,
5067,
1275,
376,
25598,
4162,
3352,
29908,
470,
5067,
1275,
376,
8262,
2204,
1901,
1115,
13,
9651,
565,
5067,
1275,
376,
25598,
4162,
3352,
1115,
13,
18884,
6389,
353,
6796,
29899,
29883,
613,
9995,
13,
462,
4706,
5067,
285,
1594,
29875,
13,
462,
4706,
285,
1594,
29875,
29918,
8590,
29918,
5935,
29871,
29900,
29916,
29900,
29946,
29900,
29941,
29871,
29900,
29916,
29953,
29900,
29896,
29900,
13,
462,
4706,
285,
1594,
29875,
29918,
2680,
29918,
2344,
29871,
29900,
29916,
29900,
29900,
29896,
29947,
29871,
29900,
29916,
29900,
29945,
14943,
13,
462,
4706,
285,
1594,
29875,
29918,
2680,
29918,
25436,
302,
14098,
1254,
448,
1272,
29871,
29900,
29916,
29900,
29900,
29896,
29900,
13,
462,
1678,
5124,
3108,
13,
9651,
25342,
5067,
1275,
376,
8262,
2204,
1901,
1115,
13,
18884,
6389,
353,
6796,
29899,
29888,
613,
376,
13248,
29914,
615,
6051,
29914,
6099,
29918,
8262,
2204,
1901,
29889,
16859,
3108,
13,
13,
9651,
411,
9316,
29889,
21111,
703,
29912,
1836,
4501,
29888,
1642,
4830,
29898,
978,
876,
408,
4608,
29918,
9507,
29901,
13,
18884,
1014,
5014,
29889,
3198,
29918,
4804,
4197,
3150,
542,
29881,
29892,
13,
462,
1678,
334,
5085,
29892,
13,
462,
1678,
11663,
29883,
613,
376,
27882,
1831,
432,
4039,
29936,
13304,
29918,
15339,
29920,
29871,
29896,
29900,
29900,
29900,
29900,
29936,
2069,
29936,
3731,
29888,
448,
339,
2035,
15739,
6876,
1642,
4830,
29898,
8111,
29918,
9507,
29897,
13,
462,
2314,
13,
4706,
1683,
29901,
13,
9651,
12020,
8960,
703,
25807,
29884,
3016,
287,
5067,
1159,
13,
2
] |
scripts/s3-uploader.py | kltm/go-site | 31 | 48300 | """
Copy the contents of a local directory into the correct S3 location,
using the correct metadata as supplied by the metadata file (or
internal defaults).
"""
####
#### Copy the contents of a local directory into the correct S3
#### location, using the correct metadata as supplied by the metadata
#### file (or internal defaults).
####
#### Example usage:
#### python3 s3-uploader.py --help
#### mkdir -p /tmp/mnt || true
#### mkdir -p /tmp/foo || true
#### sshfs -oStrictHostKeyChecking=no -o IdentitiesOnly=true -o IdentityFile=/home/sjcarbon/local/share/secrets/bbop/ssh-keys/foo.skyhook -o idmap=user <EMAIL>:/home/skyhook /tmp/mnt/
#### cp -r /tmp/mnt/master/* /tmp/foo
#### fusermount -u /tmp/mnt
#### python3 ./scripts/s3-uploader.py -v --credentials ~/local/share/secrets/bbop/aws/s3/aws-go-push.json --directory ~/tmp/elpa/archives --bucket go-data-testing-sandbox --number 7 --pipeline foo-pipe
####
## Standard imports.
import sys
import urllib
import argparse
import logging
import os
import json
import boto3
import math
from filechunkio import FileChunkIO
## Default mimetype metadata--everything that we'll be dealing with,
## so controlled.
MIMES = {
'csv': 'text/csv',
'gaf': 'text/plain',
'gz': 'application/gzip',
'html': 'text/html',
## http://www.rfc-editor.org/rfc/rfc2046.txt
'jnl': 'application/octet-stream',
'js': 'application/javascript',
'json': 'application/json',
'md': 'text/markdown',
'obo': 'text/obo',
'owl': 'application/rdf+xml',
'report': 'text/plain',
## https://www.w3.org/TeamSubmission/turtle/#sec-mime
'ttl': 'text/turtle',
'tsv': 'text/tab-separated-values',
'txt': 'text/plain',
'yaml': 'text/yaml',
'yml': 'text/yaml',
## Default.
'': 'text/plain'
}
## Logger basic setup.
logging.basicConfig(level=logging.INFO)
LOG = logging.getLogger('aggregate')
LOG.setLevel(logging.WARNING)
def die_screaming(instr):
"""
Make sure we exit in a way that will get Jenkins's attention.
"""
LOG.error(instr)
sys.exit(1)
def get_args():
"""
Deal with incoming.
"""
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('-v', '--verbose', action='store_true',
help='More verbose output')
parser.add_argument('-c', '--credentials',
help='The credentials to used, in JSON')
parser.add_argument('-d', '--directory',
help='The directory to copy from')
parser.add_argument('-b', '--bucket',
help='The S3 bucket to copy into')
parser.add_argument('-n', '--number',
help='Optional: the "build-number" to add to the meta')
parser.add_argument('-p', '--pipeline',
help='Optional: the "build-pipeline" to add to the meta')
parser.add_argument('-m', '--mimetypes',
help='TODO: The mimetypes metadata to use, in JSON')
parser.add_argument('-l', '--location',
help='TODO: The S3 location to use')
return parser
def main():
"""The main runner for our script."""
parser = get_args()
args = parser.parse_args()
if args.verbose:
LOG.setLevel(logging.INFO)
LOG.info('Verbose: on')
else:
## If not verbose, turn down boto3.
boto3.set_stream_logger(name='boto3', level=logging.WARNING)
boto3.set_stream_logger(name='botocore', level=logging.WARNING)
logging.getLogger("requests").setLevel(logging.WARNING)
## Ensure credentials.
if not args.credentials:
die_screaming('need a credentials argument')
LOG.info('Will use credentials: ' + args.credentials)
## Ensure directory.
if not args.directory:
die_screaming('need a directory argument')
args.directory = args.directory.rstrip('//')
LOG.info('Will operate in: ' + args.directory)
## Ensure bucket.
if not args.bucket:
die_screaming('need a bucket argument')
bucket, slash, toppath = args.bucket.partition('/')
if toppath != '':
LOG.info('Will put to bucket: ' + bucket + '; with path: ' + toppath)
else:
LOG.info('Will put to bucket at top level: ' + bucket)
## Ensure mimetype metadata.
if not args.mimetypes:
LOG.info('Will use internal mimetype defaults')
else:
LOG.info('TODO: Will get mimetype metadata from: ' + args.metadata)
## Ensure bucket location.
if not args.location:
args.location = 'us-east-1'
LOG.info('Will use S3 bucket location default: ' + args.location)
else:
LOG.info('Will use S3 bucket location: ' + args.location)
## Extract S3 credentials.
creds = None
with open(args.credentials) as chandle:
creds = json.loads(chandle.read())
#LOG.info(creds)
s3 = boto3.resource('s3', region_name=args.location,
aws_access_key_id=creds['accessKeyId'],
aws_secret_access_key=creds['secretAccessKey'])
# s3 = boto3.resource("s3", creds['accessKeyId'], creds['secretAccessKey'])
#s3.Object('mybucket', 'hello.txt').put(Body=open('/tmp/hello.txt', 'rb'))
## Walk tree.
for curr_dir, dirs, files in os.walk(args.directory):
## We can navigate up if we are not in the root.
relative_to_start = curr_dir.rstrip('//')[len(args.directory):]
relative_to_start = relative_to_start.lstrip('//')
LOG.info('curr_dir: ' + curr_dir + ' (' + relative_to_start + ')')
## Note files and directories.
for fname in files:
## Get correct mime type.
fext = os.path.splitext(fname)[1].lstrip('.')
mime = MIMES.get('') # start with default
if MIMES.get(fext, False):
mime = MIMES.get(fext)
## Figure out S3 path/key and final filename, keeping in
## mind that relative_to_Start can be empty if root.
s3path = fname
if relative_to_start:
s3path = relative_to_start + '/' + fname
filename = os.path.join(curr_dir, fname)
tags = {}
if args.number:
tags['build-number'] = args.number
if args.pipeline:
tags['build-pipeline'] = args.pipeline
tags_str = urllib.parse.urlencode(tags)
## Visual check.
LOG.info('file: ' + filename)
if toppath != '':
s3path = toppath + '/' + s3path
LOG.info(' -> [' + bucket + '] ' + s3path + \
'(' + mime + ', ' + tags_str + ')')
## Create the new object that we want.
s3bucket = s3.Bucket(bucket)
multipart_upload(filename, s3bucket, s3path, content_type=mime, metadata=tags, policy="public-read")
# newobj = s3.Object(args.bucket, s3path)
# outfile = open(filename, 'rb')
# newobj.put(Body=outfile, \
# ContentType=mime, \
# Metadata=tags,
# ACL='public-read') #Tagging=tags_str)
# outbod = open(os.path.join(curr_dir, fname), 'rb')
# .put(Body=outbod, 'rb')
# for dname in dirs:
# #LOG.info('dir: ' + os.path.join(curr_dir, dname))
# pass
def multipart_upload(source_file_path, s3_bucket, s3_path, content_type=None, metadata=None, policy=None):
header = {}
if content_type:
header["ContentType"] = content_type
if metadata:
header["Metadata"] = metadata
if policy:
header["ACL"] = policy
s3_bucket.upload_file(source_file_path, s3_path, ExtraArgs=header)
## You saw it coming...
if __name__ == '__main__':
main()
| [
1,
9995,
13,
11882,
278,
8118,
310,
263,
1887,
3884,
964,
278,
1959,
317,
29941,
4423,
29892,
13,
4746,
278,
1959,
15562,
408,
19056,
491,
278,
15562,
934,
313,
272,
13,
7564,
21274,
467,
13,
15945,
29908,
13,
4136,
13,
4136,
14187,
278,
8118,
310,
263,
1887,
3884,
964,
278,
1959,
317,
29941,
13,
4136,
4423,
29892,
773,
278,
1959,
15562,
408,
19056,
491,
278,
15562,
13,
4136,
934,
313,
272,
7463,
21274,
467,
13,
4136,
13,
4136,
8741,
8744,
29901,
13,
4136,
29871,
3017,
29941,
269,
29941,
29899,
9009,
261,
29889,
2272,
1192,
8477,
13,
4136,
29871,
29356,
448,
29886,
847,
7050,
29914,
29885,
593,
3830,
1565,
13,
4136,
29871,
29356,
448,
29886,
847,
7050,
29914,
5431,
3830,
1565,
13,
4136,
29871,
13927,
5847,
448,
29877,
5015,
919,
8514,
2558,
5596,
292,
29922,
1217,
448,
29877,
13355,
1907,
11730,
29922,
3009,
448,
29877,
27486,
2283,
14327,
5184,
29914,
29879,
29926,
4287,
6718,
29914,
2997,
29914,
13653,
29914,
344,
1037,
1372,
29914,
1327,
459,
29914,
15269,
29899,
8149,
29914,
5431,
29889,
7912,
20849,
448,
29877,
1178,
1958,
29922,
1792,
529,
26862,
6227,
29958,
8419,
5184,
29914,
7912,
20849,
847,
7050,
29914,
29885,
593,
29914,
13,
4136,
29871,
21447,
448,
29878,
847,
7050,
29914,
29885,
593,
29914,
6207,
5515,
847,
7050,
29914,
5431,
13,
4136,
29871,
16451,
837,
792,
448,
29884,
847,
7050,
29914,
29885,
593,
13,
4136,
29871,
3017,
29941,
11431,
16713,
29914,
29879,
29941,
29899,
9009,
261,
29889,
2272,
448,
29894,
1192,
11944,
9409,
3695,
29914,
2997,
29914,
13653,
29914,
344,
1037,
1372,
29914,
1327,
459,
29914,
10467,
29914,
29879,
29941,
29914,
10467,
29899,
1484,
29899,
5910,
29889,
3126,
1192,
12322,
3695,
29914,
7050,
29914,
295,
3274,
29914,
1279,
3145,
1192,
21454,
748,
29899,
1272,
29899,
13424,
29899,
29879,
26738,
1192,
4537,
29871,
29955,
1192,
13096,
5570,
7953,
29899,
17760,
13,
4136,
13,
13,
2277,
10117,
24802,
29889,
13,
5215,
10876,
13,
5215,
3142,
1982,
13,
5215,
1852,
5510,
13,
5215,
12183,
13,
5215,
2897,
13,
5215,
4390,
13,
5215,
289,
3747,
29941,
13,
5215,
5844,
13,
13,
3166,
934,
29812,
601,
1053,
3497,
1451,
2960,
5971,
13,
13,
2277,
13109,
286,
17528,
668,
15562,
489,
17991,
1918,
393,
591,
29915,
645,
367,
16743,
411,
29892,
13,
2277,
577,
20704,
29889,
13,
29924,
8890,
29903,
353,
426,
13,
1678,
525,
7638,
2396,
525,
726,
29914,
7638,
742,
13,
1678,
525,
29887,
2142,
2396,
525,
726,
29914,
24595,
742,
13,
1678,
525,
18828,
2396,
525,
6214,
29914,
29887,
7554,
742,
13,
1678,
525,
1420,
2396,
525,
726,
29914,
1420,
742,
13,
1678,
444,
1732,
597,
1636,
29889,
9600,
29883,
29899,
15204,
29889,
990,
29914,
9600,
29883,
29914,
9600,
29883,
29906,
29900,
29946,
29953,
29889,
3945,
13,
1678,
525,
29926,
12938,
2396,
525,
6214,
29914,
20082,
300,
29899,
5461,
742,
13,
1678,
525,
1315,
2396,
525,
6214,
29914,
7729,
742,
13,
1678,
525,
3126,
2396,
525,
6214,
29914,
3126,
742,
13,
1678,
525,
3487,
2396,
525,
726,
29914,
3502,
3204,
742,
13,
1678,
525,
711,
29877,
2396,
525,
726,
29914,
711,
29877,
742,
13,
1678,
525,
340,
29880,
2396,
525,
6214,
29914,
29878,
2176,
29974,
3134,
742,
13,
1678,
525,
12276,
2396,
525,
726,
29914,
24595,
742,
13,
1678,
444,
2045,
597,
1636,
29889,
29893,
29941,
29889,
990,
29914,
19409,
4035,
6737,
29914,
29873,
4227,
280,
8484,
3471,
29899,
29885,
603,
13,
1678,
525,
698,
29880,
2396,
525,
726,
29914,
29873,
4227,
280,
742,
13,
1678,
525,
1372,
29894,
2396,
525,
726,
29914,
3891,
29899,
25048,
630,
29899,
5975,
742,
13,
1678,
525,
3945,
2396,
525,
726,
29914,
24595,
742,
13,
1678,
525,
25162,
2396,
525,
726,
29914,
25162,
742,
13,
1678,
525,
21053,
2396,
525,
726,
29914,
25162,
742,
13,
1678,
444,
13109,
29889,
13,
1678,
525,
2396,
525,
726,
29914,
24595,
29915,
13,
1678,
500,
13,
13,
2277,
28468,
6996,
6230,
29889,
13,
21027,
29889,
16121,
3991,
29898,
5563,
29922,
21027,
29889,
11690,
29897,
13,
14480,
353,
12183,
29889,
657,
16363,
877,
26193,
403,
1495,
13,
14480,
29889,
842,
10108,
29898,
21027,
29889,
29956,
25614,
29897,
13,
13,
1753,
762,
29918,
29879,
1037,
11500,
29898,
262,
710,
1125,
13,
1678,
9995,
13,
1678,
8561,
1854,
591,
6876,
297,
263,
982,
393,
674,
679,
23750,
29915,
29879,
8570,
29889,
13,
1678,
9995,
13,
1678,
25401,
29889,
2704,
29898,
262,
710,
29897,
13,
1678,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
1753,
679,
29918,
5085,
7295,
13,
1678,
9995,
13,
1678,
897,
284,
411,
23235,
29889,
13,
1678,
9995,
13,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
13,
4706,
6139,
29922,
1649,
1514,
1649,
29892,
13,
4706,
883,
2620,
29918,
1990,
29922,
1191,
5510,
29889,
22131,
9868,
29648,
18522,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29894,
742,
525,
489,
369,
15828,
742,
3158,
2433,
8899,
29918,
3009,
742,
13,
462,
4706,
1371,
2433,
20761,
26952,
1962,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29883,
742,
525,
489,
11944,
9409,
742,
13,
462,
4706,
1371,
2433,
1576,
16140,
304,
1304,
29892,
297,
4663,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29881,
742,
525,
489,
12322,
742,
13,
462,
4706,
1371,
2433,
1576,
3884,
304,
3509,
515,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29890,
742,
525,
489,
21454,
742,
13,
462,
4706,
1371,
2433,
1576,
317,
29941,
20968,
304,
3509,
964,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29876,
742,
525,
489,
4537,
742,
13,
462,
4706,
1371,
2433,
27636,
29901,
278,
376,
4282,
29899,
4537,
29908,
304,
788,
304,
278,
12700,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29886,
742,
525,
489,
13096,
5570,
742,
13,
462,
4706,
1371,
2433,
27636,
29901,
278,
376,
4282,
29899,
13096,
5570,
29908,
304,
788,
304,
278,
12700,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29885,
742,
525,
489,
29885,
17528,
7384,
742,
13,
462,
4706,
1371,
2433,
4986,
3970,
29901,
450,
286,
17528,
7384,
15562,
304,
671,
29892,
297,
4663,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29880,
742,
525,
489,
5479,
742,
13,
462,
4706,
1371,
2433,
4986,
3970,
29901,
450,
317,
29941,
4423,
304,
671,
1495,
13,
13,
1678,
736,
13812,
13,
13,
1753,
1667,
7295,
13,
1678,
9995,
1576,
1667,
28877,
363,
1749,
2471,
1213,
15945,
13,
13,
1678,
13812,
353,
679,
29918,
5085,
580,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
1678,
565,
6389,
29889,
369,
15828,
29901,
13,
4706,
25401,
29889,
842,
10108,
29898,
21027,
29889,
11690,
29897,
13,
4706,
25401,
29889,
3888,
877,
6565,
15828,
29901,
373,
1495,
13,
1678,
1683,
29901,
13,
4706,
444,
960,
451,
26952,
29892,
2507,
1623,
289,
3747,
29941,
29889,
13,
4706,
289,
3747,
29941,
29889,
842,
29918,
5461,
29918,
21707,
29898,
978,
2433,
29890,
3747,
29941,
742,
3233,
29922,
21027,
29889,
29956,
25614,
29897,
13,
4706,
289,
3747,
29941,
29889,
842,
29918,
5461,
29918,
21707,
29898,
978,
2433,
7451,
542,
487,
742,
3233,
29922,
21027,
29889,
29956,
25614,
29897,
13,
4706,
12183,
29889,
657,
16363,
703,
24830,
2564,
842,
10108,
29898,
21027,
29889,
29956,
25614,
29897,
13,
13,
1678,
444,
22521,
545,
16140,
29889,
13,
1678,
565,
451,
6389,
29889,
11944,
9409,
29901,
13,
4706,
762,
29918,
29879,
1037,
11500,
877,
26180,
263,
16140,
2980,
1495,
13,
1678,
25401,
29889,
3888,
877,
12984,
671,
16140,
29901,
525,
718,
6389,
29889,
11944,
9409,
29897,
13,
1678,
444,
22521,
545,
3884,
29889,
13,
1678,
565,
451,
6389,
29889,
12322,
29901,
13,
4706,
762,
29918,
29879,
1037,
11500,
877,
26180,
263,
3884,
2980,
1495,
13,
1678,
6389,
29889,
12322,
353,
6389,
29889,
12322,
29889,
29878,
17010,
877,
458,
1495,
13,
1678,
25401,
29889,
3888,
877,
12984,
21994,
297,
29901,
525,
718,
6389,
29889,
12322,
29897,
13,
1678,
444,
22521,
545,
20968,
29889,
13,
1678,
565,
451,
6389,
29889,
21454,
29901,
13,
4706,
762,
29918,
29879,
1037,
11500,
877,
26180,
263,
20968,
2980,
1495,
13,
1678,
20968,
29892,
24765,
29892,
304,
407,
493,
353,
6389,
29889,
21454,
29889,
16707,
11219,
1495,
13,
1678,
565,
304,
407,
493,
2804,
525,
2396,
13,
4706,
25401,
29889,
3888,
877,
12984,
1925,
304,
20968,
29901,
525,
718,
20968,
718,
21921,
411,
2224,
29901,
525,
718,
304,
407,
493,
29897,
13,
1678,
1683,
29901,
13,
4706,
25401,
29889,
3888,
877,
12984,
1925,
304,
20968,
472,
2246,
3233,
29901,
525,
718,
20968,
29897,
13,
1678,
444,
22521,
545,
286,
17528,
668,
15562,
29889,
13,
1678,
565,
451,
6389,
29889,
29885,
17528,
7384,
29901,
13,
4706,
25401,
29889,
3888,
877,
12984,
671,
7463,
286,
17528,
668,
21274,
1495,
13,
1678,
1683,
29901,
13,
4706,
25401,
29889,
3888,
877,
4986,
3970,
29901,
2811,
679,
286,
17528,
668,
15562,
515,
29901,
525,
718,
6389,
29889,
19635,
29897,
13,
1678,
444,
22521,
545,
20968,
4423,
29889,
13,
1678,
565,
451,
6389,
29889,
5479,
29901,
13,
4706,
6389,
29889,
5479,
353,
525,
375,
29899,
23027,
29899,
29896,
29915,
13,
4706,
25401,
29889,
3888,
877,
12984,
671,
317,
29941,
20968,
4423,
2322,
29901,
525,
718,
6389,
29889,
5479,
29897,
13,
1678,
1683,
29901,
13,
4706,
25401,
29889,
3888,
877,
12984,
671,
317,
29941,
20968,
4423,
29901,
525,
718,
6389,
29889,
5479,
29897,
13,
13,
1678,
444,
7338,
1461,
317,
29941,
16140,
29889,
13,
1678,
907,
6289,
353,
6213,
13,
1678,
411,
1722,
29898,
5085,
29889,
11944,
9409,
29897,
408,
521,
392,
280,
29901,
13,
4706,
907,
6289,
353,
4390,
29889,
18132,
29898,
305,
392,
280,
29889,
949,
3101,
13,
1678,
396,
14480,
29889,
3888,
29898,
1037,
6289,
29897,
13,
13,
1678,
269,
29941,
353,
289,
3747,
29941,
29889,
10314,
877,
29879,
29941,
742,
5120,
29918,
978,
29922,
5085,
29889,
5479,
29892,
13,
462,
3986,
25879,
29918,
5943,
29918,
1989,
29918,
333,
29922,
1037,
6289,
1839,
5943,
2558,
1204,
7464,
13,
462,
3986,
25879,
29918,
19024,
29918,
5943,
29918,
1989,
29922,
1037,
6289,
1839,
19024,
6638,
2558,
11287,
13,
13,
1678,
396,
269,
29941,
353,
289,
3747,
29941,
29889,
10314,
703,
29879,
29941,
613,
907,
6289,
1839,
5943,
2558,
1204,
7464,
907,
6289,
1839,
19024,
6638,
2558,
11287,
13,
13,
1678,
396,
29879,
29941,
29889,
2061,
877,
1357,
21454,
742,
525,
12199,
29889,
3945,
2824,
649,
29898,
8434,
29922,
3150,
11219,
7050,
29914,
12199,
29889,
3945,
742,
525,
6050,
8785,
13,
13,
1678,
444,
12878,
5447,
29889,
13,
1678,
363,
16256,
29918,
3972,
29892,
4516,
29879,
29892,
2066,
297,
2897,
29889,
20919,
29898,
5085,
29889,
12322,
1125,
13,
13,
4706,
444,
1334,
508,
23624,
701,
565,
591,
526,
451,
297,
278,
3876,
29889,
13,
4706,
6198,
29918,
517,
29918,
2962,
353,
16256,
29918,
3972,
29889,
29878,
17010,
877,
458,
29861,
2435,
29898,
5085,
29889,
12322,
1125,
29962,
13,
4706,
6198,
29918,
517,
29918,
2962,
353,
6198,
29918,
517,
29918,
2962,
29889,
29880,
17010,
877,
458,
1495,
13,
4706,
25401,
29889,
3888,
877,
21962,
29918,
3972,
29901,
525,
718,
16256,
29918,
3972,
718,
525,
6702,
718,
6198,
29918,
517,
29918,
2962,
718,
25710,
1495,
13,
13,
4706,
444,
3940,
2066,
322,
17525,
29889,
13,
4706,
363,
285,
978,
297,
2066,
29901,
13,
13,
9651,
444,
3617,
1959,
286,
603,
1134,
29889,
13,
9651,
285,
1062,
353,
2897,
29889,
2084,
29889,
23579,
568,
486,
29898,
29888,
978,
9601,
29896,
1822,
29880,
17010,
12839,
1495,
13,
9651,
286,
603,
353,
341,
8890,
29903,
29889,
657,
877,
1495,
396,
1369,
411,
2322,
13,
9651,
565,
341,
8890,
29903,
29889,
657,
29898,
29888,
1062,
29892,
7700,
1125,
13,
18884,
286,
603,
353,
341,
8890,
29903,
29889,
657,
29898,
29888,
1062,
29897,
13,
13,
9651,
444,
11479,
714,
317,
29941,
2224,
29914,
1989,
322,
2186,
10422,
29892,
12515,
297,
13,
9651,
444,
3458,
393,
6198,
29918,
517,
29918,
4763,
508,
367,
4069,
565,
3876,
29889,
13,
9651,
269,
29941,
2084,
353,
285,
978,
13,
9651,
565,
6198,
29918,
517,
29918,
2962,
29901,
13,
18884,
269,
29941,
2084,
353,
6198,
29918,
517,
29918,
2962,
718,
8207,
29915,
718,
285,
978,
13,
9651,
10422,
353,
2897,
29889,
2084,
29889,
7122,
29898,
21962,
29918,
3972,
29892,
285,
978,
29897,
13,
13,
9651,
8282,
353,
6571,
13,
9651,
565,
6389,
29889,
4537,
29901,
13,
18884,
8282,
1839,
4282,
29899,
4537,
2033,
353,
6389,
29889,
4537,
13,
9651,
565,
6389,
29889,
13096,
5570,
29901,
13,
18884,
8282,
1839,
4282,
29899,
13096,
5570,
2033,
353,
6389,
29889,
13096,
5570,
13,
9651,
8282,
29918,
710,
353,
3142,
1982,
29889,
5510,
29889,
2271,
12508,
29898,
11338,
29897,
13,
13,
9651,
444,
9249,
1423,
29889,
13,
9651,
25401,
29889,
3888,
877,
1445,
29901,
525,
718,
10422,
29897,
13,
9651,
565,
304,
407,
493,
2804,
525,
2396,
13,
18884,
269,
29941,
2084,
353,
304,
407,
493,
718,
8207,
29915,
718,
269,
29941,
2084,
13,
9651,
25401,
29889,
3888,
877,
1599,
6024,
718,
20968,
718,
525,
29962,
525,
718,
269,
29941,
2084,
718,
320,
13,
462,
418,
525,
877,
718,
286,
603,
718,
13420,
525,
718,
8282,
29918,
710,
718,
25710,
1495,
13,
13,
9651,
444,
6204,
278,
716,
1203,
393,
591,
864,
29889,
13,
9651,
269,
29941,
21454,
353,
269,
29941,
29889,
29933,
2707,
300,
29898,
21454,
29897,
13,
9651,
6674,
442,
29918,
9009,
29898,
9507,
29892,
269,
29941,
21454,
29892,
269,
29941,
2084,
29892,
2793,
29918,
1853,
29922,
29885,
603,
29892,
15562,
29922,
11338,
29892,
8898,
543,
3597,
29899,
949,
1159,
13,
13,
9651,
396,
716,
5415,
353,
269,
29941,
29889,
2061,
29898,
5085,
29889,
21454,
29892,
269,
29941,
2084,
29897,
13,
9651,
396,
714,
1445,
353,
1722,
29898,
9507,
29892,
525,
6050,
1495,
13,
9651,
396,
716,
5415,
29889,
649,
29898,
8434,
29922,
449,
1445,
29892,
320,
13,
9651,
396,
18884,
10576,
1542,
29922,
29885,
603,
29892,
320,
13,
9651,
396,
18884,
4737,
7221,
29922,
11338,
29892,
13,
9651,
396,
18884,
319,
6154,
2433,
3597,
29899,
949,
1495,
396,
8176,
3460,
29922,
11338,
29918,
710,
29897,
13,
13,
9651,
396,
714,
29890,
397,
353,
1722,
29898,
359,
29889,
2084,
29889,
7122,
29898,
21962,
29918,
3972,
29892,
285,
978,
511,
525,
6050,
1495,
13,
9651,
396,
869,
649,
29898,
8434,
29922,
449,
29890,
397,
29892,
525,
6050,
1495,
13,
13,
4706,
396,
363,
270,
978,
297,
4516,
29879,
29901,
13,
4706,
396,
268,
396,
14480,
29889,
3888,
877,
3972,
29901,
525,
718,
2897,
29889,
2084,
29889,
7122,
29898,
21962,
29918,
3972,
29892,
270,
978,
876,
13,
4706,
396,
268,
1209,
13,
13,
1753,
6674,
442,
29918,
9009,
29898,
4993,
29918,
1445,
29918,
2084,
29892,
269,
29941,
29918,
21454,
29892,
269,
29941,
29918,
2084,
29892,
2793,
29918,
1853,
29922,
8516,
29892,
15562,
29922,
8516,
29892,
8898,
29922,
8516,
1125,
13,
13,
1678,
4839,
353,
6571,
13,
1678,
565,
2793,
29918,
1853,
29901,
13,
4706,
4839,
3366,
3916,
1542,
3108,
353,
2793,
29918,
1853,
13,
13,
1678,
565,
15562,
29901,
13,
4706,
4839,
3366,
18417,
3108,
353,
15562,
13,
13,
1678,
565,
8898,
29901,
13,
4706,
4839,
3366,
2477,
29931,
3108,
353,
8898,
13,
13,
1678,
269,
29941,
29918,
21454,
29889,
9009,
29918,
1445,
29898,
4993,
29918,
1445,
29918,
2084,
29892,
269,
29941,
29918,
2084,
29892,
7338,
336,
7883,
29922,
6672,
29897,
13,
13,
2277,
887,
4446,
372,
6421,
856,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
13,
2
] |
supervisr/dns/tests/test_provider_compat.py | BeryJu/supervisr | 1 | 170256 | """supervisr dns provider compat tests"""
from unittest.mock import patch
from supervisr.core.models import Domain, ProviderAcquirableRelationship
from supervisr.core.providers.objects import ProviderObjectTranslator
from supervisr.core.utils.constants import TEST_DOMAIN
from supervisr.core.utils.tests import TestCase
from supervisr.dns.models import DataRecord, SetRecord, Zone
from supervisr.dns.providers.compat import (CompatDNSProvider, CompatDNSRecord,
CompatDNSTranslator)
from supervisr.dns.utils import date_to_soa
class TestProviderCompat(TestCase):
"""Test DNS Provider Compatibility layer"""
def setUp(self):
super().setUp()
self.domain, _created = Domain.objects.get_or_create(
domain_name=TEST_DOMAIN,
provider_instance=self.provider)
self.zone = Zone.objects.create(
domain=self.domain,
soa_mname='ns1.s.beryju.org',
soa_rname='test.beryju.org.',
soa_serial=date_to_soa())
ProviderAcquirableRelationship.objects.create(
provider_instance=self.provider,
model=self.zone)
self.data_record_a = DataRecord.objects.create(
name='test-a',
type='A',
content='172.16.17.32')
self.data_record_b = DataRecord.objects.create(
name='test-b',
type='A',
content='192.168.127.12')
self.set_record = SetRecord.objects.create(
name='@')
self.set_record.records.add(self.data_record_b)
self.zone.records.add(self.data_record_a)
self.zone.records.add(self.set_record)
def test_compat_record(self):
"""Test CompatDNSRecord"""
translator = CompatDNSTranslator(None)
compat_records = translator.build_compat_records(self.data_record_a)
self.assertEqual(len(compat_records), 1)
self.assertEqual(compat_records[0].name, 'test-a.supervisrtest.beryju.org')
self.assertEqual(compat_records[0].domain, str(self.zone))
def test_provider(self):
"""Test CompatDNSProvider"""
provider = CompatDNSProvider(None)
self.assertEqual(provider.get_translator(DataRecord), CompatDNSTranslator)
self.assertEqual(provider.get_translator(CompatDNSRecord), None)
@patch('supervisr.dns.providers.compat.CompatDNSProvider.get_translator')
def test_translator(self, get_translator):
"""Test CompatDNSTranslator"""
class TestTranslator(ProviderObjectTranslator):
"""Test Provider Translator"""
def to_external(self, internal):
yield internal
self.set_record.records.add(self.data_record_a)
get_translator.return_value = TestTranslator
provider = CompatDNSProvider(None)
translator = CompatDNSTranslator(provider)
compat_records = list(translator.to_external(self.set_record))
compat_records = sorted(compat_records, key=lambda x: x.name)
# List is only 2 entires despite us creating 3 records
# since self.set_record's name is @ and append_names is set to false
self.assertEqual(len(compat_records), 2)
self.assertEqual(compat_records[0].name, self.data_record_a.name + '.' + TEST_DOMAIN)
self.assertEqual(compat_records[1].name, self.data_record_b.name + '.' + TEST_DOMAIN)
| [
1,
9995,
9136,
1730,
29878,
270,
1983,
13113,
10007,
6987,
15945,
29908,
13,
13,
3166,
443,
27958,
29889,
17640,
1053,
13261,
13,
13,
3166,
2428,
1730,
29878,
29889,
3221,
29889,
9794,
1053,
28460,
29892,
1019,
5489,
10644,
339,
27797,
9662,
800,
4034,
13,
3166,
2428,
1730,
29878,
29889,
3221,
29889,
771,
29454,
29889,
12650,
1053,
1019,
5489,
2061,
4300,
29880,
1061,
13,
3166,
2428,
1730,
29878,
29889,
3221,
29889,
13239,
29889,
3075,
1934,
1053,
17067,
1254,
29918,
3970,
29032,
13,
3166,
2428,
1730,
29878,
29889,
3221,
29889,
13239,
29889,
21150,
1053,
4321,
8259,
13,
3166,
2428,
1730,
29878,
29889,
29881,
1983,
29889,
9794,
1053,
3630,
9182,
29892,
3789,
9182,
29892,
24385,
13,
3166,
2428,
1730,
29878,
29889,
29881,
1983,
29889,
771,
29454,
29889,
12667,
1053,
313,
14644,
29928,
3059,
6980,
29892,
3831,
271,
29928,
3059,
9182,
29892,
13,
462,
462,
9651,
3831,
271,
28307,
1254,
29878,
550,
29880,
1061,
29897,
13,
3166,
2428,
1730,
29878,
29889,
29881,
1983,
29889,
13239,
1053,
2635,
29918,
517,
29918,
578,
29874,
13,
13,
13,
1990,
4321,
6980,
14644,
29898,
3057,
8259,
1125,
13,
1678,
9995,
3057,
16332,
1019,
5489,
3831,
271,
4127,
7546,
15945,
29908,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
2428,
2141,
842,
3373,
580,
13,
4706,
1583,
29889,
7247,
29892,
903,
11600,
353,
28460,
29889,
12650,
29889,
657,
29918,
272,
29918,
3258,
29898,
13,
9651,
5354,
29918,
978,
29922,
18267,
29918,
3970,
29032,
29892,
13,
9651,
13113,
29918,
8758,
29922,
1311,
29889,
18121,
29897,
13,
4706,
1583,
29889,
8028,
353,
24385,
29889,
12650,
29889,
3258,
29898,
13,
9651,
5354,
29922,
1311,
29889,
7247,
29892,
13,
9651,
577,
29874,
29918,
29885,
978,
2433,
1983,
29896,
29889,
29879,
29889,
495,
29891,
4900,
29889,
990,
742,
13,
9651,
577,
29874,
29918,
29878,
978,
2433,
1688,
29889,
495,
29891,
4900,
29889,
990,
29889,
742,
13,
9651,
577,
29874,
29918,
15550,
29922,
1256,
29918,
517,
29918,
578,
29874,
3101,
13,
4706,
1019,
5489,
10644,
339,
27797,
9662,
800,
4034,
29889,
12650,
29889,
3258,
29898,
13,
9651,
13113,
29918,
8758,
29922,
1311,
29889,
18121,
29892,
13,
9651,
1904,
29922,
1311,
29889,
8028,
29897,
13,
4706,
1583,
29889,
1272,
29918,
11651,
29918,
29874,
353,
3630,
9182,
29889,
12650,
29889,
3258,
29898,
13,
9651,
1024,
2433,
1688,
29899,
29874,
742,
13,
9651,
1134,
2433,
29909,
742,
13,
9651,
2793,
2433,
29896,
29955,
29906,
29889,
29896,
29953,
29889,
29896,
29955,
29889,
29941,
29906,
1495,
13,
4706,
1583,
29889,
1272,
29918,
11651,
29918,
29890,
353,
3630,
9182,
29889,
12650,
29889,
3258,
29898,
13,
9651,
1024,
2433,
1688,
29899,
29890,
742,
13,
9651,
1134,
2433,
29909,
742,
13,
9651,
2793,
2433,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29906,
29955,
29889,
29896,
29906,
1495,
13,
4706,
1583,
29889,
842,
29918,
11651,
353,
3789,
9182,
29889,
12650,
29889,
3258,
29898,
13,
9651,
1024,
2433,
29992,
1495,
13,
4706,
1583,
29889,
842,
29918,
11651,
29889,
3757,
4339,
29889,
1202,
29898,
1311,
29889,
1272,
29918,
11651,
29918,
29890,
29897,
13,
4706,
1583,
29889,
8028,
29889,
3757,
4339,
29889,
1202,
29898,
1311,
29889,
1272,
29918,
11651,
29918,
29874,
29897,
13,
4706,
1583,
29889,
8028,
29889,
3757,
4339,
29889,
1202,
29898,
1311,
29889,
842,
29918,
11651,
29897,
13,
13,
1678,
822,
1243,
29918,
12667,
29918,
11651,
29898,
1311,
1125,
13,
4706,
9995,
3057,
3831,
271,
29928,
3059,
9182,
15945,
29908,
13,
4706,
5578,
1061,
353,
3831,
271,
28307,
1254,
29878,
550,
29880,
1061,
29898,
8516,
29897,
13,
4706,
10007,
29918,
3757,
4339,
353,
5578,
1061,
29889,
4282,
29918,
12667,
29918,
3757,
4339,
29898,
1311,
29889,
1272,
29918,
11651,
29918,
29874,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
12667,
29918,
3757,
4339,
511,
29871,
29896,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
12667,
29918,
3757,
4339,
29961,
29900,
1822,
978,
29892,
525,
1688,
29899,
29874,
29889,
9136,
1730,
29878,
1688,
29889,
495,
29891,
4900,
29889,
990,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
12667,
29918,
3757,
4339,
29961,
29900,
1822,
7247,
29892,
851,
29898,
1311,
29889,
8028,
876,
13,
13,
1678,
822,
1243,
29918,
18121,
29898,
1311,
1125,
13,
4706,
9995,
3057,
3831,
271,
29928,
3059,
6980,
15945,
29908,
13,
4706,
13113,
353,
3831,
271,
29928,
3059,
6980,
29898,
8516,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
18121,
29889,
657,
29918,
3286,
29880,
1061,
29898,
1469,
9182,
511,
3831,
271,
28307,
1254,
29878,
550,
29880,
1061,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
18121,
29889,
657,
29918,
3286,
29880,
1061,
29898,
14644,
29928,
3059,
9182,
511,
6213,
29897,
13,
13,
1678,
732,
5041,
877,
9136,
1730,
29878,
29889,
29881,
1983,
29889,
771,
29454,
29889,
12667,
29889,
14644,
29928,
3059,
6980,
29889,
657,
29918,
3286,
29880,
1061,
1495,
13,
1678,
822,
1243,
29918,
3286,
29880,
1061,
29898,
1311,
29892,
679,
29918,
3286,
29880,
1061,
1125,
13,
4706,
9995,
3057,
3831,
271,
28307,
1254,
29878,
550,
29880,
1061,
15945,
29908,
13,
4706,
770,
4321,
4300,
29880,
1061,
29898,
6980,
2061,
4300,
29880,
1061,
1125,
13,
9651,
9995,
3057,
1019,
5489,
4103,
29880,
1061,
15945,
29908,
13,
13,
9651,
822,
304,
29918,
23176,
29898,
1311,
29892,
7463,
1125,
13,
18884,
7709,
7463,
13,
4706,
1583,
29889,
842,
29918,
11651,
29889,
3757,
4339,
29889,
1202,
29898,
1311,
29889,
1272,
29918,
11651,
29918,
29874,
29897,
13,
4706,
679,
29918,
3286,
29880,
1061,
29889,
2457,
29918,
1767,
353,
4321,
4300,
29880,
1061,
13,
4706,
13113,
353,
3831,
271,
29928,
3059,
6980,
29898,
8516,
29897,
13,
4706,
5578,
1061,
353,
3831,
271,
28307,
1254,
29878,
550,
29880,
1061,
29898,
18121,
29897,
13,
4706,
10007,
29918,
3757,
4339,
353,
1051,
29898,
3286,
29880,
1061,
29889,
517,
29918,
23176,
29898,
1311,
29889,
842,
29918,
11651,
876,
13,
4706,
10007,
29918,
3757,
4339,
353,
12705,
29898,
12667,
29918,
3757,
4339,
29892,
1820,
29922,
2892,
921,
29901,
921,
29889,
978,
29897,
13,
4706,
396,
2391,
338,
871,
29871,
29906,
875,
2658,
15020,
502,
4969,
29871,
29941,
6475,
13,
4706,
396,
1951,
1583,
29889,
842,
29918,
11651,
29915,
29879,
1024,
338,
732,
322,
9773,
29918,
7039,
338,
731,
304,
2089,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
12667,
29918,
3757,
4339,
511,
29871,
29906,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
12667,
29918,
3757,
4339,
29961,
29900,
1822,
978,
29892,
1583,
29889,
1272,
29918,
11651,
29918,
29874,
29889,
978,
718,
525,
6169,
718,
17067,
1254,
29918,
3970,
29032,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
12667,
29918,
3757,
4339,
29961,
29896,
1822,
978,
29892,
1583,
29889,
1272,
29918,
11651,
29918,
29890,
29889,
978,
718,
525,
6169,
718,
17067,
1254,
29918,
3970,
29032,
29897,
13,
2
] |
resolve_all_issues.py | cloudpassage-community/resolve_all_halo_issues | 0 | 181680 | <reponame>cloudpassage-community/resolve_all_halo_issues
#! /usr/local/bin/python
# Author: <NAME>
# Script for resolving all Halo issues. This script is intended to clear out
# data related to Halo testing and issues created from a PoC
# Updated 2017/03/08 by <NAME> to add count, user input and progress
import json, io, requests
import cloudpassage
import yaml
def create_api_session(session):
config_file_loc = "cloudpassage.yml"
config_info = cloudpassage.ApiKeyManager(config_file=config_file_loc)
session = cloudpassage.HaloSession(config_info.key_id, config_info.secret_key)
return session
def resolve_issues(session):
get_number_of_issues= cloudpassage.HttpHelper(session)
number_of_issues = get_number_of_issues.get("/v2/issues")
number_of_pages = int(number_of_issues['count'])
number_of_pages = int(number_of_pages * .01)
issues= cloudpassage.HttpHelper(session)
list_of_issues_json = issues.get_paginated("/v2/issues", 'issues', number_of_pages)
body = {"status": "resolved",}
#print list_of_issues_json
#loop list of issues and resolve them
print "\n"
print "##### There are %d issues to resolve #####" % len(list_of_issues_json)
print "##### Hit <Enter> to proceed #####"
proceed = raw_input("")
print "\n"
for issue in list_of_issues_json:
print issue
print "-"*20
issueID = issue['id']
issue_to_resolve = cloudpassage.HttpHelper(session)
list_of_issues_json = issue_to_resolve.get("/v2/issues")
reply = issue_to_resolve.put("/v2/issues/" + issueID, body)
def main():
api_session = None
api_session = create_api_session(api_session)
resolve_issues(api_session)
if __name__ == "__main__":
main()
| [
1,
529,
276,
1112,
420,
29958,
9274,
3364,
482,
29899,
23834,
29914,
17863,
29918,
497,
29918,
4077,
29877,
29918,
12175,
13,
29937,
29991,
847,
4855,
29914,
2997,
29914,
2109,
29914,
4691,
13,
13,
29937,
13361,
29901,
529,
5813,
29958,
13,
29937,
14415,
363,
3770,
1747,
599,
379,
7003,
5626,
29889,
910,
2471,
338,
9146,
304,
2821,
714,
13,
29937,
848,
4475,
304,
379,
7003,
6724,
322,
5626,
2825,
515,
263,
3929,
29907,
13,
29937,
25723,
29871,
29906,
29900,
29896,
29955,
29914,
29900,
29941,
29914,
29900,
29947,
491,
529,
5813,
29958,
304,
788,
2302,
29892,
1404,
1881,
322,
6728,
13,
13,
13,
5215,
4390,
29892,
12013,
29892,
7274,
13,
5215,
9570,
3364,
482,
13,
5215,
343,
8807,
13,
13,
13,
1753,
1653,
29918,
2754,
29918,
7924,
29898,
7924,
1125,
13,
1678,
2295,
29918,
1445,
29918,
2029,
353,
376,
9274,
3364,
482,
29889,
21053,
29908,
13,
1678,
2295,
29918,
3888,
353,
9570,
3364,
482,
29889,
11713,
2558,
3260,
29898,
2917,
29918,
1445,
29922,
2917,
29918,
1445,
29918,
2029,
29897,
13,
1678,
4867,
353,
9570,
3364,
482,
29889,
29950,
7003,
7317,
29898,
2917,
29918,
3888,
29889,
1989,
29918,
333,
29892,
2295,
29918,
3888,
29889,
19024,
29918,
1989,
29897,
13,
1678,
736,
4867,
13,
13,
13,
1753,
8814,
29918,
12175,
29898,
7924,
1125,
13,
1678,
679,
29918,
4537,
29918,
974,
29918,
12175,
29922,
9570,
3364,
482,
29889,
5506,
10739,
29898,
7924,
29897,
13,
1678,
1353,
29918,
974,
29918,
12175,
353,
679,
29918,
4537,
29918,
974,
29918,
12175,
29889,
657,
11974,
29894,
29906,
29914,
12175,
1159,
13,
1678,
1353,
29918,
974,
29918,
12292,
353,
938,
29898,
4537,
29918,
974,
29918,
12175,
1839,
2798,
11287,
13,
1678,
1353,
29918,
974,
29918,
12292,
353,
938,
29898,
4537,
29918,
974,
29918,
12292,
334,
869,
29900,
29896,
29897,
13,
1678,
5626,
29922,
9570,
3364,
482,
29889,
5506,
10739,
29898,
7924,
29897,
13,
1678,
1051,
29918,
974,
29918,
12175,
29918,
3126,
353,
5626,
29889,
657,
29918,
13573,
262,
630,
11974,
29894,
29906,
29914,
12175,
613,
525,
12175,
742,
1353,
29918,
974,
29918,
12292,
29897,
13,
1678,
3573,
353,
8853,
4882,
1115,
376,
9778,
1490,
613,
29913,
13,
1678,
396,
2158,
1051,
29918,
974,
29918,
12175,
29918,
3126,
13,
1678,
396,
7888,
1051,
310,
5626,
322,
8814,
963,
13,
1678,
1596,
6634,
29876,
29908,
13,
1678,
1596,
376,
4136,
29937,
1670,
526,
1273,
29881,
5626,
304,
8814,
16101,
29908,
1273,
7431,
29898,
1761,
29918,
974,
29918,
12175,
29918,
3126,
29897,
13,
1678,
1596,
376,
4136,
29937,
14309,
529,
10399,
29958,
304,
8469,
16101,
29908,
13,
1678,
8469,
353,
10650,
29918,
2080,
703,
1159,
13,
1678,
1596,
6634,
29876,
29908,
13,
1678,
363,
2228,
297,
1051,
29918,
974,
29918,
12175,
29918,
3126,
29901,
13,
4706,
1596,
2228,
13,
4706,
1596,
11663,
29908,
29930,
29906,
29900,
13,
4706,
2228,
1367,
353,
2228,
1839,
333,
2033,
13,
4706,
2228,
29918,
517,
29918,
17863,
353,
9570,
3364,
482,
29889,
5506,
10739,
29898,
7924,
29897,
13,
4706,
1051,
29918,
974,
29918,
12175,
29918,
3126,
353,
2228,
29918,
517,
29918,
17863,
29889,
657,
11974,
29894,
29906,
29914,
12175,
1159,
13,
4706,
8908,
353,
2228,
29918,
517,
29918,
17863,
29889,
649,
11974,
29894,
29906,
29914,
12175,
12975,
718,
2228,
1367,
29892,
3573,
29897,
13,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
7882,
29918,
7924,
353,
6213,
13,
1678,
7882,
29918,
7924,
353,
1653,
29918,
2754,
29918,
7924,
29898,
2754,
29918,
7924,
29897,
13,
1678,
8814,
29918,
12175,
29898,
2754,
29918,
7924,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
4706,
1667,
580,
13,
2
] |
dialpad/client.py | dialpad/dialpad-python-sdk | 5 | 40757 | <filename>dialpad/client.py
import requests
from cached_property import cached_property
from .resources import (
SMSResource,
RoomResource,
UserResource,
CallResource,
NumberResource,
OfficeResource,
WebhookResource,
CompanyResource,
ContactResource,
CallbackResource,
CallCenterResource,
CallRouterResource,
DepartmentResource,
TranscriptResource,
UserDeviceResource,
StatsExportResource,
SubscriptionResource,
BlockedNumberResource,
EventSubscriptionResource
)
hosts = dict(
live='https://dialpad.com',
sandbox='https://sandbox.dialpad.com'
)
class DialpadClient(object):
def __init__(self, token, sandbox=False, base_url=None):
self._token = token
self._session = requests.Session()
self._base_url = base_url or hosts.get('sandbox' if sandbox else 'live')
def _url(self, *path):
path = ['%s' % p for p in path]
return '/'.join([self._base_url, 'api', 'v2'] + path)
def _cursor_iterator(self, response_json, path, method, data, headers):
for i in response_json['items']:
yield i
data = dict(data or {})
while 'cursor' in response_json:
data['cursor'] = response_json['cursor']
response = self._raw_request(path, method, data, headers)
response.raise_for_status()
response_json = response.json()
for i in response_json['items']:
yield i
def _raw_request(self, path, method='GET', data=None, headers=None):
url = self._url(*path)
headers = headers or dict()
headers.update({'Authorization': 'Bearer %s' % self._token})
if str(method).upper() in ['GET', 'POST', 'PUT', 'PATCH', 'DELETE']:
return getattr(self._session, str(method).lower())(
url,
headers=headers,
json=data if method != 'GET' else None,
params=data if method == 'GET' else None,
)
raise ValueError('Unsupported method "%s"' % method)
def request(self, path, method='GET', data=None, headers=None):
response = self._raw_request(path, method, data, headers)
response.raise_for_status()
if response.status_code == 204: # No Content
return None
response_json = response.json()
response_keys = set(k for k in response_json)
# If the response contains the 'items' key, (and maybe 'cursor'), then this is a cursorized
# list response.
if 'items' in response_keys and not response_keys - {'cursor', 'items'}:
return self._cursor_iterator(
response_json, path=path, method=method, data=data, headers=headers)
return response_json
@cached_property
def blocked_number(self):
return BlockedNumberResource(self)
@cached_property
def call(self):
return CallResource(self)
@cached_property
def call_router(self):
return CallRouterResource(self)
@cached_property
def callback(self):
return CallbackResource(self)
@cached_property
def callcenter(self):
return CallCenterResource(self)
@cached_property
def company(self):
return CompanyResource(self)
@cached_property
def contact(self):
return ContactResource(self)
@cached_property
def department(self):
return DepartmentResource(self)
@cached_property
def event_subscription(self):
return EventSubscriptionResource(self)
@cached_property
def number(self):
return NumberResource(self)
@cached_property
def office(self):
return OfficeResource(self)
@cached_property
def room(self):
return RoomResource(self)
@cached_property
def sms(self):
return SMSResource(self)
@cached_property
def stats(self):
return StatsExportResource(self)
@cached_property
def subscription(self):
return SubscriptionResource(self)
@cached_property
def transcript(self):
return TranscriptResource(self)
@cached_property
def user(self):
return UserResource(self)
@cached_property
def userdevice(self):
return UserDeviceResource(self)
@cached_property
def webhook(self):
return WebhookResource(self)
| [
1,
529,
9507,
29958,
29881,
616,
8305,
29914,
4645,
29889,
2272,
13,
13,
5215,
7274,
13,
13,
3166,
22152,
29918,
6799,
1053,
22152,
29918,
6799,
13,
13,
3166,
869,
13237,
1053,
313,
13,
29871,
317,
4345,
6848,
29892,
13,
29871,
25114,
6848,
29892,
13,
29871,
4911,
6848,
29892,
13,
29871,
8251,
6848,
29892,
13,
29871,
9681,
6848,
29892,
13,
29871,
11367,
6848,
29892,
13,
29871,
2563,
20849,
6848,
29892,
13,
29871,
6938,
6848,
29892,
13,
29871,
22387,
6848,
29892,
13,
29871,
8251,
1627,
6848,
29892,
13,
29871,
8251,
13409,
6848,
29892,
13,
29871,
8251,
23971,
6848,
29892,
13,
29871,
10317,
6848,
29892,
13,
29871,
4103,
924,
6848,
29892,
13,
29871,
4911,
11501,
6848,
29892,
13,
29871,
624,
1446,
26382,
6848,
29892,
13,
29871,
3323,
22371,
6848,
29892,
13,
29871,
15658,
287,
4557,
6848,
29892,
13,
29871,
6864,
4035,
22371,
6848,
13,
29897,
13,
13,
13,
23525,
353,
9657,
29898,
13,
29871,
5735,
2433,
991,
597,
29881,
616,
8305,
29889,
510,
742,
13,
29871,
11982,
1884,
2433,
991,
597,
29879,
26738,
29889,
29881,
616,
8305,
29889,
510,
29915,
13,
29897,
13,
13,
13,
1990,
360,
616,
8305,
4032,
29898,
3318,
1125,
13,
29871,
822,
4770,
2344,
12035,
1311,
29892,
5993,
29892,
11982,
1884,
29922,
8824,
29892,
2967,
29918,
2271,
29922,
8516,
1125,
13,
1678,
1583,
3032,
6979,
353,
5993,
13,
1678,
1583,
3032,
7924,
353,
7274,
29889,
7317,
580,
13,
1678,
1583,
3032,
3188,
29918,
2271,
353,
2967,
29918,
2271,
470,
18982,
29889,
657,
877,
29879,
26738,
29915,
565,
11982,
1884,
1683,
525,
9258,
1495,
13,
13,
29871,
822,
903,
2271,
29898,
1311,
29892,
334,
2084,
1125,
13,
1678,
2224,
353,
6024,
29995,
29879,
29915,
1273,
282,
363,
282,
297,
2224,
29962,
13,
1678,
736,
8207,
4286,
7122,
4197,
1311,
3032,
3188,
29918,
2271,
29892,
525,
2754,
742,
525,
29894,
29906,
2033,
718,
2224,
29897,
13,
13,
29871,
822,
903,
18127,
29918,
17609,
29898,
1311,
29892,
2933,
29918,
3126,
29892,
2224,
29892,
1158,
29892,
848,
29892,
9066,
1125,
13,
1678,
363,
474,
297,
2933,
29918,
3126,
1839,
7076,
2033,
29901,
13,
418,
7709,
474,
13,
13,
1678,
848,
353,
9657,
29898,
1272,
470,
426,
1800,
13,
13,
1678,
1550,
525,
18127,
29915,
297,
2933,
29918,
3126,
29901,
13,
418,
848,
1839,
18127,
2033,
353,
2933,
29918,
3126,
1839,
18127,
2033,
13,
418,
2933,
353,
1583,
3032,
1610,
29918,
3827,
29898,
2084,
29892,
1158,
29892,
848,
29892,
9066,
29897,
13,
418,
2933,
29889,
22692,
29918,
1454,
29918,
4882,
580,
13,
418,
2933,
29918,
3126,
353,
2933,
29889,
3126,
580,
13,
418,
363,
474,
297,
2933,
29918,
3126,
1839,
7076,
2033,
29901,
13,
4706,
7709,
474,
13,
13,
29871,
822,
903,
1610,
29918,
3827,
29898,
1311,
29892,
2224,
29892,
1158,
2433,
7194,
742,
848,
29922,
8516,
29892,
9066,
29922,
8516,
1125,
13,
1678,
3142,
353,
1583,
3032,
2271,
10456,
2084,
29897,
13,
1678,
9066,
353,
9066,
470,
9657,
580,
13,
1678,
9066,
29889,
5504,
3319,
29915,
25471,
2396,
525,
29933,
799,
261,
1273,
29879,
29915,
1273,
1583,
3032,
6979,
1800,
13,
1678,
565,
851,
29898,
5696,
467,
21064,
580,
297,
6024,
7194,
742,
525,
5438,
742,
525,
12336,
742,
525,
29925,
14789,
742,
525,
2287,
18476,
2033,
29901,
13,
418,
736,
679,
5552,
29898,
1311,
3032,
7924,
29892,
851,
29898,
5696,
467,
13609,
3101,
29898,
13,
4706,
3142,
29892,
13,
4706,
9066,
29922,
13662,
29892,
13,
4706,
4390,
29922,
1272,
565,
1158,
2804,
525,
7194,
29915,
1683,
6213,
29892,
13,
4706,
8636,
29922,
1272,
565,
1158,
1275,
525,
7194,
29915,
1683,
6213,
29892,
13,
418,
1723,
13,
1678,
12020,
7865,
2392,
877,
25807,
29884,
3016,
287,
1158,
11860,
29879,
29908,
29915,
1273,
1158,
29897,
13,
13,
29871,
822,
2009,
29898,
1311,
29892,
2224,
29892,
1158,
2433,
7194,
742,
848,
29922,
8516,
29892,
9066,
29922,
8516,
1125,
13,
1678,
2933,
353,
1583,
3032,
1610,
29918,
3827,
29898,
2084,
29892,
1158,
29892,
848,
29892,
9066,
29897,
13,
1678,
2933,
29889,
22692,
29918,
1454,
29918,
4882,
580,
13,
13,
1678,
565,
2933,
29889,
4882,
29918,
401,
1275,
29871,
29906,
29900,
29946,
29901,
29871,
396,
1939,
10576,
13,
418,
736,
6213,
13,
13,
1678,
2933,
29918,
3126,
353,
2933,
29889,
3126,
580,
13,
1678,
2933,
29918,
8149,
353,
731,
29898,
29895,
363,
413,
297,
2933,
29918,
3126,
29897,
13,
1678,
396,
960,
278,
2933,
3743,
278,
525,
7076,
29915,
1820,
29892,
313,
392,
5505,
525,
18127,
5477,
769,
445,
338,
263,
10677,
1891,
13,
1678,
396,
1051,
2933,
29889,
13,
1678,
565,
525,
7076,
29915,
297,
2933,
29918,
8149,
322,
451,
2933,
29918,
8149,
448,
11117,
18127,
742,
525,
7076,
29915,
6177,
13,
418,
736,
1583,
3032,
18127,
29918,
17609,
29898,
13,
4706,
2933,
29918,
3126,
29892,
2224,
29922,
2084,
29892,
1158,
29922,
5696,
29892,
848,
29922,
1272,
29892,
9066,
29922,
13662,
29897,
13,
1678,
736,
2933,
29918,
3126,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
24370,
29918,
4537,
29898,
1311,
1125,
13,
1678,
736,
15658,
287,
4557,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
1246,
29898,
1311,
1125,
13,
1678,
736,
8251,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
1246,
29918,
15140,
29898,
1311,
1125,
13,
1678,
736,
8251,
23971,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
6939,
29898,
1311,
1125,
13,
1678,
736,
8251,
1627,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
1246,
5064,
29898,
1311,
1125,
13,
1678,
736,
8251,
13409,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
5001,
29898,
1311,
1125,
13,
1678,
736,
6938,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
6958,
29898,
1311,
1125,
13,
1678,
736,
22387,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
14311,
29898,
1311,
1125,
13,
1678,
736,
10317,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
1741,
29918,
1491,
22371,
29898,
1311,
1125,
13,
1678,
736,
6864,
4035,
22371,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
1353,
29898,
1311,
1125,
13,
1678,
736,
9681,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
8034,
29898,
1311,
1125,
13,
1678,
736,
11367,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
5716,
29898,
1311,
1125,
13,
1678,
736,
25114,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
269,
1516,
29898,
1311,
1125,
13,
1678,
736,
317,
4345,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
22663,
29898,
1311,
1125,
13,
1678,
736,
624,
1446,
26382,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
25691,
29898,
1311,
1125,
13,
1678,
736,
3323,
22371,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
1301,
924,
29898,
1311,
1125,
13,
1678,
736,
4103,
924,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
1404,
29898,
1311,
1125,
13,
1678,
736,
4911,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
1404,
10141,
29898,
1311,
1125,
13,
1678,
736,
4911,
11501,
6848,
29898,
1311,
29897,
13,
13,
29871,
732,
29883,
3791,
29918,
6799,
13,
29871,
822,
1856,
20849,
29898,
1311,
1125,
13,
1678,
736,
2563,
20849,
6848,
29898,
1311,
29897,
13,
2
] |
src/visions/declarative.py | bhumikapahariapuresoftware/visions | 142 | 164471 | from typing import Any, Callable, List, Optional, Sequence, Type, TypeVar, Union
from visions.relations import IdentityRelation, InferenceRelation
from visions.types.type import VisionsBaseType
T = TypeVar("T")
def process_relation(items: Union[dict, Type[VisionsBaseType]]) -> IdentityRelation:
if isinstance(items, dict):
return IdentityRelation(**items)
elif issubclass(items, VisionsBaseType):
return IdentityRelation(related_type=items)
else:
raise TypeError("identity should be a list, a dict of params or related_type.")
def create_type(
name: str,
contains: Callable[[Any, dict], bool],
identity: Optional[
Union[Type[VisionsBaseType], List[Union[dict, Type[VisionsBaseType]]], dict]
] = None,
inference: Optional[Union[List[dict], dict]] = None,
):
def get_relations():
if isinstance(identity, Sequence):
relations = [process_relation(item) for item in identity]
else:
relations = [] if identity is None else [process_relation(identity)]
if inference is not None:
if isinstance(inference, dict):
relations += [InferenceRelation(**inference)]
elif isinstance(inference, list):
relations += [InferenceRelation(**params) for params in inference]
else:
raise TypeError("inference should be a list or a dict of params.")
return relations
def contains_op(series, state):
return contains(series, state)
return type(
name,
(VisionsBaseType,),
{
"get_relations": staticmethod(get_relations),
"contains_op": staticmethod(contains_op),
},
)
| [
1,
515,
19229,
1053,
3139,
29892,
8251,
519,
29892,
2391,
29892,
28379,
29892,
922,
3910,
29892,
5167,
29892,
5167,
9037,
29892,
7761,
13,
13,
3166,
1998,
1080,
29889,
2674,
800,
1053,
27486,
9662,
362,
29892,
512,
1659,
9662,
362,
13,
3166,
1998,
1080,
29889,
8768,
29889,
1853,
1053,
5741,
1080,
5160,
1542,
13,
13,
29911,
353,
5167,
9037,
703,
29911,
1159,
13,
13,
13,
1753,
1889,
29918,
23445,
29898,
7076,
29901,
7761,
29961,
8977,
29892,
5167,
29961,
6116,
1080,
5160,
1542,
24960,
1599,
27486,
9662,
362,
29901,
13,
1678,
565,
338,
8758,
29898,
7076,
29892,
9657,
1125,
13,
4706,
736,
27486,
9662,
362,
29898,
1068,
7076,
29897,
13,
1678,
25342,
338,
1491,
1990,
29898,
7076,
29892,
5741,
1080,
5160,
1542,
1125,
13,
4706,
736,
27486,
9662,
362,
29898,
12817,
29918,
1853,
29922,
7076,
29897,
13,
1678,
1683,
29901,
13,
4706,
12020,
20948,
703,
22350,
881,
367,
263,
1051,
29892,
263,
9657,
310,
8636,
470,
4475,
29918,
1853,
23157,
13,
13,
13,
1753,
1653,
29918,
1853,
29898,
13,
1678,
1024,
29901,
851,
29892,
13,
1678,
3743,
29901,
8251,
519,
8999,
10773,
29892,
9657,
1402,
6120,
1402,
13,
1678,
10110,
29901,
28379,
29961,
13,
4706,
7761,
29961,
1542,
29961,
6116,
1080,
5160,
1542,
1402,
2391,
29961,
19986,
29961,
8977,
29892,
5167,
29961,
6116,
1080,
5160,
1542,
5262,
1402,
9657,
29962,
13,
1678,
4514,
353,
6213,
29892,
13,
1678,
27262,
29901,
28379,
29961,
19986,
29961,
1293,
29961,
8977,
1402,
9657,
5262,
353,
6213,
29892,
13,
1125,
13,
1678,
822,
679,
29918,
2674,
800,
7295,
13,
4706,
565,
338,
8758,
29898,
22350,
29892,
922,
3910,
1125,
13,
9651,
5302,
353,
518,
5014,
29918,
23445,
29898,
667,
29897,
363,
2944,
297,
10110,
29962,
13,
4706,
1683,
29901,
13,
9651,
5302,
353,
5159,
565,
10110,
338,
6213,
1683,
518,
5014,
29918,
23445,
29898,
22350,
4638,
13,
13,
4706,
565,
27262,
338,
451,
6213,
29901,
13,
9651,
565,
338,
8758,
29898,
262,
1659,
29892,
9657,
1125,
13,
18884,
5302,
4619,
518,
797,
1659,
9662,
362,
29898,
1068,
262,
1659,
4638,
13,
9651,
25342,
338,
8758,
29898,
262,
1659,
29892,
1051,
1125,
13,
18884,
5302,
4619,
518,
797,
1659,
9662,
362,
29898,
1068,
7529,
29897,
363,
8636,
297,
27262,
29962,
13,
9651,
1683,
29901,
13,
18884,
12020,
20948,
703,
262,
1659,
881,
367,
263,
1051,
470,
263,
9657,
310,
8636,
23157,
13,
13,
4706,
736,
5302,
13,
13,
1678,
822,
3743,
29918,
459,
29898,
13757,
29892,
2106,
1125,
13,
4706,
736,
3743,
29898,
13757,
29892,
2106,
29897,
13,
13,
1678,
736,
1134,
29898,
13,
4706,
1024,
29892,
13,
4706,
313,
6116,
1080,
5160,
1542,
29892,
511,
13,
4706,
426,
13,
9651,
376,
657,
29918,
2674,
800,
1115,
2294,
5696,
29898,
657,
29918,
2674,
800,
511,
13,
9651,
376,
11516,
29918,
459,
1115,
2294,
5696,
29898,
11516,
29918,
459,
511,
13,
4706,
2981,
13,
1678,
1723,
13,
2
] |
_scripts/_build.py | dfreeman06/wxyz | 1 | 3195 | import subprocess
import sys
from . import ROOT, PY_SRC, _run, PY, DIST
CONDA_ORDER = [
"core",
"html",
"lab",
"datagrid",
"svg",
"tpl-jjinja"
"yaml"
]
CONDA_BUILD_ARGS = [
"conda-build", "-c", "conda-forge", "--output-folder", DIST / "conda-bld",
]
if __name__ == "__main__":
for pkg in PY_SRC.glob("wxyz_*"):
_run([PY, "setup.py", "sdist", "--dist-dir", DIST / "sdist"], cwd=str(pkg))
try:
_run([*CONDA_BUILD_ARGS, "--skip-existing", "."], cwd=ROOT / "recipes")
except:
for pkg in CONDA_ORDER:
_run([*CONDA_BUILD_ARGS, f"wxyz-{pkg}"], cwd=ROOT / "recipes")
| [
1,
1053,
1014,
5014,
13,
5215,
10876,
13,
13,
3166,
869,
1053,
16641,
2891,
29892,
349,
29979,
29918,
29903,
10363,
29892,
903,
3389,
29892,
349,
29979,
29892,
360,
9047,
13,
13,
13,
6007,
7698,
29918,
22364,
353,
518,
13,
1678,
376,
3221,
613,
13,
1678,
376,
1420,
613,
13,
1678,
376,
8205,
613,
13,
1678,
376,
4130,
351,
2429,
613,
13,
1678,
376,
15120,
613,
13,
1678,
376,
29873,
572,
29899,
29926,
28789,
1764,
29908,
13,
1678,
376,
25162,
29908,
13,
29962,
13,
13,
6007,
7698,
29918,
29933,
25282,
29918,
1718,
10749,
353,
518,
13,
1678,
376,
18050,
29899,
4282,
613,
11663,
29883,
613,
376,
18050,
29899,
20324,
613,
376,
489,
4905,
29899,
12083,
613,
360,
9047,
847,
376,
18050,
29899,
29890,
430,
613,
13,
29962,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
363,
282,
9415,
297,
349,
29979,
29918,
29903,
10363,
29889,
23705,
703,
29893,
20230,
29918,
20605,
1125,
13,
4706,
903,
3389,
4197,
20055,
29892,
376,
14669,
29889,
2272,
613,
376,
4928,
391,
613,
376,
489,
5721,
29899,
3972,
613,
360,
9047,
847,
376,
4928,
391,
12436,
274,
9970,
29922,
710,
29898,
15865,
876,
13,
13,
1678,
1018,
29901,
13,
4706,
903,
3389,
4197,
29930,
6007,
7698,
29918,
29933,
25282,
29918,
1718,
10749,
29892,
376,
489,
11014,
29899,
735,
15423,
613,
376,
1213,
1402,
274,
9970,
29922,
21289,
847,
376,
4361,
5547,
1159,
13,
1678,
5174,
29901,
13,
4706,
363,
282,
9415,
297,
8707,
7698,
29918,
22364,
29901,
13,
9651,
903,
3389,
4197,
29930,
6007,
7698,
29918,
29933,
25282,
29918,
1718,
10749,
29892,
285,
29908,
29893,
20230,
29899,
29912,
15865,
5038,
1402,
274,
9970,
29922,
21289,
847,
376,
4361,
5547,
1159,
13,
2
] |
anonymizer/__init__.py | jjhuang/django-anonymizer | 13 | 151173 | <filename>anonymizer/__init__.py
# flake8: noqa
from anonymizer.base import Anonymizer
| [
1,
529,
9507,
29958,
273,
4735,
3950,
29914,
1649,
2344,
26914,
2272,
13,
29937,
17422,
446,
29947,
29901,
694,
25621,
13,
3166,
385,
4735,
3950,
29889,
3188,
1053,
530,
4735,
3950,
13,
2
] |
project/sema2/managers.py | eorygen/sema2_web | 0 | 61005 | from django.db import models
class AnswerSetUniqueManager(models.Manager):
def get_queryset(self):
return super(AnswerSetUniqueManager, self).get_queryset().filter(is_duplicate=False) | [
1,
515,
9557,
29889,
2585,
1053,
4733,
13,
13,
1990,
673,
2697,
8110,
802,
3260,
29898,
9794,
29889,
3260,
1125,
13,
13,
1678,
822,
679,
29918,
1972,
842,
29898,
1311,
1125,
13,
4706,
736,
2428,
29898,
22550,
2697,
8110,
802,
3260,
29892,
1583,
467,
657,
29918,
1972,
842,
2141,
4572,
29898,
275,
29918,
20908,
5926,
29922,
8824,
29897,
2
] |
RequestInfo.py | AndreyRub/LoveLetter | 0 | 85636 | class RequestInfo:
def __init__(self,
human_string, # human-readable string (will be printed for Human object)
action_requested, # action requested ('card' + index of card / 'opponent' / 'guess')
current_hand = [], # player's current hand
discard_pile = [], # discard pile
move_history = [], # list of player moves
players_active_status = [], # players' active status (active / lost)
players_protection_status = [], # players' protection status (protected / not protected)
invalid_moves = [], # invalid moves (optional) - an assist from Game
valid_moves = [], # valid moves (optional) - an assist from Game
players_active = [], # list of currently active players
players_protected = []): # Protection status of all players (including inactive ones)
self.human_string = human_string
self.action_requested = action_requested
self.current_hand = current_hand
self.discard_pile = discard_pile
self.move_history = move_history
self.players_active_status = players_active_status
self.players_protection_status = players_protection_status
self.invalid_moves = invalid_moves
self.valid_moves = valid_moves
self.players_active = players_active
self.players_protected = players_protected
def get_request_info(self):
return ({'human_string' : self.human_string,
'action_requested' : self.action_requested,
'current_hand' : self.current_hand,
'discard_pile' : self.discard_pile,
'move_history' : self.move_history,
'players_active_status' : self.players_active_status,
'players_protection_status' : self.players_protection_status,
'invalid_moves' : self.invalid_moves,
'valid_moves' : self.valid_moves,
'players_active' : self.players_active,
'players_protected' : self.players_protected})
| [
1,
770,
10729,
3401,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
13,
462,
5199,
29918,
1807,
29892,
462,
418,
396,
5199,
29899,
949,
519,
1347,
313,
14043,
367,
13350,
363,
12968,
1203,
29897,
13,
462,
3158,
29918,
3827,
287,
29892,
462,
29871,
396,
3158,
13877,
6702,
7543,
29915,
718,
2380,
310,
5881,
847,
525,
9354,
265,
296,
29915,
847,
525,
2543,
404,
1495,
13,
462,
1857,
29918,
3179,
353,
19997,
462,
396,
4847,
29915,
29879,
1857,
1361,
13,
462,
2313,
538,
29918,
29886,
488,
353,
19997,
462,
396,
2313,
538,
282,
488,
13,
462,
4337,
29918,
18434,
353,
19997,
462,
396,
1051,
310,
4847,
16229,
13,
462,
10769,
29918,
4925,
29918,
4882,
353,
19997,
4706,
396,
10769,
29915,
6136,
4660,
313,
4925,
847,
5714,
29897,
13,
462,
10769,
29918,
14676,
428,
29918,
4882,
353,
19997,
1678,
396,
10769,
29915,
13047,
4660,
313,
24681,
847,
451,
6364,
29897,
13,
462,
8340,
29918,
13529,
267,
353,
19997,
18884,
396,
8340,
16229,
313,
25253,
29897,
448,
385,
6985,
515,
8448,
13,
462,
2854,
29918,
13529,
267,
353,
19997,
462,
29871,
396,
2854,
16229,
313,
25253,
29897,
448,
385,
6985,
515,
8448,
13,
462,
10769,
29918,
4925,
353,
19997,
1669,
396,
1051,
310,
5279,
6136,
10769,
13,
462,
10769,
29918,
24681,
353,
5159,
1125,
965,
396,
14409,
428,
4660,
310,
599,
10769,
313,
18271,
297,
4925,
6743,
29897,
13,
13,
4706,
1583,
29889,
26029,
29918,
1807,
1669,
353,
5199,
29918,
1807,
13,
4706,
1583,
29889,
2467,
29918,
3827,
287,
965,
353,
3158,
29918,
3827,
287,
13,
4706,
1583,
29889,
3784,
29918,
3179,
1669,
353,
1857,
29918,
3179,
13,
4706,
1583,
29889,
2218,
7543,
29918,
29886,
488,
1669,
353,
2313,
538,
29918,
29886,
488,
13,
4706,
1583,
29889,
11631,
29918,
18434,
1669,
353,
4337,
29918,
18434,
13,
4706,
1583,
29889,
1456,
414,
29918,
4925,
29918,
4882,
418,
353,
10769,
29918,
4925,
29918,
4882,
13,
4706,
1583,
29889,
1456,
414,
29918,
14676,
428,
29918,
4882,
29871,
353,
10769,
29918,
14676,
428,
29918,
4882,
13,
4706,
1583,
29889,
20965,
29918,
13529,
267,
795,
353,
8340,
29918,
13529,
267,
13,
4706,
1583,
29889,
3084,
29918,
13529,
267,
18884,
353,
2854,
29918,
13529,
267,
13,
4706,
1583,
29889,
1456,
414,
29918,
4925,
632,
353,
10769,
29918,
4925,
13,
4706,
1583,
29889,
1456,
414,
29918,
24681,
3986,
353,
10769,
29918,
24681,
13,
13,
1678,
822,
679,
29918,
3827,
29918,
3888,
29898,
1311,
1125,
13,
4706,
736,
313,
10998,
26029,
29918,
1807,
29915,
795,
584,
1583,
29889,
26029,
29918,
1807,
29892,
13,
12,
12,
12,
12,
525,
2467,
29918,
3827,
287,
29915,
3986,
584,
1583,
29889,
2467,
29918,
3827,
287,
29892,
13,
12,
12,
12,
12,
525,
3784,
29918,
3179,
29915,
795,
584,
1583,
29889,
3784,
29918,
3179,
29892,
13,
12,
12,
12,
12,
525,
2218,
7543,
29918,
29886,
488,
29915,
795,
584,
1583,
29889,
2218,
7543,
29918,
29886,
488,
29892,
13,
12,
12,
12,
12,
525,
11631,
29918,
18434,
29915,
795,
584,
1583,
29889,
11631,
29918,
18434,
29892,
13,
12,
12,
12,
12,
525,
1456,
414,
29918,
4925,
29918,
4882,
29915,
268,
584,
1583,
29889,
1456,
414,
29918,
4925,
29918,
4882,
29892,
13,
12,
12,
12,
12,
525,
1456,
414,
29918,
14676,
428,
29918,
4882,
29915,
584,
1583,
29889,
1456,
414,
29918,
14676,
428,
29918,
4882,
29892,
13,
12,
12,
12,
12,
525,
20965,
29918,
13529,
267,
29915,
632,
584,
1583,
29889,
20965,
29918,
13529,
267,
29892,
13,
462,
525,
3084,
29918,
13529,
267,
29915,
1669,
584,
1583,
29889,
3084,
29918,
13529,
267,
29892,
13,
462,
525,
1456,
414,
29918,
4925,
29915,
9651,
584,
1583,
29889,
1456,
414,
29918,
4925,
29892,
13,
462,
525,
1456,
414,
29918,
24681,
29915,
308,
584,
1583,
29889,
1456,
414,
29918,
24681,
1800,
13,
13,
13,
13,
13,
13,
13,
2
] |
windows_to_fasta.py | latticetower/top_introns | 2 | 169538 | import fileinput
import sys
from collections import OrderedDict
from window_info import WindowInfo
from optparse import OptionParser
class WindowToFastaConverter(object):
def __init__(self):
self.current_chromosome = ""
self.chromosome_windows = list()
self.current_window = 0
def load_fasta(self, fasta_file_name):
chromosome_name = ''
buffer = ''
offset = 0 # zero-based offset for current string
with open(fasta_file_name) as f:
for line in f:
if line.startswith('>'):
buffer = ''
offset = 0
chromosome_name = line.strip('\r\n')[1 : ]
else:
buffer = line.strip('\r\n')
yield(chromosome_name, buffer, offset)
offset += len(buffer)
def load_window_list(self, file_name):
self.filtered_list = OrderedDict()
with open(file_name) as f:
for line in f:
line_data = line.strip('\r\n').split()
if (not line_data[0] in self.filtered_list.keys()): self.filtered_list[line_data[0]] = OrderedDict()
self.filtered_list[line_data[0]][line_data[1]] = WindowInfo(*line_data[ : 4])
#the following methos aims to fill in all windows information for each of chromosomes
def fill_sequence_info(self, chromosome_info):
if self.current_chromosome != chromosome_info[0]:
self.current_chromosome = chromosome_info[0]
if (not self.current_chromosome in self.filtered_list.keys()):
self.current_chromosome = ''
return
self.chromosome_windows = iter(sorted(self.filtered_list[self.current_chromosome].items(), key = lambda w: long(w[0])))
self.current_window = next(self.chromosome_windows)
offset = long(chromosome_info[2])
offset_end = long(offset + len(chromosome_info[1]) - 1)
if long(offset_end) < long(self.current_window[1].window_start):
return
if long(self.current_window[1].window_start) < long(offset) and long(self.current_window[1].window_end) > long(offset_end):
self.current_window[1].sequence += chromosome_info[1]
return
if long(offset) <= long(self.current_window[1].window_end) and long(self.current_window[1].window_end) <= long(offset_end) and long(self.current_window[1].window_start < offset):
self.current_window[1].sequence += chromosome_info[1][ : self.current_window[1].window_end - offset + 1]
try:
self.current_window = next(self.chromosome_windows)
except StopIteration:
return
try:
while long(self.current_window[1].window_start) >= long(offset) and long(self.current_window[1].window_end) <= long(offset_end):
self.current_window[1].sequence = chromosome_info[1][self.current_window[1].window_start - offset : self.current_window[1].window_end - offset + 1]
self.current_window = next(self.chromosome_windows)
except StopIteration:
return
if long(offset) <= long(self.current_window[1].window_start) and long(self.current_window[1].window_start) <= long(offset_end) and long(self.current_window[1].window_end) > long(offset_end):
self.current_window[1].sequence = chromosome_info[1][self.current_window[1].window_start - offset : ]
return
if long(offset) > long(self.current_window[1].window_end):
try:
while long(self.current_window[1].window_end) < long(offset):
self.current_window = next(self.chromosome_windows)
except:
return
#the following method processes entire fasta file
def load_info_from_fasta(self, fasta_file_name):
for chromosome_info in self.load_fasta(fasta_file_name):
self.fill_sequence_info(chromosome_info)
def save_sequences_to_fasta(self, output_file_name):
output_file = open(output_file_name, 'w')
# for each chromosome in list print sequence to output file
for chromosome_windows in self.filtered_list.values():
for window in chromosome_windows.values():
output_file.write(window.print_to_fasta())
output_file.close()
def main(bed_file_name, output_file_name, fasta_file_name):
result = 0
if not bed_file_name:
print ".bed file was not provided"
result = 1
if not fasta_file_name:
print ".fasta file name was not provided"
result = 1
if result:
return result
converter = WindowToFastaConverter()
converter.load_window_list(bed_file_name)
converter.load_info_from_fasta(fasta_file_name)
converter.save_sequences_to_fasta(output_file_name)
return result
if __name__ == "__main__":
parser = OptionParser()
parser.add_option("-i", "--input", dest = "input_file", help = "input FILE in .bed format", metavar = "FILE")
parser.add_option("-o", "--output", dest = "output_file", help = "output file in fasta format", metavar = "FILE")
parser.add_option("-f", "--fasta", dest = "reference_file", help = "input FILE in .fasta format", metavar = "FILE")
(options, args) = parser.parse_args()
try:
result = main(options.input_file, options.output_file, options.reference_file)
if result:
parser.print_help()
exit()
except Exception as e:
print >> sys.stderr, e
#
| [
1,
1053,
934,
2080,
13,
5215,
10876,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
3166,
3474,
29918,
3888,
1053,
18379,
3401,
13,
3166,
3523,
5510,
1053,
10831,
11726,
13,
13,
1990,
18379,
1762,
29943,
5427,
18545,
29898,
3318,
1125,
13,
29871,
822,
4770,
2344,
12035,
1311,
1125,
13,
1678,
1583,
29889,
3784,
29918,
27433,
359,
608,
353,
5124,
13,
1678,
1583,
29889,
27433,
359,
608,
29918,
10499,
353,
1051,
580,
13,
1678,
1583,
29889,
3784,
29918,
7165,
353,
29871,
29900,
13,
13,
13,
29871,
822,
2254,
29918,
29888,
5427,
29898,
1311,
29892,
5172,
29874,
29918,
1445,
29918,
978,
1125,
13,
1678,
25173,
359,
608,
29918,
978,
353,
6629,
13,
1678,
6835,
353,
6629,
13,
1678,
9210,
353,
29871,
29900,
396,
5225,
29899,
6707,
9210,
363,
1857,
1347,
13,
1678,
411,
1722,
29898,
29888,
5427,
29918,
1445,
29918,
978,
29897,
408,
285,
29901,
13,
418,
363,
1196,
297,
285,
29901,
13,
4706,
565,
1196,
29889,
27382,
2541,
877,
16299,
1125,
13,
3986,
6835,
353,
6629,
13,
3986,
9210,
353,
29871,
29900,
13,
3986,
25173,
359,
608,
29918,
978,
353,
1196,
29889,
17010,
28909,
29878,
29905,
29876,
29861,
29896,
584,
4514,
13,
4706,
1683,
29901,
13,
3986,
6835,
353,
1196,
29889,
17010,
28909,
29878,
29905,
29876,
1495,
13,
3986,
7709,
29898,
27433,
359,
608,
29918,
978,
29892,
6835,
29892,
9210,
29897,
13,
3986,
9210,
4619,
7431,
29898,
9040,
29897,
13,
13,
13,
29871,
822,
2254,
29918,
7165,
29918,
1761,
29898,
1311,
29892,
934,
29918,
978,
1125,
13,
1678,
1583,
29889,
4572,
287,
29918,
1761,
353,
8170,
287,
21533,
580,
13,
1678,
411,
1722,
29898,
1445,
29918,
978,
29897,
408,
285,
29901,
13,
418,
363,
1196,
297,
285,
29901,
13,
4706,
1196,
29918,
1272,
353,
1196,
29889,
17010,
28909,
29878,
29905,
29876,
2824,
5451,
580,
13,
4706,
565,
313,
1333,
1196,
29918,
1272,
29961,
29900,
29962,
29871,
297,
1583,
29889,
4572,
287,
29918,
1761,
29889,
8149,
580,
1125,
1583,
29889,
4572,
287,
29918,
1761,
29961,
1220,
29918,
1272,
29961,
29900,
5262,
353,
8170,
287,
21533,
580,
13,
4706,
1583,
29889,
4572,
287,
29918,
1761,
29961,
1220,
29918,
1272,
29961,
29900,
29962,
3816,
1220,
29918,
1272,
29961,
29896,
5262,
353,
18379,
3401,
10456,
1220,
29918,
1272,
29961,
584,
29871,
29946,
2314,
13,
13,
13,
29871,
396,
1552,
1494,
286,
621,
359,
263,
9893,
304,
5445,
297,
599,
5417,
2472,
363,
1269,
310,
25173,
359,
290,
267,
13,
29871,
822,
5445,
29918,
16506,
29918,
3888,
29898,
1311,
29892,
25173,
359,
608,
29918,
3888,
1125,
13,
1678,
565,
1583,
29889,
3784,
29918,
27433,
359,
608,
2804,
25173,
359,
608,
29918,
3888,
29961,
29900,
5387,
13,
418,
1583,
29889,
3784,
29918,
27433,
359,
608,
353,
25173,
359,
608,
29918,
3888,
29961,
29900,
29962,
13,
418,
565,
313,
1333,
1583,
29889,
3784,
29918,
27433,
359,
608,
297,
1583,
29889,
4572,
287,
29918,
1761,
29889,
8149,
580,
1125,
13,
4706,
1583,
29889,
3784,
29918,
27433,
359,
608,
353,
6629,
13,
4706,
736,
13,
418,
1583,
29889,
27433,
359,
608,
29918,
10499,
353,
4256,
29898,
24582,
29898,
1311,
29889,
4572,
287,
29918,
1761,
29961,
1311,
29889,
3784,
29918,
27433,
359,
608,
1822,
7076,
3285,
1820,
353,
14013,
281,
29901,
1472,
29898,
29893,
29961,
29900,
29962,
4961,
13,
418,
1583,
29889,
3784,
29918,
7165,
353,
2446,
29898,
1311,
29889,
27433,
359,
608,
29918,
10499,
29897,
13,
13,
1678,
9210,
353,
1472,
29898,
27433,
359,
608,
29918,
3888,
29961,
29906,
2314,
13,
1678,
9210,
29918,
355,
353,
1472,
29898,
10289,
718,
7431,
29898,
27433,
359,
608,
29918,
3888,
29961,
29896,
2314,
448,
29871,
29896,
29897,
13,
1678,
565,
1472,
29898,
10289,
29918,
355,
29897,
529,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
2962,
1125,
13,
418,
736,
13,
1678,
565,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
2962,
29897,
529,
1472,
29898,
10289,
29897,
322,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
355,
29897,
1405,
1472,
29898,
10289,
29918,
355,
1125,
13,
418,
1583,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
16506,
4619,
25173,
359,
608,
29918,
3888,
29961,
29896,
29962,
13,
418,
736,
13,
1678,
565,
1472,
29898,
10289,
29897,
5277,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
355,
29897,
322,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
355,
29897,
5277,
1472,
29898,
10289,
29918,
355,
29897,
322,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
2962,
529,
9210,
1125,
13,
418,
1583,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
16506,
4619,
25173,
359,
608,
29918,
3888,
29961,
29896,
3816,
584,
1583,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
355,
448,
9210,
718,
29871,
29896,
29962,
13,
418,
1018,
29901,
13,
4706,
1583,
29889,
3784,
29918,
7165,
353,
2446,
29898,
1311,
29889,
27433,
359,
608,
29918,
10499,
29897,
13,
418,
5174,
22303,
13463,
362,
29901,
13,
4706,
736,
13,
1678,
1018,
29901,
13,
418,
1550,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
2962,
29897,
6736,
1472,
29898,
10289,
29897,
322,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
355,
29897,
5277,
1472,
29898,
10289,
29918,
355,
1125,
13,
4706,
1583,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
16506,
353,
25173,
359,
608,
29918,
3888,
29961,
29896,
3816,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
2962,
448,
9210,
584,
1583,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
355,
448,
9210,
718,
29871,
29896,
29962,
13,
4706,
1583,
29889,
3784,
29918,
7165,
353,
2446,
29898,
1311,
29889,
27433,
359,
608,
29918,
10499,
29897,
13,
1678,
5174,
22303,
13463,
362,
29901,
13,
418,
736,
13,
1678,
565,
1472,
29898,
10289,
29897,
5277,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
2962,
29897,
322,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
2962,
29897,
5277,
1472,
29898,
10289,
29918,
355,
29897,
322,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
355,
29897,
1405,
1472,
29898,
10289,
29918,
355,
1125,
13,
418,
1583,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
16506,
353,
25173,
359,
608,
29918,
3888,
29961,
29896,
3816,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
2962,
448,
9210,
584,
4514,
13,
418,
736,
13,
1678,
565,
1472,
29898,
10289,
29897,
1405,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
355,
1125,
13,
418,
1018,
29901,
13,
4706,
1550,
1472,
29898,
1311,
29889,
3784,
29918,
7165,
29961,
29896,
1822,
7165,
29918,
355,
29897,
529,
1472,
29898,
10289,
1125,
13,
3986,
1583,
29889,
3784,
29918,
7165,
353,
2446,
29898,
1311,
29889,
27433,
359,
608,
29918,
10499,
29897,
13,
418,
5174,
29901,
13,
4706,
736,
13,
13,
13,
29871,
396,
1552,
1494,
1158,
10174,
4152,
5172,
29874,
934,
13,
29871,
822,
2254,
29918,
3888,
29918,
3166,
29918,
29888,
5427,
29898,
1311,
29892,
5172,
29874,
29918,
1445,
29918,
978,
1125,
13,
1678,
363,
25173,
359,
608,
29918,
3888,
297,
1583,
29889,
1359,
29918,
29888,
5427,
29898,
29888,
5427,
29918,
1445,
29918,
978,
1125,
13,
418,
1583,
29889,
5589,
29918,
16506,
29918,
3888,
29898,
27433,
359,
608,
29918,
3888,
29897,
13,
13,
13,
29871,
822,
4078,
29918,
6831,
2063,
29918,
517,
29918,
29888,
5427,
29898,
1311,
29892,
1962,
29918,
1445,
29918,
978,
1125,
13,
1678,
1962,
29918,
1445,
353,
1722,
29898,
4905,
29918,
1445,
29918,
978,
29892,
525,
29893,
1495,
13,
1678,
396,
363,
1269,
25173,
359,
608,
297,
1051,
1596,
5665,
304,
1962,
934,
13,
1678,
363,
25173,
359,
608,
29918,
10499,
297,
1583,
29889,
4572,
287,
29918,
1761,
29889,
5975,
7295,
13,
418,
363,
3474,
297,
25173,
359,
608,
29918,
10499,
29889,
5975,
7295,
13,
4706,
1962,
29918,
1445,
29889,
3539,
29898,
7165,
29889,
2158,
29918,
517,
29918,
29888,
5427,
3101,
13,
1678,
1962,
29918,
1445,
29889,
5358,
580,
13,
13,
13,
1753,
1667,
29898,
2580,
29918,
1445,
29918,
978,
29892,
1962,
29918,
1445,
29918,
978,
29892,
5172,
29874,
29918,
1445,
29918,
978,
1125,
13,
29871,
1121,
353,
29871,
29900,
13,
29871,
565,
451,
6592,
29918,
1445,
29918,
978,
29901,
13,
1678,
1596,
11393,
2580,
934,
471,
451,
4944,
29908,
13,
1678,
1121,
353,
29871,
29896,
13,
29871,
565,
451,
5172,
29874,
29918,
1445,
29918,
978,
29901,
13,
1678,
1596,
11393,
29888,
5427,
934,
1024,
471,
451,
4944,
29908,
13,
1678,
1121,
353,
29871,
29896,
13,
29871,
565,
1121,
29901,
13,
1678,
736,
1121,
13,
29871,
29105,
353,
18379,
1762,
29943,
5427,
18545,
580,
13,
29871,
29105,
29889,
1359,
29918,
7165,
29918,
1761,
29898,
2580,
29918,
1445,
29918,
978,
29897,
13,
29871,
29105,
29889,
1359,
29918,
3888,
29918,
3166,
29918,
29888,
5427,
29898,
29888,
5427,
29918,
1445,
29918,
978,
29897,
13,
29871,
29105,
29889,
7620,
29918,
6831,
2063,
29918,
517,
29918,
29888,
5427,
29898,
4905,
29918,
1445,
29918,
978,
29897,
13,
29871,
736,
1121,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
29871,
13812,
353,
10831,
11726,
580,
13,
13,
29871,
13812,
29889,
1202,
29918,
3385,
703,
29899,
29875,
613,
376,
489,
2080,
613,
2731,
353,
376,
2080,
29918,
1445,
613,
1371,
353,
376,
2080,
24080,
297,
869,
2580,
3402,
613,
1539,
485,
279,
353,
376,
7724,
1159,
13,
29871,
13812,
29889,
1202,
29918,
3385,
703,
29899,
29877,
613,
376,
489,
4905,
613,
2731,
353,
376,
4905,
29918,
1445,
613,
1371,
353,
376,
4905,
934,
297,
5172,
29874,
3402,
613,
1539,
485,
279,
353,
376,
7724,
1159,
13,
29871,
13812,
29889,
1202,
29918,
3385,
703,
29899,
29888,
613,
376,
489,
29888,
5427,
613,
2731,
353,
376,
5679,
29918,
1445,
613,
1371,
353,
376,
2080,
24080,
297,
869,
29888,
5427,
3402,
613,
1539,
485,
279,
353,
376,
7724,
1159,
13,
29871,
313,
6768,
29892,
6389,
29897,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
29871,
1018,
29901,
13,
1678,
1121,
353,
1667,
29898,
6768,
29889,
2080,
29918,
1445,
29892,
3987,
29889,
4905,
29918,
1445,
29892,
3987,
29889,
5679,
29918,
1445,
29897,
13,
1678,
565,
1121,
29901,
13,
418,
13812,
29889,
2158,
29918,
8477,
580,
13,
418,
6876,
580,
13,
29871,
5174,
8960,
408,
321,
29901,
13,
1678,
1596,
5099,
10876,
29889,
303,
20405,
29892,
321,
13,
29871,
396,
13,
2
] |
code/check_image_exists.py | LRoeseler/generalisation-humans-DNNs | 1 | 121818 | # check whether each of the images used here is contained in the downloaded entirety of images
import os
path = "../16-class-ImageNet/image_names"
txt_file_list = os.listdir(path)
print(txt_file_list)
for txt_file in txt_file_list:
file_path = os.path.join(path, txt_file)
print(file_path)
print(f"Now scanning {file_path}")
no_of_existing_files = 0
lst_not_found_images = []
line_count = 0
with open(file_path) as f:
for img in f:
if img != "\n":
line_count += 1
img = img.strip()
# print(img)
location1 = "../../ILSVRC2012_img_train/"
location2 = "../../ILSVRC2012_img_train_t3/"
if os.path.isfile(location1 + img):
no_of_existing_files += 1
# print(f"{image_name} has been found.")
elif os.path.isfile(location2 + img):
no_of_existing_files += 1
else:
lst_not_found_images.append((img, f))
print("no_of_existing_files", no_of_existing_files, f"in the file with {line_count} lines")
print(len(lst_not_found_images))
| [
1,
396,
1423,
3692,
1269,
310,
278,
4558,
1304,
1244,
338,
11122,
297,
278,
16532,
4152,
1017,
310,
4558,
13,
5215,
2897,
13,
2084,
353,
376,
6995,
29896,
29953,
29899,
1990,
29899,
2940,
6779,
29914,
3027,
29918,
7039,
29908,
13,
3945,
29918,
1445,
29918,
1761,
353,
2897,
29889,
1761,
3972,
29898,
2084,
29897,
13,
2158,
29898,
3945,
29918,
1445,
29918,
1761,
29897,
13,
1454,
13872,
29918,
1445,
297,
13872,
29918,
1445,
29918,
1761,
29901,
13,
1678,
934,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
2084,
29892,
13872,
29918,
1445,
29897,
13,
1678,
1596,
29898,
1445,
29918,
2084,
29897,
13,
1678,
1596,
29898,
29888,
29908,
10454,
885,
9450,
426,
1445,
29918,
2084,
27195,
13,
1678,
694,
29918,
974,
29918,
735,
15423,
29918,
5325,
353,
29871,
29900,
13,
1678,
24471,
29918,
1333,
29918,
11940,
29918,
8346,
353,
5159,
13,
13,
1678,
1196,
29918,
2798,
353,
29871,
29900,
13,
1678,
411,
1722,
29898,
1445,
29918,
2084,
29897,
408,
285,
29901,
13,
4706,
363,
10153,
297,
285,
29901,
13,
9651,
565,
10153,
2804,
6634,
29876,
1115,
13,
18884,
1196,
29918,
2798,
4619,
29871,
29896,
13,
9651,
10153,
353,
10153,
29889,
17010,
580,
13,
9651,
396,
1596,
29898,
2492,
29897,
13,
9651,
4423,
29896,
353,
376,
21546,
6227,
7597,
10363,
29906,
29900,
29896,
29906,
29918,
2492,
29918,
14968,
12975,
13,
9651,
4423,
29906,
353,
376,
21546,
6227,
7597,
10363,
29906,
29900,
29896,
29906,
29918,
2492,
29918,
14968,
29918,
29873,
29941,
12975,
13,
9651,
565,
2897,
29889,
2084,
29889,
275,
1445,
29898,
5479,
29896,
718,
10153,
1125,
13,
18884,
694,
29918,
974,
29918,
735,
15423,
29918,
5325,
4619,
29871,
29896,
13,
4706,
396,
308,
1596,
29898,
29888,
29908,
29912,
3027,
29918,
978,
29913,
756,
1063,
1476,
23157,
13,
9651,
25342,
2897,
29889,
2084,
29889,
275,
1445,
29898,
5479,
29906,
718,
10153,
1125,
13,
18884,
694,
29918,
974,
29918,
735,
15423,
29918,
5325,
4619,
29871,
29896,
13,
9651,
1683,
29901,
13,
18884,
24471,
29918,
1333,
29918,
11940,
29918,
8346,
29889,
4397,
3552,
2492,
29892,
285,
876,
13,
13,
1678,
1596,
703,
1217,
29918,
974,
29918,
735,
15423,
29918,
5325,
613,
694,
29918,
974,
29918,
735,
15423,
29918,
5325,
29892,
285,
29908,
262,
278,
934,
411,
426,
1220,
29918,
2798,
29913,
3454,
1159,
13,
1678,
1596,
29898,
2435,
29898,
20155,
29918,
1333,
29918,
11940,
29918,
8346,
876,
13,
13,
308,
13,
13,
462,
462,
462,
462,
462,
462,
462,
632,
13,
2
] |
test/test-sys.py | xupingmao/minipy | 52 | 37302 | <filename>test/test-sys.py
import sys
assert len(sys.argv) == 1 | [
1,
529,
9507,
29958,
1688,
29914,
1688,
29899,
9675,
29889,
2272,
13,
13,
5215,
10876,
13,
13,
9294,
7431,
29898,
9675,
29889,
19218,
29897,
1275,
29871,
29896,
2
] |
chaco/array_plot_data.py | martinRenou/chaco | 0 | 1610716 | """ Defines ArrayPlotData.
"""
import six
import six.moves as sm
from numpy import array, ndarray
# Enthought library imports
from traits.api import Dict
# Local, relative imports
from .abstract_plot_data import AbstractPlotData
from .abstract_data_source import AbstractDataSource
class ArrayPlotData(AbstractPlotData):
""" A PlotData implementation class that handles a list of Numpy arrays
(or a 2-D Numpy array).
By default, it doesn't allow its input data to be modified by downstream
Chaco components or interactors.
"""
#-------------------------------------------------------------------------
# Public traits
#-------------------------------------------------------------------------
#: Map of names to arrays. Although there is no restriction on the array
#: dimensions, each array must correspond to a single plot item; that
#: is, a single name must not map to a multi-dimensional array unless
#: the array is being used for an image plot or for something that can handle
#: multi-dimensional input data.
arrays = Dict
#: Consumers can write data to this object (overrides AbstractPlotData).
writable = True
def __init__(self, *data, **kw):
""" ArrayPlotData can be constructed by passing in arrays.
Keyword arguments can be used to give certain arrays specific names;
unnamed arrays are given a generic name of the format 'seriesN', where
N is its position in the argument list.
For example::
ArrayPlotData(array1, array2, index=array3, foo=array4)
This call results in the creation of four entries in self.arrays::
'series1' -> array1
'series2' -> array2
'index' -> array3
'foo' -> array4
If any names in the keyword parameter list collide with the
auto-generated positional names "series1", "series2", etc., then those
arrays are replaced.
Note that this factor means that keyword traits are *not* set using the
keyword parameters in the constructor. This strategy defies some
conventions, but was it chosen for convenience, since the raison d'etre
of this class is convenience.
"""
super(AbstractPlotData, self).__init__()
self._update_data(kw)
data = dict(sm.zip(self._generate_names(len(data)), data))
self._update_data(data)
#------------------------------------------------------------------------
# AbstractPlotData Interface
#------------------------------------------------------------------------
def list_data(self):
""" Returns a list of the names of the arrays managed by this instance.
"""
return list(self.arrays.keys())
def get_data(self, name):
""" Returns the array associated with *name*.
Implements AbstractDataSource.
"""
return self.arrays.get(name, None)
def del_data(self, name):
""" Deletes the array specified by *name*, or raises a KeyError if
the named array does not exist.
"""
if not self.writable:
return None
if name in self.arrays:
del self.arrays[name]
self.data_changed = {'removed': [name]}
else:
raise KeyError("Data series '%s' does not exist." % name)
def set_data(self, name, new_data, generate_name=False):
""" Sets the specified array as the value for either the specified
name or a generated name.
If the instance's `writable` attribute is True, then this method sets
the data associated with the given name to the new value, otherwise it
does nothing.
Parameters
----------
name : string
The name of the array whose value is to be set.
new_data : array
The array to set as the value of *name*.
generate_name : Boolean
If True, a unique name of the form 'seriesN' is created for the
array, and is used in place of *name*. The 'N' in 'seriesN' is
one greater the largest N already used.
Returns
-------
The name under which the array was set.
See Also
--------
update_data: Use if needing to set multiple ArrayPlotData entries at
once, for example because new arrays' dimensions change and
updating one at a time would break an existing Plot.
"""
if not self.writable:
return None
if generate_name:
names = self._generate_names(1)
name = names[0]
self.update_data({name: new_data})
return name
def update_data(self, *args, **kwargs):
""" Updates any number of arrays before triggering a `data_changed`
event.
Useful to set multiple ArrayPlotData entries at once, for example
because new arrays' dimensions change and updating one at a time would
break an existing Plot.
Note: Implements AbstractPlotData's update_data() method. This method
has the same signature as the dictionary update() method.
See Also
--------
set_data: Simpler interface to set only 1 entry at a time.
"""
if not self.writable:
return None
data = dict(*args, **kwargs)
event = {}
for name in data:
if name in self.arrays:
event.setdefault('changed', []).append(name)
else:
event.setdefault('added', []).append(name)
self._update_data(data)
self.data_changed = event
def set_selection(self, name, selection):
""" Overrides AbstractPlotData to do nothing and not raise an error.
"""
pass
#------------------------------------------------------------------------
# Private methods
#------------------------------------------------------------------------
def _generate_names(self, n):
""" Generate n new names
"""
max_index = max(self._generate_indices())
names = ["series{0:d}".format(n) for n in range(max_index+1, max_index+n+1)]
return names
def _generate_indices(self):
""" Generator that yields all integers that match "series%d" in keys
"""
yield 0 # default minimum
for name in self.list_data():
if name.startswith('series'):
try:
v = int(name[6:])
except ValueError:
continue
yield v
def _update_data(self, data):
""" Update the array, ensuring that data is an array
"""
# note that this call modifies data, but that's OK since the callers
# all create the dictionary that they pass in
for name, value in list(data.items()):
if not isinstance(value, (ndarray, AbstractDataSource)):
data[name] = array(value)
else:
data[name] = value
self.arrays.update(data)
| [
1,
9995,
5282,
1475,
4398,
20867,
1469,
29889,
13,
15945,
29908,
13,
5215,
4832,
13,
5215,
4832,
29889,
13529,
267,
408,
1560,
13,
3166,
12655,
1053,
1409,
29892,
29871,
299,
2378,
13,
13,
29937,
1174,
386,
1774,
3489,
24802,
13,
3166,
1020,
1169,
29889,
2754,
1053,
360,
919,
13,
13,
29937,
9959,
29892,
6198,
24802,
13,
3166,
869,
16595,
29918,
5317,
29918,
1272,
1053,
25513,
20867,
1469,
13,
3166,
869,
16595,
29918,
1272,
29918,
4993,
1053,
25513,
15559,
13,
13,
13,
1990,
4398,
20867,
1469,
29898,
9118,
20867,
1469,
1125,
13,
1678,
9995,
319,
18399,
1469,
5314,
770,
393,
17766,
263,
1051,
310,
11848,
2272,
7049,
13,
1678,
313,
272,
263,
29871,
29906,
29899,
29928,
11848,
2272,
1409,
467,
13,
13,
1678,
2648,
2322,
29892,
372,
1838,
29915,
29873,
2758,
967,
1881,
848,
304,
367,
9120,
491,
1623,
5461,
13,
1678,
678,
11216,
7117,
470,
16254,
943,
29889,
13,
1678,
9995,
13,
13,
1678,
396,
2683,
2683,
2683,
2683,
1378,
29899,
13,
1678,
396,
5236,
1020,
1169,
13,
1678,
396,
2683,
2683,
2683,
2683,
1378,
29899,
13,
13,
1678,
396,
29901,
7315,
310,
2983,
304,
7049,
29889,
29871,
8512,
727,
338,
694,
24345,
373,
278,
1409,
13,
1678,
396,
29901,
13391,
29892,
1269,
1409,
1818,
3928,
304,
263,
2323,
6492,
2944,
29936,
393,
13,
1678,
396,
29901,
338,
29892,
263,
2323,
1024,
1818,
451,
2910,
304,
263,
2473,
29899,
12531,
1409,
6521,
13,
1678,
396,
29901,
278,
1409,
338,
1641,
1304,
363,
385,
1967,
6492,
470,
363,
1554,
393,
508,
4386,
13,
1678,
396,
29901,
2473,
29899,
12531,
1881,
848,
29889,
13,
1678,
7049,
353,
360,
919,
13,
13,
1678,
396,
29901,
2138,
398,
414,
508,
2436,
848,
304,
445,
1203,
313,
957,
24040,
25513,
20867,
1469,
467,
13,
1678,
2044,
519,
353,
5852,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
1272,
29892,
3579,
11022,
1125,
13,
4706,
9995,
4398,
20867,
1469,
508,
367,
13319,
491,
6819,
297,
7049,
29889,
13,
13,
4706,
7670,
1742,
6273,
508,
367,
1304,
304,
2367,
3058,
7049,
2702,
2983,
29936,
13,
4706,
443,
17514,
7049,
526,
2183,
263,
10035,
1024,
310,
278,
3402,
525,
13757,
29940,
742,
988,
13,
4706,
405,
338,
967,
2602,
297,
278,
2980,
1051,
29889,
13,
13,
4706,
1152,
1342,
1057,
13,
13,
9651,
4398,
20867,
1469,
29898,
2378,
29896,
29892,
1409,
29906,
29892,
2380,
29922,
2378,
29941,
29892,
7953,
29922,
2378,
29946,
29897,
13,
13,
4706,
910,
1246,
2582,
297,
278,
11265,
310,
3023,
9976,
297,
1583,
29889,
2378,
29879,
1057,
13,
13,
9651,
525,
13757,
29896,
29915,
1599,
1409,
29896,
13,
9651,
525,
13757,
29906,
29915,
1599,
1409,
29906,
13,
9651,
525,
2248,
29915,
259,
1599,
1409,
29941,
13,
9651,
525,
5431,
29915,
268,
1599,
1409,
29946,
13,
13,
4706,
960,
738,
2983,
297,
278,
13553,
3443,
1051,
784,
7459,
411,
278,
13,
4706,
4469,
29899,
13525,
2602,
284,
2983,
376,
13757,
29896,
613,
376,
13757,
29906,
613,
2992,
1696,
769,
1906,
13,
4706,
7049,
526,
8611,
29889,
13,
13,
4706,
3940,
393,
445,
7329,
2794,
393,
13553,
1020,
1169,
526,
334,
1333,
29930,
731,
773,
278,
13,
4706,
13553,
4128,
297,
278,
5823,
29889,
910,
13705,
822,
583,
777,
13,
4706,
13064,
1080,
29892,
541,
471,
372,
10434,
363,
29703,
29892,
1951,
278,
18836,
270,
29915,
300,
276,
13,
4706,
310,
445,
770,
338,
29703,
29889,
13,
4706,
9995,
13,
4706,
2428,
29898,
9118,
20867,
1469,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
4706,
1583,
3032,
5504,
29918,
1272,
29898,
11022,
29897,
13,
4706,
848,
353,
9657,
29898,
3844,
29889,
7554,
29898,
1311,
3032,
17158,
29918,
7039,
29898,
2435,
29898,
1272,
8243,
848,
876,
13,
4706,
1583,
3032,
5504,
29918,
1272,
29898,
1272,
29897,
13,
13,
13,
1678,
396,
2683,
2683,
2683,
2683,
1378,
13,
1678,
396,
25513,
20867,
1469,
25796,
13,
1678,
396,
2683,
2683,
2683,
2683,
1378,
13,
13,
1678,
822,
1051,
29918,
1272,
29898,
1311,
1125,
13,
4706,
9995,
16969,
263,
1051,
310,
278,
2983,
310,
278,
7049,
8745,
491,
445,
2777,
29889,
13,
4706,
9995,
13,
4706,
736,
1051,
29898,
1311,
29889,
2378,
29879,
29889,
8149,
3101,
13,
13,
13,
1678,
822,
679,
29918,
1272,
29898,
1311,
29892,
1024,
1125,
13,
4706,
9995,
16969,
278,
1409,
6942,
411,
334,
978,
10521,
13,
13,
4706,
1954,
9711,
25513,
15559,
29889,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
2378,
29879,
29889,
657,
29898,
978,
29892,
6213,
29897,
13,
13,
13,
1678,
822,
628,
29918,
1272,
29898,
1311,
29892,
1024,
1125,
13,
4706,
9995,
897,
1026,
267,
278,
1409,
6790,
491,
334,
978,
15966,
470,
1153,
4637,
263,
7670,
2392,
565,
13,
4706,
278,
4257,
1409,
947,
451,
1863,
29889,
13,
4706,
9995,
13,
4706,
565,
451,
1583,
29889,
8231,
519,
29901,
13,
9651,
736,
6213,
13,
13,
4706,
565,
1024,
297,
1583,
29889,
2378,
29879,
29901,
13,
9651,
628,
1583,
29889,
2378,
29879,
29961,
978,
29962,
13,
9651,
1583,
29889,
1272,
29918,
15033,
353,
11117,
1745,
8238,
2396,
518,
978,
12258,
13,
4706,
1683,
29901,
13,
9651,
12020,
7670,
2392,
703,
1469,
3652,
14210,
29879,
29915,
947,
451,
1863,
1213,
1273,
1024,
29897,
13,
13,
13,
1678,
822,
731,
29918,
1272,
29898,
1311,
29892,
1024,
29892,
716,
29918,
1272,
29892,
5706,
29918,
978,
29922,
8824,
1125,
13,
4706,
9995,
317,
1691,
278,
6790,
1409,
408,
278,
995,
363,
2845,
278,
6790,
13,
4706,
1024,
470,
263,
5759,
1024,
29889,
13,
13,
4706,
960,
278,
2777,
29915,
29879,
421,
8231,
519,
29952,
5352,
338,
5852,
29892,
769,
445,
1158,
6166,
13,
4706,
278,
848,
6942,
411,
278,
2183,
1024,
304,
278,
716,
995,
29892,
6467,
372,
13,
4706,
947,
3078,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
1024,
584,
1347,
13,
9651,
450,
1024,
310,
278,
1409,
5069,
995,
338,
304,
367,
731,
29889,
13,
4706,
716,
29918,
1272,
584,
1409,
13,
9651,
450,
1409,
304,
731,
408,
278,
995,
310,
334,
978,
10521,
13,
4706,
5706,
29918,
978,
584,
11185,
13,
9651,
960,
5852,
29892,
263,
5412,
1024,
310,
278,
883,
525,
13757,
29940,
29915,
338,
2825,
363,
278,
13,
9651,
1409,
29892,
322,
338,
1304,
297,
2058,
310,
334,
978,
10521,
450,
525,
29940,
29915,
297,
525,
13757,
29940,
29915,
338,
13,
9651,
697,
7621,
278,
10150,
405,
2307,
1304,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
450,
1024,
1090,
607,
278,
1409,
471,
731,
29889,
13,
13,
4706,
2823,
3115,
13,
4706,
448,
26589,
13,
4706,
2767,
29918,
1272,
29901,
4803,
565,
817,
292,
304,
731,
2999,
4398,
20867,
1469,
9976,
472,
13,
9651,
2748,
29892,
363,
1342,
1363,
716,
7049,
29915,
13391,
1735,
322,
13,
9651,
13271,
697,
472,
263,
931,
723,
2867,
385,
5923,
18399,
29889,
13,
4706,
9995,
13,
4706,
565,
451,
1583,
29889,
8231,
519,
29901,
13,
9651,
736,
6213,
13,
13,
4706,
565,
5706,
29918,
978,
29901,
13,
9651,
2983,
353,
1583,
3032,
17158,
29918,
7039,
29898,
29896,
29897,
13,
9651,
1024,
353,
2983,
29961,
29900,
29962,
13,
632,
13,
4706,
1583,
29889,
5504,
29918,
1272,
3319,
978,
29901,
716,
29918,
1272,
1800,
13,
4706,
736,
1024,
13,
13,
13,
1678,
822,
2767,
29918,
1272,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
9995,
5020,
15190,
738,
1353,
310,
7049,
1434,
7135,
292,
263,
421,
1272,
29918,
15033,
29952,
13,
4706,
1741,
29889,
13,
13,
4706,
4803,
1319,
304,
731,
2999,
4398,
20867,
1469,
9976,
472,
2748,
29892,
363,
1342,
13,
4706,
1363,
716,
7049,
29915,
13391,
1735,
322,
13271,
697,
472,
263,
931,
723,
13,
4706,
2867,
385,
5923,
18399,
29889,
13,
13,
4706,
3940,
29901,
1954,
9711,
25513,
20867,
1469,
29915,
29879,
2767,
29918,
1272,
580,
1158,
29889,
29871,
910,
1158,
13,
4706,
756,
278,
1021,
12608,
408,
278,
8600,
2767,
580,
1158,
29889,
13,
13,
4706,
2823,
3115,
13,
4706,
448,
26589,
13,
4706,
731,
29918,
1272,
29901,
3439,
20069,
5067,
304,
731,
871,
29871,
29896,
6251,
472,
263,
931,
29889,
13,
4706,
9995,
13,
4706,
565,
451,
1583,
29889,
8231,
519,
29901,
13,
9651,
736,
6213,
13,
308,
13,
4706,
848,
353,
9657,
10456,
5085,
29892,
3579,
19290,
29897,
13,
4706,
1741,
353,
6571,
13,
4706,
363,
1024,
297,
848,
29901,
13,
9651,
565,
1024,
297,
1583,
29889,
2378,
29879,
29901,
13,
18884,
1741,
29889,
842,
4381,
877,
15033,
742,
5159,
467,
4397,
29898,
978,
29897,
13,
9651,
1683,
29901,
13,
18884,
1741,
29889,
842,
4381,
877,
23959,
742,
5159,
467,
4397,
29898,
978,
29897,
13,
13,
4706,
1583,
3032,
5504,
29918,
1272,
29898,
1272,
29897,
13,
4706,
1583,
29889,
1272,
29918,
15033,
353,
1741,
13,
13,
13,
1678,
822,
731,
29918,
21731,
29898,
1311,
29892,
1024,
29892,
9262,
1125,
13,
4706,
9995,
6811,
24040,
25513,
20867,
1469,
304,
437,
3078,
322,
451,
12020,
385,
1059,
29889,
13,
4706,
9995,
13,
4706,
1209,
13,
13,
1678,
396,
2683,
2683,
2683,
2683,
1378,
13,
1678,
396,
12230,
3519,
13,
1678,
396,
2683,
2683,
2683,
2683,
1378,
268,
13,
13,
1678,
822,
903,
17158,
29918,
7039,
29898,
1311,
29892,
302,
1125,
13,
4706,
9995,
3251,
403,
302,
716,
2983,
13,
4706,
9995,
13,
4706,
4236,
29918,
2248,
353,
4236,
29898,
1311,
3032,
17158,
29918,
513,
1575,
3101,
13,
4706,
2983,
353,
6796,
13757,
29912,
29900,
29901,
29881,
29913,
1642,
4830,
29898,
29876,
29897,
363,
302,
297,
3464,
29898,
3317,
29918,
2248,
29974,
29896,
29892,
4236,
29918,
2248,
29974,
29876,
29974,
29896,
4638,
13,
4706,
736,
2983,
13,
13,
1678,
822,
903,
17158,
29918,
513,
1575,
29898,
1311,
1125,
13,
4706,
9995,
3251,
1061,
393,
17498,
599,
11920,
393,
1993,
376,
13757,
29995,
29881,
29908,
297,
6611,
13,
4706,
9995,
13,
4706,
7709,
29871,
29900,
396,
2322,
9212,
13,
4706,
363,
1024,
297,
1583,
29889,
1761,
29918,
1272,
7295,
13,
9651,
565,
1024,
29889,
27382,
2541,
877,
13757,
29374,
13,
18884,
1018,
29901,
13,
462,
1678,
325,
353,
938,
29898,
978,
29961,
29953,
29901,
2314,
13,
18884,
5174,
7865,
2392,
29901,
13,
462,
1678,
6773,
13,
18884,
7709,
325,
13,
13,
1678,
822,
903,
5504,
29918,
1272,
29898,
1311,
29892,
848,
1125,
13,
4706,
9995,
10318,
278,
1409,
29892,
5662,
3864,
393,
848,
338,
385,
1409,
13,
4706,
9995,
13,
4706,
396,
4443,
393,
445,
1246,
878,
11057,
848,
29892,
541,
393,
29915,
29879,
9280,
1951,
278,
1246,
414,
13,
4706,
396,
599,
1653,
278,
8600,
393,
896,
1209,
297,
13,
4706,
363,
1024,
29892,
995,
297,
1051,
29898,
1272,
29889,
7076,
580,
1125,
13,
9651,
565,
451,
338,
8758,
29898,
1767,
29892,
313,
299,
2378,
29892,
25513,
15559,
22164,
13,
18884,
848,
29961,
978,
29962,
353,
1409,
29898,
1767,
29897,
13,
9651,
1683,
29901,
13,
18884,
848,
29961,
978,
29962,
353,
995,
13,
13,
4706,
1583,
29889,
2378,
29879,
29889,
5504,
29898,
1272,
29897,
13,
13,
2
] |
djangologdb/utils.py | cgroschupp/django-logdb | 5 | 126261 | import datetime
import time
from django.db import models
from django.core.serializers.json import DjangoJSONEncoder
from django.utils import simplejson as json
def get_timestamp(date_time):
"""
Create a `timestamp` from a `datetime` object. A `timestamp` is defined
as the number of milliseconds since January 1, 1970 00:00. This is like
Javascript or the Unix timestamp times 1000.
"""
return time.mktime(date_time.timetuple()) * 1000
def get_datetime(timestamp):
"""
Takes a `timestamp` and returns a `datetime` object.
"""
return datetime.datetime.fromtimestamp(int(timestamp / 1000))
class JSONField(models.TextField):
__metaclass__ = models.SubfieldBase
def to_python(self, value):
if isinstance(value, basestring) and value:
try:
value = json.loads(value)
except ValueError:
return None
return value
def get_db_prep_save(self, value, connection):
if value is None:
return None
value = json.dumps(value, cls=DjangoJSONEncoder)
return super(JSONField, self).get_db_prep_save(value, connection=connection)
class TupleField(models.TextField):
__metaclass__ = models.SubfieldBase
def to_python(self, value):
if value is None:
return None
if isinstance(value, basestring):
try:
value = tuple(json.loads(value))
except ValueError:
return None
return value
def get_db_prep_save(self, value, connection):
if value is None:
return None
value = json.dumps(value, cls=DjangoJSONEncoder)
return super(TupleField, self).get_db_prep_save(value, connection=connection)
| [
1,
1053,
12865,
30004,
13,
5215,
931,
30004,
13,
30004,
13,
3166,
9557,
29889,
2585,
1053,
4733,
30004,
13,
3166,
9557,
29889,
3221,
29889,
15550,
19427,
29889,
3126,
1053,
15337,
7249,
8566,
6119,
30004,
13,
3166,
9557,
29889,
13239,
1053,
2560,
3126,
408,
4390,
30004,
13,
30004,
13,
1753,
679,
29918,
16394,
29898,
1256,
29918,
2230,
1125,
30004,
13,
1678,
9995,
30004,
13,
1678,
6204,
263,
421,
16394,
29952,
515,
263,
421,
12673,
29952,
1203,
29889,
319,
421,
16394,
29952,
338,
3342,
30004,
13,
1678,
408,
278,
1353,
310,
3533,
21462,
1951,
5490,
29871,
29896,
29892,
29871,
29896,
29929,
29955,
29900,
29871,
29900,
29900,
29901,
29900,
29900,
29889,
910,
338,
763,
30004,
13,
1678,
12728,
470,
278,
26663,
14334,
3064,
29871,
29896,
29900,
29900,
29900,
22993,
13,
1678,
9995,
30004,
13,
1678,
736,
931,
29889,
29885,
1193,
603,
29898,
1256,
29918,
2230,
29889,
9346,
24120,
552,
3101,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
1753,
679,
29918,
12673,
29898,
16394,
1125,
30004,
13,
1678,
9995,
30004,
13,
1678,
323,
6926,
263,
421,
16394,
29952,
322,
3639,
263,
421,
12673,
29952,
1203,
22993,
13,
1678,
9995,
30004,
13,
1678,
736,
12865,
29889,
12673,
29889,
3166,
16394,
29898,
524,
29898,
16394,
847,
29871,
29896,
29900,
29900,
29900,
876,
30004,
13,
30004,
13,
30004,
13,
1990,
4663,
3073,
29898,
9794,
29889,
15778,
1125,
30004,
13,
1678,
4770,
2527,
562,
605,
1649,
353,
4733,
29889,
4035,
2671,
5160,
30004,
13,
30004,
13,
1678,
822,
304,
29918,
4691,
29898,
1311,
29892,
995,
1125,
30004,
13,
4706,
565,
338,
8758,
29898,
1767,
29892,
2362,
342,
5393,
29897,
322,
995,
29901,
30004,
13,
9651,
1018,
29901,
30004,
13,
18884,
995,
353,
4390,
29889,
18132,
29898,
1767,
8443,
13,
9651,
5174,
7865,
2392,
29901,
30004,
13,
18884,
736,
6213,
30004,
13,
30004,
13,
4706,
736,
995,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
2585,
29918,
15287,
29918,
7620,
29898,
1311,
29892,
995,
29892,
3957,
1125,
30004,
13,
4706,
565,
995,
338,
6213,
29901,
30004,
13,
9651,
736,
6213,
30004,
13,
30004,
13,
4706,
995,
353,
4390,
29889,
29881,
17204,
29898,
1767,
29892,
1067,
29879,
29922,
29928,
5364,
7249,
8566,
6119,
8443,
13,
4706,
736,
2428,
29898,
7249,
3073,
29892,
1583,
467,
657,
29918,
2585,
29918,
15287,
29918,
7620,
29898,
1767,
29892,
3957,
29922,
9965,
8443,
13,
30004,
13,
30004,
13,
1990,
12603,
552,
3073,
29898,
9794,
29889,
15778,
1125,
30004,
13,
1678,
4770,
2527,
562,
605,
1649,
353,
4733,
29889,
4035,
2671,
5160,
30004,
13,
30004,
13,
1678,
822,
304,
29918,
4691,
29898,
1311,
29892,
995,
1125,
30004,
13,
4706,
565,
995,
338,
6213,
29901,
30004,
13,
9651,
736,
6213,
30004,
13,
30004,
13,
4706,
565,
338,
8758,
29898,
1767,
29892,
2362,
342,
5393,
1125,
30004,
13,
9651,
1018,
29901,
30004,
13,
18884,
995,
353,
18761,
29898,
3126,
29889,
18132,
29898,
1767,
876,
30004,
13,
9651,
5174,
7865,
2392,
29901,
30004,
13,
18884,
736,
6213,
30004,
13,
30004,
13,
4706,
736,
995,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
2585,
29918,
15287,
29918,
7620,
29898,
1311,
29892,
995,
29892,
3957,
1125,
30004,
13,
4706,
565,
995,
338,
6213,
29901,
30004,
13,
9651,
736,
6213,
30004,
13,
30004,
13,
4706,
995,
353,
4390,
29889,
29881,
17204,
29898,
1767,
29892,
1067,
29879,
29922,
29928,
5364,
7249,
8566,
6119,
8443,
13,
4706,
736,
2428,
29898,
23215,
552,
3073,
29892,
1583,
467,
657,
29918,
2585,
29918,
15287,
29918,
7620,
29898,
1767,
29892,
3957,
29922,
9965,
8443,
13,
2
] |
ingestors/misc/jsonfile.py | simonwoerpel/ingest-file | 23 | 52666 | <reponame>simonwoerpel/ingest-file<filename>ingestors/misc/jsonfile.py
import json
from followthemoney import model
from followthemoney.util import MEGABYTE
from ingestors.ingestor import Ingestor
from ingestors.support.encoding import EncodingSupport
from ingestors.exc import ProcessingException
class JSONIngestor(Ingestor, EncodingSupport):
MIME_TYPES = [
"application/json",
"text/javascript",
]
EXTENSIONS = ["json"]
MAX_SIZE = 100 * MEGABYTE
SCORE = 3
def _collect_text(self, obj):
if isinstance(obj, (list, set, tuple)):
for item in obj:
yield from self._collect_text(item)
if isinstance(obj, dict):
for item in obj.values():
yield from self._collect_text(item)
if isinstance(obj, str):
yield obj
def ingest(self, file_path, entity):
for file_size in entity.get("fileSize"):
if int(file_size) > self.MAX_SIZE:
raise ProcessingException("JSON file is too large.")
with open(file_path, "rb") as fh:
encoding = self.detect_stream_encoding(fh)
with open(file_path, "r", encoding=encoding) as fh:
try:
data = json.load(fh)
for idx, text in enumerate(self._collect_text(data)):
self.manager.emit_text_fragment(entity, [text], idx)
except Exception as exc:
raise ProcessingException("Cannot parse JSON file: %s" % exc) from exc
| [
1,
529,
276,
1112,
420,
29958,
3601,
265,
827,
261,
13111,
29914,
292,
342,
29899,
1445,
29966,
9507,
29958,
292,
342,
943,
29914,
29885,
10669,
29914,
3126,
1445,
29889,
2272,
13,
5215,
4390,
13,
13,
3166,
1101,
386,
331,
4992,
1053,
1904,
13,
3166,
1101,
386,
331,
4992,
29889,
4422,
1053,
341,
11787,
2882,
29979,
4330,
13,
13,
3166,
2348,
342,
943,
29889,
292,
342,
272,
1053,
512,
7118,
272,
13,
3166,
2348,
342,
943,
29889,
5924,
29889,
22331,
1053,
11346,
3689,
14039,
13,
3166,
2348,
342,
943,
29889,
735,
29883,
1053,
10554,
292,
2451,
13,
13,
13,
1990,
4663,
797,
7118,
272,
29898,
797,
7118,
272,
29892,
11346,
3689,
14039,
1125,
13,
13,
1678,
341,
8890,
29918,
15631,
29925,
2890,
353,
518,
13,
4706,
376,
6214,
29914,
3126,
613,
13,
4706,
376,
726,
29914,
7729,
613,
13,
1678,
4514,
13,
1678,
8528,
29911,
1430,
13381,
29903,
353,
6796,
3126,
3108,
13,
1678,
18134,
29918,
14226,
353,
29871,
29896,
29900,
29900,
334,
341,
11787,
2882,
29979,
4330,
13,
1678,
317,
3217,
1525,
353,
29871,
29941,
13,
13,
1678,
822,
903,
15914,
29918,
726,
29898,
1311,
29892,
5446,
1125,
13,
4706,
565,
338,
8758,
29898,
5415,
29892,
313,
1761,
29892,
731,
29892,
18761,
22164,
13,
9651,
363,
2944,
297,
5446,
29901,
13,
18884,
7709,
515,
1583,
3032,
15914,
29918,
726,
29898,
667,
29897,
13,
4706,
565,
338,
8758,
29898,
5415,
29892,
9657,
1125,
13,
9651,
363,
2944,
297,
5446,
29889,
5975,
7295,
13,
18884,
7709,
515,
1583,
3032,
15914,
29918,
726,
29898,
667,
29897,
13,
4706,
565,
338,
8758,
29898,
5415,
29892,
851,
1125,
13,
9651,
7709,
5446,
13,
13,
1678,
822,
2348,
342,
29898,
1311,
29892,
934,
29918,
2084,
29892,
7855,
1125,
13,
4706,
363,
934,
29918,
2311,
297,
7855,
29889,
657,
703,
1445,
3505,
29908,
1125,
13,
9651,
565,
938,
29898,
1445,
29918,
2311,
29897,
1405,
1583,
29889,
12648,
29918,
14226,
29901,
13,
18884,
12020,
10554,
292,
2451,
703,
7249,
934,
338,
2086,
2919,
23157,
13,
13,
4706,
411,
1722,
29898,
1445,
29918,
2084,
29892,
376,
6050,
1159,
408,
285,
29882,
29901,
13,
9651,
8025,
353,
1583,
29889,
4801,
522,
29918,
5461,
29918,
22331,
29898,
29888,
29882,
29897,
13,
13,
4706,
411,
1722,
29898,
1445,
29918,
2084,
29892,
376,
29878,
613,
8025,
29922,
22331,
29897,
408,
285,
29882,
29901,
13,
9651,
1018,
29901,
13,
18884,
848,
353,
4390,
29889,
1359,
29898,
29888,
29882,
29897,
13,
18884,
363,
22645,
29892,
1426,
297,
26985,
29898,
1311,
3032,
15914,
29918,
726,
29898,
1272,
22164,
13,
462,
1678,
1583,
29889,
12847,
29889,
21976,
29918,
726,
29918,
20777,
29898,
10041,
29892,
518,
726,
1402,
22645,
29897,
13,
9651,
5174,
8960,
408,
5566,
29901,
13,
18884,
12020,
10554,
292,
2451,
703,
29089,
6088,
4663,
934,
29901,
1273,
29879,
29908,
1273,
5566,
29897,
515,
5566,
13,
2
] |
examples/anomaly_detection.py | KrishnanSG/pytsal | 32 | 46090 | """
Holt Winter Anomaly detection Example
In this example we will look into how to create holt winters model and build an anomaly detection model
in less than 4 steps.
"""
if __name__ == '__main__':
from pytsal import anomaly, forecasting
from pytsal.dataset import *
# 1. Load the dataset
ts_with_anomaly = load_airline_with_anomaly()
# 2. Forecasting model
# 2.a Load existing forecasting model
model = forecasting.load_model()
# 2.b Create new model
if model is None:
ts = load_airline()
model = forecasting.setup(ts, 'holtwinter', eda=False, validation=False, find_best_model=True,
plot_model_comparison=False)
trained_model = forecasting.finalize(ts, model)
forecasting.save_model(trained_model)
model = forecasting.load_model()
# 3. brutlag algorithm finds and returns the anomaly points
anomaly_points = anomaly.setup(ts_with_anomaly, model, 'brutlag')
print(anomaly_points)
| [
1,
9995,
13,
29950,
14339,
12267,
530,
290,
14997,
15326,
8741,
13,
1678,
512,
445,
1342,
591,
674,
1106,
964,
920,
304,
1653,
8753,
29873,
13851,
29879,
1904,
322,
2048,
385,
29342,
14997,
15326,
1904,
13,
1678,
297,
3109,
1135,
29871,
29946,
6576,
29889,
13,
15945,
29908,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
13,
1678,
515,
11451,
1372,
284,
1053,
29342,
14997,
29892,
29821,
579,
292,
13,
1678,
515,
11451,
1372,
284,
29889,
24713,
1053,
334,
13,
13,
1678,
396,
29871,
29896,
29889,
16012,
278,
8783,
13,
1678,
18696,
29918,
2541,
29918,
273,
290,
14997,
353,
2254,
29918,
1466,
1220,
29918,
2541,
29918,
273,
290,
14997,
580,
13,
13,
1678,
396,
29871,
29906,
29889,
28297,
4384,
292,
1904,
13,
13,
1678,
396,
29871,
29906,
29889,
29874,
16012,
5923,
29821,
579,
292,
1904,
13,
1678,
1904,
353,
29821,
579,
292,
29889,
1359,
29918,
4299,
580,
13,
13,
1678,
396,
29871,
29906,
29889,
29890,
6204,
716,
1904,
13,
1678,
565,
1904,
338,
6213,
29901,
13,
4706,
18696,
353,
2254,
29918,
1466,
1220,
580,
13,
4706,
1904,
353,
29821,
579,
292,
29889,
14669,
29898,
1372,
29892,
525,
5391,
7516,
1639,
742,
1226,
29874,
29922,
8824,
29892,
8845,
29922,
8824,
29892,
1284,
29918,
13318,
29918,
4299,
29922,
5574,
29892,
13,
462,
462,
29871,
6492,
29918,
4299,
29918,
510,
20941,
29922,
8824,
29897,
13,
4706,
16370,
29918,
4299,
353,
29821,
579,
292,
29889,
8394,
675,
29898,
1372,
29892,
1904,
29897,
13,
4706,
29821,
579,
292,
29889,
7620,
29918,
4299,
29898,
3018,
1312,
29918,
4299,
29897,
13,
4706,
1904,
353,
29821,
579,
292,
29889,
1359,
29918,
4299,
580,
13,
13,
1678,
396,
29871,
29941,
29889,
26644,
3110,
5687,
14061,
322,
3639,
278,
29342,
14997,
3291,
13,
1678,
29342,
14997,
29918,
9748,
353,
29342,
14997,
29889,
14669,
29898,
1372,
29918,
2541,
29918,
273,
290,
14997,
29892,
1904,
29892,
525,
1182,
329,
3110,
1495,
13,
13,
1678,
1596,
29898,
273,
290,
14997,
29918,
9748,
29897,
13,
2
] |
venv/Lib/site-packages/keystoneauth1/tests/unit/extras/oauth1/test_oauth1.py | prasoon-uta/IBM-coud-storage | 48 | 78112 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import uuid
from oauthlib import oauth1
import six
from testtools import matchers
from keystoneauth1.extras import oauth1 as ksa_oauth1
from keystoneauth1 import fixture
from keystoneauth1 import session
from keystoneauth1.tests.unit import utils as test_utils
class OAuth1AuthTests(test_utils.TestCase):
TEST_ROOT_URL = 'http://127.0.0.1:5000/'
TEST_URL = '%s%s' % (TEST_ROOT_URL, 'v3')
TEST_TOKEN = uuid.uuid4().hex
def stub_auth(self, subject_token=None, **kwargs):
if not subject_token:
subject_token = self.TEST_TOKEN
self.stub_url('POST', ['auth', 'tokens'],
headers={'X-Subject-Token': subject_token}, **kwargs)
def _validate_oauth_headers(self, auth_header, oauth_client):
"""Validate data in the headers.
Assert that the data in the headers matches the data
that is produced from oauthlib.
"""
self.assertThat(auth_header, matchers.StartsWith('OAuth '))
parameters = dict(
oauth1.rfc5849.utils.parse_authorization_header(auth_header))
self.assertEqual('HMAC-SHA1', parameters['oauth_signature_method'])
self.assertEqual('1.0', parameters['oauth_version'])
self.assertIsInstance(parameters['oauth_nonce'], six.string_types)
self.assertEqual(oauth_client.client_key,
parameters['oauth_consumer_key'])
if oauth_client.resource_owner_key:
self.assertEqual(oauth_client.resource_owner_key,
parameters['oauth_token'],)
if oauth_client.verifier:
self.assertEqual(oauth_client.verifier,
parameters['oauth_verifier'])
if oauth_client.callback_uri:
self.assertEqual(oauth_client.callback_uri,
parameters['oauth_callback'])
return parameters
def test_oauth_authenticate_success(self):
consumer_key = uuid.uuid4().hex
consumer_secret = uuid.uuid4().hex
access_key = uuid.uuid4().hex
access_secret = uuid.uuid4().hex
oauth_token = fixture.V3Token(methods=['oauth1'],
oauth_consumer_id=consumer_key,
oauth_access_token_id=access_key)
oauth_token.set_project_scope()
self.stub_auth(json=oauth_token)
a = ksa_oauth1.V3OAuth1(self.TEST_URL,
consumer_key=consumer_key,
consumer_secret=consumer_secret,
access_key=access_key,
access_secret=access_secret)
s = session.Session(auth=a)
t = s.get_token()
self.assertEqual(self.TEST_TOKEN, t)
OAUTH_REQUEST_BODY = {
"auth": {
"identity": {
"methods": ["oauth1"],
"oauth1": {}
}
}
}
self.assertRequestBodyIs(json=OAUTH_REQUEST_BODY)
# Assert that the headers have the same oauthlib data
req_headers = self.requests_mock.last_request.headers
oauth_client = oauth1.Client(consumer_key,
client_secret=consumer_secret,
resource_owner_key=access_key,
resource_owner_secret=access_secret,
signature_method=oauth1.SIGNATURE_HMAC)
self._validate_oauth_headers(req_headers['Authorization'],
oauth_client)
def test_warning_dual_scope(self):
ksa_oauth1.V3OAuth1(self.TEST_URL,
consumer_key=uuid.uuid4().hex,
consumer_secret=uuid.uuid4().hex,
access_key=uuid.uuid4().hex,
access_secret=uuid.uuid4().hex,
project_id=uuid.uuid4().hex)
self.assertIn('ignored by the identity server', self.logger.output)
| [
1,
396,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
366,
1122,
13,
29937,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
887,
1122,
4017,
13,
29937,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
418,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
399,
1806,
8187,
2692,
13,
29937,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
2823,
278,
13,
29937,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
27028,
13,
29937,
1090,
278,
19245,
29889,
13,
13,
5215,
318,
5416,
13,
13,
3166,
288,
5150,
1982,
1053,
288,
5150,
29896,
13,
5215,
4832,
13,
3166,
1243,
8504,
1053,
1993,
414,
13,
13,
3166,
1589,
858,
650,
5150,
29896,
29889,
1062,
3417,
1053,
288,
5150,
29896,
408,
413,
4977,
29918,
23106,
29896,
13,
3166,
1589,
858,
650,
5150,
29896,
1053,
5713,
15546,
13,
3166,
1589,
858,
650,
5150,
29896,
1053,
4867,
13,
3166,
1589,
858,
650,
5150,
29896,
29889,
21150,
29889,
5441,
1053,
3667,
29879,
408,
1243,
29918,
13239,
13,
13,
13,
1990,
438,
6444,
29896,
6444,
24376,
29898,
1688,
29918,
13239,
29889,
3057,
8259,
1125,
13,
13,
1678,
17067,
1254,
29918,
21289,
29918,
4219,
353,
525,
1124,
597,
29896,
29906,
29955,
29889,
29900,
29889,
29900,
29889,
29896,
29901,
29945,
29900,
29900,
29900,
22208,
13,
1678,
17067,
1254,
29918,
4219,
353,
14210,
29879,
29995,
29879,
29915,
1273,
313,
18267,
29918,
21289,
29918,
4219,
29892,
525,
29894,
29941,
1495,
13,
1678,
17067,
1254,
29918,
4986,
29968,
1430,
353,
318,
5416,
29889,
25118,
29946,
2141,
20970,
13,
13,
1678,
822,
19281,
29918,
5150,
29898,
1311,
29892,
4967,
29918,
6979,
29922,
8516,
29892,
3579,
19290,
1125,
13,
4706,
565,
451,
4967,
29918,
6979,
29901,
13,
9651,
4967,
29918,
6979,
353,
1583,
29889,
18267,
29918,
4986,
29968,
1430,
13,
13,
4706,
1583,
29889,
303,
431,
29918,
2271,
877,
5438,
742,
6024,
5150,
742,
525,
517,
12360,
7464,
13,
462,
418,
9066,
3790,
29915,
29990,
29899,
20622,
29899,
6066,
2396,
4967,
29918,
6979,
1118,
3579,
19290,
29897,
13,
13,
1678,
822,
903,
15480,
29918,
23106,
29918,
13662,
29898,
1311,
29892,
4817,
29918,
6672,
29892,
288,
5150,
29918,
4645,
1125,
13,
4706,
9995,
7211,
403,
848,
297,
278,
9066,
29889,
13,
13,
4706,
16499,
393,
278,
848,
297,
278,
9066,
7087,
278,
848,
13,
4706,
393,
338,
7371,
515,
288,
5150,
1982,
29889,
13,
4706,
9995,
13,
4706,
1583,
29889,
9294,
7058,
29898,
5150,
29918,
6672,
29892,
1993,
414,
29889,
4763,
29879,
3047,
877,
29949,
6444,
525,
876,
13,
4706,
4128,
353,
9657,
29898,
13,
9651,
288,
5150,
29896,
29889,
9600,
29883,
29945,
29947,
29946,
29929,
29889,
13239,
29889,
5510,
29918,
8921,
2133,
29918,
6672,
29898,
5150,
29918,
6672,
876,
13,
13,
4706,
1583,
29889,
9294,
9843,
877,
29950,
1529,
29907,
29899,
23498,
29896,
742,
4128,
1839,
23106,
29918,
4530,
1535,
29918,
5696,
11287,
13,
4706,
1583,
29889,
9294,
9843,
877,
29896,
29889,
29900,
742,
4128,
1839,
23106,
29918,
3259,
11287,
13,
4706,
1583,
29889,
9294,
3624,
4998,
29898,
16744,
1839,
23106,
29918,
5464,
346,
7464,
4832,
29889,
1807,
29918,
8768,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
23106,
29918,
4645,
29889,
4645,
29918,
1989,
29892,
13,
462,
308,
4128,
1839,
23106,
29918,
25978,
261,
29918,
1989,
11287,
13,
4706,
565,
288,
5150,
29918,
4645,
29889,
10314,
29918,
20348,
29918,
1989,
29901,
13,
9651,
1583,
29889,
9294,
9843,
29898,
23106,
29918,
4645,
29889,
10314,
29918,
20348,
29918,
1989,
29892,
13,
462,
632,
4128,
1839,
23106,
29918,
6979,
7464,
29897,
13,
4706,
565,
288,
5150,
29918,
4645,
29889,
369,
3709,
29901,
13,
9651,
1583,
29889,
9294,
9843,
29898,
23106,
29918,
4645,
29889,
369,
3709,
29892,
13,
462,
632,
4128,
1839,
23106,
29918,
369,
3709,
11287,
13,
4706,
565,
288,
5150,
29918,
4645,
29889,
14035,
29918,
5338,
29901,
13,
9651,
1583,
29889,
9294,
9843,
29898,
23106,
29918,
4645,
29889,
14035,
29918,
5338,
29892,
13,
462,
632,
4128,
1839,
23106,
29918,
14035,
11287,
13,
4706,
736,
4128,
13,
13,
1678,
822,
1243,
29918,
23106,
29918,
27218,
403,
29918,
8698,
29898,
1311,
1125,
13,
4706,
21691,
29918,
1989,
353,
318,
5416,
29889,
25118,
29946,
2141,
20970,
13,
4706,
21691,
29918,
19024,
353,
318,
5416,
29889,
25118,
29946,
2141,
20970,
13,
4706,
2130,
29918,
1989,
353,
318,
5416,
29889,
25118,
29946,
2141,
20970,
13,
4706,
2130,
29918,
19024,
353,
318,
5416,
29889,
25118,
29946,
2141,
20970,
13,
13,
4706,
288,
5150,
29918,
6979,
353,
5713,
15546,
29889,
29963,
29941,
6066,
29898,
23515,
29922,
1839,
23106,
29896,
7464,
13,
462,
462,
418,
288,
5150,
29918,
25978,
261,
29918,
333,
29922,
25978,
261,
29918,
1989,
29892,
13,
462,
462,
418,
288,
5150,
29918,
5943,
29918,
6979,
29918,
333,
29922,
5943,
29918,
1989,
29897,
13,
4706,
288,
5150,
29918,
6979,
29889,
842,
29918,
4836,
29918,
6078,
580,
13,
13,
4706,
1583,
29889,
303,
431,
29918,
5150,
29898,
3126,
29922,
23106,
29918,
6979,
29897,
13,
13,
4706,
263,
353,
413,
4977,
29918,
23106,
29896,
29889,
29963,
29941,
29949,
6444,
29896,
29898,
1311,
29889,
18267,
29918,
4219,
29892,
13,
462,
18884,
21691,
29918,
1989,
29922,
25978,
261,
29918,
1989,
29892,
13,
462,
18884,
21691,
29918,
19024,
29922,
25978,
261,
29918,
19024,
29892,
13,
462,
18884,
2130,
29918,
1989,
29922,
5943,
29918,
1989,
29892,
13,
462,
18884,
2130,
29918,
19024,
29922,
5943,
29918,
19024,
29897,
13,
13,
4706,
269,
353,
4867,
29889,
7317,
29898,
5150,
29922,
29874,
29897,
13,
4706,
260,
353,
269,
29889,
657,
29918,
6979,
580,
13,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1311,
29889,
18267,
29918,
4986,
29968,
1430,
29892,
260,
29897,
13,
13,
4706,
438,
20656,
29950,
29918,
16244,
29918,
8456,
29928,
29979,
353,
426,
13,
9651,
376,
5150,
1115,
426,
13,
18884,
376,
22350,
1115,
426,
13,
462,
1678,
376,
23515,
1115,
6796,
23106,
29896,
12436,
13,
462,
1678,
376,
23106,
29896,
1115,
6571,
13,
18884,
500,
13,
9651,
500,
13,
4706,
500,
13,
13,
4706,
1583,
29889,
9294,
3089,
8434,
3624,
29898,
3126,
29922,
29949,
20656,
29950,
29918,
16244,
29918,
8456,
29928,
29979,
29897,
13,
13,
4706,
396,
16499,
393,
278,
9066,
505,
278,
1021,
288,
5150,
1982,
848,
13,
4706,
12428,
29918,
13662,
353,
1583,
29889,
24830,
29918,
17640,
29889,
4230,
29918,
3827,
29889,
13662,
13,
4706,
288,
5150,
29918,
4645,
353,
288,
5150,
29896,
29889,
4032,
29898,
25978,
261,
29918,
1989,
29892,
13,
462,
462,
268,
3132,
29918,
19024,
29922,
25978,
261,
29918,
19024,
29892,
13,
462,
462,
268,
6503,
29918,
20348,
29918,
1989,
29922,
5943,
29918,
1989,
29892,
13,
462,
462,
268,
6503,
29918,
20348,
29918,
19024,
29922,
5943,
29918,
19024,
29892,
13,
462,
462,
268,
12608,
29918,
5696,
29922,
23106,
29896,
29889,
5425,
20728,
1299,
11499,
29918,
29950,
1529,
29907,
29897,
13,
4706,
1583,
3032,
15480,
29918,
23106,
29918,
13662,
29898,
7971,
29918,
13662,
1839,
25471,
7464,
13,
462,
462,
268,
288,
5150,
29918,
4645,
29897,
13,
13,
1678,
822,
1243,
29918,
27392,
29918,
700,
284,
29918,
6078,
29898,
1311,
1125,
13,
4706,
413,
4977,
29918,
23106,
29896,
29889,
29963,
29941,
29949,
6444,
29896,
29898,
1311,
29889,
18267,
29918,
4219,
29892,
13,
462,
9651,
21691,
29918,
1989,
29922,
25118,
29889,
25118,
29946,
2141,
20970,
29892,
13,
462,
9651,
21691,
29918,
19024,
29922,
25118,
29889,
25118,
29946,
2141,
20970,
29892,
13,
462,
9651,
2130,
29918,
1989,
29922,
25118,
29889,
25118,
29946,
2141,
20970,
29892,
13,
462,
9651,
2130,
29918,
19024,
29922,
25118,
29889,
25118,
29946,
2141,
20970,
29892,
13,
462,
9651,
2060,
29918,
333,
29922,
25118,
29889,
25118,
29946,
2141,
20970,
29897,
13,
13,
4706,
1583,
29889,
9294,
797,
877,
647,
4395,
491,
278,
10110,
1923,
742,
1583,
29889,
21707,
29889,
4905,
29897,
13,
2
] |
examples/sns.py | calebmarcus/awacs | 0 | 141349 | <gh_stars>0
from awacs.aws import Allow, ArnEquals, AWSPrincipal, Condition
from awacs.aws import Policy, Statement
import awacs.sns as sns
import awacs.sqs as sqs
region = 'us-east-1'
account = '012345678891'
pd = Policy(
Statement=[
Statement(
Effect=Allow,
Principal=AWSPrincipal("210987654321"),
Action=[sqs.SendMessage],
Resource=[sqs.ARN(region, account, "your_queue_xyz"), ],
Condition=Condition(
ArnEquals(
"aws:SourceArn",
sns.ARN(region, '123456789012', 'your_special_topic_1')
),
),
),
],
)
print(pd.to_json())
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
3773,
16815,
29889,
10467,
1053,
29408,
29892,
13767,
14776,
29892,
15540,
4040,
26706,
29892,
11790,
654,
13,
3166,
3773,
16815,
29889,
10467,
1053,
25219,
29892,
6666,
882,
13,
5215,
3773,
16815,
29889,
29879,
1983,
408,
269,
1983,
13,
5215,
3773,
16815,
29889,
3044,
29879,
408,
18074,
29879,
13,
13,
13,
12803,
353,
525,
375,
29899,
23027,
29899,
29896,
29915,
13,
10149,
353,
525,
29900,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29947,
29929,
29896,
29915,
13,
13,
15926,
353,
25219,
29898,
13,
1678,
6666,
882,
11759,
13,
4706,
6666,
882,
29898,
13,
9651,
26475,
29922,
15930,
29892,
13,
9651,
14771,
7830,
29922,
29909,
7811,
4040,
26706,
703,
29906,
29896,
29900,
29929,
29947,
29955,
29953,
29945,
29946,
29941,
29906,
29896,
4968,
13,
9651,
9123,
11759,
3044,
29879,
29889,
12600,
3728,
1402,
13,
9651,
18981,
11759,
3044,
29879,
29889,
15249,
29898,
12803,
29892,
3633,
29892,
376,
8066,
29918,
9990,
29918,
20230,
4968,
21251,
13,
9651,
11790,
654,
29922,
25255,
29898,
13,
18884,
13767,
14776,
29898,
13,
462,
1678,
376,
10467,
29901,
4435,
1433,
29876,
613,
13,
462,
1678,
269,
1983,
29889,
15249,
29898,
12803,
29892,
525,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29929,
29900,
29896,
29906,
742,
525,
8066,
29918,
18732,
29918,
13010,
29918,
29896,
1495,
13,
18884,
10353,
13,
9651,
10353,
13,
4706,
10353,
13,
1678,
21251,
13,
29897,
13,
2158,
29898,
15926,
29889,
517,
29918,
3126,
3101,
13,
2
] |
word_trainer.py | matthew-a-adams/morse-practice-scripts | 0 | 150078 | #!/usr/bin/env python3
from __future__ import division, print_function
import string, time, random, msvcrt
import sounddevice as sd
import numpy as np
from scipy import io
import scipy.io.wavfile
import csv
from collections import Counter
import morse
SPS = 8000
LETTERS = string.ascii_uppercase
FREQ = 750
WPM = 25
FS = 10
AUDIO_PADDING = 0.5 # Seconds
CLICK_SMOOTH = 2 # Tone periods
def main(freq, wpm, fs, prompt, force, limit, length, outFile, inFile):
messages = wordFinder(limit, length)
print('Message =', messages)
if prompt:
# Load spoken letter WAV files
letterNames = loadLetterNames()
sps = letterNames[LETTERS[0]][0]
else:
sps = SPS
print('Audio samples per second =', sps)
print('Tone period =', round(1000/freq, 1), 'ms')
dps = morse.wpmToDps(wpm) # Dots per second
mspd = 1000/dps # Dot duration in milliseconds
farnsworthScale = morse.farnsworthScaleFactor(wpm, fs)
print('Dot width =', round(mspd, 1), 'ms')
print('Dash width =', int(round(mspd * morse.DASH_WIDTH)), 'ms')
print('Character space =', int(round(mspd * morse.CHAR_SPACE * farnsworthScale)), 'ms')
print('Word space =', int(round(mspd * morse.WORD_SPACE * farnsworthScale)), 'ms')
print()
print("Hit <ENTER> to start.")
input()
continue_with_test = True
while continue_with_test:
missed_count = 0
continue_with_test = False
retest_messages = []
for message in messages:
# Compute morse code audio from plain text
playMessage(message, sps, wpm, fs, freq)
print('Enter message:')
start = time.time()
check = input()
if check.upper() == message.upper():
end = time.time()
print('Correct! [', '{:.2f}'.format(end-start), 's]')
else:
print('Wrong. The correct answer is ', message)
retest_messages.append(message)
continue_with_test = True
missed_count = missed_count + 1
print('You missed ', missed_count, '. ')
if force:
print('Retesting missed message...')
message = retest_messages
else:
continue_with_test = False
def wordFinder(limit, length):
messages = []
with open('dictionary.txt') as fin:
lines = (word.strip().upper() for word in fin)
words = [(word, Counter(word)) for word in lines]
rack = Counter(''.join(list(string.ascii_uppercase)))
for training_word, letter_count in words:
# Using length here to limit output for example purposes
if len(training_word) == length and not (letter_count - rack):
messages.append(training_word)
random.shuffle(messages)
messages = random.choices(messages, k=limit)
return messages
def playMessage(message, sps, wpm, fs, freq):
audio = stringToMorseAudio(message, sps, wpm, fs, freq, 0.5, None, promptVolume=0.3)
audio /= 2
playBlock(audio, sps)
time.sleep(0.1)
def addAudio(base, new, offset):
if base is None:
base = np.array([], dtype=np.float32)
assert offset >= 0
lenBase, lenNew = len(base), len(new)
if offset+lenNew > lenBase:
# Make base longer by padding with zeros
base = np.append(base, np.zeros(offset+lenNew-lenBase))
base[offset:offset+lenNew] += new
return base
def boolArrToSwitchedTone(boolArr, freq, sps, volume=1.0):
''' Create the tone audio from a bool array representation of morse code. '''
weightLen = int(CLICK_SMOOTH*sps/freq)
if weightLen % 2 == 0:
weightLen += 1 # Make sure the weight array is odd length
smoothingWeights = np.concatenate((np.arange(1, weightLen//2+1), np.arange(weightLen//2+1, 0, -1)))
smoothingWeights = smoothingWeights / np.sum(smoothingWeights)
numSamplesPadding = int(sps*AUDIO_PADDING) + int((weightLen-1)/2)
padding = np.zeros(numSamplesPadding, dtype=bool)
boolArr = np.concatenate((padding, boolArr, padding)).astype(np.float32)
if CLICK_SMOOTH <= 0:
smoothBoolArr = boolArr
else:
smoothBoolArr = np.correlate(boolArr, smoothingWeights, 'valid')
numSamples = len(smoothBoolArr)
x = np.arange(numSamples)
toneArr = np.sin(x * (freq*2*np.pi/sps)) * volume
toneArr *= smoothBoolArr
return toneArr
def stringToMorseAudio(message, sps=SPS, wpm=WPM, fs=FS, freq=FREQ, volume=1.0, letterPrompts=None, promptVolume=1.0):
message = message.upper()
code = morse.stringToMorse(message)
boolArr = morse.morseToBoolArr(code, sps, wpm, fs)
audio = boolArrToSwitchedTone(boolArr, freq, sps, volume)
numSamplesPadding = int(sps*AUDIO_PADDING)
if letterPrompts is not None:
for i in range(len(message)):
l = message[i]
if l in letterPrompts:
offsetPlus = morse.morseSampleDuration(morse.stringToMorse(message[:i+1]), sps, wpm, fs)
letterDuration = morse.morseSampleDuration(morse.letterToMorse(message[i]), sps, wpm, fs)
offset = numSamplesPadding + offsetPlus - letterDuration
audio = addAudio(audio, letterPrompts[l][1]*promptVolume, offset)
return audio
def loadLetterNames(pathTemplate='audio/letter-names/%s_.wav', letters=LETTERS):
out = {}
for letter in letters:
fName = pathTemplate % letter
out[letter] = loadWav(fName)
return out
def loadWav(fName):
rate, data = io.wavfile.getHistory(fName, mmap=True)
dataScale = data.astype(np.float32) / maxDtypeVolume(data.dtype)
return rate, dataScale
def maxDtypeVolume(dtype):
try:
return np.iinfo(dtype).max # Integer data type
except ValueError:
return 1.0 # Float data type
def playLetterNamesBlock(letterNames):
sps = letterNames[LETTERS[0]][0]
letterNameList = [letterNames[l][1] for l in LETTERS]
alphabetAudio = np.concatenate(letterNameList)
playBlock(alphabetAudio, sps)
def genTone(frequency, duration, sps=SPS, volume=1.0):
return np.sin(np.arange(sps*duration)*(frequency*2*np.pi/sps))*volume
def playTone(*args, **kwargs):
play(genTone(*args, **kwargs))
def play(array, sps=SPS):
sd.play(array.astype(np.float32), sps)
def waitFor(array, sps=SPS):
duration = len(array) / sps
time.sleep(duration)
def playBlock(array, sps=SPS):
play(array, sps)
waitFor(array, sps)
if __name__ == '__main__':
import sys, argparse
parser = argparse.ArgumentParser(description='Convert text to morse code audio.')
parser.add_argument('-f', type=float, default=FREQ, help='Tone frequency')
parser.add_argument('--wpm', type=float, default=WPM, help='Words per minute')
parser.add_argument('--fs', type=float, default=FS, help='Farnsworth speed')
parser.add_argument('-p', action='store_true', default=False, help='Say letters along with morse code')
parser.add_argument('--force', action='store_true', default=False, help='Force user to get the answer correct before completing')
parser.add_argument('--limit', type=int, default=0, help='Limit to X queries')
parser.add_argument('--length', type=int, default=0, help='Length of the word')
parser.add_argument('-o', type=str, default='', help='Output to given WAV file instead of playing sound')
parser.add_argument('-i', type=str, default='', help='Input from text file')
args = parser.parse_args()
main(args.f, args.wpm, args.fs, args.p, args.force, args.limit, args.length, args.o, args.i)
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
29892,
1596,
29918,
2220,
13,
5215,
1347,
29892,
931,
29892,
4036,
29892,
286,
4501,
29883,
2273,
13,
5215,
6047,
10141,
408,
28972,
13,
5215,
12655,
408,
7442,
13,
3166,
4560,
2272,
1053,
12013,
13,
5215,
4560,
2272,
29889,
601,
29889,
29893,
485,
1445,
13,
5215,
11799,
13,
3166,
16250,
1053,
315,
5336,
13,
13,
5215,
3036,
344,
13,
13,
5550,
29903,
353,
29871,
29947,
29900,
29900,
29900,
13,
1307,
29911,
4945,
29903,
353,
1347,
29889,
294,
18869,
29918,
21064,
4878,
13,
29943,
1525,
29984,
353,
29871,
29955,
29945,
29900,
13,
29956,
13427,
353,
29871,
29906,
29945,
13,
9998,
353,
29871,
29896,
29900,
13,
25951,
4571,
29949,
29918,
29925,
17744,
4214,
353,
29871,
29900,
29889,
29945,
29871,
396,
6440,
29879,
13,
6154,
2965,
29968,
29918,
29903,
6720,
2891,
29950,
353,
29871,
29906,
29871,
396,
323,
650,
23704,
13,
13,
1753,
1667,
29898,
29888,
7971,
29892,
281,
3358,
29892,
18920,
29892,
9508,
29892,
4889,
29892,
4046,
29892,
3309,
29892,
714,
2283,
29892,
297,
2283,
1125,
13,
13,
29871,
7191,
353,
1734,
29943,
4995,
29898,
13400,
29892,
3309,
29897,
13,
13,
29871,
1596,
877,
3728,
353,
742,
7191,
29897,
13,
13,
29871,
565,
9508,
29901,
13,
1678,
396,
16012,
19182,
5497,
399,
7520,
2066,
13,
1678,
5497,
8659,
353,
2254,
12024,
357,
8659,
580,
13,
1678,
269,
567,
353,
5497,
8659,
29961,
1307,
29911,
4945,
29903,
29961,
29900,
29962,
3816,
29900,
29962,
13,
29871,
1683,
29901,
13,
1678,
269,
567,
353,
317,
7024,
13,
29871,
1596,
877,
17111,
11916,
639,
1473,
353,
742,
269,
567,
29897,
13,
29871,
1596,
877,
29911,
650,
3785,
268,
353,
742,
4513,
29898,
29896,
29900,
29900,
29900,
29914,
29888,
7971,
29892,
29871,
29896,
511,
525,
1516,
1495,
13,
13,
29871,
270,
567,
353,
3036,
344,
29889,
29893,
3358,
1762,
29928,
567,
29898,
29893,
3358,
29897,
29871,
396,
360,
1862,
639,
1473,
13,
29871,
286,
1028,
29881,
353,
29871,
29896,
29900,
29900,
29900,
29914,
29881,
567,
29871,
396,
360,
327,
14385,
297,
3533,
21462,
13,
29871,
2215,
1983,
12554,
17185,
353,
3036,
344,
29889,
15641,
1983,
12554,
17185,
29943,
7168,
29898,
29893,
3358,
29892,
18920,
29897,
13,
29871,
1596,
877,
29928,
327,
2920,
539,
353,
742,
4513,
29898,
29885,
1028,
29881,
29892,
29871,
29896,
511,
525,
1516,
1495,
13,
29871,
1596,
877,
29928,
1161,
2920,
418,
353,
742,
938,
29898,
14486,
29898,
29885,
1028,
29881,
334,
3036,
344,
29889,
29928,
24943,
29918,
22574,
8243,
525,
1516,
1495,
13,
29871,
1596,
877,
20755,
2913,
353,
742,
938,
29898,
14486,
29898,
29885,
1028,
29881,
334,
3036,
344,
29889,
11282,
29918,
5550,
11538,
334,
2215,
1983,
12554,
17185,
8243,
525,
1516,
1495,
13,
29871,
1596,
877,
14463,
2913,
418,
353,
742,
938,
29898,
14486,
29898,
29885,
1028,
29881,
334,
3036,
344,
29889,
17013,
29918,
5550,
11538,
334,
2215,
1983,
12554,
17185,
8243,
525,
1516,
1495,
13,
13,
29871,
1596,
580,
13,
29871,
1596,
703,
29950,
277,
529,
3919,
1001,
29958,
304,
1369,
23157,
13,
29871,
1881,
580,
13,
13,
29871,
6773,
29918,
2541,
29918,
1688,
353,
5852,
13,
13,
29871,
1550,
6773,
29918,
2541,
29918,
1688,
29901,
13,
13,
1678,
13726,
29918,
2798,
353,
29871,
29900,
13,
1678,
6773,
29918,
2541,
29918,
1688,
353,
7700,
13,
1678,
337,
1688,
29918,
19158,
353,
5159,
13,
13,
1678,
363,
2643,
297,
7191,
29901,
13,
13,
418,
396,
11796,
29872,
3036,
344,
775,
10348,
515,
8656,
1426,
13,
418,
1708,
3728,
29898,
4906,
29892,
269,
567,
29892,
281,
3358,
29892,
18920,
29892,
3005,
29939,
29897,
13,
13,
418,
1596,
877,
10399,
2643,
29901,
1495,
13,
418,
1369,
353,
931,
29889,
2230,
580,
13,
418,
1423,
353,
1881,
580,
13,
13,
418,
565,
1423,
29889,
21064,
580,
1275,
2643,
29889,
21064,
7295,
13,
4706,
1095,
353,
931,
29889,
2230,
580,
13,
4706,
1596,
877,
12521,
1621,
29991,
518,
742,
22372,
29901,
29889,
29906,
29888,
29913,
4286,
4830,
29898,
355,
29899,
2962,
511,
525,
29879,
29962,
1495,
13,
418,
1683,
29901,
13,
4706,
1596,
877,
29956,
29373,
29889,
450,
1959,
1234,
338,
13420,
2643,
29897,
13,
4706,
337,
1688,
29918,
19158,
29889,
4397,
29898,
4906,
29897,
13,
4706,
6773,
29918,
2541,
29918,
1688,
353,
5852,
13,
4706,
13726,
29918,
2798,
353,
13726,
29918,
2798,
718,
29871,
29896,
13,
13,
1678,
1596,
877,
3492,
13726,
13420,
13726,
29918,
2798,
29892,
15300,
25710,
13,
13,
1678,
565,
4889,
29901,
13,
418,
1596,
877,
8015,
342,
292,
13726,
2643,
856,
1495,
13,
418,
2643,
353,
337,
1688,
29918,
19158,
13,
1678,
1683,
29901,
13,
418,
6773,
29918,
2541,
29918,
1688,
353,
7700,
13,
13,
1753,
1734,
29943,
4995,
29898,
13400,
29892,
3309,
1125,
13,
13,
29871,
7191,
353,
5159,
13,
13,
29871,
411,
1722,
877,
27126,
29889,
3945,
1495,
408,
1436,
29901,
13,
1678,
3454,
353,
313,
1742,
29889,
17010,
2141,
21064,
580,
363,
1734,
297,
1436,
29897,
13,
1678,
3838,
353,
17288,
1742,
29892,
315,
5336,
29898,
1742,
876,
363,
1734,
297,
3454,
29962,
13,
13,
29871,
1153,
384,
353,
315,
5336,
877,
4286,
7122,
29898,
1761,
29898,
1807,
29889,
294,
18869,
29918,
21064,
4878,
4961,
13,
13,
29871,
363,
6694,
29918,
1742,
29892,
5497,
29918,
2798,
297,
3838,
29901,
13,
13,
1678,
396,
5293,
3309,
1244,
304,
4046,
1962,
363,
1342,
11976,
13,
1678,
565,
7431,
29898,
26495,
29918,
1742,
29897,
1275,
3309,
322,
451,
313,
15670,
29918,
2798,
448,
1153,
384,
1125,
13,
418,
7191,
29889,
4397,
29898,
26495,
29918,
1742,
29897,
13,
13,
29871,
4036,
29889,
845,
21897,
29898,
19158,
29897,
13,
29871,
7191,
353,
4036,
29889,
1859,
1575,
29898,
19158,
29892,
413,
29922,
13400,
29897,
13,
13,
29871,
736,
7191,
13,
13,
1753,
1708,
3728,
29898,
4906,
29892,
269,
567,
29892,
281,
3358,
29892,
18920,
29892,
3005,
29939,
1125,
13,
29871,
10348,
353,
1347,
1762,
28581,
344,
17111,
29898,
4906,
29892,
269,
567,
29892,
281,
3358,
29892,
18920,
29892,
3005,
29939,
29892,
29871,
29900,
29889,
29945,
29892,
6213,
29892,
9508,
24679,
29922,
29900,
29889,
29941,
29897,
13,
29871,
10348,
847,
29922,
29871,
29906,
13,
13,
29871,
1708,
7445,
29898,
18494,
29892,
269,
567,
29897,
13,
29871,
931,
29889,
17059,
29898,
29900,
29889,
29896,
29897,
13,
13,
1753,
788,
17111,
29898,
3188,
29892,
716,
29892,
9210,
1125,
13,
29871,
565,
2967,
338,
6213,
29901,
13,
1678,
2967,
353,
7442,
29889,
2378,
4197,
1402,
26688,
29922,
9302,
29889,
7411,
29941,
29906,
29897,
13,
29871,
4974,
9210,
6736,
29871,
29900,
13,
29871,
7431,
5160,
29892,
7431,
4373,
353,
7431,
29898,
3188,
511,
7431,
29898,
1482,
29897,
13,
29871,
565,
9210,
29974,
2435,
4373,
1405,
7431,
5160,
29901,
13,
1678,
396,
8561,
2967,
5520,
491,
7164,
411,
24786,
13,
1678,
2967,
353,
7442,
29889,
4397,
29898,
3188,
29892,
7442,
29889,
3298,
359,
29898,
10289,
29974,
2435,
4373,
29899,
2435,
5160,
876,
13,
29871,
2967,
29961,
10289,
29901,
10289,
29974,
2435,
4373,
29962,
4619,
716,
13,
29871,
736,
2967,
13,
13,
1753,
6120,
16401,
1762,
24995,
287,
29911,
650,
29898,
11227,
16401,
29892,
3005,
29939,
29892,
269,
567,
29892,
7977,
29922,
29896,
29889,
29900,
1125,
13,
29871,
14550,
6204,
278,
16225,
10348,
515,
263,
6120,
1409,
8954,
310,
3036,
344,
775,
29889,
14550,
13,
29871,
7688,
21515,
353,
938,
29898,
6154,
2965,
29968,
29918,
29903,
6720,
2891,
29950,
29930,
29879,
567,
29914,
29888,
7971,
29897,
13,
29871,
565,
7688,
21515,
1273,
29871,
29906,
1275,
29871,
29900,
29901,
13,
1678,
7688,
21515,
4619,
29871,
29896,
29871,
396,
8561,
1854,
278,
7688,
1409,
338,
7736,
3309,
13,
29871,
1560,
29877,
6046,
4806,
5861,
353,
7442,
29889,
535,
29883,
2579,
403,
3552,
9302,
29889,
279,
927,
29898,
29896,
29892,
7688,
21515,
458,
29906,
29974,
29896,
511,
7442,
29889,
279,
927,
29898,
7915,
21515,
458,
29906,
29974,
29896,
29892,
29871,
29900,
29892,
448,
29896,
4961,
13,
29871,
1560,
29877,
6046,
4806,
5861,
353,
1560,
29877,
6046,
4806,
5861,
847,
7442,
29889,
2083,
29898,
3844,
29877,
6046,
4806,
5861,
29897,
13,
29871,
954,
29903,
9422,
29925,
4676,
353,
938,
29898,
29879,
567,
29930,
25951,
4571,
29949,
29918,
29925,
17744,
4214,
29897,
718,
938,
3552,
7915,
21515,
29899,
29896,
6802,
29906,
29897,
13,
29871,
7164,
353,
7442,
29889,
3298,
359,
29898,
1949,
29903,
9422,
29925,
4676,
29892,
26688,
29922,
11227,
29897,
13,
29871,
6120,
16401,
353,
7442,
29889,
535,
29883,
2579,
403,
3552,
12791,
29892,
6120,
16401,
29892,
7164,
8106,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
29897,
13,
29871,
565,
17332,
2965,
29968,
29918,
29903,
6720,
2891,
29950,
5277,
29871,
29900,
29901,
13,
1678,
10597,
24693,
16401,
353,
6120,
16401,
13,
29871,
1683,
29901,
13,
1678,
10597,
24693,
16401,
353,
7442,
29889,
2616,
2674,
403,
29898,
11227,
16401,
29892,
1560,
29877,
6046,
4806,
5861,
29892,
525,
3084,
1495,
13,
29871,
954,
29903,
9422,
353,
7431,
29898,
3844,
6983,
24693,
16401,
29897,
13,
29871,
921,
353,
7442,
29889,
279,
927,
29898,
1949,
29903,
9422,
29897,
13,
29871,
16225,
16401,
353,
7442,
29889,
5223,
29898,
29916,
334,
313,
29888,
7971,
29930,
29906,
29930,
9302,
29889,
1631,
29914,
29879,
567,
876,
334,
7977,
13,
29871,
16225,
16401,
334,
29922,
10597,
24693,
16401,
13,
29871,
736,
16225,
16401,
13,
13,
1753,
1347,
1762,
28581,
344,
17111,
29898,
4906,
29892,
269,
567,
29922,
5550,
29903,
29892,
281,
3358,
29922,
29956,
13427,
29892,
18920,
29922,
9998,
29892,
3005,
29939,
29922,
29943,
1525,
29984,
29892,
7977,
29922,
29896,
29889,
29900,
29892,
5497,
18571,
16485,
29922,
8516,
29892,
9508,
24679,
29922,
29896,
29889,
29900,
1125,
13,
29871,
2643,
353,
2643,
29889,
21064,
580,
13,
29871,
775,
353,
3036,
344,
29889,
1807,
1762,
28581,
344,
29898,
4906,
29897,
13,
29871,
6120,
16401,
353,
3036,
344,
29889,
12257,
344,
1762,
24693,
16401,
29898,
401,
29892,
269,
567,
29892,
281,
3358,
29892,
18920,
29897,
13,
29871,
10348,
353,
6120,
16401,
1762,
24995,
287,
29911,
650,
29898,
11227,
16401,
29892,
3005,
29939,
29892,
269,
567,
29892,
7977,
29897,
13,
29871,
954,
29903,
9422,
29925,
4676,
353,
938,
29898,
29879,
567,
29930,
25951,
4571,
29949,
29918,
29925,
17744,
4214,
29897,
13,
29871,
565,
5497,
18571,
16485,
338,
451,
6213,
29901,
13,
1678,
363,
474,
297,
3464,
29898,
2435,
29898,
4906,
22164,
13,
418,
301,
353,
2643,
29961,
29875,
29962,
13,
418,
565,
301,
297,
5497,
18571,
16485,
29901,
13,
4706,
9210,
29575,
353,
3036,
344,
29889,
12257,
344,
17708,
18984,
29898,
12257,
344,
29889,
1807,
1762,
28581,
344,
29898,
4906,
7503,
29875,
29974,
29896,
11724,
269,
567,
29892,
281,
3358,
29892,
18920,
29897,
13,
4706,
5497,
18984,
353,
3036,
344,
29889,
12257,
344,
17708,
18984,
29898,
12257,
344,
29889,
15670,
1762,
28581,
344,
29898,
4906,
29961,
29875,
11724,
269,
567,
29892,
281,
3358,
29892,
18920,
29897,
13,
4706,
9210,
353,
954,
29903,
9422,
29925,
4676,
718,
9210,
29575,
448,
5497,
18984,
13,
4706,
10348,
353,
788,
17111,
29898,
18494,
29892,
5497,
18571,
16485,
29961,
29880,
3816,
29896,
14178,
14032,
415,
24679,
29892,
9210,
29897,
13,
29871,
736,
10348,
13,
13,
13,
1753,
2254,
12024,
357,
8659,
29898,
2084,
6733,
2433,
18494,
29914,
15670,
29899,
7039,
22584,
29879,
5396,
29893,
485,
742,
8721,
29922,
1307,
29911,
4945,
29903,
1125,
13,
29871,
714,
353,
6571,
13,
29871,
363,
5497,
297,
8721,
29901,
13,
1678,
285,
1170,
353,
2224,
6733,
1273,
5497,
13,
1678,
714,
29961,
15670,
29962,
353,
2254,
29956,
485,
29898,
29888,
1170,
29897,
13,
29871,
736,
714,
13,
1753,
2254,
29956,
485,
29898,
29888,
1170,
1125,
13,
29871,
6554,
29892,
848,
353,
12013,
29889,
29893,
485,
1445,
29889,
657,
20570,
29898,
29888,
1170,
29892,
286,
1958,
29922,
5574,
29897,
13,
29871,
848,
17185,
353,
848,
29889,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
29897,
847,
4236,
29928,
1853,
24679,
29898,
1272,
29889,
29881,
1853,
29897,
13,
29871,
736,
6554,
29892,
848,
17185,
13,
1753,
4236,
29928,
1853,
24679,
29898,
29881,
1853,
1125,
13,
29871,
1018,
29901,
13,
1678,
736,
7442,
29889,
29875,
3888,
29898,
29881,
1853,
467,
3317,
29871,
396,
8102,
848,
1134,
13,
29871,
5174,
7865,
2392,
29901,
13,
1678,
736,
29871,
29896,
29889,
29900,
29871,
396,
27842,
848,
1134,
13,
1753,
1708,
12024,
357,
8659,
7445,
29898,
15670,
8659,
1125,
13,
29871,
269,
567,
353,
5497,
8659,
29961,
1307,
29911,
4945,
29903,
29961,
29900,
29962,
3816,
29900,
29962,
13,
29871,
5497,
1170,
1293,
353,
518,
15670,
8659,
29961,
29880,
3816,
29896,
29962,
363,
301,
297,
365,
2544,
4945,
29903,
29962,
13,
29871,
22968,
17111,
353,
7442,
29889,
535,
29883,
2579,
403,
29898,
15670,
1170,
1293,
29897,
13,
29871,
1708,
7445,
29898,
284,
17416,
17111,
29892,
269,
567,
29897,
13,
13,
1753,
2531,
29911,
650,
29898,
10745,
23860,
29892,
14385,
29892,
269,
567,
29922,
5550,
29903,
29892,
7977,
29922,
29896,
29889,
29900,
1125,
13,
29871,
736,
7442,
29889,
5223,
29898,
9302,
29889,
279,
927,
29898,
29879,
567,
29930,
19708,
11877,
29898,
10745,
23860,
29930,
29906,
29930,
9302,
29889,
1631,
29914,
29879,
567,
876,
29930,
24623,
13,
1753,
1708,
29911,
650,
10456,
5085,
29892,
3579,
19290,
1125,
13,
29871,
1708,
29898,
1885,
29911,
650,
10456,
5085,
29892,
3579,
19290,
876,
13,
1753,
1708,
29898,
2378,
29892,
269,
567,
29922,
5550,
29903,
1125,
13,
29871,
28972,
29889,
1456,
29898,
2378,
29889,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
511,
269,
567,
29897,
13,
1753,
4480,
2831,
29898,
2378,
29892,
269,
567,
29922,
5550,
29903,
1125,
13,
29871,
14385,
353,
7431,
29898,
2378,
29897,
847,
269,
567,
13,
29871,
931,
29889,
17059,
29898,
19708,
29897,
13,
1753,
1708,
7445,
29898,
2378,
29892,
269,
567,
29922,
5550,
29903,
1125,
13,
29871,
1708,
29898,
2378,
29892,
269,
567,
29897,
13,
29871,
4480,
2831,
29898,
2378,
29892,
269,
567,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
29871,
1053,
10876,
29892,
1852,
5510,
13,
13,
29871,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
2433,
18455,
1426,
304,
3036,
344,
775,
10348,
29889,
1495,
13,
29871,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29888,
742,
1134,
29922,
7411,
29892,
2322,
29922,
29943,
1525,
29984,
29892,
1371,
2433,
29911,
650,
10868,
1495,
13,
29871,
13812,
29889,
1202,
29918,
23516,
877,
489,
29893,
3358,
742,
1134,
29922,
7411,
29892,
2322,
29922,
29956,
13427,
29892,
1371,
2433,
29956,
4339,
639,
11015,
1495,
13,
29871,
13812,
29889,
1202,
29918,
23516,
877,
489,
5847,
742,
1134,
29922,
7411,
29892,
2322,
29922,
9998,
29892,
1371,
2433,
29943,
279,
1983,
12554,
6210,
1495,
13,
29871,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29886,
742,
3158,
2433,
8899,
29918,
3009,
742,
2322,
29922,
8824,
29892,
1371,
2433,
29903,
388,
8721,
3412,
411,
3036,
344,
775,
1495,
13,
29871,
13812,
29889,
1202,
29918,
23516,
877,
489,
10118,
742,
3158,
2433,
8899,
29918,
3009,
742,
2322,
29922,
8824,
29892,
1371,
2433,
2831,
346,
1404,
304,
679,
278,
1234,
1959,
1434,
1614,
1259,
1495,
13,
29871,
13812,
29889,
1202,
29918,
23516,
877,
489,
13400,
742,
1134,
29922,
524,
29892,
2322,
29922,
29900,
29892,
1371,
2433,
24445,
304,
1060,
9365,
1495,
13,
29871,
13812,
29889,
1202,
29918,
23516,
877,
489,
2848,
742,
1134,
29922,
524,
29892,
2322,
29922,
29900,
29892,
1371,
2433,
6513,
310,
278,
1734,
1495,
13,
29871,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29877,
742,
1134,
29922,
710,
29892,
2322,
2433,
742,
1371,
2433,
6466,
304,
2183,
399,
7520,
934,
2012,
310,
8743,
6047,
1495,
13,
29871,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29875,
742,
1134,
29922,
710,
29892,
2322,
2433,
742,
1371,
2433,
4290,
515,
1426,
934,
1495,
13,
29871,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
29871,
1667,
29898,
5085,
29889,
29888,
29892,
6389,
29889,
29893,
3358,
29892,
6389,
29889,
5847,
29892,
6389,
29889,
29886,
29892,
6389,
29889,
10118,
29892,
6389,
29889,
13400,
29892,
6389,
29889,
2848,
29892,
6389,
29889,
29877,
29892,
6389,
29889,
29875,
29897,
13,
13,
2
] |
hopper/utils/args/CommandHandler.py | Xilinx/hopper | 2 | 104454 | <filename>hopper/utils/args/CommandHandler.py
# Copyright (c) 2015 Xilinx Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import sys
from hopper.utils.logger import *
from hopper.utils.Collections import *
from ArgumentParserException import *
from CommandBase import *
from BaseField import *
class CommandHandler:
def __init__(self):
self.commands = []
self.default = None
@staticmethod
def getCommandNameFromClass(c):
if c:
attrs = dir(c)
if "CommandName" in attrs:
return getAsListOrIterable(getattr(c, "CommandName"))
return None
@staticmethod
def getAllFieldsFromClass(c):
if c:
fields = {}
for attrname in dir(c):
if not attrname.startswith("__"):
attr = getattr(c, attrname)
if not callable(attr) and isinstance(attr, BaseField):
fields[attrname] = attr
return fields
return None
def getCommand(self, args):
command = None
options = list()
fields = list()
# Find the Command
for i in args[1:]:
if i.startswith("-"):
options.append(i)
else:
# assume first arg is the command otherwise there is no command
if not(command) and len(fields) == 0:
command = self.findCommandByName(i)
if not(command):
fields.append(i)
else:
fields.append(i)
if command == None:
if self.default:
command = self.default
else:
raise ArgumentParserException("No command specified, and no default fallback avaliable.")
# Associated fields for the command
commandFields = {}
debug("Command: '%s' -> fields:" % (command))
if command:
for i in CommandHandler.getAllFieldsFromClass(command).iteritems():
commandFields[i[0]] = BaseFieldValue(i[1])
debug(" * '%s' -> %s" % (i[0], i[1]))
# Match all options first
for i in options:
matched = False
for f in commandFields.iteritems():
#debug("Testing option '%s' against '%s'" % (i, f))
if f[1].parse(i):
matched = True
break
if not(matched):
raise ArgumentParserException("Unknown Argument '%s'" % i)
# Match all fields
fieldindex = 0
for i in fields:
matched = False
for f in commandFields.iteritems():
#debug("Testing field '%s' against '%s'" % (i, f))
if f[1].parse(i, fieldindex):
matched = True
break
if not(matched):
raise ArgumentParserException("Unknown Argument '%s'" % i)
else:
fieldindex += 1
if command != None:
commandInstance = command()
# Populate the command with its values
debug("Parsed fields:")
for i in commandFields.iteritems():
debug(" * '%s' -> %s" % (i[0], i[1]))
commandInstance.__dict__[i[0]] = i[1].getOrDefault()
commandInstance.__options__()
debug(repr(commandInstance))
debug(repr(commandInstance.__dict__))
if commandInstance != None:
return commandInstance
return None
def findCommandByName(self, name):
for i in self.commands:
names = CommandHandler.getCommandNameFromClass(i)
if names and name in names:
return i
return None
def addCommand(self, command):
if issubclass(command, CommandBase):
self.commands.append(command)
else:
raise TypeError("Attempted to add '%s' as command which does not inherit from CommandBase" % command)
def setDefault(self, command):
if issubclass(command, CommandBase):
self.default = command
else:
raise TypeError("Attempted to set '%s' as default command which does not inherit from CommandBase" % command)
| [
1,
529,
9507,
29958,
1251,
2496,
29914,
13239,
29914,
5085,
29914,
6255,
4598,
29889,
2272,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29945,
1060,
309,
14668,
9266,
29889,
13,
29937,
13,
29937,
20894,
2333,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
29892,
304,
738,
2022,
4017,
292,
263,
3509,
13,
29937,
310,
445,
7047,
322,
6942,
5106,
2066,
313,
1552,
376,
6295,
14093,
4968,
304,
5376,
13,
29937,
297,
278,
18540,
1728,
24345,
29892,
3704,
1728,
29485,
278,
10462,
13,
29937,
304,
671,
29892,
3509,
29892,
6623,
29892,
10366,
29892,
9805,
29892,
1320,
2666,
29892,
269,
803,
1947,
29892,
322,
29914,
272,
19417,
13,
29937,
14591,
310,
278,
18540,
29892,
322,
304,
14257,
12407,
304,
6029,
278,
18540,
338,
13,
29937,
15252,
3276,
304,
437,
577,
29892,
4967,
304,
278,
1494,
5855,
29901,
13,
29937,
13,
29937,
450,
2038,
3509,
1266,
8369,
322,
445,
10751,
8369,
4091,
367,
5134,
297,
13,
29937,
599,
14591,
470,
23228,
2011,
1080,
310,
278,
18540,
29889,
13,
29937,
13,
29937,
6093,
7791,
7818,
12982,
1525,
8519,
13756,
13044,
3352,
376,
3289,
8519,
613,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29979,
8079,
13764,
29979,
476,
22255,
29892,
8528,
15094,
1799,
6323,
13,
29937,
306,
3580,
5265,
3352,
29892,
2672,
6154,
15789,
4214,
350,
2692,
6058,
27848,
3352,
7495,
6093,
399,
1718,
29934,
13566,
29059,
8079,
341,
1001,
3210,
13566,
2882,
6227,
11937,
29892,
13,
29937,
383,
1806,
8186,
1799,
15842,
319,
349,
8322,
2965,
13309,
1718,
349,
4574,
13152,
1660,
5300,
405,
1164,
1177,
15860,
1177,
1692,
13780,
29889,
2672,
11698,
382,
29963,
3919,
24972,
9818,
6093,
13,
29937,
26524,
29950,
24125,
6323,
315,
4590,
29979,
22789,
3912,
379,
5607,
8032,
29903,
20700,
17705,
6181,
15842,
13764,
29979,
315,
4375,
7833,
29892,
21330,
1529,
1692,
29903,
6323,
438,
29911,
4448,
13,
29937,
17705,
2882,
6227,
11937,
29892,
12317,
2544,
4448,
2672,
13764,
319,
9838,
8079,
8707,
29911,
4717,
1783,
29892,
323,
8476,
6323,
438,
29911,
4448,
22119,
1660,
29892,
9033,
3235,
4214,
3895,
29892,
13,
29937,
19474,
8079,
6323,
2672,
8707,
8186,
9838,
22659,
6093,
7791,
7818,
12982,
1525,
6323,
6093,
501,
1660,
6323,
438,
29911,
4448,
5012,
1964,
4214,
29903,
2672,
6093,
13,
29937,
7791,
7818,
12982,
1525,
29889,
13,
13,
5215,
10876,
13,
13,
3166,
5089,
2496,
29889,
13239,
29889,
21707,
1053,
334,
13,
3166,
5089,
2496,
29889,
13239,
29889,
19466,
1053,
334,
13,
13,
3166,
23125,
11726,
2451,
1053,
334,
13,
3166,
10516,
5160,
1053,
334,
13,
3166,
7399,
3073,
1053,
334,
13,
13,
1990,
10516,
4598,
29901,
13,
12,
1753,
4770,
2344,
12035,
1311,
1125,
13,
12,
12,
1311,
29889,
26381,
353,
5159,
13,
12,
12,
1311,
29889,
4381,
353,
6213,
13,
13,
12,
29992,
7959,
5696,
13,
12,
1753,
679,
6255,
1170,
4591,
2385,
29898,
29883,
1125,
13,
12,
12,
361,
274,
29901,
13,
12,
12,
12,
5552,
29879,
353,
4516,
29898,
29883,
29897,
13,
12,
12,
12,
361,
376,
6255,
1170,
29908,
297,
12421,
29879,
29901,
13,
12,
12,
12,
12,
2457,
679,
2887,
1293,
2816,
13463,
519,
29898,
657,
5552,
29898,
29883,
29892,
376,
6255,
1170,
5783,
13,
12,
12,
2457,
6213,
13,
13,
12,
29992,
7959,
5696,
13,
12,
1753,
679,
3596,
14256,
4591,
2385,
29898,
29883,
1125,
13,
12,
12,
361,
274,
29901,
13,
12,
12,
12,
9621,
353,
6571,
13,
12,
12,
12,
1454,
12421,
978,
297,
4516,
29898,
29883,
1125,
13,
12,
12,
12,
12,
361,
451,
12421,
978,
29889,
27382,
2541,
703,
1649,
29908,
1125,
13,
12,
12,
12,
12,
12,
5552,
353,
679,
5552,
29898,
29883,
29892,
12421,
978,
29897,
13,
12,
12,
12,
12,
12,
361,
451,
1246,
519,
29898,
5552,
29897,
322,
338,
8758,
29898,
5552,
29892,
7399,
3073,
1125,
13,
12,
12,
12,
12,
12,
12,
9621,
29961,
5552,
978,
29962,
353,
12421,
13,
12,
12,
12,
2457,
4235,
13,
12,
12,
2457,
6213,
13,
13,
12,
1753,
679,
6255,
29898,
1311,
29892,
6389,
1125,
13,
12,
12,
6519,
353,
6213,
13,
12,
12,
6768,
353,
1051,
580,
13,
12,
12,
9621,
353,
1051,
580,
13,
13,
12,
12,
29937,
10987,
278,
10516,
13,
12,
12,
1454,
474,
297,
6389,
29961,
29896,
29901,
5387,
13,
12,
12,
12,
361,
474,
29889,
27382,
2541,
703,
29899,
29908,
1125,
13,
12,
12,
12,
12,
6768,
29889,
4397,
29898,
29875,
29897,
13,
12,
12,
12,
2870,
29901,
13,
12,
12,
12,
12,
29937,
5251,
937,
1852,
338,
278,
1899,
6467,
727,
338,
694,
1899,
13,
12,
12,
12,
12,
361,
451,
29898,
6519,
29897,
322,
7431,
29898,
9621,
29897,
1275,
29871,
29900,
29901,
13,
12,
12,
12,
12,
12,
6519,
353,
1583,
29889,
2886,
6255,
2059,
1170,
29898,
29875,
29897,
13,
12,
12,
12,
12,
12,
361,
451,
29898,
6519,
1125,
13,
12,
12,
12,
12,
12,
12,
9621,
29889,
4397,
29898,
29875,
29897,
13,
12,
12,
12,
12,
2870,
29901,
13,
12,
12,
12,
12,
12,
9621,
29889,
4397,
29898,
29875,
29897,
13,
13,
12,
12,
361,
1899,
1275,
6213,
29901,
13,
12,
12,
12,
361,
1583,
29889,
4381,
29901,
13,
12,
12,
12,
12,
6519,
353,
1583,
29889,
4381,
13,
12,
12,
12,
2870,
29901,
13,
12,
12,
12,
12,
22692,
23125,
11726,
2451,
703,
3782,
1899,
6790,
29892,
322,
694,
2322,
6416,
1627,
263,
791,
29875,
519,
23157,
13,
13,
12,
12,
29937,
6853,
630,
4235,
363,
278,
1899,
13,
12,
12,
6519,
14256,
353,
6571,
13,
12,
12,
8382,
703,
6255,
29901,
14210,
29879,
29915,
1599,
4235,
6160,
1273,
313,
6519,
876,
13,
12,
12,
361,
1899,
29901,
13,
12,
12,
12,
1454,
474,
297,
10516,
4598,
29889,
657,
3596,
14256,
4591,
2385,
29898,
6519,
467,
1524,
7076,
7295,
13,
12,
12,
12,
12,
6519,
14256,
29961,
29875,
29961,
29900,
5262,
353,
7399,
3073,
1917,
29898,
29875,
29961,
29896,
2314,
13,
12,
12,
12,
12,
8382,
703,
1678,
334,
14210,
29879,
29915,
1599,
1273,
29879,
29908,
1273,
313,
29875,
29961,
29900,
1402,
474,
29961,
29896,
12622,
13,
13,
12,
12,
29937,
14514,
599,
3987,
937,
13,
12,
12,
1454,
474,
297,
3987,
29901,
13,
12,
12,
12,
4352,
287,
353,
7700,
13,
12,
12,
12,
1454,
285,
297,
1899,
14256,
29889,
1524,
7076,
7295,
13,
12,
12,
12,
12,
29937,
8382,
703,
3057,
292,
2984,
14210,
29879,
29915,
2750,
14210,
29879,
11838,
1273,
313,
29875,
29892,
285,
876,
13,
12,
12,
12,
12,
361,
285,
29961,
29896,
1822,
5510,
29898,
29875,
1125,
13,
12,
12,
12,
12,
12,
4352,
287,
353,
5852,
13,
12,
12,
12,
12,
12,
8690,
13,
12,
12,
12,
361,
451,
29898,
4352,
287,
1125,
13,
12,
12,
12,
12,
22692,
23125,
11726,
2451,
703,
14148,
23125,
14210,
29879,
11838,
1273,
474,
29897,
13,
13,
12,
12,
29937,
14514,
599,
4235,
13,
12,
12,
2671,
2248,
353,
29871,
29900,
13,
12,
12,
1454,
474,
297,
4235,
29901,
13,
12,
12,
12,
4352,
287,
353,
7700,
13,
12,
12,
12,
1454,
285,
297,
1899,
14256,
29889,
1524,
7076,
7295,
13,
12,
12,
12,
12,
29937,
8382,
703,
3057,
292,
1746,
14210,
29879,
29915,
2750,
14210,
29879,
11838,
1273,
313,
29875,
29892,
285,
876,
13,
12,
12,
12,
12,
361,
285,
29961,
29896,
1822,
5510,
29898,
29875,
29892,
1746,
2248,
1125,
13,
12,
12,
12,
12,
12,
4352,
287,
353,
5852,
13,
12,
12,
12,
12,
12,
8690,
13,
12,
12,
12,
361,
451,
29898,
4352,
287,
1125,
13,
12,
12,
12,
12,
22692,
23125,
11726,
2451,
703,
14148,
23125,
14210,
29879,
11838,
1273,
474,
29897,
13,
12,
12,
12,
2870,
29901,
13,
12,
12,
12,
12,
2671,
2248,
4619,
29871,
29896,
13,
13,
12,
12,
361,
1899,
2804,
6213,
29901,
13,
12,
12,
12,
6519,
4998,
353,
1899,
580,
13,
12,
12,
12,
29937,
6977,
5987,
278,
1899,
411,
967,
1819,
13,
12,
12,
12,
8382,
703,
29925,
1503,
287,
4235,
29901,
1159,
13,
12,
12,
12,
1454,
474,
297,
1899,
14256,
29889,
1524,
7076,
7295,
13,
12,
12,
12,
12,
8382,
703,
1678,
334,
14210,
29879,
29915,
1599,
1273,
29879,
29908,
1273,
313,
29875,
29961,
29900,
1402,
474,
29961,
29896,
12622,
13,
12,
12,
12,
12,
6519,
4998,
17255,
8977,
1649,
29961,
29875,
29961,
29900,
5262,
353,
474,
29961,
29896,
1822,
657,
2816,
4592,
580,
13,
13,
12,
12,
12,
6519,
4998,
17255,
6768,
1649,
580,
13,
12,
12,
12,
8382,
29898,
276,
558,
29898,
6519,
4998,
876,
13,
12,
12,
12,
8382,
29898,
276,
558,
29898,
6519,
4998,
17255,
8977,
1649,
876,
13,
13,
12,
12,
12,
361,
1899,
4998,
2804,
6213,
29901,
13,
12,
12,
12,
12,
2457,
1899,
4998,
13,
12,
12,
2457,
6213,
13,
13,
12,
1753,
1284,
6255,
2059,
1170,
29898,
1311,
29892,
1024,
1125,
13,
12,
12,
1454,
474,
297,
1583,
29889,
26381,
29901,
13,
12,
12,
12,
7039,
353,
10516,
4598,
29889,
657,
6255,
1170,
4591,
2385,
29898,
29875,
29897,
13,
12,
12,
12,
361,
2983,
322,
1024,
297,
2983,
29901,
13,
12,
12,
12,
12,
2457,
474,
13,
12,
12,
2457,
6213,
13,
13,
12,
1753,
788,
6255,
29898,
1311,
29892,
1899,
1125,
13,
12,
12,
361,
338,
1491,
1990,
29898,
6519,
29892,
10516,
5160,
1125,
13,
12,
12,
12,
1311,
29889,
26381,
29889,
4397,
29898,
6519,
29897,
13,
12,
12,
2870,
29901,
13,
12,
12,
12,
22692,
20948,
703,
4165,
3456,
287,
304,
788,
14210,
29879,
29915,
408,
1899,
607,
947,
451,
13125,
515,
10516,
5160,
29908,
1273,
1899,
29897,
13,
13,
12,
1753,
731,
4592,
29898,
1311,
29892,
1899,
1125,
13,
12,
12,
361,
338,
1491,
1990,
29898,
6519,
29892,
10516,
5160,
1125,
13,
12,
12,
12,
1311,
29889,
4381,
353,
1899,
13,
12,
12,
2870,
29901,
13,
12,
12,
12,
22692,
20948,
703,
4165,
3456,
287,
304,
731,
14210,
29879,
29915,
408,
2322,
1899,
607,
947,
451,
13125,
515,
10516,
5160,
29908,
1273,
1899,
29897,
13,
2
] |
Subsets and Splits