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
|
---|---|---|---|---|---|
modoboa_public_api/views.py | tonioo/modoboa-public-api | 2 | 155773 | <gh_stars>1-10
"""API views."""
from django.conf import settings
from rest_framework import decorators, mixins, response, status, viewsets
from rest_framework.views import APIView
from .models import ModoboaInstance, ModoboaExtension
from .forms import ClientVersionForm
from . import constants
from . import models
from . import serializers
# Legacy API, to deprecate
class CurrentVersionView(APIView):
"""Get current modoboa version."""
def get(self, request, fmt=None):
if request.GET.get("client_version") == "1.2.0-rc2":
# Temp. fix
request.GET = request.GET.copy()
request.GET["client_version"] = "1.2.0"
form = ClientVersionForm(request.GET)
if not form.is_valid():
return response.Response(
{"error": (
"Client version and/or site is missing or incorrect")},
status=status.HTTP_400_BAD_REQUEST
)
args = {
"ip_address": request.META.get("REMOTE_ADDR"),
"hostname": form.cleaned_data["client_site"]
}
if ModoboaInstance.objects.filter(**args).exists():
mdinst = ModoboaInstance.objects.get(**args)
elif ModoboaInstance.objects.filter(hostname=args["hostname"]).exists():
mdinst = ModoboaInstance.objects.get(hostname=args["hostname"])
mdinst.ip_address = args["ip_address"]
elif ModoboaInstance.objects.filter(ip_address=args["ip_address"]).exists():
mdinst = ModoboaInstance.objects.get(ip_address=args["ip_address"])
if args["hostname"] not in constants.BAD_HOSTNAME_LIST:
mdinst.hostname = args["hostname"]
elif args["hostname"] not in constants.BAD_HOSTNAME_LIST:
mdinst = ModoboaInstance(**args)
else:
mdinst = None
if mdinst is not None:
if mdinst.known_version != form.cleaned_data["client_version"]:
mdinst.known_version = form.cleaned_data["client_version"]
mdinst.save()
data = {"version": settings.MODOBOA_CURRENT_VERSION[0],
"changelog_url": settings.MODOBOA_CURRENT_VERSION[1]}
return response.Response(data)
class ExtensionListViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
"""List all defined extensions."""
queryset = ModoboaExtension.objects.all()
serializer_class = serializers.ModoboaExtensionSerializer
# New API
class InstanceViewSet(mixins.CreateModelMixin, mixins.UpdateModelMixin,
viewsets.GenericViewSet):
"""Create or update instance."""
queryset = ModoboaInstance.objects.all()
serializer_class = serializers.InstanceSerializer
@decorators.list_route(methods=["get"])
def search(self, request, *args, **kwargs):
"""Search an instance."""
hostname = request.GET.get("hostname")
if not hostname:
return response.Response({
"error": "No hostname provided."
}, status=status.HTTP_400_BAD_REQUEST)
ip_address = request.META.get("REMOTE_ADDR")
instance = models.ModoboaInstance.objects.filter(
ip_address=ip_address, hostname=hostname).first()
if not instance:
return response.Response({
"error": "Instance not found."
}, status=status.HTTP_404_NOT_FOUND)
serializer = self.get_serializer(instance)
return response.Response(serializer.data)
class VersionViewSet(viewsets.ViewSet):
"""List all versions."""
def list(self, request):
data = []
for extension in models.ModoboaExtension.objects.all():
data.append({
"name": extension.name, "version": extension.version,
"url": ""})
data.append({
"name": "modoboa", "version": settings.MODOBOA_CURRENT_VERSION[0],
"url": settings.MODOBOA_CURRENT_VERSION[1]
})
serializer = serializers.VersionSerializer(data, many=True)
return response.Response(serializer.data)
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
8787,
8386,
1213,
15945,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
13,
3166,
1791,
29918,
4468,
1053,
10200,
4097,
29892,
6837,
1144,
29892,
2933,
29892,
4660,
29892,
1776,
7224,
13,
3166,
1791,
29918,
4468,
29889,
7406,
1053,
3450,
1043,
13,
13,
3166,
869,
9794,
1053,
3382,
711,
19807,
4998,
29892,
3382,
711,
19807,
17657,
13,
3166,
869,
9514,
1053,
12477,
6594,
2500,
13,
13,
3166,
869,
1053,
17727,
13,
3166,
869,
1053,
4733,
13,
3166,
869,
1053,
7797,
19427,
13,
13,
13,
29937,
5682,
4135,
3450,
29892,
304,
16460,
403,
13,
13,
1990,
9626,
6594,
1043,
29898,
8787,
1043,
1125,
13,
13,
1678,
9995,
2577,
1857,
878,
711,
19807,
1873,
1213,
15945,
13,
13,
1678,
822,
679,
29898,
1311,
29892,
2009,
29892,
19200,
29922,
8516,
1125,
13,
4706,
565,
2009,
29889,
7194,
29889,
657,
703,
4645,
29918,
3259,
1159,
1275,
376,
29896,
29889,
29906,
29889,
29900,
29899,
2214,
29906,
1115,
13,
9651,
396,
21121,
29889,
2329,
13,
9651,
2009,
29889,
7194,
353,
2009,
29889,
7194,
29889,
8552,
580,
13,
9651,
2009,
29889,
7194,
3366,
4645,
29918,
3259,
3108,
353,
376,
29896,
29889,
29906,
29889,
29900,
29908,
13,
4706,
883,
353,
12477,
6594,
2500,
29898,
3827,
29889,
7194,
29897,
13,
4706,
565,
451,
883,
29889,
275,
29918,
3084,
7295,
13,
9651,
736,
2933,
29889,
5103,
29898,
13,
18884,
8853,
2704,
1115,
313,
13,
462,
1678,
376,
4032,
1873,
322,
29914,
272,
3268,
338,
4567,
470,
10240,
1159,
1118,
13,
18884,
4660,
29922,
4882,
29889,
10493,
29918,
29946,
29900,
29900,
29918,
29933,
3035,
29918,
16244,
13,
9651,
1723,
13,
4706,
6389,
353,
426,
13,
9651,
376,
666,
29918,
7328,
1115,
2009,
29889,
2303,
6040,
29889,
657,
703,
1525,
29924,
2891,
29923,
29918,
3035,
8353,
4968,
13,
9651,
376,
28988,
1115,
883,
29889,
14941,
287,
29918,
1272,
3366,
4645,
29918,
2746,
3108,
13,
4706,
500,
13,
4706,
565,
3382,
711,
19807,
4998,
29889,
12650,
29889,
4572,
29898,
1068,
5085,
467,
9933,
7295,
13,
9651,
22821,
2611,
353,
3382,
711,
19807,
4998,
29889,
12650,
29889,
657,
29898,
1068,
5085,
29897,
13,
4706,
25342,
3382,
711,
19807,
4998,
29889,
12650,
29889,
4572,
29898,
28988,
29922,
5085,
3366,
28988,
3108,
467,
9933,
7295,
13,
9651,
22821,
2611,
353,
3382,
711,
19807,
4998,
29889,
12650,
29889,
657,
29898,
28988,
29922,
5085,
3366,
28988,
20068,
13,
9651,
22821,
2611,
29889,
666,
29918,
7328,
353,
6389,
3366,
666,
29918,
7328,
3108,
13,
4706,
25342,
3382,
711,
19807,
4998,
29889,
12650,
29889,
4572,
29898,
666,
29918,
7328,
29922,
5085,
3366,
666,
29918,
7328,
3108,
467,
9933,
7295,
13,
9651,
22821,
2611,
353,
3382,
711,
19807,
4998,
29889,
12650,
29889,
657,
29898,
666,
29918,
7328,
29922,
5085,
3366,
666,
29918,
7328,
20068,
13,
9651,
565,
6389,
3366,
28988,
3108,
451,
297,
17727,
29889,
29933,
3035,
29918,
20832,
5813,
29918,
24360,
29901,
13,
18884,
22821,
2611,
29889,
28988,
353,
6389,
3366,
28988,
3108,
13,
4706,
25342,
6389,
3366,
28988,
3108,
451,
297,
17727,
29889,
29933,
3035,
29918,
20832,
5813,
29918,
24360,
29901,
13,
9651,
22821,
2611,
353,
3382,
711,
19807,
4998,
29898,
1068,
5085,
29897,
13,
4706,
1683,
29901,
13,
9651,
22821,
2611,
353,
6213,
13,
4706,
565,
22821,
2611,
338,
451,
6213,
29901,
13,
9651,
565,
22821,
2611,
29889,
5203,
29918,
3259,
2804,
883,
29889,
14941,
287,
29918,
1272,
3366,
4645,
29918,
3259,
3108,
29901,
13,
18884,
22821,
2611,
29889,
5203,
29918,
3259,
353,
883,
29889,
14941,
287,
29918,
1272,
3366,
4645,
29918,
3259,
3108,
13,
9651,
22821,
2611,
29889,
7620,
580,
13,
4706,
848,
353,
8853,
3259,
1115,
6055,
29889,
6720,
3970,
8456,
29909,
29918,
22484,
29450,
29918,
16358,
29961,
29900,
1402,
13,
18884,
376,
305,
9477,
468,
29918,
2271,
1115,
6055,
29889,
6720,
3970,
8456,
29909,
29918,
22484,
29450,
29918,
16358,
29961,
29896,
12258,
13,
4706,
736,
2933,
29889,
5103,
29898,
1272,
29897,
13,
13,
13,
1990,
7338,
2673,
15660,
2697,
29898,
28084,
1144,
29889,
1293,
3195,
29924,
861,
262,
29892,
1776,
7224,
29889,
15809,
1043,
2697,
1125,
13,
1678,
9995,
1293,
599,
3342,
17752,
1213,
15945,
13,
13,
1678,
2346,
842,
353,
3382,
711,
19807,
17657,
29889,
12650,
29889,
497,
580,
13,
1678,
7797,
3950,
29918,
1990,
353,
7797,
19427,
29889,
2111,
711,
19807,
17657,
17679,
13,
13,
13,
29937,
1570,
3450,
13,
13,
1990,
2799,
749,
1043,
2697,
29898,
28084,
1144,
29889,
4391,
3195,
29924,
861,
262,
29892,
6837,
1144,
29889,
6422,
3195,
29924,
861,
262,
29892,
13,
462,
418,
1776,
7224,
29889,
15809,
1043,
2697,
1125,
13,
1678,
9995,
4391,
470,
2767,
2777,
1213,
15945,
13,
13,
1678,
2346,
842,
353,
3382,
711,
19807,
4998,
29889,
12650,
29889,
497,
580,
13,
1678,
7797,
3950,
29918,
1990,
353,
7797,
19427,
29889,
4998,
17679,
13,
13,
1678,
732,
19557,
4097,
29889,
1761,
29918,
13134,
29898,
23515,
29922,
3366,
657,
20068,
13,
1678,
822,
2740,
29898,
1311,
29892,
2009,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
9995,
7974,
385,
2777,
1213,
15945,
13,
4706,
3495,
978,
353,
2009,
29889,
7194,
29889,
657,
703,
28988,
1159,
13,
4706,
565,
451,
3495,
978,
29901,
13,
9651,
736,
2933,
29889,
5103,
3319,
13,
18884,
376,
2704,
1115,
376,
3782,
3495,
978,
4944,
1213,
13,
9651,
2981,
4660,
29922,
4882,
29889,
10493,
29918,
29946,
29900,
29900,
29918,
29933,
3035,
29918,
16244,
29897,
13,
4706,
10377,
29918,
7328,
353,
2009,
29889,
2303,
6040,
29889,
657,
703,
1525,
29924,
2891,
29923,
29918,
3035,
8353,
1159,
13,
4706,
2777,
353,
4733,
29889,
2111,
711,
19807,
4998,
29889,
12650,
29889,
4572,
29898,
13,
9651,
10377,
29918,
7328,
29922,
666,
29918,
7328,
29892,
3495,
978,
29922,
28988,
467,
4102,
580,
13,
4706,
565,
451,
2777,
29901,
13,
9651,
736,
2933,
29889,
5103,
3319,
13,
18884,
376,
2704,
1115,
376,
4998,
451,
1476,
1213,
13,
9651,
2981,
4660,
29922,
4882,
29889,
10493,
29918,
29946,
29900,
29946,
29918,
12256,
29918,
5800,
18783,
29897,
13,
4706,
7797,
3950,
353,
1583,
29889,
657,
29918,
15550,
3950,
29898,
8758,
29897,
13,
4706,
736,
2933,
29889,
5103,
29898,
15550,
3950,
29889,
1272,
29897,
13,
13,
13,
1990,
10079,
1043,
2697,
29898,
1493,
7224,
29889,
1043,
2697,
1125,
13,
1678,
9995,
1293,
599,
6910,
1213,
15945,
13,
13,
1678,
822,
1051,
29898,
1311,
29892,
2009,
1125,
13,
4706,
848,
353,
5159,
13,
4706,
363,
6081,
297,
4733,
29889,
2111,
711,
19807,
17657,
29889,
12650,
29889,
497,
7295,
13,
9651,
848,
29889,
4397,
3319,
13,
18884,
376,
978,
1115,
6081,
29889,
978,
29892,
376,
3259,
1115,
6081,
29889,
3259,
29892,
13,
18884,
376,
2271,
1115,
5124,
1800,
13,
4706,
848,
29889,
4397,
3319,
13,
9651,
376,
978,
1115,
376,
1545,
711,
19807,
613,
376,
3259,
1115,
6055,
29889,
6720,
3970,
8456,
29909,
29918,
22484,
29450,
29918,
16358,
29961,
29900,
1402,
13,
9651,
376,
2271,
1115,
6055,
29889,
6720,
3970,
8456,
29909,
29918,
22484,
29450,
29918,
16358,
29961,
29896,
29962,
13,
4706,
5615,
13,
4706,
7797,
3950,
353,
7797,
19427,
29889,
6594,
17679,
29898,
1272,
29892,
1784,
29922,
5574,
29897,
13,
4706,
736,
2933,
29889,
5103,
29898,
15550,
3950,
29889,
1272,
29897,
13,
2
] |
trifacta-dbt/main.py | trifacta/trifacta-dbt-core-profiler | 0 | 189307 | import sys
import logging
import argparse
from dbt.config import PROFILES_DIR as DBT_PROFILES_DIR
from trifacta.util.tfconfig import TRIFACTA_CONFIG_PATH
import os
from _version import __version__
from task.diagnostics import DiagnosticsTask
from task.profile import ProfileTask
from task.clean import CleanTask
def main(args=None):
if args is not None:
args = sys.argv[1:]
execute(args)
def execute(args):
parsed = parse_args(args)
parsed.cls.pre_init_hook(parsed)
task = parsed.cls.from_args(args=parsed)
task.run()
def _build_base_parser():
base_subparser = argparse.ArgumentParser(add_help=False)
base_subparser.add_argument(
'--dbt-project-dir',
default=".",
type=str,
help='''
Directory that holds the DBT project (dbt_project.yml).
'''
)
base_subparser.add_argument(
'--dbt-profiles-dir',
default=DBT_PROFILES_DIR,
type=str,
help='''
Directory that contains profiles.yml
'''
)
base_subparser.add_argument(
'--dbt-profile',
required=False,
type=str,
help='''
Profile to load. Overrides setting in dbt_project.yml
'''
)
base_subparser.add_argument(
'--dbt-target',
default=None,
type=str,
help='''
Target to load for the given profile
''',
)
base_subparser.add_argument(
'--trifacta-config',
default=TRIFACTA_CONFIG_PATH,
type=str,
help='''
Directory that contains trifacta config
'''
)
base_subparser.add_argument(
'--trifacta-profile',
default='DEFAULT',
type=str,
help='''
Profile in trifacta config to use
''',
)
base_subparser.set_defaults(defer=None, state=None)
return base_subparser
def _build_diagnostics_subparser(subparsers, base_subparser):
sub = subparsers.add_parser(
'diagnostics',
parents=[base_subparser],
help='''
Show diagnostic info
''',
aliases=['diag']
)
sub.set_defaults(cls=DiagnosticsTask)
return sub
def _build_profile_subparser(subparsers, base_subparser):
sub = subparsers.add_parser(
'profile',
parents=[base_subparser],
help='''
Install Profiling flow in Trifacta
'''
)
sub.add_argument(
'--trifacta-prefix',
default="",
type=str,
help='''
Prefix to use for artifacts created in Trifacta
'''
)
sub.add_argument(
'--include-list',
default=None,
type=str,
help='''
Comma separated list of tables to include in profiling
'''
)
sub.set_defaults(cls=ProfileTask)
return sub
def _build_clean_subparser(subparsers, base_subparser):
sub = subparsers.add_parser(
'clean',
parents=[base_subparser],
help='''
Delete Profiling flow in Trifacta
'''
)
sub.add_argument(
'--trifacta-prefix',
default="",
type=str,
help='''
Prefix to use for artifacts created in Trifacta
'''
)
sub.set_defaults(cls=CleanTask)
return sub
def parse_args(args):
p = argparse.ArgumentParser(
prog='trifacta-dbt',
description='''
Trifacta DBT Integration
''',
)
p.add_argument(
'--version',
action='version',
version='%(prog)s {version}'.format(version=__version__),
help='''
Show version
'''
)
subs = p.add_subparsers(title='Available sub-commands')
base_parser = _build_base_parser()
_build_diagnostics_subparser(subs, base_parser)
_build_profile_subparser(subs, base_parser)
#_build_clean_subparser(subs, base_parser)
if len(args) == 0:
p.print_help()
sys.exit(1)
parsed = p.parse_args(args)
if hasattr(parsed, 'dbt_profiles_dir'):
parsed.dbt_profiles_dir = os.path.abspath(parsed.dbt_profiles_dir)
if getattr(parsed, 'dbt_project_dir', None) is not None:
expanded_user = os.path.expanduser(parsed.dbt_project_dir)
parsed.dbt_project_dir = os.path.abspath(expanded_user)
if hasattr(parsed, 'trifacta_config'):
parsed.trifacta_config = os.path.abspath(parsed.trifacta_config)
if hasattr(parsed, 'include_list') and parsed.include_list:
parsed.include_list = parsed.include_list.split(',')
return parsed
if __name__ == "__main__":
main(sys.argv)
| [
1,
1053,
10876,
13,
5215,
12183,
13,
5215,
1852,
5510,
13,
3166,
270,
3116,
29889,
2917,
1053,
13756,
24483,
29918,
9464,
408,
6535,
29911,
29918,
8618,
24483,
29918,
9464,
13,
3166,
534,
7060,
29874,
29889,
4422,
29889,
13264,
2917,
1053,
323,
3960,
4519,
1783,
29909,
29918,
25903,
29918,
10145,
13,
5215,
2897,
13,
3166,
903,
3259,
1053,
4770,
3259,
1649,
13,
3166,
3414,
29889,
6051,
20921,
1053,
4671,
20921,
5398,
13,
3166,
3414,
29889,
10185,
1053,
20802,
5398,
13,
3166,
3414,
29889,
14941,
1053,
315,
14044,
5398,
13,
13,
13,
1753,
1667,
29898,
5085,
29922,
8516,
1125,
13,
1678,
565,
6389,
338,
451,
6213,
29901,
13,
4706,
6389,
353,
10876,
29889,
19218,
29961,
29896,
17531,
13,
1678,
6222,
29898,
5085,
29897,
13,
13,
13,
1753,
6222,
29898,
5085,
1125,
13,
1678,
21213,
353,
6088,
29918,
5085,
29898,
5085,
29897,
13,
1678,
21213,
29889,
25932,
29889,
1457,
29918,
2344,
29918,
20849,
29898,
862,
8485,
29897,
13,
13,
1678,
3414,
353,
21213,
29889,
25932,
29889,
3166,
29918,
5085,
29898,
5085,
29922,
862,
8485,
29897,
13,
1678,
3414,
29889,
3389,
580,
13,
13,
13,
1753,
903,
4282,
29918,
3188,
29918,
16680,
7295,
13,
1678,
2967,
29918,
1491,
16680,
353,
1852,
5510,
29889,
15730,
11726,
29898,
1202,
29918,
8477,
29922,
8824,
29897,
13,
13,
1678,
2967,
29918,
1491,
16680,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
489,
2585,
29873,
29899,
4836,
29899,
3972,
742,
13,
4706,
2322,
543,
19602,
13,
4706,
1134,
29922,
710,
29892,
13,
4706,
1371,
2433,
4907,
13,
4706,
18862,
393,
8640,
278,
6535,
29911,
2060,
313,
2585,
29873,
29918,
4836,
29889,
21053,
467,
13,
4706,
14550,
13,
1678,
1723,
13,
13,
1678,
2967,
29918,
1491,
16680,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
489,
2585,
29873,
29899,
771,
5325,
29899,
3972,
742,
13,
4706,
2322,
29922,
4051,
29911,
29918,
8618,
24483,
29918,
9464,
29892,
13,
4706,
1134,
29922,
710,
29892,
13,
4706,
1371,
2433,
4907,
13,
4706,
18862,
393,
3743,
28723,
29889,
21053,
13,
4706,
14550,
13,
1678,
1723,
13,
13,
1678,
2967,
29918,
1491,
16680,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
489,
2585,
29873,
29899,
10185,
742,
13,
4706,
3734,
29922,
8824,
29892,
13,
4706,
1134,
29922,
710,
29892,
13,
4706,
1371,
2433,
4907,
13,
4706,
20802,
304,
2254,
29889,
6811,
24040,
4444,
297,
270,
3116,
29918,
4836,
29889,
21053,
13,
4706,
14550,
13,
1678,
1723,
13,
13,
1678,
2967,
29918,
1491,
16680,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
489,
2585,
29873,
29899,
5182,
742,
13,
4706,
2322,
29922,
8516,
29892,
13,
4706,
1134,
29922,
710,
29892,
13,
4706,
1371,
2433,
4907,
13,
4706,
17157,
304,
2254,
363,
278,
2183,
8722,
13,
4706,
6629,
742,
13,
1678,
1723,
13,
13,
1678,
2967,
29918,
1491,
16680,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
489,
509,
7060,
29874,
29899,
2917,
742,
13,
4706,
2322,
29922,
29911,
3960,
4519,
1783,
29909,
29918,
25903,
29918,
10145,
29892,
13,
4706,
1134,
29922,
710,
29892,
13,
4706,
1371,
2433,
4907,
13,
4706,
18862,
393,
3743,
534,
7060,
29874,
2295,
13,
4706,
14550,
13,
1678,
1723,
13,
13,
1678,
2967,
29918,
1491,
16680,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
489,
509,
7060,
29874,
29899,
10185,
742,
13,
4706,
2322,
2433,
23397,
742,
13,
4706,
1134,
29922,
710,
29892,
13,
4706,
1371,
2433,
4907,
13,
4706,
20802,
297,
534,
7060,
29874,
2295,
304,
671,
13,
4706,
6629,
742,
13,
1678,
1723,
13,
13,
1678,
2967,
29918,
1491,
16680,
29889,
842,
29918,
4381,
29879,
29898,
311,
571,
29922,
8516,
29892,
2106,
29922,
8516,
29897,
13,
1678,
736,
2967,
29918,
1491,
16680,
13,
13,
13,
1753,
903,
4282,
29918,
6051,
20921,
29918,
1491,
16680,
29898,
1491,
862,
4253,
29892,
2967,
29918,
1491,
16680,
1125,
13,
1678,
1014,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
29898,
13,
4706,
525,
6051,
20921,
742,
13,
4706,
11825,
11759,
3188,
29918,
1491,
16680,
1402,
13,
4706,
1371,
2433,
4907,
13,
4706,
7704,
652,
21780,
5235,
13,
4706,
6629,
742,
13,
4706,
14430,
2129,
29922,
1839,
6051,
351,
2033,
13,
1678,
1723,
13,
13,
1678,
1014,
29889,
842,
29918,
4381,
29879,
29898,
25932,
29922,
12130,
20921,
5398,
29897,
13,
13,
1678,
736,
1014,
13,
13,
13,
1753,
903,
4282,
29918,
10185,
29918,
1491,
16680,
29898,
1491,
862,
4253,
29892,
2967,
29918,
1491,
16680,
1125,
13,
1678,
1014,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
29898,
13,
4706,
525,
10185,
742,
13,
4706,
11825,
11759,
3188,
29918,
1491,
16680,
1402,
13,
4706,
1371,
2433,
4907,
13,
4706,
16052,
23202,
292,
4972,
297,
1605,
7060,
29874,
13,
4706,
14550,
13,
1678,
1723,
13,
13,
1678,
1014,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
489,
509,
7060,
29874,
29899,
13506,
742,
13,
4706,
2322,
543,
613,
13,
4706,
1134,
29922,
710,
29892,
13,
4706,
1371,
2433,
4907,
13,
4706,
349,
9569,
304,
671,
363,
24238,
29879,
2825,
297,
1605,
7060,
29874,
13,
4706,
14550,
13,
1678,
1723,
13,
13,
1678,
1014,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
489,
2856,
29899,
1761,
742,
13,
4706,
2322,
29922,
8516,
29892,
13,
4706,
1134,
29922,
710,
29892,
13,
4706,
1371,
2433,
4907,
13,
4706,
422,
655,
13055,
1051,
310,
6131,
304,
3160,
297,
20077,
292,
13,
4706,
14550,
13,
1678,
1723,
13,
13,
1678,
1014,
29889,
842,
29918,
4381,
29879,
29898,
25932,
29922,
13909,
5398,
29897,
13,
13,
1678,
736,
1014,
13,
13,
13,
1753,
903,
4282,
29918,
14941,
29918,
1491,
16680,
29898,
1491,
862,
4253,
29892,
2967,
29918,
1491,
16680,
1125,
13,
1678,
1014,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
29898,
13,
4706,
525,
14941,
742,
13,
4706,
11825,
11759,
3188,
29918,
1491,
16680,
1402,
13,
4706,
1371,
2433,
4907,
13,
4706,
21267,
23202,
292,
4972,
297,
1605,
7060,
29874,
13,
4706,
14550,
13,
1678,
1723,
13,
13,
1678,
1014,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
489,
509,
7060,
29874,
29899,
13506,
742,
13,
4706,
2322,
543,
613,
13,
4706,
1134,
29922,
710,
29892,
13,
4706,
1371,
2433,
4907,
13,
4706,
349,
9569,
304,
671,
363,
24238,
29879,
2825,
297,
1605,
7060,
29874,
13,
4706,
14550,
13,
1678,
1723,
13,
13,
1678,
1014,
29889,
842,
29918,
4381,
29879,
29898,
25932,
29922,
29907,
14044,
5398,
29897,
13,
13,
1678,
736,
1014,
13,
13,
13,
1753,
6088,
29918,
5085,
29898,
5085,
1125,
13,
1678,
282,
353,
1852,
5510,
29889,
15730,
11726,
29898,
13,
4706,
410,
29887,
2433,
509,
7060,
29874,
29899,
2585,
29873,
742,
13,
4706,
6139,
2433,
4907,
13,
4706,
1605,
7060,
29874,
6535,
29911,
17100,
362,
13,
4706,
6629,
742,
13,
1678,
1723,
13,
13,
1678,
282,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
489,
3259,
742,
13,
4706,
3158,
2433,
3259,
742,
13,
4706,
1873,
2433,
29995,
29898,
29097,
29897,
29879,
426,
3259,
29913,
4286,
4830,
29898,
3259,
29922,
1649,
3259,
1649,
511,
13,
4706,
1371,
2433,
4907,
13,
4706,
7704,
1873,
13,
4706,
14550,
13,
1678,
1723,
13,
13,
1678,
11684,
353,
282,
29889,
1202,
29918,
1491,
862,
4253,
29898,
3257,
2433,
27635,
1014,
29899,
26381,
1495,
13,
13,
1678,
2967,
29918,
16680,
353,
903,
4282,
29918,
3188,
29918,
16680,
580,
13,
13,
1678,
903,
4282,
29918,
6051,
20921,
29918,
1491,
16680,
29898,
1491,
29879,
29892,
2967,
29918,
16680,
29897,
13,
1678,
903,
4282,
29918,
10185,
29918,
1491,
16680,
29898,
1491,
29879,
29892,
2967,
29918,
16680,
29897,
13,
1678,
396,
29918,
4282,
29918,
14941,
29918,
1491,
16680,
29898,
1491,
29879,
29892,
2967,
29918,
16680,
29897,
13,
13,
1678,
565,
7431,
29898,
5085,
29897,
1275,
29871,
29900,
29901,
13,
4706,
282,
29889,
2158,
29918,
8477,
580,
13,
4706,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
1678,
21213,
353,
282,
29889,
5510,
29918,
5085,
29898,
5085,
29897,
13,
13,
1678,
565,
756,
5552,
29898,
862,
8485,
29892,
525,
2585,
29873,
29918,
771,
5325,
29918,
3972,
29374,
13,
4706,
21213,
29889,
2585,
29873,
29918,
771,
5325,
29918,
3972,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
862,
8485,
29889,
2585,
29873,
29918,
771,
5325,
29918,
3972,
29897,
13,
13,
1678,
565,
679,
5552,
29898,
862,
8485,
29892,
525,
2585,
29873,
29918,
4836,
29918,
3972,
742,
6213,
29897,
338,
451,
6213,
29901,
13,
4706,
17832,
29918,
1792,
353,
2897,
29889,
2084,
29889,
18837,
1792,
29898,
862,
8485,
29889,
2585,
29873,
29918,
4836,
29918,
3972,
29897,
13,
4706,
21213,
29889,
2585,
29873,
29918,
4836,
29918,
3972,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
18837,
287,
29918,
1792,
29897,
13,
13,
1678,
565,
756,
5552,
29898,
862,
8485,
29892,
525,
509,
7060,
29874,
29918,
2917,
29374,
13,
4706,
21213,
29889,
509,
7060,
29874,
29918,
2917,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
862,
8485,
29889,
509,
7060,
29874,
29918,
2917,
29897,
13,
13,
1678,
565,
756,
5552,
29898,
862,
8485,
29892,
525,
2856,
29918,
1761,
1495,
322,
21213,
29889,
2856,
29918,
1761,
29901,
13,
4706,
21213,
29889,
2856,
29918,
1761,
353,
21213,
29889,
2856,
29918,
1761,
29889,
5451,
29317,
1495,
13,
13,
1678,
736,
21213,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1667,
29898,
9675,
29889,
19218,
29897,
13,
2
] |
pysmore/test_optimizer.py | RainBoltz/pySmore | 0 | 43832 | <gh_stars>0
from libs.optimizer import get_dotproduct_loss
import numpy as np
a = np.array([0.1,0.2,0.3])
b = np.array([0,0.2,0])
L = get_dotproduct_loss(a, b, 1.0)
print(L) | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
4303,
29879,
29889,
20640,
3950,
1053,
679,
29918,
6333,
4704,
29918,
6758,
13,
5215,
12655,
408,
7442,
13,
13,
29874,
353,
7442,
29889,
2378,
4197,
29900,
29889,
29896,
29892,
29900,
29889,
29906,
29892,
29900,
29889,
29941,
2314,
13,
29890,
353,
7442,
29889,
2378,
4197,
29900,
29892,
29900,
29889,
29906,
29892,
29900,
2314,
13,
13,
29931,
353,
679,
29918,
6333,
4704,
29918,
6758,
29898,
29874,
29892,
289,
29892,
29871,
29896,
29889,
29900,
29897,
13,
13,
2158,
29898,
29931,
29897,
2
] |
tests/test_decorator.py | beproud/django-newauth | 3 | 1610066 | <reponame>beproud/django-newauth<filename>tests/test_decorator.py<gh_stars>1-10
#:coding=utf-8:
from urllib.parse import urlparse
import pytest
from django.test import TestCase as DjangoTestCase
from django.conf import settings
__all__ = (
'DecoratorTest',
)
@pytest.mark.django_db
class DecoratorTest(DjangoTestCase):
fixtures = ['authutils_testdata.json']
def test_login_required_failed(self):
response = self.client.get("/testapp/login_required/")
self.assertEquals(response.status_code, 302)
self.assertEquals(urlparse(response.get("Location", ""))[2], settings.LOGIN_URL)
def test_login_required_testapp_failed(self):
response = self.client.get("/testapp/testapp_login_required/")
self.assertEquals(response.status_code, 302)
self.assertEquals(urlparse(response.get("Location", ""))[2], settings.LOGIN_URL)
| [
1,
529,
276,
1112,
420,
29958,
915,
558,
2736,
29914,
14095,
29899,
1482,
5150,
29966,
9507,
29958,
21150,
29914,
1688,
29918,
19557,
1061,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
29901,
29883,
3689,
29922,
9420,
29899,
29947,
29901,
13,
3166,
3142,
1982,
29889,
5510,
1053,
3142,
5510,
13,
13,
5215,
11451,
1688,
13,
3166,
9557,
29889,
1688,
1053,
4321,
8259,
408,
15337,
3057,
8259,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
13,
1649,
497,
1649,
353,
313,
13,
1678,
525,
6185,
272,
1061,
3057,
742,
13,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
14095,
29918,
2585,
13,
1990,
3826,
272,
1061,
3057,
29898,
29928,
5364,
3057,
8259,
1125,
13,
1678,
5713,
486,
1973,
353,
6024,
5150,
13239,
29918,
1688,
1272,
29889,
3126,
2033,
13,
13,
1678,
822,
1243,
29918,
7507,
29918,
12403,
29918,
26061,
29898,
1311,
1125,
13,
4706,
2933,
353,
1583,
29889,
4645,
29889,
657,
11974,
1688,
932,
29914,
7507,
29918,
12403,
29914,
1159,
13,
4706,
1583,
29889,
9294,
14776,
29898,
5327,
29889,
4882,
29918,
401,
29892,
29871,
29941,
29900,
29906,
29897,
13,
4706,
1583,
29889,
9294,
14776,
29898,
2271,
5510,
29898,
5327,
29889,
657,
703,
6508,
613,
5124,
876,
29961,
29906,
1402,
6055,
29889,
14480,
1177,
29918,
4219,
29897,
13,
13,
1678,
822,
1243,
29918,
7507,
29918,
12403,
29918,
1688,
932,
29918,
26061,
29898,
1311,
1125,
13,
4706,
2933,
353,
1583,
29889,
4645,
29889,
657,
11974,
1688,
932,
29914,
1688,
932,
29918,
7507,
29918,
12403,
29914,
1159,
13,
4706,
1583,
29889,
9294,
14776,
29898,
5327,
29889,
4882,
29918,
401,
29892,
29871,
29941,
29900,
29906,
29897,
13,
4706,
1583,
29889,
9294,
14776,
29898,
2271,
5510,
29898,
5327,
29889,
657,
703,
6508,
613,
5124,
876,
29961,
29906,
1402,
6055,
29889,
14480,
1177,
29918,
4219,
29897,
13,
2
] |
sklearn/linear_model/tests/test_sgd.py | SteveKola/scikit-learn | 2 | 130059 | import pickle
import pytest
import numpy as np
import scipy.sparse as sp
import joblib
from sklearn.utils._testing import assert_array_equal
from sklearn.utils._testing import assert_almost_equal
from sklearn.utils._testing import assert_array_almost_equal
from sklearn.utils._testing import assert_raises_regexp
from sklearn.utils._testing import assert_warns
from sklearn.utils._testing import ignore_warnings
from sklearn.utils.fixes import parse_version
from sklearn import linear_model, datasets, metrics
from sklearn.base import clone, is_classifier
from sklearn.preprocessing import LabelEncoder, scale, MinMaxScaler
from sklearn.preprocessing import StandardScaler
from sklearn.exceptions import ConvergenceWarning
from sklearn.model_selection import StratifiedShuffleSplit, ShuffleSplit
from sklearn.linear_model import _sgd_fast as sgd_fast
from sklearn.model_selection import RandomizedSearchCV
def _update_kwargs(kwargs):
if "random_state" not in kwargs:
kwargs["random_state"] = 42
if "tol" not in kwargs:
kwargs["tol"] = None
if "max_iter" not in kwargs:
kwargs["max_iter"] = 5
class _SparseSGDClassifier(linear_model.SGDClassifier):
def fit(self, X, y, *args, **kw):
X = sp.csr_matrix(X)
return super().fit(X, y, *args, **kw)
def partial_fit(self, X, y, *args, **kw):
X = sp.csr_matrix(X)
return super().partial_fit(X, y, *args, **kw)
def decision_function(self, X):
X = sp.csr_matrix(X)
return super().decision_function(X)
def predict_proba(self, X):
X = sp.csr_matrix(X)
return super().predict_proba(X)
class _SparseSGDRegressor(linear_model.SGDRegressor):
def fit(self, X, y, *args, **kw):
X = sp.csr_matrix(X)
return linear_model.SGDRegressor.fit(self, X, y, *args, **kw)
def partial_fit(self, X, y, *args, **kw):
X = sp.csr_matrix(X)
return linear_model.SGDRegressor.partial_fit(self, X, y, *args, **kw)
def decision_function(self, X, *args, **kw):
# XXX untested as of v0.22
X = sp.csr_matrix(X)
return linear_model.SGDRegressor.decision_function(self, X, *args,
**kw)
def SGDClassifier(**kwargs):
_update_kwargs(kwargs)
return linear_model.SGDClassifier(**kwargs)
def SGDRegressor(**kwargs):
_update_kwargs(kwargs)
return linear_model.SGDRegressor(**kwargs)
def SparseSGDClassifier(**kwargs):
_update_kwargs(kwargs)
return _SparseSGDClassifier(**kwargs)
def SparseSGDRegressor(**kwargs):
_update_kwargs(kwargs)
return _SparseSGDRegressor(**kwargs)
# Test Data
# test sample 1
X = np.array([[-2, -1], [-1, -1], [-1, -2], [1, 1], [1, 2], [2, 1]])
Y = [1, 1, 1, 2, 2, 2]
T = np.array([[-1, -1], [2, 2], [3, 2]])
true_result = [1, 2, 2]
# test sample 2; string class labels
X2 = np.array([[-1, 1], [-0.75, 0.5], [-1.5, 1.5],
[1, 1], [0.75, 0.5], [1.5, 1.5],
[-1, -1], [0, -0.5], [1, -1]])
Y2 = ["one"] * 3 + ["two"] * 3 + ["three"] * 3
T2 = np.array([[-1.5, 0.5], [1, 2], [0, -2]])
true_result2 = ["one", "two", "three"]
# test sample 3
X3 = np.array([[1, 1, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0],
[0, 0, 1, 0, 0, 0], [0, 0, 1, 0, 0, 0],
[0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 1, 1],
[0, 0, 0, 1, 0, 0], [0, 0, 0, 1, 0, 0]])
Y3 = np.array([1, 1, 1, 1, 2, 2, 2, 2])
# test sample 4 - two more or less redundant feature groups
X4 = np.array([[1, 0.9, 0.8, 0, 0, 0], [1, .84, .98, 0, 0, 0],
[1, .96, .88, 0, 0, 0], [1, .91, .99, 0, 0, 0],
[0, 0, 0, .89, .91, 1], [0, 0, 0, .79, .84, 1],
[0, 0, 0, .91, .95, 1], [0, 0, 0, .93, 1, 1]])
Y4 = np.array([1, 1, 1, 1, 2, 2, 2, 2])
iris = datasets.load_iris()
# test sample 5 - test sample 1 as binary classification problem
X5 = np.array([[-2, -1], [-1, -1], [-1, -2], [1, 1], [1, 2], [2, 1]])
Y5 = [1, 1, 1, 2, 2, 2]
true_result5 = [0, 1, 1]
###############################################################################
# Common Test Case to classification and regression
# a simple implementation of ASGD to use for testing
# uses squared loss to find the gradient
def asgd(klass, X, y, eta, alpha, weight_init=None, intercept_init=0.0):
if weight_init is None:
weights = np.zeros(X.shape[1])
else:
weights = weight_init
average_weights = np.zeros(X.shape[1])
intercept = intercept_init
average_intercept = 0.0
decay = 1.0
# sparse data has a fixed decay of .01
if klass in (SparseSGDClassifier, SparseSGDRegressor):
decay = .01
for i, entry in enumerate(X):
p = np.dot(entry, weights)
p += intercept
gradient = p - y[i]
weights *= 1.0 - (eta * alpha)
weights += -(eta * gradient * entry)
intercept += -(eta * gradient) * decay
average_weights *= i
average_weights += weights
average_weights /= i + 1.0
average_intercept *= i
average_intercept += intercept
average_intercept /= i + 1.0
return average_weights, average_intercept
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_sgd_bad_alpha(klass):
# Check whether expected ValueError on bad alpha
with pytest.raises(ValueError):
klass(alpha=-.1)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_sgd_bad_penalty(klass):
# Check whether expected ValueError on bad penalty
with pytest.raises(ValueError):
klass(penalty='foobar', l1_ratio=0.85)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_sgd_bad_loss(klass):
# Check whether expected ValueError on bad loss
with pytest.raises(ValueError):
klass(loss="foobar")
def _test_warm_start(klass, X, Y, lr):
# Test that explicit warm restart...
clf = klass(alpha=0.01, eta0=0.01, shuffle=False,
learning_rate=lr)
clf.fit(X, Y)
clf2 = klass(alpha=0.001, eta0=0.01, shuffle=False,
learning_rate=lr)
clf2.fit(X, Y,
coef_init=clf.coef_.copy(),
intercept_init=clf.intercept_.copy())
# ... and implicit warm restart are equivalent.
clf3 = klass(alpha=0.01, eta0=0.01, shuffle=False,
warm_start=True, learning_rate=lr)
clf3.fit(X, Y)
assert clf3.t_ == clf.t_
assert_array_almost_equal(clf3.coef_, clf.coef_)
clf3.set_params(alpha=0.001)
clf3.fit(X, Y)
assert clf3.t_ == clf2.t_
assert_array_almost_equal(clf3.coef_, clf2.coef_)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
@pytest.mark.parametrize('lr',
["constant", "optimal", "invscaling", "adaptive"])
def test_warm_start(klass, lr):
_test_warm_start(klass, X, Y, lr)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_input_format(klass):
# Input format tests.
clf = klass(alpha=0.01, shuffle=False)
clf.fit(X, Y)
Y_ = np.array(Y)[:, np.newaxis]
Y_ = np.c_[Y_, Y_]
with pytest.raises(ValueError):
clf.fit(X, Y_)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_clone(klass):
# Test whether clone works ok.
clf = klass(alpha=0.01, penalty='l1')
clf = clone(clf)
clf.set_params(penalty='l2')
clf.fit(X, Y)
clf2 = klass(alpha=0.01, penalty='l2')
clf2.fit(X, Y)
assert_array_equal(clf.coef_, clf2.coef_)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_plain_has_no_average_attr(klass):
clf = klass(average=True, eta0=.01)
clf.fit(X, Y)
assert hasattr(clf, '_average_coef')
assert hasattr(clf, '_average_intercept')
assert hasattr(clf, '_standard_intercept')
assert hasattr(clf, '_standard_coef')
clf = klass()
clf.fit(X, Y)
assert not hasattr(clf, '_average_coef')
assert not hasattr(clf, '_average_intercept')
assert not hasattr(clf, '_standard_intercept')
assert not hasattr(clf, '_standard_coef')
# TODO: remove in 1.0
@pytest.mark.parametrize('klass', [SGDClassifier, SGDRegressor])
def test_sgd_deprecated_attr(klass):
est = klass(average=True, eta0=.01)
est.fit(X, Y)
msg = "Attribute {} was deprecated"
for att in ['average_coef_', 'average_intercept_',
'standard_coef_', 'standard_intercept_']:
with pytest.warns(FutureWarning, match=msg.format(att)):
getattr(est, att)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_late_onset_averaging_not_reached(klass):
clf1 = klass(average=600)
clf2 = klass()
for _ in range(100):
if is_classifier(clf1):
clf1.partial_fit(X, Y, classes=np.unique(Y))
clf2.partial_fit(X, Y, classes=np.unique(Y))
else:
clf1.partial_fit(X, Y)
clf2.partial_fit(X, Y)
assert_array_almost_equal(clf1.coef_, clf2.coef_, decimal=16)
assert_almost_equal(clf1.intercept_, clf2.intercept_, decimal=16)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_late_onset_averaging_reached(klass):
eta0 = .001
alpha = .0001
Y_encode = np.array(Y)
Y_encode[Y_encode == 1] = -1.0
Y_encode[Y_encode == 2] = 1.0
clf1 = klass(average=7, learning_rate="constant",
loss='squared_loss', eta0=eta0,
alpha=alpha, max_iter=2, shuffle=False)
clf2 = klass(average=0, learning_rate="constant",
loss='squared_loss', eta0=eta0,
alpha=alpha, max_iter=1, shuffle=False)
clf1.fit(X, Y_encode)
clf2.fit(X, Y_encode)
average_weights, average_intercept = \
asgd(klass, X, Y_encode, eta0, alpha,
weight_init=clf2.coef_.ravel(),
intercept_init=clf2.intercept_)
assert_array_almost_equal(clf1.coef_.ravel(),
average_weights.ravel(),
decimal=16)
assert_almost_equal(clf1.intercept_, average_intercept, decimal=16)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_sgd_bad_alpha_for_optimal_learning_rate(klass):
# Check whether expected ValueError on bad alpha, i.e. 0
# since alpha is used to compute the optimal learning rate
with pytest.raises(ValueError):
klass(alpha=0, learning_rate="optimal")
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_early_stopping(klass):
X = iris.data[iris.target > 0]
Y = iris.target[iris.target > 0]
for early_stopping in [True, False]:
max_iter = 1000
clf = klass(early_stopping=early_stopping, tol=1e-3,
max_iter=max_iter).fit(X, Y)
assert clf.n_iter_ < max_iter
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_adaptive_longer_than_constant(klass):
clf1 = klass(learning_rate="adaptive", eta0=0.01, tol=1e-3,
max_iter=100)
clf1.fit(iris.data, iris.target)
clf2 = klass(learning_rate="constant", eta0=0.01, tol=1e-3,
max_iter=100)
clf2.fit(iris.data, iris.target)
assert clf1.n_iter_ > clf2.n_iter_
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_validation_set_not_used_for_training(klass):
X, Y = iris.data, iris.target
validation_fraction = 0.4
seed = 42
shuffle = False
max_iter = 10
clf1 = klass(early_stopping=True,
random_state=np.random.RandomState(seed),
validation_fraction=validation_fraction,
learning_rate='constant', eta0=0.01,
tol=None, max_iter=max_iter, shuffle=shuffle)
clf1.fit(X, Y)
assert clf1.n_iter_ == max_iter
clf2 = klass(early_stopping=False,
random_state=np.random.RandomState(seed),
learning_rate='constant', eta0=0.01,
tol=None, max_iter=max_iter, shuffle=shuffle)
if is_classifier(clf2):
cv = StratifiedShuffleSplit(test_size=validation_fraction,
random_state=seed)
else:
cv = ShuffleSplit(test_size=validation_fraction,
random_state=seed)
idx_train, idx_val = next(cv.split(X, Y))
idx_train = np.sort(idx_train) # remove shuffling
clf2.fit(X[idx_train], Y[idx_train])
assert clf2.n_iter_ == max_iter
assert_array_equal(clf1.coef_, clf2.coef_)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_n_iter_no_change(klass):
X, Y = iris.data, iris.target
# test that n_iter_ increases monotonically with n_iter_no_change
for early_stopping in [True, False]:
n_iter_list = [klass(early_stopping=early_stopping,
n_iter_no_change=n_iter_no_change,
tol=1e-4, max_iter=1000
).fit(X, Y).n_iter_
for n_iter_no_change in [2, 3, 10]]
assert_array_equal(n_iter_list, sorted(n_iter_list))
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier,
SGDRegressor, SparseSGDRegressor])
def test_not_enough_sample_for_early_stopping(klass):
# test an error is raised if the training or validation set is empty
clf = klass(early_stopping=True, validation_fraction=0.99)
with pytest.raises(ValueError):
clf.fit(X3, Y3)
###############################################################################
# Classification Test Case
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_clf(klass):
# Check that SGD gives any results :-)
for loss in ("hinge", "squared_hinge", "log", "modified_huber"):
clf = klass(penalty='l2', alpha=0.01, fit_intercept=True,
loss=loss, max_iter=10, shuffle=True)
clf.fit(X, Y)
# assert_almost_equal(clf.coef_[0], clf.coef_[1], decimal=7)
assert_array_equal(clf.predict(T), true_result)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_bad_l1_ratio(klass):
# Check whether expected ValueError on bad l1_ratio
with pytest.raises(ValueError):
klass(l1_ratio=1.1)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_bad_learning_rate_schedule(klass):
# Check whether expected ValueError on bad learning_rate
with pytest.raises(ValueError):
klass(learning_rate="<unknown>")
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_bad_eta0(klass):
# Check whether expected ValueError on bad eta0
with pytest.raises(ValueError):
klass(eta0=0, learning_rate="constant")
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_max_iter_param(klass):
# Test parameter validity check
with pytest.raises(ValueError):
klass(max_iter=-10000)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_shuffle_param(klass):
# Test parameter validity check
with pytest.raises(ValueError):
klass(shuffle="false")
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_early_stopping_param(klass):
# Test parameter validity check
with pytest.raises(ValueError):
klass(early_stopping="false")
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_validation_fraction(klass):
# Test parameter validity check
with pytest.raises(ValueError):
klass(validation_fraction=-.1)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_n_iter_no_change(klass):
# Test parameter validity check
with pytest.raises(ValueError):
klass(n_iter_no_change=0)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_argument_coef(klass):
# Checks coef_init not allowed as model argument (only fit)
# Provided coef_ does not match dataset
with pytest.raises(TypeError):
klass(coef_init=np.zeros((3,)))
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_provide_coef(klass):
# Checks coef_init shape for the warm starts
# Provided coef_ does not match dataset.
with pytest.raises(ValueError):
klass().fit(X, Y, coef_init=np.zeros((3,)))
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_set_intercept(klass):
# Checks intercept_ shape for the warm starts
# Provided intercept_ does not match dataset.
with pytest.raises(ValueError):
klass().fit(X, Y, intercept_init=np.zeros((3,)))
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_early_stopping_with_partial_fit(klass):
# Test parameter validity check
with pytest.raises(ValueError):
klass(early_stopping=True).partial_fit(X, Y)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_set_intercept_binary(klass):
# Checks intercept_ shape for the warm starts in binary case
klass().fit(X5, Y5, intercept_init=0)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_average_binary_computed_correctly(klass):
# Checks the SGDClassifier correctly computes the average weights
eta = .1
alpha = 2.
n_samples = 20
n_features = 10
rng = np.random.RandomState(0)
X = rng.normal(size=(n_samples, n_features))
w = rng.normal(size=n_features)
clf = klass(loss='squared_loss',
learning_rate='constant',
eta0=eta, alpha=alpha,
fit_intercept=True,
max_iter=1, average=True, shuffle=False)
# simple linear function without noise
y = np.dot(X, w)
y = np.sign(y)
clf.fit(X, y)
average_weights, average_intercept = asgd(klass, X, y, eta, alpha)
average_weights = average_weights.reshape(1, -1)
assert_array_almost_equal(clf.coef_,
average_weights,
decimal=14)
assert_almost_equal(clf.intercept_, average_intercept, decimal=14)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_set_intercept_to_intercept(klass):
# Checks intercept_ shape consistency for the warm starts
# Inconsistent intercept_ shape.
clf = klass().fit(X5, Y5)
klass().fit(X5, Y5, intercept_init=clf.intercept_)
clf = klass().fit(X, Y)
klass().fit(X, Y, intercept_init=clf.intercept_)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_at_least_two_labels(klass):
# Target must have at least two labels
clf = klass(alpha=0.01, max_iter=20)
with pytest.raises(ValueError):
clf.fit(X2, np.ones(9))
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_partial_fit_weight_class_balanced(klass):
# partial_fit with class_weight='balanced' not supported"""
regex = (r"class_weight 'balanced' is not supported for "
r"partial_fit\. In order to use 'balanced' weights, "
r"use compute_class_weight\('balanced', classes=classes, y=y\). "
r"In place of y you can us a large enough sample "
r"of the full training set target to properly "
r"estimate the class frequency distributions\. "
r"Pass the resulting weights as the class_weight "
r"parameter\.")
assert_raises_regexp(ValueError,
regex,
klass(class_weight='balanced').partial_fit,
X, Y, classes=np.unique(Y))
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_multiclass(klass):
# Multi-class test case
clf = klass(alpha=0.01, max_iter=20).fit(X2, Y2)
assert clf.coef_.shape == (3, 2)
assert clf.intercept_.shape == (3,)
assert clf.decision_function([[0, 0]]).shape == (1, 3)
pred = clf.predict(T2)
assert_array_equal(pred, true_result2)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_multiclass_average(klass):
eta = .001
alpha = .01
# Multi-class average test case
clf = klass(loss='squared_loss',
learning_rate='constant',
eta0=eta, alpha=alpha,
fit_intercept=True,
max_iter=1, average=True, shuffle=False)
np_Y2 = np.array(Y2)
clf.fit(X2, np_Y2)
classes = np.unique(np_Y2)
for i, cl in enumerate(classes):
y_i = np.ones(np_Y2.shape[0])
y_i[np_Y2 != cl] = -1
average_coef, average_intercept = asgd(klass, X2, y_i, eta, alpha)
assert_array_almost_equal(average_coef, clf.coef_[i], decimal=16)
assert_almost_equal(average_intercept,
clf.intercept_[i],
decimal=16)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_multiclass_with_init_coef(klass):
# Multi-class test case
clf = klass(alpha=0.01, max_iter=20)
clf.fit(X2, Y2, coef_init=np.zeros((3, 2)),
intercept_init=np.zeros(3))
assert clf.coef_.shape == (3, 2)
assert clf.intercept_.shape, (3,)
pred = clf.predict(T2)
assert_array_equal(pred, true_result2)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_multiclass_njobs(klass):
# Multi-class test case with multi-core support
clf = klass(alpha=0.01, max_iter=20, n_jobs=2).fit(X2, Y2)
assert clf.coef_.shape == (3, 2)
assert clf.intercept_.shape == (3,)
assert clf.decision_function([[0, 0]]).shape == (1, 3)
pred = clf.predict(T2)
assert_array_equal(pred, true_result2)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_set_coef_multiclass(klass):
# Checks coef_init and intercept_init shape for multi-class
# problems
# Provided coef_ does not match dataset
clf = klass()
with pytest.raises(ValueError):
clf.fit(X2, Y2, coef_init=np.zeros((2, 2)))
# Provided coef_ does match dataset
clf = klass().fit(X2, Y2, coef_init=np.zeros((3, 2)))
# Provided intercept_ does not match dataset
clf = klass()
with pytest.raises(ValueError):
clf.fit(X2, Y2, intercept_init=np.zeros((1,)))
# Provided intercept_ does match dataset.
clf = klass().fit(X2, Y2, intercept_init=np.zeros((3,)))
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_predict_proba_method_access(klass):
# Checks that SGDClassifier predict_proba and predict_log_proba methods
# can either be accessed or raise an appropriate error message
# otherwise. See
# https://github.com/scikit-learn/scikit-learn/issues/10938 for more
# details.
for loss in linear_model.SGDClassifier.loss_functions:
clf = SGDClassifier(loss=loss)
if loss in ('log', 'modified_huber'):
assert hasattr(clf, 'predict_proba')
assert hasattr(clf, 'predict_log_proba')
else:
message = ("probability estimates are not "
"available for loss={!r}".format(loss))
assert not hasattr(clf, 'predict_proba')
assert not hasattr(clf, 'predict_log_proba')
with pytest.raises(AttributeError,
match=message):
clf.predict_proba
with pytest.raises(AttributeError,
match=message):
clf.predict_log_proba
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_proba(klass):
# Check SGD.predict_proba
# Hinge loss does not allow for conditional prob estimate.
# We cannot use the factory here, because it defines predict_proba
# anyway.
clf = SGDClassifier(loss="hinge", alpha=0.01,
max_iter=10, tol=None).fit(X, Y)
assert not hasattr(clf, "predict_proba")
assert not hasattr(clf, "predict_log_proba")
# log and modified_huber losses can output probability estimates
# binary case
for loss in ["log", "modified_huber"]:
clf = klass(loss=loss, alpha=0.01, max_iter=10)
clf.fit(X, Y)
p = clf.predict_proba([[3, 2]])
assert p[0, 1] > 0.5
p = clf.predict_proba([[-1, -1]])
assert p[0, 1] < 0.5
p = clf.predict_log_proba([[3, 2]])
assert p[0, 1] > p[0, 0]
p = clf.predict_log_proba([[-1, -1]])
assert p[0, 1] < p[0, 0]
# log loss multiclass probability estimates
clf = klass(loss="log", alpha=0.01, max_iter=10).fit(X2, Y2)
d = clf.decision_function([[.1, -.1], [.3, .2]])
p = clf.predict_proba([[.1, -.1], [.3, .2]])
assert_array_equal(np.argmax(p, axis=1), np.argmax(d, axis=1))
assert_almost_equal(p[0].sum(), 1)
assert np.all(p[0] >= 0)
p = clf.predict_proba([[-1, -1]])
d = clf.decision_function([[-1, -1]])
assert_array_equal(np.argsort(p[0]), np.argsort(d[0]))
lp = clf.predict_log_proba([[3, 2]])
p = clf.predict_proba([[3, 2]])
assert_array_almost_equal(np.log(p), lp)
lp = clf.predict_log_proba([[-1, -1]])
p = clf.predict_proba([[-1, -1]])
assert_array_almost_equal(np.log(p), lp)
# Modified Huber multiclass probability estimates; requires a separate
# test because the hard zero/one probabilities may destroy the
# ordering present in decision_function output.
clf = klass(loss="modified_huber", alpha=0.01, max_iter=10)
clf.fit(X2, Y2)
d = clf.decision_function([[3, 2]])
p = clf.predict_proba([[3, 2]])
if klass != SparseSGDClassifier:
assert np.argmax(d, axis=1) == np.argmax(p, axis=1)
else: # XXX the sparse test gets a different X2 (?)
assert np.argmin(d, axis=1) == np.argmin(p, axis=1)
# the following sample produces decision_function values < -1,
# which would cause naive normalization to fail (see comment
# in SGDClassifier.predict_proba)
x = X.mean(axis=0)
d = clf.decision_function([x])
if np.all(d < -1): # XXX not true in sparse test case (why?)
p = clf.predict_proba([x])
assert_array_almost_equal(p[0], [1 / 3.] * 3)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sgd_l1(klass):
# Test L1 regularization
n = len(X4)
rng = np.random.RandomState(13)
idx = np.arange(n)
rng.shuffle(idx)
X = X4[idx, :]
Y = Y4[idx]
clf = klass(penalty='l1', alpha=.2, fit_intercept=False,
max_iter=2000, tol=None, shuffle=False)
clf.fit(X, Y)
assert_array_equal(clf.coef_[0, 1:-1], np.zeros((4,)))
pred = clf.predict(X)
assert_array_equal(pred, Y)
# test sparsify with dense inputs
clf.sparsify()
assert sp.issparse(clf.coef_)
pred = clf.predict(X)
assert_array_equal(pred, Y)
# pickle and unpickle with sparse coef_
clf = pickle.loads(pickle.dumps(clf))
assert sp.issparse(clf.coef_)
pred = clf.predict(X)
assert_array_equal(pred, Y)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_class_weights(klass):
# Test class weights.
X = np.array([[-1.0, -1.0], [-1.0, 0], [-.8, -1.0],
[1.0, 1.0], [1.0, 0.0]])
y = [1, 1, 1, -1, -1]
clf = klass(alpha=0.1, max_iter=1000, fit_intercept=False,
class_weight=None)
clf.fit(X, y)
assert_array_equal(clf.predict([[0.2, -1.0]]), np.array([1]))
# we give a small weights to class 1
clf = klass(alpha=0.1, max_iter=1000, fit_intercept=False,
class_weight={1: 0.001})
clf.fit(X, y)
# now the hyperplane should rotate clock-wise and
# the prediction on this point should shift
assert_array_equal(clf.predict([[0.2, -1.0]]), np.array([-1]))
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_equal_class_weight(klass):
# Test if equal class weights approx. equals no class weights.
X = [[1, 0], [1, 0], [0, 1], [0, 1]]
y = [0, 0, 1, 1]
clf = klass(alpha=0.1, max_iter=1000, class_weight=None)
clf.fit(X, y)
X = [[1, 0], [0, 1]]
y = [0, 1]
clf_weighted = klass(alpha=0.1, max_iter=1000,
class_weight={0: 0.5, 1: 0.5})
clf_weighted.fit(X, y)
# should be similar up to some epsilon due to learning rate schedule
assert_almost_equal(clf.coef_, clf_weighted.coef_, decimal=2)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_wrong_class_weight_label(klass):
# ValueError due to not existing class label.
clf = klass(alpha=0.1, max_iter=1000, class_weight={0: 0.5})
with pytest.raises(ValueError):
clf.fit(X, Y)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_wrong_class_weight_format(klass):
# ValueError due to wrong class_weight argument type.
clf = klass(alpha=0.1, max_iter=1000, class_weight=[0.5])
with pytest.raises(ValueError):
clf.fit(X, Y)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_weights_multiplied(klass):
# Tests that class_weight and sample_weight are multiplicative
class_weights = {1: .6, 2: .3}
rng = np.random.RandomState(0)
sample_weights = rng.random_sample(Y4.shape[0])
multiplied_together = np.copy(sample_weights)
multiplied_together[Y4 == 1] *= class_weights[1]
multiplied_together[Y4 == 2] *= class_weights[2]
clf1 = klass(alpha=0.1, max_iter=20, class_weight=class_weights)
clf2 = klass(alpha=0.1, max_iter=20)
clf1.fit(X4, Y4, sample_weight=sample_weights)
clf2.fit(X4, Y4, sample_weight=multiplied_together)
assert_almost_equal(clf1.coef_, clf2.coef_)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_balanced_weight(klass):
# Test class weights for imbalanced data"""
# compute reference metrics on iris dataset that is quite balanced by
# default
X, y = iris.data, iris.target
X = scale(X)
idx = np.arange(X.shape[0])
rng = np.random.RandomState(6)
rng.shuffle(idx)
X = X[idx]
y = y[idx]
clf = klass(alpha=0.0001, max_iter=1000,
class_weight=None, shuffle=False).fit(X, y)
f1 = metrics.f1_score(y, clf.predict(X), average='weighted')
assert_almost_equal(f1, 0.96, decimal=1)
# make the same prediction using balanced class_weight
clf_balanced = klass(alpha=0.0001, max_iter=1000,
class_weight="balanced",
shuffle=False).fit(X, y)
f1 = metrics.f1_score(y, clf_balanced.predict(X), average='weighted')
assert_almost_equal(f1, 0.96, decimal=1)
# Make sure that in the balanced case it does not change anything
# to use "balanced"
assert_array_almost_equal(clf.coef_, clf_balanced.coef_, 6)
# build an very very imbalanced dataset out of iris data
X_0 = X[y == 0, :]
y_0 = y[y == 0]
X_imbalanced = np.vstack([X] + [X_0] * 10)
y_imbalanced = np.concatenate([y] + [y_0] * 10)
# fit a model on the imbalanced data without class weight info
clf = klass(max_iter=1000, class_weight=None, shuffle=False)
clf.fit(X_imbalanced, y_imbalanced)
y_pred = clf.predict(X)
assert metrics.f1_score(y, y_pred, average='weighted') < 0.96
# fit a model with balanced class_weight enabled
clf = klass(max_iter=1000, class_weight="balanced",
shuffle=False)
clf.fit(X_imbalanced, y_imbalanced)
y_pred = clf.predict(X)
assert metrics.f1_score(y, y_pred, average='weighted') > 0.96
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_sample_weights(klass):
# Test weights on individual samples
X = np.array([[-1.0, -1.0], [-1.0, 0], [-.8, -1.0],
[1.0, 1.0], [1.0, 0.0]])
y = [1, 1, 1, -1, -1]
clf = klass(alpha=0.1, max_iter=1000, fit_intercept=False)
clf.fit(X, y)
assert_array_equal(clf.predict([[0.2, -1.0]]), np.array([1]))
# we give a small weights to class 1
clf.fit(X, y, sample_weight=[0.001] * 3 + [1] * 2)
# now the hyperplane should rotate clock-wise and
# the prediction on this point should shift
assert_array_equal(clf.predict([[0.2, -1.0]]), np.array([-1]))
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_wrong_sample_weights(klass):
# Test if ValueError is raised if sample_weight has wrong shape
clf = klass(alpha=0.1, max_iter=1000, fit_intercept=False)
# provided sample_weight too long
with pytest.raises(ValueError):
clf.fit(X, Y, sample_weight=np.arange(7))
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_partial_fit_exception(klass):
clf = klass(alpha=0.01)
# classes was not specified
with pytest.raises(ValueError):
clf.partial_fit(X3, Y3)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_partial_fit_binary(klass):
third = X.shape[0] // 3
clf = klass(alpha=0.01)
classes = np.unique(Y)
clf.partial_fit(X[:third], Y[:third], classes=classes)
assert clf.coef_.shape == (1, X.shape[1])
assert clf.intercept_.shape == (1,)
assert clf.decision_function([[0, 0]]).shape == (1, )
id1 = id(clf.coef_.data)
clf.partial_fit(X[third:], Y[third:])
id2 = id(clf.coef_.data)
# check that coef_ haven't been re-allocated
assert id1, id2
y_pred = clf.predict(T)
assert_array_equal(y_pred, true_result)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_partial_fit_multiclass(klass):
third = X2.shape[0] // 3
clf = klass(alpha=0.01)
classes = np.unique(Y2)
clf.partial_fit(X2[:third], Y2[:third], classes=classes)
assert clf.coef_.shape == (3, X2.shape[1])
assert clf.intercept_.shape == (3,)
assert clf.decision_function([[0, 0]]).shape == (1, 3)
id1 = id(clf.coef_.data)
clf.partial_fit(X2[third:], Y2[third:])
id2 = id(clf.coef_.data)
# check that coef_ haven't been re-allocated
assert id1, id2
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_partial_fit_multiclass_average(klass):
third = X2.shape[0] // 3
clf = klass(alpha=0.01, average=X2.shape[0])
classes = np.unique(Y2)
clf.partial_fit(X2[:third], Y2[:third], classes=classes)
assert clf.coef_.shape == (3, X2.shape[1])
assert clf.intercept_.shape == (3,)
clf.partial_fit(X2[third:], Y2[third:])
assert clf.coef_.shape == (3, X2.shape[1])
assert clf.intercept_.shape == (3,)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_fit_then_partial_fit(klass):
# Partial_fit should work after initial fit in the multiclass case.
# Non-regression test for #2496; fit would previously produce a
# Fortran-ordered coef_ that subsequent partial_fit couldn't handle.
clf = klass()
clf.fit(X2, Y2)
clf.partial_fit(X2, Y2) # no exception here
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
@pytest.mark.parametrize('lr',
["constant", "optimal", "invscaling", "adaptive"])
def test_partial_fit_equal_fit_classif(klass, lr):
for X_, Y_, T_ in ((X, Y, T), (X2, Y2, T2)):
clf = klass(alpha=0.01, eta0=0.01, max_iter=2,
learning_rate=lr, shuffle=False)
clf.fit(X_, Y_)
y_pred = clf.decision_function(T_)
t = clf.t_
classes = np.unique(Y_)
clf = klass(alpha=0.01, eta0=0.01, learning_rate=lr,
shuffle=False)
for i in range(2):
clf.partial_fit(X_, Y_, classes=classes)
y_pred2 = clf.decision_function(T_)
assert clf.t_ == t
assert_array_almost_equal(y_pred, y_pred2, decimal=2)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_regression_losses(klass):
random_state = np.random.RandomState(1)
clf = klass(alpha=0.01, learning_rate="constant",
eta0=0.1, loss="epsilon_insensitive",
random_state=random_state)
clf.fit(X, Y)
assert 1.0 == np.mean(clf.predict(X) == Y)
clf = klass(alpha=0.01, learning_rate="constant",
eta0=0.1, loss="squared_epsilon_insensitive",
random_state=random_state)
clf.fit(X, Y)
assert 1.0 == np.mean(clf.predict(X) == Y)
clf = klass(alpha=0.01, loss="huber", random_state=random_state)
clf.fit(X, Y)
assert 1.0 == np.mean(clf.predict(X) == Y)
clf = klass(alpha=0.01, learning_rate="constant", eta0=0.01,
loss="squared_loss", random_state=random_state)
clf.fit(X, Y)
assert 1.0 == np.mean(clf.predict(X) == Y)
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_warm_start_multiclass(klass):
_test_warm_start(klass, X2, Y2, "optimal")
@pytest.mark.parametrize('klass', [SGDClassifier, SparseSGDClassifier])
def test_multiple_fit(klass):
# Test multiple calls of fit w/ different shaped inputs.
clf = klass(alpha=0.01, shuffle=False)
clf.fit(X, Y)
assert hasattr(clf, "coef_")
# Non-regression test: try fitting with a different label set.
y = [["ham", "spam"][i] for i in LabelEncoder().fit_transform(Y)]
clf.fit(X[:, :-1], y)
###############################################################################
# Regression Test Case
@pytest.mark.parametrize('klass', [SGDRegressor, SparseSGDRegressor])
def test_sgd_reg(klass):
# Check that SGD gives any results.
clf = klass(alpha=0.1, max_iter=2, fit_intercept=False)
clf.fit([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
assert clf.coef_[0] == clf.coef_[1]
@pytest.mark.parametrize('klass', [SGDRegressor, SparseSGDRegressor])
def test_sgd_averaged_computed_correctly(klass):
# Tests the average regressor matches the naive implementation
eta = .001
alpha = .01
n_samples = 20
n_features = 10
rng = np.random.RandomState(0)
X = rng.normal(size=(n_samples, n_features))
w = rng.normal(size=n_features)
# simple linear function without noise
y = np.dot(X, w)
clf = klass(loss='squared_loss',
learning_rate='constant',
eta0=eta, alpha=alpha,
fit_intercept=True,
max_iter=1, average=True, shuffle=False)
clf.fit(X, y)
average_weights, average_intercept = asgd(klass, X, y, eta, alpha)
assert_array_almost_equal(clf.coef_,
average_weights,
decimal=16)
assert_almost_equal(clf.intercept_, average_intercept, decimal=16)
@pytest.mark.parametrize('klass', [SGDRegressor, SparseSGDRegressor])
def test_sgd_averaged_partial_fit(klass):
# Tests whether the partial fit yields the same average as the fit
eta = .001
alpha = .01
n_samples = 20
n_features = 10
rng = np.random.RandomState(0)
X = rng.normal(size=(n_samples, n_features))
w = rng.normal(size=n_features)
# simple linear function without noise
y = np.dot(X, w)
clf = klass(loss='squared_loss',
learning_rate='constant',
eta0=eta, alpha=alpha,
fit_intercept=True,
max_iter=1, average=True, shuffle=False)
clf.partial_fit(X[:int(n_samples / 2)][:], y[:int(n_samples / 2)])
clf.partial_fit(X[int(n_samples / 2):][:], y[int(n_samples / 2):])
average_weights, average_intercept = asgd(klass, X, y, eta, alpha)
assert_array_almost_equal(clf.coef_,
average_weights,
decimal=16)
assert_almost_equal(clf.intercept_[0], average_intercept, decimal=16)
@pytest.mark.parametrize('klass', [SGDRegressor, SparseSGDRegressor])
def test_average_sparse(klass):
# Checks the average weights on data with 0s
eta = .001
alpha = .01
clf = klass(loss='squared_loss',
learning_rate='constant',
eta0=eta, alpha=alpha,
fit_intercept=True,
max_iter=1, average=True, shuffle=False)
n_samples = Y3.shape[0]
clf.partial_fit(X3[:int(n_samples / 2)][:], Y3[:int(n_samples / 2)])
clf.partial_fit(X3[int(n_samples / 2):][:], Y3[int(n_samples / 2):])
average_weights, average_intercept = asgd(klass, X3, Y3, eta, alpha)
assert_array_almost_equal(clf.coef_,
average_weights,
decimal=16)
assert_almost_equal(clf.intercept_, average_intercept, decimal=16)
@pytest.mark.parametrize('klass', [SGDRegressor, SparseSGDRegressor])
def test_sgd_least_squares_fit(klass):
xmin, xmax = -5, 5
n_samples = 100
rng = np.random.RandomState(0)
X = np.linspace(xmin, xmax, n_samples).reshape(n_samples, 1)
# simple linear function without noise
y = 0.5 * X.ravel()
clf = klass(loss='squared_loss', alpha=0.1, max_iter=20,
fit_intercept=False)
clf.fit(X, y)
score = clf.score(X, y)
assert score > 0.99
# simple linear function with noise
y = 0.5 * X.ravel() + rng.randn(n_samples, 1).ravel()
clf = klass(loss='squared_loss', alpha=0.1, max_iter=20,
fit_intercept=False)
clf.fit(X, y)
score = clf.score(X, y)
assert score > 0.5
@pytest.mark.parametrize('klass', [SGDRegressor, SparseSGDRegressor])
def test_sgd_epsilon_insensitive(klass):
xmin, xmax = -5, 5
n_samples = 100
rng = np.random.RandomState(0)
X = np.linspace(xmin, xmax, n_samples).reshape(n_samples, 1)
# simple linear function without noise
y = 0.5 * X.ravel()
clf = klass(loss='epsilon_insensitive', epsilon=0.01,
alpha=0.1, max_iter=20,
fit_intercept=False)
clf.fit(X, y)
score = clf.score(X, y)
assert score > 0.99
# simple linear function with noise
y = 0.5 * X.ravel() + rng.randn(n_samples, 1).ravel()
clf = klass(loss='epsilon_insensitive', epsilon=0.01,
alpha=0.1, max_iter=20,
fit_intercept=False)
clf.fit(X, y)
score = clf.score(X, y)
assert score > 0.5
@pytest.mark.parametrize('klass', [SGDRegressor, SparseSGDRegressor])
def test_sgd_huber_fit(klass):
xmin, xmax = -5, 5
n_samples = 100
rng = np.random.RandomState(0)
X = np.linspace(xmin, xmax, n_samples).reshape(n_samples, 1)
# simple linear function without noise
y = 0.5 * X.ravel()
clf = klass(loss="huber", epsilon=0.1, alpha=0.1, max_iter=20,
fit_intercept=False)
clf.fit(X, y)
score = clf.score(X, y)
assert score > 0.99
# simple linear function with noise
y = 0.5 * X.ravel() + rng.randn(n_samples, 1).ravel()
clf = klass(loss="huber", epsilon=0.1, alpha=0.1, max_iter=20,
fit_intercept=False)
clf.fit(X, y)
score = clf.score(X, y)
assert score > 0.5
@pytest.mark.parametrize('klass', [SGDRegressor, SparseSGDRegressor])
def test_elasticnet_convergence(klass):
# Check that the SGD output is consistent with coordinate descent
n_samples, n_features = 1000, 5
rng = np.random.RandomState(0)
X = rng.randn(n_samples, n_features)
# ground_truth linear model that generate y from X and to which the
# models should converge if the regularizer would be set to 0.0
ground_truth_coef = rng.randn(n_features)
y = np.dot(X, ground_truth_coef)
# XXX: alpha = 0.1 seems to cause convergence problems
for alpha in [0.01, 0.001]:
for l1_ratio in [0.5, 0.8, 1.0]:
cd = linear_model.ElasticNet(alpha=alpha, l1_ratio=l1_ratio,
fit_intercept=False)
cd.fit(X, y)
sgd = klass(penalty='elasticnet', max_iter=50,
alpha=alpha, l1_ratio=l1_ratio,
fit_intercept=False)
sgd.fit(X, y)
err_msg = ("cd and sgd did not converge to comparable "
"results for alpha=%f and l1_ratio=%f"
% (alpha, l1_ratio))
assert_almost_equal(cd.coef_, sgd.coef_, decimal=2,
err_msg=err_msg)
@ignore_warnings
@pytest.mark.parametrize('klass', [SGDRegressor, SparseSGDRegressor])
def test_partial_fit(klass):
third = X.shape[0] // 3
clf = klass(alpha=0.01)
clf.partial_fit(X[:third], Y[:third])
assert clf.coef_.shape == (X.shape[1], )
assert clf.intercept_.shape == (1,)
assert clf.predict([[0, 0]]).shape == (1, )
id1 = id(clf.coef_.data)
clf.partial_fit(X[third:], Y[third:])
id2 = id(clf.coef_.data)
# check that coef_ haven't been re-allocated
assert id1, id2
@pytest.mark.parametrize('klass', [SGDRegressor, SparseSGDRegressor])
@pytest.mark.parametrize('lr',
["constant", "optimal", "invscaling", "adaptive"])
def test_partial_fit_equal_fit(klass, lr):
clf = klass(alpha=0.01, max_iter=2, eta0=0.01,
learning_rate=lr, shuffle=False)
clf.fit(X, Y)
y_pred = clf.predict(T)
t = clf.t_
clf = klass(alpha=0.01, eta0=0.01,
learning_rate=lr, shuffle=False)
for i in range(2):
clf.partial_fit(X, Y)
y_pred2 = clf.predict(T)
assert clf.t_ == t
assert_array_almost_equal(y_pred, y_pred2, decimal=2)
@pytest.mark.parametrize('klass', [SGDRegressor, SparseSGDRegressor])
def test_loss_function_epsilon(klass):
clf = klass(epsilon=0.9)
clf.set_params(epsilon=0.1)
assert clf.loss_functions['huber'][1] == 0.1
def test_l1_ratio():
# Test if l1 ratio extremes match L1 and L2 penalty settings.
X, y = datasets.make_classification(n_samples=1000,
n_features=100, n_informative=20,
random_state=1234)
# test if elasticnet with l1_ratio near 1 gives same result as pure l1
est_en = SGDClassifier(alpha=0.001, penalty='elasticnet', tol=None,
max_iter=6, l1_ratio=0.9999999999,
random_state=42).fit(X, y)
est_l1 = SGDClassifier(alpha=0.001, penalty='l1', max_iter=6,
random_state=42, tol=None).fit(X, y)
assert_array_almost_equal(est_en.coef_, est_l1.coef_)
# test if elasticnet with l1_ratio near 0 gives same result as pure l2
est_en = SGDClassifier(alpha=0.001, penalty='elasticnet', tol=None,
max_iter=6, l1_ratio=0.0000000001,
random_state=42).fit(X, y)
est_l2 = SGDClassifier(alpha=0.001, penalty='l2', max_iter=6,
random_state=42, tol=None).fit(X, y)
assert_array_almost_equal(est_en.coef_, est_l2.coef_)
def test_underflow_or_overlow():
with np.errstate(all='raise'):
# Generate some weird data with hugely unscaled features
rng = np.random.RandomState(0)
n_samples = 100
n_features = 10
X = rng.normal(size=(n_samples, n_features))
X[:, :2] *= 1e300
assert np.isfinite(X).all()
# Use MinMaxScaler to scale the data without introducing a numerical
# instability (computing the standard deviation naively is not possible
# on this data)
X_scaled = MinMaxScaler().fit_transform(X)
assert np.isfinite(X_scaled).all()
# Define a ground truth on the scaled data
ground_truth = rng.normal(size=n_features)
y = (np.dot(X_scaled, ground_truth) > 0.).astype(np.int32)
assert_array_equal(np.unique(y), [0, 1])
model = SGDClassifier(alpha=0.1, loss='squared_hinge', max_iter=500)
# smoke test: model is stable on scaled data
model.fit(X_scaled, y)
assert np.isfinite(model.coef_).all()
# model is numerically unstable on unscaled data
msg_regxp = (r"Floating-point under-/overflow occurred at epoch #.*"
" Scaling input data with StandardScaler or MinMaxScaler"
" might help.")
assert_raises_regexp(ValueError, msg_regxp, model.fit, X, y)
def test_numerical_stability_large_gradient():
# Non regression test case for numerical stability on scaled problems
# where the gradient can still explode with some losses
model = SGDClassifier(loss='squared_hinge', max_iter=10, shuffle=True,
penalty='elasticnet', l1_ratio=0.3, alpha=0.01,
eta0=0.001, random_state=0, tol=None)
with np.errstate(all='raise'):
model.fit(iris.data, iris.target)
assert np.isfinite(model.coef_).all()
@pytest.mark.parametrize('penalty', ['l2', 'l1', 'elasticnet'])
def test_large_regularization(penalty):
# Non regression tests for numerical stability issues caused by large
# regularization parameters
model = SGDClassifier(alpha=1e5, learning_rate='constant', eta0=0.1,
penalty=penalty, shuffle=False,
tol=None, max_iter=6)
with np.errstate(all='raise'):
model.fit(iris.data, iris.target)
assert_array_almost_equal(model.coef_, np.zeros_like(model.coef_))
def test_tol_parameter():
# Test that the tol parameter behaves as expected
X = StandardScaler().fit_transform(iris.data)
y = iris.target == 1
# With tol is None, the number of iteration should be equal to max_iter
max_iter = 42
model_0 = SGDClassifier(tol=None, random_state=0, max_iter=max_iter)
model_0.fit(X, y)
assert max_iter == model_0.n_iter_
# If tol is not None, the number of iteration should be less than max_iter
max_iter = 2000
model_1 = SGDClassifier(tol=0, random_state=0, max_iter=max_iter)
model_1.fit(X, y)
assert max_iter > model_1.n_iter_
assert model_1.n_iter_ > 5
# A larger tol should yield a smaller number of iteration
model_2 = SGDClassifier(tol=0.1, random_state=0, max_iter=max_iter)
model_2.fit(X, y)
assert model_1.n_iter_ > model_2.n_iter_
assert model_2.n_iter_ > 3
# Strict tolerance and small max_iter should trigger a warning
model_3 = SGDClassifier(max_iter=3, tol=1e-3, random_state=0)
model_3 = assert_warns(ConvergenceWarning, model_3.fit, X, y)
assert model_3.n_iter_ == 3
def _test_loss_common(loss_function, cases):
# Test the different loss functions
# cases is a list of (p, y, expected)
for p, y, expected_loss, expected_dloss in cases:
assert_almost_equal(loss_function.py_loss(p, y), expected_loss)
assert_almost_equal(loss_function.py_dloss(p, y), expected_dloss)
def test_loss_hinge():
# Test Hinge (hinge / perceptron)
# hinge
loss = sgd_fast.Hinge(1.0)
cases = [
# (p, y, expected_loss, expected_dloss)
(1.1, 1.0, 0.0, 0.0), (-2.0, -1.0, 0.0, 0.0),
(1.0, 1.0, 0.0, -1.0), (-1.0, -1.0, 0.0, 1.0), (0.5, 1.0, 0.5, -1.0),
(2.0, -1.0, 3.0, 1.0), (-0.5, -1.0, 0.5, 1.0), (0.0, 1.0, 1, -1.0)
]
_test_loss_common(loss, cases)
# perceptron
loss = sgd_fast.Hinge(0.0)
cases = [
# (p, y, expected_loss, expected_dloss)
(1.0, 1.0, 0.0, 0.0), (-0.1, -1.0, 0.0, 0.0),
(0.0, 1.0, 0.0, -1.0), (0.0, -1.0, 0.0, 1.0), (0.5, -1.0, 0.5, 1.0),
(2.0, -1.0, 2.0, 1.0), (-0.5, 1.0, 0.5, -1.0), (-1.0, 1.0, 1.0, -1.0),
]
_test_loss_common(loss, cases)
def test_gradient_squared_hinge():
# Test SquaredHinge
loss = sgd_fast.SquaredHinge(1.0)
cases = [
# (p, y, expected_loss, expected_dloss)
(1.0, 1.0, 0.0, 0.0), (-2.0, -1.0, 0.0, 0.0), (1.0, -1.0, 4.0, 4.0),
(-1.0, 1.0, 4.0, -4.0), (0.5, 1.0, 0.25, -1.0), (0.5, -1.0, 2.25, 3.0)
]
_test_loss_common(loss, cases)
def test_loss_log():
# Test Log (logistic loss)
loss = sgd_fast.Log()
cases = [
# (p, y, expected_loss, expected_dloss)
(1.0, 1.0, np.log(1.0 + np.exp(-1.0)), -1.0 / (np.exp(1.0) + 1.0)),
(1.0, -1.0, np.log(1.0 + np.exp(1.0)), 1.0 / (np.exp(-1.0) + 1.0)),
(-1.0, -1.0, np.log(1.0 + np.exp(-1.0)), 1.0 / (np.exp(1.0) + 1.0)),
(-1.0, 1.0, np.log(1.0 + np.exp(1.0)), -1.0 / (np.exp(-1.0) + 1.0)),
(0.0, 1.0, np.log(2), -0.5), (0.0, -1.0, np.log(2), 0.5),
(17.9, -1.0, 17.9, 1.0), (-17.9, 1.0, 17.9, -1.0),
]
_test_loss_common(loss, cases)
assert_almost_equal(loss.py_dloss(18.1, 1.0), np.exp(-18.1) * -1.0, 16)
assert_almost_equal(loss.py_loss(18.1, 1.0), np.exp(-18.1), 16)
assert_almost_equal(loss.py_dloss(-18.1, -1.0), np.exp(-18.1) * 1.0, 16)
assert_almost_equal(loss.py_loss(-18.1, 1.0), 18.1, 16)
def test_loss_squared_loss():
# Test SquaredLoss
loss = sgd_fast.SquaredLoss()
cases = [
# (p, y, expected_loss, expected_dloss)
(0.0, 0.0, 0.0, 0.0), (1.0, 1.0, 0.0, 0.0), (1.0, 0.0, 0.5, 1.0),
(0.5, -1.0, 1.125, 1.5), (-2.5, 2.0, 10.125, -4.5)
]
_test_loss_common(loss, cases)
def test_loss_huber():
# Test Huber
loss = sgd_fast.Huber(0.1)
cases = [
# (p, y, expected_loss, expected_dloss)
(0.0, 0.0, 0.0, 0.0), (0.1, 0.0, 0.005, 0.1), (0.0, 0.1, 0.005, -0.1),
(3.95, 4.0, 0.00125, -0.05), (5.0, 2.0, 0.295, 0.1),
(-1.0, 5.0, 0.595, -0.1)
]
_test_loss_common(loss, cases)
def test_loss_modified_huber():
# (p, y, expected_loss, expected_dloss)
loss = sgd_fast.ModifiedHuber()
cases = [
# (p, y, expected_loss, expected_dloss)
(1.0, 1.0, 0.0, 0.0), (-1.0, -1.0, 0.0, 0.0), (2.0, 1.0, 0.0, 0.0),
(0.0, 1.0, 1.0, -2.0), (-1.0, 1.0, 4.0, -4.0), (0.5, -1.0, 2.25, 3.0),
(-2.0, 1.0, 8, -4.0), (-3.0, 1.0, 12, -4.0)
]
_test_loss_common(loss, cases)
def test_loss_epsilon_insensitive():
# Test EpsilonInsensitive
loss = sgd_fast.EpsilonInsensitive(0.1)
cases = [
# (p, y, expected_loss, expected_dloss)
(0.0, 0.0, 0.0, 0.0), (0.1, 0.0, 0.0, 0.0), (-2.05, -2.0, 0.0, 0.0),
(3.05, 3.0, 0.0, 0.0), (2.2, 2.0, 0.1, 1.0), (2.0, -1.0, 2.9, 1.0),
(2.0, 2.2, 0.1, -1.0), (-2.0, 1.0, 2.9, -1.0)
]
_test_loss_common(loss, cases)
def test_loss_squared_epsilon_insensitive():
# Test SquaredEpsilonInsensitive
loss = sgd_fast.SquaredEpsilonInsensitive(0.1)
cases = [
# (p, y, expected_loss, expected_dloss)
(0.0, 0.0, 0.0, 0.0), (0.1, 0.0, 0.0, 0.0), (-2.05, -2.0, 0.0, 0.0),
(3.05, 3.0, 0.0, 0.0), (2.2, 2.0, 0.01, 0.2), (2.0, -1.0, 8.41, 5.8),
(2.0, 2.2, 0.01, -0.2), (-2.0, 1.0, 8.41, -5.8)
]
_test_loss_common(loss, cases)
def test_multi_thread_multi_class_and_early_stopping():
# This is a non-regression test for a bad interaction between
# early stopping internal attribute and thread-based parallelism.
clf = SGDClassifier(alpha=1e-3, tol=1e-3, max_iter=1000,
early_stopping=True, n_iter_no_change=100,
random_state=0, n_jobs=2)
clf.fit(iris.data, iris.target)
assert clf.n_iter_ > clf.n_iter_no_change
assert clf.n_iter_ < clf.n_iter_no_change + 20
assert clf.score(iris.data, iris.target) > 0.8
def test_multi_core_gridsearch_and_early_stopping():
# This is a non-regression test for a bad interaction between
# early stopping internal attribute and process-based multi-core
# parallelism.
param_grid = {
'alpha': np.logspace(-4, 4, 9),
'n_iter_no_change': [5, 10, 50],
}
clf = SGDClassifier(tol=1e-2, max_iter=1000, early_stopping=True,
random_state=0)
search = RandomizedSearchCV(clf, param_grid, n_iter=3, n_jobs=2,
random_state=0)
search.fit(iris.data, iris.target)
assert search.best_score_ > 0.8
@pytest.mark.parametrize("backend",
["loky", "multiprocessing", "threading"])
def test_SGDClassifier_fit_for_all_backends(backend):
# This is a non-regression smoke test. In the multi-class case,
# SGDClassifier.fit fits each class in a one-versus-all fashion using
# joblib.Parallel. However, each OvA step updates the coef_ attribute of
# the estimator in-place. Internally, SGDClassifier calls Parallel using
# require='sharedmem'. This test makes sure SGDClassifier.fit works
# consistently even when the user asks for a backend that does not provide
# sharedmem semantics.
# We further test a case where memmapping would have been used if
# SGDClassifier.fit was called from a loky or multiprocessing backend. In
# this specific case, in-place modification of clf.coef_ would have caused
# a segmentation fault when trying to write in a readonly memory mapped
# buffer.
if (parse_version(joblib.__version__) < parse_version('0.12')
and backend == 'loky'):
pytest.skip('loky backend does not exist in joblib <0.12')
random_state = np.random.RandomState(42)
# Create a classification problem with 50000 features and 20 classes. Using
# loky or multiprocessing this make the clf.coef_ exceed the threshold
# above which memmaping is used in joblib and loky (1MB as of 2018/11/1).
X = sp.random(500, 2000, density=0.02, format='csr',
random_state=random_state)
y = random_state.choice(20, 500)
# Begin by fitting a SGD classifier sequentially
clf_sequential = SGDClassifier(max_iter=1000, n_jobs=1,
random_state=42)
clf_sequential.fit(X, y)
# Fit a SGDClassifier using the specified backend, and make sure the
# coefficients are equal to those obtained using a sequential fit
clf_parallel = SGDClassifier(max_iter=1000, n_jobs=4,
random_state=42)
with joblib.parallel_backend(backend=backend):
clf_parallel.fit(X, y)
assert_array_almost_equal(clf_sequential.coef_, clf_parallel.coef_)
| [
1,
1053,
5839,
280,
13,
5215,
11451,
1688,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
4560,
2272,
29889,
29879,
5510,
408,
805,
13,
5215,
4982,
1982,
13,
13,
3166,
2071,
19668,
29889,
13239,
3032,
13424,
1053,
4974,
29918,
2378,
29918,
11745,
13,
3166,
2071,
19668,
29889,
13239,
3032,
13424,
1053,
4974,
29918,
284,
3242,
29918,
11745,
13,
3166,
2071,
19668,
29889,
13239,
3032,
13424,
1053,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
13,
3166,
2071,
19668,
29889,
13239,
3032,
13424,
1053,
4974,
29918,
336,
4637,
29918,
13087,
29886,
13,
3166,
2071,
19668,
29889,
13239,
3032,
13424,
1053,
4974,
29918,
4495,
1983,
13,
3166,
2071,
19668,
29889,
13239,
3032,
13424,
1053,
11455,
29918,
25442,
886,
13,
3166,
2071,
19668,
29889,
13239,
29889,
5878,
267,
1053,
6088,
29918,
3259,
13,
13,
3166,
2071,
19668,
1053,
5608,
29918,
4299,
29892,
20035,
29892,
21556,
13,
3166,
2071,
19668,
29889,
3188,
1053,
17432,
29892,
338,
29918,
1990,
3709,
13,
3166,
2071,
19668,
29889,
1457,
19170,
1053,
15796,
8566,
6119,
29892,
6287,
29892,
3080,
7976,
29636,
261,
13,
3166,
2071,
19668,
29889,
1457,
19170,
1053,
10117,
29636,
261,
13,
3166,
2071,
19668,
29889,
11739,
29879,
1053,
1281,
369,
10238,
22709,
13,
3166,
2071,
19668,
29889,
4299,
29918,
21731,
1053,
3767,
271,
2164,
2713,
21897,
18772,
29892,
1383,
21897,
18772,
13,
3166,
2071,
19668,
29889,
10660,
29918,
4299,
1053,
903,
5311,
29881,
29918,
11255,
408,
269,
29887,
29881,
29918,
11255,
13,
3166,
2071,
19668,
29889,
4299,
29918,
21731,
1053,
16968,
1891,
7974,
15633,
13,
13,
13,
1753,
903,
5504,
29918,
19290,
29898,
19290,
1125,
13,
1678,
565,
376,
8172,
29918,
3859,
29908,
451,
297,
9049,
5085,
29901,
13,
4706,
9049,
5085,
3366,
8172,
29918,
3859,
3108,
353,
29871,
29946,
29906,
13,
13,
1678,
565,
376,
25027,
29908,
451,
297,
9049,
5085,
29901,
13,
4706,
9049,
5085,
3366,
25027,
3108,
353,
6213,
13,
1678,
565,
376,
3317,
29918,
1524,
29908,
451,
297,
9049,
5085,
29901,
13,
4706,
9049,
5085,
3366,
3317,
29918,
1524,
3108,
353,
29871,
29945,
13,
13,
13,
1990,
903,
29903,
5510,
26016,
29928,
2385,
3709,
29898,
10660,
29918,
4299,
29889,
26016,
29928,
2385,
3709,
1125,
13,
1678,
822,
6216,
29898,
1311,
29892,
1060,
29892,
343,
29892,
334,
5085,
29892,
3579,
11022,
1125,
13,
4706,
1060,
353,
805,
29889,
2395,
29878,
29918,
5344,
29898,
29990,
29897,
13,
4706,
736,
2428,
2141,
9202,
29898,
29990,
29892,
343,
29892,
334,
5085,
29892,
3579,
11022,
29897,
13,
13,
1678,
822,
7687,
29918,
9202,
29898,
1311,
29892,
1060,
29892,
343,
29892,
334,
5085,
29892,
3579,
11022,
1125,
13,
4706,
1060,
353,
805,
29889,
2395,
29878,
29918,
5344,
29898,
29990,
29897,
13,
4706,
736,
2428,
2141,
3846,
29918,
9202,
29898,
29990,
29892,
343,
29892,
334,
5085,
29892,
3579,
11022,
29897,
13,
13,
1678,
822,
10608,
29918,
2220,
29898,
1311,
29892,
1060,
1125,
13,
4706,
1060,
353,
805,
29889,
2395,
29878,
29918,
5344,
29898,
29990,
29897,
13,
4706,
736,
2428,
2141,
7099,
2459,
29918,
2220,
29898,
29990,
29897,
13,
13,
1678,
822,
8500,
29918,
771,
2291,
29898,
1311,
29892,
1060,
1125,
13,
4706,
1060,
353,
805,
29889,
2395,
29878,
29918,
5344,
29898,
29990,
29897,
13,
4706,
736,
2428,
2141,
27711,
29918,
771,
2291,
29898,
29990,
29897,
13,
13,
13,
1990,
903,
29903,
5510,
26016,
29928,
4597,
1253,
272,
29898,
10660,
29918,
4299,
29889,
26016,
29928,
4597,
1253,
272,
1125,
13,
1678,
822,
6216,
29898,
1311,
29892,
1060,
29892,
343,
29892,
334,
5085,
29892,
3579,
11022,
1125,
13,
4706,
1060,
353,
805,
29889,
2395,
29878,
29918,
5344,
29898,
29990,
29897,
13,
4706,
736,
5608,
29918,
4299,
29889,
26016,
29928,
4597,
1253,
272,
29889,
9202,
29898,
1311,
29892,
1060,
29892,
343,
29892,
334,
5085,
29892,
3579,
11022,
29897,
13,
13,
1678,
822,
7687,
29918,
9202,
29898,
1311,
29892,
1060,
29892,
343,
29892,
334,
5085,
29892,
3579,
11022,
1125,
13,
4706,
1060,
353,
805,
29889,
2395,
29878,
29918,
5344,
29898,
29990,
29897,
13,
4706,
736,
5608,
29918,
4299,
29889,
26016,
29928,
4597,
1253,
272,
29889,
3846,
29918,
9202,
29898,
1311,
29892,
1060,
29892,
343,
29892,
334,
5085,
29892,
3579,
11022,
29897,
13,
13,
1678,
822,
10608,
29918,
2220,
29898,
1311,
29892,
1060,
29892,
334,
5085,
29892,
3579,
11022,
1125,
13,
4706,
396,
22615,
443,
1688,
287,
408,
310,
325,
29900,
29889,
29906,
29906,
13,
4706,
1060,
353,
805,
29889,
2395,
29878,
29918,
5344,
29898,
29990,
29897,
13,
4706,
736,
5608,
29918,
4299,
29889,
26016,
29928,
4597,
1253,
272,
29889,
7099,
2459,
29918,
2220,
29898,
1311,
29892,
1060,
29892,
334,
5085,
29892,
13,
462,
462,
462,
965,
3579,
11022,
29897,
13,
13,
13,
1753,
317,
29954,
29928,
2385,
3709,
29898,
1068,
19290,
1125,
13,
1678,
903,
5504,
29918,
19290,
29898,
19290,
29897,
13,
1678,
736,
5608,
29918,
4299,
29889,
26016,
29928,
2385,
3709,
29898,
1068,
19290,
29897,
13,
13,
13,
1753,
317,
29954,
29928,
4597,
1253,
272,
29898,
1068,
19290,
1125,
13,
1678,
903,
5504,
29918,
19290,
29898,
19290,
29897,
13,
1678,
736,
5608,
29918,
4299,
29889,
26016,
29928,
4597,
1253,
272,
29898,
1068,
19290,
29897,
13,
13,
13,
1753,
317,
5510,
26016,
29928,
2385,
3709,
29898,
1068,
19290,
1125,
13,
1678,
903,
5504,
29918,
19290,
29898,
19290,
29897,
13,
1678,
736,
903,
29903,
5510,
26016,
29928,
2385,
3709,
29898,
1068,
19290,
29897,
13,
13,
13,
1753,
317,
5510,
26016,
29928,
4597,
1253,
272,
29898,
1068,
19290,
1125,
13,
1678,
903,
5504,
29918,
19290,
29898,
19290,
29897,
13,
1678,
736,
903,
29903,
5510,
26016,
29928,
4597,
1253,
272,
29898,
1068,
19290,
29897,
13,
13,
13,
29937,
4321,
3630,
13,
13,
29937,
1243,
4559,
29871,
29896,
13,
29990,
353,
7442,
29889,
2378,
4197,
14352,
29906,
29892,
448,
29896,
1402,
21069,
29896,
29892,
448,
29896,
1402,
21069,
29896,
29892,
448,
29906,
1402,
518,
29896,
29892,
29871,
29896,
1402,
518,
29896,
29892,
29871,
29906,
1402,
518,
29906,
29892,
29871,
29896,
24960,
13,
29979,
353,
518,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29906,
29892,
29871,
29906,
29962,
13,
29911,
353,
7442,
29889,
2378,
4197,
14352,
29896,
29892,
448,
29896,
1402,
518,
29906,
29892,
29871,
29906,
1402,
518,
29941,
29892,
29871,
29906,
24960,
13,
3009,
29918,
2914,
353,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29906,
29962,
13,
13,
29937,
1243,
4559,
29871,
29906,
29936,
1347,
770,
11073,
13,
29990,
29906,
353,
7442,
29889,
2378,
4197,
14352,
29896,
29892,
29871,
29896,
1402,
21069,
29900,
29889,
29955,
29945,
29892,
29871,
29900,
29889,
29945,
1402,
21069,
29896,
29889,
29945,
29892,
29871,
29896,
29889,
29945,
1402,
13,
1669,
518,
29896,
29892,
29871,
29896,
1402,
518,
29900,
29889,
29955,
29945,
29892,
29871,
29900,
29889,
29945,
1402,
518,
29896,
29889,
29945,
29892,
29871,
29896,
29889,
29945,
1402,
13,
1669,
21069,
29896,
29892,
448,
29896,
1402,
518,
29900,
29892,
448,
29900,
29889,
29945,
1402,
518,
29896,
29892,
448,
29896,
24960,
13,
29979,
29906,
353,
6796,
650,
3108,
334,
29871,
29941,
718,
6796,
10184,
3108,
334,
29871,
29941,
718,
6796,
17536,
3108,
334,
29871,
29941,
13,
29911,
29906,
353,
7442,
29889,
2378,
4197,
14352,
29896,
29889,
29945,
29892,
29871,
29900,
29889,
29945,
1402,
518,
29896,
29892,
29871,
29906,
1402,
518,
29900,
29892,
448,
29906,
24960,
13,
3009,
29918,
2914,
29906,
353,
6796,
650,
613,
376,
10184,
613,
376,
17536,
3108,
13,
13,
29937,
1243,
4559,
29871,
29941,
13,
29990,
29941,
353,
7442,
29889,
2378,
4197,
29961,
29896,
29892,
29871,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
518,
29896,
29892,
29871,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
13,
1669,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
13,
1669,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
29892,
29871,
29896,
1402,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
29892,
29871,
29896,
1402,
13,
1669,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
24960,
13,
29979,
29941,
353,
7442,
29889,
2378,
4197,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29906,
29892,
29871,
29906,
29892,
29871,
29906,
2314,
13,
13,
29937,
1243,
4559,
29871,
29946,
448,
1023,
901,
470,
3109,
28005,
4682,
6471,
13,
29990,
29946,
353,
7442,
29889,
2378,
4197,
29961,
29896,
29892,
29871,
29900,
29889,
29929,
29892,
29871,
29900,
29889,
29947,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
518,
29896,
29892,
869,
29947,
29946,
29892,
869,
29929,
29947,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
13,
1669,
518,
29896,
29892,
869,
29929,
29953,
29892,
869,
29947,
29947,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
518,
29896,
29892,
869,
29929,
29896,
29892,
869,
29929,
29929,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
13,
1669,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
869,
29947,
29929,
29892,
869,
29929,
29896,
29892,
29871,
29896,
1402,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
869,
29955,
29929,
29892,
869,
29947,
29946,
29892,
29871,
29896,
1402,
13,
1669,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
869,
29929,
29896,
29892,
869,
29929,
29945,
29892,
29871,
29896,
1402,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
869,
29929,
29941,
29892,
29871,
29896,
29892,
29871,
29896,
24960,
13,
29979,
29946,
353,
7442,
29889,
2378,
4197,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29906,
29892,
29871,
29906,
29892,
29871,
29906,
2314,
13,
13,
381,
275,
353,
20035,
29889,
1359,
29918,
381,
275,
580,
13,
13,
29937,
1243,
4559,
29871,
29945,
448,
1243,
4559,
29871,
29896,
408,
7581,
12965,
1108,
13,
29990,
29945,
353,
7442,
29889,
2378,
4197,
14352,
29906,
29892,
448,
29896,
1402,
21069,
29896,
29892,
448,
29896,
1402,
21069,
29896,
29892,
448,
29906,
1402,
518,
29896,
29892,
29871,
29896,
1402,
518,
29896,
29892,
29871,
29906,
1402,
518,
29906,
29892,
29871,
29896,
24960,
13,
29979,
29945,
353,
518,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29906,
29892,
29871,
29906,
29962,
13,
3009,
29918,
2914,
29945,
353,
518,
29900,
29892,
29871,
29896,
29892,
29871,
29896,
29962,
13,
13,
13,
13383,
13383,
13383,
13383,
7346,
4136,
2277,
29937,
13,
29937,
13103,
4321,
11733,
304,
12965,
322,
17855,
13,
13,
29937,
263,
2560,
5314,
310,
3339,
29954,
29928,
304,
671,
363,
6724,
13,
29937,
3913,
10674,
1965,
6410,
304,
1284,
278,
16030,
13,
1753,
408,
29887,
29881,
29898,
29895,
605,
29892,
1060,
29892,
343,
29892,
634,
29874,
29892,
15595,
29892,
7688,
29918,
2344,
29922,
8516,
29892,
23404,
29918,
2344,
29922,
29900,
29889,
29900,
1125,
13,
1678,
565,
7688,
29918,
2344,
338,
6213,
29901,
13,
4706,
18177,
353,
7442,
29889,
3298,
359,
29898,
29990,
29889,
12181,
29961,
29896,
2314,
13,
1678,
1683,
29901,
13,
4706,
18177,
353,
7688,
29918,
2344,
13,
13,
1678,
6588,
29918,
705,
5861,
353,
7442,
29889,
3298,
359,
29898,
29990,
29889,
12181,
29961,
29896,
2314,
13,
1678,
23404,
353,
23404,
29918,
2344,
13,
1678,
6588,
29918,
1639,
1547,
353,
29871,
29900,
29889,
29900,
13,
1678,
20228,
353,
29871,
29896,
29889,
29900,
13,
13,
1678,
396,
29234,
848,
756,
263,
4343,
20228,
310,
869,
29900,
29896,
13,
1678,
565,
22902,
297,
313,
29903,
5510,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
1125,
13,
4706,
20228,
353,
869,
29900,
29896,
13,
13,
1678,
363,
474,
29892,
6251,
297,
26985,
29898,
29990,
1125,
13,
4706,
282,
353,
7442,
29889,
6333,
29898,
8269,
29892,
18177,
29897,
13,
4706,
282,
4619,
23404,
13,
4706,
16030,
353,
282,
448,
343,
29961,
29875,
29962,
13,
4706,
18177,
334,
29922,
29871,
29896,
29889,
29900,
448,
313,
1187,
334,
15595,
29897,
13,
4706,
18177,
4619,
19691,
1187,
334,
16030,
334,
6251,
29897,
13,
4706,
23404,
4619,
19691,
1187,
334,
16030,
29897,
334,
20228,
13,
13,
4706,
6588,
29918,
705,
5861,
334,
29922,
474,
13,
4706,
6588,
29918,
705,
5861,
4619,
18177,
13,
4706,
6588,
29918,
705,
5861,
847,
29922,
474,
718,
29871,
29896,
29889,
29900,
13,
13,
4706,
6588,
29918,
1639,
1547,
334,
29922,
474,
13,
4706,
6588,
29918,
1639,
1547,
4619,
23404,
13,
4706,
6588,
29918,
1639,
1547,
847,
29922,
474,
718,
29871,
29896,
29889,
29900,
13,
13,
1678,
736,
6588,
29918,
705,
5861,
29892,
6588,
29918,
1639,
1547,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
12313,
29918,
2312,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
3692,
3806,
7865,
2392,
373,
4319,
15595,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
2312,
10457,
29889,
29896,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
12313,
29918,
2238,
18745,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
3692,
3806,
7865,
2392,
373,
4319,
27368,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
2238,
18745,
2433,
1181,
22872,
742,
301,
29896,
29918,
3605,
601,
29922,
29900,
29889,
29947,
29945,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
12313,
29918,
6758,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
3692,
3806,
7865,
2392,
373,
4319,
6410,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
6758,
543,
1181,
22872,
1159,
13,
13,
13,
1753,
903,
1688,
29918,
29893,
2817,
29918,
2962,
29898,
29895,
605,
29892,
1060,
29892,
612,
29892,
301,
29878,
1125,
13,
1678,
396,
4321,
393,
6261,
14294,
10715,
856,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
528,
21897,
29922,
8824,
29892,
13,
18884,
6509,
29918,
10492,
29922,
29212,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
1678,
1067,
29888,
29906,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29900,
29896,
29892,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
528,
21897,
29922,
8824,
29892,
13,
462,
6509,
29918,
10492,
29922,
29212,
29897,
13,
1678,
1067,
29888,
29906,
29889,
9202,
29898,
29990,
29892,
612,
29892,
13,
632,
1302,
1389,
29918,
2344,
29922,
695,
29888,
29889,
1111,
1389,
5396,
8552,
3285,
13,
632,
23404,
29918,
2344,
29922,
695,
29888,
29889,
1639,
1547,
5396,
8552,
3101,
13,
13,
1678,
396,
2023,
322,
12235,
14294,
10715,
526,
7126,
29889,
13,
1678,
1067,
29888,
29941,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
528,
21897,
29922,
8824,
29892,
13,
462,
14294,
29918,
2962,
29922,
5574,
29892,
6509,
29918,
10492,
29922,
29212,
29897,
13,
1678,
1067,
29888,
29941,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
1678,
4974,
1067,
29888,
29941,
29889,
29873,
29918,
1275,
1067,
29888,
29889,
29873,
29918,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29941,
29889,
1111,
1389,
3383,
1067,
29888,
29889,
1111,
1389,
19925,
13,
13,
1678,
1067,
29888,
29941,
29889,
842,
29918,
7529,
29898,
2312,
29922,
29900,
29889,
29900,
29900,
29896,
29897,
13,
1678,
1067,
29888,
29941,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
1678,
4974,
1067,
29888,
29941,
29889,
29873,
29918,
1275,
1067,
29888,
29906,
29889,
29873,
29918,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29941,
29889,
1111,
1389,
3383,
1067,
29888,
29906,
29889,
1111,
1389,
19925,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29212,
742,
13,
462,
308,
6796,
23362,
613,
376,
3670,
3039,
613,
376,
262,
4270,
1052,
292,
613,
376,
1114,
415,
573,
20068,
13,
1753,
1243,
29918,
29893,
2817,
29918,
2962,
29898,
29895,
605,
29892,
301,
29878,
1125,
13,
1678,
903,
1688,
29918,
29893,
2817,
29918,
2962,
29898,
29895,
605,
29892,
1060,
29892,
612,
29892,
301,
29878,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
2080,
29918,
4830,
29898,
29895,
605,
1125,
13,
1678,
396,
10567,
3402,
6987,
29889,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
528,
21897,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
612,
29918,
353,
7442,
29889,
2378,
29898,
29979,
29897,
7503,
29892,
7442,
29889,
1482,
8990,
29962,
13,
13,
1678,
612,
29918,
353,
7442,
29889,
29883,
29918,
29961,
29979,
3383,
612,
29918,
29962,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
19925,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
16513,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
3692,
17432,
1736,
3431,
29889,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
27368,
2433,
29880,
29896,
1495,
13,
1678,
1067,
29888,
353,
17432,
29898,
695,
29888,
29897,
13,
1678,
1067,
29888,
29889,
842,
29918,
7529,
29898,
2238,
18745,
2433,
29880,
29906,
1495,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
1678,
1067,
29888,
29906,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
27368,
2433,
29880,
29906,
1495,
13,
1678,
1067,
29888,
29906,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
695,
29888,
29889,
1111,
1389,
3383,
1067,
29888,
29906,
29889,
1111,
1389,
19925,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
24595,
29918,
5349,
29918,
1217,
29918,
12483,
482,
29918,
5552,
29898,
29895,
605,
1125,
13,
1678,
1067,
29888,
353,
22902,
29898,
12483,
482,
29922,
5574,
29892,
634,
29874,
29900,
21098,
29900,
29896,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
1678,
4974,
756,
5552,
29898,
695,
29888,
29892,
22868,
12483,
482,
29918,
1111,
1389,
1495,
13,
1678,
4974,
756,
5552,
29898,
695,
29888,
29892,
22868,
12483,
482,
29918,
1639,
1547,
1495,
13,
1678,
4974,
756,
5552,
29898,
695,
29888,
29892,
22868,
15770,
29918,
1639,
1547,
1495,
13,
1678,
4974,
756,
5552,
29898,
695,
29888,
29892,
22868,
15770,
29918,
1111,
1389,
1495,
13,
13,
1678,
1067,
29888,
353,
22902,
580,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
1678,
4974,
451,
756,
5552,
29898,
695,
29888,
29892,
22868,
12483,
482,
29918,
1111,
1389,
1495,
13,
1678,
4974,
451,
756,
5552,
29898,
695,
29888,
29892,
22868,
12483,
482,
29918,
1639,
1547,
1495,
13,
1678,
4974,
451,
756,
5552,
29898,
695,
29888,
29892,
22868,
15770,
29918,
1639,
1547,
1495,
13,
1678,
4974,
451,
756,
5552,
29898,
695,
29888,
29892,
22868,
15770,
29918,
1111,
1389,
1495,
13,
13,
13,
29937,
14402,
29901,
3349,
297,
29871,
29896,
29889,
29900,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
29954,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
311,
17990,
630,
29918,
5552,
29898,
29895,
605,
1125,
13,
1678,
707,
353,
22902,
29898,
12483,
482,
29922,
5574,
29892,
634,
29874,
29900,
21098,
29900,
29896,
29897,
13,
1678,
707,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
1678,
10191,
353,
376,
6708,
6571,
471,
18164,
29908,
13,
1678,
363,
1098,
297,
6024,
12483,
482,
29918,
1111,
1389,
29918,
742,
525,
12483,
482,
29918,
1639,
1547,
29918,
742,
13,
18884,
525,
15770,
29918,
1111,
1389,
29918,
742,
525,
15770,
29918,
1639,
1547,
29918,
2033,
29901,
13,
4706,
411,
11451,
1688,
29889,
4495,
1983,
29898,
20154,
22709,
29892,
1993,
29922,
7645,
29889,
4830,
29898,
1131,
22164,
13,
9651,
679,
5552,
29898,
342,
29892,
1098,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
9632,
29918,
787,
300,
29918,
12483,
6751,
29918,
1333,
29918,
276,
3791,
29898,
29895,
605,
1125,
13,
1678,
1067,
29888,
29896,
353,
22902,
29898,
12483,
482,
29922,
29953,
29900,
29900,
29897,
13,
1678,
1067,
29888,
29906,
353,
22902,
580,
13,
1678,
363,
903,
297,
3464,
29898,
29896,
29900,
29900,
1125,
13,
4706,
565,
338,
29918,
1990,
3709,
29898,
695,
29888,
29896,
1125,
13,
9651,
1067,
29888,
29896,
29889,
3846,
29918,
9202,
29898,
29990,
29892,
612,
29892,
4413,
29922,
9302,
29889,
13092,
29898,
29979,
876,
13,
9651,
1067,
29888,
29906,
29889,
3846,
29918,
9202,
29898,
29990,
29892,
612,
29892,
4413,
29922,
9302,
29889,
13092,
29898,
29979,
876,
13,
4706,
1683,
29901,
13,
9651,
1067,
29888,
29896,
29889,
3846,
29918,
9202,
29898,
29990,
29892,
612,
29897,
13,
9651,
1067,
29888,
29906,
29889,
3846,
29918,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29896,
29889,
1111,
1389,
3383,
1067,
29888,
29906,
29889,
1111,
1389,
3383,
13677,
29922,
29896,
29953,
29897,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29896,
29889,
1639,
1547,
3383,
1067,
29888,
29906,
29889,
1639,
1547,
3383,
13677,
29922,
29896,
29953,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
9632,
29918,
787,
300,
29918,
12483,
6751,
29918,
276,
3791,
29898,
29895,
605,
1125,
13,
1678,
634,
29874,
29900,
353,
869,
29900,
29900,
29896,
13,
1678,
15595,
353,
869,
29900,
29900,
29900,
29896,
13,
1678,
612,
29918,
12508,
353,
7442,
29889,
2378,
29898,
29979,
29897,
13,
1678,
612,
29918,
12508,
29961,
29979,
29918,
12508,
1275,
29871,
29896,
29962,
353,
448,
29896,
29889,
29900,
13,
1678,
612,
29918,
12508,
29961,
29979,
29918,
12508,
1275,
29871,
29906,
29962,
353,
29871,
29896,
29889,
29900,
13,
13,
1678,
1067,
29888,
29896,
353,
22902,
29898,
12483,
482,
29922,
29955,
29892,
6509,
29918,
10492,
543,
23362,
613,
13,
462,
6410,
2433,
26613,
1965,
29918,
6758,
742,
634,
29874,
29900,
29922,
1187,
29900,
29892,
13,
462,
15595,
29922,
2312,
29892,
4236,
29918,
1524,
29922,
29906,
29892,
528,
21897,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29906,
353,
22902,
29898,
12483,
482,
29922,
29900,
29892,
6509,
29918,
10492,
543,
23362,
613,
13,
462,
6410,
2433,
26613,
1965,
29918,
6758,
742,
634,
29874,
29900,
29922,
1187,
29900,
29892,
13,
462,
15595,
29922,
2312,
29892,
4236,
29918,
1524,
29922,
29896,
29892,
528,
21897,
29922,
8824,
29897,
13,
13,
1678,
1067,
29888,
29896,
29889,
9202,
29898,
29990,
29892,
612,
29918,
12508,
29897,
13,
1678,
1067,
29888,
29906,
29889,
9202,
29898,
29990,
29892,
612,
29918,
12508,
29897,
13,
13,
1678,
6588,
29918,
705,
5861,
29892,
6588,
29918,
1639,
1547,
353,
320,
13,
4706,
408,
29887,
29881,
29898,
29895,
605,
29892,
1060,
29892,
612,
29918,
12508,
29892,
634,
29874,
29900,
29892,
15595,
29892,
13,
632,
7688,
29918,
2344,
29922,
695,
29888,
29906,
29889,
1111,
1389,
5396,
336,
955,
3285,
13,
632,
23404,
29918,
2344,
29922,
695,
29888,
29906,
29889,
1639,
1547,
19925,
13,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29896,
29889,
1111,
1389,
5396,
336,
955,
3285,
13,
462,
795,
6588,
29918,
705,
5861,
29889,
336,
955,
3285,
13,
462,
795,
13677,
29922,
29896,
29953,
29897,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29896,
29889,
1639,
1547,
3383,
6588,
29918,
1639,
1547,
29892,
13677,
29922,
29896,
29953,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
12313,
29918,
2312,
29918,
1454,
29918,
3670,
3039,
29918,
21891,
29918,
10492,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
3692,
3806,
7865,
2392,
373,
4319,
15595,
29892,
474,
29889,
29872,
29889,
29871,
29900,
13,
1678,
396,
1951,
15595,
338,
1304,
304,
10272,
278,
14413,
6509,
6554,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
2312,
29922,
29900,
29892,
6509,
29918,
10492,
543,
3670,
3039,
1159,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
799,
368,
29918,
7864,
3262,
29898,
29895,
605,
1125,
13,
1678,
1060,
353,
3805,
275,
29889,
1272,
29961,
381,
275,
29889,
5182,
1405,
29871,
29900,
29962,
13,
1678,
612,
353,
3805,
275,
29889,
5182,
29961,
381,
275,
29889,
5182,
1405,
29871,
29900,
29962,
13,
1678,
363,
4688,
29918,
7864,
3262,
297,
518,
5574,
29892,
7700,
5387,
13,
4706,
4236,
29918,
1524,
353,
29871,
29896,
29900,
29900,
29900,
13,
4706,
1067,
29888,
353,
22902,
29898,
799,
368,
29918,
7864,
3262,
29922,
799,
368,
29918,
7864,
3262,
29892,
304,
29880,
29922,
29896,
29872,
29899,
29941,
29892,
13,
462,
1678,
4236,
29918,
1524,
29922,
3317,
29918,
1524,
467,
9202,
29898,
29990,
29892,
612,
29897,
13,
4706,
4974,
1067,
29888,
29889,
29876,
29918,
1524,
29918,
529,
4236,
29918,
1524,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
1114,
415,
573,
29918,
5426,
261,
29918,
27603,
29918,
23362,
29898,
29895,
605,
1125,
13,
1678,
1067,
29888,
29896,
353,
22902,
29898,
21891,
29918,
10492,
543,
1114,
415,
573,
613,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
304,
29880,
29922,
29896,
29872,
29899,
29941,
29892,
13,
462,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29897,
13,
1678,
1067,
29888,
29896,
29889,
9202,
29898,
381,
275,
29889,
1272,
29892,
3805,
275,
29889,
5182,
29897,
13,
1678,
1067,
29888,
29906,
353,
22902,
29898,
21891,
29918,
10492,
543,
23362,
613,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
304,
29880,
29922,
29896,
29872,
29899,
29941,
29892,
13,
462,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29897,
13,
1678,
1067,
29888,
29906,
29889,
9202,
29898,
381,
275,
29889,
1272,
29892,
3805,
275,
29889,
5182,
29897,
13,
1678,
4974,
1067,
29888,
29896,
29889,
29876,
29918,
1524,
29918,
1405,
1067,
29888,
29906,
29889,
29876,
29918,
1524,
29918,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
18157,
29918,
842,
29918,
1333,
29918,
3880,
29918,
1454,
29918,
26495,
29898,
29895,
605,
1125,
13,
1678,
1060,
29892,
612,
353,
3805,
275,
29889,
1272,
29892,
3805,
275,
29889,
5182,
13,
1678,
8845,
29918,
29888,
13857,
353,
29871,
29900,
29889,
29946,
13,
1678,
16717,
353,
29871,
29946,
29906,
13,
1678,
528,
21897,
353,
7700,
13,
1678,
4236,
29918,
1524,
353,
29871,
29896,
29900,
13,
1678,
1067,
29888,
29896,
353,
22902,
29898,
799,
368,
29918,
7864,
3262,
29922,
5574,
29892,
13,
462,
4036,
29918,
3859,
29922,
9302,
29889,
8172,
29889,
17875,
2792,
29898,
26776,
511,
13,
462,
8845,
29918,
29888,
13857,
29922,
18157,
29918,
29888,
13857,
29892,
13,
462,
6509,
29918,
10492,
2433,
23362,
742,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
13,
462,
304,
29880,
29922,
8516,
29892,
4236,
29918,
1524,
29922,
3317,
29918,
1524,
29892,
528,
21897,
29922,
845,
21897,
29897,
13,
1678,
1067,
29888,
29896,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
4974,
1067,
29888,
29896,
29889,
29876,
29918,
1524,
29918,
1275,
4236,
29918,
1524,
13,
13,
1678,
1067,
29888,
29906,
353,
22902,
29898,
799,
368,
29918,
7864,
3262,
29922,
8824,
29892,
13,
462,
4036,
29918,
3859,
29922,
9302,
29889,
8172,
29889,
17875,
2792,
29898,
26776,
511,
13,
462,
6509,
29918,
10492,
2433,
23362,
742,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
13,
462,
304,
29880,
29922,
8516,
29892,
4236,
29918,
1524,
29922,
3317,
29918,
1524,
29892,
528,
21897,
29922,
845,
21897,
29897,
13,
13,
1678,
565,
338,
29918,
1990,
3709,
29898,
695,
29888,
29906,
1125,
13,
4706,
13850,
353,
3767,
271,
2164,
2713,
21897,
18772,
29898,
1688,
29918,
2311,
29922,
18157,
29918,
29888,
13857,
29892,
13,
462,
462,
1678,
4036,
29918,
3859,
29922,
26776,
29897,
13,
1678,
1683,
29901,
13,
4706,
13850,
353,
1383,
21897,
18772,
29898,
1688,
29918,
2311,
29922,
18157,
29918,
29888,
13857,
29892,
13,
462,
3986,
4036,
29918,
3859,
29922,
26776,
29897,
13,
1678,
22645,
29918,
14968,
29892,
22645,
29918,
791,
353,
2446,
29898,
11023,
29889,
5451,
29898,
29990,
29892,
612,
876,
13,
1678,
22645,
29918,
14968,
353,
7442,
29889,
6605,
29898,
13140,
29918,
14968,
29897,
29871,
396,
3349,
528,
3096,
1847,
13,
1678,
1067,
29888,
29906,
29889,
9202,
29898,
29990,
29961,
13140,
29918,
14968,
1402,
612,
29961,
13140,
29918,
14968,
2314,
13,
1678,
4974,
1067,
29888,
29906,
29889,
29876,
29918,
1524,
29918,
1275,
4236,
29918,
1524,
13,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
695,
29888,
29896,
29889,
1111,
1389,
3383,
1067,
29888,
29906,
29889,
1111,
1389,
19925,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
29876,
29918,
1524,
29918,
1217,
29918,
3167,
29898,
29895,
605,
1125,
13,
1678,
1060,
29892,
612,
353,
3805,
275,
29889,
1272,
29892,
3805,
275,
29889,
5182,
13,
1678,
396,
1243,
393,
302,
29918,
1524,
29918,
16415,
21196,
265,
1711,
411,
302,
29918,
1524,
29918,
1217,
29918,
3167,
13,
1678,
363,
4688,
29918,
7864,
3262,
297,
518,
5574,
29892,
7700,
5387,
13,
4706,
302,
29918,
1524,
29918,
1761,
353,
518,
29895,
605,
29898,
799,
368,
29918,
7864,
3262,
29922,
799,
368,
29918,
7864,
3262,
29892,
13,
462,
632,
302,
29918,
1524,
29918,
1217,
29918,
3167,
29922,
29876,
29918,
1524,
29918,
1217,
29918,
3167,
29892,
13,
462,
632,
304,
29880,
29922,
29896,
29872,
29899,
29946,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
13,
462,
632,
13742,
9202,
29898,
29990,
29892,
612,
467,
29876,
29918,
1524,
29918,
13,
462,
539,
363,
302,
29918,
1524,
29918,
1217,
29918,
3167,
297,
518,
29906,
29892,
29871,
29941,
29892,
29871,
29896,
29900,
5262,
13,
4706,
4974,
29918,
2378,
29918,
11745,
29898,
29876,
29918,
1524,
29918,
1761,
29892,
12705,
29898,
29876,
29918,
1524,
29918,
1761,
876,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
29892,
13,
462,
462,
259,
317,
29954,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
1333,
29918,
264,
820,
29918,
11249,
29918,
1454,
29918,
799,
368,
29918,
7864,
3262,
29898,
29895,
605,
1125,
13,
1678,
396,
1243,
385,
1059,
338,
10425,
565,
278,
6694,
470,
8845,
731,
338,
4069,
13,
1678,
1067,
29888,
353,
22902,
29898,
799,
368,
29918,
7864,
3262,
29922,
5574,
29892,
8845,
29918,
29888,
13857,
29922,
29900,
29889,
29929,
29929,
29897,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
29941,
29892,
612,
29941,
29897,
13,
13,
13,
13383,
13383,
13383,
13383,
7346,
4136,
2277,
29937,
13,
29937,
23236,
4321,
11733,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
695,
29888,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
393,
317,
29954,
29928,
4076,
738,
2582,
15626,
13,
13,
1678,
363,
6410,
297,
4852,
2790,
29872,
613,
376,
26613,
1965,
29918,
2790,
29872,
613,
376,
1188,
613,
376,
1545,
2164,
29918,
29882,
11234,
29908,
1125,
13,
4706,
1067,
29888,
353,
22902,
29898,
2238,
18745,
2433,
29880,
29906,
742,
15595,
29922,
29900,
29889,
29900,
29896,
29892,
6216,
29918,
1639,
1547,
29922,
5574,
29892,
13,
462,
1678,
6410,
29922,
6758,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29892,
528,
21897,
29922,
5574,
29897,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
4706,
396,
4974,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29889,
1111,
1389,
29918,
29961,
29900,
1402,
1067,
29888,
29889,
1111,
1389,
29918,
29961,
29896,
1402,
13677,
29922,
29955,
29897,
13,
4706,
4974,
29918,
2378,
29918,
11745,
29898,
695,
29888,
29889,
27711,
29898,
29911,
511,
1565,
29918,
2914,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
12313,
29918,
29880,
29896,
29918,
3605,
601,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
3692,
3806,
7865,
2392,
373,
4319,
301,
29896,
29918,
3605,
601,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
29880,
29896,
29918,
3605,
601,
29922,
29896,
29889,
29896,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
12313,
29918,
21891,
29918,
10492,
29918,
816,
11272,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
3692,
3806,
7865,
2392,
373,
4319,
6509,
29918,
10492,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
21891,
29918,
10492,
543,
29966,
26690,
29958,
1159,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
12313,
29918,
1187,
29900,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
3692,
3806,
7865,
2392,
373,
4319,
634,
29874,
29900,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
1187,
29900,
29922,
29900,
29892,
6509,
29918,
10492,
543,
23362,
1159,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
3317,
29918,
1524,
29918,
3207,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
3443,
2854,
537,
1423,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
3317,
29918,
1524,
10457,
29896,
29900,
29900,
29900,
29900,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
845,
21897,
29918,
3207,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
3443,
2854,
537,
1423,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
845,
21897,
543,
4541,
1159,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
799,
368,
29918,
7864,
3262,
29918,
3207,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
3443,
2854,
537,
1423,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
799,
368,
29918,
7864,
3262,
543,
4541,
1159,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
18157,
29918,
29888,
13857,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
3443,
2854,
537,
1423,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
18157,
29918,
29888,
13857,
10457,
29889,
29896,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
29876,
29918,
1524,
29918,
1217,
29918,
3167,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
3443,
2854,
537,
1423,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
29876,
29918,
1524,
29918,
1217,
29918,
3167,
29922,
29900,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
23516,
29918,
1111,
1389,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
29879,
1302,
1389,
29918,
2344,
451,
6068,
408,
1904,
2980,
313,
6194,
6216,
29897,
13,
1678,
396,
9133,
2618,
1302,
1389,
29918,
947,
451,
1993,
8783,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1542,
2392,
1125,
13,
4706,
22902,
29898,
1111,
1389,
29918,
2344,
29922,
9302,
29889,
3298,
359,
3552,
29941,
29892,
4961,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
16123,
680,
29918,
1111,
1389,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
29879,
1302,
1389,
29918,
2344,
8267,
363,
278,
14294,
8665,
13,
1678,
396,
9133,
2618,
1302,
1389,
29918,
947,
451,
1993,
8783,
29889,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
2141,
9202,
29898,
29990,
29892,
612,
29892,
1302,
1389,
29918,
2344,
29922,
9302,
29889,
3298,
359,
3552,
29941,
29892,
4961,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
842,
29918,
1639,
1547,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
29879,
23404,
29918,
8267,
363,
278,
14294,
8665,
13,
1678,
396,
9133,
2618,
23404,
29918,
947,
451,
1993,
8783,
29889,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
2141,
9202,
29898,
29990,
29892,
612,
29892,
23404,
29918,
2344,
29922,
9302,
29889,
3298,
359,
3552,
29941,
29892,
4961,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
799,
368,
29918,
7864,
3262,
29918,
2541,
29918,
3846,
29918,
9202,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
3443,
2854,
537,
1423,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
22902,
29898,
799,
368,
29918,
7864,
3262,
29922,
5574,
467,
3846,
29918,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
842,
29918,
1639,
1547,
29918,
19541,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
29879,
23404,
29918,
8267,
363,
278,
14294,
8665,
297,
7581,
1206,
13,
1678,
22902,
2141,
9202,
29898,
29990,
29945,
29892,
612,
29945,
29892,
23404,
29918,
2344,
29922,
29900,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
12483,
482,
29918,
19541,
29918,
12097,
287,
29918,
15728,
368,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
29879,
278,
317,
29954,
29928,
2385,
3709,
5149,
2912,
267,
278,
6588,
18177,
13,
1678,
634,
29874,
353,
869,
29896,
13,
1678,
15595,
353,
29871,
29906,
29889,
13,
1678,
302,
29918,
27736,
353,
29871,
29906,
29900,
13,
1678,
302,
29918,
22100,
353,
29871,
29896,
29900,
13,
1678,
364,
865,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29900,
29897,
13,
1678,
1060,
353,
364,
865,
29889,
8945,
29898,
2311,
7607,
29876,
29918,
27736,
29892,
302,
29918,
22100,
876,
13,
1678,
281,
353,
364,
865,
29889,
8945,
29898,
2311,
29922,
29876,
29918,
22100,
29897,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
2433,
26613,
1965,
29918,
6758,
742,
13,
18884,
6509,
29918,
10492,
2433,
23362,
742,
13,
18884,
634,
29874,
29900,
29922,
1187,
29892,
15595,
29922,
2312,
29892,
13,
18884,
6216,
29918,
1639,
1547,
29922,
5574,
29892,
13,
18884,
4236,
29918,
1524,
29922,
29896,
29892,
6588,
29922,
5574,
29892,
528,
21897,
29922,
8824,
29897,
13,
13,
1678,
396,
2560,
5608,
740,
1728,
11462,
13,
1678,
343,
353,
7442,
29889,
6333,
29898,
29990,
29892,
281,
29897,
13,
1678,
343,
353,
7442,
29889,
4530,
29898,
29891,
29897,
13,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
13,
1678,
6588,
29918,
705,
5861,
29892,
6588,
29918,
1639,
1547,
353,
408,
29887,
29881,
29898,
29895,
605,
29892,
1060,
29892,
343,
29892,
634,
29874,
29892,
15595,
29897,
13,
1678,
6588,
29918,
705,
5861,
353,
6588,
29918,
705,
5861,
29889,
690,
14443,
29898,
29896,
29892,
448,
29896,
29897,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29889,
1111,
1389,
3383,
13,
462,
795,
6588,
29918,
705,
5861,
29892,
13,
462,
795,
13677,
29922,
29896,
29946,
29897,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29889,
1639,
1547,
3383,
6588,
29918,
1639,
1547,
29892,
13677,
29922,
29896,
29946,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
842,
29918,
1639,
1547,
29918,
517,
29918,
1639,
1547,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
29879,
23404,
29918,
8267,
5718,
3819,
363,
278,
14294,
8665,
13,
1678,
396,
512,
3200,
9696,
23404,
29918,
8267,
29889,
13,
1678,
1067,
29888,
353,
22902,
2141,
9202,
29898,
29990,
29945,
29892,
612,
29945,
29897,
13,
1678,
22902,
2141,
9202,
29898,
29990,
29945,
29892,
612,
29945,
29892,
23404,
29918,
2344,
29922,
695,
29888,
29889,
1639,
1547,
19925,
13,
1678,
1067,
29888,
353,
22902,
2141,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
22902,
2141,
9202,
29898,
29990,
29892,
612,
29892,
23404,
29918,
2344,
29922,
695,
29888,
29889,
1639,
1547,
19925,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
271,
29918,
280,
579,
29918,
10184,
29918,
21134,
29898,
29895,
605,
1125,
13,
1678,
396,
17157,
1818,
505,
472,
3203,
1023,
11073,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29897,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
29906,
29892,
7442,
29889,
2873,
29898,
29929,
876,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
3846,
29918,
9202,
29918,
7915,
29918,
1990,
29918,
5521,
8362,
29898,
29895,
605,
1125,
13,
1678,
396,
7687,
29918,
9202,
411,
770,
29918,
7915,
2433,
5521,
8362,
29915,
451,
6969,
15945,
29908,
13,
1678,
6528,
353,
313,
29878,
29908,
1990,
29918,
7915,
525,
5521,
8362,
29915,
338,
451,
6969,
363,
376,
13,
632,
364,
29908,
3846,
29918,
9202,
23301,
512,
1797,
304,
671,
525,
5521,
8362,
29915,
18177,
29892,
376,
13,
632,
364,
29908,
1509,
10272,
29918,
1990,
29918,
7915,
29905,
877,
5521,
8362,
742,
4413,
29922,
13203,
29892,
343,
29922,
29891,
29800,
376,
13,
632,
364,
29908,
797,
2058,
310,
343,
366,
508,
502,
263,
2919,
3307,
4559,
376,
13,
632,
364,
29908,
974,
278,
2989,
6694,
731,
3646,
304,
6284,
376,
13,
632,
364,
29908,
342,
6490,
278,
770,
10868,
18822,
23301,
376,
13,
632,
364,
29908,
7129,
278,
9819,
18177,
408,
278,
770,
29918,
7915,
376,
13,
632,
364,
29908,
15501,
29905,
23157,
13,
1678,
4974,
29918,
336,
4637,
29918,
13087,
29886,
29898,
1917,
2392,
29892,
13,
462,
308,
6528,
29892,
13,
462,
308,
22902,
29898,
1990,
29918,
7915,
2433,
5521,
8362,
2824,
3846,
29918,
9202,
29892,
13,
462,
308,
1060,
29892,
612,
29892,
4413,
29922,
9302,
29889,
13092,
29898,
29979,
876,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
4713,
293,
605,
29898,
29895,
605,
1125,
13,
1678,
396,
14974,
29899,
1990,
1243,
1206,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
467,
9202,
29898,
29990,
29906,
29892,
612,
29906,
29897,
13,
1678,
4974,
1067,
29888,
29889,
1111,
1389,
5396,
12181,
1275,
313,
29941,
29892,
29871,
29906,
29897,
13,
1678,
4974,
1067,
29888,
29889,
1639,
1547,
5396,
12181,
1275,
313,
29941,
29892,
29897,
13,
1678,
4974,
1067,
29888,
29889,
7099,
2459,
29918,
2220,
4197,
29961,
29900,
29892,
29871,
29900,
5262,
467,
12181,
1275,
313,
29896,
29892,
29871,
29941,
29897,
13,
1678,
4450,
353,
1067,
29888,
29889,
27711,
29898,
29911,
29906,
29897,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
11965,
29892,
1565,
29918,
2914,
29906,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
4713,
293,
605,
29918,
12483,
482,
29898,
29895,
605,
1125,
13,
1678,
634,
29874,
353,
869,
29900,
29900,
29896,
13,
1678,
15595,
353,
869,
29900,
29896,
13,
1678,
396,
14974,
29899,
1990,
6588,
1243,
1206,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
2433,
26613,
1965,
29918,
6758,
742,
13,
18884,
6509,
29918,
10492,
2433,
23362,
742,
13,
18884,
634,
29874,
29900,
29922,
1187,
29892,
15595,
29922,
2312,
29892,
13,
18884,
6216,
29918,
1639,
1547,
29922,
5574,
29892,
13,
18884,
4236,
29918,
1524,
29922,
29896,
29892,
6588,
29922,
5574,
29892,
528,
21897,
29922,
8824,
29897,
13,
13,
1678,
7442,
29918,
29979,
29906,
353,
7442,
29889,
2378,
29898,
29979,
29906,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29906,
29892,
7442,
29918,
29979,
29906,
29897,
13,
1678,
4413,
353,
7442,
29889,
13092,
29898,
9302,
29918,
29979,
29906,
29897,
13,
13,
1678,
363,
474,
29892,
1067,
297,
26985,
29898,
13203,
1125,
13,
4706,
343,
29918,
29875,
353,
7442,
29889,
2873,
29898,
9302,
29918,
29979,
29906,
29889,
12181,
29961,
29900,
2314,
13,
4706,
343,
29918,
29875,
29961,
9302,
29918,
29979,
29906,
2804,
1067,
29962,
353,
448,
29896,
13,
4706,
6588,
29918,
1111,
1389,
29892,
6588,
29918,
1639,
1547,
353,
408,
29887,
29881,
29898,
29895,
605,
29892,
1060,
29906,
29892,
343,
29918,
29875,
29892,
634,
29874,
29892,
15595,
29897,
13,
4706,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
12483,
482,
29918,
1111,
1389,
29892,
1067,
29888,
29889,
1111,
1389,
29918,
29961,
29875,
1402,
13677,
29922,
29896,
29953,
29897,
13,
4706,
4974,
29918,
284,
3242,
29918,
11745,
29898,
12483,
482,
29918,
1639,
1547,
29892,
13,
462,
9651,
1067,
29888,
29889,
1639,
1547,
29918,
29961,
29875,
1402,
13,
462,
9651,
13677,
29922,
29896,
29953,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
4713,
293,
605,
29918,
2541,
29918,
2344,
29918,
1111,
1389,
29898,
29895,
605,
1125,
13,
1678,
396,
14974,
29899,
1990,
1243,
1206,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29906,
29892,
612,
29906,
29892,
1302,
1389,
29918,
2344,
29922,
9302,
29889,
3298,
359,
3552,
29941,
29892,
29871,
29906,
8243,
13,
9651,
23404,
29918,
2344,
29922,
9302,
29889,
3298,
359,
29898,
29941,
876,
13,
1678,
4974,
1067,
29888,
29889,
1111,
1389,
5396,
12181,
1275,
313,
29941,
29892,
29871,
29906,
29897,
13,
1678,
4974,
1067,
29888,
29889,
1639,
1547,
5396,
12181,
29892,
313,
29941,
29892,
29897,
13,
1678,
4450,
353,
1067,
29888,
29889,
27711,
29898,
29911,
29906,
29897,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
11965,
29892,
1565,
29918,
2914,
29906,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
4713,
293,
605,
29918,
29876,
9057,
29879,
29898,
29895,
605,
1125,
13,
1678,
396,
14974,
29899,
1990,
1243,
1206,
411,
2473,
29899,
3221,
2304,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29892,
302,
29918,
9057,
29879,
29922,
29906,
467,
9202,
29898,
29990,
29906,
29892,
612,
29906,
29897,
13,
1678,
4974,
1067,
29888,
29889,
1111,
1389,
5396,
12181,
1275,
313,
29941,
29892,
29871,
29906,
29897,
13,
1678,
4974,
1067,
29888,
29889,
1639,
1547,
5396,
12181,
1275,
313,
29941,
29892,
29897,
13,
1678,
4974,
1067,
29888,
29889,
7099,
2459,
29918,
2220,
4197,
29961,
29900,
29892,
29871,
29900,
5262,
467,
12181,
1275,
313,
29896,
29892,
29871,
29941,
29897,
13,
1678,
4450,
353,
1067,
29888,
29889,
27711,
29898,
29911,
29906,
29897,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
11965,
29892,
1565,
29918,
2914,
29906,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
842,
29918,
1111,
1389,
29918,
4713,
293,
605,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
29879,
1302,
1389,
29918,
2344,
322,
23404,
29918,
2344,
8267,
363,
2473,
29899,
1990,
13,
1678,
396,
4828,
13,
1678,
396,
9133,
2618,
1302,
1389,
29918,
947,
451,
1993,
8783,
13,
1678,
1067,
29888,
353,
22902,
580,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
29906,
29892,
612,
29906,
29892,
1302,
1389,
29918,
2344,
29922,
9302,
29889,
3298,
359,
3552,
29906,
29892,
29871,
29906,
4961,
13,
13,
1678,
396,
9133,
2618,
1302,
1389,
29918,
947,
1993,
8783,
13,
1678,
1067,
29888,
353,
22902,
2141,
9202,
29898,
29990,
29906,
29892,
612,
29906,
29892,
1302,
1389,
29918,
2344,
29922,
9302,
29889,
3298,
359,
3552,
29941,
29892,
29871,
29906,
4961,
13,
13,
1678,
396,
9133,
2618,
23404,
29918,
947,
451,
1993,
8783,
13,
1678,
1067,
29888,
353,
22902,
580,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
29906,
29892,
612,
29906,
29892,
23404,
29918,
2344,
29922,
9302,
29889,
3298,
359,
3552,
29896,
29892,
4961,
13,
13,
1678,
396,
9133,
2618,
23404,
29918,
947,
1993,
8783,
29889,
13,
1678,
1067,
29888,
353,
22902,
2141,
9202,
29898,
29990,
29906,
29892,
612,
29906,
29892,
23404,
29918,
2344,
29922,
9302,
29889,
3298,
359,
3552,
29941,
29892,
4961,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
27711,
29918,
771,
2291,
29918,
5696,
29918,
5943,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
29879,
393,
317,
29954,
29928,
2385,
3709,
8500,
29918,
771,
2291,
322,
8500,
29918,
1188,
29918,
771,
2291,
3519,
13,
1678,
396,
508,
2845,
367,
20592,
470,
12020,
385,
8210,
1059,
2643,
13,
1678,
396,
6467,
29889,
2823,
13,
1678,
396,
2045,
597,
3292,
29889,
510,
29914,
26167,
7354,
29899,
19668,
29914,
26167,
7354,
29899,
19668,
29914,
12175,
29914,
29896,
29900,
29929,
29941,
29947,
363,
901,
13,
1678,
396,
4902,
29889,
13,
1678,
363,
6410,
297,
5608,
29918,
4299,
29889,
26016,
29928,
2385,
3709,
29889,
6758,
29918,
12171,
29901,
13,
4706,
1067,
29888,
353,
317,
29954,
29928,
2385,
3709,
29898,
6758,
29922,
6758,
29897,
13,
4706,
565,
6410,
297,
6702,
1188,
742,
525,
1545,
2164,
29918,
29882,
11234,
29374,
13,
9651,
4974,
756,
5552,
29898,
695,
29888,
29892,
525,
27711,
29918,
771,
2291,
1495,
13,
9651,
4974,
756,
5552,
29898,
695,
29888,
29892,
525,
27711,
29918,
1188,
29918,
771,
2291,
1495,
13,
4706,
1683,
29901,
13,
9651,
2643,
353,
4852,
22795,
3097,
21875,
526,
451,
376,
13,
462,
539,
376,
16515,
363,
6410,
3790,
29991,
29878,
29913,
1642,
4830,
29898,
6758,
876,
13,
9651,
4974,
451,
756,
5552,
29898,
695,
29888,
29892,
525,
27711,
29918,
771,
2291,
1495,
13,
9651,
4974,
451,
756,
5552,
29898,
695,
29888,
29892,
525,
27711,
29918,
1188,
29918,
771,
2291,
1495,
13,
9651,
411,
11451,
1688,
29889,
336,
4637,
29898,
6708,
2392,
29892,
13,
462,
1669,
1993,
29922,
4906,
1125,
13,
18884,
1067,
29888,
29889,
27711,
29918,
771,
2291,
13,
9651,
411,
11451,
1688,
29889,
336,
4637,
29898,
6708,
2392,
29892,
13,
462,
1669,
1993,
29922,
4906,
1125,
13,
18884,
1067,
29888,
29889,
27711,
29918,
1188,
29918,
771,
2291,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
771,
2291,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
317,
29954,
29928,
29889,
27711,
29918,
771,
2291,
13,
13,
1678,
396,
379,
19144,
6410,
947,
451,
2758,
363,
15047,
2070,
12678,
29889,
13,
1678,
396,
1334,
2609,
671,
278,
12529,
1244,
29892,
1363,
372,
17645,
8500,
29918,
771,
2291,
13,
1678,
396,
8763,
29889,
13,
1678,
1067,
29888,
353,
317,
29954,
29928,
2385,
3709,
29898,
6758,
543,
2790,
29872,
613,
15595,
29922,
29900,
29889,
29900,
29896,
29892,
13,
462,
4706,
4236,
29918,
1524,
29922,
29896,
29900,
29892,
304,
29880,
29922,
8516,
467,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
4974,
451,
756,
5552,
29898,
695,
29888,
29892,
376,
27711,
29918,
771,
2291,
1159,
13,
1678,
4974,
451,
756,
5552,
29898,
695,
29888,
29892,
376,
27711,
29918,
1188,
29918,
771,
2291,
1159,
13,
13,
1678,
396,
1480,
322,
9120,
29918,
29882,
11234,
28495,
508,
1962,
6976,
21875,
13,
1678,
396,
7581,
1206,
13,
1678,
363,
6410,
297,
6796,
1188,
613,
376,
1545,
2164,
29918,
29882,
11234,
3108,
29901,
13,
4706,
1067,
29888,
353,
22902,
29898,
6758,
29922,
6758,
29892,
15595,
29922,
29900,
29889,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29897,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
4706,
282,
353,
1067,
29888,
29889,
27711,
29918,
771,
2291,
4197,
29961,
29941,
29892,
29871,
29906,
24960,
13,
4706,
4974,
282,
29961,
29900,
29892,
29871,
29896,
29962,
1405,
29871,
29900,
29889,
29945,
13,
4706,
282,
353,
1067,
29888,
29889,
27711,
29918,
771,
2291,
4197,
14352,
29896,
29892,
448,
29896,
24960,
13,
4706,
4974,
282,
29961,
29900,
29892,
29871,
29896,
29962,
529,
29871,
29900,
29889,
29945,
13,
13,
4706,
282,
353,
1067,
29888,
29889,
27711,
29918,
1188,
29918,
771,
2291,
4197,
29961,
29941,
29892,
29871,
29906,
24960,
13,
4706,
4974,
282,
29961,
29900,
29892,
29871,
29896,
29962,
1405,
282,
29961,
29900,
29892,
29871,
29900,
29962,
13,
4706,
282,
353,
1067,
29888,
29889,
27711,
29918,
1188,
29918,
771,
2291,
4197,
14352,
29896,
29892,
448,
29896,
24960,
13,
4706,
4974,
282,
29961,
29900,
29892,
29871,
29896,
29962,
529,
282,
29961,
29900,
29892,
29871,
29900,
29962,
13,
13,
1678,
396,
1480,
6410,
1773,
293,
605,
6976,
21875,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
543,
1188,
613,
15595,
29922,
29900,
29889,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
467,
9202,
29898,
29990,
29906,
29892,
612,
29906,
29897,
13,
13,
1678,
270,
353,
1067,
29888,
29889,
7099,
2459,
29918,
2220,
4197,
29961,
29889,
29896,
29892,
448,
29889,
29896,
1402,
518,
29889,
29941,
29892,
869,
29906,
24960,
13,
1678,
282,
353,
1067,
29888,
29889,
27711,
29918,
771,
2291,
4197,
29961,
29889,
29896,
29892,
448,
29889,
29896,
1402,
518,
29889,
29941,
29892,
869,
29906,
24960,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
9302,
29889,
1191,
3317,
29898,
29886,
29892,
9685,
29922,
29896,
511,
7442,
29889,
1191,
3317,
29898,
29881,
29892,
9685,
29922,
29896,
876,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
29886,
29961,
29900,
1822,
2083,
3285,
29871,
29896,
29897,
13,
1678,
4974,
7442,
29889,
497,
29898,
29886,
29961,
29900,
29962,
6736,
29871,
29900,
29897,
13,
13,
1678,
282,
353,
1067,
29888,
29889,
27711,
29918,
771,
2291,
4197,
14352,
29896,
29892,
448,
29896,
24960,
13,
1678,
270,
353,
1067,
29888,
29889,
7099,
2459,
29918,
2220,
4197,
14352,
29896,
29892,
448,
29896,
24960,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
9302,
29889,
5085,
441,
29898,
29886,
29961,
29900,
11724,
7442,
29889,
5085,
441,
29898,
29881,
29961,
29900,
12622,
13,
13,
1678,
301,
29886,
353,
1067,
29888,
29889,
27711,
29918,
1188,
29918,
771,
2291,
4197,
29961,
29941,
29892,
29871,
29906,
24960,
13,
1678,
282,
353,
1067,
29888,
29889,
27711,
29918,
771,
2291,
4197,
29961,
29941,
29892,
29871,
29906,
24960,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
9302,
29889,
1188,
29898,
29886,
511,
301,
29886,
29897,
13,
13,
1678,
301,
29886,
353,
1067,
29888,
29889,
27711,
29918,
1188,
29918,
771,
2291,
4197,
14352,
29896,
29892,
448,
29896,
24960,
13,
1678,
282,
353,
1067,
29888,
29889,
27711,
29918,
771,
2291,
4197,
14352,
29896,
29892,
448,
29896,
24960,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
9302,
29889,
1188,
29898,
29886,
511,
301,
29886,
29897,
13,
13,
1678,
396,
3382,
2164,
379,
11234,
1773,
293,
605,
6976,
21875,
29936,
6858,
263,
5004,
13,
1678,
396,
1243,
1363,
278,
2898,
5225,
29914,
650,
2070,
11614,
1122,
8174,
278,
13,
1678,
396,
20520,
2198,
297,
10608,
29918,
2220,
1962,
29889,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
543,
1545,
2164,
29918,
29882,
11234,
613,
15595,
29922,
29900,
29889,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29906,
29892,
612,
29906,
29897,
13,
1678,
270,
353,
1067,
29888,
29889,
7099,
2459,
29918,
2220,
4197,
29961,
29941,
29892,
29871,
29906,
24960,
13,
1678,
282,
353,
1067,
29888,
29889,
27711,
29918,
771,
2291,
4197,
29961,
29941,
29892,
29871,
29906,
24960,
13,
1678,
565,
22902,
2804,
317,
5510,
26016,
29928,
2385,
3709,
29901,
13,
4706,
4974,
7442,
29889,
1191,
3317,
29898,
29881,
29892,
9685,
29922,
29896,
29897,
1275,
7442,
29889,
1191,
3317,
29898,
29886,
29892,
9685,
29922,
29896,
29897,
13,
1678,
1683,
29901,
259,
396,
22615,
278,
29234,
1243,
4947,
263,
1422,
1060,
29906,
313,
7897,
13,
4706,
4974,
7442,
29889,
1191,
1195,
29898,
29881,
29892,
9685,
29922,
29896,
29897,
1275,
7442,
29889,
1191,
1195,
29898,
29886,
29892,
9685,
29922,
29896,
29897,
13,
13,
1678,
396,
278,
1494,
4559,
13880,
10608,
29918,
2220,
1819,
529,
448,
29896,
29892,
13,
1678,
396,
607,
723,
4556,
1055,
573,
4226,
2133,
304,
4418,
313,
4149,
3440,
13,
1678,
396,
297,
317,
29954,
29928,
2385,
3709,
29889,
27711,
29918,
771,
2291,
29897,
13,
1678,
921,
353,
1060,
29889,
12676,
29898,
8990,
29922,
29900,
29897,
13,
1678,
270,
353,
1067,
29888,
29889,
7099,
2459,
29918,
2220,
4197,
29916,
2314,
13,
1678,
565,
7442,
29889,
497,
29898,
29881,
529,
448,
29896,
1125,
29871,
396,
22615,
451,
1565,
297,
29234,
1243,
1206,
313,
14606,
7897,
13,
4706,
282,
353,
1067,
29888,
29889,
27711,
29918,
771,
2291,
4197,
29916,
2314,
13,
4706,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
29886,
29961,
29900,
1402,
518,
29896,
847,
29871,
29941,
5586,
334,
29871,
29941,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
29880,
29896,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
365,
29896,
4943,
2133,
13,
1678,
302,
353,
7431,
29898,
29990,
29946,
29897,
13,
1678,
364,
865,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29896,
29941,
29897,
13,
1678,
22645,
353,
7442,
29889,
279,
927,
29898,
29876,
29897,
13,
1678,
364,
865,
29889,
845,
21897,
29898,
13140,
29897,
13,
13,
1678,
1060,
353,
1060,
29946,
29961,
13140,
29892,
584,
29962,
13,
1678,
612,
353,
612,
29946,
29961,
13140,
29962,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
2238,
18745,
2433,
29880,
29896,
742,
15595,
21098,
29906,
29892,
6216,
29918,
1639,
1547,
29922,
8824,
29892,
13,
18884,
4236,
29918,
1524,
29922,
29906,
29900,
29900,
29900,
29892,
304,
29880,
29922,
8516,
29892,
528,
21897,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
695,
29888,
29889,
1111,
1389,
29918,
29961,
29900,
29892,
29871,
29896,
13018,
29896,
1402,
7442,
29889,
3298,
359,
3552,
29946,
29892,
4961,
13,
1678,
4450,
353,
1067,
29888,
29889,
27711,
29898,
29990,
29897,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
11965,
29892,
612,
29897,
13,
13,
1678,
396,
1243,
805,
1503,
1598,
411,
20619,
10970,
13,
1678,
1067,
29888,
29889,
29879,
862,
29879,
1598,
580,
13,
1678,
4974,
805,
29889,
790,
5510,
29898,
695,
29888,
29889,
1111,
1389,
19925,
13,
1678,
4450,
353,
1067,
29888,
29889,
27711,
29898,
29990,
29897,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
11965,
29892,
612,
29897,
13,
13,
1678,
396,
5839,
280,
322,
443,
23945,
280,
411,
29234,
1302,
1389,
29918,
13,
1678,
1067,
29888,
353,
5839,
280,
29889,
18132,
29898,
23945,
280,
29889,
29881,
17204,
29898,
695,
29888,
876,
13,
1678,
4974,
805,
29889,
790,
5510,
29898,
695,
29888,
29889,
1111,
1389,
19925,
13,
1678,
4450,
353,
1067,
29888,
29889,
27711,
29898,
29990,
29897,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
11965,
29892,
612,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
1990,
29918,
705,
5861,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
770,
18177,
29889,
13,
1678,
1060,
353,
7442,
29889,
2378,
4197,
14352,
29896,
29889,
29900,
29892,
448,
29896,
29889,
29900,
1402,
21069,
29896,
29889,
29900,
29892,
29871,
29900,
1402,
21069,
29889,
29947,
29892,
448,
29896,
29889,
29900,
1402,
13,
462,
29871,
518,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
1402,
518,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
24960,
13,
1678,
343,
353,
518,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
448,
29896,
29892,
448,
29896,
29962,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
6216,
29918,
1639,
1547,
29922,
8824,
29892,
13,
18884,
770,
29918,
7915,
29922,
8516,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
695,
29888,
29889,
27711,
4197,
29961,
29900,
29889,
29906,
29892,
448,
29896,
29889,
29900,
5262,
511,
7442,
29889,
2378,
4197,
29896,
12622,
13,
13,
1678,
396,
591,
2367,
263,
2319,
18177,
304,
770,
29871,
29896,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
6216,
29918,
1639,
1547,
29922,
8824,
29892,
13,
18884,
770,
29918,
7915,
3790,
29896,
29901,
29871,
29900,
29889,
29900,
29900,
29896,
1800,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
13,
1678,
396,
1286,
278,
11266,
22116,
881,
16734,
12006,
29899,
3538,
322,
13,
1678,
396,
278,
18988,
373,
445,
1298,
881,
9500,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
695,
29888,
29889,
27711,
4197,
29961,
29900,
29889,
29906,
29892,
448,
29896,
29889,
29900,
5262,
511,
7442,
29889,
2378,
4197,
29899,
29896,
12622,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
11745,
29918,
1990,
29918,
7915,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
565,
5186,
770,
18177,
2134,
29916,
29889,
15743,
694,
770,
18177,
29889,
13,
1678,
1060,
353,
5519,
29896,
29892,
29871,
29900,
1402,
518,
29896,
29892,
29871,
29900,
1402,
518,
29900,
29892,
29871,
29896,
1402,
518,
29900,
29892,
29871,
29896,
5262,
13,
1678,
343,
353,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
29892,
29871,
29896,
29962,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
770,
29918,
7915,
29922,
8516,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
13,
1678,
1060,
353,
5519,
29896,
29892,
29871,
29900,
1402,
518,
29900,
29892,
29871,
29896,
5262,
13,
1678,
343,
353,
518,
29900,
29892,
29871,
29896,
29962,
13,
1678,
1067,
29888,
29918,
7915,
287,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
13,
462,
308,
770,
29918,
7915,
3790,
29900,
29901,
29871,
29900,
29889,
29945,
29892,
29871,
29896,
29901,
29871,
29900,
29889,
29945,
1800,
13,
1678,
1067,
29888,
29918,
7915,
287,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
13,
1678,
396,
881,
367,
2788,
701,
304,
777,
321,
3232,
2861,
304,
6509,
6554,
20410,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29889,
1111,
1389,
3383,
1067,
29888,
29918,
7915,
287,
29889,
1111,
1389,
3383,
13677,
29922,
29906,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
15866,
549,
29918,
1990,
29918,
7915,
29918,
1643,
29898,
29895,
605,
1125,
13,
1678,
396,
7865,
2392,
2861,
304,
451,
5923,
770,
3858,
29889,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
770,
29918,
7915,
3790,
29900,
29901,
29871,
29900,
29889,
29945,
1800,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
15866,
549,
29918,
1990,
29918,
7915,
29918,
4830,
29898,
29895,
605,
1125,
13,
1678,
396,
7865,
2392,
2861,
304,
2743,
770,
29918,
7915,
2980,
1134,
29889,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
770,
29918,
7915,
11759,
29900,
29889,
29945,
2314,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
705,
5861,
29918,
18056,
2957,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
29879,
393,
770,
29918,
7915,
322,
4559,
29918,
7915,
526,
6674,
506,
1230,
13,
1678,
770,
29918,
705,
5861,
353,
426,
29896,
29901,
869,
29953,
29892,
29871,
29906,
29901,
869,
29941,
29913,
13,
1678,
364,
865,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29900,
29897,
13,
1678,
4559,
29918,
705,
5861,
353,
364,
865,
29889,
8172,
29918,
11249,
29898,
29979,
29946,
29889,
12181,
29961,
29900,
2314,
13,
1678,
6674,
2957,
29918,
29873,
12966,
353,
7442,
29889,
8552,
29898,
11249,
29918,
705,
5861,
29897,
13,
1678,
6674,
2957,
29918,
29873,
12966,
29961,
29979,
29946,
1275,
29871,
29896,
29962,
334,
29922,
770,
29918,
705,
5861,
29961,
29896,
29962,
13,
1678,
6674,
2957,
29918,
29873,
12966,
29961,
29979,
29946,
1275,
29871,
29906,
29962,
334,
29922,
770,
29918,
705,
5861,
29961,
29906,
29962,
13,
13,
1678,
1067,
29888,
29896,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29892,
770,
29918,
7915,
29922,
1990,
29918,
705,
5861,
29897,
13,
1678,
1067,
29888,
29906,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29897,
13,
13,
1678,
1067,
29888,
29896,
29889,
9202,
29898,
29990,
29946,
29892,
612,
29946,
29892,
4559,
29918,
7915,
29922,
11249,
29918,
705,
5861,
29897,
13,
1678,
1067,
29888,
29906,
29889,
9202,
29898,
29990,
29946,
29892,
612,
29946,
29892,
4559,
29918,
7915,
29922,
18056,
2957,
29918,
29873,
12966,
29897,
13,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29896,
29889,
1111,
1389,
3383,
1067,
29888,
29906,
29889,
1111,
1389,
19925,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
5521,
8362,
29918,
7915,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
770,
18177,
363,
527,
5521,
8362,
848,
15945,
29908,
13,
1678,
396,
10272,
3407,
21556,
373,
3805,
275,
8783,
393,
338,
3755,
6411,
8362,
491,
13,
1678,
396,
2322,
13,
1678,
1060,
29892,
343,
353,
3805,
275,
29889,
1272,
29892,
3805,
275,
29889,
5182,
13,
1678,
1060,
353,
6287,
29898,
29990,
29897,
13,
1678,
22645,
353,
7442,
29889,
279,
927,
29898,
29990,
29889,
12181,
29961,
29900,
2314,
13,
1678,
364,
865,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29953,
29897,
13,
1678,
364,
865,
29889,
845,
21897,
29898,
13140,
29897,
13,
1678,
1060,
353,
1060,
29961,
13140,
29962,
13,
1678,
343,
353,
343,
29961,
13140,
29962,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29900,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
13,
18884,
770,
29918,
7915,
29922,
8516,
29892,
528,
21897,
29922,
8824,
467,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
285,
29896,
353,
21556,
29889,
29888,
29896,
29918,
13628,
29898,
29891,
29892,
1067,
29888,
29889,
27711,
29898,
29990,
511,
6588,
2433,
7915,
287,
1495,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
29888,
29896,
29892,
29871,
29900,
29889,
29929,
29953,
29892,
13677,
29922,
29896,
29897,
13,
13,
1678,
396,
1207,
278,
1021,
18988,
773,
6411,
8362,
770,
29918,
7915,
13,
1678,
1067,
29888,
29918,
5521,
8362,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29900,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
13,
462,
308,
770,
29918,
7915,
543,
5521,
8362,
613,
13,
462,
308,
528,
21897,
29922,
8824,
467,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
285,
29896,
353,
21556,
29889,
29888,
29896,
29918,
13628,
29898,
29891,
29892,
1067,
29888,
29918,
5521,
8362,
29889,
27711,
29898,
29990,
511,
6588,
2433,
7915,
287,
1495,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
29888,
29896,
29892,
29871,
29900,
29889,
29929,
29953,
29892,
13677,
29922,
29896,
29897,
13,
13,
1678,
396,
8561,
1854,
393,
297,
278,
6411,
8362,
1206,
372,
947,
451,
1735,
3099,
13,
1678,
396,
304,
671,
376,
5521,
8362,
29908,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29889,
1111,
1389,
3383,
1067,
29888,
29918,
5521,
8362,
29889,
1111,
1389,
3383,
29871,
29953,
29897,
13,
13,
1678,
396,
2048,
385,
1407,
1407,
527,
5521,
8362,
8783,
714,
310,
3805,
275,
848,
13,
1678,
1060,
29918,
29900,
353,
1060,
29961,
29891,
1275,
29871,
29900,
29892,
584,
29962,
13,
1678,
343,
29918,
29900,
353,
343,
29961,
29891,
1275,
29871,
29900,
29962,
13,
13,
1678,
1060,
29918,
326,
5521,
8362,
353,
7442,
29889,
29894,
1429,
4197,
29990,
29962,
718,
518,
29990,
29918,
29900,
29962,
334,
29871,
29896,
29900,
29897,
13,
1678,
343,
29918,
326,
5521,
8362,
353,
7442,
29889,
535,
29883,
2579,
403,
4197,
29891,
29962,
718,
518,
29891,
29918,
29900,
29962,
334,
29871,
29896,
29900,
29897,
13,
13,
1678,
396,
6216,
263,
1904,
373,
278,
527,
5521,
8362,
848,
1728,
770,
7688,
5235,
13,
1678,
1067,
29888,
353,
22902,
29898,
3317,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
770,
29918,
7915,
29922,
8516,
29892,
528,
21897,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29918,
326,
5521,
8362,
29892,
343,
29918,
326,
5521,
8362,
29897,
13,
1678,
343,
29918,
11965,
353,
1067,
29888,
29889,
27711,
29898,
29990,
29897,
13,
1678,
4974,
21556,
29889,
29888,
29896,
29918,
13628,
29898,
29891,
29892,
343,
29918,
11965,
29892,
6588,
2433,
7915,
287,
1495,
529,
29871,
29900,
29889,
29929,
29953,
13,
13,
1678,
396,
6216,
263,
1904,
411,
6411,
8362,
770,
29918,
7915,
9615,
13,
1678,
1067,
29888,
353,
22902,
29898,
3317,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
770,
29918,
7915,
543,
5521,
8362,
613,
13,
18884,
528,
21897,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29918,
326,
5521,
8362,
29892,
343,
29918,
326,
5521,
8362,
29897,
13,
1678,
343,
29918,
11965,
353,
1067,
29888,
29889,
27711,
29898,
29990,
29897,
13,
1678,
4974,
21556,
29889,
29888,
29896,
29918,
13628,
29898,
29891,
29892,
343,
29918,
11965,
29892,
6588,
2433,
7915,
287,
1495,
1405,
29871,
29900,
29889,
29929,
29953,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
11249,
29918,
705,
5861,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
18177,
373,
5375,
11916,
13,
1678,
1060,
353,
7442,
29889,
2378,
4197,
14352,
29896,
29889,
29900,
29892,
448,
29896,
29889,
29900,
1402,
21069,
29896,
29889,
29900,
29892,
29871,
29900,
1402,
21069,
29889,
29947,
29892,
448,
29896,
29889,
29900,
1402,
13,
462,
29871,
518,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
1402,
518,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
24960,
13,
1678,
343,
353,
518,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
448,
29896,
29892,
448,
29896,
29962,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
6216,
29918,
1639,
1547,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
695,
29888,
29889,
27711,
4197,
29961,
29900,
29889,
29906,
29892,
448,
29896,
29889,
29900,
5262,
511,
7442,
29889,
2378,
4197,
29896,
12622,
13,
13,
1678,
396,
591,
2367,
263,
2319,
18177,
304,
770,
29871,
29896,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29892,
4559,
29918,
7915,
11759,
29900,
29889,
29900,
29900,
29896,
29962,
334,
29871,
29941,
718,
518,
29896,
29962,
334,
29871,
29906,
29897,
13,
13,
1678,
396,
1286,
278,
11266,
22116,
881,
16734,
12006,
29899,
3538,
322,
13,
1678,
396,
278,
18988,
373,
445,
1298,
881,
9500,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
695,
29888,
29889,
27711,
4197,
29961,
29900,
29889,
29906,
29892,
448,
29896,
29889,
29900,
5262,
511,
7442,
29889,
2378,
4197,
29899,
29896,
12622,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
15866,
549,
29918,
11249,
29918,
705,
5861,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
565,
7865,
2392,
338,
10425,
565,
4559,
29918,
7915,
756,
2743,
8267,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
6216,
29918,
1639,
1547,
29922,
8824,
29897,
13,
1678,
396,
4944,
4559,
29918,
7915,
2086,
1472,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29892,
4559,
29918,
7915,
29922,
9302,
29889,
279,
927,
29898,
29955,
876,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
3846,
29918,
9202,
29918,
11739,
29898,
29895,
605,
1125,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29897,
13,
1678,
396,
4413,
471,
451,
6790,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
4706,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29941,
29892,
612,
29941,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
3846,
29918,
9202,
29918,
19541,
29898,
29895,
605,
1125,
13,
1678,
4654,
353,
1060,
29889,
12181,
29961,
29900,
29962,
849,
29871,
29941,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29897,
13,
1678,
4413,
353,
7442,
29889,
13092,
29898,
29979,
29897,
13,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
7503,
22585,
1402,
612,
7503,
22585,
1402,
4413,
29922,
13203,
29897,
13,
1678,
4974,
1067,
29888,
29889,
1111,
1389,
5396,
12181,
1275,
313,
29896,
29892,
1060,
29889,
12181,
29961,
29896,
2314,
13,
1678,
4974,
1067,
29888,
29889,
1639,
1547,
5396,
12181,
1275,
313,
29896,
29892,
29897,
13,
1678,
4974,
1067,
29888,
29889,
7099,
2459,
29918,
2220,
4197,
29961,
29900,
29892,
29871,
29900,
5262,
467,
12181,
1275,
313,
29896,
29892,
1723,
13,
1678,
1178,
29896,
353,
1178,
29898,
695,
29888,
29889,
1111,
1389,
5396,
1272,
29897,
13,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29961,
22585,
29901,
1402,
612,
29961,
22585,
29901,
2314,
13,
1678,
1178,
29906,
353,
1178,
29898,
695,
29888,
29889,
1111,
1389,
5396,
1272,
29897,
13,
1678,
396,
1423,
393,
1302,
1389,
29918,
7359,
29915,
29873,
1063,
337,
29899,
15956,
630,
13,
1678,
4974,
1178,
29896,
29892,
1178,
29906,
13,
13,
1678,
343,
29918,
11965,
353,
1067,
29888,
29889,
27711,
29898,
29911,
29897,
13,
1678,
4974,
29918,
2378,
29918,
11745,
29898,
29891,
29918,
11965,
29892,
1565,
29918,
2914,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
3846,
29918,
9202,
29918,
4713,
293,
605,
29898,
29895,
605,
1125,
13,
1678,
4654,
353,
1060,
29906,
29889,
12181,
29961,
29900,
29962,
849,
29871,
29941,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29897,
13,
1678,
4413,
353,
7442,
29889,
13092,
29898,
29979,
29906,
29897,
13,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29906,
7503,
22585,
1402,
612,
29906,
7503,
22585,
1402,
4413,
29922,
13203,
29897,
13,
1678,
4974,
1067,
29888,
29889,
1111,
1389,
5396,
12181,
1275,
313,
29941,
29892,
1060,
29906,
29889,
12181,
29961,
29896,
2314,
13,
1678,
4974,
1067,
29888,
29889,
1639,
1547,
5396,
12181,
1275,
313,
29941,
29892,
29897,
13,
1678,
4974,
1067,
29888,
29889,
7099,
2459,
29918,
2220,
4197,
29961,
29900,
29892,
29871,
29900,
5262,
467,
12181,
1275,
313,
29896,
29892,
29871,
29941,
29897,
13,
1678,
1178,
29896,
353,
1178,
29898,
695,
29888,
29889,
1111,
1389,
5396,
1272,
29897,
13,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29906,
29961,
22585,
29901,
1402,
612,
29906,
29961,
22585,
29901,
2314,
13,
1678,
1178,
29906,
353,
1178,
29898,
695,
29888,
29889,
1111,
1389,
5396,
1272,
29897,
13,
1678,
396,
1423,
393,
1302,
1389,
29918,
7359,
29915,
29873,
1063,
337,
29899,
15956,
630,
13,
1678,
4974,
1178,
29896,
29892,
1178,
29906,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
3846,
29918,
9202,
29918,
4713,
293,
605,
29918,
12483,
482,
29898,
29895,
605,
1125,
13,
1678,
4654,
353,
1060,
29906,
29889,
12181,
29961,
29900,
29962,
849,
29871,
29941,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
6588,
29922,
29990,
29906,
29889,
12181,
29961,
29900,
2314,
13,
1678,
4413,
353,
7442,
29889,
13092,
29898,
29979,
29906,
29897,
13,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29906,
7503,
22585,
1402,
612,
29906,
7503,
22585,
1402,
4413,
29922,
13203,
29897,
13,
1678,
4974,
1067,
29888,
29889,
1111,
1389,
5396,
12181,
1275,
313,
29941,
29892,
1060,
29906,
29889,
12181,
29961,
29896,
2314,
13,
1678,
4974,
1067,
29888,
29889,
1639,
1547,
5396,
12181,
1275,
313,
29941,
29892,
29897,
13,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29906,
29961,
22585,
29901,
1402,
612,
29906,
29961,
22585,
29901,
2314,
13,
1678,
4974,
1067,
29888,
29889,
1111,
1389,
5396,
12181,
1275,
313,
29941,
29892,
1060,
29906,
29889,
12181,
29961,
29896,
2314,
13,
1678,
4974,
1067,
29888,
29889,
1639,
1547,
5396,
12181,
1275,
313,
29941,
29892,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
9202,
29918,
6098,
29918,
3846,
29918,
9202,
29898,
29895,
605,
1125,
13,
1678,
396,
3455,
616,
29918,
9202,
881,
664,
1156,
2847,
6216,
297,
278,
1773,
293,
605,
1206,
29889,
13,
1678,
396,
10050,
29899,
276,
11476,
1243,
363,
396,
29906,
29946,
29929,
29953,
29936,
6216,
723,
9251,
7738,
263,
13,
1678,
396,
7236,
661,
29899,
21693,
1302,
1389,
29918,
393,
15352,
7687,
29918,
9202,
8496,
29915,
29873,
4386,
29889,
13,
1678,
1067,
29888,
353,
22902,
580,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29906,
29892,
612,
29906,
29897,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29906,
29892,
612,
29906,
29897,
268,
396,
694,
3682,
1244,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29212,
742,
13,
462,
308,
6796,
23362,
613,
376,
3670,
3039,
613,
376,
262,
4270,
1052,
292,
613,
376,
1114,
415,
573,
20068,
13,
1753,
1243,
29918,
3846,
29918,
9202,
29918,
11745,
29918,
9202,
29918,
1990,
361,
29898,
29895,
605,
29892,
301,
29878,
1125,
13,
1678,
363,
1060,
3383,
612,
3383,
323,
29918,
297,
5135,
29990,
29892,
612,
29892,
323,
511,
313,
29990,
29906,
29892,
612,
29906,
29892,
323,
29906,
22164,
13,
4706,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29892,
13,
462,
1678,
6509,
29918,
10492,
29922,
29212,
29892,
528,
21897,
29922,
8824,
29897,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
3383,
612,
19925,
13,
4706,
343,
29918,
11965,
353,
1067,
29888,
29889,
7099,
2459,
29918,
2220,
29898,
29911,
19925,
13,
4706,
260,
353,
1067,
29888,
29889,
29873,
29918,
13,
13,
4706,
4413,
353,
7442,
29889,
13092,
29898,
29979,
19925,
13,
4706,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
6509,
29918,
10492,
29922,
29212,
29892,
13,
462,
1678,
528,
21897,
29922,
8824,
29897,
13,
4706,
363,
474,
297,
3464,
29898,
29906,
1125,
13,
9651,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
3383,
612,
3383,
4413,
29922,
13203,
29897,
13,
4706,
343,
29918,
11965,
29906,
353,
1067,
29888,
29889,
7099,
2459,
29918,
2220,
29898,
29911,
19925,
13,
13,
4706,
4974,
1067,
29888,
29889,
29873,
29918,
1275,
260,
13,
4706,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
29891,
29918,
11965,
29892,
343,
29918,
11965,
29906,
29892,
13677,
29922,
29906,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
276,
11476,
29918,
6758,
267,
29898,
29895,
605,
1125,
13,
1678,
4036,
29918,
3859,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29896,
29897,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
6509,
29918,
10492,
543,
23362,
613,
13,
18884,
634,
29874,
29900,
29922,
29900,
29889,
29896,
29892,
6410,
543,
5463,
29918,
1144,
575,
3321,
613,
13,
18884,
4036,
29918,
3859,
29922,
8172,
29918,
3859,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
4974,
29871,
29896,
29889,
29900,
1275,
7442,
29889,
12676,
29898,
695,
29888,
29889,
27711,
29898,
29990,
29897,
1275,
612,
29897,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
6509,
29918,
10492,
543,
23362,
613,
13,
18884,
634,
29874,
29900,
29922,
29900,
29889,
29896,
29892,
6410,
543,
26613,
1965,
29918,
5463,
29918,
1144,
575,
3321,
613,
13,
18884,
4036,
29918,
3859,
29922,
8172,
29918,
3859,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
4974,
29871,
29896,
29889,
29900,
1275,
7442,
29889,
12676,
29898,
695,
29888,
29889,
27711,
29898,
29990,
29897,
1275,
612,
29897,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
6410,
543,
29882,
11234,
613,
4036,
29918,
3859,
29922,
8172,
29918,
3859,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
4974,
29871,
29896,
29889,
29900,
1275,
7442,
29889,
12676,
29898,
695,
29888,
29889,
27711,
29898,
29990,
29897,
1275,
612,
29897,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
6509,
29918,
10492,
543,
23362,
613,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
13,
18884,
6410,
543,
26613,
1965,
29918,
6758,
613,
4036,
29918,
3859,
29922,
8172,
29918,
3859,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
4974,
29871,
29896,
29889,
29900,
1275,
7442,
29889,
12676,
29898,
695,
29888,
29889,
27711,
29898,
29990,
29897,
1275,
612,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
29893,
2817,
29918,
2962,
29918,
4713,
293,
605,
29898,
29895,
605,
1125,
13,
1678,
903,
1688,
29918,
29893,
2817,
29918,
2962,
29898,
29895,
605,
29892,
1060,
29906,
29892,
612,
29906,
29892,
376,
3670,
3039,
1159,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
2385,
3709,
29892,
317,
5510,
26016,
29928,
2385,
3709,
2314,
13,
1753,
1243,
29918,
20787,
29918,
9202,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
2999,
5717,
310,
6216,
281,
29914,
1422,
528,
10501,
10970,
29889,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
528,
21897,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
4974,
756,
5552,
29898,
695,
29888,
29892,
376,
1111,
1389,
29918,
1159,
13,
13,
1678,
396,
10050,
29899,
276,
11476,
1243,
29901,
1018,
28221,
411,
263,
1422,
3858,
731,
29889,
13,
1678,
343,
353,
518,
3366,
3391,
613,
376,
1028,
314,
3108,
29961,
29875,
29962,
363,
474,
297,
15796,
8566,
6119,
2141,
9202,
29918,
9067,
29898,
29979,
4638,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
7503,
29892,
8956,
29896,
1402,
343,
29897,
13,
13,
13,
13383,
13383,
13383,
13383,
7346,
4136,
2277,
29937,
13,
29937,
2169,
23881,
4321,
11733,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
1727,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
393,
317,
29954,
29928,
4076,
738,
2582,
29889,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29892,
6216,
29918,
1639,
1547,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
4197,
29961,
29900,
29892,
29871,
29900,
1402,
518,
29896,
29892,
29871,
29896,
1402,
518,
29906,
29892,
29871,
29906,
20526,
518,
29900,
29892,
29871,
29896,
29892,
29871,
29906,
2314,
13,
1678,
4974,
1067,
29888,
29889,
1111,
1389,
29918,
29961,
29900,
29962,
1275,
1067,
29888,
29889,
1111,
1389,
29918,
29961,
29896,
29962,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
12483,
4063,
29918,
12097,
287,
29918,
15728,
368,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
29879,
278,
6588,
337,
3663,
272,
7087,
278,
1055,
573,
5314,
13,
13,
1678,
634,
29874,
353,
869,
29900,
29900,
29896,
13,
1678,
15595,
353,
869,
29900,
29896,
13,
1678,
302,
29918,
27736,
353,
29871,
29906,
29900,
13,
1678,
302,
29918,
22100,
353,
29871,
29896,
29900,
13,
1678,
364,
865,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29900,
29897,
13,
1678,
1060,
353,
364,
865,
29889,
8945,
29898,
2311,
7607,
29876,
29918,
27736,
29892,
302,
29918,
22100,
876,
13,
1678,
281,
353,
364,
865,
29889,
8945,
29898,
2311,
29922,
29876,
29918,
22100,
29897,
13,
13,
1678,
396,
2560,
5608,
740,
1728,
11462,
13,
1678,
343,
353,
7442,
29889,
6333,
29898,
29990,
29892,
281,
29897,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
2433,
26613,
1965,
29918,
6758,
742,
13,
18884,
6509,
29918,
10492,
2433,
23362,
742,
13,
18884,
634,
29874,
29900,
29922,
1187,
29892,
15595,
29922,
2312,
29892,
13,
18884,
6216,
29918,
1639,
1547,
29922,
5574,
29892,
13,
18884,
4236,
29918,
1524,
29922,
29896,
29892,
6588,
29922,
5574,
29892,
528,
21897,
29922,
8824,
29897,
13,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
6588,
29918,
705,
5861,
29892,
6588,
29918,
1639,
1547,
353,
408,
29887,
29881,
29898,
29895,
605,
29892,
1060,
29892,
343,
29892,
634,
29874,
29892,
15595,
29897,
13,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29889,
1111,
1389,
3383,
13,
462,
795,
6588,
29918,
705,
5861,
29892,
13,
462,
795,
13677,
29922,
29896,
29953,
29897,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29889,
1639,
1547,
3383,
6588,
29918,
1639,
1547,
29892,
13677,
29922,
29896,
29953,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
12483,
4063,
29918,
3846,
29918,
9202,
29898,
29895,
605,
1125,
13,
1678,
396,
4321,
29879,
3692,
278,
7687,
6216,
17498,
278,
1021,
6588,
408,
278,
6216,
13,
1678,
634,
29874,
353,
869,
29900,
29900,
29896,
13,
1678,
15595,
353,
869,
29900,
29896,
13,
1678,
302,
29918,
27736,
353,
29871,
29906,
29900,
13,
1678,
302,
29918,
22100,
353,
29871,
29896,
29900,
13,
1678,
364,
865,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29900,
29897,
13,
1678,
1060,
353,
364,
865,
29889,
8945,
29898,
2311,
7607,
29876,
29918,
27736,
29892,
302,
29918,
22100,
876,
13,
1678,
281,
353,
364,
865,
29889,
8945,
29898,
2311,
29922,
29876,
29918,
22100,
29897,
13,
13,
1678,
396,
2560,
5608,
740,
1728,
11462,
13,
1678,
343,
353,
7442,
29889,
6333,
29898,
29990,
29892,
281,
29897,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
2433,
26613,
1965,
29918,
6758,
742,
13,
18884,
6509,
29918,
10492,
2433,
23362,
742,
13,
18884,
634,
29874,
29900,
29922,
1187,
29892,
15595,
29922,
2312,
29892,
13,
18884,
6216,
29918,
1639,
1547,
29922,
5574,
29892,
13,
18884,
4236,
29918,
1524,
29922,
29896,
29892,
6588,
29922,
5574,
29892,
528,
21897,
29922,
8824,
29897,
13,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
7503,
524,
29898,
29876,
29918,
27736,
847,
29871,
29906,
29897,
3816,
29901,
1402,
343,
7503,
524,
29898,
29876,
29918,
27736,
847,
29871,
29906,
29897,
2314,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29961,
524,
29898,
29876,
29918,
27736,
847,
29871,
29906,
1125,
3816,
29901,
1402,
343,
29961,
524,
29898,
29876,
29918,
27736,
847,
29871,
29906,
1125,
2314,
13,
1678,
6588,
29918,
705,
5861,
29892,
6588,
29918,
1639,
1547,
353,
408,
29887,
29881,
29898,
29895,
605,
29892,
1060,
29892,
343,
29892,
634,
29874,
29892,
15595,
29897,
13,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29889,
1111,
1389,
3383,
13,
462,
795,
6588,
29918,
705,
5861,
29892,
13,
462,
795,
13677,
29922,
29896,
29953,
29897,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29889,
1639,
1547,
29918,
29961,
29900,
1402,
6588,
29918,
1639,
1547,
29892,
13677,
29922,
29896,
29953,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
12483,
482,
29918,
29879,
5510,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
29879,
278,
6588,
18177,
373,
848,
411,
29871,
29900,
29879,
13,
13,
1678,
634,
29874,
353,
869,
29900,
29900,
29896,
13,
1678,
15595,
353,
869,
29900,
29896,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
2433,
26613,
1965,
29918,
6758,
742,
13,
18884,
6509,
29918,
10492,
2433,
23362,
742,
13,
18884,
634,
29874,
29900,
29922,
1187,
29892,
15595,
29922,
2312,
29892,
13,
18884,
6216,
29918,
1639,
1547,
29922,
5574,
29892,
13,
18884,
4236,
29918,
1524,
29922,
29896,
29892,
6588,
29922,
5574,
29892,
528,
21897,
29922,
8824,
29897,
13,
13,
1678,
302,
29918,
27736,
353,
612,
29941,
29889,
12181,
29961,
29900,
29962,
13,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29941,
7503,
524,
29898,
29876,
29918,
27736,
847,
29871,
29906,
29897,
3816,
29901,
1402,
612,
29941,
7503,
524,
29898,
29876,
29918,
27736,
847,
29871,
29906,
29897,
2314,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29941,
29961,
524,
29898,
29876,
29918,
27736,
847,
29871,
29906,
1125,
3816,
29901,
1402,
612,
29941,
29961,
524,
29898,
29876,
29918,
27736,
847,
29871,
29906,
1125,
2314,
13,
1678,
6588,
29918,
705,
5861,
29892,
6588,
29918,
1639,
1547,
353,
408,
29887,
29881,
29898,
29895,
605,
29892,
1060,
29941,
29892,
612,
29941,
29892,
634,
29874,
29892,
15595,
29897,
13,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29889,
1111,
1389,
3383,
13,
462,
795,
6588,
29918,
705,
5861,
29892,
13,
462,
795,
13677,
29922,
29896,
29953,
29897,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29889,
1639,
1547,
3383,
6588,
29918,
1639,
1547,
29892,
13677,
29922,
29896,
29953,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
280,
579,
29918,
26613,
5114,
29918,
9202,
29898,
29895,
605,
1125,
13,
1678,
921,
1195,
29892,
921,
3317,
353,
448,
29945,
29892,
29871,
29945,
13,
1678,
302,
29918,
27736,
353,
29871,
29896,
29900,
29900,
13,
1678,
364,
865,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29900,
29897,
13,
1678,
1060,
353,
7442,
29889,
1915,
3493,
29898,
29916,
1195,
29892,
921,
3317,
29892,
302,
29918,
27736,
467,
690,
14443,
29898,
29876,
29918,
27736,
29892,
29871,
29896,
29897,
13,
13,
1678,
396,
2560,
5608,
740,
1728,
11462,
13,
1678,
343,
353,
29871,
29900,
29889,
29945,
334,
1060,
29889,
336,
955,
580,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
2433,
26613,
1965,
29918,
6758,
742,
15595,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29892,
13,
18884,
6216,
29918,
1639,
1547,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
8158,
353,
1067,
29888,
29889,
13628,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
8158,
1405,
29871,
29900,
29889,
29929,
29929,
13,
13,
1678,
396,
2560,
5608,
740,
411,
11462,
13,
1678,
343,
353,
29871,
29900,
29889,
29945,
334,
1060,
29889,
336,
955,
580,
718,
364,
865,
29889,
9502,
29876,
29898,
29876,
29918,
27736,
29892,
29871,
29896,
467,
336,
955,
580,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
2433,
26613,
1965,
29918,
6758,
742,
15595,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29892,
13,
18884,
6216,
29918,
1639,
1547,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
8158,
353,
1067,
29888,
29889,
13628,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
8158,
1405,
29871,
29900,
29889,
29945,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
5463,
29918,
1144,
575,
3321,
29898,
29895,
605,
1125,
13,
1678,
921,
1195,
29892,
921,
3317,
353,
448,
29945,
29892,
29871,
29945,
13,
1678,
302,
29918,
27736,
353,
29871,
29896,
29900,
29900,
13,
1678,
364,
865,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29900,
29897,
13,
1678,
1060,
353,
7442,
29889,
1915,
3493,
29898,
29916,
1195,
29892,
921,
3317,
29892,
302,
29918,
27736,
467,
690,
14443,
29898,
29876,
29918,
27736,
29892,
29871,
29896,
29897,
13,
13,
1678,
396,
2560,
5608,
740,
1728,
11462,
13,
1678,
343,
353,
29871,
29900,
29889,
29945,
334,
1060,
29889,
336,
955,
580,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
2433,
5463,
29918,
1144,
575,
3321,
742,
321,
3232,
29922,
29900,
29889,
29900,
29896,
29892,
13,
18884,
15595,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29892,
13,
18884,
6216,
29918,
1639,
1547,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
8158,
353,
1067,
29888,
29889,
13628,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
8158,
1405,
29871,
29900,
29889,
29929,
29929,
13,
13,
1678,
396,
2560,
5608,
740,
411,
11462,
13,
1678,
343,
353,
29871,
29900,
29889,
29945,
334,
1060,
29889,
336,
955,
580,
718,
364,
865,
29889,
9502,
29876,
29898,
29876,
29918,
27736,
29892,
29871,
29896,
467,
336,
955,
580,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
2433,
5463,
29918,
1144,
575,
3321,
742,
321,
3232,
29922,
29900,
29889,
29900,
29896,
29892,
13,
18884,
15595,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29892,
13,
18884,
6216,
29918,
1639,
1547,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
8158,
353,
1067,
29888,
29889,
13628,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
8158,
1405,
29871,
29900,
29889,
29945,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
5311,
29881,
29918,
29882,
11234,
29918,
9202,
29898,
29895,
605,
1125,
13,
1678,
921,
1195,
29892,
921,
3317,
353,
448,
29945,
29892,
29871,
29945,
13,
1678,
302,
29918,
27736,
353,
29871,
29896,
29900,
29900,
13,
1678,
364,
865,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29900,
29897,
13,
1678,
1060,
353,
7442,
29889,
1915,
3493,
29898,
29916,
1195,
29892,
921,
3317,
29892,
302,
29918,
27736,
467,
690,
14443,
29898,
29876,
29918,
27736,
29892,
29871,
29896,
29897,
13,
13,
1678,
396,
2560,
5608,
740,
1728,
11462,
13,
1678,
343,
353,
29871,
29900,
29889,
29945,
334,
1060,
29889,
336,
955,
580,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
543,
29882,
11234,
613,
321,
3232,
29922,
29900,
29889,
29896,
29892,
15595,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29892,
13,
18884,
6216,
29918,
1639,
1547,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
8158,
353,
1067,
29888,
29889,
13628,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
8158,
1405,
29871,
29900,
29889,
29929,
29929,
13,
13,
1678,
396,
2560,
5608,
740,
411,
11462,
13,
1678,
343,
353,
29871,
29900,
29889,
29945,
334,
1060,
29889,
336,
955,
580,
718,
364,
865,
29889,
9502,
29876,
29898,
29876,
29918,
27736,
29892,
29871,
29896,
467,
336,
955,
580,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
6758,
543,
29882,
11234,
613,
321,
3232,
29922,
29900,
29889,
29896,
29892,
15595,
29922,
29900,
29889,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29892,
13,
18884,
6216,
29918,
1639,
1547,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
8158,
353,
1067,
29888,
29889,
13628,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
8158,
1405,
29871,
29900,
29889,
29945,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
295,
6288,
1212,
29918,
535,
369,
10238,
29898,
29895,
605,
1125,
13,
1678,
396,
5399,
393,
278,
317,
29954,
29928,
1962,
338,
13747,
411,
14821,
26815,
13,
13,
1678,
302,
29918,
27736,
29892,
302,
29918,
22100,
353,
29871,
29896,
29900,
29900,
29900,
29892,
29871,
29945,
13,
1678,
364,
865,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29900,
29897,
13,
1678,
1060,
353,
364,
865,
29889,
9502,
29876,
29898,
29876,
29918,
27736,
29892,
302,
29918,
22100,
29897,
13,
1678,
396,
5962,
29918,
509,
2806,
5608,
1904,
393,
5706,
343,
515,
1060,
322,
304,
607,
278,
13,
1678,
396,
4733,
881,
5486,
479,
565,
278,
4943,
3950,
723,
367,
731,
304,
29871,
29900,
29889,
29900,
13,
1678,
5962,
29918,
509,
2806,
29918,
1111,
1389,
353,
364,
865,
29889,
9502,
29876,
29898,
29876,
29918,
22100,
29897,
13,
1678,
343,
353,
7442,
29889,
6333,
29898,
29990,
29892,
5962,
29918,
509,
2806,
29918,
1111,
1389,
29897,
13,
13,
1678,
396,
22615,
29901,
15595,
353,
29871,
29900,
29889,
29896,
2444,
304,
4556,
17221,
4828,
13,
1678,
363,
15595,
297,
518,
29900,
29889,
29900,
29896,
29892,
29871,
29900,
29889,
29900,
29900,
29896,
5387,
13,
4706,
363,
301,
29896,
29918,
3605,
601,
297,
518,
29900,
29889,
29945,
29892,
29871,
29900,
29889,
29947,
29892,
29871,
29896,
29889,
29900,
5387,
13,
9651,
14965,
353,
5608,
29918,
4299,
29889,
29923,
4230,
293,
6779,
29898,
2312,
29922,
2312,
29892,
301,
29896,
29918,
3605,
601,
29922,
29880,
29896,
29918,
3605,
601,
29892,
13,
462,
462,
308,
6216,
29918,
1639,
1547,
29922,
8824,
29897,
13,
9651,
14965,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
9651,
269,
29887,
29881,
353,
22902,
29898,
2238,
18745,
2433,
295,
6288,
1212,
742,
4236,
29918,
1524,
29922,
29945,
29900,
29892,
13,
462,
4706,
15595,
29922,
2312,
29892,
301,
29896,
29918,
3605,
601,
29922,
29880,
29896,
29918,
3605,
601,
29892,
13,
462,
4706,
6216,
29918,
1639,
1547,
29922,
8824,
29897,
13,
9651,
269,
29887,
29881,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
9651,
4589,
29918,
7645,
353,
4852,
2252,
322,
269,
29887,
29881,
1258,
451,
5486,
479,
304,
5734,
519,
376,
13,
462,
539,
376,
9902,
363,
15595,
16328,
29888,
322,
301,
29896,
29918,
3605,
601,
16328,
29888,
29908,
13,
462,
539,
1273,
313,
2312,
29892,
301,
29896,
29918,
3605,
601,
876,
13,
9651,
4974,
29918,
284,
3242,
29918,
11745,
29898,
2252,
29889,
1111,
1389,
3383,
269,
29887,
29881,
29889,
1111,
1389,
3383,
13677,
29922,
29906,
29892,
13,
462,
18884,
4589,
29918,
7645,
29922,
3127,
29918,
7645,
29897,
13,
13,
13,
29992,
17281,
29918,
25442,
886,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
3846,
29918,
9202,
29898,
29895,
605,
1125,
13,
1678,
4654,
353,
1060,
29889,
12181,
29961,
29900,
29962,
849,
29871,
29941,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29897,
13,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
7503,
22585,
1402,
612,
7503,
22585,
2314,
13,
1678,
4974,
1067,
29888,
29889,
1111,
1389,
5396,
12181,
1275,
313,
29990,
29889,
12181,
29961,
29896,
1402,
1723,
13,
1678,
4974,
1067,
29888,
29889,
1639,
1547,
5396,
12181,
1275,
313,
29896,
29892,
29897,
13,
1678,
4974,
1067,
29888,
29889,
27711,
4197,
29961,
29900,
29892,
29871,
29900,
5262,
467,
12181,
1275,
313,
29896,
29892,
1723,
13,
1678,
1178,
29896,
353,
1178,
29898,
695,
29888,
29889,
1111,
1389,
5396,
1272,
29897,
13,
13,
1678,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29961,
22585,
29901,
1402,
612,
29961,
22585,
29901,
2314,
13,
1678,
1178,
29906,
353,
1178,
29898,
695,
29888,
29889,
1111,
1389,
5396,
1272,
29897,
13,
1678,
396,
1423,
393,
1302,
1389,
29918,
7359,
29915,
29873,
1063,
337,
29899,
15956,
630,
13,
1678,
4974,
1178,
29896,
29892,
1178,
29906,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29212,
742,
13,
462,
308,
6796,
23362,
613,
376,
3670,
3039,
613,
376,
262,
4270,
1052,
292,
613,
376,
1114,
415,
573,
20068,
13,
1753,
1243,
29918,
3846,
29918,
9202,
29918,
11745,
29918,
9202,
29898,
29895,
605,
29892,
301,
29878,
1125,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29892,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
13,
18884,
6509,
29918,
10492,
29922,
29212,
29892,
528,
21897,
29922,
8824,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
343,
29918,
11965,
353,
1067,
29888,
29889,
27711,
29898,
29911,
29897,
13,
1678,
260,
353,
1067,
29888,
29889,
29873,
29918,
13,
13,
1678,
1067,
29888,
353,
22902,
29898,
2312,
29922,
29900,
29889,
29900,
29896,
29892,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29896,
29892,
13,
18884,
6509,
29918,
10492,
29922,
29212,
29892,
528,
21897,
29922,
8824,
29897,
13,
1678,
363,
474,
297,
3464,
29898,
29906,
1125,
13,
4706,
1067,
29888,
29889,
3846,
29918,
9202,
29898,
29990,
29892,
612,
29897,
13,
1678,
343,
29918,
11965,
29906,
353,
1067,
29888,
29889,
27711,
29898,
29911,
29897,
13,
13,
1678,
4974,
1067,
29888,
29889,
29873,
29918,
1275,
260,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
29891,
29918,
11965,
29892,
343,
29918,
11965,
29906,
29892,
13677,
29922,
29906,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
29895,
605,
742,
518,
26016,
29928,
4597,
1253,
272,
29892,
317,
5510,
26016,
29928,
4597,
1253,
272,
2314,
13,
1753,
1243,
29918,
6758,
29918,
2220,
29918,
5463,
29898,
29895,
605,
1125,
13,
1678,
1067,
29888,
353,
22902,
29898,
5463,
29922,
29900,
29889,
29929,
29897,
13,
1678,
1067,
29888,
29889,
842,
29918,
7529,
29898,
5463,
29922,
29900,
29889,
29896,
29897,
13,
1678,
4974,
1067,
29888,
29889,
6758,
29918,
12171,
1839,
29882,
11234,
2033,
29961,
29896,
29962,
1275,
29871,
29900,
29889,
29896,
13,
13,
13,
1753,
1243,
29918,
29880,
29896,
29918,
3605,
601,
7295,
13,
1678,
396,
4321,
565,
301,
29896,
11959,
9413,
267,
1993,
365,
29896,
322,
365,
29906,
27368,
6055,
29889,
13,
1678,
1060,
29892,
343,
353,
20035,
29889,
5675,
29918,
1990,
2450,
29898,
29876,
29918,
27736,
29922,
29896,
29900,
29900,
29900,
29892,
13,
462,
462,
4706,
302,
29918,
22100,
29922,
29896,
29900,
29900,
29892,
302,
29918,
262,
689,
1230,
29922,
29906,
29900,
29892,
13,
462,
462,
4706,
4036,
29918,
3859,
29922,
29896,
29906,
29941,
29946,
29897,
13,
13,
1678,
396,
1243,
565,
560,
6288,
1212,
411,
301,
29896,
29918,
3605,
601,
2978,
29871,
29896,
4076,
1021,
1121,
408,
8296,
301,
29896,
13,
1678,
707,
29918,
264,
353,
317,
29954,
29928,
2385,
3709,
29898,
2312,
29922,
29900,
29889,
29900,
29900,
29896,
29892,
27368,
2433,
295,
6288,
1212,
742,
304,
29880,
29922,
8516,
29892,
13,
462,
965,
4236,
29918,
1524,
29922,
29953,
29892,
301,
29896,
29918,
3605,
601,
29922,
29900,
29889,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29892,
13,
462,
965,
4036,
29918,
3859,
29922,
29946,
29906,
467,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
707,
29918,
29880,
29896,
353,
317,
29954,
29928,
2385,
3709,
29898,
2312,
29922,
29900,
29889,
29900,
29900,
29896,
29892,
27368,
2433,
29880,
29896,
742,
4236,
29918,
1524,
29922,
29953,
29892,
13,
462,
965,
4036,
29918,
3859,
29922,
29946,
29906,
29892,
304,
29880,
29922,
8516,
467,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
342,
29918,
264,
29889,
1111,
1389,
3383,
707,
29918,
29880,
29896,
29889,
1111,
1389,
19925,
13,
13,
1678,
396,
1243,
565,
560,
6288,
1212,
411,
301,
29896,
29918,
3605,
601,
2978,
29871,
29900,
4076,
1021,
1121,
408,
8296,
301,
29906,
13,
1678,
707,
29918,
264,
353,
317,
29954,
29928,
2385,
3709,
29898,
2312,
29922,
29900,
29889,
29900,
29900,
29896,
29892,
27368,
2433,
295,
6288,
1212,
742,
304,
29880,
29922,
8516,
29892,
13,
462,
965,
4236,
29918,
1524,
29922,
29953,
29892,
301,
29896,
29918,
3605,
601,
29922,
29900,
29889,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29896,
29892,
13,
462,
965,
4036,
29918,
3859,
29922,
29946,
29906,
467,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
707,
29918,
29880,
29906,
353,
317,
29954,
29928,
2385,
3709,
29898,
2312,
29922,
29900,
29889,
29900,
29900,
29896,
29892,
27368,
2433,
29880,
29906,
742,
4236,
29918,
1524,
29922,
29953,
29892,
13,
462,
965,
4036,
29918,
3859,
29922,
29946,
29906,
29892,
304,
29880,
29922,
8516,
467,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
342,
29918,
264,
29889,
1111,
1389,
3383,
707,
29918,
29880,
29906,
29889,
1111,
1389,
19925,
13,
13,
13,
1753,
1243,
29918,
5062,
1731,
29918,
272,
29918,
957,
677,
7295,
13,
1678,
411,
7442,
29889,
3127,
3859,
29898,
497,
2433,
22692,
29374,
13,
4706,
396,
3251,
403,
777,
13543,
848,
411,
298,
688,
873,
443,
7052,
29881,
5680,
13,
4706,
364,
865,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29900,
29897,
13,
4706,
302,
29918,
27736,
353,
29871,
29896,
29900,
29900,
13,
4706,
302,
29918,
22100,
353,
29871,
29896,
29900,
13,
13,
4706,
1060,
353,
364,
865,
29889,
8945,
29898,
2311,
7607,
29876,
29918,
27736,
29892,
302,
29918,
22100,
876,
13,
4706,
1060,
7503,
29892,
584,
29906,
29962,
334,
29922,
29871,
29896,
29872,
29941,
29900,
29900,
13,
4706,
4974,
7442,
29889,
4492,
262,
568,
29898,
29990,
467,
497,
580,
13,
13,
4706,
396,
4803,
3080,
7976,
29636,
261,
304,
6287,
278,
848,
1728,
4547,
3277,
263,
16259,
13,
4706,
396,
832,
3097,
313,
12097,
292,
278,
3918,
29522,
1055,
3598,
338,
451,
1950,
13,
4706,
396,
373,
445,
848,
29897,
13,
4706,
1060,
29918,
7052,
29881,
353,
3080,
7976,
29636,
261,
2141,
9202,
29918,
9067,
29898,
29990,
29897,
13,
4706,
4974,
7442,
29889,
4492,
262,
568,
29898,
29990,
29918,
7052,
29881,
467,
497,
580,
13,
13,
4706,
396,
22402,
263,
5962,
8760,
373,
278,
6287,
29881,
848,
13,
4706,
5962,
29918,
509,
2806,
353,
364,
865,
29889,
8945,
29898,
2311,
29922,
29876,
29918,
22100,
29897,
13,
4706,
343,
353,
313,
9302,
29889,
6333,
29898,
29990,
29918,
7052,
29881,
29892,
5962,
29918,
509,
2806,
29897,
1405,
29871,
29900,
6250,
579,
668,
29898,
9302,
29889,
524,
29941,
29906,
29897,
13,
4706,
4974,
29918,
2378,
29918,
11745,
29898,
9302,
29889,
13092,
29898,
29891,
511,
518,
29900,
29892,
29871,
29896,
2314,
13,
13,
4706,
1904,
353,
317,
29954,
29928,
2385,
3709,
29898,
2312,
29922,
29900,
29889,
29896,
29892,
6410,
2433,
26613,
1965,
29918,
2790,
29872,
742,
4236,
29918,
1524,
29922,
29945,
29900,
29900,
29897,
13,
13,
4706,
396,
25158,
1243,
29901,
1904,
338,
13714,
373,
6287,
29881,
848,
13,
4706,
1904,
29889,
9202,
29898,
29990,
29918,
7052,
29881,
29892,
343,
29897,
13,
4706,
4974,
7442,
29889,
4492,
262,
568,
29898,
4299,
29889,
1111,
1389,
29918,
467,
497,
580,
13,
13,
4706,
396,
1904,
338,
4825,
1711,
443,
13844,
373,
443,
7052,
29881,
848,
13,
4706,
10191,
29918,
1727,
26330,
353,
313,
29878,
29908,
29943,
417,
1218,
29899,
3149,
1090,
29899,
29914,
2262,
10761,
472,
21502,
305,
396,
5575,
29908,
13,
462,
268,
376,
317,
1052,
292,
1881,
848,
411,
10117,
29636,
261,
470,
3080,
7976,
29636,
261,
29908,
13,
462,
268,
376,
1795,
1371,
23157,
13,
4706,
4974,
29918,
336,
4637,
29918,
13087,
29886,
29898,
1917,
2392,
29892,
10191,
29918,
1727,
26330,
29892,
1904,
29889,
9202,
29892,
1060,
29892,
343,
29897,
13,
13,
13,
1753,
1243,
29918,
8058,
936,
29918,
303,
3097,
29918,
16961,
29918,
24970,
7295,
13,
1678,
396,
10050,
17855,
1243,
1206,
363,
16259,
25806,
373,
6287,
29881,
4828,
13,
1678,
396,
988,
278,
16030,
508,
1603,
3902,
356,
411,
777,
28495,
13,
1678,
1904,
353,
317,
29954,
29928,
2385,
3709,
29898,
6758,
2433,
26613,
1965,
29918,
2790,
29872,
742,
4236,
29918,
1524,
29922,
29896,
29900,
29892,
528,
21897,
29922,
5574,
29892,
13,
462,
3986,
27368,
2433,
295,
6288,
1212,
742,
301,
29896,
29918,
3605,
601,
29922,
29900,
29889,
29941,
29892,
15595,
29922,
29900,
29889,
29900,
29896,
29892,
13,
462,
3986,
634,
29874,
29900,
29922,
29900,
29889,
29900,
29900,
29896,
29892,
4036,
29918,
3859,
29922,
29900,
29892,
304,
29880,
29922,
8516,
29897,
13,
1678,
411,
7442,
29889,
3127,
3859,
29898,
497,
2433,
22692,
29374,
13,
4706,
1904,
29889,
9202,
29898,
381,
275,
29889,
1272,
29892,
3805,
275,
29889,
5182,
29897,
13,
1678,
4974,
7442,
29889,
4492,
262,
568,
29898,
4299,
29889,
1111,
1389,
29918,
467,
497,
580,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
2238,
18745,
742,
6024,
29880,
29906,
742,
525,
29880,
29896,
742,
525,
295,
6288,
1212,
11287,
13,
1753,
1243,
29918,
16961,
29918,
15227,
2133,
29898,
2238,
18745,
1125,
13,
1678,
396,
10050,
17855,
6987,
363,
16259,
25806,
5626,
8581,
491,
2919,
13,
1678,
396,
4943,
2133,
4128,
13,
1678,
1904,
353,
317,
29954,
29928,
2385,
3709,
29898,
2312,
29922,
29896,
29872,
29945,
29892,
6509,
29918,
10492,
2433,
23362,
742,
634,
29874,
29900,
29922,
29900,
29889,
29896,
29892,
13,
462,
3986,
27368,
29922,
2238,
18745,
29892,
528,
21897,
29922,
8824,
29892,
13,
462,
3986,
304,
29880,
29922,
8516,
29892,
4236,
29918,
1524,
29922,
29953,
29897,
13,
1678,
411,
7442,
29889,
3127,
3859,
29898,
497,
2433,
22692,
29374,
13,
4706,
1904,
29889,
9202,
29898,
381,
275,
29889,
1272,
29892,
3805,
275,
29889,
5182,
29897,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
4299,
29889,
1111,
1389,
3383,
7442,
29889,
3298,
359,
29918,
4561,
29898,
4299,
29889,
1111,
1389,
29918,
876,
13,
13,
13,
1753,
1243,
29918,
25027,
29918,
15501,
7295,
13,
1678,
396,
4321,
393,
278,
304,
29880,
3443,
4010,
267,
408,
3806,
13,
1678,
1060,
353,
10117,
29636,
261,
2141,
9202,
29918,
9067,
29898,
381,
275,
29889,
1272,
29897,
13,
1678,
343,
353,
3805,
275,
29889,
5182,
1275,
29871,
29896,
13,
13,
1678,
396,
2973,
304,
29880,
338,
6213,
29892,
278,
1353,
310,
12541,
881,
367,
5186,
304,
4236,
29918,
1524,
13,
1678,
4236,
29918,
1524,
353,
29871,
29946,
29906,
13,
1678,
1904,
29918,
29900,
353,
317,
29954,
29928,
2385,
3709,
29898,
25027,
29922,
8516,
29892,
4036,
29918,
3859,
29922,
29900,
29892,
4236,
29918,
1524,
29922,
3317,
29918,
1524,
29897,
13,
1678,
1904,
29918,
29900,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
4236,
29918,
1524,
1275,
1904,
29918,
29900,
29889,
29876,
29918,
1524,
29918,
13,
13,
1678,
396,
960,
304,
29880,
338,
451,
6213,
29892,
278,
1353,
310,
12541,
881,
367,
3109,
1135,
4236,
29918,
1524,
13,
1678,
4236,
29918,
1524,
353,
29871,
29906,
29900,
29900,
29900,
13,
1678,
1904,
29918,
29896,
353,
317,
29954,
29928,
2385,
3709,
29898,
25027,
29922,
29900,
29892,
4036,
29918,
3859,
29922,
29900,
29892,
4236,
29918,
1524,
29922,
3317,
29918,
1524,
29897,
13,
1678,
1904,
29918,
29896,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
4236,
29918,
1524,
1405,
1904,
29918,
29896,
29889,
29876,
29918,
1524,
29918,
13,
1678,
4974,
1904,
29918,
29896,
29889,
29876,
29918,
1524,
29918,
1405,
29871,
29945,
13,
13,
1678,
396,
319,
7200,
304,
29880,
881,
7709,
263,
7968,
1353,
310,
12541,
13,
1678,
1904,
29918,
29906,
353,
317,
29954,
29928,
2385,
3709,
29898,
25027,
29922,
29900,
29889,
29896,
29892,
4036,
29918,
3859,
29922,
29900,
29892,
4236,
29918,
1524,
29922,
3317,
29918,
1524,
29897,
13,
1678,
1904,
29918,
29906,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
1904,
29918,
29896,
29889,
29876,
29918,
1524,
29918,
1405,
1904,
29918,
29906,
29889,
29876,
29918,
1524,
29918,
13,
1678,
4974,
1904,
29918,
29906,
29889,
29876,
29918,
1524,
29918,
1405,
29871,
29941,
13,
13,
1678,
396,
3767,
919,
20341,
749,
322,
2319,
4236,
29918,
1524,
881,
7135,
263,
9177,
13,
1678,
1904,
29918,
29941,
353,
317,
29954,
29928,
2385,
3709,
29898,
3317,
29918,
1524,
29922,
29941,
29892,
304,
29880,
29922,
29896,
29872,
29899,
29941,
29892,
4036,
29918,
3859,
29922,
29900,
29897,
13,
1678,
1904,
29918,
29941,
353,
4974,
29918,
4495,
1983,
29898,
1168,
369,
10238,
22709,
29892,
1904,
29918,
29941,
29889,
9202,
29892,
1060,
29892,
343,
29897,
13,
1678,
4974,
1904,
29918,
29941,
29889,
29876,
29918,
1524,
29918,
1275,
29871,
29941,
13,
13,
13,
1753,
903,
1688,
29918,
6758,
29918,
9435,
29898,
6758,
29918,
2220,
29892,
4251,
1125,
13,
1678,
396,
4321,
278,
1422,
6410,
3168,
13,
1678,
396,
4251,
338,
263,
1051,
310,
313,
29886,
29892,
343,
29892,
3806,
29897,
13,
1678,
363,
282,
29892,
343,
29892,
3806,
29918,
6758,
29892,
3806,
29918,
29881,
6758,
297,
4251,
29901,
13,
4706,
4974,
29918,
284,
3242,
29918,
11745,
29898,
6758,
29918,
2220,
29889,
2272,
29918,
6758,
29898,
29886,
29892,
343,
511,
3806,
29918,
6758,
29897,
13,
4706,
4974,
29918,
284,
3242,
29918,
11745,
29898,
6758,
29918,
2220,
29889,
2272,
29918,
29881,
6758,
29898,
29886,
29892,
343,
511,
3806,
29918,
29881,
6758,
29897,
13,
13,
13,
1753,
1243,
29918,
6758,
29918,
2790,
29872,
7295,
13,
1678,
396,
4321,
379,
19144,
313,
2790,
29872,
847,
639,
1547,
1617,
29897,
13,
1678,
396,
298,
19144,
13,
1678,
6410,
353,
269,
29887,
29881,
29918,
11255,
29889,
29950,
19144,
29898,
29896,
29889,
29900,
29897,
13,
1678,
4251,
353,
518,
13,
4706,
396,
313,
29886,
29892,
343,
29892,
3806,
29918,
6758,
29892,
3806,
29918,
29881,
6758,
29897,
13,
4706,
313,
29896,
29889,
29896,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
8521,
29906,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
13,
4706,
313,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
448,
29896,
29889,
29900,
511,
8521,
29896,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
511,
313,
29900,
29889,
29945,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29945,
29892,
448,
29896,
29889,
29900,
511,
13,
4706,
313,
29906,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29941,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
511,
8521,
29900,
29889,
29945,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29945,
29892,
29871,
29896,
29889,
29900,
511,
313,
29900,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29896,
29892,
448,
29896,
29889,
29900,
29897,
13,
1678,
4514,
13,
1678,
903,
1688,
29918,
6758,
29918,
9435,
29898,
6758,
29892,
4251,
29897,
13,
13,
1678,
396,
639,
1547,
1617,
13,
1678,
6410,
353,
269,
29887,
29881,
29918,
11255,
29889,
29950,
19144,
29898,
29900,
29889,
29900,
29897,
13,
1678,
4251,
353,
518,
13,
4706,
396,
313,
29886,
29892,
343,
29892,
3806,
29918,
6758,
29892,
3806,
29918,
29881,
6758,
29897,
13,
4706,
313,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
8521,
29900,
29889,
29896,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
13,
4706,
313,
29900,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
448,
29896,
29889,
29900,
511,
313,
29900,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
511,
313,
29900,
29889,
29945,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29945,
29892,
29871,
29896,
29889,
29900,
511,
13,
4706,
313,
29906,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29906,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
511,
8521,
29900,
29889,
29945,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29945,
29892,
448,
29896,
29889,
29900,
511,
8521,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
448,
29896,
29889,
29900,
511,
13,
1678,
4514,
13,
1678,
903,
1688,
29918,
6758,
29918,
9435,
29898,
6758,
29892,
4251,
29897,
13,
13,
13,
1753,
1243,
29918,
24970,
29918,
26613,
1965,
29918,
2790,
29872,
7295,
13,
1678,
396,
4321,
317,
339,
1965,
29950,
19144,
13,
1678,
6410,
353,
269,
29887,
29881,
29918,
11255,
29889,
29903,
339,
1965,
29950,
19144,
29898,
29896,
29889,
29900,
29897,
13,
1678,
4251,
353,
518,
13,
4706,
396,
313,
29886,
29892,
343,
29892,
3806,
29918,
6758,
29892,
3806,
29918,
29881,
6758,
29897,
13,
4706,
313,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
8521,
29906,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
313,
29896,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29946,
29889,
29900,
29892,
29871,
29946,
29889,
29900,
511,
13,
4706,
8521,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29946,
29889,
29900,
29892,
448,
29946,
29889,
29900,
511,
313,
29900,
29889,
29945,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29906,
29945,
29892,
448,
29896,
29889,
29900,
511,
313,
29900,
29889,
29945,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29906,
29889,
29906,
29945,
29892,
29871,
29941,
29889,
29900,
29897,
13,
1678,
4514,
13,
1678,
903,
1688,
29918,
6758,
29918,
9435,
29898,
6758,
29892,
4251,
29897,
13,
13,
13,
1753,
1243,
29918,
6758,
29918,
1188,
7295,
13,
1678,
396,
4321,
4522,
313,
1188,
4695,
6410,
29897,
13,
1678,
6410,
353,
269,
29887,
29881,
29918,
11255,
29889,
3403,
580,
13,
1678,
4251,
353,
518,
13,
4706,
396,
313,
29886,
29892,
343,
29892,
3806,
29918,
6758,
29892,
3806,
29918,
29881,
6758,
29897,
13,
4706,
313,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
7442,
29889,
1188,
29898,
29896,
29889,
29900,
718,
7442,
29889,
4548,
6278,
29896,
29889,
29900,
8243,
448,
29896,
29889,
29900,
847,
313,
9302,
29889,
4548,
29898,
29896,
29889,
29900,
29897,
718,
29871,
29896,
29889,
29900,
8243,
13,
4706,
313,
29896,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
7442,
29889,
1188,
29898,
29896,
29889,
29900,
718,
7442,
29889,
4548,
29898,
29896,
29889,
29900,
8243,
29871,
29896,
29889,
29900,
847,
313,
9302,
29889,
4548,
6278,
29896,
29889,
29900,
29897,
718,
29871,
29896,
29889,
29900,
8243,
13,
4706,
8521,
29896,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
7442,
29889,
1188,
29898,
29896,
29889,
29900,
718,
7442,
29889,
4548,
6278,
29896,
29889,
29900,
8243,
29871,
29896,
29889,
29900,
847,
313,
9302,
29889,
4548,
29898,
29896,
29889,
29900,
29897,
718,
29871,
29896,
29889,
29900,
8243,
13,
4706,
8521,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
7442,
29889,
1188,
29898,
29896,
29889,
29900,
718,
7442,
29889,
4548,
29898,
29896,
29889,
29900,
8243,
448,
29896,
29889,
29900,
847,
313,
9302,
29889,
4548,
6278,
29896,
29889,
29900,
29897,
718,
29871,
29896,
29889,
29900,
8243,
13,
4706,
313,
29900,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
7442,
29889,
1188,
29898,
29906,
511,
448,
29900,
29889,
29945,
511,
313,
29900,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
7442,
29889,
1188,
29898,
29906,
511,
29871,
29900,
29889,
29945,
511,
13,
4706,
313,
29896,
29955,
29889,
29929,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29896,
29955,
29889,
29929,
29892,
29871,
29896,
29889,
29900,
511,
8521,
29896,
29955,
29889,
29929,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29896,
29955,
29889,
29929,
29892,
448,
29896,
29889,
29900,
511,
13,
1678,
4514,
13,
1678,
903,
1688,
29918,
6758,
29918,
9435,
29898,
6758,
29892,
4251,
29897,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
6758,
29889,
2272,
29918,
29881,
6758,
29898,
29896,
29947,
29889,
29896,
29892,
29871,
29896,
29889,
29900,
511,
7442,
29889,
4548,
6278,
29896,
29947,
29889,
29896,
29897,
334,
448,
29896,
29889,
29900,
29892,
29871,
29896,
29953,
29897,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
6758,
29889,
2272,
29918,
6758,
29898,
29896,
29947,
29889,
29896,
29892,
29871,
29896,
29889,
29900,
511,
7442,
29889,
4548,
6278,
29896,
29947,
29889,
29896,
511,
29871,
29896,
29953,
29897,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
6758,
29889,
2272,
29918,
29881,
6758,
6278,
29896,
29947,
29889,
29896,
29892,
448,
29896,
29889,
29900,
511,
7442,
29889,
4548,
6278,
29896,
29947,
29889,
29896,
29897,
334,
29871,
29896,
29889,
29900,
29892,
29871,
29896,
29953,
29897,
13,
1678,
4974,
29918,
284,
3242,
29918,
11745,
29898,
6758,
29889,
2272,
29918,
6758,
6278,
29896,
29947,
29889,
29896,
29892,
29871,
29896,
29889,
29900,
511,
29871,
29896,
29947,
29889,
29896,
29892,
29871,
29896,
29953,
29897,
13,
13,
13,
1753,
1243,
29918,
6758,
29918,
26613,
1965,
29918,
6758,
7295,
13,
1678,
396,
4321,
317,
339,
1965,
29931,
2209,
13,
1678,
6410,
353,
269,
29887,
29881,
29918,
11255,
29889,
29903,
339,
1965,
29931,
2209,
580,
13,
1678,
4251,
353,
518,
13,
4706,
396,
313,
29886,
29892,
343,
29892,
3806,
29918,
6758,
29892,
3806,
29918,
29881,
6758,
29897,
13,
4706,
313,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
313,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
313,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29945,
29892,
29871,
29896,
29889,
29900,
511,
13,
4706,
313,
29900,
29889,
29945,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29896,
29906,
29945,
29892,
29871,
29896,
29889,
29945,
511,
8521,
29906,
29889,
29945,
29892,
29871,
29906,
29889,
29900,
29892,
29871,
29896,
29900,
29889,
29896,
29906,
29945,
29892,
448,
29946,
29889,
29945,
29897,
13,
1678,
4514,
13,
1678,
903,
1688,
29918,
6758,
29918,
9435,
29898,
6758,
29892,
4251,
29897,
13,
13,
13,
1753,
1243,
29918,
6758,
29918,
29882,
11234,
7295,
13,
1678,
396,
4321,
379,
11234,
13,
1678,
6410,
353,
269,
29887,
29881,
29918,
11255,
29889,
29950,
11234,
29898,
29900,
29889,
29896,
29897,
13,
1678,
4251,
353,
518,
13,
4706,
396,
313,
29886,
29892,
343,
29892,
3806,
29918,
6758,
29892,
3806,
29918,
29881,
6758,
29897,
13,
4706,
313,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
313,
29900,
29889,
29896,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29900,
29945,
29892,
29871,
29900,
29889,
29896,
511,
313,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29896,
29892,
29871,
29900,
29889,
29900,
29900,
29945,
29892,
448,
29900,
29889,
29896,
511,
13,
4706,
313,
29941,
29889,
29929,
29945,
29892,
29871,
29946,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29900,
29896,
29906,
29945,
29892,
448,
29900,
29889,
29900,
29945,
511,
313,
29945,
29889,
29900,
29892,
29871,
29906,
29889,
29900,
29892,
29871,
29900,
29889,
29906,
29929,
29945,
29892,
29871,
29900,
29889,
29896,
511,
13,
4706,
8521,
29896,
29889,
29900,
29892,
29871,
29945,
29889,
29900,
29892,
29871,
29900,
29889,
29945,
29929,
29945,
29892,
448,
29900,
29889,
29896,
29897,
13,
1678,
4514,
13,
1678,
903,
1688,
29918,
6758,
29918,
9435,
29898,
6758,
29892,
4251,
29897,
13,
13,
13,
1753,
1243,
29918,
6758,
29918,
1545,
2164,
29918,
29882,
11234,
7295,
13,
1678,
396,
313,
29886,
29892,
343,
29892,
3806,
29918,
6758,
29892,
3806,
29918,
29881,
6758,
29897,
13,
1678,
6410,
353,
269,
29887,
29881,
29918,
11255,
29889,
2111,
2164,
29950,
11234,
580,
13,
1678,
4251,
353,
518,
13,
4706,
396,
313,
29886,
29892,
343,
29892,
3806,
29918,
6758,
29892,
3806,
29918,
29881,
6758,
29897,
13,
4706,
313,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
8521,
29896,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
313,
29906,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
13,
4706,
313,
29900,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
448,
29906,
29889,
29900,
511,
8521,
29896,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29946,
29889,
29900,
29892,
448,
29946,
29889,
29900,
511,
313,
29900,
29889,
29945,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29906,
29889,
29906,
29945,
29892,
29871,
29941,
29889,
29900,
511,
13,
4706,
8521,
29906,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29947,
29892,
448,
29946,
29889,
29900,
511,
8521,
29941,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29896,
29906,
29892,
448,
29946,
29889,
29900,
29897,
13,
1678,
4514,
13,
1678,
903,
1688,
29918,
6758,
29918,
9435,
29898,
6758,
29892,
4251,
29897,
13,
13,
13,
1753,
1243,
29918,
6758,
29918,
5463,
29918,
1144,
575,
3321,
7295,
13,
1678,
396,
4321,
382,
3232,
797,
23149,
3321,
13,
1678,
6410,
353,
269,
29887,
29881,
29918,
11255,
29889,
29923,
3232,
797,
23149,
3321,
29898,
29900,
29889,
29896,
29897,
13,
1678,
4251,
353,
518,
13,
4706,
396,
313,
29886,
29892,
343,
29892,
3806,
29918,
6758,
29892,
3806,
29918,
29881,
6758,
29897,
13,
4706,
313,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
313,
29900,
29889,
29896,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
8521,
29906,
29889,
29900,
29945,
29892,
448,
29906,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
13,
4706,
313,
29941,
29889,
29900,
29945,
29892,
29871,
29941,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
313,
29906,
29889,
29906,
29892,
29871,
29906,
29889,
29900,
29892,
29871,
29900,
29889,
29896,
29892,
29871,
29896,
29889,
29900,
511,
313,
29906,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29906,
29889,
29929,
29892,
29871,
29896,
29889,
29900,
511,
13,
4706,
313,
29906,
29889,
29900,
29892,
29871,
29906,
29889,
29906,
29892,
29871,
29900,
29889,
29896,
29892,
448,
29896,
29889,
29900,
511,
8521,
29906,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29906,
29889,
29929,
29892,
448,
29896,
29889,
29900,
29897,
13,
1678,
4514,
13,
1678,
903,
1688,
29918,
6758,
29918,
9435,
29898,
6758,
29892,
4251,
29897,
13,
13,
13,
1753,
1243,
29918,
6758,
29918,
26613,
1965,
29918,
5463,
29918,
1144,
575,
3321,
7295,
13,
1678,
396,
4321,
317,
339,
1965,
29923,
3232,
797,
23149,
3321,
13,
1678,
6410,
353,
269,
29887,
29881,
29918,
11255,
29889,
29903,
339,
1965,
29923,
3232,
797,
23149,
3321,
29898,
29900,
29889,
29896,
29897,
13,
1678,
4251,
353,
518,
13,
4706,
396,
313,
29886,
29892,
343,
29892,
3806,
29918,
6758,
29892,
3806,
29918,
29881,
6758,
29897,
13,
4706,
313,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
313,
29900,
29889,
29896,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
8521,
29906,
29889,
29900,
29945,
29892,
448,
29906,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
13,
4706,
313,
29941,
29889,
29900,
29945,
29892,
29871,
29941,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
511,
313,
29906,
29889,
29906,
29892,
29871,
29906,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
29896,
29892,
29871,
29900,
29889,
29906,
511,
313,
29906,
29889,
29900,
29892,
448,
29896,
29889,
29900,
29892,
29871,
29947,
29889,
29946,
29896,
29892,
29871,
29945,
29889,
29947,
511,
13,
4706,
313,
29906,
29889,
29900,
29892,
29871,
29906,
29889,
29906,
29892,
29871,
29900,
29889,
29900,
29896,
29892,
448,
29900,
29889,
29906,
511,
8521,
29906,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
29871,
29947,
29889,
29946,
29896,
29892,
448,
29945,
29889,
29947,
29897,
13,
1678,
4514,
13,
1678,
903,
1688,
29918,
6758,
29918,
9435,
29898,
6758,
29892,
4251,
29897,
13,
13,
13,
1753,
1243,
29918,
9910,
29918,
7097,
29918,
9910,
29918,
1990,
29918,
392,
29918,
799,
368,
29918,
7864,
3262,
7295,
13,
1678,
396,
910,
338,
263,
1661,
29899,
276,
11476,
1243,
363,
263,
4319,
14881,
1546,
13,
1678,
396,
4688,
25480,
7463,
5352,
322,
3244,
29899,
6707,
8943,
1608,
29889,
13,
1678,
1067,
29888,
353,
317,
29954,
29928,
2385,
3709,
29898,
2312,
29922,
29896,
29872,
29899,
29941,
29892,
304,
29880,
29922,
29896,
29872,
29899,
29941,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
13,
462,
4706,
4688,
29918,
7864,
3262,
29922,
5574,
29892,
302,
29918,
1524,
29918,
1217,
29918,
3167,
29922,
29896,
29900,
29900,
29892,
13,
462,
4706,
4036,
29918,
3859,
29922,
29900,
29892,
302,
29918,
9057,
29879,
29922,
29906,
29897,
13,
1678,
1067,
29888,
29889,
9202,
29898,
381,
275,
29889,
1272,
29892,
3805,
275,
29889,
5182,
29897,
13,
1678,
4974,
1067,
29888,
29889,
29876,
29918,
1524,
29918,
1405,
1067,
29888,
29889,
29876,
29918,
1524,
29918,
1217,
29918,
3167,
13,
1678,
4974,
1067,
29888,
29889,
29876,
29918,
1524,
29918,
529,
1067,
29888,
29889,
29876,
29918,
1524,
29918,
1217,
29918,
3167,
718,
29871,
29906,
29900,
13,
1678,
4974,
1067,
29888,
29889,
13628,
29898,
381,
275,
29889,
1272,
29892,
3805,
275,
29889,
5182,
29897,
1405,
29871,
29900,
29889,
29947,
13,
13,
13,
1753,
1243,
29918,
9910,
29918,
3221,
29918,
7720,
4478,
29918,
392,
29918,
799,
368,
29918,
7864,
3262,
7295,
13,
1678,
396,
910,
338,
263,
1661,
29899,
276,
11476,
1243,
363,
263,
4319,
14881,
1546,
13,
1678,
396,
4688,
25480,
7463,
5352,
322,
1889,
29899,
6707,
2473,
29899,
3221,
13,
1678,
396,
8943,
1608,
29889,
13,
1678,
1828,
29918,
7720,
353,
426,
13,
4706,
525,
2312,
2396,
7442,
29889,
1188,
3493,
6278,
29946,
29892,
29871,
29946,
29892,
29871,
29929,
511,
13,
4706,
525,
29876,
29918,
1524,
29918,
1217,
29918,
3167,
2396,
518,
29945,
29892,
29871,
29896,
29900,
29892,
29871,
29945,
29900,
1402,
13,
1678,
500,
13,
13,
1678,
1067,
29888,
353,
317,
29954,
29928,
2385,
3709,
29898,
25027,
29922,
29896,
29872,
29899,
29906,
29892,
4236,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
4688,
29918,
7864,
3262,
29922,
5574,
29892,
13,
462,
4706,
4036,
29918,
3859,
29922,
29900,
29897,
13,
1678,
2740,
353,
16968,
1891,
7974,
15633,
29898,
695,
29888,
29892,
1828,
29918,
7720,
29892,
302,
29918,
1524,
29922,
29941,
29892,
302,
29918,
9057,
29879,
29922,
29906,
29892,
13,
462,
18884,
4036,
29918,
3859,
29922,
29900,
29897,
13,
1678,
2740,
29889,
9202,
29898,
381,
275,
29889,
1272,
29892,
3805,
275,
29889,
5182,
29897,
13,
1678,
4974,
2740,
29889,
13318,
29918,
13628,
29918,
1405,
29871,
29900,
29889,
29947,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
703,
27852,
613,
13,
462,
308,
6796,
417,
3459,
613,
376,
18056,
307,
985,
292,
613,
376,
7097,
292,
20068,
13,
1753,
1243,
29918,
26016,
29928,
2385,
3709,
29918,
9202,
29918,
1454,
29918,
497,
29918,
1627,
1975,
29898,
27852,
1125,
13,
1678,
396,
910,
338,
263,
1661,
29899,
276,
11476,
25158,
1243,
29889,
512,
278,
2473,
29899,
1990,
1206,
29892,
13,
1678,
396,
317,
29954,
29928,
2385,
3709,
29889,
9202,
23994,
1269,
770,
297,
263,
697,
29899,
874,
375,
29899,
497,
13460,
773,
13,
1678,
396,
4982,
1982,
29889,
2177,
6553,
29889,
29871,
2398,
29892,
1269,
438,
29894,
29909,
4331,
11217,
278,
1302,
1389,
29918,
5352,
310,
13,
1678,
396,
278,
4844,
1061,
297,
29899,
6689,
29889,
2422,
635,
29892,
317,
29954,
29928,
2385,
3709,
5717,
1459,
6553,
773,
13,
1678,
396,
1996,
2433,
12366,
6954,
4286,
910,
1243,
3732,
1854,
317,
29954,
29928,
2385,
3709,
29889,
9202,
1736,
13,
1678,
396,
5718,
2705,
1584,
746,
278,
1404,
19514,
363,
263,
14998,
393,
947,
451,
3867,
13,
1678,
396,
7258,
6954,
29505,
29889,
13,
13,
1678,
396,
1334,
4340,
1243,
263,
1206,
988,
2626,
20698,
723,
505,
1063,
1304,
565,
13,
1678,
396,
317,
29954,
29928,
2385,
3709,
29889,
9202,
471,
2000,
515,
263,
25194,
29891,
470,
6674,
307,
985,
292,
14998,
29889,
512,
13,
1678,
396,
445,
2702,
1206,
29892,
297,
29899,
6689,
21733,
310,
1067,
29888,
29889,
1111,
1389,
29918,
723,
505,
8581,
13,
1678,
396,
263,
10768,
362,
12570,
746,
1811,
304,
2436,
297,
263,
20623,
3370,
20545,
13,
1678,
396,
6835,
29889,
13,
13,
1678,
565,
313,
5510,
29918,
3259,
29898,
9057,
1982,
17255,
3259,
1649,
29897,
529,
6088,
29918,
3259,
877,
29900,
29889,
29896,
29906,
1495,
13,
9651,
322,
14998,
1275,
525,
417,
3459,
29374,
13,
4706,
11451,
1688,
29889,
11014,
877,
417,
3459,
14998,
947,
451,
1863,
297,
4982,
1982,
529,
29900,
29889,
29896,
29906,
1495,
13,
13,
1678,
4036,
29918,
3859,
353,
7442,
29889,
8172,
29889,
17875,
2792,
29898,
29946,
29906,
29897,
13,
13,
1678,
396,
6204,
263,
12965,
1108,
411,
29871,
29945,
29900,
29900,
29900,
29900,
5680,
322,
29871,
29906,
29900,
4413,
29889,
5293,
13,
1678,
396,
25194,
29891,
470,
6674,
307,
985,
292,
445,
1207,
278,
1067,
29888,
29889,
1111,
1389,
29918,
13461,
278,
16897,
13,
1678,
396,
2038,
607,
2626,
1958,
292,
338,
1304,
297,
4982,
1982,
322,
25194,
29891,
313,
29896,
9486,
408,
310,
29871,
29906,
29900,
29896,
29947,
29914,
29896,
29896,
29914,
29896,
467,
13,
1678,
1060,
353,
805,
29889,
8172,
29898,
29945,
29900,
29900,
29892,
29871,
29906,
29900,
29900,
29900,
29892,
9027,
29922,
29900,
29889,
29900,
29906,
29892,
3402,
2433,
2395,
29878,
742,
13,
462,
29871,
4036,
29918,
3859,
29922,
8172,
29918,
3859,
29897,
13,
1678,
343,
353,
4036,
29918,
3859,
29889,
16957,
29898,
29906,
29900,
29892,
29871,
29945,
29900,
29900,
29897,
13,
13,
1678,
396,
14893,
491,
28221,
263,
317,
29954,
29928,
770,
3709,
8617,
9247,
13,
1678,
1067,
29888,
29918,
6831,
2556,
353,
317,
29954,
29928,
2385,
3709,
29898,
3317,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
302,
29918,
9057,
29879,
29922,
29896,
29892,
13,
462,
462,
259,
4036,
29918,
3859,
29922,
29946,
29906,
29897,
13,
1678,
1067,
29888,
29918,
6831,
2556,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
13,
1678,
396,
383,
277,
263,
317,
29954,
29928,
2385,
3709,
773,
278,
6790,
14998,
29892,
322,
1207,
1854,
278,
13,
1678,
396,
16127,
526,
5186,
304,
1906,
7625,
773,
263,
8617,
2556,
6216,
13,
1678,
1067,
29888,
29918,
23482,
353,
317,
29954,
29928,
2385,
3709,
29898,
3317,
29918,
1524,
29922,
29896,
29900,
29900,
29900,
29892,
302,
29918,
9057,
29879,
29922,
29946,
29892,
13,
462,
462,
4036,
29918,
3859,
29922,
29946,
29906,
29897,
13,
1678,
411,
4982,
1982,
29889,
23482,
29918,
27852,
29898,
27852,
29922,
27852,
1125,
13,
4706,
1067,
29888,
29918,
23482,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
1678,
4974,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
695,
29888,
29918,
6831,
2556,
29889,
1111,
1389,
3383,
1067,
29888,
29918,
23482,
29889,
1111,
1389,
19925,
13,
2
] |
stars.py | hezsystemscorporation/py-turtle-graphs | 0 | 1602624 | <reponame>hezsystemscorporation/py-turtle-graphs
from turtle import *
from random import random,randint
screen = Screen()
width ,height = 800,600
screen.setup(width,height)
screen.bgcolor("black")
screen.mode("logo")
screen.delay(0)#这里要设为0,否则很卡
t = Turtle(visible = False,shape='circle')
t.pencolor("white")
t.fillcolor("white")
t.penup()
t.setheading(-90)
t.goto(width/2,randint(-height/2,height/2))
stars = []
for i in range(200):
star = t.clone()
s =random() /3
star.shapesize(s,s)
star.speed(int(s*10))
star.setx(width/2 + randint(1,width))
star.sety( randint(-height/2,height/2))
star.showturtle()
stars.append(star)
while True:
for star in stars:
star.setx(star.xcor() - 3 * star.speed())
if star.xcor()<-width/2:
star.hideturtle()
star.setx(width/2 + randint(1,width))
star.sety( randint(-height/2,height/2))
star.showturtle()
| [
1,
529,
276,
1112,
420,
29958,
22923,
5205,
1557,
272,
1971,
362,
29914,
2272,
29899,
29873,
4227,
280,
29899,
4262,
29879,
13,
3166,
260,
4227,
280,
1053,
334,
30004,
13,
3166,
4036,
1053,
4036,
29892,
9502,
524,
30004,
13,
10525,
353,
22666,
26471,
13,
2103,
1919,
3545,
353,
29871,
29947,
29900,
29900,
29892,
29953,
29900,
29900,
30004,
13,
10525,
29889,
14669,
29898,
2103,
29892,
3545,
8443,
13,
10525,
29889,
16264,
2780,
703,
8517,
1159,
30004,
13,
10525,
29889,
8513,
703,
14569,
1159,
30004,
13,
10525,
29889,
18829,
29898,
29900,
29897,
29937,
30810,
30755,
30698,
30872,
30573,
29900,
30214,
31191,
31403,
232,
193,
139,
232,
144,
164,
30004,
13,
29873,
353,
323,
4227,
280,
29898,
12872,
353,
7700,
29892,
12181,
2433,
16622,
1495,
30004,
13,
29873,
29889,
2238,
2780,
703,
10921,
1159,
30004,
13,
29873,
29889,
5589,
2780,
703,
10921,
1159,
30004,
13,
29873,
29889,
2238,
786,
26471,
13,
29873,
29889,
842,
2813,
292,
6278,
29929,
29900,
8443,
13,
29873,
29889,
27102,
29898,
2103,
29914,
29906,
29892,
9502,
524,
6278,
3545,
29914,
29906,
29892,
3545,
29914,
29906,
876,
30004,
13,
303,
1503,
353,
5159,
30004,
13,
1454,
474,
297,
3464,
29898,
29906,
29900,
29900,
1125,
30004,
13,
1678,
5810,
353,
260,
29889,
16513,
26471,
13,
1678,
269,
353,
8172,
580,
847,
29941,
30004,
13,
1678,
5810,
29889,
845,
11603,
675,
29898,
29879,
29892,
29879,
8443,
13,
1678,
5810,
29889,
19322,
29898,
524,
29898,
29879,
29930,
29896,
29900,
876,
30004,
13,
1678,
5810,
29889,
842,
29916,
29898,
2103,
29914,
29906,
718,
20088,
524,
29898,
29896,
29892,
2103,
876,
30004,
13,
1678,
5810,
29889,
842,
29891,
29898,
20088,
524,
6278,
3545,
29914,
29906,
29892,
3545,
29914,
29906,
876,
30004,
13,
1678,
5810,
29889,
4294,
29873,
4227,
280,
26471,
13,
1678,
10819,
29889,
4397,
29898,
8508,
8443,
13,
8000,
5852,
29901,
30004,
13,
1678,
363,
5810,
297,
10819,
29901,
30004,
13,
4706,
5810,
29889,
842,
29916,
29898,
8508,
29889,
29916,
2616,
580,
448,
29871,
29941,
334,
5810,
29889,
19322,
3101,
30004,
13,
4706,
565,
5810,
29889,
29916,
2616,
580,
16406,
2103,
29914,
29906,
29901,
30004,
13,
9651,
5810,
29889,
29882,
333,
300,
4227,
280,
26471,
13,
9651,
5810,
29889,
842,
29916,
29898,
2103,
29914,
29906,
718,
20088,
524,
29898,
29896,
29892,
2103,
876,
30004,
13,
9651,
5810,
29889,
842,
29891,
29898,
20088,
524,
6278,
3545,
29914,
29906,
29892,
3545,
29914,
29906,
876,
30004,
13,
9651,
5810,
29889,
4294,
29873,
4227,
280,
26471,
13,
2
] |
docs/assets/update_formats.py | Kronuz/Xapiand | 370 | 127720 | <filename>docs/assets/update_formats.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import sys
import json
import msgpack
from collections import OrderedDict
def main():
if len(sys.argv) != 2:
print("usage: {} <file.json>".format(sys.argv[0]))
sys.exit(64)
name, ext = os.path.splitext(sys.argv[1])
json_content = open(name + '.json')
msgpack_content = open(name + '.msgpack', 'wb')
ndjson_content = open(name + '.ndjson', 'w')
http_content = open(name + '.http', 'w')
content = json.load(json_content, object_pairs_hook=OrderedDict)
for i, a in enumerate(content, 1):
msgpack_content.write(msgpack.dumps(a))
aj = json.dumps(a)
print(aj, file=ndjson_content)
print("""PUT /bank/{} HTTP/1.1
Host: localhost:8880
Content-Type: application/json
Content-Length: {}
{}""".format(i, len(aj), aj), file=http_content)
if __name__ == '__main__':
main()
| [
1,
529,
9507,
29958,
2640,
29914,
16596,
29914,
5504,
29918,
689,
1446,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
4390,
13,
5215,
10191,
4058,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
565,
7431,
29898,
9675,
29889,
19218,
29897,
2804,
29871,
29906,
29901,
13,
4706,
1596,
703,
21125,
29901,
6571,
529,
1445,
29889,
3126,
29958,
1642,
4830,
29898,
9675,
29889,
19218,
29961,
29900,
12622,
13,
4706,
10876,
29889,
13322,
29898,
29953,
29946,
29897,
13,
1678,
1024,
29892,
1294,
353,
2897,
29889,
2084,
29889,
23579,
568,
486,
29898,
9675,
29889,
19218,
29961,
29896,
2314,
13,
1678,
4390,
29918,
3051,
353,
1722,
29898,
978,
718,
15300,
3126,
1495,
13,
1678,
10191,
4058,
29918,
3051,
353,
1722,
29898,
978,
718,
15300,
7645,
4058,
742,
525,
29893,
29890,
1495,
13,
268,
299,
3126,
29918,
3051,
353,
1722,
29898,
978,
718,
15300,
299,
3126,
742,
525,
29893,
1495,
13,
1678,
1732,
29918,
3051,
353,
1722,
29898,
978,
718,
15300,
1124,
742,
525,
29893,
1495,
13,
1678,
2793,
353,
4390,
29889,
1359,
29898,
3126,
29918,
3051,
29892,
1203,
29918,
29886,
7121,
29918,
20849,
29922,
7514,
287,
21533,
29897,
13,
1678,
363,
474,
29892,
263,
297,
26985,
29898,
3051,
29892,
29871,
29896,
1125,
13,
4706,
10191,
4058,
29918,
3051,
29889,
3539,
29898,
7645,
4058,
29889,
29881,
17204,
29898,
29874,
876,
13,
4706,
13612,
353,
4390,
29889,
29881,
17204,
29898,
29874,
29897,
13,
4706,
1596,
29898,
1175,
29892,
934,
29922,
299,
3126,
29918,
3051,
29897,
13,
4706,
1596,
703,
15945,
12336,
847,
9157,
29914,
8875,
7331,
29914,
29896,
29889,
29896,
13,
8514,
29901,
15683,
29901,
29947,
29947,
29947,
29900,
13,
3916,
29899,
1542,
29901,
2280,
29914,
3126,
13,
3916,
29899,
6513,
29901,
6571,
13,
13,
29912,
5038,
29908,
1642,
4830,
29898,
29875,
29892,
7431,
29898,
1175,
511,
13612,
511,
934,
29922,
1124,
29918,
3051,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
13,
2
] |
kAFL-Fuzzer/fuzzer/technique/interesting_values.py | SafeBreach-Labs/hAFL2 | 102 | 188784 | <reponame>SafeBreach-Labs/hAFL2<filename>kAFL-Fuzzer/fuzzer/technique/interesting_values.py
# Copyright (C) 2017-2019 <NAME>, <NAME>, <NAME>
# Copyright (C) 2019-2020 Intel Corporation
#
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
AFL-style 'interesting values' mutations (deterministic stage).
"""
from fuzzer.technique.helper import *
from binascii import hexlify
def mutate_seq_8_bit_interesting(data, func, skip_null=False, effector_map=None, verbose=False):
label="afl_int_1"
for i in range(0, len(data)):
if effector_map:
if not effector_map[i]:
continue
orig = data[i]
if skip_null and orig == 0:
continue
for j in range(len(interesting_8_Bit)):
value = in_range_8(interesting_8_Bit[j])
if (is_not_bitflip(orig ^ value) and
is_not_arithmetic(orig, value, 1)):
data[i] = value
func(data, label=label)
data[i] = orig
def mutate_seq_16_bit_interesting(data, func, skip_null=False, effector_map=None, arith_max=AFL_ARITH_MAX, verbose=False):
label="afl_int_2"
for i in range(len(data) - 1):
if effector_map:
if not (effector_map[i] or effector_map[i + 1]):
continue
orig = data[i:i+2]
oval = struct.unpack('<H', orig)[0]
if skip_null and oval == 0:
continue
for j in range(len(interesting_16_Bit)):
num1 = in_range_16(interesting_16_Bit[j])
num2 = swap_16(num1)
if (is_not_bitflip(oval ^ num1) and
is_not_arithmetic(oval, num1, 2, arith_max=arith_max) and
is_not_interesting(oval, num1, 2, 0)):
data[i:i+2] = struct.pack("<H", num1)
func(data, label=label)
if (num1 != num2 and \
is_not_bitflip(oval ^ num2) and \
is_not_arithmetic(oval, num2, 2, arith_max=arith_max) and \
is_not_interesting(oval, num2, 2, 1)):
data[i:i+2] = struct.pack(">H", num1)
func(data, label=label)
data[i:i+2] = orig
def mutate_seq_32_bit_interesting(data, func, skip_null=False, effector_map=None, arith_max=AFL_ARITH_MAX, verbose=False):
label="afl_int_4"
for i in range(len(data) - 3):
if effector_map:
if effector_map[i:i+4] == b'\x00\x00\x00\x00':
continue
orig = data[i:i+4]
oval = struct.unpack('<I', orig)[0]
if skip_null and oval == 0:
continue
for j in range(len(interesting_32_Bit)):
num1 = in_range_32(interesting_32_Bit[j])
num2 = swap_32(num1)
if (is_not_bitflip(oval ^ num1) and \
is_not_arithmetic(oval, num1, 4, arith_max=arith_max) and \
is_not_interesting(oval, num1, 4, 0)):
data[i:i+4] = struct.pack("<I", num1)
func(data, label=label)
if (num1 != num2 and is_not_bitflip(oval ^ num2) and
is_not_arithmetic(oval, num2, 4, arith_max=arith_max) and
is_not_interesting(oval, num2, 4, 1)):
data[i:i+4] = struct.pack("<I", num2)
func(data, label=label)
data[i:i+4] = orig
| [
1,
529,
276,
1112,
420,
29958,
17618,
1725,
20130,
496,
29899,
29931,
6897,
29914,
29882,
5098,
29931,
29906,
29966,
9507,
29958,
29895,
5098,
29931,
29899,
29943,
3365,
3298,
29914,
29888,
3365,
3298,
29914,
371,
6387,
802,
29914,
1639,
342,
292,
29918,
5975,
29889,
2272,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29955,
29899,
29906,
29900,
29896,
29929,
529,
5813,
10202,
529,
5813,
10202,
529,
5813,
29958,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29929,
29899,
29906,
29900,
29906,
29900,
18555,
15025,
13,
29937,
13,
29937,
10937,
29928,
29990,
29899,
29931,
293,
1947,
29899,
12889,
29901,
16369,
7390,
29899,
29941,
29889,
29900,
29899,
272,
29899,
29880,
1008,
13,
13,
15945,
29908,
13,
5098,
29931,
29899,
3293,
525,
1639,
342,
292,
1819,
29915,
5478,
800,
313,
4801,
837,
262,
4695,
7408,
467,
13,
15945,
29908,
13,
13,
3166,
285,
3365,
3298,
29889,
371,
6387,
802,
29889,
20907,
1053,
334,
13,
3166,
9016,
294,
18869,
1053,
15090,
29880,
1598,
13,
13,
13,
1753,
5478,
403,
29918,
11762,
29918,
29947,
29918,
2966,
29918,
1639,
342,
292,
29898,
1272,
29892,
3653,
29892,
14383,
29918,
4304,
29922,
8824,
29892,
2779,
272,
29918,
1958,
29922,
8516,
29892,
26952,
29922,
8824,
1125,
13,
13,
1678,
3858,
543,
29874,
1579,
29918,
524,
29918,
29896,
29908,
13,
1678,
363,
474,
297,
3464,
29898,
29900,
29892,
7431,
29898,
1272,
22164,
13,
4706,
565,
2779,
272,
29918,
1958,
29901,
13,
9651,
565,
451,
2779,
272,
29918,
1958,
29961,
29875,
5387,
13,
18884,
6773,
13,
13,
4706,
1677,
353,
848,
29961,
29875,
29962,
13,
13,
4706,
565,
14383,
29918,
4304,
322,
1677,
1275,
29871,
29900,
29901,
13,
9651,
6773,
13,
13,
4706,
363,
432,
297,
3464,
29898,
2435,
29898,
1639,
342,
292,
29918,
29947,
29918,
21591,
22164,
13,
9651,
995,
353,
297,
29918,
3881,
29918,
29947,
29898,
1639,
342,
292,
29918,
29947,
29918,
21591,
29961,
29926,
2314,
13,
9651,
565,
313,
275,
29918,
1333,
29918,
2966,
29888,
3466,
29898,
12683,
6228,
995,
29897,
322,
13,
18884,
338,
29918,
1333,
29918,
279,
18542,
29898,
12683,
29892,
995,
29892,
29871,
29896,
22164,
13,
462,
1678,
848,
29961,
29875,
29962,
353,
995,
13,
462,
1678,
3653,
29898,
1272,
29892,
3858,
29922,
1643,
29897,
13,
13,
4706,
848,
29961,
29875,
29962,
353,
1677,
13,
13,
13,
1753,
5478,
403,
29918,
11762,
29918,
29896,
29953,
29918,
2966,
29918,
1639,
342,
292,
29898,
1272,
29892,
3653,
29892,
14383,
29918,
4304,
29922,
8824,
29892,
2779,
272,
29918,
1958,
29922,
8516,
29892,
564,
389,
29918,
3317,
29922,
5098,
29931,
29918,
1718,
13054,
29918,
12648,
29892,
26952,
29922,
8824,
1125,
13,
13,
1678,
3858,
543,
29874,
1579,
29918,
524,
29918,
29906,
29908,
13,
1678,
363,
474,
297,
3464,
29898,
2435,
29898,
1272,
29897,
448,
29871,
29896,
1125,
13,
4706,
565,
2779,
272,
29918,
1958,
29901,
13,
9651,
565,
451,
313,
12352,
3019,
29918,
1958,
29961,
29875,
29962,
470,
2779,
272,
29918,
1958,
29961,
29875,
718,
29871,
29896,
29962,
1125,
13,
18884,
6773,
13,
13,
4706,
1677,
353,
848,
29961,
29875,
29901,
29875,
29974,
29906,
29962,
13,
4706,
288,
791,
353,
2281,
29889,
348,
4058,
877,
29966,
29950,
742,
1677,
9601,
29900,
29962,
13,
13,
4706,
565,
14383,
29918,
4304,
322,
288,
791,
1275,
29871,
29900,
29901,
13,
9651,
6773,
13,
13,
4706,
363,
432,
297,
3464,
29898,
2435,
29898,
1639,
342,
292,
29918,
29896,
29953,
29918,
21591,
22164,
13,
9651,
954,
29896,
353,
297,
29918,
3881,
29918,
29896,
29953,
29898,
1639,
342,
292,
29918,
29896,
29953,
29918,
21591,
29961,
29926,
2314,
13,
9651,
954,
29906,
353,
17945,
29918,
29896,
29953,
29898,
1949,
29896,
29897,
13,
13,
9651,
565,
313,
275,
29918,
1333,
29918,
2966,
29888,
3466,
29898,
10611,
6228,
954,
29896,
29897,
322,
13,
18884,
338,
29918,
1333,
29918,
279,
18542,
29898,
10611,
29892,
954,
29896,
29892,
29871,
29906,
29892,
564,
389,
29918,
3317,
29922,
23830,
29918,
3317,
29897,
322,
13,
18884,
338,
29918,
1333,
29918,
1639,
342,
292,
29898,
10611,
29892,
954,
29896,
29892,
29871,
29906,
29892,
29871,
29900,
22164,
13,
462,
1678,
848,
29961,
29875,
29901,
29875,
29974,
29906,
29962,
353,
2281,
29889,
4058,
28945,
29950,
613,
954,
29896,
29897,
13,
462,
1678,
3653,
29898,
1272,
29892,
3858,
29922,
1643,
29897,
13,
13,
9651,
565,
313,
1949,
29896,
2804,
954,
29906,
322,
320,
13,
18884,
338,
29918,
1333,
29918,
2966,
29888,
3466,
29898,
10611,
6228,
954,
29906,
29897,
322,
320,
13,
18884,
338,
29918,
1333,
29918,
279,
18542,
29898,
10611,
29892,
954,
29906,
29892,
29871,
29906,
29892,
564,
389,
29918,
3317,
29922,
23830,
29918,
3317,
29897,
322,
320,
13,
18884,
338,
29918,
1333,
29918,
1639,
342,
292,
29898,
10611,
29892,
954,
29906,
29892,
29871,
29906,
29892,
29871,
29896,
22164,
13,
462,
1678,
848,
29961,
29875,
29901,
29875,
29974,
29906,
29962,
353,
2281,
29889,
4058,
703,
29958,
29950,
613,
954,
29896,
29897,
13,
462,
1678,
3653,
29898,
1272,
29892,
3858,
29922,
1643,
29897,
13,
13,
4706,
848,
29961,
29875,
29901,
29875,
29974,
29906,
29962,
353,
1677,
13,
13,
13,
1753,
5478,
403,
29918,
11762,
29918,
29941,
29906,
29918,
2966,
29918,
1639,
342,
292,
29898,
1272,
29892,
3653,
29892,
14383,
29918,
4304,
29922,
8824,
29892,
2779,
272,
29918,
1958,
29922,
8516,
29892,
564,
389,
29918,
3317,
29922,
5098,
29931,
29918,
1718,
13054,
29918,
12648,
29892,
26952,
29922,
8824,
1125,
13,
13,
1678,
3858,
543,
29874,
1579,
29918,
524,
29918,
29946,
29908,
13,
1678,
363,
474,
297,
3464,
29898,
2435,
29898,
1272,
29897,
448,
29871,
29941,
1125,
13,
4706,
565,
2779,
272,
29918,
1958,
29901,
13,
9651,
565,
2779,
272,
29918,
1958,
29961,
29875,
29901,
29875,
29974,
29946,
29962,
1275,
289,
12764,
29916,
29900,
29900,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29900,
2396,
13,
18884,
6773,
13,
13,
4706,
1677,
353,
848,
29961,
29875,
29901,
29875,
29974,
29946,
29962,
13,
4706,
288,
791,
353,
2281,
29889,
348,
4058,
877,
29966,
29902,
742,
1677,
9601,
29900,
29962,
13,
13,
4706,
565,
14383,
29918,
4304,
322,
288,
791,
1275,
29871,
29900,
29901,
13,
9651,
6773,
13,
13,
4706,
363,
432,
297,
3464,
29898,
2435,
29898,
1639,
342,
292,
29918,
29941,
29906,
29918,
21591,
22164,
13,
13,
9651,
954,
29896,
353,
297,
29918,
3881,
29918,
29941,
29906,
29898,
1639,
342,
292,
29918,
29941,
29906,
29918,
21591,
29961,
29926,
2314,
13,
9651,
954,
29906,
353,
17945,
29918,
29941,
29906,
29898,
1949,
29896,
29897,
13,
13,
9651,
565,
313,
275,
29918,
1333,
29918,
2966,
29888,
3466,
29898,
10611,
6228,
954,
29896,
29897,
322,
320,
13,
18884,
338,
29918,
1333,
29918,
279,
18542,
29898,
10611,
29892,
954,
29896,
29892,
29871,
29946,
29892,
564,
389,
29918,
3317,
29922,
23830,
29918,
3317,
29897,
322,
320,
13,
18884,
338,
29918,
1333,
29918,
1639,
342,
292,
29898,
10611,
29892,
954,
29896,
29892,
29871,
29946,
29892,
29871,
29900,
22164,
13,
462,
1678,
848,
29961,
29875,
29901,
29875,
29974,
29946,
29962,
353,
2281,
29889,
4058,
28945,
29902,
613,
954,
29896,
29897,
13,
462,
1678,
3653,
29898,
1272,
29892,
3858,
29922,
1643,
29897,
13,
13,
9651,
565,
313,
1949,
29896,
2804,
954,
29906,
322,
338,
29918,
1333,
29918,
2966,
29888,
3466,
29898,
10611,
6228,
954,
29906,
29897,
322,
13,
18884,
338,
29918,
1333,
29918,
279,
18542,
29898,
10611,
29892,
954,
29906,
29892,
29871,
29946,
29892,
564,
389,
29918,
3317,
29922,
23830,
29918,
3317,
29897,
322,
13,
18884,
338,
29918,
1333,
29918,
1639,
342,
292,
29898,
10611,
29892,
954,
29906,
29892,
29871,
29946,
29892,
29871,
29896,
22164,
13,
462,
1678,
848,
29961,
29875,
29901,
29875,
29974,
29946,
29962,
353,
2281,
29889,
4058,
28945,
29902,
613,
954,
29906,
29897,
13,
462,
1678,
3653,
29898,
1272,
29892,
3858,
29922,
1643,
29897,
13,
13,
4706,
848,
29961,
29875,
29901,
29875,
29974,
29946,
29962,
353,
1677,
13,
2
] |
tests/unit/test_convert_from_notebook.py | peopledoc/ml-versioning-tools | 36 | 1616448 | <filename>tests/unit/test_convert_from_notebook.py
from os.path import realpath, dirname, join, exists
import pytest
from pytest import fixture
from mlvtools.conf.conf import MlVToolConf
from mlvtools.docstring_helpers.parse import parse_docstring
from mlvtools.exception import MlVToolException
from mlvtools.ipynb_to_python import export_to_script, get_param_as_python_method_format, is_no_effect, \
get_data_from_docstring, get_arguments_from_docstring, get_arguments_as_param, get_docstring_data, \
DocstringWrapper, is_trailing_cell, get_formatted_cells, filter_trailing_cells
from tests.helpers.utils import gen_notebook, to_notebook_code_cell
CURRENT_DIR = realpath(dirname(__file__))
@fixture
def conf():
return MlVToolConf(top_directory='./')
def test_should_convert_notebook_to_python_script(conf, work_dir):
"""
Test Notebook is converted to python script
"""
output_path = join(work_dir, 'out.py')
notebook_path = gen_notebook(cells=[('code', 'print(\'poney\')')], tmp_dir=work_dir,
file_name='test.ipynb', docstring=None)
export_to_script(input_notebook_path=notebook_path, output_path=output_path, conf=conf)
assert exists(output_path)
with open(output_path, 'r') as fd:
content = fd.read()
# Check main method is created
assert 'def mlvtools_test():' in content
@pytest.mark.parametrize('header', (None, '#Big Title'))
def test_should_detect_parameters(header, conf, work_dir):
"""
Test Notebook is converted to parameterized python script,
parameter cell in Notebook is detected and well handled.
The parameter cell must be the first code cell. It should be detected
if there is a markdown header or not.
"""
output_path = join(work_dir, 'out.py')
docstring_cell = '''
# Parameters
"""
:param str subset: The kind of subset to generate.
:param int rate: The rate of I don't know what
:param param3:
"""
subset = 'train'
toto = 12
'''
notebook_path = gen_notebook(cells=[('code', 'print(\'poney\')')], tmp_dir=work_dir,
file_name='test.ipynb',
docstring=docstring_cell,
header=header)
export_to_script(input_notebook_path=notebook_path, output_path=output_path, conf=conf)
assert exists(output_path)
with open(output_path, 'r') as fd:
content = fd.read()
# Check main method is created
assert 'def mlvtools_test(subset, rate, param3):' in content
def test_should_raise_if_invalid_docstring(conf, work_dir):
"""
Test an MlVTool exception is raised if docstring is invalid
"""
output_path = join(work_dir, 'out.py')
docstring_cell = '''
# Parameters
"""
:param param3
"""
subset = 'train'
toto = 12
'''
notebook_path = gen_notebook(cells=[('code', 'print(\'poney\')')], tmp_dir=work_dir,
file_name='test.ipynb',
docstring=docstring_cell)
with pytest.raises(MlVToolException):
export_to_script(input_notebook_path=notebook_path, output_path=output_path, conf=conf)
def test_should_raise_if_more_than_one_docstring_in_first_cell(conf, work_dir):
"""
Test multi docstring in the parameter cell is detected
"""
output_path = join(work_dir, 'out.py')
docstring_cell = '''
# Parameters
"""
:param param3: Plop
"""
"""
:param param6: AA
"""
subset = 'train'
toto = 12
'''
notebook_path = gen_notebook(cells=[('code', 'print(\'poney\')')], tmp_dir=work_dir,
file_name='test.ipynb',
docstring=docstring_cell)
with pytest.raises(MlVToolException):
export_to_script(input_notebook_path=notebook_path, output_path=output_path, conf=conf)
def test_should_be_resilient_to_empty_notebook(conf, work_dir):
"""
Test templating is resilient to empty Notebook, no exception.
"""
output_path = join(work_dir, 'out.py')
notebook_path = gen_notebook(cells=[('code', 'print(\'poney\')')], tmp_dir=work_dir,
file_name='test.ipynb', docstring=None)
export_to_script(input_notebook_path=notebook_path, output_path=output_path, conf=conf)
assert exists(output_path)
def test_should_extract_parameters_as_python_params():
"""
Test parameters are extracted from docstring and converted to python format
"""
docstring_str = '''"""
:param str param_one: Param1 description
:param int param2:
:param param3: Param3 description
:param param4:
"""'''
parameters = get_param_as_python_method_format(parse_docstring(docstring_str))
assert parameters == 'param_one, param2, param3, param4'
def test_should_extract_parameters_as_python_command_line_arguments():
"""
Test parameters are extracted from docstring and converted to python command line argument
"""
docstring_str = '''"""
:param str param_one: Param1 description
"""'''
docstring, _ = get_docstring_data(docstring_str)
arguments = get_arguments_from_docstring(docstring)
assert arguments == [
{
'name': 'param-one',
'type': 'str',
'help': 'Param1 description',
'is_list': False
}]
def test_should_extract_arguments_as_parameters():
"""
Test get argument as parameters for python method call
"""
docstring_str = '''"""
:param str param_one: Param1 description
:param int param2:
"""'''
args_as_param = get_arguments_as_param(parse_docstring(docstring_str))
assert args_as_param == 'args.param_one, args.param2'
def test_should_convert_list_param_to_python_arg():
"""
Test convert list param to python arg
"""
repr = ':param list param_one: Param1 description\n'
arguments = get_arguments_from_docstring(parse_docstring(repr))
assert arguments == [{'name': 'param-one',
'type': 'str',
'help': 'Param1 description',
'is_list': True
}]
def test_should_not_raise_if_empty_docstring():
"""
Test do not raise if first code cell with empty docstring
"""
first_code_cell = '''
# Some comments
code = 'some code again'
# And comment
'''
docstring_wrapper = get_data_from_docstring([to_notebook_code_cell(first_code_cell)])
assert docstring_wrapper == DocstringWrapper(docstring='', params='', arguments=[], arg_params='')
def test_should_not_raise_if_no_param_in_docstring():
"""
Test do not raise if no param in docstring
"""
docstring = '''"""
Docstring without param
"""'''
first_code_cell = f'''
# Some comments
{docstring}
code = 'some code again'
# And comment
'''
docstring_wrapper = get_data_from_docstring([to_notebook_code_cell(first_code_cell)])
assert docstring_wrapper == DocstringWrapper(docstring=docstring, params='', arguments=[], arg_params='')
def test_should_extract_docstring_and_params():
"""
Test docstring and parameters are well extracted
"""
docstring = '''"""
:param str param_one: Param1 description
:param int param2:
:param param3: Param3 description
:param param4:
"""'''
docstring_cell = f'''
# Some comments
{docstring}
code = 'some code again'
# And comment
'''
docstring_wrapper = get_data_from_docstring([to_notebook_code_cell(docstring_cell)])
expected_arguments = [
{
'name': 'param-one',
'type': 'str',
'help': 'Param1 description',
'is_list': False
},
{
'name': 'param2',
'type': 'int',
'help': '',
'is_list': False
},
{
'name': 'param3',
'type': None,
'help': 'Param3 description',
'is_list': False
},
{
'name': 'param4',
'type': None,
'help': '',
'is_list': False
}
]
assert docstring_wrapper.params == 'param_one, param2, param3, param4'
assert docstring_wrapper.docstring == docstring.strip('\n')
assert docstring_wrapper.arguments == expected_arguments
assert docstring_wrapper.arg_params == 'args.param_one, args.param2, args.param3, args.param4'
def test_should_detect_no_effect_cell_content():
"""
Test that cell containing #No effect statement are detected
"""
resources = {'ignore_keys': ['# No effect']}
standard_cell = '''
#This is a comment but not a No effect
value = 15
'''
assert not is_no_effect(standard_cell, resources)
no_effect_cell = '''
#This is a comment but not a No effect
# No effect
big_res = big_call()
'''
assert is_no_effect(no_effect_cell, resources)
def test_should_detect_trailing_cell():
"""
Test that trailing cell is detected
trailing cell == no effect or not a code cell
"""
resources = {'ignore_keys': ['# No effect']}
standard_cell = {'cell_type': 'code', 'source': '#A comment but not a No effect\nvalue = 15\n'}
assert not is_trailing_cell(standard_cell, resources)
no_effect_cell = {'cell_type': 'code', 'source': '# No effect\n a = 45\n'}
assert is_trailing_cell(no_effect_cell, resources)
comment = {'cell_type': 'markdown', 'source': '## tile 1\n'}
assert is_trailing_cell(comment, resources)
def test_should_filter_trailing_cell():
"""
Test trailing cells filtering return a new list of filtered cells
"""
standard_cell = {'cell_type': 'code', 'source': '#A comment but not a No effect\nvalue = 15\n'}
no_effect_cell = {'cell_type': 'code', 'source': '# No effect\n a = 45\n'}
comment = {'cell_type': 'markdown', 'source': '## tile 1\n'}
filtered_cells = filter_trailing_cells([standard_cell, no_effect_cell, comment], {'ignore_keys': ['# No effect']})
assert filtered_cells == [standard_cell]
def test_should_get_formatted_cells_removing_no_effect_cells():
"""
Test get formatted code and comment cells
No effect cells must be removed
"""
cells = [
{'cell_type': 'markdown', 'source': '\nA title\n'},
{'cell_type': 'code', 'source': '\nimport os\n'},
{'cell_type': 'code', 'source': '\n# No effect \nimport os\n'}
]
formatted_cells = get_formatted_cells(cells, resource={'ignore_keys': ['# No effect']})
assert formatted_cells == [
['# A title'],
['import os']]
def test_should_get_default_formatted_cells():
"""
Test get default formatted code
"""
cells = []
formatted_cells = get_formatted_cells(cells, resource={'ignore_keys': ['# No effect']})
assert formatted_cells == [['pass']]
| [
1,
529,
9507,
29958,
21150,
29914,
5441,
29914,
1688,
29918,
13441,
29918,
3166,
29918,
1333,
19273,
29889,
2272,
13,
3166,
2897,
29889,
2084,
1053,
1855,
2084,
29892,
4516,
978,
29892,
5988,
29892,
4864,
13,
13,
5215,
11451,
1688,
13,
3166,
11451,
1688,
1053,
5713,
15546,
13,
13,
3166,
286,
28463,
8504,
29889,
5527,
29889,
5527,
1053,
341,
29880,
29963,
12229,
16376,
13,
3166,
286,
28463,
8504,
29889,
1514,
1807,
29918,
3952,
6774,
29889,
5510,
1053,
6088,
29918,
1514,
1807,
13,
3166,
286,
28463,
8504,
29889,
11739,
1053,
341,
29880,
29963,
12229,
2451,
13,
3166,
286,
28463,
8504,
29889,
666,
948,
29890,
29918,
517,
29918,
4691,
1053,
5609,
29918,
517,
29918,
2154,
29892,
679,
29918,
3207,
29918,
294,
29918,
4691,
29918,
5696,
29918,
4830,
29892,
338,
29918,
1217,
29918,
15987,
29892,
320,
13,
1678,
679,
29918,
1272,
29918,
3166,
29918,
1514,
1807,
29892,
679,
29918,
25699,
29918,
3166,
29918,
1514,
1807,
29892,
679,
29918,
25699,
29918,
294,
29918,
3207,
29892,
679,
29918,
1514,
1807,
29918,
1272,
29892,
320,
13,
1678,
28197,
1807,
15646,
29892,
338,
29918,
3018,
6504,
29918,
3729,
29892,
679,
29918,
689,
19667,
29918,
3729,
29879,
29892,
4175,
29918,
3018,
6504,
29918,
3729,
29879,
13,
3166,
6987,
29889,
3952,
6774,
29889,
13239,
1053,
2531,
29918,
1333,
19273,
29892,
304,
29918,
1333,
19273,
29918,
401,
29918,
3729,
13,
13,
22484,
29450,
29918,
9464,
353,
1855,
2084,
29898,
25721,
22168,
1445,
1649,
876,
13,
13,
13,
29992,
7241,
15546,
13,
1753,
1970,
7295,
13,
1678,
736,
341,
29880,
29963,
12229,
16376,
29898,
3332,
29918,
12322,
2433,
6904,
1495,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
13441,
29918,
1333,
19273,
29918,
517,
29918,
4691,
29918,
2154,
29898,
5527,
29892,
664,
29918,
3972,
1125,
13,
1678,
9995,
13,
4706,
4321,
2216,
19273,
338,
11543,
304,
3017,
2471,
13,
1678,
9995,
13,
1678,
1962,
29918,
2084,
353,
5988,
29898,
1287,
29918,
3972,
29892,
525,
449,
29889,
2272,
1495,
13,
1678,
451,
19273,
29918,
2084,
353,
2531,
29918,
1333,
19273,
29898,
3729,
29879,
11759,
877,
401,
742,
525,
2158,
1194,
29915,
29886,
4992,
29905,
1495,
1495,
1402,
13128,
29918,
3972,
29922,
1287,
29918,
3972,
29892,
13,
462,
462,
934,
29918,
978,
2433,
1688,
29889,
666,
948,
29890,
742,
1574,
1807,
29922,
8516,
29897,
13,
1678,
5609,
29918,
517,
29918,
2154,
29898,
2080,
29918,
1333,
19273,
29918,
2084,
29922,
1333,
19273,
29918,
2084,
29892,
1962,
29918,
2084,
29922,
4905,
29918,
2084,
29892,
1970,
29922,
5527,
29897,
13,
13,
1678,
4974,
4864,
29898,
4905,
29918,
2084,
29897,
13,
1678,
411,
1722,
29898,
4905,
29918,
2084,
29892,
525,
29878,
1495,
408,
285,
29881,
29901,
13,
4706,
2793,
353,
285,
29881,
29889,
949,
580,
13,
13,
1678,
396,
5399,
1667,
1158,
338,
2825,
13,
1678,
4974,
525,
1753,
286,
28463,
8504,
29918,
1688,
7295,
29915,
297,
2793,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
6672,
742,
313,
8516,
29892,
16321,
6970,
18527,
8785,
13,
1753,
1243,
29918,
9344,
29918,
4801,
522,
29918,
16744,
29898,
6672,
29892,
1970,
29892,
664,
29918,
3972,
1125,
13,
1678,
9995,
13,
4706,
4321,
2216,
19273,
338,
11543,
304,
3443,
1891,
3017,
2471,
29892,
13,
4706,
3443,
3038,
297,
2216,
19273,
338,
17809,
322,
1532,
16459,
29889,
13,
4706,
450,
3443,
3038,
1818,
367,
278,
937,
775,
3038,
29889,
739,
881,
367,
17809,
13,
4706,
565,
727,
338,
263,
2791,
3204,
4839,
470,
451,
29889,
13,
1678,
9995,
13,
1678,
1962,
29918,
2084,
353,
5988,
29898,
1287,
29918,
3972,
29892,
525,
449,
29889,
2272,
1495,
13,
13,
1678,
1574,
1807,
29918,
3729,
353,
14550,
13,
29937,
12662,
2699,
13,
15945,
29908,
13,
1678,
584,
3207,
851,
11306,
29901,
450,
2924,
310,
11306,
304,
5706,
29889,
13,
1678,
584,
3207,
938,
6554,
29901,
450,
6554,
310,
306,
1016,
29915,
29873,
1073,
825,
13,
1678,
584,
3207,
1828,
29941,
29901,
13,
15945,
29908,
13,
6484,
353,
525,
14968,
29915,
13,
29873,
3747,
353,
29871,
29896,
29906,
13,
4706,
14550,
13,
1678,
451,
19273,
29918,
2084,
353,
2531,
29918,
1333,
19273,
29898,
3729,
29879,
11759,
877,
401,
742,
525,
2158,
1194,
29915,
29886,
4992,
29905,
1495,
1495,
1402,
13128,
29918,
3972,
29922,
1287,
29918,
3972,
29892,
13,
462,
462,
934,
29918,
978,
2433,
1688,
29889,
666,
948,
29890,
742,
13,
462,
462,
1574,
1807,
29922,
1514,
1807,
29918,
3729,
29892,
13,
462,
462,
4839,
29922,
6672,
29897,
13,
1678,
5609,
29918,
517,
29918,
2154,
29898,
2080,
29918,
1333,
19273,
29918,
2084,
29922,
1333,
19273,
29918,
2084,
29892,
1962,
29918,
2084,
29922,
4905,
29918,
2084,
29892,
1970,
29922,
5527,
29897,
13,
1678,
4974,
4864,
29898,
4905,
29918,
2084,
29897,
13,
1678,
411,
1722,
29898,
4905,
29918,
2084,
29892,
525,
29878,
1495,
408,
285,
29881,
29901,
13,
4706,
2793,
353,
285,
29881,
29889,
949,
580,
13,
13,
1678,
396,
5399,
1667,
1158,
338,
2825,
13,
1678,
4974,
525,
1753,
286,
28463,
8504,
29918,
1688,
29898,
6484,
29892,
6554,
29892,
1828,
29941,
1125,
29915,
297,
2793,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
22692,
29918,
361,
29918,
20965,
29918,
1514,
1807,
29898,
5527,
29892,
664,
29918,
3972,
1125,
13,
1678,
9995,
13,
4706,
4321,
385,
341,
29880,
29963,
12229,
3682,
338,
10425,
565,
1574,
1807,
338,
8340,
13,
1678,
9995,
13,
13,
1678,
1962,
29918,
2084,
353,
5988,
29898,
1287,
29918,
3972,
29892,
525,
449,
29889,
2272,
1495,
13,
13,
1678,
1574,
1807,
29918,
3729,
353,
14550,
13,
1678,
396,
12662,
2699,
13,
1678,
9995,
13,
4706,
584,
3207,
1828,
29941,
13,
1678,
9995,
13,
1678,
11306,
353,
525,
14968,
29915,
13,
1678,
304,
517,
353,
29871,
29896,
29906,
13,
1678,
14550,
13,
13,
1678,
451,
19273,
29918,
2084,
353,
2531,
29918,
1333,
19273,
29898,
3729,
29879,
11759,
877,
401,
742,
525,
2158,
1194,
29915,
29886,
4992,
29905,
1495,
1495,
1402,
13128,
29918,
3972,
29922,
1287,
29918,
3972,
29892,
13,
462,
462,
934,
29918,
978,
2433,
1688,
29889,
666,
948,
29890,
742,
13,
462,
462,
1574,
1807,
29922,
1514,
1807,
29918,
3729,
29897,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
29924,
29880,
29963,
12229,
2451,
1125,
13,
4706,
5609,
29918,
517,
29918,
2154,
29898,
2080,
29918,
1333,
19273,
29918,
2084,
29922,
1333,
19273,
29918,
2084,
29892,
1962,
29918,
2084,
29922,
4905,
29918,
2084,
29892,
1970,
29922,
5527,
29897,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
22692,
29918,
361,
29918,
5514,
29918,
27603,
29918,
650,
29918,
1514,
1807,
29918,
262,
29918,
4102,
29918,
3729,
29898,
5527,
29892,
664,
29918,
3972,
1125,
13,
1678,
9995,
13,
4706,
4321,
2473,
1574,
1807,
297,
278,
3443,
3038,
338,
17809,
13,
1678,
9995,
13,
1678,
1962,
29918,
2084,
353,
5988,
29898,
1287,
29918,
3972,
29892,
525,
449,
29889,
2272,
1495,
13,
13,
1678,
1574,
1807,
29918,
3729,
353,
14550,
13,
1678,
396,
12662,
2699,
13,
1678,
9995,
13,
4706,
584,
3207,
1828,
29941,
29901,
349,
4757,
13,
1678,
9995,
13,
268,
9995,
13,
4706,
584,
3207,
1828,
29953,
29901,
22704,
13,
1678,
9995,
13,
1678,
11306,
353,
525,
14968,
29915,
13,
1678,
304,
517,
353,
29871,
29896,
29906,
13,
1678,
14550,
13,
13,
1678,
451,
19273,
29918,
2084,
353,
2531,
29918,
1333,
19273,
29898,
3729,
29879,
11759,
877,
401,
742,
525,
2158,
1194,
29915,
29886,
4992,
29905,
1495,
1495,
1402,
13128,
29918,
3972,
29922,
1287,
29918,
3972,
29892,
13,
462,
462,
934,
29918,
978,
2433,
1688,
29889,
666,
948,
29890,
742,
13,
462,
462,
1574,
1807,
29922,
1514,
1807,
29918,
3729,
29897,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
29924,
29880,
29963,
12229,
2451,
1125,
13,
4706,
5609,
29918,
517,
29918,
2154,
29898,
2080,
29918,
1333,
19273,
29918,
2084,
29922,
1333,
19273,
29918,
2084,
29892,
1962,
29918,
2084,
29922,
4905,
29918,
2084,
29892,
1970,
29922,
5527,
29897,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
915,
29918,
690,
309,
993,
29918,
517,
29918,
6310,
29918,
1333,
19273,
29898,
5527,
29892,
664,
29918,
3972,
1125,
13,
1678,
9995,
13,
4706,
4321,
1350,
572,
1218,
338,
620,
309,
993,
304,
4069,
2216,
19273,
29892,
694,
3682,
29889,
13,
1678,
9995,
13,
1678,
1962,
29918,
2084,
353,
5988,
29898,
1287,
29918,
3972,
29892,
525,
449,
29889,
2272,
1495,
13,
1678,
451,
19273,
29918,
2084,
353,
2531,
29918,
1333,
19273,
29898,
3729,
29879,
11759,
877,
401,
742,
525,
2158,
1194,
29915,
29886,
4992,
29905,
1495,
1495,
1402,
13128,
29918,
3972,
29922,
1287,
29918,
3972,
29892,
13,
462,
462,
934,
29918,
978,
2433,
1688,
29889,
666,
948,
29890,
742,
1574,
1807,
29922,
8516,
29897,
13,
1678,
5609,
29918,
517,
29918,
2154,
29898,
2080,
29918,
1333,
19273,
29918,
2084,
29922,
1333,
19273,
29918,
2084,
29892,
1962,
29918,
2084,
29922,
4905,
29918,
2084,
29892,
1970,
29922,
5527,
29897,
13,
1678,
4974,
4864,
29898,
4905,
29918,
2084,
29897,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
21111,
29918,
16744,
29918,
294,
29918,
4691,
29918,
7529,
7295,
13,
1678,
9995,
13,
4706,
4321,
4128,
526,
23892,
515,
1574,
1807,
322,
11543,
304,
3017,
3402,
13,
1678,
9995,
13,
13,
1678,
1574,
1807,
29918,
710,
353,
14550,
15945,
29908,
13,
1678,
584,
3207,
851,
1828,
29918,
650,
29901,
12662,
29896,
6139,
13,
1678,
584,
3207,
938,
1828,
29906,
29901,
13,
1678,
584,
3207,
1828,
29941,
29901,
12662,
29941,
6139,
13,
1678,
584,
3207,
1828,
29946,
29901,
13,
1678,
9995,
12008,
13,
1678,
4128,
353,
679,
29918,
3207,
29918,
294,
29918,
4691,
29918,
5696,
29918,
4830,
29898,
5510,
29918,
1514,
1807,
29898,
1514,
1807,
29918,
710,
876,
13,
13,
1678,
4974,
4128,
1275,
525,
3207,
29918,
650,
29892,
1828,
29906,
29892,
1828,
29941,
29892,
1828,
29946,
29915,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
21111,
29918,
16744,
29918,
294,
29918,
4691,
29918,
6519,
29918,
1220,
29918,
25699,
7295,
13,
1678,
9995,
13,
4706,
4321,
4128,
526,
23892,
515,
1574,
1807,
322,
11543,
304,
3017,
1899,
1196,
2980,
13,
1678,
9995,
13,
13,
1678,
1574,
1807,
29918,
710,
353,
14550,
15945,
29908,
13,
1678,
584,
3207,
851,
1828,
29918,
650,
29901,
12662,
29896,
6139,
13,
1678,
9995,
12008,
13,
1678,
1574,
1807,
29892,
903,
353,
679,
29918,
1514,
1807,
29918,
1272,
29898,
1514,
1807,
29918,
710,
29897,
13,
1678,
6273,
353,
679,
29918,
25699,
29918,
3166,
29918,
1514,
1807,
29898,
1514,
1807,
29897,
13,
13,
1678,
4974,
6273,
1275,
518,
13,
4706,
426,
13,
9651,
525,
978,
2396,
525,
3207,
29899,
650,
742,
13,
9651,
525,
1853,
2396,
525,
710,
742,
13,
9651,
525,
8477,
2396,
525,
4736,
29896,
6139,
742,
13,
9651,
525,
275,
29918,
1761,
2396,
7700,
13,
4706,
500,
29962,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
21111,
29918,
25699,
29918,
294,
29918,
16744,
7295,
13,
1678,
9995,
13,
4706,
4321,
679,
2980,
408,
4128,
363,
3017,
1158,
1246,
13,
1678,
9995,
13,
1678,
1574,
1807,
29918,
710,
353,
14550,
15945,
29908,
13,
1678,
584,
3207,
851,
1828,
29918,
650,
29901,
12662,
29896,
6139,
13,
1678,
584,
3207,
938,
1828,
29906,
29901,
13,
1678,
9995,
12008,
13,
1678,
6389,
29918,
294,
29918,
3207,
353,
679,
29918,
25699,
29918,
294,
29918,
3207,
29898,
5510,
29918,
1514,
1807,
29898,
1514,
1807,
29918,
710,
876,
13,
13,
1678,
4974,
6389,
29918,
294,
29918,
3207,
1275,
525,
5085,
29889,
3207,
29918,
650,
29892,
6389,
29889,
3207,
29906,
29915,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
13441,
29918,
1761,
29918,
3207,
29918,
517,
29918,
4691,
29918,
1191,
7295,
13,
1678,
9995,
13,
4706,
4321,
3588,
1051,
1828,
304,
3017,
1852,
13,
1678,
9995,
13,
1678,
2062,
353,
525,
29901,
3207,
1051,
1828,
29918,
650,
29901,
12662,
29896,
6139,
29905,
29876,
29915,
13,
1678,
6273,
353,
679,
29918,
25699,
29918,
3166,
29918,
1514,
1807,
29898,
5510,
29918,
1514,
1807,
29898,
276,
558,
876,
13,
13,
1678,
4974,
6273,
1275,
518,
10998,
978,
2396,
525,
3207,
29899,
650,
742,
13,
462,
3986,
525,
1853,
2396,
525,
710,
742,
13,
462,
3986,
525,
8477,
2396,
525,
4736,
29896,
6139,
742,
13,
462,
3986,
525,
275,
29918,
1761,
2396,
5852,
13,
462,
3986,
500,
29962,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
1333,
29918,
22692,
29918,
361,
29918,
6310,
29918,
1514,
1807,
7295,
13,
1678,
9995,
13,
4706,
4321,
437,
451,
12020,
565,
937,
775,
3038,
411,
4069,
1574,
1807,
13,
1678,
9995,
13,
1678,
937,
29918,
401,
29918,
3729,
353,
14550,
13,
29937,
3834,
6589,
13,
401,
353,
525,
5372,
775,
1449,
29915,
13,
29937,
1126,
3440,
13,
1678,
14550,
13,
1678,
1574,
1807,
29918,
17699,
353,
679,
29918,
1272,
29918,
3166,
29918,
1514,
1807,
4197,
517,
29918,
1333,
19273,
29918,
401,
29918,
3729,
29898,
4102,
29918,
401,
29918,
3729,
29897,
2314,
13,
13,
1678,
4974,
1574,
1807,
29918,
17699,
1275,
28197,
1807,
15646,
29898,
1514,
1807,
2433,
742,
8636,
2433,
742,
6273,
11759,
1402,
1852,
29918,
7529,
2433,
1495,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
1333,
29918,
22692,
29918,
361,
29918,
1217,
29918,
3207,
29918,
262,
29918,
1514,
1807,
7295,
13,
1678,
9995,
13,
4706,
4321,
437,
451,
12020,
565,
694,
1828,
297,
1574,
1807,
13,
1678,
9995,
13,
1678,
1574,
1807,
353,
14550,
15945,
29908,
13,
14526,
1807,
1728,
1828,
13,
15945,
29908,
12008,
13,
1678,
937,
29918,
401,
29918,
3729,
353,
285,
12008,
13,
29937,
3834,
6589,
13,
29912,
1514,
1807,
29913,
13,
401,
353,
525,
5372,
775,
1449,
29915,
13,
29937,
1126,
3440,
13,
1678,
14550,
13,
13,
1678,
1574,
1807,
29918,
17699,
353,
679,
29918,
1272,
29918,
3166,
29918,
1514,
1807,
4197,
517,
29918,
1333,
19273,
29918,
401,
29918,
3729,
29898,
4102,
29918,
401,
29918,
3729,
29897,
2314,
13,
13,
1678,
4974,
1574,
1807,
29918,
17699,
1275,
28197,
1807,
15646,
29898,
1514,
1807,
29922,
1514,
1807,
29892,
8636,
2433,
742,
6273,
11759,
1402,
1852,
29918,
7529,
2433,
1495,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
21111,
29918,
1514,
1807,
29918,
392,
29918,
7529,
7295,
13,
1678,
9995,
13,
4706,
4321,
1574,
1807,
322,
4128,
526,
1532,
23892,
13,
1678,
9995,
13,
1678,
1574,
1807,
353,
14550,
15945,
29908,
13,
29901,
3207,
851,
1828,
29918,
650,
29901,
12662,
29896,
6139,
13,
29901,
3207,
938,
1828,
29906,
29901,
13,
29901,
3207,
1828,
29941,
29901,
12662,
29941,
6139,
13,
29901,
3207,
1828,
29946,
29901,
13,
15945,
29908,
12008,
13,
1678,
1574,
1807,
29918,
3729,
353,
285,
12008,
13,
29937,
3834,
6589,
13,
29912,
1514,
1807,
29913,
13,
401,
353,
525,
5372,
775,
1449,
29915,
13,
29937,
1126,
3440,
13,
1678,
14550,
13,
1678,
1574,
1807,
29918,
17699,
353,
679,
29918,
1272,
29918,
3166,
29918,
1514,
1807,
4197,
517,
29918,
1333,
19273,
29918,
401,
29918,
3729,
29898,
1514,
1807,
29918,
3729,
29897,
2314,
13,
1678,
3806,
29918,
25699,
353,
518,
13,
4706,
426,
13,
9651,
525,
978,
2396,
525,
3207,
29899,
650,
742,
13,
9651,
525,
1853,
2396,
525,
710,
742,
13,
9651,
525,
8477,
2396,
525,
4736,
29896,
6139,
742,
13,
9651,
525,
275,
29918,
1761,
2396,
7700,
13,
4706,
2981,
13,
4706,
426,
13,
9651,
525,
978,
2396,
525,
3207,
29906,
742,
13,
9651,
525,
1853,
2396,
525,
524,
742,
13,
9651,
525,
8477,
2396,
15516,
13,
9651,
525,
275,
29918,
1761,
2396,
7700,
13,
4706,
2981,
13,
4706,
426,
13,
9651,
525,
978,
2396,
525,
3207,
29941,
742,
13,
9651,
525,
1853,
2396,
6213,
29892,
13,
9651,
525,
8477,
2396,
525,
4736,
29941,
6139,
742,
13,
9651,
525,
275,
29918,
1761,
2396,
7700,
13,
4706,
2981,
13,
4706,
426,
13,
9651,
525,
978,
2396,
525,
3207,
29946,
742,
13,
9651,
525,
1853,
2396,
6213,
29892,
13,
9651,
525,
8477,
2396,
15516,
13,
9651,
525,
275,
29918,
1761,
2396,
7700,
13,
4706,
500,
13,
1678,
4514,
13,
13,
1678,
4974,
1574,
1807,
29918,
17699,
29889,
7529,
1275,
525,
3207,
29918,
650,
29892,
1828,
29906,
29892,
1828,
29941,
29892,
1828,
29946,
29915,
13,
1678,
4974,
1574,
1807,
29918,
17699,
29889,
1514,
1807,
1275,
1574,
1807,
29889,
17010,
28909,
29876,
1495,
13,
1678,
4974,
1574,
1807,
29918,
17699,
29889,
25699,
1275,
3806,
29918,
25699,
13,
1678,
4974,
1574,
1807,
29918,
17699,
29889,
1191,
29918,
7529,
1275,
525,
5085,
29889,
3207,
29918,
650,
29892,
6389,
29889,
3207,
29906,
29892,
6389,
29889,
3207,
29941,
29892,
6389,
29889,
3207,
29946,
29915,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
4801,
522,
29918,
1217,
29918,
15987,
29918,
3729,
29918,
3051,
7295,
13,
1678,
9995,
13,
4706,
4321,
393,
3038,
6943,
396,
3782,
2779,
3229,
526,
17809,
13,
1678,
9995,
13,
1678,
7788,
353,
11117,
17281,
29918,
8149,
2396,
6024,
29937,
1939,
2779,
2033,
29913,
13,
1678,
3918,
29918,
3729,
353,
14550,
13,
1678,
396,
4013,
338,
263,
3440,
541,
451,
263,
1939,
2779,
13,
1678,
995,
353,
29871,
29896,
29945,
13,
1678,
14550,
13,
1678,
4974,
451,
338,
29918,
1217,
29918,
15987,
29898,
15770,
29918,
3729,
29892,
7788,
29897,
13,
13,
1678,
694,
29918,
15987,
29918,
3729,
353,
14550,
13,
1678,
396,
4013,
338,
263,
3440,
541,
451,
263,
1939,
2779,
13,
1678,
396,
1939,
2779,
13,
1678,
4802,
29918,
690,
353,
4802,
29918,
4804,
580,
13,
1678,
14550,
13,
1678,
4974,
338,
29918,
1217,
29918,
15987,
29898,
1217,
29918,
15987,
29918,
3729,
29892,
7788,
29897,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
4801,
522,
29918,
3018,
6504,
29918,
3729,
7295,
13,
1678,
9995,
13,
4706,
4321,
393,
25053,
3038,
338,
17809,
13,
4706,
25053,
3038,
1275,
694,
2779,
470,
451,
263,
775,
3038,
13,
1678,
9995,
13,
1678,
7788,
353,
11117,
17281,
29918,
8149,
2396,
6024,
29937,
1939,
2779,
2033,
29913,
13,
1678,
3918,
29918,
3729,
353,
11117,
3729,
29918,
1853,
2396,
525,
401,
742,
525,
4993,
2396,
16321,
29909,
3440,
541,
451,
263,
1939,
2779,
29905,
29876,
1767,
353,
29871,
29896,
29945,
29905,
29876,
10827,
13,
1678,
4974,
451,
338,
29918,
3018,
6504,
29918,
3729,
29898,
15770,
29918,
3729,
29892,
7788,
29897,
13,
13,
1678,
694,
29918,
15987,
29918,
3729,
353,
11117,
3729,
29918,
1853,
2396,
525,
401,
742,
525,
4993,
2396,
16321,
1939,
2779,
29905,
29876,
263,
353,
29871,
29946,
29945,
29905,
29876,
10827,
13,
1678,
4974,
338,
29918,
3018,
6504,
29918,
3729,
29898,
1217,
29918,
15987,
29918,
3729,
29892,
7788,
29897,
13,
13,
1678,
3440,
353,
11117,
3729,
29918,
1853,
2396,
525,
3502,
3204,
742,
525,
4993,
2396,
525,
2277,
25900,
29871,
29896,
29905,
29876,
10827,
13,
1678,
4974,
338,
29918,
3018,
6504,
29918,
3729,
29898,
9342,
29892,
7788,
29897,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
4572,
29918,
3018,
6504,
29918,
3729,
7295,
13,
1678,
9995,
13,
4706,
4321,
25053,
9101,
21166,
736,
263,
716,
1051,
310,
22289,
9101,
13,
1678,
9995,
13,
1678,
3918,
29918,
3729,
353,
11117,
3729,
29918,
1853,
2396,
525,
401,
742,
525,
4993,
2396,
16321,
29909,
3440,
541,
451,
263,
1939,
2779,
29905,
29876,
1767,
353,
29871,
29896,
29945,
29905,
29876,
10827,
13,
1678,
694,
29918,
15987,
29918,
3729,
353,
11117,
3729,
29918,
1853,
2396,
525,
401,
742,
525,
4993,
2396,
16321,
1939,
2779,
29905,
29876,
263,
353,
29871,
29946,
29945,
29905,
29876,
10827,
13,
1678,
3440,
353,
11117,
3729,
29918,
1853,
2396,
525,
3502,
3204,
742,
525,
4993,
2396,
525,
2277,
25900,
29871,
29896,
29905,
29876,
10827,
13,
13,
1678,
22289,
29918,
3729,
29879,
353,
4175,
29918,
3018,
6504,
29918,
3729,
29879,
4197,
15770,
29918,
3729,
29892,
694,
29918,
15987,
29918,
3729,
29892,
3440,
1402,
11117,
17281,
29918,
8149,
2396,
6024,
29937,
1939,
2779,
2033,
1800,
13,
13,
1678,
4974,
22289,
29918,
3729,
29879,
1275,
518,
15770,
29918,
3729,
29962,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
657,
29918,
689,
19667,
29918,
3729,
29879,
29918,
1745,
21081,
29918,
1217,
29918,
15987,
29918,
3729,
29879,
7295,
13,
1678,
9995,
13,
4706,
4321,
679,
20917,
775,
322,
3440,
9101,
13,
4706,
1939,
2779,
9101,
1818,
367,
6206,
13,
1678,
9995,
13,
1678,
9101,
353,
518,
13,
4706,
11117,
3729,
29918,
1853,
2396,
525,
3502,
3204,
742,
525,
4993,
2396,
11297,
29876,
29909,
3611,
29905,
29876,
16675,
13,
4706,
11117,
3729,
29918,
1853,
2396,
525,
401,
742,
525,
4993,
2396,
11297,
29876,
5215,
2897,
29905,
29876,
16675,
13,
4706,
11117,
3729,
29918,
1853,
2396,
525,
401,
742,
525,
4993,
2396,
11297,
29876,
29937,
1939,
2779,
320,
29876,
5215,
2897,
29905,
29876,
10827,
13,
1678,
4514,
13,
1678,
20917,
29918,
3729,
29879,
353,
679,
29918,
689,
19667,
29918,
3729,
29879,
29898,
3729,
29879,
29892,
6503,
3790,
29915,
17281,
29918,
8149,
2396,
6024,
29937,
1939,
2779,
2033,
1800,
13,
13,
1678,
4974,
20917,
29918,
3729,
29879,
1275,
518,
13,
4706,
6024,
29937,
319,
3611,
7464,
13,
4706,
6024,
5215,
2897,
2033,
29962,
13,
13,
13,
1753,
1243,
29918,
9344,
29918,
657,
29918,
4381,
29918,
689,
19667,
29918,
3729,
29879,
7295,
13,
1678,
9995,
13,
4706,
4321,
679,
2322,
20917,
775,
13,
1678,
9995,
13,
1678,
9101,
353,
5159,
13,
1678,
20917,
29918,
3729,
29879,
353,
679,
29918,
689,
19667,
29918,
3729,
29879,
29898,
3729,
29879,
29892,
6503,
3790,
29915,
17281,
29918,
8149,
2396,
6024,
29937,
1939,
2779,
2033,
1800,
13,
13,
1678,
4974,
20917,
29918,
3729,
29879,
1275,
518,
1839,
3364,
2033,
29962,
13,
2
] |
jmilkfansblog/controllers/v1/__init__.py | xiaoyh121/program | 176 | 90605 | <gh_stars>100-1000
from pecan import rest
from wsme import types as wtypes
from jmilkfansblog.api.expose import expose as wsexpose
from jmilkfansblog.controllers.v1 import users
from jmilkfansblog.controllers.v1 import posts
class V1(wtypes.Base):
id = wtypes.text
"""The ID of the version, also acts as the release number"""
@staticmethod
def convert():
v1 = V1()
v1.id = 'v1'
return v1
class Controller(rest.RestController):
"""Version 1 API controller root."""
users = users.UsersController()
posts = posts.PostsController()
@wsexpose(V1)
def get(self):
return V1.convert()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
3166,
13209,
273,
1053,
1791,
13,
3166,
16904,
1004,
1053,
4072,
408,
281,
8768,
13,
13,
3166,
432,
23853,
29895,
29888,
550,
7312,
29889,
2754,
29889,
735,
4220,
1053,
24396,
408,
281,
14167,
4220,
13,
3166,
432,
23853,
29895,
29888,
550,
7312,
29889,
1285,
11897,
29889,
29894,
29896,
1053,
4160,
13,
3166,
432,
23853,
29895,
29888,
550,
7312,
29889,
1285,
11897,
29889,
29894,
29896,
1053,
11803,
13,
13,
13,
1990,
478,
29896,
29898,
29893,
8768,
29889,
5160,
1125,
13,
1678,
1178,
353,
281,
8768,
29889,
726,
13,
1678,
9995,
1576,
3553,
310,
278,
1873,
29892,
884,
14741,
408,
278,
6507,
1353,
15945,
29908,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
3588,
7295,
13,
4706,
325,
29896,
353,
478,
29896,
580,
13,
4706,
325,
29896,
29889,
333,
353,
525,
29894,
29896,
29915,
13,
4706,
736,
325,
29896,
13,
13,
13,
1990,
15830,
29898,
5060,
29889,
15078,
2956,
1125,
13,
1678,
9995,
6594,
29871,
29896,
3450,
4701,
3876,
1213,
15945,
13,
13,
1678,
4160,
353,
4160,
29889,
5959,
2956,
580,
13,
1678,
11803,
353,
11803,
29889,
6747,
29879,
2956,
580,
13,
13,
1678,
732,
29893,
14167,
4220,
29898,
29963,
29896,
29897,
13,
1678,
822,
679,
29898,
1311,
1125,
13,
4706,
736,
478,
29896,
29889,
13441,
580,
13,
2
] |
scripts/data-preparation/ch-sy-datatset.py | wannaphong/attacut | 54 | 153894 | <reponame>wannaphong/attacut
import fire
import numpy as np
from attacut import preprocessing, utils
DATA_PATH = "../slim-cut/data/best"
SYALLABLE_TOKENIZED_DATA = "./data/best-syllabled-tokenized"
CHARACTER_DICT = "./attacut/artifacts/attacut-sc/characters.json"
SYLLABLE_DICT = "./attacut/artifacts/attacut-sc/syllables.json"
def get_actual_filename(path: str) -> str:
return "%s/%s" % (SYALLABLE_TOKENIZED_DATA, path.split("/")[-1])
def prepare_syllable_charater_seq_data(files, ch2ix, sy2ix, sampling=10, output_dir=""):
training, validation = files
if sampling:
training = training[:sampling]
validation = validation[:sampling]
output_dir = "%s/best-syllable-crf-and-character-seq-feature-sampling-%d" % (output_dir, sampling)
print("Saving data to %s" % output_dir)
utils.maybe_create_dir(output_dir)
for name, dataset in zip(("training", "val"), (training, validation)):
print("working on : %s" % name)
fout_txt = open("%s/%s.txt" % (output_dir, name), "w")
try:
for path in dataset:
count = 0
with open(path, "r") as fin, open(path.replace(".txt", ".label"), "r") as flab:
has_space_problem = False
for txt, label in zip(fin, flab):
txt = txt.strip().replace("~~", "~")
if not txt:
continue
label = label.strip()
syllables = txt.split("~")
chars_idx = []
char_labels = []
syllable_idx = []
syllable_indices = list(map(
lambda sy: preprocessing.syllable2ix(sy2ix, sy),
syllables
))
if len(syllables) != len(label):
print(txt, path)
print(len(syllables), len(label))
print(syllables)
print(label)
raise SystemExit("xx")
label = list(label)
for ii, (syllable, six, l) in enumerate(zip(syllables, syllable_indices, label)):
if not syllable:
continue
if syllable == " ":
# next syllable is B, then we should also split this space
if label[ii+1] == "1":
l = "1"
else:
l = "0"
chs = list(
map(
lambda c: preprocessing.character2ix(ch2ix, c),
list(syllable)
)
)
total_chs = len(chs)
syllable_idx.extend([six] * total_chs)
chars_idx.extend(chs)
if l == "1":
char_labels.extend(["1"] + ["0"] * (total_chs-1))
else:
char_labels.extend(["0"] * total_chs)
assert len(char_labels) == len(chars_idx)
# check space problem
if not has_space_problem:
for cix, clb in zip(chars_idx, char_labels):
if cix == 3 and clb == "0":
has_space_problem = True
print(txt)
break
fout_txt.write("%s::%s::%s\n" % (
"".join(char_labels),
" ".join(np.array(chars_idx).astype(str)),
" ".join(np.array(syllable_idx).astype(str)),
))
if has_space_problem:
print("problem with space in %s" % path)
finally:
fout_txt.close()
def main(sampling=10, output_dir="./data"):
with open("%s/training.files" % DATA_PATH, "r") as f:
training_files = []
for l in f:
training_files.append(get_actual_filename(l.strip()))
with open("%s/validation.files" % DATA_PATH, "r") as f:
val_files = []
for l in f:
val_files.append(get_actual_filename(l.strip()))
ch2ix = utils.load_dict(CHARACTER_DICT)
sy2ix = utils.load_dict(SYLLABLE_DICT)
prepare_syllable_charater_seq_data(
(training_files, val_files),
ch2ix,
sy2ix,
sampling=sampling,
output_dir=output_dir
)
if __name__ == "__main__":
fire.Fire(main)
| [
1,
529,
276,
1112,
420,
29958,
29893,
812,
12451,
549,
29914,
1131,
562,
329,
13,
5215,
3974,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
1098,
562,
329,
1053,
758,
19170,
29892,
3667,
29879,
13,
13,
14573,
29918,
10145,
353,
376,
6995,
2536,
326,
29899,
7582,
29914,
1272,
29914,
13318,
29908,
13,
14816,
9818,
6181,
29918,
4986,
29968,
1430,
26664,
3352,
29918,
14573,
353,
376,
6904,
1272,
29914,
13318,
29899,
29879,
15114,
3606,
29899,
6979,
1891,
29908,
13,
13,
11282,
17923,
1001,
29918,
4571,
1783,
353,
376,
6904,
1131,
562,
329,
29914,
8813,
29879,
29914,
1131,
562,
329,
29899,
1557,
29914,
3090,
21706,
29889,
3126,
29908,
13,
14816,
2208,
6181,
29918,
4571,
1783,
353,
376,
6904,
1131,
562,
329,
29914,
8813,
29879,
29914,
1131,
562,
329,
29899,
1557,
29914,
29879,
15114,
1849,
29889,
3126,
29908,
13,
13,
13,
1753,
679,
29918,
19304,
29918,
9507,
29898,
2084,
29901,
851,
29897,
1599,
851,
29901,
13,
1678,
736,
11860,
29879,
22584,
29879,
29908,
1273,
313,
14816,
9818,
6181,
29918,
4986,
29968,
1430,
26664,
3352,
29918,
14573,
29892,
2224,
29889,
5451,
11974,
1159,
14352,
29896,
2314,
13,
13,
13,
1753,
19012,
29918,
29879,
15114,
519,
29918,
3090,
1008,
29918,
11762,
29918,
1272,
29898,
5325,
29892,
521,
29906,
861,
29892,
9878,
29906,
861,
29892,
23460,
29922,
29896,
29900,
29892,
1962,
29918,
3972,
13776,
1125,
13,
1678,
6694,
29892,
8845,
353,
2066,
13,
13,
1678,
565,
23460,
29901,
13,
4706,
6694,
353,
6694,
7503,
13445,
10335,
29962,
13,
4706,
8845,
353,
8845,
7503,
13445,
10335,
29962,
13,
13,
1678,
1962,
29918,
3972,
353,
11860,
29879,
29914,
13318,
29899,
29879,
15114,
519,
29899,
7283,
29888,
29899,
392,
29899,
18609,
29899,
11762,
29899,
14394,
29899,
13445,
10335,
19222,
29881,
29908,
1273,
313,
4905,
29918,
3972,
29892,
23460,
29897,
13,
13,
1678,
1596,
703,
29903,
5555,
848,
304,
1273,
29879,
29908,
1273,
1962,
29918,
3972,
29897,
13,
1678,
3667,
29879,
29889,
26026,
29918,
3258,
29918,
3972,
29898,
4905,
29918,
3972,
29897,
13,
1678,
363,
1024,
29892,
8783,
297,
14319,
29898,
703,
26495,
613,
376,
791,
4968,
313,
26495,
29892,
8845,
22164,
13,
4706,
1596,
703,
22899,
373,
584,
1273,
29879,
29908,
1273,
1024,
29897,
13,
4706,
285,
449,
29918,
3945,
353,
1722,
11702,
29879,
22584,
29879,
29889,
3945,
29908,
1273,
313,
4905,
29918,
3972,
29892,
1024,
511,
376,
29893,
1159,
13,
4706,
1018,
29901,
13,
9651,
363,
2224,
297,
8783,
29901,
13,
18884,
2302,
353,
29871,
29900,
13,
18884,
411,
1722,
29898,
2084,
29892,
376,
29878,
1159,
408,
1436,
29892,
1722,
29898,
2084,
29889,
6506,
17350,
3945,
613,
11393,
1643,
4968,
376,
29878,
1159,
408,
1652,
370,
29901,
13,
13,
462,
1678,
756,
29918,
3493,
29918,
17199,
353,
7700,
13,
13,
462,
1678,
363,
13872,
29892,
3858,
297,
14319,
29898,
4951,
29892,
1652,
370,
1125,
13,
462,
4706,
13872,
353,
13872,
29889,
17010,
2141,
6506,
703,
7377,
613,
376,
30022,
1159,
13,
13,
462,
4706,
565,
451,
13872,
29901,
13,
462,
9651,
6773,
13,
13,
462,
4706,
3858,
353,
3858,
29889,
17010,
580,
13,
462,
4706,
9878,
645,
1849,
353,
13872,
29889,
5451,
703,
30022,
1159,
13,
13,
462,
4706,
22524,
29918,
13140,
353,
5159,
13,
462,
4706,
1373,
29918,
21134,
353,
5159,
13,
462,
4706,
9878,
645,
519,
29918,
13140,
353,
5159,
13,
13,
462,
4706,
9878,
645,
519,
29918,
513,
1575,
353,
1051,
29898,
1958,
29898,
13,
462,
9651,
14013,
9878,
29901,
758,
19170,
29889,
29879,
15114,
519,
29906,
861,
29898,
29879,
29891,
29906,
861,
29892,
9878,
511,
13,
462,
9651,
9878,
645,
1849,
13,
462,
308,
876,
13,
13,
462,
4706,
565,
7431,
29898,
29879,
15114,
1849,
29897,
2804,
7431,
29898,
1643,
1125,
13,
462,
9651,
1596,
29898,
3945,
29892,
2224,
29897,
13,
462,
9651,
1596,
29898,
2435,
29898,
29879,
15114,
1849,
511,
7431,
29898,
1643,
876,
13,
462,
9651,
1596,
29898,
29879,
15114,
1849,
29897,
13,
462,
9651,
1596,
29898,
1643,
29897,
13,
462,
9651,
12020,
2184,
24365,
703,
4419,
1159,
13,
13,
462,
4706,
3858,
353,
1051,
29898,
1643,
29897,
13,
462,
4706,
363,
13607,
29892,
313,
29879,
15114,
519,
29892,
4832,
29892,
301,
29897,
297,
26985,
29898,
7554,
29898,
29879,
15114,
1849,
29892,
9878,
645,
519,
29918,
513,
1575,
29892,
3858,
22164,
13,
462,
9651,
565,
451,
9878,
645,
519,
29901,
13,
462,
18884,
6773,
13,
13,
462,
9651,
565,
9878,
645,
519,
1275,
376,
29242,
13,
462,
18884,
396,
2446,
9878,
645,
519,
338,
350,
29892,
769,
591,
881,
884,
6219,
445,
2913,
13,
462,
18884,
565,
3858,
29961,
2236,
29974,
29896,
29962,
1275,
376,
29896,
1115,
13,
462,
462,
1678,
301,
353,
376,
29896,
29908,
13,
462,
18884,
1683,
29901,
13,
462,
462,
1678,
301,
353,
376,
29900,
29908,
13,
13,
462,
9651,
521,
29879,
353,
1051,
29898,
13,
462,
18884,
2910,
29898,
13,
462,
462,
1678,
14013,
274,
29901,
758,
19170,
29889,
18609,
29906,
861,
29898,
305,
29906,
861,
29892,
274,
511,
13,
462,
462,
1678,
1051,
29898,
29879,
15114,
519,
29897,
13,
462,
18884,
1723,
13,
462,
9651,
1723,
13,
13,
462,
9651,
3001,
29918,
12168,
353,
7431,
29898,
12168,
29897,
13,
462,
9651,
9878,
645,
519,
29918,
13140,
29889,
21843,
4197,
28319,
29962,
334,
3001,
29918,
12168,
29897,
13,
13,
462,
9651,
22524,
29918,
13140,
29889,
21843,
29898,
12168,
29897,
13,
462,
9651,
565,
301,
1275,
376,
29896,
1115,
13,
462,
18884,
1373,
29918,
21134,
29889,
21843,
29898,
3366,
29896,
3108,
718,
6796,
29900,
3108,
334,
313,
7827,
29918,
12168,
29899,
29896,
876,
13,
462,
9651,
1683,
29901,
13,
462,
18884,
1373,
29918,
21134,
29889,
21843,
29898,
3366,
29900,
3108,
334,
3001,
29918,
12168,
29897,
13,
13,
462,
4706,
4974,
7431,
29898,
3090,
29918,
21134,
29897,
1275,
7431,
29898,
305,
1503,
29918,
13140,
29897,
13,
13,
462,
4706,
396,
1423,
2913,
1108,
13,
462,
4706,
565,
451,
756,
29918,
3493,
29918,
17199,
29901,
13,
462,
9651,
363,
274,
861,
29892,
1067,
29890,
297,
14319,
29898,
305,
1503,
29918,
13140,
29892,
1373,
29918,
21134,
1125,
13,
462,
18884,
565,
274,
861,
1275,
29871,
29941,
322,
1067,
29890,
1275,
376,
29900,
1115,
13,
462,
462,
1678,
756,
29918,
3493,
29918,
17199,
353,
5852,
13,
462,
462,
1678,
1596,
29898,
3945,
29897,
13,
462,
462,
1678,
2867,
13,
13,
462,
4706,
285,
449,
29918,
3945,
29889,
3539,
11702,
29879,
1057,
29995,
29879,
1057,
29995,
29879,
29905,
29876,
29908,
1273,
313,
13,
462,
9651,
376,
1642,
7122,
29898,
3090,
29918,
21134,
511,
29871,
13,
462,
9651,
376,
11393,
7122,
29898,
9302,
29889,
2378,
29898,
305,
1503,
29918,
13140,
467,
579,
668,
29898,
710,
8243,
13,
462,
9651,
376,
11393,
7122,
29898,
9302,
29889,
2378,
29898,
29879,
15114,
519,
29918,
13140,
467,
579,
668,
29898,
710,
8243,
13,
462,
308,
876,
13,
13,
462,
1678,
565,
756,
29918,
3493,
29918,
17199,
29901,
13,
462,
4706,
1596,
703,
17199,
411,
2913,
297,
1273,
29879,
29908,
1273,
2224,
29897,
13,
13,
4706,
7146,
29901,
13,
9651,
285,
449,
29918,
3945,
29889,
5358,
580,
13,
13,
13,
1753,
1667,
29898,
13445,
10335,
29922,
29896,
29900,
29892,
1962,
29918,
3972,
543,
6904,
1272,
29908,
1125,
13,
1678,
411,
1722,
11702,
29879,
29914,
26495,
29889,
5325,
29908,
1273,
360,
8254,
29918,
10145,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
4706,
6694,
29918,
5325,
353,
5159,
13,
4706,
363,
301,
297,
285,
29901,
13,
9651,
6694,
29918,
5325,
29889,
4397,
29898,
657,
29918,
19304,
29918,
9507,
29898,
29880,
29889,
17010,
22130,
13,
13,
1678,
411,
1722,
11702,
29879,
29914,
18157,
29889,
5325,
29908,
1273,
360,
8254,
29918,
10145,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
4706,
659,
29918,
5325,
353,
5159,
13,
4706,
363,
301,
297,
285,
29901,
13,
9651,
659,
29918,
5325,
29889,
4397,
29898,
657,
29918,
19304,
29918,
9507,
29898,
29880,
29889,
17010,
22130,
13,
13,
1678,
521,
29906,
861,
353,
3667,
29879,
29889,
1359,
29918,
8977,
29898,
11282,
17923,
1001,
29918,
4571,
1783,
29897,
13,
1678,
9878,
29906,
861,
353,
3667,
29879,
29889,
1359,
29918,
8977,
29898,
14816,
2208,
6181,
29918,
4571,
1783,
29897,
13,
13,
1678,
19012,
29918,
29879,
15114,
519,
29918,
3090,
1008,
29918,
11762,
29918,
1272,
29898,
13,
4706,
313,
26495,
29918,
5325,
29892,
659,
29918,
5325,
511,
13,
4706,
521,
29906,
861,
29892,
13,
4706,
9878,
29906,
861,
29892,
13,
4706,
23460,
29922,
13445,
10335,
29892,
13,
4706,
1962,
29918,
3972,
29922,
4905,
29918,
3972,
13,
1678,
1723,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
3974,
29889,
18654,
29898,
3396,
29897,
13,
2
] |
server/src/tests/samples/generators2.py | mewbak/pyright | 0 | 81381 | # This sample tests various type checking operations relating to
# generator functions that use the "yield from" clause.
from typing import Iterator
class ClassA():
pass
class ClassB():
def shouldContinue(self):
return True
class ClassC():
pass
def generator1() -> Iterator[ClassA]:
yield from generator1()
def generator2() -> Iterator[ClassB]:
# This should generate an error because it yields
# an iterator of the wrong type.
yield from generator1()
# This should also generate an error because it
# yields the wrong type.
yield from 1
| [
1,
396,
910,
4559,
6987,
5164,
1134,
8454,
6931,
1104,
1218,
304,
13,
29937,
15299,
3168,
393,
671,
278,
376,
29891,
969,
515,
29908,
11845,
29889,
13,
13,
3166,
19229,
1053,
20504,
1061,
13,
13,
1990,
4134,
29909,
7295,
13,
1678,
1209,
13,
13,
1990,
4134,
29933,
7295,
13,
1678,
822,
881,
1323,
14150,
29898,
1311,
1125,
13,
4706,
736,
5852,
13,
13,
1990,
4134,
29907,
7295,
13,
1678,
1209,
13,
13,
1753,
15299,
29896,
580,
1599,
20504,
1061,
29961,
2385,
29909,
5387,
13,
1678,
7709,
515,
15299,
29896,
580,
13,
13,
13,
1753,
15299,
29906,
580,
1599,
20504,
1061,
29961,
2385,
29933,
5387,
13,
1678,
396,
910,
881,
5706,
385,
1059,
1363,
372,
17498,
13,
1678,
396,
385,
20380,
310,
278,
2743,
1134,
29889,
13,
1678,
7709,
515,
15299,
29896,
580,
13,
13,
1678,
396,
910,
881,
884,
5706,
385,
1059,
1363,
372,
13,
1678,
396,
17498,
278,
2743,
1134,
29889,
13,
1678,
7709,
515,
29871,
29896,
13,
13,
13,
2
] |
RS_scpFile.py | Ryodor/PythonThiefOfPhotos | 2 | 146975 | <filename>RS_scpFile.py<gh_stars>1-10
import paramiko
#hostname = '10.57.29.175'
hostname = '10.57.29.175'
password = '<PASSWORD>'
username = "coding4"
port = 22
mypath='/Users/alan/Desktop/my_file'
remotepath='/Users/coding4/my_file'
t = paramiko.Transport((hostname, 22))
t.connect(username=username, password=password)
sftp = paramiko.SFTPClient.from_transport(t)
def trasnfer_file(path):
""" Tranfer file in other computer
Args:
path(String): path for tranfer file
"""
sftp.put(path, mypath);
| [
1,
529,
9507,
29958,
12445,
29918,
1557,
29886,
2283,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
1828,
10349,
13,
13,
29937,
28988,
353,
525,
29896,
29900,
29889,
29945,
29955,
29889,
29906,
29929,
29889,
29896,
29955,
29945,
29915,
13,
28988,
353,
525,
29896,
29900,
29889,
29945,
29955,
29889,
29906,
29929,
29889,
29896,
29955,
29945,
29915,
13,
5630,
353,
12801,
25711,
17013,
16299,
13,
6786,
353,
376,
29883,
3689,
29946,
29908,
13,
637,
353,
29871,
29906,
29906,
13,
13,
1357,
2084,
2433,
29914,
5959,
29914,
284,
273,
29914,
17600,
29914,
1357,
29918,
1445,
29915,
13,
16674,
2084,
2433,
29914,
5959,
29914,
29883,
3689,
29946,
29914,
1357,
29918,
1445,
29915,
13,
13,
13,
29873,
353,
1828,
10349,
29889,
27395,
3552,
28988,
29892,
29871,
29906,
29906,
876,
13,
29873,
29889,
6915,
29898,
6786,
29922,
6786,
29892,
4800,
29922,
5630,
29897,
13,
29879,
23102,
353,
1828,
10349,
29889,
20322,
3557,
4032,
29889,
3166,
29918,
27882,
29898,
29873,
29897,
13,
13,
13,
1753,
6809,
29876,
571,
29918,
1445,
29898,
2084,
1125,
13,
1678,
9995,
323,
661,
571,
934,
297,
916,
6601,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
2224,
29898,
1231,
1125,
2224,
363,
22024,
571,
934,
13,
13,
1678,
9995,
13,
13,
1678,
269,
23102,
29889,
649,
29898,
2084,
29892,
590,
2084,
416,
13,
2
] |
custom_components/mojio/device_tracker.py | GSzabados/mojio-home-assistant | 1 | 151692 | """Support for Mojio Platform."""
import logging
from mojio_sdk.api import API
import requests
import voluptuous as vol
from homeassistant.components.device_tracker import PLATFORM_SCHEMA
from homeassistant.const import (
CONF_CLIENT_ID,
CONF_CLIENT_SECRET,
CONF_DOMAIN,
CONF_PASSWORD,
CONF_USERNAME,
)
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.event import track_utc_time_change
_LOGGER = logging.getLogger(__name__)
CONF_INCLUDE = "include"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{
vol.Required(CONF_USERNAME): cv.string,
vol.Required(CONF_PASSWORD): cv.string,
vol.Required(CONF_DOMAIN): cv.string,
vol.Required(CONF_CLIENT_ID): cv.string,
vol.Required(CONF_CLIENT_SECRET): cv.string,
vol.Optional(CONF_INCLUDE, default=[]): vol.All(cv.ensure_list, [cv.string]),
}
)
def setup_scanner(hass, config: dict, see, discovery_info=None):
"""Set up the DeviceScanner and check if login is valid."""
scanner = MojioDeviceScanner(config, see)
if not scanner.login(hass):
_LOGGER.error("Mojio authentication failed")
return False
return True
class MojioDeviceScanner:
"""Define a scanner for the Mojio platform."""
def __init__(self, config, see):
"""Initialize MojioDeviceScanner."""
self._include = config.get(CONF_INCLUDE)
self._see = see
self._api = API(
config.get(CONF_DOMAIN),
config.get(CONF_CLIENT_ID),
config.get(CONF_CLIENT_SECRET),
config.get(CONF_USERNAME),
config.get(CONF_PASSWORD),
)
def setup(self, hass):
"""Set up a timer and start gathering devices."""
self._refresh()
track_utc_time_change(hass, lambda now: self._refresh(), minute=range(0, 60, 5))
def login(self, hass):
"""Perform a login on the Mojio API."""
if self._api.login():
self.setup(hass)
return True
return False
def _refresh(self) -> None:
"""Refresh device information from the platform."""
try:
vehicles = self._api.get_vehicles()
for vehicle in vehicles:
self._see(
dev_id=vehicle.licence_plate.replace("-", "_"),
gps=(vehicle.location.latitude, vehicle.location.longitude),
icon="mdi:car",
)
except requests.exceptions.ConnectionError:
_LOGGER.error("ConnectionError: Could not connect to Mojio")
| [
1,
9995,
14039,
363,
341,
3848,
601,
28096,
1213,
15945,
13,
5215,
12183,
13,
13,
3166,
2730,
29926,
601,
29918,
15348,
29889,
2754,
1053,
3450,
13,
5215,
7274,
13,
5215,
1700,
21245,
17269,
408,
1700,
13,
13,
3166,
3271,
465,
22137,
29889,
14036,
29889,
10141,
29918,
3018,
4937,
1053,
16507,
1299,
19094,
29918,
29903,
3210,
26862,
13,
3166,
3271,
465,
22137,
29889,
3075,
1053,
313,
13,
1678,
8707,
29943,
29918,
27205,
3919,
29918,
1367,
29892,
13,
1678,
8707,
29943,
29918,
27205,
3919,
29918,
1660,
22245,
29911,
29892,
13,
1678,
8707,
29943,
29918,
3970,
29032,
29892,
13,
1678,
8707,
29943,
29918,
25711,
17013,
29892,
13,
1678,
8707,
29943,
29918,
11889,
5813,
29892,
13,
29897,
13,
5215,
3271,
465,
22137,
29889,
3952,
6774,
29889,
2917,
29918,
18157,
408,
13850,
13,
3166,
3271,
465,
22137,
29889,
3952,
6774,
29889,
3696,
1053,
5702,
29918,
329,
29883,
29918,
2230,
29918,
3167,
13,
13,
29918,
14480,
17070,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
6007,
29943,
29918,
1177,
6154,
29965,
2287,
353,
376,
2856,
29908,
13,
13,
7390,
1299,
19094,
29918,
29903,
3210,
26862,
353,
16507,
1299,
19094,
29918,
29903,
3210,
26862,
29889,
21843,
29898,
13,
1678,
426,
13,
4706,
1700,
29889,
19347,
29898,
6007,
29943,
29918,
11889,
5813,
1125,
13850,
29889,
1807,
29892,
13,
4706,
1700,
29889,
19347,
29898,
6007,
29943,
29918,
25711,
17013,
1125,
13850,
29889,
1807,
29892,
13,
4706,
1700,
29889,
19347,
29898,
6007,
29943,
29918,
3970,
29032,
1125,
13850,
29889,
1807,
29892,
13,
4706,
1700,
29889,
19347,
29898,
6007,
29943,
29918,
27205,
3919,
29918,
1367,
1125,
13850,
29889,
1807,
29892,
13,
4706,
1700,
29889,
19347,
29898,
6007,
29943,
29918,
27205,
3919,
29918,
1660,
22245,
29911,
1125,
13850,
29889,
1807,
29892,
13,
4706,
1700,
29889,
27636,
29898,
6007,
29943,
29918,
1177,
6154,
29965,
2287,
29892,
2322,
29922,
2636,
1125,
1700,
29889,
3596,
29898,
11023,
29889,
7469,
29918,
1761,
29892,
518,
11023,
29889,
1807,
11724,
13,
1678,
500,
13,
29897,
13,
13,
13,
1753,
6230,
29918,
1557,
7310,
29898,
29882,
465,
29892,
2295,
29901,
9657,
29892,
1074,
29892,
20699,
29918,
3888,
29922,
8516,
1125,
13,
1678,
9995,
2697,
701,
278,
21830,
4421,
7310,
322,
1423,
565,
6464,
338,
2854,
1213,
15945,
13,
1678,
885,
7310,
353,
341,
3848,
601,
11501,
4421,
7310,
29898,
2917,
29892,
1074,
29897,
13,
1678,
565,
451,
885,
7310,
29889,
7507,
29898,
29882,
465,
1125,
13,
4706,
903,
14480,
17070,
29889,
2704,
703,
29924,
3848,
601,
10760,
5229,
1159,
13,
4706,
736,
7700,
13,
1678,
736,
5852,
13,
13,
13,
1990,
341,
3848,
601,
11501,
4421,
7310,
29901,
13,
1678,
9995,
3206,
457,
263,
885,
7310,
363,
278,
341,
3848,
601,
7481,
1213,
15945,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2295,
29892,
1074,
1125,
13,
4706,
9995,
6644,
6646,
341,
3848,
601,
11501,
4421,
7310,
1213,
15945,
13,
13,
4706,
1583,
3032,
2856,
353,
2295,
29889,
657,
29898,
6007,
29943,
29918,
1177,
6154,
29965,
2287,
29897,
13,
4706,
1583,
3032,
4149,
353,
1074,
13,
13,
4706,
1583,
3032,
2754,
353,
3450,
29898,
13,
9651,
2295,
29889,
657,
29898,
6007,
29943,
29918,
3970,
29032,
511,
13,
9651,
2295,
29889,
657,
29898,
6007,
29943,
29918,
27205,
3919,
29918,
1367,
511,
13,
9651,
2295,
29889,
657,
29898,
6007,
29943,
29918,
27205,
3919,
29918,
1660,
22245,
29911,
511,
13,
9651,
2295,
29889,
657,
29898,
6007,
29943,
29918,
11889,
5813,
511,
13,
9651,
2295,
29889,
657,
29898,
6007,
29943,
29918,
25711,
17013,
511,
13,
4706,
1723,
13,
13,
1678,
822,
6230,
29898,
1311,
29892,
298,
465,
1125,
13,
4706,
9995,
2697,
701,
263,
12237,
322,
1369,
11705,
292,
9224,
1213,
15945,
13,
4706,
1583,
3032,
22379,
580,
13,
4706,
5702,
29918,
329,
29883,
29918,
2230,
29918,
3167,
29898,
29882,
465,
29892,
14013,
1286,
29901,
1583,
3032,
22379,
3285,
11015,
29922,
3881,
29898,
29900,
29892,
29871,
29953,
29900,
29892,
29871,
29945,
876,
13,
13,
1678,
822,
6464,
29898,
1311,
29892,
298,
465,
1125,
13,
4706,
9995,
5894,
689,
263,
6464,
373,
278,
341,
3848,
601,
3450,
1213,
15945,
13,
4706,
565,
1583,
3032,
2754,
29889,
7507,
7295,
13,
9651,
1583,
29889,
14669,
29898,
29882,
465,
29897,
13,
9651,
736,
5852,
13,
4706,
736,
7700,
13,
13,
1678,
822,
903,
22379,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
9995,
27132,
4742,
2472,
515,
278,
7481,
1213,
15945,
13,
4706,
1018,
29901,
13,
9651,
24413,
353,
1583,
3032,
2754,
29889,
657,
29918,
345,
29882,
4027,
580,
13,
13,
9651,
363,
19716,
297,
24413,
29901,
13,
18884,
1583,
3032,
4149,
29898,
13,
462,
1678,
2906,
29918,
333,
29922,
345,
29882,
2512,
29889,
506,
663,
29918,
2341,
29889,
6506,
703,
29899,
613,
11119,
4968,
13,
462,
1678,
330,
567,
7607,
345,
29882,
2512,
29889,
5479,
29889,
5066,
4279,
29892,
19716,
29889,
5479,
29889,
5426,
4279,
511,
13,
462,
1678,
9849,
543,
3487,
29875,
29901,
4287,
613,
13,
18884,
1723,
13,
13,
4706,
5174,
7274,
29889,
11739,
29879,
29889,
5350,
2392,
29901,
13,
9651,
903,
14480,
17070,
29889,
2704,
703,
5350,
2392,
29901,
6527,
451,
4511,
304,
341,
3848,
601,
1159,
13,
2
] |
scripts/pipeline/a06a_submission.py | Iolaum/Phi1337 | 0 | 9833 | import pandas as pd
import numpy as np
import pickle
from sklearn.cross_validation import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squared_error
from math import sqrt
from sklearn.svm import SVR
from sklearn.svm import LinearSVR
from sklearn.preprocessing import StandardScaler
from sklearn.ensemble import RandomForestRegressor
def prune(x):
if x < 1:
return 1
elif x > 3:
return 3
else:
return x
def regression(reg_type, standardize_df, debug=False):
# load model
filename = '../../dataset/model_' + reg_type + '.pickle'
lin_model = None
with open(filename, 'rb') as f:
lin_model = pickle.load(f)
score_df_tst = pd.read_pickle('../../dataset/score_df_final_tst.pickle')
# Fill NaN value
# score_df = score_df.fillna(0.0)
# The last column is the target
X = np.array(score_df_tst)
if standardize_df:
print("Standardizing...")
with open("../../dataset/scaler.pickle", 'rb') as handle:
scaler = pickle.load(handle)
X = scaler.transform(X)
# Debug
if debug:
print("Score DataFrame")
print(score_df)
print("")
print("Training Values")
print(X)
print("")
print("Output Values")
print(Y)
print("")
print("Shapes of X and Y")
print(X.shape)
print(Y.shape)
# Debug
if debug:
print("XTR - XTS")
print(xtr.shape)
print(xts.shape)
print("")
print("YTR - YTS")
print(ytr.shape)
print(yts.shape)
print("")
yts_pred = lin_model.predict(X)
#yts_error = sqrt(mean_squared_error(yts_pred, yts))
print("Prediction by (" + reg_type + ") on Test data have finished")
# create submission file
id_series = pd.read_csv('../../dataset/test.csv')['id']
submission_df = pd.DataFrame(id_series, columns=['id'])
submission_df['relevance'] = yts_pred
submission_df['relevance'] = submission_df['relevance'].map(lambda x: prune(x))
submission_df.to_csv('../../dataset/submission.csv', columns=['id', 'relevance'], index=False)
if __name__ == "__main__":
# Change between:
# svr
# linear
# rfr
regression_type = 'svr'
standardize_df = True
regression(regression_type, standardize_df, debug=False) | [
1,
1053,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
5215,
5839,
280,
13,
13,
3166,
2071,
19668,
29889,
19128,
29918,
18157,
1053,
7945,
29918,
1688,
29918,
5451,
13,
3166,
2071,
19668,
29889,
10660,
29918,
4299,
1053,
22985,
4597,
23881,
13,
3166,
2071,
19668,
29889,
2527,
10817,
1053,
2099,
29918,
26613,
1965,
29918,
2704,
13,
3166,
5844,
1053,
18074,
2273,
13,
3166,
2071,
19668,
29889,
4501,
29885,
1053,
13955,
29934,
13,
3166,
2071,
19668,
29889,
4501,
29885,
1053,
22985,
7597,
29934,
13,
13,
3166,
2071,
19668,
29889,
1457,
19170,
1053,
10117,
29636,
261,
13,
3166,
2071,
19668,
29889,
24031,
1053,
16968,
2831,
342,
4597,
1253,
272,
13,
13,
13,
1753,
544,
1540,
29898,
29916,
1125,
13,
12,
361,
921,
529,
29871,
29896,
29901,
13,
12,
12,
2457,
29871,
29896,
13,
12,
23681,
921,
1405,
29871,
29941,
29901,
13,
12,
12,
2457,
29871,
29941,
13,
12,
2870,
29901,
13,
12,
12,
2457,
921,
13,
13,
13,
1753,
17855,
29898,
1727,
29918,
1853,
29892,
3918,
675,
29918,
2176,
29892,
4744,
29922,
8824,
1125,
13,
12,
29937,
2254,
1904,
13,
12,
9507,
353,
525,
21546,
24713,
29914,
4299,
29918,
29915,
718,
1072,
29918,
1853,
718,
29871,
15300,
23945,
280,
29915,
13,
12,
1915,
29918,
4299,
353,
6213,
13,
12,
2541,
1722,
29898,
9507,
29892,
525,
6050,
1495,
408,
285,
29901,
13,
12,
12,
1915,
29918,
4299,
353,
5839,
280,
29889,
1359,
29898,
29888,
29897,
13,
13,
12,
13628,
29918,
2176,
29918,
29873,
303,
353,
10518,
29889,
949,
29918,
23945,
280,
877,
21546,
24713,
29914,
13628,
29918,
2176,
29918,
8394,
29918,
29873,
303,
29889,
23945,
280,
1495,
13,
13,
12,
29937,
383,
453,
18780,
995,
13,
12,
29937,
8158,
29918,
2176,
353,
8158,
29918,
2176,
29889,
5589,
1056,
29898,
29900,
29889,
29900,
29897,
13,
13,
12,
29937,
450,
1833,
1897,
338,
278,
3646,
13,
12,
29990,
353,
7442,
29889,
2378,
29898,
13628,
29918,
2176,
29918,
29873,
303,
29897,
13,
13,
12,
361,
3918,
675,
29918,
2176,
29901,
13,
12,
12,
2158,
703,
15449,
5281,
856,
1159,
13,
12,
12,
2541,
1722,
703,
21546,
24713,
29914,
19529,
261,
29889,
23945,
280,
613,
525,
6050,
1495,
408,
4386,
29901,
13,
12,
12,
12,
19529,
261,
353,
5839,
280,
29889,
1359,
29898,
8411,
29897,
13,
13,
12,
12,
29990,
353,
8716,
261,
29889,
9067,
29898,
29990,
29897,
13,
13,
12,
29937,
16171,
13,
13,
12,
361,
4744,
29901,
13,
12,
12,
2158,
703,
20097,
3630,
4308,
1159,
13,
12,
12,
2158,
29898,
13628,
29918,
2176,
29897,
13,
12,
12,
2158,
703,
1159,
13,
13,
12,
12,
2158,
703,
5323,
2827,
2630,
1041,
1159,
13,
12,
12,
2158,
29898,
29990,
29897,
13,
12,
12,
2158,
703,
1159,
13,
13,
12,
12,
2158,
703,
6466,
2630,
1041,
1159,
13,
12,
12,
2158,
29898,
29979,
29897,
13,
12,
12,
2158,
703,
1159,
13,
13,
12,
12,
2158,
703,
2713,
11603,
310,
1060,
322,
612,
1159,
13,
12,
12,
2158,
29898,
29990,
29889,
12181,
29897,
13,
12,
12,
2158,
29898,
29979,
29889,
12181,
29897,
13,
13,
12,
29937,
16171,
13,
12,
361,
4744,
29901,
13,
12,
12,
2158,
703,
29990,
5659,
448,
1060,
9375,
1159,
13,
12,
12,
2158,
29898,
486,
29878,
29889,
12181,
29897,
13,
12,
12,
2158,
29898,
486,
29879,
29889,
12181,
29897,
13,
12,
12,
2158,
703,
1159,
13,
13,
12,
12,
2158,
703,
29979,
5659,
448,
612,
9375,
1159,
13,
12,
12,
2158,
29898,
29891,
509,
29889,
12181,
29897,
13,
12,
12,
2158,
29898,
29891,
1372,
29889,
12181,
29897,
13,
12,
12,
2158,
703,
1159,
13,
13,
12,
29891,
1372,
29918,
11965,
353,
6276,
29918,
4299,
29889,
27711,
29898,
29990,
29897,
13,
13,
12,
29937,
29891,
1372,
29918,
2704,
353,
18074,
2273,
29898,
12676,
29918,
26613,
1965,
29918,
2704,
29898,
29891,
1372,
29918,
11965,
29892,
343,
1372,
876,
13,
12,
2158,
703,
23084,
2463,
491,
4852,
718,
1072,
29918,
1853,
718,
16521,
373,
4321,
848,
505,
7743,
1159,
13,
13,
12,
29937,
1653,
29240,
934,
13,
12,
333,
29918,
13757,
353,
10518,
29889,
949,
29918,
7638,
877,
21546,
24713,
29914,
1688,
29889,
7638,
1495,
1839,
333,
2033,
13,
12,
1491,
6737,
29918,
2176,
353,
10518,
29889,
17271,
29898,
333,
29918,
13757,
29892,
4341,
29922,
1839,
333,
11287,
13,
12,
1491,
6737,
29918,
2176,
1839,
276,
2608,
749,
2033,
353,
343,
1372,
29918,
11965,
13,
12,
1491,
6737,
29918,
2176,
1839,
276,
2608,
749,
2033,
353,
29240,
29918,
2176,
1839,
276,
2608,
749,
13359,
1958,
29898,
2892,
921,
29901,
544,
1540,
29898,
29916,
876,
13,
13,
12,
1491,
6737,
29918,
2176,
29889,
517,
29918,
7638,
877,
21546,
24713,
29914,
1491,
6737,
29889,
7638,
742,
4341,
29922,
1839,
333,
742,
525,
276,
2608,
749,
7464,
2380,
29922,
8824,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
12,
29937,
10726,
1546,
29901,
13,
12,
29937,
3731,
29878,
13,
12,
29937,
5608,
13,
12,
29937,
364,
1341,
13,
12,
276,
11476,
29918,
1853,
353,
525,
4501,
29878,
29915,
13,
12,
15770,
675,
29918,
2176,
353,
5852,
13,
13,
12,
276,
11476,
29898,
276,
11476,
29918,
1853,
29892,
3918,
675,
29918,
2176,
29892,
4744,
29922,
8824,
29897,
2
] |
features/steps/backup.py | Zierman/tabsave | 0 | 41079 | <gh_stars>0
from io import StringIO
from behave import *
import tabsave
from features.environment import *
@given(u'there was no game save named "{game_save:w}"')
def step_impl(context, game_save):
remove_game_saves(game_save)
assert not game_save_exists(game_save), f'Expected {game_save} not to exist, but it exists.'
use_step_matcher("re")
@when(r'Alex tries to run `tabsave (\w+) ?([^`]*)`')
def step_impl(context, game_save: str, options_str: str):
options = get_argument_list(options_str)
context.add_result(Runnable(tabsave.main, (game_save, *options)))
@when(u'Alex runs `tabsave (\w+) ([^`]+)`')
def step_impl(context, game_save: str, options_str: str):
options = get_argument_list(options_str)
result = context.add_result(Runnable(tabsave.main, (game_save, *options)))
if result.exception is not None:
raise result.exception
@when(u'Alex runs `tabsave (\w+)`')
def step_impl(context, game_save: str):
result = context.add_result(Runnable(tabsave.main, (game_save,)))
if result.exception is not None:
raise result.exception
use_step_matcher("parse")
@then(u'Alex should get an error')
def step_impl(context):
assert get_next_run_result(context).exception is not None, f'Expected an error that was not found.'
@given(u'there was a game save named "{game_save:w}"')
def step_impl(context, game_save: str):
create_game_save(game_save)
assert game_save_exists(game_save), f'{game_save} was missing expected files.'
@then(u'game save "{game_save:w}" will have 1 backup which is a copy of the current save')
def step_impl(context, game_save: str):
backup_dir = TEST_GAME_SAVE_DIR / 'backups' / game_save
count = 0
for path_shallow in backup_dir.iterdir():
count += 1
for path in path_shallow.iterdir():
with open(path, 'r') as f:
contents_in_backup = f.readlines()
with open(TEST_GAME_SAVE_DIR / path.name) as f:
contents_in_active_save = f.readlines()
assert contents_in_backup == contents_in_active_save, f'{path} does not match contents of ' \
f'{TEST_GAME_SAVE_DIR / path.name}.'
assert count == 1, f'Expected 1 backup but found {count}.'
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
12013,
1053,
1714,
5971,
13,
13,
3166,
23389,
1053,
334,
13,
13,
5215,
4434,
7620,
13,
3166,
5680,
29889,
20944,
1053,
334,
13,
13,
13,
29992,
29887,
5428,
29898,
29884,
29915,
12711,
471,
694,
3748,
4078,
4257,
29850,
11802,
29918,
7620,
29901,
29893,
5038,
1495,
13,
1753,
4331,
29918,
13699,
29898,
4703,
29892,
3748,
29918,
7620,
1125,
13,
1678,
3349,
29918,
11802,
29918,
29879,
5989,
29898,
11802,
29918,
7620,
29897,
13,
1678,
4974,
451,
3748,
29918,
7620,
29918,
9933,
29898,
11802,
29918,
7620,
511,
285,
29915,
1252,
6021,
426,
11802,
29918,
7620,
29913,
451,
304,
1863,
29892,
541,
372,
4864,
6169,
13,
13,
13,
1509,
29918,
10568,
29918,
4352,
261,
703,
276,
1159,
13,
13,
13,
29992,
8256,
29898,
29878,
29915,
17406,
14335,
304,
1065,
421,
3891,
7620,
3441,
29893,
28135,
1577,
4197,
29985,
29952,
14178,
3569,
1495,
13,
1753,
4331,
29918,
13699,
29898,
4703,
29892,
3748,
29918,
7620,
29901,
851,
29892,
3987,
29918,
710,
29901,
851,
1125,
13,
1678,
3987,
353,
679,
29918,
23516,
29918,
1761,
29898,
6768,
29918,
710,
29897,
13,
1678,
3030,
29889,
1202,
29918,
2914,
29898,
29934,
21725,
29898,
3891,
7620,
29889,
3396,
29892,
313,
11802,
29918,
7620,
29892,
334,
6768,
4961,
13,
13,
13,
29992,
8256,
29898,
29884,
29915,
17406,
6057,
421,
3891,
7620,
3441,
29893,
28135,
9310,
29985,
29952,
10062,
3569,
1495,
13,
1753,
4331,
29918,
13699,
29898,
4703,
29892,
3748,
29918,
7620,
29901,
851,
29892,
3987,
29918,
710,
29901,
851,
1125,
13,
1678,
3987,
353,
679,
29918,
23516,
29918,
1761,
29898,
6768,
29918,
710,
29897,
13,
1678,
1121,
353,
3030,
29889,
1202,
29918,
2914,
29898,
29934,
21725,
29898,
3891,
7620,
29889,
3396,
29892,
313,
11802,
29918,
7620,
29892,
334,
6768,
4961,
13,
1678,
565,
1121,
29889,
11739,
338,
451,
6213,
29901,
13,
4706,
12020,
1121,
29889,
11739,
13,
13,
13,
29992,
8256,
29898,
29884,
29915,
17406,
6057,
421,
3891,
7620,
3441,
29893,
29974,
3569,
1495,
13,
1753,
4331,
29918,
13699,
29898,
4703,
29892,
3748,
29918,
7620,
29901,
851,
1125,
13,
1678,
1121,
353,
3030,
29889,
1202,
29918,
2914,
29898,
29934,
21725,
29898,
3891,
7620,
29889,
3396,
29892,
313,
11802,
29918,
7620,
29892,
4961,
13,
1678,
565,
1121,
29889,
11739,
338,
451,
6213,
29901,
13,
4706,
12020,
1121,
29889,
11739,
13,
13,
13,
1509,
29918,
10568,
29918,
4352,
261,
703,
5510,
1159,
13,
13,
13,
29992,
6098,
29898,
29884,
29915,
17406,
881,
679,
385,
1059,
1495,
13,
1753,
4331,
29918,
13699,
29898,
4703,
1125,
13,
1678,
4974,
679,
29918,
4622,
29918,
3389,
29918,
2914,
29898,
4703,
467,
11739,
338,
451,
6213,
29892,
285,
29915,
1252,
6021,
385,
1059,
393,
471,
451,
1476,
6169,
13,
13,
13,
29992,
29887,
5428,
29898,
29884,
29915,
12711,
471,
263,
3748,
4078,
4257,
29850,
11802,
29918,
7620,
29901,
29893,
5038,
1495,
13,
1753,
4331,
29918,
13699,
29898,
4703,
29892,
3748,
29918,
7620,
29901,
851,
1125,
13,
1678,
1653,
29918,
11802,
29918,
7620,
29898,
11802,
29918,
7620,
29897,
13,
1678,
4974,
3748,
29918,
7620,
29918,
9933,
29898,
11802,
29918,
7620,
511,
285,
29915,
29912,
11802,
29918,
7620,
29913,
471,
4567,
3806,
2066,
6169,
13,
13,
13,
29992,
6098,
29898,
29884,
29915,
11802,
4078,
29850,
11802,
29918,
7620,
29901,
29893,
5038,
674,
505,
29871,
29896,
16199,
607,
338,
263,
3509,
310,
278,
1857,
4078,
1495,
13,
1753,
4331,
29918,
13699,
29898,
4703,
29892,
3748,
29918,
7620,
29901,
851,
1125,
13,
1678,
16199,
29918,
3972,
353,
17067,
1254,
29918,
12739,
2303,
29918,
29903,
7520,
29923,
29918,
9464,
847,
525,
1627,
14340,
29915,
847,
3748,
29918,
7620,
13,
13,
1678,
2302,
353,
29871,
29900,
13,
1678,
363,
2224,
29918,
845,
9536,
297,
16199,
29918,
3972,
29889,
1524,
3972,
7295,
13,
4706,
2302,
4619,
29871,
29896,
13,
4706,
363,
2224,
297,
2224,
29918,
845,
9536,
29889,
1524,
3972,
7295,
13,
9651,
411,
1722,
29898,
2084,
29892,
525,
29878,
1495,
408,
285,
29901,
13,
18884,
8118,
29918,
262,
29918,
1627,
786,
353,
285,
29889,
949,
9012,
580,
13,
9651,
411,
1722,
29898,
18267,
29918,
12739,
2303,
29918,
29903,
7520,
29923,
29918,
9464,
847,
2224,
29889,
978,
29897,
408,
285,
29901,
13,
18884,
8118,
29918,
262,
29918,
4925,
29918,
7620,
353,
285,
29889,
949,
9012,
580,
13,
9651,
4974,
8118,
29918,
262,
29918,
1627,
786,
1275,
8118,
29918,
262,
29918,
4925,
29918,
7620,
29892,
285,
29915,
29912,
2084,
29913,
947,
451,
1993,
8118,
310,
525,
320,
13,
462,
462,
462,
462,
29871,
285,
29915,
29912,
18267,
29918,
12739,
2303,
29918,
29903,
7520,
29923,
29918,
9464,
847,
2224,
29889,
978,
1836,
29915,
13,
1678,
4974,
2302,
1275,
29871,
29896,
29892,
285,
29915,
1252,
6021,
29871,
29896,
16199,
541,
1476,
426,
2798,
1836,
29915,
13,
2
] |
lambda/lambda_read_pdf_s3_trigger.py | srcecde/aws-tutorial-code | 105 | 1609386 | <filename>lambda/lambda_read_pdf_s3_trigger.py
# -*- coding: utf-8 -*-
__author__ = "<NAME> (Srce Cde)"
__license__ = "MIT"
__email__ = "<EMAIL>"
__maintainer__ = "<NAME> (Srce Cde)"
import json
import boto3
import fitz
def lambda_handler(event, context):
"""Read file from s3 on trigger."""
# boto3 client
s3 = boto3.client("s3")
if event:
file_obj = event["Records"][0]
# fetching bucket name from event
bucketname = str(file_obj["s3"]["bucket"]["name"])
# fetching file name from event
filename = str(file_obj["s3"]["object"]["key"])
# retrieving object from S3
fileObj = s3.get_object(Bucket=bucketname, Key=filename)
# reading botocore stream
file_content = fileObj["Body"].read()
# loading pdf from memory/stream
with fitz.open(stream=file_content, filetype="pdf") as doc:
text = ""
# iterating through pdf file pages
for page in doc:
# fetching & appending text to text variable of each page
text += page.getText()
print(text)
return {"statusCode": 200, "body": json.dumps("Thanks from Srce Cde!")}
| [
1,
529,
9507,
29958,
2892,
29914,
2892,
29918,
949,
29918,
5140,
29918,
29879,
29941,
29918,
21001,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
1649,
8921,
1649,
353,
9872,
5813,
29958,
313,
29903,
29878,
346,
315,
311,
5513,
13,
1649,
506,
1947,
1649,
353,
376,
26349,
29908,
13,
1649,
5269,
1649,
353,
9872,
26862,
6227,
11903,
13,
1649,
29885,
2365,
4008,
1649,
353,
9872,
5813,
29958,
313,
29903,
29878,
346,
315,
311,
5513,
13,
13,
5215,
4390,
13,
5215,
289,
3747,
29941,
13,
5215,
285,
2784,
13,
13,
13,
1753,
14013,
29918,
13789,
29898,
3696,
29892,
3030,
1125,
13,
1678,
9995,
6359,
934,
515,
269,
29941,
373,
7135,
1213,
15945,
13,
1678,
396,
289,
3747,
29941,
3132,
13,
1678,
269,
29941,
353,
289,
3747,
29941,
29889,
4645,
703,
29879,
29941,
1159,
13,
1678,
565,
1741,
29901,
13,
4706,
934,
29918,
5415,
353,
1741,
3366,
4789,
4339,
3108,
29961,
29900,
29962,
13,
4706,
396,
6699,
292,
20968,
1024,
515,
1741,
13,
4706,
20968,
978,
353,
851,
29898,
1445,
29918,
5415,
3366,
29879,
29941,
3108,
3366,
21454,
3108,
3366,
978,
20068,
13,
4706,
396,
6699,
292,
934,
1024,
515,
1741,
13,
4706,
10422,
353,
851,
29898,
1445,
29918,
5415,
3366,
29879,
29941,
3108,
3366,
3318,
3108,
3366,
1989,
20068,
13,
4706,
396,
5663,
15387,
1203,
515,
317,
29941,
13,
4706,
934,
9930,
353,
269,
29941,
29889,
657,
29918,
3318,
29898,
29933,
2707,
300,
29922,
21454,
978,
29892,
7670,
29922,
9507,
29897,
13,
4706,
396,
5183,
9225,
542,
487,
4840,
13,
4706,
934,
29918,
3051,
353,
934,
9930,
3366,
8434,
16862,
949,
580,
13,
13,
4706,
396,
8363,
13552,
515,
3370,
29914,
5461,
13,
4706,
411,
285,
2784,
29889,
3150,
29898,
5461,
29922,
1445,
29918,
3051,
29892,
934,
1853,
543,
5140,
1159,
408,
1574,
29901,
13,
9651,
1426,
353,
5124,
13,
9651,
396,
4256,
1218,
1549,
13552,
934,
6515,
13,
9651,
363,
1813,
297,
1574,
29901,
13,
18884,
396,
6699,
292,
669,
623,
2548,
1426,
304,
1426,
2286,
310,
1269,
1813,
13,
18884,
1426,
4619,
1813,
29889,
18516,
580,
13,
13,
4706,
1596,
29898,
726,
29897,
13,
1678,
736,
8853,
4882,
3399,
1115,
29871,
29906,
29900,
29900,
29892,
376,
2587,
1115,
4390,
29889,
29881,
17204,
703,
16894,
515,
26250,
346,
315,
311,
29991,
1159,
29913,
13,
2
] |
catalog/bindings/gmd/linear_ring.py | NIVANorge/s-enda-playground | 0 | 104072 | <gh_stars>0
from dataclasses import dataclass
from bindings.gmd.linear_ring_type import LinearRingType
__NAMESPACE__ = "http://www.opengis.net/gml"
@dataclass
class LinearRing(LinearRingType):
"""A LinearRing is defined by four or more coordinate tuples, with linear
interpolation between them; the first and last coordinates shall be
coincident.
The number of direct positions in the list shall be at least four.
"""
class Meta:
namespace = "http://www.opengis.net/gml"
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
848,
13203,
1053,
848,
1990,
13,
3166,
7868,
886,
29889,
29887,
3487,
29889,
10660,
29918,
5393,
29918,
1853,
1053,
22985,
29934,
292,
1542,
13,
13,
1649,
5813,
5550,
11538,
1649,
353,
376,
1124,
597,
1636,
29889,
459,
996,
275,
29889,
1212,
29914,
29887,
828,
29908,
13,
13,
13,
29992,
1272,
1990,
13,
1990,
22985,
29934,
292,
29898,
12697,
29934,
292,
1542,
1125,
13,
1678,
9995,
29909,
22985,
29934,
292,
338,
3342,
491,
3023,
470,
901,
14821,
5291,
2701,
29892,
411,
5608,
13,
1678,
29694,
1546,
963,
29936,
278,
937,
322,
1833,
10350,
4091,
367,
13,
1678,
22819,
1693,
29889,
13,
13,
1678,
450,
1353,
310,
1513,
11909,
297,
278,
1051,
4091,
367,
472,
3203,
3023,
29889,
13,
1678,
9995,
13,
13,
1678,
770,
20553,
29901,
13,
4706,
7397,
353,
376,
1124,
597,
1636,
29889,
459,
996,
275,
29889,
1212,
29914,
29887,
828,
29908,
13,
2
] |
plumcot_prodigy/entity.py | julietteBergoend/plumcot-prodigy | 1 | 28637 | <filename>plumcot_prodigy/entity.py<gh_stars>1-10
import prodigy
from prodigy.components.preprocess import add_tokens, split_sentences
from plumcot_prodigy.custom_loaders import *
import requests
from plumcot_prodigy.video import mkv_to_base64
from typing import Dict, List, Text, Union
from typing_extensions import Literal
import spacy
from pathlib import Path
""" Annotate entity linking (3rd person & names)
Displays sentences with tokens to annotate
If the token is an entity linking, write the name of the corresponding character in the text input of Prodigy
Arguments : ep : episode to annotate (e.g TheWalkingDead.Season01.Episode01),
Start prodigy : prodigy entity_linking entity_data <episode_name> <path_to_corpora> -F plumcot_prodigy/entity.py
"""
def remove_video_before_db(examples: List[Dict]) -> List[Dict]:
"""Remove (heavy) "video" and "pictures" key from examples before saving to Prodigy database
Parameters
----------
examples : list of dict
Examples.
Returns
-------
examples : list of dict
Examples with 'video' or 'pictures' key removed.
"""
for eg in examples:
if "video" in eg:
del eg["video"]
if 'field_suggestions' in eg:
del eg['field_suggestions']
return examples
def entity_linking(episode, user_path):
DATA_PLUMCOT = user_path
show = episode.split('.')[0]
season = episode.split('.')[1]
ep= episode.split('.')[2]
# load episode
episodes_list = [episode]
for episode in episodes_list:
print("\nCurrent Episode :", episode)
# process serie or film
if len(episode.split('.')) == 3:
series, _, _ = episode.split('.')
elif len(episode.split('.')) == 2:
series, _ = episode.split('.')
# load mkv, aligned file & aligned sentences
mkv, aligned, sentences = load_files(series, episode, DATA_PLUMCOT)
# criteria : nouns or pronouns to display automaticaly
pronouns = ["he", "she", "his", "her", "himself", "herself", "him"]
nouns = ["mother", "son", "daughter", "wife", "husband", "father", "uncle", "cousin", "aunt", "brother", "sister"]
# store sentence id with criteria position(s) (PROPN or criteria list)
store_ids = {}
# labels to feed in Prodigy
labels = []
# for each sentence with criteria, store idx and positions
for idx, sentence in enumerate(sentences) :
# store word position with criteria
store_position = []
for token in sentence:
# check if it is a PRON or DET
if str(token).lower() in pronouns :
# check if entity_linking field is empty
if token._.entity_linking == "_" or token._.entity_linking == "?":
store_position.append(str(sentence).split().index(str(token)))
# check if it is a name
if token.pos_ == "PROPN":
if str(token) != "ve" and str(token) != "m" and str(token)[0].isupper():
# check if entity_linking field is empty
if token._.entity_linking == "_" or token._.entity_linking == "?":
store_position.append(str(sentence).split().index(str(token)))
# check if it is in nouns
if str(token).lower() in nouns :
# check if entity_linking field is empty
if token._.entity_linking == "_" or token._.entity_linking == "?":
store_position.append(str(sentence).split().index(str(token)))
# keep sentence id, tokens positions, sentence id
store_ids[idx] = (store_position, sentence)
# process sentences for prodigy
for i,j in store_ids.items():
to_return = {"text":''}
# tokens displayed in Prodigy
tokens = []
# spans for EL
spans = []
# character counter in the text
start = 0
# word id
ids = 0
#if previous != None and nexts != None:
if j[0]:
#print(sentences[i])
to_return['text'] += str(sentences[i])
print(i, to_return['text'])
# get tokens
for word in str(sentences[i]).split(' '):
# do no add +1 to start counter for last word
if "\n" in word :
tokens.append({"text": str(word), "start": start , "end": len(str(word))+start-1, "id": ids, "ws": True})
else :
tokens.append({"text": str(word), "start": start , "end": len(str(word))+start, "id": ids, "ws": True})
start+= len(str(word))+1
# change start token for next word
ids+=1
to_return["tokens"] = tokens
# get spans
for position in j[0]:
for dic in tokens:
if position == dic["id"]:
#print("FIND TOKEN",dic["text"])
#print(dic["start"], dic["end"])
corresponding_token = to_return["text"][dic["start"]:dic["end"]].lower()
spans.append({"start" : dic["start"], "end" : dic["end"], "token_start": position, "token_end":position, "label": "EL1"})
to_return["spans"] = spans
# get characters of the show
with open(f"{DATA_PLUMCOT}/{series}/characters.txt", "r") as f:
speakers = [line.split(",")[0] for line in f.readlines()]
# get video (add context)
try :
if i not in range(0,2):
start_left = sentences[i-2]
end_left = sentences[i]
# beug : left index = last sentence index in the list when current sentence is 0
else:
start_left = None
end_left = sentences[i]
except IndexError:
start_left = None
end_left = None
# video
if start_left != None and end_left != None:
start_time = start_left._.start_time
end_time= end_left._.end_time +0.1
else:
start_time = j[1]._.start_time
end_time = j[1]._.end_time +0.1
# corresponding video excerpt
video_excerpt = mkv_to_base64(mkv, start_time, end_time+0.01)
to_return["field_id"] = "entity",
to_return["field_placeholder"] = "firstname_lastname",
to_return["field_rows"] = 1,
to_return["field_suggestions"] = speakers
to_return["sentence"] = str(j[1])
to_return["start_time"] = j[1]._.start_time
to_return["end_time"] = j[1]._.end_time
to_return["meta"] = {"episode": episode, "sentence_id": f"{i}", "processing":f"{i}/{len(sentences)}"}
to_return["video"] = video_excerpt
yield to_return
@prodigy.recipe("entity_linking",
dataset=("The dataset to save to", "positional", None, str),
episode=("Episode to annotate (e.g : TheWalkingDead.Season01.Episode01", "positional", None, str),
user_path=("Path to Plumcot corpora", "positional", None, str),
)
def addresse(dataset: Text, episode: Text, user_path: Text) -> Dict:
blocks = [
{"view_id": "audio"}, {"view_id": "relations"},{"view_id": "text_input", "field_id": "input_1", "field_placeholder":"Type here for EL1..."},{"view_id": "text_input", "field_id": "input_2", "field_placeholder":"Type here for EL2..."}, {"view_id": "text_input", "field_id": "input_3", "field_placeholder":"Type here for EL3..."},
]
stream = entity_linking(episode, user_path)
return {
"dataset": dataset,
"view_id": "blocks",
"stream": stream,
"before_db": remove_video_before_db,
"config": {
"blocks": blocks,
"wrap_relations" : True, # apply line breaks
"hide_newlines": True,
"audio_loop": False,
"audio_autoplay": True,
"show_audio_minimap": False,
"show_audio_timeline": False,
"show_audio_cursor": False,
"relations_span_labels" : ["EL1", "EL2", "EL3"],
"field_autofocus" : False,
},
}
| [
1,
529,
9507,
29958,
572,
398,
26235,
29918,
771,
7501,
29891,
29914,
10041,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
410,
7501,
29891,
13,
3166,
410,
7501,
29891,
29889,
14036,
29889,
1457,
5014,
1053,
788,
29918,
517,
12360,
29892,
6219,
29918,
18616,
2063,
13,
3166,
715,
398,
26235,
29918,
771,
7501,
29891,
29889,
6341,
29918,
1359,
414,
1053,
334,
13,
5215,
7274,
13,
3166,
715,
398,
26235,
29918,
771,
7501,
29891,
29889,
9641,
1053,
14690,
29894,
29918,
517,
29918,
3188,
29953,
29946,
13,
3166,
19229,
1053,
360,
919,
29892,
2391,
29892,
3992,
29892,
7761,
13,
3166,
19229,
29918,
24299,
1053,
5449,
284,
13,
5215,
805,
4135,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
15945,
29908,
530,
1333,
403,
7855,
25236,
313,
29941,
5499,
2022,
669,
2983,
29897,
13,
308,
13,
4706,
3295,
12922,
25260,
411,
18897,
304,
9732,
403,
13,
4706,
960,
278,
5993,
338,
385,
7855,
25236,
29892,
2436,
278,
1024,
310,
278,
6590,
2931,
297,
278,
1426,
1881,
310,
1019,
7501,
29891,
13,
308,
13,
4706,
11842,
9331,
584,
9358,
584,
12720,
304,
9732,
403,
313,
29872,
29889,
29887,
450,
29956,
2235,
292,
29928,
1479,
29889,
2008,
1658,
29900,
29896,
29889,
29923,
12907,
29900,
29896,
511,
13,
632,
13,
1678,
7370,
410,
7501,
29891,
584,
410,
7501,
29891,
7855,
29918,
2324,
292,
7855,
29918,
1272,
529,
1022,
275,
356,
29918,
978,
29958,
529,
2084,
29918,
517,
29918,
2616,
1971,
29874,
29958,
448,
29943,
715,
398,
26235,
29918,
771,
7501,
29891,
29914,
10041,
29889,
2272,
418,
13,
13,
15945,
29908,
13,
1753,
3349,
29918,
9641,
29918,
11083,
29918,
2585,
29898,
19057,
29901,
2391,
29961,
21533,
2314,
1599,
2391,
29961,
21533,
5387,
13,
1678,
9995,
15941,
313,
354,
5301,
29897,
376,
9641,
29908,
322,
376,
29886,
10373,
29908,
1820,
515,
6455,
1434,
14238,
304,
1019,
7501,
29891,
2566,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
6455,
584,
1051,
310,
9657,
13,
4706,
1222,
9422,
29889,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
1678,
6455,
584,
1051,
310,
9657,
13,
4706,
1222,
9422,
411,
525,
9641,
29915,
470,
525,
29886,
10373,
29915,
1820,
6206,
29889,
13,
1678,
9995,
13,
1678,
363,
8087,
297,
6455,
29901,
13,
4706,
565,
376,
9641,
29908,
297,
8087,
29901,
13,
9651,
628,
8087,
3366,
9641,
3108,
13,
4706,
565,
525,
2671,
29918,
29879,
12981,
2297,
29915,
297,
8087,
29901,
13,
9651,
628,
8087,
1839,
2671,
29918,
29879,
12981,
2297,
2033,
13,
13,
1678,
736,
6455,
13,
13,
1753,
7855,
29918,
2324,
292,
29898,
1022,
275,
356,
29892,
1404,
29918,
2084,
1125,
13,
268,
13,
1678,
360,
8254,
29918,
7390,
5005,
29907,
2891,
353,
1404,
29918,
2084,
13,
268,
13,
1678,
1510,
353,
12720,
29889,
5451,
12839,
29861,
29900,
29962,
13,
1678,
4259,
353,
12720,
29889,
5451,
12839,
29861,
29896,
29962,
13,
1678,
9358,
29922,
12720,
29889,
5451,
12839,
29861,
29906,
29962,
13,
268,
13,
1678,
396,
2254,
12720,
13,
1678,
23238,
29918,
1761,
353,
518,
1022,
275,
356,
29962,
13,
268,
13,
1678,
363,
12720,
297,
23238,
29918,
1761,
29901,
13,
4706,
1596,
14182,
29876,
7583,
382,
12907,
584,
613,
12720,
29897,
13,
308,
13,
4706,
396,
1889,
7080,
470,
2706,
13,
4706,
565,
7431,
29898,
1022,
275,
356,
29889,
5451,
877,
6169,
876,
1275,
29871,
29941,
29901,
13,
9651,
3652,
29892,
17117,
903,
353,
12720,
29889,
5451,
12839,
1495,
13,
4706,
25342,
7431,
29898,
1022,
275,
356,
29889,
5451,
877,
6169,
876,
1275,
29871,
29906,
29901,
13,
9651,
3652,
29892,
903,
353,
12720,
29889,
5451,
12839,
1495,
13,
632,
13,
4706,
396,
2254,
14690,
29894,
29892,
26118,
934,
669,
26118,
25260,
13,
4706,
14690,
29894,
29892,
26118,
29892,
25260,
353,
2254,
29918,
5325,
29898,
13757,
29892,
12720,
29892,
360,
8254,
29918,
7390,
5005,
29907,
2891,
29897,
13,
13,
4706,
396,
16614,
584,
302,
1309,
29879,
470,
11504,
1309,
29879,
304,
2479,
5092,
936,
29891,
13,
4706,
11504,
1309,
29879,
353,
6796,
354,
613,
376,
11360,
613,
376,
22880,
613,
376,
2276,
613,
376,
26994,
1311,
613,
376,
29882,
414,
761,
613,
376,
26994,
3108,
13,
4706,
302,
1309,
29879,
353,
6796,
29885,
1228,
613,
376,
1100,
613,
376,
29881,
6334,
357,
613,
376,
29893,
1607,
613,
376,
14116,
4980,
613,
376,
22212,
613,
376,
348,
2841,
613,
376,
29883,
17790,
613,
376,
29874,
1657,
613,
376,
6729,
721,
613,
376,
29879,
1531,
3108,
13,
13,
4706,
396,
3787,
10541,
1178,
411,
16614,
2602,
29898,
29879,
29897,
313,
8618,
15695,
470,
16614,
1051,
29897,
13,
4706,
3787,
29918,
4841,
353,
6571,
13,
13,
4706,
396,
11073,
304,
8343,
297,
1019,
7501,
29891,
13,
4706,
11073,
353,
5159,
13,
13,
4706,
396,
363,
1269,
10541,
411,
16614,
29892,
3787,
22645,
322,
11909,
13,
4706,
363,
22645,
29892,
10541,
297,
26985,
29898,
18616,
2063,
29897,
584,
13,
13,
9651,
396,
3787,
1734,
2602,
411,
16614,
13,
9651,
3787,
29918,
3283,
353,
5159,
13,
13,
9651,
363,
5993,
297,
10541,
29901,
13,
18884,
396,
1423,
565,
372,
338,
263,
12089,
1164,
470,
360,
2544,
13,
18884,
565,
851,
29898,
6979,
467,
13609,
580,
297,
11504,
1309,
29879,
584,
13,
462,
308,
13,
462,
1678,
396,
1423,
565,
7855,
29918,
2324,
292,
1746,
338,
4069,
13,
462,
1678,
565,
5993,
3032,
29889,
10041,
29918,
2324,
292,
1275,
11119,
29908,
470,
5993,
3032,
29889,
10041,
29918,
2324,
292,
1275,
376,
29973,
1115,
13,
462,
4706,
3787,
29918,
3283,
29889,
4397,
29898,
710,
29898,
18616,
663,
467,
5451,
2141,
2248,
29898,
710,
29898,
6979,
4961,
13,
13,
18884,
396,
1423,
565,
372,
338,
263,
1024,
268,
13,
18884,
565,
5993,
29889,
1066,
29918,
1275,
376,
8618,
15695,
1115,
462,
418,
13,
462,
1678,
565,
851,
29898,
6979,
29897,
2804,
376,
345,
29908,
322,
851,
29898,
6979,
29897,
2804,
376,
29885,
29908,
322,
851,
29898,
6979,
9601,
29900,
1822,
275,
21064,
7295,
13,
462,
268,
13,
462,
4706,
396,
1423,
565,
7855,
29918,
2324,
292,
1746,
338,
4069,
13,
462,
4706,
565,
5993,
3032,
29889,
10041,
29918,
2324,
292,
1275,
11119,
29908,
470,
5993,
3032,
29889,
10041,
29918,
2324,
292,
1275,
376,
29973,
1115,
13,
462,
9651,
3787,
29918,
3283,
29889,
4397,
29898,
710,
29898,
18616,
663,
467,
5451,
2141,
2248,
29898,
710,
29898,
6979,
4961,
13,
18884,
13,
18884,
396,
1423,
565,
372,
338,
297,
302,
1309,
29879,
13,
18884,
565,
851,
29898,
6979,
467,
13609,
580,
297,
302,
1309,
29879,
584,
13,
462,
1678,
396,
1423,
565,
7855,
29918,
2324,
292,
1746,
338,
4069,
13,
462,
1678,
565,
5993,
3032,
29889,
10041,
29918,
2324,
292,
1275,
11119,
29908,
470,
5993,
3032,
29889,
10041,
29918,
2324,
292,
1275,
376,
29973,
1115,
13,
462,
4706,
3787,
29918,
3283,
29889,
4397,
29898,
710,
29898,
18616,
663,
467,
5451,
2141,
2248,
29898,
710,
29898,
6979,
4961,
13,
13,
9651,
396,
3013,
10541,
1178,
29892,
18897,
11909,
29892,
10541,
1178,
13,
9651,
3787,
29918,
4841,
29961,
13140,
29962,
353,
313,
8899,
29918,
3283,
29892,
10541,
29897,
13,
13,
4706,
396,
1889,
25260,
363,
410,
7501,
29891,
13,
4706,
363,
474,
29892,
29926,
297,
3787,
29918,
4841,
29889,
7076,
7295,
13,
13,
9651,
304,
29918,
2457,
353,
8853,
726,
1115,
4907,
29913,
13,
13,
9651,
396,
18897,
8833,
297,
1019,
7501,
29891,
13,
9651,
18897,
353,
5159,
13,
13,
9651,
396,
805,
550,
363,
14845,
13,
9651,
805,
550,
353,
5159,
13,
13,
9651,
396,
2931,
6795,
297,
278,
1426,
13,
9651,
1369,
353,
29871,
29900,
13,
13,
9651,
396,
1734,
1178,
13,
9651,
18999,
353,
29871,
29900,
13,
259,
13,
9651,
396,
361,
3517,
2804,
6213,
322,
2446,
29879,
2804,
6213,
29901,
13,
9651,
565,
432,
29961,
29900,
5387,
13,
18884,
396,
2158,
29898,
18616,
2063,
29961,
29875,
2314,
13,
18884,
304,
29918,
2457,
1839,
726,
2033,
4619,
851,
29898,
18616,
2063,
29961,
29875,
2314,
13,
18884,
1596,
29898,
29875,
29892,
304,
29918,
2457,
1839,
726,
11287,
13,
13,
18884,
396,
679,
18897,
13,
18884,
363,
1734,
297,
851,
29898,
18616,
2063,
29961,
29875,
14664,
5451,
877,
525,
1125,
13,
462,
1678,
396,
437,
694,
788,
718,
29896,
304,
1369,
6795,
363,
1833,
1734,
13,
462,
1678,
565,
6634,
29876,
29908,
297,
1734,
584,
29871,
13,
462,
4706,
18897,
29889,
4397,
3319,
29908,
726,
1115,
851,
29898,
1742,
511,
376,
2962,
1115,
1369,
1919,
376,
355,
1115,
7431,
29898,
710,
29898,
1742,
876,
29974,
2962,
29899,
29896,
29892,
376,
333,
1115,
18999,
29892,
376,
5652,
1115,
5852,
1800,
13,
13,
462,
1678,
1683,
584,
29871,
13,
462,
4706,
18897,
29889,
4397,
3319,
29908,
726,
1115,
851,
29898,
1742,
511,
376,
2962,
1115,
1369,
1919,
376,
355,
1115,
7431,
29898,
710,
29898,
1742,
876,
29974,
2962,
29892,
376,
333,
1115,
18999,
29892,
376,
5652,
1115,
5852,
1800,
13,
462,
4706,
1369,
23661,
7431,
29898,
710,
29898,
1742,
876,
29974,
29896,
13,
462,
1678,
396,
1735,
1369,
5993,
363,
2446,
1734,
13,
462,
1678,
18999,
23661,
29896,
13,
13,
18884,
304,
29918,
2457,
3366,
517,
12360,
3108,
353,
18897,
13,
13,
18884,
396,
679,
805,
550,
13,
18884,
363,
2602,
297,
432,
29961,
29900,
5387,
13,
462,
1678,
363,
12124,
297,
18897,
29901,
13,
462,
4706,
565,
2602,
1275,
12124,
3366,
333,
3108,
29901,
13,
462,
9651,
396,
2158,
703,
29943,
22255,
7495,
29968,
1430,
613,
27774,
3366,
726,
20068,
13,
462,
9651,
396,
2158,
29898,
27774,
3366,
2962,
12436,
12124,
3366,
355,
20068,
13,
462,
9651,
6590,
29918,
6979,
353,
304,
29918,
2457,
3366,
726,
3108,
29961,
27774,
3366,
2962,
3108,
29901,
27774,
3366,
355,
3108,
1822,
13609,
580,
13,
462,
9651,
805,
550,
29889,
4397,
3319,
29908,
2962,
29908,
584,
12124,
3366,
2962,
12436,
376,
355,
29908,
584,
12124,
3366,
355,
12436,
376,
6979,
29918,
2962,
1115,
2602,
29892,
376,
6979,
29918,
355,
1115,
3283,
29892,
376,
1643,
1115,
376,
6670,
29896,
29908,
1800,
13,
13,
18884,
304,
29918,
2457,
3366,
1028,
550,
3108,
353,
805,
550,
259,
13,
13,
18884,
396,
679,
4890,
310,
278,
1510,
13,
18884,
411,
1722,
29898,
29888,
29908,
29912,
14573,
29918,
7390,
5005,
29907,
2891,
6822,
29912,
13757,
6822,
3090,
21706,
29889,
3945,
613,
376,
29878,
1159,
408,
285,
29901,
13,
462,
1678,
7726,
414,
353,
518,
1220,
29889,
5451,
28165,
1159,
29961,
29900,
29962,
363,
1196,
297,
285,
29889,
949,
9012,
580,
29962,
13,
462,
268,
13,
18884,
396,
679,
4863,
313,
1202,
3030,
29897,
13,
18884,
1018,
584,
13,
462,
1678,
565,
474,
451,
297,
3464,
29898,
29900,
29892,
29906,
1125,
13,
462,
4706,
1369,
29918,
1563,
353,
25260,
29961,
29875,
29899,
29906,
29962,
13,
462,
4706,
1095,
29918,
1563,
353,
25260,
29961,
29875,
29962,
13,
462,
4706,
396,
367,
688,
584,
2175,
2380,
353,
1833,
10541,
2380,
297,
278,
1051,
746,
1857,
10541,
338,
29871,
29900,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
1369,
29918,
1563,
353,
6213,
13,
462,
4706,
1095,
29918,
1563,
353,
25260,
29961,
29875,
29962,
13,
13,
18884,
5174,
11374,
2392,
29901,
13,
462,
1678,
1369,
29918,
1563,
353,
6213,
13,
462,
1678,
1095,
29918,
1563,
353,
6213,
259,
13,
13,
18884,
396,
4863,
13,
18884,
565,
1369,
29918,
1563,
2804,
6213,
322,
1095,
29918,
1563,
2804,
6213,
29901,
13,
462,
1678,
1369,
29918,
2230,
353,
1369,
29918,
1563,
3032,
29889,
2962,
29918,
2230,
13,
462,
1678,
1095,
29918,
2230,
29922,
1095,
29918,
1563,
3032,
29889,
355,
29918,
2230,
718,
29900,
29889,
29896,
29871,
13,
18884,
1683,
29901,
13,
462,
1678,
1369,
29918,
2230,
353,
432,
29961,
29896,
1822,
5396,
2962,
29918,
2230,
13,
462,
1678,
1095,
29918,
2230,
353,
432,
29961,
29896,
1822,
5396,
355,
29918,
2230,
718,
29900,
29889,
29896,
29871,
13,
13,
18884,
396,
6590,
4863,
429,
2265,
415,
13,
18884,
4863,
29918,
735,
2265,
415,
353,
14690,
29894,
29918,
517,
29918,
3188,
29953,
29946,
29898,
11256,
29894,
29892,
1369,
29918,
2230,
29892,
1095,
29918,
2230,
29974,
29900,
29889,
29900,
29896,
29897,
13,
13,
18884,
304,
29918,
2457,
3366,
2671,
29918,
333,
3108,
353,
376,
10041,
613,
13,
18884,
304,
29918,
2457,
3366,
2671,
29918,
27074,
3108,
353,
376,
4102,
978,
29918,
4230,
978,
613,
13,
18884,
304,
29918,
2457,
3366,
2671,
29918,
5727,
3108,
353,
259,
29896,
29892,
13,
18884,
304,
29918,
2457,
3366,
2671,
29918,
29879,
12981,
2297,
3108,
353,
7726,
414,
13,
18884,
304,
29918,
2457,
3366,
18616,
663,
3108,
353,
851,
29898,
29926,
29961,
29896,
2314,
13,
18884,
304,
29918,
2457,
3366,
2962,
29918,
2230,
3108,
353,
432,
29961,
29896,
1822,
5396,
2962,
29918,
2230,
13,
18884,
304,
29918,
2457,
3366,
355,
29918,
2230,
3108,
353,
432,
29961,
29896,
1822,
5396,
355,
29918,
2230,
13,
18884,
304,
29918,
2457,
3366,
7299,
3108,
353,
8853,
1022,
275,
356,
1115,
12720,
29892,
376,
18616,
663,
29918,
333,
1115,
285,
29908,
29912,
29875,
17671,
376,
19170,
1115,
29888,
29908,
29912,
29875,
6822,
29912,
2435,
29898,
18616,
2063,
2915,
9092,
13,
18884,
304,
29918,
2457,
3366,
9641,
3108,
353,
4863,
29918,
735,
2265,
415,
13,
18884,
7709,
304,
29918,
2457,
13,
268,
13,
13,
29992,
771,
7501,
29891,
29889,
4361,
412,
703,
10041,
29918,
2324,
292,
613,
13,
1669,
8783,
29922,
703,
1576,
8783,
304,
4078,
304,
613,
376,
1066,
3245,
613,
6213,
29892,
851,
511,
13,
1669,
12720,
29922,
703,
29923,
12907,
304,
9732,
403,
313,
29872,
29889,
29887,
584,
450,
29956,
2235,
292,
29928,
1479,
29889,
2008,
1658,
29900,
29896,
29889,
29923,
12907,
29900,
29896,
613,
376,
1066,
3245,
613,
6213,
29892,
851,
511,
13,
1669,
1404,
29918,
2084,
29922,
703,
2605,
304,
1858,
398,
26235,
17266,
29874,
613,
376,
1066,
3245,
613,
6213,
29892,
851,
511,
13,
1669,
1723,
13,
1753,
788,
23458,
29898,
24713,
29901,
3992,
29892,
12720,
29901,
3992,
29892,
1404,
29918,
2084,
29901,
3992,
29897,
1599,
360,
919,
29901,
13,
268,
13,
1678,
10930,
353,
518,
13,
4706,
8853,
1493,
29918,
333,
1115,
376,
18494,
10758,
8853,
1493,
29918,
333,
1115,
376,
2674,
800,
10758,
6377,
1493,
29918,
333,
1115,
376,
726,
29918,
2080,
613,
376,
2671,
29918,
333,
1115,
376,
2080,
29918,
29896,
613,
376,
2671,
29918,
27074,
4710,
1542,
1244,
363,
14845,
29896,
856,
10758,
6377,
1493,
29918,
333,
1115,
376,
726,
29918,
2080,
613,
376,
2671,
29918,
333,
1115,
376,
2080,
29918,
29906,
613,
376,
2671,
29918,
27074,
4710,
1542,
1244,
363,
14845,
29906,
856,
10758,
8853,
1493,
29918,
333,
1115,
376,
726,
29918,
2080,
613,
376,
2671,
29918,
333,
1115,
376,
2080,
29918,
29941,
613,
376,
2671,
29918,
27074,
4710,
1542,
1244,
363,
14845,
29941,
856,
10758,
13,
1678,
4514,
13,
1678,
4840,
353,
7855,
29918,
2324,
292,
29898,
1022,
275,
356,
29892,
1404,
29918,
2084,
29897,
13,
268,
13,
1678,
736,
426,
13,
4706,
376,
24713,
1115,
8783,
29892,
13,
4706,
376,
1493,
29918,
333,
1115,
376,
1271,
29879,
613,
13,
4706,
376,
5461,
1115,
4840,
29892,
259,
13,
4706,
376,
11083,
29918,
2585,
1115,
3349,
29918,
9641,
29918,
11083,
29918,
2585,
29892,
13,
4706,
376,
2917,
1115,
426,
13,
9651,
376,
1271,
29879,
1115,
10930,
29892,
13,
9651,
376,
6312,
29918,
2674,
800,
29908,
584,
5852,
29892,
396,
3394,
1196,
16706,
13,
9651,
376,
11458,
29918,
1482,
9012,
1115,
5852,
29892,
13,
9651,
376,
18494,
29918,
7888,
1115,
7700,
29892,
13,
9651,
376,
18494,
29918,
1300,
459,
8387,
1115,
5852,
29892,
13,
9651,
376,
4294,
29918,
18494,
29918,
1195,
326,
481,
1115,
7700,
29892,
13,
9651,
376,
4294,
29918,
18494,
29918,
9346,
5570,
1115,
7700,
29892,
13,
9651,
376,
4294,
29918,
18494,
29918,
18127,
1115,
7700,
29892,
13,
9651,
376,
2674,
800,
29918,
9653,
29918,
21134,
29908,
584,
6796,
6670,
29896,
613,
376,
6670,
29906,
613,
376,
6670,
29941,
12436,
13,
9651,
376,
2671,
29918,
1300,
974,
5421,
29908,
584,
7700,
29892,
632,
13,
4706,
2981,
13,
1678,
500,
13,
13,
13,
268,
13,
13,
2
] |
streams/binary.py | kevdes/videoparser | 0 | 83012 | """ Class to read binary information using various predefined types. """
#
# Copyright (c) 2007 <NAME> <<EMAIL>>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Only implement required information to retrieve video and audio information
import datetime
import struct
import cStringIO
from videoparser.streams import endian
class BinaryStream(object):
def __init__(self, fileobj, filesize, endianess=endian.little):
self._endianess = endianess
self._fileobj = fileobj
self._filesize = filesize
def __del__(self):
self.close()
def read(self, length):
if not length:
return ''
return self._fileobj.read(length)
def tell(self):
return self._fileobj.tell()
def seek(self, position):
return self._fileobj.seek(position)
def close(self):
return self._fileobj.close()
def bytes_left(self):
return self._fileobj.tell() < self._filesize
def set_endianess(self, endianess):
self._endianess = endianess
def get_endianess(self):
return self._endianess
def unpack(self, type, length):
""" Shorthand for unpack which uses the endianess defined with
set_endianess(), used internally."""
data = self.read(length)
assert len(data) == length, "Unexpected end of stream"
try:
if self._endianess == endian.big:
return struct.unpack('>' + type, data)[0]
else:
return struct.unpack('<' + type, data)[0]
except struct.error:
print len(data)
print "Unable to unpack '%r'" % data
raise
def read_float(self):
""" Read a 32bit float."""
return self.unpack('f', 4)
def read_qtfloat_32(self):
""" Read a 32bits quicktime float."""
# This comes from hachoir
return self.read_int16() + float(self.read_uint16()) /65535
def read_qt_ufloat32(self):
""" Read a 32bits quicktime float."""
# This comes from hachoir
return self.read_uint16() + float(self.read_uint16()) /65535
def read_uint64(self):
""" Read an unsigned 64bit integer."""
return self.unpack('Q', 8)
def read_int64(self):
""" Read an signed 64bit integer."""
return self.unpack('q', 4)
def read_uint32(self):
""" Read an unsigned 32bit integer."""
return self.unpack('I', 4)
def read_int32(self):
""" Read an signed 32bit integer."""
return self.unpack('i', 4)
def read_uint16(self):
""" Read an unsigned 16bit integer."""
return self.unpack('H', 2)
def read_int16(self):
""" Read an signed 16bit integer."""
return self.unpack('h', 2)
def read_uint8(self):
""" Read an unsigned 8bit integer."""
return ord(self.read(1))
def read_int8(self):
""" Read a signed 8bit integer."""
return struct.unpack('b', self.read(1))[0]
def read_dword(self):
return self.read(4)
def read_word(self):
return self.read(2)
def read_qword(self):
return self.read(8)
def read_byte(self):
return self.read(1)
def read_fourcc(self):
return self.read(4)
def read_timestamp_mac(self):
""" Read a timestamp in mac format (seconds sinds 1904) """
timestamp_base = datetime.datetime(1904, 1, 1, 0, 0)
timestamp_value = datetime.timedelta(seconds=self.read_uint32())
return timestamp_base + timestamp_value
def read_timestamp_win(self):
timestamp_base = datetime.datetime(1601, 1, 1, 0, 0, 0)
timestamp_value = datetime.timedelta(
microseconds=self.read_uint64()/10)
return timestamp_base + timestamp_value
# TODO: FIXME
def read_wchars(self, len, null_terminated=False):
data = self.read(len * 2)
# String is null terminated, remove the null char
if null_terminated:
data = data[:-2]
if self._endianess == endian.big:
return unicode(data, "UTF-16-BE")
else:
return unicode(data, "UTF-16-LE")
def read_subsegment(self, length):
data = self.read(length)
return BinaryStream(cStringIO.StringIO(data), len(data),
self._endianess)
def convert_uintvar(self, data, endianess=None):
""" Convert a string of variable length to an integer """
# using struct.unpack is twice as fast as this function, however
# it's not flexible enough
if endianess is None:
endianess = self._endianess
if endianess == endian.big:
data = data[::-1]
mask = 0
value = ord(data[0])
for octet in data[1:]:
mask += 8
value += (ord(octet) << mask)
return value
# ASF Specification requires the guid type, which is 128 bits aka 16 bytes
def read_guid(self):
# See http://www.ietf.org/rfc/rfc4122.txt for specification
# The version number is in the most significant 4 bits of the time
# stamp (bits 4 through 7 of the time_hi_and_version field).
# Python 2.5 includes a built-in guid module, which should be used
# retrieve version
position = self.tell()
self.seek(position + 6)
version = self.read_uint16() >> 12
self.seek(position)
#print repr([hex(ord(x)) for x in self.read(16)])
self.seek(position)
time_low = self.read_uint32()
time_mid = self.read_uint16()
time_hi = self.read_uint16()
clock_seq_hi = self.read_uint8()
clock_seq_low = self.read_uint8()
node = self.read(6)
#print "uuid version = %d - %X" % (version, time_low)
if version == 1:
node = self.convert_uintvar(node, endian.big)
else:
node = self.convert_uintvar(node, endian.big)
return "%08X-%04X-%04X-%X%X-%012X" % (time_low,
time_mid,
time_hi,
clock_seq_hi,
clock_seq_low,
node)
def read_waveformatex(self):
obj = self.WAVEFORMATEX()
obj.codec_id = self.read_uint16()
obj.channels = self.read_uint16()
obj.sample_rate = self.read_uint32()
obj.bit_rate = self.read_uint32()
obj.block_alignment = self.read_uint16()
obj.bits_per_sample = self.read_uint16()
obj.codec_size = self.read_uint16()
obj.codec_data = self.read_subsegment(obj.codec_size)
return obj
def read_bitmapinfoheader(self):
obj = self.BITMAPINFOHEADER()
obj.format_data_size = self.read_uint32()
obj.image_width = self.read_uint32()
obj.image_height = self.read_uint32()
obj.reserved = self.read_uint16()
obj.bpp = self.read_uint16()
obj.compression_id = self.read(4)
obj.image_size = self.read_uint32()
obj.h_pixels_meter = self.read_uint32()
obj.v_pixels_meter = self.read_uint32()
obj.colors = self.read_uint32()
obj.important_colors = self.read_uint32()
obj.codec_data = self.read_subsegment(obj.format_data_size -
40)
return obj
class BITMAPINFOHEADER(object):
def __repr__(self):
buffer = "BITMAPINFOHEADER structure: \n"
buffer += " %-35s : %s\n" % ("Format Data Size", self.format_data_size)
buffer += " %-35s : %s\n" % ("Image Width", self.image_width)
buffer += " %-35s : %s\n" % ("Image Height", self.image_height)
buffer += " %-35s : %s\n" % ("Reserved", self.reserved)
buffer += " %-35s : %s\n" % ("Bits Per Pixel Count", self.bpp)
buffer += " %-35s : %s\n" % ("Compression ID", self.compression_id)
buffer += " %-35s : %s\n" % ("Image Size", self.image_size)
buffer += " %-35s : %s\n" % ("Horizontal Pixels Per Meter", self.h_pixels_meter)
buffer += " %-35s : %s\n" % ("Vertical Pixels Per Meter", self.v_pixels_meter)
buffer += " %-35s : %s\n" % ("Colors Used Count", self.colors)
buffer += " %-35s : %s\n" % ("Important Colors Count", self.important_colors)
buffer += " %-35s : %s\n" % ("Codec Specific Data", self.codec_data)
return buffer
# Used in ASF and AVI parser, contains audio information
class WAVEFORMATEX(object):
codec_ids = {
0x2004: "A_REAL/COOK",
0x2003: "A_REAL/28_8",
0x2002: "A_REAL/14_4",
0x0130: "A_REAL/SIPR",
0x0270: "A_REAL/ATRC",
0x2001: "A_DTS",
0x2000: "A_AC3",
0x162: "WMAP",
0x161: "WMA2",
0x160: "WMA2",
0x50: "MP2",
0x55: "MP3",
0x1: "A_PCM/INT/LIT",
'unknown': "???",
}
def __repr__(self):
buffer = "WAVEFORMATEX structure: \n"
buffer += " %-35s : %s\n" % ("Codec ID / Format Tag", self.codec_id)
buffer += " %-35s : %s\n" % ("Number of Channels", self.channels)
buffer += " %-35s : %s\n" % ("Samples Per Second", self.sample_rate)
buffer += " %-35s : %s\n" % ("Average Number of Bytes Per Second", self.bit_rate)
buffer += " %-35s : %s\n" % ("Block Alignment", self.block_alignment)
buffer += " %-35s : %s\n" % ("Bits Per Sample", self.bits_per_sample)
buffer += " %-35s : %s\n" % ("Codec Specific Data Size",self.codec_size)
buffer += " %-35s : %s\n" % ("Codec Specific Data", repr(self.codec_data))
return buffer
| [
1,
9995,
4134,
304,
1303,
7581,
2472,
773,
5164,
758,
12119,
4072,
29889,
9995,
13,
13,
29937,
13,
29937,
29871,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29900,
29955,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
29937,
29871,
2178,
10462,
21676,
29889,
13,
29937,
29871,
13,
29937,
29871,
4367,
391,
3224,
322,
671,
297,
2752,
322,
7581,
7190,
29892,
411,
470,
1728,
13,
29937,
29871,
21733,
29892,
526,
21905,
4944,
393,
278,
1494,
5855,
13,
29937,
29871,
526,
1539,
29901,
13,
29937,
259,
29896,
29889,
4367,
391,
3224,
29879,
310,
2752,
775,
1818,
11551,
278,
2038,
3509,
1266,
13,
29937,
268,
8369,
29892,
445,
1051,
310,
5855,
322,
278,
1494,
2313,
433,
4193,
29889,
13,
29937,
259,
29906,
29889,
450,
1024,
310,
278,
4148,
1122,
451,
367,
1304,
304,
1095,
272,
344,
470,
27391,
9316,
13,
29937,
268,
10723,
515,
445,
7047,
1728,
2702,
7536,
3971,
10751,
13,
29937,
29871,
13,
29937,
29871,
3446,
3235,
7791,
7818,
12982,
1525,
8519,
13756,
13044,
3352,
6770,
6093,
26524,
29950,
1955,
4954,
3289,
8519,
4907,
5300,
13764,
29979,
8528,
15094,
1799,
6323,
13,
29937,
29871,
306,
3580,
5265,
3352,
399,
1718,
29934,
13566,
29059,
29892,
2672,
6154,
15789,
4214,
29892,
350,
2692,
6058,
27848,
3352,
7495,
29892,
6093,
306,
3580,
5265,
3352,
399,
1718,
29934,
13566,
29059,
13,
29937,
29871,
8079,
341,
1001,
3210,
13566,
2882,
6227,
11937,
5300,
383,
1806,
8186,
1799,
15842,
319,
349,
8322,
2965,
13309,
1718,
349,
4574,
13152,
1660,
319,
1525,
28657,
13875,
8890,
29928,
29889,
13,
29937,
29871,
2672,
11698,
382,
29963,
3919,
24972,
9818,
6093,
26524,
29950,
1955,
20700,
17705,
6181,
15842,
13764,
29979,
22471,
26282,
29892,
2672,
4571,
26282,
29892,
13,
29937,
29871,
2672,
29907,
1367,
3919,
1964,
29892,
317,
4162,
8426,
1964,
29892,
8528,
29923,
3580,
29931,
19926,
29892,
6323,
8707,
1660,
13356,
3919,
25758,
21330,
1529,
1692,
29903,
313,
1177,
6154,
15789,
4214,
29892,
350,
2692,
13,
29937,
29871,
6058,
27848,
3352,
7495,
29892,
13756,
29907,
11499,
13780,
8079,
27092,
1254,
1806,
26027,
21947,
29949,
8452,
6323,
26996,
29963,
2965,
2890,
29936,
11247,
1799,
8079,
501,
1660,
29892,
13,
29937,
29871,
360,
8254,
29892,
6323,
13756,
29943,
1806,
29903,
29936,
6323,
350,
3308,
8895,
1799,
2672,
4945,
29934,
4897,
29911,
2725,
29897,
29832,
8851,
5348,
12766,
17171,
29928,
5300,
6732,
13764,
29979,
13,
29937,
29871,
6093,
18929,
8079,
17705,
2882,
6227,
11937,
29892,
12317,
2544,
4448,
2672,
8707,
29911,
4717,
1783,
29892,
6850,
3960,
1783,
17705,
2882,
6227,
11937,
29892,
6323,
323,
8476,
13,
29937,
29871,
313,
1177,
6154,
15789,
4214,
405,
11787,
5265,
24647,
4741,
6323,
438,
29911,
4448,
22119,
1660,
29897,
9033,
3235,
4214,
2672,
13764,
29979,
399,
29909,
29979,
19474,
8079,
6093,
501,
1660,
8079,
13,
29937,
29871,
3446,
3235,
7791,
7818,
12982,
1525,
29892,
382,
29963,
1430,
10762,
11033,
18118,
1660,
29928,
8079,
6093,
21521,
1799,
8979,
6227,
11937,
8079,
20134,
3210,
21330,
1529,
1692,
29889,
13,
29937,
13,
13,
13,
29937,
9333,
2334,
3734,
2472,
304,
10563,
4863,
322,
10348,
2472,
13,
13,
13,
5215,
12865,
13,
13,
5215,
2281,
13,
5215,
274,
1231,
5971,
13,
13,
13,
3166,
18900,
459,
279,
643,
29889,
5461,
29879,
1053,
1095,
713,
13,
13,
13,
1990,
29479,
3835,
29898,
3318,
1125,
13,
268,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
934,
5415,
29892,
2066,
675,
29892,
1095,
713,
404,
29922,
355,
713,
29889,
29880,
1992,
1125,
13,
4706,
1583,
3032,
355,
713,
404,
353,
1095,
713,
404,
13,
4706,
1583,
3032,
1445,
5415,
353,
934,
5415,
13,
4706,
1583,
3032,
5325,
675,
353,
2066,
675,
13,
308,
13,
1678,
822,
4770,
6144,
12035,
1311,
1125,
13,
4706,
1583,
29889,
5358,
580,
13,
308,
13,
1678,
822,
1303,
29898,
1311,
29892,
3309,
1125,
13,
4706,
565,
451,
3309,
29901,
13,
9651,
736,
6629,
13,
308,
13,
4706,
736,
1583,
3032,
1445,
5415,
29889,
949,
29898,
2848,
29897,
13,
13,
1678,
822,
2649,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
1445,
5415,
29889,
29873,
514,
580,
13,
268,
13,
1678,
822,
16508,
29898,
1311,
29892,
2602,
1125,
13,
4706,
736,
1583,
3032,
1445,
5415,
29889,
344,
1416,
29898,
3283,
29897,
13,
268,
13,
1678,
822,
3802,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
1445,
5415,
29889,
5358,
580,
13,
13,
1678,
822,
6262,
29918,
1563,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
1445,
5415,
29889,
29873,
514,
580,
529,
1583,
3032,
5325,
675,
13,
13,
1678,
822,
731,
29918,
355,
713,
404,
29898,
1311,
29892,
1095,
713,
404,
1125,
13,
4706,
1583,
3032,
355,
713,
404,
353,
1095,
713,
404,
13,
268,
13,
1678,
822,
679,
29918,
355,
713,
404,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
355,
713,
404,
13,
268,
13,
1678,
822,
443,
4058,
29898,
1311,
29892,
1134,
29892,
3309,
1125,
13,
4706,
9995,
1383,
2072,
392,
363,
443,
4058,
607,
3913,
278,
1095,
713,
404,
3342,
411,
13,
9651,
731,
29918,
355,
713,
404,
3285,
1304,
25106,
1213,
15945,
13,
4706,
848,
353,
1583,
29889,
949,
29898,
2848,
29897,
13,
308,
13,
4706,
4974,
7431,
29898,
1272,
29897,
1275,
3309,
29892,
376,
29965,
13996,
6021,
1095,
310,
4840,
29908,
13,
308,
13,
4706,
1018,
29901,
13,
9651,
565,
1583,
3032,
355,
713,
404,
1275,
1095,
713,
29889,
3752,
29901,
13,
18884,
736,
2281,
29889,
348,
4058,
877,
16299,
718,
1134,
29892,
848,
9601,
29900,
29962,
13,
9651,
1683,
29901,
13,
18884,
736,
2281,
29889,
348,
4058,
877,
26717,
718,
1134,
29892,
848,
9601,
29900,
29962,
13,
4706,
5174,
2281,
29889,
2704,
29901,
13,
9651,
1596,
7431,
29898,
1272,
29897,
13,
9651,
1596,
376,
2525,
519,
304,
443,
4058,
14210,
29878,
11838,
1273,
848,
13,
9651,
12020,
13,
308,
13,
1678,
822,
1303,
29918,
7411,
29898,
1311,
1125,
13,
4706,
9995,
7523,
263,
29871,
29941,
29906,
2966,
5785,
1213,
15945,
13,
4706,
736,
1583,
29889,
348,
4058,
877,
29888,
742,
29871,
29946,
29897,
13,
13,
1678,
822,
1303,
29918,
17915,
7411,
29918,
29941,
29906,
29898,
1311,
1125,
13,
4706,
9995,
7523,
263,
29871,
29941,
29906,
14836,
4996,
2230,
5785,
1213,
15945,
13,
4706,
396,
910,
5304,
515,
447,
1859,
381,
13,
4706,
736,
1583,
29889,
949,
29918,
524,
29896,
29953,
580,
718,
5785,
29898,
1311,
29889,
949,
29918,
13470,
29896,
29953,
3101,
847,
29953,
29945,
29945,
29941,
29945,
13,
13,
1678,
822,
1303,
29918,
17915,
29918,
1137,
3071,
29941,
29906,
29898,
1311,
1125,
13,
4706,
9995,
7523,
263,
29871,
29941,
29906,
14836,
4996,
2230,
5785,
1213,
15945,
13,
4706,
396,
910,
5304,
515,
447,
1859,
381,
13,
4706,
736,
1583,
29889,
949,
29918,
13470,
29896,
29953,
580,
718,
5785,
29898,
1311,
29889,
949,
29918,
13470,
29896,
29953,
3101,
847,
29953,
29945,
29945,
29941,
29945,
13,
268,
13,
1678,
822,
1303,
29918,
13470,
29953,
29946,
29898,
1311,
1125,
13,
4706,
9995,
7523,
385,
12780,
29871,
29953,
29946,
2966,
6043,
1213,
15945,
13,
4706,
736,
1583,
29889,
348,
4058,
877,
29984,
742,
29871,
29947,
29897,
13,
13,
1678,
822,
1303,
29918,
524,
29953,
29946,
29898,
1311,
1125,
13,
4706,
9995,
7523,
385,
8794,
29871,
29953,
29946,
2966,
6043,
1213,
15945,
13,
4706,
736,
1583,
29889,
348,
4058,
877,
29939,
742,
29871,
29946,
29897,
13,
308,
13,
1678,
822,
1303,
29918,
13470,
29941,
29906,
29898,
1311,
1125,
13,
4706,
9995,
7523,
385,
12780,
29871,
29941,
29906,
2966,
6043,
1213,
15945,
13,
4706,
736,
1583,
29889,
348,
4058,
877,
29902,
742,
29871,
29946,
29897,
13,
13,
1678,
822,
1303,
29918,
524,
29941,
29906,
29898,
1311,
1125,
13,
4706,
9995,
7523,
385,
8794,
29871,
29941,
29906,
2966,
6043,
1213,
15945,
13,
4706,
736,
1583,
29889,
348,
4058,
877,
29875,
742,
29871,
29946,
29897,
13,
13,
1678,
822,
1303,
29918,
13470,
29896,
29953,
29898,
1311,
1125,
13,
4706,
9995,
7523,
385,
12780,
29871,
29896,
29953,
2966,
6043,
1213,
15945,
13,
4706,
736,
1583,
29889,
348,
4058,
877,
29950,
742,
29871,
29906,
29897,
13,
13,
1678,
822,
1303,
29918,
524,
29896,
29953,
29898,
1311,
1125,
13,
4706,
9995,
7523,
385,
8794,
29871,
29896,
29953,
2966,
6043,
1213,
15945,
13,
4706,
736,
1583,
29889,
348,
4058,
877,
29882,
742,
29871,
29906,
29897,
13,
268,
13,
1678,
822,
1303,
29918,
13470,
29947,
29898,
1311,
1125,
13,
4706,
9995,
7523,
385,
12780,
29871,
29947,
2966,
6043,
1213,
15945,
13,
4706,
736,
4356,
29898,
1311,
29889,
949,
29898,
29896,
876,
13,
268,
13,
1678,
822,
1303,
29918,
524,
29947,
29898,
1311,
1125,
13,
4706,
9995,
7523,
263,
8794,
29871,
29947,
2966,
6043,
1213,
15945,
13,
4706,
736,
2281,
29889,
348,
4058,
877,
29890,
742,
1583,
29889,
949,
29898,
29896,
876,
29961,
29900,
29962,
13,
268,
13,
1678,
822,
1303,
29918,
29881,
1742,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
949,
29898,
29946,
29897,
13,
268,
13,
1678,
822,
1303,
29918,
1742,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
949,
29898,
29906,
29897,
13,
268,
13,
1678,
822,
1303,
29918,
29939,
1742,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
949,
29898,
29947,
29897,
13,
268,
13,
1678,
822,
1303,
29918,
10389,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
949,
29898,
29896,
29897,
13,
13,
1678,
822,
1303,
29918,
17823,
617,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
949,
29898,
29946,
29897,
13,
268,
13,
268,
13,
1678,
822,
1303,
29918,
16394,
29918,
8628,
29898,
1311,
1125,
13,
4706,
9995,
7523,
263,
14334,
297,
5825,
3402,
313,
23128,
3937,
29879,
29871,
29896,
29929,
29900,
29946,
29897,
9995,
13,
4706,
14334,
29918,
3188,
353,
12865,
29889,
12673,
29898,
29896,
29929,
29900,
29946,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
14334,
29918,
1767,
353,
12865,
29889,
9346,
287,
2554,
29898,
23128,
29922,
1311,
29889,
949,
29918,
13470,
29941,
29906,
3101,
13,
4706,
736,
14334,
29918,
3188,
718,
14334,
29918,
1767,
13,
13,
1678,
822,
1303,
29918,
16394,
29918,
5080,
29898,
1311,
1125,
13,
4706,
14334,
29918,
3188,
353,
12865,
29889,
12673,
29898,
29896,
29953,
29900,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
14334,
29918,
1767,
353,
12865,
29889,
9346,
287,
2554,
29898,
13,
9651,
9200,
23128,
29922,
1311,
29889,
949,
29918,
13470,
29953,
29946,
580,
29914,
29896,
29900,
29897,
13,
308,
13,
4706,
736,
14334,
29918,
3188,
718,
14334,
29918,
1767,
13,
268,
13,
1678,
396,
14402,
29901,
383,
6415,
2303,
13,
1678,
822,
1303,
29918,
29893,
305,
1503,
29898,
1311,
29892,
7431,
29892,
1870,
29918,
18821,
630,
29922,
8824,
1125,
13,
4706,
848,
353,
1583,
29889,
949,
29898,
2435,
334,
29871,
29906,
29897,
13,
308,
13,
4706,
396,
1714,
338,
1870,
29185,
29892,
3349,
278,
1870,
1373,
13,
4706,
565,
1870,
29918,
18821,
630,
29901,
13,
9651,
848,
353,
848,
7503,
29899,
29906,
29962,
13,
4706,
565,
1583,
3032,
355,
713,
404,
1275,
1095,
713,
29889,
3752,
29901,
13,
9651,
736,
29104,
29898,
1272,
29892,
376,
10496,
29899,
29896,
29953,
29899,
15349,
1159,
13,
4706,
1683,
29901,
13,
9651,
736,
29104,
29898,
1272,
29892,
376,
10496,
29899,
29896,
29953,
29899,
1307,
1159,
13,
268,
13,
1678,
822,
1303,
29918,
1491,
28192,
29898,
1311,
29892,
3309,
1125,
13,
4706,
848,
353,
1583,
29889,
949,
29898,
2848,
29897,
13,
4706,
736,
29479,
3835,
29898,
29883,
1231,
5971,
29889,
1231,
5971,
29898,
1272,
511,
7431,
29898,
1272,
511,
13,
462,
9651,
1583,
3032,
355,
713,
404,
29897,
13,
268,
13,
1678,
822,
3588,
29918,
13470,
1707,
29898,
1311,
29892,
848,
29892,
1095,
713,
404,
29922,
8516,
1125,
13,
4706,
9995,
14806,
263,
1347,
310,
2286,
3309,
304,
385,
6043,
9995,
13,
308,
13,
4706,
396,
773,
2281,
29889,
348,
4058,
338,
8951,
408,
5172,
408,
445,
740,
29892,
3138,
13,
4706,
396,
372,
29915,
29879,
451,
25706,
3307,
13,
308,
13,
4706,
565,
1095,
713,
404,
338,
6213,
29901,
13,
9651,
1095,
713,
404,
353,
1583,
3032,
355,
713,
404,
13,
632,
13,
4706,
565,
1095,
713,
404,
1275,
1095,
713,
29889,
3752,
29901,
13,
9651,
848,
353,
848,
29961,
1057,
29899,
29896,
29962,
13,
632,
13,
4706,
11105,
353,
29871,
29900,
13,
4706,
995,
353,
4356,
29898,
1272,
29961,
29900,
2314,
13,
4706,
363,
4725,
300,
297,
848,
29961,
29896,
29901,
5387,
13,
9651,
11105,
4619,
29871,
29947,
13,
9651,
995,
4619,
313,
536,
29898,
20082,
300,
29897,
3532,
11105,
29897,
13,
13,
4706,
736,
995,
13,
13,
1678,
396,
3339,
29943,
12048,
2450,
6858,
278,
16605,
1134,
29892,
607,
338,
29871,
29896,
29906,
29947,
9978,
263,
1335,
29871,
29896,
29953,
6262,
13,
1678,
822,
1303,
29918,
2543,
333,
29898,
1311,
1125,
13,
4706,
396,
2823,
1732,
597,
1636,
29889,
2035,
29888,
29889,
990,
29914,
9600,
29883,
29914,
9600,
29883,
29946,
29896,
29906,
29906,
29889,
3945,
363,
21992,
13,
4706,
396,
450,
1873,
1353,
338,
297,
278,
1556,
7282,
29871,
29946,
9978,
310,
278,
931,
13,
4706,
396,
25214,
313,
14836,
29871,
29946,
1549,
29871,
29955,
310,
278,
931,
29918,
2918,
29918,
392,
29918,
3259,
1746,
467,
13,
4706,
396,
5132,
29871,
29906,
29889,
29945,
7805,
263,
4240,
29899,
262,
16605,
3883,
29892,
607,
881,
367,
1304,
13,
308,
13,
308,
13,
4706,
396,
10563,
1873,
308,
13,
4706,
2602,
353,
1583,
29889,
29873,
514,
580,
13,
4706,
1583,
29889,
344,
1416,
29898,
3283,
718,
29871,
29953,
29897,
13,
4706,
1873,
353,
1583,
29889,
949,
29918,
13470,
29896,
29953,
580,
5099,
29871,
29896,
29906,
13,
4706,
1583,
29889,
344,
1416,
29898,
3283,
29897,
13,
308,
13,
4706,
396,
2158,
2062,
4197,
20970,
29898,
536,
29898,
29916,
876,
363,
921,
297,
1583,
29889,
949,
29898,
29896,
29953,
29897,
2314,
13,
308,
13,
4706,
1583,
29889,
344,
1416,
29898,
3283,
29897,
13,
308,
13,
4706,
931,
29918,
677,
353,
1583,
29889,
949,
29918,
13470,
29941,
29906,
580,
29871,
13,
4706,
931,
29918,
6563,
353,
1583,
29889,
949,
29918,
13470,
29896,
29953,
580,
13,
4706,
931,
29918,
2918,
29871,
353,
1583,
29889,
949,
29918,
13470,
29896,
29953,
580,
13,
4706,
12006,
29918,
11762,
29918,
2918,
1678,
353,
1583,
29889,
949,
29918,
13470,
29947,
580,
13,
4706,
12006,
29918,
11762,
29918,
677,
259,
353,
1583,
29889,
949,
29918,
13470,
29947,
580,
13,
4706,
2943,
9651,
353,
1583,
29889,
949,
29898,
29953,
29897,
13,
308,
13,
4706,
396,
2158,
376,
25118,
1873,
353,
1273,
29881,
448,
1273,
29990,
29908,
1273,
313,
3259,
29892,
931,
29918,
677,
29897,
13,
4706,
565,
1873,
1275,
29871,
29896,
29901,
13,
9651,
2943,
353,
1583,
29889,
13441,
29918,
13470,
1707,
29898,
3177,
29892,
1095,
713,
29889,
3752,
29897,
13,
4706,
1683,
29901,
13,
9651,
2943,
353,
1583,
29889,
13441,
29918,
13470,
1707,
29898,
3177,
29892,
1095,
713,
29889,
3752,
29897,
13,
308,
13,
4706,
736,
11860,
29900,
29947,
29990,
19222,
29900,
29946,
29990,
19222,
29900,
29946,
29990,
19222,
29990,
29995,
29990,
19222,
29900,
29896,
29906,
29990,
29908,
1273,
313,
2230,
29918,
677,
29892,
13,
462,
462,
9651,
931,
29918,
6563,
29892,
13,
462,
462,
9651,
931,
29918,
2918,
29892,
13,
462,
462,
9651,
12006,
29918,
11762,
29918,
2918,
29892,
13,
462,
462,
9651,
12006,
29918,
11762,
29918,
677,
29892,
13,
462,
462,
9651,
2943,
29897,
13,
462,
462,
418,
13,
1678,
822,
1303,
29918,
27766,
689,
403,
29916,
29898,
1311,
1125,
13,
4706,
5446,
353,
1583,
29889,
29956,
7520,
29923,
19094,
3040,
29990,
580,
13,
308,
13,
4706,
5446,
29889,
401,
29883,
29918,
333,
353,
1583,
29889,
949,
29918,
13470,
29896,
29953,
580,
13,
4706,
5446,
29889,
305,
12629,
353,
1583,
29889,
949,
29918,
13470,
29896,
29953,
580,
13,
4706,
5446,
29889,
11249,
29918,
10492,
353,
1583,
29889,
949,
29918,
13470,
29941,
29906,
580,
13,
4706,
5446,
29889,
2966,
29918,
10492,
353,
1583,
29889,
949,
29918,
13470,
29941,
29906,
580,
13,
4706,
5446,
29889,
1271,
29918,
2520,
358,
353,
1583,
29889,
949,
29918,
13470,
29896,
29953,
580,
13,
4706,
5446,
29889,
14836,
29918,
546,
29918,
11249,
353,
1583,
29889,
949,
29918,
13470,
29896,
29953,
580,
13,
4706,
5446,
29889,
401,
29883,
29918,
2311,
353,
1583,
29889,
949,
29918,
13470,
29896,
29953,
580,
13,
4706,
5446,
29889,
401,
29883,
29918,
1272,
353,
1583,
29889,
949,
29918,
1491,
28192,
29898,
5415,
29889,
401,
29883,
29918,
2311,
29897,
13,
4706,
736,
5446,
13,
268,
13,
1678,
822,
1303,
29918,
2966,
1958,
3888,
6672,
29898,
1311,
1125,
13,
4706,
5446,
353,
1583,
29889,
22698,
23827,
11690,
23252,
1001,
580,
13,
308,
13,
4706,
5446,
29889,
4830,
29918,
1272,
29918,
2311,
1678,
353,
1583,
29889,
949,
29918,
13470,
29941,
29906,
580,
13,
4706,
5446,
29889,
3027,
29918,
2103,
308,
353,
1583,
29889,
949,
29918,
13470,
29941,
29906,
580,
13,
4706,
5446,
29889,
3027,
29918,
3545,
4706,
353,
1583,
29889,
949,
29918,
13470,
29941,
29906,
580,
13,
4706,
5446,
29889,
690,
9841,
9651,
353,
1583,
29889,
949,
29918,
13470,
29896,
29953,
580,
13,
4706,
5446,
29889,
29890,
407,
462,
353,
1583,
29889,
949,
29918,
13470,
29896,
29953,
580,
13,
4706,
5446,
29889,
510,
2590,
29918,
333,
418,
353,
1583,
29889,
949,
29898,
29946,
29897,
13,
4706,
5446,
29889,
3027,
29918,
2311,
3986,
353,
1583,
29889,
949,
29918,
13470,
29941,
29906,
580,
13,
4706,
5446,
29889,
29882,
29918,
29886,
861,
1379,
29918,
29391,
418,
353,
1583,
29889,
949,
29918,
13470,
29941,
29906,
580,
13,
4706,
5446,
29889,
29894,
29918,
29886,
861,
1379,
29918,
29391,
418,
353,
1583,
29889,
949,
29918,
13470,
29941,
29906,
580,
13,
4706,
5446,
29889,
27703,
795,
353,
1583,
29889,
949,
29918,
13470,
29941,
29906,
580,
13,
4706,
5446,
29889,
17001,
29918,
27703,
1678,
353,
1583,
29889,
949,
29918,
13470,
29941,
29906,
580,
13,
4706,
5446,
29889,
401,
29883,
29918,
1272,
3986,
353,
1583,
29889,
949,
29918,
1491,
28192,
29898,
5415,
29889,
4830,
29918,
1272,
29918,
2311,
448,
13,
462,
462,
462,
4706,
29946,
29900,
29897,
13,
308,
13,
4706,
736,
5446,
13,
13,
13,
1678,
770,
350,
1806,
23827,
11690,
23252,
1001,
29898,
3318,
1125,
13,
4706,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
9651,
6835,
29871,
353,
376,
22698,
23827,
11690,
23252,
1001,
3829,
29901,
320,
29876,
29908,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
5809,
3630,
21179,
613,
1583,
29889,
4830,
29918,
1272,
29918,
2311,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
2940,
21485,
613,
1583,
29889,
3027,
29918,
2103,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
2940,
22907,
613,
1583,
29889,
3027,
29918,
3545,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
1666,
9841,
613,
1583,
29889,
690,
9841,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
29933,
1169,
2431,
349,
15711,
3917,
613,
1583,
29889,
29890,
407,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
1523,
2590,
3553,
613,
1583,
29889,
510,
2590,
29918,
333,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
2940,
21179,
613,
1583,
29889,
3027,
29918,
2311,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
24932,
349,
861,
1379,
2431,
19333,
613,
1583,
29889,
29882,
29918,
29886,
861,
1379,
29918,
29391,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
29270,
349,
861,
1379,
2431,
19333,
613,
1583,
29889,
29894,
29918,
29886,
861,
1379,
29918,
29391,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
1625,
943,
501,
8485,
3917,
613,
1583,
29889,
27703,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
17518,
424,
29183,
3917,
613,
1583,
29889,
17001,
29918,
27703,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
3399,
29883,
21220,
3630,
613,
1583,
29889,
401,
29883,
29918,
1272,
29897,
13,
13,
9651,
736,
6835,
13,
308,
13,
1678,
396,
501,
8485,
297,
3339,
29943,
322,
16884,
29902,
13812,
29892,
3743,
10348,
2472,
13,
1678,
770,
399,
7520,
29923,
19094,
3040,
29990,
29898,
3318,
1125,
13,
4706,
775,
29883,
29918,
4841,
353,
426,
13,
632,
29900,
29916,
29906,
29900,
29900,
29946,
29901,
268,
376,
29909,
29918,
1525,
1964,
29914,
3217,
8949,
613,
13,
632,
29900,
29916,
29906,
29900,
29900,
29941,
29901,
268,
376,
29909,
29918,
1525,
1964,
29914,
29906,
29947,
29918,
29947,
613,
13,
632,
29900,
29916,
29906,
29900,
29900,
29906,
29901,
268,
376,
29909,
29918,
1525,
1964,
29914,
29896,
29946,
29918,
29946,
613,
13,
632,
29900,
29916,
29900,
29896,
29941,
29900,
29901,
268,
376,
29909,
29918,
1525,
1964,
29914,
5425,
10593,
613,
13,
632,
29900,
29916,
29900,
29906,
29955,
29900,
29901,
268,
376,
29909,
29918,
1525,
1964,
29914,
1299,
10363,
613,
13,
632,
29900,
29916,
29906,
29900,
29900,
29896,
29901,
268,
376,
29909,
29918,
29928,
9375,
613,
13,
632,
29900,
29916,
29906,
29900,
29900,
29900,
29901,
268,
376,
29909,
29918,
2477,
29941,
613,
13,
632,
29900,
29916,
29896,
29953,
29906,
29901,
418,
376,
29956,
23827,
613,
13,
632,
29900,
29916,
29896,
29953,
29896,
29901,
418,
376,
29956,
1529,
29906,
613,
13,
632,
29900,
29916,
29896,
29953,
29900,
29901,
418,
376,
29956,
1529,
29906,
613,
13,
632,
29900,
29916,
29945,
29900,
29901,
539,
376,
3580,
29906,
613,
13,
632,
29900,
29916,
29945,
29945,
29901,
539,
376,
3580,
29941,
613,
13,
632,
29900,
29916,
29896,
29901,
4706,
376,
29909,
29918,
9026,
29924,
29914,
10192,
29914,
29931,
1806,
613,
13,
9651,
525,
26690,
2396,
29871,
376,
28772,
613,
13,
4706,
500,
13,
308,
13,
4706,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
9651,
6835,
29871,
353,
376,
29956,
7520,
29923,
19094,
3040,
29990,
3829,
29901,
320,
29876,
29908,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
3399,
29883,
3553,
847,
19191,
10522,
613,
1583,
29889,
401,
29883,
29918,
333,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
4557,
310,
678,
12629,
613,
1583,
29889,
305,
12629,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
29903,
9422,
2431,
6440,
613,
1583,
29889,
11249,
29918,
10492,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
29909,
19698,
9681,
310,
2648,
2167,
2431,
6440,
613,
1583,
29889,
2966,
29918,
10492,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
7445,
838,
10194,
613,
1583,
29889,
1271,
29918,
2520,
358,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
29933,
1169,
2431,
21029,
613,
1583,
29889,
14836,
29918,
546,
29918,
11249,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
3399,
29883,
21220,
3630,
21179,
613,
1311,
29889,
401,
29883,
29918,
2311,
29897,
13,
9651,
6835,
4619,
376,
1273,
29899,
29941,
29945,
29879,
584,
1273,
29879,
29905,
29876,
29908,
1273,
4852,
3399,
29883,
21220,
3630,
613,
2062,
29898,
1311,
29889,
401,
29883,
29918,
1272,
876,
13,
632,
13,
9651,
736,
6835,
268,
13,
13,
2
] |
netbox_tunnels/views.py | sourcery-ai-bot/netbox-tunnels-plugin | 21 | 96756 | """Django views for network tunnels.
(c) 2020 <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.
"""
from django.contrib.auth.mixins import PermissionRequiredMixin
from utilities.views import BulkDeleteView, BulkImportView, ObjectEditView, ObjectListView
from .filters import TunnelFilter
from .forms import TunnelCreationForm, TunnelFilterForm, TunnelCreationCSVForm
from .models import Tunnel
from .tables import TunnelTable, TunnelBulkTable
class ListTunnelView(PermissionRequiredMixin, ObjectListView):
"""View for listing all Tunnels."""
permission_required = "netbox_tunnels.view_tunnels"
model = Tunnel
queryset = Tunnel.objects.all().order_by("tunnel_id")
filterset = TunnelFilter
filterset_form = TunnelFilterForm
table = TunnelTable
template_name = "netbox_tunnels/tunnels_list.html"
class CreateTunnelView(PermissionRequiredMixin, ObjectEditView):
"""View for creating a new Tunnels."""
permission_required = "netbox_tunnels.add_tunnels"
model = Tunnel
queryset = Tunnel.objects.all()
model_form = TunnelCreationForm
template_name = "netbox_tunnels/tunnel_edit.html"
default_return_url = "plugins:netbox_tunnels:tunnels_list"
class BulkDeleteTunnelView(PermissionRequiredMixin, BulkDeleteView):
"""View for deleting one or more Tunnels."""
permission_required = "netbox_tunnels.delete_tunnels"
queryset = Tunnel.objects.filter()
table = TunnelTable
default_return_url = "plugins:netbox_tunnels:tunnels_list"
class BulkImportTunnelView(PermissionRequiredMixin, BulkImportView):
"""View for bulk-importing a CSV file to create Tunnels."""
permission_required = "netbox_tunnels.add_tunnels"
model_form = TunnelCreationCSVForm
tunnel = TunnelBulkTable
default_return_url = "plugins:netbox_tunnels:tunnels_list"
| [
1,
9995,
29928,
5364,
8386,
363,
3564,
260,
5963,
1379,
29889,
13,
13,
29898,
29883,
29897,
29871,
29906,
29900,
29906,
29900,
529,
5813,
29958,
13,
29931,
293,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
6293,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
3492,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29871,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
2525,
2222,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
5721,
7541,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29956,
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,
13393,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
13400,
800,
1090,
278,
19245,
29889,
13,
15945,
29908,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
28084,
1144,
1053,
20894,
2333,
19347,
29924,
861,
262,
13,
3166,
3667,
1907,
29889,
7406,
1053,
8313,
29895,
12498,
1043,
29892,
8313,
29895,
17518,
1043,
29892,
4669,
6103,
1043,
29892,
4669,
15660,
13,
13,
3166,
869,
26705,
1053,
323,
16163,
5072,
13,
3166,
869,
9514,
1053,
323,
16163,
9832,
362,
2500,
29892,
323,
16163,
5072,
2500,
29892,
323,
16163,
9832,
362,
29907,
7597,
2500,
13,
3166,
869,
9794,
1053,
323,
16163,
13,
3166,
869,
24051,
1053,
323,
16163,
3562,
29892,
323,
16163,
29933,
24456,
3562,
13,
13,
13,
1990,
2391,
29911,
16163,
1043,
29898,
27293,
19347,
29924,
861,
262,
29892,
4669,
15660,
1125,
13,
1678,
9995,
1043,
363,
18028,
599,
323,
5963,
1379,
1213,
15945,
13,
13,
1678,
10751,
29918,
12403,
353,
376,
1212,
1884,
29918,
29873,
5963,
1379,
29889,
1493,
29918,
29873,
5963,
1379,
29908,
13,
1678,
1904,
353,
323,
16163,
13,
1678,
2346,
842,
353,
323,
16163,
29889,
12650,
29889,
497,
2141,
2098,
29918,
1609,
703,
29873,
16163,
29918,
333,
1159,
13,
1678,
4175,
842,
353,
323,
16163,
5072,
13,
1678,
4175,
842,
29918,
689,
353,
323,
16163,
5072,
2500,
13,
1678,
1591,
353,
323,
16163,
3562,
13,
1678,
4472,
29918,
978,
353,
376,
1212,
1884,
29918,
29873,
5963,
1379,
29914,
29873,
5963,
1379,
29918,
1761,
29889,
1420,
29908,
13,
13,
13,
1990,
6204,
29911,
16163,
1043,
29898,
27293,
19347,
29924,
861,
262,
29892,
4669,
6103,
1043,
1125,
13,
1678,
9995,
1043,
363,
4969,
263,
716,
323,
5963,
1379,
1213,
15945,
13,
13,
1678,
10751,
29918,
12403,
353,
376,
1212,
1884,
29918,
29873,
5963,
1379,
29889,
1202,
29918,
29873,
5963,
1379,
29908,
13,
1678,
1904,
353,
323,
16163,
13,
1678,
2346,
842,
353,
323,
16163,
29889,
12650,
29889,
497,
580,
13,
1678,
1904,
29918,
689,
353,
323,
16163,
9832,
362,
2500,
13,
1678,
4472,
29918,
978,
353,
376,
1212,
1884,
29918,
29873,
5963,
1379,
29914,
29873,
16163,
29918,
5628,
29889,
1420,
29908,
13,
1678,
2322,
29918,
2457,
29918,
2271,
353,
376,
12800,
29901,
1212,
1884,
29918,
29873,
5963,
1379,
29901,
29873,
5963,
1379,
29918,
1761,
29908,
13,
13,
13,
1990,
8313,
29895,
12498,
29911,
16163,
1043,
29898,
27293,
19347,
29924,
861,
262,
29892,
8313,
29895,
12498,
1043,
1125,
13,
1678,
9995,
1043,
363,
21228,
697,
470,
901,
323,
5963,
1379,
1213,
15945,
13,
13,
1678,
10751,
29918,
12403,
353,
376,
1212,
1884,
29918,
29873,
5963,
1379,
29889,
8143,
29918,
29873,
5963,
1379,
29908,
13,
1678,
2346,
842,
353,
323,
16163,
29889,
12650,
29889,
4572,
580,
13,
1678,
1591,
353,
323,
16163,
3562,
13,
1678,
2322,
29918,
2457,
29918,
2271,
353,
376,
12800,
29901,
1212,
1884,
29918,
29873,
5963,
1379,
29901,
29873,
5963,
1379,
29918,
1761,
29908,
13,
13,
13,
1990,
8313,
29895,
17518,
29911,
16163,
1043,
29898,
27293,
19347,
29924,
861,
262,
29892,
8313,
29895,
17518,
1043,
1125,
13,
1678,
9995,
1043,
363,
21610,
29899,
5215,
292,
263,
16874,
934,
304,
1653,
323,
5963,
1379,
1213,
15945,
13,
13,
1678,
10751,
29918,
12403,
353,
376,
1212,
1884,
29918,
29873,
5963,
1379,
29889,
1202,
29918,
29873,
5963,
1379,
29908,
13,
1678,
1904,
29918,
689,
353,
323,
16163,
9832,
362,
29907,
7597,
2500,
13,
1678,
26086,
353,
323,
16163,
29933,
24456,
3562,
13,
1678,
2322,
29918,
2457,
29918,
2271,
353,
376,
12800,
29901,
1212,
1884,
29918,
29873,
5963,
1379,
29901,
29873,
5963,
1379,
29918,
1761,
29908,
13,
2
] |
jifen/fuhe.py | Tigeraus/MA | 0 | 1607570 | <filename>jifen/fuhe.py
#coding: utf-8
import math
def int_NC(xlrange,ylist):
sum = xlrange[1]-xlrange[0]
n = len(ylist)
if n == 2:
xishulist=[0.5,0.5]
elif n == 3:
xishulist=[1.0/6.0,2.0/3.0,1.0/6.0]
elif n == 4:
xishulist=[1.0/8.0,3.0/8.0,3.0/8.0,1.0/8.0]
elif n == 5:
xishulist=[7.0/90, 16.0/45, 2.0/15, 16.0/45, 7.0/90]
elif n == 6:
xishulist=[19.0/288, 25.0/96, 25.0/144, 25.0/144, 25.0/96, 19.0/288]
elif n == 7:
xishulist=[41.0/840, 9.0/35, 9.0/280, 34.0/105, 9.0/280, 9.0/35, 41.0/840]
elif n == 8:
pass
elif n == 9:
pass
else:
print 'err'
return 0
for i in range(len(xishulist)):
sum = sum + xishulist[i]*ylist[i]
return sum
def main():
xr = [0,1]
ylist = [1,2,4,5,7,-3]
print int_NC(xr,ylist)
pass
if __name__ == '__main__':
main() | [
1,
529,
9507,
29958,
29926,
26651,
29914,
21154,
354,
29889,
2272,
13,
29937,
29883,
3689,
29901,
23616,
29899,
29947,
13,
13,
5215,
5844,
13,
13,
13,
1753,
938,
29918,
15868,
29898,
15524,
3881,
29892,
29891,
1761,
1125,
13,
1678,
2533,
353,
921,
29880,
3881,
29961,
29896,
29962,
29899,
15524,
3881,
29961,
29900,
29962,
13,
1678,
302,
353,
7431,
29898,
29891,
1761,
29897,
13,
13,
1678,
565,
302,
1275,
29871,
29906,
29901,
13,
4706,
921,
728,
352,
391,
11759,
29900,
29889,
29945,
29892,
29900,
29889,
29945,
29962,
13,
1678,
25342,
302,
1275,
29871,
29941,
29901,
13,
4706,
921,
728,
352,
391,
11759,
29896,
29889,
29900,
29914,
29953,
29889,
29900,
29892,
29906,
29889,
29900,
29914,
29941,
29889,
29900,
29892,
29896,
29889,
29900,
29914,
29953,
29889,
29900,
29962,
13,
1678,
25342,
302,
1275,
29871,
29946,
29901,
13,
4706,
921,
728,
352,
391,
11759,
29896,
29889,
29900,
29914,
29947,
29889,
29900,
29892,
29941,
29889,
29900,
29914,
29947,
29889,
29900,
29892,
29941,
29889,
29900,
29914,
29947,
29889,
29900,
29892,
29896,
29889,
29900,
29914,
29947,
29889,
29900,
29962,
13,
1678,
25342,
302,
1275,
29871,
29945,
29901,
13,
4706,
921,
728,
352,
391,
11759,
29955,
29889,
29900,
29914,
29929,
29900,
29892,
29871,
29896,
29953,
29889,
29900,
29914,
29946,
29945,
29892,
29871,
29906,
29889,
29900,
29914,
29896,
29945,
29892,
29871,
29896,
29953,
29889,
29900,
29914,
29946,
29945,
29892,
29871,
29955,
29889,
29900,
29914,
29929,
29900,
29962,
13,
1678,
25342,
302,
1275,
29871,
29953,
29901,
13,
4706,
921,
728,
352,
391,
11759,
29896,
29929,
29889,
29900,
29914,
29906,
29947,
29947,
29892,
29871,
29906,
29945,
29889,
29900,
29914,
29929,
29953,
29892,
29871,
29906,
29945,
29889,
29900,
29914,
29896,
29946,
29946,
29892,
29871,
29906,
29945,
29889,
29900,
29914,
29896,
29946,
29946,
29892,
29871,
29906,
29945,
29889,
29900,
29914,
29929,
29953,
29892,
29871,
29896,
29929,
29889,
29900,
29914,
29906,
29947,
29947,
29962,
13,
1678,
25342,
302,
1275,
29871,
29955,
29901,
13,
4706,
921,
728,
352,
391,
11759,
29946,
29896,
29889,
29900,
29914,
29947,
29946,
29900,
29892,
29871,
29929,
29889,
29900,
29914,
29941,
29945,
29892,
29871,
29929,
29889,
29900,
29914,
29906,
29947,
29900,
29892,
29871,
29941,
29946,
29889,
29900,
29914,
29896,
29900,
29945,
29892,
29871,
29929,
29889,
29900,
29914,
29906,
29947,
29900,
29892,
29871,
29929,
29889,
29900,
29914,
29941,
29945,
29892,
29871,
29946,
29896,
29889,
29900,
29914,
29947,
29946,
29900,
29962,
13,
1678,
25342,
302,
1275,
29871,
29947,
29901,
13,
4706,
1209,
13,
1678,
25342,
302,
1275,
29871,
29929,
29901,
13,
4706,
1209,
13,
1678,
1683,
29901,
13,
4706,
1596,
525,
3127,
29915,
13,
4706,
736,
29871,
29900,
13,
1678,
363,
474,
297,
3464,
29898,
2435,
29898,
29916,
728,
352,
391,
22164,
13,
4706,
2533,
353,
2533,
718,
921,
728,
352,
391,
29961,
29875,
14178,
29891,
1761,
29961,
29875,
29962,
13,
1678,
736,
2533,
13,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
921,
29878,
353,
518,
29900,
29892,
29896,
29962,
13,
1678,
343,
1761,
353,
518,
29896,
29892,
29906,
29892,
29946,
29892,
29945,
29892,
29955,
6653,
29941,
29962,
13,
1678,
1596,
938,
29918,
15868,
29898,
29916,
29878,
29892,
29891,
1761,
29897,
13,
1678,
1209,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
2
] |
tests/test_mr_homologs.py | rigdenlab/MrParse | 0 | 69679 | <filename>tests/test_mr_homologs.py
#!/usr/bin/env ccp4-python
import set_mrparse_path
import pytest
import logging
from mrparse.mr_sequence import Sequence
from mrparse.mr_hkl import HklInfo
from mrparse.mr_homolog import homologs_from_hits, calculate_ellg, ellg_data_from_phaser_log
logging.basicConfig(level=logging.DEBUG)
def test_2uvoA_homologs(test_data, get_2uvo_test_hits):
hits = get_2uvo_test_hits
homologs = homologs_from_hits(hits, pdb_dir=test_data.pdb_dir)
h = homologs['1iqb_B_1']
assert h.length == 77
assert abs(h.molecular_weight - 8602) < 0.001
assert h.pdb_id == '1iqb'
assert h.resolution == 1.90
chain_id = 'B'
assert h.chain_id == chain_id
d = h.static_dict
assert d['chain_id'] == chain_id
@pytest.mark.skip(reason="Tests using phaser are currently too slow to run")
def test_2uvoA_homologs_ellg(test_data, get_2uvo_test_hits):
hits = get_2uvo_test_hits
homologs = homologs_from_hits(hits, pdb_dir=test_data.pdb_dir)
h = homologs['1iqb_B_1']
assert h.length == 77
assert abs(h.molecular_weight - 8602) < 0.001
seq_info = Sequence(test_data.x2uvoA_fasta)
hkl_info = HklInfo(test_data.x2uvo_mtz, seq_info=seq_info)
calculate_ellg(homologs, hkl_info)
def test_phaser_log_ellg(test_data, get_2uvo_test_hits):
"""Test the output from phaser without running it every time"""
hits = get_2uvo_test_hits
homologs = homologs_from_hits(hits, pdb_dir=test_data.pdb_dir)
ellg_data = ellg_data_from_phaser_log(test_data.phaser_log, homologs)
assert ellg_data['2x3t_C_1'].ellg == 1378.4
assert ellg_data['2x3t_C_1'].length == 168
assert ellg_data['2x3t_C_1'].molecular_weight == pytest.approx(16483)
if __name__ == '__main__':
import sys
pytest.main([__file__] + sys.argv[1:])
| [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
29885,
29878,
29918,
9706,
1189,
29879,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
274,
6814,
29946,
29899,
4691,
13,
5215,
731,
29918,
29885,
29878,
5510,
29918,
2084,
13,
5215,
11451,
1688,
13,
5215,
12183,
13,
3166,
286,
29878,
5510,
29889,
29885,
29878,
29918,
16506,
1053,
922,
3910,
13,
3166,
286,
29878,
5510,
29889,
29885,
29878,
29918,
29882,
6321,
1053,
379,
6321,
3401,
13,
3166,
286,
29878,
5510,
29889,
29885,
29878,
29918,
9706,
1189,
1053,
3632,
1189,
29879,
29918,
3166,
29918,
29882,
1169,
29892,
8147,
29918,
514,
29887,
29892,
12302,
29887,
29918,
1272,
29918,
3166,
29918,
16130,
261,
29918,
1188,
13,
13,
13,
21027,
29889,
16121,
3991,
29898,
5563,
29922,
21027,
29889,
18525,
29897,
13,
13,
1753,
1243,
29918,
29906,
22644,
29909,
29918,
9706,
1189,
29879,
29898,
1688,
29918,
1272,
29892,
679,
29918,
29906,
22644,
29918,
1688,
29918,
29882,
1169,
1125,
13,
1678,
19572,
353,
679,
29918,
29906,
22644,
29918,
1688,
29918,
29882,
1169,
13,
1678,
3632,
1189,
29879,
353,
3632,
1189,
29879,
29918,
3166,
29918,
29882,
1169,
29898,
29882,
1169,
29892,
282,
2585,
29918,
3972,
29922,
1688,
29918,
1272,
29889,
29886,
2585,
29918,
3972,
29897,
13,
1678,
298,
353,
3632,
1189,
29879,
1839,
29896,
29875,
29939,
29890,
29918,
29933,
29918,
29896,
2033,
13,
1678,
4974,
298,
29889,
2848,
1275,
29871,
29955,
29955,
13,
1678,
4974,
6425,
29898,
29882,
29889,
29885,
1772,
16637,
29918,
7915,
448,
29871,
29947,
29953,
29900,
29906,
29897,
529,
29871,
29900,
29889,
29900,
29900,
29896,
13,
1678,
4974,
298,
29889,
29886,
2585,
29918,
333,
1275,
525,
29896,
29875,
29939,
29890,
29915,
13,
1678,
4974,
298,
29889,
9778,
918,
1275,
29871,
29896,
29889,
29929,
29900,
13,
1678,
9704,
29918,
333,
353,
525,
29933,
29915,
13,
1678,
4974,
298,
29889,
14153,
29918,
333,
1275,
9704,
29918,
333,
13,
1678,
270,
353,
298,
29889,
7959,
29918,
8977,
13,
1678,
4974,
270,
1839,
14153,
29918,
333,
2033,
1275,
9704,
29918,
333,
13,
268,
13,
268,
13,
29992,
2272,
1688,
29889,
3502,
29889,
11014,
29898,
23147,
543,
24376,
773,
1374,
29440,
526,
5279,
2086,
5232,
304,
1065,
1159,
13,
1753,
1243,
29918,
29906,
22644,
29909,
29918,
9706,
1189,
29879,
29918,
514,
29887,
29898,
1688,
29918,
1272,
29892,
679,
29918,
29906,
22644,
29918,
1688,
29918,
29882,
1169,
1125,
13,
1678,
19572,
353,
679,
29918,
29906,
22644,
29918,
1688,
29918,
29882,
1169,
13,
1678,
3632,
1189,
29879,
353,
3632,
1189,
29879,
29918,
3166,
29918,
29882,
1169,
29898,
29882,
1169,
29892,
282,
2585,
29918,
3972,
29922,
1688,
29918,
1272,
29889,
29886,
2585,
29918,
3972,
29897,
13,
1678,
298,
353,
3632,
1189,
29879,
1839,
29896,
29875,
29939,
29890,
29918,
29933,
29918,
29896,
2033,
13,
1678,
4974,
298,
29889,
2848,
1275,
29871,
29955,
29955,
13,
1678,
4974,
6425,
29898,
29882,
29889,
29885,
1772,
16637,
29918,
7915,
448,
29871,
29947,
29953,
29900,
29906,
29897,
529,
29871,
29900,
29889,
29900,
29900,
29896,
13,
268,
13,
1678,
19359,
29918,
3888,
353,
922,
3910,
29898,
1688,
29918,
1272,
29889,
29916,
29906,
22644,
29909,
29918,
29888,
5427,
29897,
13,
1678,
298,
6321,
29918,
3888,
353,
379,
6321,
3401,
29898,
1688,
29918,
1272,
29889,
29916,
29906,
22644,
29918,
4378,
29920,
29892,
19359,
29918,
3888,
29922,
11762,
29918,
3888,
29897,
13,
1678,
8147,
29918,
514,
29887,
29898,
9706,
1189,
29879,
29892,
298,
6321,
29918,
3888,
29897,
13,
13,
13,
1753,
1243,
29918,
16130,
261,
29918,
1188,
29918,
514,
29887,
29898,
1688,
29918,
1272,
29892,
679,
29918,
29906,
22644,
29918,
1688,
29918,
29882,
1169,
1125,
13,
1678,
9995,
3057,
278,
1962,
515,
1374,
29440,
1728,
2734,
372,
1432,
931,
15945,
29908,
13,
1678,
19572,
353,
679,
29918,
29906,
22644,
29918,
1688,
29918,
29882,
1169,
13,
1678,
3632,
1189,
29879,
353,
3632,
1189,
29879,
29918,
3166,
29918,
29882,
1169,
29898,
29882,
1169,
29892,
282,
2585,
29918,
3972,
29922,
1688,
29918,
1272,
29889,
29886,
2585,
29918,
3972,
29897,
13,
1678,
12302,
29887,
29918,
1272,
353,
12302,
29887,
29918,
1272,
29918,
3166,
29918,
16130,
261,
29918,
1188,
29898,
1688,
29918,
1272,
29889,
16130,
261,
29918,
1188,
29892,
3632,
1189,
29879,
29897,
13,
1678,
4974,
12302,
29887,
29918,
1272,
1839,
29906,
29916,
29941,
29873,
29918,
29907,
29918,
29896,
13359,
514,
29887,
1275,
29871,
29896,
29941,
29955,
29947,
29889,
29946,
13,
1678,
4974,
12302,
29887,
29918,
1272,
1839,
29906,
29916,
29941,
29873,
29918,
29907,
29918,
29896,
13359,
2848,
1275,
29871,
29896,
29953,
29947,
13,
1678,
4974,
12302,
29887,
29918,
1272,
1839,
29906,
29916,
29941,
29873,
29918,
29907,
29918,
29896,
13359,
29885,
1772,
16637,
29918,
7915,
1275,
11451,
1688,
29889,
14850,
29898,
29896,
29953,
29946,
29947,
29941,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1053,
10876,
13,
1678,
11451,
1688,
29889,
3396,
4197,
1649,
1445,
1649,
29962,
718,
10876,
29889,
19218,
29961,
29896,
29901,
2314,
13,
2
] |
src/crawler.py | GamjaPower/berlinstartupjobs | 0 | 97147 | # -*- coding: utf-8 -*-
'''
Created on 2018. 9. 17.
@author: jason96
'''
from selenium import webdriver
from pyutil.fileutil import write_file
import time
def crawl():
target_urls = []
try:
for page in range(1, 18):
base_url = 'http://berlinstartupjobs.com/engineering/'
if page != 1:
base_url = base_url + '/page/' + str(page)
driver = webdriver.Chrome('../util/chromedriver')
driver.get(base_url)
xpath = '//div[@class="product-listing-item"]'
for elem in driver.find_elements_by_xpath(xpath):
href = elem.find_element_by_class_name('product-listing-h2')\
.find_element_by_tag_name('a')\
.get_attribute('href')
target_urls.append(href)
driver.close()
time.sleep(1)
finally:
write_file('urls.txt', '\n'.join(target_urls))
if __name__ == '__main__':
crawl()
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
12008,
13,
20399,
373,
29871,
29906,
29900,
29896,
29947,
29889,
29871,
29929,
29889,
29871,
29896,
29955,
29889,
13,
13,
29992,
8921,
29901,
432,
1658,
29929,
29953,
13,
12008,
13,
13,
3166,
18866,
1053,
1856,
9465,
13,
3166,
11451,
4422,
29889,
1445,
4422,
1053,
2436,
29918,
1445,
13,
5215,
931,
13,
13,
13,
1753,
29349,
29880,
7295,
13,
13,
1678,
3646,
29918,
26045,
353,
5159,
13,
1678,
1018,
29901,
13,
4706,
363,
1813,
297,
3464,
29898,
29896,
29892,
29871,
29896,
29947,
1125,
13,
9651,
2967,
29918,
2271,
353,
525,
1124,
597,
495,
1915,
2962,
786,
9057,
29879,
29889,
510,
29914,
10599,
3241,
22208,
13,
9651,
565,
1813,
2804,
29871,
29896,
29901,
13,
18884,
2967,
29918,
2271,
353,
2967,
29918,
2271,
718,
8207,
3488,
22208,
718,
851,
29898,
3488,
29897,
13,
9651,
7156,
353,
1856,
9465,
29889,
1451,
4871,
877,
6995,
4422,
29914,
27433,
287,
3511,
1495,
13,
9651,
7156,
29889,
657,
29898,
3188,
29918,
2271,
29897,
13,
9651,
921,
2084,
353,
525,
458,
4563,
17548,
1990,
543,
4704,
29899,
1761,
292,
29899,
667,
3108,
29915,
13,
9651,
363,
21268,
297,
7156,
29889,
2886,
29918,
17664,
29918,
1609,
29918,
23635,
29898,
23635,
1125,
13,
18884,
2822,
353,
21268,
29889,
2886,
29918,
5029,
29918,
1609,
29918,
1990,
29918,
978,
877,
4704,
29899,
1761,
292,
29899,
29882,
29906,
1495,
29905,
13,
462,
1678,
869,
2886,
29918,
5029,
29918,
1609,
29918,
4039,
29918,
978,
877,
29874,
1495,
29905,
13,
462,
1678,
869,
657,
29918,
12715,
877,
12653,
1495,
13,
18884,
3646,
29918,
26045,
29889,
4397,
29898,
12653,
29897,
13,
9651,
7156,
29889,
5358,
580,
13,
9651,
931,
29889,
17059,
29898,
29896,
29897,
13,
13,
1678,
7146,
29901,
13,
4706,
2436,
29918,
1445,
877,
26045,
29889,
3945,
742,
11297,
29876,
4286,
7122,
29898,
5182,
29918,
26045,
876,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
29349,
29880,
580,
13,
2
] |
cmds/clear_spam.py | Asperger/PCRD-DiscordBot | 2 | 49835 | <reponame>Asperger/PCRD-DiscordBot
from utils.log import FileLogger
from utils.spammer import clear_spammer, get_spammer
from utils.cmds_registry import register
register(cmd="clear_spam", alias="clear_spam")
register(cmd="clear_spam", alias="cs")
class clear_spam:
def __init__(self):
self.usage = '!clear_spam <指令> [編號]\n指定編號將移除該反應\n不指定將移除該指令及所有反應'
self.auth_warning = '只有公會的管理員或作者才能使用這個功能'
self.request = ""
self.order = -1
def check_param(self, param):
if len(param) > 0:
self.request = param[0]
if len(param) == 2:
if param[1].isdigit():
self.order = int(param[1])
return True
else:
return False
else:
return len(param) == 1
def check_auth(self, auth):
author = get_spammer(self.request, self.order)[1]
return auth['user_admin'] or auth['user_id'] == author
def run(self, user_auth, param):
result = clear_spammer(self.request, self.order)
if result:
return f'{self.request} 指令清除成功'
else:
return f'{self.request} 指令清除失敗'
| [
1,
529,
276,
1112,
420,
29958,
2887,
546,
914,
29914,
9026,
29934,
29928,
29899,
4205,
16090,
29933,
327,
13,
3166,
3667,
29879,
29889,
1188,
1053,
3497,
16363,
13,
3166,
3667,
29879,
29889,
1028,
28527,
1053,
2821,
29918,
1028,
28527,
29892,
679,
29918,
1028,
28527,
13,
13,
3166,
3667,
29879,
29889,
9006,
29879,
29918,
1727,
6020,
1053,
6036,
13,
9573,
29898,
9006,
543,
8551,
29918,
1028,
314,
613,
13995,
543,
8551,
29918,
1028,
314,
1159,
13,
9573,
29898,
9006,
543,
8551,
29918,
1028,
314,
613,
13995,
543,
2395,
1159,
13,
13,
1990,
2821,
29918,
1028,
314,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
21125,
353,
525,
29991,
8551,
29918,
1028,
314,
529,
31084,
31650,
29958,
518,
31442,
235,
156,
162,
10725,
29876,
31084,
30495,
31442,
235,
156,
162,
232,
179,
138,
31618,
31152,
235,
172,
181,
31908,
233,
138,
140,
29905,
29876,
30413,
31084,
30495,
232,
179,
138,
31618,
31152,
235,
172,
181,
31084,
31650,
31436,
30744,
30417,
31908,
233,
138,
140,
29915,
13,
4706,
1583,
29889,
5150,
29918,
27392,
353,
525,
31557,
30417,
30539,
31411,
30210,
31624,
30687,
232,
150,
164,
31391,
30732,
30767,
31979,
30815,
30785,
30406,
236,
131,
156,
232,
131,
142,
31134,
30815,
29915,
13,
4706,
1583,
29889,
3827,
353,
5124,
13,
4706,
1583,
29889,
2098,
353,
448,
29896,
13,
13,
1678,
822,
1423,
29918,
3207,
29898,
1311,
29892,
1828,
1125,
13,
4706,
565,
7431,
29898,
3207,
29897,
1405,
29871,
29900,
29901,
13,
9651,
1583,
29889,
3827,
353,
1828,
29961,
29900,
29962,
13,
13,
4706,
565,
7431,
29898,
3207,
29897,
1275,
29871,
29906,
29901,
13,
9651,
565,
1828,
29961,
29896,
1822,
275,
26204,
7295,
13,
18884,
1583,
29889,
2098,
353,
938,
29898,
3207,
29961,
29896,
2314,
13,
18884,
736,
5852,
13,
9651,
1683,
29901,
13,
18884,
736,
7700,
13,
4706,
1683,
29901,
13,
9651,
736,
7431,
29898,
3207,
29897,
1275,
29871,
29896,
13,
13,
1678,
822,
1423,
29918,
5150,
29898,
1311,
29892,
4817,
1125,
13,
4706,
4148,
353,
679,
29918,
1028,
28527,
29898,
1311,
29889,
3827,
29892,
1583,
29889,
2098,
9601,
29896,
29962,
13,
4706,
736,
4817,
1839,
1792,
29918,
6406,
2033,
470,
4817,
1839,
1792,
29918,
333,
2033,
1275,
4148,
13,
13,
1678,
822,
1065,
29898,
1311,
29892,
1404,
29918,
5150,
29892,
1828,
1125,
13,
4706,
1121,
353,
2821,
29918,
1028,
28527,
29898,
1311,
29889,
3827,
29892,
1583,
29889,
2098,
29897,
13,
4706,
565,
1121,
29901,
13,
9651,
736,
285,
29915,
29912,
1311,
29889,
3827,
29913,
29871,
31084,
31650,
30989,
31152,
30494,
31134,
29915,
13,
4706,
1683,
29901,
13,
9651,
736,
285,
29915,
29912,
1311,
29889,
3827,
29913,
29871,
31084,
31650,
30989,
31152,
31369,
233,
152,
154,
29915,
13,
2
] |
src/importer/excel/excelImporter.py | HenrikPilz/BMEcatConverter | 1 | 189207 | '''
Created on 11.05.2017
@author: henrik.pilz
'''
import logging
from openpyxl import load_workbook
import regex
from datamodel import Feature
from datamodel import FeatureSet
from datamodel import Mime
from datamodel import Price
from datamodel import PriceDetails
from datamodel import Product
from error import FormulaFoundException
from error import NumberFormatException
from transformer import SeparatorTransformer
class ExcelImporter(object):
'''
classdocs
'''
# Namen der mögliche Tabellen mit Artikeln
__allowedTablenames = [ 'Artikel', 'Tabelle1', 'Mapping-Master' ]
# Grunddaten eines Artikels. Mindestens die Artikelnummer
__basefieldMapping = {
# Produktrumpf
"supplierArticleId" : "productId"
}
# Artikeldetails
__productDetailMapping = {
# Produktdetails
"descriptionShort" : "title",
"descriptionLong" : "description",
"ean" : "ean",
"supplierAltId" : "supplierAltId",
"buyerId" : "buyerId",
"manufacturerArticleId" : "manufacturerArticleId",
"manufacturerName" : "manufacturerName",
"deliveryTime" : "deliveryTime",
"delivery_time" : "deliveryTime"
}
# Bestelldetails
__orderDetailMapping = {
# Order Details
"orderUnit" : "orderUnit",
"contentUnit" : "contentUnit",
"ContentUnit" : "contentUnit",
"packingQuantity" : "packingQuantity",
"priceQuantity" : "priceQuantity",
"quantityMin" : "quantityMin",
"quantityInterval" : "quantityInterval"
}
# technische Daten
__featureMapping = {
"attribute_name" : "name",
"attributeName" : "name",
"attribute_value" : "values",
"attributeValue" : "values",
"attribute_unit" : "unit",
"attributeUnit" : "unit"
}
# Preisdaten
__priceMapping = {
"priceType" : "priceType",
"price_type" : "priceType",
"priceAmount" : "amount",
"price_amount" : "amount",
"tax" : "tax",
"lowerBound" : "lowerBound",
"lower_bound" : "lowerBound",
"factor" : "factor",
"territory" : "territory",
"currency" : "currency"
}
# Bilddaten
__mimeMapping = {
"mimeType" : "mimeType",
"mime_type" : "mimeType",
"mimeSource" : "source",
"mime_source" : "source",
"mimeDescription" : "description",
"mime_description" : "description",
"mimeAlt" : "altenativeContent",
"mime_alt" : "altenativeContent",
"mimePurpose" : "purpose",
"mime_purpose" : "purpose",
"mimeOrder" : "order",
"mime_order" : "order"
}
__fieldsToTransform = [ "priceAmount", "price_amount", "amount", "tax", "factor", "delivery_time", "deliveryTime" ]
def __init__(self, separatorTransformer=SeparatorTransformer("detect")):
'''
Constructor
'''
self.__indexForProduct = {}
self.__indexForProductDetails = {}
self.__indexForOrderDetails = {}
self.__indexPairsForFeatures = {}
self.__indexTuplesForPrices = {}
self.__indexTuplesForMimes = {}
self.__currentRowIndex = 1
self.__currentSheet = None
self._separatorTransformer = separatorTransformer
self.articles = []
def readWorkbook(self, filename):
wb = load_workbook(filename)
countPossibleCandidates = 0
tablename = None
for allowedSheetname in self.__allowedTablenames:
if allowedSheetname in wb.sheetnames:
countPossibleCandidates += 1
tablename = allowedSheetname
if tablename is None:
raise Exception("Das Tabellenblatt mit den Artikelnamen sollte einen der folgenden Namen tragen: '{0}'".format(", ".join(self.__allowedTablenames)))
if countPossibleCandidates > 1:
raise Exception("Es darf nur ein Tabellenblatt mit den folgenden Artikelnamen existieren: '{0}'".format(", ".join(self.__allowedTablenames)))
self.__currentSheet = wb[tablename]
self.__determineIndexMappings()
self.__readArticles()
def __determineIndexMappings(self):
# gehe durch alle Spalten in Zeile 1 (Headerzeile)
for colIndex in range(1, self.__currentSheet.max_column + 1):
# hole den aktuellen Feldnamen
currentFieldname = self.__currentSheet.cell(column=colIndex, row=1).value
# wenn der Feldnam nicht leer ist
if currentFieldname is not None and len(currentFieldname.strip()) > 0:
self.__detectEntities(currentFieldname, colIndex)
def __detectEntities(self, currentFieldname, colIndex):
# gib ihn aus
logging.debug(currentFieldname)
# ist er in den basefieldKeys (Grunddatenfelder des Artikels)
added = self.__addIndexForMappingIfFieldInMapping(currentFieldname, colIndex, self.__basefieldMapping, self.__indexForProduct)
# ist er product detail relevant
added = added or self.__addIndexForMappingIfFieldInMapping(currentFieldname, colIndex, self.__productDetailMapping, self.__indexForProductDetails)
# bestelldetails
added = added or self.__addIndexForMappingIfFieldInMapping(currentFieldname, colIndex, self.__orderDetailMapping, self.__indexForOrderDetails)
# andere Daten?
if not added:
self.__detectMultiColumnEntities(currentFieldname, colIndex)
def __addIndexForMappingIfFieldInMapping(self, currentFieldname, colIndex, mappingDictionary, indexDictionary):
# ist er in den basefieldKeys (Grunddatenfelder des Artikels)
if currentFieldname in mappingDictionary.keys():
indexDictionary[mappingDictionary[currentFieldname]] = colIndex
return True
return False
def __detectMultiColumnEntities(self, currentFieldname, colIndex):
# dann muessen wir splitten, da der Zahlenanteil
# Sowohl die Zusammengehörigkeit der Daten anzeigt,
# als auch die Reihenfolge bestimmt
fieldName = regex.match("[a-zA-Z_]*", currentFieldname).group(0)
fieldName = fieldName.strip("_")
fieldCount = currentFieldname.replace(fieldName, "").strip("_")
logging.debug("'{0}' : '{1}'".format(fieldName, fieldCount))
# sind es Preise ?
added = self.__addIndexForFieldCountMappingIfFieldInMapping(fieldName, colIndex, fieldCount,
self.__priceMapping, self.__indexTuplesForPrices)
# sind es Bilder ?
added = added or self.__addIndexForFieldCountMappingIfFieldInMapping(fieldName, colIndex, fieldCount,
self.__mimeMapping, self.__indexTuplesForMimes)
# sind es Attribute
added = added or self.__addIndexForFieldCountMappingIfFieldInMapping(fieldName, colIndex, fieldCount,
self.__featureMapping, self.__indexPairsForFeatures)
if not added:
logging.debug("'{0}' : '{1}'".format(fieldName, fieldCount))
def __addIndexForFieldCountMappingIfFieldInMapping(self, currentFieldname, colIndex, fieldCount, mappingDictionary, indexDictionary):
if currentFieldname in mappingDictionary.keys():
self.__setColumnIndexForMapping(indexDictionary, mappingDictionary[currentFieldname], fieldCount, colIndex)
return True
return False
def __setColumnIndexForMapping(self, indexForClassFieldName, classFieldName, fieldCount, colIndex):
if classFieldName not in indexForClassFieldName.keys():
indexForClassFieldName[classFieldName] = { fieldCount : colIndex }
else:
indexForClassFieldName[classFieldName][fieldCount] = colIndex
def __readArticles(self):
for rowIndex in range(2, self.__currentSheet.max_row + 1):
self.__currentRowIndex = rowIndex
self.articles.append(self.__createProduct())
def __createProduct(self):
currentProduct = Product()
self.__transferInformationForMapping(self.__indexForProduct, currentProduct)
currentProduct.addDetails()
try:
self.__transferInformationForMapping(self.__indexForProductDetails, currentProduct.details)
currentProduct.addOrderDetails()
self.__transferInformationForMapping(self.__indexForOrderDetails, currentProduct.orderDetails)
self.__addMultipleOrderedObjects(self.__indexTuplesForMimes, currentProduct, Mime)
priceDetails = PriceDetails()
self.__addMultipleOrderedObjects(self.__indexTuplesForPrices, priceDetails, Price)
currentProduct.addPriceDetails(priceDetails, raiseException=False)
featureSet = FeatureSet()
self.__addMultipleOrderedObjects(self.__indexPairsForFeatures, featureSet, Feature)
currentProduct.addFeatureSet(featureSet)
currentProduct.validate(raiseException=False)
except FormulaFoundException as ffe:
raise FormulaFoundException("{0}: {1}".format(currentProduct.productId, str(ffe)))
return currentProduct
def __transferInformationForMapping(self, mapping, objectForValue):
"""
Überträgt die Informationen vom Objekt über das angegebene Mapping für das Produkt in der Zeile.
"""
for fieldname, colIndex in mapping.items():
try:
self.__determineAndAddValue(colIndex, objectForValue, fieldname)
except NumberFormatException as e:
raise NumberFormatException("Zeile: {0}/Spalte {1}; '{2}' Fehler: {3}".format(self.__currentRowIndex, colIndex,
fieldname, str(e)))
def __addMultipleOrderedObjects(self, mapping, objectContainer, typeOfMultiples):
"""
Fügt mehrere Objekte zum Objektcontainer hinzu
"""
itemsToAddByOrder = {}
for fieldname in mapping.keys():
self.__setValueForFieldNameAndTransformDecimalsIfNeeded(mapping, typeOfMultiples, itemsToAddByOrder, fieldname)
self.__sortAndAddMultipleOrderedObjects(objectContainer, typeOfMultiples, itemsToAddByOrder)
def __setValueForFieldNameAndTransformDecimalsIfNeeded(self, mapping, typeOfMultiples, itemsToAddByOrder, fieldname):
for order, colIndex in mapping[fieldname].items():
try:
if order not in itemsToAddByOrder.keys():
itemsToAddByOrder[order] = typeOfMultiples()
self.__determineAndAddValue(colIndex, itemsToAddByOrder[order], fieldname)
except NumberFormatException as nfe:
raise NumberFormatException("Zeile: {0}/Spalte {1}; '{2}{4}' Fehler: {3}".format(self.__currentRowIndex, colIndex,
fieldname, str(nfe), order))
except Exception as e:
raise Exception("Zeile: {0}/Spalte {1}; '{2}{4}' Fehler: {3}".format(self.__currentRowIndex, colIndex,
fieldname, str(e), order))
def __determineAndAddValue(self, colIndex, objectForValue, fieldname):
value = self.__currentSheet.cell(column=colIndex, row=self.__currentRowIndex).value
value = self.__transformValueIfSupposedTo(fieldname, value)
if value is not None and len(str(value)) > 0:
objectForValue.add(fieldname, value)
def __transformValueIfSupposedTo(self, fieldname, value):
if fieldname in self.__fieldsToTransform:
return self._separatorTransformer.transform(value)
return value
def __sortAndAddMultipleOrderedObjects(self, objectContainer, typeOfMultiples, itemsToAddByOrder):
for key in sorted(itemsToAddByOrder.keys()):
item = itemsToAddByOrder[key]
self.__setOrderIfNotSet(item, key)
self.__exectueAddMethod(objectContainer, "add" + str(typeOfMultiples.__name__), item)
def __setOrderIfNotSet(self, objectWithOrder, order):
try:
if getattr(objectWithOrder, "order") is None:
setattr(objectWithOrder, "order", int(order))
except AttributeError:
logging.debug("Order Attribute could not be set for '{0}'.".format(objectWithOrder.__class__.__name__))
def __exectueAddMethod(self, objectWithAddMethod , addMethodName, arg):
try:
elementHandler = getattr(objectWithAddMethod, addMethodName)
elementHandler(arg)
except AttributeError:
raise NotImplementedError("Class [" + objectWithAddMethod.__class__.__name__ + "] does not implement [" + addMethodName + "]")
| [
1,
14550,
30004,
13,
20399,
373,
29871,
29896,
29896,
29889,
29900,
29945,
29889,
29906,
29900,
29896,
29955,
30004,
13,
30004,
13,
29992,
8921,
29901,
19061,
5357,
29889,
29886,
309,
29920,
30004,
13,
12008,
30004,
13,
30004,
13,
5215,
12183,
30004,
13,
30004,
13,
3166,
1722,
2272,
15524,
1053,
2254,
29918,
1287,
2909,
30004,
13,
5215,
6528,
30004,
13,
30004,
13,
3166,
1418,
314,
27224,
1053,
5169,
1535,
30004,
13,
3166,
1418,
314,
27224,
1053,
5169,
1535,
2697,
30004,
13,
3166,
1418,
314,
27224,
1053,
341,
603,
30004,
13,
3166,
1418,
314,
27224,
1053,
20743,
30004,
13,
3166,
1418,
314,
27224,
1053,
20743,
10602,
30004,
13,
3166,
1418,
314,
27224,
1053,
10969,
30004,
13,
3166,
1059,
1053,
25515,
9692,
2451,
30004,
13,
3166,
1059,
1053,
9681,
5809,
2451,
30004,
13,
3166,
4327,
261,
1053,
922,
17954,
13372,
261,
30004,
13,
30004,
13,
30004,
13,
1990,
11388,
24192,
9555,
29898,
3318,
1125,
30004,
13,
1678,
14550,
30004,
13,
1678,
770,
2640,
30004,
13,
1678,
14550,
30004,
13,
30004,
13,
1678,
396,
14635,
589,
286,
6922,
4545,
11090,
4919,
1380,
3012,
638,
3478,
30004,
13,
1678,
4770,
24622,
8863,
2435,
1280,
353,
518,
525,
9986,
14258,
742,
525,
29911,
1107,
280,
29896,
742,
525,
15845,
29899,
19203,
29915,
4514,
30004,
13,
30004,
13,
1678,
396,
10197,
10207,
7265,
3012,
638,
1379,
29889,
20152,
342,
575,
762,
26904,
1949,
1050,
30004,
13,
1678,
4770,
3188,
2671,
15845,
353,
3336,
13,
4706,
396,
7138,
12947,
3427,
29888,
30004,
13,
4706,
376,
19303,
4926,
9986,
2512,
1204,
29908,
584,
376,
4704,
1204,
19451,
13,
1678,
4970,
13,
30004,
13,
1678,
396,
3012,
638,
2495,
300,
2234,
30004,
13,
1678,
4770,
4704,
16570,
15845,
353,
3336,
13,
4706,
396,
7138,
1193,
14144,
30004,
13,
4706,
376,
8216,
21322,
29908,
584,
376,
3257,
15231,
13,
4706,
376,
8216,
8208,
29908,
584,
376,
8216,
15231,
13,
4706,
376,
29872,
273,
29908,
584,
376,
29872,
273,
15231,
13,
4706,
376,
19303,
4926,
24528,
1204,
29908,
584,
376,
19303,
4926,
24528,
1204,
15231,
13,
4706,
376,
2423,
7598,
1204,
29908,
584,
376,
2423,
7598,
1204,
15231,
13,
4706,
376,
1171,
9765,
9945,
9986,
2512,
1204,
29908,
584,
376,
1171,
9765,
9945,
9986,
2512,
1204,
15231,
13,
4706,
376,
1171,
9765,
9945,
1170,
29908,
584,
376,
1171,
9765,
9945,
1170,
15231,
13,
4706,
376,
29881,
27657,
2481,
29908,
584,
376,
29881,
27657,
2481,
15231,
13,
4706,
376,
29881,
27657,
29918,
2230,
29908,
584,
376,
29881,
27657,
2481,
19451,
13,
1678,
4970,
13,
30004,
13,
1678,
396,
6407,
295,
430,
300,
2234,
30004,
13,
1678,
4770,
2098,
16570,
15845,
353,
3336,
13,
4706,
396,
8170,
25577,
30004,
13,
4706,
376,
2098,
8325,
29908,
584,
376,
2098,
8325,
15231,
13,
4706,
376,
3051,
8325,
29908,
584,
376,
3051,
8325,
15231,
13,
4706,
376,
3916,
8325,
29908,
584,
376,
3051,
8325,
15231,
13,
4706,
376,
4058,
292,
22930,
537,
29908,
584,
376,
4058,
292,
22930,
537,
15231,
13,
4706,
376,
9175,
22930,
537,
29908,
584,
376,
9175,
22930,
537,
15231,
13,
4706,
376,
22640,
8140,
29908,
584,
376,
22640,
8140,
15231,
13,
4706,
376,
22640,
12506,
29908,
584,
376,
22640,
12506,
19451,
13,
1678,
4970,
13,
30004,
13,
1678,
396,
5722,
2010,
13617,
30004,
13,
1678,
4770,
14394,
15845,
353,
3336,
13,
4706,
376,
12715,
29918,
978,
29908,
584,
376,
978,
15231,
13,
4706,
376,
12715,
1170,
29908,
584,
376,
978,
15231,
13,
4706,
376,
12715,
29918,
1767,
29908,
584,
376,
5975,
15231,
13,
4706,
376,
12715,
1917,
29908,
584,
376,
5975,
15231,
13,
4706,
376,
12715,
29918,
5441,
29908,
584,
376,
5441,
15231,
13,
4706,
376,
12715,
8325,
29908,
584,
376,
5441,
19451,
13,
1678,
4970,
13,
30004,
13,
1678,
396,
29318,
10207,
30004,
13,
1678,
4770,
9175,
15845,
353,
3336,
13,
4706,
376,
9175,
1542,
29908,
584,
376,
9175,
1542,
15231,
13,
4706,
376,
9175,
29918,
1853,
29908,
584,
376,
9175,
1542,
15231,
13,
4706,
376,
9175,
18087,
29908,
584,
376,
14506,
15231,
13,
4706,
376,
9175,
29918,
14506,
29908,
584,
376,
14506,
15231,
13,
4706,
376,
20725,
29908,
584,
376,
20725,
15231,
13,
4706,
376,
13609,
17109,
29908,
584,
376,
13609,
17109,
15231,
13,
4706,
376,
13609,
29918,
9917,
29908,
584,
376,
13609,
17109,
15231,
13,
4706,
376,
19790,
29908,
584,
376,
19790,
15231,
13,
4706,
376,
357,
768,
706,
29908,
584,
376,
357,
768,
706,
15231,
13,
4706,
376,
26095,
29908,
584,
376,
26095,
19451,
13,
1678,
4970,
13,
30004,
13,
1678,
396,
11679,
10207,
30004,
13,
1678,
4770,
29885,
603,
15845,
353,
3336,
13,
4706,
376,
29885,
603,
1542,
29908,
584,
376,
29885,
603,
1542,
15231,
13,
4706,
376,
29885,
603,
29918,
1853,
29908,
584,
376,
29885,
603,
1542,
15231,
13,
4706,
376,
29885,
603,
4435,
29908,
584,
376,
4993,
15231,
13,
4706,
376,
29885,
603,
29918,
4993,
29908,
584,
376,
4993,
15231,
13,
4706,
376,
29885,
603,
9868,
29908,
584,
376,
8216,
15231,
13,
4706,
376,
29885,
603,
29918,
8216,
29908,
584,
376,
8216,
15231,
13,
4706,
376,
29885,
603,
24528,
29908,
584,
376,
284,
841,
1230,
3916,
15231,
13,
4706,
376,
29885,
603,
29918,
1997,
29908,
584,
376,
284,
841,
1230,
3916,
15231,
13,
4706,
376,
29885,
603,
29925,
332,
4220,
29908,
584,
376,
15503,
4220,
15231,
13,
4706,
376,
29885,
603,
29918,
15503,
4220,
29908,
584,
376,
15503,
4220,
15231,
13,
4706,
376,
29885,
603,
7514,
29908,
584,
376,
2098,
15231,
13,
4706,
376,
29885,
603,
29918,
2098,
29908,
584,
376,
2098,
19451,
13,
1678,
4970,
13,
30004,
13,
1678,
4770,
9621,
1762,
13372,
353,
518,
376,
9175,
18087,
613,
376,
9175,
29918,
14506,
613,
376,
14506,
613,
376,
20725,
613,
376,
19790,
613,
376,
29881,
27657,
29918,
2230,
613,
376,
29881,
27657,
2481,
29908,
4514,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
28128,
13372,
261,
29922,
2008,
17954,
13372,
261,
703,
4801,
522,
5783,
29901,
30004,
13,
4706,
14550,
30004,
13,
4706,
1281,
18769,
30004,
13,
4706,
14550,
30004,
13,
4706,
1583,
17255,
2248,
2831,
7566,
353,
6571,
30004,
13,
4706,
1583,
17255,
2248,
2831,
7566,
10602,
353,
6571,
30004,
13,
4706,
1583,
17255,
2248,
2831,
7514,
10602,
353,
6571,
30004,
13,
4706,
1583,
17255,
2248,
29925,
7121,
2831,
8263,
3698,
353,
6571,
30004,
13,
4706,
1583,
17255,
2248,
23215,
2701,
2831,
4040,
1575,
353,
6571,
30004,
13,
4706,
1583,
17255,
2248,
23215,
2701,
2831,
29924,
1355,
353,
6571,
30004,
13,
4706,
1583,
17255,
3784,
4301,
3220,
353,
29871,
29896,
30004,
13,
4706,
1583,
17255,
3784,
10654,
353,
6213,
30004,
13,
4706,
1583,
3032,
344,
17954,
13372,
261,
353,
28128,
13372,
261,
30004,
13,
30004,
13,
4706,
1583,
29889,
18569,
353,
5159,
30004,
13,
30004,
13,
1678,
822,
1303,
26501,
29898,
1311,
29892,
10422,
1125,
30004,
13,
4706,
281,
29890,
353,
2254,
29918,
1287,
2909,
29898,
9507,
8443,
13,
4706,
2302,
9135,
1687,
29907,
5380,
1078,
353,
29871,
29900,
30004,
13,
4706,
4434,
2435,
420,
353,
6213,
30004,
13,
4706,
363,
6068,
10654,
978,
297,
1583,
17255,
24622,
8863,
2435,
1280,
29901,
30004,
13,
9651,
565,
6068,
10654,
978,
297,
281,
29890,
29889,
9855,
7039,
29901,
30004,
13,
18884,
2302,
9135,
1687,
29907,
5380,
1078,
4619,
29871,
29896,
30004,
13,
18884,
4434,
2435,
420,
353,
6068,
10654,
978,
30004,
13,
30004,
13,
4706,
565,
4434,
2435,
420,
338,
6213,
29901,
30004,
13,
9651,
12020,
8960,
703,
29928,
294,
11090,
4919,
22801,
1380,
972,
3012,
638,
3478,
5071,
20099,
4596,
589,
24245,
14635,
1020,
1885,
29901,
22372,
29900,
10162,
1642,
4830,
28165,
11393,
7122,
29898,
1311,
17255,
24622,
8863,
2435,
1280,
4961,
30004,
13,
4706,
565,
2302,
9135,
1687,
29907,
5380,
1078,
1405,
29871,
29896,
29901,
30004,
13,
9651,
12020,
8960,
703,
14190,
5424,
29888,
5595,
1011,
11090,
4919,
22801,
1380,
972,
24245,
3012,
638,
3478,
5071,
1863,
7884,
29901,
22372,
29900,
10162,
1642,
4830,
28165,
11393,
7122,
29898,
1311,
17255,
24622,
8863,
2435,
1280,
4961,
30004,
13,
30004,
13,
4706,
1583,
17255,
3784,
10654,
353,
281,
29890,
29961,
3891,
2435,
420,
29962,
30004,
13,
4706,
1583,
17255,
4801,
837,
457,
3220,
9689,
886,
26471,
13,
4706,
1583,
17255,
949,
9986,
4027,
26471,
13,
30004,
13,
1678,
822,
4770,
4801,
837,
457,
3220,
9689,
886,
29898,
1311,
1125,
30004,
13,
4706,
396,
1737,
354,
3494,
4788,
1706,
284,
841,
297,
3091,
488,
29871,
29896,
313,
7850,
911,
488,
8443,
13,
4706,
363,
784,
3220,
297,
3464,
29898,
29896,
29892,
1583,
17255,
3784,
10654,
29889,
3317,
29918,
4914,
718,
29871,
29896,
1125,
30004,
13,
9651,
396,
16188,
972,
11305,
29884,
4919,
21113,
29876,
5071,
30004,
13,
9651,
1857,
3073,
978,
353,
1583,
17255,
3784,
10654,
29889,
3729,
29898,
4914,
29922,
1054,
3220,
29892,
1948,
29922,
29896,
467,
1767,
30004,
13,
9651,
396,
13588,
589,
21113,
8588,
3072,
454,
261,
1752,
30004,
13,
9651,
565,
1857,
3073,
978,
338,
451,
6213,
322,
7431,
29898,
3784,
3073,
978,
29889,
17010,
3101,
1405,
29871,
29900,
29901,
30004,
13,
18884,
1583,
17255,
4801,
522,
5292,
1907,
29898,
3784,
3073,
978,
29892,
784,
3220,
8443,
13,
30004,
13,
1678,
822,
4770,
4801,
522,
5292,
1907,
29898,
1311,
29892,
1857,
3073,
978,
29892,
784,
3220,
1125,
30004,
13,
4706,
396,
330,
747,
8756,
1770,
30004,
13,
4706,
12183,
29889,
8382,
29898,
3784,
3073,
978,
8443,
13,
30004,
13,
4706,
396,
1752,
604,
297,
972,
2967,
2671,
15506,
313,
29954,
29160,
10207,
13287,
672,
553,
3012,
638,
1379,
8443,
13,
4706,
2715,
353,
1583,
17255,
1202,
3220,
2831,
15845,
3644,
3073,
797,
15845,
29898,
3784,
3073,
978,
29892,
784,
3220,
29892,
1583,
17255,
3188,
2671,
15845,
29892,
1583,
17255,
2248,
2831,
7566,
8443,
13,
4706,
396,
1752,
604,
3234,
9493,
8018,
30004,
13,
4706,
2715,
353,
2715,
470,
1583,
17255,
1202,
3220,
2831,
15845,
3644,
3073,
797,
15845,
29898,
3784,
3073,
978,
29892,
784,
3220,
29892,
1583,
17255,
4704,
16570,
15845,
29892,
1583,
17255,
2248,
2831,
7566,
10602,
8443,
13,
4706,
396,
1900,
295,
430,
300,
2234,
30004,
13,
4706,
2715,
353,
2715,
470,
1583,
17255,
1202,
3220,
2831,
15845,
3644,
3073,
797,
15845,
29898,
3784,
3073,
978,
29892,
784,
3220,
29892,
1583,
17255,
2098,
16570,
15845,
29892,
1583,
17255,
2248,
2831,
7514,
10602,
8443,
13,
30004,
13,
4706,
396,
9900,
13617,
29973,
30004,
13,
4706,
565,
451,
2715,
29901,
30004,
13,
9651,
1583,
17255,
4801,
522,
15329,
4409,
5292,
1907,
29898,
3784,
3073,
978,
29892,
784,
3220,
8443,
13,
30004,
13,
1678,
822,
4770,
1202,
3220,
2831,
15845,
3644,
3073,
797,
15845,
29898,
1311,
29892,
1857,
3073,
978,
29892,
784,
3220,
29892,
10417,
11513,
29892,
2380,
11513,
1125,
30004,
13,
4706,
396,
1752,
604,
297,
972,
2967,
2671,
15506,
313,
29954,
29160,
10207,
13287,
672,
553,
3012,
638,
1379,
8443,
13,
4706,
565,
1857,
3073,
978,
297,
10417,
11513,
29889,
8149,
7295,
30004,
13,
9651,
2380,
11513,
29961,
20698,
11513,
29961,
3784,
3073,
978,
5262,
353,
784,
3220,
30004,
13,
9651,
736,
5852,
30004,
13,
4706,
736,
7700,
30004,
13,
30004,
13,
1678,
822,
4770,
4801,
522,
15329,
4409,
5292,
1907,
29898,
1311,
29892,
1857,
3073,
978,
29892,
784,
3220,
1125,
30004,
13,
4706,
396,
7885,
3887,
9957,
14259,
6219,
841,
29892,
1146,
589,
796,
17165,
1647,
309,
30004,
13,
4706,
396,
317,
340,
10330,
762,
18640,
479,
6871,
9918,
589,
13617,
385,
911,
5523,
11167,
13,
4706,
396,
1620,
2907,
762,
830,
29875,
3169,
22997,
1900,
326,
4378,
30004,
13,
4706,
1746,
1170,
353,
6528,
29889,
4352,
703,
29961,
29874,
29899,
25265,
29899,
29999,
29918,
14178,
613,
1857,
3073,
978,
467,
2972,
29898,
29900,
8443,
13,
4706,
1746,
1170,
353,
1746,
1170,
29889,
17010,
703,
29918,
1159,
30004,
13,
4706,
1746,
3981,
353,
1857,
3073,
978,
29889,
6506,
29898,
2671,
1170,
29892,
376,
2564,
17010,
703,
29918,
1159,
30004,
13,
30004,
13,
4706,
12183,
29889,
8382,
703,
29915,
29912,
29900,
10162,
584,
22372,
29896,
10162,
1642,
4830,
29898,
2671,
1170,
29892,
1746,
3981,
876,
30004,
13,
30004,
13,
4706,
396,
3937,
831,
4721,
895,
1577,
30004,
13,
4706,
2715,
353,
1583,
17255,
1202,
3220,
2831,
3073,
3981,
15845,
3644,
3073,
797,
15845,
29898,
2671,
1170,
29892,
784,
3220,
29892,
1746,
3981,
11167,
13,
462,
462,
462,
462,
1678,
1583,
17255,
9175,
15845,
29892,
1583,
17255,
2248,
23215,
2701,
2831,
4040,
1575,
8443,
13,
4706,
396,
3937,
831,
8354,
1577,
30004,
13,
4706,
2715,
353,
2715,
470,
1583,
17255,
1202,
3220,
2831,
3073,
3981,
15845,
3644,
3073,
797,
15845,
29898,
2671,
1170,
29892,
784,
3220,
29892,
1746,
3981,
11167,
13,
462,
462,
462,
462,
632,
1583,
17255,
29885,
603,
15845,
29892,
1583,
17255,
2248,
23215,
2701,
2831,
29924,
1355,
8443,
13,
4706,
396,
3937,
831,
23833,
30004,
13,
4706,
2715,
353,
2715,
470,
1583,
17255,
1202,
3220,
2831,
3073,
3981,
15845,
3644,
3073,
797,
15845,
29898,
2671,
1170,
29892,
784,
3220,
29892,
1746,
3981,
11167,
13,
462,
462,
462,
462,
632,
1583,
17255,
14394,
15845,
29892,
1583,
17255,
2248,
29925,
7121,
2831,
8263,
3698,
8443,
13,
30004,
13,
4706,
565,
451,
2715,
29901,
30004,
13,
9651,
12183,
29889,
8382,
703,
29915,
29912,
29900,
10162,
584,
22372,
29896,
10162,
1642,
4830,
29898,
2671,
1170,
29892,
1746,
3981,
876,
30004,
13,
30004,
13,
1678,
822,
4770,
1202,
3220,
2831,
3073,
3981,
15845,
3644,
3073,
797,
15845,
29898,
1311,
29892,
1857,
3073,
978,
29892,
784,
3220,
29892,
1746,
3981,
29892,
10417,
11513,
29892,
2380,
11513,
1125,
30004,
13,
4706,
565,
1857,
3073,
978,
297,
10417,
11513,
29889,
8149,
7295,
30004,
13,
9651,
1583,
17255,
842,
4409,
3220,
2831,
15845,
29898,
2248,
11513,
29892,
10417,
11513,
29961,
3784,
3073,
978,
1402,
1746,
3981,
29892,
784,
3220,
8443,
13,
9651,
736,
5852,
30004,
13,
4706,
736,
7700,
30004,
13,
30004,
13,
1678,
822,
4770,
842,
4409,
3220,
2831,
15845,
29898,
1311,
29892,
2380,
2831,
2385,
3073,
1170,
29892,
770,
3073,
1170,
29892,
1746,
3981,
29892,
784,
3220,
1125,
30004,
13,
4706,
565,
770,
3073,
1170,
451,
297,
2380,
2831,
2385,
3073,
1170,
29889,
8149,
7295,
30004,
13,
9651,
2380,
2831,
2385,
3073,
1170,
29961,
1990,
3073,
1170,
29962,
353,
426,
1746,
3981,
584,
784,
3220,
4970,
13,
4706,
1683,
29901,
30004,
13,
9651,
2380,
2831,
2385,
3073,
1170,
29961,
1990,
3073,
1170,
3816,
2671,
3981,
29962,
353,
784,
3220,
30004,
13,
30004,
13,
1678,
822,
4770,
949,
9986,
4027,
29898,
1311,
1125,
30004,
13,
4706,
363,
1948,
3220,
297,
3464,
29898,
29906,
29892,
1583,
17255,
3784,
10654,
29889,
3317,
29918,
798,
718,
29871,
29896,
1125,
30004,
13,
9651,
1583,
17255,
3784,
4301,
3220,
353,
1948,
3220,
30004,
13,
9651,
1583,
29889,
18569,
29889,
4397,
29898,
1311,
17255,
3258,
7566,
3101,
30004,
13,
30004,
13,
1678,
822,
4770,
3258,
7566,
29898,
1311,
1125,
30004,
13,
4706,
1857,
7566,
353,
10969,
26471,
13,
4706,
1583,
17255,
3286,
571,
20350,
2831,
15845,
29898,
1311,
17255,
2248,
2831,
7566,
29892,
1857,
7566,
8443,
13,
4706,
1857,
7566,
29889,
1202,
10602,
26471,
13,
4706,
1018,
29901,
30004,
13,
9651,
1583,
17255,
3286,
571,
20350,
2831,
15845,
29898,
1311,
17255,
2248,
2831,
7566,
10602,
29892,
1857,
7566,
29889,
14144,
8443,
13,
9651,
1857,
7566,
29889,
1202,
7514,
10602,
26471,
13,
9651,
1583,
17255,
3286,
571,
20350,
2831,
15845,
29898,
1311,
17255,
2248,
2831,
7514,
10602,
29892,
1857,
7566,
29889,
2098,
10602,
8443,
13,
9651,
1583,
17255,
1202,
15329,
552,
7514,
287,
12724,
29898,
1311,
17255,
2248,
23215,
2701,
2831,
29924,
1355,
29892,
1857,
7566,
29892,
341,
603,
8443,
13,
9651,
8666,
10602,
353,
20743,
10602,
26471,
13,
9651,
1583,
17255,
1202,
15329,
552,
7514,
287,
12724,
29898,
1311,
17255,
2248,
23215,
2701,
2831,
4040,
1575,
29892,
8666,
10602,
29892,
20743,
8443,
13,
9651,
1857,
7566,
29889,
1202,
13026,
10602,
29898,
9175,
10602,
29892,
12020,
2451,
29922,
8824,
8443,
13,
9651,
4682,
2697,
353,
5169,
1535,
2697,
26471,
13,
9651,
1583,
17255,
1202,
15329,
552,
7514,
287,
12724,
29898,
1311,
17255,
2248,
29925,
7121,
2831,
8263,
3698,
29892,
4682,
2697,
29892,
5169,
1535,
8443,
13,
9651,
1857,
7566,
29889,
1202,
19132,
2697,
29898,
14394,
2697,
8443,
13,
9651,
1857,
7566,
29889,
15480,
29898,
22692,
2451,
29922,
8824,
8443,
13,
4706,
5174,
25515,
9692,
2451,
408,
285,
1725,
29901,
30004,
13,
9651,
12020,
25515,
9692,
2451,
703,
29912,
29900,
6177,
426,
29896,
29913,
1642,
4830,
29898,
3784,
7566,
29889,
4704,
1204,
29892,
851,
29898,
17615,
4961,
30004,
13,
4706,
736,
1857,
7566,
30004,
13,
30004,
13,
1678,
822,
4770,
3286,
571,
20350,
2831,
15845,
29898,
1311,
29892,
10417,
29892,
1203,
2831,
1917,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
12093,
509,
27512,
762,
10343,
264,
3961,
4250,
9761,
2939,
1697,
2614,
387,
774,
1600,
341,
20304,
1865,
1697,
7138,
1193,
297,
589,
3091,
488,
22993,
13,
4706,
9995,
30004,
13,
4706,
363,
1746,
978,
29892,
784,
3220,
297,
10417,
29889,
7076,
7295,
30004,
13,
9651,
1018,
29901,
30004,
13,
18884,
1583,
17255,
4801,
837,
457,
2855,
2528,
1917,
29898,
1054,
3220,
29892,
1203,
2831,
1917,
29892,
1746,
978,
8443,
13,
9651,
5174,
9681,
5809,
2451,
408,
321,
29901,
30004,
13,
18884,
12020,
9681,
5809,
2451,
703,
24625,
488,
29901,
426,
29900,
6822,
5592,
284,
371,
426,
29896,
3400,
22372,
29906,
10162,
5169,
29882,
1358,
29901,
426,
29941,
29913,
1642,
4830,
29898,
1311,
17255,
3784,
4301,
3220,
29892,
784,
3220,
11167,
13,
462,
462,
462,
462,
462,
795,
1746,
978,
29892,
851,
29898,
29872,
4961,
30004,
13,
30004,
13,
1678,
822,
4770,
1202,
15329,
552,
7514,
287,
12724,
29898,
1311,
29892,
10417,
29892,
1203,
7895,
29892,
1134,
2776,
15329,
2701,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
383,
29993,
4141,
21742,
4250,
29390,
3356,
4250,
9761,
7611,
14638,
6951,
30004,
13,
4706,
9995,
30004,
13,
4706,
4452,
1762,
2528,
2059,
7514,
353,
6571,
30004,
13,
4706,
363,
1746,
978,
297,
10417,
29889,
8149,
7295,
30004,
13,
9651,
1583,
17255,
842,
1917,
2831,
3073,
1170,
2855,
13372,
6185,
326,
1338,
3644,
8139,
19226,
29898,
20698,
29892,
1134,
2776,
15329,
2701,
29892,
4452,
1762,
2528,
2059,
7514,
29892,
1746,
978,
8443,
13,
30004,
13,
4706,
1583,
17255,
6605,
2855,
2528,
15329,
552,
7514,
287,
12724,
29898,
3318,
7895,
29892,
1134,
2776,
15329,
2701,
29892,
4452,
1762,
2528,
2059,
7514,
8443,
13,
30004,
13,
1678,
822,
4770,
842,
1917,
2831,
3073,
1170,
2855,
13372,
6185,
326,
1338,
3644,
8139,
19226,
29898,
1311,
29892,
10417,
29892,
1134,
2776,
15329,
2701,
29892,
4452,
1762,
2528,
2059,
7514,
29892,
1746,
978,
1125,
30004,
13,
4706,
363,
1797,
29892,
784,
3220,
297,
10417,
29961,
2671,
978,
1822,
7076,
7295,
30004,
13,
9651,
1018,
29901,
30004,
13,
18884,
565,
1797,
451,
297,
4452,
1762,
2528,
2059,
7514,
29889,
8149,
7295,
30004,
13,
462,
1678,
4452,
1762,
2528,
2059,
7514,
29961,
2098,
29962,
353,
1134,
2776,
15329,
2701,
26471,
13,
18884,
1583,
17255,
4801,
837,
457,
2855,
2528,
1917,
29898,
1054,
3220,
29892,
4452,
1762,
2528,
2059,
7514,
29961,
2098,
1402,
1746,
978,
8443,
13,
9651,
5174,
9681,
5809,
2451,
408,
302,
1725,
29901,
30004,
13,
18884,
12020,
9681,
5809,
2451,
703,
24625,
488,
29901,
426,
29900,
6822,
5592,
284,
371,
426,
29896,
3400,
22372,
29906,
1157,
29946,
10162,
5169,
29882,
1358,
29901,
426,
29941,
29913,
1642,
4830,
29898,
1311,
17255,
3784,
4301,
3220,
29892,
784,
3220,
11167,
13,
462,
462,
462,
462,
462,
462,
1746,
978,
29892,
851,
29898,
29876,
1725,
511,
1797,
876,
30004,
13,
9651,
5174,
8960,
408,
321,
29901,
30004,
13,
18884,
12020,
8960,
703,
24625,
488,
29901,
426,
29900,
6822,
5592,
284,
371,
426,
29896,
3400,
22372,
29906,
1157,
29946,
10162,
5169,
29882,
1358,
29901,
426,
29941,
29913,
1642,
4830,
29898,
1311,
17255,
3784,
4301,
3220,
29892,
784,
3220,
11167,
13,
462,
462,
462,
462,
462,
268,
1746,
978,
29892,
851,
29898,
29872,
511,
1797,
876,
30004,
13,
30004,
13,
1678,
822,
4770,
4801,
837,
457,
2855,
2528,
1917,
29898,
1311,
29892,
784,
3220,
29892,
1203,
2831,
1917,
29892,
1746,
978,
1125,
30004,
13,
4706,
995,
353,
1583,
17255,
3784,
10654,
29889,
3729,
29898,
4914,
29922,
1054,
3220,
29892,
1948,
29922,
1311,
17255,
3784,
4301,
3220,
467,
1767,
30004,
13,
4706,
995,
353,
1583,
17255,
9067,
1917,
3644,
20182,
2662,
1762,
29898,
2671,
978,
29892,
995,
8443,
13,
4706,
565,
995,
338,
451,
6213,
322,
7431,
29898,
710,
29898,
1767,
876,
1405,
29871,
29900,
29901,
30004,
13,
9651,
1203,
2831,
1917,
29889,
1202,
29898,
2671,
978,
29892,
995,
8443,
13,
30004,
13,
1678,
822,
4770,
9067,
1917,
3644,
20182,
2662,
1762,
29898,
1311,
29892,
1746,
978,
29892,
995,
1125,
30004,
13,
4706,
565,
1746,
978,
297,
1583,
17255,
9621,
1762,
13372,
29901,
30004,
13,
9651,
736,
1583,
3032,
344,
17954,
13372,
261,
29889,
9067,
29898,
1767,
8443,
13,
4706,
736,
995,
30004,
13,
30004,
13,
1678,
822,
4770,
6605,
2855,
2528,
15329,
552,
7514,
287,
12724,
29898,
1311,
29892,
1203,
7895,
29892,
1134,
2776,
15329,
2701,
29892,
4452,
1762,
2528,
2059,
7514,
1125,
30004,
13,
4706,
363,
1820,
297,
12705,
29898,
7076,
1762,
2528,
2059,
7514,
29889,
8149,
580,
1125,
30004,
13,
9651,
2944,
353,
4452,
1762,
2528,
2059,
7514,
29961,
1989,
29962,
30004,
13,
9651,
1583,
17255,
842,
7514,
3644,
3664,
2697,
29898,
667,
29892,
1820,
8443,
13,
9651,
1583,
17255,
735,
522,
434,
2528,
4062,
29898,
3318,
7895,
29892,
376,
1202,
29908,
718,
851,
29898,
1853,
2776,
15329,
2701,
17255,
978,
1649,
511,
2944,
8443,
13,
30004,
13,
1678,
822,
4770,
842,
7514,
3644,
3664,
2697,
29898,
1311,
29892,
1203,
3047,
7514,
29892,
1797,
1125,
30004,
13,
4706,
1018,
29901,
30004,
13,
9651,
565,
679,
5552,
29898,
3318,
3047,
7514,
29892,
376,
2098,
1159,
338,
6213,
29901,
30004,
13,
18884,
731,
5552,
29898,
3318,
3047,
7514,
29892,
376,
2098,
613,
938,
29898,
2098,
876,
30004,
13,
4706,
5174,
23833,
2392,
29901,
30004,
13,
9651,
12183,
29889,
8382,
703,
7514,
23833,
1033,
451,
367,
731,
363,
22372,
29900,
10162,
1213,
29889,
4830,
29898,
3318,
3047,
7514,
17255,
1990,
1649,
17255,
978,
1649,
876,
30004,
13,
30004,
13,
1678,
822,
4770,
735,
522,
434,
2528,
4062,
29898,
1311,
29892,
1203,
3047,
2528,
4062,
1919,
788,
4062,
1170,
29892,
1852,
1125,
30004,
13,
4706,
1018,
29901,
30004,
13,
9651,
1543,
4598,
353,
679,
5552,
29898,
3318,
3047,
2528,
4062,
29892,
788,
4062,
1170,
8443,
13,
9651,
1543,
4598,
29898,
1191,
8443,
13,
4706,
5174,
23833,
2392,
29901,
30004,
13,
9651,
12020,
2216,
1888,
2037,
287,
2392,
703,
2385,
6796,
718,
1203,
3047,
2528,
4062,
17255,
1990,
1649,
17255,
978,
1649,
718,
376,
29962,
947,
451,
2334,
6796,
718,
788,
4062,
1170,
718,
376,
29962,
1159,
30004,
13,
2
] |
pdil/core/findNode.py | patcorwin/fossil | 41 | 97321 | <gh_stars>10-100
'''
These function find different nodes, but generally will NOT make any if they do not exist,
the `getNodes` does that. This lets all the lib modules find if needed, and only
the portions that actually need to make objects can do so.
'''
from __future__ import print_function, absolute_import
import json
from pymel.core import cmds, PyNode, warning, objExists, ls, joint
from ..add import *
from .. import nodeApi
def getRoot(nodes=None, make=None):
'''
Returns the root bone, trying to account for case and namespaces or None if
not found. `make` should be either 'root' or 'weaponRoot', specifying which
to make (always top level) if a root is not found.
Can be given a list of nodes to search for the root,
'''
names = [ 'b_root', 'b_Root', 'Rig:b_root', 'Rig:b_Root', 'b_weaponRoot', 'Rig:b_weaponRoot' ]
if not nodes:
# Check if any exist top level first
top = ls(assemblies=True)
for name in names:
if name in top:
return PyNode('|' + name)
# See if there is a top level obj in a namespace named b_root of any casing.
searchNodes = nodes if nodes else ls( assemblies=True )
nodes = [obj for obj in searchNodes if simpleName( obj ).lower() == 'b_root' or simpleName(obj).lower() == 'b_weaponroot']
if len(nodes) == 1:
return nodes[0]
# Then check if any exist at all (which will fail if several exist in separate groups).
for name in names:
if objExists( name ):
return PyNode( name )
if make:
return joint(None, n='b_' + make)
else:
return None
def controllers(main=None):
'''
Returns all the animation controllers in the scene.
.. todo:: Add the shapes that have ik/fk switching on them
'''
''' Timing experiments: Results, cmds + sets is WAY faster!
s = time.time()
controls = [c for c in listRelatives(main, ad=True, type='transform') if c.hasAttr('fossilCtrlType')]
print( time.time() - s, 'ls(*.fossilCtrlType) ORIGINAL' )
s = time.time()
controls = [PyNode(c) for c in cmds.listRelatives(main.name(), ad=True, type='transform', f=1) if cmds.attributeQuery('fossilCtrlType', node=c, ex=True)]
print( time.time() - s, 'cmds.listRelatives() list comp' )
s = time.time()
#controls = [c for c in listRelatives(main, ad=True, type='transform') if c.hasAttr('fossilCtrlType')]
allControls = set(cmds.ls('*.fossilCtrlType', type='transform', r=True, o=True))
allControls.intersection_update( cmds.listRelatives(main.name(), ad=True, type='transform') )
controls = [PyNode(o) for o in allControls]
print( time.time() - s, 'cmds and set filtering' )
Swift Cat as main:
0.611000061035 ls(*.fossilCtrlType) ORIGINAL
0.123000144958 cmds.listRelatives() list comp
0.0439999103546 cmds and set filtering
Swift as Main:
2.1210000515 ls(*.fossilCtrlType) ORIGINAL
0.398999929428 cmds.listRelatives() list comp
0.0769999027252 cmds and set filtering
'''
allControls = set( cmds.ls( '*.fossilCtrlType', o=True, r=True, l=True ) )
if main:
mainTransforms = cmds.listRelatives(main.name(), ad=True, type='transform', f=True)
if mainTransforms:
allControls.intersection_update( mainTransforms )
controls = [PyNode(o) for o in allControls]
controls.append(main)
root = rootMotion(main=main)
if root:
controls.append(root)
return controls
else:
warning("No sub controls found for {0}".format(main.name()))
else:
controls = [PyNode(o) for o in allControls]
main = mainGroup()
if main:
controls.append(main)
root = rootMotion(main=main)
if root:
controls.append(root)
return controls
return []
MAIN_CONTROL_TAG = 'fossilMainControl'
def mainGroup(nodePool=None):
'''
Returns the main group containing the rig, named "main", or an object tagged as the main.
todo: This logic should mainly go into `mainControls`, and this just returns the first.
'''
if nodePool:
for n in nodePool:
if simpleName(n) == 'main' or n.hasAttr(MAIN_CONTROL_TAG):
return n
if objExists('|main'):
return PyNode('|main')
else:
# A pymel bug is sometimes returning duplicate nodes
main = list(set([ obj for obj in ls( 'main', r=True) if not obj.getParent() ]))
if len(main) == 1:
return main[0]
# No "main" ojbect was found, looking for tags
plugs = ls('*.' + MAIN_CONTROL_TAG)
if plugs:
return plugs[0].node()
return None
def mainControls():
'''
Returns all the main controls in the scene, ake the main of each character.
todo: see mainGroup, take most of the logic.
'''
return ls( '*.' + MAIN_CONTROL_TAG, o=True, r=True )
def tagAsMain(obj):
obj.addAttr(MAIN_CONTROL_TAG, at='message')
def leadController(obj):
'''
Given a controller, return the main RigController (possibly itself) or
None if not found.
.. todo::
This needs to be merged with the same one in skeletonTool.rig
'''
# &&& Replace this with actual node class references when nodeApi is moved
if isinstance(obj, nodeApi.RigController):
return obj
else:
objs = [ o for o in obj.message.listConnections() if isinstance(o, nodeApi.RigController) ]
if objs:
return objs[0]
return None
def rootMotion(main=None):
'''
Returns the root motion, optionally making one if it doesn't exist.
If main is specified, search its descendents.
'''
''' Timing test with Swift as main, re and split are about equal and 200x faster!
re and split were almost identical, even on the whole scene.
s = time.time()
#oldGetRootMotion(main)
for child in listRelatives(main, ad=True, type='transform'):
#for child in ls(type='transform'):
if lib.dagObj.simpleName( child ) == 'rootMotion':
break
#return child
print( time.time() - s, 'orig')
s = time.time()
for child in cmds.listRelatives(main.name(), ad=True, type='transform'):
#for child in cmds.ls(type='transform'):
if child.rsplit('|',1)[-1].rsplit(':', 1)[-1] == 'rootMotion':
#print( child)
break
print( time.time() - s, 'split')
s = time.time()
simpleName = re.compile( '\w+$' )
for child in cmds.listRelatives(main.name(), ad=True, type='transform'):
#for child in cmds.ls(type='transform'):
if simpleName.search(child).group(0) == 'rootMotion':
#print( child)
break
print( time.time() - s, 're')
'''
if main:
children = cmds.listRelatives(main.name(), ad=True, type='transform', f=True)
if children: # cmds returns None instead of emtpy list
for child in children:
if child.rsplit('|', 1)[-1].rsplit(':', 1)[-1] == 'rootMotion':
return PyNode(child)
return None
if objExists( 'rootMotion' ):
return PyNode( 'rootMotion' )
else:
rms = ls( 'rootMotion', r=True )
if len(rms) == 1:
return rms[0]
return None
def allCards(main=None):
'''
Return all the cards, optionally taking a specific skeletonBlueprint.
'''
# Use cmds for speed (swift takes 0.20 with pymel but 0.04 with cmds)
targetCards = set(
cmds.ls( '*.skeletonInfo', o=True, r=True, l=True ) +
cmds.ls( '*.fossilRigData', o=True, r=True, l=True )
)
if main:
targetCards.intersection_update( cmds.listRelatives(main.name(), ad=True, type='transform', f=True) )
def order(obj):
try:
return cmds.getAttr(obj + '.buildOrder')
except Exception:
pass
try:
return json.loads(cmds.getAttr(obj + '.fossilRigData')).get('buildOrder', 10)
except Exception:
pass
return 10
return [PyNode(c) for c in sorted(targetCards, key=order)]
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
12008,
13,
1349,
968,
740,
1284,
1422,
7573,
29892,
541,
6892,
674,
6058,
1207,
738,
565,
896,
437,
451,
1863,
29892,
13,
1552,
421,
657,
20284,
29952,
947,
393,
29889,
29871,
910,
16869,
599,
278,
4303,
10585,
1284,
565,
4312,
29892,
322,
871,
13,
1552,
2011,
1080,
393,
2869,
817,
304,
1207,
3618,
508,
437,
577,
29889,
13,
12008,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
29892,
8380,
29918,
5215,
13,
13,
5215,
4390,
13,
13,
3166,
282,
962,
295,
29889,
3221,
1053,
9920,
29879,
29892,
10772,
4247,
29892,
9177,
29892,
5446,
24217,
29892,
19375,
29892,
14002,
13,
13,
3166,
6317,
1202,
1053,
334,
13,
3166,
6317,
1053,
2943,
11713,
13,
13,
13,
1753,
679,
10303,
29898,
18010,
29922,
8516,
29892,
1207,
29922,
8516,
1125,
13,
1678,
14550,
13,
1678,
16969,
278,
3876,
289,
650,
29892,
1811,
304,
3633,
363,
1206,
322,
2983,
22459,
470,
6213,
565,
13,
1678,
451,
1476,
29889,
29871,
421,
5675,
29952,
881,
367,
2845,
525,
4632,
29915,
470,
525,
705,
481,
265,
10303,
742,
22146,
607,
13,
1678,
304,
1207,
313,
21936,
2246,
3233,
29897,
565,
263,
3876,
338,
451,
1476,
29889,
13,
268,
13,
1678,
1815,
367,
2183,
263,
1051,
310,
7573,
304,
2740,
363,
278,
3876,
29892,
13,
1678,
14550,
13,
13,
1678,
2983,
353,
518,
525,
29890,
29918,
4632,
742,
525,
29890,
29918,
10303,
742,
525,
29934,
335,
29901,
29890,
29918,
4632,
742,
525,
29934,
335,
29901,
29890,
29918,
10303,
742,
525,
29890,
29918,
705,
481,
265,
10303,
742,
525,
29934,
335,
29901,
29890,
29918,
705,
481,
265,
10303,
29915,
4514,
13,
13,
1678,
565,
451,
7573,
29901,
13,
4706,
396,
5399,
565,
738,
1863,
2246,
3233,
937,
13,
4706,
2246,
353,
19375,
29898,
465,
1590,
3687,
29922,
5574,
29897,
13,
4706,
363,
1024,
297,
2983,
29901,
13,
9651,
565,
1024,
297,
2246,
29901,
13,
18884,
736,
10772,
4247,
877,
29989,
29915,
718,
1024,
29897,
13,
268,
13,
1678,
396,
2823,
565,
727,
338,
263,
2246,
3233,
5446,
297,
263,
7397,
4257,
289,
29918,
4632,
310,
738,
3209,
292,
29889,
13,
1678,
2740,
20284,
353,
7573,
565,
7573,
1683,
19375,
29898,
24367,
3687,
29922,
5574,
1723,
13,
1678,
7573,
353,
518,
5415,
363,
5446,
297,
2740,
20284,
565,
2560,
1170,
29898,
5446,
13742,
13609,
580,
1275,
525,
29890,
29918,
4632,
29915,
470,
2560,
1170,
29898,
5415,
467,
13609,
580,
1275,
525,
29890,
29918,
705,
481,
265,
4632,
2033,
13,
1678,
565,
7431,
29898,
18010,
29897,
1275,
29871,
29896,
29901,
13,
4706,
736,
7573,
29961,
29900,
29962,
13,
13,
1678,
396,
1987,
1423,
565,
738,
1863,
472,
599,
313,
4716,
674,
4418,
565,
3196,
1863,
297,
5004,
6471,
467,
13,
1678,
363,
1024,
297,
2983,
29901,
13,
4706,
565,
5446,
24217,
29898,
1024,
29871,
1125,
13,
9651,
736,
10772,
4247,
29898,
1024,
1723,
13,
13,
1678,
565,
1207,
29901,
13,
4706,
736,
14002,
29898,
8516,
29892,
302,
2433,
29890,
29918,
29915,
718,
1207,
29897,
13,
268,
13,
1678,
1683,
29901,
13,
4706,
736,
6213,
13,
13,
13,
1753,
21385,
29898,
3396,
29922,
8516,
1125,
13,
1678,
14550,
13,
1678,
16969,
599,
278,
9612,
21385,
297,
278,
9088,
29889,
13,
268,
13,
1678,
6317,
29871,
10481,
1057,
3462,
278,
25834,
393,
505,
12380,
29914,
29888,
29895,
21293,
373,
963,
13,
1678,
14550,
13,
268,
13,
1678,
14550,
7870,
292,
15729,
29901,
17212,
29892,
9920,
29879,
718,
6166,
338,
399,
29909,
29979,
8473,
29991,
13,
4706,
269,
353,
931,
29889,
2230,
580,
13,
4706,
11761,
353,
518,
29883,
363,
274,
297,
1051,
9662,
5056,
29898,
3396,
29892,
594,
29922,
5574,
29892,
1134,
2433,
9067,
1495,
565,
274,
29889,
5349,
25098,
877,
29888,
2209,
309,
18069,
1542,
1495,
29962,
13,
4706,
1596,
29898,
931,
29889,
2230,
580,
448,
269,
29892,
525,
3137,
10456,
29889,
29888,
2209,
309,
18069,
1542,
29897,
438,
22789,
1177,
1964,
29915,
1723,
13,
13,
13,
4706,
269,
353,
931,
29889,
2230,
580,
13,
4706,
11761,
353,
518,
19737,
4247,
29898,
29883,
29897,
363,
274,
297,
9920,
29879,
29889,
1761,
9662,
5056,
29898,
3396,
29889,
978,
3285,
594,
29922,
5574,
29892,
1134,
2433,
9067,
742,
285,
29922,
29896,
29897,
565,
9920,
29879,
29889,
12715,
3010,
877,
29888,
2209,
309,
18069,
1542,
742,
2943,
29922,
29883,
29892,
429,
29922,
5574,
4638,
13,
4706,
1596,
29898,
931,
29889,
2230,
580,
448,
269,
29892,
525,
9006,
29879,
29889,
1761,
9662,
5056,
580,
1051,
752,
29915,
1723,
13,
13,
13,
4706,
269,
353,
931,
29889,
2230,
580,
13,
4706,
396,
26255,
353,
518,
29883,
363,
274,
297,
1051,
9662,
5056,
29898,
3396,
29892,
594,
29922,
5574,
29892,
1134,
2433,
9067,
1495,
565,
274,
29889,
5349,
25098,
877,
29888,
2209,
309,
18069,
1542,
1495,
29962,
13,
4706,
599,
17825,
353,
731,
29898,
9006,
29879,
29889,
3137,
877,
10521,
29888,
2209,
309,
18069,
1542,
742,
1134,
2433,
9067,
742,
364,
29922,
5574,
29892,
288,
29922,
5574,
876,
13,
4706,
599,
17825,
29889,
1639,
2042,
29918,
5504,
29898,
9920,
29879,
29889,
1761,
9662,
5056,
29898,
3396,
29889,
978,
3285,
594,
29922,
5574,
29892,
1134,
2433,
9067,
1495,
1723,
13,
4706,
11761,
353,
518,
19737,
4247,
29898,
29877,
29897,
363,
288,
297,
599,
17825,
29962,
13,
4706,
1596,
29898,
931,
29889,
2230,
580,
448,
269,
29892,
525,
9006,
29879,
322,
731,
21166,
29915,
1723,
13,
308,
13,
4706,
14156,
10459,
408,
1667,
29901,
13,
308,
29900,
29889,
29953,
29896,
29896,
29900,
29900,
29900,
29900,
29953,
29896,
29900,
29941,
29945,
19375,
10456,
29889,
29888,
2209,
309,
18069,
1542,
29897,
438,
22789,
1177,
1964,
13,
308,
29900,
29889,
29896,
29906,
29941,
29900,
29900,
29900,
29896,
29946,
29946,
29929,
29945,
29947,
9920,
29879,
29889,
1761,
9662,
5056,
580,
1051,
752,
13,
308,
29900,
29889,
29900,
29946,
29941,
29929,
29929,
29929,
29929,
29896,
29900,
29941,
29945,
29946,
29953,
9920,
29879,
322,
731,
21166,
13,
13,
4706,
14156,
408,
4241,
29901,
13,
13,
308,
29906,
29889,
29896,
29906,
29896,
29900,
29900,
29900,
29900,
29945,
29896,
29945,
19375,
10456,
29889,
29888,
2209,
309,
18069,
1542,
29897,
438,
22789,
1177,
1964,
13,
308,
29900,
29889,
29941,
29929,
29947,
29929,
29929,
29929,
29929,
29906,
29929,
29946,
29906,
29947,
9920,
29879,
29889,
1761,
9662,
5056,
580,
1051,
752,
13,
308,
29900,
29889,
29900,
29955,
29953,
29929,
29929,
29929,
29929,
29900,
29906,
29955,
29906,
29945,
29906,
9920,
29879,
322,
731,
21166,
13,
13,
1678,
14550,
13,
268,
13,
1678,
599,
17825,
353,
731,
29898,
9920,
29879,
29889,
3137,
29898,
525,
10521,
29888,
2209,
309,
18069,
1542,
742,
288,
29922,
5574,
29892,
364,
29922,
5574,
29892,
301,
29922,
5574,
1723,
1723,
13,
268,
13,
1678,
565,
1667,
29901,
13,
4706,
1667,
4300,
9514,
353,
9920,
29879,
29889,
1761,
9662,
5056,
29898,
3396,
29889,
978,
3285,
594,
29922,
5574,
29892,
1134,
2433,
9067,
742,
285,
29922,
5574,
29897,
13,
4706,
565,
1667,
4300,
9514,
29901,
13,
9651,
599,
17825,
29889,
1639,
2042,
29918,
5504,
29898,
1667,
4300,
9514,
1723,
13,
9651,
11761,
353,
518,
19737,
4247,
29898,
29877,
29897,
363,
288,
297,
599,
17825,
29962,
13,
9651,
11761,
29889,
4397,
29898,
3396,
29897,
13,
632,
13,
9651,
3876,
353,
3876,
29924,
8194,
29898,
3396,
29922,
3396,
29897,
13,
9651,
565,
3876,
29901,
13,
18884,
11761,
29889,
4397,
29898,
4632,
29897,
13,
462,
13,
9651,
736,
11761,
13,
632,
13,
4706,
1683,
29901,
13,
9651,
9177,
703,
3782,
1014,
11761,
1476,
363,
426,
29900,
29913,
1642,
4830,
29898,
3396,
29889,
978,
22130,
13,
268,
13,
1678,
1683,
29901,
13,
4706,
11761,
353,
518,
19737,
4247,
29898,
29877,
29897,
363,
288,
297,
599,
17825,
29962,
13,
4706,
1667,
353,
1667,
4782,
580,
13,
4706,
565,
1667,
29901,
13,
9651,
11761,
29889,
4397,
29898,
3396,
29897,
13,
13,
4706,
3876,
353,
3876,
29924,
8194,
29898,
3396,
29922,
3396,
29897,
13,
4706,
565,
3876,
29901,
13,
9651,
11761,
29889,
4397,
29898,
4632,
29897,
13,
268,
13,
4706,
736,
11761,
13,
268,
13,
1678,
736,
5159,
13,
268,
13,
268,
13,
29032,
29918,
22412,
1672,
29931,
29918,
16881,
353,
525,
29888,
2209,
309,
6330,
4809,
29915,
13,
13,
13,
1753,
1667,
4782,
29898,
3177,
11426,
29922,
8516,
1125,
13,
1678,
14550,
13,
1678,
16969,
278,
1667,
2318,
6943,
278,
12912,
29892,
4257,
376,
3396,
613,
470,
385,
1203,
4055,
3192,
408,
278,
1667,
29889,
13,
268,
13,
1678,
10481,
29901,
910,
5900,
881,
14364,
748,
964,
421,
3396,
17825,
1673,
322,
445,
925,
3639,
278,
937,
29889,
13,
1678,
14550,
13,
268,
13,
1678,
565,
2943,
11426,
29901,
13,
4706,
363,
302,
297,
2943,
11426,
29901,
13,
9651,
565,
2560,
1170,
29898,
29876,
29897,
1275,
525,
3396,
29915,
470,
302,
29889,
5349,
25098,
29898,
29032,
29918,
22412,
1672,
29931,
29918,
16881,
1125,
13,
18884,
736,
302,
13,
268,
13,
1678,
565,
5446,
24217,
877,
29989,
3396,
29374,
13,
4706,
736,
10772,
4247,
877,
29989,
3396,
1495,
13,
1678,
1683,
29901,
13,
4706,
396,
319,
282,
962,
295,
6494,
338,
6041,
7863,
7929,
7573,
13,
4706,
1667,
353,
1051,
29898,
842,
4197,
5446,
363,
5446,
297,
19375,
29898,
525,
3396,
742,
364,
29922,
5574,
29897,
565,
451,
5446,
29889,
657,
9780,
580,
4514,
876,
13,
4706,
565,
7431,
29898,
3396,
29897,
1275,
29871,
29896,
29901,
13,
9651,
736,
1667,
29961,
29900,
29962,
13,
268,
13,
1678,
396,
1939,
376,
3396,
29908,
288,
16761,
522,
471,
1476,
29892,
3063,
363,
8282,
13,
1678,
715,
16926,
353,
19375,
877,
29930,
6169,
718,
14861,
1177,
29918,
22412,
1672,
29931,
29918,
16881,
29897,
13,
1678,
565,
715,
16926,
29901,
13,
4706,
736,
715,
16926,
29961,
29900,
1822,
3177,
580,
13,
268,
13,
1678,
736,
6213,
13,
13,
13,
1753,
1667,
17825,
7295,
13,
1678,
14550,
13,
1678,
16969,
599,
278,
1667,
11761,
297,
278,
9088,
29892,
263,
446,
278,
1667,
310,
1269,
2931,
29889,
13,
268,
13,
1678,
10481,
29901,
1074,
1667,
4782,
29892,
2125,
1556,
310,
278,
5900,
29889,
13,
1678,
14550,
13,
1678,
736,
19375,
29898,
525,
29930,
6169,
718,
14861,
1177,
29918,
22412,
1672,
29931,
29918,
16881,
29892,
288,
29922,
5574,
29892,
364,
29922,
5574,
1723,
13,
13,
13,
1753,
4055,
2887,
6330,
29898,
5415,
1125,
13,
1678,
5446,
29889,
1202,
25098,
29898,
29032,
29918,
22412,
1672,
29931,
29918,
16881,
29892,
472,
2433,
4906,
1495,
13,
13,
308,
13,
1753,
3275,
2956,
29898,
5415,
1125,
13,
1678,
14550,
13,
1678,
11221,
263,
4701,
29892,
736,
278,
1667,
390,
335,
2956,
313,
28802,
14981,
3528,
29897,
470,
13,
1678,
6213,
565,
451,
1476,
29889,
13,
268,
13,
1678,
6317,
29871,
10481,
1057,
13,
4706,
910,
4225,
304,
367,
19412,
411,
278,
1021,
697,
297,
18109,
11285,
12229,
29889,
8966,
13,
1678,
14550,
13,
1678,
396,
2607,
29987,
22108,
445,
411,
3935,
2943,
770,
9282,
746,
2943,
11713,
338,
6153,
13,
1678,
565,
338,
8758,
29898,
5415,
29892,
2943,
11713,
29889,
29934,
335,
2956,
1125,
13,
4706,
736,
5446,
13,
1678,
1683,
29901,
13,
4706,
704,
1315,
353,
518,
288,
363,
288,
297,
5446,
29889,
4906,
29889,
1761,
20971,
1953,
580,
565,
338,
8758,
29898,
29877,
29892,
2943,
11713,
29889,
29934,
335,
2956,
29897,
4514,
13,
13,
4706,
565,
704,
1315,
29901,
13,
9651,
736,
704,
1315,
29961,
29900,
29962,
13,
268,
13,
1678,
736,
6213,
13,
308,
13,
308,
13,
1753,
3876,
29924,
8194,
29898,
3396,
29922,
8516,
1125,
13,
1678,
14550,
13,
1678,
16969,
278,
3876,
10884,
29892,
2984,
635,
3907,
697,
565,
372,
1838,
29915,
29873,
1863,
29889,
13,
13,
1678,
960,
1667,
338,
6790,
29892,
2740,
967,
17086,
1237,
29889,
13,
1678,
14550,
13,
268,
13,
1678,
14550,
7870,
292,
1243,
411,
14156,
408,
1667,
29892,
337,
322,
6219,
526,
1048,
5186,
322,
29871,
29906,
29900,
29900,
29916,
8473,
29991,
13,
4706,
337,
322,
6219,
892,
4359,
13557,
29892,
1584,
373,
278,
3353,
9088,
29889,
13,
268,
13,
4706,
269,
353,
931,
29889,
2230,
580,
13,
4706,
396,
1025,
2577,
10303,
29924,
8194,
29898,
3396,
29897,
13,
4706,
363,
2278,
297,
1051,
9662,
5056,
29898,
3396,
29892,
594,
29922,
5574,
29892,
1134,
2433,
9067,
29374,
13,
4706,
396,
1454,
2278,
297,
19375,
29898,
1853,
2433,
9067,
29374,
13,
9651,
565,
4303,
29889,
24157,
9930,
29889,
12857,
1170,
29898,
2278,
1723,
1275,
525,
4632,
29924,
8194,
2396,
13,
18884,
2867,
13,
18884,
396,
2457,
2278,
13,
4706,
1596,
29898,
931,
29889,
2230,
580,
448,
269,
29892,
525,
12683,
1495,
13,
13,
4706,
269,
353,
931,
29889,
2230,
580,
13,
4706,
363,
2278,
297,
9920,
29879,
29889,
1761,
9662,
5056,
29898,
3396,
29889,
978,
3285,
594,
29922,
5574,
29892,
1134,
2433,
9067,
29374,
13,
4706,
396,
1454,
2278,
297,
9920,
29879,
29889,
3137,
29898,
1853,
2433,
9067,
29374,
13,
9651,
565,
2278,
29889,
2288,
2830,
877,
29989,
742,
29896,
9601,
29899,
29896,
1822,
2288,
2830,
877,
29901,
742,
29871,
29896,
9601,
29899,
29896,
29962,
1275,
525,
4632,
29924,
8194,
2396,
13,
18884,
396,
2158,
29898,
2278,
29897,
13,
18884,
2867,
13,
4706,
1596,
29898,
931,
29889,
2230,
580,
448,
269,
29892,
525,
5451,
1495,
13,
13,
4706,
269,
353,
931,
29889,
2230,
580,
13,
4706,
2560,
1170,
353,
337,
29889,
12198,
29898,
11297,
29893,
24035,
29915,
1723,
13,
4706,
363,
2278,
297,
9920,
29879,
29889,
1761,
9662,
5056,
29898,
3396,
29889,
978,
3285,
594,
29922,
5574,
29892,
1134,
2433,
9067,
29374,
13,
4706,
396,
1454,
2278,
297,
9920,
29879,
29889,
3137,
29898,
1853,
2433,
9067,
29374,
13,
9651,
565,
2560,
1170,
29889,
4478,
29898,
5145,
467,
2972,
29898,
29900,
29897,
1275,
525,
4632,
29924,
8194,
2396,
13,
18884,
396,
2158,
29898,
2278,
29897,
13,
18884,
2867,
13,
4706,
1596,
29898,
931,
29889,
2230,
580,
448,
269,
29892,
525,
276,
1495,
13,
1678,
14550,
13,
268,
13,
1678,
565,
1667,
29901,
13,
462,
13,
4706,
4344,
353,
9920,
29879,
29889,
1761,
9662,
5056,
29898,
3396,
29889,
978,
3285,
594,
29922,
5574,
29892,
1134,
2433,
9067,
742,
285,
29922,
5574,
29897,
13,
4706,
565,
4344,
29901,
259,
396,
9920,
29879,
3639,
6213,
2012,
310,
953,
29873,
2272,
1051,
13,
9651,
363,
2278,
297,
4344,
29901,
13,
18884,
565,
2278,
29889,
2288,
2830,
877,
29989,
742,
29871,
29896,
9601,
29899,
29896,
1822,
2288,
2830,
877,
29901,
742,
29871,
29896,
9601,
29899,
29896,
29962,
1275,
525,
4632,
29924,
8194,
2396,
13,
462,
1678,
736,
10772,
4247,
29898,
5145,
29897,
13,
462,
13,
4706,
736,
6213,
13,
13,
1678,
565,
5446,
24217,
29898,
525,
4632,
29924,
8194,
29915,
29871,
1125,
13,
4706,
736,
10772,
4247,
29898,
525,
4632,
29924,
8194,
29915,
1723,
13,
1678,
1683,
29901,
13,
4706,
364,
1516,
353,
19375,
29898,
525,
4632,
29924,
8194,
742,
364,
29922,
5574,
1723,
13,
4706,
565,
7431,
29898,
29878,
1516,
29897,
1275,
29871,
29896,
29901,
13,
9651,
736,
364,
1516,
29961,
29900,
29962,
13,
268,
13,
1678,
736,
6213,
13,
268,
13,
13,
1753,
599,
29907,
3163,
29898,
3396,
29922,
8516,
1125,
13,
1678,
14550,
13,
1678,
7106,
599,
278,
15889,
29892,
2984,
635,
5622,
263,
2702,
18109,
11285,
21319,
2158,
29889,
13,
1678,
14550,
13,
268,
13,
1678,
396,
4803,
9920,
29879,
363,
6210,
313,
26792,
4893,
29871,
29900,
29889,
29906,
29900,
411,
282,
962,
295,
541,
29871,
29900,
29889,
29900,
29946,
411,
9920,
29879,
29897,
13,
1678,
3646,
29907,
3163,
353,
731,
29898,
13,
4706,
9920,
29879,
29889,
3137,
29898,
525,
10521,
26050,
11285,
3401,
742,
288,
29922,
5574,
29892,
364,
29922,
5574,
29892,
301,
29922,
5574,
1723,
718,
13,
4706,
9920,
29879,
29889,
3137,
29898,
525,
10521,
29888,
2209,
309,
29934,
335,
1469,
742,
288,
29922,
5574,
29892,
364,
29922,
5574,
29892,
301,
29922,
5574,
1723,
13,
1678,
1723,
13,
268,
13,
1678,
565,
1667,
29901,
13,
4706,
3646,
29907,
3163,
29889,
1639,
2042,
29918,
5504,
29898,
9920,
29879,
29889,
1761,
9662,
5056,
29898,
3396,
29889,
978,
3285,
594,
29922,
5574,
29892,
1134,
2433,
9067,
742,
285,
29922,
5574,
29897,
1723,
13,
268,
13,
1678,
822,
1797,
29898,
5415,
1125,
13,
4706,
1018,
29901,
13,
9651,
736,
9920,
29879,
29889,
657,
25098,
29898,
5415,
718,
15300,
4282,
7514,
1495,
13,
4706,
5174,
8960,
29901,
13,
9651,
1209,
13,
268,
13,
4706,
1018,
29901,
13,
9651,
736,
4390,
29889,
18132,
29898,
9006,
29879,
29889,
657,
25098,
29898,
5415,
718,
15300,
29888,
2209,
309,
29934,
335,
1469,
1495,
467,
657,
877,
4282,
7514,
742,
29871,
29896,
29900,
29897,
13,
4706,
5174,
8960,
29901,
13,
9651,
1209,
13,
268,
13,
4706,
736,
29871,
29896,
29900,
13,
268,
13,
1678,
736,
518,
19737,
4247,
29898,
29883,
29897,
363,
274,
297,
12705,
29898,
5182,
29907,
3163,
29892,
1820,
29922,
2098,
4638,
13,
2
] |
Qasc.py | atranel/resqdb | 0 | 183943 | <gh_stars>0
from resqdb.Connection import Connection
from resqdb.functions import save_file
from datetime import datetime
import pandas as pd
import logging
import os
from pptx import Presentation
from pptx.util import Cm, Pt
from pptx.enum.text import PP_ALIGN, MSO_ANCHOR, MSO_AUTO_SIZE
from pptx.chart.data import ChartData
from pptx.enum.chart import XL_CHART_TYPE, XL_LEGEND_POSITION
from pptx.dml.color import RGBColor
from pptx.oxml.xmlchemy import OxmlElement
class Qasc():
def __init__(self):
# Set logging
debug = f'debug_{datetime.now().strftime("%d-%m-%Y")}.log'
log_file = os.path.join(os.getcwd(), debug)
logging.basicConfig(
filename=log_file,
filemode='a',
format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
datefmt='%H:%M:%S',
level=logging.DEBUG
)
logging.info('Start to generate QASC reports.')
# Connect to database and get QASC data
con = Connection(data='qasc')
self.preprocessed_data = con.preprocessed_data.copy()
# Get also data with studies
self.study_df = con.study_df
# Get list of Site IDs from the preprocessed data
site_ids = set(self.preprocessed_data['SITE_ID'].tolist())
self.__site_ids = [x for x in site_ids if not x.endswith('_AUD')]
del site_ids
self.table_font_size = Pt(11) # Set default font size for tables
@property
def site_ids(self):
return self.__site_ids
@property
def stats(self):
return self.__stats
@stats.setter
def stats(self, df):
self.__stats = df
@property
def site_id(self):
return self.__site_id
@site_id.setter
def site_id(self, site_id):
self.__site_id = site_id
@property
def pre_df(self):
return self.__pre_df
@pre_df.setter
def pre_df(self, df):
self.__pre_df = df
@property
def post_df(self):
return self.__post_df
@post_df.setter
def post_df(self, df):
self.__post_df = df
@property
def site_df(self):
return self.__site_df
@site_df.setter
def site_df(self, df):
self.__site_df = df
@property
def table_font_size(self):
return self.__table_font_size
@table_font_size.setter
def table_font_size(self, value):
self.__table_font_size = value
def generate_reports(self, site_id):
''' Generate reports for the site ID.
:param site_id: the site ID of the hospital for which the report should be generated
:type site_id: str
'''
self.site_id = site_id.upper() # Make provided site ID uppercased
# check if provided site ID is in preprocessed data
if self.site_id is not None and self.site_id in self.site_ids:
# Filter dataframe for provided site ID
self.site_df = self._filter_by_site(self.site_id)
if self.site_df.empty:
print(f"There are no data for this {site_id} hospital. The available sites are: {self.site_ids}.")
else:
# Obtain data for pre/post period
self._pre_post_data()
# Calculate pre stats and generate baselina reports that are made from pre dataset
self.pre_stats = self.calculate_statistics(df=self.pre_df)
self.generate_baseline_report(df=self.pre_stats)
# If post dataset is not empty, generate also comparison reports otherwise stop the program
if not self.post_df.empty:
self.post_stats = self.calculate_statistics(df=self.post_df)
self.generate_pre_post_report()
else:
print(f"There are no data for this site.")
def _filter_by_site(self, site_id):
''' Return the filtered dataframe for site id filter on column SITE_ID.
:param site_id: site ID for which the report should be generated
:type site_id: str
:returns: filtered data
:rtype: DataFrame
'''
return self.preprocessed_data.loc[self.preprocessed_data['SITE_ID'] == site_id].copy()
def _filter_data(self, first_date, second_date):
''' Return the filtered dataframe where DATE_CREATED is between first and second date.
:param first_date: first date included in the filtration
:type first_date: datetime
:param second_date: second date included in the filtration
:type second_date: datetime
:returns: the filtered dataframe
:rtype: DataFrame
'''
if self.site_df.empty or self.site_df is None:
return self.preprocessed_data.loc[
self.preprocessed_data['DATE_CREATED'].between(first_date, second_date)
].copy()
else:
return self.site_df.loc[
self.preprocessed_data['DATE_CREATED'].between(first_date, second_date)
].copy()
def _pre_post_data(self):
''' Set pre/post dataframe data. '''
# NOTE: for now the pre dataset is set to year 2019 and post dataset to 2020
pre_date1 = datetime(2019, 1, 1)
pre_date2 = datetime(2019, 12, 31)
self.pre_df = self._filter_data(pre_date1, pre_date2)
if (self.pre_df.empty):
print(f"There are no data for pre phase for this {self.site_id} hospital.")
exit()
else:
post_date1 = datetime(2020, 1, 1)
post_date2 = datetime(2020, 12, 31)
self.post_df = self._filter_data(post_date1, post_date2)
if (self.post_df.empty):
if self.pre_df.emtpy:
print(f"There are no data for post phase for this {self.site_id} hospital.")
exit()
def _get_percentage_column_name(self, column_name):
''' Return value where # is replaced by %.
:params column_name: column name to be replaced
:type column_name: string
:returns: the modified column name where # was replaced by %
:rtype: str
'''
return column_name.replace('#', '%', 1)
def _get_patients(self, stats, column_name, groups, out_of):
''' Return # and % of the group.
:param column_name: name of column to be creatd
:type column_name: string
:param groups: grouped dataframe
:type groups: DataFrame
:param out_of: the name of column to be used as denominator
:type out_of: string
:returns: the calculated stats extends with the calculated column
:rtype: DataFrame
'''
stats = stats.merge(groups[[self.main_col, column_name]], how='outer')
# get percentages out of # n
stats[self._get_percentage_column_name(column_name)] = stats.apply(
lambda x: round(((x[column_name]/x[out_of]) * 100), 2) if x[out_of] > 0 else 0, axis=1)
stats.fillna(0, inplace=True)
return stats
def _rename_column(self, df, prev_name, curr_name):
''' Rename the column in dataframe. If column not exists, create column.
:param df: the grouped dataframe
:type df: dataframe
:param prev_name: the name of column to be changed
:type prev_name: str/int
:param curr_name: new name of the column
:type curr_name: str
:returns: modified dataframe
:rtype: DataFrame
'''
if not prev_name in df.columns:
df[prev_name] = 0
return df.rename(columns={prev_name: curr_name})
def calculate_statistics(self, df=None):
''' Calculate the statistics for the temperature, blood glucose and swallow screening.
:param df: the preprocessed data to be calculated, if not provided preprocessed data are used (default is None)
:type df: DataFrame
:returns: the calculated stats
:rtype: DataFrame
'''
# Defina main column to be grouped by
self.main_col = 'SITE_ID'
if df is None:
df = self.preprocessed_data.copy()
# 1. Patients records entered
stats = df.groupby([self.main_col]).size().to_frame('n').reset_index()
# Calculate # of patients per stroke type
groups = df.groupby([self.main_col, 'STROKE_TYPE']).size().unstack().reset_index().fillna(0)
column_name = '# acute stroke'
column_names = {
1.0: '# subarrachnoid hemorrhage',
2.0: '# ischemic stroke',
3.0: '# intracerrebral hemorrhage'
}
# Check if all columns are in the grouped dataframe
for key in column_names.keys():
if key not in groups.columns:
groups[key] = 0
groups.rename(columns=column_names, inplace=True)
groups[column_name] = groups[column_names.values()].sum(axis=1)
stats = self._get_patients(stats=stats, column_name=column_name, groups=groups, out_of='n')
'''
2. Temperature monitring and treatment
column_name = TEMP_MEASUREMENT
question = Was temperature measured?
type = checkbox
answers: 1. at least four times on day one of admission,
2. at least four times on day two of admission,
3. at least four times on day three of admission,
4. none of the above
calculation: 1-3 are selected
'''
groups = df.groupby([self.main_col, 'TEMP_MEASUREMENT']).size().unstack().reset_index().fillna(0)
# remove column with default values from the groups
default = '1,2,3,4'
if default in groups.columns:
groups.drop([default], axis=1, inplace=True)
column_names = groups.columns
include_columns = [x for x in column_names if '1' in x or '2' in x or '3' in x and '4' not in x]
column_name = '# Temperature monitoring and treatment'
groups[column_name] = groups[include_columns].sum(axis=1)
stats = self._get_patients(stats=stats, column_name=column_name, groups=groups, out_of='n')
include_columns = [x for x in column_names if '1' in x and '4' not in x]
column_name = '# Temperature monitored at least four times per day - Day of admission'
groups[column_name] = groups[include_columns].sum(axis=1)
stats = self._get_patients(stats=stats, column_name=column_name, groups=groups, out_of='n')
include_columns = [x for x in column_names if '2' in x and '4' not in x]
column_name = '# Temperature monitored at least four times per day - Day two of admission'
groups[column_name] = groups[include_columns].sum(axis=1)
stats = self._get_patients(stats=stats, column_name=column_name, groups=groups, out_of='n')
include_columns = [x for x in column_names if '3' in x and '4' not in x]
column_name = '# Temperature monitored at least four times per day - Day three of admission'
groups[column_name] = groups[include_columns].sum(axis=1)
stats = self._get_patients(stats=stats, column_name=column_name, groups=groups, out_of='n')
'''
3. Temperature > 37.5°c recorded within 72 hours of admission
column_name = FEVER
question = In the first 72hrs following admission did the patient develop a fever ≥ 37.5 °C?
type = select
answers: 1. Yes,
2. No,
3. Unknown
calculation: # of 1 selected
'''
groups = df.groupby([self.main_col, 'FEVER']).size().unstack().reset_index().fillna(0)
column_name = '# Temperature > 37.5°c recorded within 72 hours of admission'
groups = self._rename_column(df=groups, prev_name=1.0, curr_name=column_name)
stats = self._get_patients(stats=stats, column_name=column_name, groups=groups, out_of='n')
'''
3a. Paracetamol (or other anti-pyretic) given for first temperature > 37.5°c
column_name = PARACETAMOL
question = Was paracetamol (or other antipyretic) for the first elevated temperature (>37.5 °C) administered?
type = select
answers: 1. Yes,
2. No,
3. Unknown
calculation: # of 1 selected
condition: this question is show if question 3 is answered "Yes"
'''
fever_df = df.loc[df['FEVER'] == 1].copy()
groups = fever_df.groupby([self.main_col, 'PARACETAMOL']).size().unstack().reset_index().fillna(0)
column_name = '# Paracetamol (or other anti-pyretic) given for first temperature > 37.5°C'
groups = self._rename_column(df=groups, prev_name=1.0, curr_name=column_name)
stats = self._get_patients(
stats=stats,
column_name=column_name,
groups=groups,
out_of='# Temperature > 37.5°c recorded within 72 hours of admission'
)
'''
3b. Paracetamol (or other anti-pyretic) given with one hour from first temperature > 37.5°c #
column_name = PARACETAMOL_1H
question = Was paracetamol (or other antipyretic) for the first elevated temperature (>37.5 °C) administered within 1 hour?
type = select
answers: 1. Yes,
2. No,
3. Unknown
calculation: # of 1 selected
condition: this question is show if question 3a is answered "Yes"
'''
first_temperature_df = df.loc[df['PARACETAMOL'] == 1].copy()
groups = first_temperature_df.groupby([self.main_col, 'PARACETAMOL_1H']).size().unstack().reset_index().fillna(0)
column_name = '# Paracetamol (or other anti-pyretic) given with one hour from first temperature > 37.5°C'
groups = self._rename_column(df=groups, prev_name=1.0, curr_name=column_name)
stats = self._get_patients(
stats=stats,
column_name=column_name,
groups=groups,
out_of='# Paracetamol (or other anti-pyretic) given for first temperature > 37.5°C'
)
'''
4. Blood glucose monitoring and treatment
column_name = GLUCOSE_LAB
question = Was a venous blood glucose level sample collected and sent to laboratory?
type = select
answers: 1. Yes,
2. No,
3. Unknown
calculation: # of 1 selected
'''
groups = df.groupby([self.main_col, 'GLUCOSE_LAB']).size().unstack().reset_index().fillna(0)
column_name = '# Blood glucose monitoring and treatment'
groups = self._rename_column(df=groups, prev_name=1.0, curr_name=column_name)
stats = self._get_patients(
stats=stats,
column_name=column_name,
groups=groups,
out_of='n'
)
'''
5. Blood Glucose Level (BGL) monitored > four times per day
column_name = GLUCOSE_MONITOR
question = Was a finger-prick blood glucose level recorded
type = checkbox
answers: 1. at least four times on day one of admission,
2. at least four times on day two of admission,
3. at least four times on day three of admission,
4. none of the above
calculation: 1-3 is selected
'''
monitoring_fever_hyperglycemia_df = df.loc[(df['TEMP_MEASUREMENT'].str.contains('1|2|3') & ~df['TEMP_MEASUREMENT'].str.contains('4')) | (df['GLUCOSE_MONITOR'].str.contains('1|2|3') & ~df['GLUCOSE_MONITOR'].str.contains('4'))]
monitoring_fever_hyperglycemia_stats = monitoring_fever_hyperglycemia_df.groupby([self.main_col]).size().to_frame('# monitored for fever and/or hyperglycaemia four times a day').reset_index()
stats = stats.merge(monitoring_fever_hyperglycemia_stats, how='outer')
del monitoring_fever_hyperglycemia_df, monitoring_fever_hyperglycemia_stats
groups = df.groupby([self.main_col, 'GLUCOSE_MONITOR']).size().unstack().reset_index().fillna(0)
# remove column with default values from the groups
default = '1,2,3,4'
if default in groups.columns:
groups.drop([default], axis=1, inplace=True)
column_names = groups.columns
include_columns = [x for x in column_names if '1' in x and '4' not in x]
column_name = '# Blood Glucose Level (BGL) monitored > four times per day - Day of admission'
groups[column_name] = groups[include_columns].sum(axis=1)
stats = self._get_patients(stats=stats, column_name=column_name, groups=groups, out_of='n')
include_columns = [x for x in column_names if '2' in x and '4' not in x]
column_name = '# Blood Glucose Level (BGL) monitored > four times per day - Day two of admission'
groups[column_name] = groups[include_columns].sum(axis=1)
stats = self._get_patients(stats=stats, column_name=column_name, groups=groups, out_of='n')
include_columns = [x for x in column_names if '3' in x and '4' not in x]
column_name = '# Blood Glucose Level (BGL) monitored > four times per day - Day three of admission'
groups[column_name] = groups[include_columns].sum(axis=1)
stats = self._get_patients(stats=stats, column_name=column_name, groups=groups, out_of='n')
'''
6. BGL ≥ 10mmol/L within 48 hours of admission
column_name = GLUCOSE_LEVEL
question = In the first 48 hours following ward admission did the patient develop a finger-prick glucose level of greater or equal to 10mmols/L?
type = select
answers: 1. Yes,
2. No,
3. Unknown
calculation: # of 1 selected
'''
groups = df.groupby([self.main_col, 'GLUCOSE_LEVEL']).size().unstack().reset_index().fillna(0)
column_name = '# BGL ≥ 10mmol/L within 48 hours of admission'
groups = self._rename_column(df=groups, prev_name=1.0, curr_name=column_name)
stats = self._get_patients(
stats=stats,
column_name=column_name,
groups=groups,
out_of='n'
)
'''
6a. Insulin given for first BGL ≥ 10mmol/L
column_name = INSULIN_ADMINISTRATION
question = Was insulin for first elevated finger prick glucose (>=10mmol/L) administered?
type = select
answers: 1. Yes,
2. No,
3. Unknown
calculation: # of 1 selected
'''
bgl_followed_df = df.loc[df['GLUCOSE_LEVEL'] == 1].copy()
groups = bgl_followed_df.groupby([self.main_col, 'INSULIN_ADMINISTRATION']).size().unstack().reset_index().fillna(0)
column_name = '# Insulin given for first BGL ≥ 10mmol/L'
groups = self._rename_column(df=groups, prev_name=1.0, curr_name=column_name)
stats = self._get_patients(
stats=stats,
column_name=column_name,
groups=groups,
out_of='# BGL ≥ 10mmol/L within 48 hours of admission'
)
'''
6b. Insulin given within one hour from first BGL ≥ 10mmol/L #
column_name = INSULIN_ADMINISTRATION_1H
question = Was insulin for first elevated finger prick glucose (>=10mmol/L) administered within 1 hour?
type = select
answers: 1. Yes,
2. No,
3. Unknown
calculation: # of 1 selected
'''
insulin_administration_df = df.loc[df['INSULIN_ADMINISTRATION'] == 1].copy()
groups = insulin_administration_df.groupby([self.main_col, 'INSULIN_ADMINISTRATION_1H']).size().unstack().reset_index().fillna(0)
column_name = '# Insulin given within one hour from first BGL ≥ 10mmol/L'
groups = self._rename_column(df=groups, prev_name=1.0, curr_name=column_name)
stats = self._get_patients(
stats=stats,
column_name=column_name,
groups=groups,
out_of='# Insulin given for first BGL ≥ 10mmol/L'
)
'''
7. Swallow screening
column_name = DYSPHAGIA
question = Was a formal swallowing screen performed (i.e. not a test of gag reflex)?
type = select
answers: 1. Performed,
2. Not performed,
3. Not applicable
calculation: # of 1 selected
'''
'''
8. Formal swallow screen performed
column_name = DYSPHAGIA
question = Was a formal swallowing screen performed (i.e. not a test of gag reflex)?
type = select
answers: 1. Performed,
2. Not performed,
3. Not applicable
calculation: # of 1 selected
'''
groups = df.groupby([self.main_col, 'DYSPHAGIA']).size().unstack().reset_index().fillna(0)
column_name = '# Formal swallow screen performed'
groups = self._rename_column(df=groups, prev_name=1.0, curr_name=column_name)
stats = self._get_patients(
stats=stats,
column_name=column_name,
groups=groups,
out_of='n'
)
'''
8a. Swallow screen performed within 24 hours #
column_name = DYSPHAGIA_24H
question = Did the patient receive a swallowing screen within 24 hours of admission to hospital?
type = select
answers: 1. Yes,
2. No,
3. Unknown
calculation: # of 1 selected
'''
dysphagia_performed_df = df.loc[df['DYSPHAGIA'] == 1].copy()
groups = insulin_administration_df.groupby(
[self.main_col, 'DYSPHAGIA_24H']).size().unstack().reset_index().fillna(0)
column_name = '# Swallow screen performed within 24 hours'
groups = self._rename_column(df=groups, prev_name=1.0, curr_name=column_name)
stats = self._get_patients(
stats=stats,
column_name=column_name,
groups=groups,
out_of='# Formal swallow screen performed'
)
'''
9. Swallow screen or swallow assessment performed before being given oral medications #
column_name = DYSPH_BEFORE_MED
question = Was the swallow screen or swallow assessment performed before the patient was given oral medications?
type = select
answers: 1. Yes,
2. No,
3. Unknown
calculation: # of 1 selected
'''
groups = df.groupby([self.main_col, 'DYSPH_BEFORE_MED']).size().unstack().reset_index().fillna(0)
column_name = '# Swallow screen or swallow assessment performed before being given oral medications'
groups = self._rename_column(df=groups, prev_name=1.0, curr_name=column_name)
stats = self._get_patients(
stats=stats,
column_name=column_name,
groups=groups,
out_of='n'
)
'''
10. Swallow screen or swallow assessment performed before being given oral food or fluids #
column_name = DYSPH_BEFORE_FOOD
question = Was the swallow screen or swallow assessment performed before the patient was given oral food or fluids?
type = select
answers: 1. Yes,
2. No,
3. Unknown
calculation: # of 1 selected
'''
groups = df.groupby([self.main_col, 'DYSPH_BEFORE_FOOD']).size().unstack().reset_index().fillna(0)
column_name = '# Swallow screen or swallow assessment performed before being given oral food or fluids'
groups = self._rename_column(df=groups, prev_name=1.0, curr_name=column_name)
stats = self._get_patients(
stats=stats,
column_name=column_name,
groups=groups,
out_of='n'
)
# save calculated stats into csv file
save_file(
name=f'qasc_stats_{datetime.now().strftime("%Y-%m-%d")}.csv',
data=stats,
)
return stats
def _merge_cells(self, table, first_x, first_y, second_x, second_y):
''' Merge cells based on index.
:param table: the table to be modified
:type table: table shape
:param first_x: the 1st coordinate
:type first_x: int
:param first_y: the 2nd coordinate
:type first_y: int
:param second_x: 3rd coordinate
:type second_x: int
:param second_y: 4th coordinate
:type second_y: int
:returns: the merge cell
:rtype: cell
'''
cell = table.cell(first_x, first_y)
other_cell = table.cell(second_x, second_y)
cell.merge(other_cell)
cell.vertical_anchor = MSO_ANCHOR.MIDDLE
return cell
def _insert_values(self, table, row, values, bold=False):
''' Insert values into 'n' and '%' columns.
:param table: the table
:type table: table shape
:param row: the number of row to add values
:type row: int
:param values: the list of values
:type values: list
:param bold: text should be bold
:type bold: boolean
'''
for i in range(0, len(values)):
cell = table.cell(row, i + 2) # Get cell in the 2nd row
cell.text = values[i]
cell.vertical_anchor = MSO_ANCHOR.MIDDLE
for paragraphs in cell.text_frame.paragraphs:
paragraphs.alignment = PP_ALIGN.CENTER
for run in paragraphs.runs:
run.font.size = self.table_font_size
run.font.bold = bold
def _insert_subrows(self, table, row, col, values):
''' Insert values into 'n' and '%' columns.
:param table: the table
:type table: table shape
:param row: the number of row to add values
:type row: int
:param col: the number of column to add values
:type col: int
:param values: the list of values
:type values: list
:param bold: text should be bold
:type bold: boolean
'''
for i in range(0, len(values)):
cell = table.cell(row, col) # Get cell in the 2nd row
cell.text = values[i]
cell.vertical_anchor = MSO_ANCHOR.MIDDLE
for paragraphs in cell.text_frame.paragraphs:
paragraphs.alignment = PP_ALIGN.LEFT
for run in paragraphs.runs:
run.font.size = self.table_font_size
row += 1
def _add_column_name(self, cell, text, alignment='left', bold=False, italic=False, level=False):
''' Insert text into row as column name.
:param cell: cell that should be modified
:type cell: cell shape
:param text: the text
:type text: str
:param bold: text should be bold
:type bold: boolean
:param italic: text should be italic
:type italic: boolean
:param aligment: how the text should be aligned (Default: left)
:type alignment: str
'''
# Set alignment
if alignment == 'left':
alignment = PP_ALIGN.LEFT
elif alignment == 'right':
alignment = PP_ALIGN.RIGHT
elif alignment == 'center':
alignment = PP_ALIGN.CENTER
cell.text = text
cell.vertical_anchor = MSO_ANCHOR.MIDDLE
for paragraph in cell.text_frame.paragraphs:
paragraph.alignment = alignment
# This will make text indented
if level:
paragraph.level = 1
for run in paragraph.runs:
run.font.size = self.table_font_size
run.font.bold = bold
run.font.italic = italic
def _add_textbox(self, specs, slide, text, bold=False, italic=False, underline=False):
''' Add textbox with explanation text into the presentation.
:param specs: the position of the textbox
:type specs: dict
:param slide: slide to which textbox should be add
:type slide: slide shape
:param text: textbox's text
:type text: str
:param bold: make text bold
:type bold: boolean (default: False)
:param italic: make text italic
:type italic: boolean (default: False)
:param underline: make text underlined
:type underline: boolean (default: False)
'''
txBox = slide.shapes.add_textbox(specs['left'], specs['top'], specs['width'], specs['height'])
txBox.text_frame.clear()
txBox.text_frame.word_wrap = True
p = txBox.text_frame.paragraphs[0]
p.alignment = PP_ALIGN.JUSTIFY
run = p.add_run()
run.font.size = Pt(11)
run.font.underline = underline
run.font.bold = bold
run.font.italic = italic
run.text = text
def _set_transparency(self, transparency, elm):
""" The function set the transparency of the row.
:param transparency: the transparency in %
:type transparency: int
:param elm: the element which transparency should be changed
:type elm: format.line.color._xFill
"""
a = str(100 - transparency) + '196'
alpha = OxmlElement('a:alpha')
alpha.set('val', a)
elm.srgbClr.append(alpha)
def _add_run(self, txtBox, text, bold=False, italic=False):
''' Add paragraph to the textbox. Each paragraph can have multiple runs.
:param txtBox: textbox to which add teh paragraph
:type txtBox: textBox shape
:param text: text to be insert into txtBox
:type text: str
:param bold: true if text should be boolean
:type bold: boolean
'''
p = txtBox.text_frame.paragraphs[0]
run = p.add_run()
run.text = text
run.font.size = Pt(11)
run.font.bold = bold
run.font.italic = italic
def _get_column_values(self, column_name, baseline):
''' Return list of columns to be geenrated in the table based on the report type.
:param column_name: name of column to be included in the results
:type column_name: str
:param baseline: True if baseline report is generate
:type baseline: boolean
:returns: list of column name based on the report type
:rtype: list
'''
if baseline:
columns = [
str(self.pre_stats[column_name].iloc[0]),
str(self.pre_stats[self._get_percentage_column_name(column_name)].iloc[0])]
else:
columns = [
str(self.pre_stats[self._get_percentage_column_name(column_name)].iloc[0]),
str(self.post_stats[self._get_percentage_column_name(column_name)].iloc[0])
]
return columns
def _create_table(self, slide, table_specs, title, trow, tcol, baseline=False):
''' Generate table in the report.
:param slide: the slide to which the table should be added
:type slide: slide
:param table_specs: specify a position of thetable
:type table_specs: dict
:param title: the name of the table
:type title: str
:param trow: number of rows of the table
:type trow: int
:param tcol: number of columns of the table
:type tcol: int
:param baseline: True if baseline report should be generated
:type baseline: boolean
'''
# Add table to the slide, we need table with 21 rows and 3 columns
shape = slide.shapes.add_table(
trow, #rows
tcol, # cols
table_specs['left'],
table_specs['top'],
table_specs['width'],
table_specs['height'])
# Set look of the table
# Change table style (https://github.com/scanny/python-pptx/issues/27)
# This is a bit complicated how to change table style, I always do it that I select table style in powerpoint, save powerpoint and open xml file. There you can find style ID.
style_id = '{5940675A-B579-460E-94D1-54222C63F5DA}'
tbl = shape._element.graphic.graphicData.tbl
tbl[0][-1].text = style_id
table = shape.table
# Set column width based on the report type
if baseline:
widths = [
int(table_specs['width'] * 0.5),
int(table_specs['width'] * 0.2),
int(table_specs['width'] * 0.15),
int(table_specs['width'] * 0.15)
]
else:
widths = [
int(table_specs['width'] * 0.58),
int(table_specs['width'] * 0.2),
int(table_specs['width'] * 0.11),
int(table_specs['width'] * 0.11)
]
for i in range(0, len(table.columns)):
table.columns[i].width = widths[i]
# Merge header row
cell = self._merge_cells(table, 0, 0, 0, len(table.columns) - 1)
self._add_column_name(cell, title, alignment='center', bold=True)
# 2nd row
nrow = 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
self._add_column_name(cell, "")
# Set the header of table based on report type
columns = ['n', '%'] if baseline else ['Pre n (%)', 'Post n (%)']
self._insert_values(table=table, row=nrow, values=columns, bold=True)
# Patient records entered
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Patient records entered'
self._add_column_name(cell, text)
columns = [
str(self.pre_stats['n'].iloc[0]),
'100'
] if baseline else [
str(self.pre_stats['n'].iloc[0]),
str(self.post_stats['n'].iloc[0])
]
self._insert_values(table=table, row=nrow, values=columns)
# Temperature monitoring and treatment
nrow += 1
cell = self._merge_cells(table, nrow, 0,nrow, 1)
text = 'Temperature monitoring and treatment'
self._add_column_name(cell, text, bold=True, italic=True)
name = '# Temperature monitoring and treatment'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow + 2, 0)
text = 'Temperature monitored at least four times \nper day #'
self._add_column_name(cell, text, bold=True, italic=True)
columns = [
'Day of admission',
'Day two of admission',
'Day three of admission',
]
self._insert_subrows(table=table, row=nrow, col=1, values=columns)
name = '# Temperature monitored at least four times per day - Day of admission'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
nrow += 1
name = '# Temperature monitored at least four times per day - Day two of admission'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
nrow += 1
name = '# Temperature monitored at least four times per day - Day three of admission'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
# Temperature > 37.5°C recorded within 72 hours of admission
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Temperature > 37.5°C recorded within 72 hours of admission'
self._add_column_name(cell, text, alignment='left')
name = '# Temperature > 37.5°c recorded within 72 hours of admission'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
# Paracetamol (or other anti-pyretic) given for first temperature > 37.5°C
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Paracetamol (or other anti-pyretic) given for first temperature > 37.5°C'
self._add_column_name(cell, text, alignment='left', level=True)
name = '# Paracetamol (or other anti-pyretic) given for first temperature > 37.5°C'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
# Paracetamol (or other anti-pyretic) given with one hour from first temperature > 37.5°C #
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Paracetamol (or other anti-pyretic) given with one hour from first temperature > 37.5°C #'
self._add_column_name(cell, text, alignment='left', bold=True, level=True)
name = '# Paracetamol (or other anti-pyretic) given with one hour from first temperature > 37.5°C'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
# Blood glucose monitoring and treatment
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Blood glucose monitoring and treatment'
self._add_column_name(cell, text, alignment='left', bold=True, italic=True)
name = '# Blood glucose monitoring and treatment'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
# Blood Glucose Level (BGL) monitored > four times per day
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow + 1, 0)
text = 'Blood Glucose Level (BGL) monitored > four times per day'
self._add_column_name(cell, text, alignment='left', bold=True)
columns = [
'Day of admission',
'Day two of admission',
]
self._insert_subrows(table=table, row=nrow, col=1, values=columns)
name = '# Blood Glucose Level (BGL) monitored > four times per day - Day of admission'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
nrow += 1
name = '# Blood Glucose Level (BGL) monitored > four times per day - Day two of admission'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'BGL ≥ 10mmol/L within 48 hours of admission'
self._add_column_name(cell, text, alignment='left')
name = '# BGL ≥ 10mmol/L within 48 hours of admission'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Insulin given for first BGL ≥ 10mmol/L'
self._add_column_name(cell, text, alignment='left', bold=True, level=True)
name = '# Insulin given for first BGL ≥ 10mmol/L'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Insulin given within one hour from first BGL ≥ 10mmol/L #'
self._add_column_name(cell, text, alignment='left', bold=True, level=True)
name = '# Insulin given within one hour from first BGL ≥ 10mmol/L'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Swallow screening'
self._add_column_name(cell, text, alignment='left', bold=True, italic=True)
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Formal swallow screen performed'
self._add_column_name(cell, text, alignment='left')
name = '# Formal swallow screen performed'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Swallow screen performed within 24 hours #'
self._add_column_name(cell, text, alignment='left', bold=True, level=True)
name = '# Swallow screen performed within 24 hours'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Swallow screen or swallow assessment performed before being given oral medications #'
self._add_column_name(cell, text, alignment='left', bold=True)
name = '# Swallow screen or swallow assessment performed before being given oral medications'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
nrow += 1
cell = self._merge_cells(table, nrow, 0, nrow, 1)
text = 'Swallow screen or swallow assessment performed before being given oral food or fluids #'
self._add_column_name(cell, text, alignment='left', bold=True)
name = '# Swallow screen or swallow assessment performed before being given oral food or fluids'
columns = self._get_column_values(name, baseline)
self._insert_values(table=table, row=nrow, values=columns)
# Create iterator through cells in the table
def iter_cells(table):
for row in table.rows:
for cell in row.cells:
yield cell
# Set font size of all cells in the table based on the report type
for cell in iter_cells(table):
cell.text_frame.autosize = MSO_AUTO_SIZE.SHAPE_TO_FIT_TEXT
for paragraph in cell.text_frame.paragraphs:
paragraph.font.size = self.table_font_size
def generate_baseline_report(self, df=None):
''' Generate baseline data summary feedback.
:param df: dataframe to be used for values (default: None)
:type df: dataframe
'''
self.table_font_size = Pt(11) # Set default font size of the table in baseline report
# Define template for the presentation
master = os.path.normpath(os.path.join(os.path.dirname(__file__), 'backgrounds', 'qasc_baseline.pptx'))
# Filter dataframe for site
hospital_name = self.study_df.loc[self.study_df['unique_identifier'] == self.site_id, 'facility_name'].iloc[0]
# Create output filename containing qasc, current date and site ID
output_file = f'qasc_{self.site_id}_{datetime.now().strftime("%Y-%m-%d")}.pptx'
# set main text to be added into reports
main_texts = [
'Congratulations on completing your baseline audit. We have summarized the results for you in the table below. Please share these results with your team. These data can assist you when discussing the barriers and enablers to implementation of the FeSS clinical protocols at your hospital.',
'It is important to please let us know if there are problems with the data that can be explained further (eg. was there a question the people entering data may not have understood properly?)',
'Please don’t hesitate to contact the NRI if you require clarification on any of the items above.'
]
# Create new Presentaiton object
prs = Presentation(master)
# Get first slide
first_slide = prs.slides[0]
# Set specification of the table
table_specs = {
'height': Cm(18),
'width': Cm(19),
'left': Cm(1),
'top': Cm(5)
}
# Create table
self._create_table(
slide=first_slide,
table_specs=table_specs,
title=f'Table 1: FeSS Management for {hospital_name}',
trow=21,
tcol=4,
baseline=True)
# Add the rest of explaining texts
specs = {
0: {
'height': Cm(2),
'width': Cm(19),
'left': Cm(1),
'top': Cm(3)
},
1: {
'height': Cm(1),
'width': Cm(19),
'left': Cm(1),
'top': Cm(25.5)
},
2: {
'height': Cm(1),
'width': Cm(19),
'left': Cm(1),
'top': Cm(27)
},
}
for i in range(0, len(main_texts)):
self._add_textbox(specs[i], first_slide, main_texts[i])
# Create graph on the second slide
second_slide = prs.slides.add_slide(prs.slide_layouts[0])
graph_df = df[[
'% Temperature monitored at least four times per day - Day of admission',
'% Paracetamol (or other anti-pyretic) given with one hour from first temperature > 37.5°C',
'% Blood Glucose Level (BGL) monitored > four times per day - Day of admission',
'% Insulin given within one hour from first BGL ≥ 10mmol/L',
'% Swallow screen performed within 24 hours',
]].copy()
new_column_names = ["Temp (Day 1)", "Paracetamol (1hr)", "BGL's (Day 1)", "Insulin (1hr)", "Swallow screen (24hrs)"]
graph_df.rename(columns=dict(zip(graph_df.columns, new_column_names)),inplace=True)
column_name = 'Baseline audit'
graph_df = graph_df.T.rename(columns={0: column_name})
# Create chart data
chart_data = ChartData()
chart_data.categories = new_column_names
chart_data.add_series(column_name, graph_df[column_name].tolist())
# Add chart on slide
specs = {
'height': Cm(10),
'width': Cm(19),
'left': Cm(1),
'top': Cm(3)
}
chart = second_slide.shapes.add_chart(
XL_CHART_TYPE.COLUMN_CLUSTERED, specs['left'],specs['top'], specs['width'],specs['height'], chart_data).chart
plot = chart.plots[0]
# All bars with the same color
plot.vary_by_categories = False
# Set maximum to 100
value_axis = chart.value_axis
value_axis.maximum_scale = 100
value_axis.major_gridlines.format.line.width = Pt(0.5)
value_axis.major_gridlines.format.line.color.rgb = RGBColor(206, 206, 206) # Set color to gray (A6A6A6)
value_axis.format.line.color.rgb = RGBColor(0, 0, 0)
solidFill = value_axis.format.line.color._xFill
self._set_transparency(100, solidFill)
# change font size of values
tick_labels = value_axis.tick_labels
tick_labels.font.size = Pt(11)
# Value for y-axis (change font size, name, and other things)
category_axis = chart.category_axis
# Set 100% transparency to category axis
category_axis.format.line.color.rgb = RGBColor(206, 206, 206)
solidFill = category_axis.format.line.color._xFill
self._set_transparency(100, solidFill)
# Change font size of category labels
category_labels = category_axis.tick_labels
category_labels.font.size = Pt(11)
# Set graph of title
graph_title = f'Figure 1: FeSS Management {hospital_name} Hospital'
chart_text = chart.chart_title.text_frame
chart_text.text = graph_title
chart_text.paragraphs[0].font.size = Pt(12)
chart_text.paragraphs[0].font.color.rgb = RGBColor(89, 89, 89)
# Save presentation
path = os.path.join(os.getcwd(), output_file)
save_file(output_file)
prs.save(path)
def generate_pre_post_report(self):
''' Generate report with pre/post comparison. '''
# Set smaller font size of the table
self.table_font_size = Pt(9.5)
# Define template
master = os.path.normpath(os.path.join(os.path.dirname(__file__), 'backgrounds', 'qasc_comparison.pptx'))
# Get hospital name based on study ID
hospital_name = self.study_df.loc[self.study_df['unique_identifier'] == self.site_id, 'facility_name'].iloc[0]
# Create output filename containing qasc, current date and site ID
output_file = f'qasc_comp_{self.site_id}_{datetime.now().strftime("%Y-%m-%d")}.pptx'
# Create Presentation object
prs = Presentation(master)
# Get first slide
first_slide = prs.slides[0]
# Add title
title_text = f'QASC Europe Project: Post-Intervention audit summary {hospital_name} Hospital'
specs = {
'height': Cm(1),
'width': Cm(18),
'left': Cm(0.6),
'top': Cm(1.5),
}
self._add_textbox(specs, first_slide, title_text, bold=True, underline=True)
# Add first paragraph with explanation and congratulations
# A bit longer code because only some letters was made bold, so I had to created more runs in paragraph.
specs = {
'height': Cm(2),
'width': Cm(19.5),
'left': Cm(0.6),
'top': Cm(2),
}
txBox = first_slide.shapes.add_textbox(specs['left'], specs['top'], specs['width'], specs['height'])
txBox.text_frame.clear()
txBox.text_frame.word_wrap = True
self._add_run(
txBox,
'Congratulations on completing the QASC Europe project audits on the use of the FeSS (',
)
self._add_run(txBox, 'F', bold=True)
self._add_run(txBox, 'ever, ')
self._add_run(txBox, 'S', bold=True)
self._add_run(txBox, 'ugar, and ')
self._add_run(txBox, 'S', bold=True)
self._add_run(txBox, 'wallowing) protocols for stroke patients. The summaries below reflect ')
self._add_run(txBox, f"your hospital’s performance for the {self.pre_stats['n'].iloc[0]} stroke patients you reviewed for the baseline audit XX/XX/XXXX and the {self.post_stats['n'].iloc[0]} patients you reviewed during the post intervention period XX/XX/XXXX. ", bold=True)
self._add_run(txBox, ' We present the number of patients audited (n) and the proportion of patients who met criteria (%).')
# Specification of the table position
table_specs = {
'height': Cm(16),
'width': Cm(19),
'left': Cm(0.8),
'top': Cm(4.0)
}
# Create table
self._create_table(
slide=first_slide,
table_specs=table_specs,
title=f'FeSS Management for {hospital_name} Hospital',
trow=21,
tcol=4,
baseline=False)
# Add explanation text below table
text = "# Variables shown in bold above are the key recommendations to be followed in the QASC Europe project"
specs = {
'height': Cm(0.5),
'width': Cm(18),
'left': Cm(0.6),
'top': Cm(20),
}
self._add_textbox(specs, first_slide, text)
# Second slide
second_slide = prs.slides[1]
# Add temperature block
column_name = '# Temperature monitoring and treatment'
pre_temp = self.pre_stats[self._get_percentage_column_name(column_name)].iloc[0]
post_temp = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
difference = "no difference" if post_temp <= pre_temp else "an increase"
column_name = '# Temperature monitored at least four times per day - Day of admission'
pre_temp_first = self.pre_stats[self._get_percentage_column_name(column_name)].iloc[0]
post_temp_first = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
column_name = '# Temperature monitored at least four times per day - Day two of admission'
pre_temp_second = self.pre_stats[self._get_percentage_column_name(column_name)].iloc[0]
post_temp_second = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
column_name = '# Temperature monitored at least four times per day - Day three of admission'
pre_temp_third = self.pre_stats[self._get_percentage_column_name(column_name)].iloc[0]
post_temp_third = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
column_name = '# Temperature > 37.5°c recorded within 72 hours of admission'
post_temp_rec_total = self.post_stats[column_name].iloc[0]
column_name = '# Paracetamol (or other anti-pyretic) given with one hour from first temperature > 37.5°C'
post_paracetamol = self.post_stats[column_name].iloc[0]
post_paracetamol_perc = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
text = "1. Temperature"
specs = {
'height': Cm(0.7),
'width': Cm(28.5),
'left': Cm(0.6),
'top': Cm(1.5),
}
self._add_textbox(specs, second_slide, text, bold=True)
proportion_text = f"i) From pre to post implementation there was {difference} in the proportion of patients who: were monitored four times a day for fever on Day 1 ({pre_temp_first}% vs {post_temp_first}% respectively), Day 2 ({pre_temp_second}% vs {post_temp_second}%) and Day 3 ({pre_temp_third}% vs {post_temp_third}%)."
specs = {
'height': Cm(1.2),
'width': Cm(27.3),
'left': Cm(1.8),
'top': Cm(2),
}
self._add_textbox(specs, second_slide, proportion_text)
paracetamol_text = f"ii) {post_paracetamol} out of {post_temp_rec_total} ({post_paracetamol_perc}%) patients with a temperature > 37.5°C received Paracetamol (or alternatively antipyretic) within one hour."
specs = {
'height': Cm(0.7),
'width': Cm(27.3),
'left': Cm(1.8),
'top': Cm(3),
}
self._add_textbox(specs, second_slide, paracetamol_text)
# Add blood glucose monitoring
column_name = '# Blood glucose monitoring and treatment'
pre_blood = self.pre_stats[self._get_percentage_column_name(column_name)].iloc[0]
post_blood = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
difference = "no difference" if post_blood <= pre_blood else "an increase"
column_name = '# Blood Glucose Level (BGL) monitored > four times per day - Day of admission'
pre_blood_first = self.pre_stats[self._get_percentage_column_name(column_name)].iloc[0]
post_blood_first = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
column_name = '# Blood Glucose Level (BGL) monitored > four times per day - Day two of admission'
pre_blood_second = self.pre_stats[self._get_percentage_column_name(column_name)].iloc[0]
post_blood_second = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
column_name = '# Insulin given for first BGL ≥ 10mmol/L'
post_insulin_total = self.post_stats[column_name].iloc[0]
column_name = '# Insulin given within one hour from first BGL ≥ 10mmol/L'
post_insulin = self.post_stats[column_name].iloc[0]
post_insulin_perc = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
text = "2. Blood glucose monitoring"
specs = {
'height': Cm(0.7),
'width': Cm(28.5),
'left': Cm(0.6),
'top': Cm(4.0),
}
self._add_textbox(specs, second_slide, text, bold=True)
proportion_text = f"iii) {difference.capitalize()} in the proportion of patients observed four times daily for hyperglycaemia on Day 1 ({pre_blood_first}% vs {post_blood_first}% respectively) and Day 2 ({pre_blood_second}% vs {post_blood_second}%)."
specs = {
'height': Cm(1.2),
'width': Cm(27.3),
'left': Cm(1.8),
'top': Cm(4.5),
}
self._add_textbox(specs, second_slide, proportion_text)
paracetamol_text = f"iv) {post_insulin} out of {post_insulin_total} ({post_insulin_perc}%) patients with BGL's > 10mmol/L were treated with insulin."
specs = {
'height': Cm(0.7),
'width': Cm(27.3),
'left': Cm(1.8),
'top': Cm(5.0),
}
self._add_textbox(specs, second_slide, paracetamol_text)
# Add swallow screening
column_name = '# Swallow screen performed within 24 hours'
pre_swallow = self.pre_stats[self._get_percentage_column_name(column_name)].iloc[0]
post_swallow = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
difference = "no difference" if post_swallow <= pre_swallow else "an increase"
column_name = '# Swallow screen or swallow assessment performed before being given oral medications'
post_oral_med = self.post_stats[column_name].iloc[0]
post_oral_med_perc = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
column_name = '# Swallow screen or swallow assessment performed before being given oral food or fluids'
post_food = self.post_stats[column_name].iloc[0]
post_food_perc = self.post_stats[self._get_percentage_column_name(column_name)].iloc[0]
text = "3. Swallow screening"
specs = {
'height': Cm(0.7),
'width': Cm(28.5),
'left': Cm(0.6),
'top': Cm(6.0),
}
self._add_textbox(specs, second_slide, text, bold=True)
swallow_text = f"v) {difference.capitalize()} in the proportion of patients who received a swallow screen within 24hrs ({pre_swallow}% vs {post_swallow}%)."
specs = {
'height': Cm(0.7),
'width': Cm(27.3),
'left': Cm(1.8),
'top': Cm(6.5),
}
self._add_textbox(specs, second_slide, swallow_text)
medication_text = f"vi) {post_oral_med} ({post_oral_med_perc}%) patients received oral medications before having their swallow screened and {post_food} ({post_food_perc}%) patients received oral food or fluid before having their swallow screened."
specs = {
'height': Cm(1.2),
'width': Cm(27.3),
'left': Cm(1.8),
'top': Cm(7),
}
self._add_textbox(specs, second_slide, medication_text)
# Summary box
specs = {
'height': Cm(2),
'width': Cm(27.3),
'left': Cm(0.6),
'top': Cm(8.5),
}
txBox = second_slide.shapes.add_textbox(specs['left'], specs['top'], specs['width'], specs['height'])
txBox.text_frame.clear()
txBox.text_frame.word_wrap = True
self._add_run(
txBox,
'SUMMARY: ',
bold=True
)
temp_monitoring = self.post_stats['# monitored for fever and/or hyperglycaemia four times a day'].iloc[0]
acute_stroke_pts = self.post_stats['# acute stroke'].iloc[0]
self._add_run(txBox, f"Monitoring for fever and/or hyperglycaemia four times a day for the first 48 - 72 hours of admission was recorded for {temp_monitoring} patient of the {acute_stroke_pts} acute stroke patients audited. A swallow screen or assessment was performed for {post_swallow} patient. Most of those patients who required treatment for fever and hyperglycaemia had Paracetamol (or other anti-pyretic) or Insulin administered within the recommended one-hour time period.", italic=True)
# Add comparison graph
data = {
'Criterium': ["Temp (Day 1)", "BGL's (Day 1)", "Swallow screen first (24hrs)"],
'Pre': [pre_temp_first, pre_blood_first, pre_swallow],
'Post': [post_temp_first, post_blood_first, post_swallow]}
graph_data = pd.DataFrame(data=data)
column_names = ["Pre", "Post"]
chart_data = ChartData()
chart_data.categories = graph_data['Criterium'].tolist()
for val in column_names:
chart_data.add_series(val, graph_data[val].tolist())
# Add chart on slide
specs = {
'height': Cm(9.5),
'width': Cm(15),
'left': Cm(0.6),
'top': Cm(10)
}
chart = second_slide.shapes.add_chart(
XL_CHART_TYPE.COLUMN_CLUSTERED, specs['left'],specs['top'], specs['width'],specs['height'], chart_data).chart
plot = chart.plots[0]
# All bars with the same color
plot.vary_by_categories = False
# Show data labels and set font
plot.has_data_labels = True
# Set layout of labels
data_labels = plot.data_labels
data_labels.font.size = Pt(9)
# Set colors of each serie
colors = [
RGBColor(192, 80, 77),
RGBColor(79, 129, 189)
]
# Iterate over column names and set color of the series and add labels
for i in range(0, len(column_names)):
series = chart.series[i]
fill = series.format.fill
# Set colors of series
fill.solid()
fill.fore_color.rgb = colors[i]
# Set maximum to 100
value_axis = chart.value_axis
value_axis.maximum_scale = 100
# change font size of values
tick_labels = value_axis.tick_labels
tick_labels.font.size = Pt(10)
# Show major gridlines
value_axis.major_gridlines.format.line.width = Pt(0.5)
value_axis.major_gridlines.format.line.color.rgb = RGBColor(206, 206, 206) # Set color to gray (A6A6A6)
value_axis.format.line.color.rgb = RGBColor(0, 0, 0)
solidFill = value_axis.format.line.color._xFill
self._set_transparency(100, solidFill)
# Value for y-axis (change font size, name, and other things)
category_axis = chart.category_axis
# Set 100% transparency to category axis
category_axis.format.line.color.rgb = RGBColor(206, 206, 206)
solidFill = category_axis.format.line.color._xFill
self._set_transparency(100, solidFill)
# change font size of category axis
category_labels = category_axis.tick_labels
category_labels.font.size = Pt(10)
# Set graph of title
graph_title = f'Figure 1: Hospital {hospital_name} Pre/Post FeSS intervention'
chart_text = chart.chart_title.text_frame
chart_text.text = graph_title
chart_text.paragraphs[0].font.size = Pt(12)
chart_text.paragraphs[0].font.color.rgb = RGBColor(89, 89, 89)
# Set legend
chart.has_legend = True
chart.legend.position = XL_LEGEND_POSITION.TOP
chart.legend.include_in_layout = False
chart.legend.font.size = Pt(9)
# Save presentation
path = os.path.join(os.getcwd(), output_file)
save_file(output_file)
prs.save(path) | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
620,
29939,
2585,
29889,
5350,
1053,
15160,
13,
3166,
620,
29939,
2585,
29889,
12171,
1053,
4078,
29918,
1445,
13,
3166,
12865,
1053,
12865,
13,
5215,
11701,
408,
10518,
13,
5215,
12183,
13,
5215,
2897,
13,
13,
3166,
282,
415,
29916,
1053,
4360,
9233,
13,
3166,
282,
415,
29916,
29889,
4422,
1053,
315,
29885,
29892,
349,
29873,
13,
3166,
282,
415,
29916,
29889,
18605,
29889,
726,
1053,
349,
29925,
29918,
1964,
17298,
29892,
341,
6156,
29918,
2190,
3210,
1955,
29892,
341,
6156,
29918,
20656,
29949,
29918,
14226,
13,
3166,
282,
415,
29916,
29889,
15425,
29889,
1272,
1053,
14477,
1469,
13,
3166,
282,
415,
29916,
29889,
18605,
29889,
15425,
1053,
1060,
29931,
29918,
3210,
8322,
29918,
11116,
29892,
1060,
29931,
29918,
1307,
29954,
11794,
29918,
24815,
22122,
13,
3166,
282,
415,
29916,
29889,
29881,
828,
29889,
2780,
1053,
390,
7210,
3306,
13,
3166,
282,
415,
29916,
29889,
2251,
828,
29889,
3134,
305,
6764,
1053,
438,
3134,
2642,
13,
13,
1990,
660,
6151,
7295,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
13,
4706,
396,
3789,
12183,
13,
4706,
4744,
353,
29871,
285,
29915,
8382,
648,
12673,
29889,
3707,
2141,
710,
615,
603,
11702,
29881,
19222,
29885,
19222,
29979,
1159,
1836,
1188,
29915,
29871,
13,
4706,
1480,
29918,
1445,
353,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
657,
29883,
9970,
3285,
4744,
29897,
13,
4706,
12183,
29889,
16121,
3991,
29898,
13,
9651,
10422,
29922,
1188,
29918,
1445,
29892,
29871,
13,
9651,
934,
8513,
2433,
29874,
742,
29871,
13,
9651,
3402,
2433,
29995,
29898,
294,
312,
603,
29897,
29879,
24163,
29898,
29885,
344,
2395,
29897,
29881,
1273,
29898,
978,
29897,
29879,
1273,
29898,
5563,
978,
29897,
29879,
1273,
29898,
4906,
29897,
29879,
742,
29871,
13,
9651,
2635,
23479,
2433,
29995,
29950,
16664,
29924,
16664,
29903,
742,
29871,
13,
9651,
3233,
29922,
21027,
29889,
18525,
13,
9651,
1723,
13,
4706,
12183,
29889,
3888,
877,
4763,
304,
5706,
660,
28599,
13676,
29889,
1495,
13,
13,
4706,
396,
14971,
304,
2566,
322,
679,
660,
28599,
848,
13,
4706,
378,
353,
15160,
29898,
1272,
2433,
29939,
6151,
1495,
13,
4706,
1583,
29889,
1457,
5014,
287,
29918,
1272,
353,
378,
29889,
1457,
5014,
287,
29918,
1272,
29889,
8552,
580,
13,
4706,
396,
3617,
884,
848,
411,
11898,
29871,
13,
4706,
1583,
29889,
18082,
29891,
29918,
2176,
353,
378,
29889,
18082,
29891,
29918,
2176,
13,
13,
4706,
396,
3617,
1051,
310,
10781,
23481,
515,
278,
758,
5014,
287,
848,
13,
4706,
3268,
29918,
4841,
353,
731,
29898,
1311,
29889,
1457,
5014,
287,
29918,
1272,
1839,
29903,
9094,
29918,
1367,
13359,
25027,
391,
3101,
13,
4706,
1583,
17255,
2746,
29918,
4841,
353,
518,
29916,
363,
921,
297,
3268,
29918,
4841,
565,
451,
921,
29889,
1975,
2541,
877,
29918,
29909,
15789,
1495,
29962,
13,
4706,
628,
3268,
29918,
4841,
29871,
13,
13,
4706,
1583,
29889,
2371,
29918,
5657,
29918,
2311,
353,
349,
29873,
29898,
29896,
29896,
29897,
396,
3789,
2322,
4079,
2159,
363,
6131,
29871,
13,
13,
1678,
732,
6799,
13,
1678,
822,
3268,
29918,
4841,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
2746,
29918,
4841,
13,
13,
1678,
732,
6799,
13,
1678,
822,
22663,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
16202,
13,
13,
1678,
732,
16202,
29889,
842,
357,
13,
1678,
822,
22663,
29898,
1311,
29892,
4489,
1125,
13,
4706,
1583,
17255,
16202,
353,
4489,
13,
13,
1678,
732,
6799,
13,
1678,
822,
3268,
29918,
333,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
2746,
29918,
333,
13,
13,
1678,
732,
2746,
29918,
333,
29889,
842,
357,
13,
1678,
822,
3268,
29918,
333,
29898,
1311,
29892,
3268,
29918,
333,
1125,
13,
4706,
1583,
17255,
2746,
29918,
333,
353,
3268,
29918,
333,
13,
13,
1678,
732,
6799,
13,
1678,
822,
758,
29918,
2176,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
1457,
29918,
2176,
13,
13,
1678,
732,
1457,
29918,
2176,
29889,
842,
357,
13,
1678,
822,
758,
29918,
2176,
29898,
1311,
29892,
4489,
1125,
13,
4706,
1583,
17255,
1457,
29918,
2176,
353,
4489,
13,
13,
1678,
732,
6799,
13,
1678,
822,
1400,
29918,
2176,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
2490,
29918,
2176,
13,
13,
1678,
732,
2490,
29918,
2176,
29889,
842,
357,
13,
1678,
822,
1400,
29918,
2176,
29898,
1311,
29892,
4489,
1125,
13,
4706,
1583,
17255,
2490,
29918,
2176,
353,
4489,
13,
13,
1678,
732,
6799,
13,
1678,
822,
3268,
29918,
2176,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
2746,
29918,
2176,
13,
13,
1678,
732,
2746,
29918,
2176,
29889,
842,
357,
13,
1678,
822,
3268,
29918,
2176,
29898,
1311,
29892,
4489,
1125,
13,
4706,
1583,
17255,
2746,
29918,
2176,
353,
4489,
13,
13,
1678,
732,
6799,
13,
1678,
822,
1591,
29918,
5657,
29918,
2311,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
2371,
29918,
5657,
29918,
2311,
13,
13,
1678,
732,
2371,
29918,
5657,
29918,
2311,
29889,
842,
357,
13,
1678,
822,
1591,
29918,
5657,
29918,
2311,
29898,
1311,
29892,
995,
1125,
13,
4706,
1583,
17255,
2371,
29918,
5657,
29918,
2311,
353,
995,
13,
13,
1678,
822,
5706,
29918,
276,
4011,
29898,
1311,
29892,
3268,
29918,
333,
1125,
13,
4706,
14550,
3251,
403,
13676,
363,
278,
3268,
3553,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
3268,
29918,
333,
29901,
278,
3268,
3553,
310,
278,
13457,
363,
607,
278,
3461,
881,
367,
5759,
13,
4706,
584,
1853,
3268,
29918,
333,
29901,
851,
13,
4706,
14550,
13,
4706,
1583,
29889,
2746,
29918,
333,
353,
3268,
29918,
333,
29889,
21064,
580,
396,
8561,
4944,
3268,
3553,
7568,
29883,
1463,
13,
4706,
396,
1423,
565,
4944,
3268,
3553,
338,
297,
758,
5014,
287,
848,
13,
4706,
565,
1583,
29889,
2746,
29918,
333,
338,
451,
6213,
322,
1583,
29889,
2746,
29918,
333,
297,
1583,
29889,
2746,
29918,
4841,
29901,
13,
9651,
396,
19916,
12205,
363,
4944,
3268,
3553,
13,
9651,
1583,
29889,
2746,
29918,
2176,
353,
1583,
3032,
4572,
29918,
1609,
29918,
2746,
29898,
1311,
29889,
2746,
29918,
333,
29897,
13,
9651,
565,
1583,
29889,
2746,
29918,
2176,
29889,
6310,
29901,
13,
18884,
1596,
29898,
29888,
29908,
8439,
526,
694,
848,
363,
445,
426,
2746,
29918,
333,
29913,
13457,
29889,
450,
3625,
11840,
526,
29901,
426,
1311,
29889,
2746,
29918,
4841,
1836,
1159,
13,
9651,
1683,
29901,
13,
18884,
396,
4250,
2408,
848,
363,
758,
29914,
2490,
3785,
13,
18884,
1583,
3032,
1457,
29918,
2490,
29918,
1272,
580,
13,
18884,
396,
20535,
403,
758,
22663,
322,
5706,
2362,
295,
1099,
13676,
393,
526,
1754,
515,
758,
8783,
13,
18884,
1583,
29889,
1457,
29918,
16202,
353,
1583,
29889,
15807,
403,
29918,
6112,
6765,
29898,
2176,
29922,
1311,
29889,
1457,
29918,
2176,
29897,
13,
18884,
1583,
29889,
17158,
29918,
6500,
5570,
29918,
12276,
29898,
2176,
29922,
1311,
29889,
1457,
29918,
16202,
29897,
13,
18884,
396,
960,
1400,
8783,
338,
451,
4069,
29892,
5706,
884,
10230,
13676,
6467,
5040,
278,
1824,
13,
18884,
565,
451,
1583,
29889,
2490,
29918,
2176,
29889,
6310,
29901,
13,
462,
1678,
1583,
29889,
2490,
29918,
16202,
353,
1583,
29889,
15807,
403,
29918,
6112,
6765,
29898,
2176,
29922,
1311,
29889,
2490,
29918,
2176,
29897,
13,
462,
1678,
1583,
29889,
17158,
29918,
1457,
29918,
2490,
29918,
12276,
580,
13,
4706,
1683,
29901,
13,
9651,
1596,
29898,
29888,
29908,
8439,
526,
694,
848,
363,
445,
3268,
23157,
13,
13,
1678,
822,
903,
4572,
29918,
1609,
29918,
2746,
29898,
1311,
29892,
3268,
29918,
333,
1125,
13,
4706,
14550,
7106,
278,
22289,
12205,
363,
3268,
1178,
4175,
373,
1897,
317,
9094,
29918,
1367,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
3268,
29918,
333,
29901,
3268,
3553,
363,
607,
278,
3461,
881,
367,
5759,
13,
4706,
584,
1853,
3268,
29918,
333,
29901,
851,
13,
4706,
584,
18280,
29901,
22289,
848,
13,
4706,
584,
29878,
1853,
29901,
3630,
4308,
13,
4706,
14550,
13,
4706,
736,
1583,
29889,
1457,
5014,
287,
29918,
1272,
29889,
2029,
29961,
1311,
29889,
1457,
5014,
287,
29918,
1272,
1839,
29903,
9094,
29918,
1367,
2033,
1275,
3268,
29918,
333,
1822,
8552,
580,
13,
13,
1678,
822,
903,
4572,
29918,
1272,
29898,
1311,
29892,
937,
29918,
1256,
29892,
1473,
29918,
1256,
1125,
13,
4706,
14550,
7106,
278,
22289,
12205,
988,
20231,
29918,
27045,
29928,
338,
1546,
937,
322,
1473,
2635,
29889,
29871,
13,
13,
4706,
584,
3207,
937,
29918,
1256,
29901,
937,
2635,
5134,
297,
278,
977,
509,
362,
13,
4706,
584,
1853,
937,
29918,
1256,
29901,
12865,
13,
4706,
584,
3207,
1473,
29918,
1256,
29901,
1473,
2635,
5134,
297,
278,
977,
509,
362,
13,
4706,
584,
1853,
1473,
29918,
1256,
29901,
12865,
13,
4706,
584,
18280,
29901,
278,
22289,
12205,
13,
4706,
584,
29878,
1853,
29901,
3630,
4308,
13,
4706,
14550,
13,
4706,
565,
1583,
29889,
2746,
29918,
2176,
29889,
6310,
470,
1583,
29889,
2746,
29918,
2176,
338,
6213,
29901,
13,
9651,
736,
1583,
29889,
1457,
5014,
287,
29918,
1272,
29889,
2029,
29961,
13,
18884,
1583,
29889,
1457,
5014,
287,
29918,
1272,
1839,
6248,
29918,
27045,
29928,
13359,
14811,
29898,
4102,
29918,
1256,
29892,
1473,
29918,
1256,
29897,
13,
632,
1822,
8552,
580,
13,
4706,
1683,
29901,
13,
9651,
736,
1583,
29889,
2746,
29918,
2176,
29889,
2029,
29961,
13,
18884,
1583,
29889,
1457,
5014,
287,
29918,
1272,
1839,
6248,
29918,
27045,
29928,
13359,
14811,
29898,
4102,
29918,
1256,
29892,
1473,
29918,
1256,
29897,
13,
632,
1822,
8552,
580,
13,
13,
1678,
822,
903,
1457,
29918,
2490,
29918,
1272,
29898,
1311,
1125,
13,
4706,
14550,
3789,
758,
29914,
2490,
12205,
848,
29889,
14550,
308,
13,
4706,
396,
6058,
29923,
29901,
363,
1286,
278,
758,
8783,
338,
731,
304,
1629,
29871,
29906,
29900,
29896,
29929,
322,
1400,
8783,
304,
29871,
29906,
29900,
29906,
29900,
13,
4706,
758,
29918,
1256,
29896,
353,
12865,
29898,
29906,
29900,
29896,
29929,
29892,
29871,
29896,
29892,
29871,
29896,
29897,
13,
4706,
758,
29918,
1256,
29906,
353,
12865,
29898,
29906,
29900,
29896,
29929,
29892,
29871,
29896,
29906,
29892,
29871,
29941,
29896,
29897,
13,
4706,
1583,
29889,
1457,
29918,
2176,
353,
1583,
3032,
4572,
29918,
1272,
29898,
1457,
29918,
1256,
29896,
29892,
758,
29918,
1256,
29906,
29897,
13,
4706,
565,
313,
1311,
29889,
1457,
29918,
2176,
29889,
6310,
1125,
13,
9651,
1596,
29898,
29888,
29908,
8439,
526,
694,
848,
363,
758,
8576,
363,
445,
426,
1311,
29889,
2746,
29918,
333,
29913,
13457,
23157,
13,
9651,
6876,
580,
13,
4706,
1683,
29901,
13,
9651,
1400,
29918,
1256,
29896,
353,
12865,
29898,
29906,
29900,
29906,
29900,
29892,
29871,
29896,
29892,
29871,
29896,
29897,
13,
9651,
1400,
29918,
1256,
29906,
353,
12865,
29898,
29906,
29900,
29906,
29900,
29892,
29871,
29896,
29906,
29892,
29871,
29941,
29896,
29897,
13,
9651,
1583,
29889,
2490,
29918,
2176,
353,
1583,
3032,
4572,
29918,
1272,
29898,
2490,
29918,
1256,
29896,
29892,
1400,
29918,
1256,
29906,
29897,
13,
9651,
565,
313,
1311,
29889,
2490,
29918,
2176,
29889,
6310,
1125,
13,
18884,
565,
1583,
29889,
1457,
29918,
2176,
29889,
331,
29873,
2272,
29901,
13,
462,
1678,
1596,
29898,
29888,
29908,
8439,
526,
694,
848,
363,
1400,
8576,
363,
445,
426,
1311,
29889,
2746,
29918,
333,
29913,
13457,
23157,
13,
462,
1678,
6876,
580,
13,
13,
1678,
822,
903,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
1311,
29892,
1897,
29918,
978,
1125,
13,
4706,
14550,
7106,
995,
988,
396,
338,
8611,
491,
18695,
29871,
13,
308,
13,
4706,
584,
7529,
1897,
29918,
978,
29901,
1897,
1024,
304,
367,
8611,
13,
4706,
584,
1853,
1897,
29918,
978,
29901,
1347,
13,
4706,
584,
18280,
29901,
278,
9120,
1897,
1024,
988,
396,
471,
8611,
491,
1273,
13,
4706,
584,
29878,
1853,
29901,
851,
13,
4706,
14550,
13,
4706,
736,
1897,
29918,
978,
29889,
6506,
14237,
742,
14210,
742,
29871,
29896,
29897,
13,
13,
1678,
822,
903,
657,
29918,
5031,
10070,
29898,
1311,
29892,
22663,
29892,
1897,
29918,
978,
29892,
6471,
29892,
714,
29918,
974,
1125,
13,
4706,
14550,
7106,
396,
322,
1273,
310,
278,
2318,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
1897,
29918,
978,
29901,
1024,
310,
1897,
304,
367,
907,
271,
29881,
13,
4706,
584,
1853,
1897,
29918,
978,
29901,
1347,
13,
4706,
584,
3207,
6471,
29901,
27831,
12205,
13,
4706,
584,
1853,
6471,
29901,
3630,
4308,
13,
4706,
584,
3207,
714,
29918,
974,
29901,
278,
1024,
310,
1897,
304,
367,
1304,
408,
14267,
1061,
13,
4706,
584,
1853,
714,
29918,
974,
29901,
1347,
13,
4706,
584,
18280,
29901,
278,
12833,
22663,
4988,
411,
278,
12833,
1897,
13,
4706,
584,
29878,
1853,
29901,
3630,
4308,
13,
4706,
14550,
29871,
13,
4706,
22663,
353,
22663,
29889,
14634,
29898,
13155,
8999,
1311,
29889,
3396,
29918,
1054,
29892,
1897,
29918,
978,
20526,
920,
2433,
5561,
1495,
13,
4706,
396,
679,
10151,
1179,
714,
310,
396,
302,
13,
4706,
22663,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
4638,
353,
22663,
29889,
7302,
29898,
13,
9651,
14013,
921,
29901,
4513,
3552,
29898,
29916,
29961,
4914,
29918,
978,
16261,
29916,
29961,
449,
29918,
974,
2314,
334,
29871,
29896,
29900,
29900,
511,
29871,
29906,
29897,
565,
921,
29961,
449,
29918,
974,
29962,
1405,
29871,
29900,
1683,
29871,
29900,
29892,
9685,
29922,
29896,
29897,
13,
4706,
22663,
29889,
5589,
1056,
29898,
29900,
29892,
297,
6689,
29922,
5574,
29897,
13,
4706,
736,
22663,
13,
13,
1678,
822,
903,
1267,
420,
29918,
4914,
29898,
1311,
29892,
4489,
29892,
12379,
29918,
978,
29892,
16256,
29918,
978,
1125,
13,
4706,
14550,
390,
3871,
278,
1897,
297,
12205,
29889,
960,
1897,
451,
4864,
29892,
1653,
1897,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
4489,
29901,
278,
27831,
12205,
13,
4706,
584,
1853,
4489,
29901,
12205,
13,
4706,
584,
3207,
12379,
29918,
978,
29901,
278,
1024,
310,
1897,
304,
367,
3939,
13,
4706,
584,
1853,
12379,
29918,
978,
29901,
851,
29914,
524,
13,
4706,
584,
3207,
16256,
29918,
978,
29901,
716,
1024,
310,
278,
1897,
13,
4706,
584,
1853,
16256,
29918,
978,
29901,
851,
13,
4706,
584,
18280,
29901,
9120,
12205,
13,
4706,
584,
29878,
1853,
29901,
3630,
4308,
13,
4706,
14550,
13,
4706,
565,
451,
12379,
29918,
978,
297,
4489,
29889,
13099,
29901,
13,
9651,
4489,
29961,
16304,
29918,
978,
29962,
353,
29871,
29900,
13,
4706,
736,
4489,
29889,
1267,
420,
29898,
13099,
3790,
16304,
29918,
978,
29901,
16256,
29918,
978,
1800,
268,
13,
13,
1678,
822,
8147,
29918,
6112,
6765,
29898,
1311,
29892,
4489,
29922,
8516,
1125,
13,
4706,
14550,
20535,
403,
278,
13964,
363,
278,
10430,
29892,
10416,
3144,
1682,
852,
322,
2381,
9536,
4315,
292,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
4489,
29901,
278,
758,
5014,
287,
848,
304,
367,
12833,
29892,
565,
451,
4944,
758,
5014,
287,
848,
526,
1304,
313,
4381,
338,
6213,
29897,
13,
4706,
584,
1853,
4489,
29901,
3630,
4308,
13,
4706,
584,
18280,
29901,
278,
12833,
22663,
13,
4706,
584,
29878,
1853,
29901,
3630,
4308,
13,
4706,
14550,
13,
4706,
396,
5282,
1099,
1667,
1897,
304,
367,
27831,
491,
13,
4706,
1583,
29889,
3396,
29918,
1054,
353,
525,
29903,
9094,
29918,
1367,
29915,
13,
13,
4706,
565,
4489,
338,
6213,
29901,
13,
9651,
4489,
353,
1583,
29889,
1457,
5014,
287,
29918,
1272,
29889,
8552,
580,
13,
13,
4706,
396,
29871,
29896,
29889,
4121,
10070,
6475,
7802,
13,
4706,
22663,
353,
4489,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
14664,
2311,
2141,
517,
29918,
2557,
877,
29876,
2824,
12071,
29918,
2248,
580,
13,
13,
4706,
396,
20535,
403,
396,
310,
22069,
639,
19782,
1134,
13,
4706,
6471,
353,
4489,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
1254,
1672,
6059,
29918,
11116,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
1274,
1082,
19782,
29915,
13,
4706,
1897,
29918,
7039,
353,
426,
13,
632,
29896,
29889,
29900,
29901,
16321,
1014,
279,
10221,
1217,
333,
9736,
272,
19046,
482,
742,
29871,
13,
632,
29906,
29889,
29900,
29901,
16321,
338,
14969,
293,
19782,
742,
29871,
13,
632,
29941,
29889,
29900,
29901,
16321,
938,
945,
261,
276,
1182,
284,
9736,
272,
19046,
482,
29915,
13,
4706,
500,
13,
4706,
396,
5399,
565,
599,
4341,
526,
297,
278,
27831,
12205,
13,
4706,
363,
1820,
297,
1897,
29918,
7039,
29889,
8149,
7295,
13,
9651,
565,
1820,
451,
297,
6471,
29889,
13099,
29901,
13,
18884,
6471,
29961,
1989,
29962,
353,
29871,
29900,
13,
4706,
6471,
29889,
1267,
420,
29898,
13099,
29922,
4914,
29918,
7039,
29892,
297,
6689,
29922,
5574,
29897,
13,
4706,
6471,
29961,
4914,
29918,
978,
29962,
353,
6471,
29961,
4914,
29918,
7039,
29889,
5975,
580,
1822,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
16202,
29922,
16202,
29892,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
6471,
29922,
13155,
29892,
714,
29918,
974,
2433,
29876,
1495,
13,
13,
4706,
14550,
29871,
13,
308,
29906,
29889,
6789,
546,
1535,
1601,
277,
5393,
322,
14502,
13,
4706,
1897,
29918,
978,
353,
17067,
3580,
29918,
2303,
3289,
11499,
13780,
13,
4706,
1139,
353,
12547,
10430,
17005,
29973,
13,
4706,
1134,
353,
12527,
13,
4706,
6089,
29901,
268,
29896,
29889,
472,
3203,
3023,
3064,
373,
2462,
697,
310,
594,
6737,
29892,
29871,
13,
462,
268,
29906,
29889,
472,
3203,
3023,
3064,
373,
2462,
1023,
310,
594,
6737,
29892,
29871,
13,
462,
268,
29941,
29889,
472,
3203,
3023,
3064,
373,
2462,
2211,
310,
594,
6737,
29892,
29871,
13,
462,
268,
29946,
29889,
5642,
310,
278,
2038,
13,
4706,
13944,
29901,
29871,
29896,
29899,
29941,
526,
4629,
13,
4706,
14550,
13,
4706,
6471,
353,
4489,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
4330,
3580,
29918,
2303,
3289,
11499,
13780,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
396,
3349,
1897,
411,
2322,
1819,
515,
278,
6471,
13,
4706,
2322,
353,
525,
29896,
29892,
29906,
29892,
29941,
29892,
29946,
29915,
13,
4706,
565,
2322,
297,
6471,
29889,
13099,
29901,
13,
9651,
6471,
29889,
8865,
4197,
4381,
1402,
9685,
29922,
29896,
29892,
297,
6689,
29922,
5574,
29897,
259,
13,
4706,
1897,
29918,
7039,
353,
6471,
29889,
13099,
13,
13,
4706,
3160,
29918,
13099,
353,
518,
29916,
363,
921,
297,
1897,
29918,
7039,
565,
525,
29896,
29915,
297,
921,
470,
525,
29906,
29915,
297,
921,
470,
525,
29941,
29915,
297,
921,
322,
525,
29946,
29915,
451,
297,
921,
29962,
13,
4706,
1897,
29918,
978,
353,
16321,
6789,
546,
1535,
29652,
322,
14502,
29915,
13,
4706,
6471,
29961,
4914,
29918,
978,
29962,
353,
6471,
29961,
2856,
29918,
13099,
1822,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
16202,
29922,
16202,
29892,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
6471,
29922,
13155,
29892,
714,
29918,
974,
2433,
29876,
1495,
13,
13,
4706,
3160,
29918,
13099,
353,
518,
29916,
363,
921,
297,
1897,
29918,
7039,
565,
525,
29896,
29915,
297,
921,
322,
525,
29946,
29915,
451,
297,
921,
29962,
13,
4706,
1897,
29918,
978,
353,
16321,
6789,
546,
1535,
11819,
287,
472,
3203,
3023,
3064,
639,
2462,
448,
8373,
310,
594,
6737,
29915,
13,
4706,
6471,
29961,
4914,
29918,
978,
29962,
353,
6471,
29961,
2856,
29918,
13099,
1822,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
16202,
29922,
16202,
29892,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
6471,
29922,
13155,
29892,
714,
29918,
974,
2433,
29876,
1495,
13,
4706,
13,
4706,
3160,
29918,
13099,
353,
518,
29916,
363,
921,
297,
1897,
29918,
7039,
565,
525,
29906,
29915,
297,
921,
322,
525,
29946,
29915,
451,
297,
921,
29962,
13,
4706,
1897,
29918,
978,
353,
16321,
6789,
546,
1535,
11819,
287,
472,
3203,
3023,
3064,
639,
2462,
448,
8373,
1023,
310,
594,
6737,
29915,
13,
4706,
6471,
29961,
4914,
29918,
978,
29962,
353,
6471,
29961,
2856,
29918,
13099,
1822,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
16202,
29922,
16202,
29892,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
6471,
29922,
13155,
29892,
714,
29918,
974,
2433,
29876,
1495,
13,
13,
4706,
3160,
29918,
13099,
353,
518,
29916,
363,
921,
297,
1897,
29918,
7039,
565,
525,
29941,
29915,
297,
921,
322,
525,
29946,
29915,
451,
297,
921,
29962,
13,
4706,
1897,
29918,
978,
353,
16321,
6789,
546,
1535,
11819,
287,
472,
3203,
3023,
3064,
639,
2462,
448,
8373,
2211,
310,
594,
6737,
29915,
13,
4706,
6471,
29961,
4914,
29918,
978,
29962,
353,
6471,
29961,
2856,
29918,
13099,
1822,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
16202,
29922,
16202,
29892,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
6471,
29922,
13155,
29892,
714,
29918,
974,
2433,
29876,
1495,
13,
13,
4706,
14550,
29871,
13,
308,
29941,
29889,
6789,
546,
1535,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29883,
10478,
2629,
29871,
29955,
29906,
6199,
310,
594,
6737,
13,
4706,
1897,
29918,
978,
353,
383,
29923,
5348,
13,
4706,
1139,
353,
512,
278,
937,
29871,
29955,
29906,
1092,
29879,
1494,
594,
6737,
1258,
278,
16500,
2693,
263,
1238,
369,
29871,
30386,
29871,
29941,
29955,
29889,
29945,
6719,
29907,
29973,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
3869,
29892,
13,
462,
268,
29906,
29889,
1939,
29892,
13,
462,
268,
29941,
29889,
853,
5203,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
14550,
13,
4706,
6471,
353,
4489,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
16359,
5348,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
6789,
546,
1535,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29883,
10478,
2629,
29871,
29955,
29906,
6199,
310,
594,
6737,
29915,
13,
4706,
6471,
353,
1583,
3032,
1267,
420,
29918,
4914,
29898,
2176,
29922,
13155,
29892,
12379,
29918,
978,
29922,
29896,
29889,
29900,
29892,
16256,
29918,
978,
29922,
4914,
29918,
978,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
16202,
29922,
16202,
29892,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
6471,
29922,
13155,
29892,
714,
29918,
974,
2433,
29876,
1495,
13,
13,
4706,
14550,
29871,
13,
308,
29941,
29874,
29889,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
363,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29883,
13,
4706,
1897,
29918,
978,
353,
349,
1718,
2477,
2544,
5194,
5607,
13,
4706,
1139,
353,
12547,
610,
562,
300,
314,
324,
313,
272,
916,
3677,
666,
29891,
2267,
293,
29897,
363,
278,
937,
11858,
630,
10430,
313,
29958,
29941,
29955,
29889,
29945,
6719,
29907,
29897,
4113,
1531,
287,
29973,
29871,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
3869,
29892,
13,
462,
268,
29906,
29889,
1939,
29892,
13,
462,
268,
29941,
29889,
853,
5203,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
4195,
29901,
445,
1139,
338,
1510,
565,
1139,
29871,
29941,
338,
7699,
376,
8241,
29908,
13,
4706,
14550,
13,
4706,
1238,
369,
29918,
2176,
353,
4489,
29889,
2029,
29961,
2176,
1839,
16359,
5348,
2033,
1275,
29871,
29896,
1822,
8552,
580,
13,
4706,
6471,
353,
1238,
369,
29918,
2176,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
16320,
2477,
2544,
5194,
5607,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
363,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
29915,
13,
4706,
6471,
353,
1583,
3032,
1267,
420,
29918,
4914,
29898,
2176,
29922,
13155,
29892,
12379,
29918,
978,
29922,
29896,
29889,
29900,
29892,
16256,
29918,
978,
29922,
4914,
29918,
978,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
13,
9651,
22663,
29922,
16202,
29892,
29871,
13,
9651,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
29871,
13,
9651,
6471,
29922,
13155,
29892,
29871,
13,
9651,
714,
29918,
974,
2433,
29937,
6789,
546,
1535,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29883,
10478,
2629,
29871,
29955,
29906,
6199,
310,
594,
6737,
29915,
13,
9651,
1723,
13,
13,
4706,
14550,
29871,
13,
308,
29941,
29890,
29889,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
411,
697,
7234,
515,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29883,
396,
13,
4706,
1897,
29918,
978,
353,
349,
1718,
2477,
2544,
5194,
5607,
29918,
29896,
29950,
13,
4706,
1139,
353,
12547,
610,
562,
300,
314,
324,
313,
272,
916,
3677,
666,
29891,
2267,
293,
29897,
363,
278,
937,
11858,
630,
10430,
313,
29958,
29941,
29955,
29889,
29945,
6719,
29907,
29897,
4113,
1531,
287,
2629,
29871,
29896,
7234,
29973,
29871,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
3869,
29892,
13,
462,
268,
29906,
29889,
1939,
29892,
13,
462,
268,
29941,
29889,
853,
5203,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
4195,
29901,
445,
1139,
338,
1510,
565,
1139,
29871,
29941,
29874,
338,
7699,
376,
8241,
29908,
13,
4706,
14550,
13,
4706,
937,
29918,
12863,
1535,
29918,
2176,
353,
4489,
29889,
2029,
29961,
2176,
1839,
16320,
2477,
2544,
5194,
5607,
2033,
1275,
29871,
29896,
1822,
8552,
580,
13,
4706,
6471,
353,
937,
29918,
12863,
1535,
29918,
2176,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
16320,
2477,
2544,
5194,
5607,
29918,
29896,
29950,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
411,
697,
7234,
515,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
29915,
13,
4706,
6471,
353,
1583,
3032,
1267,
420,
29918,
4914,
29898,
2176,
29922,
13155,
29892,
12379,
29918,
978,
29922,
29896,
29889,
29900,
29892,
16256,
29918,
978,
29922,
4914,
29918,
978,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
13,
9651,
22663,
29922,
16202,
29892,
29871,
13,
9651,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
29871,
13,
9651,
6471,
29922,
13155,
29892,
29871,
13,
9651,
714,
29918,
974,
2433,
29937,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
363,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
29915,
13,
9651,
1723,
13,
13,
4706,
14550,
29871,
13,
308,
29946,
29889,
25122,
3144,
1682,
852,
29652,
322,
14502,
13,
4706,
1897,
29918,
978,
353,
12729,
29965,
3217,
1660,
29918,
24461,
13,
4706,
1139,
353,
12547,
263,
6003,
681,
10416,
3144,
1682,
852,
3233,
4559,
16531,
322,
2665,
304,
10212,
7606,
29973,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
3869,
29892,
13,
462,
268,
29906,
29889,
1939,
29892,
13,
462,
268,
29941,
29889,
853,
5203,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
14550,
13,
4706,
6471,
353,
4489,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
7239,
29965,
3217,
1660,
29918,
24461,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
25122,
3144,
1682,
852,
29652,
322,
14502,
29915,
13,
4706,
6471,
353,
1583,
3032,
1267,
420,
29918,
4914,
29898,
2176,
29922,
13155,
29892,
12379,
29918,
978,
29922,
29896,
29889,
29900,
29892,
16256,
29918,
978,
29922,
4914,
29918,
978,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
13,
9651,
22663,
29922,
16202,
29892,
29871,
13,
9651,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
29871,
13,
9651,
6471,
29922,
13155,
29892,
29871,
13,
9651,
714,
29918,
974,
2433,
29876,
29915,
13,
9651,
1723,
13,
13,
4706,
14550,
29871,
13,
308,
29945,
29889,
25122,
8467,
1682,
852,
21597,
313,
29933,
7239,
29897,
11819,
287,
1405,
3023,
3064,
639,
2462,
13,
4706,
1897,
29918,
978,
353,
12729,
29965,
3217,
1660,
29918,
22877,
1806,
1955,
13,
4706,
1139,
353,
12547,
263,
19917,
29899,
558,
860,
10416,
3144,
1682,
852,
3233,
10478,
13,
4706,
1134,
353,
12527,
13,
4706,
6089,
29901,
268,
29896,
29889,
472,
3203,
3023,
3064,
373,
2462,
697,
310,
594,
6737,
29892,
29871,
13,
462,
268,
29906,
29889,
472,
3203,
3023,
3064,
373,
2462,
1023,
310,
594,
6737,
29892,
29871,
13,
462,
268,
29941,
29889,
472,
3203,
3023,
3064,
373,
2462,
2211,
310,
594,
6737,
29892,
29871,
13,
462,
268,
29946,
29889,
5642,
310,
278,
2038,
13,
4706,
13944,
29901,
29871,
29896,
29899,
29941,
338,
4629,
13,
4706,
14550,
13,
4706,
29652,
29918,
29888,
1310,
29918,
24947,
16808,
19335,
423,
29918,
2176,
353,
4489,
29889,
2029,
15625,
2176,
1839,
4330,
3580,
29918,
2303,
3289,
11499,
13780,
13359,
710,
29889,
11516,
877,
29896,
29989,
29906,
29989,
29941,
1495,
669,
3695,
2176,
1839,
4330,
3580,
29918,
2303,
3289,
11499,
13780,
13359,
710,
29889,
11516,
877,
29946,
8785,
891,
313,
2176,
1839,
7239,
29965,
3217,
1660,
29918,
22877,
1806,
1955,
13359,
710,
29889,
11516,
877,
29896,
29989,
29906,
29989,
29941,
1495,
669,
3695,
2176,
1839,
7239,
29965,
3217,
1660,
29918,
22877,
1806,
1955,
13359,
710,
29889,
11516,
877,
29946,
8785,
29962,
13,
4706,
29652,
29918,
29888,
1310,
29918,
24947,
16808,
19335,
423,
29918,
16202,
353,
29652,
29918,
29888,
1310,
29918,
24947,
16808,
19335,
423,
29918,
2176,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
14664,
2311,
2141,
517,
29918,
2557,
14237,
11819,
287,
363,
1238,
369,
322,
29914,
272,
11266,
16808,
1113,
29747,
3023,
3064,
263,
2462,
2824,
12071,
29918,
2248,
580,
13,
4706,
22663,
353,
22663,
29889,
14634,
29898,
3712,
2105,
292,
29918,
29888,
1310,
29918,
24947,
16808,
19335,
423,
29918,
16202,
29892,
920,
2433,
5561,
1495,
13,
4706,
628,
29652,
29918,
29888,
1310,
29918,
24947,
16808,
19335,
423,
29918,
2176,
29892,
29652,
29918,
29888,
1310,
29918,
24947,
16808,
19335,
423,
29918,
16202,
13,
13,
4706,
6471,
353,
4489,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
7239,
29965,
3217,
1660,
29918,
22877,
1806,
1955,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
396,
3349,
1897,
411,
2322,
1819,
515,
278,
6471,
13,
4706,
2322,
353,
525,
29896,
29892,
29906,
29892,
29941,
29892,
29946,
29915,
13,
4706,
565,
2322,
297,
6471,
29889,
13099,
29901,
13,
9651,
6471,
29889,
8865,
4197,
4381,
1402,
9685,
29922,
29896,
29892,
297,
6689,
29922,
5574,
29897,
259,
13,
4706,
1897,
29918,
7039,
353,
6471,
29889,
13099,
13,
13,
4706,
3160,
29918,
13099,
353,
518,
29916,
363,
921,
297,
1897,
29918,
7039,
565,
525,
29896,
29915,
297,
921,
322,
525,
29946,
29915,
451,
297,
921,
29962,
13,
4706,
1897,
29918,
978,
353,
16321,
25122,
8467,
1682,
852,
21597,
313,
29933,
7239,
29897,
11819,
287,
1405,
3023,
3064,
639,
2462,
448,
8373,
310,
594,
6737,
29915,
13,
4706,
6471,
29961,
4914,
29918,
978,
29962,
353,
6471,
29961,
2856,
29918,
13099,
1822,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
16202,
29922,
16202,
29892,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
6471,
29922,
13155,
29892,
714,
29918,
974,
2433,
29876,
1495,
13,
13,
4706,
3160,
29918,
13099,
353,
518,
29916,
363,
921,
297,
1897,
29918,
7039,
565,
525,
29906,
29915,
297,
921,
322,
525,
29946,
29915,
451,
297,
921,
29962,
13,
4706,
1897,
29918,
978,
353,
16321,
25122,
8467,
1682,
852,
21597,
313,
29933,
7239,
29897,
11819,
287,
1405,
3023,
3064,
639,
2462,
448,
8373,
1023,
310,
594,
6737,
29915,
13,
4706,
6471,
29961,
4914,
29918,
978,
29962,
353,
6471,
29961,
2856,
29918,
13099,
1822,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
16202,
29922,
16202,
29892,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
6471,
29922,
13155,
29892,
714,
29918,
974,
2433,
29876,
1495,
13,
13,
4706,
3160,
29918,
13099,
353,
518,
29916,
363,
921,
297,
1897,
29918,
7039,
565,
525,
29941,
29915,
297,
921,
322,
525,
29946,
29915,
451,
297,
921,
29962,
13,
4706,
1897,
29918,
978,
353,
16321,
25122,
8467,
1682,
852,
21597,
313,
29933,
7239,
29897,
11819,
287,
1405,
3023,
3064,
639,
2462,
448,
8373,
2211,
310,
594,
6737,
29915,
13,
4706,
6471,
29961,
4914,
29918,
978,
29962,
353,
6471,
29961,
2856,
29918,
13099,
1822,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
16202,
29922,
16202,
29892,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
6471,
29922,
13155,
29892,
714,
29918,
974,
2433,
29876,
1495,
13,
13,
4706,
14550,
29871,
13,
308,
29953,
29889,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
2629,
29871,
29946,
29947,
6199,
310,
594,
6737,
13,
4706,
1897,
29918,
978,
353,
12729,
29965,
3217,
1660,
29918,
1307,
29963,
6670,
13,
4706,
1139,
353,
512,
278,
937,
29871,
29946,
29947,
6199,
1494,
281,
538,
594,
6737,
1258,
278,
16500,
2693,
263,
19917,
29899,
558,
860,
3144,
1682,
852,
3233,
310,
7621,
470,
5186,
304,
29871,
29896,
29900,
4317,
3775,
29914,
29931,
29973,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
3869,
29892,
13,
462,
268,
29906,
29889,
1939,
29892,
13,
462,
268,
29941,
29889,
853,
5203,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
14550,
13,
4706,
6471,
353,
4489,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
7239,
29965,
3217,
1660,
29918,
1307,
29963,
6670,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
2629,
29871,
29946,
29947,
6199,
310,
594,
6737,
29915,
13,
4706,
6471,
353,
1583,
3032,
1267,
420,
29918,
4914,
29898,
2176,
29922,
13155,
29892,
12379,
29918,
978,
29922,
29896,
29889,
29900,
29892,
16256,
29918,
978,
29922,
4914,
29918,
978,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
13,
9651,
22663,
29922,
16202,
29892,
29871,
13,
9651,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
29871,
13,
9651,
6471,
29922,
13155,
29892,
29871,
13,
9651,
714,
29918,
974,
2433,
29876,
29915,
13,
9651,
1723,
13,
13,
4706,
14550,
29871,
13,
308,
29953,
29874,
29889,
13377,
352,
262,
2183,
363,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
13,
4706,
1897,
29918,
978,
353,
2672,
29903,
13309,
1177,
29918,
3035,
16173,
9047,
29934,
8098,
13,
4706,
1139,
353,
12547,
1663,
352,
262,
363,
937,
11858,
630,
19917,
544,
860,
3144,
1682,
852,
313,
18572,
29896,
29900,
4317,
324,
29914,
29931,
29897,
4113,
1531,
287,
29973,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
3869,
29892,
13,
462,
268,
29906,
29889,
1939,
29892,
13,
462,
268,
29941,
29889,
853,
5203,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
14550,
13,
4706,
289,
3820,
29918,
23031,
287,
29918,
2176,
353,
4489,
29889,
2029,
29961,
2176,
1839,
7239,
29965,
3217,
1660,
29918,
1307,
29963,
6670,
2033,
1275,
29871,
29896,
1822,
8552,
580,
13,
4706,
6471,
353,
289,
3820,
29918,
23031,
287,
29918,
2176,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
1177,
29903,
13309,
1177,
29918,
3035,
16173,
9047,
29934,
8098,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
13377,
352,
262,
2183,
363,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
29915,
13,
4706,
6471,
353,
1583,
3032,
1267,
420,
29918,
4914,
29898,
2176,
29922,
13155,
29892,
12379,
29918,
978,
29922,
29896,
29889,
29900,
29892,
16256,
29918,
978,
29922,
4914,
29918,
978,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
13,
9651,
22663,
29922,
16202,
29892,
29871,
13,
9651,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
29871,
13,
9651,
6471,
29922,
13155,
29892,
29871,
13,
9651,
714,
29918,
974,
2433,
29937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
2629,
29871,
29946,
29947,
6199,
310,
594,
6737,
29915,
13,
9651,
1723,
13,
13,
13,
4706,
14550,
29871,
13,
308,
29953,
29890,
29889,
13377,
352,
262,
2183,
2629,
697,
7234,
515,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
396,
13,
4706,
1897,
29918,
978,
353,
2672,
29903,
13309,
1177,
29918,
3035,
16173,
9047,
29934,
8098,
29918,
29896,
29950,
13,
4706,
1139,
353,
12547,
1663,
352,
262,
363,
937,
11858,
630,
19917,
544,
860,
3144,
1682,
852,
313,
18572,
29896,
29900,
4317,
324,
29914,
29931,
29897,
4113,
1531,
287,
2629,
29871,
29896,
7234,
29973,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
3869,
29892,
13,
462,
268,
29906,
29889,
1939,
29892,
13,
462,
268,
29941,
29889,
853,
5203,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
14550,
13,
4706,
1663,
352,
262,
29918,
6406,
8306,
29918,
2176,
353,
4489,
29889,
2029,
29961,
2176,
1839,
1177,
29903,
13309,
1177,
29918,
3035,
16173,
9047,
29934,
8098,
2033,
1275,
29871,
29896,
1822,
8552,
580,
13,
4706,
6471,
353,
1663,
352,
262,
29918,
6406,
8306,
29918,
2176,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
1177,
29903,
13309,
1177,
29918,
3035,
16173,
9047,
29934,
8098,
29918,
29896,
29950,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
13377,
352,
262,
2183,
2629,
697,
7234,
515,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
29915,
13,
4706,
6471,
353,
1583,
3032,
1267,
420,
29918,
4914,
29898,
2176,
29922,
13155,
29892,
12379,
29918,
978,
29922,
29896,
29889,
29900,
29892,
16256,
29918,
978,
29922,
4914,
29918,
978,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
13,
9651,
22663,
29922,
16202,
29892,
29871,
13,
9651,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
29871,
13,
9651,
6471,
29922,
13155,
29892,
29871,
13,
9651,
714,
29918,
974,
2433,
29937,
13377,
352,
262,
2183,
363,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
29915,
13,
9651,
1723,
13,
13,
4706,
14550,
29871,
13,
308,
29955,
29889,
3925,
9536,
4315,
292,
13,
4706,
1897,
29918,
978,
353,
360,
29979,
5550,
29950,
10051,
10764,
13,
4706,
1139,
353,
12547,
263,
11595,
2381,
9536,
292,
4315,
8560,
313,
29875,
29889,
29872,
29889,
451,
263,
1243,
310,
330,
351,
2143,
2506,
6877,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
2431,
15628,
29892,
13,
462,
268,
29906,
29889,
2216,
8560,
29892,
13,
462,
268,
29941,
29889,
2216,
22903,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
14550,
13,
308,
13,
4706,
14550,
29871,
13,
308,
29947,
29889,
383,
2759,
2381,
9536,
4315,
8560,
13,
4706,
1897,
29918,
978,
353,
360,
29979,
5550,
29950,
10051,
10764,
13,
4706,
1139,
353,
12547,
263,
11595,
2381,
9536,
292,
4315,
8560,
313,
29875,
29889,
29872,
29889,
451,
263,
1243,
310,
330,
351,
2143,
2506,
6877,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
2431,
15628,
29892,
13,
462,
268,
29906,
29889,
2216,
8560,
29892,
13,
462,
268,
29941,
29889,
2216,
22903,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
14550,
13,
4706,
6471,
353,
4489,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
29928,
29979,
5550,
29950,
10051,
10764,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
383,
2759,
2381,
9536,
4315,
8560,
29915,
13,
4706,
6471,
353,
1583,
3032,
1267,
420,
29918,
4914,
29898,
2176,
29922,
13155,
29892,
12379,
29918,
978,
29922,
29896,
29889,
29900,
29892,
16256,
29918,
978,
29922,
4914,
29918,
978,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
13,
9651,
22663,
29922,
16202,
29892,
29871,
13,
9651,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
29871,
13,
9651,
6471,
29922,
13155,
29892,
29871,
13,
9651,
714,
29918,
974,
2433,
29876,
29915,
13,
9651,
1723,
13,
13,
4706,
14550,
29871,
13,
308,
29947,
29874,
29889,
3925,
9536,
4315,
8560,
2629,
29871,
29906,
29946,
6199,
396,
13,
4706,
1897,
29918,
978,
353,
360,
29979,
5550,
29950,
10051,
10764,
29918,
29906,
29946,
29950,
13,
4706,
1139,
353,
7440,
278,
16500,
7150,
263,
2381,
9536,
292,
4315,
2629,
29871,
29906,
29946,
6199,
310,
594,
6737,
304,
13457,
29973,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
3869,
29892,
13,
462,
268,
29906,
29889,
1939,
29892,
13,
462,
268,
29941,
29889,
853,
5203,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
14550,
13,
4706,
270,
952,
561,
351,
423,
29918,
546,
15628,
29918,
2176,
353,
4489,
29889,
2029,
29961,
2176,
1839,
29928,
29979,
5550,
29950,
10051,
10764,
2033,
1275,
29871,
29896,
1822,
8552,
580,
13,
4706,
6471,
353,
1663,
352,
262,
29918,
6406,
8306,
29918,
2176,
29889,
27789,
29898,
13,
9651,
518,
1311,
29889,
3396,
29918,
1054,
29892,
525,
29928,
29979,
5550,
29950,
10051,
10764,
29918,
29906,
29946,
29950,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
3925,
9536,
4315,
8560,
2629,
29871,
29906,
29946,
6199,
29915,
13,
4706,
6471,
353,
1583,
3032,
1267,
420,
29918,
4914,
29898,
2176,
29922,
13155,
29892,
12379,
29918,
978,
29922,
29896,
29889,
29900,
29892,
16256,
29918,
978,
29922,
4914,
29918,
978,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
13,
9651,
22663,
29922,
16202,
29892,
29871,
13,
9651,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
29871,
13,
9651,
6471,
29922,
13155,
29892,
29871,
13,
9651,
714,
29918,
974,
2433,
29937,
383,
2759,
2381,
9536,
4315,
8560,
29915,
13,
9651,
1723,
13,
13,
4706,
14550,
29871,
13,
308,
29929,
29889,
3925,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
1641,
2183,
470,
284,
13589,
800,
396,
13,
4706,
1897,
29918,
978,
353,
360,
29979,
5550,
29950,
29918,
15349,
5800,
1525,
29918,
2303,
29928,
13,
4706,
1139,
353,
12547,
278,
2381,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
278,
16500,
471,
2183,
470,
284,
13589,
800,
29973,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
3869,
29892,
13,
462,
268,
29906,
29889,
1939,
29892,
13,
462,
268,
29941,
29889,
853,
5203,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
14550,
13,
4706,
6471,
353,
4489,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
29928,
29979,
5550,
29950,
29918,
15349,
5800,
1525,
29918,
2303,
29928,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
3925,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
1641,
2183,
470,
284,
13589,
800,
29915,
13,
4706,
6471,
353,
1583,
3032,
1267,
420,
29918,
4914,
29898,
2176,
29922,
13155,
29892,
12379,
29918,
978,
29922,
29896,
29889,
29900,
29892,
16256,
29918,
978,
29922,
4914,
29918,
978,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
13,
9651,
22663,
29922,
16202,
29892,
29871,
13,
9651,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
29871,
13,
9651,
6471,
29922,
13155,
29892,
29871,
13,
9651,
714,
29918,
974,
2433,
29876,
29915,
13,
9651,
1723,
13,
13,
4706,
14550,
29871,
13,
308,
29896,
29900,
29889,
3925,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
1641,
2183,
470,
284,
9687,
470,
20501,
4841,
396,
13,
4706,
1897,
29918,
978,
353,
360,
29979,
5550,
29950,
29918,
15349,
5800,
1525,
29918,
5800,
13668,
13,
4706,
1139,
353,
12547,
278,
2381,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
278,
16500,
471,
2183,
470,
284,
9687,
470,
20501,
4841,
29973,
13,
4706,
1134,
353,
1831,
13,
4706,
6089,
29901,
268,
29896,
29889,
3869,
29892,
13,
462,
268,
29906,
29889,
1939,
29892,
13,
462,
268,
29941,
29889,
853,
5203,
13,
4706,
13944,
29901,
396,
310,
29871,
29896,
4629,
13,
4706,
14550,
13,
4706,
6471,
353,
4489,
29889,
27789,
4197,
1311,
29889,
3396,
29918,
1054,
29892,
525,
29928,
29979,
5550,
29950,
29918,
15349,
5800,
1525,
29918,
5800,
13668,
2033,
467,
2311,
2141,
348,
1429,
2141,
12071,
29918,
2248,
2141,
5589,
1056,
29898,
29900,
29897,
13,
4706,
1897,
29918,
978,
353,
16321,
3925,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
1641,
2183,
470,
284,
9687,
470,
20501,
4841,
29915,
13,
4706,
6471,
353,
1583,
3032,
1267,
420,
29918,
4914,
29898,
2176,
29922,
13155,
29892,
12379,
29918,
978,
29922,
29896,
29889,
29900,
29892,
16256,
29918,
978,
29922,
4914,
29918,
978,
29897,
13,
4706,
22663,
353,
1583,
3032,
657,
29918,
5031,
10070,
29898,
13,
9651,
22663,
29922,
16202,
29892,
29871,
13,
9651,
1897,
29918,
978,
29922,
4914,
29918,
978,
29892,
29871,
13,
9651,
6471,
29922,
13155,
29892,
29871,
13,
9651,
714,
29918,
974,
2433,
29876,
29915,
13,
9651,
1723,
13,
13,
4706,
396,
4078,
12833,
22663,
964,
11799,
934,
13,
4706,
4078,
29918,
1445,
29898,
13,
9651,
1024,
29922,
29888,
29915,
29939,
6151,
29918,
16202,
648,
12673,
29889,
3707,
2141,
710,
615,
603,
11702,
29979,
19222,
29885,
19222,
29881,
1159,
1836,
7638,
742,
13,
9651,
848,
29922,
16202,
29892,
13,
9651,
1723,
13,
13,
4706,
736,
22663,
13,
13,
1678,
822,
903,
14634,
29918,
3729,
29879,
29898,
1311,
29892,
1591,
29892,
937,
29918,
29916,
29892,
937,
29918,
29891,
29892,
1473,
29918,
29916,
29892,
1473,
29918,
29891,
1125,
13,
4706,
14550,
4702,
479,
9101,
2729,
373,
2380,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
1591,
29901,
278,
1591,
304,
367,
9120,
13,
4706,
584,
1853,
1591,
29901,
1591,
8267,
13,
4706,
584,
3207,
937,
29918,
29916,
29901,
278,
29871,
29896,
303,
14821,
13,
4706,
584,
1853,
937,
29918,
29916,
29901,
938,
13,
4706,
584,
3207,
937,
29918,
29891,
29901,
278,
29871,
29906,
299,
14821,
13,
4706,
584,
1853,
937,
29918,
29891,
29901,
938,
13,
4706,
584,
3207,
1473,
29918,
29916,
29901,
29871,
29941,
5499,
14821,
13,
4706,
584,
1853,
1473,
29918,
29916,
29901,
938,
13,
4706,
584,
3207,
1473,
29918,
29891,
29901,
29871,
29946,
386,
14821,
13,
4706,
584,
1853,
1473,
29918,
29891,
29901,
938,
13,
4706,
584,
18280,
29901,
278,
10366,
3038,
13,
4706,
584,
29878,
1853,
29901,
3038,
29871,
13,
4706,
14550,
13,
4706,
3038,
353,
1591,
29889,
3729,
29898,
4102,
29918,
29916,
29892,
937,
29918,
29891,
29897,
13,
4706,
916,
29918,
3729,
353,
1591,
29889,
3729,
29898,
7496,
29918,
29916,
29892,
1473,
29918,
29891,
29897,
13,
4706,
3038,
29889,
14634,
29898,
1228,
29918,
3729,
29897,
13,
4706,
3038,
29889,
18575,
29918,
25367,
353,
341,
6156,
29918,
2190,
3210,
1955,
29889,
29924,
1367,
29928,
1307,
13,
4706,
736,
3038,
13,
13,
1678,
822,
903,
7851,
29918,
5975,
29898,
1311,
29892,
1591,
29892,
1948,
29892,
1819,
29892,
14288,
29922,
8824,
1125,
13,
4706,
14550,
24505,
1819,
964,
525,
29876,
29915,
322,
14210,
29915,
4341,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
1591,
29901,
278,
1591,
29871,
13,
4706,
584,
1853,
1591,
29901,
1591,
8267,
13,
4706,
584,
3207,
1948,
29901,
278,
1353,
310,
1948,
304,
788,
1819,
13,
4706,
584,
1853,
1948,
29901,
938,
13,
4706,
584,
3207,
1819,
29901,
278,
1051,
310,
1819,
13,
4706,
584,
1853,
1819,
29901,
1051,
13,
4706,
584,
3207,
14288,
29901,
1426,
881,
367,
14288,
13,
4706,
584,
1853,
14288,
29901,
7223,
13,
4706,
14550,
13,
4706,
363,
474,
297,
3464,
29898,
29900,
29892,
7431,
29898,
5975,
22164,
13,
9651,
3038,
353,
1591,
29889,
3729,
29898,
798,
29892,
474,
718,
29871,
29906,
29897,
396,
3617,
3038,
297,
278,
29871,
29906,
299,
1948,
13,
9651,
3038,
29889,
726,
353,
1819,
29961,
29875,
29962,
13,
9651,
3038,
29889,
18575,
29918,
25367,
353,
341,
6156,
29918,
2190,
3210,
1955,
29889,
29924,
1367,
29928,
1307,
13,
9651,
363,
14880,
29879,
297,
3038,
29889,
726,
29918,
2557,
29889,
26956,
29879,
29901,
13,
18884,
14880,
29879,
29889,
2520,
358,
353,
349,
29925,
29918,
1964,
17298,
29889,
29907,
3919,
1001,
13,
18884,
363,
1065,
297,
14880,
29879,
29889,
3389,
29879,
29901,
13,
462,
1678,
1065,
29889,
5657,
29889,
2311,
353,
1583,
29889,
2371,
29918,
5657,
29918,
2311,
13,
462,
1678,
1065,
29889,
5657,
29889,
8934,
353,
14288,
13,
13,
1678,
822,
903,
7851,
29918,
1491,
5727,
29898,
1311,
29892,
1591,
29892,
1948,
29892,
784,
29892,
1819,
1125,
13,
4706,
14550,
24505,
1819,
964,
525,
29876,
29915,
322,
14210,
29915,
4341,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
1591,
29901,
278,
1591,
29871,
13,
4706,
584,
1853,
1591,
29901,
1591,
8267,
13,
4706,
584,
3207,
1948,
29901,
278,
1353,
310,
1948,
304,
788,
1819,
13,
4706,
584,
1853,
1948,
29901,
938,
13,
4706,
584,
3207,
784,
29901,
278,
1353,
310,
1897,
304,
788,
1819,
13,
4706,
584,
1853,
784,
29901,
938,
13,
4706,
584,
3207,
1819,
29901,
278,
1051,
310,
1819,
13,
4706,
584,
1853,
1819,
29901,
1051,
13,
4706,
584,
3207,
14288,
29901,
1426,
881,
367,
14288,
13,
4706,
584,
1853,
14288,
29901,
7223,
13,
4706,
14550,
13,
4706,
363,
474,
297,
3464,
29898,
29900,
29892,
7431,
29898,
5975,
22164,
13,
9651,
3038,
353,
1591,
29889,
3729,
29898,
798,
29892,
784,
29897,
396,
3617,
3038,
297,
278,
29871,
29906,
299,
1948,
13,
9651,
3038,
29889,
726,
353,
1819,
29961,
29875,
29962,
13,
9651,
3038,
29889,
18575,
29918,
25367,
353,
341,
6156,
29918,
2190,
3210,
1955,
29889,
29924,
1367,
29928,
1307,
13,
9651,
363,
14880,
29879,
297,
3038,
29889,
726,
29918,
2557,
29889,
26956,
29879,
29901,
13,
18884,
14880,
29879,
29889,
2520,
358,
353,
349,
29925,
29918,
1964,
17298,
29889,
28024,
13,
18884,
363,
1065,
297,
14880,
29879,
29889,
3389,
29879,
29901,
13,
462,
1678,
1065,
29889,
5657,
29889,
2311,
353,
1583,
29889,
2371,
29918,
5657,
29918,
2311,
13,
9651,
1948,
4619,
29871,
29896,
13,
13,
1678,
822,
903,
1202,
29918,
4914,
29918,
978,
29898,
1311,
29892,
3038,
29892,
1426,
29892,
22239,
2433,
1563,
742,
14288,
29922,
8824,
29892,
4698,
293,
29922,
8824,
29892,
3233,
29922,
8824,
1125,
13,
4706,
14550,
24505,
1426,
964,
1948,
408,
1897,
1024,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
3038,
29901,
3038,
393,
881,
367,
9120,
13,
4706,
584,
1853,
3038,
29901,
3038,
8267,
13,
4706,
584,
3207,
1426,
29901,
278,
1426,
13,
4706,
584,
1853,
1426,
29901,
851,
13,
4706,
584,
3207,
14288,
29901,
1426,
881,
367,
14288,
13,
4706,
584,
1853,
14288,
29901,
7223,
13,
4706,
584,
3207,
4698,
293,
29901,
1426,
881,
367,
4698,
293,
13,
4706,
584,
1853,
4698,
293,
29901,
7223,
13,
4706,
584,
3207,
394,
335,
358,
29901,
920,
278,
1426,
881,
367,
26118,
313,
4592,
29901,
2175,
29897,
13,
4706,
584,
1853,
22239,
29901,
851,
13,
4706,
14550,
13,
4706,
396,
3789,
22239,
13,
4706,
565,
22239,
1275,
525,
1563,
2396,
13,
9651,
22239,
353,
349,
29925,
29918,
1964,
17298,
29889,
28024,
13,
4706,
25342,
22239,
1275,
525,
1266,
2396,
13,
9651,
22239,
353,
349,
29925,
29918,
1964,
17298,
29889,
22789,
3912,
13,
4706,
25342,
22239,
1275,
525,
5064,
2396,
13,
9651,
22239,
353,
349,
29925,
29918,
1964,
17298,
29889,
29907,
3919,
1001,
13,
13,
4706,
3038,
29889,
726,
353,
1426,
13,
4706,
3038,
29889,
18575,
29918,
25367,
353,
341,
6156,
29918,
2190,
3210,
1955,
29889,
29924,
1367,
29928,
1307,
13,
4706,
363,
14880,
297,
3038,
29889,
726,
29918,
2557,
29889,
26956,
29879,
29901,
13,
9651,
14880,
29889,
2520,
358,
353,
22239,
13,
9651,
396,
910,
674,
1207,
1426,
1399,
14927,
13,
9651,
565,
3233,
29901,
13,
18884,
14880,
29889,
5563,
353,
29871,
29896,
13,
9651,
363,
1065,
297,
14880,
29889,
3389,
29879,
29901,
13,
18884,
1065,
29889,
5657,
29889,
2311,
353,
1583,
29889,
2371,
29918,
5657,
29918,
2311,
13,
18884,
1065,
29889,
5657,
29889,
8934,
353,
14288,
13,
18884,
1065,
29889,
5657,
29889,
2410,
293,
353,
4698,
293,
13,
13,
1678,
822,
903,
1202,
29918,
726,
1884,
29898,
1311,
29892,
1580,
29879,
29892,
20343,
29892,
1426,
29892,
14288,
29922,
8824,
29892,
4698,
293,
29922,
8824,
29892,
1090,
1220,
29922,
8824,
1125,
13,
4706,
14550,
3462,
18932,
411,
8252,
1426,
964,
278,
24329,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
1580,
29879,
29901,
278,
2602,
310,
278,
18932,
13,
4706,
584,
1853,
1580,
29879,
29901,
9657,
13,
4706,
584,
3207,
20343,
29901,
20343,
304,
607,
18932,
881,
367,
788,
13,
4706,
584,
1853,
20343,
29901,
20343,
8267,
13,
4706,
584,
3207,
1426,
29901,
18932,
29915,
29879,
1426,
13,
4706,
584,
1853,
1426,
29901,
851,
13,
4706,
584,
3207,
14288,
29901,
1207,
1426,
14288,
13,
4706,
584,
1853,
14288,
29901,
7223,
313,
4381,
29901,
7700,
29897,
13,
4706,
584,
3207,
4698,
293,
29901,
1207,
1426,
4698,
293,
13,
4706,
584,
1853,
4698,
293,
29901,
7223,
313,
4381,
29901,
7700,
29897,
13,
4706,
584,
3207,
1090,
1220,
29901,
1207,
1426,
1090,
21354,
13,
4706,
584,
1853,
1090,
1220,
29901,
7223,
313,
4381,
29901,
7700,
29897,
13,
4706,
14550,
13,
4706,
25568,
3313,
353,
20343,
29889,
845,
11603,
29889,
1202,
29918,
726,
1884,
29898,
5965,
2395,
1839,
1563,
7464,
1580,
29879,
1839,
3332,
7464,
1580,
29879,
1839,
2103,
7464,
1580,
29879,
1839,
3545,
11287,
13,
4706,
25568,
3313,
29889,
726,
29918,
2557,
29889,
8551,
580,
13,
4706,
25568,
3313,
29889,
726,
29918,
2557,
29889,
1742,
29918,
6312,
353,
5852,
13,
13,
4706,
282,
353,
25568,
3313,
29889,
726,
29918,
2557,
29889,
26956,
29879,
29961,
29900,
29962,
13,
4706,
282,
29889,
2520,
358,
353,
349,
29925,
29918,
1964,
17298,
29889,
29967,
17321,
6545,
29979,
13,
4706,
1065,
353,
282,
29889,
1202,
29918,
3389,
580,
13,
4706,
1065,
29889,
5657,
29889,
2311,
353,
349,
29873,
29898,
29896,
29896,
29897,
13,
4706,
1065,
29889,
5657,
29889,
15614,
353,
1090,
1220,
13,
4706,
1065,
29889,
5657,
29889,
8934,
353,
14288,
13,
4706,
1065,
29889,
5657,
29889,
2410,
293,
353,
4698,
293,
13,
4706,
1065,
29889,
726,
353,
1426,
13,
13,
1678,
822,
903,
842,
29918,
3286,
862,
3819,
29898,
1311,
29892,
1301,
862,
3819,
29892,
560,
29885,
1125,
13,
4706,
9995,
450,
740,
731,
278,
1301,
862,
3819,
310,
278,
1948,
29889,
29871,
13,
13,
4706,
584,
3207,
1301,
862,
3819,
29901,
278,
1301,
862,
3819,
297,
1273,
13,
4706,
584,
1853,
1301,
862,
3819,
29901,
938,
13,
4706,
584,
3207,
560,
29885,
29901,
278,
1543,
607,
1301,
862,
3819,
881,
367,
3939,
13,
4706,
584,
1853,
560,
29885,
29901,
3402,
29889,
1220,
29889,
2780,
3032,
29916,
20876,
13,
4706,
9995,
13,
4706,
263,
353,
851,
29898,
29896,
29900,
29900,
448,
1301,
862,
3819,
29897,
718,
525,
29896,
29929,
29953,
29915,
13,
308,
13,
4706,
15595,
353,
438,
3134,
2642,
877,
29874,
29901,
2312,
1495,
13,
4706,
15595,
29889,
842,
877,
791,
742,
263,
29897,
13,
4706,
560,
29885,
29889,
29879,
23973,
6821,
29878,
29889,
4397,
29898,
2312,
29897,
13,
13,
13,
1678,
822,
903,
1202,
29918,
3389,
29898,
1311,
29892,
13872,
3313,
29892,
1426,
29892,
14288,
29922,
8824,
29892,
4698,
293,
29922,
8824,
1125,
13,
4706,
14550,
3462,
14880,
304,
278,
18932,
29889,
7806,
14880,
508,
505,
2999,
6057,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
13872,
3313,
29901,
18932,
304,
607,
788,
734,
29882,
14880,
13,
4706,
584,
1853,
13872,
3313,
29901,
1426,
3313,
8267,
13,
4706,
584,
3207,
1426,
29901,
1426,
304,
367,
4635,
964,
13872,
3313,
13,
4706,
584,
1853,
1426,
29901,
851,
13,
4706,
584,
3207,
14288,
29901,
1565,
565,
1426,
881,
367,
7223,
13,
4706,
584,
1853,
14288,
29901,
7223,
13,
4706,
14550,
13,
4706,
282,
353,
13872,
3313,
29889,
726,
29918,
2557,
29889,
26956,
29879,
29961,
29900,
29962,
13,
4706,
1065,
353,
282,
29889,
1202,
29918,
3389,
580,
13,
4706,
1065,
29889,
726,
353,
1426,
13,
4706,
1065,
29889,
5657,
29889,
2311,
353,
349,
29873,
29898,
29896,
29896,
29897,
13,
4706,
1065,
29889,
5657,
29889,
8934,
353,
14288,
13,
4706,
1065,
29889,
5657,
29889,
2410,
293,
353,
4698,
293,
13,
13,
1678,
822,
903,
657,
29918,
4914,
29918,
5975,
29898,
1311,
29892,
1897,
29918,
978,
29892,
2362,
5570,
1125,
13,
4706,
14550,
7106,
1051,
310,
4341,
304,
367,
18841,
29878,
630,
297,
278,
1591,
2729,
373,
278,
3461,
1134,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
1897,
29918,
978,
29901,
1024,
310,
1897,
304,
367,
5134,
297,
278,
2582,
13,
4706,
584,
1853,
1897,
29918,
978,
29901,
851,
13,
4706,
584,
3207,
2362,
5570,
29901,
5852,
565,
2362,
5570,
3461,
338,
5706,
13,
4706,
584,
1853,
2362,
5570,
29901,
7223,
13,
4706,
584,
18280,
29901,
1051,
310,
1897,
1024,
2729,
373,
278,
3461,
1134,
13,
4706,
584,
29878,
1853,
29901,
1051,
13,
4706,
14550,
13,
4706,
565,
2362,
5570,
29901,
13,
9651,
4341,
353,
518,
13,
18884,
851,
29898,
1311,
29889,
1457,
29918,
16202,
29961,
4914,
29918,
978,
1822,
309,
542,
29961,
29900,
11724,
29871,
13,
18884,
851,
29898,
1311,
29889,
1457,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
2314,
29962,
13,
4706,
1683,
29901,
13,
9651,
4341,
353,
518,
13,
18884,
851,
29898,
1311,
29889,
1457,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
11724,
13,
18884,
851,
29898,
1311,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
2314,
13,
9651,
4514,
13,
4706,
736,
4341,
13,
13,
1678,
822,
903,
3258,
29918,
2371,
29898,
1311,
29892,
20343,
29892,
1591,
29918,
5965,
2395,
29892,
3611,
29892,
260,
798,
29892,
260,
1054,
29892,
2362,
5570,
29922,
8824,
1125,
13,
4706,
14550,
3251,
403,
1591,
297,
278,
3461,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
20343,
29901,
278,
20343,
304,
607,
278,
1591,
881,
367,
2715,
13,
4706,
584,
1853,
20343,
29901,
20343,
13,
4706,
584,
3207,
1591,
29918,
5965,
2395,
29901,
6084,
263,
2602,
310,
278,
2371,
13,
4706,
584,
1853,
1591,
29918,
5965,
2395,
29901,
9657,
13,
4706,
584,
3207,
3611,
29901,
278,
1024,
310,
278,
1591,
13,
4706,
584,
1853,
3611,
29901,
851,
13,
4706,
584,
3207,
260,
798,
29901,
1353,
310,
4206,
310,
278,
1591,
13,
4706,
584,
1853,
260,
798,
29901,
938,
13,
4706,
584,
3207,
260,
1054,
29901,
1353,
310,
4341,
310,
278,
1591,
13,
4706,
584,
1853,
260,
1054,
29901,
938,
13,
4706,
584,
3207,
2362,
5570,
29901,
5852,
565,
2362,
5570,
3461,
881,
367,
5759,
13,
4706,
584,
1853,
2362,
5570,
29901,
7223,
13,
308,
13,
4706,
14550,
13,
4706,
396,
3462,
1591,
304,
278,
20343,
29892,
591,
817,
1591,
411,
29871,
29906,
29896,
4206,
322,
29871,
29941,
4341,
13,
4706,
8267,
353,
20343,
29889,
845,
11603,
29889,
1202,
29918,
2371,
29898,
13,
9651,
260,
798,
29892,
396,
5727,
29871,
13,
9651,
260,
1054,
29892,
396,
28730,
13,
9651,
1591,
29918,
5965,
2395,
1839,
1563,
7464,
29871,
13,
9651,
1591,
29918,
5965,
2395,
1839,
3332,
7464,
13,
9651,
1591,
29918,
5965,
2395,
1839,
2103,
7464,
13,
9651,
1591,
29918,
5965,
2395,
1839,
3545,
11287,
13,
13,
4706,
396,
3789,
1106,
310,
278,
1591,
13,
4706,
396,
10726,
1591,
3114,
313,
991,
597,
3292,
29889,
510,
29914,
1557,
14763,
29914,
4691,
29899,
407,
7508,
29914,
12175,
29914,
29906,
29955,
29897,
13,
4706,
396,
910,
338,
263,
2586,
12092,
920,
304,
1735,
1591,
3114,
29892,
306,
2337,
437,
372,
393,
306,
1831,
1591,
3114,
297,
3081,
3149,
29892,
4078,
3081,
3149,
322,
1722,
4903,
934,
29889,
1670,
366,
508,
1284,
3114,
3553,
29889,
13,
4706,
3114,
29918,
333,
353,
22372,
29945,
29929,
29946,
29900,
29953,
29955,
29945,
29909,
29899,
29933,
29945,
29955,
29929,
29899,
29946,
29953,
29900,
29923,
29899,
29929,
29946,
29928,
29896,
29899,
29945,
29946,
29906,
29906,
29906,
29907,
29953,
29941,
29943,
29945,
7698,
10162,
13,
4706,
19018,
353,
8267,
3032,
5029,
29889,
4262,
293,
29889,
4262,
293,
1469,
29889,
16400,
13,
4706,
19018,
29961,
29900,
3816,
29899,
29896,
1822,
726,
353,
3114,
29918,
333,
13,
4706,
1591,
353,
8267,
29889,
2371,
13,
13,
4706,
396,
3789,
1897,
2920,
2729,
373,
278,
3461,
1134,
13,
4706,
565,
2362,
5570,
29901,
13,
9651,
2920,
29879,
353,
518,
13,
18884,
938,
29898,
2371,
29918,
5965,
2395,
1839,
2103,
2033,
334,
29871,
29900,
29889,
29945,
511,
29871,
13,
18884,
938,
29898,
2371,
29918,
5965,
2395,
1839,
2103,
2033,
334,
29871,
29900,
29889,
29906,
511,
29871,
13,
18884,
938,
29898,
2371,
29918,
5965,
2395,
1839,
2103,
2033,
334,
29871,
29900,
29889,
29896,
29945,
511,
29871,
13,
18884,
938,
29898,
2371,
29918,
5965,
2395,
1839,
2103,
2033,
334,
29871,
29900,
29889,
29896,
29945,
29897,
13,
18884,
4514,
13,
4706,
1683,
29901,
13,
9651,
2920,
29879,
353,
518,
13,
18884,
938,
29898,
2371,
29918,
5965,
2395,
1839,
2103,
2033,
334,
29871,
29900,
29889,
29945,
29947,
511,
29871,
13,
18884,
938,
29898,
2371,
29918,
5965,
2395,
1839,
2103,
2033,
334,
29871,
29900,
29889,
29906,
511,
29871,
13,
18884,
938,
29898,
2371,
29918,
5965,
2395,
1839,
2103,
2033,
334,
29871,
29900,
29889,
29896,
29896,
511,
29871,
13,
18884,
938,
29898,
2371,
29918,
5965,
2395,
1839,
2103,
2033,
334,
29871,
29900,
29889,
29896,
29896,
29897,
13,
18884,
4514,
13,
4706,
363,
474,
297,
3464,
29898,
29900,
29892,
7431,
29898,
2371,
29889,
13099,
22164,
13,
9651,
1591,
29889,
13099,
29961,
29875,
1822,
2103,
353,
2920,
29879,
29961,
29875,
29962,
13,
13,
4706,
396,
4702,
479,
4839,
1948,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
7431,
29898,
2371,
29889,
13099,
29897,
448,
29871,
29896,
29897,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
3611,
29892,
22239,
2433,
5064,
742,
14288,
29922,
5574,
29897,
13,
13,
4706,
396,
29871,
29906,
299,
1948,
13,
4706,
302,
798,
353,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
20569,
13,
4706,
396,
3789,
278,
4839,
310,
1591,
2729,
373,
3461,
1134,
13,
4706,
4341,
353,
6024,
29876,
742,
14210,
2033,
565,
2362,
5570,
1683,
6024,
6572,
302,
313,
10997,
742,
525,
6747,
302,
313,
10997,
2033,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29892,
14288,
29922,
5574,
29897,
13,
13,
4706,
396,
4121,
993,
6475,
7802,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
11457,
993,
6475,
7802,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29897,
13,
13,
4706,
4341,
353,
518,
13,
9651,
851,
29898,
1311,
29889,
1457,
29918,
16202,
1839,
29876,
13359,
309,
542,
29961,
29900,
11724,
29871,
13,
9651,
525,
29896,
29900,
29900,
29915,
13,
9651,
4514,
565,
2362,
5570,
1683,
518,
13,
18884,
851,
29898,
1311,
29889,
1457,
29918,
16202,
1839,
29876,
13359,
309,
542,
29961,
29900,
11724,
13,
462,
851,
29898,
1311,
29889,
2490,
29918,
16202,
1839,
29876,
13359,
309,
542,
29961,
29900,
2314,
13,
462,
4514,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
396,
6789,
546,
1535,
29652,
322,
14502,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
29876,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
5776,
546,
1535,
29652,
322,
14502,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
14288,
29922,
5574,
29892,
4698,
293,
29922,
5574,
29897,
13,
13,
4706,
1024,
353,
16321,
6789,
546,
1535,
29652,
322,
14502,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
718,
29871,
29906,
29892,
29871,
29900,
29897,
13,
4706,
1426,
353,
525,
5776,
546,
1535,
11819,
287,
472,
3203,
3023,
3064,
320,
29876,
546,
2462,
396,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
14288,
29922,
5574,
29892,
4698,
293,
29922,
5574,
29897,
13,
13,
4706,
4341,
353,
518,
13,
9651,
525,
12742,
310,
594,
6737,
742,
13,
9651,
525,
12742,
1023,
310,
594,
6737,
742,
13,
9651,
525,
12742,
2211,
310,
594,
6737,
742,
13,
4706,
4514,
13,
4706,
1583,
3032,
7851,
29918,
1491,
5727,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
784,
29922,
29896,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
1024,
353,
16321,
6789,
546,
1535,
11819,
287,
472,
3203,
3023,
3064,
639,
2462,
448,
8373,
310,
594,
6737,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
1024,
353,
16321,
6789,
546,
1535,
11819,
287,
472,
3203,
3023,
3064,
639,
2462,
448,
8373,
1023,
310,
594,
6737,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
1024,
353,
16321,
6789,
546,
1535,
11819,
287,
472,
3203,
3023,
3064,
639,
2462,
448,
8373,
2211,
310,
594,
6737,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
396,
6789,
546,
1535,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
10478,
2629,
29871,
29955,
29906,
6199,
310,
594,
6737,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
5776,
546,
1535,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
10478,
2629,
29871,
29955,
29906,
6199,
310,
594,
6737,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
1495,
13,
13,
4706,
1024,
353,
16321,
6789,
546,
1535,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29883,
10478,
2629,
29871,
29955,
29906,
6199,
310,
594,
6737,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
396,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
363,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
2177,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
363,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
742,
3233,
29922,
5574,
29897,
13,
13,
4706,
1024,
353,
16321,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
363,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
396,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
411,
697,
7234,
515,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
396,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
2177,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
411,
697,
7234,
515,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
396,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
742,
14288,
29922,
5574,
29892,
3233,
29922,
5574,
29897,
13,
13,
4706,
1024,
353,
16321,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
411,
697,
7234,
515,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
396,
25122,
3144,
1682,
852,
29652,
322,
14502,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
29933,
417,
397,
3144,
1682,
852,
29652,
322,
14502,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
742,
14288,
29922,
5574,
29892,
4698,
293,
29922,
5574,
29897,
13,
13,
4706,
1024,
353,
16321,
25122,
3144,
1682,
852,
29652,
322,
14502,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
396,
25122,
8467,
1682,
852,
21597,
313,
29933,
7239,
29897,
11819,
287,
1405,
3023,
3064,
639,
2462,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
718,
29871,
29896,
29892,
29871,
29900,
29897,
13,
4706,
1426,
353,
525,
29933,
417,
397,
8467,
1682,
852,
21597,
313,
29933,
7239,
29897,
11819,
287,
1405,
3023,
3064,
639,
2462,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
742,
14288,
29922,
5574,
29897,
13,
13,
4706,
4341,
353,
518,
13,
9651,
525,
12742,
310,
594,
6737,
742,
13,
9651,
525,
12742,
1023,
310,
594,
6737,
742,
13,
4706,
4514,
13,
4706,
1583,
3032,
7851,
29918,
1491,
5727,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
784,
29922,
29896,
29892,
1819,
29922,
13099,
29897,
13,
308,
13,
4706,
1024,
353,
16321,
25122,
8467,
1682,
852,
21597,
313,
29933,
7239,
29897,
11819,
287,
1405,
3023,
3064,
639,
2462,
448,
8373,
310,
594,
6737,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
1024,
353,
16321,
25122,
8467,
1682,
852,
21597,
313,
29933,
7239,
29897,
11819,
287,
1405,
3023,
3064,
639,
2462,
448,
8373,
1023,
310,
594,
6737,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
29933,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
2629,
29871,
29946,
29947,
6199,
310,
594,
6737,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
1495,
13,
13,
4706,
1024,
353,
16321,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
2629,
29871,
29946,
29947,
6199,
310,
594,
6737,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
797,
29879,
352,
262,
2183,
363,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
742,
14288,
29922,
5574,
29892,
3233,
29922,
5574,
29897,
13,
13,
4706,
1024,
353,
16321,
13377,
352,
262,
2183,
363,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
797,
29879,
352,
262,
2183,
2629,
697,
7234,
515,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
396,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
742,
14288,
29922,
5574,
29892,
3233,
29922,
5574,
29897,
13,
13,
4706,
1024,
353,
16321,
13377,
352,
262,
2183,
2629,
697,
7234,
515,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
10840,
9536,
4315,
292,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
742,
14288,
29922,
5574,
29892,
4698,
293,
29922,
5574,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
2500,
284,
2381,
9536,
4315,
8560,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
1495,
13,
13,
4706,
1024,
353,
16321,
383,
2759,
2381,
9536,
4315,
8560,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
10840,
9536,
4315,
8560,
2629,
29871,
29906,
29946,
6199,
396,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
742,
14288,
29922,
5574,
29892,
3233,
29922,
5574,
29897,
13,
13,
4706,
1024,
353,
16321,
3925,
9536,
4315,
8560,
2629,
29871,
29906,
29946,
6199,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
10840,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
1641,
2183,
470,
284,
13589,
800,
396,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
742,
14288,
29922,
5574,
29897,
13,
13,
4706,
1024,
353,
16321,
3925,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
1641,
2183,
470,
284,
13589,
800,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
302,
798,
4619,
29871,
29896,
13,
4706,
3038,
353,
1583,
3032,
14634,
29918,
3729,
29879,
29898,
2371,
29892,
302,
798,
29892,
29871,
29900,
29892,
302,
798,
29892,
29871,
29896,
29897,
13,
4706,
1426,
353,
525,
10840,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
1641,
2183,
470,
284,
9687,
470,
20501,
4841,
396,
29915,
13,
4706,
1583,
3032,
1202,
29918,
4914,
29918,
978,
29898,
3729,
29892,
1426,
29892,
22239,
2433,
1563,
742,
14288,
29922,
5574,
29897,
13,
13,
4706,
1024,
353,
16321,
3925,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
1641,
2183,
470,
284,
9687,
470,
20501,
4841,
29915,
13,
4706,
4341,
353,
1583,
3032,
657,
29918,
4914,
29918,
5975,
29898,
978,
29892,
2362,
5570,
29897,
13,
4706,
1583,
3032,
7851,
29918,
5975,
29898,
2371,
29922,
2371,
29892,
1948,
29922,
29876,
798,
29892,
1819,
29922,
13099,
29897,
13,
13,
4706,
396,
6204,
20380,
1549,
9101,
297,
278,
1591,
13,
4706,
822,
4256,
29918,
3729,
29879,
29898,
2371,
1125,
13,
9651,
363,
1948,
297,
1591,
29889,
5727,
29901,
13,
18884,
363,
3038,
297,
1948,
29889,
3729,
29879,
29901,
13,
462,
1678,
7709,
3038,
13,
13,
4706,
396,
3789,
4079,
2159,
310,
599,
9101,
297,
278,
1591,
2729,
373,
278,
3461,
1134,
13,
4706,
363,
3038,
297,
4256,
29918,
3729,
29879,
29898,
2371,
1125,
13,
9651,
3038,
29889,
726,
29918,
2557,
29889,
1300,
359,
675,
353,
341,
6156,
29918,
20656,
29949,
29918,
14226,
29889,
7068,
3301,
29923,
29918,
4986,
29918,
29943,
1806,
29918,
16975,
13,
9651,
363,
14880,
297,
3038,
29889,
726,
29918,
2557,
29889,
26956,
29879,
29901,
13,
18884,
14880,
29889,
5657,
29889,
2311,
353,
1583,
29889,
2371,
29918,
5657,
29918,
2311,
13,
13,
1678,
822,
5706,
29918,
6500,
5570,
29918,
12276,
29898,
1311,
29892,
4489,
29922,
8516,
1125,
13,
4706,
14550,
3251,
403,
2362,
5570,
848,
15837,
16705,
29889,
29871,
13,
308,
13,
4706,
584,
3207,
4489,
29901,
12205,
304,
367,
1304,
363,
1819,
313,
4381,
29901,
6213,
29897,
13,
4706,
584,
1853,
4489,
29901,
12205,
13,
4706,
14550,
13,
13,
4706,
1583,
29889,
2371,
29918,
5657,
29918,
2311,
353,
349,
29873,
29898,
29896,
29896,
29897,
396,
3789,
2322,
4079,
2159,
310,
278,
1591,
297,
2362,
5570,
3461,
13,
4706,
396,
22402,
4472,
363,
278,
24329,
13,
4706,
5835,
353,
2897,
29889,
2084,
29889,
12324,
2084,
29898,
359,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
25721,
22168,
1445,
1649,
511,
525,
7042,
29879,
742,
525,
29939,
6151,
29918,
6500,
5570,
29889,
407,
7508,
8785,
13,
13,
4706,
396,
19916,
12205,
363,
3268,
4706,
13,
4706,
13457,
29918,
978,
353,
1583,
29889,
18082,
29891,
29918,
2176,
29889,
2029,
29961,
1311,
29889,
18082,
29891,
29918,
2176,
1839,
13092,
29918,
25378,
2033,
1275,
1583,
29889,
2746,
29918,
333,
29892,
525,
17470,
1793,
29918,
978,
13359,
309,
542,
29961,
29900,
29962,
13,
13,
4706,
396,
6204,
1962,
10422,
6943,
3855,
6151,
29892,
1857,
2635,
322,
3268,
3553,
13,
4706,
1962,
29918,
1445,
353,
285,
29915,
29939,
6151,
648,
1311,
29889,
2746,
29918,
333,
3227,
12673,
29889,
3707,
2141,
710,
615,
603,
11702,
29979,
19222,
29885,
19222,
29881,
1159,
1836,
407,
7508,
29915,
13,
13,
4706,
396,
731,
1667,
1426,
304,
367,
2715,
964,
13676,
13,
4706,
1667,
29918,
726,
29879,
353,
518,
13,
9651,
525,
29907,
549,
3605,
8250,
373,
1614,
1259,
596,
2362,
5570,
12990,
277,
29889,
1334,
505,
19138,
1891,
278,
2582,
363,
366,
297,
278,
1591,
2400,
29889,
3529,
6232,
1438,
2582,
411,
596,
3815,
29889,
4525,
848,
508,
6985,
366,
746,
5353,
292,
278,
2594,
26536,
322,
427,
370,
9306,
304,
5314,
310,
278,
5169,
1799,
24899,
936,
9608,
29879,
472,
596,
13457,
29889,
742,
29871,
13,
9651,
525,
3112,
338,
4100,
304,
3113,
1235,
502,
1073,
565,
727,
526,
4828,
411,
278,
848,
393,
508,
367,
10824,
4340,
313,
387,
29889,
471,
727,
263,
1139,
278,
2305,
18055,
848,
1122,
451,
505,
11098,
6284,
7897,
742,
13,
9651,
525,
12148,
1016,
30010,
29873,
19066,
10388,
304,
6958,
278,
405,
3960,
565,
366,
1996,
7542,
2450,
373,
738,
310,
278,
4452,
2038,
6169,
13,
4706,
4514,
13,
308,
13,
4706,
396,
6204,
716,
4360,
296,
1249,
265,
1203,
13,
4706,
544,
29879,
353,
4360,
9233,
29898,
6207,
29897,
13,
13,
4706,
396,
3617,
937,
20343,
13,
4706,
937,
29918,
19265,
353,
544,
29879,
29889,
2536,
2247,
29961,
29900,
29962,
13,
13,
4706,
396,
3789,
21992,
310,
278,
1591,
13,
4706,
1591,
29918,
5965,
2395,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29896,
29947,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29896,
29929,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29896,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29945,
29897,
13,
4706,
500,
13,
13,
4706,
396,
6204,
1591,
13,
4706,
1583,
3032,
3258,
29918,
2371,
29898,
13,
9651,
20343,
29922,
4102,
29918,
19265,
29892,
29871,
13,
9651,
1591,
29918,
5965,
2395,
29922,
2371,
29918,
5965,
2395,
29892,
29871,
13,
9651,
3611,
29922,
29888,
29915,
3562,
29871,
29896,
29901,
5169,
1799,
15057,
363,
426,
29882,
8189,
29918,
978,
29913,
742,
29871,
13,
9651,
260,
798,
29922,
29906,
29896,
29892,
29871,
13,
9651,
260,
1054,
29922,
29946,
29892,
13,
9651,
2362,
5570,
29922,
5574,
29897,
13,
13,
4706,
396,
3462,
278,
1791,
310,
24232,
26442,
13,
4706,
1580,
29879,
353,
426,
13,
632,
29900,
29901,
426,
13,
18884,
525,
3545,
2396,
315,
29885,
29898,
29906,
511,
13,
18884,
525,
2103,
2396,
315,
29885,
29898,
29896,
29929,
511,
13,
18884,
525,
1563,
2396,
315,
29885,
29898,
29896,
511,
13,
18884,
525,
3332,
2396,
315,
29885,
29898,
29941,
29897,
13,
9651,
2981,
29871,
13,
632,
29896,
29901,
426,
13,
18884,
525,
3545,
2396,
315,
29885,
29898,
29896,
511,
13,
18884,
525,
2103,
2396,
315,
29885,
29898,
29896,
29929,
511,
13,
18884,
525,
1563,
2396,
315,
29885,
29898,
29896,
511,
13,
18884,
525,
3332,
2396,
315,
29885,
29898,
29906,
29945,
29889,
29945,
29897,
13,
9651,
2981,
13,
632,
29906,
29901,
426,
13,
18884,
525,
3545,
2396,
315,
29885,
29898,
29896,
511,
13,
18884,
525,
2103,
2396,
315,
29885,
29898,
29896,
29929,
511,
13,
18884,
525,
1563,
2396,
315,
29885,
29898,
29896,
511,
13,
18884,
525,
3332,
2396,
315,
29885,
29898,
29906,
29955,
29897,
13,
9651,
2981,
13,
4706,
500,
13,
13,
4706,
363,
474,
297,
3464,
29898,
29900,
29892,
7431,
29898,
3396,
29918,
726,
29879,
22164,
13,
9651,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29961,
29875,
1402,
937,
29918,
19265,
29892,
1667,
29918,
726,
29879,
29961,
29875,
2314,
13,
13,
4706,
396,
6204,
3983,
373,
278,
1473,
20343,
13,
4706,
1473,
29918,
19265,
353,
544,
29879,
29889,
2536,
2247,
29889,
1202,
29918,
19265,
29898,
558,
29879,
29889,
19265,
29918,
2680,
29879,
29961,
29900,
2314,
13,
4706,
3983,
29918,
2176,
353,
4489,
8999,
13,
9651,
14210,
6789,
546,
1535,
11819,
287,
472,
3203,
3023,
3064,
639,
2462,
448,
8373,
310,
594,
6737,
742,
13,
9651,
14210,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
411,
697,
7234,
515,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
742,
13,
9651,
14210,
25122,
8467,
1682,
852,
21597,
313,
29933,
7239,
29897,
11819,
287,
1405,
3023,
3064,
639,
2462,
448,
8373,
310,
594,
6737,
742,
13,
9651,
14210,
13377,
352,
262,
2183,
2629,
697,
7234,
515,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
742,
13,
9651,
14210,
3925,
9536,
4315,
8560,
2629,
29871,
29906,
29946,
6199,
742,
13,
4706,
4514,
1822,
8552,
580,
13,
4706,
716,
29918,
4914,
29918,
7039,
353,
6796,
15637,
313,
12742,
29871,
29896,
19123,
376,
2177,
562,
300,
314,
324,
313,
29896,
1092,
19123,
376,
29933,
7239,
29915,
29879,
313,
12742,
29871,
29896,
19123,
376,
797,
29879,
352,
262,
313,
29896,
1092,
19123,
376,
10840,
9536,
4315,
313,
29906,
29946,
1092,
29879,
29897,
3108,
13,
4706,
3983,
29918,
2176,
29889,
1267,
420,
29898,
13099,
29922,
8977,
29898,
7554,
29898,
4262,
29918,
2176,
29889,
13099,
29892,
716,
29918,
4914,
29918,
7039,
8243,
262,
6689,
29922,
5574,
29897,
13,
13,
4706,
1897,
29918,
978,
353,
525,
9496,
5570,
12990,
277,
29915,
13,
4706,
3983,
29918,
2176,
353,
3983,
29918,
2176,
29889,
29911,
29889,
1267,
420,
29898,
13099,
3790,
29900,
29901,
1897,
29918,
978,
1800,
13,
13,
4706,
396,
6204,
8727,
848,
13,
4706,
8727,
29918,
1272,
353,
14477,
1469,
580,
13,
4706,
8727,
29918,
1272,
29889,
20683,
353,
716,
29918,
4914,
29918,
7039,
13,
4706,
8727,
29918,
1272,
29889,
1202,
29918,
13757,
29898,
4914,
29918,
978,
29892,
3983,
29918,
2176,
29961,
4914,
29918,
978,
1822,
25027,
391,
3101,
418,
13,
13,
4706,
396,
3462,
8727,
373,
20343,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29896,
29900,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29896,
29929,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29896,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29941,
29897,
13,
9651,
500,
13,
4706,
8727,
353,
1473,
29918,
19265,
29889,
845,
11603,
29889,
1202,
29918,
15425,
29898,
13,
9651,
1060,
29931,
29918,
3210,
8322,
29918,
11116,
29889,
15032,
29127,
29918,
6154,
17321,
1001,
3352,
29892,
1580,
29879,
1839,
1563,
7464,
5965,
2395,
1839,
3332,
7464,
1580,
29879,
1839,
2103,
7464,
5965,
2395,
1839,
3545,
7464,
8727,
29918,
1272,
467,
15425,
3986,
13,
13,
13,
4706,
6492,
353,
8727,
29889,
26762,
29961,
29900,
29962,
13,
4706,
396,
2178,
22306,
411,
278,
1021,
2927,
13,
4706,
6492,
29889,
29894,
653,
29918,
1609,
29918,
20683,
353,
7700,
13,
13,
4706,
396,
3789,
7472,
304,
29871,
29896,
29900,
29900,
13,
4706,
995,
29918,
8990,
353,
8727,
29889,
1767,
29918,
8990,
13,
4706,
995,
29918,
8990,
29889,
27525,
398,
29918,
7052,
353,
29871,
29896,
29900,
29900,
13,
13,
4706,
995,
29918,
8990,
29889,
21355,
29918,
7720,
9012,
29889,
4830,
29889,
1220,
29889,
2103,
353,
349,
29873,
29898,
29900,
29889,
29945,
29897,
13,
4706,
995,
29918,
8990,
29889,
21355,
29918,
7720,
9012,
29889,
4830,
29889,
1220,
29889,
2780,
29889,
23973,
353,
390,
7210,
3306,
29898,
29906,
29900,
29953,
29892,
29871,
29906,
29900,
29953,
29892,
29871,
29906,
29900,
29953,
29897,
396,
3789,
2927,
304,
16749,
313,
29909,
29953,
29909,
29953,
29909,
29953,
29897,
13,
13,
4706,
995,
29918,
8990,
29889,
4830,
29889,
1220,
29889,
2780,
29889,
23973,
353,
390,
7210,
3306,
29898,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
7773,
20876,
353,
995,
29918,
8990,
29889,
4830,
29889,
1220,
29889,
2780,
3032,
29916,
20876,
13,
4706,
1583,
3032,
842,
29918,
3286,
862,
3819,
29898,
29896,
29900,
29900,
29892,
7773,
20876,
29897,
13,
13,
4706,
396,
1735,
4079,
2159,
310,
1819,
13,
4706,
16892,
29918,
21134,
353,
995,
29918,
8990,
29889,
24667,
29918,
21134,
13,
4706,
16892,
29918,
21134,
29889,
5657,
29889,
2311,
353,
349,
29873,
29898,
29896,
29896,
29897,
13,
13,
4706,
396,
7865,
363,
343,
29899,
8990,
313,
3167,
4079,
2159,
29892,
1024,
29892,
322,
916,
2712,
29897,
13,
4706,
7663,
29918,
8990,
353,
8727,
29889,
7320,
29918,
8990,
13,
4706,
396,
3789,
29871,
29896,
29900,
29900,
29995,
1301,
862,
3819,
304,
7663,
9685,
13,
4706,
7663,
29918,
8990,
29889,
4830,
29889,
1220,
29889,
2780,
29889,
23973,
353,
390,
7210,
3306,
29898,
29906,
29900,
29953,
29892,
29871,
29906,
29900,
29953,
29892,
29871,
29906,
29900,
29953,
29897,
13,
4706,
7773,
20876,
353,
7663,
29918,
8990,
29889,
4830,
29889,
1220,
29889,
2780,
3032,
29916,
20876,
13,
4706,
1583,
3032,
842,
29918,
3286,
862,
3819,
29898,
29896,
29900,
29900,
29892,
7773,
20876,
29897,
13,
13,
4706,
396,
10726,
4079,
2159,
310,
7663,
11073,
13,
4706,
7663,
29918,
21134,
353,
7663,
29918,
8990,
29889,
24667,
29918,
21134,
13,
4706,
7663,
29918,
21134,
29889,
5657,
29889,
2311,
353,
349,
29873,
29898,
29896,
29896,
29897,
13,
13,
4706,
396,
3789,
3983,
310,
3611,
13,
4706,
3983,
29918,
3257,
353,
285,
29915,
13080,
545,
29871,
29896,
29901,
5169,
1799,
15057,
426,
29882,
8189,
29918,
978,
29913,
15967,
29915,
13,
4706,
8727,
29918,
726,
353,
8727,
29889,
15425,
29918,
3257,
29889,
726,
29918,
2557,
13,
4706,
8727,
29918,
726,
29889,
726,
353,
3983,
29918,
3257,
13,
4706,
8727,
29918,
726,
29889,
26956,
29879,
29961,
29900,
1822,
5657,
29889,
2311,
353,
349,
29873,
29898,
29896,
29906,
29897,
13,
4706,
8727,
29918,
726,
29889,
26956,
29879,
29961,
29900,
1822,
5657,
29889,
2780,
29889,
23973,
353,
390,
7210,
3306,
29898,
29947,
29929,
29892,
29871,
29947,
29929,
29892,
29871,
29947,
29929,
29897,
13,
13,
4706,
396,
16913,
24329,
13,
4706,
2224,
353,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
657,
29883,
9970,
3285,
1962,
29918,
1445,
29897,
13,
4706,
4078,
29918,
1445,
29898,
4905,
29918,
1445,
29897,
13,
4706,
544,
29879,
29889,
7620,
29898,
2084,
29897,
13,
13,
308,
13,
1678,
822,
5706,
29918,
1457,
29918,
2490,
29918,
12276,
29898,
1311,
1125,
13,
4706,
14550,
3251,
403,
3461,
411,
758,
29914,
2490,
10230,
29889,
14550,
13,
13,
4706,
396,
3789,
7968,
4079,
2159,
310,
278,
1591,
13,
4706,
1583,
29889,
2371,
29918,
5657,
29918,
2311,
353,
349,
29873,
29898,
29929,
29889,
29945,
29897,
13,
308,
13,
4706,
396,
22402,
4472,
13,
4706,
5835,
353,
2897,
29889,
2084,
29889,
12324,
2084,
29898,
359,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
25721,
22168,
1445,
1649,
511,
525,
7042,
29879,
742,
525,
29939,
6151,
29918,
510,
20941,
29889,
407,
7508,
8785,
13,
1678,
13,
4706,
396,
3617,
13457,
1024,
2729,
373,
6559,
3553,
13,
4706,
13457,
29918,
978,
353,
1583,
29889,
18082,
29891,
29918,
2176,
29889,
2029,
29961,
1311,
29889,
18082,
29891,
29918,
2176,
1839,
13092,
29918,
25378,
2033,
1275,
1583,
29889,
2746,
29918,
333,
29892,
525,
17470,
1793,
29918,
978,
13359,
309,
542,
29961,
29900,
29962,
13,
13,
4706,
396,
6204,
1962,
10422,
6943,
3855,
6151,
29892,
1857,
2635,
322,
3268,
3553,
13,
4706,
1962,
29918,
1445,
353,
285,
29915,
29939,
6151,
29918,
2388,
648,
1311,
29889,
2746,
29918,
333,
3227,
12673,
29889,
3707,
2141,
710,
615,
603,
11702,
29979,
19222,
29885,
19222,
29881,
1159,
1836,
407,
7508,
29915,
13,
13,
4706,
396,
6204,
4360,
9233,
1203,
13,
4706,
544,
29879,
353,
4360,
9233,
29898,
6207,
29897,
13,
4706,
396,
3617,
937,
20343,
13,
4706,
937,
29918,
19265,
353,
544,
29879,
29889,
2536,
2247,
29961,
29900,
29962,
13,
13,
4706,
396,
3462,
3611,
29871,
13,
4706,
3611,
29918,
726,
353,
285,
29915,
29984,
28599,
4092,
8010,
29901,
4918,
29899,
4074,
7316,
12990,
277,
15837,
426,
29882,
8189,
29918,
978,
29913,
15967,
29915,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29896,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29896,
29947,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29900,
29889,
29953,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29896,
29889,
29945,
511,
13,
4706,
500,
13,
4706,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29892,
937,
29918,
19265,
29892,
3611,
29918,
726,
29892,
14288,
29922,
5574,
29892,
1090,
1220,
29922,
5574,
29897,
13,
13,
4706,
396,
3462,
937,
14880,
411,
8252,
322,
378,
629,
271,
8250,
13,
4706,
396,
319,
2586,
5520,
775,
1363,
871,
777,
8721,
471,
1754,
14288,
29892,
577,
306,
750,
304,
2825,
901,
6057,
297,
14880,
29889,
29871,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29906,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29896,
29929,
29889,
29945,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29900,
29889,
29953,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29906,
511,
13,
4706,
500,
13,
4706,
25568,
3313,
353,
937,
29918,
19265,
29889,
845,
11603,
29889,
1202,
29918,
726,
1884,
29898,
5965,
2395,
1839,
1563,
7464,
1580,
29879,
1839,
3332,
7464,
1580,
29879,
1839,
2103,
7464,
1580,
29879,
1839,
3545,
11287,
13,
4706,
25568,
3313,
29889,
726,
29918,
2557,
29889,
8551,
580,
13,
4706,
25568,
3313,
29889,
726,
29918,
2557,
29889,
1742,
29918,
6312,
353,
5852,
13,
4706,
1583,
3032,
1202,
29918,
3389,
29898,
13,
9651,
25568,
3313,
29892,
29871,
13,
9651,
525,
29907,
549,
3605,
8250,
373,
1614,
1259,
278,
660,
28599,
4092,
2060,
12990,
1169,
373,
278,
671,
310,
278,
5169,
1799,
313,
742,
13,
4706,
1723,
13,
4706,
1583,
3032,
1202,
29918,
3389,
29898,
7508,
3313,
29892,
525,
29943,
742,
14288,
29922,
5574,
29897,
13,
4706,
1583,
3032,
1202,
29918,
3389,
29898,
7508,
3313,
29892,
525,
1310,
29892,
25710,
13,
4706,
1583,
3032,
1202,
29918,
3389,
29898,
7508,
3313,
29892,
525,
29903,
742,
14288,
29922,
5574,
29897,
13,
4706,
1583,
3032,
1202,
29918,
3389,
29898,
7508,
3313,
29892,
525,
688,
279,
29892,
322,
25710,
13,
4706,
1583,
3032,
1202,
29918,
3389,
29898,
7508,
3313,
29892,
525,
29903,
742,
14288,
29922,
5574,
29897,
13,
4706,
1583,
3032,
1202,
29918,
3389,
29898,
7508,
3313,
29892,
525,
29893,
9536,
292,
29897,
9608,
29879,
363,
19782,
22069,
29889,
450,
19138,
583,
2400,
9432,
25710,
13,
4706,
1583,
3032,
1202,
29918,
3389,
29898,
7508,
3313,
29892,
285,
29908,
8066,
13457,
30010,
29879,
4180,
363,
278,
426,
1311,
29889,
1457,
29918,
16202,
1839,
29876,
13359,
309,
542,
29961,
29900,
12258,
19782,
22069,
366,
9076,
287,
363,
278,
2362,
5570,
12990,
277,
6193,
29914,
6247,
29914,
19165,
322,
278,
426,
1311,
29889,
2490,
29918,
16202,
1839,
29876,
13359,
309,
542,
29961,
29900,
12258,
22069,
366,
9076,
287,
2645,
278,
1400,
1006,
7316,
3785,
6193,
29914,
6247,
29914,
19165,
29889,
9162,
14288,
29922,
5574,
29897,
13,
4706,
1583,
3032,
1202,
29918,
3389,
29898,
7508,
3313,
29892,
525,
1334,
2198,
278,
1353,
310,
22069,
12990,
1573,
313,
29876,
29897,
322,
278,
18618,
310,
22069,
1058,
1539,
16614,
313,
28003,
1495,
13,
13,
4706,
396,
12048,
2450,
310,
278,
1591,
2602,
13,
4706,
1591,
29918,
5965,
2395,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29896,
29953,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29896,
29929,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29900,
29889,
29947,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29946,
29889,
29900,
29897,
13,
4706,
500,
13,
4706,
396,
6204,
1591,
13,
4706,
1583,
3032,
3258,
29918,
2371,
29898,
13,
9651,
20343,
29922,
4102,
29918,
19265,
29892,
29871,
13,
9651,
1591,
29918,
5965,
2395,
29922,
2371,
29918,
5965,
2395,
29892,
29871,
13,
9651,
3611,
29922,
29888,
29915,
8263,
1799,
15057,
363,
426,
29882,
8189,
29918,
978,
29913,
15967,
742,
29871,
13,
9651,
260,
798,
29922,
29906,
29896,
29892,
29871,
13,
9651,
260,
1054,
29922,
29946,
29892,
29871,
13,
9651,
2362,
5570,
29922,
8824,
29897,
13,
13,
4706,
396,
3462,
8252,
1426,
2400,
1591,
29871,
13,
4706,
1426,
353,
12305,
9586,
1849,
4318,
297,
14288,
2038,
526,
278,
1820,
6907,
800,
304,
367,
5643,
297,
278,
660,
28599,
4092,
2060,
29908,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29900,
29889,
29945,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29896,
29947,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29900,
29889,
29953,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29906,
29900,
511,
13,
4706,
500,
13,
4706,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29892,
937,
29918,
19265,
29892,
1426,
29897,
13,
13,
4706,
396,
6440,
20343,
13,
4706,
1473,
29918,
19265,
353,
544,
29879,
29889,
2536,
2247,
29961,
29896,
29962,
13,
13,
4706,
396,
3462,
10430,
2908,
13,
4706,
1897,
29918,
978,
353,
16321,
6789,
546,
1535,
29652,
322,
14502,
29915,
13,
4706,
758,
29918,
7382,
353,
1583,
29889,
1457,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
7382,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
4328,
353,
376,
1217,
4328,
29908,
565,
1400,
29918,
7382,
5277,
758,
29918,
7382,
1683,
376,
273,
7910,
29908,
13,
13,
4706,
1897,
29918,
978,
353,
16321,
6789,
546,
1535,
11819,
287,
472,
3203,
3023,
3064,
639,
2462,
448,
8373,
310,
594,
6737,
29915,
13,
4706,
758,
29918,
7382,
29918,
4102,
353,
1583,
29889,
1457,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
7382,
29918,
4102,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
13,
4706,
1897,
29918,
978,
353,
16321,
6789,
546,
1535,
11819,
287,
472,
3203,
3023,
3064,
639,
2462,
448,
8373,
1023,
310,
594,
6737,
29915,
13,
4706,
758,
29918,
7382,
29918,
7496,
353,
1583,
29889,
1457,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
7382,
29918,
7496,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
13,
4706,
1897,
29918,
978,
353,
16321,
6789,
546,
1535,
11819,
287,
472,
3203,
3023,
3064,
639,
2462,
448,
8373,
2211,
310,
594,
6737,
29915,
13,
4706,
758,
29918,
7382,
29918,
22585,
353,
1583,
29889,
1457,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
7382,
29918,
22585,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
13,
4706,
1897,
29918,
978,
353,
16321,
6789,
546,
1535,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29883,
10478,
2629,
29871,
29955,
29906,
6199,
310,
594,
6737,
29915,
13,
4706,
1400,
29918,
7382,
29918,
3757,
29918,
7827,
353,
1583,
29889,
2490,
29918,
16202,
29961,
4914,
29918,
978,
1822,
309,
542,
29961,
29900,
29962,
13,
13,
4706,
1897,
29918,
978,
353,
16321,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
2183,
411,
697,
7234,
515,
937,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
29915,
13,
4706,
1400,
29918,
862,
562,
300,
314,
324,
353,
1583,
29889,
2490,
29918,
16202,
29961,
4914,
29918,
978,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
862,
562,
300,
314,
324,
29918,
546,
29883,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
539,
13,
13,
4706,
1426,
353,
376,
29896,
29889,
6789,
546,
1535,
29908,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29900,
29889,
29955,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29906,
29947,
29889,
29945,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29900,
29889,
29953,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29896,
29889,
29945,
511,
13,
4706,
500,
13,
4706,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29892,
1473,
29918,
19265,
29892,
1426,
29892,
14288,
29922,
5574,
29897,
13,
13,
4706,
18618,
29918,
726,
353,
285,
29908,
29875,
29897,
3645,
758,
304,
1400,
5314,
727,
471,
426,
29881,
17678,
29913,
297,
278,
18618,
310,
22069,
1058,
29901,
892,
11819,
287,
3023,
3064,
263,
2462,
363,
1238,
369,
373,
8373,
29871,
29896,
21313,
1457,
29918,
7382,
29918,
4102,
10560,
7186,
426,
2490,
29918,
7382,
29918,
4102,
10560,
8307,
511,
8373,
29871,
29906,
21313,
1457,
29918,
7382,
29918,
7496,
10560,
7186,
426,
2490,
29918,
7382,
29918,
7496,
10560,
29897,
322,
8373,
29871,
29941,
21313,
1457,
29918,
7382,
29918,
22585,
10560,
7186,
426,
2490,
29918,
7382,
29918,
22585,
10560,
467,
29908,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29896,
29889,
29906,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29906,
29955,
29889,
29941,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29896,
29889,
29947,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29906,
511,
13,
4706,
500,
13,
4706,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29892,
1473,
29918,
19265,
29892,
18618,
29918,
726,
29897,
13,
13,
4706,
610,
562,
300,
314,
324,
29918,
726,
353,
285,
29908,
2236,
29897,
426,
2490,
29918,
862,
562,
300,
314,
324,
29913,
714,
310,
426,
2490,
29918,
7382,
29918,
3757,
29918,
7827,
29913,
21313,
2490,
29918,
862,
562,
300,
314,
324,
29918,
546,
29883,
10560,
29897,
22069,
411,
263,
10430,
1405,
29871,
29941,
29955,
29889,
29945,
30073,
29907,
4520,
1459,
562,
300,
314,
324,
313,
272,
5136,
6703,
3677,
666,
29891,
2267,
293,
29897,
2629,
697,
7234,
1213,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29900,
29889,
29955,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29906,
29955,
29889,
29941,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29896,
29889,
29947,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29941,
511,
13,
4706,
500,
13,
4706,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29892,
1473,
29918,
19265,
29892,
610,
562,
300,
314,
324,
29918,
726,
29897,
13,
13,
4706,
396,
3462,
10416,
3144,
1682,
852,
29652,
13,
4706,
1897,
29918,
978,
353,
16321,
25122,
3144,
1682,
852,
29652,
322,
14502,
29915,
13,
4706,
758,
29918,
14073,
397,
353,
1583,
29889,
1457,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
14073,
397,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
4328,
353,
376,
1217,
4328,
29908,
565,
1400,
29918,
14073,
397,
5277,
758,
29918,
14073,
397,
1683,
376,
273,
7910,
29908,
13,
13,
4706,
1897,
29918,
978,
353,
16321,
25122,
8467,
1682,
852,
21597,
313,
29933,
7239,
29897,
11819,
287,
1405,
3023,
3064,
639,
2462,
448,
8373,
310,
594,
6737,
29915,
13,
4706,
758,
29918,
14073,
397,
29918,
4102,
353,
1583,
29889,
1457,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
14073,
397,
29918,
4102,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
13,
4706,
1897,
29918,
978,
353,
16321,
25122,
8467,
1682,
852,
21597,
313,
29933,
7239,
29897,
11819,
287,
1405,
3023,
3064,
639,
2462,
448,
8373,
1023,
310,
594,
6737,
29915,
13,
4706,
758,
29918,
14073,
397,
29918,
7496,
353,
1583,
29889,
1457,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
14073,
397,
29918,
7496,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
13,
4706,
1897,
29918,
978,
353,
16321,
13377,
352,
262,
2183,
363,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
29915,
13,
4706,
1400,
29918,
1144,
352,
262,
29918,
7827,
353,
1583,
29889,
2490,
29918,
16202,
29961,
4914,
29918,
978,
1822,
309,
542,
29961,
29900,
29962,
13,
13,
4706,
1897,
29918,
978,
353,
16321,
13377,
352,
262,
2183,
2629,
697,
7234,
515,
937,
350,
7239,
29871,
30386,
29871,
29896,
29900,
4317,
324,
29914,
29931,
29915,
13,
4706,
1400,
29918,
1144,
352,
262,
353,
1583,
29889,
2490,
29918,
16202,
29961,
4914,
29918,
978,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
1144,
352,
262,
29918,
546,
29883,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
539,
13,
13,
4706,
1426,
353,
376,
29906,
29889,
25122,
3144,
1682,
852,
29652,
29908,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29900,
29889,
29955,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29906,
29947,
29889,
29945,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29900,
29889,
29953,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29946,
29889,
29900,
511,
13,
4706,
500,
13,
4706,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29892,
1473,
29918,
19265,
29892,
1426,
29892,
14288,
29922,
5574,
29897,
13,
13,
4706,
18618,
29918,
726,
353,
285,
29908,
25609,
29897,
426,
29881,
17678,
29889,
5030,
2410,
675,
28296,
297,
278,
18618,
310,
22069,
8900,
3023,
3064,
14218,
363,
11266,
16808,
1113,
29747,
373,
8373,
29871,
29896,
21313,
1457,
29918,
14073,
397,
29918,
4102,
10560,
7186,
426,
2490,
29918,
14073,
397,
29918,
4102,
10560,
8307,
29897,
322,
8373,
29871,
29906,
21313,
1457,
29918,
14073,
397,
29918,
7496,
10560,
7186,
426,
2490,
29918,
14073,
397,
29918,
7496,
10560,
467,
29908,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29896,
29889,
29906,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29906,
29955,
29889,
29941,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29896,
29889,
29947,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29946,
29889,
29945,
511,
13,
4706,
500,
13,
4706,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29892,
1473,
29918,
19265,
29892,
18618,
29918,
726,
29897,
13,
13,
4706,
610,
562,
300,
314,
324,
29918,
726,
353,
285,
29908,
440,
29897,
426,
2490,
29918,
1144,
352,
262,
29913,
714,
310,
426,
2490,
29918,
1144,
352,
262,
29918,
7827,
29913,
21313,
2490,
29918,
1144,
352,
262,
29918,
546,
29883,
10560,
29897,
22069,
411,
350,
7239,
29915,
29879,
1405,
29871,
29896,
29900,
4317,
324,
29914,
29931,
892,
14914,
411,
1663,
352,
262,
1213,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29900,
29889,
29955,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29906,
29955,
29889,
29941,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29896,
29889,
29947,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29945,
29889,
29900,
511,
13,
4706,
500,
13,
4706,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29892,
1473,
29918,
19265,
29892,
610,
562,
300,
314,
324,
29918,
726,
29897,
13,
13,
4706,
396,
3462,
2381,
9536,
4315,
292,
13,
4706,
1897,
29918,
978,
353,
16321,
3925,
9536,
4315,
8560,
2629,
29871,
29906,
29946,
6199,
29915,
13,
4706,
758,
29918,
2774,
9536,
353,
1583,
29889,
1457,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
2774,
9536,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
4328,
353,
376,
1217,
4328,
29908,
565,
1400,
29918,
2774,
9536,
5277,
758,
29918,
2774,
9536,
1683,
376,
273,
7910,
29908,
13,
13,
4706,
1897,
29918,
978,
353,
16321,
3925,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
1641,
2183,
470,
284,
13589,
800,
29915,
13,
4706,
1400,
29918,
11251,
29918,
2168,
353,
1583,
29889,
2490,
29918,
16202,
29961,
4914,
29918,
978,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
11251,
29918,
2168,
29918,
546,
29883,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
539,
13,
13,
4706,
1897,
29918,
978,
353,
16321,
3925,
9536,
4315,
470,
2381,
9536,
24809,
358,
8560,
1434,
1641,
2183,
470,
284,
9687,
470,
20501,
4841,
29915,
13,
4706,
1400,
29918,
1181,
397,
353,
1583,
29889,
2490,
29918,
16202,
29961,
4914,
29918,
978,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
1400,
29918,
1181,
397,
29918,
546,
29883,
353,
1583,
29889,
2490,
29918,
16202,
29961,
1311,
3032,
657,
29918,
25376,
482,
29918,
4914,
29918,
978,
29898,
4914,
29918,
978,
29897,
1822,
309,
542,
29961,
29900,
29962,
539,
13,
13,
4706,
1426,
353,
376,
29941,
29889,
3925,
9536,
4315,
292,
29908,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29900,
29889,
29955,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29906,
29947,
29889,
29945,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29900,
29889,
29953,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29953,
29889,
29900,
511,
13,
4706,
500,
13,
4706,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29892,
1473,
29918,
19265,
29892,
1426,
29892,
14288,
29922,
5574,
29897,
13,
13,
4706,
2381,
9536,
29918,
726,
353,
285,
29908,
29894,
29897,
426,
29881,
17678,
29889,
5030,
2410,
675,
28296,
297,
278,
18618,
310,
22069,
1058,
4520,
263,
2381,
9536,
4315,
2629,
29871,
29906,
29946,
1092,
29879,
21313,
1457,
29918,
2774,
9536,
10560,
7186,
426,
2490,
29918,
2774,
9536,
10560,
467,
29908,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29900,
29889,
29955,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29906,
29955,
29889,
29941,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29896,
29889,
29947,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29953,
29889,
29945,
511,
13,
4706,
500,
13,
4706,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29892,
1473,
29918,
19265,
29892,
2381,
9536,
29918,
726,
29897,
13,
13,
4706,
13589,
362,
29918,
726,
353,
285,
29908,
1403,
29897,
426,
2490,
29918,
11251,
29918,
2168,
29913,
21313,
2490,
29918,
11251,
29918,
2168,
29918,
546,
29883,
10560,
29897,
22069,
4520,
470,
284,
13589,
800,
1434,
2534,
1009,
2381,
9536,
4315,
287,
322,
426,
2490,
29918,
1181,
397,
29913,
21313,
2490,
29918,
1181,
397,
29918,
546,
29883,
10560,
29897,
22069,
4520,
470,
284,
9687,
470,
22576,
1434,
2534,
1009,
2381,
9536,
4315,
287,
1213,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29896,
29889,
29906,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29906,
29955,
29889,
29941,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29896,
29889,
29947,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29955,
511,
13,
4706,
500,
13,
4706,
1583,
3032,
1202,
29918,
726,
1884,
29898,
5965,
2395,
29892,
1473,
29918,
19265,
29892,
13589,
362,
29918,
726,
29897,
13,
13,
4706,
396,
6991,
5219,
3800,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29906,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29906,
29955,
29889,
29941,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29900,
29889,
29953,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29947,
29889,
29945,
511,
13,
4706,
500,
13,
4706,
25568,
3313,
353,
1473,
29918,
19265,
29889,
845,
11603,
29889,
1202,
29918,
726,
1884,
29898,
5965,
2395,
1839,
1563,
7464,
1580,
29879,
1839,
3332,
7464,
1580,
29879,
1839,
2103,
7464,
1580,
29879,
1839,
3545,
11287,
13,
4706,
25568,
3313,
29889,
726,
29918,
2557,
29889,
8551,
580,
13,
4706,
25568,
3313,
29889,
726,
29918,
2557,
29889,
1742,
29918,
6312,
353,
5852,
13,
4706,
1583,
3032,
1202,
29918,
3389,
29898,
13,
9651,
25568,
3313,
29892,
29871,
13,
9651,
525,
25021,
1529,
13207,
29901,
13420,
13,
9651,
14288,
29922,
5574,
13,
4706,
1723,
13,
13,
4706,
5694,
29918,
3712,
2105,
292,
353,
1583,
29889,
2490,
29918,
16202,
1839,
29937,
11819,
287,
363,
1238,
369,
322,
29914,
272,
11266,
16808,
1113,
29747,
3023,
3064,
263,
2462,
13359,
309,
542,
29961,
29900,
29962,
13,
4706,
1274,
1082,
29918,
25893,
29918,
16485,
353,
1583,
29889,
2490,
29918,
16202,
1839,
29937,
1274,
1082,
19782,
13359,
309,
542,
29961,
29900,
29962,
13,
4706,
1583,
3032,
1202,
29918,
3389,
29898,
7508,
3313,
29892,
285,
29908,
7185,
2105,
292,
363,
1238,
369,
322,
29914,
272,
11266,
16808,
1113,
29747,
3023,
3064,
263,
2462,
363,
278,
937,
29871,
29946,
29947,
448,
29871,
29955,
29906,
6199,
310,
594,
6737,
471,
10478,
363,
426,
7382,
29918,
3712,
2105,
292,
29913,
16500,
310,
278,
426,
562,
1082,
29918,
25893,
29918,
16485,
29913,
1274,
1082,
19782,
22069,
12990,
1573,
29889,
319,
2381,
9536,
4315,
470,
24809,
358,
471,
8560,
363,
426,
2490,
29918,
2774,
9536,
29913,
16500,
29889,
7849,
310,
1906,
22069,
1058,
3734,
14502,
363,
1238,
369,
322,
11266,
16808,
1113,
29747,
750,
1459,
562,
300,
314,
324,
313,
272,
916,
9418,
29899,
2272,
2267,
293,
29897,
470,
13377,
352,
262,
4113,
1531,
287,
2629,
278,
13622,
697,
29899,
18721,
931,
3785,
19602,
4698,
293,
29922,
5574,
29897,
13,
13,
4706,
396,
3462,
10230,
3983,
13,
4706,
848,
353,
426,
13,
9651,
525,
29907,
5385,
1974,
2396,
6796,
15637,
313,
12742,
29871,
29896,
19123,
376,
29933,
7239,
29915,
29879,
313,
12742,
29871,
29896,
19123,
376,
10840,
9536,
4315,
937,
313,
29906,
29946,
1092,
29879,
5513,
1402,
29871,
13,
9651,
525,
6572,
2396,
518,
1457,
29918,
7382,
29918,
4102,
29892,
758,
29918,
14073,
397,
29918,
4102,
29892,
758,
29918,
2774,
9536,
1402,
13,
9651,
525,
6747,
2396,
518,
2490,
29918,
7382,
29918,
4102,
29892,
1400,
29918,
14073,
397,
29918,
4102,
29892,
1400,
29918,
2774,
9536,
12258,
13,
4706,
3983,
29918,
1272,
353,
10518,
29889,
17271,
29898,
1272,
29922,
1272,
29897,
13,
4706,
1897,
29918,
7039,
353,
6796,
6572,
613,
376,
6747,
3108,
13,
13,
4706,
8727,
29918,
1272,
353,
14477,
1469,
580,
13,
4706,
8727,
29918,
1272,
29889,
20683,
353,
3983,
29918,
1272,
1839,
29907,
5385,
1974,
13359,
25027,
391,
580,
13,
13,
4706,
363,
659,
297,
1897,
29918,
7039,
29901,
13,
9651,
8727,
29918,
1272,
29889,
1202,
29918,
13757,
29898,
791,
29892,
3983,
29918,
1272,
29961,
791,
1822,
25027,
391,
3101,
13,
13,
4706,
396,
3462,
8727,
373,
20343,
13,
4706,
1580,
29879,
353,
426,
13,
9651,
525,
3545,
2396,
315,
29885,
29898,
29929,
29889,
29945,
511,
13,
9651,
525,
2103,
2396,
315,
29885,
29898,
29896,
29945,
511,
13,
9651,
525,
1563,
2396,
315,
29885,
29898,
29900,
29889,
29953,
511,
13,
9651,
525,
3332,
2396,
315,
29885,
29898,
29896,
29900,
29897,
13,
9651,
500,
13,
4706,
8727,
353,
1473,
29918,
19265,
29889,
845,
11603,
29889,
1202,
29918,
15425,
29898,
13,
9651,
1060,
29931,
29918,
3210,
8322,
29918,
11116,
29889,
15032,
29127,
29918,
6154,
17321,
1001,
3352,
29892,
1580,
29879,
1839,
1563,
7464,
5965,
2395,
1839,
3332,
7464,
1580,
29879,
1839,
2103,
7464,
5965,
2395,
1839,
3545,
7464,
8727,
29918,
1272,
467,
15425,
3986,
13,
13,
4706,
6492,
353,
8727,
29889,
26762,
29961,
29900,
29962,
13,
4706,
396,
2178,
22306,
411,
278,
1021,
2927,
13,
4706,
6492,
29889,
29894,
653,
29918,
1609,
29918,
20683,
353,
7700,
13,
13,
4706,
396,
7704,
848,
11073,
322,
731,
4079,
13,
4706,
6492,
29889,
5349,
29918,
1272,
29918,
21134,
353,
5852,
13,
4706,
396,
3789,
5912,
310,
11073,
13,
4706,
848,
29918,
21134,
353,
6492,
29889,
1272,
29918,
21134,
13,
4706,
848,
29918,
21134,
29889,
5657,
29889,
2311,
353,
349,
29873,
29898,
29929,
29897,
13,
13,
4706,
396,
3789,
11955,
310,
1269,
7080,
13,
4706,
11955,
353,
518,
13,
9651,
390,
7210,
3306,
29898,
29896,
29929,
29906,
29892,
29871,
29947,
29900,
29892,
29871,
29955,
29955,
511,
29871,
13,
9651,
390,
7210,
3306,
29898,
29955,
29929,
29892,
29871,
29896,
29906,
29929,
29892,
29871,
29896,
29947,
29929,
29897,
13,
9651,
4514,
632,
13,
13,
4706,
396,
20504,
403,
975,
1897,
2983,
322,
731,
2927,
310,
278,
3652,
322,
788,
11073,
13,
4706,
363,
474,
297,
3464,
29898,
29900,
29892,
7431,
29898,
4914,
29918,
7039,
22164,
13,
9651,
3652,
353,
8727,
29889,
13757,
29961,
29875,
29962,
13,
9651,
5445,
353,
3652,
29889,
4830,
29889,
5589,
13,
13,
9651,
396,
3789,
11955,
310,
3652,
29871,
13,
9651,
5445,
29889,
2929,
333,
580,
13,
9651,
5445,
29889,
1079,
29918,
2780,
29889,
23973,
353,
11955,
29961,
29875,
29962,
308,
13,
13,
4706,
396,
3789,
7472,
304,
29871,
29896,
29900,
29900,
13,
4706,
995,
29918,
8990,
353,
8727,
29889,
1767,
29918,
8990,
13,
4706,
995,
29918,
8990,
29889,
27525,
398,
29918,
7052,
353,
29871,
29896,
29900,
29900,
13,
13,
4706,
396,
1735,
4079,
2159,
310,
1819,
13,
4706,
16892,
29918,
21134,
353,
995,
29918,
8990,
29889,
24667,
29918,
21134,
13,
4706,
16892,
29918,
21134,
29889,
5657,
29889,
2311,
353,
349,
29873,
29898,
29896,
29900,
29897,
13,
13,
4706,
396,
7704,
4655,
6856,
9012,
13,
4706,
995,
29918,
8990,
29889,
21355,
29918,
7720,
9012,
29889,
4830,
29889,
1220,
29889,
2103,
353,
349,
29873,
29898,
29900,
29889,
29945,
29897,
13,
4706,
995,
29918,
8990,
29889,
21355,
29918,
7720,
9012,
29889,
4830,
29889,
1220,
29889,
2780,
29889,
23973,
353,
390,
7210,
3306,
29898,
29906,
29900,
29953,
29892,
29871,
29906,
29900,
29953,
29892,
29871,
29906,
29900,
29953,
29897,
396,
3789,
2927,
304,
16749,
313,
29909,
29953,
29909,
29953,
29909,
29953,
29897,
13,
13,
4706,
995,
29918,
8990,
29889,
4830,
29889,
1220,
29889,
2780,
29889,
23973,
353,
390,
7210,
3306,
29898,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
7773,
20876,
353,
995,
29918,
8990,
29889,
4830,
29889,
1220,
29889,
2780,
3032,
29916,
20876,
13,
4706,
1583,
3032,
842,
29918,
3286,
862,
3819,
29898,
29896,
29900,
29900,
29892,
7773,
20876,
29897,
13,
13,
4706,
396,
7865,
363,
343,
29899,
8990,
313,
3167,
4079,
2159,
29892,
1024,
29892,
322,
916,
2712,
29897,
13,
4706,
7663,
29918,
8990,
353,
8727,
29889,
7320,
29918,
8990,
13,
4706,
396,
3789,
29871,
29896,
29900,
29900,
29995,
1301,
862,
3819,
304,
7663,
9685,
13,
4706,
7663,
29918,
8990,
29889,
4830,
29889,
1220,
29889,
2780,
29889,
23973,
353,
390,
7210,
3306,
29898,
29906,
29900,
29953,
29892,
29871,
29906,
29900,
29953,
29892,
29871,
29906,
29900,
29953,
29897,
13,
4706,
7773,
20876,
353,
7663,
29918,
8990,
29889,
4830,
29889,
1220,
29889,
2780,
3032,
29916,
20876,
13,
4706,
1583,
3032,
842,
29918,
3286,
862,
3819,
29898,
29896,
29900,
29900,
29892,
7773,
20876,
29897,
13,
13,
4706,
396,
1735,
4079,
2159,
310,
7663,
9685,
13,
4706,
7663,
29918,
21134,
353,
7663,
29918,
8990,
29889,
24667,
29918,
21134,
13,
4706,
7663,
29918,
21134,
29889,
5657,
29889,
2311,
353,
349,
29873,
29898,
29896,
29900,
29897,
13,
13,
4706,
396,
3789,
3983,
310,
3611,
13,
4706,
3983,
29918,
3257,
353,
285,
29915,
13080,
545,
29871,
29896,
29901,
15967,
426,
29882,
8189,
29918,
978,
29913,
4721,
29914,
6747,
5169,
1799,
1006,
7316,
29915,
13,
4706,
8727,
29918,
726,
353,
8727,
29889,
15425,
29918,
3257,
29889,
726,
29918,
2557,
13,
4706,
8727,
29918,
726,
29889,
726,
353,
3983,
29918,
3257,
13,
4706,
8727,
29918,
726,
29889,
26956,
29879,
29961,
29900,
1822,
5657,
29889,
2311,
353,
349,
29873,
29898,
29896,
29906,
29897,
13,
4706,
8727,
29918,
726,
29889,
26956,
29879,
29961,
29900,
1822,
5657,
29889,
2780,
29889,
23973,
353,
390,
7210,
3306,
29898,
29947,
29929,
29892,
29871,
29947,
29929,
29892,
29871,
29947,
29929,
29897,
13,
13,
4706,
396,
3789,
15983,
29871,
13,
4706,
8727,
29889,
5349,
29918,
26172,
353,
5852,
13,
4706,
8727,
29889,
26172,
29889,
3283,
353,
1060,
29931,
29918,
1307,
29954,
11794,
29918,
24815,
22122,
29889,
29911,
4590,
13,
4706,
8727,
29889,
26172,
29889,
2856,
29918,
262,
29918,
2680,
353,
7700,
13,
4706,
8727,
29889,
26172,
29889,
5657,
29889,
2311,
353,
349,
29873,
29898,
29929,
29897,
13,
13,
4706,
396,
16913,
24329,
13,
4706,
2224,
353,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
657,
29883,
9970,
3285,
1962,
29918,
1445,
29897,
13,
4706,
4078,
29918,
1445,
29898,
4905,
29918,
1445,
29897,
13,
4706,
544,
29879,
29889,
7620,
29898,
2084,
29897,
2
] |
day23-2.py | AnthonyFloyd/2017-AdventOfCode-Python | 0 | 181430 | <reponame>AnthonyFloyd/2017-AdventOfCode-Python
counter = 0
b = 106700
c = 123700
step = 17
for target in range(b, c + step, step):
flag = False
d = 2
while d != target:
e = target // d
if e < d:
break
if target % d == 0:
flag = True
#print("d: {0:d} e: {1:d} b: {2:d}".format(d, e, target))
break
d += 1
if flag:
counter += 1
else:
print("Prime: {0:d}".format(target))
print("{0:d}".format(counter))
#905 is correct
| [
1,
529,
276,
1112,
420,
29958,
2744,
386,
2592,
29943,
18966,
29914,
29906,
29900,
29896,
29955,
29899,
3253,
794,
2776,
3399,
29899,
11980,
13,
11808,
353,
29871,
29900,
13,
13,
29890,
353,
29871,
29896,
29900,
29953,
29955,
29900,
29900,
13,
29883,
353,
29871,
29896,
29906,
29941,
29955,
29900,
29900,
13,
10568,
353,
29871,
29896,
29955,
13,
13,
1454,
3646,
297,
3464,
29898,
29890,
29892,
274,
718,
4331,
29892,
4331,
1125,
13,
259,
7353,
353,
7700,
13,
259,
270,
353,
29871,
29906,
13,
259,
1550,
270,
2804,
3646,
29901,
13,
418,
321,
353,
3646,
849,
270,
13,
418,
565,
321,
529,
270,
29901,
13,
308,
2867,
13,
418,
565,
3646,
1273,
270,
1275,
29871,
29900,
29901,
13,
308,
7353,
353,
5852,
13,
308,
396,
2158,
703,
29881,
29901,
426,
29900,
29901,
29881,
29913,
321,
29901,
426,
29896,
29901,
29881,
29913,
289,
29901,
426,
29906,
29901,
29881,
29913,
1642,
4830,
29898,
29881,
29892,
321,
29892,
3646,
876,
13,
308,
2867,
13,
418,
270,
4619,
29871,
29896,
13,
259,
565,
7353,
29901,
13,
418,
6795,
4619,
29871,
29896,
13,
259,
1683,
29901,
13,
418,
1596,
703,
4040,
603,
29901,
426,
29900,
29901,
29881,
29913,
1642,
4830,
29898,
5182,
876,
13,
13,
2158,
703,
29912,
29900,
29901,
29881,
29913,
1642,
4830,
29898,
11808,
876,
13,
13,
29937,
29929,
29900,
29945,
338,
1959,
13,
2
] |
leds/jars/model.py | FlamingLotusGirls/Serenity | 2 | 102698 | <filename>leds/jars/model.py<gh_stars>1-10
import json
import numpy as np
class Model(object):
"""
Minimal base class for a model describing the layout of the LEDs in physical space.
"""
def __init__(self, num_leds):
self.numLEDs = num_leds
class JarModel(Model):
"""
The model has the following members, derived from the 'points.json' file
(or whatever file you decide to load):
- rawPoints. Array of raw positions, unscaled.
- nodes. Array of scaled positions - coordinates have been scaled to [0,1]
"""
def __init__(self, jar_id, points_filename='jars.json'):
# pull raw positions from JSON
json_data = json.load(open(points_filename))
jar_data = json_data[str(jar_id)]
self.rawPoints = self._nodesFromJSON(jar_data)
# Scaled Nodes: It's easier to work with coordinates in the range
# [0, 1], so find the bounding box and scale the coordinates
# accordingly
# The minimum and maximum are 3-vectors in the same coordinate space as self.nodes.
self.minAABB = [ min(v[i] for v in self.rawPoints) for i in range(3) ]
self.maxAABB = [ max(v[i] for v in self.rawPoints) for i in range(3) ]
self.nodes = np.array(
[
[
(v[i] - self.minAABB[i]) / (self.maxAABB[i] - self.minAABB[i])
for i in range(3)
]
for v in self.rawPoints
]
)
# Init base model
Model.__init__(self, len(self.rawPoints))
def _nodesFromJSON(self, jar_data):
points = []
for val in jar_data:
points.append(val['point'])
return np.array(points)
| [
1,
529,
9507,
29958,
839,
29879,
29914,
29926,
1503,
29914,
4299,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
4390,
13,
5215,
12655,
408,
7442,
13,
13,
1990,
8125,
29898,
3318,
1125,
13,
1678,
9995,
13,
1678,
3080,
3039,
2967,
770,
363,
263,
1904,
20766,
278,
5912,
310,
278,
25023,
29879,
297,
9128,
2913,
29889,
29871,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
954,
29918,
839,
29879,
1125,
13,
4706,
1583,
29889,
1949,
20566,
29879,
353,
954,
29918,
839,
29879,
13,
13,
13,
1990,
15864,
3195,
29898,
3195,
1125,
13,
1678,
9995,
13,
1678,
450,
1904,
756,
278,
1494,
5144,
29892,
10723,
515,
278,
525,
9748,
29889,
3126,
29915,
934,
13,
1678,
313,
272,
6514,
934,
366,
11097,
304,
2254,
1125,
13,
1678,
448,
10650,
20325,
29889,
4398,
310,
10650,
11909,
29892,
443,
7052,
29881,
29889,
13,
1678,
448,
7573,
29889,
4398,
310,
6287,
29881,
11909,
448,
10350,
505,
1063,
6287,
29881,
304,
518,
29900,
29892,
29896,
29962,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
14631,
29918,
333,
29892,
3291,
29918,
9507,
2433,
29926,
1503,
29889,
3126,
29374,
13,
13,
4706,
396,
8206,
10650,
11909,
515,
4663,
13,
4706,
4390,
29918,
1272,
353,
4390,
29889,
1359,
29898,
3150,
29898,
9748,
29918,
9507,
876,
13,
308,
13,
4706,
14631,
29918,
1272,
353,
4390,
29918,
1272,
29961,
710,
29898,
4758,
29918,
333,
4638,
13,
632,
13,
4706,
1583,
29889,
1610,
20325,
353,
1583,
3032,
18010,
4591,
7249,
29898,
4758,
29918,
1272,
29897,
13,
13,
4706,
396,
2522,
7943,
405,
2631,
29901,
739,
29915,
29879,
6775,
304,
664,
411,
10350,
297,
278,
3464,
13,
4706,
396,
518,
29900,
29892,
29871,
29896,
1402,
577,
1284,
278,
3216,
292,
3800,
322,
6287,
278,
10350,
13,
4706,
396,
16205,
13,
13,
4706,
396,
450,
9212,
322,
7472,
526,
29871,
29941,
29899,
345,
14359,
297,
278,
1021,
14821,
2913,
408,
1583,
29889,
18010,
29889,
13,
4706,
1583,
29889,
1195,
29909,
2882,
29933,
353,
518,
1375,
29898,
29894,
29961,
29875,
29962,
363,
325,
297,
1583,
29889,
1610,
20325,
29897,
363,
474,
297,
3464,
29898,
29941,
29897,
4514,
13,
4706,
1583,
29889,
3317,
29909,
2882,
29933,
353,
518,
4236,
29898,
29894,
29961,
29875,
29962,
363,
325,
297,
1583,
29889,
1610,
20325,
29897,
363,
474,
297,
3464,
29898,
29941,
29897,
4514,
13,
13,
4706,
1583,
29889,
18010,
353,
7442,
29889,
2378,
29898,
13,
9651,
518,
13,
18884,
518,
29871,
13,
462,
1678,
313,
29894,
29961,
29875,
29962,
448,
1583,
29889,
1195,
29909,
2882,
29933,
29961,
29875,
2314,
847,
313,
1311,
29889,
3317,
29909,
2882,
29933,
29961,
29875,
29962,
448,
1583,
29889,
1195,
29909,
2882,
29933,
29961,
29875,
2314,
13,
462,
1678,
363,
474,
297,
3464,
29898,
29941,
29897,
13,
18884,
4514,
29871,
13,
18884,
363,
325,
297,
1583,
29889,
1610,
20325,
13,
9651,
4514,
13,
4706,
1723,
13,
13,
4706,
396,
10886,
2967,
1904,
13,
4706,
8125,
17255,
2344,
12035,
1311,
29892,
7431,
29898,
1311,
29889,
1610,
20325,
876,
13,
13,
1678,
822,
903,
18010,
4591,
7249,
29898,
1311,
29892,
14631,
29918,
1272,
1125,
13,
4706,
3291,
353,
5159,
13,
4706,
363,
659,
297,
14631,
29918,
1272,
29901,
13,
9651,
3291,
29889,
4397,
29898,
791,
1839,
3149,
11287,
13,
4706,
736,
7442,
29889,
2378,
29898,
9748,
29897,
13,
13,
2
] |
controllers/task_handler.py | MuhammadWaleedUsman/PythonTornadoDockerTraefikMySql | 0 | 35235 | from .db_handler import cursor
from tornado import concurrent
import tornado.web
executor = concurrent.futures.ThreadPoolExecutor(8)
def start_task(arg):
print("The Task has started") # Async task
return True
def stop_task(arg):
print("The Task has stopped") # Async task
return True
class HandlerStart(tornado.web.RequestHandler):
def post(self, username):
cursor.execute("SELECT * FROM users")
users = cursor.fetchall()
user_names = []
if users:
keys = ("id", "name", "email")
list_of_users = [dict(zip(keys, values)) for values in users]
for user in list_of_users:
user_names.append(user['name'])
if username in set(user_names):
flag = True
else:
flag = False
else:
flag = False
if flag:
executor.submit(start_task, username)
response = "started"
else:
response = "User Doesn't exist"
self.write('request accepted |' + str(username) + ' | ' + str(response))
class HandlerStop(tornado.web.RequestHandler):
def post(self, username):
cursor.execute("SELECT * FROM users")
users = cursor.fetchall()
user_names = []
if users:
keys = ("id", "name", "email")
list_of_users = [dict(zip(keys, values)) for values in users]
for user in list_of_users:
user_names.append(user['name'])
if username in set(user_names):
flag = True
else:
flag = False
else:
flag = False
if flag:
executor.submit(stop_task, username)
response = "stopped"
else:
response = "User Doesn't exist"
self.write('request accepted |' + str(username) + ' | ' + str(response))
| [
1,
515,
869,
2585,
29918,
13789,
1053,
10677,
13,
3166,
10146,
912,
1053,
21984,
13,
5215,
10146,
912,
29889,
2676,
13,
4258,
3406,
353,
21984,
29889,
29888,
329,
1973,
29889,
23574,
13366,
29898,
29947,
29897,
13,
13,
13,
1753,
1369,
29918,
7662,
29898,
1191,
1125,
13,
1678,
1596,
703,
1576,
9330,
756,
4687,
1159,
396,
20688,
3414,
13,
1678,
736,
5852,
13,
13,
13,
1753,
5040,
29918,
7662,
29898,
1191,
1125,
13,
1678,
1596,
703,
1576,
9330,
756,
11084,
1159,
29871,
396,
20688,
3414,
13,
1678,
736,
5852,
13,
13,
13,
1990,
5166,
1358,
4763,
29898,
29873,
1398,
912,
29889,
2676,
29889,
3089,
4598,
1125,
13,
13,
1678,
822,
1400,
29898,
1311,
29892,
8952,
1125,
13,
4706,
10677,
29889,
7978,
703,
6404,
334,
3895,
4160,
1159,
13,
4706,
4160,
353,
10677,
29889,
9155,
497,
580,
13,
4706,
1404,
29918,
7039,
353,
5159,
13,
4706,
565,
4160,
29901,
13,
9651,
6611,
353,
4852,
333,
613,
376,
978,
613,
376,
5269,
1159,
13,
9651,
1051,
29918,
974,
29918,
7193,
353,
518,
8977,
29898,
7554,
29898,
8149,
29892,
1819,
876,
363,
1819,
297,
4160,
29962,
13,
9651,
363,
1404,
297,
1051,
29918,
974,
29918,
7193,
29901,
13,
18884,
1404,
29918,
7039,
29889,
4397,
29898,
1792,
1839,
978,
11287,
13,
9651,
565,
8952,
297,
731,
29898,
1792,
29918,
7039,
1125,
13,
18884,
7353,
353,
5852,
13,
9651,
1683,
29901,
13,
18884,
7353,
353,
7700,
13,
4706,
1683,
29901,
13,
9651,
7353,
353,
7700,
13,
4706,
565,
7353,
29901,
13,
9651,
2279,
3406,
29889,
7892,
29898,
2962,
29918,
7662,
29892,
8952,
29897,
13,
9651,
2933,
353,
376,
2962,
287,
29908,
13,
4706,
1683,
29901,
13,
9651,
2933,
353,
376,
2659,
5538,
29876,
29915,
29873,
1863,
29908,
13,
4706,
1583,
29889,
3539,
877,
3827,
9259,
891,
29915,
718,
851,
29898,
6786,
29897,
718,
525,
891,
525,
718,
851,
29898,
5327,
876,
13,
13,
13,
1990,
5166,
1358,
16329,
29898,
29873,
1398,
912,
29889,
2676,
29889,
3089,
4598,
1125,
13,
13,
1678,
822,
1400,
29898,
1311,
29892,
8952,
1125,
13,
4706,
10677,
29889,
7978,
703,
6404,
334,
3895,
4160,
1159,
13,
4706,
4160,
353,
10677,
29889,
9155,
497,
580,
13,
4706,
1404,
29918,
7039,
353,
5159,
13,
4706,
565,
4160,
29901,
13,
9651,
6611,
353,
4852,
333,
613,
376,
978,
613,
376,
5269,
1159,
13,
9651,
1051,
29918,
974,
29918,
7193,
353,
518,
8977,
29898,
7554,
29898,
8149,
29892,
1819,
876,
363,
1819,
297,
4160,
29962,
13,
9651,
363,
1404,
297,
1051,
29918,
974,
29918,
7193,
29901,
13,
18884,
1404,
29918,
7039,
29889,
4397,
29898,
1792,
1839,
978,
11287,
13,
9651,
565,
8952,
297,
731,
29898,
1792,
29918,
7039,
1125,
13,
18884,
7353,
353,
5852,
13,
9651,
1683,
29901,
13,
18884,
7353,
353,
7700,
13,
4706,
1683,
29901,
13,
9651,
7353,
353,
7700,
13,
4706,
565,
7353,
29901,
13,
9651,
2279,
3406,
29889,
7892,
29898,
9847,
29918,
7662,
29892,
8952,
29897,
13,
9651,
2933,
353,
376,
7864,
2986,
29908,
13,
4706,
1683,
29901,
13,
9651,
2933,
353,
376,
2659,
5538,
29876,
29915,
29873,
1863,
29908,
13,
4706,
1583,
29889,
3539,
877,
3827,
9259,
891,
29915,
718,
851,
29898,
6786,
29897,
718,
525,
891,
525,
718,
851,
29898,
5327,
876,
13,
2
] |
feed.py | rlexmann/CatFeeder | 0 | 42210 | import os
import sys
import fcntl
fh=0
def run_once():
global fh
fh=open(os.path.realpath(__file__),'r')
try:
fcntl.flock(fh,fcntl.LOCK_EX|fcntl.LOCK_NB)
except:
os._exit(0)
run_once()
| [
1,
1053,
2897,
13,
5215,
10876,
13,
5215,
285,
20047,
29880,
13,
29888,
29882,
29922,
29900,
13,
1753,
1065,
29918,
10646,
7295,
13,
1678,
5534,
285,
29882,
13,
1678,
285,
29882,
29922,
3150,
29898,
359,
29889,
2084,
29889,
6370,
2084,
22168,
1445,
1649,
511,
29915,
29878,
1495,
13,
1678,
1018,
29901,
13,
4706,
285,
20047,
29880,
29889,
29888,
908,
29898,
29888,
29882,
29892,
13801,
593,
29880,
29889,
21339,
29918,
5746,
29989,
13801,
593,
29880,
29889,
21339,
29918,
23189,
29897,
13,
1678,
5174,
29901,
13,
4706,
2897,
3032,
13322,
29898,
29900,
29897,
13,
13,
3389,
29918,
10646,
580,
13,
2
] |
aurorae/cnab240/v10_7/types.py | vintasoftware/aurorae | 9 | 126975 | <filename>aurorae/cnab240/v10_7/types.py<gh_stars>1-10
# pylint: disable=unsubscriptable-object
from datetime import datetime
from decimal import Decimal
from enum import Enum, IntEnum
from typing import ClassVar, Union
from pydantic import BaseModel, conint, constr, validator
STR_FILL_VALUE = " "
INT_FILL_VALUE = "0"
REGISTRATION_TYPE_MAP = {
"ISENTO/NAO INFORMADO": 0,
"CPF": 1,
"CGC/CNPJ": 2,
"PIS/PASEP": 3,
"OUTROS": 9,
}
# fmt: off
VALID_CHARACTERS = (
"abcdefghijklmnopqrstuvxywz"
"ABCDEFGHIJKLMNOPQRSTUVXYWZ"
"0123456789"
". "
)
# fmt: on
class CNABComposedField(BaseModel):
def get_field_names(self):
return self.__fields__.keys()
def get_fields(self):
fields = []
for field_name in self.get_field_names():
field = getattr(self, field_name)
fields.append(field)
return fields
def as_fixed_width(self):
formatted_value = ""
for field in self.get_fields():
formatted_value = f"{formatted_value}{field.as_fixed_width()}"
assert len(formatted_value) == self._max_str_length
return formatted_value
class CNABString(BaseModel):
@property
def value(self):
value = self.__root__
if isinstance(value, (CNABString, CNABComposedField)):
value = value.as_fixed_width()
return value
@validator("__root__", pre=True, check_fields=False, allow_reuse=True)
def validate_string(cls, value): # noqa
if not isinstance(value, (CNABString, CNABComposedField)):
assert all(c in VALID_CHARACTERS for c in value), "Invalid characters"
return value
def as_fixed_width(self):
return self.value.ljust(self._max_str_length, STR_FILL_VALUE).upper()
class CNABEnum(BaseModel):
@property
def value(self):
return self.__root__.value
def as_fixed_width(self):
return str(self.value)
class CNABEnumFillInt(BaseModel):
def as_fixed_width(self):
return str(self.__root__.value).rjust(self._max_str_length, INT_FILL_VALUE)
class CNABEnumAlphaFill(BaseModel):
def as_fixed_width(self):
return str(self.__root__.value).ljust(self._max_str_length, STR_FILL_VALUE)
class PositiveInt(BaseModel):
@property
def value(self):
return self.__root__
@validator("__root__", pre=True, check_fields=False, allow_reuse=True)
def validate_int(cls, value): # noqa
"""Prevent coersion from float/decimal to int, allow coersion from string"""
if isinstance(value, (Decimal, float)):
raise ValueError(
"value cannot be a float or Decimal, should be an integer instead"
)
return value
class CNABPositiveInt(PositiveInt):
def as_fixed_width(self):
return str(self.__root__).rjust(self._max_str_length, INT_FILL_VALUE)
class CNABAlphaPositiveInt(PositiveInt):
def as_fixed_width(self):
return str(self.__root__).ljust(self._max_str_length, STR_FILL_VALUE)
class CNABDate(BaseModel):
_min_str_length: ClassVar[int] = 8
_max_str_length: ClassVar[int] = 8
__root__: constr(min_length=_min_str_length, max_length=_max_str_length)
@validator("__root__", allow_reuse=True)
def validate_date(cls, value): # noqa
try:
datetime.strptime(value, "%d%m%Y")
except ValueError:
raise ValueError("{value} is not valid")
else:
return value
def as_fixed_width(self):
return self.__root__
class CNABTime(BaseModel):
_min_str_length: ClassVar[int] = 6
_max_str_length: ClassVar[int] = 6
__root__: constr(min_length=_min_str_length, max_length=_max_str_length)
@validator("__root__", allow_reuse=True)
def validate_time(cls, value): # noqa
try:
datetime.strptime(value, "%H%M%S")
except ValueError:
raise ValueError("{value} is not valid")
else:
return value
def as_fixed_width(self):
return self.__root__
class BankCode(CNABPositiveInt):
_max_str_length: ClassVar[int] = 3
_min_int: ClassVar[int] = 1
_max_int: ClassVar[int] = 999
__root__: conint(ge=_min_int, le=_max_int)
class ServiceBatchEnum(str, Enum):
file_header = "0000"
file_trailer = "9999"
class ServiceBatch(CNABEnum):
__root__: ServiceBatchEnum
class SequentialServiceBatch(CNABPositiveInt):
_max_str_length: ClassVar[int] = 4
_min_int: ClassVar[int] = 1
_max_int: ClassVar[int] = 9998
__root__: conint(ge=_min_int, le=_max_int)
class EntryTypeEnum(IntEnum):
file_header = 0
batch_header = 1
batch_initial_records = 2
details = 3
batch_final_records = 4
batch_trailer = 5
file_trailer = 9
class EntryType(CNABEnum):
__root__: EntryTypeEnum
class RegistrationTypeEnum(Enum):
exempt = "ISENTO/NAO INFORMADO"
cpf = "CPF"
cnpj = "CGC/CNPJ"
pis = "PIS/PASEP"
others = "OUTROS"
class CNABRegistrationTypeEnum(IntEnum):
exempt = 0
cpf = 1
cnpj = 2
pis = 3
others = 9
class RegistrationType(CNABEnum):
__root__: RegistrationTypeEnum
class CNABRegistrationType(CNABEnum):
__root__: CNABRegistrationTypeEnum
@validator("__root__", pre=True, allow_reuse=True)
def validate_registration_type(cls, root_value): # noqa
if isinstance(root_value, RegistrationTypeEnum):
return REGISTRATION_TYPE_MAP[root_value.value]
return root_value
class RegistrationNumber(CNABPositiveInt):
_max_str_length: ClassVar[int] = 14
_min_int: ClassVar[int] = 1
_max_int: ClassVar[int] = 99999999999999
__root__: conint(ge=_min_int, le=_max_int)
class BankConventionCode(CNABAlphaPositiveInt):
_max_str_length: ClassVar[int] = 20
_min_int: ClassVar[int] = 1
_max_int: ClassVar[int] = 99999999999999999999
__root__: conint(ge=_min_int, le=_max_int)
class BankAgencyNumber(CNABPositiveInt):
_max_str_length: ClassVar[int] = 5
_min_int: ClassVar[int] = 1
_max_int: ClassVar[int] = 99999
__root__: conint(ge=_min_int, le=_max_int)
class BankAccountNumber(CNABPositiveInt):
_max_str_length: ClassVar[int] = 12
_min_int: ClassVar[int] = 1
_max_int: ClassVar[int] = 999999999999
__root__: conint(ge=_min_int, le=_max_int)
class BankDigitCheck(CNABAlphaPositiveInt):
_max_str_length: ClassVar[int] = 1
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 9
__root__: constr(max_length=_max_str_length)
@validator("__root__")
def valid_int(cls, v): # noqa
try:
v_as_int = int(v)
except ValueError:
return ""
if v_as_int > cls._max_int:
raise ValueError(f"{v_as_int} is greater than the max value {cls._max_int}")
if v_as_int < cls._min_int:
raise ValueError(f"{v_as_int} is smaller than the min value {cls._min_int}")
return v
class CompanyName(CNABString):
_max_str_length: ClassVar[int] = 30
__root__: constr(max_length=_max_str_length)
class BankName(CNABString):
_max_str_length: ClassVar[int] = 30
__root__: constr(max_length=_max_str_length)
class RecipientName(CNABString):
_max_str_length: ClassVar[int] = 30
__root__: constr(max_length=_max_str_length)
class RemmitanceReturnCodeEnum(IntEnum):
shipping = 1
returning = 2
class RemmitanceReturnCode(CNABEnum):
__root__: RemmitanceReturnCodeEnum
class FileSequentialNumber(CNABPositiveInt):
_max_str_length: ClassVar[int] = 6
_min_int: ClassVar[int] = 1
_max_int: ClassVar[int] = 999999
__root__: conint(ge=_min_int, le=_max_int)
class FileRecordDensityEnum(str, Enum):
d1600 = "1600"
d6250 = "6250"
class FileRecordDensity(CNABEnumFillInt):
_max_str_length: ClassVar[int] = 5
__root__: FileRecordDensityEnum
class BankReservedField(CNABString):
_max_str_length: ClassVar[int] = 20
__root__: constr(max_length=_max_str_length)
class CompanyReservedField(CNABString):
_max_str_length: ClassVar[int] = 20
__root__: constr(max_length=_max_str_length)
class FEBRABAN1(CNABString):
_max_str_length = 1
__root__: constr(max_length=_max_str_length)
class FEBRABAN6(CNABString):
_max_str_length = 6
__root__: constr(max_length=_max_str_length)
class FEBRABAN3(CNABString):
_max_str_length: ClassVar[int] = 3
__root__: constr(max_length=_max_str_length)
class FEBRABAN9(CNABString):
_max_str_length: ClassVar[int] = 9
__root__: constr(max_length=_max_str_length)
class FEBRABAN10(CNABString):
_max_str_length: ClassVar[int] = 10
__root__: constr(max_length=_max_str_length)
class FEBRABAN165(CNABString):
_max_str_length = 165
__root__: constr(max_length=_max_str_length)
class FEBRABAN205(CNABString):
_max_str_length = 205
__root__: constr(max_length=_max_str_length)
class FEBRABAN29(CNABString):
_max_str_length: ClassVar[int] = 29
__root__: constr(max_length=_max_str_length)
class SmallAddressCityName(CNABString):
_max_str_length = 15
__root__: constr(max_length=_max_str_length)
class AddressDistrict(CNABString):
_max_str_length = 15
__root__: constr(max_length=_max_str_length)
class RebateAmount(CNABPositiveInt):
_max_str_length: ClassVar[int] = 15
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999999999999999
__root__: conint(ge=_min_int, le=_max_int)
class DiscountAmount(CNABPositiveInt):
_max_str_length: ClassVar[int] = 15
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999999999999999
__root__: conint(ge=_min_int, le=_max_int)
class ArrearsAmount(CNABPositiveInt):
_max_str_length: ClassVar[int] = 15
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999999999999999
__root__: conint(ge=_min_int, le=_max_int)
class FineAmount(CNABPositiveInt):
_max_str_length: ClassVar[int] = 15
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999999999999999
__root__: conint(ge=_min_int, le=_max_int)
class InformationRegistrationType(CNABString):
_max_str_length: ClassVar[int] = 15
__root__: constr(max_length=_max_str_length)
class OperationTypeEnum(str, Enum):
credit_entry = "C"
debit_entry = "D"
conciliation_statement = "E"
cash_management_statement = "G"
information_securities_secured_from_bank = "I"
shipping_file = "R"
return_file = "T"
class OperationType(CNABEnum):
__root__: OperationTypeEnum
class ServiceTypeEnum(str, Enum):
charge = "01"
electronic_payment_slip = "03"
bank_reconciliation = "04"
debts = "05"
check_custody = "06"
cash_management = "07"
query_margin_nformation = "08"
registration_of_consignment_rRetention = "09"
dividend_payment = "10"
consignment_maintenance = "11"
consignment_of_installments = "12"
consignment_disallowance_inss = "13"
inquiry_taxes_payable = "14"
supplier_payment = "20"
payment_of_bills_taxes = "22"
interoperability_payment_institution_accounts = "23"
buy = "25"
buy_rotary = "26"
payer_claim = "29"
salary_payment = "30"
payment_fees = "32"
payment_stipend = "33"
payment_prebends = "34"
vendor = "40"
forward_seller = "41"
payment_of_insured = "50"
payment_of_transit_traveler_expenses = "60"
authorized_payment = "70"
accredited_payment = "75"
remuneration_payment = "77"
payment_of_authorized_representatives = "80"
payment_benefits = "90"
miscellaneous_payments = "98"
class ServiceType(CNABEnum):
__root__: ServiceTypeEnum
class ReleaseMethodEnum(str, Enum):
credit_in_checking_account = "01"
administrative_payment_check = "02"
doc_ted = "03"
card_salary = "04"
credit_in_account_savings = "05"
op_disposition = "10"
payment_of_accounts_and_tributos_with_bar_code = "11"
tax_DARF_normal = "16"
tax_GPS = "17"
tax_DARF_simple = "18"
tax_IPTU_city = "19"
payment_with_authentication = "20"
tax_DARJ = "21"
tax_GARE_SP_ICMS = "22"
tax_GARE_SP_DR = "23"
tax_GARE_SP_ITCMD = "24"
tax_IPVA = "25"
tax_licenciamento = "26"
tax_DPVAT = "27"
settlement_of_securities_of_the_bank = "30"
payment_of_securities_from_other_banks = "31"
current_account_statement = "40"
TED_other_entitlement = "41"
TED_same_ownership = "43"
TED_transfer_from_investment_account = "44"
PIX = "45"
PIX_qr_code = "47"
debit_checking_account = "50"
statement_for_cash_management = "70"
deposit_judicial_in_account_current = "71"
deposit_judicial_in_savings = "72"
statement_of_investment_account = "73"
payment_of_municipal_taxes_ISS_own_bank = "80"
payment_of_municipal_taxes_ISS_other_bank = "81"
class ReleaseMethod(CNABEnum):
__root__: ReleaseMethodEnum
class BatchLayoutVersionNumberEnum(str, Enum):
v0_46 = "046"
class BatchLayoutVersionNumber(CNABEnum):
__root__: BatchLayoutVersionNumberEnum
class FileLayoutVersionNumberEnum(str, Enum):
v10_3 = "103"
class FileLayoutVersionNumber(CNABEnum):
__root__: FileLayoutVersionNumberEnum
class Message(CNABString):
_max_str_length = 40
__root__: constr(max_length=_max_str_length)
class AddressName(CNABString):
_max_str_length = 30
__root__: constr(max_length=_max_str_length)
class AddressNumber(CNABPositiveInt):
_max_str_length = 5
_min_int: ClassVar[int] = 1
_max_int: ClassVar[int] = 99999
__root__: conint(ge=_min_int, le=_max_int)
class DetailRecordSegmentTypeEnum(str, Enum):
segment_a = "A"
segment_b = "B"
segment_c = "C"
class DetailRecordSegmentType(CNABEnum):
__root__: DetailRecordSegmentTypeEnum
class PersonName(CNABString):
_max_str_length: ClassVar[int] = 30
__root__: constr(max_length=_max_str_length)
class RecordSequentialNumber(CNABPositiveInt):
_max_str_length: ClassVar[int] = 5
_min_int: ClassVar[int] = 1
_max_int: ClassVar[int] = 99999
__root__: conint(ge=_min_int, le=_max_int)
class InitiationFormEnum(str, Enum):
pix_phone = "01"
pix_email = "02"
pix_cpf_cnpj = "03"
random_key = "04"
bank_info = "05"
class InitiationForm(CNABEnumAlphaFill):
_max_str_length: ClassVar[int] = 3
__root__: InitiationFormEnum
class SIAPE6(CNABPositiveInt):
_max_str_length: ClassVar[int] = 6
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999999
__root__: conint(ge=_min_int, le=_max_int)
class ISPBCode(CNABPositiveInt):
_max_str_length: ClassVar[int] = 8
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 99999999
__root__: conint(ge=_min_int, le=_max_int)
class AddressDetails(CNABString):
_max_str_length = 15
__root__: constr(max_length=_max_str_length)
class AddressCityName(CNABString):
_max_str_length = 20
__root__: constr(max_length=_max_str_length)
class AddressCEP(CNABPositiveInt):
_max_str_length = 5
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 99999
__root__: conint(ge=_min_int, le=_max_int)
class AddressCEPComplement(CNABPositiveInt):
_max_str_length = 3
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999
__root__: conint(ge=_min_int, le=_max_int)
class AddressState(CNABString):
_max_str_length = 2
__root__: constr(max_length=_max_str_length)
class PaymentMethodEnum(str, Enum):
direct_debit = "01"
loan_financing_debit = "02"
credit_card_debit = "03"
class PaymentMethod(CNABEnum):
__root__: PaymentMethodEnum
class MovimentationTypeEnum(IntEnum):
inclusion = 0
consultation = 1
suspension = 2
chargeback = 3
reactivation = 4
update = 5
liquidation = 7
exclusion = 9
class MovimentationType(CNABEnum):
__root__: MovimentationTypeEnum
class MovimentationInstructionCodeEnum(str, Enum):
inclusion_of_cleared_detail_record = "00"
inclusion_of_blocked_detail_record = "09"
change_payment_from_cleared_to_blocked = "10"
change_blocked_from_payment_to_cleared = "11"
change_in_security_value = "17"
payment_date_change = "19"
direct_payment_to_supplier = "23"
wallet_maintenance_do_not_pay = "25"
wallet_withdrawal_do_not_pay = "27"
reversal_by_return_from_central_clearing_house = "33"
payer_claim = "40"
delete_previously_added_detail_record = "99"
class MovimentationInstructionCode(CNABEnum):
__root__: MovimentationInstructionCodeEnum
class CentralClearingHouseCodeEnum(str, Enum):
TED = "018"
DOC = "700"
# Used when it's necessary to send TED using the ISPB code
# of the Recipient Financial Institution. In this case, it's mandatory to fill
# the field "ISPB Code" - field 26.3B,
# of the Payment Segment, as described in Note P015.
TED_ISPB = "988"
PIX = "009"
class CentralClearingHouseCode(CNABEnum):
__root__: CentralClearingHouseCodeEnum
class CurrencyEnum(str, Enum):
national_treasury_bonus_tr = "BTN"
real = "BRL"
us_dollar = "USD"
portuguese_shield = "PTE"
french_franc = "FRF"
swiss_franc = "CHF"
japanese_yen = "JPY"
general_price_index = "IGP"
general_market_price_index = "IGM"
pound_sterling = "GBP"
italian_lira = "ITL"
german_mark = "DEM"
daily_referential_rate = "TRD"
standard_capital_unit = "UPC"
standard_financing_unit = "UPF"
tax_reference_unit = "UFR"
european_currenc = "XEU"
class Currency(CNABEnum):
__root__: CurrencyEnum
class CurrencyAmount(CNABPositiveInt):
_max_str_length = 15
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999999999999999
__root__: conint(ge=_min_int, le=_max_int)
class PaymentAmount(CNABPositiveInt):
_max_str_length: ClassVar[int] = 15
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999999999999999
__root__: conint(ge=_min_int, le=_max_int)
class BankOrCompanyIssuedDocNumber(CNABString):
_max_str_length: ClassVar[int] = 20
__root__: constr(max_length=_max_str_length)
class PaymentEffectiveAmount(CNABPositiveInt):
_max_str_length: ClassVar[int] = 15
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999999999999999
__root__: conint(ge=_min_int, le=_max_int)
class ServiceTypeComplementEnum(str, Enum):
account_credit = "01"
payment_of_rent_condominium = "02"
payment_of_duplicate_securities = "03"
payment_of_dividends = "04"
payment_of_school_tuition = "05"
salary_payment = "06"
payment_to_suppliers = "07"
transactions_of_foreign_exchange_funds_stock_exchange = "08"
transfer_of_collection_payment_of_taxes = "09"
international_transfer_in_real = "10"
doc_for_savings = "11"
doc_for_judicial_deposit = "12"
others = "13"
stipend_payment = "16"
remuneration_to_the_member = "17"
pagamento_of_fees = "18"
payment_of_prebend = "19"
class ServiceTypeComplement(CNABEnum):
__root__: ServiceTypeComplementEnum
class TEDFinalityCode(CNABAlphaPositiveInt):
_max_str_length: ClassVar[int] = 5
__root__: constr(max_length=_max_str_length)
class PaymentFinalityComplement(CNABString):
_max_str_length: ClassVar[int] = 2
__root__: constr(max_length=_max_str_length)
class NotifyRecipientEnum(str, Enum):
no_notification = 0
notify_only_sender = 2
notify_only_recipient = 5
notify_sender_and_recipient = 6
notify_recipient_and_2_copies_to_sender = 7
class NotifyRecipient(CNABEnum):
__root__: NotifyRecipientEnum
class ReturnOccurrenceCodes(CNABString):
_max_str_length = 10
__root__: constr(max_length=_max_str_length)
class RecordsNumber(CNABPositiveInt):
_max_str_length = 6
_min_int = 0
_max_int = 999999
__root__: conint(ge=_min_int, le=_max_int)
class ValuesSum(CNABPositiveInt):
_max_str_length: ClassVar[int] = 18
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999999999999999999
__root__: conint(ge=_min_int, le=_max_int)
class CurrencyAmountSum(CNABPositiveInt):
_max_str_length: ClassVar[int] = 18
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999999999999999999
__root__: conint(ge=_min_int, le=_max_int)
class DebitNotificationNumber(CNABPositiveInt):
_max_str_length: ClassVar[int] = 6
_min_int: ClassVar[int] = 0
_max_int: ClassVar[int] = 999999
__root__: conint(ge=_min_int, le=_max_int)
class ComposedAddressInformation(CNABComposedField):
_max_str_length: ClassVar[int] = 60
address_number: AddressNumber
address_complement: AddressDetails
address_district: AddressDistrict
address_city: SmallAddressCityName
address_cep: AddressCEP
address_cep_complement: AddressCEPComplement
address_state: AddressState
class ComposedPaymentInformation(CNABComposedField):
_max_str_length: ClassVar[int] = 99
payment_date: CNABDate
payment_amount: PaymentAmount
rebate_amount: RebateAmount
discount_amount: DiscountAmount
arrears_amount: ArrearsAmount
fine_amount: FineAmount
registration_type: InformationRegistrationType
notify_recipient: NotifyRecipient
class PIXTXID(CNABString):
_max_str_length: ClassVar[int] = 30
__root__: constr(max_length=_max_str_length)
class PIXKey(CNABString):
_max_str_length: ClassVar[int] = 60
__root__: constr(max_length=_max_str_length)
class Information10(CNABString):
_max_str_length: ClassVar[int] = 35
__root__: Union[AddressName, PIXTXID]
class Information11(CNABString):
_max_str_length: ClassVar[int] = 60
__root__: Union[PIXKey, Message, ComposedAddressInformation]
class Information12(CNABString):
_max_str_length: ClassVar[int] = 99
__root__: Union[PIXKey, ComposedPaymentInformation]
| [
1,
529,
9507,
29958,
6698,
2207,
29872,
29914,
29883,
7183,
29906,
29946,
29900,
29914,
29894,
29896,
29900,
29918,
29955,
29914,
8768,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
282,
2904,
524,
29901,
11262,
29922,
348,
1491,
2154,
519,
29899,
3318,
13,
3166,
12865,
1053,
12865,
13,
3166,
13677,
1053,
3826,
3039,
13,
3166,
14115,
1053,
1174,
398,
29892,
3159,
16854,
13,
3166,
19229,
1053,
4134,
9037,
29892,
7761,
13,
13,
3166,
282,
2941,
7716,
1053,
7399,
3195,
29892,
378,
524,
29892,
378,
710,
29892,
2854,
1061,
13,
13,
13,
10810,
29918,
3738,
2208,
29918,
19143,
353,
376,
376,
13,
10192,
29918,
3738,
2208,
29918,
19143,
353,
376,
29900,
29908,
13,
13,
18166,
9047,
29934,
8098,
29918,
11116,
29918,
23827,
353,
426,
13,
1678,
376,
3235,
3919,
29949,
29914,
3521,
29949,
2672,
22051,
1529,
3970,
1115,
29871,
29900,
29892,
13,
1678,
376,
6271,
29943,
1115,
29871,
29896,
29892,
13,
1678,
376,
29907,
8766,
29914,
13778,
29925,
29967,
1115,
29871,
29906,
29892,
13,
1678,
376,
2227,
29903,
29914,
7228,
1660,
29925,
1115,
29871,
29941,
29892,
13,
1678,
376,
12015,
1672,
29903,
1115,
29871,
29929,
29892,
13,
29913,
13,
13,
29937,
19200,
29901,
1283,
13,
26707,
29918,
11282,
17923,
23598,
353,
313,
13,
1678,
376,
10736,
1753,
12443,
823,
6321,
23521,
459,
29939,
29878,
303,
4090,
3594,
29893,
29920,
29908,
13,
1678,
376,
19658,
24405,
29954,
17628,
29967,
29968,
26369,
29940,
4590,
29984,
29934,
1254,
29965,
29963,
18454,
29956,
29999,
29908,
13,
1678,
376,
29900,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29929,
29908,
13,
1678,
11393,
376,
13,
29897,
13,
29937,
19200,
29901,
373,
13,
13,
13,
1990,
315,
29940,
2882,
1523,
4752,
3073,
29898,
5160,
3195,
1125,
13,
1678,
822,
679,
29918,
2671,
29918,
7039,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
9621,
26914,
8149,
580,
13,
13,
1678,
822,
679,
29918,
9621,
29898,
1311,
1125,
13,
4706,
4235,
353,
5159,
13,
4706,
363,
1746,
29918,
978,
297,
1583,
29889,
657,
29918,
2671,
29918,
7039,
7295,
13,
9651,
1746,
353,
679,
5552,
29898,
1311,
29892,
1746,
29918,
978,
29897,
13,
9651,
4235,
29889,
4397,
29898,
2671,
29897,
13,
4706,
736,
4235,
13,
13,
1678,
822,
408,
29918,
20227,
29918,
2103,
29898,
1311,
1125,
13,
4706,
20917,
29918,
1767,
353,
5124,
13,
4706,
363,
1746,
297,
1583,
29889,
657,
29918,
9621,
7295,
13,
9651,
20917,
29918,
1767,
353,
285,
29908,
29912,
689,
19667,
29918,
1767,
1157,
2671,
29889,
294,
29918,
20227,
29918,
2103,
580,
5038,
13,
13,
4706,
4974,
7431,
29898,
689,
19667,
29918,
1767,
29897,
1275,
1583,
3032,
3317,
29918,
710,
29918,
2848,
13,
13,
4706,
736,
20917,
29918,
1767,
13,
13,
13,
1990,
315,
29940,
2882,
1231,
29898,
5160,
3195,
1125,
13,
1678,
732,
6799,
13,
1678,
822,
995,
29898,
1311,
1125,
13,
4706,
995,
353,
1583,
17255,
4632,
1649,
13,
4706,
565,
338,
8758,
29898,
1767,
29892,
313,
13778,
2882,
1231,
29892,
315,
29940,
2882,
1523,
4752,
3073,
22164,
13,
9651,
995,
353,
995,
29889,
294,
29918,
20227,
29918,
2103,
580,
13,
4706,
736,
995,
13,
13,
1678,
732,
3084,
1061,
703,
1649,
4632,
1649,
613,
758,
29922,
5574,
29892,
1423,
29918,
9621,
29922,
8824,
29892,
2758,
29918,
276,
1509,
29922,
5574,
29897,
13,
1678,
822,
12725,
29918,
1807,
29898,
25932,
29892,
995,
1125,
29871,
396,
694,
25621,
13,
4706,
565,
451,
338,
8758,
29898,
1767,
29892,
313,
13778,
2882,
1231,
29892,
315,
29940,
2882,
1523,
4752,
3073,
22164,
13,
9651,
4974,
599,
29898,
29883,
297,
12599,
1367,
29918,
11282,
17923,
23598,
363,
274,
297,
995,
511,
376,
13919,
4890,
29908,
13,
13,
4706,
736,
995,
13,
13,
1678,
822,
408,
29918,
20227,
29918,
2103,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
1767,
29889,
29880,
5143,
29898,
1311,
3032,
3317,
29918,
710,
29918,
2848,
29892,
29486,
29918,
3738,
2208,
29918,
19143,
467,
21064,
580,
13,
13,
13,
1990,
315,
29940,
2882,
16854,
29898,
5160,
3195,
1125,
13,
1678,
732,
6799,
13,
1678,
822,
995,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
4632,
26914,
1767,
13,
13,
1678,
822,
408,
29918,
20227,
29918,
2103,
29898,
1311,
1125,
13,
4706,
736,
851,
29898,
1311,
29889,
1767,
29897,
13,
13,
13,
1990,
315,
29940,
2882,
16854,
20876,
2928,
29898,
5160,
3195,
1125,
13,
1678,
822,
408,
29918,
20227,
29918,
2103,
29898,
1311,
1125,
13,
4706,
736,
851,
29898,
1311,
17255,
4632,
26914,
1767,
467,
29878,
5143,
29898,
1311,
3032,
3317,
29918,
710,
29918,
2848,
29892,
19578,
29918,
3738,
2208,
29918,
19143,
29897,
13,
13,
13,
1990,
315,
29940,
2882,
16854,
28630,
20876,
29898,
5160,
3195,
1125,
13,
1678,
822,
408,
29918,
20227,
29918,
2103,
29898,
1311,
1125,
13,
4706,
736,
851,
29898,
1311,
17255,
4632,
26914,
1767,
467,
29880,
5143,
29898,
1311,
3032,
3317,
29918,
710,
29918,
2848,
29892,
29486,
29918,
3738,
2208,
29918,
19143,
29897,
13,
13,
13,
1990,
10321,
3321,
2928,
29898,
5160,
3195,
1125,
13,
1678,
732,
6799,
13,
1678,
822,
995,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
4632,
1649,
13,
13,
1678,
732,
3084,
1061,
703,
1649,
4632,
1649,
613,
758,
29922,
5574,
29892,
1423,
29918,
9621,
29922,
8824,
29892,
2758,
29918,
276,
1509,
29922,
5574,
29897,
13,
1678,
822,
12725,
29918,
524,
29898,
25932,
29892,
995,
1125,
29871,
396,
694,
25621,
13,
4706,
9995,
6572,
794,
1302,
4455,
515,
5785,
29914,
7099,
3039,
304,
938,
29892,
2758,
1302,
4455,
515,
1347,
15945,
29908,
13,
4706,
565,
338,
8758,
29898,
1767,
29892,
313,
23307,
29892,
5785,
22164,
13,
9651,
12020,
7865,
2392,
29898,
13,
18884,
376,
1767,
2609,
367,
263,
5785,
470,
3826,
3039,
29892,
881,
367,
385,
6043,
2012,
29908,
13,
9651,
1723,
13,
13,
4706,
736,
995,
13,
13,
13,
1990,
315,
29940,
2882,
9135,
3321,
2928,
29898,
9135,
3321,
2928,
1125,
13,
1678,
822,
408,
29918,
20227,
29918,
2103,
29898,
1311,
1125,
13,
4706,
736,
851,
29898,
1311,
17255,
4632,
1649,
467,
29878,
5143,
29898,
1311,
3032,
3317,
29918,
710,
29918,
2848,
29892,
19578,
29918,
3738,
2208,
29918,
19143,
29897,
13,
13,
13,
1990,
315,
29940,
2882,
28630,
9135,
3321,
2928,
29898,
9135,
3321,
2928,
1125,
13,
1678,
822,
408,
29918,
20227,
29918,
2103,
29898,
1311,
1125,
13,
4706,
736,
851,
29898,
1311,
17255,
4632,
1649,
467,
29880,
5143,
29898,
1311,
3032,
3317,
29918,
710,
29918,
2848,
29892,
29486,
29918,
3738,
2208,
29918,
19143,
29897,
13,
13,
13,
1990,
315,
29940,
2882,
2539,
29898,
5160,
3195,
1125,
13,
1678,
903,
1195,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29947,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29947,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
1195,
29918,
2848,
29922,
29918,
1195,
29918,
710,
29918,
2848,
29892,
4236,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
1678,
732,
3084,
1061,
703,
1649,
4632,
1649,
613,
2758,
29918,
276,
1509,
29922,
5574,
29897,
13,
1678,
822,
12725,
29918,
1256,
29898,
25932,
29892,
995,
1125,
29871,
396,
694,
25621,
13,
4706,
1018,
29901,
13,
9651,
12865,
29889,
710,
415,
603,
29898,
1767,
29892,
11860,
29881,
29995,
29885,
29995,
29979,
1159,
13,
4706,
5174,
7865,
2392,
29901,
13,
9651,
12020,
7865,
2392,
703,
29912,
1767,
29913,
338,
451,
2854,
1159,
13,
4706,
1683,
29901,
13,
9651,
736,
995,
13,
13,
1678,
822,
408,
29918,
20227,
29918,
2103,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
4632,
1649,
13,
13,
13,
1990,
315,
29940,
2882,
2481,
29898,
5160,
3195,
1125,
13,
1678,
903,
1195,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29953,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29953,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
1195,
29918,
2848,
29922,
29918,
1195,
29918,
710,
29918,
2848,
29892,
4236,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
1678,
732,
3084,
1061,
703,
1649,
4632,
1649,
613,
2758,
29918,
276,
1509,
29922,
5574,
29897,
13,
1678,
822,
12725,
29918,
2230,
29898,
25932,
29892,
995,
1125,
29871,
396,
694,
25621,
13,
4706,
1018,
29901,
13,
9651,
12865,
29889,
710,
415,
603,
29898,
1767,
29892,
11860,
29950,
29995,
29924,
29995,
29903,
1159,
13,
4706,
5174,
7865,
2392,
29901,
13,
9651,
12020,
7865,
2392,
703,
29912,
1767,
29913,
338,
451,
2854,
1159,
13,
4706,
1683,
29901,
13,
9651,
736,
995,
13,
13,
1678,
822,
408,
29918,
20227,
29918,
2103,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
4632,
1649,
13,
13,
13,
1990,
10253,
3399,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29941,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
6692,
23145,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
934,
29918,
6672,
353,
376,
29900,
29900,
29900,
29900,
29908,
13,
1678,
934,
29918,
3018,
3955,
353,
376,
29929,
29929,
29929,
29929,
29908,
13,
13,
13,
1990,
6692,
23145,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
6692,
23145,
16854,
13,
13,
13,
1990,
922,
339,
2556,
3170,
23145,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29946,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29947,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
28236,
1542,
16854,
29898,
2928,
16854,
1125,
13,
1678,
934,
29918,
6672,
353,
29871,
29900,
13,
1678,
9853,
29918,
6672,
353,
29871,
29896,
13,
1678,
9853,
29918,
11228,
29918,
3757,
4339,
353,
29871,
29906,
13,
1678,
4902,
353,
29871,
29941,
13,
1678,
9853,
29918,
8394,
29918,
3757,
4339,
353,
29871,
29946,
13,
1678,
9853,
29918,
3018,
3955,
353,
29871,
29945,
13,
1678,
934,
29918,
3018,
3955,
353,
29871,
29929,
13,
13,
13,
1990,
28236,
1542,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
28236,
1542,
16854,
13,
13,
13,
1990,
2169,
8306,
1542,
16854,
29898,
16854,
1125,
13,
1678,
429,
3456,
353,
376,
3235,
3919,
29949,
29914,
3521,
29949,
2672,
22051,
1529,
3970,
29908,
13,
1678,
274,
7810,
353,
376,
6271,
29943,
29908,
13,
1678,
274,
9302,
29926,
353,
376,
29907,
8766,
29914,
13778,
29925,
29967,
29908,
13,
1678,
20066,
353,
376,
2227,
29903,
29914,
7228,
1660,
29925,
29908,
13,
1678,
4045,
353,
376,
12015,
1672,
29903,
29908,
13,
13,
13,
1990,
315,
29940,
2882,
4597,
8306,
1542,
16854,
29898,
2928,
16854,
1125,
13,
1678,
429,
3456,
353,
29871,
29900,
13,
1678,
274,
7810,
353,
29871,
29896,
13,
1678,
274,
9302,
29926,
353,
29871,
29906,
13,
1678,
20066,
353,
29871,
29941,
13,
1678,
4045,
353,
29871,
29929,
13,
13,
13,
1990,
2169,
8306,
1542,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
2169,
8306,
1542,
16854,
13,
13,
13,
1990,
315,
29940,
2882,
4597,
8306,
1542,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
315,
29940,
2882,
4597,
8306,
1542,
16854,
13,
13,
1678,
732,
3084,
1061,
703,
1649,
4632,
1649,
613,
758,
29922,
5574,
29892,
2758,
29918,
276,
1509,
29922,
5574,
29897,
13,
1678,
822,
12725,
29918,
1727,
8306,
29918,
1853,
29898,
25932,
29892,
3876,
29918,
1767,
1125,
29871,
396,
694,
25621,
13,
4706,
565,
338,
8758,
29898,
4632,
29918,
1767,
29892,
2169,
8306,
1542,
16854,
1125,
13,
9651,
736,
5195,
29954,
9047,
29934,
8098,
29918,
11116,
29918,
23827,
29961,
4632,
29918,
1767,
29889,
1767,
29962,
13,
4706,
736,
3876,
29918,
1767,
13,
13,
13,
1990,
2169,
8306,
4557,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29946,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
10253,
1168,
7316,
3399,
29898,
13778,
2882,
28630,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29906,
29900,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
10253,
29909,
14703,
4557,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29945,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
10253,
10601,
4557,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29906,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
10253,
14991,
277,
5596,
29898,
13778,
2882,
28630,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
1678,
732,
3084,
1061,
703,
1649,
4632,
1649,
1159,
13,
1678,
822,
2854,
29918,
524,
29898,
25932,
29892,
325,
1125,
29871,
396,
694,
25621,
13,
4706,
1018,
29901,
13,
9651,
325,
29918,
294,
29918,
524,
353,
938,
29898,
29894,
29897,
13,
4706,
5174,
7865,
2392,
29901,
13,
9651,
736,
5124,
13,
13,
4706,
565,
325,
29918,
294,
29918,
524,
1405,
1067,
29879,
3032,
3317,
29918,
524,
29901,
13,
9651,
12020,
7865,
2392,
29898,
29888,
29908,
29912,
29894,
29918,
294,
29918,
524,
29913,
338,
7621,
1135,
278,
4236,
995,
426,
25932,
3032,
3317,
29918,
524,
27195,
13,
13,
4706,
565,
325,
29918,
294,
29918,
524,
529,
1067,
29879,
3032,
1195,
29918,
524,
29901,
13,
9651,
12020,
7865,
2392,
29898,
29888,
29908,
29912,
29894,
29918,
294,
29918,
524,
29913,
338,
7968,
1135,
278,
1375,
995,
426,
25932,
3032,
1195,
29918,
524,
27195,
13,
13,
4706,
736,
325,
13,
13,
13,
1990,
6938,
1170,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29941,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
10253,
1170,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29941,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
830,
7334,
993,
1170,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29941,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
5240,
2415,
749,
11609,
3399,
16854,
29898,
2928,
16854,
1125,
13,
1678,
528,
17347,
353,
29871,
29896,
13,
1678,
7863,
353,
29871,
29906,
13,
13,
13,
1990,
5240,
2415,
749,
11609,
3399,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
5240,
2415,
749,
11609,
3399,
16854,
13,
13,
13,
1990,
3497,
16941,
2556,
4557,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29953,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
3497,
9182,
29928,
575,
537,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
270,
29896,
29953,
29900,
29900,
353,
376,
29896,
29953,
29900,
29900,
29908,
13,
1678,
270,
29953,
29906,
29945,
29900,
353,
376,
29953,
29906,
29945,
29900,
29908,
13,
13,
13,
1990,
3497,
9182,
29928,
575,
537,
29898,
13778,
2882,
16854,
20876,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29945,
13,
1678,
4770,
4632,
1649,
29901,
3497,
9182,
29928,
575,
537,
16854,
13,
13,
13,
1990,
10253,
1666,
9841,
3073,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29906,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
6938,
1666,
9841,
3073,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29906,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
383,
29923,
15176,
2882,
2190,
29896,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29896,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
383,
29923,
15176,
2882,
2190,
29953,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29953,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
383,
29923,
15176,
2882,
2190,
29941,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29941,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
383,
29923,
15176,
2882,
2190,
29929,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
383,
29923,
15176,
2882,
2190,
29896,
29900,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
383,
29923,
15176,
2882,
2190,
29896,
29953,
29945,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29896,
29953,
29945,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
383,
29923,
15176,
2882,
2190,
29906,
29900,
29945,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29906,
29900,
29945,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
383,
29923,
15176,
2882,
2190,
29906,
29929,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29906,
29929,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
18285,
7061,
16885,
1170,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29896,
29945,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
16428,
29928,
6801,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29896,
29945,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
12936,
403,
18087,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29945,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
3295,
2798,
18087,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29945,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
826,
276,
1503,
18087,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29945,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
28896,
18087,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29945,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
10343,
4597,
8306,
1542,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29945,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
20462,
1542,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
16200,
29918,
8269,
353,
376,
29907,
29908,
13,
1678,
2553,
277,
29918,
8269,
353,
376,
29928,
29908,
13,
1678,
3022,
2638,
362,
29918,
20788,
353,
376,
29923,
29908,
13,
1678,
274,
1161,
29918,
21895,
29918,
20788,
353,
376,
29954,
29908,
13,
1678,
2472,
29918,
344,
2764,
1907,
29918,
3471,
2955,
29918,
3166,
29918,
9157,
353,
376,
29902,
29908,
13,
1678,
528,
17347,
29918,
1445,
353,
376,
29934,
29908,
13,
1678,
736,
29918,
1445,
353,
376,
29911,
29908,
13,
13,
13,
1990,
20462,
1542,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
20462,
1542,
16854,
13,
13,
13,
1990,
6692,
1542,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
8323,
353,
376,
29900,
29896,
29908,
13,
1678,
27758,
29918,
27825,
29918,
29879,
3466,
353,
376,
29900,
29941,
29908,
13,
1678,
9124,
29918,
276,
535,
29883,
2638,
362,
353,
376,
29900,
29946,
29908,
13,
1678,
2553,
1372,
353,
376,
29900,
29945,
29908,
13,
1678,
1423,
29918,
29883,
504,
1486,
353,
376,
29900,
29953,
29908,
13,
1678,
274,
1161,
29918,
21895,
353,
376,
29900,
29955,
29908,
13,
1678,
2346,
29918,
9264,
29918,
29876,
5404,
353,
376,
29900,
29947,
29908,
13,
1678,
22583,
29918,
974,
29918,
3200,
10194,
29918,
29878,
8015,
2509,
353,
376,
29900,
29929,
29908,
13,
1678,
25227,
355,
29918,
27825,
353,
376,
29896,
29900,
29908,
13,
1678,
1136,
10194,
29918,
3396,
841,
749,
353,
376,
29896,
29896,
29908,
13,
1678,
1136,
10194,
29918,
974,
29918,
6252,
1860,
353,
376,
29896,
29906,
29908,
13,
1678,
1136,
10194,
29918,
2218,
9536,
749,
29918,
262,
893,
353,
376,
29896,
29941,
29908,
13,
1678,
25501,
16129,
29918,
941,
9100,
29918,
10472,
519,
353,
376,
29896,
29946,
29908,
13,
1678,
1462,
4926,
29918,
27825,
353,
376,
29906,
29900,
29908,
13,
1678,
19179,
29918,
974,
29918,
29890,
6090,
29918,
941,
9100,
353,
376,
29906,
29906,
29908,
13,
1678,
1006,
3372,
3097,
29918,
27825,
29918,
2611,
5008,
29918,
10149,
29879,
353,
376,
29906,
29941,
29908,
13,
1678,
15649,
353,
376,
29906,
29945,
29908,
13,
1678,
15649,
29918,
5450,
653,
353,
376,
29906,
29953,
29908,
13,
1678,
282,
2747,
29918,
29883,
8342,
353,
376,
29906,
29929,
29908,
13,
1678,
4497,
653,
29918,
27825,
353,
376,
29941,
29900,
29908,
13,
1678,
19179,
29918,
1725,
267,
353,
376,
29941,
29906,
29908,
13,
1678,
19179,
29918,
303,
666,
355,
353,
376,
29941,
29941,
29908,
13,
1678,
19179,
29918,
1457,
29890,
1975,
353,
376,
29941,
29946,
29908,
13,
1678,
27042,
353,
376,
29946,
29900,
29908,
13,
1678,
6375,
29918,
29879,
4539,
353,
376,
29946,
29896,
29908,
13,
1678,
19179,
29918,
974,
29918,
1144,
2955,
353,
376,
29945,
29900,
29908,
13,
1678,
19179,
29918,
974,
29918,
3286,
277,
29918,
3018,
955,
261,
29918,
4548,
11259,
353,
376,
29953,
29900,
29908,
13,
1678,
4148,
1891,
29918,
27825,
353,
376,
29955,
29900,
29908,
13,
1678,
1035,
1127,
1573,
29918,
27825,
353,
376,
29955,
29945,
29908,
13,
1678,
1083,
348,
261,
362,
29918,
27825,
353,
376,
29955,
29955,
29908,
13,
1678,
19179,
29918,
974,
29918,
8921,
1891,
29918,
276,
6338,
5056,
353,
376,
29947,
29900,
29908,
13,
1678,
19179,
29918,
1785,
1389,
1169,
353,
376,
29929,
29900,
29908,
13,
1678,
3984,
3729,
23584,
29918,
10472,
1860,
353,
376,
29929,
29947,
29908,
13,
13,
13,
1990,
6692,
1542,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
6692,
1542,
16854,
13,
13,
13,
1990,
23708,
4062,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
16200,
29918,
262,
29918,
3198,
292,
29918,
10149,
353,
376,
29900,
29896,
29908,
13,
1678,
19185,
29918,
27825,
29918,
3198,
353,
376,
29900,
29906,
29908,
13,
1678,
1574,
29918,
9446,
353,
376,
29900,
29941,
29908,
13,
1678,
5881,
29918,
19585,
653,
353,
376,
29900,
29946,
29908,
13,
1678,
16200,
29918,
262,
29918,
10149,
29918,
29879,
485,
886,
353,
376,
29900,
29945,
29908,
13,
1678,
1015,
29918,
2218,
3283,
353,
376,
29896,
29900,
29908,
13,
1678,
19179,
29918,
974,
29918,
10149,
29879,
29918,
392,
29918,
29873,
1091,
20864,
29918,
2541,
29918,
1646,
29918,
401,
353,
376,
29896,
29896,
29908,
13,
1678,
8818,
29918,
29928,
1718,
29943,
29918,
8945,
353,
376,
29896,
29953,
29908,
13,
1678,
8818,
29918,
29954,
7024,
353,
376,
29896,
29955,
29908,
13,
1678,
8818,
29918,
29928,
1718,
29943,
29918,
12857,
353,
376,
29896,
29947,
29908,
13,
1678,
8818,
29918,
5690,
29911,
29965,
29918,
12690,
353,
376,
29896,
29929,
29908,
13,
1678,
19179,
29918,
2541,
29918,
23055,
353,
376,
29906,
29900,
29908,
13,
1678,
8818,
29918,
29928,
1718,
29967,
353,
376,
29906,
29896,
29908,
13,
1678,
8818,
29918,
12739,
1525,
29918,
5550,
29918,
2965,
4345,
353,
376,
29906,
29906,
29908,
13,
1678,
8818,
29918,
12739,
1525,
29918,
5550,
29918,
8353,
353,
376,
29906,
29941,
29908,
13,
1678,
8818,
29918,
12739,
1525,
29918,
5550,
29918,
1806,
29907,
5773,
353,
376,
29906,
29946,
29908,
13,
1678,
8818,
29918,
5690,
20449,
353,
376,
29906,
29945,
29908,
13,
1678,
8818,
29918,
506,
13640,
4487,
353,
376,
29906,
29953,
29908,
13,
1678,
8818,
29918,
11191,
29963,
1299,
353,
376,
29906,
29955,
29908,
13,
1678,
16493,
29918,
974,
29918,
344,
2764,
1907,
29918,
974,
29918,
1552,
29918,
9157,
353,
376,
29941,
29900,
29908,
13,
1678,
19179,
29918,
974,
29918,
344,
2764,
1907,
29918,
3166,
29918,
1228,
29918,
29890,
1331,
353,
376,
29941,
29896,
29908,
13,
1678,
1857,
29918,
10149,
29918,
20788,
353,
376,
29946,
29900,
29908,
13,
1678,
323,
3352,
29918,
1228,
29918,
296,
277,
944,
353,
376,
29946,
29896,
29908,
13,
1678,
323,
3352,
29918,
17642,
29918,
776,
10475,
353,
376,
29946,
29941,
29908,
13,
1678,
323,
3352,
29918,
3286,
571,
29918,
3166,
29918,
262,
10147,
358,
29918,
10149,
353,
376,
29946,
29946,
29908,
13,
1678,
349,
6415,
353,
376,
29946,
29945,
29908,
13,
1678,
349,
6415,
29918,
29939,
29878,
29918,
401,
353,
376,
29946,
29955,
29908,
13,
1678,
2553,
277,
29918,
3198,
292,
29918,
10149,
353,
376,
29945,
29900,
29908,
13,
1678,
3229,
29918,
1454,
29918,
29883,
1161,
29918,
21895,
353,
376,
29955,
29900,
29908,
13,
1678,
19754,
277,
29918,
17675,
5611,
29918,
262,
29918,
10149,
29918,
3784,
353,
376,
29955,
29896,
29908,
13,
1678,
19754,
277,
29918,
17675,
5611,
29918,
262,
29918,
29879,
485,
886,
353,
376,
29955,
29906,
29908,
13,
1678,
3229,
29918,
974,
29918,
262,
10147,
358,
29918,
10149,
353,
376,
29955,
29941,
29908,
13,
1678,
19179,
29918,
974,
29918,
29885,
4376,
284,
29918,
941,
9100,
29918,
29902,
1799,
29918,
776,
29918,
9157,
353,
376,
29947,
29900,
29908,
13,
1678,
19179,
29918,
974,
29918,
29885,
4376,
284,
29918,
941,
9100,
29918,
29902,
1799,
29918,
1228,
29918,
9157,
353,
376,
29947,
29896,
29908,
13,
13,
13,
1990,
23708,
4062,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
23708,
4062,
16854,
13,
13,
13,
1990,
350,
905,
3453,
6594,
4557,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
325,
29900,
29918,
29946,
29953,
353,
376,
29900,
29946,
29953,
29908,
13,
13,
13,
1990,
350,
905,
3453,
6594,
4557,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
350,
905,
3453,
6594,
4557,
16854,
13,
13,
13,
1990,
3497,
3453,
6594,
4557,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
325,
29896,
29900,
29918,
29941,
353,
376,
29896,
29900,
29941,
29908,
13,
13,
13,
1990,
3497,
3453,
6594,
4557,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
3497,
3453,
6594,
4557,
16854,
13,
13,
13,
1990,
7777,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29946,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
16428,
1170,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29941,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
16428,
4557,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29945,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
5953,
737,
9182,
17669,
358,
1542,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
10768,
29918,
29874,
353,
376,
29909,
29908,
13,
1678,
10768,
29918,
29890,
353,
376,
29933,
29908,
13,
1678,
10768,
29918,
29883,
353,
376,
29907,
29908,
13,
13,
13,
1990,
5953,
737,
9182,
17669,
358,
1542,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
5953,
737,
9182,
17669,
358,
1542,
16854,
13,
13,
13,
1990,
5196,
1170,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29941,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
14164,
16941,
2556,
4557,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29945,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
512,
4812,
362,
2500,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
9277,
29918,
6710,
353,
376,
29900,
29896,
29908,
13,
1678,
9277,
29918,
5269,
353,
376,
29900,
29906,
29908,
13,
1678,
9277,
29918,
6814,
29888,
29918,
29883,
9302,
29926,
353,
376,
29900,
29941,
29908,
13,
1678,
4036,
29918,
1989,
353,
376,
29900,
29946,
29908,
13,
1678,
9124,
29918,
3888,
353,
376,
29900,
29945,
29908,
13,
13,
13,
1990,
512,
4812,
362,
2500,
29898,
13778,
2882,
16854,
28630,
20876,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29941,
13,
1678,
4770,
4632,
1649,
29901,
512,
4812,
362,
2500,
16854,
13,
13,
13,
1990,
22717,
3301,
29923,
29953,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29953,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
306,
5550,
29933,
3399,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29947,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
16428,
10602,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29896,
29945,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
16428,
16885,
1170,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29906,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
16428,
4741,
29925,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29945,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
16428,
4741,
29925,
1523,
2037,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29941,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
16428,
2792,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29906,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
14617,
358,
4062,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
1513,
29918,
311,
2966,
353,
376,
29900,
29896,
29908,
13,
1678,
24806,
29918,
4951,
19985,
29918,
311,
2966,
353,
376,
29900,
29906,
29908,
13,
1678,
16200,
29918,
7543,
29918,
311,
2966,
353,
376,
29900,
29941,
29908,
13,
13,
13,
1990,
14617,
358,
4062,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
14617,
358,
4062,
16854,
13,
13,
13,
1990,
14104,
2073,
362,
1542,
16854,
29898,
2928,
16854,
1125,
13,
1678,
28694,
353,
29871,
29900,
13,
1678,
8799,
362,
353,
29871,
29896,
13,
1678,
8872,
2673,
353,
29871,
29906,
13,
1678,
8323,
1627,
353,
29871,
29941,
13,
1678,
7657,
440,
362,
353,
29871,
29946,
13,
1678,
2767,
353,
29871,
29945,
13,
1678,
23904,
362,
353,
29871,
29955,
13,
1678,
429,
10085,
353,
29871,
29929,
13,
13,
13,
1990,
14104,
2073,
362,
1542,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
14104,
2073,
362,
1542,
16854,
13,
13,
13,
1990,
14104,
2073,
362,
3379,
4080,
3399,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
28694,
29918,
974,
29918,
2841,
1965,
29918,
16432,
29918,
11651,
353,
376,
29900,
29900,
29908,
13,
1678,
28694,
29918,
974,
29918,
1271,
287,
29918,
16432,
29918,
11651,
353,
376,
29900,
29929,
29908,
13,
1678,
1735,
29918,
27825,
29918,
3166,
29918,
2841,
1965,
29918,
517,
29918,
1271,
287,
353,
376,
29896,
29900,
29908,
13,
1678,
1735,
29918,
1271,
287,
29918,
3166,
29918,
27825,
29918,
517,
29918,
2841,
1965,
353,
376,
29896,
29896,
29908,
13,
1678,
1735,
29918,
262,
29918,
8926,
29918,
1767,
353,
376,
29896,
29955,
29908,
13,
1678,
19179,
29918,
1256,
29918,
3167,
353,
376,
29896,
29929,
29908,
13,
1678,
1513,
29918,
27825,
29918,
517,
29918,
19303,
4926,
353,
376,
29906,
29941,
29908,
13,
1678,
17042,
1026,
29918,
3396,
841,
749,
29918,
1867,
29918,
1333,
29918,
10472,
353,
376,
29906,
29945,
29908,
13,
1678,
17042,
1026,
29918,
2541,
4012,
284,
29918,
1867,
29918,
1333,
29918,
10472,
353,
376,
29906,
29955,
29908,
13,
1678,
18764,
284,
29918,
1609,
29918,
2457,
29918,
3166,
29918,
25171,
29918,
8551,
292,
29918,
8697,
353,
376,
29941,
29941,
29908,
13,
1678,
282,
2747,
29918,
29883,
8342,
353,
376,
29946,
29900,
29908,
13,
1678,
5217,
29918,
1457,
16604,
29918,
23959,
29918,
16432,
29918,
11651,
353,
376,
29929,
29929,
29908,
13,
13,
13,
1990,
14104,
2073,
362,
3379,
4080,
3399,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
14104,
2073,
362,
3379,
4080,
3399,
16854,
13,
13,
13,
1990,
8068,
18759,
292,
29950,
1709,
3399,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
323,
3352,
353,
376,
29900,
29896,
29947,
29908,
13,
1678,
11662,
29907,
353,
376,
29955,
29900,
29900,
29908,
13,
1678,
396,
501,
8485,
746,
372,
29915,
29879,
5181,
304,
3638,
323,
3352,
773,
278,
306,
5550,
29933,
775,
13,
1678,
396,
310,
278,
830,
7334,
993,
4231,
273,
1455,
28218,
29889,
512,
445,
1206,
29892,
372,
29915,
29879,
9619,
7606,
304,
5445,
13,
1678,
396,
278,
1746,
376,
3235,
29925,
29933,
5920,
29908,
448,
1746,
29871,
29906,
29953,
29889,
29941,
29933,
29892,
13,
1678,
396,
310,
278,
14617,
358,
6667,
358,
29892,
408,
5439,
297,
3940,
349,
29900,
29896,
29945,
29889,
13,
1678,
323,
3352,
29918,
3235,
29925,
29933,
353,
376,
29929,
29947,
29947,
29908,
13,
1678,
349,
6415,
353,
376,
29900,
29900,
29929,
29908,
13,
13,
13,
1990,
8068,
18759,
292,
29950,
1709,
3399,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
8068,
18759,
292,
29950,
1709,
3399,
16854,
13,
13,
13,
1990,
315,
10880,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
4797,
29918,
2484,
294,
2857,
29918,
6718,
375,
29918,
509,
353,
376,
29933,
29911,
29940,
29908,
13,
1678,
1855,
353,
376,
29933,
2241,
29908,
13,
1678,
502,
29918,
29881,
26810,
353,
376,
3308,
29928,
29908,
13,
1678,
15056,
23053,
29918,
845,
969,
353,
376,
29925,
4330,
29908,
13,
1678,
285,
4615,
29918,
16799,
29883,
353,
376,
15860,
29943,
29908,
13,
1678,
2381,
790,
29918,
16799,
29883,
353,
376,
3210,
29943,
29908,
13,
1678,
10215,
273,
968,
29918,
11771,
353,
376,
29967,
20055,
29908,
13,
1678,
2498,
29918,
9175,
29918,
2248,
353,
376,
6259,
29925,
29908,
13,
1678,
2498,
29918,
28549,
29918,
9175,
29918,
2248,
353,
376,
6259,
29924,
29908,
13,
1678,
282,
618,
29918,
2475,
1847,
353,
376,
7210,
29925,
29908,
13,
1678,
4698,
713,
29918,
492,
336,
353,
376,
1806,
29931,
29908,
13,
1678,
330,
3504,
29918,
3502,
353,
376,
2287,
29924,
29908,
13,
1678,
14218,
29918,
20275,
2556,
29918,
10492,
353,
376,
5659,
29928,
29908,
13,
1678,
3918,
29918,
5030,
2410,
29918,
5441,
353,
376,
4897,
29907,
29908,
13,
1678,
3918,
29918,
4951,
19985,
29918,
5441,
353,
376,
4897,
29943,
29908,
13,
1678,
8818,
29918,
5679,
29918,
5441,
353,
376,
29965,
15860,
29908,
13,
1678,
14721,
273,
29918,
21962,
3977,
353,
376,
29990,
29923,
29965,
29908,
13,
13,
13,
1990,
315,
10880,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
315,
10880,
16854,
13,
13,
13,
1990,
315,
10880,
18087,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29896,
29945,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
14617,
358,
18087,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29945,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
10253,
2816,
21410,
29902,
893,
6742,
14526,
4557,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29906,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
14617,
358,
13971,
573,
18087,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29945,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
6692,
1542,
1523,
2037,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
3633,
29918,
11944,
277,
353,
376,
29900,
29896,
29908,
13,
1678,
19179,
29918,
974,
29918,
7771,
29918,
1116,
5817,
1974,
353,
376,
29900,
29906,
29908,
13,
1678,
19179,
29918,
974,
29918,
20908,
5926,
29918,
344,
2764,
1907,
353,
376,
29900,
29941,
29908,
13,
1678,
19179,
29918,
974,
29918,
29881,
3640,
1975,
353,
376,
29900,
29946,
29908,
13,
1678,
19179,
29918,
974,
29918,
27041,
29918,
9161,
654,
353,
376,
29900,
29945,
29908,
13,
1678,
4497,
653,
29918,
27825,
353,
376,
29900,
29953,
29908,
13,
1678,
19179,
29918,
517,
29918,
19303,
27801,
353,
376,
29900,
29955,
29908,
13,
1678,
22160,
29918,
974,
29918,
1079,
647,
29918,
6543,
29918,
27159,
29879,
29918,
17712,
29918,
6543,
353,
376,
29900,
29947,
29908,
13,
1678,
6782,
29918,
974,
29918,
10855,
29918,
27825,
29918,
974,
29918,
941,
9100,
353,
376,
29900,
29929,
29908,
13,
1678,
6121,
29918,
3286,
571,
29918,
262,
29918,
6370,
353,
376,
29896,
29900,
29908,
13,
1678,
1574,
29918,
1454,
29918,
29879,
485,
886,
353,
376,
29896,
29896,
29908,
13,
1678,
1574,
29918,
1454,
29918,
17675,
5611,
29918,
311,
1066,
277,
353,
376,
29896,
29906,
29908,
13,
1678,
4045,
353,
376,
29896,
29941,
29908,
13,
1678,
380,
666,
355,
29918,
27825,
353,
376,
29896,
29953,
29908,
13,
1678,
1083,
348,
261,
362,
29918,
517,
29918,
1552,
29918,
14242,
353,
376,
29896,
29955,
29908,
13,
1678,
10203,
4487,
29918,
974,
29918,
1725,
267,
353,
376,
29896,
29947,
29908,
13,
1678,
19179,
29918,
974,
29918,
1457,
29890,
355,
353,
376,
29896,
29929,
29908,
13,
13,
13,
1990,
6692,
1542,
1523,
2037,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
6692,
1542,
1523,
2037,
16854,
13,
13,
13,
1990,
323,
3352,
15790,
537,
3399,
29898,
13778,
2882,
28630,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29945,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
14617,
358,
15790,
537,
1523,
2037,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29906,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
2216,
1598,
1123,
7334,
993,
16854,
29898,
710,
29892,
1174,
398,
1125,
13,
1678,
694,
29918,
24671,
353,
29871,
29900,
13,
1678,
26051,
29918,
6194,
29918,
15452,
353,
29871,
29906,
13,
1678,
26051,
29918,
6194,
29918,
4361,
29886,
993,
353,
29871,
29945,
13,
1678,
26051,
29918,
15452,
29918,
392,
29918,
4361,
29886,
993,
353,
29871,
29953,
13,
1678,
26051,
29918,
4361,
29886,
993,
29918,
392,
29918,
29906,
29918,
9708,
583,
29918,
517,
29918,
15452,
353,
29871,
29955,
13,
13,
13,
1990,
2216,
1598,
1123,
7334,
993,
29898,
13778,
2882,
16854,
1125,
13,
1678,
4770,
4632,
1649,
29901,
2216,
1598,
1123,
7334,
993,
16854,
13,
13,
13,
1990,
7106,
22034,
26841,
29907,
2631,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29896,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
7983,
4557,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
353,
29871,
29953,
13,
1678,
903,
1195,
29918,
524,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
2630,
1041,
11139,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29947,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
315,
10880,
18087,
11139,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29896,
29947,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
29929,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
7089,
277,
12958,
4557,
29898,
13778,
2882,
9135,
3321,
2928,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29953,
13,
1678,
903,
1195,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29900,
13,
1678,
903,
3317,
29918,
524,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1678,
4770,
4632,
1649,
29901,
378,
524,
29898,
479,
29922,
29918,
1195,
29918,
524,
29892,
454,
29922,
29918,
3317,
29918,
524,
29897,
13,
13,
13,
1990,
422,
4752,
7061,
20350,
29898,
13778,
2882,
1523,
4752,
3073,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29953,
29900,
13,
13,
1678,
3211,
29918,
4537,
29901,
16428,
4557,
13,
1678,
3211,
29918,
510,
2037,
29901,
16428,
10602,
13,
1678,
3211,
29918,
29881,
6801,
29901,
16428,
29928,
6801,
13,
1678,
3211,
29918,
12690,
29901,
18285,
7061,
16885,
1170,
13,
1678,
3211,
29918,
13300,
29901,
16428,
4741,
29925,
13,
1678,
3211,
29918,
13300,
29918,
510,
2037,
29901,
16428,
4741,
29925,
1523,
2037,
13,
1678,
3211,
29918,
3859,
29901,
16428,
2792,
13,
13,
13,
1990,
422,
4752,
15467,
358,
20350,
29898,
13778,
2882,
1523,
4752,
3073,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
13,
13,
1678,
19179,
29918,
1256,
29901,
315,
29940,
2882,
2539,
13,
1678,
19179,
29918,
14506,
29901,
14617,
358,
18087,
13,
1678,
15121,
403,
29918,
14506,
29901,
12936,
403,
18087,
13,
1678,
2313,
792,
29918,
14506,
29901,
3295,
2798,
18087,
13,
1678,
564,
276,
1503,
29918,
14506,
29901,
826,
276,
1503,
18087,
13,
1678,
2691,
29918,
14506,
29901,
28896,
18087,
13,
1678,
22583,
29918,
1853,
29901,
10343,
4597,
8306,
1542,
13,
1678,
26051,
29918,
4361,
29886,
993,
29901,
2216,
1598,
1123,
7334,
993,
13,
13,
13,
1990,
349,
6415,
28627,
1367,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29941,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
349,
6415,
2558,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29953,
29900,
13,
1678,
4770,
4632,
1649,
29901,
378,
710,
29898,
3317,
29918,
2848,
29922,
29918,
3317,
29918,
710,
29918,
2848,
29897,
13,
13,
13,
1990,
10343,
29896,
29900,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29941,
29945,
13,
1678,
4770,
4632,
1649,
29901,
7761,
29961,
7061,
1170,
29892,
349,
6415,
28627,
1367,
29962,
13,
13,
13,
1990,
10343,
29896,
29896,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29953,
29900,
13,
1678,
4770,
4632,
1649,
29901,
7761,
29961,
2227,
29990,
2558,
29892,
7777,
29892,
422,
4752,
7061,
20350,
29962,
13,
13,
13,
1990,
10343,
29896,
29906,
29898,
13778,
2882,
1231,
1125,
13,
1678,
903,
3317,
29918,
710,
29918,
2848,
29901,
4134,
9037,
29961,
524,
29962,
353,
29871,
29929,
29929,
13,
1678,
4770,
4632,
1649,
29901,
7761,
29961,
2227,
29990,
2558,
29892,
422,
4752,
15467,
358,
20350,
29962,
13,
2
] |
my_wallet/apiv1/__init__.py | ibolorino/wallet-backend | 0 | 77630 | default_app_config = "my_wallet.apiv1.apps.ApiV1Config"
| [
1,
2322,
29918,
932,
29918,
2917,
353,
376,
1357,
29918,
14625,
1026,
29889,
481,
440,
29896,
29889,
13371,
29889,
11713,
29963,
29896,
3991,
29908,
13,
2
] |
src/wavestate/iirrational/annotate/markdown.py | wavestate/wavestate-iirrational | 0 | 192456 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology.
# SPDX-FileCopyrightText: © 2021 <NAME> <<EMAIL>>
# NOTICE: authors should document their contributions in concisely in NOTICE
# with details inline in source files, comments, and docstrings.
"""
"""
import os
import re
import errno
import os.path as path
from ..utilities.mpl import asavefig
from ..utilities.strings import padding_remove
def header_line(level=0, section_history=(), heading=""):
if not heading:
heading = ""
section_link = ".".join([str(n) for n in section_history])
if section_link:
section_link = " `{0}` ".format(section_link)
else:
section_link = " "
return ("#" * (level + 1)) + section_link + heading
def docdb_md_section(
F_md,
doc_db,
section_history,
heading_level,
md_verbosity=None,
plot_verbosity=None,
plot_fname_func=None,
do_plot=True,
regex_secname="",
use_ext=True,
plot_format="png",
):
if md_verbosity is not None:
if doc_db.verbosity:
if doc_db.verbosity > md_verbosity:
return
header = header_line(
heading_level,
section_history,
doc_db.name,
)
lines = [
header,
"",
]
if doc_db.method:
lines.append("> `{0}`".format(padding_remove(doc_db.method)))
lines.append("")
if doc_db.about:
lines.append(padding_remove(doc_db.about))
lines.append("")
if not do_plot:
if re.findall(regex_secname, doc_db.name):
do_plot = True
will_plot = True
if plot_verbosity is not None:
if doc_db.verbosity:
if doc_db.verbosity > plot_verbosity:
will_plot = False
if do_plot and will_plot and doc_db.plotter and doc_db.fitter:
title = doc_db.plot_title
if not title:
title = ""
plot_fname = plot_fname_func(
section_history,
doc_db,
with_folder=False,
)
if use_ext:
ext = "." + plot_format
else:
ext = ""
lines.append("".format(plot_fname + ext, title=title))
lines.append("")
F_md.writelines((l + "\n" for l in lines))
if doc_db.sequence:
for idx, seq_name in enumerate(doc_db.sequence):
docdb_md_section(
F_md,
doc_db[seq_name],
section_history=section_history + [idx + 1],
heading_level=heading_level + 1,
md_verbosity=md_verbosity,
plot_verbosity=plot_verbosity,
plot_fname_func=plot_fname_func,
do_plot=do_plot,
regex_secname=regex_secname,
plot_format=plot_format,
use_ext=use_ext,
)
return
def docdb_md_plots(
doc_db,
section_history,
plot_verbosity=None,
plot_fname_func=None,
do_plot=True,
regex_secname="",
clear_plots=False,
plot_format="png",
dpi=100,
):
if plot_verbosity is not None:
if doc_db.verbosity:
if doc_db.verbosity > plot_verbosity:
return
if not do_plot:
if re.findall(regex_secname, doc_db.name):
do_plot = True
if do_plot and doc_db.plotter and doc_db.fitter:
plot_fname = plot_fname_func(
section_history,
doc_db,
with_folder=True,
)
print("PLOTTING: ", plot_fname)
Fb = doc_db.plotter(doc_db.fitter)
Fb.formats[plot_format].use = True
Fb.formats[plot_format].facecolorize = True
Fb.formats[plot_format].dpi = dpi
Fb.save_show = False
Fb.save(plot_fname, fixname=False)
elif clear_plots:
plot_fname = plot_fname_func(
section_history,
doc_db,
with_folder=True,
)
print("REMOVING: ", plot_fname)
try:
os.remove(plot_fname + "." + plot_format)
except OSError as e:
if e.errno != errno.ENOENT:
print(e)
if doc_db.sequence:
for idx, seq_name in enumerate(doc_db.sequence):
docdb_md_plots(
doc_db[seq_name],
section_history=section_history + [idx + 1],
plot_verbosity=plot_verbosity,
plot_fname_func=plot_fname_func,
do_plot=do_plot,
regex_secname=regex_secname,
clear_plots=clear_plots,
plot_format=plot_format,
dpi=dpi,
)
return
def docdb2markdown(
folder_name,
doc_db_root,
md_name="digest.md",
include_plots=True,
include_md=True,
plot_verbosity=None,
md_verbosity=None,
clear_plots=False,
regex_plotsections=None,
ipy_display=False,
use_ext=True,
plot_format="png",
dpi=100,
exporter=None,
MP_workers=1,
):
try:
os.makedirs(folder_name)
except OSError as e:
if e.errno != errno.EEXIST:
raise
def plot_fname_func(
section_history,
doc_db,
with_folder=True,
):
section_link = "-".join([str(n) for n in section_history])
if section_link:
fname = "plot-" + section_link
else:
fname = "plot-main"
fname = fname.replace("_", "-")
if with_folder:
return path.join(folder_name, fname)
else:
return fname
if regex_plotsections is not None:
do_plot = False
else:
do_plot = True
if include_md:
with open(path.join(folder_name, md_name), "w") as F_md:
docdb_md_section(
F_md,
doc_db_root,
section_history=[],
heading_level=0,
md_verbosity=None,
plot_fname_func=plot_fname_func,
plot_verbosity=plot_verbosity,
regex_secname=regex_plotsections,
do_plot=do_plot,
plot_format=plot_format,
use_ext=use_ext,
)
if include_plots:
with asavefig.pool(workers=MP_workers):
docdb_md_plots(
doc_db_root,
section_history=[],
plot_verbosity=plot_verbosity,
plot_fname_func=plot_fname_func,
regex_secname=regex_plotsections,
do_plot=do_plot,
clear_plots=clear_plots,
plot_format=plot_format,
dpi=dpi,
)
if ipy_display:
with open(path.join(folder_name, md_name), "r") as F_md:
md_data = F_md.read()
md_data = re.sub(r"\((.*)\.png\)", r"({0}/\1.png)".format(folder_name), md_data)
try:
from IPython.display import display_markdown
except ImportError:
print("Can't Import IPython.display")
else:
display_markdown(md_data, raw=True)
if exporter is not None:
exporter(
md_name=md_name,
folder=folder_name,
)
return
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
10937,
29928,
29990,
29899,
29931,
293,
1947,
29899,
12889,
29901,
13380,
29899,
29906,
29889,
29900,
13,
29937,
10937,
29928,
29990,
29899,
2283,
11882,
1266,
1626,
29901,
29871,
30211,
29871,
29906,
29900,
29906,
29896,
16167,
8907,
310,
17968,
29889,
13,
29937,
10937,
29928,
29990,
29899,
2283,
11882,
1266,
1626,
29901,
29871,
30211,
29871,
29906,
29900,
29906,
29896,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
29937,
6058,
12107,
29901,
15717,
881,
1842,
1009,
20706,
297,
3022,
275,
873,
297,
6058,
12107,
13,
29937,
411,
4902,
10583,
297,
2752,
2066,
29892,
6589,
29892,
322,
1574,
19651,
29889,
13,
15945,
29908,
13,
15945,
29908,
13,
13,
5215,
2897,
13,
5215,
337,
13,
5215,
4589,
1217,
13,
5215,
2897,
29889,
2084,
408,
2224,
13,
13,
3166,
6317,
4422,
1907,
29889,
29885,
572,
1053,
408,
1351,
1003,
13,
3166,
6317,
4422,
1907,
29889,
19651,
1053,
7164,
29918,
5992,
13,
13,
13,
1753,
4839,
29918,
1220,
29898,
5563,
29922,
29900,
29892,
4004,
29918,
18434,
29922,
3285,
28435,
13776,
1125,
13,
1678,
565,
451,
28435,
29901,
13,
4706,
28435,
353,
5124,
13,
1678,
4004,
29918,
2324,
353,
376,
1213,
29889,
7122,
4197,
710,
29898,
29876,
29897,
363,
302,
297,
4004,
29918,
18434,
2314,
13,
1678,
565,
4004,
29918,
2324,
29901,
13,
4706,
4004,
29918,
2324,
353,
376,
23230,
29900,
10114,
11393,
4830,
29898,
2042,
29918,
2324,
29897,
13,
1678,
1683,
29901,
13,
4706,
4004,
29918,
2324,
353,
376,
376,
13,
1678,
736,
4852,
29937,
29908,
334,
313,
5563,
718,
29871,
29896,
876,
718,
4004,
29918,
2324,
718,
28435,
13,
13,
13,
1753,
1574,
2585,
29918,
3487,
29918,
2042,
29898,
13,
1678,
383,
29918,
3487,
29892,
13,
1678,
1574,
29918,
2585,
29892,
13,
1678,
4004,
29918,
18434,
29892,
13,
1678,
28435,
29918,
5563,
29892,
13,
1678,
22821,
29918,
18248,
359,
537,
29922,
8516,
29892,
13,
1678,
6492,
29918,
18248,
359,
537,
29922,
8516,
29892,
13,
1678,
6492,
29918,
29888,
978,
29918,
9891,
29922,
8516,
29892,
13,
1678,
437,
29918,
5317,
29922,
5574,
29892,
13,
1678,
6528,
29918,
3471,
978,
543,
613,
13,
1678,
671,
29918,
1062,
29922,
5574,
29892,
13,
1678,
6492,
29918,
4830,
543,
2732,
613,
13,
1125,
13,
1678,
565,
22821,
29918,
18248,
359,
537,
338,
451,
6213,
29901,
13,
4706,
565,
1574,
29918,
2585,
29889,
18248,
359,
537,
29901,
13,
9651,
565,
1574,
29918,
2585,
29889,
18248,
359,
537,
1405,
22821,
29918,
18248,
359,
537,
29901,
13,
18884,
736,
13,
13,
1678,
4839,
353,
4839,
29918,
1220,
29898,
13,
4706,
28435,
29918,
5563,
29892,
13,
4706,
4004,
29918,
18434,
29892,
13,
4706,
1574,
29918,
2585,
29889,
978,
29892,
13,
1678,
1723,
13,
13,
1678,
3454,
353,
518,
13,
4706,
4839,
29892,
13,
4706,
12633,
13,
1678,
4514,
13,
13,
1678,
565,
1574,
29918,
2585,
29889,
5696,
29901,
13,
4706,
3454,
29889,
4397,
703,
29958,
23230,
29900,
10114,
1642,
4830,
29898,
12791,
29918,
5992,
29898,
1514,
29918,
2585,
29889,
5696,
4961,
13,
4706,
3454,
29889,
4397,
703,
1159,
13,
13,
1678,
565,
1574,
29918,
2585,
29889,
12717,
29901,
13,
4706,
3454,
29889,
4397,
29898,
12791,
29918,
5992,
29898,
1514,
29918,
2585,
29889,
12717,
876,
13,
4706,
3454,
29889,
4397,
703,
1159,
13,
13,
1678,
565,
451,
437,
29918,
5317,
29901,
13,
4706,
565,
337,
29889,
2886,
497,
29898,
13087,
29918,
3471,
978,
29892,
1574,
29918,
2585,
29889,
978,
1125,
13,
9651,
437,
29918,
5317,
353,
5852,
13,
13,
1678,
674,
29918,
5317,
353,
5852,
13,
1678,
565,
6492,
29918,
18248,
359,
537,
338,
451,
6213,
29901,
13,
4706,
565,
1574,
29918,
2585,
29889,
18248,
359,
537,
29901,
13,
9651,
565,
1574,
29918,
2585,
29889,
18248,
359,
537,
1405,
6492,
29918,
18248,
359,
537,
29901,
13,
18884,
674,
29918,
5317,
353,
7700,
13,
13,
1678,
565,
437,
29918,
5317,
322,
674,
29918,
5317,
322,
1574,
29918,
2585,
29889,
5317,
357,
322,
1574,
29918,
2585,
29889,
29888,
5171,
29901,
13,
4706,
3611,
353,
1574,
29918,
2585,
29889,
5317,
29918,
3257,
13,
4706,
565,
451,
3611,
29901,
13,
9651,
3611,
353,
5124,
13,
4706,
6492,
29918,
29888,
978,
353,
6492,
29918,
29888,
978,
29918,
9891,
29898,
13,
9651,
4004,
29918,
18434,
29892,
13,
9651,
1574,
29918,
2585,
29892,
13,
9651,
411,
29918,
12083,
29922,
8824,
29892,
13,
4706,
1723,
13,
4706,
565,
671,
29918,
1062,
29901,
13,
9651,
1294,
353,
376,
1213,
718,
6492,
29918,
4830,
13,
4706,
1683,
29901,
13,
9651,
1294,
353,
5124,
13,
4706,
3454,
29889,
4397,
703,
29991,
19660,
3257,
18456,
29912,
29900,
1800,
1642,
4830,
29898,
5317,
29918,
29888,
978,
718,
1294,
29892,
3611,
29922,
3257,
876,
13,
4706,
3454,
29889,
4397,
703,
1159,
13,
13,
1678,
383,
29918,
3487,
29889,
8231,
24210,
3552,
29880,
718,
6634,
29876,
29908,
363,
301,
297,
3454,
876,
13,
13,
1678,
565,
1574,
29918,
2585,
29889,
16506,
29901,
13,
4706,
363,
22645,
29892,
19359,
29918,
978,
297,
26985,
29898,
1514,
29918,
2585,
29889,
16506,
1125,
13,
9651,
1574,
2585,
29918,
3487,
29918,
2042,
29898,
13,
18884,
383,
29918,
3487,
29892,
13,
18884,
1574,
29918,
2585,
29961,
11762,
29918,
978,
1402,
13,
18884,
4004,
29918,
18434,
29922,
2042,
29918,
18434,
718,
518,
13140,
718,
29871,
29896,
1402,
13,
18884,
28435,
29918,
5563,
29922,
2813,
292,
29918,
5563,
718,
29871,
29896,
29892,
13,
18884,
22821,
29918,
18248,
359,
537,
29922,
3487,
29918,
18248,
359,
537,
29892,
13,
18884,
6492,
29918,
18248,
359,
537,
29922,
5317,
29918,
18248,
359,
537,
29892,
13,
18884,
6492,
29918,
29888,
978,
29918,
9891,
29922,
5317,
29918,
29888,
978,
29918,
9891,
29892,
13,
18884,
437,
29918,
5317,
29922,
1867,
29918,
5317,
29892,
13,
18884,
6528,
29918,
3471,
978,
29922,
13087,
29918,
3471,
978,
29892,
13,
18884,
6492,
29918,
4830,
29922,
5317,
29918,
4830,
29892,
13,
18884,
671,
29918,
1062,
29922,
1509,
29918,
1062,
29892,
13,
9651,
1723,
13,
1678,
736,
13,
13,
13,
1753,
1574,
2585,
29918,
3487,
29918,
26762,
29898,
13,
1678,
1574,
29918,
2585,
29892,
13,
1678,
4004,
29918,
18434,
29892,
13,
1678,
6492,
29918,
18248,
359,
537,
29922,
8516,
29892,
13,
1678,
6492,
29918,
29888,
978,
29918,
9891,
29922,
8516,
29892,
13,
1678,
437,
29918,
5317,
29922,
5574,
29892,
13,
1678,
6528,
29918,
3471,
978,
543,
613,
13,
1678,
2821,
29918,
26762,
29922,
8824,
29892,
13,
1678,
6492,
29918,
4830,
543,
2732,
613,
13,
1678,
270,
1631,
29922,
29896,
29900,
29900,
29892,
13,
1125,
13,
1678,
565,
6492,
29918,
18248,
359,
537,
338,
451,
6213,
29901,
13,
4706,
565,
1574,
29918,
2585,
29889,
18248,
359,
537,
29901,
13,
9651,
565,
1574,
29918,
2585,
29889,
18248,
359,
537,
1405,
6492,
29918,
18248,
359,
537,
29901,
13,
18884,
736,
13,
13,
1678,
565,
451,
437,
29918,
5317,
29901,
13,
4706,
565,
337,
29889,
2886,
497,
29898,
13087,
29918,
3471,
978,
29892,
1574,
29918,
2585,
29889,
978,
1125,
13,
9651,
437,
29918,
5317,
353,
5852,
13,
13,
1678,
565,
437,
29918,
5317,
322,
1574,
29918,
2585,
29889,
5317,
357,
322,
1574,
29918,
2585,
29889,
29888,
5171,
29901,
13,
4706,
6492,
29918,
29888,
978,
353,
6492,
29918,
29888,
978,
29918,
9891,
29898,
13,
9651,
4004,
29918,
18434,
29892,
13,
9651,
1574,
29918,
2585,
29892,
13,
9651,
411,
29918,
12083,
29922,
5574,
29892,
13,
4706,
1723,
13,
4706,
1596,
703,
7390,
2891,
29911,
4214,
29901,
9162,
6492,
29918,
29888,
978,
29897,
13,
4706,
383,
29890,
353,
1574,
29918,
2585,
29889,
5317,
357,
29898,
1514,
29918,
2585,
29889,
29888,
5171,
29897,
13,
4706,
383,
29890,
29889,
689,
1446,
29961,
5317,
29918,
4830,
1822,
1509,
353,
5852,
13,
4706,
383,
29890,
29889,
689,
1446,
29961,
5317,
29918,
4830,
1822,
2161,
2780,
675,
353,
5852,
13,
4706,
383,
29890,
29889,
689,
1446,
29961,
5317,
29918,
4830,
1822,
29881,
1631,
353,
270,
1631,
13,
4706,
383,
29890,
29889,
7620,
29918,
4294,
353,
7700,
13,
4706,
383,
29890,
29889,
7620,
29898,
5317,
29918,
29888,
978,
29892,
2329,
978,
29922,
8824,
29897,
13,
1678,
25342,
2821,
29918,
26762,
29901,
13,
4706,
6492,
29918,
29888,
978,
353,
6492,
29918,
29888,
978,
29918,
9891,
29898,
13,
9651,
4004,
29918,
18434,
29892,
13,
9651,
1574,
29918,
2585,
29892,
13,
9651,
411,
29918,
12083,
29922,
5574,
29892,
13,
4706,
1723,
13,
4706,
1596,
703,
1525,
6720,
29963,
4214,
29901,
9162,
6492,
29918,
29888,
978,
29897,
13,
4706,
1018,
29901,
13,
9651,
2897,
29889,
5992,
29898,
5317,
29918,
29888,
978,
718,
376,
1213,
718,
6492,
29918,
4830,
29897,
13,
4706,
5174,
438,
29173,
408,
321,
29901,
13,
9651,
565,
321,
29889,
3127,
1217,
2804,
4589,
1217,
29889,
1430,
29949,
3919,
29901,
13,
18884,
1596,
29898,
29872,
29897,
13,
13,
1678,
565,
1574,
29918,
2585,
29889,
16506,
29901,
13,
4706,
363,
22645,
29892,
19359,
29918,
978,
297,
26985,
29898,
1514,
29918,
2585,
29889,
16506,
1125,
13,
9651,
1574,
2585,
29918,
3487,
29918,
26762,
29898,
13,
18884,
1574,
29918,
2585,
29961,
11762,
29918,
978,
1402,
13,
18884,
4004,
29918,
18434,
29922,
2042,
29918,
18434,
718,
518,
13140,
718,
29871,
29896,
1402,
13,
18884,
6492,
29918,
18248,
359,
537,
29922,
5317,
29918,
18248,
359,
537,
29892,
13,
18884,
6492,
29918,
29888,
978,
29918,
9891,
29922,
5317,
29918,
29888,
978,
29918,
9891,
29892,
13,
18884,
437,
29918,
5317,
29922,
1867,
29918,
5317,
29892,
13,
18884,
6528,
29918,
3471,
978,
29922,
13087,
29918,
3471,
978,
29892,
13,
18884,
2821,
29918,
26762,
29922,
8551,
29918,
26762,
29892,
13,
18884,
6492,
29918,
4830,
29922,
5317,
29918,
4830,
29892,
13,
18884,
270,
1631,
29922,
29881,
1631,
29892,
13,
9651,
1723,
13,
1678,
736,
13,
13,
13,
1753,
1574,
2585,
29906,
3502,
3204,
29898,
13,
1678,
4138,
29918,
978,
29892,
13,
1678,
1574,
29918,
2585,
29918,
4632,
29892,
13,
1678,
22821,
29918,
978,
543,
7501,
342,
29889,
3487,
613,
13,
1678,
3160,
29918,
26762,
29922,
5574,
29892,
13,
1678,
3160,
29918,
3487,
29922,
5574,
29892,
13,
1678,
6492,
29918,
18248,
359,
537,
29922,
8516,
29892,
13,
1678,
22821,
29918,
18248,
359,
537,
29922,
8516,
29892,
13,
1678,
2821,
29918,
26762,
29922,
8824,
29892,
13,
1678,
6528,
29918,
5317,
27117,
29922,
8516,
29892,
13,
1678,
474,
2272,
29918,
4990,
29922,
8824,
29892,
13,
1678,
671,
29918,
1062,
29922,
5574,
29892,
13,
1678,
6492,
29918,
4830,
543,
2732,
613,
13,
1678,
270,
1631,
29922,
29896,
29900,
29900,
29892,
13,
1678,
1518,
9555,
29922,
8516,
29892,
13,
1678,
16379,
29918,
1287,
414,
29922,
29896,
29892,
13,
1125,
13,
1678,
1018,
29901,
13,
4706,
2897,
29889,
29885,
12535,
12935,
29898,
12083,
29918,
978,
29897,
13,
1678,
5174,
438,
29173,
408,
321,
29901,
13,
4706,
565,
321,
29889,
3127,
1217,
2804,
4589,
1217,
29889,
29923,
5746,
9047,
29901,
13,
9651,
12020,
13,
13,
1678,
822,
6492,
29918,
29888,
978,
29918,
9891,
29898,
13,
4706,
4004,
29918,
18434,
29892,
13,
4706,
1574,
29918,
2585,
29892,
13,
4706,
411,
29918,
12083,
29922,
5574,
29892,
13,
268,
1125,
13,
4706,
4004,
29918,
2324,
353,
11663,
1642,
7122,
4197,
710,
29898,
29876,
29897,
363,
302,
297,
4004,
29918,
18434,
2314,
13,
4706,
565,
4004,
29918,
2324,
29901,
13,
9651,
285,
978,
353,
376,
5317,
29899,
29908,
718,
4004,
29918,
2324,
13,
4706,
1683,
29901,
13,
9651,
285,
978,
353,
376,
5317,
29899,
3396,
29908,
13,
4706,
285,
978,
353,
285,
978,
29889,
6506,
703,
29918,
613,
11663,
1159,
13,
4706,
565,
411,
29918,
12083,
29901,
13,
9651,
736,
2224,
29889,
7122,
29898,
12083,
29918,
978,
29892,
285,
978,
29897,
13,
4706,
1683,
29901,
13,
9651,
736,
285,
978,
13,
13,
1678,
565,
6528,
29918,
5317,
27117,
338,
451,
6213,
29901,
13,
4706,
437,
29918,
5317,
353,
7700,
13,
1678,
1683,
29901,
13,
4706,
437,
29918,
5317,
353,
5852,
13,
13,
1678,
565,
3160,
29918,
3487,
29901,
13,
4706,
411,
1722,
29898,
2084,
29889,
7122,
29898,
12083,
29918,
978,
29892,
22821,
29918,
978,
511,
376,
29893,
1159,
408,
383,
29918,
3487,
29901,
13,
9651,
1574,
2585,
29918,
3487,
29918,
2042,
29898,
13,
18884,
383,
29918,
3487,
29892,
13,
18884,
1574,
29918,
2585,
29918,
4632,
29892,
13,
18884,
4004,
29918,
18434,
11759,
1402,
13,
18884,
28435,
29918,
5563,
29922,
29900,
29892,
13,
18884,
22821,
29918,
18248,
359,
537,
29922,
8516,
29892,
13,
18884,
6492,
29918,
29888,
978,
29918,
9891,
29922,
5317,
29918,
29888,
978,
29918,
9891,
29892,
13,
18884,
6492,
29918,
18248,
359,
537,
29922,
5317,
29918,
18248,
359,
537,
29892,
13,
18884,
6528,
29918,
3471,
978,
29922,
13087,
29918,
5317,
27117,
29892,
13,
18884,
437,
29918,
5317,
29922,
1867,
29918,
5317,
29892,
13,
18884,
6492,
29918,
4830,
29922,
5317,
29918,
4830,
29892,
13,
18884,
671,
29918,
1062,
29922,
1509,
29918,
1062,
29892,
13,
9651,
1723,
13,
13,
1678,
565,
3160,
29918,
26762,
29901,
13,
4706,
411,
408,
1351,
1003,
29889,
10109,
29898,
1287,
414,
29922,
3580,
29918,
1287,
414,
1125,
13,
9651,
1574,
2585,
29918,
3487,
29918,
26762,
29898,
13,
18884,
1574,
29918,
2585,
29918,
4632,
29892,
13,
18884,
4004,
29918,
18434,
11759,
1402,
13,
18884,
6492,
29918,
18248,
359,
537,
29922,
5317,
29918,
18248,
359,
537,
29892,
13,
18884,
6492,
29918,
29888,
978,
29918,
9891,
29922,
5317,
29918,
29888,
978,
29918,
9891,
29892,
13,
18884,
6528,
29918,
3471,
978,
29922,
13087,
29918,
5317,
27117,
29892,
13,
18884,
437,
29918,
5317,
29922,
1867,
29918,
5317,
29892,
13,
18884,
2821,
29918,
26762,
29922,
8551,
29918,
26762,
29892,
13,
18884,
6492,
29918,
4830,
29922,
5317,
29918,
4830,
29892,
13,
18884,
270,
1631,
29922,
29881,
1631,
29892,
13,
9651,
1723,
13,
13,
1678,
565,
474,
2272,
29918,
4990,
29901,
13,
4706,
411,
1722,
29898,
2084,
29889,
7122,
29898,
12083,
29918,
978,
29892,
22821,
29918,
978,
511,
376,
29878,
1159,
408,
383,
29918,
3487,
29901,
13,
9651,
22821,
29918,
1272,
353,
383,
29918,
3487,
29889,
949,
580,
13,
4706,
22821,
29918,
1272,
353,
337,
29889,
1491,
29898,
29878,
26732,
3552,
5575,
2144,
29889,
2732,
7244,
613,
364,
29908,
3319,
29900,
6822,
29905,
29896,
29889,
2732,
29897,
1642,
4830,
29898,
12083,
29918,
978,
511,
22821,
29918,
1272,
29897,
13,
4706,
1018,
29901,
13,
9651,
515,
5641,
1656,
29889,
4990,
1053,
2479,
29918,
3502,
3204,
13,
4706,
5174,
16032,
2392,
29901,
13,
9651,
1596,
703,
6028,
29915,
29873,
16032,
5641,
1656,
29889,
4990,
1159,
13,
4706,
1683,
29901,
13,
9651,
2479,
29918,
3502,
3204,
29898,
3487,
29918,
1272,
29892,
10650,
29922,
5574,
29897,
13,
13,
1678,
565,
1518,
9555,
338,
451,
6213,
29901,
13,
4706,
1518,
9555,
29898,
13,
9651,
22821,
29918,
978,
29922,
3487,
29918,
978,
29892,
13,
9651,
4138,
29922,
12083,
29918,
978,
29892,
13,
4706,
1723,
13,
1678,
736,
13,
2
] |
data_models/aws_cloudtrail_data_model.py | panther-labs/panther-cli | 4 | 131659 | <reponame>panther-labs/panther-cli<gh_stars>1-10
import ipaddress
import panther_event_type_helpers as event_type
from panther_base_helpers import deep_get
def get_event_type(event):
# currently, only tracking a few event types
if (
event.get("eventName") == "ConsoleLogin"
and deep_get(event, "userIdentity", "type") == "IAMUser"
):
if deep_get(event, "responseElements", "ConsoleLogin") == "Failure":
return event_type.FAILED_LOGIN
if deep_get(event, "responseElements", "ConsoleLogin") == "Success":
return event_type.SUCCESSFUL_LOGIN
if event.get("eventName") == "CreateUser":
return event_type.USER_ACCOUNT_CREATED
if event.get("eventName") == "CreateAccountResult":
return event_type.ACCOUNT_CREATED
return None
def load_ip_address(event):
"""
CloudTrail occassionally sets non-IPs in the sourceIPAddress field.
This method ensures that either an IPv4 or IPv6 address is always returned.
"""
source_ip = event.get("sourceIPAddress")
if not source_ip:
return None
try:
ipaddress.IPv4Address(source_ip)
except ipaddress.AddressValueError:
try:
ipaddress.IPv6Address(source_ip)
except ipaddress.AddressValueError:
return None
return source_ip
| [
1,
529,
276,
1112,
420,
29958,
8357,
721,
29899,
29880,
6897,
29914,
8357,
721,
29899,
11303,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
10377,
7328,
13,
13,
5215,
7243,
721,
29918,
3696,
29918,
1853,
29918,
3952,
6774,
408,
1741,
29918,
1853,
13,
3166,
7243,
721,
29918,
3188,
29918,
3952,
6774,
1053,
6483,
29918,
657,
13,
13,
13,
1753,
679,
29918,
3696,
29918,
1853,
29898,
3696,
1125,
13,
1678,
396,
5279,
29892,
871,
23110,
263,
2846,
1741,
4072,
13,
1678,
565,
313,
13,
4706,
1741,
29889,
657,
703,
3696,
1170,
1159,
1275,
376,
20008,
11049,
29908,
13,
4706,
322,
6483,
29918,
657,
29898,
3696,
29892,
376,
1792,
18415,
613,
376,
1853,
1159,
1275,
376,
29902,
5194,
2659,
29908,
13,
268,
1125,
13,
4706,
565,
6483,
29918,
657,
29898,
3696,
29892,
376,
5327,
18868,
613,
376,
20008,
11049,
1159,
1275,
376,
24155,
1115,
13,
9651,
736,
1741,
29918,
1853,
29889,
4519,
29902,
20566,
29918,
14480,
1177,
13,
4706,
565,
6483,
29918,
657,
29898,
3696,
29892,
376,
5327,
18868,
613,
376,
20008,
11049,
1159,
1275,
376,
14191,
1115,
13,
9651,
736,
1741,
29918,
1853,
29889,
14605,
26925,
29943,
13309,
29918,
14480,
1177,
13,
1678,
565,
1741,
29889,
657,
703,
3696,
1170,
1159,
1275,
376,
4391,
2659,
1115,
13,
4706,
736,
1741,
29918,
1853,
29889,
11889,
29918,
2477,
18736,
29918,
27045,
29928,
13,
1678,
565,
1741,
29889,
657,
703,
3696,
1170,
1159,
1275,
376,
4391,
10601,
3591,
1115,
13,
4706,
736,
1741,
29918,
1853,
29889,
2477,
18736,
29918,
27045,
29928,
13,
1678,
736,
6213,
13,
13,
13,
1753,
2254,
29918,
666,
29918,
7328,
29898,
3696,
1125,
13,
1678,
9995,
13,
1678,
14293,
5323,
309,
2179,
465,
291,
635,
6166,
1661,
29899,
5690,
29879,
297,
278,
2752,
5690,
7061,
1746,
29889,
13,
1678,
910,
1158,
5662,
1973,
393,
2845,
385,
5641,
29894,
29946,
470,
5641,
29894,
29953,
3211,
338,
2337,
4133,
29889,
13,
1678,
9995,
13,
1678,
2752,
29918,
666,
353,
1741,
29889,
657,
703,
4993,
5690,
7061,
1159,
13,
1678,
565,
451,
2752,
29918,
666,
29901,
13,
4706,
736,
6213,
13,
1678,
1018,
29901,
13,
4706,
10377,
7328,
29889,
5690,
29894,
29946,
7061,
29898,
4993,
29918,
666,
29897,
13,
1678,
5174,
10377,
7328,
29889,
7061,
1917,
2392,
29901,
13,
4706,
1018,
29901,
13,
9651,
10377,
7328,
29889,
5690,
29894,
29953,
7061,
29898,
4993,
29918,
666,
29897,
13,
4706,
5174,
10377,
7328,
29889,
7061,
1917,
2392,
29901,
13,
9651,
736,
6213,
13,
1678,
736,
2752,
29918,
666,
13,
2
] |
xquant/engine/commission.py | wbpyer/wbpyer | 2 | 88250 | <reponame>wbpyer/wbpyer<filename>xquant/engine/commission.py
# -*- coding: utf-8 -*-
"""
Commission 佣金+费税模型
New in V0.3.4
@author:
@version: 0.4
"""
from abc import ABCMeta, abstractmethod
import math
class Commission(object):
"""
佣金和费税
"""
__metaclass__ = ABCMeta
@abstractmethod
def get_commission(self):
raise NotImplementedError("Should implement get_commission()!")
class ZeroCommission(Commission):
"""
无费率
"""
def get_commission(self):
return 0.0
def __repr__(self):
return "{class_name}".format(class_name=self.__class__.__name__)
class PerShareCommission(Commission):
"""
基于交易份额(或称数量)计算手续费,一般是上交所的过户费,每1000股收费1元
"""
def __init__(self, rate=0.001, min_comm=0.0):
self.rate_per_share = rate
self.min_comm = min_comm
def get_commission(self, quantity):
return max(math.ceil(quantity * self.rate_per_share), self.min_comm)
def __repr__(self):
return "{class_name}(rate_per_share={rate}, min_commission={min_comm})".format(
class_name=self.__class__.__name__, rate=self.rate_per_share, min_comm=self.min_comm)
class PerMoneyCommission(Commission):
"""
基于交易花费(trade cost)计算手续费,可以是期货点数或者人民币,允许设置最小手续费
"""
def __init__(self, rate=1.5e-4, min_comm=0.0):
"""
例如买焦合约共计10000点(单份合约*数量),默认费率万分1.5,则交易成本是1.5个点
参数:
rate: 单边费率
min_comm: 最低手续费,默认为股票5元
"""
self.rate_per_money = float(rate)
self.min_comm = float(min_comm)
def get_commission(self, full_cost):
return max(full_cost * self.rate_per_money, self.min_comm)
def __repr__(self):
return "{class_name}(rate_per_money={rate}, min_commission={min_comm})".format(
class_name=self.__class__.__name__, rate=self.rate_per_money, min_comm=self.min_comm)
class PerTradeCommission(Commission):
"""
基于交易次数计算手续费
"""
pass
| [
1,
529,
276,
1112,
420,
29958,
29893,
29890,
2272,
261,
29914,
29893,
29890,
2272,
261,
29966,
9507,
29958,
29916,
12150,
29914,
10599,
29914,
2055,
2333,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
15945,
29908,
13,
5261,
2333,
29871,
231,
192,
166,
30659,
29974,
235,
183,
188,
234,
171,
145,
31382,
30883,
13,
4373,
297,
478,
29900,
29889,
29941,
29889,
29946,
13,
13,
29992,
8921,
29901,
13,
29992,
3259,
29901,
29871,
29900,
29889,
29946,
13,
15945,
29908,
13,
13,
3166,
25638,
1053,
16417,
19346,
29892,
9846,
5696,
13,
5215,
5844,
13,
13,
13,
1990,
11444,
29898,
3318,
1125,
13,
1678,
9995,
13,
268,
231,
192,
166,
30659,
30503,
235,
183,
188,
234,
171,
145,
13,
1678,
9995,
13,
1678,
4770,
2527,
562,
605,
1649,
353,
16417,
19346,
13,
13,
1678,
732,
16595,
5696,
13,
1678,
822,
679,
29918,
2055,
2333,
29898,
1311,
1125,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
703,
26857,
2334,
679,
29918,
2055,
2333,
580,
29991,
1159,
13,
13,
13,
1990,
28933,
5261,
2333,
29898,
5261,
2333,
1125,
13,
1678,
9995,
13,
268,
31352,
235,
183,
188,
234,
145,
138,
13,
1678,
9995,
13,
1678,
822,
679,
29918,
2055,
2333,
29898,
1311,
1125,
13,
4706,
736,
29871,
29900,
29889,
29900,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
29850,
1990,
29918,
978,
29913,
1642,
4830,
29898,
1990,
29918,
978,
29922,
1311,
17255,
1990,
1649,
17255,
978,
1649,
29897,
13,
13,
13,
1990,
2431,
2713,
598,
5261,
2333,
29898,
5261,
2333,
1125,
13,
1678,
9995,
13,
268,
31359,
30909,
31398,
233,
155,
150,
231,
190,
192,
236,
165,
160,
30419,
31391,
31685,
30354,
31180,
30409,
31466,
31565,
30880,
234,
190,
176,
235,
183,
188,
30214,
30287,
235,
139,
175,
30392,
30429,
31398,
30744,
30210,
31138,
31229,
235,
183,
188,
30214,
31951,
29896,
29900,
29900,
29900,
235,
133,
164,
31997,
235,
183,
188,
29896,
30824,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
6554,
29922,
29900,
29889,
29900,
29900,
29896,
29892,
1375,
29918,
2055,
29922,
29900,
29889,
29900,
1125,
13,
4706,
1583,
29889,
10492,
29918,
546,
29918,
13653,
353,
6554,
13,
4706,
1583,
29889,
1195,
29918,
2055,
353,
1375,
29918,
2055,
13,
13,
1678,
822,
679,
29918,
2055,
2333,
29898,
1311,
29892,
14728,
1125,
13,
4706,
736,
4236,
29898,
755,
29889,
27696,
29898,
22640,
334,
1583,
29889,
10492,
29918,
546,
29918,
13653,
511,
1583,
29889,
1195,
29918,
2055,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
29850,
1990,
29918,
978,
2119,
10492,
29918,
546,
29918,
13653,
3790,
10492,
1118,
1375,
29918,
2055,
2333,
3790,
1195,
29918,
2055,
1800,
1642,
4830,
29898,
13,
9651,
770,
29918,
978,
29922,
1311,
17255,
1990,
1649,
17255,
978,
1649,
29892,
6554,
29922,
1311,
29889,
10492,
29918,
546,
29918,
13653,
29892,
1375,
29918,
2055,
29922,
1311,
29889,
1195,
29918,
2055,
29897,
13,
13,
13,
1990,
2431,
29924,
4992,
5261,
2333,
29898,
5261,
2333,
1125,
13,
1678,
9995,
13,
268,
31359,
30909,
31398,
233,
155,
150,
30830,
235,
183,
188,
30419,
3018,
311,
3438,
30409,
31466,
31565,
30880,
234,
190,
176,
235,
183,
188,
30214,
30682,
30651,
30392,
31117,
235,
183,
170,
30940,
30354,
31391,
30767,
30313,
30855,
232,
187,
132,
30214,
232,
136,
132,
235,
177,
187,
30872,
30669,
30878,
30446,
30880,
234,
190,
176,
235,
183,
188,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
6554,
29922,
29896,
29889,
29945,
29872,
29899,
29946,
29892,
1375,
29918,
2055,
29922,
29900,
29889,
29900,
1125,
13,
4706,
9995,
13,
308,
31507,
30847,
231,
188,
179,
234,
135,
169,
30733,
234,
189,
169,
31611,
31466,
29896,
29900,
29900,
29900,
29900,
30940,
30419,
31166,
231,
190,
192,
30733,
234,
189,
169,
29930,
30354,
31180,
30409,
30214,
31735,
31439,
235,
183,
188,
234,
145,
138,
31535,
30748,
29896,
29889,
29945,
30214,
31403,
31398,
233,
155,
150,
30494,
30346,
30392,
29896,
29889,
29945,
30502,
30940,
13,
308,
31125,
30354,
30383,
13,
4706,
6554,
29901,
29871,
31166,
31993,
235,
183,
188,
234,
145,
138,
13,
4706,
1375,
29918,
2055,
29901,
29871,
30878,
231,
192,
145,
30880,
234,
190,
176,
235,
183,
188,
30214,
31735,
31439,
30573,
235,
133,
164,
234,
168,
171,
29945,
30824,
13,
4706,
9995,
13,
4706,
1583,
29889,
10492,
29918,
546,
29918,
29885,
4992,
353,
5785,
29898,
10492,
29897,
13,
4706,
1583,
29889,
1195,
29918,
2055,
353,
5785,
29898,
1195,
29918,
2055,
29897,
13,
13,
1678,
822,
679,
29918,
2055,
2333,
29898,
1311,
29892,
2989,
29918,
18253,
1125,
13,
4706,
736,
4236,
29898,
8159,
29918,
18253,
334,
1583,
29889,
10492,
29918,
546,
29918,
29885,
4992,
29892,
1583,
29889,
1195,
29918,
2055,
29897,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
29850,
1990,
29918,
978,
2119,
10492,
29918,
546,
29918,
29885,
4992,
3790,
10492,
1118,
1375,
29918,
2055,
2333,
3790,
1195,
29918,
2055,
1800,
1642,
4830,
29898,
13,
9651,
770,
29918,
978,
29922,
1311,
17255,
1990,
1649,
17255,
978,
1649,
29892,
6554,
29922,
1311,
29889,
10492,
29918,
546,
29918,
29885,
4992,
29892,
1375,
29918,
2055,
29922,
1311,
29889,
1195,
29918,
2055,
29897,
13,
13,
13,
1990,
2431,
5323,
311,
5261,
2333,
29898,
5261,
2333,
1125,
13,
1678,
9995,
13,
268,
31359,
30909,
31398,
233,
155,
150,
30936,
30354,
31466,
31565,
30880,
234,
190,
176,
235,
183,
188,
13,
1678,
9995,
13,
1678,
1209,
13,
2
] |
tests/test_import.py | buzzjmd/keld-python-cli | 1 | 111134 | # -*- coding: utf-8 -*-
import keldcli
def test_import():
assert keldcli
assert keldcli.__title__
assert keldcli.__version__
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
413,
2495,
11303,
13,
13,
13,
1753,
1243,
29918,
5215,
7295,
13,
1678,
4974,
413,
2495,
11303,
13,
1678,
4974,
413,
2495,
11303,
17255,
3257,
1649,
13,
1678,
4974,
413,
2495,
11303,
17255,
3259,
1649,
13,
2
] |
Python/zzz_training_challenge/UdemyPythonPro/Chapter5_Functions/Functions/command_line_arguments2.py | Kreijeck/learning | 0 | 125381 | <filename>Python/zzz_training_challenge/UdemyPythonPro/Chapter5_Functions/Functions/command_line_arguments2.py
import argparse
def main():
# erstellt parser
parser = argparse.ArgumentParser()
# Argumente hinzufügen:
# Name: default mit '--' <- Konvention
# help: Optional als Hilfe
# type: Optional: Typ
# required: Wird das argument pflichtend benötigt
#
parser.add_argument("--age", help="Enter your age (int)", type=int, required=True)
parser.add_argument("--name", help="Enter your name (str)", type=str, required=True)
parser.add_argument("--admin", help="Are your an admin? (bool)", type=bool, required=False)
# Einlesen und Zugreifen der Parameter
args = parser.parse_args()
age = args.age
name = args.name
is_admin = args.admin
print(age, type(age))
print(name, type(name))
# Achtung Argumente werden als Strings abgespeichert!! auch wenn Type = bool
# Das heißt auch wenn im Argument "False" angegeben
# wird ist dies kein leerer String und damit "True"
print(is_admin, type(is_admin))
if __name__ == "__main__":
main()
| [
1,
529,
9507,
29958,
11980,
29914,
5617,
29920,
29918,
26495,
29918,
305,
11768,
29914,
29965,
311,
1357,
11980,
1184,
29914,
1451,
3314,
29945,
29918,
6678,
29879,
29914,
6678,
29879,
29914,
6519,
29918,
1220,
29918,
25699,
29906,
29889,
2272,
13,
5215,
1852,
5510,
13,
13,
1753,
1667,
7295,
13,
1678,
396,
604,
6236,
29873,
13812,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
580,
13,
1678,
396,
23125,
29872,
14638,
29920,
1137,
29993,
1885,
29901,
13,
1678,
396,
4408,
29901,
2322,
1380,
525,
489,
29915,
3705,
5250,
7316,
13,
1678,
396,
1371,
29901,
28379,
1620,
12338,
1725,
13,
1678,
396,
1134,
29901,
28379,
29901,
14213,
13,
1678,
396,
3734,
29901,
399,
1823,
1697,
2980,
282,
29888,
10881,
355,
3856,
9618,
5523,
13,
1678,
396,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
482,
613,
1371,
543,
10399,
596,
5046,
313,
524,
19123,
1134,
29922,
524,
29892,
3734,
29922,
5574,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
978,
613,
1371,
543,
10399,
596,
1024,
313,
710,
19123,
1134,
29922,
710,
29892,
3734,
29922,
5574,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
6406,
613,
1371,
543,
17506,
596,
385,
4113,
29973,
313,
11227,
19123,
1134,
29922,
11227,
29892,
3734,
29922,
8824,
29897,
13,
13,
1678,
396,
2694,
793,
264,
563,
24698,
276,
26651,
589,
24953,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
1678,
5046,
353,
6389,
29889,
482,
13,
1678,
1024,
353,
6389,
29889,
978,
13,
1678,
338,
29918,
6406,
353,
6389,
29889,
6406,
13,
1678,
1596,
29898,
482,
29892,
1134,
29898,
482,
876,
13,
1678,
1596,
29898,
978,
29892,
1134,
29898,
978,
876,
13,
1678,
396,
319,
2570,
686,
23125,
29872,
3678,
1620,
3767,
886,
633,
2710,
412,
436,
814,
6824,
2907,
13588,
5167,
353,
6120,
13,
1678,
396,
29871,
3713,
540,
12044,
29873,
2907,
13588,
527,
23125,
29871,
376,
8824,
29908,
2614,
15398,
13,
1678,
396,
4296,
1752,
2977,
23943,
454,
11377,
1714,
563,
14733,
376,
5574,
29908,
13,
1678,
1596,
29898,
275,
29918,
6406,
29892,
1134,
29898,
275,
29918,
6406,
876,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1667,
580,
13,
2
] |
run_es_repo_mgr.py | wjimenez5271/curator | 0 | 41600 | <reponame>wjimenez5271/curator
#!/usr/bin/env python
"""Wrapper for running es_repo_mgr from source."""
from curator.es_repo_mgr import main
if __name__ == '__main__':
main()
| [
1,
529,
276,
1112,
420,
29958,
29893,
29926,
326,
10281,
29945,
29906,
29955,
29896,
29914,
2764,
1061,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
15945,
29908,
15646,
363,
2734,
831,
29918,
20095,
29918,
29885,
629,
515,
2752,
1213,
15945,
13,
13,
3166,
3151,
1061,
29889,
267,
29918,
20095,
29918,
29885,
629,
1053,
1667,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
13,
2
] |
tests/test_coverage_map.py | LSSTDESC/healsparse | 8 | 123501 | from __future__ import division, absolute_import, print_function
import unittest
import numpy.testing as testing
import numpy as np
import healpy as hp
import healsparse
class CoverageMapTestCase(unittest.TestCase):
def test_coverage_map_float(self):
"""
Test coverage_map functionality for floats
"""
nside_coverage = 16
nside_map = 512
# Number of non-masked pixels in the coverage map resolution
non_masked_px = 10.5
nfine = (nside_map//nside_coverage)**2
full_map = np.zeros(hp.nside2npix(nside_map)) + hp.UNSEEN
full_map[0: int(non_masked_px*nfine)] = 1 + np.random.random(size=int(non_masked_px*nfine))
# Generate sparse map
sparse_map = healsparse.HealSparseMap(healpix_map=full_map, nside_coverage=nside_coverage)
# Build the "original" coverage map
cov_map_orig = self.compute_cov_map(nside_coverage, non_masked_px, nfine,
sparse_map._cov_map.bit_shift)
# Get the built coverage map
cov_map = sparse_map.coverage_map
# Test the coverage map generation and lookup
testing.assert_array_almost_equal(cov_map_orig, cov_map)
def test_coverage_map_int(self):
"""
Test coverage_map functionality for ints
"""
nside_coverage = 16
nside_map = 512
# Number of non-masked pixels in the coverage map resolution
non_masked_px = 10.5
nfine = (nside_map//nside_coverage)**2
sentinel = healsparse.utils.check_sentinel(np.int32, None)
full_map = np.zeros(hp.nside2npix(nside_map), dtype=np.int32) + sentinel
full_map[0: int(non_masked_px*nfine)] = 1
sparse_map = healsparse.HealSparseMap(healpix_map=full_map,
nside_coverage=nside_coverage,
sentinel=sentinel)
cov_map_orig = self.compute_cov_map(nside_coverage, non_masked_px, nfine,
sparse_map._cov_map.bit_shift)
cov_map = sparse_map.coverage_map
testing.assert_array_almost_equal(cov_map_orig, cov_map)
def test_coverage_map_recarray(self):
"""
Test coverage_map functionality for a recarray
"""
nside_coverage = 16
nside_map = 512
# Number of non-masked pixels in the coverage map resolution
non_masked_px = 10.5
nfine = (nside_map//nside_coverage)**2
dtype = [('a', np.float64),
('b', np.int32)]
sparse_map = healsparse.HealSparseMap.make_empty(nside_coverage, nside_map,
dtype, primary='a')
sparse_map.update_values_pix(np.arange(int(non_masked_px*nfine)),
np.ones(1, dtype=dtype))
cov_map_orig = self.compute_cov_map(nside_coverage, non_masked_px, nfine,
sparse_map._cov_map.bit_shift)
cov_map = sparse_map.coverage_map
testing.assert_array_almost_equal(cov_map_orig, cov_map)
def test_coverage_map_widemask(self):
"""
Test coverage_map functionality for wide masks
"""
nside_coverage = 16
nside_map = 512
# Number of non-masked pixels in the coverage map resolution
non_masked_px = 10.5
nfine = (nside_map//nside_coverage)**2
# Do a 1-byte wide
sparse_map = healsparse.HealSparseMap.make_empty(nside_coverage, nside_map,
healsparse.WIDE_MASK,
wide_mask_maxbits=2)
# Set bits in different columns
sparse_map.set_bits_pix(np.arange(int(non_masked_px*nfine)), [1])
cov_map_orig = self.compute_cov_map(nside_coverage, non_masked_px, nfine,
sparse_map._cov_map.bit_shift)
cov_map = sparse_map.coverage_map
testing.assert_array_almost_equal(cov_map_orig, cov_map)
# Do a 3-byte wide
sparse_map = healsparse.HealSparseMap.make_empty(nside_coverage, nside_map,
healsparse.WIDE_MASK,
wide_mask_maxbits=24)
# Set bits in different columns
sparse_map.set_bits_pix(np.arange(int(2*nfine)), [2])
sparse_map.set_bits_pix(np.arange(int(non_masked_px*nfine)), [20])
cov_map_orig = self.compute_cov_map(nside_coverage, non_masked_px, nfine,
sparse_map._cov_map.bit_shift)
cov_map = sparse_map.coverage_map
testing.assert_array_almost_equal(cov_map_orig, cov_map)
def compute_cov_map(self, nside_coverage, non_masked_px, nfine, bit_shift):
cov_map_orig = np.zeros(hp.nside2npix(nside_coverage), dtype=np.float64)
idx_cov = np.right_shift(np.arange(int(non_masked_px*nfine)), bit_shift)
unique_idx_cov = np.unique(idx_cov)
idx_counts = np.bincount(idx_cov, minlength=hp.nside2npix(nside_coverage)).astype(np.float64)
cov_map_orig[unique_idx_cov] = idx_counts[unique_idx_cov]/nfine
return cov_map_orig
def test_large_coverage_map_warning(self):
"""
Test coverage_map raises warning for large
values of nside_coverage
"""
nside_coverage = 256
nside_map = 512
# Generate sparse map and check that it rasises a warning
testing.assert_warns(ResourceWarning, healsparse.HealSparseMap.make_empty, nside_sparse=nside_map,
nside_coverage=nside_coverage, dtype=np.float32)
if __name__ == '__main__':
unittest.main()
| [
1,
515,
4770,
29888,
9130,
1649,
1053,
8542,
29892,
8380,
29918,
5215,
29892,
1596,
29918,
2220,
13,
13,
5215,
443,
27958,
13,
5215,
12655,
29889,
13424,
408,
6724,
13,
5215,
12655,
408,
7442,
13,
5215,
540,
284,
2272,
408,
298,
29886,
13,
5215,
540,
1338,
5510,
13,
13,
13,
1990,
26428,
482,
3388,
3057,
8259,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
11911,
482,
29918,
1958,
29918,
7411,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4321,
23746,
29918,
1958,
9863,
363,
5685,
1446,
13,
4706,
9995,
13,
13,
4706,
302,
2975,
29918,
11911,
482,
353,
29871,
29896,
29953,
13,
4706,
302,
2975,
29918,
1958,
353,
29871,
29945,
29896,
29906,
13,
4706,
396,
9681,
310,
1661,
29899,
13168,
287,
17036,
297,
278,
23746,
2910,
10104,
13,
4706,
1661,
29918,
13168,
287,
29918,
1756,
353,
29871,
29896,
29900,
29889,
29945,
13,
4706,
302,
29888,
457,
353,
313,
1983,
680,
29918,
1958,
458,
1983,
680,
29918,
11911,
482,
29897,
1068,
29906,
13,
4706,
2989,
29918,
1958,
353,
7442,
29889,
3298,
359,
29898,
28887,
29889,
1983,
680,
29906,
9302,
861,
29898,
1983,
680,
29918,
1958,
876,
718,
298,
29886,
29889,
3904,
1660,
1430,
13,
4706,
2989,
29918,
1958,
29961,
29900,
29901,
938,
29898,
5464,
29918,
13168,
287,
29918,
1756,
29930,
29876,
29888,
457,
4638,
353,
29871,
29896,
718,
7442,
29889,
8172,
29889,
8172,
29898,
2311,
29922,
524,
29898,
5464,
29918,
13168,
287,
29918,
1756,
29930,
29876,
29888,
457,
876,
13,
13,
4706,
396,
3251,
403,
29234,
2910,
13,
13,
4706,
29234,
29918,
1958,
353,
540,
1338,
5510,
29889,
3868,
284,
29903,
5510,
3388,
29898,
354,
284,
29886,
861,
29918,
1958,
29922,
8159,
29918,
1958,
29892,
302,
2975,
29918,
11911,
482,
29922,
1983,
680,
29918,
11911,
482,
29897,
13,
13,
4706,
396,
8878,
278,
376,
13492,
29908,
23746,
2910,
13,
4706,
18838,
29918,
1958,
29918,
12683,
353,
1583,
29889,
26017,
29918,
24542,
29918,
1958,
29898,
1983,
680,
29918,
11911,
482,
29892,
1661,
29918,
13168,
287,
29918,
1756,
29892,
302,
29888,
457,
29892,
13,
462,
462,
9651,
29234,
29918,
1958,
3032,
24542,
29918,
1958,
29889,
2966,
29918,
10889,
29897,
13,
13,
4706,
396,
3617,
278,
4240,
23746,
2910,
13,
13,
4706,
18838,
29918,
1958,
353,
29234,
29918,
1958,
29889,
11911,
482,
29918,
1958,
13,
13,
4706,
396,
4321,
278,
23746,
2910,
12623,
322,
16280,
13,
13,
4706,
6724,
29889,
9294,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
24542,
29918,
1958,
29918,
12683,
29892,
18838,
29918,
1958,
29897,
13,
13,
1678,
822,
1243,
29918,
11911,
482,
29918,
1958,
29918,
524,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4321,
23746,
29918,
1958,
9863,
363,
938,
29879,
13,
4706,
9995,
13,
4706,
302,
2975,
29918,
11911,
482,
353,
29871,
29896,
29953,
13,
4706,
302,
2975,
29918,
1958,
353,
29871,
29945,
29896,
29906,
13,
4706,
396,
9681,
310,
1661,
29899,
13168,
287,
17036,
297,
278,
23746,
2910,
10104,
13,
4706,
1661,
29918,
13168,
287,
29918,
1756,
353,
29871,
29896,
29900,
29889,
29945,
13,
4706,
302,
29888,
457,
353,
313,
1983,
680,
29918,
1958,
458,
1983,
680,
29918,
11911,
482,
29897,
1068,
29906,
13,
4706,
2665,
262,
295,
353,
540,
1338,
5510,
29889,
13239,
29889,
3198,
29918,
29879,
15440,
295,
29898,
9302,
29889,
524,
29941,
29906,
29892,
6213,
29897,
13,
4706,
2989,
29918,
1958,
353,
7442,
29889,
3298,
359,
29898,
28887,
29889,
1983,
680,
29906,
9302,
861,
29898,
1983,
680,
29918,
1958,
511,
26688,
29922,
9302,
29889,
524,
29941,
29906,
29897,
718,
2665,
262,
295,
13,
4706,
2989,
29918,
1958,
29961,
29900,
29901,
938,
29898,
5464,
29918,
13168,
287,
29918,
1756,
29930,
29876,
29888,
457,
4638,
353,
29871,
29896,
13,
13,
4706,
29234,
29918,
1958,
353,
540,
1338,
5510,
29889,
3868,
284,
29903,
5510,
3388,
29898,
354,
284,
29886,
861,
29918,
1958,
29922,
8159,
29918,
1958,
29892,
13,
462,
462,
795,
302,
2975,
29918,
11911,
482,
29922,
1983,
680,
29918,
11911,
482,
29892,
13,
462,
462,
795,
2665,
262,
295,
29922,
29879,
15440,
295,
29897,
13,
13,
4706,
18838,
29918,
1958,
29918,
12683,
353,
1583,
29889,
26017,
29918,
24542,
29918,
1958,
29898,
1983,
680,
29918,
11911,
482,
29892,
1661,
29918,
13168,
287,
29918,
1756,
29892,
302,
29888,
457,
29892,
13,
462,
462,
9651,
29234,
29918,
1958,
3032,
24542,
29918,
1958,
29889,
2966,
29918,
10889,
29897,
13,
13,
4706,
18838,
29918,
1958,
353,
29234,
29918,
1958,
29889,
11911,
482,
29918,
1958,
13,
13,
4706,
6724,
29889,
9294,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
24542,
29918,
1958,
29918,
12683,
29892,
18838,
29918,
1958,
29897,
13,
13,
1678,
822,
1243,
29918,
11911,
482,
29918,
1958,
29918,
3757,
2378,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4321,
23746,
29918,
1958,
9863,
363,
263,
1162,
2378,
13,
4706,
9995,
13,
4706,
302,
2975,
29918,
11911,
482,
353,
29871,
29896,
29953,
13,
4706,
302,
2975,
29918,
1958,
353,
29871,
29945,
29896,
29906,
13,
4706,
396,
9681,
310,
1661,
29899,
13168,
287,
17036,
297,
278,
23746,
2910,
10104,
13,
4706,
1661,
29918,
13168,
287,
29918,
1756,
353,
29871,
29896,
29900,
29889,
29945,
13,
4706,
302,
29888,
457,
353,
313,
1983,
680,
29918,
1958,
458,
1983,
680,
29918,
11911,
482,
29897,
1068,
29906,
13,
13,
4706,
26688,
353,
518,
877,
29874,
742,
7442,
29889,
7411,
29953,
29946,
511,
13,
462,
6702,
29890,
742,
7442,
29889,
524,
29941,
29906,
4638,
13,
4706,
29234,
29918,
1958,
353,
540,
1338,
5510,
29889,
3868,
284,
29903,
5510,
3388,
29889,
5675,
29918,
6310,
29898,
1983,
680,
29918,
11911,
482,
29892,
302,
2975,
29918,
1958,
29892,
13,
462,
462,
462,
308,
26688,
29892,
7601,
2433,
29874,
1495,
13,
4706,
29234,
29918,
1958,
29889,
5504,
29918,
5975,
29918,
29886,
861,
29898,
9302,
29889,
279,
927,
29898,
524,
29898,
5464,
29918,
13168,
287,
29918,
1756,
29930,
29876,
29888,
457,
8243,
13,
462,
462,
268,
7442,
29889,
2873,
29898,
29896,
29892,
26688,
29922,
29881,
1853,
876,
13,
13,
4706,
18838,
29918,
1958,
29918,
12683,
353,
1583,
29889,
26017,
29918,
24542,
29918,
1958,
29898,
1983,
680,
29918,
11911,
482,
29892,
1661,
29918,
13168,
287,
29918,
1756,
29892,
302,
29888,
457,
29892,
13,
462,
462,
9651,
29234,
29918,
1958,
3032,
24542,
29918,
1958,
29889,
2966,
29918,
10889,
29897,
13,
13,
4706,
18838,
29918,
1958,
353,
29234,
29918,
1958,
29889,
11911,
482,
29918,
1958,
13,
13,
4706,
6724,
29889,
9294,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
24542,
29918,
1958,
29918,
12683,
29892,
18838,
29918,
1958,
29897,
13,
13,
1678,
822,
1243,
29918,
11911,
482,
29918,
1958,
29918,
8157,
13168,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4321,
23746,
29918,
1958,
9863,
363,
9377,
11105,
29879,
13,
4706,
9995,
13,
4706,
302,
2975,
29918,
11911,
482,
353,
29871,
29896,
29953,
13,
4706,
302,
2975,
29918,
1958,
353,
29871,
29945,
29896,
29906,
13,
4706,
396,
9681,
310,
1661,
29899,
13168,
287,
17036,
297,
278,
23746,
2910,
10104,
13,
4706,
1661,
29918,
13168,
287,
29918,
1756,
353,
29871,
29896,
29900,
29889,
29945,
13,
4706,
302,
29888,
457,
353,
313,
1983,
680,
29918,
1958,
458,
1983,
680,
29918,
11911,
482,
29897,
1068,
29906,
13,
13,
4706,
396,
1938,
263,
29871,
29896,
29899,
10389,
9377,
13,
4706,
29234,
29918,
1958,
353,
540,
1338,
5510,
29889,
3868,
284,
29903,
5510,
3388,
29889,
5675,
29918,
6310,
29898,
1983,
680,
29918,
11911,
482,
29892,
302,
2975,
29918,
1958,
29892,
13,
462,
462,
462,
308,
540,
1338,
5510,
29889,
19292,
29923,
29918,
1529,
16033,
29892,
13,
462,
462,
462,
308,
9377,
29918,
13168,
29918,
3317,
14836,
29922,
29906,
29897,
13,
4706,
396,
3789,
9978,
297,
1422,
4341,
13,
4706,
29234,
29918,
1958,
29889,
842,
29918,
14836,
29918,
29886,
861,
29898,
9302,
29889,
279,
927,
29898,
524,
29898,
5464,
29918,
13168,
287,
29918,
1756,
29930,
29876,
29888,
457,
8243,
518,
29896,
2314,
13,
13,
4706,
18838,
29918,
1958,
29918,
12683,
353,
1583,
29889,
26017,
29918,
24542,
29918,
1958,
29898,
1983,
680,
29918,
11911,
482,
29892,
1661,
29918,
13168,
287,
29918,
1756,
29892,
302,
29888,
457,
29892,
13,
462,
462,
9651,
29234,
29918,
1958,
3032,
24542,
29918,
1958,
29889,
2966,
29918,
10889,
29897,
13,
13,
4706,
18838,
29918,
1958,
353,
29234,
29918,
1958,
29889,
11911,
482,
29918,
1958,
13,
13,
4706,
6724,
29889,
9294,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
24542,
29918,
1958,
29918,
12683,
29892,
18838,
29918,
1958,
29897,
13,
13,
4706,
396,
1938,
263,
29871,
29941,
29899,
10389,
9377,
13,
4706,
29234,
29918,
1958,
353,
540,
1338,
5510,
29889,
3868,
284,
29903,
5510,
3388,
29889,
5675,
29918,
6310,
29898,
1983,
680,
29918,
11911,
482,
29892,
302,
2975,
29918,
1958,
29892,
13,
462,
462,
462,
308,
540,
1338,
5510,
29889,
19292,
29923,
29918,
1529,
16033,
29892,
13,
462,
462,
462,
308,
9377,
29918,
13168,
29918,
3317,
14836,
29922,
29906,
29946,
29897,
13,
4706,
396,
3789,
9978,
297,
1422,
4341,
13,
4706,
29234,
29918,
1958,
29889,
842,
29918,
14836,
29918,
29886,
861,
29898,
9302,
29889,
279,
927,
29898,
524,
29898,
29906,
29930,
29876,
29888,
457,
8243,
518,
29906,
2314,
13,
4706,
29234,
29918,
1958,
29889,
842,
29918,
14836,
29918,
29886,
861,
29898,
9302,
29889,
279,
927,
29898,
524,
29898,
5464,
29918,
13168,
287,
29918,
1756,
29930,
29876,
29888,
457,
8243,
518,
29906,
29900,
2314,
13,
13,
4706,
18838,
29918,
1958,
29918,
12683,
353,
1583,
29889,
26017,
29918,
24542,
29918,
1958,
29898,
1983,
680,
29918,
11911,
482,
29892,
1661,
29918,
13168,
287,
29918,
1756,
29892,
302,
29888,
457,
29892,
13,
462,
462,
9651,
29234,
29918,
1958,
3032,
24542,
29918,
1958,
29889,
2966,
29918,
10889,
29897,
13,
13,
4706,
18838,
29918,
1958,
353,
29234,
29918,
1958,
29889,
11911,
482,
29918,
1958,
13,
13,
4706,
6724,
29889,
9294,
29918,
2378,
29918,
284,
3242,
29918,
11745,
29898,
24542,
29918,
1958,
29918,
12683,
29892,
18838,
29918,
1958,
29897,
13,
13,
1678,
822,
10272,
29918,
24542,
29918,
1958,
29898,
1311,
29892,
302,
2975,
29918,
11911,
482,
29892,
1661,
29918,
13168,
287,
29918,
1756,
29892,
302,
29888,
457,
29892,
2586,
29918,
10889,
1125,
13,
4706,
18838,
29918,
1958,
29918,
12683,
353,
7442,
29889,
3298,
359,
29898,
28887,
29889,
1983,
680,
29906,
9302,
861,
29898,
1983,
680,
29918,
11911,
482,
511,
26688,
29922,
9302,
29889,
7411,
29953,
29946,
29897,
13,
4706,
22645,
29918,
24542,
353,
7442,
29889,
1266,
29918,
10889,
29898,
9302,
29889,
279,
927,
29898,
524,
29898,
5464,
29918,
13168,
287,
29918,
1756,
29930,
29876,
29888,
457,
8243,
2586,
29918,
10889,
29897,
13,
4706,
5412,
29918,
13140,
29918,
24542,
353,
7442,
29889,
13092,
29898,
13140,
29918,
24542,
29897,
13,
4706,
22645,
29918,
2798,
29879,
353,
7442,
29889,
2109,
2798,
29898,
13140,
29918,
24542,
29892,
1375,
2848,
29922,
28887,
29889,
1983,
680,
29906,
9302,
861,
29898,
1983,
680,
29918,
11911,
482,
8106,
579,
668,
29898,
9302,
29889,
7411,
29953,
29946,
29897,
13,
13,
4706,
18838,
29918,
1958,
29918,
12683,
29961,
13092,
29918,
13140,
29918,
24542,
29962,
353,
22645,
29918,
2798,
29879,
29961,
13092,
29918,
13140,
29918,
24542,
16261,
29876,
29888,
457,
13,
13,
4706,
736,
18838,
29918,
1958,
29918,
12683,
13,
13,
1678,
822,
1243,
29918,
16961,
29918,
11911,
482,
29918,
1958,
29918,
27392,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4321,
23746,
29918,
1958,
1153,
4637,
9177,
363,
2919,
13,
4706,
1819,
310,
302,
2975,
29918,
11911,
482,
13,
4706,
9995,
13,
13,
4706,
302,
2975,
29918,
11911,
482,
353,
29871,
29906,
29945,
29953,
13,
4706,
302,
2975,
29918,
1958,
353,
29871,
29945,
29896,
29906,
13,
13,
4706,
396,
3251,
403,
29234,
2910,
322,
1423,
393,
372,
22641,
4637,
263,
9177,
13,
4706,
6724,
29889,
9294,
29918,
4495,
1983,
29898,
6848,
22709,
29892,
540,
1338,
5510,
29889,
3868,
284,
29903,
5510,
3388,
29889,
5675,
29918,
6310,
29892,
302,
2975,
29918,
29879,
5510,
29922,
1983,
680,
29918,
1958,
29892,
13,
462,
632,
302,
2975,
29918,
11911,
482,
29922,
1983,
680,
29918,
11911,
482,
29892,
26688,
29922,
9302,
29889,
7411,
29941,
29906,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
443,
27958,
29889,
3396,
580,
13,
2
] |
PyFSM/pyfsm/elements/state_unit_tests.py | wafec/wafec-py-fsm | 0 | 24773 | <gh_stars>0
import unittest
from pyfsm.elements import *
class StateUnitSimpleFsmTests(unittest.TestCase):
def setUp(self):
self.fsm = StateUnit()
self.state1 = StateUnit()
self.state2 = StateUnit()
self.link1 = LinkElement()
self.fsm.starters = [self.state1]
self.state1.parent = self.fsm
self.state2.parent = self.fsm
self.state1.levelers = [self.state1]
self.state2.levelers = [self.state2]
self.state1.links = [self.link1]
self.link1.sources = [self.state1]
self.link1.destinations = [self.state2]
self.state3 = StateUnit()
self.link2 = LinkElement()
self.link2.sources = [self.state2]
self.link2.destinations = [self.state3]
self.state2.links = [self.link2]
self.state3.parent = self.fsm
self.state3.levelers = [self.state1]
self.fsm.children = [self.state1, self.state2, self.state3]
self.fsm.name = 'fsm'
self.state1.name = 'state1'
self.state2.name = 'state2'
self.state3.name = 'state3'
def test_fsm_with_enter(self):
event = TransportEvent()
event.id = 'test'
self.fsm.initialize(event)
self.assertTrue(self.state1.active)
self.assertTrue(self.fsm.active)
self.assertFalse(self.state2.active)
def test_fsm_with_first_transition(self):
event = TransportEvent()
event.id = 'test'
self.fsm.initialize(event)
self.fsm.receive(event)
self.assertTrue(self.fsm.active)
self.assertTrue(self.state2.active)
self.assertFalse(self.state1.active)
def test_fsm_with_second_transition(self):
event = TransportEvent()
event.id = 'test'
self.fsm.initialize(event)
self.fsm.receive(event)
self.fsm.receive(event)
self.assertTrue(self.state3.active)
self.assertFalse(self.state2.active)
self.assertFalse(self.state1.active)
self.assertTrue(self.fsm.active)
def test_fsm_with_entry_action(self):
count = 0
def increment_count(args):
nonlocal count
count += 1
event = TransportEvent()
event.id = 'test'
self.state1.entry_actions = [increment_count]
self.fsm.initialize(event)
self.fsm.receive(event)
self.assertEqual(1, count)
def test_fsm_with_entry_action_and_view(self):
def change_view(args):
args.event.view['test'] = 'value'
event = TransportEvent()
event.id = 'test'
self.state1.entry_actions = [change_view]
self.fsm.initialize(event)
self.fsm.receive(event)
self.assertEqual('value', event.view['test'])
def test_fsm_with_entry_in_all_units(self):
count = 0
def increment_count(args):
nonlocal count
count += 1
event = TransportEvent()
event.id = 'test'
self.fsm.entry_actions = [increment_count]
self.state1.entry_actions = [increment_count]
self.state2.entry_actions = [increment_count]
self.state3.entry_actions = [increment_count]
self.fsm.initialize(event)
self.fsm.receive(event)
self.fsm.receive(event)
self.assertEqual(4, count)
def test_fsm_with_exit(self):
count = 0
def increment_count(args):
nonlocal count
count += 1
self.state1.exit_actions = [increment_count]
event = TransportEvent()
event.id = 'test'
self.fsm.initialize(event)
self.fsm.receive(event)
self.assertEqual(1, count)
self.fsm.receive(event)
self.assertEqual(1, count)
def test_fsm_with_exit_and_entry(self):
count = 0
def increment_count(args):
nonlocal count
count += 1
def decrement_count(args):
nonlocal count
count -= 1
self.fsm.entry_actions = [increment_count]
self.fsm.exit_actions = [decrement_count]
self.state1.entry_actions = [increment_count]
self.state1.exit_actions = [decrement_count]
self.state2.entry_actions = [increment_count]
self.state2.exit_actions = [decrement_count]
self.state3.entry_actions = [increment_count]
self.state3.exit_actions = [increment_count]
event = TransportEvent()
event.id = 'test'
self.fsm.initialize(event)
self.assertEqual(2, count)
self.fsm.receive(event)
self.assertEqual(2, count)
self.fsm.receive(event)
self.assertEqual(2, count)
class StateUnitComplexFsmTests(unittest.TestCase):
def setUp(self):
self.fsm = StateUnit()
self.state10 = StateUnit()
self.state20 = StateUnit()
self.state11 = StateUnit()
self.state12 = StateUnit()
self.state21 = StateUnit()
self.state22 = StateUnit()
self.state23 = StateUnit()
self.fsm.starters = [self.state10, self.state20]
self.fsm.children = [self.state10, self.state11, self.state12, self.state20, self.state21, self.state22,
self.state23]
self.state10.parent = self.fsm
self.state11.parent = self.fsm
self.state12.parent = self.fsm
self.state20.parent = self.fsm
self.state21.parent = self.fsm
self.state22.parent = self.fsm
self.state23.parent = self.fsm
self.state10.levelers = [self.state10]
self.state11.levelers = [self.state10]
self.state12.levelers = [self.state10]
self.state20.levelers = [self.state20]
self.state21.levelers = [self.state20]
self.state22.levelers = [self.state20]
self.state23.levelers = [self.state20]
self.link11 = LinkElement()
self.link12 = LinkElement()
self.link21 = LinkElement()
self.link22 = LinkElement()
self.link23 = LinkElement()
self.link11.sources = [self.state10]
self.link11.destinations = [self.state11]
self.link12.sources = [self.state11]
self.link12.destinations = [self.state12]
self.link21 = LinkElement()
self.link21.sources = [self.state20]
self.link21.destinations = [self.state21]
self.link22 = LinkElement()
self.link22.sources = [self.state21]
self.link22.destinations = [self.state22]
self.link23 = LinkElement()
self.link23.sources = [self.state22]
self.link23.destinations = [self.state23]
self.state10.links = [self.link11]
self.state11.links = [self.link12]
self.state20.links = [self.link21]
self.state21.links = [self.link22]
self.state22.links = [self.link23]
self.link11.accepts = ['event11']
self.link12.accepts = ['event11', 'event12']
self.link21.accepts = ['event21']
self.link22.accepts = ['event21', 'event22']
self.link23.accepts = ['event21', 'event22', 'event23']
self.event11 = TransportEvent()
self.event12 = TransportEvent()
self.event21 = TransportEvent()
self.event22 = TransportEvent()
self.event23 = TransportEvent()
self.event0 = TransportEvent()
self.event0.id = 'event0'
self.event11.id = 'event11'
self.event12.id = 'event12'
self.event21.id = 'event21'
self.event22.id = 'event22'
self.event23.id = 'event23'
def test_fsm_with_event(self):
self.fsm.initialize(self.event0)
self.assertTrue(self.fsm.active)
self.assertTrue(self.state10.active)
self.assertTrue(self.state20.active)
self.assertFalse(self.state11.active)
self.assertFalse(self.state21.active)
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
443,
27958,
13,
13,
3166,
11451,
29888,
3844,
29889,
17664,
1053,
334,
13,
13,
13,
1990,
4306,
8325,
15427,
29943,
3844,
24376,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29888,
3844,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
3859,
29896,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
3859,
29906,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
2324,
29896,
353,
6645,
2642,
580,
13,
4706,
1583,
29889,
29888,
3844,
29889,
8508,
2153,
353,
518,
1311,
29889,
3859,
29896,
29962,
13,
4706,
1583,
29889,
3859,
29896,
29889,
3560,
353,
1583,
29889,
29888,
3844,
13,
4706,
1583,
29889,
3859,
29906,
29889,
3560,
353,
1583,
29889,
29888,
3844,
13,
4706,
1583,
29889,
3859,
29896,
29889,
5563,
414,
353,
518,
1311,
29889,
3859,
29896,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29889,
5563,
414,
353,
518,
1311,
29889,
3859,
29906,
29962,
13,
4706,
1583,
29889,
3859,
29896,
29889,
4965,
353,
518,
1311,
29889,
2324,
29896,
29962,
13,
4706,
1583,
29889,
2324,
29896,
29889,
29879,
2863,
353,
518,
1311,
29889,
3859,
29896,
29962,
13,
4706,
1583,
29889,
2324,
29896,
29889,
7854,
262,
800,
353,
518,
1311,
29889,
3859,
29906,
29962,
13,
4706,
1583,
29889,
3859,
29941,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
2324,
29906,
353,
6645,
2642,
580,
13,
4706,
1583,
29889,
2324,
29906,
29889,
29879,
2863,
353,
518,
1311,
29889,
3859,
29906,
29962,
13,
4706,
1583,
29889,
2324,
29906,
29889,
7854,
262,
800,
353,
518,
1311,
29889,
3859,
29941,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29889,
4965,
353,
518,
1311,
29889,
2324,
29906,
29962,
13,
4706,
1583,
29889,
3859,
29941,
29889,
3560,
353,
1583,
29889,
29888,
3844,
13,
4706,
1583,
29889,
3859,
29941,
29889,
5563,
414,
353,
518,
1311,
29889,
3859,
29896,
29962,
13,
13,
4706,
1583,
29889,
29888,
3844,
29889,
11991,
353,
518,
1311,
29889,
3859,
29896,
29892,
1583,
29889,
3859,
29906,
29892,
1583,
29889,
3859,
29941,
29962,
13,
4706,
1583,
29889,
29888,
3844,
29889,
978,
353,
525,
29888,
3844,
29915,
13,
4706,
1583,
29889,
3859,
29896,
29889,
978,
353,
525,
3859,
29896,
29915,
13,
4706,
1583,
29889,
3859,
29906,
29889,
978,
353,
525,
3859,
29906,
29915,
13,
4706,
1583,
29889,
3859,
29941,
29889,
978,
353,
525,
3859,
29941,
29915,
13,
13,
1678,
822,
1243,
29918,
29888,
3844,
29918,
2541,
29918,
5893,
29898,
1311,
1125,
13,
4706,
1741,
353,
15710,
2624,
580,
13,
4706,
1741,
29889,
333,
353,
525,
1688,
29915,
13,
4706,
1583,
29889,
29888,
3844,
29889,
24926,
29898,
3696,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
3859,
29896,
29889,
4925,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
29888,
3844,
29889,
4925,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
1311,
29889,
3859,
29906,
29889,
4925,
29897,
13,
13,
1678,
822,
1243,
29918,
29888,
3844,
29918,
2541,
29918,
4102,
29918,
20543,
29898,
1311,
1125,
13,
4706,
1741,
353,
15710,
2624,
580,
13,
4706,
1741,
29889,
333,
353,
525,
1688,
29915,
13,
4706,
1583,
29889,
29888,
3844,
29889,
24926,
29898,
3696,
29897,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13556,
573,
29898,
3696,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
29888,
3844,
29889,
4925,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
3859,
29906,
29889,
4925,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
1311,
29889,
3859,
29896,
29889,
4925,
29897,
13,
13,
1678,
822,
1243,
29918,
29888,
3844,
29918,
2541,
29918,
7496,
29918,
20543,
29898,
1311,
1125,
13,
4706,
1741,
353,
15710,
2624,
580,
13,
4706,
1741,
29889,
333,
353,
525,
1688,
29915,
13,
4706,
1583,
29889,
29888,
3844,
29889,
24926,
29898,
3696,
29897,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13556,
573,
29898,
3696,
29897,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13556,
573,
29898,
3696,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
3859,
29941,
29889,
4925,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
1311,
29889,
3859,
29906,
29889,
4925,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
1311,
29889,
3859,
29896,
29889,
4925,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
29888,
3844,
29889,
4925,
29897,
13,
13,
1678,
822,
1243,
29918,
29888,
3844,
29918,
2541,
29918,
8269,
29918,
2467,
29898,
1311,
1125,
13,
4706,
2302,
353,
29871,
29900,
13,
13,
4706,
822,
11924,
29918,
2798,
29898,
5085,
1125,
13,
9651,
1661,
2997,
2302,
13,
9651,
2302,
4619,
29871,
29896,
13,
4706,
1741,
353,
15710,
2624,
580,
13,
4706,
1741,
29889,
333,
353,
525,
1688,
29915,
13,
4706,
1583,
29889,
3859,
29896,
29889,
8269,
29918,
7387,
353,
518,
25629,
29918,
2798,
29962,
13,
4706,
1583,
29889,
29888,
3844,
29889,
24926,
29898,
3696,
29897,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13556,
573,
29898,
3696,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29896,
29892,
2302,
29897,
13,
13,
1678,
822,
1243,
29918,
29888,
3844,
29918,
2541,
29918,
8269,
29918,
2467,
29918,
392,
29918,
1493,
29898,
1311,
1125,
13,
4706,
822,
1735,
29918,
1493,
29898,
5085,
1125,
13,
9651,
6389,
29889,
3696,
29889,
1493,
1839,
1688,
2033,
353,
525,
1767,
29915,
13,
4706,
1741,
353,
15710,
2624,
580,
13,
4706,
1741,
29889,
333,
353,
525,
1688,
29915,
13,
4706,
1583,
29889,
3859,
29896,
29889,
8269,
29918,
7387,
353,
518,
3167,
29918,
1493,
29962,
13,
4706,
1583,
29889,
29888,
3844,
29889,
24926,
29898,
3696,
29897,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13556,
573,
29898,
3696,
29897,
13,
4706,
1583,
29889,
9294,
9843,
877,
1767,
742,
1741,
29889,
1493,
1839,
1688,
11287,
13,
13,
1678,
822,
1243,
29918,
29888,
3844,
29918,
2541,
29918,
8269,
29918,
262,
29918,
497,
29918,
348,
1169,
29898,
1311,
1125,
13,
4706,
2302,
353,
29871,
29900,
13,
13,
4706,
822,
11924,
29918,
2798,
29898,
5085,
1125,
13,
9651,
1661,
2997,
2302,
13,
9651,
2302,
4619,
29871,
29896,
13,
4706,
1741,
353,
15710,
2624,
580,
13,
4706,
1741,
29889,
333,
353,
525,
1688,
29915,
13,
4706,
1583,
29889,
29888,
3844,
29889,
8269,
29918,
7387,
353,
518,
25629,
29918,
2798,
29962,
13,
4706,
1583,
29889,
3859,
29896,
29889,
8269,
29918,
7387,
353,
518,
25629,
29918,
2798,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29889,
8269,
29918,
7387,
353,
518,
25629,
29918,
2798,
29962,
13,
4706,
1583,
29889,
3859,
29941,
29889,
8269,
29918,
7387,
353,
518,
25629,
29918,
2798,
29962,
13,
4706,
1583,
29889,
29888,
3844,
29889,
24926,
29898,
3696,
29897,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13556,
573,
29898,
3696,
29897,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13556,
573,
29898,
3696,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29946,
29892,
2302,
29897,
13,
13,
1678,
822,
1243,
29918,
29888,
3844,
29918,
2541,
29918,
13322,
29898,
1311,
1125,
13,
4706,
2302,
353,
29871,
29900,
13,
13,
4706,
822,
11924,
29918,
2798,
29898,
5085,
1125,
13,
9651,
1661,
2997,
2302,
13,
9651,
2302,
4619,
29871,
29896,
13,
4706,
1583,
29889,
3859,
29896,
29889,
13322,
29918,
7387,
353,
518,
25629,
29918,
2798,
29962,
13,
4706,
1741,
353,
15710,
2624,
580,
13,
4706,
1741,
29889,
333,
353,
525,
1688,
29915,
13,
4706,
1583,
29889,
29888,
3844,
29889,
24926,
29898,
3696,
29897,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13556,
573,
29898,
3696,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29896,
29892,
2302,
29897,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13556,
573,
29898,
3696,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29896,
29892,
2302,
29897,
13,
13,
1678,
822,
1243,
29918,
29888,
3844,
29918,
2541,
29918,
13322,
29918,
392,
29918,
8269,
29898,
1311,
1125,
13,
4706,
2302,
353,
29871,
29900,
13,
13,
4706,
822,
11924,
29918,
2798,
29898,
5085,
1125,
13,
9651,
1661,
2997,
2302,
13,
9651,
2302,
4619,
29871,
29896,
13,
13,
4706,
822,
9263,
358,
29918,
2798,
29898,
5085,
1125,
13,
9651,
1661,
2997,
2302,
13,
9651,
2302,
22361,
29871,
29896,
13,
4706,
1583,
29889,
29888,
3844,
29889,
8269,
29918,
7387,
353,
518,
25629,
29918,
2798,
29962,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13322,
29918,
7387,
353,
518,
311,
17053,
29918,
2798,
29962,
13,
4706,
1583,
29889,
3859,
29896,
29889,
8269,
29918,
7387,
353,
518,
25629,
29918,
2798,
29962,
13,
4706,
1583,
29889,
3859,
29896,
29889,
13322,
29918,
7387,
353,
518,
311,
17053,
29918,
2798,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29889,
8269,
29918,
7387,
353,
518,
25629,
29918,
2798,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29889,
13322,
29918,
7387,
353,
518,
311,
17053,
29918,
2798,
29962,
13,
4706,
1583,
29889,
3859,
29941,
29889,
8269,
29918,
7387,
353,
518,
25629,
29918,
2798,
29962,
13,
4706,
1583,
29889,
3859,
29941,
29889,
13322,
29918,
7387,
353,
518,
25629,
29918,
2798,
29962,
13,
4706,
1741,
353,
15710,
2624,
580,
13,
4706,
1741,
29889,
333,
353,
525,
1688,
29915,
13,
4706,
1583,
29889,
29888,
3844,
29889,
24926,
29898,
3696,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29906,
29892,
2302,
29897,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13556,
573,
29898,
3696,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29906,
29892,
2302,
29897,
13,
4706,
1583,
29889,
29888,
3844,
29889,
13556,
573,
29898,
3696,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29906,
29892,
2302,
29897,
13,
13,
13,
1990,
4306,
8325,
8909,
29916,
29943,
3844,
24376,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29888,
3844,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
3859,
29896,
29900,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
3859,
29906,
29900,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
3859,
29896,
29896,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
3859,
29896,
29906,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
3859,
29906,
29896,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
3859,
29906,
29906,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
3859,
29906,
29941,
353,
4306,
8325,
580,
13,
4706,
1583,
29889,
29888,
3844,
29889,
8508,
2153,
353,
518,
1311,
29889,
3859,
29896,
29900,
29892,
1583,
29889,
3859,
29906,
29900,
29962,
13,
4706,
1583,
29889,
29888,
3844,
29889,
11991,
353,
518,
1311,
29889,
3859,
29896,
29900,
29892,
1583,
29889,
3859,
29896,
29896,
29892,
1583,
29889,
3859,
29896,
29906,
29892,
1583,
29889,
3859,
29906,
29900,
29892,
1583,
29889,
3859,
29906,
29896,
29892,
1583,
29889,
3859,
29906,
29906,
29892,
13,
462,
632,
1583,
29889,
3859,
29906,
29941,
29962,
13,
4706,
1583,
29889,
3859,
29896,
29900,
29889,
3560,
353,
1583,
29889,
29888,
3844,
13,
4706,
1583,
29889,
3859,
29896,
29896,
29889,
3560,
353,
1583,
29889,
29888,
3844,
13,
4706,
1583,
29889,
3859,
29896,
29906,
29889,
3560,
353,
1583,
29889,
29888,
3844,
13,
4706,
1583,
29889,
3859,
29906,
29900,
29889,
3560,
353,
1583,
29889,
29888,
3844,
13,
4706,
1583,
29889,
3859,
29906,
29896,
29889,
3560,
353,
1583,
29889,
29888,
3844,
13,
4706,
1583,
29889,
3859,
29906,
29906,
29889,
3560,
353,
1583,
29889,
29888,
3844,
13,
4706,
1583,
29889,
3859,
29906,
29941,
29889,
3560,
353,
1583,
29889,
29888,
3844,
13,
4706,
1583,
29889,
3859,
29896,
29900,
29889,
5563,
414,
353,
518,
1311,
29889,
3859,
29896,
29900,
29962,
13,
4706,
1583,
29889,
3859,
29896,
29896,
29889,
5563,
414,
353,
518,
1311,
29889,
3859,
29896,
29900,
29962,
13,
4706,
1583,
29889,
3859,
29896,
29906,
29889,
5563,
414,
353,
518,
1311,
29889,
3859,
29896,
29900,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29900,
29889,
5563,
414,
353,
518,
1311,
29889,
3859,
29906,
29900,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29896,
29889,
5563,
414,
353,
518,
1311,
29889,
3859,
29906,
29900,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29906,
29889,
5563,
414,
353,
518,
1311,
29889,
3859,
29906,
29900,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29941,
29889,
5563,
414,
353,
518,
1311,
29889,
3859,
29906,
29900,
29962,
13,
4706,
1583,
29889,
2324,
29896,
29896,
353,
6645,
2642,
580,
13,
4706,
1583,
29889,
2324,
29896,
29906,
353,
6645,
2642,
580,
13,
4706,
1583,
29889,
2324,
29906,
29896,
353,
6645,
2642,
580,
13,
4706,
1583,
29889,
2324,
29906,
29906,
353,
6645,
2642,
580,
13,
4706,
1583,
29889,
2324,
29906,
29941,
353,
6645,
2642,
580,
13,
4706,
1583,
29889,
2324,
29896,
29896,
29889,
29879,
2863,
353,
518,
1311,
29889,
3859,
29896,
29900,
29962,
13,
4706,
1583,
29889,
2324,
29896,
29896,
29889,
7854,
262,
800,
353,
518,
1311,
29889,
3859,
29896,
29896,
29962,
13,
4706,
1583,
29889,
2324,
29896,
29906,
29889,
29879,
2863,
353,
518,
1311,
29889,
3859,
29896,
29896,
29962,
13,
4706,
1583,
29889,
2324,
29896,
29906,
29889,
7854,
262,
800,
353,
518,
1311,
29889,
3859,
29896,
29906,
29962,
13,
4706,
1583,
29889,
2324,
29906,
29896,
353,
6645,
2642,
580,
13,
4706,
1583,
29889,
2324,
29906,
29896,
29889,
29879,
2863,
353,
518,
1311,
29889,
3859,
29906,
29900,
29962,
13,
4706,
1583,
29889,
2324,
29906,
29896,
29889,
7854,
262,
800,
353,
518,
1311,
29889,
3859,
29906,
29896,
29962,
13,
4706,
1583,
29889,
2324,
29906,
29906,
353,
6645,
2642,
580,
13,
4706,
1583,
29889,
2324,
29906,
29906,
29889,
29879,
2863,
353,
518,
1311,
29889,
3859,
29906,
29896,
29962,
13,
4706,
1583,
29889,
2324,
29906,
29906,
29889,
7854,
262,
800,
353,
518,
1311,
29889,
3859,
29906,
29906,
29962,
13,
4706,
1583,
29889,
2324,
29906,
29941,
353,
6645,
2642,
580,
13,
4706,
1583,
29889,
2324,
29906,
29941,
29889,
29879,
2863,
353,
518,
1311,
29889,
3859,
29906,
29906,
29962,
13,
4706,
1583,
29889,
2324,
29906,
29941,
29889,
7854,
262,
800,
353,
518,
1311,
29889,
3859,
29906,
29941,
29962,
13,
4706,
1583,
29889,
3859,
29896,
29900,
29889,
4965,
353,
518,
1311,
29889,
2324,
29896,
29896,
29962,
13,
4706,
1583,
29889,
3859,
29896,
29896,
29889,
4965,
353,
518,
1311,
29889,
2324,
29896,
29906,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29900,
29889,
4965,
353,
518,
1311,
29889,
2324,
29906,
29896,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29896,
29889,
4965,
353,
518,
1311,
29889,
2324,
29906,
29906,
29962,
13,
4706,
1583,
29889,
3859,
29906,
29906,
29889,
4965,
353,
518,
1311,
29889,
2324,
29906,
29941,
29962,
13,
4706,
1583,
29889,
2324,
29896,
29896,
29889,
16044,
29879,
353,
6024,
3696,
29896,
29896,
2033,
13,
4706,
1583,
29889,
2324,
29896,
29906,
29889,
16044,
29879,
353,
6024,
3696,
29896,
29896,
742,
525,
3696,
29896,
29906,
2033,
13,
4706,
1583,
29889,
2324,
29906,
29896,
29889,
16044,
29879,
353,
6024,
3696,
29906,
29896,
2033,
13,
4706,
1583,
29889,
2324,
29906,
29906,
29889,
16044,
29879,
353,
6024,
3696,
29906,
29896,
742,
525,
3696,
29906,
29906,
2033,
13,
4706,
1583,
29889,
2324,
29906,
29941,
29889,
16044,
29879,
353,
6024,
3696,
29906,
29896,
742,
525,
3696,
29906,
29906,
742,
525,
3696,
29906,
29941,
2033,
13,
4706,
1583,
29889,
3696,
29896,
29896,
353,
15710,
2624,
580,
13,
4706,
1583,
29889,
3696,
29896,
29906,
353,
15710,
2624,
580,
13,
4706,
1583,
29889,
3696,
29906,
29896,
353,
15710,
2624,
580,
13,
4706,
1583,
29889,
3696,
29906,
29906,
353,
15710,
2624,
580,
13,
4706,
1583,
29889,
3696,
29906,
29941,
353,
15710,
2624,
580,
13,
4706,
1583,
29889,
3696,
29900,
353,
15710,
2624,
580,
13,
4706,
1583,
29889,
3696,
29900,
29889,
333,
353,
525,
3696,
29900,
29915,
13,
4706,
1583,
29889,
3696,
29896,
29896,
29889,
333,
353,
525,
3696,
29896,
29896,
29915,
13,
4706,
1583,
29889,
3696,
29896,
29906,
29889,
333,
353,
525,
3696,
29896,
29906,
29915,
13,
4706,
1583,
29889,
3696,
29906,
29896,
29889,
333,
353,
525,
3696,
29906,
29896,
29915,
13,
4706,
1583,
29889,
3696,
29906,
29906,
29889,
333,
353,
525,
3696,
29906,
29906,
29915,
13,
4706,
1583,
29889,
3696,
29906,
29941,
29889,
333,
353,
525,
3696,
29906,
29941,
29915,
13,
13,
1678,
822,
1243,
29918,
29888,
3844,
29918,
2541,
29918,
3696,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29888,
3844,
29889,
24926,
29898,
1311,
29889,
3696,
29900,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
29888,
3844,
29889,
4925,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
3859,
29896,
29900,
29889,
4925,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
3859,
29906,
29900,
29889,
4925,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
1311,
29889,
3859,
29896,
29896,
29889,
4925,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
1311,
29889,
3859,
29906,
29896,
29889,
4925,
29897,
13,
2
] |
project_postgresql/tests/test_db.py | righ/djangomodel2alchemymap | 17 | 1608822 | <reponame>righ/djangomodel2alchemymap
import pytest
from sqlalchemy import (
select,
insert,
delete,
update,
func,
)
@pytest.fixture(scope='function')
def author_model():
from models_sqla import Author
return Author
@pytest.fixture(scope='function')
def author_table(author_model):
return author_model.__table__
@pytest.fixture(scope='function')
def author_a():
from books.models import Author
return Author.objects.get_or_create(name='a', age=20)[0]
@pytest.fixture(scope='function')
def author_b():
from books.models import Author
return Author.objects.get_or_create(name='b', age=15)[0]
@pytest.fixture()
def authors():
from books.models import Author
return Author.objects.all().order_by('id')
@pytest.mark.django_db
class Test_query_expression:
def _callFUT(self, stmt):
from d2a.db import query_expression
return query_expression(stmt)
def test_query_expression(self, author_table, author_a, author_b):
stmt = select([
author_table.c.id,
author_table.c.name,
]).select_from(author_table).order_by(author_table.c.age)
actual = self._callFUT(stmt)
expected = [
{'id': author_b.id, 'name': author_b.name},
{'id': author_a.id, 'name': author_a.name},
]
assert actual == expected
@pytest.mark.django_db
class Test_execute_expression:
def _callFUT(self, stmt):
from d2a.db import execute_expression
return execute_expression(stmt)
def test_insert_expression(self, author_table, authors):
expected = [
{'name': 'a', 'age': 10},
{'name': 'b', 'age': 20},
{'name': 'c', 'age': 30},
]
stmt = insert(author_table).values(expected)
assert self._callFUT(stmt) == 3
actual = list(authors.values('name', 'age'))
assert actual == expected
def test_update_expression(self, author_table, author_a, author_b, authors):
stmt = update(author_table).where(author_table.c.id == author_a.id).values(
name=func.UPPER(author_table.c.name),
age=author_table.c.age + 1,
)
assert self._callFUT(stmt) == 1
actual = list(authors.values('name', 'age'))
expected = [
{'name': 'A', 'age': 21},
{'name': 'b', 'age': 15},
]
assert actual == expected
def test_delete_expression(self, author_table, author_a, author_b, authors):
stmt = delete(author_table).where(author_table.c.id == author_a.id)
assert self._callFUT(stmt) == 1
actual = list(authors.values('name', 'age'))
expected = [
{'name': 'b', 'age': 15},
]
assert actual == expected
@pytest.mark.skip
class Test_make_session:
def _callFUT(self, **kwargs):
from d2a.db import make_session
return make_session(**kwargs)
def test_make_session(self, author_model):
with self._callFUT(autocommit=True, autoflush=True) as session:
author = author_model()
author.name = 'c'
author.age = 30
session.add(author)
actual = [
{'name': a.name, 'age': a.age}
for a in session.query(author_model).all()
]
expected = [
{'name': 'c', 'age': 30},
]
assert actual == expected
| [
1,
529,
276,
1112,
420,
29958,
29878,
1141,
29914,
19776,
574,
290,
27224,
29906,
284,
14969,
962,
481,
13,
5215,
11451,
1688,
13,
3166,
4576,
284,
305,
6764,
1053,
313,
13,
1678,
1831,
29892,
13,
1678,
4635,
29892,
13,
1678,
5217,
29892,
13,
1678,
2767,
29892,
13,
1678,
3653,
29892,
13,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
29898,
6078,
2433,
2220,
1495,
13,
1753,
4148,
29918,
4299,
7295,
13,
1678,
515,
4733,
29918,
3044,
433,
1053,
13361,
13,
1678,
736,
13361,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
29898,
6078,
2433,
2220,
1495,
13,
1753,
4148,
29918,
2371,
29898,
8921,
29918,
4299,
1125,
13,
1678,
736,
4148,
29918,
4299,
17255,
2371,
1649,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
29898,
6078,
2433,
2220,
1495,
13,
1753,
4148,
29918,
29874,
7295,
13,
1678,
515,
8277,
29889,
9794,
1053,
13361,
13,
1678,
736,
13361,
29889,
12650,
29889,
657,
29918,
272,
29918,
3258,
29898,
978,
2433,
29874,
742,
5046,
29922,
29906,
29900,
9601,
29900,
29962,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
29898,
6078,
2433,
2220,
1495,
13,
1753,
4148,
29918,
29890,
7295,
13,
1678,
515,
8277,
29889,
9794,
1053,
13361,
13,
1678,
736,
13361,
29889,
12650,
29889,
657,
29918,
272,
29918,
3258,
29898,
978,
2433,
29890,
742,
5046,
29922,
29896,
29945,
9601,
29900,
29962,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
580,
13,
1753,
15717,
7295,
13,
1678,
515,
8277,
29889,
9794,
1053,
13361,
13,
1678,
736,
13361,
29889,
12650,
29889,
497,
2141,
2098,
29918,
1609,
877,
333,
1495,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
14095,
29918,
2585,
13,
1990,
4321,
29918,
1972,
29918,
17471,
29901,
13,
1678,
822,
903,
4804,
29943,
2692,
29898,
1311,
29892,
380,
4378,
1125,
13,
4706,
515,
270,
29906,
29874,
29889,
2585,
1053,
2346,
29918,
17471,
13,
4706,
736,
2346,
29918,
17471,
29898,
17868,
29897,
13,
13,
1678,
822,
1243,
29918,
1972,
29918,
17471,
29898,
1311,
29892,
4148,
29918,
2371,
29892,
4148,
29918,
29874,
29892,
4148,
29918,
29890,
1125,
13,
4706,
380,
4378,
353,
1831,
4197,
13,
9651,
4148,
29918,
2371,
29889,
29883,
29889,
333,
29892,
13,
9651,
4148,
29918,
2371,
29889,
29883,
29889,
978,
29892,
13,
4706,
4514,
467,
2622,
29918,
3166,
29898,
8921,
29918,
2371,
467,
2098,
29918,
1609,
29898,
8921,
29918,
2371,
29889,
29883,
29889,
482,
29897,
13,
4706,
3935,
353,
1583,
3032,
4804,
29943,
2692,
29898,
17868,
29897,
13,
4706,
3806,
353,
518,
13,
9651,
11117,
333,
2396,
4148,
29918,
29890,
29889,
333,
29892,
525,
978,
2396,
4148,
29918,
29890,
29889,
978,
1118,
13,
9651,
11117,
333,
2396,
4148,
29918,
29874,
29889,
333,
29892,
525,
978,
2396,
4148,
29918,
29874,
29889,
978,
1118,
13,
4706,
4514,
13,
4706,
4974,
3935,
1275,
3806,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
14095,
29918,
2585,
13,
1990,
4321,
29918,
7978,
29918,
17471,
29901,
13,
1678,
822,
903,
4804,
29943,
2692,
29898,
1311,
29892,
380,
4378,
1125,
13,
4706,
515,
270,
29906,
29874,
29889,
2585,
1053,
6222,
29918,
17471,
13,
4706,
736,
6222,
29918,
17471,
29898,
17868,
29897,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
17471,
29898,
1311,
29892,
4148,
29918,
2371,
29892,
15717,
1125,
13,
4706,
3806,
353,
518,
13,
9651,
11117,
978,
2396,
525,
29874,
742,
525,
482,
2396,
29871,
29896,
29900,
1118,
13,
9651,
11117,
978,
2396,
525,
29890,
742,
525,
482,
2396,
29871,
29906,
29900,
1118,
13,
9651,
11117,
978,
2396,
525,
29883,
742,
525,
482,
2396,
29871,
29941,
29900,
1118,
13,
4706,
4514,
13,
4706,
380,
4378,
353,
4635,
29898,
8921,
29918,
2371,
467,
5975,
29898,
9684,
29897,
13,
4706,
4974,
1583,
3032,
4804,
29943,
2692,
29898,
17868,
29897,
1275,
29871,
29941,
13,
4706,
3935,
353,
1051,
29898,
5150,
943,
29889,
5975,
877,
978,
742,
525,
482,
8785,
13,
4706,
4974,
3935,
1275,
3806,
13,
13,
1678,
822,
1243,
29918,
5504,
29918,
17471,
29898,
1311,
29892,
4148,
29918,
2371,
29892,
4148,
29918,
29874,
29892,
4148,
29918,
29890,
29892,
15717,
1125,
13,
4706,
380,
4378,
353,
2767,
29898,
8921,
29918,
2371,
467,
3062,
29898,
8921,
29918,
2371,
29889,
29883,
29889,
333,
1275,
4148,
29918,
29874,
29889,
333,
467,
5975,
29898,
13,
9651,
1024,
29922,
9891,
29889,
4897,
13171,
29898,
8921,
29918,
2371,
29889,
29883,
29889,
978,
511,
13,
9651,
5046,
29922,
8921,
29918,
2371,
29889,
29883,
29889,
482,
718,
29871,
29896,
29892,
13,
4706,
1723,
13,
4706,
4974,
1583,
3032,
4804,
29943,
2692,
29898,
17868,
29897,
1275,
29871,
29896,
13,
4706,
3935,
353,
1051,
29898,
5150,
943,
29889,
5975,
877,
978,
742,
525,
482,
8785,
13,
4706,
3806,
353,
518,
13,
9651,
11117,
978,
2396,
525,
29909,
742,
525,
482,
2396,
29871,
29906,
29896,
1118,
13,
9651,
11117,
978,
2396,
525,
29890,
742,
525,
482,
2396,
29871,
29896,
29945,
1118,
13,
4706,
4514,
13,
4706,
4974,
3935,
1275,
3806,
13,
13,
1678,
822,
1243,
29918,
8143,
29918,
17471,
29898,
1311,
29892,
4148,
29918,
2371,
29892,
4148,
29918,
29874,
29892,
4148,
29918,
29890,
29892,
15717,
1125,
13,
4706,
380,
4378,
353,
5217,
29898,
8921,
29918,
2371,
467,
3062,
29898,
8921,
29918,
2371,
29889,
29883,
29889,
333,
1275,
4148,
29918,
29874,
29889,
333,
29897,
13,
4706,
4974,
1583,
3032,
4804,
29943,
2692,
29898,
17868,
29897,
1275,
29871,
29896,
13,
4706,
3935,
353,
1051,
29898,
5150,
943,
29889,
5975,
877,
978,
742,
525,
482,
8785,
13,
4706,
3806,
353,
518,
13,
9651,
11117,
978,
2396,
525,
29890,
742,
525,
482,
2396,
29871,
29896,
29945,
1118,
13,
4706,
4514,
13,
4706,
4974,
3935,
1275,
3806,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
11014,
13,
1990,
4321,
29918,
5675,
29918,
7924,
29901,
13,
1678,
822,
903,
4804,
29943,
2692,
29898,
1311,
29892,
3579,
19290,
1125,
13,
4706,
515,
270,
29906,
29874,
29889,
2585,
1053,
1207,
29918,
7924,
13,
4706,
736,
1207,
29918,
7924,
29898,
1068,
19290,
29897,
13,
13,
1678,
822,
1243,
29918,
5675,
29918,
7924,
29898,
1311,
29892,
4148,
29918,
4299,
1125,
13,
4706,
411,
1583,
3032,
4804,
29943,
2692,
29898,
6921,
15060,
29922,
5574,
29892,
1120,
974,
29880,
1878,
29922,
5574,
29897,
408,
4867,
29901,
13,
9651,
4148,
353,
4148,
29918,
4299,
580,
13,
9651,
4148,
29889,
978,
353,
525,
29883,
29915,
13,
9651,
4148,
29889,
482,
353,
29871,
29941,
29900,
13,
9651,
4867,
29889,
1202,
29898,
8921,
29897,
13,
9651,
3935,
353,
518,
13,
18884,
11117,
978,
2396,
263,
29889,
978,
29892,
525,
482,
2396,
263,
29889,
482,
29913,
13,
18884,
363,
263,
297,
4867,
29889,
1972,
29898,
8921,
29918,
4299,
467,
497,
580,
13,
9651,
4514,
13,
9651,
3806,
353,
518,
13,
18884,
11117,
978,
2396,
525,
29883,
742,
525,
482,
2396,
29871,
29941,
29900,
1118,
13,
9651,
4514,
13,
9651,
4974,
3935,
1275,
3806,
13,
13,
2
] |
qtui.py | kwdgwl/mzlnmsl | 1 | 136466 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mzlnmsl.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1600, 900)
MainWindow.setMinimumSize(QtCore.QSize(1600, 900))
MainWindow.setMaximumSize(QtCore.QSize(1600, 900))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.Title = QtWidgets.QLabel(self.centralwidget)
self.Title.setGeometry(QtCore.QRect(10, 10, 431, 61))
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(26)
font.setBold(False)
font.setWeight(50)
self.Title.setFont(font)
self.Title.setText("")
self.Title.setAlignment(QtCore.Qt.AlignCenter)
self.Title.setObjectName("Title")
self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox.setGeometry(QtCore.QRect(450, 10, 1141, 751))
self.groupBox.setObjectName("groupBox")
self.browser = QtWebEngineWidgets.QWebEngineView(self.groupBox)
self.browser.setGeometry(QtCore.QRect(10, 19, 1121, 721))
self.browser.setObjectName("browser")
self.groupBox_A = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox_A.setGeometry(QtCore.QRect(10, 80, 431, 101))
self.groupBox_A.setObjectName("groupBox_A")
self.label_A_uuid = QtWidgets.QLabel(self.groupBox_A)
self.label_A_uuid.setGeometry(QtCore.QRect(10, 25, 54, 12))
self.label_A_uuid.setAlignment(QtCore.Qt.AlignCenter)
self.label_A_uuid.setObjectName("label_A_uuid")
self.label_A_model = QtWidgets.QLabel(self.groupBox_A)
self.label_A_model.setGeometry(QtCore.QRect(10, 50, 54, 12))
self.label_A_model.setAlignment(QtCore.Qt.AlignCenter)
self.label_A_model.setObjectName("label_A_model")
self.radioButton_A_ios = QtWidgets.QRadioButton(self.groupBox_A)
self.radioButton_A_ios.setGeometry(QtCore.QRect(70, 75, 41, 16))
self.radioButton_A_ios.setChecked(True)
self.radioButton_A_ios.setObjectName("radioButton_A_ios")
self.radioButton_A_android = QtWidgets.QRadioButton(self.groupBox_A)
self.radioButton_A_android.setGeometry(QtCore.QRect(115, 75, 71, 16))
self.radioButton_A_android.setObjectName("radioButton_A_android")
self.label_A_type = QtWidgets.QLabel(self.groupBox_A)
self.label_A_type.setGeometry(QtCore.QRect(10, 77, 54, 12))
self.label_A_type.setAlignment(QtCore.Qt.AlignCenter)
self.label_A_type.setObjectName("label_A_type")
self.lineEdit_A_uuid = QtWidgets.QLineEdit(self.groupBox_A)
self.lineEdit_A_uuid.setGeometry(QtCore.QRect(70, 20, 351, 21))
self.lineEdit_A_uuid.setText("")
self.lineEdit_A_uuid.setObjectName("lineEdit_A_uuid")
self.lineEdit_A_model = QtWidgets.QLineEdit(self.groupBox_A)
self.lineEdit_A_model.setGeometry(QtCore.QRect(70, 45, 121, 21))
self.lineEdit_A_model.setText("")
self.lineEdit_A_model.setObjectName("lineEdit_A_model")
self.pushButton_A_random = QtWidgets.QPushButton(self.groupBox_A)
self.pushButton_A_random.setGeometry(QtCore.QRect(196, 46, 81, 21))
self.pushButton_A_random.setObjectName("pushButton_A_random")
self.pushButton_Z_start = QtWidgets.QPushButton(self.groupBox_A)
self.pushButton_Z_start.setGeometry(QtCore.QRect(300, 60, 121, 31))
self.pushButton_Z_start.setObjectName("pushButton_Z_start")
self.groupBox_B = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox_B.setGeometry(QtCore.QRect(10, 190, 431, 181))
self.groupBox_B.setFlat(False)
self.groupBox_B.setCheckable(False)
self.groupBox_B.setObjectName("groupBox_B")
self.label_B_username = QtWidgets.QLabel(self.groupBox_B)
self.label_B_username.setGeometry(QtCore.QRect(10, 25, 54, 12))
self.label_B_username.setAlignment(QtCore.Qt.AlignCenter)
self.label_B_username.setObjectName("label_B_username")
self.label_B_password = QtWidgets.QLabel(self.groupBox_B)
self.label_B_password.setGeometry(QtCore.QRect(10, 50, 54, 12))
self.label_B_password.setAlignment(QtCore.Qt.AlignCenter)
self.label_B_password.setObjectName("label_B_password")
self.label_B_utoken = QtWidgets.QLabel(self.groupBox_B)
self.label_B_utoken.setGeometry(QtCore.QRect(10, 80, 54, 12))
self.label_B_utoken.setAlignment(QtCore.Qt.AlignCenter)
self.label_B_utoken.setObjectName("label_B_utoken")
self.label_B_userid = QtWidgets.QLabel(self.groupBox_B)
self.label_B_userid.setGeometry(QtCore.QRect(10, 105, 54, 12))
self.label_B_userid.setAlignment(QtCore.Qt.AlignCenter)
self.label_B_userid.setObjectName("label_B_userid")
self.pushButton_B_login = QtWidgets.QPushButton(self.groupBox_B)
self.pushButton_B_login.setGeometry(QtCore.QRect(180, 105, 241, 31))
self.pushButton_B_login.setObjectName("pushButton_B_login")
self.pushButton_B_seslogin = QtWidgets.QPushButton(self.groupBox_B)
self.pushButton_B_seslogin.setGeometry(QtCore.QRect(180, 140, 241, 31))
self.pushButton_B_seslogin.setObjectName("pushButton_B_seslogin")
self.checkBox_B_saveaccount = QtWidgets.QCheckBox(self.groupBox_B)
self.checkBox_B_saveaccount.setGeometry(QtCore.QRect(260, 23, 81, 16))
self.checkBox_B_saveaccount.setChecked(True)
self.checkBox_B_saveaccount.setObjectName("checkBox_B_saveaccount")
self.checkBox_B_savepassword = QtWidgets.QCheckBox(self.groupBox_B)
self.checkBox_B_savepassword.setGeometry(QtCore.QRect(260, 48, 71, 16))
self.checkBox_B_savepassword.setObjectName("checkBox_B_savepassword")
self.lineEdit_B_username = QtWidgets.QLineEdit(self.groupBox_B)
self.lineEdit_B_username.setGeometry(QtCore.QRect(70, 20, 181, 21))
self.lineEdit_B_username.setText("")
self.lineEdit_B_username.setObjectName("lineEdit_B_username")
self.lineEdit_B_password = QtWidgets.QLineEdit(self.groupBox_B)
self.lineEdit_B_password.setGeometry(QtCore.QRect(70, 45, 181, 21))
self.lineEdit_B_password.setText("")
self.lineEdit_B_password.setEchoMode(QtWidgets.QLineEdit.PasswordEchoOnEdit)
self.lineEdit_B_password.setObjectName("lineEdit_B_password")
self.lineEdit_B_utoken = QtWidgets.QLineEdit(self.groupBox_B)
self.lineEdit_B_utoken.setGeometry(QtCore.QRect(70, 75, 351, 21))
self.lineEdit_B_utoken.setText("")
self.lineEdit_B_utoken.setObjectName("lineEdit_B_utoken")
self.lineEdit_B_userid = QtWidgets.QLineEdit(self.groupBox_B)
self.lineEdit_B_userid.setGeometry(QtCore.QRect(70, 100, 101, 21))
self.lineEdit_B_userid.setText("")
self.lineEdit_B_userid.setObjectName("lineEdit_B_userid")
self.groupBox_D = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox_D.setGeometry(QtCore.QRect(10, 450, 431, 51))
self.groupBox_D.setObjectName("groupBox_D")
self.label_D_initloc = QtWidgets.QLabel(self.groupBox_D)
self.label_D_initloc.setGeometry(QtCore.QRect(10, 25, 54, 12))
self.label_D_initloc.setAlignment(QtCore.Qt.AlignCenter)
self.label_D_initloc.setObjectName("label_D_initloc")
self.pushButton_D_send = QtWidgets.QPushButton(self.groupBox_D)
self.pushButton_D_send.setGeometry(QtCore.QRect(360, 20, 61, 21))
self.pushButton_D_send.setObjectName("pushButton_D_send")
self.pushButton_D_random = QtWidgets.QPushButton(self.groupBox_D)
self.pushButton_D_random.setGeometry(QtCore.QRect(290, 20, 61, 21))
self.pushButton_D_random.setObjectName("pushButton_D_random")
self.lineEdit_D_initloc = QtWidgets.QLineEdit(self.groupBox_D)
self.lineEdit_D_initloc.setGeometry(QtCore.QRect(70, 20, 211, 21))
self.lineEdit_D_initloc.setText("")
self.lineEdit_D_initloc.setObjectName("lineEdit_D_initloc")
self.groupBox_E = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox_E.setGeometry(QtCore.QRect(10, 510, 431, 91))
self.groupBox_E.setObjectName("groupBox_E")
self.label_E_reqtime = QtWidgets.QLabel(self.groupBox_E)
self.label_E_reqtime.setGeometry(QtCore.QRect(90, 25, 200, 12))
self.label_E_reqtime.setText("")
self.label_E_reqtime.setObjectName("label_E_reqtime")
self.clabel_E_reqtime = QtWidgets.QLabel(self.groupBox_E)
self.clabel_E_reqtime.setGeometry(QtCore.QRect(30, 25, 54, 12))
self.clabel_E_reqtime.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_E_reqtime.setObjectName("clabel_E_reqtime")
self.clabel_E_initloc = QtWidgets.QLabel(self.groupBox_E)
self.clabel_E_initloc.setGeometry(QtCore.QRect(30, 45, 54, 12))
self.clabel_E_initloc.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_E_initloc.setObjectName("clabel_E_initloc")
self.label_E_initloc = QtWidgets.QLabel(self.groupBox_E)
self.label_E_initloc.setGeometry(QtCore.QRect(90, 45, 200, 12))
self.label_E_initloc.setText("")
self.label_E_initloc.setObjectName("label_E_initloc")
self.label_E_runid = QtWidgets.QLabel(self.groupBox_E)
self.label_E_runid.setGeometry(QtCore.QRect(90, 65, 75, 12))
self.label_E_runid.setText("")
self.label_E_runid.setObjectName("label_E_runid")
self.clabel_E_runid = QtWidgets.QLabel(self.groupBox_E)
self.clabel_E_runid.setGeometry(QtCore.QRect(30, 65, 54, 12))
self.clabel_E_runid.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_E_runid.setObjectName("clabel_E_runid")
self.pushButton_E_trash = QtWidgets.QPushButton(self.groupBox_E)
self.pushButton_E_trash.setGeometry(QtCore.QRect(320, 50, 101, 31))
self.pushButton_E_trash.setObjectName("pushButton_E_trash")
self.clabel_E_resume = QtWidgets.QLabel(self.groupBox_E)
self.clabel_E_resume.setGeometry(QtCore.QRect(310, 20, 111, 21))
self.clabel_E_resume.setObjectName("clabel_E_resume")
self.clabel_E_dist = QtWidgets.QLabel(self.groupBox_E)
self.clabel_E_dist.setGeometry(QtCore.QRect(170, 65, 54, 12))
self.clabel_E_dist.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_E_dist.setObjectName("clabel_E_dist")
self.label_E_dist = QtWidgets.QLabel(self.groupBox_E)
self.label_E_dist.setGeometry(QtCore.QRect(230, 65, 75, 12))
self.label_E_dist.setText("")
self.label_E_dist.setObjectName("label_E_dist")
self.groupBox_C = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox_C.setGeometry(QtCore.QRect(10, 380, 431, 61))
self.groupBox_C.setObjectName("groupBox_C")
self.clabel_C_name = QtWidgets.QLabel(self.groupBox_C)
self.clabel_C_name.setGeometry(QtCore.QRect(10, 20, 54, 12))
self.clabel_C_name.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_C_name.setObjectName("clabel_C_name")
self.clabel_C_school = QtWidgets.QLabel(self.groupBox_C)
self.clabel_C_school.setGeometry(QtCore.QRect(10, 40, 54, 12))
self.clabel_C_school.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_C_school.setObjectName("clabel_C_school")
self.clabel_C_completed = QtWidgets.QLabel(self.groupBox_C)
self.clabel_C_completed.setGeometry(QtCore.QRect(280, 20, 54, 12))
self.clabel_C_completed.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_C_completed.setObjectName("clabel_C_completed")
self.clabel_C_target = QtWidgets.QLabel(self.groupBox_C)
self.clabel_C_target.setGeometry(QtCore.QRect(280, 40, 54, 12))
self.clabel_C_target.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_C_target.setObjectName("clabel_C_target")
self.label_C_target = QtWidgets.QLabel(self.groupBox_C)
self.label_C_target.setGeometry(QtCore.QRect(340, 40, 54, 12))
self.label_C_target.setText("")
self.label_C_target.setObjectName("label_C_target")
self.label_C_completed = QtWidgets.QLabel(self.groupBox_C)
self.label_C_completed.setGeometry(QtCore.QRect(340, 20, 54, 12))
self.label_C_completed.setText("")
self.label_C_completed.setObjectName("label_C_completed")
self.label_C_name = QtWidgets.QLabel(self.groupBox_C)
self.label_C_name.setGeometry(QtCore.QRect(70, 20, 200, 12))
self.label_C_name.setText("")
self.label_C_name.setObjectName("label_C_name")
self.label_C_school = QtWidgets.QLabel(self.groupBox_C)
self.label_C_school.setGeometry(QtCore.QRect(70, 40, 200, 12))
self.label_C_school.setText("")
self.label_C_school.setObjectName("label_C_school")
self.groupBox_Z = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox_Z.setGeometry(QtCore.QRect(450, 770, 1141, 121))
self.groupBox_Z.setObjectName("groupBox_Z")
self.label_Z_status = QtWidgets.QLabel(self.groupBox_Z)
self.label_Z_status.setGeometry(QtCore.QRect(20, 20, 1111, 61))
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(26)
font.setBold(False)
font.setWeight(50)
self.label_Z_status.setFont(font)
self.label_Z_status.setObjectName("label_Z_status")
self.pushButton_Z_logout = QtWidgets.QPushButton(self.groupBox_Z)
self.pushButton_Z_logout.setGeometry(QtCore.QRect(10, 90, 61, 23))
self.pushButton_Z_logout.setObjectName("pushButton_Z_logout")
self.checkBox_Z_debug = QtWidgets.QCheckBox(self.groupBox_Z)
self.checkBox_Z_debug.setGeometry(QtCore.QRect(90, 90, 91, 21))
self.checkBox_Z_debug.setObjectName("checkBox_Z_debug")
self.groupBox_F = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox_F.setGeometry(QtCore.QRect(10, 610, 431, 131))
self.groupBox_F.setObjectName("groupBox_F")
self.clabel_F_route = QtWidgets.QLabel(self.groupBox_F)
self.clabel_F_route.setGeometry(QtCore.QRect(13, 25, 34, 12))
self.clabel_F_route.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_F_route.setObjectName("clabel_F_route")
self.pushButton_F_confirm = QtWidgets.QPushButton(self.groupBox_F)
self.pushButton_F_confirm.setGeometry(QtCore.QRect(350, 90, 71, 31))
self.pushButton_F_confirm.setObjectName("pushButton_F_confirm")
self.lineEdit_F_route = QtWidgets.QLineEdit(self.groupBox_F)
self.lineEdit_F_route.setGeometry(QtCore.QRect(50, 20, 371, 21))
self.lineEdit_F_route.setText("")
self.lineEdit_F_route.setObjectName("lineEdit_F_route")
self.pushButton_F_undo = QtWidgets.QPushButton(self.groupBox_F)
self.pushButton_F_undo.setGeometry(QtCore.QRect(270, 90, 71, 31))
self.pushButton_F_undo.setObjectName("pushButton_F_undo")
self.label_F_dist = QtWidgets.QLabel(self.groupBox_F)
self.label_F_dist.setGeometry(QtCore.QRect(130, 90, 131, 31))
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
self.label_F_dist.setFont(font)
self.label_F_dist.setText("")
self.label_F_dist.setObjectName("label_F_dist")
self.clabel_F_dist = QtWidgets.QLabel(self.groupBox_F)
self.clabel_F_dist.setGeometry(QtCore.QRect(10, 90, 111, 31))
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
self.clabel_F_dist.setFont(font)
self.clabel_F_dist.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_F_dist.setObjectName("clabel_F_dist")
self.radioButton_F_map = QtWidgets.QRadioButton(self.groupBox_F)
self.radioButton_F_map.setGeometry(QtCore.QRect(140, 50, 121, 20))
self.radioButton_F_map.setChecked(True)
self.radioButton_F_map.setObjectName("radioButton_F_map")
self.radioButton_F_direct = QtWidgets.QRadioButton(self.groupBox_F)
self.radioButton_F_direct.setGeometry(QtCore.QRect(270, 50, 91, 20))
self.radioButton_F_direct.setChecked(False)
self.radioButton_F_direct.setObjectName("radioButton_F_direct")
self.clabel_F_routemethod = QtWidgets.QLabel(self.groupBox_F)
self.clabel_F_routemethod.setGeometry(QtCore.QRect(20, 51, 111, 16))
self.clabel_F_routemethod.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_F_routemethod.setObjectName("clabel_F_routemethod")
self.checkBox_F_hidepoints = QtWidgets.QCheckBox(self.groupBox_F)
self.checkBox_F_hidepoints.setGeometry(QtCore.QRect(30, 75, 71, 16))
self.checkBox_F_hidepoints.setObjectName("checkBox_F_hidepoints")
self.groupBox_G = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox_G.setGeometry(QtCore.QRect(10, 750, 431, 141))
self.groupBox_G.setObjectName("groupBox_G")
self.lineEdit_G_distance = QtWidgets.QLineEdit(self.groupBox_G)
self.lineEdit_G_distance.setGeometry(QtCore.QRect(70, 50, 121, 21))
self.lineEdit_G_distance.setText("")
self.lineEdit_G_distance.setObjectName("lineEdit_G_distance")
self.clabel_G_speed = QtWidgets.QLabel(self.groupBox_G)
self.clabel_G_speed.setGeometry(QtCore.QRect(10, 30, 54, 12))
self.clabel_G_speed.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_G_speed.setObjectName("clabel_G_speed")
self.lineEdit_G_speed = QtWidgets.QLineEdit(self.groupBox_G)
self.lineEdit_G_speed.setGeometry(QtCore.QRect(70, 25, 121, 21))
self.lineEdit_G_speed.setText("")
self.lineEdit_G_speed.setObjectName("lineEdit_G_speed")
self.clabel_G_distance = QtWidgets.QLabel(self.groupBox_G)
self.clabel_G_distance.setGeometry(QtCore.QRect(10, 55, 54, 12))
self.clabel_G_distance.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_G_distance.setObjectName("clabel_G_distance")
self.lineEdit_G_bupin = QtWidgets.QLineEdit(self.groupBox_G)
self.lineEdit_G_bupin.setGeometry(QtCore.QRect(70, 75, 121, 21))
self.lineEdit_G_bupin.setText("")
self.lineEdit_G_bupin.setObjectName("lineEdit_G_bupin")
self.clabel_G_bushu = QtWidgets.QLabel(self.groupBox_G)
self.clabel_G_bushu.setGeometry(QtCore.QRect(10, 105, 54, 12))
self.clabel_G_bushu.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_G_bushu.setObjectName("clabel_G_bushu")
self.clabel_G_bupin = QtWidgets.QLabel(self.groupBox_G)
self.clabel_G_bupin.setGeometry(QtCore.QRect(10, 80, 54, 12))
self.clabel_G_bupin.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_G_bupin.setObjectName("clabel_G_bupin")
self.lineEdit_G_bushu = QtWidgets.QLineEdit(self.groupBox_G)
self.lineEdit_G_bushu.setGeometry(QtCore.QRect(70, 100, 121, 21))
self.lineEdit_G_bushu.setText("")
self.lineEdit_G_bushu.setObjectName("lineEdit_G_bushu")
self.clabel_G_time = QtWidgets.QLabel(self.groupBox_G)
self.clabel_G_time.setGeometry(QtCore.QRect(210, 30, 54, 12))
self.clabel_G_time.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_G_time.setObjectName("clabel_G_time")
self.lineEdit_G_time = QtWidgets.QLineEdit(self.groupBox_G)
self.lineEdit_G_time.setGeometry(QtCore.QRect(270, 25, 121, 21))
self.lineEdit_G_time.setText("")
self.lineEdit_G_time.setObjectName("lineEdit_G_time")
self.pushButton_G_finalconfirm = QtWidgets.QPushButton(self.groupBox_G)
self.pushButton_G_finalconfirm.setGeometry(QtCore.QRect(320, 100, 101, 31))
self.pushButton_G_finalconfirm.setObjectName("pushButton_G_finalconfirm")
self.clabel_G_starttime = QtWidgets.QLabel(self.groupBox_G)
self.clabel_G_starttime.setGeometry(QtCore.QRect(210, 55, 54, 12))
self.clabel_G_starttime.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_G_starttime.setObjectName("clabel_G_starttime")
self.clabel_G_endtime = QtWidgets.QLabel(self.groupBox_G)
self.clabel_G_endtime.setGeometry(QtCore.QRect(210, 75, 54, 12))
self.clabel_G_endtime.setAlignment(QtCore.Qt.AlignCenter)
self.clabel_G_endtime.setObjectName("clabel_G_endtime")
self.label_G_starttime = QtWidgets.QLabel(self.groupBox_G)
self.label_G_starttime.setGeometry(QtCore.QRect(270, 55, 150, 12))
self.label_G_starttime.setText("")
self.label_G_starttime.setObjectName("label_G_starttime")
self.label_G_endtime = QtWidgets.QLabel(self.groupBox_G)
self.label_G_endtime.setGeometry(QtCore.QRect(270, 75, 150, 12))
self.label_G_endtime.setText("")
self.label_G_endtime.setObjectName("label_G_endtime")
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
MainWindow.setTabOrder(self.lineEdit_A_uuid, self.lineEdit_A_model)
MainWindow.setTabOrder(self.lineEdit_A_model, self.pushButton_A_random)
MainWindow.setTabOrder(self.pushButton_A_random, self.radioButton_A_ios)
MainWindow.setTabOrder(self.radioButton_A_ios, self.radioButton_A_android)
MainWindow.setTabOrder(self.radioButton_A_android, self.pushButton_Z_start)
MainWindow.setTabOrder(self.pushButton_Z_start, self.lineEdit_B_username)
MainWindow.setTabOrder(self.lineEdit_B_username, self.checkBox_B_saveaccount)
MainWindow.setTabOrder(self.checkBox_B_saveaccount, self.lineEdit_B_password)
MainWindow.setTabOrder(self.lineEdit_B_password, self.checkBox_B_savepassword)
MainWindow.setTabOrder(self.checkBox_B_savepassword, self.lineEdit_B_utoken)
MainWindow.setTabOrder(self.lineEdit_B_utoken, self.lineEdit_B_userid)
MainWindow.setTabOrder(self.lineEdit_B_userid, self.pushButton_B_login)
MainWindow.setTabOrder(self.pushButton_B_login, self.pushButton_B_seslogin)
MainWindow.setTabOrder(self.pushButton_B_seslogin, self.lineEdit_D_initloc)
MainWindow.setTabOrder(self.lineEdit_D_initloc, self.pushButton_D_random)
MainWindow.setTabOrder(self.pushButton_D_random, self.pushButton_D_send)
MainWindow.setTabOrder(self.pushButton_D_send, self.pushButton_E_trash)
MainWindow.setTabOrder(self.pushButton_E_trash, self.lineEdit_F_route)
MainWindow.setTabOrder(self.lineEdit_F_route, self.radioButton_F_map)
MainWindow.setTabOrder(self.radioButton_F_map, self.radioButton_F_direct)
MainWindow.setTabOrder(self.radioButton_F_direct, self.checkBox_F_hidepoints)
MainWindow.setTabOrder(self.checkBox_F_hidepoints, self.pushButton_F_undo)
MainWindow.setTabOrder(self.pushButton_F_undo, self.pushButton_F_confirm)
MainWindow.setTabOrder(self.pushButton_F_confirm, self.lineEdit_G_speed)
MainWindow.setTabOrder(self.lineEdit_G_speed, self.lineEdit_G_distance)
MainWindow.setTabOrder(self.lineEdit_G_distance, self.lineEdit_G_bupin)
MainWindow.setTabOrder(self.lineEdit_G_bupin, self.lineEdit_G_bushu)
MainWindow.setTabOrder(self.lineEdit_G_bushu, self.lineEdit_G_time)
MainWindow.setTabOrder(self.lineEdit_G_time, self.pushButton_G_finalconfirm)
MainWindow.setTabOrder(self.pushButton_G_finalconfirm, self.pushButton_Z_logout)
MainWindow.setTabOrder(self.pushButton_Z_logout, self.checkBox_Z_debug)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "mzlnmsl"))
self.groupBox.setTitle(_translate("MainWindow", "地图"))
self.groupBox_A.setTitle(_translate("MainWindow", "模拟的设备信息"))
self.label_A_uuid.setText(_translate("MainWindow", "设备uuid"))
self.label_A_model.setText(_translate("MainWindow", "设备名称"))
self.radioButton_A_ios.setText(_translate("MainWindow", "iOS"))
self.radioButton_A_android.setText(_translate("MainWindow", "Android"))
self.label_A_type.setText(_translate("MainWindow", "设备种类"))
self.pushButton_A_random.setText(_translate("MainWindow", "随机生成"))
self.pushButton_Z_start.setText(_translate("MainWindow", "完成设置,开始程序"))
self.groupBox_B.setTitle(_translate("MainWindow", "登录"))
self.label_B_username.setText(_translate("MainWindow", "用户名"))
self.label_B_password.setText(_translate("MainWindow", "密码"))
self.label_B_utoken.setText(_translate("MainWindow", "utoken"))
self.label_B_userid.setText(_translate("MainWindow", "userid"))
self.pushButton_B_login.setText(_translate("MainWindow", "使用账号密码获取新的utoken进行登录"))
self.pushButton_B_seslogin.setText(_translate("MainWindow", "使用已有的utoken, userid直接登录"))
self.checkBox_B_saveaccount.setText(_translate("MainWindow", "保存用户名"))
self.checkBox_B_savepassword.setText(_translate("MainWindow", "保存密码"))
self.groupBox_D.setTitle(_translate("MainWindow", "开始跑步请求"))
self.label_D_initloc.setText(_translate("MainWindow", "起点坐标"))
self.pushButton_D_send.setText(_translate("MainWindow", "发送请求"))
self.pushButton_D_random.setText(_translate("MainWindow", "瞎几把选"))
self.groupBox_E.setTitle(_translate("MainWindow", "当前数据"))
self.clabel_E_reqtime.setText(_translate("MainWindow", "请求时间"))
self.clabel_E_initloc.setText(_translate("MainWindow", "起点坐标"))
self.clabel_E_runid.setText(_translate("MainWindow", "runid"))
self.pushButton_E_trash.setText(_translate("MainWindow", "舍弃当前数据"))
self.clabel_E_resume.setText(_translate("MainWindow", "*已加载的缓存数据"))
self.clabel_E_dist.setText(_translate("MainWindow", "目标距离"))
self.groupBox_C.setTitle(_translate("MainWindow", "用户信息"))
self.clabel_C_name.setText(_translate("MainWindow", "姓名"))
self.clabel_C_school.setText(_translate("MainWindow", "学校"))
self.clabel_C_completed.setText(_translate("MainWindow", "完成"))
self.clabel_C_target.setText(_translate("MainWindow", "目标"))
self.groupBox_Z.setTitle(_translate("MainWindow", "状态"))
self.label_Z_status.setText(_translate("MainWindow", "初始化..."))
self.pushButton_Z_logout.setText(_translate("MainWindow", "登出"))
self.checkBox_Z_debug.setText(_translate("MainWindow", "debug输出"))
self.groupBox_F.setTitle(_translate("MainWindow", "路径规划"))
self.clabel_F_route.setText(_translate("MainWindow", "路径"))
self.pushButton_F_confirm.setText(_translate("MainWindow", "确认路径"))
self.pushButton_F_undo.setText(_translate("MainWindow", "撤销一次"))
self.clabel_F_dist.setText(_translate("MainWindow", "当前路径长度"))
self.radioButton_F_map.setText(_translate("MainWindow", "通过地图规划路径"))
self.radioButton_F_direct.setText(_translate("MainWindow", "直接连接两点"))
self.clabel_F_routemethod.setText(_translate("MainWindow", "添加下一路径点时:"))
self.checkBox_F_hidepoints.setText(_translate("MainWindow", "隐藏点标"))
self.groupBox_G.setTitle(_translate("MainWindow", "提交信息确认"))
self.clabel_G_speed.setText(_translate("MainWindow", "配速 s/km"))
self.clabel_G_distance.setText(_translate("MainWindow", "距离 km"))
self.clabel_G_bushu.setText(_translate("MainWindow", "步数"))
self.clabel_G_bupin.setText(_translate("MainWindow", "步频"))
self.clabel_G_time.setText(_translate("MainWindow", "总时间 s"))
self.pushButton_G_finalconfirm.setText(_translate("MainWindow", "确认提交"))
self.clabel_G_starttime.setText(_translate("MainWindow", "开始时间"))
self.clabel_G_endtime.setText(_translate("MainWindow", "结束时间"))
from PyQt5 import QtWebEngineWidgets
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
29937,
3812,
5314,
5759,
515,
5183,
14313,
934,
525,
29885,
29920,
3083,
1516,
29880,
29889,
1481,
29915,
13,
29937,
13,
29937,
6760,
630,
491,
29901,
10772,
17303,
29945,
3740,
775,
15299,
29871,
29945,
29889,
29896,
29945,
29889,
29946,
13,
29937,
13,
29937,
399,
25614,
29901,
3139,
12219,
3620,
1754,
304,
445,
934,
674,
367,
5714,
746,
11451,
29884,
293,
29945,
338,
13,
29937,
1065,
1449,
29889,
29871,
1938,
451,
3863,
445,
934,
6521,
366,
1073,
825,
366,
526,
2599,
29889,
13,
13,
13,
3166,
10772,
17303,
29945,
1053,
14705,
9203,
29892,
14705,
28707,
29892,
14705,
8801,
29879,
13,
13,
13,
1990,
501,
29875,
29918,
6330,
5907,
29898,
3318,
1125,
13,
1678,
822,
6230,
29965,
29875,
29898,
1311,
29892,
4241,
5907,
1125,
13,
4706,
4241,
5907,
29889,
842,
2061,
1170,
703,
6330,
5907,
1159,
13,
4706,
4241,
5907,
29889,
21476,
29898,
29896,
29953,
29900,
29900,
29892,
29871,
29929,
29900,
29900,
29897,
13,
4706,
4241,
5907,
29889,
842,
8140,
12539,
3505,
29898,
17303,
9203,
29889,
29984,
3505,
29898,
29896,
29953,
29900,
29900,
29892,
29871,
29929,
29900,
29900,
876,
13,
4706,
4241,
5907,
29889,
842,
7976,
12539,
3505,
29898,
17303,
9203,
29889,
29984,
3505,
29898,
29896,
29953,
29900,
29900,
29892,
29871,
29929,
29900,
29900,
876,
13,
4706,
1583,
29889,
25171,
8030,
353,
14705,
8801,
29879,
29889,
29984,
8801,
29898,
6330,
5907,
29897,
13,
4706,
1583,
29889,
25171,
8030,
29889,
842,
2061,
1170,
703,
25171,
8030,
1159,
13,
4706,
1583,
29889,
7030,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
25171,
8030,
29897,
13,
4706,
1583,
29889,
7030,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29896,
29900,
29892,
29871,
29946,
29941,
29896,
29892,
29871,
29953,
29896,
876,
13,
4706,
4079,
353,
14705,
28707,
29889,
29984,
9824,
580,
13,
4706,
4079,
29889,
842,
27104,
703,
232,
177,
142,
30988,
1159,
13,
4706,
4079,
29889,
842,
5228,
3505,
29898,
29906,
29953,
29897,
13,
4706,
4079,
29889,
842,
29933,
1025,
29898,
8824,
29897,
13,
4706,
4079,
29889,
842,
22676,
29898,
29945,
29900,
29897,
13,
4706,
1583,
29889,
7030,
29889,
842,
9824,
29898,
5657,
29897,
13,
4706,
1583,
29889,
7030,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
7030,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
7030,
29889,
842,
2061,
1170,
703,
7030,
1159,
13,
4706,
1583,
29889,
2972,
3313,
353,
14705,
8801,
29879,
29889,
29984,
4782,
3313,
29898,
1311,
29889,
25171,
8030,
29897,
13,
4706,
1583,
29889,
2972,
3313,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29946,
29945,
29900,
29892,
29871,
29896,
29900,
29892,
29871,
29896,
29896,
29946,
29896,
29892,
29871,
29955,
29945,
29896,
876,
13,
4706,
1583,
29889,
2972,
3313,
29889,
842,
2061,
1170,
703,
2972,
3313,
1159,
13,
4706,
1583,
29889,
15965,
353,
14705,
3609,
12412,
8801,
29879,
29889,
29984,
3609,
12412,
1043,
29898,
1311,
29889,
2972,
3313,
29897,
13,
4706,
1583,
29889,
15965,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29896,
29929,
29892,
29871,
29896,
29896,
29906,
29896,
29892,
29871,
29955,
29906,
29896,
876,
13,
4706,
1583,
29889,
15965,
29889,
842,
2061,
1170,
703,
15965,
1159,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29909,
353,
14705,
8801,
29879,
29889,
29984,
4782,
3313,
29898,
1311,
29889,
25171,
8030,
29897,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29909,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29947,
29900,
29892,
29871,
29946,
29941,
29896,
29892,
29871,
29896,
29900,
29896,
876,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29909,
29889,
842,
2061,
1170,
703,
2972,
3313,
29918,
29909,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
25118,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29909,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
25118,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29906,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
25118,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
25118,
29889,
842,
2061,
1170,
703,
1643,
29918,
29909,
29918,
25118,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
4299,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29909,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
4299,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29945,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
4299,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
4299,
29889,
842,
2061,
1170,
703,
1643,
29918,
29909,
29918,
4299,
1159,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29909,
29918,
2363,
353,
14705,
8801,
29879,
29889,
29984,
21818,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29909,
29897,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29909,
29918,
2363,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29955,
29945,
29892,
29871,
29946,
29896,
29892,
29871,
29896,
29953,
876,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29909,
29918,
2363,
29889,
842,
17817,
29898,
5574,
29897,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29909,
29918,
2363,
29889,
842,
2061,
1170,
703,
13399,
3125,
29918,
29909,
29918,
2363,
1159,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29909,
29918,
2843,
353,
14705,
8801,
29879,
29889,
29984,
21818,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29909,
29897,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29909,
29918,
2843,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29896,
29945,
29892,
29871,
29955,
29945,
29892,
29871,
29955,
29896,
29892,
29871,
29896,
29953,
876,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29909,
29918,
2843,
29889,
842,
2061,
1170,
703,
13399,
3125,
29918,
29909,
29918,
2843,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
1853,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29909,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
1853,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29955,
29955,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
1853,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
1853,
29889,
842,
2061,
1170,
703,
1643,
29918,
29909,
29918,
1853,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29909,
29918,
25118,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29909,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29909,
29918,
25118,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29941,
29945,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29909,
29918,
25118,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29909,
29918,
25118,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29909,
29918,
25118,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29909,
29918,
4299,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29909,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29909,
29918,
4299,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29946,
29945,
29892,
29871,
29896,
29906,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29909,
29918,
4299,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29909,
29918,
4299,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29909,
29918,
4299,
1159,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29909,
29918,
8172,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29909,
29897,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29909,
29918,
8172,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29929,
29953,
29892,
29871,
29946,
29953,
29892,
29871,
29947,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29909,
29918,
8172,
29889,
842,
2061,
1170,
703,
5910,
3125,
29918,
29909,
29918,
8172,
1159,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29999,
29918,
2962,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29909,
29897,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29999,
29918,
2962,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29900,
29900,
29892,
29871,
29953,
29900,
29892,
29871,
29896,
29906,
29896,
29892,
29871,
29941,
29896,
876,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29999,
29918,
2962,
29889,
842,
2061,
1170,
703,
5910,
3125,
29918,
29999,
29918,
2962,
1159,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29933,
353,
14705,
8801,
29879,
29889,
29984,
4782,
3313,
29898,
1311,
29889,
25171,
8030,
29897,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29933,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29896,
29929,
29900,
29892,
29871,
29946,
29941,
29896,
29892,
29871,
29896,
29947,
29896,
876,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29933,
29889,
842,
29943,
5066,
29898,
8824,
29897,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29933,
29889,
842,
5596,
519,
29898,
8824,
29897,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29933,
29889,
842,
2061,
1170,
703,
2972,
3313,
29918,
29933,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
6786,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
6786,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29906,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
6786,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
6786,
29889,
842,
2061,
1170,
703,
1643,
29918,
29933,
29918,
6786,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
5630,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
5630,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29945,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
5630,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
5630,
29889,
842,
2061,
1170,
703,
1643,
29918,
29933,
29918,
5630,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
329,
4476,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
329,
4476,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29947,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
329,
4476,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
329,
4476,
29889,
842,
2061,
1170,
703,
1643,
29918,
29933,
29918,
329,
4476,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
1792,
333,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
1792,
333,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29896,
29900,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
1792,
333,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
1792,
333,
29889,
842,
2061,
1170,
703,
1643,
29918,
29933,
29918,
1792,
333,
1159,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29933,
29918,
7507,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29933,
29918,
7507,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29947,
29900,
29892,
29871,
29896,
29900,
29945,
29892,
29871,
29906,
29946,
29896,
29892,
29871,
29941,
29896,
876,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29933,
29918,
7507,
29889,
842,
2061,
1170,
703,
5910,
3125,
29918,
29933,
29918,
7507,
1159,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29933,
29918,
29879,
267,
7507,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29933,
29918,
29879,
267,
7507,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29947,
29900,
29892,
29871,
29896,
29946,
29900,
29892,
29871,
29906,
29946,
29896,
29892,
29871,
29941,
29896,
876,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29933,
29918,
29879,
267,
7507,
29889,
842,
2061,
1170,
703,
5910,
3125,
29918,
29933,
29918,
29879,
267,
7507,
1159,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
10149,
353,
14705,
8801,
29879,
29889,
29984,
28360,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
10149,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29953,
29900,
29892,
29871,
29906,
29941,
29892,
29871,
29947,
29896,
29892,
29871,
29896,
29953,
876,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
10149,
29889,
842,
17817,
29898,
5574,
29897,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
10149,
29889,
842,
2061,
1170,
703,
3198,
3313,
29918,
29933,
29918,
7620,
10149,
1159,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
5630,
353,
14705,
8801,
29879,
29889,
29984,
28360,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
5630,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29953,
29900,
29892,
29871,
29946,
29947,
29892,
29871,
29955,
29896,
29892,
29871,
29896,
29953,
876,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
5630,
29889,
842,
2061,
1170,
703,
3198,
3313,
29918,
29933,
29918,
7620,
5630,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
6786,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
6786,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29896,
29947,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
6786,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
6786,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29933,
29918,
6786,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
5630,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
5630,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29946,
29945,
29892,
29871,
29896,
29947,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
5630,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
5630,
29889,
842,
29923,
1859,
6818,
29898,
17303,
8801,
29879,
29889,
2239,
457,
6103,
29889,
10048,
29923,
1859,
2951,
6103,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
5630,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29933,
29918,
5630,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
329,
4476,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
329,
4476,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29955,
29945,
29892,
29871,
29941,
29945,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
329,
4476,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
329,
4476,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29933,
29918,
329,
4476,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
1792,
333,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29933,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
1792,
333,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29896,
29900,
29900,
29892,
29871,
29896,
29900,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
1792,
333,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
1792,
333,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29933,
29918,
1792,
333,
1159,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29928,
353,
14705,
8801,
29879,
29889,
29984,
4782,
3313,
29898,
1311,
29889,
25171,
8030,
29897,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29928,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29946,
29945,
29900,
29892,
29871,
29946,
29941,
29896,
29892,
29871,
29945,
29896,
876,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29928,
29889,
842,
2061,
1170,
703,
2972,
3313,
29918,
29928,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29928,
29918,
2344,
2029,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29928,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29928,
29918,
2344,
2029,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29906,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29928,
29918,
2344,
2029,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29928,
29918,
2344,
2029,
29889,
842,
2061,
1170,
703,
1643,
29918,
29928,
29918,
2344,
2029,
1159,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29928,
29918,
6717,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29928,
29897,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29928,
29918,
6717,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29953,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29953,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29928,
29918,
6717,
29889,
842,
2061,
1170,
703,
5910,
3125,
29918,
29928,
29918,
6717,
1159,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29928,
29918,
8172,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29928,
29897,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29928,
29918,
8172,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29929,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29953,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29928,
29918,
8172,
29889,
842,
2061,
1170,
703,
5910,
3125,
29918,
29928,
29918,
8172,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29928,
29918,
2344,
2029,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29928,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29928,
29918,
2344,
2029,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29906,
29896,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29928,
29918,
2344,
2029,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29928,
29918,
2344,
2029,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29928,
29918,
2344,
2029,
1159,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29923,
353,
14705,
8801,
29879,
29889,
29984,
4782,
3313,
29898,
1311,
29889,
25171,
8030,
29897,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29923,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29945,
29896,
29900,
29892,
29871,
29946,
29941,
29896,
29892,
29871,
29929,
29896,
876,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29923,
29889,
842,
2061,
1170,
703,
2972,
3313,
29918,
29923,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
7971,
2230,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29923,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
7971,
2230,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29929,
29900,
29892,
29871,
29906,
29945,
29892,
29871,
29906,
29900,
29900,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
7971,
2230,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
7971,
2230,
29889,
842,
2061,
1170,
703,
1643,
29918,
29923,
29918,
7971,
2230,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
7971,
2230,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29923,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
7971,
2230,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29900,
29892,
29871,
29906,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
7971,
2230,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
7971,
2230,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29923,
29918,
7971,
2230,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
2344,
2029,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29923,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
2344,
2029,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29900,
29892,
29871,
29946,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
2344,
2029,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
2344,
2029,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29923,
29918,
2344,
2029,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
2344,
2029,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29923,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
2344,
2029,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29929,
29900,
29892,
29871,
29946,
29945,
29892,
29871,
29906,
29900,
29900,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
2344,
2029,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
2344,
2029,
29889,
842,
2061,
1170,
703,
1643,
29918,
29923,
29918,
2344,
2029,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
3389,
333,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29923,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
3389,
333,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29929,
29900,
29892,
29871,
29953,
29945,
29892,
29871,
29955,
29945,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
3389,
333,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
3389,
333,
29889,
842,
2061,
1170,
703,
1643,
29918,
29923,
29918,
3389,
333,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
3389,
333,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29923,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
3389,
333,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29900,
29892,
29871,
29953,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
3389,
333,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
3389,
333,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29923,
29918,
3389,
333,
1159,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29923,
29918,
509,
1161,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29923,
29897,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29923,
29918,
509,
1161,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29906,
29900,
29892,
29871,
29945,
29900,
29892,
29871,
29896,
29900,
29896,
29892,
29871,
29941,
29896,
876,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29923,
29918,
509,
1161,
29889,
842,
2061,
1170,
703,
5910,
3125,
29918,
29923,
29918,
509,
1161,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
690,
2017,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29923,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
690,
2017,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29896,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29896,
29896,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
690,
2017,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29923,
29918,
690,
2017,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
5721,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29923,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
5721,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29955,
29900,
29892,
29871,
29953,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
5721,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
5721,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29923,
29918,
5721,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
5721,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29923,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
5721,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29941,
29900,
29892,
29871,
29953,
29945,
29892,
29871,
29955,
29945,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
5721,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29923,
29918,
5721,
29889,
842,
2061,
1170,
703,
1643,
29918,
29923,
29918,
5721,
1159,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29907,
353,
14705,
8801,
29879,
29889,
29984,
4782,
3313,
29898,
1311,
29889,
25171,
8030,
29897,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29907,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29941,
29947,
29900,
29892,
29871,
29946,
29941,
29896,
29892,
29871,
29953,
29896,
876,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29907,
29889,
842,
2061,
1170,
703,
2972,
3313,
29918,
29907,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
978,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29907,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
978,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
978,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
978,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29907,
29918,
978,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
27041,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29907,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
27041,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29946,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
27041,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
27041,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29907,
29918,
27041,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
5729,
9446,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29907,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
5729,
9446,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29947,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
5729,
9446,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
5729,
9446,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29907,
29918,
5729,
9446,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
5182,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29907,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
5182,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29947,
29900,
29892,
29871,
29946,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
5182,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
5182,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29907,
29918,
5182,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
5182,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29907,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
5182,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29946,
29900,
29892,
29871,
29946,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
5182,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
5182,
29889,
842,
2061,
1170,
703,
1643,
29918,
29907,
29918,
5182,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
5729,
9446,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29907,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
5729,
9446,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29946,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
5729,
9446,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
5729,
9446,
29889,
842,
2061,
1170,
703,
1643,
29918,
29907,
29918,
5729,
9446,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
978,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29907,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
978,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29906,
29900,
29900,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
978,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
978,
29889,
842,
2061,
1170,
703,
1643,
29918,
29907,
29918,
978,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
27041,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29907,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
27041,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29946,
29900,
29892,
29871,
29906,
29900,
29900,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
27041,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29907,
29918,
27041,
29889,
842,
2061,
1170,
703,
1643,
29918,
29907,
29918,
27041,
1159,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29999,
353,
14705,
8801,
29879,
29889,
29984,
4782,
3313,
29898,
1311,
29889,
25171,
8030,
29897,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29999,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29946,
29945,
29900,
29892,
29871,
29955,
29955,
29900,
29892,
29871,
29896,
29896,
29946,
29896,
29892,
29871,
29896,
29906,
29896,
876,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29999,
29889,
842,
2061,
1170,
703,
2972,
3313,
29918,
29999,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29999,
29918,
4882,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29999,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29999,
29918,
4882,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29896,
29896,
29896,
29896,
29892,
29871,
29953,
29896,
876,
13,
4706,
4079,
353,
14705,
28707,
29889,
29984,
9824,
580,
13,
4706,
4079,
29889,
842,
27104,
703,
232,
177,
142,
30988,
1159,
13,
4706,
4079,
29889,
842,
5228,
3505,
29898,
29906,
29953,
29897,
13,
4706,
4079,
29889,
842,
29933,
1025,
29898,
8824,
29897,
13,
4706,
4079,
29889,
842,
22676,
29898,
29945,
29900,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29999,
29918,
4882,
29889,
842,
9824,
29898,
5657,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29999,
29918,
4882,
29889,
842,
2061,
1170,
703,
1643,
29918,
29999,
29918,
4882,
1159,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29999,
29918,
1188,
449,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29999,
29897,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29999,
29918,
1188,
449,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29929,
29900,
29892,
29871,
29953,
29896,
29892,
29871,
29906,
29941,
876,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29999,
29918,
1188,
449,
29889,
842,
2061,
1170,
703,
5910,
3125,
29918,
29999,
29918,
1188,
449,
1159,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29999,
29918,
8382,
353,
14705,
8801,
29879,
29889,
29984,
28360,
29898,
1311,
29889,
2972,
3313,
29918,
29999,
29897,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29999,
29918,
8382,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29929,
29900,
29892,
29871,
29929,
29900,
29892,
29871,
29929,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29999,
29918,
8382,
29889,
842,
2061,
1170,
703,
3198,
3313,
29918,
29999,
29918,
8382,
1159,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29943,
353,
14705,
8801,
29879,
29889,
29984,
4782,
3313,
29898,
1311,
29889,
25171,
8030,
29897,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29943,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29953,
29896,
29900,
29892,
29871,
29946,
29941,
29896,
29892,
29871,
29896,
29941,
29896,
876,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29943,
29889,
842,
2061,
1170,
703,
2972,
3313,
29918,
29943,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
13134,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29943,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
13134,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29941,
29892,
29871,
29906,
29945,
29892,
29871,
29941,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
13134,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
13134,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29943,
29918,
13134,
1159,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29943,
29918,
26897,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29943,
29897,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29943,
29918,
26897,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29945,
29900,
29892,
29871,
29929,
29900,
29892,
29871,
29955,
29896,
29892,
29871,
29941,
29896,
876,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29943,
29918,
26897,
29889,
842,
2061,
1170,
703,
5910,
3125,
29918,
29943,
29918,
26897,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29943,
29918,
13134,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29943,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29943,
29918,
13134,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29945,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29941,
29955,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29943,
29918,
13134,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29943,
29918,
13134,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29943,
29918,
13134,
1159,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29943,
29918,
6201,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29943,
29897,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29943,
29918,
6201,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29955,
29900,
29892,
29871,
29929,
29900,
29892,
29871,
29955,
29896,
29892,
29871,
29941,
29896,
876,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29943,
29918,
6201,
29889,
842,
2061,
1170,
703,
5910,
3125,
29918,
29943,
29918,
6201,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29943,
29918,
5721,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29943,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29943,
29918,
5721,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29941,
29900,
29892,
29871,
29929,
29900,
29892,
29871,
29896,
29941,
29896,
29892,
29871,
29941,
29896,
876,
13,
4706,
4079,
353,
14705,
28707,
29889,
29984,
9824,
580,
13,
4706,
4079,
29889,
842,
27104,
703,
232,
177,
142,
30988,
1159,
13,
4706,
4079,
29889,
842,
5228,
3505,
29898,
29896,
29906,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29943,
29918,
5721,
29889,
842,
9824,
29898,
5657,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29943,
29918,
5721,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29943,
29918,
5721,
29889,
842,
2061,
1170,
703,
1643,
29918,
29943,
29918,
5721,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
5721,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29943,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
5721,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29929,
29900,
29892,
29871,
29896,
29896,
29896,
29892,
29871,
29941,
29896,
876,
13,
4706,
4079,
353,
14705,
28707,
29889,
29984,
9824,
580,
13,
4706,
4079,
29889,
842,
27104,
703,
232,
177,
142,
30988,
1159,
13,
4706,
4079,
29889,
842,
5228,
3505,
29898,
29896,
29906,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
5721,
29889,
842,
9824,
29898,
5657,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
5721,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
5721,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29943,
29918,
5721,
1159,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
1958,
353,
14705,
8801,
29879,
29889,
29984,
21818,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29943,
29897,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
1958,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29946,
29900,
29892,
29871,
29945,
29900,
29892,
29871,
29896,
29906,
29896,
29892,
29871,
29906,
29900,
876,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
1958,
29889,
842,
17817,
29898,
5574,
29897,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
1958,
29889,
842,
2061,
1170,
703,
13399,
3125,
29918,
29943,
29918,
1958,
1159,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
11851,
353,
14705,
8801,
29879,
29889,
29984,
21818,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29943,
29897,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
11851,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29955,
29900,
29892,
29871,
29945,
29900,
29892,
29871,
29929,
29896,
29892,
29871,
29906,
29900,
876,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
11851,
29889,
842,
17817,
29898,
8824,
29897,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
11851,
29889,
842,
2061,
1170,
703,
13399,
3125,
29918,
29943,
29918,
11851,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
14608,
331,
959,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29943,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
14608,
331,
959,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29900,
29892,
29871,
29945,
29896,
29892,
29871,
29896,
29896,
29896,
29892,
29871,
29896,
29953,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
14608,
331,
959,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
14608,
331,
959,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29943,
29918,
14608,
331,
959,
1159,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29943,
29918,
11458,
9748,
353,
14705,
8801,
29879,
29889,
29984,
28360,
29898,
1311,
29889,
2972,
3313,
29918,
29943,
29897,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29943,
29918,
11458,
9748,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29900,
29892,
29871,
29955,
29945,
29892,
29871,
29955,
29896,
29892,
29871,
29896,
29953,
876,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29943,
29918,
11458,
9748,
29889,
842,
2061,
1170,
703,
3198,
3313,
29918,
29943,
29918,
11458,
9748,
1159,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29954,
353,
14705,
8801,
29879,
29889,
29984,
4782,
3313,
29898,
1311,
29889,
25171,
8030,
29897,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29954,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29955,
29945,
29900,
29892,
29871,
29946,
29941,
29896,
29892,
29871,
29896,
29946,
29896,
876,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29954,
29889,
842,
2061,
1170,
703,
2972,
3313,
29918,
29954,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
19244,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
19244,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29945,
29900,
29892,
29871,
29896,
29906,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
19244,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
19244,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29954,
29918,
19244,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
19322,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
19322,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29941,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
19322,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
19322,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29954,
29918,
19322,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
19322,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
19322,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29906,
29945,
29892,
29871,
29896,
29906,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
19322,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
19322,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29954,
29918,
19322,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
19244,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
19244,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29945,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
19244,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
19244,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29954,
29918,
19244,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
786,
262,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
786,
262,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29955,
29945,
29892,
29871,
29896,
29906,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
786,
262,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
786,
262,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29954,
29918,
29890,
786,
262,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
29890,
1878,
29884,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
29890,
1878,
29884,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29896,
29900,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
29890,
1878,
29884,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
29890,
1878,
29884,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29954,
29918,
29890,
1878,
29884,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
29890,
786,
262,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
29890,
786,
262,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29896,
29900,
29892,
29871,
29947,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
29890,
786,
262,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
29890,
786,
262,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29954,
29918,
29890,
786,
262,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
1878,
29884,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
1878,
29884,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29955,
29900,
29892,
29871,
29896,
29900,
29900,
29892,
29871,
29896,
29906,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
1878,
29884,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
1878,
29884,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29954,
29918,
29890,
1878,
29884,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
2230,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
2230,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29896,
29900,
29892,
29871,
29941,
29900,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
2230,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
2230,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29954,
29918,
2230,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
2230,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
2230,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29955,
29900,
29892,
29871,
29906,
29945,
29892,
29871,
29896,
29906,
29896,
29892,
29871,
29906,
29896,
876,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
2230,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
2230,
29889,
842,
2061,
1170,
703,
1220,
6103,
29918,
29954,
29918,
2230,
1159,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29954,
29918,
8394,
26897,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29954,
29918,
8394,
26897,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29941,
29906,
29900,
29892,
29871,
29896,
29900,
29900,
29892,
29871,
29896,
29900,
29896,
29892,
29871,
29941,
29896,
876,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29954,
29918,
8394,
26897,
29889,
842,
2061,
1170,
703,
5910,
3125,
29918,
29954,
29918,
8394,
26897,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
2962,
2230,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
2962,
2230,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29896,
29900,
29892,
29871,
29945,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
2962,
2230,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
2962,
2230,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29954,
29918,
2962,
2230,
1159,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
355,
2230,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
355,
2230,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29896,
29900,
29892,
29871,
29955,
29945,
29892,
29871,
29945,
29946,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
355,
2230,
29889,
842,
14658,
29898,
17303,
9203,
29889,
17303,
29889,
2499,
647,
13409,
29897,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
355,
2230,
29889,
842,
2061,
1170,
703,
695,
1107,
29918,
29954,
29918,
355,
2230,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29954,
29918,
2962,
2230,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29954,
29918,
2962,
2230,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29955,
29900,
29892,
29871,
29945,
29945,
29892,
29871,
29896,
29945,
29900,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29954,
29918,
2962,
2230,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29954,
29918,
2962,
2230,
29889,
842,
2061,
1170,
703,
1643,
29918,
29954,
29918,
2962,
2230,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29954,
29918,
355,
2230,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
2972,
3313,
29918,
29954,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29954,
29918,
355,
2230,
29889,
842,
7999,
7843,
29898,
17303,
9203,
29889,
29984,
7364,
29898,
29906,
29955,
29900,
29892,
29871,
29955,
29945,
29892,
29871,
29896,
29945,
29900,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
1643,
29918,
29954,
29918,
355,
2230,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29954,
29918,
355,
2230,
29889,
842,
2061,
1170,
703,
1643,
29918,
29954,
29918,
355,
2230,
1159,
13,
4706,
4241,
5907,
29889,
842,
23369,
1705,
8801,
29898,
1311,
29889,
25171,
8030,
29897,
13,
13,
4706,
1583,
29889,
276,
21652,
29965,
29875,
29898,
6330,
5907,
29897,
13,
4706,
14705,
9203,
29889,
29984,
19346,
2061,
29889,
6915,
16973,
1862,
2059,
1170,
29898,
6330,
5907,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29909,
29918,
25118,
29892,
1583,
29889,
1220,
6103,
29918,
29909,
29918,
4299,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29909,
29918,
4299,
29892,
1583,
29889,
5910,
3125,
29918,
29909,
29918,
8172,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
5910,
3125,
29918,
29909,
29918,
8172,
29892,
1583,
29889,
13399,
3125,
29918,
29909,
29918,
2363,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
13399,
3125,
29918,
29909,
29918,
2363,
29892,
1583,
29889,
13399,
3125,
29918,
29909,
29918,
2843,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
13399,
3125,
29918,
29909,
29918,
2843,
29892,
1583,
29889,
5910,
3125,
29918,
29999,
29918,
2962,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
5910,
3125,
29918,
29999,
29918,
2962,
29892,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
6786,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29933,
29918,
6786,
29892,
1583,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
10149,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
10149,
29892,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
5630,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29933,
29918,
5630,
29892,
1583,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
5630,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
5630,
29892,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
329,
4476,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29933,
29918,
329,
4476,
29892,
1583,
29889,
1220,
6103,
29918,
29933,
29918,
1792,
333,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29933,
29918,
1792,
333,
29892,
1583,
29889,
5910,
3125,
29918,
29933,
29918,
7507,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
5910,
3125,
29918,
29933,
29918,
7507,
29892,
1583,
29889,
5910,
3125,
29918,
29933,
29918,
29879,
267,
7507,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
5910,
3125,
29918,
29933,
29918,
29879,
267,
7507,
29892,
1583,
29889,
1220,
6103,
29918,
29928,
29918,
2344,
2029,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29928,
29918,
2344,
2029,
29892,
1583,
29889,
5910,
3125,
29918,
29928,
29918,
8172,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
5910,
3125,
29918,
29928,
29918,
8172,
29892,
1583,
29889,
5910,
3125,
29918,
29928,
29918,
6717,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
5910,
3125,
29918,
29928,
29918,
6717,
29892,
1583,
29889,
5910,
3125,
29918,
29923,
29918,
509,
1161,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
5910,
3125,
29918,
29923,
29918,
509,
1161,
29892,
1583,
29889,
1220,
6103,
29918,
29943,
29918,
13134,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29943,
29918,
13134,
29892,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
1958,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
13399,
3125,
29918,
29943,
29918,
1958,
29892,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
11851,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
13399,
3125,
29918,
29943,
29918,
11851,
29892,
1583,
29889,
3198,
3313,
29918,
29943,
29918,
11458,
9748,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
3198,
3313,
29918,
29943,
29918,
11458,
9748,
29892,
1583,
29889,
5910,
3125,
29918,
29943,
29918,
6201,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
5910,
3125,
29918,
29943,
29918,
6201,
29892,
1583,
29889,
5910,
3125,
29918,
29943,
29918,
26897,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
5910,
3125,
29918,
29943,
29918,
26897,
29892,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
19322,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29954,
29918,
19322,
29892,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
19244,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29954,
29918,
19244,
29892,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
786,
262,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
786,
262,
29892,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
1878,
29884,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29954,
29918,
29890,
1878,
29884,
29892,
1583,
29889,
1220,
6103,
29918,
29954,
29918,
2230,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
1220,
6103,
29918,
29954,
29918,
2230,
29892,
1583,
29889,
5910,
3125,
29918,
29954,
29918,
8394,
26897,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
5910,
3125,
29918,
29954,
29918,
8394,
26897,
29892,
1583,
29889,
5910,
3125,
29918,
29999,
29918,
1188,
449,
29897,
13,
4706,
4241,
5907,
29889,
842,
8863,
7514,
29898,
1311,
29889,
5910,
3125,
29918,
29999,
29918,
1188,
449,
29892,
1583,
29889,
3198,
3313,
29918,
29999,
29918,
8382,
29897,
13,
13,
1678,
822,
337,
21652,
29965,
29875,
29898,
1311,
29892,
4241,
5907,
1125,
13,
4706,
903,
21652,
353,
14705,
9203,
29889,
29984,
9203,
4873,
29889,
21652,
13,
4706,
4241,
5907,
29889,
842,
5907,
7030,
7373,
21652,
703,
6330,
5907,
613,
376,
29885,
29920,
3083,
1516,
29880,
5783,
13,
4706,
1583,
29889,
2972,
3313,
29889,
842,
7030,
7373,
21652,
703,
6330,
5907,
613,
376,
30533,
30861,
5783,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29909,
29889,
842,
7030,
7373,
21652,
703,
6330,
5907,
613,
376,
31382,
233,
142,
162,
30210,
30872,
232,
167,
138,
30689,
31021,
5783,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
25118,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30872,
232,
167,
138,
25118,
5783,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
4299,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30872,
232,
167,
138,
30548,
31685,
5783,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29909,
29918,
2363,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
29875,
3267,
5783,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29909,
29918,
2843,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
8136,
5783,
13,
4706,
1583,
29889,
1643,
29918,
29909,
29918,
1853,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30872,
232,
167,
138,
31893,
30832,
5783,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29909,
29918,
8172,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
236,
157,
146,
31429,
30486,
30494,
5783,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29999,
29918,
2962,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31366,
30494,
30872,
30669,
29892,
31026,
31020,
31101,
31463,
5783,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29933,
29889,
842,
7030,
7373,
21652,
703,
6330,
5907,
613,
376,
31451,
31283,
5783,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
6786,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30406,
31229,
30548,
5783,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
5630,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31461,
31183,
5783,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
329,
4476,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
329,
4476,
5783,
13,
4706,
1583,
29889,
1643,
29918,
29933,
29918,
1792,
333,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
1792,
333,
5783,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29933,
29918,
7507,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30785,
30406,
235,
183,
169,
30850,
31461,
31183,
31024,
30683,
30374,
30210,
329,
4476,
31174,
30448,
31451,
31283,
5783,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29933,
29918,
29879,
267,
7507,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30785,
30406,
31290,
30417,
30210,
329,
4476,
29892,
1404,
333,
31157,
31092,
31451,
31283,
5783,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
10149,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30982,
30946,
30406,
31229,
30548,
5783,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29933,
29918,
7620,
5630,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30982,
30946,
31461,
31183,
5783,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29928,
29889,
842,
7030,
7373,
21652,
703,
6330,
5907,
613,
376,
31026,
31020,
235,
186,
148,
233,
176,
168,
31088,
31376,
5783,
13,
4706,
1583,
29889,
1643,
29918,
29928,
29918,
2344,
2029,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31558,
30940,
232,
160,
147,
31062,
5783,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29928,
29918,
6717,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30910,
31545,
31088,
31376,
5783,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29928,
29918,
8172,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
234,
161,
145,
232,
138,
163,
233,
141,
141,
31333,
5783,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29923,
29889,
842,
7030,
7373,
21652,
703,
6330,
5907,
613,
376,
30948,
30658,
30354,
30763,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
7971,
2230,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31088,
31376,
30594,
31016,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
2344,
2029,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31558,
30940,
232,
160,
147,
31062,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
3389,
333,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
3389,
333,
5783,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29923,
29918,
509,
1161,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
235,
139,
144,
232,
191,
134,
30948,
30658,
30354,
30763,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
690,
2017,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
26345,
31290,
30666,
31526,
30210,
234,
191,
150,
30946,
30354,
30763,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29923,
29918,
5721,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30895,
31062,
235,
186,
160,
234,
169,
190,
5783,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29907,
29889,
842,
7030,
7373,
21652,
703,
6330,
5907,
613,
376,
30406,
31229,
30689,
31021,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
978,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
232,
170,
150,
30548,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
27041,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30415,
31071,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
5729,
9446,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31366,
30494,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29907,
29918,
5182,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30895,
31062,
5783,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29999,
29889,
842,
7030,
7373,
21652,
703,
6330,
5907,
613,
376,
31531,
31613,
5783,
13,
4706,
1583,
29889,
1643,
29918,
29999,
29918,
4882,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31120,
31020,
30705,
856,
5783,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29999,
29918,
1188,
449,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31451,
30544,
5783,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29999,
29918,
8382,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
8382,
31573,
30544,
5783,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29943,
29889,
842,
7030,
7373,
21652,
703,
6330,
5907,
613,
376,
30874,
232,
193,
135,
235,
170,
135,
232,
139,
149,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
13134,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30874,
232,
193,
135,
5783,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29943,
29918,
26897,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31835,
31439,
30874,
232,
193,
135,
5783,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29943,
29918,
6201,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
233,
149,
167,
236,
151,
131,
30287,
30936,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
5721,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30948,
30658,
30874,
232,
193,
135,
31143,
30898,
5783,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
1958,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
30768,
31138,
30533,
30861,
235,
170,
135,
232,
139,
149,
30874,
232,
193,
135,
5783,
13,
4706,
1583,
29889,
13399,
3125,
29918,
29943,
29918,
11851,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31157,
31092,
31903,
31092,
31977,
30940,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29943,
29918,
14608,
331,
959,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31538,
30666,
30557,
30287,
30874,
232,
193,
135,
30940,
30594,
29901,
5783,
13,
4706,
1583,
29889,
3198,
3313,
29918,
29943,
29918,
11458,
9748,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
236,
157,
147,
31707,
30940,
31062,
5783,
13,
4706,
1583,
29889,
2972,
3313,
29918,
29954,
29889,
842,
7030,
7373,
21652,
703,
6330,
5907,
613,
376,
31302,
31398,
30689,
31021,
31835,
31439,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
19322,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31361,
31859,
269,
29914,
8848,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
19244,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
235,
186,
160,
234,
169,
190,
259,
2383,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
29890,
1878,
29884,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
233,
176,
168,
30354,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
29890,
786,
262,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
233,
176,
168,
236,
165,
148,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
2230,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
233,
131,
190,
30594,
31016,
269,
5783,
13,
4706,
1583,
29889,
5910,
3125,
29918,
29954,
29918,
8394,
26897,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31835,
31439,
31302,
31398,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
2962,
2230,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31026,
31020,
30594,
31016,
5783,
13,
4706,
1583,
29889,
695,
1107,
29918,
29954,
29918,
355,
2230,
29889,
12038,
7373,
21652,
703,
6330,
5907,
613,
376,
31320,
233,
160,
162,
30594,
31016,
5783,
13,
3166,
10772,
17303,
29945,
1053,
14705,
3609,
12412,
8801,
29879,
13,
2
] |
grammar.py | prtx/SLR-Parser-Implementation | 0 | 143129 | <reponame>prtx/SLR-Parser-Implementation
from context_free_grammar import Context_Free_Grammar
def Grammar():
grammar = Context_Free_Grammar()
grammar.add_terminal('+', '*', '(', ')', 'id')
grammar.add_non_terminal('E', 'T', 'F')
grammar.set_start_symbol('E')
grammar.add_production_rule('E', ['E', '+', 'T'], ['T'])
grammar.add_production_rule('T', ['T', '*', 'F'], ['F'])
grammar.add_production_rule('F', ['(', 'E', ')'], ['id'])
return grammar
| [
1,
529,
276,
1112,
420,
29958,
558,
7508,
29914,
12750,
29934,
29899,
11726,
29899,
1888,
14607,
13,
3166,
3030,
29918,
9021,
29918,
1393,
3034,
1053,
15228,
29918,
20475,
29918,
29954,
2572,
3034,
13,
13,
13,
1753,
16878,
3034,
7295,
13,
12,
13,
12,
1393,
3034,
353,
15228,
29918,
20475,
29918,
29954,
2572,
3034,
580,
13,
12,
13,
12,
1393,
3034,
29889,
1202,
29918,
8489,
979,
877,
29974,
742,
525,
29930,
742,
525,
29317,
25710,
742,
525,
333,
1495,
13,
12,
1393,
3034,
29889,
1202,
29918,
5464,
29918,
8489,
979,
877,
29923,
742,
525,
29911,
742,
525,
29943,
1495,
13,
12,
1393,
3034,
29889,
842,
29918,
2962,
29918,
18098,
877,
29923,
1495,
13,
12,
13,
12,
1393,
3034,
29889,
1202,
29918,
24601,
29918,
7491,
877,
29923,
742,
6024,
29923,
742,
525,
29974,
742,
525,
29911,
7464,
6024,
29911,
11287,
13,
12,
1393,
3034,
29889,
1202,
29918,
24601,
29918,
7491,
877,
29911,
742,
6024,
29911,
742,
525,
29930,
742,
525,
29943,
7464,
6024,
29943,
11287,
13,
12,
1393,
3034,
29889,
1202,
29918,
24601,
29918,
7491,
877,
29943,
742,
6024,
29317,
525,
29923,
742,
25710,
7464,
6024,
333,
11287,
13,
12,
13,
12,
2457,
25437,
13,
13,
2
] |
comments/models.py | chench53/jquery-comments-server | 2 | 44163 | from django.db import models
from django.utils import timezone
# Create your models here.
class Creator(models.Model):
fullname = models.CharField(max_length=30)
profile_picture_url = models.URLField()
def __str__(self):
return self.fullname
class Customer(models.Model):
pass
class File(models.Model):
file_url = models.URLField()
file_mime_type = models.CharField(max_length=20)
class Comment(models.Model):
creator = models.ForeignKey(Creator, models.SET_NULL, null=True)
created = models.DateTimeField(blank=True, null=True)
modified = models.DateTimeField(blank=True, null=True)
content = models.TextField()
parent = models.ForeignKey('self', models.CASCADE, null=True, blank=True)
upvote_count = models.IntegerField(default=0)
def __str__(self):
return '{creator}: {content}...'.format(creator=self.creator, content=self.content[:40])
class Upvote(models.Model):
creator = models.ForeignKey(Creator, models.CASCADE, null=True)
comment = models.ForeignKey(Comment, models.CASCADE, null=True)
class Meta:
unique_together = (("creator", "comment"),)
def __str__(self):
return '{creator} upvote {comment}'.format(creator=creator, comment=comment)
| [
1,
515,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
13239,
1053,
29431,
13,
13,
29937,
6204,
596,
4733,
1244,
29889,
13,
13,
1990,
6760,
1061,
29898,
9794,
29889,
3195,
1125,
13,
1678,
2989,
978,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29941,
29900,
29897,
13,
1678,
8722,
29918,
12095,
29918,
2271,
353,
4733,
29889,
4219,
3073,
580,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
1583,
29889,
8159,
978,
13,
13,
13,
1990,
21886,
29898,
9794,
29889,
3195,
1125,
13,
1678,
1209,
13,
13,
13,
1990,
3497,
29898,
9794,
29889,
3195,
1125,
13,
1678,
934,
29918,
2271,
353,
4733,
29889,
4219,
3073,
580,
13,
1678,
934,
29918,
29885,
603,
29918,
1853,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29906,
29900,
29897,
13,
13,
13,
1990,
461,
29898,
9794,
29889,
3195,
1125,
13,
1678,
907,
1061,
353,
4733,
29889,
27755,
2558,
29898,
9832,
1061,
29892,
4733,
29889,
10490,
29918,
10074,
29892,
1870,
29922,
5574,
29897,
13,
1678,
2825,
353,
4733,
29889,
11384,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
13,
1678,
9120,
353,
4733,
29889,
11384,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
13,
1678,
2793,
353,
4733,
29889,
15778,
580,
13,
13,
1678,
3847,
353,
4733,
29889,
27755,
2558,
877,
1311,
742,
4733,
29889,
29907,
3289,
5454,
2287,
29892,
1870,
29922,
5574,
29892,
9654,
29922,
5574,
29897,
13,
13,
1678,
701,
15814,
29918,
2798,
353,
4733,
29889,
7798,
3073,
29898,
4381,
29922,
29900,
29897,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
22372,
1037,
1061,
6177,
426,
3051,
29913,
856,
4286,
4830,
29898,
1037,
1061,
29922,
1311,
29889,
1037,
1061,
29892,
2793,
29922,
1311,
29889,
3051,
7503,
29946,
29900,
2314,
13,
13,
1990,
5020,
15814,
29898,
9794,
29889,
3195,
1125,
13,
1678,
907,
1061,
353,
4733,
29889,
27755,
2558,
29898,
9832,
1061,
29892,
4733,
29889,
29907,
3289,
5454,
2287,
29892,
1870,
29922,
5574,
29897,
13,
1678,
3440,
353,
4733,
29889,
27755,
2558,
29898,
20001,
29892,
4733,
29889,
29907,
3289,
5454,
2287,
29892,
1870,
29922,
5574,
29897,
13,
13,
1678,
770,
20553,
29901,
13,
4706,
5412,
29918,
29873,
12966,
353,
313,
703,
1037,
1061,
613,
376,
9342,
4968,
29897,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
22372,
1037,
1061,
29913,
701,
15814,
426,
9342,
29913,
4286,
4830,
29898,
1037,
1061,
29922,
1037,
1061,
29892,
3440,
29922,
9342,
29897,
13,
2
] |
accounts/tests/mixins_tests.py | ygrass/handsome | 0 | 112407 | # -*- coding: utf-8 -*-
from django import forms
from django.test.testcases import TestCase
from accounts.mixins import PhoneFormMixin
class PhoneFormMixinTests(TestCase):
"""
Tests for PhoneFormMixin
"""
def test_clean_username(self):
"""
Check username as phone number
"""
mixin = PhoneFormMixin()
# invalid number
mixin.data = {'username': '123'}
self.assertRaises(forms.ValidationError,
lambda: mixin.clean_username())
# valid number
mixin.data = {'username': '12345678900'}
self.assertTrue(mixin.clean_username() == '12345678900')
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
9557,
1053,
7190,
13,
3166,
9557,
29889,
1688,
29889,
1688,
11436,
1053,
4321,
8259,
13,
13,
3166,
15303,
29889,
28084,
1144,
1053,
24323,
2500,
29924,
861,
262,
13,
13,
13,
1990,
24323,
2500,
29924,
861,
262,
24376,
29898,
3057,
8259,
1125,
13,
1678,
9995,
13,
1678,
4321,
29879,
363,
24323,
2500,
29924,
861,
262,
13,
1678,
9995,
13,
1678,
822,
1243,
29918,
14941,
29918,
6786,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
5399,
8952,
408,
9008,
1353,
13,
4706,
9995,
13,
4706,
6837,
262,
353,
24323,
2500,
29924,
861,
262,
580,
13,
13,
4706,
396,
8340,
1353,
13,
4706,
6837,
262,
29889,
1272,
353,
11117,
6786,
2396,
525,
29896,
29906,
29941,
10827,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
9514,
29889,
19448,
2392,
29892,
13,
462,
3986,
14013,
29901,
6837,
262,
29889,
14941,
29918,
6786,
3101,
13,
13,
4706,
396,
2854,
1353,
13,
4706,
6837,
262,
29889,
1272,
353,
11117,
6786,
2396,
525,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29929,
29900,
29900,
10827,
13,
4706,
1583,
29889,
9294,
5574,
29898,
28084,
262,
29889,
14941,
29918,
6786,
580,
1275,
525,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29929,
29900,
29900,
1495,
13,
2
] |
survae/data/loaders/image/celeba.py | robert-giaquinto/survae_flows | 2 | 190332 | from survae.data.datasets.image import SuperResolutionCelebA32Dataset, UnsupervisedCelebA32Dataset
from survae.data.datasets.image import SuperResolutionCelebA64Dataset, UnsupervisedCelebA64Dataset
from survae.data.datasets.image import SuperResolutionCelebA128Dataset, UnsupervisedCelebA128Dataset
from torchvision.transforms import Compose, ToTensor, Resize
from survae.data.transforms import Quantize
from survae.data import TrainValidTestLoader, DATA_PATH
class CelebA(TrainValidTestLoader):
'''
The CelebA dataset of
(Liu et al., 2015): https://arxiv.org/abs/1411.7766
preprocessed to 64x64 as in
(Larsen et al. 2016): https://arxiv.org/abs/1512.09300
(Dinh et al., 2017): https://arxiv.org/abs/1605.08803
'''
def __init__(self, input_size, root=DATA_PATH, num_bits=8, pil_transforms=[], conditional=False, super_resolution=False, sr_scale_factor=4, resize_hw=None, bicubic=False):
super(CelebA, self).__init__()
assert len(input_size) == 3
self.root = root
self.input_size = input_size
self.y_classes = 40
trans_train = pil_transforms + [ToTensor(), Quantize(num_bits)]
trans_test = [ToTensor(), Quantize(num_bits)]
if resize_hw is not None:
trans_train.insert(0, Resize((resize_hw, resize_hw)))
trans_test.insert(0, Resize((resize_hw, resize_hw)))
if conditional:
raise ValueError(f"Conditional CelebA dataset not available yet.")
# Load data
if super_resolution:
if input_size[-1] == 32:
Dataset = SuperResolutionCelebA32Dataset
elif input_size[-1] == 64:
Dataset = SuperResolutionCelebA64Dataset
elif input_size[-1] == 128:
Dataset = SuperResolutionCelebA128Dataset
else:
raise ValueError(f"Invalid input size {input_size}")
self.train = Dataset(root, split='train', transform=Compose(trans_train), sr_scale_factor=sr_scale_factor, bicubic=bicubic)
self.valid = Dataset(root, split='valid', transform=Compose(trans_test), sr_scale_factor=sr_scale_factor, bicubic=bicubic)
self.test = Dataset(root, split='test', transform=Compose(trans_test), sr_scale_factor=sr_scale_factor, bicubic=bicubic)
else:
if input_size[-1] == 32:
Dataset = UnsupervisedCelebA32Dataset
elif input_size[-1] == 64:
Dataset = UnsupervisedCelebA64Dataset
elif input_size[-1] == 128:
Dataset = UnsupervisedCelebA128Dataset
else:
raise ValueError(f"Invalid input size {input_size}")
self.train = Dataset(root, split='train', transform=Compose(trans_train))
self.valid = Dataset(root, split='valid', transform=Compose(trans_test))
self.test = Dataset(root, split='test', transform=Compose(trans_test))
class CelebA32(CelebA):
def __init__(self, root=DATA_PATH, num_bits=8, pil_transforms=[], conditional=False, super_resolution=False, sr_scale_factor=4, resize_hw=None, bicubic=False):
super(CelebA32, self).__init__(input_size=[3,32,32],
root=root,
num_bits=num_bits,
pil_transforms=pil_transforms,
conditional=conditional,
super_resolution=super_resolution, sr_scale_factor=sr_scale_factor, bicubic=bicubic,
resize_hw=resize_hw)
class CelebA64(CelebA):
def __init__(self, root=DATA_PATH, num_bits=8, pil_transforms=[], conditional=False, super_resolution=False, sr_scale_factor=4, resize_hw=None, bicubic=False):
super(CelebA64, self).__init__(input_size=[3,64,64],
root=root,
num_bits=num_bits,
pil_transforms=pil_transforms,
conditional=conditional,
super_resolution=super_resolution, sr_scale_factor=sr_scale_factor,bicubic=bicubic,
resize_hw=resize_hw)
class CelebA128(CelebA):
def __init__(self, root=DATA_PATH, num_bits=8, pil_transforms=[], conditional=False, super_resolution=False, sr_scale_factor=4, resize_hw=None, bicubic=False):
super(CelebA128, self).__init__(input_size=[3,128,128],
root=root,
num_bits=num_bits,
pil_transforms=pil_transforms,
conditional=conditional,
super_resolution=super_resolution, sr_scale_factor=sr_scale_factor, bicubic=bicubic,
resize_hw=resize_hw)
| [
1,
515,
1190,
1564,
29872,
29889,
1272,
29889,
14538,
1691,
29889,
3027,
1053,
5670,
12375,
918,
29907,
6146,
29890,
29909,
29941,
29906,
16390,
24541,
29892,
853,
9136,
11292,
29907,
6146,
29890,
29909,
29941,
29906,
16390,
24541,
13,
3166,
1190,
1564,
29872,
29889,
1272,
29889,
14538,
1691,
29889,
3027,
1053,
5670,
12375,
918,
29907,
6146,
29890,
29909,
29953,
29946,
16390,
24541,
29892,
853,
9136,
11292,
29907,
6146,
29890,
29909,
29953,
29946,
16390,
24541,
13,
3166,
1190,
1564,
29872,
29889,
1272,
29889,
14538,
1691,
29889,
3027,
1053,
5670,
12375,
918,
29907,
6146,
29890,
29909,
29896,
29906,
29947,
16390,
24541,
29892,
853,
9136,
11292,
29907,
6146,
29890,
29909,
29896,
29906,
29947,
16390,
24541,
13,
3166,
4842,
305,
4924,
29889,
9067,
29879,
1053,
3831,
852,
29892,
1763,
29911,
6073,
29892,
2538,
675,
13,
3166,
1190,
1564,
29872,
29889,
1272,
29889,
9067,
29879,
1053,
22746,
675,
13,
3166,
1190,
1564,
29872,
29889,
1272,
1053,
28186,
7211,
3057,
10036,
29892,
360,
8254,
29918,
10145,
13,
13,
13,
1990,
315,
6146,
29890,
29909,
29898,
5323,
262,
7211,
3057,
10036,
1125,
13,
1678,
14550,
13,
1678,
450,
315,
6146,
29890,
29909,
8783,
310,
13,
1678,
313,
29931,
5871,
634,
394,
1696,
29871,
29906,
29900,
29896,
29945,
1125,
2045,
597,
279,
26560,
29889,
990,
29914,
6897,
29914,
29896,
29946,
29896,
29896,
29889,
29955,
29955,
29953,
29953,
13,
1678,
758,
5014,
287,
304,
29871,
29953,
29946,
29916,
29953,
29946,
408,
297,
13,
1678,
313,
29931,
1503,
264,
634,
394,
29889,
29871,
29906,
29900,
29896,
29953,
1125,
2045,
597,
279,
26560,
29889,
990,
29914,
6897,
29914,
29896,
29945,
29896,
29906,
29889,
29900,
29929,
29941,
29900,
29900,
13,
1678,
313,
29928,
262,
29882,
634,
394,
1696,
29871,
29906,
29900,
29896,
29955,
1125,
2045,
597,
279,
26560,
29889,
990,
29914,
6897,
29914,
29896,
29953,
29900,
29945,
29889,
29900,
29947,
29947,
29900,
29941,
13,
1678,
14550,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1881,
29918,
2311,
29892,
3876,
29922,
14573,
29918,
10145,
29892,
954,
29918,
14836,
29922,
29947,
29892,
8230,
29918,
9067,
29879,
11759,
1402,
15047,
29922,
8824,
29892,
2428,
29918,
9778,
918,
29922,
8824,
29892,
27236,
29918,
7052,
29918,
19790,
29922,
29946,
29892,
19490,
29918,
26828,
29922,
8516,
29892,
289,
293,
431,
293,
29922,
8824,
1125,
13,
4706,
2428,
29898,
29907,
6146,
29890,
29909,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
13,
4706,
4974,
7431,
29898,
2080,
29918,
2311,
29897,
1275,
29871,
29941,
13,
308,
13,
4706,
1583,
29889,
4632,
353,
3876,
13,
4706,
1583,
29889,
2080,
29918,
2311,
353,
1881,
29918,
2311,
13,
4706,
1583,
29889,
29891,
29918,
13203,
353,
29871,
29946,
29900,
13,
13,
4706,
1301,
29918,
14968,
353,
8230,
29918,
9067,
29879,
718,
518,
1762,
29911,
6073,
3285,
22746,
675,
29898,
1949,
29918,
14836,
4638,
13,
4706,
1301,
29918,
1688,
353,
518,
1762,
29911,
6073,
3285,
22746,
675,
29898,
1949,
29918,
14836,
4638,
13,
4706,
565,
19490,
29918,
26828,
338,
451,
6213,
29901,
13,
9651,
1301,
29918,
14968,
29889,
7851,
29898,
29900,
29892,
2538,
675,
3552,
21476,
29918,
26828,
29892,
19490,
29918,
26828,
4961,
13,
9651,
1301,
29918,
1688,
29889,
7851,
29898,
29900,
29892,
2538,
675,
3552,
21476,
29918,
26828,
29892,
19490,
29918,
26828,
4961,
13,
13,
4706,
565,
15047,
29901,
13,
9651,
12020,
7865,
2392,
29898,
29888,
29908,
10983,
3245,
315,
6146,
29890,
29909,
8783,
451,
3625,
3447,
23157,
13,
13,
4706,
396,
16012,
848,
13,
4706,
565,
2428,
29918,
9778,
918,
29901,
13,
9651,
565,
1881,
29918,
2311,
14352,
29896,
29962,
1275,
29871,
29941,
29906,
29901,
13,
18884,
13373,
24541,
353,
5670,
12375,
918,
29907,
6146,
29890,
29909,
29941,
29906,
16390,
24541,
462,
13,
9651,
25342,
1881,
29918,
2311,
14352,
29896,
29962,
1275,
29871,
29953,
29946,
29901,
13,
18884,
13373,
24541,
353,
5670,
12375,
918,
29907,
6146,
29890,
29909,
29953,
29946,
16390,
24541,
13,
9651,
25342,
1881,
29918,
2311,
14352,
29896,
29962,
1275,
29871,
29896,
29906,
29947,
29901,
13,
18884,
13373,
24541,
353,
5670,
12375,
918,
29907,
6146,
29890,
29909,
29896,
29906,
29947,
16390,
24541,
13,
9651,
1683,
29901,
13,
18884,
12020,
7865,
2392,
29898,
29888,
29908,
13919,
1881,
2159,
426,
2080,
29918,
2311,
27195,
13,
13,
9651,
1583,
29889,
14968,
353,
13373,
24541,
29898,
4632,
29892,
6219,
2433,
14968,
742,
4327,
29922,
1523,
4220,
29898,
3286,
29918,
14968,
511,
27236,
29918,
7052,
29918,
19790,
29922,
21935,
29918,
7052,
29918,
19790,
29892,
289,
293,
431,
293,
29922,
29890,
293,
431,
293,
29897,
13,
9651,
1583,
29889,
3084,
353,
13373,
24541,
29898,
4632,
29892,
6219,
2433,
3084,
742,
4327,
29922,
1523,
4220,
29898,
3286,
29918,
1688,
511,
27236,
29918,
7052,
29918,
19790,
29922,
21935,
29918,
7052,
29918,
19790,
29892,
289,
293,
431,
293,
29922,
29890,
293,
431,
293,
29897,
13,
9651,
1583,
29889,
1688,
353,
13373,
24541,
29898,
4632,
29892,
6219,
2433,
1688,
742,
4327,
29922,
1523,
4220,
29898,
3286,
29918,
1688,
511,
27236,
29918,
7052,
29918,
19790,
29922,
21935,
29918,
7052,
29918,
19790,
29892,
289,
293,
431,
293,
29922,
29890,
293,
431,
293,
29897,
13,
632,
13,
4706,
1683,
29901,
13,
9651,
565,
1881,
29918,
2311,
14352,
29896,
29962,
1275,
29871,
29941,
29906,
29901,
13,
18884,
13373,
24541,
353,
853,
9136,
11292,
29907,
6146,
29890,
29909,
29941,
29906,
16390,
24541,
13,
9651,
25342,
1881,
29918,
2311,
14352,
29896,
29962,
1275,
29871,
29953,
29946,
29901,
13,
18884,
13373,
24541,
353,
853,
9136,
11292,
29907,
6146,
29890,
29909,
29953,
29946,
16390,
24541,
13,
9651,
25342,
1881,
29918,
2311,
14352,
29896,
29962,
1275,
29871,
29896,
29906,
29947,
29901,
13,
18884,
13373,
24541,
353,
853,
9136,
11292,
29907,
6146,
29890,
29909,
29896,
29906,
29947,
16390,
24541,
13,
9651,
1683,
29901,
13,
18884,
12020,
7865,
2392,
29898,
29888,
29908,
13919,
1881,
2159,
426,
2080,
29918,
2311,
27195,
13,
13,
13,
9651,
1583,
29889,
14968,
353,
13373,
24541,
29898,
4632,
29892,
6219,
2433,
14968,
742,
4327,
29922,
1523,
4220,
29898,
3286,
29918,
14968,
876,
13,
9651,
1583,
29889,
3084,
353,
13373,
24541,
29898,
4632,
29892,
6219,
2433,
3084,
742,
4327,
29922,
1523,
4220,
29898,
3286,
29918,
1688,
876,
13,
9651,
1583,
29889,
1688,
353,
13373,
24541,
29898,
4632,
29892,
6219,
2433,
1688,
742,
4327,
29922,
1523,
4220,
29898,
3286,
29918,
1688,
876,
13,
13,
13,
1990,
315,
6146,
29890,
29909,
29941,
29906,
29898,
29907,
6146,
29890,
29909,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3876,
29922,
14573,
29918,
10145,
29892,
954,
29918,
14836,
29922,
29947,
29892,
8230,
29918,
9067,
29879,
11759,
1402,
15047,
29922,
8824,
29892,
2428,
29918,
9778,
918,
29922,
8824,
29892,
27236,
29918,
7052,
29918,
19790,
29922,
29946,
29892,
19490,
29918,
26828,
29922,
8516,
29892,
289,
293,
431,
293,
29922,
8824,
1125,
13,
4706,
2428,
29898,
29907,
6146,
29890,
29909,
29941,
29906,
29892,
1583,
467,
1649,
2344,
12035,
2080,
29918,
2311,
11759,
29941,
29892,
29941,
29906,
29892,
29941,
29906,
1402,
13,
462,
462,
539,
3876,
29922,
4632,
29892,
13,
462,
462,
539,
954,
29918,
14836,
29922,
1949,
29918,
14836,
29892,
13,
462,
462,
539,
8230,
29918,
9067,
29879,
29922,
29886,
309,
29918,
9067,
29879,
29892,
13,
462,
462,
539,
15047,
29922,
1116,
3245,
29892,
13,
462,
462,
539,
2428,
29918,
9778,
918,
29922,
9136,
29918,
9778,
918,
29892,
27236,
29918,
7052,
29918,
19790,
29922,
21935,
29918,
7052,
29918,
19790,
29892,
289,
293,
431,
293,
29922,
29890,
293,
431,
293,
29892,
13,
462,
462,
539,
19490,
29918,
26828,
29922,
21476,
29918,
26828,
29897,
13,
13,
1990,
315,
6146,
29890,
29909,
29953,
29946,
29898,
29907,
6146,
29890,
29909,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3876,
29922,
14573,
29918,
10145,
29892,
954,
29918,
14836,
29922,
29947,
29892,
8230,
29918,
9067,
29879,
11759,
1402,
15047,
29922,
8824,
29892,
2428,
29918,
9778,
918,
29922,
8824,
29892,
27236,
29918,
7052,
29918,
19790,
29922,
29946,
29892,
19490,
29918,
26828,
29922,
8516,
29892,
289,
293,
431,
293,
29922,
8824,
1125,
13,
4706,
2428,
29898,
29907,
6146,
29890,
29909,
29953,
29946,
29892,
1583,
467,
1649,
2344,
12035,
2080,
29918,
2311,
11759,
29941,
29892,
29953,
29946,
29892,
29953,
29946,
1402,
13,
462,
462,
539,
3876,
29922,
4632,
29892,
13,
462,
462,
539,
954,
29918,
14836,
29922,
1949,
29918,
14836,
29892,
13,
462,
462,
539,
8230,
29918,
9067,
29879,
29922,
29886,
309,
29918,
9067,
29879,
29892,
13,
462,
462,
539,
15047,
29922,
1116,
3245,
29892,
13,
462,
462,
539,
2428,
29918,
9778,
918,
29922,
9136,
29918,
9778,
918,
29892,
27236,
29918,
7052,
29918,
19790,
29922,
21935,
29918,
7052,
29918,
19790,
29892,
29890,
293,
431,
293,
29922,
29890,
293,
431,
293,
29892,
13,
462,
462,
539,
19490,
29918,
26828,
29922,
21476,
29918,
26828,
29897,
13,
13,
1990,
315,
6146,
29890,
29909,
29896,
29906,
29947,
29898,
29907,
6146,
29890,
29909,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3876,
29922,
14573,
29918,
10145,
29892,
954,
29918,
14836,
29922,
29947,
29892,
8230,
29918,
9067,
29879,
11759,
1402,
15047,
29922,
8824,
29892,
2428,
29918,
9778,
918,
29922,
8824,
29892,
27236,
29918,
7052,
29918,
19790,
29922,
29946,
29892,
19490,
29918,
26828,
29922,
8516,
29892,
289,
293,
431,
293,
29922,
8824,
1125,
13,
4706,
2428,
29898,
29907,
6146,
29890,
29909,
29896,
29906,
29947,
29892,
1583,
467,
1649,
2344,
12035,
2080,
29918,
2311,
11759,
29941,
29892,
29896,
29906,
29947,
29892,
29896,
29906,
29947,
1402,
13,
462,
462,
4706,
3876,
29922,
4632,
29892,
13,
462,
462,
4706,
954,
29918,
14836,
29922,
1949,
29918,
14836,
29892,
13,
462,
462,
4706,
8230,
29918,
9067,
29879,
29922,
29886,
309,
29918,
9067,
29879,
29892,
13,
462,
462,
4706,
15047,
29922,
1116,
3245,
29892,
13,
462,
462,
4706,
2428,
29918,
9778,
918,
29922,
9136,
29918,
9778,
918,
29892,
27236,
29918,
7052,
29918,
19790,
29922,
21935,
29918,
7052,
29918,
19790,
29892,
289,
293,
431,
293,
29922,
29890,
293,
431,
293,
29892,
13,
462,
462,
4706,
19490,
29918,
26828,
29922,
21476,
29918,
26828,
29897,
13,
13,
13,
2
] |
transphire_transform/dump_load/tests/test_util.py | MPI-Dortmund/transphire_transform | 2 | 111083 | <gh_stars>1-10
"""
MIT License
Copyright (c) 2018 <NAME> Institute of Molecular Physiology
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 numpy as np
import pandas as pd
import pytest
from .. import util
OUTPUT_TEST_FOLDER = 'OUTPUT_TESTS_LOAD_DUMP_UTIL'
class TestCreateHeader:
def test_create_header_list(self):
"""
"""
header = ['a', 'b', 'c', 'd']
header_out = ['_a', '_b', '_c', '_d']
assert util.create_header(names=header, index=False, prefix='') == header_out
def test_create_header_index_list(self):
"""
"""
header = ['a', 'b', 'c', 'd']
header_out = ['_a #1', '_b #2', '_c #3', '_d #4']
assert util.create_header(names=header, index=True, prefix='') == header_out
def test_create_header_array(self):
"""
"""
header = np.array(['a', 'b', 'c', 'd'], dtype=str)
header_out = ['_a', '_b', '_c', '_d']
assert util.create_header(names=header, index=False, prefix='') == header_out
def test_create_header_index_array(self):
"""
"""
header = np.array(['a', 'b', 'c', 'd'], dtype=str)
header_out = ['_a #1', '_b #2', '_c #3', '_d #4']
assert util.create_header(names=header, index=True, prefix='') == header_out
def test_create_header_array_prefix(self):
"""
"""
header = np.array(['a', 'b', 'c', 'd'], dtype=str)
header_out = ['_testa', '_testb', '_testc', '_testd']
assert util.create_header(names=header, index=False, prefix='test') == header_out
def test_create_header_index_array_prefix(self):
"""
"""
header = np.array(['a', 'b', 'c', 'd'], dtype=str)
header_out = ['_testa #1', '_testb #2', '_testc #3', '_testd #4']
assert util.create_header(names=header, index=True, prefix='test') == header_out
def test_create_header_array_empty(self):
"""
"""
header = np.array([], dtype=str)
with pytest.raises(IOError):
util.create_header(names=header, index=True, prefix='')
def test_create_header_list_empty(self):
"""
"""
header = []
with pytest.raises(IOError):
util.create_header(names=header, index=True, prefix='')
class TestDumpFile:
def test_dump_file_empty(self, tmpdir):
"""
"""
data = pd.DataFrame({
})
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_dump_file_empty')
with pytest.raises(IOError):
util.dump_file(
file_name=output_file,
data=data,
header=None,
vertical=True,
)
def test_dump_file_four(self, tmpdir):
"""
"""
data_1 = np.arange(4)
data_2 = ['a', 'b', 'c', 'd']
data_3 = np.array(np.arange(4), dtype=float)
data_4 = [1]*4
data = pd.DataFrame({
'_rlnTest1': data_1,
'_rlnTest2': data_2,
'_rlnTest3': data_3,
'_pipeTest4': data_4,
})
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_dump_file_four')
util.dump_file(
file_name=output_file,
data=data,
header=None,
vertical=True,
)
load_data = util.load_file(file_name=output_file)
assert np.array_equal(load_data.values, data.values)
def test_dump_file_single(self, tmpdir):
"""
"""
data_1 = np.arange(4)
data = pd.DataFrame({
'_rlnTest1': data_1,
})
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_dump_file_single')
util.dump_file(
file_name=output_file,
data=data,
header=None,
vertical=True,
)
load_data = util.load_file(file_name=output_file)
assert np.array_equal(load_data.values, data.values)
def test_dump_file_four_hor(self, tmpdir):
"""
"""
data_1 = np.arange(4)
data_2 = ['a', 'b', 'c', 'd']
data_3 = np.array(np.arange(4), dtype=float)
data_4 = [1]*4
data = pd.DataFrame({
'_rlnTest1': data_1,
'_rlnTest2': data_2,
'_rlnTest3': data_3,
'_pipeTest4': data_4,
})
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_dump_file_four_hor')
util.dump_file(
file_name=output_file,
data=data,
header=None,
vertical=False,
)
load_data = util.load_file(file_name=output_file)
assert np.array_equal(load_data.values, data.values)
def test_dump_file_single_hor(self, tmpdir):
"""
"""
data_1 = np.arange(4)
data = pd.DataFrame({
'_rlnTest1': data_1,
})
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_dump_file_single_hor')
util.dump_file(
file_name=output_file,
data=data,
header=None,
vertical=False,
)
load_data = util.load_file(file_name=output_file)
assert np.array_equal(load_data.values, data.values)
def test_dump_file_four_header(self, tmpdir):
"""
"""
data_1 = np.arange(4)
data_2 = ['a', 'b', 'c', 'd']
data_3 = np.array(np.arange(4), dtype=float)
data_4 = [1]*4
data = pd.DataFrame({
'_rlnTest1': data_1,
'_rlnTest2': data_2,
'_rlnTest3': data_3,
'_pipeTest4': data_4,
})
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_dump_file_four')
util.dump_file(
file_name=output_file,
data=data,
header=data.keys(),
vertical=True,
)
assert util.load_file(file_name=output_file, names=data.keys(), skiprows=4).equals(data)
def test_dump_file_single_header(self, tmpdir):
"""
"""
data_1 = np.arange(4)
data = pd.DataFrame({
'_rlnTest1': data_1,
})
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_dump_file_single')
util.dump_file(
file_name=output_file,
data=data,
header=data.keys(),
vertical=True,
)
assert util.load_file(file_name=output_file, names=data.keys(), skiprows=1).equals(data)
def test_dump_file_four_hor_header(self, tmpdir):
"""
"""
data_1 = np.arange(4)
data_2 = ['a', 'b', 'c', 'd']
data_3 = np.array(np.arange(4), dtype=float)
data_4 = [1]*4
data = pd.DataFrame({
'_rlnTest1': data_1,
'_rlnTest2': data_2,
'_rlnTest3': data_3,
'_pipeTest4': data_4,
})
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_dump_file_four_hor')
util.dump_file(
file_name=output_file,
data=data,
header=None,
vertical=False,
)
util.dump_file(
file_name=output_file,
data=data,
header=data.keys(),
vertical=False,
)
assert util.load_file(file_name=output_file, names=data.keys(), skiprows=1).equals(data)
def test_dump_file_single_hor_header(self, tmpdir):
"""
"""
data_1 = np.arange(4)
data = pd.DataFrame({
'_rlnTest1': data_1,
})
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_dump_file_single_hor')
util.dump_file(
file_name=output_file,
data=data,
header=None,
vertical=False,
)
util.dump_file(
file_name=output_file,
data=data,
header=data.keys(),
vertical=False,
)
assert util.load_file(file_name=output_file, names=data.keys(), skiprows=1).equals(data)
class TestImportKeys:
def test_import_keys_filled_file_should_work(self, tmpdir):
"""
"""
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_import_keys_filled_file_should_work')
keys = ('test_a', 'test_b', 'test_c')
suffix = ('test', 'test2', 'test3')
with open(output_file, 'w') as w:
for key, suf in zip(keys, suffix):
w.write(f'{key} # {suf}\n')
imported_keys = util.import_keys(output_file)
assert keys == imported_keys
def test_import_keys_filled_file_multi_hastag_should_work(self, tmpdir):
"""
"""
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_import_keys_filled_file_multi_hastag_should_work')
keys = ('test_a', 'test_b', 'test_c')
suffix = ('test', 'test2', 'test3')
with open(output_file, 'w') as w:
for key, suf in zip(keys, suffix):
w.write(f'{key} # TEST1 # {suf}\n')
imported_keys = util.import_keys(output_file)
assert keys == imported_keys
def test_import_keys_empty_file_should_work(self, tmpdir):
"""
"""
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_import_keys_empty_file_should_work')
keys = ()
suffix = ()
with open(output_file, 'w') as w:
pass
imported_keys = util.import_keys(output_file)
assert keys == imported_keys
def test_import_keys_contains_whitespace_should_raise_AssertError(self, tmpdir):
"""
"""
output_file: str = tmpdir.mkdir(OUTPUT_TEST_FOLDER).join('test_import_keys_contains_whitespace_should_raise_AssertError')
keys = ()
suffix = ()
keys = ('test_a', 'test_b', 'test_c')
suffix = ('test', 'test2', 'test3')
with open(output_file, 'w') as w:
for key, suf in zip(keys, suffix):
w.write(f'{key} TEST1 # {suf}\n')
with pytest.raises(AssertionError):
util.import_keys(output_file)
class TestParseKeysToDict:
def test_input_unspecified_to_output(self):
data = ('test',)
data_output = {'test': 'test'}
data_return = util.parse_keys_to_dict(data)
assert data_output == data_return
def test_input_unspecified_export_to_output(self):
data = ('test',)
data_output = {'test': 'test'}
data_return = util.parse_keys_to_dict(data, True)
assert data_output == data_return
def test_input_specified_to_output(self):
data = ('test:test2',)
data_output = {'test': 'test2'}
data_return = util.parse_keys_to_dict(data)
assert data_output == data_return
def test_input_specified_export_to_output(self):
data = ('test:test2',)
data_output = {'test2': 'test'}
data_return = util.parse_keys_to_dict(data, True)
assert data_output == data_return
class TestAddToDict():
def test_new_key_should_return_filled_dict(self):
data_dict = {}
key = 'a'
value = 'b'
util.add_to_dict(data_dict, key, value)
assert data_dict == {'a': 'b'}
def test_new_key_int_should_return_filled_dict(self):
data_dict = {}
key = 'a'
value = 1
util.add_to_dict(data_dict, key, value)
assert data_dict == {'a': 1}
def test_double_key_should_attributeerror(self):
data_dict = {'a': 'c'}
key = 'a'
value = 'b'
with pytest.raises(AttributeError):
util.add_to_dict(data_dict, key, value)
class TestExtractFunctionFromFunctionDict:
def dummy_function_1(self): # pragma: no cover
pass
def dummy_function_2(self): # pragma: no cover
pass
def dummy_function_3(self): # pragma: no cover
pass
def test_empty_version_ordered_should_return_dummy_function_3(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'1.1.2': self.dummy_function_2,
'2.2.5': self.dummy_function_3,
}
assert self.dummy_function_3 == util.extract_function_from_function_dict(func_dict)
def test_empty_version_unordered_should_return_dummy_function_3(self):
func_dict = {
'1.1.2': self.dummy_function_2,
'2.2.5': self.dummy_function_3,
'0.0.4': self.dummy_function_1,
}
assert self.dummy_function_3 == util.extract_function_from_function_dict(func_dict)
def test_version_225_ordered_should_return_dummy_function_3(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'1.1.2': self.dummy_function_2,
'2.2.5': self.dummy_function_3,
}
assert self.dummy_function_3 == util.extract_function_from_function_dict(func_dict, '2.2.5')
def test_version_326_ordered_should_return_dummy_function_3(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'1.1.2': self.dummy_function_2,
'2.2.5': self.dummy_function_3,
}
assert self.dummy_function_3 == util.extract_function_from_function_dict(func_dict, '3.2.6')
def test_version_112_ordered_should_return_dummy_function_2(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'1.1.2': self.dummy_function_2,
'2.2.5': self.dummy_function_3,
}
assert self.dummy_function_2 == util.extract_function_from_function_dict(func_dict, '1.1.2')
def test_version_122_ordered_should_return_dummy_function_2(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'1.1.2': self.dummy_function_2,
'2.2.5': self.dummy_function_3,
}
assert self.dummy_function_2 == util.extract_function_from_function_dict(func_dict, '1.2.2')
def test_version_004_ordered_should_return_dummy_function_1(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'1.1.2': self.dummy_function_2,
'2.2.5': self.dummy_function_3,
}
assert self.dummy_function_1 == util.extract_function_from_function_dict(func_dict, '0.0.4')
def test_version_005_ordered_should_return_dummy_function_1(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'1.1.2': self.dummy_function_2,
'2.2.5': self.dummy_function_3,
}
assert self.dummy_function_1 == util.extract_function_from_function_dict(func_dict, '0.0.5')
def test_version_225_unordered_should_return_dummy_function_3(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'2.2.5': self.dummy_function_3,
'1.1.2': self.dummy_function_2,
}
assert self.dummy_function_3 == util.extract_function_from_function_dict(func_dict, '2.2.5')
def test_version_326_unordered_should_return_dummy_function_3(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'2.2.5': self.dummy_function_3,
'1.1.2': self.dummy_function_2,
}
assert self.dummy_function_3 == util.extract_function_from_function_dict(func_dict, '3.2.6')
def test_version_112_unordered_should_return_dummy_function_2(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'2.2.5': self.dummy_function_3,
'1.1.2': self.dummy_function_2,
}
assert self.dummy_function_2 == util.extract_function_from_function_dict(func_dict, '1.1.2')
def test_version_122_unordered_should_return_dummy_function_2(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'2.2.5': self.dummy_function_3,
'1.1.2': self.dummy_function_2,
}
assert self.dummy_function_2 == util.extract_function_from_function_dict(func_dict, '1.2.2')
def test_version_004_unordered_should_return_dummy_function_1(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'2.2.5': self.dummy_function_3,
'1.1.2': self.dummy_function_2,
}
assert self.dummy_function_1 == util.extract_function_from_function_dict(func_dict, '0.0.4')
def test_version_005_unordered_should_return_dummy_function_1(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'2.2.5': self.dummy_function_3,
'1.1.2': self.dummy_function_2,
}
assert self.dummy_function_1 == util.extract_function_from_function_dict(func_dict, '0.0.5')
def test_version_003_unordered_should_raise_AssertionError(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'2.2.5': self.dummy_function_3,
'1.1.2': self.dummy_function_2,
}
with pytest.raises(AssertionError):
util.extract_function_from_function_dict(func_dict, '0.0.3')
def test_version_unequal_format_raises_AssertionError(self):
func_dict = {
'0.0.4': self.dummy_function_1,
'2.2.5': self.dummy_function_3,
'1.1.2': self.dummy_function_2,
}
with pytest.raises(AssertionError):
util.extract_function_from_function_dict(func_dict, '1.0')
def test_version_unequal_format_in_keys_raises_AssertionError(self):
func_dict = {
'0.0': self.dummy_function_1,
'2.2.5': self.dummy_function_3,
'1.1.2': self.dummy_function_2,
}
with pytest.raises(AssertionError):
util.extract_function_from_function_dict(func_dict, '1.0.1')
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
13,
26349,
19245,
13,
13,
11882,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29947,
529,
5813,
29958,
8907,
310,
341,
1772,
16637,
11661,
29875,
3002,
13,
13,
27293,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
29892,
304,
738,
2022,
4017,
292,
263,
3509,
13,
974,
445,
7047,
322,
6942,
5106,
2066,
313,
1552,
376,
6295,
14093,
4968,
304,
5376,
13,
262,
278,
18540,
1728,
24345,
29892,
3704,
1728,
29485,
278,
10462,
13,
517,
671,
29892,
3509,
29892,
6623,
29892,
10366,
29892,
9805,
29892,
1320,
2666,
29892,
269,
803,
1947,
29892,
322,
29914,
272,
19417,
13,
9708,
583,
310,
278,
18540,
29892,
322,
304,
14257,
12407,
304,
6029,
278,
18540,
338,
13,
29888,
595,
3276,
304,
437,
577,
29892,
4967,
304,
278,
1494,
5855,
29901,
13,
13,
1576,
2038,
3509,
1266,
8369,
322,
445,
10751,
8369,
4091,
367,
5134,
297,
599,
13,
9708,
583,
470,
23228,
2011,
1080,
310,
278,
18540,
29889,
13,
13,
28350,
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,
29902,
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,
29943,
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,
20656,
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,
5265,
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,
12015,
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,
6156,
7818,
12982,
1525,
29889,
13,
15945,
29908,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
5215,
11451,
1688,
13,
3166,
6317,
1053,
3667,
13,
13,
13,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
353,
525,
12015,
12336,
29918,
18267,
29903,
29918,
29428,
29918,
14849,
3580,
29918,
2692,
6227,
29915,
13,
13,
13,
1990,
4321,
4391,
7850,
29901,
13,
1678,
822,
1243,
29918,
3258,
29918,
6672,
29918,
1761,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
4839,
353,
6024,
29874,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
2033,
13,
4706,
4839,
29918,
449,
353,
6024,
29918,
29874,
742,
22868,
29890,
742,
22868,
29883,
742,
22868,
29881,
2033,
13,
4706,
4974,
3667,
29889,
3258,
29918,
6672,
29898,
7039,
29922,
6672,
29892,
2380,
29922,
8824,
29892,
10944,
2433,
1495,
1275,
4839,
29918,
449,
13,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
6672,
29918,
2248,
29918,
1761,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
4839,
353,
6024,
29874,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
2033,
13,
4706,
4839,
29918,
449,
353,
6024,
29918,
29874,
396,
29896,
742,
22868,
29890,
396,
29906,
742,
22868,
29883,
396,
29941,
742,
22868,
29881,
396,
29946,
2033,
13,
4706,
4974,
3667,
29889,
3258,
29918,
6672,
29898,
7039,
29922,
6672,
29892,
2380,
29922,
5574,
29892,
10944,
2433,
1495,
1275,
4839,
29918,
449,
13,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
6672,
29918,
2378,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
4839,
353,
7442,
29889,
2378,
18959,
29874,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
7464,
26688,
29922,
710,
29897,
13,
4706,
4839,
29918,
449,
353,
6024,
29918,
29874,
742,
22868,
29890,
742,
22868,
29883,
742,
22868,
29881,
2033,
13,
4706,
4974,
3667,
29889,
3258,
29918,
6672,
29898,
7039,
29922,
6672,
29892,
2380,
29922,
8824,
29892,
10944,
2433,
1495,
1275,
4839,
29918,
449,
13,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
6672,
29918,
2248,
29918,
2378,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
4839,
353,
7442,
29889,
2378,
18959,
29874,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
7464,
26688,
29922,
710,
29897,
13,
4706,
4839,
29918,
449,
353,
6024,
29918,
29874,
396,
29896,
742,
22868,
29890,
396,
29906,
742,
22868,
29883,
396,
29941,
742,
22868,
29881,
396,
29946,
2033,
13,
4706,
4974,
3667,
29889,
3258,
29918,
6672,
29898,
7039,
29922,
6672,
29892,
2380,
29922,
5574,
29892,
10944,
2433,
1495,
1275,
4839,
29918,
449,
13,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
6672,
29918,
2378,
29918,
13506,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
4839,
353,
7442,
29889,
2378,
18959,
29874,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
7464,
26688,
29922,
710,
29897,
13,
4706,
4839,
29918,
449,
353,
6024,
29918,
1688,
29874,
742,
22868,
1688,
29890,
742,
22868,
1688,
29883,
742,
22868,
1688,
29881,
2033,
13,
4706,
4974,
3667,
29889,
3258,
29918,
6672,
29898,
7039,
29922,
6672,
29892,
2380,
29922,
8824,
29892,
10944,
2433,
1688,
1495,
1275,
4839,
29918,
449,
13,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
6672,
29918,
2248,
29918,
2378,
29918,
13506,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
4839,
353,
7442,
29889,
2378,
18959,
29874,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
7464,
26688,
29922,
710,
29897,
13,
4706,
4839,
29918,
449,
353,
6024,
29918,
1688,
29874,
396,
29896,
742,
22868,
1688,
29890,
396,
29906,
742,
22868,
1688,
29883,
396,
29941,
742,
22868,
1688,
29881,
396,
29946,
2033,
13,
4706,
4974,
3667,
29889,
3258,
29918,
6672,
29898,
7039,
29922,
6672,
29892,
2380,
29922,
5574,
29892,
10944,
2433,
1688,
1495,
1275,
4839,
29918,
449,
13,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
6672,
29918,
2378,
29918,
6310,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
4839,
353,
7442,
29889,
2378,
4197,
1402,
26688,
29922,
710,
29897,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
5971,
2392,
1125,
13,
9651,
3667,
29889,
3258,
29918,
6672,
29898,
7039,
29922,
6672,
29892,
2380,
29922,
5574,
29892,
10944,
2433,
1495,
13,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
6672,
29918,
1761,
29918,
6310,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
4839,
353,
5159,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
5971,
2392,
1125,
13,
9651,
3667,
29889,
3258,
29918,
6672,
29898,
7039,
29922,
6672,
29892,
2380,
29922,
5574,
29892,
10944,
2433,
1495,
13,
13,
13,
1990,
4321,
29928,
3427,
2283,
29901,
13,
1678,
822,
1243,
29918,
15070,
29918,
1445,
29918,
6310,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
848,
353,
10518,
29889,
17271,
3319,
13,
9651,
5615,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
15070,
29918,
1445,
29918,
6310,
1495,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
5971,
2392,
1125,
13,
9651,
3667,
29889,
15070,
29918,
1445,
29898,
13,
18884,
934,
29918,
978,
29922,
4905,
29918,
1445,
29892,
13,
18884,
848,
29922,
1272,
29892,
13,
18884,
4839,
29922,
8516,
29892,
13,
18884,
11408,
29922,
5574,
29892,
13,
18884,
1723,
13,
13,
13,
1678,
822,
1243,
29918,
15070,
29918,
1445,
29918,
17823,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
848,
29918,
29896,
353,
7442,
29889,
279,
927,
29898,
29946,
29897,
13,
4706,
848,
29918,
29906,
353,
6024,
29874,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
2033,
13,
4706,
848,
29918,
29941,
353,
7442,
29889,
2378,
29898,
9302,
29889,
279,
927,
29898,
29946,
511,
26688,
29922,
7411,
29897,
13,
4706,
848,
29918,
29946,
353,
518,
29896,
14178,
29946,
13,
4706,
848,
353,
10518,
29889,
17271,
3319,
13,
9651,
22868,
2096,
29876,
3057,
29896,
2396,
848,
29918,
29896,
29892,
13,
9651,
22868,
2096,
29876,
3057,
29906,
2396,
848,
29918,
29906,
29892,
13,
9651,
22868,
2096,
29876,
3057,
29941,
2396,
848,
29918,
29941,
29892,
13,
9651,
22868,
17760,
3057,
29946,
2396,
848,
29918,
29946,
29892,
13,
9651,
5615,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
15070,
29918,
1445,
29918,
17823,
1495,
13,
4706,
3667,
29889,
15070,
29918,
1445,
29898,
13,
9651,
934,
29918,
978,
29922,
4905,
29918,
1445,
29892,
13,
9651,
848,
29922,
1272,
29892,
13,
9651,
4839,
29922,
8516,
29892,
13,
9651,
11408,
29922,
5574,
29892,
13,
9651,
1723,
13,
4706,
2254,
29918,
1272,
353,
3667,
29889,
1359,
29918,
1445,
29898,
1445,
29918,
978,
29922,
4905,
29918,
1445,
29897,
13,
4706,
4974,
7442,
29889,
2378,
29918,
11745,
29898,
1359,
29918,
1272,
29889,
5975,
29892,
848,
29889,
5975,
29897,
13,
13,
13,
1678,
822,
1243,
29918,
15070,
29918,
1445,
29918,
14369,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
848,
29918,
29896,
353,
7442,
29889,
279,
927,
29898,
29946,
29897,
13,
4706,
848,
353,
10518,
29889,
17271,
3319,
13,
9651,
22868,
2096,
29876,
3057,
29896,
2396,
848,
29918,
29896,
29892,
13,
9651,
5615,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
15070,
29918,
1445,
29918,
14369,
1495,
13,
4706,
3667,
29889,
15070,
29918,
1445,
29898,
13,
9651,
934,
29918,
978,
29922,
4905,
29918,
1445,
29892,
13,
9651,
848,
29922,
1272,
29892,
13,
9651,
4839,
29922,
8516,
29892,
13,
9651,
11408,
29922,
5574,
29892,
13,
9651,
1723,
13,
4706,
2254,
29918,
1272,
353,
3667,
29889,
1359,
29918,
1445,
29898,
1445,
29918,
978,
29922,
4905,
29918,
1445,
29897,
13,
4706,
4974,
7442,
29889,
2378,
29918,
11745,
29898,
1359,
29918,
1272,
29889,
5975,
29892,
848,
29889,
5975,
29897,
13,
13,
13,
1678,
822,
1243,
29918,
15070,
29918,
1445,
29918,
17823,
29918,
2015,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
848,
29918,
29896,
353,
7442,
29889,
279,
927,
29898,
29946,
29897,
13,
4706,
848,
29918,
29906,
353,
6024,
29874,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
2033,
13,
4706,
848,
29918,
29941,
353,
7442,
29889,
2378,
29898,
9302,
29889,
279,
927,
29898,
29946,
511,
26688,
29922,
7411,
29897,
13,
4706,
848,
29918,
29946,
353,
518,
29896,
14178,
29946,
13,
4706,
848,
353,
10518,
29889,
17271,
3319,
13,
9651,
22868,
2096,
29876,
3057,
29896,
2396,
848,
29918,
29896,
29892,
13,
9651,
22868,
2096,
29876,
3057,
29906,
2396,
848,
29918,
29906,
29892,
13,
9651,
22868,
2096,
29876,
3057,
29941,
2396,
848,
29918,
29941,
29892,
13,
9651,
22868,
17760,
3057,
29946,
2396,
848,
29918,
29946,
29892,
13,
9651,
5615,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
15070,
29918,
1445,
29918,
17823,
29918,
2015,
1495,
13,
4706,
3667,
29889,
15070,
29918,
1445,
29898,
13,
9651,
934,
29918,
978,
29922,
4905,
29918,
1445,
29892,
13,
9651,
848,
29922,
1272,
29892,
13,
9651,
4839,
29922,
8516,
29892,
13,
9651,
11408,
29922,
8824,
29892,
13,
9651,
1723,
13,
4706,
2254,
29918,
1272,
353,
3667,
29889,
1359,
29918,
1445,
29898,
1445,
29918,
978,
29922,
4905,
29918,
1445,
29897,
13,
4706,
4974,
7442,
29889,
2378,
29918,
11745,
29898,
1359,
29918,
1272,
29889,
5975,
29892,
848,
29889,
5975,
29897,
13,
13,
13,
1678,
822,
1243,
29918,
15070,
29918,
1445,
29918,
14369,
29918,
2015,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
848,
29918,
29896,
353,
7442,
29889,
279,
927,
29898,
29946,
29897,
13,
4706,
848,
353,
10518,
29889,
17271,
3319,
13,
9651,
22868,
2096,
29876,
3057,
29896,
2396,
848,
29918,
29896,
29892,
13,
9651,
5615,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
15070,
29918,
1445,
29918,
14369,
29918,
2015,
1495,
13,
4706,
3667,
29889,
15070,
29918,
1445,
29898,
13,
9651,
934,
29918,
978,
29922,
4905,
29918,
1445,
29892,
13,
9651,
848,
29922,
1272,
29892,
13,
9651,
4839,
29922,
8516,
29892,
13,
9651,
11408,
29922,
8824,
29892,
13,
9651,
1723,
13,
4706,
2254,
29918,
1272,
353,
3667,
29889,
1359,
29918,
1445,
29898,
1445,
29918,
978,
29922,
4905,
29918,
1445,
29897,
13,
4706,
4974,
7442,
29889,
2378,
29918,
11745,
29898,
1359,
29918,
1272,
29889,
5975,
29892,
848,
29889,
5975,
29897,
13,
13,
13,
1678,
822,
1243,
29918,
15070,
29918,
1445,
29918,
17823,
29918,
6672,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
848,
29918,
29896,
353,
7442,
29889,
279,
927,
29898,
29946,
29897,
13,
4706,
848,
29918,
29906,
353,
6024,
29874,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
2033,
13,
4706,
848,
29918,
29941,
353,
7442,
29889,
2378,
29898,
9302,
29889,
279,
927,
29898,
29946,
511,
26688,
29922,
7411,
29897,
13,
4706,
848,
29918,
29946,
353,
518,
29896,
14178,
29946,
13,
4706,
848,
353,
10518,
29889,
17271,
3319,
13,
9651,
22868,
2096,
29876,
3057,
29896,
2396,
848,
29918,
29896,
29892,
13,
9651,
22868,
2096,
29876,
3057,
29906,
2396,
848,
29918,
29906,
29892,
13,
9651,
22868,
2096,
29876,
3057,
29941,
2396,
848,
29918,
29941,
29892,
13,
9651,
22868,
17760,
3057,
29946,
2396,
848,
29918,
29946,
29892,
13,
9651,
5615,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
15070,
29918,
1445,
29918,
17823,
1495,
13,
4706,
3667,
29889,
15070,
29918,
1445,
29898,
13,
9651,
934,
29918,
978,
29922,
4905,
29918,
1445,
29892,
13,
9651,
848,
29922,
1272,
29892,
13,
9651,
4839,
29922,
1272,
29889,
8149,
3285,
13,
9651,
11408,
29922,
5574,
29892,
13,
9651,
1723,
13,
4706,
4974,
3667,
29889,
1359,
29918,
1445,
29898,
1445,
29918,
978,
29922,
4905,
29918,
1445,
29892,
2983,
29922,
1272,
29889,
8149,
3285,
14383,
5727,
29922,
29946,
467,
10954,
29898,
1272,
29897,
13,
13,
13,
1678,
822,
1243,
29918,
15070,
29918,
1445,
29918,
14369,
29918,
6672,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
848,
29918,
29896,
353,
7442,
29889,
279,
927,
29898,
29946,
29897,
13,
4706,
848,
353,
10518,
29889,
17271,
3319,
13,
9651,
22868,
2096,
29876,
3057,
29896,
2396,
848,
29918,
29896,
29892,
13,
9651,
5615,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
15070,
29918,
1445,
29918,
14369,
1495,
13,
4706,
3667,
29889,
15070,
29918,
1445,
29898,
13,
9651,
934,
29918,
978,
29922,
4905,
29918,
1445,
29892,
13,
9651,
848,
29922,
1272,
29892,
13,
9651,
4839,
29922,
1272,
29889,
8149,
3285,
13,
9651,
11408,
29922,
5574,
29892,
13,
9651,
1723,
13,
4706,
4974,
3667,
29889,
1359,
29918,
1445,
29898,
1445,
29918,
978,
29922,
4905,
29918,
1445,
29892,
2983,
29922,
1272,
29889,
8149,
3285,
14383,
5727,
29922,
29896,
467,
10954,
29898,
1272,
29897,
13,
13,
13,
1678,
822,
1243,
29918,
15070,
29918,
1445,
29918,
17823,
29918,
2015,
29918,
6672,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
848,
29918,
29896,
353,
7442,
29889,
279,
927,
29898,
29946,
29897,
13,
4706,
848,
29918,
29906,
353,
6024,
29874,
742,
525,
29890,
742,
525,
29883,
742,
525,
29881,
2033,
13,
4706,
848,
29918,
29941,
353,
7442,
29889,
2378,
29898,
9302,
29889,
279,
927,
29898,
29946,
511,
26688,
29922,
7411,
29897,
13,
4706,
848,
29918,
29946,
353,
518,
29896,
14178,
29946,
13,
4706,
848,
353,
10518,
29889,
17271,
3319,
13,
9651,
22868,
2096,
29876,
3057,
29896,
2396,
848,
29918,
29896,
29892,
13,
9651,
22868,
2096,
29876,
3057,
29906,
2396,
848,
29918,
29906,
29892,
13,
9651,
22868,
2096,
29876,
3057,
29941,
2396,
848,
29918,
29941,
29892,
13,
9651,
22868,
17760,
3057,
29946,
2396,
848,
29918,
29946,
29892,
13,
9651,
5615,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
15070,
29918,
1445,
29918,
17823,
29918,
2015,
1495,
13,
4706,
3667,
29889,
15070,
29918,
1445,
29898,
13,
9651,
934,
29918,
978,
29922,
4905,
29918,
1445,
29892,
13,
9651,
848,
29922,
1272,
29892,
13,
9651,
4839,
29922,
8516,
29892,
13,
9651,
11408,
29922,
8824,
29892,
13,
9651,
1723,
13,
4706,
3667,
29889,
15070,
29918,
1445,
29898,
13,
9651,
934,
29918,
978,
29922,
4905,
29918,
1445,
29892,
13,
9651,
848,
29922,
1272,
29892,
13,
9651,
4839,
29922,
1272,
29889,
8149,
3285,
13,
9651,
11408,
29922,
8824,
29892,
13,
9651,
1723,
13,
4706,
4974,
3667,
29889,
1359,
29918,
1445,
29898,
1445,
29918,
978,
29922,
4905,
29918,
1445,
29892,
2983,
29922,
1272,
29889,
8149,
3285,
14383,
5727,
29922,
29896,
467,
10954,
29898,
1272,
29897,
13,
13,
13,
1678,
822,
1243,
29918,
15070,
29918,
1445,
29918,
14369,
29918,
2015,
29918,
6672,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
848,
29918,
29896,
353,
7442,
29889,
279,
927,
29898,
29946,
29897,
13,
4706,
848,
353,
10518,
29889,
17271,
3319,
13,
9651,
22868,
2096,
29876,
3057,
29896,
2396,
848,
29918,
29896,
29892,
13,
9651,
5615,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
15070,
29918,
1445,
29918,
14369,
29918,
2015,
1495,
13,
4706,
3667,
29889,
15070,
29918,
1445,
29898,
13,
9651,
934,
29918,
978,
29922,
4905,
29918,
1445,
29892,
13,
9651,
848,
29922,
1272,
29892,
13,
9651,
4839,
29922,
8516,
29892,
13,
9651,
11408,
29922,
8824,
29892,
13,
9651,
1723,
13,
4706,
3667,
29889,
15070,
29918,
1445,
29898,
13,
9651,
934,
29918,
978,
29922,
4905,
29918,
1445,
29892,
13,
9651,
848,
29922,
1272,
29892,
13,
9651,
4839,
29922,
1272,
29889,
8149,
3285,
13,
9651,
11408,
29922,
8824,
29892,
13,
9651,
1723,
13,
4706,
4974,
3667,
29889,
1359,
29918,
1445,
29898,
1445,
29918,
978,
29922,
4905,
29918,
1445,
29892,
2983,
29922,
1272,
29889,
8149,
3285,
14383,
5727,
29922,
29896,
467,
10954,
29898,
1272,
29897,
13,
13,
1990,
4321,
17518,
15506,
29901,
13,
13,
1678,
822,
1243,
29918,
5215,
29918,
8149,
29918,
26940,
29918,
1445,
29918,
9344,
29918,
1287,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
5215,
29918,
8149,
29918,
26940,
29918,
1445,
29918,
9344,
29918,
1287,
1495,
13,
4706,
6611,
353,
6702,
1688,
29918,
29874,
742,
525,
1688,
29918,
29890,
742,
525,
1688,
29918,
29883,
1495,
13,
4706,
25557,
353,
6702,
1688,
742,
525,
1688,
29906,
742,
525,
1688,
29941,
1495,
13,
4706,
411,
1722,
29898,
4905,
29918,
1445,
29892,
525,
29893,
1495,
408,
281,
29901,
13,
9651,
363,
1820,
29892,
7332,
297,
14319,
29898,
8149,
29892,
25557,
1125,
13,
18884,
281,
29889,
3539,
29898,
29888,
29915,
29912,
1989,
29913,
396,
426,
29879,
1137,
1012,
29876,
1495,
13,
13,
4706,
19673,
29918,
8149,
353,
3667,
29889,
5215,
29918,
8149,
29898,
4905,
29918,
1445,
29897,
13,
4706,
4974,
6611,
1275,
19673,
29918,
8149,
13,
13,
1678,
822,
1243,
29918,
5215,
29918,
8149,
29918,
26940,
29918,
1445,
29918,
9910,
29918,
29882,
579,
351,
29918,
9344,
29918,
1287,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
5215,
29918,
8149,
29918,
26940,
29918,
1445,
29918,
9910,
29918,
29882,
579,
351,
29918,
9344,
29918,
1287,
1495,
13,
4706,
6611,
353,
6702,
1688,
29918,
29874,
742,
525,
1688,
29918,
29890,
742,
525,
1688,
29918,
29883,
1495,
13,
4706,
25557,
353,
6702,
1688,
742,
525,
1688,
29906,
742,
525,
1688,
29941,
1495,
13,
4706,
411,
1722,
29898,
4905,
29918,
1445,
29892,
525,
29893,
1495,
408,
281,
29901,
13,
9651,
363,
1820,
29892,
7332,
297,
14319,
29898,
8149,
29892,
25557,
1125,
13,
18884,
281,
29889,
3539,
29898,
29888,
29915,
29912,
1989,
29913,
396,
17067,
1254,
29896,
396,
426,
29879,
1137,
1012,
29876,
1495,
13,
13,
4706,
19673,
29918,
8149,
353,
3667,
29889,
5215,
29918,
8149,
29898,
4905,
29918,
1445,
29897,
13,
4706,
4974,
6611,
1275,
19673,
29918,
8149,
13,
13,
1678,
822,
1243,
29918,
5215,
29918,
8149,
29918,
6310,
29918,
1445,
29918,
9344,
29918,
1287,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
5215,
29918,
8149,
29918,
6310,
29918,
1445,
29918,
9344,
29918,
1287,
1495,
13,
4706,
6611,
353,
3861,
13,
4706,
25557,
353,
3861,
13,
4706,
411,
1722,
29898,
4905,
29918,
1445,
29892,
525,
29893,
1495,
408,
281,
29901,
13,
9651,
1209,
13,
13,
4706,
19673,
29918,
8149,
353,
3667,
29889,
5215,
29918,
8149,
29898,
4905,
29918,
1445,
29897,
13,
4706,
4974,
6611,
1275,
19673,
29918,
8149,
13,
13,
1678,
822,
1243,
29918,
5215,
29918,
8149,
29918,
11516,
29918,
1332,
3246,
3535,
29918,
9344,
29918,
22692,
29918,
14697,
2392,
29898,
1311,
29892,
13128,
3972,
1125,
13,
4706,
9995,
13,
4706,
9995,
13,
4706,
1962,
29918,
1445,
29901,
851,
353,
13128,
3972,
29889,
11256,
3972,
29898,
12015,
12336,
29918,
18267,
29918,
29943,
5607,
8032,
467,
7122,
877,
1688,
29918,
5215,
29918,
8149,
29918,
11516,
29918,
1332,
3246,
3535,
29918,
9344,
29918,
22692,
29918,
14697,
2392,
1495,
13,
4706,
6611,
353,
3861,
13,
4706,
25557,
353,
3861,
13,
4706,
6611,
353,
6702,
1688,
29918,
29874,
742,
525,
1688,
29918,
29890,
742,
525,
1688,
29918,
29883,
1495,
13,
4706,
25557,
353,
6702,
1688,
742,
525,
1688,
29906,
742,
525,
1688,
29941,
1495,
13,
4706,
411,
1722,
29898,
4905,
29918,
1445,
29892,
525,
29893,
1495,
408,
281,
29901,
13,
9651,
363,
1820,
29892,
7332,
297,
14319,
29898,
8149,
29892,
25557,
1125,
13,
18884,
281,
29889,
3539,
29898,
29888,
29915,
29912,
1989,
29913,
17067,
1254,
29896,
396,
426,
29879,
1137,
1012,
29876,
1495,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
14697,
291,
2392,
1125,
13,
9651,
3667,
29889,
5215,
29918,
8149,
29898,
4905,
29918,
1445,
29897,
13,
13,
13,
1990,
4321,
12914,
15506,
1762,
21533,
29901,
13,
13,
1678,
822,
1243,
29918,
2080,
29918,
348,
6550,
2164,
29918,
517,
29918,
4905,
29898,
1311,
1125,
13,
4706,
848,
353,
6702,
1688,
742,
29897,
13,
4706,
848,
29918,
4905,
353,
11117,
1688,
2396,
525,
1688,
10827,
13,
4706,
848,
29918,
2457,
353,
3667,
29889,
5510,
29918,
8149,
29918,
517,
29918,
8977,
29898,
1272,
29897,
13,
4706,
4974,
848,
29918,
4905,
1275,
848,
29918,
2457,
13,
13,
1678,
822,
1243,
29918,
2080,
29918,
348,
6550,
2164,
29918,
15843,
29918,
517,
29918,
4905,
29898,
1311,
1125,
13,
4706,
848,
353,
6702,
1688,
742,
29897,
13,
4706,
848,
29918,
4905,
353,
11117,
1688,
2396,
525,
1688,
10827,
13,
4706,
848,
29918,
2457,
353,
3667,
29889,
5510,
29918,
8149,
29918,
517,
29918,
8977,
29898,
1272,
29892,
5852,
29897,
13,
4706,
4974,
848,
29918,
4905,
1275,
848,
29918,
2457,
13,
13,
1678,
822,
1243,
29918,
2080,
29918,
6550,
2164,
29918,
517,
29918,
4905,
29898,
1311,
1125,
13,
4706,
848,
353,
6702,
1688,
29901,
1688,
29906,
742,
29897,
13,
4706,
848,
29918,
4905,
353,
11117,
1688,
2396,
525,
1688,
29906,
10827,
13,
4706,
848,
29918,
2457,
353,
3667,
29889,
5510,
29918,
8149,
29918,
517,
29918,
8977,
29898,
1272,
29897,
13,
4706,
4974,
848,
29918,
4905,
1275,
848,
29918,
2457,
13,
13,
1678,
822,
1243,
29918,
2080,
29918,
6550,
2164,
29918,
15843,
29918,
517,
29918,
4905,
29898,
1311,
1125,
13,
4706,
848,
353,
6702,
1688,
29901,
1688,
29906,
742,
29897,
13,
4706,
848,
29918,
4905,
353,
11117,
1688,
29906,
2396,
525,
1688,
10827,
13,
4706,
848,
29918,
2457,
353,
3667,
29889,
5510,
29918,
8149,
29918,
517,
29918,
8977,
29898,
1272,
29892,
5852,
29897,
13,
4706,
4974,
848,
29918,
4905,
1275,
848,
29918,
2457,
13,
13,
13,
1990,
4321,
2528,
1762,
21533,
7295,
13,
13,
1678,
822,
1243,
29918,
1482,
29918,
1989,
29918,
9344,
29918,
2457,
29918,
26940,
29918,
8977,
29898,
1311,
1125,
13,
4706,
848,
29918,
8977,
353,
6571,
13,
4706,
1820,
353,
525,
29874,
29915,
13,
4706,
995,
353,
525,
29890,
29915,
13,
4706,
3667,
29889,
1202,
29918,
517,
29918,
8977,
29898,
1272,
29918,
8977,
29892,
1820,
29892,
995,
29897,
13,
4706,
4974,
848,
29918,
8977,
1275,
11117,
29874,
2396,
525,
29890,
10827,
13,
13,
1678,
822,
1243,
29918,
1482,
29918,
1989,
29918,
524,
29918,
9344,
29918,
2457,
29918,
26940,
29918,
8977,
29898,
1311,
1125,
13,
4706,
848,
29918,
8977,
353,
6571,
13,
4706,
1820,
353,
525,
29874,
29915,
13,
4706,
995,
353,
29871,
29896,
13,
4706,
3667,
29889,
1202,
29918,
517,
29918,
8977,
29898,
1272,
29918,
8977,
29892,
1820,
29892,
995,
29897,
13,
4706,
4974,
848,
29918,
8977,
1275,
11117,
29874,
2396,
29871,
29896,
29913,
13,
13,
1678,
822,
1243,
29918,
8896,
29918,
1989,
29918,
9344,
29918,
12715,
2704,
29898,
1311,
1125,
13,
4706,
848,
29918,
8977,
353,
11117,
29874,
2396,
525,
29883,
10827,
13,
4706,
1820,
353,
525,
29874,
29915,
13,
4706,
995,
353,
525,
29890,
29915,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
6708,
2392,
1125,
13,
9651,
3667,
29889,
1202,
29918,
517,
29918,
8977,
29898,
1272,
29918,
8977,
29892,
1820,
29892,
995,
29897,
13,
13,
13,
1990,
4321,
5647,
1461,
6678,
4591,
6678,
21533,
29901,
13,
13,
1678,
822,
20254,
29918,
2220,
29918,
29896,
29898,
1311,
1125,
396,
282,
23929,
29901,
694,
4612,
13,
4706,
1209,
13,
13,
1678,
822,
20254,
29918,
2220,
29918,
29906,
29898,
1311,
1125,
396,
282,
23929,
29901,
694,
4612,
13,
4706,
1209,
13,
13,
1678,
822,
20254,
29918,
2220,
29918,
29941,
29898,
1311,
1125,
396,
282,
23929,
29901,
694,
4612,
13,
4706,
1209,
13,
13,
1678,
822,
1243,
29918,
6310,
29918,
3259,
29918,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29941,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29897,
13,
13,
1678,
822,
1243,
29918,
6310,
29918,
3259,
29918,
348,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29941,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29897,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29906,
29906,
29945,
29918,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29941,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29906,
29889,
29906,
29889,
29945,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29941,
29906,
29953,
29918,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29941,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29941,
29889,
29906,
29889,
29953,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29896,
29896,
29906,
29918,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29906,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29896,
29889,
29896,
29889,
29906,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29896,
29906,
29906,
29918,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29906,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29896,
29889,
29906,
29889,
29906,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29900,
29900,
29946,
29918,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29896,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29900,
29889,
29900,
29889,
29946,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29900,
29900,
29945,
29918,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29896,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29900,
29889,
29900,
29889,
29945,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29906,
29906,
29945,
29918,
348,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29941,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29906,
29889,
29906,
29889,
29945,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29941,
29906,
29953,
29918,
348,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29941,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29941,
29889,
29906,
29889,
29953,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29896,
29896,
29906,
29918,
348,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29906,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29896,
29889,
29896,
29889,
29906,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29896,
29906,
29906,
29918,
348,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29906,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29896,
29889,
29906,
29889,
29906,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29900,
29900,
29946,
29918,
348,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29896,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29900,
29889,
29900,
29889,
29946,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29900,
29900,
29945,
29918,
348,
21693,
29918,
9344,
29918,
2457,
29918,
29881,
11770,
29918,
2220,
29918,
29896,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
500,
13,
4706,
4974,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
1275,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29900,
29889,
29900,
29889,
29945,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
29900,
29900,
29941,
29918,
348,
21693,
29918,
9344,
29918,
22692,
29918,
14697,
291,
2392,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
500,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
14697,
291,
2392,
1125,
13,
9651,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29900,
29889,
29900,
29889,
29941,
1495,
13,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
1540,
15380,
29918,
4830,
29918,
336,
4637,
29918,
14697,
291,
2392,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
29889,
29946,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
500,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
14697,
291,
2392,
1125,
13,
9651,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29896,
29889,
29900,
1495,
13,
13,
1678,
822,
1243,
29918,
3259,
29918,
1540,
15380,
29918,
4830,
29918,
262,
29918,
8149,
29918,
336,
4637,
29918,
14697,
291,
2392,
29898,
1311,
1125,
13,
4706,
3653,
29918,
8977,
353,
426,
13,
9651,
525,
29900,
29889,
29900,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29896,
29892,
13,
9651,
525,
29906,
29889,
29906,
29889,
29945,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29941,
29892,
13,
9651,
525,
29896,
29889,
29896,
29889,
29906,
2396,
1583,
29889,
29881,
11770,
29918,
2220,
29918,
29906,
29892,
13,
9651,
500,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
14697,
291,
2392,
1125,
13,
9651,
3667,
29889,
21111,
29918,
2220,
29918,
3166,
29918,
2220,
29918,
8977,
29898,
9891,
29918,
8977,
29892,
525,
29896,
29889,
29900,
29889,
29896,
1495,
13,
13,
2
] |
vectorizing.py | ramankh/multi-digit-recognition | 0 | 93453 | import cv2
import numpy as np
import pickle
import h5py
number_of_images = 13068 #33402 #
#dic_pick = pickle.load( open( "train_metadata.pickle", "rb" ) )
dic_pick = pickle.load( open( "test_metadata.pickle", "rb" ) )
length = [len(x) for x in dic_pick["label"]]
inpt= np.ndarray((number_of_images,784))
labels = np.ndarray((number_of_images, 7))
labels_one_hot = np.ndarray((number_of_images, 5, 10)) #(0-9 and blank)
length_one_hot = np.ndarray((number_of_images,7)) # (0-5 and more than 5)
labels_one_hot.fill(0)
labels.fill(-1)
i=0
while i<number_of_images:
#img = cv2.imread("cropped/{}.png".format(i+1), cv2.CV_LOAD_IMAGE_GRAYSCALE)
img = cv2.imread("cropped_test/{}.png".format(i+1), cv2.CV_LOAD_IMAGE_GRAYSCALE)
inpt[i] = np.reshape(img, -1)
# Iterate over all image labels and
# creat label classes array for each image
# creat one hot class representation which last item
# is the blank digit
# creat one hot class for numbers length which
# in this experiment is limited to 5 digits
for index,item in enumerate(dic_pick["label"][i]):
print "i={}--index={}".format(i,index)
if index<5:
labels[i][index] = item
if item == 10:
labels_one_hot[i][index][0] = 1
else:
labels_one_hot[i][index][item] = 1
digit_numbers = len(dic_pick["label"][i])
# find length of labels and save theme one-hot coded
if digit_numbers<=5:
length_one_hot[i][digit_numbers] = 1
else:
length_one_hot[i][6] = 1
i+=1
#print labels_one_hot.shape
char_one_lbl = np.array([labels_one_hot[i][0][:] for i in range(number_of_images-1)])
char_two_lbl = np.array([labels_one_hot[i][1][:] for i in range(number_of_images-1)])
char_three_lbl = np.array([labels_one_hot[i][2][:] for i in range(number_of_images-1)])
char_four_lbl = np.array([labels_one_hot[i][3][:] for i in range(number_of_images-1)])
char_five_lbl = np.array([labels_one_hot[i][4][:] for i in range(number_of_images-1)])
data_dict = {
'data': inpt,
'labels': labels,
'length': length,
'length_lbl': length_one_hot,
'ch_one_lbl' : char_one_lbl,
'ch_two_lbl' : char_two_lbl,
'ch_three_lbl' : char_three_lbl,
'ch_four_lbl' : char_four_lbl,
'ch_five_lbl' : char_five_lbl
}
#pickle_out = open("data.pickle", "wb")
pickle_out = open("test_data.pickle", "wb")
pickle.dump(data_dict, pickle_out, protocol=2)
pickle_out.close()
| [
1,
1053,
13850,
29906,
13,
5215,
12655,
408,
7442,
13,
5215,
5839,
280,
13,
5215,
298,
29945,
2272,
13,
13,
4537,
29918,
974,
29918,
8346,
353,
29871,
29896,
29941,
29900,
29953,
29947,
396,
29941,
29941,
29946,
29900,
29906,
259,
396,
13,
29937,
27774,
29918,
23945,
353,
5839,
280,
29889,
1359,
29898,
1722,
29898,
376,
14968,
29918,
19635,
29889,
23945,
280,
613,
376,
6050,
29908,
1723,
1723,
13,
27774,
29918,
23945,
353,
5839,
280,
29889,
1359,
29898,
1722,
29898,
376,
1688,
29918,
19635,
29889,
23945,
280,
613,
376,
6050,
29908,
1723,
1723,
13,
2848,
353,
518,
2435,
29898,
29916,
29897,
363,
921,
297,
12124,
29918,
23945,
3366,
1643,
3108,
29962,
13,
262,
415,
29922,
7442,
29889,
299,
2378,
3552,
4537,
29918,
974,
29918,
8346,
29892,
29955,
29947,
29946,
876,
13,
21134,
353,
7442,
29889,
299,
2378,
3552,
4537,
29918,
974,
29918,
8346,
29892,
29871,
29955,
876,
13,
21134,
29918,
650,
29918,
8711,
353,
7442,
29889,
299,
2378,
3552,
4537,
29918,
974,
29918,
8346,
29892,
29871,
29945,
29892,
29871,
29896,
29900,
876,
27355,
29900,
29899,
29929,
322,
9654,
29897,
13,
2848,
29918,
650,
29918,
8711,
353,
7442,
29889,
299,
2378,
3552,
4537,
29918,
974,
29918,
8346,
29892,
29955,
876,
396,
313,
29900,
29899,
29945,
322,
901,
1135,
29871,
29945,
29897,
13,
13,
13,
21134,
29918,
650,
29918,
8711,
29889,
5589,
29898,
29900,
29897,
13,
13,
13,
13,
21134,
29889,
5589,
6278,
29896,
29897,
13,
13,
29875,
29922,
29900,
13,
8000,
474,
29966,
4537,
29918,
974,
29918,
8346,
29901,
13,
12,
29937,
2492,
353,
13850,
29906,
29889,
326,
949,
703,
24077,
2986,
19248,
1836,
2732,
1642,
4830,
29898,
29875,
29974,
29896,
511,
13850,
29906,
29889,
15633,
29918,
29428,
29918,
2382,
29918,
29954,
4717,
21554,
5454,
1307,
29897,
13,
12,
2492,
353,
13850,
29906,
29889,
326,
949,
703,
24077,
2986,
29918,
1688,
19248,
1836,
2732,
1642,
4830,
29898,
29875,
29974,
29896,
511,
13850,
29906,
29889,
15633,
29918,
29428,
29918,
2382,
29918,
29954,
4717,
21554,
5454,
1307,
29897,
13,
12,
262,
415,
29961,
29875,
29962,
353,
7442,
29889,
690,
14443,
29898,
2492,
29892,
448,
29896,
29897,
13,
12,
29937,
20504,
403,
975,
599,
1967,
11073,
322,
13,
12,
29937,
907,
271,
3858,
4413,
1409,
363,
1269,
1967,
13,
12,
29937,
907,
271,
697,
7375,
770,
8954,
607,
1833,
2944,
13,
12,
29937,
338,
278,
9654,
13615,
13,
12,
29937,
907,
271,
697,
7375,
770,
363,
3694,
3309,
607,
13,
12,
29937,
297,
445,
7639,
338,
9078,
304,
29871,
29945,
13340,
13,
13,
12,
1454,
2380,
29892,
667,
297,
26985,
29898,
27774,
29918,
23945,
3366,
1643,
3108,
29961,
29875,
29962,
1125,
13,
12,
12,
2158,
376,
29875,
3790,
29913,
489,
2248,
3790,
29913,
1642,
4830,
29898,
29875,
29892,
2248,
29897,
13,
12,
12,
361,
2380,
29966,
29945,
29901,
13,
12,
12,
12,
21134,
29961,
29875,
3816,
2248,
29962,
353,
2944,
13,
12,
12,
12,
361,
2944,
1275,
29871,
29896,
29900,
29901,
13,
12,
12,
12,
12,
21134,
29918,
650,
29918,
8711,
29961,
29875,
3816,
2248,
3816,
29900,
29962,
353,
29871,
29896,
13,
12,
12,
12,
2870,
29901,
13,
12,
12,
12,
12,
21134,
29918,
650,
29918,
8711,
29961,
29875,
3816,
2248,
3816,
667,
29962,
353,
29871,
29896,
13,
13,
12,
26204,
29918,
20326,
353,
7431,
29898,
27774,
29918,
23945,
3366,
1643,
3108,
29961,
29875,
2314,
13,
12,
29937,
1284,
3309,
310,
11073,
322,
4078,
10929,
697,
29899,
8711,
274,
6797,
13,
12,
361,
13615,
29918,
20326,
14065,
29945,
29901,
13,
12,
12,
2848,
29918,
650,
29918,
8711,
29961,
29875,
3816,
26204,
29918,
20326,
29962,
353,
29871,
29896,
13,
12,
2870,
29901,
13,
12,
12,
2848,
29918,
650,
29918,
8711,
29961,
29875,
3816,
29953,
29962,
353,
29871,
29896,
13,
13,
12,
29875,
23661,
29896,
13,
13,
13,
29937,
2158,
11073,
29918,
650,
29918,
8711,
29889,
12181,
13,
13,
3090,
29918,
650,
29918,
26648,
353,
7442,
29889,
2378,
4197,
21134,
29918,
650,
29918,
8711,
29961,
29875,
3816,
29900,
3816,
17531,
363,
474,
297,
3464,
29898,
4537,
29918,
974,
29918,
8346,
29899,
29896,
29897,
2314,
13,
3090,
29918,
10184,
29918,
26648,
353,
7442,
29889,
2378,
4197,
21134,
29918,
650,
29918,
8711,
29961,
29875,
3816,
29896,
3816,
17531,
363,
474,
297,
3464,
29898,
4537,
29918,
974,
29918,
8346,
29899,
29896,
29897,
2314,
13,
3090,
29918,
17536,
29918,
26648,
353,
7442,
29889,
2378,
4197,
21134,
29918,
650,
29918,
8711,
29961,
29875,
3816,
29906,
3816,
17531,
363,
474,
297,
3464,
29898,
4537,
29918,
974,
29918,
8346,
29899,
29896,
29897,
2314,
13,
3090,
29918,
17823,
29918,
26648,
353,
7442,
29889,
2378,
4197,
21134,
29918,
650,
29918,
8711,
29961,
29875,
3816,
29941,
3816,
17531,
363,
474,
297,
3464,
29898,
4537,
29918,
974,
29918,
8346,
29899,
29896,
29897,
2314,
13,
3090,
29918,
20818,
29918,
26648,
353,
7442,
29889,
2378,
4197,
21134,
29918,
650,
29918,
8711,
29961,
29875,
3816,
29946,
3816,
17531,
363,
474,
297,
3464,
29898,
4537,
29918,
974,
29918,
8346,
29899,
29896,
29897,
2314,
13,
13,
1272,
29918,
8977,
353,
426,
13,
12,
29915,
1272,
2396,
297,
415,
29892,
13,
12,
29915,
21134,
2396,
11073,
29892,
13,
12,
29915,
2848,
2396,
3309,
29892,
13,
12,
29915,
2848,
29918,
26648,
2396,
3309,
29918,
650,
29918,
8711,
29892,
13,
12,
29915,
305,
29918,
650,
29918,
26648,
29915,
584,
1373,
29918,
650,
29918,
26648,
29892,
13,
12,
29915,
305,
29918,
10184,
29918,
26648,
29915,
584,
1373,
29918,
10184,
29918,
26648,
29892,
13,
12,
29915,
305,
29918,
17536,
29918,
26648,
29915,
584,
1373,
29918,
17536,
29918,
26648,
29892,
13,
12,
29915,
305,
29918,
17823,
29918,
26648,
29915,
584,
1373,
29918,
17823,
29918,
26648,
29892,
13,
12,
29915,
305,
29918,
20818,
29918,
26648,
29915,
584,
1373,
29918,
20818,
29918,
26648,
13,
12,
29913,
13,
13,
29937,
23945,
280,
29918,
449,
353,
1722,
703,
1272,
29889,
23945,
280,
613,
376,
29893,
29890,
1159,
13,
23945,
280,
29918,
449,
353,
1722,
703,
1688,
29918,
1272,
29889,
23945,
280,
613,
376,
29893,
29890,
1159,
13,
23945,
280,
29889,
15070,
29898,
1272,
29918,
8977,
29892,
5839,
280,
29918,
449,
29892,
9608,
29922,
29906,
29897,
13,
23945,
280,
29918,
449,
29889,
5358,
580,
13,
13,
2
] |
app/waterQual/legacy/extractForcingBuffer.py | fkwai/geolearn | 0 | 1603036 | <filename>app/waterQual/legacy/extractForcingBuffer.py
import ee
ee.Initialize()
import os
import time
import numpy as np
import pandas as pd
import datetime as dt
from hydroDL.data import usgs, gee
workDir = r'C:\Users\geofk\work\waterQuality'
# siteNo = '04086120'
siteNo = '053416972'
# find out site
dfSite = usgs.readUsgsText(os.path.join(workDir, 'inventory_NWIS_streamflow'))
rowSite = dfSite.loc[dfSite['site_no'] == siteNo]
lat = rowSite['dec_lat_va'].values[0]
lon = rowSite['dec_long_va'].values[0]
# not right somehow
# sd = dt.datetime.strptime(rowSite['qw_begin_date'].values[0], '%Y-%m-%d')
# ed = dt.datetime.strptime(rowSite['qw_end_date'].values[0], '%Y-%m-%d')
dfDaily = usgs.readUsgsText(os.path.join(workDir, 'data', 'dailyTS', siteNo),
dataType='dailyTS')
sd = pd.to_datetime(dfDaily['datetime'].values[0])
ed = pd.to_datetime(dfDaily['datetime'].values[-1])
# (lon, lat) = (-92.4363056, 45.12002778)
# (lon, lat) = (-88.4008333, 43.62444444)
# (lon, lat) = (-88.4063056, 43.12002778)
point = ee.Geometry.Point(lon, lat)
region = point.buffer(100)
datasetName = 'OREGONSTATE/PRISM/AN81d'
fieldLst = ['ppt', 'tmean', 'tdmean']
# datasetName = 'NASA/NLDAS/FORA0125_H002'
# fieldLst=['total_precipitation','temperature']
# test of gee server
imageCol = ee.ImageCollection(datasetName).filterDate(
gee.utils.t2ee(sd), gee.utils.t2ee(ed)).filterBounds(point).select(
fieldLst).sort('system:time_start')
imageLst = imageCol.toList(5)
image = ee.Image(imageLst.get(0))
temp = image.reduceRegion(ee.Reducer.median(), region).getInfo()
print(temp)
nd = 10
t1 = sd
if (ed - sd).days > nd:
t2 = t1 + dt.timedelta(days=nd)
else:
t2 = ed
dfLst = list()
while t1 < t2 <= ed:
t0 = time.time()
imageCol = ee.ImageCollection("OREGONSTATE/PRISM/AN81d").filterDate(
gee.utils.t2ee(t1), gee.utils.t2ee(t2)).filterBounds(point).select(
fieldLst).sort('system:time_start')
df = gee.getRegion(imageCol, fieldLst, region)
dfLst.append(df)
t1 = t2
t2 = t1 + dt.timedelta(days=nd)
if t2 > ed:
t2 = ed
print('downloaded {}/{} time {}'.format((t1 - sd).days, (ed - sd).days,
time.time() - t0))
out = pd.concat(dfLst)
out = out.sort_values(by=['datetime'])
savePath = os.path.join(
os.path.join(workDir, 'data', 'forcing', siteNo + 'temp'))
out.to_csv(savePath, index=False)
| [
1,
529,
9507,
29958,
932,
29914,
13405,
24399,
29914,
1397,
4135,
29914,
21111,
2831,
3277,
7701,
29889,
2272,
13,
5215,
321,
29872,
13,
3905,
29889,
6644,
6646,
580,
13,
5215,
2897,
13,
5215,
931,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
5215,
12865,
408,
11636,
13,
3166,
17546,
19558,
29889,
1272,
1053,
502,
3174,
29892,
1737,
29872,
13,
13,
1287,
9170,
353,
364,
29915,
29907,
3583,
5959,
29905,
479,
974,
29895,
29905,
1287,
29905,
13405,
24399,
537,
29915,
13,
29937,
3268,
3782,
353,
525,
29900,
29946,
29900,
29947,
29953,
29896,
29906,
29900,
29915,
13,
2746,
3782,
353,
525,
29900,
29945,
29941,
29946,
29896,
29953,
29929,
29955,
29906,
29915,
13,
13,
29937,
1284,
714,
3268,
13,
2176,
17033,
353,
502,
3174,
29889,
949,
15922,
3174,
1626,
29898,
359,
29889,
2084,
29889,
7122,
29898,
1287,
9170,
29892,
525,
262,
23886,
29918,
29940,
29956,
3235,
29918,
5461,
1731,
8785,
13,
798,
17033,
353,
4489,
17033,
29889,
2029,
29961,
2176,
17033,
1839,
2746,
29918,
1217,
2033,
1275,
3268,
3782,
29962,
13,
5066,
353,
1948,
17033,
1839,
7099,
29918,
5066,
29918,
1564,
13359,
5975,
29961,
29900,
29962,
13,
12957,
353,
1948,
17033,
1839,
7099,
29918,
5426,
29918,
1564,
13359,
5975,
29961,
29900,
29962,
13,
29937,
451,
1492,
10431,
13,
29937,
28972,
353,
11636,
29889,
12673,
29889,
710,
415,
603,
29898,
798,
17033,
1839,
29939,
29893,
29918,
463,
29918,
1256,
13359,
5975,
29961,
29900,
1402,
14210,
29979,
19222,
29885,
19222,
29881,
1495,
13,
29937,
1226,
353,
11636,
29889,
12673,
29889,
710,
415,
603,
29898,
798,
17033,
1839,
29939,
29893,
29918,
355,
29918,
1256,
13359,
5975,
29961,
29900,
1402,
14210,
29979,
19222,
29885,
19222,
29881,
1495,
13,
2176,
29928,
8683,
353,
502,
3174,
29889,
949,
15922,
3174,
1626,
29898,
359,
29889,
2084,
29889,
7122,
29898,
1287,
9170,
29892,
525,
1272,
742,
525,
29881,
8683,
9375,
742,
3268,
3782,
511,
13,
462,
9651,
848,
1542,
2433,
29881,
8683,
9375,
1495,
13,
4928,
353,
10518,
29889,
517,
29918,
12673,
29898,
2176,
29928,
8683,
1839,
12673,
13359,
5975,
29961,
29900,
2314,
13,
287,
353,
10518,
29889,
517,
29918,
12673,
29898,
2176,
29928,
8683,
1839,
12673,
13359,
5975,
14352,
29896,
2314,
13,
13,
29937,
313,
12957,
29892,
3405,
29897,
353,
8521,
29929,
29906,
29889,
29946,
29941,
29953,
29941,
29900,
29945,
29953,
29892,
29871,
29946,
29945,
29889,
29896,
29906,
29900,
29900,
29906,
29955,
29955,
29947,
29897,
13,
29937,
313,
12957,
29892,
3405,
29897,
353,
8521,
29947,
29947,
29889,
29946,
29900,
29900,
29947,
29941,
29941,
29941,
29892,
29871,
29946,
29941,
29889,
29953,
29906,
29946,
29946,
29946,
29946,
29946,
29946,
29897,
13,
29937,
313,
12957,
29892,
3405,
29897,
353,
8521,
29947,
29947,
29889,
29946,
29900,
29953,
29941,
29900,
29945,
29953,
29892,
29871,
29946,
29941,
29889,
29896,
29906,
29900,
29900,
29906,
29955,
29955,
29947,
29897,
13,
13,
3149,
353,
321,
29872,
29889,
7999,
7843,
29889,
5228,
29898,
12957,
29892,
3405,
29897,
13,
12803,
353,
1298,
29889,
9040,
29898,
29896,
29900,
29900,
29897,
13,
24713,
1170,
353,
525,
29949,
18166,
1164,
19713,
29914,
10593,
3235,
29924,
29914,
2190,
29947,
29896,
29881,
29915,
13,
2671,
29931,
303,
353,
6024,
407,
29873,
742,
525,
29873,
12676,
742,
525,
1594,
12676,
2033,
13,
29937,
8783,
1170,
353,
525,
29940,
3289,
29909,
29914,
29940,
10249,
3289,
29914,
22051,
29909,
29900,
29896,
29906,
29945,
29918,
29950,
29900,
29900,
29906,
29915,
13,
29937,
1746,
29931,
303,
29922,
1839,
7827,
29918,
1457,
7334,
7018,
3788,
12863,
1535,
2033,
13,
13,
29937,
1243,
310,
1737,
29872,
1923,
13,
3027,
1625,
353,
321,
29872,
29889,
2940,
7196,
29898,
24713,
1170,
467,
4572,
2539,
29898,
13,
1678,
1737,
29872,
29889,
13239,
29889,
29873,
29906,
3905,
29898,
4928,
511,
1737,
29872,
29889,
13239,
29889,
29873,
29906,
3905,
29898,
287,
8106,
4572,
18526,
29898,
3149,
467,
2622,
29898,
13,
4706,
1746,
29931,
303,
467,
6605,
877,
5205,
29901,
2230,
29918,
2962,
1495,
13,
3027,
29931,
303,
353,
1967,
1625,
29889,
517,
1293,
29898,
29945,
29897,
13,
3027,
353,
321,
29872,
29889,
2940,
29898,
3027,
29931,
303,
29889,
657,
29898,
29900,
876,
13,
7382,
353,
1967,
29889,
17469,
18457,
29898,
3905,
29889,
9039,
1682,
261,
29889,
2168,
713,
3285,
5120,
467,
657,
3401,
580,
13,
2158,
29898,
7382,
29897,
13,
29871,
13,
299,
353,
29871,
29896,
29900,
13,
29873,
29896,
353,
28972,
13,
361,
313,
287,
448,
28972,
467,
16700,
1405,
29871,
299,
29901,
13,
1678,
260,
29906,
353,
260,
29896,
718,
11636,
29889,
9346,
287,
2554,
29898,
16700,
29922,
299,
29897,
13,
2870,
29901,
13,
1678,
260,
29906,
353,
1226,
13,
13,
2176,
29931,
303,
353,
1051,
580,
13,
8000,
260,
29896,
529,
260,
29906,
5277,
1226,
29901,
13,
1678,
260,
29900,
353,
931,
29889,
2230,
580,
13,
1678,
1967,
1625,
353,
321,
29872,
29889,
2940,
7196,
703,
29949,
18166,
1164,
19713,
29914,
10593,
3235,
29924,
29914,
2190,
29947,
29896,
29881,
2564,
4572,
2539,
29898,
13,
4706,
1737,
29872,
29889,
13239,
29889,
29873,
29906,
3905,
29898,
29873,
29896,
511,
1737,
29872,
29889,
13239,
29889,
29873,
29906,
3905,
29898,
29873,
29906,
8106,
4572,
18526,
29898,
3149,
467,
2622,
29898,
13,
9651,
1746,
29931,
303,
467,
6605,
877,
5205,
29901,
2230,
29918,
2962,
1495,
13,
1678,
4489,
353,
1737,
29872,
29889,
657,
18457,
29898,
3027,
1625,
29892,
1746,
29931,
303,
29892,
5120,
29897,
13,
1678,
4489,
29931,
303,
29889,
4397,
29898,
2176,
29897,
13,
1678,
260,
29896,
353,
260,
29906,
13,
1678,
260,
29906,
353,
260,
29896,
718,
11636,
29889,
9346,
287,
2554,
29898,
16700,
29922,
299,
29897,
13,
1678,
565,
260,
29906,
1405,
1226,
29901,
13,
4706,
260,
29906,
353,
1226,
13,
1678,
1596,
877,
10382,
287,
6571,
29914,
8875,
931,
6571,
4286,
4830,
3552,
29873,
29896,
448,
28972,
467,
16700,
29892,
313,
287,
448,
28972,
467,
16700,
29892,
13,
462,
462,
9651,
931,
29889,
2230,
580,
448,
260,
29900,
876,
13,
449,
353,
10518,
29889,
17685,
29898,
2176,
29931,
303,
29897,
13,
449,
353,
714,
29889,
6605,
29918,
5975,
29898,
1609,
29922,
1839,
12673,
11287,
13,
7620,
2605,
353,
2897,
29889,
2084,
29889,
7122,
29898,
13,
1678,
2897,
29889,
2084,
29889,
7122,
29898,
1287,
9170,
29892,
525,
1272,
742,
525,
1454,
3277,
742,
3268,
3782,
718,
525,
7382,
8785,
13,
449,
29889,
517,
29918,
7638,
29898,
7620,
2605,
29892,
2380,
29922,
8824,
29897,
13,
2
] |
slam/slamBase.py | TimeEscaper/rl_data_association | 3 | 136625 | """
<NAME>
<EMAIL>
24-Apr-2018
<NAME>
<EMAIL>
26-Nov-2018
"""
import numpy as np
from abc import ABC, abstractmethod
class SlamBase(ABC):
def __init__(self, slam_type, data_association, update_type, Q):
"""
:param slam_type: Which SLAM algorithm to run: ONLINE SLAM (ekf) or smoothing the full trajcetoryby using Factor graphs (sam).
:param data_association: The type of data association to perform during the update step.
Valid string choices include: {'known', 'nn', 'nndg', 'jcbb'}.
:param update_type: The type of update to perform in the SLAM algorithm.
Valid string choices include: {'batch', 'sequential'}.
:param Q: The observation noise covariance matrix: numpy.ndarray of size 2x2 for range and bearing measurements.
"""
assert isinstance(slam_type, str)
assert isinstance(data_association, str)
assert isinstance(update_type, str)
assert isinstance(Q, np.ndarray)
assert slam_type in {'ekf', 'sam'}
assert update_type in {'batch', 'sequential'}
assert data_association in {'known', 'ml', 'jcbb'}
self.slam_type = slam_type
self.da_type = data_association
self.update_type = update_type
self.t = 0
self.state_dim = 3 # The number of state variables: x, y, theta (initially).
self.obs_dim = 2 # The number of variables per observation: range, bearing.
self.lm_dim = 2 # The number of variables per landmark: x, y.
@abstractmethod
def predict(self, u, dt=None):
"""
Updates mu_bar and Sigma_bar after taking a single prediction step after incorporating the control.
:param u: The control for prediction (format: np.ndarray([drot1, dtran, drot2])).
:param dt: The time difference between the previous state and the current state being predicted.
"""
raise NotImplementedError()
@abstractmethod
def update(self, z):
"""
Performs data association to figure out previously seen landmarks vs. new landmarks
in the observations list and updates mu and Sigma after incorporating them.
:param z: Observation measurements (format: numpy.ndarray of size Kx3
observations where each row is [range, bearing, landmark_id]).
"""
raise NotImplementedError()
| [
1,
9995,
13,
29966,
5813,
29958,
13,
29966,
26862,
6227,
29958,
13,
29906,
29946,
29899,
29909,
558,
29899,
29906,
29900,
29896,
29947,
13,
13,
29966,
5813,
29958,
13,
29966,
26862,
6227,
29958,
13,
29906,
29953,
29899,
25363,
29899,
29906,
29900,
29896,
29947,
13,
15945,
29908,
13,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
25638,
1053,
16417,
29892,
9846,
5696,
13,
13,
13,
1990,
317,
5288,
5160,
29898,
19658,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2243,
314,
29918,
1853,
29892,
848,
29918,
21264,
362,
29892,
2767,
29918,
1853,
29892,
660,
1125,
13,
4706,
9995,
13,
4706,
584,
3207,
2243,
314,
29918,
1853,
29901,
8449,
317,
4375,
29924,
5687,
304,
1065,
29901,
6732,
18521,
317,
4375,
29924,
313,
1416,
29888,
29897,
470,
1560,
29877,
6046,
278,
2989,
1020,
29926,
29883,
300,
706,
1609,
773,
383,
7168,
18445,
313,
13445,
467,
13,
4706,
584,
3207,
848,
29918,
21264,
362,
29901,
450,
1134,
310,
848,
15477,
304,
2189,
2645,
278,
2767,
4331,
29889,
13,
462,
462,
15758,
1347,
19995,
3160,
29901,
11117,
5203,
742,
525,
15755,
742,
525,
29876,
299,
29887,
742,
525,
29926,
29883,
1327,
29915,
1836,
13,
4706,
584,
3207,
2767,
29918,
1853,
29901,
450,
1134,
310,
2767,
304,
2189,
297,
278,
317,
4375,
29924,
5687,
29889,
13,
462,
9651,
15758,
1347,
19995,
3160,
29901,
11117,
16175,
742,
525,
6831,
2556,
29915,
1836,
13,
4706,
584,
3207,
660,
29901,
450,
15500,
11462,
18838,
279,
8837,
4636,
29901,
12655,
29889,
299,
2378,
310,
2159,
29871,
29906,
29916,
29906,
363,
3464,
322,
24638,
20398,
29889,
13,
4706,
9995,
13,
13,
4706,
4974,
338,
8758,
29898,
2536,
314,
29918,
1853,
29892,
851,
29897,
13,
4706,
4974,
338,
8758,
29898,
1272,
29918,
21264,
362,
29892,
851,
29897,
13,
4706,
4974,
338,
8758,
29898,
5504,
29918,
1853,
29892,
851,
29897,
13,
4706,
4974,
338,
8758,
29898,
29984,
29892,
7442,
29889,
299,
2378,
29897,
13,
13,
4706,
4974,
2243,
314,
29918,
1853,
297,
11117,
1416,
29888,
742,
525,
13445,
10827,
13,
4706,
4974,
2767,
29918,
1853,
297,
11117,
16175,
742,
525,
6831,
2556,
10827,
13,
4706,
4974,
848,
29918,
21264,
362,
297,
11117,
5203,
742,
525,
828,
742,
525,
29926,
29883,
1327,
10827,
13,
13,
4706,
1583,
29889,
2536,
314,
29918,
1853,
353,
2243,
314,
29918,
1853,
13,
4706,
1583,
29889,
1388,
29918,
1853,
353,
848,
29918,
21264,
362,
13,
4706,
1583,
29889,
5504,
29918,
1853,
353,
2767,
29918,
1853,
13,
13,
4706,
1583,
29889,
29873,
353,
29871,
29900,
13,
13,
4706,
1583,
29889,
3859,
29918,
6229,
353,
29871,
29941,
29871,
396,
450,
1353,
310,
2106,
3651,
29901,
921,
29892,
343,
29892,
278,
941,
313,
11228,
368,
467,
13,
4706,
1583,
29889,
26290,
29918,
6229,
353,
29871,
29906,
29871,
396,
450,
1353,
310,
3651,
639,
15500,
29901,
3464,
29892,
24638,
29889,
13,
4706,
1583,
29889,
21457,
29918,
6229,
353,
29871,
29906,
29871,
396,
450,
1353,
310,
3651,
639,
2982,
3502,
29901,
921,
29892,
343,
29889,
13,
13,
1678,
732,
16595,
5696,
13,
1678,
822,
8500,
29898,
1311,
29892,
318,
29892,
11636,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
5020,
15190,
3887,
29918,
1646,
322,
317,
2934,
29918,
1646,
1156,
5622,
263,
2323,
18988,
4331,
1156,
11039,
1218,
278,
2761,
29889,
13,
13,
4706,
584,
3207,
318,
29901,
450,
2761,
363,
18988,
313,
4830,
29901,
7442,
29889,
299,
2378,
4197,
29881,
5450,
29896,
29892,
270,
509,
273,
29892,
4441,
29873,
29906,
2314,
467,
13,
4706,
584,
3207,
11636,
29901,
450,
931,
4328,
1546,
278,
3517,
2106,
322,
278,
1857,
2106,
1641,
25383,
29889,
13,
4706,
9995,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
580,
13,
13,
1678,
732,
16595,
5696,
13,
1678,
822,
2767,
29898,
1311,
29892,
503,
1125,
13,
4706,
9995,
13,
4706,
2431,
9514,
848,
15477,
304,
4377,
714,
9251,
3595,
2982,
22848,
7186,
29889,
716,
2982,
22848,
13,
4706,
297,
278,
13917,
1051,
322,
11217,
3887,
322,
317,
2934,
1156,
11039,
1218,
963,
29889,
13,
13,
4706,
584,
3207,
503,
29901,
21651,
362,
20398,
313,
4830,
29901,
12655,
29889,
299,
2378,
310,
2159,
476,
29916,
29941,
13,
462,
29871,
13917,
988,
1269,
1948,
338,
518,
3881,
29892,
24638,
29892,
2982,
3502,
29918,
333,
14664,
13,
4706,
9995,
13,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
580,
13,
2
] |
protoflow/applications/__init__.py | theblackfly/protoflow | 3 | 103531 | from .glvq import GLVQ
from .deeplvq import DeepLVQ
from .gmlvq import GMLVQ
# from .knn import KNN
# from .lvq1 import LVQ1
from .lvqmln import LVQMLN
from .network import Network
__all__ = [
'GLVQ',
'DeepLVQ',
'GMLVQ',
# 'KNN',
# 'LVQ1',
'LVQMLN',
'Network',
]
| [
1,
515,
869,
3820,
29894,
29939,
1053,
12729,
29963,
29984,
13,
3166,
869,
311,
29872,
572,
29894,
29939,
1053,
21784,
29931,
29963,
29984,
13,
3166,
869,
29887,
828,
29894,
29939,
1053,
402,
1988,
29963,
29984,
13,
29937,
515,
869,
3959,
29876,
1053,
476,
10262,
13,
29937,
515,
869,
28463,
29939,
29896,
1053,
365,
29963,
29984,
29896,
13,
3166,
869,
28463,
29939,
828,
29876,
1053,
365,
29963,
29984,
1988,
29940,
13,
3166,
869,
11618,
1053,
8527,
13,
13,
1649,
497,
1649,
353,
518,
13,
1678,
525,
7239,
29963,
29984,
742,
13,
1678,
525,
2772,
1022,
29931,
29963,
29984,
742,
13,
1678,
525,
29954,
1988,
29963,
29984,
742,
13,
1678,
396,
525,
29968,
10262,
742,
13,
1678,
396,
525,
29931,
29963,
29984,
29896,
742,
13,
1678,
525,
29931,
29963,
29984,
1988,
29940,
742,
13,
1678,
525,
13724,
742,
13,
29962,
13,
2
] |
node.py | niki4etoo/WSN | 1 | 98596 | <gh_stars>1-10
class Node:
starting = True
ending = False
name = ""
weight = [1, 20]
active = True
edge_length = 0
nodes = []
def __init__(self, name, grid, posX, posY, active):
self.name = name # Name of the node
self.grid = grid # Which grid the node will be placed
self.posX = posX # Position X on the grid
self.posY = posY # Position Y on the grid
self.active = active # Is active
pass
def add(self, newNode):
#To DO
self.nodes.append(newNode)
print("Added new node")
pass
def remove(self, node):
#To DO
self.nodes = []
print("The node has been removed")
pass
def update(self, index, node):
self.nodes.pop(index)
self.nodes.insert(index, node)
print("The node has been updated")
pass
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
1990,
9071,
29901,
13,
12,
2962,
292,
353,
5852,
13,
12,
2548,
353,
7700,
13,
12,
13,
12,
978,
353,
5124,
13,
12,
7915,
353,
518,
29896,
29892,
29871,
29906,
29900,
29962,
13,
12,
4925,
353,
5852,
13,
12,
12864,
29918,
2848,
353,
29871,
29900,
13,
12,
18010,
353,
5159,
13,
12,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
1024,
29892,
6856,
29892,
926,
29990,
29892,
926,
29979,
29892,
6136,
1125,
13,
12,
12,
1311,
29889,
978,
353,
1024,
29871,
12,
396,
4408,
310,
278,
2943,
13,
12,
12,
1311,
29889,
7720,
353,
6856,
12,
396,
8449,
6856,
278,
2943,
674,
367,
7180,
13,
12,
12,
1311,
29889,
1066,
29990,
353,
926,
29990,
12,
396,
20627,
1060,
373,
278,
6856,
13,
12,
12,
1311,
29889,
1066,
29979,
353,
926,
29979,
29871,
12,
396,
20627,
612,
373,
278,
6856,
13,
12,
12,
1311,
29889,
4925,
353,
6136,
396,
1317,
6136,
13,
12,
12,
3364,
13,
12,
12,
13,
12,
1753,
788,
29898,
1311,
29892,
716,
4247,
1125,
13,
12,
12,
29937,
1762,
11662,
13,
12,
12,
1311,
29889,
18010,
29889,
4397,
29898,
1482,
4247,
29897,
13,
12,
12,
2158,
703,
2528,
287,
716,
2943,
1159,
13,
12,
12,
3364,
13,
12,
13,
12,
1753,
3349,
29898,
1311,
29892,
2943,
1125,
13,
12,
12,
29937,
1762,
11662,
13,
12,
12,
1311,
29889,
18010,
353,
5159,
13,
12,
12,
2158,
703,
1576,
2943,
756,
1063,
6206,
1159,
12,
12,
13,
12,
12,
3364,
13,
12,
13,
12,
1753,
2767,
29898,
1311,
29892,
2380,
29892,
2943,
1125,
13,
12,
12,
1311,
29889,
18010,
29889,
7323,
29898,
2248,
29897,
13,
12,
12,
1311,
29889,
18010,
29889,
7851,
29898,
2248,
29892,
2943,
29897,
13,
12,
12,
2158,
703,
1576,
2943,
756,
1063,
4784,
1159,
13,
12,
12,
3364,
13,
2
] |
PythonAndroid/youtube-dl/lib/python3.5/youtube_dl/extractor/zippcast.py | jianglei12138/python-3.5.1 | 10 | 1604964 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
determine_ext,
str_to_int,
)
class ZippCastIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?zippcast\.com/(?:video/|videoview\.php\?.*\bvplay=)(?P<id>[0-9a-zA-Z]+)'
_TESTS = [{
# m3u8, hq direct link
'url': 'http://www.zippcast.com/video/c9cfd5c7e44dbc29c81',
'md5': '5ea0263b5606866c4d6cda0fc5e8c6b6',
'info_dict': {
'id': 'c9cfd5c7e44dbc29c81',
'ext': 'mp4',
'title': '[Vinesauce] Vinny - Digital Space Traveler',
'description': 'Muted on youtube, but now uploaded in it\'s original form.',
'thumbnail': 're:^https?://.*\.jpg$',
'uploader': 'vinesauce',
'view_count': int,
'categories': ['Entertainment'],
'tags': list,
},
}, {
# f4m, lq ipod direct link
'url': 'http://www.zippcast.com/video/b79c0a233e9c6581775',
'only_matching': True,
}, {
'url': 'http://www.zippcast.com/videoview.php?vplay=c9cfd5c7e44dbc29c81&auto=no',
'only_matching': True,
}]
def _real_extract(self, url):
video_id = self._match_id(url)
webpage = self._download_webpage(
'http://www.zippcast.com/video/%s' % video_id, video_id)
formats = []
video_url = self._search_regex(
r'<source[^>]+src=(["\'])(?P<url>.+?)\1', webpage,
'video url', default=None, group='url')
if video_url:
formats.append({
'url': video_url,
'format_id': 'http',
'preference': 0, # direct link is almost always of worse quality
})
src_url = self._search_regex(
r'src\s*:\s*(?:escape\()?(["\'])(?P<url>http://.+?)\1',
webpage, 'src', default=None, group='url')
ext = determine_ext(src_url)
if ext == 'm3u8':
formats.extend(self._extract_m3u8_formats(
src_url, video_id, 'mp4', entry_protocol='m3u8_native',
m3u8_id='hls', fatal=False))
elif ext == 'f4m':
formats.extend(self._extract_f4m_formats(
src_url, video_id, f4m_id='hds', fatal=False))
self._sort_formats(formats)
title = self._og_search_title(webpage)
description = self._og_search_description(webpage) or self._html_search_meta(
'description', webpage)
uploader = self._search_regex(
r'<a[^>]+href="https?://[^/]+/profile/[^>]+>([^<]+)</a>',
webpage, 'uploader', fatal=False)
thumbnail = self._og_search_thumbnail(webpage)
view_count = str_to_int(self._search_regex(
r'>([\d,.]+) views!', webpage, 'view count', fatal=False))
categories = re.findall(
r'<a[^>]+href="https?://[^/]+/categories/[^"]+">([^<]+),?<',
webpage)
tags = re.findall(
r'<a[^>]+href="https?://[^/]+/search/tags/[^"]+">([^<]+),?<',
webpage)
return {
'id': video_id,
'title': title,
'description': description,
'thumbnail': thumbnail,
'uploader': uploader,
'view_count': view_count,
'categories': categories,
'tags': tags,
'formats': formats,
}
| [
1,
515,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
5215,
337,
13,
13,
3166,
869,
9435,
1053,
22140,
5647,
28891,
13,
3166,
6317,
13239,
1053,
313,
13,
1678,
8161,
29918,
1062,
29892,
13,
1678,
851,
29918,
517,
29918,
524,
29892,
13,
29897,
13,
13,
13,
1990,
796,
8377,
15738,
8673,
29898,
3401,
5647,
28891,
1125,
13,
1678,
903,
26707,
29918,
4219,
353,
364,
29915,
991,
29973,
597,
10780,
29901,
1636,
29905,
1846,
29973,
2526,
407,
4384,
23301,
510,
29914,
10780,
29901,
9641,
29914,
29989,
29894,
680,
586,
646,
23301,
1961,
29905,
29973,
5575,
29905,
29890,
29894,
1456,
29922,
5033,
29973,
29925,
29966,
333,
24566,
29900,
29899,
29929,
29874,
29899,
25265,
29899,
29999,
10062,
16029,
13,
1678,
903,
18267,
29903,
353,
15974,
13,
4706,
396,
286,
29941,
29884,
29947,
29892,
298,
29939,
1513,
1544,
13,
4706,
525,
2271,
2396,
525,
1124,
597,
1636,
29889,
2526,
407,
4384,
29889,
510,
29914,
9641,
29914,
29883,
29929,
6854,
29881,
29945,
29883,
29955,
29872,
29946,
29946,
11140,
29906,
29929,
29883,
29947,
29896,
742,
13,
4706,
525,
3487,
29945,
2396,
525,
29945,
11248,
29900,
29906,
29953,
29941,
29890,
29945,
29953,
29900,
29953,
29947,
29953,
29953,
29883,
29946,
29881,
29953,
29883,
1388,
29900,
13801,
29945,
29872,
29947,
29883,
29953,
29890,
29953,
742,
13,
4706,
525,
3888,
29918,
8977,
2396,
426,
13,
9651,
525,
333,
2396,
525,
29883,
29929,
6854,
29881,
29945,
29883,
29955,
29872,
29946,
29946,
11140,
29906,
29929,
29883,
29947,
29896,
742,
13,
9651,
525,
1062,
2396,
525,
1526,
29946,
742,
13,
9651,
525,
3257,
2396,
525,
29961,
29963,
1475,
585,
346,
29962,
12540,
1460,
448,
15918,
14121,
3201,
955,
261,
742,
13,
9651,
525,
8216,
2396,
525,
29924,
3860,
373,
366,
29873,
4003,
29892,
541,
1286,
20373,
297,
372,
20333,
29879,
2441,
883,
29889,
742,
13,
9651,
525,
386,
21145,
2396,
525,
276,
29901,
29985,
991,
29973,
597,
5575,
23301,
6173,
29938,
742,
13,
9651,
525,
9009,
261,
2396,
525,
29894,
1475,
585,
346,
742,
13,
9651,
525,
1493,
29918,
2798,
2396,
938,
29892,
13,
9651,
525,
20683,
2396,
6024,
10399,
2408,
358,
7464,
13,
9651,
525,
11338,
2396,
1051,
29892,
13,
4706,
2981,
13,
1678,
2981,
426,
13,
4706,
396,
285,
29946,
29885,
29892,
301,
29939,
10377,
397,
1513,
1544,
13,
4706,
525,
2271,
2396,
525,
1124,
597,
1636,
29889,
2526,
407,
4384,
29889,
510,
29914,
9641,
29914,
29890,
29955,
29929,
29883,
29900,
29874,
29906,
29941,
29941,
29872,
29929,
29883,
29953,
29945,
29947,
29896,
29955,
29955,
29945,
742,
13,
4706,
525,
6194,
29918,
4352,
292,
2396,
5852,
29892,
13,
1678,
2981,
426,
13,
4706,
525,
2271,
2396,
525,
1124,
597,
1636,
29889,
2526,
407,
4384,
29889,
510,
29914,
29894,
680,
586,
646,
29889,
1961,
29973,
29894,
1456,
29922,
29883,
29929,
6854,
29881,
29945,
29883,
29955,
29872,
29946,
29946,
11140,
29906,
29929,
29883,
29947,
29896,
29987,
6921,
29922,
1217,
742,
13,
4706,
525,
6194,
29918,
4352,
292,
2396,
5852,
29892,
13,
1678,
500,
29962,
13,
13,
1678,
822,
903,
6370,
29918,
21111,
29898,
1311,
29892,
3142,
1125,
13,
4706,
4863,
29918,
333,
353,
1583,
3032,
4352,
29918,
333,
29898,
2271,
29897,
13,
13,
4706,
24499,
353,
1583,
3032,
10382,
29918,
2676,
3488,
29898,
13,
9651,
525,
1124,
597,
1636,
29889,
2526,
407,
4384,
29889,
510,
29914,
9641,
22584,
29879,
29915,
1273,
4863,
29918,
333,
29892,
4863,
29918,
333,
29897,
13,
13,
4706,
21971,
353,
5159,
13,
4706,
4863,
29918,
2271,
353,
1583,
3032,
4478,
29918,
13087,
29898,
13,
9651,
364,
29915,
29966,
4993,
22896,
29958,
10062,
4351,
7607,
3366,
29905,
2033,
5033,
29973,
29925,
29966,
2271,
15513,
29974,
29973,
2144,
29896,
742,
24499,
29892,
13,
9651,
525,
9641,
3142,
742,
2322,
29922,
8516,
29892,
2318,
2433,
2271,
1495,
13,
4706,
565,
4863,
29918,
2271,
29901,
13,
9651,
21971,
29889,
4397,
3319,
13,
18884,
525,
2271,
2396,
4863,
29918,
2271,
29892,
13,
18884,
525,
4830,
29918,
333,
2396,
525,
1124,
742,
13,
18884,
525,
1457,
1659,
2396,
29871,
29900,
29892,
29871,
396,
1513,
1544,
338,
4359,
2337,
310,
15029,
11029,
13,
9651,
5615,
13,
4706,
4765,
29918,
2271,
353,
1583,
3032,
4478,
29918,
13087,
29898,
13,
9651,
364,
29915,
4351,
29905,
29879,
29930,
3583,
29879,
29930,
10780,
29901,
21587,
29905,
580,
26889,
3366,
29905,
2033,
5033,
29973,
29925,
29966,
2271,
29958,
1124,
597,
29889,
29974,
29973,
2144,
29896,
742,
13,
9651,
24499,
29892,
525,
4351,
742,
2322,
29922,
8516,
29892,
2318,
2433,
2271,
1495,
13,
4706,
1294,
353,
8161,
29918,
1062,
29898,
4351,
29918,
2271,
29897,
13,
4706,
565,
1294,
1275,
525,
29885,
29941,
29884,
29947,
2396,
13,
9651,
21971,
29889,
21843,
29898,
1311,
3032,
21111,
29918,
29885,
29941,
29884,
29947,
29918,
689,
1446,
29898,
13,
18884,
4765,
29918,
2271,
29892,
4863,
29918,
333,
29892,
525,
1526,
29946,
742,
6251,
29918,
20464,
2433,
29885,
29941,
29884,
29947,
29918,
11487,
742,
13,
18884,
286,
29941,
29884,
29947,
29918,
333,
2433,
29882,
3137,
742,
18409,
29922,
8824,
876,
13,
4706,
25342,
1294,
1275,
525,
29888,
29946,
29885,
2396,
13,
9651,
21971,
29889,
21843,
29898,
1311,
3032,
21111,
29918,
29888,
29946,
29885,
29918,
689,
1446,
29898,
13,
18884,
4765,
29918,
2271,
29892,
4863,
29918,
333,
29892,
285,
29946,
29885,
29918,
333,
2433,
29882,
6289,
742,
18409,
29922,
8824,
876,
13,
4706,
1583,
3032,
6605,
29918,
689,
1446,
29898,
689,
1446,
29897,
13,
13,
4706,
3611,
353,
1583,
3032,
468,
29918,
4478,
29918,
3257,
29898,
2676,
3488,
29897,
13,
4706,
6139,
353,
1583,
3032,
468,
29918,
4478,
29918,
8216,
29898,
2676,
3488,
29897,
470,
1583,
3032,
1420,
29918,
4478,
29918,
7299,
29898,
13,
9651,
525,
8216,
742,
24499,
29897,
13,
4706,
6441,
261,
353,
1583,
3032,
4478,
29918,
13087,
29898,
13,
9651,
364,
29915,
29966,
29874,
22896,
29958,
10062,
12653,
543,
991,
29973,
597,
22896,
29914,
10062,
29914,
10185,
29914,
22896,
29958,
10062,
29958,
4197,
29985,
29966,
10062,
29897,
829,
29874,
29958,
742,
13,
9651,
24499,
29892,
525,
9009,
261,
742,
18409,
29922,
8824,
29897,
13,
4706,
266,
21145,
353,
1583,
3032,
468,
29918,
4478,
29918,
386,
21145,
29898,
2676,
3488,
29897,
13,
4706,
1776,
29918,
2798,
353,
851,
29918,
517,
29918,
524,
29898,
1311,
3032,
4478,
29918,
13087,
29898,
13,
9651,
364,
11041,
4197,
29905,
29881,
29892,
5586,
28135,
8386,
29991,
742,
24499,
29892,
525,
1493,
2302,
742,
18409,
29922,
8824,
876,
13,
13,
4706,
13997,
353,
337,
29889,
2886,
497,
29898,
13,
9651,
364,
29915,
29966,
29874,
22896,
29958,
10062,
12653,
543,
991,
29973,
597,
22896,
29914,
10062,
29914,
20683,
29914,
22896,
3108,
29974,
1013,
4197,
29985,
29966,
10062,
511,
29973,
29966,
742,
13,
9651,
24499,
29897,
13,
4706,
8282,
353,
337,
29889,
2886,
497,
29898,
13,
9651,
364,
29915,
29966,
29874,
22896,
29958,
10062,
12653,
543,
991,
29973,
597,
22896,
29914,
10062,
29914,
4478,
29914,
11338,
29914,
22896,
3108,
29974,
1013,
4197,
29985,
29966,
10062,
511,
29973,
29966,
742,
13,
9651,
24499,
29897,
13,
13,
4706,
736,
426,
13,
9651,
525,
333,
2396,
4863,
29918,
333,
29892,
13,
9651,
525,
3257,
2396,
3611,
29892,
13,
9651,
525,
8216,
2396,
6139,
29892,
13,
9651,
525,
386,
21145,
2396,
266,
21145,
29892,
13,
9651,
525,
9009,
261,
2396,
6441,
261,
29892,
13,
9651,
525,
1493,
29918,
2798,
2396,
1776,
29918,
2798,
29892,
13,
9651,
525,
20683,
2396,
13997,
29892,
13,
9651,
525,
11338,
2396,
8282,
29892,
13,
9651,
525,
689,
1446,
2396,
21971,
29892,
13,
4706,
500,
13,
2
] |
pytest_statsd/plugin.py | jlane9/pytest-statsd | 4 | 171579 | <reponame>jlane9/pytest-statsd<filename>pytest_statsd/plugin.py
"""pytest_statsd.plugin
.. codeauthor:: <NAME> <<EMAIL>>
"""
from __future__ import absolute_import
import time
import statsd
def pytest_addoption(parser):
"""
:param parser:
:return:
"""
group = parser.getgroup('terminal reporting')
group.addoption('--stats-d', action='store_true',
help='send test results to graphite')
group.addoption('--stats-host', action='store', dest='stats_host',
metavar='host', default='localhost',
help='statsd host. default is \'localhost\'')
group.addoption('--stats-port', action='store', dest='stats_port',
metavar='port', default=8125,
help='statsd port. default is 8125')
group.addoption('--stats-prefix', action='store', dest='stats_prefix',
metavar='prefix', default=None,
help='prefix to give all stats')
def pytest_configure(config):
"""
:param config:
:return:
"""
stats_d = config.getoption('stats_d')
# prevent opening statsd on slave nodes (xdist)
if stats_d and not hasattr(config, 'slaveinput'):
config._graphite = GraphiteReport(config)
config.pluginmanager.register(config._graphite)
def pytest_unconfigure(config):
"""
:param config:
:return:
"""
graphite = getattr(config, '_graphite', None)
if graphite:
del config._graphite
config.pluginmanager.unregister(graphite)
class GraphiteReport(object):
"""Graphite report implementation
"""
def __init__(self, config):
self.errors = self.failed = 0
self.passed = self.skipped = 0
self.xfailed = self.xpassed = 0
self.total = 0
self.config = config
self.host = config.getoption('stats_host')
self.port = config.getoption('stats_port')
self.prefix = config.getoption('stats_prefix')
self.suite_start_time = 0
def pytest_runtest_logreport(self, report):
"""Add report metrics
:param pytest.Report report: Test case report
:return:
"""
if report.passed:
self.append_passed(report)
elif report.failed:
self.append_failed(report)
elif report.skipped:
self.append_skipped(report)
def append_passed(self, report):
"""Add passed test metric
:param pytest.Report report: Test case report
:return:
"""
if report.when == 'call':
if hasattr(report, "wasxfail"):
self.xpassed += 1
else:
self.passed += 1
def append_failed(self, report):
"""Add failed test metric
:param pytest.Report report: Test case report
:return:
"""
if report.when == "call":
if hasattr(report, "wasxfail"):
self.xpassed += 1
else:
self.failed += 1
else:
self.errors += 1
def append_skipped(self, report):
"""Add skipped test metric
:param pytest.Report report: Test case report
:return:
"""
if hasattr(report, "wasxfail"):
self.xfailed += 1
else:
self.skipped += 1
def pytest_sessionstart(self, session):
"""before test run begins
:param pytest.Session session:
:return:
"""
self.suite_start_time = time.time()
def pytest_sessionfinish(self, session):
"""whole test run finishes
:param pytest.Session session:
:return:
"""
stats = statsd.StatsClient(self.host, self.port, prefix=self.prefix)
stats.gauge('passed', self.passed)
stats.gauge('skipped', self.skipped)
stats.gauge('failed', self.failed)
stats.gauge('errors', self.errors)
stats.gauge('xfailed', self.xfailed)
stats.gauge('xpassed', self.xpassed)
stats.gauge('total', sum([self.passed, self.skipped, self.failed,
self.errors, self.xfailed, self.xpassed]))
stats.gauge('aggregate_runs', 1, delta=True)
if sum([self.errors, self.failed]) == 0:
stats.gauge('aggregate_passing', 1, delta=True)
else:
stats.gauge('aggregate_failing', 1, delta=True)
duration = int((time.time() - self.suite_start_time) * 1000)
stats.timing('duration', duration)
def pytest_terminal_summary(self, terminalreporter):
"""add additional section in terminal summary reporting
:param terminalreporter:
:return:
"""
terminalreporter.write_sep('-', 'sent results to http://{}:{}'.format(self.host, self.port))
| [
1,
529,
276,
1112,
420,
29958,
29926,
25821,
29929,
29914,
2272,
1688,
29899,
16202,
29881,
29966,
9507,
29958,
2272,
1688,
29918,
16202,
29881,
29914,
8582,
29889,
2272,
13,
15945,
29908,
2272,
1688,
29918,
16202,
29881,
29889,
8582,
13,
13,
636,
775,
8921,
1057,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
13,
15945,
29908,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
5215,
931,
13,
5215,
1002,
4928,
13,
13,
13,
1753,
11451,
1688,
29918,
1202,
3385,
29898,
16680,
1125,
13,
1678,
9995,
13,
13,
1678,
584,
3207,
13812,
29901,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
13,
1678,
2318,
353,
13812,
29889,
657,
2972,
877,
8489,
979,
23415,
1495,
13,
1678,
2318,
29889,
1202,
3385,
877,
489,
16202,
29899,
29881,
742,
3158,
2433,
8899,
29918,
3009,
742,
13,
462,
1678,
1371,
2433,
6717,
1243,
2582,
304,
3983,
568,
1495,
13,
1678,
2318,
29889,
1202,
3385,
877,
489,
16202,
29899,
3069,
742,
3158,
2433,
8899,
742,
2731,
2433,
16202,
29918,
3069,
742,
13,
462,
1678,
1539,
485,
279,
2433,
3069,
742,
2322,
2433,
7640,
742,
13,
462,
1678,
1371,
2433,
16202,
29881,
3495,
29889,
2322,
338,
320,
29915,
7640,
20333,
1495,
13,
1678,
2318,
29889,
1202,
3385,
877,
489,
16202,
29899,
637,
742,
3158,
2433,
8899,
742,
2731,
2433,
16202,
29918,
637,
742,
13,
462,
1678,
1539,
485,
279,
2433,
637,
742,
2322,
29922,
29947,
29896,
29906,
29945,
29892,
13,
462,
1678,
1371,
2433,
16202,
29881,
2011,
29889,
2322,
338,
29871,
29947,
29896,
29906,
29945,
1495,
13,
1678,
2318,
29889,
1202,
3385,
877,
489,
16202,
29899,
13506,
742,
3158,
2433,
8899,
742,
2731,
2433,
16202,
29918,
13506,
742,
13,
462,
1678,
1539,
485,
279,
2433,
13506,
742,
2322,
29922,
8516,
29892,
13,
462,
1678,
1371,
2433,
13506,
304,
2367,
599,
22663,
1495,
13,
13,
13,
1753,
11451,
1688,
29918,
17591,
29898,
2917,
1125,
13,
1678,
9995,
13,
13,
1678,
584,
3207,
2295,
29901,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
13,
1678,
22663,
29918,
29881,
353,
2295,
29889,
657,
3385,
877,
16202,
29918,
29881,
1495,
13,
13,
1678,
396,
5557,
8718,
1002,
4928,
373,
19532,
7573,
313,
29916,
5721,
29897,
13,
1678,
565,
22663,
29918,
29881,
322,
451,
756,
5552,
29898,
2917,
29892,
525,
29879,
18398,
2080,
29374,
13,
4706,
2295,
3032,
4262,
568,
353,
12367,
568,
13020,
29898,
2917,
29897,
13,
4706,
2295,
29889,
8582,
12847,
29889,
9573,
29898,
2917,
3032,
4262,
568,
29897,
13,
13,
13,
1753,
11451,
1688,
29918,
348,
17591,
29898,
2917,
1125,
13,
1678,
9995,
13,
13,
1678,
584,
3207,
2295,
29901,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
13,
1678,
3983,
568,
353,
679,
5552,
29898,
2917,
29892,
22868,
4262,
568,
742,
6213,
29897,
13,
13,
1678,
565,
3983,
568,
29901,
13,
13,
4706,
628,
2295,
3032,
4262,
568,
13,
4706,
2295,
29889,
8582,
12847,
29889,
348,
9573,
29898,
4262,
568,
29897,
13,
13,
13,
1990,
12367,
568,
13020,
29898,
3318,
1125,
13,
1678,
9995,
9527,
568,
3461,
5314,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2295,
1125,
13,
13,
4706,
1583,
29889,
12523,
353,
1583,
29889,
26061,
353,
29871,
29900,
13,
4706,
1583,
29889,
3364,
287,
353,
1583,
29889,
2574,
2986,
353,
29871,
29900,
13,
4706,
1583,
29889,
29916,
26061,
353,
1583,
29889,
29916,
3364,
287,
353,
29871,
29900,
13,
4706,
1583,
29889,
7827,
353,
29871,
29900,
13,
13,
4706,
1583,
29889,
2917,
353,
2295,
13,
4706,
1583,
29889,
3069,
353,
2295,
29889,
657,
3385,
877,
16202,
29918,
3069,
1495,
13,
4706,
1583,
29889,
637,
353,
2295,
29889,
657,
3385,
877,
16202,
29918,
637,
1495,
13,
4706,
1583,
29889,
13506,
353,
2295,
29889,
657,
3385,
877,
16202,
29918,
13506,
1495,
13,
4706,
1583,
29889,
13495,
29918,
2962,
29918,
2230,
353,
29871,
29900,
13,
13,
1678,
822,
11451,
1688,
29918,
29878,
1657,
342,
29918,
1188,
12276,
29898,
1311,
29892,
3461,
1125,
13,
4706,
9995,
2528,
3461,
21556,
13,
13,
4706,
584,
3207,
11451,
1688,
29889,
13020,
3461,
29901,
4321,
1206,
3461,
13,
4706,
584,
2457,
29901,
13,
4706,
9995,
13,
13,
4706,
565,
3461,
29889,
3364,
287,
29901,
13,
9651,
1583,
29889,
4397,
29918,
3364,
287,
29898,
12276,
29897,
13,
13,
4706,
25342,
3461,
29889,
26061,
29901,
13,
9651,
1583,
29889,
4397,
29918,
26061,
29898,
12276,
29897,
13,
13,
4706,
25342,
3461,
29889,
2574,
2986,
29901,
13,
9651,
1583,
29889,
4397,
29918,
2574,
2986,
29898,
12276,
29897,
13,
13,
1678,
822,
9773,
29918,
3364,
287,
29898,
1311,
29892,
3461,
1125,
13,
4706,
9995,
2528,
4502,
1243,
12714,
13,
13,
4706,
584,
3207,
11451,
1688,
29889,
13020,
3461,
29901,
4321,
1206,
3461,
13,
4706,
584,
2457,
29901,
13,
4706,
9995,
13,
13,
4706,
565,
3461,
29889,
8256,
1275,
525,
4804,
2396,
13,
13,
9651,
565,
756,
5552,
29898,
12276,
29892,
376,
11102,
29916,
14057,
29908,
1125,
13,
18884,
1583,
29889,
29916,
3364,
287,
4619,
29871,
29896,
13,
13,
9651,
1683,
29901,
13,
18884,
1583,
29889,
3364,
287,
4619,
29871,
29896,
13,
13,
1678,
822,
9773,
29918,
26061,
29898,
1311,
29892,
3461,
1125,
13,
4706,
9995,
2528,
5229,
1243,
12714,
13,
13,
4706,
584,
3207,
11451,
1688,
29889,
13020,
3461,
29901,
4321,
1206,
3461,
13,
4706,
584,
2457,
29901,
13,
4706,
9995,
13,
13,
4706,
565,
3461,
29889,
8256,
1275,
376,
4804,
1115,
13,
13,
9651,
565,
756,
5552,
29898,
12276,
29892,
376,
11102,
29916,
14057,
29908,
1125,
13,
18884,
1583,
29889,
29916,
3364,
287,
4619,
29871,
29896,
13,
13,
9651,
1683,
29901,
13,
18884,
1583,
29889,
26061,
4619,
29871,
29896,
13,
13,
4706,
1683,
29901,
13,
9651,
1583,
29889,
12523,
4619,
29871,
29896,
13,
13,
1678,
822,
9773,
29918,
2574,
2986,
29898,
1311,
29892,
3461,
1125,
13,
4706,
9995,
2528,
14993,
2986,
1243,
12714,
13,
13,
4706,
584,
3207,
11451,
1688,
29889,
13020,
3461,
29901,
4321,
1206,
3461,
13,
4706,
584,
2457,
29901,
13,
4706,
9995,
13,
13,
4706,
565,
756,
5552,
29898,
12276,
29892,
376,
11102,
29916,
14057,
29908,
1125,
13,
9651,
1583,
29889,
29916,
26061,
4619,
29871,
29896,
13,
13,
4706,
1683,
29901,
13,
9651,
1583,
29889,
2574,
2986,
4619,
29871,
29896,
13,
13,
1678,
822,
11451,
1688,
29918,
7924,
2962,
29898,
1311,
29892,
4867,
1125,
13,
4706,
9995,
11083,
1243,
1065,
16410,
13,
13,
4706,
584,
3207,
11451,
1688,
29889,
7317,
4867,
29901,
13,
4706,
584,
2457,
29901,
13,
4706,
9995,
13,
13,
4706,
1583,
29889,
13495,
29918,
2962,
29918,
2230,
353,
931,
29889,
2230,
580,
13,
13,
1678,
822,
11451,
1688,
29918,
7924,
4951,
728,
29898,
1311,
29892,
4867,
1125,
13,
4706,
9995,
15970,
280,
1243,
1065,
8341,
267,
13,
13,
4706,
584,
3207,
11451,
1688,
29889,
7317,
4867,
29901,
13,
4706,
584,
2457,
29901,
13,
4706,
9995,
13,
13,
4706,
22663,
353,
1002,
4928,
29889,
25060,
4032,
29898,
1311,
29889,
3069,
29892,
1583,
29889,
637,
29892,
10944,
29922,
1311,
29889,
13506,
29897,
13,
4706,
22663,
29889,
29887,
585,
479,
877,
3364,
287,
742,
1583,
29889,
3364,
287,
29897,
13,
4706,
22663,
29889,
29887,
585,
479,
877,
2574,
2986,
742,
1583,
29889,
2574,
2986,
29897,
13,
4706,
22663,
29889,
29887,
585,
479,
877,
26061,
742,
1583,
29889,
26061,
29897,
13,
4706,
22663,
29889,
29887,
585,
479,
877,
12523,
742,
1583,
29889,
12523,
29897,
13,
4706,
22663,
29889,
29887,
585,
479,
877,
29916,
26061,
742,
1583,
29889,
29916,
26061,
29897,
13,
4706,
22663,
29889,
29887,
585,
479,
877,
29916,
3364,
287,
742,
1583,
29889,
29916,
3364,
287,
29897,
13,
4706,
22663,
29889,
29887,
585,
479,
877,
7827,
742,
2533,
4197,
1311,
29889,
3364,
287,
29892,
1583,
29889,
2574,
2986,
29892,
1583,
29889,
26061,
29892,
13,
462,
462,
29871,
1583,
29889,
12523,
29892,
1583,
29889,
29916,
26061,
29892,
1583,
29889,
29916,
3364,
287,
12622,
13,
4706,
22663,
29889,
29887,
585,
479,
877,
26193,
403,
29918,
3389,
29879,
742,
29871,
29896,
29892,
19471,
29922,
5574,
29897,
13,
13,
4706,
565,
2533,
4197,
1311,
29889,
12523,
29892,
1583,
29889,
26061,
2314,
1275,
29871,
29900,
29901,
13,
9651,
22663,
29889,
29887,
585,
479,
877,
26193,
403,
29918,
3364,
292,
742,
29871,
29896,
29892,
19471,
29922,
5574,
29897,
13,
13,
4706,
1683,
29901,
13,
9651,
22663,
29889,
29887,
585,
479,
877,
26193,
403,
29918,
14057,
292,
742,
29871,
29896,
29892,
19471,
29922,
5574,
29897,
13,
13,
4706,
14385,
353,
938,
3552,
2230,
29889,
2230,
580,
448,
1583,
29889,
13495,
29918,
2962,
29918,
2230,
29897,
334,
29871,
29896,
29900,
29900,
29900,
29897,
13,
4706,
22663,
29889,
9346,
292,
877,
19708,
742,
14385,
29897,
13,
13,
1678,
822,
11451,
1688,
29918,
8489,
979,
29918,
7727,
29898,
1311,
29892,
8638,
276,
18505,
1125,
13,
4706,
9995,
1202,
5684,
4004,
297,
8638,
15837,
23415,
13,
13,
4706,
584,
3207,
8638,
276,
18505,
29901,
13,
4706,
584,
2457,
29901,
13,
4706,
9995,
13,
13,
4706,
8638,
276,
18505,
29889,
3539,
29918,
19570,
877,
29899,
742,
525,
18616,
2582,
304,
1732,
597,
29912,
6177,
8875,
4286,
4830,
29898,
1311,
29889,
3069,
29892,
1583,
29889,
637,
876,
13,
2
] |
tools/yaml_config.py | brahim17/bud | 0 | 113244 | <gh_stars>0
import confuse as cf
def configure():
config = cf.Configuration('bud', __name__)
config.set_file('./config.yaml')
return config
def get_path():
cfg = configure()
return str(cfg["directory_path"])
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
1970,
1509,
408,
274,
29888,
13,
13,
13,
1753,
10822,
7295,
13,
1678,
2295,
353,
274,
29888,
29889,
8614,
877,
15841,
742,
4770,
978,
1649,
29897,
13,
1678,
2295,
29889,
842,
29918,
1445,
877,
6904,
2917,
29889,
25162,
1495,
13,
13,
1678,
736,
2295,
13,
13,
13,
1753,
679,
29918,
2084,
7295,
13,
1678,
274,
16434,
353,
10822,
580,
13,
1678,
736,
851,
29898,
16859,
3366,
12322,
29918,
2084,
20068,
13,
2
] |
analysis/Hayward/Scripts/.ipynb_checkpoints/project_functions-checkpoint.py | data301-2020-winter2/course-project-group_1000 | 0 | 162875 | import numpy as np
import pandas as pd
import seaborn as sns
import pandas_profiling as pdp
import matplotlib.pyplot as plt
def load_and_process(csv):
# Method Chain 1 (load data, rename columns, round values to 2 d.p. and sort 'Charges' descending)
df1 = (
pd.read_csv('Medical_Cost.csv')
.rename(columns = {'age': 'Age', 'sex': 'Gender', 'bmi': 'BMI', 'children': 'Children', 'smoker': 'Smoker', 'region': 'Region', 'charges': 'Charges'})
.round({'Charges': 2, 'BMI': 2})
.sort_values('Charges', ascending = False)
)
# Method Chain 2 (change yes/no to Y/N and regions to abbreviations)
df2 = (
df1
.replace({'yes': 'Y', 'no': 'N'})
.replace({'southwest': 'SW', 'southeast': 'SE', 'northeast': 'NE', 'northwest': 'NW'})
)
# return values
return df2
| [
1,
1053,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
5215,
409,
370,
1398,
408,
269,
1983,
13,
5215,
11701,
29918,
771,
1777,
292,
408,
282,
6099,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
1753,
2254,
29918,
392,
29918,
5014,
29898,
7638,
1125,
13,
1678,
396,
8108,
678,
475,
29871,
29896,
313,
1359,
848,
29892,
19508,
4341,
29892,
4513,
1819,
304,
29871,
29906,
270,
29889,
29886,
29889,
322,
2656,
525,
1451,
1191,
267,
29915,
5153,
2548,
29897,
13,
1678,
4489,
29896,
353,
313,
13,
4706,
10518,
29889,
949,
29918,
7638,
877,
19302,
936,
29918,
25733,
29889,
7638,
1495,
13,
4706,
869,
1267,
420,
29898,
13099,
353,
11117,
482,
2396,
525,
22406,
742,
525,
14167,
2396,
525,
29954,
1581,
742,
525,
29890,
2460,
2396,
525,
29933,
10403,
742,
525,
11991,
2396,
525,
19334,
742,
525,
3844,
17933,
2396,
525,
12636,
17933,
742,
525,
12803,
2396,
525,
18457,
742,
525,
25389,
267,
2396,
525,
1451,
1191,
267,
29915,
1800,
13,
4706,
869,
14486,
3319,
29915,
1451,
1191,
267,
2396,
29871,
29906,
29892,
525,
29933,
10403,
2396,
29871,
29906,
1800,
13,
4706,
869,
6605,
29918,
5975,
877,
1451,
1191,
267,
742,
12066,
2548,
353,
7700,
29897,
13,
1678,
1723,
13,
268,
13,
1678,
396,
8108,
678,
475,
29871,
29906,
313,
3167,
4874,
29914,
1217,
304,
612,
29914,
29940,
322,
12786,
304,
29759,
1403,
800,
29897,
13,
1678,
4489,
29906,
353,
313,
13,
4706,
4489,
29896,
13,
4706,
869,
6506,
3319,
29915,
3582,
2396,
525,
29979,
742,
525,
1217,
2396,
525,
29940,
29915,
1800,
13,
4706,
869,
6506,
3319,
29915,
29879,
2438,
5933,
2396,
525,
23066,
742,
525,
29879,
449,
15879,
2396,
525,
1660,
742,
525,
29876,
27374,
2396,
525,
8186,
742,
525,
29876,
2072,
5933,
2396,
525,
29940,
29956,
29915,
1800,
13,
1678,
1723,
13,
268,
13,
1678,
396,
736,
1819,
13,
1678,
736,
4489,
29906,
13,
2
] |
tests/python/pants_test/backend/jvm/tasks/jvm_compile/java/test_cache_compile_integration.py | qma/pants | 0 | 156424 | <gh_stars>0
# coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
from textwrap import dedent
from pants.backend.jvm.tasks.jvm_compile.zinc.zinc_compile import ZincCompile
from pants.base.build_environment import get_buildroot
from pants.util.contextutil import temporary_dir
from pants.util.dirutil import safe_open
from pants_test.backend.jvm.tasks.jvm_compile.base_compile_integration_test import BaseCompileIT
class CacheCompileIntegrationTest(BaseCompileIT):
def run_compile(self, target_spec, config, workdir):
args = ['compile', target_spec]
pants_run = self.run_pants_with_workdir(args, workdir, config)
self.assert_success(pants_run)
def create_file(self, path, value):
with safe_open(path, 'w') as f:
f.write(value)
def test_stale_artifacts_rmd_when_cache_used_with_zinc(self):
with temporary_dir() as cache_dir, \
self.temporary_workdir() as workdir, \
temporary_dir(root_dir=get_buildroot()) as src_dir:
config = {
'cache.compile.zinc': {'write_to': [cache_dir], 'read_from': [cache_dir]},
'compile.zinc': {'incremental_caching': True },
}
srcfile = os.path.join(src_dir, 'org', 'pantsbuild', 'cachetest', 'A.java')
buildfile = os.path.join(src_dir, 'org', 'pantsbuild', 'cachetest', 'BUILD')
self.create_file(srcfile,
dedent("""package org.pantsbuild.cachetest;
class A {}
class Main {}"""))
self.create_file(buildfile,
dedent("""java_library(name='cachetest',
sources=['A.java']
)"""))
cachetest_spec = os.path.join(os.path.basename(src_dir), 'org', 'pantsbuild',
'cachetest:cachetest')
# Caches values A.class, Main.class
self.run_compile(cachetest_spec, config, workdir)
self.create_file(srcfile,
dedent("""package org.pantsbuild.cachetest;
class A {}
class NotMain {}"""))
# Caches values A.class, NotMain.class and leaves them on the filesystem
self.run_compile(cachetest_spec, config, workdir)
self.create_file(srcfile,
dedent("""package org.pantsbuild.cachetest;
class A {}
class Main {}"""))
# Should cause NotMain.class to be removed
self.run_compile(cachetest_spec, config, workdir)
root = os.path.join(workdir, 'compile', 'jvm', 'zinc')
# One target.
self.assertEqual(len(os.listdir(root)), 1)
target_workdir_root = os.path.join(root, os.listdir(root)[0])
target_workdirs = os.listdir(target_workdir_root)
# Two workdirs.
self.assertEqual(len(target_workdirs), 2)
def classfiles(d):
cd = os.path.join(target_workdir_root, d, 'classes', 'org', 'pantsbuild', 'cachetest')
return sorted(os.listdir(cd))
# One workdir should contain NotMain, and the other should contain Main.
self.assertEquals(sorted(classfiles(w) for w in target_workdirs),
sorted([['A.class', 'Main.class'], ['A.class', 'NotMain.class']]))
def test_incremental_caching(self):
"""Tests that with --no-incremental-caching, we don't write incremental artifacts."""
with temporary_dir() as cache_dir, \
self.temporary_workdir() as workdir, \
temporary_dir(root_dir=get_buildroot()) as src_dir:
def config(incremental_caching):
return {
'cache.compile.zinc': {'write_to': [cache_dir], 'read_from': [cache_dir]},
'compile.zinc': {'incremental_caching': incremental_caching},
}
srcfile = os.path.join(src_dir, 'A.java')
buildfile = os.path.join(src_dir, 'BUILD')
spec = os.path.join(src_dir, ':cachetest')
artifact_dir = os.path.join(cache_dir,
ZincCompile.stable_name(),
'{}.cachetest'.format(os.path.basename(src_dir)))
self.create_file(srcfile, """class A {}""")
self.create_file(buildfile, """java_library(name='cachetest', sources=['A.java'])""")
# Confirm that the result is one cached artifact.
self.run_compile(spec, config(False), workdir)
clean_artifacts = os.listdir(artifact_dir)
self.assertEquals(1, len(clean_artifacts))
# Modify the file, and confirm that artifacts haven't changed.
self.create_file(srcfile, """final class A {}""")
self.run_compile(spec, config(False), workdir)
self.assertEquals(clean_artifacts, os.listdir(artifact_dir))
# Modify again, this time with incremental and confirm that we have a second artifact.
self.create_file(srcfile, """public final class A {}""")
self.run_compile(spec, config(True), workdir)
self.assertEquals(2, len(os.listdir(artifact_dir)))
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29945,
349,
1934,
2060,
17737,
29560,
313,
4149,
8707,
29911,
3960,
29933,
2692,
24125,
29889,
3487,
467,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
4149,
365,
2965,
1430,
1660,
467,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
313,
23552,
29918,
5215,
29892,
8542,
29892,
1176,
4097,
29892,
9322,
29918,
21785,
267,
29892,
1596,
29918,
2220,
29892,
13,
462,
4706,
29104,
29918,
20889,
1338,
29892,
411,
29918,
20788,
29897,
13,
13,
5215,
2897,
13,
3166,
1426,
6312,
1053,
28262,
296,
13,
13,
3166,
282,
1934,
29889,
27852,
29889,
29926,
6925,
29889,
20673,
29889,
29926,
6925,
29918,
12198,
29889,
29920,
3742,
29889,
29920,
3742,
29918,
12198,
1053,
796,
3742,
6843,
488,
13,
3166,
282,
1934,
29889,
3188,
29889,
4282,
29918,
20944,
1053,
679,
29918,
4282,
4632,
13,
3166,
282,
1934,
29889,
4422,
29889,
4703,
4422,
1053,
13201,
29918,
3972,
13,
3166,
282,
1934,
29889,
4422,
29889,
3972,
4422,
1053,
9109,
29918,
3150,
13,
3166,
282,
1934,
29918,
1688,
29889,
27852,
29889,
29926,
6925,
29889,
20673,
29889,
29926,
6925,
29918,
12198,
29889,
3188,
29918,
12198,
29918,
27925,
29918,
1688,
1053,
7399,
6843,
488,
1806,
13,
13,
13,
1990,
28540,
6843,
488,
23573,
362,
3057,
29898,
5160,
6843,
488,
1806,
1125,
13,
29871,
822,
1065,
29918,
12198,
29898,
1311,
29892,
3646,
29918,
6550,
29892,
2295,
29892,
664,
3972,
1125,
13,
1678,
6389,
353,
6024,
12198,
742,
3646,
29918,
6550,
29962,
13,
1678,
282,
1934,
29918,
3389,
353,
1583,
29889,
3389,
29918,
29886,
1934,
29918,
2541,
29918,
1287,
3972,
29898,
5085,
29892,
664,
3972,
29892,
2295,
29897,
13,
1678,
1583,
29889,
9294,
29918,
8698,
29898,
29886,
1934,
29918,
3389,
29897,
13,
13,
29871,
822,
1653,
29918,
1445,
29898,
1311,
29892,
2224,
29892,
995,
1125,
13,
1678,
411,
9109,
29918,
3150,
29898,
2084,
29892,
525,
29893,
1495,
408,
285,
29901,
13,
418,
285,
29889,
3539,
29898,
1767,
29897,
13,
13,
29871,
822,
1243,
29918,
303,
744,
29918,
8813,
29879,
29918,
1758,
29881,
29918,
8256,
29918,
8173,
29918,
3880,
29918,
2541,
29918,
29920,
3742,
29898,
1311,
1125,
13,
1678,
411,
13201,
29918,
3972,
580,
408,
7090,
29918,
3972,
29892,
320,
13,
4706,
1583,
29889,
1356,
1971,
653,
29918,
1287,
3972,
580,
408,
664,
3972,
29892,
320,
13,
4706,
13201,
29918,
3972,
29898,
4632,
29918,
3972,
29922,
657,
29918,
4282,
4632,
3101,
408,
4765,
29918,
3972,
29901,
13,
13,
418,
2295,
353,
426,
13,
4706,
525,
8173,
29889,
12198,
29889,
29920,
3742,
2396,
11117,
3539,
29918,
517,
2396,
518,
8173,
29918,
3972,
1402,
525,
949,
29918,
3166,
2396,
518,
8173,
29918,
3972,
29962,
1118,
13,
4706,
525,
12198,
29889,
29920,
3742,
2396,
11117,
25629,
284,
29918,
29883,
9733,
2396,
5852,
2981,
13,
418,
500,
13,
13,
418,
4765,
1445,
353,
2897,
29889,
2084,
29889,
7122,
29898,
4351,
29918,
3972,
29892,
525,
990,
742,
525,
29886,
1934,
4282,
742,
525,
29883,
496,
300,
342,
742,
525,
29909,
29889,
1645,
1495,
13,
418,
2048,
1445,
353,
2897,
29889,
2084,
29889,
7122,
29898,
4351,
29918,
3972,
29892,
525,
990,
742,
525,
29886,
1934,
4282,
742,
525,
29883,
496,
300,
342,
742,
525,
29933,
25282,
1495,
13,
13,
418,
1583,
29889,
3258,
29918,
1445,
29898,
4351,
1445,
29892,
13,
462,
539,
28262,
296,
703,
15945,
5113,
1638,
29889,
29886,
1934,
4282,
29889,
29883,
496,
300,
342,
29936,
13,
462,
3986,
770,
319,
6571,
13,
462,
3986,
770,
4241,
426,
5038,
29908,
5783,
13,
418,
1583,
29889,
3258,
29918,
1445,
29898,
4282,
1445,
29892,
13,
462,
539,
28262,
296,
703,
15945,
1645,
29918,
5258,
29898,
978,
2433,
29883,
496,
300,
342,
742,
13,
462,
462,
539,
8974,
29922,
1839,
29909,
29889,
1645,
2033,
13,
462,
3986,
1723,
15945,
5783,
13,
13,
418,
274,
496,
300,
342,
29918,
6550,
353,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
6500,
3871,
29898,
4351,
29918,
3972,
511,
525,
990,
742,
525,
29886,
1934,
4282,
742,
13,
462,
462,
1678,
525,
29883,
496,
300,
342,
29901,
29883,
496,
300,
342,
1495,
13,
13,
418,
396,
315,
14520,
1819,
319,
29889,
1990,
29892,
4241,
29889,
1990,
13,
418,
1583,
29889,
3389,
29918,
12198,
29898,
29883,
496,
300,
342,
29918,
6550,
29892,
2295,
29892,
664,
3972,
29897,
13,
13,
418,
1583,
29889,
3258,
29918,
1445,
29898,
4351,
1445,
29892,
13,
462,
539,
28262,
296,
703,
15945,
5113,
1638,
29889,
29886,
1934,
4282,
29889,
29883,
496,
300,
342,
29936,
13,
462,
9651,
770,
319,
6571,
13,
462,
9651,
770,
2216,
6330,
426,
5038,
29908,
5783,
13,
418,
396,
315,
14520,
1819,
319,
29889,
1990,
29892,
2216,
6330,
29889,
1990,
322,
11308,
963,
373,
278,
22101,
13,
418,
1583,
29889,
3389,
29918,
12198,
29898,
29883,
496,
300,
342,
29918,
6550,
29892,
2295,
29892,
664,
3972,
29897,
13,
13,
418,
1583,
29889,
3258,
29918,
1445,
29898,
4351,
1445,
29892,
13,
462,
539,
28262,
296,
703,
15945,
5113,
1638,
29889,
29886,
1934,
4282,
29889,
29883,
496,
300,
342,
29936,
13,
462,
3986,
770,
319,
6571,
13,
462,
3986,
770,
4241,
426,
5038,
29908,
5783,
13,
13,
418,
396,
10575,
4556,
2216,
6330,
29889,
1990,
304,
367,
6206,
13,
418,
1583,
29889,
3389,
29918,
12198,
29898,
29883,
496,
300,
342,
29918,
6550,
29892,
2295,
29892,
664,
3972,
29897,
13,
13,
418,
3876,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1287,
3972,
29892,
525,
12198,
742,
525,
29926,
6925,
742,
525,
29920,
3742,
1495,
13,
418,
396,
3118,
3646,
29889,
13,
418,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
359,
29889,
1761,
3972,
29898,
4632,
8243,
29871,
29896,
29897,
13,
418,
3646,
29918,
1287,
3972,
29918,
4632,
353,
2897,
29889,
2084,
29889,
7122,
29898,
4632,
29892,
2897,
29889,
1761,
3972,
29898,
4632,
9601,
29900,
2314,
13,
418,
3646,
29918,
1287,
3972,
29879,
353,
2897,
29889,
1761,
3972,
29898,
5182,
29918,
1287,
3972,
29918,
4632,
29897,
13,
418,
396,
7803,
664,
3972,
29879,
29889,
13,
418,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
5182,
29918,
1287,
3972,
29879,
511,
29871,
29906,
29897,
13,
13,
418,
822,
770,
5325,
29898,
29881,
1125,
13,
4706,
14965,
353,
2897,
29889,
2084,
29889,
7122,
29898,
5182,
29918,
1287,
3972,
29918,
4632,
29892,
270,
29892,
525,
13203,
742,
525,
990,
742,
525,
29886,
1934,
4282,
742,
525,
29883,
496,
300,
342,
1495,
13,
4706,
736,
12705,
29898,
359,
29889,
1761,
3972,
29898,
2252,
876,
13,
13,
418,
396,
3118,
664,
3972,
881,
1712,
2216,
6330,
29892,
322,
278,
916,
881,
1712,
4241,
29889,
13,
418,
1583,
29889,
9294,
14776,
29898,
24582,
29898,
1990,
5325,
29898,
29893,
29897,
363,
281,
297,
3646,
29918,
1287,
3972,
29879,
511,
13,
462,
4706,
12705,
4197,
1839,
29909,
29889,
1990,
742,
525,
6330,
29889,
1990,
7464,
6024,
29909,
29889,
1990,
742,
525,
3664,
6330,
29889,
1990,
2033,
12622,
13,
13,
29871,
822,
1243,
29918,
25629,
284,
29918,
29883,
9733,
29898,
1311,
1125,
13,
1678,
9995,
24376,
393,
411,
1192,
1217,
29899,
25629,
284,
29899,
29883,
9733,
29892,
591,
1016,
29915,
29873,
2436,
11924,
284,
24238,
29879,
1213,
15945,
13,
1678,
411,
13201,
29918,
3972,
580,
408,
7090,
29918,
3972,
29892,
320,
13,
4706,
1583,
29889,
1356,
1971,
653,
29918,
1287,
3972,
580,
408,
664,
3972,
29892,
320,
13,
4706,
13201,
29918,
3972,
29898,
4632,
29918,
3972,
29922,
657,
29918,
4282,
4632,
3101,
408,
4765,
29918,
3972,
29901,
13,
13,
418,
822,
2295,
29898,
25629,
284,
29918,
29883,
9733,
1125,
13,
4706,
736,
426,
13,
3986,
525,
8173,
29889,
12198,
29889,
29920,
3742,
2396,
11117,
3539,
29918,
517,
2396,
518,
8173,
29918,
3972,
1402,
525,
949,
29918,
3166,
2396,
518,
8173,
29918,
3972,
29962,
1118,
13,
3986,
525,
12198,
29889,
29920,
3742,
2396,
11117,
25629,
284,
29918,
29883,
9733,
2396,
11924,
284,
29918,
29883,
9733,
1118,
13,
4706,
500,
13,
13,
418,
4765,
1445,
353,
2897,
29889,
2084,
29889,
7122,
29898,
4351,
29918,
3972,
29892,
525,
29909,
29889,
1645,
1495,
13,
418,
2048,
1445,
353,
2897,
29889,
2084,
29889,
7122,
29898,
4351,
29918,
3972,
29892,
525,
29933,
25282,
1495,
13,
418,
1580,
353,
2897,
29889,
2084,
29889,
7122,
29898,
4351,
29918,
3972,
29892,
525,
29901,
29883,
496,
300,
342,
1495,
13,
418,
24238,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
8173,
29918,
3972,
29892,
13,
462,
462,
29871,
796,
3742,
6843,
488,
29889,
13844,
29918,
978,
3285,
13,
462,
462,
29871,
22372,
1836,
29883,
496,
300,
342,
4286,
4830,
29898,
359,
29889,
2084,
29889,
6500,
3871,
29898,
4351,
29918,
3972,
4961,
13,
13,
418,
1583,
29889,
3258,
29918,
1445,
29898,
4351,
1445,
29892,
9995,
1990,
319,
426,
5038,
29908,
1159,
13,
418,
1583,
29889,
3258,
29918,
1445,
29898,
4282,
1445,
29892,
9995,
1645,
29918,
5258,
29898,
978,
2433,
29883,
496,
300,
342,
742,
8974,
29922,
1839,
29909,
29889,
1645,
2033,
5513,
29908,
1159,
13,
13,
13,
418,
396,
10811,
3568,
393,
278,
1121,
338,
697,
22152,
24238,
29889,
13,
418,
1583,
29889,
3389,
29918,
12198,
29898,
6550,
29892,
2295,
29898,
8824,
511,
664,
3972,
29897,
13,
418,
5941,
29918,
8813,
29879,
353,
2897,
29889,
1761,
3972,
29898,
8813,
29918,
3972,
29897,
13,
418,
1583,
29889,
9294,
14776,
29898,
29896,
29892,
7431,
29898,
14941,
29918,
8813,
29879,
876,
13,
13,
418,
396,
3382,
1598,
278,
934,
29892,
322,
9659,
393,
24238,
29879,
7359,
29915,
29873,
3939,
29889,
13,
418,
1583,
29889,
3258,
29918,
1445,
29898,
4351,
1445,
29892,
9995,
8394,
770,
319,
426,
5038,
29908,
1159,
13,
418,
1583,
29889,
3389,
29918,
12198,
29898,
6550,
29892,
2295,
29898,
8824,
511,
664,
3972,
29897,
13,
418,
1583,
29889,
9294,
14776,
29898,
14941,
29918,
8813,
29879,
29892,
2897,
29889,
1761,
3972,
29898,
8813,
29918,
3972,
876,
13,
13,
418,
396,
3382,
1598,
1449,
29892,
445,
931,
411,
11924,
284,
322,
9659,
393,
591,
505,
263,
1473,
24238,
29889,
13,
418,
1583,
29889,
3258,
29918,
1445,
29898,
4351,
1445,
29892,
9995,
3597,
2186,
770,
319,
426,
5038,
29908,
1159,
13,
418,
1583,
29889,
3389,
29918,
12198,
29898,
6550,
29892,
2295,
29898,
5574,
511,
664,
3972,
29897,
13,
418,
1583,
29889,
9294,
14776,
29898,
29906,
29892,
7431,
29898,
359,
29889,
1761,
3972,
29898,
8813,
29918,
3972,
4961,
13,
2
] |
cumulusci/robotframework/locators_53.py | davisagli/CumulusCI | 0 | 188320 | <gh_stars>0
import copy
from cumulusci.robotframework import locators_52
lex_locators = copy.deepcopy(locators_52.lex_locators)
lex_locators["object_list"] = {
# Note: this matches the <td> with the checkbutton, not the inner checkbutton
# This is because clicking the actual checkbutton will throw an error that
# another element will receive the click.
"checkbutton": '//tbody/tr[.//*[text()="{}"]]//td[.//input[@type="checkbox"]]',
"status_info": "//force-list-view-manager-status-info",
}
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
3509,
13,
13,
3166,
13299,
14999,
455,
29889,
307,
7451,
4468,
1053,
1180,
4097,
29918,
29945,
29906,
13,
13,
2506,
29918,
2029,
4097,
353,
3509,
29889,
24535,
8552,
29898,
2029,
4097,
29918,
29945,
29906,
29889,
2506,
29918,
2029,
4097,
29897,
13,
2506,
29918,
2029,
4097,
3366,
3318,
29918,
1761,
3108,
353,
426,
13,
1678,
396,
3940,
29901,
445,
7087,
278,
529,
1594,
29958,
411,
278,
1423,
3092,
29892,
451,
278,
6426,
1423,
3092,
13,
1678,
396,
910,
338,
1363,
14855,
278,
3935,
1423,
3092,
674,
3183,
385,
1059,
393,
13,
1678,
396,
1790,
1543,
674,
7150,
278,
2828,
29889,
13,
1678,
376,
3198,
3092,
1115,
525,
458,
15370,
29914,
509,
29961,
29889,
458,
29930,
29961,
726,
580,
543,
8875,
3108,
29962,
458,
1594,
29961,
29889,
458,
2080,
17548,
1853,
543,
12348,
3108,
29962,
742,
13,
1678,
376,
4882,
29918,
3888,
1115,
376,
458,
10118,
29899,
1761,
29899,
1493,
29899,
12847,
29899,
4882,
29899,
3888,
613,
13,
29913,
13,
2
] |
backend/admin/views/__init__.py | gsw945/flask-bigger | 29 | 41709 | # -*- coding: utf-8 -*-
'''admin视图''' | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
12008,
6406,
31568,
30861,
12008,
2
] |
tests/test_pinblock.py | adelosa/cardutil | 0 | 29684 | <gh_stars>0
import unittest
from cardutil import pinblock
class PinblockTestCase(unittest.TestCase):
def test_pin_block_Iso0(self):
self.assertEqual(
b'\x04\x12\x26\xcb\xa9\x87\x6f\xed',
pinblock.Iso0PinBlock(pin='1234', card_number='4441234567890123').to_bytes())
def test_visa_pvv(self):
test_key = '5CA64B3C22BEC347CA7E6609904BAAED'
self.assertEqual(
'3856', pinblock.calculate_pvv(pin='2205', card_number='4564320000980369', pvv_key=test_key, key_index=1))
def test_visa_pvv_more_values_required(self):
"""
check when additional digits for pvv required
"""
test_key = '5CA64B3C22BEC347CA7E6609904BAAED'
self.assertEqual(
'0885', pinblock.calculate_pvv(pin='0654', card_number='4564320000980369', pvv_key=test_key, key_index=1))
def test_visa_pvv_mixin(self):
# use pin block without card_number property
MyPinBlock = type('MyPinBlock', (pinblock.Iso4PinBlock, pinblock.VisaPVVPinBlockMixin), {})
pb = MyPinBlock(pin='6666')
with self.assertRaises(ValueError):
pb.to_pvv(pvv_key='00' * 8)
self.assertEqual(pb.to_pvv(pvv_key='00' * 8, card_number='1111222233334444'), '1703')
def test_pin_block_Iso0TDESPinBlockWithVisaPVV(self):
pb1 = pinblock.Iso0TDESPinBlockWithVisaPVV(pin='1234', card_number='1111222233334444')
self.assertEqual(pb1.pin, '1234')
self.assertEqual(pb1.card_number, '1111222233334444')
self.assertEqual(pb1.to_bytes(), b'\x04\x12&\xdd\xdc\xcc\xcb\xbb')
self.assertEqual(pb1.to_enc_bytes(key='00' * 16), b'L\t\x06\xd1\x03\x08\x87\x1a')
self.assertEqual(pb1.to_pvv(pvv_key='00' * 16), '6264')
pb2 = pinblock.Iso0TDESPinBlockWithVisaPVV.from_bytes(
pin_block=pb1.to_bytes(), card_number='1111222233334444')
self.assertEqual(pb2.pin, '1234')
pb3 = pinblock.Iso0TDESPinBlockWithVisaPVV.from_enc_bytes(
enc_pin_block=pb1.to_enc_bytes('00' * 16), card_number='1111222233334444', key='00' * 16)
self.assertEqual(pb3.pin, '1234')
def test_pin_block_Iso4AESPinBlockWithVisaPVV(self):
pb1 = pinblock.Iso4AESPinBlockWithVisaPVV(pin='1234', random_value=14932500169729639426)
self.assertEqual(pb1.pin, '1234')
self.assertEqual(pb1.to_bytes()[0:8], b'\x44\x12\x34\xaa\xaa\xaa\xaa\xaa')
self.assertEqual(pb1.to_enc_bytes(key='00' * 16), b',4yaY\xbf\x10j\xf6\xf5\xd2;Y\xfd\xe2\xfe')
self.assertEqual(pb1.to_pvv(pvv_key='00' * 16, card_number='1111222233334444'), '6264')
pb2 = pinblock.Iso4AESPinBlockWithVisaPVV.from_bytes(pin_block=pb1.to_bytes())
self.assertEqual(pb2.pin, '1234')
pb3 = pinblock.Iso4AESPinBlockWithVisaPVV.from_enc_bytes(
enc_pin_block=pb1.to_enc_bytes('00' * 16), key='00' * 16)
self.assertEqual(pb3.pin, '1234')
def test_pinblock_operations(self):
tdes_key = '2222111122221111'
aes_key = tdes_key * 2
key = aes_key
pin_blocks = [
type(
'TDESPinBlock',
(pinblock.Iso0PinBlock, pinblock.TdesEncryptedPinBlockMixin, pinblock.VisaPVVPinBlockMixin), {}),
type(
'AESPinBlock',
(pinblock.Iso4PinBlock, pinblock.AESEncryptedPinBlockMixin, pinblock.VisaPVVPinBlockMixin), {}),
pinblock.Iso0TDESPinBlockWithVisaPVV,
pinblock.Iso4AESPinBlockWithVisaPVV
]
for pb in pin_blocks:
print(pb)
pb = pb(pin='1234', card_number='1111222233334444')
self.assertEqual(pb.pin, '1234')
self.assertEqual(pb.to_pvv(pvv_key='1111222211112222', key_index=1, card_number='1111222233334444'), '9595')
pb2 = pb.from_bytes(pb.to_bytes(), card_number='1111222233334444')
self.assertEqual(pb2.pin, '1234')
pb2 = pb.from_enc_bytes(pb.to_enc_bytes(key=key), key=key, card_number='1111222233334444')
self.assertEqual(pb2.pin, '1234')
if __name__ == '__main__':
unittest.main()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
443,
27958,
13,
13,
3166,
5881,
4422,
1053,
12534,
1271,
13,
13,
13,
1990,
17434,
1271,
3057,
8259,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
12687,
29918,
1271,
29918,
29902,
578,
29900,
29898,
1311,
1125,
13,
4706,
1583,
29889,
9294,
9843,
29898,
13,
9651,
289,
12764,
29916,
29900,
29946,
29905,
29916,
29896,
29906,
29905,
29916,
29906,
29953,
29905,
29916,
10702,
29905,
17367,
29929,
29905,
29916,
29947,
29955,
29905,
29916,
29953,
29888,
29905,
29916,
287,
742,
13,
9651,
12534,
1271,
29889,
29902,
578,
29900,
29925,
262,
7445,
29898,
12687,
2433,
29896,
29906,
29941,
29946,
742,
5881,
29918,
4537,
2433,
29946,
29946,
29946,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29929,
29900,
29896,
29906,
29941,
2824,
517,
29918,
13193,
3101,
13,
13,
1678,
822,
1243,
29918,
1730,
29874,
29918,
29886,
29894,
29894,
29898,
1311,
1125,
13,
4706,
1243,
29918,
1989,
353,
525,
29945,
5454,
29953,
29946,
29933,
29941,
29907,
29906,
29906,
29933,
11206,
29941,
29946,
29955,
5454,
29955,
29923,
29953,
29953,
29900,
29929,
29929,
29900,
29946,
5688,
29909,
3352,
29915,
13,
4706,
1583,
29889,
9294,
9843,
29898,
13,
9651,
525,
29941,
29947,
29945,
29953,
742,
12534,
1271,
29889,
15807,
403,
29918,
29886,
29894,
29894,
29898,
12687,
2433,
29906,
29906,
29900,
29945,
742,
5881,
29918,
4537,
2433,
29946,
29945,
29953,
29946,
29941,
29906,
29900,
29900,
29900,
29900,
29929,
29947,
29900,
29941,
29953,
29929,
742,
282,
29894,
29894,
29918,
1989,
29922,
1688,
29918,
1989,
29892,
1820,
29918,
2248,
29922,
29896,
876,
13,
13,
1678,
822,
1243,
29918,
1730,
29874,
29918,
29886,
29894,
29894,
29918,
5514,
29918,
5975,
29918,
12403,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
1423,
746,
5684,
13340,
363,
282,
29894,
29894,
3734,
13,
4706,
9995,
13,
4706,
1243,
29918,
1989,
353,
525,
29945,
5454,
29953,
29946,
29933,
29941,
29907,
29906,
29906,
29933,
11206,
29941,
29946,
29955,
5454,
29955,
29923,
29953,
29953,
29900,
29929,
29929,
29900,
29946,
5688,
29909,
3352,
29915,
13,
4706,
1583,
29889,
9294,
9843,
29898,
13,
9651,
525,
29900,
29947,
29947,
29945,
742,
12534,
1271,
29889,
15807,
403,
29918,
29886,
29894,
29894,
29898,
12687,
2433,
29900,
29953,
29945,
29946,
742,
5881,
29918,
4537,
2433,
29946,
29945,
29953,
29946,
29941,
29906,
29900,
29900,
29900,
29900,
29929,
29947,
29900,
29941,
29953,
29929,
742,
282,
29894,
29894,
29918,
1989,
29922,
1688,
29918,
1989,
29892,
1820,
29918,
2248,
29922,
29896,
876,
13,
13,
1678,
822,
1243,
29918,
1730,
29874,
29918,
29886,
29894,
29894,
29918,
28084,
262,
29898,
1311,
1125,
13,
4706,
396,
671,
12534,
2908,
1728,
5881,
29918,
4537,
2875,
13,
4706,
1619,
29925,
262,
7445,
353,
1134,
877,
3421,
29925,
262,
7445,
742,
313,
12687,
1271,
29889,
29902,
578,
29946,
29925,
262,
7445,
29892,
12534,
1271,
29889,
6116,
29874,
29925,
29963,
18510,
262,
7445,
29924,
861,
262,
511,
426,
1800,
13,
4706,
282,
29890,
353,
1619,
29925,
262,
7445,
29898,
12687,
2433,
29953,
29953,
29953,
29953,
1495,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
1125,
13,
9651,
282,
29890,
29889,
517,
29918,
29886,
29894,
29894,
29898,
29886,
29894,
29894,
29918,
1989,
2433,
29900,
29900,
29915,
334,
29871,
29947,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29889,
517,
29918,
29886,
29894,
29894,
29898,
29886,
29894,
29894,
29918,
1989,
2433,
29900,
29900,
29915,
334,
29871,
29947,
29892,
5881,
29918,
4537,
2433,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29941,
29941,
29941,
29941,
29946,
29946,
29946,
29946,
5477,
525,
29896,
29955,
29900,
29941,
1495,
13,
13,
1678,
822,
1243,
29918,
12687,
29918,
1271,
29918,
29902,
578,
29900,
29911,
2287,
5550,
262,
7445,
3047,
6116,
29874,
29925,
29963,
29963,
29898,
1311,
1125,
13,
4706,
282,
29890,
29896,
353,
12534,
1271,
29889,
29902,
578,
29900,
29911,
2287,
5550,
262,
7445,
3047,
6116,
29874,
29925,
29963,
29963,
29898,
12687,
2433,
29896,
29906,
29941,
29946,
742,
5881,
29918,
4537,
2433,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29941,
29941,
29941,
29941,
29946,
29946,
29946,
29946,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29896,
29889,
12687,
29892,
525,
29896,
29906,
29941,
29946,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29896,
29889,
7543,
29918,
4537,
29892,
525,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29941,
29941,
29941,
29941,
29946,
29946,
29946,
29946,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29896,
29889,
517,
29918,
13193,
3285,
289,
12764,
29916,
29900,
29946,
29905,
29916,
29896,
29906,
11035,
29916,
1289,
29905,
29916,
13891,
29905,
29916,
617,
29905,
29916,
10702,
29905,
29916,
1327,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29896,
29889,
517,
29918,
3977,
29918,
13193,
29898,
1989,
2433,
29900,
29900,
29915,
334,
29871,
29896,
29953,
511,
289,
29915,
29931,
29905,
29873,
29905,
29916,
29900,
29953,
29905,
29916,
29881,
29896,
29905,
29916,
29900,
29941,
29905,
29916,
29900,
29947,
29905,
29916,
29947,
29955,
29905,
29916,
29896,
29874,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29896,
29889,
517,
29918,
29886,
29894,
29894,
29898,
29886,
29894,
29894,
29918,
1989,
2433,
29900,
29900,
29915,
334,
29871,
29896,
29953,
511,
525,
29953,
29906,
29953,
29946,
1495,
13,
13,
4706,
282,
29890,
29906,
353,
12534,
1271,
29889,
29902,
578,
29900,
29911,
2287,
5550,
262,
7445,
3047,
6116,
29874,
29925,
29963,
29963,
29889,
3166,
29918,
13193,
29898,
13,
9651,
12534,
29918,
1271,
29922,
24381,
29896,
29889,
517,
29918,
13193,
3285,
5881,
29918,
4537,
2433,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29941,
29941,
29941,
29941,
29946,
29946,
29946,
29946,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29906,
29889,
12687,
29892,
525,
29896,
29906,
29941,
29946,
1495,
13,
13,
4706,
282,
29890,
29941,
353,
12534,
1271,
29889,
29902,
578,
29900,
29911,
2287,
5550,
262,
7445,
3047,
6116,
29874,
29925,
29963,
29963,
29889,
3166,
29918,
3977,
29918,
13193,
29898,
13,
9651,
2094,
29918,
12687,
29918,
1271,
29922,
24381,
29896,
29889,
517,
29918,
3977,
29918,
13193,
877,
29900,
29900,
29915,
334,
29871,
29896,
29953,
511,
5881,
29918,
4537,
2433,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29941,
29941,
29941,
29941,
29946,
29946,
29946,
29946,
742,
1820,
2433,
29900,
29900,
29915,
334,
29871,
29896,
29953,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29941,
29889,
12687,
29892,
525,
29896,
29906,
29941,
29946,
1495,
13,
13,
1678,
822,
1243,
29918,
12687,
29918,
1271,
29918,
29902,
578,
29946,
29909,
2890,
29925,
262,
7445,
3047,
6116,
29874,
29925,
29963,
29963,
29898,
1311,
1125,
13,
4706,
282,
29890,
29896,
353,
12534,
1271,
29889,
29902,
578,
29946,
29909,
2890,
29925,
262,
7445,
3047,
6116,
29874,
29925,
29963,
29963,
29898,
12687,
2433,
29896,
29906,
29941,
29946,
742,
4036,
29918,
1767,
29922,
29896,
29946,
29929,
29941,
29906,
29945,
29900,
29900,
29896,
29953,
29929,
29955,
29906,
29929,
29953,
29941,
29929,
29946,
29906,
29953,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29896,
29889,
12687,
29892,
525,
29896,
29906,
29941,
29946,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29896,
29889,
517,
29918,
13193,
580,
29961,
29900,
29901,
29947,
1402,
289,
12764,
29916,
29946,
29946,
29905,
29916,
29896,
29906,
29905,
29916,
29941,
29946,
29905,
29916,
7340,
29905,
29916,
7340,
29905,
29916,
7340,
29905,
29916,
7340,
29905,
29916,
7340,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29896,
29889,
517,
29918,
3977,
29918,
13193,
29898,
1989,
2433,
29900,
29900,
29915,
334,
29871,
29896,
29953,
511,
289,
742,
29946,
3761,
29979,
29905,
29916,
1635,
29905,
29916,
29896,
29900,
29926,
29905,
24660,
29953,
29905,
24660,
29945,
29905,
29916,
29881,
29906,
29936,
29979,
29905,
29916,
11512,
29905,
17115,
29906,
29905,
29916,
1725,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29896,
29889,
517,
29918,
29886,
29894,
29894,
29898,
29886,
29894,
29894,
29918,
1989,
2433,
29900,
29900,
29915,
334,
29871,
29896,
29953,
29892,
5881,
29918,
4537,
2433,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29941,
29941,
29941,
29941,
29946,
29946,
29946,
29946,
5477,
525,
29953,
29906,
29953,
29946,
1495,
13,
13,
4706,
282,
29890,
29906,
353,
12534,
1271,
29889,
29902,
578,
29946,
29909,
2890,
29925,
262,
7445,
3047,
6116,
29874,
29925,
29963,
29963,
29889,
3166,
29918,
13193,
29898,
12687,
29918,
1271,
29922,
24381,
29896,
29889,
517,
29918,
13193,
3101,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29906,
29889,
12687,
29892,
525,
29896,
29906,
29941,
29946,
1495,
13,
13,
4706,
282,
29890,
29941,
353,
12534,
1271,
29889,
29902,
578,
29946,
29909,
2890,
29925,
262,
7445,
3047,
6116,
29874,
29925,
29963,
29963,
29889,
3166,
29918,
3977,
29918,
13193,
29898,
13,
9651,
2094,
29918,
12687,
29918,
1271,
29922,
24381,
29896,
29889,
517,
29918,
3977,
29918,
13193,
877,
29900,
29900,
29915,
334,
29871,
29896,
29953,
511,
1820,
2433,
29900,
29900,
29915,
334,
29871,
29896,
29953,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
24381,
29941,
29889,
12687,
29892,
525,
29896,
29906,
29941,
29946,
1495,
13,
13,
1678,
822,
1243,
29918,
12687,
1271,
29918,
3372,
800,
29898,
1311,
1125,
13,
4706,
260,
2783,
29918,
1989,
353,
525,
29906,
29906,
29906,
29906,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29896,
29896,
29896,
29896,
29915,
13,
4706,
263,
267,
29918,
1989,
353,
260,
2783,
29918,
1989,
334,
29871,
29906,
13,
4706,
1820,
353,
263,
267,
29918,
1989,
13,
13,
4706,
12534,
29918,
1271,
29879,
353,
518,
13,
9651,
1134,
29898,
13,
18884,
525,
29911,
2287,
5550,
262,
7445,
742,
13,
18884,
313,
12687,
1271,
29889,
29902,
578,
29900,
29925,
262,
7445,
29892,
12534,
1271,
29889,
29911,
2783,
8566,
14740,
29925,
262,
7445,
29924,
861,
262,
29892,
12534,
1271,
29889,
6116,
29874,
29925,
29963,
18510,
262,
7445,
29924,
861,
262,
511,
6571,
511,
13,
9651,
1134,
29898,
13,
18884,
525,
29909,
2890,
29925,
262,
7445,
742,
13,
18884,
313,
12687,
1271,
29889,
29902,
578,
29946,
29925,
262,
7445,
29892,
12534,
1271,
29889,
16036,
1660,
17608,
14740,
29925,
262,
7445,
29924,
861,
262,
29892,
12534,
1271,
29889,
6116,
29874,
29925,
29963,
18510,
262,
7445,
29924,
861,
262,
511,
6571,
511,
13,
9651,
12534,
1271,
29889,
29902,
578,
29900,
29911,
2287,
5550,
262,
7445,
3047,
6116,
29874,
29925,
29963,
29963,
29892,
13,
9651,
12534,
1271,
29889,
29902,
578,
29946,
29909,
2890,
29925,
262,
7445,
3047,
6116,
29874,
29925,
29963,
29963,
13,
4706,
4514,
13,
4706,
363,
282,
29890,
297,
12534,
29918,
1271,
29879,
29901,
13,
9651,
1596,
29898,
24381,
29897,
13,
9651,
282,
29890,
353,
282,
29890,
29898,
12687,
2433,
29896,
29906,
29941,
29946,
742,
5881,
29918,
4537,
2433,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29941,
29941,
29941,
29941,
29946,
29946,
29946,
29946,
1495,
13,
9651,
1583,
29889,
9294,
9843,
29898,
24381,
29889,
12687,
29892,
525,
29896,
29906,
29941,
29946,
1495,
13,
9651,
1583,
29889,
9294,
9843,
29898,
24381,
29889,
517,
29918,
29886,
29894,
29894,
29898,
29886,
29894,
29894,
29918,
1989,
2433,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
742,
1820,
29918,
2248,
29922,
29896,
29892,
5881,
29918,
4537,
2433,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29941,
29941,
29941,
29941,
29946,
29946,
29946,
29946,
5477,
525,
29929,
29945,
29929,
29945,
1495,
13,
9651,
282,
29890,
29906,
353,
282,
29890,
29889,
3166,
29918,
13193,
29898,
24381,
29889,
517,
29918,
13193,
3285,
5881,
29918,
4537,
2433,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29941,
29941,
29941,
29941,
29946,
29946,
29946,
29946,
1495,
13,
9651,
1583,
29889,
9294,
9843,
29898,
24381,
29906,
29889,
12687,
29892,
525,
29896,
29906,
29941,
29946,
1495,
13,
9651,
282,
29890,
29906,
353,
282,
29890,
29889,
3166,
29918,
3977,
29918,
13193,
29898,
24381,
29889,
517,
29918,
3977,
29918,
13193,
29898,
1989,
29922,
1989,
511,
1820,
29922,
1989,
29892,
5881,
29918,
4537,
2433,
29896,
29896,
29896,
29896,
29906,
29906,
29906,
29906,
29941,
29941,
29941,
29941,
29946,
29946,
29946,
29946,
1495,
13,
9651,
1583,
29889,
9294,
9843,
29898,
24381,
29906,
29889,
12687,
29892,
525,
29896,
29906,
29941,
29946,
1495,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
443,
27958,
29889,
3396,
580,
13,
2
] |
terrarium/adapters/accumulator.py | dredington/terrarium | 0 | 58394 | #!/usr/bin/env python3
from sentinel import DataAdapter
class Accumulator(DataAdapter):
def __init__(self):
self.data = []
def publish(self, data):
self.data.append(data) | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
3166,
2665,
262,
295,
1053,
3630,
6168,
13,
13,
1990,
4831,
398,
9183,
29898,
1469,
6168,
1125,
13,
29871,
822,
4770,
2344,
12035,
1311,
1125,
13,
1678,
1583,
29889,
1272,
353,
5159,
13,
13,
29871,
822,
9805,
29898,
1311,
29892,
848,
1125,
13,
1678,
1583,
29889,
1272,
29889,
4397,
29898,
1272,
29897,
2
] |
osme/migrations/0002_auto_20210316_1627.py | infolabs/django-osme | 0 | 162972 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2021-03-16 13:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('osme', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='region',
name='query_string',
),
migrations.AddField(
model_name='region',
name='osm_id',
field=models.CharField(db_index=True, default=1, max_length=255, verbose_name='Osm id'),
preserve_default=False,
),
]
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
15337,
29871,
29896,
29889,
29896,
29896,
29889,
29906,
29947,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29900,
29941,
29899,
29896,
29953,
29871,
29896,
29941,
29901,
29906,
29955,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
29892,
4733,
13,
13,
13,
1990,
341,
16783,
29898,
26983,
800,
29889,
29924,
16783,
1125,
13,
13,
1678,
9962,
353,
518,
13,
4706,
6702,
359,
1004,
742,
525,
29900,
29900,
29900,
29896,
29918,
11228,
5477,
13,
1678,
4514,
13,
13,
1678,
6931,
353,
518,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
12803,
742,
13,
9651,
1024,
2433,
1972,
29918,
1807,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
2528,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
12803,
742,
13,
9651,
1024,
2433,
359,
29885,
29918,
333,
742,
13,
9651,
1746,
29922,
9794,
29889,
27890,
29898,
2585,
29918,
2248,
29922,
5574,
29892,
2322,
29922,
29896,
29892,
4236,
29918,
2848,
29922,
29906,
29945,
29945,
29892,
26952,
29918,
978,
2433,
29949,
3844,
1178,
5477,
13,
9651,
19905,
29918,
4381,
29922,
8824,
29892,
13,
4706,
10353,
13,
1678,
4514,
13,
2
] |
apps/requestlogger/urls.py | commtrack/commtrack-old-to-del | 1 | 199531 | <reponame>commtrack/commtrack-old-to-del
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^requestlog/?$', 'requestlogger.views.list'),
(r'^requestlog/demo/?$', 'requestlogger.views.demo'),
)
| [
1,
529,
276,
1112,
420,
29958,
2055,
11294,
29914,
2055,
11294,
29899,
1025,
29899,
517,
29899,
6144,
13,
3166,
9557,
29889,
5527,
29889,
26045,
29889,
4381,
29879,
1053,
334,
13,
13,
2271,
11037,
29879,
353,
15038,
877,
742,
462,
4706,
13,
1678,
313,
29878,
29915,
29985,
3827,
1188,
13401,
29938,
742,
525,
3827,
21707,
29889,
7406,
29889,
1761,
5477,
268,
13,
1678,
313,
29878,
29915,
29985,
3827,
1188,
29914,
17482,
13401,
29938,
742,
525,
3827,
21707,
29889,
7406,
29889,
17482,
5477,
268,
13,
268,
13,
29897,
13,
2
] |
betterLogger/formatter.py | GreenJon902/BetterLogger | 0 | 47677 | <reponame>GreenJon902/BetterLogger<filename>betterLogger/formatter.py
import copy
from logging import Formatter as _Formatter
from betterLogger import colors
from betterLogger import config
from betterLogger.format_funcs import colored_format
class Formatter(_Formatter):
def __init__(self, use_color=False):
_Formatter.__init__(self)
self.use_color = use_color
def format(self, record):
record = copy.deepcopy(record)
"""if record.name in constants.logging.custom_name_per_log_array.keys():
new_name, new_msg = record.msg.split(": ", maxsplit=1)
record.name = str(constants.logging.custom_name_per_log_array[record.name]) % new_name
record.msg = new_msg""" # fix this
class_name = record.name
for log_name, shortened in config.log_names_to_shorten.items():
class_name = class_name.replace(log_name, shortened)
record.msg = colored_format(config.log_format, self.use_color,
custom_tags={"message": record.msg, "logger": self, "level": record.levelname,
"class_name": class_name},
custom_colors={"LEVEL_COLOR": colors.level_to_code[record.levelname]})
return _Formatter.format(self, record)
__all__ = ["Formatter"]
| [
1,
529,
276,
1112,
420,
29958,
24599,
29967,
265,
29929,
29900,
29906,
29914,
29933,
19036,
16363,
29966,
9507,
29958,
6878,
357,
16363,
29914,
689,
2620,
29889,
2272,
13,
5215,
3509,
13,
3166,
12183,
1053,
3812,
2620,
408,
903,
18522,
13,
13,
3166,
2253,
16363,
1053,
11955,
13,
3166,
2253,
16363,
1053,
2295,
13,
3166,
2253,
16363,
29889,
4830,
29918,
7692,
2395,
1053,
28684,
29918,
4830,
13,
13,
13,
1990,
3812,
2620,
7373,
18522,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
671,
29918,
2780,
29922,
8824,
1125,
13,
4706,
903,
18522,
17255,
2344,
12035,
1311,
29897,
13,
4706,
1583,
29889,
1509,
29918,
2780,
353,
671,
29918,
2780,
13,
13,
1678,
822,
3402,
29898,
1311,
29892,
2407,
1125,
13,
4706,
2407,
353,
3509,
29889,
24535,
8552,
29898,
11651,
29897,
13,
13,
4706,
9995,
361,
2407,
29889,
978,
297,
17727,
29889,
21027,
29889,
6341,
29918,
978,
29918,
546,
29918,
1188,
29918,
2378,
29889,
8149,
7295,
13,
9651,
716,
29918,
978,
29892,
716,
29918,
7645,
353,
2407,
29889,
7645,
29889,
5451,
703,
29901,
9162,
4236,
5451,
29922,
29896,
29897,
13,
13,
9651,
2407,
29889,
978,
353,
851,
29898,
3075,
1934,
29889,
21027,
29889,
6341,
29918,
978,
29918,
546,
29918,
1188,
29918,
2378,
29961,
11651,
29889,
978,
2314,
1273,
716,
29918,
978,
13,
9651,
2407,
29889,
7645,
353,
716,
29918,
7645,
15945,
29908,
29871,
396,
2329,
445,
13,
13,
4706,
770,
29918,
978,
353,
2407,
29889,
978,
13,
4706,
363,
1480,
29918,
978,
29892,
3273,
6419,
297,
2295,
29889,
1188,
29918,
7039,
29918,
517,
29918,
12759,
264,
29889,
7076,
7295,
13,
9651,
770,
29918,
978,
353,
770,
29918,
978,
29889,
6506,
29898,
1188,
29918,
978,
29892,
3273,
6419,
29897,
13,
13,
4706,
2407,
29889,
7645,
353,
28684,
29918,
4830,
29898,
2917,
29889,
1188,
29918,
4830,
29892,
1583,
29889,
1509,
29918,
2780,
29892,
13,
462,
462,
1678,
2888,
29918,
11338,
3790,
29908,
4906,
1115,
2407,
29889,
7645,
29892,
376,
21707,
1115,
1583,
29892,
376,
5563,
1115,
2407,
29889,
5563,
978,
29892,
13,
462,
462,
462,
376,
1990,
29918,
978,
1115,
770,
29918,
978,
1118,
13,
462,
462,
1678,
2888,
29918,
27703,
3790,
29908,
1307,
29963,
6670,
29918,
15032,
1955,
1115,
11955,
29889,
5563,
29918,
517,
29918,
401,
29961,
11651,
29889,
5563,
978,
29962,
1800,
13,
4706,
736,
903,
18522,
29889,
4830,
29898,
1311,
29892,
2407,
29897,
13,
13,
13,
1649,
497,
1649,
353,
6796,
18522,
3108,
13,
2
] |
setuper desktop app/gui/dialogs/weblogindialog.py | dragondjf/CloudSetuper | 22 | 126497 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
from PyQt5 import QtGui
from PyQt5 import QtCore
from PyQt5 import QtWidgets
import requests
from dataBase import signal_DB
import threading
from Crypto.Hash import MD5
if __name__ == '__main__':
from basedialog import BaseDialog
else:
from .basedialog import BaseDialog
class AuthLoginDialog(BaseDialog):
def __init__(self, styleoptions, parent=None):
super(AuthLoginDialog, self).__init__(styleoptions, parent)
self.login_nameLabel = QtWidgets.QLabel(u'用户名')
self.login_name = QtWidgets.QLineEdit(self)
self.login_name.setPlaceholderText(u'用户名')
self.login_passwordLabel = QtWidgets.QLabel(u'密码')
self.login_password = QtWidgets.QLineEdit(self)
self.login_password.setEchoMode(QtWidgets.QLineEdit.Password)
self.login_password.setPlaceholderText(u'密码')
self.ipLabel = QtWidgets.QLabel(u'输入主机ip:')
self.ipLineEdit = QtWidgets.QLineEdit(u'127.0.0.1')
self.ipLineEdit.setInputMask('000.000.000.000')
self.portLabel = QtWidgets.QLabel(u'输入主机port:')
self.portLineEdit = QtWidgets.QLineEdit(u'8888')
self.pbLogin = QtWidgets.QPushButton(u'登录', self)
self.pbLogin.setCheckable(True)
self.pbCancel = QtWidgets.QPushButton(u'取消', self)
enterwidget_mainlayout = QtWidgets.QGridLayout()
enterwidget_mainlayout.addWidget(self.pbLogin, 0, 0)
enterwidget_mainlayout.addWidget(self.pbCancel, 0, 1)
self.statusLabel = QtWidgets.QLabel("")
self.statusLabel.setFixedHeight(30)
mainlayout = QtWidgets.QGridLayout()
mainlayout.addWidget(self.login_nameLabel, 0, 0)
mainlayout.addWidget(self.login_name, 0, 1)
mainlayout.addWidget(self.login_passwordLabel, 1, 0)
mainlayout.addWidget(self.login_password, 1, 1)
mainlayout.addWidget(self.ipLabel, 2, 0)
mainlayout.addWidget(self.ipLineEdit, 2, 1)
mainlayout.addWidget(self.portLabel, 3, 0)
mainlayout.addWidget(self.portLineEdit, 3, 1)
mainlayout.addWidget(self.statusLabel, 4, 1, 1, 2)
mainlayout.addLayout(enterwidget_mainlayout, 5, 0, 1, 2)
self.pbLogin.clicked.connect(self.clickEnter)
self.pbCancel.clicked.connect(self.reject)
self.pbLogin.setFixedHeight(30)
self.pbCancel.setFixedHeight(30)
self.layout().addLayout(mainlayout)
self.resize(self.width(), self.height())
self.layout().setContentsMargins(10, 10, 10, 20)
signal_DB.login_sin.connect(self.authLogin)
def clickEnter(self):
name = self.login_name.text()
password = self.login_password.text()
ip = self.ipLineEdit.text()
port = self.portLineEdit.text()
self.statusLabel.setText("正在登录中...")
self.pas = None
self.address = (ip, port)
self.loginThread = AuthLoginThread(name, password, self.address)
self.loginThread.start()
self.pbLogin.setChecked(True)
def cancleConenct(self):
self.pbLogin.setChecked(False)
self.loginThread.flag = False
@QtCore.pyqtSlot(dict)
def authLogin(self, info):
if info['status']:
self.pas = info['result']
self.accept()
else:
self.pbLogin.setChecked(False)
self.statusLabel.setText(info['result'])
class AuthLoginThread(threading.Thread, QtCore.QObject):
"""docstring for AuthLoginThread"""
def __init__(self, user, password, address):
super(AuthLoginThread, self).__init__()
self.user = user
self.password = password
self.address = address
def run(self):
status = None
result = None
try:
userinfo = {"account": self.user, "password": MD5.new(('%s' % self.password).encode('utf-8')).hexdigest()}
result = requests.post('http://%s:%s/login' % self.address, data=userinfo)
loginflag = int(result.json())
if loginflag == 1:
signal_DB.login_sin.emit({'status': True, 'result': "登陆成功"})
elif loginflag == 2:
signal_DB.login_sin.emit({'status': False, 'result': "请输入正确的用户名"})
elif loginflag == 3:
signal_DB.login_sin.emit({'status': False, 'result': "请输入正确的密码"})
except requests.ConnectionError as e:
signal_DB.login_sin.emit({'status': False, 'result':"请输入正确的ip地址或端口号"})
except Exception as e:
print(e)
signal_DB.login_sin.emit({'status': False, 'result':"请输入正确的参数"})
def weblogin(loginoptions):
"""返回True或False"""
dialog = AuthLoginDialog(loginoptions)
if dialog.exec_():
return True, dialog.address
else:
return False, (u'', u'')
if __name__ == '__main__':
import sys
app = QtGui.QApplication(sys.argv)
styleoptions = {
'title': u'登录',
'windowicon': "../skin/images/ov-orange-green.png",
'minsize': (400, 300),
'size': (400, 300),
'logo_title': u'智能光纤云终端管理平台',
'logo_img_url': "../skin/images/ov-orange-green.png",
}
print(login(styleoptions))
sys.exit(app.exec_())
| [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
2897,
13,
3166,
10772,
17303,
29945,
1053,
14705,
28707,
13,
3166,
10772,
17303,
29945,
1053,
14705,
9203,
13,
3166,
10772,
17303,
29945,
1053,
14705,
8801,
29879,
13,
5215,
7274,
13,
3166,
848,
5160,
1053,
7182,
29918,
4051,
13,
5215,
3244,
292,
13,
3166,
315,
17929,
29889,
10438,
1053,
20672,
29945,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
515,
2729,
3658,
1053,
7399,
7647,
13,
2870,
29901,
13,
1678,
515,
869,
6707,
3658,
1053,
7399,
7647,
13,
13,
13,
1990,
13189,
11049,
7647,
29898,
5160,
7647,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3114,
6768,
29892,
3847,
29922,
8516,
1125,
13,
4706,
2428,
29898,
6444,
11049,
7647,
29892,
1583,
467,
1649,
2344,
12035,
3293,
6768,
29892,
3847,
29897,
13,
13,
4706,
1583,
29889,
7507,
29918,
978,
4775,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
29884,
29915,
30406,
31229,
30548,
1495,
13,
4706,
1583,
29889,
7507,
29918,
978,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29897,
13,
4706,
1583,
29889,
7507,
29918,
978,
29889,
842,
22150,
7694,
1626,
29898,
29884,
29915,
30406,
31229,
30548,
1495,
13,
13,
4706,
1583,
29889,
7507,
29918,
5630,
4775,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
29884,
29915,
31461,
31183,
1495,
13,
4706,
1583,
29889,
7507,
29918,
5630,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29897,
13,
4706,
1583,
29889,
7507,
29918,
5630,
29889,
842,
29923,
1859,
6818,
29898,
17303,
8801,
29879,
29889,
2239,
457,
6103,
29889,
10048,
29897,
13,
4706,
1583,
29889,
7507,
29918,
5630,
29889,
842,
22150,
7694,
1626,
29898,
29884,
29915,
31461,
31183,
1495,
13,
13,
4706,
1583,
29889,
666,
4775,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
29884,
29915,
31573,
30752,
30888,
31429,
666,
29901,
1495,
13,
4706,
1583,
29889,
666,
3542,
6103,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
29884,
29915,
29896,
29906,
29955,
29889,
29900,
29889,
29900,
29889,
29896,
1495,
13,
4706,
1583,
29889,
666,
3542,
6103,
29889,
842,
4290,
19832,
877,
29900,
29900,
29900,
29889,
29900,
29900,
29900,
29889,
29900,
29900,
29900,
29889,
29900,
29900,
29900,
1495,
13,
4706,
1583,
29889,
637,
4775,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
29884,
29915,
31573,
30752,
30888,
31429,
637,
29901,
1495,
13,
4706,
1583,
29889,
637,
3542,
6103,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
29884,
29915,
29947,
29947,
29947,
29947,
1495,
13,
13,
4706,
1583,
29889,
24381,
11049,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
29884,
29915,
31451,
31283,
742,
1583,
29897,
13,
13,
4706,
1583,
29889,
24381,
11049,
29889,
842,
5596,
519,
29898,
5574,
29897,
13,
4706,
1583,
29889,
24381,
19420,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
29884,
29915,
30683,
31276,
742,
1583,
29897,
13,
4706,
3896,
8030,
29918,
3396,
2680,
353,
14705,
8801,
29879,
29889,
29984,
5756,
3453,
580,
13,
4706,
3896,
8030,
29918,
3396,
2680,
29889,
1202,
8801,
29898,
1311,
29889,
24381,
11049,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
3896,
8030,
29918,
3396,
2680,
29889,
1202,
8801,
29898,
1311,
29889,
24381,
19420,
29892,
29871,
29900,
29892,
29871,
29896,
29897,
13,
13,
4706,
1583,
29889,
4882,
4775,
353,
14705,
8801,
29879,
29889,
2239,
1107,
703,
1159,
13,
4706,
1583,
29889,
4882,
4775,
29889,
842,
26262,
7011,
29898,
29941,
29900,
29897,
13,
13,
4706,
1667,
2680,
353,
14705,
8801,
29879,
29889,
29984,
5756,
3453,
580,
13,
4706,
1667,
2680,
29889,
1202,
8801,
29898,
1311,
29889,
7507,
29918,
978,
4775,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
1667,
2680,
29889,
1202,
8801,
29898,
1311,
29889,
7507,
29918,
978,
29892,
29871,
29900,
29892,
29871,
29896,
29897,
13,
4706,
1667,
2680,
29889,
1202,
8801,
29898,
1311,
29889,
7507,
29918,
5630,
4775,
29892,
29871,
29896,
29892,
29871,
29900,
29897,
13,
4706,
1667,
2680,
29889,
1202,
8801,
29898,
1311,
29889,
7507,
29918,
5630,
29892,
29871,
29896,
29892,
29871,
29896,
29897,
13,
4706,
1667,
2680,
29889,
1202,
8801,
29898,
1311,
29889,
666,
4775,
29892,
29871,
29906,
29892,
29871,
29900,
29897,
13,
4706,
1667,
2680,
29889,
1202,
8801,
29898,
1311,
29889,
666,
3542,
6103,
29892,
29871,
29906,
29892,
29871,
29896,
29897,
13,
4706,
1667,
2680,
29889,
1202,
8801,
29898,
1311,
29889,
637,
4775,
29892,
29871,
29941,
29892,
29871,
29900,
29897,
13,
4706,
1667,
2680,
29889,
1202,
8801,
29898,
1311,
29889,
637,
3542,
6103,
29892,
29871,
29941,
29892,
29871,
29896,
29897,
13,
4706,
1667,
2680,
29889,
1202,
8801,
29898,
1311,
29889,
4882,
4775,
29892,
29871,
29946,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29906,
29897,
13,
4706,
1667,
2680,
29889,
1202,
3453,
29898,
5893,
8030,
29918,
3396,
2680,
29892,
29871,
29945,
29892,
29871,
29900,
29892,
29871,
29896,
29892,
29871,
29906,
29897,
13,
13,
4706,
1583,
29889,
24381,
11049,
29889,
3808,
287,
29889,
6915,
29898,
1311,
29889,
3808,
10399,
29897,
13,
4706,
1583,
29889,
24381,
19420,
29889,
3808,
287,
29889,
6915,
29898,
1311,
29889,
276,
622,
29897,
13,
4706,
1583,
29889,
24381,
11049,
29889,
842,
26262,
7011,
29898,
29941,
29900,
29897,
13,
4706,
1583,
29889,
24381,
19420,
29889,
842,
26262,
7011,
29898,
29941,
29900,
29897,
13,
13,
4706,
1583,
29889,
2680,
2141,
1202,
3453,
29898,
3396,
2680,
29897,
13,
4706,
1583,
29889,
21476,
29898,
1311,
29889,
2103,
3285,
1583,
29889,
3545,
3101,
13,
4706,
1583,
29889,
2680,
2141,
842,
21002,
29924,
1191,
1144,
29898,
29896,
29900,
29892,
29871,
29896,
29900,
29892,
29871,
29896,
29900,
29892,
29871,
29906,
29900,
29897,
13,
13,
4706,
7182,
29918,
4051,
29889,
7507,
29918,
5223,
29889,
6915,
29898,
1311,
29889,
5150,
11049,
29897,
13,
13,
1678,
822,
2828,
10399,
29898,
1311,
1125,
13,
4706,
1024,
353,
1583,
29889,
7507,
29918,
978,
29889,
726,
580,
13,
4706,
4800,
353,
1583,
29889,
7507,
29918,
5630,
29889,
726,
580,
13,
4706,
10377,
353,
1583,
29889,
666,
3542,
6103,
29889,
726,
580,
13,
4706,
2011,
353,
1583,
29889,
637,
3542,
6103,
29889,
726,
580,
13,
4706,
1583,
29889,
4882,
4775,
29889,
12038,
703,
30724,
30505,
31451,
31283,
30275,
856,
1159,
13,
4706,
1583,
29889,
18182,
353,
6213,
13,
4706,
1583,
29889,
7328,
353,
313,
666,
29892,
2011,
29897,
13,
4706,
1583,
29889,
7507,
4899,
353,
13189,
11049,
4899,
29898,
978,
29892,
4800,
29892,
1583,
29889,
7328,
29897,
13,
4706,
1583,
29889,
7507,
4899,
29889,
2962,
580,
13,
4706,
1583,
29889,
24381,
11049,
29889,
842,
17817,
29898,
5574,
29897,
13,
13,
1678,
822,
508,
2841,
1168,
264,
312,
29898,
1311,
1125,
13,
4706,
1583,
29889,
24381,
11049,
29889,
842,
17817,
29898,
8824,
29897,
13,
4706,
1583,
29889,
7507,
4899,
29889,
15581,
353,
7700,
13,
13,
1678,
732,
17303,
9203,
29889,
2272,
17915,
29903,
8276,
29898,
8977,
29897,
13,
1678,
822,
4817,
11049,
29898,
1311,
29892,
5235,
1125,
13,
4706,
565,
5235,
1839,
4882,
2033,
29901,
13,
9651,
1583,
29889,
18182,
353,
5235,
1839,
2914,
2033,
13,
9651,
1583,
29889,
16044,
580,
13,
4706,
1683,
29901,
13,
9651,
1583,
29889,
24381,
11049,
29889,
842,
17817,
29898,
8824,
29897,
13,
9651,
1583,
29889,
4882,
4775,
29889,
12038,
29898,
3888,
1839,
2914,
11287,
13,
13,
13,
1990,
13189,
11049,
4899,
29898,
7097,
292,
29889,
4899,
29892,
14705,
9203,
29889,
29984,
2061,
1125,
13,
1678,
9995,
1514,
1807,
363,
13189,
11049,
4899,
15945,
29908,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1404,
29892,
4800,
29892,
3211,
1125,
13,
4706,
2428,
29898,
6444,
11049,
4899,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
4706,
1583,
29889,
1792,
353,
1404,
13,
4706,
1583,
29889,
5630,
353,
4800,
13,
4706,
1583,
29889,
7328,
353,
3211,
13,
13,
1678,
822,
1065,
29898,
1311,
1125,
13,
4706,
4660,
353,
6213,
13,
4706,
1121,
353,
6213,
13,
4706,
1018,
29901,
13,
9651,
1404,
3888,
353,
8853,
10149,
1115,
1583,
29889,
1792,
29892,
376,
5630,
1115,
20672,
29945,
29889,
1482,
29898,
877,
29995,
29879,
29915,
1273,
1583,
29889,
5630,
467,
12508,
877,
9420,
29899,
29947,
1495,
467,
20970,
7501,
342,
28296,
462,
13,
9651,
1121,
353,
7274,
29889,
2490,
877,
1124,
597,
29995,
29879,
16664,
29879,
29914,
7507,
29915,
1273,
1583,
29889,
7328,
29892,
848,
29922,
1792,
3888,
29897,
13,
9651,
6464,
15581,
353,
938,
29898,
2914,
29889,
3126,
3101,
13,
9651,
565,
6464,
15581,
1275,
29871,
29896,
29901,
13,
18884,
7182,
29918,
4051,
29889,
7507,
29918,
5223,
29889,
21976,
3319,
29915,
4882,
2396,
5852,
29892,
525,
2914,
2396,
376,
31451,
236,
156,
137,
30494,
31134,
29908,
1800,
13,
9651,
25342,
6464,
15581,
1275,
29871,
29906,
29901,
13,
18884,
7182,
29918,
4051,
29889,
7507,
29918,
5223,
29889,
21976,
3319,
29915,
4882,
2396,
7700,
29892,
525,
2914,
2396,
376,
31088,
31573,
30752,
30724,
31835,
30210,
30406,
31229,
30548,
29908,
1800,
13,
9651,
25342,
6464,
15581,
1275,
29871,
29941,
29901,
13,
18884,
7182,
29918,
4051,
29889,
7507,
29918,
5223,
29889,
21976,
3319,
29915,
4882,
2396,
7700,
29892,
525,
2914,
2396,
376,
31088,
31573,
30752,
30724,
31835,
30210,
31461,
31183,
29908,
1800,
13,
4706,
5174,
7274,
29889,
5350,
2392,
408,
321,
29901,
13,
9651,
7182,
29918,
4051,
29889,
7507,
29918,
5223,
29889,
21976,
3319,
29915,
4882,
2396,
7700,
29892,
525,
2914,
2396,
29908,
31088,
31573,
30752,
30724,
31835,
30210,
666,
30533,
31702,
31391,
234,
174,
178,
30856,
30850,
29908,
1800,
13,
4706,
5174,
8960,
408,
321,
29901,
13,
9651,
1596,
29898,
29872,
29897,
13,
9651,
7182,
29918,
4051,
29889,
7507,
29918,
5223,
29889,
21976,
3319,
29915,
4882,
2396,
7700,
29892,
525,
2914,
2396,
29908,
31088,
31573,
30752,
30724,
31835,
30210,
31125,
30354,
29908,
1800,
13,
13,
13,
1753,
1856,
7507,
29898,
1188,
1789,
1980,
1125,
13,
1678,
9995,
31086,
30742,
5574,
31391,
8824,
15945,
29908,
13,
1678,
7928,
353,
13189,
11049,
7647,
29898,
1188,
1789,
1980,
29897,
13,
1678,
565,
7928,
29889,
4258,
29918,
7295,
13,
4706,
736,
5852,
29892,
7928,
29889,
7328,
13,
1678,
1683,
29901,
13,
4706,
736,
7700,
29892,
313,
29884,
29915,
742,
318,
29915,
1495,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1053,
10876,
13,
1678,
623,
353,
14705,
28707,
29889,
29984,
4873,
29898,
9675,
29889,
19218,
29897,
13,
1678,
3114,
6768,
353,
426,
13,
4706,
525,
3257,
2396,
318,
29915,
31451,
31283,
742,
13,
4706,
525,
7165,
4144,
2396,
376,
6995,
808,
262,
29914,
8346,
29914,
586,
29899,
272,
927,
29899,
12692,
29889,
2732,
613,
13,
4706,
525,
29885,
1144,
675,
2396,
313,
29946,
29900,
29900,
29892,
29871,
29941,
29900,
29900,
511,
13,
4706,
525,
2311,
2396,
313,
29946,
29900,
29900,
29892,
29871,
29941,
29900,
29900,
511,
13,
4706,
525,
14569,
29918,
3257,
2396,
318,
29915,
31676,
30815,
30867,
234,
189,
167,
31784,
234,
190,
139,
234,
174,
178,
31624,
30687,
30606,
31037,
742,
13,
4706,
525,
14569,
29918,
2492,
29918,
2271,
2396,
376,
6995,
808,
262,
29914,
8346,
29914,
586,
29899,
272,
927,
29899,
12692,
29889,
2732,
613,
13,
1678,
500,
13,
1678,
1596,
29898,
7507,
29898,
3293,
6768,
876,
13,
1678,
10876,
29889,
13322,
29898,
932,
29889,
4258,
29918,
3101,
13,
2
] |
PDaS/TreeNode.py | Seenivasanseeni/PyDas | 0 | 90781 | """
The TreeNode represents node in a Tree.
This module is perfect for Binary Tree but their implementation needs restructuring of the TreeNode
for other Tree types.
"""
class TreeNode(object):
"""
Node in a Tree has arguments
data,link[0]-leftlink,link[0]-right link
emptiness of a TreeNode is indicated by self.data==None
"""
### The Default Initializer
def __init__(self,data=None,link0=None,link1=None):
self.data=data
self.link=[]
self.link.append(link0)
self.link.append(link1)
### Data in the Tree Node is to be returned
def getData(self):
return self.data
### Compare Method needs to compare only the data.
### Since comparing the subTree Nodes depends on the Tree implementation
### B-Tree , B+ Tree , AVL, Binary Search Tree needs modifications in their compare method
### This TreeNode just need to care about the data present in it
###
### Compare Two Nodes
### -1 if self.data is less than that of arguments
### 0 if both are equal
### 1 if self.data is greater than that of argument
def compare(self,Node2):
if(self.data==None and Node2.data==None):
return True
if((self.data!=None and Node2.data==None) or (self.data!=None and Node2.data==None) ):
return False
if(self.data==Node2.data):
return True
else:
return False
NullNode=TreeNode() | [
1,
9995,
13,
1576,
15472,
4247,
11524,
2943,
297,
263,
15472,
29889,
13,
4013,
3883,
338,
4922,
363,
29479,
15472,
541,
1009,
5314,
4225,
1791,
1247,
3864,
310,
278,
15472,
4247,
13,
1454,
916,
15472,
4072,
29889,
13,
15945,
29908,
13,
13,
1990,
15472,
4247,
29898,
3318,
1125,
13,
12,
15945,
29908,
13,
12,
12,
4247,
297,
263,
15472,
756,
6273,
13,
12,
12,
1272,
29892,
2324,
29961,
29900,
29962,
29899,
1563,
2324,
29892,
2324,
29961,
29900,
29962,
29899,
1266,
1544,
13,
12,
12,
3456,
3335,
310,
263,
15472,
4247,
338,
18694,
491,
1583,
29889,
1272,
1360,
8516,
13,
12,
15945,
29908,
13,
12,
2277,
29937,
450,
13109,
17250,
3950,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
1272,
29922,
8516,
29892,
2324,
29900,
29922,
8516,
29892,
2324,
29896,
29922,
8516,
1125,
13,
12,
12,
1311,
29889,
1272,
29922,
1272,
13,
12,
12,
1311,
29889,
2324,
29922,
2636,
13,
12,
12,
1311,
29889,
2324,
29889,
4397,
29898,
2324,
29900,
29897,
13,
12,
12,
1311,
29889,
2324,
29889,
4397,
29898,
2324,
29896,
29897,
13,
12,
13,
12,
2277,
29937,
3630,
297,
278,
15472,
9071,
338,
304,
367,
4133,
13,
12,
1753,
679,
1469,
29898,
1311,
1125,
13,
12,
12,
2457,
1583,
29889,
1272,
13,
13,
12,
2277,
29937,
3831,
598,
8108,
4225,
304,
7252,
871,
278,
848,
29889,
13,
12,
2277,
29937,
12,
23036,
17420,
278,
1014,
9643,
405,
2631,
7111,
373,
278,
15472,
5314,
29871,
13,
12,
2277,
29937,
12,
29933,
29899,
9643,
1919,
350,
29974,
15472,
1919,
16884,
29931,
29892,
29479,
11856,
15472,
4225,
259,
26278,
297,
1009,
29871,
7252,
1158,
29871,
13,
12,
2277,
29937,
12,
4013,
15472,
4247,
925,
817,
304,
2562,
1048,
278,
848,
2198,
297,
372,
13,
12,
2277,
29937,
13,
12,
2277,
29937,
12,
6843,
598,
7803,
405,
2631,
13,
12,
2277,
29937,
448,
29896,
565,
1583,
29889,
1272,
338,
3109,
1135,
393,
310,
6273,
13,
12,
2277,
29937,
29871,
29900,
565,
1716,
526,
5186,
13,
12,
2277,
29937,
29871,
29896,
565,
1583,
29889,
1272,
338,
7621,
1135,
393,
310,
2980,
13,
12,
13,
12,
1753,
7252,
29898,
1311,
29892,
4247,
29906,
1125,
13,
12,
12,
361,
29898,
1311,
29889,
1272,
1360,
8516,
322,
9071,
29906,
29889,
1272,
1360,
8516,
1125,
13,
12,
12,
12,
2457,
5852,
13,
12,
12,
361,
3552,
1311,
29889,
1272,
19216,
8516,
322,
9071,
29906,
29889,
1272,
1360,
8516,
29897,
470,
313,
1311,
29889,
1272,
19216,
8516,
322,
9071,
29906,
29889,
1272,
1360,
8516,
29897,
29871,
1125,
13,
12,
12,
12,
2457,
7700,
13,
12,
12,
361,
29898,
1311,
29889,
1272,
1360,
4247,
29906,
29889,
1272,
1125,
13,
12,
12,
12,
2457,
5852,
13,
12,
12,
2870,
29901,
13,
12,
12,
12,
2457,
7700,
13,
13,
7327,
4247,
29922,
9643,
4247,
580,
2
] |
Models_training/PCA_reduction.py | Nagisa-sys/WriterIdentification | 2 | 164345 | import pickle
from sklearn.decomposition import PCA
import numpy as np
class PCA_reduction:
def __init__(self, pca_path):
self.pca_reload = pickle.load(open(pca_path,'rb'))
def reduce_size(self, vector):
return self.pca_reload.transform([vector])[0]
@staticmethod
def create_new_pca_model(vectors, path_to_save, percentage_variance):
from sklearn.preprocessing import MinMaxScaler
scaler = MinMaxScaler()
data_rescaled = scaler.fit_transform(vectors)
pca = PCA(n_components=percentage_variance)
result = pca.fit(data_rescaled)
pickle.dump(pca, open(path_to_save,"wb"))
@staticmethod
def plot_variance_nbComponents(vectors, percentage_variance, figsize=(15, 5)):
import matplotlib.pyplot as plt
pca = PCA().fit(vectors)
fig = plt.figure(figsize=figsize)
plt.plot(np.cumsum(pca.explained_variance_ratio_), marker='o')
plt.axhline(y=percentage_variance, color="red")
plt.xlabel('No. of principal components')
plt.ylabel('cumulative % variance retained')
plt.grid(True)
plt.title('Cumulative explained variance across the number of components ') | [
1,
1053,
5839,
280,
13,
3166,
2071,
19668,
29889,
311,
510,
3283,
1053,
349,
5454,
13,
5215,
12655,
408,
7442,
13,
13,
1990,
349,
5454,
29918,
9313,
428,
29901,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
282,
1113,
29918,
2084,
1125,
13,
12,
12,
1311,
29889,
29886,
1113,
29918,
28120,
353,
5839,
280,
29889,
1359,
29898,
3150,
29898,
29886,
1113,
29918,
2084,
5501,
6050,
8785,
13,
12,
13,
12,
1753,
10032,
29918,
2311,
29898,
1311,
29892,
4608,
1125,
13,
12,
12,
2457,
1583,
29889,
29886,
1113,
29918,
28120,
29889,
9067,
4197,
8111,
2314,
29961,
29900,
29962,
13,
13,
12,
29992,
7959,
5696,
13,
12,
1753,
1653,
29918,
1482,
29918,
29886,
1113,
29918,
4299,
29898,
345,
14359,
29892,
2224,
29918,
517,
29918,
7620,
29892,
19649,
29918,
1707,
8837,
1125,
13,
12,
12,
3166,
2071,
19668,
29889,
1457,
19170,
1053,
3080,
7976,
29636,
261,
13,
12,
12,
19529,
261,
353,
3080,
7976,
29636,
261,
580,
13,
12,
12,
1272,
29918,
690,
29883,
7943,
353,
8716,
261,
29889,
9202,
29918,
9067,
29898,
345,
14359,
29897,
13,
13,
12,
12,
29886,
1113,
353,
349,
5454,
29898,
29876,
29918,
14036,
29922,
25376,
482,
29918,
1707,
8837,
29897,
13,
12,
12,
2914,
353,
282,
1113,
29889,
9202,
29898,
1272,
29918,
690,
29883,
7943,
29897,
13,
12,
12,
13,
12,
12,
23945,
280,
29889,
15070,
29898,
29886,
1113,
29892,
1722,
29898,
2084,
29918,
517,
29918,
7620,
1699,
29893,
29890,
5783,
13,
13,
12,
29992,
7959,
5696,
13,
12,
1753,
6492,
29918,
1707,
8837,
29918,
9877,
25503,
29898,
345,
14359,
29892,
19649,
29918,
1707,
8837,
29892,
2537,
2311,
7607,
29896,
29945,
29892,
29871,
29945,
22164,
13,
12,
12,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
12,
12,
29886,
1113,
353,
349,
5454,
2141,
9202,
29898,
345,
14359,
29897,
13,
12,
12,
1003,
353,
14770,
29889,
4532,
29898,
1003,
2311,
29922,
1003,
2311,
29897,
13,
12,
12,
572,
29873,
29889,
5317,
29898,
9302,
29889,
29883,
398,
2083,
29898,
29886,
1113,
29889,
4548,
433,
1312,
29918,
1707,
8837,
29918,
3605,
601,
29918,
511,
17456,
2433,
29877,
1495,
13,
12,
12,
572,
29873,
29889,
1165,
7760,
29898,
29891,
29922,
25376,
482,
29918,
1707,
8837,
29892,
2927,
543,
1127,
1159,
13,
12,
12,
572,
29873,
29889,
29916,
1643,
877,
3782,
29889,
310,
5882,
7117,
1495,
13,
12,
12,
572,
29873,
29889,
29891,
1643,
877,
29883,
398,
28524,
1273,
20162,
26060,
1495,
13,
12,
12,
572,
29873,
29889,
7720,
29898,
5574,
29897,
13,
12,
12,
572,
29873,
29889,
3257,
877,
29907,
398,
28524,
10824,
20162,
4822,
278,
1353,
310,
7117,
25710,
2
] |
index.py | StarSky1/microsoft-python-study | 0 | 3797 | name=input('input your name:');
print('hello');
print(name.capitalize()); | [
1,
1024,
29922,
2080,
877,
2080,
596,
1024,
29901,
2157,
13,
2158,
877,
12199,
2157,
13,
2158,
29898,
978,
29889,
5030,
2410,
675,
3310,
2
] |
members/forms.py | deadbeatfour/reg-form | 0 | 158682 | from django import forms
from .models import member
class MemberForm(forms.ModelForm):
class Meta:
model = member
exclude = ['timestamp']
labels = {
'name':"<NAME>",
'course':"COURSE",
'year':"YEAR",
'phone_number':"PHONE NUMBER",
'email':"EMAIL",
'message':"MESSAGE",
}
| [
1,
515,
9557,
1053,
7190,
13,
3166,
869,
9794,
1053,
4509,
13,
13,
1990,
19495,
2500,
29898,
9514,
29889,
3195,
2500,
1125,
13,
1678,
770,
20553,
29901,
13,
4706,
1904,
353,
4509,
13,
4706,
19060,
353,
6024,
16394,
2033,
13,
4706,
11073,
353,
426,
13,
9651,
525,
978,
2396,
29908,
29966,
5813,
28341,
13,
9651,
525,
15775,
2396,
29908,
3217,
4574,
1660,
613,
13,
9651,
525,
6360,
2396,
29908,
29979,
26441,
613,
13,
9651,
525,
6710,
29918,
4537,
2396,
29908,
19689,
12413,
28019,
13635,
613,
13,
9651,
525,
5269,
2396,
29908,
26862,
6227,
613,
13,
9651,
525,
4906,
2396,
29908,
2303,
1799,
10461,
613,
13,
4706,
500,
13,
13,
2
] |
app/mlp/test_mlp_evaluate-race.py | jingjieli95/UnarySim | 17 | 150922 | # %%
%load_ext autoreload
%autoreload 2
# %%
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
from torchsummaryX import summary
import matplotlib.pyplot as plt
import time
import os
from UnarySim.kernel.utils import *
from UnarySim.kernel.linear import FSULinear
from UnarySim.kernel.relu import FSUReLU
from UnarySim.sw.stream.gen import RNG, SourceGen, BSGen
from UnarySim.sw.metric.metric import ProgError
# %%
cwd = os.getcwd()
print(cwd)
# %%
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
print(device)
# %%
# MNIST data loader
transform=transforms.Compose([transforms.Resize((32, 32)), transforms.ToTensor()])
trainset = torchvision.datasets.MNIST(root=cwd+'/data/mnist', train=True, download=True, transform=transform)
trainloader = torch.utils.data.DataLoader(trainset, batch_size=128, shuffle=True, num_workers=4)
testset = torchvision.datasets.MNIST(root=cwd+'/data/mnist', train=False, download=True, transform=transform)
testloader = torch.utils.data.DataLoader(testset, batch_size=1, num_workers=4)
# %%
"""
# test binary model clamp
"""
# %%
model_path = cwd+"\saved_model_state_dict"+"_8_clamp"
model_clamp = MLP3_clamp_eval()
model_clamp.to(device)
model_clamp.load_state_dict(torch.load(model_path))
model_clamp.eval()
model_clamp.to(device)
correct = 0
total = 0
with torch.no_grad():
for data in testloader:
images, labels = data[0].to(device), data[1].to(device)
outputs = model_clamp(images)
_, predicted = torch.max(outputs.data, 1)
total += labels.size()[0]
correct += (predicted == labels).sum().item()
print('Accuracy of the network on the 10000 test images: %f %%' % (
100 * correct / total))
# %%
"""
# test unary model nonscaled addition - clamp binary
"""
# %%
correct_binary = 0
correct_unary = 0
bitwidth = 8
total = 0
# binary MLP3_clamp weight init
rng = "Sobol"
encode = "RC"
rng_dim = 1
relu_buf_dep = 4
mode = "bipolar"
scaled = False
bias = True
sample_cnt = 50000
start_cnt = 0
current_index = 0
cycle_correct = torch.zeros(2**(bitwidth)).to(device)
start_time = time.time()
with torch.no_grad():
for data in testloader:
if current_index < start_cnt:
current_index = current_index + 1
continue
current_index = current_index + 1
total += labels.size()[0]
images, labels = data[0].to(device), data[1].to(device)
# reference binary mlp
outputs_binary = model_clamp(images)
_, predicted_binary = torch.max(outputs_binary.data, 1)
correct_binary += (predicted_binary == labels).sum().item()
# print(model_clamp.fc1_out.min().item(), model_clamp.fc1_out.max().item())
# print(model_clamp.fc2_out.min().item(), model_clamp.fc2_out.max().item())
# print(model_clamp.fc3_out.min().item(), model_clamp.fc3_out.max().item())
# unary part
# input image check
image = images.view(-1, 32*32)
image_SRC = SourceGen(image, bitwidth=bitwidth, mode=mode)().to(device)
image_RNG = RNG(bitwidth, rng_dim, rng)().to(device)
image_BSG = BSGen(image_SRC, image_RNG).to(device)
image_ERR = ProgError(image, mode=mode).to(device)
# unary mlp is decomposed into separate layers
fc1_unary = FSULinear(32*32, 512, model_clamp.fc1.weight.data, model_clamp.fc1.bias.data,
mode=mode, scaled=scaled, bias=bias).to(device)
fc1_ERR = ProgError(model_clamp.fc1_out, mode=mode).to(device)
fc2_unary = FSULinear(512, 512, model_clamp.fc2.weight.data, model_clamp.fc2.bias.data,
mode=mode, scaled=scaled, bias=bias).to(device)
fc2_ERR = ProgError(model_clamp.fc2_out, mode=mode).to(device)
fc3_unary = FSULinear(512, 10, model_clamp.fc3.weight.data, model_clamp.fc3.bias.data,
mode=mode, scaled=scaled, bias=bias).to(device)
fc3_ERR = ProgError(model_clamp.fc3_out, mode=mode).to(device)
relu1_unary = FSUReLU(depth=relu_buf_dep, bitwidth=bitwidth, encode=encode).to(device)
relu1_ERR = ProgError(model_clamp.relu1_out, mode=mode).to(device)
relu2_unary = FSUReLU(depth=relu_buf_dep, bitwidth=bitwidth, encode=encode).to(device)
relu2_ERR = ProgError(model_clamp.relu2_out, mode=mode).to(device)
if total%100 == 0:
print("--- %s seconds ---" % (time.time() - start_time))
print(total, "images are done!!!")
# print(current_index, "-th image with label", labels.item(), ", total image count", total)
for i in range(2**(bitwidth)):
idx = torch.zeros(image_SRC.size()).type(torch.long).to(device)
image_bs = image_BSG(idx + i)
image_ERR.Monitor(image_bs)
# print(image_bs.shape)
# fc1
fc1_unary_out = fc1_unary(image_bs)
# fc1_ERR.Monitor(fc1_unary_out)
# print(fc1_unary_out.shape)
# relu1
relu1_unary_out = relu1_unary(fc1_unary_out)
# relu1_ERR.Monitor(relu1_unary_out)
# print(relu1_unary_out.shape)
# fc2
fc2_unary_out = fc2_unary(relu1_unary_out)
# fc2_ERR.Monitor(fc2_unary_out)
# print(fc2_unary_out.shape)
# relu2
relu2_unary_out = relu2_unary(fc2_unary_out)
# relu2_ERR.Monitor(relu2_unary_out)
# print(relu2_unary_out.shape)
# fc3
fc3_unary_out = fc3_unary(relu2_unary_out)
fc3_ERR.Monitor(fc3_unary_out)
# print(fc3_unary_out.shape)
_, predicted_unary = torch.max(fc3_ERR()[0], 1)
if predicted_unary == labels:
# print(current_index, "-th image succeeds.")
# print(current_index, "-th image with label", labels.item(), ", total image count", total)
# print("before", predicted_unary.item(), cycle_correct[predicted_unary.item()].item())
cycle_correct[i].add_(1)
# print("after", predicted_unary.item(), cycle_correct[predicted_unary.item()].item())
# to_print = 1
# print("image: ",
# image_ERR()[to_print].min().item(),
# image_ERR()[to_print].max().item(),
# image_ERR()[to_print].mul(image_ERR()[to_print]).mean().sqrt().item())
# print("fc1: ",
# fc1_ERR()[to_print].min().item(),
# fc1_ERR()[to_print].max().item(),
# fc1_ERR()[to_print].mul(fc1_ERR()[to_print]).mean().sqrt().item())
# print("relu1: ",
# relu1_ERR()[to_print].min().item(),
# relu1_ERR()[to_print].max().item(),
# relu1_ERR()[to_print].mul(relu1_ERR()[to_print]).mean().sqrt().item())
# print("fc2: ",
# fc2_ERR()[to_print].min().item(),
# fc2_ERR()[to_print].max().item(),
# fc2_ERR()[to_print].mul(fc2_ERR()[to_print]).mean().sqrt().item())
# print("relu1: ",
# relu2_ERR()[to_print].min().item(),
# relu2_ERR()[to_print].max().item(),
# relu1_ERR()[to_print].mul(relu1_ERR()[to_print]).mean().sqrt().item())
# print("fc3: ",
# fc3_ERR()[to_print].min().item(),
# fc3_ERR()[to_print].max().item(),
# fc3_ERR()[to_print].mul(fc3_ERR()[to_print]).mean().sqrt().item())
_, predicted_unary = torch.max(fc3_ERR()[0], 1)
correct_unary += (predicted_unary == labels).sum().item()
if total == sample_cnt:
break
print('Accuracy of the network on %d test images: %f %%' % (total,
100 * correct_binary / total))
print('Accuracy of the network on %d test images: %f %%' % (total,
100 * correct_unary / total))
result = cycle_correct.cpu().numpy()/total
fig = plt.plot([i for i in range(2**bitwidth)], result) # arguments are passed to np.histogram
plt.title("Cycle level accuracy")
plt.show()
with open("cycle_accuracy_mlp_nonscaled_clamp.csv", "w+") as f:
for i in result:
f.write(str(i)+", \n")
# %%
| [
1,
396,
17806,
13,
29995,
1359,
29918,
1062,
8478,
7078,
328,
13,
29995,
8309,
7078,
328,
29871,
29906,
13,
13,
29937,
17806,
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,
5215,
4842,
305,
4924,
13,
5215,
4842,
305,
4924,
29889,
9067,
29879,
408,
4327,
29879,
13,
3166,
4842,
305,
7727,
29990,
1053,
15837,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
931,
13,
5215,
2897,
13,
13,
3166,
853,
653,
8942,
29889,
17460,
29889,
13239,
1053,
334,
13,
3166,
853,
653,
8942,
29889,
17460,
29889,
10660,
1053,
383,
14605,
12697,
13,
3166,
853,
653,
8942,
29889,
17460,
29889,
2674,
29884,
1053,
383,
14605,
1123,
29931,
29965,
13,
3166,
853,
653,
8942,
29889,
2774,
29889,
5461,
29889,
1885,
1053,
390,
9312,
29892,
7562,
15462,
29892,
350,
29903,
15462,
13,
3166,
853,
653,
8942,
29889,
2774,
29889,
16414,
29889,
16414,
1053,
1019,
29887,
2392,
13,
13,
29937,
17806,
13,
29883,
9970,
353,
2897,
29889,
657,
29883,
9970,
580,
13,
2158,
29898,
29883,
9970,
29897,
13,
13,
29937,
17806,
13,
10141,
353,
4842,
305,
29889,
10141,
703,
29883,
6191,
29901,
29900,
29908,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
580,
1683,
376,
21970,
1159,
13,
2158,
29898,
10141,
29897,
13,
13,
29937,
17806,
13,
29937,
341,
29940,
9047,
848,
23466,
13,
9067,
29922,
9067,
29879,
29889,
1523,
4220,
4197,
9067,
29879,
29889,
1666,
675,
3552,
29941,
29906,
29892,
29871,
29941,
29906,
8243,
4327,
29879,
29889,
1762,
29911,
6073,
580,
2314,
13,
13,
14968,
842,
353,
4842,
305,
4924,
29889,
14538,
1691,
29889,
29924,
29940,
9047,
29898,
4632,
29922,
29883,
9970,
23097,
29914,
1272,
29914,
23521,
391,
742,
7945,
29922,
5574,
29892,
5142,
29922,
5574,
29892,
4327,
29922,
9067,
29897,
13,
14968,
12657,
353,
4842,
305,
29889,
13239,
29889,
1272,
29889,
1469,
10036,
29898,
14968,
842,
29892,
9853,
29918,
2311,
29922,
29896,
29906,
29947,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29946,
29897,
13,
13,
1688,
842,
353,
4842,
305,
4924,
29889,
14538,
1691,
29889,
29924,
29940,
9047,
29898,
4632,
29922,
29883,
9970,
23097,
29914,
1272,
29914,
23521,
391,
742,
7945,
29922,
8824,
29892,
5142,
29922,
5574,
29892,
4327,
29922,
9067,
29897,
13,
1688,
12657,
353,
4842,
305,
29889,
13239,
29889,
1272,
29889,
1469,
10036,
29898,
1688,
842,
29892,
9853,
29918,
2311,
29922,
29896,
29892,
954,
29918,
1287,
414,
29922,
29946,
29897,
13,
13,
29937,
17806,
13,
15945,
29908,
13,
29937,
1243,
7581,
1904,
1067,
1160,
13,
15945,
29908,
13,
13,
29937,
17806,
13,
4299,
29918,
2084,
353,
274,
9970,
13578,
29905,
17314,
29918,
4299,
29918,
3859,
29918,
8977,
29908,
13578,
29918,
29947,
29918,
695,
1160,
29908,
13,
4299,
29918,
695,
1160,
353,
341,
13208,
29941,
29918,
695,
1160,
29918,
14513,
580,
13,
4299,
29918,
695,
1160,
29889,
517,
29898,
10141,
29897,
13,
4299,
29918,
695,
1160,
29889,
1359,
29918,
3859,
29918,
8977,
29898,
7345,
305,
29889,
1359,
29898,
4299,
29918,
2084,
876,
13,
4299,
29918,
695,
1160,
29889,
14513,
580,
13,
4299,
29918,
695,
1160,
29889,
517,
29898,
10141,
29897,
13,
15728,
353,
29871,
29900,
13,
7827,
353,
29871,
29900,
13,
2541,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
1678,
363,
848,
297,
1243,
12657,
29901,
13,
4706,
4558,
29892,
11073,
353,
848,
29961,
29900,
1822,
517,
29898,
10141,
511,
848,
29961,
29896,
1822,
517,
29898,
10141,
29897,
13,
4706,
14391,
353,
1904,
29918,
695,
1160,
29898,
8346,
29897,
13,
4706,
17117,
25383,
353,
4842,
305,
29889,
3317,
29898,
4905,
29879,
29889,
1272,
29892,
29871,
29896,
29897,
13,
4706,
3001,
4619,
11073,
29889,
2311,
580,
29961,
29900,
29962,
13,
4706,
1959,
4619,
313,
11965,
18186,
1275,
11073,
467,
2083,
2141,
667,
580,
13,
13,
2158,
877,
7504,
332,
4135,
310,
278,
3564,
373,
278,
29871,
29896,
29900,
29900,
29900,
29900,
1243,
4558,
29901,
1273,
29888,
17806,
29915,
1273,
313,
13,
268,
29896,
29900,
29900,
334,
1959,
847,
3001,
876,
13,
13,
29937,
17806,
13,
15945,
29908,
13,
29937,
1243,
443,
653,
1904,
302,
787,
29883,
7943,
6124,
448,
1067,
1160,
7581,
13,
15945,
29908,
13,
13,
29937,
17806,
13,
15728,
29918,
19541,
353,
29871,
29900,
13,
15728,
29918,
348,
653,
353,
29871,
29900,
13,
13,
2966,
2103,
353,
29871,
29947,
13,
7827,
353,
29871,
29900,
13,
13,
29937,
7581,
341,
13208,
29941,
29918,
695,
1160,
7688,
2069,
13,
29878,
865,
353,
376,
29903,
711,
324,
29908,
13,
12508,
353,
376,
10363,
29908,
13,
29878,
865,
29918,
6229,
353,
29871,
29896,
13,
2674,
29884,
29918,
9721,
29918,
2716,
353,
29871,
29946,
13,
8513,
353,
376,
29890,
666,
10170,
29908,
13,
7052,
29881,
353,
7700,
13,
29890,
3173,
353,
5852,
13,
11249,
29918,
20047,
353,
29871,
29945,
29900,
29900,
29900,
29900,
13,
13,
2962,
29918,
20047,
353,
29871,
29900,
13,
3784,
29918,
2248,
353,
29871,
29900,
13,
13,
23090,
29918,
15728,
353,
4842,
305,
29889,
3298,
359,
29898,
29906,
1068,
29898,
2966,
2103,
8106,
517,
29898,
10141,
29897,
13,
13,
2962,
29918,
2230,
353,
931,
29889,
2230,
580,
13,
13,
2541,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
1678,
363,
848,
297,
1243,
12657,
29901,
13,
4706,
565,
1857,
29918,
2248,
529,
1369,
29918,
20047,
29901,
13,
9651,
1857,
29918,
2248,
353,
1857,
29918,
2248,
718,
29871,
29896,
13,
9651,
6773,
13,
4706,
1857,
29918,
2248,
353,
1857,
29918,
2248,
718,
29871,
29896,
13,
13,
4706,
3001,
4619,
11073,
29889,
2311,
580,
29961,
29900,
29962,
13,
13,
4706,
4558,
29892,
11073,
353,
848,
29961,
29900,
1822,
517,
29898,
10141,
511,
848,
29961,
29896,
1822,
517,
29898,
10141,
29897,
13,
308,
13,
4706,
396,
3407,
7581,
286,
22833,
13,
4706,
14391,
29918,
19541,
353,
1904,
29918,
695,
1160,
29898,
8346,
29897,
13,
4706,
17117,
25383,
29918,
19541,
353,
4842,
305,
29889,
3317,
29898,
4905,
29879,
29918,
19541,
29889,
1272,
29892,
29871,
29896,
29897,
13,
4706,
1959,
29918,
19541,
4619,
313,
11965,
18186,
29918,
19541,
1275,
11073,
467,
2083,
2141,
667,
580,
13,
308,
13,
29937,
308,
1596,
29898,
4299,
29918,
695,
1160,
29889,
13801,
29896,
29918,
449,
29889,
1195,
2141,
667,
3285,
1904,
29918,
695,
1160,
29889,
13801,
29896,
29918,
449,
29889,
3317,
2141,
667,
3101,
13,
29937,
308,
1596,
29898,
4299,
29918,
695,
1160,
29889,
13801,
29906,
29918,
449,
29889,
1195,
2141,
667,
3285,
1904,
29918,
695,
1160,
29889,
13801,
29906,
29918,
449,
29889,
3317,
2141,
667,
3101,
13,
29937,
308,
1596,
29898,
4299,
29918,
695,
1160,
29889,
13801,
29941,
29918,
449,
29889,
1195,
2141,
667,
3285,
1904,
29918,
695,
1160,
29889,
13801,
29941,
29918,
449,
29889,
3317,
2141,
667,
3101,
13,
13,
13,
4706,
396,
443,
653,
760,
13,
4706,
396,
1881,
1967,
1423,
13,
4706,
1967,
353,
4558,
29889,
1493,
6278,
29896,
29892,
29871,
29941,
29906,
29930,
29941,
29906,
29897,
13,
4706,
1967,
29918,
29903,
10363,
353,
7562,
15462,
29898,
3027,
29892,
2586,
2103,
29922,
2966,
2103,
29892,
4464,
29922,
8513,
29897,
2141,
517,
29898,
10141,
29897,
13,
4706,
1967,
29918,
29934,
9312,
353,
390,
9312,
29898,
2966,
2103,
29892,
364,
865,
29918,
6229,
29892,
364,
865,
29897,
2141,
517,
29898,
10141,
29897,
13,
4706,
1967,
29918,
9851,
29954,
353,
350,
29903,
15462,
29898,
3027,
29918,
29903,
10363,
29892,
1967,
29918,
29934,
9312,
467,
517,
29898,
10141,
29897,
13,
4706,
1967,
29918,
21662,
353,
1019,
29887,
2392,
29898,
3027,
29892,
4464,
29922,
8513,
467,
517,
29898,
10141,
29897,
13,
308,
13,
4706,
396,
443,
653,
286,
22833,
338,
17753,
4752,
964,
5004,
15359,
13,
4706,
285,
29883,
29896,
29918,
348,
653,
353,
383,
14605,
12697,
29898,
29941,
29906,
29930,
29941,
29906,
29892,
29871,
29945,
29896,
29906,
29892,
1904,
29918,
695,
1160,
29889,
13801,
29896,
29889,
7915,
29889,
1272,
29892,
1904,
29918,
695,
1160,
29889,
13801,
29896,
29889,
29890,
3173,
29889,
1272,
29892,
29871,
13,
462,
4706,
4464,
29922,
8513,
29892,
6287,
29881,
29922,
7052,
29881,
29892,
24003,
29922,
29890,
3173,
467,
517,
29898,
10141,
29897,
13,
4706,
285,
29883,
29896,
29918,
21662,
353,
1019,
29887,
2392,
29898,
4299,
29918,
695,
1160,
29889,
13801,
29896,
29918,
449,
29892,
4464,
29922,
8513,
467,
517,
29898,
10141,
29897,
13,
308,
13,
4706,
285,
29883,
29906,
29918,
348,
653,
353,
383,
14605,
12697,
29898,
29945,
29896,
29906,
29892,
29871,
29945,
29896,
29906,
29892,
1904,
29918,
695,
1160,
29889,
13801,
29906,
29889,
7915,
29889,
1272,
29892,
1904,
29918,
695,
1160,
29889,
13801,
29906,
29889,
29890,
3173,
29889,
1272,
29892,
29871,
13,
462,
18884,
4464,
29922,
8513,
29892,
6287,
29881,
29922,
7052,
29881,
29892,
24003,
29922,
29890,
3173,
467,
517,
29898,
10141,
29897,
13,
4706,
285,
29883,
29906,
29918,
21662,
353,
1019,
29887,
2392,
29898,
4299,
29918,
695,
1160,
29889,
13801,
29906,
29918,
449,
29892,
4464,
29922,
8513,
467,
517,
29898,
10141,
29897,
13,
13,
4706,
285,
29883,
29941,
29918,
348,
653,
353,
383,
14605,
12697,
29898,
29945,
29896,
29906,
29892,
29871,
29896,
29900,
29892,
1904,
29918,
695,
1160,
29889,
13801,
29941,
29889,
7915,
29889,
1272,
29892,
1904,
29918,
695,
1160,
29889,
13801,
29941,
29889,
29890,
3173,
29889,
1272,
29892,
29871,
13,
462,
18884,
4464,
29922,
8513,
29892,
6287,
29881,
29922,
7052,
29881,
29892,
24003,
29922,
29890,
3173,
467,
517,
29898,
10141,
29897,
13,
4706,
285,
29883,
29941,
29918,
21662,
353,
1019,
29887,
2392,
29898,
4299,
29918,
695,
1160,
29889,
13801,
29941,
29918,
449,
29892,
4464,
29922,
8513,
467,
517,
29898,
10141,
29897,
13,
308,
13,
4706,
1104,
29884,
29896,
29918,
348,
653,
353,
383,
14605,
1123,
29931,
29965,
29898,
19488,
29922,
2674,
29884,
29918,
9721,
29918,
2716,
29892,
2586,
2103,
29922,
2966,
2103,
29892,
19750,
29922,
12508,
467,
517,
29898,
10141,
29897,
13,
4706,
1104,
29884,
29896,
29918,
21662,
353,
1019,
29887,
2392,
29898,
4299,
29918,
695,
1160,
29889,
2674,
29884,
29896,
29918,
449,
29892,
4464,
29922,
8513,
467,
517,
29898,
10141,
29897,
13,
308,
13,
4706,
1104,
29884,
29906,
29918,
348,
653,
353,
383,
14605,
1123,
29931,
29965,
29898,
19488,
29922,
2674,
29884,
29918,
9721,
29918,
2716,
29892,
2586,
2103,
29922,
2966,
2103,
29892,
19750,
29922,
12508,
467,
517,
29898,
10141,
29897,
13,
4706,
1104,
29884,
29906,
29918,
21662,
353,
1019,
29887,
2392,
29898,
4299,
29918,
695,
1160,
29889,
2674,
29884,
29906,
29918,
449,
29892,
4464,
29922,
8513,
467,
517,
29898,
10141,
29897,
13,
308,
13,
4706,
565,
3001,
29995,
29896,
29900,
29900,
1275,
29871,
29900,
29901,
13,
9651,
1596,
703,
5634,
1273,
29879,
6923,
11474,
29908,
1273,
313,
2230,
29889,
2230,
580,
448,
1369,
29918,
2230,
876,
13,
9651,
1596,
29898,
7827,
29892,
376,
8346,
526,
2309,
21004,
1159,
13,
13,
29937,
308,
1596,
29898,
3784,
29918,
2248,
29892,
11663,
386,
1967,
411,
3858,
613,
11073,
29889,
667,
3285,
9162,
3001,
1967,
2302,
613,
3001,
29897,
13,
4706,
363,
474,
297,
3464,
29898,
29906,
1068,
29898,
2966,
2103,
22164,
13,
9651,
22645,
353,
4842,
305,
29889,
3298,
359,
29898,
3027,
29918,
29903,
10363,
29889,
2311,
16655,
1853,
29898,
7345,
305,
29889,
5426,
467,
517,
29898,
10141,
29897,
13,
9651,
1967,
29918,
5824,
353,
1967,
29918,
9851,
29954,
29898,
13140,
718,
474,
29897,
13,
9651,
1967,
29918,
21662,
29889,
7185,
2105,
29898,
3027,
29918,
5824,
29897,
13,
9651,
396,
1596,
29898,
3027,
29918,
5824,
29889,
12181,
29897,
13,
9651,
396,
285,
29883,
29896,
13,
9651,
285,
29883,
29896,
29918,
348,
653,
29918,
449,
259,
353,
285,
29883,
29896,
29918,
348,
653,
29898,
3027,
29918,
5824,
29897,
13,
29937,
632,
285,
29883,
29896,
29918,
21662,
29889,
7185,
2105,
29898,
13801,
29896,
29918,
348,
653,
29918,
449,
29897,
13,
9651,
396,
1596,
29898,
13801,
29896,
29918,
348,
653,
29918,
449,
29889,
12181,
29897,
13,
9651,
396,
1104,
29884,
29896,
13,
9651,
1104,
29884,
29896,
29918,
348,
653,
29918,
449,
353,
1104,
29884,
29896,
29918,
348,
653,
29898,
13801,
29896,
29918,
348,
653,
29918,
449,
29897,
13,
29937,
632,
1104,
29884,
29896,
29918,
21662,
29889,
7185,
2105,
29898,
2674,
29884,
29896,
29918,
348,
653,
29918,
449,
29897,
13,
9651,
396,
1596,
29898,
2674,
29884,
29896,
29918,
348,
653,
29918,
449,
29889,
12181,
29897,
13,
9651,
396,
285,
29883,
29906,
13,
9651,
285,
29883,
29906,
29918,
348,
653,
29918,
449,
259,
353,
285,
29883,
29906,
29918,
348,
653,
29898,
2674,
29884,
29896,
29918,
348,
653,
29918,
449,
29897,
13,
29937,
632,
285,
29883,
29906,
29918,
21662,
29889,
7185,
2105,
29898,
13801,
29906,
29918,
348,
653,
29918,
449,
29897,
13,
9651,
396,
1596,
29898,
13801,
29906,
29918,
348,
653,
29918,
449,
29889,
12181,
29897,
13,
9651,
396,
1104,
29884,
29906,
13,
9651,
1104,
29884,
29906,
29918,
348,
653,
29918,
449,
353,
1104,
29884,
29906,
29918,
348,
653,
29898,
13801,
29906,
29918,
348,
653,
29918,
449,
29897,
13,
29937,
632,
1104,
29884,
29906,
29918,
21662,
29889,
7185,
2105,
29898,
2674,
29884,
29906,
29918,
348,
653,
29918,
449,
29897,
13,
9651,
396,
1596,
29898,
2674,
29884,
29906,
29918,
348,
653,
29918,
449,
29889,
12181,
29897,
13,
9651,
396,
285,
29883,
29941,
13,
9651,
285,
29883,
29941,
29918,
348,
653,
29918,
449,
259,
353,
285,
29883,
29941,
29918,
348,
653,
29898,
2674,
29884,
29906,
29918,
348,
653,
29918,
449,
29897,
13,
9651,
285,
29883,
29941,
29918,
21662,
29889,
7185,
2105,
29898,
13801,
29941,
29918,
348,
653,
29918,
449,
29897,
13,
9651,
396,
1596,
29898,
13801,
29941,
29918,
348,
653,
29918,
449,
29889,
12181,
29897,
13,
632,
13,
9651,
17117,
25383,
29918,
348,
653,
353,
4842,
305,
29889,
3317,
29898,
13801,
29941,
29918,
21662,
580,
29961,
29900,
1402,
29871,
29896,
29897,
13,
9651,
565,
25383,
29918,
348,
653,
1275,
11073,
29901,
13,
29937,
462,
1596,
29898,
3784,
29918,
2248,
29892,
11663,
386,
1967,
9269,
29879,
23157,
13,
29937,
462,
1596,
29898,
3784,
29918,
2248,
29892,
11663,
386,
1967,
411,
3858,
613,
11073,
29889,
667,
3285,
9162,
3001,
1967,
2302,
613,
3001,
29897,
13,
29937,
462,
1596,
703,
11083,
613,
25383,
29918,
348,
653,
29889,
667,
3285,
11412,
29918,
15728,
29961,
11965,
18186,
29918,
348,
653,
29889,
667,
580,
1822,
667,
3101,
13,
18884,
11412,
29918,
15728,
29961,
29875,
1822,
1202,
23538,
29896,
29897,
13,
29937,
462,
1596,
703,
7045,
613,
25383,
29918,
348,
653,
29889,
667,
3285,
11412,
29918,
15728,
29961,
11965,
18186,
29918,
348,
653,
29889,
667,
580,
1822,
667,
3101,
13,
13,
29937,
308,
304,
29918,
2158,
353,
29871,
29896,
13,
29937,
308,
1596,
703,
3027,
29901,
9162,
29871,
13,
29937,
1669,
1967,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
1195,
2141,
667,
3285,
29871,
13,
29937,
1669,
1967,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
3317,
2141,
667,
3285,
13,
29937,
1669,
1967,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
16109,
29898,
3027,
29918,
21662,
580,
29961,
517,
29918,
2158,
14664,
12676,
2141,
3676,
2141,
667,
3101,
13,
29937,
308,
1596,
703,
13801,
29896,
29901,
259,
9162,
29871,
13,
29937,
1669,
285,
29883,
29896,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
1195,
2141,
667,
3285,
29871,
13,
29937,
1669,
285,
29883,
29896,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
3317,
2141,
667,
3285,
29871,
13,
29937,
1669,
285,
29883,
29896,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
16109,
29898,
13801,
29896,
29918,
21662,
580,
29961,
517,
29918,
2158,
14664,
12676,
2141,
3676,
2141,
667,
3101,
13,
29937,
308,
1596,
703,
2674,
29884,
29896,
29901,
9162,
29871,
13,
29937,
1669,
1104,
29884,
29896,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
1195,
2141,
667,
3285,
29871,
13,
29937,
1669,
1104,
29884,
29896,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
3317,
2141,
667,
3285,
29871,
13,
29937,
1669,
1104,
29884,
29896,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
16109,
29898,
2674,
29884,
29896,
29918,
21662,
580,
29961,
517,
29918,
2158,
14664,
12676,
2141,
3676,
2141,
667,
3101,
13,
29937,
308,
1596,
703,
13801,
29906,
29901,
259,
9162,
29871,
13,
29937,
1669,
285,
29883,
29906,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
1195,
2141,
667,
3285,
29871,
13,
29937,
1669,
285,
29883,
29906,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
3317,
2141,
667,
3285,
29871,
13,
29937,
1669,
285,
29883,
29906,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
16109,
29898,
13801,
29906,
29918,
21662,
580,
29961,
517,
29918,
2158,
14664,
12676,
2141,
3676,
2141,
667,
3101,
13,
29937,
308,
1596,
703,
2674,
29884,
29896,
29901,
9162,
29871,
13,
29937,
1669,
1104,
29884,
29906,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
1195,
2141,
667,
3285,
29871,
13,
29937,
1669,
1104,
29884,
29906,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
3317,
2141,
667,
3285,
29871,
13,
29937,
1669,
1104,
29884,
29896,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
16109,
29898,
2674,
29884,
29896,
29918,
21662,
580,
29961,
517,
29918,
2158,
14664,
12676,
2141,
3676,
2141,
667,
3101,
13,
29937,
308,
1596,
703,
13801,
29941,
29901,
259,
9162,
29871,
13,
29937,
1669,
285,
29883,
29941,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
1195,
2141,
667,
3285,
29871,
13,
29937,
1669,
285,
29883,
29941,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
3317,
2141,
667,
3285,
29871,
13,
29937,
1669,
285,
29883,
29941,
29918,
21662,
580,
29961,
517,
29918,
2158,
1822,
16109,
29898,
13801,
29941,
29918,
21662,
580,
29961,
517,
29918,
2158,
14664,
12676,
2141,
3676,
2141,
667,
3101,
13,
308,
13,
4706,
17117,
25383,
29918,
348,
653,
353,
4842,
305,
29889,
3317,
29898,
13801,
29941,
29918,
21662,
580,
29961,
29900,
1402,
29871,
29896,
29897,
13,
4706,
1959,
29918,
348,
653,
4619,
313,
11965,
18186,
29918,
348,
653,
1275,
11073,
467,
2083,
2141,
667,
580,
13,
4706,
565,
3001,
1275,
4559,
29918,
20047,
29901,
13,
9651,
2867,
13,
13,
2158,
877,
7504,
332,
4135,
310,
278,
3564,
373,
1273,
29881,
1243,
4558,
29901,
1273,
29888,
17806,
29915,
1273,
313,
7827,
29892,
13,
268,
29896,
29900,
29900,
334,
1959,
29918,
19541,
847,
3001,
876,
13,
2158,
877,
7504,
332,
4135,
310,
278,
3564,
373,
1273,
29881,
1243,
4558,
29901,
1273,
29888,
17806,
29915,
1273,
313,
7827,
29892,
13,
268,
29896,
29900,
29900,
334,
1959,
29918,
348,
653,
847,
3001,
876,
13,
13,
2914,
353,
11412,
29918,
15728,
29889,
21970,
2141,
23749,
580,
29914,
7827,
13,
1003,
353,
14770,
29889,
5317,
4197,
29875,
363,
474,
297,
3464,
29898,
29906,
1068,
2966,
2103,
29897,
1402,
1121,
29897,
29871,
396,
6273,
526,
4502,
304,
7442,
29889,
29882,
391,
13342,
13,
572,
29873,
29889,
3257,
703,
29907,
13317,
3233,
13600,
1159,
13,
572,
29873,
29889,
4294,
580,
13,
13,
2541,
1722,
703,
23090,
29918,
562,
2764,
4135,
29918,
828,
29886,
29918,
29876,
787,
29883,
7943,
29918,
695,
1160,
29889,
7638,
613,
376,
29893,
29974,
1159,
408,
285,
29901,
13,
1678,
363,
474,
297,
1121,
29901,
13,
4706,
285,
29889,
3539,
29898,
710,
29898,
29875,
7240,
613,
320,
29876,
1159,
13,
13,
29937,
17806,
13,
2
] |
dotsandboxes/pit-dotsandboxes.py | user01/alpha-zero-general | 2,836 | 178784 | <reponame>user01/alpha-zero-general<gh_stars>1000+
import os
import numpy as np
import Arena
from MCTS import MCTS
from utils import dotdict
from dotsandboxes.DotsAndBoxesGame import DotsAndBoxesGame
from dotsandboxes.DotsAndBoxesPlayers import HumanDotsAndBoxesPlayer, RandomPlayer, GreedyRandomPlayer
from dotsandboxes.keras.NNet import NNetWrapper
g = DotsAndBoxesGame(n=3)
hp1 = HumanDotsAndBoxesPlayer(g).play
hp2 = HumanDotsAndBoxesPlayer(g).play
rp1 = RandomPlayer(g).play
rp2 = RandomPlayer(g).play
grp1 = GreedyRandomPlayer(g).play
grp2 = GreedyRandomPlayer(g).play
numMCTSSims = 50
n1 = NNetWrapper(g)
n1.load_checkpoint(os.path.join('../', 'pretrained_models', 'dotsandboxes', 'keras', '3x3'), 'best.pth.tar')
args1 = dotdict({'numMCTSSims': numMCTSSims, 'cpuct': 1.0})
mcts1 = MCTS(g, n1, args1)
n1p = lambda x: np.argmax(mcts1.getActionProb(x, temp=0))
n2 = NNetWrapper(g)
n2.load_checkpoint(os.path.join('../', 'pretrained_models', 'dotsandboxes', 'keras', '3x3'), 'best.pth.tar')
args2 = dotdict({'numMCTSSims': numMCTSSims, 'cpuct': 1.0})
mcts2 = MCTS(g, n2, args2)
n2p = lambda x: np.argmax(mcts2.getActionProb(x, temp=0))
# Play AlphaZero versus Human
p1 = n1p
p2 = hp1
arena = Arena.Arena(p1, p2, g, display=DotsAndBoxesGame.display)
oneWon, twoWon, draws = arena.playGames(2, verbose=True)
print("oneWon: {}, twoWon: {}, draws: {}".format(oneWon, twoWon, draws))
# # Play Greedy vs Greedy
# p1 = grp1
# p2 = grp2
# arena = Arena.Arena(p1, p2, g, display=DotsAndBoxesGame.display)
# oneWon, twoWon, draws = arena.playGames(100, verbose=False)
# print("oneWon: {}, twoWon: {}, draws: {}".format(oneWon, twoWon, draws))
# # Play AlphaZero vs Greedy
# p1 = n1p
# p2 = grp2
# arena = Arena.Arena(p1, p2, g, display=DotsAndBoxesGame.display)
# oneWon, twoWon, draws = arena.playGames(2, verbose=False)
# print("oneWon: {}, twoWon: {}, draws: {}".format(oneWon, twoWon, draws)) | [
1,
529,
276,
1112,
420,
29958,
1792,
29900,
29896,
29914,
2312,
29899,
9171,
29899,
17492,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29900,
29974,
13,
5215,
2897,
13,
5215,
12655,
408,
7442,
13,
5215,
26053,
13,
3166,
341,
1783,
29903,
1053,
341,
1783,
29903,
13,
3166,
3667,
29879,
1053,
8329,
8977,
13,
3166,
270,
1862,
26738,
267,
29889,
29928,
1862,
2855,
3313,
267,
14199,
1053,
360,
1862,
2855,
3313,
267,
14199,
13,
3166,
270,
1862,
26738,
267,
29889,
29928,
1862,
2855,
3313,
267,
13454,
414,
1053,
12968,
29928,
1862,
2855,
3313,
267,
9075,
29892,
16968,
9075,
29892,
4122,
7584,
17875,
9075,
13,
3166,
270,
1862,
26738,
267,
29889,
3946,
294,
29889,
29940,
6779,
1053,
405,
6779,
15646,
13,
13,
13,
29887,
353,
360,
1862,
2855,
3313,
267,
14199,
29898,
29876,
29922,
29941,
29897,
13,
13,
28887,
29896,
353,
12968,
29928,
1862,
2855,
3313,
267,
9075,
29898,
29887,
467,
1456,
13,
28887,
29906,
353,
12968,
29928,
1862,
2855,
3313,
267,
9075,
29898,
29887,
467,
1456,
13,
13,
19080,
29896,
353,
16968,
9075,
29898,
29887,
467,
1456,
13,
19080,
29906,
353,
16968,
9075,
29898,
29887,
467,
1456,
13,
13,
629,
29886,
29896,
353,
4122,
7584,
17875,
9075,
29898,
29887,
467,
1456,
13,
629,
29886,
29906,
353,
4122,
7584,
17875,
9075,
29898,
29887,
467,
1456,
13,
13,
1949,
29924,
1783,
1799,
9893,
353,
29871,
29945,
29900,
13,
29876,
29896,
353,
405,
6779,
15646,
29898,
29887,
29897,
13,
29876,
29896,
29889,
1359,
29918,
3198,
3149,
29898,
359,
29889,
2084,
29889,
7122,
877,
6995,
742,
525,
1457,
3018,
1312,
29918,
9794,
742,
525,
7778,
26738,
267,
742,
525,
3946,
294,
742,
525,
29941,
29916,
29941,
5477,
525,
13318,
29889,
29886,
386,
29889,
12637,
1495,
13,
5085,
29896,
353,
8329,
8977,
3319,
29915,
1949,
29924,
1783,
1799,
9893,
2396,
954,
29924,
1783,
1799,
9893,
29892,
525,
21970,
312,
2396,
29871,
29896,
29889,
29900,
1800,
13,
29885,
312,
29879,
29896,
353,
341,
1783,
29903,
29898,
29887,
29892,
302,
29896,
29892,
6389,
29896,
29897,
13,
29876,
29896,
29886,
353,
14013,
921,
29901,
7442,
29889,
1191,
3317,
29898,
29885,
312,
29879,
29896,
29889,
657,
4276,
1184,
29890,
29898,
29916,
29892,
5694,
29922,
29900,
876,
13,
13,
29876,
29906,
353,
405,
6779,
15646,
29898,
29887,
29897,
13,
29876,
29906,
29889,
1359,
29918,
3198,
3149,
29898,
359,
29889,
2084,
29889,
7122,
877,
6995,
742,
525,
1457,
3018,
1312,
29918,
9794,
742,
525,
7778,
26738,
267,
742,
525,
3946,
294,
742,
525,
29941,
29916,
29941,
5477,
525,
13318,
29889,
29886,
386,
29889,
12637,
1495,
13,
5085,
29906,
353,
8329,
8977,
3319,
29915,
1949,
29924,
1783,
1799,
9893,
2396,
954,
29924,
1783,
1799,
9893,
29892,
525,
21970,
312,
2396,
29871,
29896,
29889,
29900,
1800,
13,
29885,
312,
29879,
29906,
353,
341,
1783,
29903,
29898,
29887,
29892,
302,
29906,
29892,
6389,
29906,
29897,
13,
29876,
29906,
29886,
353,
14013,
921,
29901,
7442,
29889,
1191,
3317,
29898,
29885,
312,
29879,
29906,
29889,
657,
4276,
1184,
29890,
29898,
29916,
29892,
5694,
29922,
29900,
876,
13,
13,
29937,
7412,
838,
2026,
24214,
23797,
12968,
13,
29886,
29896,
353,
302,
29896,
29886,
13,
29886,
29906,
353,
298,
29886,
29896,
13,
279,
2386,
353,
26053,
29889,
29909,
1267,
29874,
29898,
29886,
29896,
29892,
282,
29906,
29892,
330,
29892,
2479,
29922,
29928,
1862,
2855,
3313,
267,
14199,
29889,
4990,
29897,
13,
650,
29956,
265,
29892,
1023,
29956,
265,
29892,
4216,
29879,
353,
564,
2386,
29889,
1456,
29954,
1280,
29898,
29906,
29892,
26952,
29922,
5574,
29897,
13,
2158,
703,
650,
29956,
265,
29901,
24335,
1023,
29956,
265,
29901,
24335,
4216,
29879,
29901,
6571,
1642,
4830,
29898,
650,
29956,
265,
29892,
1023,
29956,
265,
29892,
4216,
29879,
876,
13,
13,
29937,
396,
7412,
4122,
7584,
7186,
4122,
7584,
13,
29937,
282,
29896,
353,
867,
29886,
29896,
13,
29937,
282,
29906,
353,
867,
29886,
29906,
13,
29937,
564,
2386,
353,
26053,
29889,
29909,
1267,
29874,
29898,
29886,
29896,
29892,
282,
29906,
29892,
330,
29892,
2479,
29922,
29928,
1862,
2855,
3313,
267,
14199,
29889,
4990,
29897,
13,
29937,
697,
29956,
265,
29892,
1023,
29956,
265,
29892,
4216,
29879,
353,
564,
2386,
29889,
1456,
29954,
1280,
29898,
29896,
29900,
29900,
29892,
26952,
29922,
8824,
29897,
13,
29937,
1596,
703,
650,
29956,
265,
29901,
24335,
1023,
29956,
265,
29901,
24335,
4216,
29879,
29901,
6571,
1642,
4830,
29898,
650,
29956,
265,
29892,
1023,
29956,
265,
29892,
4216,
29879,
876,
13,
13,
29937,
396,
7412,
838,
2026,
24214,
7186,
4122,
7584,
13,
29937,
282,
29896,
353,
302,
29896,
29886,
13,
29937,
282,
29906,
353,
867,
29886,
29906,
13,
29937,
564,
2386,
353,
26053,
29889,
29909,
1267,
29874,
29898,
29886,
29896,
29892,
282,
29906,
29892,
330,
29892,
2479,
29922,
29928,
1862,
2855,
3313,
267,
14199,
29889,
4990,
29897,
13,
29937,
697,
29956,
265,
29892,
1023,
29956,
265,
29892,
4216,
29879,
353,
564,
2386,
29889,
1456,
29954,
1280,
29898,
29906,
29892,
26952,
29922,
8824,
29897,
13,
29937,
1596,
703,
650,
29956,
265,
29901,
24335,
1023,
29956,
265,
29901,
24335,
4216,
29879,
29901,
6571,
1642,
4830,
29898,
650,
29956,
265,
29892,
1023,
29956,
265,
29892,
4216,
29879,
876,
2
] |
Part 3/batch_VS_stochastic.py | m9psy/neural_network_habr_guide | 20 | 10679 | import numpy as np
import matplotlib.pyplot as plt
TOTAL = 200
STEP = 0.25
EPS = 0.1
INITIAL_THETA = [9, 14]
def func(x):
return 0.2 * x + 3
def generate_sample(total=TOTAL):
x = 0
while x < total * STEP:
yield func(x) + np.random.uniform(-1, 1) * np.random.uniform(2, 8)
x += STEP
def cost_function(A, Y, theta):
return (Y - A@theta).T@(Y - A@theta)
def batch_descent(A, Y, speed=0.001):
theta = np.array(INITIAL_THETA.copy(), dtype=np.float32)
theta.reshape((len(theta), 1))
previous_cost = 10 ** 6
current_cost = cost_function(A, Y, theta)
while np.abs(previous_cost - current_cost) > EPS:
previous_cost = current_cost
derivatives = [0] * len(theta)
# ---------------------------------------------
for j in range(len(theta)):
summ = 0
for i in range(len(Y)):
summ += (Y[i] - A[i]@theta) * A[i][j]
derivatives[j] = summ
# Выполнение требования одновремменности
theta[0] += speed * derivatives[0]
theta[1] += speed * derivatives[1]
# ---------------------------------------------
current_cost = cost_function(A, Y, theta)
print("Batch cost:", current_cost)
plt.plot(theta[0], theta[1], 'ro')
return theta
def stochastic_descent(A, Y, speed=0.1):
theta = np.array(INITIAL_THETA.copy(), dtype=np.float32)
previous_cost = 10 ** 6
current_cost = cost_function(A, Y, theta)
while np.abs(previous_cost - current_cost) > EPS:
previous_cost = current_cost
# --------------------------------------
# for i in range(len(Y)):
i = np.random.randint(0, len(Y))
derivatives = [0] * len(theta)
for j in range(len(theta)):
derivatives[j] = (Y[i] - A[i]@theta) * A[i][j]
theta[0] += speed * derivatives[0]
theta[1] += speed * derivatives[1]
# --------------------------------------
current_cost = cost_function(A, Y, theta)
print("Stochastic cost:", current_cost)
plt.plot(theta[0], theta[1], 'ro')
return theta
X = np.arange(0, TOTAL * STEP, STEP)
Y = np.array([y for y in generate_sample(TOTAL)])
# Нормализацию вкрячил, чтобы парабалоид красивый был
X = (X - X.min()) / (X.max() - X.min())
A = np.empty((TOTAL, 2))
A[:, 0] = 1
A[:, 1] = X
theta = np.linalg.pinv(A).dot(Y)
print(theta, cost_function(A, Y, theta))
import time
start = time.clock()
theta_stochastic = stochastic_descent(A, Y, 0.1)
print("St:", time.clock() - start, theta_stochastic)
start = time.clock()
theta_batch = batch_descent(A, Y, 0.001)
print("Btch:", time.clock() - start, theta_batch)
| [
1,
1053,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
29911,
2891,
1964,
353,
29871,
29906,
29900,
29900,
13,
1254,
15488,
353,
29871,
29900,
29889,
29906,
29945,
13,
29923,
7024,
353,
29871,
29900,
29889,
29896,
13,
26019,
25758,
29918,
4690,
2544,
29909,
353,
518,
29929,
29892,
29871,
29896,
29946,
29962,
13,
13,
13,
1753,
3653,
29898,
29916,
1125,
13,
1678,
736,
29871,
29900,
29889,
29906,
334,
921,
718,
29871,
29941,
13,
13,
13,
1753,
5706,
29918,
11249,
29898,
7827,
29922,
29911,
2891,
1964,
1125,
13,
1678,
921,
353,
29871,
29900,
13,
1678,
1550,
921,
529,
3001,
334,
317,
4330,
29925,
29901,
13,
4706,
7709,
3653,
29898,
29916,
29897,
718,
7442,
29889,
8172,
29889,
29590,
6278,
29896,
29892,
29871,
29896,
29897,
334,
7442,
29889,
8172,
29889,
29590,
29898,
29906,
29892,
29871,
29947,
29897,
13,
4706,
921,
4619,
317,
4330,
29925,
13,
13,
13,
1753,
3438,
29918,
2220,
29898,
29909,
29892,
612,
29892,
278,
941,
1125,
13,
1678,
736,
313,
29979,
448,
319,
29992,
3416,
467,
29911,
29992,
29898,
29979,
448,
319,
29992,
3416,
29897,
13,
13,
13,
1753,
9853,
29918,
2783,
1760,
29898,
29909,
29892,
612,
29892,
6210,
29922,
29900,
29889,
29900,
29900,
29896,
1125,
13,
1678,
278,
941,
353,
7442,
29889,
2378,
29898,
26019,
25758,
29918,
4690,
2544,
29909,
29889,
8552,
3285,
26688,
29922,
9302,
29889,
7411,
29941,
29906,
29897,
13,
1678,
278,
941,
29889,
690,
14443,
3552,
2435,
29898,
3416,
511,
29871,
29896,
876,
13,
1678,
3517,
29918,
18253,
353,
29871,
29896,
29900,
3579,
29871,
29953,
13,
1678,
1857,
29918,
18253,
353,
3438,
29918,
2220,
29898,
29909,
29892,
612,
29892,
278,
941,
29897,
13,
1678,
1550,
7442,
29889,
6897,
29898,
24957,
29918,
18253,
448,
1857,
29918,
18253,
29897,
1405,
382,
7024,
29901,
13,
4706,
3517,
29918,
18253,
353,
1857,
29918,
18253,
13,
4706,
25748,
353,
518,
29900,
29962,
334,
7431,
29898,
3416,
29897,
13,
4706,
396,
448,
2683,
2683,
9072,
13,
4706,
363,
432,
297,
3464,
29898,
2435,
29898,
3416,
22164,
13,
9651,
22792,
353,
29871,
29900,
13,
9651,
363,
474,
297,
3464,
29898,
2435,
29898,
29979,
22164,
13,
18884,
22792,
4619,
313,
29979,
29961,
29875,
29962,
448,
319,
29961,
29875,
29962,
29992,
3416,
29897,
334,
319,
29961,
29875,
3816,
29926,
29962,
13,
9651,
25748,
29961,
29926,
29962,
353,
22792,
13,
4706,
396,
14966,
9518,
16990,
8847,
29975,
1263,
1587,
3288,
2835,
27659,
2387,
5395,
13,
4706,
278,
941,
29961,
29900,
29962,
4619,
6210,
334,
25748,
29961,
29900,
29962,
13,
4706,
278,
941,
29961,
29896,
29962,
4619,
6210,
334,
25748,
29961,
29896,
29962,
13,
4706,
396,
448,
2683,
2683,
9072,
13,
4706,
1857,
29918,
18253,
353,
3438,
29918,
2220,
29898,
29909,
29892,
612,
29892,
278,
941,
29897,
13,
4706,
1596,
703,
23145,
3438,
29901,
613,
1857,
29918,
18253,
29897,
13,
4706,
14770,
29889,
5317,
29898,
3416,
29961,
29900,
1402,
278,
941,
29961,
29896,
1402,
525,
307,
1495,
13,
1678,
736,
278,
941,
13,
13,
13,
1753,
380,
28225,
29918,
2783,
1760,
29898,
29909,
29892,
612,
29892,
6210,
29922,
29900,
29889,
29896,
1125,
13,
1678,
278,
941,
353,
7442,
29889,
2378,
29898,
26019,
25758,
29918,
4690,
2544,
29909,
29889,
8552,
3285,
26688,
29922,
9302,
29889,
7411,
29941,
29906,
29897,
13,
1678,
3517,
29918,
18253,
353,
29871,
29896,
29900,
3579,
29871,
29953,
13,
1678,
1857,
29918,
18253,
353,
3438,
29918,
2220,
29898,
29909,
29892,
612,
29892,
278,
941,
29897,
13,
1678,
1550,
7442,
29889,
6897,
29898,
24957,
29918,
18253,
448,
1857,
29918,
18253,
29897,
1405,
382,
7024,
29901,
13,
4706,
3517,
29918,
18253,
353,
1857,
29918,
18253,
13,
4706,
396,
448,
2683,
2683,
23648,
13,
4706,
396,
363,
474,
297,
3464,
29898,
2435,
29898,
29979,
22164,
13,
4706,
474,
353,
7442,
29889,
8172,
29889,
9502,
524,
29898,
29900,
29892,
7431,
29898,
29979,
876,
13,
4706,
25748,
353,
518,
29900,
29962,
334,
7431,
29898,
3416,
29897,
13,
4706,
363,
432,
297,
3464,
29898,
2435,
29898,
3416,
22164,
13,
9651,
25748,
29961,
29926,
29962,
353,
313,
29979,
29961,
29875,
29962,
448,
319,
29961,
29875,
29962,
29992,
3416,
29897,
334,
319,
29961,
29875,
3816,
29926,
29962,
13,
4706,
278,
941,
29961,
29900,
29962,
4619,
6210,
334,
25748,
29961,
29900,
29962,
13,
4706,
278,
941,
29961,
29896,
29962,
4619,
6210,
334,
25748,
29961,
29896,
29962,
13,
4706,
396,
448,
2683,
2683,
23648,
13,
4706,
1857,
29918,
18253,
353,
3438,
29918,
2220,
29898,
29909,
29892,
612,
29892,
278,
941,
29897,
13,
4706,
1596,
703,
20754,
305,
6288,
3438,
29901,
613,
1857,
29918,
18253,
29897,
13,
4706,
14770,
29889,
5317,
29898,
3416,
29961,
29900,
1402,
278,
941,
29961,
29896,
1402,
525,
307,
1495,
13,
1678,
736,
278,
941,
13,
13,
29990,
353,
7442,
29889,
279,
927,
29898,
29900,
29892,
323,
2891,
1964,
334,
317,
4330,
29925,
29892,
317,
4330,
29925,
29897,
13,
29979,
353,
7442,
29889,
2378,
4197,
29891,
363,
343,
297,
5706,
29918,
11249,
29898,
29911,
2891,
1964,
29897,
2314,
13,
13,
29937,
28664,
1155,
19129,
13603,
490,
29951,
2359,
20124,
29892,
18421,
19714,
3102,
843,
29917,
29957,
6697,
1325,
28582,
4601,
13,
29990,
353,
313,
29990,
448,
1060,
29889,
1195,
3101,
847,
313,
29990,
29889,
3317,
580,
448,
1060,
29889,
1195,
3101,
13,
13,
29909,
353,
7442,
29889,
6310,
3552,
29911,
2891,
1964,
29892,
29871,
29906,
876,
13,
29909,
7503,
29892,
29871,
29900,
29962,
353,
29871,
29896,
13,
29909,
7503,
29892,
29871,
29896,
29962,
353,
1060,
13,
13,
3416,
353,
7442,
29889,
29880,
979,
29887,
29889,
29886,
11569,
29898,
29909,
467,
6333,
29898,
29979,
29897,
13,
2158,
29898,
3416,
29892,
3438,
29918,
2220,
29898,
29909,
29892,
612,
29892,
278,
941,
876,
13,
13,
5215,
931,
13,
2962,
353,
931,
29889,
13058,
580,
13,
3416,
29918,
303,
28225,
353,
380,
28225,
29918,
2783,
1760,
29898,
29909,
29892,
612,
29892,
29871,
29900,
29889,
29896,
29897,
13,
2158,
703,
855,
29901,
613,
931,
29889,
13058,
580,
448,
1369,
29892,
278,
941,
29918,
303,
28225,
29897,
13,
13,
2962,
353,
931,
29889,
13058,
580,
13,
3416,
29918,
16175,
353,
9853,
29918,
2783,
1760,
29898,
29909,
29892,
612,
29892,
29871,
29900,
29889,
29900,
29900,
29896,
29897,
13,
2158,
703,
29933,
29873,
305,
29901,
613,
931,
29889,
13058,
580,
448,
1369,
29892,
278,
941,
29918,
16175,
29897,
13,
2
] |
tests/mlmax/test_local_deployments.py | yinsong1986/mlmax | 56 | 40705 | <gh_stars>10-100
import datatest as dt
import pytest
from sagemaker.processing import ProcessingInput, ProcessingOutput
from sagemaker.sklearn.estimator import SKLearn
from sagemaker.sklearn.processing import SKLearnProcessor
# These tests are skipped unless pytest is run with the `--smlocal` flag.
# These tests will be run in Python inspect mode if pytest is run with the
# `--smlocal --inspectlocal` flags.
# For local training a dummy role will be sufficient
role = "arn:aws:iam::111111111111:role/service-role/AmazonSageMaker-ExecutionRole-20200101T000001"
@pytest.fixture()
def processor(inspectlocal):
processor = SKLearnProcessor(
framework_version="0.20.0",
instance_count=1,
instance_type="local",
role=role,
max_runtime_in_seconds=1200,
env={"PYTHONINSPECT": "1"} if inspectlocal else None,
)
return processor
@dt.working_directory(__file__)
@pytest.mark.smlocal
def test_preprocessing_script_in_local_container(processor):
code_path = "../../src/mlmax/preprocessing.py"
execution_mode = "tr ain" # Configure to either 'train', or 'infer'
input_data_path = "input/census-income-sample.csv"
local_data_path = "opt/ml/processing/input"
processor.run(
code=code_path,
inputs=[
ProcessingInput(
source=local_data_path, destination="/opt/ml/processing/input"
)
],
outputs=[
ProcessingOutput(
source="/opt/ml/processing/train", output_name="train_data",
),
ProcessingOutput(
source="/opt/ml/processing/test", output_name="test_data",
),
ProcessingOutput(
source="/opt/ml/processing/model", output_name="proc_model",
),
],
arguments=[
"--train-test-split-ratio",
"0.2",
"--mode",
execution_mode,
"--data-input",
input_data_path,
],
wait=False,
)
@dt.working_directory(__file__)
@pytest.mark.smlocal
def test_training_script_in_local_container(inspectlocal):
code_path = "../../src/mlmax/train.py"
train_data_path = "opt/ml/processing/train/"
test_data_path = "opt/ml/processing/test/"
sklearn = SKLearn(
entry_point=code_path,
role=role,
py_version="py3",
framework_version="0.20.0",
instance_type="local",
hyperparameters={"inspect": True if inspectlocal else None},
)
sklearn.fit(
{"train": "file://" + train_data_path, "test": "file://" + test_data_path},
wait=True,
)
@dt.working_directory(__file__)
@pytest.mark.smlocal
def test_inference_script_in_local_container(processor):
code_path = "../../src/mlmax/inference.py"
local_data_path = "opt/ml/processing/input"
model_path = "opt/ml/processing/model"
processor.run(
code=code_path,
inputs=[
ProcessingInput(
source=local_data_path,
destination="/opt/ml/processing/input",
input_name="input",
),
ProcessingInput(
source=model_path,
destination="/opt/ml/processing/model",
input_name="model",
),
],
outputs=[
ProcessingOutput(source="/opt/ml/processing/test", output_name="test_data",)
],
wait=False,
)
@dt.working_directory(__file__)
@pytest.mark.smlocal
def test_evaluation_script_in_local_container(processor):
code_path = "../../src/mlmax/evaluation.py"
local_data_path = "opt/ml/processing/test"
model_path = "opt/ml/processing/model"
processor.run(
code=code_path,
inputs=[
ProcessingInput(
source=local_data_path,
destination="/opt/ml/processing/test",
input_name="input",
),
ProcessingInput(
source=model_path,
destination="/opt/ml/processing/model",
input_name="model",
),
],
outputs=[
ProcessingOutput(
source="/opt/ml/processing/evaluation", output_name="evaluation",
)
],
wait=False,
)
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
1418,
271,
342,
408,
11636,
13,
5215,
11451,
1688,
13,
3166,
269,
13904,
5790,
29889,
19170,
1053,
10554,
292,
4290,
29892,
10554,
292,
6466,
13,
3166,
269,
13904,
5790,
29889,
808,
19668,
29889,
342,
326,
1061,
1053,
18581,
29931,
799,
29876,
13,
3166,
269,
13904,
5790,
29889,
808,
19668,
29889,
19170,
1053,
18581,
29931,
799,
29876,
18689,
13,
13,
29937,
4525,
6987,
526,
14993,
2986,
6521,
11451,
1688,
338,
1065,
411,
278,
22974,
3844,
2997,
29952,
7353,
29889,
13,
29937,
4525,
6987,
674,
367,
1065,
297,
5132,
16096,
4464,
565,
11451,
1688,
338,
1065,
411,
278,
13,
29937,
22974,
3844,
2997,
1192,
1144,
1103,
2997,
29952,
13449,
29889,
13,
13,
29937,
1152,
1887,
6694,
263,
20254,
6297,
674,
367,
8002,
13,
12154,
353,
376,
2753,
29901,
10467,
29901,
2829,
1057,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29901,
12154,
29914,
5509,
29899,
12154,
29914,
29909,
655,
6626,
29903,
482,
29924,
5790,
29899,
20418,
16727,
29899,
29906,
29900,
29906,
29900,
29900,
29896,
29900,
29896,
29911,
29900,
29900,
29900,
29900,
29900,
29896,
29908,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
580,
13,
1753,
21433,
29898,
1144,
1103,
2997,
1125,
13,
1678,
21433,
353,
18581,
29931,
799,
29876,
18689,
29898,
13,
4706,
6890,
29918,
3259,
543,
29900,
29889,
29906,
29900,
29889,
29900,
613,
13,
4706,
2777,
29918,
2798,
29922,
29896,
29892,
13,
4706,
2777,
29918,
1853,
543,
2997,
613,
13,
4706,
6297,
29922,
12154,
29892,
13,
4706,
4236,
29918,
15634,
29918,
262,
29918,
23128,
29922,
29896,
29906,
29900,
29900,
29892,
13,
4706,
8829,
3790,
29908,
20055,
4690,
1164,
1177,
29903,
4162,
1783,
1115,
376,
29896,
9092,
565,
16096,
2997,
1683,
6213,
29892,
13,
1678,
1723,
13,
1678,
736,
21433,
13,
13,
13,
29992,
6008,
29889,
22899,
29918,
12322,
22168,
1445,
1649,
29897,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3844,
2997,
13,
1753,
1243,
29918,
1457,
19170,
29918,
2154,
29918,
262,
29918,
2997,
29918,
7611,
29898,
26482,
1125,
13,
1678,
775,
29918,
2084,
353,
376,
21546,
4351,
29914,
828,
3317,
29914,
1457,
19170,
29889,
2272,
29908,
13,
1678,
8225,
29918,
8513,
353,
376,
509,
7216,
29908,
29871,
396,
1281,
4532,
304,
2845,
525,
14968,
742,
470,
525,
262,
571,
29915,
13,
1678,
1881,
29918,
1272,
29918,
2084,
353,
376,
2080,
29914,
29883,
8841,
29899,
262,
2763,
29899,
11249,
29889,
7638,
29908,
13,
1678,
1887,
29918,
1272,
29918,
2084,
353,
376,
3670,
29914,
828,
29914,
19170,
29914,
2080,
29908,
13,
13,
1678,
21433,
29889,
3389,
29898,
13,
4706,
775,
29922,
401,
29918,
2084,
29892,
13,
4706,
10970,
11759,
13,
9651,
10554,
292,
4290,
29898,
13,
18884,
2752,
29922,
2997,
29918,
1272,
29918,
2084,
29892,
12551,
13802,
3670,
29914,
828,
29914,
19170,
29914,
2080,
29908,
13,
9651,
1723,
13,
4706,
21251,
13,
4706,
14391,
11759,
13,
9651,
10554,
292,
6466,
29898,
13,
18884,
2752,
13802,
3670,
29914,
828,
29914,
19170,
29914,
14968,
613,
1962,
29918,
978,
543,
14968,
29918,
1272,
613,
13,
9651,
10353,
13,
9651,
10554,
292,
6466,
29898,
13,
18884,
2752,
13802,
3670,
29914,
828,
29914,
19170,
29914,
1688,
613,
1962,
29918,
978,
543,
1688,
29918,
1272,
613,
13,
9651,
10353,
13,
9651,
10554,
292,
6466,
29898,
13,
18884,
2752,
13802,
3670,
29914,
828,
29914,
19170,
29914,
4299,
613,
1962,
29918,
978,
543,
15439,
29918,
4299,
613,
13,
9651,
10353,
13,
4706,
21251,
13,
4706,
6273,
11759,
13,
9651,
376,
489,
14968,
29899,
1688,
29899,
5451,
29899,
3605,
601,
613,
13,
9651,
376,
29900,
29889,
29906,
613,
13,
9651,
376,
489,
8513,
613,
13,
9651,
8225,
29918,
8513,
29892,
13,
9651,
376,
489,
1272,
29899,
2080,
613,
13,
9651,
1881,
29918,
1272,
29918,
2084,
29892,
13,
4706,
21251,
13,
4706,
4480,
29922,
8824,
29892,
13,
1678,
1723,
13,
13,
13,
29992,
6008,
29889,
22899,
29918,
12322,
22168,
1445,
1649,
29897,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3844,
2997,
13,
1753,
1243,
29918,
26495,
29918,
2154,
29918,
262,
29918,
2997,
29918,
7611,
29898,
1144,
1103,
2997,
1125,
13,
1678,
775,
29918,
2084,
353,
376,
21546,
4351,
29914,
828,
3317,
29914,
14968,
29889,
2272,
29908,
13,
1678,
7945,
29918,
1272,
29918,
2084,
353,
376,
3670,
29914,
828,
29914,
19170,
29914,
14968,
12975,
13,
1678,
1243,
29918,
1272,
29918,
2084,
353,
376,
3670,
29914,
828,
29914,
19170,
29914,
1688,
12975,
13,
13,
1678,
2071,
19668,
353,
18581,
29931,
799,
29876,
29898,
13,
4706,
6251,
29918,
3149,
29922,
401,
29918,
2084,
29892,
13,
4706,
6297,
29922,
12154,
29892,
13,
4706,
11451,
29918,
3259,
543,
2272,
29941,
613,
13,
4706,
6890,
29918,
3259,
543,
29900,
29889,
29906,
29900,
29889,
29900,
613,
13,
4706,
2777,
29918,
1853,
543,
2997,
613,
13,
4706,
11266,
16744,
3790,
29908,
1144,
1103,
1115,
5852,
565,
16096,
2997,
1683,
6213,
1118,
13,
1678,
1723,
13,
1678,
2071,
19668,
29889,
9202,
29898,
13,
4706,
8853,
14968,
1115,
376,
1445,
597,
29908,
718,
7945,
29918,
1272,
29918,
2084,
29892,
376,
1688,
1115,
376,
1445,
597,
29908,
718,
1243,
29918,
1272,
29918,
2084,
1118,
13,
4706,
4480,
29922,
5574,
29892,
13,
1678,
1723,
13,
13,
13,
29992,
6008,
29889,
22899,
29918,
12322,
22168,
1445,
1649,
29897,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3844,
2997,
13,
1753,
1243,
29918,
262,
1659,
29918,
2154,
29918,
262,
29918,
2997,
29918,
7611,
29898,
26482,
1125,
13,
1678,
775,
29918,
2084,
353,
376,
21546,
4351,
29914,
828,
3317,
29914,
262,
1659,
29889,
2272,
29908,
13,
1678,
1887,
29918,
1272,
29918,
2084,
353,
376,
3670,
29914,
828,
29914,
19170,
29914,
2080,
29908,
13,
1678,
1904,
29918,
2084,
353,
376,
3670,
29914,
828,
29914,
19170,
29914,
4299,
29908,
13,
13,
1678,
21433,
29889,
3389,
29898,
13,
4706,
775,
29922,
401,
29918,
2084,
29892,
13,
4706,
10970,
11759,
13,
9651,
10554,
292,
4290,
29898,
13,
18884,
2752,
29922,
2997,
29918,
1272,
29918,
2084,
29892,
13,
18884,
12551,
13802,
3670,
29914,
828,
29914,
19170,
29914,
2080,
613,
13,
18884,
1881,
29918,
978,
543,
2080,
613,
13,
9651,
10353,
13,
9651,
10554,
292,
4290,
29898,
13,
18884,
2752,
29922,
4299,
29918,
2084,
29892,
13,
18884,
12551,
13802,
3670,
29914,
828,
29914,
19170,
29914,
4299,
613,
13,
18884,
1881,
29918,
978,
543,
4299,
613,
13,
9651,
10353,
13,
4706,
21251,
13,
4706,
14391,
11759,
13,
9651,
10554,
292,
6466,
29898,
4993,
13802,
3670,
29914,
828,
29914,
19170,
29914,
1688,
613,
1962,
29918,
978,
543,
1688,
29918,
1272,
613,
29897,
13,
4706,
21251,
13,
4706,
4480,
29922,
8824,
29892,
13,
1678,
1723,
13,
13,
13,
29992,
6008,
29889,
22899,
29918,
12322,
22168,
1445,
1649,
29897,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3844,
2997,
13,
1753,
1243,
29918,
24219,
362,
29918,
2154,
29918,
262,
29918,
2997,
29918,
7611,
29898,
26482,
1125,
13,
1678,
775,
29918,
2084,
353,
376,
21546,
4351,
29914,
828,
3317,
29914,
24219,
362,
29889,
2272,
29908,
13,
1678,
1887,
29918,
1272,
29918,
2084,
353,
376,
3670,
29914,
828,
29914,
19170,
29914,
1688,
29908,
13,
1678,
1904,
29918,
2084,
353,
376,
3670,
29914,
828,
29914,
19170,
29914,
4299,
29908,
13,
13,
1678,
21433,
29889,
3389,
29898,
13,
4706,
775,
29922,
401,
29918,
2084,
29892,
13,
4706,
10970,
11759,
13,
9651,
10554,
292,
4290,
29898,
13,
18884,
2752,
29922,
2997,
29918,
1272,
29918,
2084,
29892,
13,
18884,
12551,
13802,
3670,
29914,
828,
29914,
19170,
29914,
1688,
613,
13,
18884,
1881,
29918,
978,
543,
2080,
613,
13,
9651,
10353,
13,
9651,
10554,
292,
4290,
29898,
13,
18884,
2752,
29922,
4299,
29918,
2084,
29892,
13,
18884,
12551,
13802,
3670,
29914,
828,
29914,
19170,
29914,
4299,
613,
13,
18884,
1881,
29918,
978,
543,
4299,
613,
13,
9651,
10353,
13,
4706,
21251,
13,
4706,
14391,
11759,
13,
9651,
10554,
292,
6466,
29898,
13,
18884,
2752,
13802,
3670,
29914,
828,
29914,
19170,
29914,
24219,
362,
613,
1962,
29918,
978,
543,
24219,
362,
613,
13,
9651,
1723,
13,
4706,
21251,
13,
4706,
4480,
29922,
8824,
29892,
13,
1678,
1723,
13,
2
] |
venv/lib/python3.7/site-packages/datalad/interface/utils.py | emmetaobrien/dats-validator | 0 | 196611 | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
"""Interface utility functions
"""
__docformat__ = 'restructuredtext'
import inspect
import logging
import wrapt
import sys
import re
import shlex
from os import curdir
from os import pardir
from os import listdir
from os.path import join as opj
from os.path import isdir
from os.path import relpath
from os.path import sep
from os.path import split as psplit
from itertools import chain
from six import PY2
import json
# avoid import from API to not get into circular imports
from datalad.utils import with_pathsep as _with_sep # TODO: RF whenever merge conflict is not upon us
from datalad.utils import path_startswith
from datalad.utils import path_is_subpath
from datalad.utils import assure_unicode
from datalad.support.gitrepo import GitRepo
from datalad.support.exceptions import IncompleteResultsError
from datalad import cfg as dlcfg
from datalad.dochelpers import exc_str
from datalad.support.constraints import Constraint
from datalad.ui import ui
import datalad.support.ansi_colors as ac
from datalad.interface.base import Interface
from datalad.interface.base import default_logchannels
from datalad.interface.base import get_allargs_as_kwargs
from datalad.interface.common_opts import eval_params
from datalad.interface.common_opts import eval_defaults
from .results import known_result_xfms
lgr = logging.getLogger('datalad.interface.utils')
def cls2cmdlinename(cls):
"Return the cmdline command name from an Interface class"
r = re.compile(r'([a-z0-9])([A-Z])')
return r.sub('\\1-\\2', cls.__name__).lower()
# TODO remove
# only `drop` and `uninstall` are still using this
def handle_dirty_dataset(ds, mode, msg=None):
"""Detect and treat unsaved changes as instructed by `mode`
Parameters
----------
ds : Dataset or None
Dataset to be inspected. Does nothing if `None`.
mode : {'fail', 'ignore', 'save-before'}
How to act upon discovering unsaved changes.
msg : str or None
Custom message to use for a potential commit.
Returns
-------
None
"""
if ds is None:
# nothing to be handled
return
if msg is None:
msg = '[DATALAD] auto-saved changes'
# make sure that all pending changes (batched annex operations, etc.)
# are actually reflected in Git
if ds.repo:
ds.repo.precommit()
if mode == 'ignore':
return
elif mode == 'fail':
if not ds.repo or ds.repo.is_dirty(index=True,
untracked_files=True,
submodules=True):
raise RuntimeError('dataset {} has unsaved changes'.format(ds))
elif mode == 'save-before':
if not ds.is_installed():
raise RuntimeError('dataset {} is not yet installed'.format(ds))
from datalad.interface.save import Save
Save.__call__(dataset=ds, message=msg)
else:
raise ValueError("unknown if-dirty mode '{}'".format(mode))
def get_tree_roots(paths):
"""Return common root paths for a set of paths
This function determines the smallest set of common root
paths and sorts all given paths under the respective
root.
Returns
-------
dict
paths by root
"""
paths_ws = [_with_sep(p) for p in paths]
# sort all paths under their potential roots
roots = {}
# start from the top to get all paths down the line
# and collate them into as few roots as possible
for s in sorted(paths_ws):
if any([s.startswith(r) for r in roots]):
# this path is already covered by a known root
continue
# find all sub paths
subs = [p for p in paths if p.startswith(s)]
roots[s.rstrip(sep)] = subs
return roots
# TODO remove
# only `remove` and `uninstall` use this, the uses path `path_is_subpath`
def path_is_under(values, path=None):
"""Whether a given path is a subdirectory of any of the given test values
Parameters
----------
values : sequence or dict
Paths to be tested against. This can be a dictionary in which case
all values from all keys will be tested against.
path : path or None
Test path. If None is given, the process' working directory is
used.
Returns
-------
bool
"""
if path is None:
from datalad.utils import getpwd
path = getpwd()
if isinstance(values, dict):
values = chain(*values.values())
for p in values:
rpath = relpath(p, start=path)
if rpath == curdir \
or rpath == pardir \
or set(psplit(rpath)) == {pardir}:
# first match is enough
return True
return False
def discover_dataset_trace_to_targets(basepath, targetpaths, current_trace,
spec, includeds=None):
"""Discover the edges and nodes in a dataset tree to given target paths
Parameters
----------
basepath : path
Path to a start or top-level dataset. Really has to be a path to a
dataset!
targetpaths : list(path)
Any non-zero number of paths that are termination points for the
search algorithm. Can be paths to datasets, directories, or files
(and any combination thereof).
current_trace : list
For a top-level call this should probably always be `[]`
spec : dict
`content_by_ds`-style dictionary that will receive information about the
discovered datasets. Specifically, for each discovered dataset there
will be in item with its path under the key (path) of the respective
superdataset.
includeds : sequence, optional
Any paths given are treated as existing subdatasets, regardless of
whether they can be found in the filesystem. Such subdatasets will appear
under the key of the closest existing dataset in the `spec`.
Returns
-------
None
Function calls itself recursively and populates `spec` dict in-place.
Keys are dataset paths, values are sets of subdataset paths
"""
# convert to set for faster lookup
includeds = includeds if isinstance(includeds, set) else \
set() if includeds is None else set(includeds)
# this beast walks the directory tree from a given `basepath` until
# it discovers any of the given `targetpaths`
# if it finds one, it commits any accummulated trace of visited
# datasets on this edge to the spec
valid_repo = GitRepo.is_valid_repo(basepath)
if valid_repo:
# we are passing into a new dataset, extend the dataset trace
current_trace = current_trace + [basepath]
# this edge is not done, we need to try to reach any downstream
# dataset
undiscovered_ds = set(t for t in targetpaths) # if t != basepath)
# whether anything in this directory matched a targetpath
filematch = False
if isdir(basepath):
for p in listdir(basepath):
p = assure_unicode(opj(basepath, p))
if not isdir(p):
if p in targetpaths:
filematch = True
# we cannot have anything below this one
continue
# OPT listdir might be large and we could have only few items
# in `targetpaths` -- so traverse only those in spec which have
# leading dir basepath
# filter targets matching this downward path
downward_targets = set(
t for t in targetpaths if path_startswith(t, p))
if not downward_targets:
continue
# remove the matching ones from the "todo" list
undiscovered_ds.difference_update(downward_targets)
# go one deeper
discover_dataset_trace_to_targets(
p, downward_targets, current_trace, spec,
includeds=includeds if not includeds else includeds.intersection(
downward_targets))
undiscovered_ds = [t for t in undiscovered_ds
if includeds and
path_is_subpath(t, current_trace[-1]) and
t in includeds]
if filematch or basepath in targetpaths or undiscovered_ds:
for i, p in enumerate(current_trace[:-1]):
# TODO RF prepare proper annotated path dicts
subds = spec.get(p, set())
subds.add(current_trace[i + 1])
spec[p] = subds
if undiscovered_ds:
spec[current_trace[-1]] = spec.get(current_trace[-1], set()).union(
undiscovered_ds)
def eval_results(func):
"""Decorator for return value evaluation of datalad commands.
Note, this decorator is only compatible with commands that return
status dict sequences!
Two basic modes of operation are supported: 1) "generator mode" that
`yields` individual results, and 2) "list mode" that returns a sequence of
results. The behavior can be selected via the kwarg `return_type`.
Default is "list mode".
This decorator implements common functionality for result rendering/output,
error detection/handling, and logging.
Result rendering/output can be triggered via the
`datalad.api.result-renderer` configuration variable, or the
`result_renderer` keyword argument of each decorated command. Supported
modes are: 'default' (one line per result with action, status, path,
and an optional message); 'json' (one object per result, like git-annex),
'json_pp' (like 'json', but pretty-printed spanning multiple lines),
'tailored' custom output formatting provided by each command
class (if any).
Error detection works by inspecting the `status` item of all result
dictionaries. Any occurrence of a status other than 'ok' or 'notneeded'
will cause an IncompleteResultsError exception to be raised that carries
the failed actions' status dictionaries in its `failed` attribute.
Status messages will be logged automatically, by default the following
association of result status and log channel will be used: 'ok' (debug),
'notneeded' (debug), 'impossible' (warning), 'error' (error). Logger
instances included in the results are used to capture the origin of a
status report.
Parameters
----------
func: function
__call__ method of a subclass of Interface,
i.e. a datalad command definition
"""
@wrapt.decorator
def eval_func(wrapped, instance, args, kwargs):
# for result filters and pre/post procedures
# we need to produce a dict with argname/argvalue pairs for all args
# incl. defaults and args given as positionals
allkwargs = get_allargs_as_kwargs(wrapped, args, kwargs)
# determine class, the __call__ method of which we are decorating:
# Ben: Note, that this is a bit dirty in PY2 and imposes restrictions on
# when and how to use eval_results as well as on how to name a command's
# module and class. As of now, we are inline with these requirements as
# far as I'm aware.
mod = sys.modules[wrapped.__module__]
if PY2:
# we rely on:
# - decorated function is method of a subclass of Interface
# - the name of the class matches the last part of the module's name
# if converted to lower
# for example:
# ..../where/ever/mycommand.py:
# class MyCommand(Interface):
# @eval_results
# def __call__(..)
command_class_names = \
[i for i in mod.__dict__
if type(mod.__dict__[i]) == type and
issubclass(mod.__dict__[i], Interface) and
i.lower().startswith(wrapped.__module__.split('.')[-1].replace('datalad_', '').replace('_', ''))]
assert len(command_class_names) == 1, (command_class_names, mod.__name__)
command_class_name = command_class_names[0]
else:
command_class_name = wrapped.__qualname__.split('.')[-2]
_func_class = mod.__dict__[command_class_name]
lgr.debug("Determined class of decorated function: %s", _func_class)
# retrieve common options from kwargs, and fall back on the command
# class attributes, or general defaults if needed
kwargs = kwargs.copy() # we will pop, which might cause side-effect
common_params = {
p_name: kwargs.pop(
p_name,
getattr(_func_class, p_name, eval_defaults[p_name]))
for p_name in eval_params}
# short cuts and configured setup for common options
on_failure = common_params['on_failure']
return_type = common_params['return_type']
# resolve string labels for transformers too
result_xfm = common_params['result_xfm']
if result_xfm in known_result_xfms:
result_xfm = known_result_xfms[result_xfm]
result_renderer = common_params['result_renderer']
# TODO remove this conditional branch entirely, done outside
if not result_renderer:
result_renderer = dlcfg.get('datalad.api.result-renderer', None)
# wrap the filter into a helper to be able to pass additional arguments
# if the filter supports it, but at the same time keep the required interface
# as minimal as possible. Also do this here, in order to avoid this test
# to be performed for each return value
result_filter = common_params['result_filter']
_result_filter = result_filter
if result_filter:
if isinstance(result_filter, Constraint):
_result_filter = result_filter.__call__
if (PY2 and inspect.getargspec(_result_filter).keywords) or \
(not PY2 and inspect.getfullargspec(_result_filter).varkw):
def _result_filter(res):
return result_filter(res, **allkwargs)
def _get_procedure_specs(param_key=None, cfg_key=None, ds=None):
spec = common_params.get(param_key, None)
if spec is not None:
# this is already a list of lists
return spec
from datalad.distribution.dataset import Dataset
ds = ds if isinstance(ds, Dataset) else Dataset(ds) if ds else None
spec = (ds.config if ds and ds.is_installed()
else dlcfg).get(cfg_key, None)
if spec is None:
return
elif not isinstance(spec, tuple):
spec = [spec]
return [shlex.split(s) for s in spec]
# query cfg for defaults
cmdline_name = cls2cmdlinename(_func_class)
dataset_arg = allkwargs.get('dataset', None)
proc_pre = _get_procedure_specs(
'proc_pre',
'datalad.{}.proc-pre'.format(cmdline_name),
ds=dataset_arg)
proc_post = _get_procedure_specs(
'proc_post',
'datalad.{}.proc-post'.format(cmdline_name),
ds=dataset_arg)
# this internal helper function actually drives the command
# generator-style, it may generate an exception if desired,
# on incomplete results
def generator_func(*_args, **_kwargs):
# flag whether to raise an exception
incomplete_results = []
# track what actions were performed how many times
action_summary = {}
if proc_pre and cmdline_name != 'run-procedure':
from datalad.interface.run_procedure import RunProcedure
for procspec in proc_pre:
lgr.debug('Running configured pre-procedure %s', procspec)
for r in _process_results(
RunProcedure.__call__(
procspec,
dataset=dataset_arg,
return_type='generator'),
_func_class, action_summary,
on_failure, incomplete_results,
result_renderer, result_xfm, result_filter,
**_kwargs):
yield r
# if a custom summary is to be provided, collect the results
# of the command execution
results = []
do_custom_result_summary = result_renderer == 'tailored' \
and hasattr(_func_class, 'custom_result_summary_renderer')
# process main results
for r in _process_results(
wrapped(*_args, **_kwargs),
_func_class, action_summary,
on_failure, incomplete_results,
result_renderer, result_xfm, _result_filter, **_kwargs):
yield r
# collect if summary is desired
if do_custom_result_summary:
results.append(r)
if proc_post and cmdline_name != 'run-procedure':
from datalad.interface.run_procedure import RunProcedure
for procspec in proc_post:
lgr.debug('Running configured post-procedure %s', procspec)
for r in _process_results(
RunProcedure.__call__(
procspec,
dataset=dataset_arg,
return_type='generator'),
_func_class, action_summary,
on_failure, incomplete_results,
result_renderer, result_xfm, result_filter,
**_kwargs):
yield r
# result summary before a potential exception
# custom first
if do_custom_result_summary:
_func_class.custom_result_summary_renderer(results)
elif result_renderer == 'default' and action_summary and \
sum(sum(s.values()) for s in action_summary.values()) > 1:
# give a summary in default mode, when there was more than one
# action performed
ui.message("action summary:\n {}".format(
'\n '.join('{} ({})'.format(
act,
', '.join('{}: {}'.format(status, action_summary[act][status])
for status in sorted(action_summary[act])))
for act in sorted(action_summary))))
if incomplete_results:
raise IncompleteResultsError(
failed=incomplete_results,
msg="Command did not complete successfully")
if return_type == 'generator':
# hand over the generator
return generator_func(*args, **kwargs)
else:
@wrapt.decorator
def return_func(wrapped_, instance_, args_, kwargs_):
results = wrapped_(*args_, **kwargs_)
if inspect.isgenerator(results):
# unwind generator if there is one, this actually runs
# any processing
results = list(results)
# render summaries
if not result_xfm and result_renderer == 'tailored':
# cannot render transformed results
if hasattr(_func_class, 'custom_result_summary_renderer'):
_func_class.custom_result_summary_renderer(results)
if return_type == 'item-or-list' and \
len(results) < 2:
return results[0] if results else None
else:
return results
return return_func(generator_func)(*args, **kwargs)
return eval_func(func)
def default_result_renderer(res):
if res.get('status', None) != 'notneeded':
ui.message('{action}({status}): {path}{type}{msg}'.format(
action=ac.color_word(res['action'], ac.BOLD),
status=ac.color_status(res['status']),
path=relpath(res['path'],
res['refds']) if res.get('refds', None) else res[
'path'],
type=' ({})'.format(
ac.color_word(res['type'], ac.MAGENTA)
) if 'type' in res else '',
msg=' [{}]'.format(
res['message'][0] % res['message'][1:]
if isinstance(res['message'], tuple) else res[
'message'])
if 'message' in res else ''))
def _process_results(
results, cmd_class,
action_summary, on_failure, incomplete_results,
result_renderer, result_xfm, result_filter, **kwargs):
# private helper pf @eval_results
# loop over results generated from some source and handle each
# of them according to the requested behavior (logging, rendering, ...)
for res in results:
if not res or 'action' not in res:
# XXX Yarik has to no clue on how to track the origin of the
# record to figure out WTF, so he just skips it
continue
if PY2:
for k, v in res.items():
if isinstance(v, unicode):
res[k] = v.encode('utf-8')
actsum = action_summary.get(res['action'], {})
if res['status']:
actsum[res['status']] = actsum.get(res['status'], 0) + 1
action_summary[res['action']] = actsum
## log message, if a logger was given
# remove logger instance from results, as it is no longer useful
# after logging was done, it isn't serializable, and generally
# pollutes the output
res_lgr = res.pop('logger', None)
if isinstance(res_lgr, logging.Logger):
# didn't get a particular log function, go with default
res_lgr = getattr(res_lgr, default_logchannels[res['status']])
if res_lgr and 'message' in res:
msg = res['message']
msgargs = None
if isinstance(msg, tuple):
msgargs = msg[1:]
msg = msg[0]
if 'path' in res:
msg = '{} [{}({})]'.format(
msg, res['action'], res['path'])
if msgargs:
# support string expansion of logging to avoid runtime cost
res_lgr(msg, *msgargs)
else:
res_lgr(msg)
## error handling
# looks for error status, and report at the end via
# an exception
if on_failure in ('continue', 'stop') \
and res['status'] in ('impossible', 'error'):
incomplete_results.append(res)
if on_failure == 'stop':
# first fail -> that's it
# raise will happen after the loop
break
if result_filter:
try:
if not result_filter(res):
raise ValueError('excluded by filter')
except ValueError as e:
lgr.debug('not reporting result (%s)', exc_str(e))
continue
## output rendering
# TODO RF this in a simple callable that gets passed into this function
if result_renderer is None or result_renderer == 'disabled':
pass
elif result_renderer == 'default':
default_result_renderer(res)
elif result_renderer in ('json', 'json_pp'):
ui.message(json.dumps(
{k: v for k, v in res.items()
if k not in ('message', 'logger')},
sort_keys=True,
indent=2 if result_renderer.endswith('_pp') else None,
default=lambda x: str(x)))
elif result_renderer == 'tailored':
if hasattr(cmd_class, 'custom_result_renderer'):
cmd_class.custom_result_renderer(res, **kwargs)
elif hasattr(result_renderer, '__call__'):
try:
result_renderer(res, **kwargs)
except Exception as e:
lgr.warn('Result rendering failed for: %s [%s]',
res, exc_str(e))
else:
raise ValueError('unknown result renderer "{}"'.format(result_renderer))
if PY2:
for k, v in res.items():
if isinstance(v, str):
res[k] = v.decode('utf-8')
if result_xfm:
res = result_xfm(res)
if res is None:
continue
yield res
| [
1,
396,
953,
16815,
29901,
448,
29930,
29899,
4464,
29901,
3017,
29936,
11451,
29899,
12860,
29899,
10289,
29901,
29871,
29946,
29936,
4434,
29899,
2103,
29901,
29871,
29946,
29936,
29536,
29899,
21175,
29899,
8513,
29901,
4263,
448,
29930,
29899,
13,
29937,
429,
29901,
731,
380,
29879,
29922,
29946,
18696,
29922,
29946,
2381,
29922,
29946,
694,
300,
29901,
13,
29937,
444,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
444,
13,
29937,
13,
29937,
259,
2823,
315,
4590,
29979,
4214,
934,
13235,
3412,
411,
278,
1418,
284,
328,
3577,
363,
278,
13,
29937,
259,
3509,
1266,
322,
19405,
4958,
29889,
13,
29937,
13,
29937,
444,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
835,
444,
13,
15945,
29908,
10448,
19725,
3168,
13,
13,
15945,
29908,
13,
13,
1649,
1514,
4830,
1649,
353,
525,
5060,
1247,
2955,
726,
29915,
13,
13,
5215,
16096,
13,
5215,
12183,
13,
5215,
11463,
415,
13,
5215,
10876,
13,
5215,
337,
13,
5215,
528,
2506,
13,
3166,
2897,
1053,
3151,
3972,
13,
3166,
2897,
1053,
282,
538,
381,
13,
3166,
2897,
1053,
1051,
3972,
13,
3166,
2897,
29889,
2084,
1053,
5988,
408,
1015,
29926,
13,
3166,
2897,
29889,
2084,
1053,
338,
3972,
13,
3166,
2897,
29889,
2084,
1053,
1104,
2084,
13,
3166,
2897,
29889,
2084,
1053,
16345,
13,
3166,
2897,
29889,
2084,
1053,
6219,
408,
282,
5451,
13,
3166,
4256,
8504,
1053,
9704,
13,
3166,
4832,
1053,
349,
29979,
29906,
13,
13,
5215,
4390,
13,
13,
29937,
4772,
1053,
515,
3450,
304,
451,
679,
964,
19308,
24802,
13,
3166,
1418,
284,
328,
29889,
13239,
1053,
411,
29918,
2084,
19570,
408,
903,
2541,
29918,
19570,
29871,
396,
14402,
29901,
390,
29943,
10940,
10366,
14529,
338,
451,
2501,
502,
13,
3166,
1418,
284,
328,
29889,
13239,
1053,
2224,
29918,
27382,
2541,
13,
3166,
1418,
284,
328,
29889,
13239,
1053,
2224,
29918,
275,
29918,
1491,
2084,
13,
3166,
1418,
284,
328,
29889,
13239,
1053,
1223,
545,
29918,
2523,
356,
13,
3166,
1418,
284,
328,
29889,
5924,
29889,
5559,
20095,
1053,
11786,
5612,
29877,
13,
3166,
1418,
284,
328,
29889,
5924,
29889,
11739,
29879,
1053,
512,
8835,
12191,
2392,
13,
3166,
1418,
284,
328,
1053,
274,
16434,
408,
270,
29880,
16859,
13,
3166,
1418,
284,
328,
29889,
1867,
305,
295,
6774,
1053,
5566,
29918,
710,
13,
13,
13,
3166,
1418,
284,
328,
29889,
5924,
29889,
13646,
29879,
1053,
1281,
4151,
524,
13,
13,
3166,
1418,
284,
328,
29889,
1481,
1053,
14313,
13,
5215,
1418,
284,
328,
29889,
5924,
29889,
550,
29875,
29918,
27703,
408,
1274,
13,
13,
3166,
1418,
284,
328,
29889,
13248,
29889,
3188,
1053,
25796,
13,
3166,
1418,
284,
328,
29889,
13248,
29889,
3188,
1053,
2322,
29918,
1188,
305,
12629,
13,
3166,
1418,
284,
328,
29889,
13248,
29889,
3188,
1053,
679,
29918,
497,
5085,
29918,
294,
29918,
19290,
13,
3166,
1418,
284,
328,
29889,
13248,
29889,
9435,
29918,
25707,
1053,
19745,
29918,
7529,
13,
3166,
1418,
284,
328,
29889,
13248,
29889,
9435,
29918,
25707,
1053,
19745,
29918,
4381,
29879,
13,
3166,
869,
9902,
1053,
2998,
29918,
2914,
29918,
24660,
1516,
13,
13,
13,
29880,
629,
353,
12183,
29889,
657,
16363,
877,
29881,
2075,
328,
29889,
13248,
29889,
13239,
1495,
13,
13,
13,
1753,
1067,
29879,
29906,
9006,
1915,
3871,
29898,
25932,
1125,
13,
1678,
376,
11609,
278,
9920,
1220,
1899,
1024,
515,
385,
25796,
770,
29908,
13,
1678,
364,
353,
337,
29889,
12198,
29898,
29878,
29915,
4197,
29874,
29899,
29920,
29900,
29899,
29929,
2314,
4197,
29909,
29899,
29999,
2314,
1495,
13,
1678,
736,
364,
29889,
1491,
877,
1966,
29896,
29899,
1966,
29906,
742,
1067,
29879,
17255,
978,
1649,
467,
13609,
580,
13,
13,
13,
29937,
14402,
3349,
13,
29937,
871,
421,
8865,
29952,
322,
421,
348,
6252,
29952,
526,
1603,
773,
445,
13,
1753,
4386,
29918,
3972,
1017,
29918,
24713,
29898,
6289,
29892,
4464,
29892,
10191,
29922,
8516,
1125,
13,
1678,
9995,
6362,
522,
322,
7539,
9644,
10511,
3620,
408,
18690,
287,
491,
421,
8513,
29952,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
18031,
584,
13373,
24541,
470,
6213,
13,
418,
13373,
24541,
304,
367,
1663,
6021,
29889,
5538,
3078,
565,
421,
8516,
1412,
13,
1678,
4464,
584,
11117,
14057,
742,
525,
17281,
742,
525,
7620,
29899,
11083,
10827,
13,
418,
1128,
304,
1044,
2501,
6523,
292,
9644,
10511,
3620,
29889,
13,
1678,
10191,
584,
851,
470,
6213,
13,
418,
8701,
2643,
304,
671,
363,
263,
7037,
9063,
29889,
13,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
1678,
6213,
13,
1678,
9995,
13,
1678,
565,
18031,
338,
6213,
29901,
13,
4706,
396,
3078,
304,
367,
16459,
13,
4706,
736,
13,
1678,
565,
10191,
338,
6213,
29901,
13,
4706,
10191,
353,
525,
29961,
25832,
1964,
3035,
29962,
4469,
29899,
17314,
3620,
29915,
13,
13,
1678,
396,
1207,
1854,
393,
599,
28235,
3620,
313,
16175,
287,
385,
13996,
6931,
29892,
2992,
1846,
13,
1678,
396,
526,
2869,
25312,
297,
11786,
13,
1678,
565,
18031,
29889,
20095,
29901,
13,
4706,
18031,
29889,
20095,
29889,
1457,
15060,
580,
13,
13,
1678,
565,
4464,
1275,
525,
17281,
2396,
13,
4706,
736,
13,
1678,
25342,
4464,
1275,
525,
14057,
2396,
13,
4706,
565,
451,
18031,
29889,
20095,
470,
18031,
29889,
20095,
29889,
275,
29918,
3972,
1017,
29898,
2248,
29922,
5574,
29892,
13,
462,
462,
965,
443,
11294,
287,
29918,
5325,
29922,
5574,
29892,
13,
462,
462,
965,
1014,
7576,
29922,
5574,
1125,
13,
9651,
12020,
24875,
2392,
877,
24713,
6571,
756,
9644,
10511,
3620,
4286,
4830,
29898,
6289,
876,
13,
1678,
25342,
4464,
1275,
525,
7620,
29899,
11083,
2396,
13,
4706,
565,
451,
18031,
29889,
275,
29918,
25537,
7295,
13,
9651,
12020,
24875,
2392,
877,
24713,
6571,
338,
451,
3447,
5130,
4286,
4830,
29898,
6289,
876,
13,
4706,
515,
1418,
284,
328,
29889,
13248,
29889,
7620,
1053,
16913,
13,
4706,
16913,
17255,
4804,
12035,
24713,
29922,
6289,
29892,
2643,
29922,
7645,
29897,
13,
1678,
1683,
29901,
13,
4706,
12020,
7865,
2392,
703,
26690,
565,
29899,
3972,
1017,
4464,
525,
8875,
29915,
1642,
4830,
29898,
8513,
876,
13,
13,
13,
1753,
679,
29918,
8336,
29918,
307,
1862,
29898,
24772,
1125,
13,
1678,
9995,
11609,
3619,
3876,
10898,
363,
263,
731,
310,
10898,
13,
13,
1678,
910,
740,
3683,
1475,
278,
19087,
731,
310,
3619,
3876,
13,
1678,
10898,
322,
23551,
599,
2183,
10898,
1090,
278,
18067,
13,
1678,
3876,
29889,
13,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
1678,
9657,
13,
418,
10898,
491,
3876,
13,
1678,
9995,
13,
1678,
10898,
29918,
5652,
353,
23160,
2541,
29918,
19570,
29898,
29886,
29897,
363,
282,
297,
10898,
29962,
13,
1678,
396,
2656,
599,
10898,
1090,
1009,
7037,
16778,
13,
1678,
16778,
353,
6571,
13,
1678,
396,
1369,
515,
278,
2246,
304,
679,
599,
10898,
1623,
278,
1196,
13,
1678,
396,
322,
5321,
403,
963,
964,
408,
2846,
16778,
408,
1950,
13,
1678,
363,
269,
297,
12705,
29898,
24772,
29918,
5652,
1125,
13,
4706,
565,
738,
4197,
29879,
29889,
27382,
2541,
29898,
29878,
29897,
363,
364,
297,
16778,
29962,
1125,
13,
9651,
396,
445,
2224,
338,
2307,
10664,
491,
263,
2998,
3876,
13,
9651,
6773,
13,
4706,
396,
1284,
599,
1014,
10898,
13,
4706,
11684,
353,
518,
29886,
363,
282,
297,
10898,
565,
282,
29889,
27382,
2541,
29898,
29879,
4638,
13,
4706,
16778,
29961,
29879,
29889,
29878,
17010,
29898,
19570,
4638,
353,
11684,
13,
1678,
736,
16778,
13,
13,
13,
29937,
14402,
3349,
13,
29937,
871,
421,
5992,
29952,
322,
421,
348,
6252,
29952,
671,
445,
29892,
278,
3913,
2224,
421,
2084,
29918,
275,
29918,
1491,
2084,
29952,
13,
1753,
2224,
29918,
275,
29918,
5062,
29898,
5975,
29892,
2224,
29922,
8516,
1125,
13,
1678,
9995,
8809,
1979,
263,
2183,
2224,
338,
263,
1014,
12322,
310,
738,
310,
278,
2183,
1243,
1819,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
1819,
584,
5665,
470,
9657,
13,
418,
10802,
29879,
304,
367,
9528,
2750,
29889,
910,
508,
367,
263,
8600,
297,
607,
1206,
13,
418,
599,
1819,
515,
599,
6611,
674,
367,
9528,
2750,
29889,
13,
1678,
2224,
584,
2224,
470,
6213,
13,
418,
4321,
2224,
29889,
960,
6213,
338,
2183,
29892,
278,
1889,
29915,
1985,
3884,
338,
13,
418,
1304,
29889,
13,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
1678,
6120,
13,
1678,
9995,
13,
1678,
565,
2224,
338,
6213,
29901,
13,
4706,
515,
1418,
284,
328,
29889,
13239,
1053,
679,
29886,
9970,
13,
4706,
2224,
353,
679,
29886,
9970,
580,
13,
1678,
565,
338,
8758,
29898,
5975,
29892,
9657,
1125,
13,
4706,
1819,
353,
9704,
10456,
5975,
29889,
5975,
3101,
13,
1678,
363,
282,
297,
1819,
29901,
13,
4706,
364,
2084,
353,
1104,
2084,
29898,
29886,
29892,
1369,
29922,
2084,
29897,
13,
4706,
565,
364,
2084,
1275,
3151,
3972,
320,
13,
18884,
470,
364,
2084,
1275,
282,
538,
381,
320,
13,
18884,
470,
731,
29898,
567,
2830,
29898,
29878,
2084,
876,
1275,
426,
29886,
538,
381,
6177,
13,
9651,
396,
937,
1993,
338,
3307,
13,
9651,
736,
5852,
13,
1678,
736,
7700,
13,
13,
13,
1753,
6523,
29918,
24713,
29918,
15003,
29918,
517,
29918,
5182,
29879,
29898,
3188,
2084,
29892,
3646,
24772,
29892,
1857,
29918,
15003,
29892,
13,
462,
462,
418,
1580,
29892,
5134,
29879,
29922,
8516,
1125,
13,
1678,
9995,
4205,
11911,
278,
12770,
322,
7573,
297,
263,
8783,
5447,
304,
2183,
3646,
10898,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
2967,
2084,
584,
2224,
13,
418,
10802,
304,
263,
1369,
470,
2246,
29899,
5563,
8783,
29889,
830,
635,
756,
304,
367,
263,
2224,
304,
263,
13,
418,
8783,
29991,
13,
1678,
3646,
24772,
584,
1051,
29898,
2084,
29897,
13,
418,
3139,
1661,
29899,
9171,
1353,
310,
10898,
393,
526,
1840,
3381,
3291,
363,
278,
13,
418,
2740,
5687,
29889,
1815,
367,
10898,
304,
20035,
29892,
17525,
29892,
470,
2066,
13,
418,
313,
392,
738,
10296,
727,
974,
467,
13,
1678,
1857,
29918,
15003,
584,
1051,
13,
418,
1152,
263,
2246,
29899,
5563,
1246,
445,
881,
3117,
2337,
367,
421,
2636,
29952,
13,
1678,
1580,
584,
9657,
13,
418,
421,
3051,
29918,
1609,
29918,
6289,
27969,
3293,
8600,
393,
674,
7150,
2472,
1048,
278,
13,
418,
10943,
20035,
29889,
26321,
29892,
363,
1269,
10943,
8783,
727,
13,
418,
674,
367,
297,
2944,
411,
967,
2224,
1090,
278,
1820,
313,
2084,
29897,
310,
278,
18067,
13,
418,
2428,
24713,
29889,
13,
1678,
5134,
29879,
584,
5665,
29892,
13136,
13,
418,
3139,
10898,
2183,
526,
14914,
408,
5923,
1014,
14538,
1691,
29892,
17126,
310,
13,
418,
3692,
896,
508,
367,
1476,
297,
278,
22101,
29889,
10506,
1014,
14538,
1691,
674,
2615,
13,
418,
1090,
278,
1820,
310,
278,
21438,
5923,
8783,
297,
278,
421,
6550,
1412,
13,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
1678,
6213,
13,
418,
6680,
5717,
3528,
8304,
3598,
322,
14938,
1078,
421,
6550,
29952,
9657,
297,
29899,
6689,
29889,
13,
418,
4813,
952,
526,
8783,
10898,
29892,
1819,
526,
6166,
310,
1014,
24713,
10898,
13,
1678,
9995,
13,
1678,
396,
3588,
304,
731,
363,
8473,
16280,
13,
1678,
5134,
29879,
353,
5134,
29879,
565,
338,
8758,
29898,
11707,
5779,
29892,
731,
29897,
1683,
320,
13,
4706,
731,
580,
565,
5134,
29879,
338,
6213,
1683,
731,
29898,
11707,
5779,
29897,
13,
1678,
396,
445,
367,
579,
17042,
2039,
278,
3884,
5447,
515,
263,
2183,
421,
3188,
2084,
29952,
2745,
13,
1678,
396,
372,
17021,
874,
738,
310,
278,
2183,
421,
5182,
24772,
29952,
13,
1678,
396,
565,
372,
14061,
697,
29892,
372,
25741,
738,
18414,
29885,
7964,
9637,
310,
16669,
13,
1678,
396,
20035,
373,
445,
7636,
304,
278,
1580,
13,
1678,
2854,
29918,
20095,
353,
11786,
5612,
29877,
29889,
275,
29918,
3084,
29918,
20095,
29898,
3188,
2084,
29897,
13,
1678,
565,
2854,
29918,
20095,
29901,
13,
4706,
396,
591,
526,
6819,
964,
263,
716,
8783,
29892,
10985,
278,
8783,
9637,
13,
4706,
1857,
29918,
15003,
353,
1857,
29918,
15003,
718,
518,
3188,
2084,
29962,
13,
1678,
396,
445,
7636,
338,
451,
2309,
29892,
591,
817,
304,
1018,
304,
6159,
738,
1623,
5461,
13,
1678,
396,
8783,
13,
1678,
563,
10669,
957,
287,
29918,
6289,
353,
731,
29898,
29873,
363,
260,
297,
3646,
24772,
29897,
396,
565,
260,
2804,
2967,
2084,
29897,
13,
1678,
396,
3692,
3099,
297,
445,
3884,
19228,
263,
3646,
2084,
13,
1678,
934,
4352,
353,
7700,
13,
1678,
565,
338,
3972,
29898,
3188,
2084,
1125,
13,
4706,
363,
282,
297,
1051,
3972,
29898,
3188,
2084,
1125,
13,
9651,
282,
353,
1223,
545,
29918,
2523,
356,
29898,
459,
29926,
29898,
3188,
2084,
29892,
282,
876,
13,
9651,
565,
451,
338,
3972,
29898,
29886,
1125,
13,
18884,
565,
282,
297,
3646,
24772,
29901,
13,
462,
1678,
934,
4352,
353,
5852,
13,
18884,
396,
591,
2609,
505,
3099,
2400,
445,
697,
13,
18884,
6773,
13,
9651,
396,
6418,
29911,
1051,
3972,
1795,
367,
2919,
322,
591,
1033,
505,
871,
2846,
4452,
13,
9651,
396,
297,
421,
5182,
24772,
29952,
1192,
577,
29370,
871,
1906,
297,
1580,
607,
505,
13,
9651,
396,
8236,
4516,
2967,
2084,
13,
9651,
396,
4175,
22525,
9686,
445,
1623,
1328,
2224,
13,
9651,
1623,
1328,
29918,
5182,
29879,
353,
731,
29898,
13,
18884,
260,
363,
260,
297,
3646,
24772,
565,
2224,
29918,
27382,
2541,
29898,
29873,
29892,
282,
876,
13,
9651,
565,
451,
1623,
1328,
29918,
5182,
29879,
29901,
13,
18884,
6773,
13,
9651,
396,
3349,
278,
9686,
6743,
515,
278,
376,
29873,
8144,
29908,
1051,
13,
9651,
563,
10669,
957,
287,
29918,
6289,
29889,
29881,
17678,
29918,
5504,
29898,
3204,
1328,
29918,
5182,
29879,
29897,
13,
9651,
396,
748,
697,
25871,
13,
9651,
6523,
29918,
24713,
29918,
15003,
29918,
517,
29918,
5182,
29879,
29898,
13,
18884,
282,
29892,
1623,
1328,
29918,
5182,
29879,
29892,
1857,
29918,
15003,
29892,
1580,
29892,
13,
18884,
5134,
29879,
29922,
11707,
5779,
565,
451,
5134,
29879,
1683,
5134,
29879,
29889,
1639,
2042,
29898,
13,
462,
1678,
1623,
1328,
29918,
5182,
29879,
876,
13,
1678,
563,
10669,
957,
287,
29918,
6289,
353,
518,
29873,
363,
260,
297,
563,
10669,
957,
287,
29918,
6289,
13,
462,
539,
565,
5134,
29879,
322,
13,
462,
3986,
2224,
29918,
275,
29918,
1491,
2084,
29898,
29873,
29892,
1857,
29918,
15003,
14352,
29896,
2314,
322,
13,
462,
3986,
260,
297,
5134,
29879,
29962,
13,
1678,
565,
934,
4352,
470,
2967,
2084,
297,
3646,
24772,
470,
563,
10669,
957,
287,
29918,
6289,
29901,
13,
4706,
363,
474,
29892,
282,
297,
26985,
29898,
3784,
29918,
15003,
7503,
29899,
29896,
29962,
1125,
13,
9651,
396,
14402,
390,
29943,
19012,
1571,
9732,
630,
2224,
9657,
29879,
13,
9651,
1014,
6289,
353,
1580,
29889,
657,
29898,
29886,
29892,
731,
3101,
13,
9651,
1014,
6289,
29889,
1202,
29898,
3784,
29918,
15003,
29961,
29875,
718,
29871,
29896,
2314,
13,
9651,
1580,
29961,
29886,
29962,
353,
1014,
6289,
13,
4706,
565,
563,
10669,
957,
287,
29918,
6289,
29901,
13,
9651,
1580,
29961,
3784,
29918,
15003,
14352,
29896,
5262,
353,
1580,
29889,
657,
29898,
3784,
29918,
15003,
14352,
29896,
1402,
731,
16655,
13094,
29898,
13,
18884,
563,
10669,
957,
287,
29918,
6289,
29897,
13,
13,
13,
1753,
19745,
29918,
9902,
29898,
9891,
1125,
13,
1678,
9995,
6185,
272,
1061,
363,
736,
995,
17983,
310,
1418,
284,
328,
8260,
29889,
13,
13,
1678,
3940,
29892,
445,
10200,
1061,
338,
871,
15878,
411,
8260,
393,
736,
13,
1678,
4660,
9657,
15602,
29991,
13,
13,
1678,
7803,
6996,
18893,
310,
5858,
526,
6969,
29901,
29871,
29896,
29897,
376,
27959,
4464,
29908,
393,
13,
1678,
421,
29891,
969,
29879,
29952,
5375,
2582,
29892,
322,
29871,
29906,
29897,
376,
1761,
4464,
29908,
393,
3639,
263,
5665,
310,
13,
1678,
2582,
29889,
450,
6030,
508,
367,
4629,
3025,
278,
9049,
1191,
421,
2457,
29918,
1853,
1412,
13,
1678,
13109,
338,
376,
1761,
4464,
1642,
13,
13,
1678,
910,
10200,
1061,
10703,
3619,
9863,
363,
1121,
15061,
29914,
4905,
29892,
13,
1678,
1059,
15326,
29914,
3179,
1847,
29892,
322,
12183,
29889,
13,
13,
1678,
7867,
15061,
29914,
4905,
508,
367,
19799,
3025,
278,
13,
1678,
421,
29881,
2075,
328,
29889,
2754,
29889,
2914,
29899,
9482,
261,
29952,
5285,
2286,
29892,
470,
278,
13,
1678,
421,
2914,
29918,
9482,
261,
29952,
13553,
2980,
310,
1269,
10200,
630,
1899,
29889,
18601,
287,
13,
1678,
18893,
526,
29901,
525,
4381,
29915,
313,
650,
1196,
639,
1121,
411,
3158,
29892,
4660,
29892,
2224,
29892,
13,
1678,
322,
385,
13136,
2643,
416,
525,
3126,
29915,
313,
650,
1203,
639,
1121,
29892,
763,
6315,
29899,
11276,
29916,
511,
13,
1678,
525,
3126,
29918,
407,
29915,
313,
4561,
525,
3126,
742,
541,
5051,
29899,
2158,
287,
805,
9450,
2999,
3454,
511,
13,
1678,
525,
18237,
4395,
29915,
2888,
1962,
15998,
4944,
491,
1269,
1899,
13,
1678,
770,
313,
361,
738,
467,
13,
13,
1678,
4829,
15326,
1736,
491,
16096,
292,
278,
421,
4882,
29952,
2944,
310,
599,
1121,
13,
1678,
21503,
4314,
29889,
3139,
27170,
310,
263,
4660,
916,
1135,
525,
554,
29915,
470,
525,
1333,
484,
19226,
29915,
13,
1678,
674,
4556,
385,
512,
8835,
12191,
2392,
3682,
304,
367,
10425,
393,
1559,
2722,
13,
1678,
278,
5229,
8820,
29915,
4660,
21503,
4314,
297,
967,
421,
26061,
29952,
5352,
29889,
13,
13,
1678,
16034,
7191,
674,
367,
13817,
6336,
29892,
491,
2322,
278,
1494,
13,
1678,
15477,
310,
1121,
4660,
322,
1480,
8242,
674,
367,
1304,
29901,
525,
554,
29915,
313,
8382,
511,
13,
1678,
525,
1333,
484,
19226,
29915,
313,
8382,
511,
525,
326,
27338,
29915,
313,
27392,
511,
525,
2704,
29915,
313,
2704,
467,
29871,
28468,
13,
1678,
8871,
5134,
297,
278,
2582,
526,
1304,
304,
10446,
278,
3978,
310,
263,
13,
1678,
4660,
3461,
29889,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
3653,
29901,
740,
13,
418,
4770,
4804,
1649,
1158,
310,
263,
19481,
310,
25796,
29892,
13,
418,
474,
29889,
29872,
29889,
263,
1418,
284,
328,
1899,
5023,
13,
1678,
9995,
13,
13,
1678,
732,
29893,
336,
415,
29889,
19557,
1061,
13,
1678,
822,
19745,
29918,
9891,
29898,
29893,
336,
2986,
29892,
2777,
29892,
6389,
29892,
9049,
5085,
1125,
13,
4706,
396,
363,
1121,
18094,
322,
758,
29914,
2490,
28648,
13,
4706,
396,
591,
817,
304,
7738,
263,
9657,
411,
1852,
978,
29914,
1191,
1767,
11000,
363,
599,
6389,
13,
4706,
396,
1343,
29889,
21274,
322,
6389,
2183,
408,
2602,
1338,
13,
4706,
599,
19290,
353,
679,
29918,
497,
5085,
29918,
294,
29918,
19290,
29898,
29893,
336,
2986,
29892,
6389,
29892,
9049,
5085,
29897,
13,
4706,
396,
8161,
770,
29892,
278,
4770,
4804,
1649,
1158,
310,
607,
591,
526,
10200,
1218,
29901,
13,
4706,
396,
4111,
29901,
3940,
29892,
393,
445,
338,
263,
2586,
26616,
297,
349,
29979,
29906,
322,
7275,
267,
25091,
373,
13,
4706,
396,
746,
322,
920,
304,
671,
19745,
29918,
9902,
408,
1532,
408,
373,
920,
304,
1024,
263,
1899,
29915,
29879,
13,
4706,
396,
3883,
322,
770,
29889,
1094,
310,
1286,
29892,
591,
526,
10583,
411,
1438,
11780,
408,
13,
4706,
396,
2215,
408,
306,
29915,
29885,
9543,
29889,
13,
4706,
878,
353,
10876,
29889,
7576,
29961,
29893,
336,
2986,
17255,
5453,
1649,
29962,
13,
4706,
565,
349,
29979,
29906,
29901,
13,
9651,
396,
591,
19104,
373,
29901,
13,
9651,
396,
448,
10200,
630,
740,
338,
1158,
310,
263,
19481,
310,
25796,
13,
9651,
396,
448,
278,
1024,
310,
278,
770,
7087,
278,
1833,
760,
310,
278,
3883,
29915,
29879,
1024,
13,
9651,
396,
259,
565,
11543,
304,
5224,
13,
9651,
396,
363,
1342,
29901,
13,
9651,
396,
13035,
29914,
3062,
29914,
1310,
29914,
1357,
6519,
29889,
2272,
29901,
13,
9651,
396,
770,
1619,
6255,
29898,
10448,
1125,
13,
9651,
396,
268,
732,
14513,
29918,
9902,
13,
9651,
396,
268,
822,
4770,
4804,
12035,
636,
29897,
13,
9651,
1899,
29918,
1990,
29918,
7039,
353,
320,
13,
18884,
518,
29875,
363,
474,
297,
878,
17255,
8977,
1649,
13,
462,
565,
1134,
29898,
1545,
17255,
8977,
1649,
29961,
29875,
2314,
1275,
1134,
322,
13,
462,
338,
1491,
1990,
29898,
1545,
17255,
8977,
1649,
29961,
29875,
1402,
25796,
29897,
322,
13,
462,
474,
29889,
13609,
2141,
27382,
2541,
29898,
29893,
336,
2986,
17255,
5453,
26914,
5451,
12839,
1495,
14352,
29896,
1822,
6506,
877,
29881,
2075,
328,
29918,
742,
525,
2824,
6506,
877,
29918,
742,
6629,
28166,
13,
9651,
4974,
7431,
29898,
6519,
29918,
1990,
29918,
7039,
29897,
1275,
29871,
29896,
29892,
313,
6519,
29918,
1990,
29918,
7039,
29892,
878,
17255,
978,
1649,
29897,
13,
9651,
1899,
29918,
1990,
29918,
978,
353,
1899,
29918,
1990,
29918,
7039,
29961,
29900,
29962,
13,
4706,
1683,
29901,
13,
9651,
1899,
29918,
1990,
29918,
978,
353,
21021,
17255,
15380,
978,
26914,
5451,
12839,
1495,
14352,
29906,
29962,
13,
4706,
903,
9891,
29918,
1990,
353,
878,
17255,
8977,
1649,
29961,
6519,
29918,
1990,
29918,
978,
29962,
13,
4706,
301,
629,
29889,
8382,
703,
6362,
837,
1312,
770,
310,
10200,
630,
740,
29901,
1273,
29879,
613,
903,
9891,
29918,
1990,
29897,
13,
13,
4706,
396,
10563,
3619,
3987,
515,
9049,
5085,
29892,
322,
6416,
1250,
373,
278,
1899,
13,
4706,
396,
770,
8393,
29892,
470,
2498,
21274,
565,
4312,
13,
4706,
9049,
5085,
353,
9049,
5085,
29889,
8552,
580,
29871,
396,
591,
674,
1835,
29892,
607,
1795,
4556,
2625,
29899,
15987,
13,
4706,
3619,
29918,
7529,
353,
426,
13,
9651,
282,
29918,
978,
29901,
9049,
5085,
29889,
7323,
29898,
13,
18884,
282,
29918,
978,
29892,
13,
18884,
679,
5552,
7373,
9891,
29918,
1990,
29892,
282,
29918,
978,
29892,
19745,
29918,
4381,
29879,
29961,
29886,
29918,
978,
12622,
13,
9651,
363,
282,
29918,
978,
297,
19745,
29918,
7529,
29913,
13,
4706,
396,
3273,
5700,
29879,
322,
13252,
6230,
363,
3619,
3987,
13,
4706,
373,
29918,
14057,
545,
353,
3619,
29918,
7529,
1839,
265,
29918,
14057,
545,
2033,
13,
4706,
736,
29918,
1853,
353,
3619,
29918,
7529,
1839,
2457,
29918,
1853,
2033,
13,
4706,
396,
8814,
1347,
11073,
363,
4327,
414,
2086,
13,
4706,
1121,
29918,
24660,
29885,
353,
3619,
29918,
7529,
1839,
2914,
29918,
24660,
29885,
2033,
13,
4706,
565,
1121,
29918,
24660,
29885,
297,
2998,
29918,
2914,
29918,
24660,
1516,
29901,
13,
9651,
1121,
29918,
24660,
29885,
353,
2998,
29918,
2914,
29918,
24660,
1516,
29961,
2914,
29918,
24660,
29885,
29962,
13,
4706,
1121,
29918,
9482,
261,
353,
3619,
29918,
7529,
1839,
2914,
29918,
9482,
261,
2033,
13,
4706,
396,
14402,
3349,
445,
15047,
5443,
9186,
29892,
2309,
5377,
13,
4706,
565,
451,
1121,
29918,
9482,
261,
29901,
13,
9651,
1121,
29918,
9482,
261,
353,
270,
29880,
16859,
29889,
657,
877,
29881,
2075,
328,
29889,
2754,
29889,
2914,
29899,
9482,
261,
742,
6213,
29897,
13,
4706,
396,
12244,
278,
4175,
964,
263,
16876,
304,
367,
2221,
304,
1209,
5684,
6273,
13,
4706,
396,
565,
278,
4175,
11286,
372,
29892,
541,
472,
278,
1021,
931,
3013,
278,
3734,
5067,
13,
4706,
396,
408,
13114,
408,
1950,
29889,
3115,
437,
445,
1244,
29892,
297,
1797,
304,
4772,
445,
1243,
13,
4706,
396,
304,
367,
8560,
363,
1269,
736,
995,
13,
4706,
1121,
29918,
4572,
353,
3619,
29918,
7529,
1839,
2914,
29918,
4572,
2033,
13,
4706,
903,
2914,
29918,
4572,
353,
1121,
29918,
4572,
13,
4706,
565,
1121,
29918,
4572,
29901,
13,
9651,
565,
338,
8758,
29898,
2914,
29918,
4572,
29892,
1281,
4151,
524,
1125,
13,
18884,
903,
2914,
29918,
4572,
353,
1121,
29918,
4572,
17255,
4804,
1649,
13,
9651,
565,
313,
20055,
29906,
322,
16096,
29889,
657,
5085,
3135,
7373,
2914,
29918,
4572,
467,
1989,
9303,
29897,
470,
320,
13,
462,
1678,
313,
1333,
349,
29979,
29906,
322,
16096,
29889,
657,
8159,
5085,
3135,
7373,
2914,
29918,
4572,
467,
29894,
935,
29893,
1125,
13,
13,
18884,
822,
903,
2914,
29918,
4572,
29898,
690,
1125,
13,
462,
1678,
736,
1121,
29918,
4572,
29898,
690,
29892,
3579,
497,
19290,
29897,
13,
13,
4706,
822,
903,
657,
29918,
771,
26600,
29918,
5965,
2395,
29898,
3207,
29918,
1989,
29922,
8516,
29892,
274,
16434,
29918,
1989,
29922,
8516,
29892,
18031,
29922,
8516,
1125,
13,
9651,
1580,
353,
3619,
29918,
7529,
29889,
657,
29898,
3207,
29918,
1989,
29892,
6213,
29897,
13,
9651,
565,
1580,
338,
451,
6213,
29901,
13,
18884,
396,
445,
338,
2307,
263,
1051,
310,
8857,
13,
18884,
736,
1580,
13,
13,
9651,
515,
1418,
284,
328,
29889,
27691,
29889,
24713,
1053,
13373,
24541,
13,
9651,
18031,
353,
18031,
565,
338,
8758,
29898,
6289,
29892,
13373,
24541,
29897,
1683,
13373,
24541,
29898,
6289,
29897,
565,
18031,
1683,
6213,
13,
9651,
1580,
353,
313,
6289,
29889,
2917,
565,
18031,
322,
18031,
29889,
275,
29918,
25537,
580,
13,
462,
1678,
1683,
270,
29880,
16859,
467,
657,
29898,
16859,
29918,
1989,
29892,
6213,
29897,
13,
9651,
565,
1580,
338,
6213,
29901,
13,
18884,
736,
13,
9651,
25342,
451,
338,
8758,
29898,
6550,
29892,
18761,
1125,
13,
18884,
1580,
353,
518,
6550,
29962,
13,
9651,
736,
518,
845,
2506,
29889,
5451,
29898,
29879,
29897,
363,
269,
297,
1580,
29962,
13,
13,
4706,
396,
2346,
274,
16434,
363,
21274,
13,
4706,
9920,
1220,
29918,
978,
353,
1067,
29879,
29906,
9006,
1915,
3871,
7373,
9891,
29918,
1990,
29897,
13,
4706,
8783,
29918,
1191,
353,
599,
19290,
29889,
657,
877,
24713,
742,
6213,
29897,
13,
4706,
9580,
29918,
1457,
353,
903,
657,
29918,
771,
26600,
29918,
5965,
2395,
29898,
13,
9651,
525,
15439,
29918,
1457,
742,
13,
9651,
525,
29881,
2075,
328,
29889,
29912,
1836,
15439,
29899,
1457,
4286,
4830,
29898,
9006,
1220,
29918,
978,
511,
13,
9651,
18031,
29922,
24713,
29918,
1191,
29897,
13,
4706,
9580,
29918,
2490,
353,
903,
657,
29918,
771,
26600,
29918,
5965,
2395,
29898,
13,
9651,
525,
15439,
29918,
2490,
742,
13,
9651,
525,
29881,
2075,
328,
29889,
29912,
1836,
15439,
29899,
2490,
4286,
4830,
29898,
9006,
1220,
29918,
978,
511,
13,
9651,
18031,
29922,
24713,
29918,
1191,
29897,
13,
13,
4706,
396,
445,
7463,
16876,
740,
2869,
25100,
278,
1899,
13,
4706,
396,
15299,
29899,
3293,
29892,
372,
1122,
5706,
385,
3682,
565,
7429,
29892,
13,
4706,
396,
373,
28907,
2582,
13,
4706,
822,
15299,
29918,
9891,
10456,
29918,
5085,
29892,
3579,
29918,
19290,
1125,
13,
9651,
396,
7353,
3692,
304,
12020,
385,
3682,
13,
9651,
28907,
29918,
9902,
353,
5159,
13,
9651,
396,
5702,
825,
8820,
892,
8560,
920,
1784,
3064,
13,
9651,
3158,
29918,
7727,
353,
6571,
13,
13,
9651,
565,
9580,
29918,
1457,
322,
9920,
1220,
29918,
978,
2804,
525,
3389,
29899,
771,
26600,
2396,
13,
18884,
515,
1418,
284,
328,
29889,
13248,
29889,
3389,
29918,
771,
26600,
1053,
7525,
1184,
26600,
13,
18884,
363,
410,
2395,
3135,
297,
9580,
29918,
1457,
29901,
13,
462,
1678,
301,
629,
29889,
8382,
877,
27795,
13252,
758,
29899,
771,
26600,
1273,
29879,
742,
410,
2395,
3135,
29897,
13,
462,
1678,
363,
364,
297,
903,
5014,
29918,
9902,
29898,
13,
462,
9651,
7525,
1184,
26600,
17255,
4804,
12035,
13,
462,
18884,
410,
2395,
3135,
29892,
13,
462,
18884,
8783,
29922,
24713,
29918,
1191,
29892,
13,
462,
18884,
736,
29918,
1853,
2433,
27959,
5477,
13,
462,
9651,
903,
9891,
29918,
1990,
29892,
3158,
29918,
7727,
29892,
13,
462,
9651,
373,
29918,
14057,
545,
29892,
28907,
29918,
9902,
29892,
13,
462,
9651,
1121,
29918,
9482,
261,
29892,
1121,
29918,
24660,
29885,
29892,
1121,
29918,
4572,
29892,
13,
462,
9651,
3579,
29918,
19290,
1125,
13,
462,
4706,
7709,
364,
13,
13,
9651,
396,
565,
263,
2888,
15837,
338,
304,
367,
4944,
29892,
6314,
278,
2582,
13,
9651,
396,
310,
278,
1899,
8225,
13,
9651,
2582,
353,
5159,
13,
9651,
437,
29918,
6341,
29918,
2914,
29918,
7727,
353,
1121,
29918,
9482,
261,
1275,
525,
18237,
4395,
29915,
320,
13,
18884,
322,
756,
5552,
7373,
9891,
29918,
1990,
29892,
525,
6341,
29918,
2914,
29918,
7727,
29918,
9482,
261,
1495,
13,
13,
9651,
396,
1889,
1667,
2582,
13,
9651,
363,
364,
297,
903,
5014,
29918,
9902,
29898,
13,
462,
1678,
21021,
10456,
29918,
5085,
29892,
3579,
29918,
19290,
511,
13,
462,
1678,
903,
9891,
29918,
1990,
29892,
3158,
29918,
7727,
29892,
13,
462,
1678,
373,
29918,
14057,
545,
29892,
28907,
29918,
9902,
29892,
13,
462,
1678,
1121,
29918,
9482,
261,
29892,
1121,
29918,
24660,
29885,
29892,
903,
2914,
29918,
4572,
29892,
3579,
29918,
19290,
1125,
13,
18884,
7709,
364,
13,
18884,
396,
6314,
565,
15837,
338,
7429,
13,
18884,
565,
437,
29918,
6341,
29918,
2914,
29918,
7727,
29901,
13,
462,
1678,
2582,
29889,
4397,
29898,
29878,
29897,
13,
13,
9651,
565,
9580,
29918,
2490,
322,
9920,
1220,
29918,
978,
2804,
525,
3389,
29899,
771,
26600,
2396,
13,
18884,
515,
1418,
284,
328,
29889,
13248,
29889,
3389,
29918,
771,
26600,
1053,
7525,
1184,
26600,
13,
18884,
363,
410,
2395,
3135,
297,
9580,
29918,
2490,
29901,
13,
462,
1678,
301,
629,
29889,
8382,
877,
27795,
13252,
1400,
29899,
771,
26600,
1273,
29879,
742,
410,
2395,
3135,
29897,
13,
462,
1678,
363,
364,
297,
903,
5014,
29918,
9902,
29898,
13,
462,
9651,
7525,
1184,
26600,
17255,
4804,
12035,
13,
462,
18884,
410,
2395,
3135,
29892,
13,
462,
18884,
8783,
29922,
24713,
29918,
1191,
29892,
13,
462,
18884,
736,
29918,
1853,
2433,
27959,
5477,
13,
462,
9651,
903,
9891,
29918,
1990,
29892,
3158,
29918,
7727,
29892,
13,
462,
9651,
373,
29918,
14057,
545,
29892,
28907,
29918,
9902,
29892,
13,
462,
9651,
1121,
29918,
9482,
261,
29892,
1121,
29918,
24660,
29885,
29892,
1121,
29918,
4572,
29892,
13,
462,
9651,
3579,
29918,
19290,
1125,
13,
462,
4706,
7709,
364,
13,
13,
9651,
396,
1121,
15837,
1434,
263,
7037,
3682,
13,
9651,
396,
2888,
937,
13,
9651,
565,
437,
29918,
6341,
29918,
2914,
29918,
7727,
29901,
13,
18884,
903,
9891,
29918,
1990,
29889,
6341,
29918,
2914,
29918,
7727,
29918,
9482,
261,
29898,
9902,
29897,
13,
9651,
25342,
1121,
29918,
9482,
261,
1275,
525,
4381,
29915,
322,
3158,
29918,
7727,
322,
320,
13,
462,
1678,
2533,
29898,
2083,
29898,
29879,
29889,
5975,
3101,
363,
269,
297,
3158,
29918,
7727,
29889,
5975,
3101,
1405,
29871,
29896,
29901,
13,
18884,
396,
2367,
263,
15837,
297,
2322,
4464,
29892,
746,
727,
471,
901,
1135,
697,
13,
18884,
396,
3158,
8560,
13,
18884,
14313,
29889,
4906,
703,
2467,
15837,
3583,
29876,
29871,
6571,
1642,
4830,
29898,
13,
462,
1678,
11297,
29876,
29871,
15300,
7122,
877,
8875,
21313,
1800,
4286,
4830,
29898,
13,
462,
4706,
1044,
29892,
13,
462,
4706,
13420,
15300,
7122,
877,
29912,
6177,
6571,
4286,
4830,
29898,
4882,
29892,
3158,
29918,
7727,
29961,
627,
3816,
4882,
2314,
13,
462,
462,
29871,
363,
4660,
297,
12705,
29898,
2467,
29918,
7727,
29961,
627,
29962,
4961,
13,
462,
18884,
363,
1044,
297,
12705,
29898,
2467,
29918,
7727,
13697,
13,
13,
9651,
565,
28907,
29918,
9902,
29901,
13,
18884,
12020,
512,
8835,
12191,
2392,
29898,
13,
462,
1678,
5229,
29922,
262,
8835,
29918,
9902,
29892,
13,
462,
1678,
10191,
543,
6255,
1258,
451,
4866,
8472,
1159,
13,
13,
4706,
565,
736,
29918,
1853,
1275,
525,
27959,
2396,
13,
9651,
396,
1361,
975,
278,
15299,
13,
9651,
736,
15299,
29918,
9891,
10456,
5085,
29892,
3579,
19290,
29897,
13,
4706,
1683,
29901,
13,
9651,
732,
29893,
336,
415,
29889,
19557,
1061,
13,
9651,
822,
736,
29918,
9891,
29898,
29893,
336,
2986,
3383,
2777,
3383,
6389,
3383,
9049,
5085,
29918,
1125,
13,
18884,
2582,
353,
21021,
29918,
10456,
5085,
3383,
3579,
19290,
19925,
13,
18884,
565,
16096,
29889,
275,
27959,
29898,
9902,
1125,
13,
462,
1678,
396,
443,
14800,
15299,
565,
727,
338,
697,
29892,
445,
2869,
6057,
13,
462,
1678,
396,
738,
9068,
13,
462,
1678,
2582,
353,
1051,
29898,
9902,
29897,
13,
18884,
396,
4050,
19138,
583,
13,
18884,
565,
451,
1121,
29918,
24660,
29885,
322,
1121,
29918,
9482,
261,
1275,
525,
18237,
4395,
2396,
13,
462,
1678,
396,
2609,
4050,
27615,
2582,
13,
462,
1678,
565,
756,
5552,
7373,
9891,
29918,
1990,
29892,
525,
6341,
29918,
2914,
29918,
7727,
29918,
9482,
261,
29374,
13,
462,
4706,
903,
9891,
29918,
1990,
29889,
6341,
29918,
2914,
29918,
7727,
29918,
9482,
261,
29898,
9902,
29897,
13,
18884,
565,
736,
29918,
1853,
1275,
525,
667,
29899,
272,
29899,
1761,
29915,
322,
320,
13,
462,
4706,
7431,
29898,
9902,
29897,
529,
29871,
29906,
29901,
13,
462,
1678,
736,
2582,
29961,
29900,
29962,
565,
2582,
1683,
6213,
13,
18884,
1683,
29901,
13,
462,
1678,
736,
2582,
13,
13,
9651,
736,
736,
29918,
9891,
29898,
27959,
29918,
9891,
5033,
29930,
5085,
29892,
3579,
19290,
29897,
13,
13,
1678,
736,
19745,
29918,
9891,
29898,
9891,
29897,
13,
13,
13,
1753,
2322,
29918,
2914,
29918,
9482,
261,
29898,
690,
1125,
13,
1678,
565,
620,
29889,
657,
877,
4882,
742,
6213,
29897,
2804,
525,
1333,
484,
19226,
2396,
13,
4706,
14313,
29889,
4906,
877,
29912,
2467,
2119,
29912,
4882,
29913,
1125,
426,
2084,
1157,
1853,
1157,
7645,
29913,
4286,
4830,
29898,
13,
18884,
3158,
29922,
562,
29889,
2780,
29918,
1742,
29898,
690,
1839,
2467,
7464,
1274,
29889,
29933,
5607,
29928,
511,
13,
18884,
4660,
29922,
562,
29889,
2780,
29918,
4882,
29898,
690,
1839,
4882,
2033,
511,
13,
18884,
2224,
29922,
2674,
2084,
29898,
690,
1839,
2084,
7464,
13,
462,
632,
620,
1839,
999,
6289,
11287,
565,
620,
29889,
657,
877,
999,
6289,
742,
6213,
29897,
1683,
620,
29961,
13,
462,
1678,
525,
2084,
7464,
13,
18884,
1134,
2433,
21313,
1800,
4286,
4830,
29898,
13,
462,
4706,
1274,
29889,
2780,
29918,
1742,
29898,
690,
1839,
1853,
7464,
1274,
29889,
1529,
29954,
3919,
29909,
29897,
13,
18884,
1723,
565,
525,
1853,
29915,
297,
620,
1683,
15516,
13,
18884,
10191,
2433,
15974,
6525,
4286,
4830,
29898,
13,
462,
4706,
620,
1839,
4906,
2033,
29961,
29900,
29962,
1273,
620,
1839,
4906,
2033,
29961,
29896,
17531,
13,
462,
4706,
565,
338,
8758,
29898,
690,
1839,
4906,
7464,
18761,
29897,
1683,
620,
29961,
13,
462,
9651,
525,
4906,
11287,
13,
18884,
565,
525,
4906,
29915,
297,
620,
1683,
6629,
876,
13,
13,
13,
1753,
903,
5014,
29918,
9902,
29898,
13,
4706,
2582,
29892,
9920,
29918,
1990,
29892,
13,
4706,
3158,
29918,
7727,
29892,
373,
29918,
14057,
545,
29892,
28907,
29918,
9902,
29892,
13,
4706,
1121,
29918,
9482,
261,
29892,
1121,
29918,
24660,
29885,
29892,
1121,
29918,
4572,
29892,
3579,
19290,
1125,
13,
1678,
396,
2024,
16876,
282,
29888,
732,
14513,
29918,
9902,
13,
1678,
396,
2425,
975,
2582,
5759,
515,
777,
2752,
322,
4386,
1269,
13,
1678,
396,
310,
963,
5034,
304,
278,
13877,
6030,
313,
21027,
29892,
15061,
29892,
29757,
13,
1678,
363,
620,
297,
2582,
29901,
13,
4706,
565,
451,
620,
470,
525,
2467,
29915,
451,
297,
620,
29901,
13,
9651,
396,
22615,
612,
279,
638,
756,
304,
694,
23960,
373,
920,
304,
5702,
278,
3978,
310,
278,
13,
9651,
396,
2407,
304,
4377,
714,
399,
8969,
29892,
577,
540,
925,
14993,
567,
372,
13,
9651,
6773,
13,
13,
4706,
565,
349,
29979,
29906,
29901,
13,
9651,
363,
413,
29892,
325,
297,
620,
29889,
7076,
7295,
13,
18884,
565,
338,
8758,
29898,
29894,
29892,
29104,
1125,
13,
462,
1678,
620,
29961,
29895,
29962,
353,
325,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
13,
4706,
1044,
2083,
353,
3158,
29918,
7727,
29889,
657,
29898,
690,
1839,
2467,
7464,
426,
1800,
13,
4706,
565,
620,
1839,
4882,
2033,
29901,
13,
9651,
1044,
2083,
29961,
690,
1839,
4882,
2033,
29962,
353,
1044,
2083,
29889,
657,
29898,
690,
1839,
4882,
7464,
29871,
29900,
29897,
718,
29871,
29896,
13,
9651,
3158,
29918,
7727,
29961,
690,
1839,
2467,
2033,
29962,
353,
1044,
2083,
13,
4706,
444,
1480,
2643,
29892,
565,
263,
17927,
471,
2183,
13,
4706,
396,
3349,
17927,
2777,
515,
2582,
29892,
408,
372,
338,
694,
5520,
5407,
13,
4706,
396,
1156,
12183,
471,
2309,
29892,
372,
3508,
29915,
29873,
7797,
13902,
29892,
322,
6892,
13,
4706,
396,
21180,
2667,
278,
1962,
13,
4706,
620,
29918,
29880,
629,
353,
620,
29889,
7323,
877,
21707,
742,
6213,
29897,
13,
4706,
565,
338,
8758,
29898,
690,
29918,
29880,
629,
29892,
12183,
29889,
16363,
1125,
13,
9651,
396,
3282,
29915,
29873,
679,
263,
3153,
1480,
740,
29892,
748,
411,
2322,
13,
9651,
620,
29918,
29880,
629,
353,
679,
5552,
29898,
690,
29918,
29880,
629,
29892,
2322,
29918,
1188,
305,
12629,
29961,
690,
1839,
4882,
2033,
2314,
13,
4706,
565,
620,
29918,
29880,
629,
322,
525,
4906,
29915,
297,
620,
29901,
13,
9651,
10191,
353,
620,
1839,
4906,
2033,
13,
9651,
10191,
5085,
353,
6213,
13,
9651,
565,
338,
8758,
29898,
7645,
29892,
18761,
1125,
13,
18884,
10191,
5085,
353,
10191,
29961,
29896,
17531,
13,
18884,
10191,
353,
10191,
29961,
29900,
29962,
13,
9651,
565,
525,
2084,
29915,
297,
620,
29901,
13,
18884,
10191,
353,
525,
8875,
15974,
2119,
29912,
1800,
29962,
4286,
4830,
29898,
13,
462,
1678,
10191,
29892,
620,
1839,
2467,
7464,
620,
1839,
2084,
11287,
13,
9651,
565,
10191,
5085,
29901,
13,
18884,
396,
2304,
1347,
13184,
310,
12183,
304,
4772,
10073,
3438,
13,
18884,
620,
29918,
29880,
629,
29898,
7645,
29892,
334,
7645,
5085,
29897,
13,
9651,
1683,
29901,
13,
18884,
620,
29918,
29880,
629,
29898,
7645,
29897,
13,
4706,
444,
1059,
11415,
13,
4706,
396,
3430,
363,
1059,
4660,
29892,
322,
3461,
472,
278,
1095,
3025,
13,
4706,
396,
385,
3682,
13,
4706,
565,
373,
29918,
14057,
545,
297,
6702,
19878,
742,
525,
9847,
1495,
320,
13,
18884,
322,
620,
1839,
4882,
2033,
297,
6702,
326,
27338,
742,
525,
2704,
29374,
13,
9651,
28907,
29918,
9902,
29889,
4397,
29898,
690,
29897,
13,
9651,
565,
373,
29918,
14057,
545,
1275,
525,
9847,
2396,
13,
18884,
396,
937,
4418,
1599,
393,
29915,
29879,
372,
13,
18884,
396,
12020,
674,
3799,
1156,
278,
2425,
13,
18884,
2867,
13,
4706,
565,
1121,
29918,
4572,
29901,
13,
9651,
1018,
29901,
13,
18884,
565,
451,
1121,
29918,
4572,
29898,
690,
1125,
13,
462,
1678,
12020,
7865,
2392,
877,
735,
13347,
491,
4175,
1495,
13,
9651,
5174,
7865,
2392,
408,
321,
29901,
13,
18884,
301,
629,
29889,
8382,
877,
1333,
23415,
1121,
313,
29995,
29879,
29897,
742,
5566,
29918,
710,
29898,
29872,
876,
13,
18884,
6773,
13,
4706,
444,
1962,
15061,
13,
4706,
396,
14402,
390,
29943,
445,
297,
263,
2560,
1246,
519,
393,
4947,
4502,
964,
445,
740,
13,
4706,
565,
1121,
29918,
9482,
261,
338,
6213,
470,
1121,
29918,
9482,
261,
1275,
525,
18279,
2396,
13,
9651,
1209,
13,
4706,
25342,
1121,
29918,
9482,
261,
1275,
525,
4381,
2396,
13,
9651,
2322,
29918,
2914,
29918,
9482,
261,
29898,
690,
29897,
13,
4706,
25342,
1121,
29918,
9482,
261,
297,
6702,
3126,
742,
525,
3126,
29918,
407,
29374,
13,
9651,
14313,
29889,
4906,
29898,
3126,
29889,
29881,
17204,
29898,
13,
18884,
426,
29895,
29901,
325,
363,
413,
29892,
325,
297,
620,
29889,
7076,
580,
13,
462,
565,
413,
451,
297,
6702,
4906,
742,
525,
21707,
1495,
1118,
13,
18884,
2656,
29918,
8149,
29922,
5574,
29892,
13,
18884,
29536,
29922,
29906,
565,
1121,
29918,
9482,
261,
29889,
1975,
2541,
877,
29918,
407,
1495,
1683,
6213,
29892,
13,
18884,
2322,
29922,
2892,
921,
29901,
851,
29898,
29916,
4961,
13,
4706,
25342,
1121,
29918,
9482,
261,
1275,
525,
18237,
4395,
2396,
13,
9651,
565,
756,
5552,
29898,
9006,
29918,
1990,
29892,
525,
6341,
29918,
2914,
29918,
9482,
261,
29374,
13,
18884,
9920,
29918,
1990,
29889,
6341,
29918,
2914,
29918,
9482,
261,
29898,
690,
29892,
3579,
19290,
29897,
13,
4706,
25342,
756,
5552,
29898,
2914,
29918,
9482,
261,
29892,
525,
1649,
4804,
1649,
29374,
13,
9651,
1018,
29901,
13,
18884,
1121,
29918,
9482,
261,
29898,
690,
29892,
3579,
19290,
29897,
13,
9651,
5174,
8960,
408,
321,
29901,
13,
18884,
301,
629,
29889,
25442,
877,
3591,
15061,
5229,
363,
29901,
1273,
29879,
518,
29995,
29879,
29962,
742,
13,
462,
308,
620,
29892,
5566,
29918,
710,
29898,
29872,
876,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
877,
26690,
1121,
4050,
261,
29850,
5038,
4286,
4830,
29898,
2914,
29918,
9482,
261,
876,
13,
13,
4706,
565,
349,
29979,
29906,
29901,
13,
9651,
363,
413,
29892,
325,
297,
620,
29889,
7076,
7295,
13,
18884,
565,
338,
8758,
29898,
29894,
29892,
851,
1125,
13,
462,
1678,
620,
29961,
29895,
29962,
353,
325,
29889,
13808,
877,
9420,
29899,
29947,
1495,
13,
13,
4706,
565,
1121,
29918,
24660,
29885,
29901,
13,
9651,
620,
353,
1121,
29918,
24660,
29885,
29898,
690,
29897,
13,
9651,
565,
620,
338,
6213,
29901,
13,
18884,
6773,
13,
4706,
7709,
620,
13,
2
] |
genes/templatetags/gene_grid_tags.py | SACGF/variantgrid | 5 | 84898 | <gh_stars>1-10
from django.conf import settings
from django.db.models.query_utils import Q
from django.template import Library
from genes.forms import GeneListCategoryAutocompleteForm, NamedCustomGeneListForm, GeneSymbolForm, \
GeneAnnotationReleaseForm, panel_app_server_autocomplete_form_factory
from genes.models import GeneInfo, GeneListCategory, PanelAppServer, GeneAnnotationRelease
from ontology.forms import HPOForm, OMIMForm
from pathtests.forms import ActivePathologyTestForm, SelectPathologyTestVersionForm
from pathtests.models import PathologyTest
from seqauto.forms import EnrichmentKitForm
from seqauto.models import EnrichmentKit
from snpdb.forms import LabSelectForm
from snpdb.models import Company
register = Library()
@register.inclusion_tag("genes/tags/gene_grid_tag.html", takes_context=True)
def gene_grid(context, columns_from_url=None,
init_callback: str = None,
update_url_callback: str = None,
save_gene_list_callback: str = None,
close_button_callback: str = None,
data_columns_whitelist: set = None,
gene_list_categories_whitelist: set = None,
default_enrichment_kits=None,
show_gene_annotation_release: bool = True,
show_custom_gene_form: bool = True,
show_help: bool = True):
user = context["user"]
# Load system defaults
if default_enrichment_kits is None:
default_enrichment_kits = settings.GENE_GRID_DEFAULT_ENRICHMENT_KITS
enrichment_kits = EnrichmentKit.get_enrichment_kits(default_enrichment_kits)
initial_columns = [f"enrichment-kit-{ek.pk}" for ek in enrichment_kits]
if columns_from_url:
initial_columns.extend(columns_from_url.split("/"))
if show_gene_annotation_release:
gene_annotation_releases = GeneAnnotationRelease.get_for_latest_annotation_versions_for_builds()
initial_columns.extend([f"gene-annotation-release-{release.pk}" for release in gene_annotation_releases])
data_columns = []
enrichment_kit_data = {"name": "Enrichment Kit",
"description": "Enrichment Kit",
"icon_css_class": "enrichment-kit-icon",
"form": EnrichmentKitForm()}
data_columns.append(enrichment_kit_data)
enrichment_kit_data = {"name": "Gene Annotation Release",
"description": "Gene Annotation Release (match genes in VEP annotation)",
#"icon_css_class": "",
"form": GeneAnnotationReleaseForm()}
data_columns.append(enrichment_kit_data)
categories = []
gene_list_category_filter = None
company = Company.get_our_company()
if company:
if PathologyTest.objects.exists(): # add test categories
try:
company_name = str(company).replace("_", " ")
category = company.genelistcategory
css_classes = ' '.join([category.icon_css_class, "pathology-test"])
test_data = {"name": category.name,
"icon_css_class": css_classes,
"description": f"{company_name} current test",
"form": ActivePathologyTestForm(),
"form_css_class": "pathology-test-form"}
categories.append(test_data)
historical_test_data = {"name": f"historical-{category.name}",
"icon_css_class": css_classes,
"description": f"{company_name} historical test",
"form": SelectPathologyTestVersionForm(),
"form_css_class": "pathology-test-version-form"}
categories.append(historical_test_data)
except:
pass
gene_list_category_filter = ~Q(company=company) # Skip as already added
for category in GeneListCategory.get_gene_list_categories(gene_list_category_filter):
initial = {"category": category.get("instance")}
category_id = category.get("pk")
prefix = f"category-{category_id}"
category["form"] = GeneListCategoryAutocompleteForm(initial=initial, prefix=prefix)
category["description"] = category.get("name")
category["form_css_class"] = "category-gene-list-form"
categories.append(category)
panel_app_servers = list(PanelAppServer.objects.all().order_by("pk"))
panel_app_form_ids = []
for server in panel_app_servers:
description = f"{server.name} Panel"
prefix = f"server-{server.pk}"
panel_app_form = panel_app_server_autocomplete_form_factory(server=server, prefix=prefix,
description=f"{description}...")
panel_app_form_ids.append(f"id_{prefix}-panel_app_panel") # id_server-1-panel_app_panel
panel_app_data = {"name": "Panel App Panel",
"description": description,
"icon_css_class": server.icon_css_class,
"form": panel_app_form}
categories.append(panel_app_data)
hpo_category_data = {"name": "Lab Gene Classification Counts",
"description": "Lab Gene Classification Counts",
"form": LabSelectForm()}
categories.append(hpo_category_data)
hpo_category_data = {"name": "HPO",
"icon_css_class": "hpo-icon",
"description": "Human Phenotype Ontology",
"form": HPOForm(),
"form_css_class": "hpo-gene-list-form"}
categories.append(hpo_category_data)
omim_category_data = {"name": "OMIM",
"icon_css_class": "omim-icon",
"description": "OMIM",
"form": OMIMForm(),
"form_css_class": "omim-gene-list-form"}
categories.append(omim_category_data)
# Optionally filter based on whitelist given to tag
if data_columns_whitelist is not None:
def in_whitelist(c):
return c["name"] in data_columns_whitelist
data_columns = filter(in_whitelist, data_columns)
if gene_list_categories_whitelist is not None:
def in_whitelist(c):
return c["name"] in gene_list_categories_whitelist
categories = filter(in_whitelist, categories)
has_gene_info = GeneInfo.objects.filter(gene_list__genelistgenesymbol__isnull=False).exists()
if show_custom_gene_form:
named_custom_gene_list_form = NamedCustomGeneListForm(username=user)
else:
named_custom_gene_list_form = None
gene_symbol_form = GeneSymbolForm()
gene_symbol_form.fields["gene_symbol"].widget.attrs['data-placeholder'] = "Add Gene Symbol"
return {
"ENRICHMENT_KIT_COLUMNS": settings.GENE_GRID_ENRICHMENT_KIT_COLUMNS,
"ENRICHMENT_KIT_COLUMN_TOOL_TIPS": settings.GENE_GRID_ENRICHMENT_KIT_COLUMN_TOOL_TIPS,
"ENRICHMENT_KIT_COLUMN_LABELS": settings.GENE_GRID_ENRICHMENT_KIT_COLUMN_LABELS,
"ENRICHMENT_KIT_COLUMN_LABEL_TOOL_TIPS": settings.GENE_GRID_ENRICHMENT_KIT_COLUMN_LABEL_TOOL_TIPS,
"initial_columns": initial_columns,
"init_callback": init_callback,
"update_url_callback": update_url_callback,
"save_gene_list_callback": save_gene_list_callback,
"close_button_callback": close_button_callback,
"data_columns": data_columns,
"categories": categories,
"panel_app_servers": panel_app_servers,
"panel_app_form_ids": panel_app_form_ids,
"has_gene_info": has_gene_info,
"gene_symbol_form": gene_symbol_form,
"named_custom_gene_list_form": named_custom_gene_list_form,
"user": user,
"show_help": show_help,
"form_helper": context.get('form_helper')
}
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
3166,
9557,
29889,
2585,
29889,
9794,
29889,
1972,
29918,
13239,
1053,
660,
13,
3166,
9557,
29889,
6886,
1053,
9538,
13,
13,
3166,
2531,
267,
29889,
9514,
1053,
15350,
1293,
10900,
12300,
8835,
2500,
29892,
405,
2795,
7281,
29954,
1600,
1293,
2500,
29892,
15350,
14730,
2500,
29892,
320,
13,
1678,
15350,
21978,
19729,
2500,
29892,
9451,
29918,
932,
29918,
2974,
29918,
6921,
8835,
29918,
689,
29918,
14399,
13,
3166,
2531,
267,
29889,
9794,
1053,
15350,
3401,
29892,
15350,
1293,
10900,
29892,
349,
3870,
2052,
6004,
29892,
15350,
21978,
19729,
13,
3166,
4625,
3002,
29889,
9514,
1053,
379,
13152,
2500,
29892,
438,
29924,
7833,
2500,
13,
3166,
2373,
400,
9197,
29889,
9514,
1053,
10731,
2605,
3002,
3057,
2500,
29892,
7605,
2605,
3002,
3057,
6594,
2500,
13,
3166,
2373,
400,
9197,
29889,
9794,
1053,
10802,
3002,
3057,
13,
3166,
19359,
6921,
29889,
9514,
1053,
1174,
4018,
358,
13117,
2500,
13,
3166,
19359,
6921,
29889,
9794,
1053,
1174,
4018,
358,
13117,
13,
3166,
5807,
29886,
2585,
29889,
9514,
1053,
12016,
3549,
2500,
13,
3166,
5807,
29886,
2585,
29889,
9794,
1053,
6938,
13,
13,
9573,
353,
9538,
580,
13,
13,
13,
29992,
9573,
29889,
262,
10085,
29918,
4039,
703,
1885,
267,
29914,
11338,
29914,
29887,
1600,
29918,
7720,
29918,
4039,
29889,
1420,
613,
4893,
29918,
4703,
29922,
5574,
29897,
13,
1753,
18530,
29918,
7720,
29898,
4703,
29892,
4341,
29918,
3166,
29918,
2271,
29922,
8516,
29892,
13,
795,
2069,
29918,
14035,
29901,
851,
353,
6213,
29892,
13,
795,
2767,
29918,
2271,
29918,
14035,
29901,
851,
353,
6213,
29892,
13,
795,
4078,
29918,
29887,
1600,
29918,
1761,
29918,
14035,
29901,
851,
353,
6213,
29892,
13,
795,
3802,
29918,
3092,
29918,
14035,
29901,
851,
353,
6213,
29892,
13,
795,
848,
29918,
13099,
29918,
1332,
7454,
391,
29901,
731,
353,
6213,
29892,
13,
795,
18530,
29918,
1761,
29918,
20683,
29918,
1332,
7454,
391,
29901,
731,
353,
6213,
29892,
13,
795,
2322,
29918,
264,
4018,
358,
29918,
29895,
1169,
29922,
8516,
29892,
13,
795,
1510,
29918,
29887,
1600,
29918,
18317,
29918,
14096,
29901,
6120,
353,
5852,
29892,
13,
795,
1510,
29918,
6341,
29918,
29887,
1600,
29918,
689,
29901,
6120,
353,
5852,
29892,
13,
795,
1510,
29918,
8477,
29901,
6120,
353,
5852,
1125,
13,
1678,
1404,
353,
3030,
3366,
1792,
3108,
13,
13,
1678,
396,
16012,
1788,
21274,
13,
1678,
565,
2322,
29918,
264,
4018,
358,
29918,
29895,
1169,
338,
6213,
29901,
13,
4706,
2322,
29918,
264,
4018,
358,
29918,
29895,
1169,
353,
6055,
29889,
24647,
29923,
29918,
14345,
1367,
29918,
23397,
29918,
1430,
29934,
2965,
29950,
13780,
29918,
29968,
1806,
29903,
13,
1678,
427,
4018,
358,
29918,
29895,
1169,
353,
1174,
4018,
358,
13117,
29889,
657,
29918,
264,
4018,
358,
29918,
29895,
1169,
29898,
4381,
29918,
264,
4018,
358,
29918,
29895,
1169,
29897,
13,
1678,
2847,
29918,
13099,
353,
518,
29888,
29908,
264,
4018,
358,
29899,
7354,
29899,
29912,
1416,
29889,
20571,
5038,
363,
14921,
297,
427,
4018,
358,
29918,
29895,
1169,
29962,
13,
1678,
565,
4341,
29918,
3166,
29918,
2271,
29901,
13,
4706,
2847,
29918,
13099,
29889,
21843,
29898,
13099,
29918,
3166,
29918,
2271,
29889,
5451,
11974,
5783,
13,
13,
1678,
565,
1510,
29918,
29887,
1600,
29918,
18317,
29918,
14096,
29901,
13,
4706,
18530,
29918,
18317,
29918,
276,
17836,
353,
15350,
21978,
19729,
29889,
657,
29918,
1454,
29918,
12333,
29918,
18317,
29918,
26100,
29918,
1454,
29918,
4282,
29879,
580,
13,
4706,
2847,
29918,
13099,
29889,
21843,
4197,
29888,
29908,
29887,
1600,
29899,
18317,
29899,
14096,
29899,
29912,
14096,
29889,
20571,
5038,
363,
6507,
297,
18530,
29918,
18317,
29918,
276,
17836,
2314,
13,
13,
1678,
848,
29918,
13099,
353,
5159,
13,
1678,
427,
4018,
358,
29918,
7354,
29918,
1272,
353,
8853,
978,
1115,
376,
2369,
4018,
358,
26240,
613,
13,
462,
965,
376,
8216,
1115,
376,
2369,
4018,
358,
26240,
613,
13,
462,
965,
376,
4144,
29918,
4268,
29918,
1990,
1115,
376,
264,
4018,
358,
29899,
7354,
29899,
4144,
613,
13,
462,
965,
376,
689,
1115,
1174,
4018,
358,
13117,
2500,
28296,
13,
1678,
848,
29918,
13099,
29889,
4397,
29898,
264,
4018,
358,
29918,
7354,
29918,
1272,
29897,
13,
1678,
427,
4018,
358,
29918,
7354,
29918,
1272,
353,
8853,
978,
1115,
376,
29954,
1600,
530,
16666,
23708,
613,
13,
462,
965,
376,
8216,
1115,
376,
29954,
1600,
530,
16666,
23708,
313,
4352,
2531,
267,
297,
478,
15488,
17195,
19123,
13,
462,
965,
396,
29908,
4144,
29918,
4268,
29918,
1990,
1115,
12633,
13,
462,
965,
376,
689,
1115,
15350,
21978,
19729,
2500,
28296,
13,
1678,
848,
29918,
13099,
29889,
4397,
29898,
264,
4018,
358,
29918,
7354,
29918,
1272,
29897,
13,
13,
1678,
13997,
353,
5159,
13,
13,
1678,
18530,
29918,
1761,
29918,
7320,
29918,
4572,
353,
6213,
13,
1678,
5001,
353,
6938,
29889,
657,
29918,
473,
29918,
14518,
580,
13,
1678,
565,
5001,
29901,
13,
4706,
565,
10802,
3002,
3057,
29889,
12650,
29889,
9933,
7295,
29871,
396,
788,
1243,
13997,
13,
9651,
1018,
29901,
13,
18884,
5001,
29918,
978,
353,
851,
29898,
14518,
467,
6506,
703,
29918,
613,
376,
16521,
13,
18884,
7663,
353,
5001,
29889,
1885,
295,
391,
7320,
13,
18884,
5997,
29918,
13203,
353,
525,
15300,
7122,
4197,
7320,
29889,
4144,
29918,
4268,
29918,
1990,
29892,
376,
2084,
3002,
29899,
1688,
20068,
13,
18884,
1243,
29918,
1272,
353,
8853,
978,
1115,
7663,
29889,
978,
29892,
13,
462,
632,
376,
4144,
29918,
4268,
29918,
1990,
1115,
5997,
29918,
13203,
29892,
13,
462,
632,
376,
8216,
1115,
285,
29908,
29912,
14518,
29918,
978,
29913,
1857,
1243,
613,
13,
462,
632,
376,
689,
1115,
10731,
2605,
3002,
3057,
2500,
3285,
13,
462,
632,
376,
689,
29918,
4268,
29918,
1990,
1115,
376,
2084,
3002,
29899,
1688,
29899,
689,
9092,
13,
18884,
13997,
29889,
4397,
29898,
1688,
29918,
1272,
29897,
13,
18884,
15839,
29918,
1688,
29918,
1272,
353,
8853,
978,
1115,
285,
29908,
16211,
936,
29899,
29912,
7320,
29889,
978,
17671,
13,
462,
462,
4706,
376,
4144,
29918,
4268,
29918,
1990,
1115,
5997,
29918,
13203,
29892,
13,
462,
462,
4706,
376,
8216,
1115,
285,
29908,
29912,
14518,
29918,
978,
29913,
15839,
1243,
613,
13,
462,
462,
4706,
376,
689,
1115,
7605,
2605,
3002,
3057,
6594,
2500,
3285,
13,
462,
462,
4706,
376,
689,
29918,
4268,
29918,
1990,
1115,
376,
2084,
3002,
29899,
1688,
29899,
3259,
29899,
689,
9092,
13,
18884,
13997,
29889,
4397,
29898,
16211,
936,
29918,
1688,
29918,
1272,
29897,
13,
9651,
5174,
29901,
13,
18884,
1209,
13,
13,
4706,
18530,
29918,
1761,
29918,
7320,
29918,
4572,
353,
3695,
29984,
29898,
14518,
29922,
14518,
29897,
29871,
396,
4971,
666,
408,
2307,
2715,
13,
13,
1678,
363,
7663,
297,
15350,
1293,
10900,
29889,
657,
29918,
29887,
1600,
29918,
1761,
29918,
20683,
29898,
29887,
1600,
29918,
1761,
29918,
7320,
29918,
4572,
1125,
13,
4706,
2847,
353,
8853,
7320,
1115,
7663,
29889,
657,
703,
8758,
1159,
29913,
13,
4706,
7663,
29918,
333,
353,
7663,
29889,
657,
703,
20571,
1159,
13,
4706,
10944,
353,
285,
29908,
7320,
29899,
29912,
7320,
29918,
333,
5038,
13,
4706,
7663,
3366,
689,
3108,
353,
15350,
1293,
10900,
12300,
8835,
2500,
29898,
11228,
29922,
11228,
29892,
10944,
29922,
13506,
29897,
13,
4706,
7663,
3366,
8216,
3108,
353,
7663,
29889,
657,
703,
978,
1159,
13,
4706,
7663,
3366,
689,
29918,
4268,
29918,
1990,
3108,
353,
376,
7320,
29899,
29887,
1600,
29899,
1761,
29899,
689,
29908,
13,
4706,
13997,
29889,
4397,
29898,
7320,
29897,
13,
13,
1678,
9451,
29918,
932,
29918,
643,
874,
353,
1051,
29898,
7490,
2052,
6004,
29889,
12650,
29889,
497,
2141,
2098,
29918,
1609,
703,
20571,
5783,
13,
1678,
9451,
29918,
932,
29918,
689,
29918,
4841,
353,
5159,
13,
1678,
363,
1923,
297,
9451,
29918,
932,
29918,
643,
874,
29901,
13,
4706,
6139,
353,
285,
29908,
29912,
2974,
29889,
978,
29913,
349,
3870,
29908,
13,
4706,
10944,
353,
285,
29908,
2974,
29899,
29912,
2974,
29889,
20571,
5038,
13,
4706,
9451,
29918,
932,
29918,
689,
353,
9451,
29918,
932,
29918,
2974,
29918,
6921,
8835,
29918,
689,
29918,
14399,
29898,
2974,
29922,
2974,
29892,
10944,
29922,
13506,
29892,
13,
462,
462,
462,
462,
1678,
6139,
29922,
29888,
29908,
29912,
8216,
29913,
856,
1159,
13,
4706,
9451,
29918,
932,
29918,
689,
29918,
4841,
29889,
4397,
29898,
29888,
29908,
333,
648,
13506,
7402,
15119,
29918,
932,
29918,
15119,
1159,
29871,
396,
1178,
29918,
2974,
29899,
29896,
29899,
15119,
29918,
932,
29918,
15119,
13,
4706,
9451,
29918,
932,
29918,
1272,
353,
8853,
978,
1115,
376,
7490,
2401,
349,
3870,
613,
13,
462,
3986,
376,
8216,
1115,
6139,
29892,
13,
462,
3986,
376,
4144,
29918,
4268,
29918,
1990,
1115,
1923,
29889,
4144,
29918,
4268,
29918,
1990,
29892,
13,
462,
3986,
376,
689,
1115,
9451,
29918,
932,
29918,
689,
29913,
13,
4706,
13997,
29889,
4397,
29898,
15119,
29918,
932,
29918,
1272,
29897,
13,
13,
1678,
298,
1129,
29918,
7320,
29918,
1272,
353,
8853,
978,
1115,
376,
28632,
15350,
23236,
3917,
29879,
613,
13,
462,
308,
376,
8216,
1115,
376,
28632,
15350,
23236,
3917,
29879,
613,
13,
462,
308,
376,
689,
1115,
12016,
3549,
2500,
28296,
13,
1678,
13997,
29889,
4397,
29898,
29882,
1129,
29918,
7320,
29918,
1272,
29897,
13,
13,
1678,
298,
1129,
29918,
7320,
29918,
1272,
353,
8853,
978,
1115,
376,
3954,
29949,
613,
13,
462,
308,
376,
4144,
29918,
4268,
29918,
1990,
1115,
376,
29882,
1129,
29899,
4144,
613,
13,
462,
308,
376,
8216,
1115,
376,
29950,
7889,
1963,
264,
327,
668,
18265,
3002,
613,
13,
462,
308,
376,
689,
1115,
379,
13152,
2500,
3285,
13,
462,
308,
376,
689,
29918,
4268,
29918,
1990,
1115,
376,
29882,
1129,
29899,
29887,
1600,
29899,
1761,
29899,
689,
9092,
13,
1678,
13997,
29889,
4397,
29898,
29882,
1129,
29918,
7320,
29918,
1272,
29897,
13,
1678,
2703,
326,
29918,
7320,
29918,
1272,
353,
8853,
978,
1115,
376,
6488,
7833,
613,
13,
462,
3986,
376,
4144,
29918,
4268,
29918,
1990,
1115,
376,
290,
326,
29899,
4144,
613,
13,
462,
3986,
376,
8216,
1115,
376,
6488,
7833,
613,
13,
462,
3986,
376,
689,
1115,
438,
29924,
7833,
2500,
3285,
13,
462,
3986,
376,
689,
29918,
4268,
29918,
1990,
1115,
376,
290,
326,
29899,
29887,
1600,
29899,
1761,
29899,
689,
9092,
13,
1678,
13997,
29889,
4397,
29898,
290,
326,
29918,
7320,
29918,
1272,
29897,
13,
13,
1678,
396,
10831,
635,
4175,
2729,
373,
377,
7454,
391,
2183,
304,
4055,
13,
1678,
565,
848,
29918,
13099,
29918,
1332,
7454,
391,
338,
451,
6213,
29901,
13,
4706,
822,
297,
29918,
1332,
7454,
391,
29898,
29883,
1125,
13,
9651,
736,
274,
3366,
978,
3108,
297,
848,
29918,
13099,
29918,
1332,
7454,
391,
13,
4706,
848,
29918,
13099,
353,
4175,
29898,
262,
29918,
1332,
7454,
391,
29892,
848,
29918,
13099,
29897,
13,
13,
1678,
565,
18530,
29918,
1761,
29918,
20683,
29918,
1332,
7454,
391,
338,
451,
6213,
29901,
13,
4706,
822,
297,
29918,
1332,
7454,
391,
29898,
29883,
1125,
13,
9651,
736,
274,
3366,
978,
3108,
297,
18530,
29918,
1761,
29918,
20683,
29918,
1332,
7454,
391,
13,
4706,
13997,
353,
4175,
29898,
262,
29918,
1332,
7454,
391,
29892,
13997,
29897,
13,
13,
1678,
756,
29918,
29887,
1600,
29918,
3888,
353,
15350,
3401,
29889,
12650,
29889,
4572,
29898,
29887,
1600,
29918,
1761,
1649,
1885,
295,
391,
1885,
267,
2789,
1649,
275,
4304,
29922,
8824,
467,
9933,
580,
13,
1678,
565,
1510,
29918,
6341,
29918,
29887,
1600,
29918,
689,
29901,
13,
4706,
4257,
29918,
6341,
29918,
29887,
1600,
29918,
1761,
29918,
689,
353,
405,
2795,
7281,
29954,
1600,
1293,
2500,
29898,
6786,
29922,
1792,
29897,
13,
1678,
1683,
29901,
13,
4706,
4257,
29918,
6341,
29918,
29887,
1600,
29918,
1761,
29918,
689,
353,
6213,
13,
13,
1678,
18530,
29918,
18098,
29918,
689,
353,
15350,
14730,
2500,
580,
13,
1678,
18530,
29918,
18098,
29918,
689,
29889,
9621,
3366,
29887,
1600,
29918,
18098,
16862,
8030,
29889,
5552,
29879,
1839,
1272,
29899,
27074,
2033,
353,
376,
2528,
15350,
23858,
29908,
13,
13,
1678,
736,
426,
13,
4706,
376,
1430,
29934,
2965,
29950,
13780,
29918,
29968,
1806,
29918,
15032,
5005,
3059,
1115,
6055,
29889,
24647,
29923,
29918,
14345,
1367,
29918,
1430,
29934,
2965,
29950,
13780,
29918,
29968,
1806,
29918,
15032,
5005,
3059,
29892,
13,
4706,
376,
1430,
29934,
2965,
29950,
13780,
29918,
29968,
1806,
29918,
15032,
29127,
29918,
4986,
5607,
29918,
29911,
5690,
29903,
1115,
6055,
29889,
24647,
29923,
29918,
14345,
1367,
29918,
1430,
29934,
2965,
29950,
13780,
29918,
29968,
1806,
29918,
15032,
29127,
29918,
4986,
5607,
29918,
29911,
5690,
29903,
29892,
13,
4706,
376,
1430,
29934,
2965,
29950,
13780,
29918,
29968,
1806,
29918,
15032,
29127,
29918,
24461,
6670,
29903,
1115,
6055,
29889,
24647,
29923,
29918,
14345,
1367,
29918,
1430,
29934,
2965,
29950,
13780,
29918,
29968,
1806,
29918,
15032,
29127,
29918,
24461,
6670,
29903,
29892,
13,
4706,
376,
1430,
29934,
2965,
29950,
13780,
29918,
29968,
1806,
29918,
15032,
29127,
29918,
24461,
6670,
29918,
4986,
5607,
29918,
29911,
5690,
29903,
1115,
6055,
29889,
24647,
29923,
29918,
14345,
1367,
29918,
1430,
29934,
2965,
29950,
13780,
29918,
29968,
1806,
29918,
15032,
29127,
29918,
24461,
6670,
29918,
4986,
5607,
29918,
29911,
5690,
29903,
29892,
13,
4706,
376,
11228,
29918,
13099,
1115,
2847,
29918,
13099,
29892,
13,
4706,
376,
2344,
29918,
14035,
1115,
2069,
29918,
14035,
29892,
13,
4706,
376,
5504,
29918,
2271,
29918,
14035,
1115,
2767,
29918,
2271,
29918,
14035,
29892,
13,
4706,
376,
7620,
29918,
29887,
1600,
29918,
1761,
29918,
14035,
1115,
4078,
29918,
29887,
1600,
29918,
1761,
29918,
14035,
29892,
13,
4706,
376,
5358,
29918,
3092,
29918,
14035,
1115,
3802,
29918,
3092,
29918,
14035,
29892,
13,
4706,
376,
1272,
29918,
13099,
1115,
848,
29918,
13099,
29892,
13,
4706,
376,
20683,
1115,
13997,
29892,
13,
4706,
376,
15119,
29918,
932,
29918,
643,
874,
1115,
9451,
29918,
932,
29918,
643,
874,
29892,
13,
4706,
376,
15119,
29918,
932,
29918,
689,
29918,
4841,
1115,
9451,
29918,
932,
29918,
689,
29918,
4841,
29892,
13,
4706,
376,
5349,
29918,
29887,
1600,
29918,
3888,
1115,
756,
29918,
29887,
1600,
29918,
3888,
29892,
13,
4706,
376,
29887,
1600,
29918,
18098,
29918,
689,
1115,
18530,
29918,
18098,
29918,
689,
29892,
13,
4706,
376,
17514,
29918,
6341,
29918,
29887,
1600,
29918,
1761,
29918,
689,
1115,
4257,
29918,
6341,
29918,
29887,
1600,
29918,
1761,
29918,
689,
29892,
13,
4706,
376,
1792,
1115,
1404,
29892,
13,
4706,
376,
4294,
29918,
8477,
1115,
1510,
29918,
8477,
29892,
13,
4706,
376,
689,
29918,
20907,
1115,
3030,
29889,
657,
877,
689,
29918,
20907,
1495,
13,
1678,
500,
13,
2
] |
src/tutorial/scripts/publisher.py | swapnilsurdi/race-on-ros | 0 | 116257 | #!/usr/bin/env python
import rospy
from std_msgs.msg import Float32
import math
RATE = 10 # Publishing rate of new data per second
FREQ = 1 # Frequency of the sinusoidal signal
# Execute this when run as a script
if __name__ == '__main__':
rospy.init_node('publisher')
pub = rospy.Publisher('data', Float32, queue_size=1)
rate = rospy.Rate(RATE)
step = 0
while not rospy.is_shutdown():
# Generate new data point
value = math.sin(2*math.pi*step/RATE)
# Log and publish data
rospy.loginfo("Publishing {:.3f}".format(value))
pub.publish(value)
# Advance the sequence
step = step + 1
# Wait to match the rate
rate.sleep()
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
696,
1028,
29891,
13,
3166,
3659,
29918,
1516,
3174,
29889,
7645,
1053,
27842,
29941,
29906,
13,
13,
5215,
5844,
13,
13,
29934,
3040,
353,
29871,
29896,
29900,
29871,
396,
19088,
6554,
310,
716,
848,
639,
1473,
13,
29943,
1525,
29984,
353,
29871,
29896,
259,
396,
3878,
23860,
310,
278,
4457,
375,
3398,
284,
7182,
13,
13,
13,
29937,
11080,
1082,
445,
746,
1065,
408,
263,
2471,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
13,
1678,
696,
1028,
29891,
29889,
2344,
29918,
3177,
877,
23679,
261,
1495,
13,
13,
1678,
2529,
29871,
353,
696,
1028,
29891,
29889,
21076,
1674,
261,
877,
1272,
742,
27842,
29941,
29906,
29892,
9521,
29918,
2311,
29922,
29896,
29897,
13,
1678,
6554,
353,
696,
1028,
29891,
29889,
19907,
29898,
29934,
3040,
29897,
13,
1678,
4331,
353,
29871,
29900,
13,
13,
1678,
1550,
451,
696,
1028,
29891,
29889,
275,
29918,
845,
329,
3204,
7295,
13,
13,
4706,
396,
3251,
403,
716,
848,
1298,
13,
4706,
995,
353,
5844,
29889,
5223,
29898,
29906,
29930,
755,
29889,
1631,
29930,
10568,
29914,
29934,
3040,
29897,
13,
13,
4706,
396,
4522,
322,
9805,
848,
13,
4706,
696,
1028,
29891,
29889,
1188,
3888,
703,
21076,
1674,
292,
12365,
29889,
29941,
29888,
29913,
1642,
4830,
29898,
1767,
876,
13,
4706,
2529,
29889,
23679,
29898,
1767,
29897,
13,
13,
4706,
396,
25215,
749,
278,
5665,
13,
4706,
4331,
353,
4331,
718,
29871,
29896,
13,
13,
4706,
396,
20340,
304,
1993,
278,
6554,
13,
4706,
6554,
29889,
17059,
580,
13,
2
] |
Lab4/sigmoidGradient.py | A2Zntu/ML_HW | 0 | 116627 | from sigmoid import sigmoid
import numpy as np
def sigmoidGradient(z):
#SIGMOIDGRADIENT returns the gradient of the sigmoid function
#evaluated at z
# g = SIGMOIDGRADIENT(z) computes the gradient of the sigmoid function
# evaluated at z. This should work regardless if z is a matrix or a
# vector. In particular, if z is a vector or matrix, you should return
# the gradient for each element.
# The value g should be correctly computed by your code below.
g = 0
# ====================== YOUR CODE HERE ======================
# Instructions: Compute the gradient of the sigmoid function evaluated at
# each value of z (z can be a matrix, vector or scalar).
try:
if len(z.shape) == 2:
g = np.multiply(sigmoid(z), np.transpose(np.ones((z.shape[0], z.shape[1]))-sigmoid(z)))
elif len(z.shape) == 1:
g = np.multiply(sigmoid(z), np.transpose(np.ones((z.shape[0]))-sigmoid(z)))
except AttributeError:
g = sigmoid(z) * (1 - sigmoid(z))
# =============================================================
return g | [
1,
515,
4365,
29885,
3398,
1053,
4365,
29885,
3398,
13,
5215,
12655,
408,
7442,
29871,
13,
13,
1753,
4365,
29885,
3398,
25584,
993,
29898,
29920,
1125,
13,
29937,
5425,
29954,
6720,
1367,
14345,
3035,
29902,
3919,
3639,
278,
16030,
310,
278,
4365,
29885,
3398,
740,
13,
29937,
24219,
630,
472,
503,
13,
29937,
259,
330,
353,
317,
6259,
6720,
1367,
14345,
3035,
29902,
3919,
29898,
29920,
29897,
2912,
267,
278,
16030,
310,
278,
4365,
29885,
3398,
740,
13,
29937,
259,
19030,
472,
503,
29889,
910,
881,
664,
17126,
565,
503,
338,
263,
4636,
470,
263,
13,
29937,
259,
4608,
29889,
512,
3153,
29892,
565,
503,
338,
263,
4608,
470,
4636,
29892,
366,
881,
736,
13,
29937,
259,
278,
16030,
363,
1269,
1543,
29889,
13,
13,
29937,
450,
995,
330,
881,
367,
5149,
15712,
491,
596,
775,
2400,
29889,
13,
1678,
330,
353,
29871,
29900,
13,
13,
29937,
1275,
9166,
2751,
612,
22970,
4810,
2287,
379,
27267,
1275,
9166,
2751,
13,
29937,
2799,
582,
1953,
29901,
11796,
29872,
278,
16030,
310,
278,
4365,
29885,
3398,
740,
19030,
472,
13,
29937,
1669,
1269,
995,
310,
503,
313,
29920,
508,
367,
263,
4636,
29892,
4608,
470,
17336,
467,
13,
1678,
1018,
29901,
13,
4706,
565,
7431,
29898,
29920,
29889,
12181,
29897,
1275,
29871,
29906,
29901,
13,
9651,
330,
353,
7442,
29889,
18056,
368,
29898,
18816,
29885,
3398,
29898,
29920,
511,
7442,
29889,
3286,
4220,
29898,
9302,
29889,
2873,
3552,
29920,
29889,
12181,
29961,
29900,
1402,
503,
29889,
12181,
29961,
29896,
12622,
29899,
18816,
29885,
3398,
29898,
29920,
4961,
29871,
13,
4706,
25342,
7431,
29898,
29920,
29889,
12181,
29897,
1275,
29871,
29896,
29901,
13,
9651,
330,
353,
7442,
29889,
18056,
368,
29898,
18816,
29885,
3398,
29898,
29920,
511,
7442,
29889,
3286,
4220,
29898,
9302,
29889,
2873,
3552,
29920,
29889,
12181,
29961,
29900,
12622,
29899,
18816,
29885,
3398,
29898,
29920,
4961,
13,
1678,
5174,
23833,
2392,
29901,
13,
4706,
330,
353,
4365,
29885,
3398,
29898,
29920,
29897,
334,
313,
29896,
448,
4365,
29885,
3398,
29898,
29920,
876,
13,
308,
13,
29937,
1275,
9166,
9166,
9166,
4936,
25512,
13,
268,
13,
1678,
736,
330,
2
] |
evap/evaluation/templatetags/navbar_templatetags.py | felixrindt/EvaP | 29 | 152725 | from django.template import Library
from evap.evaluation.models import Semester
from evap.settings import DEBUG, LANGUAGES
register = Library()
@register.inclusion_tag("navbar.html")
def include_navbar(user, language):
return {
"user": user,
"current_language": language,
"languages": LANGUAGES,
"published_result_semesters": Semester.get_all_with_published_unarchived_results(),
"result_semesters": Semester.get_all_with_unarchived_results(),
"grade_document_semesters": Semester.objects.filter(grade_documents_are_deleted=False),
"debug": DEBUG,
}
| [
1,
515,
9557,
29889,
6886,
1053,
9538,
13,
13,
3166,
3415,
481,
29889,
24219,
362,
29889,
9794,
1053,
9444,
4156,
13,
3166,
3415,
481,
29889,
11027,
1053,
21681,
29892,
365,
19453,
29965,
10461,
29903,
13,
13,
9573,
353,
9538,
580,
13,
13,
13,
29992,
9573,
29889,
262,
10085,
29918,
4039,
703,
21890,
29889,
1420,
1159,
13,
1753,
3160,
29918,
21890,
29898,
1792,
29892,
4086,
1125,
13,
1678,
736,
426,
13,
4706,
376,
1792,
1115,
1404,
29892,
13,
4706,
376,
3784,
29918,
11675,
1115,
4086,
29892,
13,
4706,
376,
29880,
8737,
1115,
365,
19453,
29965,
10461,
29903,
29892,
13,
4706,
376,
5467,
3726,
29918,
2914,
29918,
12846,
28910,
1115,
9444,
4156,
29889,
657,
29918,
497,
29918,
2541,
29918,
5467,
3726,
29918,
348,
1279,
2347,
29918,
9902,
3285,
13,
4706,
376,
2914,
29918,
12846,
28910,
1115,
9444,
4156,
29889,
657,
29918,
497,
29918,
2541,
29918,
348,
1279,
2347,
29918,
9902,
3285,
13,
4706,
376,
8228,
29918,
3225,
29918,
12846,
28910,
1115,
9444,
4156,
29889,
12650,
29889,
4572,
29898,
8228,
29918,
3225,
29879,
29918,
598,
29918,
311,
22742,
29922,
8824,
511,
13,
4706,
376,
8382,
1115,
21681,
29892,
13,
1678,
500,
13,
2
] |
plotext/plot.py | asartori86/plotext | 0 | 163528 | # /usr/bin/env python3
# -*- coding: utf-8 -*-
##############################################
############## Importing ###############
##############################################
import utility as _utility
import docstrings as _docstrings
import subprocess as _subprocess
##############################################
########### Initialization #############
##############################################
_platform = _utility.platform()
#_platform = "windows"
if _platform == "windows":
_subprocess.call('', shell = True)
_utility.marker.pop('small')
_utility.marker_sequence.remove('small')
_shell = _utility.shell()
##############################################
########## Basic Containers ############
##############################################
class _figure():
def __init__(self):
self.width = None
self.height = None
self.rows = 1
self.cols = 1
self.set_subplots()
self.row = 0
self.col = 0
self.set_subplot()
self.canvas = ""
def set_subplots(self):
self.subplots = [[_subplot(r, c) for c in range(self.cols)] for r in range(self.rows)]
def get_subplot(self, row = 0 , col = 0):
return self.subplots[row - 1][col - 1]
def set_subplot(self):
self.subplot = self.subplots[self.row][self.col]
class _subplot():
def __init__(self, row, col):
self.row = row
self.col = col
self.yaxis = []
self.label = []
self.label_show = []
self.point_marker = []
self.line_marker = []
self.point_color = []
self.line_color = []
self.x = []
self.y = []
self.signals = 0
self.fillx = []
self.filly = []
self.width = None
self.height = None
self.width_set = None
self.height_set = None
self.title = ""
self.xlabel = ""
self.ylabel = ["", ""]
self.xaxes = [True, True]
self.yaxes = [True, True]
self.grid = [False, False]
self.axes_color = "white"
self.ticks_color = "black"
self.canvas_color = "white"
self.xlim_plot = [None, None]
self.ylim_plot_left = [None, None]
self.ylim_plot_right = [None, None]
self.xticks, self.xlabels = [], []
self.yticks_left, self.ylabels_left = [], []
self.yticks_right, self.ylabels_right = [], []
self.ticks = [5, 7]
self.xscale = "linear"
self.yscale = ["linear", "linear"]
_fig = _figure()
#figure = _fig
#utility = _utility
##############################################
######### Subplots Function ############
##############################################
def subplots(rows = None, cols = None, ):
rows, cols = _utility.set_first_to_both(rows, cols)
_set_rows(rows)
_set_cols(cols)
_fig.set_subplots()
subplot(1, 1)
subplots.__doc__ = _docstrings.subplots_doc
def _set_cols(cols = None):
cols = _utility.set_if_none(cols, 1)
_fig.cols = cols
def _set_rows(rows = None):
rows = _utility.set_if_none(rows, 1)
_fig.rows = rows
def subplot(row = 1, col = 1):
_set_row(row)
_set_col(col)
_fig.set_subplot()
subplot.__doc__ = _docstrings.subplot_doc
def _set_col(col = None):
col = _utility.set_if_none(col, 1)
_fig.col = col - 1
def _set_row(row = None):
row = _utility.set_if_none(row, 1)
_fig.row = row - 1
subplots(1, 1)
subplot(1, 1)
##############################################
####### Draw Related Functions #########
##############################################
def _draw(*args, **kwargs):
_yaxis(kwargs.get("yaxis"))
_label(kwargs.get("label"))
_point_marker(kwargs.get("point_marker"))
_line_marker(kwargs.get("line_marker"))
_point_color(kwargs.get("point_color"))
_line_color(kwargs.get("line_color"))
_data(*args)
_fillx(kwargs.get("fillx"))
_filly(kwargs.get("filly"))
def _yaxis(axis = None):
axis_none = "left"
axis = _utility.set_if_none(axis, axis_none)
axis = "left" if axis != "left" and axis != "right" else axis
_fig.subplot.yaxis.append(axis)
def _label(label = None):
label_none = ""
label = _utility.set_if_none(label, label_none)
label_show = True
_fig.subplot.label.append(label)
_fig.subplot.label_show.append(label_show)
#To-do: data with same label
def _point_marker(marker = None):
index = len(set(_fig.subplot.point_marker)) % len(_utility.marker_sequence)
marker_none = _utility.marker_sequence[index]
marker = "" if marker == "" else marker
marker = _utility.set_if_none(marker, marker_none)
small_test = marker == "small" and _platform == "linux"
marker = _utility.marker[marker] if marker in _utility.marker and not small_test else marker
marker = "small" if small_test else (marker[0] if len(marker) > 0 else marker)
_fig.subplot.point_marker.append(marker)
def _line_marker(marker = None):
index = len(set(_fig.subplot.line_marker)) % len(_utility.marker_sequence)
marker_none = _utility.marker_sequence[index]
marker = "" if marker == "" else marker
marker = _utility.set_if_none(marker, marker_none)
small_test = marker == "small" and _platform == "linux"
marker = _utility.marker[marker] if marker in _utility.marker and not small_test else marker
marker = "small" if small_test else (marker[0] if len(marker) > 0 else marker)
_fig.subplot.line_marker.append(marker)
def _point_color(color = None):
color = None if color not in _utility.color_sequence else color
index = len(set(_fig.subplot.point_color)) % len(_utility.color_sequence)
color_none = _utility.color_sequence[index]
color = _utility.set_if_none(color, color_none)
_fig.subplot.point_color.append(color)
def _line_color(color = None):
color = None if color not in _utility.color_sequence else color
index = len(set(_fig.subplot.line_color)) % len(_utility.color_sequence)
color_none = _utility.color_sequence[index]
color = _utility.set_if_none(color, color_none)
_fig.subplot.line_color.append(color)
def _data(*args):
x, y = _utility.get_data(*args)
_fig.subplot.x.append(x)
_fig.subplot.y.append(y)
_fig.subplot.signals += 1
def _fillx(fill = None):
fill = _utility.set_if_none(fill, False)
fill = bool(fill)
_fig.subplot.fillx.append(fill)
def _filly(fill = None):
fill = _utility.set_if_none(fill, False)
fill = bool(fill)
_fig.subplot.filly.append(fill)
##############################################
########### Clear Functions ############
##############################################
def clear_terminal():
_utility.write('\033c')
_utility._terminal_printed_lines_cnt = 0
clear_terminal.__doc__ = _docstrings.clear_terminal_doc
clt = clear_terminal
def clear_terminal_printed_lines():
# clear the lines that plotext had printed
# (plus 1 because the last line would not has an \n at the end)
n = _utility._terminal_printed_lines_cnt + 1
for i in range(n):
_utility.write("\033[2K")
if i < n - 1:
_utility.write("\033[A")
_utility.write("\033[2K")
_utility._terminal_printed_lines_cnt = 0
def clear_figure():
_fig.__init__()
clear_figure.__doc__ = _docstrings.clear_figure_doc
clf = clear_figure
def clear_plot():
_fig.subplot.__init__(_fig.row, _fig.col)
clear_plot.__doc__ = _docstrings.clear_plot_doc
clp = clear_plot
def clear_data():
_fig.subplot.x = []
_fig.subplot.y = []
_fig.subplot.signals = 0
clear_data.__doc__ = _docstrings.clear_data_doc
cld = clear_data
##############################################
############ Set Functions #############
##############################################
def plotsize(width = None, height = None):
width, height = _utility.set_first_to_both(width, height)
width, height = _utility.set_list_to_both(width, height)
_fig.subplot.width_set = width
_fig.subplot.height_set = height
plotsize.__doc__ = _docstrings.plotsize_doc
plot_size = plotsize
def title(label = None):
label = _utility.set_if_none(label, _fig.subplot.title)
label = None if label == "" else label
_fig.subplot.title = label
title.__doc__ = _docstrings.title_doc
def xlabel(label = ""):
label = _utility.set_if_none(label, _fig.subplot.xlabel)
_fig.subplot.xlabel = label
xlabel.__doc__ = _docstrings.xlabel_doc
def ylabel(label_left = "", label_right = ""):
label_left = _utility.set_if_none(label_left, _fig.subplot.ylabel[0])
label_right = _utility.set_if_none(label_right, _fig.subplot.ylabel[1])
_fig.subplot.ylabel = [label_left, label_right]
ylabel.__doc__ = _docstrings.ylabel_doc
def xaxes(x = None, y = None):
x, y = _utility.set_first_to_both(x, y)
y = bool(y)
x, y = _utility.set_list_if_none([x, y], _fig.subplot.xaxes)
x = bool(x)
x, y = _utility.set_list_to_both(x, y)
_fig.subplot.xaxes = [x, y]
xaxes.__doc__ = _docstrings.xaxes_doc
def yaxes(x = None, y = None):
x, y = _utility.set_first_to_both(x, y)
y = bool(y)
x, y = _utility.set_list_if_none([x, y], _fig.subplot.yaxes)
x = bool(x)
x, y = _utility.set_list_to_both(x, y)
_fig.subplot.yaxes = [x, y]
yaxes.__doc__ = _docstrings.yaxes_doc
def grid(x = None, y = None):
x, y = _utility.set_first_to_both(x, y)
y = bool(y)
x, y = _utility.set_list_if_none([x, y], _fig.subplot.grid)
x = bool(x)
x, y = _utility.set_list_to_both(x, y)
_fig.subplot.grid = [x, y]
grid.__doc__ = _docstrings.grid_doc
def axes_color(color = "white"):
color = _utility.set_if_none(color, _fig.subplot.axes_color)
color = "white" if color not in list(_utility.background_color.keys()) else color
_fig.subplot.axes_color = color
axes_color.__doc__ = _docstrings.axes_color_doc
def ticks_color(color = "black"):
color = _utility.set_if_none(color, _fig.subplot.ticks_color)
color = "black" if color not in list(_utility.fullground_color.keys()) else color
_fig.subplot.ticks_color = color
ticks_color.__doc__ = _docstrings.ticks_color_doc
def canvas_color(color = "white"):
color = _utility.set_if_none(color, _fig.subplot.canvas_color)
color = "white" if color not in list(_utility.background_color.keys()) else color
_fig.subplot.canvas_color = color
canvas_color.__doc__ = _docstrings.canvas_color_doc
def _colorless_subplot(subplot):
subplot.point_color = ["none"] * len(subplot.point_color)
subplot.line_color = ["none"] * len(subplot.line_color)
subplot.axes_color = "none"
subplot.ticks_color = "none"
subplot.canvas_color = "none"
def colorless():
_colorless_subplot(_fig.subplot)
colorless.__doc__ = _docstrings.colorless_doc
cls = colorless
def xlim(left = None, right = None):
left, right = _utility.set_list_to_both(left, right)
left, right = min(left, right), max(left, right)
_fig.subplot.xlim_plot = [left, right]
xlim.__doc__ = _docstrings.xlim_doc
def ylim(lower = None, upper = None, yaxis = "left"):
lower, upper = _utility.set_list_to_both(lower, upper)
lower, upper = min(lower, upper), max(lower, upper)
if yaxis == "left":
_fig.subplot.ylim_plot_left = [lower, upper]
elif yaxis == "right":
_fig.subplot.ylim_plot_right = [lower, upper]
ylim.__doc__ = _docstrings.ylim_doc
def ticks(x = None, y = None):
x, y = _utility.set_first_to_both(x, y)
x, y = _utility.set_list_to_both(x, y)
x_none, y_none = 5, 7
x = _utility.set_if_none(x, x_none)
y = _utility.set_if_none(y, y_none)
_fig.subplot.ticks = [x, y]
ticks.__doc__ = _docstrings.ticks_doc
def xticks(ticks = [], labels = None):
ticks, labels = _utility.set_first_to_both(list(ticks), labels)
labels = list(map(str, list(labels)))
ticks, labels = _utility.sort_data(ticks, labels)
_fig.subplot.xticks, _fig.subplot.xlabels = ticks, labels
_fig.subplot.ticks[0] = len(ticks)
xticks.__doc__ = _docstrings.xticks_doc
def yticks(ticks = [], labels = None, yaxis = "left"):
ticks, labels = _utility.set_first_to_both(list(ticks), labels)
labels = list(map(str, list(labels)))
ticks, labels = _utility.sort_data(ticks, labels)
if yaxis == "left":
_fig.subplot.yticks_left, _fig.subplot.ylabels_left = ticks, labels
elif yaxis == "right":
_fig.subplot.yticks_right, _fig.subplot.ylabels_right = ticks, labels
_fig.subplot.ticks[1] = len(ticks)
yticks.__doc__ = _docstrings.yticks_doc
def xscale(scale = None):
scale = _utility.set_if_none(scale, _fig.subplot.xscale)
scale = "linear" if not (scale in ["linear", "log"]) else scale
_fig.subplot.xscale = scale
xscale.__doc__ = _docstrings.xscale_doc
def yscale(scale = None, yaxis = "left"):
scale = _utility.set_if_none(scale, _fig.subplot.xscale)
scale = "linear" if not (scale in ["linear", "log"]) else scale
if yaxis == "right":
_fig.subplot.yscale[1] = scale
else:
_fig.subplot.yscale[0] = scale
yscale.__doc__ = _docstrings.yscale_doc
##############################################
########### Show Functions #############
##############################################
def show(hide = False):
_figure_size_max()
_figure_size()
#_plots_size()
_coherent_sizes()
for r in range(_fig.rows):
for c in range(_fig.cols):
subplot = _fig.subplots[r][c]
_previous_size(subplot)
_sort_data(subplot)
_height(subplot)
_ylim_data(subplot)
_ylim_plot(subplot)
_yticks(subplot)
_width(subplot)
_xlim_data(subplot)
_xlim_plot(subplot)
_xticks(subplot)
_matrix(subplot)
_add_xgrid(subplot)
_add_ygrid(subplot)
_add_data(subplot)
_add_legend(subplot)
_add_yaxis(subplot)
_add_xaxis(subplot)
_add_title(subplot)
_add_labels(subplot)
_join_matrices()
_fig.canvas = _utility.get_canvas(_fig.matrix)
if hide:
return
_utility.write(_fig.canvas)
show.__doc__ = _docstrings.show_doc
def _figure_size_max():
_fig.width_max, _fig.height_max = terminal_size()
_fig.height_max -= 3
_fig.width_max -= (_fig.cols - 1)
_fig.height_max -= (_fig.rows - 1)
def _figure_size():
# width = _utility.set_if_none(_fig.width, _fig.width_max)
# height = _utility.set_if_none(_fig.height, _fig.height_max)
# width = abs(int(width))
# height = abs(int(height))
# width = _fig.width_max if width > _fig.width_max else width
# height = _fig.height_max if height > _fig.height_max else height
_fig.width = _fig.width_max
_fig.height = _fig.height_max
def _coherent_sizes():
width = []
for c in range(_fig.cols):
w = [_fig.subplots[r][c].width for r in range(_fig.rows)]
w = [el for el in w if el is not None]
w = max(w, default = None)
width.append(w)
height = []
for r in range(_fig.rows):
h = [_fig.subplots[r][c].height for c in range(_fig.cols)]
h = [el for el in h if el is not None]
h = max(h, default = None)
height.append(h)
for c in range(_fig.cols):
for r in range(_fig.rows):
subplot = _fig.subplots[r][c]
subplot.width = width[c]
subplot.height = height[r]
def _previous_size(subplot):
row, col = subplot.row, subplot.col
width, height = 0, 0
for r in range(row):
height += _fig.subplots[r][0].height
for c in range(col):
width += _fig.subplots[0][c].width
_fig.previous_width = width
_fig.previous_height = height
def _sort_data(subplot):
subplot.x_left = [subplot.x[i] for i in range(len(subplot.x)) if subplot.yaxis[i] == "left"]
subplot.y_left = [subplot.y[i] for i in range(len(subplot.x)) if subplot.yaxis[i] == "left"]
subplot.signals_left = len(subplot.y_left)
subplot.x_right = [subplot.x[i] for i in range(len(subplot.x)) if subplot.yaxis[i] == "right"]
subplot.y_right = [subplot.y[i] for i in range(len(subplot.x)) if subplot.yaxis[i] == "right"]
subplot.signals_right = len(subplot.y_right)
subplot.data_left = subplot.x_left != [] and subplot.y_left != []
subplot.data_right = subplot.x_right != [] and subplot.y_right != []
subplot.data = subplot.data_left or subplot.data_right
def _height(subplot):
subplot.height_max = _fig.height - _fig.previous_height
height_none = subplot.height_max // (_fig.rows - subplot.row)
height = _utility.set_if_none(subplot.height_set, height_none)
height = abs(int(height))
height = subplot.height_max if height > subplot.height_max else height
subplot.height = height
subplot.xaxes[0] = 0 if height < 2 else subplot.xaxes[0]
subplot.xaxes[1] = 0 if height < 3 else subplot.xaxes[1]
subplot.ticks[0] = 0 if height < 4 else subplot.ticks[0]
subplot.title = "" if height < 5 else subplot.title
subplot.xlabel = "" if height < 6 else subplot.xlabel
subplot.ylabel = ["", ""] if height < 6 else subplot.ylabel
xaxis_low = int(subplot.xaxes[0] and subplot.data)
xaxis_up = int(subplot.xaxes[1] and subplot.data)
xticks = bool(subplot.ticks[0] and subplot.data)
title = int(subplot.title != "")
labels = int(subplot.xlabel != "" or subplot.ylabel != ["", ""])
tot = title + xaxis_low + xaxis_up + xticks + labels
subplot.height_canvas = subplot.height - tot
def _ylim_data(subplot):
y_left = [_utility.log(subplot.y_left[s]) if subplot.yscale[0] == "log" else subplot.y_left[s] for s in range(subplot.signals_left)]
y_right = [_utility.log(subplot.y_right[s]) if subplot.yscale[1] == "log" else subplot.y_right[s] for s in range(subplot.signals_right)]
subplot.ylim_data_left = _utility.get_lim_data(y_left)
subplot.ylim_data_right = _utility.get_lim_data(y_right)
def _ylim_plot(subplot):
subplot.ylim_plot_left = _utility.set_list_if_none(subplot.ylim_plot_left, subplot.ylim_data_left)
subplot.ylim_plot_right = _utility.set_list_if_none(subplot.ylim_plot_right, subplot.ylim_data_right)
#subplot.dy = (subplot.ylim_plot[1] - subplot.ylim_plot[0]) / subplot.height_canvas
def _yticks(subplot):
if subplot.yticks_left == [] and subplot.ticks[1] and subplot.data_left:
if subplot.yscale[0] == "linear":
subplot.yticks_left = _utility.get_ticks(subplot.ylim_plot_left, subplot.ticks[1])
subplot.ylabels_left = _utility.get_labels(subplot.yticks_left)
if subplot.yscale[0] == "log":
subplot.yticks_left, subplot.ylabels_left = _utility.get_log_ticks(subplot.ylim_plot_left, subplot.ticks[1])
subplot.yticks_rows_left = _utility.get_matrix_data(subplot.yticks_left, subplot.ylim_plot_left, subplot.height_canvas)
if subplot.yticks_right == [] and subplot.ticks[1] and subplot.data_right:
if subplot.yscale[1] == "linear":
subplot.yticks_right = _utility.get_ticks(subplot.ylim_plot_right, subplot.ticks[1])
subplot.ylabels_right = _utility.get_labels(subplot.yticks_right)
if subplot.yscale[1] == "log":
subplot.yticks_right, subplot.ylabels_right = _utility.get_log_ticks(subplot.ylim_plot_right, subplot.ticks[1])
subplot.yticks_rows_right = _utility.get_matrix_data(subplot.yticks_right, subplot.ylim_plot_right, subplot.height_canvas)
def _width(subplot):
subplot.width_max = _fig.width - _fig.previous_width
width_none = subplot.width_max // (_fig.cols - subplot.col)
width = _utility.set_if_none(subplot.width_set, width_none)
width = abs(int(width))
width = subplot.width_max if width > subplot.width_max else width
subplot.width = width
subplot.yaxes[0] = 0 if width < 2 else subplot.yaxes[0]
subplot.yaxes[1] = 0 if width < 3 else subplot.yaxes[1]
ylabels_width_left = max(map(len, subplot.ylabels_left), default = 0) * bool(subplot.ticks[1] and subplot.data_left)
subplot.ticks[1] = 0 if width < 3 + ylabels_width_left else subplot.ticks[1]
ylabels_width_left = 0 if width < 3 + ylabels_width_left else ylabels_width_left
ylabels_width_right = max(map(len, subplot.ylabels_right), default = 0) * bool(subplot.ticks[1] and subplot.data_right)
ylabels_width_right = 0 if width < ylabels_width_right + ylabels_width_left + 3 else ylabels_width_right
yaxis_left = int(subplot.yaxes[0] and subplot.data)
yaxis_right = int(subplot.yaxes[1] and subplot.data)
tot = ylabels_width_left + yaxis_left + yaxis_right + ylabels_width_right
subplot.width_canvas = subplot.width - tot
subplot.ylabels_width_left = ylabels_width_left
subplot.ylabels_width_right = ylabels_width_right
ylabel_length = len(subplot.ylabel[0]) + 3
if subplot.width < ylabel_length:
subplot.height_canvas += 1
def _xlim_data(subplot):
x = [_utility.log(subplot.x[s]) if subplot.xscale == "log" else subplot.x[s] for s in range(subplot.signals)]
subplot.xlim_data = _utility.get_lim_data(x)
def _xlim_plot(subplot):
subplot.xlim_plot = _utility.set_list_if_none(subplot.xlim_plot, subplot.xlim_data)
#subplot.dy = (subplot.ylim_plot[1] - subplot.ylim_plot[0]) / subplot.height_canvas
def _xticks(subplot):
if subplot.xticks == [] and subplot.ticks[0]:
if subplot.xscale == "linear":
subplot.xticks = _utility.get_ticks(subplot.xlim_plot, subplot.ticks[0])
subplot.xlabels = _utility.get_labels(subplot.xticks)
if subplot.xscale == "log":
subplot.xticks, subplot.xlabels = _utility.get_log_ticks(subplot.xlim_plot, subplot.ticks[0])
subplot.xticks_cols = _utility.get_matrix_data(subplot.xticks, subplot.xlim_plot, subplot.width_canvas)
def _matrix(subplot):
marker = [" ", "none", subplot.canvas_color]
subplot.matrix = [[marker[:] for c in range(subplot.width_canvas)] for r in range(subplot.height_canvas)]
def _add_xgrid(subplot):
if not subplot.grid[0]:
return
grid_color = subplot.ticks_color
for c in subplot.xticks_cols:
x, y = _utility.get_line([c, c], [0, subplot.height_canvas])
marker = "│"
subplot.matrix = _utility.update_matrix(subplot.matrix, x, y, marker, grid_color)
def _add_ygrid(subplot):
if not subplot.grid[1]:
return
grid_color = subplot.ticks_color
for r in subplot.yticks_rows_left + subplot.yticks_rows_right:
x, y = _utility.get_line([0, subplot.width_canvas], [r, r])
marker = "─"
subplot.matrix = _utility.update_matrix(subplot.matrix, x, y, marker, grid_color)
if subplot.grid[0]:
x = subplot.xticks_cols
y = [r] * len(x)
marker = "┼"
subplot.matrix = _utility.update_matrix(subplot.matrix, x, y, marker, grid_color)
def _add_data(subplot):
for s in range(len(subplot.x)):
point_marker, point_color = subplot.point_marker[s], subplot.point_color[s]
line_marker, line_color = subplot.line_marker[s], subplot.line_color[s]
x, y = subplot.x[s], subplot.y[s]
x_test = subplot.xscale == "log"
x = _utility.log(x) if x_test else x
y_test = (subplot.yscale[0] == "log" and subplot.yaxis[s] == "left") or (subplot.yscale[1] == "log" and subplot.yaxis[s] == "right")
y = _utility.log(y) if y_test else y
mf = 2 if point_marker == "small" or line_marker == "small" else 1 # small marker factor
ylim_plot = subplot.ylim_plot_left if subplot.yaxis[s] == "left" else subplot.ylim_plot_right
x_point = _utility.get_matrix_data(x, subplot.xlim_plot, mf * subplot.width_canvas)
y_point = _utility.get_matrix_data(y, ylim_plot, mf * subplot.height_canvas)
x_line, y_line = [], []
if line_marker != "":
x_line, y_line = _utility.get_line(x_point, y_point)
if subplot.fillx[s]:
height0 = _utility.get_matrix_data([0], ylim_plot, mf * subplot.height_canvas)[0]
x_point, y_point = _utility.fill_data(x_point, y_point, height0)
x_line, y_line = _utility.fill_data(x_line, y_line, height0)
if subplot.filly[s]:
width0 = _utility.get_matrix_data([0], subplot.xlim_plot, mf * subplot.width_canvas)[0]
y_point, x_point = _utility.fill_data(y_point, x_point, width0)
y_line, x_line = _utility.fill_data(y_line, x_line, width0)
x_line = [el / mf for el in x_line]
y_line = [el / mf for el in y_line]
if line_marker != "":
subplot.matrix = _utility.update_matrix(subplot.matrix, x_line, y_line, line_marker, line_color)
x_point = [el / mf for el in x_point]
y_point = [el / mf for el in y_point]
if point_marker != "":
subplot.matrix = _utility.update_matrix(subplot.matrix, x_point, y_point, point_marker, point_color)
def _add_legend(subplot):
label = subplot.label
show = any([el != "" for el in label])
side_test = subplot.data_left and subplot.data_right
if not (show or side_test):
return
l = len(label)
label = ["signal " + str(i + 1) if label[i] == "" and show else label[i] for i in range(l)]
side_label = ["[" + subplot.yaxis[i] + "] " if side_test else "" for i in range(l)]
label = [side_label[i] + label[i] for i in range(l)]
label = [" " + el + " " for el in label]
label = [list(el) for el in label]
w = max(map(len, label))
label = [el + [" "] * (w - len(el)) for el in label]
legend = [[] for i in range(l)]
legend_color = [[] for i in range(l)]
for i in range(l):
point_marker, line_marker = subplot.point_marker[i], subplot.line_marker[i]
point_color, line_color = subplot.point_color[i], subplot.line_color[i]
marker = point_marker if point_marker != "" else line_marker
marker = "▄" if marker == "small" else marker
color = point_color if point_marker != "" else line_color
legend[i] += [marker] * 3
legend[i] += label[i]
legend_color[i] += [color] * 3
legend_color[i] += [subplot.ticks_color] * w
legend = [legend[i] for i in range(len(legend)) if subplot.label_show[i]]
legend_color = [legend_color[i] for i in range(len(legend_color)) if subplot.label_show[i]]
legend = _utility.frame_matrix(legend)
legend_color = _utility.frame_matrix(legend_color, subplot.ticks_color)
legend = [[ [legend[i][j], legend_color[i][j], subplot.canvas_color] for j in range(len(legend[0]))] for i in range(len(legend))]
subplot.matrix = _utility.insert(legend, subplot.matrix) if show or side_test else subplot.matrix
# To do: Legend frame interferes with grid lines
def _add_yaxis(subplot):
if subplot.x == []:
return
labels_left = [" " * subplot.ylabels_width_left for r in range(subplot.height_canvas)]
for i in range(len(subplot.yticks_rows_left)):
r = subplot.yticks_rows_left[i]
if r in range(subplot.height_canvas):
labels_left[r] = str(subplot.ylabels_left[i])[ : subplot.ylabels_width_left]
labels_left = [" " * (subplot.ylabels_width_left - len(el)) + el for el in labels_left]
labels_left = [list(el) for el in labels_left]
labels_left = [[[sub_el, subplot.ticks_color, subplot.axes_color] for sub_el in el] for el in labels_left]
labels_left = labels_left[::-1]
ytick = "┼" if subplot.grid[1] else "┤"
ytick = "│" if subplot.ylabels_width_right == 0 and subplot.grid[1] == False else ytick
ytick = ("┼" if subplot.ylabels_width_left != 0 else "├") if subplot.grid[1] else ("┤" if subplot.ylabels_width_left != 0 else "│")
axis_left = [(ytick if r in subplot.yticks_rows_right + subplot.yticks_rows_left else "│") for r in range(subplot.height_canvas)]
axis_left = [list(el) for el in axis_left]
axis_left = [[[sub_el, subplot.ticks_color, subplot.axes_color] for sub_el in el] for el in axis_left]
axis_left = axis_left[::-1]
labels_right = [" " * subplot.ylabels_width_right for r in range(subplot.height_canvas)]
for i in range(len(subplot.yticks_rows_right)):
r = subplot.yticks_rows_right[i]
if r in range(subplot.height_canvas):
labels_right[r] = str(subplot.ylabels_right[i])[ : subplot.ylabels_width_right]
labels_right = [el + " " * (subplot.ylabels_width_right - len(el)) for el in labels_right]
labels_right = [list(el) for el in labels_right]
labels_right = [[[sub_el, subplot.ticks_color, subplot.axes_color] for sub_el in el] for el in labels_right]
labels_right = labels_right[::-1]
ytick = ("┼" if subplot.ylabels_width_right != 0 else "┤") if subplot.grid[1] else ("├" if subplot.ylabels_width_right != 0 else "│")
axis_right = [(ytick if r in subplot.yticks_rows_right + subplot.yticks_rows_left else "│") for r in range(subplot.height_canvas)]
axis_right = [list(el) for el in axis_right]
axis_right = [[[sub_el, subplot.ticks_color, subplot.axes_color] for sub_el in el] for el in axis_right]
axis_right = axis_right[::-1]
if subplot.yaxes[0]:
for r in range(subplot.height_canvas):
subplot.matrix[r] = axis_left[r] + subplot.matrix[r]
if subplot.yaxes[1]:
for r in range(subplot.height_canvas):
subplot.matrix[r] = subplot.matrix[r] + axis_right[r]
if subplot.ticks[1]:
for r in range(subplot.height_canvas):
subplot.matrix[r] = labels_left[r] + subplot.matrix[r] + labels_right[r]
def _add_xaxis(subplot):
if subplot.x == []:
return
axis_lower = [" "] * subplot.ylabels_width_left + ["└"] * subplot.yaxes[0]
axis_lower += ["─" for r in range(subplot.width_canvas)]
axis_lower += ["┘"] * subplot.yaxes[1] + [" "] * subplot.ylabels_width_right
axis_up = [" "] * subplot.ylabels_width_left + ["┌"] * subplot.yaxes[0]
axis_up += ["─" for r in range(subplot.width_canvas)]
axis_up += ["┐"] * subplot.yaxes[1] + [" "] * subplot.ylabels_width_right
labels_lower = [" "] * subplot.ylabels_width_left + [" "] * subplot.yaxes[0]
iniz_length = len(labels_lower)
labels_lower += [" " for r in range(subplot.width_canvas)]
labels_lower += [" "] * subplot.yaxes[0] + [" "] * subplot.ylabels_width_right
xtick_lower = "┼" if subplot.grid[0] else "┬"
xtick_up = "┬" if subplot.grid[0] else "─"
l = len(subplot.xticks_cols)
for i in range(l):
col = subplot.xticks_cols[i] + iniz_length
#if col >= subplot.width:
# continue
label = str(subplot.xlabels[i])
label_length = len(label)
label_col = list(range(max(col - label_length, 0), min(col + label_length + 1, subplot.width)))
label_col = [c for c in label_col if c + label_length <= subplot.width]
if label_col == []:
continue
label_col = min(label_col, key = lambda x : abs(x - (col - (label_length - 2) / 2)))
if label_col + label_length > subplot.width:
continue
label_prev = labels_lower[label_col - 1: label_col + label_length + 1]
label_prev = list(set(label_prev))
if label_prev == [" "] or label_prev == []:
labels_lower[label_col: label_col + label_length] = list(label)
axis_lower[col] = xtick_lower
axis_up[col] = xtick_up
elif axis_lower[col] == "─":
axis_lower[col] = "┴" if subplot.grid[0] else "─"
axis_up[col] = "┬" if subplot.grid[0] else "─"
axis_up = [[el, subplot.ticks_color, subplot.axes_color] for el in axis_up]
axis_lower = [[el, subplot.ticks_color, subplot.axes_color] for el in axis_lower]
labels_lower = [[el, subplot.ticks_color, subplot.axes_color] for el in labels_lower]
if subplot.xaxes[0]:
subplot.matrix += [axis_lower]
if subplot.xaxes[1]:
subplot.matrix = [axis_up] + subplot.matrix
if subplot.ticks[0]:
subplot.matrix += [labels_lower]
def _add_title(subplot):
if subplot.title == "":
return
width_left = subplot.ylabels_width_left + int(subplot.yaxes[0])
title = subplot.title[ : subplot.width_canvas]
space1 = " " * (width_left + int((subplot.width_canvas - len(title)) / 2))
space2 = " " * (subplot.width - len(title + space1))
title = space1 + title + space2
title = list(title)
title = [[el, subplot.ticks_color, subplot.axes_color] for el in title]
subplot.matrix = [title] + subplot.matrix
def _add_labels(subplot):
if subplot.xlabel == "" and subplot.ylabel == ["", ""]:
return
width_max = subplot.width - 4 * 3
ylabel_left = "[y] " + subplot.ylabel[0]
width_left = subplot.ylabels_width_left + int(subplot.yaxes[0])
ylabel_left = ylabel_left + " " * (width_left - len(ylabel_left))
ylabel_left = ylabel_left[ : width_max // 3]
ylabel_right = ""
if subplot.ylabel[1] != "":
ylabel_right = subplot.ylabel[1] + " [y]"
xlabel = " " + subplot.xlabel + " [x] "
l_left = len(ylabel_left)
l_tot = len(ylabel_left + xlabel + ylabel_right)
if l_tot > subplot.width:
xlabel = ""
l_tot = len(ylabel_left + xlabel + ylabel_right)
if l_tot > subplot.width:
ylabel_right = ""
l_tot = len(ylabel_left + xlabel + ylabel_right)
if l_tot > subplot.width:
ylabel_left = ""
space1 = " " * (width_left + int((subplot.width_canvas - len(xlabel)) / 2) - l_left)
if space1 == '':
return
space1 = " " * subplot.width if space1 == '' else space1
space2 = " " * (subplot.width - l_tot - len(space1))
label = ylabel_left + space1 + xlabel + space2 + ylabel_right
label = list(label)
label = [[el, subplot.ticks_color, subplot.axes_color] for el in label]
subplot.matrix += [label]
#ToDo: a bit messy, need reordering
def _join_matrices():
sep = " "
sep = [sep, "none", "none"]
matrix = []
for c in range(_fig.cols):
matrix_c = []
for r in range(_fig.rows):
matrix_c = _utility.join(matrix_c, _fig.subplots[r][c].matrix, sep, "vertical")
matrix = _utility.join(matrix, matrix_c, sep, "horizontal")
_fig.matrix = matrix
size = [0, 0] if matrix == [] else [len(matrix[0]), len(matrix)]
_fig.width, _fig.height = size
##############################################
######### Plotting Functions ###########
##############################################
def scatter(*args,
yaxis = "left",
label = "",
marker = None,
color = None,
fillx = None,
filly = None):
_draw(
*args,
yaxis = yaxis,
label = label,
point_marker = marker,
line_marker = "",
point_color = color,
line_color = "none",
fillx = fillx,
filly = filly)
scatter.__doc__ = _docstrings.scatter_doc
def plot(*args,
yaxis = "left",
label = "",
marker = None,
color = None,
fillx = None,
filly = None):
_draw(
*args,
yaxis = yaxis,
label = label,
point_marker = "",
line_marker = marker,
point_color = "none",
line_color = color,
fillx = fillx,
filly = filly)
plot.__doc__ = _docstrings.plot_doc
def bar(*args,
yaxis = "left",
label = "",
marker = "small",
color = None,
fill = True,
width = 4 / 5,
orientation = 'vertical'):
x, y = _utility.get_data(*args)
x, x_labels = _utility.bar_xdata(x)
xbar, ybar = _utility.bars(x, y, width)
if orientation in ['vertical', 'v']:
fillx, filly = fill, False
x_ticks = _fig.subplot.xticks + x
x_labels = _fig.subplot.xlabels + x_labels
xticks(x_ticks, x_labels)
elif orientation in ['horizontal', 'h']:
xbar, ybar = ybar, xbar
fillx, filly = False, fill
y_ticks = x + (_fig.subplot.yticks_left if yaxis == "left" else _fig.subplot.yticks_right)
y_labels = x_labels + (_fig.subplot.ylabels_left if yaxis == "left" else _fig.subplot.ylabels_right)
yticks(y_ticks, y_labels, yaxis = yaxis)
for b in range(len(x)):
xb, yb = xbar[b][1:3] + xbar[b][3:5], ybar[b][1:3] + ybar[b][3:5]
if not fill:
xb, yb = xbar[b], ybar[b]
fillx, filly = False, False
if list(set(yb)) != [0]:
plot(xb, yb, yaxis = yaxis, label = label, marker = marker, color = color, fillx = fillx, filly = filly)
if b != 0:
_fig.subplot.point_color[-1] = _fig.subplot.point_color[-2]
_fig.subplot.line_color[-1] = _fig.subplot.line_color[-2]
_fig.subplot.label_show[-1] = False
# _sort_data(_fig.subplot)
# y_plot = _fig.subplot.y_left if yaxis == "left" else _fig.subplot.y_right
# if orientation in ['horizontal', 'h']:
# y_plot = _fig.subplot.x_left if yaxis == "left" else _fig.subplot.x_right
# m, M = _utility.get_lim_data(y_plot)
# if m * M > 0:
# m = 0
# if orientation in ['vertical', 'v']:
# #ylim(m, M, yaxis = yaxis)
# pass
# else:
# xlim(m, M)
bar.__doc__ = _docstrings.bar_doc
def hist(data,
bins = 10,
yaxis = "left",
label = "",
marker = "small",
color = None,
fill = True,
width = 4 / 5,
orientation = 'vertical'):
x, y = _utility.hist_data(data, bins)
bar(x, y, yaxis = yaxis, label = label, marker = marker, color = color, fill = fill, width = width, orientation= orientation)
hist.__doc__ = _docstrings.plot_doc
##############################################
########## Other Functions #############
##############################################
string_to_time = _utility.string_to_time
string_to_time.__doc__ = _docstrings.string_to_time_doc
def get_canvas():
return _fig.canvas
get_canvas.__doc__ = _docstrings.get_canvas_doc
sleep = _utility.sleep
sleep.__doc__ = _docstrings.sleep_doc
def savefig(path = None):
path = _utility.check_path(path)
with open(path , "w+", encoding = "utf-8") as file:
file.write(_utility.remove_color(_fig.canvas))
print("plot saved as " + path)
savefig.__doc__ = _docstrings.savefig_doc
save_fig = savefig
terminal_size = _utility.terminal_size
terminal_size.__doc__ = _docstrings.terminal_size_doc
version = _utility.version
version.__doc__ = _docstrings.version_doc
docstrings = _utility.docstrings
docstrings.__doc__ = _docstrings.docstrings_doc
colors = _utility.colors
colors.__doc__ = _docstrings.colors_doc
markers = _utility.markers
markers.__doc__ = _docstrings.markers_doc
sin = _utility.sin
sin.__doc__ = _docstrings.sin_doc
if __name__ == "__main__":
#test()
import plotext as plt
plt.test()
| [
1,
396,
847,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
13383,
13383,
7346,
4136,
2277,
13,
7346,
4136,
2277,
1678,
16032,
292,
1678,
835,
7346,
4136,
13,
13383,
13383,
7346,
4136,
2277,
13,
5215,
19725,
408,
903,
329,
1793,
13,
5215,
1574,
19651,
408,
903,
1514,
19651,
13,
5215,
1014,
5014,
408,
903,
1491,
5014,
13,
13,
13383,
13383,
7346,
4136,
2277,
13,
7346,
2277,
29937,
1678,
17250,
2133,
1678,
835,
7346,
2277,
13,
13383,
13383,
7346,
4136,
2277,
13,
29918,
12120,
353,
903,
329,
1793,
29889,
12120,
580,
13,
29937,
29918,
12120,
353,
376,
10499,
29908,
13,
13,
361,
903,
12120,
1275,
376,
10499,
1115,
13,
1678,
903,
1491,
5014,
29889,
4804,
877,
742,
6473,
353,
5852,
29897,
13,
1678,
903,
329,
1793,
29889,
22976,
29889,
7323,
877,
9278,
1495,
13,
1678,
903,
329,
1793,
29889,
22976,
29918,
16506,
29889,
5992,
877,
9278,
1495,
13,
13,
29918,
15903,
353,
903,
329,
1793,
29889,
15903,
580,
13,
13,
13383,
13383,
7346,
4136,
2277,
13,
7346,
2277,
1678,
19219,
2866,
475,
414,
1678,
835,
7346,
29937,
13,
13383,
13383,
7346,
4136,
2277,
13,
1990,
903,
4532,
7295,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
2103,
353,
6213,
13,
4706,
1583,
29889,
3545,
353,
6213,
13,
308,
13,
4706,
1583,
29889,
5727,
353,
29871,
29896,
13,
4706,
1583,
29889,
22724,
353,
29871,
29896,
13,
4706,
1583,
29889,
842,
29918,
1491,
26762,
580,
13,
308,
13,
4706,
1583,
29889,
798,
353,
29871,
29900,
13,
4706,
1583,
29889,
1054,
353,
29871,
29900,
13,
4706,
1583,
29889,
842,
29918,
1491,
5317,
580,
13,
13,
4706,
1583,
29889,
15257,
353,
5124,
13,
13,
1678,
822,
731,
29918,
1491,
26762,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1491,
26762,
353,
5519,
29918,
1491,
5317,
29898,
29878,
29892,
274,
29897,
363,
274,
297,
3464,
29898,
1311,
29889,
22724,
4638,
363,
364,
297,
3464,
29898,
1311,
29889,
5727,
4638,
13,
308,
13,
1678,
822,
679,
29918,
1491,
5317,
29898,
1311,
29892,
1948,
353,
29871,
29900,
1919,
784,
353,
29871,
29900,
1125,
13,
4706,
736,
1583,
29889,
1491,
26762,
29961,
798,
448,
29871,
29896,
3816,
1054,
448,
29871,
29896,
29962,
13,
13,
1678,
822,
731,
29918,
1491,
5317,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1491,
5317,
353,
1583,
29889,
1491,
26762,
29961,
1311,
29889,
798,
3816,
1311,
29889,
1054,
29962,
13,
13,
1990,
903,
1491,
5317,
7295,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1948,
29892,
784,
1125,
13,
4706,
1583,
29889,
798,
353,
1948,
13,
4706,
1583,
29889,
1054,
353,
784,
13,
13,
4706,
1583,
29889,
29891,
8990,
353,
5159,
13,
13,
4706,
1583,
29889,
1643,
353,
5159,
13,
4706,
1583,
29889,
1643,
29918,
4294,
353,
5159,
259,
13,
13,
4706,
1583,
29889,
3149,
29918,
22976,
353,
5159,
13,
4706,
1583,
29889,
1220,
29918,
22976,
353,
5159,
13,
4706,
1583,
29889,
3149,
29918,
2780,
353,
5159,
13,
4706,
1583,
29889,
1220,
29918,
2780,
353,
5159,
13,
13,
4706,
1583,
29889,
29916,
353,
5159,
13,
4706,
1583,
29889,
29891,
353,
5159,
13,
4706,
1583,
29889,
4530,
1338,
353,
29871,
29900,
13,
308,
13,
4706,
1583,
29889,
5589,
29916,
353,
5159,
13,
4706,
1583,
29889,
1777,
368,
353,
5159,
13,
13,
4706,
1583,
29889,
2103,
353,
6213,
13,
4706,
1583,
29889,
3545,
353,
6213,
13,
308,
13,
4706,
1583,
29889,
2103,
29918,
842,
353,
6213,
13,
4706,
1583,
29889,
3545,
29918,
842,
353,
6213,
13,
13,
4706,
1583,
29889,
3257,
353,
5124,
13,
4706,
1583,
29889,
29916,
1643,
353,
5124,
13,
4706,
1583,
29889,
29891,
1643,
353,
6796,
613,
376,
3108,
13,
308,
13,
4706,
1583,
29889,
29916,
1165,
267,
353,
518,
5574,
29892,
5852,
29962,
13,
4706,
1583,
29889,
29891,
1165,
267,
353,
518,
5574,
29892,
5852,
29962,
13,
4706,
1583,
29889,
7720,
353,
518,
8824,
29892,
7700,
29962,
13,
13,
4706,
1583,
29889,
1165,
267,
29918,
2780,
353,
376,
10921,
29908,
13,
4706,
1583,
29889,
29873,
7358,
29918,
2780,
353,
376,
8517,
29908,
13,
4706,
1583,
29889,
15257,
29918,
2780,
353,
376,
10921,
29908,
13,
13,
4706,
1583,
29889,
29916,
2576,
29918,
5317,
353,
518,
8516,
29892,
6213,
29962,
13,
4706,
1583,
29889,
29891,
2576,
29918,
5317,
29918,
1563,
353,
518,
8516,
29892,
6213,
29962,
13,
4706,
1583,
29889,
29891,
2576,
29918,
5317,
29918,
1266,
353,
518,
8516,
29892,
6213,
29962,
13,
308,
13,
4706,
1583,
29889,
486,
7358,
29892,
1583,
29889,
29916,
21134,
353,
19997,
5159,
13,
4706,
1583,
29889,
3637,
7358,
29918,
1563,
29892,
1583,
29889,
29891,
21134,
29918,
1563,
353,
19997,
5159,
13,
4706,
1583,
29889,
3637,
7358,
29918,
1266,
29892,
1583,
29889,
29891,
21134,
29918,
1266,
353,
19997,
5159,
13,
4706,
1583,
29889,
29873,
7358,
353,
518,
29945,
29892,
29871,
29955,
29962,
13,
13,
4706,
1583,
29889,
29916,
7052,
353,
376,
10660,
29908,
13,
4706,
1583,
29889,
952,
29883,
744,
353,
6796,
10660,
613,
376,
10660,
3108,
13,
13,
13,
29918,
1003,
353,
903,
4532,
580,
13,
29937,
4532,
353,
903,
1003,
13,
29937,
329,
1793,
353,
903,
329,
1793,
13,
13,
13383,
13383,
7346,
4136,
2277,
13,
7346,
29937,
1678,
3323,
26762,
6680,
1678,
835,
7346,
29937,
13,
13383,
13383,
7346,
4136,
2277,
13,
1753,
1014,
26762,
29898,
5727,
353,
6213,
29892,
28730,
353,
6213,
29892,
29871,
1125,
13,
1678,
4206,
29892,
28730,
353,
903,
329,
1793,
29889,
842,
29918,
4102,
29918,
517,
29918,
20313,
29898,
5727,
29892,
28730,
29897,
13,
1678,
903,
842,
29918,
5727,
29898,
5727,
29897,
13,
1678,
903,
842,
29918,
22724,
29898,
22724,
29897,
13,
1678,
903,
1003,
29889,
842,
29918,
1491,
26762,
580,
13,
1678,
1014,
5317,
29898,
29896,
29892,
29871,
29896,
29897,
13,
1491,
26762,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
1491,
26762,
29918,
1514,
13,
13,
1753,
903,
842,
29918,
22724,
29898,
22724,
353,
6213,
1125,
13,
1678,
28730,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
22724,
29892,
29871,
29896,
29897,
13,
1678,
903,
1003,
29889,
22724,
353,
28730,
13,
268,
13,
1753,
903,
842,
29918,
5727,
29898,
5727,
353,
6213,
1125,
13,
1678,
4206,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
5727,
29892,
29871,
29896,
29897,
13,
1678,
903,
1003,
29889,
5727,
353,
4206,
13,
13,
1753,
1014,
5317,
29898,
798,
353,
29871,
29896,
29892,
784,
353,
29871,
29896,
1125,
13,
1678,
903,
842,
29918,
798,
29898,
798,
29897,
13,
1678,
903,
842,
29918,
1054,
29898,
1054,
29897,
13,
1678,
903,
1003,
29889,
842,
29918,
1491,
5317,
580,
13,
1491,
5317,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
1491,
5317,
29918,
1514,
13,
13,
1753,
903,
842,
29918,
1054,
29898,
1054,
353,
6213,
1125,
13,
1678,
784,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
1054,
29892,
29871,
29896,
29897,
13,
1678,
903,
1003,
29889,
1054,
353,
784,
448,
29871,
29896,
13,
13,
1753,
903,
842,
29918,
798,
29898,
798,
353,
6213,
1125,
13,
1678,
1948,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
798,
29892,
29871,
29896,
29897,
13,
1678,
903,
1003,
29889,
798,
353,
1948,
448,
29871,
29896,
13,
13,
1491,
26762,
29898,
29896,
29892,
29871,
29896,
29897,
13,
1491,
5317,
29898,
29896,
29892,
29871,
29896,
29897,
13,
13,
13383,
13383,
7346,
4136,
2277,
13,
4136,
2277,
29937,
1678,
18492,
6376,
630,
6680,
29879,
1678,
835,
4136,
2277,
13,
13383,
13383,
7346,
4136,
2277,
13,
1753,
903,
4012,
10456,
5085,
29892,
3579,
19290,
1125,
13,
1678,
903,
29891,
8990,
29898,
19290,
29889,
657,
703,
29891,
8990,
5783,
13,
268,
13,
1678,
903,
1643,
29898,
19290,
29889,
657,
703,
1643,
5783,
13,
308,
13,
1678,
903,
3149,
29918,
22976,
29898,
19290,
29889,
657,
703,
3149,
29918,
22976,
5783,
13,
1678,
903,
1220,
29918,
22976,
29898,
19290,
29889,
657,
703,
1220,
29918,
22976,
5783,
13,
308,
13,
1678,
903,
3149,
29918,
2780,
29898,
19290,
29889,
657,
703,
3149,
29918,
2780,
5783,
13,
1678,
903,
1220,
29918,
2780,
29898,
19290,
29889,
657,
703,
1220,
29918,
2780,
5783,
13,
308,
13,
1678,
903,
1272,
10456,
5085,
29897,
13,
268,
13,
1678,
903,
5589,
29916,
29898,
19290,
29889,
657,
703,
5589,
29916,
5783,
13,
1678,
903,
1777,
368,
29898,
19290,
29889,
657,
703,
1777,
368,
5783,
13,
13,
1753,
903,
29891,
8990,
29898,
8990,
353,
6213,
1125,
13,
1678,
9685,
29918,
9290,
353,
376,
1563,
29908,
13,
1678,
9685,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
8990,
29892,
9685,
29918,
9290,
29897,
13,
1678,
9685,
353,
376,
1563,
29908,
565,
9685,
2804,
376,
1563,
29908,
322,
9685,
2804,
376,
1266,
29908,
1683,
9685,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29891,
8990,
29889,
4397,
29898,
8990,
29897,
13,
13,
1753,
903,
1643,
29898,
1643,
353,
6213,
1125,
13,
1678,
3858,
29918,
9290,
353,
5124,
13,
1678,
3858,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
1643,
29892,
3858,
29918,
9290,
29897,
13,
1678,
3858,
29918,
4294,
353,
5852,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
1643,
29889,
4397,
29898,
1643,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
1643,
29918,
4294,
29889,
4397,
29898,
1643,
29918,
4294,
29897,
13,
1678,
396,
1762,
29899,
1867,
29901,
848,
411,
1021,
3858,
13,
13,
1753,
903,
3149,
29918,
22976,
29898,
22976,
353,
6213,
1125,
13,
1678,
2380,
353,
7431,
29898,
842,
7373,
1003,
29889,
1491,
5317,
29889,
3149,
29918,
22976,
876,
1273,
7431,
7373,
329,
1793,
29889,
22976,
29918,
16506,
29897,
13,
1678,
17456,
29918,
9290,
353,
903,
329,
1793,
29889,
22976,
29918,
16506,
29961,
2248,
29962,
13,
1678,
17456,
353,
5124,
565,
17456,
1275,
5124,
1683,
17456,
13,
1678,
17456,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
22976,
29892,
17456,
29918,
9290,
29897,
13,
1678,
2319,
29918,
1688,
353,
17456,
1275,
376,
9278,
29908,
322,
903,
12120,
1275,
376,
9389,
29908,
13,
1678,
17456,
353,
903,
329,
1793,
29889,
22976,
29961,
22976,
29962,
565,
17456,
297,
903,
329,
1793,
29889,
22976,
322,
451,
2319,
29918,
1688,
1683,
17456,
13,
1678,
17456,
353,
376,
9278,
29908,
565,
2319,
29918,
1688,
1683,
313,
22976,
29961,
29900,
29962,
565,
7431,
29898,
22976,
29897,
1405,
29871,
29900,
1683,
17456,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
3149,
29918,
22976,
29889,
4397,
29898,
22976,
29897,
13,
268,
13,
1753,
903,
1220,
29918,
22976,
29898,
22976,
353,
6213,
1125,
13,
1678,
2380,
353,
7431,
29898,
842,
7373,
1003,
29889,
1491,
5317,
29889,
1220,
29918,
22976,
876,
1273,
7431,
7373,
329,
1793,
29889,
22976,
29918,
16506,
29897,
13,
1678,
17456,
29918,
9290,
353,
903,
329,
1793,
29889,
22976,
29918,
16506,
29961,
2248,
29962,
13,
1678,
17456,
353,
5124,
565,
17456,
1275,
5124,
1683,
17456,
13,
1678,
17456,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
22976,
29892,
17456,
29918,
9290,
29897,
13,
1678,
2319,
29918,
1688,
353,
17456,
1275,
376,
9278,
29908,
322,
903,
12120,
1275,
376,
9389,
29908,
13,
1678,
17456,
353,
903,
329,
1793,
29889,
22976,
29961,
22976,
29962,
565,
17456,
297,
903,
329,
1793,
29889,
22976,
322,
451,
2319,
29918,
1688,
1683,
17456,
13,
1678,
17456,
353,
376,
9278,
29908,
565,
2319,
29918,
1688,
1683,
313,
22976,
29961,
29900,
29962,
565,
7431,
29898,
22976,
29897,
1405,
29871,
29900,
1683,
17456,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
1220,
29918,
22976,
29889,
4397,
29898,
22976,
29897,
13,
13,
1753,
903,
3149,
29918,
2780,
29898,
2780,
353,
6213,
1125,
13,
1678,
2927,
353,
6213,
565,
2927,
451,
297,
903,
329,
1793,
29889,
2780,
29918,
16506,
1683,
2927,
13,
1678,
2380,
353,
7431,
29898,
842,
7373,
1003,
29889,
1491,
5317,
29889,
3149,
29918,
2780,
876,
1273,
7431,
7373,
329,
1793,
29889,
2780,
29918,
16506,
29897,
13,
1678,
2927,
29918,
9290,
353,
903,
329,
1793,
29889,
2780,
29918,
16506,
29961,
2248,
29962,
13,
1678,
2927,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
2780,
29892,
2927,
29918,
9290,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
3149,
29918,
2780,
29889,
4397,
29898,
2780,
29897,
13,
268,
13,
1753,
903,
1220,
29918,
2780,
29898,
2780,
353,
6213,
1125,
13,
1678,
2927,
353,
6213,
565,
2927,
451,
297,
903,
329,
1793,
29889,
2780,
29918,
16506,
1683,
2927,
13,
1678,
2380,
353,
7431,
29898,
842,
7373,
1003,
29889,
1491,
5317,
29889,
1220,
29918,
2780,
876,
1273,
7431,
7373,
329,
1793,
29889,
2780,
29918,
16506,
29897,
13,
1678,
2927,
29918,
9290,
353,
903,
329,
1793,
29889,
2780,
29918,
16506,
29961,
2248,
29962,
13,
1678,
2927,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
2780,
29892,
2927,
29918,
9290,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
1220,
29918,
2780,
29889,
4397,
29898,
2780,
29897,
13,
13,
1753,
903,
1272,
10456,
5085,
1125,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
657,
29918,
1272,
10456,
5085,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29916,
29889,
4397,
29898,
29916,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29891,
29889,
4397,
29898,
29891,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
4530,
1338,
4619,
29871,
29896,
13,
13,
1753,
903,
5589,
29916,
29898,
5589,
353,
6213,
1125,
13,
1678,
5445,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
5589,
29892,
7700,
29897,
13,
1678,
5445,
353,
6120,
29898,
5589,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
5589,
29916,
29889,
4397,
29898,
5589,
29897,
13,
13,
1753,
903,
1777,
368,
29898,
5589,
353,
6213,
1125,
13,
1678,
5445,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
5589,
29892,
7700,
29897,
13,
1678,
5445,
353,
6120,
29898,
5589,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
1777,
368,
29889,
4397,
29898,
5589,
29897,
13,
13,
13383,
13383,
7346,
4136,
2277,
13,
7346,
2277,
29937,
1678,
17732,
6680,
29879,
1678,
835,
7346,
29937,
13,
13383,
13383,
7346,
4136,
2277,
13,
1753,
2821,
29918,
8489,
979,
7295,
13,
1678,
903,
329,
1793,
29889,
3539,
28909,
29900,
29941,
29941,
29883,
1495,
13,
1678,
903,
329,
1793,
3032,
8489,
979,
29918,
2158,
287,
29918,
9012,
29918,
20047,
353,
29871,
29900,
13,
8551,
29918,
8489,
979,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
8551,
29918,
8489,
979,
29918,
1514,
13,
695,
29873,
353,
2821,
29918,
8489,
979,
13,
13,
1753,
2821,
29918,
8489,
979,
29918,
2158,
287,
29918,
9012,
7295,
13,
1678,
396,
2821,
278,
3454,
393,
715,
866,
486,
750,
13350,
13,
1678,
396,
313,
11242,
29871,
29896,
1363,
278,
1833,
1196,
723,
451,
756,
385,
320,
29876,
472,
278,
1095,
29897,
13,
1678,
302,
353,
903,
329,
1793,
3032,
8489,
979,
29918,
2158,
287,
29918,
9012,
29918,
20047,
718,
29871,
29896,
13,
1678,
363,
474,
297,
3464,
29898,
29876,
1125,
13,
4706,
903,
329,
1793,
29889,
3539,
14182,
29900,
29941,
29941,
29961,
29906,
29968,
1159,
13,
4706,
565,
474,
529,
302,
448,
29871,
29896,
29901,
13,
9651,
903,
329,
1793,
29889,
3539,
14182,
29900,
29941,
29941,
29961,
29909,
1159,
13,
9651,
903,
329,
1793,
29889,
3539,
14182,
29900,
29941,
29941,
29961,
29906,
29968,
1159,
13,
1678,
903,
329,
1793,
3032,
8489,
979,
29918,
2158,
287,
29918,
9012,
29918,
20047,
353,
29871,
29900,
13,
13,
1753,
2821,
29918,
4532,
7295,
13,
1678,
903,
1003,
17255,
2344,
1649,
580,
13,
8551,
29918,
4532,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
8551,
29918,
4532,
29918,
1514,
13,
695,
29888,
353,
2821,
29918,
4532,
13,
13,
1753,
2821,
29918,
5317,
7295,
13,
1678,
903,
1003,
29889,
1491,
5317,
17255,
2344,
1649,
7373,
1003,
29889,
798,
29892,
903,
1003,
29889,
1054,
29897,
13,
8551,
29918,
5317,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
8551,
29918,
5317,
29918,
1514,
13,
695,
29886,
353,
2821,
29918,
5317,
13,
13,
1753,
2821,
29918,
1272,
7295,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29916,
353,
5159,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29891,
353,
5159,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
4530,
1338,
353,
29871,
29900,
13,
8551,
29918,
1272,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
8551,
29918,
1272,
29918,
1514,
13,
29883,
430,
353,
2821,
29918,
1272,
13,
268,
13,
13383,
13383,
7346,
4136,
2277,
13,
7346,
4136,
1678,
3789,
6680,
29879,
1678,
835,
7346,
2277,
13,
13383,
13383,
7346,
4136,
2277,
13,
1753,
24580,
675,
29898,
2103,
353,
6213,
29892,
3171,
353,
6213,
1125,
13,
1678,
2920,
29892,
3171,
353,
903,
329,
1793,
29889,
842,
29918,
4102,
29918,
517,
29918,
20313,
29898,
2103,
29892,
3171,
29897,
13,
1678,
2920,
29892,
3171,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
517,
29918,
20313,
29898,
2103,
29892,
3171,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
2103,
29918,
842,
353,
2920,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
3545,
29918,
842,
353,
3171,
13,
26762,
675,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
26762,
675,
29918,
1514,
13,
5317,
29918,
2311,
353,
24580,
675,
13,
13,
13,
1753,
3611,
29898,
1643,
353,
6213,
1125,
13,
1678,
3858,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
1643,
29892,
903,
1003,
29889,
1491,
5317,
29889,
3257,
29897,
13,
1678,
3858,
353,
6213,
565,
3858,
1275,
5124,
1683,
3858,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
3257,
353,
3858,
13,
3257,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
3257,
29918,
1514,
13,
13,
1753,
921,
1643,
29898,
1643,
353,
5124,
1125,
13,
1678,
3858,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
1643,
29892,
903,
1003,
29889,
1491,
5317,
29889,
29916,
1643,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29916,
1643,
353,
3858,
13,
29916,
1643,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
29916,
1643,
29918,
1514,
13,
268,
13,
1753,
343,
1643,
29898,
1643,
29918,
1563,
353,
12633,
3858,
29918,
1266,
353,
5124,
1125,
13,
1678,
3858,
29918,
1563,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
1643,
29918,
1563,
29892,
903,
1003,
29889,
1491,
5317,
29889,
29891,
1643,
29961,
29900,
2314,
13,
1678,
3858,
29918,
1266,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
1643,
29918,
1266,
29892,
903,
1003,
29889,
1491,
5317,
29889,
29891,
1643,
29961,
29896,
2314,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29891,
1643,
353,
518,
1643,
29918,
1563,
29892,
3858,
29918,
1266,
29962,
13,
29891,
1643,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
29891,
1643,
29918,
1514,
13,
13,
1753,
921,
1165,
267,
29898,
29916,
353,
6213,
29892,
343,
353,
6213,
1125,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
842,
29918,
4102,
29918,
517,
29918,
20313,
29898,
29916,
29892,
343,
29897,
13,
1678,
343,
353,
6120,
29898,
29891,
29897,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
361,
29918,
9290,
4197,
29916,
29892,
343,
1402,
903,
1003,
29889,
1491,
5317,
29889,
29916,
1165,
267,
29897,
13,
1678,
921,
353,
6120,
29898,
29916,
29897,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
517,
29918,
20313,
29898,
29916,
29892,
343,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29916,
1165,
267,
353,
518,
29916,
29892,
343,
29962,
13,
29916,
1165,
267,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
29916,
1165,
267,
29918,
1514,
13,
13,
1753,
343,
1165,
267,
29898,
29916,
353,
6213,
29892,
343,
353,
6213,
1125,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
842,
29918,
4102,
29918,
517,
29918,
20313,
29898,
29916,
29892,
343,
29897,
13,
1678,
343,
353,
6120,
29898,
29891,
29897,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
361,
29918,
9290,
4197,
29916,
29892,
343,
1402,
903,
1003,
29889,
1491,
5317,
29889,
29891,
1165,
267,
29897,
13,
1678,
921,
353,
6120,
29898,
29916,
29897,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
517,
29918,
20313,
29898,
29916,
29892,
343,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29891,
1165,
267,
353,
518,
29916,
29892,
343,
29962,
13,
29891,
1165,
267,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
29891,
1165,
267,
29918,
1514,
13,
13,
1753,
6856,
29898,
29916,
353,
6213,
29892,
343,
353,
6213,
1125,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
842,
29918,
4102,
29918,
517,
29918,
20313,
29898,
29916,
29892,
343,
29897,
13,
1678,
343,
353,
6120,
29898,
29891,
29897,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
361,
29918,
9290,
4197,
29916,
29892,
343,
1402,
903,
1003,
29889,
1491,
5317,
29889,
7720,
29897,
13,
1678,
921,
353,
6120,
29898,
29916,
29897,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
517,
29918,
20313,
29898,
29916,
29892,
343,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
7720,
353,
518,
29916,
29892,
343,
29962,
13,
7720,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
7720,
29918,
1514,
13,
13,
13,
1753,
27815,
29918,
2780,
29898,
2780,
353,
376,
10921,
29908,
1125,
13,
1678,
2927,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
2780,
29892,
903,
1003,
29889,
1491,
5317,
29889,
1165,
267,
29918,
2780,
29897,
13,
1678,
2927,
353,
376,
10921,
29908,
565,
2927,
451,
297,
1051,
7373,
329,
1793,
29889,
7042,
29918,
2780,
29889,
8149,
3101,
1683,
2927,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
1165,
267,
29918,
2780,
353,
2927,
13,
1165,
267,
29918,
2780,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
1165,
267,
29918,
2780,
29918,
1514,
13,
13,
1753,
260,
7358,
29918,
2780,
29898,
2780,
353,
376,
8517,
29908,
1125,
13,
1678,
2927,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
2780,
29892,
903,
1003,
29889,
1491,
5317,
29889,
29873,
7358,
29918,
2780,
29897,
13,
1678,
2927,
353,
376,
8517,
29908,
565,
2927,
451,
297,
1051,
7373,
329,
1793,
29889,
8159,
2057,
29918,
2780,
29889,
8149,
3101,
1683,
2927,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29873,
7358,
29918,
2780,
353,
2927,
13,
29873,
7358,
29918,
2780,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
29873,
7358,
29918,
2780,
29918,
1514,
13,
13,
1753,
10508,
29918,
2780,
29898,
2780,
353,
376,
10921,
29908,
1125,
13,
1678,
2927,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
2780,
29892,
903,
1003,
29889,
1491,
5317,
29889,
15257,
29918,
2780,
29897,
13,
1678,
2927,
353,
376,
10921,
29908,
565,
2927,
451,
297,
1051,
7373,
329,
1793,
29889,
7042,
29918,
2780,
29889,
8149,
3101,
1683,
2927,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
15257,
29918,
2780,
353,
2927,
13,
15257,
29918,
2780,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
15257,
29918,
2780,
29918,
1514,
13,
13,
1753,
903,
2780,
2222,
29918,
1491,
5317,
29898,
1491,
5317,
1125,
13,
1678,
1014,
5317,
29889,
3149,
29918,
2780,
353,
6796,
9290,
3108,
334,
7431,
29898,
1491,
5317,
29889,
3149,
29918,
2780,
29897,
13,
1678,
1014,
5317,
29889,
1220,
29918,
2780,
353,
6796,
9290,
3108,
334,
7431,
29898,
1491,
5317,
29889,
1220,
29918,
2780,
29897,
13,
1678,
1014,
5317,
29889,
1165,
267,
29918,
2780,
353,
376,
9290,
29908,
13,
1678,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
353,
376,
9290,
29908,
13,
1678,
1014,
5317,
29889,
15257,
29918,
2780,
353,
376,
9290,
29908,
13,
13,
1753,
2927,
2222,
7295,
13,
1678,
903,
2780,
2222,
29918,
1491,
5317,
7373,
1003,
29889,
1491,
5317,
29897,
13,
2780,
2222,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
2780,
2222,
29918,
1514,
13,
25932,
353,
2927,
2222,
13,
13,
13,
1753,
921,
2576,
29898,
1563,
353,
6213,
29892,
1492,
353,
6213,
1125,
13,
1678,
2175,
29892,
1492,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
517,
29918,
20313,
29898,
1563,
29892,
1492,
29897,
13,
1678,
2175,
29892,
1492,
353,
1375,
29898,
1563,
29892,
1492,
511,
4236,
29898,
1563,
29892,
1492,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29916,
2576,
29918,
5317,
353,
518,
1563,
29892,
1492,
29962,
13,
29916,
2576,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
29916,
2576,
29918,
1514,
13,
13,
1753,
343,
2576,
29898,
13609,
353,
6213,
29892,
7568,
353,
6213,
29892,
343,
8990,
353,
376,
1563,
29908,
1125,
13,
1678,
5224,
29892,
7568,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
517,
29918,
20313,
29898,
13609,
29892,
7568,
29897,
13,
1678,
5224,
29892,
7568,
353,
1375,
29898,
13609,
29892,
7568,
511,
4236,
29898,
13609,
29892,
7568,
29897,
13,
1678,
565,
343,
8990,
1275,
376,
1563,
1115,
13,
4706,
903,
1003,
29889,
1491,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1563,
353,
518,
13609,
29892,
7568,
29962,
13,
1678,
25342,
343,
8990,
1275,
376,
1266,
1115,
13,
4706,
903,
1003,
29889,
1491,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1266,
353,
518,
13609,
29892,
7568,
29962,
13,
29891,
2576,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
29891,
2576,
29918,
1514,
13,
13,
13,
1753,
260,
7358,
29898,
29916,
353,
6213,
29892,
343,
353,
6213,
1125,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
842,
29918,
4102,
29918,
517,
29918,
20313,
29898,
29916,
29892,
343,
29897,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
517,
29918,
20313,
29898,
29916,
29892,
343,
29897,
13,
1678,
921,
29918,
9290,
29892,
343,
29918,
9290,
353,
29871,
29945,
29892,
29871,
29955,
13,
1678,
921,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
29916,
29892,
921,
29918,
9290,
29897,
13,
1678,
343,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
29891,
29892,
343,
29918,
9290,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29873,
7358,
353,
518,
29916,
29892,
343,
29962,
13,
29873,
7358,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
29873,
7358,
29918,
1514,
13,
13,
1753,
29871,
486,
7358,
29898,
29873,
7358,
353,
19997,
11073,
353,
6213,
1125,
13,
1678,
260,
7358,
29892,
11073,
353,
903,
329,
1793,
29889,
842,
29918,
4102,
29918,
517,
29918,
20313,
29898,
1761,
29898,
29873,
7358,
511,
11073,
29897,
13,
1678,
11073,
353,
1051,
29898,
1958,
29898,
710,
29892,
1051,
29898,
21134,
4961,
13,
1678,
260,
7358,
29892,
11073,
353,
903,
329,
1793,
29889,
6605,
29918,
1272,
29898,
29873,
7358,
29892,
11073,
29897,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
486,
7358,
29892,
903,
1003,
29889,
1491,
5317,
29889,
29916,
21134,
353,
260,
7358,
29892,
11073,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29873,
7358,
29961,
29900,
29962,
353,
7431,
29898,
29873,
7358,
29897,
13,
486,
7358,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
486,
7358,
29918,
1514,
13,
13,
1753,
343,
29873,
7358,
29898,
29873,
7358,
353,
19997,
11073,
353,
6213,
29892,
343,
8990,
353,
376,
1563,
29908,
1125,
13,
1678,
260,
7358,
29892,
11073,
353,
903,
329,
1793,
29889,
842,
29918,
4102,
29918,
517,
29918,
20313,
29898,
1761,
29898,
29873,
7358,
511,
11073,
29897,
13,
1678,
11073,
353,
1051,
29898,
1958,
29898,
710,
29892,
1051,
29898,
21134,
4961,
13,
1678,
260,
7358,
29892,
11073,
353,
903,
329,
1793,
29889,
6605,
29918,
1272,
29898,
29873,
7358,
29892,
11073,
29897,
13,
1678,
565,
343,
8990,
1275,
376,
1563,
1115,
13,
4706,
903,
1003,
29889,
1491,
5317,
29889,
3637,
7358,
29918,
1563,
29892,
903,
1003,
29889,
1491,
5317,
29889,
29891,
21134,
29918,
1563,
353,
260,
7358,
29892,
11073,
13,
1678,
25342,
343,
8990,
1275,
376,
1266,
1115,
13,
4706,
903,
1003,
29889,
1491,
5317,
29889,
3637,
7358,
29918,
1266,
29892,
903,
1003,
29889,
1491,
5317,
29889,
29891,
21134,
29918,
1266,
353,
260,
7358,
29892,
11073,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29873,
7358,
29961,
29896,
29962,
353,
7431,
29898,
29873,
7358,
29897,
13,
3637,
7358,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
3637,
7358,
29918,
1514,
13,
13,
1753,
921,
7052,
29898,
7052,
353,
6213,
1125,
13,
1678,
6287,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
7052,
29892,
903,
1003,
29889,
1491,
5317,
29889,
29916,
7052,
29897,
13,
1678,
6287,
353,
376,
10660,
29908,
565,
451,
313,
7052,
297,
6796,
10660,
613,
376,
1188,
20068,
1683,
6287,
13,
1678,
903,
1003,
29889,
1491,
5317,
29889,
29916,
7052,
353,
6287,
13,
29916,
7052,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
29916,
7052,
29918,
1514,
13,
13,
1753,
343,
7052,
29898,
7052,
353,
6213,
29892,
343,
8990,
353,
376,
1563,
29908,
1125,
13,
1678,
6287,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
7052,
29892,
903,
1003,
29889,
1491,
5317,
29889,
29916,
7052,
29897,
13,
1678,
6287,
353,
376,
10660,
29908,
565,
451,
313,
7052,
297,
6796,
10660,
613,
376,
1188,
20068,
1683,
6287,
13,
1678,
565,
343,
8990,
1275,
376,
1266,
1115,
13,
4706,
903,
1003,
29889,
1491,
5317,
29889,
952,
29883,
744,
29961,
29896,
29962,
353,
6287,
13,
1678,
1683,
29901,
13,
4706,
903,
1003,
29889,
1491,
5317,
29889,
952,
29883,
744,
29961,
29900,
29962,
353,
6287,
13,
952,
29883,
744,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
952,
29883,
744,
29918,
1514,
13,
13,
13383,
13383,
7346,
4136,
2277,
13,
7346,
2277,
29937,
1678,
7704,
6680,
29879,
1678,
835,
7346,
2277,
13,
13383,
13383,
7346,
4136,
2277,
13,
1753,
1510,
29898,
11458,
353,
7700,
1125,
13,
1678,
903,
4532,
29918,
2311,
29918,
3317,
580,
13,
1678,
903,
4532,
29918,
2311,
580,
13,
13,
1678,
396,
29918,
26762,
29918,
2311,
580,
13,
1678,
903,
1111,
2276,
296,
29918,
29879,
7093,
580,
13,
13,
1678,
363,
364,
297,
3464,
7373,
1003,
29889,
5727,
1125,
13,
4706,
363,
274,
297,
3464,
7373,
1003,
29889,
22724,
1125,
13,
632,
13,
9651,
1014,
5317,
353,
903,
1003,
29889,
1491,
26762,
29961,
29878,
3816,
29883,
29962,
13,
13,
9651,
903,
24957,
29918,
2311,
29898,
1491,
5317,
29897,
13,
632,
13,
9651,
903,
6605,
29918,
1272,
29898,
1491,
5317,
29897,
13,
13,
9651,
903,
3545,
29898,
1491,
5317,
29897,
13,
13,
9651,
903,
29891,
2576,
29918,
1272,
29898,
1491,
5317,
29897,
13,
9651,
903,
29891,
2576,
29918,
5317,
29898,
1491,
5317,
29897,
13,
9651,
903,
3637,
7358,
29898,
1491,
5317,
29897,
13,
13,
9651,
903,
2103,
29898,
1491,
5317,
29897,
13,
632,
13,
9651,
903,
29916,
2576,
29918,
1272,
29898,
1491,
5317,
29897,
13,
9651,
903,
29916,
2576,
29918,
5317,
29898,
1491,
5317,
29897,
13,
9651,
903,
486,
7358,
29898,
1491,
5317,
29897,
13,
632,
13,
9651,
903,
5344,
29898,
1491,
5317,
29897,
13,
13,
9651,
903,
1202,
29918,
29916,
7720,
29898,
1491,
5317,
29897,
13,
9651,
903,
1202,
29918,
29891,
7720,
29898,
1491,
5317,
29897,
13,
632,
13,
9651,
903,
1202,
29918,
1272,
29898,
1491,
5317,
29897,
13,
13,
9651,
903,
1202,
29918,
26172,
29898,
1491,
5317,
29897,
13,
9651,
903,
1202,
29918,
29891,
8990,
29898,
1491,
5317,
29897,
13,
9651,
903,
1202,
29918,
29916,
8990,
29898,
1491,
5317,
29897,
13,
9651,
903,
1202,
29918,
3257,
29898,
1491,
5317,
29897,
13,
9651,
903,
1202,
29918,
21134,
29898,
1491,
5317,
29897,
13,
632,
13,
1678,
903,
7122,
29918,
2922,
11669,
580,
13,
13,
1678,
903,
1003,
29889,
15257,
353,
903,
329,
1793,
29889,
657,
29918,
15257,
7373,
1003,
29889,
5344,
29897,
13,
1678,
565,
9563,
29901,
13,
4706,
736,
13,
1678,
903,
329,
1793,
29889,
3539,
7373,
1003,
29889,
15257,
29897,
13,
308,
13,
4294,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
4294,
29918,
1514,
13,
13,
1753,
903,
4532,
29918,
2311,
29918,
3317,
7295,
13,
1678,
903,
1003,
29889,
2103,
29918,
3317,
29892,
903,
1003,
29889,
3545,
29918,
3317,
353,
8638,
29918,
2311,
580,
13,
1678,
903,
1003,
29889,
3545,
29918,
3317,
22361,
29871,
29941,
13,
1678,
903,
1003,
29889,
2103,
29918,
3317,
22361,
9423,
1003,
29889,
22724,
448,
29871,
29896,
29897,
13,
1678,
903,
1003,
29889,
3545,
29918,
3317,
22361,
9423,
1003,
29889,
5727,
448,
29871,
29896,
29897,
13,
13,
1753,
903,
4532,
29918,
2311,
7295,
13,
1678,
396,
2920,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
7373,
1003,
29889,
2103,
29892,
903,
1003,
29889,
2103,
29918,
3317,
29897,
13,
1678,
396,
3171,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
7373,
1003,
29889,
3545,
29892,
903,
1003,
29889,
3545,
29918,
3317,
29897,
13,
13,
1678,
396,
2920,
353,
6425,
29898,
524,
29898,
2103,
876,
13,
1678,
396,
3171,
353,
6425,
29898,
524,
29898,
3545,
876,
13,
13,
1678,
396,
2920,
353,
903,
1003,
29889,
2103,
29918,
3317,
565,
2920,
1405,
903,
1003,
29889,
2103,
29918,
3317,
1683,
2920,
13,
1678,
396,
3171,
353,
903,
1003,
29889,
3545,
29918,
3317,
565,
3171,
1405,
903,
1003,
29889,
3545,
29918,
3317,
1683,
3171,
13,
13,
1678,
903,
1003,
29889,
2103,
353,
903,
1003,
29889,
2103,
29918,
3317,
13,
1678,
903,
1003,
29889,
3545,
353,
903,
1003,
29889,
3545,
29918,
3317,
13,
13,
1753,
903,
1111,
2276,
296,
29918,
29879,
7093,
7295,
13,
1678,
2920,
353,
5159,
13,
1678,
363,
274,
297,
3464,
7373,
1003,
29889,
22724,
1125,
13,
4706,
281,
353,
23160,
1003,
29889,
1491,
26762,
29961,
29878,
3816,
29883,
1822,
2103,
363,
364,
297,
3464,
7373,
1003,
29889,
5727,
4638,
13,
4706,
281,
353,
518,
295,
363,
560,
297,
281,
565,
560,
29871,
338,
451,
6213,
29962,
13,
4706,
281,
353,
4236,
29898,
29893,
29892,
2322,
353,
6213,
29897,
13,
4706,
2920,
29889,
4397,
29898,
29893,
29897,
13,
1678,
3171,
353,
5159,
13,
1678,
363,
364,
297,
3464,
7373,
1003,
29889,
5727,
1125,
13,
4706,
298,
353,
23160,
1003,
29889,
1491,
26762,
29961,
29878,
3816,
29883,
1822,
3545,
363,
274,
297,
3464,
7373,
1003,
29889,
22724,
4638,
13,
4706,
298,
353,
518,
295,
363,
560,
297,
298,
565,
560,
29871,
338,
451,
6213,
29962,
13,
4706,
298,
353,
4236,
29898,
29882,
29892,
2322,
353,
6213,
29897,
13,
4706,
3171,
29889,
4397,
29898,
29882,
29897,
13,
1678,
363,
274,
297,
3464,
7373,
1003,
29889,
22724,
1125,
13,
4706,
363,
364,
297,
3464,
7373,
1003,
29889,
5727,
1125,
13,
9651,
1014,
5317,
353,
903,
1003,
29889,
1491,
26762,
29961,
29878,
3816,
29883,
29962,
13,
9651,
1014,
5317,
29889,
2103,
353,
2920,
29961,
29883,
29962,
13,
9651,
1014,
5317,
29889,
3545,
353,
3171,
29961,
29878,
29962,
13,
13,
1753,
903,
24957,
29918,
2311,
29898,
1491,
5317,
1125,
13,
1678,
1948,
29892,
784,
353,
1014,
5317,
29889,
798,
29892,
1014,
5317,
29889,
1054,
13,
1678,
2920,
29892,
3171,
353,
29871,
29900,
29892,
29871,
29900,
13,
1678,
363,
364,
297,
3464,
29898,
798,
1125,
13,
4706,
3171,
4619,
903,
1003,
29889,
1491,
26762,
29961,
29878,
3816,
29900,
1822,
3545,
13,
1678,
363,
274,
297,
3464,
29898,
1054,
1125,
13,
4706,
2920,
4619,
903,
1003,
29889,
1491,
26762,
29961,
29900,
3816,
29883,
1822,
2103,
13,
1678,
903,
1003,
29889,
24957,
29918,
2103,
353,
2920,
13,
1678,
903,
1003,
29889,
24957,
29918,
3545,
353,
3171,
13,
13,
1753,
903,
6605,
29918,
1272,
29898,
1491,
5317,
1125,
13,
1678,
1014,
5317,
29889,
29916,
29918,
1563,
353,
518,
1491,
5317,
29889,
29916,
29961,
29875,
29962,
363,
474,
297,
3464,
29898,
2435,
29898,
1491,
5317,
29889,
29916,
876,
565,
1014,
5317,
29889,
29891,
8990,
29961,
29875,
29962,
1275,
376,
1563,
3108,
13,
1678,
1014,
5317,
29889,
29891,
29918,
1563,
353,
518,
1491,
5317,
29889,
29891,
29961,
29875,
29962,
363,
474,
297,
3464,
29898,
2435,
29898,
1491,
5317,
29889,
29916,
876,
565,
1014,
5317,
29889,
29891,
8990,
29961,
29875,
29962,
1275,
376,
1563,
3108,
13,
1678,
1014,
5317,
29889,
4530,
1338,
29918,
1563,
353,
7431,
29898,
1491,
5317,
29889,
29891,
29918,
1563,
29897,
13,
13,
1678,
1014,
5317,
29889,
29916,
29918,
1266,
353,
518,
1491,
5317,
29889,
29916,
29961,
29875,
29962,
363,
474,
297,
3464,
29898,
2435,
29898,
1491,
5317,
29889,
29916,
876,
565,
1014,
5317,
29889,
29891,
8990,
29961,
29875,
29962,
1275,
376,
1266,
3108,
13,
1678,
1014,
5317,
29889,
29891,
29918,
1266,
353,
518,
1491,
5317,
29889,
29891,
29961,
29875,
29962,
363,
474,
297,
3464,
29898,
2435,
29898,
1491,
5317,
29889,
29916,
876,
565,
1014,
5317,
29889,
29891,
8990,
29961,
29875,
29962,
1275,
376,
1266,
3108,
13,
1678,
1014,
5317,
29889,
4530,
1338,
29918,
1266,
353,
7431,
29898,
1491,
5317,
29889,
29891,
29918,
1266,
29897,
13,
13,
1678,
1014,
5317,
29889,
1272,
29918,
1563,
353,
1014,
5317,
29889,
29916,
29918,
1563,
2804,
5159,
322,
1014,
5317,
29889,
29891,
29918,
1563,
2804,
5159,
13,
1678,
1014,
5317,
29889,
1272,
29918,
1266,
353,
1014,
5317,
29889,
29916,
29918,
1266,
2804,
5159,
322,
1014,
5317,
29889,
29891,
29918,
1266,
2804,
5159,
13,
1678,
1014,
5317,
29889,
1272,
353,
1014,
5317,
29889,
1272,
29918,
1563,
470,
1014,
5317,
29889,
1272,
29918,
1266,
13,
268,
13,
1753,
903,
3545,
29898,
1491,
5317,
1125,
13,
1678,
1014,
5317,
29889,
3545,
29918,
3317,
353,
903,
1003,
29889,
3545,
448,
903,
1003,
29889,
24957,
29918,
3545,
13,
1678,
3171,
29918,
9290,
353,
1014,
5317,
29889,
3545,
29918,
3317,
849,
9423,
1003,
29889,
5727,
448,
1014,
5317,
29889,
798,
29897,
13,
1678,
3171,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
1491,
5317,
29889,
3545,
29918,
842,
29892,
3171,
29918,
9290,
29897,
13,
1678,
3171,
353,
6425,
29898,
524,
29898,
3545,
876,
13,
268,
13,
1678,
3171,
353,
1014,
5317,
29889,
3545,
29918,
3317,
565,
3171,
1405,
1014,
5317,
29889,
3545,
29918,
3317,
1683,
3171,
13,
1678,
1014,
5317,
29889,
3545,
353,
3171,
13,
13,
1678,
1014,
5317,
29889,
29916,
1165,
267,
29961,
29900,
29962,
353,
29871,
29900,
565,
3171,
529,
29871,
29906,
1683,
1014,
5317,
29889,
29916,
1165,
267,
29961,
29900,
29962,
13,
1678,
1014,
5317,
29889,
29916,
1165,
267,
29961,
29896,
29962,
353,
29871,
29900,
565,
3171,
529,
29871,
29941,
1683,
1014,
5317,
29889,
29916,
1165,
267,
29961,
29896,
29962,
13,
1678,
1014,
5317,
29889,
29873,
7358,
29961,
29900,
29962,
353,
29871,
29900,
565,
3171,
529,
29871,
29946,
1683,
1014,
5317,
29889,
29873,
7358,
29961,
29900,
29962,
13,
13,
1678,
1014,
5317,
29889,
3257,
353,
5124,
565,
3171,
529,
29871,
29945,
1683,
1014,
5317,
29889,
3257,
13,
1678,
1014,
5317,
29889,
29916,
1643,
353,
5124,
565,
3171,
529,
29871,
29953,
1683,
1014,
5317,
29889,
29916,
1643,
13,
1678,
1014,
5317,
29889,
29891,
1643,
353,
6796,
613,
376,
3108,
565,
3171,
529,
29871,
29953,
1683,
1014,
5317,
29889,
29891,
1643,
13,
13,
1678,
921,
8990,
29918,
677,
353,
938,
29898,
1491,
5317,
29889,
29916,
1165,
267,
29961,
29900,
29962,
322,
1014,
5317,
29889,
1272,
29897,
13,
1678,
921,
8990,
29918,
786,
353,
938,
29898,
1491,
5317,
29889,
29916,
1165,
267,
29961,
29896,
29962,
322,
1014,
5317,
29889,
1272,
29897,
13,
268,
486,
7358,
353,
6120,
29898,
1491,
5317,
29889,
29873,
7358,
29961,
29900,
29962,
322,
1014,
5317,
29889,
1272,
29897,
13,
1678,
3611,
353,
938,
29898,
1491,
5317,
29889,
3257,
2804,
20569,
13,
1678,
11073,
353,
938,
29898,
1491,
5317,
29889,
29916,
1643,
2804,
5124,
470,
1014,
5317,
29889,
29891,
1643,
2804,
6796,
613,
5124,
2314,
13,
1678,
2025,
353,
3611,
718,
921,
8990,
29918,
677,
718,
921,
8990,
29918,
786,
718,
29871,
486,
7358,
718,
11073,
13,
268,
13,
1678,
1014,
5317,
29889,
3545,
29918,
15257,
353,
1014,
5317,
29889,
3545,
448,
2025,
13,
13,
1753,
903,
29891,
2576,
29918,
1272,
29898,
1491,
5317,
1125,
13,
1678,
343,
29918,
1563,
353,
23160,
329,
1793,
29889,
1188,
29898,
1491,
5317,
29889,
29891,
29918,
1563,
29961,
29879,
2314,
565,
1014,
5317,
29889,
952,
29883,
744,
29961,
29900,
29962,
1275,
376,
1188,
29908,
1683,
1014,
5317,
29889,
29891,
29918,
1563,
29961,
29879,
29962,
363,
269,
297,
3464,
29898,
1491,
5317,
29889,
4530,
1338,
29918,
1563,
4638,
13,
1678,
343,
29918,
1266,
353,
23160,
329,
1793,
29889,
1188,
29898,
1491,
5317,
29889,
29891,
29918,
1266,
29961,
29879,
2314,
565,
1014,
5317,
29889,
952,
29883,
744,
29961,
29896,
29962,
1275,
376,
1188,
29908,
1683,
1014,
5317,
29889,
29891,
29918,
1266,
29961,
29879,
29962,
363,
269,
297,
3464,
29898,
1491,
5317,
29889,
4530,
1338,
29918,
1266,
4638,
13,
1678,
1014,
5317,
29889,
29891,
2576,
29918,
1272,
29918,
1563,
353,
903,
329,
1793,
29889,
657,
29918,
2576,
29918,
1272,
29898,
29891,
29918,
1563,
29897,
13,
1678,
1014,
5317,
29889,
29891,
2576,
29918,
1272,
29918,
1266,
353,
903,
329,
1793,
29889,
657,
29918,
2576,
29918,
1272,
29898,
29891,
29918,
1266,
29897,
13,
13,
1753,
903,
29891,
2576,
29918,
5317,
29898,
1491,
5317,
1125,
13,
1678,
1014,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1563,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
361,
29918,
9290,
29898,
1491,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1563,
29892,
1014,
5317,
29889,
29891,
2576,
29918,
1272,
29918,
1563,
29897,
13,
1678,
1014,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1266,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
361,
29918,
9290,
29898,
1491,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1266,
29892,
1014,
5317,
29889,
29891,
2576,
29918,
1272,
29918,
1266,
29897,
13,
1678,
396,
1491,
5317,
29889,
4518,
353,
313,
1491,
5317,
29889,
29891,
2576,
29918,
5317,
29961,
29896,
29962,
448,
1014,
5317,
29889,
29891,
2576,
29918,
5317,
29961,
29900,
2314,
847,
1014,
5317,
29889,
3545,
29918,
15257,
13,
13,
1753,
903,
3637,
7358,
29898,
1491,
5317,
1125,
13,
1678,
565,
1014,
5317,
29889,
3637,
7358,
29918,
1563,
1275,
5159,
322,
1014,
5317,
29889,
29873,
7358,
29961,
29896,
29962,
322,
1014,
5317,
29889,
1272,
29918,
1563,
29901,
13,
4706,
565,
1014,
5317,
29889,
952,
29883,
744,
29961,
29900,
29962,
1275,
376,
10660,
1115,
13,
9651,
1014,
5317,
29889,
3637,
7358,
29918,
1563,
353,
903,
329,
1793,
29889,
657,
29918,
29873,
7358,
29898,
1491,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1563,
29892,
1014,
5317,
29889,
29873,
7358,
29961,
29896,
2314,
13,
9651,
1014,
5317,
29889,
29891,
21134,
29918,
1563,
353,
903,
329,
1793,
29889,
657,
29918,
21134,
29898,
1491,
5317,
29889,
3637,
7358,
29918,
1563,
29897,
13,
4706,
565,
1014,
5317,
29889,
952,
29883,
744,
29961,
29900,
29962,
1275,
376,
1188,
1115,
13,
9651,
1014,
5317,
29889,
3637,
7358,
29918,
1563,
29892,
1014,
5317,
29889,
29891,
21134,
29918,
1563,
353,
903,
329,
1793,
29889,
657,
29918,
1188,
29918,
29873,
7358,
29898,
1491,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1563,
29892,
1014,
5317,
29889,
29873,
7358,
29961,
29896,
2314,
13,
1678,
1014,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1563,
353,
903,
329,
1793,
29889,
657,
29918,
5344,
29918,
1272,
29898,
1491,
5317,
29889,
3637,
7358,
29918,
1563,
29892,
1014,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1563,
29892,
1014,
5317,
29889,
3545,
29918,
15257,
29897,
13,
13,
1678,
565,
1014,
5317,
29889,
3637,
7358,
29918,
1266,
1275,
5159,
322,
1014,
5317,
29889,
29873,
7358,
29961,
29896,
29962,
322,
1014,
5317,
29889,
1272,
29918,
1266,
29901,
13,
4706,
565,
1014,
5317,
29889,
952,
29883,
744,
29961,
29896,
29962,
1275,
376,
10660,
1115,
13,
9651,
1014,
5317,
29889,
3637,
7358,
29918,
1266,
353,
903,
329,
1793,
29889,
657,
29918,
29873,
7358,
29898,
1491,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1266,
29892,
1014,
5317,
29889,
29873,
7358,
29961,
29896,
2314,
13,
9651,
1014,
5317,
29889,
29891,
21134,
29918,
1266,
353,
903,
329,
1793,
29889,
657,
29918,
21134,
29898,
1491,
5317,
29889,
3637,
7358,
29918,
1266,
29897,
13,
4706,
565,
1014,
5317,
29889,
952,
29883,
744,
29961,
29896,
29962,
1275,
376,
1188,
1115,
13,
9651,
1014,
5317,
29889,
3637,
7358,
29918,
1266,
29892,
1014,
5317,
29889,
29891,
21134,
29918,
1266,
353,
903,
329,
1793,
29889,
657,
29918,
1188,
29918,
29873,
7358,
29898,
1491,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1266,
29892,
1014,
5317,
29889,
29873,
7358,
29961,
29896,
2314,
13,
1678,
1014,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1266,
353,
903,
329,
1793,
29889,
657,
29918,
5344,
29918,
1272,
29898,
1491,
5317,
29889,
3637,
7358,
29918,
1266,
29892,
1014,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1266,
29892,
1014,
5317,
29889,
3545,
29918,
15257,
29897,
13,
13,
1753,
903,
2103,
29898,
1491,
5317,
1125,
13,
1678,
1014,
5317,
29889,
2103,
29918,
3317,
353,
903,
1003,
29889,
2103,
448,
903,
1003,
29889,
24957,
29918,
2103,
13,
1678,
2920,
29918,
9290,
353,
1014,
5317,
29889,
2103,
29918,
3317,
849,
9423,
1003,
29889,
22724,
448,
1014,
5317,
29889,
1054,
29897,
13,
1678,
2920,
353,
903,
329,
1793,
29889,
842,
29918,
361,
29918,
9290,
29898,
1491,
5317,
29889,
2103,
29918,
842,
29892,
2920,
29918,
9290,
29897,
13,
1678,
2920,
353,
6425,
29898,
524,
29898,
2103,
876,
13,
268,
13,
1678,
2920,
353,
1014,
5317,
29889,
2103,
29918,
3317,
565,
2920,
1405,
1014,
5317,
29889,
2103,
29918,
3317,
1683,
2920,
13,
1678,
1014,
5317,
29889,
2103,
353,
2920,
13,
13,
1678,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29900,
29962,
353,
29871,
29900,
565,
2920,
529,
29871,
29906,
1683,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29900,
29962,
13,
1678,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29896,
29962,
353,
29871,
29900,
565,
2920,
529,
29871,
29941,
1683,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29896,
29962,
13,
13,
1678,
343,
21134,
29918,
2103,
29918,
1563,
353,
4236,
29898,
1958,
29898,
2435,
29892,
1014,
5317,
29889,
29891,
21134,
29918,
1563,
511,
2322,
353,
29871,
29900,
29897,
334,
6120,
29898,
1491,
5317,
29889,
29873,
7358,
29961,
29896,
29962,
322,
1014,
5317,
29889,
1272,
29918,
1563,
29897,
13,
1678,
1014,
5317,
29889,
29873,
7358,
29961,
29896,
29962,
353,
29871,
29900,
565,
2920,
529,
29871,
29941,
718,
343,
21134,
29918,
2103,
29918,
1563,
1683,
1014,
5317,
29889,
29873,
7358,
29961,
29896,
29962,
13,
1678,
343,
21134,
29918,
2103,
29918,
1563,
353,
29871,
29900,
565,
2920,
529,
29871,
29941,
718,
343,
21134,
29918,
2103,
29918,
1563,
1683,
343,
21134,
29918,
2103,
29918,
1563,
13,
13,
1678,
343,
21134,
29918,
2103,
29918,
1266,
353,
4236,
29898,
1958,
29898,
2435,
29892,
1014,
5317,
29889,
29891,
21134,
29918,
1266,
511,
2322,
353,
29871,
29900,
29897,
334,
6120,
29898,
1491,
5317,
29889,
29873,
7358,
29961,
29896,
29962,
322,
1014,
5317,
29889,
1272,
29918,
1266,
29897,
13,
1678,
343,
21134,
29918,
2103,
29918,
1266,
353,
29871,
29900,
565,
2920,
529,
343,
21134,
29918,
2103,
29918,
1266,
718,
343,
21134,
29918,
2103,
29918,
1563,
718,
29871,
29941,
1683,
343,
21134,
29918,
2103,
29918,
1266,
13,
13,
1678,
343,
8990,
29918,
1563,
353,
938,
29898,
1491,
5317,
29889,
29891,
1165,
267,
29961,
29900,
29962,
322,
1014,
5317,
29889,
1272,
29897,
13,
1678,
343,
8990,
29918,
1266,
353,
938,
29898,
1491,
5317,
29889,
29891,
1165,
267,
29961,
29896,
29962,
322,
1014,
5317,
29889,
1272,
29897,
13,
1678,
2025,
353,
343,
21134,
29918,
2103,
29918,
1563,
718,
343,
8990,
29918,
1563,
718,
343,
8990,
29918,
1266,
718,
343,
21134,
29918,
2103,
29918,
1266,
29871,
13,
268,
13,
1678,
1014,
5317,
29889,
2103,
29918,
15257,
353,
1014,
5317,
29889,
2103,
448,
2025,
13,
1678,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1563,
353,
343,
21134,
29918,
2103,
29918,
1563,
13,
1678,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1266,
353,
343,
21134,
29918,
2103,
29918,
1266,
13,
13,
1678,
343,
1643,
29918,
2848,
353,
7431,
29898,
1491,
5317,
29889,
29891,
1643,
29961,
29900,
2314,
718,
29871,
29941,
13,
1678,
565,
1014,
5317,
29889,
2103,
529,
343,
1643,
29918,
2848,
29901,
13,
4706,
1014,
5317,
29889,
3545,
29918,
15257,
4619,
29871,
29896,
13,
13,
1753,
903,
29916,
2576,
29918,
1272,
29898,
1491,
5317,
1125,
13,
1678,
921,
353,
23160,
329,
1793,
29889,
1188,
29898,
1491,
5317,
29889,
29916,
29961,
29879,
2314,
565,
1014,
5317,
29889,
29916,
7052,
1275,
376,
1188,
29908,
1683,
1014,
5317,
29889,
29916,
29961,
29879,
29962,
363,
269,
297,
3464,
29898,
1491,
5317,
29889,
4530,
1338,
4638,
13,
1678,
1014,
5317,
29889,
29916,
2576,
29918,
1272,
353,
903,
329,
1793,
29889,
657,
29918,
2576,
29918,
1272,
29898,
29916,
29897,
13,
13,
1753,
903,
29916,
2576,
29918,
5317,
29898,
1491,
5317,
1125,
13,
1678,
1014,
5317,
29889,
29916,
2576,
29918,
5317,
353,
903,
329,
1793,
29889,
842,
29918,
1761,
29918,
361,
29918,
9290,
29898,
1491,
5317,
29889,
29916,
2576,
29918,
5317,
29892,
1014,
5317,
29889,
29916,
2576,
29918,
1272,
29897,
13,
1678,
396,
1491,
5317,
29889,
4518,
353,
313,
1491,
5317,
29889,
29891,
2576,
29918,
5317,
29961,
29896,
29962,
448,
1014,
5317,
29889,
29891,
2576,
29918,
5317,
29961,
29900,
2314,
847,
1014,
5317,
29889,
3545,
29918,
15257,
13,
13,
1753,
903,
486,
7358,
29898,
1491,
5317,
1125,
13,
1678,
565,
1014,
5317,
29889,
486,
7358,
1275,
5159,
322,
1014,
5317,
29889,
29873,
7358,
29961,
29900,
5387,
13,
4706,
565,
1014,
5317,
29889,
29916,
7052,
1275,
376,
10660,
1115,
13,
9651,
1014,
5317,
29889,
486,
7358,
353,
903,
329,
1793,
29889,
657,
29918,
29873,
7358,
29898,
1491,
5317,
29889,
29916,
2576,
29918,
5317,
29892,
1014,
5317,
29889,
29873,
7358,
29961,
29900,
2314,
13,
9651,
1014,
5317,
29889,
29916,
21134,
353,
903,
329,
1793,
29889,
657,
29918,
21134,
29898,
1491,
5317,
29889,
486,
7358,
29897,
13,
4706,
565,
1014,
5317,
29889,
29916,
7052,
1275,
376,
1188,
1115,
13,
9651,
1014,
5317,
29889,
486,
7358,
29892,
1014,
5317,
29889,
29916,
21134,
353,
903,
329,
1793,
29889,
657,
29918,
1188,
29918,
29873,
7358,
29898,
1491,
5317,
29889,
29916,
2576,
29918,
5317,
29892,
1014,
5317,
29889,
29873,
7358,
29961,
29900,
2314,
13,
1678,
1014,
5317,
29889,
486,
7358,
29918,
22724,
353,
903,
329,
1793,
29889,
657,
29918,
5344,
29918,
1272,
29898,
1491,
5317,
29889,
486,
7358,
29892,
1014,
5317,
29889,
29916,
2576,
29918,
5317,
29892,
1014,
5317,
29889,
2103,
29918,
15257,
29897,
13,
13,
1753,
903,
5344,
29898,
1491,
5317,
1125,
13,
1678,
17456,
353,
6796,
9162,
376,
9290,
613,
1014,
5317,
29889,
15257,
29918,
2780,
29962,
13,
1678,
1014,
5317,
29889,
5344,
353,
5519,
22976,
7503,
29962,
363,
274,
297,
3464,
29898,
1491,
5317,
29889,
2103,
29918,
15257,
4638,
363,
364,
297,
3464,
29898,
1491,
5317,
29889,
3545,
29918,
15257,
4638,
13,
13,
1753,
903,
1202,
29918,
29916,
7720,
29898,
1491,
5317,
1125,
13,
1678,
565,
451,
1014,
5317,
29889,
7720,
29961,
29900,
5387,
13,
4706,
736,
29871,
13,
1678,
6856,
29918,
2780,
353,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
13,
1678,
363,
274,
297,
1014,
5317,
29889,
486,
7358,
29918,
22724,
29901,
13,
4706,
921,
29892,
343,
353,
903,
329,
1793,
29889,
657,
29918,
1220,
4197,
29883,
29892,
274,
1402,
518,
29900,
29892,
1014,
5317,
29889,
3545,
29918,
15257,
2314,
13,
4706,
17456,
353,
376,
30111,
29908,
13,
4706,
1014,
5317,
29889,
5344,
353,
903,
329,
1793,
29889,
5504,
29918,
5344,
29898,
1491,
5317,
29889,
5344,
29892,
921,
29892,
343,
29892,
17456,
29892,
6856,
29918,
2780,
29897,
13,
13,
1753,
903,
1202,
29918,
29891,
7720,
29898,
1491,
5317,
1125,
13,
1678,
565,
451,
1014,
5317,
29889,
7720,
29961,
29896,
5387,
13,
4706,
736,
29871,
13,
1678,
6856,
29918,
2780,
353,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
13,
1678,
363,
364,
297,
1014,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1563,
718,
1014,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1266,
29901,
13,
4706,
921,
29892,
343,
353,
903,
329,
1793,
29889,
657,
29918,
1220,
4197,
29900,
29892,
1014,
5317,
29889,
2103,
29918,
15257,
1402,
518,
29878,
29892,
364,
2314,
13,
4706,
17456,
353,
376,
30091,
29908,
13,
4706,
1014,
5317,
29889,
5344,
353,
903,
329,
1793,
29889,
5504,
29918,
5344,
29898,
1491,
5317,
29889,
5344,
29892,
921,
29892,
343,
29892,
17456,
29892,
6856,
29918,
2780,
29897,
13,
4706,
565,
1014,
5317,
29889,
7720,
29961,
29900,
5387,
13,
9651,
921,
353,
1014,
5317,
29889,
486,
7358,
29918,
22724,
13,
9651,
343,
353,
518,
29878,
29962,
334,
7431,
29898,
29916,
29897,
13,
9651,
17456,
353,
376,
30560,
29908,
13,
9651,
1014,
5317,
29889,
5344,
353,
903,
329,
1793,
29889,
5504,
29918,
5344,
29898,
1491,
5317,
29889,
5344,
29892,
921,
29892,
343,
29892,
17456,
29892,
6856,
29918,
2780,
29897,
13,
13,
1753,
903,
1202,
29918,
1272,
29898,
1491,
5317,
1125,
13,
1678,
363,
269,
297,
3464,
29898,
2435,
29898,
1491,
5317,
29889,
29916,
22164,
13,
4706,
1298,
29918,
22976,
29892,
1298,
29918,
2780,
353,
1014,
5317,
29889,
3149,
29918,
22976,
29961,
29879,
1402,
1014,
5317,
29889,
3149,
29918,
2780,
29961,
29879,
29962,
13,
4706,
1196,
29918,
22976,
29892,
1196,
29918,
2780,
353,
1014,
5317,
29889,
1220,
29918,
22976,
29961,
29879,
1402,
1014,
5317,
29889,
1220,
29918,
2780,
29961,
29879,
29962,
13,
308,
13,
4706,
921,
29892,
343,
353,
1014,
5317,
29889,
29916,
29961,
29879,
1402,
1014,
5317,
29889,
29891,
29961,
29879,
29962,
13,
4706,
921,
29918,
1688,
353,
1014,
5317,
29889,
29916,
7052,
1275,
376,
1188,
29908,
13,
4706,
921,
353,
903,
329,
1793,
29889,
1188,
29898,
29916,
29897,
565,
921,
29918,
1688,
1683,
921,
13,
4706,
343,
29918,
1688,
353,
313,
1491,
5317,
29889,
952,
29883,
744,
29961,
29900,
29962,
1275,
376,
1188,
29908,
322,
1014,
5317,
29889,
29891,
8990,
29961,
29879,
29962,
1275,
376,
1563,
1159,
470,
313,
1491,
5317,
29889,
952,
29883,
744,
29961,
29896,
29962,
1275,
376,
1188,
29908,
322,
1014,
5317,
29889,
29891,
8990,
29961,
29879,
29962,
1275,
376,
1266,
1159,
13,
4706,
343,
353,
903,
329,
1793,
29889,
1188,
29898,
29891,
29897,
565,
343,
29918,
1688,
1683,
343,
13,
4706,
286,
29888,
353,
29871,
29906,
565,
1298,
29918,
22976,
1275,
376,
9278,
29908,
470,
1196,
29918,
22976,
1275,
376,
9278,
29908,
1683,
29871,
29896,
396,
2319,
17456,
7329,
13,
4706,
343,
2576,
29918,
5317,
353,
1014,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1563,
565,
1014,
5317,
29889,
29891,
8990,
29961,
29879,
29962,
1275,
376,
1563,
29908,
1683,
1014,
5317,
29889,
29891,
2576,
29918,
5317,
29918,
1266,
13,
4706,
921,
29918,
3149,
353,
903,
329,
1793,
29889,
657,
29918,
5344,
29918,
1272,
29898,
29916,
29892,
1014,
5317,
29889,
29916,
2576,
29918,
5317,
29892,
286,
29888,
334,
1014,
5317,
29889,
2103,
29918,
15257,
29897,
13,
4706,
343,
29918,
3149,
353,
903,
329,
1793,
29889,
657,
29918,
5344,
29918,
1272,
29898,
29891,
29892,
343,
2576,
29918,
5317,
29892,
286,
29888,
334,
1014,
5317,
29889,
3545,
29918,
15257,
29897,
13,
13,
4706,
921,
29918,
1220,
29892,
343,
29918,
1220,
353,
19997,
5159,
13,
4706,
565,
1196,
29918,
22976,
2804,
376,
1115,
13,
9651,
921,
29918,
1220,
29892,
343,
29918,
1220,
353,
903,
329,
1793,
29889,
657,
29918,
1220,
29898,
29916,
29918,
3149,
29892,
343,
29918,
3149,
29897,
13,
308,
13,
4706,
565,
1014,
5317,
29889,
5589,
29916,
29961,
29879,
5387,
13,
9651,
3171,
29900,
353,
903,
329,
1793,
29889,
657,
29918,
5344,
29918,
1272,
4197,
29900,
1402,
343,
2576,
29918,
5317,
29892,
286,
29888,
334,
1014,
5317,
29889,
3545,
29918,
15257,
9601,
29900,
29962,
13,
9651,
921,
29918,
3149,
29892,
343,
29918,
3149,
353,
903,
329,
1793,
29889,
5589,
29918,
1272,
29898,
29916,
29918,
3149,
29892,
343,
29918,
3149,
29892,
3171,
29900,
29897,
13,
9651,
921,
29918,
1220,
29892,
343,
29918,
1220,
353,
903,
329,
1793,
29889,
5589,
29918,
1272,
29898,
29916,
29918,
1220,
29892,
343,
29918,
1220,
29892,
3171,
29900,
29897,
13,
4706,
565,
1014,
5317,
29889,
1777,
368,
29961,
29879,
5387,
13,
9651,
2920,
29900,
353,
903,
329,
1793,
29889,
657,
29918,
5344,
29918,
1272,
4197,
29900,
1402,
1014,
5317,
29889,
29916,
2576,
29918,
5317,
29892,
286,
29888,
334,
1014,
5317,
29889,
2103,
29918,
15257,
9601,
29900,
29962,
29871,
13,
9651,
343,
29918,
3149,
29892,
921,
29918,
3149,
353,
903,
329,
1793,
29889,
5589,
29918,
1272,
29898,
29891,
29918,
3149,
29892,
921,
29918,
3149,
29892,
2920,
29900,
29897,
13,
9651,
343,
29918,
1220,
29892,
921,
29918,
1220,
353,
903,
329,
1793,
29889,
5589,
29918,
1272,
29898,
29891,
29918,
1220,
29892,
921,
29918,
1220,
29892,
2920,
29900,
29897,
13,
632,
13,
4706,
921,
29918,
1220,
353,
518,
295,
847,
286,
29888,
363,
560,
297,
921,
29918,
1220,
29962,
13,
4706,
343,
29918,
1220,
353,
518,
295,
847,
286,
29888,
363,
560,
297,
343,
29918,
1220,
29962,
13,
4706,
565,
1196,
29918,
22976,
2804,
376,
1115,
13,
9651,
1014,
5317,
29889,
5344,
353,
903,
329,
1793,
29889,
5504,
29918,
5344,
29898,
1491,
5317,
29889,
5344,
29892,
921,
29918,
1220,
29892,
343,
29918,
1220,
29892,
1196,
29918,
22976,
29892,
1196,
29918,
2780,
29897,
13,
632,
13,
4706,
921,
29918,
3149,
353,
518,
295,
847,
286,
29888,
363,
560,
297,
921,
29918,
3149,
29962,
13,
4706,
343,
29918,
3149,
353,
518,
295,
847,
286,
29888,
363,
560,
297,
343,
29918,
3149,
29962,
13,
4706,
565,
1298,
29918,
22976,
2804,
376,
1115,
13,
9651,
1014,
5317,
29889,
5344,
353,
903,
329,
1793,
29889,
5504,
29918,
5344,
29898,
1491,
5317,
29889,
5344,
29892,
921,
29918,
3149,
29892,
343,
29918,
3149,
29892,
1298,
29918,
22976,
29892,
1298,
29918,
2780,
29897,
13,
13,
1753,
903,
1202,
29918,
26172,
29898,
1491,
5317,
1125,
13,
1678,
3858,
353,
1014,
5317,
29889,
1643,
13,
1678,
1510,
353,
738,
4197,
295,
2804,
5124,
363,
560,
297,
3858,
2314,
13,
1678,
2625,
29918,
1688,
353,
1014,
5317,
29889,
1272,
29918,
1563,
322,
1014,
5317,
29889,
1272,
29918,
1266,
13,
1678,
565,
451,
313,
4294,
470,
2625,
29918,
1688,
1125,
13,
4706,
736,
13,
1678,
301,
353,
7431,
29898,
1643,
29897,
13,
1678,
3858,
353,
6796,
25436,
376,
718,
851,
29898,
29875,
718,
29871,
29896,
29897,
565,
3858,
29961,
29875,
29962,
1275,
5124,
322,
1510,
1683,
3858,
29961,
29875,
29962,
363,
474,
297,
3464,
29898,
29880,
4638,
13,
1678,
2625,
29918,
1643,
353,
6796,
3366,
718,
1014,
5317,
29889,
29891,
8990,
29961,
29875,
29962,
718,
376,
29962,
376,
565,
2625,
29918,
1688,
1683,
5124,
363,
474,
297,
3464,
29898,
29880,
4638,
13,
1678,
3858,
353,
518,
2975,
29918,
1643,
29961,
29875,
29962,
718,
3858,
29961,
29875,
29962,
363,
474,
297,
3464,
29898,
29880,
4638,
13,
1678,
3858,
353,
6796,
376,
718,
560,
718,
376,
376,
363,
560,
297,
3858,
29962,
13,
1678,
3858,
353,
518,
1761,
29898,
295,
29897,
363,
560,
297,
3858,
29962,
13,
1678,
281,
353,
4236,
29898,
1958,
29898,
2435,
29892,
3858,
876,
13,
1678,
3858,
353,
518,
295,
718,
6796,
376,
29962,
334,
313,
29893,
448,
7431,
29898,
295,
876,
363,
560,
297,
3858,
29962,
13,
1678,
15983,
353,
518,
2636,
363,
474,
297,
3464,
29898,
29880,
4638,
13,
1678,
15983,
29918,
2780,
353,
518,
2636,
363,
474,
297,
3464,
29898,
29880,
4638,
13,
1678,
363,
474,
297,
3464,
29898,
29880,
1125,
13,
4706,
1298,
29918,
22976,
29892,
1196,
29918,
22976,
353,
1014,
5317,
29889,
3149,
29918,
22976,
29961,
29875,
1402,
1014,
5317,
29889,
1220,
29918,
22976,
29961,
29875,
29962,
13,
4706,
1298,
29918,
2780,
29892,
1196,
29918,
2780,
353,
1014,
5317,
29889,
3149,
29918,
2780,
29961,
29875,
1402,
1014,
5317,
29889,
1220,
29918,
2780,
29961,
29875,
29962,
13,
4706,
17456,
353,
1298,
29918,
22976,
565,
1298,
29918,
22976,
2804,
5124,
1683,
1196,
29918,
22976,
13,
4706,
17456,
353,
376,
30625,
29908,
565,
17456,
1275,
376,
9278,
29908,
1683,
17456,
13,
4706,
2927,
353,
1298,
29918,
2780,
565,
1298,
29918,
22976,
2804,
5124,
1683,
1196,
29918,
2780,
13,
4706,
15983,
29961,
29875,
29962,
4619,
518,
22976,
29962,
334,
29871,
29941,
13,
4706,
15983,
29961,
29875,
29962,
4619,
3858,
29961,
29875,
29962,
13,
4706,
15983,
29918,
2780,
29961,
29875,
29962,
4619,
518,
2780,
29962,
334,
29871,
29941,
13,
4706,
15983,
29918,
2780,
29961,
29875,
29962,
4619,
518,
1491,
5317,
29889,
29873,
7358,
29918,
2780,
29962,
334,
281,
13,
1678,
15983,
353,
518,
26172,
29961,
29875,
29962,
363,
474,
297,
3464,
29898,
2435,
29898,
26172,
876,
565,
1014,
5317,
29889,
1643,
29918,
4294,
29961,
29875,
5262,
13,
1678,
15983,
29918,
2780,
353,
518,
26172,
29918,
2780,
29961,
29875,
29962,
363,
474,
297,
3464,
29898,
2435,
29898,
26172,
29918,
2780,
876,
565,
1014,
5317,
29889,
1643,
29918,
4294,
29961,
29875,
5262,
13,
1678,
15983,
353,
903,
329,
1793,
29889,
2557,
29918,
5344,
29898,
26172,
29897,
13,
1678,
15983,
29918,
2780,
353,
903,
329,
1793,
29889,
2557,
29918,
5344,
29898,
26172,
29918,
2780,
29892,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
29897,
13,
1678,
15983,
353,
5519,
518,
26172,
29961,
29875,
3816,
29926,
1402,
15983,
29918,
2780,
29961,
29875,
3816,
29926,
1402,
1014,
5317,
29889,
15257,
29918,
2780,
29962,
363,
432,
297,
3464,
29898,
2435,
29898,
26172,
29961,
29900,
12622,
29962,
363,
474,
297,
3464,
29898,
2435,
29898,
26172,
28166,
13,
1678,
1014,
5317,
29889,
5344,
353,
903,
329,
1793,
29889,
7851,
29898,
26172,
29892,
1014,
5317,
29889,
5344,
29897,
565,
1510,
470,
2625,
29918,
1688,
1683,
1014,
5317,
29889,
5344,
13,
1678,
396,
1763,
437,
29901,
5682,
355,
3515,
1006,
571,
267,
411,
6856,
3454,
259,
13,
13,
1753,
903,
1202,
29918,
29891,
8990,
29898,
1491,
5317,
1125,
13,
1678,
565,
1014,
5317,
29889,
29916,
1275,
5159,
29901,
13,
4706,
736,
13,
1678,
11073,
29918,
1563,
353,
6796,
376,
334,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1563,
363,
364,
297,
3464,
29898,
1491,
5317,
29889,
3545,
29918,
15257,
4638,
13,
1678,
363,
474,
297,
3464,
29898,
2435,
29898,
1491,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1563,
22164,
13,
4706,
364,
353,
1014,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1563,
29961,
29875,
29962,
13,
4706,
565,
364,
297,
3464,
29898,
1491,
5317,
29889,
3545,
29918,
15257,
1125,
13,
9651,
11073,
29918,
1563,
29961,
29878,
29962,
353,
851,
29898,
1491,
5317,
29889,
29891,
21134,
29918,
1563,
29961,
29875,
2314,
29961,
584,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1563,
29962,
13,
1678,
11073,
29918,
1563,
353,
6796,
376,
334,
313,
1491,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1563,
448,
7431,
29898,
295,
876,
718,
560,
363,
560,
297,
11073,
29918,
1563,
29962,
13,
1678,
11073,
29918,
1563,
353,
518,
1761,
29898,
295,
29897,
363,
560,
297,
11073,
29918,
1563,
29962,
13,
1678,
11073,
29918,
1563,
353,
5519,
29961,
1491,
29918,
295,
29892,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
29892,
1014,
5317,
29889,
1165,
267,
29918,
2780,
29962,
363,
1014,
29918,
295,
297,
560,
29962,
363,
560,
297,
11073,
29918,
1563,
29962,
13,
1678,
11073,
29918,
1563,
353,
11073,
29918,
1563,
29961,
1057,
29899,
29896,
29962,
13,
268,
13,
13,
1678,
343,
24667,
353,
376,
30560,
29908,
565,
1014,
5317,
29889,
7720,
29961,
29896,
29962,
1683,
376,
31289,
29908,
13,
1678,
343,
24667,
353,
376,
30111,
29908,
565,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1266,
1275,
29871,
29900,
322,
1014,
5317,
29889,
7720,
29961,
29896,
29962,
1275,
7700,
1683,
343,
24667,
13,
13,
1678,
343,
24667,
353,
29871,
4852,
30560,
29908,
565,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1563,
2804,
29871,
29900,
1683,
376,
30188,
1159,
565,
1014,
5317,
29889,
7720,
29961,
29896,
29962,
1683,
4852,
31289,
29908,
565,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1563,
2804,
29871,
29900,
1683,
376,
30111,
1159,
13,
1678,
9685,
29918,
1563,
353,
17288,
3637,
860,
29871,
565,
364,
297,
1014,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1266,
718,
1014,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1563,
1683,
376,
30111,
1159,
363,
364,
297,
3464,
29898,
1491,
5317,
29889,
3545,
29918,
15257,
4638,
13,
1678,
9685,
29918,
1563,
353,
518,
1761,
29898,
295,
29897,
363,
560,
297,
9685,
29918,
1563,
29962,
13,
1678,
9685,
29918,
1563,
353,
5519,
29961,
1491,
29918,
295,
29892,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
29892,
1014,
5317,
29889,
1165,
267,
29918,
2780,
29962,
363,
1014,
29918,
295,
297,
560,
29962,
363,
560,
297,
9685,
29918,
1563,
29962,
13,
1678,
9685,
29918,
1563,
353,
9685,
29918,
1563,
29961,
1057,
29899,
29896,
29962,
13,
13,
1678,
11073,
29918,
1266,
353,
6796,
376,
334,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1266,
363,
364,
297,
3464,
29898,
1491,
5317,
29889,
3545,
29918,
15257,
4638,
13,
1678,
363,
474,
297,
3464,
29898,
2435,
29898,
1491,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1266,
22164,
13,
4706,
364,
353,
1014,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1266,
29961,
29875,
29962,
13,
4706,
565,
364,
297,
3464,
29898,
1491,
5317,
29889,
3545,
29918,
15257,
1125,
13,
9651,
11073,
29918,
1266,
29961,
29878,
29962,
353,
851,
29898,
1491,
5317,
29889,
29891,
21134,
29918,
1266,
29961,
29875,
2314,
29961,
584,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1266,
29962,
13,
1678,
11073,
29918,
1266,
353,
518,
295,
718,
376,
376,
334,
313,
1491,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1266,
448,
7431,
29898,
295,
876,
363,
560,
297,
11073,
29918,
1266,
29962,
13,
1678,
11073,
29918,
1266,
353,
518,
1761,
29898,
295,
29897,
363,
560,
297,
11073,
29918,
1266,
29962,
13,
1678,
11073,
29918,
1266,
353,
5519,
29961,
1491,
29918,
295,
29892,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
29892,
1014,
5317,
29889,
1165,
267,
29918,
2780,
29962,
363,
1014,
29918,
295,
297,
560,
29962,
363,
560,
297,
11073,
29918,
1266,
29962,
13,
1678,
11073,
29918,
1266,
353,
11073,
29918,
1266,
29961,
1057,
29899,
29896,
29962,
13,
13,
1678,
343,
24667,
353,
29871,
4852,
30560,
29908,
565,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1266,
2804,
29871,
29900,
1683,
376,
31289,
1159,
29871,
565,
1014,
5317,
29889,
7720,
29961,
29896,
29962,
1683,
4852,
30188,
29908,
565,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1266,
2804,
29871,
29900,
1683,
376,
30111,
1159,
29871,
13,
1678,
9685,
29918,
1266,
353,
17288,
3637,
860,
565,
364,
297,
1014,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1266,
718,
1014,
5317,
29889,
3637,
7358,
29918,
5727,
29918,
1563,
1683,
376,
30111,
1159,
363,
364,
297,
3464,
29898,
1491,
5317,
29889,
3545,
29918,
15257,
4638,
13,
1678,
9685,
29918,
1266,
353,
518,
1761,
29898,
295,
29897,
363,
560,
297,
9685,
29918,
1266,
29962,
13,
1678,
9685,
29918,
1266,
353,
5519,
29961,
1491,
29918,
295,
29892,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
29892,
1014,
5317,
29889,
1165,
267,
29918,
2780,
29962,
363,
1014,
29918,
295,
297,
560,
29962,
363,
560,
297,
9685,
29918,
1266,
29962,
13,
1678,
9685,
29918,
1266,
353,
9685,
29918,
1266,
29961,
1057,
29899,
29896,
29962,
13,
268,
13,
1678,
565,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29900,
5387,
13,
4706,
363,
364,
297,
3464,
29898,
1491,
5317,
29889,
3545,
29918,
15257,
1125,
13,
9651,
1014,
5317,
29889,
5344,
29961,
29878,
29962,
353,
9685,
29918,
1563,
29961,
29878,
29962,
718,
1014,
5317,
29889,
5344,
29961,
29878,
29962,
13,
1678,
565,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29896,
5387,
13,
4706,
363,
364,
297,
3464,
29898,
1491,
5317,
29889,
3545,
29918,
15257,
1125,
13,
9651,
1014,
5317,
29889,
5344,
29961,
29878,
29962,
353,
1014,
5317,
29889,
5344,
29961,
29878,
29962,
718,
9685,
29918,
1266,
29961,
29878,
29962,
13,
1678,
565,
1014,
5317,
29889,
29873,
7358,
29961,
29896,
5387,
13,
4706,
363,
364,
297,
3464,
29898,
1491,
5317,
29889,
3545,
29918,
15257,
1125,
13,
9651,
1014,
5317,
29889,
5344,
29961,
29878,
29962,
353,
11073,
29918,
1563,
29961,
29878,
29962,
718,
1014,
5317,
29889,
5344,
29961,
29878,
29962,
718,
11073,
29918,
1266,
29961,
29878,
29962,
13,
13,
1753,
903,
1202,
29918,
29916,
8990,
29898,
1491,
5317,
1125,
13,
1678,
565,
1014,
5317,
29889,
29916,
1275,
5159,
29901,
13,
4706,
736,
13,
1678,
9685,
29918,
13609,
353,
6796,
376,
29962,
334,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1563,
718,
6796,
30227,
3108,
334,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29900,
29962,
13,
1678,
9685,
29918,
13609,
4619,
6796,
30091,
29908,
363,
364,
297,
3464,
29898,
1491,
5317,
29889,
2103,
29918,
15257,
4638,
13,
1678,
9685,
29918,
13609,
4619,
6796,
31119,
3108,
334,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29896,
29962,
718,
6796,
376,
29962,
334,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1266,
13,
13,
1678,
9685,
29918,
786,
353,
6796,
376,
29962,
334,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1563,
718,
6796,
31002,
3108,
334,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29900,
29962,
13,
1678,
9685,
29918,
786,
4619,
6796,
30091,
29908,
363,
364,
297,
3464,
29898,
1491,
5317,
29889,
2103,
29918,
15257,
4638,
13,
1678,
9685,
29918,
786,
4619,
6796,
31082,
3108,
334,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29896,
29962,
718,
6796,
376,
29962,
334,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1266,
13,
268,
13,
1678,
11073,
29918,
13609,
353,
29871,
6796,
376,
29962,
334,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1563,
718,
6796,
376,
29962,
334,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29900,
29962,
13,
1678,
297,
466,
29918,
2848,
353,
7431,
29898,
21134,
29918,
13609,
29897,
13,
1678,
11073,
29918,
13609,
4619,
29871,
6796,
376,
363,
364,
297,
3464,
29898,
1491,
5317,
29889,
2103,
29918,
15257,
4638,
13,
1678,
11073,
29918,
13609,
4619,
6796,
376,
29962,
334,
1014,
5317,
29889,
29891,
1165,
267,
29961,
29900,
29962,
718,
6796,
376,
29962,
334,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1266,
13,
268,
13,
13,
268,
486,
860,
29918,
13609,
353,
376,
30560,
29908,
565,
1014,
5317,
29889,
7720,
29961,
29900,
29962,
1683,
376,
30731,
29908,
13,
268,
486,
860,
29918,
786,
353,
376,
30731,
29908,
565,
1014,
5317,
29889,
7720,
29961,
29900,
29962,
1683,
376,
30091,
29908,
13,
1678,
301,
353,
7431,
29898,
1491,
5317,
29889,
486,
7358,
29918,
22724,
29897,
13,
1678,
363,
474,
297,
3464,
29898,
29880,
1125,
13,
308,
784,
353,
1014,
5317,
29889,
486,
7358,
29918,
22724,
29961,
29875,
29962,
718,
297,
466,
29918,
2848,
13,
308,
396,
361,
784,
6736,
1014,
5317,
29889,
2103,
29901,
13,
308,
396,
1678,
6773,
13,
308,
3858,
353,
851,
29898,
1491,
5317,
29889,
29916,
21134,
29961,
29875,
2314,
13,
308,
3858,
29918,
2848,
353,
7431,
29898,
1643,
29897,
13,
308,
3858,
29918,
1054,
353,
1051,
29898,
3881,
29898,
3317,
29898,
1054,
448,
3858,
29918,
2848,
29892,
29871,
29900,
511,
1375,
29898,
1054,
718,
3858,
29918,
2848,
718,
29871,
29896,
29892,
1014,
5317,
29889,
2103,
4961,
13,
308,
3858,
29918,
1054,
353,
518,
29883,
363,
274,
297,
3858,
29918,
1054,
565,
274,
718,
3858,
29918,
2848,
5277,
1014,
5317,
29889,
2103,
29962,
13,
308,
565,
3858,
29918,
1054,
1275,
5159,
29901,
13,
632,
6773,
13,
308,
3858,
29918,
1054,
353,
1375,
29898,
1643,
29918,
1054,
29892,
1820,
353,
14013,
921,
584,
6425,
29898,
29916,
448,
313,
1054,
448,
313,
1643,
29918,
2848,
448,
29871,
29906,
29897,
847,
29871,
29906,
4961,
13,
308,
565,
3858,
29918,
1054,
718,
3858,
29918,
2848,
1405,
1014,
5317,
29889,
2103,
29901,
13,
632,
6773,
13,
308,
3858,
29918,
16304,
353,
11073,
29918,
13609,
29961,
1643,
29918,
1054,
448,
29871,
29896,
29901,
3858,
29918,
1054,
718,
3858,
29918,
2848,
718,
29871,
29896,
29962,
13,
308,
3858,
29918,
16304,
353,
1051,
29898,
842,
29898,
1643,
29918,
16304,
876,
13,
3986,
13,
308,
565,
3858,
29918,
16304,
1275,
6796,
376,
29962,
470,
3858,
29918,
16304,
1275,
5159,
29901,
13,
632,
11073,
29918,
13609,
29961,
1643,
29918,
1054,
29901,
3858,
29918,
1054,
718,
3858,
29918,
2848,
29962,
353,
1051,
29898,
1643,
29897,
13,
632,
9685,
29918,
13609,
29961,
1054,
29962,
353,
29871,
486,
860,
29918,
13609,
13,
632,
9685,
29918,
786,
29961,
1054,
29962,
353,
29871,
486,
860,
29918,
786,
13,
308,
25342,
9685,
29918,
13609,
29961,
1054,
29962,
1275,
376,
30091,
1115,
13,
632,
9685,
29918,
13609,
29961,
1054,
29962,
353,
376,
30929,
29908,
565,
1014,
5317,
29889,
7720,
29961,
29900,
29962,
1683,
376,
30091,
29908,
13,
632,
9685,
29918,
786,
29961,
1054,
29962,
353,
376,
30731,
29908,
565,
1014,
5317,
29889,
7720,
29961,
29900,
29962,
1683,
376,
30091,
29908,
13,
795,
13,
1678,
9685,
29918,
786,
353,
5519,
295,
29892,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
29892,
1014,
5317,
29889,
1165,
267,
29918,
2780,
29962,
363,
560,
297,
9685,
29918,
786,
29962,
13,
1678,
9685,
29918,
13609,
353,
5519,
295,
29892,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
29892,
1014,
5317,
29889,
1165,
267,
29918,
2780,
29962,
363,
560,
297,
9685,
29918,
13609,
29962,
13,
1678,
11073,
29918,
13609,
353,
5519,
295,
29892,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
29892,
1014,
5317,
29889,
1165,
267,
29918,
2780,
29962,
363,
560,
297,
11073,
29918,
13609,
29962,
13,
3986,
13,
1678,
565,
1014,
5317,
29889,
29916,
1165,
267,
29961,
29900,
5387,
13,
4706,
1014,
5317,
29889,
5344,
4619,
518,
8990,
29918,
13609,
29962,
13,
1678,
565,
1014,
5317,
29889,
29916,
1165,
267,
29961,
29896,
5387,
13,
4706,
1014,
5317,
29889,
5344,
353,
518,
8990,
29918,
786,
29962,
718,
1014,
5317,
29889,
5344,
13,
1678,
565,
1014,
5317,
29889,
29873,
7358,
29961,
29900,
5387,
13,
4706,
1014,
5317,
29889,
5344,
4619,
518,
21134,
29918,
13609,
29962,
13,
13,
1753,
903,
1202,
29918,
3257,
29898,
1491,
5317,
1125,
13,
1678,
565,
1014,
5317,
29889,
3257,
1275,
376,
1115,
13,
4706,
736,
13,
1678,
2920,
29918,
1563,
353,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1563,
718,
938,
29898,
1491,
5317,
29889,
29891,
1165,
267,
29961,
29900,
2314,
13,
1678,
3611,
353,
1014,
5317,
29889,
3257,
29961,
584,
1014,
5317,
29889,
2103,
29918,
15257,
29962,
13,
1678,
2913,
29896,
353,
376,
376,
334,
313,
2103,
29918,
1563,
718,
938,
3552,
1491,
5317,
29889,
2103,
29918,
15257,
448,
7431,
29898,
3257,
876,
847,
29871,
29906,
876,
13,
1678,
2913,
29906,
353,
376,
376,
334,
313,
1491,
5317,
29889,
2103,
448,
7431,
29898,
3257,
718,
2913,
29896,
876,
13,
1678,
3611,
353,
2913,
29896,
718,
3611,
718,
2913,
29906,
13,
1678,
3611,
353,
1051,
29898,
3257,
29897,
13,
1678,
3611,
353,
5519,
295,
29892,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
29892,
1014,
5317,
29889,
1165,
267,
29918,
2780,
29962,
363,
560,
297,
3611,
29962,
13,
1678,
1014,
5317,
29889,
5344,
353,
518,
3257,
29962,
718,
1014,
5317,
29889,
5344,
13,
13,
1753,
903,
1202,
29918,
21134,
29898,
1491,
5317,
1125,
13,
1678,
565,
1014,
5317,
29889,
29916,
1643,
1275,
5124,
322,
1014,
5317,
29889,
29891,
1643,
1275,
6796,
613,
376,
3108,
29901,
13,
4706,
736,
13,
1678,
2920,
29918,
3317,
353,
1014,
5317,
29889,
2103,
448,
29871,
29946,
334,
29871,
29941,
13,
268,
13,
1678,
343,
1643,
29918,
1563,
353,
14704,
29891,
29962,
376,
718,
1014,
5317,
29889,
29891,
1643,
29961,
29900,
29962,
13,
1678,
2920,
29918,
1563,
353,
1014,
5317,
29889,
29891,
21134,
29918,
2103,
29918,
1563,
718,
938,
29898,
1491,
5317,
29889,
29891,
1165,
267,
29961,
29900,
2314,
13,
1678,
343,
1643,
29918,
1563,
353,
343,
1643,
29918,
1563,
718,
376,
376,
334,
313,
2103,
29918,
1563,
448,
7431,
29898,
29891,
1643,
29918,
1563,
876,
13,
13,
1678,
343,
1643,
29918,
1563,
353,
343,
1643,
29918,
1563,
29961,
584,
2920,
29918,
3317,
849,
29871,
29941,
29962,
13,
13,
1678,
343,
1643,
29918,
1266,
353,
5124,
13,
1678,
565,
1014,
5317,
29889,
29891,
1643,
29961,
29896,
29962,
2804,
376,
1115,
13,
4706,
343,
1643,
29918,
1266,
353,
1014,
5317,
29889,
29891,
1643,
29961,
29896,
29962,
718,
376,
518,
29891,
18017,
13,
1678,
921,
1643,
353,
376,
376,
718,
1014,
5317,
29889,
29916,
1643,
718,
376,
518,
29916,
29962,
376,
13,
1678,
301,
29918,
1563,
353,
7431,
29898,
29891,
1643,
29918,
1563,
29897,
13,
13,
1678,
301,
29918,
4260,
353,
7431,
29898,
29891,
1643,
29918,
1563,
718,
921,
1643,
718,
343,
1643,
29918,
1266,
29897,
13,
1678,
565,
301,
29918,
4260,
1405,
1014,
5317,
29889,
2103,
29901,
13,
4706,
921,
1643,
353,
5124,
13,
1678,
301,
29918,
4260,
353,
7431,
29898,
29891,
1643,
29918,
1563,
718,
921,
1643,
718,
343,
1643,
29918,
1266,
29897,
13,
1678,
565,
301,
29918,
4260,
1405,
1014,
5317,
29889,
2103,
29901,
13,
4706,
343,
1643,
29918,
1266,
353,
5124,
13,
1678,
301,
29918,
4260,
353,
7431,
29898,
29891,
1643,
29918,
1563,
718,
921,
1643,
718,
343,
1643,
29918,
1266,
29897,
13,
1678,
565,
301,
29918,
4260,
1405,
1014,
5317,
29889,
2103,
29901,
13,
4706,
343,
1643,
29918,
1563,
353,
5124,
13,
13,
1678,
2913,
29896,
353,
376,
376,
334,
313,
2103,
29918,
1563,
718,
938,
3552,
1491,
5317,
29889,
2103,
29918,
15257,
448,
7431,
29898,
29916,
1643,
876,
847,
29871,
29906,
29897,
448,
301,
29918,
1563,
29897,
13,
1678,
565,
2913,
29896,
1275,
525,
2396,
13,
4706,
736,
13,
1678,
2913,
29896,
353,
376,
376,
334,
1014,
5317,
29889,
2103,
565,
2913,
29896,
1275,
6629,
1683,
2913,
29896,
13,
1678,
2913,
29906,
353,
376,
376,
334,
313,
1491,
5317,
29889,
2103,
448,
301,
29918,
4260,
448,
7431,
29898,
3493,
29896,
876,
13,
1678,
3858,
353,
343,
1643,
29918,
1563,
718,
2913,
29896,
718,
921,
1643,
718,
2913,
29906,
718,
343,
1643,
29918,
1266,
13,
1678,
3858,
353,
1051,
29898,
1643,
29897,
13,
1678,
3858,
353,
5519,
295,
29892,
1014,
5317,
29889,
29873,
7358,
29918,
2780,
29892,
1014,
5317,
29889,
1165,
267,
29918,
2780,
29962,
363,
560,
297,
3858,
29962,
13,
1678,
1014,
5317,
29889,
5344,
4619,
518,
1643,
29962,
13,
1678,
396,
1762,
6132,
29901,
263,
2586,
4473,
29891,
29892,
817,
337,
2098,
292,
13,
13,
1753,
903,
7122,
29918,
2922,
11669,
7295,
13,
1678,
16345,
353,
376,
376,
13,
1678,
16345,
353,
518,
19570,
29892,
376,
9290,
613,
376,
9290,
3108,
13,
1678,
4636,
353,
5159,
13,
1678,
363,
274,
297,
3464,
7373,
1003,
29889,
22724,
1125,
13,
4706,
4636,
29918,
29883,
353,
5159,
13,
4706,
363,
364,
297,
3464,
7373,
1003,
29889,
5727,
1125,
13,
9651,
4636,
29918,
29883,
353,
903,
329,
1793,
29889,
7122,
29898,
5344,
29918,
29883,
29892,
903,
1003,
29889,
1491,
26762,
29961,
29878,
3816,
29883,
1822,
5344,
29892,
16345,
29892,
376,
18575,
1159,
13,
4706,
4636,
353,
903,
329,
1793,
29889,
7122,
29898,
5344,
29892,
4636,
29918,
29883,
29892,
16345,
29892,
376,
22672,
1159,
13,
308,
13,
1678,
903,
1003,
29889,
5344,
353,
4636,
13,
1678,
2159,
353,
518,
29900,
29892,
29871,
29900,
29962,
565,
4636,
1275,
5159,
1683,
518,
2435,
29898,
5344,
29961,
29900,
11724,
7431,
29898,
5344,
4638,
13,
1678,
903,
1003,
29889,
2103,
29892,
903,
1003,
29889,
3545,
353,
2159,
13,
13,
13,
13383,
13383,
7346,
4136,
2277,
13,
7346,
29937,
1678,
18399,
1259,
6680,
29879,
1678,
835,
7346,
13,
13383,
13383,
7346,
4136,
2277,
13,
1753,
14801,
10456,
5085,
29892,
13,
9651,
343,
8990,
353,
376,
1563,
613,
13,
9651,
3858,
353,
12633,
13,
9651,
17456,
353,
6213,
29892,
13,
9651,
2927,
353,
6213,
29892,
13,
9651,
5445,
29916,
353,
6213,
29892,
13,
9651,
977,
368,
353,
6213,
1125,
13,
1678,
903,
4012,
29898,
13,
4706,
334,
5085,
29892,
13,
4706,
343,
8990,
353,
343,
8990,
29892,
13,
4706,
3858,
353,
3858,
29892,
13,
4706,
1298,
29918,
22976,
353,
17456,
29892,
13,
4706,
1196,
29918,
22976,
353,
12633,
13,
4706,
1298,
29918,
2780,
353,
2927,
29892,
13,
4706,
1196,
29918,
2780,
353,
376,
9290,
613,
13,
4706,
5445,
29916,
353,
5445,
29916,
29892,
13,
4706,
977,
368,
353,
977,
368,
29897,
13,
1557,
2620,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
1557,
2620,
29918,
1514,
13,
13,
1753,
6492,
10456,
5085,
29892,
13,
308,
343,
8990,
353,
376,
1563,
613,
13,
308,
3858,
353,
12633,
13,
308,
17456,
353,
6213,
29892,
13,
308,
2927,
353,
6213,
29892,
13,
308,
5445,
29916,
353,
6213,
29892,
13,
308,
977,
368,
353,
6213,
1125,
13,
1678,
903,
4012,
29898,
13,
4706,
334,
5085,
29892,
13,
4706,
343,
8990,
353,
343,
8990,
29892,
13,
4706,
3858,
353,
3858,
29892,
13,
4706,
1298,
29918,
22976,
353,
12633,
13,
4706,
1196,
29918,
22976,
353,
17456,
29892,
13,
4706,
1298,
29918,
2780,
353,
376,
9290,
613,
13,
4706,
1196,
29918,
2780,
353,
2927,
29892,
965,
13,
4706,
5445,
29916,
353,
5445,
29916,
29892,
13,
4706,
977,
368,
353,
977,
368,
29897,
13,
5317,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
5317,
29918,
1514,
13,
13,
1753,
2594,
10456,
5085,
29892,
13,
4706,
343,
8990,
353,
376,
1563,
613,
13,
4706,
3858,
353,
12633,
13,
4706,
17456,
353,
376,
9278,
613,
13,
4706,
2927,
353,
6213,
29892,
13,
4706,
5445,
353,
5852,
29892,
13,
4706,
2920,
353,
29871,
29946,
847,
29871,
29945,
29892,
13,
4706,
19843,
353,
525,
18575,
29374,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
657,
29918,
1272,
10456,
5085,
29897,
13,
1678,
921,
29892,
921,
29918,
21134,
353,
903,
329,
1793,
29889,
1646,
29918,
29916,
1272,
29898,
29916,
29897,
13,
1678,
921,
1646,
29892,
343,
1646,
353,
903,
329,
1793,
29889,
28408,
29898,
29916,
29892,
343,
29892,
2920,
29897,
13,
1678,
565,
19843,
297,
6024,
18575,
742,
525,
29894,
2033,
29901,
13,
308,
5445,
29916,
29892,
977,
368,
353,
5445,
29892,
7700,
13,
308,
921,
29918,
29873,
7358,
353,
903,
1003,
29889,
1491,
5317,
29889,
486,
7358,
718,
921,
13,
308,
921,
29918,
21134,
353,
903,
1003,
29889,
1491,
5317,
29889,
29916,
21134,
718,
921,
29918,
21134,
13,
3986,
486,
7358,
29898,
29916,
29918,
29873,
7358,
29892,
921,
29918,
21134,
29897,
13,
1678,
25342,
19843,
297,
6024,
22672,
742,
525,
29882,
2033,
29901,
13,
308,
921,
1646,
29892,
343,
1646,
353,
343,
1646,
29892,
921,
1646,
13,
308,
5445,
29916,
29892,
977,
368,
353,
7700,
29892,
5445,
13,
308,
343,
29918,
29873,
7358,
353,
921,
718,
9423,
1003,
29889,
1491,
5317,
29889,
3637,
7358,
29918,
1563,
565,
343,
8990,
1275,
376,
1563,
29908,
1683,
903,
1003,
29889,
1491,
5317,
29889,
3637,
7358,
29918,
1266,
29897,
13,
308,
343,
29918,
21134,
353,
921,
29918,
21134,
718,
9423,
1003,
29889,
1491,
5317,
29889,
29891,
21134,
29918,
1563,
565,
343,
8990,
1275,
376,
1563,
29908,
1683,
903,
1003,
29889,
1491,
5317,
29889,
29891,
21134,
29918,
1266,
29897,
13,
308,
343,
29873,
7358,
29898,
29891,
29918,
29873,
7358,
29892,
343,
29918,
21134,
29892,
343,
8990,
353,
343,
8990,
29897,
13,
1678,
363,
289,
297,
3464,
29898,
2435,
29898,
29916,
22164,
13,
4706,
921,
29890,
29892,
343,
29890,
353,
921,
1646,
29961,
29890,
3816,
29896,
29901,
29941,
29962,
718,
921,
1646,
29961,
29890,
3816,
29941,
29901,
29945,
1402,
343,
1646,
29961,
29890,
3816,
29896,
29901,
29941,
29962,
718,
343,
1646,
29961,
29890,
3816,
29941,
29901,
29945,
29962,
13,
4706,
565,
451,
5445,
29901,
13,
9651,
921,
29890,
29892,
343,
29890,
353,
921,
1646,
29961,
29890,
1402,
343,
1646,
29961,
29890,
29962,
13,
9651,
5445,
29916,
29892,
977,
368,
353,
7700,
29892,
7700,
13,
4706,
565,
1051,
29898,
842,
29898,
29891,
29890,
876,
2804,
518,
29900,
5387,
13,
9651,
6492,
29898,
29916,
29890,
29892,
343,
29890,
29892,
343,
8990,
353,
343,
8990,
29892,
3858,
353,
3858,
29892,
17456,
353,
17456,
29892,
2927,
353,
2927,
29892,
5445,
29916,
353,
5445,
29916,
29892,
977,
368,
353,
977,
368,
29897,
13,
9651,
565,
289,
2804,
29871,
29900,
29901,
13,
18884,
903,
1003,
29889,
1491,
5317,
29889,
3149,
29918,
2780,
14352,
29896,
29962,
353,
903,
1003,
29889,
1491,
5317,
29889,
3149,
29918,
2780,
14352,
29906,
29962,
13,
18884,
903,
1003,
29889,
1491,
5317,
29889,
1220,
29918,
2780,
14352,
29896,
29962,
353,
903,
1003,
29889,
1491,
5317,
29889,
1220,
29918,
2780,
14352,
29906,
29962,
13,
18884,
903,
1003,
29889,
1491,
5317,
29889,
1643,
29918,
4294,
14352,
29896,
29962,
353,
7700,
13,
1678,
396,
903,
6605,
29918,
1272,
7373,
1003,
29889,
1491,
5317,
29897,
13,
1678,
396,
343,
29918,
5317,
353,
903,
1003,
29889,
1491,
5317,
29889,
29891,
29918,
1563,
565,
343,
8990,
1275,
376,
1563,
29908,
1683,
903,
1003,
29889,
1491,
5317,
29889,
29891,
29918,
1266,
13,
1678,
396,
565,
19843,
297,
6024,
22672,
742,
525,
29882,
2033,
29901,
13,
1678,
396,
268,
343,
29918,
5317,
353,
903,
1003,
29889,
1491,
5317,
29889,
29916,
29918,
1563,
565,
343,
8990,
1275,
376,
1563,
29908,
1683,
903,
1003,
29889,
1491,
5317,
29889,
29916,
29918,
1266,
13,
1678,
396,
286,
29892,
341,
353,
903,
329,
1793,
29889,
657,
29918,
2576,
29918,
1272,
29898,
29891,
29918,
5317,
29897,
13,
1678,
396,
565,
286,
334,
341,
1405,
29871,
29900,
29901,
13,
1678,
396,
268,
286,
353,
29871,
29900,
13,
1678,
396,
565,
19843,
297,
6024,
18575,
742,
525,
29894,
2033,
29901,
13,
1678,
396,
268,
396,
29891,
2576,
29898,
29885,
29892,
341,
29892,
343,
8990,
353,
343,
8990,
29897,
13,
1678,
396,
268,
1209,
13,
1678,
396,
1683,
29901,
13,
1678,
396,
268,
921,
2576,
29898,
29885,
29892,
341,
29897,
13,
13,
1646,
17255,
1514,
1649,
353,
29871,
903,
1514,
19651,
29889,
1646,
29918,
1514,
13,
13,
1753,
9825,
29898,
1272,
29892,
13,
308,
289,
1144,
353,
29871,
29896,
29900,
29892,
13,
308,
343,
8990,
353,
376,
1563,
613,
13,
308,
3858,
353,
12633,
13,
308,
17456,
353,
376,
9278,
613,
13,
308,
2927,
353,
6213,
29892,
13,
308,
5445,
353,
5852,
29892,
13,
308,
2920,
353,
29871,
29946,
847,
29871,
29945,
29892,
13,
308,
19843,
353,
525,
18575,
29374,
13,
1678,
921,
29892,
343,
353,
903,
329,
1793,
29889,
29882,
391,
29918,
1272,
29898,
1272,
29892,
289,
1144,
29897,
13,
1678,
2594,
29898,
29916,
29892,
343,
29892,
343,
8990,
353,
343,
8990,
29892,
3858,
353,
3858,
29892,
17456,
353,
17456,
29892,
2927,
353,
2927,
29892,
5445,
353,
5445,
29892,
2920,
353,
2920,
29892,
19843,
29922,
19843,
29897,
13,
29882,
391,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
5317,
29918,
1514,
13,
13,
13383,
13383,
7346,
4136,
2277,
13,
7346,
2277,
1678,
5901,
6680,
29879,
1678,
835,
7346,
2277,
13,
13383,
13383,
7346,
4136,
2277,
13,
1807,
29918,
517,
29918,
2230,
353,
903,
329,
1793,
29889,
1807,
29918,
517,
29918,
2230,
13,
1807,
29918,
517,
29918,
2230,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
1807,
29918,
517,
29918,
2230,
29918,
1514,
13,
13,
1753,
679,
29918,
15257,
7295,
13,
1678,
736,
903,
1003,
29889,
15257,
13,
657,
29918,
15257,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
657,
29918,
15257,
29918,
1514,
13,
13,
17059,
353,
903,
329,
1793,
29889,
17059,
13,
17059,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
17059,
29918,
1514,
13,
13,
1753,
4078,
1003,
29898,
2084,
353,
6213,
1125,
13,
1678,
2224,
353,
903,
329,
1793,
29889,
3198,
29918,
2084,
29898,
2084,
29897,
13,
1678,
411,
1722,
29898,
2084,
1919,
376,
29893,
29974,
613,
8025,
353,
376,
9420,
29899,
29947,
1159,
408,
934,
29901,
13,
4706,
934,
29889,
3539,
7373,
329,
1793,
29889,
5992,
29918,
2780,
7373,
1003,
29889,
15257,
876,
13,
1678,
1596,
703,
5317,
7160,
408,
376,
718,
2224,
29897,
13,
7620,
1003,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
7620,
1003,
29918,
1514,
13,
7620,
29918,
1003,
353,
4078,
1003,
13,
13,
8489,
979,
29918,
2311,
353,
903,
329,
1793,
29889,
8489,
979,
29918,
2311,
13,
8489,
979,
29918,
2311,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
8489,
979,
29918,
2311,
29918,
1514,
13,
13,
3259,
353,
903,
329,
1793,
29889,
3259,
13,
3259,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
3259,
29918,
1514,
13,
13,
1514,
19651,
353,
903,
329,
1793,
29889,
1514,
19651,
13,
1514,
19651,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
1514,
19651,
29918,
1514,
13,
13,
27703,
353,
903,
329,
1793,
29889,
27703,
13,
27703,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
27703,
29918,
1514,
13,
13,
3502,
414,
353,
903,
329,
1793,
29889,
3502,
414,
13,
3502,
414,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
3502,
414,
29918,
1514,
13,
13,
5223,
353,
903,
329,
1793,
29889,
5223,
13,
5223,
17255,
1514,
1649,
353,
903,
1514,
19651,
29889,
5223,
29918,
1514,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
396,
1688,
580,
13,
1678,
1053,
715,
866,
486,
408,
14770,
13,
1678,
14770,
29889,
1688,
580,
13,
13,
13,
13,
2
] |
apps/users/migrations/0017_auto_20200807_1727.py | lucasjaroszewski/incremental-game | 0 | 175008 | <reponame>lucasjaroszewski/incremental-game
# Generated by Django 3.0.6 on 2020-08-07 20:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0016_auto_20200807_1719'),
]
operations = [
migrations.RenameField(
model_name='fish',
old_name='man_eating_swamp',
new_name='man_eating_marsh',
),
migrations.RenameField(
model_name='fish',
old_name='rinde_port',
new_name='rinde',
),
]
| [
1,
529,
276,
1112,
420,
29958,
29880,
1682,
294,
4758,
13165,
809,
2574,
29914,
25629,
284,
29899,
11802,
13,
29937,
3251,
630,
491,
15337,
29871,
29941,
29889,
29900,
29889,
29953,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29947,
29899,
29900,
29955,
29871,
29906,
29900,
29901,
29906,
29955,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
13,
13,
13,
1990,
341,
16783,
29898,
26983,
800,
29889,
29924,
16783,
1125,
13,
13,
1678,
9962,
353,
518,
13,
4706,
6702,
7193,
742,
525,
29900,
29900,
29896,
29953,
29918,
6921,
29918,
29906,
29900,
29906,
29900,
29900,
29947,
29900,
29955,
29918,
29896,
29955,
29896,
29929,
5477,
13,
1678,
4514,
13,
13,
1678,
6931,
353,
518,
13,
4706,
9725,
800,
29889,
29934,
3871,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
15161,
742,
13,
9651,
2030,
29918,
978,
2433,
1171,
29918,
29872,
1218,
29918,
2774,
1160,
742,
13,
9651,
716,
29918,
978,
2433,
1171,
29918,
29872,
1218,
29918,
3034,
845,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
29934,
3871,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
15161,
742,
13,
9651,
2030,
29918,
978,
2433,
17056,
311,
29918,
637,
742,
13,
9651,
716,
29918,
978,
2433,
17056,
311,
742,
13,
4706,
10353,
13,
1678,
4514,
13,
2
] |
utils/functions.py | Roozbeh-Bazargani/CPSC-533R-project | 0 | 6382 | <filename>utils/functions.py
import torch
from torch import nn
import math
#0 left hip
#1 left knee
#2 left foot
#3 right hip
#4 right knee
#5 right foot
#6 middle hip
#7 neck
#8 nose
#9 head
#10 left shoulder
#11 left elbow
#12 left wrist
#13 right shoulder
#14 right elbow
#15 right wrist
def random_rotation(J3d):
J = J3d # need copy????
batch_size = J.shape[0]
theta = torch.rand(batch_size).cuda() * 2*torch.tensor(math.pi).cuda() # random theta
root = J[:,:,8] # joint 8 = nose is root
J3d_R = rotation(J.cuda(), theta.cuda(), root.unsqueeze(-1).cuda(), False)
return J3d_R, theta, root # need these values in the code
def rotation(J, theta, root, is_reversed): # rotation over y axis by theta
D = root[:,2].cuda() # absolute depth of the root joint
batch_size = root.shape[0]
v_t = torch.zeros((batch_size, 3, 1)).cuda()
v_t[:, 2, :] = D.cuda() # translation vector
if is_reversed:
root, v_t = v_t, root # swap
theta = -theta
# R = torch.tensor([[torch.cos(theta), -torch.sin(theta), 0], [torch.sin(theta), torch.cos(theta), 0], [0, 0, 1]]) # rotation matrix over z by theta degrees
R = torch.zeros((batch_size, 3, 3)).cuda() # rotation matrix over y by theta degrees
R[:, 0, 0] = torch.cos(theta)
R[:, 0, 2] = torch.sin(theta)
R[:, 1, 1] = torch.ones(batch_size)
R[:, 2, 0] = -torch.sin(theta)
R[:, 2, 2] = torch.cos(theta)
# R = torch.tensor([[torch.cos(theta), 0, torch.sin(theta)], [0, 1, 0], [-torch.sin(theta), 0, torch.cos(theta)]]) # rotation matrix over y by theta degrees
# R = torch.tensor([[1, 0, 0], [0, torch.cos(theta), -torch.sin(theta)], [0, torch.sin(theta), torch.cos(theta)]]) # rotation matrix over x by theta degrees
J_R = torch.matmul(R, J - root) + v_t # rotation
return J_R
def reverse_rotation(J3d_R, theta, root):
J = J3d_R # need copy????
return rotation(J.cuda(), theta.cuda(), root.unsqueeze(-1).cuda(), True)
def temporal_loss(J, K, J_R, K_R): # J is J3d at time t and K is J3d at time t+k. J_R means the reversed rotation of J
#print(torch.norm(J.reshape(J.shape[0], 3, 16) - K.reshape(J.shape[0], 3, 16) - J_R.reshape(J.shape[0], 3, 16) + K_R.reshape(J.shape[0], 3, 16), dim=1).shape)
#stop
mse_fn = nn.MSELoss()
return mse_fn(J.reshape(J.shape[0], 3, 16) - K.reshape(J.shape[0], 3, 16) - J_R.reshape(J.shape[0], 3, 16) + K_R.reshape(J.shape[0], 3, 16), torch.zeros(J.shape[0], 3, 16).cuda())
#return torch.norm(J.reshape(J.shape[0], 3, 16) - K.reshape(J.shape[0], 3, 16) - J_R.reshape(J.shape[0], 3, 16) + K_R.reshape(J.shape[0], 3, 16), dim=1)**2
'''
def temporal_loss(J, K, J_R, K_R): # J is J3d at time t and K is J3d at time t+k. J_R means the reversed rotation of J
return torch.norm(J - K - J_R + K_R, dim=1)**2
'''
'''
def random_rotation(J3d):
# J = torch.transpose(J3d, 1, 2)
J = J3d
root = torch.zeros(J.shape[0:2])
for i in range(J.shape[0]):
theta = torch.rand(1).cuda() * 2*torch.tensor(math.pi).cuda() # random theta
root[i] = J[i,:,8] # joint 8 = nose is root
temp = rotation(J[i,:,:], theta, root[i].unsqueeze(1), False)
# print(temp.shape)
J[i,:,:] = temp
return J, theta, root # need these values in the code
def rotation(J, theta, root, is_reversed): # rotation over y axis by theta
D = root[2] # absolute depth of the root joint
v_t = torch.tensor([[0], [0], [D]]).cuda() # translation vector
if is_reversed:
root, v_t = v_t, root # swap
theta = -theta
# R = torch.tensor([[torch.cos(theta), -torch.sin(theta), 0], [torch.sin(theta), torch.cos(theta), 0], [0, 0, 1]]) # rotation matrix over z by theta degrees
R = torch.tensor([[torch.cos(theta), 0, torch.sin(theta)], [0, 1, 0], [-torch.sin(theta), 0, torch.cos(theta)]]).cuda() # rotation matrix over y by theta degrees
# R = torch.tensor([[1, 0, 0], [0, torch.cos(theta), -torch.sin(theta)], [0, torch.sin(theta), torch.cos(theta)]]) # rotation matrix over x by theta degrees
J_R = torch.matmul(R, J.cuda() - root.cuda()) + v_t # rotation
return J_R
def reverse_rotation(J3d_R, theta, root):
# J = torch.transpose(J3d_R, 1, 2)
J = J3d_R
for i in range(J.shape[0]):
J[i,:,:] = rotation(J[i,:,:].cuda(), theta.cuda(), root[i].unsqueeze(1).cuda(), True)
return J
''' | [
1,
529,
9507,
29958,
13239,
29914,
12171,
29889,
2272,
13,
5215,
4842,
305,
13,
3166,
4842,
305,
1053,
302,
29876,
13,
5215,
5844,
13,
13,
29937,
29900,
2175,
21464,
13,
29937,
29896,
2175,
17905,
29872,
13,
29937,
29906,
2175,
3661,
13,
29937,
29941,
1492,
21464,
13,
29937,
29946,
1492,
17905,
29872,
13,
29937,
29945,
1492,
3661,
13,
29937,
29953,
7256,
21464,
13,
29937,
29955,
18873,
13,
29937,
29947,
26414,
13,
29937,
29929,
2343,
13,
29937,
29896,
29900,
2175,
23468,
13,
29937,
29896,
29896,
2175,
560,
17729,
13,
29937,
29896,
29906,
2175,
281,
2021,
13,
29937,
29896,
29941,
1492,
23468,
13,
29937,
29896,
29946,
1492,
560,
17729,
13,
29937,
29896,
29945,
1492,
281,
2021,
13,
13,
1753,
4036,
29918,
5450,
362,
29898,
29967,
29941,
29881,
1125,
13,
29871,
435,
353,
435,
29941,
29881,
396,
817,
3509,
8773,
8773,
13,
29871,
9853,
29918,
2311,
353,
435,
29889,
12181,
29961,
29900,
29962,
13,
29871,
278,
941,
353,
4842,
305,
29889,
9502,
29898,
16175,
29918,
2311,
467,
29883,
6191,
580,
334,
29871,
29906,
29930,
7345,
305,
29889,
20158,
29898,
755,
29889,
1631,
467,
29883,
6191,
580,
396,
4036,
278,
941,
13,
29871,
3876,
353,
435,
7503,
29892,
29901,
29892,
29947,
29962,
396,
14002,
29871,
29947,
353,
26414,
338,
3876,
13,
29871,
435,
29941,
29881,
29918,
29934,
353,
13733,
29898,
29967,
29889,
29883,
6191,
3285,
278,
941,
29889,
29883,
6191,
3285,
3876,
29889,
6948,
802,
29872,
911,
6278,
29896,
467,
29883,
6191,
3285,
7700,
29897,
13,
29871,
736,
435,
29941,
29881,
29918,
29934,
29892,
278,
941,
29892,
3876,
396,
817,
1438,
1819,
297,
278,
775,
13,
13,
1753,
13733,
29898,
29967,
29892,
278,
941,
29892,
3876,
29892,
338,
29918,
276,
874,
287,
1125,
396,
13733,
975,
343,
9685,
491,
278,
941,
13,
29871,
360,
353,
29871,
3876,
7503,
29892,
29906,
1822,
29883,
6191,
580,
396,
8380,
10809,
310,
278,
3876,
14002,
13,
29871,
9853,
29918,
2311,
353,
3876,
29889,
12181,
29961,
29900,
29962,
13,
29871,
325,
29918,
29873,
353,
4842,
305,
29889,
3298,
359,
3552,
16175,
29918,
2311,
29892,
29871,
29941,
29892,
29871,
29896,
8106,
29883,
6191,
580,
13,
29871,
325,
29918,
29873,
7503,
29892,
29871,
29906,
29892,
584,
29962,
353,
360,
29889,
29883,
6191,
580,
396,
13962,
4608,
13,
29871,
565,
338,
29918,
276,
874,
287,
29901,
13,
1678,
3876,
29892,
325,
29918,
29873,
353,
325,
29918,
29873,
29892,
3876,
396,
17945,
13,
1678,
278,
941,
353,
448,
3416,
13,
29871,
396,
390,
353,
4842,
305,
29889,
20158,
4197,
29961,
7345,
305,
29889,
3944,
29898,
3416,
511,
448,
7345,
305,
29889,
5223,
29898,
3416,
511,
29871,
29900,
1402,
518,
7345,
305,
29889,
5223,
29898,
3416,
511,
4842,
305,
29889,
3944,
29898,
3416,
511,
29871,
29900,
1402,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
24960,
396,
13733,
4636,
975,
503,
491,
278,
941,
14496,
13,
29871,
390,
353,
4842,
305,
29889,
3298,
359,
3552,
16175,
29918,
2311,
29892,
29871,
29941,
29892,
29871,
29941,
8106,
29883,
6191,
580,
396,
13733,
4636,
975,
343,
491,
278,
941,
14496,
13,
29871,
390,
7503,
29892,
29871,
29900,
29892,
29871,
29900,
29962,
353,
4842,
305,
29889,
3944,
29898,
3416,
29897,
13,
29871,
390,
7503,
29892,
29871,
29900,
29892,
29871,
29906,
29962,
353,
4842,
305,
29889,
5223,
29898,
3416,
29897,
13,
29871,
390,
7503,
29892,
29871,
29896,
29892,
29871,
29896,
29962,
353,
4842,
305,
29889,
2873,
29898,
16175,
29918,
2311,
29897,
13,
29871,
390,
7503,
29892,
29871,
29906,
29892,
29871,
29900,
29962,
353,
448,
7345,
305,
29889,
5223,
29898,
3416,
29897,
13,
29871,
390,
7503,
29892,
29871,
29906,
29892,
29871,
29906,
29962,
353,
4842,
305,
29889,
3944,
29898,
3416,
29897,
13,
29871,
396,
390,
353,
4842,
305,
29889,
20158,
4197,
29961,
7345,
305,
29889,
3944,
29898,
3416,
511,
29871,
29900,
29892,
4842,
305,
29889,
5223,
29898,
3416,
29897,
1402,
518,
29900,
29892,
29871,
29896,
29892,
29871,
29900,
1402,
21069,
7345,
305,
29889,
5223,
29898,
3416,
511,
29871,
29900,
29892,
4842,
305,
29889,
3944,
29898,
3416,
4638,
2314,
396,
13733,
4636,
975,
343,
491,
278,
941,
14496,
13,
29871,
396,
390,
353,
4842,
305,
29889,
20158,
4197,
29961,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
518,
29900,
29892,
4842,
305,
29889,
3944,
29898,
3416,
511,
448,
7345,
305,
29889,
5223,
29898,
3416,
29897,
1402,
518,
29900,
29892,
4842,
305,
29889,
5223,
29898,
3416,
511,
4842,
305,
29889,
3944,
29898,
3416,
4638,
2314,
396,
13733,
4636,
975,
921,
491,
278,
941,
14496,
13,
259,
13,
29871,
435,
29918,
29934,
353,
4842,
305,
29889,
2922,
16109,
29898,
29934,
29892,
435,
448,
3876,
29897,
718,
325,
29918,
29873,
396,
13733,
13,
29871,
736,
435,
29918,
29934,
13,
13,
1753,
11837,
29918,
5450,
362,
29898,
29967,
29941,
29881,
29918,
29934,
29892,
278,
941,
29892,
3876,
1125,
13,
29871,
435,
353,
435,
29941,
29881,
29918,
29934,
396,
817,
3509,
8773,
8773,
13,
29871,
736,
13733,
29898,
29967,
29889,
29883,
6191,
3285,
278,
941,
29889,
29883,
6191,
3285,
3876,
29889,
6948,
802,
29872,
911,
6278,
29896,
467,
29883,
6191,
3285,
5852,
29897,
13,
13,
1753,
25406,
29918,
6758,
29898,
29967,
29892,
476,
29892,
435,
29918,
29934,
29892,
476,
29918,
29934,
1125,
396,
435,
338,
435,
29941,
29881,
472,
931,
260,
322,
476,
338,
435,
29941,
29881,
472,
931,
260,
29974,
29895,
29889,
435,
29918,
29934,
2794,
278,
18764,
287,
13733,
310,
435,
13,
259,
13,
29871,
396,
2158,
29898,
7345,
305,
29889,
12324,
29898,
29967,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
29897,
448,
476,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
29897,
448,
435,
29918,
29934,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
29897,
718,
476,
29918,
29934,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
511,
3964,
29922,
29896,
467,
12181,
29897,
13,
29871,
396,
9847,
13,
29871,
286,
344,
29918,
9144,
353,
302,
29876,
29889,
29924,
1660,
29931,
2209,
580,
13,
29871,
736,
286,
344,
29918,
9144,
29898,
29967,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
29897,
448,
476,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
29897,
448,
435,
29918,
29934,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
29897,
718,
476,
29918,
29934,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
511,
4842,
305,
29889,
3298,
359,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
467,
29883,
6191,
3101,
13,
29871,
396,
2457,
4842,
305,
29889,
12324,
29898,
29967,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
29897,
448,
476,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
29897,
448,
435,
29918,
29934,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
29897,
718,
476,
29918,
29934,
29889,
690,
14443,
29898,
29967,
29889,
12181,
29961,
29900,
1402,
29871,
29941,
29892,
29871,
29896,
29953,
511,
3964,
29922,
29896,
29897,
1068,
29906,
13,
12008,
13,
1753,
25406,
29918,
6758,
29898,
29967,
29892,
476,
29892,
435,
29918,
29934,
29892,
476,
29918,
29934,
1125,
396,
435,
338,
435,
29941,
29881,
472,
931,
260,
322,
476,
338,
435,
29941,
29881,
472,
931,
260,
29974,
29895,
29889,
435,
29918,
29934,
2794,
278,
18764,
287,
13733,
310,
435,
13,
29871,
736,
4842,
305,
29889,
12324,
29898,
29967,
448,
476,
448,
435,
29918,
29934,
718,
476,
29918,
29934,
29892,
3964,
29922,
29896,
29897,
1068,
29906,
13,
12008,
13,
13,
12008,
13,
1753,
4036,
29918,
5450,
362,
29898,
29967,
29941,
29881,
1125,
13,
29871,
396,
435,
353,
4842,
305,
29889,
3286,
4220,
29898,
29967,
29941,
29881,
29892,
29871,
29896,
29892,
29871,
29906,
29897,
13,
29871,
435,
353,
435,
29941,
29881,
13,
29871,
3876,
353,
4842,
305,
29889,
3298,
359,
29898,
29967,
29889,
12181,
29961,
29900,
29901,
29906,
2314,
13,
29871,
363,
474,
297,
3464,
29898,
29967,
29889,
12181,
29961,
29900,
29962,
1125,
13,
1678,
278,
941,
353,
4842,
305,
29889,
9502,
29898,
29896,
467,
29883,
6191,
580,
334,
29871,
29906,
29930,
7345,
305,
29889,
20158,
29898,
755,
29889,
1631,
467,
29883,
6191,
580,
396,
4036,
278,
941,
13,
1678,
3876,
29961,
29875,
29962,
353,
435,
29961,
29875,
29892,
29901,
29892,
29947,
29962,
396,
14002,
29871,
29947,
353,
26414,
338,
3876,
13,
1678,
5694,
353,
13733,
29898,
29967,
29961,
29875,
29892,
29901,
29892,
29901,
1402,
278,
941,
29892,
3876,
29961,
29875,
1822,
6948,
802,
29872,
911,
29898,
29896,
511,
7700,
29897,
13,
1678,
396,
1596,
29898,
7382,
29889,
12181,
29897,
13,
1678,
435,
29961,
29875,
29892,
29901,
29892,
17531,
353,
5694,
13,
29871,
736,
435,
29892,
278,
941,
29892,
3876,
396,
817,
1438,
1819,
297,
278,
775,
13,
13,
1753,
13733,
29898,
29967,
29892,
278,
941,
29892,
3876,
29892,
338,
29918,
276,
874,
287,
1125,
396,
13733,
975,
343,
9685,
491,
278,
941,
13,
29871,
360,
353,
29871,
3876,
29961,
29906,
29962,
396,
8380,
10809,
310,
278,
3876,
14002,
13,
29871,
325,
29918,
29873,
353,
4842,
305,
29889,
20158,
4197,
29961,
29900,
1402,
518,
29900,
1402,
518,
29928,
5262,
467,
29883,
6191,
580,
396,
13962,
4608,
13,
29871,
565,
338,
29918,
276,
874,
287,
29901,
13,
1678,
3876,
29892,
325,
29918,
29873,
353,
325,
29918,
29873,
29892,
3876,
396,
17945,
13,
1678,
278,
941,
353,
448,
3416,
13,
29871,
396,
390,
353,
4842,
305,
29889,
20158,
4197,
29961,
7345,
305,
29889,
3944,
29898,
3416,
511,
448,
7345,
305,
29889,
5223,
29898,
3416,
511,
29871,
29900,
1402,
518,
7345,
305,
29889,
5223,
29898,
3416,
511,
4842,
305,
29889,
3944,
29898,
3416,
511,
29871,
29900,
1402,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
24960,
396,
13733,
4636,
975,
503,
491,
278,
941,
14496,
13,
29871,
390,
353,
4842,
305,
29889,
20158,
4197,
29961,
7345,
305,
29889,
3944,
29898,
3416,
511,
29871,
29900,
29892,
4842,
305,
29889,
5223,
29898,
3416,
29897,
1402,
518,
29900,
29892,
29871,
29896,
29892,
29871,
29900,
1402,
21069,
7345,
305,
29889,
5223,
29898,
3416,
511,
29871,
29900,
29892,
4842,
305,
29889,
3944,
29898,
3416,
4638,
14664,
29883,
6191,
580,
396,
13733,
4636,
975,
343,
491,
278,
941,
14496,
13,
29871,
396,
390,
353,
4842,
305,
29889,
20158,
4197,
29961,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
518,
29900,
29892,
4842,
305,
29889,
3944,
29898,
3416,
511,
448,
7345,
305,
29889,
5223,
29898,
3416,
29897,
1402,
518,
29900,
29892,
4842,
305,
29889,
5223,
29898,
3416,
511,
4842,
305,
29889,
3944,
29898,
3416,
4638,
2314,
396,
13733,
4636,
975,
921,
491,
278,
941,
14496,
13,
259,
13,
29871,
435,
29918,
29934,
353,
4842,
305,
29889,
2922,
16109,
29898,
29934,
29892,
435,
29889,
29883,
6191,
580,
448,
3876,
29889,
29883,
6191,
3101,
718,
325,
29918,
29873,
396,
13733,
13,
29871,
736,
435,
29918,
29934,
13,
13,
1753,
11837,
29918,
5450,
362,
29898,
29967,
29941,
29881,
29918,
29934,
29892,
278,
941,
29892,
3876,
1125,
13,
29871,
396,
435,
353,
4842,
305,
29889,
3286,
4220,
29898,
29967,
29941,
29881,
29918,
29934,
29892,
29871,
29896,
29892,
29871,
29906,
29897,
13,
29871,
435,
353,
435,
29941,
29881,
29918,
29934,
13,
29871,
363,
474,
297,
3464,
29898,
29967,
29889,
12181,
29961,
29900,
29962,
1125,
13,
1678,
435,
29961,
29875,
29892,
29901,
29892,
17531,
353,
13733,
29898,
29967,
29961,
29875,
29892,
29901,
29892,
29901,
1822,
29883,
6191,
3285,
278,
941,
29889,
29883,
6191,
3285,
3876,
29961,
29875,
1822,
6948,
802,
29872,
911,
29898,
29896,
467,
29883,
6191,
3285,
5852,
29897,
13,
29871,
736,
435,
13,
12008,
2
] |
main.py | mrinalghosh/dijkstra-heap-compare | 0 | 170453 | <reponame>mrinalghosh/dijkstra-heap-compare
import sys
sys.path.append(".")
import time
import networkx as nx
import matplotlib.pyplot as plt
import csv
from hwcounter import count, count_end
from statistics import mean
from test_graphs.graph_generator import *
from heaps.fibonacci import FibHeap
from heaps.violation import ViolationHeap
from heaps.quake import QuakeHeap
from heaps.minheap import MinHeap
# from heaps.rankpairing import RankPairingHeap
HEAPS = ["Quake", "Fibonacci", "Violation", "MinHeap"]
# HEAPS = ["Quake", "Fibonacci", "Violation", "MinHeap", "RankPairing"]
def get_heap(heap_choice):
"""Get specified heap instance."""
if heap_choice == "Fibonacci":
heap = FibHeap()
elif heap_choice == "Violation":
heap = ViolationHeap()
elif heap_choice == "MinHeap":
heap = MinHeap()
elif heap_choice == "Quake":
heap = QuakeHeap()
# elif heap_choice == "RankPairing":
# heap = RankPairingHeap()
else:
raise NameError(f"{heap_choice} does not exist")
return heap
def dijkstra_path_heaps(G, source, target, heap):
"""Dijkstra's Algorithm Implementation"""
G.nodes[source]["key"] = 0
for n in G.nodes:
G.nodes[n]["node"] = heap.insert(G.nodes[n], n)
while heap:
n = heap.extract_min()
for edge in G.edges(n.name):
u, v = edge
dist = G.nodes[u]["key"] + G[u][v]["weight"]
if G.nodes[v]["key"] > dist:
G.nodes[v]["key"] = dist
G.nodes[v]["pred"] = u
heap.decrease_key(G.nodes[v]["node"], dist)
path = []
path.append(target)
pred = G.nodes[target]["pred"]
while pred is not None:
path.append(pred)
pred = G.nodes[pred]["pred"]
path.reverse()
return path
def visualize_graph(G, path, heap_choice, show=True, labels=True, layout_type="spring"):
"""Visualize a Networkx graph object."""
layout = getattr(nx, f"{layout_type}_layout")(G)
nx.draw(G, with_labels=labels, pos=layout)
path_edges = zip(path, path[1:])
edge_labels = nx.get_edge_attributes(G, "weight")
nx.draw_networkx_edge_labels(G, pos=layout, edge_labels=edge_labels)
nx.draw_networkx_nodes(G, layout, nodelist=path, node_color="r")
nx.draw_networkx_edges(
G, layout, edgelist=list(path_edges), edge_color="r", width=3
)
plt.title(heap_choice)
plt.savefig(f"{heap_choice}.png")
if show:
plt.show()
def sanity_check(heap_choice="Fibonacci", show=False):
"""Quick sanity check for dijkstra implementation"""
G = nx.Graph()
G.add_node("a")
G.add_node("b")
G.add_node("c")
G.add_node("d")
G.add_node("e")
G.add_node("z")
nx.set_node_attributes(G, float("inf"), "key")
nx.set_node_attributes(G, None, "pred")
nx.set_node_attributes(G, None, "node")
G.add_edge("a", "b", weight=4)
G.add_edge("a", "c", weight=2)
G.add_edge("b", "c", weight=1)
G.add_edge("b", "d", weight=5)
G.add_edge("c", "d", weight=8)
G.add_edge("c", "e", weight=10)
G.add_edge("d", "e", weight=2)
G.add_edge("d", "z", weight=6)
G.add_edge("e", "z", weight=5)
heap = get_heap(heap_choice)
path = dijkstra_path_heaps(G=G, source="a", target="z", heap=heap)
if not path:
raise Exception(f"{heap_choice} did not find a path!!")
if show:
visualize_graph(G, path, heap_choice)
def smoke_tests(show=False):
"""Run sanity check for each heap."""
for heap in HEAPS:
try:
sanity_check(heap, show)
except:
print(f"{heap} heap failed running the sanity check!")
def dijkstra_time(G, source, target, heap):
"""Compute Dijkstra's shortest path time."""
repeat = 3
runs = 10
times = []
cycles = []
# Add Graph attrs
nx.set_node_attributes(G, float("inf"), "key")
nx.set_node_attributes(G, None, "pred")
nx.set_node_attributes(G, None, "node")
dijkstra_results = {}
# Run Dijkstra's
for _ in range(repeat):
t0 = time.time()
c0 = count()
for _ in range(runs):
dijkstra_results[G] = dijkstra_path_heaps(G, source, target, heap)
c1 = count_end()
t1 = time.time()
times.append(t1 - t0)
cycles.append(c1 - c0)
# Get the results and pass them back
results = {
"runs": runs,
"repeat": repeat,
"avg_time": mean(times),
"avg_cycles": round(mean(cycles)),
"algo_res": dijkstra_results,
}
return results
def get_search_nodes(G):
"""Get the source and target by getting the most distanced node pair."""
source = None
target = None
max_len = -1
length = dict(nx.all_pairs_dijkstra_path_length(G))
# Search through to see which pair has greatest distance
for node_a in length:
for node_b in length[node_a]:
if length[node_a][node_b] > max_len:
max_len = length[node_a][node_b]
source = node_a
target = node_b
return source, target
def performance_test():
"""Benchmarking Dijkstra with all heaps and graphs."""
# Get the graphs
test_graphs = get_graphs_from_file()
results = {}
for heap_name in HEAPS:
print(f"Running: {heap_name}")
run_list = []
graph_count = 0
for G in test_graphs:
run_info = {}
source, target = get_search_nodes(G)
# Run Dijktra
run_info["time_info"] = dijkstra_time(
G, source, target, get_heap(heap_name)
)
# Record graph info
run_info["graph_info"] = {
"graph_obj": G,
"graph_num": graph_count,
"num_nodes": G.number_of_nodes(),
"num_edges": G.number_of_edges(),
}
print(
"graph: {}, num_nodes: {}, num_edges: {}, avg_time: {}, avg_cycles: {}, path_found = {}".format(
graph_count,
run_info["graph_info"]["num_nodes"],
run_info["graph_info"]["num_edges"],
run_info["time_info"]["avg_time"],
run_info["time_info"]["avg_cycles"],
run_info["time_info"]["algo_res"][G],
)
)
# Add the run info into list
run_list.append(run_info)
graph_count += 1
print(f"Done running for each graph: {heap_name}")
# Add the results
results[heap_name] = run_list
return results
def report(results):
fields = ["num_nodes", "num_edges", "avg_time", "avg_cycles"]
rows = []
paths = []
for heap in results:
rows.append([heap])
rows.append(fields)
heap_data = results[heap]
paths.append([heap])
for run in heap_data:
graph_info = run["graph_info"]
num_nodes = graph_info["num_nodes"]
num_edges = graph_info["num_edges"]
avg_time = run["time_info"]["avg_time"]
avg_cycles = run["time_info"]["avg_cycles"]
rows.append([num_nodes, num_edges, avg_time, avg_cycles])
path = run["time_info"]["algo_res"].values()
for item in path:
paths.append(item)
rows.append([])
paths.append([])
with open("report.csv", "w") as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)
with open("paths.csv", "w") as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(paths)
if __name__ == "__main__":
# Run a sanity check on single heap
# sanity_check("Fibonacci", show=True)
# Run sanity checks for all heaps
# smoke_tests(show=False)
# Run performance tests
results = performance_test()
print("Finished!")
# Record results into a csv and plot it
report(results)
| [
1,
529,
276,
1112,
420,
29958,
29885,
29878,
979,
12443,
10578,
29914,
29881,
13535,
4151,
29899,
354,
481,
29899,
18307,
13,
5215,
10876,
13,
13,
9675,
29889,
2084,
29889,
4397,
17350,
1159,
13,
5215,
931,
13,
5215,
3564,
29916,
408,
302,
29916,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
11799,
13,
3166,
298,
29893,
11808,
1053,
2302,
29892,
2302,
29918,
355,
13,
13,
3166,
13964,
1053,
2099,
13,
3166,
1243,
29918,
4262,
29879,
29889,
4262,
29918,
27959,
1053,
334,
13,
3166,
540,
2547,
29889,
29888,
747,
265,
21566,
1053,
383,
747,
3868,
481,
13,
3166,
540,
2547,
29889,
1403,
22671,
1053,
10630,
22671,
3868,
481,
13,
3166,
540,
2547,
29889,
339,
1296,
1053,
751,
1296,
3868,
481,
13,
3166,
540,
2547,
29889,
1195,
354,
481,
1053,
3080,
3868,
481,
13,
13,
29937,
515,
540,
2547,
29889,
10003,
18784,
292,
1053,
22125,
20547,
292,
3868,
481,
13,
13,
13,
9606,
3301,
29903,
353,
6796,
2182,
1296,
613,
376,
29943,
747,
265,
21566,
613,
376,
29963,
29875,
22671,
613,
376,
8140,
3868,
481,
3108,
13,
29937,
17714,
3301,
29903,
353,
6796,
2182,
1296,
613,
376,
29943,
747,
265,
21566,
613,
376,
29963,
29875,
22671,
613,
376,
8140,
3868,
481,
613,
376,
29934,
804,
20547,
292,
3108,
13,
13,
13,
1753,
679,
29918,
354,
481,
29898,
354,
481,
29918,
16957,
1125,
13,
1678,
9995,
2577,
6790,
16947,
2777,
1213,
15945,
13,
1678,
565,
16947,
29918,
16957,
1275,
376,
29943,
747,
265,
21566,
1115,
13,
4706,
16947,
353,
383,
747,
3868,
481,
580,
13,
1678,
25342,
16947,
29918,
16957,
1275,
376,
29963,
29875,
22671,
1115,
13,
4706,
16947,
353,
10630,
22671,
3868,
481,
580,
13,
1678,
25342,
16947,
29918,
16957,
1275,
376,
8140,
3868,
481,
1115,
13,
4706,
16947,
353,
3080,
3868,
481,
580,
13,
1678,
25342,
16947,
29918,
16957,
1275,
376,
2182,
1296,
1115,
13,
4706,
16947,
353,
751,
1296,
3868,
481,
580,
13,
1678,
396,
25342,
16947,
29918,
16957,
1275,
376,
29934,
804,
20547,
292,
1115,
13,
1678,
396,
268,
16947,
353,
22125,
20547,
292,
3868,
481,
580,
13,
1678,
1683,
29901,
13,
4706,
12020,
4408,
2392,
29898,
29888,
29908,
29912,
354,
481,
29918,
16957,
29913,
947,
451,
1863,
1159,
13,
13,
1678,
736,
16947,
13,
13,
13,
1753,
652,
25467,
4151,
29918,
2084,
29918,
354,
2547,
29898,
29954,
29892,
2752,
29892,
3646,
29892,
16947,
1125,
13,
1678,
9995,
29928,
13535,
4151,
29915,
29879,
29068,
1954,
14607,
15945,
29908,
13,
1678,
402,
29889,
18010,
29961,
4993,
29962,
3366,
1989,
3108,
353,
29871,
29900,
13,
13,
1678,
363,
302,
297,
402,
29889,
18010,
29901,
13,
4706,
402,
29889,
18010,
29961,
29876,
29962,
3366,
3177,
3108,
353,
16947,
29889,
7851,
29898,
29954,
29889,
18010,
29961,
29876,
1402,
302,
29897,
13,
13,
1678,
1550,
16947,
29901,
13,
4706,
302,
353,
16947,
29889,
21111,
29918,
1195,
580,
13,
4706,
363,
7636,
297,
402,
29889,
287,
2710,
29898,
29876,
29889,
978,
1125,
13,
9651,
318,
29892,
325,
353,
7636,
13,
9651,
1320,
353,
402,
29889,
18010,
29961,
29884,
29962,
3366,
1989,
3108,
718,
402,
29961,
29884,
3816,
29894,
29962,
3366,
7915,
3108,
13,
9651,
565,
402,
29889,
18010,
29961,
29894,
29962,
3366,
1989,
3108,
1405,
1320,
29901,
13,
18884,
402,
29889,
18010,
29961,
29894,
29962,
3366,
1989,
3108,
353,
1320,
13,
18884,
402,
29889,
18010,
29961,
29894,
29962,
3366,
11965,
3108,
353,
318,
13,
18884,
16947,
29889,
311,
1037,
559,
29918,
1989,
29898,
29954,
29889,
18010,
29961,
29894,
29962,
3366,
3177,
12436,
1320,
29897,
13,
13,
1678,
2224,
353,
5159,
13,
1678,
2224,
29889,
4397,
29898,
5182,
29897,
13,
1678,
4450,
353,
402,
29889,
18010,
29961,
5182,
29962,
3366,
11965,
3108,
13,
1678,
1550,
4450,
338,
451,
6213,
29901,
13,
4706,
2224,
29889,
4397,
29898,
11965,
29897,
13,
4706,
4450,
353,
402,
29889,
18010,
29961,
11965,
29962,
3366,
11965,
3108,
13,
1678,
2224,
29889,
24244,
580,
13,
1678,
736,
2224,
13,
13,
13,
1753,
7604,
675,
29918,
4262,
29898,
29954,
29892,
2224,
29892,
16947,
29918,
16957,
29892,
1510,
29922,
5574,
29892,
11073,
29922,
5574,
29892,
5912,
29918,
1853,
543,
4278,
29908,
1125,
13,
1678,
9995,
16227,
675,
263,
8527,
29916,
3983,
1203,
1213,
15945,
13,
1678,
5912,
353,
679,
5552,
29898,
23818,
29892,
285,
29908,
29912,
2680,
29918,
1853,
2403,
2680,
1159,
29898,
29954,
29897,
13,
1678,
302,
29916,
29889,
4012,
29898,
29954,
29892,
411,
29918,
21134,
29922,
21134,
29892,
926,
29922,
2680,
29897,
13,
13,
1678,
2224,
29918,
287,
2710,
353,
14319,
29898,
2084,
29892,
2224,
29961,
29896,
29901,
2314,
13,
1678,
7636,
29918,
21134,
353,
302,
29916,
29889,
657,
29918,
12864,
29918,
15697,
29898,
29954,
29892,
376,
7915,
1159,
13,
13,
1678,
302,
29916,
29889,
4012,
29918,
11618,
29916,
29918,
12864,
29918,
21134,
29898,
29954,
29892,
926,
29922,
2680,
29892,
7636,
29918,
21134,
29922,
12864,
29918,
21134,
29897,
13,
1678,
302,
29916,
29889,
4012,
29918,
11618,
29916,
29918,
18010,
29898,
29954,
29892,
5912,
29892,
18778,
295,
391,
29922,
2084,
29892,
2943,
29918,
2780,
543,
29878,
1159,
13,
1678,
302,
29916,
29889,
4012,
29918,
11618,
29916,
29918,
287,
2710,
29898,
13,
4706,
402,
29892,
5912,
29892,
1226,
7467,
391,
29922,
1761,
29898,
2084,
29918,
287,
2710,
511,
7636,
29918,
2780,
543,
29878,
613,
2920,
29922,
29941,
13,
1678,
1723,
13,
13,
1678,
14770,
29889,
3257,
29898,
354,
481,
29918,
16957,
29897,
13,
1678,
14770,
29889,
7620,
1003,
29898,
29888,
29908,
29912,
354,
481,
29918,
16957,
1836,
2732,
1159,
13,
1678,
565,
1510,
29901,
13,
4706,
14770,
29889,
4294,
580,
13,
13,
13,
1753,
9753,
537,
29918,
3198,
29898,
354,
481,
29918,
16957,
543,
29943,
747,
265,
21566,
613,
1510,
29922,
8824,
1125,
13,
1678,
9995,
2182,
860,
9753,
537,
1423,
363,
652,
25467,
4151,
5314,
15945,
29908,
13,
1678,
402,
353,
302,
29916,
29889,
9527,
580,
13,
13,
1678,
402,
29889,
1202,
29918,
3177,
703,
29874,
1159,
13,
1678,
402,
29889,
1202,
29918,
3177,
703,
29890,
1159,
13,
1678,
402,
29889,
1202,
29918,
3177,
703,
29883,
1159,
13,
1678,
402,
29889,
1202,
29918,
3177,
703,
29881,
1159,
13,
1678,
402,
29889,
1202,
29918,
3177,
703,
29872,
1159,
13,
1678,
402,
29889,
1202,
29918,
3177,
703,
29920,
1159,
13,
13,
1678,
302,
29916,
29889,
842,
29918,
3177,
29918,
15697,
29898,
29954,
29892,
5785,
703,
7192,
4968,
376,
1989,
1159,
13,
1678,
302,
29916,
29889,
842,
29918,
3177,
29918,
15697,
29898,
29954,
29892,
6213,
29892,
376,
11965,
1159,
13,
1678,
302,
29916,
29889,
842,
29918,
3177,
29918,
15697,
29898,
29954,
29892,
6213,
29892,
376,
3177,
1159,
13,
13,
1678,
402,
29889,
1202,
29918,
12864,
703,
29874,
613,
376,
29890,
613,
7688,
29922,
29946,
29897,
13,
1678,
402,
29889,
1202,
29918,
12864,
703,
29874,
613,
376,
29883,
613,
7688,
29922,
29906,
29897,
13,
1678,
402,
29889,
1202,
29918,
12864,
703,
29890,
613,
376,
29883,
613,
7688,
29922,
29896,
29897,
13,
1678,
402,
29889,
1202,
29918,
12864,
703,
29890,
613,
376,
29881,
613,
7688,
29922,
29945,
29897,
13,
1678,
402,
29889,
1202,
29918,
12864,
703,
29883,
613,
376,
29881,
613,
7688,
29922,
29947,
29897,
13,
1678,
402,
29889,
1202,
29918,
12864,
703,
29883,
613,
376,
29872,
613,
7688,
29922,
29896,
29900,
29897,
13,
1678,
402,
29889,
1202,
29918,
12864,
703,
29881,
613,
376,
29872,
613,
7688,
29922,
29906,
29897,
13,
1678,
402,
29889,
1202,
29918,
12864,
703,
29881,
613,
376,
29920,
613,
7688,
29922,
29953,
29897,
13,
1678,
402,
29889,
1202,
29918,
12864,
703,
29872,
613,
376,
29920,
613,
7688,
29922,
29945,
29897,
13,
13,
1678,
16947,
353,
679,
29918,
354,
481,
29898,
354,
481,
29918,
16957,
29897,
13,
1678,
2224,
353,
652,
25467,
4151,
29918,
2084,
29918,
354,
2547,
29898,
29954,
29922,
29954,
29892,
2752,
543,
29874,
613,
3646,
543,
29920,
613,
16947,
29922,
354,
481,
29897,
13,
1678,
565,
451,
2224,
29901,
13,
4706,
12020,
8960,
29898,
29888,
29908,
29912,
354,
481,
29918,
16957,
29913,
1258,
451,
1284,
263,
2224,
6824,
1159,
13,
13,
1678,
565,
1510,
29901,
13,
4706,
7604,
675,
29918,
4262,
29898,
29954,
29892,
2224,
29892,
16947,
29918,
16957,
29897,
13,
13,
13,
1753,
25158,
29918,
21150,
29898,
4294,
29922,
8824,
1125,
13,
1678,
9995,
6558,
9753,
537,
1423,
363,
1269,
16947,
1213,
15945,
13,
1678,
363,
16947,
297,
17714,
3301,
29903,
29901,
13,
4706,
1018,
29901,
13,
9651,
9753,
537,
29918,
3198,
29898,
354,
481,
29892,
1510,
29897,
13,
4706,
5174,
29901,
13,
9651,
1596,
29898,
29888,
29908,
29912,
354,
481,
29913,
16947,
5229,
2734,
278,
9753,
537,
1423,
29991,
1159,
13,
13,
13,
1753,
652,
25467,
4151,
29918,
2230,
29898,
29954,
29892,
2752,
29892,
3646,
29892,
16947,
1125,
13,
1678,
9995,
20606,
29872,
360,
13535,
4151,
29915,
29879,
3273,
342,
2224,
931,
1213,
15945,
13,
1678,
12312,
353,
29871,
29941,
13,
1678,
6057,
353,
29871,
29896,
29900,
13,
1678,
3064,
353,
5159,
13,
1678,
25785,
353,
5159,
13,
13,
1678,
396,
3462,
12367,
12421,
29879,
13,
1678,
302,
29916,
29889,
842,
29918,
3177,
29918,
15697,
29898,
29954,
29892,
5785,
703,
7192,
4968,
376,
1989,
1159,
13,
1678,
302,
29916,
29889,
842,
29918,
3177,
29918,
15697,
29898,
29954,
29892,
6213,
29892,
376,
11965,
1159,
13,
1678,
302,
29916,
29889,
842,
29918,
3177,
29918,
15697,
29898,
29954,
29892,
6213,
29892,
376,
3177,
1159,
13,
13,
1678,
652,
25467,
4151,
29918,
9902,
353,
6571,
13,
1678,
396,
7525,
360,
13535,
4151,
29915,
29879,
13,
1678,
363,
903,
297,
3464,
29898,
14358,
1125,
13,
4706,
260,
29900,
353,
931,
29889,
2230,
580,
13,
4706,
274,
29900,
353,
2302,
580,
13,
4706,
363,
903,
297,
3464,
29898,
3389,
29879,
1125,
13,
9651,
652,
25467,
4151,
29918,
9902,
29961,
29954,
29962,
353,
652,
25467,
4151,
29918,
2084,
29918,
354,
2547,
29898,
29954,
29892,
2752,
29892,
3646,
29892,
16947,
29897,
13,
4706,
274,
29896,
353,
2302,
29918,
355,
580,
13,
4706,
260,
29896,
353,
931,
29889,
2230,
580,
13,
4706,
3064,
29889,
4397,
29898,
29873,
29896,
448,
260,
29900,
29897,
13,
4706,
25785,
29889,
4397,
29898,
29883,
29896,
448,
274,
29900,
29897,
13,
13,
1678,
396,
3617,
278,
2582,
322,
1209,
963,
1250,
13,
1678,
2582,
353,
426,
13,
4706,
376,
3389,
29879,
1115,
6057,
29892,
13,
4706,
376,
14358,
1115,
12312,
29892,
13,
4706,
376,
485,
29887,
29918,
2230,
1115,
2099,
29898,
3706,
511,
13,
4706,
376,
485,
29887,
29918,
1270,
7799,
1115,
4513,
29898,
12676,
29898,
1270,
7799,
8243,
13,
4706,
376,
284,
1484,
29918,
690,
1115,
652,
25467,
4151,
29918,
9902,
29892,
13,
1678,
500,
13,
13,
1678,
736,
2582,
13,
13,
13,
1753,
679,
29918,
4478,
29918,
18010,
29898,
29954,
1125,
13,
1678,
9995,
2577,
278,
2752,
322,
3646,
491,
2805,
278,
1556,
1320,
8362,
2943,
5101,
1213,
15945,
13,
1678,
2752,
353,
6213,
13,
1678,
3646,
353,
6213,
13,
13,
1678,
4236,
29918,
2435,
353,
448,
29896,
13,
1678,
3309,
353,
9657,
29898,
23818,
29889,
497,
29918,
29886,
7121,
29918,
29881,
13535,
4151,
29918,
2084,
29918,
2848,
29898,
29954,
876,
13,
13,
1678,
396,
11856,
1549,
304,
1074,
607,
5101,
756,
14176,
5418,
13,
1678,
363,
2943,
29918,
29874,
297,
3309,
29901,
13,
4706,
363,
2943,
29918,
29890,
297,
3309,
29961,
3177,
29918,
29874,
5387,
13,
9651,
565,
3309,
29961,
3177,
29918,
29874,
3816,
3177,
29918,
29890,
29962,
1405,
4236,
29918,
2435,
29901,
13,
18884,
4236,
29918,
2435,
353,
3309,
29961,
3177,
29918,
29874,
3816,
3177,
29918,
29890,
29962,
13,
18884,
2752,
353,
2943,
29918,
29874,
13,
18884,
3646,
353,
2943,
29918,
29890,
13,
13,
1678,
736,
2752,
29892,
3646,
13,
13,
13,
1753,
4180,
29918,
1688,
7295,
13,
1678,
9995,
20841,
16580,
292,
360,
13535,
4151,
411,
599,
540,
2547,
322,
18445,
1213,
15945,
13,
13,
1678,
396,
3617,
278,
18445,
13,
1678,
1243,
29918,
4262,
29879,
353,
679,
29918,
4262,
29879,
29918,
3166,
29918,
1445,
580,
13,
13,
1678,
2582,
353,
6571,
13,
1678,
363,
16947,
29918,
978,
297,
17714,
3301,
29903,
29901,
13,
4706,
1596,
29898,
29888,
29908,
27795,
29901,
426,
354,
481,
29918,
978,
27195,
13,
4706,
1065,
29918,
1761,
353,
5159,
13,
4706,
3983,
29918,
2798,
353,
29871,
29900,
13,
4706,
363,
402,
297,
1243,
29918,
4262,
29879,
29901,
13,
9651,
1065,
29918,
3888,
353,
6571,
13,
9651,
2752,
29892,
3646,
353,
679,
29918,
4478,
29918,
18010,
29898,
29954,
29897,
13,
13,
9651,
396,
7525,
360,
823,
1193,
336,
13,
9651,
1065,
29918,
3888,
3366,
2230,
29918,
3888,
3108,
353,
652,
25467,
4151,
29918,
2230,
29898,
13,
18884,
402,
29892,
2752,
29892,
3646,
29892,
679,
29918,
354,
481,
29898,
354,
481,
29918,
978,
29897,
13,
9651,
1723,
13,
13,
9651,
396,
14164,
3983,
5235,
13,
9651,
1065,
29918,
3888,
3366,
4262,
29918,
3888,
3108,
353,
426,
13,
18884,
376,
4262,
29918,
5415,
1115,
402,
29892,
13,
18884,
376,
4262,
29918,
1949,
1115,
3983,
29918,
2798,
29892,
13,
18884,
376,
1949,
29918,
18010,
1115,
402,
29889,
4537,
29918,
974,
29918,
18010,
3285,
13,
18884,
376,
1949,
29918,
287,
2710,
1115,
402,
29889,
4537,
29918,
974,
29918,
287,
2710,
3285,
13,
9651,
500,
13,
13,
9651,
1596,
29898,
13,
18884,
376,
4262,
29901,
24335,
954,
29918,
18010,
29901,
24335,
954,
29918,
287,
2710,
29901,
24335,
1029,
29887,
29918,
2230,
29901,
24335,
1029,
29887,
29918,
1270,
7799,
29901,
24335,
2224,
29918,
11940,
353,
6571,
1642,
4830,
29898,
13,
462,
1678,
3983,
29918,
2798,
29892,
13,
462,
1678,
1065,
29918,
3888,
3366,
4262,
29918,
3888,
3108,
3366,
1949,
29918,
18010,
12436,
13,
462,
1678,
1065,
29918,
3888,
3366,
4262,
29918,
3888,
3108,
3366,
1949,
29918,
287,
2710,
12436,
13,
462,
1678,
1065,
29918,
3888,
3366,
2230,
29918,
3888,
3108,
3366,
485,
29887,
29918,
2230,
12436,
13,
462,
1678,
1065,
29918,
3888,
3366,
2230,
29918,
3888,
3108,
3366,
485,
29887,
29918,
1270,
7799,
12436,
13,
462,
1678,
1065,
29918,
3888,
3366,
2230,
29918,
3888,
3108,
3366,
284,
1484,
29918,
690,
3108,
29961,
29954,
1402,
13,
18884,
1723,
13,
9651,
1723,
13,
13,
9651,
396,
3462,
278,
1065,
5235,
964,
1051,
13,
9651,
1065,
29918,
1761,
29889,
4397,
29898,
3389,
29918,
3888,
29897,
13,
9651,
3983,
29918,
2798,
4619,
29871,
29896,
13,
13,
4706,
1596,
29898,
29888,
29908,
25632,
2734,
363,
1269,
3983,
29901,
426,
354,
481,
29918,
978,
27195,
13,
4706,
396,
3462,
278,
2582,
13,
4706,
2582,
29961,
354,
481,
29918,
978,
29962,
353,
1065,
29918,
1761,
13,
13,
1678,
736,
2582,
13,
13,
13,
1753,
3461,
29898,
9902,
1125,
13,
1678,
4235,
353,
6796,
1949,
29918,
18010,
613,
376,
1949,
29918,
287,
2710,
613,
376,
485,
29887,
29918,
2230,
613,
376,
485,
29887,
29918,
1270,
7799,
3108,
13,
1678,
4206,
353,
5159,
13,
1678,
10898,
353,
5159,
13,
1678,
363,
16947,
297,
2582,
29901,
13,
4706,
4206,
29889,
4397,
4197,
354,
481,
2314,
13,
4706,
4206,
29889,
4397,
29898,
9621,
29897,
13,
4706,
16947,
29918,
1272,
353,
2582,
29961,
354,
481,
29962,
13,
13,
4706,
10898,
29889,
4397,
4197,
354,
481,
2314,
13,
4706,
363,
1065,
297,
16947,
29918,
1272,
29901,
13,
9651,
3983,
29918,
3888,
353,
1065,
3366,
4262,
29918,
3888,
3108,
13,
9651,
954,
29918,
18010,
353,
3983,
29918,
3888,
3366,
1949,
29918,
18010,
3108,
13,
9651,
954,
29918,
287,
2710,
353,
3983,
29918,
3888,
3366,
1949,
29918,
287,
2710,
3108,
13,
9651,
1029,
29887,
29918,
2230,
353,
1065,
3366,
2230,
29918,
3888,
3108,
3366,
485,
29887,
29918,
2230,
3108,
13,
9651,
1029,
29887,
29918,
1270,
7799,
353,
1065,
3366,
2230,
29918,
3888,
3108,
3366,
485,
29887,
29918,
1270,
7799,
3108,
13,
9651,
4206,
29889,
4397,
4197,
1949,
29918,
18010,
29892,
954,
29918,
287,
2710,
29892,
1029,
29887,
29918,
2230,
29892,
1029,
29887,
29918,
1270,
7799,
2314,
13,
9651,
2224,
353,
1065,
3366,
2230,
29918,
3888,
3108,
3366,
284,
1484,
29918,
690,
16862,
5975,
580,
13,
9651,
363,
2944,
297,
2224,
29901,
13,
18884,
10898,
29889,
4397,
29898,
667,
29897,
13,
13,
4706,
4206,
29889,
4397,
4197,
2314,
13,
4706,
10898,
29889,
4397,
4197,
2314,
13,
13,
1678,
411,
1722,
703,
12276,
29889,
7638,
613,
376,
29893,
1159,
408,
11799,
1445,
29901,
13,
4706,
11799,
13236,
353,
11799,
29889,
13236,
29898,
7638,
1445,
29897,
13,
4706,
11799,
13236,
29889,
13236,
1242,
29898,
5727,
29897,
13,
13,
1678,
411,
1722,
703,
24772,
29889,
7638,
613,
376,
29893,
1159,
408,
11799,
1445,
29901,
13,
4706,
11799,
13236,
353,
11799,
29889,
13236,
29898,
7638,
1445,
29897,
13,
4706,
11799,
13236,
29889,
13236,
1242,
29898,
24772,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
13,
1678,
396,
7525,
263,
9753,
537,
1423,
373,
2323,
16947,
13,
1678,
396,
9753,
537,
29918,
3198,
703,
29943,
747,
265,
21566,
613,
1510,
29922,
5574,
29897,
13,
1678,
396,
7525,
9753,
537,
12747,
363,
599,
540,
2547,
13,
1678,
396,
25158,
29918,
21150,
29898,
4294,
29922,
8824,
29897,
13,
13,
1678,
396,
7525,
4180,
6987,
13,
1678,
2582,
353,
4180,
29918,
1688,
580,
13,
1678,
1596,
703,
12881,
3276,
29991,
1159,
13,
13,
1678,
396,
14164,
2582,
964,
263,
11799,
322,
6492,
372,
13,
1678,
3461,
29898,
9902,
29897,
13,
2
] |
tests/endpoints/v1/test_accounts.py | jamesonl/sdk-py | 1 | 133402 | <reponame>jamesonl/sdk-py
import unittest
from predicthq.endpoints.v1.accounts.schemas import Account
from tests import with_mock_client, with_mock_responses, with_client
class AccountsTest(unittest.TestCase):
@with_mock_client()
def test_self_params(self, client):
client.accounts.self()
client.request.assert_called_once_with('get', '/v1/accounts/self/')
@with_client()
@with_mock_responses()
def test_self(self, client, responses):
account = client.accounts.self()
assert isinstance(account, Account)
| [
1,
529,
276,
1112,
420,
29958,
29926,
1280,
265,
29880,
29914,
15348,
29899,
2272,
13,
5215,
443,
27958,
13,
13,
3166,
4450,
293,
386,
29939,
29889,
355,
9748,
29889,
29894,
29896,
29889,
10149,
29879,
29889,
11993,
1053,
16535,
13,
3166,
6987,
1053,
411,
29918,
17640,
29918,
4645,
29892,
411,
29918,
17640,
29918,
26679,
267,
29892,
411,
29918,
4645,
13,
13,
13,
1990,
16535,
29879,
3057,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
13,
1678,
732,
2541,
29918,
17640,
29918,
4645,
580,
13,
1678,
822,
1243,
29918,
1311,
29918,
7529,
29898,
1311,
29892,
3132,
1125,
13,
4706,
3132,
29889,
10149,
29879,
29889,
1311,
580,
13,
4706,
3132,
29889,
3827,
29889,
9294,
29918,
13998,
29918,
10646,
29918,
2541,
877,
657,
742,
8207,
29894,
29896,
29914,
10149,
29879,
29914,
1311,
29914,
1495,
13,
13,
1678,
732,
2541,
29918,
4645,
580,
13,
1678,
732,
2541,
29918,
17640,
29918,
26679,
267,
580,
13,
1678,
822,
1243,
29918,
1311,
29898,
1311,
29892,
3132,
29892,
20890,
1125,
13,
4706,
3633,
353,
3132,
29889,
10149,
29879,
29889,
1311,
580,
13,
4706,
4974,
338,
8758,
29898,
10149,
29892,
16535,
29897,
13,
2
] |
omicron/dal/__init__.py | evimacs/omicron | 4 | 61180 | from omicron.dal.cache import cache
from omicron.dal.postgres import db, init
__all__ = ["init", "db", "cache"]
| [
1,
515,
2703,
293,
1617,
29889,
12293,
29889,
8173,
1053,
7090,
13,
3166,
2703,
293,
1617,
29889,
12293,
29889,
2490,
7201,
1053,
4833,
29892,
2069,
13,
13,
1649,
497,
1649,
353,
6796,
2344,
613,
376,
2585,
613,
376,
8173,
3108,
13,
2
] |
tests/dgds_functions_test.py | openearth/hydro-engine-service | 4 | 11796 | import logging
import pytest
from . import auth
from hydroengine_service import dgds_functions
logger = logging.getLogger(__name__)
class TestDGDSFunctions:
@pytest.mark.parametrize('source, start_date, end_date, limit',
[
('projects/dgds-gee/bathymetry/gebco/2019', None, None, 10),
('projects/dgds-gee/glossis/currents', None, None, None),
('projects/dgds-gee/glossis/waterlevel', '2020-11-01', '2020-12-01', None),
('projects/dgds-gee/glossis/wind', '2020-11-01', '2020-11-10', 10),
('projects/dgds-gee/glossis/waveheight', None, None, None),
('projects/dgds-gee/gloffis/weather', None, None, 5),
('projects/dgds-gee/gloffis/hydro', None, None, 5),
('projects/dgds-gee/metocean/waves/percentiles', None, None, 5),
('projects/dgds-gee/chasm/waves', None, None, None),
('projects/dgds-gee/chasm/wind', None, None, None),
('projects/dgds-gee/crucial/evaporation_deficit', None, None, None),
('projects/dgds-gee/crucial/groundwater_declining_trend', None, None, None),
('projects/dgds-gee/msfd/chlorophyll', None, None, None)
])
def test_get_image_collection_info(self, source, start_date, end_date, limit):
image_date_list = dgds_functions.get_image_collection_info(source, start_date, end_date, limit)
assert len(image_date_list) >= 1
assert "imageId" in image_date_list[0]
assert "date" in image_date_list[0]
| [
1,
1053,
12183,
13,
5215,
11451,
1688,
13,
13,
3166,
869,
1053,
4817,
13,
13,
3166,
17546,
10599,
29918,
5509,
1053,
270,
29887,
6289,
29918,
12171,
13,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
1990,
4321,
29928,
29954,
8452,
6678,
29879,
29901,
13,
13,
1678,
732,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
4993,
29892,
1369,
29918,
1256,
29892,
1095,
29918,
1256,
29892,
4046,
742,
13,
462,
632,
518,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
29890,
493,
962,
27184,
29914,
4310,
1111,
29914,
29906,
29900,
29896,
29929,
742,
6213,
29892,
6213,
29892,
29871,
29896,
29900,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
3820,
2209,
275,
29914,
21962,
1237,
742,
6213,
29892,
6213,
29892,
6213,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
3820,
2209,
275,
29914,
13405,
5563,
742,
525,
29906,
29900,
29906,
29900,
29899,
29896,
29896,
29899,
29900,
29896,
742,
525,
29906,
29900,
29906,
29900,
29899,
29896,
29906,
29899,
29900,
29896,
742,
6213,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
3820,
2209,
275,
29914,
14800,
742,
525,
29906,
29900,
29906,
29900,
29899,
29896,
29896,
29899,
29900,
29896,
742,
525,
29906,
29900,
29906,
29900,
29899,
29896,
29896,
29899,
29896,
29900,
742,
29871,
29896,
29900,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
3820,
2209,
275,
29914,
27766,
3545,
742,
6213,
29892,
6213,
29892,
6213,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
29887,
417,
600,
275,
29914,
705,
1624,
742,
6213,
29892,
6213,
29892,
29871,
29945,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
29887,
417,
600,
275,
29914,
29882,
11279,
742,
6213,
29892,
6213,
29892,
29871,
29945,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
2527,
29877,
11956,
29914,
29893,
5989,
29914,
25376,
5475,
742,
6213,
29892,
6213,
29892,
29871,
29945,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
305,
11625,
29914,
29893,
5989,
742,
6213,
29892,
6213,
29892,
6213,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
305,
11625,
29914,
14800,
742,
6213,
29892,
6213,
29892,
6213,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
29883,
582,
1455,
29914,
5750,
481,
12418,
29918,
1753,
293,
277,
742,
6213,
29892,
6213,
29892,
6213,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
29883,
582,
1455,
29914,
2057,
13405,
29918,
27787,
2827,
29918,
509,
355,
742,
6213,
29892,
6213,
29892,
6213,
511,
13,
462,
462,
6702,
16418,
29914,
20726,
6289,
29899,
479,
29872,
29914,
1516,
11512,
29914,
305,
5095,
3021,
15114,
742,
6213,
29892,
6213,
29892,
6213,
29897,
13,
462,
795,
2314,
13,
1678,
822,
1243,
29918,
657,
29918,
3027,
29918,
10855,
29918,
3888,
29898,
1311,
29892,
2752,
29892,
1369,
29918,
1256,
29892,
1095,
29918,
1256,
29892,
4046,
1125,
13,
4706,
1967,
29918,
1256,
29918,
1761,
353,
270,
29887,
6289,
29918,
12171,
29889,
657,
29918,
3027,
29918,
10855,
29918,
3888,
29898,
4993,
29892,
1369,
29918,
1256,
29892,
1095,
29918,
1256,
29892,
4046,
29897,
13,
13,
4706,
4974,
7431,
29898,
3027,
29918,
1256,
29918,
1761,
29897,
6736,
29871,
29896,
13,
13,
4706,
4974,
376,
3027,
1204,
29908,
297,
1967,
29918,
1256,
29918,
1761,
29961,
29900,
29962,
13,
13,
4706,
4974,
376,
1256,
29908,
297,
1967,
29918,
1256,
29918,
1761,
29961,
29900,
29962,
13,
2
] |
openGaussBase/testcase/AI/AI_INDEXADV/Opengauss_Function_Ai_Indexadv_Case0015.py | opengauss-mirror/Yat | 0 | 110585 | <filename>openGaussBase/testcase/AI/AI_INDEXADV/Opengauss_Function_Ai_Indexadv_Case0015.py
"""
Copyright (c) 2022 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
"""
"""
Case Type : 智能运维ai_indexadv模块
Case Name : 结合不同的sql语句进行查询索引推荐
Description :
1.建表1
2.建表2
3.建存储过程1
4.建存储过程2
5.向表1中插入100000条数据,向表2中插入数据并统计数据的数量
6.结合union进行查询索引推荐
7.结合insert语句进行查询索引推荐
8.结合updata语句进行查询索引推荐
9.结合create语句进行查询索引推荐
10.结合视图进行查询索引推荐
11.结合子查询进行查询索引推荐
12.结合空条件进行查询索引推荐
13.结合多条创建索引语句进行查询索引推荐
14.清理环境
Expect :
1.建表1成功
2.建表2成功
3.建存储过程1成功
4.建存储过程2成功
5.向表1中插入100000条数据,向表2中插入数据成功,返回表1,表2数据的数量
6.返回推荐的索引列
7.报错提示无法为查询提供建议,因为找不到查询语句
8.报错提示无法为查询提供建议,因为找不到查询语句
9.报错提示无法为查询提供建议,因为找不到查询语句
10.报错提示无法为查询提供建议,因为无法识别涉及的表
11.返回推荐的索引列
12.报错提示必须输入查询条件
13.报错提示无法为多个查询提供建议
14.清理环境成功
History :
研发代码变更,优化用例适配代码
"""
import unittest
from yat.test import Node
from testcase.utils.Constant import Constant
from testcase.utils.CommonSH import CommonSH
from testcase.utils.Logger import Logger
class SQL(unittest.TestCase):
def setUp(self):
self.logger = Logger()
self.dbuserNode = Node('PrimaryDbUser')
self.primary_sh = CommonSH('PrimaryDbUser')
self.Con = Constant()
self.table1 = 't_table_ai_indexadv_0015'
self.table2 = 't_table_ai_indexadv1_0015'
self.table3 = 't_table_ai_indexadv_test_0015'
self.procedure1 = 'p_procedure_insert_0015'
self.procedure2 = 'p_procedure_insert1_0015'
self.view = 'v_view_ai_index_0015'
self.index_advise = 'gs_index_advise'
def test_ai_virtual_index(self):
self.logger.info('Opengauss_Function_Ai_Indexadv_Case0015 start')
step = 'step1:建表1 expect:建表1成功'
self.logger.info(step)
create_table1 = self.primary_sh.execut_db_sql(f'''
drop table if exists {self.table1};
create table {self.table1}(col_int int,col_numeric numeric,
col_float float,col_char char(10),col_text text,col_time time
);''')
self.logger.info(create_table1)
self.assertIn(self.Con.TABLE_CREATE_SUCCESS, create_table1,
"建表1失败" + step)
step = 'step2:建表2 expect:建表2成功'
self.logger.info(step)
create_table2 = self.primary_sh.execut_db_sql(f'''
drop table if exists {self.table2};
create table {self.table2}(col_int int,col_dec dec,
col_money money,col_boolean boolean,col_char char(10),
col_clob clob);''')
self.logger.info(create_table2)
self.assertIn(self.Con.TABLE_CREATE_SUCCESS, create_table2,
"建表2失败" + step)
step = 'step3:建存储过程1 expect:建存储过程1成功'
self.logger.info(step)
create_procedure1 = self.primary_sh.execut_db_sql(f'''
create or replace procedure {self.procedure1}(a int) is
V_int int;
V_numeric numeric;
V_float float;
V_char char(10);
V_text text;
V_time time;
begin
for i in 1..a
loop
V_int :=i;
V_numeric :=i+1.11;
V_float :=i*5.55;
V_char :='x_'|| i;
V_text :='V_text_'|| i;
V_time :='19:41:20';
execute immediate 'insert into {self.table1} values
(:p1,:p2,:p3,:p4,:p5,:p6)
'using V_int,V_numeric,V_float,V_char,V_text,V_time;
end loop;
end;''')
self.logger.info(create_procedure1)
self.assertIn(self.Con.CREATE_PROCEDURE_SUCCESS_MSG,
create_procedure1, "建存储过程1失败" + step)
step = 'step4:建存储过程2 expect:建存储过程2成功'
self.logger.info(step)
create_procedure2 = self.primary_sh.execut_db_sql(f'''
create or replace procedure {self.procedure2}() is
V_int int;
V_dec dec;
V_money money;
V_boolean boolean;
V_char char(10);
V_clob clob;
begin
for i in 2000..100000
loop
V_int :=i;
V_dec :=i*8.88;
V_money :=i*2;
V_boolean :='t';
V_char :=i ||'_x';
V_clob :='V_clob_'|| i;
execute immediate 'insert into {self.table2} values
(:p1,:p2,:p3,:p4,:p5,:p6)
'using V_int,V_dec,V_money,V_boolean,V_char,V_clob;
end loop;
end;''')
self.logger.info(create_procedure2)
self.assertIn(self.Con.CREATE_PROCEDURE_SUCCESS_MSG,
create_procedure2, "建存储过程2失败" + step)
step = 'step5:向表1中插入100000条数据,向表2中插入数据并统计数据的数量' \
'expect:向表1中插入100000条数据,向表2中插入数据成功,返回' \
'表1,表2数据的数量'
self.logger.info(step)
insert_data = self.primary_sh.execut_db_sql(f'''
call {self.procedure1}(100000);
select count(*) from {self.table1} ;
call {self.procedure2}();
select count(*) from {self.table2} ;''')
self.logger.info(insert_data)
text = '向表1中插入100000条数据,向表2中插入数据并统计数据的数量失败'
self.assertIn('p_procedure_insert_0015', insert_data,
text + step)
self.assertIn('p_procedure_insert1_0015', insert_data,
text + step)
self.assertIn('100000', insert_data, text + step)
self.assertIn('98001', insert_data, text + step)
step = 'step6:结合union进行查询索引推荐 expect:返回推荐的索引列'
self.logger.info(step)
index_advise = self.primary_sh.execut_db_sql(f'''
select * from {self.index_advise}('select col_int,col_char from
{self.table1} union select col_int,col_char from {self.table2}
limit 20;');''')
self.logger.info(index_advise)
str1 = 'public | t_table_ai_indexadv_0015 |'
str2 = 'public | t_table_ai_indexadv1_0015 |'
self.assertIn(str1, index_advise, "执行失败" + step)
self.assertIn(str2, index_advise, "执行失败" + step)
step = 'step7:结合insert语句进行查询索引推荐' \
'expect:报错提示无法为查询提供建议,因为找不到查询语句'
self.logger.info(step)
index_advise = self.primary_sh.execut_db_sql(f'''
select * from {self.index_advise}('insert into {self.table2}
(col_int) values(8)');''')
self.logger.info(index_advise)
str1 = 'ERROR: can not advise for the query'
str2 = 'because not found a select statement.'
self.assertIn(str1, index_advise, "执行失败" + step)
self.assertIn(str2, index_advise, "执行失败" + step)
step = 'step8:结合update语句进行查询索引推荐' \
'expect:报错提示无法为查询提供建议,因为找不到查询语句'
self.logger.info(step)
index_advise = self.primary_sh.execut_db_sql(f'''
select * from {self.index_advise}('update {self.table2}
set col_money =''$8,000.00'' where col_int=2000;');''')
self.logger.info(index_advise)
str1 = 'ERROR: can not advise for the query'
str2 = 'because not found a select statement.'
self.assertIn(str1, index_advise, "执行失败" + step)
self.assertIn(str2, index_advise, "执行失败" + step)
step = 'step9:结合create语句进行查询索引推荐' \
'expect:报错提示无法为查询提供建议,因为找不到查询语句'
self.logger.info(step)
index_advise = self.primary_sh.execut_db_sql(f'''
select * from {self.index_advise}('create global temp table
{self.table3}(id int, val numeric) on commit preserve rows;');''')
self.logger.info(index_advise)
str1 = 'ERROR: can not advise for the query'
str2 = 'because not found a select statement.'
self.assertIn(str1, index_advise, "执行失败" + step)
self.assertIn(str2, index_advise, "执行失败" + step)
step = 'step10:结合视图进行查询索引推荐' \
'expect:报错提示无法为查询提供建议,因为无法识别涉及的表'
self.logger.info(step)
index_advise = self.primary_sh.execut_db_sql(f'''
create view {self.view} as select * from {self.table1}
where {self.table1}.col_int<1000;
select * from {self.index_advise}('select * from {self.view};');
''')
self.logger.info(index_advise)
str1 = 'ERROR: can not advise for the query'
str2 = 'because can not recognize involved tables.'
self.assertIn(str1, index_advise, "执行失败" + step)
self.assertIn(str2, index_advise, "执行失败" + step)
step = 'step11:结合子查询进行查询索引推荐 expect:返回推荐的索引列'
self.logger.info(step)
index_advise = self.primary_sh.execut_db_sql(f'''
select * from {self.index_advise}('select col_int,col_char from
(select col_int,col_char from {self.table1} union select col_int,
col_char from {self.table2} limit 20) where col_char like
''x_74243%'' group by col_int,col_char order by col_int,col_char;');
''')
self.logger.info(index_advise)
str1 = 'public | t_table_ai_indexadv_0015 |'
str2 = 'public | t_table_ai_indexadv1_0015 |'
self.assertIn(str1, index_advise, "执行失败" + step)
self.assertIn(str2, index_advise, "执行失败" + step)
step = 'step12:结合空条件进行查询索引推荐' \
'expect:报错提示必须输入查询条件'
self.logger.info(step)
index_advise = self.primary_sh.execut_db_sql(f'''
select * from {self.index_advise}('');''')
self.logger.info(index_advise)
str1 = 'ERROR: you must enter a query statement.'
self.assertIn(str1, index_advise, "执行失败" + step)
step = 'step13:多条创建索引语句进行查询索引推荐' \
'expect:报错提示无法为多个查询提供建议'
self.logger.info(step)
index_advise = self.primary_sh.execut_db_sql(f'''
select * from {self.index_advise}('select {self.table1}.col_int,
{self.table1}.col_numeric,{self.table2}.col_money from
{self.table1} inner join {self.table2} on {self.table1}.col_int =
{self.table2}.col_int where {self.table1}.col_time=''19:41:20''
order by {self.table1}.col_int desc limit 20;
select * from {self.table1};');''')
self.logger.info(index_advise)
str1 = 'ERROR: can not advise for multiple queries.'
self.assertIn(str1, index_advise, "执行失败" + step)
def tearDown(self):
step = 'step14:清理环境 expect:清理环境成功'
self.logger.info(step)
clean_enviroment = self.primary_sh.execut_db_sql(f'''
drop view {self.view};
drop table {self.table1};
drop table {self.table2};
drop procedure {self.procedure1};
drop procedure {self.procedure2};''')
self.logger.info(clean_enviroment)
self.assertEqual(clean_enviroment.count(self.Con.TABLE_DROP_SUCCESS),
2, "执行失败" + step)
self.assertIn(self.Con.DROP_VIEW_SUCCESS_MSG, clean_enviroment,
"执行失败" + step)
self.assertIn(self.Con.DROP_PROCEDURE_SUCCESS_MSG, clean_enviroment,
"执行失败" + step)
self.assertEqual(clean_enviroment.count('DROP PROCEDURE'), 2,
"执行失败" + step)
self.logger.info('Opengauss_Function_Ai_Indexadv_Case0015 finish')
| [
1,
529,
9507,
29958,
3150,
29954,
11214,
5160,
29914,
1688,
4878,
29914,
23869,
29914,
23869,
29918,
27992,
3035,
29963,
29914,
11746,
996,
11214,
29918,
6678,
29918,
29909,
29875,
29918,
3220,
17263,
29918,
8259,
29900,
29900,
29896,
29945,
29889,
2272,
13,
15945,
29908,
13,
11882,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29906,
379,
3357,
26599,
8364,
11763,
3189,
1696,
29931,
1594,
29889,
13,
13,
3150,
29954,
11214,
338,
7794,
21144,
1090,
21193,
273,
11323,
29931,
325,
29906,
29889,
13,
3492,
508,
671,
445,
7047,
5034,
304,
278,
4958,
322,
5855,
310,
278,
21193,
273,
11323,
29931,
325,
29906,
29889,
13,
3492,
1122,
4017,
263,
3509,
310,
21193,
273,
11323,
29931,
325,
29906,
472,
29901,
13,
13,
3986,
1732,
597,
506,
1947,
29889,
3944,
695,
29889,
990,
29889,
18038,
29914,
29924,
352,
273,
7024,
29931,
29906,
13,
13,
4690,
3235,
7791,
7818,
12982,
1525,
8519,
13756,
13044,
3352,
6732,
13764,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
8079,
13764,
29979,
476,
22255,
29892,
13,
29923,
1806,
4448,
8528,
15094,
1799,
6323,
306,
3580,
5265,
3352,
29892,
2672,
6154,
15789,
4214,
350,
2692,
6058,
27848,
3352,
7495,
405,
1164,
29899,
1177,
15860,
1177,
1692,
13780,
29892,
13,
29924,
1001,
3210,
13566,
2882,
6227,
11937,
6323,
383,
1806,
15842,
319,
349,
8322,
2965,
13309,
1718,
349,
4574,
13152,
1660,
29889,
13,
13393,
278,
21193,
273,
11323,
29931,
325,
29906,
363,
901,
4902,
29889,
13,
15945,
29908,
13,
15945,
29908,
13,
8259,
5167,
259,
584,
29871,
31676,
30815,
31894,
234,
190,
183,
1794,
29918,
2248,
17263,
31382,
232,
160,
154,
13,
8259,
4408,
259,
584,
29871,
31320,
30733,
30413,
30980,
30210,
2850,
31505,
232,
146,
168,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
13,
9868,
584,
13,
268,
29896,
29889,
30886,
30746,
29896,
13,
268,
29906,
29889,
30886,
30746,
29906,
13,
268,
29941,
29889,
30886,
30946,
232,
133,
171,
31138,
31101,
29896,
13,
268,
29946,
29889,
30886,
30946,
232,
133,
171,
31138,
31101,
29906,
13,
268,
29945,
29889,
31331,
30746,
29896,
30275,
233,
146,
149,
30752,
29896,
29900,
29900,
29900,
29900,
29900,
31217,
30354,
30763,
29892,
31331,
30746,
29906,
30275,
233,
146,
149,
30752,
30354,
30763,
31666,
31675,
31466,
30354,
30763,
30210,
30354,
31180,
13,
268,
29953,
29889,
31320,
30733,
13094,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
13,
268,
29955,
29889,
31320,
30733,
7851,
31505,
232,
146,
168,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
13,
268,
29947,
29889,
31320,
30733,
786,
1272,
31505,
232,
146,
168,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
13,
268,
29929,
29889,
31320,
30733,
3258,
31505,
232,
146,
168,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
13,
268,
29896,
29900,
29889,
31320,
30733,
31568,
30861,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
13,
268,
29896,
29896,
29889,
31320,
30733,
30319,
31213,
235,
178,
165,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
13,
268,
29896,
29906,
29889,
31320,
30733,
30816,
31217,
30631,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
13,
268,
29896,
29941,
29889,
31320,
30733,
30923,
31217,
31441,
30886,
31836,
31674,
31505,
232,
146,
168,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
13,
268,
29896,
29946,
29889,
30989,
30687,
234,
145,
178,
232,
165,
134,
13,
1252,
1103,
418,
584,
13,
268,
29896,
29889,
30886,
30746,
29896,
30494,
31134,
13,
268,
29906,
29889,
30886,
30746,
29906,
30494,
31134,
13,
268,
29941,
29889,
30886,
30946,
232,
133,
171,
31138,
31101,
29896,
30494,
31134,
13,
268,
29946,
29889,
30886,
30946,
232,
133,
171,
31138,
31101,
29906,
30494,
31134,
13,
268,
29945,
29889,
31331,
30746,
29896,
30275,
233,
146,
149,
30752,
29896,
29900,
29900,
29900,
29900,
29900,
31217,
30354,
30763,
29892,
31331,
30746,
29906,
30275,
233,
146,
149,
30752,
30354,
30763,
30494,
31134,
29892,
31086,
30742,
30746,
29896,
29892,
30746,
29906,
30354,
30763,
30210,
30354,
31180,
13,
268,
29953,
29889,
31086,
30742,
233,
145,
171,
235,
144,
147,
30210,
31836,
31674,
31025,
13,
268,
29955,
29889,
233,
141,
168,
31745,
31302,
30858,
31352,
30545,
30573,
31213,
235,
178,
165,
31302,
231,
193,
158,
30886,
235,
177,
177,
30214,
31570,
30573,
233,
140,
193,
30413,
30780,
31213,
235,
178,
165,
31505,
232,
146,
168,
13,
268,
29947,
29889,
233,
141,
168,
31745,
31302,
30858,
31352,
30545,
30573,
31213,
235,
178,
165,
31302,
231,
193,
158,
30886,
235,
177,
177,
30214,
31570,
30573,
233,
140,
193,
30413,
30780,
31213,
235,
178,
165,
31505,
232,
146,
168,
13,
268,
29929,
29889,
233,
141,
168,
31745,
31302,
30858,
31352,
30545,
30573,
31213,
235,
178,
165,
31302,
231,
193,
158,
30886,
235,
177,
177,
30214,
31570,
30573,
233,
140,
193,
30413,
30780,
31213,
235,
178,
165,
31505,
232,
146,
168,
13,
268,
29896,
29900,
29889,
233,
141,
168,
31745,
31302,
30858,
31352,
30545,
30573,
31213,
235,
178,
165,
31302,
231,
193,
158,
30886,
235,
177,
177,
30214,
31570,
30573,
31352,
30545,
235,
178,
137,
232,
139,
174,
233,
185,
140,
31436,
30210,
30746,
13,
268,
29896,
29896,
29889,
31086,
30742,
233,
145,
171,
235,
144,
147,
30210,
31836,
31674,
31025,
13,
268,
29896,
29906,
29889,
233,
141,
168,
31745,
31302,
30858,
31641,
236,
164,
190,
31573,
30752,
31213,
235,
178,
165,
31217,
30631,
13,
268,
29896,
29941,
29889,
233,
141,
168,
31745,
31302,
30858,
31352,
30545,
30573,
30923,
30502,
31213,
235,
178,
165,
31302,
231,
193,
158,
30886,
235,
177,
177,
13,
268,
29896,
29946,
29889,
30989,
30687,
234,
145,
178,
232,
165,
134,
30494,
31134,
13,
20570,
268,
584,
13,
268,
31367,
30910,
30690,
31183,
31462,
31100,
29892,
231,
191,
155,
30705,
30406,
31507,
236,
131,
133,
31361,
30690,
31183,
13,
15945,
29908,
13,
13,
5215,
443,
27958,
13,
3166,
343,
271,
29889,
1688,
1053,
9071,
13,
3166,
1243,
4878,
29889,
13239,
29889,
12075,
424,
1053,
28601,
13,
3166,
1243,
4878,
29889,
13239,
29889,
18877,
7068,
1053,
13103,
7068,
13,
3166,
1243,
4878,
29889,
13239,
29889,
16363,
1053,
28468,
13,
13,
13,
1990,
3758,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
21707,
353,
28468,
580,
13,
4706,
1583,
29889,
2585,
1792,
4247,
353,
9071,
877,
26666,
10234,
2659,
1495,
13,
4706,
1583,
29889,
16072,
29918,
845,
353,
13103,
7068,
877,
26666,
10234,
2659,
1495,
13,
4706,
1583,
29889,
1168,
353,
28601,
580,
13,
4706,
1583,
29889,
2371,
29896,
353,
525,
29873,
29918,
2371,
29918,
1794,
29918,
2248,
17263,
29918,
29900,
29900,
29896,
29945,
29915,
13,
4706,
1583,
29889,
2371,
29906,
353,
525,
29873,
29918,
2371,
29918,
1794,
29918,
2248,
17263,
29896,
29918,
29900,
29900,
29896,
29945,
29915,
13,
4706,
1583,
29889,
2371,
29941,
353,
525,
29873,
29918,
2371,
29918,
1794,
29918,
2248,
17263,
29918,
1688,
29918,
29900,
29900,
29896,
29945,
29915,
13,
4706,
1583,
29889,
771,
26600,
29896,
353,
525,
29886,
29918,
771,
26600,
29918,
7851,
29918,
29900,
29900,
29896,
29945,
29915,
13,
4706,
1583,
29889,
771,
26600,
29906,
353,
525,
29886,
29918,
771,
26600,
29918,
7851,
29896,
29918,
29900,
29900,
29896,
29945,
29915,
13,
4706,
1583,
29889,
1493,
353,
525,
29894,
29918,
1493,
29918,
1794,
29918,
2248,
29918,
29900,
29900,
29896,
29945,
29915,
13,
4706,
1583,
29889,
2248,
29918,
17263,
895,
353,
525,
3174,
29918,
2248,
29918,
17263,
895,
29915,
13,
13,
1678,
822,
1243,
29918,
1794,
29918,
18714,
29918,
2248,
29898,
1311,
1125,
13,
4706,
1583,
29889,
21707,
29889,
3888,
877,
11746,
996,
11214,
29918,
6678,
29918,
29909,
29875,
29918,
3220,
17263,
29918,
8259,
29900,
29900,
29896,
29945,
1369,
1495,
13,
4706,
4331,
353,
525,
10568,
29896,
29901,
30886,
30746,
29896,
2149,
29901,
30886,
30746,
29896,
30494,
31134,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
1653,
29918,
2371,
29896,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
5768,
1591,
565,
4864,
426,
1311,
29889,
2371,
29896,
3400,
13,
9651,
1653,
1591,
29871,
426,
1311,
29889,
2371,
29896,
2119,
1054,
29918,
524,
938,
29892,
1054,
29918,
21574,
16985,
29892,
13,
9651,
784,
29918,
7411,
5785,
29892,
1054,
29918,
3090,
1373,
29898,
29896,
29900,
511,
1054,
29918,
726,
1426,
29892,
1054,
29918,
2230,
931,
13,
9651,
3482,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
3258,
29918,
2371,
29896,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
1311,
29889,
1168,
29889,
21009,
29918,
27045,
29918,
14605,
26925,
29892,
1653,
29918,
2371,
29896,
29892,
13,
462,
418,
376,
30886,
30746,
29896,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29906,
29901,
30886,
30746,
29906,
2149,
29901,
30886,
30746,
29906,
30494,
31134,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
1653,
29918,
2371,
29906,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
5768,
1591,
565,
4864,
426,
1311,
29889,
2371,
29906,
3400,
13,
9651,
1653,
1591,
426,
1311,
29889,
2371,
29906,
2119,
1054,
29918,
524,
938,
29892,
1054,
29918,
7099,
1602,
29892,
13,
9651,
784,
29918,
29885,
4992,
6909,
29892,
1054,
29918,
20054,
7223,
29892,
1054,
29918,
3090,
1373,
29898,
29896,
29900,
511,
13,
9651,
784,
29918,
29883,
2127,
274,
2127,
416,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
3258,
29918,
2371,
29906,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
1311,
29889,
1168,
29889,
21009,
29918,
27045,
29918,
14605,
26925,
29892,
1653,
29918,
2371,
29906,
29892,
13,
462,
418,
376,
30886,
30746,
29906,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29941,
29901,
30886,
30946,
232,
133,
171,
31138,
31101,
29896,
2149,
29901,
30886,
30946,
232,
133,
171,
31138,
31101,
29896,
30494,
31134,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
1653,
29918,
771,
26600,
29896,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
1653,
470,
5191,
8792,
426,
1311,
29889,
771,
26600,
29896,
2119,
29874,
938,
29897,
338,
13,
9651,
478,
29918,
524,
938,
29936,
13,
9651,
478,
29918,
21574,
16985,
29936,
13,
9651,
478,
29918,
7411,
5785,
29936,
13,
9651,
478,
29918,
3090,
1373,
29898,
29896,
29900,
416,
13,
9651,
478,
29918,
726,
1426,
29936,
13,
9651,
478,
29918,
2230,
931,
29936,
13,
9651,
3380,
13,
9651,
363,
474,
297,
29871,
29896,
636,
29874,
13,
9651,
2425,
13,
9651,
478,
29918,
524,
3490,
29875,
29936,
13,
9651,
478,
29918,
21574,
3490,
29875,
29974,
29896,
29889,
29896,
29896,
29936,
13,
9651,
478,
29918,
7411,
3490,
29875,
29930,
29945,
29889,
29945,
29945,
29936,
13,
9651,
478,
29918,
3090,
584,
2433,
29916,
29918,
29915,
8876,
474,
29936,
13,
9651,
478,
29918,
726,
584,
2433,
29963,
29918,
726,
29918,
29915,
8876,
474,
29936,
13,
9651,
478,
29918,
2230,
584,
2433,
29896,
29929,
29901,
29946,
29896,
29901,
29906,
29900,
2670,
13,
9651,
6222,
16800,
525,
7851,
964,
426,
1311,
29889,
2371,
29896,
29913,
1819,
13,
9651,
13940,
29886,
29896,
29892,
29901,
29886,
29906,
29892,
29901,
29886,
29941,
29892,
29901,
29886,
29946,
29892,
29901,
29886,
29945,
29892,
29901,
29886,
29953,
29897,
13,
9651,
525,
4746,
478,
29918,
524,
29892,
29963,
29918,
21574,
29892,
29963,
29918,
7411,
29892,
29963,
29918,
3090,
29892,
29963,
29918,
726,
29892,
29963,
29918,
2230,
29936,
13,
9651,
1095,
2425,
29936,
13,
9651,
1095,
29936,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
3258,
29918,
771,
26600,
29896,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
1311,
29889,
1168,
29889,
27045,
29918,
8618,
29907,
3352,
11499,
29918,
14605,
26925,
29918,
4345,
29954,
29892,
13,
462,
418,
1653,
29918,
771,
26600,
29896,
29892,
376,
30886,
30946,
232,
133,
171,
31138,
31101,
29896,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29946,
29901,
30886,
30946,
232,
133,
171,
31138,
31101,
29906,
2149,
29901,
30886,
30946,
232,
133,
171,
31138,
31101,
29906,
30494,
31134,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
1653,
29918,
771,
26600,
29906,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
1653,
470,
5191,
8792,
426,
1311,
29889,
771,
26600,
29906,
29913,
580,
338,
13,
9651,
478,
29918,
524,
938,
29936,
13,
9651,
478,
29918,
7099,
1602,
29936,
13,
9651,
478,
29918,
29885,
4992,
6909,
29936,
13,
9651,
478,
29918,
20054,
7223,
29936,
13,
9651,
478,
29918,
3090,
1373,
29898,
29896,
29900,
416,
13,
9651,
478,
29918,
29883,
2127,
274,
2127,
29936,
13,
9651,
3380,
13,
9651,
363,
474,
297,
29871,
29906,
29900,
29900,
29900,
636,
29896,
29900,
29900,
29900,
29900,
29900,
13,
9651,
2425,
13,
9651,
478,
29918,
524,
3490,
29875,
29936,
13,
9651,
478,
29918,
7099,
3490,
29875,
29930,
29947,
29889,
29947,
29947,
29936,
13,
9651,
478,
29918,
29885,
4992,
3490,
29875,
29930,
29906,
29936,
13,
9651,
478,
29918,
20054,
584,
2433,
29873,
2670,
13,
9651,
478,
29918,
3090,
3490,
29875,
3830,
15972,
29916,
2670,
13,
9651,
478,
29918,
29883,
2127,
584,
2433,
29963,
29918,
29883,
2127,
29918,
29915,
8876,
474,
29936,
13,
9651,
6222,
16800,
525,
7851,
964,
426,
1311,
29889,
2371,
29906,
29913,
1819,
13,
9651,
13940,
29886,
29896,
29892,
29901,
29886,
29906,
29892,
29901,
29886,
29941,
29892,
29901,
29886,
29946,
29892,
29901,
29886,
29945,
29892,
29901,
29886,
29953,
29897,
13,
9651,
525,
4746,
478,
29918,
524,
29892,
29963,
29918,
7099,
29892,
29963,
29918,
29885,
4992,
29892,
29963,
29918,
20054,
29892,
29963,
29918,
3090,
29892,
29963,
29918,
29883,
2127,
29936,
13,
9651,
1095,
2425,
29936,
13,
9651,
1095,
29936,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
3258,
29918,
771,
26600,
29906,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
1311,
29889,
1168,
29889,
27045,
29918,
8618,
29907,
3352,
11499,
29918,
14605,
26925,
29918,
4345,
29954,
29892,
13,
462,
418,
1653,
29918,
771,
26600,
29906,
29892,
376,
30886,
30946,
232,
133,
171,
31138,
31101,
29906,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29945,
29901,
31331,
30746,
29896,
30275,
233,
146,
149,
30752,
29896,
29900,
29900,
29900,
29900,
29900,
31217,
30354,
30763,
29892,
31331,
30746,
29906,
30275,
233,
146,
149,
30752,
30354,
30763,
31666,
31675,
31466,
30354,
30763,
30210,
30354,
31180,
29915,
320,
13,
1669,
525,
17854,
29901,
31331,
30746,
29896,
30275,
233,
146,
149,
30752,
29896,
29900,
29900,
29900,
29900,
29900,
31217,
30354,
30763,
29892,
31331,
30746,
29906,
30275,
233,
146,
149,
30752,
30354,
30763,
30494,
31134,
29892,
31086,
30742,
29915,
320,
13,
1669,
525,
30746,
29896,
29892,
30746,
29906,
30354,
30763,
30210,
30354,
31180,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
4635,
29918,
1272,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
1246,
426,
1311,
29889,
771,
26600,
29896,
2119,
29896,
29900,
29900,
29900,
29900,
29900,
416,
13,
9651,
1831,
2302,
22798,
515,
426,
1311,
29889,
2371,
29896,
29913,
2056,
13,
9651,
1246,
426,
1311,
29889,
771,
26600,
29906,
29913,
890,
13,
9651,
1831,
2302,
22798,
515,
426,
1311,
29889,
2371,
29906,
29913,
2056,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
7851,
29918,
1272,
29897,
13,
4706,
1426,
353,
525,
31331,
30746,
29896,
30275,
233,
146,
149,
30752,
29896,
29900,
29900,
29900,
29900,
29900,
31217,
30354,
30763,
29892,
31331,
30746,
29906,
30275,
233,
146,
149,
30752,
30354,
30763,
31666,
31675,
31466,
30354,
30763,
30210,
30354,
31180,
31369,
31955,
29915,
13,
4706,
1583,
29889,
9294,
797,
877,
29886,
29918,
771,
26600,
29918,
7851,
29918,
29900,
29900,
29896,
29945,
742,
4635,
29918,
1272,
29892,
13,
462,
418,
1426,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
797,
877,
29886,
29918,
771,
26600,
29918,
7851,
29896,
29918,
29900,
29900,
29896,
29945,
742,
4635,
29918,
1272,
29892,
13,
462,
418,
1426,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
797,
877,
29896,
29900,
29900,
29900,
29900,
29900,
742,
4635,
29918,
1272,
29892,
1426,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
797,
877,
29929,
29947,
29900,
29900,
29896,
742,
4635,
29918,
1272,
29892,
1426,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29953,
29901,
31320,
30733,
13094,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
2149,
29901,
31086,
30742,
233,
145,
171,
235,
144,
147,
30210,
31836,
31674,
31025,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
2380,
29918,
17263,
895,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
1831,
334,
515,
426,
1311,
29889,
2248,
29918,
17263,
895,
29913,
877,
2622,
784,
29918,
524,
29892,
1054,
29918,
3090,
515,
29871,
13,
9651,
426,
1311,
29889,
2371,
29896,
29913,
9833,
1831,
784,
29918,
524,
29892,
1054,
29918,
3090,
29871,
515,
426,
1311,
29889,
2371,
29906,
29913,
29871,
13,
9651,
4046,
29871,
29906,
29900,
29936,
2157,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
2248,
29918,
17263,
895,
29897,
13,
4706,
851,
29896,
353,
525,
3597,
891,
260,
29918,
2371,
29918,
1794,
29918,
2248,
17263,
29918,
29900,
29900,
29896,
29945,
29871,
891,
29915,
13,
4706,
851,
29906,
353,
525,
3597,
891,
260,
29918,
2371,
29918,
1794,
29918,
2248,
17263,
29896,
29918,
29900,
29900,
29896,
29945,
891,
29915,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29896,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29906,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29955,
29901,
31320,
30733,
7851,
31505,
232,
146,
168,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
29915,
320,
13,
1669,
525,
17854,
29901,
233,
141,
168,
31745,
31302,
30858,
31352,
30545,
30573,
31213,
235,
178,
165,
31302,
231,
193,
158,
30886,
235,
177,
177,
30214,
31570,
30573,
233,
140,
193,
30413,
30780,
31213,
235,
178,
165,
31505,
232,
146,
168,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
2380,
29918,
17263,
895,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
1831,
334,
515,
426,
1311,
29889,
2248,
29918,
17263,
895,
29913,
877,
7851,
964,
426,
1311,
29889,
2371,
29906,
29913,
13,
9651,
313,
1054,
29918,
524,
29897,
1819,
29898,
29947,
29897,
2157,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
2248,
29918,
17263,
895,
29897,
13,
4706,
851,
29896,
353,
525,
11432,
29901,
29871,
508,
451,
22939,
363,
278,
2346,
29915,
13,
4706,
851,
29906,
353,
525,
18103,
451,
1476,
263,
1831,
3229,
6169,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29896,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29906,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29947,
29901,
31320,
30733,
5504,
31505,
232,
146,
168,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
29915,
320,
13,
1669,
525,
17854,
29901,
233,
141,
168,
31745,
31302,
30858,
31352,
30545,
30573,
31213,
235,
178,
165,
31302,
231,
193,
158,
30886,
235,
177,
177,
29892,
31570,
30573,
233,
140,
193,
30413,
30780,
31213,
235,
178,
165,
31505,
232,
146,
168,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
2380,
29918,
17263,
895,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
1831,
334,
515,
426,
1311,
29889,
2248,
29918,
17263,
895,
29913,
877,
5504,
426,
1311,
29889,
2371,
29906,
29913,
29871,
13,
9651,
731,
784,
29918,
29885,
4992,
353,
4907,
29938,
29947,
29892,
29900,
29900,
29900,
29889,
29900,
29900,
4907,
988,
784,
29918,
524,
29922,
29906,
29900,
29900,
29900,
29936,
2157,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
2248,
29918,
17263,
895,
29897,
13,
4706,
851,
29896,
353,
525,
11432,
29901,
29871,
508,
451,
22939,
363,
278,
2346,
29915,
13,
4706,
851,
29906,
353,
525,
18103,
451,
1476,
263,
1831,
3229,
6169,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29896,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29906,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29929,
29901,
31320,
30733,
3258,
31505,
232,
146,
168,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
29915,
320,
13,
1669,
525,
17854,
29901,
233,
141,
168,
31745,
31302,
30858,
31352,
30545,
30573,
31213,
235,
178,
165,
31302,
231,
193,
158,
30886,
235,
177,
177,
30214,
31570,
30573,
233,
140,
193,
30413,
30780,
31213,
235,
178,
165,
31505,
232,
146,
168,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
2380,
29918,
17263,
895,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
1831,
334,
515,
426,
1311,
29889,
2248,
29918,
17263,
895,
29913,
877,
3258,
5534,
5694,
1591,
29871,
13,
9651,
426,
1311,
29889,
2371,
29941,
2119,
333,
938,
29892,
659,
16985,
29897,
373,
9063,
19905,
4206,
29936,
2157,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
2248,
29918,
17263,
895,
29897,
13,
4706,
851,
29896,
353,
525,
11432,
29901,
29871,
508,
451,
22939,
363,
278,
2346,
29915,
13,
4706,
851,
29906,
353,
525,
18103,
451,
1476,
263,
1831,
3229,
6169,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29896,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29906,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29896,
29900,
29901,
31320,
30733,
31568,
30861,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
29915,
320,
13,
1669,
525,
17854,
29901,
233,
141,
168,
31745,
31302,
30858,
31352,
30545,
30573,
31213,
235,
178,
165,
31302,
231,
193,
158,
30886,
235,
177,
177,
29892,
31570,
30573,
31352,
30545,
235,
178,
137,
232,
139,
174,
233,
185,
140,
31436,
30210,
30746,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
2380,
29918,
17263,
895,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
1653,
1776,
426,
1311,
29889,
1493,
29913,
408,
1831,
334,
515,
426,
1311,
29889,
2371,
29896,
29913,
29871,
13,
9651,
988,
426,
1311,
29889,
2371,
29896,
1836,
1054,
29918,
524,
29966,
29896,
29900,
29900,
29900,
29936,
13,
9651,
1831,
334,
515,
426,
1311,
29889,
2248,
29918,
17263,
895,
29913,
877,
2622,
334,
515,
426,
1311,
29889,
1493,
3400,
2157,
13,
9651,
6629,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
2248,
29918,
17263,
895,
29897,
13,
4706,
851,
29896,
353,
525,
11432,
29901,
29871,
508,
451,
22939,
363,
278,
2346,
29915,
13,
4706,
851,
29906,
353,
525,
18103,
508,
451,
18720,
9701,
6131,
6169,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29896,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29906,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29896,
29896,
29901,
31320,
30733,
30319,
31213,
235,
178,
165,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
2149,
29901,
31086,
30742,
233,
145,
171,
235,
144,
147,
30210,
31836,
31674,
31025,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
2380,
29918,
17263,
895,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
4706,
1831,
334,
515,
426,
1311,
29889,
2248,
29918,
17263,
895,
29913,
877,
2622,
784,
29918,
524,
29892,
1054,
29918,
3090,
515,
29871,
13,
4706,
313,
2622,
784,
29918,
524,
29892,
1054,
29918,
3090,
515,
426,
1311,
29889,
2371,
29896,
29913,
9833,
1831,
784,
29918,
524,
29892,
13,
4706,
784,
29918,
3090,
29871,
515,
426,
1311,
29889,
2371,
29906,
29913,
4046,
29871,
29906,
29900,
29897,
988,
784,
29918,
3090,
763,
29871,
13,
4706,
6629,
29916,
29918,
29955,
29946,
29906,
29946,
29941,
29995,
4907,
2318,
491,
29871,
784,
29918,
524,
29892,
1054,
29918,
3090,
1797,
491,
784,
29918,
524,
29892,
1054,
29918,
3090,
29936,
2157,
13,
4706,
6629,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
2248,
29918,
17263,
895,
29897,
13,
4706,
851,
29896,
353,
525,
3597,
891,
260,
29918,
2371,
29918,
1794,
29918,
2248,
17263,
29918,
29900,
29900,
29896,
29945,
29871,
891,
29915,
13,
4706,
851,
29906,
353,
525,
3597,
891,
260,
29918,
2371,
29918,
1794,
29918,
2248,
17263,
29896,
29918,
29900,
29900,
29896,
29945,
891,
29915,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29896,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29906,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29896,
29906,
29901,
31320,
30733,
30816,
31217,
30631,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
29915,
320,
13,
1669,
525,
17854,
29901,
233,
141,
168,
31745,
31302,
30858,
31641,
236,
164,
190,
31573,
30752,
31213,
235,
178,
165,
31217,
30631,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
2380,
29918,
17263,
895,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
1831,
334,
515,
426,
1311,
29889,
2248,
29918,
17263,
895,
29913,
877,
2157,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
2248,
29918,
17263,
895,
29897,
13,
4706,
851,
29896,
353,
525,
11432,
29901,
29871,
366,
1818,
3896,
263,
2346,
3229,
6169,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29896,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
4706,
4331,
353,
525,
10568,
29896,
29941,
29901,
30923,
31217,
31441,
30886,
31836,
31674,
31505,
232,
146,
168,
31174,
30448,
31213,
235,
178,
165,
31836,
31674,
233,
145,
171,
235,
144,
147,
29915,
320,
13,
1669,
525,
17854,
29901,
233,
141,
168,
31745,
31302,
30858,
31352,
30545,
30573,
30923,
30502,
31213,
235,
178,
165,
31302,
231,
193,
158,
30886,
235,
177,
177,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
2380,
29918,
17263,
895,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
1831,
334,
515,
426,
1311,
29889,
2248,
29918,
17263,
895,
29913,
877,
2622,
426,
1311,
29889,
2371,
29896,
1836,
1054,
29918,
524,
29892,
13,
9651,
426,
1311,
29889,
2371,
29896,
1836,
1054,
29918,
21574,
29892,
29912,
1311,
29889,
2371,
29906,
1836,
1054,
29918,
29885,
4992,
515,
29871,
13,
9651,
426,
1311,
29889,
2371,
29896,
29913,
6426,
5988,
426,
1311,
29889,
2371,
29906,
29913,
373,
426,
1311,
29889,
2371,
29896,
1836,
1054,
29918,
524,
353,
13,
9651,
426,
1311,
29889,
2371,
29906,
1836,
1054,
29918,
524,
988,
426,
1311,
29889,
2371,
29896,
1836,
1054,
29918,
2230,
2433,
29915,
29896,
29929,
29901,
29946,
29896,
29901,
29906,
29900,
4907,
29871,
13,
9651,
1797,
491,
426,
1311,
29889,
2371,
29896,
1836,
1054,
29918,
524,
5153,
4046,
29871,
29906,
29900,
29936,
13,
9651,
1831,
334,
515,
426,
1311,
29889,
2371,
29896,
3400,
2157,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
2248,
29918,
17263,
895,
29897,
13,
4706,
851,
29896,
353,
525,
11432,
29901,
29871,
508,
451,
22939,
363,
2999,
9365,
6169,
13,
4706,
1583,
29889,
9294,
797,
29898,
710,
29896,
29892,
2380,
29918,
17263,
895,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
13,
1678,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
4706,
4331,
353,
525,
10568,
29896,
29946,
29901,
30989,
30687,
234,
145,
178,
232,
165,
134,
2149,
29901,
30989,
30687,
234,
145,
178,
232,
165,
134,
30494,
31134,
29915,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
10568,
29897,
13,
4706,
5941,
29918,
264,
2405,
2932,
353,
1583,
29889,
16072,
29918,
845,
29889,
4258,
329,
29918,
2585,
29918,
2850,
29898,
29888,
12008,
13,
9651,
5768,
1776,
426,
1311,
29889,
1493,
3400,
13,
9651,
5768,
1591,
426,
1311,
29889,
2371,
29896,
3400,
13,
9651,
5768,
1591,
426,
1311,
29889,
2371,
29906,
3400,
13,
9651,
5768,
8792,
426,
1311,
29889,
771,
26600,
29896,
3400,
13,
9651,
5768,
8792,
426,
1311,
29889,
771,
26600,
29906,
3400,
4907,
1495,
13,
4706,
1583,
29889,
21707,
29889,
3888,
29898,
14941,
29918,
264,
2405,
2932,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
14941,
29918,
264,
2405,
2932,
29889,
2798,
29898,
1311,
29889,
1168,
29889,
21009,
29918,
29928,
29366,
29918,
14605,
26925,
511,
13,
462,
3986,
29906,
29892,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
1311,
29889,
1168,
29889,
29928,
29366,
29918,
29963,
8673,
29956,
29918,
14605,
26925,
29918,
4345,
29954,
29892,
5941,
29918,
264,
2405,
2932,
29892,
13,
462,
418,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
797,
29898,
1311,
29889,
1168,
29889,
29928,
29366,
29918,
8618,
29907,
3352,
11499,
29918,
14605,
26925,
29918,
4345,
29954,
29892,
5941,
29918,
264,
2405,
2932,
29892,
13,
462,
418,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
14941,
29918,
264,
2405,
2932,
29889,
2798,
877,
29928,
29366,
13756,
29907,
3352,
11499,
5477,
29871,
29906,
29892,
13,
462,
308,
376,
233,
140,
170,
30448,
31369,
31955,
29908,
718,
4331,
29897,
13,
4706,
1583,
29889,
21707,
29889,
3888,
877,
11746,
996,
11214,
29918,
6678,
29918,
29909,
29875,
29918,
3220,
17263,
29918,
8259,
29900,
29900,
29896,
29945,
8341,
1495,
13,
2
] |
demo_pulse.py | gexpander/demo-py-examples | 0 | 118111 | #!/bin/env python3
import gex
import time
# generating a pulse on gpio, test of the unit
with gex.Client(gex.TrxRawUSB()) as client:
out = gex.DOut(client, 'out')
out.pulse_us([0], 20)
out.pulse_us([3], 10) | [
1,
18787,
2109,
29914,
6272,
3017,
29941,
13,
5215,
330,
735,
13,
5215,
931,
13,
13,
29937,
14655,
263,
9505,
344,
373,
330,
16168,
29892,
1243,
310,
278,
5190,
13,
13,
2541,
330,
735,
29889,
4032,
29898,
5082,
29889,
2308,
29916,
22131,
29965,
1744,
3101,
408,
3132,
29901,
13,
1678,
714,
353,
330,
735,
29889,
29928,
3744,
29898,
4645,
29892,
525,
449,
1495,
13,
13,
1678,
714,
29889,
29886,
19994,
29918,
375,
4197,
29900,
1402,
29871,
29906,
29900,
29897,
13,
1678,
714,
29889,
29886,
19994,
29918,
375,
4197,
29941,
1402,
29871,
29896,
29900,
29897,
2
] |
models/temporal_link/temporal_weights.py | zankner/DNC | 3 | 155152 | import tensorflow as tf
def temporal_weights(temporal_links, read_weights):
forward_weights = tf.matmul(read_weights,
temporal_links, transpose_b = True)
backward_weights = tf.matmul(read_weights, temporal_links)
return forward_weights, backward_weights
| [
1,
1053,
26110,
408,
15886,
13,
13,
1753,
25406,
29918,
705,
5861,
29898,
1356,
1971,
284,
29918,
4965,
29892,
1303,
29918,
705,
5861,
1125,
13,
29871,
6375,
29918,
705,
5861,
353,
15886,
29889,
2922,
16109,
29898,
949,
29918,
705,
5861,
29892,
13,
418,
25406,
29918,
4965,
29892,
1301,
4220,
29918,
29890,
353,
5852,
29897,
13,
29871,
1250,
1328,
29918,
705,
5861,
353,
15886,
29889,
2922,
16109,
29898,
949,
29918,
705,
5861,
29892,
25406,
29918,
4965,
29897,
13,
29871,
736,
6375,
29918,
705,
5861,
29892,
1250,
1328,
29918,
705,
5861,
13,
2
] |
dag/ecs-hybrid-ec2.py | 094459/blogpost-airflow-hybrid | 1 | 1611066 | from airflow import DAG
from datetime import datetime, timedelta
from airflow.providers.amazon.aws.operators.ecs import ECSOperator
default_args = {
'owner': 'ubuntu',
'start_date': datetime(2019, 8, 14),
'retry_delay': timedelta(seconds=60*60)
}
with DAG('hybrid_airflow_ec2_dag', catchup=False, default_args=default_args, schedule_interval=None) as dag:
cloudquery = ECSOperator(
task_id="cloudquery",
dag=dag,
cluster="hybrid-airflow-cluster",
task_definition="apache-airflow",
overrides={ },
launch_type="EC2",
awslogs_group="/ecs/hybrid-airflow",
awslogs_stream_prefix="ecs/Hybrid-ELT-TaskDef"
)
cloudquery
| [
1,
515,
4799,
1731,
1053,
360,
10051,
13,
3166,
12865,
1053,
12865,
29892,
5335,
287,
2554,
13,
3166,
4799,
1731,
29889,
771,
29454,
29889,
17260,
29889,
10467,
29889,
3372,
4097,
29889,
687,
29879,
1053,
17522,
6156,
546,
1061,
13,
13,
13,
4381,
29918,
5085,
353,
426,
13,
1678,
525,
20348,
2396,
525,
8767,
742,
13,
1678,
525,
2962,
29918,
1256,
2396,
12865,
29898,
29906,
29900,
29896,
29929,
29892,
29871,
29947,
29892,
29871,
29896,
29946,
511,
13,
1678,
525,
276,
2202,
29918,
18829,
2396,
5335,
287,
2554,
29898,
23128,
29922,
29953,
29900,
29930,
29953,
29900,
29897,
13,
29913,
13,
13,
2541,
360,
10051,
877,
5819,
19515,
29918,
1466,
1731,
29918,
687,
29906,
29918,
24157,
742,
4380,
786,
29922,
8824,
29892,
2322,
29918,
5085,
29922,
4381,
29918,
5085,
29892,
20410,
29918,
19207,
29922,
8516,
29897,
408,
12136,
29901,
13,
13,
1678,
9570,
1972,
353,
17522,
6156,
546,
1061,
29898,
13,
4706,
3414,
29918,
333,
543,
9274,
1972,
613,
13,
4706,
12136,
29922,
24157,
29892,
13,
4706,
9867,
543,
5819,
19515,
29899,
1466,
1731,
29899,
19594,
613,
13,
4706,
3414,
29918,
16553,
543,
4288,
29899,
1466,
1731,
613,
13,
4706,
975,
24040,
3790,
2981,
13,
4706,
6826,
29918,
1853,
543,
11206,
29906,
613,
13,
4706,
25879,
20756,
29918,
2972,
13802,
687,
29879,
29914,
5819,
19515,
29899,
1466,
1731,
613,
13,
4706,
25879,
20756,
29918,
5461,
29918,
13506,
543,
687,
29879,
29914,
26322,
19515,
29899,
29923,
5850,
29899,
5398,
3206,
29908,
13,
1678,
1723,
13,
268,
13,
1678,
9570,
1972,
13,
2
] |
custom_components/tahoma/config_flow.py | MatthewFlamm/ha-tahoma | 0 | 162973 | <filename>custom_components/tahoma/config_flow.py
"""Config flow for TaHoma integration."""
import logging
from aiohttp import ClientError
from homeassistant import config_entries
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
from homeassistant.core import callback
from homeassistant.helpers import config_validation as cv
from pyhoma.client import TahomaClient
from pyhoma.exceptions import (
BadCredentialsException,
MaintenanceException,
TooManyRequestsException,
)
import voluptuous as vol
from .const import (
CONF_HUB,
CONF_UPDATE_INTERVAL,
DEFAULT_HUB,
DEFAULT_UPDATE_INTERVAL,
MIN_UPDATE_INTERVAL,
SUPPORTED_ENDPOINTS,
)
from .const import DOMAIN # pylint: disable=unused-import
_LOGGER = logging.getLogger(__name__)
DATA_SCHEMA = vol.Schema(
{
vol.Required(CONF_USERNAME): str,
vol.Required(CONF_PASSWORD): str,
vol.Required(CONF_HUB, default=DEFAULT_HUB): vol.In(SUPPORTED_ENDPOINTS.keys()),
}
)
class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Somfy TaHoma."""
VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
@staticmethod
@callback
def async_get_options_flow(config_entry):
"""Handle the flow."""
return OptionsFlowHandler(config_entry)
async def async_validate_input(self, user_input):
"""Validate user credentials."""
username = user_input.get(CONF_USERNAME)
password = user_input.get(CONF_PASSWORD)
hub = user_input.get(CONF_HUB, DEFAULT_HUB)
endpoint = SUPPORTED_ENDPOINTS[hub]
async with TahomaClient(username, password, api_url=endpoint) as client:
await client.login()
return self.async_create_entry(
title=username,
data=user_input,
)
async def async_step_user(self, user_input=None):
"""Handle the initial step via config flow."""
errors = {}
if user_input:
await self.async_set_unique_id(user_input.get(CONF_USERNAME))
self._abort_if_unique_id_configured()
try:
return await self.async_validate_input(user_input)
except TooManyRequestsException:
errors["base"] = "too_many_requests"
except BadCredentialsException:
errors["base"] = "invalid_auth"
except (TimeoutError, ClientError):
errors["base"] = "cannot_connect"
except MaintenanceException:
errors["base"] = "server_in_maintenance"
except Exception as exception: # pylint: disable=broad-except
errors["base"] = "unknown"
_LOGGER.exception(exception)
return self.async_show_form(
step_id="user", data_schema=DATA_SCHEMA, errors=errors
)
async def async_step_import(self, import_config: dict):
"""Handle the initial step via YAML configuration."""
if not import_config:
return
try:
return await self.async_validate_input(import_config)
except TooManyRequestsException:
_LOGGER.error("too_many_requests")
return self.async_abort(reason="too_many_requests")
except BadCredentialsException:
_LOGGER.error("invalid_auth")
return self.async_abort(reason="invalid_auth")
except (TimeoutError, ClientError):
_LOGGER.error("cannot_connect")
return self.async_abort(reason="cannot_connect")
except MaintenanceException:
_LOGGER.error("server_in_maintenance")
return self.async_abort(reason="server_in_maintenance")
except Exception as exception: # pylint: disable=broad-except
_LOGGER.exception(exception)
return self.async_abort(reason="unknown")
class OptionsFlowHandler(config_entries.OptionsFlow):
"""Handle a option flow for Somfy TaHoma."""
def __init__(self, config_entry):
"""Initialize options flow."""
self.config_entry = config_entry
async def async_step_init(self, user_input=None):
"""Manage the Somfy TaHoma options."""
return await self.async_step_update_interval()
async def async_step_update_interval(self, user_input=None):
"""Manage the options regarding interval updates."""
if user_input is not None:
return self.async_create_entry(title="", data=user_input)
return self.async_show_form(
step_id="update_interval",
data_schema=vol.Schema(
{
vol.Required(
CONF_UPDATE_INTERVAL,
default=self.config_entry.options.get(
CONF_UPDATE_INTERVAL, DEFAULT_UPDATE_INTERVAL
),
): vol.All(cv.positive_int, vol.Clamp(min=MIN_UPDATE_INTERVAL))
}
),
)
| [
1,
529,
9507,
29958,
6341,
29918,
14036,
29914,
29873,
801,
4125,
29914,
2917,
29918,
1731,
29889,
2272,
13,
15945,
29908,
3991,
4972,
363,
10523,
29950,
4125,
13465,
1213,
15945,
13,
5215,
12183,
13,
13,
3166,
263,
601,
1124,
1053,
12477,
2392,
13,
3166,
3271,
465,
22137,
1053,
2295,
29918,
26586,
13,
3166,
3271,
465,
22137,
29889,
3075,
1053,
8707,
29943,
29918,
25711,
17013,
29892,
8707,
29943,
29918,
11889,
5813,
13,
3166,
3271,
465,
22137,
29889,
3221,
1053,
6939,
13,
3166,
3271,
465,
22137,
29889,
3952,
6774,
1053,
2295,
29918,
18157,
408,
13850,
13,
3166,
11451,
29882,
4125,
29889,
4645,
1053,
323,
801,
4125,
4032,
13,
3166,
11451,
29882,
4125,
29889,
11739,
29879,
1053,
313,
13,
1678,
9178,
28037,
2451,
29892,
13,
1678,
4241,
841,
749,
2451,
29892,
13,
1678,
1763,
29877,
14804,
3089,
29879,
2451,
29892,
13,
29897,
13,
5215,
1700,
21245,
17269,
408,
1700,
13,
13,
3166,
869,
3075,
1053,
313,
13,
1678,
8707,
29943,
29918,
29950,
7466,
29892,
13,
1678,
8707,
29943,
29918,
14474,
29918,
23845,
8932,
29892,
13,
1678,
22236,
29918,
29950,
7466,
29892,
13,
1678,
22236,
29918,
14474,
29918,
23845,
8932,
29892,
13,
1678,
341,
1177,
29918,
14474,
29918,
23845,
8932,
29892,
13,
1678,
317,
4897,
15082,
3352,
29918,
1430,
11191,
6992,
9375,
29892,
13,
29897,
13,
3166,
869,
3075,
1053,
11662,
29032,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
348,
3880,
29899,
5215,
13,
13,
29918,
14480,
17070,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
14573,
29918,
29903,
3210,
26862,
353,
1700,
29889,
12763,
29898,
13,
1678,
426,
13,
4706,
1700,
29889,
19347,
29898,
6007,
29943,
29918,
11889,
5813,
1125,
851,
29892,
13,
4706,
1700,
29889,
19347,
29898,
6007,
29943,
29918,
25711,
17013,
1125,
851,
29892,
13,
4706,
1700,
29889,
19347,
29898,
6007,
29943,
29918,
29950,
7466,
29892,
2322,
29922,
23397,
29918,
29950,
7466,
1125,
1700,
29889,
797,
29898,
29903,
4897,
15082,
3352,
29918,
1430,
11191,
6992,
9375,
29889,
8149,
25739,
13,
1678,
500,
13,
29897,
13,
13,
13,
1990,
12782,
17907,
29898,
2917,
29918,
26586,
29889,
3991,
17907,
29892,
5354,
29922,
3970,
29032,
1125,
13,
1678,
9995,
13554,
263,
2295,
4972,
363,
6254,
29888,
29891,
10523,
29950,
4125,
1213,
15945,
13,
13,
1678,
478,
1001,
13381,
353,
29871,
29896,
13,
1678,
8707,
8186,
9838,
29918,
13875,
1799,
353,
2295,
29918,
26586,
29889,
6007,
29940,
29918,
13875,
1799,
29918,
29907,
3927,
15789,
29918,
13152,
2208,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
732,
14035,
13,
1678,
822,
7465,
29918,
657,
29918,
6768,
29918,
1731,
29898,
2917,
29918,
8269,
1125,
13,
4706,
9995,
13554,
278,
4972,
1213,
15945,
13,
4706,
736,
25186,
17907,
4598,
29898,
2917,
29918,
8269,
29897,
13,
13,
1678,
7465,
822,
7465,
29918,
15480,
29918,
2080,
29898,
1311,
29892,
1404,
29918,
2080,
1125,
13,
4706,
9995,
7211,
403,
1404,
16140,
1213,
15945,
13,
4706,
8952,
353,
1404,
29918,
2080,
29889,
657,
29898,
6007,
29943,
29918,
11889,
5813,
29897,
13,
4706,
4800,
353,
1404,
29918,
2080,
29889,
657,
29898,
6007,
29943,
29918,
25711,
17013,
29897,
13,
13,
4706,
19766,
353,
1404,
29918,
2080,
29889,
657,
29898,
6007,
29943,
29918,
29950,
7466,
29892,
22236,
29918,
29950,
7466,
29897,
13,
4706,
16248,
353,
317,
4897,
15082,
3352,
29918,
1430,
11191,
6992,
9375,
29961,
29882,
431,
29962,
13,
13,
4706,
7465,
411,
323,
801,
4125,
4032,
29898,
6786,
29892,
4800,
29892,
7882,
29918,
2271,
29922,
29734,
29897,
408,
3132,
29901,
13,
9651,
7272,
3132,
29889,
7507,
580,
13,
9651,
736,
1583,
29889,
12674,
29918,
3258,
29918,
8269,
29898,
13,
18884,
3611,
29922,
6786,
29892,
13,
18884,
848,
29922,
1792,
29918,
2080,
29892,
13,
9651,
1723,
13,
13,
1678,
7465,
822,
7465,
29918,
10568,
29918,
1792,
29898,
1311,
29892,
1404,
29918,
2080,
29922,
8516,
1125,
13,
4706,
9995,
13554,
278,
2847,
4331,
3025,
2295,
4972,
1213,
15945,
13,
4706,
4436,
353,
6571,
13,
13,
4706,
565,
1404,
29918,
2080,
29901,
13,
9651,
7272,
1583,
29889,
12674,
29918,
842,
29918,
13092,
29918,
333,
29898,
1792,
29918,
2080,
29889,
657,
29898,
6007,
29943,
29918,
11889,
5813,
876,
13,
9651,
1583,
3032,
370,
441,
29918,
361,
29918,
13092,
29918,
333,
29918,
2917,
2955,
580,
13,
13,
9651,
1018,
29901,
13,
18884,
736,
7272,
1583,
29889,
12674,
29918,
15480,
29918,
2080,
29898,
1792,
29918,
2080,
29897,
13,
9651,
5174,
1763,
29877,
14804,
3089,
29879,
2451,
29901,
13,
18884,
4436,
3366,
3188,
3108,
353,
376,
517,
29877,
29918,
13011,
29918,
24830,
29908,
13,
9651,
5174,
9178,
28037,
2451,
29901,
13,
18884,
4436,
3366,
3188,
3108,
353,
376,
20965,
29918,
5150,
29908,
13,
9651,
5174,
313,
10851,
2392,
29892,
12477,
2392,
1125,
13,
18884,
4436,
3366,
3188,
3108,
353,
376,
29883,
6735,
29918,
6915,
29908,
13,
9651,
5174,
4241,
841,
749,
2451,
29901,
13,
18884,
4436,
3366,
3188,
3108,
353,
376,
2974,
29918,
262,
29918,
3396,
841,
749,
29908,
13,
9651,
5174,
8960,
408,
3682,
29901,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
6729,
328,
29899,
19499,
13,
18884,
4436,
3366,
3188,
3108,
353,
376,
26690,
29908,
13,
18884,
903,
14480,
17070,
29889,
11739,
29898,
11739,
29897,
13,
13,
4706,
736,
1583,
29889,
12674,
29918,
4294,
29918,
689,
29898,
13,
9651,
4331,
29918,
333,
543,
1792,
613,
848,
29918,
11010,
29922,
14573,
29918,
29903,
3210,
26862,
29892,
4436,
29922,
12523,
13,
4706,
1723,
13,
13,
1678,
7465,
822,
7465,
29918,
10568,
29918,
5215,
29898,
1311,
29892,
1053,
29918,
2917,
29901,
9657,
1125,
13,
4706,
9995,
13554,
278,
2847,
4331,
3025,
612,
23956,
5285,
1213,
15945,
13,
4706,
565,
451,
1053,
29918,
2917,
29901,
13,
9651,
736,
13,
13,
4706,
1018,
29901,
13,
9651,
736,
7272,
1583,
29889,
12674,
29918,
15480,
29918,
2080,
29898,
5215,
29918,
2917,
29897,
13,
4706,
5174,
1763,
29877,
14804,
3089,
29879,
2451,
29901,
13,
9651,
903,
14480,
17070,
29889,
2704,
703,
517,
29877,
29918,
13011,
29918,
24830,
1159,
13,
9651,
736,
1583,
29889,
12674,
29918,
370,
441,
29898,
23147,
543,
517,
29877,
29918,
13011,
29918,
24830,
1159,
13,
4706,
5174,
9178,
28037,
2451,
29901,
13,
9651,
903,
14480,
17070,
29889,
2704,
703,
20965,
29918,
5150,
1159,
13,
9651,
736,
1583,
29889,
12674,
29918,
370,
441,
29898,
23147,
543,
20965,
29918,
5150,
1159,
13,
4706,
5174,
313,
10851,
2392,
29892,
12477,
2392,
1125,
13,
9651,
903,
14480,
17070,
29889,
2704,
703,
29883,
6735,
29918,
6915,
1159,
13,
9651,
736,
1583,
29889,
12674,
29918,
370,
441,
29898,
23147,
543,
29883,
6735,
29918,
6915,
1159,
13,
4706,
5174,
4241,
841,
749,
2451,
29901,
13,
9651,
903,
14480,
17070,
29889,
2704,
703,
2974,
29918,
262,
29918,
3396,
841,
749,
1159,
13,
9651,
736,
1583,
29889,
12674,
29918,
370,
441,
29898,
23147,
543,
2974,
29918,
262,
29918,
3396,
841,
749,
1159,
13,
4706,
5174,
8960,
408,
3682,
29901,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
6729,
328,
29899,
19499,
13,
9651,
903,
14480,
17070,
29889,
11739,
29898,
11739,
29897,
13,
9651,
736,
1583,
29889,
12674,
29918,
370,
441,
29898,
23147,
543,
26690,
1159,
13,
13,
13,
1990,
25186,
17907,
4598,
29898,
2917,
29918,
26586,
29889,
5856,
17907,
1125,
13,
1678,
9995,
13554,
263,
2984,
4972,
363,
6254,
29888,
29891,
10523,
29950,
4125,
1213,
15945,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2295,
29918,
8269,
1125,
13,
4706,
9995,
6644,
6646,
3987,
4972,
1213,
15945,
13,
4706,
1583,
29889,
2917,
29918,
8269,
353,
2295,
29918,
8269,
13,
13,
1678,
7465,
822,
7465,
29918,
10568,
29918,
2344,
29898,
1311,
29892,
1404,
29918,
2080,
29922,
8516,
1125,
13,
4706,
9995,
2517,
482,
278,
6254,
29888,
29891,
10523,
29950,
4125,
3987,
1213,
15945,
13,
4706,
736,
7272,
1583,
29889,
12674,
29918,
10568,
29918,
5504,
29918,
19207,
580,
13,
13,
1678,
7465,
822,
7465,
29918,
10568,
29918,
5504,
29918,
19207,
29898,
1311,
29892,
1404,
29918,
2080,
29922,
8516,
1125,
13,
4706,
9995,
2517,
482,
278,
3987,
11211,
7292,
11217,
1213,
15945,
13,
4706,
565,
1404,
29918,
2080,
338,
451,
6213,
29901,
13,
9651,
736,
1583,
29889,
12674,
29918,
3258,
29918,
8269,
29898,
3257,
543,
613,
848,
29922,
1792,
29918,
2080,
29897,
13,
13,
4706,
736,
1583,
29889,
12674,
29918,
4294,
29918,
689,
29898,
13,
9651,
4331,
29918,
333,
543,
5504,
29918,
19207,
613,
13,
9651,
848,
29918,
11010,
29922,
1555,
29889,
12763,
29898,
13,
18884,
426,
13,
462,
1678,
1700,
29889,
19347,
29898,
13,
462,
4706,
8707,
29943,
29918,
14474,
29918,
23845,
8932,
29892,
13,
462,
4706,
2322,
29922,
1311,
29889,
2917,
29918,
8269,
29889,
6768,
29889,
657,
29898,
13,
462,
9651,
8707,
29943,
29918,
14474,
29918,
23845,
8932,
29892,
22236,
29918,
14474,
29918,
23845,
8932,
13,
462,
4706,
10353,
13,
462,
268,
1125,
1700,
29889,
3596,
29898,
11023,
29889,
1066,
3321,
29918,
524,
29892,
1700,
29889,
6821,
1160,
29898,
1195,
29922,
16173,
29918,
14474,
29918,
23845,
8932,
876,
13,
18884,
500,
13,
9651,
10353,
13,
4706,
1723,
13,
2
] |
examples/i2b2/i2b2.py | sean-dingxu/sciwing | 0 | 1615958 | from sciwing.modules.lstm2seqencoder import Lstm2SeqEncoder
from sciwing.models.rnn_seq_crf_tagger import RnnSeqCrfTagger
from sciwing.modules.embedders.trainable_word_embedder import TrainableWordEmbedder
from sciwing.modules.embedders.bow_elmo_embedder import BowElmoEmbedder
from sciwing.modules.embedders.concat_embedders import ConcatEmbedders
from sciwing.datasets.seq_labeling.conll_dataset import CoNLLDatasetManager
from sciwing.metrics.token_cls_accuracy import TokenClassificationAccuracy
import sciwing.constants as constants
import torch
import torch.optim as optim
from sciwing.engine.engine import Engine
import argparse
import wasabi
import pathlib
FILES = constants.FILES
PATHS = constants.PATHS
CORA_FILE = FILES["CORA_FILE"]
OUTPUT_DIR = PATHS["OUTPUT_DIR"]
CONFIGS_DIR = PATHS["CONFIGS_DIR"]
DATA_DIR = PATHS["DATA_DIR"]
if __name__ == "__main__":
# read the hyperparams from config file
parser = argparse.ArgumentParser(
description="LSTM CRF Parscit tagger for reference string parsing"
)
parser.add_argument("--exp_name", help="Specify an experiment name", type=str)
parser.add_argument("--model_save_dir", help="Model save directory", type=str)
parser.add_argument("--bs", help="batch size", type=int)
parser.add_argument("--lr", help="learning rate", type=float)
parser.add_argument("--epochs", help="number of epochs", type=int)
parser.add_argument(
"--save_every", help="Save the model every few epochs", type=int
)
parser.add_argument(
"--log_train_metrics_every",
help="Log training metrics every few iterations",
type=int,
)
parser.add_argument(
"--char_emb_dim", help="character embedding dimension", type=int
)
parser.add_argument(
"--emb_type",
help="The type of glove embedding you want. The allowed types are glove_6B_50, glove_6B_100, "
"glove_6B_200, glove_6B_300, parscit",
)
parser.add_argument(
"--hidden_dim", help="Hidden dimension of the lstm encoder", type=int
)
parser.add_argument(
"--bidirectional",
help="Specify Whether the lstm is bidirectional or uni-directional",
action="store_true",
)
parser.add_argument(
"--char_encoder_hidden_dim",
help="Character encoder hidden dimension.",
type=int,
)
parser.add_argument(
"--combine_strategy",
help="How do you want to combine the hidden dimensions of the two "
"combinations",
)
parser.add_argument("--device", help="Device on which the model is run", type=str)
parser.add_argument(
"--sample_proportion",
help="Sampling proportion of dataset for debugging",
type=float,
)
args = parser.parse_args()
msg_printer = wasabi.Printer()
data_dir = pathlib.Path(DATA_DIR)
train_filename = data_dir.joinpath("i2b2.train")
dev_filename = data_dir.joinpath("i2b2.train")
test_filename = data_dir.joinpath("i2b2.train")
data_manager = CoNLLDatasetManager(
train_filename=train_filename,
dev_filename=dev_filename,
test_filename=test_filename,
column_names=["NER", "NER", "NER"],
train_only="ner",
)
word_embedder = TrainableWordEmbedder(
embedding_type=args.emb_type, device=args.device, datasets_manager=data_manager
)
elmo_embedder = BowElmoEmbedder(
datasets_manager=data_manager, layer_aggregation="sum", device=args.device
)
embedder = ConcatEmbedders([word_embedder, elmo_embedder])
lstm2seqencoder = Lstm2SeqEncoder(
embedder=embedder,
hidden_dim=args.hidden_dim,
bidirectional=args.bidirectional,
combine_strategy=args.combine_strategy,
rnn_bias=True,
device=torch.device(args.device),
dropout_value=0.5,
add_projection_layer=False,
)
model = RnnSeqCrfTagger(
rnn2seqencoder=lstm2seqencoder,
encoding_dim=2 * args.hidden_dim
if args.bidirectional and args.combine_strategy == "concat"
else args.hidden_dim,
device=torch.device(args.device),
datasets_manager=data_manager,
)
optimizer = optim.Adam(params=model.parameters(), lr=args.lr)
train_metric = TokenClassificationAccuracy(datasets_manager=data_manager)
dev_metric = TokenClassificationAccuracy(datasets_manager=data_manager)
test_metric = TokenClassificationAccuracy(datasets_manager=data_manager)
scheduler = torch.optim.lr_scheduler.ReduceLROnPlateau(
optimizer=optimizer, mode="max", factor=0.1, patience=2
)
engine = Engine(
model=model,
datasets_manager=data_manager,
optimizer=optimizer,
batch_size=args.bs,
save_dir=args.model_save_dir,
num_epochs=args.epochs,
train_metric=train_metric,
validation_metric=dev_metric,
test_metric=test_metric,
save_every=args.save_every,
log_train_metrics_every=args.log_train_metrics_every,
device=torch.device(args.device),
track_for_best="macro_fscore",
lr_scheduler=scheduler,
sample_proportion=args.sample_proportion,
use_wandb=True,
experiment_hyperparams=vars(args),
)
engine.run()
| [
1,
515,
4560,
16958,
29889,
7576,
29889,
20155,
29885,
29906,
11762,
3977,
6119,
1053,
365,
303,
29885,
29906,
23718,
8566,
6119,
13,
3166,
4560,
16958,
29889,
9794,
29889,
29878,
15755,
29918,
11762,
29918,
7283,
29888,
29918,
4039,
914,
1053,
390,
15755,
23718,
29907,
9600,
8176,
914,
13,
3166,
4560,
16958,
29889,
7576,
29889,
17987,
8623,
29889,
14968,
519,
29918,
1742,
29918,
17987,
672,
1053,
28186,
519,
14463,
6026,
2580,
672,
13,
3166,
4560,
16958,
29889,
7576,
29889,
17987,
8623,
29889,
17729,
29918,
295,
4346,
29918,
17987,
672,
1053,
13432,
6489,
4346,
6026,
2580,
672,
13,
3166,
4560,
16958,
29889,
7576,
29889,
17987,
8623,
29889,
17685,
29918,
17987,
8623,
1053,
1281,
4117,
6026,
2580,
8623,
13,
3166,
4560,
16958,
29889,
14538,
1691,
29889,
11762,
29918,
1643,
292,
29889,
535,
645,
29918,
24713,
1053,
3189,
29940,
2208,
16390,
24541,
3260,
13,
3166,
4560,
16958,
29889,
2527,
10817,
29889,
6979,
29918,
25932,
29918,
562,
2764,
4135,
1053,
25159,
2385,
2450,
7504,
332,
4135,
13,
5215,
4560,
16958,
29889,
3075,
1934,
408,
17727,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
20640,
408,
5994,
13,
3166,
4560,
16958,
29889,
10599,
29889,
10599,
1053,
10863,
13,
5215,
1852,
5510,
13,
5215,
471,
19266,
13,
5215,
2224,
1982,
13,
13,
24483,
353,
17727,
29889,
24483,
13,
10145,
29903,
353,
17727,
29889,
10145,
29903,
13,
13,
29907,
1955,
29909,
29918,
7724,
353,
9338,
17101,
3366,
29907,
1955,
29909,
29918,
7724,
3108,
13,
12015,
12336,
29918,
9464,
353,
23611,
29903,
3366,
12015,
12336,
29918,
9464,
3108,
13,
6007,
3738,
10749,
29918,
9464,
353,
23611,
29903,
3366,
6007,
3738,
10749,
29918,
9464,
3108,
13,
14573,
29918,
9464,
353,
23611,
29903,
3366,
14573,
29918,
9464,
3108,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
396,
1303,
278,
11266,
7529,
515,
2295,
934,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
13,
4706,
6139,
543,
29931,
1254,
29924,
15600,
29943,
1459,
1557,
277,
4055,
914,
363,
3407,
1347,
13755,
29908,
13,
1678,
1723,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
4548,
29918,
978,
613,
1371,
543,
10299,
1598,
385,
7639,
1024,
613,
1134,
29922,
710,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
4299,
29918,
7620,
29918,
3972,
613,
1371,
543,
3195,
4078,
3884,
613,
1134,
29922,
710,
29897,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
5824,
613,
1371,
543,
16175,
2159,
613,
1134,
29922,
524,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
29212,
613,
1371,
543,
21891,
6554,
613,
1134,
29922,
7411,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
1022,
2878,
29879,
613,
1371,
543,
4537,
310,
21502,
12168,
613,
1134,
29922,
524,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
376,
489,
7620,
29918,
17991,
613,
1371,
543,
11371,
278,
1904,
1432,
2846,
21502,
12168,
613,
1134,
29922,
524,
13,
1678,
1723,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
376,
489,
1188,
29918,
14968,
29918,
2527,
10817,
29918,
17991,
613,
13,
4706,
1371,
543,
3403,
6694,
21556,
1432,
2846,
24372,
613,
13,
4706,
1134,
29922,
524,
29892,
13,
1678,
1723,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
376,
489,
3090,
29918,
1590,
29918,
6229,
613,
1371,
543,
18609,
23655,
9927,
613,
1134,
29922,
524,
13,
1678,
1723,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
376,
489,
1590,
29918,
1853,
613,
13,
4706,
1371,
543,
1576,
1134,
310,
15482,
345,
23655,
366,
864,
29889,
450,
6068,
4072,
526,
15482,
345,
29918,
29953,
29933,
29918,
29945,
29900,
29892,
15482,
345,
29918,
29953,
29933,
29918,
29896,
29900,
29900,
29892,
376,
13,
4706,
376,
29887,
417,
345,
29918,
29953,
29933,
29918,
29906,
29900,
29900,
29892,
15482,
345,
29918,
29953,
29933,
29918,
29941,
29900,
29900,
29892,
610,
1557,
277,
613,
13,
1678,
1723,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
376,
489,
10892,
29918,
6229,
613,
1371,
543,
25108,
9927,
310,
278,
24471,
29885,
2094,
6119,
613,
1134,
29922,
524,
13,
1678,
1723,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
376,
489,
23883,
8684,
284,
613,
13,
4706,
1371,
543,
10299,
1598,
26460,
278,
24471,
29885,
338,
21000,
8684,
284,
470,
443,
29875,
29899,
20845,
284,
613,
13,
4706,
3158,
543,
8899,
29918,
3009,
613,
13,
1678,
1723,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
376,
489,
3090,
29918,
3977,
6119,
29918,
10892,
29918,
6229,
613,
13,
4706,
1371,
543,
20755,
2094,
6119,
7934,
9927,
19602,
13,
4706,
1134,
29922,
524,
29892,
13,
1678,
1723,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
376,
489,
17743,
457,
29918,
710,
8963,
613,
13,
4706,
1371,
543,
5328,
437,
366,
864,
304,
14405,
278,
7934,
13391,
310,
278,
1023,
376,
13,
4706,
376,
510,
2109,
800,
613,
13,
1678,
1723,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
10141,
613,
1371,
543,
11501,
373,
607,
278,
1904,
338,
1065,
613,
1134,
29922,
710,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
376,
489,
11249,
29918,
771,
637,
291,
613,
13,
4706,
1371,
543,
22966,
10335,
18618,
310,
8783,
363,
13490,
613,
13,
4706,
1134,
29922,
7411,
29892,
13,
1678,
1723,
13,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
1678,
10191,
29918,
558,
1639,
353,
471,
19266,
29889,
4040,
1639,
580,
13,
13,
1678,
848,
29918,
3972,
353,
2224,
1982,
29889,
2605,
29898,
14573,
29918,
9464,
29897,
13,
1678,
7945,
29918,
9507,
353,
848,
29918,
3972,
29889,
7122,
2084,
703,
29875,
29906,
29890,
29906,
29889,
14968,
1159,
13,
1678,
2906,
29918,
9507,
353,
848,
29918,
3972,
29889,
7122,
2084,
703,
29875,
29906,
29890,
29906,
29889,
14968,
1159,
13,
1678,
1243,
29918,
9507,
353,
848,
29918,
3972,
29889,
7122,
2084,
703,
29875,
29906,
29890,
29906,
29889,
14968,
1159,
13,
1678,
848,
29918,
12847,
353,
3189,
29940,
2208,
16390,
24541,
3260,
29898,
13,
4706,
7945,
29918,
9507,
29922,
14968,
29918,
9507,
29892,
13,
4706,
2906,
29918,
9507,
29922,
3359,
29918,
9507,
29892,
13,
4706,
1243,
29918,
9507,
29922,
1688,
29918,
9507,
29892,
13,
4706,
1897,
29918,
7039,
29922,
3366,
13865,
613,
376,
13865,
613,
376,
13865,
12436,
13,
4706,
7945,
29918,
6194,
543,
1089,
613,
13,
1678,
1723,
13,
1678,
1734,
29918,
17987,
672,
353,
28186,
519,
14463,
6026,
2580,
672,
29898,
13,
4706,
23655,
29918,
1853,
29922,
5085,
29889,
1590,
29918,
1853,
29892,
4742,
29922,
5085,
29889,
10141,
29892,
20035,
29918,
12847,
29922,
1272,
29918,
12847,
13,
1678,
1723,
13,
13,
1678,
560,
4346,
29918,
17987,
672,
353,
13432,
6489,
4346,
6026,
2580,
672,
29898,
13,
4706,
20035,
29918,
12847,
29922,
1272,
29918,
12847,
29892,
7546,
29918,
26193,
362,
543,
2083,
613,
4742,
29922,
5085,
29889,
10141,
13,
1678,
1723,
13,
13,
1678,
8297,
672,
353,
1281,
4117,
6026,
2580,
8623,
4197,
1742,
29918,
17987,
672,
29892,
560,
4346,
29918,
17987,
672,
2314,
13,
13,
1678,
24471,
29885,
29906,
11762,
3977,
6119,
353,
365,
303,
29885,
29906,
23718,
8566,
6119,
29898,
13,
4706,
8297,
672,
29922,
17987,
672,
29892,
13,
4706,
7934,
29918,
6229,
29922,
5085,
29889,
10892,
29918,
6229,
29892,
13,
4706,
21000,
8684,
284,
29922,
5085,
29889,
23883,
8684,
284,
29892,
13,
4706,
14405,
29918,
710,
8963,
29922,
5085,
29889,
17743,
457,
29918,
710,
8963,
29892,
13,
4706,
364,
15755,
29918,
29890,
3173,
29922,
5574,
29892,
13,
4706,
4742,
29922,
7345,
305,
29889,
10141,
29898,
5085,
29889,
10141,
511,
13,
4706,
5768,
449,
29918,
1767,
29922,
29900,
29889,
29945,
29892,
13,
4706,
788,
29918,
771,
6929,
29918,
13148,
29922,
8824,
29892,
13,
1678,
1723,
13,
1678,
1904,
353,
390,
15755,
23718,
29907,
9600,
8176,
914,
29898,
13,
4706,
364,
15755,
29906,
11762,
3977,
6119,
29922,
20155,
29885,
29906,
11762,
3977,
6119,
29892,
13,
4706,
8025,
29918,
6229,
29922,
29906,
334,
6389,
29889,
10892,
29918,
6229,
13,
4706,
565,
6389,
29889,
23883,
8684,
284,
322,
6389,
29889,
17743,
457,
29918,
710,
8963,
1275,
376,
17685,
29908,
13,
4706,
1683,
6389,
29889,
10892,
29918,
6229,
29892,
13,
4706,
4742,
29922,
7345,
305,
29889,
10141,
29898,
5085,
29889,
10141,
511,
13,
4706,
20035,
29918,
12847,
29922,
1272,
29918,
12847,
29892,
13,
1678,
1723,
13,
13,
1678,
5994,
3950,
353,
5994,
29889,
3253,
314,
29898,
7529,
29922,
4299,
29889,
16744,
3285,
301,
29878,
29922,
5085,
29889,
29212,
29897,
13,
1678,
7945,
29918,
16414,
353,
25159,
2385,
2450,
7504,
332,
4135,
29898,
14538,
1691,
29918,
12847,
29922,
1272,
29918,
12847,
29897,
13,
1678,
2906,
29918,
16414,
353,
25159,
2385,
2450,
7504,
332,
4135,
29898,
14538,
1691,
29918,
12847,
29922,
1272,
29918,
12847,
29897,
13,
1678,
1243,
29918,
16414,
353,
25159,
2385,
2450,
7504,
332,
4135,
29898,
14538,
1691,
29918,
12847,
29922,
1272,
29918,
12847,
29897,
13,
13,
1678,
1364,
14952,
353,
4842,
305,
29889,
20640,
29889,
29212,
29918,
816,
14952,
29889,
29934,
6085,
346,
29931,
1672,
29876,
3247,
403,
585,
29898,
13,
4706,
5994,
3950,
29922,
20640,
3950,
29892,
4464,
543,
3317,
613,
7329,
29922,
29900,
29889,
29896,
29892,
282,
24701,
29922,
29906,
13,
1678,
1723,
13,
13,
1678,
6012,
353,
10863,
29898,
13,
4706,
1904,
29922,
4299,
29892,
13,
4706,
20035,
29918,
12847,
29922,
1272,
29918,
12847,
29892,
13,
4706,
5994,
3950,
29922,
20640,
3950,
29892,
13,
4706,
9853,
29918,
2311,
29922,
5085,
29889,
5824,
29892,
13,
4706,
4078,
29918,
3972,
29922,
5085,
29889,
4299,
29918,
7620,
29918,
3972,
29892,
13,
4706,
954,
29918,
1022,
2878,
29879,
29922,
5085,
29889,
1022,
2878,
29879,
29892,
13,
4706,
7945,
29918,
16414,
29922,
14968,
29918,
16414,
29892,
13,
4706,
8845,
29918,
16414,
29922,
3359,
29918,
16414,
29892,
13,
4706,
1243,
29918,
16414,
29922,
1688,
29918,
16414,
29892,
13,
4706,
4078,
29918,
17991,
29922,
5085,
29889,
7620,
29918,
17991,
29892,
13,
4706,
1480,
29918,
14968,
29918,
2527,
10817,
29918,
17991,
29922,
5085,
29889,
1188,
29918,
14968,
29918,
2527,
10817,
29918,
17991,
29892,
13,
4706,
4742,
29922,
7345,
305,
29889,
10141,
29898,
5085,
29889,
10141,
511,
13,
4706,
5702,
29918,
1454,
29918,
13318,
543,
25254,
29918,
29888,
13628,
613,
13,
4706,
301,
29878,
29918,
816,
14952,
29922,
816,
14952,
29892,
13,
4706,
4559,
29918,
771,
637,
291,
29922,
5085,
29889,
11249,
29918,
771,
637,
291,
29892,
13,
4706,
671,
29918,
18622,
29890,
29922,
5574,
29892,
13,
4706,
7639,
29918,
24947,
7529,
29922,
16908,
29898,
5085,
511,
13,
1678,
1723,
13,
13,
1678,
6012,
29889,
3389,
580,
13,
2
] |
minecraft_launcher_lib/fabric.py | bopchik/Simple-minecraft-mod-launcher | 1 | 7627 | <filename>minecraft_launcher_lib/fabric.py
from .helper import download_file, get_user_agent
from .install import install_minecraft_version
from typing import List, Dict, Union
from xml.dom import minidom
import subprocess
import requests
import tempfile
import random
import os
def get_all_minecraft_versions() -> List[Dict[str,Union[str,bool]]]:
"""
Returns all available Minecraft Versions for fabric
"""
FABRIC_MINECARFT_VERSIONS_URL = "https://meta.fabricmc.net/v2/versions/game"
return requests.get(FABRIC_MINECARFT_VERSIONS_URL,headers={"user-agent": get_user_agent()}).json()
def get_stable_minecraft_versions() -> List[str]:
"""
Returns a list which only contains the stable Minecraft versions that supports fabric
"""
minecraft_versions = get_all_minecraft_versions()
stable_versions = []
for i in minecraft_versions:
if i["stable"] == True:
stable_versions.append(i["version"])
return stable_versions
def get_latest_minecraft_version() -> str:
"""
Returns the latest unstable Minecraft versions that supports fabric. This could be a snapshot.
"""
minecraft_versions = get_all_minecraft_versions()
return minecraft_versions[0]["version"]
def get_latest_stable_minecraft_version() -> str:
"""
Returns the latest stable Minecraft version that supports fabric
"""
stable_versions = get_stable_minecraft_versions()
return stable_versions[0]
def is_minecraft_version_supported(version: str) -> bool:
"""
Checks if a Minecraft version supported by fabric
"""
minecraft_versions = get_all_minecraft_versions()
for i in minecraft_versions:
if i["version"] == version:
return True
return False
def get_all_loader_versions() -> List[Dict[str,Union[str,bool,int]]]:
"""
Returns all loader versions
"""
FABRIC_LOADER_VERSIONS_URL = "https://meta.fabricmc.net/v2/versions/loader"
return requests.get(FABRIC_LOADER_VERSIONS_URL,headers={"user-agent": get_user_agent()}).json()
def get_latest_loader_version() -> str:
"""
Get the latest loader version
"""
loader_versions = get_all_loader_versions()
return loader_versions[0]["version"]
def get_latest_installer_version() -> str:
"""
Returns the latest installer version
"""
FABRIC_INSTALLER_MAVEN_URL = "https://maven.fabricmc.net/net/fabricmc/fabric-installer/maven-metadata.xml"
r = requests.get(FABRIC_INSTALLER_MAVEN_URL,headers={"user-agent": get_user_agent()})
xml_data = minidom.parseString(r.text)
release = xml_data.getElementsByTagName("release")
return release.item(0).lastChild.data
def install_fabric(path: str, minecraft_version: str,loader_version: str=None):
"""
Install a fabric version
"""
#Get latest loader version if not given
if not loader_version:
loader_version = get_latest_loader_version()
#Make sure the Minecraft version is installed
install_minecraft_version(path,minecraft_version)
#Get installer version
installer_version = get_latest_installer_version()
installer_download_url = f"https://maven.fabricmc.net/net/fabricmc/fabric-installer/{installer_version}/fabric-installer-{installer_version}.jar"
#Generate a temporary path for downloading the installer
installer_path = os.path.join(tempfile.gettempdir(),f"fabric-installer-{random.randrange(100,10000)}.tmp")
#Download the installer
download_file(installer_download_url,installer_path)
#Run the installer see https://fabricmc.net/wiki/install#cli_installation
subprocess.run(["java","-jar",installer_path,"client","-dir",path,"-mcversion",minecraft_version,"-loader",loader_version,"-noprofile","-snapshot"])
#Delete the installer we don't need them anymore
os.remove(installer_path)
#Install all libs of fabric
fabric_minecraft_version = f"fabric-loader-{loader_version}-{minecraft_version}"
install_minecraft_version(path,fabric_minecraft_version)
| [
1,
529,
9507,
29958,
24669,
17293,
29918,
15343,
261,
29918,
1982,
29914,
16582,
2200,
29889,
2272,
13,
3166,
869,
20907,
1053,
5142,
29918,
1445,
29892,
679,
29918,
1792,
29918,
14748,
13,
3166,
869,
6252,
1053,
2601,
29918,
24669,
17293,
29918,
3259,
13,
3166,
19229,
1053,
2391,
29892,
360,
919,
29892,
7761,
13,
3166,
4903,
29889,
3129,
1053,
1375,
333,
290,
13,
5215,
1014,
5014,
13,
5215,
7274,
13,
5215,
5694,
1445,
13,
5215,
4036,
13,
5215,
2897,
13,
13,
1753,
679,
29918,
497,
29918,
24669,
17293,
29918,
26100,
580,
1599,
2391,
29961,
21533,
29961,
710,
29892,
19986,
29961,
710,
29892,
11227,
5262,
5387,
13,
1678,
9995,
13,
1678,
16969,
599,
3625,
26833,
17293,
10138,
1080,
363,
18187,
13,
1678,
9995,
13,
1678,
383,
2882,
29934,
2965,
29918,
29924,
8895,
29907,
1718,
7818,
29918,
16358,
29903,
29918,
4219,
353,
376,
991,
597,
7299,
29889,
16582,
2200,
14047,
29889,
1212,
29914,
29894,
29906,
29914,
26100,
29914,
11802,
29908,
13,
1678,
736,
7274,
29889,
657,
29898,
29943,
2882,
29934,
2965,
29918,
29924,
8895,
29907,
1718,
7818,
29918,
16358,
29903,
29918,
4219,
29892,
13662,
3790,
29908,
1792,
29899,
14748,
1115,
679,
29918,
1792,
29918,
14748,
580,
7690,
3126,
580,
13,
13,
1753,
679,
29918,
13844,
29918,
24669,
17293,
29918,
26100,
580,
1599,
2391,
29961,
710,
5387,
13,
1678,
9995,
13,
1678,
16969,
263,
1051,
607,
871,
3743,
278,
13714,
26833,
17293,
6910,
393,
11286,
18187,
13,
1678,
9995,
13,
1678,
7903,
17293,
29918,
26100,
353,
679,
29918,
497,
29918,
24669,
17293,
29918,
26100,
580,
13,
1678,
13714,
29918,
26100,
353,
5159,
13,
1678,
363,
474,
297,
7903,
17293,
29918,
26100,
29901,
13,
4706,
565,
474,
3366,
13844,
3108,
1275,
5852,
29901,
13,
9651,
13714,
29918,
26100,
29889,
4397,
29898,
29875,
3366,
3259,
20068,
13,
1678,
736,
13714,
29918,
26100,
13,
13,
1753,
679,
29918,
12333,
29918,
24669,
17293,
29918,
3259,
580,
1599,
851,
29901,
13,
1678,
9995,
13,
1678,
16969,
278,
9281,
443,
13844,
26833,
17293,
6910,
393,
11286,
18187,
29889,
910,
1033,
367,
263,
22395,
29889,
13,
1678,
9995,
13,
1678,
7903,
17293,
29918,
26100,
353,
679,
29918,
497,
29918,
24669,
17293,
29918,
26100,
580,
13,
1678,
736,
7903,
17293,
29918,
26100,
29961,
29900,
29962,
3366,
3259,
3108,
13,
13,
1753,
679,
29918,
12333,
29918,
13844,
29918,
24669,
17293,
29918,
3259,
580,
1599,
851,
29901,
13,
1678,
9995,
13,
1678,
16969,
278,
9281,
13714,
26833,
17293,
1873,
393,
11286,
18187,
13,
1678,
9995,
13,
1678,
13714,
29918,
26100,
353,
679,
29918,
13844,
29918,
24669,
17293,
29918,
26100,
580,
13,
1678,
736,
13714,
29918,
26100,
29961,
29900,
29962,
13,
13,
1753,
338,
29918,
24669,
17293,
29918,
3259,
29918,
23765,
29898,
3259,
29901,
851,
29897,
1599,
6120,
29901,
13,
1678,
9995,
13,
1678,
5399,
29879,
565,
263,
26833,
17293,
1873,
6969,
491,
18187,
13,
1678,
9995,
13,
1678,
7903,
17293,
29918,
26100,
353,
679,
29918,
497,
29918,
24669,
17293,
29918,
26100,
580,
13,
1678,
363,
474,
297,
7903,
17293,
29918,
26100,
29901,
13,
4706,
565,
474,
3366,
3259,
3108,
1275,
1873,
29901,
13,
9651,
736,
5852,
13,
1678,
736,
7700,
13,
13,
1753,
679,
29918,
497,
29918,
12657,
29918,
26100,
580,
1599,
29871,
2391,
29961,
21533,
29961,
710,
29892,
19986,
29961,
710,
29892,
11227,
29892,
524,
5262,
5387,
13,
1678,
9995,
13,
1678,
16969,
599,
23466,
6910,
13,
1678,
9995,
13,
1678,
383,
2882,
29934,
2965,
29918,
29428,
1001,
29918,
16358,
29903,
29918,
4219,
353,
376,
991,
597,
7299,
29889,
16582,
2200,
14047,
29889,
1212,
29914,
29894,
29906,
29914,
26100,
29914,
12657,
29908,
13,
1678,
736,
7274,
29889,
657,
29898,
29943,
2882,
29934,
2965,
29918,
29428,
1001,
29918,
16358,
29903,
29918,
4219,
29892,
13662,
3790,
29908,
1792,
29899,
14748,
1115,
679,
29918,
1792,
29918,
14748,
580,
7690,
3126,
580,
13,
13,
1753,
679,
29918,
12333,
29918,
12657,
29918,
3259,
580,
1599,
851,
29901,
13,
1678,
9995,
13,
1678,
3617,
278,
9281,
23466,
1873,
13,
1678,
9995,
13,
1678,
23466,
29918,
26100,
353,
679,
29918,
497,
29918,
12657,
29918,
26100,
580,
13,
1678,
736,
23466,
29918,
26100,
29961,
29900,
29962,
3366,
3259,
3108,
13,
13,
1753,
679,
29918,
12333,
29918,
6252,
261,
29918,
3259,
580,
1599,
851,
29901,
13,
1678,
9995,
13,
1678,
16969,
278,
9281,
27786,
1873,
13,
1678,
9995,
13,
1678,
383,
2882,
29934,
2965,
29918,
25580,
9818,
1001,
29918,
1529,
29963,
1430,
29918,
4219,
353,
376,
991,
597,
12419,
29889,
16582,
2200,
14047,
29889,
1212,
29914,
1212,
29914,
16582,
2200,
14047,
29914,
16582,
2200,
29899,
6252,
261,
29914,
12419,
29899,
19635,
29889,
3134,
29908,
13,
1678,
364,
353,
7274,
29889,
657,
29898,
29943,
2882,
29934,
2965,
29918,
25580,
9818,
1001,
29918,
1529,
29963,
1430,
29918,
4219,
29892,
13662,
3790,
29908,
1792,
29899,
14748,
1115,
679,
29918,
1792,
29918,
14748,
580,
1800,
13,
1678,
4903,
29918,
1272,
353,
1375,
333,
290,
29889,
5510,
1231,
29898,
29878,
29889,
726,
29897,
13,
1678,
6507,
353,
4903,
29918,
1272,
29889,
22266,
29269,
703,
14096,
1159,
13,
1678,
736,
6507,
29889,
667,
29898,
29900,
467,
4230,
5938,
29889,
1272,
13,
13,
1753,
2601,
29918,
16582,
2200,
29898,
2084,
29901,
851,
29892,
7903,
17293,
29918,
3259,
29901,
851,
29892,
12657,
29918,
3259,
29901,
851,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
16052,
263,
18187,
1873,
13,
1678,
9995,
13,
1678,
396,
2577,
9281,
23466,
1873,
565,
451,
2183,
13,
1678,
565,
451,
23466,
29918,
3259,
29901,
13,
4706,
23466,
29918,
3259,
353,
679,
29918,
12333,
29918,
12657,
29918,
3259,
580,
13,
1678,
396,
9984,
1854,
278,
26833,
17293,
1873,
338,
5130,
13,
1678,
2601,
29918,
24669,
17293,
29918,
3259,
29898,
2084,
29892,
24669,
17293,
29918,
3259,
29897,
13,
1678,
396,
2577,
27786,
1873,
13,
1678,
27786,
29918,
3259,
353,
679,
29918,
12333,
29918,
6252,
261,
29918,
3259,
580,
13,
1678,
27786,
29918,
10382,
29918,
2271,
353,
285,
29908,
991,
597,
12419,
29889,
16582,
2200,
14047,
29889,
1212,
29914,
1212,
29914,
16582,
2200,
14047,
29914,
16582,
2200,
29899,
6252,
261,
19248,
6252,
261,
29918,
3259,
6822,
16582,
2200,
29899,
6252,
261,
29899,
29912,
6252,
261,
29918,
3259,
1836,
4758,
29908,
13,
1678,
396,
5631,
403,
263,
13201,
2224,
363,
28536,
278,
27786,
13,
1678,
27786,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
7382,
1445,
29889,
657,
7382,
3972,
3285,
29888,
29908,
16582,
2200,
29899,
6252,
261,
29899,
29912,
8172,
29889,
9502,
3881,
29898,
29896,
29900,
29900,
29892,
29896,
29900,
29900,
29900,
29900,
29512,
7050,
1159,
13,
1678,
396,
22954,
278,
27786,
13,
1678,
5142,
29918,
1445,
29898,
6252,
261,
29918,
10382,
29918,
2271,
29892,
6252,
261,
29918,
2084,
29897,
13,
1678,
396,
6558,
278,
27786,
1074,
2045,
597,
16582,
2200,
14047,
29889,
1212,
29914,
4594,
29914,
6252,
29937,
11303,
29918,
6252,
362,
13,
1678,
1014,
5014,
29889,
3389,
29898,
3366,
1645,
3284,
29899,
4758,
613,
6252,
261,
29918,
2084,
1699,
4645,
3284,
29899,
3972,
613,
2084,
1699,
29899,
14047,
3259,
613,
24669,
17293,
29918,
3259,
1699,
29899,
12657,
613,
12657,
29918,
3259,
1699,
29899,
29876,
26555,
1445,
3284,
29899,
29879,
14551,
20068,
13,
1678,
396,
12498,
278,
27786,
591,
1016,
29915,
29873,
817,
963,
15128,
13,
1678,
2897,
29889,
5992,
29898,
6252,
261,
29918,
2084,
29897,
13,
1678,
396,
23271,
599,
4303,
29879,
310,
18187,
13,
1678,
18187,
29918,
24669,
17293,
29918,
3259,
353,
285,
29908,
16582,
2200,
29899,
12657,
29899,
29912,
12657,
29918,
3259,
7402,
29912,
24669,
17293,
29918,
3259,
5038,
13,
1678,
2601,
29918,
24669,
17293,
29918,
3259,
29898,
2084,
29892,
16582,
2200,
29918,
24669,
17293,
29918,
3259,
29897,
13,
2
] |
src/tasks/aws_audit_vpc_flow_logs_task.py | jezd-axyl/platsec-aws-scanner | 0 | 173754 | from dataclasses import dataclass
from typing import Any, Dict
from src.clients.composite.aws_vpc_client import AwsVpcClient
from src.data.aws_organizations_types import Account
from src.tasks.aws_vpc_task import AwsVpcTask
@dataclass
class AwsAuditVPCFlowLogsTask(AwsVpcTask):
def __init__(self, account: Account, enforce: bool, with_subscription_filter: bool) -> None:
super().__init__("audit VPC flow logs compliance", account, enforce)
self.with_subscription_filter = with_subscription_filter
def _run_task(self, client: AwsVpcClient) -> Dict[Any, Any]:
vpcs = client.list_vpcs()
actions = client.enforcement_actions(vpcs, self.with_subscription_filter)
if self.enforce:
apply = [a.apply() for a in actions]
return {"vpcs": vpcs, "enforcement_actions": apply}
else:
plans = [a.plan() for a in actions]
return {"vpcs": vpcs, "enforcement_actions": plans}
| [
1,
515,
848,
13203,
1053,
848,
1990,
13,
3166,
19229,
1053,
3139,
29892,
360,
919,
13,
13,
3166,
4765,
29889,
11303,
1237,
29889,
22410,
568,
29889,
10467,
29918,
29894,
6739,
29918,
4645,
1053,
319,
5652,
29963,
6739,
4032,
13,
3166,
4765,
29889,
1272,
29889,
10467,
29918,
6388,
17063,
29918,
8768,
1053,
16535,
13,
3166,
4765,
29889,
20673,
29889,
10467,
29918,
29894,
6739,
29918,
7662,
1053,
319,
5652,
29963,
6739,
5398,
13,
13,
13,
29992,
1272,
1990,
13,
1990,
319,
5652,
29909,
566,
277,
29963,
9026,
17907,
3403,
29879,
5398,
29898,
29909,
5652,
29963,
6739,
5398,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3633,
29901,
16535,
29892,
427,
10118,
29901,
6120,
29892,
411,
29918,
1491,
22371,
29918,
4572,
29901,
6120,
29897,
1599,
6213,
29901,
13,
4706,
2428,
2141,
1649,
2344,
1649,
703,
15052,
277,
478,
9026,
4972,
10748,
752,
13036,
613,
3633,
29892,
427,
10118,
29897,
13,
4706,
1583,
29889,
2541,
29918,
1491,
22371,
29918,
4572,
353,
411,
29918,
1491,
22371,
29918,
4572,
13,
13,
1678,
822,
903,
3389,
29918,
7662,
29898,
1311,
29892,
3132,
29901,
319,
5652,
29963,
6739,
4032,
29897,
1599,
360,
919,
29961,
10773,
29892,
3139,
5387,
13,
4706,
325,
29886,
2395,
353,
3132,
29889,
1761,
29918,
29894,
29886,
2395,
580,
13,
4706,
8820,
353,
3132,
29889,
264,
1454,
13561,
29918,
7387,
29898,
29894,
29886,
2395,
29892,
1583,
29889,
2541,
29918,
1491,
22371,
29918,
4572,
29897,
13,
4706,
565,
1583,
29889,
264,
10118,
29901,
13,
9651,
3394,
353,
518,
29874,
29889,
7302,
580,
363,
263,
297,
8820,
29962,
13,
9651,
736,
8853,
29894,
29886,
2395,
1115,
325,
29886,
2395,
29892,
376,
264,
1454,
13561,
29918,
7387,
1115,
3394,
29913,
13,
4706,
1683,
29901,
13,
9651,
13900,
353,
518,
29874,
29889,
9018,
580,
363,
263,
297,
8820,
29962,
13,
9651,
736,
8853,
29894,
29886,
2395,
1115,
325,
29886,
2395,
29892,
376,
264,
1454,
13561,
29918,
7387,
1115,
13900,
29913,
13,
2
] |
nipy/utils/__init__.py | neurospin/nipy | 1 | 1605596 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
Package containing both generic configuration and testing stuff as well as
general purpose functions that are useful to a broader community and not
restricted to the neuroimaging community. This package may contain
third-party software included here for convenience.
"""
from nibabel.data import make_datasource, DataError, datasource_or_bomber
# Module level datasource instances for convenience
from ..info import DATA_PKGS
templates = datasource_or_bomber(DATA_PKGS['nipy-templates'])
example_data = datasource_or_bomber(DATA_PKGS['nipy-data'])
from nipy.testing import Tester
test = Tester().test
bench = Tester().bench
| [
1,
396,
953,
16815,
29901,
448,
29930,
29899,
4464,
29901,
3017,
29936,
11451,
29899,
12860,
29899,
10289,
29901,
29871,
29946,
29936,
29536,
29899,
21175,
29899,
8513,
29901,
4263,
448,
29930,
29899,
13,
29937,
3516,
29901,
731,
11791,
29922,
4691,
380,
29879,
29922,
29946,
18696,
29922,
29946,
2381,
29922,
29946,
634,
29901,
13,
15945,
29908,
13,
14459,
6943,
1716,
10035,
5285,
322,
6724,
6433,
408,
1532,
408,
13,
17492,
6437,
3168,
393,
526,
5407,
304,
263,
2545,
1664,
7881,
322,
451,
13,
5060,
4146,
287,
304,
278,
452,
2192,
326,
6751,
7881,
29889,
910,
3577,
1122,
1712,
13,
22585,
29899,
22633,
7047,
5134,
1244,
363,
29703,
29889,
13,
15945,
29908,
13,
13,
3166,
302,
747,
1107,
29889,
1272,
1053,
1207,
29918,
14538,
1167,
29892,
3630,
2392,
29892,
6155,
1167,
29918,
272,
29918,
29890,
290,
495,
13,
13,
29937,
15591,
3233,
6155,
1167,
8871,
363,
29703,
13,
3166,
6317,
3888,
1053,
360,
8254,
29918,
21738,
10749,
13,
20943,
353,
6155,
1167,
29918,
272,
29918,
29890,
290,
495,
29898,
14573,
29918,
21738,
10749,
1839,
29876,
666,
29891,
29899,
20943,
11287,
13,
4773,
29918,
1272,
353,
6155,
1167,
29918,
272,
29918,
29890,
290,
495,
29898,
14573,
29918,
21738,
10749,
1839,
29876,
666,
29891,
29899,
1272,
11287,
13,
13,
3166,
302,
666,
29891,
29889,
13424,
1053,
323,
4156,
13,
1688,
353,
323,
4156,
2141,
1688,
13,
1785,
305,
353,
323,
4156,
2141,
1785,
305,
13,
2
] |
lib/concurrence/_threading/__init__.py | concurrence/concurrence | 27 | 116696 | # Copyright (C) 2009, Hyves (Startphone Ltd.)
#
# This module is part of the Concurrence Framework and is released under
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
def disable_threading():
import sys
import thread
sys.modules['thread'] = thread
import threading
sys.modules['threading'] = threading
import dummy_thread
sys.modules['dummy_thread'] = dummy_thread
import dummy_threading
sys.modules['dummy_threading'] = dummy_threading
import logging
logging.logThreads = 0
#for name, _ in sys.modules.items():
# print name, _
| [
1,
396,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29900,
29929,
29892,
9665,
1960,
313,
4763,
6710,
19806,
1846,
13,
29937,
13,
29937,
910,
3883,
338,
760,
310,
278,
1281,
21962,
663,
16657,
322,
338,
5492,
1090,
13,
29937,
278,
1570,
350,
7230,
19245,
29901,
1732,
597,
1636,
29889,
22156,
1167,
29889,
990,
29914,
506,
11259,
29914,
29890,
4928,
29899,
506,
1947,
29889,
1961,
13,
13,
1753,
11262,
29918,
7097,
292,
7295,
13,
1678,
1053,
10876,
13,
13,
1678,
1053,
3244,
13,
1678,
10876,
29889,
7576,
1839,
7097,
2033,
353,
3244,
13,
1678,
1053,
3244,
292,
13,
1678,
10876,
29889,
7576,
1839,
7097,
292,
2033,
353,
3244,
292,
13,
1678,
1053,
20254,
29918,
7097,
13,
1678,
10876,
29889,
7576,
1839,
29881,
11770,
29918,
7097,
2033,
353,
20254,
29918,
7097,
13,
1678,
1053,
20254,
29918,
7097,
292,
13,
1678,
10876,
29889,
7576,
1839,
29881,
11770,
29918,
7097,
292,
2033,
353,
20254,
29918,
7097,
292,
13,
1678,
1053,
12183,
13,
1678,
12183,
29889,
1188,
4899,
29879,
353,
29871,
29900,
13,
13,
1678,
396,
1454,
1024,
29892,
903,
297,
10876,
29889,
7576,
29889,
7076,
7295,
13,
1678,
396,
1678,
1596,
1024,
29892,
903,
13,
2
] |
calculate_fCOS/calc_fCOS_C4pct_run_driver.py | Timothy-W-Hilton/COS_Spatial_Analyses | 0 | 141243 | <reponame>Timothy-W-Hilton/COS_Spatial_Analyses<filename>calculate_fCOS/calc_fCOS_C4pct_run_driver.py<gh_stars>0
#!/usr/bin/env python
# the above shebang uses a virtualenv if one is running, otherwise the
# system python
"""Short example of using python to perform the environment variable
management, etc. needed to use the I/O API fortran library.
Using python has the advantage of providing access to
stem_pytools.ecampbell300_data_paths, where the location of all the
various STEM runs' data files is listed.
<NAME>, UC Merced, 13 January 2015
"""
import os
import os.path
import sys
import subprocess
import re
import netCDF4
import matplotlib.pyplot as plt
import numpy as np
import brewer2mpl
import argparse
import datetime
from stem_pytools import ecampbell300_data_paths as edp
from stem_pytools import na_map
from stem_pytools import STEM_parsers as sp
from timutils import midpt_norm
# ============================================================
def fCOS_from_C4pct_diagnostics():
draw_LRU_map()
runs = edp.get_C3C4runs()
for k in runs.keys():
fcos = sp.parse_STEM_var(nc_fname=runs[k].fcos_path,
t0=datetime.datetime(2008, 7, 1),
t1=datetime.datetime(2008, 8, 31, 23, 59, 59),
varname='cos')
print('{}: min: {:0.2e} max: {:0.2e} mean: {:0.2e}'.format(
k,
fcos['data'].min(),
fcos['data'].max(),
fcos['data'].mean()))
fig, ax = plt.subplots()
cm = ax.pcolor(fcos['data'].squeeze().mean(axis=0),
cmap=plt.get_cmap('Blues'))
plt.colorbar(cm)
plt.title(k)
fig.savefig('/tmp/fcos_{}.png'.format(k))
# ============================================================
def draw_LRU_map():
nc = netCDF4.Dataset(os.environ['LRU_FILE'])
LRU = nc.variables['LRU'][...].squeeze()
nc.close()
stem_lon, stem_lat, topo = sp.parse_STEM_coordinates(
os.path.join(os.getenv('SARIKA_INPUT'), 'TOPO-124x124.nc'))
fcos_norm = midpt_norm.MidpointNormalize(midpoint=1.61)
lru_map = na_map.NAMapFigure(cb_axis=True, t_str='LRU from C4 veg pct')
cm = lru_map.map.pcolor(stem_lon, stem_lat, LRU,
cmap=plt.get_cmap('PuOr'),
latlon=True,
norm=fcos_norm)
ticks = np.concatenate([np.linspace(1.12, 1.84, 5), np.array([1.61])])
cbar = lru_map.fig.colorbar(cm, cax=lru_map.ax_cmap, ticks=ticks)
cbar.ax.set_title('LRU')
lru_map.fig.savefig('LRU_from_c4pct.pdf')
# parse arguments
parser = argparse.ArgumentParser(description=(
("script to calculate fCOS for all GPP products defined"
" in stem_pytools.ecampbell300_data_paths.")))
parser.add_argument('--diagnostics',
dest='run_diagnostics',
action='store_true',
help=('if set, some diagnostic plots are created'
'after the calculations.'))
args = parser.parse_args()
# compile the fortran code
subprocess.call('make -f calc_fCOS_C4pct.mk clobber', shell=True)
subprocess.call('make -f calc_fCOS_C4pct.mk', shell=True)
fname_C4pct = os.path.join('/home', 'thilton', 'projects', 'COS (ecampbell3)',
'C4_percentage', 'ISLSCP_C4_1DEG_932_regridded',
'C4_pct_124x124.nc')
# get the GPP I/O API file for the CASA m15 file
runs = edp.get_C3C4runs()
for this_run in runs.values():
fname_GPP = this_run.gpp_path
sys.stdout.write('\n\nGPP file: {}\n'.format(fname_GPP))
sys.stdout.write('C4 file: {}\n\n'.format(fname_C4pct))
sys.stdout.flush()
if os.path.exists(fname_GPP) and os.path.exists(fname_C4pct):
os.environ['GRIDDESC'] = os.path.join(os.environ['HOME'], 'Data',
'STEM', 'input', 'GRIDDESC.txt')
os.environ['GPP_INPUT'] = fname_GPP
os.environ['C4pct_INPUT'] = fname_C4pct
os.environ['RATIO_FILE'] = './COS_CO2_ratio_const_1.1.nc'
os.environ['LRU_FILE'] = './LRU_from_C4pct.nc'
os.environ['fCOS_FILE'] = (
'./fCOS_{}_2008_124x124_LRUfromC4pct.nc'.format(
re.sub('[\ \-]', '', this_run.model)))
# run the fortran part
if this_run.model.lower().find('casa') >= 0:
t_step = 30000 # 3 hours expressed as HHMMSS
else:
t_step = 7320000 # 30.5 days expressed as HHMMSS
subprocess.call(
'./calc_fCOS_C4pct.x {} {}'.format(
re.sub(' ', '\ ', this_run.model),
t_step),
shell=True)
# move the new fCOS file to its permanent location
newname = os.path.join(os.path.dirname(this_run.fcos_path),
os.path.basename(os.environ['fCOS_FILE']))
sys.stdout.write('\n{} --> {}\n\n'.format(os.environ['fCOS_FILE'],
newname))
sys.stdout.flush()
os.rename(os.environ['fCOS_FILE'], newname)
else:
print('GPP file not found')
if args.run_diagnostics:
print 'creating diagnostic plots'
draw_LRU_map()
# fCOS_from_C4pct_diagnostics()
| [
1,
529,
276,
1112,
420,
29958,
13711,
20336,
29899,
29956,
29899,
29950,
309,
880,
29914,
3217,
29903,
29918,
29903,
5031,
616,
29918,
21067,
952,
267,
29966,
9507,
29958,
15807,
403,
29918,
29888,
3217,
29903,
29914,
28667,
29918,
29888,
3217,
29903,
29918,
29907,
29946,
29886,
312,
29918,
3389,
29918,
9465,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
29937,
278,
2038,
1183,
29890,
574,
3913,
263,
6901,
6272,
565,
697,
338,
2734,
29892,
6467,
278,
13,
29937,
1788,
3017,
13,
13,
15945,
29908,
21322,
1342,
310,
773,
3017,
304,
2189,
278,
5177,
2286,
13,
21895,
29892,
2992,
29889,
4312,
304,
671,
278,
306,
29914,
29949,
3450,
363,
509,
273,
3489,
29889,
13,
13,
15156,
3017,
756,
278,
10631,
310,
13138,
2130,
304,
13,
303,
331,
29918,
2272,
8504,
29889,
687,
1160,
12562,
29941,
29900,
29900,
29918,
1272,
29918,
24772,
29892,
988,
278,
4423,
310,
599,
278,
13,
5927,
681,
317,
4330,
29924,
6057,
29915,
848,
2066,
338,
9904,
29889,
13,
13,
29966,
5813,
10202,
501,
29907,
4702,
1133,
29892,
29871,
29896,
29941,
5490,
29871,
29906,
29900,
29896,
29945,
13,
15945,
29908,
13,
13,
5215,
2897,
13,
5215,
2897,
29889,
2084,
13,
5215,
10876,
13,
5215,
1014,
5014,
13,
5215,
337,
13,
5215,
7787,
29907,
4037,
29946,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
12655,
408,
7442,
13,
5215,
2078,
556,
29906,
29885,
572,
13,
5215,
1852,
5510,
13,
5215,
12865,
13,
13,
3166,
20805,
29918,
2272,
8504,
1053,
21226,
1160,
12562,
29941,
29900,
29900,
29918,
1272,
29918,
24772,
408,
1226,
29886,
13,
3166,
20805,
29918,
2272,
8504,
1053,
1055,
29918,
1958,
13,
3166,
20805,
29918,
2272,
8504,
1053,
317,
4330,
29924,
29918,
862,
4253,
408,
805,
13,
3166,
5335,
13239,
1053,
7145,
415,
29918,
12324,
13,
13,
13,
29937,
1275,
9166,
9166,
9166,
4936,
1360,
13,
1753,
285,
3217,
29903,
29918,
3166,
29918,
29907,
29946,
29886,
312,
29918,
6051,
20921,
7295,
13,
13,
1678,
4216,
29918,
29931,
28283,
29918,
1958,
580,
13,
13,
1678,
6057,
353,
1226,
29886,
29889,
657,
29918,
29907,
29941,
29907,
29946,
3389,
29879,
580,
13,
1678,
363,
413,
297,
6057,
29889,
8149,
7295,
13,
4706,
285,
3944,
353,
805,
29889,
5510,
29918,
1254,
12665,
29918,
1707,
29898,
17608,
29918,
29888,
978,
29922,
3389,
29879,
29961,
29895,
1822,
29888,
3944,
29918,
2084,
29892,
13,
462,
462,
260,
29900,
29922,
12673,
29889,
12673,
29898,
29906,
29900,
29900,
29947,
29892,
29871,
29955,
29892,
29871,
29896,
511,
13,
462,
462,
260,
29896,
29922,
12673,
29889,
12673,
29898,
29906,
29900,
29900,
29947,
29892,
29871,
29947,
29892,
29871,
29941,
29896,
29892,
29871,
29906,
29941,
29892,
29871,
29945,
29929,
29892,
29871,
29945,
29929,
511,
13,
462,
462,
722,
978,
2433,
3944,
1495,
13,
4706,
1596,
877,
29912,
6177,
1375,
29901,
12365,
29900,
29889,
29906,
29872,
29913,
1678,
4236,
29901,
12365,
29900,
29889,
29906,
29872,
29913,
1678,
2099,
29901,
12365,
29900,
29889,
29906,
29872,
29913,
4286,
4830,
29898,
13,
9651,
413,
29892,
13,
9651,
285,
3944,
1839,
1272,
13359,
1195,
3285,
13,
9651,
285,
3944,
1839,
1272,
13359,
3317,
3285,
13,
9651,
285,
3944,
1839,
1272,
13359,
12676,
22130,
13,
4706,
2537,
29892,
4853,
353,
14770,
29889,
1491,
26762,
580,
13,
4706,
7477,
353,
4853,
29889,
29886,
2780,
29898,
29888,
3944,
1839,
1272,
13359,
29879,
802,
29872,
911,
2141,
12676,
29898,
8990,
29922,
29900,
511,
13,
462,
539,
274,
1958,
29922,
572,
29873,
29889,
657,
29918,
29883,
1958,
877,
10358,
1041,
8785,
13,
4706,
14770,
29889,
2780,
1646,
29898,
4912,
29897,
13,
4706,
14770,
29889,
3257,
29898,
29895,
29897,
13,
4706,
2537,
29889,
7620,
1003,
11219,
7050,
29914,
29888,
3944,
648,
1836,
2732,
4286,
4830,
29898,
29895,
876,
13,
13,
13,
29937,
1275,
9166,
9166,
9166,
4936,
1360,
13,
1753,
4216,
29918,
29931,
28283,
29918,
1958,
7295,
13,
1678,
302,
29883,
353,
7787,
29907,
4037,
29946,
29889,
16390,
24541,
29898,
359,
29889,
21813,
1839,
29931,
28283,
29918,
7724,
11287,
13,
1678,
365,
28283,
353,
302,
29883,
29889,
20897,
1839,
29931,
28283,
2033,
29961,
856,
1822,
29879,
802,
29872,
911,
580,
13,
1678,
302,
29883,
29889,
5358,
580,
13,
1678,
20805,
29918,
12957,
29892,
20805,
29918,
5066,
29892,
304,
1129,
353,
805,
29889,
5510,
29918,
1254,
12665,
29918,
1111,
24266,
29898,
13,
4706,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
657,
6272,
877,
29903,
1718,
23328,
29909,
29918,
1177,
12336,
5477,
525,
29911,
4590,
29949,
29899,
29896,
29906,
29946,
29916,
29896,
29906,
29946,
29889,
17608,
8785,
13,
1678,
285,
3944,
29918,
12324,
353,
7145,
415,
29918,
12324,
29889,
29924,
333,
3149,
19077,
675,
29898,
6563,
3149,
29922,
29896,
29889,
29953,
29896,
29897,
13,
1678,
301,
582,
29918,
1958,
353,
1055,
29918,
1958,
29889,
3521,
3388,
13080,
545,
29898,
10702,
29918,
8990,
29922,
5574,
29892,
260,
29918,
710,
2433,
29931,
28283,
515,
315,
29946,
12461,
282,
312,
1495,
13,
1678,
7477,
353,
301,
582,
29918,
1958,
29889,
1958,
29889,
29886,
2780,
29898,
303,
331,
29918,
12957,
29892,
20805,
29918,
5066,
29892,
365,
28283,
29892,
13,
462,
9651,
274,
1958,
29922,
572,
29873,
29889,
657,
29918,
29883,
1958,
877,
29925,
29884,
2816,
5477,
13,
462,
9651,
3405,
12957,
29922,
5574,
29892,
13,
462,
9651,
6056,
29922,
29888,
3944,
29918,
12324,
29897,
13,
1678,
260,
7358,
353,
7442,
29889,
535,
29883,
2579,
403,
4197,
9302,
29889,
1915,
3493,
29898,
29896,
29889,
29896,
29906,
29892,
29871,
29896,
29889,
29947,
29946,
29892,
29871,
29945,
511,
7442,
29889,
2378,
4197,
29896,
29889,
29953,
29896,
2314,
2314,
13,
1678,
274,
1646,
353,
301,
582,
29918,
1958,
29889,
1003,
29889,
2780,
1646,
29898,
4912,
29892,
274,
1165,
29922,
29880,
582,
29918,
1958,
29889,
1165,
29918,
29883,
1958,
29892,
260,
7358,
29922,
29873,
7358,
29897,
13,
1678,
274,
1646,
29889,
1165,
29889,
842,
29918,
3257,
877,
29931,
28283,
1495,
13,
1678,
301,
582,
29918,
1958,
29889,
1003,
29889,
7620,
1003,
877,
29931,
28283,
29918,
3166,
29918,
29883,
29946,
29886,
312,
29889,
5140,
1495,
13,
13,
29937,
6088,
6273,
13,
16680,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
7607,
13,
1678,
4852,
2154,
304,
8147,
285,
3217,
29903,
363,
599,
402,
18009,
9316,
3342,
29908,
13,
268,
376,
297,
20805,
29918,
2272,
8504,
29889,
687,
1160,
12562,
29941,
29900,
29900,
29918,
1272,
29918,
24772,
1213,
4961,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
6051,
20921,
742,
13,
462,
1678,
2731,
2433,
3389,
29918,
6051,
20921,
742,
13,
462,
1678,
3158,
2433,
8899,
29918,
3009,
742,
13,
462,
1678,
1371,
29922,
877,
361,
731,
29892,
777,
652,
21780,
24580,
526,
2825,
29915,
13,
462,
3986,
525,
7045,
278,
17203,
6169,
876,
13,
5085,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
29937,
29871,
6633,
278,
363,
509,
273,
775,
13,
1491,
5014,
29889,
4804,
877,
5675,
448,
29888,
22235,
29918,
29888,
3217,
29903,
29918,
29907,
29946,
29886,
312,
29889,
11256,
274,
2127,
495,
742,
6473,
29922,
5574,
29897,
13,
1491,
5014,
29889,
4804,
877,
5675,
448,
29888,
22235,
29918,
29888,
3217,
29903,
29918,
29907,
29946,
29886,
312,
29889,
11256,
742,
6473,
29922,
5574,
29897,
13,
13,
29888,
978,
29918,
29907,
29946,
29886,
312,
353,
2897,
29889,
2084,
29889,
7122,
11219,
5184,
742,
525,
386,
309,
880,
742,
525,
16418,
742,
525,
3217,
29903,
313,
687,
1160,
12562,
29941,
29897,
742,
13,
462,
965,
525,
29907,
29946,
29918,
25376,
482,
742,
525,
3235,
8547,
6271,
29918,
29907,
29946,
29918,
29896,
2287,
29954,
29918,
29929,
29941,
29906,
29918,
276,
629,
2205,
287,
742,
13,
462,
965,
525,
29907,
29946,
29918,
29886,
312,
29918,
29896,
29906,
29946,
29916,
29896,
29906,
29946,
29889,
17608,
1495,
13,
29937,
679,
278,
402,
18009,
306,
29914,
29949,
3450,
934,
363,
278,
315,
3289,
29909,
286,
29896,
29945,
934,
13,
3389,
29879,
353,
1226,
29886,
29889,
657,
29918,
29907,
29941,
29907,
29946,
3389,
29879,
580,
13,
1454,
445,
29918,
3389,
297,
6057,
29889,
5975,
7295,
13,
1678,
285,
978,
29918,
29954,
18009,
353,
445,
29918,
3389,
29889,
29887,
407,
29918,
2084,
13,
1678,
10876,
29889,
25393,
29889,
3539,
28909,
29876,
29905,
29876,
29954,
18009,
934,
29901,
426,
1012,
29876,
4286,
4830,
29898,
29888,
978,
29918,
29954,
18009,
876,
13,
1678,
10876,
29889,
25393,
29889,
3539,
877,
29907,
29946,
934,
29901,
426,
1012,
29876,
29905,
29876,
4286,
4830,
29898,
29888,
978,
29918,
29907,
29946,
29886,
312,
876,
13,
1678,
10876,
29889,
25393,
29889,
23126,
580,
13,
13,
1678,
565,
2897,
29889,
2084,
29889,
9933,
29898,
29888,
978,
29918,
29954,
18009,
29897,
322,
2897,
29889,
2084,
29889,
9933,
29898,
29888,
978,
29918,
29907,
29946,
29886,
312,
1125,
13,
4706,
2897,
29889,
21813,
1839,
14345,
1367,
2287,
7187,
2033,
353,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
21813,
1839,
17353,
7464,
525,
1469,
742,
13,
462,
462,
795,
525,
1254,
12665,
742,
525,
2080,
742,
525,
14345,
1367,
2287,
7187,
29889,
3945,
1495,
13,
4706,
2897,
29889,
21813,
1839,
29954,
18009,
29918,
1177,
12336,
2033,
353,
285,
978,
29918,
29954,
18009,
13,
4706,
2897,
29889,
21813,
1839,
29907,
29946,
29886,
312,
29918,
1177,
12336,
2033,
353,
285,
978,
29918,
29907,
29946,
29886,
312,
13,
4706,
2897,
29889,
21813,
1839,
29934,
1299,
5971,
29918,
7724,
2033,
353,
19283,
3217,
29903,
29918,
3217,
29906,
29918,
3605,
601,
29918,
3075,
29918,
29896,
29889,
29896,
29889,
17608,
29915,
13,
4706,
2897,
29889,
21813,
1839,
29931,
28283,
29918,
7724,
2033,
353,
19283,
29931,
28283,
29918,
3166,
29918,
29907,
29946,
29886,
312,
29889,
17608,
29915,
13,
4706,
2897,
29889,
21813,
1839,
29888,
3217,
29903,
29918,
7724,
2033,
353,
313,
13,
9651,
19283,
29888,
3217,
29903,
648,
2403,
29906,
29900,
29900,
29947,
29918,
29896,
29906,
29946,
29916,
29896,
29906,
29946,
29918,
29931,
28283,
3166,
29907,
29946,
29886,
312,
29889,
17608,
4286,
4830,
29898,
13,
18884,
337,
29889,
1491,
877,
7110,
320,
29899,
29962,
742,
15516,
445,
29918,
3389,
29889,
4299,
4961,
13,
4706,
396,
1065,
278,
363,
509,
273,
760,
13,
4706,
565,
445,
29918,
3389,
29889,
4299,
29889,
13609,
2141,
2886,
877,
9398,
29874,
1495,
6736,
29871,
29900,
29901,
13,
9651,
260,
29918,
10568,
353,
29871,
29941,
29900,
29900,
29900,
29900,
29871,
396,
29871,
29941,
6199,
13384,
408,
379,
29950,
7428,
1799,
13,
4706,
1683,
29901,
13,
9651,
260,
29918,
10568,
353,
29871,
29955,
29941,
29906,
29900,
29900,
29900,
29900,
29871,
396,
29871,
29941,
29900,
29889,
29945,
3841,
13384,
408,
379,
29950,
7428,
1799,
13,
4706,
1014,
5014,
29889,
4804,
29898,
13,
9651,
19283,
28667,
29918,
29888,
3217,
29903,
29918,
29907,
29946,
29886,
312,
29889,
29916,
6571,
6571,
4286,
4830,
29898,
13,
18884,
337,
29889,
1491,
877,
13420,
11297,
13420,
445,
29918,
3389,
29889,
4299,
511,
13,
18884,
260,
29918,
10568,
511,
13,
9651,
6473,
29922,
5574,
29897,
13,
13,
4706,
396,
4337,
278,
716,
285,
3217,
29903,
934,
304,
967,
17667,
4423,
13,
4706,
716,
978,
353,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
25721,
29898,
1366,
29918,
3389,
29889,
29888,
3944,
29918,
2084,
511,
13,
462,
1669,
2897,
29889,
2084,
29889,
6500,
3871,
29898,
359,
29889,
21813,
1839,
29888,
3217,
29903,
29918,
7724,
25901,
13,
4706,
10876,
29889,
25393,
29889,
3539,
28909,
29876,
8875,
6660,
426,
1012,
29876,
29905,
29876,
4286,
4830,
29898,
359,
29889,
21813,
1839,
29888,
3217,
29903,
29918,
7724,
7464,
13,
462,
462,
462,
29871,
716,
978,
876,
13,
4706,
10876,
29889,
25393,
29889,
23126,
580,
13,
4706,
2897,
29889,
1267,
420,
29898,
359,
29889,
21813,
1839,
29888,
3217,
29903,
29918,
7724,
7464,
716,
978,
29897,
13,
13,
1678,
1683,
29901,
13,
4706,
1596,
877,
29954,
18009,
934,
451,
1476,
1495,
13,
13,
361,
6389,
29889,
3389,
29918,
6051,
20921,
29901,
13,
1678,
1596,
525,
1037,
1218,
652,
21780,
24580,
29915,
13,
1678,
4216,
29918,
29931,
28283,
29918,
1958,
580,
13,
1678,
396,
285,
3217,
29903,
29918,
3166,
29918,
29907,
29946,
29886,
312,
29918,
6051,
20921,
580,
13,
2
] |
networkapi/api_network/tests/v3/unit/networkipv6/async/test_delete.py | vinicius-marinho/GloboNetworkAPI | 73 | 115803 | # -*- coding: utf-8 -*-
import logging
from django.test.client import Client
from mock import patch
from networkapi.api_network.tasks import delete_networkv6
from networkapi.api_network.tasks import undeploy_networkv6
from networkapi.ip.models import NetworkIPv6
from networkapi.test.test_case import NetworkApiTestCase
from networkapi.usuario.models import Usuario
log = logging.getLogger(__name__)
class NetworkIPv6AsyncDeleteSuccessTestCase(NetworkApiTestCase):
def setUp(self):
self.client = Client()
def tearDown(self):
pass
@patch('networkapi.api_network.facade.v3.delete_networkipv6')
@patch('networkapi.api_network.facade.v3.get_networkipv6_by_id')
@patch('networkapi.api_network.tasks.delete_networkv6.update_state')
def test_task_id_create_in_delete_one_netipv6_success(self, *args):
"""Test success of id task generate for netipv6 delete success."""
mock_get_netv6 = args[1]
mock_delete_netv6 = args[2]
net = NetworkIPv6(id=1)
user = Usuario(id='1', nome='test')
mock_delete_netv6.return_value = net
mock_get_netv6.return_value = net
delete_networkv6(1, user.id)
mock_delete_netv6.assert_called_with(1)
class NetworkIPv6AsyncDeleteErrorTestCase(NetworkApiTestCase):
def setUp(self):
self.client = Client()
def tearDown(self):
pass
def test_task_id_create_in_delete_one_netipv6_error(self):
"""Test success of id task generate for netipv6 delete error."""
pass
class NetworkIPv6AsyncDeleteDeploySuccessTestCase(NetworkApiTestCase):
def setUp(self):
self.client = Client()
def tearDown(self):
pass
@patch('networkapi.api_network.facade.v3.undeploy_networkipv6')
@patch('networkapi.api_network.facade.v3.get_networkipv6_by_id')
@patch('networkapi.usuario.models.Usuario.objects.get')
@patch('networkapi.api_network.tasks.undeploy_networkv6.update_state')
def test_task_id_create_in_delete_deploy_one_netipv6_success(self, *args):
"""Test success of id task generate for netipv6 delete deploy success."""
mock_get_user = args[1]
mock_get_netv6 = args[2]
mock_undeploy_netv6 = args[3]
net = NetworkIPv6(id=1)
user = Usuario(id='1', nome='test')
mock_undeploy_netv6.return_value = net
mock_get_netv6.return_value = net
mock_get_user.return_value = user
undeploy_networkv6(net.id, user.id)
mock_undeploy_netv6.assert_called_with(net.id, user)
class NetworkIPv6AsyncDeleteDeployErrorTestCase(NetworkApiTestCase):
def setUp(self):
self.client = Client()
def tearDown(self):
pass
def test_task_id_create_in_delete_deploy_one_netipv6_error(self):
"""Test success of id task generate for netipv6 delete deploy error."""
pass
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
12183,
13,
13,
3166,
9557,
29889,
1688,
29889,
4645,
1053,
12477,
13,
3166,
11187,
1053,
13261,
13,
13,
3166,
3564,
2754,
29889,
2754,
29918,
11618,
29889,
20673,
1053,
5217,
29918,
11618,
29894,
29953,
13,
3166,
3564,
2754,
29889,
2754,
29918,
11618,
29889,
20673,
1053,
563,
1022,
2376,
29918,
11618,
29894,
29953,
13,
3166,
3564,
2754,
29889,
666,
29889,
9794,
1053,
8527,
5690,
29894,
29953,
13,
3166,
3564,
2754,
29889,
1688,
29889,
1688,
29918,
4878,
1053,
8527,
11713,
3057,
8259,
13,
3166,
3564,
2754,
29889,
375,
22223,
29889,
9794,
1053,
501,
2146,
2628,
13,
13,
1188,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
13,
1990,
8527,
5690,
29894,
29953,
8123,
12498,
14191,
3057,
8259,
29898,
13724,
11713,
3057,
8259,
1125,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
4645,
353,
12477,
580,
13,
13,
1678,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
4706,
1209,
13,
13,
1678,
732,
5041,
877,
11618,
2754,
29889,
2754,
29918,
11618,
29889,
17470,
1943,
29889,
29894,
29941,
29889,
8143,
29918,
11618,
666,
29894,
29953,
1495,
13,
1678,
732,
5041,
877,
11618,
2754,
29889,
2754,
29918,
11618,
29889,
17470,
1943,
29889,
29894,
29941,
29889,
657,
29918,
11618,
666,
29894,
29953,
29918,
1609,
29918,
333,
1495,
13,
1678,
732,
5041,
877,
11618,
2754,
29889,
2754,
29918,
11618,
29889,
20673,
29889,
8143,
29918,
11618,
29894,
29953,
29889,
5504,
29918,
3859,
1495,
13,
1678,
822,
1243,
29918,
7662,
29918,
333,
29918,
3258,
29918,
262,
29918,
8143,
29918,
650,
29918,
1212,
666,
29894,
29953,
29918,
8698,
29898,
1311,
29892,
334,
5085,
1125,
13,
4706,
9995,
3057,
2551,
310,
1178,
3414,
5706,
363,
7787,
666,
29894,
29953,
5217,
2551,
1213,
15945,
13,
13,
4706,
11187,
29918,
657,
29918,
1212,
29894,
29953,
353,
6389,
29961,
29896,
29962,
13,
4706,
11187,
29918,
8143,
29918,
1212,
29894,
29953,
353,
6389,
29961,
29906,
29962,
13,
13,
4706,
7787,
353,
8527,
5690,
29894,
29953,
29898,
333,
29922,
29896,
29897,
13,
4706,
1404,
353,
501,
2146,
2628,
29898,
333,
2433,
29896,
742,
9235,
2433,
1688,
1495,
13,
13,
4706,
11187,
29918,
8143,
29918,
1212,
29894,
29953,
29889,
2457,
29918,
1767,
353,
7787,
13,
4706,
11187,
29918,
657,
29918,
1212,
29894,
29953,
29889,
2457,
29918,
1767,
353,
7787,
13,
13,
4706,
5217,
29918,
11618,
29894,
29953,
29898,
29896,
29892,
1404,
29889,
333,
29897,
13,
13,
4706,
11187,
29918,
8143,
29918,
1212,
29894,
29953,
29889,
9294,
29918,
13998,
29918,
2541,
29898,
29896,
29897,
13,
13,
13,
1990,
8527,
5690,
29894,
29953,
8123,
12498,
2392,
3057,
8259,
29898,
13724,
11713,
3057,
8259,
1125,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
4645,
353,
12477,
580,
13,
13,
1678,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
4706,
1209,
13,
13,
1678,
822,
1243,
29918,
7662,
29918,
333,
29918,
3258,
29918,
262,
29918,
8143,
29918,
650,
29918,
1212,
666,
29894,
29953,
29918,
2704,
29898,
1311,
1125,
13,
4706,
9995,
3057,
2551,
310,
1178,
3414,
5706,
363,
7787,
666,
29894,
29953,
5217,
1059,
1213,
15945,
13,
13,
4706,
1209,
13,
13,
13,
1990,
8527,
5690,
29894,
29953,
8123,
12498,
8498,
2376,
14191,
3057,
8259,
29898,
13724,
11713,
3057,
8259,
1125,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
4645,
353,
12477,
580,
13,
13,
1678,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
4706,
1209,
13,
13,
1678,
732,
5041,
877,
11618,
2754,
29889,
2754,
29918,
11618,
29889,
17470,
1943,
29889,
29894,
29941,
29889,
870,
1022,
2376,
29918,
11618,
666,
29894,
29953,
1495,
13,
1678,
732,
5041,
877,
11618,
2754,
29889,
2754,
29918,
11618,
29889,
17470,
1943,
29889,
29894,
29941,
29889,
657,
29918,
11618,
666,
29894,
29953,
29918,
1609,
29918,
333,
1495,
13,
1678,
732,
5041,
877,
11618,
2754,
29889,
375,
22223,
29889,
9794,
29889,
29965,
2146,
2628,
29889,
12650,
29889,
657,
1495,
13,
1678,
732,
5041,
877,
11618,
2754,
29889,
2754,
29918,
11618,
29889,
20673,
29889,
870,
1022,
2376,
29918,
11618,
29894,
29953,
29889,
5504,
29918,
3859,
1495,
13,
1678,
822,
1243,
29918,
7662,
29918,
333,
29918,
3258,
29918,
262,
29918,
8143,
29918,
16519,
29918,
650,
29918,
1212,
666,
29894,
29953,
29918,
8698,
29898,
1311,
29892,
334,
5085,
1125,
13,
4706,
9995,
3057,
2551,
310,
1178,
3414,
5706,
363,
7787,
666,
29894,
29953,
5217,
7246,
2551,
1213,
15945,
13,
13,
4706,
11187,
29918,
657,
29918,
1792,
353,
6389,
29961,
29896,
29962,
13,
4706,
11187,
29918,
657,
29918,
1212,
29894,
29953,
353,
6389,
29961,
29906,
29962,
13,
4706,
11187,
29918,
870,
1022,
2376,
29918,
1212,
29894,
29953,
353,
6389,
29961,
29941,
29962,
13,
13,
4706,
7787,
353,
8527,
5690,
29894,
29953,
29898,
333,
29922,
29896,
29897,
13,
4706,
1404,
353,
501,
2146,
2628,
29898,
333,
2433,
29896,
742,
9235,
2433,
1688,
1495,
13,
13,
4706,
11187,
29918,
870,
1022,
2376,
29918,
1212,
29894,
29953,
29889,
2457,
29918,
1767,
353,
7787,
13,
4706,
11187,
29918,
657,
29918,
1212,
29894,
29953,
29889,
2457,
29918,
1767,
353,
7787,
13,
4706,
11187,
29918,
657,
29918,
1792,
29889,
2457,
29918,
1767,
353,
1404,
13,
13,
4706,
563,
1022,
2376,
29918,
11618,
29894,
29953,
29898,
1212,
29889,
333,
29892,
1404,
29889,
333,
29897,
13,
13,
4706,
11187,
29918,
870,
1022,
2376,
29918,
1212,
29894,
29953,
29889,
9294,
29918,
13998,
29918,
2541,
29898,
1212,
29889,
333,
29892,
1404,
29897,
13,
13,
13,
1990,
8527,
5690,
29894,
29953,
8123,
12498,
8498,
2376,
2392,
3057,
8259,
29898,
13724,
11713,
3057,
8259,
1125,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
4645,
353,
12477,
580,
13,
13,
1678,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
4706,
1209,
13,
13,
1678,
822,
1243,
29918,
7662,
29918,
333,
29918,
3258,
29918,
262,
29918,
8143,
29918,
16519,
29918,
650,
29918,
1212,
666,
29894,
29953,
29918,
2704,
29898,
1311,
1125,
13,
4706,
9995,
3057,
2551,
310,
1178,
3414,
5706,
363,
7787,
666,
29894,
29953,
5217,
7246,
1059,
1213,
15945,
13,
13,
4706,
1209,
13,
2
] |
tradingview_fxcross.py | project-k-0-1/project-k | 1 | 128644 | """ Tradingview FXcross """
from sa_func import get_broker_affiliate_link
def get_tradingview_fxcross(width, height):
""" Get Tradingview FXcross """
return_data = ''
#theme = get_sa_theme()
url = get_broker_affiliate_link('Tradingview', 'baseurl')
if str(width) == '0':
width = '"100%"'
if str(height) == '0':
height = '"100%"'
return_data = '' +\
'<div class="tradingview-widget-container">'+\
' <div class="tradingview-widget-container__widget"></div>'+\
' <script type="text/javascript" '+\
'src="https://s3.tradingview.com/external-embedding/embed-widget-forex-cross-rates.js" async>'+\
' {'+\
' "width": '+ str(width) +','+\
' "height": '+ str(height) +','+\
' "currencies": ['+\
' "EUR",'+\
' "USD",'+\
' "JPY",'+\
' "GBP",'+\
' "CHF",'+\
' "AUD",'+\
' "CAD",'+\
' "NZD",'+\
' "CNY",'+\
' "SGD",'+\
' "RUB"'+\
' ],'+\
' "locale": "en",'+\
' "largeChartUrl": "'+ str(url) +'"'+\
'}'+\
' </script>'+\
'</div>'
return return_data
| [
1,
9995,
1605,
9382,
1493,
383,
29990,
19128,
9995,
13,
3166,
872,
29918,
9891,
1053,
679,
29918,
6729,
3946,
29918,
3470,
2638,
403,
29918,
2324,
13,
13,
1753,
679,
29918,
509,
9382,
1493,
29918,
11093,
19128,
29898,
2103,
29892,
3171,
1125,
13,
1678,
9995,
3617,
1605,
9382,
1493,
383,
29990,
19128,
9995,
13,
1678,
736,
29918,
1272,
353,
6629,
13,
1678,
396,
18193,
353,
679,
29918,
4977,
29918,
18193,
580,
13,
1678,
3142,
353,
679,
29918,
6729,
3946,
29918,
3470,
2638,
403,
29918,
2324,
877,
2308,
9382,
1493,
742,
525,
3188,
2271,
1495,
13,
13,
1678,
565,
851,
29898,
2103,
29897,
1275,
525,
29900,
2396,
13,
4706,
2920,
353,
18793,
29896,
29900,
29900,
23577,
29915,
13,
1678,
565,
851,
29898,
3545,
29897,
1275,
525,
29900,
2396,
13,
4706,
3171,
353,
18793,
29896,
29900,
29900,
23577,
29915,
13,
13,
1678,
736,
29918,
1272,
353,
6629,
17501,
13,
1678,
12801,
4563,
770,
543,
509,
9382,
1493,
29899,
8030,
29899,
7611,
1013,
29915,
3124,
13,
1678,
525,
29871,
529,
4563,
770,
543,
509,
9382,
1493,
29899,
8030,
29899,
7611,
1649,
8030,
5319,
4563,
16299,
3124,
13,
1678,
525,
29871,
529,
2154,
1134,
543,
726,
29914,
7729,
29908,
525,
3124,
13,
1678,
525,
4351,
543,
991,
597,
29879,
29941,
29889,
509,
9382,
1493,
29889,
510,
29914,
23176,
29899,
17987,
8497,
29914,
17987,
29899,
8030,
29899,
1079,
29916,
29899,
19128,
29899,
29878,
1078,
29889,
1315,
29908,
7465,
16299,
3124,
13,
1678,
525,
29871,
11117,
3124,
13,
1678,
525,
29871,
376,
2103,
1115,
525,
29974,
851,
29898,
2103,
29897,
718,
3788,
3124,
13,
1678,
525,
29871,
376,
3545,
1115,
525,
29974,
851,
29898,
3545,
29897,
718,
3788,
3124,
13,
1678,
525,
29871,
376,
21962,
15942,
1115,
6024,
3124,
13,
1678,
525,
1678,
376,
29923,
4574,
613,
29915,
3124,
13,
1678,
525,
1678,
376,
3308,
29928,
613,
29915,
3124,
13,
1678,
525,
1678,
376,
29967,
20055,
613,
29915,
3124,
13,
1678,
525,
1678,
376,
7210,
29925,
613,
29915,
3124,
13,
1678,
525,
1678,
376,
3210,
29943,
613,
29915,
3124,
13,
1678,
525,
1678,
376,
29909,
15789,
613,
29915,
3124,
13,
1678,
525,
1678,
376,
29907,
3035,
613,
29915,
3124,
13,
1678,
525,
1678,
376,
29940,
29999,
29928,
613,
29915,
3124,
13,
1678,
525,
1678,
376,
13778,
29979,
613,
29915,
3124,
13,
1678,
525,
1678,
376,
26016,
29928,
613,
29915,
3124,
13,
1678,
525,
1678,
376,
29934,
7466,
29908,
29915,
3124,
13,
1678,
525,
29871,
21251,
29915,
3124,
13,
1678,
525,
29871,
376,
23337,
1115,
376,
264,
613,
29915,
3124,
13,
1678,
525,
29871,
376,
16961,
14732,
5983,
1115,
13577,
29974,
851,
29898,
2271,
29897,
718,
11838,
29915,
3124,
13,
1678,
525,
10162,
3124,
13,
1678,
525,
29871,
1533,
2154,
16299,
3124,
13,
1678,
525,
829,
4563,
16299,
13,
1678,
736,
736,
29918,
1272,
13,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.